DEFINE OBJECTS 391
DEFINE OBJECT (noname)                
DEFINE OBJECT INFO                     // Object number -1
DEFINE OBJECT KEYCARD                  // Object number -2
DEFINE OBJECT AD_FLATDOOR              // Object number -3
DEFINE OBJECT KB_BANDIT_U              // Object number -4
DEFINE OBJECT ROULETTE_TBL             // Object number -5
DEFINE OBJECT OTB_MACHINE              // Object number -6
DEFINE OBJECT CJ_COIN_OP_3             // Object number -7
DEFINE OBJECT CJ_COIN_OP_2             // Object number -8
DEFINE OBJECT CJ_COIN_OP_1             // Object number -9
DEFINE OBJECT CJ_COIN_OP               // Object number -10
DEFINE OBJECT SWANK_CONSOLE            // Object number -11
DEFINE OBJECT SNESISH                  // Object number -12
DEFINE OBJECT LOW_CONSOLE              // Object number -13
DEFINE OBJECT VENDMACHFD               // Object number -14
DEFINE OBJECT VENDMACH                 // Object number -15
DEFINE OBJECT VENDIN3                  // Object number -16
DEFINE OBJECT CJ_SPRUNK1               // Object number -17
DEFINE OBJECT CJ_CANDYVENDOR           // Object number -18
DEFINE OBJECT CJ_EXT_CANDY             // Object number -19
DEFINE OBJECT CJ_EXT_SPRUNK            // Object number -20
DEFINE OBJECT ICESCART_PROP            // Object number -21
DEFINE OBJECT CHILLIDOGCART            // Object number -22
DEFINE OBJECT NOODLECART_PROP          // Object number -23
DEFINE OBJECT GATE_AUTOL               // Object number -24
DEFINE OBJECT GATE_AUTOR               // Object number -25
DEFINE OBJECT GYM_BIKE                 // Object number -26
DEFINE OBJECT GYM_BENCH1               // Object number -27
DEFINE OBJECT GYM_TREADMILL            // Object number -28
DEFINE OBJECT GYM_MAT1                 // Object number -29
DEFINE OBJECT BSKBALL_LAX              // Object number -30
DEFINE OBJECT BSKBALLHUB_LAX01         // Object number -31
DEFINE OBJECT VGSXREFBBALLNET          // Object number -32
DEFINE OBJECT VGSXREFBBALLNET2         // Object number -33
DEFINE OBJECT K_POOLTABLESM            // Object number -34
DEFINE OBJECT NEIL_SLOT                // Object number -35
DEFINE OBJECT CJ_SLOT_BANK             // Object number -36
DEFINE OBJECT BLCK_JACK                // Object number -37
DEFINE OBJECT WHEEL_O_FORTUNE          // Object number -38
DEFINE OBJECT CRACKFACT_SFS            // Object number -39
DEFINE OBJECT CF_EXT_DEM_SFS           // Object number -40
DEFINE OBJECT LODCRACKFACT_SFS         // Object number -41
DEFINE OBJECT LODEXT_DEM_SFS           // Object number -42
DEFINE OBJECT KILLFRENZY2PLYR          // Object number -43
DEFINE OBJECT TWOPLAYER                // Object number -44
DEFINE OBJECT PICKUPSAVE               // Object number -45
DEFINE OBJECT WOODENBOX                // Object number -46
DEFINE OBJECT NF_BLACKBOARD            // Object number -47
DEFINE OBJECT NF_LIST_1                // Object number -48
DEFINE OBJECT NF_LIST_2                // Object number -49
DEFINE OBJECT NF_LIST_3                // Object number -50
DEFINE OBJECT WANTED_CROSS_OFF         // Object number -51
DEFINE OBJECT WS_APGATE                // Object number -52
DEFINE OBJECT GEN_DOOREXT03            // Object number -53
DEFINE OBJECT GEN_DOOREXT07            // Object number -54
DEFINE OBJECT GEN_DOORSHOP02           // Object number -55
DEFINE OBJECT GEN_DOOREXT04            // Object number -56
DEFINE OBJECT GEN_DOORSHOP3            // Object number -57
DEFINE OBJECT CUNTGIRLDOOR             // Object number -58
DEFINE OBJECT PIZZAHIGH                // Object number -59
DEFINE OBJECT CJ_PIZZA_1               // Object number -60
DEFINE OBJECT CJ_PIZZA_2               // Object number -61
DEFINE OBJECT BURGERHIGH               // Object number -62
DEFINE OBJECT CJ_BURG_1                // Object number -63
DEFINE OBJECT CJ_BURG_2                // Object number -64
DEFINE OBJECT CIGAR                    // Object number -65
DEFINE OBJECT TRDCSGRGDOOR_LVS         // Object number -66
DEFINE OBJECT MD_POSTER                // Object number -67
DEFINE OBJECT CR_DOOR_01               // Object number -68
DEFINE OBJECT CR_DOOR_03               // Object number -69
DEFINE OBJECT SHUTTER_VEGAS            // Object number -70
DEFINE OBJECT CR1_DOOR                 // Object number -71
DEFINE OBJECT CT_GATEXR                // Object number -72
DEFINE OBJECT A51_BLASTDOORR           // Object number -73
DEFINE OBJECT A51_BLASTDOORL           // Object number -74
DEFINE OBJECT A51_LABDOOR              // Object number -75
DEFINE OBJECT A51_JETDOOR              // Object number -76
DEFINE OBJECT PORTAKABIN               // Object number -77
DEFINE OBJECT FREIGHT_SFW_DOOR         // Object number -78
DEFINE OBJECT AB_CASDORLOK             // Object number -79
DEFINE OBJECT IMY_SHASH_WALL           // Object number -80
DEFINE OBJECT TWRCRANE_M_04            // Object number -81
DEFINE OBJECT TWRCRANE_M_01            // Object number -82
DEFINE OBJECT TWRCRANE_M_02            // Object number -83
DEFINE OBJECT LODCRANE_M_04            // Object number -84
DEFINE OBJECT LODCRANE_M_01            // Object number -85
DEFINE OBJECT MAGNOCRANE_01            // Object number -86
DEFINE OBJECT MAGNOCRANE_02            // Object number -87
DEFINE OBJECT MAGNOCRANE_03            // Object number -88
DEFINE OBJECT LODNOCRANE_01            // Object number -89
DEFINE OBJECT LODNOCRANE_02            // Object number -90
DEFINE OBJECT LODNOCRANE_03            // Object number -91
DEFINE OBJECT QUARRY_CRANEBASE         // Object number -92
DEFINE OBJECT QUARRY_CRANE             // Object number -93
DEFINE OBJECT QUARRY_CRANEARM          // Object number -94
DEFINE OBJECT BODYARMOUR               // Object number -95
DEFINE OBJECT BRIBE                    // Object number -96
DEFINE OBJECT A51_VENTCOVERB           // Object number -97
DEFINE OBJECT CARRIER_DOOR_SFSE        // Object number -98
DEFINE OBJECT CARRIER_LIFT2_SFSE       // Object number -99
DEFINE OBJECT CARRIER_LIFT1_SFSE       // Object number -100
DEFINE OBJECT GWFORUM1_LAE             // Object number -101
DEFINE OBJECT GANGSHOPS4_LAE2          // Object number -102
DEFINE OBJECT CE_HILLSEAST06           // Object number -103
DEFINE OBJECT CUNTEGROUND23            // Object number -104
DEFINE OBJECT HILLSEAST05_LAE          // Object number -105
DEFINE OBJECT K_POOLQ                  // Object number -106
DEFINE OBJECT K_POOLBALLCUE            // Object number -107
DEFINE OBJECT K_POOLBALLSPT01          // Object number -108
DEFINE OBJECT K_POOLBALLSPT02          // Object number -109
DEFINE OBJECT K_POOLBALLSPT03          // Object number -110
DEFINE OBJECT K_POOLBALLSPT04          // Object number -111
DEFINE OBJECT K_POOLBALLSPT05          // Object number -112
DEFINE OBJECT K_POOLBALLSPT06          // Object number -113
DEFINE OBJECT K_POOLBALLSPT07          // Object number -114
DEFINE OBJECT K_POOLBALL8              // Object number -115
DEFINE OBJECT K_POOLBALLSTP01          // Object number -116
DEFINE OBJECT K_POOLBALLSTP02          // Object number -117
DEFINE OBJECT K_POOLBALLSTP03          // Object number -118
DEFINE OBJECT K_POOLBALLSTP04          // Object number -119
DEFINE OBJECT K_POOLBALLSTP05          // Object number -120
DEFINE OBJECT K_POOLBALLSTP06          // Object number -121
DEFINE OBJECT K_POOLBALLSTP07          // Object number -122
DEFINE OBJECT K_POOLQ2                 // Object number -123
DEFINE OBJECT CIGAR_GLOW               // Object number -124
DEFINE OBJECT DYN_WINE_BIG             // Object number -125
DEFINE OBJECT KB_BEER                  // Object number -126
DEFINE OBJECT LAEROAD30                // Object number -127
DEFINE OBJECT CASKET_LAW               // Object number -128
DEFINE OBJECT LAEJEFFERSALPHA          // Object number -129
DEFINE OBJECT LAELODPARK02             // Object number -130
DEFINE OBJECT LAEMACPARK02             // Object number -131
DEFINE OBJECT BD_WINDOW                // Object number -132
DEFINE OBJECT BREAK_WALL_1B            // Object number -133
DEFINE OBJECT BREAK_WALL_2B            // Object number -134
DEFINE OBJECT BREAK_WALL_3B            // Object number -135
DEFINE OBJECT BD_FIRE1_O               // Object number -136
DEFINE OBJECT CR_AMMOBOX               // Object number -137
DEFINE OBJECT BREAK_WALL_1A            // Object number -138
DEFINE OBJECT BREAK_WALL_2A            // Object number -139
DEFINE OBJECT BREAK_WALL_3A            // Object number -140
DEFINE OBJECT BD_WINDOW_SHATTER        // Object number -141
DEFINE OBJECT SEC_KEYPAD               // Object number -142
DEFINE OBJECT KMB_RAMP                 // Object number -143
DEFINE OBJECT IMCMPTRKDRL_LAS          // Object number -144
DEFINE OBJECT IMCMPTRKDRR_LAS          // Object number -145
DEFINE OBJECT IMCOMPMOVEDR1_LAS        // Object number -146
DEFINE OBJECT BARREL4                  // Object number -147
DEFINE OBJECT HEALTH                   // Object number -148
DEFINE OBJECT IMY_BBOX                 // Object number -149
DEFINE OBJECT IMY_LA_DOOR              // Object number -150
DEFINE OBJECT DB_AMMO                  // Object number -151
DEFINE OBJECT MED_BED_8                // Object number -152
DEFINE OBJECT CR_GUNCRATE              // Object number -153
DEFINE OBJECT GUNBOX                   // Object number -154
DEFINE OBJECT TMP_BIN                  // Object number -155
DEFINE OBJECT AMMOTRN_OBJ              // Object number -156
DEFINE OBJECT KMB_FRONTGATE            // Object number -157
DEFINE OBJECT WAREHOUSE_DOOR2B         // Object number -158
DEFINE OBJECT WAREHOUSE_DOOR1          // Object number -159
DEFINE OBJECT CJ_CARDBRD_PICKUP        // Object number -160
DEFINE OBJECT NF_PED_COLL              // Object number -161
DEFINE OBJECT CM_BOX                   // Object number -162
DEFINE OBJECT FAKE_MULE_COL            // Object number -163
DEFINE OBJECT CARDBOARDBOX2            // Object number -164
DEFINE OBJECT LAE_SMOKECUTSCENE        // Object number -165
DEFINE OBJECT IMMMCRAN                 // Object number -166
DEFINE OBJECT TRNTRK8_LAS              // Object number -167
DEFINE OBJECT IMY_TRACK_BARRIER        // Object number -168
DEFINE OBJECT KMB_SKIP                 // Object number -169
DEFINE OBJECT STORM_DRAIN_COVER        // Object number -170
DEFINE OBJECT WHEEL_OR1                // Object number -171
DEFINE OBJECT DYN_WOODPILE2            // Object number -172
DEFINE OBJECT KMB_RHYMESBOOK           // Object number -173
DEFINE OBJECT CJ_JUICE_CAN             // Object number -174
DEFINE OBJECT DYN_ROADBARRIER_2        // Object number -175
DEFINE OBJECT KMB_GOFLAG               // Object number -176
DEFINE OBJECT IMY_SKYLIGHT             // Object number -177
DEFINE OBJECT KMB_TROLLEY              // Object number -178
DEFINE OBJECT LXR_MOTEL_DOORSIM        // Object number -179
DEFINE OBJECT LXR_MOTELVENT            // Object number -180
DEFINE OBJECT DYN_SCAFFOLD_4B          // Object number -181
DEFINE OBJECT MUNCH_DONUT              // Object number -182
DEFINE OBJECT CHOPCOP_ARMR             // Object number -183
DEFINE OBJECT CHOPCOP_LEGR             // Object number -184
DEFINE OBJECT CHOPCOP_HEAD             // Object number -185
DEFINE OBJECT CHOPCOP_TORSO            // Object number -186
DEFINE OBJECT WD_FENCE_ANIM            // Object number -187
DEFINE OBJECT CHOPCOP_ARML             // Object number -188
DEFINE OBJECT CHOPCOP_LEGL             // Object number -189
DEFINE OBJECT DYN_SCAFFOLD_3B          // Object number -190
DEFINE OBJECT ROADWORKBARRIER1         // Object number -191
DEFINE OBJECT BRIEFCASE                // Object number -192
DEFINE OBJECT KMB_ATM1                 // Object number -193
DEFINE OBJECT KMB_ATM2                 // Object number -194
DEFINE OBJECT KMB_ATM3                 // Object number -195
DEFINE OBJECT MTSAFE                   // Object number -196
DEFINE OBJECT CAT2_SAFE_COL            // Object number -197
DEFINE OBJECT MAN_SAFENEW              // Object number -198
DEFINE OBJECT KEV_SAFE                 // Object number -199
DEFINE OBJECT RIDER1_DOOR              // Object number -200
DEFINE OBJECT KMB_MARIJUANA            // Object number -201
DEFINE OBJECT SW_HAYBREAK02            // Object number -202
DEFINE OBJECT GRASSPLANT               // Object number -203
DEFINE OBJECT PARKBENCH1               // Object number -204
DEFINE OBJECT PORTALOO                 // Object number -205
DEFINE OBJECT HUBHOLE1_SFSE            // Object number -206
DEFINE OBJECT HUBHOLE2_SFSE            // Object number -207
DEFINE OBJECT HUBHOLE3_SFSE            // Object number -208
DEFINE OBJECT HUBHOLE4_SFSE            // Object number -209
DEFINE OBJECT CLOTHESP                 // Object number -210
DEFINE OBJECT LAMPPOST3                // Object number -211
DEFINE OBJECT CT_STALL1                // Object number -212
DEFINE OBJECT CT_TABLE                 // Object number -213
DEFINE OBJECT CHINATGARAGEDOOR         // Object number -214
DEFINE OBJECT CHINA_TOWN_GATEB         // Object number -215
DEFINE OBJECT A51_SPOTBASE             // Object number -216
DEFINE OBJECT A51_SPOTHOUSING          // Object number -217
DEFINE OBJECT A51_SPOTBULB             // Object number -218
DEFINE OBJECT KMB_CONTAINER_RED        // Object number -219
DEFINE OBJECT CJ_CHRIS_CRATE           // Object number -220
DEFINE OBJECT CJ_CHRIS_CRATE_LD        // Object number -221
DEFINE OBJECT CJ_CHRIS_CRATE_RD        // Object number -222
DEFINE OBJECT CJ_PADLOCK               // Object number -223
DEFINE OBJECT KATANA_ANIM              // Object number -224
DEFINE OBJECT KATANA_LHAND             // Object number -225
DEFINE OBJECT MOBILE1993B              // Object number -226
DEFINE OBJECT WONGS_GATE               // Object number -227
DEFINE OBJECT DYN_RAMP                 // Object number -228
DEFINE OBJECT SNIPER_ANIM              // Object number -229
DEFINE OBJECT KMB_PACKET               // Object number -230
DEFINE OBJECT NTO_B_S                  // Object number -231
DEFINE OBJECT CARDBOARDBOX             // Object number -232
DEFINE OBJECT DYN_ROADBARRIER_3        // Object number -233
DEFINE OBJECT DYN_ROADBARRIER_4        // Object number -234
DEFINE OBJECT DYN_DUMPSTER             // Object number -235
DEFINE OBJECT KMB_CONTAINER_BLUE       // Object number -236
DEFINE OBJECT KMB_CONTAINER_YEL        // Object number -237
DEFINE OBJECT KMB_CONTAINER_OPEN       // Object number -238
DEFINE OBJECT TEMP_STINGER2            // Object number -239
DEFINE OBJECT TRAFFICCONE              // Object number -240
DEFINE OBJECT AD_JUMP                  // Object number -241
DEFINE OBJECT GARYS_LUV_RAMP           // Object number -242
DEFINE OBJECT AD_ROADMARK1             // Object number -243
DEFINE OBJECT AD_ROADMARK2             // Object number -244
DEFINE OBJECT AD_FINISH                // Object number -245
DEFINE OBJECT MINIGUN_BASE             // Object number -246
DEFINE OBJECT WONGS_ERECTION           // Object number -247
DEFINE OBJECT WONGS_ERECTION2          // Object number -248
DEFINE OBJECT RCBOMB                   // Object number -249
DEFINE OBJECT BARREL2                  // Object number -250
DEFINE OBJECT MINI_MAGNET              // Object number -251
DEFINE OBJECT KMB_PLANK                // Object number -252
DEFINE OBJECT KMB_HOLDALL              // Object number -253
DEFINE OBJECT KMB_PARACHUTE            // Object number -254
DEFINE OBJECT AMMO_CAPSULE             // Object number -255
DEFINE OBJECT BARREL1                  // Object number -256
DEFINE OBJECT KB_BARREL                // Object number -257
DEFINE OBJECT CR_CRATESTACK            // Object number -258
DEFINE OBJECT D9_RUNWAY                // Object number -259
DEFINE OBJECT CARGO_TEST               // Object number -260
DEFINE OBJECT CARGO_STUFF              // Object number -261
DEFINE OBJECT CARGO_STORE              // Object number -262
DEFINE OBJECT KMILITARY_CRATE          // Object number -263
DEFINE OBJECT KMILITARY_BASE           // Object number -264
DEFINE OBJECT BLOCKPALLET              // Object number -265
DEFINE OBJECT TEMP_CRATE1              // Object number -266
DEFINE OBJECT K_SMASHBOXES             // Object number -267
DEFINE OBJECT K_CARGO1                 // Object number -268
DEFINE OBJECT K_CARGO4                 // Object number -269
DEFINE OBJECT GREEN_GLOOP              // Object number -270
DEFINE OBJECT BASEJUMP_TARGET          // Object number -271
DEFINE OBJECT DES_QUARRYGATE2          // Object number -272
DEFINE OBJECT DES_QUARRYGATE           // Object number -273
DEFINE OBJECT CJ_DYN_PLUNGE_1          // Object number -274
DEFINE OBJECT DYNAMITE                 // Object number -275
DEFINE OBJECT DYNO_BOX_A               // Object number -276
DEFINE OBJECT DYNO_BOX_B               // Object number -277
DEFINE OBJECT PRIVATESIGN3             // Object number -278
DEFINE OBJECT PRIVATESIGN1             // Object number -279
DEFINE OBJECT BARRIER_4ANDY            // Object number -280
DEFINE OBJECT CJ_CHIP_MAKER_BITS       // Object number -281
DEFINE OBJECT CJ_CHIP_MAKER            // Object number -282
DEFINE OBJECT CJ_WHEELCHAIR1           // Object number -283
DEFINE OBJECT AB_CARCASS               // Object number -284
DEFINE OBJECT AB_HOOK                  // Object number -285
DEFINE OBJECT FREEZER_DOOR             // Object number -286
DEFINE OBJECT CJ_MEAT_BAG_1            // Object number -287
DEFINE OBJECT CJ_MEAT_1                // Object number -288
DEFINE OBJECT CJ_MEAT_2                // Object number -289
DEFINE OBJECT JET_BAGGAGE_DOOR         // Object number -290
DEFINE OBJECT JET_INTERIOR             // Object number -291
DEFINE OBJECT SMLPLANE_DOOR            // Object number -292
DEFINE OBJECT JET_DOOR                 // Object number -293
DEFINE OBJECT SMASH_BOX_STAY           // Object number -294
DEFINE OBJECT SMASH_BOX_BRK            // Object number -295
DEFINE OBJECT SMASHBOXPILE             // Object number -296
DEFINE OBJECT ST_ARCH_PLAN             // Object number -297
DEFINE OBJECT GEN_DOORINT01            // Object number -298
DEFINE OBJECT KMB_LOCKEDDOOR           // Object number -299
DEFINE OBJECT DYN_AIRCON               // Object number -300
DEFINE OBJECT SW_BIT_09                // Object number -301
DEFINE OBJECT GENERATOR_BIG            // Object number -302
DEFINE OBJECT AB_VAULTDOOR             // Object number -303
DEFINE OBJECT GENERATOR_BIG_D          // Object number -304
DEFINE OBJECT CJ_MONEY_BAG             // Object number -305
DEFINE OBJECT PARA_PACK                // Object number -306
DEFINE OBJECT CARGO_REAR               // Object number -307
DEFINE OBJECT D9_RAMP                  // Object number -308
DEFINE OBJECT PARACHUTE                // Object number -309
DEFINE OBJECT OPMANS01_CUNTE           // Object number -310
DEFINE OBJECT CEHOLLYHIL06             // Object number -311
DEFINE OBJECT SUNSET22_LAWN            // Object number -312
DEFINE OBJECT DRG_NU_EXT               // Object number -313
DEFINE OBJECT MISSILE_07_SFXR          // Object number -314
DEFINE OBJECT KMB_KEYPAD               // Object number -315
DEFINE OBJECT WATERJUMPX2              // Object number -316
DEFINE OBJECT BBALL_INGAME             // Object number -317
DEFINE OBJECT CJ_WIN_POP2              // Object number -318
DEFINE OBJECT LA_FUCKCAR1              // Object number -319
DEFINE OBJECT LA_FUCKCAR2              // Object number -320
DEFINE OBJECT TARGET_FRAME             // Object number -321
DEFINE OBJECT TARGET_LLEG              // Object number -322
DEFINE OBJECT TARGET_RLEG              // Object number -323
DEFINE OBJECT TARGET_LTORSO            // Object number -324
DEFINE OBJECT TARGET_RTORSO            // Object number -325
DEFINE OBJECT TARGET_LARM              // Object number -326
DEFINE OBJECT TARGET_RARM              // Object number -327
DEFINE OBJECT TARGET_HEAD              // Object number -328
DEFINE OBJECT DEAD_TIED_COP            // Object number -329
DEFINE OBJECT DYN_QUARRYROCK03         // Object number -330
DEFINE OBJECT BLACKBAG2                // Object number -331
DEFINE OBJECT DYN_WOODPILE             // Object number -332
DEFINE OBJECT DYN_QUARRYROCK02         // Object number -333
DEFINE OBJECT BOUY                     // Object number -334
DEFINE OBJECT WATERJUMP1               // Object number -335
DEFINE OBJECT LANDJUMP2                // Object number -336
DEFINE OBJECT BB_PICKUP                // Object number -337
DEFINE OBJECT PARA_COLLISION           // Object number -338
DEFINE OBJECT CJ_WHEEL_1               // Object number -339
DEFINE OBJECT CJ_WHEEL_02              // Object number -340
DEFINE OBJECT CJ_WHEEL_03              // Object number -341
DEFINE OBJECT CHIP_STACK07             // Object number -342
DEFINE OBJECT CHIP_STACK08             // Object number -343
DEFINE OBJECT CHIP_STACK12             // Object number -344
DEFINE OBJECT CHIP_STACK09             // Object number -345
DEFINE OBJECT CHIP_STACK11             // Object number -346
DEFINE OBJECT WHEEL_WEE                // Object number -347
DEFINE OBJECT ROULETTE_MARKER          // Object number -348
DEFINE OBJECT PEDALS                   // Object number -349
DEFINE OBJECT BEACHTOWEL01             // Object number -350
DEFINE OBJECT KMB_BPRESS               // Object number -351
DEFINE OBJECT BEACHTOWEL03             // Object number -352
DEFINE OBJECT BEACHTOWEL04             // Object number -353
DEFINE OBJECT KMB_DUMBBELL_R           // Object number -354
DEFINE OBJECT KMB_DUMBBELL_L           // Object number -355
DEFINE OBJECT BBALL_COL                // Object number -356
DEFINE OBJECT KMB_ROCK                 // Object number -357
DEFINE OBJECT CHIP_STACK10             // Object number -358
DEFINE OBJECT CHIP_STACK13             // Object number -359
DEFINE OBJECT CHIP_STACK14             // Object number -360
DEFINE OBJECT WHEEL_SUPPORT            // Object number -361
DEFINE OBJECT WHEEL_TABLE              // Object number -362
DEFINE OBJECT CLICKER                  // Object number -363
DEFINE OBJECT MONEY                    // Object number -364
DEFINE OBJECT CJ_FF_TILL_QUE           // Object number -365
DEFINE OBJECT CJ_BURG_CHAIR            // Object number -366
DEFINE OBJECT CJ_PIZZA_CHAIR           // Object number -367
DEFINE OBJECT CJ_PIZZA_CHAIR2          // Object number -368
DEFINE OBJECT CJ_PIZZA_CHAIR3          // Object number -369
DEFINE OBJECT TATTOO_KIT               // Object number -370
DEFINE OBJECT CJ_BARSTOOL              // Object number -371
DEFINE OBJECT CJ_BINCO_DOOR            // Object number -372
DEFINE OBJECT CJ_SUBURB_DOOR_2         // Object number -373
DEFINE OBJECT CJ_PRO_DOOR_01           // Object number -374
DEFINE OBJECT CJ_GAP_DOOR_             // Object number -375
DEFINE OBJECT CJ_VICTIM_DOOR           // Object number -376
DEFINE OBJECT CJ_DS_DOOR               // Object number -377
DEFINE OBJECT PIZZALOW                 // Object number -378
DEFINE OBJECT PIZZAMED                 // Object number -379
DEFINE OBJECT PIZZA_HEALTHY            // Object number -380
DEFINE OBJECT CLUCKLOW                 // Object number -381
DEFINE OBJECT CLUCKMED                 // Object number -382
DEFINE OBJECT CLUCKHIGH                // Object number -383
DEFINE OBJECT CLUCK_HEALTHY            // Object number -384
DEFINE OBJECT BURGERLOW                // Object number -385
DEFINE OBJECT BURGERMED                // Object number -386
DEFINE OBJECT BURGER_HEALTHY           // Object number -387
DEFINE OBJECT POLICE_BARRIER           // Object number -388
DEFINE OBJECT KMB_SHUTTER              // Object number -389
DEFINE OBJECT SFCOPDR                  // Object number -390

DEFINE MISSIONS 151
DEFINE MISSION 0 AT @INITIAL           // Initial 1
DEFINE MISSION 1 AT @INITIL2           // Initial 2
DEFINE MISSION 2 AT @INTRO             // Intro
DEFINE MISSION 3 AT @NONE              // Video Game: They Crawled From Uranus
DEFINE MISSION 4 AT @DUAL              // Video Game: Duality
DEFINE MISSION 5 AT @SHTR              // Video Game: Go Go Space Monkey
DEFINE MISSION 6 AT @GRAV              // Video Game: Let's Get Ready To Bumble
DEFINE MISSION 7 AT @OTB               // Video Game: Inside Track Betting
DEFINE MISSION 8 AT @POOL2             // Pool
DEFINE MISSION 9 AT @LOWR              // Lowrider (Bet And Dance)
DEFINE MISSION 10 AT @ZERO5            // Beefy Baron
DEFINE MISSION 11 AT @INTRO1           // Big Smoke
DEFINE MISSION 12 AT @INTRO2           // Ryder
DEFINE MISSION 13 AT @SWEET1           // Tagging Up Turf
DEFINE MISSION 14 AT @SWEET1B          // Cleaning The Hood
DEFINE MISSION 15 AT @SWEET3           // Drive-Thru
DEFINE MISSION 16 AT @SWEET2           // Nines And AK's
DEFINE MISSION 17 AT @SWEET4           // Drive-By
DEFINE MISSION 18 AT @HOODS5           // Sweet's Girl
DEFINE MISSION 19 AT @SWEET6           // Cesar Vialpando
DEFINE MISSION 20 AT @SWEET7           // Los Sepulcros
DEFINE MISSION 21 AT @CRASH4           // Doberman
DEFINE MISSION 22 AT @CRASH1           // Burning Desire
DEFINE MISSION 23 AT @DRUGS3           // Gray Imports
DEFINE MISSION 24 AT @GUNS1            // Home Invasion
DEFINE MISSION 25 AT @RYDER3           // Catalyst
DEFINE MISSION 26 AT @RYDER2           // Robbing Uncle Sam
DEFINE MISSION 27 AT @TWAR7            // OG Loc
DEFINE MISSION 28 AT @SMOKE2           // Running Dog
DEFINE MISSION 29 AT @SMOKE3           // Wrong Side of the Tracks
DEFINE MISSION 30 AT @DRUGS1           // Just Business
DEFINE MISSION 31 AT @MUSIC1           // Life's a Beach
DEFINE MISSION 32 AT @MUSIC2           // Madd Dogg's Rhymes
DEFINE MISSION 33 AT @MUSIC3           // Management Issues
DEFINE MISSION 34 AT @MUSIC5           // House Party
DEFINE MISSION 35 AT @CPRACE           // Race Tournament / 8-track / Dirt Track
DEFINE MISSION 36 AT @CESAR1           // Lowrider (High Stakes)
DEFINE MISSION 37 AT @DRUGS4           // Reuniting The Families
DEFINE MISSION 38 AT @LA1FIN2          // The Green Sabre
DEFINE MISSION 39 AT @BCRASH1          // Badlands
DEFINE MISSION 40 AT @CATALIN          // First Date
DEFINE MISSION 41 AT @CAT1             // Local Liquor Store
DEFINE MISSION 42 AT @CAT2             // Small Town Bank
DEFINE MISSION 43 AT @CAT3             // Tanker Commander
DEFINE MISSION 44 AT @CAT4             // Against All Odds
DEFINE MISSION 45 AT @CATCUT           // King in Exile
DEFINE MISSION 46 AT @TRUTH1           // Body Harvest
DEFINE MISSION 47 AT @TRUTH2           // Are you going to San Fierro?
DEFINE MISSION 48 AT @BCESAR4          // Wu Zi Mu / Farewell, My Love...
DEFINE MISSION 49 AT @GARAG1           // Wear Flowers In Your Hair
DEFINE MISSION 50 AT @DECON            // Deconstruction
DEFINE MISSION 51 AT @SCRASH3          // 555 WE TIP
DEFINE MISSION 52 AT @SCRASH2          // Snail Trail
DEFINE MISSION 53 AT @WUZI1            // Mountain Cloud Boys
DEFINE MISSION 54 AT @FARLIE4          // Ran Fa Li
DEFINE MISSION 55 AT @DRIV6            // Lure
DEFINE MISSION 56 AT @WUZI2            // Amphibious Assault
DEFINE MISSION 57 AT @WUZI5            // The Da Nang Thang
DEFINE MISSION 58 AT @SYN1             // Photo Opportunity
DEFINE MISSION 59 AT @SYN2             // Jizzy
DEFINE MISSION 60 AT @SYN3             // Outrider
DEFINE MISSION 61 AT @SYND4            // Ice Cold Killa
DEFINE MISSION 62 AT @SYN6             // Toreno's Last Flight
DEFINE MISSION 63 AT @SYN7             // Yay Ka-Boom-Boom
DEFINE MISSION 64 AT @SYN5             // Pier 69
DEFINE MISSION 65 AT @DRIV2            // T-Bone Mendez
DEFINE MISSION 66 AT @DRIV3            // Mike Toreno
DEFINE MISSION 67 AT @STEAL1           // Zeroing In
DEFINE MISSION 68 AT @STEAL2           // Test Drive
DEFINE MISSION 69 AT @STEAL4           // Customs Fast Track
DEFINE MISSION 70 AT @STEAL5           // Puncture Wounds
DEFINE MISSION 71 AT @DSKOOL           // Back to School
DEFINE MISSION 72 AT @ZERO1            // Air Raid
DEFINE MISSION 73 AT @ZERO2            // Supply Lines...
DEFINE MISSION 74 AT @ZERO4            // New Model Army
DEFINE MISSION 75 AT @TORENO1          // Monster
DEFINE MISSION 76 AT @TORENO2          // Highjack
DEFINE MISSION 77 AT @DES3             // Interdiction
DEFINE MISSION 78 AT @DESERT4          // Verdant Meadows
DEFINE MISSION 79 AT @DESERT6          // N.O.E.
DEFINE MISSION 80 AT @DESERT9          // Stowaway
DEFINE MISSION 81 AT @MAF4             // Black Project
DEFINE MISSION 82 AT @DES10            // Green Goo
DEFINE MISSION 83 AT @DESERT5          // Learning to Fly
DEFINE MISSION 84 AT @CASINO1          // Fender Ketchup
DEFINE MISSION 85 AT @CASINO2          // Explosive Situation
DEFINE MISSION 86 AT @CASINO3          // You've Had Your Chips
DEFINE MISSION 87 AT @CASINO7          // Fish in a Barrel
DEFINE MISSION 88 AT @CASINO4          // Don Peyote
DEFINE MISSION 89 AT @CASINO5          // Intensive Care
DEFINE MISSION 90 AT @CASINO6          // The Meat Business
DEFINE MISSION 91 AT @CASINO9          // Freefall
DEFINE MISSION 92 AT @CASIN10          // Saint Mark's Bistro
DEFINE MISSION 93 AT @VCRASH1          // Misappropriation
DEFINE MISSION 94 AT @VCR2             // High Noon
DEFINE MISSION 95 AT @DOC2             // Madd Dogg
DEFINE MISSION 96 AT @HEIST1           // Architectural Espionage
DEFINE MISSION 97 AT @HEIST3           // Key To Her Heart
DEFINE MISSION 98 AT @HEIST2           // Dam And Blast
DEFINE MISSION 99 AT @HEIST4           // Cop Wheels
DEFINE MISSION 100 AT @HEIST5          // Up, Up and Away!
DEFINE MISSION 101 AT @HEIST9          // Breaking the Bank at Caligula's
DEFINE MISSION 102 AT @MANSIO1         // A Home In The Hills
DEFINE MISSION 103 AT @MANSIO2         // Vertical Bird
DEFINE MISSION 104 AT @MANSIO3         // Home Coming
DEFINE MISSION 105 AT @MANSON5         // Cut Throat Business
DEFINE MISSION 106 AT @GROVE1          // Beat Down on B Dup
DEFINE MISSION 107 AT @GROVE2          // Grove 4 Life
DEFINE MISSION 108 AT @RIOT1           // Riot
DEFINE MISSION 109 AT @RIOT2           // Los Desperados
DEFINE MISSION 110 AT @FINALEA         // End Of The Line (1)
DEFINE MISSION 111 AT @FINALEB         // End Of The Line (2)
DEFINE MISSION 112 AT @FINALEC         // End Of The Line (3)
DEFINE MISSION 113 AT @SHRANGE         // Shooting range
DEFINE MISSION 114 AT @GYMLS           // Los Santos Gym Fight School
DEFINE MISSION 115 AT @GYMSF           // San Fierro Gym Fight School
DEFINE MISSION 116 AT @GYMLV           // Las Venturas Gym Fight School
DEFINE MISSION 117 AT @TRUCK           // Trucking
DEFINE MISSION 118 AT @QUARRY          // Quarry
DEFINE MISSION 119 AT @BOAT            // Boat School
DEFINE MISSION 120 AT @BSKOOL          // Bike School
DEFINE MISSION 121 AT @TAXIODD         // Taxi-Driver Sub-Mission
DEFINE MISSION 122 AT @AMBULAN         // Paramedic Sub-Mission
DEFINE MISSION 123 AT @FIRETRU         // Firefighter Sub-Mission
DEFINE MISSION 124 AT @COPCAR          // Vigilante Sub-Mission
DEFINE MISSION 125 AT @BURGJB          // Burglary Sub-Mission
DEFINE MISSION 126 AT @FREIGHT         // Freight Train Sub-Mission
DEFINE MISSION 127 AT @PIMP            // Pimping Sub-Mission
DEFINE MISSION 128 AT @BLOOD           // Arena Mission: Blood Ring
DEFINE MISSION 129 AT @KICKSTA         // Arena Mission: Kickstart
DEFINE MISSION 130 AT @TRIA            // Beat the Cock!
DEFINE MISSION 131 AT @BCOUR           // Courier
DEFINE MISSION 132 AT @MTBIKER         // The Chiliad Challenge
DEFINE MISSION 133 AT @STUNT           // BMX / NRG-500 STUNT Mission
DEFINE MISSION 134 AT @BUYPRO1         // Buy Properties Mission
DEFINE MISSION 135 AT @RAM_2P          // 2player Ram
DEFINE MISSION 136 AT @BIKE_2P         // 2player bike
DEFINE MISSION 137 AT @CARS_2P         // 2player cars
DEFINE MISSION 138 AT @HELI_2P         // 2player heli
DEFINE MISSION 139 AT @PEDS_2P         // 2player peds
DEFINE MISSION 140 AT @RUN_LS          // Run-around LS
DEFINE MISSION 141 AT @RUN_LV          // Run-around LV
DEFINE MISSION 142 AT @RUN_SF          // Run-around SF
DEFINE MISSION 143 AT @RUN_DE          // Run-around DE
DEFINE MISSION 144 AT @RUN_CO          // Run-around CO
DEFINE MISSION 145 AT @R_MILY          // Run-around (2player)
DEFINE MISSION 146 AT @R_SUZI          // Run-around (2player)
DEFINE MISSION 147 AT @R_BARB          // Run-around (2player)
DEFINE MISSION 148 AT @R_KYLIE         // Run-around (2player)
DEFINE MISSION 149 AT @R_COCH          // Run-around (2player)
DEFINE MISSION 150 AT @R_MICH          // Run-around (2player)

DEFINE EXTERNAL_SCRIPTS 78 // Use -1 in order not to compile AAA script
DEFINE SCRIPT PLAYER_PARACHUTE AT @PLCHUTE // 0
DEFINE SCRIPT PARACHUTE AT @PARACH     // 1
DEFINE SCRIPT BCESAR2 AT @BCESAR2      // 2
DEFINE SCRIPT BCESAR3 AT @COKEC        // 3
DEFINE SCRIPT SLOT_MACHINE AT @BANDIT  // 4
DEFINE SCRIPT ROULETTE AT @ROULETE     // 5
DEFINE SCRIPT OTB_SCRIPT AT @OTB_MSC   // 6
DEFINE SCRIPT ARCADE AT @ARCADE        // 7
DEFINE SCRIPT VENDING_MACHINE AT @VENDING // 8
DEFINE SCRIPT FOOD_VENDOR AT @FODVEND  // 9
DEFINE SCRIPT GATES_SCRIPT AT @GATEOS  // 10
DEFINE SCRIPT GYMBIKE AT @GYMBIKE      // 11
DEFINE SCRIPT GYMBENCH AT @GYMBENC     // 12
DEFINE SCRIPT GYMTREAD AT @GYMTREA     // 13
DEFINE SCRIPT GYMDUMB AT @GYMDUMB      // 14
DEFINE SCRIPT BASKETB AT @BBALL        // 15
DEFINE SCRIPT VIDPOK AT @VIDPOK        // 16
DEFINE SCRIPT BLACKJ AT @BLACKJ        // 17
DEFINE SCRIPT WHEELO AT @WOF           // 18
DEFINE SCRIPT DEALER AT @DEALER        // 19
DEFINE SCRIPT HOME_BRAINS AT @HMLES    // 20
DEFINE SCRIPT POOL_SCRIPT AT @POOL     // 21
DEFINE SCRIPT LOWR_CONT AT @LOWRCON    // 22
DEFINE SCRIPT BURG_BRAINS AT @BURGLAR  // 23
DEFINE SCRIPT GF_MEETING AT @GFMEET    // 24
DEFINE SCRIPT GF_DATE AT @GFDATE       // 25
DEFINE SCRIPT GF_SEX AT @GFSEX         // 26
DEFINE SCRIPT CASINO_AMBIENCE AT @CASAMB // 27
DEFINE SCRIPT BAR_AMBIENCE AT @BAR     // 28
DEFINE SCRIPT FOODBRAINS AT @PSHOP     // 29
DEFINE SCRIPT OTB_AMBIENCE AT @OTBSHP  // 30
DEFINE SCRIPT STRIP_AMBIENCE AT @STRIP // 31
DEFINE SCRIPT PLANES AT @PLANES        // 32
DEFINE SCRIPT TRAINS AT @TRAINS        // 33
DEFINE SCRIPT ZERO_AMBIENCE AT @RCSHOP // 34
DEFINE SCRIPT DANCE AT @DANCE          // 35
DEFINE SCRIPT SHOPKEEPER AT @SKBRAIN   // 36
DEFINE SCRIPT CUSTOMER_PANIC AT @FFPNC // 37
DEFINE SCRIPT BAR_STAFF AT @BARSTAF    // 38
DEFINE SCRIPT BOUNCER AT @BOUNCER      // 39
DEFINE SCRIPT OTB_STAFF AT @OTBSTAF    // 40
DEFINE SCRIPT PCHAIR AT @PCHAIR        // 41
DEFINE SCRIPT PCUSTOM AT @PCUSTOM      // 42
DEFINE SCRIPT OTBWTCH AT @OTBWTCH      // 43
DEFINE SCRIPT OTBSLP AT @OTBSLP        // 44
DEFINE SCRIPT OTBTILL AT @OTBTILL      // 45
DEFINE SCRIPT FBOOTHR AT @FBOOTHR      // 46
DEFINE SCRIPT FBOOTHL AT @FBOOTHL      // 47
DEFINE SCRIPT BARGUY AT @BARGUY        // 48
DEFINE SCRIPT PEDROUL AT @PEDROUL      // 49
DEFINE SCRIPT PEDCARD AT @PEDCARD      // 50
DEFINE SCRIPT PEDSLOT AT @PEDSLOT      // 51
DEFINE SCRIPT DANCER AT @DANCER        // 52
DEFINE SCRIPT STRIPW AT @STRIPW        // 53
DEFINE SCRIPT STRIPM AT @STRIPM        // 54
DEFINE SCRIPT BROWSE AT @BROWSE        // 55
DEFINE SCRIPT COPSIT AT @COPSIT        // 56
DEFINE SCRIPT COPLOOK AT @COPLOOK      // 57
DEFINE SCRIPT TICKET AT @TICKET        // 58
DEFINE SCRIPT SHOPPER AT @SHOPPER      // 59
DEFINE SCRIPT AMMU AT @AMUNAT          // 60
DEFINE SCRIPT TATTOO AT @TATTO         // 61
DEFINE SCRIPT BARBER AT @BARB          // 62
DEFINE SCRIPT WARDROBE AT @WARROBE     // 63
DEFINE SCRIPT CLOTHES AT @CLOTH        // 64
DEFINE SCRIPT JUNKFUD AT @JFUD         // 65
DEFINE SCRIPT CARMOD1 AT @CARMOD       // 66
DEFINE SCRIPT CRANE1 AT @CRANE1        // 67
DEFINE SCRIPT CRANE2 AT @CRANE2        // 68
DEFINE SCRIPT CRANE3 AT @CRANE3        // 69
DEFINE SCRIPT CARPARK1 AT @CARPRK1     // 70
DEFINE SCRIPT IMPOUND AT @IMPND        // 71
DEFINE SCRIPT VALET AT @VALET          // 72
DEFINE SCRIPT PHOTO AT @PHOTO          // 73
DEFINE SCRIPT PRISONR AT @PRISONR      // 74
DEFINE SCRIPT CAMERA AT @CAMERA        // 75
DEFINE SCRIPT DEBT AT @DEBT            // 76
DEFINE SCRIPT HOTDOG AT @HOTDOGV       // 77

DEFINE UNKNOWN_EMPTY_SEGMENT 0

DEFINE UNKNOWN_THREADS_MEMORY 2146

{$USE debug}

//-------------MAIN---------------
script_name 'MAIN'
Camera.DoFade(0, Fade.Out)
Stat.SetTotalNumberOfMissions(147)
Stat.SetProgressTotal(187)
Stat.SetMissionRespectTotal(1339)
Game.SetMaxWantedLevel(6)
set_deatharrest_state 0
Clock.SetTimeOfDay(8, 0)
Streaming.RequestCollision(2488.562, -1666.865)
Streaming.LoadScene(2488.562, -1666.865, 13.3757)
Stat.SetFloat(StatId.Energy, 800.0)
Stat.SetFloat(StatId.BodyMuscle, 50.0)
Stat.SetFloat(StatId.Fat, 200.0)
Stat.SetFloat(StatId.DrivingSkill, 0.0)
Stat.SetInt(StatId.CitiesPassed, 0)
Stat.SetInt(StatId.Respect, 0)
$player1 = Player.Create(0, 2488.562, -1666.865, 12.8757)
goto @MAIN_177
$player2 = Player.Create(1, 2488.562, -1666.865, 12.8757)

:MAIN_177
display_timer_bars 0
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang2, PedType.Gang1)
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang2, PedType.Gang3)
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang2, PedType.Gang8)
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang1, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Gang2)
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang1, PedType.Gang3)
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang1, PedType.Gang8)
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang3, PedType.Player1)
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang3, PedType.Gang2)
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang3, PedType.Gang1)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang3, PedType.Gang8)
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang8, PedType.Player1)
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang8, PedType.Gang2)
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang8, PedType.Gang1)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang8, PedType.Gang3)
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang4, PedType.Gang5)
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang4, PedType.Gang7)
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang5, PedType.Gang4)
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang7, PedType.Gang4)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang7, PedType.Gang5)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang5, PedType.Gang7)
$Players_Group = Player.GetGroup($player1)
$scplayer = Player.GetChar($player1)
Camera.SetBehindPlayer
Char.SetHeading($scplayer, 262.0)
Mission.LoadAndLaunchInternal(0) // Initial 1
wait 0
Mission.LoadAndLaunchInternal(1) // Initial 2
$show_race_selection = 0
$wasted_help1 = Pickup.Create(#INFO, PickupType.Once, 2027.77, -1420.52, 16.49)
$wasted_help2 = Pickup.Create(#INFO, PickupType.Once, 1180.85, -1325.57, 13.08)
$busted_help1 = Pickup.Create(#INFO, PickupType.Once, 1550.68, -1675.49, 15.01)
$chat_help1 = Pickup.Create(#INFO, PickupType.Once, 2431.17, -1668.75, 13.04)
$LA_ShootX = 292.33
$LA_ShootY = -35.39
$LA_ShootZ = 1000.5
$race_debug = 0
$courier_type = 1
$courier_type = 2
$lowrider_mission_flag = 0
$lowrider_minigame_unlocked = 0
$race_selection = 0
declare_mission_flag $onmission
set_var_int_to_constant $intro_blip_icon = 15
set_var_int_to_constant $sweet_blip_icon = 38
set_var_int_to_constant $ryder_blip_icon = 34
set_var_int_to_constant $smoke_blip_icon = 8
set_var_int_to_constant $strap_blip_icon = 28
set_var_int_to_constant $crash_blip_icon = 16
set_var_int_to_constant $cesar_blip_icon = 13
set_var_int_to_constant $cat_blip_icon = 12
set_var_int_to_constant $truth_blip_icon = 40
set_var_int_to_constant $wuzi_blip_icon = 46
set_var_int_to_constant $synd_blip_icon = 23
set_var_int_to_constant $garage_blip_icon = 43
set_var_int_to_constant $steal_blip_icon = 13
set_var_int_to_constant $trace_blip_icon = 33
set_var_int_to_constant $zero_blip_icon = 47
set_var_int_to_constant $casino_blip_icon = 44
set_var_int_to_constant $heist_blip_icon = 25
set_var_int_to_constant $Theheist_blip_icon = 52
set_var_int_to_constant $doc_blip_icon = 24
set_var_int_to_constant $desert_blip_icon = 42
set_var_int_to_constant $desert2_blip_icon = 5
set_var_int_to_constant $mansion_blip_icon = 15
set_var_int_to_constant $pilot_blip_icon = 36
set_var_int_to_constant $grove_blip_icon = 38
goto @MAIN_2039
$emmets_shop_blip = Blip.AddShortRangeSpriteForCoord(2447.364, -1974.496, 12.5469, RadarSprite.EmmetGun)
$barber_shop1 = Blip.AddShortRangeSpriteForCoord(2070.27, -1791.092, 17.1484, RadarSprite.Barbers)
$food_shop1 = Blip.AddShortRangeSpriteForCoord(2107.624, -1807.516, 21.2114, RadarSprite.Pizza)
$clothes_shop1 = Blip.AddShortRangeSpriteForCoord(2243.807, -1668.567, 20.0313, RadarSprite.Tshirt)
$intro_contact_blip = Blip.AddSpriteForContactPoint($introX, $introY, $introZ, $intro_blip_icon)
$sweet_contact_blip = Blip.AddSpriteForContactPoint($sweetX, $sweetY, $sweetZ, $sweet_blip_icon)
$ryder_contact_blip = Blip.AddSpriteForContactPoint($ryderX, $ryderY, $ryderZ, $ryder_blip_icon)
$smoke_contact_blip = Blip.AddSpriteForContactPoint($smokeX, $smokeY, $smokeZ, $smoke_blip_icon)
$strap_contact_blip = Blip.AddSpriteForContactPoint($strapX, $strapY, $strapZ, $strap_blip_icon)
$crash_contact_blip = Blip.AddSpriteForContactPoint($crashX, $crashY, $crashZ, $crash_blip_icon)
$cesar_contact_blip = Blip.AddSpriteForContactPoint($cesarX, $cesarY, $cesarZ, $cesar_blip_icon)
$bcrash_contact_blip = Blip.AddSpriteForContactPoint($bcrashX, $bcrashY, $bcrashZ, $crash_blip_icon)
$cat_contact_blip = Blip.AddSpriteForContactPoint($catX, $catY, $catZ, $cat_blip_icon)
$cat_contact_blip = Blip.AddSpriteForContactPoint($511, $517, $523, $cat_blip_icon)
$truth_contact_blip = Blip.AddSpriteForContactPoint($truthX, $truthY, $truthZ, $truth_blip_icon)
$bcesar_contact_blip = Blip.AddSpriteForContactPoint($bcesarX, $bcesarY, $bcesarZ, $cesar_blip_icon)
$scrash_contact_blip = Blip.AddSpriteForContactPoint($garageX, $garageY, $garageZ, $crash_blip_icon)
$wuzi_contact_blip = Blip.AddSpriteForContactPoint($wuziX, $wuziY, $wuziZ, $wuzi_blip_icon)
$zero_contact_blip = Blip.AddSpriteForContactPoint($zeroX, $zeroY, $zeroZ, $zero_blip_icon)
$steal_contact_blip = Blip.AddSpriteForContactPoint($stealX, $stealY, $stealZ, $steal_blip_icon)
$garage_contact_blip = Blip.AddSpriteForContactPoint($garageX, $garageY, $garageZ, $garage_blip_icon)
$synd_contact_blip = Blip.AddSpriteForContactPoint($syndX, $syndY, $syndZ, $crash_blip_icon)
$trace_contact_blip = Blip.AddSpriteForContactPoint($testsX, $testsY, $testsZ, $trace_blip_icon)
$trace_contact_blip2 = Blip.AddSpriteForContactPoint($testsX, $testsY, $testsZ, $trace_blip_icon)
$desert_contact_blip = Blip.AddSpriteForContactPoint($desertX, $desertY, $desertZ, $desert_blip_icon)
$desert2_contact_blip = Blip.AddSpriteForContactPoint($desert2X, $desert2Y, $desert2Z, $desert2_blip_icon)
$casino_contact_blip = Blip.AddSpriteForContactPoint($casinoX, $casinoY, $casinoZ, $casino_blip_icon)
$Theheist_contact_blip = Blip.AddSpriteForContactPoint($TheheistX, $TheheistY, $TheheistZ, $Theheist_blip_icon)
$doc_contact_blip = Blip.AddSpriteForContactPoint($docX, $docY, $docZ, $doc_blip_icon)
$vcrash_contact_blip = Blip.AddSpriteForContactPoint($vcrashX, $vcrashY, $vcrashZ, $crash_blip_icon)
$heist_contact_blip = Blip.AddSpriteForContactPoint($heistX, $heistY, $heistZ, $heist_blip_icon)
$mansion_contact_blip = Blip.AddSpriteForContactPoint($mansionX, $mansionY, $mansionZ, $mansion_blip_icon)
$grove_contact_blip = Blip.AddSpriteForContactPoint($mansionX, $mansionY, $mansionZ, $mansion_blip_icon)
$pilot_contact_blip = Blip.AddSpriteForContactPoint($pilotx, $piloty, $pilotz, $pilot_blip_icon)
$dschool_contact_blip = Blip.AddSpriteForContactPoint(-2031.2, -118.0, 34.3, RadarSprite.School)
$boat_school_blip = Blip.AddShortRangeSpriteForContactPoint($boatsX, $boatsY, $boatsZ, RadarSprite.School)
$bike_school_blip = Blip.AddShortRangeSpriteForContactPoint($boatsX, $boatsY, $boatsZ, RadarSprite.School)
$gym_contact_blip = Blip.AddSpriteForContactPoint(2228.0, -1722.811, 12.5543, $sweet_blip_icon)
$1722 = Blip.AddShortRangeSpriteForContactPoint($save_pickupX[5], $save_pickupY[5], $save_pickupZ[5], RadarSprite.SaveGame)
$quarry_contact_blip = Blip.AddShortRangeSpriteForContactPoint($quarryX, $quarryY, $quarryZ, RadarSprite.Bulldozer)
$mod_garage_blips = Blip.AddShortRangeSpriteForCoord(-2728.5, 212.2, 3.4, RadarSprite.ModGarage)
$2589 = Blip.AddShortRangeSpriteForCoord(-2728.5, 212.2, 3.4, RadarSprite.ModGarage)
$showroom_contact_blip = Blip.AddSpriteForContactPoint($propertyX[0], $propertyY[0], $propertyZ[0], RadarSprite.PropertyG)
$zero_contact_blip = Blip.AddSpriteForContactPoint($propertyX[1], $propertyY[1], $propertyZ[1], RadarSprite.PropertyG)
$airstrip_contact_blip = Blip.AddSpriteForContactPoint($propertyX[2], $propertyY[2], $propertyZ[2], RadarSprite.PropertyG)
$tucking_contact_blip = Blip.AddShortRangeSpriteForCoord($truckX, $truckY, $truckZ, RadarSprite.Truck)
$territory_pickup = Pickup.CreateProtection(2508.359, -1676.538, 12.579, 10000, $territory_cash)
$millies_keycard_pickup = Pickup.Create(#KEYCARD, PickupType.Once, 0.0, 0.0, 0.0)
$Thekeycard_contact_blip = Blip.AddSpriteForContactPoint(2035.724, 2727.96, 9.8281, $Theheist_blip_icon)
$save_housepickup[0] = Pickup.CreateLockedProperty($propertyX[0], $propertyY[0], $propertyZ[0], 'PROP_4')
$save_housepickup[1] = Pickup.CreateLockedProperty($propertyX[1], $propertyY[1], $propertyZ[1], 'PROP_4')
$save_housepickup[2] = Pickup.CreateLockedProperty($propertyX[2], $propertyY[2], $propertyZ[2], 'PROP_4')
$2705 = Object.Create(#AD_FLATDOOR, 1833.36, -1995.45, 12.5)
$riot2_door = Object.Create(#AD_FLATDOOR, 1819.81, -1994.66, 12.5)
$2707 = Object.Create(#AD_FLATDOOR, 1827.68, -1980.0, 12.5)
$2708 = Object.Create(#AD_FLATDOOR, 1851.84, -1990.67, 12.5)
$2709 = Object.Create(#AD_FLATDOOR, 1867.29, -1984.96, 12.5)
$2710 = Object.Create(#AD_FLATDOOR, 1866.52, -1998.53, 12.5)
$2711 = Object.Create(#AD_FLATDOOR, 1899.75, -1984.95, 12.5)
$2712 = Object.Create(#AD_FLATDOOR, 1914.39, -1992.82, 12.5)
$2713 = Object.Create(#AD_FLATDOOR, 1899.01, -1998.5, 12.5)
$2714 = Object.Create(#AD_FLATDOOR, 1900.89, -2020.11, 12.5)
$2715 = Object.Create(#AD_FLATDOOR, 1914.4, -2020.91, 12.5)
$2716 = Object.Create(#AD_FLATDOOR, 1906.54, -2035.52, 12.5)
$2717 = Object.Create(#AD_FLATDOOR, 1851.86, -2020.14, 12.5)
$2718 = Object.Create(#AD_FLATDOOR, 1865.42, -2020.89, 12.5)
$2719 = Object.Create(#AD_FLATDOOR, 1857.55, -2035.52, 12.5)

:MAIN_2039
Path.SwitchRoadsOff(2500.0, -1677.0, 20.0, 2430.0, -1653.0, 0.0)
$flag_store_day_food = 0
$total_food_bought_per_day_shops = 0
$iSetPizzaPanic = 0
$SHOPS_TEXT_SCALEX = 1.0
$SHOPS_TEXT_SCALEY = 1.6
$TEXT_COL_SELECT_R = 200
$TEXT_COL_SELECT_G = 200
$TEXT_COL_SELECT_B = 200
$TEXT_COL_SELECT_A = 255
$TEXT_COL_DULL_R = 100
$TEXT_COL_DULL_G = 100
$TEXT_COL_DULL_B = 100
$TEXT_COL_DULL_A = 255
$TEXT_COL_NA_R = 20
$TEXT_COL_NA_G = 20
$TEXT_COL_NA_B = 20
$TEXT_COL_NA_A = 255
$gen_car20 = CarGenerator.Create(2435.302, -1671.848, 12.8007, 90.0, 432, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($gen_car20, 0)
$hyfra_gen1 = CarGenerator.Create(2527.2, -1677.1, 19.2, 90.0, 520, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($hyfra_gen1, 0)
$load_and_launch_mission_if_poss = -1
register_streamed_script_internal 0
register_streamed_script_internal 1
register_streamed_script_internal 2
register_streamed_script_internal 3
register_streamed_script_internal 4
register_streamed_script_internal 5
register_streamed_script_internal 6
register_streamed_script_internal 7
register_streamed_script_internal 8
register_streamed_script_internal 9
register_streamed_script_internal 10
register_streamed_script_internal 11
register_streamed_script_internal 12
register_streamed_script_internal 13
register_streamed_script_internal 14
register_streamed_script_internal 15
register_streamed_script_internal 16
register_streamed_script_internal 17
register_streamed_script_internal 18
register_streamed_script_internal 19
register_streamed_script_internal 20
register_streamed_script_internal 21
register_streamed_script_internal 22
register_streamed_script_internal 23
register_streamed_script_internal 24
register_streamed_script_internal 25
register_streamed_script_internal 26
register_streamed_script_internal 27
register_streamed_script_internal 28
register_streamed_script_internal 29
register_streamed_script_internal 30
register_streamed_script_internal 31
register_streamed_script_internal 32
register_streamed_script_internal 33
register_streamed_script_internal 34
register_streamed_script_internal 35
register_streamed_script_internal 36
register_streamed_script_internal 37
register_streamed_script_internal 38
register_streamed_script_internal 39
register_streamed_script_internal 40
register_streamed_script_internal 41
register_streamed_script_internal 42
register_streamed_script_internal 43
register_streamed_script_internal 44
register_streamed_script_internal 45
register_streamed_script_internal 46
register_streamed_script_internal 47
register_streamed_script_internal 48
register_streamed_script_internal 49
register_streamed_script_internal 50
register_streamed_script_internal 51
register_streamed_script_internal 52
register_streamed_script_internal 53
register_streamed_script_internal 54
register_streamed_script_internal 55
register_streamed_script_internal 56
register_streamed_script_internal 57
register_streamed_script_internal 58
register_streamed_script_internal 59
register_streamed_script_internal 60
register_streamed_script_internal 61
register_streamed_script_internal 62
register_streamed_script_internal 63
register_streamed_script_internal 64
register_streamed_script_internal 65
register_streamed_script_internal 66
register_streamed_script_internal 67
register_streamed_script_internal 68
register_streamed_script_internal 69
register_streamed_script_internal 70
register_streamed_script_internal 71
register_streamed_script_internal 72
register_streamed_script_internal 73
register_streamed_script_internal 74
register_streamed_script_internal 75
register_streamed_script_internal 76
register_streamed_script_internal 77
StreamedScript.AllocateToObject(4, #KB_BANDIT_U, 100, 6.0, 1)
StreamedScript.AllocateToObject(5, #ROULETTE_TBL, 60, 50.0, 1)
StreamedScript.AllocateToObject(6, #OTB_MACHINE, 100, 4.0, -1)
StreamedScript.AllocateToObject(7, #CJ_COIN_OP_3, 100, 4.0, -1)
StreamedScript.AllocateToObject(7, #CJ_COIN_OP_2, 100, 4.0, -1)
StreamedScript.AllocateToObject(7, #CJ_COIN_OP_1, 100, 4.0, -1)
StreamedScript.AllocateToObject(7, #CJ_COIN_OP, 100, 4.0, -1)
StreamedScript.AllocateToObject(7, #SWANK_CONSOLE, 100, 4.0, -1)
StreamedScript.AllocateToObject(7, #SNESISH, 100, 4.0, -1)
StreamedScript.AllocateToObject(7, #LOW_CONSOLE, 100, 4.0, -1)
StreamedScript.AllocateToObject(8, #VENDMACHFD, 100, 6.0, -1)
StreamedScript.AllocateToObject(8, #VENDMACH, 100, 6.0, -1)
StreamedScript.AllocateToObject(8, #VENDIN3, 100, 6.0, -1)
StreamedScript.AllocateToObject(8, #CJ_SPRUNK1, 100, 6.0, -1)
StreamedScript.AllocateToObject(8, #CJ_CANDYVENDOR, 100, 6.0, -1)
StreamedScript.AllocateToObject(8, #CJ_EXT_CANDY, 100, 6.0, -1)
StreamedScript.AllocateToObject(8, #CJ_EXT_SPRUNK, 100, 6.0, -1)
StreamedScript.AllocateToObject(9, #ICESCART_PROP, 100, 70.0, -1)
StreamedScript.AllocateToObject(9, #CHILLIDOGCART, 100, 70.0, -1)
StreamedScript.AllocateToObject(9, #NOODLECART_PROP, 100, 70.0, -1)
$open_gate_now_flag = 0
StreamedScript.AllocateToObject(10, #GATE_AUTOL, 100, 80.0, -1)
StreamedScript.AllocateToObject(10, #GATE_AUTOR, 100, 80.0, -1)
StreamedScript.AllocateToObject(11, #GYM_BIKE, 100, 20.0, -1)
StreamedScript.AllocateToObject(12, #GYM_BENCH1, 100, 20.0, -1)
StreamedScript.AllocateToObject(13, #GYM_TREADMILL, 100, 20.0, -1)
StreamedScript.AllocateToObject(14, #GYM_MAT1, 100, 20.0, -1)
StreamedScript.AllocateToObject(15, #BSKBALL_LAX, 100, 70.0, -1)
StreamedScript.AllocateToObject(15, #BSKBALLHUB_LAX01, 100, 70.0, -1)
StreamedScript.AllocateToObject(15, #VGSXREFBBALLNET, 100, 70.0, -1)
StreamedScript.AllocateToObject(15, #VGSXREFBBALLNET2, 100, 70.0, -1)
StreamedScript.AllocateToObject(21, #K_POOLTABLESM, 100, 70.0, -1)
StreamedScript.AllocateToObject(16, #NEIL_SLOT, 100, 4.0, 1)
StreamedScript.AllocateToObject(16, #CJ_SLOT_BANK, 100, 4.0, 1)
StreamedScript.AllocateToObject(17, #BLCK_JACK, 50, 70.0, 1)
StreamedScript.AllocateToObject(18, #WHEEL_O_FORTUNE, 50, 70.0, 1)
$territory_cash = 1
StreamedScript.RegisterScriptBrainForCodeUse(23, 'HOUSE')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(52, 'DANCER')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(41, 'PCHAIR')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(42, 'PCUSTOM')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(43, 'OTBWTCH')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(44, 'OTBSLP')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(45, 'OTBTILL')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(46, 'FBOOTHR')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(47, 'FBOOTHL')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(48, 'BARGUY')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(49, 'PEDROUL')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(50, 'PEDCARD')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(51, 'PEDSLOT')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(53, 'STRIPW')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(54, 'STRIPM')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(55, 'BROWSE')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(56, 'COPSIT')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(57, 'COPLOOK')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(58, 'TICKET')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(59, 'SHOPPER')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(73, 'PHOTO')
StreamedScript.RegisterAttractorScriptBrainForCodeUse(74, 'PRISONR')
StreamedScript.AllocateToRandomPed(19, 28, 100)
StreamedScript.AllocateToRandomPed(19, 29, 100)
StreamedScript.AllocateToRandomPed(19, 30, 100)
StreamedScript.AllocateToRandomPed(19, 254, 100)
StreamedScript.AllocateToRandomPed(77, 168, 100)
Streaming.AttachAnimsToModel(28, 'DEALER')
Streaming.AttachAnimsToModel(29, 'DEALER')
Streaming.AttachAnimsToModel(30, 'DEALER')
Streaming.AttachAnimsToModel(254, 'DEALER')
Streaming.RequestIpl("CRACK")
World.SetVisibilityOfClosestObjectOfType(-2166.86, -236.5, 40.86, 40.0, #CRACKFACT_SFS, True)
World.SetVisibilityOfClosestObjectOfType(-2185.49, -215.55, 34.31, 40.0, #CF_EXT_DEM_SFS, False)
World.SetVisibilityOfClosestObjectOfType(-2166.86, -236.5, 40.86, 40.0, #LODCRACKFACT_SFS, True)
World.SetVisibilityOfClosestObjectOfType(-2185.49, -215.55, 34.31, 40.0, #LODEXT_DEM_SFS, False)
start_new_script @TPLAYER 
start_new_script @ODDVEH 
start_new_script @R3 
start_new_script @GYM 
start_new_script @SHOOT 
start_new_script @BLOODR 
start_new_script @HOTR 
start_new_script @KICKS 
start_new_script @PSAVE1 
start_new_script @FLOW 
start_new_script @HELP 
start_new_script @COLLS 
start_new_script @CRANES 
start_new_script @BUY_PRO 
start_new_script @VALET_L 
start_new_script @ADPLANE 
start_new_script @TRAINSL 
start_new_script @IMPND_L 
start_new_script @OPENUP 
start_new_script @TRI 
launch_mission @Noname_1
launch_mission @Noname_2
launch_mission @Noname_3
launch_mission @Noname_4
launch_mission @Noname_5
launch_mission @Noname_6
launch_mission @APCHECK
launch_mission @GFINIT
launch_mission @Noname_7
launch_mission @Noname_8
launch_mission @HJ
launch_mission @CELLFON
Camera.DoFade(0, Fade.Out)
Hud.DisplayZoneNames(False)
wait 0
wait 0
Game.SetMaxWantedLevel(4)
if 
  Player.IsPlaying($player1)
goto_if_false @MAIN_4125
Weather.ForceNow(WeatherType.SunnyLa)
Player.GiveClothesOutsideShop($player1, "VEST", "VEST", BodyPart.Torso)
Player.GiveClothesOutsideShop($player1, "JEANSDENIM", "JEANS", BodyPart.Legs)
Player.GiveClothesOutsideShop($player1, "SNEAKERBINCBLK", "SNEAKER", BodyPart.Shoes)
Player.GiveClothesOutsideShop($player1, "PLAYER_FACE", "HEAD", BodyPart.Head)
$flag_bought_from_binco = 1
Player.BuildModel($player1)
Player.StoreClothesState
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)
$game_starts_from_scratch = 0
Mission.LoadAndLaunchInternal(2) // Intro
$activate_mobile_phone = 1
if 
  Player.IsPlaying($player1)
goto_if_false @MAIN_4116
Streaming.SetAreaVisible(0)
Player.SetControl($player1, True)

:MAIN_4116
Weather.Release
goto @MAIN_4132

:MAIN_4125
$number_of_instances_of_streamed_script = 0

:MAIN_4132
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @MAIN_5865
$main_visible_area = Streaming.GetAreaVisible()
$Return_cities_passed = Stat.GetInt(StatId.CitiesPassed)
$weekday = Clock.GetCurrentDayOfWeek()
$current_Language = Game.GetCurrentLanguage()
$im_players_city = Player.GetCityIsIn($player1)
$timer_wil = Clock.GetGameTimer()
if 
  $flag_store_day_food == 1
goto_if_false @MAIN_4271
set_var_int_to_var_int $5282 = $timer_wil
sub_int_var_from_int_var $5282 -= $game_timer_wil
if 
  $5282 >= 180000
goto_if_false @MAIN_4271
$flag_store_day_food = 0
$total_food_bought_per_day_shops = 0
$5282 = 0
$found_a_food_shop = 0

:MAIN_4271
if or
  Garage.IsOpen('BODLAWN')
  Garage.IsOpen('MODLAST')
  Garage.IsOpen('MDSSFSE')
  Garage.IsOpen('MDS1SFS')
  Garage.IsOpen('VECMOD')
goto_if_false @MAIN_4393
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(66)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4386
StreamedScript.Stream(66)
if 
  StreamedScript.HasLoaded(66)
goto_if_false @MAIN_4386
StreamedScript.StartNew(66)

:MAIN_4386
goto @MAIN_4397

:MAIN_4393
StreamedScript.MarkAsNoLongerNeeded(66)

:MAIN_4397
if 
  Char.HasGotWeapon($scplayer, WeaponType.Parachute)
goto_if_false @MAIN_4471
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(0)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4464
StreamedScript.Stream(0)
if 
  StreamedScript.HasLoaded(0)
goto_if_false @MAIN_4464
StreamedScript.StartNew(0)

:MAIN_4464
goto @MAIN_4475

:MAIN_4471
StreamedScript.MarkAsNoLongerNeeded(0)

:MAIN_4475
if and
  Char.HasGotWeapon($scplayer, WeaponType.Camera)
  $onmission == 0
goto_if_false @MAIN_4556
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(75)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4549
StreamedScript.Stream(75)
if 
  StreamedScript.HasLoaded(75)
goto_if_false @MAIN_4549
StreamedScript.StartNew(75)

:MAIN_4549
goto @MAIN_4560

:MAIN_4556
StreamedScript.MarkAsNoLongerNeeded(75)

:MAIN_4560
if 
  $onmission == 0
goto_if_false @MAIN_5552
if 
  10 > $flag_synd_mission_counter
goto_if_false @MAIN_5029
if 
  $cat_counter > 2
goto_if_false @MAIN_5029
if 
  $courier_timer > 400
goto_if_false @MAIN_4957
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(2)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4795
if 
  $bcesar3_mission_flag == 0
goto_if_false @MAIN_4795
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(3)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4795
$weekday = Clock.GetCurrentDayOfWeek()
$hours, $minutes = Clock.GetTimeOfDay()
if or
  $weekday == 4
  $weekday == 7
goto_if_false @MAIN_4795
if or
  $hours >= 19
  7 > $hours
goto_if_false @MAIN_4795
StreamedScript.Stream(3)
if 
  StreamedScript.HasLoaded(3)
goto_if_false @MAIN_4795
StreamedScript.StartNew(3)
$bcesar3_mission_flag = 1

:MAIN_4795
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(3)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4957
if 
  $bcesar2_mission_flag == 0
goto_if_false @MAIN_4957
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(2)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4957
$weekday = Clock.GetCurrentDayOfWeek()
$hours, $minutes = Clock.GetTimeOfDay()
if or
  $weekday == 2
  $weekday == 6
goto_if_false @MAIN_4957
if and
  $hours >= 5
  17 > $hours
goto_if_false @MAIN_4957
StreamedScript.Stream(2)
if 
  StreamedScript.HasLoaded(2)
goto_if_false @MAIN_4957
StreamedScript.StartNew(2)
$bcesar2_mission_flag = 1

:MAIN_4957
$weekday = Clock.GetCurrentDayOfWeek()
if or
  $weekday == 1
  $weekday == 3
  $weekday == 5
goto_if_false @MAIN_5022
$bcesar2_mission_flag = 0
$bcesar3_mission_flag = 0
$courier_timer = 0
goto @MAIN_5029

:MAIN_5022
$courier_timer += 1

:MAIN_5029
if and
  $lowrider_minigame_unlocked == 1
  $onmission == 0
goto_if_false @MAIN_5250
if 
  $lowrider_mission_flag == 0
goto_if_false @MAIN_5189
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(22)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_5182
if 
  Player.IsPlaying($player1)
goto_if_false @MAIN_5182
if 
  Char.LocateAnyMeans2D($scplayer, 1812.369, -1929.922, 80.0, 80.0, False)
goto_if_false @MAIN_5182
StreamedScript.Stream(22)
if 
  StreamedScript.HasLoaded(22)
goto_if_false @MAIN_5182
StreamedScript.StartNew(22)
$lowrider_mission_flag = 1

:MAIN_5182
goto @MAIN_5250

:MAIN_5189
if 
  Player.IsPlaying($player1)
goto_if_false @MAIN_5250
if 
  not Char.LocateAnyMeans2D($scplayer, 1812.369, -1929.922, 500.0, 500.0, False)
goto_if_false @MAIN_5250
$lowrider_mission_flag = 0

:MAIN_5250
switch_start $load_and_launch_mission_if_poss {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @MAIN_5545 {caseNum1} 0 {caseLabel1} @MAIN_5378 {caseNum2} 1 {caseLabel2} @MAIN_5396 {caseNum3} 2 {caseLabel3} @MAIN_5414 {caseNum4} 3 {caseLabel4} @MAIN_5432 {caseNum5} 4 {caseLabel5} @MAIN_5450 {caseNum6} 5 {caseLabel6} @MAIN_5468 {caseNum7} 6 {caseLabel7} @MAIN_5486
switch_continued 7 {caseLabel1} @MAIN_5504 {caseNum2} -1 {caseLabel2} @MAIN_5545 {caseNum3} -1 {caseLabel3} @MAIN_5545 {caseNum4} -1 {caseLabel4} @MAIN_5545 {caseNum5} -1 {caseLabel5} @MAIN_5545 {caseNum6} -1 {caseLabel6} @MAIN_5545 {caseNum7} -1 {caseLabel7} @MAIN_5545 {caseNum8} -1 {caseLabel8} @MAIN_5545 {caseNum9} -1 {caseLabel9} @MAIN_5545

:MAIN_5378
$onmission = 1
Mission.LoadAndLaunchInternal(3) // Video Game: They Crawled From Uranus
goto @MAIN_5545

:MAIN_5396
$onmission = 1
Mission.LoadAndLaunchInternal(4) // Video Game: Duality
goto @MAIN_5545

:MAIN_5414
$onmission = 1
Mission.LoadAndLaunchInternal(5) // Video Game: Go Go Space Monkey
goto @MAIN_5545

:MAIN_5432
$onmission = 1
Mission.LoadAndLaunchInternal(6) // Video Game: Let's Get Ready To Bumble
goto @MAIN_5545

:MAIN_5450
$onmission = 1
Mission.LoadAndLaunchInternal(7) // Video Game: Inside Track Betting
goto @MAIN_5545

:MAIN_5468
$onmission = 1
Mission.LoadAndLaunchInternal(8) // Pool
goto @MAIN_5545

:MAIN_5486
$onmission = 1
Mission.LoadAndLaunchInternal(9) // Lowrider (Bet And Dance)
goto @MAIN_5545

:MAIN_5504
$onmission = 1
Text.PrintBig('BEEFY', 1000, TextStyle.BottomRight)
LITCAS_267()
Mission.LoadAndLaunchInternal(10) // Beefy Baron
goto @MAIN_5545

:MAIN_5545
goto @MAIN_5591

:MAIN_5552
if or
  $bcesar2_mission_flag == 1
  $bcesar3_mission_flag == 1
goto_if_false @MAIN_5584
$courier_timer = 0

:MAIN_5584
$load_and_launch_mission_if_poss = -1

:MAIN_5591
if 
  Player.IsPlaying($player1)
goto_if_false @MAIN_5865
if 
  Char.IsInArea2D($scplayer, 2037.536, 2365.373, 2117.177, 2483.922, False)
goto_if_false @MAIN_5701
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(70)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_5694
StreamedScript.Stream(70)
if 
  StreamedScript.HasLoaded(70)
goto_if_false @MAIN_5694
StreamedScript.StartNew(70)

:MAIN_5694
goto @MAIN_5705

:MAIN_5701
StreamedScript.MarkAsNoLongerNeeded(70)

:MAIN_5705
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @MAIN_5865
if 
  Char.LocateAnyMeans3D($scplayer, 658.0068, -1866.313, 4.4537, 15.0, 15.0, 15.0, False)
goto_if_false @MAIN_5840
if 
  $gym_at_beach == 0
goto_if_false @MAIN_5833
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @MAIN_5826
$gym_final_month = 0.0

:MAIN_5826
$gym_at_beach = 1

:MAIN_5833
goto @MAIN_5865

:MAIN_5840
if 
  $gym_at_beach == 1
goto_if_false @MAIN_5865
$gym_at_beach = 0

:MAIN_5865
goto @MAIN_4132

:INT
script_name 'INT'

:INT_11
wait $mission_trigger_wait_time
if 
  $flag_intro_mission_counter == 2
goto_if_false @INT_36
terminate_this_script 

:INT_36
if 
  Player.IsPlaying($player1)
goto_if_false @INT_292
if 
  $onmission == 0
goto_if_false @INT_292
if 
  Char.LocateOnFoot3D($scplayer, $introX, $introY, $introZ, 1.0, 1.0, 2.0, False)
goto_if_false @INT_182
if 
  Player.CanStartMission($player1)
goto_if_false @INT_182
if 
  $flag_intro_mission_counter == 0
goto_if_false @INT_182
$onmission = 1
Text.PrintBig('INTRO_1', 1000, TextStyle.BottomRight)
PSAVE1_1140()
Text.ClearHelp
Mission.LoadAndLaunchInternal(11) // Big Smoke

:INT_182
if 
  Char.LocateOnFoot3D($scplayer, $ryderX, $ryderY, $ryderZ, 1.2, 1.2, 2.0, False)
goto_if_false @INT_292
if 
  Player.CanStartMission($player1)
goto_if_false @INT_292
if 
  $flag_intro_mission_counter == 1
goto_if_false @INT_292
$onmission = 1
Text.PrintBig('INTRO_2', 1000, TextStyle.BottomRight)
PSAVE1_1498()
Mission.LoadAndLaunchInternal(12) // Ryder

:INT_292
goto @INT_11

:SWEET
script_name 'SWEET'

:SWEET_11
wait $mission_trigger_wait_time
if 
  $flag_sweet_mission_counter == 9
goto_if_false @SWEET_36
terminate_this_script 

:SWEET_36
if 
  Player.IsPlaying($player1)
goto_if_false @SWEET_807
if 
  $onmission == 0
goto_if_false @SWEET_807
if 
  Char.LocateOnFoot3D($scplayer, $sweetX, $sweetY, $sweetZ, 1.2, 1.2, 2.0, False)
goto_if_false @SWEET_684
if 
  Player.CanStartMission($player1)
goto_if_false @SWEET_684
if 
  $flag_sweet_mission_counter == 0
goto_if_false @SWEET_180
$onmission = 1
Text.PrintBig('SWEET_1', 1000, TextStyle.BottomRight)
PSAVE1_1320()
Mission.LoadAndLaunchInternal(13) // Tagging Up Turf

:SWEET_180
if 
  $flag_sweet_mission_counter == 1
goto_if_false @SWEET_232
$onmission = 1
Text.PrintBig('SWEET1B', 1000, TextStyle.BottomRight)
PSAVE1_1320()
Mission.LoadAndLaunchInternal(14) // Cleaning The Hood

:SWEET_232
if 
  $flag_sweet_mission_counter == 2
goto_if_false @SWEET_284
$onmission = 1
Text.PrintBig('SWEET_3', 1000, TextStyle.BottomRight)
PSAVE1_1320()
Mission.LoadAndLaunchInternal(15) // Drive-Thru

:SWEET_284
if 
  $flag_sweet_mission_counter == 3
goto_if_false @SWEET_336
$onmission = 1
Text.PrintBig('SWEET_2', 1000, TextStyle.BottomRight)
PSAVE1_1320()
Mission.LoadAndLaunchInternal(16) // Nines And AK's

:SWEET_336
if 
  $flag_sweet_mission_counter == 4
goto_if_false @SWEET_388
$onmission = 1
Text.PrintBig('SWEET_4', 1000, TextStyle.BottomRight)
PSAVE1_1320()
Mission.LoadAndLaunchInternal(17) // Drive-By

:SWEET_388
if 
  $flag_sweet_mission_counter == 5
goto_if_false @SWEET_440
$onmission = 1
Text.PrintBig('SWEET_5', 1000, TextStyle.BottomRight)
PSAVE1_1320()
Mission.LoadAndLaunchInternal(18) // Sweet's Girl

:SWEET_440
if 
  $flag_sweet_mission_counter == 6
goto_if_false @SWEET_492
$onmission = 1
Text.PrintBig('SWEET_6', 1000, TextStyle.BottomRight)
PSAVE1_1320()
Mission.LoadAndLaunchInternal(19) // Cesar Vialpando

:SWEET_492
if 
  $flag_sweet_mission_counter == 8
goto_if_false @SWEET_684
$returned_respect = Game.FindMaxNumberOfGroupMembers()
if 
  $returned_respect > 1
goto_if_false @SWEET_632
$hours, $minutes = Clock.GetTimeOfDay()
if and
  $hours >= 9
  17 > $hours
goto_if_false @SWEET_609
Text.ClearPrints
$onmission = 1
Text.PrintBig('SWEET_7', 1000, TextStyle.BottomRight)
PSAVE1_1320()
Mission.LoadAndLaunchInternal(20) // Los Sepulcros
goto @SWEET_625

:SWEET_609
Text.PrintNow('MTIME3', 1000, 1)

:SWEET_625
goto @SWEET_684

:SWEET_632
Text.PrintNow('MOREREP', 1000, 1)
if 
  $respect_help_played == 0
goto_if_false @SWEET_684
Text.PrintHelp('HELP101')
$respect_help_played = 1

:SWEET_684
if 
  Char.LocateOnFoot3D($scplayer, 1365.251, -1280.12, 12.5469, 1.2, 1.2, 2.0, False)
goto_if_false @SWEET_807
if 
  Player.CanStartMission($player1)
goto_if_false @SWEET_807
if and
  $flag_sweet_mission_counter == 7
  $1346 == 1
goto_if_false @SWEET_807
$onmission = 1
Text.PrintBig('CRASH_2', 1000, TextStyle.BottomRight)
LITCAS_267()
Mission.LoadAndLaunchInternal(21) // Doberman

:SWEET_807
goto @SWEET_11

:CRASH
script_name 'CRASH'

:CRASH_11
wait $mission_trigger_wait_time
if 
  $flag_crash_mission_counter == 2
goto_if_false @CRASH_36
terminate_this_script 

:CRASH_36
if 
  Player.IsPlaying($player1)
goto_if_false @CRASH_232
if 
  $onmission == 0
goto_if_false @CRASH_232
if 
  Char.LocateOnFoot3D($scplayer, $crashX, $crashY, $crashZ, 1.2, 1.2, 2.0, False)
goto_if_false @CRASH_232
if 
  Player.CanStartMission($player1)
goto_if_false @CRASH_232
if 
  $flag_crash_mission_counter == 0
goto_if_false @CRASH_180
$onmission = 1
Text.PrintBig('CRASH_1', 1000, TextStyle.BottomRight)
PSAVE1_1836()
Mission.LoadAndLaunchInternal(22) // Burning Desire

:CRASH_180
if 
  $flag_crash_mission_counter == 1
goto_if_false @CRASH_232
$onmission = 1
Text.PrintBig('CRASH_3', 1000, TextStyle.BottomRight)
PSAVE1_1836()
Mission.LoadAndLaunchInternal(23) // Gray Imports

:CRASH_232
goto @CRASH_11

:RYDER
script_name 'RYDER'

:RYDER_11
wait $mission_trigger_wait_time
if 
  $flag_ryder_mission_counter == 3
goto_if_false @RYDER_36
terminate_this_script 

:RYDER_36
if 
  Player.IsPlaying($player1)
goto_if_false @RYDER_342
if 
  $onmission == 0
goto_if_false @RYDER_342
if 
  Char.LocateOnFoot3D($scplayer, $ryderX, $ryderY, $ryderZ, 1.6, 1.2, 2.0, False)
goto_if_false @RYDER_342
if 
  Player.CanStartMission($player1)
goto_if_false @RYDER_342
if 
  $flag_ryder_mission_counter == 0
goto_if_false @RYDER_238
$hours, $minutes = Clock.GetTimeOfDay()
if and
  $hours >= 12
  20 > $hours
goto_if_false @RYDER_222
Text.ClearPrints
$onmission = 1
Text.PrintBig('RYDER_1', 1000, TextStyle.BottomRight)
PSAVE1_1498()
Mission.LoadAndLaunchInternal(24) // Home Invasion
goto @RYDER_238

:RYDER_222
Text.PrintNow('MTIME6', 1000, 1)

:RYDER_238
if 
  $flag_ryder_mission_counter == 1
goto_if_false @RYDER_290
$onmission = 1
Text.PrintBig('RYDER_3', 1000, TextStyle.BottomRight)
PSAVE1_1498()
Mission.LoadAndLaunchInternal(25) // Catalyst

:RYDER_290
if 
  $flag_ryder_mission_counter == 2
goto_if_false @RYDER_342
$onmission = 1
Text.PrintBig('RYDER_2', 1000, TextStyle.BottomRight)
PSAVE1_1498()
Mission.LoadAndLaunchInternal(26) // Robbing Uncle Sam

:RYDER_342
goto @RYDER_11

:SMOKE
script_name 'SMOKE'

:SMOKE_11
wait $mission_trigger_wait_time
if 
  $flag_smoke_mission_counter == 4
goto_if_false @SMOKE_36
terminate_this_script 

:SMOKE_36
if 
  Player.IsPlaying($player1)
goto_if_false @SMOKE_336
if 
  $onmission == 0
goto_if_false @SMOKE_336
if 
  Char.LocateOnFoot3D($scplayer, $smokeX, $smokeY, $smokeZ, 1.2, 1.2, 2.0, False)
goto_if_false @SMOKE_336
if 
  Player.CanStartMission($player1)
goto_if_false @SMOKE_336
if 
  $flag_smoke_mission_counter == 0
goto_if_false @SMOKE_180
$onmission = 1
Text.PrintBig('SMOKE_1', 1000, TextStyle.BottomRight)
PSAVE1_1676()
Mission.LoadAndLaunchInternal(27) // OG Loc

:SMOKE_180
if 
  $flag_smoke_mission_counter == 1
goto_if_false @SMOKE_232
$onmission = 1
Text.PrintBig('SMOKE_2', 1000, TextStyle.BottomRight)
PSAVE1_1676()
Mission.LoadAndLaunchInternal(28) // Running Dog

:SMOKE_232
if 
  $flag_smoke_mission_counter == 2
goto_if_false @SMOKE_284
$onmission = 1
Text.PrintBig('SMOKE_3', 1000, TextStyle.BottomRight)
PSAVE1_1676()
Mission.LoadAndLaunchInternal(29) // Wrong Side of the Tracks

:SMOKE_284
if 
  $flag_smoke_mission_counter == 3
goto_if_false @SMOKE_336
$onmission = 1
Text.PrintBig('SMOKE_4', 1000, TextStyle.BottomRight)
PSAVE1_1676()
Mission.LoadAndLaunchInternal(30) // Just Business

:SMOKE_336
goto @SMOKE_11

:STRAP
script_name 'STRAP'

:STRAP_11
wait $mission_trigger_wait_time
if 
  $flag_strap_mission_counter == 5
goto_if_false @STRAP_36
terminate_this_script 

:STRAP_36
if 
  Player.IsPlaying($player1)
goto_if_false @STRAP_620
if 
  $onmission == 0
goto_if_false @STRAP_620
if 
  Char.LocateOnFoot3D($scplayer, $strapX, $strapY, $strapZ, 1.2, 1.2, 2.0, False)
goto_if_false @STRAP_452
if 
  Player.CanStartMission($player1)
goto_if_false @STRAP_452
if 
  $flag_strap_mission_counter == 0
goto_if_false @STRAP_238
$hours, $minutes = Clock.GetTimeOfDay()
if or
  $hours >= 22
  6 > $hours
goto_if_false @STRAP_222
Text.ClearPrints
$onmission = 1
Text.PrintBig('STRAP_1', 1000, TextStyle.BottomRight)
PSAVE1_2014()
Mission.LoadAndLaunchInternal(31) // Life's a Beach
goto @STRAP_238

:STRAP_222
Text.PrintNow('MTIME5', 1000, 1)

:STRAP_238
if 
  $flag_strap_mission_counter == 1
goto_if_false @STRAP_290
$onmission = 1
Text.PrintBig('STRAP_2', 1000, TextStyle.BottomRight)
PSAVE1_2014()
Mission.LoadAndLaunchInternal(32) // Madd Dogg's Rhymes

:STRAP_290
if 
  $flag_strap_mission_counter == 2
goto_if_false @STRAP_400
$hours, $minutes = Clock.GetTimeOfDay()
if or
  $hours >= 12
  5 > $hours
goto_if_false @STRAP_384
Text.ClearPrints
$onmission = 1
Text.PrintBig('STRAP_3', 1000, TextStyle.BottomRight)
PSAVE1_2014()
Mission.LoadAndLaunchInternal(33) // Management Issues
goto @STRAP_400

:STRAP_384
Text.PrintNow('MTIME2', 1000, 1)

:STRAP_400
if 
  $flag_strap_mission_counter == 3
goto_if_false @STRAP_452
$onmission = 1
PSAVE1_2014()
Text.PrintBig('STRAP_4', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(34) // House Party

:STRAP_452
if 
  Char.LocateOnFoot3D($scplayer, $strap2X, $strap2Y, $strap2Z, 1.2, 1.2, 2.0, False)
goto_if_false @STRAP_620
if 
  Player.CanStartMission($player1)
goto_if_false @STRAP_620
if 
  $flag_strap_mission_counter == 4
goto_if_false @STRAP_620
$hours, $minutes = Clock.GetTimeOfDay()
if or
  $hours >= 20
  6 > $hours
goto_if_false @STRAP_604
Text.ClearPrints
$onmission = 1
Text.PrintBig('STRAP_4', 1000, TextStyle.BottomRight)
PSAVE1_2174()
Mission.LoadAndLaunchInternal(34) // House Party
goto @STRAP_620

:STRAP_604
Text.PrintNow('MTIME1', 1000, 1)

:STRAP_620
goto @STRAP_11

:CESAR
script_name 'CESAR'

:CESAR_11
wait 0
if 
  $flag_cesar_mission_counter == 1
goto_if_false @CESAR_35
terminate_this_script 

:CESAR_35
if 
  Player.IsPlaying($player1)
goto_if_false @CESAR_344
if 
  $onmission == 0
goto_if_false @CESAR_130
if 
  $flag_cesar_mission_counter == 0
goto_if_false @CESAR_130
if 
  $cs1_race_is_go == 1
goto_if_false @CESAR_130
set_var_int_to_constant $race_selection = 0
$show_race_selection = 0
Mission.LoadAndLaunchInternal(35) // Race Tournament / 8-track / Dirt Track
$cs1_race_is_go = 2

:CESAR_130
if 
  $onmission == 0
goto_if_false @CESAR_344
if 
  $flag_cesar_mission_counter == 0
goto_if_false @CESAR_344
if 
  Char.LocateAnyMeans3D($scplayer, $cesarX, $cesarY, $cesarZ, 4.0, 4.0, 3.0, True)
goto_if_false @CESAR_344
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CESAR_328
$cs1_player_car = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.IsLowRider($cs1_player_car)
goto_if_false @CESAR_305
if 
  Player.CanStartMission($player1)
goto_if_false @CESAR_298
$onmission = 1
Text.PrintBig('CESAR_1', 1000, TextStyle.BottomRight)
PSAVE1_2334()
Mission.LoadAndLaunchInternal(36) // Lowrider (High Stakes)

:CESAR_298
goto @CESAR_321

:CESAR_305
Text.PrintNow('CES_CK1', 1000, 1)

:CESAR_321
goto @CESAR_344

:CESAR_328
Text.PrintNow('CES_CK1', 1000, 1)

:CESAR_344
goto @CESAR_11

:LA1FIN
script_name 'LA1FIN'

:LA1FIN_11
wait $mission_trigger_wait_time
if 
  $flag_la1fin1_mission_counter == 2
goto_if_false @LA1FIN_36
terminate_this_script 

:LA1FIN_36
if 
  Player.IsPlaying($player1)
goto_if_false @LA1FIN_340
if 
  $onmission == 0
goto_if_false @LA1FIN_340
if 
  Char.LocateOnFoot3D($scplayer, $sweetX, $sweetY, $sweetZ, 1.0, 1.0, 2.0, False)
goto_if_false @LA1FIN_340
if 
  $flag_sweet_mission_counter == 9
goto_if_false @LA1FIN_340
if 
  $flag_smoke_mission_counter == 4
goto_if_false @LA1FIN_340
if 
  $flag_strap_mission_counter == 5
goto_if_false @LA1FIN_340
if 
  $flag_ryder_mission_counter == 3
goto_if_false @LA1FIN_340
if 
  $flag_crash_mission_counter == 2
goto_if_false @LA1FIN_340
if 
  $flag_cesar_mission_counter == 1
goto_if_false @LA1FIN_340
if 
  Player.CanStartMission($player1)
goto_if_false @LA1FIN_340
if 
  $flag_la1fin1_mission_counter == 0
goto_if_false @LA1FIN_288
$onmission = 1
Text.PrintBig('LA1FIN1', 1000, TextStyle.BottomRight)
PSAVE1_1320()
Mission.LoadAndLaunchInternal(37) // Reuniting The Families

:LA1FIN_288
if 
  $flag_la1fin1_mission_counter == 1
goto_if_false @LA1FIN_340
$onmission = 1
Text.PrintBig('LA1FIN2', 1000, TextStyle.BottomRight)
PSAVE1_1320()
Mission.LoadAndLaunchInternal(38) // The Green Sabre

:LA1FIN_340
goto @LA1FIN_11

:BCRASH
script_name 'BCRASH'

:BCRASH_11
wait $mission_trigger_wait_time
if 
  $flag_bcrash_mission_counter == 1
goto_if_false @BCRASH_36
terminate_this_script 

:BCRASH_36
if 
  Player.IsPlaying($player1)
goto_if_false @BCRASH_180
if 
  $onmission == 0
goto_if_false @BCRASH_180
if 
  Char.LocateOnFoot3D($scplayer, $bcrashX, $bcrashY, $bcrashZ, 1.2, 1.2, 2.0, False)
goto_if_false @BCRASH_180
if 
  Player.CanStartMission($player1)
goto_if_false @BCRASH_180
if 
  $flag_bcrash_mission_counter == 0
goto_if_false @BCRASH_180
$onmission = 1
Text.PrintBig('BCRASH1', 1000, TextStyle.BottomRight)
LITCAS_267()
Mission.LoadAndLaunchInternal(39) // Badlands

:BCRASH_180
goto @BCRASH_11

:CAT
$load_and_launch_catalina_mission = -1
script_name 'CAT'

:CAT_18
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @CAT_634
if 
  $onmission == 0
goto_if_false @CAT_419
if 
  Player.CanStartMission($player1)
goto_if_false @CAT_412
if 
  $cat_counter == 0
goto_if_false @CAT_164
if 
  Char.LocateOnFoot3D($scplayer, $511, $517, $523, 1.2, 1.2, 2.0, False)
goto_if_false @CAT_157
$onmission = 1
CAT_641()
CAT_779()
Mission.LoadAndLaunchInternal(40) // First Date

:CAT_157
goto @CAT_249

:CAT_164
if 
  $flag_trailor_cutscene == 1
goto_if_false @CAT_249
if 
  Char.LocateOnFoot3D($scplayer, $catX, $catY, $catZ, 1.2, 1.2, 2.0, False)
goto_if_false @CAT_249
$onmission = 1
CAT_641()
CAT_922()
Mission.LoadAndLaunchInternal(40) // First Date

:CAT_249
switch_start $load_and_launch_catalina_mission {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CAT_412 {caseNum1} 0 {caseLabel1} @CAT_312 {caseNum2} 1 {caseLabel2} @CAT_337 {caseNum3} 2 {caseLabel3} @CAT_362 {caseNum4} 3 {caseLabel4} @CAT_387 {caseNum5} -1 {caseLabel5} @CAT_412 {caseNum6} -1 {caseLabel6} @CAT_412 {caseNum7} -1 {caseLabel7} @CAT_412

:CAT_312
$onmission = 1
Mission.LoadAndLaunchInternal(41) // Local Liquor Store
goto @CAT_18
goto @CAT_412

:CAT_337
$onmission = 1
Mission.LoadAndLaunchInternal(42) // Small Town Bank
goto @CAT_18
goto @CAT_412

:CAT_362
$onmission = 1
Mission.LoadAndLaunchInternal(43) // Tanker Commander
goto @CAT_18
goto @CAT_412

:CAT_387
$onmission = 1
Mission.LoadAndLaunchInternal(44) // Against All Odds
goto @CAT_18
goto @CAT_412

:CAT_412
goto @CAT_426

:CAT_419
$load_and_launch_catalina_mission = -1

:CAT_426
if 
  $flag_trigger_trailor_cut == 0
goto_if_false @CAT_474
if 
  $cat_counter == 1
goto_if_false @CAT_474
Blip.Remove($cat_contact_blip)
$flag_trigger_trailor_cut = 1

:CAT_474
if 
  $flag_trigger_trailor_cut == 1
goto_if_false @CAT_609
if 
  $flag_truth_mission_counter == 1
goto_if_false @CAT_609
if 
  Char.LocateOnFoot3D($scplayer, $bcrashX, $bcrashY, $bcrashZ, 1.2, 1.2, 2.0, False)
goto_if_false @CAT_609
if 
  Player.CanStartMission($player1)
goto_if_false @CAT_609
$onmission = 1
Text.PrintBig('TRAILER', 1000, TextStyle.BottomRight)
LITCAS_267()
Mission.LoadAndLaunchInternal(45) // King in Exile
$flag_trigger_trailor_cut = 2

:CAT_609
if 
  $cat_counter > 3
goto_if_false @CAT_634
Blip.Remove($cat_contact_blip)
terminate_this_script 

:CAT_634
goto @CAT_18

:CAT_641
if 
  $cat_counter == 0
goto_if_false @CAT_675
Text.PrintBig('CATCUT1', 1000, TextStyle.BottomRight)

:CAT_675
if 
  $cat_counter == 1
goto_if_false @CAT_709
Text.PrintBig('CATCUT2', 1000, TextStyle.BottomRight)

:CAT_709
if 
  $cat_counter == 2
goto_if_false @CAT_743
Text.PrintBig('CATCUT3', 1000, TextStyle.BottomRight)

:CAT_743
if 
  $cat_counter == 3
goto_if_false @CAT_777
Text.PrintBig('CATCUT4', 1000, TextStyle.BottomRight)

:CAT_777
return 

:CAT_779
if 
  Player.IsPlaying($player1)
goto_if_false @CAT_920
$onmission = 1
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(664.9277, -479.6112, 16.1668, 0.0, 0.0, 0.0)
Camera.PointAtPoint(665.8948, -479.5685, 16.4175, SwitchType.JumpCut)
World.ClearArea(681.8004, -474.1063, 15.5363, 3.0, True)
Task.GoStraightToCoord($scplayer, 681.8004, -474.1063, 15.5363, MoveState.Walk, 3000)
PSAVE1_1060()

:CAT_920
return 

:CAT_922
if 
  Player.IsPlaying($player1)
goto_if_false @CAT_1063
$onmission = 1
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(856.9968, -27.9584, 63.7393, 0.0, 0.0, 0.0)
Camera.PointAtPoint(857.9943, -28.0286, 63.7295, SwitchType.JumpCut)
World.ClearArea(870.1503, -25.3395, 62.9589, 3.0, True)
Task.GoStraightToCoord($scplayer, 870.1503, -25.3395, 62.9589, MoveState.Walk, 3000)
PSAVE1_1060()

:CAT_1063
return 

:TRU
script_name 'TRU'

:TRU_11
wait $mission_trigger_wait_time
if 
  $flag_truth_mission_counter == 2
goto_if_false @TRU_36
terminate_this_script 

:TRU_36
if 
  Player.IsPlaying($player1)
goto_if_false @TRU_281
if 
  $onmission == 0
goto_if_false @TRU_281
if 
  Player.CanStartMission($player1)
goto_if_false @TRU_281
if 
  $flag_truth_mission_counter == 0
goto_if_false @TRU_180
if 
  Char.LocateOnFoot3D($scplayer, $truth2X, $truth2Y, $truth2Z, 1.2, 1.2, 2.0, False)
goto_if_false @TRU_180
$onmission = 1
Text.PrintBig('TRUTH_1', 1000, TextStyle.BottomRight)
PSAVE1_2445()
Mission.LoadAndLaunchInternal(46) // Body Harvest

:TRU_180
if and
  $flag_truth_mission_counter == 1
  $flag_bcesar_mission_counter > 9
goto_if_false @TRU_281
if 
  Char.LocateOnFoot3D($scplayer, $truthX, $truthY, $truthZ, 1.2, 1.2, 2.0, False)
goto_if_false @TRU_281
$onmission = 1
Text.PrintBig('TRUTH_2', 1000, TextStyle.BottomRight)
PSAVE1_2605()
Mission.LoadAndLaunchInternal(47) // Are you going to San Fierro?

:TRU_281
goto @TRU_11

:BCESAR
script_name 'BCESAR'

:BCESAR_11
wait 0
if 
  $flag_bcesar_mission_counter == 10
goto_if_false @BCESAR_42
Stat.SetInt(StatId.PassedBcesar4, 1)
terminate_this_script 

:BCESAR_42
if 
  Player.IsPlaying($player1)
goto_if_false @BCESAR_880
if 
  $onmission == 0
goto_if_false @BCESAR_880
if 
  $flag_bcesar_mission_counter == 2
goto_if_false @BCESAR_116
if 
  $start_the_bcesar_race == 0
goto_if_false @BCESAR_116
Mission.LoadAndLaunchInternal(48) // Wu Zi Mu / Farewell, My Love...

:BCESAR_116
if 
  $flag_bcesar_mission_counter == 0
goto_if_false @BCESAR_382
if 
  $start_the_bcesar_race == 0
goto_if_false @BCESAR_382
if 
  Char.LocateAnyMeans3D($scplayer, $bcesarX, $bcesarY, $bcesarZ, 4.0, 4.0, 4.0, True)
goto_if_false @BCESAR_382
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BCESAR_366
if 
  Player.CanStartMission($player1)
goto_if_false @BCESAR_359
$car = Char.GetCarIsUsing($scplayer)
$car_class = Car.GetClass($car)
if or
  is_int_var_equal_to_constant $car_class == 0
  is_int_var_equal_to_constant $car_class == 1
  is_int_var_equal_to_constant $car_class == 2
  is_int_var_equal_to_constant $car_class == 3
  is_int_var_equal_to_constant $car_class == 4
  is_int_var_equal_to_constant $car_class == 6
goto_if_false @BCESAR_343
$flag_bcesar_mission_counter = 0
$onmission = 1
Text.PrintBig('BCESAR4', 1000, TextStyle.BottomRight)
LITCAS_267()
Mission.LoadAndLaunchInternal(48) // Wu Zi Mu / Farewell, My Love...
goto @BCESAR_359

:BCESAR_343
Text.PrintNow('BC4_7', 1000, 1)

:BCESAR_359
goto @BCESAR_382

:BCESAR_366
Text.PrintNow('BC4_2', 1000, 1)

:BCESAR_382
if 
  $flag_bcesar_mission_counter == 3
goto_if_false @BCESAR_425
$flag_bcesar_mission_counter = 4
$onmission = 1
LITCAS_267()
Mission.LoadAndLaunchInternal(48) // Wu Zi Mu / Farewell, My Love...

:BCESAR_425
if and
  $flag_stage_of_bcesar_race == 1
  4 > $cat_counter
goto_if_false @BCESAR_479
Blip.Remove($cat_contact_blip)
$cat_contact_blip = Blip.AddSpriteForContactPoint($catX, $catY, $catZ, $cat_blip_icon)
$flag_stage_of_bcesar_race = 0

:BCESAR_479
if 
  $cat_counter > 3
goto_if_false @BCESAR_695
if 
  $start_the_bcesar_race == 0
goto_if_false @BCESAR_652
if or
  $flag_bcesar_mission_counter == 5
  $flag_bcesar_mission_counter == 6
  $flag_bcesar_mission_counter == 7
goto_if_false @BCESAR_652
if 
  Char.LocateAnyMeans3D($scplayer, -513.9356, -188.314, 77.4599, 1.2, 1.2, 2.0, False)
goto_if_false @BCESAR_652
if 
  Player.CanStartMission($player1)
goto_if_false @BCESAR_652
$flag_bcesar_mission_counter = 5
$onmission = 1
Text.PrintBig('BCES4_2', 1000, TextStyle.BottomRight)
LITCAS_267()
Mission.LoadAndLaunchInternal(48) // Wu Zi Mu / Farewell, My Love...

:BCESAR_652
if 
  $flag_bcesar_mission_counter == 8
goto_if_false @BCESAR_695
$flag_bcesar_mission_counter = 9
$onmission = 1
LITCAS_267()
Mission.LoadAndLaunchInternal(48) // Wu Zi Mu / Farewell, My Love...

:BCESAR_695
if and
  $cat_counter == 4
  $flag_bcesar_mission_counter > 4
goto_if_false @BCESAR_755
Blip.Remove($bcesar_contact_blip)
$bcesar_contact_blip = Blip.AddSpriteForContactPoint(-513.9356, -188.314, 77.4599, $cesar_blip_icon)
$cat_counter = 5

:BCESAR_755
if 
  $start_the_bcesar_race == 1
goto_if_false @BCESAR_880
if 
  $flag_bcesar_mission_counter == 1
goto_if_false @BCESAR_823
$flag_bcesar_mission_counter = 2
set_var_int_to_constant $race_selection = 7
$show_race_selection = 0
Mission.LoadAndLaunchInternal(35) // Race Tournament / 8-track / Dirt Track
$start_the_bcesar_race = 0

:BCESAR_823
if 
  $flag_bcesar_mission_counter == 6
goto_if_false @BCESAR_880
$flag_bcesar_mission_counter = 7
set_var_int_to_constant $race_selection = 8
$show_race_selection = 0
Stat.SetInt(StatId.StartedCrash1, 1)
Mission.LoadAndLaunchInternal(35) // Race Tournament / 8-track / Dirt Track
$start_the_bcesar_race = 0

:BCESAR_880
goto @BCESAR_11

:GARAGE
script_name 'GARAGE'

:GARAGE_11
wait $mission_trigger_wait_time
if 
  $flag_garage_mission_counter == 2
goto_if_false @GARAGE_36
terminate_this_script 

:GARAGE_36
if 
  Player.IsPlaying($player1)
goto_if_false @GARAGE_250
if 
  $onmission == 0
goto_if_false @GARAGE_250
if 
  Char.LocateOnFoot3D($scplayer, $garageX, $garageY, $garageZ, 1.2, 1.2, 2.0, False)
goto_if_false @GARAGE_250
if 
  Player.CanStartMission($player1)
goto_if_false @GARAGE_250
if 
  $flag_garage_mission_counter == 0
goto_if_false @GARAGE_180
$onmission = 1
Text.PrintBig('GAR_1', 1000, TextStyle.BottomRight)
PSAVE1_2765()
Mission.LoadAndLaunchInternal(49) // Wear Flowers In Your Hair

:GARAGE_180
if 
  $flag_scrash_mission_counter == 1
goto_if_false @GARAGE_250
if 
  $flag_garage_mission_counter == 1
goto_if_false @GARAGE_250
$onmission = 1
Text.PrintBig('GAR_2', 1000, TextStyle.BottomRight)
PSAVE1_2765()
Mission.LoadAndLaunchInternal(50) // Deconstruction

:GARAGE_250
goto @GARAGE_11

:SCRASH
script_name 'SCRASH'

:SCRASH_11
wait $mission_trigger_wait_time
if 
  $flag_scrash_mission_counter == 2
goto_if_false @SCRASH_36
terminate_this_script 

:SCRASH_36
if 
  Player.IsPlaying($player1)
goto_if_false @SCRASH_239
if 
  $onmission == 0
goto_if_false @SCRASH_239
if 
  Char.LocateOnFoot3D($scplayer, $scrashX, $scrashY, $scrashZ, 1.2, 1.2, 2.0, False)
goto_if_false @SCRASH_239
if 
  Player.CanStartMission($player1)
goto_if_false @SCRASH_239
if 
  $flag_scrash_mission_counter == 0
goto_if_false @SCRASH_180
$onmission = 1
Text.PrintBig('SCRA_1', 1000, TextStyle.BottomRight)
PSAVE1_2765()
Mission.LoadAndLaunchInternal(51) // 555 WE TIP

:SCRASH_180
if and
  $flag_scrash_mission_counter == 1
  $flag_synd_mission_counter == 6
goto_if_false @SCRASH_239
$onmission = 1
Text.PrintBig('SCRA_2', 1000, TextStyle.BottomRight)
PSAVE1_2765()
Mission.LoadAndLaunchInternal(52) // Snail Trail

:SCRASH_239
goto @SCRASH_11

:WUZI
script_name 'WUZI'

:WUZI_11
wait $mission_trigger_wait_time
if 
  $flag_wuzi_mission_counter == 5
goto_if_false @WUZI_36
terminate_this_script 

:WUZI_36
if 
  Player.IsPlaying($player1)
goto_if_false @WUZI_515
if 
  $onmission == 0
goto_if_false @WUZI_515
if 
  Char.LocateOnFoot3D($scplayer, $wuziX, $wuziY, $wuziZ, 1.2, 1.2, 2.0, False)
goto_if_false @WUZI_515
if 
  Player.CanStartMission($player1)
goto_if_false @WUZI_515
if 
  $flag_wuzi_mission_counter == 0
goto_if_false @WUZI_180
$onmission = 1
Text.PrintBig('WUZI_1', 1000, TextStyle.BottomRight)
PSAVE1_3085()
Mission.LoadAndLaunchInternal(53) // Mountain Cloud Boys

:WUZI_180
if 
  $flag_wuzi_mission_counter == 1
goto_if_false @WUZI_232
$onmission = 1
Text.PrintBig('FAR_4', 1000, TextStyle.BottomRight)
PSAVE1_3085()
Mission.LoadAndLaunchInternal(54) // Ran Fa Li

:WUZI_232
if 
  $flag_wuzi_mission_counter == 2
goto_if_false @WUZI_284
$onmission = 1
Text.PrintBig('FAR_5', 1000, TextStyle.BottomRight)
PSAVE1_3085()
Mission.LoadAndLaunchInternal(55) // Lure

:WUZI_284
if 
  $flag_wuzi_mission_counter == 3
goto_if_false @WUZI_463
$swim_stamina_check_main = Stat.GetInt(StatId.UnderwaterBreathStamina)
if 
  $swim_stamina_check_main > 50
goto_if_false @WUZI_427
$hours, $minutes = Clock.GetTimeOfDay()
if or
  $hours >= 20
  6 > $hours
goto_if_false @WUZI_404
Text.ClearPrints
$onmission = 1
Text.PrintBig('WUZI_2', 1000, TextStyle.BottomRight)
PSAVE1_3085()
Mission.LoadAndLaunchInternal(56) // Amphibious Assault
goto @WUZI_420

:WUZI_404
Text.PrintNow('MTIME1', 1000, 1)

:WUZI_420
goto @WUZI_463

:WUZI_427
Text.ClearPrints
$onmission = 1
Text.PrintBig('WUZI_2', 1000, TextStyle.BottomRight)
PSAVE1_3085()
Mission.LoadAndLaunchInternal(56) // Amphibious Assault

:WUZI_463
if 
  $flag_wuzi_mission_counter == 4
goto_if_false @WUZI_515
$onmission = 1
Text.PrintBig('WUZI_4', 1000, TextStyle.BottomRight)
PSAVE1_3085()
Mission.LoadAndLaunchInternal(57) // The Da Nang Thang

:WUZI_515
goto @WUZI_11

:SYND
script_name 'SYND'

:SYND_11
wait $mission_trigger_wait_time
if 
  $flag_synd_mission_counter == 10
goto_if_false @SYND_36
terminate_this_script 

:SYND_36
if 
  Player.IsPlaying($player1)
goto_if_false @SYND_874
if 
  $onmission == 0
goto_if_false @SYND_874
if 
  Char.LocateOnFoot3D($scplayer, $garageX, $garageY, $garageZ, 1.2, 1.2, 2.0, False)
goto_if_false @SYND_512
if 
  Player.CanStartMission($player1)
goto_if_false @SYND_512
if 
  $flag_synd_mission_counter == 0
goto_if_false @SYND_180
$onmission = 1
Text.PrintBig('SYND_1', 1000, TextStyle.BottomRight)
LITCAS_267()
Mission.LoadAndLaunchInternal(58) // Photo Opportunity

:SYND_180
if 
  $flag_synd_mission_counter == 1
goto_if_false @SYND_232
$onmission = 1
Text.PrintBig('SYND_2', 1000, TextStyle.BottomRight)
PSAVE1_2765()
Mission.LoadAndLaunchInternal(59) // Jizzy

:SYND_232
if 
  $flag_synd_mission_counter == 5
goto_if_false @SYND_284
$onmission = 1
Text.PrintBig('SYND_3', 1000, TextStyle.BottomRight)
LITCAS_267()
Mission.LoadAndLaunchInternal(60) // Outrider

:SYND_284
if and
  $flag_synd_mission_counter == 6
  $flag_scrash_mission_counter == 2
goto_if_false @SYND_401
$hours, $minutes = Clock.GetTimeOfDay()
if or
  $hours >= 20
  6 > $hours
goto_if_false @SYND_385
$onmission = 1
Text.ClearPrints
Text.PrintBig('SYND_4', 1000, TextStyle.BottomRight)
PSAVE1_2765()
Mission.LoadAndLaunchInternal(61) // Ice Cold Killa
goto @SYND_401

:SYND_385
Text.PrintNow('MTIME1', 1000, 1)

:SYND_401
if 
  $flag_synd_mission_counter == 8
goto_if_false @SYND_453
$onmission = 1
Text.PrintBig('SYND_6', 1000, TextStyle.BottomRight)
LITCAS_267()
Mission.LoadAndLaunchInternal(62) // Toreno's Last Flight

:SYND_453
if and
  $flag_synd_mission_counter == 9
  $flag_wuzi_mission_counter == 5
goto_if_false @SYND_512
$onmission = 1
Text.PrintBig('SYND_7', 1000, TextStyle.BottomRight)
PSAVE1_2765()
Mission.LoadAndLaunchInternal(63) // Yay Ka-Boom-Boom

:SYND_512
if 
  Player.IsPlaying($player1)
goto_if_false @SYND_644
if 
  $flag_synd_mission_counter == 7
goto_if_false @SYND_644
if 
  Char.LocateOnFoot3D($scplayer, -1717.05, 1280.91, 6.23, 1.2, 1.2, 2.5, False)
goto_if_false @SYND_644
if 
  Player.CanStartMission($player1)
goto_if_false @SYND_644
$onmission = 1
Text.PrintBig('SYND_5', 1000, TextStyle.BottomRight)
LITCAS_267()
Mission.LoadAndLaunchInternal(64) // Pier 69

:SYND_644
if 
  Player.IsPlaying($player1)
goto_if_false @SYND_874
if 
  Char.LocateOnFoot3D($scplayer, $syndX, $syndY, $syndZ, 1.2, 1.2, 2.5, False)
goto_if_false @SYND_874
if 
  Player.CanStartMission($player1)
goto_if_false @SYND_874
if 
  $flag_synd_mission_counter == 2
goto_if_false @SYND_770
$onmission = 1
Text.PrintBig('SYND_2', 1000, TextStyle.BottomRight)
PSAVE1_3725()
Mission.LoadAndLaunchInternal(59) // Jizzy

:SYND_770
if 
  $flag_synd_mission_counter == 3
goto_if_false @SYND_822
$onmission = 1
Text.PrintBig('FAR_2', 1000, TextStyle.BottomRight)
PSAVE1_3725()
Mission.LoadAndLaunchInternal(65) // T-Bone Mendez

:SYND_822
if 
  $flag_synd_mission_counter == 4
goto_if_false @SYND_874
$onmission = 1
Text.PrintBig('FAR_3', 1000, TextStyle.BottomRight)
PSAVE1_3725()
Mission.LoadAndLaunchInternal(66) // Mike Toreno

:SYND_874
goto @SYND_11

:STEAL
script_name 'STEAL'

:STEAL_11
wait $mission_trigger_wait_time
if 
  $flag_steal_mission_counter == 4
goto_if_false @STEAL_36
terminate_this_script 

:STEAL_36
if 
  Player.IsPlaying($player1)
goto_if_false @STEAL_336
if 
  $onmission == 0
goto_if_false @STEAL_336
if 
  Char.LocateOnFoot3D($scplayer, $stealX, $stealY, $stealZ, 1.2, 1.2, 2.0, False)
goto_if_false @STEAL_336
if 
  Player.CanStartMission($player1)
goto_if_false @STEAL_336
if 
  $flag_steal_mission_counter == 0
goto_if_false @STEAL_180
$onmission = 1
Text.PrintBig('STEAL_1', 1000, TextStyle.BottomRight)
PSAVE1_2925()
Mission.LoadAndLaunchInternal(67) // Zeroing In

:STEAL_180
if 
  $flag_steal_mission_counter == 1
goto_if_false @STEAL_232
$onmission = 1
Text.PrintBig('STEAL_2', 1000, TextStyle.BottomRight)
PSAVE1_2925()
Mission.LoadAndLaunchInternal(68) // Test Drive

:STEAL_232
if 
  $flag_steal_mission_counter == 2
goto_if_false @STEAL_284
$onmission = 1
Text.PrintBig('STEAL_4', 1000, TextStyle.BottomRight)
PSAVE1_2925()
Mission.LoadAndLaunchInternal(69) // Customs Fast Track

:STEAL_284
if 
  $flag_steal_mission_counter == 3
goto_if_false @STEAL_336
$onmission = 1
Text.PrintBig('STEAL_5', 1000, TextStyle.BottomRight)
PSAVE1_2925()
Mission.LoadAndLaunchInternal(70) // Puncture Wounds

:STEAL_336
goto @STEAL_11

:TRACE
script_name 'TRACE'

:TRACE_11
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @TRACE_805
if 
  $onmission == 0
goto_if_false @TRACE_805
if 
  Char.LocateOnFoot3D($scplayer, $testsX, $testsY, $testsZ, 20.0, 20.0, 10.0, False)
goto_if_false @TRACE_395
$main_visible_area = Streaming.GetAreaVisible()
if 
  $main_visible_area <> 0
goto_if_false @TRACE_395
if 
  $f1_dbp == 0
goto_if_false @TRACE_270
if 
  Char.LocateOnFoot3D($scplayer, -2031.4, -116.5, 1034.1, 1.0, 1.0, 1.5, True)
goto_if_false @TRACE_263
if 
  Player.CanStartMission($player1)
goto_if_false @TRACE_263
if 
  $flag_garage_mission_counter > 0
goto_if_false @TRACE_263
$onmission = 1
Camera.SetFadingColor(0, 0, 0)
Text.PrintBig('FAR_1', 1000, TextStyle.BottomRight)
Player.SetControl($player1, False)
LITCAS_267()
Mission.LoadAndLaunchInternal(71) // Back to School

:TRACE_263
goto @TRACE_395

:TRACE_270
if 
  Char.LocateOnFoot3D($scplayer, $testsX, $testsY, $testsZ, 1.0, 1.0, 1.5, True)
goto_if_false @TRACE_395
if 
  Player.CanStartMission($player1)
goto_if_false @TRACE_395
if 
  $flag_garage_mission_counter > 0
goto_if_false @TRACE_395
$onmission = 1
Camera.SetFadingColor(0, 0, 0)
Text.PrintBig('FAR_1', 1000, TextStyle.BottomRight)
Player.SetControl($player1, False)
LITCAS_267()
Mission.LoadAndLaunchInternal(71) // Back to School

:TRACE_395
if 
  Player.IsPlaying($player1)
goto_if_false @TRACE_805
if 
  Player.CanStartMission($player1)
goto_if_false @TRACE_805
if 
  $1398 == 1
goto_if_false @TRACE_805
if 
  Char.LocateOnFoot3D($scplayer, $traceX[0], $traceY[0], $traceZ[0], 1.2, 1.2, 2.0, False)
goto_if_false @TRACE_535
$onmission = 1
Player.SetControl($player1, False)
Text.PrintBig('TRACE_1', 1000, TextStyle.BottomRight)
$show_race_selection = 1
set_var_int_to_constant $menu_mode = 0
Mission.LoadAndLaunchInternal(35) // Race Tournament / 8-track / Dirt Track

:TRACE_535
if 
  Char.LocateOnFoot3D($scplayer, $traceX[1], $traceY[1], $traceZ[1], 1.2, 1.2, 2.0, False)
goto_if_false @TRACE_625
$onmission = 1
Player.SetControl($player1, False)
Text.PrintBig('TRACE_1', 1000, TextStyle.BottomRight)
$show_race_selection = 1
set_var_int_to_constant $menu_mode = 1
Mission.LoadAndLaunchInternal(35) // Race Tournament / 8-track / Dirt Track

:TRACE_625
if 
  Char.LocateOnFoot3D($scplayer, $traceX[2], $traceY[2], $traceZ[2], 1.2, 1.2, 2.0, False)
goto_if_false @TRACE_715
$onmission = 1
Player.SetControl($player1, False)
Text.PrintBig('TRACE_1', 1000, TextStyle.BottomRight)
$show_race_selection = 1
set_var_int_to_constant $menu_mode = 2
Mission.LoadAndLaunchInternal(35) // Race Tournament / 8-track / Dirt Track

:TRACE_715
if 
  Char.LocateOnFoot3D($scplayer, $traceX[3], $traceY[3], $traceZ[3], 1.2, 1.2, 2.0, False)
goto_if_false @TRACE_805
$onmission = 1
Player.SetControl($player1, False)
Text.PrintBig('TRACE_1', 1000, TextStyle.BottomRight)
$show_race_selection = 1
set_var_int_to_constant $menu_mode = 3
Mission.LoadAndLaunchInternal(35) // Race Tournament / 8-track / Dirt Track

:TRACE_805
goto @TRACE_11

:ZERO
script_name 'ZERO'

:ZERO_11
wait $mission_trigger_wait_time
if 
  $flag_zero_mission_counter == 3
goto_if_false @ZERO_36
terminate_this_script 

:ZERO_36
if 
  Player.IsPlaying($player1)
goto_if_false @ZERO_284
if 
  $onmission == 0
goto_if_false @ZERO_284
if 
  Char.LocateOnFoot3D($scplayer, $zeroX, $zeroY, $zeroZ, 1.2, 1.2, 2.0, False)
goto_if_false @ZERO_284
if 
  Player.CanStartMission($player1)
goto_if_false @ZERO_284
if 
  $flag_zero_mission_counter == 0
goto_if_false @ZERO_180
$onmission = 1
Text.PrintBig('ZERO_1', 1000, TextStyle.BottomRight)
PSAVE1_4587()
Mission.LoadAndLaunchInternal(72) // Air Raid

:ZERO_180
if 
  $flag_zero_mission_counter == 1
goto_if_false @ZERO_232
$onmission = 1
Text.PrintBig('ZERO_2', 1000, TextStyle.BottomRight)
PSAVE1_4587()
Mission.LoadAndLaunchInternal(73) // Supply Lines...

:ZERO_232
if 
  $flag_zero_mission_counter == 2
goto_if_false @ZERO_284
$onmission = 1
Text.PrintBig('ZERO_4', 1000, TextStyle.BottomRight)
PSAVE1_4587()
Mission.LoadAndLaunchInternal(74) // New Model Army

:ZERO_284
goto @ZERO_11

:DESERT
script_name 'DESERT'

:DESERT_11
wait $mission_trigger_wait_time
if 
  $flag_desert_mission_counter == 9
goto_if_false @DESERT_36
terminate_this_script 

:DESERT_36
if 
  Player.IsPlaying($player1)
goto_if_false @DESERT_721
if 
  $onmission == 0
goto_if_false @DESERT_721
if 
  Char.LocateOnFoot3D($scplayer, $desertX, $desertY, $desertZ, 1.2, 1.2, 2.0, False)
goto_if_false @DESERT_372
if 
  Player.CanStartMission($player1)
goto_if_false @DESERT_372
if 
  $flag_desert_mission_counter == 0
goto_if_false @DESERT_180
$onmission = 1
Text.PrintBig('DESERT1', 1000, TextStyle.BottomRight)
PSAVE1_3885()
Mission.LoadAndLaunchInternal(75) // Monster

:DESERT_180
if 
  $1400 == 1
goto_if_false @DESERT_250
if 
  $flag_desert_mission_counter == 1
goto_if_false @DESERT_250
$onmission = 1
Text.PrintBig('DESERT2', 1000, TextStyle.BottomRight)
PSAVE1_3885()
Mission.LoadAndLaunchInternal(76) // Highjack

:DESERT_250
if 
  $1402 == 1
goto_if_false @DESERT_320
if 
  $flag_desert_mission_counter == 2
goto_if_false @DESERT_320
$onmission = 1
Text.PrintBig('DESERT3', 1000, TextStyle.BottomRight)
PSAVE1_3885()
Mission.LoadAndLaunchInternal(77) // Interdiction

:DESERT_320
if 
  $flag_desert_mission_counter == 3
goto_if_false @DESERT_372
$onmission = 1
Text.PrintBig('DESERT4', 1000, TextStyle.BottomRight)
PSAVE1_3885()
Mission.LoadAndLaunchInternal(78) // Verdant Meadows

:DESERT_372
if 
  Char.LocateOnFoot3D($scplayer, $desert2X, $desert2Y, $desert2Z, 1.2, 1.2, 2.0, False)
goto_if_false @DESERT_721
if 
  Player.CanStartMission($player1)
goto_if_false @DESERT_721
if 
  $pilot_test_passed == 1
goto_if_false @DESERT_500
if 
  $flag_desert_mission_counter == 5
goto_if_false @DESERT_500
$onmission = 1
Text.PrintBig('DESERT6', 1000, TextStyle.BottomRight)
PSAVE1_4156()
Mission.LoadAndLaunchInternal(79) // N.O.E.

:DESERT_500
if 
  $flag_desert_mission_counter == 6
goto_if_false @DESERT_552
$onmission = 1
Text.PrintBig('DESERT9', 1000, TextStyle.BottomRight)
PSAVE1_4156()
Mission.LoadAndLaunchInternal(80) // Stowaway

:DESERT_552
if 
  $flag_desert_mission_counter == 7
goto_if_false @DESERT_662
$hours, $minutes = Clock.GetTimeOfDay()
if or
  $hours >= 20
  6 > $hours
goto_if_false @DESERT_646
Text.ClearPrints
$onmission = 1
Text.PrintBig('DESERT8', 1000, TextStyle.BottomRight)
PSAVE1_4156()
Mission.LoadAndLaunchInternal(81) // Black Project
goto @DESERT_662

:DESERT_646
Text.PrintNow('MTIME1', 1000, 1)

:DESERT_662
if and
  $flag_desert_mission_counter == 8
  $1389 == 1
goto_if_false @DESERT_721
$onmission = 1
Text.PrintBig('DESER10', 1000, TextStyle.BottomRight)
PSAVE1_4156()
Mission.LoadAndLaunchInternal(82) // Green Goo

:DESERT_721
goto @DESERT_11

:PSCH
script_name 'PSCH'

:PSCH_11
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @PSCH_239
if 
  $onmission == 0
goto_if_false @PSCH_239
if 
  Char.LocateOnFoot3D($scplayer, $pilotx, $piloty, $pilotz, 1.0, 1.0, 1.0, True)
goto_if_false @PSCH_239
if 
  Player.CanStartMission($player1)
goto_if_false @PSCH_239
if 
  $flag_desert_mission_counter > 3
goto_if_false @PSCH_239
Camera.SetFadingColor(0, 0, 0)
$onmission = 1
if 
  $played_scipted_airscript_cut == 0
goto_if_false @PSCH_179
PSAVE1_4045()
$played_scipted_airscript_cut = 1
goto @PSCH_235

:PSCH_179
Camera.SetFadingColor(0, 0, 0)
if 
  $pilot_test_passed == 0
goto_if_false @PSCH_221
Text.PrintBig('DESERT5', 1000, TextStyle.BottomRight)

:PSCH_221
Player.SetControl($player1, False)
LITCAS_267()

:PSCH_235
Mission.LoadAndLaunchInternal(83) // Learning to Fly

:PSCH_239
goto @PSCH_11

:CASINO
script_name 'CASINO'

:CASINO_11
wait $mission_trigger_wait_time
if 
  $flag_casino_mission_counter == 9
goto_if_false @CASINO_36
terminate_this_script 

:CASINO_36
if 
  Player.IsPlaying($player1)
goto_if_false @CASINO_707
if 
  $onmission == 0
goto_if_false @CASINO_707
if 
  Player.CanStartMission($player1)
goto_if_false @CASINO_707
if 
  Char.LocateOnFoot3D($scplayer, $casinoX, $casinoY, $casinoZ, 1.2, 1.2, 2.0, False)
goto_if_false @CASINO_336
if 
  $flag_casino_mission_counter == 0
goto_if_false @CASINO_180
$onmission = 1
Text.PrintBig('CASINO1', 1000, TextStyle.BottomRight)
PSAVE1_3245()
Mission.LoadAndLaunchInternal(84) // Fender Ketchup

:CASINO_180
if 
  $flag_casino_mission_counter == 1
goto_if_false @CASINO_232
$onmission = 1
Text.PrintBig('CASEEN2', 1000, TextStyle.BottomRight)
PSAVE1_3245()
Mission.LoadAndLaunchInternal(85) // Explosive Situation

:CASINO_232
if 
  $flag_casino_mission_counter == 2
goto_if_false @CASINO_284
$onmission = 1
Text.PrintBig('CASINO3', 1000, TextStyle.BottomRight)
PSAVE1_3245()
Mission.LoadAndLaunchInternal(86) // You've Had Your Chips

:CASINO_284
if 
  $flag_casino_mission_counter == 6
goto_if_false @CASINO_336
$onmission = 1
Text.PrintBig('CASINO7', 1000, TextStyle.BottomRight)
PSAVE1_3245()
Mission.LoadAndLaunchInternal(87) // Fish in a Barrel

:CASINO_336
if 
  Char.LocateOnFoot3D($scplayer, 2026.603, 1007.735, 9.8127, 1.2, 1.2, 2.0, False)
goto_if_false @CASINO_436
if 
  $flag_casino_mission_counter == 3
goto_if_false @CASINO_436
$onmission = 1
Text.PrintBig('CASINO4', 1000, TextStyle.BottomRight)
PSAVE1_3565()
Mission.LoadAndLaunchInternal(88) // Don Peyote

:CASINO_436
if 
  Char.LocateOnFoot3D($scplayer, $heistX, $heistY, $heistZ, 1.2, 1.2, 2.0, False)
goto_if_false @CASINO_707
if and
  $flag_casino_mission_counter == 4
  $1380 == 1
goto_if_false @CASINO_537
$onmission = 1
Text.PrintBig('CASINO5', 1000, TextStyle.BottomRight)
PSAVE1_4267()
Mission.LoadAndLaunchInternal(89) // Intensive Care

:CASINO_537
if 
  $flag_casino_mission_counter == 5
goto_if_false @CASINO_589
$onmission = 1
Text.PrintBig('CASINO6', 1000, TextStyle.BottomRight)
PSAVE1_4267()
Mission.LoadAndLaunchInternal(90) // The Meat Business

:CASINO_589
if and
  $flag_casino_mission_counter == 7
  $1381 == 1
goto_if_false @CASINO_648
$onmission = 1
Text.PrintBig('CASINO9', 1000, TextStyle.BottomRight)
PSAVE1_4267()
Mission.LoadAndLaunchInternal(91) // Freefall

:CASINO_648
if and
  $flag_casino_mission_counter == 8
  $1382 == 1
goto_if_false @CASINO_707
$onmission = 1
Text.PrintBig('CASIN10', 1000, TextStyle.BottomRight)
PSAVE1_4267()
Mission.LoadAndLaunchInternal(92) // Saint Mark's Bistro

:CASINO_707
goto @CASINO_11

:VCRASH
script_name 'VCRASH'

:VCRASH_11
wait $mission_trigger_wait_time
if 
  $flag_vcrash_mission_counter == 2
goto_if_false @VCRASH_36
terminate_this_script 

:VCRASH_36
if 
  Player.IsPlaying($player1)
goto_if_false @VCRASH_287
if 
  $onmission == 0
goto_if_false @VCRASH_287
if 
  Player.CanStartMission($player1)
goto_if_false @VCRASH_287
if 
  Char.LocateOnFoot3D($scplayer, $vcrashX, $vcrashY, $vcrashZ, 1.2, 1.2, 2.0, False)
goto_if_false @VCRASH_180
if 
  $flag_vcrash_mission_counter == 0
goto_if_false @VCRASH_180
$onmission = 1
Text.PrintBig('VCRASH1', 1000, TextStyle.BottomRight)
LITCAS_267()
Mission.LoadAndLaunchInternal(93) // Misappropriation

:VCRASH_180
if and
  $flag_vcrash_mission_counter == 1
  $flag_mob_vegas == 1
goto_if_false @VCRASH_287
if 
  Char.LocateOnFoot3D($scplayer, -378.75, 2235.85, 41.42, 1.2, 1.2, 2.0, False)
goto_if_false @VCRASH_287
$onmission = 1
Text.PrintBig('VCRASH2', 1000, TextStyle.BottomRight)
LITCAS_267()
Mission.LoadAndLaunchInternal(94) // High Noon

:VCRASH_287
goto @VCRASH_11

:DOC
script_name 'DOC'

:DOC_11
wait $mission_trigger_wait_time
if 
  $flag_doc_mission_counter == 1
goto_if_false @DOC_36
terminate_this_script 

:DOC_36
if 
  Player.IsPlaying($player1)
goto_if_false @DOC_180
if 
  $onmission == 0
goto_if_false @DOC_180
if 
  Char.LocateOnFoot3D($scplayer, $docX, $docY, $docZ, 1.2, 1.2, 2.0, False)
goto_if_false @DOC_180
if 
  Player.CanStartMission($player1)
goto_if_false @DOC_180
if 
  $flag_doc_mission_counter == 0
goto_if_false @DOC_180
$onmission = 1
Text.PrintBig('DOC_2', 1000, TextStyle.BottomRight)
LITCAS_267()
Mission.LoadAndLaunchInternal(95) // Madd Dogg

:DOC_180
goto @DOC_11

:HEIST
script_name 'HEIST'

:HEIST_11
wait $mission_trigger_wait_time
if 
  $flag_heist_mission_counter == 6
goto_if_false @HEIST_36
terminate_this_script 

:HEIST_36
if 
  Player.IsPlaying($player1)
goto_if_false @HEIST_546
if 
  $onmission == 0
goto_if_false @HEIST_546
if 
  Char.LocateOnFoot3D($scplayer, $TheheistX, $TheheistY, $TheheistZ, 1.2, 1.2, 2.0, False)
goto_if_false @HEIST_546
if 
  Player.CanStartMission($player1)
goto_if_false @HEIST_546
if 
  $flag_heist_mission_counter == 0
goto_if_false @HEIST_180
$onmission = 1
Text.PrintBig('HEIST_1', 1000, TextStyle.BottomRight)
PSAVE1_3405()
Mission.LoadAndLaunchInternal(96) // Architectural Espionage

:HEIST_180
if 
  $flag_heist_mission_counter == 1
goto_if_false @HEIST_232
$onmission = 1
Text.PrintBig('HEIST_3', 1000, TextStyle.BottomRight)
PSAVE1_3405()
Mission.LoadAndLaunchInternal(97) // Key To Her Heart

:HEIST_232
if 
  $flag_heist_mission_counter == 2
goto_if_false @HEIST_284
$onmission = 1
Text.PrintBig('HEIST_2', 1000, TextStyle.BottomRight)
PSAVE1_3405()
Mission.LoadAndLaunchInternal(98) // Dam And Blast

:HEIST_284
if 
  $flag_heist_mission_counter == 3
goto_if_false @HEIST_336
$onmission = 1
Text.PrintBig('HEIST_4', 1000, TextStyle.BottomRight)
PSAVE1_3405()
Mission.LoadAndLaunchInternal(99) // Cop Wheels

:HEIST_336
if 
  $flag_heist_mission_counter == 4
goto_if_false @HEIST_446
$hours, $minutes = Clock.GetTimeOfDay()
if or
  $hours >= 20
  6 > $hours
goto_if_false @HEIST_430
$onmission = 1
Text.ClearPrints
Text.PrintBig('HEIST_5', 1000, TextStyle.BottomRight)
PSAVE1_3405()
Mission.LoadAndLaunchInternal(100) // Up, Up and Away!
goto @HEIST_446

:HEIST_430
Text.PrintNow('MTIME1', 1000, 1)

:HEIST_446
if and
  $flag_heist_mission_counter == 5
  $1384 == 1
goto_if_false @HEIST_546
if 
  $keycard_aquired_from_millie == 1
goto_if_false @HEIST_530
$onmission = 1
Text.PrintBig('HEIST_9', 1000, TextStyle.BottomRight)
PSAVE1_3405()
Mission.LoadAndLaunchInternal(101) // Breaking the Bank at Caligula's
goto @HEIST_546

:HEIST_530
Text.PrintNow('NEEDKEY', 1000, 1)

:HEIST_546
goto @HEIST_11

:MANSION
script_name 'MANSION'

:MANSION_11
wait $mission_trigger_wait_time
if 
  $flag_mansion_mission_counter == 4
goto_if_false @MANSION_36
terminate_this_script 

:MANSION_36
if 
  Player.IsPlaying($player1)
goto_if_false @MANSION_378
if 
  $onmission == 0
goto_if_false @MANSION_378
if 
  Player.CanStartMission($player1)
goto_if_false @MANSION_378
if 
  Char.LocateOnFoot3D($scplayer, $casinoX, $casinoY, $casinoZ, 1.2, 1.2, 2.0, False)
goto_if_false @MANSION_180
if 
  $flag_mansion_mission_counter == 0
goto_if_false @MANSION_180
$onmission = 1
Text.PrintBig('MAN_1', 1000, TextStyle.BottomRight)
PSAVE1_3245()
Mission.LoadAndLaunchInternal(102) // A Home In The Hills

:MANSION_180
if 
  Char.LocateOnFoot3D($scplayer, $mansionX, $mansionY, $mansionZ, 1.2, 1.2, 2.0, False)
goto_if_false @MANSION_378
if 
  $flag_mansion_mission_counter == 1
goto_if_false @MANSION_274
$onmission = 1
Text.PrintBig('MAN_2', 1000, TextStyle.BottomRight)
PSAVE1_4427()
Mission.LoadAndLaunchInternal(103) // Vertical Bird

:MANSION_274
if 
  $flag_mansion_mission_counter == 2
goto_if_false @MANSION_326
$onmission = 1
Text.PrintBig('MAN_3', 1000, TextStyle.BottomRight)
PSAVE1_4427()
Mission.LoadAndLaunchInternal(104) // Home Coming

:MANSION_326
if 
  $flag_mansion_mission_counter == 3
goto_if_false @MANSION_378
$onmission = 1
Text.PrintBig('MAN_5', 1000, TextStyle.BottomRight)
PSAVE1_4427()
Mission.LoadAndLaunchInternal(105) // Cut Throat Business

:MANSION_378
goto @MANSION_11

:GROVE
script_name 'GROVE'

:GROVE_11
wait $mission_trigger_wait_time
if 
  $flag_grove_mission_counter == 2
goto_if_false @GROVE_36
terminate_this_script 

:GROVE_36
if 
  Player.IsPlaying($player1)
goto_if_false @GROVE_274
if 
  $onmission == 0
goto_if_false @GROVE_274
if 
  Player.CanStartMission($player1)
goto_if_false @GROVE_274
if 
  Char.LocateOnFoot3D($scplayer, $introX, $introY, $introZ, 1.2, 1.2, 2.0, False)
goto_if_false @GROVE_180
if 
  $flag_grove_mission_counter == 0
goto_if_false @GROVE_180
$onmission = 1
Text.PrintBig('GROVE_1', 1000, TextStyle.BottomRight)
PSAVE1_1140()
Mission.LoadAndLaunchInternal(106) // Beat Down on B Dup

:GROVE_180
if 
  Char.LocateOnFoot3D($scplayer, $sweetX, $sweetY, $sweetZ, 1.2, 1.2, 2.0, False)
goto_if_false @GROVE_274
if 
  $flag_grove_mission_counter == 1
goto_if_false @GROVE_274
$onmission = 1
Text.PrintBig('GROVE_2', 1000, TextStyle.BottomRight)
PSAVE1_1320()
Mission.LoadAndLaunchInternal(107) // Grove 4 Life

:GROVE_274
goto @GROVE_11

:RIOT
script_name 'RIOT'

:RIOT_11
wait $mission_trigger_wait_time
if 
  $flag_riot_mission_counter == 5
goto_if_false @RIOT_36
terminate_this_script 

:RIOT_36
if 
  Player.IsPlaying($player1)
goto_if_false @RIOT_673
if 
  $onmission == 0
goto_if_false @RIOT_673
if 
  Char.LocateOnFoot3D($scplayer, $mansionX, $mansionY, $mansionZ, 1.2, 1.2, 2.0, False)
goto_if_false @RIOT_180
if 
  Player.CanStartMission($player1)
goto_if_false @RIOT_180
if 
  $flag_riot_mission_counter == 0
goto_if_false @RIOT_180
$onmission = 1
Text.PrintBig('RIOT_1', 1000, TextStyle.BottomRight)
PSAVE1_4427()
Mission.LoadAndLaunchInternal(108) // Riot

:RIOT_180
if 
  Char.LocateOnFoot3D($scplayer, $sweetX, $sweetY, $sweetZ, 1.2, 1.2, 2.0, False)
goto_if_false @RIOT_587
if 
  Player.CanStartMission($player1)
goto_if_false @RIOT_587
if 
  $flag_riot_mission_counter == 1
goto_if_false @RIOT_372
$returned_respect = Game.FindMaxNumberOfGroupMembers()
if 
  $returned_respect > 1
goto_if_false @RIOT_320
$onmission = 1
Text.PrintBig('RIOT_2', 1000, TextStyle.BottomRight)
PSAVE1_1320()
Mission.LoadAndLaunchInternal(109) // Los Desperados
goto @RIOT_372

:RIOT_320
Text.PrintNow('MOREREP', 1000, 1)
if 
  $respect_help_played == 0
goto_if_false @RIOT_372
Text.PrintHelp('HELP101')
$respect_help_played = 1

:RIOT_372
if 
  $1355 == 1
goto_if_false @RIOT_483
if 
  $1354 == 1
goto_if_false @RIOT_467
if 
  $flag_riot_mission_counter == 2
goto_if_false @RIOT_460
$onmission = 1
Text.PrintBig('RIOT_4', 1000, TextStyle.BottomRight)
PSAVE1_1320()
Mission.LoadAndLaunchInternal(110) // End Of The Line (1)

:RIOT_460
goto @RIOT_483

:RIOT_467
Text.PrintNow('MORTURF', 2000, 1)

:RIOT_483
if 
  $flag_riot_mission_counter == 3
goto_if_false @RIOT_535
$onmission = 1
Text.PrintBig('RIOT_4', 1000, TextStyle.BottomRight)
PSAVE1_1320()
Mission.LoadAndLaunchInternal(111) // End Of The Line (2)

:RIOT_535
if 
  $flag_riot_mission_counter == 4
goto_if_false @RIOT_587
$onmission = 1
Text.PrintBig('RIOT_4', 1000, TextStyle.BottomRight)
PSAVE1_1320()
Mission.LoadAndLaunchInternal(112) // End Of The Line (3)

:RIOT_587
if and
  $flag_riot_mission_counter == 3
  $finaleB_played_first_time_round == 0
goto_if_false @RIOT_630
$finaleB_played_first_time_round = 1
$onmission = 1
Mission.LoadAndLaunchInternal(111) // End Of The Line (2)

:RIOT_630
if and
  $flag_riot_mission_counter == 4
  $finaleB_played_first_time_round == 1
goto_if_false @RIOT_673
$finaleB_played_first_time_round = 2
$onmission = 1
Mission.LoadAndLaunchInternal(112) // End Of The Line (3)

:RIOT_673
goto @RIOT_11

:SHOOT
script_name 'SHOOT'

:SHOOT_11
wait 125
if 
  Player.IsPlaying($player1)
goto_if_false @SHOOT_324
if 
  $onmission == 0
goto_if_false @SHOOT_238
if 
  $main_visible_area <> 0
goto_if_false @SHOOT_231
if 
  $flag_shooting_range_mission == 0
goto_if_false @SHOOT_231
if 
  $flag_dont_start_shooting_range == 0
goto_if_false @SHOOT_231
$sr_i = 0

:SHOOT_110
if 
  4 > $sr_i
goto_if_false @SHOOT_231
if 
  Char.LocateOnFoot3D($scplayer, $Srange_X($sr_i,4f), $Srange_Y($sr_i,4f), $Srange_Z($sr_i,4f), 20.0, 20.0, 10.0, False)
goto_if_false @SHOOT_217
if 
  Player.CanStartMission($player1)
goto_if_false @SHOOT_217
$onmission = 1
set_var_int_to_var_int $SR_range_id = $sr_i
Mission.LoadAndLaunchInternal(113) // Shooting range

:SHOOT_217
$sr_i += 1
goto @SHOOT_110

:SHOOT_231
goto @SHOOT_281

:SHOOT_238
if 
  $main_visible_area <> 0
goto_if_false @SHOOT_281
if 
  $flag_dont_start_shooting_range == 0
goto_if_false @SHOOT_281
$flag_dont_start_shooting_range = 1

:SHOOT_281
if 
  $flag_dont_start_shooting_range == 1
goto_if_false @SHOOT_324
if 
  $main_visible_area == 0
goto_if_false @SHOOT_324
$flag_dont_start_shooting_range = 0

:SHOOT_324
goto @SHOOT_11

:GYM
script_name 'GYM'

:GYM_11
wait 70
if 
  $onmission == 0
goto_if_false @GYM_388
if 
  $1348 == 1
goto_if_false @GYM_115
if 
  $switch_the_gym_interiors_off == 0
goto_if_false @GYM_115
World.SwitchEntryExit('GYM1', True)
World.SwitchEntryExit('GYM2', True)
World.SwitchEntryExit('GYM3', True)
$switch_the_gym_interiors_off = 1

:GYM_115
if 
  Player.IsPlaying($player1)
goto_if_false @GYM_381
if 
  Player.CanStartMission($player1)
goto_if_false @GYM_381
if 
  Char.LocateOnFoot3D($scplayer, 767.1537, 4.8323, 999.7185, 50.0, 50.0, 10.0, False)
goto_if_false @GYM_225
$main_visible_area_char = Char.GetAreaVisible($scplayer)
if 
  $main_visible_area_char == 5
goto_if_false @GYM_225
Mission.LoadAndLaunchInternal(114) // Los Santos Gym Fight School

:GYM_225
if 
  Char.LocateOnFoot3D($scplayer, 768.4777, -37.1737, 999.6865, 50.0, 50.0, 10.0, False)
goto_if_false @GYM_303
$main_visible_area_char = Char.GetAreaVisible($scplayer)
if 
  $main_visible_area_char == 6
goto_if_false @GYM_303
Mission.LoadAndLaunchInternal(115) // San Fierro Gym Fight School

:GYM_303
if 
  Char.LocateOnFoot3D($scplayer, 766.5975, -65.293, 999.6562, 50.0, 50.0, 10.0, False)
goto_if_false @GYM_381
$main_visible_area_char = Char.GetAreaVisible($scplayer)
if 
  $main_visible_area_char == 7
goto_if_false @GYM_381
Mission.LoadAndLaunchInternal(116) // Las Venturas Gym Fight School

:GYM_381
goto @GYM_488

:GYM_388
if 
  $1348 == 1
goto_if_false @GYM_488
if 
  $main_visible_area == 0
goto_if_false @GYM_488
if 
  $switch_the_gym_interiors_off == 1
goto_if_false @GYM_488
World.SwitchEntryExit('GYM1', False)
World.SwitchEntryExit('GYM2', False)
World.SwitchEntryExit('GYM3', False)
$switch_the_gym_interiors_off = 0

:GYM_488
goto @GYM_11

:TRUCKS
script_name 'TRUCKS'

:TRUCKS_11
wait $mission_trigger_wait_time
if 
  $onmission == 0
goto_if_false @TRUCKS_146
if 
  Player.IsPlaying($player1)
goto_if_false @TRUCKS_146
if 
  Char.LocateOnFoot3D($scplayer, $truckX, $truckY, $truckZ, 1.2, 1.2, 1.5, False)
goto_if_false @TRUCKS_146
if 
  Player.CanStartMission($player1)
goto_if_false @TRUCKS_146
Player.SetControl($player1, False)
Text.DrawOddjobTitleBeforeFade(False)
Text.PrintBig('TRUCK', 3000, TextStyle.MiddleSmallerHigher)
LITCAS_267()
Mission.LoadAndLaunchInternal(117) // Trucking

:TRUCKS_146
goto @TRUCKS_11

:QUARRYS
script_name 'QUARRYS'

:QUARRYS_11
wait 0
if 
  $onmission == 0
goto_if_false @QUARRYS_145
if 
  Player.IsPlaying($player1)
goto_if_false @QUARRYS_145
if 
  Char.LocateOnFoot3D($scplayer, $quarryX, $quarryY, $quarryZ, 1.5, 1.8, 1.5, False)
goto_if_false @QUARRYS_145
if 
  Player.CanStartMission($player1)
goto_if_false @QUARRYS_145
Player.SetControl($player1, False)
Text.DrawOddjobTitleBeforeFade(False)
Text.PrintBig('QUARRY', 3000, TextStyle.MiddleSmallerHigher)
LITCAS_267()
Mission.LoadAndLaunchInternal(118) // Quarry

:QUARRYS_145
goto @QUARRYS_11

:BSCHOO
script_name 'BSCHOO'

:BSCHOO_11
wait 0
if 
  $onmission == 0
goto_if_false @BSCHOO_125
if 
  Player.IsPlaying($player1)
goto_if_false @BSCHOO_125
if 
  Char.LocateOnFoot3D($scplayer, $boatsX, $boatsY, $boatsZ, 1.0, 1.0, 1.5, True)
goto_if_false @BSCHOO_125
if 
  Player.CanStartMission($player1)
goto_if_false @BSCHOO_125
Player.SetControl($player1, False)
LITCAS_267()
Mission.LoadAndLaunchInternal(119) // Boat School

:BSCHOO_125
goto @BSCHOO_11

:BIKES
script_name 'BIKES'

:BIKES_11
wait 0
if 
  $onmission == 0
goto_if_false @BIKES_125
if 
  Player.IsPlaying($player1)
goto_if_false @BIKES_125
if 
  Char.LocateOnFoot3D($scplayer, $bikesX, $bikesY, $bikesZ, 1.0, 1.0, 1.5, True)
goto_if_false @BIKES_125
if 
  Player.CanStartMission($player1)
goto_if_false @BIKES_125
Player.SetControl($player1, False)
LITCAS_267()
Mission.LoadAndLaunchInternal(120) // Bike School

:BIKES_125
goto @BIKES_11

:R3
script_name 'R3'

:R3_11
wait 70
if 
  $onmission == 0
goto_if_false @R3_4103
if 
  Player.IsPlaying($player1)
goto_if_false @R3_4103
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @R3_4001
if 
  not Game.IsMinigameInProgress
goto_if_false @R3_3994
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_110
goto @R3_4110
goto @R3_3994

:R3_110
if or
  Char.IsInTaxi($scplayer)
  Char.IsInModel($scplayer, 416)
  Char.IsInModel($scplayer, 407)
  Char.IsInModel($scplayer, 425)
  Char.IsInModel($scplayer, 609)
  Char.IsInAnyPoliceVehicle($scplayer)
goto_if_false @R3_2901
$R3_player_car = Char.StoreCarIsInNoSave($scplayer)
if 
  not Car.IsInWater($R3_player_car)
goto_if_false @R3_2901
if 
  Char.IsInTaxi($scplayer)
goto_if_false @R3_673
if 
  not is_player_in_shortcut_taxi $player1
goto_if_false @R3_673
if 
  $flag_taxiodd_mission_launched == 0
goto_if_false @R3_673
if 
  $R3_mission_help == 0
goto_if_false @R3_286
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @R3_286
Text.PrintHelp('TTUTOR')
$R3_mission_help = 1

:R3_286
if 
  $controlmode <> 3
goto_if_false @R3_492
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @R3_485

:R3_321
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @R3_447
wait 0
if 
  $onmission == 1
goto_if_false @R3_367
goto @R3_11

:R3_367
if or
  not Player.IsPlaying($player1)
  not Char.IsInTaxi($scplayer)
goto_if_false @R3_395
goto @R3_11

:R3_395
if 
  Game.IsMinigameInProgress
goto_if_false @R3_415
goto @R3_11

:R3_415
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_440
goto @R3_11

:R3_440
goto @R3_321

:R3_447
Text.PrintBig('TAXI_M', 6000, TextStyle.MiddleSmallerHigher)
wait 0
Mission.LoadAndLaunchInternal(121) // Taxi-Driver Sub-Mission
$flag_taxiodd_mission_launched = 1
goto @R3_11

:R3_485
goto @R3_673

:R3_492
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @R3_673

:R3_509
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @R3_635
wait 0
if 
  $onmission == 1
goto_if_false @R3_555
goto @R3_11

:R3_555
if or
  not Player.IsPlaying($player1)
  not Char.IsInTaxi($scplayer)
goto_if_false @R3_583
goto @R3_11

:R3_583
if 
  Game.IsMinigameInProgress
goto_if_false @R3_603
goto @R3_11

:R3_603
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_628
goto @R3_11

:R3_628
goto @R3_509

:R3_635
Text.PrintBig('TAXI_M', 6000, TextStyle.MiddleSmallerHigher)
wait 0
Mission.LoadAndLaunchInternal(121) // Taxi-Driver Sub-Mission
$flag_taxiodd_mission_launched = 1
goto @R3_11

:R3_673
if 
  Char.IsInModel($scplayer, 416)
goto_if_false @R3_1138
if 
  $flag_player_on_ambulance_mission == 0
goto_if_false @R3_1138
if 
  $R3_mission_help == 0
goto_if_false @R3_759
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @R3_759
Text.PrintHelp('ATUTOR')
$R3_mission_help = 1

:R3_759
if 
  $controlmode <> 3
goto_if_false @R3_961
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @R3_954

:R3_794
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @R3_923
wait 0
if 
  $onmission == 1
goto_if_false @R3_840
goto @R3_11

:R3_840
if or
  not Player.IsPlaying($player1)
  not Char.IsInModel($scplayer, 416)
goto_if_false @R3_871
goto @R3_11

:R3_871
if 
  Game.IsMinigameInProgress
goto_if_false @R3_891
goto @R3_11

:R3_891
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_916
goto @R3_11

:R3_916
goto @R3_794

:R3_923
Text.PrintBig('AMBUL_M', 6000, TextStyle.MiddleSmallerHigher)
wait 0
Mission.LoadAndLaunchInternal(122) // Paramedic Sub-Mission
goto @R3_11

:R3_954
goto @R3_1138

:R3_961
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @R3_1138

:R3_978
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @R3_1107
wait 0
if 
  $onmission == 1
goto_if_false @R3_1024
goto @R3_11

:R3_1024
if or
  not Player.IsPlaying($player1)
  not Char.IsInModel($scplayer, 416)
goto_if_false @R3_1055
goto @R3_11

:R3_1055
if 
  Game.IsMinigameInProgress
goto_if_false @R3_1075
goto @R3_11

:R3_1075
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_1100
goto @R3_11

:R3_1100
goto @R3_978

:R3_1107
Text.PrintBig('AMBUL_M', 6000, TextStyle.MiddleSmallerHigher)
wait 0
Mission.LoadAndLaunchInternal(122) // Paramedic Sub-Mission
goto @R3_11

:R3_1138
if 
  Char.IsInModel($scplayer, 407)
goto_if_false @R3_1603
if 
  $flag_player_on_fire_mission == 0
goto_if_false @R3_1603
if 
  $R3_mission_help == 0
goto_if_false @R3_1224
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @R3_1224
Text.PrintHelp('FTUTOR')
$R3_mission_help = 1

:R3_1224
if 
  $controlmode <> 3
goto_if_false @R3_1426
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @R3_1419

:R3_1259
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @R3_1388
wait 0
if 
  $onmission == 1
goto_if_false @R3_1305
goto @R3_11

:R3_1305
if or
  not Player.IsPlaying($player1)
  not Char.IsInModel($scplayer, 407)
goto_if_false @R3_1336
goto @R3_11

:R3_1336
if 
  Game.IsMinigameInProgress
goto_if_false @R3_1356
goto @R3_11

:R3_1356
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_1381
goto @R3_11

:R3_1381
goto @R3_1259

:R3_1388
Text.PrintBig('FIRE_M', 6000, TextStyle.MiddleSmallerHigher)
wait 0
Mission.LoadAndLaunchInternal(123) // Firefighter Sub-Mission
goto @R3_11

:R3_1419
goto @R3_1603

:R3_1426
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @R3_1603

:R3_1443
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @R3_1572
wait 0
if 
  $onmission == 1
goto_if_false @R3_1489
goto @R3_11

:R3_1489
if or
  not Player.IsPlaying($player1)
  not Char.IsInModel($scplayer, 407)
goto_if_false @R3_1520
goto @R3_11

:R3_1520
if 
  Game.IsMinigameInProgress
goto_if_false @R3_1540
goto @R3_11

:R3_1540
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_1565
goto @R3_11

:R3_1565
goto @R3_1443

:R3_1572
Text.PrintBig('FIRE_M', 6000, TextStyle.MiddleSmallerHigher)
wait 0
Mission.LoadAndLaunchInternal(123) // Firefighter Sub-Mission
goto @R3_11

:R3_1603
if or
  Char.IsInAnyPoliceVehicle($scplayer)
  Char.IsInModel($scplayer, 425)
goto_if_false @R3_2269
if 
  $R3_mission_help == 0
goto_if_false @R3_1676
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @R3_1676
Text.PrintHelp('CTUTOR')
$R3_mission_help = 1

:R3_1676
if 
  $controlmode <> 3
goto_if_false @R3_1985
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @R3_1978

:R3_1711
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @R3_1863
wait 0
if 
  $onmission == 1
goto_if_false @R3_1757
goto @R3_11

:R3_1757
if 
  not Player.IsPlaying($player1)
goto_if_false @R3_1780
goto @R3_11

:R3_1780
if and
  not Char.IsInAnyPoliceVehicle($scplayer)
  not Char.IsInModel($scplayer, 425)
goto_if_false @R3_1811
goto @R3_11

:R3_1811
if 
  Game.IsMinigameInProgress
goto_if_false @R3_1831
goto @R3_11

:R3_1831
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_1856
goto @R3_11

:R3_1856
goto @R3_1711

:R3_1863
if 
  Char.IsInModel($scplayer, 425)
goto_if_false @R3_1905
Text.PrintBig('COP_M3', 6000, TextStyle.MiddleSmallerHigher)
goto @R3_1963

:R3_1905
if 
  Char.IsInModel($scplayer, 415)
goto_if_false @R3_1947
Text.PrintBig('COP_M2', 6000, TextStyle.MiddleSmallerHigher)
goto @R3_1963

:R3_1947
Text.PrintBig('COP_M', 6000, TextStyle.MiddleSmallerHigher)

:R3_1963
wait 0
Mission.LoadAndLaunchInternal(124) // Vigilante Sub-Mission
goto @R3_11

:R3_1978
goto @R3_2269

:R3_1985
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @R3_2269

:R3_2002
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @R3_2154
wait 0
if 
  $onmission == 1
goto_if_false @R3_2048
goto @R3_11

:R3_2048
if 
  not Player.IsPlaying($player1)
goto_if_false @R3_2071
goto @R3_11

:R3_2071
if and
  not Char.IsInAnyPoliceVehicle($scplayer)
  not Char.IsInModel($scplayer, 425)
goto_if_false @R3_2102
goto @R3_11

:R3_2102
if 
  Game.IsMinigameInProgress
goto_if_false @R3_2122
goto @R3_11

:R3_2122
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_2147
goto @R3_11

:R3_2147
goto @R3_2002

:R3_2154
if 
  Char.IsInModel($scplayer, 425)
goto_if_false @R3_2196
Text.PrintBig('COP_M3', 6000, TextStyle.MiddleSmallerHigher)
goto @R3_2254

:R3_2196
if 
  Char.IsInModel($scplayer, 415)
goto_if_false @R3_2238
Text.PrintBig('COP_M2', 6000, TextStyle.MiddleSmallerHigher)
goto @R3_2254

:R3_2238
Text.PrintBig('COP_M', 6000, TextStyle.MiddleSmallerHigher)

:R3_2254
wait 0
Mission.LoadAndLaunchInternal(124) // Vigilante Sub-Mission
goto @R3_11

:R3_2269
if 
  Char.IsInModel($scplayer, 609)
goto_if_false @R3_2901
if 
  $flag_player_on_burglary_mission == 0
goto_if_false @R3_2901
$hours, $minutes = Clock.GetTimeOfDay()
if or
  $hours >= 20
  6 > $hours
goto_if_false @R3_2388
if 
  $R3_mission_help == 0
goto_if_false @R3_2388
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @R3_2388
Text.PrintHelp('BTUTOR2')
$R3_mission_help = 1

:R3_2388
if 
  $controlmode <> 3
goto_if_false @R3_2657
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @R3_2650
$hours, $minutes = Clock.GetTimeOfDay()
if or
  $hours >= 20
  6 > $hours
goto_if_false @R3_2634

:R3_2456
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @R3_2585
wait 0
if 
  $onmission == 1
goto_if_false @R3_2502
goto @R3_11

:R3_2502
if or
  not Player.IsPlaying($player1)
  not Char.IsInModel($scplayer, 609)
goto_if_false @R3_2533
goto @R3_11

:R3_2533
if 
  Game.IsMinigameInProgress
goto_if_false @R3_2553
goto @R3_11

:R3_2553
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_2578
goto @R3_11

:R3_2578
goto @R3_2456

:R3_2585
Text.DrawOddjobTitleBeforeFade(False)
Text.PrintBig('BURGLAR', 6000, TextStyle.MiddleSmallerHigher)
wait 0
Mission.LoadAndLaunchInternal(125) // Burglary Sub-Mission
$flag_player_on_burglary_mission = 1
goto @R3_11
goto @R3_2650

:R3_2634
Text.PrintNow('BURGHEL', 1000, 1)

:R3_2650
goto @R3_2901

:R3_2657
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @R3_2901
$hours, $minutes = Clock.GetTimeOfDay()
if or
  $hours >= 20
  6 > $hours
goto_if_false @R3_2885

:R3_2707
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @R3_2836
wait 0
if 
  $onmission == 1
goto_if_false @R3_2753
goto @R3_11

:R3_2753
if or
  not Player.IsPlaying($player1)
  not Char.IsInModel($scplayer, 609)
goto_if_false @R3_2784
goto @R3_11

:R3_2784
if 
  Game.IsMinigameInProgress
goto_if_false @R3_2804
goto @R3_11

:R3_2804
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_2829
goto @R3_11

:R3_2829
goto @R3_2707

:R3_2836
Text.DrawOddjobTitleBeforeFade(False)
Text.PrintBig('BURGLAR', 6000, TextStyle.MiddleSmallerHigher)
wait 0
Mission.LoadAndLaunchInternal(125) // Burglary Sub-Mission
$flag_player_on_burglary_mission = 1
goto @R3_11
goto @R3_2901

:R3_2885
Text.PrintNow('BURGHEL', 1000, 1)

:R3_2901
if 
  $Return_cities_passed > 1
goto_if_false @R3_3455
if or
  Char.IsInModel($scplayer, 537)
  Char.IsInModel($scplayer, 538)
goto_if_false @R3_3455
$R3_player_car = Char.StoreCarIsInNoSave($scplayer)
if and
  not Car.IsInWater($R3_player_car)
  not Train.HasDerailed($R3_player_car)
goto_if_false @R3_3455
if 
  $flag_player_on_freight_mission == 0
goto_if_false @R3_3455
if 
  $R3_mission_help == 0
goto_if_false @R3_3042
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @R3_3042
Text.PrintHelp('FTUTORA')
$R3_mission_help = 1

:R3_3042
if 
  $controlmode <> 3
goto_if_false @R3_3261
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @R3_3254

:R3_3077
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @R3_3232
wait 0
if 
  $onmission == 1
goto_if_false @R3_3123
goto @R3_11

:R3_3123
if 
  not Player.IsPlaying($player1)
goto_if_false @R3_3146
goto @R3_11

:R3_3146
if and
  not Char.IsInModel($scplayer, 537)
  not Char.IsInModel($scplayer, 538)
goto_if_false @R3_3180
goto @R3_11

:R3_3180
if 
  Game.IsMinigameInProgress
goto_if_false @R3_3200
goto @R3_11

:R3_3200
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_3225
goto @R3_11

:R3_3225
goto @R3_3077

:R3_3232
wait 0
Mission.LoadAndLaunchInternal(126) // Freight Train Sub-Mission
$been_in_freight_before = 1
goto @R3_11

:R3_3254
goto @R3_3455

:R3_3261
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @R3_3455

:R3_3278
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @R3_3433
wait 0
if 
  $onmission == 1
goto_if_false @R3_3324
goto @R3_11

:R3_3324
if 
  not Player.IsPlaying($player1)
goto_if_false @R3_3347
goto @R3_11

:R3_3347
if and
  not Char.IsInModel($scplayer, 537)
  not Char.IsInModel($scplayer, 538)
goto_if_false @R3_3381
goto @R3_11

:R3_3381
if 
  Game.IsMinigameInProgress
goto_if_false @R3_3401
goto @R3_11

:R3_3401
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_3426
goto @R3_11

:R3_3426
goto @R3_3278

:R3_3433
wait 0
Mission.LoadAndLaunchInternal(126) // Freight Train Sub-Mission
$been_in_freight_before = 1
goto @R3_11

:R3_3455
if 
  Char.IsInModel($scplayer, 575)
goto_if_false @R3_3994
$R3_player_car = Char.StoreCarIsInNoSave($scplayer)
if 
  not Car.IsInWater($R3_player_car)
goto_if_false @R3_3994
if 
  $flag_player_on_pimp_mission == 0
goto_if_false @R3_3994
if 
  $R3_mission_help == 0
goto_if_false @R3_3565
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @R3_3565
Text.PrintHelp('PTUTORA')
$R3_mission_help = 1

:R3_3565
if 
  $controlmode <> 3
goto_if_false @R3_3792
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @R3_3785

:R3_3600
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @R3_3747
wait 0
if 
  $onmission == 1
goto_if_false @R3_3646
goto @R3_11

:R3_3646
if 
  not Player.IsPlaying($player1)
goto_if_false @R3_3669
goto @R3_11

:R3_3669
if 
  not Char.IsInModel($scplayer, 575)
goto_if_false @R3_3695
goto @R3_11

:R3_3695
if 
  Game.IsMinigameInProgress
goto_if_false @R3_3715
goto @R3_11

:R3_3715
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_3740
goto @R3_11

:R3_3740
goto @R3_3600

:R3_3747
Text.PrintBig('PIMP', 6000, TextStyle.MiddleSmallerHigher)
wait 0
Mission.LoadAndLaunchInternal(127) // Pimping Sub-Mission
$flag_pimping_trigger = 1
goto @R3_11

:R3_3785
goto @R3_3994

:R3_3792
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @R3_3994

:R3_3809
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @R3_3956
wait 0
if 
  $onmission == 1
goto_if_false @R3_3855
goto @R3_11

:R3_3855
if 
  not Player.IsPlaying($player1)
goto_if_false @R3_3878
goto @R3_11

:R3_3878
if 
  not Char.IsInModel($scplayer, 575)
goto_if_false @R3_3904
goto @R3_11

:R3_3904
if 
  Game.IsMinigameInProgress
goto_if_false @R3_3924
goto @R3_11

:R3_3924
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_3949
goto @R3_11

:R3_3949
goto @R3_3809

:R3_3956
Text.PrintBig('PIMP', 6000, TextStyle.MiddleSmallerHigher)
wait 0
Mission.LoadAndLaunchInternal(127) // Pimping Sub-Mission
$flag_pimping_trigger = 1
goto @R3_11

:R3_3994
goto @R3_4103

:R3_4001
if 
  $R3_mission_help == 1
goto_if_false @R3_4103
Text.ClearThisPrint('TTUTOR')
Text.ClearThisPrint('ATUTOR')
Text.ClearThisPrint('FTUTOR')
Text.ClearThisPrint('CTUTOR')
Text.ClearThisPrint('BTUTOR2')
Text.ClearThisPrint('FTUTORA')
Text.ClearThisPrint('PTUTORA')
$R3_mission_help = 0

:R3_4103
goto @R3_11

:R3_4110
wait 70
if 
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @R3_4144
wait 5000
goto @R3_11

:R3_4144
goto @R3_4110

:FRTEXT
script_name 'FRTEXT'
wait 5000
Text.ClearHelp
Text.PrintHelp('FREI_16')
terminate_this_script 

:BLOODR
script_name 'BLOODR'

:BLOODR_11
wait $mission_trigger_wait_time
if 
  $onmission == 0
goto_if_false @BLOODR_136
if 
  Player.IsPlaying($player1)
goto_if_false @BLOODR_136
if 
  Char.LocateOnFoot3D($scplayer, $bloodX, $bloodY, $bloodZ, 1.4, 1.8, 1.5, False)
goto_if_false @BLOODR_136
if 
  Player.CanStartMission($player1)
goto_if_false @BLOODR_136
LITCAS_267()
Text.PrintBig('STAD_04', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(128) // Arena Mission: Blood Ring

:BLOODR_136
goto @BLOODR_11

:HOTR
script_name 'HOTR'

:HOTR_11
wait $mission_trigger_wait_time
if 
  $onmission == 0
goto_if_false @HOTR_199
if 
  Player.IsPlaying($player1)
goto_if_false @HOTR_199
if 
  Char.LocateOnFoot3D($scplayer, $hotringX, $hotringY, $hotringZ, 1.4, 1.8, 1.5, False)
goto_if_false @HOTR_199
$stat = Stat.GetInt(StatId.DrivingSkill)
if 
  $stat > 199
goto_if_false @HOTR_183
if 
  Player.CanStartMission($player1)
goto_if_false @HOTR_176
Text.PrintBig('STAD_03', 1000, TextStyle.BottomRight)
LITCAS_267()
set_var_int_to_constant $race_selection = 25
$show_race_selection = 0
Mission.LoadAndLaunchInternal(35) // Race Tournament / 8-track / Dirt Track

:HOTR_176
goto @HOTR_199

:HOTR_183
Text.PrintNow('STATCAR', 500, 1)

:HOTR_199
goto @HOTR_11

:KICKS
script_name 'KICKS'

:KICKS_11
wait $mission_trigger_wait_time
if 
  $onmission == 0
goto_if_false @KICKS_271
if 
  Player.IsPlaying($player1)
goto_if_false @KICKS_271
if 
  Char.LocateOnFoot3D($scplayer, $kickX, $kickY, $kickZ, 1.4, 1.8, 1.5, False)
goto_if_false @KICKS_271
if 
  Player.CanStartMission($player1)
goto_if_false @KICKS_271
$weekday = Clock.GetCurrentDayOfWeek()
if or
  $weekday == 0
  $weekday == 2
  $weekday == 4
goto_if_false @KICKS_243
$stat = Stat.GetInt(StatId.BikeSkill)
if 
  $stat > 199
goto_if_false @KICKS_220
Text.PrintBig('STAD_01', 1000, TextStyle.BottomRight)
LITCAS_267()
set_var_int_to_constant $race_selection = 26
$show_race_selection = 0
Mission.LoadAndLaunchInternal(35) // Race Tournament / 8-track / Dirt Track
goto @KICKS_236

:KICKS_220
Text.PrintNow('STATBIK', 500, 1)

:KICKS_236
goto @KICKS_271

:KICKS_243
LITCAS_267()
Text.PrintBig('STAD_02', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(129) // Arena Mission: Kickstart

:KICKS_271
goto @KICKS_11

:TRI
script_name 'TRI'

:TRI_11
wait 0
if 
  $onmission == 0
goto_if_false @TRI_619
if 
  Player.IsPlaying($player1)
goto_if_false @TRI_619
if or
  $weekday == 1
  $weekday == 7
goto_if_false @TRI_619
if or
  Char.LocateOnFoot3D($scplayer, 181.0, -1878.0, 2.0, 1.4, 1.8, 1.5, True)
  Char.LocateOnFoot3D($scplayer, 2135.432, -67.9555, 1.8, 1.4, 1.8, 1.5, True)
goto_if_false @TRI_544
$Return_cities_passed = Stat.GetInt(StatId.CitiesPassed)
if 
  $Return_cities_passed > 1
goto_if_false @TRI_501
$stat_read_skill_temp = Stat.GetInt(StatId.CycleSkill)
if 
  $stat_read_skill_temp >= 500
goto_if_false @TRI_458
$stat_stamina_temp = Stat.GetInt(StatId.Stamina)
if 
  $stat_stamina_temp >= 500
goto_if_false @TRI_415
if 
  Player.CanStartMission($player1)
goto_if_false @TRI_408
Text.PrintBig('BOTTY', 1000, TextStyle.BottomRight)
LITCAS_267()
if 
  Player.IsPlaying($player1)
goto_if_false @TRI_403
if 
  Char.LocateOnFoot3D($scplayer, 181.0, -1878.0, 2.0, 20.4, 20.8, 20.5, False)
goto_if_false @TRI_348
$triathalon_selection = 1

:TRI_348
if 
  Char.LocateOnFoot3D($scplayer, 2135.432, -67.9555, 20.8, 20.4, 20.8, 20.5, False)
goto_if_false @TRI_403
$triathalon_selection = 2

:TRI_403
Mission.LoadAndLaunchInternal(130) // Beat the Cock!

:TRI_408
goto @TRI_451

:TRI_415
if 
  $flag_stamina_skill_help_tri == 0
goto_if_false @TRI_451
Text.PrintHelp('STASKIL')
$flag_stamina_skill_help_tri = 1

:TRI_451
goto @TRI_494

:TRI_458
if 
  $flag_cycling_skill_help_tri == 0
goto_if_false @TRI_494
Text.PrintHelp('MTBSKIL')
$flag_cycling_skill_help_tri = 1

:TRI_494
goto @TRI_537

:TRI_501
if 
  $map_opened_tri == 0
goto_if_false @TRI_537
Text.PrintHelp('NOCOCK')
$map_opened_tri = 1

:TRI_537
goto @TRI_619

:TRI_544
if 
  $flag_cycling_skill_help_tri == 1
goto_if_false @TRI_569
$flag_cycling_skill_help_tri = 0

:TRI_569
if 
  $flag_stamina_skill_help_tri == 1
goto_if_false @TRI_594
$flag_stamina_skill_help_tri = 0

:TRI_594
if 
  $map_opened_tri == 1
goto_if_false @TRI_619
$map_opened_tri = 0

:TRI_619
goto @TRI_11

:ODDVEH
script_name 'ODDVEH'

:ODDVEH_11
wait $mission_trigger_wait_time
if 
  Player.IsPlaying($player1)
goto_if_false @ODDVEH_1149
if 
  $onmission == 0
goto_if_false @ODDVEH_1149
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @ODDVEH_1114
if 
  Char.IsInModel($scplayer, 481)
goto_if_false @ODDVEH_134
if 
  not Char.LocateAnyMeans3D($scplayer, $cour1X, $cour1Y, $cour1Z, 3.0, 3.0, 3.0, False)
goto_if_false @ODDVEH_134
$flag_courier_trigger = 1

:ODDVEH_134
if 
  Char.IsInModel($scplayer, 463)
goto_if_false @ODDVEH_202
if 
  not Char.LocateAnyMeans3D($scplayer, $cour2X, $cour2Y, $cour2Z, 3.0, 3.0, 3.0, False)
goto_if_false @ODDVEH_202
$flag_courier_trigger = 1

:ODDVEH_202
if 
  Char.IsInModel($scplayer, 462)
goto_if_false @ODDVEH_270
if 
  not Char.LocateAnyMeans3D($scplayer, $cour3X, $cour3Y, $cour3Z, 3.0, 3.0, 3.0, False)
goto_if_false @ODDVEH_270
$flag_courier_trigger = 1

:ODDVEH_270
if 
  Char.IsInModel($scplayer, 481)
goto_if_false @ODDVEH_335
if 
  $flag_courier_trigger == 0
goto_if_false @ODDVEH_335
Text.PrintBig('COUR1', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(131) // Courier
$flag_courier_trigger = 1

:ODDVEH_335
if 
  Char.IsInModel($scplayer, 463)
goto_if_false @ODDVEH_400
if 
  $flag_courier_trigger == 0
goto_if_false @ODDVEH_400
Text.PrintBig('COUR1', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(131) // Courier
$flag_courier_trigger = 1

:ODDVEH_400
if 
  Char.IsInModel($scplayer, 462)
goto_if_false @ODDVEH_465
if 
  $flag_courier_trigger == 0
goto_if_false @ODDVEH_465
Text.PrintBig('COUR1', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(131) // Courier
$flag_courier_trigger = 1

:ODDVEH_465
if 
  Char.IsInModel($scplayer, 510)
goto_if_false @ODDVEH_533
if 
  not Char.LocateAnyMeans3D($scplayer, $mountbX, $mountbY, $mountbZ, 10.5, 10.5, 10.5, False)
goto_if_false @ODDVEH_533
$flag_mtbike_trigger = 1

:ODDVEH_533
if and
  Char.IsInModel($scplayer, 510)
  $flag_mtbike_trigger == 0
goto_if_false @ODDVEH_722
Text.ClearPrints
$stat_read_skill_temp = Stat.GetInt(StatId.CycleSkill)
if 
  $stat_read_skill_temp >= 400
goto_if_false @ODDVEH_679
$hours, $minutes = Clock.GetTimeOfDay()
if and
  $hours >= 7
  18 > $hours
goto_if_false @ODDVEH_656
Text.PrintBig('MOUNTN', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(132) // The Chiliad Challenge
$flag_mtbike_trigger = 1
goto @ODDVEH_672

:ODDVEH_656
Text.PrintNow('MTIME4', 1000, 1)

:ODDVEH_672
goto @ODDVEH_715

:ODDVEH_679
if 
  $flag_cycling_skill_help == 0
goto_if_false @ODDVEH_715
Text.PrintHelp('MTBSKIL')
$flag_cycling_skill_help = 1

:ODDVEH_715
goto @ODDVEH_747

:ODDVEH_722
if 
  $flag_cycling_skill_help == 1
goto_if_false @ODDVEH_747
$flag_cycling_skill_help = 0

:ODDVEH_747
if 
  Char.IsInModel($scplayer, 481)
goto_if_false @ODDVEH_815
if 
  not Char.LocateAnyMeans3D($scplayer, $stunt_bmx1_cargen, $stunt_bmx1_x, $stunt_bmx1_y, 4.0, 4.0, 3.0, False)
goto_if_false @ODDVEH_815
$flag_bmx_trigger = 1

:ODDVEH_815
if and
  Char.IsInModel($scplayer, 481)
  $flag_bmx_trigger == 0
goto_if_false @ODDVEH_953
$stat_read_skill_temp = Stat.GetInt(StatId.CycleSkill)
if 
  $stat_read_skill_temp >= 200
goto_if_false @ODDVEH_910
Text.PrintBig('BMX', 1000, TextStyle.BottomRight)
$stunt_course = 0
Mission.LoadAndLaunchInternal(133) // BMX / NRG-500 STUNT Mission
$flag_bmx_trigger = 1
goto @ODDVEH_946

:ODDVEH_910
if 
  $flag_cycling_skill_help2 == 0
goto_if_false @ODDVEH_946
Text.PrintHelp('MTBSKI2')
$flag_cycling_skill_help2 = 1

:ODDVEH_946
goto @ODDVEH_978

:ODDVEH_953
if 
  $flag_cycling_skill_help2 == 1
goto_if_false @ODDVEH_978
$flag_cycling_skill_help2 = 0

:ODDVEH_978
if 
  Char.IsInModel($scplayer, 522)
goto_if_false @ODDVEH_1046
if 
  not Char.LocateAnyMeans3D($scplayer, $stunt_nrg500_cargen, $stunt_nrg500_x, $stunt_nrg500_y, 4.0, 4.0, 3.0, False)
goto_if_false @ODDVEH_1046
$flag_nrg500_trigger = 1

:ODDVEH_1046
if and
  Char.IsInModel($scplayer, 522)
  $flag_nrg500_trigger == 0
goto_if_false @ODDVEH_1107
Text.PrintBig('NRG500', 1000, TextStyle.BottomRight)
$stunt_course = 1
Mission.LoadAndLaunchInternal(133) // BMX / NRG-500 STUNT Mission
$flag_nrg500_trigger = 1

:ODDVEH_1107
goto @ODDVEH_1149

:ODDVEH_1114
$flag_hhiker_trigger = 0
$flag_courier_trigger = 0
$flag_mtbike_trigger = 0
$flag_bmx_trigger = 0
$flag_nrg500_trigger = 0

:ODDVEH_1149
goto @ODDVEH_11

:BUY1
script_name 'BUY1'
$save_houseprice = 50000
Pickup.Remove($save_housepickup[0])
$save_housepickup[0] = Pickup.CreateForSaleProperty($propertyX[0], $propertyY[0], $propertyZ[0], $save_houseprice, 'PROP_3')

:BUY1_52
wait $mission_trigger_wait_time
if 
  Player.IsPlaying($player1)
goto_if_false @BUY1_135
if 
  $onmission == 0
goto_if_false @BUY1_135
if 
  Pickup.HasBeenCollected($save_housepickup[0])
goto_if_false @BUY1_135
set_var_int_to_constant $buying_property_switch = 0
Audio.ReportMissionAudioEventAtPosition($propertyX[0], $propertyY[0], $propertyZ[0], 1149)
Mission.LoadAndLaunchInternal(134) // Buy Properties Mission
terminate_this_script 

:BUY1_135
goto @BUY1_52

:BUY2
script_name 'BUY2'
$1654 = 30000
Pickup.Remove($save_housepickup[1])
$save_housepickup[1] = Pickup.CreateForSaleProperty($propertyX[1], $propertyY[1], $propertyZ[1], $1654, 'PROP_3')

:BUY2_50
wait $mission_trigger_wait_time
if 
  Player.IsPlaying($player1)
goto_if_false @BUY2_133
if 
  $onmission == 0
goto_if_false @BUY2_133
if 
  Pickup.HasBeenCollected($save_housepickup[1])
goto_if_false @BUY2_133
set_var_int_to_constant $buying_property_switch = 1
Audio.ReportMissionAudioEventAtPosition($propertyX[1], $propertyY[1], $propertyZ[1], 1149)
Mission.LoadAndLaunchInternal(134) // Buy Properties Mission
terminate_this_script 

:BUY2_133
goto @BUY2_50

:BUY3
script_name 'BUY3'
$1655 = 80000
Pickup.Remove($save_housepickup[2])
$save_housepickup[2] = Pickup.CreateForSaleProperty($propertyX[2], $propertyY[2], $propertyZ[2], $1655, 'PROP_3')

:BUY3_52
wait $mission_trigger_wait_time
if 
  Player.IsPlaying($player1)
goto_if_false @BUY3_135
if 
  $onmission == 0
goto_if_false @BUY3_135
if 
  Pickup.HasBeenCollected($save_housepickup[2])
goto_if_false @BUY3_135
set_var_int_to_constant $buying_property_switch = 2
Audio.ReportMissionAudioEventAtPosition($propertyX[2], $propertyY[2], $propertyZ[2], 1149)
Mission.LoadAndLaunchInternal(134) // Buy Properties Mission
terminate_this_script 

:BUY3_135
goto @BUY3_52

:BUY_PRO
script_name 'BUY_PRO'

:BUY_PRO_11
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @BUY_PRO_145
if 
  $onmission == 0
goto_if_false @BUY_PRO_145
if 
  $already_bought_house($save_house_index,32i) == 0
goto_if_false @BUY_PRO_145
if 
  Pickup.HasBeenCollected($save_housepickup($save_house_index,32i))
goto_if_false @BUY_PRO_145
set_var_int_to_var_int $buying_property_switch = $prorerty_switch($save_house_index,32i)
Audio.ReportMissionAudioEventAtPosition($propertyX($save_house_index,32f), $propertyY($save_house_index,32f), $propertyZ($save_house_index,32f), 1149)
Mission.LoadAndLaunchInternal(134) // Buy Properties Mission
$already_bought_house($save_house_index,32i) = 1

:BUY_PRO_145
$save_house_index += 1
if 
  $save_house_index >= 32
goto_if_false @BUY_PRO_177
$save_house_index = 3

:BUY_PRO_177
goto @BUY_PRO_11

:IMPND_L
script_name 'IMPND_L'

:IMPND_L_11
wait 100
if 
  Player.IsPlaying($player1)
goto_if_false @IMPND_L_706
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @IMPND_L_189
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(71)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @IMPND_L_189
if 
  Char.LocateAnyMeans3D($scplayer, 1579.425, -1636.463, 14.5812, 120.0, 120.0, 80.0, False)
goto_if_false @IMPND_L_160
$impound_area = 1
StreamedScript.Stream(71)
if 
  StreamedScript.HasLoaded(71)
goto_if_false @IMPND_L_153
StreamedScript.StartNew(71)

:IMPND_L_153
goto @IMPND_L_189

:IMPND_L_160
if 
  $impound_area == 1
goto_if_false @IMPND_L_189
StreamedScript.MarkAsNoLongerNeeded(71)
$impound_area = 0

:IMPND_L_189
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @IMPND_L_390
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(71)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @IMPND_L_390
if 
  Char.LocateAnyMeans3D($scplayer, -1624.771, 679.6637, 8.569, 120.0, 120.0, 80.0, False)
goto_if_false @IMPND_L_336
if 
  $tlf_underway == 0
goto_if_false @IMPND_L_329
$impound_area = 2
StreamedScript.Stream(71)
if 
  StreamedScript.HasLoaded(71)
goto_if_false @IMPND_L_329
StreamedScript.StartNew(71)

:IMPND_L_329
goto @IMPND_L_390

:IMPND_L_336
if 
  $tlf_underway == 2
goto_if_false @IMPND_L_361
$tlf_underway = 0

:IMPND_L_361
if 
  $impound_area == 2
goto_if_false @IMPND_L_390
StreamedScript.MarkAsNoLongerNeeded(71)
$impound_area = 0

:IMPND_L_390
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @IMPND_L_548
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(71)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @IMPND_L_548
if 
  Char.LocateAnyMeans3D($scplayer, -1624.771, 679.6637, 8.569, 120.0, 120.0, 80.0, False)
goto_if_false @IMPND_L_519
$impound_area = 2
StreamedScript.Stream(71)
if 
  StreamedScript.HasLoaded(71)
goto_if_false @IMPND_L_512
StreamedScript.StartNew(71)

:IMPND_L_512
goto @IMPND_L_548

:IMPND_L_519
if 
  $impound_area == 2
goto_if_false @IMPND_L_548
StreamedScript.MarkAsNoLongerNeeded(71)
$impound_area = 0

:IMPND_L_548
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @IMPND_L_706
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(71)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @IMPND_L_706
if 
  Char.LocateAnyMeans3D($scplayer, 2284.592, 2466.838, 12.2306, 120.0, 120.0, 80.0, False)
goto_if_false @IMPND_L_677
$impound_area = 3
StreamedScript.Stream(71)
if 
  StreamedScript.HasLoaded(71)
goto_if_false @IMPND_L_670
StreamedScript.StartNew(71)

:IMPND_L_670
goto @IMPND_L_706

:IMPND_L_677
if 
  $impound_area == 3
goto_if_false @IMPND_L_706
StreamedScript.MarkAsNoLongerNeeded(71)
$impound_area = 0

:IMPND_L_706
goto @IMPND_L_11

:VALET_L
script_name 'VALET_L'

:VALET_L_11
wait 0
if 
  $valet_unlocked == 1
goto_if_false @VALET_L_197
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @VALET_L_197
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(72)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @VALET_L_197
if 
  Player.IsPlaying($player1)
goto_if_false @VALET_L_197
if 
  Char.IsInArea2D($scplayer, -1893.419, 1119.227, -1617.915, 828.85, False)
goto_if_false @VALET_L_168
$val_Area = 2
StreamedScript.Stream(72)
if 
  StreamedScript.HasLoaded(72)
goto_if_false @VALET_L_161
StreamedScript.StartNew(72)

:VALET_L_161
goto @VALET_L_197

:VALET_L_168
if 
  $val_Area == 2
goto_if_false @VALET_L_197
StreamedScript.MarkAsNoLongerNeeded(72)
$val_Area = 0

:VALET_L_197
goto @VALET_L_11

:TRAINSL
script_name 'TRAINSL'

:TRAINSL_11
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @TRAINSL_115
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @TRAINSL_115
if 
  Char.IsInModel($scplayer, 570)
goto_if_false @TRAINSL_115
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(33)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @TRAINSL_115
StreamedScript.Stream(33)
if 
  StreamedScript.HasLoaded(33)
goto_if_false @TRAINSL_115
StreamedScript.StartNew(33)

:TRAINSL_115
goto @TRAINSL_11

:ADPLANE
script_name 'ADPLANE'

:ADPLANE_11
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @ADPLANE_934
if 
  $onmission == 0
goto_if_false @ADPLANE_934
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @ADPLANE_314
if 
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @ADPLANE_277
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(32)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @ADPLANE_270
if 
  $created_marker == 0
goto_if_false @ADPLANE_157
$airport_marker = User3DMarker.Create(1685.7, -2238.9, 14.0, 14)
$created_marker = 1

:ADPLANE_157
if 
  Char.LocateOnFoot3D($scplayer, 1685.7, -2238.9, 12.5, 1.2, 1.2, 1.2, False)
goto_if_false @ADPLANE_266
if 
  Player.CanStartMission($player1)
goto_if_false @ADPLANE_259
Player.SetControl($player1, False)
LITCAS_267()
StreamedScript.Stream(32)
if 
  StreamedScript.HasLoaded(32)
goto_if_false @ADPLANE_259
StreamedScript.StartNew(32)

:ADPLANE_259
goto @ADPLANE_270

:ADPLANE_266
StreamedScript.MarkAsNoLongerNeeded(32)

:ADPLANE_270
goto @ADPLANE_307

:ADPLANE_277
if 
  $created_marker == 1
goto_if_false @ADPLANE_307
User3DMarker.Remove($airport_marker)
$created_marker = 0

:ADPLANE_307
goto @ADPLANE_344

:ADPLANE_314
if 
  $created_marker == 1
goto_if_false @ADPLANE_344
User3DMarker.Remove($airport_marker)
$created_marker = 0

:ADPLANE_344
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @ADPLANE_609
if 
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @ADPLANE_572
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(32)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @ADPLANE_565
if 
  $793 == 0
goto_if_false @ADPLANE_452
$796 = User3DMarker.Create(-1421.5, -287.2, 14.6, 14)
$793 = 1

:ADPLANE_452
if 
  Char.LocateOnFoot3D($scplayer, -1421.5, -287.2, 14.6, 1.2, 1.2, 1.2, False)
goto_if_false @ADPLANE_561
if 
  Player.CanStartMission($player1)
goto_if_false @ADPLANE_554
Player.SetControl($player1, False)
LITCAS_267()
StreamedScript.Stream(32)
if 
  StreamedScript.HasLoaded(32)
goto_if_false @ADPLANE_554
StreamedScript.StartNew(32)

:ADPLANE_554
goto @ADPLANE_565

:ADPLANE_561
StreamedScript.MarkAsNoLongerNeeded(32)

:ADPLANE_565
goto @ADPLANE_602

:ADPLANE_572
if 
  $793 == 1
goto_if_false @ADPLANE_602
User3DMarker.Remove($796)
$793 = 0

:ADPLANE_602
goto @ADPLANE_639

:ADPLANE_609
if 
  $793 == 1
goto_if_false @ADPLANE_639
User3DMarker.Remove($796)
$793 = 0

:ADPLANE_639
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @ADPLANE_904
if 
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @ADPLANE_867
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(32)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @ADPLANE_860
if 
  $794 == 0
goto_if_false @ADPLANE_747
$797 = User3DMarker.Create(1663.0, 1423.6, 11.2, 14)
$794 = 1

:ADPLANE_747
if 
  Char.LocateOnFoot3D($scplayer, 1663.0, 1423.6, 11.2, 1.2, 1.2, 1.2, False)
goto_if_false @ADPLANE_856
if 
  Player.CanStartMission($player1)
goto_if_false @ADPLANE_849
Player.SetControl($player1, False)
LITCAS_267()
StreamedScript.Stream(32)
if 
  StreamedScript.HasLoaded(32)
goto_if_false @ADPLANE_849
StreamedScript.StartNew(32)

:ADPLANE_849
goto @ADPLANE_860

:ADPLANE_856
StreamedScript.MarkAsNoLongerNeeded(32)

:ADPLANE_860
goto @ADPLANE_897

:ADPLANE_867
if 
  $794 == 1
goto_if_false @ADPLANE_897
User3DMarker.Remove($797)
$794 = 0

:ADPLANE_897
goto @ADPLANE_934

:ADPLANE_904
if 
  $794 == 1
goto_if_false @ADPLANE_934
User3DMarker.Remove($797)
$794 = 0

:ADPLANE_934
goto @ADPLANE_11

:COLLS
script_name 'COLLS'

:COLLS_11
wait 3000
$Return_progress_Percentage = Stat.GetProgressPercentage()
if 
  $returned_oysters_flag == 0
goto_if_false @COLLS_285
$Returned_oysters = Stat.GetInt(StatId.OystersCollected)
if 
  $Returned_oysters == 50
goto_if_false @COLLS_285
Audio.PlayMissionPassedTune(2)
Stat.PlayerMadeProgress(1)
Stat.SetInt(StatId.UnderwaterBreathStamina, 1000)
if 
  0 >= $iGFLikesPlayer[4]
goto_if_false @COLLS_106
$iGFLikesPlayer[4] = 45

:COLLS_106
if 
  0 >= $iGFLikesPlayer[1]
goto_if_false @COLLS_131
$iGFLikesPlayer[1] = 45

:COLLS_131
if 
  0 >= $iGFLikesPlayer[3]
goto_if_false @COLLS_156
$iGFLikesPlayer[3] = 45

:COLLS_156
if 
  0 >= $iGFLikesPlayer[2]
goto_if_false @COLLS_181
$iGFLikesPlayer[2] = 45

:COLLS_181
$iGFDesiredSexAppeal[0] = -100
$iGFDesiredSexAppeal[1] = -100
$iGFDesiredSexAppeal[3] = -100
$iGFDesiredSexAppeal[2] = -100
$iGFDesiredSexAppeal[4] = -100
$iGFDesiredSexAppeal[5] = -100
$iGFSelfRespect[0] = 1
$iGFSelfRespect[1] = 1
$iGFSelfRespect[3] = 1
$iGFSelfRespect[2] = 1
$iGFSelfRespect[4] = 1
$iGFSelfRespect[5] = 1
Text.ClearHelp
Text.PrintHelp('OYST100')
$returned_oysters_flag = 1

:COLLS_285
if 
  $flag_returned_shoehorses == 0
goto_if_false @COLLS_465
$Returned_shoehorses = Stat.GetInt(StatId.HorseshoesCollected)
if 
  $Returned_shoehorses == 50
goto_if_false @COLLS_465
Audio.PlayMissionPassedTune(2)
Stat.PlayerMadeProgress(1)
$all_horse_pickup1 = Pickup.CreateWithAmmo(356, PickupType.OnStreetSlow, 60, 2021.879, 1001.467, 10.3203)
$all_horse_pickup2 = Pickup.CreateWithAmmo(353, PickupType.OnStreetSlow, 120, 2025.286, 1001.496, 10.3203)
$all_horse_pickup3 = Pickup.CreateWithAmmo(351, PickupType.OnStreetSlow, 120, 2021.327, 1013.349, 10.3203)
$all_horse_pickup4 = Pickup.CreateWithAmmo(363, PickupType.OnStreetSlow, 20, 2023.775, 1013.527, 10.5203)
Text.ClearHelp
Text.PrintHelp('LUCK100')
$flag_returned_shoehorses = 1

:COLLS_465
if 
  $flag_returned_snapshots == 0
goto_if_false @COLLS_645
$Returned_snapshots = Stat.GetInt(StatId.SnapshotsTaken)
if 
  $Returned_snapshots == 50
goto_if_false @COLLS_645
Audio.PlayMissionPassedTune(2)
Stat.PlayerMadeProgress(1)
$all_photos_pickup1 = Pickup.CreateWithAmmo(358, PickupType.OnStreetSlow, 60, -2035.773, 139.4337, 28.3359)
$all_photos_pickup2 = Pickup.CreateWithAmmo(352, PickupType.OnStreetSlow, 120, -2038.43, 139.6281, 28.3359)
$all_photos_pickup3 = Pickup.CreateWithAmmo(349, PickupType.OnStreetSlow, 120, -2038.664, 137.4694, 28.3359)
$all_photos_pickup4 = Pickup.CreateWithAmmo(342, PickupType.OnStreetSlow, 20, -2035.474, 137.2511, 28.3359)
Text.ClearHelp
Text.PrintHelp('FOTO100')
$flag_returned_snapshots = 1

:COLLS_645
if 
  $flag_returned_tags == 0
goto_if_false @COLLS_832
$Returned_tags = Stat.FindNumberTagsTagged()
if 
  $Returned_tags == 100
goto_if_false @COLLS_832
Audio.PlayMissionPassedTune(2)
Stat.PlayerMadeProgress(1)
Gang.SetWeapons(GangType.Grove, WeaponType.DesertEagle, WeaponType.Mp5, WeaponType.Knife)
$all_tags_pickup1 = Pickup.CreateWithAmmo(355, PickupType.OnStreetSlow, 120, 2499.39, -1707.463, 1014.25)
$all_tags_pickup2 = Pickup.CreateWithAmmo(372, PickupType.OnStreetSlow, 120, 2499.514, -1709.64, 1014.25)
$all_tags_pickup3 = Pickup.CreateWithAmmo(350, PickupType.OnStreetSlow, 60, 2493.491, -1708.237, 1014.932)
$all_tags_pickup4 = Pickup.CreateWithAmmo(344, PickupType.OnStreetSlow, 20, 2493.553, -1706.863, 1015.132)
Text.ClearHelp
Text.PrintHelp('TAG_100')
$flag_returned_tags = 1

:COLLS_832
if 
  $game_complete == 0
goto_if_false @COLLS_994
if 
  $Return_progress_Percentage >= 100.0
goto_if_false @COLLS_994
if 
  Player.IsPlaying($player1)
goto_if_false @COLLS_994
CarGenerator.Switch($gen_car20, 101)
CarGenerator.Switch($hyfra_gen1, 101)
Player.AddScore($player1, 1000000)
Stat.SetInt(StatId.UnderwaterBreathStamina, 1000)
Stat.SetInt(StatId.Stamina, 1000)
Stat.SetInt(StatId.SexAppeal, 1000)
Stat.SetInt(StatId.SexAppealClothes, 1000)
Stat.SetInt(StatId.Respect, 1000)
Stat.SetInt(StatId.RespectGirlfriend, 1000)
Stat.SetInt(StatId.RespectClothes, 1000)
Stat.SetInt(StatId.CycleSkill, 1000)
wait 2000
Text.ClearHelp
Text.PrintHelp('GAME100')
$game_complete = 1

:COLLS_994
goto @COLLS_11

:TCASH
script_name 'TCASH'

:TCASH_11
wait 20000
if 
  $terminted_territory_pickup == 1
goto_if_false @TCASH_48
Pickup.Remove($territory_pickup)
$terminted_territory_pickup = 0
terminate_this_script 

:TCASH_48
$player_territory_owned = Stat.GetTerritoryUnderControlPercentage()
set_var_int_to_var_int $territory_cash = $player_territory_owned
$territory_cash *= 50
Pickup.UpdateMoneyPerDay($territory_pickup, $territory_cash)
goto @TCASH_11

:KEYCARD
$millies_like_stat = Stat.GetInt(StatId.GirlfriendMillie)
if 
  $millies_like_stat >= 35
goto_if_false @KEYCARD_51
$millies_double_ender = Pickup.Create(321, PickupType.Once, 345.2063, 308.9788, 998.6484)

:KEYCARD_51
World.SetClosestEntryExitFlag(345.5621, 306.2212, 10.0, EntryexitsFlag.Enabled, False)
$millie_marker = User3DMarker.Create(2037.349, 2722.071, 12.0281, 14)
$822 = User3DMarker.Create(343.9969, 305.104, 999.6557, 14)
script_name 'KEYCARD'

:KEYCARD_128
wait 0
$main_visible_area = Streaming.GetAreaVisible()
if 
  $main_visible_area == 0
goto_if_false @KEYCARD_169
$not_entered_millies_house = 0
goto @KEYCARD_176

:KEYCARD_169
$not_entered_millies_house = 1

:KEYCARD_176
if 
  Player.IsPlaying($player1)
goto_if_false @KEYCARD_630
if 
  $not_entered_millies_house == 0
goto_if_false @KEYCARD_421
if 
  Char.LocateOnFoot3D($scplayer, 2037.349, 2722.071, 9.8281, 1.2, 1.2, 2.0, False)
goto_if_false @KEYCARD_414
Player.SetControl($player1, False)
LITCAS_267()
Streaming.SetAreaVisible(6)
Streaming.RequestCollision(345.5621, 306.2212)
Streaming.LoadScene(345.5621, 306.2212, 998.1484)
World.SetExtraColors(1, False)
Game.SetIsInStadium(True)
if 
  Player.IsPlaying($player1)
goto_if_false @KEYCARD_372
Char.SetAreaVisible($scplayer, 6)
Char.SetCoordinates($scplayer, 345.5621, 306.2212, 998.4484)
Char.SetHeading($scplayer, 260.0)
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:KEYCARD_372
wait 1000
Camera.DoFade(500, Fade.In)
if 
  Player.IsPlaying($player1)
goto_if_false @KEYCARD_407
Player.SetControl($player1, True)

:KEYCARD_407
$not_entered_millies_house = 1

:KEYCARD_414
goto @KEYCARD_623

:KEYCARD_421
if 
  Char.LocateOnFoot3D($scplayer, 343.9969, 305.104, 998.1557, 1.2, 1.2, 2.0, False)
goto_if_false @KEYCARD_623
Player.SetControl($player1, False)
LITCAS_267()
Streaming.SetAreaVisible(0)
Streaming.RequestCollision(2037.541, 2727.687)
Streaming.LoadScene(2037.541, 2727.687, 9.8281)
World.ClearExtraColors(False)
Game.SetIsInStadium(False)
if 
  Player.IsPlaying($player1)
goto_if_false @KEYCARD_581
Char.SetAreaVisible($scplayer, 0)
Char.SetCoordinates($scplayer, 2037.541, 2727.687, 9.8281)
Char.SetHeading($scplayer, 0.0)
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:KEYCARD_581
wait 1000
Camera.DoFade(500, Fade.In)
if 
  Player.IsPlaying($player1)
goto_if_false @KEYCARD_616
Player.SetControl($player1, True)

:KEYCARD_616
$not_entered_millies_house = 0

:KEYCARD_623
goto @KEYCARD_634

:KEYCARD_630
Game.SetIsInStadium(False)

:KEYCARD_634
if 
  Pickup.HasBeenCollected($millies_keycard_pickup)
goto_if_false @KEYCARD_703
if 
  $millies_keycard_pickup_flag == 0
goto_if_false @KEYCARD_703
Text.PrintNow('GOTKEY', 6000, 1)
Blip.Remove($Thekeycard_contact_blip)
$keycard_aquired_from_millie = 1
$millies_keycard_pickup_flag = 1

:KEYCARD_703
$main_visible_area = Streaming.GetAreaVisible()
if and
  $millies_keycard_pickup_flag == 1
  $main_visible_area == 0
goto_if_false @KEYCARD_745
User3DMarker.Remove($millie_marker)
User3DMarker.Remove($822)
terminate_this_script 

:KEYCARD_745
goto @KEYCARD_128

:TPLAYER
script_name 'TPLAYER'

:TPLAYER_11
wait 75
if 
  Player.IsPlaying($player1)
goto_if_false @TPLAYER_1823
if 
  $onmission == 0
goto_if_false @TPLAYER_1784
if 
  $recreate_tplay_pickup == 0
goto_if_false @TPLAYER_321
TPLAYER_1862()
$Tplayer_pickup = Pickup.Create(#KILLFRENZY2PLYR, PickupType.SecondPlayer, 1481.955, -1656.146, 13.5469)
$825 = Pickup.Create(#KILLFRENZY2PLYR, PickupType.SecondPlayer, 1196.491, 249.321, 19.0618)
$826 = Pickup.Create(#KILLFRENZY2PLYR, PickupType.SecondPlayer, -2102.848, 653.8868, 51.8671)
$827 = Pickup.Create(#KILLFRENZY2PLYR, PickupType.SecondPlayer, -252.9156, 2583.779, 63.0703)
$828 = Pickup.Create(#KILLFRENZY2PLYR, PickupType.SecondPlayer, 2510.633, 1207.917, 10.3281)
$829 = Pickup.Create(#TWOPLAYER, PickupType.SecondPlayer, 2069.338, -1556.93, 12.9243)
$830 = Pickup.Create(#TWOPLAYER, PickupType.SecondPlayer, 2138.169, 1483.595, 10.3203)
$831 = Pickup.Create(#TWOPLAYER, PickupType.SecondPlayer, -2197.667, 292.0621, 34.623)
$832 = Pickup.Create(#TWOPLAYER, PickupType.SecondPlayer, -1520.864, 2608.207, 55.3437)
$833 = Pickup.Create(#TWOPLAYER, PickupType.SecondPlayer, 711.0688, -569.3774, 15.8359)
$recreate_tplay_pickup = 1

:TPLAYER_321
if 
  Pickup.HasBeenCollected($Tplayer_pickup)
goto_if_false @TPLAYER_379
$onmission = 1
LITCAS_267()
Text.PrintBig('TPLAY1', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(135) // 2player Ram
$recreate_tplay_pickup = 0

:TPLAYER_379
if 
  Pickup.HasBeenCollected($825)
goto_if_false @TPLAYER_437
$onmission = 1
LITCAS_267()
Text.PrintBig('TPLAY2', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(136) // 2player bike
$recreate_tplay_pickup = 0

:TPLAYER_437
if 
  Pickup.HasBeenCollected($826)
goto_if_false @TPLAYER_495
$onmission = 1
LITCAS_267()
Text.PrintBig('TPLAY3', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(137) // 2player cars
$recreate_tplay_pickup = 0

:TPLAYER_495
if 
  Pickup.HasBeenCollected($827)
goto_if_false @TPLAYER_553
$onmission = 1
LITCAS_267()
Text.PrintBig('TPLAY4', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(138) // 2player heli
$recreate_tplay_pickup = 0

:TPLAYER_553
if 
  Pickup.HasBeenCollected($828)
goto_if_false @TPLAYER_611
$onmission = 1
LITCAS_267()
Text.PrintBig('TPLAY5', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(139) // 2player peds
$recreate_tplay_pickup = 0

:TPLAYER_611
if 
  Pickup.HasBeenCollected($829)
goto_if_false @TPLAYER_669
$onmission = 1
LITCAS_267()
Text.PrintBig('TPLAY6', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(140) // Run-around LS
$recreate_tplay_pickup = 0

:TPLAYER_669
if 
  Pickup.HasBeenCollected($830)
goto_if_false @TPLAYER_727
$onmission = 1
LITCAS_267()
Text.PrintBig('TPLAY7', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(141) // Run-around LV
$recreate_tplay_pickup = 0

:TPLAYER_727
if 
  Pickup.HasBeenCollected($831)
goto_if_false @TPLAYER_785
$onmission = 1
LITCAS_267()
Text.PrintBig('TPLAY8', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(142) // Run-around SF
$recreate_tplay_pickup = 0

:TPLAYER_785
if 
  Pickup.HasBeenCollected($832)
goto_if_false @TPLAYER_843
$onmission = 1
LITCAS_267()
Text.PrintBig('TPLAY9', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(143) // Run-around DE
$recreate_tplay_pickup = 0

:TPLAYER_843
if 
  Pickup.HasBeenCollected($833)
goto_if_false @TPLAYER_901
$onmission = 1
LITCAS_267()
Text.PrintBig('TPLAY10', 1000, TextStyle.BottomRight)
Mission.LoadAndLaunchInternal(144) // Run-around CO
$recreate_tplay_pickup = 0

:TPLAYER_901
if 
  is_global_var_bit_set_const $iGFAvailableFor2Player {n} 5
goto_if_false @TPLAYER_1017
if 
  $recreate_gfriend_pickup == 0
goto_if_false @TPLAYER_968
$834 = Pickup.Create(#TWOPLAYER, PickupType.SecondPlayer, 2024.522, 2731.196, 10.3281)
$recreate_gfriend_pickup = 1

:TPLAYER_968
if 
  Pickup.HasBeenCollected($834)
goto_if_false @TPLAYER_1010
$onmission = 1
LITCAS_267()
Mission.LoadAndLaunchInternal(145) // Run-around (2player)
$recreate_tplay_pickup = 0

:TPLAYER_1010
goto @TPLAYER_1047

:TPLAYER_1017
if 
  $recreate_gfriend_pickup == 1
goto_if_false @TPLAYER_1047
Pickup.Remove($834)
$recreate_gfriend_pickup = 0

:TPLAYER_1047
if 
  is_global_var_bit_set_const $iGFAvailableFor2Player {n} 4
goto_if_false @TPLAYER_1163
if 
  $842 == 0
goto_if_false @TPLAYER_1114
$835 = Pickup.Create(#TWOPLAYER, PickupType.SecondPlayer, -2576.783, 1151.908, 55.2333)
$842 = 1

:TPLAYER_1114
if 
  Pickup.HasBeenCollected($835)
goto_if_false @TPLAYER_1156
$onmission = 1
LITCAS_267()
Mission.LoadAndLaunchInternal(146) // Run-around (2player)
$recreate_tplay_pickup = 0

:TPLAYER_1156
goto @TPLAYER_1193

:TPLAYER_1163
if 
  $842 == 1
goto_if_false @TPLAYER_1193
Pickup.Remove($835)
$842 = 0

:TPLAYER_1193
if 
  is_global_var_bit_set_const $iGFAvailableFor2Player {n} 3
goto_if_false @TPLAYER_1309
if 
  $843 == 0
goto_if_false @TPLAYER_1260
$836 = Pickup.Create(#TWOPLAYER, PickupType.SecondPlayer, -1390.171, 2637.515, 55.5)
$843 = 1

:TPLAYER_1260
if 
  Pickup.HasBeenCollected($836)
goto_if_false @TPLAYER_1302
$onmission = 1
LITCAS_267()
Mission.LoadAndLaunchInternal(147) // Run-around (2player)
$recreate_tplay_pickup = 0

:TPLAYER_1302
goto @TPLAYER_1339

:TPLAYER_1309
if 
  $843 == 1
goto_if_false @TPLAYER_1339
Pickup.Remove($836)
$843 = 0

:TPLAYER_1339
if 
  is_global_var_bit_set_const $iGFAvailableFor2Player {n} 2
goto_if_false @TPLAYER_1455
if 
  $844 == 0
goto_if_false @TPLAYER_1406
$837 = Pickup.Create(#TWOPLAYER, PickupType.SecondPlayer, -381.8657, -1426.27, 25.5)
$844 = 1

:TPLAYER_1406
if 
  Pickup.HasBeenCollected($837)
goto_if_false @TPLAYER_1448
$onmission = 1
LITCAS_267()
Mission.LoadAndLaunchInternal(148) // Run-around (2player)
$recreate_tplay_pickup = 0

:TPLAYER_1448
goto @TPLAYER_1485

:TPLAYER_1455
if 
  $844 == 1
goto_if_false @TPLAYER_1485
Pickup.Remove($837)
$844 = 0

:TPLAYER_1485
if 
  is_global_var_bit_set_const $iGFAvailableFor2Player {n} 0
goto_if_false @TPLAYER_1601
if 
  $845 == 0
goto_if_false @TPLAYER_1552
$838 = Pickup.Create(#TWOPLAYER, PickupType.SecondPlayer, 2402.436, -1715.494, 14.0)
$845 = 1

:TPLAYER_1552
if 
  Pickup.HasBeenCollected($838)
goto_if_false @TPLAYER_1594
$onmission = 1
LITCAS_267()
Mission.LoadAndLaunchInternal(149) // Run-around (2player)
$recreate_tplay_pickup = 0

:TPLAYER_1594
goto @TPLAYER_1631

:TPLAYER_1601
if 
  $845 == 1
goto_if_false @TPLAYER_1631
Pickup.Remove($838)
$845 = 0

:TPLAYER_1631
if 
  is_global_var_bit_set_const $iGFAvailableFor2Player {n} 1
goto_if_false @TPLAYER_1747
if 
  $846 == 0
goto_if_false @TPLAYER_1698
$839 = Pickup.Create(#TWOPLAYER, PickupType.SecondPlayer, -1803.614, 1199.332, 25.0)
$846 = 1

:TPLAYER_1698
if 
  Pickup.HasBeenCollected($839)
goto_if_false @TPLAYER_1740
$onmission = 1
LITCAS_267()
Mission.LoadAndLaunchInternal(150) // Run-around (2player)
$recreate_tplay_pickup = 0

:TPLAYER_1740
goto @TPLAYER_1777

:TPLAYER_1747
if 
  $846 == 1
goto_if_false @TPLAYER_1777
Pickup.Remove($839)
$846 = 0

:TPLAYER_1777
goto @TPLAYER_1816

:TPLAYER_1784
if 
  $recreate_tplay_pickup == 1
goto_if_false @TPLAYER_1816
TPLAYER_1862()
$recreate_tplay_pickup = 0

:TPLAYER_1816
goto @TPLAYER_1855

:TPLAYER_1823
if 
  $recreate_tplay_pickup == 1
goto_if_false @TPLAYER_1855
TPLAYER_1862()
$recreate_tplay_pickup = 0

:TPLAYER_1855
goto @TPLAYER_11

:TPLAYER_1862
Pickup.Remove($Tplayer_pickup)
Pickup.Remove($825)
Pickup.Remove($826)
Pickup.Remove($827)
Pickup.Remove($828)
Pickup.Remove($829)
Pickup.Remove($830)
Pickup.Remove($831)
Pickup.Remove($832)
Pickup.Remove($833)
Pickup.Remove($834)
Pickup.Remove($835)
Pickup.Remove($836)
Pickup.Remove($837)
Pickup.Remove($838)
Pickup.Remove($839)
return 

:PSAVE1
script_name 'PSAVE1'
$number_of_save_icons = 13

:PSAVE1_18
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_824
if 
  $onmission == 0
goto_if_false @PSAVE1_759
if and
  $flag_on_courier_mission == 0
  not is_global_var_bit_set_const $iDateReport {n} 20
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @PSAVE1_720
if 
  $created_save_blips == 0
goto_if_false @PSAVE1_534
PSAVE1_831()
$grove_save_pickup[0] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[0], $save_pickupY[0], $save_pickupZ[0])
$grove_save_pickup[1] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[1], $save_pickupY[1], $save_pickupZ[1])
$grove_save_pickup[2] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[2], $save_pickupY[2], $save_pickupZ[2])
$grove_save_pickup[3] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[3], $save_pickupY[3], $save_pickupZ[3])
$grove_save_pickup[4] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[4], $save_pickupY[4], $save_pickupZ[4])
$grove_save_pickup[5] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[5], $save_pickupY[5], $save_pickupZ[5])
$grove_save_pickup[6] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[6], $save_pickupY[6], $save_pickupZ[6])
$grove_save_pickup[7] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[7], $save_pickupY[7], $save_pickupZ[7])
$grove_save_pickup[8] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[8], $save_pickupY[8], $save_pickupZ[8])
$grove_save_pickup[9] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[9], $save_pickupY[9], $save_pickupZ[9])
$grove_save_pickup[10] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[10], $save_pickupY[10], $save_pickupZ[10])
$grove_save_pickup[11] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[11], $save_pickupY[11], $save_pickupZ[11])
$grove_save_pickup[12] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[12], $save_pickupY[12], $save_pickupZ[12])
if 
  $number_of_save_icons >= 14
goto_if_false @PSAVE1_383
$grove_save_pickup[13] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[13], $save_pickupY[13], $save_pickupZ[13])

:PSAVE1_383
if 
  $number_of_save_icons >= 15
goto_if_false @PSAVE1_419
$grove_save_pickup[14] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[14], $save_pickupY[14], $save_pickupZ[14])

:PSAVE1_419
if 
  $number_of_save_icons >= 16
goto_if_false @PSAVE1_455
$grove_save_pickup[15] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[15], $save_pickupY[15], $save_pickupZ[15])

:PSAVE1_455
if 
  $number_of_save_icons >= 17
goto_if_false @PSAVE1_491
$grove_save_pickup[16] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[16], $save_pickupY[16], $save_pickupZ[16])

:PSAVE1_491
if 
  $number_of_save_icons >= 18
goto_if_false @PSAVE1_527
$grove_save_pickup[17] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[17], $save_pickupY[17], $save_pickupZ[17])

:PSAVE1_527
$created_save_blips = 1

:PSAVE1_534
if 
  Pickup.HasBeenCollected($grove_save_pickup($save_index,18i))
goto_if_false @PSAVE1_713
PSAVE1_923()
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_699
Pickup.Remove($grove_save_pickup($save_index,18i))
$grove_save_pickup($save_index,18i) = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX($save_index,18f), $save_pickupY($save_index,18f), $save_pickupZ($save_index,18f))
World.ClearArea($save_playerX($save_index,18f), $save_playerY($save_index,18f), $save_playerZ($save_index,18f), 1.0, True)
Char.SetCoordinates($scplayer, $save_playerX($save_index,18f), $save_playerY($save_index,18f), $save_playerZ($save_index,18f))
Char.SetHeading($scplayer, $save_playerH($save_index,18f))
wait 0
Camera.DoFade(1000, Fade.In)

:PSAVE1_699
PSAVE1_1003()
$created_save_blips = 0

:PSAVE1_713
goto @PSAVE1_752

:PSAVE1_720
if 
  $created_save_blips == 1
goto_if_false @PSAVE1_752
PSAVE1_831()
$created_save_blips = 0

:PSAVE1_752
goto @PSAVE1_791

:PSAVE1_759
if 
  $created_save_blips == 1
goto_if_false @PSAVE1_791
PSAVE1_831()
$created_save_blips = 0

:PSAVE1_791
$save_index += 1
if 
  is_int_var_greater_or_equal_to_int_var $save_index >= $number_of_save_icons
goto_if_false @PSAVE1_824
$save_index = 0

:PSAVE1_824
goto @PSAVE1_18

:PSAVE1_831
Pickup.Remove($grove_save_pickup[0])
Pickup.Remove($grove_save_pickup[1])
Pickup.Remove($grove_save_pickup[2])
Pickup.Remove($grove_save_pickup[3])
Pickup.Remove($grove_save_pickup[4])
Pickup.Remove($grove_save_pickup[5])
Pickup.Remove($grove_save_pickup[6])
Pickup.Remove($grove_save_pickup[7])
Pickup.Remove($grove_save_pickup[8])
Pickup.Remove($grove_save_pickup[9])
Pickup.Remove($grove_save_pickup[10])
Pickup.Remove($grove_save_pickup[11])
Pickup.Remove($grove_save_pickup[12])
Pickup.Remove($grove_save_pickup[13])
Pickup.Remove($grove_save_pickup[14])
Pickup.Remove($grove_save_pickup[15])
Pickup.Remove($grove_save_pickup[16])
Pickup.Remove($grove_save_pickup[17])
return 

:PSAVE1_923
$onmission = 1
Player.SetControl($player1, False)
Game.ActivateSaveMenu

:PSAVE1_939
if 
  not Game.HasSaveGameFinished
goto_if_false @PSAVE1_963
wait 0
goto @PSAVE1_939

:PSAVE1_963
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_1001
Player.SetControl($player1, False)

:PSAVE1_1001
return 

:PSAVE1_1003
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_1023
Camera.RestoreJumpcut
Camera.SetBehindPlayer

:PSAVE1_1023
wait 500
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_1058
Player.SetControl($player1, True)
$onmission = 0

:PSAVE1_1058
return 

:PSAVE1_1060
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.Out)

:PSAVE1_1075
if 
  Camera.GetFadingStatus
goto_if_false @PSAVE1_1103
wait 0
Text.ClearPrints
Text.ClearHelp
goto @PSAVE1_1075

:PSAVE1_1103
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_1138
Camera.DoFade(0, Fade.Out)
Camera.RestoreJumpcut
Char.ClearTasks($scplayer)
Camera.DoFade(0, Fade.Out)

:PSAVE1_1138
return 

:PSAVE1_1140
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_1318
Text.ClearHelp
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2503.601, -1676.787, 13.9236, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2503.26, -1677.718, 14.0548, SwitchType.JumpCut)
World.ClearArea(2495.365, -1690.766, 13.7734, 1.0, True)
World.ClearArea(2503.26, -1677.718, 14.0548, 2.0, True)
World.ClearArea($introX, $introY, $introZ, 2.0, True)
Task.GoStraightToCoord($scplayer, 2495.365, -1690.766, 13.7734, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_1318
return 

:PSAVE1_1320
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_1496
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2512.233, -1673.532, 12.6635, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2513.139, -1673.825, 12.9696, SwitchType.JumpCut)
World.ClearArea(2513.139, -1673.825, 12.9696, 2.0, True)
World.ClearArea(2521.35, -1678.83, 14.32, 1.0, True)
World.ClearArea($sweetX, $sweetY, $sweetZ, 2.0, True)
Task.GoStraightToCoord($scplayer, 2521.35, -1678.83, 14.32, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_1496
return 

:PSAVE1_1498
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_1674
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2451.148, -1677.786, 16.3581, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2451.564, -1678.677, 16.1721, SwitchType.JumpCut)
World.ClearArea(2451.564, -1678.677, 16.1721, 2.0, True)
World.ClearArea(2459.44, -1691.58, 12.58, 1.0, True)
World.ClearArea($ryderX, $ryderY, $ryderZ, 2.0, True)
Task.GoStraightToCoord($scplayer, 2459.44, -1691.58, 12.58, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_1674
return 

:PSAVE1_1676
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_1834
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2075.7, -1687.878, 16.0883, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2074.984, -1688.556, 15.9215, SwitchType.JumpCut)
World.ClearArea(2065.4, -1703.4, 13.1, 1.0, True)
World.ClearArea(2074.984, -1688.556, 15.9215, 2.0, True)
Task.GoStraightToCoord($scplayer, 2065.4, -1703.4, 13.1, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_1834
return 

:PSAVE1_1836
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_2012
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1054.645, -1312.281, 14.9353, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1054.271, -1313.2, 15.0617, SwitchType.JumpCut)
World.ClearArea(1038.04, -1339.23, 12.55, 1.0, True)
World.ClearArea(1054.271, -1313.2, 15.0617, 2.0, True)
World.ClearArea($crashX, $crashY, $crashZ, 2.0, True)
Task.GoStraightToCoord($scplayer, 1038.04, -1339.23, 12.55, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_2012
return 

:PSAVE1_2014
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_2172
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(825.1696, -1636.572, 23.1761, 0.0, 0.0, 0.0)
Camera.PointAtPoint(824.351, -1636.051, 22.9332, SwitchType.JumpCut)
World.ClearArea(793.59, -1625.07, 12.38, 1.0, True)
World.ClearArea(824.351, -1636.051, 22.9332, 2.0, True)
Task.GoStraightToCoord($scplayer, 793.59, -1625.07, 12.38, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_2172
return 

:PSAVE1_2174
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_2332
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2486.848, -1660.327, 12.5441, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2486.846, -1659.363, 12.8073, SwitchType.JumpCut)
World.ClearArea(2486.94, -1646.76, 13.07, 1.0, True)
World.ClearArea(2486.846, -1659.363, 12.8073, 2.0, True)
Task.GoStraightToCoord($scplayer, 2486.94, -1646.76, 13.07, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_2332
return 

:PSAVE1_2334
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_2443
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1792.877, -2105.368, 17.6519, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1793.152, -2106.301, 17.4194, SwitchType.JumpCut)
World.ClearArea(1793.152, -2106.301, 17.4194, 2.0, True)
PSAVE1_1060()

:PSAVE1_2443
return 

:PSAVE1_2445
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_2603
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2187.87, -2269.808, 29.4158, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2188.376, -2269.021, 29.7703, SwitchType.JumpCut)
World.ClearArea(-2194.371, -2256.498, 29.6841, 1.0, True)
World.ClearArea(-2188.376, -2269.021, 29.7703, 2.0, True)
Task.GoStraightToCoord($scplayer, -2194.371, -2256.498, 29.6841, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_2603
return 

:PSAVE1_2605
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_2763
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-919.0773, -1715.624, 78.4517, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-920.0563, -1715.824, 78.4112, SwitchType.JumpCut)
World.ClearArea(-932.2975, -1718.891, 76.5703, 1.0, True)
World.ClearArea(-920.0563, -1715.824, 78.4112, 2.0, True)
Task.GoStraightToCoord($scplayer, -932.2975, -1718.891, 76.5703, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_2763
return 

:PSAVE1_2765
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_2923
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2010.974, 154.9329, 33.4883, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2011.966, 154.9767, 33.3685, SwitchType.JumpCut)
World.ClearArea(-2034.559, 148.8178, 27.8359, 1.0, True)
World.ClearArea(-2011.966, 154.9767, 33.3685, 2.0, True)
Task.GoStraightToCoord($scplayer, -2034.559, 148.8178, 27.8359, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_2923
return 

:PSAVE1_2925
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_3083
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2031.359, 196.2776, 34.812, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2031.639, 195.3477, 34.5735, SwitchType.JumpCut)
World.ClearArea(-2038.51, 178.4871, 27.8359, 1.0, True)
World.ClearArea(-2031.639, 195.3477, 34.5735, 2.0, True)
Task.GoStraightToCoord($scplayer, -2038.51, 178.4871, 27.8359, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_3083
return 

:PSAVE1_3085
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_3243
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2129.186, 640.2543, 72.0002, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2130.102, 640.2417, 71.6005, SwitchType.JumpCut)
World.ClearArea(-2156.56, 645.08, 51.35, 1.0, True)
World.ClearArea(-2130.102, 640.2417, 71.6005, 2.0, True)
Task.GoStraightToCoord($scplayer, -2156.56, 645.08, 51.35, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_3243
return 

:PSAVE1_3245
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_3403
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1979.02, 1004.792, 995.4213, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1978.566, 1003.92, 995.238, SwitchType.JumpCut)
World.ClearArea(1963.4, 972.2, 993.4, 1.0, True)
World.ClearArea(1979.02, 1004.792, 995.4213, 2.0, True)
Task.GoStraightToCoord($scplayer, 1963.4, 972.2, 993.4, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_3403
return 

:PSAVE1_3405
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_3563
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1954.571, 1041.494, 993.1794, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1954.962, 1042.414, 993.1676, SwitchType.JumpCut)
World.ClearArea(1963.5, 1063.3, 993.4, 1.0, True)
World.ClearArea(1954.962, 1042.414, 993.1676, 2.0, True)
Task.GoStraightToCoord($scplayer, 1963.5, 1063.3, 993.4, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_3563
return 

:PSAVE1_3565
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_3723
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2073.947, 991.3126, 17.4461, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2072.953, 991.4046, 17.5078, SwitchType.JumpCut)
World.ClearArea(2020.0, 1008.83, 9.82, 1.0, True)
World.ClearArea(2072.953, 991.4046, 17.5078, 2.0, True)
Task.GoStraightToCoord($scplayer, 2020.0, 1008.83, 9.82, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_3723
return 

:PSAVE1_3725
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_3883
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2601.677, 1386.132, 6.8077, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2602.328, 1386.855, 7.0409, SwitchType.JumpCut)
World.ClearArea(-2624.195, 1410.764, 6.1015, 1.0, True)
World.ClearArea(-2602.328, 1386.855, 7.0409, 2.0, True)
Task.GoStraightToCoord($scplayer, -2624.195, 1410.764, 6.1015, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_3883
return 

:PSAVE1_3885
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_4043
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-690.618, 906.0824, 13.0468, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-690.5204, 907.0766, 13.0919, SwitchType.JumpCut)
World.ClearArea(-684.982, 927.3704, 12.6293, 1.0, True)
World.ClearArea(-690.5204, 907.0766, 13.0919, 2.0, True)
Task.GoStraightToCoord($scplayer, -684.982, 927.3704, 12.6293, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_4043
return 

:PSAVE1_4045
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_4154
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(427.1954, 2527.643, 19.4052, 0.0, 0.0, 0.0)
Camera.PointAtPoint(426.2472, 2527.956, 19.4635, SwitchType.JumpCut)
World.ClearArea(426.2472, 2527.956, 19.4635, 2.0, True)
PSAVE1_1060()

:PSAVE1_4154
return 

:PSAVE1_4156
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_4265
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(330.1037, 2587.75, 18.3215, 0.0, 0.0, 0.0)
Camera.PointAtPoint(330.0515, 2586.753, 18.362, SwitchType.JumpCut)
World.ClearArea(330.0515, 2586.753, 18.362, 2.0, True)
PSAVE1_1060()

:PSAVE1_4265
return 

:PSAVE1_4267
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_4425
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2257.135, 1587.133, 1010.035, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2257.267, 1588.119, 1009.939, SwitchType.JumpCut)
World.ClearArea(2270.6, 1637.9, 1007.3, 1.0, True)
World.ClearArea(2257.267, 1588.119, 1009.939, 2.0, True)
Task.GoStraightToCoord($scplayer, 2270.6, 1637.9, 1007.3, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_4425
return 

:PSAVE1_4427
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_4585
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1278.091, -849.6337, 90.7593, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1278.038, -848.6531, 90.5709, SwitchType.JumpCut)
World.ClearArea(1258.158, -785.2752, 91.0302, 1.0, True)
World.ClearArea(1278.038, -848.6531, 90.5709, 2.0, True)
Task.GoStraightToCoord($scplayer, 1258.158, -785.2752, 91.0302, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_4585
return 

:PSAVE1_4587
if 
  Player.IsPlaying($player1)
goto_if_false @PSAVE1_4745
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2278.004, 134.334, 39.606, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2277.008, 134.356, 39.6897, SwitchType.JumpCut)
World.ClearArea(-2242.812, 128.7572, 34.3203, 1.0, True)
World.ClearArea(-2277.008, 134.356, 39.6897, 2.0, True)
Task.GoStraightToCoord($scplayer, -2242.812, 128.7572, 34.3203, MoveState.Walk, 3000)
PSAVE1_1060()

:PSAVE1_4745
return 

:HELP
script_name 'HELP'

:HELP_11
wait 70
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_2194
if 
  $game_starts_from_scratch == 1
goto_if_false @HELP_2194
if 
  $wasted_help == 0
goto_if_false @HELP_451
if 
  Pickup.HasBeenCollected($wasted_help1)
goto_if_false @HELP_259
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_110
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)

:HELP_110
Camera.SetFixedPosition(2022.613, -1432.05, 17.6541, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2022.989, -1431.124, 17.6552, SwitchType.JumpCut)
Pickup.Remove($wasted_help1)
Pickup.Remove($wasted_help2)
Text.ClearHelp
Text.PrintHelpForever('HOSP_1')
wait 8000
Text.PrintHelpForever('HOSP_2')
wait 8000
Text.PrintHelpForever('HOSP_3')
wait 8000
Text.ClearHelp
$wasted_help = 1
Camera.RestoreJumpcut
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_259
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)

:HELP_259
if 
  Pickup.HasBeenCollected($wasted_help2)
goto_if_false @HELP_451
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_302
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)

:HELP_302
Camera.SetFixedPosition(1184.347, -1313.489, 19.7079, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1183.645, -1314.089, 19.3248, SwitchType.JumpCut)
Pickup.Remove($wasted_help1)
Pickup.Remove($wasted_help2)
Text.ClearHelp
Text.PrintHelpForever('HOSP_1')
wait 8000
Text.PrintHelpForever('HOSP_2')
wait 8000
Text.PrintHelpForever('HOSP_3')
wait 8000
Text.ClearHelp
Camera.RestoreJumpcut
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_444
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)

:HELP_444
$wasted_help = 1

:HELP_451
if 
  $busted_help == 0
goto_if_false @HELP_672
if 
  Pickup.HasBeenCollected($busted_help1)
goto_if_false @HELP_672
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_512
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)

:HELP_512
Camera.SetFixedPosition(1536.577, -1687.134, 26.7069, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1537.295, -1686.564, 26.3081, SwitchType.JumpCut)
Pickup.Remove($busted_help1)
Text.ClearHelp
Text.PrintHelpForever('BUST_1')
wait 8000
Text.PrintHelpForever('BUST_2')
wait 8000
Text.PrintHelpForever('BUST_3')
wait 8000
Text.PrintHelpForever('BUST_4')
wait 8000
Text.ClearHelp
Camera.RestoreJumpcut
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_665
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)

:HELP_665
$busted_help = 1

:HELP_672
if 
  $chat_help1_flag == 0
goto_if_false @HELP_724
if 
  Pickup.HasBeenCollected($chat_help1)
goto_if_false @HELP_724
Text.PrintHelp('CHATBAK')
$chat_help1_flag = 1

:HELP_724
if 
  7 > $swimming_help
goto_if_false @HELP_1256
if 
  $swimming_help == 0
goto_if_false @HELP_815
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_815
if 
  Char.IsSwimming($scplayer)
goto_if_false @HELP_815
Text.PrintHelp('WZI2_A0')
$swimming_help = 1
wait 5000

:HELP_815
if 
  $swimming_help == 1
goto_if_false @HELP_888
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_888
if 
  Char.IsSwimming($scplayer)
goto_if_false @HELP_888
Text.PrintHelp('WZI2_A5')
$swimming_help = 2
wait 5000

:HELP_888
if 
  $swimming_help == 2
goto_if_false @HELP_961
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_961
if 
  Char.IsSwimming($scplayer)
goto_if_false @HELP_961
Text.PrintHelp('WZI2_A6')
$swimming_help = 3
wait 5000

:HELP_961
if 
  $swimming_help == 3
goto_if_false @HELP_1034
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_1034
if 
  Char.IsSwimming($scplayer)
goto_if_false @HELP_1034
Text.PrintHelp('WZI2_A1')
$swimming_help = 4
wait 5000

:HELP_1034
if 
  $swimming_help == 4
goto_if_false @HELP_1115
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_1115
if 
  Char.IsSwimming($scplayer)
goto_if_false @HELP_1115
Text.PrintHelp('WZI2_A2')
Hud.FlashObject(HudObject.Breathbar)
wait 5000
$swimming_help = 5
Hud.FlashObject(-1)

:HELP_1115
if 
  $swimming_help == 5
goto_if_false @HELP_1188
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_1188
if 
  Char.IsSwimming($scplayer)
goto_if_false @HELP_1188
Text.PrintHelp('WZI2_A3')
$swimming_help = 6
wait 5000

:HELP_1188
if 
  $swimming_help == 6
goto_if_false @HELP_1256
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_1256
if 
  Char.IsSwimming($scplayer)
goto_if_false @HELP_1256
Text.PrintHelp('WZI2_A7')
$swimming_help = 7

:HELP_1256
if 
  $print_first_help == 0
goto_if_false @HELP_1393
wait 2000
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_1350
if 
  $been_in_a_bmx == 0
goto_if_false @HELP_1350
if 
  Char.IsInModel($scplayer, 481)
goto_if_false @HELP_1350
Text.PrintHelp('INTRO2F')
$been_in_a_bmx = 1

:HELP_1350
wait 5000
Text.PrintHelp('HELP42')
Hud.FlashObject(HudObject.Radar)
wait 7000
Hud.FlashObject(-1)
$print_first_help = 1
goto @HELP_2120

:HELP_1393
if 
  $spray_help == 0
goto_if_false @HELP_1452
if 
  $flag_sweet_mission_counter == 1
goto_if_false @HELP_1452
wait 4000
Text.PrintHelp('SPRAY_C')
$spray_help = 1

:HELP_1452
if 
  $voice_over_at_hub == 1
goto_if_false @HELP_1578
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_1578
if 
  Char.LocateAnyMeans3D($scplayer, $introX, $introY, $introZ, 25.0, 25.0, 5.0, False)
goto_if_false @HELP_1578
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HELP_1555
Text.PrintHelp('HELP21B')

:HELP_1555
wait 5000
Text.PrintHelp('HELP44')
$voice_over_at_hub = 2

:HELP_1578
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_1670
if 
  $been_in_a_bmx == 0
goto_if_false @HELP_1670
if or
  Char.IsInModel($scplayer, 481)
  Char.IsInModel($scplayer, 509)
  Char.IsInModel($scplayer, 510)
goto_if_false @HELP_1670
wait 2000
Text.PrintHelp('INTRO2F')
$been_in_a_bmx = 1

:HELP_1670
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_2120
if 
  $bike_help == 0
goto_if_false @HELP_1808
if or
  Char.IsInModel($scplayer, 481)
  Char.IsInModel($scplayer, 509)
  Char.IsInModel($scplayer, 510)
goto_if_false @HELP_1808
if and
  $bike_help == 0
  $been_in_a_bmx == 1
goto_if_false @HELP_1808
wait 6000
Text.PrintHelp('HELP5_A')
wait 8000
Text.PrintHelp('HELP27')
wait 2000
$bike_help = 1

:HELP_1808
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_2120
if 
  $flag_intro_mission_counter > 0
goto_if_false @HELP_2120
if 
  $car_help_played == 0
goto_if_false @HELP_1949
if 
  $main_visible_area == 0
goto_if_false @HELP_1949
if 
  not Char.IsOnAnyBike($scplayer)
goto_if_false @HELP_1949
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HELP_1949
wait 2000
Text.PrintHelp('GF_RAD')
wait 5000
Text.PrintHelp('HELP56')
$car_help_played = 1

:HELP_1949
if 
  $drive_by_help == 0
goto_if_false @HELP_2120
if 
  $car_help_played == 1
goto_if_false @HELP_2120
if 
  Player.IsPlaying($player1)
goto_if_false @HELP_2120
$main_visible_area = Streaming.GetAreaVisible()
if 
  $main_visible_area == 0
goto_if_false @HELP_2120
if and
  Char.IsInAnyCar($scplayer)
  not Char.IsOnAnyBike($scplayer)
goto_if_false @HELP_2120
if or
  Char.IsCurrentWeapon($scplayer, WeaponType.MicroUzi)
  Char.IsCurrentWeapon($scplayer, WeaponType.Mp5)
goto_if_false @HELP_2120
Text.PrintHelp('HELP31')
wait 6000
Text.PrintHelp('HELP32')
wait 6000
Text.PrintHelp('HELP34')
$drive_by_help = 1

:HELP_2120
if 
  $drive_by_help == 1
goto_if_false @HELP_2194
if 
  $car_help_played == 1
goto_if_false @HELP_2194
if 
  $voice_over_at_hub == 1
goto_if_false @HELP_2194
if 
  $chat_help1_flag == 1
goto_if_false @HELP_2194
terminate_this_script 

:HELP_2194
goto @HELP_11

:INTROST
script_name 'INTROST'

:INTROST_11
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @INTROST_844
if 
  $onmission == 0
goto_if_false @INTROST_844
if 
  $voice_over_at_hub == 0
goto_if_false @INTROST_339
if 
  Player.IsPlaying($player1)
goto_if_false @INTROST_339
if 
  Char.LocateAnyMeans3D($scplayer, 2471.7, -1668.0, 12.3, 90.0, 40.0, 4.0, False)
goto_if_false @INTROST_339
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 11805)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 11806)

:INTROST_145
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @INTROST_194
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @INTROST_187
goto @INTROST_332

:INTROST_187
goto @INTROST_145

:INTROST_194
Text.PrintNow('VO_AF', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:INTROST_214
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @INTROST_263
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @INTROST_256
goto @INTROST_332

:INTROST_256
goto @INTROST_214

:INTROST_263
Text.PrintNow('VO_AG', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)

:INTROST_283
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @INTROST_332
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @INTROST_325
goto @INTROST_332

:INTROST_325
goto @INTROST_283

:INTROST_332
$voice_over_at_hub = 1

:INTROST_339
if 
  $funeral_mission_finished == 0
goto_if_false @INTROST_403
if 
  $flag_intro_mission_counter == 1
goto_if_false @INTROST_403
wait 5000
Text.PrintNow('INT_CJ1', 8000, 1)
$funeral_mission_finished = 1

:INTROST_403
if 
  $funeral_mission_finished == 1
goto_if_false @INTROST_634
if 
  $flag_intro_mission_counter == 1
goto_if_false @INTROST_634
$main_visible_area = Streaming.GetAreaVisible()
if 
  $main_visible_area == 3
goto_if_false @INTROST_634
if 
  Player.IsPlaying($player1)
goto_if_false @INTROST_634
if 
  Char.LocateAnyMeans3D($scplayer, 2496.051, -1698.013, 1013.75, 10.0, 10.0, 5.0, False)
goto_if_false @INTROST_634
Player.SetControl($player1, False)
Text.ClearPrints
Camera.SetFixedPosition(2496.38, -1694.334, 1015.431, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2496.368, -1695.325, 1015.299, SwitchType.JumpCut)
Text.PrintHelp('SAVE')
wait 5000
if 
  Player.IsPlaying($player1)
goto_if_false @INTROST_634
Player.SetControl($player1, True)
Camera.RestoreJumpcut
$funeral_mission_finished = 2

:INTROST_634
if 
  $funeral_mission_finished == 2
goto_if_false @INTROST_844
if 
  $flag_intro_mission_counter == 1
goto_if_false @INTROST_844
$main_visible_area = Streaming.GetAreaVisible()
if 
  $main_visible_area == 0
goto_if_false @INTROST_844
if 
  Player.IsPlaying($player1)
goto_if_false @INTROST_844
if 
  Char.LocateAnyMeans3D($scplayer, 2495.33, -1689.183, 13.2716, 20.0, 20.0, 6.0, False)
goto_if_false @INTROST_844
terminate_all_scripts_with_this_name 'INT'
start_new_script @INT 
Blip.Remove($intro_contact_blip)
$intro_contact_blip = Blip.AddSpriteForContactPoint($ryderX, $ryderY, $ryderZ, $ryder_blip_icon)
Text.PrintNow('INT2_1', 8000, 1)
wait 2000
Text.PrintHelp('RYBLIP')
wait 4000
$funeral_mission_finished = 3
terminate_this_script 

:INTROST_844
goto @INTROST_11

:FLOW
script_name 'FLOW'

:FLOW_11
wait 1000
if 
  Player.IsPlaying($player1)
goto_if_false @FLOW_959
if 
  $onmission == 0
goto_if_false @FLOW_959
if 
  $girlfried_help_flag == 0
goto_if_false @FLOW_111
if 
  $flag_crash_mission_counter == 1
goto_if_false @FLOW_111
wait 5500
Text.ClearHelp
Text.PrintHelp('GF_H000')
$girlfried_help_flag = 1

:FLOW_111
if 
  $oddjob_help_flag == 0
goto_if_false @FLOW_190
if 
  $flag_scrash_mission_counter == 1
goto_if_false @FLOW_190
wait 6000
Text.ClearHelp
Text.PrintHelp('VAL_HLP')
wait 5000
Text.ClearHelp
Text.PrintHelp('VAL_GOT')
$oddjob_help_flag = 1

:FLOW_190
if 
  $trucking_help_flag == 0
goto_if_false @FLOW_251
if 
  $flag_cat_mission3_passed == 1
goto_if_false @FLOW_251
wait 6000
Text.ClearHelp
Text.PrintHelp('TRUCK_H')
$trucking_help_flag = 1

:FLOW_251
if 
  $stealth_help_flag == 0
goto_if_false @FLOW_312
if 
  $flag_strap_mission_counter > 1
goto_if_false @FLOW_312
wait 6000
Text.ClearHelp
Text.PrintHelp('STELF')
$stealth_help_flag = 1

:FLOW_312
if 
  $got_gimp_suit == 0
goto_if_false @FLOW_373
if 
  $flag_heist_mission_counter == 2
goto_if_false @FLOW_373
wait 6000
Text.ClearHelp
Text.PrintHelp('GIMPGOT')
$got_gimp_suit = 1

:FLOW_373
if 
  $camera_secret_help == 0
goto_if_false @FLOW_434
if 
  $flag_synd_mission_counter == 1
goto_if_false @FLOW_434
wait 6000
Text.ClearHelp
Text.PrintHelp('SECRET')
$camera_secret_help = 1

:FLOW_434
if 
  $croupier_help == 0
goto_if_false @FLOW_495
if 
  $flag_heist_mission_counter == 6
goto_if_false @FLOW_495
wait 6000
Text.ClearHelp
Text.PrintHelp('CRO_GOT')
$croupier_help = 1

:FLOW_495
if 
  $trigger_final_LA1_missions == 0
goto_if_false @FLOW_658
if 
  $flag_sweet_mission_counter == 9
goto_if_false @FLOW_658
if 
  $flag_smoke_mission_counter == 4
goto_if_false @FLOW_658
if 
  $flag_strap_mission_counter == 5
goto_if_false @FLOW_658
if 
  $flag_ryder_mission_counter == 3
goto_if_false @FLOW_658
if 
  $flag_crash_mission_counter == 2
goto_if_false @FLOW_658
if 
  $flag_cesar_mission_counter == 1
goto_if_false @FLOW_658
start_new_script @LA1FIN 
Blip.Remove($sweet_contact_blip)
$sweet_contact_blip = Blip.AddSpriteForContactPoint($sweetX, $sweetY, $sweetZ, $sweet_blip_icon)
$trigger_final_LA1_missions = 1

:FLOW_658
if 
  $trigger_scrash2_mission == 0
goto_if_false @FLOW_730
if and
  $flag_scrash_mission_counter == 1
  $flag_synd_mission_counter == 6
goto_if_false @FLOW_730
Blip.Remove($garage_contact_blip)
$garage_contact_blip = Blip.AddSpriteForContactPoint($garageX, $garageY, $garageZ, $crash_blip_icon)
$trigger_scrash2_mission = 1

:FLOW_730
if 
  $trigger_ice_cold_mission == 0
goto_if_false @FLOW_800
if 
  $flag_synd_mission_counter == 5
goto_if_false @FLOW_800
Blip.Remove($synd_contact_blip)
Blip.Remove($garage_contact_blip)
$garage_contact_blip = Blip.AddSpriteForContactPoint($garageX, $garageY, $garageZ, $garage_blip_icon)
$trigger_ice_cold_mission = 1

:FLOW_800
if 
  $trigger_final_synd_mission == 0
goto_if_false @FLOW_872
if and
  $flag_synd_mission_counter == 9
  $flag_wuzi_mission_counter == 5
goto_if_false @FLOW_872
Blip.Remove($garage_contact_blip)
$garage_contact_blip = Blip.AddSpriteForContactPoint($garageX, $garageY, $garageZ, $garage_blip_icon)
$trigger_final_synd_mission = 1

:FLOW_872
if 
  $trigger_final_LA2_missions == 0
goto_if_false @FLOW_959
if and
  $flag_grove_mission_counter == 2
  $flag_mansion_mission_counter == 4
goto_if_false @FLOW_959
start_new_script @RIOT 
Blip.Remove($grove_contact_blip)
Blip.Remove($mansion_contact_blip)
$mansion_contact_blip = Blip.AddSpriteForContactPoint($mansionX, $mansionY, $mansionZ, $mansion_blip_icon)
$trigger_final_LA2_missions = 1
terminate_this_script 

:FLOW_959
goto @FLOW_11

:DOORS
script_name 'DOORS'
wait 0
  Object.Rotate($2708, 0.0, 360.0, False)
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_165
if 
  Char.IsInArea2D($scplayer, 1852.0, -1990.7, 1849.8, -1989.6, False)
goto_if_false @DOORS_165
LITCAS_267()
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_134
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1854.0, -1990.0, 12.5)

:DOORS_134
Camera.DoFade(500, Fade.In)

:DOORS_141
if 
  Camera.GetFadingStatus
goto_if_false @DOORS_165
wait 0
goto @DOORS_141

:DOORS_165
  Object.Rotate($2709, 270.0, 360.0, False)
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_315
if 
  Char.IsInArea2D($scplayer, 1867.3, -1985.2, 1868.2, -1982.7, False)
goto_if_false @DOORS_315
LITCAS_267()
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_284
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1867.4, -1987.1, 12.5)

:DOORS_284
Camera.DoFade(500, Fade.In)

:DOORS_291
if 
  Camera.GetFadingStatus
goto_if_false @DOORS_315
wait 0
goto @DOORS_291

:DOORS_315
  Object.Rotate($2710, 90.0, 360.0, False)
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_465
if 
  Char.IsInArea2D($scplayer, 1866.5, -1998.3, 1865.4, -2000.4, False)
goto_if_false @DOORS_465
LITCAS_267()
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_434
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1866.0, -1996.7, 12.5)

:DOORS_434
Camera.DoFade(500, Fade.In)

:DOORS_441
if 
  Camera.GetFadingStatus
goto_if_false @DOORS_465
wait 0
goto @DOORS_441

:DOORS_465
  Object.Rotate($2711, 270.0, 360.0, False)
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_615
if 
  Char.IsInArea2D($scplayer, 1899.6, -1985.2, 1900.9, -1982.7, False)
goto_if_false @DOORS_615
LITCAS_267()
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_584
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1899.8, -1986.7, 12.5)

:DOORS_584
Camera.DoFade(500, Fade.In)

:DOORS_591
if 
  Camera.GetFadingStatus
goto_if_false @DOORS_615
wait 0
goto @DOORS_591

:DOORS_615
  Object.Rotate($2712, 180.0, 360.0, False)
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_765
if 
  Char.IsInArea2D($scplayer, 1914.1, -1992.7, 1916.8, -1994.2, False)
goto_if_false @DOORS_765
LITCAS_267()
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_734
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1912.3, -1993.2, 12.5)

:DOORS_734
Camera.DoFade(500, Fade.In)

:DOORS_741
if 
  Camera.GetFadingStatus
goto_if_false @DOORS_765
wait 0
goto @DOORS_741

:DOORS_765
  Object.Rotate($2713, 90.0, 360.0, False)
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_915
if 
  Char.IsInArea2D($scplayer, 1899.0, -1998.1, 1897.9, -2000.4, False)
goto_if_false @DOORS_915
LITCAS_267()
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_884
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1898.7, -1996.1, 12.5)

:DOORS_884
Camera.DoFade(500, Fade.In)

:DOORS_891
if 
  Camera.GetFadingStatus
goto_if_false @DOORS_915
wait 0
goto @DOORS_891

:DOORS_915
  Object.Rotate($2714, 0.0, 360.0, False)
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_1065
if 
  Char.IsInArea2D($scplayer, 1901.0, -2020.1, 1899.1, -2019.1, False)
goto_if_false @DOORS_1065
LITCAS_267()
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_1034
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1902.7, -2019.6, 12.5)

:DOORS_1034
Camera.DoFade(500, Fade.In)

:DOORS_1041
if 
  Camera.GetFadingStatus
goto_if_false @DOORS_1065
wait 0
goto @DOORS_1041

:DOORS_1065
  Object.Rotate($2715, 180.0, 360.0, False)
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_1215
if 
  Char.IsInArea2D($scplayer, 1914.1, -2020.8, 1916.2, -2021.8, False)
goto_if_false @DOORS_1215
LITCAS_267()
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_1184
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1912.4, -2021.3, 12.5)

:DOORS_1184
Camera.DoFade(500, Fade.In)

:DOORS_1191
if 
  Camera.GetFadingStatus
goto_if_false @DOORS_1215
wait 0
goto @DOORS_1191

:DOORS_1215
  Object.Rotate($2716, 90.0, 360.0, False)
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_1365
if 
  Char.IsInArea2D($scplayer, 1906.5, -2035.3, 1905.5, -2037.2, False)
goto_if_false @DOORS_1365
LITCAS_267()
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_1334
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1905.8, -2033.4, 12.5)

:DOORS_1334
Camera.DoFade(500, Fade.In)

:DOORS_1341
if 
  Camera.GetFadingStatus
goto_if_false @DOORS_1365
wait 0
goto @DOORS_1341

:DOORS_1365
  Object.Rotate($2717, 0.0, 360.0, False)
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_1515
if 
  Char.IsInArea2D($scplayer, 1852.0, -2020.1, 1850.1, -2019.2, False)
goto_if_false @DOORS_1515
LITCAS_267()
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_1484
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1853.7, -2019.4, 12.5)

:DOORS_1484
Camera.DoFade(500, Fade.In)

:DOORS_1491
if 
  Camera.GetFadingStatus
goto_if_false @DOORS_1515
wait 0
goto @DOORS_1491

:DOORS_1515
  Object.Rotate($2718, 180.0, 360.0, False)
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_1665
if 
  Char.IsInArea2D($scplayer, 1865.0, -2020.7, 1867.1, -2021.8, False)
goto_if_false @DOORS_1665
LITCAS_267()
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_1634
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1863.0, -2021.3, 12.5)

:DOORS_1634
Camera.DoFade(500, Fade.In)

:DOORS_1641
if 
  Camera.GetFadingStatus
goto_if_false @DOORS_1665
wait 0
goto @DOORS_1641

:DOORS_1665
  Object.Rotate($2719, 90.0, 360.0, False)
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_1815
if 
  Char.IsInArea2D($scplayer, 1857.6, -2035.2, 1856.5, -2037.2, False)
goto_if_false @DOORS_1815
LITCAS_267()
if 
  Player.IsPlaying($player1)
goto_if_false @DOORS_1784
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1857.1, -2033.3, 12.5)

:DOORS_1784
Camera.DoFade(500, Fade.In)

:DOORS_1791
if 
  Camera.GetFadingStatus
goto_if_false @DOORS_1815
wait 0
goto @DOORS_1791

:DOORS_1815
terminate_this_script 

:BACKON
script_name 'BACKON'
wait 5000
Stat.ShowUpdateStats(True)
terminate_this_script 

:CASHWIN
script_name 'CASHWIN'
$game_timer = Clock.GetGameTimer()
if 
  1@ == 0
goto_if_false @CASHWIN_57
set_lvar_int_to_var_int 3@ = $game_timer
3@ += 3000
goto @CASHWIN_73

:CASHWIN_57
set_lvar_int_to_var_int 3@ = $game_timer
add_int_lvar_to_int_lvar 3@ += 1@

:CASHWIN_73
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @CASHWIN_95
terminate_this_script 

:CASHWIN_95
$game_timer = Clock.GetGameTimer()
if 
  is_int_var_greater_than_int_lvar $game_timer > 3@
goto_if_false @CASHWIN_121
terminate_this_script 

:CASHWIN_121
if 
  0@ == 0
goto_if_false @CASHWIN_234
CASHWIN_576()
Text.SetColor(180, 180, 180, 255)
if 
  2@ == 69
goto_if_false @CASHWIN_206
Text.Display(320.0, 180.333, 'BJ_PUSH')
goto @CASHWIN_227

:CASHWIN_206
Text.Display(320.0, 180.333, 'NOWIN')

:CASHWIN_227
goto @CASHWIN_569

:CASHWIN_234
if 
  0@ > 0
goto_if_false @CASHWIN_422
CASHWIN_576()
switch_start 2@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASHWIN_384 {caseNum1} 45 {caseLabel1} @CASHWIN_322 {caseNum2} 80 {caseLabel2} @CASHWIN_353 {caseNum3} -1 {caseLabel3} @CASHWIN_415 {caseNum4} -1 {caseLabel4} @CASHWIN_415 {caseNum5} -1 {caseLabel5} @CASHWIN_415 {caseNum6} -1 {caseLabel6} @CASHWIN_415 {caseNum7} -1 {caseLabel7} @CASHWIN_415

:CASHWIN_322
Text.DisplayWithNumber(320.0, 155.333, 'ALLRACE', 0@)
goto @CASHWIN_415

:CASHWIN_353
Text.DisplayWithNumber(320.0, 155.333, 'PL_07', 0@)
goto @CASHWIN_415

:CASHWIN_384
Text.DisplayWithNumber(320.0, 155.333, 'WINNER', 0@)
goto @CASHWIN_415

:CASHWIN_415
goto @CASHWIN_569

:CASHWIN_422
set_var_int_to_lvar_int $sequence_task_obj = 0@
$sequence_task_obj *= -1
CASHWIN_576()
switch_start 2@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @CASHWIN_538 {caseNum1} 80 {caseLabel1} @CASHWIN_507 {caseNum2} -1 {caseLabel2} @CASHWIN_569 {caseNum3} -1 {caseLabel3} @CASHWIN_569 {caseNum4} -1 {caseLabel4} @CASHWIN_569 {caseNum5} -1 {caseLabel5} @CASHWIN_569 {caseNum6} -1 {caseLabel6} @CASHWIN_569 {caseNum7} -1 {caseLabel7} @CASHWIN_569

:CASHWIN_507
Text.DisplayWithNumber(320.0, 155.333, 'PL_10', $sequence_task_obj)
goto @CASHWIN_569

:CASHWIN_538
Text.DisplayWithNumber(320.0, 155.333, 'LOSER', $sequence_task_obj)
goto @CASHWIN_569

:CASHWIN_569
goto @CASHWIN_73

:CASHWIN_576
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
Text.SetScale(1.3, 3.36)
Text.SetCenter(True)
Text.SetEdge(2, 0, 0, 0, 255)
Text.SetFont(Font.Pricedown)
$temp_integer_1, $temp_integer_2, $temp_integer_3, $temp_integer_4 = Hud.GetColor(6)
Text.SetColor($temp_integer_1, $temp_integer_2, $temp_integer_3, 255)
return 

:CRANES
script_name 'CRANES'
goto @CRANES_40
$sf_crane1_arm_LOD = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)

:CRANES_40
wait 100
if 
  Player.IsPlaying($player1)
goto_if_false @CRANES_507
if 
  Char.LocateAnyMeans2D($scplayer, -2080.441, 256.015, 10.0, 10.0, False)
goto_if_false @CRANES_168
0@ = StreamedScript.GetNumberOfInstances(67)
if 
  0@ == 0
goto_if_false @CRANES_164
StreamedScript.Stream(67)
if 
  StreamedScript.HasLoaded(67)
goto_if_false @CRANES_157
StreamedScript.StartNew(67, $carterwall)
0@ += 1

:CRANES_157
goto @CRANES_168

:CRANES_164
StreamedScript.MarkAsNoLongerNeeded(67)

:CRANES_168
if 
  Char.LocateAnyMeans2D($scplayer, 2399.202, 1879.139, 10.0, 10.0, False)
goto_if_false @CRANES_276
0@ = StreamedScript.GetNumberOfInstances(67)
if 
  0@ == 0
goto_if_false @CRANES_272
StreamedScript.Stream(67)
if 
  StreamedScript.HasLoaded(67)
goto_if_false @CRANES_265
StreamedScript.StartNew(67, $quarry_arm)
0@ += 1

:CRANES_265
goto @CRANES_276

:CRANES_272
StreamedScript.MarkAsNoLongerNeeded(67)

:CRANES_276
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @CRANES_393
if 
  Char.LocateAnyMeansObject2D($scplayer, $sf_crane1_arm_LOD, 50.0, 50.0, False)
goto_if_false @CRANES_393
0@ = StreamedScript.GetNumberOfInstances(68)
if 
  0@ == 0
goto_if_false @CRANES_389
StreamedScript.Stream(68)
if 
  StreamedScript.HasLoaded(68)
goto_if_false @CRANES_382
StreamedScript.StartNew(68, $sf_crane1_arm_LOD)
0@ += 1

:CRANES_382
goto @CRANES_393

:CRANES_389
StreamedScript.MarkAsNoLongerNeeded(68)

:CRANES_393
if 
  Char.LocateAnyMeans2D($scplayer, 709.45, 915.93, 10.0, 10.0, False)
goto_if_false @CRANES_507
0@ = StreamedScript.GetNumberOfInstances(69)
if 
  0@ == 0
goto_if_false @CRANES_503
StreamedScript.Stream(69)
if 
  StreamedScript.HasLoaded(69)
goto_if_false @CRANES_496
StreamedScript.StartNew(69, $arm_rotate_y, $quarry_base, $quarry_stand)
0@ += 1

:CRANES_496
goto @CRANES_507

:CRANES_503
StreamedScript.MarkAsNoLongerNeeded(69)

:CRANES_507
goto @CRANES_40

:ENTEXT
script_name 'ENTEXT'
0@ = -1

:ENTEXT_18
if 
  not is_int_lvar_equal_to_int_var 0@ == $entry_exit_area
goto_if_false @ENTEXT_53
wait 0
0@ = Streaming.GetAreaVisible()
goto @ENTEXT_18

:ENTEXT_53
World.SwitchEntryExit(s$entry_exit_name, $entry_exit_status)
terminate_this_script 

:ENTEXT_63
$player_is_completely_safe = 0
if 
  Player.IsPlaying($player1)
goto_if_false @ENTEXT_212
if 
  $main_visible_area == 0
goto_if_false @ENTEXT_212
if 
  $flag_cell_nation == 0
goto_if_false @ENTEXT_212
if 
  $player_fall_state == 0
goto_if_false @ENTEXT_212
if 
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @ENTEXT_212
if 
  not is_global_var_bit_set_const $iDateReport {n} 20
goto_if_false @ENTEXT_212
if 
  not Game.IsMinigameInProgress
goto_if_false @ENTEXT_212
if 
  Player.CanStartMission($player1)
goto_if_false @ENTEXT_212
$player_is_completely_safe = 1

:ENTEXT_212
return 

:ENTEXT_214
$player_is_completely_safe_for_mobile = 0
if 
  Player.IsPlaying($player1)
goto_if_false @ENTEXT_449
if 
  $onmission == 0
goto_if_false @ENTEXT_449
if 
  $main_visible_area == 0
goto_if_false @ENTEXT_449
if 
  $flag_cell_nation == 0
goto_if_false @ENTEXT_449
if 
  $player_fall_state == 0
goto_if_false @ENTEXT_449
if 
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @ENTEXT_449
if 
  not is_global_var_bit_set_const $iDateReport {n} 20
goto_if_false @ENTEXT_449
if 
  not Game.IsMinigameInProgress
goto_if_false @ENTEXT_449
if 
  Player.CanStartMission($player1)
goto_if_false @ENTEXT_449
if 
  Char.IsOnFoot($scplayer)
goto_if_false @ENTEXT_449
if 
  not Game.IsGangWarFightingGoingOn
goto_if_false @ENTEXT_449
if 
  not Player.IsWantedLevelGreater($player1, 0)
goto_if_false @ENTEXT_449
$timer_mobile_now = Clock.GetGameTimer()
set_var_int_to_var_int $timer_mobile_diff = $timer_mobile_now
sub_int_var_from_int_var $timer_mobile_diff -= $timer_mobile_start
$player_is_completely_safe_for_mobile = 1

:ENTEXT_449
return 

:OPENUP
script_name 'OPENUP'

:OPENUP_11
wait 2000
if 
  $Return_cities_passed > 0
goto_if_false @OPENUP_311
if 
  $opened_badlands_up == 0
goto_if_false @OPENUP_311
OPENUP_1660()
$save_housepickup[8] = Pickup.CreateForSaleProperty($propertyX[8], $propertyY[8], $propertyZ[8], $1661, 'PROP_3')
$1629 = Blip.AddShortRangeSpriteForContactPoint($propertyX[8], $propertyY[8], $propertyZ[8], RadarSprite.PropertyG)
Blip.ChangeDisplay($1629, BlipDisplay.BlipOnly)
$save_housepickup[19] = Pickup.CreateForSaleProperty($propertyX[19], $propertyY[19], $propertyZ[19], $1672, 'PROP_3')
$1640 = Blip.AddShortRangeSpriteForContactPoint($propertyX[19], $propertyY[19], $propertyZ[19], RadarSprite.PropertyG)
Blip.ChangeDisplay($1640, BlipDisplay.BlipOnly)
$save_housepickup[22] = Pickup.CreateForSaleProperty($propertyX[22], $propertyY[22], $propertyZ[22], $1675, 'PROP_3')
$1643 = Blip.AddShortRangeSpriteForContactPoint($propertyX[22], $propertyY[22], $propertyZ[22], RadarSprite.PropertyG)
Blip.ChangeDisplay($1643, BlipDisplay.BlipOnly)
$save_housepickup[25] = Pickup.CreateForSaleProperty($propertyX[25], $propertyY[25], $propertyZ[25], $1678, 'PROP_3')
$1646 = Blip.AddShortRangeSpriteForContactPoint($propertyX[25], $propertyY[25], $propertyZ[25], RadarSprite.PropertyG)
Blip.ChangeDisplay($1646, BlipDisplay.BlipOnly)
$save_housepickup[31] = Pickup.CreateForSaleProperty($propertyX[31], $propertyY[31], $propertyZ[31], $1684, 'PROP_3')
$1652 = Blip.AddShortRangeSpriteForContactPoint($propertyX[31], $propertyY[31], $propertyZ[31], RadarSprite.PropertyG)
Blip.ChangeDisplay($1652, BlipDisplay.BlipOnly)
$opened_badlands_up = 1

:OPENUP_311
if 
  $Return_cities_passed > 0
goto_if_false @OPENUP_781
if or
  $flag_truth_mission_counter > 1
  $launch_shit_for_debug_build == 1
goto_if_false @OPENUP_781
if 
  $opened_sanfran_up == 0
goto_if_false @OPENUP_781
OPENUP_1712()
$save_housepickup[11] = Pickup.CreateForSaleProperty($propertyX[11], $propertyY[11], $propertyZ[11], $1664, 'PROP_3')
$1632 = Blip.AddShortRangeSpriteForContactPoint($propertyX[11], $propertyY[11], $propertyZ[11], RadarSprite.PropertyG)
Blip.ChangeDisplay($1632, BlipDisplay.BlipOnly)
$save_housepickup[13] = Pickup.CreateForSaleProperty($propertyX[13], $propertyY[13], $propertyZ[13], $1666, 'PROP_3')
$1634 = Blip.AddShortRangeSpriteForContactPoint($propertyX[13], $propertyY[13], $propertyZ[13], RadarSprite.PropertyG)
Blip.ChangeDisplay($1634, BlipDisplay.BlipOnly)
$save_housepickup[14] = Pickup.CreateForSaleProperty($propertyX[14], $propertyY[14], $propertyZ[14], $1667, 'PROP_3')
$1635 = Blip.AddShortRangeSpriteForContactPoint($propertyX[14], $propertyY[14], $propertyZ[14], RadarSprite.PropertyG)
Blip.ChangeDisplay($1635, BlipDisplay.BlipOnly)
$save_housepickup[18] = Pickup.CreateForSaleProperty($propertyX[18], $propertyY[18], $propertyZ[18], $1671, 'PROP_3')
$1639 = Blip.AddShortRangeSpriteForContactPoint($propertyX[18], $propertyY[18], $propertyZ[18], RadarSprite.PropertyG)
Blip.ChangeDisplay($1639, BlipDisplay.BlipOnly)
$save_housepickup[20] = Pickup.CreateForSaleProperty($propertyX[20], $propertyY[20], $propertyZ[20], $1673, 'PROP_3')
$1641 = Blip.AddShortRangeSpriteForContactPoint($propertyX[20], $propertyY[20], $propertyZ[20], RadarSprite.PropertyG)
Blip.ChangeDisplay($1641, BlipDisplay.BlipOnly)
$save_housepickup[21] = Pickup.CreateForSaleProperty($propertyX[21], $propertyY[21], $propertyZ[21], $1674, 'PROP_3')
$1642 = Blip.AddShortRangeSpriteForContactPoint($propertyX[21], $propertyY[21], $propertyZ[21], RadarSprite.PropertyG)
Blip.ChangeDisplay($1642, BlipDisplay.BlipOnly)
$2631 = Blip.AddShortRangeSpriteForCoord(1458.7, -1140.0, 24.2, RadarSprite.Tshirt)
$clothes_blips = Blip.AddShortRangeSpriteForCoord(-1886.1, 862.4, 35.2, RadarSprite.Tshirt)
$2633 = Blip.AddShortRangeSpriteForCoord(2574.3, 1901.7, 11.0, RadarSprite.Tshirt)
$2634 = Blip.AddShortRangeSpriteForCoord(2090.5, 2221.0, 11.0, RadarSprite.Tshirt)
World.SwitchEntryExit('CLOTHGP', True)
$opened_sanfran_up = 1

:OPENUP_781
if 
  $Return_cities_passed > 1
goto_if_false @OPENUP_978
if 
  $opened_desert_up == 0
goto_if_false @OPENUP_978
OPENUP_1774()
$save_housepickup[5] = Pickup.CreateForSaleProperty($propertyX[5], $propertyY[5], $propertyZ[5], $1658, 'PROP_3')
$1626 = Blip.AddShortRangeSpriteForContactPoint($propertyX[5], $propertyY[5], $propertyZ[5], RadarSprite.PropertyG)
Blip.ChangeDisplay($1626, BlipDisplay.BlipOnly)
$save_housepickup[23] = Pickup.CreateForSaleProperty($propertyX[23], $propertyY[23], $propertyZ[23], $1676, 'PROP_3')
$1644 = Blip.AddShortRangeSpriteForContactPoint($propertyX[23], $propertyY[23], $propertyZ[23], RadarSprite.PropertyG)
Blip.ChangeDisplay($1644, BlipDisplay.BlipOnly)
$save_housepickup[24] = Pickup.CreateForSaleProperty($propertyX[24], $propertyY[24], $propertyZ[24], $1677, 'PROP_3')
$1645 = Blip.AddShortRangeSpriteForContactPoint($propertyX[24], $propertyY[24], $propertyZ[24], RadarSprite.PropertyG)
Blip.ChangeDisplay($1645, BlipDisplay.BlipOnly)
$opened_desert_up = 1

:OPENUP_978
if 
  $Return_cities_passed > 1
goto_if_false @OPENUP_1573
if or
  $1403 == 1
  $launch_shit_for_debug_build == 1
goto_if_false @OPENUP_1573
if 
  $opened_vegas_up == 0
goto_if_false @OPENUP_1573
OPENUP_1806()
$save_housepickup[4] = Pickup.CreateForSaleProperty($propertyX[4], $propertyY[4], $propertyZ[4], $1657, 'PROP_3')
$1625 = Blip.AddShortRangeSpriteForContactPoint($propertyX[4], $propertyY[4], $propertyZ[4], RadarSprite.PropertyG)
Blip.ChangeDisplay($1625, BlipDisplay.BlipOnly)
$save_housepickup[6] = Pickup.CreateForSaleProperty($propertyX[6], $propertyY[6], $propertyZ[6], $1659, 'PROP_3')
$1627 = Blip.AddShortRangeSpriteForContactPoint($propertyX[6], $propertyY[6], $propertyZ[6], RadarSprite.PropertyG)
Blip.ChangeDisplay($1627, BlipDisplay.BlipOnly)
$save_housepickup[7] = Pickup.CreateForSaleProperty($propertyX[7], $propertyY[7], $propertyZ[7], $1660, 'PROP_3')
$1628 = Blip.AddShortRangeSpriteForContactPoint($propertyX[7], $propertyY[7], $propertyZ[7], RadarSprite.PropertyG)
Blip.ChangeDisplay($1628, BlipDisplay.BlipOnly)
$save_housepickup[9] = Pickup.CreateForSaleProperty($propertyX[9], $propertyY[9], $propertyZ[9], $1662, 'PROP_3')
$1630 = Blip.AddShortRangeSpriteForContactPoint($propertyX[9], $propertyY[9], $propertyZ[9], RadarSprite.PropertyG)
Blip.ChangeDisplay($1630, BlipDisplay.BlipOnly)
$save_housepickup[16] = Pickup.CreateForSaleProperty($propertyX[16], $propertyY[16], $propertyZ[16], $1669, 'PROP_3')
$1637 = Blip.AddShortRangeSpriteForContactPoint($propertyX[16], $propertyY[16], $propertyZ[16], RadarSprite.PropertyG)
Blip.ChangeDisplay($1637, BlipDisplay.BlipOnly)
$save_housepickup[17] = Pickup.CreateForSaleProperty($propertyX[17], $propertyY[17], $propertyZ[17], $1670, 'PROP_3')
$1638 = Blip.AddShortRangeSpriteForContactPoint($propertyX[17], $propertyY[17], $propertyZ[17], RadarSprite.PropertyG)
Blip.ChangeDisplay($1638, BlipDisplay.BlipOnly)
$save_housepickup[27] = Pickup.CreateForSaleProperty($propertyX[27], $propertyY[27], $propertyZ[27], $1680, 'PROP_3')
$1648 = Blip.AddShortRangeSpriteForContactPoint($propertyX[27], $propertyY[27], $propertyZ[27], RadarSprite.PropertyG)
Blip.ChangeDisplay($1648, BlipDisplay.BlipOnly)
$save_housepickup[28] = Pickup.CreateForSaleProperty($propertyX[28], $propertyY[28], $propertyZ[28], $1681, 'PROP_3')
$1649 = Blip.AddShortRangeSpriteForContactPoint($propertyX[28], $propertyY[28], $propertyZ[28], RadarSprite.PropertyG)
Blip.ChangeDisplay($1649, BlipDisplay.BlipOnly)
$save_housepickup[29] = Pickup.CreateForSaleProperty($propertyX[29], $propertyY[29], $propertyZ[29], $1682, 'PROP_3')
$1650 = Blip.AddShortRangeSpriteForContactPoint($propertyX[29], $propertyY[29], $propertyZ[29], RadarSprite.PropertyG)
Blip.ChangeDisplay($1650, BlipDisplay.BlipOnly)
$2642 = Blip.AddShortRangeSpriteForCoord(457.2, -1500.7, 31.3, RadarSprite.Tshirt)
$2643 = Blip.AddShortRangeSpriteForCoord(2795.2, 2424.6, 11.0, RadarSprite.Tshirt)
$2646 = Blip.AddShortRangeSpriteForCoord(-1692.9, 952.8, 26.3, RadarSprite.Tshirt)
World.SwitchEntryExit('CSDESGN', True)
$opened_vegas_up = 1

:OPENUP_1573
if 
  $Return_cities_passed > 2
goto_if_false @OPENUP_1653
if 
  $opened_la2_up == 0
goto_if_false @OPENUP_1653
$2644 = Blip.AddShortRangeSpriteForCoord(451.9, -1480.0, 30.9, RadarSprite.Tshirt)
World.SwitchEntryExit('CSEXL', True)
terminate_this_script 
$opened_la2_up = 1

:OPENUP_1653
goto @OPENUP_11

:OPENUP_1660
Blip.Remove($1629)
Blip.Remove($1640)
Blip.Remove($1643)
Blip.Remove($1646)
Blip.Remove($1652)
Pickup.Remove($save_housepickup[8])
Pickup.Remove($save_housepickup[19])
Pickup.Remove($save_housepickup[22])
Pickup.Remove($save_housepickup[25])
Pickup.Remove($save_housepickup[31])
return 

:OPENUP_1712
Blip.Remove($1632)
Blip.Remove($1634)
Blip.Remove($1635)
Blip.Remove($1639)
Blip.Remove($1641)
Blip.Remove($1642)
Pickup.Remove($save_housepickup[11])
Pickup.Remove($save_housepickup[13])
Pickup.Remove($save_housepickup[14])
Pickup.Remove($save_housepickup[18])
Pickup.Remove($save_housepickup[20])
Pickup.Remove($save_housepickup[21])
return 

:OPENUP_1774
Blip.Remove($1626)
Blip.Remove($1644)
Blip.Remove($1645)
Pickup.Remove($save_housepickup[5])
Pickup.Remove($save_housepickup[23])
Pickup.Remove($save_housepickup[24])
return 

:OPENUP_1806
Blip.Remove($1625)
Blip.Remove($1627)
Blip.Remove($1628)
Blip.Remove($1630)
Blip.Remove($1637)
Blip.Remove($1638)
Blip.Remove($1648)
Blip.Remove($1649)
Blip.Remove($1650)
Pickup.Remove($save_housepickup[4])
Pickup.Remove($save_housepickup[6])
Pickup.Remove($save_housepickup[7])
Pickup.Remove($save_housepickup[9])
Pickup.Remove($save_housepickup[16])
Pickup.Remove($save_housepickup[17])
Pickup.Remove($save_housepickup[27])
Pickup.Remove($save_housepickup[28])
Pickup.Remove($save_housepickup[29])
return 

:LITCAS
script_name 'LITCAS'

:LITCAS_11
wait 100
if 
  Player.IsPlaying($player1)
goto_if_false @LITCAS_260
if 
  Char.LocateAnyMeans3D($scplayer, 1941.146, 997.5668, 20.0, 100.0, 100.0, 20.0, False)
goto_if_false @LITCAS_260
LITCAS_267()
if 
  Player.IsPlaying($player1)
goto_if_false @LITCAS_113
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)

:LITCAS_113
Streaming.LoadScene(2039.732, 1006.771, 14.7353)
Camera.SetFixedPosition(2040.725, 1006.748, 14.8482, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2039.732, 1006.771, 14.7353, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)
Text.ClearPrints
Text.PrintNow('WUZ_HLP', 5000, 1)
wait 5000
LITCAS_267()
if 
  Player.IsPlaying($player1)
goto_if_false @LITCAS_251
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Text.ClearPrints

:LITCAS_251
Camera.DoFade(500, Fade.In)
terminate_this_script 

:LITCAS_260
goto @LITCAS_11

:LITCAS_267
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.Out)

:LITCAS_282
if 
  Camera.GetFadingStatus
goto_if_false @LITCAS_306
wait 0
goto @LITCAS_282

:LITCAS_306
return 

:Noname_1
terminate_this_script 

:PROJECT
script_name 'PROJECT'
10@ = 0
$points_scored = 0
$bball_throw_active = 1
if 
  10@ == -1
goto_if_false @PROJECT_94
0@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
9@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)

:PROJECT_94
wait 0
if 
  10@ == 0
goto_if_false @PROJECT_637
if 
  8@ == 1
goto_if_false @PROJECT_180
17@ = Math.RandomFloatInRange(-0.2, 0.2)
add_float_lvar_to_float_lvar 4@ += 17@
17@ = Math.RandomFloatInRange(-0.2, 0.2)
add_float_lvar_to_float_lvar 5@ += 17@

:PROJECT_180
6@ += 0.1
if 
  is_float_lvar_greater_than_float_lvar 3@ > 6@
goto_if_false @PROJECT_247
if 
  0.0 > 7@
goto_if_false @PROJECT_240
7@ = 0.0

:PROJECT_240
goto @PROJECT_334

:PROJECT_247
set_lvar_float_to_lvar_float 17@ = 3@
add_float_lvar_to_float_lvar 17@ += 7@
set_lvar_float_to_lvar_float 18@ = 17@
sub_float_lvar_from_float_lvar 18@ -= 6@
if 
  0.5 > 18@
goto_if_false @PROJECT_334
set_lvar_float_to_lvar_float 17@ = 6@
17@ += 0.5
set_lvar_float_to_lvar_float 7@ = 17@
sub_float_lvar_from_float_lvar 7@ -= 3@

:PROJECT_334
17@ = 0.5
17@ *= 9.8
set_lvar_float_to_lvar_float 18@ = 7@
div_float_lvar_by_float_lvar 18@ /= 17@
28@ = Math.Sqrt(18@)
set_lvar_float_to_lvar_float 17@ = 3@
add_float_lvar_to_float_lvar 17@ += 7@
sub_float_lvar_from_float_lvar 17@ -= 6@
18@ = 0.5
18@ *= 9.8
set_lvar_float_to_lvar_float 19@ = 17@
div_float_lvar_by_float_lvar 19@ /= 18@
17@ = Math.Sqrt(19@)
set_lvar_float_to_lvar_float 16@ = 28@
add_float_lvar_to_float_lvar 16@ += 17@
17@ = 0.0
sub_float_lvar_from_float_lvar 17@ -= 7@
set_lvar_float_to_lvar_float 18@ = 28@
mult_float_lvar_by_float_lvar 18@ *= 28@
set_lvar_float_to_lvar_float 29@ = 17@
div_float_lvar_by_float_lvar 29@ /= 18@
set_lvar_float_to_lvar_float 17@ = 28@
mult_float_lvar_by_float_lvar 17@ *= 29@
set_lvar_float_to_lvar_float 30@ = 17@
30@ *= -2.0
31@ = 0.0
set_lvar_float_to_lvar_float 26@ = 4@
sub_float_lvar_from_float_lvar 26@ -= 1@
set_lvar_float_to_lvar_float 27@ = 5@
sub_float_lvar_from_float_lvar 27@ -= 2@
11@ = Clock.GetGameTimer()
if 
  Object.DoesExist(0@)
goto_if_false @PROJECT_630
Object.SetRecordsCollisions(0@, True)
Object.SetCollision(0@, True)
Object.FreezePosition(0@, True)

:PROJECT_630
10@ += 1

:PROJECT_637
if 
  10@ == 1
goto_if_false @PROJECT_1032
if 
  Object.DoesExist(0@)
goto_if_false @PROJECT_1032
if 
  not Object.HasCollidedWithAnything(0@)
goto_if_false @PROJECT_954
12@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 13@ = 12@
sub_int_lvar_from_int_lvar 13@ -= 11@
cset_lvar_float_to_lvar_int 14@ =# 13@
14@ /= 1000.0
if 
  is_float_lvar_greater_than_float_lvar 16@ > 14@
goto_if_false @PROJECT_926
set_lvar_float_to_lvar_float 17@ = 14@
mult_float_lvar_by_float_lvar 17@ *= 14@
mult_float_lvar_by_float_lvar 17@ *= 29@
set_lvar_float_to_lvar_float 18@ = 30@
mult_float_lvar_by_float_lvar 18@ *= 14@
set_var_float_to_lvar_float $z = 17@
add_float_lvar_to_float_var $z += 18@
add_float_lvar_to_float_var $z += 31@
set_lvar_float_to_lvar_float 17@ = 14@
div_float_lvar_by_float_lvar 17@ /= 16@
set_var_float_to_lvar_float $x = 26@
mult_float_var_by_float_lvar $x *= 17@
set_var_float_to_lvar_float $y = 27@
mult_float_var_by_float_lvar $y *= 17@
set_lvar_float_to_lvar_float 20@ = 1@
add_float_var_to_float_lvar 20@ += $x
set_lvar_float_to_lvar_float 21@ = 2@
add_float_var_to_float_lvar 21@ += $y
set_lvar_float_to_lvar_float 22@ = 3@
add_float_var_to_float_lvar 22@ += $z
Object.SetCoordinatesAndVelocity(0@, 20@, 21@, 22@)
goto @PROJECT_947

:PROJECT_926
Object.SetCoordinatesAndVelocity(0@, 4@, 5@, 6@)
10@ += 1

:PROJECT_947
goto @PROJECT_1032

:PROJECT_954
PROJECT_1685()
Object.FreezePosition(0@, False)
Object.SetDynamic(0@, True)
Object.SetCollision(0@, True)
Object.SetVelocity(0@, 23@, 24@, 25@)
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @PROJECT_1025
Text.PrintNow('BB_06', 4000, 1)

:PROJECT_1025
10@ = 99

:PROJECT_1032
if 
  10@ == 2
goto_if_false @PROJECT_1396
if 
  8@ == 1
goto_if_false @PROJECT_1208
if 
  Object.DoesExist(9@)
goto_if_false @PROJECT_1179
15@ = Object.GetModel(9@)
if 
  Streaming.HasModelLoaded(15@)
goto_if_false @PROJECT_1179
PROJECT_1685()
Object.FreezePosition(0@, False)
Object.SetDynamic(0@, True)
Object.SetCollision(0@, True)
Object.SetVelocity(0@, 23@, 24@, 25@)
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @PROJECT_1179
Text.PrintNow('BB_06', 4000, 1)

:PROJECT_1179
Audio.ReportMissionAudioEventAtObject(0@, 1011)
$points_scored = -1
10@ = 99
goto @PROJECT_1396

:PROJECT_1208
6@ += -0.5
if 
  6 > $bball_shot_dist
goto_if_false @PROJECT_1285
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @PROJECT_1271
Text.PrintWith2NumbersNow('BB_05', $bball_shot_dist, $bball_shot_dist_decimal, 5000, TextStyle.Middle)

:PROJECT_1271
$points_scored = 1
goto @PROJECT_1327

:PROJECT_1285
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @PROJECT_1320
Text.PrintWith2NumbersNow('BB_04', $bball_shot_dist, $bball_shot_dist_decimal, 5000, TextStyle.Middle)

:PROJECT_1320
$points_scored = 2

:PROJECT_1327
cset_lvar_float_to_var_int 17@ =# $bball_shot_dist
cset_lvar_float_to_var_int 18@ =# $bball_shot_dist_decimal
18@ *= 0.1
add_float_lvar_to_float_lvar 17@ += 18@
if 
  not Game.AreMeasurementsInMeters
goto_if_false @PROJECT_1382
convert_metres_to_feet 17@ {var_feet} 17@

:PROJECT_1382
Stat.RegisterFloat(StatId.LongestBasketball, 17@)
10@ += 1

:PROJECT_1396
if 
  10@ == 3
goto_if_false @PROJECT_1651
$x, $y, $z = Object.GetCoordinates(0@)
17@ = Math.GetDistanceBetweenCoords3D($x, $y, $z, 4@, 5@, 6@)
Audio.ReportMissionAudioEventAtObject(0@, 1012)
if 
  0.1 > 17@
goto_if_false @PROJECT_1535
Object.FreezePosition(0@, False)
Object.SetCollision(0@, True)
Object.SetDynamic(0@, True)
Object.SetVelocity(0@, 0.0, 0.0, -0.1)
10@ = 99
goto @PROJECT_1651

:PROJECT_1535
set_lvar_float_to_lvar_float 20@ = 4@
sub_float_var_from_float_lvar 20@ -= $x
set_lvar_float_to_lvar_float 21@ = 5@
sub_float_var_from_float_lvar 21@ -= $y
set_lvar_float_to_lvar_float 22@ = 6@
sub_float_var_from_float_lvar 22@ -= $z
20@ *= 0.3
21@ *= 0.3
22@ *= 0.3
add_float_lvar_to_float_var $x += 20@
add_float_lvar_to_float_var $y += 21@
add_float_lvar_to_float_var $z += 22@
Object.SetCoordinates(0@, $x, $y, $z)

:PROJECT_1651
if 
  10@ == 99
goto_if_false @PROJECT_1678
$bball_throw_active = 0
terminate_this_script 

:PROJECT_1678
goto @PROJECT_94

:PROJECT_1685
$x, $y, $z = Object.GetCoordinates(9@)
17@ = Math.RandomFloatInRange(-1.0, 1.0)
18@ = Math.RandomFloatInRange(0.2, 1.0)
19@ = Math.RandomFloatInRange(1.2, 2.2)
20@, 21@, 22@ = Object.GetOffsetInWorldCoords(9@, 17@, 18@, 19@)
set_lvar_float_to_lvar_float 23@ = 20@
sub_float_var_from_float_lvar 23@ -= $x
set_lvar_float_to_lvar_float 24@ = 21@
sub_float_var_from_float_lvar 24@ -= $y
set_lvar_float_to_lvar_float 25@ = 22@
sub_float_var_from_float_lvar 25@ -= $z
17@ = Math.GetDistanceBetweenCoords3D($x, $y, $z, 20@, 21@, 22@)
div_float_lvar_by_float_lvar 23@ /= 17@
div_float_lvar_by_float_lvar 24@ /= 17@
div_float_lvar_by_float_lvar 25@ /= 17@
set_lvar_float_to_lvar_float 17@ = 16@
17@ *= 5.0
mult_float_lvar_by_float_lvar 23@ *= 17@
mult_float_lvar_by_float_lvar 24@ *= 17@
mult_float_lvar_by_float_lvar 25@ *= 17@
return 

:Noname_2
terminate_this_script 

:BBCHAL
script_name 'BBCHAL'
19@ = 0
20@ = 0
21@ = 0
$bball_challenge_timer = 60500
$bball_challenge_score = 0
26@ = 0
27@ = 0
28@ = 0
29@ = 3000
30@ = 4.0
TIMERA = 0
TIMERB = 0
$bball_challenge_active = 1
if 
  19@ == -1
goto_if_false @BBCHAL_149
0@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)

:BBCHAL_149
wait 0
switch_start 19@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @BBCHAL_244 {caseNum1} 0 {caseLabel1} @BBCHAL_216 {caseNum2} 1 {caseLabel2} @BBCHAL_230 {caseNum3} -1 {caseLabel3} @BBCHAL_244 {caseNum4} -1 {caseLabel4} @BBCHAL_244 {caseNum5} -1 {caseLabel5} @BBCHAL_244 {caseNum6} -1 {caseLabel6} @BBCHAL_244 {caseNum7} -1 {caseLabel7} @BBCHAL_244

:BBCHAL_216
BBCHAL_580()
goto @BBCHAL_244

:BBCHAL_230
BBCHAL_916()
goto @BBCHAL_244

:BBCHAL_244
if and
  $bball_active == 0
  $bball_throw_active == 0
goto_if_false @BBCHAL_276
BBCHAL_2538()

:BBCHAL_276
BBCHAL_395()
if 
  $bball_camera_type == 0
goto_if_false @BBCHAL_308
BBCHAL_2538()

:BBCHAL_308
if 
  $bball_r3_is_pressed == 0
goto_if_false @BBCHAL_364
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @BBCHAL_357
$bball_r3_is_pressed = 1
BBCHAL_2538()

:BBCHAL_357
goto @BBCHAL_388

:BBCHAL_364
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @BBCHAL_388
$bball_r3_is_pressed = 0

:BBCHAL_388
goto @BBCHAL_149

:BBCHAL_395
switch_start 21@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BBCHAL_578 {caseNum1} 0 {caseLabel1} @BBCHAL_458 {caseNum2} 1 {caseLabel2} @BBCHAL_498 {caseNum3} 2 {caseLabel3} @BBCHAL_538 {caseNum4} -1 {caseLabel4} @BBCHAL_578 {caseNum5} -1 {caseLabel5} @BBCHAL_578 {caseNum6} -1 {caseLabel6} @BBCHAL_578 {caseNum7} -1 {caseLabel7} @BBCHAL_578

:BBCHAL_458
if and
  not Text.IsHelpMessageBeingDisplayed
  not Text.IsMessageBeingDisplayed
goto_if_false @BBCHAL_491
Text.PrintHelp('BB_11')
21@ += 1

:BBCHAL_491
goto @BBCHAL_578

:BBCHAL_498
if and
  not Text.IsHelpMessageBeingDisplayed
  not Text.IsMessageBeingDisplayed
goto_if_false @BBCHAL_531
Text.PrintHelp('BB_12')
21@ += 1

:BBCHAL_531
goto @BBCHAL_578

:BBCHAL_538
if and
  not Text.IsHelpMessageBeingDisplayed
  not Text.IsMessageBeingDisplayed
goto_if_false @BBCHAL_571
Text.PrintHelp('BB_10')
21@ += 1

:BBCHAL_571
goto @BBCHAL_578

:BBCHAL_578
return 

:BBCHAL_580
if 
  20@ == 0
goto_if_false @BBCHAL_628
Text.PrintNow('BB_13', 5000, 1)
TIMERA = 0
20@ += 1

:BBCHAL_628
if 
  20@ == 1
goto_if_false @BBCHAL_653
20@ += 1

:BBCHAL_653
if 
  20@ == 2
goto_if_false @BBCHAL_751
Hud.DisplayTimerWithString($bball_challenge_timer, TimerDirection.Down, 'BB_19')
Hud.DisplayNthCounterWithString($bball_challenge_score, CounterDisplay.Number, 1, 'BB_18')
Hud.DisplayNthCounterWithString($bball_challenge_high_score, CounterDisplay.Number, 2, 'BB_14')
BBCHAL_2396()
1@ = Blip.AddForCoord(14@, 15@, 16@)
20@ += 1

:BBCHAL_751
if 
  20@ == 3
goto_if_false @BBCHAL_914
if 
  Player.IsPlaying($player1)
goto_if_false @BBCHAL_914
if 
  Char.LocateOnFoot3D($scplayer, 14@, 15@, 16@, 1.5, 1.5, 2.0, True)
goto_if_false @BBCHAL_904
if 
  $bball_throw_active == 1
goto_if_false @BBCHAL_887
if 
  Blip.DoesExist(1@)
goto_if_false @BBCHAL_866
Blip.Remove(1@)

:BBCHAL_866
20@ = 1
19@ += 1
goto @BBCHAL_897

:BBCHAL_887
$bball_challenge_timer = 60500

:BBCHAL_897
goto @BBCHAL_914

:BBCHAL_904
$bball_challenge_timer = 60500

:BBCHAL_914
return 

:BBCHAL_916
if 
  20@ == 0
goto_if_false @BBCHAL_1135
if 
  $points_scored <> 0
goto_if_false @BBCHAL_1135
if 
  $points_scored > 0
goto_if_false @BBCHAL_1052
add_int_var_to_int_var $bball_challenge_score += $points_scored
add_int_lvar_to_int_var $bball_challenge_timer += 25@
30@ += 0.5
BBCHAL_2396()
if 
  Blip.DoesExist(1@)
goto_if_false @BBCHAL_1024
Blip.Remove(1@)

:BBCHAL_1024
1@ = Blip.AddForCoord(14@, 15@, 16@)
20@ += 1
goto @BBCHAL_1135

:BBCHAL_1052
if 
  Blip.DoesExist(1@)
goto_if_false @BBCHAL_1073
Blip.Remove(1@)

:BBCHAL_1073
1@ = Blip.AddForCoord(14@, 15@, 16@)
if 
  27@ == 0
goto_if_false @BBCHAL_1128
Text.PrintNow('BB_20', 5000, 1)
27@ += 1

:BBCHAL_1128
20@ += 1

:BBCHAL_1135
if 
  20@ == 1
goto_if_false @BBCHAL_1380
if 
  Player.IsPlaying($player1)
goto_if_false @BBCHAL_1200
  Char.LocateOnFoot3D($scplayer, 14@, 15@, 16@, 1.5, 1.5, 2.0, True)

:BBCHAL_1200
if 
  $bball_throw_active == 1
goto_if_false @BBCHAL_1373
if 
  Player.IsPlaying($player1)
goto_if_false @BBCHAL_1366
if 
  Char.LocateOnFoot3D($scplayer, 14@, 15@, 16@, 1.5, 1.5, 2.0, True)
goto_if_false @BBCHAL_1318
if 
  Blip.DoesExist(1@)
goto_if_false @BBCHAL_1297
Blip.Remove(1@)

:BBCHAL_1297
20@ = 0
$bball_throw_active = 0
goto @BBCHAL_1366

:BBCHAL_1318
if 
  28@ == 0
goto_if_false @BBCHAL_1359
Text.PrintNow('BB_16', 5000, 1)
28@ += 1

:BBCHAL_1359
$bball_throw_active = 0

:BBCHAL_1366
goto @BBCHAL_1380

:BBCHAL_1373
28@ = 0

:BBCHAL_1380
if 
  20@ == 3
goto_if_false @BBCHAL_1424
if 
  TIMERA > 5000
goto_if_false @BBCHAL_1424
BBCHAL_2538()

:BBCHAL_1424
if 
  26@ == 0
goto_if_false @BBCHAL_1483
if 
  is_int_var_greater_than_int_var $bball_challenge_score > $bball_challenge_high_score
goto_if_false @BBCHAL_1476
set_var_int_to_var_int $bball_challenge_high_score = $bball_challenge_score
26@ += 1

:BBCHAL_1476
goto @BBCHAL_1510

:BBCHAL_1483
if 
  is_int_var_greater_than_int_var $bball_challenge_score > $bball_challenge_high_score
goto_if_false @BBCHAL_1510
set_var_int_to_var_int $bball_challenge_high_score = $bball_challenge_score

:BBCHAL_1510
if 
  0 >= $bball_challenge_timer
goto_if_false @BBCHAL_1576
if 
  3 > 20@
goto_if_false @BBCHAL_1569
Text.PrintNow('BB_17', 5000, 1)
TIMERA = 0

:BBCHAL_1569
20@ = 3

:BBCHAL_1576
return 

:BBCHAL_1578
if 
  Object.DoesExist(0@)
goto_if_false @BBCHAL_2394
2@, 3@, 4@ = Object.GetLevelDesignCoords(0@, 2)
5@, 6@, 7@ = Object.GetLevelDesignCoords(0@, 3)
$x, $y, $z = Object.GetLevelDesignCoords(0@, 0)
switch_start $bball_court_z {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BBCHAL_1893 {caseNum1} 1 {caseLabel1} @BBCHAL_1705 {caseNum2} 2 {caseLabel2} @BBCHAL_1752 {caseNum3} 3 {caseLabel3} @BBCHAL_1799 {caseNum4} 4 {caseLabel4} @BBCHAL_1846 {caseNum5} -1 {caseLabel5} @BBCHAL_1893 {caseNum6} -1 {caseLabel6} @BBCHAL_1893 {caseNum7} -1 {caseLabel7} @BBCHAL_1893

:BBCHAL_1705
2@ += -1.5
3@ += 1.5
5@ += 1.5
6@ += -1.5
goto @BBCHAL_1893

:BBCHAL_1752
2@ += -1.5
3@ += -1.5
5@ += 1.5
6@ += 1.5
goto @BBCHAL_1893

:BBCHAL_1799
2@ += 1.5
3@ += -1.5
5@ += -1.5
6@ += 1.5
goto @BBCHAL_1893

:BBCHAL_1846
2@ += 1.5
3@ += 1.5
5@ += -1.5
6@ += -1.5
goto @BBCHAL_1893

:BBCHAL_1893
4@ += 5.0
16@ = World.GetGroundZFor3DCoord(2@, 3@, 4@)
if 
  is_float_lvar_greater_than_float_lvar 5@ > 2@
goto_if_false @BBCHAL_1954
14@ = Math.RandomFloatInRange(2@, 5@)
goto @BBCHAL_1965

:BBCHAL_1954
14@ = Math.RandomFloatInRange(5@, 2@)

:BBCHAL_1965
if 
  is_float_lvar_greater_than_float_lvar 6@ > 3@
goto_if_false @BBCHAL_2002
15@ = Math.RandomFloatInRange(3@, 6@)
goto @BBCHAL_2013

:BBCHAL_2002
15@ = Math.RandomFloatInRange(3@, 6@)

:BBCHAL_2013
set_lvar_float_to_lvar_float 8@ = 14@
sub_float_var_from_float_lvar 8@ -= $x
set_lvar_float_to_lvar_float 9@ = 15@
sub_float_var_from_float_lvar 9@ -= $y
17@ = Math.GetDistanceBetweenCoords2D($x, $y, 14@, 15@)
div_float_lvar_by_float_lvar 8@ /= 17@
div_float_lvar_by_float_lvar 9@ /= 17@
mult_float_lvar_by_float_lvar 8@ *= 30@
mult_float_lvar_by_float_lvar 9@ *= 30@
set_lvar_float_to_var_float 14@ = $x
add_float_lvar_to_float_lvar 14@ += 8@
set_lvar_float_to_var_float 15@ = $y
add_float_lvar_to_float_lvar 15@ += 9@
if 
  is_float_lvar_greater_than_float_lvar 5@ > 2@
goto_if_false @BBCHAL_2206
if 
  is_float_lvar_greater_than_float_lvar 2@ > 14@
goto_if_false @BBCHAL_2172
set_lvar_float_to_lvar_float 14@ = 2@

:BBCHAL_2172
if 
  is_float_lvar_greater_than_float_lvar 14@ > 5@
goto_if_false @BBCHAL_2199
set_lvar_float_to_lvar_float 14@ = 5@

:BBCHAL_2199
goto @BBCHAL_2260

:BBCHAL_2206
if 
  is_float_lvar_greater_than_float_lvar 14@ > 2@
goto_if_false @BBCHAL_2233
set_lvar_float_to_lvar_float 14@ = 2@

:BBCHAL_2233
if 
  is_float_lvar_greater_than_float_lvar 5@ > 14@
goto_if_false @BBCHAL_2260
set_lvar_float_to_lvar_float 14@ = 5@

:BBCHAL_2260
if 
  is_float_lvar_greater_than_float_lvar 6@ > 3@
goto_if_false @BBCHAL_2340
if 
  is_float_lvar_greater_than_float_lvar 3@ > 15@
goto_if_false @BBCHAL_2306
set_lvar_float_to_lvar_float 15@ = 3@

:BBCHAL_2306
if 
  is_float_lvar_greater_than_float_lvar 15@ > 6@
goto_if_false @BBCHAL_2333
set_lvar_float_to_lvar_float 15@ = 6@

:BBCHAL_2333
goto @BBCHAL_2394

:BBCHAL_2340
if 
  is_float_lvar_greater_than_float_lvar 15@ > 3@
goto_if_false @BBCHAL_2367
set_lvar_float_to_lvar_float 15@ = 3@

:BBCHAL_2367
if 
  is_float_lvar_greater_than_float_lvar 6@ > 15@
goto_if_false @BBCHAL_2394
set_lvar_float_to_lvar_float 15@ = 6@

:BBCHAL_2394
return 

:BBCHAL_2396
BBCHAL_1578()
if 
  Object.DoesExist(0@)
goto_if_false @BBCHAL_2435
$x, $y, $z = Object.GetLevelDesignCoords(0@, 0)

:BBCHAL_2435
$distance = Math.GetDistanceBetweenCoords2D(14@, 15@, $x, $y)
cset_lvar_int_to_var_float 25@ =# $distance
mult_int_lvar_by_int_lvar 25@ *= 29@
cset_lvar_float_to_lvar_int 17@ =# 29@
17@ *= 0.1
cset_lvar_int_to_lvar_float 22@ =# 17@
22@ *= -1
add_int_lvar_to_int_lvar 29@ += 22@
if 
  500 > 29@
goto_if_false @BBCHAL_2536
29@ = 500

:BBCHAL_2536
return 

:BBCHAL_2538
Text.ClearPrints
if 
  26@ <> 0
goto_if_false @BBCHAL_2589
Text.PrintWithNumberBig('BB_15', $bball_challenge_high_score, 5000, TextStyle.Middle)
Stat.RegisterInt(StatId.HighestScoreInBasketballChallenge, $bball_challenge_high_score)
Audio.PlayMissionPassedTune(1)

:BBCHAL_2589
if 
  Blip.DoesExist(1@)
goto_if_false @BBCHAL_2610
Blip.Remove(1@)

:BBCHAL_2610
Hud.ClearCounter($bball_challenge_score)
Hud.ClearCounter($bball_challenge_high_score)
Hud.ClearTimer($bball_challenge_timer)
$bball_challenge_active = 0
terminate_this_script 
return 

:Noname_3
terminate_this_script 

:LOWGAME
script_name 'LOWGAME'
12@ = 0.01
$lowrider_level = 0
13@ = 0
16@ = 0
$lowrider_pscore = 0
$lowrider_oscore = 0
18@ = 0
23@ = 0
24@ = 0
25@ = -1
27@ = 0
19@ = 0
if 
  13@ == -1
goto_if_false @LOWGAME_186
0@ = Car.Create(413, 0.0, 0.0, 0.0)
1@ = Car.Create(413, 0.0, 0.0, 0.0)
2@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)

:LOWGAME_186
if 
  Car.DoesExist(0@)
goto_if_false @LOWGAME_232
if 
  Car.IsDead(0@)
goto_if_false @LOWGAME_225
goto @LOWGAME_8722

:LOWGAME_225
goto @LOWGAME_239

:LOWGAME_232
goto @LOWGAME_8722

:LOWGAME_239
if 
  Car.DoesExist(1@)
goto_if_false @LOWGAME_285
if 
  Car.IsDead(1@)
goto_if_false @LOWGAME_278
goto @LOWGAME_8722

:LOWGAME_278
goto @LOWGAME_292

:LOWGAME_285
goto @LOWGAME_8722

:LOWGAME_292
if 
  1 > $lowrider_opposition_skill
goto_if_false @LOWGAME_324
$lowrider_opposition_skill = 1
goto @LOWGAME_349

:LOWGAME_324
if 
  $lowrider_opposition_skill > 5
goto_if_false @LOWGAME_349
$lowrider_opposition_skill = 5

:LOWGAME_349
if 
  not Car.IsDead(0@)
goto_if_false @LOWGAME_379
3@, 4@, 5@ = Car.GetCoordinates(0@)

:LOWGAME_379
if 
  not Car.IsDead(1@)
goto_if_false @LOWGAME_409
6@, 7@, 8@ = Car.GetCoordinates(1@)

:LOWGAME_409
$lowrider_game_is_active = 1

:LOWGAME_416
wait 0
if 
is_ps2_keyboard_key_just_pressed 28
goto_if_false @LOWGAME_496
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @LOWGAME_496
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.DoesHaveHydraulics($car)
goto_if_false @LOWGAME_489
Car.SetHydraulics($car, False)
goto @LOWGAME_496

:LOWGAME_489
Car.SetHydraulics($car, True)

:LOWGAME_496
switch_start 13@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_7662 {caseNum1} 0 {caseLabel1} @LOWGAME_559 {caseNum2} 1 {caseLabel2} @LOWGAME_1335 {caseNum3} 2 {caseLabel3} @LOWGAME_1415 {caseNum4} 3 {caseLabel4} @LOWGAME_7512 {caseNum5} 4 {caseLabel5} @LOWGAME_7526 {caseNum6} 5 {caseLabel6} @LOWGAME_7601 {caseNum7} -1 {caseLabel7} @LOWGAME_7662

:LOWGAME_559
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
World.ClearArea(3@, 4@, 5@, 200.0, True)
Streaming.RequestAnimation("LOWRIDER")

:LOWGAME_603
if 
  not Streaming.HasAnimationLoaded("LOWRIDER")
goto_if_false @LOWGAME_637
wait 0
goto @LOWGAME_603

:LOWGAME_637
if 
  not Car.IsDead(0@)
goto_if_false @LOWGAME_712
Car.LockDoors(0@, CarLock.LockedPlayerInside)
Player.ApplyBrakesToCar($player1, True)
Car.SetProofs(0@, True, True, True, True, True)
$x = 0.62
$y = 0.31
$z = -0.167

:LOWGAME_712
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_IDLELOOP", "LOWRIDER", 4.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "LRGIRL_IDLELOOP", "LOWRIDER", 4.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "LRGIRL_IDLELOOP", "LOWRIDER", 4.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "LRGIRL_IDLELOOP", "LOWRIDER", 4.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "LRGIRL_HURRY", "LOWRIDER", 4.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "LRGIRL_HAIR", "LOWRIDER", 4.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "LRGIRL_IDLELOOP", "LOWRIDER", 4.0, False, False, False, False, -1)
Sequence.SetToRepeat(15@, True)
Sequence.Close(15@)
if 
  not Char.IsDead(2@)
goto_if_false @LOWGAME_1084
if 
  Char.IsAttachedToAnyCar(2@)
goto_if_false @LOWGAME_1084
Char.PerformSequence(2@, 15@)

:LOWGAME_1084
16@ = 0
if 
  not Car.IsDead(0@)
goto_if_false @LOWGAME_1240
if or
  Car.IsModel(0@, 534)
  Car.IsModel(0@, 535)
  Car.IsModel(0@, 576)
goto_if_false @LOWGAME_1156
16@ = 1
goto @LOWGAME_1240

:LOWGAME_1156
if or
  Car.IsModel(0@, 536)
  Car.IsModel(0@, 575)
  Car.IsModel(0@, 567)
goto_if_false @LOWGAME_1233
17@ = Car.GetCurrentMod(0@, ModSlot.Roof)
if 
  17@ <> -1
goto_if_false @LOWGAME_1226
16@ = 1

:LOWGAME_1226
goto @LOWGAME_1240

:LOWGAME_1233
16@ = 1

:LOWGAME_1240
if 
  not Char.IsDead(2@)
goto_if_false @LOWGAME_1279
if 
  not Char.IsAttachedToAnyCar(2@)
goto_if_false @LOWGAME_1279
16@ = 1

:LOWGAME_1279
$lowr_perfect_beat_counter = 0
$lowr_good_beat_counter = 0
$lowr_bad_beat_counter = 0
$lowrider_pscore = 0
$lowr_overall_state = 0
$lowrider_oscore = 0
13@ += 1
goto @LOWGAME_7662

:LOWGAME_1335
17@ = Audio.GetBeatTrackStatus()
if 
  is_int_lvar_equal_to_constant 17@ == 3
goto_if_false @LOWGAME_1408
Hud.DisplayNthCounterWithString($lowrider_pscore, CounterDisplay.Number, 1, 'LOWR1')
Hud.DisplayNthCounterWithString($lowrider_oscore, CounterDisplay.Number, 2, 'LOWR2')
13@ += 1
TIMERA = 0

:LOWGAME_1408
goto @LOWGAME_7662

:LOWGAME_1415
17@ = Audio.GetBeatTrackStatus()
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @LOWGAME_1445
TIMERA = 90000

:LOWGAME_1445
20@, 21@, 22@ = Audio.GetBeatProximity(-1)
if 
  21@ <> 33
goto_if_false @LOWGAME_7491
Hud.ForceBigMessageAndCounter(True)
LOWGAME_10566()
20@, 21@, 22@ = Audio.GetBeatProximity(0)
if 
  not is_int_lvar_equal_to_int_lvar 22@ == 25@
goto_if_false @LOWGAME_2087
28@ = -1
if 
  18@ <> 0
goto_if_false @LOWGAME_2000
if and
  20@ > -35
  35 > 20@
goto_if_false @LOWGAME_1623
if 
  is_int_lvar_equal_to_int_lvar 18@ == 21@
goto_if_false @LOWGAME_1602
28@ = 0
goto @LOWGAME_1616

:LOWGAME_1602
23@ = 1
28@ = 5

:LOWGAME_1616
goto @LOWGAME_1894

:LOWGAME_1623
if and
  20@ > -50
  50 > 20@
goto_if_false @LOWGAME_1702
if 
  is_int_lvar_equal_to_int_lvar 18@ == 21@
goto_if_false @LOWGAME_1681
28@ = 1
goto @LOWGAME_1695

:LOWGAME_1681
23@ = 1
28@ = 5

:LOWGAME_1695
goto @LOWGAME_1894

:LOWGAME_1702
if and
  20@ > -100
  100 > 20@
goto_if_false @LOWGAME_1781
if 
  is_int_lvar_equal_to_int_lvar 18@ == 21@
goto_if_false @LOWGAME_1760
28@ = 2
goto @LOWGAME_1774

:LOWGAME_1760
23@ = 1
28@ = 5

:LOWGAME_1774
goto @LOWGAME_1894

:LOWGAME_1781
if or
  20@ > -200
  200 > 20@
goto_if_false @LOWGAME_1894
if 
  is_int_lvar_equal_to_int_lvar 18@ == 21@
goto_if_false @LOWGAME_1880
23@ = 1
if 
  0 > 20@
goto_if_false @LOWGAME_1866
28@ = 3
goto @LOWGAME_1873

:LOWGAME_1866
28@ = 4

:LOWGAME_1873
goto @LOWGAME_1894

:LOWGAME_1880
23@ = 1
28@ = 5

:LOWGAME_1894
$BD_RenderHit = 1
if 
  28@ == 0
goto_if_false @LOWGAME_1940
set_var_int_to_constant $BD_RenderHit = 3
30@ += 1
goto @LOWGAME_1993

:LOWGAME_1940
if 
  28@ == 1
goto_if_false @LOWGAME_1979
set_var_int_to_constant $BD_RenderHit = 2
30@ += 1
goto @LOWGAME_1993

:LOWGAME_1979
set_var_int_to_constant $BD_RenderHit = 1
31@ += 1

:LOWGAME_1993
goto @LOWGAME_2040

:LOWGAME_2000
if 
  -200 > 20@
goto_if_false @LOWGAME_2040
23@ = 1
28@ = 3
31@ += 1

:LOWGAME_2040
if 
  28@ <> -1
goto_if_false @LOWGAME_2087
LOWGAME_9681()
LOWGAME_10047()
LOWGAME_8731()
set_lvar_int_to_lvar_int 25@ = 22@

:LOWGAME_2087
if 
  0 > $lowrider_pscore
goto_if_false @LOWGAME_2112
$lowrider_pscore = 0

:LOWGAME_2112
if 
  not Car.IsDead(0@)
goto_if_false @LOWGAME_2255
if 
  not Car.Locate2D(0@, 3@, 4@, 3.0, 3.0, False)
goto_if_false @LOWGAME_2255
$x, $y, $z = Car.GetCoordinates(0@)
set_lvar_float_to_lvar_float 9@ = 3@
sub_float_var_from_float_lvar 9@ -= $x
set_lvar_float_to_lvar_float 10@ = 4@
sub_float_var_from_float_lvar 10@ -= $y
mult_float_lvar_by_float_lvar 9@ *= 12@
mult_float_lvar_by_float_lvar 10@ *= 12@
Car.ApplyForce(0@, 9@, 10@, 0.0, 0.0, 0.0, 0.0)

:LOWGAME_2255
if 
  not Car.IsDead(1@)
goto_if_false @LOWGAME_2398
if 
  not Car.Locate2D(1@, 6@, 7@, 3.0, 3.0, False)
goto_if_false @LOWGAME_2398
$x, $y, $z = Car.GetCoordinates(1@)
set_lvar_float_to_lvar_float 9@ = 6@
sub_float_var_from_float_lvar 9@ -= $x
set_lvar_float_to_lvar_float 10@ = 7@
sub_float_var_from_float_lvar 10@ -= $y
mult_float_lvar_by_float_lvar 9@ *= 12@
mult_float_lvar_by_float_lvar 10@ *= 12@
Car.ApplyForce(1@, 9@, 10@, 0.0, 0.0, 0.0, 0.0)

:LOWGAME_2398
if and
  100 > 20@
  20@ > -100
goto_if_false @LOWGAME_2928
if 
  21@ == 9
goto_if_false @LOWGAME_2481
$wheel_fl = 1.0
$wheel_bl = 1.0
$wheel_fr = 0.0
$wheel_br = 0.0

:LOWGAME_2481
if 
  21@ == 10
goto_if_false @LOWGAME_2539
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 1.0
$wheel_br = 1.0

:LOWGAME_2539
if 
  21@ == 11
goto_if_false @LOWGAME_2597
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 1.0
$wheel_br = 0.0

:LOWGAME_2597
if 
  21@ == 12
goto_if_false @LOWGAME_2655
$wheel_fl = 0.0
$wheel_bl = 1.0
$wheel_fr = 0.0
$wheel_br = 0.0

:LOWGAME_2655
if 
  21@ == 13
goto_if_false @LOWGAME_2713
$wheel_fl = 1.0
$wheel_bl = 0.0
$wheel_fr = 1.0
$wheel_br = 0.0

:LOWGAME_2713
if 
  21@ == 14
goto_if_false @LOWGAME_2771
$wheel_fl = 0.0
$wheel_bl = 1.0
$wheel_fr = 0.0
$wheel_br = 1.0

:LOWGAME_2771
if 
  21@ == 15
goto_if_false @LOWGAME_2829
$wheel_fl = 1.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 0.0

:LOWGAME_2829
if 
  21@ == 16
goto_if_false @LOWGAME_2887
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 1.0

:LOWGAME_2887
if 
  not is_int_lvar_equal_to_int_lvar 22@ == 27@
goto_if_false @LOWGAME_2921
LOWGAME_7669()
set_lvar_int_to_lvar_int 27@ = 22@

:LOWGAME_2921
goto @LOWGAME_2968

:LOWGAME_2928
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 0.0

:LOWGAME_2968
if 
  not Car.IsDead(1@)
goto_if_false @LOWGAME_3001
Car.ControlHydraulics(1@, $wheel_fl, $wheel_bl, $wheel_fr, $wheel_br)

:LOWGAME_3001
if 
  16@ == 0
goto_if_false @LOWGAME_7453
if 
  $lowrider_level == -1
goto_if_false @LOWGAME_3062
if 
  18@ <> 0
goto_if_false @LOWGAME_3062
$lowrider_level = 0

:LOWGAME_3062
if 
  $lowrider_level == 0
goto_if_false @LOWGAME_3112
if 
  30@ > 5
goto_if_false @LOWGAME_3112
$lowrider_level += 1
30@ = 0

:LOWGAME_3112
if 
  $lowrider_level == 1
goto_if_false @LOWGAME_3169
if 
  30@ > 5
goto_if_false @LOWGAME_3169
$lowrider_level += 1
30@ = 0
31@ = 0

:LOWGAME_3169
if 
  $lowrider_level == 2
goto_if_false @LOWGAME_3258
if 
  30@ > 5
goto_if_false @LOWGAME_3226
$lowrider_level += 1
30@ = 0
31@ = 0

:LOWGAME_3226
if 
  31@ > 1
goto_if_false @LOWGAME_3258
$lowrider_level -= 1
31@ = 0

:LOWGAME_3258
if 
  $lowrider_level == 3
goto_if_false @LOWGAME_3347
if 
  30@ > 5
goto_if_false @LOWGAME_3315
$lowrider_level += 1
30@ = 0
31@ = 0

:LOWGAME_3315
if 
  31@ > 1
goto_if_false @LOWGAME_3347
$lowrider_level -= 1
31@ = 0

:LOWGAME_3347
if 
  $lowrider_level == 4
goto_if_false @LOWGAME_3436
if 
  30@ > 5
goto_if_false @LOWGAME_3404
$lowrider_level += 1
30@ = 0
31@ = 0

:LOWGAME_3404
if 
  31@ > 1
goto_if_false @LOWGAME_3436
$lowrider_level -= 1
31@ = 0

:LOWGAME_3436
if 
  $lowrider_level == 5
goto_if_false @LOWGAME_3493
if 
  31@ > 1
goto_if_false @LOWGAME_3493
$lowrider_level -= 1
30@ = 0
31@ = 0

:LOWGAME_3493
if 
  not Char.IsDead(2@)
goto_if_false @LOWGAME_7453
if 
  not is_int_var_equal_to_int_var $lowrider_last_level == $lowrider_level
goto_if_false @LOWGAME_5115
if 
  $lowrider_level == -1
goto_if_false @LOWGAME_3699
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_HAIR", "LOWRIDER", 4.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable(-1, "LRGIRL_HURRY", "LOWRIDER", 4.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable(-1, "LRGIRL_IDLELOOP", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.SetToRepeat(15@, True)
Sequence.Close(15@)

:LOWGAME_3699
if and
  $lowrider_last_level == -1
  $lowrider_level == 0
goto_if_false @LOWGAME_3855
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_IDLE_TO_L0", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(15@)
Char.PerformSequence(2@, 15@)
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L0_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(15@)

:LOWGAME_3855
if and
  $lowrider_last_level == 0
  $lowrider_level == 1
goto_if_false @LOWGAME_4009
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L0_TO_L1", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(15@)
Char.PerformSequence(2@, 15@)
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L1_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(15@)

:LOWGAME_4009
if and
  $lowrider_last_level == 1
  $lowrider_level == 2
goto_if_false @LOWGAME_4163
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L1_TO_L2", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(15@)
Char.PerformSequence(2@, 15@)
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L2_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(15@)

:LOWGAME_4163
if and
  $lowrider_last_level == 2
  $lowrider_level == 3
goto_if_false @LOWGAME_4317
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L2_TO_L3", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(15@)
Char.PerformSequence(2@, 15@)
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L3_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(15@)

:LOWGAME_4317
if and
  $lowrider_last_level == 3
  $lowrider_level == 4
goto_if_false @LOWGAME_4471
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L3_TO_L4", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(15@)
Char.PerformSequence(2@, 15@)
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L4_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(15@)

:LOWGAME_4471
if and
  $lowrider_last_level == 4
  $lowrider_level == 5
goto_if_false @LOWGAME_4625
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L4_TO_L5", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(15@)
Char.PerformSequence(2@, 15@)
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L5_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(15@)

:LOWGAME_4625
if and
  $lowrider_last_level > 1
  $lowrider_level == 1
goto_if_false @LOWGAME_4781
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L345_TO_L1", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(15@)
Char.PerformSequence(2@, 15@)
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L1_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(15@)

:LOWGAME_4781
if and
  $lowrider_last_level == 1
  $lowrider_level == 0
goto_if_false @LOWGAME_4936
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L12_TO_L0", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(15@)
Char.PerformSequence(2@, 15@)
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L0_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(15@)

:LOWGAME_4936
if and
  $lowrider_last_level == 0
  $lowrider_level == -1
goto_if_false @LOWGAME_5107
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_HAIR", "LOWRIDER", 4.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable(-1, "LRGIRL_HURRY", "LOWRIDER", 4.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable(-1, "LRGIRL_IDLELOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(15@)

:LOWGAME_5107
set_var_int_to_var_int $lowrider_last_level = $lowrider_level

:LOWGAME_5115
if and
  not is_int_lvar_equal_to_int_lvar 19@ == 18@
  18@ <> 0
goto_if_false @LOWGAME_6256
17@ = 0
26@ = 1.0
if 
  Char.IsPlayingAnim(2@, "LRGIRL_IDLE_TO_L0")
goto_if_false @LOWGAME_5220
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_IDLE_TO_L0")

:LOWGAME_5220
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L12_TO_L0")
goto_if_false @LOWGAME_5280
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L12_TO_L0")

:LOWGAME_5280
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L345_TO_L1")
goto_if_false @LOWGAME_5342
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L345_TO_L1")

:LOWGAME_5342
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L0_TO_L1")
goto_if_false @LOWGAME_5400
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L0_TO_L1")

:LOWGAME_5400
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L1_TO_L2")
goto_if_false @LOWGAME_5458
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L1_TO_L2")

:LOWGAME_5458
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L2_TO_L3")
goto_if_false @LOWGAME_5516
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L2_TO_L3")

:LOWGAME_5516
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L3_TO_L4")
goto_if_false @LOWGAME_5574
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L3_TO_L4")

:LOWGAME_5574
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L4_TO_L5")
goto_if_false @LOWGAME_5632
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L4_TO_L5")

:LOWGAME_5632
if 
  Char.IsPlayingAnim(2@, "LRGIRL_BDBNCE")
goto_if_false @LOWGAME_5686
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_BDBNCE")

:LOWGAME_5686
if 
  0.9 > 26@
goto_if_false @LOWGAME_5714
17@ = 1

:LOWGAME_5714
if 
  17@ == 0
goto_if_false @LOWGAME_6248
if 
  $lowrider_level == 0
goto_if_false @LOWGAME_5818
14@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L0_BNCE", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(14@)
Char.PerformSequence(2@, 14@)
Sequence.Clear(14@)

:LOWGAME_5818
if 
  $lowrider_level == 1
goto_if_false @LOWGAME_5904
14@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L1_BNCE", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(14@)
Char.PerformSequence(2@, 14@)
Sequence.Clear(14@)

:LOWGAME_5904
if 
  $lowrider_level == 2
goto_if_false @LOWGAME_5990
14@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L2_BNCE", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(14@)
Char.PerformSequence(2@, 14@)
Sequence.Clear(14@)

:LOWGAME_5990
if 
  $lowrider_level == 3
goto_if_false @LOWGAME_6076
14@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L3_BNCE", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(14@)
Char.PerformSequence(2@, 14@)
Sequence.Clear(14@)

:LOWGAME_6076
if 
  $lowrider_level == 4
goto_if_false @LOWGAME_6162
14@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L4_BNCE", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(14@)
Char.PerformSequence(2@, 14@)
Sequence.Clear(14@)

:LOWGAME_6162
if 
  $lowrider_level == 5
goto_if_false @LOWGAME_6248
14@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L5_BNCE", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(14@)
Char.PerformSequence(2@, 14@)
Sequence.Clear(14@)

:LOWGAME_6248
set_lvar_int_to_lvar_int 19@ = 18@

:LOWGAME_6256
if 
  23@ == 1
goto_if_false @LOWGAME_6489
if 
  18@ == 0
goto_if_false @LOWGAME_6482
if 
  $lowrider_level > 0
goto_if_false @LOWGAME_6482
if 
  not Char.IsPlayingAnim(2@, "LRGIRL_BDBNCE")
goto_if_false @LOWGAME_6468
14@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_BDBNCE", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(14@)
Char.PerformSequence(2@, 14@)
Sequence.Clear(14@)
Sequence.Clear(15@)
15@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_L1_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(15@)

:LOWGAME_6468
$lowrider_level = 1
$lowrider_last_level = 1

:LOWGAME_6482
23@ = 0

:LOWGAME_6489
17@ = 0
26@ = 1.0
if 
  Char.IsPlayingAnim(2@, "LRGIRL_BDBNCE")
goto_if_false @LOWGAME_6560
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_BDBNCE")

:LOWGAME_6560
if 
  Char.IsPlayingAnim(2@, "LRGIRL_IDLE_TO_L0")
goto_if_false @LOWGAME_6622
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_IDLE_TO_L0")

:LOWGAME_6622
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L12_TO_L0")
goto_if_false @LOWGAME_6682
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L12_TO_L0")

:LOWGAME_6682
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L345_TO_L1")
goto_if_false @LOWGAME_6744
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L345_TO_L1")

:LOWGAME_6744
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L0_BNCE")
goto_if_false @LOWGAME_6800
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L0_BNCE")

:LOWGAME_6800
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L0_TO_L1")
goto_if_false @LOWGAME_6858
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L0_TO_L1")

:LOWGAME_6858
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L1_TO_L2")
goto_if_false @LOWGAME_6916
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L1_TO_L2")

:LOWGAME_6916
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L2_TO_L3")
goto_if_false @LOWGAME_6974
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L2_TO_L3")

:LOWGAME_6974
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L3_TO_L4")
goto_if_false @LOWGAME_7032
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L3_TO_L4")

:LOWGAME_7032
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L4_TO_L5")
goto_if_false @LOWGAME_7090
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L4_TO_L5")

:LOWGAME_7090
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L1_BNCE")
goto_if_false @LOWGAME_7146
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L1_BNCE")

:LOWGAME_7146
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L2_BNCE")
goto_if_false @LOWGAME_7202
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L2_BNCE")

:LOWGAME_7202
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L3_BNCE")
goto_if_false @LOWGAME_7258
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L3_BNCE")

:LOWGAME_7258
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L4_BNCE")
goto_if_false @LOWGAME_7314
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L4_BNCE")

:LOWGAME_7314
if 
  Char.IsPlayingAnim(2@, "LRGIRL_L5_BNCE")
goto_if_false @LOWGAME_7370
26@ = Char.GetAnimCurrentTime(2@, "LRGIRL_L5_BNCE")

:LOWGAME_7370
if 
  0.9 > 26@
goto_if_false @LOWGAME_7398
17@ = 1

:LOWGAME_7398
if 
  17@ == 0
goto_if_false @LOWGAME_7453
17@ = Char.GetScriptTaskStatus(2@, 1560)
if 
  is_int_lvar_equal_to_constant 17@ == 7
goto_if_false @LOWGAME_7453
Char.PerformSequence(2@, 15@)

:LOWGAME_7453
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @LOWGAME_7484
$lowrider_pscore = 0
13@ += 1

:LOWGAME_7484
goto @LOWGAME_7505

:LOWGAME_7491
13@ += 1
TIMERA = 0

:LOWGAME_7505
goto @LOWGAME_7662

:LOWGAME_7512
13@ += 1
goto @LOWGAME_7662

:LOWGAME_7526
if 
  Player.IsPlaying($player1)
goto_if_false @LOWGAME_7549
Player.SetControl($player1, False)

:LOWGAME_7549
Camera.DoFade(500, Fade.Out)

:LOWGAME_7556
if 
  Camera.GetFadingStatus
goto_if_false @LOWGAME_7580
wait 0
goto @LOWGAME_7556

:LOWGAME_7580
$bd_terminate_script = 1
13@ += 1
goto @LOWGAME_7662

:LOWGAME_7601
17@ = Audio.GetBeatTrackStatus()
if 
  is_int_lvar_equal_to_constant 17@ == 3
goto_if_false @LOWGAME_7626
Audio.StopBeatTrack

:LOWGAME_7626
Hud.ClearCounter($lowrider_pscore)
Hud.ClearCounter($lowrider_oscore)
Streaming.RemoveAnimation("LOWRIDER")
goto @LOWGAME_8722
goto @LOWGAME_7662

:LOWGAME_7662
goto @LOWGAME_416

:LOWGAME_7669
17@ = Math.RandomIntInRange(0, 10)
if or
  $lowrider_opposition_skill == 0
  $lowrider_opposition_skill == 1
goto_if_false @LOWGAME_7894
switch_start 17@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_7887 {caseNum1} 0 {caseLabel1} @LOWGAME_7831 {caseNum2} 1 {caseLabel2} @LOWGAME_7831 {caseNum3} 2 {caseLabel3} @LOWGAME_7845 {caseNum4} 3 {caseLabel4} @LOWGAME_7845 {caseNum5} 4 {caseLabel5} @LOWGAME_7845 {caseNum6} 5 {caseLabel6} @LOWGAME_7845 {caseNum7} 6 {caseLabel7} @LOWGAME_7859
switch_continued 7 {caseLabel1} @LOWGAME_7859 {caseNum2} 8 {caseLabel2} @LOWGAME_7859 {caseNum3} 9 {caseLabel3} @LOWGAME_7873 {caseNum4} -1 {caseLabel4} @LOWGAME_7887 {caseNum5} -1 {caseLabel5} @LOWGAME_7887 {caseNum6} -1 {caseLabel6} @LOWGAME_7887 {caseNum7} -1 {caseLabel7} @LOWGAME_7887 {caseNum8} -1 {caseLabel8} @LOWGAME_7887 {caseNum9} -1 {caseLabel9} @LOWGAME_7887

:LOWGAME_7831
$lowrider_oscore += 0
goto @LOWGAME_7887

:LOWGAME_7845
$lowrider_oscore += 10
goto @LOWGAME_7887

:LOWGAME_7859
$lowrider_oscore += 20
goto @LOWGAME_7887

:LOWGAME_7873
$lowrider_oscore += 50
goto @LOWGAME_7887

:LOWGAME_7887
goto @LOWGAME_8695

:LOWGAME_7894
if 
  $lowrider_opposition_skill == 2
goto_if_false @LOWGAME_8103
switch_start 17@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_8096 {caseNum1} 0 {caseLabel1} @LOWGAME_8040 {caseNum2} 1 {caseLabel2} @LOWGAME_8054 {caseNum3} 2 {caseLabel3} @LOWGAME_8054 {caseNum4} 3 {caseLabel4} @LOWGAME_8054 {caseNum5} 4 {caseLabel5} @LOWGAME_8054 {caseNum6} 5 {caseLabel6} @LOWGAME_8068 {caseNum7} 6 {caseLabel7} @LOWGAME_8068
switch_continued 7 {caseLabel1} @LOWGAME_8068 {caseNum2} 8 {caseLabel2} @LOWGAME_8082 {caseNum3} 9 {caseLabel3} @LOWGAME_8082 {caseNum4} -1 {caseLabel4} @LOWGAME_8096 {caseNum5} -1 {caseLabel5} @LOWGAME_8096 {caseNum6} -1 {caseLabel6} @LOWGAME_8096 {caseNum7} -1 {caseLabel7} @LOWGAME_8096 {caseNum8} -1 {caseLabel8} @LOWGAME_8096 {caseNum9} -1 {caseLabel9} @LOWGAME_8096

:LOWGAME_8040
$lowrider_oscore += 0
goto @LOWGAME_8096

:LOWGAME_8054
$lowrider_oscore += 10
goto @LOWGAME_8096

:LOWGAME_8068
$lowrider_oscore += 20
goto @LOWGAME_8096

:LOWGAME_8082
$lowrider_oscore += 50
goto @LOWGAME_8096

:LOWGAME_8096
goto @LOWGAME_8695

:LOWGAME_8103
if 
  $lowrider_opposition_skill == 3
goto_if_false @LOWGAME_8312
switch_start 17@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_8305 {caseNum1} 0 {caseLabel1} @LOWGAME_8249 {caseNum2} 1 {caseLabel2} @LOWGAME_8263 {caseNum3} 2 {caseLabel3} @LOWGAME_8263 {caseNum4} 3 {caseLabel4} @LOWGAME_8263 {caseNum5} 4 {caseLabel5} @LOWGAME_8277 {caseNum6} 5 {caseLabel6} @LOWGAME_8277 {caseNum7} 6 {caseLabel7} @LOWGAME_8277
switch_continued 7 {caseLabel1} @LOWGAME_8291 {caseNum2} 8 {caseLabel2} @LOWGAME_8291 {caseNum3} 9 {caseLabel3} @LOWGAME_8291 {caseNum4} -1 {caseLabel4} @LOWGAME_8305 {caseNum5} -1 {caseLabel5} @LOWGAME_8305 {caseNum6} -1 {caseLabel6} @LOWGAME_8305 {caseNum7} -1 {caseLabel7} @LOWGAME_8305 {caseNum8} -1 {caseLabel8} @LOWGAME_8305 {caseNum9} -1 {caseLabel9} @LOWGAME_8305

:LOWGAME_8249
$lowrider_oscore += 0
goto @LOWGAME_8305

:LOWGAME_8263
$lowrider_oscore += 10
goto @LOWGAME_8305

:LOWGAME_8277
$lowrider_oscore += 20
goto @LOWGAME_8305

:LOWGAME_8291
$lowrider_oscore += 50
goto @LOWGAME_8305

:LOWGAME_8305
goto @LOWGAME_8695

:LOWGAME_8312
if 
  $lowrider_opposition_skill == 4
goto_if_false @LOWGAME_8507
switch_start 17@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_8500 {caseNum1} 0 {caseLabel1} @LOWGAME_8458 {caseNum2} 1 {caseLabel2} @LOWGAME_8458 {caseNum3} 2 {caseLabel3} @LOWGAME_8458 {caseNum4} 3 {caseLabel4} @LOWGAME_8472 {caseNum5} 4 {caseLabel5} @LOWGAME_8472 {caseNum6} 5 {caseLabel6} @LOWGAME_8472 {caseNum7} 6 {caseLabel7} @LOWGAME_8472
switch_continued 7 {caseLabel1} @LOWGAME_8486 {caseNum2} 8 {caseLabel2} @LOWGAME_8486 {caseNum3} 9 {caseLabel3} @LOWGAME_8486 {caseNum4} -1 {caseLabel4} @LOWGAME_8500 {caseNum5} -1 {caseLabel5} @LOWGAME_8500 {caseNum6} -1 {caseLabel6} @LOWGAME_8500 {caseNum7} -1 {caseLabel7} @LOWGAME_8500 {caseNum8} -1 {caseLabel8} @LOWGAME_8500 {caseNum9} -1 {caseLabel9} @LOWGAME_8500

:LOWGAME_8458
$lowrider_oscore += 10
goto @LOWGAME_8500

:LOWGAME_8472
$lowrider_oscore += 20
goto @LOWGAME_8500

:LOWGAME_8486
$lowrider_oscore += 50
goto @LOWGAME_8500

:LOWGAME_8500
goto @LOWGAME_8695

:LOWGAME_8507
if 
  $lowrider_opposition_skill == 5
goto_if_false @LOWGAME_8695
switch_start 17@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_8695 {caseNum1} 0 {caseLabel1} @LOWGAME_8653 {caseNum2} 1 {caseLabel2} @LOWGAME_8653 {caseNum3} 2 {caseLabel3} @LOWGAME_8667 {caseNum4} 3 {caseLabel4} @LOWGAME_8667 {caseNum5} 4 {caseLabel5} @LOWGAME_8667 {caseNum6} 5 {caseLabel6} @LOWGAME_8667 {caseNum7} 6 {caseLabel7} @LOWGAME_8681
switch_continued 7 {caseLabel1} @LOWGAME_8681 {caseNum2} 8 {caseLabel2} @LOWGAME_8681 {caseNum3} 9 {caseLabel3} @LOWGAME_8681 {caseNum4} -1 {caseLabel4} @LOWGAME_8695 {caseNum5} -1 {caseLabel5} @LOWGAME_8695 {caseNum6} -1 {caseLabel6} @LOWGAME_8695 {caseNum7} -1 {caseLabel7} @LOWGAME_8695 {caseNum8} -1 {caseLabel8} @LOWGAME_8695 {caseNum9} -1 {caseLabel9} @LOWGAME_8695

:LOWGAME_8653
$lowrider_oscore += 10
goto @LOWGAME_8695

:LOWGAME_8667
$lowrider_oscore += 20
goto @LOWGAME_8695

:LOWGAME_8681
$lowrider_oscore += 50
goto @LOWGAME_8695

:LOWGAME_8695
if 
  0 > $lowrider_oscore
goto_if_false @LOWGAME_8720
$lowrider_oscore = 0

:LOWGAME_8720
return 

:LOWGAME_8722
$lowrider_game_is_active = 0
terminate_this_script 

:LOWGAME_8731
switch_start 28@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @LOWGAME_8844 {caseNum1} 0 {caseLabel1} @LOWGAME_8794 {caseNum2} 1 {caseLabel2} @LOWGAME_8811 {caseNum3} 2 {caseLabel3} @LOWGAME_8828 {caseNum4} -1 {caseLabel4} @LOWGAME_8860 {caseNum5} -1 {caseLabel5} @LOWGAME_8860 {caseNum6} -1 {caseLabel6} @LOWGAME_8860 {caseNum7} -1 {caseLabel7} @LOWGAME_8860

:LOWGAME_8794
Pad.Shake(PadId.Pad1, 200, 255)
goto @LOWGAME_8860

:LOWGAME_8811
Pad.Shake(PadId.Pad1, 200, 200)
goto @LOWGAME_8860

:LOWGAME_8828
Pad.Shake(PadId.Pad1, 200, 110)
goto @LOWGAME_8860

:LOWGAME_8844
Pad.Shake(PadId.Pad1, 200, 50)
goto @LOWGAME_8860

:LOWGAME_8860
switch_start 29@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @LOWGAME_8923 {caseNum1} 2 {caseLabel1} @LOWGAME_9175 {caseNum2} 3 {caseLabel2} @LOWGAME_9427 {caseNum3} -1 {caseLabel3} @LOWGAME_9679 {caseNum4} -1 {caseLabel4} @LOWGAME_9679 {caseNum5} -1 {caseLabel5} @LOWGAME_9679 {caseNum6} -1 {caseLabel6} @LOWGAME_9679 {caseNum7} -1 {caseLabel7} @LOWGAME_9679

:LOWGAME_8923
if 
  28@ == 0
goto_if_false @LOWGAME_8957
Text.PrintBig('DNC_005', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_8957
if 
  28@ == 1
goto_if_false @LOWGAME_8991
Text.PrintBig('DNC_006', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_8991
if 
  28@ == 2
goto_if_false @LOWGAME_9025
Text.PrintBig('DNC_007', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9025
if 
  28@ == 3
goto_if_false @LOWGAME_9059
Text.PrintBig('DNC_008', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9059
if 
  28@ == 4
goto_if_false @LOWGAME_9093
Text.PrintBig('DNC_009', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9093
if 
  28@ == 5
goto_if_false @LOWGAME_9127
Text.PrintBig('DNC_010', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9127
if 
  28@ == 6
goto_if_false @LOWGAME_9161
Text.PrintBig('DNC_011', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9161
29@ = 2
goto @LOWGAME_9679

:LOWGAME_9175
if 
  28@ == 0
goto_if_false @LOWGAME_9209
Text.PrintBig('DNC_012', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9209
if 
  28@ == 1
goto_if_false @LOWGAME_9243
Text.PrintBig('DNC_013', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9243
if 
  28@ == 2
goto_if_false @LOWGAME_9277
Text.PrintBig('DNC_014', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9277
if 
  28@ == 3
goto_if_false @LOWGAME_9311
Text.PrintBig('DNC_015', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9311
if 
  28@ == 4
goto_if_false @LOWGAME_9345
Text.PrintBig('DNC_016', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9345
if 
  28@ == 5
goto_if_false @LOWGAME_9379
Text.PrintBig('DNC_017', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9379
if 
  28@ == 6
goto_if_false @LOWGAME_9413
Text.PrintBig('DNC_018', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9413
29@ += 1
goto @LOWGAME_9679

:LOWGAME_9427
if 
  28@ == 0
goto_if_false @LOWGAME_9461
Text.PrintBig('DNC_019', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9461
if 
  28@ == 1
goto_if_false @LOWGAME_9495
Text.PrintBig('DNC_020', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9495
if 
  28@ == 2
goto_if_false @LOWGAME_9529
Text.PrintBig('DNC_021', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9529
if 
  28@ == 3
goto_if_false @LOWGAME_9563
Text.PrintBig('DNC_022', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9563
if 
  28@ == 4
goto_if_false @LOWGAME_9597
Text.PrintBig('DNC_023', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9597
if 
  28@ == 5
goto_if_false @LOWGAME_9631
Text.PrintBig('DNC_024', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9631
if 
  28@ == 6
goto_if_false @LOWGAME_9665
Text.PrintBig('DNC_025', 1000, TextStyle.MiddleSmallerHigher)

:LOWGAME_9665
29@ += 1
goto @LOWGAME_9679

:LOWGAME_9679
return 

:LOWGAME_9681
set_lvar_int_to_var_int 17@ = $lowr_good_beat_counter
add_int_var_to_int_lvar 17@ += $lowr_bad_beat_counter
add_int_var_to_int_lvar 17@ += $lowr_perfect_beat_counter
if 
  17@ > 0
goto_if_false @LOWGAME_10045
if 
  17@ >= 4
goto_if_false @LOWGAME_10045
if 
  $lowr_perfect_beat_counter == 4
goto_if_false @LOWGAME_9848
if or
  $lowr_overall_state == 1
  $lowr_overall_state == 2
goto_if_false @LOWGAME_9816
Text.PrintBig('DNC_002', 50000, TextStyle.LightBlueTop)
$lowr_overall_state = 2
goto @LOWGAME_9841

:LOWGAME_9816
Text.PrintBig('DNC_004', 50000, TextStyle.LightBlueTop)
$lowr_overall_state = 1

:LOWGAME_9841
goto @LOWGAME_10024

:LOWGAME_9848
if 
  is_int_var_greater_than_int_var $lowr_good_beat_counter > $lowr_bad_beat_counter
goto_if_false @LOWGAME_9899
Text.PrintBig('DNC_004', 50000, TextStyle.LightBlueTop)
$lowr_overall_state = 1
goto @LOWGAME_10024

:LOWGAME_9899
if 
  $lowr_overall_state == 2
goto_if_false @LOWGAME_9949
Text.PrintBig('DNC_004', 50000, TextStyle.LightBlueTop)
$lowr_overall_state = 1
goto @LOWGAME_10024

:LOWGAME_9949
if 
  $lowr_overall_state == 1
goto_if_false @LOWGAME_9999
Text.PrintBig('DNC_003', 50000, TextStyle.LightBlueTop)
$lowr_overall_state = 0
goto @LOWGAME_10024

:LOWGAME_9999
Text.PrintBig('DNC_003', 50000, TextStyle.LightBlueTop)
$lowr_overall_state = 0

:LOWGAME_10024
$lowr_perfect_beat_counter = 0
$lowr_good_beat_counter = 0
$lowr_bad_beat_counter = 0

:LOWGAME_10045
return 

:LOWGAME_10047
switch_start 28@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_10533 {caseNum1} 0 {caseLabel1} @LOWGAME_10110 {caseNum2} 1 {caseLabel2} @LOWGAME_10199 {caseNum3} 2 {caseLabel3} @LOWGAME_10288 {caseNum4} 3 {caseLabel4} @LOWGAME_10377 {caseNum5} 4 {caseLabel5} @LOWGAME_10416 {caseNum6} 5 {caseLabel6} @LOWGAME_10455 {caseNum7} 6 {caseLabel7} @LOWGAME_10494

:LOWGAME_10110
if 
  999999 > $lowrider_pscore
goto_if_false @LOWGAME_10185
if 
  $lowr_overall_state == 2
goto_if_false @LOWGAME_10178
17@ = 50
17@ *= 10
add_int_lvar_to_int_var $lowrider_pscore += 17@
goto @LOWGAME_10185

:LOWGAME_10178
$lowrider_pscore += 50

:LOWGAME_10185
$lowr_perfect_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10199
if 
  999999 > $lowrider_pscore
goto_if_false @LOWGAME_10274
if 
  $lowr_overall_state == 2
goto_if_false @LOWGAME_10267
17@ = 20
17@ *= 10
add_int_lvar_to_int_var $lowrider_pscore += 17@
goto @LOWGAME_10274

:LOWGAME_10267
$lowrider_pscore += 20

:LOWGAME_10274
$lowr_good_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10288
if 
  999999 > $lowrider_pscore
goto_if_false @LOWGAME_10363
if 
  $lowr_overall_state == 2
goto_if_false @LOWGAME_10356
17@ = 10
17@ *= 10
add_int_lvar_to_int_var $lowrider_pscore += 17@
goto @LOWGAME_10363

:LOWGAME_10356
$lowrider_pscore += 10

:LOWGAME_10363
$lowr_good_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10377
if 
  $lowrider_pscore > 0
goto_if_false @LOWGAME_10402
$lowrider_pscore += 0

:LOWGAME_10402
$lowr_bad_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10416
if 
  $lowrider_pscore > 0
goto_if_false @LOWGAME_10441
$lowrider_pscore += 0

:LOWGAME_10441
$lowr_bad_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10455
if 
  $lowrider_pscore > 0
goto_if_false @LOWGAME_10480
$lowrider_pscore += 0

:LOWGAME_10480
$lowr_bad_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10494
if 
  $lowrider_pscore > 0
goto_if_false @LOWGAME_10519
$lowrider_pscore += 0

:LOWGAME_10519
$lowr_bad_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10533
if 
  $lowrider_pscore > 999999
goto_if_false @LOWGAME_10564
$lowrider_pscore = 999999

:LOWGAME_10564
return 

:LOWGAME_10566
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
cset_lvar_float_to_var_int 26@ =# $RStickX
set_lvar_float_to_lvar_float 9@ = 26@
cset_lvar_float_to_var_int 26@ =# $RStickY
set_lvar_float_to_lvar_float 10@ = 26@
26@ = Math.GetDistanceBetweenCoords2D(0.0, 0.0, 9@, 10@)
18@ = 0
if 
  26@ > 64.0
goto_if_false @LOWGAME_10927
26@ = Math.GetAngleBetween2DVectors(9@, 10@, 0.0, -1.0)
if 
  15.0 > 26@
goto_if_false @LOWGAME_10719
18@ = 13
goto @LOWGAME_10927

:LOWGAME_10719
if 
  75.0 > 26@
goto_if_false @LOWGAME_10786
if 
  $RStickX > 0
goto_if_false @LOWGAME_10772
18@ = 11
goto @LOWGAME_10779

:LOWGAME_10772
18@ = 15

:LOWGAME_10779
goto @LOWGAME_10927

:LOWGAME_10786
if 
  105.0 > 26@
goto_if_false @LOWGAME_10853
if 
  $RStickX > 0
goto_if_false @LOWGAME_10839
18@ = 10
goto @LOWGAME_10846

:LOWGAME_10839
18@ = 9

:LOWGAME_10846
goto @LOWGAME_10927

:LOWGAME_10853
if 
  165.0 > 26@
goto_if_false @LOWGAME_10920
if 
  $RStickX > 0
goto_if_false @LOWGAME_10906
18@ = 16
goto @LOWGAME_10913

:LOWGAME_10906
18@ = 12

:LOWGAME_10913
goto @LOWGAME_10927

:LOWGAME_10920
18@ = 14

:LOWGAME_10927
return 

:Noname_4
terminate_this_script 

:AUDIOL
script_name 'AUDIOL'
8@ = 0
if 
  8@ == -1
goto_if_false @AUDIOL_60
0@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)

:AUDIOL_60
if 
  $audio_line_is_active <> 0
goto_if_false @AUDIOL_169
if 
  2@ == 1
goto_if_false @AUDIOL_162
Audio.ClearMissionAudio(3@)

:AUDIOL_101
if 
  $audio_line_is_active <> 0
goto_if_false @AUDIOL_155
if 
  $audio_line_terminate_all == 1
goto_if_false @AUDIOL_144
goto @AUDIOL_737

:AUDIOL_144
wait 0
goto @AUDIOL_101

:AUDIOL_155
goto @AUDIOL_169

:AUDIOL_162
goto @AUDIOL_737

:AUDIOL_169
set_lvar_text_label 5@s = s$audio_string
set_lvar_int_to_var_int 7@ = $audio_sound_file
$audio_line_is_active = 1

:AUDIOL_192
if 
  $audio_line_terminate_all == 1
goto_if_false @AUDIOL_217
goto @AUDIOL_662

:AUDIOL_217
switch_start 8@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @AUDIOL_651 {caseNum1} 0 {caseLabel1} @AUDIOL_280 {caseNum2} 1 {caseLabel2} @AUDIOL_362 {caseNum3} 2 {caseLabel3} @AUDIOL_531 {caseNum4} 3 {caseLabel4} @AUDIOL_637 {caseNum5} -1 {caseLabel5} @AUDIOL_651 {caseNum6} -1 {caseLabel6} @AUDIOL_651 {caseNum7} -1 {caseLabel7} @AUDIOL_651

:AUDIOL_280
if 
  4@ == 0
goto_if_false @AUDIOL_311
Audio.ClearMissionAudio(3@)
Audio.LoadMissionAudio(3@, 7@)

:AUDIOL_311
if 
  not Char.IsDead(0@)
goto_if_false @AUDIOL_341
Char.DisableSpeech(0@, True)
Char.ShutUpForScriptedSpeech(0@, True)

:AUDIOL_341
TIMERA = 0
8@ += 1
goto @AUDIOL_651

:AUDIOL_362
if 
  Audio.HasMissionAudioLoaded(3@)
goto_if_false @AUDIOL_498
if 
  not Char.IsDead(0@)
goto_if_false @AUDIOL_444
if 
  not Char.IsTalking(0@)
goto_if_false @AUDIOL_436
if 
  1@ == 1
goto_if_false @AUDIOL_436
Audio.AttachMissionAudioToChar(3@, 0@)

:AUDIOL_436
Char.StartFacialTalk(0@, 10000)

:AUDIOL_444
Audio.PlayMissionAudio(3@)
if 
  not is_lvar_text_label_equal_to_text_label 5@s == 'DUMMY'
goto_if_false @AUDIOL_484
Text.PrintNow(5@s, 10000, 1)

:AUDIOL_484
8@ += 1
goto @AUDIOL_524

:AUDIOL_498
if 
  TIMERA > 5000
goto_if_false @AUDIOL_524
8@ += 1

:AUDIOL_524
goto @AUDIOL_651

:AUDIOL_531
if 
  Audio.HasMissionAudioLoaded(3@)
goto_if_false @AUDIOL_623
if 
  Audio.HasMissionAudioFinished(3@)
goto_if_false @AUDIOL_577
8@ += 1
goto @AUDIOL_616

:AUDIOL_577
if 
  Char.DoesExist(0@)
goto_if_false @AUDIOL_616
if 
  Char.IsDead(0@)
goto_if_false @AUDIOL_616
8@ += 1

:AUDIOL_616
goto @AUDIOL_630

:AUDIOL_623
8@ += 1

:AUDIOL_630
goto @AUDIOL_651

:AUDIOL_637
goto @AUDIOL_662
goto @AUDIOL_651

:AUDIOL_651
wait 0
goto @AUDIOL_192

:AUDIOL_662
if 
  not Char.IsDead(0@)
goto_if_false @AUDIOL_695
Char.EnableSpeech(0@)
Char.ShutUpForScriptedSpeech(0@, False)
Char.StopFacialTalk(0@)

:AUDIOL_695
Audio.ClearMissionAudio(3@)
if 
  not is_lvar_text_label_equal_to_text_label 5@s == 'DUMMY'
goto_if_false @AUDIOL_730
Text.ClearThisPrint(5@s)

:AUDIOL_730
$audio_line_is_active = 0

:AUDIOL_737
terminate_this_script 

:CLEANAU
script_name 'CLEANAU'
TIMERA = 0
$audio_line_terminate_all = 1

:CLEANAU_25
if 
  $audio_line_is_active <> 0
goto_if_false @CLEANAU_80
wait 0
if 
  TIMERA > 2000
goto_if_false @CLEANAU_73
$audio_line_is_active = 0

:CLEANAU_73
goto @CLEANAU_25

:CLEANAU_80
terminate_all_scripts_with_this_name 'AUDIOL'
$audio_line_terminate_all = 0
terminate_this_script 

:Noname_5
terminate_this_script 

:BDISPLY
script_name 'BDISPLY'
if 
  $beat_display_script_started == 0
goto_if_false @BDISPLY_43
$beat_display_script_started = 1
$bd_terminate_script = 0

:BDISPLY_43
Text.UseCommands(True)
Txd.LoadDictionary('LD_BEAT')
Txd.LoadSprite(1, "CROSS")
Txd.LoadSprite(2, "SQUARE")
Txd.LoadSprite(3, "TRIANG")
Txd.LoadSprite(4, "CIRCLE")
Txd.LoadSprite(13, "UP")
Txd.LoadSprite(14, "DOWN")
Txd.LoadSprite(10, "RIGHT")
Txd.LoadSprite(9, "LEFT")
Txd.LoadSprite(11, "UPR")
Txd.LoadSprite(16, "DOWNR")
Txd.LoadSprite(12, "DOWNL")
Txd.LoadSprite(15, "UPL")
Txd.LoadSprite(17, "CRING")
Txd.LoadSprite(18, "CHIT")
$bd_future_time_shown = 4500
$bd_past_time_shown = 800
$bd_x = 265.0
$bd_y = 390.0
$bd_width = 355.0
$bd_sprite_height = 32.0
$bd_sprite_width = 32.0
19@ = 64.0
20@ = 64.0
22@ = 64.0
21@ = 64.0
16@ = Clock.GetGameTimer()
wait 1000

:BDISPLY_321
wait 0
if 
  Game.HasGameJustReturnedFromFrontend
goto_if_false @BDISPLY_352
$BD_RenderHit = 0
23@ = 0

:BDISPLY_352
0@ = Audio.GetBeatTrackStatus()
if 
  is_int_lvar_equal_to_constant 0@ == 3
goto_if_false @BDISPLY_1206
15@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 17@ = 15@
sub_int_lvar_from_int_lvar 17@ -= 16@
set_lvar_int_to_lvar_int 16@ = 15@
set_lvar_int_to_var_int 0@ = $bd_past_time_shown
add_int_var_to_int_lvar 0@ += $bd_future_time_shown
cset_lvar_float_to_lvar_int 5@ =# 0@
cset_lvar_float_to_var_int 6@ =# $bd_past_time_shown
div_float_lvar_by_float_lvar 6@ /= 5@
mult_float_lvar_by_float_var 6@ *= $bd_width
set_var_float_to_var_float $x = $bd_x
add_float_lvar_to_float_var $x += 6@
set_var_float_to_var_float $y = $bd_y
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(17, $x, $y, 20@, 19@, 128, 128, 128, 255)
$time_since_first_beat = Clock.GetGameTimer()
sub_int_var_from_int_var $time_since_first_beat -= $time_of_first_beat
0@ = 1

:BDISPLY_528
if 
  11 > 0@
goto_if_false @BDISPLY_854
8@, 10@, 12@ = Audio.GetBeatProximity(0@)
if 
  10@ <> 0
goto_if_false @BDISPLY_840
if 
  is_int_var_greater_than_int_lvar $bd_future_time_shown > 8@
goto_if_false @BDISPLY_840
BDISPLY_1274()
set_lvar_int_to_var_int 3@ = $bd_past_time_shown
add_int_var_to_int_lvar 3@ += $bd_future_time_shown
set_lvar_int_to_lvar_int 4@ = 8@
add_int_var_to_int_lvar 4@ += $bd_past_time_shown
cset_lvar_float_to_lvar_int 5@ =# 4@
cset_lvar_float_to_lvar_int 6@ =# 3@
div_float_lvar_by_float_lvar 5@ /= 6@
mult_float_lvar_by_float_var 5@ *= $bd_width
set_var_float_to_var_float $x = $bd_x
add_float_lvar_to_float_var $x += 5@
set_var_float_to_var_float $y = $bd_y
cset_lvar_float_to_lvar_int 5@ =# 8@
cset_lvar_float_to_var_int 6@ =# $bd_future_time_shown
div_float_lvar_by_float_lvar 5@ /= 6@
5@ *= -1.0
5@ += 1.0
if 
  0 > 8@
goto_if_false @BDISPLY_764
5@ = 1.0

:BDISPLY_764
5@ *= 255.0
cset_lvar_int_to_lvar_float 4@ =# 5@
if 
  18@ <> 0
goto_if_false @BDISPLY_840
BDISPLY_1583()
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(18@, $x, $y, $bd_sprite_width, $bd_sprite_height, 128, 128, 128, 4@)

:BDISPLY_840
0@ += 1
goto @BDISPLY_528

:BDISPLY_854
if 
  $debug_show_beat_position == 0
goto_if_false @BDISPLY_1199
0@ = -1

:BDISPLY_879
if 
  0@ > -11
goto_if_false @BDISPLY_1199
8@, 10@, 12@ = Audio.GetBeatProximity(0@)
8@ *= -1
if 
  10@ <> 0
goto_if_false @BDISPLY_1185
if 
  is_int_var_greater_than_int_lvar $bd_past_time_shown > 8@
goto_if_false @BDISPLY_1185
BDISPLY_1274()
set_lvar_int_to_lvar_int 4@ = 8@
4@ *= -1
add_int_var_to_int_lvar 4@ += $bd_past_time_shown
set_lvar_int_to_var_int 3@ = $bd_past_time_shown
add_int_var_to_int_lvar 3@ += $bd_future_time_shown
cset_lvar_float_to_lvar_int 5@ =# 4@
cset_lvar_float_to_lvar_int 6@ =# 3@
div_float_lvar_by_float_lvar 5@ /= 6@
mult_float_lvar_by_float_var 5@ *= $bd_width
set_var_float_to_var_float $x = $bd_x
add_float_lvar_to_float_var $x += 5@
set_var_float_to_var_float $y = $bd_y
cset_lvar_float_to_lvar_int 5@ =# 4@
cset_lvar_float_to_var_int 6@ =# $bd_past_time_shown
div_float_lvar_by_float_lvar 5@ /= 6@
if 
  0 > 8@
goto_if_false @BDISPLY_1109
5@ = 1.0

:BDISPLY_1109
5@ *= 255.0
cset_lvar_int_to_lvar_float 4@ =# 5@
if 
  18@ <> 0
goto_if_false @BDISPLY_1185
BDISPLY_1583()
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(18@, $x, $y, $bd_sprite_width, $bd_sprite_height, 128, 128, 128, 4@)

:BDISPLY_1185
0@ -= 1
goto @BDISPLY_879

:BDISPLY_1199
goto @BDISPLY_1213

:BDISPLY_1206
goto @BDISPLY_1252

:BDISPLY_1213
if 
  $bd_terminate_script == 0
goto_if_false @BDISPLY_1245
goto @BDISPLY_321
goto @BDISPLY_1252

:BDISPLY_1245
goto @BDISPLY_1252

:BDISPLY_1252
$bd_terminate_script = 0
$beat_display_script_started = 0
Text.UseCommands(False)
Txd.Remove
terminate_this_script 

:BDISPLY_1274
18@ = 0
if 
  10@ == 1
goto_if_false @BDISPLY_1306
18@ = 1

:BDISPLY_1306
if 
  10@ == 2
goto_if_false @BDISPLY_1331
18@ = 2

:BDISPLY_1331
if 
  10@ == 3
goto_if_false @BDISPLY_1356
18@ = 3

:BDISPLY_1356
if 
  10@ == 4
goto_if_false @BDISPLY_1381
18@ = 4

:BDISPLY_1381
if 
  10@ == 9
goto_if_false @BDISPLY_1406
18@ = 9

:BDISPLY_1406
if 
  10@ == 10
goto_if_false @BDISPLY_1431
18@ = 10

:BDISPLY_1431
if 
  10@ == 11
goto_if_false @BDISPLY_1456
18@ = 11

:BDISPLY_1456
if 
  10@ == 12
goto_if_false @BDISPLY_1481
18@ = 12

:BDISPLY_1481
if 
  10@ == 13
goto_if_false @BDISPLY_1506
18@ = 13

:BDISPLY_1506
if 
  10@ == 14
goto_if_false @BDISPLY_1531
18@ = 14

:BDISPLY_1531
if 
  10@ == 15
goto_if_false @BDISPLY_1556
18@ = 15

:BDISPLY_1556
if 
  10@ == 16
goto_if_false @BDISPLY_1581
18@ = 16

:BDISPLY_1581
return 

:BDISPLY_1583
if and
  $BD_RenderHit > 0
  23@ == 0
goto_if_false @BDISPLY_1635
1@, 1@, 25@ = Audio.GetBeatProximity(0)
25@ += 1
23@ = 1

:BDISPLY_1635
set_lvar_int_to_lvar_int 13@ = 12@
add_int_lvar_to_int_lvar 13@ += 0@
if 
  0 > 0@
goto_if_false @BDISPLY_1683
8@ *= -1
13@ += 1

:BDISPLY_1683
if 
  is_int_lvar_equal_to_int_lvar 13@ == 25@
goto_if_false @BDISPLY_1764
if and
  3000 >= 8@
  8@ > -400
goto_if_false @BDISPLY_1743
BDISPLY_1773()
goto @BDISPLY_1757

:BDISPLY_1743
23@ = 0
$BD_RenderHit = 0

:BDISPLY_1757
goto @BDISPLY_1771

:BDISPLY_1764
$BD_RenderHit = 0

:BDISPLY_1771
return 

:BDISPLY_1773
switch_start 23@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BDISPLY_2222 {caseNum1} 1 {caseLabel1} @BDISPLY_1836 {caseNum2} 2 {caseLabel2} @BDISPLY_2009 {caseNum3} 3 {caseLabel3} @BDISPLY_2113 {caseNum4} -1 {caseLabel4} @BDISPLY_2222 {caseNum5} -1 {caseLabel5} @BDISPLY_2222 {caseNum6} -1 {caseLabel6} @BDISPLY_2222 {caseNum7} -1 {caseLabel7} @BDISPLY_2222

:BDISPLY_1836
if 
  $BD_RenderHit == 1
goto_if_false @BDISPLY_1875
26@ = 90
27@ = 100
goto @BDISPLY_1948

:BDISPLY_1875
if 
  $BD_RenderHit == 2
goto_if_false @BDISPLY_1915
26@ = 190
27@ = 80
goto @BDISPLY_1948

:BDISPLY_1915
if 
  $BD_RenderHit == 3
goto_if_false @BDISPLY_1948
26@ = 255
27@ = 25

:BDISPLY_1948
set_lvar_int_to_lvar_int 24@ = 26@
TIMERB = 0
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(18, $x, $y, 21@, 22@, 128, 128, 128, 24@)
23@ += 1
goto @BDISPLY_2222

:BDISPLY_2009
if 
  is_int_lvar_greater_than_int_lvar 27@ > TIMERB
goto_if_false @BDISPLY_2067
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(18, $x, $y, 21@, 22@, 128, 128, 128, 24@)
goto @BDISPLY_2106

:BDISPLY_2067
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(18, $x, $y, 21@, 22@, 128, 128, 128, 24@)
23@ += 1

:BDISPLY_2106
goto @BDISPLY_2222

:BDISPLY_2113
set_lvar_int_to_lvar_int 1@ = 26@
div_int_lvar_by_int_lvar 1@ /= 17@
1@ *= 4
sub_int_lvar_from_int_lvar 24@ -= 1@
if 
  0 >= 24@
goto_if_false @BDISPLY_2183
24@ = 0
23@ = 0
$BD_RenderHit = 0

:BDISPLY_2183
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(18, $x, $y, 21@, 22@, 128, 128, 128, 24@)
goto @BDISPLY_2222

:BDISPLY_2222
return 

:Noname_6
terminate_this_script 

:IMPEXPM
script_name 'IMPEXPM'
if 
  $impexp_has_been_initialised <> 99
goto_if_false @IMPEXPM_484
if 
  $impexp_has_been_initialised == -1000
goto_if_false @IMPEXPM_123
27@ = Object.CreateNoOffset(#NF_BLACKBOARD, 0.0, 0.0, 0.0)
$2829[0] = CarGenerator.CreateWithPlate(0.0, 0.0, 0.0, 180.0, 587, -1, -1, False, 50, 0, 0, 10000, "IMPEXP__")

:IMPEXPM_123
if 
  not Object.DoesExist(27@)
goto_if_false @IMPEXPM_190
27@ = Object.CreateNoOffset(#NF_BLACKBOARD, -1573.881, 135.3845, 2.535)
Object.SetHeading(27@, 180.0)
Object.FreezePosition(27@, True)
Object.SetDynamic(27@, False)
Object.DontRemove(27@)

:IMPEXPM_190
$current_wanted_list = 0
set_var_int_to_constant $unlocked_import_cars[0] = 589
set_var_int_to_constant $unlocked_import_cars[1] = 404
set_var_int_to_constant $unlocked_import_cars[2] = 559
set_var_int_to_constant $unlocked_import_cars[3] = 589
set_var_int_to_constant $unlocked_import_cars[4] = 404
set_var_int_to_constant $unlocked_import_cars[5] = 559
4@ = 6

:IMPEXPM_252
if 
  42 > 4@
goto_if_false @IMPEXPM_295
$unlocked_import_cars(4@,42i) = -1
4@ += 1
goto @IMPEXPM_252

:IMPEXPM_295
set_var_text_label s$impexp_day[0] = 'IE16'
set_var_text_label s$impexp_day[1] = 'IE10'
set_var_text_label s$impexp_day[2] = 'IE11'
set_var_text_label s$impexp_day[3] = 'IE12'
set_var_text_label s$impexp_day[4] = 'IE13'
set_var_text_label s$impexp_day[5] = 'IE14'
set_var_text_label s$impexp_day[6] = 'IE15'
$explain_import_help = 0
$impexp_new_cars = 0
$impexp_is_complete = 0
$import_price_multiplier = 0.8
$export_price_multiplier = 1.0
$imported_cars[0] = -1
$imported_cars[1] = -1
$imported_cars[2] = -1
$imported_cars[3] = -1
$imported_cars[4] = -1
start_new_script @IMPEXPC 
$impexp_has_been_initialised = 99

:IMPEXPM_484
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_563
if and
  Char.LocateAnyMeans2D($scplayer, -1574.881, 135.3845, 150.0, 150.0, False)
  $import_export_is_active == 1
goto_if_false @IMPEXPM_563
15@ = 0
goto @IMPEXPM_577

:IMPEXPM_563
goto @IMPEXPM_484
26@ = 0

:IMPEXPM_577
if 
  $import_export_is_active == 1
goto_if_false @IMPEXPM_627
if 
  $activate_mobile_phone == 1
goto_if_false @IMPEXPM_627
$activate_mobile_phone = 0
$restore_mobile_for_filshie = 1

:IMPEXPM_627
IMPEXPM_11683()
if 
  16@ == -1
goto_if_false @IMPEXPM_875
17@ = Car.Create(413, 0.0, 0.0, 0.0)
20@ = Car.Create(413, 0.0, 0.0, 0.0)
22@ = Car.Create(413, 0.0, 0.0, 0.0)
27@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
$cross_out[0] = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
$export_name[0] = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
$import_name[0] = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
24@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
$magno_cabin = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
$wanted_list_object = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)

:IMPEXPM_875
16@ = 0
20@ = -1
23@ = 0
$impexp_door_rotation = 0.0
28@ = 0
IMPEXPM_10064()
IMPEXPM_10721()
if 
  $import_export_is_active == 1
goto_if_false @IMPEXPM_1185
if 
  Object.DoesExist($wanted_list_object)
goto_if_false @IMPEXPM_966
Object.Delete($wanted_list_object)

:IMPEXPM_966
if 
  $current_wanted_list == 0
goto_if_false @IMPEXPM_1039
$x, $y, $z = Object.GetOffsetInWorldCoords(27@, 0.0, 0.0, 0.0)
$wanted_list_object = Object.CreateNoOffset(#NF_LIST_1, $x, $y, $z)
Object.SetHeading($wanted_list_object, 180.0)

:IMPEXPM_1039
if 
  $current_wanted_list == 1
goto_if_false @IMPEXPM_1112
$x, $y, $z = Object.GetOffsetInWorldCoords(27@, 0.0, 0.0, 0.0)
$wanted_list_object = Object.CreateNoOffset(#NF_LIST_2, $x, $y, $z)
Object.SetHeading($wanted_list_object, 180.0)

:IMPEXPM_1112
if 
  $current_wanted_list == 2
goto_if_false @IMPEXPM_1185
$x, $y, $z = Object.GetOffsetInWorldCoords(27@, 0.0, 0.0, 0.0)
$wanted_list_object = Object.CreateNoOffset(#NF_LIST_3, $x, $y, $z)
Object.SetHeading($wanted_list_object, 180.0)

:IMPEXPM_1185
IMPEXPM_11683()
if 
  $import_export_is_active == 1
goto_if_false @IMPEXPM_1559
4@ = 0

:IMPEXPM_1217
if 
  10 > 4@
goto_if_false @IMPEXPM_1559
if 
  Object.DoesExist($cross_out(4@,10i))
goto_if_false @IMPEXPM_1264
Object.Delete($cross_out(4@,10i))

:IMPEXPM_1264
$cross_out(4@,10i) = -1
if or
  $onmission == 0
  $steal4_flag == 1
goto_if_false @IMPEXPM_1545
if 
  $current_wanted_car_status(4@,10i) == 1
goto_if_false @IMPEXPM_1545
if 
  not Object.DoesExist($cross_out(4@,10i))
goto_if_false @IMPEXPM_1545
$x, $y, $z = Object.GetOffsetInWorldCoords(27@, 0.0, 0.0, 0.0)
cset_lvar_float_to_lvar_int 12@ =# 4@
if 
  12@ > 4.0
goto_if_false @IMPEXPM_1410
12@ += -5.0

:IMPEXPM_1410
set_lvar_float_to_lvar_float 13@ = 12@
13@ *= -0.05
12@ *= -0.2355
add_float_lvar_to_float_lvar 12@ += 13@
add_float_lvar_to_float_var $z += 12@
if 
  5 > 4@
goto_if_false @IMPEXPM_1482
$x += 1.741

:IMPEXPM_1482
12@ *= -0.1
add_float_lvar_to_float_var $z += 12@
$cross_out(4@,10i) = Object.CreateNoOffset(#WANTED_CROSS_OFF, $x, $y, $z)
Object.FreezePosition($cross_out(4@,10i), True)
Object.SetHeading($cross_out(4@,10i), 180.0)

:IMPEXPM_1545
4@ += 1
goto @IMPEXPM_1217

:IMPEXPM_1559
wait 0
if 
  $import_export_is_active == 0
goto_if_false @IMPEXPM_1588
goto @IMPEXPM_1559

:IMPEXPM_1588
if 
  26@ == 1
goto_if_false @IMPEXPM_1730
if 
  Car.DoesExist(22@)
goto_if_false @IMPEXPM_1730
if 
  not Car.IsDead(22@)
goto_if_false @IMPEXPM_1680
Car.FreezePosition(22@, True)
if 
  not Car.IsOnScreen(22@)
goto_if_false @IMPEXPM_1673
Car.Delete(22@)
26@ = 0

:IMPEXPM_1673
goto @IMPEXPM_1692

:IMPEXPM_1680
Car.Delete(22@)
26@ = 0

:IMPEXPM_1692
17@, 18@, 19@ = Object.GrabEntityOnRope($magno_cabin)
if 
  is_int_lvar_equal_to_int_lvar 17@ == 22@
goto_if_false @IMPEXPM_1730
Object.ReleaseEntityFromRope($magno_cabin)

:IMPEXPM_1730
if and
  $impexp_new_cars <> 0
  TIMERB > 5000
goto_if_false @IMPEXPM_1836
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @IMPEXPM_1836
if 
  $impexp_new_cars == 1
goto_if_false @IMPEXPM_1800
Text.PrintHelp('IE25')

:IMPEXPM_1800
if 
  $impexp_new_cars == 2
goto_if_false @IMPEXPM_1829
Text.PrintHelp('IE26')

:IMPEXPM_1829
$impexp_new_cars = 0

:IMPEXPM_1836
if 
  $explain_import_help == 0
goto_if_false @IMPEXPM_1941
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_1941
if 
  Char.LocateAnyMeans2D($scplayer, -1574.881, 135.3845, 40.0, 40.0, False)
goto_if_false @IMPEXPM_1941
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @IMPEXPM_1941
Text.PrintHelp('IE27')
$explain_import_help += 1

:IMPEXPM_1941
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_7119
if 
  Char.LocateAnyMeans2D($scplayer, -1574.881, 135.3845, 150.0, 150.0, False)
goto_if_false @IMPEXPM_7105
if 
  15@ == 0
goto_if_false @IMPEXPM_4301
if 
  $impexp_is_complete == 0
goto_if_false @IMPEXPM_4027
if 
  16@ == 0
goto_if_false @IMPEXPM_2826
IMPEXPM_10644()
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_2120
if 
  Char.LocateAnyMeans3D($scplayer, -1577.942, 52.6333, 16.3281, 4.0, 4.0, 6.0, True)
goto_if_false @IMPEXPM_2120

:IMPEXPM_2120
$car = World.GetRandomCarInSphereNoSave(-1577.942, 52.6333, 16.3281, 4.0, -1)
if 
  Car.DoesExist($car)
goto_if_false @IMPEXPM_2533
if 
  not Car.IsDead($car)
goto_if_false @IMPEXPM_2533
if 
  Car.IsStopped($car)
goto_if_false @IMPEXPM_2533
if 
  not Car.IsInAirProper($car)
goto_if_false @IMPEXPM_2533
if 
  not is_int_var_equal_to_int_lvar $car == 17@
goto_if_false @IMPEXPM_2533
6@ = Car.GetModel($car)
4@ = 0
5@ = 0

:IMPEXPM_2252
if 
  10 > 4@
goto_if_false @IMPEXPM_2343
if 
  is_int_var_equal_to_int_lvar $current_wanted_car_list(4@,10i) == 6@
goto_if_false @IMPEXPM_2329
if 
  $current_wanted_car_status(4@,10i) == 0
goto_if_false @IMPEXPM_2329
5@ = 1
4@ = 10

:IMPEXPM_2329
4@ += 1
goto @IMPEXPM_2252

:IMPEXPM_2343
if 
  5@ == 1
goto_if_false @IMPEXPM_2504
set_lvar_int_to_var_int 22@ = $car
if 
  Car.IsPassengerSeatFree($car, SeatIndex.TandemRear)
goto_if_false @IMPEXPM_2431
18@ = Char.CreateRandom(-1576.88, 55.26, 8.57)
Char.WarpIntoCarAsPassenger(18@, $car, 0)
Char.SetVisible(18@, False)
goto @IMPEXPM_2483

:IMPEXPM_2431
18@ = Car.GetCharInPassengerSeat($car, 0)
Char.Delete(18@)
18@ = Char.CreateRandom(-1576.88, 55.26, 8.57)
Char.WarpIntoCarAsPassenger(18@, $car, 0)
Char.SetVisible(18@, False)

:IMPEXPM_2483
16@ += 1
TIMERA = 0
goto @IMPEXPM_2533

:IMPEXPM_2504
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @IMPEXPM_2533
Text.Print('IE23', 3000, 1)

:IMPEXPM_2533
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_2826
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @IMPEXPM_2826
if 
  Char.LocateStoppedInCar3D($scplayer, -1577.942, 52.6333, 16.3281, 4.0, 4.0, 6.0, False)
goto_if_false @IMPEXPM_2826
$car = Char.StoreCarIsInNoSave($scplayer)
6@ = Car.GetModel($car)
4@ = 0
5@ = 0

:IMPEXPM_2643
if 
  10 > 4@
goto_if_false @IMPEXPM_2734
if 
  is_int_var_equal_to_int_lvar $current_wanted_car_list(4@,10i) == 6@
goto_if_false @IMPEXPM_2720
if 
  $current_wanted_car_status(4@,10i) == 0
goto_if_false @IMPEXPM_2720
5@ = 1
4@ = 10

:IMPEXPM_2720
4@ += 1
goto @IMPEXPM_2643

:IMPEXPM_2734
if 
  5@ == 1
goto_if_false @IMPEXPM_2797
set_lvar_int_to_var_int 22@ = $car
if 
  not Car.IsDead(22@)
goto_if_false @IMPEXPM_2776

:IMPEXPM_2776
16@ += 1
TIMERA = 0
goto @IMPEXPM_2826

:IMPEXPM_2797
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @IMPEXPM_2826
Text.Print('IE23', 3000, 1)

:IMPEXPM_2826
if 
  16@ == 1
goto_if_false @IMPEXPM_3536
if 
  Object.DoesExist($magno_cabin)
goto_if_false @IMPEXPM_2870
Object.SetRopeHeight($magno_cabin, 0.7)

:IMPEXPM_2870
$disable_crane = 1
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_2900
Player.SetControl($player1, False)

:IMPEXPM_2900
Camera.DoFade(250, Fade.Out)

:IMPEXPM_2907
if 
  Camera.GetFadingStatus
goto_if_false @IMPEXPM_2931
wait 0
goto @IMPEXPM_2907

:IMPEXPM_2931
if 
  Car.DoesExist(22@)
goto_if_false @IMPEXPM_3046
if 
  not Car.IsDead(22@)
goto_if_false @IMPEXPM_3046
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_2993
$x, $y, $z = Char.GetCoordinates($scplayer)

:IMPEXPM_2993
Car.SetCoordinates(22@, -1577.942, 52.6333, 40.0)
Car.FreezePosition(22@, True)
4@ = Car.GetHealth(22@)
cset_var_float_to_lvar_int $export_damage_multiplier =# 4@
$export_damage_multiplier /= 1000.0

:IMPEXPM_3046
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-1573.419, 53.4591, 17.9655, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1574.344, 53.0835, 17.9027, SwitchType.JumpCut)
World.ClearArea(-1577.942, 52.6333, 16.3281, 9.0, True)
wait 0
if 
  not Car.IsDead(22@)
goto_if_false @IMPEXPM_3325
4@ = Car.GetModel(22@)
$x, $y, $z, 7@, 8@, 9@ = Streaming.GetModelDimensions(4@)
set_lvar_float_to_lvar_float 12@ = 8@
sub_float_var_from_float_lvar 12@ -= $y
12@ /= 2.0
12@ *= -1.0
14@ = Math.Sin(45.0)
13@ = Math.Cos(45.0)
mult_float_lvar_by_float_lvar 13@ *= 12@
mult_float_lvar_by_float_lvar 14@ *= 12@
$x = -1577.942
add_float_lvar_to_float_var $x += 14@
$y = 52.6333
add_float_lvar_to_float_var $y += 13@
$z = 16.3281
Car.FreezePosition(22@, False)
Car.SetCoordinates(22@, $x, $y, $z)
Car.SetHeading(22@, 315.0)

:IMPEXPM_3325
Camera.DoFade(250, Fade.In)

:IMPEXPM_3332
if 
  Camera.GetFadingStatus
goto_if_false @IMPEXPM_3356
wait 0
goto @IMPEXPM_3332

:IMPEXPM_3356
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_3482
if 
  not Car.IsDead(22@)
goto_if_false @IMPEXPM_3482
if 
  Char.IsInCar($scplayer, 22@)
goto_if_false @IMPEXPM_3475
31@ = 1
30@ = Sequence.Open()
Task.LeaveCar(-1, 22@)
Task.GoStraightToCoord(-1, -1578.164, 63.7954, 16.3281, MoveState.Walk, 10000)
Sequence.Close(30@)
Char.PerformSequence($scplayer, 30@)
Sequence.Clear(30@)
goto @IMPEXPM_3482

:IMPEXPM_3475
31@ = 0

:IMPEXPM_3482
Text.PrintNow('IE24', 5000, 1)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @IMPEXPM_3522
1@ = 1

:IMPEXPM_3522
TIMERA = 0
16@ += 1

:IMPEXPM_3536
if 
  16@ == 2
goto_if_false @IMPEXPM_3646
if or
  TIMERA > 5000
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @IMPEXPM_3604
if 
  1@ == 0
goto_if_false @IMPEXPM_3604
16@ += 1

:IMPEXPM_3604
if 
  1@ == 1
goto_if_false @IMPEXPM_3646
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @IMPEXPM_3646
1@ = 0

:IMPEXPM_3646
if 
  16@ == 3
goto_if_false @IMPEXPM_4027
Camera.DoFade(500, Fade.Out)

:IMPEXPM_3671
if 
  Camera.GetFadingStatus
goto_if_false @IMPEXPM_3695
wait 0
goto @IMPEXPM_3671

:IMPEXPM_3695
if 
  31@ <> 0
goto_if_false @IMPEXPM_3764
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_3764
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -1578.164, 63.7954, 16.3281)
Char.SetHeading($scplayer, 0.8)

:IMPEXPM_3764
IMPEXPM_9397()
Car.Delete(22@)
if 
  Char.DoesExist(18@)
goto_if_false @IMPEXPM_3797
Char.Delete(18@)

:IMPEXPM_3797
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
$disable_crane = 0
if 
  $player_is_in_crane == 2
goto_if_false @IMPEXPM_3837
$reset_crane_camera = 1

:IMPEXPM_3837
Camera.DoFade(500, Fade.In)

:IMPEXPM_3844
if 
  Camera.GetFadingStatus
goto_if_false @IMPEXPM_3868
wait 0
goto @IMPEXPM_3844

:IMPEXPM_3868
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_3891
Player.SetControl($player1, True)

:IMPEXPM_3891
if 
  $impexp_is_complete == 1
goto_if_false @IMPEXPM_3950
Text.PrintBig('IE29', 5000, TextStyle.Middle)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
wait 5000

:IMPEXPM_3950
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_3974
Player.AddScore($player1, 29@)

:IMPEXPM_3974
Text.PrintWithNumberBig('IE30', 29@, 5000, TextStyle.Middle)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
TIMERB = 0
goto @IMPEXPM_577

:IMPEXPM_4027
if 
  Object.DoesExist(27@)
goto_if_false @IMPEXPM_4301
$x, $y, $z = Object.GetOffsetInWorldCoords(27@, 0.0, 1.5, 0.0)
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_4301
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 2.0, 1.0, 2.0, False)
goto_if_false @IMPEXPM_4267
if 
  23@ <> 1
goto_if_false @IMPEXPM_4166
Text.PrintHelp('IE18')
23@ = 1

:IMPEXPM_4166
Pad.SetPlayerEnterCarButton($player1, False)
if 
  0@ == 0
goto_if_false @IMPEXPM_4236
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @IMPEXPM_4229
0@ = 1
15@ = 1
goto @IMPEXPM_577

:IMPEXPM_4229
goto @IMPEXPM_4260

:IMPEXPM_4236
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @IMPEXPM_4260
0@ = 0

:IMPEXPM_4260
goto @IMPEXPM_4301

:IMPEXPM_4267
if 
  23@ == 1
goto_if_false @IMPEXPM_4294
Text.ClearHelp
23@ = 0

:IMPEXPM_4294
Pad.SetPlayerEnterCarButton($player1, True)

:IMPEXPM_4301
if 
  15@ == 1
goto_if_false @IMPEXPM_7098

:IMPEXPM_4319
if 
  16@ == 0
goto_if_false @IMPEXPM_4596
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_4360
Player.SetControl($player1, False)

:IMPEXPM_4360
Text.PrintHelpForever('IE20')
Hud.DisplayRadar(False)
$impexp_menu = Menu.Create('IE09', 29.0, 170.0, 180.0, 1, True, True, 0)
Menu.SetColumn($impexp_menu, 0, 'DUMMY', 'IE16', 'IE10', 'IE11', 'IE12', 'IE13', 'IE14', 'IE15', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
if 
  4@ == -69
goto_if_false @IMPEXPM_4569
Menu.SetActiveItem($impexp_menu, $impexp_selected_day)
goto @IMPEXPM_4589

:IMPEXPM_4569
4@ = Clock.GetCurrentDayOfWeek()
4@ += -1
Menu.SetActiveItem($impexp_menu, 4@)

:IMPEXPM_4589
16@ += 1

:IMPEXPM_4596
if 
  16@ == 1
goto_if_false @IMPEXPM_4870
if 
  1@ == 0
goto_if_false @IMPEXPM_4689
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @IMPEXPM_4682
$impexp_selected_day = Menu.GetItemSelected($impexp_menu)
16@ += 1
1@ = 1
Text.ClearThisPrint('IE28')

:IMPEXPM_4682
goto @IMPEXPM_4713

:IMPEXPM_4689
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @IMPEXPM_4713
1@ = 0

:IMPEXPM_4713
if 
  0@ == 0
goto_if_false @IMPEXPM_4812
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @IMPEXPM_4805
IMPEXPM_9031()
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_4778
Player.SetControl($player1, True)

:IMPEXPM_4778
Hud.DisplayRadar(True)
Text.ClearHelp
15@ = 0
16@ = 0
0@ = 1

:IMPEXPM_4805
goto @IMPEXPM_4836

:IMPEXPM_4812
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @IMPEXPM_4836
0@ = 0

:IMPEXPM_4836
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
goto_if_false @IMPEXPM_4870
Text.ClearThisPrint('IE28')

:IMPEXPM_4870
if 
  16@ == 2
goto_if_false @IMPEXPM_5558
set_var_int_to_var_int $import_car_list_input = $impexp_selected_day
IMPEXPM_10721()
4@ = 0
5@ = 0

:IMPEXPM_4917
if 
  6 > 4@
goto_if_false @IMPEXPM_4985
if 
  $current_import_car_list(4@,6i) <> -1
goto_if_false @IMPEXPM_4971
5@ = 1
4@ = 6

:IMPEXPM_4971
4@ += 1
goto @IMPEXPM_4917

:IMPEXPM_4985
if 
  5@ == 0
goto_if_false @IMPEXPM_5040
Text.PrintNow('IE28', 5000, 1)
16@ = 1
goto @IMPEXPM_4319
goto @IMPEXPM_5558

:IMPEXPM_5040
Text.PrintHelpForever('IE21')
Menu.Delete($impexp_menu)
$impexp_panel = Menu.Create('IE09', 29.0, 170.0, 180.0, 2, True, True, 0)
4@ = 0

:IMPEXPM_5100
if 
  6 > 4@
goto_if_false @IMPEXPM_5206
set_lvar_int_to_var_int 6@ = $current_import_car_list(4@,6i)
if 
  6@ <> -1
goto_if_false @IMPEXPM_5174
IMPEXPM_11874()
set_var_text_label $impexp_menu_text_label(4@,6s) = s$impexp_text_label
goto @IMPEXPM_5192

:IMPEXPM_5174
set_var_text_label $impexp_menu_text_label(4@,6s) = 'DUMMY'

:IMPEXPM_5192
4@ += 1
goto @IMPEXPM_5100

:IMPEXPM_5206
set_lvar_int_to_var_int 4@ = $impexp_selected_day
Menu.SetColumn($impexp_panel, 0, $impexp_day(4@,7s), s$impexp_menu_text_label[0], s$impexp_menu_text_label[1], s$impexp_menu_text_label[2], s$impexp_menu_text_label[3], s$impexp_menu_text_label[4], s$impexp_menu_text_label[5], 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumn($impexp_panel, 1, 'COST', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
4@ = 0

:IMPEXPM_5431
if 
  6 > 4@
goto_if_false @IMPEXPM_5551
set_lvar_int_to_var_int 6@ = $current_import_car_list(4@,6i)
if 
  6@ <> -1
goto_if_false @IMPEXPM_5537
$current_vehicle_cost = Car.GetModelValue($current_import_car_list(4@,6i))
cset_lvar_float_to_var_int 12@ =# $current_vehicle_cost
mult_float_lvar_by_float_var 12@ *= $import_price_multiplier
cset_var_int_to_lvar_float $current_vehicle_cost =# 12@
Menu.SetItemWithNumber($impexp_panel, 1, 4@, 'DOLLAR', $current_vehicle_cost)

:IMPEXPM_5537
4@ += 1
goto @IMPEXPM_5431

:IMPEXPM_5551
16@ += 1

:IMPEXPM_5558
if 
  16@ == 3
goto_if_false @IMPEXPM_5765
if 
  1@ == 0
goto_if_false @IMPEXPM_5640
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @IMPEXPM_5633
$impexp_selected_car = Menu.GetItemSelected($impexp_panel)
16@ += 1
1@ = 1

:IMPEXPM_5633
goto @IMPEXPM_5664

:IMPEXPM_5640
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @IMPEXPM_5664
1@ = 0

:IMPEXPM_5664
if 
  0@ == 0
goto_if_false @IMPEXPM_5741
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @IMPEXPM_5734
IMPEXPM_9031()
16@ = 0
0@ = 1
4@ = -69
goto @IMPEXPM_4319

:IMPEXPM_5734
goto @IMPEXPM_5765

:IMPEXPM_5741
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @IMPEXPM_5765
0@ = 0

:IMPEXPM_5765
if 
  16@ == 4
goto_if_false @IMPEXPM_6075
4@ = Clock.GetCurrentDayOfWeek()
4@ += -1
if 
  not is_int_lvar_equal_to_int_var 4@ == $impexp_selected_day
goto_if_false @IMPEXPM_5844
Text.PrintNow('IE19', 5000, 1)
IMPEXPM_9031()
16@ = 0

:IMPEXPM_5844
$current_vehicle_cost = Car.GetModelValue($current_import_car_list(25@,6i))
cset_lvar_float_to_var_int 12@ =# $current_vehicle_cost
mult_float_lvar_by_float_var 12@ *= $import_price_multiplier
cset_var_int_to_lvar_float $current_vehicle_cost =# 12@
4@ = Player.StoreScore($player1)
if 
  is_int_var_greater_than_int_lvar $current_vehicle_cost > 4@
goto_if_false @IMPEXPM_5937
Text.PrintNow('IE07', 5000, 1)
IMPEXPM_9031()
16@ = 0

:IMPEXPM_5937
if 
  16@ <> 0
goto_if_false @IMPEXPM_5991
if 
  $current_import_car_list($impexp_selected_car,6i) == -1
goto_if_false @IMPEXPM_5991
IMPEXPM_9031()
16@ = 0

:IMPEXPM_5991
if 
  16@ <> 0
goto_if_false @IMPEXPM_6075
$current_vehicle_cost = Car.GetModelValue($current_import_car_list(25@,6i))
cset_lvar_float_to_var_int 12@ =# $current_vehicle_cost
mult_float_lvar_by_float_var 12@ *= $import_price_multiplier
cset_var_int_to_lvar_float $current_vehicle_cost =# 12@
set_lvar_int_to_var_int 4@ = $current_vehicle_cost
4@ *= -1
Player.AddScore($player1, 4@)
16@ += 1

:IMPEXPM_6075
if 
  16@ == 5
goto_if_false @IMPEXPM_6548
if 
  not Streaming.HasModelLoaded($current_import_car_list($impexp_selected_car,6i))
goto_if_false @IMPEXPM_6153
Streaming.RequestModel($current_import_car_list($impexp_selected_car,6i))

:IMPEXPM_6122
if 
  not Streaming.HasModelLoaded($current_import_car_list($impexp_selected_car,6i))
goto_if_false @IMPEXPM_6153
wait 0
goto @IMPEXPM_6122

:IMPEXPM_6153
Text.ClearHelp
IMPEXPM_9031()
World.ClearArea(-1572.168, 63.2853, 16.3281, 20.0, True)
IMPEXPM_13123()
$imported_car = Car.Create($current_import_car_list($impexp_selected_car,6i), -1572.168, 63.2853, 16.3281)
Car.SetDirtLevel($imported_car, 0.0)
Car.SetHeading($imported_car, 315.0)
Streaming.MarkModelAsNoLongerNeeded($current_import_car_list($impexp_selected_car,6i))
if 
  is_int_var_equal_to_constant $current_import_car_list($impexp_selected_car,6i) == 589
goto_if_false @IMPEXPM_6281
Car.ChangeColor($imported_car, 11, 0)

:IMPEXPM_6281
4@ = Car.GetModel($imported_car)
$x, $y, $z, 7@, 8@, 9@ = Streaming.GetModelDimensions(4@)
set_lvar_float_to_lvar_float 12@ = 8@
sub_float_var_from_float_lvar 12@ -= $y
12@ /= 2.0
12@ *= -1.0
13@ = Math.Cos(45.0)
14@ = Math.Sin(45.0)
mult_float_lvar_by_float_lvar 13@ *= 12@
mult_float_lvar_by_float_lvar 14@ *= 12@
$x = -1572.168
add_float_lvar_to_float_var $x += 14@
$y = 63.2853
add_float_lvar_to_float_var $y += 13@
$z = 16.3281
Car.SetCoordinates($imported_car, $x, $y, $z)
Car.SetHeading($imported_car, 315.0)
Text.ClearPrints
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-1567.597, 63.2567, 17.7586, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1568.576, 63.0585, 17.7094, SwitchType.JumpCut)
Text.PrintNow('IE08', 5000, 1)
Stat.IncrementInt(StatId.VehiclesImported, 1)
TIMERA = 0
16@ += 1

:IMPEXPM_6548
if 
  16@ == 6
goto_if_false @IMPEXPM_6672
if 
  TIMERA > 5000
goto_if_false @IMPEXPM_6599
16@ += 1
goto @IMPEXPM_6672

:IMPEXPM_6599
if 
  1@ == 0
goto_if_false @IMPEXPM_6648
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @IMPEXPM_6641
16@ += 1

:IMPEXPM_6641
goto @IMPEXPM_6672

:IMPEXPM_6648
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @IMPEXPM_6672
1@ = 0

:IMPEXPM_6672
if 
  16@ == 7
goto_if_false @IMPEXPM_6743
Text.ClearPrints
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_6723
Player.SetControl($player1, True)

:IMPEXPM_6723
Pad.SetPlayerEnterCarButton($player1, True)
Hud.DisplayRadar(True)
Text.ClearHelp
16@ += 1

:IMPEXPM_6743
if 
  16@ == 8
goto_if_false @IMPEXPM_7098
if 
  not Car.IsDead($imported_car)
goto_if_false @IMPEXPM_6880
if and
  not Car.Locate3D($imported_car, -1572.168, 63.2853, 16.3281, 30.0, 30.0, 5.0, False)
  not Camera.IsPointOnScreen(-1572.168, 63.2853, 16.3281, 5.0)
goto_if_false @IMPEXPM_6873
Car.MarkAsNoLongerNeeded($imported_car)
15@ = 0
16@ = 0
goto @IMPEXPM_577

:IMPEXPM_6873
goto @IMPEXPM_6906

:IMPEXPM_6880
Car.MarkAsNoLongerNeeded($imported_car)
15@ = 0
16@ = 0
goto @IMPEXPM_577

:IMPEXPM_6906
if 
  Object.DoesExist(27@)
goto_if_false @IMPEXPM_7098
$x, $y, $z = Object.GetOffsetInWorldCoords(27@, 0.0, 1.5, 0.0)
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_7098
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 2.0, 1.0, 2.0, False)
goto_if_false @IMPEXPM_7098
if 
  0@ == 0
goto_if_false @IMPEXPM_7074
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @IMPEXPM_7067
0@ = 1
Text.PrintNow('IE08', 5000, 1)

:IMPEXPM_7067
goto @IMPEXPM_7098

:IMPEXPM_7074
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @IMPEXPM_7098
0@ = 0

:IMPEXPM_7098
goto @IMPEXPM_7112

:IMPEXPM_7105
goto @IMPEXPM_9043

:IMPEXPM_7112
goto @IMPEXPM_7126

:IMPEXPM_7119
goto @IMPEXPM_9043

:IMPEXPM_7126
if 
is_ps2_keyboard_key_just_pressed 24
goto_if_false @IMPEXPM_7235
4@ = 0

:IMPEXPM_7148
if 
  10 > 4@
goto_if_false @IMPEXPM_7221
if 
  $current_wanted_car_status(4@,10i) == 0
goto_if_false @IMPEXPM_7207
set_lvar_int_to_var_int 6@ = $current_wanted_car_list(4@,10i)
4@ = 10

:IMPEXPM_7207
4@ += 1
goto @IMPEXPM_7148

:IMPEXPM_7221
IMPEXPM_9397()
goto @IMPEXPM_577

:IMPEXPM_7235
if 
is_ps2_keyboard_key_just_pressed 23
goto_if_false @IMPEXPM_9024
save_newline_to_debug_file 
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CURRENT_WANTED_LIST = ")
save_int_to_debug_file $current_wanted_list
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("MODID, STATUS, PAYOUT, EXP NAME,  CROSS OUT")
save_newline_to_debug_file 
4@ = 0

:IMPEXPM_7530
if 
  10 > 4@
goto_if_false @IMPEXPM_8120
save_int_to_debug_file $current_wanted_car_list(4@,10i)
Debugger.SaveStringToDebugFile("        ")
save_int_to_debug_file $current_wanted_car_status(4@,10i)
Debugger.SaveStringToDebugFile("        ")
Debugger.SaveStringToDebugFile("        ")
save_int_to_debug_file $export_name(4@,10i)
Debugger.SaveStringToDebugFile("        ")
save_int_to_debug_file $cross_out(4@,10i)
save_newline_to_debug_file 
4@ += 1
goto @IMPEXPM_7530

:IMPEXPM_8120
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("IMPORT DETAILS")
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("MODID, IMP NAME")
save_newline_to_debug_file 
4@ = 0

:IMPEXPM_8393
if 
  6 > 4@
goto_if_false @IMPEXPM_8575
save_int_to_debug_file $current_import_car_list(4@,6i)
Debugger.SaveStringToDebugFile("         ")
save_int_to_debug_file $import_name(4@,6i)
save_newline_to_debug_file 
4@ += 1
goto @IMPEXPM_8393

:IMPEXPM_8575
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("UNLOCKED_IMPORT_CARS ARRAY")
save_newline_to_debug_file 
4@ = 0

:IMPEXPM_8716
if 
  42 > 4@
goto_if_false @IMPEXPM_9024
Debugger.SaveStringToDebugFile("UNLOCKED_IMPORT_CARS[")
save_int_to_debug_file 4@
Debugger.SaveStringToDebugFile("] = ")
save_int_to_debug_file $unlocked_import_cars(4@,42i)
save_newline_to_debug_file 
4@ += 1
goto @IMPEXPM_8716

:IMPEXPM_9024
goto @IMPEXPM_1559

:IMPEXPM_9031
Menu.Delete($impexp_menu)
Menu.Delete($impexp_panel)
return 

:IMPEXPM_9043
if 
  Car.DoesExist(22@)
goto_if_false @IMPEXPM_9113
if 
  Object.DoesExist($magno_cabin)
goto_if_false @IMPEXPM_9113
17@, 18@, 19@ = Object.GrabEntityOnRope($magno_cabin)
if 
  not is_int_lvar_equal_to_int_lvar 17@ == 22@
goto_if_false @IMPEXPM_9113
Car.MarkAsNoLongerNeeded(22@)

:IMPEXPM_9113
if 
  Car.DoesExist($imported_car)
goto_if_false @IMPEXPM_9183
if 
  Object.DoesExist($magno_cabin)
goto_if_false @IMPEXPM_9183
17@, 18@, 19@ = Object.GrabEntityOnRope($magno_cabin)
if 
  not is_int_lvar_equal_to_int_var 17@ == $imported_car
goto_if_false @IMPEXPM_9183
Car.MarkAsNoLongerNeeded($imported_car)

:IMPEXPM_9183
if 
  Char.DoesExist(18@)
goto_if_false @IMPEXPM_9204
Char.Delete(18@)

:IMPEXPM_9204
if 
  Object.DoesExist(24@)
goto_if_false @IMPEXPM_9225
Object.Delete(24@)

:IMPEXPM_9225
4@ = 0

:IMPEXPM_9232
if 
  10 > 4@
goto_if_false @IMPEXPM_9293
if 
  Object.DoesExist($cross_out(4@,10i))
goto_if_false @IMPEXPM_9279
Object.Delete($cross_out(4@,10i))

:IMPEXPM_9279
4@ += 1
goto @IMPEXPM_9232

:IMPEXPM_9293
if 
  Object.DoesExist($wanted_list_object)
goto_if_false @IMPEXPM_9314
Object.Delete($wanted_list_object)

:IMPEXPM_9314
if 
  $restore_mobile_for_filshie == 1
goto_if_false @IMPEXPM_9339
$activate_mobile_phone = 1

:IMPEXPM_9339
goto @IMPEXPM_484
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_9376
Player.SetControl($player1, True)
Pad.SetPlayerEnterCarButton($player1, True)

:IMPEXPM_9376
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Text.ClearPrints
0@ = 1
return 
return 

:IMPEXPM_9397
Stat.IncrementInt(StatId.VehiclesExported, 1)
4@ = 0

:IMPEXPM_9411
if 
  10 > 4@
goto_if_false @IMPEXPM_9675
if 
  is_int_var_equal_to_int_lvar $current_wanted_car_list(4@,10i) == 6@
goto_if_false @IMPEXPM_9661
if 
  $current_wanted_car_status(4@,10i) == 0
goto_if_false @IMPEXPM_9661
$current_wanted_car_status(4@,10i) = 1
29@ = Car.GetModelValue(6@)
cset_lvar_float_to_lvar_int 12@ =# 29@
mult_float_lvar_by_float_var 12@ *= $export_price_multiplier
mult_float_lvar_by_float_var 12@ *= $export_damage_multiplier
cset_lvar_int_to_lvar_float 29@ =# 12@
4@ = Stat.GetInt(StatId.VehiclesExported)
switch_start 4@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @IMPEXPM_9654 {caseNum1} 10 {caseLabel1} @IMPEXPM_9596 {caseNum2} 20 {caseLabel2} @IMPEXPM_9613 {caseNum3} 30 {caseLabel3} @IMPEXPM_9630 {caseNum4} -1 {caseLabel4} @IMPEXPM_9654 {caseNum5} -1 {caseLabel5} @IMPEXPM_9654 {caseNum6} -1 {caseLabel6} @IMPEXPM_9654 {caseNum7} -1 {caseLabel7} @IMPEXPM_9654

:IMPEXPM_9596
29@ += 50000
goto @IMPEXPM_9654

:IMPEXPM_9613
29@ += 100000
goto @IMPEXPM_9654

:IMPEXPM_9630
29@ += 200000
$impexp_is_complete = 1
goto @IMPEXPM_9654

:IMPEXPM_9654
4@ = 10

:IMPEXPM_9661
4@ += 1
goto @IMPEXPM_9411

:IMPEXPM_9675
IMPEXPM_11683()
4@ = 0

:IMPEXPM_9689
if 
  42 > 4@
goto_if_false @IMPEXPM_9770
if 
  $unlocked_import_cars(4@,42i) == -1
goto_if_false @IMPEXPM_9756
set_var_int_to_lvar_int $unlocked_import_cars(4@,42i) = 6@
set_lvar_int_to_lvar_int 5@ = 4@
4@ = 42

:IMPEXPM_9756
4@ += 1
goto @IMPEXPM_9689

:IMPEXPM_9770
$impexp_new_cars = 1
switch_start 5@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @IMPEXPM_10062 {caseNum1} 10 {caseLabel1} @IMPEXPM_9840 {caseNum2} 16 {caseLabel2} @IMPEXPM_9873 {caseNum3} 22 {caseLabel3} @IMPEXPM_9914 {caseNum4} 28 {caseLabel4} @IMPEXPM_9947 {caseNum5} 34 {caseLabel5} @IMPEXPM_9988 {caseNum6} 40 {caseLabel6} @IMPEXPM_10021 {caseNum7} -1 {caseLabel7} @IMPEXPM_10062

:IMPEXPM_9840
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 444
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_9873
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 555
Stat.PlayerMadeProgress(1)
Audio.PlayMissionPassedTune(2)
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_9914
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 568
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_9947
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 451
Stat.PlayerMadeProgress(1)
Audio.PlayMissionPassedTune(2)
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_9988
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 539
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_10021
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 541
Stat.PlayerMadeProgress(1)
Audio.PlayMissionPassedTune(2)
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_10062
return 

:IMPEXPM_10064
if and
  $onmission == 1
  $steal4_flag <> 1
goto_if_false @IMPEXPM_10166
$current_wanted_car_list[0] = -1
$current_wanted_car_list[1] = -1
$current_wanted_car_list[2] = -1
$current_wanted_car_list[3] = -1
$current_wanted_car_list[4] = -1
$current_wanted_car_list[5] = -1
$current_wanted_car_list[6] = -1
$current_wanted_car_list[7] = -1
$current_wanted_car_list[8] = -1
$current_wanted_car_list[9] = -1
goto @IMPEXPM_10642

:IMPEXPM_10166
4@ = 0
5@ = 0

:IMPEXPM_10180
if 
  10 > 4@
goto_if_false @IMPEXPM_10241
if 
  $current_wanted_car_status(4@,10i) == 1
goto_if_false @IMPEXPM_10227
5@ += 1

:IMPEXPM_10227
4@ += 1
goto @IMPEXPM_10180

:IMPEXPM_10241
if 
  5@ == 10
goto_if_false @IMPEXPM_10348
if 
  2 > $current_wanted_list
goto_if_false @IMPEXPM_10341
$current_wanted_list += 1
4@ = 0

:IMPEXPM_10291
if 
  10 > 4@
goto_if_false @IMPEXPM_10334
$current_wanted_car_status(4@,10i) = 0
4@ += 1
goto @IMPEXPM_10291

:IMPEXPM_10334
goto @IMPEXPM_10348

:IMPEXPM_10341
$impexp_is_complete = 1

:IMPEXPM_10348
if 
  $current_wanted_list == 0
goto_if_false @IMPEXPM_10446
set_var_int_to_constant $current_wanted_car_list[0] = 402
set_var_int_to_constant $current_wanted_car_list[1] = 405
set_var_int_to_constant $current_wanted_car_list[2] = 411
set_var_int_to_constant $current_wanted_car_list[3] = 483
set_var_int_to_constant $current_wanted_car_list[4] = 445
set_var_int_to_constant $current_wanted_car_list[5] = 470
set_var_int_to_constant $current_wanted_car_list[6] = 468
set_var_int_to_constant $current_wanted_car_list[7] = 409
set_var_int_to_constant $current_wanted_car_list[8] = 533
set_var_int_to_constant $current_wanted_car_list[9] = 534

:IMPEXPM_10446
if 
  $current_wanted_list == 1
goto_if_false @IMPEXPM_10544
set_var_int_to_constant $current_wanted_car_list[0] = 415
set_var_int_to_constant $current_wanted_car_list[1] = 489
set_var_int_to_constant $current_wanted_car_list[2] = 439
set_var_int_to_constant $current_wanted_car_list[3] = 514
set_var_int_to_constant $current_wanted_car_list[4] = 480
set_var_int_to_constant $current_wanted_car_list[5] = 535
set_var_int_to_constant $current_wanted_car_list[6] = 496
set_var_int_to_constant $current_wanted_car_list[7] = 580
set_var_int_to_constant $current_wanted_car_list[8] = 475
set_var_int_to_constant $current_wanted_car_list[9] = 521

:IMPEXPM_10544
if 
  $current_wanted_list == 2
goto_if_false @IMPEXPM_10642
set_var_int_to_constant $current_wanted_car_list[0] = 429
set_var_int_to_constant $current_wanted_car_list[1] = 506
set_var_int_to_constant $current_wanted_car_list[2] = 508
set_var_int_to_constant $current_wanted_car_list[3] = 579
set_var_int_to_constant $current_wanted_car_list[4] = 424
set_var_int_to_constant $current_wanted_car_list[5] = 536
set_var_int_to_constant $current_wanted_car_list[6] = 463
set_var_int_to_constant $current_wanted_car_list[7] = 500
set_var_int_to_constant $current_wanted_car_list[8] = 477
set_var_int_to_constant $current_wanted_car_list[9] = 587

:IMPEXPM_10642
return 

:IMPEXPM_10644
if 
  Object.DoesExist($magno_cabin)
goto_if_false @IMPEXPM_10719
17@, 18@, 19@ = Object.GrabEntityOnRope($magno_cabin)
if 
  17@ <> -1
goto_if_false @IMPEXPM_10719
if 
  not is_int_lvar_equal_to_int_lvar 20@ == 17@
goto_if_false @IMPEXPM_10719
set_lvar_int_to_lvar_int 20@ = 17@

:IMPEXPM_10719
return 

:IMPEXPM_10721
4@ = 0

:IMPEXPM_10728
if 
  6 > 4@
goto_if_false @IMPEXPM_10771
$current_import_car_list(4@,6i) = -1
4@ += 1
goto @IMPEXPM_10728

:IMPEXPM_10771
switch_start $import_car_list_input {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @IMPEXPM_11219 {caseNum1} 0 {caseLabel1} @IMPEXPM_10834 {caseNum2} 1 {caseLabel2} @IMPEXPM_10889 {caseNum3} 2 {caseLabel3} @IMPEXPM_10944 {caseNum4} 3 {caseLabel4} @IMPEXPM_10999 {caseNum5} 4 {caseLabel5} @IMPEXPM_11054 {caseNum6} 5 {caseLabel6} @IMPEXPM_11109 {caseNum7} 6 {caseLabel7} @IMPEXPM_11164

:IMPEXPM_10834
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[0]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[7]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[14]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[21]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[28]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[35]
goto @IMPEXPM_11219

:IMPEXPM_10889
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[1]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[8]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[15]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[22]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[29]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[36]
goto @IMPEXPM_11219

:IMPEXPM_10944
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[2]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[9]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[16]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[23]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[30]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[37]
goto @IMPEXPM_11219

:IMPEXPM_10999
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[3]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[10]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[17]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[24]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[31]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[38]
goto @IMPEXPM_11219

:IMPEXPM_11054
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[4]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[11]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[18]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[25]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[32]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[39]
goto @IMPEXPM_11219

:IMPEXPM_11109
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[5]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[12]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[19]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[26]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[33]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[40]
goto @IMPEXPM_11219

:IMPEXPM_11164
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[6]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[13]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[20]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[27]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[34]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[41]
goto @IMPEXPM_11219

:IMPEXPM_11219
return 

:IMPEXPM_11221
4@ = 0

:IMPEXPM_11228
if 
  5 > 4@
goto_if_false @IMPEXPM_11416
if 
  $imported_cars(4@,5i) == -1
goto_if_false @IMPEXPM_11294
set_var_int_to_var_int $imported_cars(4@,5i) = $imported_car
4@ = 10
goto @IMPEXPM_11409

:IMPEXPM_11294
if 
  Car.DoesExist($imported_cars(4@,5i))
goto_if_false @IMPEXPM_11382
if 
  Car.IsDead($imported_cars(4@,5i))
goto_if_false @IMPEXPM_11368
Car.MarkAsNoLongerNeeded($imported_cars(4@,5i))
$imported_cars(4@,5i) = -1
goto @IMPEXPM_11221
goto @IMPEXPM_11375

:IMPEXPM_11368
4@ += 1

:IMPEXPM_11375
goto @IMPEXPM_11409

:IMPEXPM_11382
Car.MarkAsNoLongerNeeded($imported_cars(4@,5i))
$imported_cars(4@,5i) = -1
goto @IMPEXPM_11221

:IMPEXPM_11409
goto @IMPEXPM_11228

:IMPEXPM_11416
if 
  4@ == 5
goto_if_false @IMPEXPM_11453
Car.MarkAsNoLongerNeeded($imported_cars[4])
$imported_cars[4] = -1
goto @IMPEXPM_11221

:IMPEXPM_11453
return 
4@ = 0

:IMPEXPM_11462
if 
  5 > 4@
goto_if_false @IMPEXPM_11681
if 
  $imported_cars(4@,5i) <> -1
goto_if_false @IMPEXPM_11667
if 
  Car.DoesExist($imported_cars(4@,5i))
goto_if_false @IMPEXPM_11647
if 
  not Car.IsDead($imported_cars(4@,5i))
goto_if_false @IMPEXPM_11620
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPM_11613
if 
  not Char.LocateAnyMeansCar2D($scplayer, $imported_cars(4@,5i), 500.0, 500.0, False)
goto_if_false @IMPEXPM_11613
Car.MarkAsNoLongerNeeded($imported_cars(4@,5i))
$imported_cars(4@,5i) = -1

:IMPEXPM_11613
goto @IMPEXPM_11640

:IMPEXPM_11620
Car.MarkAsNoLongerNeeded($imported_cars(4@,5i))
$imported_cars(4@,5i) = -1

:IMPEXPM_11640
goto @IMPEXPM_11667

:IMPEXPM_11647
Car.MarkAsNoLongerNeeded($imported_cars(4@,5i))
$imported_cars(4@,5i) = -1

:IMPEXPM_11667
4@ += 1
goto @IMPEXPM_11462

:IMPEXPM_11681
return 

:IMPEXPM_11683
4@ = 0

:IMPEXPM_11690
if 
  10 > 4@
goto_if_false @IMPEXPM_11872
if 
  $current_wanted_list == 0
goto_if_false @IMPEXPM_11741
set_lvar_int_to_lvar_int 5@ = 4@
5@ += 0

:IMPEXPM_11741
if 
  $current_wanted_list == 1
goto_if_false @IMPEXPM_11774
set_lvar_int_to_lvar_int 5@ = 4@
5@ += 10

:IMPEXPM_11774
if 
  $current_wanted_list == 2
goto_if_false @IMPEXPM_11807
set_lvar_int_to_lvar_int 5@ = 4@
5@ += 20

:IMPEXPM_11807
if 
  $current_wanted_car_status(4@,10i) == 0
goto_if_false @IMPEXPM_11847
CarGenerator.Switch($2829(5@,30i), 101)
goto @IMPEXPM_11858

:IMPEXPM_11847
CarGenerator.Switch($2829(5@,30i), 0)

:IMPEXPM_11858
4@ += 1
goto @IMPEXPM_11690

:IMPEXPM_11872
return 

:IMPEXPM_11874
switch_start 6@ {numCases} 42 {hasDefaultCase} 0 {defaultLabel} @IMPEXPM_13121 {caseNum1} 402 {caseLabel1} @IMPEXPM_12281 {caseNum2} 404 {caseLabel2} @IMPEXPM_13100 {caseNum3} 405 {caseLabel3} @IMPEXPM_12302 {caseNum4} 409 {caseLabel4} @IMPEXPM_12428 {caseNum5} 411 {caseLabel5} @IMPEXPM_12323 {caseNum6} 415 {caseLabel6} @IMPEXPM_12554 {caseNum7} 424 {caseLabel7} @IMPEXPM_12911
switch_continued 429 {caseLabel1} @IMPEXPM_12827 {caseNum2} 434 {caseLabel2} @IMPEXPM_13016 {caseNum3} 439 {caseLabel3} @IMPEXPM_12596 {caseNum4} 444 {caseLabel4} @IMPEXPM_12491 {caseNum5} 445 {caseLabel5} @IMPEXPM_12365 {caseNum6} 451 {caseLabel6} @IMPEXPM_12848 {caseNum7} 463 {caseLabel7} @IMPEXPM_12953 {caseNum8} 468 {caseLabel8} @IMPEXPM_12407 {caseNum9} 470 {caseLabel9} @IMPEXPM_12386
switch_continued 475 {caseLabel1} @IMPEXPM_12722 {caseNum2} 477 {caseLabel2} @IMPEXPM_12995 {caseNum3} 480 {caseLabel3} @IMPEXPM_12638 {caseNum4} 483 {caseLabel4} @IMPEXPM_12344 {caseNum5} 489 {caseLabel5} @IMPEXPM_12575 {caseNum6} 496 {caseLabel6} @IMPEXPM_12680 {caseNum7} 500 {caseLabel7} @IMPEXPM_12974 {caseNum8} 506 {caseLabel8} @IMPEXPM_12806 {caseNum9} 508 {caseLabel9} @IMPEXPM_12869
switch_continued 514 {caseLabel1} @IMPEXPM_12617 {caseNum2} 521 {caseLabel2} @IMPEXPM_12743 {caseNum3} 522 {caseLabel3} @IMPEXPM_12512 {caseNum4} 533 {caseLabel4} @IMPEXPM_12449 {caseNum5} 534 {caseLabel5} @IMPEXPM_12470 {caseNum6} 535 {caseLabel6} @IMPEXPM_12659 {caseNum7} 536 {caseLabel7} @IMPEXPM_12932 {caseNum8} 539 {caseLabel8} @IMPEXPM_13058 {caseNum9} 541 {caseLabel9} @IMPEXPM_13079
switch_continued 555 {caseLabel1} @IMPEXPM_12533 {caseNum2} 559 {caseLabel2} @IMPEXPM_12260 {caseNum3} 568 {caseLabel3} @IMPEXPM_12785 {caseNum4} 573 {caseLabel4} @IMPEXPM_13037 {caseNum5} 579 {caseLabel5} @IMPEXPM_12890 {caseNum6} 580 {caseLabel6} @IMPEXPM_12701 {caseNum7} 587 {caseLabel7} @IMPEXPM_12764 {caseNum8} 589 {caseLabel8} @IMPEXPM_12239 {caseNum9} -1 {caseLabel9} @IMPEXPM_13121

:IMPEXPM_12239
set_var_text_label s$impexp_text_label = 'CLUB'
goto @IMPEXPM_13121

:IMPEXPM_12260
set_var_text_label s$impexp_text_label = 'JESTER'
goto @IMPEXPM_13121

:IMPEXPM_12281
set_var_text_label s$impexp_text_label = 'BUFFALO'
goto @IMPEXPM_13121

:IMPEXPM_12302
set_var_text_label s$impexp_text_label = 'SENTINL'
goto @IMPEXPM_13121

:IMPEXPM_12323
set_var_text_label s$impexp_text_label = 'INFERNU'
goto @IMPEXPM_13121

:IMPEXPM_12344
set_var_text_label s$impexp_text_label = 'CAMPER'
goto @IMPEXPM_13121

:IMPEXPM_12365
set_var_text_label s$impexp_text_label = 'ADMIRAL'
goto @IMPEXPM_13121

:IMPEXPM_12386
set_var_text_label s$impexp_text_label = 'PATRIOT'
goto @IMPEXPM_13121

:IMPEXPM_12407
set_var_text_label s$impexp_text_label = 'SANCHEZ'
goto @IMPEXPM_13121

:IMPEXPM_12428
set_var_text_label s$impexp_text_label = 'STRETCH'
goto @IMPEXPM_13121

:IMPEXPM_12449
set_var_text_label s$impexp_text_label = 'FELTZER'
goto @IMPEXPM_13121

:IMPEXPM_12470
set_var_text_label s$impexp_text_label = 'REMING'
goto @IMPEXPM_13121

:IMPEXPM_12491
set_var_text_label s$impexp_text_label = 'MONSTER'
goto @IMPEXPM_13121

:IMPEXPM_12512
set_var_text_label s$impexp_text_label = 'NRG500'
goto @IMPEXPM_13121

:IMPEXPM_12533
set_var_text_label s$impexp_text_label = 'WINDSOR'
goto @IMPEXPM_13121

:IMPEXPM_12554
set_var_text_label s$impexp_text_label = 'CHEETAH'
goto @IMPEXPM_13121

:IMPEXPM_12575
set_var_text_label s$impexp_text_label = 'RANCHER'
goto @IMPEXPM_13121

:IMPEXPM_12596
set_var_text_label s$impexp_text_label = 'STALION'
goto @IMPEXPM_13121

:IMPEXPM_12617
set_var_text_label s$impexp_text_label = 'PETROL'
goto @IMPEXPM_13121

:IMPEXPM_12638
set_var_text_label s$impexp_text_label = 'COMET'
goto @IMPEXPM_13121

:IMPEXPM_12659
set_var_text_label s$impexp_text_label = 'SLAMVAN'
goto @IMPEXPM_13121

:IMPEXPM_12680
set_var_text_label s$impexp_text_label = 'BLISTAC'
goto @IMPEXPM_13121

:IMPEXPM_12701
set_var_text_label s$impexp_text_label = 'STAFFRD'
goto @IMPEXPM_13121

:IMPEXPM_12722
set_var_text_label s$impexp_text_label = 'SABRE'
goto @IMPEXPM_13121

:IMPEXPM_12743
set_var_text_label s$impexp_text_label = 'FCR900'
goto @IMPEXPM_13121

:IMPEXPM_12764
set_var_text_label s$impexp_text_label = 'EUROS'
goto @IMPEXPM_13121

:IMPEXPM_12785
set_var_text_label s$impexp_text_label = 'BANDITO'
goto @IMPEXPM_13121

:IMPEXPM_12806
set_var_text_label s$impexp_text_label = 'SUPERGT'
goto @IMPEXPM_13121

:IMPEXPM_12827
set_var_text_label s$impexp_text_label = 'BANSHEE'
goto @IMPEXPM_13121

:IMPEXPM_12848
set_var_text_label s$impexp_text_label = 'TURISMO'
goto @IMPEXPM_13121

:IMPEXPM_12869
set_var_text_label s$impexp_text_label = 'JOURNEY'
goto @IMPEXPM_13121

:IMPEXPM_12890
set_var_text_label s$impexp_text_label = 'HUNTLEY'
goto @IMPEXPM_13121

:IMPEXPM_12911
set_var_text_label s$impexp_text_label = 'BFINJC'
goto @IMPEXPM_13121

:IMPEXPM_12932
set_var_text_label s$impexp_text_label = 'BLADE'
goto @IMPEXPM_13121

:IMPEXPM_12953
set_var_text_label s$impexp_text_label = 'FREEWAY'
goto @IMPEXPM_13121

:IMPEXPM_12974
set_var_text_label s$impexp_text_label = 'MESAA'
goto @IMPEXPM_13121

:IMPEXPM_12995
set_var_text_label s$impexp_text_label = 'ZR350'
goto @IMPEXPM_13121

:IMPEXPM_13016
set_var_text_label s$impexp_text_label = 'HOTKNIF'
goto @IMPEXPM_13121

:IMPEXPM_13037
set_var_text_label s$impexp_text_label = 'DUNE'
goto @IMPEXPM_13121

:IMPEXPM_13058
set_var_text_label s$impexp_text_label = 'VORTEX'
goto @IMPEXPM_13121

:IMPEXPM_13079
set_var_text_label s$impexp_text_label = 'BULLET'
goto @IMPEXPM_13121

:IMPEXPM_13100
set_var_text_label s$impexp_text_label = 'PEREN'
goto @IMPEXPM_13121

:IMPEXPM_13121
return 

:IMPEXPM_13123
switch_start $current_import_car_list($impexp_selected_car,6i) {numCases} 19 {hasDefaultCase} 1 {defaultLabel} @IMPEXPM_14676 {caseNum1} 405 {caseLabel1} @IMPEXPM_13644 {caseNum2} 411 {caseLabel2} @IMPEXPM_14075 {caseNum3} 415 {caseLabel3} @IMPEXPM_14023 {caseNum4} 424 {caseLabel4} @IMPEXPM_14333 {caseNum5} 429 {caseLabel5} @IMPEXPM_14206 {caseNum6} 470 {caseLabel6} @IMPEXPM_14359 {caseNum7} 475 {caseLabel7} @IMPEXPM_13997
switch_continued 480 {caseLabel1} @IMPEXPM_14049 {caseNum2} 483 {caseLabel2} @IMPEXPM_13771 {caseNum3} 489 {caseLabel3} @IMPEXPM_14101 {caseNum4} 496 {caseLabel4} @IMPEXPM_14127 {caseNum5} 506 {caseLabel5} @IMPEXPM_13391 {caseNum6} 533 {caseLabel6} @IMPEXPM_13796 {caseNum7} 536 {caseLabel7} @IMPEXPM_14523 {caseNum8} 541 {caseLabel8} @IMPEXPM_14549 {caseNum9} 555 {caseLabel9} @IMPEXPM_13417
switch_continued 559 {caseLabel1} @IMPEXPM_13443 {caseNum2} 587 {caseLabel2} @IMPEXPM_13365 {caseNum3} 589 {caseLabel3} @IMPEXPM_13339 {caseNum4} -1 {caseLabel4} @IMPEXPM_14690 {caseNum5} -1 {caseLabel5} @IMPEXPM_14690 {caseNum6} -1 {caseLabel6} @IMPEXPM_14690 {caseNum7} -1 {caseLabel7} @IMPEXPM_14690 {caseNum8} -1 {caseLabel8} @IMPEXPM_14690 {caseNum9} -1 {caseLabel9} @IMPEXPM_14690

:IMPEXPM_13339
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "N13_LLF_")
goto @IMPEXPM_14690

:IMPEXPM_13365
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "_DS3MP__")
goto @IMPEXPM_14690

:IMPEXPM_13391
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "_CMACD1_")
goto @IMPEXPM_14690

:IMPEXPM_13417
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "__C0S___")
goto @IMPEXPM_14690

:IMPEXPM_13443
4@ = Math.RandomIntInRange(0, 5)
if 
  4@ == 0
goto_if_false @IMPEXPM_13489
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "__SWAV__")

:IMPEXPM_13489
if 
  4@ == 1
goto_if_false @IMPEXPM_13526
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "_GR01N__")

:IMPEXPM_13526
if 
  4@ == 2
goto_if_false @IMPEXPM_13563
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "_G_MAN__")

:IMPEXPM_13563
if 
  4@ == 3
goto_if_false @IMPEXPM_13600
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "_X2_GAV_")

:IMPEXPM_13600
if 
  4@ == 4
goto_if_false @IMPEXPM_13637
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "__G3PO__")

:IMPEXPM_13637
goto @IMPEXPM_14690

:IMPEXPM_13644
4@ = Math.RandomIntInRange(0, 3)
if 
  4@ == 0
goto_if_false @IMPEXPM_13690
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "D0N_D0N_")

:IMPEXPM_13690
if 
  4@ == 1
goto_if_false @IMPEXPM_13727
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "_D0_NNY_")

:IMPEXPM_13727
if 
  4@ == 2
goto_if_false @IMPEXPM_13764
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "TH3_D0N_")

:IMPEXPM_13764
goto @IMPEXPM_14690

:IMPEXPM_13771
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "SJM1985")
goto @IMPEXPM_14690

:IMPEXPM_13796
4@ = Math.RandomIntInRange(0, 5)
if 
  4@ == 0
goto_if_false @IMPEXPM_13842
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "DR_DR_F_")

:IMPEXPM_13842
if 
  4@ == 1
goto_if_false @IMPEXPM_13879
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "433_ADF_")

:IMPEXPM_13879
if 
  4@ == 2
goto_if_false @IMPEXPM_13916
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "DR_F_MBE")

:IMPEXPM_13916
if 
  4@ == 3
goto_if_false @IMPEXPM_13953
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "GPP4YR0L")

:IMPEXPM_13953
if 
  4@ == 4
goto_if_false @IMPEXPM_13990
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "ANN_F3RG")

:IMPEXPM_13990
goto @IMPEXPM_14690

:IMPEXPM_13997
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "__FR4Z__")
goto @IMPEXPM_14690

:IMPEXPM_14023
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "_IMY_AK_")
goto @IMPEXPM_14690

:IMPEXPM_14049
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "_L0LLY__")
goto @IMPEXPM_14690

:IMPEXPM_14075
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "_J_L33S_")
goto @IMPEXPM_14690

:IMPEXPM_14101
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "S4_LIJON")
goto @IMPEXPM_14690

:IMPEXPM_14127
4@ = Math.RandomIntInRange(0, 2)
if 
  4@ == 0
goto_if_false @IMPEXPM_14180
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "DI5CO5TU")
goto @IMPEXPM_14199

:IMPEXPM_14180
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "SM53_NUV")

:IMPEXPM_14199
goto @IMPEXPM_14690

:IMPEXPM_14206
4@ = Math.RandomIntInRange(0, 3)
if 
  4@ == 0
goto_if_false @IMPEXPM_14252
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "J3NYTAL5")

:IMPEXPM_14252
if 
  4@ == 1
goto_if_false @IMPEXPM_14289
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "_J3_NCF_")

:IMPEXPM_14289
if 
  4@ == 2
goto_if_false @IMPEXPM_14326
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "DD0_N4LD")

:IMPEXPM_14326
goto @IMPEXPM_14690

:IMPEXPM_14333
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "LA5H_L3Y")
goto @IMPEXPM_14690

:IMPEXPM_14359
4@ = Math.RandomIntInRange(0, 4)
if 
  4@ == 0
goto_if_false @IMPEXPM_14405
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "AL3X_RES")

:IMPEXPM_14405
if 
  4@ == 1
goto_if_false @IMPEXPM_14442
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "R_F3RG1E")

:IMPEXPM_14442
if 
  4@ == 2
goto_if_false @IMPEXPM_14479
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "H4_NNAHF")

:IMPEXPM_14479
if 
  4@ == 3
goto_if_false @IMPEXPM_14516
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "CL41_RES")

:IMPEXPM_14516
goto @IMPEXPM_14690

:IMPEXPM_14523
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "R055_MCL")
goto @IMPEXPM_14690

:IMPEXPM_14549
4@ = Math.RandomIntInRange(0, 4)
if 
  4@ == 0
goto_if_false @IMPEXPM_14595
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "T00_FAST")

:IMPEXPM_14595
if 
  4@ == 1
goto_if_false @IMPEXPM_14632
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "EA_SUCKS")

:IMPEXPM_14632
if 
  4@ == 2
goto_if_false @IMPEXPM_14669
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "FUCK_Y0U")

:IMPEXPM_14669
goto @IMPEXPM_14690

:IMPEXPM_14676
IMPEXPM_14692()
goto @IMPEXPM_14690

:IMPEXPM_14690
return 

:IMPEXPM_14692
4@ = Math.RandomIntInRange(0, 100)
switch_start 4@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @IMPEXPM_15141 {caseNum1} 0 {caseLabel1} @IMPEXPM_14829 {caseNum2} 1 {caseLabel2} @IMPEXPM_14855 {caseNum3} 2 {caseLabel3} @IMPEXPM_14881 {caseNum4} 3 {caseLabel4} @IMPEXPM_14907 {caseNum5} 4 {caseLabel5} @IMPEXPM_14933 {caseNum6} 5 {caseLabel6} @IMPEXPM_14959 {caseNum7} 6 {caseLabel7} @IMPEXPM_14985
switch_continued 7 {caseLabel1} @IMPEXPM_15011 {caseNum2} 8 {caseLabel2} @IMPEXPM_15037 {caseNum3} 9 {caseLabel3} @IMPEXPM_15063 {caseNum4} 10 {caseLabel4} @IMPEXPM_15089 {caseNum5} 11 {caseLabel5} @IMPEXPM_15115 {caseNum6} -1 {caseLabel6} @IMPEXPM_15141 {caseNum7} -1 {caseLabel7} @IMPEXPM_15141 {caseNum8} -1 {caseLabel8} @IMPEXPM_15141 {caseNum9} -1 {caseLabel9} @IMPEXPM_15141

:IMPEXPM_14829
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "R4N_G3RS")
goto @IMPEXPM_15141

:IMPEXPM_14855
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "GL4S_G0W")
goto @IMPEXPM_15141

:IMPEXPM_14881
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "_ARRAN__")
goto @IMPEXPM_15141

:IMPEXPM_14907
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "AM0_RUS0")
goto @IMPEXPM_15141

:IMPEXPM_14933
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "_AMAT0__")
goto @IMPEXPM_15141

:IMPEXPM_14959
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "_GA_ZZA_")
goto @IMPEXPM_15141

:IMPEXPM_14985
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "ZID_ANE_")
goto @IMPEXPM_15141

:IMPEXPM_15011
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "MC_C01ST")
goto @IMPEXPM_15141

:IMPEXPM_15037
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "BAW_BAG_")
goto @IMPEXPM_15141

:IMPEXPM_15063
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "BR0_D1E_")
goto @IMPEXPM_15141

:IMPEXPM_15089
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "MR_J0BBY")
goto @IMPEXPM_15141

:IMPEXPM_15115
Car.CustomPlateForNextCar($current_import_car_list($impexp_selected_car,6i), "BR0_DICK")
goto @IMPEXPM_15141

:IMPEXPM_15141
return 

:IMPEXPC
script_name 'IMPEXPC'

:IMPEXPC_11
wait 5000
if 
  Player.IsPlaying($player1)
goto_if_false @IMPEXPC_306
if 
  $onmission == 0
goto_if_false @IMPEXPC_306
if 
  $import_export_is_active == 1
goto_if_false @IMPEXPC_306
if and
  not Text.IsHelpMessageBeingDisplayed
  not Text.IsMessageBeingDisplayed
goto_if_false @IMPEXPC_306
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @IMPEXPC_281
if 
  0@ == 0
goto_if_false @IMPEXPC_274
$car = Char.StoreCarIsInNoSave($scplayer)
1@ = Car.GetModel($car)
2@ = 0
3@ = 0

:IMPEXPC_147
if 
  10 > 2@
goto_if_false @IMPEXPC_238
if 
  is_int_var_equal_to_int_lvar $current_wanted_car_list(2@,10i) == 1@
goto_if_false @IMPEXPC_224
if 
  $current_wanted_car_status(2@,10i) == 0
goto_if_false @IMPEXPC_224
3@ = 1
2@ = 10

:IMPEXPC_224
2@ += 1
goto @IMPEXPC_147

:IMPEXPC_238
if 
  3@ == 1
goto_if_false @IMPEXPC_274
Text.PrintHelp('IE22')
0@ = 1

:IMPEXPC_274
goto @IMPEXPC_306

:IMPEXPC_281
if 
  0@ == 1
goto_if_false @IMPEXPC_306
0@ = 0

:IMPEXPC_306
goto @IMPEXPC_11

:APCHECK
script_name 'APCHECK'
set_deatharrest_state 0
$iFlagOpenAirportGates = 0
$iAPgateSF1 = Object.CreateNoOffset(#WS_APGATE, -1543.742, -432.703, 6.039)
Object.SetHeading($iAPgateSF1, -45.0)
Object.DontRemove($iAPgateSF1)
$iAPgateSF2 = Object.CreateNoOffset(#WS_APGATE, -1547.625, -428.82, 6.039)
Object.SetHeading($iAPgateSF2, -45.0)
Object.DontRemove($iAPgateSF2)
$iAPgateSF1b = Object.CreateNoOffset(#WS_APGATE, -1222.953, 53.826, 14.134)
Object.SetHeading($iAPgateSF1b, -135.0)
Object.DontRemove($iAPgateSF1b)
$iAPgateSF2b = Object.CreateNoOffset(#WS_APGATE, -1218.206, 68.883, 14.134)
Object.SetHeading($iAPgateSF2b, -135.0)
Object.DontRemove($iAPgateSF2b)
$iAPgateLA1 = Object.CreateNoOffset(#WS_APGATE, 1964.342, -2189.776, 13.533)
Object.SetHeading($iAPgateLA1, 180.0)
Object.DontRemove($iAPgateLA1)
$iAPgateLA2 = Object.CreateNoOffset(#WS_APGATE, 1958.851, -2189.777, 13.553)
Object.SetHeading($iAPgateLA2, 180.0)
Object.DontRemove($iAPgateLA2)
$iAPgateLV1 = Object.CreateNoOffset(#WS_APGATE, 1704.777, 1605.165, 10.058)
Object.SetHeading($iAPgateLV1, 73.0)
Object.DontRemove($iAPgateLV1)
$iAPgateLV2 = Object.CreateNoOffset(#WS_APGATE, 1706.364, 1610.422, 10.058)
Object.SetHeading($iAPgateLV2, 73.0)
Object.DontRemove($iAPgateLV2)

:APCHECK_318
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @APCHECK_895
if 
  Char.LocateAnyMeans3D($scplayer, -1540.66, -435.786, 6.039, 65.0, 65.0, 10.0, False)
goto_if_false @APCHECK_537
if 
  $flag_is_farlie3_running == 1
goto_if_false @APCHECK_468
$iFlagOpenAirportGates = 1
start_new_script @APGUARD -1 
Object.SetCoordinates($iAPgateSF1, -1540.66, -435.786, 6.039)
Object.SetCoordinates($iAPgateSF2, -1550.709, -425.736, 6.039)
goto @APCHECK_530

:APCHECK_468
start_new_script @APGUARD 1 
start_new_script @APGATE $iAPgateSF1 -1540.66 -435.786 6.039 
start_new_script @APGATE $iAPgateSF2 -1550.709 -425.736 6.039 

:APCHECK_530
goto @APCHECK_1087

:APCHECK_537
if 
  Char.LocateAnyMeans3D($scplayer, 1968.697, -2189.776, 13.553, 65.0, 65.0, 10.0, False)
goto_if_false @APCHECK_654
start_new_script @APGUARD 2 
start_new_script @APGATE $iAPgateLA1 1968.697 -2189.776 13.553 
start_new_script @APGATE $iAPgateLA2 1954.571 -2189.777 13.553 
goto @APCHECK_1547

:APCHECK_654
if 
  Char.LocateAnyMeans3D($scplayer, 1703.4, 1600.518, 10.058, 65.0, 65.0, 10.0, False)
goto_if_false @APCHECK_771
start_new_script @APGUARD 3 
start_new_script @APGATE $iAPgateLV1 1703.4 1600.518 10.058 
start_new_script @APGATE $iAPgateLV2 1707.722 1614.937 10.058 
goto @APCHECK_1777

:APCHECK_771
if 
  Char.LocateAnyMeans3D($scplayer, -1226.162, 65.3807, 13.0375, 65.0, 65.0, 10.0, False)
goto_if_false @APCHECK_888
start_new_script @APGUARD 4 
start_new_script @APGATE $iAPgateSF1b -1226.59 50.189 14.134 
start_new_script @APGATE $iAPgateSF2b -1214.392 72.697 14.134 
goto @APCHECK_1317

:APCHECK_888
goto @APCHECK_1080

:APCHECK_895
terminate_all_scripts_with_this_name 'APGATE'
Object.SetCoordinates($iAPgateSF1, -1543.742, -432.703, 6.039)
Object.SetCoordinates($iAPgateSF2, -1547.625, -428.82, 6.039)
Object.SetCoordinates($iAPgateSF1b, -1222.953, 53.826, 14.134)
Object.SetCoordinates($iAPgateSF2b, -1218.206, 68.883, 14.134)
Object.SetCoordinates($iAPgateLA1, 1964.342, -2189.776, 13.533)
Object.SetCoordinates($iAPgateLA2, 1958.851, -2189.777, 13.553)
Object.SetCoordinates($iAPgateLV1, 1704.777, 1605.165, 10.058)
Object.SetCoordinates($iAPgateLV2, 1706.364, 1610.422, 10.058)
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1080
goto @APCHECK_318

:APCHECK_1087
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @APCHECK_1245
if 
  not Char.LocateAnyMeans3D($scplayer, -1540.66, -435.786, 6.039, 66.0, 66.0, 10.0, False)
goto_if_false @APCHECK_1238
if 
  $onmission == 0
goto_if_false @APCHECK_1238
terminate_all_scripts_with_this_name 'APGATE'
Object.SetCoordinates($iAPgateSF1, -1543.742, -432.703, 6.039)
Object.SetCoordinates($iAPgateSF2, -1547.625, -428.82, 6.039)
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1238
goto @APCHECK_1310

:APCHECK_1245
terminate_all_scripts_with_this_name 'APGATE'
Object.SetCoordinates($iAPgateSF1, -1543.742, -432.703, 6.039)
Object.SetCoordinates($iAPgateSF2, -1547.625, -428.82, 6.039)
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1310
goto @APCHECK_1087

:APCHECK_1317
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @APCHECK_1475
if 
  not Char.LocateAnyMeans3D($scplayer, -1226.162, 65.3807, 13.0375, 66.0, 66.0, 10.0, False)
goto_if_false @APCHECK_1468
if 
  $onmission == 0
goto_if_false @APCHECK_1468
terminate_all_scripts_with_this_name 'APGATE'
Object.SetCoordinates($iAPgateSF1b, -1222.953, 53.826, 14.134)
Object.SetCoordinates($iAPgateSF2b, -1218.206, 68.883, 14.134)
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1468
goto @APCHECK_1540

:APCHECK_1475
terminate_all_scripts_with_this_name 'APGATE'
Object.SetCoordinates($iAPgateSF1b, -1222.953, 53.826, 14.134)
Object.SetCoordinates($iAPgateSF2b, -1218.206, 68.883, 14.134)
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1540
goto @APCHECK_1317

:APCHECK_1547
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @APCHECK_1705
if 
  not Char.LocateAnyMeans3D($scplayer, 1968.697, -2189.776, 13.553, 66.0, 66.0, 10.0, False)
goto_if_false @APCHECK_1698
if 
  $onmission == 0
goto_if_false @APCHECK_1698
terminate_all_scripts_with_this_name 'APGATE'
Object.SetCoordinates($iAPgateLA1, 1964.342, -2189.776, 13.533)
Object.SetCoordinates($iAPgateLA2, 1958.851, -2189.777, 13.553)
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1698
goto @APCHECK_1770

:APCHECK_1705
terminate_all_scripts_with_this_name 'APGATE'
Object.SetCoordinates($iAPgateLA1, 1964.342, -2189.776, 13.533)
Object.SetCoordinates($iAPgateLA2, 1958.851, -2189.777, 13.553)
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1770
goto @APCHECK_1547

:APCHECK_1777
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @APCHECK_1935
if 
  not Char.LocateAnyMeans3D($scplayer, 1703.4, 1600.518, 10.058, 66.0, 66.0, 10.0, False)
goto_if_false @APCHECK_1928
if 
  $onmission == 0
goto_if_false @APCHECK_1928
terminate_all_scripts_with_this_name 'APGATE'
Object.SetCoordinates($iAPgateLV1, 1704.777, 1605.165, 10.058)
Object.SetCoordinates($iAPgateLV2, 1706.364, 1610.422, 10.058)
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1928
goto @APCHECK_2000

:APCHECK_1935
terminate_all_scripts_with_this_name 'APGATE'
Object.SetCoordinates($iAPgateLV1, 1704.777, 1605.165, 10.058)
Object.SetCoordinates($iAPgateLV2, 1706.364, 1610.422, 10.058)
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_2000
goto @APCHECK_1777
terminate_this_script 

:APGUARD
script_name 'APGUARD'
3@ = 0

:APGUARD_18
if 
  not Streaming.HasModelLoaded(71)
goto_if_false @APGUARD_48
Streaming.RequestModel(71)
wait 0
goto @APGUARD_18

:APGUARD_48
switch_start 0@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @APGUARD_333 {caseNum1} -1 {caseLabel1} @APGUARD_111 {caseNum2} 1 {caseLabel2} @APGUARD_169 {caseNum3} 2 {caseLabel3} @APGUARD_210 {caseNum4} 3 {caseLabel4} @APGUARD_251 {caseNum5} 4 {caseLabel5} @APGUARD_292 {caseNum6} -1 {caseLabel6} @APGUARD_333 {caseNum7} -1 {caseLabel7} @APGUARD_333

:APGUARD_111
1@ = Char.Create(PedType.CivMale, 71, -1544.88, -441.1089, 5.0068)
Char.SetHeading(1@, 7.3631)
Char.SetMoney(1@, 0)
Char.DontRemove(1@)
Task.Dead(1@)
goto @APGUARD_333

:APGUARD_169
1@ = Char.Create(PedType.CivMale, 71, -1544.396, -443.2464, 5.045)
Char.SetHeading(1@, 54.6458)
goto @APGUARD_333

:APGUARD_210
1@ = Char.Create(PedType.CivMale, 71, 1955.809, -2181.541, 12.5865)
Char.SetHeading(1@, 272.1978)
goto @APGUARD_333

:APGUARD_251
1@ = Char.Create(PedType.CivMale, 71, 1717.202, 1617.376, 9.1924)
Char.SetHeading(1@, 186.0379)
goto @APGUARD_333

:APGUARD_292
1@ = Char.Create(PedType.CivMale, 71, -1229.438, 55.3906, 13.2328)
Char.SetHeading(1@, 301.4596)
goto @APGUARD_333

:APGUARD_333
Char.SetDecisionMaker(1@, 65543)
Char.SetOnlyDamagedByPlayer(1@, True)
Char.DontRemove(1@)

:APGUARD_355
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @APGUARD_542
if 
  not Char.IsDead(1@)
goto_if_false @APGUARD_528
if 
  not Char.LocateAnyMeansChar3D($scplayer, 1@, 67.0, 67.0, 10.0, False)
goto_if_false @APGUARD_434
APGUARD_883()

:APGUARD_434
if 
  not Char.IsDead(1@)
goto_if_false @APGUARD_493
if 
  Char.LocateAnyMeansChar3D($scplayer, 1@, 15.0, 15.0, 15.0, False)
goto_if_false @APGUARD_493
APGUARD_556()

:APGUARD_493
if 
  Char.HasBeenDamagedByChar(1@, $scplayer)
goto_if_false @APGUARD_521
Char.SetRelationship(1@, RelationshipType.Hate, PedType.Player1)

:APGUARD_521
goto @APGUARD_535

:APGUARD_528
APGUARD_883()

:APGUARD_535
goto @APGUARD_549

:APGUARD_542
APGUARD_883()

:APGUARD_549
goto @APGUARD_355

:APGUARD_556
if 
  Char.LocateAnyMeansChar3D($scplayer, 1@, 5.0, 5.0, 3.0, False)
goto_if_false @APGUARD_881
2@ = Stat.GetInt(StatId.FlyingSkill)
if and
  not Char.IsRespondingToEvent(1@, 36)
  is_int_lvar_greater_or_equal_to_constant 2@ >= 180
goto_if_false @APGUARD_757
if 
  3@ == 0
goto_if_false @APGUARD_750
3@ = Math.RandomIntInRange(1, 100)
if 
  3@ > 50
goto_if_false @APGUARD_700
set_var_text_label s$audio_string = 'G_OPEN1'
set_var_int_to_constant $audio_sound_file = 24402
goto @APGUARD_722

:APGUARD_700
set_var_text_label s$audio_string = 'G_OPEN2'
set_var_int_to_constant $audio_sound_file = 24403

:APGUARD_722
start_new_script @AUDIOL 1@ 1 1 2 0 
3@ = 1
return 

:APGUARD_750
goto @APGUARD_881

:APGUARD_757
if 
  3@ == 0
goto_if_false @APGUARD_881
3@ = Math.RandomIntInRange(1, 100)
if 
  3@ > 50
goto_if_false @APGUARD_831
set_var_text_label s$audio_string = 'G_CLOS1'
set_var_int_to_constant $audio_sound_file = 24400
goto @APGUARD_853

:APGUARD_831
set_var_text_label s$audio_string = 'G_CLOS2'
set_var_int_to_constant $audio_sound_file = 24401

:APGUARD_853
start_new_script @AUDIOL 1@ 1 1 2 0 
3@ = 1
return 

:APGUARD_881
return 

:APGUARD_883
if 
  Player.IsPlaying($player1)
goto_if_false @APGUARD_935
if 
  $onmission == 0
goto_if_false @APGUARD_928
Char.Delete(1@)
Streaming.MarkModelAsNoLongerNeeded(71)
terminate_this_script 

:APGUARD_928
goto @APGUARD_946

:APGUARD_935
Char.Delete(1@)
Streaming.MarkModelAsNoLongerNeeded(71)
terminate_this_script 

:APGUARD_946
return 

:APGATE
script_name 'APGATE'
5@ = 0
6@ = 0
4@ = 0
if 
  4@ > 0
goto_if_false @APGATE_72
0@ = Object.CreateNoOffset(#WS_APGATE, 0.0, 0.0, 0.0)

:APGATE_72
wait 0
if and
  Object.DoesExist(0@)
  Player.IsPlaying($player1)
goto_if_false @APGATE_104
APGATE_111()

:APGATE_104
goto @APGATE_72

:APGATE_111
switch_start 5@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @APGATE_188 {caseNum1} 0 {caseLabel1} @APGATE_174 {caseNum2} -1 {caseLabel2} @APGATE_188 {caseNum3} -1 {caseLabel3} @APGATE_188 {caseNum4} -1 {caseLabel4} @APGATE_188 {caseNum5} -1 {caseLabel5} @APGATE_188 {caseNum6} -1 {caseLabel6} @APGATE_188 {caseNum7} -1 {caseLabel7} @APGATE_188

:APGATE_174
APGATE_190()
goto @APGATE_188

:APGATE_188
return 

:APGATE_190
switch_start 6@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @APGATE_1046 {caseNum1} 0 {caseLabel1} @APGATE_253 {caseNum2} 1 {caseLabel2} @APGATE_692 {caseNum3} 2 {caseLabel3} @APGATE_828 {caseNum4} 3 {caseLabel4} @APGATE_910 {caseNum5} -1 {caseLabel5} @APGATE_1046 {caseNum6} -1 {caseLabel6} @APGATE_1046 {caseNum7} -1 {caseLabel7} @APGATE_1046

:APGATE_253
10@ = Stat.GetInt(StatId.FlyingSkill)
if 
  is_int_lvar_greater_or_equal_to_constant 10@ >= 180
goto_if_false @APGATE_362
if 
  Char.LocateAnyMeansObject2D($scplayer, 0@, 10.0, 10.0, False)
goto_if_false @APGATE_355
11@, 14@, 17@ = Object.GetCoordinates(0@)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @APGATE_348
Audio.ReportMissionAudioEventAtObject(0@, 1100)

:APGATE_348
6@ += 1

:APGATE_355
goto @APGATE_685

:APGATE_362
if 
  $iFlagOpenAirportGates > 0
goto_if_false @APGATE_462
if 
  Char.LocateAnyMeansObject2D($scplayer, 0@, 10.0, 10.0, False)
goto_if_false @APGATE_455
11@, 14@, 17@ = Object.GetCoordinates(0@)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @APGATE_448
Audio.ReportMissionAudioEventAtObject(0@, 1100)

:APGATE_448
6@ += 1

:APGATE_455
goto @APGATE_685

:APGATE_462
11@, 14@, 17@ = Object.GetOffsetInWorldCoords(0@, 0.0, 5.2, 0.0)
if 
  Char.LocateAnyMeans3D($scplayer, 11@, 14@, 17@, 4.5, 4.5, 4.5, False)
goto_if_false @APGATE_584
11@, 14@, 17@ = Object.GetCoordinates(0@)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @APGATE_570
Audio.ReportMissionAudioEventAtObject(0@, 1100)

:APGATE_570
6@ += 1
goto @APGATE_685

:APGATE_584
11@, 14@, 17@ = Object.GetOffsetInWorldCoords(0@, 0.0, -3.0, 0.0)
if and
  Char.LocateAnyMeans3D($scplayer, 11@, 14@, 17@, 3.0, 3.0, 3.0, False)
  180 >= 10@
  not Text.IsThisHelpMessageBeingDisplayed('AP_0003')
goto_if_false @APGATE_685
Text.PrintHelp('AP_0003')

:APGATE_685
goto @APGATE_1046

:APGATE_692
APGATE_1048()
if 
  Object.Slide(0@, 1@, 2@, 3@, 13@, 16@, 19@, True)
goto_if_false @APGATE_821
if 
  Object.Locate3D(0@, 1@, 2@, 3@, 0.1, 0.1, 0.1, False)
goto_if_false @APGATE_821
Object.SetCoordinates(0@, 1@, 2@, 3@)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @APGATE_814
Audio.ReportMissionAudioEventAtObject(0@, 1101)

:APGATE_814
6@ += 1

:APGATE_821
goto @APGATE_1046

:APGATE_828
if 
  not Char.LocateAnyMeansObject2D($scplayer, 0@, 20.0, 20.0, False)
goto_if_false @APGATE_903
12@, 15@, 18@ = Object.GetCoordinates(0@)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @APGATE_896
Audio.ReportMissionAudioEventAtObject(0@, 1100)

:APGATE_896
6@ += 1

:APGATE_903
goto @APGATE_1046

:APGATE_910
APGATE_1048()
if 
  Object.Slide(0@, 11@, 14@, 17@, 13@, 16@, 19@, True)
goto_if_false @APGATE_1039
if 
  Object.Locate3D(0@, 11@, 14@, 17@, 0.1, 0.1, 0.1, False)
goto_if_false @APGATE_1039
Object.SetCoordinates(0@, 11@, 14@, 17@)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @APGATE_1032
Audio.ReportMissionAudioEventAtObject(0@, 1101)

:APGATE_1032
6@ = 0

:APGATE_1039
goto @APGATE_1046

:APGATE_1046
return 

:APGATE_1048
13@ = Object.GetHeading(0@)
if and
  13@ > 70.0
  75.0 > 13@
goto_if_false @APGATE_1124
13@ = 0.03
16@ = 0.1
19@ = 0.1
goto @APGATE_1154

:APGATE_1124
13@ = 0.1
16@ = 0.1
19@ = 0.1

:APGATE_1154
return 

:GFINIT
script_name 'GFINIT'
$iGFSelfRespect[0] = 30
$iGFLikesPlayer[0] = 15
$iGFDesiredSexAppeal[0] = -100
$iGFRespectGiven[0] = 200
$iGFLikesOnDate[0] = 0
set_global_var_bit_const $iGFLikesOnDate[0] {n} 1
set_global_var_bit_const $iGFLikesOnDate[0] {n} 3
set_global_var_bit_const $iGFLikesOnDate[0] {n} 11
set_global_var_bit_const $iGFLikesOnDate[0] {n} 16
set_global_var_bit_const $iGFLikesOnDate[0] {n} 17
set_global_var_bit_const $iGFLikesOnDate[0] {n} 20
set_global_var_bit_const $iGFLikesOnDate[0] {n} 21
set_global_var_bit_const $iGFLikesOnDate[0] {n} 27
$iGFLikesPlayerTraits[0] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[0] {n} 3
$iGFDiaryOfBusyHours[0] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[0] {n} 6
set_global_var_bit_const $iGFDiaryOfBusyHours[0] {n} 8
set_global_var_bit_const $iGFDiaryOfBusyHours[0] {n} 10
set_global_var_bit_const $iGFDiaryOfBusyHours[0] {n} 12
set_global_var_bit_const $iGFDiaryOfBusyHours[0] {n} 14
$iGFSelfRespect[1] = 45
$iGFLikesPlayer[1] = 0
$iGFDesiredSexAppeal[1] = 60
$iGFRespectGiven[1] = 500
$iGFLikesOnDate[1] = 0
set_global_var_bit_const $iGFLikesOnDate[1] {n} 3
set_global_var_bit_const $iGFLikesOnDate[1] {n} 11
set_global_var_bit_const $iGFLikesOnDate[1] {n} 12
set_global_var_bit_const $iGFLikesOnDate[1] {n} 16
set_global_var_bit_const $iGFLikesOnDate[1] {n} 17
set_global_var_bit_const $iGFLikesOnDate[1] {n} 20
set_global_var_bit_const $iGFLikesOnDate[1] {n} 27
set_global_var_bit_const $iGFLikesOnDate[1] {n} 22
$iGFLikesPlayerTraits[1] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[1] {n} 2
$iGFDiaryOfBusyHours[1] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {n} 12
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {n} 14
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {n} 16
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {n} 18
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {n} 20
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {n} 22
$iGFSelfRespect[2] = 70
$iGFLikesPlayer[2] = 0
$iGFDesiredSexAppeal[2] = 70
$iGFRespectGiven[2] = 700
$iGFLikesOnDate[2] = 0
set_global_var_bit_const $iGFLikesOnDate[2] {n} 5
set_global_var_bit_const $iGFLikesOnDate[2] {n} 14
set_global_var_bit_const $iGFLikesOnDate[2] {n} 13
set_global_var_bit_const $iGFLikesOnDate[2] {n} 15
set_global_var_bit_const $iGFLikesOnDate[2] {n} 18
set_global_var_bit_const $iGFLikesOnDate[2] {n} 28
$iGFLikesPlayerTraits[2] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[2] {n} 3
$iGFDiaryOfBusyHours[2] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[2] {n} 2
set_global_var_bit_const $iGFDiaryOfBusyHours[2] {n} 4
set_global_var_bit_const $iGFDiaryOfBusyHours[2] {n} 6
set_global_var_bit_const $iGFDiaryOfBusyHours[2] {n} 12
$iGFSelfRespect[3] = 60
$iGFLikesPlayer[3] = 0
$iGFDesiredSexAppeal[3] = 45
$iGFRespectGiven[3] = 400
$iGFLikesOnDate[3] = 0
set_global_var_bit_const $iGFLikesOnDate[3] {n} 2
set_global_var_bit_const $iGFLikesOnDate[3] {n} 13
set_global_var_bit_const $iGFLikesOnDate[3] {n} 18
set_global_var_bit_const $iGFLikesOnDate[3] {n} 20
$iGFLikesPlayerTraits[3] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[3] {n} 2
$iGFDiaryOfBusyHours[3] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[3] {n} 6
set_global_var_bit_const $iGFDiaryOfBusyHours[3] {n} 8
set_global_var_bit_const $iGFDiaryOfBusyHours[3] {n} 10
set_global_var_bit_const $iGFDiaryOfBusyHours[3] {n} 12
set_global_var_bit_const $iGFDiaryOfBusyHours[3] {n} 14
$iGFSelfRespect[4] = 50
$iGFLikesPlayer[4] = 0
$iGFDesiredSexAppeal[4] = 50
$iGFRespectGiven[4] = 300
$iGFLikesOnDate[4] = 0
set_global_var_bit_const $iGFLikesOnDate[4] {n} 2
set_global_var_bit_const $iGFLikesOnDate[4] {n} 13
set_global_var_bit_const $iGFLikesOnDate[4] {n} 20
set_global_var_bit_const $iGFLikesOnDate[4] {n} 19
set_global_var_bit_const $iGFLikesOnDate[4] {n} 17
set_global_var_bit_const $iGFLikesOnDate[4] {n} 24
$iGFLikesPlayerTraits[4] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[4] {n} 1
$iGFDiaryOfBusyHours[4] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {n} 2
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {n} 4
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {n} 6
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {n} 8
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {n} 10
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {n} 0
$iGFSelfRespect[5] = 45
$iGFLikesPlayer[5] = 20
$iGFDesiredSexAppeal[5] = 60
$iGFRespectGiven[5] = 400
$iGFLikesOnDate[5] = 0
set_global_var_bit_const $iGFLikesOnDate[5] {n} 5
set_global_var_bit_const $iGFLikesOnDate[5] {n} 3
set_global_var_bit_const $iGFLikesOnDate[5] {n} 13
set_global_var_bit_const $iGFLikesOnDate[5] {n} 14
set_global_var_bit_const $iGFLikesOnDate[5] {n} 15
set_global_var_bit_const $iGFLikesOnDate[5] {n} 19
set_global_var_bit_const $iGFLikesOnDate[5] {n} 20
set_global_var_bit_const $iGFLikesOnDate[5] {n} 27
set_global_var_bit_const $iGFLikesOnDate[5] {n} 23
$iGFLikesPlayerTraits[5] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[5] {n} 1
$iGFDiaryOfBusyHours[5] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {n} 22
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {n} 0
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {n} 2
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {n} 4
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {n} 6
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {n} 8
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {n} 10
$iGFdoor[0] = Object.CreateNoOffset(#GEN_DOOREXT03, 2401.75, -1714.477, 13.125)
Object.DontRemove($iGFdoor[0])
Object.SetCollisionDamageEffect($iGFdoor[0], False)
Object.SetProofs($iGFdoor[0], True, True, True, True, True)
$iGFdoor[4] = Object.CreateNoOffset(#GEN_DOOREXT07, -2574.495, 1153.023, 54.669)
Object.SetHeading($iGFdoor[4], -19.444)
Object.DontRemove($iGFdoor[4])
Object.SetCollisionDamageEffect($iGFdoor[4], False)
Object.SetProofs($iGFdoor[4], True, True, True, True, True)
$iGFdoor[1] = Object.CreateNoOffset(#GEN_DOORSHOP02, -1800.706, 1201.041, 24.12)
Object.DontRemove($iGFdoor[1])
Object.SetCollisionDamageEffect($iGFdoor[1], False)
Object.SetProofs($iGFdoor[1], True, True, True, True, True)
$iGFdoor[2] = Object.CreateNoOffset(#GEN_DOOREXT04, -383.46, -1439.64, 25.33)
Object.SetHeading($iGFdoor[2], 90.0)
Object.DontRemove($iGFdoor[2])
Object.SetCollisionDamageEffect($iGFdoor[2], False)
Object.SetProofs($iGFdoor[2], True, True, True, True, True)
$iGFdoor[3] = Object.CreateNoOffset(#GEN_DOORSHOP3, -1390.79, 2639.33, 54.973)
Object.DontRemove($iGFdoor[3])
Object.SetCollisionDamageEffect($iGFdoor[3], False)
Object.SetProofs($iGFdoor[3], True, True, True, True, True)
$iGFdoor[5] = Object.CreateNoOffset(#GEN_DOOREXT03, 2038.036, 2721.37, 10.53)
Object.SetHeading($iGFdoor[5], -180.0)
Object.DontRemove($iGFdoor[5])
Object.SetCollisionDamageEffect($iGFdoor[5], False)
Object.SetProofs($iGFdoor[5], True, True, True, True, True)
$iGFdoor[6] = Object.CreateNoOffset(#CUNTGIRLDOOR, -371.4, -1429.42, 26.47)
Object.DontRemove($iGFdoor[6])
Object.SetCollisionDamageEffect($iGFdoor[6], False)
Object.SetProofs($iGFdoor[6], True, True, True, True, True)
$iCensoredVersion = 1
start_new_script @GFAGNT 
terminate_this_script 

:GFAGNT
script_name 'GFAGNT'
$iGFTimeStep = 0
3@ = 0
4@ = 0
$iAgentFlags = 0
0@ = 0
1@ = 0
set_var_text_label16 v$GF_txtConsoleCheck = "NIL"
$iPhoneState = 20
$iGFidx = -1
8@ = -1
7@ = 1
if 
  3@ > 0
goto_if_false @GFAGNT_335
2@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)
$iGFHomeBlips[0] = Blip.AddForCoord(0.0, 0.0, 0.0)
$iGFHomeBlips[1] = Blip.AddForCoord(0.0, 0.0, 0.0)
$iGFHomeBlips[2] = Blip.AddForCoord(0.0, 0.0, 0.0)
$iGFHomeBlips[3] = Blip.AddForCoord(0.0, 0.0, 0.0)
$iGFHomeBlips[4] = Blip.AddForCoord(0.0, 0.0, 0.0)
$iGFHomeBlips[5] = Blip.AddForCoord(0.0, 0.0, 0.0)
$catalinas_cargen[0] = CarGenerator.Create(0.0, 0.0, 0.0, 0.0, 0, 0, 0, False, 0, 0, 0, 0)
$2823[0] = CarGenerator.Create(0.0, 0.0, 0.0, 0.0, 0, 0, 0, False, 0, 0, 0, 0)

:GFAGNT_335
wait $iGFTimeStep
if and
  Player.IsPlaying($player1)
  not Char.IsDead($scplayer)
  $onmission == 0
goto_if_false @GFAGNT_389
clear_global_var_bit_const $iAgentFlags {n} 31
GFAGNT_428()
goto @GFAGNT_421

:GFAGNT_389
if 
  not is_global_var_bit_set_const $iAgentFlags {n} 31
goto_if_false @GFAGNT_421
GFAGNT_10963()
set_global_var_bit_const $iAgentFlags {n} 31

:GFAGNT_421
goto @GFAGNT_335

:GFAGNT_428
switch_start 0@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_561 {caseNum1} 0 {caseLabel1} @GFAGNT_491 {caseNum2} 1 {caseLabel2} @GFAGNT_505 {caseNum3} 2 {caseLabel3} @GFAGNT_519 {caseNum4} 3 {caseLabel4} @GFAGNT_533 {caseNum5} 4 {caseLabel5} @GFAGNT_547 {caseNum6} -1 {caseLabel6} @GFAGNT_561 {caseNum7} -1 {caseLabel7} @GFAGNT_561

:GFAGNT_491
GFAGNT_563()
goto @GFAGNT_561

:GFAGNT_505
GFAGNT_1545()
goto @GFAGNT_561

:GFAGNT_519
GFAGNT_2238()
goto @GFAGNT_561

:GFAGNT_533
GFAGNT_2544()
goto @GFAGNT_561

:GFAGNT_547
GFAGNT_2721()
goto @GFAGNT_561

:GFAGNT_561
return 

:GFAGNT_563
GFAGNT_4940()
if 
  is_global_var_bit_set_var $iActiveGF {var_n} $iGFidx
goto_if_false @GFAGNT_1167
if 
  is_global_var_bit_set_const $iAgentFlags {n} 25
goto_if_false @GFAGNT_621
3@ = 1
goto @GFAGNT_891

:GFAGNT_621
3@ = 0
4@ = Player.GetCityIsIn($player1)
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_891 {caseNum1} 0 {caseLabel1} @GFAGNT_699 {caseNum2} 1 {caseLabel2} @GFAGNT_795 {caseNum3} 2 {caseLabel3} @GFAGNT_763 {caseNum4} 3 {caseLabel4} @GFAGNT_731 {caseNum5} 4 {caseLabel5} @GFAGNT_827 {caseNum6} 5 {caseLabel6} @GFAGNT_859 {caseNum7} -1 {caseLabel7} @GFAGNT_891

:GFAGNT_699
if 
  is_int_lvar_equal_to_constant 4@ == 1
goto_if_false @GFAGNT_724
3@ = 1

:GFAGNT_724
goto @GFAGNT_891

:GFAGNT_731
if 
  is_int_lvar_equal_to_constant 4@ == 0
goto_if_false @GFAGNT_756
3@ = 1

:GFAGNT_756
goto @GFAGNT_891

:GFAGNT_763
if 
  is_int_lvar_equal_to_constant 4@ == 0
goto_if_false @GFAGNT_788
3@ = 1

:GFAGNT_788
goto @GFAGNT_891

:GFAGNT_795
if 
  is_int_lvar_equal_to_constant 4@ == 2
goto_if_false @GFAGNT_820
3@ = 1

:GFAGNT_820
goto @GFAGNT_891

:GFAGNT_827
if 
  is_int_lvar_equal_to_constant 4@ == 2
goto_if_false @GFAGNT_852
3@ = 1

:GFAGNT_852
goto @GFAGNT_891

:GFAGNT_859
if 
  is_int_lvar_equal_to_constant 4@ == 3
goto_if_false @GFAGNT_884
3@ = 1

:GFAGNT_884
goto @GFAGNT_891

:GFAGNT_891
if 
  3@ == 1
goto_if_false @GFAGNT_1158
GFAGNT_2915()
GFAGNT_5057()
if 
  3@ > 0
goto_if_false @GFAGNT_1144
$iGFTimeStep = 250
if 
  not is_global_var_bit_set_const $iDateReport {n} 20
goto_if_false @GFAGNT_1137
GFAGNT_4293()
GFAGNT_5268()
if 
  3@ > 0
goto_if_false @GFAGNT_1044
$iGFTimeStep = 0
GFAGNT_5521()
set_global_var_bit_var $iGFAvailableFor2Player {var_n} $iGFidx
0@ = 4
1@ = 0
return 
goto @GFAGNT_1137

:GFAGNT_1044
clear_global_var_bit_var $iGFAvailableFor2Player {var_n} $iGFidx
GFAGNT_5624()
$iGFTimeStep = 250
if 
  Char.LocateStoppedAnyMeans3D($scplayer, 10@, 11@, 12@, 5.0, 5.0, 3.0, False)
goto_if_false @GFAGNT_1137
if and
  not Text.IsHelpMessageBeingDisplayed
  not Text.IsMessageBeingDisplayed
goto_if_false @GFAGNT_1135
Text.PrintHelp('GF_0048')

:GFAGNT_1135
return 

:GFAGNT_1137
goto @GFAGNT_1151

:GFAGNT_1144
GFAGNT_5996()

:GFAGNT_1151
goto @GFAGNT_1160

:GFAGNT_1158
return 

:GFAGNT_1160
goto @GFAGNT_1543

:GFAGNT_1167
GFAGNT_3736()
if 
  not is_global_var_bit_set_const $iDateReport {n} 20
goto_if_false @GFAGNT_1543
GFAGNT_5131()
if 
  3@ > 0
goto_if_false @GFAGNT_1531
$iGFTimeStep = 250
if and
  $iGFidx == 2
  2 > $flag_la1fin1_mission_counter
goto_if_false @GFAGNT_1256
StreamedScript.MarkAsNoLongerNeeded(24)
return 

:GFAGNT_1256
if and
  $iGFLikesPlayer($iGFidx,6i) <> -100
  $iGFLikesPlayer($iGFidx,6i) <> -999
goto_if_false @GFAGNT_1524
if 
  is_global_var_bit_set_const $iGFDiaryOfBusyHours($iGFidx,6i) {n} 31
goto_if_false @GFAGNT_1400
3@ = Clock.GetCurrentDayOfWeek()
3@ += 22
if 
  is_global_var_bit_set_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_n} 3@
goto_if_false @GFAGNT_1384
clear_global_var_bit_const $iGFDiaryOfBusyHours($iGFidx,6i) {n} 31
clear_global_var_bit_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_n} 3@
3@ = 1
goto @GFAGNT_1393

:GFAGNT_1384
3@ = -1
return 

:GFAGNT_1393
goto @GFAGNT_1407

:GFAGNT_1400
3@ = 1

:GFAGNT_1407
if 
  3@ == 1
goto_if_false @GFAGNT_1524
GFAGNT_4640()
3@ = StreamedScript.GetNumberOfInstances(24)
if 
  3@ == 0
goto_if_false @GFAGNT_1524
StreamedScript.Stream(24)
if 
  StreamedScript.HasLoaded(24)
goto_if_false @GFAGNT_1524
set_global_var_bit_const $iDateReport {n} 20
StreamedScript.StartNew(24, $iGFidx, 10@, 11@, 12@, 13@)
$iGFTimeStep = 0
0@ = 3
1@ = 0

:GFAGNT_1524
goto @GFAGNT_1543

:GFAGNT_1531
$iGFTimeStep = 500
StreamedScript.MarkAsNoLongerNeeded(24)

:GFAGNT_1543
return 

:GFAGNT_1545
switch_start 1@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_2236 {caseNum1} 0 {caseLabel1} @GFAGNT_1608 {caseNum2} 1 {caseLabel2} @GFAGNT_1830 {caseNum3} 2 {caseLabel3} @GFAGNT_1882 {caseNum4} 3 {caseLabel4} @GFAGNT_2035 {caseNum5} 4 {caseLabel5} @GFAGNT_2158 {caseNum6} -1 {caseLabel6} @GFAGNT_2236 {caseNum7} -1 {caseLabel7} @GFAGNT_2236

:GFAGNT_1608
if 
  is_int_var_equal_to_int_var $iCaller == $iGFidx
goto_if_false @GFAGNT_1641
GFAGNT_6973()
$iPhoneState = 20

:GFAGNT_1641
clear_global_var_bit_var $iAgentFlags {var_n} $iGFidx
GFAGNT_7339()
if 
  Player.IsPlaying($player1)
goto_if_false @GFAGNT_1686
Group.Remove($Players_Group)
Player.SetGroupRecruitment($player1, False)
Game.GetRidOfPlayerProstitute

:GFAGNT_1686
if 
  not is_global_var_bit_set_const $iActiveGF {n} 31
goto_if_false @GFAGNT_1711
$iDateReport = 0

:GFAGNT_1711
GFAGNT_9409()
if and
  3@ == 1
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 23
goto_if_false @GFAGNT_1761
set_global_var_bit_const $iDateReport {n} 14
goto @GFAGNT_1812

:GFAGNT_1761
if 
  30 >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFAGNT_1797
set_global_var_bit_const $iDateReport {n} 11
goto @GFAGNT_1812

:GFAGNT_1797
GFAGNT_6997()
set_global_var_bit_lvar $iDateReport {var_n} 3@

:GFAGNT_1812
StreamedScript.Stream(25)
1@ += 1
goto @GFAGNT_2236

:GFAGNT_1830
if 
  StreamedScript.HasLoaded(25)
goto_if_false @GFAGNT_1875
set_global_var_bit_const $iDateReport {n} 1
clear_global_var_bit_var $iGFAvailableFor2Player {var_n} $iGFidx
StreamedScript.StartNew(25, 2@)
1@ += 1

:GFAGNT_1875
goto @GFAGNT_2236

:GFAGNT_1882
if 
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @GFAGNT_1996
if 
  is_global_var_bit_set_const $iDateReport {n} 3
goto_if_false @GFAGNT_1968
if 
  not is_global_var_bit_set_const $iDateReport {n} 5
goto_if_false @GFAGNT_1961
Player.SetControl($player1, False)
GFAGNT_9055()
StreamedScript.Stream(26)
1@ += 1

:GFAGNT_1961
goto @GFAGNT_1989

:GFAGNT_1968
Camera.DoFade(1000, Fade.In)
0@ = 2
1@ = 0

:GFAGNT_1989
goto @GFAGNT_2028

:GFAGNT_1996
3@ = StreamedScript.GetNumberOfInstances(25)
if 
  3@ == 0
goto_if_false @GFAGNT_2028
clear_global_var_bit_const $iDateReport {n} 1

:GFAGNT_2028
goto @GFAGNT_2236

:GFAGNT_2035
if 
  StreamedScript.HasLoaded(26)
goto_if_false @GFAGNT_2151
3@ = Streaming.GetAreaVisible()
GFAGNT_4293()
if 
  is_global_var_bit_set_const $iDateReport {n} 14
goto_if_false @GFAGNT_2112
StreamedScript.StartNew(26, $iGFidx, 1, 3@, 10@, 11@, 12@, 13@)
goto @GFAGNT_2137

:GFAGNT_2112
StreamedScript.StartNew(26, $iGFidx, 0, 3@, 10@, 11@, 12@, 13@)

:GFAGNT_2137
set_global_var_bit_const $iDateReport {n} 5
1@ += 1

:GFAGNT_2151
goto @GFAGNT_2236

:GFAGNT_2158
if 
  not is_global_var_bit_set_const $iDateReport {n} 5
goto_if_false @GFAGNT_2197
0@ = 2
1@ = 0
goto @GFAGNT_2229

:GFAGNT_2197
3@ = StreamedScript.GetNumberOfInstances(26)
if 
  3@ == 0
goto_if_false @GFAGNT_2229
clear_global_var_bit_const $iDateReport {n} 5

:GFAGNT_2229
goto @GFAGNT_2236

:GFAGNT_2236
return 

:GFAGNT_2238
switch_start 1@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_2542 {caseNum1} 0 {caseLabel1} @GFAGNT_2301 {caseNum2} 1 {caseLabel2} @GFAGNT_2417 {caseNum3} -1 {caseLabel3} @GFAGNT_2542 {caseNum4} -1 {caseLabel4} @GFAGNT_2542 {caseNum5} -1 {caseLabel5} @GFAGNT_2542 {caseNum6} -1 {caseLabel6} @GFAGNT_2542 {caseNum7} -1 {caseLabel7} @GFAGNT_2542

:GFAGNT_2301
clear_global_var_bit_var $iAgentFlags {var_n} $iGFidx
GFAGNT_9055()
if 
  $iGFLikesPlayer($iGFidx,6i) == -999
goto_if_false @GFAGNT_2367
Text.ClearHelp
Text.PrintHelp('GF_0039')
clear_global_var_bit_var $iActiveGF {var_n} $iGFidx
goto @GFAGNT_2403

:GFAGNT_2367
GFAGNT_8576()
if 
  $iGFLikesPlayer($iGFidx,6i) >= 50
goto_if_false @GFAGNT_2403
GFAGNT_5673()

:GFAGNT_2403
1@ += 1
goto @GFAGNT_2542

:GFAGNT_2417
if or
  $iGFLikesPlayer($iGFidx,6i) == -100
  $iGFLikesPlayer($iGFidx,6i) == -999
goto_if_false @GFAGNT_2479
GFAGNT_9475()
0@ = 0
1@ = 0
goto @GFAGNT_2535

:GFAGNT_2479
if 
  not Char.LocateAnyMeans3D($scplayer, 10@, 11@, 12@, 10.0, 10.0, 10.0, False)
goto_if_false @GFAGNT_2535
0@ = 0
1@ = 0

:GFAGNT_2535
goto @GFAGNT_2542

:GFAGNT_2542
return 

:GFAGNT_2544
if 
  not is_global_var_bit_set_const $iDateReport {n} 20
goto_if_false @GFAGNT_2687
GFAGNT_4640()
if 
  not Char.LocateAnyMeans3D($scplayer, 10@, 11@, 12@, 65.0, 65.0, 5.0, False)
goto_if_false @GFAGNT_2680
if 
  is_global_var_bit_set_const $iDateReport {n} 21
goto_if_false @GFAGNT_2666
7@ = Clock.GetCurrentDayOfWeek()
7@ += 1
if 
  7@ > 7
goto_if_false @GFAGNT_2666
7@ = 1

:GFAGNT_2666
0@ = 0
1@ = 0

:GFAGNT_2680
goto @GFAGNT_2719

:GFAGNT_2687
3@ = StreamedScript.GetNumberOfInstances(24)
if 
  3@ == 0
goto_if_false @GFAGNT_2719
clear_global_var_bit_const $iDateReport {n} 20

:GFAGNT_2719
return 

:GFAGNT_2721
if 
  Char.LocateAnyMeans3D($scplayer, 10@, 11@, 12@, 75.0, 75.0, 10.0, False)
goto_if_false @GFAGNT_2899
GFAGNT_5268()
if 
  3@ > 0
goto_if_false @GFAGNT_2878
if 
  Char.LocateStoppedAnyMeans3D($scplayer, 10@, 11@, 12@, 1.5, 1.5, 1.5, True)
goto_if_false @GFAGNT_2871
if 
  not is_global_var_bit_set_const $iAgentFlags {n} 11
goto_if_false @GFAGNT_2871
Player.SetControl($player1, False)
0@ = 1
1@ = 0
return 

:GFAGNT_2871
goto @GFAGNT_2892

:GFAGNT_2878
0@ = 0
1@ = 0

:GFAGNT_2892
goto @GFAGNT_2913

:GFAGNT_2899
0@ = 0
1@ = 0

:GFAGNT_2913
return 

:GFAGNT_2915
if 
  not Blip.DoesExist($iGFHomeBlips($iGFidx,6i))
goto_if_false @GFAGNT_3029
GFAGNT_4293()
$iGFHomeBlips($iGFidx,6i) = Blip.AddShortRangeSpriteForCoord(10@, 11@, 12@, RadarSprite.Girlfriend)
Stat.IncrementInt(StatId.CurrentGirlfriends, 1)
Stat.IncrementInt(StatId.GirlsDated, 1)
3@ = Stat.GetInt(StatId.RespectGirlfriend)
add_int_var_to_int_lvar 3@ += $iGFRespectGiven($iGFidx,6i)
if 
  3@ > 1000
goto_if_false @GFAGNT_3022
3@ = 1000

:GFAGNT_3022
Stat.SetInt(StatId.RespectGirlfriend, 3@)

:GFAGNT_3029
switch_start $iGFidx {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_3734 {caseNum1} 0 {caseLabel1} @GFAGNT_3092 {caseNum2} 1 {caseLabel2} @GFAGNT_3159 {caseNum3} 2 {caseLabel3} @GFAGNT_3277 {caseNum4} 3 {caseLabel4} @GFAGNT_3488 {caseNum5} 4 {caseLabel5} @GFAGNT_3611 {caseNum6} -1 {caseLabel6} @GFAGNT_3734 {caseNum7} -1 {caseLabel7} @GFAGNT_3734

:GFAGNT_3092
if and
  $iGFLikesPlayer($iGFidx,6i) >= 100
  $flag_got_pimp_clothes == 0
goto_if_false @GFAGNT_3152
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @GFAGNT_3152
Text.PrintHelp('GF_H006')
$flag_got_pimp_clothes = 1

:GFAGNT_3152
goto @GFAGNT_3734

:GFAGNT_3159
if and
  $iGFLikesPlayer($iGFidx,6i) >= 100
  $flag_got_mechanic_clothes == 0
goto_if_false @GFAGNT_3219
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @GFAGNT_3219
Text.PrintHelp('GF_H006')
$flag_got_mechanic_clothes = 1

:GFAGNT_3219
if 
  not is_global_var_bit_set_const $iActiveGF {n} 21
goto_if_false @GFAGNT_3270
Garage.ChangeType('MICHDR', GarageType.Respray)
Garage.SetResprayFree('MICHDR', True)
set_global_var_bit_const $iActiveGF {n} 21

:GFAGNT_3270
goto @GFAGNT_3734

:GFAGNT_3277
if and
  $iGFLikesPlayer($iGFidx,6i) >= 100
  $flag_player_got_country_clothes == 0
goto_if_false @GFAGNT_3337
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @GFAGNT_3337
Text.PrintHelp('GF_H006')
$flag_player_got_country_clothes = 1

:GFAGNT_3337
if 
  not is_global_var_bit_set_const $iActiveGF {n} 22
goto_if_false @GFAGNT_3481
Object.SetVisible($iGFdoor[6], False)
Object.SetCollision($iGFdoor[6], False)
$iGFBonusPickupID = Pickup.Create(344, PickupType.OnStreetSlow, -366.2235, -1429.088, 25.5)
$395 = Pickup.Create(341, PickupType.OnStreetSlow, -365.7906, -1425.253, 25.5)
$396 = Pickup.CreateWithAmmo(346, PickupType.OnStreetSlow, 100, -365.4774, -1422.401, 25.5)
$397 = Pickup.CreateWithAmmo(361, PickupType.OnStreetSlow, 200, -366.066, -1418.683, 25.5)
set_global_var_bit_const $iActiveGF {n} 22

:GFAGNT_3481
goto @GFAGNT_3734

:GFAGNT_3488
if and
  $iGFLikesPlayer($iGFidx,6i) >= 100
  $flag_player_got_police_uniform == 0
goto_if_false @GFAGNT_3548
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @GFAGNT_3548
Text.PrintHelp('GF_H006')
$flag_player_got_police_uniform = 1

:GFAGNT_3548
if 
  not is_global_var_bit_set_const $iActiveGF {n} 23
goto_if_false @GFAGNT_3604
Restart.SetExtraPoliceStationRestartPoint(-1379.843, 2635.74, 54.4315, 1500.0, 170.6194)
Game.SwitchArrestPenalties(False)
set_global_var_bit_const $iActiveGF {n} 23

:GFAGNT_3604
goto @GFAGNT_3734

:GFAGNT_3611
if and
  $iGFLikesPlayer($iGFidx,6i) >= 100
  $flag_got_medic_clothes == 0
goto_if_false @GFAGNT_3671
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @GFAGNT_3671
Text.PrintHelp('GF_H006')
$flag_got_medic_clothes = 1

:GFAGNT_3671
if 
  not is_global_var_bit_set_const $iActiveGF {n} 24
goto_if_false @GFAGNT_3727
Restart.SetExtraHospitalRestartPoint(-2570.511, 1139.582, 54.8547, 1500.0, 160.0)
Game.SwitchDeathPenalties(False)
set_global_var_bit_const $iActiveGF {n} 24

:GFAGNT_3727
goto @GFAGNT_3734

:GFAGNT_3734
return 

:GFAGNT_3736
if 
  $Returned_oysters == 50
goto_if_false @GFAGNT_3801
if and
  0 > $iGFLikesPlayer($iGFidx,6i)
  $iGFidx <> 0
  $iGFidx <> 5
goto_if_false @GFAGNT_3801
$iGFLikesPlayer($iGFidx,6i) = 45

:GFAGNT_3801
if 
  Blip.DoesExist($iGFHomeBlips($iGFidx,6i))
goto_if_false @GFAGNT_3917
Blip.Remove($iGFHomeBlips($iGFidx,6i))
GFAGNT_9475()
GFAGNT_5624()
clear_global_var_bit_var $iGFAvailableFor2Player {var_n} $iGFidx
Stat.DecrementInt(StatId.CurrentGirlfriends, 1)
Stat.IncrementInt(StatId.GirlsDumped, 1)
3@ = Stat.GetInt(StatId.RespectGirlfriend)
sub_int_var_from_int_lvar 3@ -= $iGFRespectGiven($iGFidx,6i)
if 
  0 > 3@
goto_if_false @GFAGNT_3910
3@ = 0

:GFAGNT_3910
Stat.SetInt(StatId.RespectGirlfriend, 3@)

:GFAGNT_3917
set_lvar_int_to_var_int 3@ = $iGFidx
3@ += 20
if 
  is_global_var_bit_set_lvar $iActiveGF {var_n} 3@
goto_if_false @GFAGNT_4291
switch_start $iGFidx {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_4291 {caseNum1} 1 {caseLabel1} @GFAGNT_4014 {caseNum2} 2 {caseLabel2} @GFAGNT_4113 {caseNum3} 3 {caseLabel3} @GFAGNT_4209 {caseNum4} 4 {caseLabel4} @GFAGNT_4254 {caseNum5} -1 {caseLabel5} @GFAGNT_4291 {caseNum6} -1 {caseLabel6} @GFAGNT_4291 {caseNum7} -1 {caseLabel7} @GFAGNT_4291

:GFAGNT_4014
if 
  not Char.IsInArea3D($scplayer, -1790.7, 1209.0, 23.0, -1784.0, 1221.5, 27.5, False)
goto_if_false @GFAGNT_4106
Garage.SetResprayFree('MICHDR', False)
Garage.ChangeType('MICHDR', GarageType.ForScriptToOpenAndClose)
Garage.Close('MICHDR')
clear_global_var_bit_const $iActiveGF {n} 21

:GFAGNT_4106
goto @GFAGNT_4291

:GFAGNT_4113
if 
  not Char.IsInArea3D($scplayer, -361.0, -1417.0, 23.0, -372.0, -1431.0, 30.0, False)
goto_if_false @GFAGNT_4202
Pickup.Remove($iGFBonusPickupID)
Pickup.Remove($395)
Pickup.Remove($396)
Pickup.Remove($397)
Object.SetVisible($iGFdoor[6], True)
Object.SetCollision($iGFdoor[6], True)
clear_global_var_bit_const $iActiveGF {n} 22

:GFAGNT_4202
goto @GFAGNT_4291

:GFAGNT_4209
Restart.SetExtraPoliceStationRestartPoint(-1379.843, 2635.74, 54.4315, 0.0, 170.6194)
Game.SwitchArrestPenalties(True)
clear_global_var_bit_const $iActiveGF {n} 23
goto @GFAGNT_4291

:GFAGNT_4254
Restart.SetExtraHospitalRestartPoint(10@, 11@, 12@, 0.0, 13@)
Game.SwitchDeathPenalties(True)
clear_global_var_bit_const $iActiveGF {n} 24
goto @GFAGNT_4291

:GFAGNT_4291
return 

:GFAGNT_4293
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_4638 {caseNum1} 0 {caseLabel1} @GFAGNT_4356 {caseNum2} 1 {caseLabel2} @GFAGNT_4403 {caseNum3} 2 {caseLabel3} @GFAGNT_4450 {caseNum4} 3 {caseLabel4} @GFAGNT_4497 {caseNum5} 4 {caseLabel5} @GFAGNT_4544 {caseNum6} 5 {caseLabel6} @GFAGNT_4591 {caseNum7} -1 {caseLabel7} @GFAGNT_4638

:GFAGNT_4356
10@ = 2401.965
11@ = -1723.22
12@ = 12.6005
13@ = 180.0
goto @GFAGNT_4638

:GFAGNT_4403
10@ = -1799.5
11@ = 1195.5
12@ = 24.1094
13@ = 180.0
goto @GFAGNT_4638

:GFAGNT_4450
10@ = -377.3978
11@ = -1438.692
12@ = 24.7209
13@ = 270.0
goto @GFAGNT_4638

:GFAGNT_4497
10@ = -1398.101
11@ = 2636.873
12@ = 54.7031
13@ = 75.0
goto @GFAGNT_4638

:GFAGNT_4544
10@ = -2576.808
11@ = 1144.744
12@ = 54.7422
13@ = 164.0
goto @GFAGNT_4638

:GFAGNT_4591
10@ = 2035.362
11@ = 2732.411
12@ = 9.8203
13@ = 0.0
goto @GFAGNT_4638

:GFAGNT_4638
return 

:GFAGNT_4640
switch_start $iGFidx {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @GFAGNT_4891 {caseNum1} 1 {caseLabel1} @GFAGNT_4703 {caseNum2} 2 {caseLabel2} @GFAGNT_4750 {caseNum3} 3 {caseLabel3} @GFAGNT_4797 {caseNum4} 4 {caseLabel4} @GFAGNT_4844 {caseNum5} -1 {caseLabel5} @GFAGNT_4938 {caseNum6} -1 {caseLabel6} @GFAGNT_4938 {caseNum7} -1 {caseLabel7} @GFAGNT_4938

:GFAGNT_4703
10@ = -2027.583
11@ = -118.7022
12@ = 1034.0
13@ = 3.4
goto @GFAGNT_4938

:GFAGNT_4750
10@ = 257.6682
11@ = -154.7475
12@ = 4.0786
13@ = 268.7731
goto @GFAGNT_4938

:GFAGNT_4797
10@ = -1410.1
11@ = 2648.731
12@ = 54.6875
13@ = 130.0
goto @GFAGNT_4938

:GFAGNT_4844
10@ = -2291.708
11@ = -233.0215
12@ = 41.7185
13@ = 360.0
goto @GFAGNT_4938

:GFAGNT_4891
10@ = 0.0
11@ = 0.0
12@ = 0.0
13@ = 0.0
goto @GFAGNT_4938

:GFAGNT_4938
return 

:GFAGNT_4940
8@ += 1
if 
  8@ >= 6
goto_if_false @GFAGNT_4972
8@ = 0

:GFAGNT_4972
if 
  is_global_var_bit_set_const $iAgentFlags {n} 25
goto_if_false @GFAGNT_5023
if 
  is_int_lvar_equal_to_int_var 8@ == $iGFidx
goto_if_false @GFAGNT_5016
clear_global_var_bit_const $iAgentFlags {n} 25

:GFAGNT_5016
goto @GFAGNT_5055

:GFAGNT_5023
$iGFidx += 1
if 
  $iGFidx >= 6
goto_if_false @GFAGNT_5055
$iGFidx = 0

:GFAGNT_5055
return 

:GFAGNT_5057
GFAGNT_4293()
if 
  Char.LocateAnyMeans3D($scplayer, 10@, 11@, 12@, 65.0, 65.0, 5.0, False)
goto_if_false @GFAGNT_5122
set_global_var_bit_const $iAgentFlags {n} 25
3@ = 1
return 

:GFAGNT_5122
3@ = -1
return 

:GFAGNT_5131
GFAGNT_4640()
if 
  10@ <> 0.0
goto_if_false @GFAGNT_5259
if 
  Char.LocateAnyMeans3D($scplayer, 10@, 11@, 12@, 80.0, 80.0, 10.0, False)
goto_if_false @GFAGNT_5259
if 
  not Char.LocateAnyMeans3D($scplayer, 10@, 11@, 12@, 8.0, 8.0, 10.0, False)
goto_if_false @GFAGNT_5259
set_global_var_bit_const $iAgentFlags {n} 25
3@ = 1
return 

:GFAGNT_5259
3@ = -1
return 

:GFAGNT_5268
3@ = -1
if and
  is_global_var_bit_set_const $iAgentFlags {n} 11
  is_int_var_equal_to_int_var $iCaller == $iGFidx
goto_if_false @GFAGNT_5310
3@ = 1
return 

:GFAGNT_5310
if and
  is_global_var_bit_set_const $iAgentFlags {n} 10
  is_int_var_equal_to_int_var $iCaller == $iGFidx
goto_if_false @GFAGNT_5345
3@ = 1
return 

:GFAGNT_5345
if 
  is_global_var_bit_set_const $iGFDiaryOfBusyHours($iGFidx,6i) {n} 31
goto_if_false @GFAGNT_5441
3@ = Clock.GetCurrentDayOfWeek()
3@ += 22
if 
  is_global_var_bit_set_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_n} 3@
goto_if_false @GFAGNT_5432
clear_global_var_bit_const $iGFDiaryOfBusyHours($iGFidx,6i) {n} 31
clear_global_var_bit_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_n} 3@
goto @GFAGNT_5441

:GFAGNT_5432
3@ = -1
return 

:GFAGNT_5441
3@, 4@ = Clock.GetTimeOfDay()
set_lvar_int_to_lvar_int 4@ = 3@
4@ /= 2
4@ *= 2
if 
  is_global_var_bit_set_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_n} 4@
goto_if_false @GFAGNT_5510
3@ = -1
return 
goto @GFAGNT_5519

:GFAGNT_5510
3@ = 1
return 

:GFAGNT_5519
return 

:GFAGNT_5521
if 
  $iGFLikesPlayer($iGFidx,6i) >= 50
goto_if_false @GFAGNT_5586
if 
  not is_global_var_bit_set_const $iAgentFlags {n} 26
goto_if_false @GFAGNT_5579
CarGenerator.Switch($2823($iGFidx,6i), 101)
set_global_var_bit_const $iAgentFlags {n} 26

:GFAGNT_5579
goto @GFAGNT_5622

:GFAGNT_5586
if 
  not is_global_var_bit_set_const $iAgentFlags {n} 26
goto_if_false @GFAGNT_5622
CarGenerator.Switch($catalinas_cargen($iGFidx,6i), 101)
set_global_var_bit_const $iAgentFlags {n} 26

:GFAGNT_5622
return 

:GFAGNT_5624
if 
  is_global_var_bit_set_const $iAgentFlags {n} 26
goto_if_false @GFAGNT_5671
CarGenerator.Switch($2823($iGFidx,6i), 0)
CarGenerator.Switch($catalinas_cargen($iGFidx,6i), 0)
clear_global_var_bit_const $iAgentFlags {n} 26

:GFAGNT_5671
return 

:GFAGNT_5673
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_5994 {caseNum1} 0 {caseLabel1} @GFAGNT_5736 {caseNum2} 1 {caseLabel2} @GFAGNT_5779 {caseNum3} 2 {caseLabel3} @GFAGNT_5822 {caseNum4} 3 {caseLabel4} @GFAGNT_5865 {caseNum5} 4 {caseLabel5} @GFAGNT_5908 {caseNum6} 5 {caseLabel6} @GFAGNT_5951 {caseNum7} -1 {caseLabel7} @GFAGNT_5994

:GFAGNT_5736
if 
  not is_global_var_bit_set_const $iActiveGF {n} 25
goto_if_false @GFAGNT_5772
Text.PrintHelp('GF_H007')
set_global_var_bit_const $iActiveGF {n} 25

:GFAGNT_5772
goto @GFAGNT_5994

:GFAGNT_5779
if 
  not is_global_var_bit_set_const $iActiveGF {n} 26
goto_if_false @GFAGNT_5815
Text.PrintHelp('GF_H008')
set_global_var_bit_const $iActiveGF {n} 26

:GFAGNT_5815
goto @GFAGNT_5994

:GFAGNT_5822
if 
  not is_global_var_bit_set_const $iActiveGF {n} 27
goto_if_false @GFAGNT_5858
Text.PrintHelp('GF_H009')
set_global_var_bit_const $iActiveGF {n} 27

:GFAGNT_5858
goto @GFAGNT_5994

:GFAGNT_5865
if 
  not is_global_var_bit_set_const $iActiveGF {n} 28
goto_if_false @GFAGNT_5901
Text.PrintHelp('GF_H010')
set_global_var_bit_const $iActiveGF {n} 28

:GFAGNT_5901
goto @GFAGNT_5994

:GFAGNT_5908
if 
  not is_global_var_bit_set_const $iActiveGF {n} 29
goto_if_false @GFAGNT_5944
Text.PrintHelp('GF_H011')
set_global_var_bit_const $iActiveGF {n} 29

:GFAGNT_5944
goto @GFAGNT_5994

:GFAGNT_5951
if 
  not is_global_var_bit_set_const $iActiveGF {n} 30
goto_if_false @GFAGNT_5987
Text.PrintHelp('GF_H012')
set_global_var_bit_const $iActiveGF {n} 30

:GFAGNT_5987
goto @GFAGNT_5994

:GFAGNT_5994
return 

:GFAGNT_5996
switch_start $iPhoneState {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_6518 {caseNum1} 20 {caseLabel1} @GFAGNT_6059 {caseNum2} 21 {caseLabel2} @GFAGNT_6087 {caseNum3} 22 {caseLabel3} @GFAGNT_6220 {caseNum4} 23 {caseLabel4} @GFAGNT_6316 {caseNum5} 24 {caseLabel5} @GFAGNT_6374 {caseNum6} -1 {caseLabel6} @GFAGNT_6518 {caseNum7} -1 {caseLabel7} @GFAGNT_6518

:GFAGNT_6059
GFAGNT_6973()
GFAGNT_8945()
GFAGNT_6520()
goto @GFAGNT_6518

:GFAGNT_6087
3@ = Clock.GetMinutesToTimeOfDay(5@, 6@)
if 
  5 >= 3@
goto_if_false @GFAGNT_6213
if 
  not is_global_var_bit_set_const $iAgentFlags {n} 11
goto_if_false @GFAGNT_6213
if 
  is_int_var_equal_to_int_var $iCaller == $iGFidx
goto_if_false @GFAGNT_6180
start_new_script @MOB_GF $iGFidx 1 
$iPhoneState = 22
goto @GFAGNT_6213

:GFAGNT_6180
if 
  not is_global_var_bit_set_var $iActiveGF {var_n} $iCaller
goto_if_false @GFAGNT_6213
GFAGNT_6973()
$iPhoneState = 20

:GFAGNT_6213
goto @GFAGNT_6518

:GFAGNT_6220
if 
  not is_global_var_bit_set_const $iAgentFlags {n} 11
goto_if_false @GFAGNT_6309
if 
  is_global_var_bit_set_const $iAgentFlags {n} 10
goto_if_false @GFAGNT_6277
GFAGNT_6639()
$iPhoneState = 23
goto @GFAGNT_6309

:GFAGNT_6277
$iGFLikesPlayer($iCaller,6i) -= 2
GFAGNT_9632()
GFAGNT_6973()
$iPhoneState = 20

:GFAGNT_6309
goto @GFAGNT_6518

:GFAGNT_6316
3@ = Clock.GetMinutesToTimeOfDay(5@, 6@)
if 
  5 >= 3@
goto_if_false @GFAGNT_6367
set_var_int_to_var_int $iGFidx = $iCaller
GFAGNT_6711()
$iPhoneState = 20

:GFAGNT_6367
goto @GFAGNT_6518

:GFAGNT_6374
if 
  not is_global_var_bit_set_const $iAgentFlags {n} 11
goto_if_false @GFAGNT_6511
if 
  is_global_var_bit_set_const $iAgentFlags {n} 10
goto_if_false @GFAGNT_6468
if and
  $iCaller > -1
  6 > $iCaller
goto_if_false @GFAGNT_6454
$iGFLikesPlayer($iCaller,6i) = -100
clear_global_var_bit_var $iActiveGF {var_n} $iCaller

:GFAGNT_6454
$iPhoneState = 20
goto @GFAGNT_6511

:GFAGNT_6468
if and
  $iCaller > -1
  6 > $iCaller
goto_if_false @GFAGNT_6504
$iGFLikesPlayer($iCaller,6i) = -99

:GFAGNT_6504
$iPhoneState = 20

:GFAGNT_6511
goto @GFAGNT_6518

:GFAGNT_6518
return 

:GFAGNT_6520
3@ = Math.RandomIntInRange(0, 6)
if 
  is_global_var_bit_set_lvar $iActiveGF {var_n} 3@
goto_if_false @GFAGNT_6637
if 
  $iGFLikesPlayer(3@,6i) > -15
goto_if_false @GFAGNT_6637
if and
  $iGFLikesPlayer(3@,6i) <> -100
  $iGFLikesPlayer($iGFidx,6i) <> -999
goto_if_false @GFAGNT_6637
5@ = Math.RandomIntInRange(1, 23)
6@ = Math.RandomIntInRange(1, 59)
set_var_int_to_lvar_int $iCaller = 3@
$iPhoneState = 21

:GFAGNT_6637
return 

:GFAGNT_6639
5@, 6@ = Clock.GetTimeOfDay()
6@ = 31
5@ += 5
if 
  5@ > 23
goto_if_false @GFAGNT_6709
set_lvar_int_to_lvar_int 3@ = 5@
3@ -= 23
5@ = 0
add_int_lvar_to_int_lvar 5@ += 3@

:GFAGNT_6709
return 

:GFAGNT_6711
if and
  $iCaller > -1
  6 > $iCaller
goto_if_false @GFAGNT_6971
$iGFLikesPlayer($iCaller,6i) -= 3
GFAGNT_9632()
if and
  not Text.IsHelpMessageBeingDisplayed
  $iGFLikesPlayer($iCaller,6i) > -15
goto_if_false @GFAGNT_6971
switch_start $iCaller {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_6949 {caseNum1} 0 {caseLabel1} @GFAGNT_6841 {caseNum2} 1 {caseLabel2} @GFAGNT_6859 {caseNum3} 2 {caseLabel3} @GFAGNT_6877 {caseNum4} 3 {caseLabel4} @GFAGNT_6895 {caseNum5} 4 {caseLabel5} @GFAGNT_6913 {caseNum6} 5 {caseLabel6} @GFAGNT_6931 {caseNum7} -1 {caseLabel7} @GFAGNT_6949

:GFAGNT_6841
Text.PrintHelp('GF_APP0')
goto @GFAGNT_6949

:GFAGNT_6859
Text.PrintHelp('GF_APP1')
goto @GFAGNT_6949

:GFAGNT_6877
Text.PrintHelp('GF_APP2')
goto @GFAGNT_6949

:GFAGNT_6895
Text.PrintHelp('GF_APP3')
goto @GFAGNT_6949

:GFAGNT_6913
Text.PrintHelp('GF_APP4')
goto @GFAGNT_6949

:GFAGNT_6931
Text.PrintHelp('GF_APP5')
goto @GFAGNT_6949

:GFAGNT_6949
clear_global_var_bit_const $iAgentFlags {n} 10
clear_global_var_bit_var $iAgentFlags {var_n} $iCaller
$iCaller = -1

:GFAGNT_6971
return 

:GFAGNT_6973
$iCaller = -1
clear_global_var_bit_const $iAgentFlags {n} 10
clear_global_var_bit_var $iAgentFlags {var_n} $iGFidx
return 

:GFAGNT_6997
3@ = Math.RandomIntInRange(0, 45)
if 
  3@ > 10
goto_if_false @GFAGNT_7170
if 
  3@ > 20
goto_if_false @GFAGNT_7156
if 
  3@ > 30
goto_if_false @GFAGNT_7142
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 22
goto_if_false @GFAGNT_7096
3@ = 15
goto @GFAGNT_7135

:GFAGNT_7096
if 
  3@ > 35
goto_if_false @GFAGNT_7128
3@ = 12
goto @GFAGNT_7135

:GFAGNT_7128
3@ = 13

:GFAGNT_7135
goto @GFAGNT_7149

:GFAGNT_7142
3@ = 13

:GFAGNT_7149
goto @GFAGNT_7163

:GFAGNT_7156
3@ = 12

:GFAGNT_7163
goto @GFAGNT_7177

:GFAGNT_7170
3@ = 11

:GFAGNT_7177
if 
  is_global_var_bit_set_const $iDateReport {n} 27
goto_if_false @GFAGNT_7209
3@ = 11
$iDateReport = 0

:GFAGNT_7209
if 
  is_global_var_bit_set_const $iDateReport {n} 28
goto_if_false @GFAGNT_7241
3@ = 12
$iDateReport = 0

:GFAGNT_7241
if 
  is_global_var_bit_set_const $iDateReport {n} 29
goto_if_false @GFAGNT_7273
3@ = 13
$iDateReport = 0

:GFAGNT_7273
if 
  is_global_var_bit_set_const $iDateReport {n} 30
goto_if_false @GFAGNT_7305
3@ = 14
$iDateReport = 0

:GFAGNT_7305
if 
  is_global_var_bit_set_const $iDateReport {n} 31
goto_if_false @GFAGNT_7337
3@ = 15
$iDateReport = 0

:GFAGNT_7337
return 

:GFAGNT_7339
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_8574 {caseNum1} 0 {caseLabel1} @GFAGNT_7402 {caseNum2} 1 {caseLabel2} @GFAGNT_7748 {caseNum3} 2 {caseLabel3} @GFAGNT_7888 {caseNum4} 3 {caseLabel4} @GFAGNT_8070 {caseNum5} 4 {caseLabel5} @GFAGNT_8252 {caseNum6} 5 {caseLabel6} @GFAGNT_8434 {caseNum7} -1 {caseLabel7} @GFAGNT_8574

:GFAGNT_7402
if or
  not Streaming.HasModelLoaded(195)
  not Streaming.HasModelLoaded(352)
goto_if_false @GFAGNT_7444
Streaming.RequestModel(352)
Streaming.RequestModel(195)
wait 0
goto @GFAGNT_7402

:GFAGNT_7444
2@ = Char.Create(PedType.CivFemale, 195, 2402.39, -1712.899, 13.1402)
Char.SetHeading(2@, 180.0)
Char.GiveWeapon(2@, WeaponType.MicroUzi, 60)
Char.SetCurrentWeapon(2@, WeaponType.Unarmed)
Char.SetAccuracy(2@, 75)
$iGF_GlobalDM_Weak_Gang = DecisionMakerChar.CopyShared(65540)
DecisionMakerChar.AddEventResponse($iGF_GlobalDM_Weak_Gang, 36, 1022, 0.0, 100.0, 0.0, 0.0, True, False)
DecisionMakerChar.AddEventResponse($iGF_GlobalDM_Weak_Gang, 37, 1022, 0.0, 100.0, 0.0, 0.0, True, False)
DecisionMakerChar.AddEventResponse($iGF_GlobalDM_Weak_Gang, 36, 1024, 0.0, 50.0, 0.0, 0.0, False, True)
Char.SetDecisionMaker(2@, $iGF_GlobalDM_Weak_Gang)
Char.SetRelationship(2@, RelationshipType.Hate, PedType.Gang1)
Char.SetRelationship(2@, RelationshipType.Hate, PedType.Gang3)
Char.SetRelationship(2@, RelationshipType.Hate, PedType.Gang4)
Char.SetRelationship(2@, RelationshipType.Hate, PedType.Gang5)
Char.SetRelationship(2@, RelationshipType.Hate, PedType.Gang6)
Char.SetRelationship(2@, RelationshipType.Hate, PedType.Gang7)
Char.SetRelationship(2@, RelationshipType.Hate, PedType.Gang8)
Char.SetStayInSamePlace(2@, True)
Char.SetSuffersCriticalHits(2@, False)
Char.SetNeverTargeted(2@, True)
Char.SetProofs(2@, False, False, True, True, False)
Char.SetHealth(2@, 500)
Char.DontRemove(2@)
Task.StandStill(2@, -1)
goto @GFAGNT_8574

:GFAGNT_7748
if 
  not Streaming.HasModelLoaded(192)
goto_if_false @GFAGNT_7780
Streaming.RequestModel(192)
wait 0
goto @GFAGNT_7748

:GFAGNT_7780
2@ = Char.Create(PedType.CivFemale, 192, -1799.875, 1202.057, 24.1328)
Char.SetHeading(2@, 180.0)
Char.SetDecisionMaker(2@, 65543)
Char.SetStayInSamePlace(2@, True)
Char.SetSuffersCriticalHits(2@, False)
Char.SetNeverTargeted(2@, True)
Char.SetProofs(2@, False, False, True, True, False)
Char.SetHealth(2@, 500)
Char.DontRemove(2@)
Task.StandStill(2@, -1)
goto @GFAGNT_8574

:GFAGNT_7888
if 
  not Streaming.HasModelLoaded(191)
goto_if_false @GFAGNT_7920
Streaming.RequestModel(191)
wait 0
goto @GFAGNT_7888

:GFAGNT_7920
2@ = Char.Create(PedType.CivFemale, 191, -384.6795, -1438.84, 25.3281)
Char.SetHeading(2@, 268.2687)
$iGF_GlobalDM_Tough = DecisionMakerChar.CopyShared(65539)
DecisionMakerChar.AddEventResponse($iGF_GlobalDM_Tough, 36, 1024, 0.0, 50.0, 0.0, 0.0, False, True)
Char.SetDecisionMaker(2@, $iGF_GlobalDM_Tough)
Char.SetStayInSamePlace(2@, True)
Char.SetSuffersCriticalHits(2@, False)
Char.SetNeverTargeted(2@, True)
Char.SetProofs(2@, False, False, True, True, False)
Char.SetHealth(2@, 500)
Char.DontRemove(2@)
Task.StandStill(2@, -1)
goto @GFAGNT_8574

:GFAGNT_8070
if 
  not Streaming.HasModelLoaded(190)
goto_if_false @GFAGNT_8102
Streaming.RequestModel(190)
wait 0
goto @GFAGNT_8070

:GFAGNT_8102
2@ = Char.Create(PedType.CivFemale, 190, -1390.303, 2641.066, 54.9844)
Char.SetHeading(2@, 187.2)
$iGF_GlobalDM_Tough = DecisionMakerChar.CopyShared(65539)
DecisionMakerChar.AddEventResponse($iGF_GlobalDM_Tough, 36, 1024, 0.0, 50.0, 0.0, 0.0, False, True)
Char.SetDecisionMaker(2@, $iGF_GlobalDM_Tough)
Char.SetStayInSamePlace(2@, True)
Char.SetSuffersCriticalHits(2@, False)
Char.SetNeverTargeted(2@, True)
Char.SetProofs(2@, False, False, True, True, False)
Char.SetHealth(2@, 500)
Char.DontRemove(2@)
Task.StandStill(2@, -1)
goto @GFAGNT_8574

:GFAGNT_8252
if 
  not Streaming.HasModelLoaded(193)
goto_if_false @GFAGNT_8284
Streaming.RequestModel(193)
wait 0
goto @GFAGNT_8252

:GFAGNT_8284
2@ = Char.Create(PedType.CivFemale, 193, -2573.357, 1155.091, 54.7347)
Char.SetHeading(2@, 167.8854)
$iGF_GlobalDM_Tough = DecisionMakerChar.CopyShared(65539)
DecisionMakerChar.AddEventResponse($iGF_GlobalDM_Tough, 36, 1024, 0.0, 50.0, 0.0, 0.0, False, True)
Char.SetDecisionMaker(2@, $iGF_GlobalDM_Tough)
Char.SetStayInSamePlace(2@, True)
Char.SetSuffersCriticalHits(2@, False)
Char.SetNeverTargeted(2@, True)
Char.SetProofs(2@, False, False, True, True, False)
Char.SetHealth(2@, 500)
Char.DontRemove(2@)
Task.StandStill(2@, -1)
goto @GFAGNT_8574

:GFAGNT_8434
if 
  not Streaming.HasModelLoaded(194)
goto_if_false @GFAGNT_8466
Streaming.RequestModel(194)
wait 0
goto @GFAGNT_8434

:GFAGNT_8466
2@ = Char.Create(PedType.CivFemale, 194, 2037.476, 2719.794, 10.5436)
Char.SetHeading(2@, 9.2)
Char.SetDecisionMaker(2@, 65543)
Char.SetStayInSamePlace(2@, True)
Char.SetSuffersCriticalHits(2@, False)
Char.SetNeverTargeted(2@, True)
Char.SetProofs(2@, False, False, True, True, False)
Char.SetHealth(2@, 500)
Char.DontRemove(2@)
Task.StandStill(2@, -1)
goto @GFAGNT_8574

:GFAGNT_8574
return 

:GFAGNT_8576
if 
  is_global_var_bit_set_const $iDateReport {n} 2
goto_if_false @GFAGNT_8688
if and
  0 >= $iGFLikesPlayer($iGFidx,6i)
  $iGFLikesPlayer($iGFidx,6i) > -15
goto_if_false @GFAGNT_8656
$iGFLikesPlayer($iGFidx,6i) = 0
$iGFLikesPlayer($iGFidx,6i) += 5
goto @GFAGNT_8667

:GFAGNT_8656
$iGFLikesPlayer($iGFidx,6i) += 5

:GFAGNT_8667
GFAGNT_9632()
Stat.IncrementInt(StatId.Dates, 1)
goto @GFAGNT_8790

:GFAGNT_8688
if 
  is_global_var_bit_set_const $iDateReport {n} 8
goto_if_false @GFAGNT_8765
if and
  $iGFLikesPlayer($iGFidx,6i) <> -100
  $iGFLikesPlayer($iGFidx,6i) <> -999
goto_if_false @GFAGNT_8758
$iGFLikesPlayer($iGFidx,6i) -= 1
GFAGNT_9632()

:GFAGNT_8758
goto @GFAGNT_8790

:GFAGNT_8765
$iGFLikesPlayer($iGFidx,6i) -= 5
GFAGNT_9632()
Stat.IncrementInt(StatId.BadDates, 1)

:GFAGNT_8790
if 
  is_global_var_bit_set_const $iDateReport {n} 4
goto_if_false @GFAGNT_8840
$iGFLikesPlayer($iGFidx,6i) += 5
GFAGNT_9632()
Stat.IncrementInt(StatId.TimesScoredWithGirl, 1)
goto @GFAGNT_8876

:GFAGNT_8840
if 
  is_global_var_bit_set_const $iDateReport {n} 3
goto_if_false @GFAGNT_8876
$iGFLikesPlayer($iGFidx,6i) -= 5
GFAGNT_9632()

:GFAGNT_8876
if and
  $iGFLikesPlayer($iGFidx,6i) <> -100
  $iGFLikesPlayer($iGFidx,6i) <> -999
goto_if_false @GFAGNT_8943
if 
  -15 >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFAGNT_8943
$iGFLikesPlayer($iGFidx,6i) = -99

:GFAGNT_8943
return 

:GFAGNT_8945
if and
  $iGFLikesPlayer($iGFidx,6i) <> -100
  $iGFLikesPlayer($iGFidx,6i) <> -999
goto_if_false @GFAGNT_9053
if 
  $iGFLikesPlayer($iGFidx,6i) <> -99
goto_if_false @GFAGNT_9053
if 
  -15 >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFAGNT_9053
$iPhoneState = 24
set_var_int_to_var_int $iCaller = $iGFidx
start_new_script @MOB_GF $iCaller 2 
return 

:GFAGNT_9053
return 

:GFAGNT_9055
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_9215 {caseNum1} 0 {caseLabel1} @GFAGNT_9118 {caseNum2} 1 {caseLabel2} @GFAGNT_9140 {caseNum3} 2 {caseLabel3} @GFAGNT_9152 {caseNum4} 3 {caseLabel4} @GFAGNT_9169 {caseNum5} 4 {caseLabel5} @GFAGNT_9186 {caseNum6} 5 {caseLabel6} @GFAGNT_9203 {caseNum7} -1 {caseLabel7} @GFAGNT_9215

:GFAGNT_9118
Streaming.MarkModelAsNoLongerNeeded(195)
Streaming.MarkModelAsNoLongerNeeded(352)
DecisionMaker.Remove($iGF_GlobalDM_Weak_Gang)
goto @GFAGNT_9215

:GFAGNT_9140
Streaming.MarkModelAsNoLongerNeeded(192)
goto @GFAGNT_9215

:GFAGNT_9152
Streaming.MarkModelAsNoLongerNeeded(191)
DecisionMaker.Remove($iGF_GlobalDM_Tough)
goto @GFAGNT_9215

:GFAGNT_9169
Streaming.MarkModelAsNoLongerNeeded(190)
DecisionMaker.Remove($iGF_GlobalDM_Tough)
goto @GFAGNT_9215

:GFAGNT_9186
Streaming.MarkModelAsNoLongerNeeded(193)
DecisionMaker.Remove($iGF_GlobalDM_Tough)
goto @GFAGNT_9215

:GFAGNT_9203
Streaming.MarkModelAsNoLongerNeeded(194)
goto @GFAGNT_9215

:GFAGNT_9215
if 
  is_global_var_bit_set_const $iDateReport {n} 6
goto_if_false @GFAGNT_9245
Char.Delete(2@)
goto @GFAGNT_9315

:GFAGNT_9245
if 
  is_global_var_bit_set_const $iDateReport {n} 22
goto_if_false @GFAGNT_9275
Char.Delete(2@)
goto @GFAGNT_9315

:GFAGNT_9275
if 
  $iGFLikesPlayer($iGFidx,6i) == -999
goto_if_false @GFAGNT_9310
Char.MarkAsNoLongerNeeded(2@)
goto @GFAGNT_9315

:GFAGNT_9310
Char.RemoveElegantly(2@)

:GFAGNT_9315
$iDanceGirlfriend = 0
if 
  is_global_var_bit_set_const $iDateReport {n} 21
goto_if_false @GFAGNT_9407
3@ = Clock.GetCurrentDayOfWeek()
3@ += 1
if 
  3@ > 7
goto_if_false @GFAGNT_9377
3@ = 1

:GFAGNT_9377
3@ += 22
set_global_var_bit_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_n} 3@
set_global_var_bit_const $iGFDiaryOfBusyHours($iGFidx,6i) {n} 31

:GFAGNT_9407
return 

:GFAGNT_9409
if 
  Player.IsPlaying($player1)
goto_if_false @GFAGNT_9473
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @GFAGNT_9466
3@ = 1
goto @GFAGNT_9473

:GFAGNT_9466
3@ = 0

:GFAGNT_9473
return 

:GFAGNT_9475
Stat.ShowUpdateStats(False)
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_9626 {caseNum1} 0 {caseLabel1} @GFAGNT_9542 {caseNum2} 1 {caseLabel2} @GFAGNT_9556 {caseNum3} 2 {caseLabel3} @GFAGNT_9570 {caseNum4} 3 {caseLabel4} @GFAGNT_9584 {caseNum5} 4 {caseLabel5} @GFAGNT_9598 {caseNum6} 5 {caseLabel6} @GFAGNT_9612 {caseNum7} -1 {caseLabel7} @GFAGNT_9626

:GFAGNT_9542
Stat.SetInt(StatId.GirlfriendDenise, 0)
goto @GFAGNT_9626

:GFAGNT_9556
Stat.SetInt(StatId.GirlfriendMichelle, 0)
goto @GFAGNT_9626

:GFAGNT_9570
Stat.SetInt(StatId.GirlfriendHelena, 0)
goto @GFAGNT_9626

:GFAGNT_9584
Stat.SetInt(StatId.GirlfriendBarbara, 0)
goto @GFAGNT_9626

:GFAGNT_9598
Stat.SetInt(StatId.GirlfriendKatie, 0)
goto @GFAGNT_9626

:GFAGNT_9612
Stat.SetInt(StatId.GirlfriendMillie, 0)
goto @GFAGNT_9626

:GFAGNT_9626
Stat.ShowUpdateStats(True)
return 

:GFAGNT_9632
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_10961 {caseNum1} 0 {caseLabel1} @GFAGNT_9695 {caseNum2} 1 {caseLabel2} @GFAGNT_9906 {caseNum3} 2 {caseLabel3} @GFAGNT_10117 {caseNum4} 3 {caseLabel4} @GFAGNT_10328 {caseNum5} 4 {caseLabel5} @GFAGNT_10539 {caseNum6} 5 {caseLabel6} @GFAGNT_10750 {caseNum7} -1 {caseLabel7} @GFAGNT_10961

:GFAGNT_9695
9@ = Stat.GetInt(StatId.GirlfriendDenise)
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[0] > 9@
goto_if_false @GFAGNT_9807
if 
  $iGFLikesPlayer[0] > 100
goto_if_false @GFAGNT_9747
$iGFLikesPlayer[0] = 100

:GFAGNT_9747
if 
  0 > $iGFLikesPlayer[0]
goto_if_false @GFAGNT_9779
Stat.SetInt(StatId.GirlfriendDenise, 0)
goto @GFAGNT_9800

:GFAGNT_9779
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[0]
abs_lvar_int 9@
Stat.IncrementInt(StatId.GirlfriendDenise, 9@)

:GFAGNT_9800
goto @GFAGNT_9899

:GFAGNT_9807
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[0]
goto_if_false @GFAGNT_9899
if 
  $iGFLikesPlayer[0] > 100
goto_if_false @GFAGNT_9851
$iGFLikesPlayer[0] = 100

:GFAGNT_9851
if 
  0 > $iGFLikesPlayer[0]
goto_if_false @GFAGNT_9883
Stat.SetInt(StatId.GirlfriendDenise, 0)
goto @GFAGNT_9899

:GFAGNT_9883
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[0]
Stat.DecrementInt(StatId.GirlfriendDenise, 9@)

:GFAGNT_9899
goto @GFAGNT_10961

:GFAGNT_9906
9@ = Stat.GetInt(StatId.GirlfriendMichelle)
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[1] > 9@
goto_if_false @GFAGNT_10018
if 
  $iGFLikesPlayer[1] > 100
goto_if_false @GFAGNT_9958
$iGFLikesPlayer[1] = 100

:GFAGNT_9958
if 
  0 > $iGFLikesPlayer[1]
goto_if_false @GFAGNT_9990
Stat.SetInt(StatId.GirlfriendMichelle, 0)
goto @GFAGNT_10011

:GFAGNT_9990
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[1]
abs_lvar_int 9@
Stat.IncrementInt(StatId.GirlfriendMichelle, 9@)

:GFAGNT_10011
goto @GFAGNT_10110

:GFAGNT_10018
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[1]
goto_if_false @GFAGNT_10110
if 
  $iGFLikesPlayer[1] > 100
goto_if_false @GFAGNT_10062
$iGFLikesPlayer[1] = 100

:GFAGNT_10062
if 
  0 > $iGFLikesPlayer[1]
goto_if_false @GFAGNT_10094
Stat.SetInt(StatId.GirlfriendMichelle, 0)
goto @GFAGNT_10110

:GFAGNT_10094
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[1]
Stat.DecrementInt(StatId.GirlfriendMichelle, 9@)

:GFAGNT_10110
goto @GFAGNT_10961

:GFAGNT_10117
9@ = Stat.GetInt(StatId.GirlfriendHelena)
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[2] > 9@
goto_if_false @GFAGNT_10229
if 
  $iGFLikesPlayer[2] > 100
goto_if_false @GFAGNT_10169
$iGFLikesPlayer[2] = 100

:GFAGNT_10169
if 
  0 > $iGFLikesPlayer[2]
goto_if_false @GFAGNT_10201
Stat.SetInt(StatId.GirlfriendHelena, 0)
goto @GFAGNT_10222

:GFAGNT_10201
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[2]
abs_lvar_int 9@
Stat.IncrementInt(StatId.GirlfriendHelena, 9@)

:GFAGNT_10222
goto @GFAGNT_10321

:GFAGNT_10229
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[2]
goto_if_false @GFAGNT_10321
if 
  $iGFLikesPlayer[2] > 100
goto_if_false @GFAGNT_10273
$iGFLikesPlayer[2] = 100

:GFAGNT_10273
if 
  0 > $iGFLikesPlayer[2]
goto_if_false @GFAGNT_10305
Stat.SetInt(StatId.GirlfriendHelena, 0)
goto @GFAGNT_10321

:GFAGNT_10305
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[2]
Stat.DecrementInt(StatId.GirlfriendHelena, 9@)

:GFAGNT_10321
goto @GFAGNT_10961

:GFAGNT_10328
9@ = Stat.GetInt(StatId.GirlfriendBarbara)
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[3] > 9@
goto_if_false @GFAGNT_10440
if 
  $iGFLikesPlayer[3] > 100
goto_if_false @GFAGNT_10380
$iGFLikesPlayer[3] = 100

:GFAGNT_10380
if 
  0 > $iGFLikesPlayer[3]
goto_if_false @GFAGNT_10412
Stat.SetInt(StatId.GirlfriendBarbara, 0)
goto @GFAGNT_10433

:GFAGNT_10412
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[3]
abs_lvar_int 9@
Stat.IncrementInt(StatId.GirlfriendBarbara, 9@)

:GFAGNT_10433
goto @GFAGNT_10532

:GFAGNT_10440
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[3]
goto_if_false @GFAGNT_10532
if 
  $iGFLikesPlayer[3] > 100
goto_if_false @GFAGNT_10484
$iGFLikesPlayer[3] = 100

:GFAGNT_10484
if 
  0 > $iGFLikesPlayer[3]
goto_if_false @GFAGNT_10516
Stat.SetInt(StatId.GirlfriendBarbara, 0)
goto @GFAGNT_10532

:GFAGNT_10516
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[3]
Stat.DecrementInt(StatId.GirlfriendBarbara, 9@)

:GFAGNT_10532
goto @GFAGNT_10961

:GFAGNT_10539
9@ = Stat.GetInt(StatId.GirlfriendKatie)
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[4] > 9@
goto_if_false @GFAGNT_10651
if 
  $iGFLikesPlayer[4] > 100
goto_if_false @GFAGNT_10591
$iGFLikesPlayer[4] = 100

:GFAGNT_10591
if 
  0 > $iGFLikesPlayer[4]
goto_if_false @GFAGNT_10623
Stat.SetInt(StatId.GirlfriendKatie, 0)
goto @GFAGNT_10644

:GFAGNT_10623
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[4]
abs_lvar_int 9@
Stat.IncrementInt(StatId.GirlfriendKatie, 9@)

:GFAGNT_10644
goto @GFAGNT_10743

:GFAGNT_10651
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[4]
goto_if_false @GFAGNT_10743
if 
  $iGFLikesPlayer[4] > 100
goto_if_false @GFAGNT_10695
$iGFLikesPlayer[4] = 100

:GFAGNT_10695
if 
  0 > $iGFLikesPlayer[4]
goto_if_false @GFAGNT_10727
Stat.SetInt(StatId.GirlfriendKatie, 0)
goto @GFAGNT_10743

:GFAGNT_10727
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[4]
Stat.DecrementInt(StatId.GirlfriendKatie, 9@)

:GFAGNT_10743
goto @GFAGNT_10961

:GFAGNT_10750
9@ = Stat.GetInt(StatId.GirlfriendMillie)
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[5] > 9@
goto_if_false @GFAGNT_10862
if 
  $iGFLikesPlayer[5] > 100
goto_if_false @GFAGNT_10802
$iGFLikesPlayer[5] = 100

:GFAGNT_10802
if 
  0 > $iGFLikesPlayer[5]
goto_if_false @GFAGNT_10834
Stat.SetInt(StatId.GirlfriendMillie, 0)
goto @GFAGNT_10855

:GFAGNT_10834
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[5]
abs_lvar_int 9@
Stat.IncrementInt(StatId.GirlfriendMillie, 9@)

:GFAGNT_10855
goto @GFAGNT_10954

:GFAGNT_10862
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[5]
goto_if_false @GFAGNT_10954
if 
  $iGFLikesPlayer[5] > 100
goto_if_false @GFAGNT_10906
$iGFLikesPlayer[5] = 100

:GFAGNT_10906
if 
  0 > $iGFLikesPlayer[5]
goto_if_false @GFAGNT_10938
Stat.SetInt(StatId.GirlfriendMillie, 0)
goto @GFAGNT_10954

:GFAGNT_10938
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[5]
Stat.DecrementInt(StatId.GirlfriendMillie, 9@)

:GFAGNT_10954
goto @GFAGNT_10961

:GFAGNT_10961
return 

:GFAGNT_10963
if 
  0@ <> 0
goto_if_false @GFAGNT_11002
GFAGNT_9055()
GFAGNT_8576()
0@ = 0

:GFAGNT_11002
4@ = -1
3@ = 0

:GFAGNT_11016
if 
  is_global_var_bit_set_lvar $iAgentFlags {var_n} 3@
goto_if_false @GFAGNT_11043
clear_global_var_bit_lvar $iAgentFlags {var_n} 3@

:GFAGNT_11043
3@ += 1
  3@ >= 6
goto_if_false @GFAGNT_11016
Stat.ShowUpdateStats(True)
$iGFTimeStep = 500
return 
get_latest_console_command v$GF_txtConsoleIn
if 
  not is_var_text_label16_empty v$GF_txtConsoleIn
goto_if_false @GFAGNT_13255
set_var_text_label16 v$GF_txtConsoleCheck = "DOCOOCHIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11145
set_global_var_bit_const $iActiveGF {n} 0
reset_latest_console_command 
return 

:GFAGNT_11145
set_var_text_label16 v$GF_txtConsoleCheck = "DOMICHELLE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11192
set_global_var_bit_const $iActiveGF {n} 1
reset_latest_console_command 
return 

:GFAGNT_11192
set_var_text_label16 v$GF_txtConsoleCheck = "DOKYLIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11236
set_global_var_bit_const $iActiveGF {n} 2
reset_latest_console_command 
return 

:GFAGNT_11236
set_var_text_label16 v$GF_txtConsoleCheck = "DOBARBARA"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11282
set_global_var_bit_const $iActiveGF {n} 3
reset_latest_console_command 
return 

:GFAGNT_11282
set_var_text_label16 v$GF_txtConsoleCheck = "DOSUZIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11326
set_global_var_bit_const $iActiveGF {n} 4
reset_latest_console_command 
return 

:GFAGNT_11326
set_var_text_label16 v$GF_txtConsoleCheck = "DOMILLIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11371
set_global_var_bit_const $iActiveGF {n} 5
reset_latest_console_command 
return 

:GFAGNT_11371
set_var_text_label16 v$GF_txtConsoleCheck = "FASTDATE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11471
set_global_var_bit_const $iActiveGF {n} 31
set_var_int_to_var_int $iGFLikesPlayer[0] = $iGFSelfRespect[0]
set_var_int_to_var_int $iGFLikesPlayer[1] = $iGFSelfRespect[1]
set_var_int_to_var_int $iGFLikesPlayer[3] = $iGFSelfRespect[3]
set_var_int_to_var_int $iGFLikesPlayer[2] = $iGFSelfRespect[2]
set_var_int_to_var_int $iGFLikesPlayer[4] = $iGFSelfRespect[4]
set_var_int_to_var_int $iGFLikesPlayer[5] = $iGFSelfRespect[5]
set_global_var_bit_const $iDateReport {n} 26
reset_latest_console_command 
return 

:GFAGNT_11471
set_var_text_label16 v$GF_txtConsoleCheck = "GOCOOCHIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11546
if 
  Player.IsPlaying($player1)
goto_if_false @GFAGNT_11542
Char.SetCoordinates($scplayer, 2405.212, -1720.688, 12.6365)

:GFAGNT_11542
reset_latest_console_command 
return 

:GFAGNT_11546
set_var_text_label16 v$GF_txtConsoleCheck = "GOMICHELLE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11622
if 
  Player.IsPlaying($player1)
goto_if_false @GFAGNT_11618
Char.SetCoordinates($scplayer, -1788.0, 1202.0, 30.0)

:GFAGNT_11618
reset_latest_console_command 
return 

:GFAGNT_11622
set_var_text_label16 v$GF_txtConsoleCheck = "GOKYLIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11695
if 
  Player.IsPlaying($player1)
goto_if_false @GFAGNT_11691
Char.SetCoordinates($scplayer, -371.4376, -1440.072, 24.7209)

:GFAGNT_11691
reset_latest_console_command 
return 

:GFAGNT_11695
set_var_text_label16 v$GF_txtConsoleCheck = "GOBARBARA"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11770
if 
  Player.IsPlaying($player1)
goto_if_false @GFAGNT_11766
Char.SetCoordinates($scplayer, -1400.0, 2640.0, -100.0)

:GFAGNT_11766
reset_latest_console_command 
return 

:GFAGNT_11770
set_var_text_label16 v$GF_txtConsoleCheck = "GOSUZIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11843
if 
  Player.IsPlaying($player1)
goto_if_false @GFAGNT_11839
Char.SetCoordinates($scplayer, -2570.511, 1139.582, 54.8547)

:GFAGNT_11839
reset_latest_console_command 
return 

:GFAGNT_11843
set_var_text_label16 v$GF_txtConsoleCheck = "GOMILLIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11917
if 
  Player.IsPlaying($player1)
goto_if_false @GFAGNT_11913
Char.SetCoordinates($scplayer, 2028.347, 2736.969, 10.8603)

:GFAGNT_11913
reset_latest_console_command 
return 

:GFAGNT_11917
set_var_text_label16 v$GF_txtConsoleCheck = "DATEFOOD"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11969
set_global_var_bit_const $iActiveGF {n} 31
set_global_var_bit_const $iDateReport {n} 27
reset_latest_console_command 
return 

:GFAGNT_11969
set_var_text_label16 v$GF_txtConsoleCheck = "DATEDRIVE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12064
set_global_var_bit_const $iActiveGF {n} 31
$iGFLikesPlayer[0] = 50
$iGFLikesPlayer[1] = 50
$iGFLikesPlayer[3] = 50
$iGFLikesPlayer[2] = 50
$iGFLikesPlayer[4] = 50
$iGFLikesPlayer[5] = 50
set_global_var_bit_const $iDateReport {n} 28
reset_latest_console_command 
return 

:GFAGNT_12064
set_var_text_label16 v$GF_txtConsoleCheck = "DATEDANCE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12159
set_global_var_bit_const $iActiveGF {n} 31
$iGFLikesPlayer[0] = 50
$iGFLikesPlayer[1] = 50
$iGFLikesPlayer[3] = 50
$iGFLikesPlayer[2] = 50
$iGFLikesPlayer[4] = 50
$iGFLikesPlayer[5] = 50
set_global_var_bit_const $iDateReport {n} 29
reset_latest_console_command 
return 

:GFAGNT_12159
set_var_text_label16 v$GF_txtConsoleCheck = "DATESPANK"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12212
set_global_var_bit_const $iActiveGF {n} 31
set_global_var_bit_const $iDateReport {n} 30
reset_latest_console_command 
return 

:GFAGNT_12212
set_var_text_label16 v$GF_txtConsoleCheck = "DATESHEDRIVES"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12276
set_global_var_bit_const $iActiveGF {n} 31
$iGFLikesPlayer[1] = 50
set_global_var_bit_const $iDateReport {n} 31
reset_latest_console_command 
return 

:GFAGNT_12276
set_var_text_label16 v$GF_txtConsoleCheck = "MEETMICHELLE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12364
if 
  Player.IsPlaying($player1)
goto_if_false @GFAGNT_12360
Char.SetCoordinates($scplayer, -2026.92, -99.9395, 34.1641)
Char.SetHeading($scplayer, 180.0)

:GFAGNT_12360
reset_latest_console_command 
return 

:GFAGNT_12364
set_var_text_label16 v$GF_txtConsoleCheck = "MEETKYLIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12456
if 
  Player.IsPlaying($player1)
goto_if_false @GFAGNT_12452
$flag_la1fin1_mission_counter = 2
Char.SetCoordinates($scplayer, 243.9633, -161.2493, 0.5781)
Char.SetHeading($scplayer, 291.5735)

:GFAGNT_12452
reset_latest_console_command 
return 

:GFAGNT_12456
set_var_text_label16 v$GF_txtConsoleCheck = "MEETBARBARA"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12543
if 
  Player.IsPlaying($player1)
goto_if_false @GFAGNT_12539
Char.SetCoordinates($scplayer, -1411.294, 2637.609, 54.6875)
Char.SetHeading($scplayer, 348.9253)

:GFAGNT_12539
reset_latest_console_command 
return 

:GFAGNT_12543
set_var_text_label16 v$GF_txtConsoleCheck = "MEETSUZIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12628
if 
  Player.IsPlaying($player1)
goto_if_false @GFAGNT_12624
Char.SetCoordinates($scplayer, -2266.253, -155.7216, 34.3125)
Char.SetHeading($scplayer, 85.0)

:GFAGNT_12624
reset_latest_console_command 
return 

:GFAGNT_12628
set_var_text_label16 v$GF_txtConsoleCheck = "GIMPSUIT"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12712
if 
  Player.IsPlaying($player1)
goto_if_false @GFAGNT_12708
Player.GiveClothesOutsideShop($player1, "GIMPLEG", "GIMPLEG", BodyPart.SpecialCostume)
Player.BuildModel($player1)

:GFAGNT_12708
reset_latest_console_command 
return 

:GFAGNT_12712
set_var_text_label16 v$GF_txtConsoleCheck = "TWOTIMING"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12765
set_global_var_bit_const $iActiveGF {n} 31
set_global_var_bit_const $iDateReport {n} 25
reset_latest_console_command 
return 

:GFAGNT_12765
set_var_text_label16 v$GF_txtConsoleCheck = "ELEGANTMAN"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12847
$iGFDesiredSexAppeal[0] = 0
$iGFDesiredSexAppeal[1] = 0
$iGFDesiredSexAppeal[3] = 0
$iGFDesiredSexAppeal[2] = 0
$iGFDesiredSexAppeal[4] = 0
$iGFDesiredSexAppeal[5] = 0
reset_latest_console_command 
return 

:GFAGNT_12847
set_var_text_label16 v$GF_txtConsoleCheck = "SHOWENTRY"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12951
World.SwitchEntryExit('FDREST1', True)
World.SwitchEntryExit('REST2', True)
World.SwitchEntryExit('DINER1', True)
World.SwitchEntryExit('DINER2', True)
World.SwitchEntryExit('TSDINER', True)
reset_latest_console_command 
return 

:GFAGNT_12951
set_var_text_label16 v$GF_txtConsoleCheck = "HIDEENTRY"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13042
World.SwitchEntryExit('FDREST1', False)
World.SwitchEntryExit('REST2', False)
World.SwitchEntryExit('DINER1', False)
World.SwitchEntryExit('DINER2', False)
reset_latest_console_command 
return 

:GFAGNT_13042
set_var_text_label16 v$GF_txtConsoleCheck = "UNCENSORED"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13089
$iCensoredVersion = 0
reset_latest_console_command 
return 

:GFAGNT_13089
set_var_text_label16 v$GF_txtConsoleCheck = "STATSUP"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13144
$iGFLikesPlayer($iGFidx,6i) += 10
GFAGNT_9632()
reset_latest_console_command 
return 

:GFAGNT_13144
set_var_text_label16 v$GF_txtConsoleCheck = "STATSDOWN"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13201
$iGFLikesPlayer($iGFidx,6i) -= 10
GFAGNT_9632()
reset_latest_console_command 
return 

:GFAGNT_13201
set_var_text_label16 v$GF_txtConsoleCheck = "DUMPME"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13255
$iGFLikesPlayer($iGFidx,6i) = -15
GFAGNT_9632()
reset_latest_console_command 
return 

:GFAGNT_13255
return 
write_debug "I__________________________I"
write_debug "H"
write_debug "G"
write_debug "F"
write_debug "E"
write_debug "D"
write_debug s$txtCurrZone
write_debug_with_int "IGFIDX" {_p2} $iGFidx
switch_start 0@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @GFAGNT_13490 {caseNum1} 0 {caseLabel1} @GFAGNT_13395 {caseNum2} 1 {caseLabel2} @GFAGNT_13414 {caseNum3} 2 {caseLabel3} @GFAGNT_13433 {caseNum4} 3 {caseLabel4} @GFAGNT_13452 {caseNum5} 4 {caseLabel5} @GFAGNT_13471 {caseNum6} -1 {caseLabel6} @GFAGNT_13519 {caseNum7} -1 {caseLabel7} @GFAGNT_13519

:GFAGNT_13395
write_debug "STATE0__"
goto @GFAGNT_13519

:GFAGNT_13414
write_debug "STATE1__"
goto @GFAGNT_13519

:GFAGNT_13433
write_debug "STATE2__"
goto @GFAGNT_13519

:GFAGNT_13452
write_debug "STATE3__"
goto @GFAGNT_13519

:GFAGNT_13471
write_debug "STATE4__"
goto @GFAGNT_13519

:GFAGNT_13490
write_debug "UNTRAPPED_STATE___"
goto @GFAGNT_13519

:GFAGNT_13519
write_debug "I__________________________I"
return 

:Noname_7
start_new_script @INTMAN 
terminate_this_script 

:INTMAN
script_name 'INTMAN'
$iGlobalPedPanicDM = -1
if 
  $iGlobalPedPanicDM == 9999
goto_if_false @INTMAN_57
$iGlobalPedPanicDM = DecisionMakerChar.Copy(65543)
$iGlobalShopkeeperDM = DecisionMakerChar.Copy(65543)

:INTMAN_57
if 
  Player.IsPlaying($player1)
goto_if_false @INTMAN_80
INTMAN_91()

:INTMAN_80
wait 0
goto @INTMAN_57

:INTMAN_91
switch_start 0@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @INTMAN_182 {caseNum1} 0 {caseLabel1} @INTMAN_154 {caseNum2} 1 {caseLabel2} @INTMAN_168 {caseNum3} -1 {caseLabel3} @INTMAN_182 {caseNum4} -1 {caseLabel4} @INTMAN_182 {caseNum5} -1 {caseLabel5} @INTMAN_182 {caseNum6} -1 {caseLabel6} @INTMAN_182 {caseNum7} -1 {caseLabel7} @INTMAN_182

:INTMAN_154
INTMAN_184()
goto @INTMAN_182

:INTMAN_168
INTMAN_2909()
goto @INTMAN_182

:INTMAN_182
return 

:INTMAN_184
$iAreaCode = Char.GetAreaVisible($scplayer)
if 
  $iAreaCode <> 0
goto_if_false @INTMAN_2907
v$txtEntryExit = Char.GetNameOfEntryExitUsed($scplayer)
if 
  not is_var_text_label16_empty v$txtEntryExit
goto_if_false @INTMAN_2907
set_var_int_to_var_int $iStoredAreaCode = $iAreaCode
if 
  Player.IsPlaying($player1)
goto_if_false @INTMAN_266
$iWantedOnEntry = Player.StoreWantedLevel($player1)

:INTMAN_266
s$shop_name = Shopping.GetLoaded()
$iCreateDecisionMakers = 0
$iTerminateAllAmbience = 0
2@ = 0
if and
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CHANGER"
  $iAreaCode == 14
goto_if_false @INTMAN_384
1@ = StreamedScript.GetNumberOfInstances(63)
if 
  1@ == 0
goto_if_false @INTMAN_384
StreamedScript.Stream(63)
Streaming.LoadAllModelsNow
if 
  StreamedScript.HasLoaded(63)
goto_if_false @INTMAN_384
StreamedScript.StartNew(63)
0@ += 1
return 

:INTMAN_384
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CASINO2"
goto_if_false @INTMAN_751
1@ = StreamedScript.GetNumberOfInstances(38)
if 
  1@ == 0
goto_if_false @INTMAN_464
StreamedScript.Stream(38)

:INTMAN_464
1@ = StreamedScript.GetNumberOfInstances(39)
if 
  1@ == 0
goto_if_false @INTMAN_493
StreamedScript.Stream(39)

:INTMAN_493
1@ = StreamedScript.GetNumberOfInstances(37)
if 
  1@ == 0
goto_if_false @INTMAN_522
StreamedScript.Stream(37)

:INTMAN_522
1@ = StreamedScript.GetNumberOfInstances(27)
if 
  1@ == 0
goto_if_false @INTMAN_551
StreamedScript.Stream(27)

:INTMAN_551
Streaming.RequestAnimation("BAR")
Streaming.RequestAnimation("CASINO")
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @INTMAN_609
Streaming.RequestModel(124)
Streaming.RequestModel(126)
Streaming.RequestModel(125)
Streaming.RequestModel(214)

:INTMAN_609
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @INTMAN_648
Streaming.RequestModel(163)
Streaming.RequestModel(164)
Streaming.RequestModel(263)

:INTMAN_648
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CASINO2"
goto_if_false @INTMAN_688
Streaming.RequestModel(163)
Streaming.RequestModel(164)
Streaming.RequestModel(172)

:INTMAN_688
Streaming.LoadAllModelsNow
if 
  StreamedScript.HasLoaded(27)
goto_if_false @INTMAN_710
StreamedScript.StartNew(27)

:INTMAN_710
if and
  StreamedScript.HasLoaded(38)
  StreamedScript.HasLoaded(39)
  StreamedScript.HasLoaded(37)
  StreamedScript.HasLoaded(27)
goto_if_false @INTMAN_751
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_751
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR2"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "UFOBAR"
goto_if_false @INTMAN_1021
1@ = StreamedScript.GetNumberOfInstances(38)
if 
  1@ == 0
goto_if_false @INTMAN_826
StreamedScript.Stream(38)

:INTMAN_826
1@ = StreamedScript.GetNumberOfInstances(37)
if 
  1@ == 0
goto_if_false @INTMAN_855
StreamedScript.Stream(37)

:INTMAN_855
1@ = StreamedScript.GetNumberOfInstances(28)
if 
  1@ == 0
goto_if_false @INTMAN_884
StreamedScript.Stream(28)

:INTMAN_884
1@ = StreamedScript.GetNumberOfInstances(35)
if 
  1@ == 0
goto_if_false @INTMAN_913
StreamedScript.Stream(35)

:INTMAN_913
Streaming.RequestAnimation("BAR")
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
goto_if_false @INTMAN_953
Streaming.RequestAnimation("DANCING")

:INTMAN_953
Streaming.RequestModel(172)
Streaming.LoadAllModelsNow
if 
  StreamedScript.HasLoaded(28)
goto_if_false @INTMAN_980
StreamedScript.StartNew(28)

:INTMAN_980
if and
  StreamedScript.HasLoaded(38)
  StreamedScript.HasLoaded(37)
  StreamedScript.HasLoaded(28)
  StreamedScript.HasLoaded(35)
goto_if_false @INTMAN_1021
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_1021
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "GENOTB"
goto_if_false @INTMAN_1219
1@ = StreamedScript.GetNumberOfInstances(40)
if 
  1@ == 0
goto_if_false @INTMAN_1074
StreamedScript.Stream(40)

:INTMAN_1074
1@ = StreamedScript.GetNumberOfInstances(37)
if 
  1@ == 0
goto_if_false @INTMAN_1103
StreamedScript.Stream(37)

:INTMAN_1103
1@ = StreamedScript.GetNumberOfInstances(30)
if 
  1@ == 0
goto_if_false @INTMAN_1132
StreamedScript.Stream(30)

:INTMAN_1132
Streaming.RequestAnimation("OTB")
Streaming.RequestAnimation("INT_SHOP")
Streaming.RequestModel(11)
Streaming.RequestModel(172)
Streaming.LoadAllModelsNow
if 
  StreamedScript.HasLoaded(30)
goto_if_false @INTMAN_1182
StreamedScript.StartNew(30)

:INTMAN_1182
if and
  StreamedScript.HasLoaded(40)
  StreamedScript.HasLoaded(37)
  StreamedScript.HasLoaded(30)
goto_if_false @INTMAN_1219
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_1219
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "LASTRIP"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "STRIP2"
goto_if_false @INTMAN_1467
1@ = StreamedScript.GetNumberOfInstances(38)
if 
  1@ == 0
goto_if_false @INTMAN_1286
StreamedScript.Stream(38)

:INTMAN_1286
1@ = StreamedScript.GetNumberOfInstances(39)
if 
  1@ == 0
goto_if_false @INTMAN_1315
StreamedScript.Stream(39)

:INTMAN_1315
1@ = StreamedScript.GetNumberOfInstances(37)
if 
  1@ == 0
goto_if_false @INTMAN_1344
StreamedScript.Stream(37)

:INTMAN_1344
1@ = StreamedScript.GetNumberOfInstances(31)
if 
  1@ == 0
goto_if_false @INTMAN_1373
StreamedScript.Stream(31)

:INTMAN_1373
Streaming.RequestAnimation("BAR")
Streaming.RequestAnimation("STRIP")
Streaming.RequestModel(163)
Streaming.RequestModel(164)
Streaming.RequestModel(172)
Streaming.LoadAllModelsNow
if 
  StreamedScript.HasLoaded(31)
goto_if_false @INTMAN_1426
StreamedScript.StartNew(31)

:INTMAN_1426
if and
  StreamedScript.HasLoaded(38)
  StreamedScript.HasLoaded(39)
  StreamedScript.HasLoaded(37)
  StreamedScript.HasLoaded(31)
goto_if_false @INTMAN_1467
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_1467
if 
  $second_menu_item_picked_wardrobe == 0
goto_if_false @INTMAN_1657
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CSCHP"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CSSPRT"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "LACS1"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CLOTHGP"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CSDESGN"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CSEXL"
goto_if_false @INTMAN_1657
1@ = StreamedScript.GetNumberOfInstances(64)
if 
  1@ == 0
goto_if_false @INTMAN_1602
StreamedScript.Stream(64)

:INTMAN_1602
Streaming.RequestAnimation("INT_SHOP")
Streaming.LoadAllModelsNow
if 
  StreamedScript.HasLoaded(64)
goto_if_false @INTMAN_1657
$iSetClothesPanic = 0
StreamedScript.StartNew(64)
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_1657
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDPIZA"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDCHICK"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDBURG"
goto_if_false @INTMAN_2154
1@ = StreamedScript.GetNumberOfInstances(65)
if 
  1@ == 0
goto_if_false @INTMAN_1737
StreamedScript.Stream(65)

:INTMAN_1737
1@ = StreamedScript.GetNumberOfInstances(29)
if 
  1@ == 0
goto_if_false @INTMAN_1766
StreamedScript.Stream(29)

:INTMAN_1766
1@ = StreamedScript.GetNumberOfInstances(36)
if 
  1@ == 0
goto_if_false @INTMAN_1795
StreamedScript.Stream(36)

:INTMAN_1795
1@ = StreamedScript.GetNumberOfInstances(37)
if 
  1@ == 0
goto_if_false @INTMAN_1824
StreamedScript.Stream(37)

:INTMAN_1824
Streaming.RequestAnimation("FOOD")
Streaming.RequestAnimation("INT_SHOP")
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDPIZA"
goto_if_false @INTMAN_1885
Streaming.RequestModel(155)
Streaming.RequestModel(#PIZZAHIGH)
Streaming.RequestModel(#CJ_PIZZA_1)
Streaming.RequestModel(#CJ_PIZZA_2)

:INTMAN_1885
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDCHICK"
goto_if_false @INTMAN_1927
Streaming.RequestModel(167)
Streaming.RequestModel(#BURGERHIGH)
Streaming.RequestModel(#CJ_BURG_1)
Streaming.RequestModel(#CJ_BURG_2)

:INTMAN_1927
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDBURG"
goto_if_false @INTMAN_1968
Streaming.RequestModel(205)
Streaming.RequestModel(#BURGERHIGH)
Streaming.RequestModel(#CJ_BURG_1)
Streaming.RequestModel(#CJ_BURG_2)

:INTMAN_1968
Streaming.LoadAllModelsNow
if 
  StreamedScript.HasLoaded(65)
goto_if_false @INTMAN_1990
StreamedScript.StartNew(65)

:INTMAN_1990
if 
  StreamedScript.HasLoaded(29)
goto_if_false @INTMAN_2113
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDPIZA"
goto_if_false @INTMAN_2043
StreamedScript.StartNew(29, 0)
goto @INTMAN_2113

:INTMAN_2043
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDCHICK"
goto_if_false @INTMAN_2082
StreamedScript.StartNew(29, 1)
goto @INTMAN_2113

:INTMAN_2082
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDBURG"
goto_if_false @INTMAN_2113
StreamedScript.StartNew(29, 2)

:INTMAN_2113
if and
  StreamedScript.HasLoaded(65)
  StreamedScript.HasLoaded(29)
  StreamedScript.HasLoaded(36)
  StreamedScript.HasLoaded(37)
goto_if_false @INTMAN_2154
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_2154
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BARBERS"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BARBER2"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BARBER3"
goto_if_false @INTMAN_2272
1@ = StreamedScript.GetNumberOfInstances(62)
if 
  1@ == 0
goto_if_false @INTMAN_2272
StreamedScript.Stream(62)
Streaming.LoadAllModelsNow
if 
  StreamedScript.HasLoaded(62)
goto_if_false @INTMAN_2272
StreamedScript.StartNew(62)
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_2272
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TATTOO"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TATTO2"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TATTO3"
goto_if_false @INTMAN_2387
1@ = StreamedScript.GetNumberOfInstances(61)
if 
  1@ == 0
goto_if_false @INTMAN_2387
StreamedScript.Stream(61)
Streaming.LoadAllModelsNow
if 
  StreamedScript.HasLoaded(61)
goto_if_false @INTMAN_2387
StreamedScript.StartNew(61)
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_2387
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "RCPLAY"
goto_if_false @INTMAN_2529
1@ = StreamedScript.GetNumberOfInstances(34)
if 
  1@ == 0
goto_if_false @INTMAN_2440
StreamedScript.Stream(34)

:INTMAN_2440
1@ = StreamedScript.GetNumberOfInstances(37)
if 
  1@ == 0
goto_if_false @INTMAN_2469
StreamedScript.Stream(37)

:INTMAN_2469
Streaming.RequestModel(217)
Streaming.LoadAllModelsNow
if 
  StreamedScript.HasLoaded(34)
goto_if_false @INTMAN_2496
StreamedScript.StartNew(34)

:INTMAN_2496
if and
  StreamedScript.HasLoaded(34)
  StreamedScript.HasLoaded(37)
goto_if_false @INTMAN_2529
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_2529
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "POLICE1"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "POLICE2"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "POLICE3"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "POLICE4"
goto_if_false @INTMAN_2661
$iCheckForWeapons = 1
$iCreateDecisionMakers = 1
Streaming.RequestAnimation("COP_AMBIENT")
Streaming.RequestAnimation("INT_OFFICE")
Streaming.RequestAnimation("GANGS")
Streaming.RequestModel(#CIGAR)
Streaming.LoadAllModelsNow
0@ += 1

:INTMAN_2661
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "AMMUN1"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "AMMUN2"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "AMMUN3"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "AMMUN4"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "AMMUN5"
goto_if_false @INTMAN_2802
1@ = StreamedScript.GetNumberOfInstances(60)
if 
  1@ == 0
goto_if_false @INTMAN_2802
StreamedScript.Stream(60)
Streaming.LoadAllModelsNow
if 
  StreamedScript.HasLoaded(60)
goto_if_false @INTMAN_2802
StreamedScript.StartNew(60)
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_2802
if 
  $iCreateDecisionMakers == 1
goto_if_false @INTMAN_2907
if 
  not DecisionMaker.DoesExist($iGlobalPedPanicDM)
goto_if_false @INTMAN_2860
$iGlobalPedPanicDM = DecisionMakerChar.Copy(65543)
DecisionMakerChar.ClearEventResponse($iGlobalPedPanicDM, 27)
DecisionMakerChar.ClearEventResponse($iGlobalPedPanicDM, 48)

:INTMAN_2860
if 
  not DecisionMaker.DoesExist($iGlobalShopkeeperDM)
goto_if_false @INTMAN_2907
$iGlobalShopkeeperDM = DecisionMakerChar.Copy(65543)
DecisionMakerChar.ClearEventResponse($iGlobalShopkeeperDM, 27)
DecisionMakerChar.ClearEventResponse($iGlobalShopkeeperDM, 48)
DecisionMakerChar.ClearEventResponse($iGlobalShopkeeperDM, 9)

:INTMAN_2907
return 

:INTMAN_2909
$iAreaCode = Char.GetAreaVisible($scplayer)
if 
  not is_int_var_equal_to_int_var $iAreaCode == $iStoredAreaCode
goto_if_false @INTMAN_2985
INTMAN_3069()
$iTerminateAllAmbience = 0
2@ = 0
$iCheckForWeapons = 0
s$shop_name = Shopping.GetLoaded()
0@ -= 1
return 
goto @INTMAN_3067

:INTMAN_2985
if 
  $iCheckForWeapons == 1
goto_if_false @INTMAN_3028
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.AnyMelee)
goto_if_false @INTMAN_3028
Player.AlterWantedLevelNoDrop($player1, 2)

:INTMAN_3028
if and
  $iTerminateAllAmbience == 1
  2@ == 0
goto_if_false @INTMAN_3067
INTMAN_3069()
2@ = 1

:INTMAN_3067
return 

:INTMAN_3069
Streaming.RemoveAnimation("BAR")
Streaming.RemoveAnimation("CASINO")
Streaming.RemoveAnimation("DANCING")
Streaming.RemoveAnimation("OTB")
Streaming.RemoveAnimation("INT_SHOP")
Streaming.RemoveAnimation("STRIP")
Streaming.RemoveAnimation("FOOD")
Streaming.RemoveAnimation("COP_AMBIENT")
Streaming.RemoveAnimation("INT_OFFICE")
Streaming.RemoveAnimation("GANGS")
Streaming.MarkModelAsNoLongerNeeded(#CIGAR)
Streaming.MarkModelAsNoLongerNeeded(124)
Streaming.MarkModelAsNoLongerNeeded(126)
Streaming.MarkModelAsNoLongerNeeded(125)
Streaming.MarkModelAsNoLongerNeeded(214)
Streaming.MarkModelAsNoLongerNeeded(263)
Streaming.MarkModelAsNoLongerNeeded(163)
Streaming.MarkModelAsNoLongerNeeded(164)
Streaming.MarkModelAsNoLongerNeeded(172)
Streaming.MarkModelAsNoLongerNeeded(11)
Streaming.MarkModelAsNoLongerNeeded(155)
Streaming.MarkModelAsNoLongerNeeded(#PIZZAHIGH)
Streaming.MarkModelAsNoLongerNeeded(#CJ_PIZZA_1)
Streaming.MarkModelAsNoLongerNeeded(#CJ_PIZZA_2)
Streaming.MarkModelAsNoLongerNeeded(167)
Streaming.MarkModelAsNoLongerNeeded(#BURGERHIGH)
Streaming.MarkModelAsNoLongerNeeded(#CJ_BURG_1)
Streaming.MarkModelAsNoLongerNeeded(#CJ_BURG_2)
Streaming.MarkModelAsNoLongerNeeded(205)
Streaming.MarkModelAsNoLongerNeeded(217)
StreamedScript.MarkAsNoLongerNeeded(63)
StreamedScript.MarkAsNoLongerNeeded(64)
StreamedScript.MarkAsNoLongerNeeded(65)
StreamedScript.MarkAsNoLongerNeeded(62)
StreamedScript.MarkAsNoLongerNeeded(61)
StreamedScript.MarkAsNoLongerNeeded(60)
StreamedScript.MarkAsNoLongerNeeded(27)
StreamedScript.MarkAsNoLongerNeeded(28)
StreamedScript.MarkAsNoLongerNeeded(30)
StreamedScript.MarkAsNoLongerNeeded(31)
StreamedScript.MarkAsNoLongerNeeded(29)
StreamedScript.MarkAsNoLongerNeeded(34)
StreamedScript.MarkAsNoLongerNeeded(35)
StreamedScript.MarkAsNoLongerNeeded(36)
StreamedScript.MarkAsNoLongerNeeded(37)
StreamedScript.MarkAsNoLongerNeeded(38)
StreamedScript.MarkAsNoLongerNeeded(39)
StreamedScript.MarkAsNoLongerNeeded(40)
DecisionMaker.Remove($iGlobalPedPanicDM)
DecisionMaker.Remove($iGlobalShopkeeperDM)
$iGlobalPedPanicDM = -1
$iGlobalShopkeeperDM = -1
return 

:Noname_8
terminate_this_script 

:A_CONT
script_name 'A_CONT'
$actual_SLOT[0] = 1
$actual_SLOT[1] = 2
$SLOT_status[0] = -3
$SLOT_status[1] = -3
$SLOT_priority[0] = 0
$SLOT_priority[1] = 0
$SLOT_play_status[0] = 0
$SLOT_play_status[0] = 0
$current_slot = 0
$preload_slot = 1
set_var_int_to_var_int $SLOT_ped[0] = $scplayer
set_var_int_to_var_int $SLOT_ped[1] = $scplayer

:A_CONT_97
wait 0
0@ = 0
1@ = 1
if or
  $SLOT_status[0] >= -2
  $SLOT_status[1] >= -2
goto_if_false @A_CONT_1046

:A_CONT_140
if 
  2 > 0@
goto_if_false @A_CONT_1039
switch_start $SLOT_status(0@,2i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @A_CONT_1018 {caseNum1} -2 {caseLabel1} @A_CONT_893 {caseNum2} -1 {caseLabel2} @A_CONT_225 {caseNum3} 0 {caseLabel3} @A_CONT_254 {caseNum4} 1 {caseLabel4} @A_CONT_621 {caseNum5} 2 {caseLabel5} @A_CONT_775 {caseNum6} -1 {caseLabel6} @A_CONT_1018 {caseNum7} -1 {caseLabel7} @A_CONT_1018

:A_CONT_225
$SLOT_priority(0@,2i) = 0
$SLOT_status(0@,2i) = -3
goto @A_CONT_1018

:A_CONT_254
if 
  not Audio.HasMissionAudioLoaded($actual_SLOT(0@,2i))
goto_if_false @A_CONT_281
goto @A_CONT_1018

:A_CONT_281
if 
  is_int_lvar_equal_to_int_var 0@ == $preload_slot
goto_if_false @A_CONT_486
if 
  is_int_var_greater_than_int_var $SLOT_priority(0@,2i) > $SLOT_priority(1@,2i)
goto_if_false @A_CONT_468
set_var_int_to_lvar_int $current_slot = 0@
set_var_int_to_lvar_int $preload_slot = 1@
Audio.ClearMissionAudio($actual_SLOT($preload_slot,2i))
Text.ClearThisPrint($SLOT_text($preload_slot,2s))
if 
  $SLOT_play_status($preload_slot,2i) <> 0
goto_if_false @A_CONT_450
if 
  not Char.IsDead($SLOT_ped($preload_slot,2i))
goto_if_false @A_CONT_450
Char.StopFacialTalk($SLOT_ped($preload_slot,2i))
if 
  not is_int_var_equal_to_int_var $SLOT_ped($preload_slot,2i) == $SLOT_ped($current_slot,2i)
goto_if_false @A_CONT_450
Char.ShutUpForScriptedSpeech($SLOT_ped($preload_slot,2i), False)

:A_CONT_450
$SLOT_status($preload_slot,2i) = -1
goto @A_CONT_486

:A_CONT_468
$SLOT_status(0@,2i) = 1
goto @A_CONT_1018

:A_CONT_486
if 
  $SLOT_play_status(0@,2i) <> 0
goto_if_false @A_CONT_580
if 
  not Char.IsDead($SLOT_ped(0@,2i))
goto_if_false @A_CONT_580
Char.StartFacialTalk($SLOT_ped(0@,2i), 999999)
if 
  $SLOT_play_status(0@,2i) == 1
goto_if_false @A_CONT_580
Audio.AttachMissionAudioToChar($actual_SLOT(0@,2i), $SLOT_ped(0@,2i))

:A_CONT_580
Audio.PlayMissionAudio($actual_SLOT(0@,2i))
Text.PrintNow($SLOT_text(0@,2s), 10000, 1)
$SLOT_status(0@,2i) = 2
goto @A_CONT_1018

:A_CONT_621
if 
  is_int_var_equal_to_int_lvar $current_slot == 0@
goto_if_false @A_CONT_768
if 
  $SLOT_play_status(0@,2i) <> 0
goto_if_false @A_CONT_734
if 
  not Char.IsDead($SLOT_ped(0@,2i))
goto_if_false @A_CONT_734
Char.StartFacialTalk($SLOT_ped(0@,2i), 999999)
if 
  $SLOT_play_status(0@,2i) == 1
goto_if_false @A_CONT_734
Audio.AttachMissionAudioToChar($actual_SLOT(0@,2i), $SLOT_ped(0@,2i))

:A_CONT_734
Audio.PlayMissionAudio($actual_SLOT(0@,2i))
Text.PrintNow($SLOT_text(0@,2s), 10000, 1)
$SLOT_status(0@,2i) = 2

:A_CONT_768
goto @A_CONT_1018

:A_CONT_775
if 
  Audio.HasMissionAudioFinished($actual_SLOT(0@,2i))
goto_if_false @A_CONT_837
if 
  is_int_var_equal_to_int_lvar $current_slot == 0@
goto_if_false @A_CONT_830
set_var_int_to_lvar_int $preload_slot = 0@
set_var_int_to_lvar_int $current_slot = 1@

:A_CONT_830
goto @A_CONT_893

:A_CONT_837
if 
  $SLOT_play_status(0@,2i) <> 0
goto_if_false @A_CONT_886
if 
  not Char.IsDead($SLOT_ped(0@,2i))
goto_if_false @A_CONT_886
goto @A_CONT_1018

:A_CONT_886
goto @A_CONT_1018

:A_CONT_893
Audio.ClearMissionAudio($actual_SLOT(0@,2i))
Text.ClearThisPrint($SLOT_text(0@,2s))
if 
  $SLOT_play_status(0@,2i) <> 0
goto_if_false @A_CONT_1000
if 
  not Char.IsDead($SLOT_ped(0@,2i))
goto_if_false @A_CONT_1000
Char.StopFacialTalk($SLOT_ped(0@,2i))
if 
  not is_int_var_equal_to_int_var $SLOT_ped(0@,2i) == $SLOT_ped(1@,2i)
goto_if_false @A_CONT_1000
Char.ShutUpForScriptedSpeech($SLOT_ped(0@,2i), False)

:A_CONT_1000
$SLOT_status(0@,2i) = -1
goto @A_CONT_1018

:A_CONT_1018
0@ += 1
1@ -= 1
goto @A_CONT_140

:A_CONT_1039
goto @A_CONT_1060

:A_CONT_1046
$SLOT_status[0] = -4
$SLOT_status[1] = -4

:A_CONT_1060
goto @A_CONT_97

:A_ALAP
script_name 'A_ALAP'
if 
  is_int_lvar_greater_or_equal_to_int_var 1@ >= $SLOT_priority($preload_slot,2i)
goto_if_false @A_ALAP_317
set_var_int_to_var_int $SLOT_sample($preload_slot,2i) = $load_sample
set_var_text_label $SLOT_text($preload_slot,2s) = s$load_text
Audio.ClearMissionAudio($actual_SLOT($preload_slot,2i))
Audio.LoadMissionAudio($actual_SLOT($preload_slot,2i), $SLOT_sample($preload_slot,2i))
if 
  $SLOT_play_status($preload_slot,2i) <> 0
goto_if_false @A_ALAP_159
if 
  not Char.IsDead($SLOT_ped($preload_slot,2i))
goto_if_false @A_ALAP_159
if 
  not is_int_var_equal_to_int_lvar $SLOT_ped($preload_slot,2i) == 2@
goto_if_false @A_ALAP_159
Char.ShutUpForScriptedSpeech($SLOT_ped($preload_slot,2i), False)

:A_ALAP_159
$SLOT_status($preload_slot,2i) = 0
set_var_int_to_lvar_int $SLOT_play_status($preload_slot,2i) = 0@
if 
  $SLOT_play_status($preload_slot,2i) <> 0
goto_if_false @A_ALAP_293
if 
  $SLOT_play_status($preload_slot,2i) == 0
goto_if_false @A_ALAP_250
2@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)

:A_ALAP_250
set_var_int_to_lvar_int $SLOT_ped($preload_slot,2i) = 2@
if 
  not Char.IsDead($SLOT_ped($preload_slot,2i))
goto_if_false @A_ALAP_293
Char.ShutUpForScriptedSpeech($SLOT_ped($preload_slot,2i), True)

:A_ALAP_293
set_var_int_to_lvar_int $SLOT_play_status($preload_slot,2i) = 0@
set_var_int_to_lvar_int $SLOT_priority($preload_slot,2i) = 1@

:A_ALAP_317
terminate_this_script 

:A_TERM
script_name 'A_TERM'
terminate_all_scripts_with_this_name 'A_CONT'
terminate_all_scripts_with_this_name 'A_ALAP'
terminate_this_script 

:HJ
set_deatharrest_state 0
script_name 'HJ'

:HJ_15
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @HJ_42
goto @HJ_15

:HJ_42
if 
  Game.AreAnyCarCheatsActivated
goto_if_false @HJ_62
goto @HJ_15

:HJ_62
if 
  Char.IsInAnyTrain($scplayer)
goto_if_false @HJ_85
goto @HJ_15

:HJ_85
if 
  Char.IsInFlyingVehicle($scplayer)
goto_if_false @HJ_108
goto @HJ_15

:HJ_108
if 
  Char.IsInAnyBoat($scplayer)
goto_if_false @HJ_131
goto @HJ_15

:HJ_131
if 
  Char.IsInModel($scplayer, 539)
goto_if_false @HJ_157
goto @HJ_15

:HJ_157
if 
  not Player.IsControlOn($player1)
goto_if_false @HJ_180
goto @HJ_15

:HJ_180
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HJ_1668
$car_player_is_in_hj = Char.StoreCarIsInNoSave($scplayer)
$CarTwoWheelsTime, $CarTwoWheelsDistance, $BikeWheelieTime, $BikeWheelieDistance, $BikeStoppieTime, $BikeStoppieDistance = Player.GetWheelieStats($player1)
if 
  $CarTwoWheelsDistance > 0.0
goto_if_false @HJ_426
$CarTwoWheelsTime /= 1000
cset_var_int_to_var_float $CarTwoWheelsDistanceMeterInt =# $CarTwoWheelsDistance
cset_var_float_to_var_int $CarTwoWheelsDistanceMeter =# $CarTwoWheelsDistanceMeterInt
set_var_float_to_var_float $temp_float_hj = $CarTwoWheelsDistance
sub_float_var_from_float_var $temp_float_hj -= $CarTwoWheelsDistanceMeter
$temp_float_hj *= 100.0
cset_var_int_to_var_float $CarTwoWheelsDistanceDecimalInt =# $temp_float_hj
set_var_int_to_var_int $cash = $CarTwoWheelsTime
add_int_var_to_int_var $cash += $CarTwoWheelsDistanceMeterInt
$cash /= 2
Player.AddScore($player1, $cash)
if 
  Game.AreMeasurementsInMeters
goto_if_false @HJ_385
Text.PrintWith4Numbers('WHEEL01', $cash, $CarTwoWheelsDistanceMeterInt, $CarTwoWheelsDistanceDecimalInt, $CarTwoWheelsTime, 3000, TextStyle.Middle)
goto @HJ_426

:HJ_385
convert_metres_to_feet $CarTwoWheelsDistance {var_feet} $CarTwoWheelsDistanceFeet
cset_var_int_to_var_float $CarTwoWheelsDistanceFeetInt =# $CarTwoWheelsDistanceFeet
Text.PrintWith3Numbers('WHEEL02', $cash, $CarTwoWheelsDistanceFeetInt, $CarTwoWheelsTime, 3000, TextStyle.Middle)

:HJ_426
if 
  $BikeWheelieDistance > 0.0
goto_if_false @HJ_631
$BikeWheelieTime /= 1000
cset_var_int_to_var_float $BikeWheelieDistanceMeterInt =# $BikeWheelieDistance
cset_var_float_to_var_int $BikeWheelieDistanceMeter =# $BikeWheelieDistanceMeterInt
set_var_float_to_var_float $temp_float_hj = $BikeWheelieDistance
sub_float_var_from_float_var $temp_float_hj -= $BikeWheelieDistanceMeter
$temp_float_hj *= 100.0
cset_var_int_to_var_float $BikeWheelieDistanceDecimalInt =# $temp_float_hj
set_var_int_to_var_int $cash = $BikeWheelieDistanceMeterInt
$cash *= 2
$cash /= 5
$cash /= 2
Player.AddScore($player1, $cash)
if 
  Game.AreMeasurementsInMeters
goto_if_false @HJ_590
Text.PrintWith4Numbers('WHEEL06', $cash, $BikeWheelieDistanceMeterInt, $BikeWheelieDistanceDecimalInt, $BikeWheelieTime, 3000, TextStyle.Middle)
goto @HJ_631

:HJ_590
convert_metres_to_feet $BikeWheelieDistance {var_feet} $BikeWheelieDistanceFeet
cset_var_int_to_var_float $BikeWheelieDistanceFeetInt =# $BikeWheelieDistanceFeet
Text.PrintWith3Numbers('WHEEL07', $cash, $BikeWheelieDistanceFeetInt, $BikeWheelieTime, 3000, TextStyle.Middle)

:HJ_631
if 
  $BikeStoppieDistance > 0.0
goto_if_false @HJ_822
$BikeStoppieTime /= 1000
cset_var_int_to_var_float $BikeStoppieDistanceMeterInt =# $BikeStoppieDistance
cset_var_float_to_var_int $BikeStoppieDistanceMeter =# $BikeStoppieDistanceMeterInt
set_var_float_to_var_float $temp_float_hj = $BikeStoppieDistance
sub_float_var_from_float_var $temp_float_hj -= $BikeStoppieDistanceMeter
$temp_float_hj *= 100.0
cset_var_int_to_var_float $BikeStoppieDistanceDecimalInt =# $temp_float_hj
set_var_int_to_var_int $cash = $BikeStoppieDistanceMeterInt
$cash /= 2
Player.AddScore($player1, $cash)
if 
  Game.AreMeasurementsInMeters
goto_if_false @HJ_781
Text.PrintWith4Numbers('WHEEL11', $cash, $BikeStoppieDistanceMeterInt, $BikeStoppieDistanceDecimalInt, $BikeStoppieTime, 3000, TextStyle.Middle)
goto @HJ_822

:HJ_781
convert_metres_to_feet $BikeStoppieDistance {var_feet} $BikeStoppieDistanceFeet
cset_var_int_to_var_float $BikeStoppieDistanceFeetInt =# $BikeStoppieDistanceFeet
Text.PrintWith3Numbers('WHEEL12', $cash, $BikeStoppieDistanceFeetInt, $BikeStoppieTime, 3000, TextStyle.Middle)

:HJ_822
if 
  Car.IsInAirProper($car_player_is_in_hj)
goto_if_false @HJ_1654
$total_rotation_int = 0
$heading_hj = 0.0
$flag_wheels_hj = 0
$counter_stunt_rolls_hj = 0
$flag_car_upsidedown_hj = 0
$stunt_flags_hj = 0
$flag_takeoff_hj = 0
$height_int_hj = 0
$height_float_hj = -100.0
$x_float_hj = 0.0
$y_float_hj = 0.0
$z_float_hj = 0.0
$takeoff_x_float_hj = 0.0
$takeoff_y_float_hj = 0.0
$takeoff_z_float_hj = 0.0
$jumpend_x_float_hj = 0.0
$jumpend_y_float_hj = 0.0
$jumpdistance_float_hj = 0.0
$jumpdistance_int_hj = 0
$distance_decimals_int_hj = 0
$height_decimals_int_hj = 0
$temp_float_hj = 0.0
$heading_difference = 0.0
$total_rotation = 0.0
$heading_difference_temp = 0.0
$old_heading_hj = 0.0
$collision_counter = 0
$passenger_said_jump = 0

:HJ_1082
if or
  Car.IsInAirProper($car_player_is_in_hj)
  10 > $collision_counter
goto_if_false @HJ_1647
$collision_counter += 1
$x_float_hj, $y_float_hj, $z_float_hj = Car.GetCoordinates($car_player_is_in_hj)
set_var_float_to_var_float $old_heading_hj = $heading_hj
if 
  $flag_takeoff_hj == 0
goto_if_false @HJ_1191
$old_heading_hj = Car.GetHeading($car_player_is_in_hj)
set_var_float_to_var_float $takeoff_x_float_hj = $x_float_hj
set_var_float_to_var_float $takeoff_y_float_hj = $y_float_hj
set_var_float_to_var_float $takeoff_z_float_hj = $z_float_hj
$flag_takeoff_hj = 1

:HJ_1191
wait 0
if 
  Car.IsDead($car_player_is_in_hj)
goto_if_false @HJ_1218
goto @HJ_15

:HJ_1218
if 
  not Player.IsPlaying($player1)
goto_if_false @HJ_1241
goto @HJ_15

:HJ_1241
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @HJ_1264
goto @HJ_15

:HJ_1264
if and
  not Car.IsUpright($car_player_is_in_hj)
  $flag_car_upsidedown_hj == 0
goto_if_false @HJ_1294
$flag_car_upsidedown_hj = 1

:HJ_1294
if and
  Car.IsUpright($car_player_is_in_hj)
  $flag_car_upsidedown_hj == 1
goto_if_false @HJ_1331
$counter_stunt_rolls_hj += 1
$flag_car_upsidedown_hj = 0

:HJ_1331
$heading_hj = Car.GetHeading($car_player_is_in_hj)
set_var_float_to_var_float $heading_difference = $heading_hj
sub_float_var_from_float_var $heading_difference -= $old_heading_hj
if 
  $heading_difference > 180.0
goto_if_false @HJ_1409
set_var_float_to_var_float $heading_difference_temp = $heading_difference
$heading_difference = 360.0
sub_float_var_from_float_var $heading_difference -= $heading_difference_temp
goto @HJ_1456

:HJ_1409
if 
  -180.0 > $heading_difference
goto_if_false @HJ_1456
set_var_float_to_var_float $heading_difference_temp = $heading_difference
$heading_difference = 360.0
add_float_var_to_float_var $heading_difference += $heading_difference_temp

:HJ_1456
if 
  0.0 > $heading_difference
goto_if_false @HJ_1503
set_var_float_to_var_float $heading_difference_temp = $heading_difference
$heading_difference = 0.0
sub_float_var_from_float_var $heading_difference -= $heading_difference_temp

:HJ_1503
add_float_var_to_float_var $total_rotation += $heading_difference
cset_var_int_to_var_float $total_rotation_int =# $total_rotation
if 
  is_float_var_greater_than_float_var $z_float_hj > $height_float_hj
goto_if_false @HJ_1546
set_var_float_to_var_float $height_float_hj = $z_float_hj

:HJ_1546
$z_float_hj = 0.0
if 
  $passenger_said_jump == 0
goto_if_false @HJ_1640
$jumpend_x_float_hj, $jumpend_y_float_hj, $temp_float_hj = Car.GetCoordinates($car_player_is_in_hj)
$temp_float_hj = Math.GetDistanceBetweenCoords2D($takeoff_x_float_hj, $takeoff_y_float_hj, $jumpend_x_float_hj, $jumpend_y_float_hj)
if 
  $temp_float_hj > 20.0
goto_if_false @HJ_1640
Car.RandomPassengerSay($car_player_is_in_hj, 37)
$passenger_said_jump = 1

:HJ_1640
goto @HJ_1082

:HJ_1647
goto @HJ_1661

:HJ_1654
goto @HJ_15

:HJ_1661
goto @HJ_1675

:HJ_1668
goto @HJ_15

:HJ_1675
if 
  $flag_takeoff_hj == 1
goto_if_false @HJ_1864
$jumpend_x_float_hj, $jumpend_y_float_hj, $temp_float_hj = Car.GetCoordinates($car_player_is_in_hj)
$jumpdistance_float_hj = Math.GetDistanceBetweenCoords2D($takeoff_x_float_hj, $takeoff_y_float_hj, $jumpend_x_float_hj, $jumpend_y_float_hj)
Stat.RegisterFloat(StatId.MaxJumpDistance, $jumpdistance_float_hj)
cset_var_int_to_var_float $jumpdistance_int_hj =# $jumpdistance_float_hj
sub_float_var_from_float_var $height_float_hj -= $takeoff_z_float_hj
Stat.RegisterFloat(StatId.MaxJumpHeight, $height_float_hj)
cset_var_int_to_var_float $height_int_hj =# $height_float_hj
cset_var_float_to_var_int $temp_float_hj =# $jumpdistance_int_hj
sub_float_var_from_float_var $jumpdistance_float_hj -= $temp_float_hj
set_var_float_to_var_float $temp_float_hj = $jumpdistance_float_hj
$temp_float_hj *= 100.0
cset_var_int_to_var_float $distance_decimals_int_hj =# $temp_float_hj
cset_var_float_to_var_int $temp_float_hj =# $height_int_hj
sub_float_var_from_float_var $height_float_hj -= $temp_float_hj
set_var_float_to_var_float $temp_float_hj = $height_float_hj
$temp_float_hj *= 100.0
cset_var_int_to_var_float $height_decimals_int_hj =# $temp_float_hj
Stat.RegisterInt(StatId.MaxJumpFlips, $counter_stunt_rolls_hj)
Stat.RegisterInt(StatId.MaxJumpSpins, $total_rotation_int)

:HJ_1864
if 
  $height_float_hj > 4.0
goto_if_false @HJ_1892
$stunt_flags_hj += 1

:HJ_1892
if 
  $jumpdistance_int_hj > 40
goto_if_false @HJ_1917
$stunt_flags_hj += 1

:HJ_1917
if 
  $counter_stunt_rolls_hj > 1
goto_if_false @HJ_1942
$stunt_flags_hj += 1

:HJ_1942
if 
  $total_rotation_int > 360
goto_if_false @HJ_1968
$stunt_flags_hj += 1

:HJ_1968
if 
  $stunt_flags_hj > 0
goto_if_false @HJ_2385
set_var_int_to_var_int $cash_reward = $counter_stunt_rolls_hj
$cash_reward *= 180
add_int_var_to_int_var $cash_reward += $total_rotation_int
set_var_int_to_var_int $cash_reward_temp = $jumpdistance_int_hj
$cash_reward_temp *= 6
add_int_var_to_int_var $cash_reward += $cash_reward_temp
set_var_int_to_var_int $cash_reward_temp = $height_int_hj
$cash_reward_temp *= 45
add_int_var_to_int_var $cash_reward += $cash_reward_temp
if 
  $flag_wheels_hj == 1
goto_if_false @HJ_2081
$cash_reward *= 2

:HJ_2081
mult_int_var_by_int_var $cash_reward *= $stunt_flags_hj
$cash_reward /= 3
$cash_reward /= 5
Player.AddScore($player1, $cash_reward)
if 
  $stunt_flags_hj == 1
goto_if_false @HJ_2155
Text.PrintWithNumber('HJ_IS', $cash_reward, 2000, 1)
Stat.RegisterInt(StatId.BestStunt, 1)

:HJ_2155
if 
  $stunt_flags_hj == 2
goto_if_false @HJ_2199
Text.PrintWithNumber('HJ_DIS', $cash_reward, 2000, 1)
Stat.RegisterInt(StatId.BestStunt, 3)

:HJ_2199
if 
  $stunt_flags_hj == 3
goto_if_false @HJ_2243
Text.PrintWithNumber('HJ_TIS', $cash_reward, 2000, 1)
Stat.RegisterInt(StatId.BestStunt, 5)

:HJ_2243
if 
  $stunt_flags_hj == 4
goto_if_false @HJ_2287
Text.PrintWithNumber('HJ_QIS', $cash_reward, 2000, 1)
Stat.RegisterInt(StatId.BestStunt, 7)

:HJ_2287
if 
  Game.AreMeasurementsInMeters
goto_if_false @HJ_2341
Text.PrintWith6Numbers('HJSTAT', $jumpdistance_int_hj, $distance_decimals_int_hj, $height_int_hj, $height_decimals_int_hj, $counter_stunt_rolls_hj, $total_rotation_int, 5000, TextStyle.MiddleSmallerHigher)
goto @HJ_2385

:HJ_2341
$jumpdistance_int_hj = Math.ConvertMetersToFeet($jumpdistance_int_hj)
$height_int_hj = Math.ConvertMetersToFeet($height_int_hj)
Text.PrintWith4Numbers('HJSTATF', $jumpdistance_int_hj, $height_int_hj, $counter_stunt_rolls_hj, $total_rotation_int, 5000, TextStyle.MiddleSmallerHigher)

:HJ_2385
goto @HJ_15
terminate_this_script 

:CELLFON
script_name 'CELLFON'
$skip_the_mobile_call = 0
$terminate_cat_calls = 0
$flag_new_cont = 0
$flag_mobile_timer = 0
$flag_player_answered_phone = 0
$call_delay = 20000
set_deatharrest_state 0
terminate_this_script 

:CELLFON_60
if 
  70 > $call_number
goto_if_false @CELLFON_13311
switch_start $call_number {numCases} 67 {hasDefaultCase} 0 {defaultLabel} @CELLFON_13304 {caseNum1} 0 {caseLabel1} @CELLFON_2776 {caseNum2} 1 {caseLabel2} @CELLFON_2966 {caseNum3} 2 {caseLabel3} @CELLFON_3024 {caseNum4} 3 {caseLabel4} @CELLFON_3170 {caseNum5} 4 {caseLabel5} @CELLFON_3316 {caseNum6} 5 {caseLabel6} @CELLFON_3550 {caseNum7} 6 {caseLabel7} @CELLFON_3718
switch_continued 7 {caseLabel1} @CELLFON_3886 {caseNum2} 8 {caseLabel2} @CELLFON_4208 {caseNum3} 9 {caseLabel3} @CELLFON_5466 {caseNum4} 10 {caseLabel4} @CELLFON_4574 {caseNum5} 11 {caseLabel5} @CELLFON_4896 {caseNum6} 12 {caseLabel6} @CELLFON_5108 {caseNum7} 13 {caseLabel7} @CELLFON_5320 {caseNum8} 14 {caseLabel8} @CELLFON_5792 {caseNum9} 15 {caseLabel9} @CELLFON_6070
switch_continued 16 {caseLabel1} @CELLFON_6414 {caseNum2} 17 {caseLabel2} @CELLFON_6560 {caseNum3} 18 {caseLabel3} @CELLFON_596 {caseNum4} 19 {caseLabel4} @CELLFON_874 {caseNum5} 20 {caseLabel5} @CELLFON_1108 {caseNum6} 21 {caseLabel6} @CELLFON_1408 {caseNum7} 22 {caseLabel7} @CELLFON_1642 {caseNum8} 23 {caseLabel8} @CELLFON_1942 {caseNum9} 24 {caseLabel9} @CELLFON_2110
switch_continued 25 {caseLabel1} @CELLFON_2322 {caseNum2} 29 {caseLabel2} @CELLFON_11120 {caseNum3} 30 {caseLabel3} @CELLFON_11288 {caseNum4} 31 {caseLabel4} @CELLFON_11522 {caseNum5} 32 {caseLabel5} @CELLFON_11866 {caseNum6} 33 {caseLabel6} @CELLFON_12122 {caseNum7} 34 {caseLabel7} @CELLFON_6684 {caseNum8} 35 {caseLabel8} @CELLFON_6896 {caseNum9} 36 {caseLabel9} @CELLFON_7152
switch_continued 37 {caseLabel1} @CELLFON_7364 {caseNum2} 38 {caseLabel2} @CELLFON_7466 {caseNum3} 39 {caseLabel3} @CELLFON_7656 {caseNum4} 40 {caseLabel4} @CELLFON_8000 {caseNum5} 41 {caseLabel5} @CELLFON_8300 {caseNum6} 42 {caseLabel6} @CELLFON_8556 {caseNum7} 43 {caseLabel7} @CELLFON_8680 {caseNum8} 44 {caseLabel8} @CELLFON_8738 {caseNum9} 45 {caseLabel9} @CELLFON_8950
switch_continued 46 {caseLabel1} @CELLFON_9228 {caseNum2} 47 {caseLabel2} @CELLFON_9550 {caseNum3} 48 {caseLabel3} @CELLFON_9696 {caseNum4} 49 {caseLabel4} @CELLFON_9842 {caseNum5} 50 {caseLabel5} @CELLFON_10010 {caseNum6} 51 {caseLabel6} @CELLFON_10332 {caseNum7} 52 {caseLabel7} @CELLFON_10632 {caseNum8} 53 {caseLabel8} @CELLFON_10866 {caseNum9} 54 {caseLabel9} @CELLFON_12312
switch_continued 55 {caseLabel1} @CELLFON_12374 {caseNum2} 56 {caseLabel2} @CELLFON_12436 {caseNum3} 57 {caseLabel3} @CELLFON_12498 {caseNum4} 58 {caseLabel4} @CELLFON_12560 {caseNum5} 59 {caseLabel5} @CELLFON_12622 {caseNum6} 60 {caseLabel6} @CELLFON_12684 {caseNum7} 61 {caseLabel7} @CELLFON_12746 {caseNum8} 62 {caseLabel8} @CELLFON_12808 {caseNum9} 63 {caseLabel9} @CELLFON_12870
switch_continued 64 {caseLabel1} @CELLFON_12932 {caseNum2} 65 {caseLabel2} @CELLFON_12994 {caseNum3} 66 {caseLabel3} @CELLFON_13056 {caseNum4} 67 {caseLabel4} @CELLFON_13118 {caseNum5} 68 {caseLabel5} @CELLFON_13180 {caseNum6} 69 {caseLabel6} @CELLFON_13242 {caseNum7} -1 {caseLabel7} @CELLFON_13304 {caseNum8} -1 {caseLabel8} @CELLFON_13304 {caseNum9} -1 {caseLabel9} @CELLFON_13304

:CELLFON_596
set_var_text_label s$mobile_print_labels[0] = 'MSWE14A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE14B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE14C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE14D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE14E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE14F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE14G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE14H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE14J'
set_var_text_label s$mobile_print_labels[9] = 'MSWE14K'
set_var_text_label s$mobile_print_labels[10] = 'MSWE14L'
set_var_text_label s$mobile_print_labels[11] = 'MSWE14N'
set_var_int_to_constant $mobile_audio_labels[0] = 14540
set_var_int_to_constant $mobile_audio_labels[1] = 14489
set_var_int_to_constant $mobile_audio_labels[2] = 14490
set_var_int_to_constant $mobile_audio_labels[3] = 14541
set_var_int_to_constant $mobile_audio_labels[4] = 14491
set_var_int_to_constant $mobile_audio_labels[5] = 14492
set_var_int_to_constant $mobile_audio_labels[6] = 14542
set_var_int_to_constant $mobile_audio_labels[7] = 14493
set_var_int_to_constant $mobile_audio_labels[8] = 14494
set_var_int_to_constant $mobile_audio_labels[9] = 14543
set_var_int_to_constant $mobile_audio_labels[10] = 14495
set_var_int_to_constant $mobile_audio_labels[11] = 14496
$cell_index_end = 11
goto @CELLFON_13304

:CELLFON_874
set_var_text_label s$mobile_print_labels[0] = 'MSWE10A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE10D'
set_var_text_label s$mobile_print_labels[2] = 'MSWE10C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE10E'
set_var_text_label s$mobile_print_labels[4] = 'MSWE10F'
set_var_text_label s$mobile_print_labels[5] = 'MSWE10G'
set_var_text_label s$mobile_print_labels[6] = 'MSWE10H'
set_var_text_label s$mobile_print_labels[7] = 'MSWE10K'
set_var_text_label s$mobile_print_labels[8] = 'MSWE10L'
set_var_text_label s$mobile_print_labels[9] = 'MSWE10N'
set_var_int_to_constant $mobile_audio_labels[0] = 14530
set_var_int_to_constant $mobile_audio_labels[1] = 14460
set_var_int_to_constant $mobile_audio_labels[2] = 14531
set_var_int_to_constant $mobile_audio_labels[3] = 14461
set_var_int_to_constant $mobile_audio_labels[4] = 14462
set_var_int_to_constant $mobile_audio_labels[5] = 14463
set_var_int_to_constant $mobile_audio_labels[6] = 14464
set_var_int_to_constant $mobile_audio_labels[7] = 14532
set_var_int_to_constant $mobile_audio_labels[8] = 14533
set_var_int_to_constant $mobile_audio_labels[9] = 14466
$cell_index_end = 9
goto @CELLFON_13304

:CELLFON_1108
set_var_text_label s$mobile_print_labels[0] = 'MSWE06A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE06B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE06C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE06D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE06E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE06F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE06G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE06H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE06J'
set_var_text_label s$mobile_print_labels[9] = 'MSWE06K'
set_var_text_label s$mobile_print_labels[10] = 'MSWE06L'
set_var_text_label s$mobile_print_labels[11] = 'MSWE06N'
set_var_text_label s$mobile_print_labels[12] = 'MSWE06M'
set_var_int_to_constant $mobile_audio_labels[0] = 14518
set_var_int_to_constant $mobile_audio_labels[1] = 14431
set_var_int_to_constant $mobile_audio_labels[2] = 14519
set_var_int_to_constant $mobile_audio_labels[3] = 14432
set_var_int_to_constant $mobile_audio_labels[4] = 14433
set_var_int_to_constant $mobile_audio_labels[5] = 14520
set_var_int_to_constant $mobile_audio_labels[6] = 14434
set_var_int_to_constant $mobile_audio_labels[7] = 14435
set_var_int_to_constant $mobile_audio_labels[8] = 14521
set_var_int_to_constant $mobile_audio_labels[9] = 14436
set_var_int_to_constant $mobile_audio_labels[10] = 14437
set_var_int_to_constant $mobile_audio_labels[11] = 14523
set_var_int_to_constant $mobile_audio_labels[12] = 14522
$cell_index_end = 12
goto @CELLFON_13304

:CELLFON_1408
set_var_text_label s$mobile_print_labels[0] = 'MSWE05A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE05B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE05C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE05D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE05E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE05F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE05G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE05H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE05J'
set_var_text_label s$mobile_print_labels[9] = 'MSWE05K'
set_var_int_to_constant $mobile_audio_labels[0] = 14513
set_var_int_to_constant $mobile_audio_labels[1] = 14426
set_var_int_to_constant $mobile_audio_labels[2] = 14514
set_var_int_to_constant $mobile_audio_labels[3] = 14427
set_var_int_to_constant $mobile_audio_labels[4] = 14428
set_var_int_to_constant $mobile_audio_labels[5] = 14515
set_var_int_to_constant $mobile_audio_labels[6] = 14429
set_var_int_to_constant $mobile_audio_labels[7] = 14430
set_var_int_to_constant $mobile_audio_labels[8] = 14516
set_var_int_to_constant $mobile_audio_labels[9] = 14517
$cell_index_end = 9
goto @CELLFON_13304

:CELLFON_1642
set_var_text_label s$mobile_print_labels[0] = 'MSWE08A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE08B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE08C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE08D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE08E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE08F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE08G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE08H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE08J'
set_var_text_label s$mobile_print_labels[9] = 'MSWE08K'
set_var_text_label s$mobile_print_labels[10] = 'MSWE08L'
set_var_text_label s$mobile_print_labels[11] = 'MSWE08N'
set_var_text_label s$mobile_print_labels[12] = 'MSWE08M'
set_var_int_to_constant $mobile_audio_labels[0] = 14544
set_var_int_to_constant $mobile_audio_labels[1] = 14445
set_var_int_to_constant $mobile_audio_labels[2] = 14446
set_var_int_to_constant $mobile_audio_labels[3] = 14447
set_var_int_to_constant $mobile_audio_labels[4] = 14448
set_var_int_to_constant $mobile_audio_labels[5] = 14449
set_var_int_to_constant $mobile_audio_labels[6] = 14545
set_var_int_to_constant $mobile_audio_labels[7] = 14450
set_var_int_to_constant $mobile_audio_labels[8] = 14451
set_var_int_to_constant $mobile_audio_labels[9] = 14546
set_var_int_to_constant $mobile_audio_labels[10] = 14452
set_var_int_to_constant $mobile_audio_labels[11] = 14453
set_var_int_to_constant $mobile_audio_labels[12] = 14547
$cell_index_end = 12
goto @CELLFON_13304

:CELLFON_1942
set_var_text_label s$mobile_print_labels[0] = 'MSWE09A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE09B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE09C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE09E'
set_var_text_label s$mobile_print_labels[4] = 'MSWE09F'
set_var_text_label s$mobile_print_labels[5] = 'MSWE09G'
set_var_text_label s$mobile_print_labels[6] = 'MSWE09H'
set_var_int_to_constant $mobile_audio_labels[0] = 14454
set_var_int_to_constant $mobile_audio_labels[1] = 14528
set_var_int_to_constant $mobile_audio_labels[2] = 14455
set_var_int_to_constant $mobile_audio_labels[3] = 14456
set_var_int_to_constant $mobile_audio_labels[4] = 14457
set_var_int_to_constant $mobile_audio_labels[5] = 14458
set_var_int_to_constant $mobile_audio_labels[6] = 14529
$cell_index_end = 6
goto @CELLFON_13304

:CELLFON_2110
set_var_text_label s$mobile_print_labels[0] = 'MSWE11A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE11B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE11C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE11D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE11E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE11F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE11G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE11H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE11J'
set_var_int_to_constant $mobile_audio_labels[0] = 14467
set_var_int_to_constant $mobile_audio_labels[1] = 14534
set_var_int_to_constant $mobile_audio_labels[2] = 14468
set_var_int_to_constant $mobile_audio_labels[3] = 14535
set_var_int_to_constant $mobile_audio_labels[4] = 14469
set_var_int_to_constant $mobile_audio_labels[5] = 14470
set_var_int_to_constant $mobile_audio_labels[6] = 14536
set_var_int_to_constant $mobile_audio_labels[7] = 14471
set_var_int_to_constant $mobile_audio_labels[8] = 14537
$cell_index_end = 8
goto @CELLFON_13304

:CELLFON_2322
set_var_text_label s$mobile_print_labels[0] = 'MSWE12A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE12B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE12C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE12D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE12E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE12F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE12G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE12H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE12J'
set_var_text_label s$mobile_print_labels[9] = 'MSWE12K'
set_var_text_label s$mobile_print_labels[10] = 'MSWE12L'
set_var_text_label s$mobile_print_labels[11] = 'MSWE12N'
set_var_text_label s$mobile_print_labels[12] = 'MSWE12M'
set_var_text_label s$mobile_print_labels[13] = 'MSWE12O'
set_var_text_label s$mobile_print_labels[14] = 'MSWE12P'
set_var_text_label s$mobile_print_labels[15] = 'MSWE12Q'
set_var_text_label s$mobile_print_labels[16] = 'MSWE12R'
set_var_text_label s$mobile_print_labels[17] = 'MSWE12S'
set_var_text_label s$mobile_print_labels[18] = 'MSWE12T'
set_var_text_label s$mobile_print_labels[19] = 'MSWE12U'
set_var_int_to_constant $mobile_audio_labels[0] = 14472
set_var_int_to_constant $mobile_audio_labels[1] = 14548
set_var_int_to_constant $mobile_audio_labels[2] = 14473
set_var_int_to_constant $mobile_audio_labels[3] = 14474
set_var_int_to_constant $mobile_audio_labels[4] = 14475
set_var_int_to_constant $mobile_audio_labels[5] = 14476
set_var_int_to_constant $mobile_audio_labels[6] = 14477
set_var_int_to_constant $mobile_audio_labels[7] = 14549
set_var_int_to_constant $mobile_audio_labels[8] = 14478
set_var_int_to_constant $mobile_audio_labels[9] = 14550
set_var_int_to_constant $mobile_audio_labels[10] = 14479
set_var_int_to_constant $mobile_audio_labels[11] = 14481
set_var_int_to_constant $mobile_audio_labels[12] = 14480
set_var_int_to_constant $mobile_audio_labels[13] = 14551
set_var_int_to_constant $mobile_audio_labels[14] = 14552
set_var_int_to_constant $mobile_audio_labels[15] = 14482
set_var_int_to_constant $mobile_audio_labels[16] = 14483
set_var_int_to_constant $mobile_audio_labels[17] = 14553
set_var_int_to_constant $mobile_audio_labels[18] = 14554
set_var_int_to_constant $mobile_audio_labels[19] = 14555
$cell_index_end = 19
goto @CELLFON_13304

:CELLFON_2776
set_var_text_label s$mobile_print_labels[0] = 'MCAT02A'
set_var_text_label s$mobile_print_labels[1] = 'MCAT02B'
set_var_text_label s$mobile_print_labels[2] = 'MCAT02C'
set_var_text_label s$mobile_print_labels[3] = 'MCAT02D'
set_var_text_label s$mobile_print_labels[4] = 'MCAT02E'
set_var_text_label s$mobile_print_labels[5] = 'MCAT02F'
set_var_text_label s$mobile_print_labels[6] = 'MCAT02G'
set_var_text_label s$mobile_print_labels[7] = 'MCAT02H'
set_var_int_to_constant $mobile_audio_labels[0] = 3629
set_var_int_to_constant $mobile_audio_labels[1] = 3604
set_var_int_to_constant $mobile_audio_labels[2] = 3630
set_var_int_to_constant $mobile_audio_labels[3] = 3605
set_var_int_to_constant $mobile_audio_labels[4] = 3606
set_var_int_to_constant $mobile_audio_labels[5] = 3631
set_var_int_to_constant $mobile_audio_labels[6] = 3607
set_var_int_to_constant $mobile_audio_labels[7] = 3608
$cell_index_end = 7
goto @CELLFON_13304

:CELLFON_2966
set_var_text_label s$mobile_print_labels[0] = 'MCAT03A'
set_var_text_label s$mobile_print_labels[1] = 'MCAT03B'
set_var_int_to_constant $mobile_audio_labels[0] = 3609
set_var_int_to_constant $mobile_audio_labels[1] = 3632
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_3024
set_var_text_label s$mobile_print_labels[0] = 'MCAT04A'
set_var_text_label s$mobile_print_labels[1] = 'MCAT04B'
set_var_text_label s$mobile_print_labels[2] = 'MCAT04C'
set_var_text_label s$mobile_print_labels[3] = 'MCAT04D'
set_var_text_label s$mobile_print_labels[4] = 'MCAT04E'
set_var_text_label s$mobile_print_labels[5] = 'MCAT04F'
set_var_int_to_constant $mobile_audio_labels[0] = 3633
set_var_int_to_constant $mobile_audio_labels[1] = 3610
set_var_int_to_constant $mobile_audio_labels[2] = 3634
set_var_int_to_constant $mobile_audio_labels[3] = 3611
set_var_int_to_constant $mobile_audio_labels[4] = 3635
set_var_int_to_constant $mobile_audio_labels[5] = 3636
$cell_index_end = 5
goto @CELLFON_13304

:CELLFON_3170
set_var_text_label s$mobile_print_labels[0] = 'MCAT05B'
set_var_text_label s$mobile_print_labels[1] = 'MCAT05C'
set_var_text_label s$mobile_print_labels[2] = 'MCAT05D'
set_var_text_label s$mobile_print_labels[3] = 'MCAT05E'
set_var_text_label s$mobile_print_labels[4] = 'MCAT05F'
set_var_text_label s$mobile_print_labels[5] = 'MCAT05G'
set_var_int_to_constant $mobile_audio_labels[0] = 3612
set_var_int_to_constant $mobile_audio_labels[1] = 3637
set_var_int_to_constant $mobile_audio_labels[2] = 3638
set_var_int_to_constant $mobile_audio_labels[3] = 3613
set_var_int_to_constant $mobile_audio_labels[4] = 3639
set_var_int_to_constant $mobile_audio_labels[5] = 3640
$cell_index_end = 5
goto @CELLFON_13304

:CELLFON_3316
set_var_text_label s$mobile_print_labels[0] = 'MCAT06A'
set_var_text_label s$mobile_print_labels[1] = 'MCAT06B'
set_var_text_label s$mobile_print_labels[2] = 'MCAT06C'
set_var_text_label s$mobile_print_labels[3] = 'MCAT06D'
set_var_text_label s$mobile_print_labels[4] = 'MCAT06E'
set_var_text_label s$mobile_print_labels[5] = 'MCAT06F'
set_var_text_label s$mobile_print_labels[6] = 'MCAT06G'
set_var_text_label s$mobile_print_labels[7] = 'MCAT06H'
set_var_text_label s$mobile_print_labels[8] = 'MCAT06J'
set_var_text_label s$mobile_print_labels[9] = 'MCAT06K'
set_var_int_to_constant $mobile_audio_labels[0] = 3614
set_var_int_to_constant $mobile_audio_labels[1] = 3615
set_var_int_to_constant $mobile_audio_labels[2] = 3616
set_var_int_to_constant $mobile_audio_labels[3] = 3641
set_var_int_to_constant $mobile_audio_labels[4] = 3642
set_var_int_to_constant $mobile_audio_labels[5] = 3617
set_var_int_to_constant $mobile_audio_labels[6] = 3618
set_var_int_to_constant $mobile_audio_labels[7] = 3619
set_var_int_to_constant $mobile_audio_labels[8] = 3643
set_var_int_to_constant $mobile_audio_labels[9] = 3620
$cell_index_end = 9
goto @CELLFON_13304

:CELLFON_3550
set_var_text_label s$mobile_print_labels[0] = 'MCAT07A'
set_var_text_label s$mobile_print_labels[1] = 'MCAT07B'
set_var_text_label s$mobile_print_labels[2] = 'MCAT07C'
set_var_text_label s$mobile_print_labels[3] = 'MCAT07D'
set_var_text_label s$mobile_print_labels[4] = 'MCAT07E'
set_var_text_label s$mobile_print_labels[5] = 'MCAT07F'
set_var_text_label s$mobile_print_labels[6] = 'MCAT07G'
set_var_int_to_constant $mobile_audio_labels[0] = 3644
set_var_int_to_constant $mobile_audio_labels[1] = 3621
set_var_int_to_constant $mobile_audio_labels[2] = 3645
set_var_int_to_constant $mobile_audio_labels[3] = 3622
set_var_int_to_constant $mobile_audio_labels[4] = 3623
set_var_int_to_constant $mobile_audio_labels[5] = 3646
set_var_int_to_constant $mobile_audio_labels[6] = 3624
$cell_index_end = 6
goto @CELLFON_13304

:CELLFON_3718
set_var_text_label s$mobile_print_labels[0] = 'MLOC03A'
set_var_text_label s$mobile_print_labels[1] = 'MLOC03B'
set_var_text_label s$mobile_print_labels[2] = 'MLOC03C'
set_var_text_label s$mobile_print_labels[3] = 'MLOC03D'
set_var_text_label s$mobile_print_labels[4] = 'MLOC03E'
set_var_text_label s$mobile_print_labels[5] = 'MLOC03F'
set_var_text_label s$mobile_print_labels[6] = 'MLOC03H'
set_var_int_to_constant $mobile_audio_labels[0] = 16408
set_var_int_to_constant $mobile_audio_labels[1] = 16418
set_var_int_to_constant $mobile_audio_labels[2] = 16409
set_var_int_to_constant $mobile_audio_labels[3] = 16410
set_var_int_to_constant $mobile_audio_labels[4] = 16419
set_var_int_to_constant $mobile_audio_labels[5] = 16411
set_var_int_to_constant $mobile_audio_labels[6] = 16420
$cell_index_end = 6
goto @CELLFON_13304

:CELLFON_3886
set_var_text_label s$mobile_print_labels[0] = 'MCES01A'
set_var_text_label s$mobile_print_labels[1] = 'MCES01B'
set_var_text_label s$mobile_print_labels[2] = 'MCES01C'
set_var_text_label s$mobile_print_labels[3] = 'MCES01D'
set_var_text_label s$mobile_print_labels[4] = 'MCES01E'
set_var_text_label s$mobile_print_labels[5] = 'MCES01F'
set_var_text_label s$mobile_print_labels[6] = 'MCES01G'
set_var_text_label s$mobile_print_labels[7] = 'MCES01H'
set_var_text_label s$mobile_print_labels[8] = 'MCES01K'
set_var_text_label s$mobile_print_labels[9] = 'MCES01L'
set_var_text_label s$mobile_print_labels[10] = 'MCES01M'
set_var_text_label s$mobile_print_labels[11] = 'MCES01N'
set_var_text_label s$mobile_print_labels[12] = 'MCES01O'
set_var_text_label s$mobile_print_labels[13] = 'MCES01P'
set_var_int_to_constant $mobile_audio_labels[0] = 4689
set_var_int_to_constant $mobile_audio_labels[1] = 4600
set_var_int_to_constant $mobile_audio_labels[2] = 4690
set_var_int_to_constant $mobile_audio_labels[3] = 4601
set_var_int_to_constant $mobile_audio_labels[4] = 4691
set_var_int_to_constant $mobile_audio_labels[5] = 4602
set_var_int_to_constant $mobile_audio_labels[6] = 4692
set_var_int_to_constant $mobile_audio_labels[7] = 4603
set_var_int_to_constant $mobile_audio_labels[8] = 4693
set_var_int_to_constant $mobile_audio_labels[9] = 4604
set_var_int_to_constant $mobile_audio_labels[10] = 4605
set_var_int_to_constant $mobile_audio_labels[11] = 4694
set_var_int_to_constant $mobile_audio_labels[12] = 4606
set_var_int_to_constant $mobile_audio_labels[13] = 4607
$cell_index_end = 13
goto @CELLFON_13304

:CELLFON_4208
set_var_text_label s$mobile_print_labels[0] = 'MCES04A'
set_var_text_label s$mobile_print_labels[1] = 'MCES04B'
set_var_text_label s$mobile_print_labels[2] = 'MCES04C'
set_var_text_label s$mobile_print_labels[3] = 'MCES04D'
set_var_text_label s$mobile_print_labels[4] = 'MCES04E'
set_var_text_label s$mobile_print_labels[5] = 'MCES04F'
set_var_text_label s$mobile_print_labels[6] = 'MCES04G'
set_var_text_label s$mobile_print_labels[7] = 'MCES04H'
set_var_text_label s$mobile_print_labels[8] = 'MCES04J'
set_var_text_label s$mobile_print_labels[9] = 'MCES04L'
set_var_text_label s$mobile_print_labels[10] = 'MCES04M'
set_var_text_label s$mobile_print_labels[11] = 'MCES04N'
set_var_text_label s$mobile_print_labels[12] = 'MCES04O'
set_var_text_label s$mobile_print_labels[13] = 'MCES04P'
set_var_text_label s$mobile_print_labels[14] = 'MCES04Q'
set_var_text_label s$mobile_print_labels[15] = 'MCES04R'
set_var_int_to_constant $mobile_audio_labels[0] = 4700
set_var_int_to_constant $mobile_audio_labels[1] = 4622
set_var_int_to_constant $mobile_audio_labels[2] = 4623
set_var_int_to_constant $mobile_audio_labels[3] = 4701
set_var_int_to_constant $mobile_audio_labels[4] = 4702
set_var_int_to_constant $mobile_audio_labels[5] = 4703
set_var_int_to_constant $mobile_audio_labels[6] = 4624
set_var_int_to_constant $mobile_audio_labels[7] = 4625
set_var_int_to_constant $mobile_audio_labels[8] = 4626
set_var_int_to_constant $mobile_audio_labels[9] = 4704
set_var_int_to_constant $mobile_audio_labels[10] = 4627
set_var_int_to_constant $mobile_audio_labels[11] = 4628
set_var_int_to_constant $mobile_audio_labels[12] = 4629
set_var_int_to_constant $mobile_audio_labels[13] = 4630
set_var_int_to_constant $mobile_audio_labels[14] = 4631
set_var_int_to_constant $mobile_audio_labels[15] = 4632
$cell_index_end = 15
goto @CELLFON_13304

:CELLFON_4574
set_var_text_label s$mobile_print_labels[0] = 'MCES09A'
set_var_text_label s$mobile_print_labels[1] = 'MCES09B'
set_var_text_label s$mobile_print_labels[2] = 'MCES09C'
set_var_text_label s$mobile_print_labels[3] = 'MCES09D'
set_var_text_label s$mobile_print_labels[4] = 'MCES09E'
set_var_text_label s$mobile_print_labels[5] = 'MCES09F'
set_var_text_label s$mobile_print_labels[6] = 'MCES09G'
set_var_text_label s$mobile_print_labels[7] = 'MCES09H'
set_var_text_label s$mobile_print_labels[8] = 'MCES09K'
set_var_text_label s$mobile_print_labels[9] = 'MCES09L'
set_var_text_label s$mobile_print_labels[10] = 'MCES09M'
set_var_text_label s$mobile_print_labels[11] = 'MCES09N'
set_var_text_label s$mobile_print_labels[12] = 'MCES09O'
set_var_text_label s$mobile_print_labels[13] = 'MCES09P'
set_var_int_to_constant $mobile_audio_labels[0] = 4648
set_var_int_to_constant $mobile_audio_labels[1] = 4713
set_var_int_to_constant $mobile_audio_labels[2] = 4649
set_var_int_to_constant $mobile_audio_labels[3] = 4650
set_var_int_to_constant $mobile_audio_labels[4] = 4651
set_var_int_to_constant $mobile_audio_labels[5] = 4714
set_var_int_to_constant $mobile_audio_labels[6] = 4652
set_var_int_to_constant $mobile_audio_labels[7] = 4653
set_var_int_to_constant $mobile_audio_labels[8] = 4654
set_var_int_to_constant $mobile_audio_labels[9] = 4715
set_var_int_to_constant $mobile_audio_labels[10] = 4655
set_var_int_to_constant $mobile_audio_labels[11] = 4656
set_var_int_to_constant $mobile_audio_labels[12] = 4657
set_var_int_to_constant $mobile_audio_labels[13] = 4658
$cell_index_end = 13
goto @CELLFON_13304

:CELLFON_4896
set_var_text_label s$mobile_print_labels[0] = 'MKND01A'
set_var_text_label s$mobile_print_labels[1] = 'MKND01B'
set_var_text_label s$mobile_print_labels[2] = 'MKND01C'
set_var_text_label s$mobile_print_labels[3] = 'MKND01D'
set_var_text_label s$mobile_print_labels[4] = 'MKND01E'
set_var_text_label s$mobile_print_labels[5] = 'MKND01F'
set_var_text_label s$mobile_print_labels[6] = 'MKND01G'
set_var_text_label s$mobile_print_labels[7] = 'MKND01H'
set_var_text_label s$mobile_print_labels[8] = 'MKND01J'
set_var_int_to_constant $mobile_audio_labels[0] = 19400
set_var_int_to_constant $mobile_audio_labels[1] = 19410
set_var_int_to_constant $mobile_audio_labels[2] = 19401
set_var_int_to_constant $mobile_audio_labels[3] = 19402
set_var_int_to_constant $mobile_audio_labels[4] = 19411
set_var_int_to_constant $mobile_audio_labels[5] = 19403
set_var_int_to_constant $mobile_audio_labels[6] = 19404
set_var_int_to_constant $mobile_audio_labels[7] = 19412
set_var_int_to_constant $mobile_audio_labels[8] = 19405
$cell_index_end = 8
goto @CELLFON_13304

:CELLFON_5108
set_var_text_label s$mobile_print_labels[0] = 'MTEN01A'
set_var_text_label s$mobile_print_labels[1] = 'MTEN01B'
set_var_text_label s$mobile_print_labels[2] = 'MTEN01C'
set_var_text_label s$mobile_print_labels[3] = 'MTEN01D'
set_var_text_label s$mobile_print_labels[4] = 'MTEN01E'
set_var_text_label s$mobile_print_labels[5] = 'MTEN01F'
set_var_text_label s$mobile_print_labels[6] = 'MTEN01G'
set_var_text_label s$mobile_print_labels[7] = 'MTEN01H'
set_var_text_label s$mobile_print_labels[8] = 'MTEN01J'
set_var_int_to_constant $mobile_audio_labels[0] = 19814
set_var_int_to_constant $mobile_audio_labels[1] = 19802
set_var_int_to_constant $mobile_audio_labels[2] = 19815
set_var_int_to_constant $mobile_audio_labels[3] = 19803
set_var_int_to_constant $mobile_audio_labels[4] = 19816
set_var_int_to_constant $mobile_audio_labels[5] = 19804
set_var_int_to_constant $mobile_audio_labels[6] = 19817
set_var_int_to_constant $mobile_audio_labels[7] = 19805
set_var_int_to_constant $mobile_audio_labels[8] = 19806
$cell_index_end = 8
goto @CELLFON_13304

:CELLFON_5320
set_var_text_label s$mobile_print_labels[0] = 'MTEN02A'
set_var_text_label s$mobile_print_labels[1] = 'MTEN02B'
set_var_text_label s$mobile_print_labels[2] = 'MTEN02C'
set_var_text_label s$mobile_print_labels[3] = 'MTEN02D'
set_var_text_label s$mobile_print_labels[4] = 'MTEN02E'
set_var_text_label s$mobile_print_labels[5] = 'MTEN02F'
set_var_int_to_constant $mobile_audio_labels[0] = 19807
set_var_int_to_constant $mobile_audio_labels[1] = 19800
set_var_int_to_constant $mobile_audio_labels[2] = 19808
set_var_int_to_constant $mobile_audio_labels[3] = 19809
set_var_int_to_constant $mobile_audio_labels[4] = 19801
set_var_int_to_constant $mobile_audio_labels[5] = 19810
$cell_index_end = 5
goto @CELLFON_13304

:CELLFON_5466
set_var_text_label s$mobile_print_labels[0] = 'MHRZ01A'
set_var_text_label s$mobile_print_labels[1] = 'MHRZ01B'
set_var_text_label s$mobile_print_labels[2] = 'MHRZ01C'
set_var_text_label s$mobile_print_labels[3] = 'MHRZ01D'
set_var_text_label s$mobile_print_labels[4] = 'MHRZ01E'
set_var_text_label s$mobile_print_labels[5] = 'MHRZ01F'
set_var_text_label s$mobile_print_labels[6] = 'MHRZ01G'
set_var_text_label s$mobile_print_labels[7] = 'MHRZ01H'
set_var_text_label s$mobile_print_labels[8] = 'MHRZ01J'
set_var_text_label s$mobile_print_labels[9] = 'MHRZ01K'
set_var_text_label s$mobile_print_labels[10] = 'MHRZ01L'
set_var_text_label s$mobile_print_labels[11] = 'MHRZ01M'
set_var_text_label s$mobile_print_labels[12] = 'MHRZ01N'
set_var_int_to_constant $mobile_audio_labels[0] = 43204
set_var_int_to_constant $mobile_audio_labels[1] = 43200
set_var_int_to_constant $mobile_audio_labels[2] = 43205
set_var_int_to_constant $mobile_audio_labels[3] = 43206
set_var_int_to_constant $mobile_audio_labels[4] = 43201
set_var_int_to_constant $mobile_audio_labels[5] = 43207
set_var_int_to_constant $mobile_audio_labels[6] = 43202
set_var_int_to_constant $mobile_audio_labels[7] = 43208
set_var_int_to_constant $mobile_audio_labels[8] = 43209
set_var_int_to_constant $mobile_audio_labels[9] = 43210
set_var_int_to_constant $mobile_audio_labels[10] = 43211
set_var_int_to_constant $mobile_audio_labels[11] = 43212
set_var_int_to_constant $mobile_audio_labels[12] = 43203
$cell_index_end = 12
goto @CELLFON_13304

:CELLFON_5792
set_var_text_label s$mobile_print_labels[0] = 'MSMK01A'
set_var_text_label s$mobile_print_labels[1] = 'MSMK01B'
set_var_text_label s$mobile_print_labels[2] = 'MSMK01C'
set_var_text_label s$mobile_print_labels[3] = 'MSMK01D'
set_var_text_label s$mobile_print_labels[4] = 'MSMK01E'
set_var_text_label s$mobile_print_labels[5] = 'MSMK01F'
set_var_text_label s$mobile_print_labels[6] = 'MSMK01G'
set_var_text_label s$mobile_print_labels[7] = 'MSMK01H'
set_var_text_label s$mobile_print_labels[8] = 'MSMK01J'
set_var_text_label s$mobile_print_labels[9] = 'MSMK01K'
set_var_text_label s$mobile_print_labels[10] = 'MSMK01L'
set_var_text_label s$mobile_print_labels[11] = 'MSMK01M'
set_var_int_to_constant $mobile_audio_labels[0] = 16800
set_var_int_to_constant $mobile_audio_labels[1] = 16801
set_var_int_to_constant $mobile_audio_labels[2] = 16807
set_var_int_to_constant $mobile_audio_labels[3] = 16802
set_var_int_to_constant $mobile_audio_labels[4] = 16808
set_var_int_to_constant $mobile_audio_labels[5] = 16803
set_var_int_to_constant $mobile_audio_labels[6] = 16809
set_var_int_to_constant $mobile_audio_labels[7] = 16804
set_var_int_to_constant $mobile_audio_labels[8] = 16805
set_var_int_to_constant $mobile_audio_labels[9] = 16810
set_var_int_to_constant $mobile_audio_labels[10] = 16806
set_var_int_to_constant $mobile_audio_labels[11] = 16811
$cell_index_end = 11
goto @CELLFON_13304

:CELLFON_6070
set_var_text_label s$mobile_print_labels[0] = 'MTRU01A'
set_var_text_label s$mobile_print_labels[1] = 'MTRU01B'
set_var_text_label s$mobile_print_labels[2] = 'MTRU01C'
set_var_text_label s$mobile_print_labels[3] = 'MTRU01D'
set_var_text_label s$mobile_print_labels[4] = 'MTRU01E'
set_var_text_label s$mobile_print_labels[5] = 'MTRU01F'
set_var_text_label s$mobile_print_labels[6] = 'MTRU01G'
set_var_text_label s$mobile_print_labels[7] = 'MTRU01H'
set_var_text_label s$mobile_print_labels[8] = 'MTRU01J'
set_var_text_label s$mobile_print_labels[9] = 'MTRU01K'
set_var_text_label s$mobile_print_labels[10] = 'MTRU01L'
set_var_text_label s$mobile_print_labels[11] = 'MTRU01M'
set_var_text_label s$mobile_print_labels[12] = 'MTRU01N'
set_var_text_label s$mobile_print_labels[13] = 'MTRU01O'
set_var_text_label s$mobile_print_labels[14] = 'MTRU01P'
set_var_int_to_constant $mobile_audio_labels[0] = 7216
set_var_int_to_constant $mobile_audio_labels[1] = 7200
set_var_int_to_constant $mobile_audio_labels[2] = 7217
set_var_int_to_constant $mobile_audio_labels[3] = 7201
set_var_int_to_constant $mobile_audio_labels[4] = 7218
set_var_int_to_constant $mobile_audio_labels[5] = 7202
set_var_int_to_constant $mobile_audio_labels[6] = 7219
set_var_int_to_constant $mobile_audio_labels[7] = 7203
set_var_int_to_constant $mobile_audio_labels[8] = 7220
set_var_int_to_constant $mobile_audio_labels[9] = 7204
set_var_int_to_constant $mobile_audio_labels[10] = 7221
set_var_int_to_constant $mobile_audio_labels[11] = 7205
set_var_int_to_constant $mobile_audio_labels[12] = 7222
set_var_int_to_constant $mobile_audio_labels[13] = 7206
set_var_int_to_constant $mobile_audio_labels[14] = 7207
$cell_index_end = 14
goto @CELLFON_13304

:CELLFON_6414
set_var_text_label s$mobile_print_labels[0] = 'MTRU02A'
set_var_text_label s$mobile_print_labels[1] = 'MTRU02B'
set_var_text_label s$mobile_print_labels[2] = 'MTRU02C'
set_var_text_label s$mobile_print_labels[3] = 'MTRU02D'
set_var_text_label s$mobile_print_labels[4] = 'MTRU02E'
set_var_text_label s$mobile_print_labels[5] = 'MTRU02F'
set_var_int_to_constant $mobile_audio_labels[0] = 7223
set_var_int_to_constant $mobile_audio_labels[1] = 7208
set_var_int_to_constant $mobile_audio_labels[2] = 7209
set_var_int_to_constant $mobile_audio_labels[3] = 7210
set_var_int_to_constant $mobile_audio_labels[4] = 7211
set_var_int_to_constant $mobile_audio_labels[5] = 7212
$cell_index_end = 5
goto @CELLFON_13304

:CELLFON_6560
set_var_text_label s$mobile_print_labels[0] = 'MTRU03A'
set_var_text_label s$mobile_print_labels[1] = 'MTRU03B'
set_var_text_label s$mobile_print_labels[2] = 'MTRU03C'
set_var_text_label s$mobile_print_labels[3] = 'MTRU03D'
set_var_text_label s$mobile_print_labels[4] = 'MTRU03E'
set_var_int_to_constant $mobile_audio_labels[0] = 7224
set_var_int_to_constant $mobile_audio_labels[1] = 7213
set_var_int_to_constant $mobile_audio_labels[2] = 7214
set_var_int_to_constant $mobile_audio_labels[3] = 7225
set_var_int_to_constant $mobile_audio_labels[4] = 7215
$cell_index_end = 4
goto @CELLFON_13304

:CELLFON_6684
set_var_text_label s$mobile_print_labels[0] = 'MWUZ00A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ00B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ00C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ00D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ00E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ00F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ00G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ00H'
set_var_text_label s$mobile_print_labels[8] = 'MWUZ00J'
set_var_int_to_constant $mobile_audio_labels[0] = 12040
set_var_int_to_constant $mobile_audio_labels[1] = 12000
set_var_int_to_constant $mobile_audio_labels[2] = 12001
set_var_int_to_constant $mobile_audio_labels[3] = 12041
set_var_int_to_constant $mobile_audio_labels[4] = 12002
set_var_int_to_constant $mobile_audio_labels[5] = 12003
set_var_int_to_constant $mobile_audio_labels[6] = 12004
set_var_int_to_constant $mobile_audio_labels[7] = 12042
set_var_int_to_constant $mobile_audio_labels[8] = 12043
$cell_index_end = 8
goto @CELLFON_13304

:CELLFON_6896
set_var_text_label s$mobile_print_labels[0] = 'MWUZ03A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ03B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ03C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ03D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ03E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ03F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ03G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ03H'
set_var_text_label s$mobile_print_labels[8] = 'MWUZ03J'
set_var_text_label s$mobile_print_labels[9] = 'MWUZ03K'
set_var_text_label s$mobile_print_labels[10] = 'MWUZ03L'
set_var_int_to_constant $mobile_audio_labels[0] = 12048
set_var_int_to_constant $mobile_audio_labels[1] = 12016
set_var_int_to_constant $mobile_audio_labels[2] = 12049
set_var_int_to_constant $mobile_audio_labels[3] = 12017
set_var_int_to_constant $mobile_audio_labels[4] = 12018
set_var_int_to_constant $mobile_audio_labels[5] = 12019
set_var_int_to_constant $mobile_audio_labels[6] = 12050
set_var_int_to_constant $mobile_audio_labels[7] = 12020
set_var_int_to_constant $mobile_audio_labels[8] = 12021
set_var_int_to_constant $mobile_audio_labels[9] = 12022
set_var_int_to_constant $mobile_audio_labels[10] = 12051
$cell_index_end = 10
goto @CELLFON_13304

:CELLFON_7152
set_var_text_label s$mobile_print_labels[0] = 'MWUZ03B'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ05B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ05C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ05D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ05E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ05F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ05G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ05H'
set_var_text_label s$mobile_print_labels[8] = 'MWUZ05J'
set_var_int_to_constant $mobile_audio_labels[0] = 12016
set_var_int_to_constant $mobile_audio_labels[1] = 12077
set_var_int_to_constant $mobile_audio_labels[2] = 12028
set_var_int_to_constant $mobile_audio_labels[3] = 12056
set_var_int_to_constant $mobile_audio_labels[4] = 12029
set_var_int_to_constant $mobile_audio_labels[5] = 12030
set_var_int_to_constant $mobile_audio_labels[6] = 12057
set_var_int_to_constant $mobile_audio_labels[7] = 12031
set_var_int_to_constant $mobile_audio_labels[8] = 12058
$cell_index_end = 8
goto @CELLFON_13304

:CELLFON_7364
set_var_text_label s$mobile_print_labels[0] = 'MWUZ07A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ07B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ07C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ07D'
set_var_int_to_constant $mobile_audio_labels[0] = 12037
set_var_int_to_constant $mobile_audio_labels[1] = 12038
set_var_int_to_constant $mobile_audio_labels[2] = 12039
set_var_int_to_constant $mobile_audio_labels[3] = 12067
$cell_index_end = 3
goto @CELLFON_13304

:CELLFON_7466
set_var_text_label s$mobile_print_labels[0] = 'MWUZ04A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ04B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ04C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ04D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ04E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ04F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ04G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ04H'
set_var_int_to_constant $mobile_audio_labels[0] = 12052
set_var_int_to_constant $mobile_audio_labels[1] = 12023
set_var_int_to_constant $mobile_audio_labels[2] = 12024
set_var_int_to_constant $mobile_audio_labels[3] = 12053
set_var_int_to_constant $mobile_audio_labels[4] = 12054
set_var_int_to_constant $mobile_audio_labels[5] = 12055
set_var_int_to_constant $mobile_audio_labels[6] = 12025
set_var_int_to_constant $mobile_audio_labels[7] = 12026
$cell_index_end = 7
goto @CELLFON_13304

:CELLFON_7656
set_var_text_label s$mobile_print_labels[0] = 'MWUZ06A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ06B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ06C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ06D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ09E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ09F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ06G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ06H'
set_var_text_label s$mobile_print_labels[8] = 'MWUZ06J'
set_var_text_label s$mobile_print_labels[9] = 'MWUZ09H'
set_var_text_label s$mobile_print_labels[10] = 'MWUZ09J'
set_var_text_label s$mobile_print_labels[11] = 'MWUZ06K'
set_var_text_label s$mobile_print_labels[12] = 'MWUZ06L'
set_var_text_label s$mobile_print_labels[13] = 'MWUZ06M'
set_var_text_label s$mobile_print_labels[14] = 'MWUZ06N'
set_var_int_to_constant $mobile_audio_labels[0] = 12059
set_var_int_to_constant $mobile_audio_labels[1] = 12032
set_var_int_to_constant $mobile_audio_labels[2] = 12060
set_var_int_to_constant $mobile_audio_labels[3] = 12033
set_var_int_to_constant $mobile_audio_labels[4] = 12073
set_var_int_to_constant $mobile_audio_labels[5] = 12074
set_var_int_to_constant $mobile_audio_labels[6] = 12034
set_var_int_to_constant $mobile_audio_labels[7] = 12063
set_var_int_to_constant $mobile_audio_labels[8] = 12064
set_var_int_to_constant $mobile_audio_labels[9] = 12075
set_var_int_to_constant $mobile_audio_labels[10] = 12076
set_var_int_to_constant $mobile_audio_labels[11] = 12035
set_var_int_to_constant $mobile_audio_labels[12] = 12036
set_var_int_to_constant $mobile_audio_labels[13] = 12065
set_var_int_to_constant $mobile_audio_labels[14] = 12066
$cell_index_end = 14
goto @CELLFON_13304

:CELLFON_8000
set_var_text_label s$mobile_print_labels[0] = 'MWUZ06A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ06B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ06C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ06D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ06E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ06F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ06G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ06H'
set_var_text_label s$mobile_print_labels[8] = 'MWUZ06J'
set_var_text_label s$mobile_print_labels[9] = 'MWUZ06K'
set_var_text_label s$mobile_print_labels[10] = 'MWUZ06L'
set_var_text_label s$mobile_print_labels[11] = 'MWUZ06M'
set_var_text_label s$mobile_print_labels[12] = 'MWUZ06N'
set_var_int_to_constant $mobile_audio_labels[0] = 12059
set_var_int_to_constant $mobile_audio_labels[1] = 12032
set_var_int_to_constant $mobile_audio_labels[2] = 12060
set_var_int_to_constant $mobile_audio_labels[3] = 12033
set_var_int_to_constant $mobile_audio_labels[4] = 12061
set_var_int_to_constant $mobile_audio_labels[5] = 12062
set_var_int_to_constant $mobile_audio_labels[6] = 12034
set_var_int_to_constant $mobile_audio_labels[7] = 12063
set_var_int_to_constant $mobile_audio_labels[8] = 12064
set_var_int_to_constant $mobile_audio_labels[9] = 12035
set_var_int_to_constant $mobile_audio_labels[10] = 12036
set_var_int_to_constant $mobile_audio_labels[11] = 12065
set_var_int_to_constant $mobile_audio_labels[12] = 12066
$cell_index_end = 12
goto @CELLFON_13304

:CELLFON_8300
set_var_text_label s$mobile_print_labels[0] = 'MTOR01A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR01B'
set_var_text_label s$mobile_print_labels[2] = 'MTOR01C'
set_var_text_label s$mobile_print_labels[3] = 'MTOR01D'
set_var_text_label s$mobile_print_labels[4] = 'MTOR01E'
set_var_text_label s$mobile_print_labels[5] = 'MTOR01F'
set_var_text_label s$mobile_print_labels[6] = 'MTOR01G'
set_var_text_label s$mobile_print_labels[7] = 'MTOR01H'
set_var_text_label s$mobile_print_labels[8] = 'MTOR01J'
set_var_text_label s$mobile_print_labels[9] = 'MTOR01K'
set_var_text_label s$mobile_print_labels[10] = 'MTOR01L'
set_var_int_to_constant $mobile_audio_labels[0] = 4859
set_var_int_to_constant $mobile_audio_labels[1] = 4800
set_var_int_to_constant $mobile_audio_labels[2] = 4801
set_var_int_to_constant $mobile_audio_labels[3] = 4802
set_var_int_to_constant $mobile_audio_labels[4] = 4803
set_var_int_to_constant $mobile_audio_labels[5] = 4860
set_var_int_to_constant $mobile_audio_labels[6] = 4804
set_var_int_to_constant $mobile_audio_labels[7] = 4861
set_var_int_to_constant $mobile_audio_labels[8] = 4805
set_var_int_to_constant $mobile_audio_labels[9] = 4806
set_var_int_to_constant $mobile_audio_labels[10] = 4807
$cell_index_end = 10
goto @CELLFON_13304

:CELLFON_8556
set_var_text_label s$mobile_print_labels[0] = 'MTOR02A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR02B'
set_var_text_label s$mobile_print_labels[2] = 'MTOR02C'
set_var_text_label s$mobile_print_labels[3] = 'MTOR02D'
set_var_text_label s$mobile_print_labels[4] = 'MTOR02E'
set_var_int_to_constant $mobile_audio_labels[0] = 4862
set_var_int_to_constant $mobile_audio_labels[1] = 4808
set_var_int_to_constant $mobile_audio_labels[2] = 4809
set_var_int_to_constant $mobile_audio_labels[3] = 4863
set_var_int_to_constant $mobile_audio_labels[4] = 4864
$cell_index_end = 4
goto @CELLFON_13304

:CELLFON_8680
set_var_text_label s$mobile_print_labels[0] = 'MTOR03A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR03B'
set_var_int_to_constant $mobile_audio_labels[0] = 4810
set_var_int_to_constant $mobile_audio_labels[1] = 4865
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_8738
set_var_text_label s$mobile_print_labels[0] = 'MTOR05A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR05B'
set_var_text_label s$mobile_print_labels[2] = 'MTOR05C'
set_var_text_label s$mobile_print_labels[3] = 'MTOR05D'
set_var_text_label s$mobile_print_labels[4] = 'MTOR05E'
set_var_text_label s$mobile_print_labels[5] = 'MTOR05F'
set_var_text_label s$mobile_print_labels[6] = 'MTOR05G'
set_var_text_label s$mobile_print_labels[7] = 'MTOR05H'
set_var_text_label s$mobile_print_labels[8] = 'MTOR05J'
set_var_int_to_constant $mobile_audio_labels[0] = 4844
set_var_int_to_constant $mobile_audio_labels[1] = 4819
set_var_int_to_constant $mobile_audio_labels[2] = 4845
set_var_int_to_constant $mobile_audio_labels[3] = 4820
set_var_int_to_constant $mobile_audio_labels[4] = 4846
set_var_int_to_constant $mobile_audio_labels[5] = 4821
set_var_int_to_constant $mobile_audio_labels[6] = 4822
set_var_int_to_constant $mobile_audio_labels[7] = 4847
set_var_int_to_constant $mobile_audio_labels[8] = 4823
$cell_index_end = 8
goto @CELLFON_13304

:CELLFON_8950
set_var_text_label s$mobile_print_labels[0] = 'MTOR06A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR06B'
set_var_text_label s$mobile_print_labels[2] = 'MTOR06C'
set_var_text_label s$mobile_print_labels[3] = 'MTOR06D'
set_var_text_label s$mobile_print_labels[4] = 'MTOR06E'
set_var_text_label s$mobile_print_labels[5] = 'MTOR06F'
set_var_text_label s$mobile_print_labels[6] = 'MTOR06G'
set_var_text_label s$mobile_print_labels[7] = 'MTOR06H'
set_var_text_label s$mobile_print_labels[8] = 'MTOR06J'
set_var_text_label s$mobile_print_labels[9] = 'MTOR06K'
set_var_text_label s$mobile_print_labels[10] = 'MTOR06L'
set_var_text_label s$mobile_print_labels[11] = 'MTOR06M'
set_var_int_to_constant $mobile_audio_labels[0] = 4848
set_var_int_to_constant $mobile_audio_labels[1] = 4824
set_var_int_to_constant $mobile_audio_labels[2] = 4825
set_var_int_to_constant $mobile_audio_labels[3] = 4849
set_var_int_to_constant $mobile_audio_labels[4] = 4826
set_var_int_to_constant $mobile_audio_labels[5] = 4827
set_var_int_to_constant $mobile_audio_labels[6] = 4828
set_var_int_to_constant $mobile_audio_labels[7] = 4829
set_var_int_to_constant $mobile_audio_labels[8] = 4830
set_var_int_to_constant $mobile_audio_labels[9] = 4850
set_var_int_to_constant $mobile_audio_labels[10] = 4851
set_var_int_to_constant $mobile_audio_labels[11] = 4852
$cell_index_end = 11
goto @CELLFON_13304

:CELLFON_9228
set_var_text_label s$mobile_print_labels[0] = 'MTOR07A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR07B'
set_var_text_label s$mobile_print_labels[2] = 'MTOR07C'
set_var_text_label s$mobile_print_labels[3] = 'MTOR07D'
set_var_text_label s$mobile_print_labels[4] = 'MTOR07E'
set_var_text_label s$mobile_print_labels[5] = 'MTOR07L'
set_var_text_label s$mobile_print_labels[6] = 'MTOR07M'
set_var_text_label s$mobile_print_labels[7] = 'MTOR07F'
set_var_text_label s$mobile_print_labels[8] = 'MTOR07G'
set_var_text_label s$mobile_print_labels[9] = 'MTOR07N'
set_var_text_label s$mobile_print_labels[10] = 'MTOR07O'
set_var_text_label s$mobile_print_labels[11] = 'MTOR07H'
set_var_text_label s$mobile_print_labels[12] = 'MTOR07J'
set_var_text_label s$mobile_print_labels[13] = 'MTOR07K'
set_var_int_to_constant $mobile_audio_labels[0] = 4854
set_var_int_to_constant $mobile_audio_labels[1] = 4831
set_var_int_to_constant $mobile_audio_labels[2] = 4855
set_var_int_to_constant $mobile_audio_labels[3] = 4832
set_var_int_to_constant $mobile_audio_labels[4] = 4833
set_var_int_to_constant $mobile_audio_labels[5] = 4836
set_var_int_to_constant $mobile_audio_labels[6] = 4837
set_var_int_to_constant $mobile_audio_labels[7] = 4856
set_var_int_to_constant $mobile_audio_labels[8] = 4834
set_var_int_to_constant $mobile_audio_labels[9] = 4838
set_var_int_to_constant $mobile_audio_labels[10] = 4839
set_var_int_to_constant $mobile_audio_labels[11] = 4857
set_var_int_to_constant $mobile_audio_labels[12] = 4835
set_var_int_to_constant $mobile_audio_labels[13] = 4858
$cell_index_end = 13
goto @CELLFON_13304

:CELLFON_9550
set_var_text_label s$mobile_print_labels[0] = 'MKP01A'
set_var_text_label s$mobile_print_labels[1] = 'MKP01B'
set_var_text_label s$mobile_print_labels[2] = 'MKP01C'
set_var_text_label s$mobile_print_labels[3] = 'MKP01D'
set_var_text_label s$mobile_print_labels[4] = 'MKP01E'
set_var_text_label s$mobile_print_labels[5] = 'MKP01F'
set_var_int_to_constant $mobile_audio_labels[0] = 16204
set_var_int_to_constant $mobile_audio_labels[1] = 16200
set_var_int_to_constant $mobile_audio_labels[2] = 16201
set_var_int_to_constant $mobile_audio_labels[3] = 16202
set_var_int_to_constant $mobile_audio_labels[4] = 16203
set_var_int_to_constant $mobile_audio_labels[5] = 16205
$cell_index_end = 5
goto @CELLFON_13304

:CELLFON_9696
set_var_text_label s$mobile_print_labels[0] = 'MSAL01A'
set_var_text_label s$mobile_print_labels[1] = 'MROS01B'
set_var_text_label s$mobile_print_labels[2] = 'MROS01D'
set_var_text_label s$mobile_print_labels[3] = 'MROS01F'
set_var_text_label s$mobile_print_labels[4] = 'MROS01H'
set_var_text_label s$mobile_print_labels[5] = 'MROS01L'
set_var_int_to_constant $mobile_audio_labels[0] = 19600
set_var_int_to_constant $mobile_audio_labels[1] = 7000
set_var_int_to_constant $mobile_audio_labels[2] = 7001
set_var_int_to_constant $mobile_audio_labels[3] = 7003
set_var_int_to_constant $mobile_audio_labels[4] = 7004
set_var_int_to_constant $mobile_audio_labels[5] = 7005
$cell_index_end = 5
goto @CELLFON_13304

:CELLFON_9842
set_var_text_label s$mobile_print_labels[0] = 'MROS02A'
set_var_text_label s$mobile_print_labels[1] = 'MROS02B'
set_var_text_label s$mobile_print_labels[2] = 'MROS02C'
set_var_text_label s$mobile_print_labels[3] = 'MROS02D'
set_var_text_label s$mobile_print_labels[4] = 'MROS02E'
set_var_text_label s$mobile_print_labels[5] = 'MROS02F'
set_var_text_label s$mobile_print_labels[6] = 'MROS02G'
set_var_int_to_constant $mobile_audio_labels[0] = 7025
set_var_int_to_constant $mobile_audio_labels[1] = 7006
set_var_int_to_constant $mobile_audio_labels[2] = 7026
set_var_int_to_constant $mobile_audio_labels[3] = 7007
set_var_int_to_constant $mobile_audio_labels[4] = 7008
set_var_int_to_constant $mobile_audio_labels[5] = 7027
set_var_int_to_constant $mobile_audio_labels[6] = 7009
$cell_index_end = 6
goto @CELLFON_13304

:CELLFON_10010
set_var_text_label s$mobile_print_labels[0] = 'MROS03A'
set_var_text_label s$mobile_print_labels[1] = 'MROS03B'
set_var_text_label s$mobile_print_labels[2] = 'MROS03C'
set_var_text_label s$mobile_print_labels[3] = 'MROS03D'
set_var_text_label s$mobile_print_labels[4] = 'MROS03E'
set_var_text_label s$mobile_print_labels[5] = 'MROS03F'
set_var_text_label s$mobile_print_labels[6] = 'MROS03G'
set_var_text_label s$mobile_print_labels[7] = 'MROS03H'
set_var_text_label s$mobile_print_labels[8] = 'MROS03J'
set_var_text_label s$mobile_print_labels[9] = 'MROS03K'
set_var_text_label s$mobile_print_labels[10] = 'MROS03L'
set_var_text_label s$mobile_print_labels[11] = 'MROS03N'
set_var_text_label s$mobile_print_labels[12] = 'MROS03O'
set_var_text_label s$mobile_print_labels[13] = 'MROS03P'
set_var_int_to_constant $mobile_audio_labels[0] = 7018
set_var_int_to_constant $mobile_audio_labels[1] = 7010
set_var_int_to_constant $mobile_audio_labels[2] = 7019
set_var_int_to_constant $mobile_audio_labels[3] = 7011
set_var_int_to_constant $mobile_audio_labels[4] = 7012
set_var_int_to_constant $mobile_audio_labels[5] = 7013
set_var_int_to_constant $mobile_audio_labels[6] = 7020
set_var_int_to_constant $mobile_audio_labels[7] = 7021
set_var_int_to_constant $mobile_audio_labels[8] = 7014
set_var_int_to_constant $mobile_audio_labels[9] = 7015
set_var_int_to_constant $mobile_audio_labels[10] = 7016
set_var_int_to_constant $mobile_audio_labels[11] = 7022
set_var_int_to_constant $mobile_audio_labels[12] = 7023
set_var_int_to_constant $mobile_audio_labels[13] = 7017
$cell_index_end = 13
goto @CELLFON_13304

:CELLFON_10332
set_var_text_label s$mobile_print_labels[0] = 'MSAL01A'
set_var_text_label s$mobile_print_labels[1] = 'MSAL01B'
set_var_text_label s$mobile_print_labels[2] = 'MSAL01C'
set_var_text_label s$mobile_print_labels[3] = 'MSAL01D'
set_var_text_label s$mobile_print_labels[4] = 'MSAL01E'
set_var_text_label s$mobile_print_labels[5] = 'MSAL01F'
set_var_text_label s$mobile_print_labels[6] = 'MSAL01G'
set_var_text_label s$mobile_print_labels[7] = 'MSAL01H'
set_var_text_label s$mobile_print_labels[8] = 'MSAL01J'
set_var_text_label s$mobile_print_labels[9] = 'MSAL01K'
set_var_text_label s$mobile_print_labels[10] = 'MSAL01M'
set_var_text_label s$mobile_print_labels[11] = 'MSAL01N'
set_var_text_label s$mobile_print_labels[12] = 'MSAL01O'
set_var_int_to_constant $mobile_audio_labels[0] = 19600
set_var_int_to_constant $mobile_audio_labels[1] = 19612
set_var_int_to_constant $mobile_audio_labels[2] = 19601
set_var_int_to_constant $mobile_audio_labels[3] = 19613
set_var_int_to_constant $mobile_audio_labels[4] = 19602
set_var_int_to_constant $mobile_audio_labels[5] = 19614
set_var_int_to_constant $mobile_audio_labels[6] = 19603
set_var_int_to_constant $mobile_audio_labels[7] = 19604
set_var_int_to_constant $mobile_audio_labels[8] = 19615
set_var_int_to_constant $mobile_audio_labels[9] = 19616
set_var_int_to_constant $mobile_audio_labels[10] = 19617
set_var_int_to_constant $mobile_audio_labels[11] = 19622
set_var_int_to_constant $mobile_audio_labels[12] = 19605
$cell_index_end = 12
goto @CELLFON_13304

:CELLFON_10632
set_var_text_label s$mobile_print_labels[0] = 'MSAL02A'
set_var_text_label s$mobile_print_labels[1] = 'MSAL02B'
set_var_text_label s$mobile_print_labels[2] = 'MSAL02C'
set_var_text_label s$mobile_print_labels[3] = 'MSAL02D'
set_var_text_label s$mobile_print_labels[4] = 'MSAL02E'
set_var_text_label s$mobile_print_labels[5] = 'MSAL02F'
set_var_text_label s$mobile_print_labels[6] = 'MSAL02G'
set_var_text_label s$mobile_print_labels[7] = 'MSAL02H'
set_var_text_label s$mobile_print_labels[8] = 'MSAL02J'
set_var_text_label s$mobile_print_labels[9] = 'MSAL02K'
set_var_int_to_constant $mobile_audio_labels[0] = 19606
set_var_int_to_constant $mobile_audio_labels[1] = 19618
set_var_int_to_constant $mobile_audio_labels[2] = 19607
set_var_int_to_constant $mobile_audio_labels[3] = 19608
set_var_int_to_constant $mobile_audio_labels[4] = 19619
set_var_int_to_constant $mobile_audio_labels[5] = 19620
set_var_int_to_constant $mobile_audio_labels[6] = 19609
set_var_int_to_constant $mobile_audio_labels[7] = 19610
set_var_int_to_constant $mobile_audio_labels[8] = 19611
set_var_int_to_constant $mobile_audio_labels[9] = 19621
$cell_index_end = 9
goto @CELLFON_13304

:CELLFON_10866
set_var_text_label s$mobile_print_labels[0] = 'MMILL2A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL2B'
set_var_text_label s$mobile_print_labels[2] = 'MMILL2C'
set_var_text_label s$mobile_print_labels[3] = 'MMILL2D'
set_var_text_label s$mobile_print_labels[4] = 'MMILL2E'
set_var_text_label s$mobile_print_labels[5] = 'MMILL2F'
set_var_text_label s$mobile_print_labels[6] = 'MMILL2H'
set_var_text_label s$mobile_print_labels[7] = 'MMILL2J'
set_var_text_label s$mobile_print_labels[8] = 'MMILL2K'
set_var_text_label s$mobile_print_labels[9] = 'MMILL2L'
set_var_int_to_constant $mobile_audio_labels[0] = 43425
set_var_int_to_constant $mobile_audio_labels[1] = 43406
set_var_int_to_constant $mobile_audio_labels[2] = 43426
set_var_int_to_constant $mobile_audio_labels[3] = 43407
set_var_int_to_constant $mobile_audio_labels[4] = 43408
set_var_int_to_constant $mobile_audio_labels[5] = 43409
set_var_int_to_constant $mobile_audio_labels[6] = 43427
set_var_int_to_constant $mobile_audio_labels[7] = 43411
set_var_int_to_constant $mobile_audio_labels[8] = 43428
set_var_int_to_constant $mobile_audio_labels[9] = 43412
$cell_index_end = 9
goto @CELLFON_13304

:CELLFON_11120
set_var_text_label s$mobile_print_labels[0] = 'MZER01A'
set_var_text_label s$mobile_print_labels[1] = 'MZER01B'
set_var_text_label s$mobile_print_labels[2] = 'MZER01C'
set_var_text_label s$mobile_print_labels[3] = 'MZER01D'
set_var_text_label s$mobile_print_labels[4] = 'MZER01E'
set_var_text_label s$mobile_print_labels[5] = 'MZER01F'
set_var_text_label s$mobile_print_labels[6] = 'MZER01G'
set_var_int_to_constant $mobile_audio_labels[0] = 20200
set_var_int_to_constant $mobile_audio_labels[1] = 20210
set_var_int_to_constant $mobile_audio_labels[2] = 20201
set_var_int_to_constant $mobile_audio_labels[3] = 20211
set_var_int_to_constant $mobile_audio_labels[4] = 20212
set_var_int_to_constant $mobile_audio_labels[5] = 20202
set_var_int_to_constant $mobile_audio_labels[6] = 20203
$cell_index_end = 6
goto @CELLFON_13304

:CELLFON_11288
set_var_text_label s$mobile_print_labels[0] = 'MZER02A'
set_var_text_label s$mobile_print_labels[1] = 'MZER02B'
set_var_text_label s$mobile_print_labels[2] = 'MZER02C'
set_var_text_label s$mobile_print_labels[3] = 'MZER02D'
set_var_text_label s$mobile_print_labels[4] = 'MZER02E'
set_var_text_label s$mobile_print_labels[5] = 'MZER02F'
set_var_text_label s$mobile_print_labels[6] = 'MZER02G'
set_var_text_label s$mobile_print_labels[7] = 'MZER02H'
set_var_text_label s$mobile_print_labels[8] = 'MZER02J'
set_var_text_label s$mobile_print_labels[9] = 'MZER02K'
set_var_int_to_constant $mobile_audio_labels[0] = 20204
set_var_int_to_constant $mobile_audio_labels[1] = 20213
set_var_int_to_constant $mobile_audio_labels[2] = 20205
set_var_int_to_constant $mobile_audio_labels[3] = 20214
set_var_int_to_constant $mobile_audio_labels[4] = 20206
set_var_int_to_constant $mobile_audio_labels[5] = 20207
set_var_int_to_constant $mobile_audio_labels[6] = 20215
set_var_int_to_constant $mobile_audio_labels[7] = 20216
set_var_int_to_constant $mobile_audio_labels[8] = 20208
set_var_int_to_constant $mobile_audio_labels[9] = 20209
$cell_index_end = 9
goto @CELLFON_13304

:CELLFON_11522
set_var_text_label s$mobile_print_labels[0] = 'MJET_1A'
set_var_text_label s$mobile_print_labels[1] = 'MJET_1B'
set_var_text_label s$mobile_print_labels[2] = 'MJET_1C'
set_var_text_label s$mobile_print_labels[3] = 'MJET_1D'
set_var_text_label s$mobile_print_labels[4] = 'MJET_1E'
set_var_text_label s$mobile_print_labels[5] = 'MJET_1F'
set_var_text_label s$mobile_print_labels[6] = 'MJET_1G'
set_var_text_label s$mobile_print_labels[7] = 'MJET_1H'
set_var_text_label s$mobile_print_labels[8] = 'MJET_1J'
set_var_text_label s$mobile_print_labels[9] = 'MJET_1K'
set_var_text_label s$mobile_print_labels[10] = 'MJET_1L'
set_var_text_label s$mobile_print_labels[11] = 'MJET_1M'
set_var_text_label s$mobile_print_labels[12] = 'MJET_1N'
set_var_text_label s$mobile_print_labels[13] = 'MJET_1O'
set_var_text_label s$mobile_print_labels[14] = 'MJET_1P'
set_var_int_to_constant $mobile_audio_labels[0] = 15823
set_var_int_to_constant $mobile_audio_labels[1] = 15800
set_var_int_to_constant $mobile_audio_labels[2] = 15824
set_var_int_to_constant $mobile_audio_labels[3] = 15801
set_var_int_to_constant $mobile_audio_labels[4] = 15802
set_var_int_to_constant $mobile_audio_labels[5] = 15803
set_var_int_to_constant $mobile_audio_labels[6] = 15804
set_var_int_to_constant $mobile_audio_labels[7] = 15825
set_var_int_to_constant $mobile_audio_labels[8] = 15805
set_var_int_to_constant $mobile_audio_labels[9] = 15806
set_var_int_to_constant $mobile_audio_labels[10] = 15807
set_var_int_to_constant $mobile_audio_labels[11] = 15826
set_var_int_to_constant $mobile_audio_labels[12] = 15808
set_var_int_to_constant $mobile_audio_labels[13] = 15809
set_var_int_to_constant $mobile_audio_labels[14] = 15810
$cell_index_end = 14
goto @CELLFON_13304

:CELLFON_11866
set_var_text_label s$mobile_print_labels[0] = 'MJET_2A'
set_var_text_label s$mobile_print_labels[1] = 'MJET_2B'
set_var_text_label s$mobile_print_labels[2] = 'MJET_2C'
set_var_text_label s$mobile_print_labels[3] = 'MJET_2D'
set_var_text_label s$mobile_print_labels[4] = 'MJET_2E'
set_var_text_label s$mobile_print_labels[5] = 'MJET_2F'
set_var_text_label s$mobile_print_labels[6] = 'MJET_2G'
set_var_text_label s$mobile_print_labels[7] = 'MJET_2H'
set_var_text_label s$mobile_print_labels[8] = 'MJET_2J'
set_var_text_label s$mobile_print_labels[9] = 'MJET_2K'
set_var_text_label s$mobile_print_labels[10] = 'MJET_2L'
set_var_int_to_constant $mobile_audio_labels[0] = 15811
set_var_int_to_constant $mobile_audio_labels[1] = 15827
set_var_int_to_constant $mobile_audio_labels[2] = 15812
set_var_int_to_constant $mobile_audio_labels[3] = 15813
set_var_int_to_constant $mobile_audio_labels[4] = 15814
set_var_int_to_constant $mobile_audio_labels[5] = 15828
set_var_int_to_constant $mobile_audio_labels[6] = 15815
set_var_int_to_constant $mobile_audio_labels[7] = 15816
set_var_int_to_constant $mobile_audio_labels[8] = 15817
set_var_int_to_constant $mobile_audio_labels[9] = 15829
set_var_int_to_constant $mobile_audio_labels[10] = 15830
$cell_index_end = 10
goto @CELLFON_13304

:CELLFON_12122
set_var_text_label s$mobile_print_labels[0] = 'MJET_3A'
set_var_text_label s$mobile_print_labels[1] = 'MJET_3B'
set_var_text_label s$mobile_print_labels[2] = 'MJET_3C'
set_var_text_label s$mobile_print_labels[3] = 'MJET_3D'
set_var_text_label s$mobile_print_labels[4] = 'MJET_3E'
set_var_text_label s$mobile_print_labels[5] = 'MJET_3F'
set_var_text_label s$mobile_print_labels[6] = 'MJET_3G'
set_var_text_label s$mobile_print_labels[7] = 'MJET_3H'
set_var_int_to_constant $mobile_audio_labels[0] = 15831
set_var_int_to_constant $mobile_audio_labels[1] = 15818
set_var_int_to_constant $mobile_audio_labels[2] = 15819
set_var_int_to_constant $mobile_audio_labels[3] = 15820
set_var_int_to_constant $mobile_audio_labels[4] = 15821
set_var_int_to_constant $mobile_audio_labels[5] = 15822
set_var_int_to_constant $mobile_audio_labels[6] = 15832
set_var_int_to_constant $mobile_audio_labels[7] = 15833
$cell_index_end = 7
goto @CELLFON_13304

:CELLFON_12312
set_var_text_label s$mobile_print_labels[0] = 'SHRK_1A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_1B'
set_var_int_to_constant $mobile_audio_labels[0] = 43814
set_var_int_to_constant $mobile_audio_labels[1] = 43815
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12374
set_var_text_label s$mobile_print_labels[0] = 'SHRK_2A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_2B'
set_var_int_to_constant $mobile_audio_labels[0] = 43816
set_var_int_to_constant $mobile_audio_labels[1] = 43817
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12436
set_var_text_label s$mobile_print_labels[0] = 'SHRK_3A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_3B'
set_var_int_to_constant $mobile_audio_labels[0] = 43818
set_var_int_to_constant $mobile_audio_labels[1] = 43819
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12498
set_var_text_label s$mobile_print_labels[0] = 'SHRK_4A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_4B'
set_var_int_to_constant $mobile_audio_labels[0] = 43820
set_var_int_to_constant $mobile_audio_labels[1] = 43821
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12560
set_var_text_label s$mobile_print_labels[0] = 'SHRK_5A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_5B'
set_var_int_to_constant $mobile_audio_labels[0] = 43822
set_var_int_to_constant $mobile_audio_labels[1] = 43823
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12622
set_var_text_label s$mobile_print_labels[0] = 'SHRK_6A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_6B'
set_var_int_to_constant $mobile_audio_labels[0] = 43824
set_var_int_to_constant $mobile_audio_labels[1] = 43825
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12684
set_var_text_label s$mobile_print_labels[0] = 'SHRK_7A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_7B'
set_var_int_to_constant $mobile_audio_labels[0] = 43826
set_var_int_to_constant $mobile_audio_labels[1] = 43827
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12746
set_var_text_label s$mobile_print_labels[0] = 'SHRK_8A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_8B'
set_var_int_to_constant $mobile_audio_labels[0] = 43828
set_var_int_to_constant $mobile_audio_labels[1] = 43829
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12808
set_var_text_label s$mobile_print_labels[0] = 'SHRK_9A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_9B'
set_var_int_to_constant $mobile_audio_labels[0] = 43830
set_var_int_to_constant $mobile_audio_labels[1] = 43831
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12870
set_var_text_label s$mobile_print_labels[0] = 'SHRK10A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK10B'
set_var_int_to_constant $mobile_audio_labels[0] = 43800
set_var_int_to_constant $mobile_audio_labels[1] = 43801
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12932
set_var_text_label s$mobile_print_labels[0] = 'SHRK11A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK11B'
set_var_int_to_constant $mobile_audio_labels[0] = 43802
set_var_int_to_constant $mobile_audio_labels[1] = 43803
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_12994
set_var_text_label s$mobile_print_labels[0] = 'SHRK12A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK12B'
set_var_int_to_constant $mobile_audio_labels[0] = 43804
set_var_int_to_constant $mobile_audio_labels[1] = 43805
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_13056
set_var_text_label s$mobile_print_labels[0] = 'SHRK13A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK13B'
set_var_int_to_constant $mobile_audio_labels[0] = 43806
set_var_int_to_constant $mobile_audio_labels[1] = 43807
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_13118
set_var_text_label s$mobile_print_labels[0] = 'SHRK14A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK14B'
set_var_int_to_constant $mobile_audio_labels[0] = 43808
set_var_int_to_constant $mobile_audio_labels[1] = 43809
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_13180
set_var_text_label s$mobile_print_labels[0] = 'SHRK15A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK15B'
set_var_int_to_constant $mobile_audio_labels[0] = 43810
set_var_int_to_constant $mobile_audio_labels[1] = 43811
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_13242
set_var_text_label s$mobile_print_labels[0] = 'SHRK16A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK16B'
set_var_int_to_constant $mobile_audio_labels[0] = 43812
set_var_int_to_constant $mobile_audio_labels[1] = 43813
$cell_index_end = 1
goto @CELLFON_13304

:CELLFON_13304
goto @CELLFON_18362

:CELLFON_13311
switch_start $call_number {numCases} 54 {hasDefaultCase} 0 {defaultLabel} @CELLFON_18362 {caseNum1} 70 {caseLabel1} @CELLFON_13770 {caseNum2} 71 {caseLabel2} @CELLFON_13832 {caseNum3} 72 {caseLabel3} @CELLFON_13894 {caseNum4} 73 {caseLabel4} @CELLFON_13956 {caseNum5} 74 {caseLabel5} @CELLFON_14018 {caseNum6} 75 {caseLabel6} @CELLFON_14080 {caseNum7} 76 {caseLabel7} @CELLFON_14142
switch_continued 77 {caseLabel1} @CELLFON_14204 {caseNum2} 80 {caseLabel2} @CELLFON_14544 {caseNum3} 81 {caseLabel3} @CELLFON_14606 {caseNum4} 82 {caseLabel4} @CELLFON_14668 {caseNum5} 83 {caseLabel5} @CELLFON_14730 {caseNum6} 84 {caseLabel6} @CELLFON_14792 {caseNum7} 85 {caseLabel7} @CELLFON_14854 {caseNum8} 86 {caseLabel8} @CELLFON_14916 {caseNum9} 87 {caseLabel9} @CELLFON_14978
switch_continued 90 {caseLabel1} @CELLFON_15270 {caseNum2} 91 {caseLabel2} @CELLFON_15328 {caseNum3} 92 {caseLabel3} @CELLFON_15386 {caseNum4} 93 {caseLabel4} @CELLFON_15444 {caseNum5} 94 {caseLabel5} @CELLFON_15502 {caseNum6} 95 {caseLabel6} @CELLFON_15560 {caseNum7} 96 {caseLabel7} @CELLFON_15618 {caseNum8} 97 {caseLabel8} @CELLFON_15676 {caseNum9} 100 {caseLabel9} @CELLFON_15968
switch_continued 101 {caseLabel1} @CELLFON_16030 {caseNum2} 102 {caseLabel2} @CELLFON_16092 {caseNum3} 103 {caseLabel3} @CELLFON_16154 {caseNum4} 104 {caseLabel4} @CELLFON_16216 {caseNum5} 105 {caseLabel5} @CELLFON_16278 {caseNum6} 106 {caseLabel6} @CELLFON_16340 {caseNum7} 107 {caseLabel7} @CELLFON_16402 {caseNum8} 110 {caseLabel8} @CELLFON_16886 {caseNum9} 111 {caseLabel9} @CELLFON_16948
switch_continued 112 {caseLabel1} @CELLFON_17010 {caseNum2} 113 {caseLabel2} @CELLFON_17072 {caseNum3} 114 {caseLabel3} @CELLFON_17134 {caseNum4} 115 {caseLabel4} @CELLFON_17196 {caseNum5} 116 {caseLabel5} @CELLFON_17258 {caseNum6} 117 {caseLabel6} @CELLFON_17320 {caseNum7} 120 {caseLabel7} @CELLFON_17612 {caseNum8} 121 {caseLabel8} @CELLFON_17674 {caseNum9} 122 {caseLabel9} @CELLFON_17736
switch_continued 123 {caseLabel1} @CELLFON_17798 {caseNum2} 124 {caseLabel2} @CELLFON_17860 {caseNum3} 125 {caseLabel3} @CELLFON_17922 {caseNum4} 126 {caseLabel4} @CELLFON_17984 {caseNum5} 127 {caseLabel5} @CELLFON_18046 {caseNum6} 130 {caseLabel6} @CELLFON_14266 {caseNum7} 131 {caseLabel7} @CELLFON_15040 {caseNum8} 132 {caseLabel8} @CELLFON_15734 {caseNum9} 133 {caseLabel9} @CELLFON_16464
switch_continued 134 {caseLabel1} @CELLFON_17382 {caseNum2} 135 {caseLabel2} @CELLFON_18108 {caseNum3} -1 {caseLabel3} @CELLFON_18362 {caseNum4} -1 {caseLabel4} @CELLFON_18362 {caseNum5} -1 {caseLabel5} @CELLFON_18362 {caseNum6} -1 {caseLabel6} @CELLFON_18362 {caseNum7} -1 {caseLabel7} @CELLFON_18362 {caseNum8} -1 {caseLabel8} @CELLFON_18362 {caseNum9} -1 {caseLabel9} @CELLFON_18362

:CELLFON_13770
set_var_text_label s$mobile_print_labels[0] = 'MDEN_2A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_2D'
set_var_int_to_constant $mobile_audio_labels[0] = 39007
set_var_int_to_constant $mobile_audio_labels[1] = 39016
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_13832
set_var_text_label s$mobile_print_labels[0] = 'MDEN_3A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_3B'
set_var_int_to_constant $mobile_audio_labels[0] = 39008
set_var_int_to_constant $mobile_audio_labels[1] = 39017
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_13894
set_var_text_label s$mobile_print_labels[0] = 'MDEN_4A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_4D'
set_var_int_to_constant $mobile_audio_labels[0] = 39009
set_var_int_to_constant $mobile_audio_labels[1] = 39018
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_13956
set_var_text_label s$mobile_print_labels[0] = 'MDEN_5A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_5B'
set_var_int_to_constant $mobile_audio_labels[0] = 39010
set_var_int_to_constant $mobile_audio_labels[1] = 39019
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14018
set_var_text_label s$mobile_print_labels[0] = 'MDEN_6A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_6D'
set_var_int_to_constant $mobile_audio_labels[0] = 39011
set_var_int_to_constant $mobile_audio_labels[1] = 39020
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14080
set_var_text_label s$mobile_print_labels[0] = 'MDEN_7D'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_4D'
set_var_int_to_constant $mobile_audio_labels[0] = 39021
set_var_int_to_constant $mobile_audio_labels[1] = 39018
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14142
set_var_text_label s$mobile_print_labels[0] = 'MDEN_8D'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_6D'
set_var_int_to_constant $mobile_audio_labels[0] = 39022
set_var_int_to_constant $mobile_audio_labels[1] = 39020
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14204
set_var_text_label s$mobile_print_labels[0] = 'MDEN_9D'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_5B'
set_var_int_to_constant $mobile_audio_labels[0] = 39023
set_var_int_to_constant $mobile_audio_labels[1] = 39019
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14266
set_var_text_label s$mobile_print_labels[0] = 'MDEN_1A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_1B'
set_var_text_label s$mobile_print_labels[2] = 'MDEN_1C'
set_var_text_label s$mobile_print_labels[3] = 'MDEN_1D'
set_var_text_label s$mobile_print_labels[4] = 'MDEN_1E'
set_var_text_label s$mobile_print_labels[5] = 'MDEN_1F'
set_var_text_label s$mobile_print_labels[6] = 'MDEN_1G'
set_var_text_label s$mobile_print_labels[7] = 'MDEN_1H'
set_var_text_label s$mobile_print_labels[8] = 'MDEN_1J'
set_var_text_label s$mobile_print_labels[9] = 'MDEN_1K'
set_var_text_label s$mobile_print_labels[10] = 'MDEN_1L'
set_var_int_to_constant $mobile_audio_labels[0] = 39012
set_var_int_to_constant $mobile_audio_labels[1] = 39000
set_var_int_to_constant $mobile_audio_labels[2] = 39013
set_var_int_to_constant $mobile_audio_labels[3] = 39001
set_var_int_to_constant $mobile_audio_labels[4] = 39014
set_var_int_to_constant $mobile_audio_labels[5] = 39002
set_var_int_to_constant $mobile_audio_labels[6] = 39003
set_var_int_to_constant $mobile_audio_labels[7] = 39004
set_var_int_to_constant $mobile_audio_labels[8] = 39005
set_var_int_to_constant $mobile_audio_labels[9] = 39015
set_var_int_to_constant $mobile_audio_labels[10] = 39006
$cell_index_end = 10
goto @CELLFON_18362

:CELLFON_14544
set_var_text_label s$mobile_print_labels[0] = 'MMICH2A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH2B'
set_var_int_to_constant $mobile_audio_labels[0] = 45214
set_var_int_to_constant $mobile_audio_labels[1] = 45204
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14606
set_var_text_label s$mobile_print_labels[0] = 'MMICH3A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH3D'
set_var_int_to_constant $mobile_audio_labels[0] = 45215
set_var_int_to_constant $mobile_audio_labels[1] = 45205
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14668
set_var_text_label s$mobile_print_labels[0] = 'MMICH4A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH4B'
set_var_int_to_constant $mobile_audio_labels[0] = 45216
set_var_int_to_constant $mobile_audio_labels[1] = 45206
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14730
set_var_text_label s$mobile_print_labels[0] = 'MMICH5A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH5D'
set_var_int_to_constant $mobile_audio_labels[0] = 45217
set_var_int_to_constant $mobile_audio_labels[1] = 45207
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14792
set_var_text_label s$mobile_print_labels[0] = 'MMICH6A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH6D'
set_var_int_to_constant $mobile_audio_labels[0] = 45218
set_var_int_to_constant $mobile_audio_labels[1] = 45208
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14854
set_var_text_label s$mobile_print_labels[0] = 'MMICH7D'
set_var_text_label s$mobile_print_labels[1] = 'MMICH3D'
set_var_int_to_constant $mobile_audio_labels[0] = 45219
set_var_int_to_constant $mobile_audio_labels[1] = 45205
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14916
set_var_text_label s$mobile_print_labels[0] = 'MMICH8D'
set_var_text_label s$mobile_print_labels[1] = 'MMICH5D'
set_var_int_to_constant $mobile_audio_labels[0] = 45220
set_var_int_to_constant $mobile_audio_labels[1] = 45207
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_14978
set_var_text_label s$mobile_print_labels[0] = 'MMICH9D'
set_var_text_label s$mobile_print_labels[1] = 'MMICH4B'
set_var_int_to_constant $mobile_audio_labels[0] = 45221
set_var_int_to_constant $mobile_audio_labels[1] = 45206
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15040
set_var_text_label s$mobile_print_labels[0] = 'MMICH1A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH1B'
set_var_text_label s$mobile_print_labels[2] = 'MMICH1C'
set_var_text_label s$mobile_print_labels[3] = 'MMICH1D'
set_var_text_label s$mobile_print_labels[4] = 'MMICH1E'
set_var_text_label s$mobile_print_labels[5] = 'MMICH1F'
set_var_text_label s$mobile_print_labels[6] = 'MMICH1G'
set_var_text_label s$mobile_print_labels[7] = 'MMICH1H'
set_var_text_label s$mobile_print_labels[8] = 'MMICH1J'
set_var_int_to_constant $mobile_audio_labels[0] = 45200
set_var_int_to_constant $mobile_audio_labels[1] = 45209
set_var_int_to_constant $mobile_audio_labels[2] = 45201
set_var_int_to_constant $mobile_audio_labels[3] = 45210
set_var_int_to_constant $mobile_audio_labels[4] = 45211
set_var_int_to_constant $mobile_audio_labels[5] = 45202
set_var_int_to_constant $mobile_audio_labels[6] = 45212
set_var_int_to_constant $mobile_audio_labels[7] = 45213
set_var_int_to_constant $mobile_audio_labels[8] = 45203
$cell_index_end = 8
goto @CELLFON_18362

:CELLFON_15270
set_var_text_label s$mobile_print_labels[0] = 'MHEL_2A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_2B'
set_var_int_to_constant $mobile_audio_labels[0] = 17419
set_var_int_to_constant $mobile_audio_labels[1] = 17411
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15328
set_var_text_label s$mobile_print_labels[0] = 'MHEL_3A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_3B'
set_var_int_to_constant $mobile_audio_labels[0] = 17420
set_var_int_to_constant $mobile_audio_labels[1] = 17412
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15386
set_var_text_label s$mobile_print_labels[0] = 'MHEL_4A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_4B'
set_var_int_to_constant $mobile_audio_labels[0] = 17421
set_var_int_to_constant $mobile_audio_labels[1] = 17413
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15444
set_var_text_label s$mobile_print_labels[0] = 'MHEL_6A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_6B'
set_var_int_to_constant $mobile_audio_labels[0] = 17423
set_var_int_to_constant $mobile_audio_labels[1] = 17415
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15502
set_var_text_label s$mobile_print_labels[0] = 'MHEL_5A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_5B'
set_var_int_to_constant $mobile_audio_labels[0] = 17422
set_var_int_to_constant $mobile_audio_labels[1] = 17414
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15560
set_var_text_label s$mobile_print_labels[0] = 'MHELD7D'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_2B'
set_var_int_to_constant $mobile_audio_labels[0] = 17416
set_var_int_to_constant $mobile_audio_labels[1] = 17411
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15618
set_var_text_label s$mobile_print_labels[0] = 'MHELD9D'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_4B'
set_var_int_to_constant $mobile_audio_labels[0] = 17418
set_var_int_to_constant $mobile_audio_labels[1] = 17413
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15676
set_var_text_label s$mobile_print_labels[0] = 'MHELD8D'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_3B'
set_var_int_to_constant $mobile_audio_labels[0] = 17417
set_var_int_to_constant $mobile_audio_labels[1] = 17412
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_15734
set_var_text_label s$mobile_print_labels[0] = 'MHEL_1A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_1B'
set_var_text_label s$mobile_print_labels[2] = 'MHEL_1C'
set_var_text_label s$mobile_print_labels[3] = 'MHEL_1D'
set_var_text_label s$mobile_print_labels[4] = 'MHEL_1E'
set_var_text_label s$mobile_print_labels[5] = 'MHEL_1F'
set_var_text_label s$mobile_print_labels[6] = 'MHEL_1G'
set_var_text_label s$mobile_print_labels[7] = 'MHEL_1H'
set_var_text_label s$mobile_print_labels[8] = 'MHEL_1J'
set_var_text_label s$mobile_print_labels[9] = 'MHEL_1K'
set_var_int_to_constant $mobile_audio_labels[0] = 17406
set_var_int_to_constant $mobile_audio_labels[1] = 17400
set_var_int_to_constant $mobile_audio_labels[2] = 17407
set_var_int_to_constant $mobile_audio_labels[3] = 17401
set_var_int_to_constant $mobile_audio_labels[4] = 17408
set_var_int_to_constant $mobile_audio_labels[5] = 17402
set_var_int_to_constant $mobile_audio_labels[6] = 17409
set_var_int_to_constant $mobile_audio_labels[7] = 17403
set_var_int_to_constant $mobile_audio_labels[8] = 17404
set_var_int_to_constant $mobile_audio_labels[9] = 17410
$cell_index_end = 9
goto @CELLFON_18362

:CELLFON_15968
set_var_text_label s$mobile_print_labels[0] = 'MBARB2A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB2D'
set_var_int_to_constant $mobile_audio_labels[0] = 39822
set_var_int_to_constant $mobile_audio_labels[1] = 39817
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16030
set_var_text_label s$mobile_print_labels[0] = 'MBARB3A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB3B'
set_var_int_to_constant $mobile_audio_labels[0] = 39823
set_var_int_to_constant $mobile_audio_labels[1] = 39818
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16092
set_var_text_label s$mobile_print_labels[0] = 'MBARB4A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB4D'
set_var_int_to_constant $mobile_audio_labels[0] = 39824
set_var_int_to_constant $mobile_audio_labels[1] = 39819
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16154
set_var_text_label s$mobile_print_labels[0] = 'MBARB5A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB5D'
set_var_int_to_constant $mobile_audio_labels[0] = 39825
set_var_int_to_constant $mobile_audio_labels[1] = 39820
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16216
set_var_text_label s$mobile_print_labels[0] = 'MBARB6A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB6B'
set_var_int_to_constant $mobile_audio_labels[0] = 39826
set_var_int_to_constant $mobile_audio_labels[1] = 39821
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16278
set_var_text_label s$mobile_print_labels[0] = 'MBARB7D'
set_var_text_label s$mobile_print_labels[1] = 'MBARB5D'
set_var_int_to_constant $mobile_audio_labels[0] = 39827
set_var_int_to_constant $mobile_audio_labels[1] = 39820
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16340
set_var_text_label s$mobile_print_labels[0] = 'MBARB8D'
set_var_text_label s$mobile_print_labels[1] = 'MBARB3B'
set_var_int_to_constant $mobile_audio_labels[0] = 39828
set_var_int_to_constant $mobile_audio_labels[1] = 39818
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16402
set_var_text_label s$mobile_print_labels[0] = 'MBARB9D'
set_var_text_label s$mobile_print_labels[1] = 'MBARB6B'
set_var_int_to_constant $mobile_audio_labels[0] = 39829
set_var_int_to_constant $mobile_audio_labels[1] = 39821
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16464
set_var_text_label s$mobile_print_labels[0] = 'MBARB1A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB1B'
set_var_text_label s$mobile_print_labels[2] = 'MBARB1C'
set_var_text_label s$mobile_print_labels[3] = 'MBARB1D'
set_var_text_label s$mobile_print_labels[4] = 'MBARB1E'
set_var_text_label s$mobile_print_labels[5] = 'MBARB1F'
set_var_text_label s$mobile_print_labels[6] = 'MBARB1G'
set_var_text_label s$mobile_print_labels[7] = 'MBARB1H'
set_var_text_label s$mobile_print_labels[8] = 'MBARB1J'
set_var_text_label s$mobile_print_labels[9] = 'MBARB1K'
set_var_text_label s$mobile_print_labels[10] = 'MBARB1L'
set_var_text_label s$mobile_print_labels[11] = 'MBARB1M'
set_var_text_label s$mobile_print_labels[12] = 'MBARB1N'
set_var_text_label s$mobile_print_labels[13] = 'MBARB1O'
set_var_text_label s$mobile_print_labels[14] = 'MBARB1P'
set_var_text_label s$mobile_print_labels[15] = 'MBARB1Q'
set_var_text_label s$mobile_print_labels[16] = 'MBARB1R'
set_var_int_to_constant $mobile_audio_labels[0] = 39809
set_var_int_to_constant $mobile_audio_labels[1] = 39800
set_var_int_to_constant $mobile_audio_labels[2] = 39810
set_var_int_to_constant $mobile_audio_labels[3] = 39801
set_var_int_to_constant $mobile_audio_labels[4] = 39802
set_var_int_to_constant $mobile_audio_labels[5] = 39803
set_var_int_to_constant $mobile_audio_labels[6] = 39811
set_var_int_to_constant $mobile_audio_labels[7] = 39804
set_var_int_to_constant $mobile_audio_labels[8] = 39812
set_var_int_to_constant $mobile_audio_labels[9] = 39805
set_var_int_to_constant $mobile_audio_labels[10] = 39806
set_var_int_to_constant $mobile_audio_labels[11] = 39813
set_var_int_to_constant $mobile_audio_labels[12] = 39814
set_var_int_to_constant $mobile_audio_labels[13] = 39815
set_var_int_to_constant $mobile_audio_labels[14] = 39807
set_var_int_to_constant $mobile_audio_labels[15] = 39808
set_var_int_to_constant $mobile_audio_labels[16] = 39816
$cell_index_end = 16
goto @CELLFON_18362

:CELLFON_16886
set_var_text_label s$mobile_print_labels[0] = 'MZAHN2A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN2D'
set_var_int_to_constant $mobile_audio_labels[0] = 41214
set_var_int_to_constant $mobile_audio_labels[1] = 41209
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_16948
set_var_text_label s$mobile_print_labels[0] = 'MZAHN3A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN3B'
set_var_int_to_constant $mobile_audio_labels[0] = 41215
set_var_int_to_constant $mobile_audio_labels[1] = 41210
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17010
set_var_text_label s$mobile_print_labels[0] = 'MZAHN4A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN4D'
set_var_int_to_constant $mobile_audio_labels[0] = 41216
set_var_int_to_constant $mobile_audio_labels[1] = 41211
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17072
set_var_text_label s$mobile_print_labels[0] = 'MZAHN5A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN5B'
set_var_int_to_constant $mobile_audio_labels[0] = 41217
set_var_int_to_constant $mobile_audio_labels[1] = 41212
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17134
set_var_text_label s$mobile_print_labels[0] = 'MZAHN6A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN6D'
set_var_int_to_constant $mobile_audio_labels[0] = 41218
set_var_int_to_constant $mobile_audio_labels[1] = 41213
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17196
set_var_text_label s$mobile_print_labels[0] = 'MZAHN7D'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN2D'
set_var_int_to_constant $mobile_audio_labels[0] = 41219
set_var_int_to_constant $mobile_audio_labels[1] = 41209
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17258
set_var_text_label s$mobile_print_labels[0] = 'MZAHN9D'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN4D'
set_var_int_to_constant $mobile_audio_labels[0] = 41221
set_var_int_to_constant $mobile_audio_labels[1] = 41211
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17320
set_var_text_label s$mobile_print_labels[0] = 'MZAHN8D'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN3B'
set_var_int_to_constant $mobile_audio_labels[0] = 41220
set_var_int_to_constant $mobile_audio_labels[1] = 41210
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17382
set_var_text_label s$mobile_print_labels[0] = 'MZAHN1A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN1B'
set_var_text_label s$mobile_print_labels[2] = 'MZAHN1C'
set_var_text_label s$mobile_print_labels[3] = 'MZAHN1D'
set_var_text_label s$mobile_print_labels[4] = 'MZAHN1E'
set_var_text_label s$mobile_print_labels[5] = 'MZAHN1F'
set_var_text_label s$mobile_print_labels[6] = 'MZAHN1G'
set_var_text_label s$mobile_print_labels[7] = 'MZAHN1H'
set_var_text_label s$mobile_print_labels[8] = 'MZAHN1J'
set_var_int_to_constant $mobile_audio_labels[0] = 41205
set_var_int_to_constant $mobile_audio_labels[1] = 41200
set_var_int_to_constant $mobile_audio_labels[2] = 41206
set_var_int_to_constant $mobile_audio_labels[3] = 41201
set_var_int_to_constant $mobile_audio_labels[4] = 41207
set_var_int_to_constant $mobile_audio_labels[5] = 41202
set_var_int_to_constant $mobile_audio_labels[6] = 41203
set_var_int_to_constant $mobile_audio_labels[7] = 41208
set_var_int_to_constant $mobile_audio_labels[8] = 41204
$cell_index_end = 8
goto @CELLFON_18362

:CELLFON_17612
set_var_text_label s$mobile_print_labels[0] = 'MMILL3A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL3B'
set_var_int_to_constant $mobile_audio_labels[0] = 43413
set_var_int_to_constant $mobile_audio_labels[1] = 43429
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17674
set_var_text_label s$mobile_print_labels[0] = 'MMILL4A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL4D'
set_var_int_to_constant $mobile_audio_labels[0] = 43414
set_var_int_to_constant $mobile_audio_labels[1] = 43430
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17736
set_var_text_label s$mobile_print_labels[0] = 'MMILL5A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL5D'
set_var_int_to_constant $mobile_audio_labels[0] = 43415
set_var_int_to_constant $mobile_audio_labels[1] = 43431
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17798
set_var_text_label s$mobile_print_labels[0] = 'MMILL6A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL6B'
set_var_int_to_constant $mobile_audio_labels[0] = 43416
set_var_int_to_constant $mobile_audio_labels[1] = 43432
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17860
set_var_text_label s$mobile_print_labels[0] = 'MMILL7A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL7D'
set_var_int_to_constant $mobile_audio_labels[0] = 43417
set_var_int_to_constant $mobile_audio_labels[1] = 43433
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17922
set_var_text_label s$mobile_print_labels[0] = 'MMILL8D'
set_var_text_label s$mobile_print_labels[1] = 'MMILL3B'
set_var_int_to_constant $mobile_audio_labels[0] = 43418
set_var_int_to_constant $mobile_audio_labels[1] = 43429
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_17984
set_var_text_label s$mobile_print_labels[0] = 'MMILL9D'
set_var_text_label s$mobile_print_labels[1] = 'MMILL4D'
set_var_int_to_constant $mobile_audio_labels[0] = 43419
set_var_int_to_constant $mobile_audio_labels[1] = 43430
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_18046
set_var_text_label s$mobile_print_labels[0] = 'MMIL10D'
set_var_text_label s$mobile_print_labels[1] = 'MMILL5D'
set_var_int_to_constant $mobile_audio_labels[0] = 43400
set_var_int_to_constant $mobile_audio_labels[1] = 43431
$cell_index_end = 1
goto @CELLFON_18362

:CELLFON_18108
set_var_text_label s$mobile_print_labels[0] = 'MMILL1A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL1B'
set_var_text_label s$mobile_print_labels[2] = 'MMILL1C'
set_var_text_label s$mobile_print_labels[3] = 'MMILL1D'
set_var_text_label s$mobile_print_labels[4] = 'MMILL1E'
set_var_text_label s$mobile_print_labels[5] = 'MMILL1F'
set_var_text_label s$mobile_print_labels[6] = 'MMILL1G'
set_var_text_label s$mobile_print_labels[7] = 'MMILL1H'
set_var_text_label s$mobile_print_labels[8] = 'MMILL1J'
set_var_text_label s$mobile_print_labels[9] = 'MMILL1K'
set_var_int_to_constant $mobile_audio_labels[0] = 43420
set_var_int_to_constant $mobile_audio_labels[1] = 43401
set_var_int_to_constant $mobile_audio_labels[2] = 43421
set_var_int_to_constant $mobile_audio_labels[3] = 43402
set_var_int_to_constant $mobile_audio_labels[4] = 43403
set_var_int_to_constant $mobile_audio_labels[5] = 43422
set_var_int_to_constant $mobile_audio_labels[6] = 43404
set_var_int_to_constant $mobile_audio_labels[7] = 43423
set_var_int_to_constant $mobile_audio_labels[8] = 43405
set_var_int_to_constant $mobile_audio_labels[9] = 43424
$cell_index_end = 9
goto @CELLFON_18362

:CELLFON_18362
return 

:MOB_LA1
set_deatharrest_state 0
script_name 'MOB_LA1'

:MOB_LA1_15
wait 90
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_LA1_56
$timer_mobile_start = Clock.GetGameTimer()
$flag_mobile_timer = 1

:MOB_LA1_56
if 
  $Return_cities_passed > 0
goto_if_false @MOB_LA1_76
terminate_this_script 

:MOB_LA1_76
ENTEXT_214()
if 
  Player.IsPlaying($player1)
goto_if_false @MOB_LA1_1712
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_LA1_1705
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_LA1_1705
if 
  $flag_intro_mission_counter > 0
goto_if_false @MOB_LA1_293
if 
  2 > $flag_sweet_mission_counter
goto_if_false @MOB_LA1_293
if 
  $funeral_mission_finished == 3
goto_if_false @MOB_LA1_293
if 
  $1347 == 0
goto_if_false @MOB_LA1_293
$call_number = 19
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_254
CELLFON_60()
MOB_GF_3312()

:MOB_LA1_254
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_279
$1347 = 1

:MOB_LA1_279
MOB_GF_3152()
goto @MOB_LA1_15

:MOB_LA1_293
if 
  $flag_sweet_mission_counter > 0
goto_if_false @MOB_LA1_414
if 
  $1349 == 0
goto_if_false @MOB_LA1_414
$call_number = 9
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_375
CELLFON_60()
MOB_GF_3312()

:MOB_LA1_375
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_400
$1349 = 1

:MOB_LA1_400
MOB_GF_3152()
goto @MOB_LA1_15

:MOB_LA1_414
if 
  $flag_strap_mission_counter == 4
goto_if_false @MOB_LA1_568
$hours, $minutes = Clock.GetTimeOfDay()
if or
  $hours >= 20
  6 > $hours
goto_if_false @MOB_LA1_568
if 
  $flag_mob_la1 == 0
goto_if_false @MOB_LA1_568
$call_number = 6
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_529
CELLFON_60()
MOB_GF_3312()

:MOB_LA1_529
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_554
$flag_mob_la1 = 1

:MOB_LA1_554
MOB_GF_3152()
goto @MOB_LA1_15

:MOB_LA1_568
if 
  $flag_sweet_mission_counter > 2
goto_if_false @MOB_LA1_1216
if 
  $1348 == 0
goto_if_false @MOB_LA1_1216
$Returnedfat = Stat.GetFloat(StatId.Fat)
if 
  450.0 > $Returnedfat
goto_if_false @MOB_LA1_639
$call_number = 20

:MOB_LA1_639
if 
  $Returnedfat >= 450.0
goto_if_false @MOB_LA1_667
$call_number = 21

:MOB_LA1_667
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_706
CELLFON_60()
MOB_GF_3312()

:MOB_LA1_706
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1202
$1348 = 1
Camera.DoFade(500, Fade.Out)

:MOB_LA1_738
if 
  Camera.GetFadingStatus
goto_if_false @MOB_LA1_762
wait 0
goto @MOB_LA1_738

:MOB_LA1_762
if 
  Player.IsPlaying($player1)
goto_if_false @MOB_LA1_819
Player.SetControl($player1, False)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
Char.SetCoordinates($scplayer, 2228.891, -1737.128, 12.3906)

:MOB_LA1_819
Text.ClearPrints
Streaming.LoadScene(2228.517, -1734.274, 15.744)
Blip.Remove($gym_contact_blip)
$gym_contact_blip = Blip.AddShortRangeSpriteForCoord(2228.0, -1722.811, 12.5543, RadarSprite.Gym)
Camera.SetFixedPosition(2228.094, -1735.179, 15.6865, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2228.517, -1734.274, 15.744, SwitchType.JumpCut)
wait 500
Camera.DoFade(1000, Fade.In)
Text.PrintHelp('GYMHELP')
wait 5000
Text.PrintHelp('DUMBELL')
Hud.FlashObject(HudObject.Radar)
wait 5000
Hud.FlashObject(-1)
Camera.DoFade(500, Fade.Out)

:MOB_LA1_975
if 
  Camera.GetFadingStatus
goto_if_false @MOB_LA1_999
wait 0
goto @MOB_LA1_975

:MOB_LA1_999
if 
  Player.IsPlaying($player1)
goto_if_false @MOB_LA1_1059
$player_z -= 0.5
Char.SetCoordinates($scplayer, $player_x, $player_y, $player_z)
Streaming.LoadScene($player_x, $player_y, $player_z)
Camera.RestoreJumpcut
Player.SetControl($player1, True)

:MOB_LA1_1059
World.SwitchEntryExit('GYM1', True)
World.SwitchEntryExit('GYM2', True)
World.SwitchEntryExit('GYM3', True)
Blip.Remove($gym_contact_blip)
$gym_contact_blip = Blip.AddShortRangeSpriteForContactPoint(2228.0, -1722.811, 12.5543, RadarSprite.Gym)
Blip.ChangeDisplay($gym_contact_blip, BlipDisplay.BlipOnly)
$2629 = Blip.AddShortRangeSpriteForContactPoint(-2269.4, -155.6, 35.3, RadarSprite.Gym)
Blip.ChangeDisplay($2629, BlipDisplay.BlipOnly)
$gym_blips = Blip.AddShortRangeSpriteForContactPoint(1968.6, 2292.1, 16.4, RadarSprite.Gym)
Blip.ChangeDisplay($gym_blips, BlipDisplay.BlipOnly)
wait 500
Camera.DoFade(1000, Fade.In)

:MOB_LA1_1202
MOB_GF_3152()
goto @MOB_LA1_15

:MOB_LA1_1216
if 
  $flag_strap_mission_counter > 1
goto_if_false @MOB_LA1_1367
if 
  $1343 == 0
goto_if_false @MOB_LA1_1367
$call_number = 12
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1298
CELLFON_60()
MOB_GF_3312()

:MOB_LA1_1298
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1353
$1343 = 1
start_new_script @CRASH 
Blip.Remove($crash_contact_blip)
$crash_contact_blip = Blip.AddSpriteForContactPoint($crashX, $crashY, $crashZ, $crash_blip_icon)

:MOB_LA1_1353
MOB_GF_3152()
goto @MOB_LA1_15

:MOB_LA1_1367
if 
  $flag_sweet_mission_counter > 6
goto_if_false @MOB_LA1_1525
if 
  $1344 == 0
goto_if_false @MOB_LA1_1525
$call_number = 7
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1449
CELLFON_60()
MOB_GF_3312()

:MOB_LA1_1449
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1511
$1344 = 1
start_new_script @CESAR 
Blip.Remove($cesar_contact_blip)
$cesar_contact_blip = Blip.AddSpriteForContactPoint($cesarX, $cesarY, $cesarZ, $cesar_blip_icon)
Blip.ChangeDisplay($cesar_contact_blip, BlipDisplay.BlipOnly)

:MOB_LA1_1511
MOB_GF_3152()
goto @MOB_LA1_15

:MOB_LA1_1525
if 
  $flag_sweet_mission_counter > 6
goto_if_false @MOB_LA1_1705
if 
  $flag_crash_mission_counter > 0
goto_if_false @MOB_LA1_1705
if 
  $1346 == 0
goto_if_false @MOB_LA1_1705
$call_number = 18
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1625
CELLFON_60()
MOB_GF_3312()

:MOB_LA1_1625
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1691
$1346 = 1
World.SwitchEntryExit('AMMUN1', False)
Blip.Remove($sweet_contact_blip)
$sweet_contact_blip = Blip.AddSpriteForContactPoint(1365.251, -1280.12, 12.5469, $sweet_blip_icon)

:MOB_LA1_1691
MOB_GF_3152()
goto @MOB_LA1_15

:MOB_LA1_1705
goto @MOB_LA1_1719

:MOB_LA1_1712
$flag_cell_nation = 0

:MOB_LA1_1719
goto @MOB_LA1_15

:MOB_CAT
set_deatharrest_state 0
script_name 'MOB_CAT'

:MOB_CAT_15
wait 120
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_CAT_56
$timer_mobile_start = Clock.GetGameTimer()
$flag_mobile_timer = 1

:MOB_CAT_56
if 
  $terminate_cat_calls == 1
goto_if_false @MOB_CAT_76
terminate_this_script 

:MOB_CAT_76
ENTEXT_214()
if 
  Player.IsPlaying($player1)
goto_if_false @MOB_CAT_1215
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_CAT_1208
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_CAT_1208
if 
  $flag_bcrash_mission_counter > 0
goto_if_false @MOB_CAT_286
if 
  $flag_mob_cat == 0
goto_if_false @MOB_CAT_286
$call_number = 8
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_218
CELLFON_60()
MOB_GF_3312()

:MOB_CAT_218
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_272
$flag_mob_cat = 1
start_new_script @CAT 
Blip.Remove($cat_contact_blip)
$cat_contact_blip = Blip.AddSpriteForContactPoint($511, $517, $523, RadarSprite.Qmark)

:MOB_CAT_272
MOB_GF_3152()
goto @MOB_CAT_15

:MOB_CAT_286
if 
  $flag_bcrash_mission_counter > 0
goto_if_false @MOB_CAT_407
if 
  $1359 == 0
goto_if_false @MOB_CAT_407
$call_number = 24
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_368
CELLFON_60()
MOB_GF_3312()

:MOB_CAT_368
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_393
$1359 = 1

:MOB_CAT_393
MOB_GF_3152()
goto @MOB_CAT_15

:MOB_CAT_407
if and
  $flag_truth_mission_counter == 0
  $cat_counter == 1
goto_if_false @MOB_CAT_565
if 
  $1357 == 0
goto_if_false @MOB_CAT_565
$call_number = 15
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_496
CELLFON_60()
MOB_GF_3312()

:MOB_CAT_496
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_551
$1357 = 1
start_new_script @TRU 
Blip.Remove($truth_contact_blip)
$truth_contact_blip = Blip.AddSpriteForContactPoint($truth2X, $truth2Y, $truth2Z, $truth_blip_icon)

:MOB_CAT_551
MOB_GF_3152()
goto @MOB_CAT_15

:MOB_CAT_565
if 
  $cat_counter == 3
goto_if_false @MOB_CAT_866
if 
  $1361 == 0
goto_if_false @MOB_CAT_866
$call_number = 0
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_647
CELLFON_60()
MOB_GF_3312()

:MOB_CAT_647
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_852
$1361 = 1
Zone.SetGangStrength('ELCO1', GangType.Vagos, 40)
Zone.SetGangStrength('ELCO2', GangType.Vagos, 40)
Zone.SetGangStrength('ELCO1', GangType.Aztecas, 0)
Zone.SetGangStrength('ELCO2', GangType.Aztecas, 0)
Zone.SetGangStrength('ELCO1', GangType.Grove, 0)
Zone.SetGangStrength('ELCO2', GangType.Grove, 0)
Zone.SetGangStrength('LMEX1A', GangType.Vagos, 30)
Zone.SetGangStrength('LMEX1B', GangType.Vagos, 30)
Zone.SetGangStrength('LMEX1A', GangType.Aztecas, 0)
Zone.SetGangStrength('LMEX1B', GangType.Aztecas, 0)
Zone.SetGangStrength('LMEX1A', GangType.Grove, 0)
Zone.SetGangStrength('LMEX1B', GangType.Grove, 0)

:MOB_CAT_852
MOB_GF_3152()
goto @MOB_CAT_15

:MOB_CAT_866
if and
  $cat_counter > 1
  $flag_bcesar_mission_counter == 0
goto_if_false @MOB_CAT_1047
if 
  $1362 == 0
goto_if_false @MOB_CAT_1047
$call_number = 10
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_955
CELLFON_60()
MOB_GF_3312()

:MOB_CAT_955
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_1033
$1362 = 1
start_new_script @BCESAR 
Blip.Remove($bcesar_contact_blip)
$bcesar_contact_blip = Blip.AddSpriteForContactPoint($bcesarX, $bcesarY, $bcesarZ, $cesar_blip_icon)
Blip.ChangeDisplay($bcesar_contact_blip, BlipDisplay.BlipOnly)
Text.Print('BC4_1', 8000, 1)

:MOB_CAT_1033
MOB_GF_3152()
goto @MOB_CAT_15

:MOB_CAT_1047
if and
  $cat_counter > 3
  $flag_bcesar_mission_counter > 9
goto_if_false @MOB_CAT_1208
if 
  $1363 == 0
goto_if_false @MOB_CAT_1208
$call_number = 16
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_1136
CELLFON_60()
MOB_GF_3312()

:MOB_CAT_1136
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_1194
$1363 = 1
Blip.Remove($truth_contact_blip)
$truth_contact_blip = Blip.AddSpriteForContactPoint($truthX, $truthY, $truthZ, $truth_blip_icon)
Game.SetMaxWantedLevel(5)
$terminate_cat_calls = 1

:MOB_CAT_1194
MOB_GF_3152()
goto @MOB_CAT_15

:MOB_CAT_1208
goto @MOB_CAT_1222

:MOB_CAT_1215
$flag_cell_nation = 0

:MOB_CAT_1222
goto @MOB_CAT_15

:MOB_SF
set_deatharrest_state 0
script_name 'MOB_SF'

:MOB_SF_15
wait 150
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_SF_57
$timer_mobile_start = Clock.GetGameTimer()
$flag_mobile_timer = 1

:MOB_SF_57
if 
  $1403 == 1
goto_if_false @MOB_SF_131
if 
  $1399 == 1
goto_if_false @MOB_SF_131
if 
  $1398 == 1
goto_if_false @MOB_SF_131
if 
  $1396 == 1
goto_if_false @MOB_SF_131
terminate_this_script 

:MOB_SF_131
ENTEXT_214()
if 
  Player.IsPlaying($player1)
goto_if_false @MOB_SF_2048
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_SF_2041
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_SF_2041
if 
  $flag_synd_mission_counter > 2
goto_if_false @MOB_SF_342
if 
  $1401 == 0
goto_if_false @MOB_SF_342
$call_number = 34
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_273
CELLFON_60()
MOB_GF_3312()

:MOB_SF_273
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_328
$1401 = 1
start_new_script @WUZI 
Blip.Remove($wuzi_contact_blip)
$wuzi_contact_blip = Blip.AddSpriteForContactPoint($wuziX, $wuziY, $wuziZ, $wuzi_blip_icon)

:MOB_SF_328
MOB_GF_3152()
goto @MOB_SF_15

:MOB_SF_342
if 
  $flag_garage_mission_counter > 0
goto_if_false @MOB_SF_499
if 
  $flag_mob_sanfran == 0
goto_if_false @MOB_SF_499
$call_number = 29
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_424
CELLFON_60()
MOB_GF_3312()

:MOB_SF_424
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_485
$flag_mob_sanfran = 1
start_new_script @BUY2 
Blip.Remove($zero_contact_blip)
$zero_contact_blip = Blip.AddSpriteForContactPoint($propertyX[1], $propertyY[1], $propertyZ[1], RadarSprite.Zero)
Blip.ChangeDisplay($zero_contact_blip, BlipDisplay.BlipOnly)

:MOB_SF_485
MOB_GF_3152()
goto @MOB_SF_15

:MOB_SF_499
if and
  $flag_garage_mission_counter > 0
  $zeros_property_bought == 1
goto_if_false @MOB_SF_657
if 
  $1396 == 0
goto_if_false @MOB_SF_657
$call_number = 30
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_588
CELLFON_60()
MOB_GF_3312()

:MOB_SF_588
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_643
$1396 = 1
start_new_script @ZERO 
Blip.Remove($zero_contact_blip)
$zero_contact_blip = Blip.AddSpriteForContactPoint($zeroX, $zeroY, $zeroZ, $zero_blip_icon)

:MOB_SF_643
MOB_GF_3152()
goto @MOB_SF_15

:MOB_SF_657
if 
  $flag_garage_mission_counter > 1
goto_if_false @MOB_SF_881
if 
  $1397 == 0
goto_if_false @MOB_SF_881
$call_number = 31
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_739
CELLFON_60()
MOB_GF_3312()

:MOB_SF_739
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_867
$1397 = 1
start_new_script @TRACE 
$dschool_contact_blip = Blip.AddSpriteForContactPoint($testsX, $testsY, $testsZ, RadarSprite.School)
Blip.ChangeDisplay($dschool_contact_blip, BlipDisplay.BlipOnly)
start_new_script @BSCHOO 
Blip.Remove($boat_school_blip)
$boat_school_blip = Blip.AddShortRangeSpriteForContactPoint($boatsX, $boatsY, $boatsZ, RadarSprite.School)
Blip.ChangeDisplay($boat_school_blip, BlipDisplay.BlipOnly)
start_new_script @BIKES 
Blip.Remove($bike_school_blip)
$bike_school_blip = Blip.AddShortRangeSpriteForContactPoint($bikesX, $bikesY, $bikesZ, RadarSprite.School)
Blip.ChangeDisplay($bike_school_blip, BlipDisplay.BlipOnly)

:MOB_SF_867
MOB_GF_3152()
goto @MOB_SF_15

:MOB_SF_881
if and
  $driving_test_passed == 1
  $flag_desert_mission_counter > 3
goto_if_false @MOB_SF_1093
if 
  $1398 == 0
goto_if_false @MOB_SF_1093
$call_number = 32
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_970
CELLFON_60()
MOB_GF_3312()

:MOB_SF_970
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1079
$1398 = 1
Blip.Remove($trace_contact_blip)
Blip.Remove($529)
Blip.Remove($530)
Blip.Remove($531)
$trace_contact_blip = Blip.AddShortRangeSpriteForContactPoint($traceX[0], $traceY[0], $traceZ[0], RadarSprite.Flag)
$529 = Blip.AddShortRangeSpriteForContactPoint($traceX[1], $traceY[1], $traceZ[1], RadarSprite.Flag)
$530 = Blip.AddShortRangeSpriteForContactPoint($traceX[2], $traceY[2], $traceZ[2], RadarSprite.Flag)
$531 = Blip.AddShortRangeSpriteForContactPoint($traceX[3], $traceY[3], $traceZ[3], RadarSprite.Flag)

:MOB_SF_1079
MOB_GF_3152()
goto @MOB_SF_15

:MOB_SF_1093
if and
  $1404 == 1
  $driving_test_passed == 1
goto_if_false @MOB_SF_1257
if 
  $1399 == 0
goto_if_false @MOB_SF_1257
$call_number = 33
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1182
CELLFON_60()
MOB_GF_3312()

:MOB_SF_1182
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1243
$1399 = 1
start_new_script @BUY1 
Blip.Remove($showroom_contact_blip)
$showroom_contact_blip = Blip.AddSpriteForContactPoint($propertyX[0], $propertyY[0], $propertyZ[0], RadarSprite.CesarViapando)
Blip.ChangeDisplay($showroom_contact_blip, BlipDisplay.BlipOnly)

:MOB_SF_1243
MOB_GF_3152()
goto @MOB_SF_15

:MOB_SF_1257
if 
  $flag_synd_mission_counter == 10
goto_if_false @MOB_SF_1465
if 
  $1404 == 0
goto_if_false @MOB_SF_1465
$call_number = 41
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1339
CELLFON_60()
MOB_GF_3312()

:MOB_SF_1339
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1451
$1404 = 1
start_new_script @DESERT 
Blip.Remove($1733)
Pickup.Remove($grove_save_pickup[16])
$grove_save_pickup[16] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[16], $save_pickupY[16], $save_pickupZ[16])
$number_of_save_icons = 17
$1733 = Blip.AddShortRangeSpriteForContactPoint($save_pickupX[16], $save_pickupY[16], $save_pickupZ[16], RadarSprite.SaveGame)
Blip.ChangeDisplay($1733, BlipDisplay.BlipOnly)
Blip.Remove($desert_contact_blip)
$desert_contact_blip = Blip.AddSpriteForContactPoint($desertX, $desertY, $desertZ, RadarSprite.Qmark)

:MOB_SF_1451
MOB_GF_3152()
goto @MOB_SF_15

:MOB_SF_1465
if 
  $flag_desert_mission_counter > 0
goto_if_false @MOB_SF_1607
if 
  $1400 == 0
goto_if_false @MOB_SF_1607
$call_number = 42
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1547
CELLFON_60()
MOB_GF_3312()

:MOB_SF_1547
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1593
$1400 = 1
Blip.Remove($desert_contact_blip)
$desert_contact_blip = Blip.AddSpriteForContactPoint($desertX, $desertY, $desertZ, RadarSprite.Qmark)

:MOB_SF_1593
MOB_GF_3152()
goto @MOB_SF_15

:MOB_SF_1607
if 
  $flag_desert_mission_counter > 1
goto_if_false @MOB_SF_1750
if 
  $1402 == 0
goto_if_false @MOB_SF_1750
$call_number = 43
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1689
CELLFON_60()
MOB_GF_3312()

:MOB_SF_1689
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1736
$1402 = 1
Blip.Remove($desert_contact_blip)
$desert_contact_blip = Blip.AddSpriteForContactPoint($desertX, $desertY, $desertZ, $desert_blip_icon)

:MOB_SF_1736
MOB_GF_3152()
goto @MOB_SF_15

:MOB_SF_1750
if 
  $pilot_test_passed > 0
goto_if_false @MOB_SF_2041
if 
  $1403 == 0
goto_if_false @MOB_SF_2041
$call_number = 35
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1832
CELLFON_60()
MOB_GF_3312()

:MOB_SF_1832
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_2027
$1403 = 1
terminate_all_scripts_with_this_name 'MOB_VEG'
start_new_script @MOB_VEG 
start_new_script @CASINO 
Pickup.Remove($grove_save_pickup[17])
$grove_save_pickup[17] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[17], $save_pickupY[17], $save_pickupZ[17])
$number_of_save_icons = 18
$1734 = Blip.AddShortRangeSpriteForContactPoint($save_pickupX[17], $save_pickupY[17], $save_pickupZ[17], RadarSprite.SaveGame)
Blip.ChangeDisplay($1734, BlipDisplay.BlipOnly)
Blip.Remove($casino_contact_blip)
$casino_contact_blip = Blip.AddSpriteForContactPoint($casinoX, $casinoY, $casinoZ, $casino_blip_icon)
Blip.SetEntryExit($casino_contact_blip, 2026.603, 1007.735, 20.0)
Garage.Activate('VECMOD')
$2590 = Blip.AddShortRangeSpriteForCoord(2382.2, 1044.0, 9.8, RadarSprite.ModGarage)
Stat.SetInt(StatId.PassedCasino3, 1)
start_new_script @LITCAS 

:MOB_SF_2027
MOB_GF_3152()
goto @MOB_SF_15

:MOB_SF_2041
goto @MOB_SF_2055

:MOB_SF_2048
$flag_cell_nation = 0

:MOB_SF_2055
goto @MOB_SF_15

:MOB_VEG
set_deatharrest_state 0
script_name 'MOB_VEG'

:MOB_VEG_15
wait 180
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_VEG_57
$timer_mobile_start = Clock.GetGameTimer()
$flag_mobile_timer = 1

:MOB_VEG_57
if 
  $1386 == 1
goto_if_false @MOB_VEG_95
if 
  $1382 == 1
goto_if_false @MOB_VEG_95
terminate_this_script 

:MOB_VEG_95
ENTEXT_214()
if 
  Player.IsPlaying($player1)
goto_if_false @MOB_VEG_2293
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_VEG_2286
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_VEG_2286
if 
  $flag_desert_mission_counter > 7
goto_if_false @MOB_VEG_298
if 
  $1389 == 0
goto_if_false @MOB_VEG_298
$call_number = 17
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_237
CELLFON_60()
MOB_GF_3312()

:MOB_VEG_237
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_284
$1389 = 1
Blip.Remove($desert2_contact_blip)
$desert2_contact_blip = Blip.AddSpriteForContactPoint($desert2X, $desert2Y, $desert2Z, $desert2_blip_icon)

:MOB_VEG_284
MOB_GF_3152()
goto @MOB_VEG_15

:MOB_VEG_298
if and
  $flag_vcrash_mission_counter > 0
  $flag_casino_mission_counter > 7
goto_if_false @MOB_VEG_454
if 
  $flag_mob_vegas == 0
goto_if_false @MOB_VEG_454
$call_number = 13
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_387
CELLFON_60()
MOB_GF_3312()

:MOB_VEG_387
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_440
$flag_mob_vegas = 1
Blip.Remove($vcrash_contact_blip)
$vcrash_contact_blip = Blip.AddSpriteForContactPoint(-378.7596, 2235.859, 41.4288, $crash_blip_icon)

:MOB_VEG_440
MOB_GF_3152()
goto @MOB_VEG_15

:MOB_VEG_454
if 
  $flag_casino_mission_counter > 3
goto_if_false @MOB_VEG_617
if 
  $1380 == 0
goto_if_false @MOB_VEG_617
$call_number = 47
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_536
CELLFON_60()
MOB_GF_3312()

:MOB_VEG_536
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_603
$1380 = 1
Blip.Remove($casino_contact_blip)
$casino_contact_blip = Blip.AddSpriteForContactPoint($heistX, $heistY, $heistZ, $heist_blip_icon)
Blip.SetEntryExit($casino_contact_blip, 2187.286, 1678.461, 20.0)

:MOB_VEG_603
MOB_GF_3152()
goto @MOB_VEG_15

:MOB_VEG_617
if 
  $flag_casino_mission_counter > 6
goto_if_false @MOB_VEG_780
if 
  $1381 == 0
goto_if_false @MOB_VEG_780
$call_number = 48
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_699
CELLFON_60()
MOB_GF_3312()

:MOB_VEG_699
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_766
$1381 = 1
Blip.Remove($casino_contact_blip)
$casino_contact_blip = Blip.AddSpriteForContactPoint($heistX, $heistY, $heistZ, $heist_blip_icon)
Blip.SetEntryExit($casino_contact_blip, 2187.286, 1678.461, 20.0)

:MOB_VEG_766
MOB_GF_3152()
goto @MOB_VEG_15

:MOB_VEG_780
if 
  $flag_casino_mission_counter > 7
goto_if_false @MOB_VEG_997
if 
  $flag_vcrash_mission_counter > 1
goto_if_false @MOB_VEG_997
if 
  $flag_doc_mission_counter > 0
goto_if_false @MOB_VEG_997
if 
  $flag_desert_mission_counter > 8
goto_if_false @MOB_VEG_997
if 
  $1382 == 0
goto_if_false @MOB_VEG_997
$call_number = 49
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_916
CELLFON_60()
MOB_GF_3312()

:MOB_VEG_916
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_983
$1382 = 1
Blip.Remove($casino_contact_blip)
$casino_contact_blip = Blip.AddSpriteForContactPoint($heistX, $heistY, $heistZ, $heist_blip_icon)
Blip.SetEntryExit($casino_contact_blip, 2187.286, 1678.461, 20.0)

:MOB_VEG_983
MOB_GF_3152()
goto @MOB_VEG_15

:MOB_VEG_997
if 
  $flag_heist_mission_counter > 1
goto_if_false @MOB_VEG_1245
if 
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @MOB_VEG_1245
$millies_like_stat = Stat.GetInt(StatId.GirlfriendMillie)
if 
  $millies_like_stat >= 35
goto_if_false @MOB_VEG_1245
if 
  $1379 == 0
goto_if_false @MOB_VEG_1245
$call_number = 53
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1123
CELLFON_60()
MOB_GF_3312()

:MOB_VEG_1123
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1231
$millies_keycard_pickup = Pickup.Create(#KEYCARD, PickupType.Once, 348.7857, 306.1048, 998.6557)
start_new_script @KEYCARD 
Blip.Remove($Thekeycard_contact_blip)
$Thekeycard_contact_blip = Blip.AddSpriteForContactPoint(2037.349, 2723.971, 9.8281, $Theheist_blip_icon)
Blip.ChangeDisplay($Thekeycard_contact_blip, BlipDisplay.BlipOnly)
Text.PrintNow('GOODKEY', 6000, 1)
$1379 = 1

:MOB_VEG_1231
MOB_GF_3152()
goto @MOB_VEG_15

:MOB_VEG_1245
if 
  $flag_heist_mission_counter > 1
goto_if_false @MOB_VEG_1537
if 
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @MOB_VEG_1537
if or
  $iGFLikesPlayer[5] == -100
  $iGFLikesPlayer[5] == -999
goto_if_false @MOB_VEG_1537
if 
  $1379 == 0
goto_if_false @MOB_VEG_1537
if 
  $iGFLikesPlayer[5] == -999
goto_if_false @MOB_VEG_1351
$call_number = 40

:MOB_VEG_1351
if 
  $iGFLikesPlayer[5] == -100
goto_if_false @MOB_VEG_1376
$call_number = 39

:MOB_VEG_1376
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1415
CELLFON_60()
MOB_GF_3312()

:MOB_VEG_1415
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1523
$millies_keycard_pickup = Pickup.Create(#KEYCARD, PickupType.Once, 348.7857, 306.1048, 998.6557)
start_new_script @KEYCARD 
Blip.Remove($Thekeycard_contact_blip)
$Thekeycard_contact_blip = Blip.AddSpriteForContactPoint(2037.349, 2723.971, 9.8281, $Theheist_blip_icon)
Blip.ChangeDisplay($Thekeycard_contact_blip, BlipDisplay.BlipOnly)
Text.PrintNow('BADKEY', 6000, 1)
$1379 = 1

:MOB_VEG_1523
MOB_GF_3152()
goto @MOB_VEG_15

:MOB_VEG_1537
if and
  $flag_heist_mission_counter > 4
  $keycard_aquired_from_millie == 0
  $1384 == 0
goto_if_false @MOB_VEG_1672
if 
  $1383 == 0
goto_if_false @MOB_VEG_1672
$call_number = 36
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1633
CELLFON_60()
MOB_GF_3312()

:MOB_VEG_1633
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1658
$1383 = 1

:MOB_VEG_1658
MOB_GF_3152()
goto @MOB_VEG_15

:MOB_VEG_1672
if and
  $flag_casino_mission_counter > 8
  $flag_heist_mission_counter <> 6
goto_if_false @MOB_VEG_1800
if 
  $1385 == 0
goto_if_false @MOB_VEG_1800
$call_number = 51
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1761
CELLFON_60()
MOB_GF_3312()

:MOB_VEG_1761
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1786
$1385 = 1

:MOB_VEG_1786
MOB_GF_3152()
goto @MOB_VEG_15

:MOB_VEG_1800
if and
  $flag_casino_mission_counter > 8
  $1384 == 0
goto_if_false @MOB_VEG_1995
if 
  $1390 == 0
goto_if_false @MOB_VEG_1995
$call_number = 38
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1889
CELLFON_60()
MOB_GF_3312()

:MOB_VEG_1889
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1981
$1390 = 1
if 
  $keycard_aquired_from_millie == 1
goto_if_false @MOB_VEG_1981
Blip.Remove($Theheist_contact_blip)
$Theheist_contact_blip = Blip.AddSpriteForContactPoint($TheheistX, $TheheistY, $TheheistZ, $Theheist_blip_icon)
Blip.SetEntryExit($Theheist_contact_blip, 2024.39, 1008.62, 20.0)
$1384 = 1

:MOB_VEG_1981
MOB_GF_3152()
goto @MOB_VEG_15

:MOB_VEG_1995
if and
  $flag_casino_mission_counter > 8
  $keycard_aquired_from_millie == 1
goto_if_false @MOB_VEG_2165
if 
  $1384 == 0
goto_if_false @MOB_VEG_2165
$call_number = 37
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_2084
CELLFON_60()
MOB_GF_3312()

:MOB_VEG_2084
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_2151
$1384 = 1
Blip.Remove($Theheist_contact_blip)
$Theheist_contact_blip = Blip.AddSpriteForContactPoint($TheheistX, $TheheistY, $TheheistZ, $Theheist_blip_icon)
Blip.SetEntryExit($Theheist_contact_blip, 2024.39, 1008.62, 20.0)

:MOB_VEG_2151
MOB_GF_3152()
goto @MOB_VEG_15

:MOB_VEG_2165
if 
  $flag_heist_mission_counter > 5
goto_if_false @MOB_VEG_2286
if 
  $1386 == 0
goto_if_false @MOB_VEG_2286
$call_number = 52
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_2247
CELLFON_60()
MOB_GF_3312()

:MOB_VEG_2247
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_2272
$1386 = 1

:MOB_VEG_2272
MOB_GF_3152()
goto @MOB_VEG_15

:MOB_VEG_2286
goto @MOB_VEG_2300

:MOB_VEG_2293
$flag_cell_nation = 0

:MOB_VEG_2300
goto @MOB_VEG_15

:MOB_LA2
set_deatharrest_state 0
script_name 'MOB_LA2'

:MOB_LA2_15
wait 250
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_LA2_57
$timer_mobile_start = Clock.GetGameTimer()
$flag_mobile_timer = 1

:MOB_LA2_57
if 
  $1354 == 1
goto_if_false @MOB_LA2_77
terminate_this_script 

:MOB_LA2_77
ENTEXT_214()
if 
  Player.IsPlaying($player1)
goto_if_false @MOB_LA2_763
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_LA2_756
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_LA2_756
if 
  $flag_mansion_mission_counter > 0
goto_if_false @MOB_LA2_280
if 
  $flag_mob_LA2 == 0
goto_if_false @MOB_LA2_280
$call_number = 50
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_219
CELLFON_60()
MOB_GF_3312()

:MOB_LA2_219
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_266
$flag_mob_LA2 = 1
Blip.Remove($mansion_contact_blip)
$mansion_contact_blip = Blip.AddSpriteForContactPoint($mansionX, $mansionY, $mansionZ, $mansion_blip_icon)

:MOB_LA2_266
MOB_GF_3152()
goto @MOB_LA2_15

:MOB_LA2_280
if and
  $flag_casino_mission_counter > 2
  2 > $flag_mansion_mission_counter
goto_if_false @MOB_LA2_408
if 
  $1353 == 0
goto_if_false @MOB_LA2_408
$call_number = 25
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_369
CELLFON_60()
MOB_GF_3312()

:MOB_LA2_369
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_394
$1353 = 1

:MOB_LA2_394
MOB_GF_3152()
goto @MOB_LA2_15

:MOB_LA2_408
if 
  $flag_riot_mission_counter > 1
goto_if_false @MOB_LA2_590
if 
  $1355 == 0
goto_if_false @MOB_LA2_590
$call_number = 22
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_490
CELLFON_60()
MOB_GF_3312()

:MOB_LA2_490
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_537
Blip.Remove($sweet_contact_blip)
$sweet_contact_blip = Blip.AddSpriteForContactPoint($sweetX, $sweetY, $sweetZ, $sweet_blip_icon)
$1355 = 1

:MOB_LA2_537
MOB_GF_3152()
$player_territory_owned = Stat.GetTerritoryUnderControlPercentage()
if 
  34 >= $player_territory_owned
goto_if_false @MOB_LA2_583
Text.PrintNow('MORTURF', 12000, 1)

:MOB_LA2_583
goto @MOB_LA2_15

:MOB_LA2_590
if 
  $flag_riot_mission_counter > 1
goto_if_false @MOB_LA2_756
$player_territory_owned = Stat.GetTerritoryUnderControlPercentage()
if 
  $player_territory_owned > 34
goto_if_false @MOB_LA2_756
if 
  $1354 == 0
goto_if_false @MOB_LA2_756
$call_number = 23
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_695
CELLFON_60()
MOB_GF_3312()

:MOB_LA2_695
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_742
Blip.Remove($sweet_contact_blip)
$sweet_contact_blip = Blip.AddSpriteForContactPoint($sweetX, $sweetY, $sweetZ, $sweet_blip_icon)
$1354 = 1

:MOB_LA2_742
MOB_GF_3152()
goto @MOB_LA2_15

:MOB_LA2_756
goto @MOB_LA2_770

:MOB_LA2_763
$flag_cell_nation = 0

:MOB_LA2_770
goto @MOB_LA2_15

:MOB_RAN
set_deatharrest_state 0
script_name 'MOB_RAN'

:MOB_RAN_15
wait 1000
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_RAN_57
$timer_mobile_start = Clock.GetGameTimer()
$flag_mobile_timer = 1

:MOB_RAN_57
ENTEXT_214()
if 
  Player.IsPlaying($player1)
goto_if_false @MOB_RAN_2260
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_RAN_2253
if 
  $timer_mobile_diff > 60000
goto_if_false @MOB_RAN_2253
if and
  $failed_cesar_race == 1
  $flag_cesar_mission_counter == 0
goto_if_false @MOB_RAN_247
if 
  $1371 == 0
goto_if_false @MOB_RAN_247
$call_number = 11
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_208
CELLFON_60()
MOB_GF_3312()

:MOB_RAN_208
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_233
$1371 = 1

:MOB_RAN_233
MOB_GF_3152()
goto @MOB_RAN_15

:MOB_RAN_247
if and
  $trigger_phonecall_failed == 1
  $flag_smoke_mission_counter == 1
goto_if_false @MOB_RAN_403
$Returnedfat = Stat.GetFloat(StatId.Fat)
if 
  $Returnedfat >= 500.0
goto_if_false @MOB_RAN_403
if 
  $1372 == 0
goto_if_false @MOB_RAN_403
$call_number = 14
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_364
CELLFON_60()
MOB_GF_3312()

:MOB_RAN_364
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_389
$1372 = 1

:MOB_RAN_389
MOB_GF_3152()
goto @MOB_RAN_15

:MOB_RAN_403
if 
  $flag_wuzi_mission_counter > 1
goto_if_false @MOB_RAN_524
if 
  $flag_mob_random == 0
goto_if_false @MOB_RAN_524
$call_number = 1
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_485
CELLFON_60()
MOB_GF_3312()

:MOB_RAN_485
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_510
$flag_mob_random = 1

:MOB_RAN_510
MOB_GF_3152()
goto @MOB_RAN_15

:MOB_RAN_524
if 
  $flag_desert_mission_counter > 5
goto_if_false @MOB_RAN_645
if 
  $1367 == 0
goto_if_false @MOB_RAN_645
$call_number = 2
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_606
CELLFON_60()
MOB_GF_3312()

:MOB_RAN_606
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_631
$1367 = 1

:MOB_RAN_631
MOB_GF_3152()
goto @MOB_RAN_15

:MOB_RAN_645
if 
  $flag_casino_mission_counter > 5
goto_if_false @MOB_RAN_766
if 
  $1368 == 0
goto_if_false @MOB_RAN_766
$call_number = 3
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_727
CELLFON_60()
MOB_GF_3312()

:MOB_RAN_727
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_752
$1368 = 1

:MOB_RAN_752
MOB_GF_3152()
goto @MOB_RAN_15

:MOB_RAN_766
if 
  $flag_mansion_mission_counter > 2
goto_if_false @MOB_RAN_887
if 
  $1369 == 0
goto_if_false @MOB_RAN_887
$call_number = 4
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_848
CELLFON_60()
MOB_GF_3312()

:MOB_RAN_848
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_873
$1369 = 1

:MOB_RAN_873
MOB_GF_3152()
goto @MOB_RAN_15

:MOB_RAN_887
if 
  $flag_riot_mission_counter > 4
goto_if_false @MOB_RAN_1008
if 
  $1370 == 0
goto_if_false @MOB_RAN_1008
$call_number = 5
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_969
CELLFON_60()
MOB_GF_3312()

:MOB_RAN_969
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_994
$1370 = 1

:MOB_RAN_994
MOB_GF_3152()
goto @MOB_RAN_15

:MOB_RAN_1008
if and
  $d5_watched_first_cutscene == 1
  $pilot_test_passed == 0
goto_if_false @MOB_RAN_1136
if 
  $1373 == 0
goto_if_false @MOB_RAN_1136
$call_number = 44
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1097
CELLFON_60()
MOB_GF_3312()

:MOB_RAN_1097
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1122
$1373 = 1

:MOB_RAN_1122
MOB_GF_3152()
goto @MOB_RAN_15

:MOB_RAN_1136
if and
  $d5_watched_first_cutscene == 1
  $pilot_test_passed == 0
  $1373 == 1
goto_if_false @MOB_RAN_1271
if 
  $1374 == 0
goto_if_false @MOB_RAN_1271
$call_number = 45
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1232
CELLFON_60()
MOB_GF_3312()

:MOB_RAN_1232
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1257
$1374 = 1

:MOB_RAN_1257
MOB_GF_3152()
goto @MOB_RAN_15

:MOB_RAN_1271
if and
  $d5_watched_first_cutscene == 1
  $pilot_test_passed == 0
  $1374 == 1
goto_if_false @MOB_RAN_1406
if 
  $1375 == 0
goto_if_false @MOB_RAN_1406
$call_number = 46
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1367
CELLFON_60()
MOB_GF_3312()

:MOB_RAN_1367
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1392
$1375 = 1

:MOB_RAN_1392
MOB_GF_3152()
goto @MOB_RAN_15

:MOB_RAN_1406
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(76)
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @MOB_RAN_2253
if 
  not Player.IsScoreGreater($player1, -499)
goto_if_false @MOB_RAN_2253
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MOB_RAN_2253
if 
  $1376 == 0
goto_if_false @MOB_RAN_1834
if 
  $loan_shark_reminder == 7
goto_if_false @MOB_RAN_1518
$call_number = 61
$loan_shark_reminder = 0

:MOB_RAN_1518
if 
  $loan_shark_reminder == 6
goto_if_false @MOB_RAN_1550
$call_number = 60
$loan_shark_reminder = 7

:MOB_RAN_1550
if 
  $loan_shark_reminder == 5
goto_if_false @MOB_RAN_1582
$call_number = 59
$loan_shark_reminder = 6

:MOB_RAN_1582
if 
  $loan_shark_reminder == 4
goto_if_false @MOB_RAN_1614
$call_number = 58
$loan_shark_reminder = 5

:MOB_RAN_1614
if 
  $loan_shark_reminder == 3
goto_if_false @MOB_RAN_1646
$call_number = 57
$loan_shark_reminder = 4

:MOB_RAN_1646
if 
  $loan_shark_reminder == 2
goto_if_false @MOB_RAN_1678
$call_number = 56
$loan_shark_reminder = 3

:MOB_RAN_1678
if 
  $loan_shark_reminder == 1
goto_if_false @MOB_RAN_1710
$call_number = 55
$loan_shark_reminder = 2

:MOB_RAN_1710
if 
  $loan_shark_reminder == 0
goto_if_false @MOB_RAN_1742
$call_number = 54
$loan_shark_reminder = 1

:MOB_RAN_1742
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1781
CELLFON_60()
MOB_GF_3312()

:MOB_RAN_1781
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1820
$1376 = 1
$1377 = 0
$terminate_cat_calls = 1

:MOB_RAN_1820
MOB_GF_3152()
goto @MOB_RAN_15

:MOB_RAN_1834
if 
  $1376 == 1
goto_if_false @MOB_RAN_2211
if 
  $1377 == 0
goto_if_false @MOB_RAN_2211
if 
  $loan_shark_hitmen == 7
goto_if_false @MOB_RAN_1902
$call_number = 69
$loan_shark_hitmen = 0

:MOB_RAN_1902
if 
  $loan_shark_hitmen == 6
goto_if_false @MOB_RAN_1934
$call_number = 68
$loan_shark_hitmen = 7

:MOB_RAN_1934
if 
  $loan_shark_hitmen == 5
goto_if_false @MOB_RAN_1966
$call_number = 67
$loan_shark_hitmen = 6

:MOB_RAN_1966
if 
  $loan_shark_hitmen == 4
goto_if_false @MOB_RAN_1998
$call_number = 66
$loan_shark_hitmen = 5

:MOB_RAN_1998
if 
  $loan_shark_hitmen == 3
goto_if_false @MOB_RAN_2030
$call_number = 65
$loan_shark_hitmen = 4

:MOB_RAN_2030
if 
  $loan_shark_hitmen == 2
goto_if_false @MOB_RAN_2062
$call_number = 64
$loan_shark_hitmen = 3

:MOB_RAN_2062
if 
  $loan_shark_hitmen == 1
goto_if_false @MOB_RAN_2094
$call_number = 63
$loan_shark_hitmen = 2

:MOB_RAN_2094
if 
  $loan_shark_hitmen == 0
goto_if_false @MOB_RAN_2126
$call_number = 62
$loan_shark_hitmen = 1

:MOB_RAN_2126
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_2165
CELLFON_60()
MOB_GF_3312()

:MOB_RAN_2165
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_2197
$1377 = 1
$terminate_cat_calls = 1

:MOB_RAN_2197
MOB_GF_3152()
goto @MOB_RAN_15

:MOB_RAN_2211
if 
  $1377 == 1
goto_if_false @MOB_RAN_2253
StreamedScript.Stream(76)
if 
  StreamedScript.HasLoaded(76)
goto_if_false @MOB_RAN_2253
StreamedScript.StartNew(76)

:MOB_RAN_2253
goto @MOB_RAN_2267

:MOB_RAN_2260
$flag_cell_nation = 0

:MOB_RAN_2267
goto @MOB_RAN_15

:MOB_GF
script_name 'MOB_GF'
set_deatharrest_state 0
set_global_var_bit_const $iAgentFlags {n} 11
clear_global_var_bit_const $iAgentFlags {n} 10
2@ = Math.RandomIntInRange(0, 8)

:MOB_GF_38
wait 150
ENTEXT_214()
if 
  Player.IsPlaying($player1)
goto_if_false @MOB_GF_1073
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_GF_1050
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_GF_1043
if 
  0@ == 0
goto_if_false @MOB_GF_264
if 
  1@ == 1
goto_if_false @MOB_GF_186
$call_number = 70
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 77
goto_if_false @MOB_GF_179
$call_number = 77

:MOB_GF_179
goto @MOB_GF_194

:MOB_GF_186
$call_number = 130

:MOB_GF_194
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_248
set_global_var_bit_const $iAgentFlags {n} 10
set_global_var_bit_lvar $iAgentFlags {var_n} 0@
CELLFON_60()
MOB_GF_3312()

:MOB_GF_248
clear_global_var_bit_const $iAgentFlags {n} 11
MOB_GF_3152()
terminate_this_script 

:MOB_GF_264
if 
  0@ == 1
goto_if_false @MOB_GF_417
if 
  1@ == 1
goto_if_false @MOB_GF_347
$call_number = 80
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 87
goto_if_false @MOB_GF_340
$call_number = 87

:MOB_GF_340
goto @MOB_GF_355

:MOB_GF_347
$call_number = 131

:MOB_GF_355
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_401
set_global_var_bit_const $iAgentFlags {n} 10
CELLFON_60()
MOB_GF_3312()

:MOB_GF_401
clear_global_var_bit_const $iAgentFlags {n} 11
MOB_GF_3152()
terminate_this_script 

:MOB_GF_417
if 
  0@ == 2
goto_if_false @MOB_GF_570
if 
  1@ == 1
goto_if_false @MOB_GF_500
$call_number = 90
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 97
goto_if_false @MOB_GF_493
$call_number = 97

:MOB_GF_493
goto @MOB_GF_508

:MOB_GF_500
$call_number = 132

:MOB_GF_508
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_554
set_global_var_bit_const $iAgentFlags {n} 10
CELLFON_60()
MOB_GF_3312()

:MOB_GF_554
clear_global_var_bit_const $iAgentFlags {n} 11
MOB_GF_3152()
terminate_this_script 

:MOB_GF_570
if 
  0@ == 3
goto_if_false @MOB_GF_730
if 
  1@ == 1
goto_if_false @MOB_GF_653
$call_number = 100
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 107
goto_if_false @MOB_GF_646
$call_number = 107

:MOB_GF_646
goto @MOB_GF_661

:MOB_GF_653
$call_number = 133

:MOB_GF_661
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_714
set_global_var_bit_const $iAgentFlags {n} 10
CELLFON_60()
MOB_GF_3312()
set_global_var_bit_const $iAgentFlags {n} 10

:MOB_GF_714
clear_global_var_bit_const $iAgentFlags {n} 11
MOB_GF_3152()
terminate_this_script 

:MOB_GF_730
if 
  0@ == 4
goto_if_false @MOB_GF_890
if 
  1@ == 1
goto_if_false @MOB_GF_813
$call_number = 110
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 117
goto_if_false @MOB_GF_806
$call_number = 117

:MOB_GF_806
goto @MOB_GF_821

:MOB_GF_813
$call_number = 134

:MOB_GF_821
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_874
set_global_var_bit_const $iAgentFlags {n} 10
CELLFON_60()
MOB_GF_3312()
set_global_var_bit_const $iAgentFlags {n} 10

:MOB_GF_874
clear_global_var_bit_const $iAgentFlags {n} 11
MOB_GF_3152()
terminate_this_script 

:MOB_GF_890
if 
  0@ == 5
goto_if_false @MOB_GF_1043
if 
  1@ == 1
goto_if_false @MOB_GF_973
$call_number = 120
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 127
goto_if_false @MOB_GF_966
$call_number = 127

:MOB_GF_966
goto @MOB_GF_981

:MOB_GF_973
$call_number = 135

:MOB_GF_981
MOB_GF_1087()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_1027
set_global_var_bit_const $iAgentFlags {n} 10
CELLFON_60()
MOB_GF_3312()

:MOB_GF_1027
clear_global_var_bit_const $iAgentFlags {n} 11
MOB_GF_3152()
terminate_this_script 

:MOB_GF_1043
goto @MOB_GF_1066

:MOB_GF_1050
clear_global_var_bit_const $iAgentFlags {n} 11
MOB_GF_3152()
terminate_this_script 

:MOB_GF_1066
goto @MOB_GF_1080

:MOB_GF_1073
$flag_cell_nation = 0

:MOB_GF_1080
goto @MOB_GF_38

:MOB_GF_1087
$ring_a_ding_ding = 0
$onmission = 1
$flag_cell_nation = 1
$audio_slot_mobile = 1
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 28200)
$players_skipping_the_call = 0
switch_start $call_number {numCases} 12 {hasDefaultCase} 1 {defaultLabel} @MOB_GF_1479 {caseNum1} 70 {caseLabel1} @MOB_GF_1263 {caseNum2} 80 {caseLabel2} @MOB_GF_1281 {caseNum3} 90 {caseLabel3} @MOB_GF_1299 {caseNum4} 100 {caseLabel4} @MOB_GF_1317 {caseNum5} 110 {caseLabel5} @MOB_GF_1335 {caseNum6} 120 {caseLabel6} @MOB_GF_1353 {caseNum7} 130 {caseLabel7} @MOB_GF_1371
switch_continued 131 {caseLabel1} @MOB_GF_1389 {caseNum2} 132 {caseLabel2} @MOB_GF_1407 {caseNum3} 133 {caseLabel3} @MOB_GF_1425 {caseNum4} 134 {caseLabel4} @MOB_GF_1443 {caseNum5} 135 {caseLabel5} @MOB_GF_1461 {caseNum6} -1 {caseLabel6} @MOB_GF_1497 {caseNum7} -1 {caseLabel7} @MOB_GF_1497 {caseNum8} -1 {caseLabel8} @MOB_GF_1497 {caseNum9} -1 {caseLabel9} @MOB_GF_1497

:MOB_GF_1263
Text.PrintHelp('ANSWER0')
goto @MOB_GF_1497

:MOB_GF_1281
Text.PrintHelp('ANSWER1')
goto @MOB_GF_1497

:MOB_GF_1299
Text.PrintHelp('ANSWER2')
goto @MOB_GF_1497

:MOB_GF_1317
Text.PrintHelp('ANSWER3')
goto @MOB_GF_1497

:MOB_GF_1335
Text.PrintHelp('ANSWER4')
goto @MOB_GF_1497

:MOB_GF_1353
Text.PrintHelp('ANSWER5')
goto @MOB_GF_1497

:MOB_GF_1371
Text.PrintHelp('ANSWER0')
goto @MOB_GF_1497

:MOB_GF_1389
Text.PrintHelp('ANSWER1')
goto @MOB_GF_1497

:MOB_GF_1407
Text.PrintHelp('ANSWER2')
goto @MOB_GF_1497

:MOB_GF_1425
Text.PrintHelp('ANSWER3')
goto @MOB_GF_1497

:MOB_GF_1443
Text.PrintHelp('ANSWER4')
goto @MOB_GF_1497

:MOB_GF_1461
Text.PrintHelp('ANSWER5')
goto @MOB_GF_1497

:MOB_GF_1479
Text.PrintHelp('ANSWER')
goto @MOB_GF_1497

:MOB_GF_1497
if and
  7 > $ring_a_ding_ding
  2 > $flag_player_answered_phone
goto_if_false @MOB_GF_2068
wait 0
switch_start $call_number {numCases} 12 {hasDefaultCase} 1 {defaultLabel} @MOB_GF_1876 {caseNum1} 70 {caseLabel1} @MOB_GF_1660 {caseNum2} 80 {caseLabel2} @MOB_GF_1678 {caseNum3} 90 {caseLabel3} @MOB_GF_1696 {caseNum4} 100 {caseLabel4} @MOB_GF_1714 {caseNum5} 110 {caseLabel5} @MOB_GF_1732 {caseNum6} 120 {caseLabel6} @MOB_GF_1750 {caseNum7} 130 {caseLabel7} @MOB_GF_1768
switch_continued 131 {caseLabel1} @MOB_GF_1786 {caseNum2} 132 {caseLabel2} @MOB_GF_1804 {caseNum3} 133 {caseLabel3} @MOB_GF_1822 {caseNum4} 134 {caseLabel4} @MOB_GF_1840 {caseNum5} 135 {caseLabel5} @MOB_GF_1858 {caseNum6} -1 {caseLabel6} @MOB_GF_1894 {caseNum7} -1 {caseLabel7} @MOB_GF_1894 {caseNum8} -1 {caseLabel8} @MOB_GF_1894 {caseNum9} -1 {caseLabel9} @MOB_GF_1894

:MOB_GF_1660
Text.PrintHelpForever('ANSWER0')
goto @MOB_GF_1894

:MOB_GF_1678
Text.PrintHelpForever('ANSWER1')
goto @MOB_GF_1894

:MOB_GF_1696
Text.PrintHelpForever('ANSWER2')
goto @MOB_GF_1894

:MOB_GF_1714
Text.PrintHelpForever('ANSWER3')
goto @MOB_GF_1894

:MOB_GF_1732
Text.PrintHelpForever('ANSWER4')
goto @MOB_GF_1894

:MOB_GF_1750
Text.PrintHelpForever('ANSWER5')
goto @MOB_GF_1894

:MOB_GF_1768
Text.PrintHelpForever('ANSWER0')
goto @MOB_GF_1894

:MOB_GF_1786
Text.PrintHelpForever('ANSWER1')
goto @MOB_GF_1894

:MOB_GF_1804
Text.PrintHelpForever('ANSWER2')
goto @MOB_GF_1894

:MOB_GF_1822
Text.PrintHelpForever('ANSWER3')
goto @MOB_GF_1894

:MOB_GF_1840
Text.PrintHelpForever('ANSWER4')
goto @MOB_GF_1894

:MOB_GF_1858
Text.PrintHelpForever('ANSWER5')
goto @MOB_GF_1894

:MOB_GF_1876
Text.PrintHelpForever('ANSWER')
goto @MOB_GF_1894

:MOB_GF_1894
$audio_slot_mobile = 3
MOB_GF_2311()
$ring_a_ding_ding += 1
if and
  $flag_player_answered_phone == 1
  $ring_a_ding_ding > 0
goto_if_false @MOB_GF_1947
goto @MOB_GF_2075

:MOB_GF_1947
MOB_GF_2609()
if and
  $flag_player_answered_phone == 1
  $ring_a_ding_ding > 0
goto_if_false @MOB_GF_1986
goto @MOB_GF_2075

:MOB_GF_1986
$mobile_pause = 0

:MOB_GF_1993
if 
  40 > $mobile_pause
goto_if_false @MOB_GF_2061
wait 0
MOB_GF_2886()
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_2047
goto @MOB_GF_2075

:MOB_GF_2047
$mobile_pause += 1
goto @MOB_GF_1993

:MOB_GF_2061
goto @MOB_GF_1497

:MOB_GF_2068
$timer_mobile_start = Clock.GetGameTimer()
return 

:MOB_GF_2075
$players_skipping_the_call = 1
$timer_mobile_start = Clock.GetGameTimer()

:MOB_GF_2087
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
goto_if_false @MOB_GF_2140
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @MOB_GF_2133
$flag_player_answered_phone = 2
return 

:MOB_GF_2133
goto @MOB_GF_2087

:MOB_GF_2140
Text.ClearHelp
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
if 
  Player.IsPlaying($player1)
goto_if_false @MOB_GF_2309
Game.SetEveryoneIgnorePlayer($player1, True)
Char.ShutUp($scplayer, True)
Streaming.RequestModel(330)

:MOB_GF_2181
if 
  not Streaming.HasModelLoaded(330)
goto_if_false @MOB_GF_2208
wait 0
goto @MOB_GF_2181

:MOB_GF_2208
MOB_GF_2886()
if 
  $flag_player_answered_phone == 2
goto_if_false @MOB_GF_2240
Streaming.MarkModelAsNoLongerNeeded(330)
return 

:MOB_GF_2240
Task.UseMobilePhone($scplayer, True)
TIMERA = 0

:MOB_GF_2254
if 
  2000 > TIMERA
goto_if_false @MOB_GF_2309
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @MOB_GF_2302
$flag_player_answered_phone = 2
return 

:MOB_GF_2302
goto @MOB_GF_2254

:MOB_GF_2309
return 

:MOB_GF_2311
if 
  not Audio.HasMissionAudioLoaded($audio_slot_mobile)
goto_if_false @MOB_GF_2602
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @MOB_GF_2363
$flag_player_answered_phone = 2
return 
goto @MOB_GF_2595

:MOB_GF_2363
if or
  Char.IsInWater($scplayer)
  Char.IsShooting($scplayer)
  not Char.IsOnFoot($scplayer)
  $onmission == 0
  $main_visible_area <> 0
  $player_fall_state <> 0
goto_if_false @MOB_GF_2421
$flag_player_answered_phone = 2
Text.ClearHelp
return 

:MOB_GF_2421
if or
  Game.IsGangWarFightingGoingOn
  Player.IsUsingJetpack($player1)
  Game.IsMinigameInProgress
goto_if_false @MOB_GF_2452
$flag_player_answered_phone = 2
Text.ClearHelp
return 

:MOB_GF_2452
if and
  $flag_player_answered_phone == 0
  $ring_a_ding_ding > 0
goto_if_false @MOB_GF_2524
if 
  not Char.IsShooting($scplayer)
goto_if_false @MOB_GF_2524
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
  Player.CanStartMission($player1)
goto_if_false @MOB_GF_2524
$flag_player_answered_phone = 1
return 

:MOB_GF_2524
if 
  $players_skipping_the_call == 1
goto_if_false @MOB_GF_2568
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @MOB_GF_2568
$players_skipping_the_call = 2
return 

:MOB_GF_2568
if 
  $onmission == 0
goto_if_false @MOB_GF_2595
$flag_player_answered_phone = 2
return 

:MOB_GF_2595
goto @MOB_GF_2311

:MOB_GF_2602
Audio.PlayMissionAudio($audio_slot_mobile)
return 

:MOB_GF_2609
if 
  not Audio.HasMissionAudioFinished($audio_slot_mobile)
goto_if_false @MOB_GF_2884
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @MOB_GF_2661
$flag_player_answered_phone = 2
return 
goto @MOB_GF_2877

:MOB_GF_2661
if or
  Char.IsInWater($scplayer)
  Char.IsShooting($scplayer)
  not Char.IsOnFoot($scplayer)
  $onmission == 0
  $main_visible_area <> 0
  $player_fall_state <> 0
goto_if_false @MOB_GF_2719
$flag_player_answered_phone = 2
Text.ClearHelp
return 

:MOB_GF_2719
if or
  Game.IsGangWarFightingGoingOn
  Player.IsUsingJetpack($player1)
  Game.IsMinigameInProgress
goto_if_false @MOB_GF_2750
$flag_player_answered_phone = 2
Text.ClearHelp
return 

:MOB_GF_2750
if and
  $flag_player_answered_phone == 0
  $ring_a_ding_ding > 0
goto_if_false @MOB_GF_2806
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
  Player.CanStartMission($player1)
goto_if_false @MOB_GF_2806
$flag_player_answered_phone = 1
return 

:MOB_GF_2806
if 
  $players_skipping_the_call == 1
goto_if_false @MOB_GF_2850
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @MOB_GF_2850
$players_skipping_the_call = 2
return 

:MOB_GF_2850
if 
  $onmission == 0
goto_if_false @MOB_GF_2877
$flag_player_answered_phone = 2
return 

:MOB_GF_2877
goto @MOB_GF_2609

:MOB_GF_2884
return 

:MOB_GF_2886
if 
  not Player.IsPlaying($player1)
goto_if_false @MOB_GF_2918
$flag_player_answered_phone = 2
return 
goto @MOB_GF_3150

:MOB_GF_2918
if or
  Char.IsInWater($scplayer)
  Char.IsShooting($scplayer)
  not Char.IsOnFoot($scplayer)
  $onmission == 0
  $main_visible_area <> 0
  $player_fall_state <> 0
goto_if_false @MOB_GF_2976
$flag_player_answered_phone = 2
Text.ClearHelp
return 

:MOB_GF_2976
if or
  Game.IsGangWarFightingGoingOn
  Player.IsUsingJetpack($player1)
  Game.IsMinigameInProgress
goto_if_false @MOB_GF_3007
$flag_player_answered_phone = 2
Text.ClearHelp
return 

:MOB_GF_3007
if and
  $flag_player_answered_phone == 0
  $ring_a_ding_ding > 0
goto_if_false @MOB_GF_3079
if 
  not Char.IsShooting($scplayer)
goto_if_false @MOB_GF_3079
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
  Player.CanStartMission($player1)
goto_if_false @MOB_GF_3079
$flag_player_answered_phone = 1
return 

:MOB_GF_3079
if 
  $players_skipping_the_call == 1
goto_if_false @MOB_GF_3123
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @MOB_GF_3123
$players_skipping_the_call = 2
return 

:MOB_GF_3123
if 
  $onmission == 0
goto_if_false @MOB_GF_3150
$flag_player_answered_phone = 2
return 

:MOB_GF_3150
return 

:MOB_GF_3152
$flag_cell_nation = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
$flag_player_answered_phone = 0
$flag_mobile_timer = 0
if 
  Player.IsPlaying($player1)
goto_if_false @MOB_GF_3229
Task.UseMobilePhone($scplayer, False)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Char.ShutUp($scplayer, False)

:MOB_GF_3229
$timer_mobile_start = Clock.GetGameTimer()
$timer_mobile_diff = 0
$timer_mobile_now = Clock.GetGameTimer()
set_var_int_to_var_int $timer_mobile_diff = $timer_mobile_now
sub_int_var_from_int_var $timer_mobile_diff -= $timer_mobile_start
Text.ClearPrints
if 
  $flag_new_cont == 0
goto_if_false @MOB_GF_3291
Text.ClearHelp
goto @MOB_GF_3298

:MOB_GF_3291
$flag_new_cont = 0

:MOB_GF_3298
Streaming.MarkModelAsNoLongerNeeded(330)
$onmission = 0
return 

:MOB_GF_3312
$cell_index_start = 0

:MOB_GF_3319
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, $mobile_audio_labels($cell_index_start,20i))
$cell_index_start += 1
if 
  is_int_var_greater_or_equal_to_int_var $cell_index_end >= $cell_index_start
goto_if_false @MOB_GF_3367
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, $mobile_audio_labels($cell_index_start,20i))

:MOB_GF_3367
$cell_index_start -= 1
$audio_slot_mobile = 1
MOB_GF_2311()
Text.PrintNow($mobile_print_labels($cell_index_start,20s), 10000, 1)
MOB_GF_2609()
if 
  $players_skipping_the_call == 2
goto_if_false @MOB_GF_3429
return 

:MOB_GF_3429
$cell_index_start += 1
if 
  is_int_var_greater_or_equal_to_int_var $cell_index_end >= $cell_index_start
goto_if_false @MOB_GF_3497
$audio_slot_mobile = 2
MOB_GF_2311()
Text.PrintNow($mobile_print_labels($cell_index_start,20s), 10000, 1)
MOB_GF_2609()
goto @MOB_GF_3504

:MOB_GF_3497
$cell_index_start -= 1

:MOB_GF_3504
if 
  $players_skipping_the_call == 2
goto_if_false @MOB_GF_3524
return 

:MOB_GF_3524
$cell_index_start += 1
if 
  $skip_the_mobile_call == 0
goto_if_false @MOB_GF_3567
Text.PrintHelp('CELSKIP')
$skip_the_mobile_call = 1

:MOB_GF_3567
if 
  is_int_var_greater_or_equal_to_int_var $cell_index_end >= $cell_index_start
goto_if_false @MOB_GF_3593
goto @MOB_GF_3319

:MOB_GF_3593
Text.ClearPrints
return 

//-------------Mission 0---------------
// Originally: Initial 1

:INITIAL
script_name 'INITIAL'
Game.SetLaRiots(False)
$bcesar3_passed_mission = 0
$japcar_mod_garage_open = 0
$para_float_Vy = 5.0
$para_float_Vz = -5.0
$para_flare_Vy = 8.5
$para_flare_Vz = -1.5
$para_freefall_Vz = -30.0
$para_freefall_Vy = 32.0
$para_default_Vy = 0.0
$para_force_chute_open = 0
$player_fall_state = 0
$player_has_parachute = 0
$para_pickup_flag = 1
$trigger_final_synd_mission = 0
$trigger_scrash2_mission = 0
$trigger_ice_cold_mission = 0
$trigger_final_LA2_missions = 0
$trigger_final_LA1_missions = 0
$funeral_mission_finished = 0
$trucking_help_flag = 0
$oddjob_help_flag = 0
$girlfried_help_flag = 0
$trigger_phonecall_failed = 0
$flag_bcesar_mission_counter = 0
$played_scipted_airscript_cut = 0
$returned_oysters_flag = 0
$flag_returned_shoehorses = 0
$flag_returned_snapshots = 0
$flag_returned_tags = 0
$game_starts_from_scratch = 0
$print_first_help = 0
$voice_over_at_hub = 0
$bike_help = 0
$car_help_played = 0
$drive_by_help = 0
$can_skip_smoking_cutscene = 0
$launch_shit_for_debug_build = 0
$cat_getaway_dialogue = 0
$gate_stay_open = 0
$tlf_underway = 0
$total_roulette_tables = 0
$already_bought_house[0] = 0
$already_bought_house[1] = 0
$already_bought_house[2] = 0
$already_bought_house[3] = 0
$already_bought_house[4] = 0
$already_bought_house[5] = 0
$already_bought_house[6] = 0
$already_bought_house[7] = 0
$already_bought_house[8] = 0
$already_bought_house[9] = 0
$already_bought_house[10] = 0
$already_bought_house[11] = 0
$already_bought_house[12] = 0
$already_bought_house[13] = 0
$already_bought_house[14] = 0
$already_bought_house[15] = 0
$already_bought_house[16] = 0
$already_bought_house[17] = 0
$already_bought_house[18] = 0
$already_bought_house[19] = 0
$already_bought_house[20] = 0
$already_bought_house[21] = 0
$already_bought_house[22] = 0
$already_bought_house[23] = 0
$already_bought_house[24] = 0
$already_bought_house[25] = 0
$already_bought_house[26] = 0
$already_bought_house[27] = 0
$already_bought_house[28] = 0
$already_bought_house[29] = 0
$already_bought_house[30] = 0
$already_bought_house[31] = 0
$prorerty_switch[0] = 0
$prorerty_switch[1] = 1
$prorerty_switch[2] = 2
$prorerty_switch[3] = 3
$prorerty_switch[4] = 4
$prorerty_switch[5] = 5
$prorerty_switch[6] = 6
$prorerty_switch[7] = 7
$prorerty_switch[8] = 8
$prorerty_switch[9] = 9
$prorerty_switch[10] = 10
$prorerty_switch[11] = 11
$prorerty_switch[12] = 12
$prorerty_switch[13] = 13
$prorerty_switch[14] = 14
$prorerty_switch[15] = 15
$prorerty_switch[16] = 16
$prorerty_switch[17] = 17
$prorerty_switch[18] = 18
$prorerty_switch[19] = 19
$prorerty_switch[20] = 20
$prorerty_switch[21] = 21
$prorerty_switch[22] = 22
$prorerty_switch[23] = 23
$prorerty_switch[24] = 24
$prorerty_switch[25] = 25
$prorerty_switch[26] = 26
$prorerty_switch[27] = 27
$prorerty_switch[28] = 28
$prorerty_switch[29] = 29
$prorerty_switch[30] = 30
$prorerty_switch[31] = 31
$zeros_property_bought = 0
$propertyX[0] = -1969.27
$propertyY[0] = 282.47
$propertyZ[0] = 34.6
$propertyX[1] = -2243.62
$propertyY[1] = 133.2
$propertyZ[1] = 34.8
$propertyX[2] = 426.4972
$propertyY[2] = 2530.689
$propertyZ[2] = 16.1
$save_housepickup[0] = Pickup.CreateLockedProperty($propertyX[0], $propertyY[0], $propertyZ[0], 'PROP_4')
$showroom_contact_blip = Blip.AddShortRangeSpriteForContactPoint($propertyX[0], $propertyY[0], $propertyZ[0], RadarSprite.PropertyR)
Blip.ChangeDisplay($showroom_contact_blip, BlipDisplay.BlipOnly)
$save_housepickup[1] = Pickup.CreateLockedProperty($propertyX[1], $propertyY[1], $propertyZ[1], 'PROP_4')
$zero_contact_blip = Blip.AddShortRangeSpriteForContactPoint($propertyX[1], $propertyY[1], $propertyZ[1], RadarSprite.PropertyR)
Blip.ChangeDisplay($zero_contact_blip, BlipDisplay.BlipOnly)
$save_housepickup[2] = Pickup.CreateLockedProperty($propertyX[2], $propertyY[2], $propertyZ[2], 'PROP_4')
$airstrip_contact_blip = Blip.AddShortRangeSpriteForContactPoint($propertyX[2], $propertyY[2], $propertyZ[2], RadarSprite.PropertyR)
Blip.ChangeDisplay($airstrip_contact_blip, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[2], $propertyY[2], 10.0, EntryexitsFlag.Enabled, False)
$propertyX[3] = 316.0696
$propertyY[3] = -1772.569
$propertyZ[3] = 4.1893
World.SetClosestEntryExitFlag($propertyX[3], $propertyY[3], 10.0, EntryexitsFlag.Enabled, False)
$1656 = 30000
$save_housepickup[3] = Pickup.CreateForSaleProperty($propertyX[3], $propertyY[3], $propertyZ[3], $1656, 'PROP_3')
$1624 = Blip.AddShortRangeSpriteForContactPoint($propertyX[3], $propertyY[3], $propertyZ[3], RadarSprite.PropertyG)
Blip.ChangeDisplay($1624, BlipDisplay.BlipOnly)
Garage.Deactivate('BEACSV')
$propertyX[4] = 2441.002
$propertyY[4] = 695.1089
$propertyZ[4] = 10.6646
World.SetClosestEntryExitFlag($propertyX[4], $propertyY[4], 10.0, EntryexitsFlag.Enabled, False)
$1657 = 20000
$save_housepickup[4] = Pickup.CreateLockedProperty($propertyX[4], $propertyY[4], $propertyZ[4], 'PROP_4')
$1625 = Blip.AddShortRangeSpriteForContactPoint($propertyX[4], $propertyY[4], $propertyZ[4], RadarSprite.PropertyR)
Blip.ChangeDisplay($1625, BlipDisplay.BlipOnly)
Garage.Deactivate('VESVGRG')
$propertyX[5] = -366.1849
$propertyY[5] = 1166.031
$propertyZ[5] = 19.2422
World.SetClosestEntryExitFlag($propertyX[5], $propertyY[5], 10.0, EntryexitsFlag.Enabled, False)
$1658 = 30000
$save_housepickup[5] = Pickup.CreateLockedProperty($propertyX[5], $propertyY[5], $propertyZ[5], 'PROP_4')
$1626 = Blip.AddShortRangeSpriteForContactPoint($propertyX[5], $propertyY[5], $propertyZ[5], RadarSprite.PropertyR)
Blip.ChangeDisplay($1626, BlipDisplay.BlipOnly)
Garage.Deactivate('CN2GAR1')
$propertyX[6] = 1283.844
$propertyY[6] = 2528.703
$propertyZ[6] = 10.3203
World.SetClosestEntryExitFlag($propertyX[6], $propertyY[6], 10.0, EntryexitsFlag.Enabled, False)
$1659 = 50000
$save_housepickup[6] = Pickup.CreateLockedProperty($propertyX[6], $propertyY[6], $propertyZ[6], 'PROP_4')
$1627 = Blip.AddShortRangeSpriteForContactPoint($propertyX[6], $propertyY[6], $propertyZ[6], RadarSprite.PropertyR)
Blip.ChangeDisplay($1627, BlipDisplay.BlipOnly)
Garage.Deactivate('BLOB69')
$propertyX[7] = 922.3647
$propertyY[7] = 2011.898
$propertyZ[7] = 10.766
World.SetClosestEntryExitFlag($propertyX[7], $propertyY[7], 10.0, EntryexitsFlag.Enabled, False)
$1660 = 30000
$save_housepickup[7] = Pickup.CreateLockedProperty($propertyX[7], $propertyY[7], $propertyZ[7], 'PROP_4')
$1628 = Blip.AddShortRangeSpriteForContactPoint($propertyX[7], $propertyY[7], $propertyZ[7], RadarSprite.PropertyR)
Blip.ChangeDisplay($1628, BlipDisplay.BlipOnly)
Garage.Deactivate('BLOB7')
$propertyX[8] = 2236.928
$propertyY[8] = 162.8057
$propertyZ[8] = 26.8462
World.SetClosestEntryExitFlag($propertyX[8], $propertyY[8], 10.0, EntryexitsFlag.Enabled, False)
$1661 = 35000
$save_housepickup[8] = Pickup.CreateLockedProperty($propertyX[8], $propertyY[8], $propertyZ[8], 'PROP_4')
$1629 = Blip.AddShortRangeSpriteForContactPoint($propertyX[8], $propertyY[8], $propertyZ[8], RadarSprite.PropertyR)
Blip.ChangeDisplay($1629, BlipDisplay.BlipOnly)
Garage.Deactivate('BURBDOO')
$propertyX[9] = 1402.317
$propertyY[9] = 1901.978
$propertyZ[9] = 10.8449
World.SetClosestEntryExitFlag($propertyX[9], $propertyY[9], 10.0, EntryexitsFlag.Enabled, False)
$1662 = 30000
$save_housepickup[9] = Pickup.CreateLockedProperty($propertyX[9], $propertyY[9], $propertyZ[9], 'PROP_4')
$1630 = Blip.AddShortRangeSpriteForContactPoint($propertyX[9], $propertyY[9], $propertyZ[9], RadarSprite.PropertyR)
Blip.ChangeDisplay($1630, BlipDisplay.BlipOnly)
Garage.Deactivate('BLOB6')
$propertyX[10] = 1687.98
$propertyY[10] = -2100.643
$propertyZ[10] = 13.3343
$1663 = 10000
World.SetClosestEntryExitFlag($propertyX[10], $propertyY[10], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[10] = Pickup.CreateForSaleProperty($propertyX[10], $propertyY[10], $propertyZ[10], $1663, 'PROP_3')
$1631 = Blip.AddShortRangeSpriteForContactPoint($propertyX[10], $propertyY[10], $propertyZ[10], RadarSprite.PropertyG)
Blip.ChangeDisplay($1631, BlipDisplay.BlipOnly)
Garage.Deactivate('CARLAS1')
$propertyX[11] = -2106.639
$propertyY[11] = 900.5537
$propertyZ[11] = 76.2032
World.SetClosestEntryExitFlag($propertyX[11], $propertyY[11], 10.0, EntryexitsFlag.Enabled, False)
$1664 = 100000
$save_housepickup[11] = Pickup.CreateLockedProperty($propertyX[11], $propertyY[11], $propertyZ[11], 'PROP_4')
$1632 = Blip.AddShortRangeSpriteForContactPoint($propertyX[11], $propertyY[11], $propertyZ[11], RadarSprite.PropertyR)
Blip.ChangeDisplay($1632, BlipDisplay.BlipOnly)
Garage.Deactivate('CESAFE1')
$propertyX[12] = 1331.186
$propertyY[12] = -630.4962
$propertyZ[12] = 108.6349
World.SetClosestEntryExitFlag($propertyX[12], $propertyY[12], 10.0, EntryexitsFlag.Enabled, False)
$1665 = 120000
$save_housepickup[12] = Pickup.CreateForSaleProperty($propertyX[12], $propertyY[12], $propertyZ[12], $1665, 'PROP_3')
$1633 = Blip.AddShortRangeSpriteForContactPoint($propertyX[12], $propertyY[12], $propertyZ[12], RadarSprite.PropertyG)
Blip.ChangeDisplay($1633, BlipDisplay.BlipOnly)
Garage.Deactivate('SAV1SFE')
$propertyX[13] = -2695.745
$propertyY[13] = 818.4718
$propertyZ[13] = 49.4844
World.SetClosestEntryExitFlag($propertyX[13], $propertyY[13], 10.0, EntryexitsFlag.Enabled, False)
$1666 = 20000
$save_housepickup[13] = Pickup.CreateLockedProperty($propertyX[13], $propertyY[13], $propertyZ[13], 'PROP_4')
$1634 = Blip.AddShortRangeSpriteForContactPoint($propertyX[13], $propertyY[13], $propertyZ[13], RadarSprite.PropertyR)
Blip.ChangeDisplay($1634, BlipDisplay.BlipOnly)
Garage.Deactivate('SAV1SFW')
$propertyX[14] = -2456.926
$propertyY[14] = -131.3292
$propertyZ[14] = 25.5376
World.SetClosestEntryExitFlag($propertyX[14], $propertyY[14], 10.0, EntryexitsFlag.Enabled, False)
$1667 = 40000
$save_housepickup[14] = Pickup.CreateLockedProperty($propertyX[14], $propertyY[14], $propertyZ[14], 'PROP_4')
$1635 = Blip.AddShortRangeSpriteForContactPoint($propertyX[14], $propertyY[14], $propertyZ[14], RadarSprite.PropertyR)
Blip.ChangeDisplay($1635, BlipDisplay.BlipOnly)
Garage.Deactivate('SVGSFS1')
$propertyX[15] = 892.6662
$propertyY[15] = -1639.714
$propertyZ[15] = 14.4567
$1668 = 10000
World.SetClosestEntryExitFlag($propertyX[15], $propertyY[15], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[15] = Pickup.CreateForSaleProperty($propertyX[15], $propertyY[15], $propertyZ[15], $1668, 'PROP_3')
$1636 = Blip.AddShortRangeSpriteForContactPoint($propertyX[15], $propertyY[15], $propertyZ[15], RadarSprite.PropertyG)
Blip.ChangeDisplay($1636, BlipDisplay.BlipOnly)
$propertyX[16] = 1969.932
$propertyY[16] = 1623.243
$propertyZ[16] = 12.3619
$1669 = 6000
World.SetClosestEntryExitFlag($propertyX[16], $propertyY[16], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[16] = Pickup.CreateLockedProperty($propertyX[16], $propertyY[16], $propertyZ[16], 'PROP_4')
$1637 = Blip.AddShortRangeSpriteForContactPoint($propertyX[16], $propertyY[16], $propertyZ[16], RadarSprite.PropertyR)
Blip.ChangeDisplay($1637, BlipDisplay.BlipOnly)
$propertyX[17] = 2234.909
$propertyY[17] = 1285.698
$propertyZ[17] = 10.3203
$1670 = 6000
World.SetClosestEntryExitFlag($propertyX[17], $propertyY[17], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[17] = Pickup.CreateLockedProperty($propertyX[17], $propertyY[17], $propertyZ[17], 'PROP_4')
$1638 = Blip.AddShortRangeSpriteForContactPoint($propertyX[17], $propertyY[17], $propertyZ[17], RadarSprite.PropertyR)
Blip.ChangeDisplay($1638, BlipDisplay.BlipOnly)
$propertyX[18] = -2213.864
$propertyY[18] = 723.5587
$propertyZ[18] = 48.914
$1671 = 20000
World.SetClosestEntryExitFlag($propertyX[18], $propertyY[18], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[18] = Pickup.CreateLockedProperty($propertyX[18], $propertyY[18], $propertyZ[18], 'PROP_4')
$1639 = Blip.AddShortRangeSpriteForContactPoint($propertyX[18], $propertyY[18], $propertyZ[18], RadarSprite.PropertyR)
Blip.ChangeDisplay($1639, BlipDisplay.BlipOnly)
$propertyX[19] = -1439.014
$propertyY[19] = -1540.59
$propertyZ[19] = 101.2579
$1672 = 100000
World.SetClosestEntryExitFlag($propertyX[19], $propertyY[19], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[19] = Pickup.CreateLockedProperty($propertyX[19], $propertyY[19], $propertyZ[19], 'PROP_4')
$1640 = Blip.AddShortRangeSpriteForContactPoint($propertyX[19], $propertyY[19], $propertyZ[19], RadarSprite.PropertyR)
Blip.ChangeDisplay($1640, BlipDisplay.BlipOnly)
$propertyX[20] = -2027.83
$propertyY[20] = -44.0454
$propertyZ[20] = 38.7692
$1673 = 20000
World.SetClosestEntryExitFlag($propertyX[20], $propertyY[20], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[20] = Pickup.CreateLockedProperty($propertyX[20], $propertyY[20], $propertyZ[20], 'PROP_4')
$1641 = Blip.AddShortRangeSpriteForContactPoint($propertyX[20], $propertyY[20], $propertyZ[20], RadarSprite.PropertyR)
Blip.ChangeDisplay($1641, BlipDisplay.BlipOnly)
$propertyX[21] = -2419.677
$propertyY[21] = 334.1621
$propertyZ[21] = 34.6796
$1674 = 50000
World.SetClosestEntryExitFlag($propertyX[21], $propertyY[21], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[21] = Pickup.CreateLockedProperty($propertyX[21], $propertyY[21], $propertyZ[21], 'PROP_4')
$1642 = Blip.AddShortRangeSpriteForContactPoint($propertyX[21], $propertyY[21], $propertyZ[21], RadarSprite.PropertyR)
Blip.ChangeDisplay($1642, BlipDisplay.BlipOnly)
$propertyX[22] = -2079.097
$propertyY[22] = -2309.899
$propertyZ[22] = 30.1172
$1675 = 20000
World.SetClosestEntryExitFlag($propertyX[22], $propertyY[22], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[22] = Pickup.CreateLockedProperty($propertyX[22], $propertyY[22], $propertyZ[22], 'PROP_4')
$1643 = Blip.AddShortRangeSpriteForContactPoint($propertyX[22], $propertyY[22], $propertyZ[22], RadarSprite.PropertyR)
Blip.ChangeDisplay($1643, BlipDisplay.BlipOnly)
$propertyX[23] = -1534.17
$propertyY[23] = 2650.3
$propertyZ[23] = 55.3437
$1676 = 20000
World.SetClosestEntryExitFlag($propertyX[23], $propertyY[23], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[23] = Pickup.CreateLockedProperty($propertyX[23], $propertyY[23], $propertyZ[23], 'PROP_4')
$1644 = Blip.AddShortRangeSpriteForContactPoint($propertyX[23], $propertyY[23], $propertyZ[23], RadarSprite.PropertyR)
Blip.ChangeDisplay($1644, BlipDisplay.BlipOnly)
$propertyX[24] = -1045.775
$propertyY[24] = 1552.976
$propertyZ[24] = 32.798
$1677 = 20000
World.SetClosestEntryExitFlag($propertyX[24], $propertyY[24], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[24] = Pickup.CreateLockedProperty($propertyX[24], $propertyY[24], $propertyZ[24], 'PROP_4')
$1645 = Blip.AddShortRangeSpriteForContactPoint($propertyX[24], $propertyY[24], $propertyZ[24], RadarSprite.PropertyR)
Blip.ChangeDisplay($1645, BlipDisplay.BlipOnly)
$propertyX[25] = 793.5623
$propertyY[25] = -514.4116
$propertyZ[25] = 16.3973
$1678 = 40000
World.SetClosestEntryExitFlag($propertyX[25], $propertyY[25], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[25] = Pickup.CreateLockedProperty($propertyX[25], $propertyY[25], $propertyZ[25], 'PROP_4')
$1646 = Blip.AddShortRangeSpriteForContactPoint($propertyX[25], $propertyY[25], $propertyZ[25], RadarSprite.PropertyR)
Blip.ChangeDisplay($1646, BlipDisplay.BlipOnly)
Garage.Deactivate('BURBDO2')
$propertyX[26] = 2103.346
$propertyY[26] = -1288.339
$propertyZ[26] = 23.8168
$1679 = 10000
World.SetClosestEntryExitFlag($propertyX[26], $propertyY[26], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[26] = Pickup.CreateForSaleProperty($propertyX[26], $propertyY[26], $propertyZ[26], $1679, 'PROP_3')
$1647 = Blip.AddShortRangeSpriteForContactPoint($propertyX[26], $propertyY[26], $propertyZ[26], RadarSprite.PropertyG)
Blip.ChangeDisplay($1647, BlipDisplay.BlipOnly)
$propertyX[27] = 2370.477
$propertyY[27] = 2165.474
$propertyZ[27] = 10.3269
$1680 = 6000
World.SetClosestEntryExitFlag($propertyX[27], $propertyY[27], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[27] = Pickup.CreateLockedProperty($propertyX[27], $propertyY[27], $propertyZ[27], 'PROP_4')
$1648 = Blip.AddShortRangeSpriteForContactPoint($propertyX[27], $propertyY[27], $propertyZ[27], RadarSprite.PropertyR)
Blip.ChangeDisplay($1648, BlipDisplay.BlipOnly)
$propertyX[28] = 2220.626
$propertyY[28] = 1837.348
$propertyZ[28] = 10.3203
$1681 = 6000
World.SetClosestEntryExitFlag($propertyX[28], $propertyY[28], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[28] = Pickup.CreateLockedProperty($propertyX[28], $propertyY[28], $propertyZ[28], 'PROP_4')
$1649 = Blip.AddShortRangeSpriteForContactPoint($propertyX[28], $propertyY[28], $propertyZ[28], RadarSprite.PropertyR)
Blip.ChangeDisplay($1649, BlipDisplay.BlipOnly)
$propertyX[29] = 2819.125
$propertyY[29] = 2149.372
$propertyZ[29] = 10.3203
$1682 = 10000
World.SetClosestEntryExitFlag($propertyX[29], $propertyY[29], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[29] = Pickup.CreateLockedProperty($propertyX[29], $propertyY[29], $propertyZ[29], 'PROP_4')
$1650 = Blip.AddShortRangeSpriteForContactPoint($propertyX[29], $propertyY[29], $propertyZ[29], RadarSprite.PropertyR)
Blip.ChangeDisplay($1650, BlipDisplay.BlipOnly)
$propertyX[30] = 2483.024
$propertyY[30] = -2001.074
$propertyZ[30] = 13.054
$1683 = 10000
World.SetClosestEntryExitFlag($propertyX[30], $propertyY[30], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[30] = Pickup.CreateForSaleProperty($propertyX[30], $propertyY[30], $propertyZ[30], $1683, 'PROP_3')
$1651 = Blip.AddShortRangeSpriteForContactPoint($propertyX[30], $propertyY[30], $propertyZ[30], RadarSprite.PropertyG)
Blip.ChangeDisplay($1651, BlipDisplay.BlipOnly)
$propertyX[31] = 206.8
$propertyY[31] = -112.1
$propertyZ[31] = 4.3965
$1684 = 10000
World.SetClosestEntryExitFlag($propertyX[31], $propertyY[31], 10.0, EntryexitsFlag.Enabled, False)
$save_housepickup[31] = Pickup.CreateLockedProperty($propertyX[31], $propertyY[31], $propertyZ[31], 'PROP_4')
$1652 = Blip.AddShortRangeSpriteForContactPoint($propertyX[31], $propertyY[31], $propertyZ[31], RadarSprite.PropertyR)
Blip.ChangeDisplay($1652, BlipDisplay.BlipOnly)
$save_pickupX[0] = 2495.53
$save_pickupY[0] = -1711.88
$save_pickupZ[0] = 1014.24
$save_playerX[0] = 2495.9
$save_playerY[0] = -1707.45
$save_playerZ[0] = 1013.26
$save_playerH[0] = 0.0
$remove_grove_pickup = 0
$save_pickupX[1] = 1263.05
$save_pickupY[1] = -773.67
$save_pickupZ[1] = 1091.39
$save_playerX[1] = 1263.76
$save_playerY[1] = -776.59
$save_playerZ[1] = 1090.89
$save_playerH[1] = 183.23
$848 = 0
$save_pickupX[2] = 416.9548
$save_pickupY[2] = 2538.813
$save_pickupZ[2] = 9.5077
$save_playerX[2] = 418.0759
$save_playerY[2] = 2536.771
$save_playerZ[2] = 9.0077
$save_playerH[2] = 269.2893
$849 = 0
$save_pickupX[3] = 2367.192
$save_pickupY[3] = -1121.518
$save_pickupZ[3] = 1050.382
$save_playerX[3] = 2367.072
$save_playerY[3] = -1123.715
$save_playerZ[3] = 1049.875
$save_playerH[3] = 183.259
$850 = 0
$save_pickupX[4] = 2320.103
$save_pickupY[4] = -1009.116
$save_pickupZ[4] = 1049.718
$save_playerX[4] = 2320.103
$save_playerY[4] = -1013.375
$save_playerZ[4] = 1049.211
$save_playerH[4] = 181.7957
$851 = 0
$save_pickupX[5] = 2342.873
$save_pickupY[5] = -1063.939
$save_pickupZ[5] = 1048.523
$save_playerX[5] = 2339.254
$save_playerY[5] = -1063.86
$save_playerZ[5] = 1048.023
$save_playerH[5] = 90.7733
$852 = 0
$save_pickupX[6] = 2186.014
$save_pickupY[6] = -1203.834
$save_pickupZ[6] = 1048.523
$save_playerX[6] = 2189.818
$save_playerY[6] = -1203.83
$save_playerZ[6] = 1048.031
$save_playerH[6] = 268.6874
$853 = 0
$save_pickupX[7] = 2313.369
$save_pickupY[7] = -1208.744
$save_pickupZ[7] = 1048.523
$save_playerX[7] = 2310.853
$save_playerY[7] = -1210.975
$save_playerZ[7] = 1048.023
$save_playerH[7] = 130.1776
$854 = 0
$save_pickupX[8] = 2249.397
$save_pickupY[8] = -1209.449
$save_pickupZ[8] = 1048.523
$save_playerX[8] = 2252.7
$save_playerY[8] = -1209.388
$save_playerZ[8] = 1048.023
$save_playerH[8] = 270.3929
$855 = 0
$save_pickupX[9] = 2244.533
$save_pickupY[9] = -1077.663
$save_pickupZ[9] = 1048.523
$save_playerX[9] = 2241.069
$save_playerY[9] = -1077.736
$save_playerZ[9] = 1048.031
$save_playerH[9] = 88.0268
$856 = 0
$save_pickupX[10] = 2205.382
$save_pickupY[10] = -1074.59
$save_pickupZ[10] = 1049.977
$save_playerX[10] = 2207.852
$save_playerY[10] = -1075.324
$save_playerZ[10] = 1049.477
$save_playerH[10] = 261.7253
$857 = 0
$save_pickupX[11] = 2233.024
$save_pickupY[11] = -1105.717
$save_pickupZ[11] = 1050.39
$save_playerX[11] = 2233.231
$save_playerY[11] = -1107.852
$save_playerZ[11] = 1049.89
$save_playerH[11] = 182.2496
$858 = 0
$save_pickupX[12] = 2278.139
$save_pickupY[12] = -1139.583
$save_pickupZ[12] = 1050.398
$save_playerX[12] = 2281.524
$save_playerY[12] = -1139.37
$save_playerZ[12] = 1049.898
$save_playerH[12] = 273.5033
$859 = 0
$save_pickupX[13] = -2037.89
$save_pickupY[13] = -2526.96
$save_pickupZ[13] = 30.13
$save_playerX[13] = -2039.78
$save_playerY[13] = -2529.1
$save_playerZ[13] = 29.63
$save_playerH[13] = 21.23
$860 = 0
$save_pickupX[14] = 877.81
$save_pickupY[14] = -26.91
$save_pickupZ[14] = 62.69
$save_playerX[14] = 877.04
$save_playerY[14] = -30.16
$save_playerZ[14] = 62.19
$save_playerH[14] = 66.85
$861 = 0
$save_pickupX[15] = -2026.481
$save_pickupY[15] = 156.8028
$save_pickupZ[15] = 28.5391
$save_playerX[15] = -2021.036
$save_playerY[15] = 156.0674
$save_playerZ[15] = 27.6521
$save_playerH[15] = 272.5815
$862 = 0
$save_pickupX[16] = -693.3776
$save_pickupY[16] = 957.824
$save_pickupZ[16] = 11.7829
$save_playerX[16] = -700.3663
$save_playerY[16] = 966.0852
$save_playerZ[16] = 11.3575
$save_playerH[16] = 90.0
$863 = 0
$save_pickupX[17] = 2024.564
$save_pickupY[17] = 996.4728
$save_pickupZ[17] = 10.3203
$save_playerX[17] = 2027.043
$save_playerY[17] = 996.0585
$save_playerZ[17] = 9.9203
$save_playerH[17] = 275.516
$864 = 0
$grove_save_pickup[0] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[0], $save_pickupY[0], $save_pickupZ[0])
$grove_save_pickup[1] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[1], $save_pickupY[1], $save_pickupZ[1])
$grove_save_pickup[2] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[2], $save_pickupY[2], $save_pickupZ[2])
$grove_save_pickup[3] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[3], $save_pickupY[3], $save_pickupZ[3])
$grove_save_pickup[4] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[4], $save_pickupY[4], $save_pickupZ[4])
$grove_save_pickup[5] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[5], $save_pickupY[5], $save_pickupZ[5])
$grove_save_pickup[6] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[6], $save_pickupY[6], $save_pickupZ[6])
$grove_save_pickup[7] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[7], $save_pickupY[7], $save_pickupZ[7])
$grove_save_pickup[8] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[8], $save_pickupY[8], $save_pickupZ[8])
$grove_save_pickup[9] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[9], $save_pickupY[9], $save_pickupZ[9])
$grove_save_pickup[10] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[10], $save_pickupY[10], $save_pickupZ[10])
$grove_save_pickup[11] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[11], $save_pickupY[11], $save_pickupZ[11])
$grove_save_pickup[12] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[12], $save_pickupY[12], $save_pickupZ[12])
$save_index = 0
$kickX = 1099.551
$kickY = 1601.497
$kickZ = 11.5546
$bloodX = -2120.042
$bloodY = -444.2838
$bloodZ = 34.5312
$hotringX = 2695.624
$hotringY = -1704.688
$hotringZ = 10.8437
$stadium_blip1 = Blip.AddShortRangeSpriteForContactPoint($kickX, $kickY, $kickZ, RadarSprite.Race)
$stadium_blip2 = Blip.AddShortRangeSpriteForContactPoint($bloodX, $bloodY, $bloodZ, RadarSprite.Race)
$stadium_blip3 = Blip.AddShortRangeSpriteForContactPoint($hotringX, $hotringY, $hotringZ, RadarSprite.Race)
$lowrideX = 2644.441
$lowrideY = -2012.558
$lowrideZ = 12.5469
if 
  6 > $fire_temp_counter
goto_if_false @INITIAL_6005
$fire_la_levels_completed($fire_temp_counter,6i) = 0
$fire_sf_levels_completed($fire_temp_counter,6i) = 0
$fire_vg_levels_completed($fire_temp_counter,6i) = 0

:INITIAL_6005
$fire_total_la_completed = 0
$fire_total_sf_completed = 0
$fire_total_vg_completed = 0
$fire_total_levels_completed = 0
$fire_people_created = 0
$burglary_total_made = 0
$burglary_total_items = 0
$player_in_otb_flag = 0
$pros_active = 0
$flag_end_guy_audio_crash4 = 0
$triathalon_selection = 1
$flag_triathalon_passed_1stime = 0
$flag_cycling_skill_help = 0
$flag_mtbike_passed_1stime = 0
$flag_dozer_passed_1stime = 0
$flag_dumper_passed_1stime = 0
$current_highest_score_kickstart = 25
$flag_is_farlie3_running = 0
$mtbikerace_selection = 1
$failed_cesar_race = 0
$flag_stage_of_bcesar_race = 0
$flag_shooting_range_mission = 0
$Srange_X[0] = 292.33
$Srange_Y[0] = -35.39
$Srange_Z[0] = 1000.5
$Srange_X[1] = 289.4804
$Srange_Y[1] = -79.6619
$Srange_Z[1] = 1001.727
$Srange_X[2] = 309.9744
$Srange_Y[2] = -135.3927
$Srange_Z[2] = 1002.826
$Srange_X[3] = 306.8972
$Srange_Y[3] = -164.9947
$Srange_Z[3] = 1000.259
$val_Area = 0
$force_valet_cleanup = 0
$valet_mission_completed = 0
$bball_unlocked = 0
$zero_revenue = 5000
$import_export_is_active = 0
$player_is_in_crane = 0
$reset_crane_camera = 0
$disable_crane = 1
$disable_crane_exit = 0
$finish_crane_loading_script = 0
$remove_player_from_crane = 0
$disable_crane_slide = 0
$disable_crane_rotate = 0
$disable_manual_control = 0
$magno_camera_type = 0
$sw6_mission_attempts = 0
$g_Quarry_CashPickupValueKM = 2000
$g_Truck_CashPickupValueKM = 2000
$showroom_revenue = 8000
$strap4_mission_passed_once_flag = 0
$flag_had_taxi_jump_help = 0
$flag_catcutscene_counter = 0
$flag_otb_robbing_peds_panic = 0
$nascar_best_lap_time = 999999
$nascar_best_time = 999999
$best_nascar_result = 999999
$mission_trigger_wait_time = 250
$one_sixteenth = 0.0625
set_var_float_to_var_float $one_thirtysecond = $one_sixteenth
$one_thirtysecond /= 2.0
set_var_float_to_var_float $one_sixtyfourth = $one_thirtysecond
$one_sixtyfourth /= 2.0
$recording = 0
$stop_gargae_for_neil = 1
$bmx_1_x = -425.0
$bmx_1_y = 1410.0
$bmx_1_z = 10.0
$race1_best_position_airrace = 99999999
$race1_best_time_airrace = 99999999
$race2_best_position_airrace = 99999999
$race2_best_time_airrace = 99999999
$race3_best_position_airrace = 99999999
$race3_best_time_airrace = 99999999
$race4_best_position_airrace = 99999999
$race4_best_time_airrace = 99999999
$race5_best_position_airrace = 99999999
$race5_best_time_airrace = 99999999
$race6_best_position_airrace = 99999999
$race6_best_time_airrace = 99999999
$done_race1_progress_airrace = 0
$done_race2_progress_airrace = 0
$done_race3_progress_airrace = 0
$done_race4_progress_airrace = 0
$done_race5_progress_airrace = 0
$done_race6_progress_airrace = 0
$pilot_test_passed = 0
$driving_test_passed = 0
$f1_the360_best_score = 0
$f1_the180_best_score = 0
$f1_the90_best_score = 0
$f1_spinrightgo_best_score = 0
$f1_spinleftgo_best_score = 0
$f1_burnlapright_best_score = 0
$f1_burnlapleft_best_score = 0
$f1_popcontrol_best_score = 0
$f1_cityslicking_best_score = 0
$f1_whiprightterminate_best_score = 0
$f1_whipleftterminate_best_score = 0
$f1_alleyoop_best_score = 0
$f1_wheelieweave_best_score = 0
$f1_pittechnique_best_score = 0
$f1_conecoilright_best_score = 0
$f1_conecoilleft_best_score = 0
$f1_which_missions_are_open_flag = 0
$blood_attempt = 1
$blood_passed_once = 0
$d5_best_scores[0] = 0
$d5_best_scores[1] = 0
$d5_best_scores[2] = 0
$d5_best_scores[3] = 0
$d5_best_scores[4] = 0
$d5_best_scores[5] = 0
$d5_best_scores[6] = 0
$d5_best_scores[7] = 0
$d5_best_scores[8] = 0
$d5_best_scores[9] = 0
$d5_total_missions_open = 1
$d5_last_played = 1
$d5_watched_first_cutscene = 0
$d5_pilot_licence_obtained = 0
$d5_bronze_generator_unlocked = 0
$d5_silver_generator_unlocked = 0
$d5_gold_generator_unlocked = 0
$d5_bronze_generator = CarGenerator.Create(325.12, 2537.1, 17.52, 180.0, 476, -1, -1, True, 0, 0, 0, 10000)
$d5_silver_generator = CarGenerator.Create(348.0, 2537.1, 17.42, 180.0, 513, -1, -1, True, 0, 0, 0, 10000)
$d5_gold_generator = CarGenerator.Create(365.51, 2537.1, 17.42, 180.0, 425, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($d5_bronze_generator, 0)
CarGenerator.Switch($d5_silver_generator, 0)
CarGenerator.Switch($d5_gold_generator, 0)
$boat_which_missions_are_open_flag = 1
$boat_accelerate_best_score = 60000
$boat_simplecircuit_best_score = 80000
$boat_slalom_best_score = 180000
$boat_skijump_best_score = 10
$boat_hover_best_score = 200000
$boat_cut_watched = 0
$boat_passed_once = 0
$boat_accelerate_bronzeachieved = 0
$boat_accelerate_silverachieved = 0
$boat_accelerate_goldachieved = 0
$boat_simplecircuit_bronzeachieved = 0
$boat_simplecircuit_silverachieved = 0
$boat_simplecircuit_goldachieved = 0
$boat_slalom_bronzeachieved = 0
$boat_slalom_silverachieved = 0
$boat_slalom_goldachieved = 0
$boat_skijump_bronzeachieved = 0
$boat_skijump_silverachieved = 0
$boat_skijump_goldachieved = 0
$boat_hover_bronzeachieved = 0
$boat_hover_silverachieved = 0
$boat_hover_goldachieved = 0
$boat_bronze_rewardgiven = 0
$boat_silver_rewardgiven = 0
$boat_gold_rewardgiven = 0
$boat_bronze_generator = CarGenerator.Create(-2227.104, 2445.776, 0.0, 229.3771, 484, -1, -1, True, 0, 0, 0, 10000)
$boat_silver_generator = CarGenerator.Create(-2223.873, 2409.866, 0.0, 49.0555, 446, -1, -1, True, 0, 0, 0, 10000)
$boat_gold_generator = CarGenerator.Create(-2247.836, 2425.675, 0.0, 220.2123, 493, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($boat_bronze_generator, 0)
CarGenerator.Switch($boat_silver_generator, 0)
CarGenerator.Switch($boat_gold_generator, 0)
$pimp_passed_once = 0
$courierLA_passed_once = 0
$courierLV_passed_once = 0
$courierSF_passed_once = 0
$courierLA_revenue = 2000
$courierSF_revenue = 2000
$courierLV_revenue = 2000
$ca3_driven_to_factory = 0
$bs_passed = 0
$flag_trailor_cutscene = 0
$bs_open_tests = 0
$bs_wheelie_best_score = 0
$bs_stoppie_best_score = 0
$bs_the360_best_score = 0
$bs_the180_best_score = 0
$bs_jumpstop_best_score = 0
$bs_jumpstoppie_best_score = 0
$bs_the360_bronzeachieved = 0
$bs_the360_silverachieved = 0
$bs_the360_goldachieved = 0
$bs_the180_bronzeachieved = 0
$bs_the180_silverachieved = 0
$bs_the180_goldachieved = 0
$bs_wheelie_bronzeachieved = 0
$bs_wheelie_silverachieved = 0
$bs_wheelie_goldachieved = 0
$bs_jumpstop_bronzeachieved = 0
$bs_jumpstop_silverachieved = 0
$bs_jumpstop_goldachieved = 0
$bs_stoppie_bronzeachieved = 0
$bs_stoppie_silverachieved = 0
$bs_stoppie_goldachieved = 0
$bs_jumpstoppie_bronzeachieved = 0
$bs_jumpstoppie_silverachieved = 0
$bs_jumpstoppie_goldachieved = 0
$bs_bronze_rewardgiven = 0
$bs_silver_rewardgiven = 0
$bs_gold_rewardgiven = 0
$bs_bronze_generator = CarGenerator.Create(1174.76, 1364.832, 10.1203, 280.0355, 463, -1, -1, True, 0, 0, 0, 10000)
$bs_silver_generator = CarGenerator.Create(1174.999, 1366.479, 10.1203, 282.2258, 521, -1, -1, True, 0, 0, 0, 10000)
$bs_gold_generator = CarGenerator.Create(1174.467, 1368.359, 10.1203, 283.0546, 522, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($bs_bronze_generator, 0)
CarGenerator.Switch($bs_silver_generator, 0)
CarGenerator.Switch($bs_gold_generator, 0)
$bce2_played = 0
$recreate_tplay_pickup = 0
$start_the_bcesar_race = 0
$respect_help_played = 0
$flag_bce2_passed_1stime = 0
$flag_syn1_passed_1stime = 0
$flag_cas1_passed_1stime = 0
$flag_bikeschool_passed_1stime = 0
$flag_shtr_passed_1stime = 0
$flag_grav_passed_1stime = 0
$flag_on_courier_mission = 0
$flag_syn1_skip1 = 0
$flag_syn1_skip2 = 0
$flag_bcr1_skip = 0
$statbikestamina_ctr = 0.0
$statbikelowmuscle_ctr = 0.0
$statbike_temp = 0.0
$stattreadstamina_ctr = 0.0
$stattreadlowmuscle_ctr = 0.0
$stattread_temp = 0.0
$trigger_final_LA1_missions = 0
$on_footX = 1.5
$on_footY = 1.5
$on_footZ = 3.0
$in_carX = 4.0
$in_carY = 4.0
$in_carZ = 4.0
$traceX[0] = 1766.134
$traceY[0] = -1704.228
$traceZ[0] = 12.4731
$traceX[1] = -1922.922
$traceY[1] = 282.7151
$traceZ[1] = 40.0391
$traceX[2] = 1636.916
$traceY[2] = 912.9478
$traceZ[2] = 9.689
$traceX[3] = 1701.69
$traceY[3] = 1649.193
$traceZ[3] = 9.6296
$menu_mode = 0
$cprace_best_position[0] = 999999999
$cprace_best_position[1] = 999999999
$cprace_best_position[2] = 999999999
$cprace_best_position[3] = 999999999
$cprace_best_position[4] = 999999999
$cprace_best_position[5] = 999999999
$cprace_best_position[6] = 999999999
$cprace_best_position[7] = 999999999
$cprace_best_position[8] = 999999999
$cprace_best_position[9] = 999999999
$cprace_best_position[10] = 999999999
$cprace_best_position[11] = 999999999
$cprace_best_position[12] = 999999999
$cprace_best_position[13] = 999999999
$cprace_best_position[14] = 999999999
$cprace_best_position[15] = 999999999
$cprace_best_position[16] = 999999999
$cprace_best_position[17] = 999999999
$cprace_best_position[18] = 999999999
$cprace_best_position[19] = 999999999
$cprace_best_position[20] = 999999999
$cprace_best_position[21] = 999999999
$cprace_best_position[22] = 999999999
$cprace_best_position[23] = 999999999
$cprace_best_position[24] = 999999999
$cprace_best_position[25] = 999999999
$cprace_best_position[26] = 999999999
$cprace_best_position[27] = 999999999
$cprace_best_position[28] = 999999999
$cprace_best_position[29] = 999999999
$cprace_best_times[0] = 999999999
$cprace_best_times[1] = 999999999
$cprace_best_times[2] = 999999999
$cprace_best_times[3] = 999999999
$cprace_best_times[4] = 999999999
$cprace_best_times[5] = 999999999
$cprace_best_times[6] = 999999999
$cprace_best_times[7] = 999999999
$cprace_best_times[8] = 999999999
$cprace_best_times[9] = 999999999
$cprace_best_times[10] = 999999999
$cprace_best_times[11] = 999999999
$cprace_best_times[12] = 999999999
$cprace_best_times[13] = 999999999
$cprace_best_times[14] = 999999999
$cprace_best_times[15] = 999999999
$cprace_best_times[16] = 999999999
$cprace_best_times[17] = 999999999
$cprace_best_times[18] = 999999999
$cprace_best_times[19] = 999999999
$cprace_best_times[20] = 999999999
$cprace_best_times[21] = 999999999
$cprace_best_times[22] = 999999999
$cprace_best_times[23] = 999999999
$cprace_best_times[24] = 999999999
$cprace_best_times[25] = 999999999
$cprace_best_times[26] = 999999999
$cprace_best_times[27] = 999999999
$cprace_best_times[28] = 999999999
$cprace_best_times[29] = 999999999
$cprace_best_lap_times[0] = 999999999
$cprace_best_lap_times[1] = 999999999
$cprace_best_lap_times[2] = 999999999
$cprace_best_lap_times[3] = 999999999
$cprace_best_lap_times[4] = 999999999
$cprace_best_lap_times[5] = 999999999
$cprace_best_lap_times[6] = 999999999
$cprace_best_lap_times[7] = 999999999
$cprace_best_lap_times[8] = 999999999
$cprace_best_lap_times[9] = 999999999
$cprace_best_lap_times[10] = 999999999
$cprace_best_lap_times[11] = 999999999
$cprace_best_lap_times[12] = 999999999
$cprace_best_lap_times[13] = 999999999
$cprace_best_lap_times[14] = 999999999
$cprace_best_lap_times[15] = 999999999
$cprace_best_lap_times[16] = 999999999
$cprace_best_lap_times[17] = 999999999
$cprace_best_lap_times[18] = 999999999
$cprace_best_lap_times[19] = 999999999
$cprace_best_lap_times[20] = 999999999
$cprace_best_lap_times[21] = 999999999
$cprace_best_lap_times[22] = 999999999
$cprace_best_lap_times[23] = 999999999
$cprace_best_lap_times[24] = 999999999
$cprace_best_lap_times[25] = 999999999
$cprace_best_lap_times[26] = 999999999
$cprace_best_lap_times[27] = 999999999
$cprace_best_lap_times[28] = 999999999
$cprace_best_lap_times[29] = 999999999
$got_race_made_progress[0] = 0
$got_race_made_progress[1] = 0
$got_race_made_progress[2] = 0
$got_race_made_progress[3] = 0
$got_race_made_progress[4] = 0
$got_race_made_progress[5] = 0
$got_race_made_progress[6] = 0
$got_race_made_progress[7] = 0
$got_race_made_progress[8] = 0
$got_race_made_progress[9] = 0
$got_race_made_progress[10] = 0
$got_race_made_progress[11] = 0
$got_race_made_progress[12] = 0
$got_race_made_progress[13] = 0
$got_race_made_progress[14] = 0
$got_race_made_progress[15] = 0
$got_race_made_progress[16] = 0
$got_race_made_progress[17] = 0
$got_race_made_progress[18] = 0
$got_race_made_progress[19] = 0
$got_race_made_progress[20] = 0
$got_race_made_progress[21] = 0
$got_race_made_progress[22] = 0
$got_race_made_progress[23] = 0
$got_race_made_progress[24] = 0
$got_race_made_progress[25] = 0
$got_race_made_progress[26] = 0
$got_race_made_progress[27] = 0
$got_race_made_progress[28] = 0
$got_race_made_progress[29] = 0
$total_races_completed = 0
$got_race_mission_complete = 0
$disable_mod_garage = 0
$flag_airrace_mission_passed = 0
$been_in_a_coastguard_before = 0
$flag_player_on_coastguard_mission = 0
$catX = 868.3358
$catY = -29.5529
$catZ = 62.3276
$507 = 257.5389
$513 = -77.23
$519 = 1.3678
$508 = 2297.78
$514 = -16.83
$520 = 26.29
$509 = 652.17
$515 = -559.75
$521 = 15.15
$510 = 1294.09
$516 = 267.78
$522 = 18.54
$511 = 681.595
$517 = -478.7909
$523 = 15.3281
$cat_liquor_banter = 0
$cat_otb_banter = 0
$cat_counter = 0
$flag_cat_mission1_passed = 0
$flag_cat_mission2_passed = 0
$flag_cat_mission3_passed = 0
$flag_cat_mission4_passed = 0
$pilotx = 415.55
$piloty = 2533.57
$pilotz = 19.18
$hm5_car_gen = CarGenerator.Create(383.178, 2538.891, 16.53, 180.0, 417, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($hm5_car_gen, 0)
$introX = 2495.214
$introY = -1687.03
$introZ = 12.5144
$sweetX = 2515.07
$sweetY = -1673.98
$sweetZ = 12.71
$ryderX = 2459.55
$ryderY = -1687.75
$ryderZ = 12.56
$smokeX = 2070.87
$smokeY = -1703.01
$smokeZ = 12.55
$strapX = 790.54
$strapY = -1627.91
$strapZ = 12.39
$strap2X = 2486.61
$strap2Y = -1649.42
$strap2Z = 12.48
$cesarX = 1801.08
$cesarY = -2117.92
$cesarZ = 12.56
$crashX = 1042.85
$crashY = -1338.62
$crashZ = 12.55
$bcrashX = -2043.34
$bcrashY = -2525.99
$bcrashZ = 29.62
$truthX = -922.5121
$truthY = -1719.395
$truthZ = 76.5703
$truth2X = -2198.87
$truth2Y = -2261.202
$truth2Z = 29.6419
$bcesarX = 1552.78
$bcesarY = 39.3031
$bcesarZ = 23.1445
$wuziX = -2154.208
$wuziY = 645.3251
$wuziZ = 51.3516
$syndX = -2623.497
$syndY = 1405.66
$syndZ = 6.1016
$stealX = -2031.261
$stealY = 179.2488
$stealZ = 27.8359
$zeroX = -2245.663
$zeroY = 128.8889
$zeroZ = 34.3203
$scrashX = -2030.402
$scrashY = 148.8279
$scrashZ = 27.8359
$garageX = -2030.402
$garageY = 148.8279
$garageZ = 27.8359
$testsX = -2026.811
$testsY = -114.9093
$testsZ = 1034.179
$desertX = -685.2156
$desertY = 923.2191
$desertZ = 11.1531
$desert2X = 327.448
$desert2Y = 2530.095
$desert2Z = 15.8066
$casinoX = 1962.432
$casinoY = 974.675
$casinoZ = 993.4688
$TheheistX = 1962.398
$TheheistY = 1060.962
$TheheistZ = 993.4688
$heistX = 2270.634
$heistY = 1635.599
$heistZ = 1007.367
$vcrashX = 1598.557
$vcrashY = 2667.83
$vcrashZ = 9.8203
$docX = 2090.0
$docY = 1451.0
$docZ = 9.8
$mansionX = 1253.788
$mansionY = -785.2594
$mansionZ = 91.0313
$groveX = 2496.06
$groveY = -1687.96
$groveZ = 12.53
$chickX = -299.6
$chickY = 1530.4
$chickZ = 74.7
$shooter1X = 1498.7
$shooter1Y = -1631.9
$shooter1Z = 14.0
$gravX = 1505.7
$gravY = -1631.9
$gravZ = 14.0
$spaceX = 1512.7
$spaceY = -1631.9
$spaceZ = 14.0
$RouletteX = 1960.898
$RouletteY = 1008.406
$RouletteZ = 991.4745
$pimpX = 1918.988
$pimpY = -1789.324
$pimpZ = 12.5
$hitchX = -1563.768
$hitchY = 2690.873
$hitchZ = 54.6985
$otbX = 828.77
$otbY = 4.71
$otbZ = 1003.17
$wheeloX = 1494.3
$wheeloY = -1644.6
$wheeloZ = 14.0
$blackjackX = 1489.5
$blackjackY = -1674.2
$blackjackZ = 12.5
$driving_schoolx = -2132.45
$driving_schooly = -47.0
$driving_schoolz = 35.3
$basketballx = 2323.97
$basketbally = -1517.04
$basketballz = 24.32
$limox = 1979.1
$limoy = -1996.1
$limoz = 12.4
$directorx = 862.9
$directory = -1154.8
$directorz = 23.0
$valetx = -1758.877
$valety = 952.744
$valetz = 23.7487
$banditx = 2258.523
$bandity = 1613.25
$banditz = 1005.188
$flag_courier_mission_passed = 0
$flag_courier_trigger = 0
$cour1X = 1359.45
$cour1Y = -1755.0
$cour1Z = 12.85
$cour2X = -2590.44
$cour2Y = 73.21
$cour2Z = 3.91
$cour3X = 1887.79
$cour3Y = 2087.39
$cour3Z = 10.05
$quarryX = 823.6816
$quarryY = 854.1741
$quarryZ = 10.7949
$mountbX = -2309.23
$mountbY = -1651.22
$mountbZ = 483.09
$carcraneX = -1517.903
$carcraneY = 153.7578
$carcraneZ = 2.7813
$demoX = 2705.172
$demoY = -1698.127
$demoZ = 10.8515
$poolX = 1134.0
$poolY = -7.0
$poolZ = 1001.0
$boatsX = -2187.378
$boatsY = 2416.552
$boatsZ = 4.166
$bikesX = 1173.877
$bikesY = 1351.037
$bikesZ = 9.9219
$truckX = -77.6456
$truckY = -1136.401
$truckZ = 0.0781
$danceX = -2645.23
$danceY = 1413.3
$danceZ = -92.69
$kill2pX = -2325.37
$kill2pY = -131.655
$kill2pZ = 34.3
$bike_2pX = 563.78
$bike_2pY = 2725.14
$bike_2pZ = 60.49
$cars_2pX = 424.657
$cars_2pY = -1439.674
$cars_2pZ = 30.341
$heli_2pX = 1681.19
$heli_2pY = -1433.31
$heli_2pZ = 12.53
$peds_2pX = 1576.734
$peds_2pY = -1609.741
$peds_2pZ = 12.3828
$run_2pX = 2831.243
$run_2pY = -1674.637
$run_2pZ = 8.9732
$demo_2pX = 2668.769
$demo_2pY = -1753.973
$demo_2pZ = 10.8515
$tagX = -2338.5
$tagY = -109.01
$tagZ = 34.36
$boxingX = 764.4572
$boxingY = 2.745
$boxingZ = 999.7153
$surviveX = 2747.055
$surviveY = -1691.208
$surviveZ = 10.8515
$sumoX = 2694.246
$sumoY = -1706.007
$sumoZ = 10.8556
$played_cut1_before_crash4 = 0
$played_cut2_before_crash4 = 0
$created_save_blips = 0
$switch_the_gym_interiors_off = 0
$area_to_look_at_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$price_counter = 0
$cost_menu_drawn_shops = 0
$main_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$area_looked_for_shops = 0
$item_no_shops = 0
$temp_var_shops = 0
$flag_on_neil_lowrider_mission = 0
$flag_bought_from_binco = 0
$flag_bought_from_prolapse = 0
$flag_bought_from_suburban = 0
$flag_bought_from_zip = 0
$flag_bought_from_victim = 0
$flag_bought_from_didiessachs = 0
$flag_player_got_gimp_suit = 0
$flag_player_got_valet_uniform = 0
$flag_player_got_casino_uniform = 0
$flag_player_got_police_uniform = 0
$flag_player_got_country_clothes = 0
$flag_got_mechanic_clothes = 0
$flag_got_medic_clothes = 0
$flag_got_pimp_clothes = 0
$flag_6weapons_open = 0
$flag_7weapons_open = 0
$flag_8weapons_open = 0
$flag_9weapons_open = 0
$flag_10weapons_open = 0
$flag_11weapons_open = 0
$flag_12weapons_open = 0
$flag_13weapons_open = 0
$flag_14weapons_open = 0
$flag_15weapons_open = 0
$flag_16weapons_open = 0
$flag_bought_gun_for_doberman = 0
$flag_on_doberman_mission = 0
$flag_gang_war_active = 0
$spray_shop1 = Blip.AddShortRangeSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
$spray_shop2 = Blip.AddShortRangeSpriteForCoord(488.0, -1734.0, 34.4, RadarSprite.Spray)
$spray_shop4 = Blip.AddShortRangeSpriteForCoord(720.016, -454.625, 15.328, RadarSprite.Spray)
$2648 = Blip.AddShortRangeSpriteForCoord(-1420.547, 2583.945, 58.031, RadarSprite.Spray)
$spray_shop = Blip.AddShortRangeSpriteForCoord(1966.532, 2162.65, 10.995, RadarSprite.Spray)
$2650 = Blip.AddShortRangeSpriteForCoord(-2425.46, 1020.83, 49.39, RadarSprite.Spray)
$2651 = Blip.AddShortRangeSpriteForCoord(1021.8, -1018.7, 30.9, RadarSprite.Spray)
$2652 = Blip.AddShortRangeSpriteForCoord(-1908.9, 292.3, 40.0, RadarSprite.Spray)
$2653 = Blip.AddShortRangeSpriteForCoord(-103.6, 1112.4, 18.7, RadarSprite.Spray)
$2654 = 0
$added_all_food_blips_before = 0
Garage.Deactivate('CN2GAR2')
Restart.AddHospital(2027.77, -1420.52, 15.99, 137.0, Town.LS)
Restart.AddHospital(1180.85, -1325.57, 12.58, 271.4, Town.LS)
Restart.AddPolice(1550.68, -1675.49, 14.51, 90.0, Town.LS)
Restart.AddHospital(1244.437, 331.2261, 18.5547, 7.5465, Town.SF)
Restart.AddPolice(632.2344, -571.7104, 15.3515, 267.2, Town.SF)
Restart.AddHospital(-2199.719, -2308.075, 29.6181, 322.8928, Town.SF)
Restart.AddPolice(-2163.829, -2387.817, 29.625, 134.2066, Town.SF)
Restart.AddHospital(-2670.285, 616.4364, 13.4531, 183.1042, Town.SF)
Restart.AddPolice(-1605.792, 716.8598, 11.0241, 355.2978, Town.SF)
Restart.AddHospital(-316.3832, 1056.045, 18.7344, 1.6017, Town.LV)
Restart.AddPolice(-212.1889, 979.4168, 18.3219, 278.0478, Town.LV)
Restart.AddHospital(-1514.823, 2527.119, 54.7443, 2.3546, Town.LV)
Restart.AddPolice(-1393.072, 2633.116, 54.9491, 86.0424, Town.LV)
Restart.AddHospital(1578.446, 1770.682, 9.8358, 99.7567, Town.LV)
Restart.AddPolice(2337.083, 2453.802, 13.9765, 90.7643, Town.LV)
World.AddStuntJump(1939.136, -1968.052, 17.6649, 2.5, 2.728, 3.17, 1989.958, -1971.951, 28.7249, 11.134, 5.398, 7.23, 1960.545, -1963.571, 25.3229, 500)
World.AddStuntJump(2209.275, -1843.686, 19.0964, 2.5, 4.28, 3.83, 2215.124, -1889.359, 17.7864, 15.36, 7.01, 11.05, 2203.34, -1861.524, 21.8367, 500)
World.AddStuntJump(1177.215, -1696.761, 21.368, 2.22, 2.5, 5.1, 1177.972, -1626.719, 32.8079, 18.2, 7.23, 12.36, 1182.92, -1659.431, 29.1115, 500)
World.AddStuntJump(2278.29, -1357.857, 31.3255, 2.5, 2.5, 3.96, 2275.299, -1310.756, 30.9555, 10.69, 2.5, 9.36, 2271.681, -1331.282, 32.6621, 500)
World.AddStuntJump(2335.351, -2163.947, 18.5147, 3.52, 2.5, 3.44, 2344.419, -2178.703, 24.2546, 15.64, 3.05, 11.96, 2336.89, -2190.321, 22.4292, 500)
World.AddStuntJump(2825.933, -1582.66, 18.126, 2.5, 4.22, 4.92, 2787.504, -1569.318, 27.776, 2.704, 19.16, 14.15, 2805.121, -1579.892, 20.7985, 500)
World.AddStuntJump(2460.177, -2567.911, 18.8162, 2.5, 2.5, 3.65, 2464.206, -2597.455, 25.8862, 8.89, 0.82, 6.26, 2454.878, -2593.787, 23.9707, 500)
World.AddStuntJump(1832.453, -2386.805, 17.9247, 2.5, 2.5, 3.01, 1833.612, -2372.385, 17.9247, 6.57, 0.5, 6.65, 1840.288, -2367.095, 19.4731, 500)
World.AddStuntJump(1839.745, -2514.477, 16.1769, 2.5, 2.34, 2.77, 1921.679, -2517.896, 20.6069, 2.512, 6.42, 8.6999, 1879.752, -2529.894, 22.7841, 500)
World.AddStuntJump(2634.397, -2107.984, 17.0887, 4.172, 2.5, 5.06, 2595.646, -2109.055, 25.7387, 9.592, 4.178, 6.1, 2608.7, -2117.174, 21.6272, 500)
World.AddStuntJump(2352.3, -1259.068, 28.9962, 2.5, 2.5, 2.76, 2298.204, -1257.677, 28.7062, 2.62, 20.04, 9.96, 2312.838, -1265.614, 37.7793, 500)
World.AddStuntJump(1013.163, -1270.362, 24.4456, 2.0, 2.0, 4.05, 1045.359, -1273.475, 32.9636, 2.0, 14.304, 13.14, 1037.356, -1264.502, 25.3721, 500)
World.AddStuntJump(-973.357, -223.2307, 53.3717, 5.35, 29.1299, 15.98, -1116.028, -211.0103, 30.6016, 49.9398, 32.2599, 27.0399, -1038.667, -187.1254, 54.0, 500)
World.AddStuntJump(-2637.069, 780.3949, 50.0166, 6.76, 2.52, 9.29, -2639.577, 733.2753, 44.1565, 9.91, 2.52, 9.29, -2633.359, 757.9172, 52.0809, 500)
World.AddStuntJump(-2520.199, 1169.203, 59.5525, 6.54, 3.09, 5.97, -2520.199, 1202.12, 53.4025, 33.5399, 6.21, 17.66, -2513.778, 1193.925, 57.4115, 500)
World.AddStuntJump(-1794.982, 1211.612, 35.6794, 3.02, 2.58, 4.75, -1795.802, 1258.197, 32.5394, 19.51, 5.13, 19.69, -1797.49, 1238.395, 37.9679, 500)
World.AddStuntJump(-2659.551, 1533.67, 53.2004, 2.5, 2.62, 4.73, -2659.551, 1551.645, 45.5003, 7.26, 11.79, 18.54, -2658.426, 1531.631, 60.6476, 500)
World.AddStuntJump(-1690.662, 1110.392, 57.2776, 2.3, 2.98, 5.08, -1662.512, 1110.392, 57.2776, 2.3, 18.12, 12.26, -1649.676, 1114.14, 50.8559, 500)
World.AddStuntJump(-2145.461, -112.0259, 44.3452, 7.24, 3.3, 5.49, -2146.82, -89.4659, 54.3752, 4.36, 3.3, 14.28, -2141.051, -89.1471, 45.6462, 500)
World.AddStuntJump(-267.7739, 2662.036, 68.7405, 3.53, 4.02, 6.0, -237.1135, 2661.936, 79.7505, 7.28, 12.06, 8.14, -253.199, 2654.016, 72.7989, 500)
World.AddStuntJump(-249.6904, 2590.805, 66.1194, 3.68, 2.96, 3.96, -249.6904, 2575.325, 66.1194, 12.66, 5.21, 9.68, -256.2141, 2555.207, 64.5246, 500)
World.AddStuntJump(-871.5031, 2308.79, 164.5739, 3.39, 2.87, 4.86, -981.079, 2300.913, 111.7538, 18.77, 40.02, 69.5898, -905.3314, 2315.064, 163.7206, 500)
World.AddStuntJump(2073.713, 2366.653, 50.8534, 5.54, 3.45, 2.18, 2050.73, 2313.709, 31.8133, 29.69, 11.19, 26.09, 2077.486, 2318.872, 26.9287, 500)
World.AddStuntJump(2170.947, 2402.609, 62.2905, 2.78, 3.59, 3.62, 2183.67, 2402.609, 62.2905, 4.92, 9.2, 9.8, 2232.11, 2387.587, 50.9115, 500)
World.AddStuntJump(2418.056, 1353.234, 12.3641, 2.2, 5.014, 3.98, 2481.923, 1346.354, 25.664, 5.01, 19.984, 11.63, 2462.313, 1362.702, 19.7672, 500)
World.AddStuntJump(2407.308, 1364.379, 14.5734, 5.16, 2.72, 6.0, 2399.12, 1386.524, 25.4934, 18.57, 4.61, 11.62, 2412.772, 1392.431, 22.3043, 500)
World.AddStuntJump(2784.763, 2208.72, 15.1934, 3.05, 1.76, 4.33, 2738.984, 2208.72, 21.8434, 3.24, 24.23, 16.15, 2758.656, 2201.665, 18.3639, 500)
World.AddStuntJump(1482.383, 2037.004, 17.0576, 2.09, 2.69, 5.58, 1482.875, 2077.978, 23.8776, 3.284, 4.09, 7.07, 1489.125, 2065.024, 20.6514, 500)
World.AddStuntJump(1976.397, 2593.686, 17.2126, 3.67, 2.0, 5.44, 2041.191, 2593.686, 30.4425, 5.05, 32.8, 20.5, 2007.676, 2596.314, 28.1338, 500)
World.AddStuntJump(1636.264, 2399.712, 15.8903, 2.5, 2.5, 5.08, 1636.264, 2449.071, 15.8903, 21.33, 2.0, 13.95, 1642.17, 2440.29, 18.5118, 500)
World.AddStuntJump(2119.23, 2385.213, 33.7094, 2.1, 3.36, 2.6, 2151.891, 2385.601, 30.8958, 3.51, 13.42, 9.04, 2128.102, 2392.048, 32.2357, 500)
World.AddStuntJump(-2082.529, -2498.932, 33.9682, 2.34, 2.4, 3.55, -2110.031, -2479.709, 40.8882, 4.42, 4.08, 5.94, -2101.418, -2496.468, 37.1704, 500)
World.AddStuntJump(2112.408, 97.9, 39.993, 5.64, 10.28, 8.05, 2152.117, 91.33, 39.993, 14.95, 26.95, 16.22, 2149.933, 76.6566, 44.9509, 500)
World.AddStuntJump(-2100.413, -1743.595, 199.7312, 2.94, 4.27, 4.96, -2082.491, -1718.923, 199.7312, 10.8, 9.39, 17.62, -2096.167, -1714.572, 201.0246, 500)
World.AddStuntJump(-2287.671, -2800.779, 22.0541, 5.81, 13.66, 5.57, -2255.133, -2800.779, 22.0541, 12.56, 28.68, 14.69, -2253.319, -2814.645, 22.8247, 500)
World.AddStuntJump(110.8902, 2428.049, 23.7936, 3.58, 3.15, 4.2, 132.64, 2445.781, 32.7336, 4.38, 16.62, 15.35, 119.7758, 2449.64, 27.7167, 500)
World.AddStuntJump(-894.4963, 2693.199, 44.7303, 3.58, 2.63, 2.44, -941.4026, 2662.939, 55.7302, 29.14, 16.02, 19.74, -931.5991, 2647.995, 51.4501, 500)
World.AddStuntJump(89.9936, -243.2046, 7.5581, 3.96, 4.46, 4.48, 101.5435, -255.4345, 7.5581, 7.39, 11.31, 14.99, 87.0604, -266.0403, 9.8153, 500)
World.AddStuntJump(160.7991, -160.2479, 6.1453, 2.12, 1.452, 2.23, 171.8147, -162.405, 12.321, 2.0, 7.2, 7.18, 183.2545, -151.314, 13.5961, 500)
World.AddStuntJump(-72.3, 17.7, 8.4132, 2.81, 2.4, 4.48, -65.1154, 35.7188, 16.6432, 7.71, 2.0, 7.27, -70.4781, 55.8289, 15.0868, 500)
World.AddStuntJump(-39.7989, 53.3007, 6.9223, 3.15, 2.76, 2.35, -36.4289, 76.6106, 6.9223, 12.51, 4.48, 9.67, -42.5507, 77.3671, 7.8899, 500)
World.AddStuntJump(638.7504, -520.0714, 18.8519, 2.0, 2.15, 2.34, 639.8602, -545.0903, 22.7619, 10.97, 3.01, 8.26, 629.1661, -542.9603, 24.9594, 500)
World.AddStuntJump(1749.723, 779.6028, 13.4757, 1.68, 2.616, 2.164, 1749.723, 825.0914, 14.2657, 10.718, 2.616, 5.824, 1744.046, 799.4149, 12.6554, 500)
World.AddStuntJump(110.2446, -257.9929, 6.2739, 3.36, 3.32, 2.93, 92.4846, -245.6928, 11.0439, 8.43, 6.92, 3.99, 92.9552, -254.6195, 10.1539, 500)
World.AddStuntJump(2125.642, 95.2542, 37.3959, 3.83, 4.09, 2.57, 2098.51, 99.5841, 35.8559, 3.83, 8.46, 5.72, 2116.393, 88.0306, 40.2113, 500)
World.AddStuntJump(-344.6466, -9.8812, 44.9609, 14.26, 3.45, 3.8, -336.1166, 28.7688, 37.7609, 16.09, 4.55, 6.29, -358.2565, 15.6353, 41.7241, 500)
World.AddStuntJump(-2589.18, 1164.37, 59.8256, 2.84, 2.77, 2.23, -2567.125, 1231.183, 47.0362, 18.9, 9.04, 6.05, -2576.06, 1209.225, 53.549, 500)
World.AddStuntJump(-2292.044, 1097.71, 84.7347, 2.082, 2.074, 2.02, -2350.591, 1101.928, 64.1846, 4.522, 14.204, 9.03, -2323.731, 1106.665, 77.177, 500)
World.AddStuntJump(-2408.285, 723.2977, 38.6835, 2.62, 2.5, 1.69, -2408.285, 723.2977, 38.6835, 22.41, 2.58, 4.06, -2407.981, 716.5809, 38.4334, 500)
World.AddStuntJump(-2116.356, 925.6832, 87.819, 2.68, 1.99, 2.48, -2069.565, 925.433, 76.689, 2.68, 15.26, 14.46, -2085.629, 935.5674, 85.4677, 500)
World.AddStuntJump(-1903.192, 223.3468, 37.7965, 1.75, 1.84, 1.7, -1874.382, 223.3467, 42.4064, 1.75, 8.13, 4.67, -1897.039, 219.1329, 39.911, 500)
World.AddStuntJump(-1687.323, -162.201, 17.8603, 2.68, 3.19, 2.2, -1722.537, -126.391, 14.9903, 9.09, 7.13, 13.07, -1716.878, -142.6182, 14.6114, 500)
World.AddStuntJump(-1729.924, -364.5276, 18.2246, 2.268, 2.51, 2.148, -1777.487, -364.2776, 17.9446, 2.268, 15.33, 7.068, -1745.84, -355.4089, 14.2197, 500)
World.AddStuntJump(-1972.099, -543.0899, 38.9862, 1.96, 2.01, 1.77, -1912.318, -543.0899, 45.3462, 7.58, 14.78, 8.69, -1942.915, -539.1157, 40.2453, 500)
World.AddStuntJump(2770.214, -1177.477, 70.7527, 2.344, 1.99, 2.172, 2814.468, -1182.996, 55.7938, 5.94, 17.38, 31.52, 2766.031, -1184.692, 74.9193, 500)
World.AddStuntJump(2248.838, -2463.258, 15.1049, 5.18, 2.26, 2.59, 2247.468, -2432.427, 21.8068, 12.44, 2.26, 9.32, 2240.757, -2446.201, 16.8109, 500)
World.AddStuntJump(2248.832, -2627.623, 15.1806, 4.862, 2.144, 2.556, 2248.832, -2655.498, 21.2585, 8.68, 2.144, 8.498, 2237.695, -2650.768, 16.3791, 500)
World.AddStuntJump(2326.122, -1508.751, 27.0066, 2.242, 1.728, 2.08, 2286.813, -1508.732, 30.3748, 3.86, 9.38, 8.99, 2299.404, -1514.596, 29.8683, 500)
World.AddStuntJump(1623.574, -1110.956, 61.8178, 1.656, 2.014, 1.836, 1623.574, -1079.265, 61.8178, 17.246, 2.014, 22.1459, 1615.633, -1093.8, 64.8724, 500)
World.AddStuntJump(1679.646, -962.2209, 65.6737, 1.694, 2.49, 1.94, 1679.646, -988.7401, 65.6737, 13.124, 2.49, 16.74, 1683.881, -977.1464, 65.7485, 500)
World.AddStuntJump(1667.167, -992.8579, 32.7591, 6.32, 3.768, 2.48, 1675.805, -1008.297, 32.7591, 18.7479, 2.438, 9.79, 1689.156, -1013.63, 35.6715, 500)
World.AddStuntJump(347.0, -1662.299, 35.8218, 3.12, 2.65, 2.61, 351.6596, -1700.264, 35.8218, 19.91, 4.13, 29.76, 337.9746, -1676.993, 36.7335, 500)
World.AddStuntJump(743.1525, -1132.819, 25.7991, 1.834, 3.606, 2.35, 710.0014, -1132.989, 25.7991, 1.834, 11.096, 10.0, 717.1129, -1136.549, 25.5161, 500)
World.AddStuntJump(1395.562, -1460.566, 12.3906, 1.672, 1.97, 1.75, 1402.96, -1447.466, 17.7266, 10.062, 1.97, 5.15, 1395.023, -1450.836, 17.1621, 500)
World.AddStuntJump(1586.489, 312.8876, 23.9965, 2.15, 6.38, 1.99, 1540.208, 325.3573, 28.9665, 2.15, 32.8899, 11.37, 1562.912, 331.3251, 23.6496, 500)
World.AddStuntJump(2058.1, -2677.517, 15.4946, 3.1, 2.48, 2.6, 2009.261, -2677.517, 20.8946, 1.93, 16.5499, 11.26, 2036.566, -2685.281, 13.2053, 500)
World.AddStuntJump(586.0102, -1773.769, 15.2312, 2.0, 2.27, 1.78, 627.7189, -1781.119, 22.6912, 2.0, 7.06, 9.94, 598.5319, -1778.481, 17.0529, 500)
World.AddStuntJump(2172.078, 2430.507, 61.747, 2.12, 3.3, 2.35, 2191.592, 2436.304, 53.057, 2.5, 12.57, 25.22, 2227.234, 2436.885, 37.788, 500)
World.AddStuntJump(2176.133, 2268.196, 13.4683, 2.286, 1.934, 1.938, 2137.272, 2268.246, 16.7183, 2.286, 10.554, 6.458, 2148.601, 2264.892, 13.6634, 500)
World.AddStuntJump(-2213.773, -311.0786, 38.5339, 1.15, 3.04, 2.59, -2213.773, -327.8282, 44.6738, 10.374, 3.04, 5.93, -2215.977, -325.7729, 42.5119, 500)
$added_all_clothes_blips_before = 50
$init_ped_density = Object.CreateNoOffset(#TRDCSGRGDOOR_LVS, 1903.383, 967.62, 11.438)
Object.SetHeading($init_ped_density, 0.0)
Object.DontRemove($init_ped_density)
$fourdragons_door = Object.CreateNoOffset(#MD_POSTER, 2167.82, -1518.193, 20.237)
Object.SetHeading($fourdragons_door, 0.0)
Object.DontRemove($fourdragons_door)
$advert_f1 = Object.CreateNoOffset(#CR_DOOR_01, 2322.845, 8.304, 25.483)
Object.SetCollisionDamageEffect($advert_f1, False)
Object.FreezePosition($advert_f1, True)
$pc_door = Object.CreateNoOffset(#CR_DOOR_01, 2316.233, 0.712, 25.742)
Object.SetHeading($pc_door, 270.0)
Object.FreezePosition($pc_door, True)
Object.SetCollisionDamageEffect($pc_door, False)
$2661 = Object.CreateNoOffset(#CR_DOOR_03, 2304.257, -17.744, 25.742)
Object.FreezePosition($2661, True)
Object.SetCollisionDamageEffect($2661, False)
$2662 = Object.CreateNoOffset(#CR_DOOR_03, 2304.257, -14.583, 25.742)
Object.FreezePosition($2662, True)
Object.SetHeading($2662, 180.0)
Object.SetCollisionDamageEffect($2662, False)
$2663 = Object.CreateNoOffset(#SHUTTER_VEGAS, 1055.629, 2087.67, 12.469)
Object.DontRemove($2663)
$ca3_loadingbay = Object.Create(#CR1_DOOR, 2352.851, -1171.027, 26.9669)
Object.SetHeading($ca3_loadingbay, 90.0)
Object.SetDynamic($ca3_loadingbay, False)
Object.SetCollisionDamageEffect($ca3_loadingbay, False)
Object.SetProofs($ca3_loadingbay, True, True, True, True, True)
Object.DontRemove($ca3_loadingbay)
$g_BD_DOOR = Object.CreateNoOffset(#CT_GATEXR, -2179.353, 661.232, 50.214)
Object.SetCollisionDamageEffect($g_BD_DOOR, False)
Object.DontRemove($g_BD_DOOR)
$china_town_gate = Object.CreateNoOffset(#A51_BLASTDOORR, 215.941, 1874.571, 13.903)
Object.SetHeading($china_town_gate, 0.0)
$frontdoorr_a51 = Object.CreateNoOffset(#A51_BLASTDOORL, 211.842, 1874.571, 13.903)
Object.SetHeading($frontdoorr_a51, 0.0)
Object.DontRemove($china_town_gate)
Object.DontRemove($frontdoorr_a51)
$frontdoorl_a51 = Object.CreateNoOffset(#A51_LABDOOR, 297.766, 1842.618, 6.764)
Object.DontRemove($frontdoorl_a51)
$trapdoor_a51 = Object.Create(#A51_JETDOOR, 268.664, 1884.06, 15.925)
  Object.Rotate($trapdoor_a51, 90.0, 90.0, False)
Object.DontRemove($trapdoor_a51)
Garage.ChangeType('HBGDSFS', GarageType.ForScriptToOpenAndClose)
Garage.ChangeType('GHOSTDR', GarageType.ForScriptToOpenAndClose)
$2676[0] = -2108.0
$2682[0] = 155.0
$2688[0] = 34.0488
$2694[0] = 178.0
$2676[1] = -2089.0
$2682[1] = 172.0
$2688[1] = 34.0488
$2694[1] = 267.0
$2676[2] = -2069.0
$2682[2] = 229.0
$2688[2] = 35.0215
$2694[2] = 270.0
$2676[3] = -2077.0
$2682[3] = 271.0
$2688[3] = 33.7475
$2694[3] = 0.0
$2676[4] = -2096.0
$2682[4] = 261.0
$2688[4] = 34.5808
$2694[4] = 264.0
$2676[5] = -2129.0
$2682[5] = 306.0
$2688[5] = 33.7245
$2694[5] = 0.0
$2700 = 0

:INITIAL_19059
if 
  6 > $2700
goto_if_false @INITIAL_19159
$launchdoor_a51($2700,6i) = Object.Create(#PORTAKABIN, $2676($2700,6f), $2682($2700,6f), $2688($2700,6f))
Object.SetHeading($launchdoor_a51($2700,6i), $2694($2700,6f))
Object.SetDynamic($launchdoor_a51($2700,6i), False)
Object.DontRemove($launchdoor_a51($2700,6i))
$2700 += 1
goto @INITIAL_19059

:INITIAL_19159
$portakabin_num = Object.Create(#FREIGHT_SFW_DOOR, -2468.141, 1547.938, 22.7)
Object.DontRemove($portakabin_num)
$w5_storm_freighter_door = Object.CreateNoOffset(#AB_CASDORLOK, 2168.644, 1619.43, 1000.3)
Object.SetAreaVisible($w5_storm_freighter_door, 1)
Object.SetHeading($w5_storm_freighter_door, 270.0)
Object.DontRemove($w5_storm_freighter_door)
$h9_door_c = 0
$tw7_trip_skip_flag = 0
$2705 = Object.Create(#AD_FLATDOOR, 1833.36, -1995.45, 12.5)
Object.SetHeading($2705, 90.0)
Object.DontRemove($2705)
$riot2_door = Object.Create(#AD_FLATDOOR, 1819.81, -1994.66, 12.5)
Object.DontRemove($riot2_door)
$2707 = Object.Create(#AD_FLATDOOR, 1827.68, -1980.0, 12.5)
Object.SetHeading($2707, 270.0)
Object.DontRemove($2707)
$2708 = Object.Create(#AD_FLATDOOR, 1851.84, -1990.67, 12.5)
Object.DontRemove($2708)
$2709 = Object.Create(#AD_FLATDOOR, 1867.29, -1984.96, 12.5)
Object.SetHeading($2709, 270.0)
Object.DontRemove($2709)
$2710 = Object.Create(#AD_FLATDOOR, 1866.52, -1998.53, 12.5)
Object.SetHeading($2710, 90.0)
Object.DontRemove($2710)
$2711 = Object.Create(#AD_FLATDOOR, 1899.75, -1984.95, 12.5)
Object.SetHeading($2711, 270.0)
Object.DontRemove($2711)
$2712 = Object.Create(#AD_FLATDOOR, 1914.39, -1992.82, 12.5)
Object.SetHeading($2712, 180.0)
Object.DontRemove($2712)
$2713 = Object.Create(#AD_FLATDOOR, 1899.01, -1998.5, 12.5)
Object.SetHeading($2713, 90.0)
Object.DontRemove($2713)
$2714 = Object.Create(#AD_FLATDOOR, 1900.89, -2020.11, 12.5)
Object.DontRemove($2714)
$2715 = Object.Create(#AD_FLATDOOR, 1914.4, -2020.91, 12.5)
Object.SetHeading($2715, 180.0)
Object.DontRemove($2715)
$2716 = Object.Create(#AD_FLATDOOR, 1906.54, -2035.52, 12.5)
Object.SetHeading($2716, 90.0)
Object.DontRemove($2716)
$2717 = Object.Create(#AD_FLATDOOR, 1851.86, -2020.14, 12.5)
Object.DontRemove($2717)
$2718 = Object.Create(#AD_FLATDOOR, 1865.42, -2020.89, 12.5)
Object.SetHeading($2718, 180.0)
Object.DontRemove($2718)
$2719 = Object.Create(#AD_FLATDOOR, 1857.55, -2035.52, 12.5)
Object.SetHeading($2719, 90.0)
Object.DontRemove($2719)
$2720 = Object.CreateNoOffset(#IMY_SHASH_WALL, 2522.008, -1272.93, 35.609)
Object.SetCollisionDamageEffect($2720, False)
Object.FreezePosition($2720, True)
Object.DontRemove($2720)
$carterwall = Object.CreateNoOffset(#TWRCRANE_M_04, -2080.441, 256.015, 66.869)
Object.DontRemove($carterwall)
$sf_crane1_base = Object.CreateNoOffset(#TWRCRANE_M_01, -2080.441, 256.007, 99.408)
Object.DontRemove($sf_crane1_base)
$sf_crane1_arm = Object.CreateNoOffset(#TWRCRANE_M_02, -2080.441, 296.46, 102.861)
Object.DontRemove($sf_crane1_arm)
$x, $y, $z = Object.GetCoordinates($carterwall)
$heading = Object.GetHeading($carterwall)
$sf_crane1_trolley = Object.CreateNoOffset(#LODCRANE_M_04, $x, $y, $z)
Object.SetHeading($sf_crane1_trolley, $heading)
Object.DontRemove($sf_crane1_trolley)
$x, $y, $z = Object.GetCoordinates($sf_crane1_base)
$heading = Object.GetHeading($sf_crane1_base)
$sf_crane1_base_LOD = Object.CreateNoOffset(#LODCRANE_M_01, $x, $y, $z)
Object.SetHeading($sf_crane1_base_LOD, $heading)
Object.DontRemove($sf_crane1_base_LOD)
Object.ConnectLods($carterwall, $sf_crane1_trolley)
Object.ConnectLods($sf_crane1_base, $sf_crane1_base_LOD)
$sf_crane1_arm_LOD = Object.CreateNoOffset(#MAGNOCRANE_01, -1547.978, 123.9883, 26.9332)
Object.SetHeading($sf_crane1_arm_LOD, 45.0)
Object.DontRemove($sf_crane1_arm_LOD)
$x, $y, $z = Object.GetOffsetInWorldCoords($sf_crane1_arm_LOD, 0.0, 0.0, 0.0)
$magno_base = Object.CreateNoOffset(#MAGNOCRANE_02, $x, $y, $z)
Object.DontRemove($magno_base)
Object.SetHeading($magno_base, 140.0)
$x, $y, $z = Object.GetOffsetInWorldCoords($magno_base, 0.0, -2.185, 8.51)
$heading = Object.GetHeading($magno_base)
$magno_cabin = Object.CreateNoOffset(#MAGNOCRANE_03, $x, $y, $z)
Object.SetRotation($magno_cabin, 15.0, 0.0, $heading)
Object.DontRemove($magno_cabin)
$x, $y, $z = Object.GetCoordinates($sf_crane1_arm_LOD)
$heading = Object.GetHeading($sf_crane1_arm_LOD)
$magno_arm = Object.CreateNoOffset(#LODNOCRANE_01, $x, $y, $z)
Object.SetHeading($magno_arm, $heading)
Object.DontRemove($magno_arm)
$x, $y, $z = Object.GetCoordinates($magno_base)
$heading = Object.GetHeading($magno_base)
$magno_base_LOD = Object.CreateNoOffset(#LODNOCRANE_02, $x, $y, $z)
Object.SetHeading($magno_base_LOD, $heading)
Object.DontRemove($magno_base_LOD)
$x, $y, $z = Object.GetCoordinates($magno_cabin)
$heading = Object.GetHeading($magno_cabin)
$magno_cabin_LOD = Object.CreateNoOffset(#LODNOCRANE_03, $x, $y, $z)
Object.SetHeading($magno_cabin_LOD, $heading)
Object.SetRotation($magno_cabin_LOD, 15.0, 0.0, $heading)
Object.DontRemove($magno_cabin_LOD)
Object.ConnectLods($sf_crane1_arm_LOD, $magno_arm)
Object.ConnectLods($magno_base, $magno_base_LOD)
Object.ConnectLods($magno_cabin, $magno_cabin_LOD)
$arm_rotate_y = Object.CreateNoOffset(#QUARRY_CRANEBASE, 709.45, 915.93, -19.66)
Object.SetHeading($arm_rotate_y, 135.0)
Object.DontRemove($arm_rotate_y)
$x, $y, $z = Object.GetOffsetInWorldCoords($arm_rotate_y, 0.0, 0.0, 4.0689)
$heading = Object.GetHeading($arm_rotate_y)
$quarry_base = Object.CreateNoOffset(#QUARRY_CRANE, $x, $y, $z)
Object.SetHeading($quarry_base, $heading)
Object.DontRemove($quarry_base)
$x, $y, $z = Object.GetOffsetInWorldCoords($quarry_base, 0.0, 0.0, 1.0206)
$heading = Object.GetHeading($quarry_base)
$quarry_stand = Object.CreateNoOffset(#QUARRY_CRANEARM, $x, $y, $z)
Object.SetHeading($quarry_stand, $heading)
Object.DontRemove($quarry_stand)
$magno_arm_rotate_y = 45.0
Object.SetRotation($quarry_stand, 0.0, $magno_arm_rotate_y, $heading)
$quarry_arm = Object.CreateNoOffset(#TWRCRANE_M_04, 2399.202, 1879.139, 37.55)
Object.SetHeading($quarry_arm, 0.0)
Object.DontRemove($quarry_arm)
$x, $y, $z = Object.GetOffsetInWorldCoords($quarry_arm, 0.0, 0.0, 32.521)
$heading = Object.GetHeading($quarry_arm)
$lv_base = Object.CreateNoOffset(#TWRCRANE_M_01, $x, $y, $z)
Object.SetHeading($lv_base, $heading)
Object.DontRemove($lv_base)
$x, $y, $z = Object.GetOffsetInWorldCoords($lv_base, 0.0, 20.0, 3.789)
$heading = Object.GetHeading($lv_base)
$lv_arm = Object.CreateNoOffset(#TWRCRANE_M_02, $x, $y, $z)
Object.SetHeading($lv_arm, $heading)
Object.DontRemove($lv_arm)
$x, $y, $z = Object.GetCoordinates($quarry_arm)
$heading = Object.GetHeading($quarry_arm)
$lv_trolley = Object.CreateNoOffset(#LODCRANE_M_04, $x, $y, $z)
Object.SetHeading($lv_trolley, $heading)
Object.DontRemove($lv_trolley)
$x, $y, $z = Object.GetCoordinates($lv_base)
$heading = Object.GetHeading($lv_base)
$lv_base_LOD = Object.CreateNoOffset(#LODCRANE_M_01, $x, $y, $z)
Object.SetHeading($lv_base_LOD, $heading)
Object.DontRemove($lv_base_LOD)
Object.ConnectLods($quarry_arm, $lv_trolley)
Object.ConnectLods($lv_base, $lv_base_LOD)
$players_money = 0.0
$temp_shopX = 0.0
$temp_shopY = 0.0
$2753 = 0
$flag_attacked_barber = 0
$flag_food_message = 0
Garage.ChangeType('BODLAWN', GarageType.Transfender)
Garage.ChangeType('MODLAST', GarageType.LocoLowCo)
Garage.ChangeType('MDSSFSE', GarageType.Transfender)
Garage.ChangeType('MDS1SFS', GarageType.WheelArchAngels)
Garage.ChangeType('VECMOD', GarageType.Transfender)
$temp_shopZ = 0
$sweet_carX = 2508.16
$sweet_carY = -1666.47
$sweet_carZ = 13.0
$sweet_carH = 16.0
$ryder_carX = 2473.53
$ryder_carY = -1690.21
$ryder_carZ = 13.0
$ryder_carH = 0.0
$farm_gen3 = CarGenerator.Create(2692.029, -1674.024, 9.4656, 178.8279, 556, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.SetHasBeenOwned($farm_gen3, True)
CarGenerator.Switch($farm_gen3, 0)
$nascar_reward_cargen1 = CarGenerator.Create(2676.695, -1673.756, 9.4038, 178.8279, 494, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.SetHasBeenOwned($nascar_reward_cargen1, True)
CarGenerator.Switch($nascar_reward_cargen1, 0)
$nascar_reward_cargen2 = CarGenerator.Create(1104.932, 1614.808, 12.5546, 85.6435, 424, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.SetHasBeenOwned($nascar_reward_cargen2, True)
CarGenerator.Switch($nascar_reward_cargen2, 0)
$highstakes_car_gen = CarGenerator.Create(-1460.87, -1566.737, 101.0579, 2.0, 468, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.SetHasBeenOwned($highstakes_car_gen, True)
CarGenerator.Switch($highstakes_car_gen, 101)
$farm_gen1 = CarGenerator.Create(-1446.239, -1494.731, 101.0514, 6.0, 478, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.SetHasBeenOwned($farm_gen1, True)
CarGenerator.Switch($farm_gen1, 101)
$farm_gen2 = CarGenerator.Create(-1439.643, -1576.823, 101.0578, 264.1183, 531, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.SetHasBeenOwned($farm_gen2, True)
CarGenerator.Switch($farm_gen2, 101)
$gen_car5 = CarGenerator.CreateWithPlate($ryder_carX, $ryder_carY, $ryder_carZ, $ryder_carH, 600, 84, 84, False, 0, 0, 0, 10000, "_SHERM__")
CarGenerator.SetHasBeenOwned($gen_car5, True)
CarGenerator.Switch($gen_car5, 101)
$gen_car6 = CarGenerator.CreateWithPlate($sweet_carX, $sweet_carY, $sweet_carZ, $sweet_carH, 492, 59, 34, False, 0, 0, 0, 10000, "GROVE4L_")
CarGenerator.SetHasBeenOwned($gen_car6, True)
CarGenerator.Switch($gen_car6, 101)
$gen_car8 = CarGenerator.Create(2412.52, -1326.49, 23.74, 177.92, 481, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.SetHasBeenOwned($gen_car8, True)
CarGenerator.Switch($gen_car8, 101)
$gen_car7 = CarGenerator.Create(2445.5, -1340.8, 23.5, 180.0, 542, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($gen_car7, 101)
$gen_car9 = CarGenerator.Create(2499.18, -1648.26, 13.0, 158.61, 481, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($gen_car9, 101)
$dirtrack_reward_cargen = CarGenerator.Create(2685.981, -2016.21, 12.5501, 0.337, 567, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($dirtrack_reward_cargen, 0)
$badlands_car_gen = CarGenerator.Create(1772.096, -2125.103, 13.0469, 0.3441, 536, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($badlands_car_gen, 101)
$gen_car51 = CarGenerator.Create(-2048.856, -2521.276, 31.125, 171.0232, 468, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($gen_car51, 101)
$sw6_car_gen1 = CarGenerator.Create(-1956.3, 297.7, 34.3, 64.8, 558, -1, -1, True, 0, 0, 0, 10000)
$steal_car_cargen1 = CarGenerator.Create(-1952.6, 265.7, 39.9, 292.8, 562, -1, -1, True, 0, 0, 0, 10000)
$steal_car_cargen2 = CarGenerator.Create(-1957.7, 277.0, 34.3, 133.4, 560, -1, -1, True, 0, 0, 0, 10000)
$steal_car_cargen3 = CarGenerator.Create(-1952.8, 258.8, 39.9, 259.1, 567, -1, -1, True, 0, 0, 0, 10000)
$steal_car_cargen4 = CarGenerator.Create(-1950.5, 259.7, 34.3, 53.8, 561, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($sw6_car_gen1, 0)
CarGenerator.Switch($steal_car_cargen1, 0)
CarGenerator.Switch($steal_car_cargen2, 0)
CarGenerator.Switch($steal_car_cargen3, 0)
CarGenerator.Switch($steal_car_cargen4, 0)
CarGenerator.SetHasBeenOwned($sw6_car_gen1, True)
CarGenerator.SetHasBeenOwned($steal_car_cargen1, True)
CarGenerator.SetHasBeenOwned($steal_car_cargen2, True)
CarGenerator.SetHasBeenOwned($steal_car_cargen3, True)
CarGenerator.SetHasBeenOwned($steal_car_cargen4, True)
$steal_car_cargen5 = 0
$done_bmx_stunt_progress = 0
$done_nrg500_stunt_progress[0] = 999999999
$done_nrg500_stunt_progress[1] = 999999999
$stunt_bmx1_cargen = 1946.09
$stunt_bmx1_x = -1380.72
$stunt_bmx1_y = 18.0
$2798 = CarGenerator.Create($stunt_bmx1_cargen, $stunt_bmx1_x, $stunt_bmx1_y, 88.1761, 481, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($2798, 101)
$stunt_nrg500_cargen = -1696.531
$stunt_nrg500_x = 77.7192
$stunt_nrg500_y = 3.5547
$stunt_bmx1_z = CarGenerator.Create($stunt_nrg500_cargen, $stunt_nrg500_x, $stunt_nrg500_y, 312.9365, 522, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($stunt_bmx1_z, 101)
$stunt_nrg500_z = CarGenerator.Create(-2057.0, 58.0, 28.0, 90.0, 544, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($stunt_nrg500_z, 101)
$fire_truck1 = CarGenerator.Create(-2057.0, 64.0, 28.0, 90.0, 407, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($fire_truck1, 101)
$fire_truck1b = CarGenerator.Create(1763.824, 2075.757, 9.9093, 179.4753, 407, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($fire_truck1b, 101)
$fire_truck2 = CarGenerator.Create(1751.512, -1455.102, 12.5547, 263.5589, 407, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($fire_truck2, 101)
$fire_truck3 = CarGenerator.Create(2033.888, -1432.67, 16.6453, 177.829, 416, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($fire_truck3, 101)
$ambulance_1 = CarGenerator.Create(1178.048, -1338.175, 13.405, 269.4923, 416, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($ambulance_1, 101)
$ambulance_2 = CarGenerator.Create(-303.7814, 1032.326, 19.086, 268.5016, 416, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($ambulance_2, 101)
$ambulance_3 = CarGenerator.Create(-1507.164, 2525.455, 55.1875, 358.5728, 416, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($ambulance_3, 101)
$ambulance_4 = CarGenerator.Create(1229.665, 297.6883, 19.0547, 154.9553, 416, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($ambulance_4, 101)
$ambulance_5 = CarGenerator.Create(-2202.52, -2315.986, 30.1172, 319.6815, 416, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($ambulance_5, 101)
$ambulance_6 = CarGenerator.Create(886.3782, -25.6671, 63.244, 157.6212, 402, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($ambulance_6, 101)
$gen_car10 = CarGenerator.Create($mountbX, $mountbY, $mountbZ, 206.39, 510, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($gen_car10, 101)
$flag_1st_time_nitro_shop = CarGenerator.Create(687.3733, 890.67, -40.4285, 35.14, 406, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($flag_1st_time_nitro_shop, 0)
$gen_car1 = CarGenerator.Create(620.882, 861.2452, -43.9534, 298.7428, 486, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($gen_car1, 0)
$gen_car22 = CarGenerator.Create(623.3402, 887.0944, -43.5625, 347.2967, 468, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($gen_car22, 101)
$gen_car2 = CarGenerator.Create(-2486.046, 59.184, 24.8284, 180.0, 468, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($gen_car2, 101)
$gen_car4 = CarGenerator.Create($pimpX, $pimpY, $pimpZ, 270.0, 575, 1, 5, True, 0, 0, 0, 10000)
CarGenerator.Switch($gen_car4, 101)
$gen_car3 = CarGenerator.Create($hitchX, $hitchY, $hitchZ, 180.0, 543, 51, 4, False, 0, 0, 0, 10000)
CarGenerator.Switch($gen_car3, 101)
$gen_car19 = CarGenerator.Create($cour1X, $cour1Y, $cour1Z, 53.1, 481, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($gen_car19, 101)
$tank_gen1 = CarGenerator.Create($cour2X, $cour2Y, $cour2Z, 42.0, 463, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($tank_gen1, 101)
$gen_car21 = CarGenerator.Create($cour3X, $cour3Y, $cour3Z, 183.4, 462, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($gen_car21, 101)
$gen_car12 = CarGenerator.Create(2216.902, -1160.403, 24.7265, 270.8013, 492, -1, -1, False, 0, 0, 0, 10000)
$gen_car13 = CarGenerator.Create(2216.902, -1160.403, 24.7265, 270.8013, 492, -1, -1, False, 0, 0, 0, 10000)
$gen_car14 = CarGenerator.Create(2229.001, -1173.798, 24.7331, 90.5569, 481, -1, -1, False, 0, 0, 0, 10000)
$gen_car18 = CarGenerator.Create(2251.028, -1788.661, 12.7625, 358.9591, 609, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($gen_car18, 101)
$gen_car17 = CarGenerator.Create(-2118.171, -4.0948, 35.0203, 270.142, 609, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($gen_car17, 101)
$gen_car15 = CarGenerator.Create(2596.747, 1444.245, 10.3203, 178.2712, 609, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($gen_car15, 101)
$catalinas_cargen[0] = CarGenerator.Create(2408.156, -1719.463, 13.6665, 0.5881, 545, 83, 1, True, 0, 100, 0, 10000)
$catalinas_cargen[1] = CarGenerator.Create(-1778.178, 1207.074, 25.1194, 91.9357, 557, -1, -1, True, 0, 100, 0, 10000)
$catalinas_cargen[3] = CarGenerator.Create(-1399.717, 2628.59, 55.7823, 271.7941, 599, -1, -1, True, 0, 100, 0, 10000)
$catalinas_cargen[2] = CarGenerator.Create(-379.5, -1443.115, 25.7266, 88.9244, 568, -1, -1, True, 0, 100, 0, 10000)
$catalinas_cargen[4] = CarGenerator.Create(-2572.04, 1148.564, 55.7333, 337.8434, 442, 1, 1, True, 0, 100, 0, 10000)
$catalinas_cargen[5] = CarGenerator.Create(2028.446, 2731.102, 10.53, 268.994, 589, 126, 1, True, 0, 100, 0, 10000)
$2823[0] = CarGenerator.CreateWithPlate(2408.156, -1719.463, 13.6665, 0.5881, 545, 83, 1, True, 0, 0, 0, 10000, "HOMEGIRL")
$2823[1] = CarGenerator.CreateWithPlate(-1778.178, 1207.074, 25.1194, 91.9357, 557, -1, -1, True, 0, 0, 0, 10000, "__NOS___")
$2823[3] = CarGenerator.CreateWithPlate(-1399.717, 2628.59, 55.7823, 271.7941, 599, -1, -1, True, 0, 0, 0, 10000, "_CUFFS__")
$2823[2] = CarGenerator.CreateWithPlate(-379.5, -1443.115, 25.7266, 88.9244, 568, -1, -1, True, 0, 0, 0, 10000, "FULLAUTO")
$2823[4] = CarGenerator.CreateWithPlate(-2572.04, 1148.564, 55.7333, 337.8434, 442, 1, 1, True, 0, 0, 0, 10000, "_TRAUMA_")
$2823[5] = CarGenerator.CreateWithPlate(2028.446, 2731.102, 10.53, 268.994, 589, 126, 1, True, 0, 0, 0, 10000, "_SPANK__")
CarGenerator.SetHasBeenOwned($2823[0], True)
CarGenerator.SetHasBeenOwned($2823[1], True)
CarGenerator.SetHasBeenOwned($2823[3], True)
CarGenerator.SetHasBeenOwned($2823[2], True)
CarGenerator.SetHasBeenOwned($2823[4], True)
CarGenerator.SetHasBeenOwned($2823[5], True)
CarGenerator.Switch($catalinas_cargen[0], 0)
CarGenerator.Switch($catalinas_cargen[1], 0)
CarGenerator.Switch($catalinas_cargen[3], 0)
CarGenerator.Switch($catalinas_cargen[2], 0)
CarGenerator.Switch($catalinas_cargen[4], 0)
CarGenerator.Switch($catalinas_cargen[5], 0)
CarGenerator.Switch($2823[0], 0)
CarGenerator.Switch($2823[1], 0)
CarGenerator.Switch($2823[3], 0)
CarGenerator.Switch($2823[2], 0)
CarGenerator.Switch($2823[4], 0)
CarGenerator.Switch($2823[5], 0)
$2829[0] = CarGenerator.Create(-1673.94, 439.02, 7.01, 136.0, 402, -1, -1, False, 70, 40, 0, 10000)
$2829[1] = CarGenerator.Create(926.45, -1292.29, 13.6, 270.0, 405, -1, -1, False, 60, 30, 0, 10000)
$2829[2] = CarGenerator.Create(-2665.44, 990.77, 64.45, 51.0, 411, -1, -1, False, 80, 50, 0, 10000)
$2829[3] = CarGenerator.Create(-2516.598, 1228.919, 36.4283, 211.5, 483, -1, -1, True, 30, 10, 0, 10000)
$2829[4] = CarGenerator.Create(1122.29, -1699.76, 13.43, 270.0, 445, -1, -1, False, 50, 10, 0, 10000)
$2829[5] = CarGenerator.Create(-1006.41, -628.27, 32.0, 270.0, 470, -1, -1, True, 50, 10, 0, 10000)
$2829[6] = CarGenerator.Create(-2085.23, -2437.52, 30.31, 142.0, 468, -1, -1, False, 50, 10, 0, 10000)
$2829[7] = CarGenerator.Create(-1922.19, 288.34, 40.84, 180.0, 409, -1, -1, False, 50, 10, 0, 10000)
$2829[8] = CarGenerator.Create(-16.66, -2521.17, 36.37, 210.0, 533, -1, -1, False, 50, 10, 0, 10000)
$2829[9] = CarGenerator.Create(1803.38, -1931.05, 13.66, 0.0, 534, -1, -1, False, 50, 10, 0, 10000)
$2829[10] = CarGenerator.Create(1272.24, 2603.03, 10.49, 117.0, 415, -1, -1, True, 90, 30, 0, 10000)
$2829[11] = CarGenerator.Create(-112.4, -41.82, 3.26, 160.0, 489, -1, -1, False, 50, 10, 0, 10000)
$2829[12] = CarGenerator.Create(-2456.1, 741.65, 34.92, 180.0, 439, -1, -1, False, 50, 10, 0, 10000)
$2829[13] = CarGenerator.Create(-1951.81, 2393.83, 50.08, 292.0, 514, -1, -1, True, 50, 10, 0, 10000)
$2829[14] = CarGenerator.Create(-2751.79, -281.5, 6.81, 0.0, 480, -1, -1, False, 90, 40, 0, 10000)
$2829[15] = CarGenerator.Create(1923.93, -2118.89, 13.35, 0.0, 535, -1, -1, False, 50, 10, 0, 10000)
$2829[16] = CarGenerator.Create(-1675.94, -618.74, 13.86, 256.0, 496, -1, -1, False, 50, 10, 0, 10000)
$2829[17] = CarGenerator.Create(-2430.22, 320.84, 34.97, 245.0, 580, -1, -1, False, 50, 10, 0, 10000)
$2829[18] = CarGenerator.Create(-2265.33, 200.65, 34.97, 270.0, 475, -1, -1, False, 50, 10, 0, 10000)
$2829[19] = CarGenerator.Create(2282.7, 2535.88, 10.39, 180.0, 521, -1, -1, False, 50, 10, 0, 10000)
$2829[20] = CarGenerator.Create(2133.04, 1009.75, 10.49, 270.0, 429, -1, -1, False, 90, 50, 0, 10000)
$2829[21] = CarGenerator.Create(2229.3, 1402.99, 10.82, 180.0, 506, -1, -1, True, 90, 50, 0, 10000)
$2829[22] = CarGenerator.Create(-1550.4, 2687.54, 56.22, 90.0, 508, -1, -1, False, 50, 10, 0, 10000)
$2829[23] = CarGenerator.Create(-2068.69, -83.75, 35.1, 0.0, 579, -1, -1, False, 50, 10, 0, 10000)
$2829[24] = CarGenerator.Create(682.17, -1867.46, 4.82, 180.0, 424, -1, -1, False, 70, 10, 0, 10000)
$2829[25] = CarGenerator.Create(1747.87, -2098.03, 13.28, 180.0, 536, -1, -1, False, 80, 10, 0, 10000)
$2829[26] = CarGenerator.Create(1144.46, -1101.26, 25.35, 300.0, 463, -1, -1, False, 50, 10, 0, 10000)
$2829[27] = CarGenerator.Create(-2406.25, -2180.84, 33.39, 180.0, 500, -1, -1, False, 70, 10, 0, 10000)
$2829[28] = CarGenerator.Create(2163.79, 1810.23, 10.58, 180.0, 477, -1, -1, False, 80, 10, 0, 10000)
$2829[29] = CarGenerator.Create(2207.43, 1286.13, 10.57, 180.0, 587, -1, -1, False, 50, 10, 0, 10000)
CarGenerator.Switch($2829[0], 0)
CarGenerator.Switch($2829[1], 0)
CarGenerator.Switch($2829[2], 0)
CarGenerator.Switch($2829[3], 0)
CarGenerator.Switch($2829[4], 0)
CarGenerator.Switch($2829[5], 0)
CarGenerator.Switch($2829[6], 0)
CarGenerator.Switch($2829[7], 0)
CarGenerator.Switch($2829[8], 0)
CarGenerator.Switch($2829[9], 0)
CarGenerator.Switch($2829[10], 0)
CarGenerator.Switch($2829[11], 0)
CarGenerator.Switch($2829[12], 0)
CarGenerator.Switch($2829[13], 0)
CarGenerator.Switch($2829[14], 0)
CarGenerator.Switch($2829[15], 0)
CarGenerator.Switch($2829[16], 0)
CarGenerator.Switch($2829[17], 0)
CarGenerator.Switch($2829[18], 0)
CarGenerator.Switch($2829[19], 0)
CarGenerator.Switch($2829[20], 0)
CarGenerator.Switch($2829[21], 0)
CarGenerator.Switch($2829[22], 0)
CarGenerator.Switch($2829[23], 0)
CarGenerator.Switch($2829[24], 0)
CarGenerator.Switch($2829[25], 0)
CarGenerator.Switch($2829[26], 0)
CarGenerator.Switch($2829[27], 0)
CarGenerator.Switch($2829[28], 0)
CarGenerator.Switch($2829[29], 0)
$2864 = CarGenerator.Create(-540.0441, -1396.147, 15.0, 0.0, 532, -1, -1, False, 0, 100, 0, 10000)
$iFieldHarvester = CarGenerator.Create(-289.5517, -1389.627, 10.0, 0.0, 532, -1, -1, False, 0, 100, 0, 10000)
$2866 = CarGenerator.Create(-192.9, -1331.307, 21.5, 0.0, 532, -1, -1, False, 0, 100, 0, 10000)
$2859 = CarGenerator.Create(-273.9629, -1507.596, 5.0, 0.0, 531, -1, -1, False, 0, 100, 0, 10000)
$iFieldTractor = CarGenerator.Create(-395.1952, -1293.19, 30.8, 0.0, 531, -1, -1, False, 0, 100, 0, 10000)
$2861 = CarGenerator.Create(-186.6494, -1339.215, 6.0, 0.0, 531, -1, -1, False, 0, 100, 0, 10000)
$2867 = CarGenerator.Create(-1030.249, -1050.188, 129.0, 0.0, 532, -1, -1, False, 0, 100, 0, 10000)
$2868 = CarGenerator.Create(-1169.425, -989.6309, 129.0, 0.0, 532, -1, -1, False, 0, 100, 0, 10000)
$2862 = CarGenerator.Create(-1110.79, -947.7925, 129.0, 0.0, 531, -1, -1, False, 0, 100, 0, 10000)
$2869 = CarGenerator.Create(16.8768, 49.991, 3.0, 0.0, 532, -1, -1, False, 0, 100, 0, 10000)
$2870 = CarGenerator.Create(81.051, 3.3203, 1.5, 0.0, 532, -1, -1, False, 0, 100, 0, 10000)
$2871 = CarGenerator.Create(-15.2986, -84.6533, 3.0, 0.0, 532, -1, -1, False, 0, 100, 0, 10000)
$2863 = CarGenerator.Create(81.0533, 3.3234, 1.5, 0.0, 531, -1, -1, False, 0, 100, 0, 10000)
CarGenerator.Switch($2864, 0)
CarGenerator.Switch($iFieldHarvester, 0)
CarGenerator.Switch($2866, 0)
CarGenerator.Switch($2867, 0)
CarGenerator.Switch($2868, 0)
CarGenerator.Switch($2869, 0)
CarGenerator.Switch($2870, 0)
CarGenerator.Switch($2871, 0)
CarGenerator.Switch($2859, 101)
CarGenerator.Switch($iFieldTractor, 101)
CarGenerator.Switch($2861, 101)
CarGenerator.Switch($2862, 101)
CarGenerator.Switch($2863, 101)
$gun_toreno4 = 0
World.SwitchEntryExit('FDREST1', False)
World.SwitchEntryExit('REST2', False)
World.SwitchEntryExit('DINER1', False)
World.SwitchEntryExit('DINER2', False)
World.SwitchEntryExit('TSDINER', False)
World.SwitchEntryExit('GF1', False)
World.SwitchEntryExit('GF2', False)
World.SwitchEntryExit('GF3', False)
World.SwitchEntryExit('GF4', False)
World.SwitchEntryExit('GF5', False)
World.SwitchEntryExit('GF6', False)
$hunter_created = 0
$played_casino4_before = 0
$played_vcrash1_before = 0
$played_ryder1_before = 0
World.AddSetPiece(3, 2435.2, -1741.0, 2454.9, -1723.4, 2481.0, -1707.0, 2480.0, -1732.0, 2481.0, -1707.0, 2480.0, -1732.0)
World.AddSetPiece(2, 2680.6, -1665.8, 2702.2, -1647.8, 2724.7, -1610.1, 2727.2, -1656.9, 2724.0, -1610.0, 2727.0, -1656.0)
World.AddSetPiece(4, 2878.4, -1972.5, 2869.7, -1954.9, 2890.0, -1912.0, 2877.0, -1962.0, 2893.0, -2007.0, 2881.0, -1970.0)
World.AddSetPiece(6, 2807.0, -1152.0, 2822.0, -1135.0, 2872.0, -1105.0, 2874.0, -1133.0, 2866.0, -1111.0, 2864.0, -1138.0)
World.AddSetPiece(2, 2261.0, -1263.0, 2249.0, -1258.0, 2173.0, -1232.0, 2170.0, -1257.0, 2184.0, -1258.0, 2202.0, -1260.0)
World.AddSetPiece(2, 2157.0, -1500.0, 2173.0, -1495.0, 2131.0, -1461.0, 2131.0, -1495.0, 2130.0, -1460.0, 2131.0, -1494.0)
World.AddSetPiece(5, 2295.0, -1772.0, 2302.0, -1761.0, 2263.0, -1780.0, 2263.0, -1809.0, 2327.0, -1821.0, 2303.0, -1817.0)
World.AddSetPiece(2, 1518.0, -1700.0, 1538.0, -1683.0, 1564.0, -1730.0, 1527.0, -1730.0, 1565.0, -1731.0, 1527.1, -1732.0)
World.AddSetPiece(3, 2531.0, -1861.0, 2547.0, -1839.0, 2581.0, -1911.0, 2578.0, -1865.0, 2560.0, -1896.0, 2561.0, -1848.0)
World.AddSetPiece(6, 1833.0, -1617.0, 1854.0, -1608.0, 1820.0, -1590.0, 1818.0, -1605.0, 1824.0, -1641.0, 1824.0, -1619.0)
World.AddSetPiece(5, 1694.0, -1518.0, 1706.0, -1505.0, 1720.0, -1476.0, 1709.0, -1487.0, 1718.0, -1473.0, 1709.0, -1474.0)
World.AddSetPiece(3, 1707.0, -1467.0, 1711.0, -1457.0, 1689.0, -1443.0, 1709.0, -1444.0, 1688.0, -1443.0, -1709.0, -1444.0)
World.AddSetPiece(4, 1815.0, -1406.0, 1829.0, -1388.0, 1840.0, -1410.0, 1835.0, -1402.0, 1841.0, -1411.0, 1836.0, -1403.0)
World.AddSetPiece(4, 1804.0, -1353.0, 1807.0, -1342.0, 1781.0, -1366.0, 1784.0, -1352.0, 1781.0, -1366.0, 1784.0, -1352.0)
World.AddSetPiece(2, 1710.0, -1339.0, 1724.0, -1319.0, 1684.0, -1305.0, 1712.0, -1305.0, 1684.0, -1305.0, 1712.0, -1305.0)
World.AddSetPiece(2, 1711.0, -1204.0, 1720.0, -1194.0, 1747.0, -1160.0, 1712.0, -1159.0, 1747.0, -1160.0, 1712.0, -1159.0)
World.AddSetPiece(3, 2389.0, -1479.0, 2404.0, -1469.0, 2429.0, -1457.0, 2429.0, -1479.0, 2428.0, -1456.0, 2430.0, -1480.0)
World.AddSetPiece(3, 2443.0, -1221.0, 2457.0, -1209.0, 2474.0, -1253.0, 2447.0, -1255.0, 2475.0, -1254.0, 2448.0, -1256.0)
World.AddSetPiece(4, 2627.0, -1134.0, 2632.0, -1132.0, 2649.0, -1150.0, 2642.0, -1139.0, 2650.0, -1151.0, 2643.0, -1140.0)
World.AddSetPiece(2, 2677.0, -1095.0, 2697.0, -1060.0, 2645.0, -1106.0, 2646.0, -1077.0, 2646.0, -1107.0, 2647.0, -1078.0)
World.AddSetPiece(2, 1947.0, -1055.0, 1955.0, -1038.0, 1989.0, -1025.0, 1978.0, -1057.0, 1990.0, -1026.0, 1979.0, -1058.0)
World.AddSetPiece(2, 1858.0, -1123.0, 1876.0, -1113.0, 1895.0, -1133.0, 1865.0, -1133.0, 1896.0, -1134.0, 1866.0, -1134.0)
World.AddSetPiece(2, 1977.0, -1416.0, 1996.0, -1411.0, 1966.0, -1467.0, 1988.0, -1465.0, 1967.0, -1468.0, 1989.0, -1466.0)
World.AddSetPiece(2, 2191.0, -1345.0, 2202.0, -1338.0, 2216.0, -1355.0, 2216.0, -1343.0, 2217.0, -1356.0, 2217.0, -1344.0)
World.AddSetPiece(3, 2339.0, -1161.0, 2345.0, -1148.0, 2372.0, -1182.0, 2373.0, -1157.0, 2373.0, -1183.0, 2374.0, -1158.0)
World.AddSetPiece(3, 2034.0, -1271.0, 2049.0, -1251.0, 2072.0, -1281.0, 2070.0, -1261.0, 2073.0, -1282.0, 2070.0, -2074.0)
World.AddSetPiece(6, 1410.0, -1250.0, 1427.0, -1233.0, 1457.0, -1263.0, 1456.0, -1243.0, 1452.0, -1211.0, 1453.0, -1238.0)
World.AddSetPiece(1, 1427.0, -1334.0, 1433.0, -1323.0, 1419.0, -1270.0, 1419.0, -1286.0, 1420.0, -1253.0, 1419.0, -1257.0)
World.AddSetPiece(2, 1520.0, -1655.0, 1538.0, -1642.0, 1561.0, -1626.0, 1530.0, -1627.0, 1562.0, -1620.0, 1531.0, -1622.0)
World.AddSetPiece(1, 1129.0, -1669.0, 1140.0, -1663.0, 1095.0, -1665.0, 1130.0, -1665.0, 1117.0, -1714.0, 1138.0, -1715.0)
World.AddSetPiece(3, 1167.0, -1782.0, 1190.0, -1769.0, 1148.0, -1744.0, 1176.0, -1743.0, 1141.0, -1739.0, 1175.0, -1737.0)
World.AddSetPiece(1, 1207.0, -1214.0, 1216.0, -1193.0, 1175.0, -1210.0, 1194.0, -1209.0, 1179.0, -1204.0, 1197.0, -1204.0)
World.AddSetPiece(6, 1261.0, -1721.0, 1271.0, -1707.0, 1295.0, -1680.0, 1295.0, -1717.0, 1300.0, -1670.0, 1300.0, -1704.0)
World.AddSetPiece(3, 1237.0, -1290.0, 1257.0, -1271.0, 1214.0, -1253.0, 1215.0, -1281.0, 1215.0, -1215.0, -1215.0, -1281.0)
World.AddSetPiece(3, 1013.0, -1158.0, 1030.0, -1132.0, 1060.0, -1174.0, 1060.0, -1148.0, 1060.0, -1174.0, 1060.0, -1148.0)
World.AddSetPiece(2, 1089.0, -1212.0, 1076.0, -1204.0, 1061.0, -1223.0, 1064.0, -1205.0, 1061.0, -1223.0, 1064.0, -1205.0)
World.AddSetPiece(4, 953.0, -1108.0, 945.0, -1097.0, 928.0, -1084.0, 937.0, -1099.0, 928.0, -1084.0, 937.0, -1099.0)
World.AddSetPiece(4, 829.0, -1066.0, 830.0, -1057.0, 837.0, -1049.0, 828.0, -1055.0, 837.0, -1049.0, 828.0, -1055.0)
World.AddSetPiece(2, 816.0, -1048.0, 840.0, -1030.0, 793.0, -1015.0, 791.0, -1055.0, 793.0, -1015.0, 791.0, -1055.0)
World.AddSetPiece(3, 642.0, -1197.0, 676.0, -1187.0, 597.0, -1183.0, 616.0, -1211.0, 597.0, -1193.0, 616.0, -1211.0)
World.AddSetPiece(3, 618.0, -1287.0, 647.0, -1272.0, 665.0, -1317.0, 632.0, -1317.0, 662.0, -1317.0, 632.0, -1317.0)
World.AddSetPiece(6, 457.0, -1364.0, 487.0, -1357.0, 493.0, -1323.0, 501.0, -1340.0, 498.0, -1317.0, 513.0, -1350.0)
World.AddSetPiece(6, 523.0, -1456.0, 555.0, -1442.0, 569.0, -1404.0, 532.0, -1413.0, 567.0, -1399.0, 525.0, -1407.0)
World.AddSetPiece(5, 478.0, -1488.0, 496.0, -1472.0, 491.0, -1518.0, 490.0, -1501.0, 490.0, -1521.0, 487.0, -1497.0)
World.AddSetPiece(2, 470.0, -1604.0, 490.0, -1573.0, 540.0, -1626.0, 540.0, -1583.0, 540.0, -1626.0, 540.0, -1583.0)
World.AddSetPiece(2, 519.0, -1687.0, 544.0, -1676.0, 486.0, -1727.0, 534.0, -1734.0, 486.0, -1727.0, 534.0, -1734.0)
World.AddSetPiece(5, 380.0, -1803.0, 394.0, -1798.0, 363.0, -1833.0, 373.0, -1819.0, 385.0, -1831.0, 373.0, -1819.0)
World.AddSetPiece(6, 2134.0, -1904.0, 2156.0, -1885.0, 2105.0, -1919.0, 2105.0, -1899.0, 2079.0, -1871.0, 2080.0, -1898.0)
World.AddSetPiece(2, 1953.0, -1988.0, 1971.0, -1966.0, 1985.0, -1930.0, 1967.0, -1929.0, 1927.0, -1935.0, 1953.0, -1935.0)
World.AddSetPiece(1, 2015.0, -2064.0, 2026.0, -2052.0, 2009.0, -2010.0, 2007.0, -2033.0, 1970.0, -2059.0, 1988.0, -2058.0)
World.AddSetPiece(1, 1997.0, -2077.0, 2009.0, -2065.0, 2041.0, -2056.0, 2016.0, -2058.0, 2027.0, -2084.0, 2005.0, -2084.0)
World.AddSetPiece(1, 1924.0, -2108.0, 1935.0, -2096.0, 1917.0, -2074.0, 1917.0, -2094.0, 1917.0, -2138.0, 1917.0, -2116.0)
World.AddSetPiece(1, 1847.0, -2108.0, 1860.0, -2097.0, 1821.0, -2089.0, 1820.0, -2101.0, 1903.0, -2101.0, 1883.0, -2101.0)
World.AddSetPiece(1, 1861.0, -2010.0, 1870.0, -2005.0, 1885.0, -2041.0, 1886.0, -2021.0, 1880.0, -2044.0, 1878.0, -2016.0)
World.AddSetPiece(2, 1751.0, -2388.0, 1781.0, -2369.0, 1799.0, -2345.0, 1798.0, -2377.0, 1799.0, -2345.0, 1798.0, -2377.0)
World.AddSetPiece(2, 1314.0, -2423.0, 1325.0, -2410.0, 1339.0, -2446.0, 1317.0, -2446.0, 1339.0, -2446.0, 1317.0, -2446.0)
World.AddSetPiece(3, 1551.0, -1636.0, 1562.0, -1618.0, 1531.0, -1660.0, 1532.0, -1632.0, 1531.0, -1660.0, 1532.0, -1632.0)
World.AddSetPiece(8, 1225.0, -1880.0, 1237.0, -1866.0, 1180.0, -1884.0, 1213.0, -1885.0, 1169.0, -1887.0, 1194.0, -1888.0)
World.AddSetPiece(8, 1076.0, -1890.0, 1097.0, -1881.0, 1161.0, -1880.0, 1108.0, -1883.0, 1050.0, -1894.0, 1084.0, -1887.0)
World.AddSetPiece(2, 1059.0, -1721.0, 1090.0, -1703.0, 1034.0, -1674.0, 1039.0, -1713.0, 1034.0, -1674.0, 1039.0, -1713.0)
World.AddSetPiece(2, 1028.0, -1690.0, 1048.0, -1657.0, 1079.0, -1710.0, 1037.0, -1709.0, 1079.0, -1710.0, 1037.0, -1709.0)
World.AddSetPiece(5, 982.0, -1913.0, 953.0, -1858.0, 980.0, -1852.0, 966.0, -1860.0, 946.0, -1846.0, 956.0, -1857.0)
World.AddSetPiece(5, 849.0, -1899.0, 823.0, -1937.0, 836.0, -2017.0, 839.0, -1993.0, 848.0, -2020.0, 842.0, -1990.0)
World.AddSetPiece(6, 820.0, -1844.0, 848.0, -1819.0, 789.0, -1786.0, 827.0, -1786.0, 881.0, -1772.0, 827.0, -1772.0)
World.AddSetPiece(4, 788.0, -1816.0, 780.0, -1800.0, 786.0, -1835.0, 781.0, -1820.0, 786.0, -1835.0, 781.0, -1820.0)
World.AddSetPiece(5, 740.0, -1815.0, 759.0, -1808.0, 738.0, -1790.0, 737.0, -1806.0, 744.0, -1836.0, 746.0, -1819.0)
World.AddSetPiece(5, 717.0, -1819.0, 727.0, -1805.0, 745.0, -1827.0, 746.0, -1815.0, 735.0, -1792.0, 728.0, -1813.0)
World.AddSetPiece(5, 624.0, -1786.0, 641.0, -1778.0, 644.0, -1799.0, 647.0, -1789.0, 651.0, -1767.0, 649.0, -1783.0)
World.AddSetPiece(2, 606.0, -1786.0, 622.0, -1770.0, 656.0, -1759.0, 649.0, -1787.0, 656.0, -1759.0, 649.0, -1787.0)
World.AddSetPiece(2, 586.0, -1868.0, 612.0, -1835.0, 648.0, -1818.0, 643.0, -1856.0, 648.0, -1818.0, 643.0, -1856.0)
World.AddSetPiece(4, 541.0, -1778.0, 562.0, -1762.0, 593.0, -1775.0, 573.0, -1772.0, 593.0, -1772.0, 573.0, -1772.0)
World.AddSetPiece(2, 511.0, -1777.0, 478.0, -1762.0, 455.0, -1737.0, 458.0, -1769.0, 455.0, -1737.0, 458.0, -1769.0)
World.AddSetPiece(5, 381.0, -1806.0, 398.0, -1790.0, 385.0, -1825.0, 383.0, -1806.0, 364.0, -1831.0, 377.0, -1810.0)
World.AddSetPiece(7, 361.0, -1689.0, 379.0, -1667.0, 401.0, -1650.0, 372.0, -1646.0, 334.0, -1646.0, 365.0, -1649.0)
World.AddSetPiece(3, 289.0, -1647.0, 314.0, -1631.0, 321.0, -1597.0, 321.0, -1642.0, 321.0, -1597.0, 321.0, -1642.0)
World.AddSetPiece(2, 225.0, -1610.0, 252.0, -1590.0, 274.0, -1576.0, 242.0, -1566.0, 274.0, -1576.0, 242.0, -1566.0)
World.AddSetPiece(2, 301.0, -1472.0, 336.0, -1467.0, 269.0, -1476.0, 291.0, -1497.0, 269.0, -1476.0, 291.0, -1497.0)
World.AddSetPiece(6, 196.0, -1528.0, 223.0, -1508.0, 193.0, -1489.0, 179.0, -1512.0, 174.0, -1579.0, 147.0, -1554.0)
World.AddSetPiece(2, 221.0, -1367.0, 226.0, -1337.0, 228.0, -1310.0, 246.0, -1336.0, 228.0, -1310.0, 246.0, -1336.0)
World.AddSetPiece(2, 427.0, -1238.0, 450.0, -1229.0, 391.0, -1225.0, 402.0, -1252.0, 391.0, -1225.0, 402.0, -1252.0)
World.AddSetPiece(2, 478.0, -1257.0, 478.0, -1227.0, 489.0, -1281.0, 508.0, -1265.0, 489.0, -1281.0, 508.0, -1265.0)
World.AddSetPiece(6, 337.0, -1176.0, 371.0, -1170.0, 395.0, -1169.0, 362.0, -1141.0, 344.0, -1131.0, 381.0, -1167.0)
World.AddSetPiece(3, 1798.0, 796.0, 1816.0, 823.0, 1760.0, 832.0, 1809.0, 834.0, 1760.0, 832.0, 1809.0, 834.0)
World.AddSetPiece(3, 2032.0, 892.0, 2056.0, 919.0, 2086.0, 856.0, 2047.0, 856.0, 2086.0, 856.0, 2047.0, 856.0)
World.AddSetPiece(2, 2034.0, 985.0, 2053.0, 1024.0, 2074.0, 975.0, 2044.0, 974.0, 2074.0, 975.0, 2044.0, 974.0)
World.AddSetPiece(2, 2035.0, 1228.0, 2056.0, 1254.0, 2021.0, 1275.0, 2051.0, 1277.0, 2021.0, 1275.0, 2051.0, 1277.0)
World.AddSetPiece(2, 2114.0, 2071.0, 2136.0, 2096.0, 2098.0, 2020.0, 2131.0, 2020.0, 2098.0, 2020.0, 2131.0, 2020.0)
World.AddSetPiece(2, 1937.0, 2104.0, 1954.0, 2122.0, 1925.0, 2139.0, 1926.0, 2110.0, 1925.0, 2139.0, 1926.0, 2110.0)
World.AddSetPiece(3, 1836.0, 2044.0, 1858.0, 2059.0, 1815.0, 2080.0, 1821.0, 2051.0, 1815.0, 2080.0, 1821.0, 2051.0)
World.AddSetPiece(3, 1721.0, 2044.0, 1739.0, 2063.0, 1710.0, 2023.0, 1709.0, 2051.0, 1710.0, 2023.0, 1709.0, 2051.0)
World.AddSetPiece(7, 1699.0, 2134.0, 1717.0, 2152.0, 1734.0, 2172.0, 1709.0, 2171.0, 1729.0, 2175.0, 1694.0, 2175.0)
World.AddSetPiece(7, 1581.0, 2164.0, 1600.0, 2182.0, 1616.0, 2143.0, 1615.0, 2170.0, 1621.0, 2146.0, 1622.0, 2182.0)
World.AddSetPiece(7, 1522.0, 2044.0, 1538.0, 2060.0, 1529.0, 2083.0, 1532.0, 2055.0, 1525.0, 2087.0, 1525.0, 2056.0)
World.AddSetPiece(5, 1466.0, 1989.0, 1490.0, 2003.0, 1457.0, 2024.0, 1476.0, 2009.0, 1499.0, 2027.0, 1483.0, 2006.0)
World.AddSetPiece(5, 1429.0, 2617.0, 1439.0, 2624.0, 1422.0, 2615.0, 1433.0, 2619.0, 1446.0, 2615.0, 1434.0, 2622.0)
World.AddSetPiece(2, 1469.0, 2545.0, 1487.0, 2568.0, 1500.0, 2592.0, 1474.0, 2591.0, 1500.0, 2592.0, 1474.0, 2591.0)
World.AddSetPiece(2, 1300.0, 2580.0, 1325.0, 2599.0, 1291.0, 2568.0, 1291.0, 2597.0, 1291.0, 2568.0, 1291.0, 2597.0)
World.AddSetPiece(7, 2240.0, 2460.0, 2246.0, 2449.0, 2230.0, 2433.0, 2231.0, 2451.0, 2229.0, 2476.0, 2231.0, 2456.0)
World.AddSetPiece(2, 1238.0, 2671.0, 1257.0, 2690.0, 1276.0, 2716.0, 1244.0, 2713.0, 1276.0, 2716.0, 1244.0, 2713.0)
World.AddSetPiece(7, 1493.0, 2580.0, 1512.0, 2599.0, 1479.0, 2562.0, 1480.0, 2588.0, 1476.0, 2555.0, 1475.0, 2585.0)
World.AddSetPiece(2, 1469.0, 2433.0, 1486.0, 2447.0, 1449.0, 2390.0, 1478.0, 2391.0, 1449.0, 2390.0, 1478.0, 2391.0)
World.AddSetPiece(3, 1558.0, 2283.0, 1577.0, 2305.0, 1529.0, 2311.0, 1565.0, 2310.0, 1529.0, 2311.0, 1565.0, 2310.0)
World.AddSetPiece(3, 1397.0, 2303.0, 1419.0, 2323.0, 1385.0, 2331.0, 1389.0, 2313.0, 1385.0, 2331.0, 1389.0, 2313.0)
World.AddSetPiece(5, 1568.0, 2114.0, 1578.0, 2140.0, 1573.0, 2078.0, 1573.0, 2118.0, 1571.0, 2088.0, 1571.0, 2106.0)
World.AddSetPiece(2, 1660.0, 2002.0, 1685.0, 2021.0, 1710.0, 1985.0, 1709.0, 2015.0, 1710.0, 1985.0, 1709.0, 2015.0)
World.AddSetPiece(3, 1765.0, 2044.0, 1788.0, 2063.0, 1810.0, 2083.0, 1827.0, 2056.0, 1810.0, 2083.0, 1827.0, 2056.0)
World.AddSetPiece(2, 1948.0, 2274.0, 1971.0, 2293.0, 1930.0, 2259.0, 1930.0, 2283.0, 1930.0, 2259.0, 1930.0, 2283.0)
World.AddSetPiece(7, 1918.0, 2309.0, 1938.0, 2328.0, 1951.0, 2338.0, 1929.0, 2338.0, 1895.0, 2333.0, 1926.0, 2337.0)
World.AddSetPiece(7, 1986.0, 2384.0, 2006.0, 2403.0, 2031.0, 2367.0, 2024.0, 2392.0, 2026.0, 2433.0, 2025.0, 2395.0)
World.AddSetPiece(2, 2011.0, 2334.0, 2017.0, 2352.0, 1995.0, 2286.0, 2014.0, 2288.0, 1995.0, 2286.0, 2014.0, 2288.0)
World.AddSetPiece(7, 2063.0, 2274.0, 2090.0, 2293.0, 2068.0, 2313.0, 2096.0, 2292.0, 2119.0, 2260.0, 2104.0, 2282.0)
World.AddSetPiece(7, 2171.0, 2356.0, 2185.0, 2356.0, 2214.0, 2328.0, 2196.0, 2336.0, 2217.0, 2370.0, 2204.0, 2348.0)
World.AddSetPiece(3, 2177.0, 2302.0, 2185.0, 2325.0, 2198.0, 2286.0, 2161.0, 2288.0, 2198.0, 2286.0, 2161.0, 2288.0)
World.AddSetPiece(3, 2256.0, 2274.0, 2294.0, 2293.0, 2288.0, 2260.0, 2287.0, 2283.0, 2288.0, 2260.0, 2287.0, 2283.0)
World.AddSetPiece(3, 2379.0, 2404.0, 2395.0, 2423.0, 2342.0, 2436.0, 2353.0, 2415.0, 2342.0, 2436.0, 2353.0, 2415.0)
World.AddSetPiece(3, 2218.0, 2422.0, 2239.0, 2438.0, 2257.0, 2455.0, 2227.0, 2452.0, 2257.0, 2455.0, 2227.0, 2452.0)
World.AddSetPiece(2, 2337.0, 2504.0, 2354.0, 2522.0, 2370.0, 2482.0, 2370.0, 2513.0, 2370.0, 2482.0, 2370.0, 2513.0)
World.AddSetPiece(2, 2490.0, 2403.0, 2511.0, 2423.0, 2524.0, 2438.0, 2525.0, 2411.0, 2524.0, 2438.0, 2525.0, 2411.0)
World.AddSetPiece(2, 2518.0, 2255.0, 2537.0, 2274.0, 2555.0, 2236.0, 2528.0, 2237.0, 2555.0, 2236.0, 2528.0, 2237.0)
World.AddSetPiece(7, 2518.0, 2189.0, 2539.0, 2210.0, 2558.0, 2235.0, 2518.0, 2236.0, 2498.0, 2231.0, 2537.0, 2231.0)
World.AddSetPiece(7, 2544.0, 2222.0, 2566.0, 2243.0, 2524.0, 2265.0, 2525.0, 2234.0, 2530.0, 2271.0, 2531.0, 2226.0)
World.AddSetPiece(7, 2363.0, 2224.0, 2395.0, 2248.0, 2352.0, 2205.0, 2353.0, 2236.0, 2346.0, 2197.0, 2344.0, 2231.0)
World.AddSetPiece(2, 2333.0, 2173.0, 2369.0, 2190.0, 2313.0, 2138.0, 2349.0, 2140.0, 2313.0, 2138.0, 2349.0, 2140.0)
World.AddSetPiece(2, 2380.0, 2124.0, 2404.0, 2163.0, 2346.0, 2178.0, 2350.0, 2149.0, 2346.0, 2178.0, 2350.0, 2149.0)
World.AddSetPiece(6, 2484.0, 2124.0, 2513.0, 2163.0, 2525.0, 2179.0, 2525.0, 2151.0, 2530.0, 2184.0, 2530.0, 2136.0)
World.AddSetPiece(6, 2713.0, 2104.0, 2737.0, 2122.0, 2793.0, 2086.0, 2796.0, 2110.0, 2796.0, 2079.0, 2801.0, 2110.0)
World.AddSetPiece(6, 2838.0, 2127.0, 2857.0, 2159.0, 2824.0, 2111.0, 2846.0, 2111.0, 2803.0, 2111.0, 2845.0, 2112.0)
World.AddSetPiece(7, 2789.0, 1945.0, 2803.0, 1985.0, 2745.0, 1956.0, 2779.0, 1956.0, 2739.0, 1952.0, 2786.0, 1951.0)
World.AddSetPiece(2, 2640.0, 1944.0, 2660.0, 1965.0, 2605.0, 1982.0, 2605.0, 1953.0, 2605.0, 1982.0, 2605.0, 1953.0)
World.AddSetPiece(2, 2498.0, 1921.0, 2517.0, 1938.0, 2537.0, 1955.0, 2507.0, 1956.0, 2537.0, 1955.0, 2507.0, 1956.0)
World.AddSetPiece(4, 2408.0, 2021.0, 2429.0, 2042.0, 2398.0, 2045.0, 2412.0, 2044.0, 2398.0, 2045.0, 2412.0, 2044.0)
World.AddSetPiece(4, 2188.0, 1826.0, 2205.0, 1851.0, 2234.0, 1867.0, 2212.0, 1851.0, 2234.0, 1867.0, 2212.0, 1851.0)
World.AddSetPiece(3, 2067.0, 1863.0, 2082.0, 1894.0, 2083.0, 1843.0, 2095.0, 1865.0, 2083.0, 1843.0, 2095.0, 1865.0)
World.AddSetPiece(5, 2033.0, 1894.0, 2048.0, 1936.0, 2060.0, 1951.0, 2041.0, 1943.0, 2069.0, 1865.0, 2063.0, 1878.0)
World.AddSetPiece(7, 2069.0, 1785.0, 2139.0, 1806.0, 2147.0, 1776.0, 2095.0, 1776.0, 1975.0, 1711.0, 2060.0, 1710.0)
World.AddSetPiece(5, 2094.0, 1649.0, 2165.0, 1737.0, 2177.0, 1666.0, 2129.0, 1655.0, 2151.0, 1723.0, 2134.0, 1717.0)
World.AddSetPiece(4, 2006.0, 1541.0, 2021.0, 1550.0, 2001.0, 1564.0, 2004.0, 1553.0, 2001.0, 1564.0, 2004.0, 1553.0)
World.AddSetPiece(2, 1931.0, 1444.0, 1964.0, 1466.0, 1989.0, 1415.0, 1991.0, 1454.0, 1989.0, 1415.0, 1991.0, 1454.0)
World.AddSetPiece(2, 1935.0, 1299.0, 1958.0, 1322.0, 1974.0, 1276.0, 1949.0, 1277.0, 1974.0, 1276.0, 1949.0, 1277.0)
World.AddSetPiece(2, 1756.0, 1264.0, 1786.0, 1282.0, 1730.0, 1302.0, 1722.0, 1273.0, 1730.0, 1302.0, 1722.0, 1273.0)
World.AddSetPiece(5, 1723.0, 1182.0, 1736.0, 1205.0, 1714.0, 1234.0, 1714.0, 1217.0, 1703.0, 1229.0, 1709.0, 1219.0)
World.AddSetPiece(3, 1583.0, 1124.0, 1606.0, 1142.0, 1570.0, 1098.0, 1569.0, 1138.0, 1570.0, 1098.0, 1569.0, 1138.0)
World.AddSetPiece(3, 1716.0, 1585.0, 1744.0, 1605.0, 1726.0, 1663.0, 1745.0, 1637.0, 1726.0, 1663.0, 1745.0, 1637.0)
World.AddSetPiece(2, -2349.0, 2381.0, -2327.0, 2377.0, -2349.0, 2402.0, -2328.0, 2388.0, -2349.0, 2402.0, -2328.0, 2388.0)
World.AddSetPiece(2, -2475.0, 2299.0, -2456.0, 2315.0, -2435.0, 2337.0, -2466.0, 2334.0, -2435.0, 2337.0, -2466.0, 2334.0)
World.AddSetPiece(7, -1591.0, 656.0, -1574.0, 667.0, -1561.0, 690.0, -1562.0, 663.0, -1557.0, 692.0, -1556.0, 665.0)
World.AddSetPiece(2, -1752.0, 1317.0, -1726.0, 1323.0, -1749.0, 1269.0, -1714.0, 1299.0, -1749.0, 1269.0, -1714.0, 1299.0)
World.AddSetPiece(2, -1715.0, 1309.0, -1711.0, 1343.0, -1710.0, 1377.0, -1736.0, 1350.0, -1710.0, 1377.0, -1736.0, 1350.0)
World.AddSetPiece(5, -1673.0, 1386.0, -1637.0, 1391.0, -1624.0, 1380.0, -1626.0, 1393.0, -1662.0, 1430.0, -1642.0, 1427.0)
World.AddSetPiece(2, -2002.0, 1273.0, -1967.0, 1299.0, -1943.0, 1258.0, -1944.0, 1293.0, -1943.0, 1258.0, -1944.0, 1293.0)
World.AddSetPiece(1, -1946.0, 1233.0, -1939.0, 1245.0, -1943.0, 1195.0, -1943.0, 1221.0, -2021.0, 1227.0, -1983.0, 1227.0)
World.AddSetPiece(4, -1917.0, 1253.0, -1904.0, 1259.0, -1900.0, 1242.0, -1900.0, 1256.0, -1900.0, 1242.0, -1900.0, 1256.0)
World.AddSetPiece(3, -2041.0, 1223.0, -2022.0, 1232.0, -2010.0, 1208.0, -2010.0, 1228.0, -2010.0, 1208.0, -2010.0, 1228.0)
World.AddSetPiece(6, -1862.0, 1166.0, -1836.0, 1191.0, -1789.0, 1147.0, -1790.0, 1187.0, -1794.0, 1148.0, -1794.0, 1186.0)
World.AddSetPiece(2, -1728.0, 1134.0, -1702.0, 1154.0, -1747.0, 1182.0, -1710.0, 1184.0, -1747.0, 1182.0, -1710.0, 1184.0)
World.AddSetPiece(2, -1685.0, 1173.0, -1663.0, 1201.0, -1708.0, 1151.0, -1712.0, 1186.0, -1708.0, 1151.0, -1712.0, 1186.0)
World.AddSetPiece(6, -1678.0, 1174.0, -1647.0, 1206.0, -1644.0, 1222.0, -1618.0, 1192.0, -1606.0, 1151.0, -1618.0, 1192.0)
World.AddSetPiece(3, -1760.0, 1083.0, -1736.0, 1115.0, -1718.0, 1068.0, -1718.0, 1105.0, -1718.0, 1068.0, -1718.0, 1105.0)
World.AddSetPiece(3, -1726.0, 1005.0, -1701.0, 986.0, -1673.0, 932.0, -1716.0, 933.0, -1673.0, 932.0, -1716.0, 933.0)
World.AddSetPiece(2, -1769.0, 963.0, -1749.0, 901.0, -1710.0, 886.0, -1711.0, 923.0, -1710.0, 886.0, -1711.0, 923.0)
World.AddSetPiece(6, -1684.0, 903.0, -1658.0, 944.0, -1711.0, 833.0, -1710.0, 912.0, -1718.0, 975.0, -1719.0, 926.0)
World.AddSetPiece(6, -1806.0, 954.0, -1782.0, 981.0, -1753.0, 935.0, -1795.0, 934.0, -1842.0, 916.0, -1793.0, 916.0)
World.AddSetPiece(3, -1806.0, 891.0, -1781.0, 867.0, -1838.0, 914.0, -1794.0, 915.0, -1838.0, 914.0, -1794.0, 915.0)
World.AddSetPiece(7, -1614.0, 943.0, -1589.0, 904.0, -1563.0, 880.0, -1561.0, 922.0, -1563.0, 966.0, -1556.0, 929.0)
World.AddSetPiece(2, -1871.0, 827.0, -1843.0, 864.0, -1902.0, 885.0, -1903.0, 837.0, -1902.0, 885.0, -1903.0, 837.0)
World.AddSetPiece(3, -1912.0, 954.0, -1880.0, 977.0, -1936.0, 934.0, -1896.0, 935.0, -1936.0, 934.0, -1896.0, 935.0)
World.AddSetPiece(3, -1882.0, 906.0, -1855.0, 943.0, -1896.0, 889.0, -1896.0, 924.0, -1896.0, 889.0, -1896.0, 924.0)
World.AddSetPiece(3, -1983.0, 906.0, -1954.0, 943.0, -1998.0, 883.0, -1999.0, 924.0, -1998.0, 883.0, -1999.0, 924.0)
World.AddSetPiece(5, -2044.0, 901.0, -2030.0, 907.0, -2045.0, 922.0, -2049.0, 907.0, -2058.0, 935.0, -2050.0, 912.0)
World.AddSetPiece(5, -2113.0, 952.0, -2098.0, 961.0, -2078.0, 953.0, -2094.0, 954.0, -2086.0, 931.0, -2097.0, 948.0)
World.AddSetPiece(8, -2034.0, 957.0, -2019.0, 951.0, -2010.0, 981.0, -2010.0, 952.0, -1965.0, 933.0, -2000.0, 935.0)
World.AddSetPiece(2, -2018.0, 1017.0, -1992.0, 1038.0, -1959.0, 1053.0, -2002.0, 1052.0, -1959.0, 1053.0, -2002.0, 1052.0)
World.AddSetPiece(4, -2077.0, 1038.0, -2072.0, 1045.0, -2080.0, 1078.0, -2079.0, 1053.0, -2080.0, 1078.0, -2079.0, 1053.0)
World.AddSetPiece(2, -2301.0, 1043.0, -2253.0, 1089.0, -2350.0, 1117.0, -2360.0, 1088.0, -2350.0, 1117.0, -2360.0, 1088.0)
World.AddSetPiece(2, -2381.0, 1030.0, -2375.0, 1061.0, -2320.0, 1074.0, -2356.0, 1085.0, -2320.0, 1074.0, -2356.0, 1085.0)
World.AddSetPiece(2, -2399.0, 965.0, -2374.0, 992.0, -2344.0, 961.0, -2385.0, 961.0, -2344.0, 961.0, -2385.0, 961.0)
World.AddSetPiece(3, -2294.0, 949.0, -2281.0, 969.0, -2254.0, 956.0, -2265.0, 960.0, -2254.0, 956.0, -2265.0, 960.0)
World.AddSetPiece(3, -2282.0, 992.0, -2239.0, 1017.0, -2298.0, 957.0, -2258.0, 955.0, -2298.0, 957.0, -2258.0, 955.0)
World.AddSetPiece(2, -2206.0, 903.0, -2171.0, 934.0, -2254.0, 943.0, -2253.0, 917.0, -2254.0, 943.0, -2253.0, 917.0)
World.AddSetPiece(2, -2160.0, 927.0, -2129.0, 954.0, -2177.0, 916.0, -2128.0, 916.0, -2177.0, 916.0, -2128.0, 916.0)
World.AddSetPiece(1, -2104.0, 853.0, -2088.0, 859.0, -2082.0, 816.0, -2082.0, 838.0, -2101.0, 806.0, -2079.0, 806.0)
World.AddSetPiece(2, -2099.0, 696.0, -2079.0, 710.0, -2114.0, 729.0, -2089.0, 729.0, -2114.0, 729.0, -2089.0, 729.0)
World.AddSetPiece(6, -2045.0, 720.0, -2028.0, 746.0, -2008.0, 758.0, -2009.0, 730.0, -2001.0, 773.0, -2001.0, 732.0)
World.AddSetPiece(6, -1989.0, 719.0, -1965.0, 744.0, -2000.0, 691.0, -2001.0, 731.0, -2007.0, 765.0, -2008.0, 732.0)
World.AddSetPiece(2, -2017.0, 632.0, -1992.0, 657.0, -1982.0, 611.0, -2014.0, 611.0, -1982.0, 611.0, -2014.0, 611.0)
World.AddSetPiece(2, -1979.0, 596.0, -1955.0, 620.0, -2015.0, 643.0, -2013.0, 615.0, -2015.0, 643.0, -2013.0, 615.0)
World.AddSetPiece(2, -2056.0, 455.0, -2027.0, 477.0, -2008.0, 438.0, -2008.0, 457.0, -2008.0, 438.0, -2008.0, 457.0)
World.AddSetPiece(2, -2136.0, 347.0, -2130.0, 368.0, -2117.0, 386.0, -2135.0, 386.0, -2117.0, 386.0, -2135.0, 386.0)
World.AddSetPiece(1, -2196.0, 363.0, -2174.0, 369.0, -2148.0, 356.0, -2149.0, 374.0, -2145.0, 388.0, -2145.0, 367.0)
World.AddSetPiece(3, -2176.0, 451.0, -2164.0, 456.0, -2148.0, 469.0, -2149.0, 452.0, -2148.0, 469.0, -2149.0, 452.0)
World.AddSetPiece(2, -2203.0, 451.0, -2190.0, 456.0, -2233.0, 463.0, -2224.0, 462.0, -2233.0, 463.0, -2224.0, 462.0)
World.AddSetPiece(2, -2280.0, 590.0, -2243.0, 621.0, -2221.0, 568.0, -2260.0, 568.0, -2221.0, 568.0, -2260.0, 568.0)
World.AddSetPiece(2, -2235.0, 537.0, -2217.0, 552.0, -2196.0, 569.0, -2233.0, 569.0, -2196.0, 569.0, -2233.0, 569.0)
World.AddSetPiece(3, -2327.0, 391.0, -2326.0, 417.0, -2332.0, 439.0, -2310.0, 416.0, -2332.0, 439.0, -2310.0, 416.0)
World.AddSetPiece(2, -2442.0, 421.0, -2419.0, 424.0, -2468.0, 420.0, -2450.0, 403.0, -2468.0, 420.0, -2450.0, 403.0)
World.AddSetPiece(2, -2488.0, 427.0, -2458.0, 429.0, -2517.0, 434.0, -2496.0, 450.0, -2517.0, 434.0, -2496.0, 450.0)
World.AddSetPiece(2, -2549.0, 307.0, -2528.0, 329.0, -2558.0, 339.0, -2540.0, 339.0, -2558.0, 339.0, -2540.0, 339.0)
World.AddSetPiece(3, -2592.0, 379.0, -2577.0, 390.0, -2610.0, 407.0, -2608.0, 381.0, -2610.0, 407.0, -2608.0, 381.0)
World.AddSetPiece(6, -2636.0, 279.0, -2618.0, 307.0, -2639.0, 331.0, -2608.0, 324.0, -2566.0, 345.0, -2605.0, 351.0)
World.AddSetPiece(6, -2651.0, 326.0, -2630.0, 341.0, -2661.0, 359.0, -2660.0, 336.0, -2665.0, 362.0, -2665.0, 330.0)
World.AddSetPiece(5, -2741.0, 361.0, -2697.0, 390.0, -2714.0, 342.0, -2708.0, 344.0, -2711.0, 347.0, -2706.0, 360.0)
World.AddSetPiece(6, -2616.0, 392.0, -2597.0, 416.0, -2578.0, 388.0, -2606.0, 386.0, -2570.0, 346.0, -2606.0, 350.0)
World.AddSetPiece(3, -2653.0, 326.0, -2634.0, 346.0, -2609.0, 359.0, -2609.0, 327.0, -2609.0, 359.0, -2609.0, 327.0)
World.AddSetPiece(3, -2779.0, 279.0, -2777.0, 303.0, -2806.0, 256.0, -2807.0, 289.0, -2806.0, 256.0, -2807.0, 289.0)
World.AddSetPiece(2, -2829.0, -375.0, -2806.0, -347.0, -2789.0, -328.0, -2816.0, -327.0, -2789.0, -328.0, -2816.0, -327.0)
World.AddSetPiece(2, -2823.0, -305.0, -2802.0, -283.0, -2782.0, -328.0, -2814.0, -327.0, -2782.0, -328.0, -2814.0, -327.0)
World.AddSetPiece(2, -1555.0, 2574.0, -1536.0, 2588.0, -1524.0, 2604.0, -1549.0, 2604.0, -1524.0, 2604.0, -1549.0, 2604.0)
World.AddSetPiece(2, -1506.0, 2616.0, -1486.0, 2625.0, -1470.0, 2604.0, -1496.0, 2604.0, -1470.0, 2604.0, -1496.0, 2604.0)
World.AddSetPiece(7, 2573.0, 35.0, 2603.0, 49.0, 2534.0, 90.0, 2534.0, 46.0, 2533.0, 1.0, 2534.0, 40.0)
Zone.InitPopulationSettings
Zone.SetPopulationType('MARKST', 14)
Zone.SetPopulationType('UNITY', 5)
Zone.SetPopulationType('LAIR1', 16)
Zone.SetPopulationType('LAIR2A', 16)
Zone.SetPopulationType('LAIR2B', 16)
Zone.SetPopulationType('LBAG1', 19)
Zone.SetPopulationType('LBAG2', 19)
Zone.SetPopulationType('LBAG3', 19)
Zone.SetPopulationType('BLUF1A', 10)
Zone.SetPopulationType('BLUF2', 10)
Zone.SetPopulationType('SUN1', 2)
Zone.SetPopulationType('SUN1', 2)
Zone.SetPopulationType('SUN3A', 2)
Zone.SetPopulationType('SUN3B', 2)
Zone.SetPopulationType('SUN3C', 2)
Zone.SetPopulationType('SUN4', 2)
Zone.SetGangStrength('SUN1', GangType.Grove, 30)
Zone.SetGangStrength('SUN1', GangType.Grove, 30)
Zone.SetGangStrength('SUN3A', GangType.Grove, 30)
Zone.SetGangStrength('SUN3B', GangType.Grove, 30)
Zone.SetGangStrength('SUN3C', GangType.Grove, 30)
Zone.SetGangStrength('SUN4', GangType.Grove, 30)
Zone.SetPopulationType('COM1A', 9)
Zone.SetPopulationType('COM1B', 9)
Zone.SetPopulationType('COM2', 9)
Zone.SetPopulationType('COM3', 9)
Zone.SetPopulationType('COM4', 9)
Zone.SetPopulationType('PER1', 9)
Zone.SetPopulationType('CHC1A', 6)
Zone.SetPopulationType('CHC1B', 6)
Zone.SetPopulationType('CHC2A', 6)
Zone.SetPopulationType('CHC2B', 6)
Zone.SetPopulationType('CHC3', 7)
Zone.SetPopulationType('CHC4A', 7)
Zone.SetPopulationType('CHC4B', 7)
Zone.SetPopulationRace('CHC1A', 9)
Zone.SetPopulationRace('CHC1B', 9)
Zone.SetPopulationRace('CHC2A', 9)
Zone.SetPopulationRace('CHC2B', 9)
Zone.SetPopulationRace('CHC3', 9)
Zone.SetPopulationRace('CHC4A', 9)
Zone.SetPopulationRace('CHC4B', 9)
Zone.SetGangStrength('CHC1A', GangType.Vagos, 40)
Zone.SetGangStrength('CHC1B', GangType.Vagos, 40)
Zone.SetGangStrength('CHC2A', GangType.Vagos, 40)
Zone.SetGangStrength('CHC2B', GangType.Vagos, 40)
Zone.SetGangStrength('CHC3', GangType.Vagos, 40)
Zone.SetGangStrength('CHC4A', GangType.Vagos, 40)
Zone.SetGangStrength('CHC4B', GangType.Vagos, 40)
Zone.SetDealerStrength('CHC1A', 4)
Zone.SetDealerStrength('CHC1B', 4)
Zone.SetDealerStrength('CHC2A', 4)
Zone.SetDealerStrength('CHC2B', 4)
Zone.SetDealerStrength('CHC3', 4)
Zone.SetDealerStrength('CHC4A', 4)
Zone.SetDealerStrength('CHC4B', 4)
Zone.SetPopulationType('CONF1A', 0)
Zone.SetPopulationType('CONF1B', 0)
Zone.SetPopulationType('THALL1', 0)
Zone.SetPopulationType('LDOC1A', 11)
Zone.SetPopulationType('LDOC1B', 11)
Zone.SetPopulationType('LDOC2', 11)
Zone.SetPopulationType('LDOC3A', 11)
Zone.SetPopulationType('LDOC3B', 11)
Zone.SetPopulationType('LDOC3C', 11)
Zone.SetPopulationType('LDOC4', 11)
Zone.SetPopulationType('LDT1A', 0)
Zone.SetPopulationType('LDT1B', 0)
Zone.SetPopulationType('LDT1C', 0)
Zone.SetPopulationType('LDT3', 0)
Zone.SetPopulationType('LDT4', 5)
Zone.SetPopulationType('LDT5', 0)
Zone.SetPopulationType('LDT6', 0)
Zone.SetPopulationType('LDT7', 5)
Zone.SetPopulationType('EBE1', 5)
Zone.SetPopulationType('EBE2A', 5)
Zone.SetPopulationType('EBE2B', 5)
Zone.SetPopulationType('EBE3C', 8)
Zone.SetGangStrength('EBE1', GangType.Vagos, 30)
Zone.SetGangStrength('EBE2A', GangType.Vagos, 30)
Zone.SetGangStrength('EBE2B', GangType.Vagos, 30)
Zone.SetGangStrength('EBE3C', GangType.Vagos, 30)
Zone.SetDealerStrength('EBE1', 2)
Zone.SetDealerStrength('EBE2A', 2)
Zone.SetDealerStrength('EBE2B', 2)
Zone.SetDealerStrength('EBE3C', 2)
Zone.SetPopulationType('ELCO1', 6)
Zone.SetPopulationType('ELCO2', 7)
Zone.SetPopulationRace('ELCO1', 9)
Zone.SetPopulationRace('ELCO2', 9)
Zone.SetGangStrength('ELCO1', GangType.Aztecas, 40)
Zone.SetGangStrength('ELCO2', GangType.Aztecas, 40)
Zone.SetPopulationType('GAN1', 7)
Zone.SetPopulationType('GAN2', 7)
Zone.SetPopulationRace('GAN1', 1)
Zone.SetPopulationRace('GAN2', 1)
Zone.SetGangStrength('GAN1', GangType.Grove, 25)
Zone.SetGangStrength('GAN2', GangType.Grove, 25)
Zone.SetNoCops('GAN1', True)
Zone.SetPopulationType('GLN1', 7)
Zone.SetPopulationType('GLN2A', 7)
Zone.SetGangStrength('GLN1', GangType.Ballas, 40)
Zone.SetGangStrength('GLN2A', GangType.Ballas, 40)
Zone.SetDealerStrength('GLN1', 6)
Zone.SetDealerStrength('GLN2A', 2)
Zone.SetPopulationType('LIND1A', 7)
Zone.SetPopulationType('LIND1B', 11)
Zone.SetPopulationType('LIND2A', 11)
Zone.SetPopulationType('LIND2B', 11)
Zone.SetPopulationType('LIND3', 11)
Zone.SetGangStrength('LIND1A', GangType.Ballas, 20)
Zone.SetGangStrength('LIND1B', GangType.Ballas, 20)
Zone.SetGangStrength('LIND2A', GangType.Ballas, 20)
Zone.SetGangStrength('LIND2B', GangType.Ballas, 20)
Zone.SetGangStrength('LIND3', GangType.Ballas, 20)
Zone.SetPopulationType('IWD1', 7)
Zone.SetPopulationType('IWD2', 7)
Zone.SetPopulationType('IWD3A', 7)
Zone.SetPopulationType('IWD3B', 7)
Zone.SetPopulationType('IWD4', 7)
Zone.SetPopulationType('IWD5', 7)
Zone.SetPopulationRace('IWD1', 1)
Zone.SetPopulationRace('IWD2', 1)
Zone.SetPopulationRace('IWD3A', 1)
Zone.SetPopulationRace('IWD3B', 1)
Zone.SetPopulationRace('IWD4', 1)
Zone.SetPopulationRace('IWD5', 1)
Zone.SetGangStrength('IWD1', GangType.Ballas, 20)
Zone.SetGangStrength('IWD2', GangType.Ballas, 20)
Zone.SetGangStrength('IWD3A', GangType.Ballas, 20)
Zone.SetGangStrength('IWD3B', GangType.Ballas, 20)
Zone.SetGangStrength('IWD4', GangType.Ballas, 10)
Zone.SetGangStrength('IWD5', GangType.Ballas, 20)
Zone.SetDealerStrength('IWD1', 2)
Zone.SetDealerStrength('IWD2', 2)
Zone.SetDealerStrength('IWD3A', 2)
Zone.SetDealerStrength('IWD3B', 2)
Zone.SetDealerStrength('IWD4', 2)
Zone.SetDealerStrength('IWD5', 2)
Zone.SetPopulationType('JEF1A', 5)
Zone.SetPopulationType('JEF1B', 5)
Zone.SetPopulationType('JEF2', 5)
Zone.SetPopulationType('JEF3A', 5)
Zone.SetPopulationType('JEF3B', 5)
Zone.SetPopulationType('JEF3C', 5)
Zone.SetGangStrength('JEF1A', GangType.Ballas, 40)
Zone.SetGangStrength('JEF1B', GangType.Ballas, 40)
Zone.SetGangStrength('JEF2', GangType.Ballas, 40)
Zone.SetGangStrength('JEF3B', GangType.Ballas, 40)
Zone.SetGangStrength('JEF3C', GangType.Ballas, 40)
Zone.SetDealerStrength('JEF1A', 6)
Zone.SetDealerStrength('JEF1B', 6)
Zone.SetDealerStrength('JEF2', 6)
Zone.SetDealerStrength('JEF3B', 6)
Zone.SetDealerStrength('JEF3C', 6)
Zone.SetPopulationType('LFL1A', 7)
Zone.SetPopulationType('LFL1B', 7)
Zone.SetPopulationRace('LFL1A', 9)
Zone.SetPopulationRace('LFL1B', 9)
Zone.SetGangStrength('LFL1A', GangType.Vagos, 40)
Zone.SetGangStrength('LFL1B', GangType.Vagos, 40)
Zone.SetDealerStrength('LFL1A', 4)
Zone.SetDealerStrength('LFL1B', 4)
Zone.SetPopulationType('LMEX1A', 5)
Zone.SetPopulationType('LMEX1B', 5)
Zone.SetGangStrength('LMEX1A', GangType.Aztecas, 30)
Zone.SetGangStrength('LMEX1B', GangType.Aztecas, 30)
Zone.SetPopulationType('ELS1A', 7)
Zone.SetPopulationType('ELS1B', 7)
Zone.SetPopulationType('ELS2', 7)
Zone.SetPopulationType('ELS3A', 7)
Zone.SetPopulationType('ELS3B', 7)
Zone.SetPopulationType('ELS4', 7)
Zone.SetPopulationRace('ELS1A', 10)
Zone.SetPopulationRace('ELS1B', 10)
Zone.SetPopulationRace('ELS2', 10)
Zone.SetPopulationRace('ELS3A', 10)
Zone.SetPopulationRace('ELS3B', 10)
Zone.SetPopulationRace('ELS4', 10)
Zone.SetGangStrength('ELS1A', GangType.Ballas, 30)
Zone.SetGangStrength('ELS1B', GangType.Ballas, 30)
Zone.SetGangStrength('ELS2', GangType.Ballas, 30)
Zone.SetGangStrength('ELS3A', GangType.Ballas, 30)
Zone.SetGangStrength('ELS3B', GangType.Ballas, 30)
Zone.SetGangStrength('ELS4', GangType.Ballas, 30)
Zone.SetDealerStrength('ELS1A', 2)
Zone.SetDealerStrength('ELS1B', 2)
Zone.SetDealerStrength('ELS2', 2)
Zone.SetDealerStrength('ELS3A', 2)
Zone.SetDealerStrength('ELS3B', 2)
Zone.SetDealerStrength('ELS4', 2)
Zone.SetPopulationType('MAR1', 4)
Zone.SetPopulationType('MAR2', 5)
Zone.SetPopulationType('MAR3', 5)
Zone.SetPopulationType('MKT1', 14)
Zone.SetPopulationType('MKT2', 14)
Zone.SetPopulationType('MKT3', 14)
Zone.SetPopulationType('MKT4', 14)
Zone.SetPopulationType('MUL1A', 15)
Zone.SetPopulationType('MUL1B', 15)
Zone.SetPopulationType('MUL1C', 15)
Zone.SetPopulationType('MUL2A', 10)
Zone.SetPopulationType('MUL2B', 10)
Zone.SetPopulationType('MUL3', 10)
Zone.SetPopulationType('MUL4', 15)
Zone.SetPopulationType('MUL5A', 15)
Zone.SetPopulationType('MUL5B', 15)
Zone.SetPopulationType('MUL5C', 15)
Zone.SetPopulationType('MUL6', 15)
Zone.SetPopulationType('MUL7A', 15)
Zone.SetPopulationType('MUL7B', 15)
Zone.SetPopulationType('PLS', 8)
Zone.SetGangStrength('PLS', GangType.Grove, 10)
Zone.SetPopulationType('RIH1A', 15)
Zone.SetPopulationType('RIH1B', 15)
Zone.SetPopulationType('RIH2', 15)
Zone.SetPopulationType('RIH3A', 15)
Zone.SetPopulationType('RIH3B', 15)
Zone.SetPopulationType('RIH4', 4)
Zone.SetPopulationType('RIH5A', 4)
Zone.SetPopulationType('RIH6B', 4)
Zone.SetPopulationType('RIH5A', 4)
Zone.SetPopulationType('RIH6B', 4)
Zone.SetPopulationType('ROD1A', 14)
Zone.SetPopulationType('ROD1B', 14)
Zone.SetPopulationType('ROD1C', 14)
Zone.SetPopulationType('ROD2A', 14)
Zone.SetPopulationType('ROD2B', 14)
Zone.SetPopulationType('ROD3A', 14)
Zone.SetPopulationType('ROD3B', 14)
Zone.SetPopulationType('ROD4A', 14)
Zone.SetPopulationType('ROD4B', 14)
Zone.SetPopulationType('ROD4C', 14)
Zone.SetPopulationType('ROD5A', 4)
Zone.SetPopulationType('ROD5B', 4)
Zone.SetPopulationType('SMB1', 8)
Zone.SetPopulationType('SMB2', 8)
Zone.SetGangStrength('SMB1', GangType.Grove, 10)
Zone.SetGangStrength('SMB2', GangType.Grove, 10)
Zone.SetPopulationType('VIN2', 2)
Zone.SetPopulationType('VIN3', 2)
Zone.SetPopulationType('VIN1A', 2)
Zone.SetPopulationType('VIN1B', 2)
Zone.SetGangStrength('VIN2', GangType.Grove, 10)
Zone.SetPopulationType('VERO1', 5)
Zone.SetPopulationType('VERO2', 9)
Zone.SetPopulationType('VERO3', 9)
Zone.SetPopulationType('VERO4A', 8)
Zone.SetPopulationType('VERO4B', 8)
Zone.SetGangStrength('VERO1', GangType.Ballas, 10)
Zone.SetGangStrength('VERO2', GangType.Ballas, 10)
Zone.SetGangStrength('VERO3', GangType.Ballas, 10)
Zone.SetGangStrength('VERO4A', GangType.Ballas, 10)
Zone.SetGangStrength('VERO4B', GangType.Ballas, 10)
Zone.SetDealerStrength('VERO1', 2)
Zone.SetDealerStrength('VERO2', 2)
Zone.SetDealerStrength('VERO3', 2)
Zone.SetDealerStrength('VERO4A', 2)
Zone.SetDealerStrength('VERO4B', 2)
Zone.SetPopulationType('CRANB', 5)
Zone.SetPopulationType('CALT', 5)
Zone.SetGangStrength('CALT', GangType.Triad, 10)
Zone.SetPopulationType('SUNMA', 4)
Zone.SetPopulationType('SUNNN', 5)
Zone.SetPopulationType('BATTP', 2)
Zone.SetGangStrength('BATTP', GangType.Rifa, 25)
Zone.SetPopulationType('ESPN1', 9)
Zone.SetPopulationType('ESPN2', 9)
Zone.SetPopulationType('ESPN3', 9)
Zone.SetGangStrength('ESPN1', GangType.DaNangBoys, 10)
Zone.SetGangStrength('ESPN2', GangType.DaNangBoys, 10)
Zone.SetGangStrength('ESPN3', GangType.DaNangBoys, 10)
Zone.SetPopulationType('BAYV', 5)
Zone.SetPopulationType('PARA', 4)
Zone.SetPopulationType('JUNIHO', 5)
Zone.SetPopulationType('JUNIHI', 5)
Zone.SetPopulationType('CIVI', 5)
Zone.SetPopulationType('CHINA', 9)
Zone.SetPopulationRace('CHINA', 6)
Zone.SetGangStrength('CHINA', GangType.Triad, 40)
Zone.SetPopulationType('SFDWT1', 0)
Zone.SetPopulationType('SFDWT2', 0)
Zone.SetPopulationType('SFDWT3', 0)
Zone.SetPopulationType('SFDWT4', 9)
Zone.SetPopulationType('SFDWT5', 9)
Zone.SetPopulationType('SFDWT6', 9)
Zone.SetPopulationType('FINA', 0)
Zone.SetPopulationType('CITYS', 0)
Zone.SetPopulationType('WESTP1', 4)
Zone.SetPopulationType('WESTP2', 4)
Zone.SetPopulationType('WESTP3', 4)
Zone.SetPopulationType('THEA1', 2)
Zone.SetPopulationType('THEA2', 2)
Zone.SetPopulationType('THEA3', 2)
Zone.SetGangStrength('THEA1', GangType.Triad, 10)
Zone.SetGangStrength('THEA3', GangType.Rifa, 10)
Zone.SetPopulationType('GARC', 7)
Zone.SetGangStrength('GARC', GangType.Rifa, 40)
Zone.SetPopulationType('HASH', 6)
Zone.SetPopulationType('OCEAF1', 8)
Zone.SetPopulationType('OCEAF2', 5)
Zone.SetPopulationType('OCEAF3', 8)
Zone.SetPopulationType('DOH1', 5)
Zone.SetPopulationType('DOH2', 5)
Zone.SetGangStrength('DOH2', GangType.Rifa, 10)
Zone.SetPopulationType('CUNTC1', 4)
Zone.SetPopulationType('CUNTC2', 4)
Zone.SetPopulationType('CUNTC3', 4)
Zone.SetPopulationType('SFGLF1', 17)
Zone.SetPopulationType('SFGLF2', 17)
Zone.SetPopulationType('SFGLF3', 17)
Zone.SetPopulationType('SFGLF4', 17)
Zone.SetPopulationType('HILLP', 10)
Zone.SetPopulationType('SILLY1', 0)
Zone.SetPopulationType('SILLY2', 0)
Zone.SetPopulationType('SILLY3', 0)
Zone.SetPopulationType('SILLY4', 0)
Zone.SetPopulationType('SFAIR1', 16)
Zone.SetPopulationType('SFAIR2', 16)
Zone.SetPopulationType('SFAIR3', 16)
Zone.SetPopulationType('SFAIR4', 16)
Zone.SetPopulationType('SFAIR5', 16)
Zone.SetPopulationType('SFBAG1', 19)
Zone.SetPopulationType('SFBAG2', 19)
Zone.SetPopulationType('SFBAG3', 19)
Zone.SetPopulationType('EASB1', 11)
Zone.SetPopulationType('EASB2', 11)
Zone.SetGangStrength('EASB1', GangType.DaNangBoys, 40)
Zone.SetGangStrength('EASB2', GangType.DaNangBoys, 40)
Zone.SetPopulationType('ESPE1', 9)
Zone.SetPopulationType('ESPE2', 9)
Zone.SetPopulationType('ESPE3', 9)
Zone.SetGangStrength('EASB1', GangType.DaNangBoys, 10)
Zone.SetGangStrength('EASB2', GangType.DaNangBoys, 10)
Zone.SetPopulationType('LINDEN', 5)
Zone.SetPopulationType('YELLOW', 4)
Zone.SetPopulationType('BFC1', 5)
Zone.SetPopulationType('BFC2', 5)
Zone.SetPopulationType('RIE', 0)
Zone.SetPopulationType('LDM', 6)
Zone.SetPopulationType('RSW1', 6)
Zone.SetPopulationType('RSW2', 6)
Zone.SetPopulationType('RSE', 6)
Zone.SetPopulationType('LDS', 11)
Zone.SetPopulationType('SRY', 5)
Zone.SetPopulationType('JTS1', 5)
Zone.SetPopulationType('JTS2', 5)
Zone.SetPopulationType('LVA1', 11)
Zone.SetPopulationType('LVA2', 18)
Zone.SetPopulationType('LVA3', 11)
Zone.SetPopulationType('LVA4', 11)
Zone.SetPopulationType('VAIR1', 16)
Zone.SetPopulationType('VAIR2', 16)
Zone.SetPopulationType('VAIR3', 16)
Zone.SetPopulationType('LVBAG', 19)
Zone.SetPopulationType('GGC1', 10)
Zone.SetPopulationType('GGC2', 2)
Zone.SetPopulationType('BFLD1', 10)
Zone.SetPopulationType('BFLD2', 2)
Zone.SetPopulationType('WWE', 5)
Zone.SetPopulationType('WWE1', 5)
Zone.SetPopulationType('PINT', 5)
Zone.SetPopulationType('YBELL2', 4)
Zone.SetPopulationType('YBELL1', 17)
Zone.SetPopulationType('JTW1', 5)
Zone.SetPopulationType('JTW2', 5)
Zone.SetPopulationType('JTN1', 5)
Zone.SetPopulationType('JTN2', 5)
Zone.SetPopulationType('JTN3', 5)
Zone.SetPopulationType('JTN4', 5)
Zone.SetPopulationType('JTN5', 5)
Zone.SetPopulationType('JTN6', 5)
Zone.SetPopulationType('JTN7', 5)
Zone.SetPopulationType('JTN8', 5)
Zone.SetPopulationType('JTE1', 5)
Zone.SetPopulationType('JTE2', 5)
Zone.SetPopulationType('JTE3', 5)
Zone.SetPopulationType('JTE4', 5)
Zone.SetPopulationType('HGP', 4)
Zone.SetPopulationType('SPIN', 11)
Zone.SetPopulationType('BINT1', 5)
Zone.SetPopulationType('BINT2', 5)
Zone.SetPopulationType('BINT3', 5)
Zone.SetPopulationType('BINT4', 5)
Zone.SetPopulationType('PRP1', 4)
Zone.SetPopulationType('PRP2', 4)
Zone.SetPopulationType('PRP3', 4)
Zone.SetPopulationType('PRP4', 4)
Zone.SetPopulationType('REDE1', 0)
Zone.SetPopulationType('REDE2', 0)
Zone.SetPopulationType('REDE3', 2)
Zone.SetPopulationType('REDW1', 5)
Zone.SetPopulationType('REDW2', 5)
Zone.SetPopulationType('REDW3', 11)
Zone.SetPopulationType('REDW4', 5)
Zone.SetPopulationType('ROCE1', 0)
Zone.SetPopulationType('ROCE2', 0)
Zone.SetPopulationType('OVS', 12)
Zone.SetPopulationType('CREE', 9)
Zone.SetPopulationType('STRIP1', 12)
Zone.SetPopulationType('STRIP2', 12)
Zone.SetPopulationType('STRIP3', 12)
Zone.SetPopulationType('STRIP4', 12)
Zone.SetPopulationType('PILL1', 9)
Zone.SetPopulationType('PILL2', 9)
Zone.SetPopulationType('RING', 12)
Zone.SetPopulationType('ISLE', 12)
Zone.SetPopulationType('STAR1', 12)
Zone.SetPopulationType('STAR2', 12)
Zone.SetPopulationType('ROY', 12)
Zone.SetPopulationType('CAM', 12)
Zone.SetPopulationType('LOT', 12)
Zone.SetPopulationType('PIRA', 12)
Zone.SetPopulationType('VISA1', 12)
Zone.SetPopulationType('VISA2', 12)
Zone.SetPopulationType('CALI1', 12)
Zone.SetPopulationType('CALI2', 12)
Zone.SetPopulationType('DRAG', 12)
Zone.SetPopulationType('PINK', 12)
Zone.SetPopulationType('HIGH', 12)
Zone.SetPopulationType('CONST1', 18)
Zone.SetPopulationType('ANGPI', 3)
Zone.SetPopulationType('SHACA', 3)
Zone.SetPopulationType('BACKO', 3)
Zone.SetPopulationType('BEACO', 3)
Zone.SetPopulationType('FARM', 3)
Zone.SetPopulationType('PALO', 3)
Zone.SetPopulationType('MONT', 3)
Zone.SetPopulationType('MONT1', 3)
Zone.SetPopulationType('MTCHI1', 3)
Zone.SetPopulationType('MTCHI2', 3)
Zone.SetPopulationType('MTCHI3', 3)
Zone.SetPopulationType('MTCHI4', 3)
Zone.SetPopulationType('HBARNS', 3)
Zone.SetPopulationType('DILLI', 3)
Zone.SetPopulationType('TOPFA', 3)
Zone.SetPopulationType('BLUEB', 3)
Zone.SetPopulationType('BLUEB1', 3)
Zone.SetPopulationType('PANOP', 3)
Zone.SetPopulationType('BLUAC', 3)
Zone.SetPopulationType('CREEK', 3)
Zone.SetPopulationType('CREEK1', 3)
Zone.SetPopulationType('MAKO', 3)
Zone.SetPopulationType('TOPFA', 3)
Zone.SetPopulationType('FERN', 3)
Zone.SetPopulationType('NROCK', 3)
Zone.SetPopulationType('HANKY', 3)
Zone.SetPopulationType('LEAFY', 3)
Zone.SetPopulationType('RED', 3)
Zone.SetPopulationType('FLINTC', 3)
Zone.SetPopulationType('WHET', 3)
Zone.SetPopulationType('BIGE', 1)
Zone.SetPopulationType('ELQUE', 1)
Zone.SetPopulationType('BARRA', 1)
Zone.SetPopulationType('CARSO', 1)
Zone.SetPopulationType('PAYAS', 1)
Zone.SetPopulationType('PROBE', 1)
Zone.SetPopulationType('ELCA', 1)
Zone.SetPopulationType('FLINTR', 1)
Zone.SetPopulationType('ARCO', 1)
Zone.SetPopulationType('VALLE', 1)
Zone.SetPopulationType('FLINTI', 1)
Zone.SetPopulationType('MONINT', 1)
Zone.SetPopulationType('ROBINT', 1)
Zone.SetPopulationType('TOM', 1)
Zone.SetPopulationType('ALDEA', 1)
Zone.SetPopulationType('BRUJA', 1)
Zone.SetPopulationType('ROBAD', 1)
Zone.SetPopulationType('BONE', 1)
Zone.SetPopulationType('HAUL', 18)
Zone.SetPopulationType('QUARY', 18)
Zone.SetPopulationType('OCTAN', 18)
Zone.SetPopulationType('PALMS', 18)
Zone.SetPopulationType('EBAY', 18)
Zone.SetPopulationType('EBAY2', 18)
Zone.SetPopulationType('DAM', 18)
$iSetOTBPanic = Pickup.CreateHorseshoe(1224.0, 2617.0, 11.0)
$pickup_horseshoe = Pickup.CreateHorseshoe(2323.0, 1284.0, 97.0)
$2883 = Pickup.CreateHorseshoe(2035.0, 2305.0, 18.0)
$2884 = Pickup.CreateHorseshoe(2491.0, 2263.0, 15.0)
$2885 = Pickup.CreateHorseshoe(1433.0, 2796.0, 20.0)
$2886 = Pickup.CreateHorseshoe(2071.0, 712.0, 11.0)
$2887 = Pickup.CreateHorseshoe(2239.0, 1839.0, 18.0)
$2888 = Pickup.CreateHorseshoe(2583.0, 2387.0, 16.0)
$2889 = Pickup.CreateHorseshoe(2864.0, 857.0, 13.0)
$2890 = Pickup.CreateHorseshoe(2612.0, 2200.0, -1.0)
$2891 = Pickup.CreateHorseshoe(2274.0, 1507.0, 24.0)
$2892 = Pickup.CreateHorseshoe(2184.0, 2529.0, 11.0)
$2893 = Pickup.CreateHorseshoe(1863.0, 2314.0, 15.0)
$2894 = Pickup.CreateHorseshoe(2054.0, 2434.0, 166.0)
$2895 = Pickup.CreateHorseshoe(1603.0, 1435.0, 11.0)
$2896 = Pickup.CreateHorseshoe(1362.92, 1015.24, 11.0)
$2897 = Pickup.CreateHorseshoe(2058.7, 2159.1, 16.0)
$2898 = Pickup.CreateHorseshoe(2003.0, 1672.0, 12.0)
$2899 = Pickup.CreateHorseshoe(2238.0, 1135.0, 49.0)
$2900 = Pickup.CreateHorseshoe(1934.06, 988.79, 22.0)
$2901 = Pickup.CreateHorseshoe(1768.0, 2847.0, 9.0)
$2902 = Pickup.CreateHorseshoe(1084.0, 1076.0, 11.0)
$2903 = Pickup.CreateHorseshoe(2879.0, 2522.0, 11.0)
$2904 = Pickup.CreateHorseshoe(2371.0, 2009.0, 15.0)
$2905 = Pickup.CreateHorseshoe(1521.0, 1690.0, 10.6)
$2906 = Pickup.CreateHorseshoe(2417.0, 1281.0, 21.0)
$2907 = Pickup.CreateHorseshoe(1376.0, 2304.0, 15.0)
$2908 = Pickup.CreateHorseshoe(1393.0, 1832.0, 12.34)
$2909 = Pickup.CreateHorseshoe(984.0, 2563.0, 12.0)
$2910 = Pickup.CreateHorseshoe(1767.0, 601.0, 13.0)
$2911 = Pickup.CreateHorseshoe(2108.0, 1003.0, 46.0)
$2912 = Pickup.CreateHorseshoe(2705.98, 1862.52, 24.41)
$2913 = Pickup.CreateHorseshoe(2493.0, 922.0, 16.0)
$2914 = Pickup.CreateHorseshoe(1881.0, 2846.0, 11.0)
$2915 = Pickup.CreateHorseshoe(2020.0, 2352.0, 11.0)
$2916 = Pickup.CreateHorseshoe(1680.3, 2226.86, 16.11)
$2917 = Pickup.CreateHorseshoe(1462.0, 936.0, 10.0)
$2918 = Pickup.CreateHorseshoe(2125.5, 789.23, 11.45)
$2919 = Pickup.CreateHorseshoe(2588.0, 1902.0, 15.0)
$2920 = Pickup.CreateHorseshoe(919.0, 2070.0, 11.0)
$2921 = Pickup.CreateHorseshoe(2173.0, 2465.0, 11.0)
$2922 = Pickup.CreateHorseshoe(2031.25, 2207.33, 11.0)
$2923 = Pickup.CreateHorseshoe(2509.0, 1144.0, 19.0)
$2924 = Pickup.CreateHorseshoe(2215.0, 1968.0, 11.0)
$2925 = Pickup.CreateHorseshoe(2626.0, 2841.0, 11.0)
$2926 = Pickup.CreateHorseshoe(2440.08, 2161.07, 20.0)
$2927 = Pickup.CreateHorseshoe(1582.0, 2401.0, 19.0)
$2928 = Pickup.CreateHorseshoe(2077.0, 1912.0, 14.0)
$2929 = Pickup.CreateHorseshoe(970.0, 1787.0, 11.0)
$2930 = Pickup.CreateHorseshoe(1526.22, 751.0, 29.04)
$2931 = Pickup.CreateSnapshot(-2511.28, -672.99, 195.75)
$location_photo = Pickup.CreateSnapshot(-2723.63, -314.72, 55.79)
$2933 = Pickup.CreateSnapshot(-1737.71, -579.55, 26.19)
$2934 = Pickup.CreateSnapshot(-1486.08, 920.04, 41.37)
$2935 = Pickup.CreateSnapshot(-1269.82, 963.63, 130.37)
$2936 = Pickup.CreateSnapshot(-1650.01, 422.0, 21.17)
$2937 = Pickup.CreateSnapshot(-1851.72, -96.73, 24.37)
$2938 = Pickup.CreateSnapshot(-2732.0, -244.0, 19.0)
$2939 = Pickup.CreateSnapshot(-2802.75, 375.47, 36.59)
$2940 = Pickup.CreateSnapshot(-2773.04, 783.45, 67.66)
$2941 = Pickup.CreateSnapshot(-2680.07, 1590.8, 143.53)
$2942 = Pickup.CreateSnapshot(-2476.75, 1543.44, 49.26)
$2943 = Pickup.CreateSnapshot(-1879.04, 1456.52, 9.34)
$2944 = Pickup.CreateSnapshot(-1561.55, 655.19, 56.52)
$2945 = Pickup.CreateSnapshot(-1325.15, 494.19, 26.83)
$2946 = Pickup.CreateSnapshot(-1941.41, 137.72, 37.83)
$2947 = Pickup.CreateSnapshot(-2153.23, 462.25, 103.27)
$2948 = Pickup.CreateSnapshot(-2243.96, 577.76, 49.0)
$2949 = Pickup.CreateSnapshot(-2051.0, 456.0, 167.0)
$2950 = Pickup.CreateSnapshot(-1951.0, 659.0, 81.0)
$2951 = Pickup.CreateSnapshot(-2064.0, 926.0, 63.0)
$2952 = Pickup.CreateSnapshot(-2357.33, 1017.01, 59.76)
$2953 = Pickup.CreateSnapshot(-2072.0, 1066.0, 74.0)
$2954 = Pickup.CreateSnapshot(-1744.0, 972.46, 156.89)
$2955 = Pickup.CreateSnapshot(-1941.0, 883.0, 68.0)
$2956 = Pickup.CreateSnapshot(-1839.51, 1086.88, 101.29)
$2957 = Pickup.CreateSnapshot(-1704.8, 1338.0, 14.0)
$2958 = Pickup.CreateSnapshot(-2346.62, 536.85, 86.02)
$2959 = Pickup.CreateSnapshot(-2443.0, 755.0, 49.0)
$2960 = Pickup.CreateSnapshot(-2765.0, 375.0, 15.0)
$2961 = Pickup.CreateSnapshot(-2880.31, -935.83, 40.82)
$2962 = Pickup.CreateSnapshot(-2083.0, -808.0, 69.0)
$2963 = Pickup.CreateSnapshot(-1954.0, -760.0, 53.0)
$2964 = Pickup.CreateSnapshot(-964.53, -331.59, 47.16)
$2965 = Pickup.CreateSnapshot(-1689.0, 51.0, 38.0)
$2966 = Pickup.CreateSnapshot(-2080.0, 256.05, 107.0)
$2967 = Pickup.CreateSnapshot(-2413.0, 331.0, 37.0)
$2968 = Pickup.CreateSnapshot(-2244.42, 731.32, 61.88)
$2969 = Pickup.CreateSnapshot(-2462.0, 369.0, 59.0)
$2970 = Pickup.CreateSnapshot(-1124.44, -153.15, 18.5)
$2971 = Pickup.CreateSnapshot(-1275.78, 53.68, 89.07)
$2972 = Pickup.CreateSnapshot(-2430.0, 38.0, 51.0)
$2973 = Pickup.CreateSnapshot(-2591.0, 162.0, 15.0)
$2974 = Pickup.CreateSnapshot(-2591.0, -16.0, 17.0)
$2975 = Pickup.CreateSnapshot(-2648.0, -5.0, 31.0)
$2976 = Pickup.CreateSnapshot(-2593.0, 56.0, 16.0)
$2977 = Pickup.CreateSnapshot(-1619.31, 1341.39, 11.3)
$2978 = Pickup.CreateSnapshot(-2307.0, 207.0, 42.0)
$2979 = Pickup.CreateSnapshot(-2343.0, -79.0, 38.0)
$2980 = Pickup.CreateSnapshot(-1906.66, 518.58, 61.71)
$2981 = Pickup.CreateOyster(979.0, -2210.0, -3.0)
$pickup_oyster = Pickup.CreateOyster(2750.0, -2584.0, -5.0)
$2983 = Pickup.CreateOyster(1279.0, -806.0, 85.0)
$2984 = Pickup.CreateOyster(2945.13, -2051.93, -3.0)
$2985 = Pickup.CreateOyster(67.0, -1018.0, -5.0)
$2986 = Pickup.CreateOyster(2327.0, -2662.0, -5.0)
$2987 = Pickup.CreateOyster(2621.0, -2506.0, -5.0)
$2988 = Pickup.CreateOyster(1249.0, -2687.0, -1.0)
$2989 = Pickup.CreateOyster(725.0, -1849.0, -5.0)
$2990 = Pickup.CreateOyster(723.0, -1586.0, -3.0)
$2991 = Pickup.CreateOyster(155.0, -1975.0, -8.0)
$2992 = Pickup.CreateOyster(1968.0, -1203.0, 17.0)
$2993 = Pickup.CreateOyster(-2657.0, 1564.0, -6.0)
$2994 = Pickup.CreateOyster(-1252.0, 501.0, -8.0)
$2995 = Pickup.CreateOyster(-1625.0, 4.0, -10.0)
$2996 = Pickup.CreateOyster(-1484.0, 1489.0, -10.0)
$2997 = Pickup.CreateOyster(-2505.406, 1543.724, -22.5553)
$2998 = Pickup.CreateOyster(-2727.0, -469.0, -5.0)
$2999 = Pickup.CreateOyster(-1266.0, 966.0, -10.0)
$3000 = Pickup.CreateOyster(-1013.0, 478.0, -7.0)
$3001 = Pickup.CreateOyster(-1364.0, 390.0, -5.0)
$3002 = Pickup.CreateOyster(2578.0, 2382.0, 16.0)
$3003 = Pickup.CreateOyster(2090.0, 1898.0, 8.0)
$3004 = Pickup.CreateOyster(2130.0, 1152.0, 7.0)
$3005 = Pickup.CreateOyster(2013.0, 1670.0, 7.0)
$3006 = Pickup.CreateOyster(2531.0, 1569.0, 9.0)
$3007 = Pickup.CreateOyster(2998.0, 2998.0, -10.0)
$3008 = Pickup.CreateOyster(-832.0, 925.0, -2.0)
$3009 = Pickup.CreateOyster(486.0, -253.0, -4.0)
$3010 = Pickup.CreateOyster(-90.0, -910.0, -5.0)
$3011 = Pickup.CreateOyster(26.43, -1320.94, -10.04)
$3012 = Pickup.CreateOyster(-207.0, -1682.0, -8.0)
$3013 = Pickup.CreateOyster(-1672.0, -1641.0, -2.0)
$3014 = Pickup.CreateOyster(-1175.0, -2639.0, -2.5)
$3015 = Pickup.CreateOyster(-1097.0, -2858.0, -8.0)
$3016 = Pickup.CreateOyster(-2889.0, -1042.0, -9.0)
$3017 = Pickup.CreateOyster(-659.0, 874.0, -2.0)
$3018 = Pickup.CreateOyster(-955.0, 2628.0, 35.0)
$3019 = Pickup.CreateOyster(-1066.0, 2197.0, 32.0)
$3020 = Pickup.CreateOyster(40.0, -531.0, -8.0)
$3021 = Pickup.CreateOyster(-765.0, 247.0, -8.0)
$3022 = Pickup.CreateOyster(2098.0, -108.0, -2.0)
$3023 = Pickup.CreateOyster(2767.0, 470.0, -8.0)
$3024 = Pickup.CreateOyster(-783.0, 2116.0, 35.0)
$3025 = Pickup.CreateOyster(-821.0, 1374.0, -8.0)
$3026 = Pickup.CreateOyster(-2110.5, 2329.72, -7.5)
$3027 = Pickup.CreateOyster(-1538.0, 1708.0, -3.27)
$3028 = Pickup.CreateOyster(-2685.0, 2153.0, -5.0)
$3029 = Pickup.CreateOyster(796.0, 2939.0, -5.0)
$3030 = Pickup.CreateOyster(2179.0, 235.0, -5.0)
$3031 = Pickup.CreateWithAmmo(344, PickupType.OnStreetSlow, 10, 2832.0, 2405.0, 18.0)
$pickup_weapon = Pickup.CreateWithAmmo(365, PickupType.OnStreetSlow, 500, 2819.0, 1663.0, 11.0)
$3033 = Pickup.CreateWithAmmo(343, PickupType.OnStreetSlow, 10, 2725.0, 2727.0, 11.0)
$3034 = Pickup.CreateWithAmmo(361, PickupType.OnStreetSlow, 2000, 2649.0, 2733.0, 11.0)
$3035 = Pickup.CreateWithAmmo(366, PickupType.OnStreetSlow, 3000, 2148.0, 2721.0, 11.0)
$3036 = Pickup.CreateWithAmmo(349, PickupType.OnStreetSlow, 30, 1345.0, 2367.0, 11.0)
$3037 = Pickup.CreateWithAmmo(355, PickupType.OnStreetSlow, 60, 1625.0, 1944.0, 11.0)
$3038 = Pickup.CreateWithAmmo(350, PickupType.OnStreetSlow, 25, 1569.0, 2150.0, 11.0)
$3039 = Pickup.CreateWithAmmo(359, PickupType.OnStreetSlow, 10, 2072.0, 2370.0, 61.0)
$3040 = Pickup.CreateWithAmmo(358, PickupType.OnStreetSlow, 20, 2225.0, 2530.0, 17.0)
$3041 = Pickup.CreateWithAmmo(358, PickupType.OnStreetSlow, 20, 2337.0, 1806.0, 72.0)
$3042 = Pickup.CreateWithAmmo(356, PickupType.OnStreetSlow, 70, 2575.0, 1562.0, 16.0)
$3043 = Pickup.CreateWithAmmo(353, PickupType.OnStreetSlow, 70, 2243.0, 1132.0, 11.0)
$3044 = Pickup.CreateWithAmmo(362, PickupType.OnStreetSlow, 200, 2676.0, 836.0, 22.0)
$3045 = Pickup.CreateWithAmmo(372, PickupType.OnStreetSlow, 50, 1761.0, 591.0, 10.0)
$3046 = Pickup.CreateWithAmmo(342, PickupType.OnStreetSlow, 20, 2809.0, 864.0, 21.0)
$3047 = Pickup.CreateWithAmmo(355, PickupType.OnStreetSlow, 60, 1923.0, 1011.0, 22.0)
$3048 = Pickup.CreateWithAmmo(351, PickupType.OnStreetSlow, 50, 1407.0, 1098.0, 11.0)
$3049 = Pickup.CreateWithAmmo(343, PickupType.OnStreetSlow, 10, 1319.0, 1636.0, 10.6)
$3050 = Pickup.CreateWithAmmo(352, PickupType.OnStreetSlow, 60, 1446.35, 1900.03, 11.0)
$3051 = Pickup.CreateWithAmmo(347, PickupType.OnStreetSlow, 30, 1098.0, 1681.0, 7.0)
$3052 = Pickup.CreateWithAmmo(350, PickupType.OnStreetSlow, 25, 924.0, 2138.0, 11.0)
$3053 = Pickup.CreateWithAmmo(360, PickupType.OnStreetSlow, 10, 1155.0, 2341.0, 17.0)
$3054 = Pickup.CreateWithAmmo(359, PickupType.OnStreetSlow, 10, 1646.0, 1349.0, 11.0)
$3055 = Pickup.CreateWithAmmo(344, PickupType.OnStreetSlow, 10, 1781.0, 2072.0, 11.0)
$3056 = Pickup.CreateWithAmmo(344, PickupType.OnStreetSlow, 10, 2478.0, 1182.0, 22.0)
$3057 = Pickup.Create(338, PickupType.OnStreetSlow, 2854.0, 944.0, 11.0)
$3058 = Pickup.Create(334, PickupType.OnStreetSlow, 2241.0, 2425.0, 11.0)
$3059 = Pickup.Create(333, PickupType.OnStreetSlow, 1418.0, 2774.0, 15.0)
$3060 = Pickup.Create(337, PickupType.OnStreetSlow, 1393.0, 2174.0, 10.0)
$3061 = Pickup.Create(341, PickupType.OnStreetSlow, 1061.0, 2074.0, 11.0)
$3062 = Pickup.Create(371, PickupType.OnStreetSlow, 2057.0, 2434.0, 166.0)
$3063 = Pickup.Create(339, PickupType.OnStreetSlow, 2000.0, 1526.0, 15.0)
$3064 = Pickup.Create(337, PickupType.OnStreetSlow, 1997.0, 1658.0, 12.0)
$3065 = Pickup.CreateWithAmmo(365, PickupType.OnStreetSlow, 500, 2510.0, -1723.0, 19.0)
$3066 = Pickup.CreateWithAmmo(346, PickupType.OnStreetSlow, 35, 2538.0, -1630.0, 14.0)
$3067 = Pickup.CreateWithAmmo(352, PickupType.OnStreetSlow, 60, 2551.33, -1740.0, 6.49)
$3068 = Pickup.CreateWithAmmo(350, PickupType.OnStreetSlow, 25, 2428.0, -1214.0, 36.0)
$3069 = Pickup.CreateWithAmmo(348, PickupType.OnStreetSlow, 30, 2766.0, -2182.0, 11.0)
$3070 = Pickup.CreateWithAmmo(342, PickupType.OnStreetSlow, 20, 2142.0, -1804.0, 16.0)
$3071 = Pickup.CreateWithAmmo(353, PickupType.OnStreetSlow, 70, 1764.0, -1930.0, 14.0)
$3072 = Pickup.CreateWithAmmo(347, PickupType.OnStreetSlow, 30, 1214.0, -1816.0, 17.0)
$3073 = Pickup.CreateWithAmmo(359, PickupType.OnStreetSlow, 10, 1740.0, -1231.0, 92.0)
$3074 = Pickup.CreateWithAmmo(353, PickupType.OnStreetSlow, 70, 2266.0, -1028.0, 59.0)
$3075 = Pickup.CreateWithAmmo(365, PickupType.OnStreetSlow, 500, 2463.0, -1061.0, 60.0)
$3076 = Pickup.CreateWithAmmo(358, PickupType.OnStreetSlow, 20, 2047.0, -1406.0, 68.0)
$3077 = Pickup.CreateWithAmmo(343, PickupType.OnStreetSlow, 10, 2213.0, -2283.0, 15.0)
$3078 = Pickup.CreateWithAmmo(343, PickupType.OnStreetSlow, 10, 1463.0, -1013.0, 27.0)
$3079 = Pickup.CreateWithAmmo(355, PickupType.OnStreetSlow, 60, 1308.97, -874.4, 40.0)
$3080 = Pickup.CreateWithAmmo(357, PickupType.OnStreetSlow, 30, 1102.0, -661.0, 114.0)
$3081 = Pickup.CreateWithAmmo(372, PickupType.OnStreetSlow, 50, 899.8012, -792.078, 102.0)
$3082 = Pickup.CreateWithAmmo(346, PickupType.OnStreetSlow, 35, 338.0, -1875.0, 4.0)
$3083 = Pickup.CreateWithAmmo(342, PickupType.OnStreetSlow, 20, 397.0, -1924.0, 8.0)
$3084 = Pickup.CreateWithAmmo(344, PickupType.OnStreetSlow, 10, 886.0, -966.0, 37.0)
$3085 = Pickup.CreateWithAmmo(372, PickupType.OnStreetSlow, 50, 1408.0, -2380.0, 14.0)
$3086 = Pickup.CreateWithAmmo(356, PickupType.OnStreetSlow, 70, 1379.0, -2547.0, 14.0)
$3099 = Pickup.CreateWithAmmo(344, PickupType.OnStreetSlow, 10, 2426.0, -1416.0, 24.0)
$3087 = Pickup.Create(334, PickupType.OnStreetSlow, 259.0, 80.0, 1004.0)
$3088 = Pickup.Create(321, PickupType.OnStreetSlow, 261.0, 71.0, 1003.0)
$3089 = Pickup.Create(333, PickupType.OnStreetSlow, 1457.0, -792.0, 90.0)
$3090 = Pickup.Create(341, PickupType.OnStreetSlow, 2371.0, -2543.0, 3.0)
$3091 = Pickup.Create(335, PickupType.OnStreetSlow, 1124.0, -1335.0, 13.0)
$3092 = Pickup.CreateWithAmmo(344, PickupType.OnStreetSlow, 10, 2197.0, -2475.0, 14.0)
$3093 = Pickup.Create(371, PickupType.OnStreetSlow, 1528.222, -1357.985, 330.0371)
$3094 = Pickup.Create(339, PickupType.OnStreetSlow, 1862.0, -1862.0, 14.0)
$3095 = Pickup.Create(331, PickupType.OnStreetSlow, 1339.0, -1765.0, 14.0)
$3096 = Pickup.Create(341, PickupType.OnStreetSlow, 2192.243, -1988.751, 13.4185)
$3097 = Pickup.Create(337, PickupType.OnStreetSlow, 2459.0, -1708.0, 13.6)
$3098 = Pickup.CreateWithAmmo(342, PickupType.OnStreetSlow, 20, 2441.0, -1013.0, 54.0)
$3100 = Pickup.CreateWithAmmo(353, PickupType.OnStreetSlow, 70, -2678.0, -128.0, 4.0)
$3101 = Pickup.CreateWithAmmo(348, PickupType.OnStreetSlow, 30, -2212.0, 109.0, 35.0)
$3102 = Pickup.CreateWithAmmo(356, PickupType.OnStreetSlow, 70, -2903.0, 784.0, 35.0)
$3103 = Pickup.CreateWithAmmo(372, PickupType.OnStreetSlow, 50, -2665.0, 1452.0, 7.0)
$3104 = Pickup.CreateWithAmmo(363, PickupType.OnStreetSlow, 15, -2754.0, -400.0, 7.0)
$3105 = Pickup.CreateWithAmmo(346, PickupType.OnStreetSlow, 35, -2206.0, -23.0, 35.0)
$3106 = Pickup.CreateWithAmmo(349, PickupType.OnStreetSlow, 30, -1841.106, -74.2171, 14.7606)
$3107 = Pickup.CreateWithAmmo(361, PickupType.OnStreetSlow, 2000, -1579.0, 29.45, 17.0)
$3108 = Pickup.CreateWithAmmo(357, PickupType.OnStreetSlow, 30, -2094.0, -488.0, 36.0)
$3109 = Pickup.CreateWithAmmo(355, PickupType.OnStreetSlow, 60, -1968.0, -923.0, 32.0)
$3110 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -1945.0, -1088.0, 31.0)
$3111 = Pickup.CreateWithAmmo(366, PickupType.OnStreetSlow, 3000, -1700.0, 415.0, 7.0)
$3112 = Pickup.CreateWithAmmo(343, PickupType.OnStreetSlow, 10, -1386.0, 509.0, 4.0)
$3113 = Pickup.CreateWithAmmo(352, PickupType.OnStreetSlow, 60, -1679.0, 1410.0, 7.0)
$3114 = Pickup.CreateWithAmmo(361, PickupType.OnStreetSlow, 2000, -2132.52, 189.2507, 35.5379)
$3115 = Pickup.CreateWithAmmo(360, PickupType.OnStreetSlow, 10, -1126.69, -150.82, 14.61)
$3116 = Pickup.CreateWithAmmo(362, PickupType.OnStreetSlow, 200, -1496.0, 591.0, 42.0)
$3117 = Pickup.CreateWithAmmo(363, PickupType.OnStreetSlow, 15, -2542.262, 922.2401, 67.1221)
$3118 = Pickup.CreateWithAmmo(372, PickupType.OnStreetSlow, 50, -2092.0, 1121.0, 54.0)
$3119 = Pickup.CreateWithAmmo(358, PickupType.OnStreetSlow, 20, -1629.0, 1167.0, 24.0)
$3120 = Pickup.Create(341, PickupType.OnStreetSlow, -2083.0, 298.0, 42.0)
$3121 = Pickup.Create(336, PickupType.OnStreetSlow, -2306.0, 93.0, 35.0)
$3122 = Pickup.Create(337, PickupType.OnStreetSlow, -2796.416, 123.686, 6.844)
$3123 = Pickup.Create(338, PickupType.OnStreetSlow, -2135.0, 197.0, 35.0)
$3124 = Pickup.Create(339, PickupType.OnStreetSlow, -2208.0, 696.0, 50.0)
$3125 = Pickup.Create(331, PickupType.OnStreetSlow, -2206.0, 961.0, 80.0)
$3126 = Pickup.Create(334, PickupType.OnStreetSlow, -2222.0, -302.0, 43.0)
$3127 = Pickup.Create(335, PickupType.OnStreetSlow, -1871.0, 351.0, 26.0)
$3128 = Pickup.Create(333, PickupType.OnStreetSlow, -2715.0, -314.0, 7.0)
$3129 = Pickup.Create(341, PickupType.OnStreetSlow, -2359.0, -82.0, 35.0)
$3130 = Pickup.CreateWithAmmo(348, PickupType.OnStreetSlow, 30, -1870.0, -1625.0, 22.0)
$3131 = Pickup.CreateWithAmmo(366, PickupType.OnStreetSlow, 3000, -1627.0, -2692.0, 49.0)
$3132 = Pickup.CreateWithAmmo(352, PickupType.OnStreetSlow, 60, -2038.0, -2562.0, 31.0)
$3133 = Pickup.CreateWithAmmo(357, PickupType.OnStreetSlow, 30, -1035.0, -2258.0, 70.0)
$3134 = Pickup.CreateWithAmmo(350, PickupType.OnStreetSlow, 25, 2366.0, 23.0, 28.0)
$3135 = Pickup.CreateWithAmmo(344, PickupType.OnStreetSlow, 10, 2255.0, -74.0, 32.0)
$3136 = Pickup.CreateWithAmmo(353, PickupType.OnStreetSlow, 70, 1296.0, 392.0, 20.0)
$3137 = Pickup.CreateWithAmmo(372, PickupType.OnStreetSlow, 50, 262.0, 38.0, 2.0)
$3138 = Pickup.CreateWithAmmo(355, PickupType.OnStreetSlow, 60, -121.0, -232.0, 1.0)
$3139 = Pickup.Create(337, PickupType.OnStreetSlow, -532.0, -106.0, 63.0)
$3140 = Pickup.CreateWithAmmo(356, PickupType.OnStreetSlow, 70, 113.0, 1811.0, 18.0)
$3141 = Pickup.CreateWithAmmo(348, PickupType.OnStreetSlow, 30, 36.0, 1372.0, 9.0)
$3142 = Pickup.CreateWithAmmo(349, PickupType.OnStreetSlow, 30, 24.0, 969.0, 20.0)
$3143 = Pickup.CreateWithAmmo(344, PickupType.OnStreetSlow, 10, -170.0, 1025.0, 20.0)
$3144 = Pickup.CreateWithAmmo(346, PickupType.OnStreetSlow, 35, -639.0, 1181.0, 13.0)
$3145 = Pickup.CreateWithAmmo(355, PickupType.OnStreetSlow, 60, -585.0, 2714.0, 72.0)
$3146 = Pickup.CreateWithAmmo(366, PickupType.OnStreetSlow, 3000, -742.0, 2752.0, 47.0)
$3147 = Pickup.CreateWithAmmo(349, PickupType.OnStreetSlow, 30, -932.02, 2649.92, 42.0)
$3148 = Pickup.CreateWithAmmo(360, PickupType.OnStreetSlow, 10, -1317.0, 2509.0, 87.0)
$3149 = Pickup.CreateWithAmmo(353, PickupType.OnStreetSlow, 70, -1474.0, 2577.0, 56.0)
$3150 = Pickup.CreateWithAmmo(348, PickupType.OnStreetSlow, 30, -2352.0, 2456.0, 6.0)
$3151 = Pickup.CreateWithAmmo(342, PickupType.OnStreetSlow, 20, -2520.0, 2293.0, 5.0)
$3152 = Pickup.CreateWithAmmo(361, PickupType.OnStreetSlow, 2000, -1358.0, -2115.0, 30.0)
$3153 = Pickup.CreateWithAmmo(352, PickupType.OnStreetSlow, 60, 119.0, 2409.0, 17.0)
$3154 = Pickup.Create(337, PickupType.OnStreetSlow, -1809.0, -1662.0, 24.0)
$3155 = Pickup.Create(371, PickupType.OnStreetSlow, -2350.0, -1586.0, 485.0)
$3156 = Pickup.Create(333, PickupType.OnStreetSlow, -2227.0, -2401.0, 31.4)
$3157 = Pickup.Create(337, PickupType.OnStreetSlow, 2240.0, -83.0, 27.0)
$3158 = Pickup.Create(338, PickupType.OnStreetSlow, 294.0, -188.0, 2.0)
$3159 = Pickup.Create(341, PickupType.OnStreetSlow, -761.0, -126.0, 66.0)
$3160 = Pickup.Create(339, PickupType.OnStreetSlow, -1568.0, 2718.0, 56.0)
$3161 = Pickup.Create(322, PickupType.OnStreetSlow, -2401.0, 2360.0, 5.0)
$3162 = Pickup.Create(371, PickupType.OnStreetSlow, -2679.0, 1933.0, 217.0)
$3163 = Pickup.Create(337, PickupType.OnStreetSlow, 637.0, 832.0, -43.0)
$3164 = Pickup.Create(341, PickupType.OnStreetSlow, 680.0, 826.0, -39.0)
$3165 = Pickup.Create(341, PickupType.OnStreetSlow, 752.0, 260.0, 27.0)
$3166 = Pickup.Create(331, PickupType.OnStreetSlow, -246.0, 2725.0, 63.0)
$3167 = Pickup.Create(335, PickupType.OnStreetSlow, -23.0, 2322.0, 24.0)
$3168 = Pickup.CreateWithAmmo(363, PickupType.OnStreetSlow, 15, 1284.894, 278.5705, 19.5547)
$3170 = Pickup.CreateWithAmmo(355, PickupType.OnStreetSlow, 60, 2129.4, -2280.71, 14.42)
$3171 = Pickup.Create(371, PickupType.OnStreetSlow, -1542.857, 698.4825, 139.2658)
$3172 = Pickup.CreateWithAmmo(353, PickupType.OnStreetSlow, 130, 2198.11, -1170.22, 33.5)
$3173 = Pickup.Create(371, PickupType.OnStreetSlow, -225.6758, 1394.256, 172.0143)
$3174 = Pickup.Create(371, PickupType.OnStreetSlow, -773.0379, 2423.499, 157.0856)
$3175 = Pickup.CreateWithAmmo(358, PickupType.OnStreetSlow, 20, 935.744, -926.0453, 57.7642)
$3176 = Pickup.Create(337, PickupType.OnStreetSlow, 842.9783, -17.3791, 64.2)
$3177 = Pickup.CreateWithAmmo(346, PickupType.OnStreetSlow, 35, 255.0493, 84.0615, 1002.453)
$3178 = Pickup.CreateWithAmmo(349, PickupType.OnStreetSlow, 30, 217.8, 76.4, 1005.047)
$3179 = Pickup.Create(334, PickupType.OnStreetSlow, 223.8347, 120.4458, 1010.212)
$3180 = Pickup.CreateWithAmmo(346, PickupType.OnStreetSlow, 35, 263.2531, 109.7859, 1004.625)
$3181 = Pickup.CreateWithAmmo(349, PickupType.OnStreetSlow, 30, 228.3176, 114.433, 999.0215)
$3182 = Pickup.Create(334, PickupType.OnStreetSlow, 247.4536, 192.3085, 1008.172)
$3183 = Pickup.CreateWithAmmo(346, PickupType.OnStreetSlow, 35, 242.613, 196.3202, 1008.172)
$3184 = Pickup.CreateWithAmmo(349, PickupType.OnStreetSlow, 30, 240.7765, 196.1124, 1008.172)
$3185 = Pickup.Create(334, PickupType.OnStreetSlow, 188.9769, 158.218, 1003.031)
$3186 = Pickup.Create(371, PickupType.OnStreetSlow, -1753.418, 885.3446, 295.5166)
$3187 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -2539.918, -598.6152, 132.764)
$3188 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -2329.984, -165.3635, 35.2389)
$3189 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -2721.241, -318.8085, 7.5246)
$3190 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -2677.102, 234.9912, 4.1048)
$3191 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -2706.692, 375.8728, 5.0525)
$3192 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -2550.106, 657.286, 14.7319)
$3193 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -2791.248, 771.5468, 51.0904)
$3194 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -1770.815, 903.2556, 25.3894)
$3195 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -1713.006, 1368.239, 7.2664)
$3196 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -1851.317, 1302.291, 60.7553)
$3197 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -1635.026, 604.4713, 40.6377)
$3198 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -1976.483, 670.5043, 46.6039)
$3199 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -2038.409, 1111.406, 53.7928)
$3200 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -2048.803, 899.5274, 53.8866)
$3201 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -2292.47, 722.5441, 49.4265)
$3202 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -1977.916, 113.8457, 27.1096)
$3203 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -1528.144, 160.0232, 3.5142)
$3204 = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, -1771.261, -597.5884, 16.6287)
$special_camera = Pickup.CreateWithAmmo(367, PickupType.OnStreetSlow, 50, 2495.807, -1700.637, 1017.837)
$3205 = Pickup.Create(326, PickupType.OnStreetSlow, -2677.726, -192.3469, 6.8518)
$3206 = Pickup.Create(341, PickupType.OnStreetSlow, -2752.243, -272.2891, 6.5956)
$3207 = Pickup.Create(326, PickupType.OnStreetSlow, -2617.473, -97.0801, 4.003)
$3208 = Pickup.Create(326, PickupType.OnStreetSlow, -2777.192, -25.2984, 6.8721)
$3209 = Pickup.Create(326, PickupType.OnStreetSlow, -2774.113, 87.8845, 6.7987)
$3210 = Pickup.Create(326, PickupType.OnStreetSlow, -2770.624, 389.0772, 4.2818)
$3211 = Pickup.Create(339, PickupType.OnStreetSlow, -2535.631, 51.7034, 8.6512)
$3212 = Pickup.Create(326, PickupType.OnStreetSlow, -2530.958, -34.1009, 25.2855)
$3213 = Pickup.Create(326, PickupType.OnStreetSlow, -1691.649, 946.7679, 24.8084)
$3214 = Pickup.Create(326, PickupType.OnStreetSlow, -2664.518, 636.5673, 14.2474)
$3215 = Pickup.CreateWithAmmo(361, PickupType.OnStreetSlow, 2000, -601.4012, -1068.6, 23.6667)
$3216 = Pickup.Create(326, PickupType.OnStreetSlow, -377.2184, -1048.053, 58.9125)
$3217 = Pickup.Create(326, PickupType.OnStreetSlow, -45.5928, -1148.529, 1.3953)
$3218 = Pickup.Create(331, PickupType.OnStreetSlow, 2428.499, -1679.27, 13.1633)
$3219 = Pickup.CreateWithAmmo(342, PickupType.OnStreetSlow, 20, 2820.013, -1426.519, 23.805)
$3220 = Pickup.CreateWithAmmo(352, PickupType.OnStreetSlow, 60, 2790.343, -1427.489, 39.6258)
$3221 = Pickup.CreateWithAmmo(372, PickupType.OnStreetSlow, 50, 2574.065, -1134.201, 64.6535)
$3222 = Pickup.CreateWithAmmo(346, PickupType.OnStreetSlow, 35, 2423.892, -1117.452, 41.2464)
$3223 = Pickup.Create(326, PickupType.OnStreetSlow, 1296.155, -1081.892, 26.1502)
$3224 = Pickup.Create(326, PickupType.OnStreetSlow, 1390.611, -800.4332, 81.7795)
$3225 = Pickup.Create(336, PickupType.OnStreetSlow, 1308.466, 2111.289, 10.7221)
$3226 = Pickup.Create(326, PickupType.OnStreetSlow, 2183.116, 2396.827, 10.7722)
$3227 = Pickup.Create(336, PickupType.OnStreetSlow, 1081.133, 1603.697, 5.6)
$3228 = Pickup.Create(335, PickupType.OnStreetSlow, 777.8668, 1948.123, 5.3634)
$3230 = Pickup.CreateWithAmmo(350, PickupType.OnStreetSlow, 25, 1706.352, 1242.019, 34.2952)
$3231 = Pickup.CreateWithAmmo(362, PickupType.OnStreetSlow, 200, 2492.051, 2398.377, 4.5293)
$3232 = Pickup.CreateWithAmmo(359, PickupType.OnStreetSlow, 10, 2055.355, 2435.356, 40.3684)
$3233 = Pickup.Create(337, PickupType.OnStreetSlow, 1888.27, 2877.262, 10.1621)
$3234 = Pickup.Create(326, PickupType.OnStreetSlow, 1420.945, 2519.882, 10.6199)
$3235 = Pickup.Create(326, PickupType.OnStreetSlow, 1372.996, 2605.758, 10.8776)
$3236 = Pickup.CreateWithAmmo(353, PickupType.OnStreetSlow, 70, 2293.686, 1982.286, 31.4335)
$3237 = Pickup.Create(339, PickupType.OnStreetSlow, 2631.263, 1722.395, 11.0312)
$3238 = Pickup.Create(326, PickupType.OnStreetSlow, 2490.497, 1522.47, 10.576)
$3239 = Pickup.Create(326, PickupType.OnStreetSlow, 455.4583, -1485.896, 30.9717)
$3240 = Pickup.CreateWithAmmo(362, PickupType.OnStreetSlow, 200, 244.98, 1859.185, 14.08)
$3243 = Pickup.CreateWithAmmo(372, PickupType.OnStreetSlow, 50, 2529.724, -1678.563, 19.4225)
$3244 = Pickup.CreateWithAmmo(350, PickupType.OnStreetSlow, 15, 2254.378, -2261.689, 14.3751)
$3245 = Pickup.CreateWithAmmo(358, PickupType.OnStreetSlow, 20, 2015.744, 1004.045, 39.1)
$3246 = Pickup.Create(339, PickupType.OnStreetSlow, 2002.263, 981.3947, 10.5)
$3256 = Pickup.Create(325, PickupType.OnStreetSlow, 1928.68, -1774.21, 13.54)
$pickup_flowers = Pickup.Create(325, PickupType.OnStreetSlow, 1875.91, -1917.18, 15.03)
$3258 = Pickup.Create(325, PickupType.OnStreetSlow, 2019.6, -1214.15, 21.47)
$3259 = Pickup.Create(325, PickupType.OnStreetSlow, 2209.77, -1001.69, 63.71)
$3260 = Pickup.Create(325, PickupType.OnStreetSlow, 1000.34, -1858.58, 12.3)
$3262 = Pickup.Create(325, PickupType.OnStreetSlow, 911.11, -1120.31, 24.03)
$3263 = Pickup.Create(325, PickupType.OnStreetSlow, 929.0, -750.0, 105.82)
$3264 = Pickup.Create(325, PickupType.OnStreetSlow, 1129.09, -2052.82, 69.0)
$3265 = Pickup.Create(325, PickupType.OnStreetSlow, -92.74, -1425.46, 12.75)
$3266 = Pickup.Create(325, PickupType.OnStreetSlow, -77.65, -1167.18, 2.16)
$3267 = Pickup.Create(325, PickupType.OnStreetSlow, 34.0, -2649.0, 40.73)
$3268 = Pickup.Create(325, PickupType.OnStreetSlow, -739.0, -1262.0, 68.12)
$3269 = Pickup.Create(325, PickupType.OnStreetSlow, -2177.0, -2423.0, 30.63)
$3270 = Pickup.Create(325, PickupType.OnStreetSlow, -615.0, -861.0, 105.72)
$3271 = Pickup.Create(325, PickupType.OnStreetSlow, -2051.0, 948.0, 55.4)
$3272 = Pickup.Create(325, PickupType.OnStreetSlow, -2658.0, -187.0, 4.18)
$3273 = Pickup.Create(325, PickupType.OnStreetSlow, -2649.0, 734.97, 27.96)
$3274 = Pickup.Create(325, PickupType.OnStreetSlow, -1791.0, 481.0, 25.68)
$3275 = Pickup.Create(325, PickupType.OnStreetSlow, -2797.0, 1182.0, 20.28)
$3276 = Pickup.Create(325, PickupType.OnStreetSlow, -2589.623, -16.165, 3.9662)
$3277 = Pickup.Create(325, PickupType.OnStreetSlow, -2865.0, 690.0, 23.43)
$3278 = Pickup.Create(325, PickupType.OnStreetSlow, -2339.0, -453.0, 80.24)
$3279 = Pickup.Create(325, PickupType.OnStreetSlow, -1955.0, -748.0, 36.22)
$3280 = Pickup.Create(325, PickupType.OnStreetSlow, -2420.03, 987.59, 45.3)
$3281 = Pickup.Create(325, PickupType.OnStreetSlow, -326.56, 2215.37, 43.57)
$3282 = Pickup.Create(325, PickupType.OnStreetSlow, -1319.0, 2705.0, 50.27)
$3283 = Pickup.Create(325, PickupType.OnStreetSlow, -2474.94, 2443.52, 16.03)
$3284 = Pickup.Create(325, PickupType.OnStreetSlow, -1670.64, 2590.49, 81.37)
$3285 = Pickup.Create(325, PickupType.OnStreetSlow, -892.98, 1971.66, 60.61)
$3286 = Pickup.Create(325, PickupType.OnStreetSlow, 1576.86, 2837.14, 10.83)
$3287 = Pickup.Create(325, PickupType.OnStreetSlow, 1492.72, 2773.76, 10.81)
$3288 = Pickup.Create(325, PickupType.OnStreetSlow, 2642.03, 1125.74, 11.03)
$3289 = Pickup.Create(325, PickupType.OnStreetSlow, 2025.24, 661.6, 10.93)
$3290 = Pickup.Create(325, PickupType.OnStreetSlow, 2181.82, 1484.97, 11.36)
$3291 = Pickup.Create(325, PickupType.OnStreetSlow, 2197.02, 2476.33, 11.0)
$3292 = Pickup.Create(325, PickupType.OnStreetSlow, 2212.0, 2526.0, 10.81)
$3293 = Pickup.Create(325, PickupType.OnStreetSlow, 2715.79, 1109.47, 6.7)
$3294 = Pickup.Create(325, PickupType.OnStreetSlow, 2489.25, 918.28, 11.02)
$3295 = Pickup.Create(325, PickupType.OnStreetSlow, 1472.08, 1890.09, 10.81)
$3296 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 2097.0, 2154.0, 14.0)
$pickup_armour = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 2435.0, 1663.0, 16.0)
$3298 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 2500.0, 925.0, 11.0)
$3299 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 2106.0, 1004.0, 11.0)
$3300 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 1531.0, 925.0, 11.0)
$3301 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 1433.0, 1852.0, 10.8)
$3302 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 1000.0, 1068.0, 11.0)
$3303 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 1269.0, 1352.0, 11.0)
$3304 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 2294.0, 547.0, 1.0)
$3305 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 2543.0, -1625.0, 12.0)
$3306 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 2339.0, -1944.0, 13.0)
$3307 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 2767.0, -1192.0, 69.0)
$3308 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 2112.0, -1990.0, 14.0)
$3309 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 2544.0, -1120.0, 62.0)
$3310 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 1562.0, -1888.0, 14.0)
$3311 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 1086.0, -1806.0, 17.0)
$3312 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 253.0, 80.0, 1004.0)
$3313 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 1759.0, -2242.0, 1.0)
$3314 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, -2650.0, -198.0, 4.0)
$3315 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, -2285.0, -24.0, 35.0)
$3316 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, -1863.0, 112.0, 15.0)
$3317 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, -1574.0, 1268.0, 1.27)
$3318 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, -2916.0, 992.0, 8.0)
$3319 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, -2513.0, 770.0, 35.0)
$3320 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, -1394.0, -373.0, 6.0)
$3321 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, -2303.0, -1606.0, 484.0)
$3322 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, -2092.0, -2330.0, 31.0)
$3323 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, -2260.0, 2568.0, 6.0)
$3324 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, -902.0, 2689.0, 42.0)
$3325 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, -317.0, 2651.0, 67.0)
$3326 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 1325.0, 190.0, 19.0)
$3327 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 2487.0, 139.0, 27.0)
$3328 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 761.0, 380.0, 23.0)
$3329 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, -51.0, -232.0, 7.0)
$3330 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 252.0, 2616.0, 17.0)
$3331 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 212.0, 1807.0, 22.0)
$3332 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 1291.76, -803.4566, 1089.93)
$3333 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 1715.12, -1673.51, 20.22)
$3334 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 943.012, -939.8284, 57.7345)
$3335 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 275.169, 1859.699, 9.81)
$3336 = Pickup.Create(#BODYARMOUR, PickupType.Once, 1268.34, -804.33, 1084.01)
$3337 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 263.52, 83.14, 1001.039)
$3338 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 264.2632, 117.0737, 1008.813)
$3339 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 245.0618, 195.9429, 1008.172)
$3340 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 215.8489, 126.0831, 1003.226)
$3341 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 2125.493, -2275.037, 20.5202)
$3343 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 2230.45, -2286.004, 14.3751)
$3344 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 2743.0, 1316.0, 8.0)
$pickup_bribe = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 2168.66, 2267.96, 15.34)
$3346 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 2408.0, 1389.0, 22.0)
$3347 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 2034.0, 842.0, 10.0)
$3348 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 2096.0, 1287.0, 10.8)
$3349 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 1987.0, 1543.0, 16.0)
$3350 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 1854.0, 912.0, 10.8)
$3351 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 2540.38, 2527.85, 10.39)
$3352 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 1548.02, 1024.47, 10.39)
$3353 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 1592.91, 2053.83, 10.26)
$3354 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 1971.29, 2330.26, 10.41)
$3355 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 1700.74, 1792.7, 10.41)
$3356 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 2581.0, -1491.0, 24.0)
$3357 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 2296.0, -1696.0, 14.0)
$3358 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 2273.0, -1099.0, 38.0)
$3359 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 2716.0, -1048.0, 66.0)
$3360 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 2614.0, -2496.0, 33.0)
$3361 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 1183.85, -1250.68, 14.7)
$3362 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 1970.0, -1158.0, 21.0)
$3363 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 734.0, -1137.0, 18.0)
$3364 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 2553.76, -2464.31, 13.62)
$3365 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 1204.06, -1613.89, 13.28)
$3366 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 611.21, -1459.63, 14.01)
$3367 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 1116.67, -719.91, 100.17)
$3368 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -1903.1, -466.44, 25.18)
$3369 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -2657.0, -144.0, 4.0)
$3370 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -2454.0, -166.0, 35.0)
$3371 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -2009.0, 1227.0, 32.0)
$3372 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -2120.0, 96.39, 39.0)
$3373 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -2411.0, -334.0, 37.0)
$3374 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -1690.0, 450.0, 13.0)
$3375 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -1991.26, -1144.13, 29.69)
$3376 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -2636.13, -492.83, 70.09)
$3377 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -2022.68, 345.98, 35.17)
$3378 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -2683.2, 784.13, 49.98)
$3379 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -1820.67, -154.12, 9.4)
$3380 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -736.0, 66.0, 24.0)
$3381 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 262.33, -149.12, 1.58)
$3382 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 1643.0, 264.0, 20.0)
$3383 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 601.98, 2150.38, 39.41)
$3384 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -1407.0, -2039.0, 1.0)
$3385 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -2156.0, -2371.0, 31.0)
$3386 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -419.25, 1362.36, 12.21)
$3388 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 629.04, 2842.83, 25.21)
$3389 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 690.49, -209.59, 25.6)
$3390 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 88.82, -125.1, 0.85)
$3391 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, 215.69, 1089.1, 16.4)
$3392 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -2305.24, 2310.11, 4.98)
$3393 = Pickup.Create(#BRIBE, PickupType.OnStreetSlow, -213.61, 2717.44, 62.68)
terminate_this_script 

//-------------Mission 1---------------
// Originally: Initial 2

:INITIL2
script_name 'INITIL2'
$z_temp = 25
$cherry = 100
$grape = 250
$r_69 = 500
$bell = 1000
$bar1_o = 5000
set_var_int_to_var_int $bar2_o[0] = $bar1_o
set_var_int_to_var_int $bar2_o[1] = $grape
set_var_int_to_var_int $bar2_o[2] = $bell
set_var_int_to_var_int $bar2_o[3] = $r_69
set_var_int_to_var_int $bar2_o[4] = $z_temp
set_var_int_to_var_int $bar2_o[5] = $cherry
set_var_int_to_var_int $bar2_o[6] = $z_temp
set_var_int_to_var_int $bar2_o[7] = $cherry
set_var_int_to_var_int $bar2_o[8] = $r_69
set_var_int_to_var_int $bar2_o[9] = $grape
set_var_int_to_var_int $bar2_o[10] = $r_69
set_var_int_to_var_int $bar2_o[11] = $bell
set_var_int_to_var_int $bar2_o[12] = $z_temp
set_var_int_to_var_int $bar2_o[13] = $cherry
set_var_int_to_var_int $bar2_o[14] = $grape
set_var_int_to_var_int $bar2_o[15] = $cherry
set_var_int_to_var_int $bar2_o[16] = $r_69
set_var_int_to_var_int $bar2_o[17] = $z_temp
set_var_int_to_var_int $3430[0] = $grape
set_var_int_to_var_int $3430[1] = $r_69
set_var_int_to_var_int $3430[2] = $z_temp
set_var_int_to_var_int $3430[3] = $cherry
set_var_int_to_var_int $3430[4] = $bar1_o
set_var_int_to_var_int $3430[5] = $r_69
set_var_int_to_var_int $3430[6] = $cherry
set_var_int_to_var_int $3430[7] = $z_temp
set_var_int_to_var_int $3430[8] = $r_69
set_var_int_to_var_int $3430[9] = $bell
set_var_int_to_var_int $3430[10] = $cherry
set_var_int_to_var_int $3430[11] = $grape
set_var_int_to_var_int $3430[12] = $z_temp
set_var_int_to_var_int $3430[13] = $bell
set_var_int_to_var_int $3430[14] = $z_temp
set_var_int_to_var_int $3430[15] = $grape
set_var_int_to_var_int $3430[16] = $r_69
set_var_int_to_var_int $3430[17] = $cherry
set_var_int_to_var_int $3448[0] = $cherry
set_var_int_to_var_int $3448[1] = $z_temp
set_var_int_to_var_int $3448[2] = $grape
set_var_int_to_var_int $3448[3] = $r_69
set_var_int_to_var_int $3448[4] = $cherry
set_var_int_to_var_int $3448[5] = $r_69
set_var_int_to_var_int $3448[6] = $grape
set_var_int_to_var_int $3448[7] = $cherry
set_var_int_to_var_int $3448[8] = $z_temp
set_var_int_to_var_int $3448[9] = $bell
set_var_int_to_var_int $3448[10] = $bar1_o
set_var_int_to_var_int $3448[11] = $z_temp
set_var_int_to_var_int $3448[12] = $r_69
set_var_int_to_var_int $3448[13] = $grape
set_var_int_to_var_int $3448[14] = $cherry
set_var_int_to_var_int $3448[15] = $bell
set_var_int_to_var_int $3448[16] = $r_69
set_var_int_to_var_int $3448[17] = $z_temp
$3466 = 261.3555
$3471 = 399.3732
$reel_sprite_x = 219.0498
$reel_sprite_y = 356.6364
$3468 = 431.2757
$3473 = 424.3356
$3476 = 36.365
$3480 = 240.157
$3484 = 0.4714
$3486 = 2.5077
$rou_text_x = 29.3763
$rou_text_y = 20.0589
$rou_x_scale = 0.6253
$rou_y_scale = 2.7876
$3478 = 28.5106
$3482 = 220.0782
$3479 = 157.2242
$3483 = 409.3602
$3488 = 0
$roulette_triggered = -0.316
$spot1_topleft_x = 0.497
$spot1_topleft_y = 0.408
$spot36_bottomright_x = -1.342
set_var_float_to_var_float $x = $roulette_triggered
sub_float_var_from_float_var $x -= $spot1_topleft_y
set_var_float_to_var_float $y = $spot1_topleft_x
sub_float_var_from_float_var $y -= $spot36_bottomright_x
set_var_float_to_var_float $spot36_bottomright_y = $x
$spot36_bottomright_y /= 6.0
set_var_float_to_var_float $spot_size_x = $y
$spot_size_x /= 24.0
set_var_float_to_var_float $spot_size_y = $roulette_triggered
sub_float_var_from_float_var $spot_size_y -= $spot36_bottomright_y
set_var_float_to_var_float $spot1_x = $spot1_topleft_x
sub_float_var_from_float_var $spot1_x -= $spot_size_x
$spot1_y = -0.176
$spot1_z = 0.0
$spot_selection_x = 0.0
$spot_selection_y = 0.0
$chip_position_x = 0.0
$chip_position_y = 0.0
$spot_increment_x = 0.0
$spot_increment_y = 0
$roulette_flag = 0
$wheel_rotation_timer[0] = -2.0
$3657[0] = 2.0
$wheel_rotation_timer[1] = 0.0
$3657[1] = 0.0
$wheel_rotation_timer[2] = -2.0
$3657[2] = 0.0
$wheel_rotation_timer[3] = -4.0
$3657[3] = 0.0
$wheel_rotation_timer[4] = 0.0
$3657[4] = -2.0
$wheel_rotation_timer[5] = -2.0
$3657[5] = -2.0
$wheel_rotation_timer[6] = -4.0
$3657[6] = -2.0
$wheel_rotation_timer[7] = 0.0
$3657[7] = -4.0
$wheel_rotation_timer[8] = -2.0
$3657[8] = -4.0
$wheel_rotation_timer[9] = -4.0
$3657[9] = -4.0
$wheel_rotation_timer[10] = 0.0
$3657[10] = -6.0
$wheel_rotation_timer[11] = -2.0
$3657[11] = -6.0
$wheel_rotation_timer[12] = -4.0
$3657[12] = -6.0
$wheel_rotation_timer[13] = 0.0
$3657[13] = -8.0
$wheel_rotation_timer[14] = -2.0
$3657[14] = -8.0
$wheel_rotation_timer[15] = -4.0
$3657[15] = -8.0
$wheel_rotation_timer[16] = 0.0
$3657[16] = -10.0
$wheel_rotation_timer[17] = -2.0
$3657[17] = -10.0
$wheel_rotation_timer[18] = -4.0
$3657[18] = -10.0
$wheel_rotation_timer[19] = 0.0
$3657[19] = -12.0
$wheel_rotation_timer[20] = -2.0
$3657[20] = -12.0
$wheel_rotation_timer[21] = -4.0
$3657[21] = -12.0
$wheel_rotation_timer[22] = 0.0
$3657[22] = -14.0
$wheel_rotation_timer[23] = -2.0
$3657[23] = -14.0
$wheel_rotation_timer[24] = -4.0
$3657[24] = -14.0
$wheel_rotation_timer[25] = 0.0
$3657[25] = -16.0
$wheel_rotation_timer[26] = -2.0
$3657[26] = -16.0
$wheel_rotation_timer[27] = -4.0
$3657[27] = -16.0
$wheel_rotation_timer[28] = 0.0
$3657[28] = -18.0
$wheel_rotation_timer[29] = -2.0
$3657[29] = -18.0
$wheel_rotation_timer[30] = -4.0
$3657[30] = -18.0
$wheel_rotation_timer[31] = 0.0
$3657[31] = -20.0
$wheel_rotation_timer[32] = -2.0
$3657[32] = -20.0
$wheel_rotation_timer[33] = -4.0
$3657[33] = -20.0
$wheel_rotation_timer[34] = 0.0
$3657[34] = -22.0
$wheel_rotation_timer[35] = -2.0
$3657[35] = -22.0
$wheel_rotation_timer[36] = -4.0
$3657[36] = -22.0
$wheel_rotation_timer[37] = -1.0
$3657[37] = 0.0
$wheel_rotation_timer[38] = -3.0
$3657[38] = 0.0
$wheel_rotation_timer[39] = -1.0
$3657[39] = -2.0
$wheel_rotation_timer[40] = -3.0
$3657[40] = -2.0
$wheel_rotation_timer[41] = -1.0
$3657[41] = -4.0
$wheel_rotation_timer[42] = -3.0
$3657[42] = -4.0
$wheel_rotation_timer[43] = -1.0
$3657[43] = -6.0
$wheel_rotation_timer[44] = -3.0
$3657[44] = -6.0
$wheel_rotation_timer[45] = -1.0
$3657[45] = -8.0
$wheel_rotation_timer[46] = -3.0
$3657[46] = -8.0
$wheel_rotation_timer[47] = -1.0
$3657[47] = -10.0
$wheel_rotation_timer[48] = -3.0
$3657[48] = -10.0
$wheel_rotation_timer[49] = -1.0
$3657[49] = -12.0
$wheel_rotation_timer[50] = -3.0
$3657[50] = -12.0
$wheel_rotation_timer[51] = -1.0
$3657[51] = -14.0
$wheel_rotation_timer[52] = -3.0
$3657[52] = -14.0
$wheel_rotation_timer[53] = -1.0
$3657[53] = -16.0
$wheel_rotation_timer[54] = -3.0
$3657[54] = -16.0
$wheel_rotation_timer[55] = -1.0
$3657[55] = -18.0
$wheel_rotation_timer[56] = -3.0
$3657[56] = -18.0
$wheel_rotation_timer[57] = -1.0
$3657[57] = -20.0
$wheel_rotation_timer[58] = -3.0
$3657[58] = -20.0
$wheel_rotation_timer[59] = -1.0
$3657[59] = -22.0
$wheel_rotation_timer[60] = -3.0
$3657[60] = -22.0
$wheel_rotation_timer[61] = 0.0
$3657[61] = -1.0
$wheel_rotation_timer[62] = -2.0
$3657[62] = -1.0
$wheel_rotation_timer[63] = -4.0
$3657[63] = -1.0
$wheel_rotation_timer[64] = 0.0
$3657[64] = -3.0
$wheel_rotation_timer[65] = -2.0
$3657[65] = -3.0
$wheel_rotation_timer[66] = -4.0
$3657[66] = -3.0
$wheel_rotation_timer[67] = 0.0
$3657[67] = -5.0
$wheel_rotation_timer[68] = -2.0
$3657[68] = -5.0
$wheel_rotation_timer[69] = -4.0
$3657[69] = -5.0
$wheel_rotation_timer[70] = 0.0
$3657[70] = -7.0
$wheel_rotation_timer[71] = -2.0
$3657[71] = -7.0
$wheel_rotation_timer[72] = -4.0
$3657[72] = -7.0
$wheel_rotation_timer[73] = 0.0
$3657[73] = -9.0
$wheel_rotation_timer[74] = -2.0
$3657[74] = -9.0
$wheel_rotation_timer[75] = -4.0
$3657[75] = -9.0
$wheel_rotation_timer[76] = 0.0
$3657[76] = -11.0
$wheel_rotation_timer[77] = -2.0
$3657[77] = -11.0
$wheel_rotation_timer[78] = -4.0
$3657[78] = -11.0
$wheel_rotation_timer[79] = 0.0
$3657[79] = -13.0
$wheel_rotation_timer[80] = -2.0
$3657[80] = -13.0
$wheel_rotation_timer[81] = -4.0
$3657[81] = -13.0
$wheel_rotation_timer[82] = 0.0
$3657[82] = -15.0
$wheel_rotation_timer[83] = -2.0
$3657[83] = -15.0
$wheel_rotation_timer[84] = -4.0
$3657[84] = -15.0
$wheel_rotation_timer[85] = 0.0
$3657[85] = -17.0
$wheel_rotation_timer[86] = -2.0
$3657[86] = -17.0
$wheel_rotation_timer[87] = -4.0
$3657[87] = -17.0
$wheel_rotation_timer[88] = 0.0
$3657[88] = -19.0
$wheel_rotation_timer[89] = -2.0
$3657[89] = -19.0
$wheel_rotation_timer[90] = -4.0
$3657[90] = -19.0
$wheel_rotation_timer[91] = 0.0
$3657[91] = -21.0
$wheel_rotation_timer[92] = -2.0
$3657[92] = -21.0
$wheel_rotation_timer[93] = -4.0
$3657[93] = -21.0
$wheel_rotation_timer[94] = -5.0
$3657[94] = 0.0
$wheel_rotation_timer[95] = -5.0
$3657[95] = -2.0
$wheel_rotation_timer[96] = -5.0
$3657[96] = -4.0
$wheel_rotation_timer[97] = -5.0
$3657[97] = -6.0
$wheel_rotation_timer[98] = -5.0
$3657[98] = -8.0
$wheel_rotation_timer[99] = -5.0
$3657[99] = -10.0
$wheel_rotation_timer[100] = -5.0
$3657[100] = -12.0
$wheel_rotation_timer[101] = -5.0
$3657[101] = -14.0
$wheel_rotation_timer[102] = -5.0
$3657[102] = -16.0
$wheel_rotation_timer[103] = -5.0
$3657[103] = -18.0
$wheel_rotation_timer[104] = -5.0
$3657[104] = -20.0
$wheel_rotation_timer[105] = -5.0
$3657[105] = -22.0
$wheel_rotation_timer[106] = -1.0
$3657[106] = -1.0
$wheel_rotation_timer[107] = -3.0
$3657[107] = -1.0
$wheel_rotation_timer[108] = -1.0
$3657[108] = -3.0
$wheel_rotation_timer[109] = -3.0
$3657[109] = -3.0
$wheel_rotation_timer[110] = -1.0
$3657[110] = -5.0
$wheel_rotation_timer[111] = -3.0
$3657[111] = -5.0
$wheel_rotation_timer[112] = -1.0
$3657[112] = -7.0
$wheel_rotation_timer[113] = -3.0
$3657[113] = -7.0
$wheel_rotation_timer[114] = -1.0
$3657[114] = -9.0
$wheel_rotation_timer[115] = -3.0
$3657[115] = -9.0
$wheel_rotation_timer[116] = -1.0
$3657[116] = -11.0
$wheel_rotation_timer[117] = -3.0
$3657[117] = -11.0
$wheel_rotation_timer[118] = -1.0
$3657[118] = -13.0
$wheel_rotation_timer[119] = -3.0
$3657[119] = -13.0
$wheel_rotation_timer[120] = -1.0
$3657[120] = -15.0
$wheel_rotation_timer[121] = -3.0
$3657[121] = -15.0
$wheel_rotation_timer[122] = -1.0
$3657[122] = -17.0
$wheel_rotation_timer[123] = -3.0
$3657[123] = -17.0
$wheel_rotation_timer[124] = -1.0
$3657[124] = -19.0
$wheel_rotation_timer[125] = -3.0
$3657[125] = -19.0
$wheel_rotation_timer[126] = -1.0
$3657[126] = -21.0
$wheel_rotation_timer[127] = -3.0
$3657[127] = -21.0
$wheel_rotation_timer[128] = 0.0
$3657[128] = -24.0
$wheel_rotation_timer[129] = -2.0
$3657[129] = -24.0
$wheel_rotation_timer[130] = -4.0
$3657[130] = -24.0
$wheel_rotation_timer[131] = 2.0
$3657[131] = -3.0
$wheel_rotation_timer[132] = 2.0
$3657[132] = -11.0
$wheel_rotation_timer[133] = 2.0
$3657[133] = -19.0
$wheel_rotation_timer[134] = 4.0
$3657[134] = -1.0
$wheel_rotation_timer[135] = 4.0
$3657[135] = -21.0
$wheel_rotation_timer[136] = 4.0
$3657[136] = -5.0
$wheel_rotation_timer[137] = 4.0
$3657[137] = -17.0
$wheel_rotation_timer[138] = 4.0
$3657[138] = -9.0
$wheel_rotation_timer[139] = 4.0
$3657[139] = -13.0
$wheel_rotation_timer[140] = -5.0
$3657[140] = -1.0
$wheel_rotation_timer[141] = -5.0
$3657[141] = -3.0
$wheel_rotation_timer[142] = -5.0
$3657[142] = -5.0
$wheel_rotation_timer[143] = -5.0
$3657[143] = -7.0
$wheel_rotation_timer[144] = -5.0
$3657[144] = -9.0
$wheel_rotation_timer[145] = -5.0
$3657[145] = -11.0
$wheel_rotation_timer[146] = -5.0
$3657[146] = -13.0
$wheel_rotation_timer[147] = -5.0
$3657[147] = -15.0
$wheel_rotation_timer[148] = -5.0
$3657[148] = -17.0
$wheel_rotation_timer[149] = -5.0
$3657[149] = -19.0
$wheel_rotation_timer[150] = -5.0
$3657[150] = -21.0
$3808 = 345.3592
$sprite_x = 55.3183
set_var_int_to_constant $sprite_y[0] = 39608
set_var_int_to_constant $sprite_y[1] = 39609
set_var_int_to_constant $sprite_y[2] = 39610
set_var_int_to_constant $3813[0] = 39605
set_var_int_to_constant $3813[1] = 39606
set_var_int_to_constant $3813[2] = 39607
set_var_int_to_constant $3816[0] = 39651
set_var_int_to_constant $3816[1] = 39652
set_var_int_to_constant $3819[0] = 39648
set_var_int_to_constant $3819[1] = 39649
set_var_int_to_constant $3819[2] = 39650
set_var_int_to_constant $3819[3] = 39662
set_var_int_to_constant $3819[4] = 39663
set_var_int_to_constant $3819[5] = 39664
set_var_int_to_constant $3825[0] = 39653
set_var_int_to_constant $3825[1] = 39654
set_var_int_to_constant $3827[0] = 39600
set_var_int_to_constant $3827[1] = 39601
set_var_int_to_constant $3829[0] = 39638
set_var_int_to_constant $3829[1] = 39639
set_var_int_to_constant $3829[2] = 39640
set_var_int_to_constant $3829[3] = 39641
set_var_int_to_constant $3829[4] = 39642
set_var_int_to_constant $3829[5] = 39643
set_var_int_to_constant $3829[6] = 39644
set_var_int_to_constant $3829[7] = 39645
set_var_int_to_constant $3829[8] = 39646
set_var_int_to_constant $3829[9] = 39647
set_var_int_to_constant $3829[10] = 39611
set_var_int_to_constant $3829[11] = 39612
set_var_int_to_constant $3829[12] = 39613
set_var_int_to_constant $3829[13] = 39614
set_var_int_to_constant $3829[14] = 39615
set_var_int_to_constant $3829[15] = 39616
set_var_int_to_constant $3829[16] = 39617
set_var_int_to_constant $3829[17] = 39618
set_var_int_to_constant $3829[18] = 39619
set_var_int_to_constant $3829[19] = 39620
set_var_int_to_constant $3829[20] = 39621
set_var_int_to_constant $3829[21] = 39622
set_var_int_to_constant $3829[22] = 39623
set_var_int_to_constant $3829[23] = 39624
set_var_int_to_constant $3829[24] = 39625
set_var_int_to_constant $3829[25] = 39626
set_var_int_to_constant $3829[26] = 39627
set_var_int_to_constant $3829[27] = 39628
set_var_int_to_constant $3829[28] = 39629
set_var_int_to_constant $3829[29] = 39630
set_var_int_to_constant $3829[30] = 39631
set_var_int_to_constant $3829[31] = 39632
set_var_int_to_constant $3829[32] = 39633
set_var_int_to_constant $3829[33] = 39634
set_var_int_to_constant $3829[34] = 39635
set_var_int_to_constant $3829[35] = 39636
set_var_int_to_constant $3829[36] = 39637
set_var_int_to_constant $3866[0] = 39602
set_var_int_to_constant $3866[1] = 39603
set_var_int_to_constant $3866[2] = 39604
set_var_int_to_constant $3869[0] = 40008
set_var_int_to_constant $3869[1] = 40009
set_var_int_to_constant $3869[2] = 40010
set_var_int_to_constant $3872[0] = 40005
set_var_int_to_constant $3872[1] = 40006
set_var_int_to_constant $3872[2] = 40007
set_var_int_to_constant $3875[0] = 40051
set_var_int_to_constant $3875[1] = 40052
set_var_int_to_constant $3878[0] = 40048
set_var_int_to_constant $3878[1] = 40049
set_var_int_to_constant $3878[2] = 40050
set_var_int_to_constant $3878[3] = 40062
set_var_int_to_constant $3878[4] = 40063
set_var_int_to_constant $3878[5] = 40064
set_var_int_to_constant $3884[0] = 40053
set_var_int_to_constant $3884[1] = 40054
set_var_int_to_constant $3886[0] = 40000
set_var_int_to_constant $3886[1] = 40001
set_var_int_to_constant $3888[0] = 40038
set_var_int_to_constant $3888[1] = 40039
set_var_int_to_constant $3888[2] = 40040
set_var_int_to_constant $3888[3] = 40041
set_var_int_to_constant $3888[4] = 40042
set_var_int_to_constant $3888[5] = 40043
set_var_int_to_constant $3888[6] = 40044
set_var_int_to_constant $3888[7] = 40045
set_var_int_to_constant $3888[8] = 40046
set_var_int_to_constant $3888[9] = 40047
set_var_int_to_constant $3888[10] = 40011
set_var_int_to_constant $3888[11] = 40012
set_var_int_to_constant $3888[12] = 40013
set_var_int_to_constant $3888[13] = 40014
set_var_int_to_constant $3888[14] = 40015
set_var_int_to_constant $3888[15] = 40016
set_var_int_to_constant $3888[16] = 40017
set_var_int_to_constant $3888[17] = 40018
set_var_int_to_constant $3888[18] = 40019
set_var_int_to_constant $3888[19] = 40020
set_var_int_to_constant $3888[20] = 40021
set_var_int_to_constant $3888[21] = 40022
set_var_int_to_constant $3888[22] = 40023
set_var_int_to_constant $3888[23] = 40024
set_var_int_to_constant $3888[24] = 40025
set_var_int_to_constant $3888[25] = 40026
set_var_int_to_constant $3888[26] = 40027
set_var_int_to_constant $3888[27] = 40028
set_var_int_to_constant $3888[28] = 40029
set_var_int_to_constant $3888[29] = 40030
set_var_int_to_constant $3888[30] = 40031
set_var_int_to_constant $3888[31] = 40032
set_var_int_to_constant $3888[32] = 40033
set_var_int_to_constant $3888[33] = 40034
set_var_int_to_constant $3888[34] = 40035
set_var_int_to_constant $3888[35] = 40036
set_var_int_to_constant $3888[36] = 40037
set_var_int_to_constant $3925[0] = 40002
set_var_int_to_constant $3925[1] = 40003
set_var_int_to_constant $3925[2] = 40004
$3928[0] = -2307.723
$4013[0] = -2235.966
$4098[0] = 23.0204
$3928[1] = -2276.635
$4013[1] = -2220.047
$4098[1] = 28.716
$3928[2] = -2199.391
$4013[2] = -2283.952
$4098[2] = 30.1494
$3928[3] = -2105.437
$4013[3] = -2354.441
$4098[3] = 30.1419
$3928[4] = -2142.24
$4013[4] = -2410.32
$4098[4] = 30.497
$3928[5] = -2026.404
$4013[5] = -2507.761
$4098[5] = 32.0519
$3928[6] = -1938.526
$4013[6] = -2456.146
$4098[6] = 30.3298
$3928[7] = -1900.394
$4013[7] = -2424.618
$4098[7] = 31.9732
$3928[8] = -1862.806
$4013[8] = -2381.538
$4098[8] = 31.2712
$3928[9] = -1800.629
$4013[9] = -2319.639
$4098[9] = 40.2496
$3928[10] = -1707.158
$4013[10] = -2302.579
$4098[10] = 44.1806
$3928[11] = -1662.639
$4013[11] = -2186.958
$4098[11] = 33.5305
$3928[12] = -1688.256
$4013[12] = -2115.59
$4098[12] = 37.4741
$3928[13] = -1778.958
$4013[13] = -2090.098
$4098[13] = 49.6459
$3928[14] = -1868.425
$4013[14] = -2088.36
$4098[14] = 58.5847
$3928[15] = -1959.41
$4013[15] = -2047.85
$4098[15] = 71.8449
$3928[16] = -1947.789
$4013[16] = -1948.487
$4098[16] = 77.4592
$3928[17] = -1852.11
$4013[17] = -1920.47
$4098[17] = 87.5994
$3928[18] = -1754.616
$4013[18] = -1898.502
$4098[18] = 96.5566
$3928[19] = -1654.121
$4013[19] = -1900.045
$4098[19] = 90.8553
$3928[20] = -1554.651
$4013[20] = -1901.959
$4098[20] = 81.5693
$3928[21] = -1512.378
$4013[21] = -1807.028
$4098[21] = 57.9597
$3928[22] = -1433.233
$4013[22] = -1860.032
$4098[22] = 37.3383
$3928[23] = -1425.812
$4013[23] = -1962.023
$4098[23] = 15.8029
$3928[24] = -1298.451
$4013[24] = -2114.385
$4098[24] = 24.1506
$3928[25] = -1269.661
$4013[25] = -2251.145
$4098[25] = 21.2137
$3928[26] = -1260.525
$4013[26] = -2283.122
$4098[26] = 21.5858
$3928[27] = -1255.258
$4013[27] = -2307.536
$4098[27] = 22.066
$3928[28] = -1253.158
$4013[28] = -2315.343
$4098[28] = 22.5913
$3928[29] = -1216.728
$4013[29] = -2343.497
$4098[29] = 16.9383
$3928[30] = -1193.944
$4013[30] = -2355.995
$4098[30] = 18.7764
$3928[31] = -1104.68
$4013[31] = -2377.18
$4098[31] = 36.3239
$3928[32] = -1000.239
$4013[32] = -2371.509
$4098[32] = 64.5107
$3928[33] = -958.5369
$4013[33] = -2281.055
$4098[33] = 52.9462
$3928[34] = -939.7041
$4013[34] = -2187.095
$4098[34] = 35.4659
$3928[35] = -841.8345
$4013[35] = -2181.378
$4098[35] = 23.7405
$3928[36] = -790.3633
$4013[36] = -2095.343
$4098[36] = 25.4038
$3928[37] = -844.4321
$4013[37] = -2010.339
$4098[37] = 20.3482
$3928[38] = -809.238
$4013[38] = -1902.54
$4098[38] = 9.4239
$3928[39] = -735.21
$4013[39] = -1855.303
$4098[39] = 13.5207
$3928[40] = -641.8992
$4013[40] = -1846.861
$4098[40] = 21.7356
$3928[41] = -546.9716
$4013[41] = -1832.096
$4098[41] = 25.5599
$3928[42] = -460.5018
$4013[42] = -1800.012
$4098[42] = 8.5607
$3928[43] = -424.1711
$4013[43] = -1704.138
$4098[43] = 10.8356
$3928[44] = -410.4569
$4013[44] = -1611.74
$4098[44] = 20.2907
$3928[45] = -358.7348
$4013[45] = -1531.884
$4098[45] = 19.0268
$3928[46] = -342.9092
$4013[46] = -1455.663
$4098[46] = 17.8712
$3928[47] = -243.4206
$4013[47] = -1451.22
$4098[47] = 4.3198
$3928[48] = -193.0986
$4013[48] = -1477.038
$4098[48] = 7.9595
$3928[49] = -68.0509
$4013[49] = -1510.513
$4098[49] = 1.9303
$3928[50] = 31.2142
$4013[50] = -1526.881
$4098[50] = 4.3931
$3928[51] = 129.336
$4013[51] = -1459.612
$4098[51] = 23.8768
$3928[52] = 139.13
$4013[52] = -1255.649
$4098[52] = 44.9903
$3928[53] = 266.63
$4013[53] = -995.6493
$4098[53] = 50.9903
$3928[54] = 366.63
$4013[54] = -757.6493
$4098[54] = 16.4903
$3928[55] = 424.13
$4013[55] = -567.6493
$4098[55] = 38.9903
$3928[56] = 458.13
$4013[56] = -448.1493
$4098[56] = 30.9903
$3928[57] = 338.13
$4013[57] = -390.6493
$4098[57] = 12.9903
$3928[58] = 338.13
$4013[58] = -342.1493
$4098[58] = 8.9903
$3928[59] = 475.13
$4013[59] = -264.6493
$4098[59] = 9.9903
$3928[60] = 615.63
$4013[60] = -197.1493
$4098[60] = 9.9903
$3928[61] = 757.13
$4013[61] = -152.1493
$4098[61] = 18.4903
$3928[62] = 907.13
$4013[62] = -92.1493
$4098[62] = 19.9903
$3928[63] = 1135.63
$4013[63] = -63.6493
$4098[63] = 22.9903
$3928[64] = 1280.63
$4013[64] = -170.6493
$4098[64] = 32.4903
$3928[65] = 1440.63
$4013[65] = -214.6493
$4098[65] = 7.9903
$3928[66] = 1554.63
$4013[66] = -124.6493
$4098[66] = 17.9903
$3928[67] = 1551.63
$4013[67] = 46.8507
$4098[67] = 23.9903
$3928[68] = 1567.13
$4013[68] = 122.3507
$4098[68] = 28.9903
$3928[69] = 1807.13
$4013[69] = 75.3507
$4098[69] = 34.4903
$3928[70] = 2057.13
$4013[70] = 40.3507
$4098[70] = 26.9903
$3928[71] = 2275.63
$4013[71] = 41.8507
$4098[71] = 25.4903
$3928[72] = 2365.63
$4013[72] = 91.8507
$4098[72] = 25.4903
$3928[73] = 2435.63
$4013[73] = 41.8507
$4098[73] = 25.4903
$3928[74] = 2692.13
$4013[74] = 33.8507
$4098[74] = 25.4903
$3928[75] = 2737.63
$4013[75] = -156.1493
$4098[75] = 31.4903
$3928[76] = 2700.13
$4013[76] = -384.1493
$4098[76] = 24.4903
$3928[77] = 2820.13
$4013[77] = -554.1493
$4098[77] = 9.9903
$3928[78] = 2846.13
$4013[78] = -711.6493
$4098[78] = 9.9903
$3928[79] = 2841.63
$4013[79] = -929.1493
$4098[79] = 13.9903
$3928[80] = 2841.13
$4013[80] = -1182.649
$4098[80] = 23.9903
$3928[81] = 2873.13
$4013[81] = -1383.649
$4098[81] = 10.4903
$3928[82] = 2797.63
$4013[82] = -1380.649
$4098[82] = 20.9903
$3928[83] = 2795.13
$4013[83] = -1262.149
$4098[83] = 45.9903
$3928[84] = 2732.13
$4013[84] = -1257.649
$4098[84] = 58.9903
$4183[0] = 2487.846
$4299[0] = -1661.031
$4415[0] = 13.0886
$4183[1] = 2387.639
$4299[1] = -1657.847
$4415[1] = 13.1425
$4183[2] = 2287.486
$4299[2] = -1659.316
$4415[2] = 14.644
$4183[3] = 2188.221
$4299[3] = -1639.707
$4415[3] = 15.0652
$4183[4] = 2091.671
$4299[4] = -1612.541
$4415[4] = 13.1285
$4183[5] = 1990.505
$4299[5] = -1612.728
$4415[5] = 13.1392
$4183[6] = 1889.545
$4299[6] = -1612.92
$4415[6] = 13.1432
$4183[7] = 1788.509
$4299[7] = -1609.786
$4415[7] = 13.1208
$4183[8] = 1688.856
$4299[8] = -1592.988
$4415[8] = 13.1397
$4183[9] = 1587.913
$4299[9] = -1589.57
$4415[9] = 13.1277
$4183[10] = 1487.483
$4299[10] = -1592.59
$4415[10] = 13.1511
$4183[11] = 1386.551
$4299[11] = -1586.947
$4415[11] = 13.1234
$4183[12] = 1286.662
$4299[12] = -1571.949
$4415[12] = 13.1273
$4183[13] = 1185.751
$4299[13] = -1570.81
$4415[13] = 13.141
$4183[14] = 1084.591
$4299[14] = -1571.387
$4415[14] = 13.1352
$4183[15] = 1057.109
$4299[15] = -1474.388
$4415[15] = 13.1259
$4183[16] = 1061.076
$4299[16] = -1373.338
$4415[16] = 13.1525
$4183[17] = 1057.542
$4299[17] = -1273.05
$4415[17] = 13.1425
$4183[18] = 1058.531
$4299[18] = -1173.37
$4415[18] = 23.0197
$4183[19] = 963.0153
$4299[19] = -1141.863
$4415[19] = 23.4253
$4183[20] = 862.2285
$4299[20] = -1144.682
$4415[20] = 23.4156
$4183[21] = 796.4694
$4299[21] = -1069.208
$4415[21] = 24.2389
$4183[22] = 707.7682
$4299[22] = -1116.413
$4415[22] = 17.7387
$4183[23] = 648.3205
$4299[23] = -1197.185
$4415[23] = 17.2365
$4183[24] = 641.5527
$4299[24] = -1199.744
$4415[24] = 17.7693
$4183[25] = 568.4156
$4299[25] = -1131.509
$4415[25] = 26.222
$4183[26] = 469.6543
$4299[26] = -1113.59
$4415[26] = 27.6279
$4183[27] = 370.4434
$4299[27] = -1129.382
$4415[27] = 25.3758
$4183[28] = 274.1698
$4299[28] = -1156.751
$4415[28] = 21.1352
$4183[29] = 181.3566
$4299[29] = -1195.782
$4415[29] = 17.3878
$4183[30] = 94.4232
$4299[30] = -1245.732
$4415[30] = 14.5145
$4183[31] = 15.8414
$4299[31] = -1308.858
$4415[31] = 12.0496
$4183[32] = -62.2601
$4299[32] = -1372.58
$4415[32] = 11.3571
$4183[33] = -133.5467
$4299[33] = -1443.433
$4415[33] = 12.5484
$4183[34] = -201.4483
$4299[34] = -1518.152
$4415[34] = 14.3358
$4183[35] = -261.8274
$4299[35] = -1597.991
$4415[35] = 15.6199
$4183[36] = -295.7058
$4299[36] = -1693.143
$4415[36] = 14.4603
$4183[37] = -331.9772
$4299[37] = -1786.496
$4415[37] = 17.6881
$4183[38] = -367.9241
$4299[38] = -1879.787
$4415[38] = 25.9672
$4183[39] = -367.5844
$4299[39] = -1980.193
$4415[39] = 27.9446
$4183[40] = -350.2859
$4299[40] = -2079.723
$4415[40] = 28.0525
$4183[41] = -333.1001
$4299[41] = -2179.344
$4415[41] = 28.1703
$4183[42] = -297.5232
$4299[42] = -2273.428
$4415[42] = 29.7426
$4183[43] = -233.4477
$4299[43] = -2351.693
$4415[43] = 31.5324
$4183[44] = -159.7139
$4299[44] = -2420.795
$4415[44] = 35.957
$4183[45] = -92.2604
$4299[45] = -2496.009
$4415[45] = 38.2066
$4183[46] = -49.518
$4299[46] = -2586.409
$4415[46] = 43.3945
$4183[47] = -39.0012
$4299[47] = -2686.408
$4415[47] = 42.5762
$4183[48] = -71.9678
$4299[48] = -2781.283
$4415[48] = 39.1346
$4183[49] = -162.2194
$4299[49] = -2824.728
$4415[49] = 40.6313
$4183[50] = -261.9651
$4299[50] = -2815.27
$4415[50] = 50.816
$4183[51] = -357.7323
$4299[51] = -2787.403
$4415[51] = 61.6162
$4183[52] = -456.2191
$4299[52] = -2766.184
$4415[52] = 66.2852
$4183[53] = -555.2378
$4299[53] = -2751.549
$4415[53] = 65.7085
$4183[54] = -655.188
$4299[54] = -2748.977
$4415[54] = 69.8092
$4183[55] = -753.9544
$4299[55] = -2764.895
$4415[55] = 74.469
$4183[56] = -847.778
$4299[56] = -2801.963
$4415[56] = 70.6215
$4183[57] = -938.0959
$4299[57] = -2845.479
$4415[57] = 68.4226
$4183[58] = -1038.655
$4299[58] = -2853.158
$4415[58] = 67.4485
$4183[59] = -1139.419
$4299[59] = -2855.438
$4415[59] = 67.466
$4183[60] = -1239.449
$4299[60] = -2860.805
$4415[60] = 65.7173
$4183[61] = -1338.09
$4299[61] = -2878.668
$4415[61] = 55.5616
$4183[62] = -1435.335
$4299[62] = -2853.41
$4415[62] = 48.3088
$4183[63] = -1520.402
$4299[63] = -2799.315
$4415[63] = 46.6003
$4183[64] = -1600.969
$4299[64] = -2739.976
$4415[64] = 48.7977
$4183[65] = -1681.43
$4299[65] = -2679.765
$4415[65] = 48.2789
$4183[66] = -1745.168
$4299[66] = -2601.553
$4415[66] = 49.447
$4183[67] = -1823.681
$4299[67] = -2538.121
$4415[67] = 52.7491
$4183[68] = -1923.907
$4299[68] = -2539.927
$4415[68] = 38.6757
$4183[69] = -2019.306
$4299[69] = -2507.657
$4415[69] = 32.3084
$4183[70] = -2100.137
$4299[70] = -2446.756
$4415[70] = 30.2321
$4183[71] = -2179.157
$4299[71] = -2383.901
$4415[71] = 30.2293
$4183[72] = -2190.173
$4299[72] = -2284.406
$4415[72] = 30.2286
$4183[73] = -2264.34
$4299[73] = -2216.777
$4415[73] = 30.8563
$4183[74] = -2182.781
$4299[74] = -2160.892
$4415[74] = 47.4936
$4183[75] = -2110.828
$4299[75] = -2092.427
$4415[75] = 61.5663
$4183[76] = -2078.496
$4299[76] = -1997.306
$4415[76] = 60.012
$4183[77] = -2028.488
$4299[77] = -1910.774
$4415[77] = 48.5942
$4183[78] = -1971.902
$4299[78] = -1828.087
$4415[78] = 36.8357
$4183[79] = -1898.346
$4299[79] = -1760.456
$4415[79] = 29.4533
$4183[80] = -1808.711
$4299[80] = -1715.568
$4415[80] = 28.8706
$4183[81] = -1724.839
$4299[81] = -1660.957
$4415[81] = 36.2003
$4183[82] = -1631.223
$4299[82] = -1624.267
$4415[82] = 36.0242
$4183[83] = -1546.374
$4299[83] = -1570.568
$4415[83] = 37.4867
$4183[84] = -1626.075
$4299[84] = -1510.003
$4415[84] = 37.0858
$4183[85] = -1722.531
$4299[85] = -1483.55
$4415[85] = 34.2269
$4183[86] = -1807.41
$4299[86] = -1430.105
$4415[86] = 35.74
$4183[87] = -1894.584
$4299[87] = -1380.672
$4415[87] = 39.6104
$4183[88] = -1899.035
$4299[88] = -1280.731
$4415[88] = 39.2288
$4183[89] = -1896.879
$4299[89] = -1179.88
$4415[89] = 38.8035
$4183[90] = -1900.238
$4299[90] = -1078.988
$4415[90] = 37.9866
$4183[91] = -1896.756
$4299[91] = -978.951
$4415[91] = 41.2545
$4183[92] = -1896.016
$4299[92] = -878.1399
$4415[92] = 44.7055
$4183[93] = -1897.241
$4299[93] = -777.6757
$4415[93] = 44.692
$4183[94] = -1895.959
$4299[94] = -677.4996
$4415[94] = 41.0312
$4183[95] = -1894.737
$4299[95] = -576.5858
$4415[95] = 38.0016
$4183[96] = -1897.71
$4299[96] = -476.4786
$4415[96] = 37.9914
$4183[97] = -1896.154
$4299[97] = -376.3374
$4415[97] = 37.9879
$4183[98] = -1896.894
$4299[98] = -275.5032
$4415[98] = 37.9875
$4183[99] = -1895.73
$4299[99] = -174.2612
$4415[99] = 37.9884
$4183[100] = -1890.837
$4299[100] = -73.2693
$4415[100] = 38.0012
$4183[101] = -1890.615
$4299[101] = 27.5906
$4415[101] = 38.0035
$4183[102] = -1874.62
$4299[102] = 127.2809
$4415[102] = 37.9871
$4183[103] = -1842.755
$4299[103] = 222.3595
$4415[103] = 37.9736
$4183[104] = -1776.737
$4299[104] = 296.302
$4415[104] = 23.6187
$4183[105] = -1687.562
$4299[105] = 341.3
$4415[105] = 13.5061
$4183[106] = -1620.406
$4299[106] = 416.143
$4415[106] = 7.1363
$4183[107] = -1574.644
$4299[107] = 506.4197
$4415[107] = 6.9799
$4183[108] = -1557.715
$4299[108] = 605.5936
$4415[108] = 6.9312
$4183[109] = -1550.603
$4299[109] = 705.7773
$4415[109] = 6.8277
$4183[110] = -1532.975
$4299[110] = 806.2415
$4415[110] = 6.8058
$4183[111] = -1525.152
$4299[111] = 906.8005
$4415[111] = 6.8066
$4183[112] = -1560.428
$4299[112] = 1000.395
$4415[112] = 6.8073
$4183[113] = -1580.528
$4299[113] = 1099.026
$4415[113] = 6.805
$4183[114] = -1593.106
$4299[114] = 1198.824
$4415[114] = 6.7993
$4183[115] = -1612.8
$4299[115] = 1284.908
$4415[115] = 6.9396
$4531[0] = 2480.597
$4629[0] = -1659.156
$4727[0] = 13.0965
$4531[1] = 2379.881
$4629[1] = -1658.193
$4727[1] = 13.1467
$4531[2] = 2344.399
$4629[2] = -1564.435
$4727[2] = 23.9333
$4531[3] = 2343.672
$4629[3] = -1463.32
$4727[3] = 23.6044
$4531[4] = 2305.275
$4629[4] = -1370.793
$4727[4] = 23.6319
$4531[5] = 2303.441
$4629[5] = -1269.606
$4727[5] = 23.5946
$4531[6] = 2306.217
$4629[6] = -1169.403
$4727[6] = 26.0798
$4531[7] = 2213.07
$4629[7] = -1132.101
$4727[7] = 25.3774
$4531[8] = 2116.198
$4629[8] = -1104.905
$4727[8] = 24.8605
$4531[9] = 2022.478
$4629[9] = -1067.897
$4727[9] = 24.2557
$4531[10] = 1925.305
$4629[10] = -1039.768
$4727[10] = 23.612
$4531[11] = 1867.651
$4629[11] = -1121.554
$4727[11] = 23.4686
$4531[12] = 1777.408
$4629[12] = -1164.645
$4727[12] = 23.5025
$4531[13] = 1677.176
$4629[13] = -1162.405
$4727[13] = 23.4443
$4531[14] = 1576.553
$4629[14] = -1163.307
$4727[14] = 23.7111
$4531[15] = 1476.002
$4629[15] = -1159.845
$4727[15] = 23.6522
$4531[16] = 1376.964
$4629[16] = -1140.134
$4727[16] = 23.4968
$4531[17] = 1366.809
$4629[17] = -1040.218
$4727[17] = 26.2347
$4531[18] = 1371.418
$4629[18] = -940.2704
$4727[18] = 33.9599
$4531[19] = 1273.029
$4629[19] = -922.0916
$4727[19] = 41.8145
$4531[20] = 1174.404
$4629[20] = -940.6694
$4727[20] = 42.5196
$4531[21] = 1156.819
$4629[21] = -842.2726
$4727[21] = 49.739
$4531[22] = 1164.005
$4629[22] = -742.3879
$4727[22] = 60.319
$4531[23] = 1202.729
$4629[23] = -649.9714
$4727[23] = 59.6176
$4531[24] = 1231.284
$4629[24] = -554.9558
$4727[24] = 40.3091
$4531[25] = 1257.225
$4629[25] = -462.3789
$4727[25] = 12.7939
$4531[26] = 1255.678
$4629[26] = -362.5274
$4727[26] = 2.989
$4531[27] = 1230.684
$4629[27] = -267.0266
$4727[27] = 18.9881
$4531[28] = 1188.919
$4629[28] = -178.3956
$4727[28] = 40.7223
$4531[29] = 1088.56
$4629[29] = -182.8582
$4727[29] = 39.859
$4531[30] = 989.9222
$4629[30] = -180.4384
$4727[30] = 17.6728
$4531[31] = 889.5374
$4629[31] = -173.0015
$4727[31] = 10.7641
$4531[32] = 788.8903
$4629[32] = -164.4205
$4727[32] = 16.4595
$4531[33] = 689.4522
$4629[33] = -155.3612
$4727[33] = 22.89
$4531[34] = 589.6461
$4629[34] = -146.5947
$4727[34] = 29.747
$4531[35] = 510.978
$4629[35] = -208.5235
$4727[35] = 37.1529
$4531[36] = 491.5316
$4629[36] = -306.6292
$4727[36] = 42.7684
$4531[37] = 464.9347
$4629[37] = -402.1279
$4727[37] = 32.6014
$4531[38] = 370.5219
$4629[38] = -393.0328
$4727[38] = 23.9504
$4531[39] = 272.6069
$4629[39] = -378.1253
$4727[39] = 2.4636
$4531[40] = 206.3447
$4629[40] = -301.5085
$4727[40] = 1.1901
$4531[41] = 157.5706
$4629[41] = -213.2552
$4727[41] = 1.196
$4531[42] = 57.3466
$4629[42] = -208.4595
$4727[42] = 1.2183
$4531[43] = -43.1581
$4629[43] = -203.3529
$4727[43] = 1.3731
$4531[44] = -142.4222
$4629[44] = -187.639
$4727[44] = 1.6178
$4531[45] = -241.4735
$4629[45] = -167.4589
$4727[45] = 2.0199
$4531[46] = -298.0107
$4629[46] = -84.8255
$4727[46] = 1.2111
$4531[47] = -284.5947
$4629[47] = 14.7808
$4727[47] = 0.8422
$4531[48] = -255.5891
$4629[48] = 111.3571
$4727[48] = 0.8426
$4531[49] = -213.1467
$4629[49] = 202.6102
$4727[49] = 1.8256
$4531[50] = -292.432
$4629[50] = 264.4556
$4727[50] = 1.8382
$4531[51] = -391.0918
$4629[51] = 282.886
$4727[51] = 1.8926
$4531[52] = -491.862
$4629[52] = 287.5233
$4727[52] = 1.8369
$4531[53] = -592.0175
$4629[53] = 284.7173
$4727[53] = 1.8298
$4531[54] = -686.3195
$4629[54] = 250.5801
$4727[54] = 1.8305
$4531[55] = -770.4146
$4629[55] = 194.5963
$4727[55] = 1.6198
$4531[56] = -713.9178
$4629[56] = 113.2328
$4727[56] = 15.6558
$4531[57] = -759.8053
$4629[57] = 26.0654
$4727[57] = 33.0027
$4531[58] = -856.795
$4629[58] = -0.6516
$4727[58] = 32.9974
$4531[59] = -759.7305
$4629[59] = -20.4226
$4727[59] = 47.2165
$4531[60] = -801.2752
$4629[60] = -110.4809
$4727[60] = 63.4186
$4531[61] = -898.1945
$4629[61] = -137.0961
$4727[61] = 56.3295
$4531[62] = -946.6151
$4629[62] = -223.724
$4727[62] = 38.9582
$4531[63] = -968.4164
$4629[63] = -321.7283
$4727[63] = 36.142
$4531[64] = -991.3627
$4629[64] = -419.309
$4727[64] = 36.0027
$4531[65] = -1077.753
$4629[65] = -470.2693
$4727[65] = 33.7616
$4531[66] = -1136.252
$4629[66] = -551.6271
$4727[66] = 29.8955
$4531[67] = -1170.498
$4629[67] = -645.1342
$4727[67] = 42.4828
$4531[68] = -1205.133
$4629[68] = -737.6744
$4727[68] = 59.3098
$4531[69] = -1284.404
$4629[69] = -798.114
$4727[69] = 69.501
$4531[70] = -1381.958
$4629[70] = -817.3228
$4727[70] = 81.1519
$4531[71] = -1481.566
$4629[71] = -815.1219
$4727[71] = 66.9058
$4531[72] = -1579.51
$4629[72] = -800.5511
$4727[72] = 49.9587
$4531[73] = -1673.196
$4629[73] = -765.3336
$4727[73] = 41.5955
$4531[74] = -1754.994
$4629[74] = -708.9478
$4727[74] = 28.2593
$4531[75] = -1761.496
$4629[75] = -609.3593
$4727[75] = 15.9606
$4531[76] = -1820.37
$4629[76] = -528.3566
$4727[76] = 14.6995
$4531[77] = -1814.595
$4629[77] = -427.9472
$4727[77] = 14.7211
$4531[78] = -1803.963
$4629[78] = -328.1352
$4727[78] = 14.7287
$4531[79] = -1801.376
$4629[79] = -227.7857
$4727[79] = 14.7103
$4531[80] = -1801.019
$4629[80] = -126.9901
$4727[80] = 12.5775
$4531[81] = -1797.841
$4629[81] = -25.8091
$4727[81] = 14.8934
$4531[82] = -1805.531
$4629[82] = 73.9609
$4727[82] = 14.7143
$4531[83] = -1807.149
$4629[83] = 174.5928
$4727[83] = 14.7138
$4531[84] = -1800.194
$4629[84] = 275.5728
$4727[84] = 10.6028
$4531[85] = -1810.287
$4629[85] = 375.14
$4727[85] = 9.7906
$4531[86] = -1814.409
$4629[86] = 474.6516
$4727[86] = 23.4117
$4531[87] = -1877.944
$4629[87] = 551.0918
$4727[87] = 34.4247
$4531[88] = -1896.861
$4629[88] = 649.7911
$4727[88] = 37.0183
$4531[89] = -1895.051
$4629[89] = 750.2951
$4727[89] = 45.051
$4531[90] = -1893.937
$4629[90] = 850.3843
$4727[90] = 34.7833
$4531[91] = -1820.143
$4629[91] = 917.2139
$4727[91] = 24.9892
$4531[92] = -1719.022
$4629[92] = 917.0076
$4727[92] = 24.4954
$4531[93] = -1619.303
$4629[93] = 916.6608
$4727[93] = 7.634
$4531[94] = -1555.825
$4629[94] = 994.0962
$4727[94] = 6.8065
$4531[95] = -1579.963
$4629[95] = 1091.548
$4727[95] = 6.807
$4531[96] = -1588.588
$4629[96] = 1191.306
$4727[96] = 6.798
$4531[97] = -1612.353
$4629[97] = 1281.671
$4727[97] = 6.9398
$4825[0] = 2488.273
$4942[0] = -1659.969
$5059[0] = 13.0884
$4825[1] = 2387.719
$4942[1] = -1658.019
$5059[1] = 13.1467
$4825[2] = 2286.949
$4942[2] = -1658.583
$5059[2] = 14.6557
$4825[3] = 2187.451
$4942[3] = -1638.533
$5059[3] = 15.0393
$4825[4] = 2090.335
$4942[4] = -1611.906
$5059[4] = 13.1306
$4825[5] = 1990.331
$4942[5] = -1612.021
$5059[5] = 13.1388
$4825[6] = 1888.96
$4942[6] = -1614.385
$5059[6] = 13.1433
$4825[7] = 1787.243
$4942[7] = -1607.768
$5059[7] = 13.1244
$4825[8] = 1687.135
$4942[8] = -1592.272
$5059[8] = 13.1375
$4825[9] = 1586.952
$4942[9] = -1591.001
$5059[9] = 13.1297
$4825[10] = 1486.726
$4942[10] = -1590.779
$5059[10] = 13.152
$4825[11] = 1386.181
$4942[11] = -1585.607
$5059[11] = 13.1003
$4825[12] = 1286.662
$4942[12] = -1572.978
$5059[12] = 13.1664
$4825[13] = 1186.398
$4942[13] = -1571.876
$5059[13] = 13.1464
$4825[14] = 1085.49
$4942[14] = -1570.857
$5059[14] = 13.1351
$4825[15] = 985.0605
$4942[15] = -1571.431
$5059[15] = 13.141
$4825[16] = 884.2
$4942[16] = -1577.365
$5059[16] = 13.13
$4825[17] = 815.0362
$4942[17] = -1650.267
$5059[17] = 13.1344
$4825[18] = 810.6691
$4942[18] = -1750.188
$5059[18] = 13.1276
$4825[19] = 710.2051
$4942[19] = -1749.904
$5059[19] = 14.0481
$4825[20] = 612.0961
$4942[20] = -1727.222
$5059[20] = 13.6595
$4825[21] = 512.0588
$4942[21] = -1711.107
$5059[21] = 11.9235
$4825[22] = 411.9842
$4942[22] = -1701.354
$5059[22] = 8.9795
$4825[23] = 310.8292
$4942[23] = -1701.127
$5059[23] = 6.3614
$4825[24] = 210.8359
$4942[24] = -1692.62
$5059[24] = 7.4032
$4825[25] = 162.6634
$4942[25] = -1604.718
$5059[25] = 15.512
$4825[26] = 96.6228
$4942[26] = -1530.289
$5059[26] = 5.2206
$4825[27] = -4.3045
$4942[27] = -1520.765
$5059[27] = 1.3181
$4825[28] = -100.2442
$4942[28] = -1492.018
$5059[28] = 2.444
$4825[29] = -150.6629
$4942[29] = -1404.912
$5059[29] = 2.4387
$4825[30] = -125.7253
$4942[30] = -1307.639
$5059[30] = 2.6123
$4825[31] = -85.3976
$4942[31] = -1398.901
$5059[31] = 11.9881
$4825[32] = -156.1722
$4942[32] = -1470.046
$5059[32] = 12.557
$4825[33] = -224.7423
$4942[33] = -1543.44
$5059[33] = 15.2432
$4825[34] = -278.3897
$4942[34] = -1627.836
$5059[34] = 15.4404
$4825[35] = -309.6147
$4942[35] = -1722.891
$5059[35] = 14.4331
$4825[36] = -347.4445
$4942[36] = -1815.805
$5059[36] = 20.3824
$4825[37] = -375.8723
$4942[37] = -1911.975
$5059[37] = 27.4563
$4825[38] = -367.3835
$4942[38] = -2012.258
$5059[38] = 27.9796
$4825[39] = -352.257
$4942[39] = -2111.555
$5059[39] = 28.1054
$4825[40] = -325.2379
$4942[40] = -2208.254
$5059[40] = 28.2795
$4825[41] = -411.8825
$4942[41] = -2256.126
$5059[41] = 43.9768
$4825[42] = -507.0649
$4942[42] = -2286.252
$5059[42] = 32.8761
$4825[43] = -579.3828
$4942[43] = -2355.297
$5059[43] = 26.9589
$4825[44] = -678.7022
$4942[44] = -2358.307
$5059[44] = 38.2611
$4825[45] = -752.1234
$4942[45] = -2421.517
$5059[45] = 63.3924
$4825[46] = -819.2419
$4942[46] = -2493.365
$5059[46] = 82.6824
$4825[47] = -890.7695
$4942[47] = -2563.279
$5059[47] = 90.2311
$4825[48] = -981.5709
$4942[48] = -2605.962
$5059[48] = 86.4663
$4825[49] = -1080.225
$4942[49] = -2592.215
$5059[49] = 76.2713
$4825[50] = -1161.929
$4942[50] = -2534.01
$5059[50] = 67.2918
$4825[51] = -1179.818
$4942[51] = -2436.012
$5059[51] = 53.4017
$4825[52] = -1164.983
$4942[52] = -2337.243
$5059[52] = 41.315
$4825[53] = -1134.131
$4942[53] = -2242.25
$5059[53] = 33.4991
$4825[54] = -1097.972
$4942[54] = -2148.736
$5059[54] = 35.7186
$4825[55] = -1047.998
$4942[55] = -2064.019
$5059[55] = 54.2015
$4825[56] = -998.8296
$4942[56] = -1979.083
$5059[56] = 73.7414
$4825[57] = -1062.2
$4942[57] = -1901.606
$5059[57] = 76.9899
$4825[58] = -1161.378
$4942[58] = -1886.014
$5059[58] = 77.91
$4825[59] = -1206.338
$4942[59] = -1800.164
$5059[59] = 51.1433
$4825[60] = -1271.566
$4942[60] = -1723.902
$5059[60] = 45.7799
$4825[61] = -1353.911
$4942[61] = -1666.739
$5059[61] = 45.1373
$4825[62] = -1446.169
$4942[62] = -1627.665
$5059[62] = 44.393
$4825[63] = -1543.799
$4942[63] = -1605.511
$5059[63] = 37.4879
$4825[64] = -1583.018
$4942[64] = -1513.157
$5059[64] = 37.4862
$4825[65] = -1681.619
$4942[65] = -1493.674
$5059[65] = 34.781
$4825[66] = -1771.401
$4942[66] = -1448.094
$5059[66] = 34.5515
$4825[67] = -1859.213
$4942[67] = -1399.628
$5059[67] = 38.1758
$4825[68] = -1944.476
$4942[68] = -1347.211
$5059[68] = 40.559
$4825[69] = -2006.201
$4942[69] = -1268.181
$5059[69] = 36.2375
$4825[70] = -2057.926
$4942[70] = -1182.227
$5059[70] = 31.9717
$4825[71] = -2105.244
$4942[71] = -1093.758
$5059[71] = 29.8948
$4825[72] = -2169.432
$4942[72] = -1016.588
$5059[72] = 33.6278
$4825[73] = -2214.329
$4942[73] = -927.0612
$5059[73] = 42.1936
$4825[74] = -2196.712
$4942[74] = -829.6929
$5059[74] = 58.5525
$4825[75] = -2261.177
$4942[75] = -755.0598
$5059[75] = 75.9781
$4825[76] = -2341.961
$4942[76] = -707.3872
$5059[76] = 110.6889
$4825[77] = -2400.182
$4942[77] = -628.3421
$5059[77] = 131.575
$4825[78] = -2453.648
$4942[78] = -544.386
$5059[78] = 121.1835
$4825[79] = -2526.894
$4942[79] = -485.9847
$5059[79] = 85.0712
$4825[80] = -2446.844
$4942[80] = -425.2606
$5059[80] = 84.4373
$4825[81] = -2354.251
$4942[81] = -463.4032
$5059[81] = 79.948
$4825[82] = -2389.566
$4942[82] = -369.9571
$5059[82] = 75.0462
$4825[83] = -2489.354
$4942[83] = -363.9357
$5059[83] = 63.4133
$4825[84] = -2588.571
$4942[84] = -366.5697
$5059[84] = 46.1223
$4825[85] = -2672.897
$4942[85] = -418.9947
$5059[85] = 31.9261
$4825[86] = -2681.235
$4942[86] = -517.9654
$5059[86] = 17.1435
$4825[87] = -2777.102
$4942[87] = -490.7432
$5059[87] = 6.9382
$4825[88] = -2818.191
$4942[88] = -399.3717
$5059[88] = 6.8041
$4825[89] = -2811.526
$4942[89] = -299.0307
$5059[89] = 6.8035
$4825[90] = -2805.668
$4942[90] = -198.8723
$5059[90] = 6.7879
$4825[91] = -2808.854
$4942[91] = -97.9767
$5059[91] = 6.7909
$4825[92] = -2809.093
$4942[92] = 2.2906
$5059[92] = 6.8002
$4825[93] = -2804.685
$4942[93] = 102.3091
$5059[93] = 6.8277
$4825[94] = -2806.474
$4942[94] = 202.4786
$5059[94] = 6.807
$4825[95] = -2807.934
$4942[95] = 302.7264
$5059[95] = 6.3467
$4825[96] = -2849.526
$4942[96] = 394.1544
$5059[96] = 4.1824
$4825[97] = -2843.374
$4942[97] = 494.5805
$5059[97] = 4.1463
$4825[98] = -2825.592
$4942[98] = 593.7442
$5059[98] = 5.2247
$4825[99] = -2830.803
$4942[99] = 692.401
$5059[99] = 22.7063
$4825[100] = -2856.007
$4942[100] = 788.662
$5059[100] = 35.799
$4825[101] = -2817.792
$4942[101] = 880.8148
$5059[101] = 43.7304
$4825[102] = -2840.386
$4942[102] = 978.9179
$5059[102] = 43.2024
$4825[103] = -2876.457
$4942[103] = 1071.905
$5059[103] = 30.8111
$4825[104] = -2875.885
$4942[104] = 1169.952
$5059[104] = 11.0039
$4825[105] = -2826.602
$4942[105] = 1257.501
$5059[105] = 5.3188
$4825[106] = -2728.815
$4942[106] = 1280.354
$5059[106] = 6.828
$4825[107] = -2629.314
$4942[107] = 1297.977
$5059[107] = 6.7957
$4825[108] = -2548.262
$4942[108] = 1358.467
$5059[108] = 7.3351
$4825[109] = -2448.621
$4942[109] = 1370.268
$5059[109] = 6.7969
$4825[110] = -2347.698
$4942[110] = 1366.408
$5059[110] = 6.9813
$4825[111] = -2253.195
$4942[111] = 1333.593
$5059[111] = 6.801
$4825[112] = -2152.642
$4942[112] = 1334.962
$5059[112] = 6.8483
$4825[113] = -2055.385
$4942[113] = 1309.631
$5059[113] = 6.9547
$4825[114] = -1957.98
$4942[114] = 1286.638
$5059[114] = 6.9474
$4825[115] = -1868.502
$4942[115] = 1332.573
$5059[115] = 6.9476
$4825[116] = -1837.603
$4942[116] = 1425.719
$5059[116] = 6.9399
$5176 = Object.Create(#A51_VENTCOVERB, 245.968, 1862.843, 19.49)
Object.SetRotation($5176, 0.0, 0.0, -140.998)
Object.DontRemove($5176)
$a51ventcover = CarGenerator.Create(-2093.9, -83.7, 33.9, 359.1, 506, 31, 0, True, 0, 0, 0, 10000)
CarGenerator.Switch($a51ventcover, 0)
$5182 = CarGenerator.Create(-2076.8, -84.0, 33.7, 1.1, 541, 15, 15, True, 0, 0, 0, 10000)
CarGenerator.Switch($5182, 0)
$f1_silver_car_gen = CarGenerator.CreateWithPlate(-2064.4, -83.7, 34.1, 0.0, 434, 15, 15, True, 0, 0, 0, 10000, "__GOLD__")
CarGenerator.Switch($f1_silver_car_gen, 0)
$f1_chunky = CarGenerator.CreateWithPlate(-2273.2, -130.8, 33.9, 270.4, 429, 79, 0, True, 0, 0, 0, 10000, "__DBP___")
CarGenerator.Switch($f1_chunky, 0)
$f1_gold_car_gen = CarGenerator.CreateWithPlate(-2354.6, 983.0, 49.3, 189.4, 541, 24, 40, True, 0, 0, 0, 10000, "_CHUNKY_")
CarGenerator.Switch($f1_gold_car_gen, 0)
$f1_scripted_cut = CarGenerator.Create(-2151.0, -409.1, 34.1, 307.2, 504, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($f1_scripted_cut, 0)
$f1_blood_car_gen[0] = CarGenerator.Create(1544.0, -1352.0, 329.0, 95.0, 487, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[1] = CarGenerator.Create(-1963.0, 628.0, 151.0, 182.0, 469, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[2] = CarGenerator.Create(-1681.0, 705.0, 31.0, 90.0, 487, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[3] = CarGenerator.Create(-2630.0, 684.0, 72.0, 180.0, 487, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[4] = CarGenerator.Create(-2726.0, 682.0, 72.0, 90.0, 563, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[5] = CarGenerator.Create(-2227.0, 2329.0, 8.0, 180.0, 447, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[6] = CarGenerator.Create(2619.0, 2721.0, 37.0, 90.0, 548, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[7] = CarGenerator.Create(2092.0, 2415.0, 75.0, 260.0, 487, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[8] = CarGenerator.Create(292.0, 2542.0, 16.0, 180.0, 520, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[9] = CarGenerator.Create(-1286.0, 501.5, 18.0, 270.0, 520, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[10] = CarGenerator.Create(-959.0813, 2629.206, 43.229, 110.0, 460, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[11] = CarGenerator.Create(273.0045, -1876.038, 5.2935, 271.51, 563, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[12] = CarGenerator.Create(1561.865, -1701.953, 27.948, 0.0015, 497, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[13] = CarGenerator.Create(-637.1, 1811.953, 1.7, 180.0015, 460, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[14] = CarGenerator.Create(-1443.081, -523.2058, 13.9929, 267.0, 593, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[15] = CarGenerator.Create(-1363.005, -484.0377, 13.9, 200.51, 593, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[16] = CarGenerator.Create(-1180.865, -351.9529, 13.948, 0.0015, 553, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[17] = CarGenerator.Create(-1289.1, -353.9529, 13.9, 219.0015, 519, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[18] = CarGenerator.Create(-1253.1, -347.9529, 13.9, 219.0015, 519, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[19] = CarGenerator.Create(-1387.1, -227.9529, 13.9, 312.0015, 553, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[20] = CarGenerator.Create(-1220.1, -150.9529, 13.9, 519.0015, 519, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[21] = CarGenerator.Create(-1244.674, -599.1741, 13.9, 48.6377, 487, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[22] = CarGenerator.Create(-1215.1, -6.14, 13.9, 95.0015, 417, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[23] = CarGenerator.Create(-1190.1, 22.14, 13.9, 45.0015, 563, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[24] = CarGenerator.Create(-1374.1, -503.14, 13.9, 249.0015, 476, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[25] = CarGenerator.Create(-1608.724, 286.14, 6.22, 55.0015, 425, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[26] = CarGenerator.Create(1586.941, 1190.642, 10.863, 180.0, 577, -1, -1, False, 0, 0, 0, 10000)
$f1_blood_car_gen[27] = CarGenerator.Create(-1629.28, -236.14, 13.9, 129.0015, 511, -1, -1, False, 0, 0, 0, 10000)
$f1_bronze_car_gen = CarGenerator.Create(277.55, 1989.35, 17.21, 270.0, 432, -1, -1, False, 0, 0, 0, 10000)
$area51_gen = CarGenerator.Create(281.23, 2022.33, 17.21, 270.0, 432, -1, -1, False, 0, 0, 0, 10000)
$5180 = CarGenerator.Create(307.35, 1990.25, 17.21, 320.0, 520, -1, -1, False, 0, 0, 0, 10000)
$5181 = CarGenerator.Create(307.35, 2031.36, 17.21, 320.0, 520, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($f1_bronze_car_gen, 0)
CarGenerator.Switch($area51_gen, 0)
CarGenerator.Switch($5180, 0)
CarGenerator.Switch($5181, 0)
CarGenerator.Switch($f1_blood_car_gen[0], 0)
CarGenerator.Switch($f1_blood_car_gen[1], 0)
CarGenerator.Switch($f1_blood_car_gen[2], 0)
CarGenerator.Switch($f1_blood_car_gen[3], 0)
CarGenerator.Switch($f1_blood_car_gen[4], 0)
CarGenerator.Switch($f1_blood_car_gen[5], 0)
CarGenerator.Switch($f1_blood_car_gen[6], 0)
CarGenerator.Switch($f1_blood_car_gen[7], 0)
CarGenerator.Switch($f1_blood_car_gen[8], 0)
CarGenerator.Switch($f1_blood_car_gen[9], 0)
CarGenerator.Switch($f1_blood_car_gen[10], 0)
CarGenerator.Switch($f1_blood_car_gen[11], 0)
CarGenerator.Switch($f1_blood_car_gen[12], 0)
CarGenerator.Switch($f1_blood_car_gen[13], 0)
CarGenerator.Switch($f1_blood_car_gen[14], 0)
CarGenerator.Switch($f1_blood_car_gen[15], 0)
CarGenerator.Switch($f1_blood_car_gen[16], 0)
CarGenerator.Switch($f1_blood_car_gen[17], 0)
CarGenerator.Switch($f1_blood_car_gen[18], 0)
CarGenerator.Switch($f1_blood_car_gen[19], 0)
CarGenerator.Switch($f1_blood_car_gen[20], 0)
CarGenerator.Switch($f1_blood_car_gen[21], 0)
CarGenerator.Switch($f1_blood_car_gen[22], 0)
CarGenerator.Switch($f1_blood_car_gen[23], 0)
CarGenerator.Switch($f1_blood_car_gen[24], 0)
CarGenerator.Switch($f1_blood_car_gen[25], 0)
CarGenerator.Switch($f1_blood_car_gen[26], 101)
CarGenerator.Switch($f1_blood_car_gen[27], 0)
$5216[0] = CarGenerator.Create(-1443.081, -523.2058, 13.9929, 267.0, 593, -1, -1, False, 0, 100, 0, 10000)
$5216[1] = CarGenerator.Create(-1363.005, -484.0377, 13.9, 200.51, 593, -1, -1, False, 0, 100, 0, 10000)
$5216[2] = CarGenerator.Create(-1180.865, -351.9529, 13.948, 0.0015, 553, -1, -1, False, 0, 100, 0, 10000)
$5216[3] = CarGenerator.Create(-1289.1, -353.9529, 13.9, 219.0015, 519, -1, -1, False, 0, 100, 0, 10000)
$5216[4] = CarGenerator.Create(-1253.1, -347.9529, 13.9, 219.0015, 519, -1, -1, False, 0, 100, 0, 10000)
$5216[5] = CarGenerator.Create(-1387.1, -227.9529, 13.9, 312.0015, 553, -1, -1, False, 0, 100, 0, 10000)
$5216[6] = CarGenerator.Create(-1220.1, -150.9529, 13.9, 519.0015, 519, -1, -1, False, 0, 100, 0, 10000)
$5216[7] = CarGenerator.Create(-1244.674, -599.1741, 13.9, 48.6377, 487, -1, -1, True, 0, 0, 100, 10000)
$5216[8] = CarGenerator.Create(-1215.1, -6.14, 13.9, 95.0015, 417, -1, -1, False, 0, 100, 0, 10000)
$5216[9] = CarGenerator.Create(-1190.1, 22.14, 13.9, 45.0015, 563, -1, -1, False, 0, 100, 0, 10000)
$5216[10] = CarGenerator.Create(-1374.1, -503.14, 13.9, 249.0015, 476, -1, -1, False, 0, 100, 0, 10000)
$5216[11] = CarGenerator.Create(-1629.28, -236.14, 13.9, 129.0015, 511, -1, -1, False, 0, 100, 0, 10000)
CarGenerator.Switch($5216[0], 101)
CarGenerator.Switch($5216[1], 101)
CarGenerator.Switch($5216[2], 101)
CarGenerator.Switch($5216[3], 101)
CarGenerator.Switch($5216[4], 101)
CarGenerator.Switch($5216[5], 101)
CarGenerator.Switch($5216[6], 101)
CarGenerator.Switch($5216[7], 101)
CarGenerator.Switch($5216[8], 101)
CarGenerator.Switch($5216[9], 101)
CarGenerator.Switch($5216[10], 101)
CarGenerator.Switch($5216[11], 101)
$5228 = CarGenerator.Create(927.7213, -1185.042, 16.5, 123.3055, 457, -1, -1, False, 0, 0, 0, 10000)
$gen_car_film_studio_LA = CarGenerator.Create(927.5233, -1182.365, 16.5, 123.3055, 457, -1, -1, False, 0, 0, 0, 10000)
$5230 = CarGenerator.Create(926.9179, -1178.95, 16.5, 123.3055, 457, -1, -1, False, 0, 0, 0, 10000)
$5231 = CarGenerator.Create(861.3535, -1240.759, 14.5, 180.1308, 457, -1, -1, False, 0, 0, 0, 10000)
$5232 = CarGenerator.Create(837.7494, -1206.574, 16.5, 153.2632, 508, -1, -1, False, 0, 0, 0, 10000)
$5233 = CarGenerator.Create(897.5168, -1207.991, 16.5, 86.5989, 508, -1, -1, False, 0, 0, 0, 10000)
$5234 = CarGenerator.Create(736.2398, -1334.195, 13.5411, 267.8109, 508, -1, -1, False, 0, 0, 0, 10000)
$5235 = CarGenerator.Create(736.9623, -1343.907, 13.5197, 273.7721, 508, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($5228, 101)
CarGenerator.Switch($gen_car_film_studio_LA, 101)
CarGenerator.Switch($5230, 101)
CarGenerator.Switch($5231, 101)
CarGenerator.Switch($5232, 101)
CarGenerator.Switch($5233, 101)
CarGenerator.Switch($5234, 101)
CarGenerator.Switch($5235, 101)
$5236 = Pickup.CreateWithAmmo(355, PickupType.OnStreetSlow, 60, 825.921, -1165.813, 17.8936)
$pickups_film_studio = Pickup.CreateWithAmmo(350, PickupType.OnStreetSlow, 40, 832.603, -1273.861, 14.4833)
$5238 = Pickup.Create(334, PickupType.OnStreetSlow, 911.6486, -1235.39, 17.6802)
$5239 = Pickup.Create(358, PickupType.OnStreetSlow, 733.4333, -1356.47, 23.5229)
$5243 = CarGenerator.Create(-2408.511, -2186.024, 32.89, 321.692, 468, -1, -1, False, 0, 0, 0, 10000)
$car_gen_mtchiliad = CarGenerator.Create(-2407.606, -2177.092, 32.89, 321.692, 510, -1, -1, False, 0, 0, 0, 10000)
$5245 = CarGenerator.Create(-2338.565, -1593.833, 482.9451, 20.751, 508, -1, -1, False, 0, 0, 0, 10000)
$5246 = CarGenerator.Create(-2343.37, -1613.943, 482.9757, 105.53, 483, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($5243, 101)
CarGenerator.Switch($car_gen_mtchiliad, 101)
CarGenerator.Switch($5245, 101)
CarGenerator.Switch($5246, 101)
$5247 = CarGenerator.Create(-2213.556, 112.7671, 34.9203, 88.472, 571, -1, -1, False, 0, 0, 0, 10000)
$car_gen_go_kart = CarGenerator.Create(-2693.386, -139.4564, 3.93359, 90.0856, 571, -1, -1, False, 0, 0, 0, 10000)
$5249 = CarGenerator.Create(-2796.468, -94.1788, 6.9875, 42.6945, 571, -1, -1, False, 0, 0, 0, 10000)
$5250 = CarGenerator.Create(-2206.051, 701.2161, 48.9453, 183.4174, 571, -1, -1, False, 0, 0, 0, 10000)
$5251 = CarGenerator.Create(-810.5599, 2430.363, 156.9649, 336.533, 571, -1, -1, False, 0, 0, 0, 10000)
$5252 = CarGenerator.Create(-1693.441, 432.2852, 6.9914, 300.903, 571, -1, -1, False, 0, 0, 0, 10000)
$5253 = CarGenerator.Create(-2116.138, 924.8068, 85.9791, 94.9293, 571, -1, -1, False, 0, 0, 0, 10000)
$5254 = CarGenerator.Create(-1483.69, 2614.835, 58.2812, 337.9383, 571, -1, -1, False, 0, 0, 0, 10000)
$5255 = CarGenerator.Create(1419.698, 1947.996, 10.9531, 6.9689, 571, -1, -1, False, 0, 0, 0, 10000)
$5256 = CarGenerator.Create(1567.389, 2691.118, 10.265, 279.9875, 571, -1, -1, False, 0, 0, 0, 10000)
$5257 = CarGenerator.Create(-2087.367, -2519.016, 29.925, 90.9178, 571, -1, -1, False, 0, 0, 0, 10000)
$5258 = CarGenerator.Create(2615.317, 1939.701, 10.129, 148.1757, 571, -1, -1, False, 0, 0, 0, 10000)
$5259 = CarGenerator.Create(1074.964, 1395.418, 5.303, 36.7673, 571, -1, -1, False, 0, 0, 0, 10000)
$5260 = CarGenerator.Create(2615.239, -1731.225, 5.9486, 140.8213, 571, -1, -1, False, 0, 0, 0, 10000)
$5261 = CarGenerator.Create(1305.176, -796.6955, 83.9477, 185.9911, 571, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($5247, 0)
CarGenerator.Switch($car_gen_go_kart, 0)
CarGenerator.Switch($5249, 0)
CarGenerator.Switch($5250, 0)
CarGenerator.Switch($5251, 0)
CarGenerator.Switch($5252, 0)
CarGenerator.Switch($5253, 0)
CarGenerator.Switch($5254, 0)
CarGenerator.Switch($5255, 0)
CarGenerator.Switch($5256, 0)
CarGenerator.Switch($5257, 0)
CarGenerator.Switch($5258, 0)
CarGenerator.Switch($5259, 0)
CarGenerator.Switch($5260, 0)
CarGenerator.Switch($5261, 0)
$5262 = CarGenerator.Create(-2294.926, 2546.978, 5.9175, 290.9339, 539, -1, -1, False, 0, 0, 0, 10000)
$car_gen_hover = CarGenerator.Create(714.3436, -1488.273, 0.9343, 270.0, 539, -1, -1, False, 0, 0, 0, 10000)
$5264 = CarGenerator.Create(-1426.412, 506.8391, 2.9463, 144.61, 539, -1, -1, False, 0, 0, 0, 10000)
$5265 = CarGenerator.Create(1971.92, 1560.665, 10.9635, 262.615, 539, -1, -1, False, 0, 0, 0, 10000)
$5266 = CarGenerator.Create(-535.4126, -60.8884, 63.5922, 276.9756, 539, -1, -1, False, 0, 0, 0, 10000)
$5267 = CarGenerator.Create(-910.27, 2699.06, 42.8, 110.8738, 539, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($5262, 0)
CarGenerator.Switch($car_gen_hover, 0)
CarGenerator.Switch($5264, 0)
CarGenerator.Switch($5265, 0)
CarGenerator.Switch($5266, 0)
CarGenerator.Switch($5267, 0)
$5268 = CarGenerator.Create(1291.5, -787.5, 95.4555, 180.0, 469, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($5268, 0)
$car_gen_sparrow = CarGenerator.Create(435.2751, 2527.523, 16.371, 90.0, 461, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($car_gen_sparrow, 101)
$valet_cash_pickup = 0
$trigger_new_range_level = CarGenerator.Create(1091.89, 1612.63, 13.0, 206.7583, 573, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($trigger_new_range_level, 0)
$car_gen_duneride_kickstart = CarGenerator.Create(1772.66, -2096.59, 13.99, 182.7583, 412, -1, -1, True, 0, 0, 0, 10000)
CarGenerator.Switch($car_gen_duneride_kickstart, 101)
$car_gen_low_rider_near_cesars = CarGenerator.Create(-2151.303, -2440.136, 29.822, 324.7583, -1, -1, -1, False, 0, 0, 0, 10000)
$car_gen_pine = CarGenerator.Create(-2147.038, -2443.752, 29.822, 324.7583, -1, -1, -1, False, 0, 0, 0, 10000)
$5278 = CarGenerator.Create(-2140.979, -2448.733, 29.822, 144.7583, -1, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($car_gen_low_rider_near_cesars, 101)
CarGenerator.Switch($car_gen_pine, 101)
CarGenerator.Switch($5278, 101)
$5279 = CarGenerator.Create(-2000.242, -2415.509, 29.767, -132.0, 515, -1, -1, False, 0, 0, 0, 10000)
$5280 = CarGenerator.Create(-1969.806, -2437.939, 29.767, -82.5, 578, -1, -1, False, 0, 0, 0, 10000)
$5281 = CarGenerator.Create(-1969.806, -2443.908, 29.767, -19.0, 530, -1, -1, False, 0, 0, 0, 10000)
CarGenerator.Switch($5279, 101)
CarGenerator.Switch($5280, 101)
CarGenerator.Switch($5281, 101)
$5282 = 0
$timer_wil = 0
$game_timer_wil = 0
$tell_player_to_kill_valet = 0
$lf2_skip_allowed = 0
$displayed_sniper_help_text = Object.CreateNoOffset(#CARRIER_DOOR_SFSE, -1465.797, 501.289, 1.145)
Object.SetDynamic($displayed_sniper_help_text, False)
Object.SetCollisionDamageEffect($displayed_sniper_help_text, False)
Object.SetProofs($displayed_sniper_help_text, True, True, True, True, True)
Object.DontRemove($displayed_sniper_help_text)
$g_VB_REAR_DOOR = Object.CreateNoOffset(#CARRIER_LIFT2_SFSE, -1414.453, 516.453, 16.688)
Object.SetDynamic($g_VB_REAR_DOOR, False)
Object.SetCollisionDamageEffect($g_VB_REAR_DOOR, False)
Object.SetProofs($g_VB_REAR_DOOR, True, True, True, True, True)
Object.DontRemove($g_VB_REAR_DOOR)
$g_VB_SMALL_LIFT = Object.CreateNoOffset(#CARRIER_LIFT1_SFSE, -1456.719, 501.297, 16.953)
Object.SetDynamic($g_VB_SMALL_LIFT, False)
Object.SetCollisionDamageEffect($g_VB_SMALL_LIFT, False)
Object.SetProofs($g_VB_SMALL_LIFT, True, True, True, True, True)
Object.DontRemove($g_VB_SMALL_LIFT)
$g_VB_BIG_LIFT = 0
$burglary_player_stealth = 0
$5344 = -1
$gym_day = -1
$gym_month = -1
$gym_final_day = -1
$gym_final_month = 0.0
terminate_this_script 

//-------------Mission 2---------------
// Originally: Intro

:INTRO
script_name 'INTRO'
gosub @INTRO_47
if 
  has_deatharrest_been_executed 
goto_if_false @INTRO_38
gosub @INTRO_9947

:INTRO_38
gosub @INTRO_9949
terminate_this_script 

:INTRO_47
$onmission = 1
Hud.DisplayZoneNames(False)
if 
  $onmission == 0
goto_if_false @INTRO_123
149@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
148@ = Car.Create(596, 0.0, 0.0, 0.0)

:INTRO_123
start_new_script @A_CONT 
Text.LoadMissionText('INTRO1')
Text.UseCommands(True)
wait 0
Text.SetDrawBeforeFade(False)
Text.SetFont(Font.Subtitles)
179@ = 0
178@ = 0
set_lvar_text_label 182@s = 'LOAD_01'

:INTRO_186
if 
  200 > 179@
goto_if_false @INTRO_223
wait 0
gosub @INTRO_10268
goto @INTRO_186

:INTRO_223
178@ = 2
TIMERA = 0

:INTRO_237
if 
  1000 > TIMERA
goto_if_false @INTRO_274
wait 0
gosub @INTRO_10268
goto @INTRO_237

:INTRO_274
Streaming.SetAreaVisible(14)
Cutscene.Load('PROLOG1')

:INTRO_289
if 
  not Cutscene.HasLoaded
goto_if_false @INTRO_320
wait 0
gosub @INTRO_10268
goto @INTRO_289

:INTRO_320
178@ = 1

:INTRO_327
if 
  179@ > 0
goto_if_false @INTRO_363
wait 0
gosub @INTRO_10268
goto @INTRO_327

:INTRO_363
178@ = 0
181@ = 1
set_lvar_text_label 182@s = 'LOAD_02'
180@ = 0
Cutscene.Start
Camera.DoFade(0, Fade.Out)

:INTRO_406
if 
  Camera.GetFadingStatus
goto_if_false @INTRO_430
wait 0
goto @INTRO_406

:INTRO_430
Camera.DoFade(1000, Fade.In)
TIMERA = 0

:INTRO_444
if 
  not Cutscene.HasFinished
goto_if_false @INTRO_704
wait 0
if 
  TIMERA > 6800
goto_if_false @INTRO_697
switch_start 180@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @INTRO_697 {caseNum1} 0 {caseLabel1} @INTRO_543 {caseNum2} 1 {caseLabel2} @INTRO_597 {caseNum3} 2 {caseLabel3} @INTRO_651 {caseNum4} -1 {caseLabel4} @INTRO_697 {caseNum5} -1 {caseLabel5} @INTRO_697 {caseNum6} -1 {caseLabel6} @INTRO_697 {caseNum7} -1 {caseLabel7} @INTRO_697

:INTRO_543
if 
  200 > 179@
goto_if_false @INTRO_583
gosub @INTRO_10268
goto @INTRO_697
goto @INTRO_597

:INTRO_583
178@ = 2
180@ += 1

:INTRO_597
if 
  10000 > TIMERA
goto_if_false @INTRO_637
gosub @INTRO_10268
goto @INTRO_697
goto @INTRO_651

:INTRO_637
178@ = 1
180@ += 1

:INTRO_651
if 
  179@ > 0
goto_if_false @INTRO_690
gosub @INTRO_10268
goto @INTRO_697
goto @INTRO_697

:INTRO_690
180@ += 1

:INTRO_697
goto @INTRO_444

:INTRO_704
Camera.DoFade(0, Fade.Out)

:INTRO_710
if 
  Camera.GetFadingStatus
goto_if_false @INTRO_734
wait 0
goto @INTRO_710

:INTRO_734
Cutscene.Clear
if 
  Cutscene.WasSkipped
goto_if_false @INTRO_767
Streaming.SetAreaVisible(0)
$burglary_gang_decision = 1
goto @INTRO_6687

:INTRO_767
Clock.SetTimeOfDay(6, 30)
Weather.ForceNow(WeatherType.SunnyCountryside)
Streaming.SetAreaVisible(0)
Cutscene.Load('PROLOG3')

:INTRO_792
if 
  not Cutscene.HasLoaded
goto_if_false @INTRO_816
wait 0
goto @INTRO_792

:INTRO_816
Streaming.RequestModel(#GWFORUM1_LAE)

:INTRO_820
if 
  not Streaming.HasModelLoaded(#GWFORUM1_LAE)
goto_if_false @INTRO_846
wait 0
goto @INTRO_820

:INTRO_846
Streaming.LoadSceneInDirection(2493.362, -1734.295, 12.3828, 258.7583)
World.ClearArea(2482.582, -1729.642, 12.3906, 500.0, True)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:INTRO_901
if 
  not Cutscene.HasFinished
goto_if_false @INTRO_931
wait 0
Clock.SetTimeOfDay(6, 30)
goto @INTRO_901

:INTRO_931
Camera.DoFade(0, Fade.Out)

:INTRO_937
if 
  Camera.GetFadingStatus
goto_if_false @INTRO_961
wait 0
goto @INTRO_937

:INTRO_961
Cutscene.Clear
Streaming.MarkModelAsNoLongerNeeded(#GWFORUM1_LAE)
if 
  Cutscene.WasSkipped
goto_if_false @INTRO_994
$burglary_gang_decision = 1
goto @INTRO_6687

:INTRO_994
Streaming.RequestModel(596)
Streaming.RequestModel(537)
Streaming.RequestModel(569)
Streaming.RequestModel(481)
Streaming.RequestModel(#GANGSHOPS4_LAE2)
Streaming.RequestModel(#CE_HILLSEAST06)
Streaming.RequestModel(#CUNTEGROUND23)
Streaming.RequestModel(#HILLSEAST05_LAE)
Streaming.LoadSpecialCharacter(1, 'TENPEN')
Streaming.LoadSpecialCharacter(2, 'PULASKI')
Streaming.LoadSpecialCharacter(3, 'HERN')
Streaming.RequestCarRecording(706)
Streaming.RequestCarRecording(707)

:INTRO_1079
if or
  not Streaming.HasModelLoaded(596)
  not Streaming.HasModelLoaded(537)
  not Streaming.HasModelLoaded(569)
  not Streaming.HasModelLoaded(481)
  not Streaming.HasCarRecordingBeenLoaded(706)
  not Streaming.HasCarRecordingBeenLoaded(707)
goto_if_false @INTRO_1131
wait 0
goto @INTRO_1079

:INTRO_1131
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasSpecialCharacterLoaded(3)
goto_if_false @INTRO_1165
wait 0
goto @INTRO_1131

:INTRO_1165
if or
  not Streaming.HasModelLoaded(#GANGSHOPS4_LAE2)
  not Streaming.HasModelLoaded(#CE_HILLSEAST06)
  not Streaming.HasModelLoaded(#CUNTEGROUND23)
  not Streaming.HasModelLoaded(#HILLSEAST05_LAE)
goto_if_false @INTRO_1203
wait 0
goto @INTRO_1165

:INTRO_1203
Streaming.LoadScene(2358.656, -1246.348, 28.7884)
Streaming.RequestCollision(2431.609, -1254.061)
Audio.PreloadBeatTrack(10)
38@ = 0

:INTRO_1243
if 
  38@ <> 2
goto_if_false @INTRO_1277
wait 0
38@ = Audio.GetBeatTrackStatus()
goto @INTRO_1243

:INTRO_1277
if 
  Game.AreSubtitlesSwitchedOn
goto_if_false @INTRO_2107
93@ = 0
set_lvar_text_label 95@s = 'PRO@24'
43@ = 3050
68@ = 0
set_lvar_text_label 97@s = 'PRO@25'
44@ = 2530
69@ = 3150
set_lvar_text_label 99@s = 'PRO@26'
45@ = 1600
70@ = 6000
set_lvar_text_label 101@s = 'PRO@49'
46@ = 1530
71@ = 9190
set_lvar_text_label 103@s = 'PRO@27'
47@ = 5510
72@ = 10810
set_lvar_text_label 105@s = 'PRO@28'
48@ = 2560
73@ = 16600
set_lvar_text_label 107@s = 'PRO@29'
49@ = 1350
74@ = 21000
set_lvar_text_label 109@s = 'PRO@30'
50@ = 3760
75@ = 23500
set_lvar_text_label 111@s = 'PRO@30B'
51@ = 2450
set_lvar_int_to_lvar_int 76@ = 75@
add_int_lvar_to_int_lvar 76@ += 50@
set_lvar_text_label 113@s = 'PRO@31'
52@ = 3620
77@ = 30700
set_lvar_text_label 115@s = 'PRO@33'
53@ = 1440
78@ = 35000
set_lvar_text_label 117@s = 'PRO@32'
54@ = 1739
79@ = 36750
set_lvar_text_label 119@s = 'PRO@34'
55@ = 2450
set_lvar_int_to_lvar_int 80@ = 79@
add_int_lvar_to_int_lvar 80@ += 54@
set_lvar_text_label 121@s = 'PRO@35'
56@ = 971
set_lvar_int_to_lvar_int 81@ = 80@
add_int_lvar_to_int_lvar 81@ += 55@
set_lvar_text_label 123@s = 'PRO@36'
57@ = 1320
set_lvar_int_to_lvar_int 82@ = 81@
add_int_lvar_to_int_lvar 82@ += 56@
set_lvar_text_label 125@s = 'PRO@37'
58@ = 1342
set_lvar_int_to_lvar_int 83@ = 82@
add_int_lvar_to_int_lvar 83@ += 57@
set_lvar_text_label 127@s = 'PRO@38'
59@ = 1747
set_lvar_int_to_lvar_int 84@ = 83@
add_int_lvar_to_int_lvar 84@ += 58@
set_lvar_text_label 129@s = 'PRO@40'
60@ = 2355
85@ = 46700
set_lvar_text_label 131@s = 'PRO@41'
61@ = 4400
86@ = 49500
set_lvar_text_label 133@s = 'PRO@43'
62@ = 3111
87@ = 55900
set_lvar_text_label 135@s = 'PRO@44'
63@ = 3400
88@ = 59500
set_lvar_text_label 137@s = 'PRO@45'
64@ = 1180
set_lvar_int_to_lvar_int 89@ = 88@
add_int_lvar_to_int_lvar 89@ += 63@
set_lvar_text_label 139@s = 'PRO@47'
65@ = 1700
set_lvar_int_to_lvar_int 90@ = 89@
add_int_lvar_to_int_lvar 90@ += 64@
set_lvar_text_label 141@s = 'PRO@46'
66@ = 2500
set_lvar_int_to_lvar_int 91@ = 90@
add_int_lvar_to_int_lvar 91@ += 65@
goto @INTRO_2114

:INTRO_2107
93@ = 25

:INTRO_2114
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(1.0)
Game.SwitchRandomTrains(False)
37@ = 0
35@ = Car.Create(596, 2431.609, -1254.061, 22.8303)
Car.SetHeading(35@, 89.5453)
Car.ForceLights(35@, CarLights.ForceOn)
Char.WarpIntoCarAsPassenger($scplayer, 35@, 2)
41@ = Char.CreateInsideCar(35@, PedType.Special, 291)
40@ = Char.CreateAsPassenger(35@, PedType.Special, 290, 0)
42@ = Char.CreateAsPassenger(35@, PedType.Special, 292, 1)
Camera.SetFixedPosition(2358.656, -1246.348, 28.7884, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2359.521, -1246.843, 28.7047, SwitchType.JumpCut)
Clock.SetTimeOfDay(6, 30)
Weather.ForceNow(WeatherType.SunnyCountryside)
Path.SwitchPedRoadsOff(2380.682, -1274.528, 22.0, 2375.945, -1239.356, 26.0)
Path.SwitchPedRoadsOff(2358.383, -1372.666, 22.0, 2382.969, -1379.457, 25.0)
Path.SwitchPedRoadsOff(2151.603, -1380.375, 22.0, 2184.704, -1374.71, 26.0)
Path.SwitchPedRoadsOff(2180.731, -1286.328, 22.0, 2153.527, -1315.797, 26.0)
TIMERA = 0

:INTRO_2428
if 
  500 > TIMERA
goto_if_false @INTRO_2458
wait 0
goto @INTRO_2428

:INTRO_2458
Camera.DoFade(500, Fade.In)
Hud.SwitchWidescreen(True)
if 
  not Car.IsDead(35@)
goto_if_false @INTRO_2511
if 
  not Car.IsPlaybackGoingOn(35@)
goto_if_false @INTRO_2511
Car.StartPlayback(35@, 706)
Audio.PlayBeatTrack

:INTRO_2511
if 
  Player.IsPlaying($player1)
goto_if_false @INTRO_2534
Player.SetControl($player1, False)

:INTRO_2534
36@ = Train.Create(13, 2285.152, -1257.5, 23.0, True)
Train.SetSpeed(36@, 0.0)
Train.SetCruiseSpeed(36@, 0.0)
$x = 2373.105
$y = -1281.969
$z = 22.833
$heading = 0.0
152@ = 2478.559
153@ = -1258.541
154@ = 27.5958
gosub @INTRO_5861
TIMERA = 0
TIMERB = 0
$burglary_gang_decision = 2

:INTRO_2676
wait 0
Clock.SetTimeOfDay(6, 30)
if 
  not Car.IsDead(35@)
goto_if_false @INTRO_5854
switch_start 37@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @INTRO_3222 {caseNum1} 0 {caseLabel1} @INTRO_2765 {caseNum2} 1 {caseLabel2} @INTRO_2799 {caseNum3} 2 {caseLabel3} @INTRO_2868 {caseNum4} 3 {caseLabel4} @INTRO_2905 {caseNum5} 4 {caseLabel5} @INTRO_3024 {caseNum6} 5 {caseLabel6} @INTRO_3072 {caseNum7} -1 {caseLabel7} @INTRO_3222

:INTRO_2765
if 
  Camera.GetFadingStatus
goto_if_false @INTRO_2785
goto @INTRO_3222

:INTRO_2785
skip_cutscene_start_internal @INTRO_3126
37@ += 1

:INTRO_2799
if 
  10000 > TIMERA
goto_if_false @INTRO_2825
goto @INTRO_3222

:INTRO_2825
if 
  not Car.IsDead(36@)
goto_if_false @INTRO_2861
Train.SetSpeed(36@, 8.5)
Train.SetCruiseSpeed(36@, 8.5)

:INTRO_2861
37@ += 1

:INTRO_2868
if 
  Car.IsPlaybackGoingOn(35@)
goto_if_false @INTRO_2891
goto @INTRO_3222

:INTRO_2891
TIMERA = 0
37@ += 1

:INTRO_2905
if 
  13000 > TIMERA
goto_if_false @INTRO_2931
goto @INTRO_3222

:INTRO_2931
TIMERA = 0
Car.StartPlayback(35@, 707)
Car.SetCollision(35@, False)
World.ClearArea(2246.508, -1263.087, 22.9531, 500.0, True)
$intro_bmx = Car.Create(481, 2246.508, -1263.087, 22.9531)
Car.SetHeading($intro_bmx, 285.0)
145@ = 1
37@ += 1

:INTRO_3024
if 
  26800 > TIMERA
goto_if_false @INTRO_3050
goto @INTRO_3222

:INTRO_3050
Task.LeaveCarImmediately($scplayer, 35@)
37@ += 1
goto @INTRO_3222

:INTRO_3072
if 
  Car.IsPlaybackGoingOn(35@)
goto_if_false @INTRO_3095
goto @INTRO_3222

:INTRO_3095
Task.GoStraightToCoord($scplayer, 2239.33, -1261.941, 22.9375, MoveState.Walk, -2)
$burglary_gang_decision = 0

:INTRO_3126
skip_cutscene_end 
if 
  $burglary_gang_decision == 2
goto_if_false @INTRO_3153
goto @INTRO_6687

:INTRO_3153
Audio.StopBeatTrack
World.DeleteMissionTrains
Game.SwitchRandomTrains(True)
Streaming.MarkModelAsNoLongerNeeded(596)
Streaming.MarkModelAsNoLongerNeeded(537)
Streaming.MarkModelAsNoLongerNeeded(569)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Char.Delete(40@)
Char.Delete(41@)
Char.Delete(42@)
Car.Delete(35@)
$burglary_gang_decision = 3
goto @INTRO_5962

:INTRO_3222
switch_start 39@ {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @INTRO_5041 {caseNum1} 0 {caseLabel1} @INTRO_3350 {caseNum2} 1 {caseLabel2} @INTRO_3467 {caseNum3} 2 {caseLabel3} @INTRO_3584 {caseNum4} 3 {caseLabel4} @INTRO_3701 {caseNum5} 4 {caseLabel5} @INTRO_3803 {caseNum6} 5 {caseLabel6} @INTRO_3889 {caseNum7} 6 {caseLabel7} @INTRO_4006
switch_continued 7 {caseLabel1} @INTRO_4094 {caseNum2} 8 {caseLabel2} @INTRO_4213 {caseNum3} 9 {caseLabel3} @INTRO_4301 {caseNum4} 10 {caseLabel4} @INTRO_4420 {caseNum5} 11 {caseLabel5} @INTRO_4539 {caseNum6} 12 {caseLabel6} @INTRO_4627 {caseNum7} 13 {caseLabel7} @INTRO_4746 {caseNum8} 14 {caseLabel8} @INTRO_4834 {caseNum9} 15 {caseLabel9} @INTRO_4922

:INTRO_3350
if 
  1500 > TIMERB
goto_if_false @INTRO_3376
goto @INTRO_5041

:INTRO_3376
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2358.656, -1246.348, 28.7884, 2358.656, -1246.348, 28.7884, 7000, True)
Camera.SetVectorTrack(2359.521, -1246.843, 28.7047, 2359.276, -1247.129, 28.7047, 7000, True)
39@ += 1

:INTRO_3467
if 
  5500 > TIMERB
goto_if_false @INTRO_3493
goto @INTRO_5041

:INTRO_3493
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2362.03, -1288.5, 23.8624, 2362.03, -1288.5, 23.8624, 5500, True)
Camera.SetVectorTrack(2362.592, -1287.676, 23.9326, 2362.047, -1289.497, 23.932, 5500, True)
39@ += 1

:INTRO_3584
if 
  9500 > TIMERB
goto_if_false @INTRO_3610
goto @INTRO_5041

:INTRO_3610
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2377.163, -1308.247, 23.6193, 2380.673, -1390.425, 24.0771, 6800, False)
Camera.SetVectorTrack(2376.469, -1307.534, 23.7249, 2379.811, -1389.922, 24.1388, 6800, False)
39@ += 1

:INTRO_3701
if 
  16200 > TIMERB
goto_if_false @INTRO_3727
goto @INTRO_5041

:INTRO_3727
Streaming.MarkModelAsNoLongerNeeded(#GANGSHOPS4_LAE2)
Streaming.MarkModelAsNoLongerNeeded(#CE_HILLSEAST06)
Streaming.MarkModelAsNoLongerNeeded(#CUNTEGROUND23)
Streaming.MarkModelAsNoLongerNeeded(#HILLSEAST05_LAE)
Camera.SetFixedPosition(2316.988, -1378.123, 23.3054, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2317.908, -1378.489, 23.4404, SwitchType.JumpCut)
Camera.ResetNewScriptables
39@ += 1

:INTRO_3803
if 
  20500 > TIMERB
goto_if_false @INTRO_3829
goto @INTRO_5041

:INTRO_3829
Camera.SetFixedPosition(2271.75, -1396.443, 36.7292, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2272.475, -1395.894, 36.3149, SwitchType.JumpCut)
Camera.ResetNewScriptables
39@ += 1

:INTRO_3889
if 
  32300 > TIMERB
goto_if_false @INTRO_3915
goto @INTRO_5041

:INTRO_3915
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2305.536, -1384.754, 23.2002, 2303.521, -1384.387, 23.0641, 5700, False)
Camera.SetVectorTrack(2304.708, -1384.193, 23.1803, 2302.728, -1383.861, 23.3722, 5700, False)
39@ += 1

:INTRO_4006
if 
  37589 > TIMERB
goto_if_false @INTRO_4034
goto @INTRO_5041

:INTRO_4034
Camera.SetFixedPosition(2265.254, -1388.591, 23.4001, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2266.164, -1388.202, 23.4001, SwitchType.JumpCut)
Camera.ResetNewScriptables
39@ += 1

:INTRO_4094
if 
  38500 > TIMERB
goto_if_false @INTRO_4122
goto @INTRO_5041

:INTRO_4122
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2265.254, -1388.591, 23.4001, 2246.91, -1388.591, 23.4001, 7500, True)
Camera.SetVectorTrack(2266.164, -1388.202, 23.4001, 2245.935, -1388.424, 23.4001, 7500, True)
39@ += 1

:INTRO_4213
if 
  46000 > TIMERB
goto_if_false @INTRO_4241
goto @INTRO_5041

:INTRO_4241
Camera.SetFixedPosition(2163.084, -1387.757, 23.8438, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2163.946, -1387.268, 23.9785, SwitchType.JumpCut)
Camera.ResetNewScriptables
39@ += 1

:INTRO_4301
if 
  48000 > TIMERB
goto_if_false @INTRO_4329
goto @INTRO_5041

:INTRO_4329
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2163.084, -1387.757, 23.8438, 2163.084, -1387.757, 23.8438, 5000, True)
Camera.SetVectorTrack(2163.946, -1387.268, 23.9785, 2163.423, -1386.826, 23.9785, 5000, True)
39@ += 1

:INTRO_4420
if 
  53000 > TIMERB
goto_if_false @INTRO_4448
goto @INTRO_5041

:INTRO_4448
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2156.551, -1292.082, 39.2814, 2156.974, -1288.564, 36.9331, 4000, True)
Camera.SetVectorTrack(2157.025, -1292.67, 38.6264, 2157.626, -1289.084, 36.382, 4000, True)
39@ += 1

:INTRO_4539
if 
  57000 > TIMERB
goto_if_false @INTRO_4567
goto @INTRO_5041

:INTRO_4567
Camera.SetFixedPosition(2176.373, -1252.759, 23.4951, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2176.118, -1253.725, 23.5115, SwitchType.JumpCut)
Camera.ResetNewScriptables
39@ += 1

:INTRO_4627
if 
  59200 > TIMERB
goto_if_false @INTRO_4655
goto @INTRO_5041

:INTRO_4655
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2176.373, -1252.759, 23.4951, 2176.373, -1252.759, 23.4951, 2500, True)
Camera.SetVectorTrack(2176.118, -1253.725, 23.5115, 2177.079, -1253.467, 23.5115, 2500, True)
39@ += 1

:INTRO_4746
if 
  61400 > TIMERB
goto_if_false @INTRO_4774
goto @INTRO_5041

:INTRO_4774
Camera.SetFixedPosition(2212.582, -1262.756, 25.8688, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2211.681, -1262.393, 25.633, SwitchType.JumpCut)
Camera.ResetNewScriptables
39@ += 1

:INTRO_4834
if 
  63000 > TIMERB
goto_if_false @INTRO_4862
goto @INTRO_5041

:INTRO_4862
Camera.SetFixedPosition(2210.418, -1263.121, 23.1607, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2211.399, -1262.981, 23.2985, SwitchType.JumpCut)
Camera.ResetNewScriptables
39@ += 1

:INTRO_4922
if 
  64000 > TIMERB
goto_if_false @INTRO_4950
goto @INTRO_5041

:INTRO_4950
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2210.418, -1263.121, 23.1607, 2217.615, -1262.761, 24.45, 6500, True)
Camera.SetVectorTrack(2211.399, -1262.981, 23.2985, 2218.606, -1262.886, 24.4112, 6500, True)
39@ += 1

:INTRO_5041
if 
  24 > 93@
goto_if_false @INTRO_5235
switch_start 94@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @INTRO_5235 {caseNum1} 0 {caseLabel1} @INTRO_5157 {caseNum2} 1 {caseLabel2} @INTRO_5122 {caseNum3} -1 {caseLabel3} @INTRO_5235 {caseNum4} -1 {caseLabel4} @INTRO_5235 {caseNum5} -1 {caseLabel5} @INTRO_5235 {caseNum6} -1 {caseLabel6} @INTRO_5235 {caseNum7} -1 {caseLabel7} @INTRO_5235

:INTRO_5122
if 
  is_int_lvar_greater_than_int_lvar 146@ > TIMERB
goto_if_false @INTRO_5148
goto @INTRO_5235

:INTRO_5148
Text.ClearPrints
94@ -= 1

:INTRO_5157
if 
  is_int_lvar_greater_than_int_lvar 68@(93@,25i) > TIMERB
goto_if_false @INTRO_5187
goto @INTRO_5235

:INTRO_5187
Text.PrintNow(95@(93@,25s), 12000, 1)
set_lvar_int_to_lvar_int 146@ = TIMERB
add_int_lvar_to_int_lvar 146@ += 43@(93@,25i)
93@ += 1
94@ += 1

:INTRO_5235
switch_start 147@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @INTRO_5854 {caseNum1} 0 {caseLabel1} @INTRO_5298 {caseNum2} 1 {caseLabel2} @INTRO_5408 {caseNum3} 2 {caseLabel3} @INTRO_5518 {caseNum4} 3 {caseLabel4} @INTRO_5630 {caseNum5} 4 {caseLabel5} @INTRO_5742 {caseNum6} -1 {caseLabel6} @INTRO_5854 {caseNum7} -1 {caseLabel7} @INTRO_5854

:INTRO_5298
if 
  8500 > TIMERB
goto_if_false @INTRO_5324
goto @INTRO_5854

:INTRO_5324
$x = 2345.452
$y = -1303.926
$z = 22.9955
$heading = 270.0
152@ = 2368.437
153@ = -1202.752
154@ = 26.4297
gosub @INTRO_5861
147@ += 1

:INTRO_5408
if 
  15000 > TIMERB
goto_if_false @INTRO_5434
goto @INTRO_5854

:INTRO_5434
$x = 2346.383
$y = -1420.555
$z = 22.8281
$heading = 0.0
152@ = 2387.488
153@ = -1409.537
154@ = 22.8359
gosub @INTRO_5861
147@ += 1

:INTRO_5518
if 
  40000 > TIMERB
goto_if_false @INTRO_5546
goto @INTRO_5854

:INTRO_5546
$x = 2215.088
$y = -1417.086
$z = 22.8281
$heading = 0.0
152@ = 2255.444
153@ = -1302.8
154@ = 22.8402
gosub @INTRO_5861
147@ += 1

:INTRO_5630
if 
  48000 > TIMERB
goto_if_false @INTRO_5658
goto @INTRO_5854

:INTRO_5658
$x = 2165.042
$y = -1353.055
$z = 22.8281
$heading = 180.0
152@ = 2130.579
153@ = -1381.478
154@ = 22.8281
gosub @INTRO_5861
147@ += 1

:INTRO_5742
if 
  52000 > TIMERB
goto_if_false @INTRO_5770
goto @INTRO_5854

:INTRO_5770
$x = 2201.352
$y = -1298.165
$z = 22.8303
$heading = 90.0
152@ = 2121.089
153@ = -1298.57
154@ = 22.817
gosub @INTRO_5861
147@ += 1

:INTRO_5854
goto @INTRO_2676

:INTRO_5861
150@, 151@ = Streaming.GetRandomCarModelInMemory(True)
if 
  150@ <> -1
goto_if_false @INTRO_5960
Char.MarkAsNoLongerNeeded(149@)
Car.MarkAsNoLongerNeeded(148@)
148@ = Car.Create(150@, $x, $y, $z)
Car.SetHeading(148@, $heading)
149@ = Char.CreateRandomAsDriver(148@)
Task.CarDriveToCoord(149@, 148@, 152@, 153@, 154@, 15.0, DriveMode.Normal, 0, DrivingMode.StopForCars)

:INTRO_5960
return 

:INTRO_5962
155@ = 0
156@ = 0
set_lvar_text_label 164@s = 'VO_AA'
set_lvar_int_to_constant 157@ = 11800
set_lvar_text_label 166@s = 'VO_AB'
set_lvar_int_to_constant 158@ = 11801
set_lvar_text_label 168@s = 'VO_AC'
set_lvar_int_to_constant 159@ = 11802
set_lvar_text_label 170@s = 'VO_AD'
set_lvar_int_to_constant 160@ = 11803
set_lvar_text_label 172@s = 'VO_AE'
set_lvar_int_to_constant 161@ = 11804
set_lvar_text_label 174@s = 'VO_AF'
set_lvar_int_to_constant 162@ = 11805
set_lvar_text_label 176@s = 'VO_AG'
set_lvar_int_to_constant 163@ = 11806
Camera.RestoreJumpcut
Camera.ResetNewScriptables
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2217.615, -1262.761, 24.45, 2238.641, -1261.329, 24.6289, 13500, False)
Camera.SetVectorTrack(2218.606, -1262.886, 24.4112, 2239.602, -1261.589, 24.54, 13500, False)
Camera.SetShakeSimulationSimple(1, 20000.0, 3.0)
39@ = 0
TIMERA = 0
skip_cutscene_start_internal @INTRO_6638

:INTRO_6253
wait 0
switch_start 155@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @INTRO_6449 {caseNum1} 0 {caseLabel1} @INTRO_6320 {caseNum2} 1 {caseLabel2} @INTRO_6409 {caseNum3} -1 {caseLabel3} @INTRO_6449 {caseNum4} -1 {caseLabel4} @INTRO_6449 {caseNum5} -1 {caseLabel5} @INTRO_6449 {caseNum6} -1 {caseLabel6} @INTRO_6449 {caseNum7} -1 {caseLabel7} @INTRO_6449

:INTRO_6320
if 
  5 > 156@
goto_if_false @INTRO_6395
set_var_int_to_lvar_int $load_sample = 157@(156@,7i)
set_var_text_label s$load_text = 164@(156@,7s)
start_new_script @A_ALAP 1 100 
156@ += 1
155@ += 1
goto @INTRO_6409

:INTRO_6395
155@ = -1
goto @INTRO_6449

:INTRO_6409
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @INTRO_6449
155@ -= 1
$SLOT_status($preload_slot,2i) = -4

:INTRO_6449
switch_start 39@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @INTRO_6680 {caseNum1} 0 {caseLabel1} @INTRO_6512 {caseNum2} 1 {caseLabel2} @INTRO_6612 {caseNum3} -1 {caseLabel3} @INTRO_6680 {caseNum4} -1 {caseLabel4} @INTRO_6680 {caseNum5} -1 {caseLabel5} @INTRO_6680 {caseNum6} -1 {caseLabel6} @INTRO_6680 {caseNum7} -1 {caseLabel7} @INTRO_6680

:INTRO_6512
if 
  TIMERA > 13500
goto_if_false @INTRO_6605
Camera.SetFixedPosition(2238.641, -1261.329, 24.6289, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2239.602, -1261.589, 24.54, SwitchType.JumpCut)
Camera.ResetNewScriptables
Camera.SetShakeSimulationSimple(1, 2500.0, 3.0)
39@ += 1

:INTRO_6605
goto @INTRO_6680

:INTRO_6612
if 
  TIMERA > 16000
goto_if_false @INTRO_6680
$burglary_gang_decision = 0

:INTRO_6638
skip_cutscene_end 
if 
  $burglary_gang_decision == 0
goto_if_false @INTRO_6673
Camera.ResetNewScriptables
Camera.Restore
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)

:INTRO_6673
goto @INTRO_6687

:INTRO_6680
goto @INTRO_6253

:INTRO_6687
switch_start $burglary_gang_decision {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @INTRO_7220 {caseNum1} 0 {caseLabel1} @INTRO_6750 {caseNum2} 1 {caseLabel2} @INTRO_6767 {caseNum3} 2 {caseLabel3} @INTRO_6767 {caseNum4} 3 {caseLabel4} @INTRO_6767 {caseNum5} -1 {caseLabel5} @INTRO_7220 {caseNum6} -1 {caseLabel6} @INTRO_7220 {caseNum7} -1 {caseLabel7} @INTRO_7220

:INTRO_6750
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
goto @INTRO_7220

:INTRO_6767
Camera.DoFade(0, Fade.Out)

:INTRO_6773
if 
  Camera.GetFadingStatus
goto_if_false @INTRO_6797
wait 0
goto @INTRO_6773

:INTRO_6797
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Clock.SetTimeOfDay(6, 30)
Weather.ForceNow(WeatherType.SunnyCountryside)
Char.ClearTasksImmediately($scplayer)
Streaming.LoadSceneInDirection(2239.367, -1261.939, 22.9375, 272.5814)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO_6887
Char.WarpFromCarToCoord($scplayer, 2239.367, -1261.939, 22.9375)
goto @INTRO_6907

:INTRO_6887
Char.SetCoordinates($scplayer, 2239.367, -1261.939, 22.9375)

:INTRO_6907
Char.SetHeading($scplayer, 272.5814)
if 
  $burglary_gang_decision == 2
goto_if_false @INTRO_7011
Audio.StopBeatTrack
World.DeleteMissionTrains
Game.SwitchRandomTrains(True)
Streaming.MarkModelAsNoLongerNeeded(596)
Streaming.MarkModelAsNoLongerNeeded(537)
Streaming.MarkModelAsNoLongerNeeded(569)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Char.Delete(40@)
Char.Delete(41@)
Char.Delete(42@)
Car.Delete(35@)
Streaming.MarkModelAsNoLongerNeeded(#GANGSHOPS4_LAE2)
Streaming.MarkModelAsNoLongerNeeded(#CE_HILLSEAST06)
Streaming.MarkModelAsNoLongerNeeded(#CUNTEGROUND23)
Streaming.MarkModelAsNoLongerNeeded(#HILLSEAST05_LAE)
Char.ClearTasks($scplayer)

:INTRO_7011
if 
  145@ == 0
goto_if_false @INTRO_7125
Streaming.RequestModel(481)

:INTRO_7034
if 
  not Streaming.HasModelLoaded(481)
goto_if_false @INTRO_7061
wait 0
goto @INTRO_7034

:INTRO_7061
World.ClearArea(2246.508, -1263.087, 22.9531, 500.0, True)
$intro_bmx = Car.Create(481, 2246.508, -1263.087, 22.9531)
Car.SetHeading($intro_bmx, 285.0)
145@ = 1

:INTRO_7125
Camera.RestoreJumpcut
Camera.ResetNewScriptables
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
TIMERA = 0

:INTRO_7142
if 
  500 > TIMERA
goto_if_false @INTRO_7172
wait 0
goto @INTRO_7142

:INTRO_7172
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Camera.DoFade(1500, Fade.In)

:INTRO_7189
if 
  Camera.GetFadingStatus
goto_if_false @INTRO_7213
wait 0
goto @INTRO_7189

:INTRO_7213
goto @INTRO_7220

:INTRO_7220
if 
  Camera.GetFadingStatus
goto_if_false @INTRO_7244
wait 0
goto @INTRO_7220

:INTRO_7244
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
start_new_script @A_TERM 
Hud.DisplayZoneNames(True)
Path.SwitchPedRoadsBackToOriginal(2380.682, -1274.528, 22.0, 2375.945, -1239.356, 26.0)
Path.SwitchPedRoadsBackToOriginal(2358.383, -1372.666, 22.0, 2382.969, -1379.457, 25.0)
Path.SwitchPedRoadsBackToOriginal(2151.603, -1380.375, 22.0, 2184.704, -1374.71, 26.0)
Path.SwitchPedRoadsBackToOriginal(2180.731, -1286.328, 22.0, 2153.527, -1315.797, 26.0)
Weather.Release
Text.UseCommands(False)
Stat.SetInt(StatId.CitiesPassed, 0)
Player.SetControl($player1, True)
Camera.SetNearClip(0.1)
Streaming.SetAreaVisible(0)
Zone.SetGangStrength('GAN1', GangType.Grove, 10)
Zone.SetGangStrength('GAN2', GangType.Grove, 10)
Streaming.RequestIpl("BARRIERS1")
Streaming.RequestIpl("BARRIERS2")
Path.SwitchRoadsOff(-2696.464, 1239.866, 40.7599, -2665.359, 2190.96, 70.8125)
Path.SwitchRoadsOff(-2740.694, 2233.618, 40.8431, -2720.91, 2338.224, 80.4822)
Path.SwitchRoadsOff(-2695.584, 1237.981, 40.7328, -2664.417, 1454.767, 60.8126)
Path.SwitchRoadsOff(-995.0013, -416.2032, 30.4207, -940.5399, -251.8564, 40.6762)
Path.SwitchRoadsOff(-205.8387, 250.7443, 7.2472, -131.0039, 481.8496, 15.9152)
Path.SwitchRoadsOff(-100.7515, -927.8298, 18.0, -68.3752, -891.9871, 14.0)
Path.SwitchRoadsOff(609.7595, 327.3437, 15.8783, 429.8884, 616.0168, 20.289)
Path.SwitchRoadsOff(317.1688, 707.7672, 7.0, 437.5726, 709.0657, 20.5578)
Path.SwitchRoadsOff(391.1194, 640.015, 7.0, 402.2627, 664.798, 18.5098)
Path.SwitchRoadsOff(289.2904, 636.3991, 7.8675, 409.4943, 702.3849, 20.0345)
Path.SwitchRoadsOff(300.3153, 718.7909, 7.7846, 316.7906, 781.0926, 14.0795)
Path.SwitchRoadsOff(254.9982, 837.029, 10.1731, 270.7453, 929.2404, 30.2553)
Path.SwitchRoadsOff(210.7811, 939.2068, 10.9062, 249.4799, 959.1111, 30.2141)
Path.SwitchRoadsOff(230.4545, 946.0961, 20.6674, 255.9772, 969.2755, 30.4776)
Path.SwitchRoadsOff(249.4279, 899.7975, 10.5871, 268.6826, 933.5995, 30.3975)
Path.SwitchRoadsOff(312.1081, 694.1089, 6.0, 324.0811, 733.0005, 10.0)
Path.SwitchRoadsOff(324.4526, 804.9198, 9.6186, 332.8747, 814.356, 14.3925)
Path.SwitchRoadsOff(1690.819, 376.5103, 28.1103, 1730.223, 445.2955, 30.8414)
Path.SwitchRoadsOff(1643.536, 227.3723, 27.4457, 1673.062, 295.5788, 30.0815)
Path.SwitchRoadsOff(1673.765, 388.1013, 40.2331, 1815.862, 804.9291, 10.0)
Path.SwitchRoadsOff(1705.156, 308.3448, 20.0, 1710.948, 316.4094, 23.5612)
Path.SwitchRoadsOff(-12.7067, -1522.455, 1.0, 80.8463, -1517.111, 5.0)
Path.SwitchRoadsOff(-16.3392, -1532.882, 0.0394, 69.3401, -1523.771, 5.922)
Path.SwitchRoadsOff(618.7253, -1189.606, 18.0, 623.5441, -1161.981, 22.0)
Path.SwitchRoadsOff(-33.4208, -1341.84, 9.0, 35.3764, -1303.948, 13.0)
Path.SwitchRoadsOff(-41.2393, -1385.87, 8.0, -3.5883, -1368.856, 10.5)
Path.SwitchRoadsOff(-1690.705, 539.6102, 30.3278, -1100.567, 1140.569, 50.735)
Path.SwitchRoadsOff(-1799.541, 379.7155, 16.0, -1780.199, 392.2779, 18.0)
Path.SwitchRoadsOff(-1092.429, 1286.505, 30.0, -1077.038, 1319.495, 35.0)
Path.SwitchRoadsOff(-1860.133, 314.7891, 38.0, -1638.563, 557.4354, 40.0)
Path.SwitchRoadsOff(-1737.333, 455.9431, 30.3573, -1710.363, 500.6261, 40.4891)
Path.SwitchRoadsOff(-1689.229, 513.0995, 30.2597, -1679.124, 524.8383, 40.25)
Path.SwitchRoadsOff(-1742.906, 500.7302, 30.4679, -1650.312, 551.8201, 40.7455)
Text.ClearPrints
Blip.Remove($intro_contact_blip)
$intro_contact_blip = Blip.AddSpriteForCoord($introX, $introY, $introZ, $intro_blip_icon)
World.SwitchEntryExit('CARLS', False)
World.SwitchEntryExit('AMMUN1', False)
World.SwitchEntryExit('AMMUN2', False)
World.SwitchEntryExit('AMMUN3', False)
World.SwitchEntryExit('AMMUN4', False)
World.SwitchEntryExit('AMMUN5', False)
World.SwitchEntryExit('BARBERS', False)
World.SwitchEntryExit('BARBER2', False)
World.SwitchEntryExit('BARBER3', False)
World.SwitchEntryExit('FDPIZA', False)
World.SwitchEntryExit('FDCHICK', False)
World.SwitchEntryExit('FDBURG', False)
World.SwitchEntryExit('TATTOO', False)
World.SwitchEntryExit('CSCHP', False)
World.SwitchEntryExit('CSSPRT', False)
World.SwitchEntryExit('LACS1', False)
World.SwitchEntryExit('CLOTHGP', False)
World.SwitchEntryExit('CSDESGN', False)
World.SwitchEntryExit('CSEXL', False)
World.SwitchEntryExit('GYM1', False)
World.SwitchEntryExit('GYM2', False)
World.SwitchEntryExit('GYM3', False)
World.SwitchEntryExit('PDOMES', False)
World.SwitchEntryExit('PDOMES2', False)
World.SwitchEntryExit('MADDOGS', False)
World.SwitchEntryExit('MDDOGS', False)
World.SwitchEntryExit('GANG', False)
World.SwitchEntryExit('RCPLAY', False)
World.SwitchEntryExit('PAPER', False)
World.SwitchEntryExit('ABATOIR', False)
World.SwitchEntryExit('LACRAK', False)
Garage.Deactivate('BODLAWN')
Garage.Deactivate('MODLAST')
Garage.Deactivate('MDSSFSE')
Garage.Deactivate('MDS1SFS')
Garage.Deactivate('VECMOD')
Garage.Deactivate('DHANGAR')
Text.ClearPrints
Char.SetHealth($scplayer, 100)
Player.AddScore($player1, 350)
Player.SetNeverGetsTired($player1, False)
Char.RemoveAllWeapons($scplayer)
$flag_intro_mission_counter = 0
$flag_sweet_mission_counter = 0
$flag_crash_mission_counter = 0
$flag_smoke_mission_counter = 0
$flag_strap_mission_counter = 0
$flag_ryder_mission_counter = 0
$flag_cesar_mission_counter = 0
$flag_la1fin1_mission_counter = 0
$drive_by_help = 0
$bike_help = 0
$wanted_star_help = 0
$car_help_played = 0
$print_first_help = 0
TIMERA = 0

:INTRO_9158
if 
  TIMERA <= 1000
goto_if_false @INTRO_9322
wait 0
gosub @INTRO_10130
if 
  not Car.IsDead($intro_bmx)
goto_if_false @INTRO_9259
if 
  not Char.LocateAnyMeans3D($scplayer, 2246.508, -1263.087, 22.9531, 30.0, 30.0, 3.0, False)
goto_if_false @INTRO_9259
goto @INTRO_9945

:INTRO_9259
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO_9315
Text.ClearThisPrint('INTRO2E')
Text.ClearThisPrint('HELP21')
Text.ClearThisPrint('HELP26')
goto @INTRO_9945

:INTRO_9315
goto @INTRO_9158

:INTRO_9322
Camera.DoFade(1500, Fade.In)

:INTRO_9329
if 
  Camera.GetFadingStatus
goto_if_false @INTRO_9491
wait 0
Text.ClearPrints
Text.ClearHelp
gosub @INTRO_10130
if 
  not Car.IsDead($intro_bmx)
goto_if_false @INTRO_9428
if 
  not Char.LocateAnyMeans3D($scplayer, 2246.508, -1263.087, 22.9531, 30.0, 30.0, 3.0, False)
goto_if_false @INTRO_9428
goto @INTRO_9945

:INTRO_9428
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO_9484
Text.ClearThisPrint('INTRO2E')
Text.ClearThisPrint('HELP21')
Text.ClearThisPrint('HELP26')
goto @INTRO_9945

:INTRO_9484
goto @INTRO_9329

:INTRO_9491
Text.PrintHelp('HELPMO')
if 
  not Car.IsDead($intro_bmx)
goto_if_false @INTRO_9540
$intro_bmx_blip = Blip.AddForCar($intro_bmx)
Blip.SetAsFriendly($intro_bmx_blip, True)
Blip.ChangeDisplay($intro_bmx_blip, BlipDisplay.MarkerOnly)

:INTRO_9540
TIMERA = 0

:INTRO_9547
if 
  TIMERA <= 5000
goto_if_false @INTRO_9716
wait 0
gosub @INTRO_10130
if 
  not Car.IsDead($intro_bmx)
goto_if_false @INTRO_9648
if 
  not Char.LocateAnyMeans3D($scplayer, 2246.508, -1263.087, 22.9531, 30.0, 30.0, 3.0, False)
goto_if_false @INTRO_9648
goto @INTRO_9945

:INTRO_9648
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO_9709
Blip.Remove($intro_bmx_blip)
Text.ClearThisPrint('INTRO2E')
Text.ClearThisPrint('HELP21')
Text.ClearThisPrint('HELP26')
goto @INTRO_9945

:INTRO_9709
goto @INTRO_9547

:INTRO_9716
Text.PrintNow('INTROB', 4000, 1)
TIMERA = 0

:INTRO_9739
if 
  TIMERA <= 5000
goto_if_false @INTRO_9776
wait 0
gosub @INTRO_10130
goto @INTRO_9739

:INTRO_9776
if 
  not Char.IsInCar($scplayer, $intro_bmx)
goto_if_false @INTRO_9945
wait 0
gosub @INTRO_10130
if 
  not Car.IsDead($intro_bmx)
goto_if_false @INTRO_9877
if 
  not Char.LocateAnyMeans3D($scplayer, 2246.508, -1263.087, 22.9531, 30.0, 30.0, 3.0, False)
goto_if_false @INTRO_9877
goto @INTRO_9945

:INTRO_9877
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO_9938
Blip.Remove($intro_bmx_blip)
Text.ClearThisPrint('INTRO2E')
Text.ClearThisPrint('HELP21')
Text.ClearThisPrint('HELP26')
goto @INTRO_9945

:INTRO_9938
goto @INTRO_9776

:INTRO_9945
return 

:INTRO_9947
return 

:INTRO_9949
start_new_script @A_TERM 
Streaming.MarkModelAsNoLongerNeeded(596)
Streaming.MarkModelAsNoLongerNeeded(537)
Streaming.MarkModelAsNoLongerNeeded(569)
terminate_all_scripts_with_this_name 'INT'
terminate_all_scripts_with_this_name 'SWEET'
start_new_script @INT 
terminate_all_scripts_with_this_name 'MOB_LA1'
start_new_script @MOB_LA1 
terminate_all_scripts_with_this_name 'MOB_RAN'
start_new_script @MOB_RAN 
terminate_all_scripts_with_this_name 'INTROST'
start_new_script @INTROST 
Blip.Remove($intro_contact_blip)
$intro_contact_blip = Blip.AddSpriteForContactPoint($introX, $introY, $introZ, $intro_blip_icon)
Streaming.MarkModelAsNoLongerNeeded(481)
if 
  not Car.IsDead($intro_bmx)
goto_if_false @INTRO_10112
Car.MarkAsNoLongerNeeded($intro_bmx)
Blip.Remove($intro_bmx_blip)

:INTRO_10112
$onmission = 0
$game_starts_from_scratch = 1
Mission.Finish
return 

:INTRO_10130
if 
  not Car.IsDead($intro_bmx)
goto_if_false @INTRO_10266
if 
  34@ == 0
goto_if_false @INTRO_10266
if 
  Char.LocateAnyMeans3D($scplayer, 2246.508, -1263.087, 22.9531, 2.0, 2.0, 2.0, False)
goto_if_false @INTRO_10266
if 
  $controlmode == 2
goto_if_false @INTRO_10248
Text.PrintHelp('HELP26')
goto @INTRO_10259

:INTRO_10248
Text.PrintHelp('HELP21')

:INTRO_10259
34@ = 1

:INTRO_10266
return 

:INTRO_10268
switch_start 178@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @INTRO_10666 {caseNum1} 0 {caseLabel1} @INTRO_10331 {caseNum2} 1 {caseLabel2} @INTRO_10338 {caseNum3} 2 {caseLabel3} @INTRO_10363 {caseNum4} -1 {caseLabel4} @INTRO_10666 {caseNum5} -1 {caseLabel5} @INTRO_10666 {caseNum6} -1 {caseLabel6} @INTRO_10666 {caseNum7} -1 {caseLabel7} @INTRO_10666

:INTRO_10331
179@ += 10

:INTRO_10338
if 
  178@ == 1
goto_if_false @INTRO_10363
179@ -= 10

:INTRO_10363
if 
  181@ == 0
goto_if_false @INTRO_10601
Text.SetScale(0.8, 1.8)
Text.SetColor(255, 255, 255, 179@)
Text.SetCenter(True)
Text.SetWrapX(600.0)
Text.SetDropshadow(0, 0, 0, 0, 255)
Text.Display(320.0, 180.0, 'LOAD_01')
Text.SetScale(0.8, 1.8)
Text.SetColor(255, 255, 255, 179@)
Text.SetCenter(True)
Text.SetWrapX(600.0)
Text.SetDropshadow(0, 0, 0, 0, 255)
Text.Display(320.0, 200.0, 'LOAD_03')
Text.SetScale(0.8, 1.8)
Text.SetColor(255, 255, 255, 179@)
Text.SetCenter(True)
Text.SetWrapX(600.0)
Text.SetDropshadow(0, 0, 0, 0, 255)
Text.Display(320.0, 220.0, 'LOAD_04')
goto @INTRO_10666

:INTRO_10601
Text.SetScale(0.6, 1.6)
Text.SetColor(255, 255, 255, 179@)
Text.SetCenter(True)
Text.SetWrapX(600.0)
Text.SetDropshadow(1, 0, 0, 0, 179@)
Text.Display(320.0, 200.0, 182@s)

:INTRO_10666
return 

//-------------Mission 3---------------
// Originally: Video Game: They Crawled From Uranus

:NONE
gosub @NONE_16
gosub @NONE_12325
terminate_this_script 

:NONE_16
$onmission = 1
Stat.RegisterMissionGiven
script_name 'NONE'
wait 0
Text.LoadMissionText('DUAL')
Game.ShutAllCharsUp(True)
$x, $y, $z = Char.GetCoordinates($scplayer)
World.ClearArea($x, $y, $z, 50.0, False)
Text.UseCommands(True)
Txd.Remove
Txd.LoadDictionary('LD_NONE')
Txd.LoadSprite(1, "SHIP")
Txd.LoadSprite(2, "TVCORN")
Txd.LoadSprite(3, "SHOOT")
Txd.LoadSprite(4, "LIGHT")
Txd.LoadSprite(5, "EXPLM01")
Txd.LoadSprite(6, "EXPLM02")
Txd.LoadSprite(7, "EXPLM03")
Txd.LoadSprite(8, "EXPLM04")
Txd.LoadSprite(9, "EXPLM05")
Txd.LoadSprite(10, "EXPLM06")
Txd.LoadSprite(11, "EXPLM07")
Txd.LoadSprite(12, "EXPLM08")
Txd.LoadSprite(13, "EXPLM09")
Txd.LoadSprite(14, "EXPLM10")
Txd.LoadSprite(15, "EXPLM11")
Txd.LoadSprite(16, "EXPLM12")
Txd.LoadSprite(17, "FORCE")
Txd.LoadSprite(18, "WARP")
Txd.LoadSprite(19, "THRUST")
Txd.LoadSprite(20, "SHPNORM")
Txd.LoadSprite(21, "SHPWARP")
Txd.LoadSprite(22, "SHIP2")
Txd.LoadSprite(23, "SHIP3")
Txd.LoadSprite(24, "TITLE")
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1829)

:NONE_403
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @NONE_429
wait 0
goto @NONE_403

:NONE_429
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1181)
34@ = 3.0
35@ = 2.0
36@ = 1.0
37@ = 0.0
38@ = -1.0
39@ = -2.0
40@ = -3.0
41@ = -2.0
42@ = -1.0
43@ = -4.0
44@ = 4.0
45@ = 3.0
46@ = 2.0
47@ = -2.0
48@ = -4.0
49@ = -6.0
50@ = -3.0
51@ = -2.0
52@ = -7.0
53@ = -6.0
54@ = 300
55@ = 200
56@ = 400
57@ = 600
58@ = 400
59@ = 500
60@ = 200
61@ = 300
62@ = 400
63@ = 6000
64@ = 2.0
65@ = 3.0
66@ = 1.0
67@ = 0.0
68@ = 1.0
69@ = 3.0
70@ = -3.0
71@ = -3.0
72@ = 2.0
73@ = -5.0
74@ = 0.0
75@ = 3.0
76@ = 4.0
77@ = 5.0
78@ = 12.0
79@ = 6.0
80@ = 3.0
81@ = 0.0
82@ = -4.0
83@ = -6.0
84@ = 100
85@ = 400
86@ = 300
87@ = 500
88@ = 400
89@ = 200
90@ = 400
91@ = 400
92@ = 400
93@ = 6000
94@ = 5.0
95@ = -3.0
96@ = 6.0
97@ = -6.0
98@ = 3.0
99@ = -3.0
100@ = 3.0
101@ = -3.0
102@ = 3.0
103@ = -6.0
104@ = 4.0
105@ = 4.0
106@ = 4.0
107@ = 4.0
108@ = 4.0
109@ = 4.0
110@ = 4.0
111@ = 4.0
112@ = 4.0
113@ = 4.0
114@ = 300
115@ = 300
116@ = 300
117@ = 300
118@ = 300
119@ = 300
120@ = 300
121@ = 300
122@ = 300
123@ = 300
124@ = 0.0
132@ = 5.0
125@ = 5.0
133@ = 5.0
126@ = 5.0
134@ = 0.0
127@ = -5.0
135@ = 0.0
128@ = -5.0
136@ = -5.0
129@ = 0.0
137@ = -5.0
130@ = 5.0
138@ = -5.0
131@ = -5.0
139@ = 5.0
set_lvar_text_label 140@s = 'DUAL_0'
set_lvar_text_label 142@s = 'DUAL_1'
set_lvar_text_label 144@s = 'DUAL_2'
set_lvar_text_label 146@s = 'DUAL_3'
set_lvar_text_label 148@s = 'DUAL_4'
set_lvar_text_label 150@s = 'DUAL_5'
set_lvar_text_label 152@s = 'DUAL_6'
set_lvar_text_label 154@s = 'DUAL_7'
set_lvar_text_label 156@s = 'DUAL_8'
set_lvar_text_label 158@s = 'DUAL_9'
set_lvar_text_label 160@s = 'DUAL_AA'
set_lvar_text_label 162@s = 'DUAL_B'
set_lvar_text_label 164@s = 'DUAL_C'
set_lvar_text_label 166@s = 'DUAL_D'
set_lvar_text_label 168@s = 'DUAL_E'
set_lvar_text_label 170@s = 'DUAL_F'
set_lvar_text_label 172@s = 'DUAL_G'
set_lvar_text_label 174@s = 'DUAL_H'
set_lvar_text_label 176@s = 'DUAL_I'
set_lvar_text_label 178@s = 'DUAL_J'
set_lvar_text_label 180@s = 'DUAL_K'
set_lvar_text_label 182@s = 'DUAL_L'
set_lvar_text_label 184@s = 'DUAL_M'
set_lvar_text_label 186@s = 'DUAL_N'
set_lvar_text_label 188@s = 'DUAL_O'
set_lvar_text_label 190@s = 'DUAL_P'
set_lvar_text_label 192@s = 'DUAL_Q'
set_lvar_text_label 194@s = 'DUAL_R'
set_lvar_text_label 196@s = 'DUAL_S'
set_lvar_text_label 198@s = 'DUAL_T'
set_lvar_text_label 200@s = 'DUAL_U'
set_lvar_text_label 202@s = 'DUAL_V'
set_lvar_text_label 204@s = 'DUAL_W'
set_lvar_text_label 206@s = 'DUAL_X'
set_lvar_text_label 208@s = 'DUAL_Y'
set_lvar_text_label 210@s = 'DUAL_Z'
set_lvar_text_label 212@s = 'DUAL_FS'
if 
  $cutscene_skip_CUT == 0
goto_if_false @NONE_2319
$played_none_before[0] = 250000
$played_none_before[1] = 100000
$played_none_before[2] = 75000
$played_none_before[3] = 50000
$played_none_before[4] = 25000
$played_none_before[5] = 10000
$played_none_before[6] = 7500
$played_none_before[7] = 5000
$played_none_before[8] = 2500
$played_none_before[9] = 1000
set_var_text_label s$5364[0] = 160@s
set_var_text_label s$5384[0] = 166@s
set_var_text_label s$5404[0] = 210@s
set_var_text_label s$5364[1] = 164@s
set_var_text_label s$5384[1] = 160@s
set_var_text_label s$5404[1] = 186@s
set_var_text_label s$5364[2] = 176@s
set_var_text_label s$5384[2] = 184@s
set_var_text_label s$5404[2] = 208@s
set_var_text_label s$5364[3] = 204@s
set_var_text_label s$5384[3] = 176@s
set_var_text_label s$5404[3] = 182@s
set_var_text_label s$5364[4] = 166@s
set_var_text_label s$5384[4] = 162@s
set_var_text_label s$5404[4] = 190@s
set_var_text_label s$5364[5] = 166@s
set_var_text_label s$5384[5] = 160@s
set_var_text_label s$5404[5] = 202@s
set_var_text_label s$5364[6] = 166@s
set_var_text_label s$5384[6] = 188@s
set_var_text_label s$5404[6] = 166@s
set_var_text_label s$5364[7] = 186@s
set_var_text_label s$5384[7] = 170@s
set_var_text_label s$5404[7] = 212@s
set_var_text_label s$5364[8] = 180@s
set_var_text_label s$5384[8] = 184@s
set_var_text_label s$5404[8] = 162@s
set_var_text_label s$5364[9] = 196@s
set_var_text_label s$5384[9] = 178@s
set_var_text_label s$5404[9] = 182@s
$cutscene_skip_CUT = 1

:NONE_2319
214@ = 336.4137
215@ = 58.2432
216@ = 201.225
217@ = 88.9168
218@ = 29.78
219@ = 260.0
220@ = 28.5713
221@ = 0
222@ = 0
223@ = 0
224@ = 0
Camera.DoFade(0, Fade.In)
Hud.DrawRect(320.0, 224.0, 640.0, 448.0, 0, 0, 0, 255)
225@ = 0
226@ = -1
227@ = 0

:NONE_2475
290@(227@,60f) = Math.RandomFloatInRange(0.0, 300.0)
230@(227@,60f) = Math.RandomFloatInRange(0.0, 360.0)
227@ += 1
  227@ >= 60
goto_if_false @NONE_2475
350@ = 8.0

:NONE_2544
wait 0
Hud.DrawRect(320.0, 224.0, 640.0, 448.0, 0, 0, 0, 255)
$game_timer = Clock.GetGameTimer()
392@ = 0
422@, 423@, 424@, 424@ = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  -100 > 423@
goto_if_false @NONE_2760
if 
  221@ == 0
goto_if_false @NONE_2746
if 
  225@ == 2
goto_if_false @NONE_2701
225@ = 1
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1179)
goto @NONE_2746

:NONE_2701
if 
  225@ == 1
goto_if_false @NONE_2746
225@ = 0
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1179)

:NONE_2746
221@ = 1
goto @NONE_2927

:NONE_2760
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  423@ > 100
goto_if_false @NONE_2913
if 
  222@ == 0
goto_if_false @NONE_2899
if 
  225@ == 0
goto_if_false @NONE_2854
225@ = 1
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1179)
goto @NONE_2899

:NONE_2854
if 
  225@ == 1
goto_if_false @NONE_2899
225@ = 2
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1179)

:NONE_2899
222@ = 1
goto @NONE_2920

:NONE_2913
222@ = 0

:NONE_2920
221@ = 0

:NONE_2927
gosub @NONE_12253
if 
  225@ == 0
goto_if_false @NONE_2971
Text.SetColor(255, 0, 0, 255)
goto @NONE_2985

:NONE_2971
Text.SetColor(255, 255, 255, 255)

:NONE_2985
Text.SetScale(1.0, 3.0)
Text.Display(320.0, 250.0, 'SPAC_04')
gosub @NONE_12253
if 
  225@ == 1
goto_if_false @NONE_3062
Text.SetColor(255, 0, 0, 255)
goto @NONE_3076

:NONE_3062
Text.SetColor(255, 255, 255, 255)

:NONE_3076
Text.SetScale(1.0, 3.0)
Text.Display(320.0, 300.0, 'SPAC_06')
gosub @NONE_12253
if 
  225@ == 2
goto_if_false @NONE_3153
Text.SetColor(255, 0, 0, 255)
goto @NONE_3167

:NONE_3153
Text.SetColor(255, 255, 255, 255)

:NONE_3167
Text.SetScale(1.0, 3.0)
Text.Display(320.0, 350.0, 'SPAC_05')
227@ = 0

:NONE_3207
290@(227@,60f) += 8.0
$x = Math.Cos(230@(227@,60f))
$y = Math.Sin(230@(227@,60f))
mult_float_var_by_float_lvar $x *= 290@(227@,60f)
mult_float_var_by_float_lvar $y *= 290@(227@,60f)
$x += 320.0
$y += 224.0
Hud.DrawRect($x, $y, 1.0, 1.0, 255, 255, 255, 255)
if or
  $x > 640.0
  0.0 > $x
  0.0 > $y
  $y > 448.0
goto_if_false @NONE_3403
290@(227@,60f) = 10.0
230@(227@,60f) = Math.RandomFloatInRange(0.0, 360.0)

:NONE_3403
227@ += 1
  227@ >= 60
goto_if_false @NONE_3207
Hud.DrawSprite(24, 320.0, 140.0, 256.0, 128.0, 220, 220, 220, 255)
Hud.DrawSprite(2, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(2, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(2, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(2, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @NONE_3769
if 
  223@ == 0
goto_if_false @NONE_3762
223@ += 1
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1180)
if 
  225@ == 0
goto_if_false @NONE_3691
goto @NONE_3783

:NONE_3691
if 
  225@ == 1
goto_if_false @NONE_3716
goto @NONE_10295

:NONE_3716
if 
  225@ == 2
goto_if_false @NONE_3762
Txd.Remove
Player.SetControl($player1, True)
Camera.DoFade(0, Fade.Out)
wait 0
Camera.DoFade(500, Fade.In)
return 

:NONE_3762
goto @NONE_3776

:NONE_3769
223@ = 0

:NONE_3776
goto @NONE_2544

:NONE_3783
351@ = 90.0
227@ = 0

:NONE_3800
352@(227@,10i) = 0
362@(227@,10i) = 0
372@(227@,10i) = 0
382@(227@,10i) = 0
227@ += 1
  227@ >= 10
goto_if_false @NONE_3800
392@ = 0
393@ = 0
394@ = 0
227@ = 0

:NONE_3893
395@(227@,8i) = 0
227@ += 1
  227@ >= 8
goto_if_false @NONE_3893
403@ = 0
404@ = 255
405@ = -50
406@ = 0
407@ = 100
set_lvar_int_to_lvar_int 408@ = 407@
409@ = 0
410@ = 0
411@ = 100
412@ = 3
413@ = 0
414@ = 0
415@ = 0
416@ = 0
417@ = 0
418@ = 0
419@ = 1
420@ = 0
421@ = 190.0
350@ = 8.0

:NONE_4073
wait 0
Hud.DrawRect(320.0, 224.0, 640.0, 448.0, 0, 0, 0, 255)
$game_timer = Clock.GetGameTimer()
227@ = 0

:NONE_4120
add_float_lvar_to_float_lvar 290@(227@,60f) += 350@
$x = Math.Cos(230@(227@,60f))
$y = Math.Sin(230@(227@,60f))
mult_float_var_by_float_lvar $x *= 290@(227@,60f)
mult_float_var_by_float_lvar $y *= 290@(227@,60f)
$x += 320.0
$y += 224.0
Hud.DrawRect($x, $y, 1.0, 1.0, 255, 255, 255, 255)
if or
  $x > 640.0
  0.0 > $x
  0.0 > $y
  $y > 448.0
goto_if_false @NONE_4314
290@(227@,60f) = 10.0
230@(227@,60f) = Math.RandomFloatInRange(0.0, 360.0)

:NONE_4314
227@ += 1
  227@ >= 60
goto_if_false @NONE_4120
if 
  394@ == 0
goto_if_false @NONE_5351
if 
  2 > 418@
goto_if_false @NONE_4515
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @NONE_4413
add_timed_val_to_float_lvar 351@ +=@ -2.65
351@ = Math.LimitAngle(351@)
goto @NONE_4515

:NONE_4413
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @NONE_4455
add_timed_val_to_float_lvar 351@ +=@ 2.65
351@ = Math.LimitAngle(351@)
goto @NONE_4515

:NONE_4455
422@, 423@, 424@, 424@ = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
cset_lvar_float_to_lvar_int 425@ =# 422@
425@ *= -1.0
425@ /= 25.0
add_float_lvar_to_float_lvar 351@ += 425@
351@ = Math.LimitAngle(351@)

:NONE_4515
$x = Math.Cos(351@)
$y = Math.Sin(351@)
set_lvar_float_to_var_float 426@ = $y
426@ *= 22.0
if 
  0.0 > 426@
goto_if_false @NONE_4580
426@ *= -1.0

:NONE_4580
426@ += 26.0
set_lvar_float_to_var_float 427@ = $x
427@ *= 22.0
if 
  0.0 > 427@
goto_if_false @NONE_4639
427@ *= -1.0

:NONE_4639
427@ += 26.0
if 
  418@ == 2
goto_if_false @NONE_4722
sub_timed_val_from_float_lvar 421@ -=@ 2.0
350@ = 16.0
if 
  20.0 > 421@
goto_if_false @NONE_4715
418@ = 3

:NONE_4715
goto @NONE_4829

:NONE_4722
if 
  418@ == 3
goto_if_false @NONE_4809
add_timed_val_to_float_lvar 421@ +=@ 2.0
if 
  421@ > 190.0
goto_if_false @NONE_4802
421@ = 190.0
416@ = 0
419@ += 1
418@ = 0

:NONE_4802
goto @NONE_4829

:NONE_4809
350@ = 8.0
421@ = 190.0

:NONE_4829
mult_float_var_by_float_lvar $x *= 421@
mult_float_var_by_float_lvar $y *= 421@
set_lvar_float_to_var_float 428@ = $x
428@ += 320.0
set_lvar_float_to_var_float 429@ = $y
429@ += 224.0
if 
  is_int_lvar_greater_than_int_var 403@ > $game_timer
goto_if_false @NONE_4981
add_int_lvar_to_int_lvar 404@ += 405@
if 
  404@ > 255
goto_if_false @NONE_4942
404@ = 255
405@ = -50

:NONE_4942
if 
  0 > 404@
goto_if_false @NONE_4974
404@ = 0
405@ = 50

:NONE_4974
goto @NONE_4989

:NONE_4981
404@ = 255

:NONE_4989
set_lvar_float_to_lvar_float 431@ = 421@
431@ /= 5.9375
set_lvar_float_to_lvar_float 430@ = 431@
430@ *= 2.0
set_var_float_to_lvar_float $heading = 351@
$heading += 90.0
if 
  2 > 418@
goto_if_false @NONE_5099
Hud.DrawSpriteWithRotation(20, 428@, 429@, 430@, 431@, $heading, 220, 220, 220, 404@)
goto @NONE_5130

:NONE_5099
Hud.DrawSpriteWithRotation(21, 428@, 429@, 430@, 431@, $heading, 220, 220, 220, 404@)

:NONE_5130
if 
  2 > 418@
goto_if_false @NONE_5344
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @NONE_5337
if 
  224@ == 0
goto_if_false @NONE_5330
227@ = 0

:NONE_5190
if 
  352@(227@,10i) == 0
goto_if_false @NONE_5282
set_lvar_float_to_lvar_float 432@(227@,10f) = 351@
442@(227@,10f) = 190.0
352@(227@,10i) = 1
452@(227@,10f) = -12.0
set_lvar_float_to_var_float 462@(227@,10f) = $heading
227@ = 9

:NONE_5282
227@ += 1
  227@ >= 10
goto_if_false @NONE_5190
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1170)
224@ = 1

:NONE_5330
goto @NONE_5344

:NONE_5337
224@ = 0

:NONE_5344
goto @NONE_5975

:NONE_5351
if 
  394@ == 1
goto_if_false @NONE_5459
227@ = 0

:NONE_5376
395@(227@,8i) = 1
set_lvar_float_to_lvar_float 472@(227@,8f) = 428@
set_lvar_float_to_lvar_float 480@(227@,8f) = 429@
227@ += 1
  227@ >= 8
goto_if_false @NONE_5376
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1172)
394@ += 1

:NONE_5459
if 
  394@ == 2
goto_if_false @NONE_5896
227@ = 0

:NONE_5484
if 
  395@(227@,8i) > 0
goto_if_false @NONE_5667
if 
  395@(227@,8i) == 1
goto_if_false @NONE_5539
395@(227@,8i) = 5

:NONE_5539
add_float_lvar_to_float_lvar 472@(227@,8f) += 124@(227@,8f)
add_float_lvar_to_float_lvar 480@(227@,8f) += 132@(227@,8f)
395@(227@,8i) += 1
if 
  395@(227@,8i) > 16
goto_if_false @NONE_5622
395@(227@,8i) = 0
goto @NONE_5667

:NONE_5622
Hud.DrawSprite(395@(227@,8i), 472@(227@,8f), 480@(227@,8f), 32.0, 32.0, 220, 220, 220, 255)

:NONE_5667
227@ += 1
  227@ >= 8
goto_if_false @NONE_5484
424@ = 0
227@ = 0

:NONE_5702
add_int_lvar_to_int_lvar 424@ += 395@(227@,8i)
227@ += 1
  227@ >= 8
goto_if_false @NONE_5702
if 
  424@ == 0
goto_if_false @NONE_5896
351@ = 90.0
set_lvar_int_to_var_int 403@ = $game_timer
403@ += 2500
409@ = 0
410@ = 0
411@ = 100
408@ = 100
412@ -= 1
if 
  412@ > 0
goto_if_false @NONE_5853
394@ = 0
407@ = 100
goto @NONE_5896

:NONE_5853
set_lvar_int_to_var_int 488@ = $game_timer
488@ += 3000
394@ = 3
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1178)

:NONE_5896
if 
  394@ == 3
goto_if_false @NONE_5975
if 
  is_int_lvar_greater_than_int_var 488@ > $game_timer
goto_if_false @NONE_5968
gosub @NONE_12253
Text.Display(320.0, 100.0, 'SPAC_01')
goto @NONE_5975

:NONE_5968
406@ = 1

:NONE_5975
227@ = 0

:NONE_5982
if 
  352@(227@,10i) == 1
goto_if_false @NONE_6202
add_float_lvar_to_float_lvar 442@(227@,10f) += 452@(227@,10f)
$x = Math.Cos(432@(227@,10f))
$y = Math.Sin(432@(227@,10f))
mult_float_var_by_float_lvar $x *= 442@(227@,10f)
mult_float_var_by_float_lvar $y *= 442@(227@,10f)
set_lvar_float_to_var_float 489@(227@,10f) = $x
489@(227@,10f) += 320.0
set_lvar_float_to_var_float 499@(227@,10f) = $y
499@(227@,10f) += 224.0
Hud.DrawSpriteWithRotation(3, 489@(227@,10f), 499@(227@,10f), 8.0, 8.0, 462@(227@,10f), 52, 183, 195, 255)
if 
  10.0 > 442@(227@,10f)
goto_if_false @NONE_6202
352@(227@,10i) = 0

:NONE_6202
227@ += 1
  227@ >= 10
goto_if_false @NONE_5982
if 
  418@ == 0
goto_if_false @NONE_6321
if 
  is_int_var_greater_than_int_lvar $game_timer > 509@
goto_if_false @NONE_6314
510@ = Math.RandomFloatInRange(0.0, 360.0)
511@ = Math.RandomIntInRange(0, 3)
413@ = 0
512@ = 10
set_lvar_int_to_var_int 509@ = $game_timer
509@ += 8000

:NONE_6314
goto @NONE_6337

:NONE_6321
set_lvar_int_to_var_int 509@ = $game_timer
509@ += 1000

:NONE_6337
if 
  512@ > 0
goto_if_false @NONE_6582
if 
  is_int_var_greater_than_int_lvar $game_timer > 393@
goto_if_false @NONE_6582
227@ = 0

:NONE_6381
if 
  372@(227@,10i) == 0
goto_if_false @NONE_6561
set_lvar_float_to_lvar_float 513@(227@,10f) = 510@
523@(227@,10f) = 5.0
533@(227@,10f) = 3.0
543@(227@,10f) = 10.0
553@(227@,10i) = 0
set_lvar_int_to_var_int 563@(227@,10i) = $game_timer
563@(227@,10i) += 500
372@(227@,10i) = 1
593@(227@,10f) = 320.0
603@(227@,10f) = 224.0
set_lvar_int_to_var_int 393@ = $game_timer
393@ += 200
512@ -= 1
227@ = 9

:NONE_6561
227@ += 1
  227@ >= 10
goto_if_false @NONE_6381

:NONE_6582
420@ = 0
227@ = 0

:NONE_6596
if 
  372@(227@,10i) == 1
goto_if_false @NONE_8083
if 
  10 > 553@(227@,10i)
goto_if_false @NONE_6920
if 
  is_int_var_greater_than_int_lvar $game_timer > 563@(227@,10i)
goto_if_false @NONE_6920
set_lvar_int_to_lvar_int 424@ = 553@(227@,10i)
if 
  511@ == 0
goto_if_false @NONE_6753
set_lvar_float_to_lvar_float 533@(227@,10f) = 34@(424@,10f)
set_lvar_float_to_lvar_float 523@(227@,10f) = 44@(424@,10f)
set_lvar_int_to_var_int 563@(227@,10i) = $game_timer
add_int_lvar_to_int_lvar 563@(227@,10i) += 54@(424@,10i)

:NONE_6753
if 
  511@ == 1
goto_if_false @NONE_6831
set_lvar_float_to_lvar_float 533@(227@,10f) = 64@(424@,10f)
set_lvar_float_to_lvar_float 523@(227@,10f) = 74@(424@,10f)
set_lvar_int_to_var_int 563@(227@,10i) = $game_timer
add_int_lvar_to_int_lvar 563@(227@,10i) += 84@(424@,10i)

:NONE_6831
if 
  511@ == 2
goto_if_false @NONE_6909
set_lvar_float_to_lvar_float 533@(227@,10f) = 94@(424@,10f)
set_lvar_float_to_lvar_float 523@(227@,10f) = 104@(424@,10f)
set_lvar_int_to_var_int 563@(227@,10i) = $game_timer
add_int_lvar_to_int_lvar 563@(227@,10i) += 114@(424@,10i)

:NONE_6909
553@(227@,10i) += 1

:NONE_6920
420@ = 1
add_float_lvar_to_float_lvar 543@(227@,10f) += 533@(227@,10f)
add_float_lvar_to_float_lvar 513@(227@,10f) += 523@(227@,10f)
513@(227@,10f) = Math.LimitAngle(513@(227@,10f))
$x = Math.Cos(513@(227@,10f))
$y = Math.Sin(513@(227@,10f))
mult_float_var_by_float_lvar $x *= 543@(227@,10f)
mult_float_var_by_float_lvar $y *= 543@(227@,10f)
set_lvar_float_to_lvar_float 593@(227@,10f) = 573@(227@,10f)
set_lvar_float_to_lvar_float 603@(227@,10f) = 583@(227@,10f)
set_lvar_float_to_var_float 573@(227@,10f) = $x
573@(227@,10f) += 320.0
set_lvar_float_to_var_float 583@(227@,10f) = $y
583@(227@,10f) += 224.0
set_lvar_float_to_lvar_float 613@ = 543@(227@,10f)
613@ /= 5.0
set_var_float_to_lvar_float $x = 573@(227@,10f)
sub_float_lvar_from_float_var $x -= 593@(227@,10f)
set_var_float_to_lvar_float $y = 583@(227@,10f)
sub_float_lvar_from_float_var $y -= 603@(227@,10f)
$heading = Math.GetHeadingFromVector2D($x, $y)
if 
  511@ == 0
goto_if_false @NONE_7252
Hud.DrawSpriteWithRotation(1, 573@(227@,10f), 583@(227@,10f), 613@, 613@, $heading, 220, 220, 220, 255)
goto @NONE_7355

:NONE_7252
if 
  511@ == 1
goto_if_false @NONE_7316
Hud.DrawSpriteWithRotation(22, 573@(227@,10f), 583@(227@,10f), 613@, 613@, $heading, 220, 220, 220, 255)
goto @NONE_7355

:NONE_7316
Hud.DrawSpriteWithRotation(23, 573@(227@,10f), 583@(227@,10f), 613@, 613@, $heading, 220, 220, 220, 255)

:NONE_7355
set_var_float_to_lvar_float $x = 351@
$x += 10.0
set_var_float_to_lvar_float $y = 351@
$y -= 10.0
if and
  is_float_var_greater_than_float_lvar $x > 513@(227@,10f)
  is_float_lvar_greater_than_float_var 513@(227@,10f) > $y
goto_if_false @NONE_7628
424@ = 18
sub_int_lvar_from_int_lvar 424@ -= 419@
if 
  4 > 424@
goto_if_false @NONE_7466
424@ = 4

:NONE_7466
424@ = Math.RandomIntInRange(0, 424@)
if 
  424@ == 0
goto_if_false @NONE_7628
228@ = 0

:NONE_7501
if 
  382@(228@,10i) == 0
goto_if_false @NONE_7607
set_lvar_float_to_lvar_float 614@(228@,10f) = 513@(227@,10f)
set_lvar_float_to_lvar_float 624@(228@,10f) = 543@(227@,10f)
382@(228@,10i) = 1
634@(228@,10f) = 6.0
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1171)
228@ = 9

:NONE_7607
228@ += 1
  228@ >= 10
goto_if_false @NONE_7501

:NONE_7628
if or
  543@(227@,10f) > 320.0
  10.0 > 543@(227@,10f)
goto_if_false @NONE_7678
372@(227@,10i) = 0

:NONE_7678
228@ = 0

:NONE_7685
if 
  352@(228@,10i) == 1
goto_if_false @NONE_8062
if 
  Math.Do2DRectanglesCollide(489@(228@,10f), 499@(228@,10f), 12.0, 12.0, 573@(227@,10f), 583@(227@,10f), 613@, 613@)
goto_if_false @NONE_8062
372@(227@,10i) = 0
352@(228@,10i) = 0
413@ += 1
if 
  413@ == 10
goto_if_false @NONE_7912
set_lvar_float_to_lvar_float 644@ = 573@(227@,10f)
set_lvar_float_to_lvar_float 645@ = 583@(227@,10f)
set_lvar_int_to_var_int 415@ = $game_timer
415@ += 1500
set_lvar_float_to_lvar_float 646@ = 513@(227@,10f)
set_lvar_float_to_lvar_float 647@ = 543@(227@,10f)
417@ += 1
414@ = 100
mult_int_lvar_by_int_lvar 414@ *= 419@
add_int_lvar_to_int_lvar 392@ += 414@
goto @NONE_7935

:NONE_7912
424@ = 10
mult_int_lvar_by_int_lvar 424@ *= 419@
add_int_lvar_to_int_lvar 392@ += 424@

:NONE_7935
229@ = 0

:NONE_7942
if 
  362@(229@,10i) == 0
goto_if_false @NONE_8034
set_lvar_float_to_lvar_float 648@(229@,10f) = 573@(227@,10f)
set_lvar_float_to_lvar_float 658@(229@,10f) = 583@(227@,10f)
362@(229@,10i) += 1
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1172)
229@ = 9

:NONE_8034
229@ += 1
  229@ >= 10
goto_if_false @NONE_7942
228@ = 9

:NONE_8062
228@ += 1
  228@ >= 10
goto_if_false @NONE_7685

:NONE_8083
227@ += 1
  227@ >= 10
goto_if_false @NONE_6596
if 
  418@ == 1
goto_if_false @NONE_8167
if 
  420@ == 0
goto_if_false @NONE_8167
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1176)
418@ = 2

:NONE_8167
227@ = 0

:NONE_8174
if 
  382@(227@,10i) == 1
goto_if_false @NONE_8642
add_float_lvar_to_float_lvar 624@(227@,10f) += 634@(227@,10f)
$x = Math.Cos(614@(227@,10f))
$y = Math.Sin(614@(227@,10f))
mult_float_var_by_float_lvar $x *= 624@(227@,10f)
mult_float_var_by_float_lvar $y *= 624@(227@,10f)
set_lvar_float_to_var_float 668@(227@,10f) = $x
668@(227@,10f) += 320.0
set_lvar_float_to_var_float 678@(227@,10f) = $y
678@(227@,10f) += 224.0
Hud.DrawSprite(4, 668@(227@,10f), 678@(227@,10f), 8.0, 8.0, 244, 0, 0, 255)
if 
  not Math.Do2DRectanglesCollide(668@(227@,10f), 678@(227@,10f), 8.0, 8.0, 320.0, 224.0, 640.0, 448.0)
goto_if_false @NONE_8418
382@(227@,10i) = 0

:NONE_8418
if 
  394@ == 0
goto_if_false @NONE_8642
if 
  Math.Do2DRectanglesCollide(668@(227@,10f), 678@(227@,10f), 8.0, 8.0, 428@, 429@, 426@, 427@)
goto_if_false @NONE_8642
if 
  is_int_var_greater_than_int_lvar $game_timer > 403@
goto_if_false @NONE_8511
407@ -= 20

:NONE_8511
382@(227@,10i) = 0
229@ = 0

:NONE_8529
if 
  362@(229@,10i) == 0
goto_if_false @NONE_8621
set_lvar_float_to_lvar_float 648@(229@,10f) = 668@(227@,10f)
set_lvar_float_to_lvar_float 658@(229@,10f) = 678@(227@,10f)
362@(229@,10i) += 1
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1172)
229@ = 9

:NONE_8621
229@ += 1
  229@ >= 10
goto_if_false @NONE_8529

:NONE_8642
227@ += 1
  227@ >= 10
goto_if_false @NONE_8174
if 
  394@ == 0
goto_if_false @NONE_8885
if 
  409@ > 0
goto_if_false @NONE_8885
if 
  409@ > 1
goto_if_false @NONE_8731
411@ = 100
409@ -= 1

:NONE_8731
add_int_lvar_to_int_lvar 410@ += 411@
if 
  410@ > 255
goto_if_false @NONE_8773
410@ = 255
411@ = -20

:NONE_8773
if 
  0 > 410@
goto_if_false @NONE_8812
410@ = 0
411@ = 100
409@ = 0

:NONE_8812
set_var_float_to_lvar_float $heading = 351@
$heading += 90.0
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1177)
Hud.DrawSpriteWithRotation(17, 428@, 429@, 64.0, 32.0, $heading, 220, 220, 220, 410@)

:NONE_8885
227@ = 0

:NONE_8892
if 
  362@(227@,10i) > 0
goto_if_false @NONE_9043
if 
  362@(227@,10i) == 1
goto_if_false @NONE_8947
362@(227@,10i) = 5

:NONE_8947
362@(227@,10i) += 1
if 
  362@(227@,10i) > 16
goto_if_false @NONE_8998
362@(227@,10i) = 0
goto @NONE_9043

:NONE_8998
Hud.DrawSprite(362@(227@,10i), 648@(227@,10f), 658@(227@,10f), 32.0, 32.0, 220, 220, 220, 255)

:NONE_9043
227@ += 1
  227@ >= 10
goto_if_false @NONE_8892
if 
  417@ == 1
goto_if_false @NONE_9450
647@ += 2.0
646@ = Math.LimitAngle(646@)
$x = Math.Cos(646@)
$y = Math.Sin(646@)
mult_float_var_by_float_lvar $x *= 647@
mult_float_var_by_float_lvar $y *= 647@
set_lvar_float_to_var_float 688@ = $x
688@ += 320.0
set_lvar_float_to_var_float 689@ = $y
689@ += 224.0
Hud.DrawSprite(18, 688@, 689@, 16.0, 16.0, 255, 255, 255, 255)
if 
  394@ == 0
goto_if_false @NONE_9394
if 
  Math.Do2DRectanglesCollide(688@, 689@, 16.0, 16.0, 428@, 429@, 426@, 427@)
goto_if_false @NONE_9394
416@ += 1
if 
  416@ == 1
goto_if_false @NONE_9304
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1173)

:NONE_9304
if 
  416@ == 2
goto_if_false @NONE_9342
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1174)

:NONE_9342
if 
  416@ == 3
goto_if_false @NONE_9387
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1175)
418@ = 1

:NONE_9387
417@ = 0

:NONE_9394
if 
  not Math.Do2DRectanglesCollide(688@, 689@, 16.0, 16.0, 320.0, 224.0, 640.0, 448.0)
goto_if_false @NONE_9450
417@ = 0

:NONE_9450
if or
  0 > 407@
  407@ == 0
goto_if_false @NONE_9507
407@ = 0
if 
  394@ == 0
goto_if_false @NONE_9507
394@ = 1

:NONE_9507
if 
  is_int_lvar_greater_than_int_lvar 408@ > 407@
goto_if_false @NONE_9541
set_lvar_int_to_lvar_int 408@ = 407@
409@ += 1

:NONE_9541
gosub @NONE_12253
Text.SetScale(0.6, 2.6)
Text.Display(95.0, 45.0, 'NONE_01')
gosub @NONE_12253
Text.SetScale(0.6, 2.6)
Text.DisplayWithNumber(95.0, 70.0, 'NUMBER', 392@)
gosub @NONE_12253
Text.SetScale(0.6, 2.6)
Text.Display(550.0, 45.0, 'NONE_02')
Hud.DrawSprite(20, 527.2529, 84.2723, 48.0, 24.0, 220, 220, 220, 255)
gosub @NONE_12253
Text.SetCenter(False)
Text.SetScale(0.6, 2.6)
Text.DisplayWithNumber(554.7283, 70.0, 'NONE_03', 412@)
gosub @NONE_12253
Text.SetScale(0.6, 2.6)
Text.Display(550.0, 350.0, 'NONE_04')
gosub @NONE_12253
Text.SetScale(0.6, 2.6)
Text.DisplayWithNumber(550.0, 375.0, 'NONE_05', 407@)
gosub @NONE_12253
Text.SetScale(0.6, 2.6)
Text.Display(95.0, 350.0, 'NONE_07')
gosub @NONE_12253
Text.SetScale(0.6, 2.6)
Text.DisplayWithNumber(95.0, 375.0, 'NUMBER', 419@)
if 
  is_int_lvar_greater_than_int_var 415@ > $game_timer
goto_if_false @NONE_9984
gosub @NONE_12253
Text.SetColor(0, 180, 180, 255)
Text.SetScale(0.5, 1.5)
Text.DisplayWithNumber(644@, 645@, 'NUMBER', 414@)

:NONE_9984
if 
  394@ == 0
goto_if_false @NONE_10048
if 
  418@ > 0
goto_if_false @NONE_10048
gosub @NONE_12253
Text.Display(320.0, 100.0, 'NONE_06')

:NONE_10048
Hud.DrawSprite(2, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(2, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(2, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(2, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @NONE_10216
406@ = 1

:NONE_10216
if 
  406@ == 1
goto_if_false @NONE_10288
if 
  is_int_lvar_greater_than_int_var 392@ > $played_none_before[9]
goto_if_false @NONE_10281
690@ = 10
691@ = 0
goto @NONE_10295
goto @NONE_10288

:NONE_10281
goto @NONE_2544

:NONE_10288
goto @NONE_4073

:NONE_10295
wait 0
Hud.DrawRect(320.0, 224.0, 640.0, 448.0, 0, 0, 0, 255)
$game_timer = Clock.GetGameTimer()
227@ = 9

:NONE_10342
if 
  227@ > -1
goto_if_false @NONE_10589
if 
  is_int_lvar_greater_than_int_var 392@ > $played_none_before(227@,10i)
goto_if_false @NONE_10568
if 
  227@ <> 9
goto_if_false @NONE_10480
set_lvar_int_to_lvar_int 228@ = 227@
228@ += 1
set_var_int_to_var_int $played_none_before(228@,10i) = $played_none_before(227@,10i)
set_var_text_label $5364(228@,10s) = $5364(227@,10s)
set_var_text_label $5384(228@,10s) = $5384(227@,10s)
set_var_text_label $5404(228@,10s) = $5404(227@,10s)

:NONE_10480
set_var_int_to_lvar_int $played_none_before(227@,10i) = 392@
set_var_text_label $5364(227@,10s) = 212@s
set_var_text_label $5384(227@,10s) = 212@s
set_var_text_label $5404(227@,10s) = 212@s
set_lvar_int_to_lvar_int 226@ = 227@
if 
  227@ == 0
goto_if_false @NONE_10561
392@ = 0

:NONE_10561
goto @NONE_10575

:NONE_10568
392@ = 0

:NONE_10575
227@ -= 1
goto @NONE_10342

:NONE_10589
if 
  226@ > -1
goto_if_false @NONE_11091
if 
  691@ == 0
goto_if_false @NONE_10665
set_var_text_label $5364(226@,10s) = 140@(690@,37s)
set_var_text_label $5384(226@,10s) = 212@s
set_var_text_label $5404(226@,10s) = 212@s

:NONE_10665
if 
  691@ == 1
goto_if_false @NONE_10711
set_var_text_label $5384(226@,10s) = 140@(690@,37s)
set_var_text_label $5404(226@,10s) = 212@s

:NONE_10711
if 
  691@ == 2
goto_if_false @NONE_10745
set_var_text_label $5404(226@,10s) = 140@(690@,37s)

:NONE_10745
422@, 423@, 424@, 424@ = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  -100 > 423@
goto_if_false @NONE_10866
if 
  is_int_var_greater_than_int_lvar $game_timer > 221@
goto_if_false @NONE_10859
if 
  36 > 690@
goto_if_false @NONE_10836
690@ += 1
goto @NONE_10843

:NONE_10836
690@ = 0

:NONE_10843
set_lvar_int_to_var_int 221@ = $game_timer
221@ += 250

:NONE_10859
goto @NONE_10882

:NONE_10866
set_lvar_int_to_var_int 221@ = $game_timer
221@ -= 250

:NONE_10882
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  423@ > 100
goto_if_false @NONE_10987
if 
  is_int_var_greater_than_int_lvar $game_timer > 222@
goto_if_false @NONE_10980
if 
  690@ > 0
goto_if_false @NONE_10957
690@ -= 1
goto @NONE_10964

:NONE_10957
690@ = 36

:NONE_10964
set_lvar_int_to_var_int 222@ = $game_timer
222@ += 250

:NONE_10980
goto @NONE_11003

:NONE_10987
set_lvar_int_to_var_int 222@ = $game_timer
222@ -= 250

:NONE_11003
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @NONE_11084
if 
  223@ == 0
goto_if_false @NONE_11077
691@ += 1
223@ += 1
if 
  691@ == 3
goto_if_false @NONE_11077
226@ = -1

:NONE_11077
goto @NONE_11091

:NONE_11084
223@ = 0

:NONE_11091
227@ = 0

:NONE_11098
290@(227@,60f) += 8.0
$x = Math.Cos(230@(227@,60f))
$y = Math.Sin(230@(227@,60f))
mult_float_var_by_float_lvar $x *= 290@(227@,60f)
mult_float_var_by_float_lvar $y *= 290@(227@,60f)
$x += 320.0
$y += 224.0
Hud.DrawRect($x, $y, 1.0, 1.0, 255, 255, 255, 255)
if or
  $x > 640.0
  0.0 > $x
  0.0 > $y
  $y > 448.0
goto_if_false @NONE_11294
290@(227@,60f) = 10.0
230@(227@,60f) = Math.RandomFloatInRange(0.0, 360.0)

:NONE_11294
227@ += 1
  227@ >= 60
goto_if_false @NONE_11098
gosub @NONE_12253
Text.SetFont(Font.Subtitles)
Text.Display(214@, 215@, 'SPAC_06')
set_lvar_float_to_lvar_float 692@ = 216@
set_lvar_float_to_lvar_float 693@ = 217@
227@ = 0

:NONE_11366
if 
  10 > 227@
goto_if_false @NONE_11985
set_lvar_float_to_lvar_float 692@ = 216@
gosub @NONE_12253
Text.SetCenter(False)
Text.SetJustify(True)
Text.SetFont(Font.Subtitles)
if 
  is_int_lvar_equal_to_int_lvar 226@ == 227@
goto_if_false @NONE_11442
Text.SetColor(0, 155, 0, 255)

:NONE_11442
if or
  is_var_text_label_equal_to_text_label $5364(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $5364(227@,10s) == 176@s
goto_if_false @NONE_11487
692@ += 8.0

:NONE_11487
Text.Display(692@, 693@, $5364(227@,10s))
if or
  is_var_text_label_equal_to_text_label $5364(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $5364(227@,10s) == 176@s
goto_if_false @NONE_11547
692@ -= 8.0

:NONE_11547
add_float_lvar_to_float_lvar 692@ += 218@
gosub @NONE_12253
Text.SetCenter(False)
Text.SetJustify(True)
Text.SetFont(Font.Subtitles)
if 
  is_int_lvar_equal_to_int_lvar 226@ == 227@
goto_if_false @NONE_11605
Text.SetColor(0, 155, 0, 255)

:NONE_11605
if or
  is_var_text_label_equal_to_text_label $5384(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $5384(227@,10s) == 176@s
goto_if_false @NONE_11650
692@ += 8.0

:NONE_11650
Text.Display(692@, 693@, $5384(227@,10s))
if or
  is_var_text_label_equal_to_text_label $5384(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $5384(227@,10s) == 176@s
goto_if_false @NONE_11710
692@ -= 8.0

:NONE_11710
add_float_lvar_to_float_lvar 692@ += 218@
gosub @NONE_12253
Text.SetCenter(False)
Text.SetJustify(True)
Text.SetFont(Font.Subtitles)
if 
  is_int_lvar_equal_to_int_lvar 226@ == 227@
goto_if_false @NONE_11768
Text.SetColor(0, 155, 0, 255)

:NONE_11768
if or
  is_var_text_label_equal_to_text_label $5404(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $5404(227@,10s) == 176@s
goto_if_false @NONE_11813
692@ += 8.0

:NONE_11813
Text.Display(692@, 693@, $5404(227@,10s))
if or
  is_var_text_label_equal_to_text_label $5404(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $5404(227@,10s) == 176@s
goto_if_false @NONE_11873
692@ -= 8.0

:NONE_11873
set_lvar_float_to_lvar_float 692@ = 216@
add_float_lvar_to_float_lvar 692@ += 219@
gosub @NONE_12253
Text.SetCenter(False)
Text.SetRightJustify(True)
Text.SetFont(Font.Subtitles)
if 
  is_int_lvar_equal_to_int_lvar 226@ == 227@
goto_if_false @NONE_11939
Text.SetColor(0, 155, 0, 255)

:NONE_11939
Text.DisplayWithNumber(692@, 693@, 'NUMBER', $played_none_before(227@,10i))
add_float_lvar_to_float_lvar 693@ += 220@
227@ += 1
goto @NONE_11366

:NONE_11985
Hud.DrawSprite(2, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(2, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(2, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(2, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
if 
  226@ == -1
goto_if_false @NONE_12246
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @NONE_12183
goto @NONE_2544

:NONE_12183
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @NONE_12239
if 
  223@ == 0
goto_if_false @NONE_12232
223@ += 1
goto @NONE_2544

:NONE_12232
goto @NONE_12246

:NONE_12239
223@ = 0

:NONE_12246
goto @NONE_10295

:NONE_12253
Text.SetColor(180, 180, 180, 255)
Text.SetScale(1.0, 3.0)
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(True)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
Text.SetDropshadow(0, 0, 0, 0, 180)
Text.SetFont(Font.Menu)
return 

:NONE_12325
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1182)
Text.ClearThisPrint('BUSY')
Game.ShutAllCharsUp(False)
$onmission = 0
Mission.Finish
return 

//-------------Mission 4---------------
// Originally: Video Game: Duality

:DUAL
gosub @DUAL_16
gosub @DUAL_15701
terminate_this_script 

:DUAL_16
$onmission = 1
script_name 'DUAL'
wait 0
Text.LoadMissionText('DUAL')
Text.UseCommands(True)
Txd.Remove
Txd.LoadDictionary('LD_SPAC')
Game.ShutAllCharsUp(True)
$x, $y, $z = Char.GetCoordinates($scplayer)
World.ClearArea($x, $y, $z, 50.0, False)
Txd.LoadSprite(1, "BACKGND")
Txd.LoadSprite(2, "LAYER")
Txd.LoadSprite(3, "TVCORN")
Txd.LoadSprite(4, "ROCKSHP")
Txd.LoadSprite(5, "THRUSTG")
Txd.LoadSprite(7, "DARK")
Txd.LoadSprite(8, "LIGHT")
Txd.LoadSprite(9, "EX1")
Txd.LoadSprite(10, "EX2")
Txd.LoadSprite(11, "EX3")
Txd.LoadSprite(12, "EX4")
Txd.LoadSprite(13, "WHITE")
Txd.LoadSprite(14, "SHOOT")
Txd.LoadSprite(15, "HEALTH")
Txd.LoadSprite(16, "POWER")
Txd.LoadSprite(17, "DUALITY")
Txd.LoadSprite(18, "BLACK")
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1807)

:DUAL_297
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @DUAL_323
wait 0
goto @DUAL_297

:DUAL_323
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1068)
51@ = Math.RandomIntInRange(0, 3)
switch_start 51@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DUAL_1516 {caseNum1} 0 {caseLabel1} @DUAL_415 {caseNum2} 1 {caseLabel2} @DUAL_782 {caseNum3} 2 {caseLabel3} @DUAL_1149 {caseNum4} -1 {caseLabel4} @DUAL_1516 {caseNum5} -1 {caseLabel5} @DUAL_1516 {caseNum6} -1 {caseLabel6} @DUAL_1516 {caseNum7} -1 {caseLabel7} @DUAL_1516

:DUAL_415
52@ = 160.0
64@ = 224.0
76@ = 320.0
88@ = 500.0
53@ = 480.0
65@ = 224.0
77@ = 320.0
89@ = 500.0
54@ = 320.0
66@ = 156.0
78@ = 256.0
90@ = 128.0
55@ = 452.2068
67@ = 90.0
79@ = 32.0
91@ = 32.0
56@ = 166.5889
68@ = 216.6436
80@ = 32.0
92@ = 32.0
57@ = 262.0
69@ = 300.0
81@ = 1.0
93@ = 3.0
58@ = 370.0
82@ = 0.9
94@ = 3.0
71@ = 342.0
83@ = 320.0
95@ = 229.7492
60@ = 284.4967
72@ = 314.9901
84@ = 320.0
96@ = 320.0
61@ = 351.9814
73@ = 356.8015
goto @DUAL_1516

:DUAL_782
52@ = 160.0
64@ = 224.0
76@ = 320.0
88@ = 500.0
53@ = 480.0
65@ = 224.0
77@ = 320.0
89@ = 500.0
54@ = 320.0
66@ = 219.561
78@ = 256.0
90@ = 128.0
55@ = 452.2068
67@ = 215.0997
79@ = 32.0
91@ = 32.0
56@ = 166.5889
68@ = 216.0905
80@ = 32.0
92@ = 32.0
57@ = 265.0504
69@ = 70.0389
81@ = 1.0
93@ = 3.0
58@ = 370.0
82@ = 0.9
94@ = 3.0
71@ = 342.0
83@ = 320.0
95@ = 91.233
60@ = 284.4967
72@ = 84.2511
84@ = 320.0
96@ = 296.2502
61@ = 351.9814
73@ = 356.8015
goto @DUAL_1516

:DUAL_1149
52@ = 160.0
64@ = 224.0
76@ = 320.0
88@ = 500.0
53@ = 480.0
65@ = 224.0
77@ = 320.0
89@ = 500.0
54@ = 320.0
66@ = 296.0475
78@ = 256.0
90@ = 128.0
55@ = 464.383
67@ = 354.7318
79@ = 32.0
91@ = 32.0
56@ = 166.5889
68@ = 216.0905
80@ = 32.0
92@ = 32.0
57@ = 265.0504
69@ = 70.0389
81@ = 1.0
93@ = 3.0
58@ = 370.0
82@ = 0.9
94@ = 3.0
71@ = 119.7153
83@ = 320.0
95@ = 135.5804
60@ = 284.4967
72@ = 84.2511
84@ = 320.0
96@ = 320.0
61@ = 351.9814
73@ = 134.4938
goto @DUAL_1516

:DUAL_1516
62@ = 33.8609
74@ = 18.1114
86@ = 230.0
98@ = 60.3475
63@ = 38.1753
75@ = 20.4681
87@ = 0.5014
99@ = 1.8889
100@ = 0
101@ = 1
102@ = 1
103@ = 1
104@ = 1
105@ = 1
set_lvar_text_label 106@s = 'DUAL_0'
set_lvar_text_label 108@s = 'DUAL_1'
set_lvar_text_label 110@s = 'DUAL_2'
set_lvar_text_label 112@s = 'DUAL_3'
set_lvar_text_label 114@s = 'DUAL_4'
set_lvar_text_label 116@s = 'DUAL_5'
set_lvar_text_label 118@s = 'DUAL_6'
set_lvar_text_label 120@s = 'DUAL_7'
set_lvar_text_label 122@s = 'DUAL_8'
set_lvar_text_label 124@s = 'DUAL_9'
set_lvar_text_label 126@s = 'DUAL_AA'
set_lvar_text_label 128@s = 'DUAL_B'
set_lvar_text_label 130@s = 'DUAL_C'
set_lvar_text_label 132@s = 'DUAL_D'
set_lvar_text_label 134@s = 'DUAL_E'
set_lvar_text_label 136@s = 'DUAL_F'
set_lvar_text_label 138@s = 'DUAL_G'
set_lvar_text_label 140@s = 'DUAL_H'
set_lvar_text_label 142@s = 'DUAL_I'
set_lvar_text_label 144@s = 'DUAL_J'
set_lvar_text_label 146@s = 'DUAL_K'
set_lvar_text_label 148@s = 'DUAL_L'
set_lvar_text_label 150@s = 'DUAL_M'
set_lvar_text_label 152@s = 'DUAL_N'
set_lvar_text_label 154@s = 'DUAL_O'
set_lvar_text_label 156@s = 'DUAL_P'
set_lvar_text_label 158@s = 'DUAL_Q'
set_lvar_text_label 160@s = 'DUAL_R'
set_lvar_text_label 162@s = 'DUAL_S'
set_lvar_text_label 164@s = 'DUAL_T'
set_lvar_text_label 166@s = 'DUAL_U'
set_lvar_text_label 168@s = 'DUAL_V'
set_lvar_text_label 170@s = 'DUAL_W'
set_lvar_text_label 172@s = 'DUAL_X'
set_lvar_text_label 174@s = 'DUAL_Y'
set_lvar_text_label 176@s = 'DUAL_Z'
set_lvar_text_label 178@s = 'DUAL_FS'
if 
  $5424 == 0
goto_if_false @DUAL_2819
$played_dual_before[0] = -10000
$played_dual_before[1] = -7500
$played_dual_before[2] = -5000
$played_dual_before[3] = -2500
$played_dual_before[4] = -1000
$played_dual_before[5] = -750
$played_dual_before[6] = -500
$played_dual_before[7] = -250
$played_dual_before[8] = -175
$played_dual_before[9] = -100
$5435[0] = 10000
$5435[1] = 7500
$5435[2] = 5000
$5435[3] = 2500
$5435[4] = 1000
$5435[5] = 750
$5435[6] = 500
$5435[7] = 250
$5435[8] = 175
$5435[9] = 100
set_var_text_label s$5445[0] = 132@s
set_var_text_label s$5465[0] = 144@s
set_var_text_label s$5485[0] = 178@s
set_var_text_label s$5445[1] = 146@s
set_var_text_label s$5465[1] = 160@s
set_var_text_label s$5485[1] = 174@s
set_var_text_label s$5445[2] = 162@s
set_var_text_label s$5465[2] = 142@s
set_var_text_label s$5485[2] = 162@s
set_var_text_label s$5445[3] = 170@s
set_var_text_label s$5465[3] = 132@s
set_var_text_label s$5485[3] = 174@s
set_var_text_label s$5445[4] = 132@s
set_var_text_label s$5465[4] = 126@s
set_var_text_label s$5485[4] = 152@s
set_var_text_label s$5445[5] = 148@s
set_var_text_label s$5465[5] = 160@s
set_var_text_label s$5485[5] = 138@s
set_var_text_label s$5445[6] = 152@s
set_var_text_label s$5465[6] = 154@s
set_var_text_label s$5485[6] = 152@s
set_var_text_label s$5445[7] = 138@s
set_var_text_label s$5465[7] = 126@s
set_var_text_label s$5485[7] = 176@s
set_var_text_label s$5445[8] = 108@s
set_var_text_label s$5465[8] = 106@s
set_var_text_label s$5485[8] = 108@s
set_var_text_label s$5445[9] = 144@s
set_var_text_label s$5465[9] = 166@s
set_var_text_label s$5485[9] = 132@s
set_var_text_label s$5505[0] = 126@s
set_var_text_label s$5525[0] = 132@s
set_var_text_label s$5545[0] = 176@s
set_var_text_label s$5505[1] = 130@s
set_var_text_label s$5525[1] = 126@s
set_var_text_label s$5545[1] = 152@s
set_var_text_label s$5505[2] = 142@s
set_var_text_label s$5525[2] = 150@s
set_var_text_label s$5545[2] = 174@s
set_var_text_label s$5505[3] = 170@s
set_var_text_label s$5525[3] = 142@s
set_var_text_label s$5545[3] = 148@s
set_var_text_label s$5505[4] = 132@s
set_var_text_label s$5525[4] = 128@s
set_var_text_label s$5545[4] = 156@s
set_var_text_label s$5505[5] = 132@s
set_var_text_label s$5525[5] = 126@s
set_var_text_label s$5545[5] = 168@s
set_var_text_label s$5505[6] = 132@s
set_var_text_label s$5525[6] = 154@s
set_var_text_label s$5545[6] = 132@s
set_var_text_label s$5505[7] = 152@s
set_var_text_label s$5525[7] = 136@s
set_var_text_label s$5545[7] = 178@s
set_var_text_label s$5505[8] = 146@s
set_var_text_label s$5525[8] = 150@s
set_var_text_label s$5545[8] = 128@s
set_var_text_label s$5505[9] = 162@s
set_var_text_label s$5525[9] = 144@s
set_var_text_label s$5545[9] = 148@s
$5424 = 1

:DUAL_2819
180@ = -1
181@ = 0
182@ = 321.4137
183@ = 58.2432
184@ = 201.225
185@ = 88.9168
186@ = 29.78
187@ = 230.5296
188@ = 28.5713

:DUAL_2903
wait 0
Camera.DoFade(0, Fade.In)
$game_timer = Clock.GetGameTimer()
300@ = 0
311@, 312@, 39@, 39@ = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
  311@ > 100
goto_if_false @DUAL_3094
if 
  103@ == 0
goto_if_false @DUAL_3080
if 
  100@ == 0
goto_if_false @DUAL_3035
100@ = 1
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1046)
goto @DUAL_3080

:DUAL_3035
if 
  100@ == 2
goto_if_false @DUAL_3080
100@ = 3
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1046)

:DUAL_3080
103@ = 1
goto @DUAL_3581

:DUAL_3094
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  -100 > 311@
goto_if_false @DUAL_3247
if 
  103@ == 0
goto_if_false @DUAL_3233
if 
  100@ == 1
goto_if_false @DUAL_3188
100@ = 0
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1046)
goto @DUAL_3233

:DUAL_3188
if 
  100@ == 3
goto_if_false @DUAL_3233
100@ = 2
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1046)

:DUAL_3233
102@ = 1
goto @DUAL_3574

:DUAL_3247
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  -100 > 312@
goto_if_false @DUAL_3400
if 
  104@ == 0
goto_if_false @DUAL_3386
if 
  100@ == 2
goto_if_false @DUAL_3341
100@ = 0
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1046)
goto @DUAL_3386

:DUAL_3341
if 
  100@ == 3
goto_if_false @DUAL_3386
100@ = 1
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1046)

:DUAL_3386
104@ = 1
goto @DUAL_3567

:DUAL_3400
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  312@ > 100
goto_if_false @DUAL_3553
if 
  105@ == 0
goto_if_false @DUAL_3539
if 
  100@ == 0
goto_if_false @DUAL_3494
100@ = 2
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1046)
goto @DUAL_3539

:DUAL_3494
if 
  100@ == 1
goto_if_false @DUAL_3539
100@ = 3
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1046)

:DUAL_3539
105@ = 1
goto @DUAL_3560

:DUAL_3553
105@ = 0

:DUAL_3560
104@ = 0

:DUAL_3567
102@ = 0

:DUAL_3574
103@ = 0

:DUAL_3581
Hud.DrawSprite(18, 52@, 64@, 76@, 88@, 255, 255, 255, 255)
Hud.DrawSprite(13, 53@, 65@, 77@, 89@, 255, 255, 255, 255)
Hud.DrawSprite(17, 54@, 66@, 256.0, 128.0, 255, 255, 255, 255)
Hud.DrawSprite(7, 55@, 67@, 32.0, 32.0, 150, 150, 150, 255)
Hud.DrawSprite(8, 56@, 68@, 32.0, 32.0, 255, 255, 255, 255)
gosub @DUAL_15629
Text.SetCenter(False)
Text.SetRightJustify(True)
Text.SetColor(255, 255, 255, 255)
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @DUAL_3795
Text.SetScale(82@, 94@)
goto @DUAL_3803

:DUAL_3795
Text.SetScale(81@, 93@)

:DUAL_3803
Text.Display(57@, 69@, 'SPAC_04')
gosub @DUAL_15629
Text.SetCenter(False)
Text.SetJustify(True)
Text.SetColor(0, 0, 0, 255)
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @DUAL_3879
Text.SetScale(82@, 94@)
goto @DUAL_3887

:DUAL_3879
Text.SetScale(81@, 93@)

:DUAL_3887
Text.Display(58@, 69@, 'SPAC_05')
gosub @DUAL_15629
Text.SetCenter(False)
Text.SetRightJustify(True)
Text.SetColor(255, 255, 255, 255)
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @DUAL_3966
Text.SetScale(82@, 94@)
goto @DUAL_3974

:DUAL_3966
Text.SetScale(81@, 93@)

:DUAL_3974
Text.Display(57@, 71@, 'SPAC_06')
gosub @DUAL_15629
Text.SetCenter(False)
Text.SetJustify(True)
Text.SetColor(0, 0, 0, 255)
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @DUAL_4050
Text.SetScale(82@, 94@)
goto @DUAL_4058

:DUAL_4050
Text.SetScale(81@, 93@)

:DUAL_4058
Text.Display(58@, 71@, 'SPAC_06')
if 
  100@ == 0
goto_if_false @DUAL_4125
Hud.DrawSprite(8, 60@, 72@, 16.0, 16.0, 255, 255, 255, 255)

:DUAL_4125
if 
  100@ == 1
goto_if_false @DUAL_4175
Hud.DrawSprite(7, 61@, 72@, 16.0, 16.0, 255, 255, 255, 255)

:DUAL_4175
if 
  100@ == 2
goto_if_false @DUAL_4225
Hud.DrawSprite(8, 60@, 73@, 16.0, 16.0, 255, 255, 255, 255)

:DUAL_4225
if 
  100@ == 3
goto_if_false @DUAL_4275
Hud.DrawSprite(7, 61@, 73@, 16.0, 16.0, 255, 255, 255, 255)

:DUAL_4275
Hud.DrawSprite(3, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(3, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(3, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(3, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DUAL_4755
if 
  101@ == 0
goto_if_false @DUAL_4748
101@ += 1
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1045)
if 
  100@ == 0
goto_if_false @DUAL_4506
goto @DUAL_4839

:DUAL_4506
if 
  100@ == 1
goto_if_false @DUAL_4552
Txd.Remove
Player.SetControl($player1, True)
Camera.DoFade(0, Fade.Out)
wait 0
Camera.DoFade(500, Fade.In)
return 

:DUAL_4552
if 
  100@ == 2
goto_if_false @DUAL_4650
50@ = Math.RandomFloatInRange(-15.0, 15.0)
set_lvar_float_to_lvar_float 205@ = 50@
50@ = Math.RandomFloatInRange(-15.0, 15.0)
set_lvar_float_to_lvar_float 206@ = 50@
199@ = 0.0
200@ = 0.0
181@ = 1
goto @DUAL_11877

:DUAL_4650
if 
  100@ == 3
goto_if_false @DUAL_4748
50@ = Math.RandomFloatInRange(-15.0, 15.0)
set_lvar_float_to_lvar_float 205@ = 50@
50@ = Math.RandomFloatInRange(-15.0, 15.0)
set_lvar_float_to_lvar_float 206@ = 50@
199@ = 0.0
200@ = 0.0
181@ = 0
goto @DUAL_11877

:DUAL_4748
goto @DUAL_4762

:DUAL_4755
101@ = 0

:DUAL_4762
Hud.DrawWindow(62@, 74@, 86@, 98@, 'DUMMY', 0)
gosub @DUAL_15629
Text.SetCenter(False)
Text.SetWrapX(86@)
Text.SetFont(Font.Subtitles)
Text.SetScale(87@, 99@)
Text.Display(63@, 75@, 'SPAC_10')
goto @DUAL_2903

:DUAL_4839
189@ = 0.0
193@ = 0.0
190@ = 0.0
194@ = 0.0
199@ = 0.0
200@ = 0.0
$5565 = 0.0
$ship_velocity_x = 0.0
201@ = 0.0
202@ = 0.0
203@ = 0.1
204@ = 100.0
205@ = 0.0
206@ = 0.0
207@ = 0
208@ = -512.0
209@ = -256.0
210@ = 0.0
211@ = 256.0
212@ = 512.0
213@ = -384.0
214@ = -128.0
215@ = 128.0
216@ = 384.0
217@ = 200.0
227@ = 200.0
237@ = -2E11
218@ = -300.0
228@ = -300.0
238@ = -2E11
219@ = -300.0
229@ = 300.0
239@ = -2E11
220@ = 300.0
230@ = -300.0
240@ = -2E11
221@ = 0.1
231@ = 300.0
241@ = -2E11
222@ = 0.1
232@ = -300.0
242@ = 2E11
223@ = 300.0
233@ = 0.1
243@ = 2E11
224@ = -300.0
234@ = 0.1
244@ = 2E11
225@ = 0.1
235@ = 500.0
245@ = 2E11
226@ = 0.1
236@ = -500.0
246@ = 2E11
247@ = 10
248@ = 32.0
249@ = 6.67259
249@ *= 0.1
249@ *= 0.1
249@ *= 0.1
249@ *= 0.1
249@ *= 0.1
249@ *= 0.1
40@ = 0

:DUAL_5470
if 
  20 > 40@
goto_if_false @DUAL_5530
250@(40@,20f) = 1000.0
270@(40@,20f) = 1000.0
40@ += 1
goto @DUAL_5470

:DUAL_5530
40@ = 0

:DUAL_5537
if 
  10 > 40@
goto_if_false @DUAL_5580
290@(40@,10i) = 0
40@ += 1
goto @DUAL_5537

:DUAL_5580
300@ = 0
Player.SetControl($player1, False)
301@ = 100.0
302@ = 100.0
303@ = 256.0
304@ = 0
$game_timer = Clock.GetGameTimer()
set_lvar_int_to_var_int 305@ = $game_timer
305@ += 4000
set_lvar_int_to_var_int 306@ = $game_timer
307@ = 0

:DUAL_5667
set_lvar_int_to_var_int 308@ = $game_timer
wait 0
$game_timer = Clock.GetGameTimer()
set_lvar_int_to_var_int 309@ = $game_timer
sub_int_lvar_from_int_lvar 309@ -= 308@
cset_lvar_float_to_lvar_int 310@ =# 309@
310@ /= 1.5
310@ /= 1000.0
201@ = 0.0
202@ = 0.0
add_timed_val_to_float_lvar 301@ +=@ 0.06
if 
  301@ > 100.0
goto_if_false @DUAL_5789
301@ = 100.0

:DUAL_5789
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DUAL_5845
if 
  307@ == 1
goto_if_false @DUAL_5838
307@ = 0
304@ = 1

:DUAL_5838
goto @DUAL_5852

:DUAL_5845
307@ = 1

:DUAL_5852
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @DUAL_5886
add_timed_val_to_float_lvar 203@ +=@ 5.0
goto @DUAL_5962

:DUAL_5886
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @DUAL_5920
add_timed_val_to_float_lvar 203@ +=@ -5.0
goto @DUAL_5962

:DUAL_5920
311@, 312@, 39@, 39@ = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
cset_lvar_float_to_lvar_int 50@ =# 311@
50@ /= 15.0
add_float_lvar_to_float_lvar 203@ += 50@

:DUAL_5962
if 
  0.1 > 203@
goto_if_false @DUAL_6000
203@ += 360.0
goto @DUAL_5962

:DUAL_6000
if 
  203@ > 360.0
goto_if_false @DUAL_6038
203@ -= 360.0
goto @DUAL_6000

:DUAL_6038
40@ = 0

:DUAL_6045
if 
  is_int_lvar_greater_than_int_lvar 247@ > 40@
goto_if_false @DUAL_7372
$distance = Math.GetDistanceBetweenCoords2D(199@, 200@, 217@(40@,10f), 227@(40@,10f))
313@ = 0
if 
  $distance > 700.0
goto_if_false @DUAL_6124
313@ = 1

:DUAL_6124
if 
  100.0 > $distance
goto_if_false @DUAL_6471
if 
  Math.Do2DRectanglesCollide(199@, 200@, 32.0, 32.0, 217@(40@,10f), 227@(40@,10f), 32.0, 32.0)
goto_if_false @DUAL_6471
if 
  237@(40@,10f) > 0.0
goto_if_false @DUAL_6410
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1050)
sub_timed_val_from_float_lvar 302@ -=@ 1.0
if 
  0.0 > 302@
goto_if_false @DUAL_6403
302@ = 0.0
41@ = 0

:DUAL_6291
if 
  10 > 41@
goto_if_false @DUAL_6387
if 
  290@(41@,10i) == 0
goto_if_false @DUAL_6373
set_lvar_float_to_lvar_float 324@(41@,10f) = 199@
set_lvar_float_to_lvar_float 334@(41@,10f) = 200@
290@(41@,10i) += 1
41@ = 9

:DUAL_6373
41@ += 1
goto @DUAL_6291

:DUAL_6387
set_lvar_int_to_var_int 306@ = $game_timer
306@ += 3000

:DUAL_6403
goto @DUAL_6471

:DUAL_6410
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1051)
add_timed_val_to_float_lvar 302@ +=@ 1.0
if 
  302@ > 100.0
goto_if_false @DUAL_6471
302@ = 100.0

:DUAL_6471
41@ = 0

:DUAL_6478
if 
  10 > 41@
goto_if_false @DUAL_6673
if 
  is_int_lvar_greater_than_int_var 314@(41@,10i) > $game_timer
goto_if_false @DUAL_6659
if 
  Math.Do2DRectanglesCollide(439@(41@,10f), 449@(41@,10f), 12.0, 12.0, 217@(40@,10f), 227@(40@,10f), 32.0, 32.0)
goto_if_false @DUAL_6659
313@ = 2
if 
  is_int_var_greater_than_int_lvar $game_timer > 306@
goto_if_false @DUAL_6652
if 
  237@(40@,10f) > 0.0
goto_if_false @DUAL_6645
300@ += 10
goto @DUAL_6652

:DUAL_6645
300@ -= 10

:DUAL_6652
41@ = 9

:DUAL_6659
41@ += 1
goto @DUAL_6478

:DUAL_6673
if 
  313@ > 0
goto_if_false @DUAL_7068
if 
  313@ == 2
goto_if_false @DUAL_6820
41@ = 0

:DUAL_6716
if 
  10 > 41@
goto_if_false @DUAL_6820
if 
  290@(41@,10i) == 0
goto_if_false @DUAL_6806
set_lvar_float_to_lvar_float 324@(41@,10f) = 217@(40@,10f)
set_lvar_float_to_lvar_float 334@(41@,10f) = 227@(40@,10f)
290@(41@,10i) += 1
41@ = 9

:DUAL_6806
41@ += 1
goto @DUAL_6716

:DUAL_6820
39@ = Math.RandomIntInRange(0, 2)
if 
  39@ == 0
goto_if_false @DUAL_6921
$x = Math.RandomFloatInRange(340.0, 700.0)
39@ = Math.RandomIntInRange(0, 2)
if 
  39@ == 0
goto_if_false @DUAL_6899
$x *= -1.0

:DUAL_6899
$y = Math.RandomFloatInRange(-700.0, 700.0)
goto @DUAL_6988

:DUAL_6921
$x = Math.RandomFloatInRange(-700.0, 700.0)
$y = Math.RandomFloatInRange(340.0, 700.0)
39@ = Math.RandomIntInRange(0, 2)
if 
  39@ == 0
goto_if_false @DUAL_6988
$y *= -1.0

:DUAL_6988
set_lvar_float_to_lvar_float 217@(40@,10f) = 199@
add_float_var_to_float_lvar 217@(40@,10f) += $x
set_lvar_float_to_lvar_float 227@(40@,10f) = 200@
add_float_var_to_float_lvar 227@(40@,10f) += $y
$distance = Math.GetDistanceBetweenCoords2D(199@, 200@, 217@(40@,10f), 227@(40@,10f))
goto @DUAL_7358

:DUAL_7068
set_lvar_float_to_lvar_float 50@ = 237@(40@,10f)
mult_float_lvar_by_float_lvar 50@ *= 204@
mult_float_lvar_by_float_lvar 50@ *= 249@
set_var_float_to_var_float $z = $distance
mult_float_var_by_float_var $z *= $distance
div_float_lvar_by_float_var 50@ /= $z
set_lvar_float_to_lvar_float 344@ = 217@(40@,10f)
sub_float_lvar_from_float_lvar 344@ -= 199@
set_lvar_float_to_lvar_float 345@ = 227@(40@,10f)
sub_float_lvar_from_float_lvar 345@ -= 200@
div_float_lvar_by_float_var 344@ /= $distance
div_float_lvar_by_float_var 345@ /= $distance
set_lvar_float_to_lvar_float 43@ = 344@
mult_float_lvar_by_float_lvar 43@ *= 50@
set_lvar_float_to_lvar_float 44@ = 345@
mult_float_lvar_by_float_lvar 44@ *= 50@
248@ = 32.0
if 
  43@ > 50000.0
goto_if_false @DUAL_7249
43@ = 50000.0

:DUAL_7249
if 
  -50000.0 > 43@
goto_if_false @DUAL_7280
43@ = -50000.0

:DUAL_7280
if 
  44@ > 50000.0
goto_if_false @DUAL_7311
44@ = 50000.0

:DUAL_7311
if 
  -50000.0 > 44@
goto_if_false @DUAL_7342
44@ = -50000.0

:DUAL_7342
add_float_lvar_to_float_lvar 201@ += 43@
add_float_lvar_to_float_lvar 202@ += 44@

:DUAL_7358
40@ += 1
goto @DUAL_6045

:DUAL_7372
if 
  is_int_var_greater_than_int_lvar $game_timer > 306@
goto_if_false @DUAL_8157
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DUAL_7562
if or
  301@ > 0.2
  301@ == 0.2
goto_if_false @DUAL_7555
$x = Math.Sin(203@)
$y = Math.Cos(203@)
$x *= -20000.0
$y *= 20000.0
add_float_var_to_float_lvar 201@ += $x
add_float_var_to_float_lvar 202@ += $y
207@ += 50
if 
  207@ > 200
goto_if_false @DUAL_7525
207@ = 200

:DUAL_7525
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1042)
sub_timed_val_from_float_lvar 301@ -=@ 0.2

:DUAL_7555
goto @DUAL_7594

:DUAL_7562
207@ -= 20
if 
  0 > 207@
goto_if_false @DUAL_7594
207@ = 0

:DUAL_7594
if or
  301@ > 0.1
  301@ == 0.1
goto_if_false @DUAL_7753
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.RightShoulder1)
goto_if_false @DUAL_7753
set_lvar_float_to_lvar_float 50@ = 203@
50@ += 90.0
if 
  50@ > 360.0
goto_if_false @DUAL_7691
50@ -= 360.0

:DUAL_7691
$x = Math.Sin(50@)
$y = Math.Cos(50@)
$x *= -6000.0
$y *= 6000.0
add_float_var_to_float_lvar 201@ += $x
add_float_var_to_float_lvar 202@ += $y
sub_timed_val_from_float_lvar 301@ -=@ 0.1

:DUAL_7753
if or
  301@ > 0.1
  301@ == 0.1
goto_if_false @DUAL_7912
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
goto_if_false @DUAL_7912
set_lvar_float_to_lvar_float 50@ = 203@
50@ -= 90.0
if 
  0.0 > 50@
goto_if_false @DUAL_7850
50@ += 360.0

:DUAL_7850
$x = Math.Sin(50@)
$y = Math.Cos(50@)
$x *= -6000.0
$y *= 6000.0
add_float_var_to_float_lvar 201@ += $x
add_float_var_to_float_lvar 202@ += $y
sub_timed_val_from_float_lvar 301@ -=@ 0.1

:DUAL_7912
set_lvar_float_to_var_float 346@ = $5565
346@ *= 40.0
set_lvar_float_to_var_float 347@ = $ship_velocity_x
347@ *= 40.0
sub_float_lvar_from_float_lvar 201@ -= 346@
sub_float_lvar_from_float_lvar 202@ -= 347@
div_float_lvar_by_float_lvar 201@ /= 204@
div_float_lvar_by_float_lvar 202@ /= 204@
mult_float_lvar_by_float_lvar 201@ *= 310@
mult_float_lvar_by_float_lvar 202@ *= 310@
add_float_lvar_to_float_var $5565 += 201@
add_float_lvar_to_float_var $ship_velocity_x += 202@
if or
  301@ > 1.0
  301@ == 1.0
goto_if_false @DUAL_8157
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @DUAL_8157
if 
  is_int_var_greater_than_int_lvar $game_timer > 348@
goto_if_false @DUAL_8157
gosub @DUAL_15423
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1041)
set_lvar_int_to_var_int 348@ = $game_timer
348@ += 250
sub_timed_val_from_float_lvar 301@ -=@ 1.0
if 
  300@ > 0
goto_if_false @DUAL_8157
300@ -= 1

:DUAL_8157
set_lvar_float_to_lvar_float 205@ = 199@
set_lvar_float_to_lvar_float 206@ = 200@
if 
  $5565 > 300.0
goto_if_false @DUAL_8204
$5565 = 300.0

:DUAL_8204
if 
  -300.0 > $5565
goto_if_false @DUAL_8235
$5565 = -300.0

:DUAL_8235
if 
  $ship_velocity_x > 300.0
goto_if_false @DUAL_8266
$ship_velocity_x = 300.0

:DUAL_8266
if 
  -300.0 > $ship_velocity_x
goto_if_false @DUAL_8297
$ship_velocity_x = -300.0

:DUAL_8297
set_var_float_to_lvar_float $x = 310@
mult_float_var_by_float_var $x *= $5565
set_var_float_to_lvar_float $y = 310@
mult_float_var_by_float_var $y *= $ship_velocity_x
add_float_var_to_float_lvar 199@ += $x
add_float_var_to_float_lvar 200@ += $y
40@ = 0

:DUAL_8352
if 
  3 > 40@
goto_if_false @DUAL_9202
set_var_float_to_lvar_float $x = 205@
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 206@
sub_float_lvar_from_float_var $y -= 200@
$x *= 0.6
$y *= 0.6
cset_lvar_float_to_lvar_int 50@ =# 40@
50@ += 1.0
50@ *= 0.3
mult_float_var_by_float_lvar $x *= 50@
mult_float_var_by_float_lvar $y *= 50@
303@ = 512.0
mult_float_lvar_by_float_lvar 303@ *= 50@
if 
  40@ == 0
goto_if_false @DUAL_8553
$x /= 2.0
$y /= 2.0
add_float_var_to_float_lvar 189@(40@,4f) += $x
add_float_var_to_float_lvar 193@(40@,4f) += $y
goto @DUAL_8577

:DUAL_8553
add_float_var_to_float_lvar 189@(40@,4f) += $x
add_float_var_to_float_lvar 193@(40@,4f) += $y

:DUAL_8577
set_lvar_float_to_lvar_float 50@ = 303@
50@ /= 2.0
if 
  is_float_lvar_greater_than_float_lvar 189@(40@,4f) > 50@
goto_if_false @DUAL_8630
sub_float_lvar_from_float_lvar 189@(40@,4f) -= 303@

:DUAL_8630
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 50@ > 189@(40@,4f)
goto_if_false @DUAL_8683
add_float_lvar_to_float_lvar 189@(40@,4f) += 303@

:DUAL_8683
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 193@(40@,4f) > 50@
goto_if_false @DUAL_8736
sub_float_lvar_from_float_lvar 193@(40@,4f) -= 303@

:DUAL_8736
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 50@ > 193@(40@,4f)
goto_if_false @DUAL_8789
add_float_lvar_to_float_lvar 193@(40@,4f) += 303@

:DUAL_8789
50@ = 640.0
add_float_lvar_to_float_lvar 50@ += 303@
set_lvar_float_to_lvar_float 349@ = 50@
div_float_lvar_by_float_lvar 349@ /= 303@
cset_lvar_int_to_lvar_float 350@ =# 349@
cset_lvar_float_to_lvar_int 50@ =# 350@
sub_float_lvar_from_float_lvar 349@ -= 50@
if 
  349@ > 0.0
goto_if_false @DUAL_8875
350@ += 1

:DUAL_8875
50@ = 448.0
add_float_lvar_to_float_lvar 50@ += 303@
set_lvar_float_to_lvar_float 351@ = 50@
div_float_lvar_by_float_lvar 351@ /= 303@
cset_lvar_int_to_lvar_float 352@ =# 351@
cset_lvar_float_to_lvar_int 50@ =# 352@
sub_float_lvar_from_float_lvar 351@ -= 50@
if 
  351@ > 0.0
goto_if_false @DUAL_8961
352@ += 1

:DUAL_8961
350@ += 1
352@ += 1
set_lvar_float_to_lvar_float 197@ = 189@(40@,4f)
set_lvar_float_to_lvar_float 198@ = 193@(40@,4f)
354@ = 0

:DUAL_9006
if 
  is_int_lvar_greater_than_int_lvar 352@ > 354@
goto_if_false @DUAL_9188
353@ = 0

:DUAL_9032
if 
  is_int_lvar_greater_than_int_lvar 350@ > 353@
goto_if_false @DUAL_9154
if 
  40@ == 0
goto_if_false @DUAL_9104
Hud.DrawSprite(1, 197@, 198@, 303@, 303@, 150, 150, 150, 255)
goto @DUAL_9132

:DUAL_9104
Hud.DrawSprite(2, 197@, 198@, 303@, 303@, 150, 150, 150, 255)

:DUAL_9132
add_float_lvar_to_float_lvar 197@ += 303@
353@ += 1
goto @DUAL_9032

:DUAL_9154
set_lvar_float_to_lvar_float 197@ = 189@(40@,4f)
add_float_lvar_to_float_lvar 198@ += 303@
354@ += 1
goto @DUAL_9006

:DUAL_9188
40@ += 1
goto @DUAL_8352

:DUAL_9202
40@ = 0

:DUAL_9209
if 
  is_int_lvar_greater_than_int_lvar 247@ > 40@
goto_if_false @DUAL_9398
set_var_float_to_lvar_float $x = 217@(40@,10f)
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 227@(40@,10f)
sub_float_lvar_from_float_var $y -= 200@
$x += 320.0
$y += 224.0
if 
  237@(40@,10f) > 0.0
goto_if_false @DUAL_9352
Hud.DrawSprite(7, $x, $y, 32.0, 32.0, 150, 150, 150, 255)
goto @DUAL_9384

:DUAL_9352
Hud.DrawSprite(8, $x, $y, 32.0, 32.0, 255, 255, 255, 255)

:DUAL_9384
40@ += 1
goto @DUAL_9209

:DUAL_9398
40@ = 0

:DUAL_9405
if 
  20 > 40@
goto_if_false @DUAL_10100
$distance = Math.GetDistanceBetweenCoords2D(199@, 200@, 250@(40@,20f), 270@(40@,20f))
if or
  $distance > 600.0
  Math.Do2DRectanglesCollide(199@, 200@, 32.0, 32.0, 250@(40@,20f), 270@(40@,20f), 18.0, 18.0)
goto_if_false @DUAL_9937
if 
  Math.Do2DRectanglesCollide(199@, 200@, 32.0, 32.0, 250@(40@,20f), 270@(40@,20f), 18.0, 18.0)
goto_if_false @DUAL_9703
if 
  is_int_var_greater_than_int_lvar $game_timer > 306@
goto_if_false @DUAL_9703
if 
  10 > 40@
goto_if_false @DUAL_9635
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1048)
300@ += 5
goto @DUAL_9662

:DUAL_9635
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1049)
300@ -= 5

:DUAL_9662
301@ += 25.0
if 
  301@ > 100.0
goto_if_false @DUAL_9703
301@ = 100.0

:DUAL_9703
39@ = Math.RandomIntInRange(0, 2)
if 
  39@ == 0
goto_if_false @DUAL_9813
$x = Math.RandomFloatInRange(340.0, 700.0)
39@ = Math.RandomIntInRange(0, 2)
if 
  39@ == 0
goto_if_false @DUAL_9782
$x *= -1.0

:DUAL_9782
$y = Math.RandomFloatInRange(-700.0, 700.0)
39@ = Math.RandomIntInRange(0, 2)
goto @DUAL_9889

:DUAL_9813
$x = Math.RandomFloatInRange(-700.0, 700.0)
39@ = Math.RandomIntInRange(0, 2)
$y = Math.RandomFloatInRange(340.0, 700.0)
39@ = Math.RandomIntInRange(0, 2)
if 
  39@ == 0
goto_if_false @DUAL_9889
$y *= -1.0

:DUAL_9889
set_lvar_float_to_lvar_float 250@(40@,20f) = 199@
add_float_var_to_float_lvar 250@(40@,20f) += $x
set_lvar_float_to_lvar_float 270@(40@,20f) = 200@
add_float_var_to_float_lvar 270@(40@,20f) += $y

:DUAL_9937
set_var_float_to_lvar_float $x = 250@(40@,20f)
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 270@(40@,20f)
sub_float_lvar_from_float_var $y -= 200@
$x += 320.0
$y += 224.0
if 
  10 > 40@
goto_if_false @DUAL_10054
Hud.DrawSprite(8, $x, $y, 16.0, 16.0, 255, 255, 255, 255)
goto @DUAL_10086

:DUAL_10054
Hud.DrawSprite(7, $x, $y, 16.0, 16.0, 150, 150, 150, 255)

:DUAL_10086
40@ += 1
goto @DUAL_9405

:DUAL_10100
40@ = 0

:DUAL_10107
if 
  10 > 40@
goto_if_false @DUAL_10410
if 
  290@(40@,10i) > 0
goto_if_false @DUAL_10396
set_var_float_to_lvar_float $x = 324@(40@,10f)
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 334@(40@,10f)
sub_float_lvar_from_float_var $y -= 200@
$x += 320.0
$y += 224.0
if 
  290@(40@,10i) == 1
goto_if_false @DUAL_10284
set_lvar_int_to_var_int 355@(40@,10i) = $game_timer
355@(40@,10i) += 500
290@(40@,10i) = 9
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1043)

:DUAL_10284
set_lvar_int_to_var_int 355@(40@,10i) = $game_timer
355@(40@,10i) += 500
290@(40@,10i) += 1
if 
  290@(40@,10i) > 12
goto_if_false @DUAL_10359
290@(40@,10i) = 0
goto @DUAL_10396

:DUAL_10359
Hud.DrawSprite(290@(40@,10i), $x, $y, 32.0, 32.0, 150, 150, 150, 255)

:DUAL_10396
40@ += 1
goto @DUAL_10107

:DUAL_10410
40@ = 0

:DUAL_10417
if 
  10 > 40@
goto_if_false @DUAL_10636
if 
  is_int_lvar_greater_than_int_var 314@(40@,10i) > $game_timer
goto_if_false @DUAL_10622
set_var_float_to_lvar_float $x = 310@
mult_float_var_by_float_lvar $x *= 459@(40@,10f)
set_var_float_to_lvar_float $y = 310@
mult_float_var_by_float_lvar $y *= 469@(40@,10f)
add_float_var_to_float_lvar 439@(40@,10f) += $x
add_float_var_to_float_lvar 449@(40@,10f) += $y
set_var_float_to_lvar_float $x = 439@(40@,10f)
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 449@(40@,10f)
sub_float_lvar_from_float_var $y -= 200@
$x += 320.0
$y += 224.0
set_var_float_to_lvar_float $heading = 203@
Hud.DrawSprite(14, $x, $y, 8.0, 8.0, 150, 150, 150, 255)

:DUAL_10622
40@ += 1
goto @DUAL_10417

:DUAL_10636
if 
  is_int_var_greater_than_int_lvar $game_timer > 306@
goto_if_false @DUAL_11067
Hud.DrawSpriteWithRotation(4, 320.0, 224.0, 248@, 248@, 203@, 150, 150, 150, 255)
set_lvar_float_to_lvar_float 50@ = 302@
50@ /= 2.0
$y = 400.0
sub_float_lvar_from_float_var $y -= 50@
Hud.DrawSprite(13, 50.0, 350.0, 14.0, 104.0, 0, 0, 0, 255)
Hud.DrawSprite(15, 50.0, $y, 10.0, 302@, 200, 200, 200, 255)
set_lvar_float_to_lvar_float 50@ = 301@
50@ /= 2.0
$y = 400.0
sub_float_lvar_from_float_var $y -= 50@
Hud.DrawSprite(13, 70.0, 350.0, 14.0, 104.0, 0, 0, 0, 255)
Hud.DrawSprite(16, 70.0, $y, 10.0, 301@, 200, 200, 200, 255)
set_lvar_float_to_lvar_float 50@ = 203@
50@ += 180.0
if 
  50@ > 360.0
goto_if_false @DUAL_10941
50@ -= 360.0

:DUAL_10941
$x = Math.Sin(50@)
$y = Math.Cos(50@)
$x *= -1.0
$x *= 24.0
$y *= 24.0
$x += 320.0
$y += 224.0
if 
  207@ > 0
goto_if_false @DUAL_11060
Hud.DrawSpriteWithRotation(5, $x, $y, 16.0, 16.0, 203@, 207@, 207@, 207@, 255)

:DUAL_11060
goto @DUAL_11260

:DUAL_11067
41@ = 0

:DUAL_11074
if 
  10 > 41@
goto_if_false @DUAL_11170
if 
  290@(41@,10i) == 0
goto_if_false @DUAL_11156
set_lvar_float_to_lvar_float 324@(41@,10f) = 199@
set_lvar_float_to_lvar_float 334@(41@,10f) = 200@
290@(41@,10i) += 1
41@ = 9

:DUAL_11156
41@ += 1
goto @DUAL_11074

:DUAL_11170
gosub @DUAL_15629
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1047)
Text.Display(320.0, 100.0, 'SPAC_01')
set_lvar_int_to_var_int 39@ = $game_timer
39@ += 1000
if 
  is_int_lvar_greater_than_int_lvar 39@ > 306@
goto_if_false @DUAL_11260
304@ = 1

:DUAL_11260
gosub @DUAL_15629
if 
  300@ > -1
goto_if_false @DUAL_11316
Text.DisplayWithNumber(320.0, 50.0, 'SPAC_02', 300@)
goto @DUAL_11382

:DUAL_11316
set_lvar_int_to_lvar_int 39@ = 300@
39@ *= -1
Text.SetColor(0, 0, 0, 255)
Text.SetEdge(1, 150, 150, 150, 255)
Text.DisplayWithNumber(320.0, 50.0, 'SPAC_02', 39@)

:DUAL_11382
Hud.DrawSprite(3, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(3, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(3, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(3, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
if 
  is_int_lvar_greater_than_int_var 305@ > $game_timer
goto_if_false @DUAL_11737
gosub @DUAL_15629
if or
  is_int_var_equal_to_constant $current_Language == 2
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @DUAL_11620
Hud.DrawWindow(62@, 74@, 175.1144, 94.8235, 'DUMMY', 0)
Text.SetWrapX(175.1144)
goto @DUAL_11656

:DUAL_11620
Hud.DrawWindow(62@, 74@, 160.1144, 94.8235, 'DUMMY', 0)
Text.SetWrapX(160.1144)

:DUAL_11656
Text.SetCenter(False)
Text.SetFont(Font.Subtitles)
if or
  is_int_var_equal_to_constant $current_Language == 2
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @DUAL_11708
Text.SetScale(0.4, 1.8889)
goto @DUAL_11720

:DUAL_11708
Text.SetScale(0.5014, 1.8889)

:DUAL_11720
Text.Display(63@, 75@, 'SPAC_11')

:DUAL_11737
if 
  304@ == 1
goto_if_false @DUAL_11870
if 
  is_int_lvar_greater_than_int_var 300@ > $5435[9]
goto_if_false @DUAL_11809
365@ = 10
366@ = 0
181@ = 1
goto @DUAL_11877
goto @DUAL_11870

:DUAL_11809
if 
  is_int_var_greater_than_int_lvar $played_dual_before[9] > 300@
goto_if_false @DUAL_11863
365@ = 10
366@ = 0
181@ = 0
goto @DUAL_11877
goto @DUAL_11870

:DUAL_11863
goto @DUAL_2903

:DUAL_11870
goto @DUAL_5667

:DUAL_11877
wait 0
$game_timer = Clock.GetGameTimer()
if 
  181@ == 0
goto_if_false @DUAL_12165
40@ = 9

:DUAL_11911
if 
  40@ > -1
goto_if_false @DUAL_12158
if 
  is_int_var_greater_than_int_lvar $played_dual_before(40@,10i) > 300@
goto_if_false @DUAL_12137
if 
  40@ <> 9
goto_if_false @DUAL_12049
set_lvar_int_to_lvar_int 41@ = 40@
41@ += 1
set_var_int_to_var_int $played_dual_before(41@,10i) = $played_dual_before(40@,10i)
set_var_text_label $5445(41@,10s) = $5445(40@,10s)
set_var_text_label $5465(41@,10s) = $5465(40@,10s)
set_var_text_label $5485(41@,10s) = $5485(40@,10s)

:DUAL_12049
set_var_int_to_lvar_int $played_dual_before(40@,10i) = 300@
set_var_text_label $5445(40@,10s) = 178@s
set_var_text_label $5465(40@,10s) = 178@s
set_var_text_label $5485(40@,10s) = 178@s
set_lvar_int_to_lvar_int 180@ = 40@
if 
  40@ == 0
goto_if_false @DUAL_12130
300@ = 0

:DUAL_12130
goto @DUAL_12144

:DUAL_12137
300@ = 0

:DUAL_12144
40@ -= 1
goto @DUAL_11911

:DUAL_12158
goto @DUAL_12419

:DUAL_12165
40@ = 9

:DUAL_12172
if 
  40@ > -1
goto_if_false @DUAL_12419
if 
  is_int_lvar_greater_than_int_var 300@ > $5435(40@,10i)
goto_if_false @DUAL_12398
if 
  40@ <> 9
goto_if_false @DUAL_12310
set_lvar_int_to_lvar_int 41@ = 40@
41@ += 1
set_var_int_to_var_int $5435(41@,10i) = $5435(40@,10i)
set_var_text_label $5505(41@,10s) = $5505(40@,10s)
set_var_text_label $5525(41@,10s) = $5525(40@,10s)
set_var_text_label $5545(41@,10s) = $5545(40@,10s)

:DUAL_12310
set_var_int_to_lvar_int $5435(40@,10i) = 300@
set_var_text_label $5505(40@,10s) = 178@s
set_var_text_label $5525(40@,10s) = 178@s
set_var_text_label $5545(40@,10s) = 178@s
set_lvar_int_to_lvar_int 180@ = 40@
if 
  40@ == 0
goto_if_false @DUAL_12391
300@ = 0

:DUAL_12391
goto @DUAL_12405

:DUAL_12398
300@ = 0

:DUAL_12405
40@ -= 1
goto @DUAL_12172

:DUAL_12419
if 
  180@ > -1
goto_if_false @DUAL_13084
if 
  181@ == 0
goto_if_false @DUAL_12600
if 
  366@ == 0
goto_if_false @DUAL_12513
set_var_text_label $5445(180@,10s) = 106@(365@,37s)
set_var_text_label $5465(180@,10s) = 178@s
set_var_text_label $5485(180@,10s) = 178@s

:DUAL_12513
if 
  366@ == 1
goto_if_false @DUAL_12559
set_var_text_label $5465(180@,10s) = 106@(365@,37s)
set_var_text_label $5485(180@,10s) = 178@s

:DUAL_12559
if 
  366@ == 2
goto_if_false @DUAL_12593
set_var_text_label $5485(180@,10s) = 106@(365@,37s)

:DUAL_12593
goto @DUAL_12738

:DUAL_12600
if 
  366@ == 0
goto_if_false @DUAL_12658
set_var_text_label $5505(180@,10s) = 106@(365@,37s)
set_var_text_label $5525(180@,10s) = 178@s
set_var_text_label $5545(180@,10s) = 178@s

:DUAL_12658
if 
  366@ == 1
goto_if_false @DUAL_12704
set_var_text_label $5525(180@,10s) = 106@(365@,37s)
set_var_text_label $5545(180@,10s) = 178@s

:DUAL_12704
if 
  366@ == 2
goto_if_false @DUAL_12738
set_var_text_label $5545(180@,10s) = 106@(365@,37s)

:DUAL_12738
311@, 312@, 39@, 39@ = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  -100 > 312@
goto_if_false @DUAL_12859
if 
  is_int_var_greater_than_int_lvar $game_timer > 104@
goto_if_false @DUAL_12852
if 
  36 > 365@
goto_if_false @DUAL_12829
365@ += 1
goto @DUAL_12836

:DUAL_12829
365@ = 0

:DUAL_12836
set_lvar_int_to_var_int 104@ = $game_timer
104@ += 250

:DUAL_12852
goto @DUAL_12875

:DUAL_12859
set_lvar_int_to_var_int 104@ = $game_timer
104@ -= 250

:DUAL_12875
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  312@ > 100
goto_if_false @DUAL_12980
if 
  is_int_var_greater_than_int_lvar $game_timer > 105@
goto_if_false @DUAL_12973
if 
  365@ > 0
goto_if_false @DUAL_12950
365@ -= 1
goto @DUAL_12957

:DUAL_12950
365@ = 36

:DUAL_12957
set_lvar_int_to_var_int 105@ = $game_timer
105@ += 250

:DUAL_12973
goto @DUAL_12996

:DUAL_12980
set_lvar_int_to_var_int 105@ = $game_timer
105@ -= 250

:DUAL_12996
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DUAL_13077
if 
  101@ == 0
goto_if_false @DUAL_13070
366@ += 1
101@ += 1
if 
  366@ == 3
goto_if_false @DUAL_13070
180@ = -1

:DUAL_13070
goto @DUAL_13084

:DUAL_13077
101@ = 0

:DUAL_13084
if 
  181@ == 0
goto_if_false @DUAL_13223
40@ = 0

:DUAL_13109
if 
  10 > 40@
goto_if_false @DUAL_13216
set_lvar_int_to_var_int 367@(40@,10i) = $played_dual_before(40@,10i)
367@(40@,10i) *= -1
set_lvar_text_label 377@(40@,10s) = $5445(40@,10s)
set_lvar_text_label 397@(40@,10s) = $5465(40@,10s)
set_lvar_text_label 417@(40@,10s) = $5485(40@,10s)
40@ += 1
goto @DUAL_13109

:DUAL_13216
goto @DUAL_13326

:DUAL_13223
40@ = 0

:DUAL_13230
if 
  10 > 40@
goto_if_false @DUAL_13326
set_lvar_int_to_var_int 367@(40@,10i) = $5435(40@,10i)
set_lvar_text_label 377@(40@,10s) = $5505(40@,10s)
set_lvar_text_label 397@(40@,10s) = $5525(40@,10s)
set_lvar_text_label 417@(40@,10s) = $5545(40@,10s)
40@ += 1
goto @DUAL_13230

:DUAL_13326
40@ = 0

:DUAL_13333
if 
  3 > 40@
goto_if_false @DUAL_14183
set_var_float_to_lvar_float $x = 205@
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 206@
sub_float_lvar_from_float_var $y -= 200@
$x *= 0.6
$y *= 0.6
cset_lvar_float_to_lvar_int 50@ =# 40@
50@ += 1.0
50@ *= 0.3
mult_float_var_by_float_lvar $x *= 50@
mult_float_var_by_float_lvar $y *= 50@
303@ = 512.0
mult_float_lvar_by_float_lvar 303@ *= 50@
if 
  40@ == 0
goto_if_false @DUAL_13534
$x /= 2.0
$y /= 2.0
add_float_var_to_float_lvar 189@(40@,4f) += $x
add_float_var_to_float_lvar 193@(40@,4f) += $y
goto @DUAL_13558

:DUAL_13534
add_float_var_to_float_lvar 189@(40@,4f) += $x
add_float_var_to_float_lvar 193@(40@,4f) += $y

:DUAL_13558
set_lvar_float_to_lvar_float 50@ = 303@
50@ /= 2.0
if 
  is_float_lvar_greater_than_float_lvar 189@(40@,4f) > 50@
goto_if_false @DUAL_13611
sub_float_lvar_from_float_lvar 189@(40@,4f) -= 303@

:DUAL_13611
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 50@ > 189@(40@,4f)
goto_if_false @DUAL_13664
add_float_lvar_to_float_lvar 189@(40@,4f) += 303@

:DUAL_13664
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 193@(40@,4f) > 50@
goto_if_false @DUAL_13717
sub_float_lvar_from_float_lvar 193@(40@,4f) -= 303@

:DUAL_13717
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 50@ > 193@(40@,4f)
goto_if_false @DUAL_13770
add_float_lvar_to_float_lvar 193@(40@,4f) += 303@

:DUAL_13770
50@ = 640.0
add_float_lvar_to_float_lvar 50@ += 303@
set_lvar_float_to_lvar_float 349@ = 50@
div_float_lvar_by_float_lvar 349@ /= 303@
cset_lvar_int_to_lvar_float 350@ =# 349@
cset_lvar_float_to_lvar_int 50@ =# 350@
sub_float_lvar_from_float_lvar 349@ -= 50@
if 
  349@ > 0.0
goto_if_false @DUAL_13856
350@ += 1

:DUAL_13856
50@ = 448.0
add_float_lvar_to_float_lvar 50@ += 303@
set_lvar_float_to_lvar_float 351@ = 50@
div_float_lvar_by_float_lvar 351@ /= 303@
cset_lvar_int_to_lvar_float 352@ =# 351@
cset_lvar_float_to_lvar_int 50@ =# 352@
sub_float_lvar_from_float_lvar 351@ -= 50@
if 
  351@ > 0.0
goto_if_false @DUAL_13942
352@ += 1

:DUAL_13942
350@ += 1
352@ += 1
set_lvar_float_to_lvar_float 197@ = 189@(40@,4f)
set_lvar_float_to_lvar_float 198@ = 193@(40@,4f)
354@ = 0

:DUAL_13987
if 
  is_int_lvar_greater_than_int_lvar 352@ > 354@
goto_if_false @DUAL_14169
353@ = 0

:DUAL_14013
if 
  is_int_lvar_greater_than_int_lvar 350@ > 353@
goto_if_false @DUAL_14135
if 
  40@ == 0
goto_if_false @DUAL_14085
Hud.DrawSprite(1, 197@, 198@, 303@, 303@, 150, 150, 150, 255)
goto @DUAL_14113

:DUAL_14085
Hud.DrawSprite(2, 197@, 198@, 303@, 303@, 150, 150, 150, 255)

:DUAL_14113
add_float_lvar_to_float_lvar 197@ += 303@
353@ += 1
goto @DUAL_14013

:DUAL_14135
set_lvar_float_to_lvar_float 197@ = 189@(40@,4f)
add_float_lvar_to_float_lvar 198@ += 303@
354@ += 1
goto @DUAL_13987

:DUAL_14169
40@ += 1
goto @DUAL_13333

:DUAL_14183
gosub @DUAL_15629
if 
  181@ == 0
goto_if_false @DUAL_14235
Text.SetColor(0, 0, 0, 255)
Text.SetEdge(1, 150, 150, 150, 255)

:DUAL_14235
Text.SetFont(Font.Subtitles)
Text.Display(182@, 183@, 'SPAC_06')
set_lvar_float_to_lvar_float 437@ = 184@
set_lvar_float_to_lvar_float 438@ = 185@
40@ = 0

:DUAL_14279
if 
  10 > 40@
goto_if_false @DUAL_15078
set_lvar_float_to_lvar_float 437@ = 184@
gosub @DUAL_15629
Text.SetCenter(False)
Text.SetJustify(True)
Text.SetFont(Font.Subtitles)
if 
  181@ == 0
goto_if_false @DUAL_14369
Text.SetColor(0, 0, 0, 255)
Text.SetEdge(1, 150, 150, 150, 255)

:DUAL_14369
if 
  is_int_lvar_equal_to_int_lvar 180@ == 40@
goto_if_false @DUAL_14400
Text.SetColor(0, 155, 0, 255)

:DUAL_14400
if or
  is_lvar_text_label_equal_to_text_label 377@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 377@(40@,10s) == 142@s
goto_if_false @DUAL_14445
437@ += 8.0

:DUAL_14445
Text.Display(437@, 438@, 377@(40@,10s))
if or
  is_lvar_text_label_equal_to_text_label 377@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 377@(40@,10s) == 142@s
goto_if_false @DUAL_14505
437@ -= 8.0

:DUAL_14505
add_float_lvar_to_float_lvar 437@ += 186@
gosub @DUAL_15629
Text.SetCenter(False)
Text.SetJustify(True)
Text.SetFont(Font.Subtitles)
if 
  181@ == 0
goto_if_false @DUAL_14577
Text.SetColor(0, 0, 0, 255)
Text.SetEdge(1, 150, 150, 150, 255)

:DUAL_14577
if 
  is_int_lvar_equal_to_int_lvar 180@ == 40@
goto_if_false @DUAL_14608
Text.SetColor(0, 155, 0, 255)

:DUAL_14608
if or
  is_lvar_text_label_equal_to_text_label 397@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 397@(40@,10s) == 142@s
goto_if_false @DUAL_14653
437@ += 8.0

:DUAL_14653
Text.Display(437@, 438@, 397@(40@,10s))
if or
  is_lvar_text_label_equal_to_text_label 397@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 397@(40@,10s) == 142@s
goto_if_false @DUAL_14713
437@ -= 8.0

:DUAL_14713
add_float_lvar_to_float_lvar 437@ += 186@
gosub @DUAL_15629
Text.SetCenter(False)
Text.SetJustify(True)
Text.SetFont(Font.Subtitles)
if 
  181@ == 0
goto_if_false @DUAL_14785
Text.SetColor(0, 0, 0, 255)
Text.SetEdge(1, 150, 150, 150, 255)

:DUAL_14785
if 
  is_int_lvar_equal_to_int_lvar 180@ == 40@
goto_if_false @DUAL_14816
Text.SetColor(0, 155, 0, 255)

:DUAL_14816
if or
  is_lvar_text_label_equal_to_text_label 417@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 417@(40@,10s) == 142@s
goto_if_false @DUAL_14861
437@ += 8.0

:DUAL_14861
Text.Display(437@, 438@, 417@(40@,10s))
if or
  is_lvar_text_label_equal_to_text_label 417@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 417@(40@,10s) == 142@s
goto_if_false @DUAL_14921
437@ -= 8.0

:DUAL_14921
set_lvar_float_to_lvar_float 437@ = 184@
add_float_lvar_to_float_lvar 437@ += 187@
gosub @DUAL_15629
Text.SetCenter(False)
Text.SetRightJustify(True)
Text.SetFont(Font.Subtitles)
if 
  181@ == 0
goto_if_false @DUAL_15001
Text.SetColor(0, 0, 0, 255)
Text.SetEdge(1, 150, 150, 150, 255)

:DUAL_15001
if 
  is_int_lvar_equal_to_int_lvar 180@ == 40@
goto_if_false @DUAL_15032
Text.SetColor(0, 155, 0, 255)

:DUAL_15032
Text.DisplayWithNumber(437@, 438@, 'NUMBER', 367@(40@,10i))
add_float_lvar_to_float_lvar 438@ += 188@
40@ += 1
goto @DUAL_14279

:DUAL_15078
Hud.DrawSprite(3, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(3, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(3, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(3, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
if 
  180@ == -1
goto_if_false @DUAL_15346
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @DUAL_15276
goto @DUAL_2903

:DUAL_15276
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DUAL_15332
if 
  101@ == 0
goto_if_false @DUAL_15325
101@ += 1
goto @DUAL_2903

:DUAL_15325
goto @DUAL_15339

:DUAL_15332
101@ = 0

:DUAL_15339
goto @DUAL_15416

:DUAL_15346
Hud.DrawWindow(62@, 74@, 86@, 98@, 'DUMMY', 0)
gosub @DUAL_15629
Text.SetCenter(False)
Text.SetWrapX(86@)
Text.SetFont(Font.Subtitles)
Text.SetScale(87@, 99@)
Text.Display(63@, 75@, 'SPAC_13')

:DUAL_15416
goto @DUAL_11877

:DUAL_15423
40@ = 0

:DUAL_15430
if 
  10 > 40@
goto_if_false @DUAL_15627
if 
  is_int_var_greater_than_int_lvar $game_timer > 314@(40@,10i)
goto_if_false @DUAL_15613
set_lvar_float_to_lvar_float 50@ = 203@
$x = Math.Sin(50@)
$y = Math.Cos(50@)
set_lvar_float_to_lvar_float 439@(40@,10f) = 199@
set_lvar_float_to_lvar_float 449@(40@,10f) = 200@
$x *= -300.0
$y *= 300.0
set_lvar_float_to_var_float 459@(40@,10f) = $x
add_float_var_to_float_lvar 459@(40@,10f) += $5565
set_lvar_float_to_var_float 469@(40@,10f) = $y
add_float_var_to_float_lvar 469@(40@,10f) += $ship_velocity_x
set_lvar_int_to_var_int 314@(40@,10i) = $game_timer
314@(40@,10i) += 1600
return 

:DUAL_15613
40@ += 1
goto @DUAL_15430

:DUAL_15627
return 

:DUAL_15629
Text.SetColor(180, 180, 180, 255)
Text.SetScale(1.0, 3.0)
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(True)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
Text.SetDropshadow(0, 0, 0, 0, 180)
Text.SetFont(Font.Menu)
return 

:DUAL_15701
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1069)
if 
  Player.IsPlaying($player1)
goto_if_false @DUAL_15811
if 
  Char.LocateOnFoot3D($scplayer, $spaceX, $spaceY, $spaceZ, 2.0, 2.0, 2.0, False)
goto_if_false @DUAL_15811
set_var_float_to_var_float $y = $spaceY
$y += 2.0
Char.SetCoordinates($scplayer, $spaceX, $y, $spaceZ)

:DUAL_15811
Game.ShutAllCharsUp(False)
$onmission = 0
Text.ClearThisPrint('BUSY')
Mission.Finish
return 

//-------------Mission 5---------------
// Originally: Video Game: Go Go Space Monkey

:SHTR
gosub @SHTR_67
if 
  has_deatharrest_been_executed 
goto_if_false @SHTR_27
gosub @SHTR_6888

:SHTR_27
Camera.DoFade(500, Fade.In)

:SHTR_34
if 
  Camera.GetFadingStatus
goto_if_false @SHTR_58
wait 0
goto @SHTR_34

:SHTR_58
gosub @SHTR_6908
terminate_this_script 

:SHTR_67
$onmission = 1
if 
  $flag_shtr_passed_1stime == 0
goto_if_false @SHTR_94
Stat.RegisterMissionGiven

:SHTR_94
script_name 'SHTR'
wait 0
Game.ShutAllCharsUp(True)
$x, $y, $z = Char.GetCoordinates($scplayer)
World.ClearArea($x, $y, $z, 50.0, False)
Audio.SetMusicDoesFade(False)
Text.LoadMissionText('SHTR')
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1806)

:SHTR_167
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @SHTR_193
wait 0
goto @SHTR_167

:SHTR_193
Char.FreezePosition($scplayer, True)
Player.SetControl($player1, False)
$x, $y, $z = Char.GetCoordinates($scplayer)
World.ClearArea($x, $y, $z, 25.0, True)
Text.UseCommands(True)
Txd.LoadDictionary('LD_SHTR')
Txd.LoadSprite(1, "SPLSH")
Txd.LoadSprite(2, "BSTARS")
Txd.LoadSprite(3, "FSTAR")
Txd.LoadSprite(4, "HI_A")
Txd.LoadSprite(5, "HI_B")
Txd.LoadSprite(6, "HI_C")
Txd.LoadSprite(7, "UN_A")
Txd.LoadSprite(8, "UN_B")
Txd.LoadSprite(9, "UN_C")
Txd.LoadSprite(10, "SHIP")
Txd.LoadSprite(11, "FIRE")
Txd.LoadSprite(12, "UFO")
Txd.LoadSprite(13, "KAMI")
Txd.LoadSprite(14, "NMEF")
Txd.LoadSprite(15, "EX1")
Txd.LoadSprite(16, "EX2")
Txd.LoadSprite(17, "EX3")
Txd.LoadSprite(18, "EX4")
Txd.LoadSprite(19, "CBARL")
Txd.LoadSprite(20, "CBARM")
Txd.LoadSprite(21, "CBARR")
Txd.LoadSprite(22, "HBARL")
Txd.LoadSprite(23, "HBARM")
Txd.LoadSprite(24, "HBARR")
Txd.LoadSprite(25, "TVCORN")
Txd.LoadSprite(26, "TVL")
Txd.LoadSprite(27, "TVR")
Txd.LoadSprite(28, "PA")
Txd.LoadSprite(29, "PM2")
Txd.LoadSprite(30, "PM3")
Txd.LoadSprite(31, "PS1")
Txd.LoadSprite(32, "PS2")
Txd.LoadSprite(33, "PS3")

:SHTR_582
gosub @SHTR_17567
gosub @SHTR_15915
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
Hud.DrawSprite(25, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(25, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(25, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(25, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
TIMERB = 0

:SHTR_761
wait 0
set_var_float_to_var_float $shtr_layer_x = $shtr_fire_speed
$shtr_background_pos = 2
$shtr_origin = 1.0
gosub @SHTR_7107
$shtr_layer_scroll_speed_top = 1.0
gosub @SHTR_7350
set_var_float_to_var_float $shtr_fire_speed = $shtr_layer_x
Camera.DoFade(0, Fade.In)
$unk_5566, $shtr_lstickx, $shtr_lsticky, $shtr_rstickx = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)

:SHTR_844
if 
  $shtr_hi_score == 1
goto_if_false @SHTR_899
if and
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  $shtr_lstickx == 0
goto_if_false @SHTR_899
$shtr_hi_score = 0

:SHTR_899
if 
  $shtr_time_diff_hit == 1
goto_if_false @SHTR_1135
Hud.DrawSprite(1, 320.0, 164.0, 386.0, 192.0, 150, 150, 150, 255)
Hud.DrawSprite(4, 320.0, 312.0, 64.0, 32.0, 150, 150, 150, 255)
Hud.DrawSprite(8, 320.0, 344.0, 128.0, 32.0, 150, 150, 150, 255)
Hud.DrawSprite(9, 320.0, 376.0, 64.0, 32.0, 150, 150, 150, 255)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SHTR_1135
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1065)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1062)
$shtr_heat_bar = Clock.GetGameTimer()
$shtr_help_end = Clock.GetGameTimer()
$shtr_time_diff_hit = 0

:SHTR_1135
if 
  $shtr_time_diff_hit == 2
goto_if_false @SHTR_1353
Hud.DrawSprite(1, 320.0, 164.0, 386.0, 192.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 320.0, 312.0, 64.0, 32.0, 150, 150, 150, 255)
Hud.DrawSprite(5, 320.0, 344.0, 128.0, 32.0, 150, 150, 150, 255)
Hud.DrawSprite(9, 320.0, 376.0, 64.0, 32.0, 150, 150, 150, 255)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SHTR_1353
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1065)
$shtr_help_end = Clock.GetGameTimer()
$shtr_source_slot = 4
$shtr_time_diff_hit = 4

:SHTR_1353
if 
  $shtr_time_diff_hit == 3
goto_if_false @SHTR_1565
Hud.DrawSprite(1, 320.0, 164.0, 386.0, 192.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 320.0, 312.0, 64.0, 32.0, 150, 150, 150, 255)
Hud.DrawSprite(8, 320.0, 344.0, 128.0, 32.0, 150, 150, 150, 255)
Hud.DrawSprite(6, 320.0, 376.0, 64.0, 32.0, 150, 150, 150, 255)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SHTR_1565
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1066)
Camera.DoFade(0, Fade.Out)
goto @SHTR_27

:SHTR_1565
if 
  $shtr_hi_score == 0
goto_if_false @SHTR_2027
if 
  $shtr_time_diff_hit == 1
goto_if_false @SHTR_1731
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  -64 > $shtr_lstickx
goto_if_false @SHTR_1666
$shtr_time_diff_hit = 3
$shtr_hi_score = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1064)
goto @SHTR_844

:SHTR_1666
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  $shtr_lstickx > 64
goto_if_false @SHTR_1731
$shtr_time_diff_hit = 2
$shtr_hi_score = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1064)
goto @SHTR_844

:SHTR_1731
if 
  $shtr_time_diff_hit == 2
goto_if_false @SHTR_1879
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  -64 > $shtr_lstickx
goto_if_false @SHTR_1814
$shtr_time_diff_hit = 1
$shtr_hi_score = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1064)
goto @SHTR_844

:SHTR_1814
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  $shtr_lstickx > 64
goto_if_false @SHTR_1879
$shtr_time_diff_hit = 3
$shtr_hi_score = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1064)
goto @SHTR_844

:SHTR_1879
if 
  $shtr_time_diff_hit == 3
goto_if_false @SHTR_2027
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  -64 > $shtr_lstickx
goto_if_false @SHTR_1962
$shtr_time_diff_hit = 2
$shtr_hi_score = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1064)
goto @SHTR_844

:SHTR_1962
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  $shtr_lstickx > 64
goto_if_false @SHTR_2027
$shtr_time_diff_hit = 1
$shtr_hi_score = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1064)
goto @SHTR_844

:SHTR_2027
if 
  $shtr_time_diff_hit == 0
goto_if_false @SHTR_5956
$unk_5566, $shtr_lstickx, $shtr_lsticky, $shtr_rstickx = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if 
  $shtr_button1 == 0
goto_if_false @SHTR_2150
$shtr_sprite = Clock.GetGameTimer()
if 
  $shtr_front_end > 0
goto_if_false @SHTR_2150
$shtr_front_end -= 1
$shtr_button_pressed = 2.0
$shtr_range_start = 4.0
$shtr_player_alive = 5
$shtr_button1 = 2
$unk_5957 = 0

:SHTR_2150
if 
  $shtr_button1 == 1
goto_if_false @SHTR_2200
Hud.DrawSprite(10, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 255)

:SHTR_2200
if or
  $shtr_button1 == 1
  $shtr_button1 == 3
goto_if_false @SHTR_2287
set_var_int_to_var_int $shtr_rsticky = $unk_5566
$shtr_rsticky /= 10
cset_var_float_to_var_int $shtr_temp =# $shtr_rsticky
add_float_var_to_float_var $shtr_tempF += $shtr_temp
set_var_int_to_var_int $shtr_rsticky = $shtr_lstickx
$shtr_rsticky /= 10
cset_var_float_to_var_int $shtr_temp =# $shtr_rsticky
add_float_var_to_float_var $shtr_plyr_x += $shtr_temp

:SHTR_2287
if or
  $shtr_button1 == 1
  $shtr_button1 == 3
goto_if_false @SHTR_2420
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
goto_if_false @SHTR_2339
$shtr_plyr_x -= 12.0

:SHTR_2339
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
goto_if_false @SHTR_2366
$shtr_plyr_x += 12.0

:SHTR_2366
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @SHTR_2393
$shtr_tempF -= 12.0

:SHTR_2393
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @SHTR_2420
$shtr_tempF += 12.0

:SHTR_2420
if 
  80.0 > $shtr_tempF
goto_if_false @SHTR_2451
$shtr_tempF = 80.0

:SHTR_2451
if 
  $shtr_tempF > 560.0
goto_if_false @SHTR_2482
$shtr_tempF = 560.0

:SHTR_2482
if 
  80.0 > $shtr_plyr_x
goto_if_false @SHTR_2513
$shtr_plyr_x = 80.0

:SHTR_2513
if 
  $shtr_plyr_x > 368.0
goto_if_false @SHTR_2544
$shtr_plyr_x = 368.0

:SHTR_2544
if 
  $shtr_plyr_col_y == 1
goto_if_false @SHTR_2683
$shtr_reload_start = Clock.GetGameTimer()
set_var_int_to_var_int $shtr_reload_end = $shtr_reload_start
sub_int_var_from_int_var $shtr_reload_end -= $shtr_heat_bar
if 
  $shtr_speed_pickup == 0
goto_if_false @SHTR_2651
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SHTR_2644
if 
  is_int_var_greater_than_int_var $shtr_reload_end > $shtr_pickup_y
goto_if_false @SHTR_2644
$shtr_plyr_col_y = 0

:SHTR_2644
goto @SHTR_2683

:SHTR_2651
if or
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  is_int_var_greater_than_int_var $shtr_reload_end > $shtr_pickup_y
goto_if_false @SHTR_2683
$shtr_plyr_col_y = 0

:SHTR_2683
if 
  7 > $shtr_player_alive
goto_if_false @SHTR_2708
$shtr_player_alive = 7

:SHTR_2708
$shtr_player_alive -= 7
if or
  $shtr_button1 == 1
  $shtr_button1 == 3
goto_if_false @SHTR_3210
if 
  1000 > $shtr_player_alive
goto_if_false @SHTR_3210
if 
  $shtr_plyr_col_y == 0
goto_if_false @SHTR_3210
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SHTR_3210
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1059)
$shtr_sin_shot_angle = Math.Cos($shtr_projectile_size)
set_var_float_to_var_float $shtr_cos_shot_angle = $shtr_layer_scroll_speed_bottom
mult_float_var_by_float_var $shtr_cos_shot_angle *= $shtr_sin_shot_angle
$shtr_shot_angle = Math.Sin($shtr_projectile_size)
set_var_float_to_var_float $shtr_x_add = $shtr_layer_scroll_speed_bottom
mult_float_var_by_float_var $shtr_x_add *= $shtr_shot_angle
if 
  $shtr_current_projectile_fired($shtr_current_projectile,16i) == 0
goto_if_false @SHTR_2949
set_var_float_to_var_float $5706($shtr_current_projectile,16f) = $shtr_tempF
set_var_float_to_var_float $5690($shtr_current_projectile,16f) = $shtr_plyr_x
set_var_float_to_var_float $5674($shtr_current_projectile,16f) = $5706($shtr_current_projectile,16f)
$5674($shtr_current_projectile,16f) += 16.0
$shtr_current_projectile_fired($shtr_current_projectile,16i) = 1

:SHTR_2949
if or
  $shtr_auto_pickup == 1
  $shtr_auto_pickup == 2
goto_if_false @SHTR_3061
if 
  $shtr_projectile_col_y($shtr_current_projectile,16i) == 0
goto_if_false @SHTR_3061
set_var_float_to_var_float $5772($shtr_current_projectile,16f) = $shtr_tempF
set_var_float_to_var_float $5756($shtr_current_projectile,16f) = $shtr_plyr_x
set_var_float_to_var_float $5740($shtr_current_projectile,16f) = $5772($shtr_current_projectile,16f)
$5740($shtr_current_projectile,16f) += 16.0
$shtr_projectile_col_y($shtr_current_projectile,16i) = 1

:SHTR_3061
if 
  $shtr_auto_pickup == 2
goto_if_false @SHTR_3166
if 
  $5788($shtr_current_projectile,16i) == 0
goto_if_false @SHTR_3166
set_var_float_to_var_float $5836($shtr_current_projectile,16f) = $shtr_tempF
set_var_float_to_var_float $5820($shtr_current_projectile,16f) = $shtr_plyr_x
set_var_float_to_var_float $5804($shtr_current_projectile,16f) = $5836($shtr_current_projectile,16f)
$5804($shtr_current_projectile,16f) += 16.0
$5788($shtr_current_projectile,16i) = 1

:SHTR_3166
$shtr_heat_bar = Clock.GetGameTimer()
$shtr_current_projectile += 1
$shtr_plyr_col_y = 1
if 
  $shtr_current_projectile == 16
goto_if_false @SHTR_3210
$shtr_current_projectile = 0

:SHTR_3210
gosub @SHTR_9332
gosub @SHTR_10260
if 
  $shtr_pickup_counter == 0
goto_if_false @SHTR_4076
Hud.DrawSprite($shtr_pickup_collected, $shtr_pickup_move_switch, $shtr_pickup_x, 32.0, 32.0, 150, 150, 150, 255)
if 
  $shtr_pickup_current == 0
goto_if_false @SHTR_3360
if and
  368.0 > $shtr_pickup_x
  $shtr_pickup_move_switch > 80.0
goto_if_false @SHTR_3351
$shtr_pickup_move_switch += -1.0
$shtr_pickup_x += 1.0
goto @SHTR_3360

:SHTR_3351
$shtr_pickup_current = Math.RandomIntInRange(0, 4)

:SHTR_3360
if 
  $shtr_pickup_current == 1
goto_if_false @SHTR_3445
if and
  $shtr_pickup_move_switch > 80.0
  $shtr_pickup_x > 80.0
goto_if_false @SHTR_3436
$shtr_pickup_move_switch += -1.0
$shtr_pickup_x += -1.0
goto @SHTR_3445

:SHTR_3436
$shtr_pickup_current = Math.RandomIntInRange(0, 4)

:SHTR_3445
if 
  $shtr_pickup_current == 2
goto_if_false @SHTR_3530
if and
  $shtr_pickup_x > 80.0
  560.0 > $shtr_pickup_move_switch
goto_if_false @SHTR_3521
$shtr_pickup_move_switch += 1.0
$shtr_pickup_x += -1.0
goto @SHTR_3530

:SHTR_3521
$shtr_pickup_current = Math.RandomIntInRange(0, 4)

:SHTR_3530
if 
  $shtr_pickup_current == 3
goto_if_false @SHTR_3615
if and
  560.0 > $shtr_pickup_move_switch
  368.0 > $shtr_pickup_x
goto_if_false @SHTR_3606
$shtr_pickup_move_switch += 1.0
$shtr_pickup_x += 1.0
goto @SHTR_3615

:SHTR_3606
$shtr_pickup_current = Math.RandomIntInRange(0, 4)

:SHTR_3615
if 
  Math.Do2DRectanglesCollide($shtr_tempF, $shtr_plyr_x, 32.0, 32.0, $shtr_pickup_move_switch, $shtr_pickup_x, 32.0, 32.0)
goto_if_false @SHTR_4076
if 
  6.5 > $shtr_range_start
goto_if_false @SHTR_3701
$shtr_button_pressed += 0.5
$shtr_range_start += 0.5

:SHTR_3701
$shtr_pickup_move_switch = 0.0
$shtr_pickup_x = 0.0
$shtr_pickup_current = 0
if 
  $shtr_pickup_collected == 28
goto_if_false @SHTR_3780
$shtr_speed_pickup = 1
$shtr_pickup_counter = 2
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1065)

:SHTR_3780
if 
  $shtr_pickup_collected == 33
goto_if_false @SHTR_3839
$shtr_pickup_y = 50
$shtr_pickup_collected = 28
$shtr_pickup_counter = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1065)

:SHTR_3839
if 
  $shtr_pickup_collected == 30
goto_if_false @SHTR_3898
$shtr_auto_pickup = 2
$shtr_pickup_collected = 33
$shtr_pickup_counter = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1065)

:SHTR_3898
if 
  $shtr_pickup_collected == 32
goto_if_false @SHTR_3957
$shtr_pickup_y = 100
$shtr_pickup_collected = 30
$shtr_pickup_counter = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1065)

:SHTR_3957
if 
  $shtr_pickup_collected == 29
goto_if_false @SHTR_4016
$shtr_auto_pickup = 1
$shtr_pickup_collected = 32
$shtr_pickup_counter = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1065)

:SHTR_4016
if 
  $shtr_pickup_collected == 31
goto_if_false @SHTR_4076
$shtr_pickup_y = 150
$shtr_pickup_collected = 29
$shtr_pickup_counter = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1065)

:SHTR_4076
if 
  $shtr_range_end == 0
goto_if_false @SHTR_4190
if 
  TIMERB > 500
goto_if_false @SHTR_4190
if 
  $shtr_current_enemy[0] == 0
goto_if_false @SHTR_4190
$shtr_y_add = 0
if 
  60.0 > $shtr_gen_hi_y
goto_if_false @SHTR_4169
$shtr_gen_hi_y += 5.0

:SHTR_4169
gosub @SHTR_8148
TIMERB = 0
$shtr_range_end += 1

:SHTR_4190
if and
  $shtr_range_end > 0
  8 > $shtr_range_end
goto_if_false @SHTR_4230
set_var_int_to_var_int $shtr_y_add = $shtr_range_end
gosub @SHTR_7593

:SHTR_4230
if 
  $shtr_range_end == 8
goto_if_false @SHTR_4347
if and
  $shtr_current_enemy[0] == 0
  $shtr_current_enemy[1] == 0
  $shtr_current_enemy[2] == 0
  $shtr_current_enemy[3] == 0
goto_if_false @SHTR_4347
if and
  $shtr_current_enemy[4] == 0
  $shtr_current_enemy[5] == 0
  $shtr_current_enemy[6] == 0
  $shtr_current_enemy[7] == 0
goto_if_false @SHTR_4347
$shtr_amplitude = 0
$5875 = 0
$shtr_range_end = 0

:SHTR_4347
gosub @SHTR_8910
gosub @SHTR_7685
gosub @SHTR_9757
if 
  $shtr_button1 == 2
goto_if_false @SHTR_5128
if 
  $unk_5957 == 2
goto_if_false @SHTR_4773
$shtr_start_time = Clock.GetGameTimer()
set_var_int_to_var_int $shtr_end_time = $shtr_start_time
sub_int_var_from_int_var $shtr_end_time -= $shtr_sprite
if and
  $shtr_end_time >= 0
  100 > $shtr_end_time
goto_if_false @SHTR_4482
Hud.DrawSprite(15, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 255)

:SHTR_4482
if and
  $shtr_end_time >= 100
  200 > $shtr_end_time
goto_if_false @SHTR_4540
Hud.DrawSprite(16, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 255)

:SHTR_4540
if and
  $shtr_end_time >= 200
  300 > $shtr_end_time
goto_if_false @SHTR_4599
Hud.DrawSprite(17, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 255)

:SHTR_4599
if and
  $shtr_end_time >= 300
  400 > $shtr_end_time
goto_if_false @SHTR_4658
Hud.DrawSprite(18, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 255)

:SHTR_4658
if 
  $shtr_end_time > 499
goto_if_false @SHTR_4766
$shtr_tempF = 80.0
$shtr_plyr_x = 224.0
$shtr_button1 = 3
$unk_5957 = 0
$shtr_amplitude = 0
$shtr_pickup_counter = 1
$shtr_pickup_collected = 31
$shtr_pickup_y = 250
$shtr_speed_pickup = 0
$shtr_auto_pickup = 0
$shtr_pickup_current = 0
$shtr_sprite = Clock.GetGameTimer()

:SHTR_4766
goto @SHTR_5128

:SHTR_4773
$shtr_start_time = Clock.GetGameTimer()
set_var_int_to_var_int $shtr_end_time = $shtr_start_time
sub_int_var_from_int_var $shtr_end_time -= $shtr_sprite
if and
  $shtr_end_time >= 0
  100 > $shtr_end_time
goto_if_false @SHTR_4851
Hud.DrawSprite(15, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 255)

:SHTR_4851
if and
  $shtr_end_time >= 100
  200 > $shtr_end_time
goto_if_false @SHTR_4909
Hud.DrawSprite(16, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 255)

:SHTR_4909
if and
  $shtr_end_time >= 200
  300 > $shtr_end_time
goto_if_false @SHTR_4968
Hud.DrawSprite(17, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 255)

:SHTR_4968
if and
  $shtr_end_time >= 300
  400 > $shtr_end_time
goto_if_false @SHTR_5027
Hud.DrawSprite(18, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 255)

:SHTR_5027
if 
  $shtr_end_time > 499
goto_if_false @SHTR_5128
$shtr_sprite = Clock.GetGameTimer()
$shtr_tempF = 80.0
$shtr_plyr_x = 224.0
$shtr_amplitude = 0
$shtr_pickup_counter = 1
$shtr_pickup_collected = 31
$shtr_pickup_y = 250
$shtr_speed_pickup = 0
$shtr_auto_pickup = 0
$shtr_pickup_current = 0
$shtr_button1 = 3

:SHTR_5128
if 
  $shtr_button1 == 3
goto_if_false @SHTR_5781
$shtr_start_time = Clock.GetGameTimer()
set_var_int_to_var_int $shtr_end_time = $shtr_start_time
sub_int_var_from_int_var $shtr_end_time -= $shtr_sprite
if and
  $shtr_end_time >= 0
  100 > $shtr_end_time
goto_if_false @SHTR_5224
Hud.DrawSprite(10, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 150)

:SHTR_5224
if and
  $shtr_end_time >= 200
  300 > $shtr_end_time
goto_if_false @SHTR_5283
Hud.DrawSprite(10, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 150)

:SHTR_5283
if and
  $shtr_end_time >= 400
  500 > $shtr_end_time
goto_if_false @SHTR_5342
Hud.DrawSprite(10, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 150)

:SHTR_5342
if and
  $shtr_end_time >= 600
  700 > $shtr_end_time
goto_if_false @SHTR_5401
Hud.DrawSprite(10, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 150)

:SHTR_5401
if and
  $shtr_end_time >= 800
  900 > $shtr_end_time
goto_if_false @SHTR_5460
Hud.DrawSprite(10, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 150)

:SHTR_5460
if and
  $shtr_end_time >= 1000
  1100 > $shtr_end_time
goto_if_false @SHTR_5519
Hud.DrawSprite(10, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 150)

:SHTR_5519
if and
  $shtr_end_time >= 1200
  1300 > $shtr_end_time
goto_if_false @SHTR_5578
Hud.DrawSprite(10, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 150)

:SHTR_5578
if and
  $shtr_end_time >= 1400
  1500 > $shtr_end_time
goto_if_false @SHTR_5637
Hud.DrawSprite(10, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 150)

:SHTR_5637
if and
  $shtr_end_time >= 1600
  1700 > $shtr_end_time
goto_if_false @SHTR_5696
Hud.DrawSprite(10, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 150)

:SHTR_5696
if and
  $shtr_end_time >= 1800
  1900 > $shtr_end_time
goto_if_false @SHTR_5755
Hud.DrawSprite(10, $shtr_tempF, $shtr_plyr_x, 32.0, 32.0, 150, 150, 150, 150)

:SHTR_5755
if 
  $shtr_end_time >= 2000
goto_if_false @SHTR_5781
$shtr_button1 = 1

:SHTR_5781
if 
  is_int_var_greater_than_int_var $shtr_lives > $shtr_score
goto_if_false @SHTR_5815
set_var_int_to_var_int $shtr_score = $shtr_lives
$ship_velocity_y = 1

:SHTR_5815
gosub @SHTR_7068
Text.SetScale(0.6, 1.2)
Text.SetRightJustify(True)
Text.DisplayWithNumber(560.0, 48.0, 'SHTR_2B', $shtr_front_end)
gosub @SHTR_7068
Text.SetCenter(False)
Text.SetJustify(True)
Text.SetScale(0.6, 1.2)
Text.DisplayWithNumber(80.0, 48.0, 'SHTR_2D', $shtr_lives)
gosub @SHTR_7068
Text.SetScale(0.6, 1.2)
Text.DisplayWithNumber(320.0, 48.0, 'SHTR_2C', $shtr_score)

:SHTR_5956
if 
  $shtr_time_diff_hit == 0
goto_if_false @SHTR_6064
if 
  $shtr_button1 == 0
goto_if_false @SHTR_6064
if 
  $shtr_front_end == 0
goto_if_false @SHTR_6064
$shtr_time_diff_hit = 4
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1063)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1067)
$shtr_source_slot = 0

:SHTR_6064
if 
  $shtr_time_diff_hit == 4
goto_if_false @SHTR_6372
if 
  $shtr_source_slot == 0
goto_if_false @SHTR_6152
gosub @SHTR_7068
Text.SetScale(2.0, 4.0)
Text.Display(320.0, 196.0, 'SHTR_3B')
$shtr_sprite = Clock.GetGameTimer()
$shtr_source_slot = 1

:SHTR_6152
if 
  $shtr_source_slot == 1
goto_if_false @SHTR_6257
gosub @SHTR_7068
Text.SetScale(2.0, 4.0)
Text.Display(320.0, 196.0, 'SHTR_3B')
$shtr_start_time = Clock.GetGameTimer()
set_var_int_to_var_int $shtr_end_time = $shtr_start_time
sub_int_var_from_int_var $shtr_end_time -= $shtr_sprite
if 
  $shtr_end_time > 5000
goto_if_false @SHTR_6257
$shtr_source_slot = 2

:SHTR_6257
if 
  $shtr_source_slot == 2
goto_if_false @SHTR_6315
if 
  is_int_var_greater_than_int_var $shtr_hi_s[9] > $shtr_lives
goto_if_false @SHTR_6308
$shtr_source_slot = 4
goto @SHTR_6315

:SHTR_6308
gosub @SHTR_11218

:SHTR_6315
if 
  $shtr_source_slot == 3
goto_if_false @SHTR_6347
gosub @SHTR_11535
gosub @SHTR_12598

:SHTR_6347
if 
  $shtr_source_slot == 4
goto_if_false @SHTR_6372
gosub @SHTR_12598

:SHTR_6372
if 
  $shtr_time_diff_hit == 4
goto_if_false @SHTR_6441
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  $shtr_source_slot <> 1
goto_if_false @SHTR_6441
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1066)
goto @SHTR_582

:SHTR_6441
Hud.DrawSprite(25, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(25, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(25, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(25, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
if 
  $shtr_time_diff_hit == 0
goto_if_false @SHTR_6724
$shtr_help_diff = Clock.GetGameTimer()
set_var_int_to_var_int $shtr_shot = $shtr_help_diff
sub_int_var_from_int_var $shtr_shot -= $shtr_help_end
if 
  10000 > $shtr_shot
goto_if_false @SHTR_6724
Hud.DrawWindow(35.0, 15.0, 240.0, 50.0, 'DUMMY', 0)
Text.SetCenter(False)
Text.SetWrapX(240.0)
Text.SetFont(Font.Subtitles)
Text.SetScale(0.5, 1.8)
Text.Display(40.0, 15.0, 'SH_NAV')

:SHTR_6724
if 
  $shtr_time_diff_hit == 4
goto_if_false @SHTR_6881
if 
  $shtr_source_slot == 4
goto_if_false @SHTR_6881
$shtr_help_diff = Clock.GetGameTimer()
set_var_int_to_var_int $shtr_shot = $shtr_help_diff
sub_int_var_from_int_var $shtr_shot -= $shtr_help_end
if 
  10000 > $shtr_shot
goto_if_false @SHTR_6881
Hud.DrawWindow(35.0, 15.0, 200.0, 45.0, 'DUMMY', 0)
Text.SetCenter(False)
Text.SetWrapX(230.0)
Text.SetFont(Font.Subtitles)
Text.SetScale(0.5, 1.8)
Text.Display(40.0, 20.0, 'SH_BCK')

:SHTR_6881
goto @SHTR_761

:SHTR_6888
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 
return 

:SHTR_6908
Text.ClearThisPrint('BUSY')
Txd.Remove
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Game.ShutAllCharsUp(False)
Audio.SetMusicDoesFade(True)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1063)
if 
  Player.IsPlaying($player1)
goto_if_false @SHTR_7057
if 
  Char.LocateOnFoot3D($scplayer, $shooter1X, $shooter1Y, $shooter1Z, 2.0, 2.0, 2.0, False)
goto_if_false @SHTR_7043
set_var_float_to_var_float $y = $shooter1Y
$y += 2.0
Char.SetCoordinates($scplayer, $shooter1X, $y, $shooter1Z)

:SHTR_7043
Char.FreezePosition($scplayer, False)
Player.SetControl($player1, True)

:SHTR_7057
$onmission = 0
Mission.Finish
return 

:SHTR_7068
Text.SetColor(255, 255, 255, 255)
Text.SetScale(1.0, 2.0)
Text.SetCenter(True)
Text.SetWrapX(640.0)
return 

:SHTR_7107
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
$shtr_enemy_col_y -= 256.0
Hud.DrawSprite($shtr_background_pos, $shtr_enemy_col_y, 336.0, 256.0, 256.0, 150, 150, 150, 255)
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
Hud.DrawSprite($shtr_background_pos, $shtr_enemy_col_y, 336.0, 256.0, 256.0, 150, 150, 150, 255)
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
$shtr_enemy_col_y += 256.0
Hud.DrawSprite($shtr_background_pos, $shtr_enemy_col_y, 336.0, 256.0, 256.0, 150, 150, 150, 255)
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
$shtr_enemy_col_y += 512.0
Hud.DrawSprite($shtr_background_pos, $shtr_enemy_col_y, 336.0, 256.0, 256.0, 150, 150, 150, 255)
sub_timed_float_var_from_float_var $shtr_layer_x -=@ $shtr_origin
if 
  0.0 > $shtr_layer_x
goto_if_false @SHTR_7348
$shtr_layer_x += 256.0

:SHTR_7348
return 

:SHTR_7350
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
$shtr_enemy_col_y -= 256.0
Hud.DrawSprite($shtr_background_pos, $shtr_enemy_col_y, 112.0, 256.0, 256.0, 150, 150, 150, 255)
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
Hud.DrawSprite($shtr_background_pos, $shtr_enemy_col_y, 112.0, 256.0, 256.0, 150, 150, 150, 255)
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
$shtr_enemy_col_y += 256.0
Hud.DrawSprite($shtr_background_pos, $shtr_enemy_col_y, 112.0, 256.0, 256.0, 150, 150, 150, 255)
set_var_float_to_var_float $shtr_enemy_col_y = $shtr_layer_x
$shtr_enemy_col_y += 512.0
Hud.DrawSprite($shtr_background_pos, $shtr_enemy_col_y, 112.0, 256.0, 256.0, 150, 150, 150, 255)
sub_timed_float_var_from_float_var $shtr_layer_x -=@ $shtr_layer_scroll_speed_top
if 
  0.0 > $shtr_layer_x
goto_if_false @SHTR_7591
$shtr_layer_x += 256.0

:SHTR_7591
return 

:SHTR_7593
if 
  is_int_lvar_greater_than_int_var TIMERB > $shtr_respawn
goto_if_false @SHTR_7683
if 
  $shtr_current_enemy($shtr_y_add,16i) == 0
goto_if_false @SHTR_7683
set_var_float_to_var_float $shtr_random($shtr_y_add,16f) = $5908
set_var_float_to_var_float $5924($shtr_y_add,16f) = $5924[0]
$shtr_current_enemy($shtr_y_add,16i) = 1
TIMERB = 0
$shtr_range_end += 1

:SHTR_7683
return 

:SHTR_7685
$shtr_y_add = 0

:SHTR_7692
if 
  8 > $shtr_y_add
goto_if_false @SHTR_8146
if 
  $shtr_current_enemy($shtr_y_add,16i) == 2
goto_if_false @SHTR_8132
$5612($shtr_y_add,16i) = Clock.GetGameTimer()
set_var_int_to_var_int $5628($shtr_y_add,16i) = $5612($shtr_y_add,16i)
sub_int_var_from_int_var $5628($shtr_y_add,16i) -= $shtr_time_diff($shtr_y_add,16i)
if and
  $5628($shtr_y_add,16i) >= 0
  100 > $5628($shtr_y_add,16i)
goto_if_false @SHTR_7846
Hud.DrawSprite(15, $shtr_random($shtr_y_add,16f), $5892($shtr_y_add,16f), 32.0, 32.0, 150, 150, 150, 255)

:SHTR_7846
if and
  $5628($shtr_y_add,16i) >= 100
  200 > $5628($shtr_y_add,16i)
goto_if_false @SHTR_7920
Hud.DrawSprite(16, $shtr_random($shtr_y_add,16f), $5892($shtr_y_add,16f), 32.0, 32.0, 150, 150, 150, 255)

:SHTR_7920
if and
  $5628($shtr_y_add,16i) >= 200
  300 > $5628($shtr_y_add,16i)
goto_if_false @SHTR_7995
Hud.DrawSprite(17, $shtr_random($shtr_y_add,16f), $5892($shtr_y_add,16f), 32.0, 32.0, 150, 150, 150, 255)

:SHTR_7995
if and
  $5628($shtr_y_add,16i) >= 300
  400 > $5628($shtr_y_add,16i)
goto_if_false @SHTR_8070
Hud.DrawSprite(18, $shtr_random($shtr_y_add,16f), $5892($shtr_y_add,16f), 32.0, 32.0, 150, 150, 150, 255)

:SHTR_8070
if 
  $5628($shtr_y_add,16i) > 499
goto_if_false @SHTR_8132
$shtr_random($shtr_y_add,16f) = 0.0
$5892($shtr_y_add,16f) = 0.0
$shtr_current_enemy($shtr_y_add,16i) = 0

:SHTR_8132
$shtr_y_add += 1
goto @SHTR_7692

:SHTR_8146
return 

:SHTR_8148
if 
  $shtr_current_enemy[0] == 0
goto_if_false @SHTR_8908
if 
  $5875 == 0
goto_if_false @SHTR_8908
$5908 = Math.RandomFloatInRange(640.0, 720.0)
set_var_float_to_var_float $shtr_random[0] = $5908
$shtr_sin_multiplier = Math.RandomFloatInRange(240.0, 640.0)
$shtr_initial_y = Math.RandomFloatInRange(80.0, 368.0)
set_var_float_to_var_float $shtr_gen_y = $shtr_initial_y
sub_float_var_from_float_var $shtr_gen_y -= $shtr_gen_hi_y
if 
  80.0 > $shtr_gen_y
goto_if_false @SHTR_8282
add_float_var_to_float_var $shtr_initial_y += $shtr_gen_hi_y

:SHTR_8282
set_var_float_to_var_float $shtr_gen_lo_y = $shtr_initial_y
add_float_var_to_float_var $shtr_gen_lo_y += $shtr_gen_hi_y
if 
  80.0 > $shtr_gen_lo_y
goto_if_false @SHTR_8327
sub_float_var_from_float_var $shtr_initial_y -= $shtr_gen_hi_y

:SHTR_8327
$5924[0] = Math.RandomFloatInRange($shtr_button_pressed, $shtr_range_start)
if and
  $5924[0] >= 1.0
  1.5 > $5924[0]
goto_if_false @SHTR_8377
$shtr_respawn = 500

:SHTR_8377
if and
  $5924[0] >= 1.5
  2.0 > $5924[0]
goto_if_false @SHTR_8416
$shtr_respawn = 475

:SHTR_8416
if and
  $5924[0] >= 2.0
  2.5 > $5924[0]
goto_if_false @SHTR_8455
$shtr_respawn = 450

:SHTR_8455
if and
  $5924[0] >= 2.5
  3.0 > $5924[0]
goto_if_false @SHTR_8494
$shtr_respawn = 425

:SHTR_8494
if and
  $5924[0] >= 3.0
  3.5 > $5924[0]
goto_if_false @SHTR_8533
$shtr_respawn = 400

:SHTR_8533
if and
  $5924[0] >= 3.5
  4.0 > $5924[0]
goto_if_false @SHTR_8572
$shtr_respawn = 375

:SHTR_8572
if and
  $5924[0] >= 4.0
  4.5 > $5924[0]
goto_if_false @SHTR_8611
$shtr_respawn = 350

:SHTR_8611
if and
  $5924[0] >= 4.5
  5.0 > $5924[0]
goto_if_false @SHTR_8650
$shtr_respawn = 325

:SHTR_8650
if and
  $5924[0] >= 5.0
  5.5 > $5924[0]
goto_if_false @SHTR_8689
$shtr_respawn = 300

:SHTR_8689
if and
  $5924[0] >= 5.5
  6.0 > $5924[0]
goto_if_false @SHTR_8728
$shtr_respawn = 275

:SHTR_8728
if and
  $5924[0] >= 6.0
  6.5 > $5924[0]
goto_if_false @SHTR_8767
$shtr_respawn = 250

:SHTR_8767
if and
  $5924[0] >= 6.5
  7.0 > $5924[0]
goto_if_false @SHTR_8806
$shtr_respawn = 225

:SHTR_8806
if and
  $5924[0] >= 7.0
  7.5 > $5924[0]
goto_if_false @SHTR_8845
$shtr_respawn = 200

:SHTR_8845
if and
  $5924[0] >= 7.5
  8.0 >= $5924[0]
goto_if_false @SHTR_8884
$shtr_respawn = 175

:SHTR_8884
$shtr_multi_pickup = Math.RandomIntInRange(100, 1500)
$shtr_current_enemy[0] = 1
$5875 = 1

:SHTR_8908
return 

:SHTR_8910
$shtr_y_add = 0

:SHTR_8917
if 
  8 > $shtr_y_add
goto_if_false @SHTR_9330
if 
  $shtr_current_enemy($shtr_y_add,16i) == 1
goto_if_false @SHTR_9316
Hud.DrawSprite(12, $shtr_random($shtr_y_add,16f), $5892($shtr_y_add,16f), 32.0, 32.0, 150, 150, 150, 255)
sub_timed_float_var_from_float_var $shtr_random($shtr_y_add,16f) -=@ $5924($shtr_y_add,16f)
set_var_float_to_var_float $5940 = $shtr_random($shtr_y_add,16f)
div_float_var_by_float_var $5940 /= $shtr_sin_multiplier
set_var_float_to_var_float $shtr_sin_cycle_range = $5940
$shtr_sin_cycle_range *= 360.0
$shtr_sin_degree_input = Math.Sin($shtr_sin_cycle_range)
set_var_float_to_var_float $shtr_sin_degree_output = $shtr_sin_degree_input
mult_float_var_by_float_var $shtr_sin_degree_output *= $shtr_gen_hi_y
set_var_float_to_var_float $5892($shtr_y_add,16f) = $shtr_sin_degree_output
add_float_var_to_float_var $5892($shtr_y_add,16f) += $shtr_initial_y
if 
  0.0 > $shtr_random($shtr_y_add,16f)
goto_if_false @SHTR_9316
$shtr_random($shtr_y_add,16f) = 0.0
$5892($shtr_y_add,16f) = 0.0
if 
  $shtr_lives > 24
goto_if_false @SHTR_9305
if 
  is_int_var_equal_to_int_var $shtr_lives == $shtr_score
goto_if_false @SHTR_9298
if and
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[0]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[1]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[2]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[3]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[4]
goto_if_false @SHTR_9298
if and
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[5]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[6]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[7]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[8]
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s[9]
goto_if_false @SHTR_9298
$shtr_score -= 25

:SHTR_9298
$shtr_lives -= 25

:SHTR_9305
$shtr_current_enemy($shtr_y_add,16i) = 0

:SHTR_9316
$shtr_y_add += 1
goto @SHTR_8917

:SHTR_9330
return 

:SHTR_9332
$shtr_respawn_time = 1

:SHTR_9339
if 
  16 > $shtr_respawn_time
goto_if_false @SHTR_9755
if 
  $shtr_current_projectile_fired($shtr_respawn_time,16i) == 1
goto_if_false @SHTR_9477
Hud.DrawSprite(11, $5674($shtr_respawn_time,16f), $5690($shtr_respawn_time,16f), $5852, $5852, 150, 150, 150, 255)
add_timed_float_var_to_float_var $5674($shtr_respawn_time,16f) +=@ $shtr_layer_scroll_speed_bottom
if 
  $5674($shtr_respawn_time,16f) > 639.0
goto_if_false @SHTR_9477
$5690($shtr_respawn_time,16f) = 0.0
$shtr_current_projectile_fired($shtr_respawn_time,16i) = 0

:SHTR_9477
if 
  $shtr_projectile_col_y($shtr_respawn_time,16i) == 1
goto_if_false @SHTR_9609
Hud.DrawSprite(11, $5740($shtr_respawn_time,16f), $5756($shtr_respawn_time,16f), $5852, $5852, 150, 150, 150, 255)
add_float_var_to_float_var $5740($shtr_respawn_time,16f) += $shtr_cos_shot_angle
sub_float_var_from_float_var $5756($shtr_respawn_time,16f) -= $shtr_x_add
if 
  $5740($shtr_respawn_time,16f) > 639.0
goto_if_false @SHTR_9609
$5756($shtr_respawn_time,16f) = 0.0
$shtr_projectile_col_y($shtr_respawn_time,16i) = 0

:SHTR_9609
if 
  $5788($shtr_respawn_time,16i) == 1
goto_if_false @SHTR_9741
Hud.DrawSprite(11, $5804($shtr_respawn_time,16f), $5820($shtr_respawn_time,16f), $5852, $5852, 150, 150, 150, 255)
add_float_var_to_float_var $5804($shtr_respawn_time,16f) += $shtr_cos_shot_angle
add_float_var_to_float_var $5820($shtr_respawn_time,16f) += $shtr_x_add
if 
  $5804($shtr_respawn_time,16f) > 639.0
goto_if_false @SHTR_9741
$5820($shtr_respawn_time,16f) = 0.0
$5788($shtr_respawn_time,16i) = 0

:SHTR_9741
$shtr_respawn_time += 1
goto @SHTR_9339

:SHTR_9755
return 

:SHTR_9757
$shtr_y_add = 0

:SHTR_9764
if 
  8 > $shtr_y_add
goto_if_false @SHTR_10258
if 
  $shtr_random($shtr_y_add,16f) > 320.0
goto_if_false @SHTR_9961
if 
  $5988 == 0
goto_if_false @SHTR_9961
if 
  $shtr_current_enemy($shtr_y_add,16i) == 1
goto_if_false @SHTR_9961
if 
  $5980($shtr_y_add,8i) == 0
goto_if_false @SHTR_9961
set_var_float_to_var_float $shtr_enemy_shot_speed($shtr_y_add,8f) = $shtr_random($shtr_y_add,16f)
set_var_float_to_var_float $5972($shtr_y_add,8f) = $5892($shtr_y_add,16f)
$5980($shtr_y_add,8i) = 1
$5988 += 1
set_var_float_to_var_float $unk_5962 = $5924($shtr_y_add,16f)
$unk_5962 *= 3.0
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1060)

:SHTR_9961
if 
  $5988 == 1
goto_if_false @SHTR_10244
if 
  $5980($shtr_y_add,8i) == 1
goto_if_false @SHTR_10244
if 
  $shtr_button1 == 1
goto_if_false @SHTR_10125
if 
  Math.Do2DRectanglesCollide($shtr_tempF, $shtr_plyr_x, 32.0, 32.0, $shtr_enemy_shot_speed($shtr_y_add,8f), $5972($shtr_y_add,8f), 8.0, 8.0)
goto_if_false @SHTR_10125
$5980($shtr_y_add,8i) = 0
$shtr_enemy_shot_speed($shtr_y_add,8f) = 0.0
$5972($shtr_y_add,8f) = 0.0
$5988 = 0
$shtr_button1 = 0

:SHTR_10125
Hud.DrawSprite(14, $shtr_enemy_shot_speed($shtr_y_add,8f), $5972($shtr_y_add,8f), $5852, $5852, 150, 150, 150, 255)
sub_float_var_from_float_var $shtr_enemy_shot_speed($shtr_y_add,8f) -= $unk_5962
if 
  0.0 > $shtr_enemy_shot_speed($shtr_y_add,8f)
goto_if_false @SHTR_10244
$5980($shtr_y_add,8i) = 0
$shtr_enemy_shot_speed($shtr_y_add,8f) = 0.0
$5972($shtr_y_add,8f) = 0.0
$5988 = 0

:SHTR_10244
$shtr_y_add += 1
goto @SHTR_9764

:SHTR_10258
return 

:SHTR_10260
$shtr_y_add = 0

:SHTR_10267
if 
  8 > $shtr_y_add
goto_if_false @SHTR_11216
if 
  $shtr_current_enemy($shtr_y_add,16i) == 1
goto_if_false @SHTR_11066
$shtr_respawn_time = 1

:SHTR_10314
if 
  16 > $shtr_respawn_time
goto_if_false @SHTR_11066
if 
  Math.Do2DRectanglesCollide($5674($shtr_respawn_time,16f), $5690($shtr_respawn_time,16f), $5722, $shtr_projectile_col_x, $shtr_random($shtr_y_add,16f), $5892($shtr_y_add,16f), $shtr_reload_diff, $shtr_enemy_col_x)
goto_if_false @SHTR_10572
$shtr_lives += 100
$shtr_current_enemy($shtr_y_add,16i) = 2
$shtr_current_projectile_fired($shtr_respawn_time,16i) = 0
$5674($shtr_respawn_time,16f) = 0.0
$5690($shtr_respawn_time,16f) = 0.0
$shtr_time_diff($shtr_y_add,16i) = Clock.GetGameTimer()
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1061)
$shtr_amplitude += 1
if 
  $shtr_pickup_counter == 1
goto_if_false @SHTR_10572
if 
  $shtr_amplitude == 8
goto_if_false @SHTR_10552
set_var_float_to_var_float $shtr_pickup_move_switch = $shtr_random($shtr_y_add,16f)
set_var_float_to_var_float $shtr_pickup_x = $5892($shtr_y_add,16f)
$shtr_pickup_counter = 0
goto @SHTR_10572

:SHTR_10552
$shtr_pickup_move_switch = 0.0
$shtr_pickup_x = 0.0

:SHTR_10572
if 
  Math.Do2DRectanglesCollide($5740($shtr_respawn_time,16f), $5756($shtr_respawn_time,16f), $5722, $shtr_projectile_col_x, $shtr_random($shtr_y_add,16f), $5892($shtr_y_add,16f), $shtr_reload_diff, $shtr_enemy_col_x)
goto_if_false @SHTR_10812
$shtr_lives += 100
$shtr_current_enemy($shtr_y_add,16i) = 2
$shtr_projectile_col_y($shtr_respawn_time,16i) = 0
$5740($shtr_respawn_time,16f) = 0.0
$5756($shtr_respawn_time,16f) = 0.0
$shtr_time_diff($shtr_y_add,16i) = Clock.GetGameTimer()
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1061)
$shtr_amplitude += 1
if 
  $shtr_pickup_counter == 1
goto_if_false @SHTR_10812
if 
  $shtr_amplitude == 8
goto_if_false @SHTR_10792
set_var_float_to_var_float $shtr_pickup_move_switch = $shtr_random($shtr_y_add,16f)
set_var_float_to_var_float $shtr_pickup_x = $5892($shtr_y_add,16f)
$shtr_pickup_counter = 0
goto @SHTR_10812

:SHTR_10792
$shtr_pickup_move_switch = 0.0
$shtr_pickup_x = 0.0

:SHTR_10812
if 
  Math.Do2DRectanglesCollide($5804($shtr_respawn_time,16f), $5820($shtr_respawn_time,16f), $5722, $shtr_projectile_col_x, $shtr_random($shtr_y_add,16f), $5892($shtr_y_add,16f), $shtr_reload_diff, $shtr_enemy_col_x)
goto_if_false @SHTR_11052
$shtr_lives += 100
$shtr_current_enemy($shtr_y_add,16i) = 2
$5788($shtr_respawn_time,16i) = 0
$5804($shtr_respawn_time,16f) = 0.0
$5820($shtr_respawn_time,16f) = 0.0
$shtr_time_diff($shtr_y_add,16i) = Clock.GetGameTimer()
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1061)
$shtr_amplitude += 1
if 
  $shtr_pickup_counter == 1
goto_if_false @SHTR_11052
if 
  $shtr_amplitude == 8
goto_if_false @SHTR_11032
set_var_float_to_var_float $shtr_pickup_move_switch = $shtr_random($shtr_y_add,16f)
set_var_float_to_var_float $shtr_pickup_x = $5892($shtr_y_add,16f)
$shtr_pickup_counter = 0
goto @SHTR_11052

:SHTR_11032
$shtr_pickup_move_switch = 0.0
$shtr_pickup_x = 0.0

:SHTR_11052
$shtr_respawn_time += 1
goto @SHTR_10314

:SHTR_11066
if 
  $shtr_current_enemy($shtr_y_add,16i) == 1
goto_if_false @SHTR_11202
if 
  $shtr_button1 == 1
goto_if_false @SHTR_11202
if 
  Math.Do2DRectanglesCollide($shtr_tempF, $shtr_plyr_x, 32.0, 32.0, $shtr_random($shtr_y_add,16f), $5892($shtr_y_add,16f), $shtr_reload_diff, $shtr_enemy_col_x)
goto_if_false @SHTR_11202
$shtr_current_enemy($shtr_y_add,16i) = 2
$shtr_time_diff($shtr_y_add,16i) = Clock.GetGameTimer()
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1061)
$shtr_button1 = 0

:SHTR_11202
$shtr_y_add += 1
goto @SHTR_10267

:SHTR_11216
return 

:SHTR_11218
$6150 = 9
$shtr_ranking = 0
$shtr_score_update = 1

:SHTR_11239
if and
  $6150 >= 0
  $shtr_score_update == 1
goto_if_false @SHTR_11336
if 
  is_int_var_greater_than_int_var $shtr_lives > $shtr_hi_s($6150,10i)
goto_if_false @SHTR_11322
$6150 -= 1
$shtr_ranking = 1
$shtr_source_slot = 3
$shtr_press = 1
goto @SHTR_11329

:SHTR_11322
$shtr_score_update = 0

:SHTR_11329
goto @SHTR_11239

:SHTR_11336
if 
  $shtr_ranking == 1
goto_if_false @SHTR_11533
$6150 += 1
$shtr_score_check = 9
$shtr_destination_slot = 8

:SHTR_11375
if 
  is_int_var_greater_or_equal_to_int_var $shtr_destination_slot >= $6150
goto_if_false @SHTR_11495
set_var_text_label $shtr_hi_1($shtr_score_check,10s) = $shtr_hi_1($shtr_destination_slot,10s)
set_var_text_label $shtr_hi_2($shtr_score_check,10s) = $shtr_hi_2($shtr_destination_slot,10s)
set_var_text_label $shtr_hi_3($shtr_score_check,10s) = $shtr_hi_3($shtr_destination_slot,10s)
set_var_int_to_var_int $shtr_hi_l($shtr_score_check,10i) = $shtr_hi_l($shtr_destination_slot,10i)
set_var_int_to_var_int $shtr_hi_s($shtr_score_check,10i) = $shtr_hi_s($shtr_destination_slot,10i)
$shtr_score_check -= 1
$shtr_destination_slot -= 1
goto @SHTR_11375

:SHTR_11495
set_var_int_to_var_int $shtr_hi_s($6150,10i) = $shtr_lives
set_var_int_to_var_int $shtr_hi_l($6150,10i) = $shtr_on_table
$shtr_level = 0
$6066 = 10

:SHTR_11533
return 

:SHTR_11535
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if and
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SHTR_11624
if and
  $LStickY == 0
  $LStickX == 0
goto_if_false @SHTR_11624
$shtr_chars = 0

:SHTR_11624
if 
  $shtr_level == 0
goto_if_false @SHTR_11964
set_var_text_label $shtr_hi_1($6150,10s) = $shtr_help_start($6066,37s)
set_var_text_label $shtr_hi_2($6150,10s) = s$shtr_help_start[10]
set_var_text_label $shtr_hi_3($6150,10s) = s$shtr_help_start[10]
if 
  $shtr_chars == 0
goto_if_false @SHTR_11964
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
  $LStickX > 100
  -100 > $LStickY
goto_if_false @SHTR_11803
if 
  36 > $6066
goto_if_false @SHTR_11769
$6066 += 1
goto @SHTR_11776

:SHTR_11769
$6066 = 0

:SHTR_11776
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1064)
$shtr_chars = 1

:SHTR_11803
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  -100 > $LStickX
  $LStickY > 100
goto_if_false @SHTR_11906
if 
  $6066 > 0
goto_if_false @SHTR_11872
$6066 -= 1
goto @SHTR_11879

:SHTR_11872
$6066 = 36

:SHTR_11879
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1064)
$shtr_chars = 1

:SHTR_11906
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SHTR_11964
$6066 = 10
$shtr_level = 1
$shtr_chars = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1065)

:SHTR_11964
if 
  $shtr_level == 1
goto_if_false @SHTR_12280
set_var_text_label $shtr_hi_2($6150,10s) = $shtr_help_start($6066,37s)
if 
  $shtr_chars == 0
goto_if_false @SHTR_12280
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
  $LStickX > 100
  -100 > $LStickY
goto_if_false @SHTR_12119
if 
  36 > $6066
goto_if_false @SHTR_12085
$6066 += 1
goto @SHTR_12092

:SHTR_12085
$6066 = 0

:SHTR_12092
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1064)
$shtr_chars = 1

:SHTR_12119
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  -100 > $LStickX
  $LStickY > 100
goto_if_false @SHTR_12222
if 
  $6066 > 0
goto_if_false @SHTR_12188
$6066 -= 1
goto @SHTR_12195

:SHTR_12188
$6066 = 36

:SHTR_12195
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1064)
$shtr_chars = 1

:SHTR_12222
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SHTR_12280
$6066 = 10
$shtr_level = 2
$shtr_chars = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1065)

:SHTR_12280
if 
  $shtr_level == 2
goto_if_false @SHTR_12596
set_var_text_label $shtr_hi_3($6150,10s) = $shtr_help_start($6066,37s)
if 
  $shtr_chars == 0
goto_if_false @SHTR_12596
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
  $LStickX > 100
  -100 > $LStickY
goto_if_false @SHTR_12435
if 
  36 > $6066
goto_if_false @SHTR_12401
$6066 += 1
goto @SHTR_12408

:SHTR_12401
$6066 = 0

:SHTR_12408
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1064)
$shtr_chars = 1

:SHTR_12435
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  -100 > $LStickX
  $LStickY > 100
goto_if_false @SHTR_12538
if 
  $6066 > 0
goto_if_false @SHTR_12504
$6066 -= 1
goto @SHTR_12511

:SHTR_12504
$6066 = 36

:SHTR_12511
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1064)
$shtr_chars = 1

:SHTR_12538
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SHTR_12596
$shtr_level = 3
$shtr_chars = 1
$shtr_source_slot = 4
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1065)

:SHTR_12596
return 

:SHTR_12598
$shtr_draw_highlight = 0

:SHTR_12605
if 
  10 > $shtr_draw_highlight
goto_if_false @SHTR_12770
gosub @SHTR_7068
Text.Display($shtr_hi_loop($shtr_draw_highlight,10f), $6110($shtr_draw_highlight,10f), $shtr_hi_1($shtr_draw_highlight,10s))
gosub @SHTR_7068
Text.Display($6080($shtr_draw_highlight,10f), $6120($shtr_draw_highlight,10f), $shtr_hi_2($shtr_draw_highlight,10s))
gosub @SHTR_7068
Text.Display($6090($shtr_draw_highlight,10f), $6130($shtr_draw_highlight,10f), $shtr_hi_3($shtr_draw_highlight,10s))
gosub @SHTR_7068
Text.SetRightJustify(True)
Text.DisplayWithNumber($6100($shtr_draw_highlight,10f), $6140($shtr_draw_highlight,10f), 'SHTR_LV', $shtr_hi_s($shtr_draw_highlight,10i))
$shtr_draw_highlight += 1
goto @SHTR_12605

:SHTR_12770
gosub @SHTR_7068
Text.Display(320.0, 64.0, 'SHTR_2F')
if and
  $shtr_front_end == 0
  $shtr_press == 1
goto_if_false @SHTR_13205
if 
  $shtr_level == 0
goto_if_false @SHTR_12890
gosub @SHTR_7068
Text.SetColor(0, 255, 0, 255)
Text.Display($shtr_hi_loop($6150,10f), $6110($6150,10f), $shtr_hi_1($6150,10s))
goto @SHTR_12932

:SHTR_12890
gosub @SHTR_7068
Text.SetColor(255, 0, 0, 255)
Text.Display($shtr_hi_loop($6150,10f), $6110($6150,10f), $shtr_hi_1($6150,10s))

:SHTR_12932
if 
  $shtr_level == 1
goto_if_false @SHTR_12999
gosub @SHTR_7068
Text.SetColor(0, 255, 0, 255)
Text.Display($6080($6150,10f), $6120($6150,10f), $shtr_hi_2($6150,10s))
goto @SHTR_13041

:SHTR_12999
gosub @SHTR_7068
Text.SetColor(255, 0, 0, 255)
Text.Display($6080($6150,10f), $6120($6150,10f), $shtr_hi_2($6150,10s))

:SHTR_13041
if 
  $shtr_level == 2
goto_if_false @SHTR_13108
gosub @SHTR_7068
Text.SetColor(0, 255, 0, 255)
Text.Display($6090($6150,10f), $6130($6150,10f), $shtr_hi_3($6150,10s))
goto @SHTR_13150

:SHTR_13108
gosub @SHTR_7068
Text.SetColor(255, 0, 0, 255)
Text.Display($6090($6150,10f), $6130($6150,10f), $shtr_hi_3($6150,10s))

:SHTR_13150
gosub @SHTR_7068
Text.SetColor(255, 0, 0, 255)
Text.SetRightJustify(True)
Text.DisplayWithNumber($6100($6150,10f), $6140($6150,10f), 'SHTR_LV', $shtr_hi_s($6150,10i))

:SHTR_13205
return 

:SHTR_13207
$shtr_current = Math.RandomIntInRange(1, 30)
if 
  $shtr_current == 1
goto_if_false @SHTR_13309
if 
  $shtr_used == 0
goto_if_false @SHTR_13302
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[23]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[15]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[36]
$shtr_used = 1
goto @SHTR_13309

:SHTR_13302
goto @SHTR_13207

:SHTR_13309
if 
  $shtr_current == 2
goto_if_false @SHTR_13402
if 
  $6163 == 0
goto_if_false @SHTR_13395
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[18]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[22]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[34]
$6163 = 1
goto @SHTR_13402

:SHTR_13395
goto @SHTR_13207

:SHTR_13402
if 
  $shtr_current == 3
goto_if_false @SHTR_13495
if 
  $6164 == 0
goto_if_false @SHTR_13488
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[32]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[18]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[21]
$6164 = 1
goto @SHTR_13495

:SHTR_13488
goto @SHTR_13207

:SHTR_13495
if 
  $shtr_current == 4
goto_if_false @SHTR_13588
if 
  $6165 == 0
goto_if_false @SHTR_13581
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[12]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[20]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[27]
$6165 = 1
goto @SHTR_13588

:SHTR_13581
goto @SHTR_13207

:SHTR_13588
if 
  $shtr_current == 5
goto_if_false @SHTR_13681
if 
  $6166 == 0
goto_if_false @SHTR_13674
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[13]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[11]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[25]
$6166 = 1
goto @SHTR_13681

:SHTR_13674
goto @SHTR_13207

:SHTR_13681
if 
  $shtr_current == 6
goto_if_false @SHTR_13774
if 
  $6167 == 0
goto_if_false @SHTR_13767
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[13]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[10]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[31]
$6167 = 1
goto @SHTR_13774

:SHTR_13767
goto @SHTR_13207

:SHTR_13774
if 
  $shtr_current == 7
goto_if_false @SHTR_13867
if 
  $6168 == 0
goto_if_false @SHTR_13860
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[13]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[24]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[13]
$6168 = 1
goto @SHTR_13867

:SHTR_13860
goto @SHTR_13207

:SHTR_13867
if 
  $shtr_current == 8
goto_if_false @SHTR_13960
if 
  $6169 == 0
goto_if_false @SHTR_13953
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[28]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[19]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[21]
$6169 = 1
goto @SHTR_13960

:SHTR_13953
goto @SHTR_13207

:SHTR_13960
if 
  $shtr_current == 9
goto_if_false @SHTR_14053
if 
  $6170 == 0
goto_if_false @SHTR_14046
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[28]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[29]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[14]
$6170 = 1
goto @SHTR_14053

:SHTR_14046
goto @SHTR_13207

:SHTR_14053
if 
  $shtr_current == 10
goto_if_false @SHTR_14146
if 
  $6171 == 0
goto_if_false @SHTR_14139
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[19]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[30]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[13]
$6171 = 1
goto @SHTR_14146

:SHTR_14139
goto @SHTR_13207

:SHTR_14146
if 
  $shtr_current == 11
goto_if_false @SHTR_14239
if 
  $6172 == 0
goto_if_false @SHTR_14232
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[20]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[22]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[11]
$6172 = 1
goto @SHTR_14239

:SHTR_14232
goto @SHTR_13207

:SHTR_14239
if 
  $shtr_current == 12
goto_if_false @SHTR_14332
if 
  $6173 == 0
goto_if_false @SHTR_14325
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[16]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[28]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[32]
$6173 = 1
goto @SHTR_14332

:SHTR_14325
goto @SHTR_13207

:SHTR_14332
if 
  $shtr_current == 13
goto_if_false @SHTR_14425
if 
  $6174 == 0
goto_if_false @SHTR_14418
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[13]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[28]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[32]
$6174 = 1
goto @SHTR_14425

:SHTR_14418
goto @SHTR_13207

:SHTR_14425
if 
  $shtr_current == 14
goto_if_false @SHTR_14518
if 
  $6175 == 0
goto_if_false @SHTR_14511
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[32]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[13]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[34]
$6175 = 1
goto @SHTR_14518

:SHTR_14511
goto @SHTR_13207

:SHTR_14518
if 
  $shtr_current == 15
goto_if_false @SHTR_14611
if 
  $6176 == 0
goto_if_false @SHTR_14604
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[16]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[10]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[35]
$6176 = 1
goto @SHTR_14611

:SHTR_14604
goto @SHTR_13207

:SHTR_14611
if 
  $shtr_current == 16
goto_if_false @SHTR_14704
if 
  $6177 == 0
goto_if_false @SHTR_14697
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[32]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[10]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[35]
$6177 = 1
goto @SHTR_14704

:SHTR_14697
goto @SHTR_13207

:SHTR_14704
if 
  $shtr_current == 17
goto_if_false @SHTR_14797
if 
  $6178 == 0
goto_if_false @SHTR_14790
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[20]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[18]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[23]
$6178 = 1
goto @SHTR_14797

:SHTR_14790
goto @SHTR_13207

:SHTR_14797
if 
  $shtr_current == 18
goto_if_false @SHTR_14890
if 
  $6179 == 0
goto_if_false @SHTR_14883
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[11]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[14]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[10]
$6179 = 1
goto @SHTR_14890

:SHTR_14883
goto @SHTR_13207

:SHTR_14890
if 
  $shtr_current == 19
goto_if_false @SHTR_14983
if 
  $6180 == 0
goto_if_false @SHTR_14976
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[11]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[10]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[33]
$6180 = 1
goto @SHTR_14983

:SHTR_14976
goto @SHTR_13207

:SHTR_14983
if 
  $shtr_current == 20
goto_if_false @SHTR_15076
if 
  $6181 == 0
goto_if_false @SHTR_15069
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[21]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[24]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[30]
$6181 = 1
goto @SHTR_15076

:SHTR_15069
goto @SHTR_13207

:SHTR_15076
if 
  $shtr_current == 21
goto_if_false @SHTR_15169
if 
  $6182 == 0
goto_if_false @SHTR_15162
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[19]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[23]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[24]
$6182 = 1
goto @SHTR_15169

:SHTR_15162
goto @SHTR_13207

:SHTR_15169
if 
  $shtr_current == 22
goto_if_false @SHTR_15262
if 
  $6183 == 0
goto_if_false @SHTR_15255
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[22]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[34]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[29]
$6183 = 1
goto @SHTR_15262

:SHTR_15255
goto @SHTR_13207

:SHTR_15262
if 
  $shtr_current == 23
goto_if_false @SHTR_15355
if 
  $6184 == 0
goto_if_false @SHTR_15348
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[13]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[14]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[15]
$6184 = 1
goto @SHTR_15355

:SHTR_15348
goto @SHTR_13207

:SHTR_15355
if 
  $shtr_current == 24
goto_if_false @SHTR_15448
if 
  $6185 == 0
goto_if_false @SHTR_15441
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[20]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[17]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[35]
$6185 = 1
goto @SHTR_15448

:SHTR_15441
goto @SHTR_13207

:SHTR_15448
if 
  $shtr_current == 25
goto_if_false @SHTR_15541
if 
  $6186 == 0
goto_if_false @SHTR_15534
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[22]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[14]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[24]
$6186 = 1
goto @SHTR_15541

:SHTR_15534
goto @SHTR_13207

:SHTR_15541
if 
  $shtr_current == 26
goto_if_false @SHTR_15634
if 
  $6187 == 0
goto_if_false @SHTR_15627
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[16]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[15]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[32]
$6187 = 1
goto @SHTR_15634

:SHTR_15627
goto @SHTR_13207

:SHTR_15634
if 
  $shtr_current == 27
goto_if_false @SHTR_15727
if 
  $6188 == 0
goto_if_false @SHTR_15720
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[32]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[27]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[22]
$6188 = 1
goto @SHTR_15727

:SHTR_15720
goto @SHTR_13207

:SHTR_15727
if 
  $shtr_current == 28
goto_if_false @SHTR_15820
if 
  $6189 == 0
goto_if_false @SHTR_15813
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[10]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[36]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[32]
$6189 = 1
goto @SHTR_15820

:SHTR_15813
goto @SHTR_13207

:SHTR_15820
if 
  $shtr_current == 29
goto_if_false @SHTR_15913
if 
  $6190 == 0
goto_if_false @SHTR_15906
set_var_text_label $shtr_hi_1($shtr_played_before,10s) = s$shtr_help_start[27]
set_var_text_label $shtr_hi_2($shtr_played_before,10s) = s$shtr_help_start[18]
set_var_text_label $shtr_hi_3($shtr_played_before,10s) = s$shtr_help_start[12]
$6190 = 1
goto @SHTR_15913

:SHTR_15906
goto @SHTR_13207

:SHTR_15913
return 

:SHTR_15915
set_var_text_label s$shtr_help_start[0] = 'SHTR_0'
set_var_text_label s$shtr_help_start[1] = 'SHTR_1'
set_var_text_label s$shtr_help_start[2] = 'SHTR_2'
set_var_text_label s$shtr_help_start[3] = 'SHTR_3'
set_var_text_label s$shtr_help_start[4] = 'SHTR_4'
set_var_text_label s$shtr_help_start[5] = 'SHTR_5'
set_var_text_label s$shtr_help_start[6] = 'SHTR_6'
set_var_text_label s$shtr_help_start[7] = 'SHTR_7'
set_var_text_label s$shtr_help_start[8] = 'SHTR_8'
set_var_text_label s$shtr_help_start[9] = 'SHTR_9'
set_var_text_label s$shtr_help_start[10] = 'SHTR_A'
set_var_text_label s$shtr_help_start[11] = 'SHTR_B'
set_var_text_label s$shtr_help_start[12] = 'SHTR_C'
set_var_text_label s$shtr_help_start[13] = 'SHTR_D'
set_var_text_label s$shtr_help_start[14] = 'SHTR_E'
set_var_text_label s$shtr_help_start[15] = 'SHTR_F'
set_var_text_label s$shtr_help_start[16] = 'SHTR_G'
set_var_text_label s$shtr_help_start[17] = 'SHTR_H'
set_var_text_label s$shtr_help_start[18] = 'SHTR_I'
set_var_text_label s$shtr_help_start[19] = 'SHTR_J'
set_var_text_label s$shtr_help_start[20] = 'SHTR_K'
set_var_text_label s$shtr_help_start[21] = 'SHTR_L'
set_var_text_label s$shtr_help_start[22] = 'SHTR_M'
set_var_text_label s$shtr_help_start[23] = 'SHTR_N'
set_var_text_label s$shtr_help_start[24] = 'SHTR_O'
set_var_text_label s$shtr_help_start[25] = 'SHTR_P'
set_var_text_label s$shtr_help_start[26] = 'SHTR_Q'
set_var_text_label s$shtr_help_start[27] = 'SHTR_R'
set_var_text_label s$shtr_help_start[28] = 'SHTR_S'
set_var_text_label s$shtr_help_start[29] = 'SHTR_T'
set_var_text_label s$shtr_help_start[30] = 'SHTR_U'
set_var_text_label s$shtr_help_start[31] = 'SHTR_V'
set_var_text_label s$shtr_help_start[32] = 'SHTR_W'
set_var_text_label s$shtr_help_start[33] = 'SHTR_X'
set_var_text_label s$shtr_help_start[34] = 'SHTR_Y'
set_var_text_label s$shtr_help_start[35] = 'SHTR_Z'
set_var_text_label s$shtr_help_start[36] = 'SHTR_PE'
$shtr_hi_loop[0] = 176.0
$6110[0] = 96.0
$6080[0] = 224.0
$6120[0] = 96.0
$6090[0] = 272.0
$6130[0] = 96.0
$6100[0] = 464.0
$6140[0] = 96.0
$shtr_hi_loop[1] = 176.0
$6110[1] = 128.0
$6080[1] = 224.0
$6120[1] = 128.0
$6090[1] = 272.0
$6130[1] = 128.0
$6100[1] = 464.0
$6140[1] = 128.0
$shtr_hi_loop[2] = 176.0
$6110[2] = 160.0
$6080[2] = 224.0
$6120[2] = 160.0
$6090[2] = 272.0
$6130[2] = 160.0
$6100[2] = 464.0
$6140[2] = 160.0
$shtr_hi_loop[3] = 176.0
$6110[3] = 192.0
$6080[3] = 224.0
$6120[3] = 192.0
$6090[3] = 272.0
$6130[3] = 192.0
$6100[3] = 464.0
$6140[3] = 192.0
$shtr_hi_loop[4] = 176.0
$6110[4] = 224.0
$6080[4] = 224.0
$6120[4] = 224.0
$6090[4] = 272.0
$6130[4] = 224.0
$6100[4] = 464.0
$6140[4] = 224.0
$shtr_hi_loop[5] = 176.0
$6110[5] = 256.0
$6080[5] = 224.0
$6120[5] = 256.0
$6090[5] = 272.0
$6130[5] = 256.0
$6100[5] = 464.0
$6140[5] = 256.0
$shtr_hi_loop[6] = 176.0
$6110[6] = 288.0
$6080[6] = 224.0
$6120[6] = 288.0
$6090[6] = 272.0
$6130[6] = 288.0
$6100[6] = 464.0
$6140[6] = 288.0
$shtr_hi_loop[7] = 176.0
$6110[7] = 320.0
$6080[7] = 224.0
$6120[7] = 320.0
$6090[7] = 272.0
$6130[7] = 320.0
$6100[7] = 464.0
$6140[7] = 320.0
$shtr_hi_loop[8] = 176.0
$6110[8] = 352.0
$6080[8] = 224.0
$6120[8] = 352.0
$6090[8] = 272.0
$6130[8] = 352.0
$6100[8] = 464.0
$6140[8] = 352.0
$shtr_hi_loop[9] = 176.0
$6110[9] = 384.0
$6080[9] = 224.0
$6120[9] = 384.0
$6090[9] = 272.0
$6130[9] = 384.0
$6100[9] = 464.0
$6140[9] = 384.0
if 
  $shtr_write == 0
goto_if_false @SHTR_17557
set_var_text_label s$shtr_hi_1[0] = s$shtr_help_start[12]
set_var_text_label s$shtr_hi_2[0] = s$shtr_help_start[36]
set_var_text_label s$shtr_hi_3[0] = s$shtr_help_start[36]
$shtr_hi_l[0] = 10
$shtr_hi_s[0] = 1000
$shtr_played_before = 1
gosub @SHTR_13207
$shtr_hi_l[1] = 9
$shtr_hi_s[1] = 900
$shtr_played_before = 2
gosub @SHTR_13207
$shtr_hi_l[2] = 8
$shtr_hi_s[2] = 800
$shtr_played_before = 3
gosub @SHTR_13207
$shtr_hi_l[3] = 7
$shtr_hi_s[3] = 700
$shtr_played_before = 4
gosub @SHTR_13207
$shtr_hi_l[4] = 6
$shtr_hi_s[4] = 600
$shtr_played_before = 5
gosub @SHTR_13207
$shtr_hi_l[5] = 5
$shtr_hi_s[5] = 500
$shtr_played_before = 6
gosub @SHTR_13207
$shtr_hi_l[6] = 4
$shtr_hi_s[6] = 400
$shtr_played_before = 7
gosub @SHTR_13207
$shtr_hi_l[7] = 3
$shtr_hi_s[7] = 300
$shtr_played_before = 8
gosub @SHTR_13207
$shtr_hi_l[8] = 2
$shtr_hi_s[8] = 200
$shtr_played_before = 9
gosub @SHTR_13207
$shtr_hi_l[9] = 1
$shtr_hi_s[9] = 100
$shtr_write = 1

:SHTR_17557
set_var_int_to_var_int $shtr_score = $shtr_hi_s[0]
return 

:SHTR_17567
$shtr_plyr_col_y = 1
$shtr_button1 = 1
$shtr_time_diff_hit = 1
$shtr_lives = 0
$shtr_front_end = 2
$shtr_hi_score = 0
$shtr_layer_scroll_speed_bottom = 15.0
$shtr_tempF = 80.0
$shtr_plyr_x = 224.0
$5852 = 8.0
$shtr_projectile_size = 10.0
$shtr_button_pressed = 1.0
$shtr_range_start = 3.0
$unk_5957 = 0
$unk_5961 = 7.0
$5988 = 0
$shtr_amplitude = 0
$shtr_pickup_counter = 1
$shtr_pickup_collected = 31
$shtr_pickup_y = 250
$shtr_speed_pickup = 0
$shtr_auto_pickup = 0
$shtr_pickup_current = 0
$shtr_level = 0
$shtr_press = 0
$shtr_random[0] = 660.0
$shtr_random[1] = 660.0
$shtr_random[2] = 660.0
$shtr_random[3] = 660.0
$shtr_player_alive = 0
$shtr_sprite = 0
$shtr_start_time = 0
$shtr_end_time = 0
$5644 = 0
$shtr_start_time_hit = 0
$shtr_end_time_hit = 0
$shtr_respawn_time = 1
$shtr_current_projectile_fired[1] = 0
$shtr_current_projectile_fired[2] = 0
$shtr_current_projectile_fired[3] = 0
$shtr_current_projectile_fired[4] = 0
$shtr_current_projectile_fired[5] = 0
$shtr_current_projectile_fired[6] = 0
$shtr_current_projectile_fired[7] = 0
$shtr_current_projectile_fired[8] = 0
$shtr_projectile_col_y[1] = 0
$shtr_projectile_col_y[2] = 0
$shtr_projectile_col_y[3] = 0
$shtr_projectile_col_y[4] = 0
$shtr_projectile_col_y[5] = 0
$shtr_projectile_col_y[6] = 0
$shtr_projectile_col_y[7] = 0
$shtr_projectile_col_y[8] = 0
$5788[1] = 0
$5788[2] = 0
$5788[3] = 0
$5788[4] = 0
$5788[5] = 0
$5788[6] = 0
$5788[7] = 0
$5788[8] = 0
$shtr_current_enemy[0] = 0
$shtr_current_enemy[1] = 0
$shtr_current_enemy[2] = 0
$shtr_current_enemy[3] = 0
$shtr_current_enemy[4] = 0
$shtr_current_enemy[5] = 0
$shtr_current_enemy[6] = 0
$shtr_current_enemy[7] = 0
$5980[0] = 0
$5980[1] = 0
$5980[2] = 0
$5980[3] = 0
$5980[4] = 0
$5980[5] = 0
$5980[6] = 0
$5980[7] = 0
$shtr_range_end = 0
$5875 = 0
$shtr_reload_diff = 32.0
$shtr_enemy_col_x = 32.0
$5722 = 8.0
$shtr_projectile_col_x = 8.0
$shtr_plyr_y = 32.0
$shtr_plyr_col_x = 32.0
$shtr_gen_hi_y = 0.0
return 

//-------------Mission 6---------------
// Originally: Video Game: Let's Get Ready To Bumble

:GRAV
gosub @GRAV_36
if 
  has_deatharrest_been_executed 
goto_if_false @GRAV_27
gosub @GRAV_6654

:GRAV_27
gosub @GRAV_6674
terminate_this_script 

:GRAV_36
$onmission = 1
Stat.RegisterMissionGiven
script_name 'GRAV'
wait 0
Text.LoadMissionText('GRAV')
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1810)

:GRAV_78
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @GRAV_104
wait 0
goto @GRAV_78

:GRAV_104
Char.FreezePosition($scplayer, True)
Player.SetControl($player1, False)
$x, $y, $z = Char.GetCoordinates($scplayer)
World.ClearArea($x, $y, $z, 50.0, False)
Game.ShutAllCharsUp(True)
Text.UseCommands(True)
Text.SetCenter(True)
Text.SetScale(3.0, 3.0)
Txd.LoadDictionary('LD_GRAV')
Txd.LoadSprite(1, "SKY")
Txd.LoadSprite(2, "BEEA")
Txd.LoadSprite(3, "FLWRA")
Txd.LoadSprite(4, "GHOST")
Txd.LoadSprite(5, "LEAF")
Txd.LoadSprite(6, "FLWR")
Txd.LoadSprite(7, "TVCORN")
Txd.LoadSprite(8, "TVL")
Txd.LoadSprite(9, "TVR")
Txd.LoadSprite(10, "THORN")
Txd.LoadSprite(11, "BEE2")
Txd.LoadSprite(12, "BEE1")
Txd.LoadSprite(13, "HIVE")
Txd.LoadSprite(14, "TIMER")
Txd.LoadSprite(15, "BUMBLE")
Txd.LoadSprite(16, "PLAYW")
Txd.LoadSprite(17, "PLAYY")
Txd.LoadSprite(18, "HISCOREW")
Txd.LoadSprite(19, "HISCOREY")
Txd.LoadSprite(20, "EXITW")
Txd.LoadSprite(21, "EXITY")
set_var_text_label s$grav_help_start[0] = 'GRAV_0'
set_var_text_label s$grav_help_start[1] = 'GRAV_1'
set_var_text_label s$grav_help_start[2] = 'GRAV_2'
set_var_text_label s$grav_help_start[3] = 'GRAV_3'
set_var_text_label s$grav_help_start[4] = 'GRAV_4'
set_var_text_label s$grav_help_start[5] = 'GRAV_5'
set_var_text_label s$grav_help_start[6] = 'GRAV_6'
set_var_text_label s$grav_help_start[7] = 'GRAV_7'
set_var_text_label s$grav_help_start[8] = 'GRAV_8'
set_var_text_label s$grav_help_start[9] = 'GRAV_9'
set_var_text_label s$grav_help_start[10] = 'GRAV_A'
set_var_text_label s$grav_help_start[11] = 'GRAV_B'
set_var_text_label s$grav_help_start[12] = 'GRAV_C'
set_var_text_label s$grav_help_start[13] = 'GRAV_D'
set_var_text_label s$grav_help_start[14] = 'GRAV_E'
set_var_text_label s$grav_help_start[15] = 'GRAV_F'
set_var_text_label s$grav_help_start[16] = 'GRAV_G'
set_var_text_label s$grav_help_start[17] = 'GRAV_H'
set_var_text_label s$grav_help_start[18] = 'GRAV_I'
set_var_text_label s$grav_help_start[19] = 'GRAV_J'
set_var_text_label s$grav_help_start[20] = 'GRAV_K'
set_var_text_label s$grav_help_start[21] = 'GRAV_L'
set_var_text_label s$grav_help_start[22] = 'GRAV_M'
set_var_text_label s$grav_help_start[23] = 'GRAV_N'
set_var_text_label s$grav_help_start[24] = 'GRAV_O'
set_var_text_label s$grav_help_start[25] = 'GRAV_P'
set_var_text_label s$grav_help_start[26] = 'GRAV_Q'
set_var_text_label s$grav_help_start[27] = 'GRAV_R'
set_var_text_label s$grav_help_start[28] = 'GRAV_S'
set_var_text_label s$grav_help_start[29] = 'GRAV_T'
set_var_text_label s$grav_help_start[30] = 'GRAV_U'
set_var_text_label s$grav_help_start[31] = 'GRAV_V'
set_var_text_label s$grav_help_start[32] = 'GRAV_W'
set_var_text_label s$grav_help_start[33] = 'GRAV_X'
set_var_text_label s$grav_help_start[34] = 'GRAV_Y'
set_var_text_label s$grav_help_start[35] = 'GRAV_Z'
set_var_text_label s$grav_help_start[36] = 'GRAV_PE'
$grav_hi_loop[0] = 176.0
$6357[0] = 96.0
$6327[0] = 224.0
$6367[0] = 96.0
$6337[0] = 272.0
$6377[0] = 96.0
$6347[0] = 464.0
$6387[0] = 96.0
$grav_hi_loop[1] = 176.0
$6357[1] = 128.0
$6327[1] = 224.0
$6367[1] = 128.0
$6337[1] = 272.0
$6377[1] = 128.0
$6347[1] = 464.0
$6387[1] = 128.0
$grav_hi_loop[2] = 176.0
$6357[2] = 160.0
$6327[2] = 224.0
$6367[2] = 160.0
$6337[2] = 272.0
$6377[2] = 160.0
$6347[2] = 464.0
$6387[2] = 160.0
$grav_hi_loop[3] = 176.0
$6357[3] = 192.0
$6327[3] = 224.0
$6367[3] = 192.0
$6337[3] = 272.0
$6377[3] = 192.0
$6347[3] = 464.0
$6387[3] = 192.0
$grav_hi_loop[4] = 176.0
$6357[4] = 224.0
$6327[4] = 224.0
$6367[4] = 224.0
$6337[4] = 272.0
$6377[4] = 224.0
$6347[4] = 464.0
$6387[4] = 224.0
$grav_hi_loop[5] = 176.0
$6357[5] = 256.0
$6327[5] = 224.0
$6367[5] = 256.0
$6337[5] = 272.0
$6377[5] = 256.0
$6347[5] = 464.0
$6387[5] = 256.0
$grav_hi_loop[6] = 176.0
$6357[6] = 288.0
$6327[6] = 224.0
$6367[6] = 288.0
$6337[6] = 272.0
$6377[6] = 288.0
$6347[6] = 464.0
$6387[6] = 288.0
$grav_hi_loop[7] = 176.0
$6357[7] = 320.0
$6327[7] = 224.0
$6367[7] = 320.0
$6337[7] = 272.0
$6377[7] = 320.0
$6347[7] = 464.0
$6387[7] = 320.0
$grav_hi_loop[8] = 176.0
$6357[8] = 352.0
$6327[8] = 224.0
$6367[8] = 352.0
$6337[8] = 272.0
$6377[8] = 352.0
$6347[8] = 464.0
$6387[8] = 352.0
$grav_hi_loop[9] = 176.0
$6357[9] = 384.0
$6327[9] = 224.0
$6367[9] = 384.0
$6337[9] = 272.0
$6377[9] = 384.0
$6347[9] = 464.0
$6387[9] = 384.0
if 
  $grav_write == 0
goto_if_false @GRAV_2054
set_var_text_label s$grav_hi_1[0] = s$grav_help_start[12]
set_var_text_label s$grav_hi_2[0] = s$grav_help_start[36]
set_var_text_label s$grav_hi_3[0] = s$grav_help_start[36]
$grav_hi_l[0] = 10
$grav_hi_s[0] = 1000
$grav_played_before = 1
gosub @GRAV_13590
$grav_hi_l[1] = 9
$grav_hi_s[1] = 900
$grav_played_before = 2
gosub @GRAV_13590
$grav_hi_l[2] = 8
$grav_hi_s[2] = 800
$grav_played_before = 3
gosub @GRAV_13590
$grav_hi_l[3] = 7
$grav_hi_s[3] = 700
$grav_played_before = 4
gosub @GRAV_13590
$grav_hi_l[4] = 6
$grav_hi_s[4] = 600
$grav_played_before = 5
gosub @GRAV_13590
$grav_hi_l[5] = 5
$grav_hi_s[5] = 500
$grav_played_before = 6
gosub @GRAV_13590
$grav_hi_l[6] = 4
$grav_hi_s[6] = 400
$grav_played_before = 7
gosub @GRAV_13590
$grav_hi_l[7] = 3
$grav_hi_s[7] = 300
$grav_played_before = 8
gosub @GRAV_13590
$grav_hi_l[8] = 2
$grav_hi_s[8] = 200
$grav_played_before = 9
gosub @GRAV_13590
$grav_hi_l[9] = 1
$grav_hi_s[9] = 100
$grav_write = 1

:GRAV_2054
set_lvar_int_to_var_int 57@ = $grav_hi_s[0]

:GRAV_2062
$grav_ground = 1
54@ = 0
$grav_total_pickups = 0
$grav_dead_y = 1
51@ = 2
47@ = 1
43@ = 180.0
44@ = 2.0
$grav_screen_x = 3648.0
$grav_velocity_mag = 2.5
$grav_countdown_start = 120000
$grav_next_level = 0
$grav_plyr_y = 0.0
$grav_speed_x = 0.0
55@ = 0
56@ = 0
$grav_countdown_diff = Clock.GetGameTimer()
$nGameState = 0

:GRAV_2207
wait 0
Hud.DrawSprite(1, 128.0, 128.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 128.0, 384.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 384.0, 128.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 384.0, 384.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 640.0, 128.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 640.0, 384.0, 256.0, 256.0, 150, 150, 150, 255)
Camera.DoFade(0, Fade.In)
34@, 35@, 36@, 37@ = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)

:GRAV_2449
if 
  58@ == 1
goto_if_false @GRAV_2504
if and
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  35@ == 0
goto_if_false @GRAV_2504
58@ = 0

:GRAV_2504
if 
  $grav_dead_y == 1
goto_if_false @GRAV_2742
Hud.DrawSprite(15, 320.0, 196.0, 256.0, 128.0, 150, 150, 150, 255)
Hud.DrawSprite(17, 320.0, 312.0, 64.0, 32.0, 150, 150, 150, 255)
Hud.DrawSprite(18, 320.0, 344.0, 128.0, 32.0, 150, 150, 150, 255)
Hud.DrawSprite(20, 320.0, 376.0, 64.0, 32.0, 150, 150, 150, 255)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GRAV_2742
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1074)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1076)
$grav_help_diff = Clock.GetGameTimer()
$grav_dead_y = 0
TIMERA = 0

:GRAV_2742
if 
  $grav_dead_y == 2
goto_if_false @GRAV_2960
Hud.DrawSprite(15, 320.0, 196.0, 256.0, 128.0, 150, 150, 150, 255)
Hud.DrawSprite(16, 320.0, 312.0, 64.0, 32.0, 150, 150, 150, 255)
Hud.DrawSprite(19, 320.0, 344.0, 128.0, 32.0, 150, 150, 150, 255)
Hud.DrawSprite(20, 320.0, 376.0, 64.0, 32.0, 150, 150, 150, 255)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GRAV_2960
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1074)
$grav_help_diff = Clock.GetGameTimer()
$grav_source_slot = 4
$grav_dead_y = 4

:GRAV_2960
if 
  $grav_dead_y == 3
goto_if_false @GRAV_3172
Hud.DrawSprite(15, 320.0, 196.0, 256.0, 128.0, 150, 150, 150, 255)
Hud.DrawSprite(16, 320.0, 312.0, 64.0, 32.0, 150, 150, 150, 255)
Hud.DrawSprite(18, 320.0, 344.0, 128.0, 32.0, 150, 150, 150, 255)
Hud.DrawSprite(21, 320.0, 376.0, 64.0, 32.0, 150, 150, 150, 255)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GRAV_3172
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1075)
Camera.DoFade(0, Fade.Out)
goto @GRAV_6674

:GRAV_3172
if 
  58@ == 0
goto_if_false @GRAV_3634
if 
  $grav_dead_y == 1
goto_if_false @GRAV_3338
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  -64 > 35@
goto_if_false @GRAV_3273
$grav_dead_y = 3
58@ = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1073)
goto @GRAV_2449

:GRAV_3273
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  35@ > 64
goto_if_false @GRAV_3338
$grav_dead_y = 2
58@ = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1073)
goto @GRAV_2449

:GRAV_3338
if 
  $grav_dead_y == 2
goto_if_false @GRAV_3486
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  -64 > 35@
goto_if_false @GRAV_3421
$grav_dead_y = 1
58@ = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1073)
goto @GRAV_2449

:GRAV_3421
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  35@ > 64
goto_if_false @GRAV_3486
$grav_dead_y = 3
58@ = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1073)
goto @GRAV_2449

:GRAV_3486
if 
  $grav_dead_y == 3
goto_if_false @GRAV_3634
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  -64 > 35@
goto_if_false @GRAV_3569
$grav_dead_y = 2
58@ = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1073)
goto @GRAV_2449

:GRAV_3569
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  35@ > 64
goto_if_false @GRAV_3634
$grav_dead_y = 1
58@ = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1073)
goto @GRAV_2449

:GRAV_3634
if 
  $grav_dead_y == 0
goto_if_false @GRAV_5147
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @GRAV_3674
51@ += 1

:GRAV_3674
34@, 35@, 36@, 37@ = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if 
  47@ == 1
goto_if_false @GRAV_4338
if 
  $grav_pickups_display == 12
goto_if_false @GRAV_3765
if 
  TIMERB > 10
goto_if_false @GRAV_3758
$grav_pickups_display = 11
TIMERB = 0

:GRAV_3758
goto @GRAV_3797

:GRAV_3765
if 
  TIMERB > 10
goto_if_false @GRAV_3797
$grav_pickups_display = 12
TIMERB = 0

:GRAV_3797
if 
  34@ == 0
goto_if_false @GRAV_3896
if and
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @GRAV_3896
if 
  43@ > 180.0
goto_if_false @GRAV_3867
sub_float_lvar_from_float_lvar 43@ -= 44@

:GRAV_3867
if 
  180.0 > 43@
goto_if_false @GRAV_3896
add_float_lvar_to_float_lvar 43@ += 44@

:GRAV_3896
if and
  34@ > 0
  64 > 34@
goto_if_false @GRAV_3950
if 
  195.0 > 43@
goto_if_false @GRAV_3950
add_float_lvar_to_float_lvar 43@ += 44@

:GRAV_3950
if and
  0 > 34@
  34@ > -64
goto_if_false @GRAV_4004
if 
  43@ > 165.0
goto_if_false @GRAV_4004
sub_float_lvar_from_float_lvar 43@ -= 44@

:GRAV_4004
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @GRAV_4083
if 
  210.0 > 43@
goto_if_false @GRAV_4083
43@ += 4.0
if 
  180.0 > 43@
goto_if_false @GRAV_4083
43@ += 4.0

:GRAV_4083
if and
  34@ > 63
  130 > 34@
goto_if_false @GRAV_4171
if 
  210.0 > 43@
goto_if_false @GRAV_4171
43@ += 4.0
if 
  180.0 > 43@
goto_if_false @GRAV_4171
43@ += 4.0

:GRAV_4171
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @GRAV_4250
if 
  43@ > 150.0
goto_if_false @GRAV_4250
43@ -= 4.0
if 
  43@ > 180.0
goto_if_false @GRAV_4250
43@ -= 4.0

:GRAV_4250
if and
  -63 > 34@
  34@ > -130
goto_if_false @GRAV_4338
if 
  43@ > 150.0
goto_if_false @GRAV_4338
43@ -= 4.0
if 
  43@ > 180.0
goto_if_false @GRAV_4338
43@ -= 4.0

:GRAV_4338
if 
  $grav_ground == 1
goto_if_false @GRAV_4815
$6201 = 300.0
$grav_plyr_x = 4096.0
gosub @GRAV_8687
gosub @GRAV_6864
set_var_float_to_var_float $6201 = $grav_speed_y
set_var_float_to_var_float $grav_plyr_x = $grav_dead_x
$grav_ground = 0
60@ = 1
Camera.DoFade(0, Fade.In)

:GRAV_4426
if 
  Camera.GetFadingStatus
goto_if_false @GRAV_4810
Hud.DrawSprite(1, 128.0, 128.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 128.0, 384.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 384.0, 128.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 384.0, 384.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 640.0, 128.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 640.0, 384.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
wait 0
goto @GRAV_4426

:GRAV_4810
$grav_countdown_diff = Clock.GetGameTimer()

:GRAV_4815
if 
  $grav_ground == 0
goto_if_false @GRAV_4879
gosub @GRAV_11663
if 
  47@ == 1
goto_if_false @GRAV_4872
gosub @GRAV_7680
gosub @GRAV_10386

:GRAV_4872
gosub @GRAV_10782

:GRAV_4879
if 
  47@ == 0
goto_if_false @GRAV_4943
if 
  51@ > 0
goto_if_false @GRAV_4943
TIMERA = 0
51@ -= 1
47@ = 2
gosub @GRAV_7302

:GRAV_4943
if 
  47@ == 2
goto_if_false @GRAV_5039
if 
  Math.Do2DRectanglesCollide($6201, $grav_plyr_x, 4.0, 4.0, $grav_speed_y, $grav_dead_x, 4.0, 4.0)
goto_if_false @GRAV_5039
47@ = 1
43@ = 180.0
set_var_float_to_var_float $6201 = $grav_speed_y
set_var_float_to_var_float $grav_plyr_x = $grav_dead_x

:GRAV_5039
if 
  $grav_dead_y == 0
goto_if_false @GRAV_5147
if 
  47@ == 0
goto_if_false @GRAV_5147
if 
  51@ == 0
goto_if_false @GRAV_5147
$grav_dead_y = 4
$grav_source_slot = 0
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1077)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1078)

:GRAV_5147
if 
  $grav_dead_y == 4
goto_if_false @GRAV_5216
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  $grav_source_slot <> 1
goto_if_false @GRAV_5216
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1077)
goto @GRAV_2062

:GRAV_5216
if 
  $grav_dead_y == 4
goto_if_false @GRAV_5524
if 
  $grav_source_slot == 0
goto_if_false @GRAV_5304
gosub @GRAV_6826
Text.SetScale(2.0, 4.0)
Text.Display(320.0, 196.0, 'GR_A_5')
$grav_end_time = Clock.GetGameTimer()
$grav_source_slot = 1

:GRAV_5304
if 
  $grav_source_slot == 1
goto_if_false @GRAV_5409
gosub @GRAV_6826
Text.SetScale(2.0, 4.0)
Text.Display(320.0, 196.0, 'GR_A_5')
$grav_time_diff = Clock.GetGameTimer()
set_var_int_to_var_int $grav_draw_highlight = $grav_time_diff
sub_int_var_from_int_var $grav_draw_highlight -= $grav_end_time
if 
  $grav_draw_highlight > 5000
goto_if_false @GRAV_5409
$grav_source_slot = 2

:GRAV_5409
if 
  $grav_source_slot == 2
goto_if_false @GRAV_5467
if 
  is_int_var_greater_than_int_lvar $grav_hi_s[9] > 54@
goto_if_false @GRAV_5460
$grav_source_slot = 4
goto @GRAV_5467

:GRAV_5460
gosub @GRAV_11777

:GRAV_5467
if 
  $grav_source_slot == 3
goto_if_false @GRAV_5499
gosub @GRAV_12094
gosub @GRAV_12977

:GRAV_5499
if 
  $grav_source_slot == 4
goto_if_false @GRAV_5524
gosub @GRAV_12977

:GRAV_5524
if 
  $grav_dead_y == 0
goto_if_false @GRAV_6207
gosub @GRAV_6826
Text.DisplayWithNumber(560.0, 390.0, 'VP15', 51@)
Hud.DrawSpriteWithRotation(2, 560.0, 390.0, 44.0, 44.0, 180.0, 150, 150, 150, 150)
Hud.DrawSpriteWithRotation(12, 560.0, 390.0, 36.0, 36.0, 180.0, 150, 150, 150, 150)
gosub @GRAV_6826
Text.DisplayWithNumber(90.0, 390.0, 'VP15', $grav_temp2)
Hud.DrawSpriteWithRotation(3, 90.0, 390.0, 40.0, 40.0, 180.0, 150, 150, 150, 150)
Hud.DrawSpriteWithRotation(6, 90.0, 390.0, 32.0, 32.0, 180.0, 150, 150, 150, 150)
set_var_int_to_var_int $grav_countdown_temp = $grav_fire_heading
$grav_countdown_temp /= 1000
set_var_int_to_var_int $minutes = $grav_countdown_temp
$minutes /= 60
set_var_int_to_var_int $grav_countdown = $minutes
$grav_countdown *= 60
sub_int_var_from_int_var $grav_countdown_temp -= $grav_countdown
gosub @GRAV_6826
if 
  $grav_countdown_temp > 9
goto_if_false @GRAV_5881
Text.DisplayWith2Numbers(320.0, 390.0, 'TIME', $minutes, $grav_countdown_temp)
goto @GRAV_5908

:GRAV_5881
Text.DisplayWith2Numbers(320.0, 390.0, 'TIME_0', $minutes, $grav_countdown_temp)

:GRAV_5908
Hud.DrawSpriteWithRotation(14, 320.0, 390.0, 40.0, 40.0, 180.0, 150, 150, 150, 150)
gosub @GRAV_6826
Text.DisplayWithNumber(320.0, 70.0, 'VP15', 54@)
Hud.DrawSpriteWithRotation(13, 320.0, 70.0, 40.0, 40.0, 180.0, 150, 150, 150, 150)
$grav_countdown_secs = Clock.GetGameTimer()
set_var_int_to_var_int $grav_countdown_end = $grav_countdown_secs
sub_int_var_from_int_var $grav_countdown_end -= $grav_countdown_diff
if 
  is_int_var_greater_than_int_var $grav_countdown_start > $grav_countdown_end
goto_if_false @GRAV_6084
set_var_int_to_var_int $grav_fire_heading = $grav_countdown_start
sub_int_var_from_int_var $grav_fire_heading -= $grav_countdown_end
goto @GRAV_6207

:GRAV_6084
if 
  47@ == 1
goto_if_false @GRAV_6207
if 
  51@ > 0
goto_if_false @GRAV_6146
51@ -= 1
$grav_ground = 1
$grav_countdown_diff = Clock.GetGameTimer()
goto @GRAV_6207

:GRAV_6146
47@ = 0
$grav_dead_y = 4
$grav_source_slot = 0
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1077)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1078)

:GRAV_6207
Hud.DrawSprite(7, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
if 
  $grav_dead_y == 0
goto_if_false @GRAV_6490
$grav_countdown_max = Clock.GetGameTimer()
set_var_int_to_var_int $grav_help_end = $grav_countdown_max
sub_int_var_from_int_var $grav_help_end -= $grav_help_diff
if 
  10000 > $grav_help_end
goto_if_false @GRAV_6490
Hud.DrawWindow(35.0, 15.0, 240.0, 80.0, 'DUMMY', 0)
Text.SetCenter(False)
Text.SetWrapX(240.0)
Text.SetFont(Font.Subtitles)
Text.SetScale(0.5, 1.8)
Text.Display(40.0, 20.0, 'GR_NAV')

:GRAV_6490
if 
  $grav_dead_y == 4
goto_if_false @GRAV_6647
if 
  $grav_source_slot == 4
goto_if_false @GRAV_6647
$grav_countdown_max = Clock.GetGameTimer()
set_var_int_to_var_int $grav_help_end = $grav_countdown_max
sub_int_var_from_int_var $grav_help_end -= $grav_help_diff
if 
  10000 > $grav_help_end
goto_if_false @GRAV_6647
Hud.DrawWindow(35.0, 15.0, 200.0, 45.0, 'DUMMY', 0)
Text.SetCenter(False)
Text.SetWrapX(230.0)
Text.SetFont(Font.Subtitles)
Text.SetScale(0.5, 1.8)
Text.Display(40.0, 20.0, 'GR_BCK')

:GRAV_6647
goto @GRAV_2207

:GRAV_6654
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 
return 

:GRAV_6674
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Text.ClearThisPrint('BUSY')
Game.ShutAllCharsUp(False)
Hud.ClearCounter($grav_fire_heading)
if 
  Player.IsPlaying($player1)
goto_if_false @GRAV_6809
if 
  Char.LocateOnFoot3D($scplayer, $gravX, $gravY, $gravZ, 2.0, 2.0, 2.0, False)
goto_if_false @GRAV_6788
set_var_float_to_var_float $y = $gravY
$y += 2.0
Char.SetCoordinates($scplayer, $gravX, $y, $gravZ)

:GRAV_6788
Char.FreezePosition($scplayer, False)
Player.SetControl($player1, True)
Camera.DoFade(1500, Fade.In)

:GRAV_6809
Audio.SetMusicDoesFade(True)
Txd.Remove
$onmission = 0
Mission.Finish
return 

:GRAV_6826
Text.SetColor(168, 142, 51, 255)
Text.SetScale(1.0, 2.0)
Text.SetCenter(True)
Text.SetWrapX(640.0)
return 

:GRAV_6864
674@ = 99999.9
678@ = 0

:GRAV_6881
if and
  51 > 678@
  471@(678@,101f) <> 999.0
  0.1 <= 471@(678@,101f)
goto_if_false @GRAV_7300
set_var_float_to_var_float $grav_temp_x = $grav_plyr_x
if 
  $grav_temp_x > 3000.0
goto_if_false @GRAV_7063
if 
  4100.0 > $grav_temp_x
goto_if_false @GRAV_7063
673@ = Math.GetDistanceBetweenCoords2D($6201, $grav_plyr_x, 471@(678@,101f), 572@(678@,101f))
if 
  is_float_lvar_greater_than_float_lvar 674@ > 673@
goto_if_false @GRAV_7063
set_lvar_float_to_lvar_float 674@ = 673@
set_var_float_to_lvar_float $grav_speed_y = 471@(678@,101f)
set_var_float_to_lvar_float $grav_dead_x = 572@(678@,101f)
$grav_dead_x -= 32.0

:GRAV_7063
678@ += 1
Text.SetColor(168, 142, 51, 255)
Text.SetScale(1.0, 2.0)
Text.SetCenter(True)
Text.SetWrapX(640.0)
set_lvar_int_to_var_int 59@ = $grav_total_pickups
59@ += 1
Text.DisplayWithNumber(320.0, 224.0, 'GR_LVL', 59@)
Hud.DrawSprite(7, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
wait 0
goto @GRAV_6881

:GRAV_7300
return 

:GRAV_7302
674@ = 99999.9
673@ = 0.0
678@ = 0

:GRAV_7329
if and
  51 > 678@
  471@(678@,101f) <> 999.0
  0.1 <= 471@(678@,101f)
goto_if_false @GRAV_7526
set_var_float_to_lvar_float $grav_temp_x = 572@(678@,101f)
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if and
  $grav_temp_x > -200.0
  600.0 > $grav_temp_x
goto_if_false @GRAV_7512
673@ = Math.GetDistanceBetweenCoords2D($6201, $grav_plyr_x, 471@(678@,101f), 572@(678@,101f))
if 
  is_float_lvar_greater_than_float_lvar 674@ > 673@
goto_if_false @GRAV_7512
set_lvar_float_to_lvar_float 674@ = 673@
set_var_float_to_lvar_float $grav_speed_y = 471@(678@,101f)
set_var_float_to_lvar_float $grav_dead_x = 572@(678@,101f)
$grav_dead_x -= 32.0

:GRAV_7512
678@ += 1
goto @GRAV_7329

:GRAV_7526
set_var_float_to_var_float $grav_buzz = $grav_speed_y
sub_float_var_from_float_var $grav_buzz -= $6201
set_var_float_to_var_float $grav_velocity_x = $grav_dead_x
sub_float_var_from_float_var $grav_velocity_x -= $grav_plyr_x
set_var_float_to_var_float $grav_velocity_y = $grav_buzz
mult_float_var_by_float_var $grav_velocity_y *= $grav_buzz
set_var_float_to_var_float $grav_temp_1 = $grav_velocity_x
mult_float_var_by_float_var $grav_temp_1 *= $grav_velocity_x
set_var_float_to_var_float $grav_temp_2 = $grav_velocity_y
add_float_var_to_float_var $grav_temp_2 += $grav_temp_1
$grav_velocity_mag_sqr = Math.Sqrt($grav_temp_2)
set_var_float_to_var_float $grav_velocity_y = $grav_buzz
div_float_var_by_float_var $grav_velocity_y /= $grav_velocity_mag_sqr
set_var_float_to_var_float $grav_temp_1 = $grav_velocity_x
div_float_var_by_float_var $grav_temp_1 /= $grav_velocity_mag_sqr
set_var_float_to_var_float $grav_plyr_y = $grav_velocity_mag
mult_float_var_by_float_var $grav_plyr_y *= $grav_velocity_y
set_var_float_to_var_float $grav_speed_x = $grav_velocity_mag
mult_float_var_by_float_var $grav_speed_x *= $grav_temp_1
return 

:GRAV_7680
678@ = 0

:GRAV_7687
if and
  51 > 678@
  269@(678@,101f) <> 999.0
goto_if_false @GRAV_8052
set_var_float_to_lvar_float $grav_temp_x = 572@(678@,101f)
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if and
  $grav_temp_x > -64.0
  480.0 > $grav_temp_x
goto_if_false @GRAV_8038
if 
  Math.Do2DRectanglesCollide($6201, $grav_plyr_x, 32.0, 44.0, 269@(678@,101f), 370@(678@,101f), 32.0, 32.0)
goto_if_false @GRAV_8038
269@(678@,101f) = 999.0
if 
  $grav_temp2 <> 1
goto_if_false @GRAV_7903
54@ += 10
$grav_next_level += 1
$grav_temp2 -= 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1071)
goto @GRAV_8024

:GRAV_7903
add_int_var_to_int_lvar 54@ += $grav_next_level
$grav_fire_heading /= 100
add_int_var_to_int_lvar 54@ += $grav_fire_heading
$grav_next_level = 0
$grav_total_pickups += 1
set_lvar_int_to_lvar_int 55@ = 54@
sub_int_lvar_from_int_lvar 55@ -= 56@
set_lvar_int_to_lvar_int 56@ = 55@
if 
  55@ > 665
goto_if_false @GRAV_8010
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1074)
51@ += 1

:GRAV_8010
$grav_ground = 1
TIMERA = 0

:GRAV_8024
269@(678@,101f) = -999.0

:GRAV_8038
678@ += 1
goto @GRAV_7687

:GRAV_8052
678@ = 0

:GRAV_8059
if and
  51 > 678@
  471@(678@,101f) <> 999.0
goto_if_false @GRAV_8487
set_var_float_to_lvar_float $grav_temp_x = 572@(678@,101f)
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if and
  $grav_temp_x > -64.0
  480.0 > $grav_temp_x
goto_if_false @GRAV_8473
if 
  Math.Do2DRectanglesCollide($6201, $grav_plyr_x, 32.0, 44.0, 471@(678@,101f), 572@(678@,101f), 96.0, 32.0)
goto_if_false @GRAV_8466
set_var_float_to_var_float $grav_temp_x = $grav_plyr_x
$grav_temp_x += 12.0
if 
  is_float_lvar_greater_than_float_var 572@(678@,101f) > $grav_temp_x
goto_if_false @GRAV_8409
if 
  $nGameState == 0
goto_if_false @GRAV_8402
if or
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  0.0 > $grav_speed_x
goto_if_false @GRAV_8402
set_var_float_to_lvar_float $grav_screen_y = 471@(678@,101f)
$grav_screen_y -= 52.0
if 
  not is_float_var_greater_than_float_var $grav_screen_y > $6201
goto_if_false @GRAV_8402
set_var_float_to_lvar_float $grav_screen_y = 471@(678@,101f)
$grav_screen_y += 52.0
if 
  not is_float_var_greater_than_float_var $6201 > $grav_screen_y
goto_if_false @GRAV_8402
$grav_speed_x *= -0.1
set_var_float_to_lvar_float $grav_plyr_x = 572@(678@,101f)
$grav_plyr_x -= 38.0
$nGameState = 1

:GRAV_8402
goto @GRAV_8459

:GRAV_8409
$grav_plyr_y *= -0.5
$grav_speed_x *= -0.5
$grav_plyr_x += 4.0
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1072)

:GRAV_8459
goto @GRAV_8473

:GRAV_8466
$nGameState = 0

:GRAV_8473
678@ += 1
goto @GRAV_8059

:GRAV_8487
678@ = 0

:GRAV_8494
if and
  100 > 678@
  67@(678@,101f) <> 999.0
goto_if_false @GRAV_8685
set_var_float_to_lvar_float $grav_temp_x = 168@(678@,101f)
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if and
  $grav_temp_x > -64.0
  480.0 > $grav_temp_x
goto_if_false @GRAV_8671
if 
  Math.Do2DRectanglesCollide($6201, $grav_plyr_x, 32.0, 44.0, 67@(678@,101f), 168@(678@,101f), 128.0, 40.0)
goto_if_false @GRAV_8671
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1070)
60@ = 0
47@ = 0
TIMERA = 0

:GRAV_8671
678@ += 1
goto @GRAV_8494

:GRAV_8685
return 

:GRAV_8687
Camera.DoFade(0, Fade.Out)

:GRAV_8693
if 
  Camera.GetFadingStatus
goto_if_false @GRAV_9077
Hud.DrawSprite(1, 128.0, 128.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 128.0, 384.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 384.0, 128.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 384.0, 384.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 640.0, 128.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 640.0, 384.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
wait 0
goto @GRAV_8693

:GRAV_9077
678@ = 0
set_var_int_to_var_int $grav_level = $grav_total_pickups
$grav_level += 1
$grav_level *= 10
if 
  $grav_level > 50
goto_if_false @GRAV_9131
$grav_level = 50

:GRAV_9131
if 
  is_int_var_greater_than_int_lvar $grav_level > 678@
goto_if_false @GRAV_9452
$grav_press = Math.RandomIntInRange(2, 7)
$grav_press *= 80
cset_var_float_to_var_int $grav_screen_y =# $grav_press
$grav_temp1 = Math.RandomIntInRange(0, 30)
$grav_temp1 *= 128
set_lvar_float_to_var_float 67@(678@,101f) = $grav_screen_y
cset_lvar_float_to_var_int 168@(678@,101f) =# $grav_temp1
678@ += 1
Text.SetColor(168, 142, 51, 255)
Text.SetScale(1.0, 2.0)
Text.SetCenter(True)
Text.SetWrapX(640.0)
set_lvar_int_to_var_int 59@ = $grav_total_pickups
59@ += 1
Text.DisplayWithNumber(320.0, 224.0, 'GR_LVL', 59@)
Hud.DrawSprite(7, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
wait 0
goto @GRAV_9131

:GRAV_9452
67@(678@,101f) = 999.0
168@(678@,101f) = 999.0
678@ = 0

:GRAV_9487
if 
  is_int_var_greater_than_int_lvar $grav_level > 678@
goto_if_false @GRAV_9856
$grav_press = Math.RandomIntInRange(2, 7)
$grav_press *= 80
cset_var_float_to_var_int $grav_screen_y =# $grav_press
$grav_temp1 = Math.RandomIntInRange(0, 32)
$grav_temp1 *= 128
$grav_temp1 += 64
set_lvar_float_to_var_float 269@(678@,101f) = $grav_screen_y
cset_lvar_float_to_var_int 370@(678@,101f) =# $grav_temp1
$grav_screen_y -= 48.0
$grav_temp1 += 32
set_lvar_float_to_var_float 471@(678@,101f) = $grav_screen_y
cset_lvar_float_to_var_int 572@(678@,101f) =# $grav_temp1
678@ += 1
Text.SetColor(168, 142, 51, 255)
Text.SetScale(1.0, 2.0)
Text.SetCenter(True)
Text.SetWrapX(640.0)
set_lvar_int_to_var_int 59@ = $grav_total_pickups
59@ += 1
Text.DisplayWithNumber(320.0, 224.0, 'GR_LVL', 59@)
Hud.DrawSprite(7, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(7, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
wait 0
goto @GRAV_9487

:GRAV_9856
269@(678@,101f) = 999.0
370@(678@,101f) = 999.0
471@(678@,101f) = 999.0
572@(678@,101f) = 999.0
set_var_int_to_var_int $grav_pickups = $grav_level
set_var_int_to_var_int $grav_temp2 = $grav_pickups
set_lvar_int_to_var_int 678@ = $grav_level
67@(678@,101f) = 52.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 164.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 268.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 372.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 476.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 580.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 52.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 164.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 268.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 372.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 476.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 580.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 999.0
168@(678@,101f) = 999.0
return 

:GRAV_10386
if 
  47@ == 1
goto_if_false @GRAV_10780
if 
  50.0 > $6201
goto_if_false @GRAV_10435
$6201 = 50.0

:GRAV_10435
if 
  $6201 > 590.0
goto_if_false @GRAV_10466
$6201 = 590.0

:GRAV_10466
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GRAV_10549
if 
  $nGameState == 1
goto_if_false @GRAV_10518
$nGameState = 0
$grav_speed_x += 4.0

:GRAV_10518
if 
  20.0 > $grav_speed_x
goto_if_false @GRAV_10549
$grav_speed_x += 0.4

:GRAV_10549
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @GRAV_10615
if 
  $nGameState == 0
goto_if_false @GRAV_10615
if 
  $grav_speed_x > 0.0
goto_if_false @GRAV_10615
$grav_speed_x -= 0.2

:GRAV_10615
set_var_float_to_var_float $grav_screen_y = $grav_plyr_y
$grav_screen_y /= 4.0
sub_float_var_from_float_var $grav_plyr_y -= $grav_screen_y
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @GRAV_10665
34@ = -127

:GRAV_10665
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @GRAV_10689
34@ = 127

:GRAV_10689
cset_var_float_to_lvar_int $grav_screen_y =# 34@
$grav_screen_y /= 128.0
add_float_var_to_float_var $grav_plyr_y += $grav_screen_y
add_float_var_to_float_var $6201 += $grav_plyr_y
if 
  $nGameState == 0
goto_if_false @GRAV_10772
if 
  $grav_speed_x > -20.0
goto_if_false @GRAV_10772
$grav_speed_x -= 0.2

:GRAV_10772
sub_float_var_from_float_var $grav_plyr_x -= $grav_speed_x

:GRAV_10780
return 

:GRAV_10782
Hud.DrawSprite(1, 128.0, 128.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 128.0, 384.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 384.0, 128.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 384.0, 384.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 640.0, 128.0, 256.0, 256.0, 150, 150, 150, 255)
Hud.DrawSprite(1, 640.0, 384.0, 256.0, 256.0, 150, 150, 150, 255)
678@ = 0

:GRAV_11005
if and
  100 > 678@
  67@(678@,101f) <> 999.0
goto_if_false @GRAV_11138
set_var_float_to_lvar_float $grav_temp_x = 168@(678@,101f)
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if and
  $grav_temp_x > -64.0
  480.0 > $grav_temp_x
goto_if_false @GRAV_11124
Hud.DrawSprite(10, 67@(678@,101f), $grav_temp_x, 128.0, 64.0, 150, 150, 150, 255)

:GRAV_11124
678@ += 1
goto @GRAV_11005

:GRAV_11138
678@ = 0

:GRAV_11145
if and
  100 > 678@
  269@(678@,101f) <> 999.0
goto_if_false @GRAV_11278
set_var_float_to_lvar_float $grav_temp_x = 370@(678@,101f)
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if and
  $grav_temp_x > -64.0
  480.0 > $grav_temp_x
goto_if_false @GRAV_11264
Hud.DrawSprite(6, 269@(678@,101f), $grav_temp_x, 32.0, 32.0, 150, 150, 150, 255)

:GRAV_11264
678@ += 1
goto @GRAV_11145

:GRAV_11278
678@ = 0

:GRAV_11285
if and
  100 > 678@
  471@(678@,101f) <> 999.0
goto_if_false @GRAV_11418
set_var_float_to_lvar_float $grav_temp_x = 572@(678@,101f)
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if and
  $grav_temp_x > -64.0
  480.0 > $grav_temp_x
goto_if_false @GRAV_11404
Hud.DrawSprite(5, 471@(678@,101f), $grav_temp_x, 128.0, 32.0, 150, 150, 150, 255)

:GRAV_11404
678@ += 1
goto @GRAV_11285

:GRAV_11418
set_var_float_to_var_float $grav_screen_y = $6201
sub_float_var_from_float_var $grav_screen_y -= $6437
set_var_float_to_var_float $grav_temp_x = $grav_plyr_x
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if 
  47@ == 1
goto_if_false @GRAV_11590
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GRAV_11527
Hud.DrawSpriteWithRotation(12, $grav_screen_y, $grav_temp_x, 48.0, 48.0, 43@, 150, 150, 150, 255)
goto @GRAV_11583

:GRAV_11527
Hud.DrawSpriteWithRotation($grav_pickups_display, $grav_screen_y, $grav_temp_x, 48.0, 48.0, 43@, 150, 150, 150, 255)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1167)

:GRAV_11583
goto @GRAV_11661

:GRAV_11590
if 
  47@ == 2
goto_if_false @GRAV_11661
Hud.DrawSpriteWithRotation(4, $grav_screen_y, $grav_temp_x, 48.0, 48.0, 180.0, 150, 150, 150, 255)
add_timed_float_var_to_float_var $6201 +=@ $grav_plyr_y
add_timed_float_var_to_float_var $grav_plyr_x +=@ $grav_speed_x

:GRAV_11661
return 

:GRAV_11663
set_var_float_to_var_float $grav_temp_x = $grav_plyr_x
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
if 
  200.0 > $grav_temp_x
goto_if_false @GRAV_11726
$grav_temp_y = 200.0
sub_float_var_from_float_var $grav_temp_y -= $grav_temp_x
sub_float_var_from_float_var $grav_screen_x -= $grav_temp_y

:GRAV_11726
if 
  $grav_temp_x > 300.0
goto_if_false @GRAV_11773
set_var_float_to_var_float $grav_temp_y = $grav_temp_x
$grav_temp_y -= 300.0
add_float_var_to_float_var $grav_screen_x += $grav_temp_y

:GRAV_11773
return 
return 

:GRAV_11777
$6397 = 9
$grav_ranking = 0
$grav_score_update = 1

:GRAV_11798
if and
  $6397 >= 0
  $grav_score_update == 1
goto_if_false @GRAV_11895
if 
  is_int_lvar_greater_than_int_var 54@ > $grav_hi_s($6397,10i)
goto_if_false @GRAV_11881
$6397 -= 1
$grav_ranking = 1
$grav_source_slot = 3
$grav_temp = 1
goto @GRAV_11888

:GRAV_11881
$grav_score_update = 0

:GRAV_11888
goto @GRAV_11798

:GRAV_11895
if 
  $grav_ranking == 1
goto_if_false @GRAV_12092
$6397 += 1
$grav_score_check = 9
$grav_destination_slot = 8

:GRAV_11934
if 
  is_int_var_greater_or_equal_to_int_var $grav_destination_slot >= $6397
goto_if_false @GRAV_12054
set_var_text_label $grav_hi_1($grav_score_check,10s) = $grav_hi_1($grav_destination_slot,10s)
set_var_text_label $grav_hi_2($grav_score_check,10s) = $grav_hi_2($grav_destination_slot,10s)
set_var_text_label $grav_hi_3($grav_score_check,10s) = $grav_hi_3($grav_destination_slot,10s)
set_var_int_to_var_int $grav_hi_l($grav_score_check,10i) = $grav_hi_l($grav_destination_slot,10i)
set_var_int_to_var_int $grav_hi_s($grav_score_check,10i) = $grav_hi_s($grav_destination_slot,10i)
$grav_score_check -= 1
$grav_destination_slot -= 1
goto @GRAV_11934

:GRAV_12054
set_var_int_to_lvar_int $grav_hi_s($6397,10i) = 54@
set_var_int_to_var_int $grav_hi_l($6397,10i) = $grav_total_pickups
$grav_on_table = 0
$6309 = 10

:GRAV_12092
return 

:GRAV_12094
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if and
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GRAV_12183
if and
  $LStickY == 0
  $LStickX == 0
goto_if_false @GRAV_12183
$grav_chars = 0

:GRAV_12183
if 
  $grav_on_table == 0
goto_if_false @GRAV_12463
set_var_text_label $grav_hi_1($6397,10s) = $grav_help_start($6309,37s)
set_var_text_label $grav_hi_2($6397,10s) = s$grav_help_start[10]
set_var_text_label $grav_hi_3($6397,10s) = s$grav_help_start[10]
if 
  $grav_chars == 0
goto_if_false @GRAV_12463
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
  $LStickX > 100
  -100 > $LStickY
goto_if_false @GRAV_12342
if 
  36 > $6309
goto_if_false @GRAV_12328
$6309 += 1
goto @GRAV_12335

:GRAV_12328
$6309 = 0

:GRAV_12335
$grav_chars = 1

:GRAV_12342
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  -100 > $LStickX
  $LStickY > 100
goto_if_false @GRAV_12425
if 
  $6309 > 0
goto_if_false @GRAV_12411
$6309 -= 1
goto @GRAV_12418

:GRAV_12411
$6309 = 36

:GRAV_12418
$grav_chars = 1

:GRAV_12425
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GRAV_12463
$6309 = 10
$grav_on_table = 1
$grav_chars = 1

:GRAV_12463
if 
  $grav_on_table == 1
goto_if_false @GRAV_12719
set_var_text_label $grav_hi_2($6397,10s) = $grav_help_start($6309,37s)
if 
  $grav_chars == 0
goto_if_false @GRAV_12719
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
  $LStickX > 100
  -100 > $LStickY
goto_if_false @GRAV_12598
if 
  36 > $6309
goto_if_false @GRAV_12584
$6309 += 1
goto @GRAV_12591

:GRAV_12584
$6309 = 0

:GRAV_12591
$grav_chars = 1

:GRAV_12598
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  -100 > $LStickX
  $LStickY > 100
goto_if_false @GRAV_12681
if 
  $6309 > 0
goto_if_false @GRAV_12667
$6309 -= 1
goto @GRAV_12674

:GRAV_12667
$6309 = 36

:GRAV_12674
$grav_chars = 1

:GRAV_12681
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GRAV_12719
$6309 = 10
$grav_on_table = 2
$grav_chars = 1

:GRAV_12719
if 
  $grav_on_table == 2
goto_if_false @GRAV_12975
set_var_text_label $grav_hi_3($6397,10s) = $grav_help_start($6309,37s)
if 
  $grav_chars == 0
goto_if_false @GRAV_12975
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
  $LStickX > 100
  -100 > $LStickY
goto_if_false @GRAV_12854
if 
  36 > $6309
goto_if_false @GRAV_12840
$6309 += 1
goto @GRAV_12847

:GRAV_12840
$6309 = 0

:GRAV_12847
$grav_chars = 1

:GRAV_12854
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  -100 > $LStickX
  $LStickY > 100
goto_if_false @GRAV_12937
if 
  $6309 > 0
goto_if_false @GRAV_12923
$6309 -= 1
goto @GRAV_12930

:GRAV_12923
$6309 = 36

:GRAV_12930
$grav_chars = 1

:GRAV_12937
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GRAV_12975
$grav_on_table = 3
$grav_chars = 1
$grav_source_slot = 4

:GRAV_12975
return 

:GRAV_12977
$grav_start_time = 0

:GRAV_12984
if 
  10 > $grav_start_time
goto_if_false @GRAV_13149
gosub @GRAV_6826
Text.Display($grav_hi_loop($grav_start_time,10f), $6357($grav_start_time,10f), $grav_hi_1($grav_start_time,10s))
gosub @GRAV_6826
Text.Display($6327($grav_start_time,10f), $6367($grav_start_time,10f), $grav_hi_2($grav_start_time,10s))
gosub @GRAV_6826
Text.Display($6337($grav_start_time,10f), $6377($grav_start_time,10f), $grav_hi_3($grav_start_time,10s))
gosub @GRAV_6826
Text.SetRightJustify(True)
Text.DisplayWithNumber($6347($grav_start_time,10f), $6387($grav_start_time,10f), 'GRAV_LV', $grav_hi_s($grav_start_time,10i))
$grav_start_time += 1
goto @GRAV_12984

:GRAV_13149
gosub @GRAV_6826
Text.Display(320.0, 64.0, 'GRAV_2F')
if and
  51@ == 0
  $grav_temp == 1
goto_if_false @GRAV_13588
if 
  $grav_on_table == 0
goto_if_false @GRAV_13269
gosub @GRAV_6826
Text.SetColor(255, 64, 0, 255)
Text.Display($grav_hi_loop($6397,10f), $6357($6397,10f), $grav_hi_1($6397,10s))
goto @GRAV_13312

:GRAV_13269
gosub @GRAV_6826
Text.SetColor(255, 128, 0, 255)
Text.Display($grav_hi_loop($6397,10f), $6357($6397,10f), $grav_hi_1($6397,10s))

:GRAV_13312
if 
  $grav_on_table == 1
goto_if_false @GRAV_13379
gosub @GRAV_6826
Text.SetColor(255, 64, 0, 255)
Text.Display($6327($6397,10f), $6367($6397,10f), $grav_hi_2($6397,10s))
goto @GRAV_13422

:GRAV_13379
gosub @GRAV_6826
Text.SetColor(255, 128, 0, 255)
Text.Display($6327($6397,10f), $6367($6397,10f), $grav_hi_2($6397,10s))

:GRAV_13422
if 
  $grav_on_table == 2
goto_if_false @GRAV_13489
gosub @GRAV_6826
Text.SetColor(255, 64, 0, 255)
Text.Display($6337($6397,10f), $6377($6397,10f), $grav_hi_3($6397,10s))
goto @GRAV_13532

:GRAV_13489
gosub @GRAV_6826
Text.SetColor(255, 128, 0, 255)
Text.Display($6337($6397,10f), $6377($6397,10f), $grav_hi_3($6397,10s))

:GRAV_13532
gosub @GRAV_6826
Text.SetRightJustify(True)
Text.SetColor(255, 128, 0, 255)
Text.DisplayWithNumber($6347($6397,10f), $6387($6397,10f), 'GRAV_LV', $grav_hi_s($6397,10i))

:GRAV_13588
return 

:GRAV_13590
$grav_current = Math.RandomIntInRange(1, 30)
if 
  $grav_current == 1
goto_if_false @GRAV_13692
if 
  $grav_used == 0
goto_if_false @GRAV_13685
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[23]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[15]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[36]
$grav_used = 1
goto @GRAV_13692

:GRAV_13685
goto @GRAV_13590

:GRAV_13692
if 
  $grav_current == 2
goto_if_false @GRAV_13785
if 
  $6409 == 0
goto_if_false @GRAV_13778
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[18]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[22]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[34]
$6409 = 1
goto @GRAV_13785

:GRAV_13778
goto @GRAV_13590

:GRAV_13785
if 
  $grav_current == 3
goto_if_false @GRAV_13878
if 
  $6410 == 0
goto_if_false @GRAV_13871
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[32]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[18]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[21]
$6410 = 1
goto @GRAV_13878

:GRAV_13871
goto @GRAV_13590

:GRAV_13878
if 
  $grav_current == 4
goto_if_false @GRAV_13971
if 
  $6411 == 0
goto_if_false @GRAV_13964
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[12]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[20]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[27]
$6411 = 1
goto @GRAV_13971

:GRAV_13964
goto @GRAV_13590

:GRAV_13971
if 
  $grav_current == 5
goto_if_false @GRAV_14064
if 
  $6412 == 0
goto_if_false @GRAV_14057
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[13]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[11]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[25]
$6412 = 1
goto @GRAV_14064

:GRAV_14057
goto @GRAV_13590

:GRAV_14064
if 
  $grav_current == 6
goto_if_false @GRAV_14157
if 
  $6413 == 0
goto_if_false @GRAV_14150
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[13]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[10]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[31]
$6413 = 1
goto @GRAV_14157

:GRAV_14150
goto @GRAV_13590

:GRAV_14157
if 
  $grav_current == 7
goto_if_false @GRAV_14250
if 
  $6414 == 0
goto_if_false @GRAV_14243
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[13]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[24]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[13]
$6414 = 1
goto @GRAV_14250

:GRAV_14243
goto @GRAV_13590

:GRAV_14250
if 
  $grav_current == 8
goto_if_false @GRAV_14343
if 
  $6415 == 0
goto_if_false @GRAV_14336
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[28]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[19]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[21]
$6415 = 1
goto @GRAV_14343

:GRAV_14336
goto @GRAV_13590

:GRAV_14343
if 
  $grav_current == 9
goto_if_false @GRAV_14436
if 
  $6416 == 0
goto_if_false @GRAV_14429
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[28]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[29]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[14]
$6416 = 1
goto @GRAV_14436

:GRAV_14429
goto @GRAV_13590

:GRAV_14436
if 
  $grav_current == 10
goto_if_false @GRAV_14529
if 
  $6417 == 0
goto_if_false @GRAV_14522
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[19]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[30]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[13]
$6417 = 1
goto @GRAV_14529

:GRAV_14522
goto @GRAV_13590

:GRAV_14529
if 
  $grav_current == 11
goto_if_false @GRAV_14622
if 
  $6418 == 0
goto_if_false @GRAV_14615
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[20]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[22]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[11]
$6418 = 1
goto @GRAV_14622

:GRAV_14615
goto @GRAV_13590

:GRAV_14622
if 
  $grav_current == 12
goto_if_false @GRAV_14715
if 
  $6419 == 0
goto_if_false @GRAV_14708
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[16]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[28]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[32]
$6419 = 1
goto @GRAV_14715

:GRAV_14708
goto @GRAV_13590

:GRAV_14715
if 
  $grav_current == 13
goto_if_false @GRAV_14808
if 
  $6420 == 0
goto_if_false @GRAV_14801
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[13]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[28]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[32]
$6420 = 1
goto @GRAV_14808

:GRAV_14801
goto @GRAV_13590

:GRAV_14808
if 
  $grav_current == 14
goto_if_false @GRAV_14901
if 
  $6421 == 0
goto_if_false @GRAV_14894
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[32]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[13]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[34]
$6421 = 1
goto @GRAV_14901

:GRAV_14894
goto @GRAV_13590

:GRAV_14901
if 
  $grav_current == 15
goto_if_false @GRAV_14994
if 
  $6422 == 0
goto_if_false @GRAV_14987
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[16]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[10]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[35]
$6422 = 1
goto @GRAV_14994

:GRAV_14987
goto @GRAV_13590

:GRAV_14994
if 
  $grav_current == 16
goto_if_false @GRAV_15087
if 
  $6423 == 0
goto_if_false @GRAV_15080
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[32]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[10]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[35]
$6423 = 1
goto @GRAV_15087

:GRAV_15080
goto @GRAV_13590

:GRAV_15087
if 
  $grav_current == 17
goto_if_false @GRAV_15180
if 
  $6424 == 0
goto_if_false @GRAV_15173
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[20]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[18]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[23]
$6424 = 1
goto @GRAV_15180

:GRAV_15173
goto @GRAV_13590

:GRAV_15180
if 
  $grav_current == 18
goto_if_false @GRAV_15273
if 
  $6425 == 0
goto_if_false @GRAV_15266
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[11]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[14]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[10]
$6425 = 1
goto @GRAV_15273

:GRAV_15266
goto @GRAV_13590

:GRAV_15273
if 
  $grav_current == 19
goto_if_false @GRAV_15366
if 
  $6426 == 0
goto_if_false @GRAV_15359
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[11]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[10]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[33]
$6426 = 1
goto @GRAV_15366

:GRAV_15359
goto @GRAV_13590

:GRAV_15366
if 
  $grav_current == 20
goto_if_false @GRAV_15459
if 
  $6427 == 0
goto_if_false @GRAV_15452
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[21]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[24]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[30]
$6427 = 1
goto @GRAV_15459

:GRAV_15452
goto @GRAV_13590

:GRAV_15459
if 
  $grav_current == 21
goto_if_false @GRAV_15552
if 
  $6428 == 0
goto_if_false @GRAV_15545
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[19]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[23]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[24]
$6428 = 1
goto @GRAV_15552

:GRAV_15545
goto @GRAV_13590

:GRAV_15552
if 
  $grav_current == 22
goto_if_false @GRAV_15645
if 
  $6429 == 0
goto_if_false @GRAV_15638
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[22]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[34]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[29]
$6429 = 1
goto @GRAV_15645

:GRAV_15638
goto @GRAV_13590

:GRAV_15645
if 
  $grav_current == 23
goto_if_false @GRAV_15738
if 
  $6430 == 0
goto_if_false @GRAV_15731
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[13]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[14]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[15]
$6430 = 1
goto @GRAV_15738

:GRAV_15731
goto @GRAV_13590

:GRAV_15738
if 
  $grav_current == 24
goto_if_false @GRAV_15831
if 
  $6431 == 0
goto_if_false @GRAV_15824
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[20]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[17]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[35]
$6431 = 1
goto @GRAV_15831

:GRAV_15824
goto @GRAV_13590

:GRAV_15831
if 
  $grav_current == 25
goto_if_false @GRAV_15924
if 
  $6432 == 0
goto_if_false @GRAV_15917
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[22]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[14]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[24]
$6432 = 1
goto @GRAV_15924

:GRAV_15917
goto @GRAV_13590

:GRAV_15924
if 
  $grav_current == 26
goto_if_false @GRAV_16017
if 
  $6433 == 0
goto_if_false @GRAV_16010
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[16]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[15]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[32]
$6433 = 1
goto @GRAV_16017

:GRAV_16010
goto @GRAV_13590

:GRAV_16017
if 
  $grav_current == 27
goto_if_false @GRAV_16110
if 
  $6434 == 0
goto_if_false @GRAV_16103
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[32]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[27]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[22]
$6434 = 1
goto @GRAV_16110

:GRAV_16103
goto @GRAV_13590

:GRAV_16110
if 
  $grav_current == 28
goto_if_false @GRAV_16203
if 
  $6435 == 0
goto_if_false @GRAV_16196
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[10]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[36]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[32]
$6435 = 1
goto @GRAV_16203

:GRAV_16196
goto @GRAV_13590

:GRAV_16203
if 
  $grav_current == 29
goto_if_false @GRAV_16296
if 
  $6436 == 0
goto_if_false @GRAV_16289
set_var_text_label $grav_hi_1($grav_played_before,10s) = s$grav_help_start[27]
set_var_text_label $grav_hi_2($grav_played_before,10s) = s$grav_help_start[18]
set_var_text_label $grav_hi_3($grav_played_before,10s) = s$grav_help_start[12]
$6436 = 1
goto @GRAV_16296

:GRAV_16289
goto @GRAV_13590

:GRAV_16296
return 

//-------------Mission 7---------------
// Originally: Video Game: Inside Track Betting

:OTB
gosub @OTB_16
gosub @OTB_13203
terminate_this_script 

:OTB_16
$onmission = 1
script_name 'OTB'
wait 0
Text.LoadMissionText('OTB')
Text.UseCommands(True)
Txd.LoadDictionary('LD_OTB2')
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1821)
Txd.LoadSprite(1, "BUTNA")
Txd.LoadSprite(2, "BUTNB")
Txd.LoadSprite(3, "BUTNC")
Txd.LoadSprite(4, "RIC1")
Txd.LoadSprite(5, "RIC2")
Txd.LoadSprite(6, "RIC3")
Txd.LoadSprite(7, "RIC4")
Txd.LoadSprite(8, "RIC5")
Txd.LoadSprite(9, "BACKBET")
Txd.LoadSprite(10, "BUTNAO")
Txd.LoadSprite(11, "BUTNBO")
34@ = 58.8281
35@ = 225.0068
36@ = 131.5202
set_lvar_float_to_lvar_float 37@ = 36@
add_float_lvar_to_float_lvar 37@ += 34@
set_lvar_float_to_lvar_float 38@ = 37@
add_float_lvar_to_float_lvar 38@ += 34@
set_lvar_float_to_lvar_float 39@ = 38@
add_float_lvar_to_float_lvar 39@ += 34@
set_lvar_float_to_lvar_float 40@ = 39@
add_float_lvar_to_float_lvar 40@ += 34@
45@ = 93.8682
46@ = 42.34
47@ = 463.313
55@ = 191.6589
set_lvar_float_to_lvar_float 48@ = 47@
add_float_lvar_to_float_lvar 48@ += 45@
set_lvar_float_to_lvar_float 56@ = 55@
set_lvar_float_to_lvar_float 49@ = 47@
set_lvar_float_to_lvar_float 57@ = 55@
add_float_lvar_to_float_lvar 57@ += 46@
set_lvar_float_to_lvar_float 50@ = 47@
add_float_lvar_to_float_lvar 50@ += 45@
set_lvar_float_to_lvar_float 58@ = 55@
add_float_lvar_to_float_lvar 58@ += 46@
set_lvar_float_to_lvar_float 51@ = 49@
set_lvar_float_to_lvar_float 59@ = 57@
add_float_lvar_to_float_lvar 59@ += 46@
set_lvar_float_to_lvar_float 52@ = 51@
add_float_lvar_to_float_lvar 52@ += 45@
set_lvar_float_to_lvar_float 60@ = 59@
set_lvar_float_to_lvar_float 53@ = 51@
set_lvar_float_to_lvar_float 61@ = 59@
add_float_lvar_to_float_lvar 61@ += 46@
set_lvar_float_to_lvar_float 54@ = 51@
add_float_lvar_to_float_lvar 54@ += 45@
set_lvar_float_to_lvar_float 62@ = 59@
add_float_lvar_to_float_lvar 62@ += 46@
63@ = 510.0702
64@ = 385.0263
65@ = 1
66@ = 0
67@ = 0
68@ = 0
69@ = 0
70@ = 1
71@ = 1
72@ = 1
73@ = 1
74@ = 1
75@ = 1
76@ = 0
77@ = 0
78@ = 0
79@ = 0
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
88@ = 0
89@ = 5
90@ = 25
91@ = 100
92@ = 250
93@ = 1000
94@ = 5000
95@ = 10000
set_lvar_text_label 97@s = 'HORS__1'
set_lvar_text_label 99@s = 'HORS__2'
set_lvar_text_label 101@s = 'HORS__3'
set_lvar_text_label 103@s = 'HORS__4'
set_lvar_text_label 105@s = 'HORS__5'
set_lvar_text_label 107@s = 'HORS__6'
set_lvar_text_label 109@s = 'HORS__7'
set_lvar_text_label 111@s = 'HORS__8'
set_lvar_text_label 113@s = 'HORS__9'
set_lvar_text_label 115@s = 'HORS_10'
set_lvar_text_label 117@s = 'HORS_11'
set_lvar_text_label 119@s = 'HORS_12'
set_lvar_text_label 121@s = 'HORS_13'
set_lvar_text_label 123@s = 'HORS_14'
set_lvar_text_label 125@s = 'HORS_15'
set_lvar_text_label 127@s = 'HORS_16'
set_lvar_text_label 129@s = 'HORS_17'
set_lvar_text_label 131@s = 'HORS_18'
set_lvar_text_label 133@s = 'HORS_19'
set_lvar_text_label 135@s = 'HORS_20'
set_lvar_text_label 137@s = 'HORS_21'
set_lvar_text_label 139@s = 'HORS_22'
set_lvar_text_label 141@s = 'HORS_23'
set_lvar_text_label 143@s = 'HORS_24'
set_lvar_text_label 145@s = 'HORS_25'
set_lvar_text_label 147@s = 'HORS_26'
set_lvar_text_label 149@s = 'HORS_27'
set_lvar_text_label 151@s = 'HORS_28'
set_lvar_text_label 153@s = 'HORS_29'
set_lvar_text_label 155@s = 'HORS_30'
set_lvar_text_label 157@s = 'HORS_31'
set_lvar_text_label 159@s = 'HORS_32'
set_lvar_text_label 161@s = 'HORS_33'
set_lvar_text_label 163@s = 'HORS_34'
set_lvar_text_label 165@s = 'HORS_35'
set_lvar_text_label 167@s = 'HORS_36'
set_lvar_text_label 169@s = 'HORS_37'
set_lvar_text_label 171@s = 'HORS_38'
set_lvar_text_label 173@s = 'HORS_39'
set_lvar_text_label 175@s = 'HORS_40'
set_lvar_text_label 177@s = 'HORS_41'
set_lvar_text_label 179@s = 'HORS_42'
set_lvar_text_label 181@s = 'HORS_43'
set_lvar_text_label 183@s = 'HORS_44'
set_lvar_text_label 185@s = 'HORS_45'
set_lvar_text_label 187@s = 'HORS_46'
set_lvar_text_label 189@s = 'HORS_47'
set_lvar_text_label 191@s = 'HORS_48'
set_lvar_text_label 193@s = 'HORS_49'
set_lvar_text_label 195@s = 'HORS_50'
set_lvar_text_label 197@s = 'HORS_51'
set_lvar_text_label 199@s = 'HORS_52'
set_lvar_text_label 201@s = 'HORS_53'
set_lvar_text_label 203@s = 'HORS_54'
set_lvar_text_label 205@s = 'HORS_55'
set_lvar_text_label 207@s = 'HORS_56'
set_lvar_text_label 209@s = 'HORS_57'
set_lvar_text_label 211@s = 'HORS_58'
set_lvar_text_label 213@s = 'HORS_59'
set_lvar_text_label 215@s = 'HORS_60'
set_lvar_text_label 217@s = 'HORS_61'
set_lvar_text_label 219@s = 'HORS_62'
set_lvar_text_label 221@s = 'HORS_63'
set_lvar_text_label 223@s = 'HORS_64'
set_lvar_text_label 225@s = 'HORS_65'
set_lvar_text_label 227@s = 'HORS_66'
set_lvar_text_label 229@s = 'HORS_67'
set_lvar_text_label 231@s = 'HORS_68'
set_lvar_text_label 233@s = 'HORS_69'
set_lvar_text_label 235@s = 'HORS_70'
set_lvar_text_label 237@s = 'HORS_71'
set_lvar_text_label 239@s = 'HORS_72'
set_lvar_text_label 241@s = 'HORS_73'
set_lvar_text_label 243@s = 'HORS_74'
set_lvar_text_label 245@s = 'HORS_75'
set_lvar_text_label 247@s = 'HORS_76'
set_lvar_text_label 249@s = 'HORS_77'
set_lvar_text_label 251@s = 'HORS_78'
set_lvar_text_label 253@s = 'HORS_79'
set_lvar_text_label 255@s = 'HORS_80'
set_lvar_text_label 257@s = 'HORS_81'
set_lvar_text_label 259@s = 'HORS_82'
set_lvar_text_label 261@s = 'HORS_83'
set_lvar_text_label 263@s = 'HORS_84'
set_lvar_text_label 265@s = 'HORS_85'
set_lvar_text_label 267@s = 'HORS_86'
set_lvar_text_label 269@s = 'HORS_87'
set_lvar_text_label 271@s = 'HORS_88'
set_lvar_text_label 273@s = 'HORS_89'
set_lvar_text_label 275@s = 'HORS_90'
set_lvar_text_label 277@s = 'HORS_91'
set_lvar_text_label 279@s = 'HORS_92'
set_lvar_text_label 281@s = 'HORS_93'
set_lvar_text_label 283@s = 'HORS_94'
set_lvar_text_label 285@s = 'HORS_95'
set_lvar_text_label 287@s = 'HORS_96'
set_lvar_text_label 289@s = 'HORS_97'
set_lvar_text_label 291@s = 'HORS_98'
set_lvar_text_label 293@s = 'HORS_99'
set_lvar_text_label 295@s = 'HORS100'
set_lvar_text_label 297@s = 'HORS101'
set_lvar_text_label 299@s = 'HORS102'
set_lvar_text_label 301@s = 'HORS103'
set_lvar_text_label 303@s = 'HORS104'
set_lvar_text_label 305@s = 'HORS105'
set_lvar_text_label 307@s = 'HORS106'
set_lvar_text_label 309@s = 'HORS107'
set_lvar_text_label 311@s = 'HORS108'
set_lvar_text_label 313@s = 'HORS109'
set_lvar_text_label 315@s = 'HORS110'
set_lvar_text_label 317@s = 'HORS111'
set_lvar_text_label 319@s = 'HORS112'
set_lvar_text_label 321@s = 'HORS113'
set_lvar_text_label 323@s = 'HORS114'
set_lvar_text_label 325@s = 'HORS115'
set_lvar_text_label 327@s = 'HORS116'
set_lvar_text_label 329@s = 'HORS117'
set_lvar_text_label 331@s = 'HORS118'
set_lvar_text_label 333@s = 'HORS119'
set_lvar_text_label 335@s = 'HORS120'
set_lvar_text_label 337@s = 'HORS121'
set_lvar_text_label 339@s = 'HORS122'
set_lvar_text_label 341@s = 'HORS123'
set_lvar_text_label 343@s = 'HORS124'
set_lvar_text_label 345@s = 'HORS125'
set_lvar_text_label 347@s = 'HORS126'
set_lvar_text_label 349@s = 'HORS127'
set_lvar_text_label 351@s = 'HORS128'
set_lvar_text_label 353@s = 'HORS129'
set_lvar_text_label 355@s = 'HORS130'
set_lvar_text_label 357@s = 'HORS131'
set_lvar_text_label 359@s = 'HORS132'
set_lvar_text_label 361@s = 'HORS133'
set_lvar_text_label 363@s = 'HORS134'
set_lvar_text_label 365@s = 'HORS135'
set_lvar_text_label 367@s = 'HORS136'
set_lvar_text_label 369@s = 'HORS137'
set_lvar_text_label 371@s = 'HORS138'
set_lvar_text_label 373@s = 'HORS139'
set_lvar_text_label 375@s = 'HORS140'
set_lvar_text_label 377@s = 'HORS141'
set_lvar_text_label 379@s = 'HORS142'
set_lvar_text_label 381@s = 'HORS143'
set_lvar_text_label 383@s = 'HORS144'
set_lvar_text_label 385@s = 'HORS145'
set_lvar_text_label 387@s = 'HORS146'
set_lvar_text_label 389@s = 'HORS147'
set_lvar_text_label 391@s = 'HORS148'
set_lvar_text_label 393@s = 'HORS149'
set_lvar_text_label 395@s = 'HORS150'
set_lvar_text_label 397@s = 'HORS151'
set_lvar_text_label 399@s = 'HORS152'
set_lvar_text_label 401@s = 'HORS153'
set_lvar_text_label 403@s = 'HORS154'
set_lvar_text_label 405@s = 'HORS155'
set_lvar_text_label 407@s = 'HORS156'
set_lvar_text_label 409@s = 'HORS157'
set_lvar_text_label 411@s = 'HORS158'
set_lvar_text_label 413@s = 'HORS159'
set_lvar_text_label 415@s = 'HORS160'
set_lvar_text_label 417@s = 'HORS161'
set_lvar_text_label 419@s = 'HORS162'
set_lvar_text_label 421@s = 'HORS163'
set_lvar_text_label 423@s = 'HORS164'
set_lvar_text_label 425@s = 'HORS165'
set_lvar_text_label 427@s = 'HORS166'
set_lvar_text_label 429@s = 'HORS167'
431@ = -1
432@ = -1
433@ = -1
434@ = -1
435@ = -1
431@ = Math.RandomIntInRange(0, 167)

:OTB_3133
if or
  is_int_lvar_equal_to_int_lvar 431@ == 432@
  432@ == -1
goto_if_false @OTB_3176
432@ = Math.RandomIntInRange(0, 167)
goto @OTB_3133

:OTB_3176
if or
  is_int_lvar_equal_to_int_lvar 431@ == 433@
  is_int_lvar_equal_to_int_lvar 432@ == 433@
  433@ == -1
goto_if_false @OTB_3227
433@ = Math.RandomIntInRange(0, 167)
goto @OTB_3176

:OTB_3227
if or
  is_int_lvar_equal_to_int_lvar 431@ == 434@
  is_int_lvar_equal_to_int_lvar 432@ == 434@
  is_int_lvar_equal_to_int_lvar 433@ == 434@
  434@ == -1
goto_if_false @OTB_3286
434@ = Math.RandomIntInRange(0, 167)
goto @OTB_3227

:OTB_3286
if or
  is_int_lvar_equal_to_int_lvar 431@ == 435@
  is_int_lvar_equal_to_int_lvar 432@ == 435@
  is_int_lvar_equal_to_int_lvar 433@ == 435@
  is_int_lvar_equal_to_int_lvar 434@ == 435@
  435@ == -1
goto_if_false @OTB_3353
435@ = Math.RandomIntInRange(0, 167)
goto @OTB_3286

:OTB_3353
438@ = 1
439@ = 1
440@ = 1
441@ = 1
442@ = 1
436@ = 0

:OTB_3395
if 
  5 > 436@
goto_if_false @OTB_3504
437@ = 0

:OTB_3420
if 
  5 > 437@
goto_if_false @OTB_3490
if 
  is_int_lvar_greater_than_int_lvar 431@(437@,5i) > 431@(436@,5i)
goto_if_false @OTB_3476
438@(436@,5i) += 1

:OTB_3476
437@ += 1
goto @OTB_3420

:OTB_3490
436@ += 1
goto @OTB_3395

:OTB_3504
436@ = 0

:OTB_3511
if 
  5 > 436@
goto_if_false @OTB_3713
if 
  438@(436@,5i) == 1
goto_if_false @OTB_3563
set_lvar_int_to_lvar_int 443@ = 431@(436@,5i)

:OTB_3563
if 
  438@(436@,5i) == 2
goto_if_false @OTB_3597
set_lvar_int_to_lvar_int 444@ = 431@(436@,5i)

:OTB_3597
if 
  438@(436@,5i) == 3
goto_if_false @OTB_3631
set_lvar_int_to_lvar_int 445@ = 431@(436@,5i)

:OTB_3631
if 
  438@(436@,5i) == 4
goto_if_false @OTB_3665
set_lvar_int_to_lvar_int 446@ = 431@(436@,5i)

:OTB_3665
if 
  438@(436@,5i) == 5
goto_if_false @OTB_3699
set_lvar_int_to_lvar_int 447@ = 431@(436@,5i)

:OTB_3699
436@ += 1
goto @OTB_3511

:OTB_3713
448@ = Math.RandomIntInRange(2, 4)
449@ = Math.RandomIntInRange(4, 6)
450@ = Math.RandomIntInRange(6, 9)
451@ = Math.RandomIntInRange(9, 11)
452@ = Math.RandomIntInRange(11, 13)
453@ = 0

:OTB_3765
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @OTB_3791
wait 0
goto @OTB_3765

:OTB_3791
Camera.DoFade(0, Fade.In)
Hud.DrawRect(320.0, 224.0, 640.0, 448.0, 0, 0, 0, 255)

:OTB_3828
wait 0
$game_timer = Clock.GetGameTimer()
Hud.DrawSprite(9, 320.0, 224.0, 640.0, 448.0, 150, 150, 150, 255)
gosub @OTB_13478
Text.SetScale(0.759, 2.8293)
Text.SetCenter(True)
Text.Display(204.407, 39.1245, 'HRACE01')
454@ = 60.1776
gosub @OTB_13478
Text.SetScale(0.527, 2.0)
455@ = Text.GetStringWidth('XSELECT')
Text.Display(454@, 395.7635, 'XSELECT')
cset_lvar_float_to_lvar_int 467@ =# 455@
add_float_lvar_to_float_lvar 454@ += 467@
gosub @OTB_13478
Text.SetScale(0.527, 2.0)
if 
  76@ == 0
goto_if_false @OTB_4072
455@ = Text.GetStringWidth('TRIEXIT')
Text.Display(454@, 395.7635, 'TRIEXIT')
goto @OTB_4105

:OTB_4072
455@ = Text.GetStringWidth('TRIBACK')
Text.Display(454@, 395.7635, 'TRIBACK')

:OTB_4105
cset_lvar_float_to_lvar_int 467@ =# 455@
add_float_lvar_to_float_lvar 454@ += 467@
gosub @OTB_13478
Text.SetScale(0.527, 2.0)
if 
  76@ == 0
goto_if_false @OTB_4184
Text.Display(454@, 395.7635, 'DPADNUD')
goto @OTB_4203

:OTB_4184
Text.Display(454@, 395.7635, 'DPADNAV')

:OTB_4203
96@ = Player.StoreScore($player1)
gosub @OTB_13478
Text.SetScale(0.4753, 2.2289)
Text.SetCenter(True)
Text.DisplayWithNumber(508.6669, 18.0933, 'YOURCSH', 96@)
456@, 457@, 458@, 459@ = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if 
  76@ == 0
goto_if_false @OTB_5062
if or
  -100 > 457@
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
goto_if_false @OTB_4476
if 
  70@ == 0
goto_if_false @OTB_4469
if 
  66@ == 1
goto_if_false @OTB_4366
66@ = 0
65@ = 1

:OTB_4366
if 
  67@ == 1
goto_if_false @OTB_4398
67@ = 0
66@ = 1

:OTB_4398
if 
  68@ == 1
goto_if_false @OTB_4430
68@ = 0
67@ = 1

:OTB_4430
if 
  69@ == 1
goto_if_false @OTB_4462
69@ = 0
68@ = 1

:OTB_4462
70@ = 1

:OTB_4469
goto @OTB_4483

:OTB_4476
70@ = 0

:OTB_4483
if or
  457@ > 100
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
goto_if_false @OTB_4667
if 
  71@ == 0
goto_if_false @OTB_4660
if 
  68@ == 1
goto_if_false @OTB_4557
68@ = 0
69@ = 1

:OTB_4557
if 
  67@ == 1
goto_if_false @OTB_4589
67@ = 0
68@ = 1

:OTB_4589
if 
  66@ == 1
goto_if_false @OTB_4621
66@ = 0
67@ = 1

:OTB_4621
if 
  65@ == 1
goto_if_false @OTB_4653
65@ = 0
66@ = 1

:OTB_4653
71@ = 1

:OTB_4660
goto @OTB_4674

:OTB_4667
71@ = 0

:OTB_4674
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @OTB_4987
if 
  74@ == 0
goto_if_false @OTB_4980
if 
  65@ == 1
goto_if_false @OTB_4755
66@ = 2
67@ = 2
68@ = 2
69@ = 2

:OTB_4755
if 
  66@ == 1
goto_if_false @OTB_4801
65@ = 2
67@ = 2
68@ = 2
69@ = 2

:OTB_4801
if 
  67@ == 1
goto_if_false @OTB_4847
65@ = 2
66@ = 2
68@ = 2
69@ = 2

:OTB_4847
if 
  68@ == 1
goto_if_false @OTB_4893
65@ = 2
66@ = 2
67@ = 2
69@ = 2

:OTB_4893
if 
  69@ == 1
goto_if_false @OTB_4939
65@ = 2
66@ = 2
67@ = 2
68@ = 2

:OTB_4939
74@ = 1
78@ = 1
76@ += 1
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundAmmunationBuyWeapon)

:OTB_4980
goto @OTB_4994

:OTB_4987
74@ = 0

:OTB_4994
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @OTB_5055
if 
  75@ == 0
goto_if_false @OTB_5048
75@ = 1
Camera.DoFade(0, Fade.Out)
wait 0
return 

:OTB_5048
goto @OTB_5062

:OTB_5055
75@ = 0

:OTB_5062
460@ = 0

:OTB_5069
if 
  5 > 460@
goto_if_false @OTB_5607
if 
  65@(460@,5i) == 0
goto_if_false @OTB_5145
Hud.DrawSprite(1, 35@, 36@(460@,5f), 330.0, 64.0, 150, 150, 150, 255)

:OTB_5145
if 
  65@(460@,5i) == 1
goto_if_false @OTB_5203
Hud.DrawSprite(10, 35@, 36@(460@,5f), 330.0, 64.0, 150, 150, 150, 255)

:OTB_5203
if 
  65@(460@,5i) == 2
goto_if_false @OTB_5258
Hud.DrawSprite(1, 35@, 36@(460@,5f), 330.0, 64.0, 50, 50, 50, 255)

:OTB_5258
set_lvar_float_to_lvar_float 41@ = 35@
41@ -= 130.0
set_lvar_float_to_lvar_float 42@ = 36@(460@,5f)
42@ -= 8.0
set_lvar_int_to_lvar_int 461@ = 460@
461@ += 4
Hud.DrawSprite(461@, 41@, 42@, 64.0, 64.0, 150, 150, 150, 255)
set_lvar_float_to_lvar_float 43@ = 35@
43@ -= 105.0
set_lvar_float_to_lvar_float 44@ = 36@(460@,5f)
44@ -= 24.0
gosub @OTB_13478
Text.SetScale(0.63, 3.0)
if 
  65@(460@,5i) == 1
goto_if_false @OTB_5457
462@, 463@, 464@, 465@ = Hud.GetColor(0)
Text.SetColor(462@, 463@, 464@, 465@)

:OTB_5457
set_lvar_int_to_lvar_int 461@ = 443@(460@,5i)
Text.Display(43@, 44@, 97@(461@,167s))
43@ += 254.2121
gosub @OTB_13478
Text.SetScale(0.7, 3.0)
Text.SetRightJustify(True)
if 
  65@(460@,5i) == 1
goto_if_false @OTB_5569
462@, 463@, 464@, 465@ = Hud.GetColor(0)
Text.SetColor(462@, 463@, 464@, 465@)

:OTB_5569
Text.DisplayWithNumber(43@, 44@, 'ODDS', 448@(460@,5i))
460@ += 1
goto @OTB_5069

:OTB_5607
if 
  76@ == 1
goto_if_false @OTB_6811
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @OTB_6009
if 
  75@ == 0
goto_if_false @OTB_6002
if 
  65@ == 1
goto_if_false @OTB_5706
66@ = 0
67@ = 0
68@ = 0
69@ = 0

:OTB_5706
if 
  66@ == 1
goto_if_false @OTB_5752
65@ = 0
67@ = 0
68@ = 0
69@ = 0

:OTB_5752
if 
  67@ == 1
goto_if_false @OTB_5798
65@ = 0
66@ = 0
68@ = 0
69@ = 0

:OTB_5798
if 
  68@ == 1
goto_if_false @OTB_5844
65@ = 0
66@ = 0
67@ = 0
69@ = 0

:OTB_5844
if 
  69@ == 1
goto_if_false @OTB_5890
65@ = 0
66@ = 0
67@ = 0
68@ = 0

:OTB_5890
75@ = 1
78@ = 0
79@ = 0
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
76@ -= 1
Player.AddScore($player1, 87@)
87@ = 0
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1121)

:OTB_6002
goto @OTB_6016

:OTB_6009
75@ = 0

:OTB_6016
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @OTB_6434
if 
  74@ == 0
goto_if_false @OTB_6427
if 
  not Char.IsDead($scplayer)
goto_if_false @OTB_6081
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)

:OTB_6081
if and
  86@ > 0
  87@ > 0
goto_if_false @OTB_6133
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1123)
453@ = 1

:OTB_6133
if 
  78@ == 1
goto_if_false @OTB_6194
78@ = 2
Player.AddScore($player1, 87@)
set_lvar_int_to_lvar_int 87@ = 88@
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1120)

:OTB_6194
460@ = 1

:OTB_6201
if 
  8 > 460@
goto_if_false @OTB_6420
if 
  78@(460@,8i) == 1
goto_if_false @OTB_6406
78@(460@,8i) = 2
set_lvar_int_to_lvar_int 461@ = 88@(460@,8i)
461@ -= 1
set_lvar_int_to_lvar_int 466@ = 87@
add_int_lvar_to_int_lvar 466@ += 88@(460@,8i)
if and
  Player.IsScoreGreater($player1, 461@)
  9999999 > 466@
goto_if_false @OTB_6386
add_int_lvar_to_int_lvar 87@ += 88@(460@,8i)
set_lvar_int_to_lvar_int 461@ = 88@(460@,8i)
461@ *= -1
Player.AddScore($player1, 461@)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1121)
goto @OTB_6406

:OTB_6386
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1158)

:OTB_6406
460@ += 1
goto @OTB_6201

:OTB_6420
74@ = 1

:OTB_6427
goto @OTB_6811

:OTB_6434
if 
  74@ == 1
goto_if_false @OTB_6531
460@ = 0

:OTB_6459
if 
  8 > 460@
goto_if_false @OTB_6524
if 
  78@(460@,8i) == 2
goto_if_false @OTB_6510
78@(460@,8i) = 1

:OTB_6510
460@ += 1
goto @OTB_6459

:OTB_6524
74@ = 0

:OTB_6531
if or
  -100 > 456@
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @OTB_6594
if 
  72@ == 0
goto_if_false @OTB_6587
72@ = 1
gosub @OTB_13546

:OTB_6587
goto @OTB_6601

:OTB_6594
72@ = 0

:OTB_6601
if or
  456@ > 100
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @OTB_6664
if 
  73@ == 0
goto_if_false @OTB_6657
73@ = 1
gosub @OTB_13684

:OTB_6657
goto @OTB_6671

:OTB_6664
73@ = 0

:OTB_6671
if or
  -100 > 457@
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
goto_if_false @OTB_6734
if 
  70@ == 0
goto_if_false @OTB_6727
70@ = 1
gosub @OTB_13822

:OTB_6727
goto @OTB_6741

:OTB_6734
70@ = 0

:OTB_6741
if or
  457@ > 100
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
goto_if_false @OTB_6804
if 
  71@ == 0
goto_if_false @OTB_6797
71@ = 1
gosub @OTB_14092

:OTB_6797
goto @OTB_6811

:OTB_6804
71@ = 0

:OTB_6811
460@ = 0

:OTB_6818
if 
  8 > 460@
goto_if_false @OTB_7161
if 
  78@(460@,8i) == 0
goto_if_false @OTB_6898
Hud.DrawSprite(2, 47@(460@,8f), 55@(460@,8f), 90.0, 64.0, 150, 150, 150, 255)

:OTB_6898
if 
  78@(460@,8i) == 1
goto_if_false @OTB_6960
Hud.DrawSprite(11, 47@(460@,8f), 55@(460@,8f), 90.0, 64.0, 150, 150, 150, 255)

:OTB_6960
if 
  78@(460@,8i) == 2
goto_if_false @OTB_7022
Hud.DrawSprite(3, 47@(460@,8f), 55@(460@,8f), 90.0, 64.0, 150, 150, 150, 255)

:OTB_7022
gosub @OTB_13478
Text.SetCenter(True)
Text.SetScale(0.58, 2.4957)
set_lvar_float_to_lvar_float 467@ = 55@(460@,8f)
467@ -= 28.3404
if 
  78@(460@,8i) > 0
goto_if_false @OTB_7119
462@, 463@, 464@, 465@ = Hud.GetColor(0)
Text.SetColor(462@, 463@, 464@, 465@)

:OTB_7119
Text.DisplayWithNumber(47@(460@,8f), 467@, 'DOLLAR', 88@(460@,8i))
460@ += 1
goto @OTB_6818

:OTB_7161
if 
  86@ == 0
goto_if_false @OTB_7280
if 
  87@ > 0
goto_if_false @OTB_7240
Hud.DrawSprite(1, 510.0702, 373.3544, 176.8987, 50.8555, 150, 150, 150, 255)
goto @OTB_7273

:OTB_7240
Hud.DrawSprite(1, 510.0702, 373.3544, 176.8987, 50.8555, 50, 50, 50, 255)

:OTB_7273
goto @OTB_7316

:OTB_7280
Hud.DrawSprite(10, 510.0702, 373.3544, 176.8987, 50.8555, 150, 150, 150, 255)

:OTB_7316
gosub @OTB_13478
if or
  is_int_var_equal_to_constant $current_Language == 2
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @OTB_7367
Text.SetScale(0.5, 2.996)
goto @OTB_7379

:OTB_7367
Text.SetScale(0.609, 2.996)

:OTB_7379
Text.SetCenter(True)
if 
  86@ > 0
goto_if_false @OTB_7431
462@, 463@, 464@, 465@ = Hud.GetColor(0)
Text.SetColor(462@, 463@, 464@, 465@)

:OTB_7431
Text.Display(509.6968, 351.0, 'PLACBET')
gosub @OTB_13478
Text.SetScale(0.8, 3.3297)
Text.SetCenter(True)
Text.DisplayWithNumber(509.2133, 84.9941, 'DOLLAR', 87@)
if 
  453@ == 1
goto_if_false @OTB_7524
goto @OTB_7531

:OTB_7524
goto @OTB_3828

:OTB_7531
Txd.Remove
Txd.LoadDictionary('LD_OTB')
Txd.LoadSprite(1, "BCKGRND")
Txd.LoadSprite(2, "BUSHES")
Txd.LoadSprite(3, "BRIDE1")
Txd.LoadSprite(4, "BRIDE2")
Txd.LoadSprite(5, "BRIDE3")
Txd.LoadSprite(6, "BRIDE4")
Txd.LoadSprite(7, "BRIDE5")
Txd.LoadSprite(8, "BRIDE6")
Txd.LoadSprite(9, "BRIDE7")
Txd.LoadSprite(10, "BRIDE8")
Txd.LoadSprite(11, "TREES")
Txd.LoadSprite(12, "FEN")
Txd.LoadSprite(13, "POLE2")
Txd.LoadSprite(14, "RRIDE1")
Txd.LoadSprite(15, "RRIDE2")
Txd.LoadSprite(16, "RRIDE3")
Txd.LoadSprite(17, "RRIDE4")
Txd.LoadSprite(18, "RRIDE5")
Txd.LoadSprite(19, "RRIDE6")
Txd.LoadSprite(20, "RRIDE7")
Txd.LoadSprite(21, "RRIDE8")
Txd.LoadSprite(22, "YRIDE1")
Txd.LoadSprite(23, "YRIDE2")
Txd.LoadSprite(24, "YRIDE3")
Txd.LoadSprite(25, "YRIDE4")
Txd.LoadSprite(26, "YRIDE5")
Txd.LoadSprite(27, "YRIDE6")
Txd.LoadSprite(28, "YRIDE7")
Txd.LoadSprite(29, "YRIDE8")
Txd.LoadSprite(30, "PRIDE1")
Txd.LoadSprite(31, "PRIDE2")
Txd.LoadSprite(32, "PRIDE3")
Txd.LoadSprite(33, "PRIDE4")
Txd.LoadSprite(34, "PRIDE5")
Txd.LoadSprite(35, "PRIDE6")
Txd.LoadSprite(36, "PRIDE7")
Txd.LoadSprite(37, "PRIDE8")
Txd.LoadSprite(38, "GRIDE1")
Txd.LoadSprite(39, "GRIDE2")
Txd.LoadSprite(40, "GRIDE3")
Txd.LoadSprite(41, "GRIDE4")
Txd.LoadSprite(42, "GRIDE5")
Txd.LoadSprite(43, "GRIDE6")
Txd.LoadSprite(44, "GRIDE7")
Txd.LoadSprite(45, "GRIDE8")
Txd.LoadSprite(46, "TVCORN")
Txd.LoadSprite(47, "TVL")
Txd.LoadSprite(48, "TVR")
Txd.LoadSprite(49, "BLUE")
Txd.LoadSprite(50, "HRS1")
Txd.LoadSprite(51, "HRS2")
Txd.LoadSprite(52, "HRS3")
Txd.LoadSprite(53, "HRS4")
Txd.LoadSprite(54, "HRS5")
Txd.LoadSprite(55, "HRS6")
Txd.LoadSprite(56, "HRS7")
Txd.LoadSprite(57, "HRS8")
468@ = 0
469@ = 0
470@ = 0
471@ = 0
472@ = 0
473@ = 0
474@ = 0
475@ = 0
476@ = 0
477@ = 0
482@ = 128.0
set_lvar_float_to_lvar_float 483@ = 482@
483@ /= 10.0
set_lvar_float_to_lvar_float 481@ = 482@
sub_float_lvar_from_float_lvar 481@ -= 483@
set_lvar_float_to_lvar_float 483@ = 481@
483@ /= 10.0
set_lvar_float_to_lvar_float 480@ = 481@
sub_float_lvar_from_float_lvar 480@ -= 483@
set_lvar_float_to_lvar_float 483@ = 480@
483@ /= 10.0
set_lvar_float_to_lvar_float 479@ = 480@
sub_float_lvar_from_float_lvar 479@ -= 483@
set_lvar_float_to_lvar_float 483@ = 479@
483@ /= 10.0
set_lvar_float_to_lvar_float 478@ = 479@
sub_float_lvar_from_float_lvar 478@ -= 483@
488@ = 64.0
set_lvar_float_to_lvar_float 483@ = 488@
483@ /= 10.0
set_lvar_float_to_lvar_float 487@ = 488@
sub_float_lvar_from_float_lvar 487@ -= 483@
set_lvar_float_to_lvar_float 483@ = 487@
483@ /= 10.0
set_lvar_float_to_lvar_float 486@ = 487@
sub_float_lvar_from_float_lvar 486@ -= 483@
set_lvar_float_to_lvar_float 483@ = 486@
483@ /= 10.0
set_lvar_float_to_lvar_float 485@ = 486@
sub_float_lvar_from_float_lvar 485@ -= 483@
set_lvar_float_to_lvar_float 483@ = 485@
483@ /= 10.0
set_lvar_float_to_lvar_float 484@ = 485@
sub_float_lvar_from_float_lvar 484@ -= 483@
489@ = 150.0
490@ = 150.0
491@ = 150.0
492@ = 150.0
493@ = 150.0
498@ = 300.0
set_lvar_float_to_lvar_float 483@ = 498@
483@ /= 10.0
set_lvar_float_to_lvar_float 497@ = 498@
sub_float_lvar_from_float_lvar 497@ -= 483@
set_lvar_float_to_lvar_float 483@ = 497@
483@ /= 10.0
set_lvar_float_to_lvar_float 496@ = 497@
sub_float_lvar_from_float_lvar 496@ -= 483@
set_lvar_float_to_lvar_float 483@ = 496@
483@ /= 10.0
set_lvar_float_to_lvar_float 495@ = 496@
sub_float_lvar_from_float_lvar 495@ -= 483@
set_lvar_float_to_lvar_float 483@ = 495@
483@ /= 10.0
set_lvar_float_to_lvar_float 494@ = 495@
sub_float_lvar_from_float_lvar 494@ -= 483@
499@ = 159.0
500@ = 159.0
501@ = 159.0
502@ = 159.0
503@ = 159.0
508@ = 261.0
set_lvar_float_to_lvar_float 483@ = 508@
483@ /= 10.0
set_lvar_float_to_lvar_float 507@ = 508@
sub_float_lvar_from_float_lvar 507@ -= 483@
set_lvar_float_to_lvar_float 483@ = 507@
483@ /= 10.0
set_lvar_float_to_lvar_float 506@ = 507@
sub_float_lvar_from_float_lvar 506@ -= 483@
set_lvar_float_to_lvar_float 483@ = 506@
483@ /= 10.0
set_lvar_float_to_lvar_float 505@ = 506@
sub_float_lvar_from_float_lvar 505@ -= 483@
set_lvar_float_to_lvar_float 483@ = 505@
483@ /= 10.0
set_lvar_float_to_lvar_float 504@ = 505@
sub_float_lvar_from_float_lvar 504@ -= 483@
514@ = 0.0
515@ = 0.0
516@ = 0.0
517@ = 0.0
518@ = 0.0
519@ = 4
520@ = 10
521@ = 13
522@ = 12
523@ = 5
526@ = 3
527@ = 14
528@ = 22
529@ = 30
530@ = 38
$game_timer = Clock.GetGameTimer()
set_lvar_int_to_var_int 531@ = $game_timer
531@ += 25000
532@ = 512.0
set_lvar_float_to_lvar_float 533@ = 532@
533@ += 124.0
534@ = 0
535@ = 0
536@ = 0
537@ = 0
538@ = 0
544@ = 0
545@ = 0
546@ = 0
547@ = 0
548@ = 0
552@ = 0.0
553@ = 0.0
554@ = 0.0
555@ = 0.0
556@ = 0
557@ = 454.364
558@ = 152.8744
563@ = 0
564@ = 42
569@ = 96
574@ = 228
565@ = 209
570@ = 116
575@ = 116
566@ = 222
571@ = 185
576@ = 103
567@ = 133
572@ = 65
577@ = 190
568@ = 65
573@ = 190
578@ = 151
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1142)
579@ = 0
Hud.DrawRect(320.0, 224.0, 640.0, 448.0, 0, 0, 0, 255)

:OTB_9438
wait 0
$game_timer = Clock.GetGameTimer()
if 
  556@ == 0
goto_if_false @OTB_9920
460@ = 0

:OTB_9472
if 
  5 > 460@
goto_if_false @OTB_9920
if 
  is_int_var_greater_than_int_lvar $game_timer > 468@(460@,5i)
goto_if_false @OTB_9578
509@(460@,5f) = Math.RandomFloatInRange(-0.8, 1.0)
580@ = Math.RandomIntInRange(1500, 2500)
set_lvar_int_to_var_int 468@(460@,5i) = $game_timer
add_int_lvar_to_int_lvar 468@(460@,5i) += 580@
473@(460@,5i) = 1

:OTB_9578
if 
  473@(460@,5i) == 1
goto_if_false @OTB_9790
if 
  is_float_lvar_greater_than_float_lvar 514@(460@,5f) > 509@(460@,5f)
goto_if_false @OTB_9695
sub_timed_val_from_float_lvar 514@(460@,5f) -=@ 0.01
if 
  is_float_lvar_greater_than_float_lvar 509@(460@,5f) > 514@(460@,5f)
goto_if_false @OTB_9695
set_lvar_float_to_lvar_float 514@(460@,5f) = 509@(460@,5f)
473@(460@,5i) += 1

:OTB_9695
if 
  is_float_lvar_greater_than_float_lvar 509@(460@,5f) > 514@(460@,5f)
goto_if_false @OTB_9790
add_timed_val_to_float_lvar 514@(460@,5f) +=@ 0.01
if 
  is_float_lvar_greater_than_float_lvar 514@(460@,5f) > 509@(460@,5f)
goto_if_false @OTB_9790
set_lvar_float_to_lvar_float 514@(460@,5f) = 509@(460@,5f)
473@(460@,5i) += 1

:OTB_9790
if 
  473@(460@,5i) > 0
goto_if_false @OTB_9828
add_timed_float_lvar_to_float_lvar 489@(460@,5f) +=@ 514@(460@,5f)

:OTB_9828
if 
  80.0 > 489@(460@,5f)
goto_if_false @OTB_9867
489@(460@,5f) = 80.0

:OTB_9867
if 
  489@(460@,5f) > 520.0
goto_if_false @OTB_9906
489@(460@,5f) = 520.0

:OTB_9906
460@ += 1
goto @OTB_9472

:OTB_9920
set_lvar_float_to_lvar_float 549@ = 552@
583@ = -76.0
582@ = 72.0
525@ = 1
551@ = 4.0
gosub @OTB_13223
set_lvar_float_to_lvar_float 552@ = 549@
set_lvar_float_to_lvar_float 549@ = 554@
583@ = -64.0
582@ = 128.0
525@ = 2
551@ = 5.0
gosub @OTB_13223
set_lvar_float_to_lvar_float 554@ = 549@
set_lvar_float_to_lvar_float 549@ = 553@
583@ = 0.0
582@ = 256.0
525@ = 11
551@ = 6.0
gosub @OTB_13223
set_lvar_float_to_lvar_float 553@ = 549@
if 
  is_int_var_greater_than_int_lvar $game_timer > 531@
goto_if_false @OTB_10539
if 
  532@ > -200.0
goto_if_false @OTB_10220
if 
  556@ == 0
goto_if_false @OTB_10168
sub_timed_val_from_float_lvar 532@ -=@ 6.0

:OTB_10168
Hud.DrawSprite(13, 532@, 224.0, 256.0, 256.0, 150, 150, 150, 255)
set_lvar_float_to_lvar_float 533@ = 532@
533@ += 124.0

:OTB_10220
460@ = 0

:OTB_10227
if 
  5 > 460@
goto_if_false @OTB_10539
if 
  534@(460@,5i) == 0
goto_if_false @OTB_10525
if 
  is_float_lvar_greater_than_float_lvar 489@(460@,5f) > 533@
goto_if_false @OTB_10525
if 
  544@ == 0
goto_if_false @OTB_10333
534@(460@,5i) = 1
544@ += 1
goto @OTB_10525

:OTB_10333
if 
  545@ == 0
goto_if_false @OTB_10376
534@(460@,5i) = 2
545@ += 1
goto @OTB_10525

:OTB_10376
if 
  546@ == 0
goto_if_false @OTB_10419
534@(460@,5i) = 3
546@ += 1
goto @OTB_10525

:OTB_10419
if 
  547@ == 0
goto_if_false @OTB_10462
534@(460@,5i) = 4
547@ += 1
goto @OTB_10525

:OTB_10462
if 
  548@ == 0
goto_if_false @OTB_10525
534@(460@,5i) = 5
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1143)
556@ += 1
548@ += 1

:OTB_10525
460@ += 1
goto @OTB_10227

:OTB_10539
460@ = 0

:OTB_10546
if 
  5 > 460@
goto_if_false @OTB_10832
set_lvar_int_to_lvar_int 461@ = 519@(460@,5i)
461@ /= 2
524@ = 50
add_int_lvar_to_int_lvar 524@ += 461@
Hud.DrawSprite(524@, 489@(460@,5f), 494@(460@,5f), 478@(460@,5f), 478@(460@,5f), 150, 150, 150, 255)
set_lvar_int_to_lvar_int 524@ = 526@(460@,5i)
add_int_lvar_to_int_lvar 524@ += 461@
set_lvar_float_to_lvar_float 499@(460@,5f) = 489@(460@,5f)
499@(460@,5f) += 9.0
set_lvar_float_to_lvar_float 467@ = 484@(460@,5f)
467@ /= 2.0
Hud.DrawSprite(524@, 499@(460@,5f), 504@(460@,5f), 484@(460@,5f), 467@, 150, 150, 150, 255)
if 
  556@ == 0
goto_if_false @OTB_10785
519@(460@,5i) += 1

:OTB_10785
if 
  519@(460@,5i) > 15
goto_if_false @OTB_10818
519@(460@,5i) = 0

:OTB_10818
460@ += 1
goto @OTB_10546

:OTB_10832
set_lvar_float_to_lvar_float 549@ = 555@
583@ = 96.0
582@ = 64.0
525@ = 12
551@ = 8.0
gosub @OTB_13223
set_lvar_float_to_lvar_float 555@ = 549@
Hud.DrawSprite(46, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(46, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(46, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(46, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(47, 160.0, 0.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(47, 160.0, 448.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(48, 480.0, 0.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(48, 480.0, 448.0, 320.0, 224.0, 150, 150, 150, 255)
if or
  534@ > 0
  535@ > 0
  536@ > 0
  537@ > 0
  538@ > 0
goto_if_false @OTB_11296
set_lvar_float_to_lvar_float 561@ = 557@
561@ += -25.0222
set_lvar_float_to_lvar_float 562@ = 558@
562@ += 21.6946
Hud.DrawRect(561@, 562@, 355.0807, 119.5942, 47, 62, 90, 200)
goto @OTB_11705

:OTB_11296
set_lvar_float_to_lvar_float 561@ = 557@
561@ += -139.2772
set_lvar_float_to_lvar_float 562@ = 558@
562@ += -56.1882
Hud.DrawSprite(49, 561@, 562@, 280.2137, 22.6679, 150, 150, 150, 255)
set_lvar_float_to_lvar_float 559@ = 557@
559@ -= 157.3474
set_lvar_float_to_lvar_float 560@ = 558@
560@ -= 68.5107
gosub @OTB_13478
Text.SetJustify(False)
Text.SetRightJustify(True)
Text.Display(559@, 560@, 'YOURHSE')
set_lvar_float_to_lvar_float 559@ = 557@
559@ -= 142.4242
560@ += 12.7439
Hud.DrawRect(559@, 560@, 12.0, 12.0, 0, 0, 0, 255)
460@ = 0

:OTB_11494
if 
  5 > 460@
goto_if_false @OTB_11590
if 
  65@(460@,5i) == 1
goto_if_false @OTB_11576
Hud.DrawRect(559@, 560@, 10.0, 10.0, 564@(460@,5i), 569@(460@,5i), 574@(460@,5i), 255)

:OTB_11576
460@ += 1
goto @OTB_11494

:OTB_11590
559@ += 10.8216
560@ -= 12.7439
gosub @OTB_13478
460@ = 0

:OTB_11624
if 
  5 > 460@
goto_if_false @OTB_11705
if 
  65@(460@,5i) == 1
goto_if_false @OTB_11691
set_lvar_int_to_lvar_int 461@ = 443@(460@,5i)
Text.Display(559@, 560@, 97@(461@,167s))

:OTB_11691
460@ += 1
goto @OTB_11624

:OTB_11705
set_lvar_float_to_lvar_float 581@ = 557@
581@ += -23.3585
460@ = 0

:OTB_11730
if 
  5 > 460@
goto_if_false @OTB_12527
if 
  534@(460@,5i) > 0
goto_if_false @OTB_12513
set_lvar_float_to_lvar_float 559@ = 581@
559@ -= 50.0
set_lvar_float_to_lvar_float 560@ = 558@
560@ -= 50.0
cset_lvar_float_to_lvar_int 467@ =# 534@(460@,5i)
467@ *= 23.5038
add_float_lvar_to_float_lvar 560@ += 467@
Hud.DrawRect(559@, 560@, 12.0, 12.0, 0, 0, 0, 255)
Hud.DrawRect(559@, 560@, 10.0, 10.0, 564@(460@,5i), 569@(460@,5i), 574@(460@,5i), 255)
set_lvar_float_to_lvar_float 559@ = 581@
559@ -= 39.1244
set_lvar_float_to_lvar_float 560@ = 558@
560@ -= 63.4833
gosub @OTB_13478
if 
  534@(460@,5i) == 1
goto_if_false @OTB_12000
462@, 463@, 464@, 465@ = Hud.GetColor(0)
Text.SetColor(462@, 463@, 464@, 465@)

:OTB_12000
cset_lvar_float_to_lvar_int 467@ =# 534@(460@,5i)
467@ *= 23.5038
set_lvar_float_to_lvar_float 539@(460@,5f) = 560@
add_float_lvar_to_float_lvar 539@(460@,5f) += 467@
set_lvar_int_to_lvar_int 461@ = 443@(460@,5i)
Text.SetScale(0.54, 2.4961)
Text.Display(559@, 539@(460@,5f), 97@(461@,167s))
if 
  65@(460@,5i) == 1
goto_if_false @OTB_12177
set_lvar_float_to_lvar_float 559@ = 581@
559@ -= 64.0
gosub @OTB_13478
Text.SetJustify(False)
Text.SetRightJustify(True)
Text.SetScale(0.54, 2.4961)
Text.Display(559@, 539@(460@,5f), 'YOURHSE')

:OTB_12177
set_lvar_float_to_lvar_float 559@ = 581@
559@ -= -170.5457
set_lvar_float_to_lvar_float 560@ = 558@
560@ -= 63.4833
gosub @OTB_13478
Text.SetRightJustify(True)
if 
  534@(460@,5i) == 1
goto_if_false @OTB_12276
462@, 463@, 464@, 465@ = Hud.GetColor(0)
Text.SetColor(462@, 463@, 464@, 465@)

:OTB_12276
cset_lvar_float_to_lvar_int 467@ =# 534@(460@,5i)
467@ *= 23.5038
set_lvar_float_to_lvar_float 539@(460@,5f) = 560@
add_float_lvar_to_float_lvar 539@(460@,5f) += 467@
Text.SetScale(0.54, 2.4961)
if 
  534@(460@,5i) == 1
goto_if_false @OTB_12377
Text.Display(559@, 539@(460@,5f), 'FIRST')

:OTB_12377
if 
  534@(460@,5i) == 2
goto_if_false @OTB_12420
Text.Display(559@, 539@(460@,5f), 'SECOND')

:OTB_12420
if 
  534@(460@,5i) == 3
goto_if_false @OTB_12463
Text.Display(559@, 539@(460@,5f), 'THIRD')

:OTB_12463
if 
  534@(460@,5i) > 3
goto_if_false @OTB_12513
Text.DisplayWithNumber(559@, 539@(460@,5f), 'NTH', 534@(460@,5i))

:OTB_12513
460@ += 1
goto @OTB_11730

:OTB_12527
if and
  534@ > 0
  535@ > 0
  536@ > 0
  537@ > 0
  538@ > 0
goto_if_false @OTB_13196
set_lvar_float_to_lvar_float 561@ = 557@
561@ += 44.4599
set_lvar_float_to_lvar_float 562@ = 558@
562@ += 218.4174
Hud.DrawSprite(49, 561@, 562@, 155.396, 52.7081, 150, 150, 150, 255)
set_lvar_float_to_lvar_float 559@ = 557@
559@ -= 39.2243
set_lvar_float_to_lvar_float 560@ = 558@
560@ -= -190.9665
gosub @OTB_13478
Text.SetScale(0.5, 2.4961)
Text.DisplayWithNumber(559@, 560@, 'YOURSTK', 87@)
460@ = 0

:OTB_12723
if 
  5 > 460@
goto_if_false @OTB_12808
if and
  534@(460@,5i) == 1
  65@(460@,5i) == 1
goto_if_false @OTB_12794
set_lvar_int_to_lvar_int 563@ = 87@
mult_int_lvar_by_int_lvar 563@ *= 448@(460@,5i)

:OTB_12794
460@ += 1
goto @OTB_12723

:OTB_12808
560@ += 25.0
gosub @OTB_13478
Text.SetScale(0.5, 2.4961)
Text.DisplayWithNumber(559@, 560@, 'YOUWIN', 563@)
set_lvar_float_to_lvar_float 561@ = 557@
561@ += -129.2806
set_lvar_float_to_lvar_float 562@ = 558@
562@ += 259.5944
Hud.DrawSprite(49, 561@, 562@, 239.5561, 12.6761, 150, 150, 150, 255)
gosub @OTB_13478
Text.SetScale(0.5496, 2.1344)
Text.SetCenter(True)
Text.Display(330.2087, 403.5891, 'XTOCONT')
if 
  579@ == 0
goto_if_false @OTB_13059
if 
  563@ > 0
goto_if_false @OTB_13032
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1124)
goto @OTB_13052

:OTB_13032
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1122)

:OTB_13052
579@ = 1

:OTB_13059
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @OTB_13189
if 
  74@ == 0
goto_if_false @OTB_13182
74@ = 1
Stat.IncrementInt(StatId.MoneySpentGambling, 87@)
if 
  563@ > 0
goto_if_false @OTB_13163
Stat.RegisterInt(StatId.BiggestGamblingWin, 563@)
Stat.IncrementInt(StatId.MoneyWonGambling, 563@)
add_int_lvar_to_int_lvar 563@ += 87@
Player.AddScore($player1, 563@)
goto @OTB_13170

:OTB_13163
Stat.RegisterInt(StatId.BiggestGamblingLoss, 87@)

:OTB_13170
Camera.DoFade(0, Fade.Out)
wait 0
return 

:OTB_13182
goto @OTB_13196

:OTB_13189
74@ = 0

:OTB_13196
goto @OTB_9438

:OTB_13203
Txd.Remove
Camera.DoFade(500, Fade.In)
$onmission = 0
Mission.Finish
return 

:OTB_13223
583@ += 224.0
set_lvar_float_to_lvar_float 550@ = 549@
550@ -= 256.0
Hud.DrawSprite(525@, 550@, 583@, 256.0, 582@, 150, 150, 150, 255)
set_lvar_float_to_lvar_float 550@ = 549@
Hud.DrawSprite(525@, 550@, 583@, 256.0, 582@, 150, 150, 150, 255)
set_lvar_float_to_lvar_float 550@ = 549@
550@ += 256.0
Hud.DrawSprite(525@, 550@, 583@, 256.0, 582@, 150, 150, 150, 255)
set_lvar_float_to_lvar_float 550@ = 549@
550@ += 512.0
Hud.DrawSprite(525@, 550@, 583@, 256.0, 582@, 150, 150, 150, 255)
if 
  556@ == 0
goto_if_false @OTB_13445
sub_timed_float_lvar_from_float_lvar 549@ -=@ 551@

:OTB_13445
if 
  0.0 > 549@
goto_if_false @OTB_13476
549@ += 256.0

:OTB_13476
return 

:OTB_13478
Text.SetColor(180, 180, 180, 255)
Text.SetScale(0.6146, 2.4961)
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(False)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
Text.SetDropshadow(2, 0, 0, 0, 180)
return 

:OTB_13546
if 
  79@ == 1
goto_if_false @OTB_13580
79@ = 0
78@ = 1
return 

:OTB_13580
if 
  81@ == 1
goto_if_false @OTB_13614
81@ = 0
80@ = 1
return 

:OTB_13614
if 
  83@ == 1
goto_if_false @OTB_13648
83@ = 0
82@ = 1
return 

:OTB_13648
if 
  85@ == 1
goto_if_false @OTB_13682
85@ = 0
84@ = 1
return 

:OTB_13682
return 

:OTB_13684
if 
  78@ == 1
goto_if_false @OTB_13718
78@ = 0
79@ = 1
return 

:OTB_13718
if 
  80@ == 1
goto_if_false @OTB_13752
80@ = 0
81@ = 1
return 

:OTB_13752
if 
  82@ == 1
goto_if_false @OTB_13786
82@ = 0
83@ = 1
return 

:OTB_13786
if 
  84@ == 1
goto_if_false @OTB_13820
84@ = 0
85@ = 1
return 

:OTB_13820
return 

:OTB_13822
if 
  80@ == 1
goto_if_false @OTB_13856
80@ = 0
78@ = 1
return 

:OTB_13856
if 
  81@ == 1
goto_if_false @OTB_13890
81@ = 0
79@ = 1
return 

:OTB_13890
if 
  82@ == 1
goto_if_false @OTB_13924
82@ = 0
80@ = 1
return 

:OTB_13924
if 
  83@ == 1
goto_if_false @OTB_13958
83@ = 0
81@ = 1
return 

:OTB_13958
if 
  84@ == 1
goto_if_false @OTB_13992
84@ = 0
82@ = 1
return 

:OTB_13992
if 
  85@ == 1
goto_if_false @OTB_14026
85@ = 0
83@ = 1
return 

:OTB_14026
if 
  86@ == 1
goto_if_false @OTB_14058
86@ = 0
84@ = 1

:OTB_14058
if 
  86@ == 2
goto_if_false @OTB_14090
86@ = 0
85@ = 1

:OTB_14090
return 

:OTB_14092
if 
  78@ == 1
goto_if_false @OTB_14126
78@ = 0
80@ = 1
return 

:OTB_14126
if 
  79@ == 1
goto_if_false @OTB_14160
79@ = 0
81@ = 1
return 

:OTB_14160
if 
  80@ == 1
goto_if_false @OTB_14194
80@ = 0
82@ = 1
return 

:OTB_14194
if 
  81@ == 1
goto_if_false @OTB_14228
81@ = 0
83@ = 1
return 

:OTB_14228
if 
  82@ == 1
goto_if_false @OTB_14262
82@ = 0
84@ = 1
return 

:OTB_14262
if 
  83@ == 1
goto_if_false @OTB_14296
83@ = 0
85@ = 1
return 

:OTB_14296
if 
  87@ > 0
goto_if_false @OTB_14382
if 
  84@ == 1
goto_if_false @OTB_14348
84@ = 0
86@ = 1
return 

:OTB_14348
if 
  85@ == 1
goto_if_false @OTB_14382
85@ = 0
86@ = 2
return 

:OTB_14382
return 

//-------------Mission 8---------------
// Originally: Pool

:POOL2
script_name 'POOL2'
gosub @POOL2_47
if 
  has_deatharrest_been_executed 
goto_if_false @POOL2_38
gosub @POOL2_60085

:POOL2_38
gosub @POOL2_60137
terminate_this_script 

:POOL2_47
Stat.RegisterMissionGiven
$onmission = 1
181@ = Clock.GetGameTimer()
34@ = 0
35@ = 0
37@ = 0
38@ = 0
178@ = 0
204@ = -0.957
206@ = -0.49
205@ = 0.957
207@ = 0.49
199@ = 0.05
200@ = 2.0

:POOL2_156
wait 0
39@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 182@ = 39@
sub_int_lvar_from_int_lvar 182@ -= 181@
set_lvar_int_to_lvar_int 181@ = 39@
add_int_lvar_to_int_lvar 183@ += 182@
add_int_lvar_to_int_lvar 201@ += 182@
add_int_lvar_to_int_lvar 202@ += 182@
gosub @POOL2_2281

:POOL2_220
switch_start 34@ {numCases} 13 {hasDefaultCase} 0 {defaultLabel} @POOL2_530 {caseNum1} 0 {caseLabel1} @POOL2_348 {caseNum2} 1 {caseLabel2} @POOL2_362 {caseNum3} 2 {caseLabel3} @POOL2_376 {caseNum4} 3 {caseLabel4} @POOL2_390 {caseNum5} 4 {caseLabel5} @POOL2_404 {caseNum6} 5 {caseLabel6} @POOL2_418 {caseNum7} 6 {caseLabel7} @POOL2_432
switch_continued 7 {caseLabel1} @POOL2_446 {caseNum2} 8 {caseLabel2} @POOL2_460 {caseNum3} 9 {caseLabel3} @POOL2_474 {caseNum4} 10 {caseLabel4} @POOL2_488 {caseNum5} 11 {caseLabel5} @POOL2_502 {caseNum6} 12 {caseLabel6} @POOL2_516 {caseNum7} -1 {caseLabel7} @POOL2_530 {caseNum8} -1 {caseLabel8} @POOL2_530 {caseNum9} -1 {caseLabel9} @POOL2_530

:POOL2_348
gosub @POOL2_680
goto @POOL2_530

:POOL2_362
gosub @POOL2_5571
goto @POOL2_530

:POOL2_376
gosub @POOL2_9119
goto @POOL2_530

:POOL2_390
gosub @POOL2_9751
goto @POOL2_530

:POOL2_404
gosub @POOL2_10577
goto @POOL2_530

:POOL2_418
gosub @POOL2_12209
goto @POOL2_530

:POOL2_432
gosub @POOL2_15277
goto @POOL2_530

:POOL2_446
gosub @POOL2_15279
goto @POOL2_530

:POOL2_460
gosub @POOL2_20467
goto @POOL2_530

:POOL2_474
gosub @POOL2_20990
goto @POOL2_530

:POOL2_488
gosub @POOL2_22382
goto @POOL2_530

:POOL2_502
gosub @POOL2_24480
goto @POOL2_530

:POOL2_516
gosub @POOL2_25674
goto @POOL2_530

:POOL2_530
if 
  not is_int_lvar_equal_to_int_lvar 179@ == 34@
goto_if_false @POOL2_564
set_lvar_int_to_lvar_int 179@ = 34@
goto @POOL2_220

:POOL2_564
gosub @POOL2_25800
gosub @POOL2_59626
if 
  108@ == 0
goto_if_false @POOL2_678
if 
  38@ == 0
goto_if_false @POOL2_662
if 
  37@ == 0
goto_if_false @POOL2_646
goto @POOL2_156
goto @POOL2_655

:POOL2_646
gosub @POOL2_60103
return 

:POOL2_655
goto @POOL2_671

:POOL2_662
gosub @POOL2_60085
return 

:POOL2_671
goto @POOL2_680

:POOL2_678
return 

:POOL2_680
if 
  35@ == -1
goto_if_false @POOL2_972
163@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
$homeless_waiting_flag = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
164@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
$active_pool_table = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
168@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
354@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
355@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
82@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
$active_pool_opponent = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
343@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
209@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
210@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)

:POOL2_972
if 
  35@ == 0
goto_if_false @POOL2_1158
if 
  Object.DoesExist($homeless_waiting_flag)
goto_if_false @POOL2_1158
set_lvar_int_to_var_int 163@ = $homeless_waiting_flag
set_lvar_int_to_var_int 164@ = $active_pool_table
if 
  not Char.IsDead(164@)
goto_if_false @POOL2_1082
Char.SetOnlyDamagedByPlayer(164@, True)
Char.SetProofs(164@, True, True, True, True, True)
Char.SetCollision(164@, False)
203@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Char.SetDecisionMaker(164@, 203@)

:POOL2_1082
$x, $y, $z = Object.GetCoordinates(163@)
World.ClearArea($x, $y, $z, 100.0, True)
World.SetPedDensityMultiplier(0.0)
Camera.SetNearClip(0.01)
Player.MakeGangDisappear
129@ = 0
108@ = 0
gosub @POOL2_56946
35@ += 1

:POOL2_1158
if 
  35@ == 1
goto_if_false @POOL2_1336
if 
  Object.DoesExist(163@)
goto_if_false @POOL2_1336
102@, 103@, 104@ = Object.GetCoordinates(163@)
105@ = Object.GetHeading(163@)
104@ += -0.1
Text.LoadMissionText('POOL')
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1802)
Streaming.RequestModel(#K_POOLQ)
Streaming.RequestAnimation("POOL")

:POOL2_1254
if or
  not Streaming.HasAnimationLoaded("POOL")
  not Streaming.HasModelLoaded(#K_POOLQ)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @POOL2_1292
wait 0
goto @POOL2_1254

:POOL2_1292
Txd.LoadDictionary('LD_POOL')
Txd.LoadSprite(1, "BALL")
Txd.LoadSprite(2, "NIB")
125@ = 0
35@ += 1

:POOL2_1336
if 
  35@ == 2
goto_if_false @POOL2_1368
34@ += 1
35@ = 0

:POOL2_1368
return 
Debugger.Line(98@, 100@, $z, 99@, 100@, $z)
Debugger.Line(98@, 100@, $z, 98@, 101@, $z)
Debugger.Line(99@, 101@, $z, 99@, 100@, $z)
Debugger.Line(99@, 101@, $z, 98@, 101@, $z)
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @POOL2_1475
204@ += -0.0001

:POOL2_1475
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @POOL2_1500
204@ += 0.0001

:POOL2_1500
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @POOL2_1525
206@ += -0.0001

:POOL2_1525
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @POOL2_1550
206@ += 0.0001

:POOL2_1550
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @POOL2_1575
205@ += -0.0001

:POOL2_1575
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @POOL2_1600
205@ += 0.0001

:POOL2_1600
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @POOL2_1625
207@ += -0.0001

:POOL2_1625
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @POOL2_1650
207@ += 0.0001

:POOL2_1650
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @POOL2_2213
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("EDIT_X1 = ")
save_float_to_debug_file 204@
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("EDIT_Y1 = ")
save_float_to_debug_file 206@
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("EDIT_X2 = ")
save_float_to_debug_file 205@
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("EDIT_Y2 = ")
save_float_to_debug_file 207@

:POOL2_2213
if 
  Object.DoesExist(163@)
goto_if_false @POOL2_2279
98@, 100@, $z = Object.GetOffsetInWorldCoords(163@, 204@, 206@, 0.7)
99@, 101@, $z = Object.GetOffsetInWorldCoords(163@, 205@, 207@, 0.7)

:POOL2_2279
return 

:POOL2_2281
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @POOL2_2330
208@ += 1
if 
  208@ > 11
goto_if_false @POOL2_2328
208@ = 0

:POOL2_2328
clear_all_view_variables 

:POOL2_2330
if 
  208@ == 1
goto_if_false @POOL2_2547
set_var_int_to_lvar_int $grav_screen_temp_y = 34@
set_var_int_to_lvar_int $pool_view_debug = 35@
set_var_int_to_lvar_int $6444 = 36@
set_var_int_to_lvar_int $6445 = 108@
set_var_int_to_lvar_int $6446 = 125@
set_var_int_to_lvar_int $6447 = 129@
set_var_int_to_lvar_int $6448 = 213@
set_var_int_to_lvar_int $6449 = 214@
view_integer_variable $grav_screen_temp_y {_p2} "M_STAGE"
view_integer_variable $pool_view_debug {_p2} "M_GOALS"
view_integer_variable $6444 {_p2} "FLAG3"
view_integer_variable $6445 {_p2} "QUIT"
view_integer_variable $6446 {_p2} "PL_CIRCLE_PRESSED"
view_integer_variable $6447 {_p2} "OUTPUT_TEXT"
view_integer_variable $6448 {_p2} "PLAYER1_COLOUR"
view_integer_variable $6449 {_p2} "PLAYER2_COLOUR"

:POOL2_2547
if 
  208@ == 2
goto_if_false @POOL2_2797
set_var_int_to_lvar_int $grav_screen_temp_y = 66@
set_var_int_to_lvar_int $pool_view_debug = 67@
set_var_int_to_lvar_int $6444 = 68@
set_var_int_to_lvar_int $6445 = 69@
set_var_int_to_lvar_int $6446 = 70@
set_var_int_to_lvar_int $6447 = 71@
set_var_int_to_lvar_int $6448 = 72@
set_var_int_to_lvar_int $6449 = 73@
view_integer_variable $grav_screen_temp_y {_p2} "BALL_POTTED[0]"
view_integer_variable $pool_view_debug {_p2} "BALL_POTTED[1]"
view_integer_variable $6444 {_p2} "BALL_POTTED[2]"
view_integer_variable $6445 {_p2} "BALL_POTTED[3]"
view_integer_variable $6446 {_p2} "BALL_POTTED[4]"
view_integer_variable $6447 {_p2} "BALL_POTTED[5]"
view_integer_variable $6448 {_p2} "BALL_POTTED[6]"
view_integer_variable $6449 {_p2} "BALL_POTTED[7]"

:POOL2_2797
if 
  208@ == 3
goto_if_false @POOL2_3053
set_var_int_to_lvar_int $grav_screen_temp_y = 74@
set_var_int_to_lvar_int $pool_view_debug = 75@
set_var_int_to_lvar_int $6444 = 76@
set_var_int_to_lvar_int $6445 = 77@
set_var_int_to_lvar_int $6446 = 78@
set_var_int_to_lvar_int $6447 = 79@
set_var_int_to_lvar_int $6448 = 80@
set_var_int_to_lvar_int $6449 = 81@
view_integer_variable $grav_screen_temp_y {_p2} "BALL_POTTED[8]"
view_integer_variable $pool_view_debug {_p2} "BALL_POTTED[9]"
view_integer_variable $6444 {_p2} "BALL_POTTED[10]"
view_integer_variable $6445 {_p2} "BALL_POTTED[11]"
view_integer_variable $6446 {_p2} "BALL_POTTED[12]"
view_integer_variable $6447 {_p2} "BALL_POTTED[13]"
view_integer_variable $6448 {_p2} "BALL_POTTED[14]"
view_integer_variable $6449 {_p2} "BALL_POTTED[15]"

:POOL2_3053
if 
  208@ == 4
goto_if_false @POOL2_3310
set_var_int_to_lvar_int $grav_screen_temp_y = 215@
set_var_int_to_lvar_int $pool_view_debug = 216@
set_var_int_to_lvar_int $6444 = 225@
set_var_int_to_lvar_int $6445 = 226@
set_var_int_to_lvar_int $6446 = 227@
set_var_int_to_lvar_int $6447 = 228@
set_var_int_to_lvar_int $6448 = 247@
set_var_int_to_lvar_int $6449 = 246@
view_integer_variable $grav_screen_temp_y {_p2} "PLAYER1_IS_HUMAN"
view_integer_variable $pool_view_debug {_p2} "PLAYER2_IS_HUMAN"
view_integer_variable $6444 {_p2} "TURN_PLAYER"
view_integer_variable $6445 {_p2} "CURRENT_CHAR_IS_HUMAN"
view_integer_variable $6446 {_p2} "TURN_COLOUR"
view_integer_variable $6447 {_p2} "TURN_IS_SCRATCH"
view_integer_variable $6448 {_p2} "THIS_CHAR_GOT_TASK"
view_integer_variable $6449 {_p2} "SHOT_PLAYED"

:POOL2_3310
if 
  208@ == 5
goto_if_false @POOL2_3560
set_var_int_to_lvar_int $grav_screen_temp_y = 234@
set_var_int_to_lvar_int $pool_view_debug = 229@
set_var_int_to_lvar_int $6444 = 267@
set_var_int_to_lvar_int $6445 = 268@
set_var_int_to_lvar_int $6446 = 269@
set_var_int_to_lvar_int $6447 = 270@
set_var_int_to_lvar_int $6448 = 274@
set_var_int_to_lvar_int $6449 = 232@
view_integer_variable $grav_screen_temp_y {_p2} "AIM_CUE"
view_integer_variable $pool_view_debug {_p2} "SKIP_CHALK_CUE"
view_integer_variable $6444 {_p2} "NO_OF_BALLS_POTTED_THIS_TURN"
view_integer_variable $6445 {_p2} "SPOTS_POTTED"
view_integer_variable $6446 {_p2} "STRIPES_POTTED"
view_integer_variable $6447 {_p2} "FOUL_TYPE"
view_integer_variable $6448 {_p2} "FIRST_MOVING_BALL"
view_integer_variable $6449 {_p2} "CAMERA_MODE"

:POOL2_3560
if 
  208@ == 6
goto_if_false @POOL2_3898
set_var_int_to_lvar_int $grav_screen_temp_y = 251@
set_var_int_to_lvar_int $pool_view_debug = 252@
set_var_int_to_lvar_int $6444 = 253@
set_var_int_to_lvar_int $6445 = 254@
set_var_int_to_lvar_int $6446 = 255@
set_var_int_to_lvar_int $6447 = 256@
set_var_int_to_lvar_int $6448 = 257@
set_var_int_to_lvar_int $6449 = 258@
view_integer_variable $grav_screen_temp_y {_p2} "BALLS_POTTED_THIS_TURN[0]"
view_integer_variable $pool_view_debug {_p2} "BALLS_POTTED_THIS_TURN[1]"
view_integer_variable $6444 {_p2} "BALLS_POTTED_THIS_TURN[2]"
view_integer_variable $6445 {_p2} "BALLS_POTTED_THIS_TURN[3]"
view_integer_variable $6446 {_p2} "BALLS_POTTED_THIS_TURN[4]"
view_integer_variable $6447 {_p2} "BALLS_POTTED_THIS_TURN[5]"
view_integer_variable $6448 {_p2} "BALLS_POTTED_THIS_TURN[6]"
view_integer_variable $6449 {_p2} "BALLS_POTTED_THIS_TURN[7]"

:POOL2_3898
if 
  208@ == 7
goto_if_false @POOL2_4242
set_var_int_to_lvar_int $grav_screen_temp_y = 259@
set_var_int_to_lvar_int $pool_view_debug = 260@
set_var_int_to_lvar_int $6444 = 261@
set_var_int_to_lvar_int $6445 = 262@
set_var_int_to_lvar_int $6446 = 263@
set_var_int_to_lvar_int $6447 = 264@
set_var_int_to_lvar_int $6448 = 265@
set_var_int_to_lvar_int $6449 = 266@
view_integer_variable $grav_screen_temp_y {_p2} "BALLS_POTTED_THIS_TURN[8]"
view_integer_variable $pool_view_debug {_p2} "BALLS_POTTED_THIS_TURN[9]"
view_integer_variable $6444 {_p2} "BALLS_POTTED_THIS_TURN[10]"
view_integer_variable $6445 {_p2} "BALLS_POTTED_THIS_TURN[11]"
view_integer_variable $6446 {_p2} "BALLS_POTTED_THIS_TURN[12]"
view_integer_variable $6447 {_p2} "BALLS_POTTED_THIS_TURN[13]"
view_integer_variable $6448 {_p2} "BALLS_POTTED_THIS_TURN[14]"
view_integer_variable $6449 {_p2} "BALLS_POTTED_THIS_TURN[15]"

:POOL2_4242
if 
  208@ == 8
goto_if_false @POOL2_4548
set_var_int_to_lvar_int $grav_screen_temp_y = 109@
set_var_int_to_lvar_int $pool_view_debug = 110@
set_var_int_to_lvar_int $6444 = 111@
set_var_int_to_lvar_int $6445 = 112@
set_var_int_to_lvar_int $6446 = 113@
set_var_int_to_lvar_int $6447 = 114@
set_var_int_to_lvar_int $6448 = 115@
set_var_int_to_lvar_int $6449 = 116@
view_integer_variable $grav_screen_temp_y {_p2} "BALL_IS_STATIONARY[0]"
view_integer_variable $pool_view_debug {_p2} "BALL_IS_STATIONARY[1]"
view_integer_variable $6444 {_p2} "BALL_IS_STATIONARY[2]"
view_integer_variable $6445 {_p2} "BALL_IS_STATIONARY[3]"
view_integer_variable $6446 {_p2} "BALL_IS_STATIONARY[4]"
view_integer_variable $6447 {_p2} "BALL_IS_STATIONARY[5]"
view_integer_variable $6448 {_p2} "BALL_IS_STATIONARY[6]"
view_integer_variable $6449 {_p2} "BALL_IS_STATIONARY[7]"

:POOL2_4548
if 
  208@ == 9
goto_if_false @POOL2_4860
set_var_int_to_lvar_int $grav_screen_temp_y = 117@
set_var_int_to_lvar_int $pool_view_debug = 118@
set_var_int_to_lvar_int $6444 = 119@
set_var_int_to_lvar_int $6445 = 120@
set_var_int_to_lvar_int $6446 = 121@
set_var_int_to_lvar_int $6447 = 122@
set_var_int_to_lvar_int $6448 = 123@
set_var_int_to_lvar_int $6449 = 124@
view_integer_variable $grav_screen_temp_y {_p2} "BALL_IS_STATIONARY[8]"
view_integer_variable $pool_view_debug {_p2} "BALL_IS_STATIONARY[9]"
view_integer_variable $6444 {_p2} "BALL_IS_STATIONARY[10]"
view_integer_variable $6445 {_p2} "BALL_IS_STATIONARY[11]"
view_integer_variable $6446 {_p2} "BALL_IS_STATIONARY[12]"
view_integer_variable $6447 {_p2} "BALL_IS_STATIONARY[13]"
view_integer_variable $6448 {_p2} "BALL_IS_STATIONARY[14]"
view_integer_variable $6449 {_p2} "BALL_IS_STATIONARY[15]"

:POOL2_4860
if 
  208@ == 10
goto_if_false @POOL2_5118
set_var_float_to_lvar_float $6450 = 48@
set_var_float_to_lvar_float $pool_view_debug2 = 49@
set_var_float_to_lvar_float $6452 = 50@
set_var_float_to_lvar_float $6453 = 51@
set_var_float_to_lvar_float $6454 = 98@
set_var_float_to_lvar_float $6455 = 99@
set_var_float_to_lvar_float $6456 = 100@
set_var_float_to_lvar_float $6457 = 101@
view_float_variable $6450 {_p2} "CUE_BALL_SPEED"
view_float_variable $pool_view_debug2 {_p2} "CUE_BALL_ROT_X"
view_float_variable $6452 {_p2} "CUE_BALL_ROT_Y"
view_float_variable $6453 {_p2} "CUE_BALL_ROT_Z"
view_float_variable $6454 {_p2} "POOL_TABLE_MIN_X"
view_float_variable $6455 {_p2} "POOL_TABLE_MAX_X"
view_float_variable $6456 {_p2} "POOL_TABLE_MIN_Y"
view_float_variable $6457 {_p2} "POOL_TABLE_MAX_Y"

:POOL2_5118
if 
  208@ == 11
goto_if_false @POOL2_5317
set_var_int_to_lvar_int $grav_screen_temp_y = TIMERA
set_var_int_to_lvar_int $pool_view_debug = TIMERB
set_var_float_to_lvar_float $6452 = 641@
set_var_float_to_lvar_float $6453 = 199@
set_var_float_to_lvar_float $6454 = 200@
set_var_int_to_lvar_int $6447 = 273@
view_integer_variable $grav_screen_temp_y {_p2} "TIMERA"
view_integer_variable $pool_view_debug {_p2} "TIMERB"
view_float_variable $6452 {_p2} "BALL_TURN_MASS"
view_float_variable $6453 {_p2} "POOL_STOP_VELOCITY"
view_float_variable $6454 {_p2} "POOL_STOP_ROTATION_VELOCITY"
view_integer_variable $6447 {_p2} "BALL_STRIKES_CUSHION"

:POOL2_5317
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @POOL2_5421
if 
  215@ == 1
goto_if_false @POOL2_5391
215@ = 0
write_debug "CHEAT_PLAYER1_NOT_HUMAN"
goto @POOL2_5421

:POOL2_5391
215@ = 1
write_debug "CHEAT_PLAYER1_HUMAN"

:POOL2_5421
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @POOL2_5495
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_5495
$x, $y, $z = Object.GetOffsetInWorldCoords(82@, 0.0, 0.01, 0.0)
Object.SetCoordinates(82@, $x, $y, $z)

:POOL2_5495
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @POOL2_5569
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_5569
$x, $y, $z = Object.GetOffsetInWorldCoords(82@, 0.0, -0.01, 0.0)
Object.SetCoordinates(82@, $x, $y, $z)

:POOL2_5569
return 

:POOL2_5571
if 
  35@ == -1
goto_if_false @POOL2_5611
107@ = Object.Create(#K_POOLQ, 0.0, 0.0, 0.0)

:POOL2_5611
if 
  35@ == 0
goto_if_false @POOL2_7285
Hud.Display(True)
Hud.DisplayRadar(False)
$dealer_got_bj = Player.StoreScore($player1)
if 
  is_int_var_greater_than_int_var $active_initial_cue > $dealer_got_bj
goto_if_false @POOL2_5684
108@ = 1
Text.ClearPrints
Camera.SetBehindPlayer
Camera.RestoreJumpcut
goto @POOL2_7239

:POOL2_5684
World.ClearArea(102@, 103@, 104@, 15.0, True)
Object.SetCoordinates(163@, 102@, 103@, 104@)
98@, 100@, $z = Object.GetOffsetInWorldCoords(163@, -0.9098, -0.4589, 0.7)
99@, 101@, $z = Object.GetOffsetInWorldCoords(163@, 0.9242, 0.4809, 0.7)
if 
  is_float_lvar_greater_than_float_lvar 98@ > 99@
goto_if_false @POOL2_5817
set_var_float_to_lvar_float $x = 98@
set_lvar_float_to_lvar_float 98@ = 99@
set_lvar_float_to_var_float 99@ = $x

:POOL2_5817
if 
  is_float_lvar_greater_than_float_lvar 100@ > 101@
goto_if_false @POOL2_5860
set_var_float_to_lvar_float $y = 100@
set_lvar_float_to_lvar_float 100@ = 101@
set_lvar_float_to_var_float 101@ = $y

:POOL2_5860
World.SetPoolTableCoords(98@, 100@, $z, 99@, 101@, $z)
175@, 176@, 177@ = Object.GetOffsetInWorldCoords(163@, 0.0, 0.0, 1.5)
42@ = Math.GetDistanceBetweenCoords2D(98@, 100@, 99@, 100@)
43@ = Math.GetDistanceBetweenCoords2D(98@, 100@, 98@, 101@)
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_6027
set_lvar_float_to_lvar_float 42@ = 98@
add_float_lvar_to_float_lvar 42@ += 99@
42@ /= 2.0
set_lvar_float_to_lvar_float 55@ = 42@
set_lvar_float_to_lvar_float 61@ = 100@
set_lvar_float_to_lvar_float 58@ = 42@
set_lvar_float_to_lvar_float 64@ = 101@
goto @POOL2_6085

:POOL2_6027
set_lvar_float_to_lvar_float 42@ = 100@
add_float_lvar_to_float_lvar 42@ += 101@
42@ /= 2.0
set_lvar_float_to_lvar_float 55@ = 98@
set_lvar_float_to_lvar_float 61@ = 42@
set_lvar_float_to_lvar_float 58@ = 99@
set_lvar_float_to_lvar_float 64@ = 42@

:POOL2_6085
set_lvar_float_to_lvar_float 54@ = 98@
set_lvar_float_to_lvar_float 60@ = 100@
set_lvar_float_to_lvar_float 56@ = 98@
set_lvar_float_to_lvar_float 62@ = 101@
set_lvar_float_to_lvar_float 57@ = 99@
set_lvar_float_to_lvar_float 63@ = 101@
set_lvar_float_to_lvar_float 59@ = 99@
set_lvar_float_to_lvar_float 65@ = 100@
52@ = 0.037
set_lvar_float_to_lvar_float 53@ = 52@
53@ *= 2.0
39@ = 0

:POOL2_6184
if 
  16 > 39@
goto_if_false @POOL2_6245
if 
  Object.DoesExist(82@(39@,16i))
goto_if_false @POOL2_6231
Object.Delete(82@(39@,16i))

:POOL2_6231
39@ += 1
goto @POOL2_6184

:POOL2_6245
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, -0.2734375, -0.0546875, 0.9296875)
82@ = Object.CreateNoOffset(#K_POOLBALLCUE, $x, $y, $z)
$heading = Object.GetHeading(163@)
$heading += 270.0
Object.SetHeading(82@, $heading)
554@, 555@, 556@ = Object.GetOffsetInWorldCoords(163@, 0.3408, -0.0284, 0.9297)
557@ = Object.GetHeading(163@)
557@ += 90.0
83@ = Object.CreateNoOffset(#K_POOLBALLSPT01, 554@, 555@, 556@)
84@ = Object.CreateNoOffset(#K_POOLBALLSPT02, 0.0, 0.0, 0.0)
85@ = Object.CreateNoOffset(#K_POOLBALLSPT03, 0.0, 0.0, 0.0)
86@ = Object.CreateNoOffset(#K_POOLBALLSPT04, 0.0, 0.0, 0.0)
87@ = Object.CreateNoOffset(#K_POOLBALLSPT05, 0.0, 0.0, 0.0)
88@ = Object.CreateNoOffset(#K_POOLBALLSPT06, 0.0, 0.0, 0.0)
89@ = Object.CreateNoOffset(#K_POOLBALLSPT07, 0.0, 0.0, 0.0)
90@ = Object.CreateNoOffset(#K_POOLBALL8, 0.0, 0.0, 0.0)
91@ = Object.CreateNoOffset(#K_POOLBALLSTP01, 0.0, 0.0, 0.0)
92@ = Object.CreateNoOffset(#K_POOLBALLSTP02, 0.0, 0.0, 0.0)
93@ = Object.CreateNoOffset(#K_POOLBALLSTP03, 0.0, 0.0, 0.0)
94@ = Object.CreateNoOffset(#K_POOLBALLSTP04, 0.0, 0.0, 0.0)
95@ = Object.CreateNoOffset(#K_POOLBALLSTP05, 0.0, 0.0, 0.0)
96@ = Object.CreateNoOffset(#K_POOLBALLSTP06, 0.0, 0.0, 0.0)
97@ = Object.CreateNoOffset(#K_POOLBALLSTP07, 0.0, 0.0, 0.0)
gosub @POOL2_49954
Hud.DisplayRadar(False)
Player.SetControl($player1, False)
Text.ClearHelp
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, -0.5261, -1.9684, 1.637)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, -0.0746, -1.0853, 1.5092)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
if 
  not Char.IsDead(164@)
goto_if_false @POOL2_7053
Char.ClearTasksImmediately(164@)
Char.DropObject(164@, False)
if 
  Object.DoesExist($active_pool_opponent)
goto_if_false @POOL2_6853
Object.Delete($active_pool_opponent)

:POOL2_6853
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, 0.0219, -1.1236, 0.0363)
Char.SetCoordinates(164@, $x, $y, $z)
set_lvar_float_to_lvar_float 42@ = 105@
42@ += 130.0
Char.SetHeading(164@, 42@)
47@ = Sequence.Open()
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, -0.5261, -1.9684, 1.637)
Task.LookAtCoord(-1, $x, $y, $z, 999999)
if 
  108@ == 0
goto_if_false @POOL2_7035
Task.PlayAnimNonInterruptable(-1, "POOL_IDLE_STANCE", "POOL", 1000.0, True, False, False, True, -1)

:POOL2_7035
Sequence.Close(47@)
Char.PerformSequence(164@, 47@)
Sequence.Clear(47@)

:POOL2_7053
if 
  not Object.DoesExist(107@)
goto_if_false @POOL2_7098
107@ = Object.Create(#K_POOLQ, 0.0, 0.0, 0.0)
Object.SetCollision(107@, False)

:POOL2_7098
if 
  Player.IsPlaying($player1)
goto_if_false @POOL2_7212
Char.ClearTasksImmediately($scplayer)
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, -1.9295, -2.2083, 0.0363)
Char.SetCoordinates($scplayer, $x, $y, $z)
set_lvar_float_to_var_float 217@ = $x
set_lvar_float_to_var_float 218@ = $y
set_lvar_float_to_var_float 219@ = $z
set_lvar_float_to_lvar_float 42@ = 105@
42@ += 390.0
Char.SetHeading($scplayer, 42@)

:POOL2_7212
set_lvar_int_to_lvar_int 354@ = 164@
set_lvar_int_to_lvar_int 355@ = 107@
gosub @POOL2_30078
Game.SetScriptCoopGame(False)

:POOL2_7239
start_new_script @CLEANAU 
Camera.DoFade(1000, Fade.In)

:POOL2_7254
if 
  Camera.GetFadingStatus
goto_if_false @POOL2_7278
wait 0
goto @POOL2_7254

:POOL2_7278
35@ += 1

:POOL2_7285
if 
  35@ == 1
goto_if_false @POOL2_7718
if 
  not Char.IsDead(164@)
goto_if_false @POOL2_7700
if 
  Char.IsModel(164@, 66)
goto_if_false @POOL2_7522
39@ = Math.RandomIntInRange(0, 3)
switch_start 39@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @POOL2_7496 {caseNum1} 0 {caseLabel1} @POOL2_7409 {caseNum2} 1 {caseLabel2} @POOL2_7438 {caseNum3} 2 {caseLabel3} @POOL2_7467 {caseNum4} -1 {caseLabel4} @POOL2_7496 {caseNum5} -1 {caseLabel5} @POOL2_7496 {caseNum6} -1 {caseLabel6} @POOL2_7496 {caseNum7} -1 {caseLabel7} @POOL2_7496

:POOL2_7409
set_var_text_label s$audio_string = 'POOL_B1'
set_var_int_to_constant $audio_sound_file = 25400
goto @POOL2_7496

:POOL2_7438
set_var_text_label s$audio_string = 'POOL_B2'
set_var_int_to_constant $audio_sound_file = 25401
goto @POOL2_7496

:POOL2_7467
set_var_text_label s$audio_string = 'POOL_B3'
set_var_int_to_constant $audio_sound_file = 25402
goto @POOL2_7496

:POOL2_7496
start_new_script @AUDIOL 164@ 0 1 1 0 
goto @POOL2_7700

:POOL2_7522
39@ = Math.RandomIntInRange(0, 3)
switch_start 39@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @POOL2_7681 {caseNum1} 0 {caseLabel1} @POOL2_7594 {caseNum2} 1 {caseLabel2} @POOL2_7623 {caseNum3} 2 {caseLabel3} @POOL2_7652 {caseNum4} -1 {caseLabel4} @POOL2_7681 {caseNum5} -1 {caseLabel5} @POOL2_7681 {caseNum6} -1 {caseLabel6} @POOL2_7681 {caseNum7} -1 {caseLabel7} @POOL2_7681

:POOL2_7594
set_var_text_label s$audio_string = 'POOL_B4'
set_var_int_to_constant $audio_sound_file = 25403
goto @POOL2_7681

:POOL2_7623
set_var_text_label s$audio_string = 'POOL_B5'
set_var_int_to_constant $audio_sound_file = 25404
goto @POOL2_7681

:POOL2_7652
set_var_text_label s$audio_string = 'POOL_B6'
set_var_int_to_constant $audio_sound_file = 25405
goto @POOL2_7681

:POOL2_7681
start_new_script @AUDIOL 164@ 0 1 1 0 

:POOL2_7700
Text.UseCommands(True)
TIMERA = 0
35@ += 1

:POOL2_7718
if 
  35@ == 2
goto_if_false @POOL2_7878
if or
  not Text.IsMessageBeingDisplayed
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @POOL2_7878
Text.ClearPrints
if 
  Player.IsPlaying($player1)
goto_if_false @POOL2_7781
159@ = Player.StoreScore($player1)

:POOL2_7781
Text.SetHelpMessageBoxSize(200)
Text.PrintHelpForever('PL_H1')
$active_initial_cue = 50
$pool_min_bet = 1000
set_lvar_int_to_var_int 161@ = $active_initial_cue
set_lvar_int_to_var_int 162@ = $active_initial_cue
set_lvar_int_to_var_int 155@ = $active_initial_cue
set_lvar_int_to_var_int 39@ = $active_initial_cue
39@ *= -1
Player.AddScore($player1, 39@)
Hud.SwitchWidescreen(False)
start_new_script @CLEANAU 
35@ += 1

:POOL2_7878
if 
  35@ == 3
goto_if_false @POOL2_9058
gosub @POOL2_53659
$dealer_got_bj = Player.StoreScore($player1)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @POOL2_8337
if and
  126@ <> 1
  126@ <> -1
goto_if_false @POOL2_8286
if 
  155@ >= 10000
goto_if_false @POOL2_7987
160@ = 1000
goto @POOL2_8091

:POOL2_7987
if 
  155@ >= 1000
goto_if_false @POOL2_8020
160@ = 100
goto @POOL2_8091

:POOL2_8020
if 
  155@ >= 100
goto_if_false @POOL2_8052
160@ = 10
goto @POOL2_8091

:POOL2_8052
if 
  155@ == 0
goto_if_false @POOL2_8084
160@ = 2
goto @POOL2_8091

:POOL2_8084
160@ = 1

:POOL2_8091
if 
  is_int_lvar_greater_than_int_var 160@ > $dealer_got_bj
goto_if_false @POOL2_8118
set_lvar_int_to_var_int 160@ = $dealer_got_bj

:POOL2_8118
set_lvar_int_to_lvar_int 39@ = 155@
add_int_lvar_to_int_lvar 39@ += 160@
if 
  is_int_lvar_greater_than_int_var 39@ > $pool_min_bet
goto_if_false @POOL2_8169
set_lvar_int_to_var_int 160@ = $pool_min_bet
sub_int_lvar_from_int_lvar 160@ -= 155@

:POOL2_8169
if 
  0 > 160@
goto_if_false @POOL2_8194
160@ *= -1

:POOL2_8194
add_int_lvar_to_int_lvar 155@ += 160@
add_int_lvar_to_int_lvar 161@ += 160@
add_int_lvar_to_int_lvar 162@ += 160@
160@ *= -1
Player.AddScore($player1, 160@)
126@ += 1
if 
  126@ > 1
goto_if_false @POOL2_8272
126@ = 2
goto @POOL2_8279

:POOL2_8272
TIMERA = 0

:POOL2_8279
goto @POOL2_8330

:POOL2_8286
if 
  126@ == 1
goto_if_false @POOL2_8330
if 
  TIMERA > 500
goto_if_false @POOL2_8330
126@ = 2

:POOL2_8330
goto @POOL2_8711

:POOL2_8337
if 
  126@ <> 0
goto_if_false @POOL2_8362
126@ = 0

:POOL2_8362
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @POOL2_8686
if 
  128@ <> 1
goto_if_false @POOL2_8653
if 
  155@ > 10000
goto_if_false @POOL2_8431
160@ = -1000
goto @POOL2_8503

:POOL2_8431
if 
  155@ > 1000
goto_if_false @POOL2_8464
160@ = -100
goto @POOL2_8503

:POOL2_8464
if 
  155@ > 100
goto_if_false @POOL2_8496
160@ = -10
goto @POOL2_8503

:POOL2_8496
160@ = -1

:POOL2_8503
set_lvar_int_to_lvar_int 39@ = 155@
add_int_lvar_to_int_lvar 39@ += 160@
if 
  is_int_var_greater_than_int_lvar $active_initial_cue > 39@
goto_if_false @POOL2_8561
set_lvar_int_to_lvar_int 160@ = 155@
sub_int_var_from_int_lvar 160@ -= $active_initial_cue
160@ *= -1

:POOL2_8561
add_int_lvar_to_int_lvar 155@ += 160@
add_int_lvar_to_int_lvar 161@ += 160@
add_int_lvar_to_int_lvar 162@ += 160@
160@ *= -1
Player.AddScore($player1, 160@)
128@ += 1
if 
  128@ > 1
goto_if_false @POOL2_8639
128@ = 2
goto @POOL2_8646

:POOL2_8639
TIMERA = 0

:POOL2_8646
goto @POOL2_8679

:POOL2_8653
if 
  TIMERA > 500
goto_if_false @POOL2_8679
128@ = 2

:POOL2_8679
goto @POOL2_8711

:POOL2_8686
if 
  128@ <> 0
goto_if_false @POOL2_8711
128@ = 0

:POOL2_8711
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @POOL2_8780
if 
  not Char.IsDead(164@)
goto_if_false @POOL2_8752
Char.SetMoney(164@, 162@)

:POOL2_8752
161@ = 0
178@ = 0
35@ = 99
goto @POOL2_8841

:POOL2_8780
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.Start)
goto_if_false @POOL2_8841
disable_2nd_pad_for_debug 1
Game.SetScriptCoopGame(True)
$disable_debug = 1
Player.AddScore($player1, 161@)
161@ = 0
178@ = 1
35@ = 99

:POOL2_8841
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @POOL2_9033
if 
  127@ == 0
goto_if_false @POOL2_9026
if 
  not Char.IsDead(209@)
goto_if_false @POOL2_8943
219@ += 1.1
Char.ClearTasksImmediately(209@)
219@ = World.GetGroundZFor3DCoord(217@, 218@, 219@)
Char.SetCoordinates(209@, 217@, 218@, 219@)
Char.SetHeading(209@, 220@)

:POOL2_8943
if 
  not Char.IsDead(210@)
goto_if_false @POOL2_9010
223@ += 1.1
Char.ClearTasksImmediately(210@)
223@ = World.GetGroundZFor3DCoord(221@, 222@, 223@)
Char.SetCoordinates(210@, 221@, 222@, 223@)
Char.SetHeading(210@, 224@)

:POOL2_9010
Text.ClearHelp
108@ = 1
127@ = 1

:POOL2_9026
goto @POOL2_9058

:POOL2_9033
if 
  127@ == 1
goto_if_false @POOL2_9058
127@ = 0

:POOL2_9058
if 
  35@ == 99
goto_if_false @POOL2_9117
if 
  not Char.IsDead(164@)
goto_if_false @POOL2_9097
Char.ClearLookAt(164@)

:POOL2_9097
Hud.Display(False)
Text.ClearHelp
35@ = 0
34@ += 1

:POOL2_9117
return 

:POOL2_9119
if 
  35@ == -1
goto_if_false @POOL2_9275
209@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
210@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
211@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
106@ = Object.Create(#K_POOLQ, 0.0, 0.0, 0.0)
107@ = Object.Create(#K_POOLQ, 0.0, 0.0, 0.0)
212@ = Object.Create(#K_POOLQ, 0.0, 0.0, 0.0)

:POOL2_9275
if 
  35@ == 0
goto_if_false @POOL2_9749
if 
  178@ == 0
goto_if_false @POOL2_9346
213@ = -1
214@ = -1
215@ = 1
216@ = 0
goto @POOL2_9374

:POOL2_9346
213@ = -1
214@ = -1
215@ = 1
216@ = 1

:POOL2_9374
217@, 218@, 219@ = Object.GetOffsetInWorldCoords(163@, 0.0, 1.8, 0.0)
set_lvar_float_to_lvar_float 220@ = 105@
220@ += 180.0
221@, 222@, 223@ = Object.GetOffsetInWorldCoords(163@, 0.0, -1.8, 0.0)
set_lvar_float_to_lvar_float 224@ = 105@
set_lvar_int_to_var_int 209@ = $scplayer
set_lvar_int_to_lvar_int 210@ = 164@
if 
  not Object.DoesExist(106@)
goto_if_false @POOL2_9519
106@ = Object.Create(#K_POOLQ, 0.0, 0.0, 0.0)
Object.SetCollision(106@, False)

:POOL2_9519
if 
  not Object.DoesExist(107@)
goto_if_false @POOL2_9564
107@ = Object.Create(#K_POOLQ, 0.0, 0.0, 0.0)
Object.SetCollision(107@, False)

:POOL2_9564
if 
  not Char.IsDead(209@)
goto_if_false @POOL2_9609
Char.SetCoordinates(209@, 217@, 218@, 219@)
Char.SetHeading(209@, 220@)
Char.HideWeaponForScriptedCutscene(209@, True)

:POOL2_9609
if 
  not Char.IsDead(210@)
goto_if_false @POOL2_9654
Char.SetCoordinates(210@, 221@, 222@, 223@)
Char.SetHeading(210@, 224@)
Char.HideWeaponForScriptedCutscene(210@, True)

:POOL2_9654
225@ = 1
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
set_lvar_int_to_lvar_int 226@ = 215@
set_lvar_int_to_lvar_int 227@ = 213@
228@ = 1
set_lvar_int_to_constant 180@ = 0
274@ = -1
275@ = 0
232@ = 1
184@ = 1
35@ = 0
34@ += 1

:POOL2_9749
return 

:POOL2_9751
if 
  229@ == 0
goto_if_false @POOL2_10288
if 
  35@ == 0
goto_if_false @POOL2_10136
if 
  not Char.IsDead(209@)
goto_if_false @POOL2_9849
219@ += 1.0
219@ = World.GetGroundZFor3DCoord(217@, 218@, 219@)
Char.SetCoordinates(209@, 217@, 218@, 219@)
Char.SetHeading(209@, 220@)

:POOL2_9849
if 
  not Char.IsDead(210@)
goto_if_false @POOL2_9911
223@ += 1.1
223@ = World.GetGroundZFor3DCoord(221@, 222@, 223@)
Char.SetCoordinates(210@, 221@, 222@, 223@)
Char.SetHeading(210@, 224@)

:POOL2_9911
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_10136
Char.DropObject(211@, False)
$x, $y, $z = Char.GetOffsetInWorldCoords(211@, 1.0, 3.0, 1.0)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
Camera.PointAtChar(211@, CameraMode.Fixed, SwitchType.JumpCut)
47@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "POOL_CHALKCUE", "POOL", 1000.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable(-1, "POOL_IDLE_STANCE", "POOL", 4.0, True, False, False, False, -1)
Sequence.Close(47@)
if 
  108@ == 0
goto_if_false @POOL2_10117
Char.PerformSequence(211@, 47@)

:POOL2_10117
Sequence.Clear(47@)
TIMERA = 0
35@ += 1

:POOL2_10136
if 
  35@ == 1
goto_if_false @POOL2_10214
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_10214
39@ = Char.GetScriptTaskStatus(211@, 1560)
if or
  is_int_lvar_equal_to_constant 39@ == 7
  TIMERA > 3000
goto_if_false @POOL2_10214
35@ = 99

:POOL2_10214
if 
  TIMERA > 500
goto_if_false @POOL2_10281
if 
  Pad.IsButtonPressed(180@, Button.Cross)
goto_if_false @POOL2_10281
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_10281
126@ = 1
35@ = 99

:POOL2_10281
goto @POOL2_10311

:POOL2_10288
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_10311
35@ = 99

:POOL2_10311
if 
  35@ == 99
goto_if_false @POOL2_10352
Text.ClearHelp
TIMERA = 0
34@ += 1
35@ = 0

:POOL2_10352
if 
  Pad.IsButtonPressed(180@, Button.Triangle)
goto_if_false @POOL2_10543
if and
  127@ == 0
  183@ > 1000
goto_if_false @POOL2_10536
if 
  not Char.IsDead(209@)
goto_if_false @POOL2_10458
219@ += 1.1
219@ = World.GetGroundZFor3DCoord(217@, 218@, 219@)
Char.SetCoordinates(209@, 217@, 218@, 219@)
Char.SetHeading(209@, 220@)

:POOL2_10458
if 
  not Char.IsDead(210@)
goto_if_false @POOL2_10520
223@ += 1.1
223@ = World.GetGroundZFor3DCoord(221@, 222@, 223@)
Char.SetCoordinates(210@, 221@, 222@, 223@)
Char.SetHeading(210@, 224@)

:POOL2_10520
Text.ClearHelp
108@ = 1
127@ = 1

:POOL2_10536
goto @POOL2_10575

:POOL2_10543
if 
  127@ == 1
goto_if_false @POOL2_10568
127@ = 0

:POOL2_10568
183@ = 0

:POOL2_10575
return 

:POOL2_10577
if and
  228@ <> 0
  226@ == 1
goto_if_false @POOL2_10609
gosub @POOL2_58512

:POOL2_10609
if 
  228@ <> 0
goto_if_false @POOL2_10893
if 
  66@ == 1
goto_if_false @POOL2_10778
if 
  not Object.DoesExist(82@)
goto_if_false @POOL2_10771
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, -0.35, 0.0, 0.9296875)
set_lvar_float_to_var_float 618@ = $x
set_lvar_float_to_var_float 619@ = $y
gosub @POOL2_53139
set_var_float_to_lvar_float $x = 618@
set_var_float_to_lvar_float $y = 619@
82@ = Object.CreateNoOffset(#K_POOLBALLCUE, $x, $y, $z)
$heading = Object.GetHeading(163@)
$heading += 270.0
Object.SetHeading(82@, $heading)

:POOL2_10771
66@ = 0

:POOL2_10778
if 
  Pad.IsButtonPressed(180@, Button.Square)
goto_if_false @POOL2_10868
if 
  128@ == 0
goto_if_false @POOL2_10861
if 
  198@ == 2
goto_if_false @POOL2_10846
198@ = 0
goto @POOL2_10854

:POOL2_10846
201@ = 3001

:POOL2_10854
128@ = 1

:POOL2_10861
goto @POOL2_10893

:POOL2_10868
if 
  128@ == 1
goto_if_false @POOL2_10893
128@ = 0

:POOL2_10893
if 
  228@ == 1
goto_if_false @POOL2_11127
if 
  35@ == 0
goto_if_false @POOL2_11127
if 
  226@ == 1
goto_if_false @POOL2_11044
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, -0.35, 0.0, 0.0)
$heading = Object.GetHeading(163@)
$heading += 270.0
Object.SetCoordinates(82@, $x, $y, 556@)
Object.SetHeading(82@, $heading)
TIMERA = 0
35@ = 99
goto @POOL2_12173
goto @POOL2_11127

:POOL2_11044
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, -0.35, 0.0, 0.0)
$heading = Object.GetHeading(163@)
$heading += 270.0
Object.SetCoordinates(82@, $x, $y, 556@)
Object.SetHeading(82@, $heading)
35@ = 99
goto @POOL2_12173

:POOL2_11127
if 
  228@ == 2
goto_if_false @POOL2_11918
if 
  35@ == 0
goto_if_false @POOL2_11543
if 
  226@ == 1
goto_if_false @POOL2_11421
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, -0.35, 0.0, 0.0)
$heading = Object.GetHeading(163@)
$heading += 270.0
set_lvar_float_to_var_float 618@ = $x
set_lvar_float_to_var_float 619@ = $y
gosub @POOL2_53139
set_var_float_to_lvar_float $x = 618@
set_var_float_to_lvar_float $y = 619@
Object.SetCoordinates(82@, $x, $y, 556@)
Object.SetHeading(82@, $heading)
TIMERA = 0
35@ += 1
198@ = 0
201@ = 0
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, 0.0, -0.001, 2.5)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, 0.0, 0.001, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
goto @POOL2_11543

:POOL2_11421
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, -0.35, 0.0, 0.0)
$heading = Object.GetHeading(163@)
$heading += 270.0
set_lvar_float_to_var_float 618@ = $x
set_lvar_float_to_var_float 619@ = $y
gosub @POOL2_53139
set_var_float_to_lvar_float $x = 618@
set_var_float_to_lvar_float $y = 619@
Object.SetCoordinates(82@, $x, $y, 556@)
Object.SetHeading(82@, $heading)
35@ = 99
goto @POOL2_12173

:POOL2_11543
if 
  35@ == 1
goto_if_false @POOL2_11918
$x, $y, $z = Object.GetCoordinates(82@)
39@ = 0
if or
  Pad.IsButtonPressed(180@, Button.LeftStickX)
  Pad.IsButtonPressed(180@, Button.LeftStickY)
goto_if_false @POOL2_11614
39@ = 1

:POOL2_11614
if 
  39@ == 1
goto_if_false @POOL2_11829
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(180@)
cset_lvar_float_to_var_int 231@ =# $LStickX
cset_lvar_float_to_var_int 230@ =# $LStickY
231@ /= 128.0
230@ /= -128.0
231@ *= 0.01
230@ *= 0.01
gosub @POOL2_53508
mult_float_var_by_float_lvar $cam_z2 *= 230@
mult_float_var_by_float_lvar $cam_rvec_x *= 230@
add_float_var_to_float_var $x += $cam_z2
add_float_var_to_float_var $y += $cam_rvec_x
mult_float_var_by_float_lvar $cam_nvec_x *= 231@
mult_float_var_by_float_lvar $cam_nvec_y *= 231@
add_float_var_to_float_var $x += $cam_nvec_x
add_float_var_to_float_var $y += $cam_nvec_y
set_lvar_float_to_var_float 618@ = $x
set_lvar_float_to_var_float 619@ = $y
gosub @POOL2_53139
set_var_float_to_lvar_float $x = 618@
set_var_float_to_lvar_float $y = 619@
Object.SetCoordinates(82@, $x, $y, 556@)

:POOL2_11829
if 
  Pad.IsButtonPressed(180@, Button.Cross)
goto_if_false @POOL2_11893
if 
  126@ == 0
goto_if_false @POOL2_11886
35@ = 99
126@ = 1
goto @POOL2_12173

:POOL2_11886
goto @POOL2_11918

:POOL2_11893
if 
  126@ == 1
goto_if_false @POOL2_11918
126@ = 0

:POOL2_11918
if 
  228@ == 0
goto_if_false @POOL2_11950
35@ = 99
goto @POOL2_12173

:POOL2_11950
if 
  Pad.IsButtonPressed(180@, Button.Triangle)
goto_if_false @POOL2_12141
if and
  127@ == 0
  183@ > 1000
goto_if_false @POOL2_12134
if 
  not Char.IsDead(209@)
goto_if_false @POOL2_12056
219@ += 1.1
219@ = World.GetGroundZFor3DCoord(217@, 218@, 219@)
Char.SetCoordinates(209@, 217@, 218@, 219@)
Char.SetHeading(209@, 220@)

:POOL2_12056
if 
  not Char.IsDead(210@)
goto_if_false @POOL2_12118
223@ += 1.1
223@ = World.GetGroundZFor3DCoord(221@, 222@, 223@)
Char.SetCoordinates(210@, 221@, 222@, 223@)
Char.SetHeading(210@, 224@)

:POOL2_12118
Text.ClearHelp
108@ = 1
127@ = 1

:POOL2_12134
goto @POOL2_12173

:POOL2_12141
if 
  127@ == 1
goto_if_false @POOL2_12166
127@ = 0

:POOL2_12166
183@ = 0

:POOL2_12173
if 
  35@ == 99
goto_if_false @POOL2_12207
34@ += 1
35@ = 0
Text.ClearHelp

:POOL2_12207
return 

:POOL2_12209
if 
  226@ == 1
goto_if_false @POOL2_14928
gosub @POOL2_56162
if 
  35@ == -1
goto_if_false @POOL2_12274
234@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)

:POOL2_12274
if 
  35@ == 0
goto_if_false @POOL2_13448
if 
  not Char.IsDead(209@)
goto_if_false @POOL2_12354
219@ += 1.1
219@ = World.GetGroundZFor3DCoord(217@, 218@, 219@)
Char.SetCoordinates(209@, 217@, 218@, 219@)
Char.SetHeading(209@, 220@)

:POOL2_12354
if 
  not Char.IsDead(210@)
goto_if_false @POOL2_12416
223@ += 1.1
223@ = World.GetGroundZFor3DCoord(221@, 222@, 223@)
Char.SetCoordinates(210@, 221@, 222@, 223@)
Char.SetHeading(210@, 224@)

:POOL2_12416
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_12477
$x, $y, $z = Char.GetCoordinates(211@)
$z += -10.0
Char.SetCoordinates(211@, $x, $y, $z)
Char.FreezePosition(211@, True)

:POOL2_12477
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, 0.0, -0.001, 2.5)
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, 0.0, 0.001, 0.0)
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_12577
$heading = Object.GetHeading(82@)
Object.SetRotation(82@, 0.0, 0.0, $heading)

:POOL2_12577
if 
  not Object.DoesExist(234@)
goto_if_false @POOL2_12666
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, 0.0, 0.0, -10.0)
234@ = Object.CreateNoOffset(#K_POOLQ2, $x, $y, $z)
Object.SetDynamic(234@, False)
Object.SetCollision(234@, False)
Object.SetDrawLast(234@, True)
goto @POOL2_12687

:POOL2_12666
Object.SetDynamic(234@, False)
Object.SetCollision(234@, False)
Object.SetDrawLast(234@, True)

:POOL2_12687
201@ = 0
198@ = 0
if 
  241@ == 0
goto_if_false @POOL2_13420
235@ = -1
42@ = 99999.9
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_13269
$x, $y, $z = Object.GetCoordinates(82@)
if 
  227@ == -1
goto_if_false @POOL2_12920
39@ = 1

:POOL2_12791
if 
  16 > 39@
goto_if_false @POOL2_12913
if 
  Object.DoesExist(82@(39@,16i))
goto_if_false @POOL2_12899
165@, 166@, 167@ = Object.GetCoordinates(82@(39@,16i))
43@ = Math.GetDistanceBetweenCoords2D($x, $y, 165@, 166@)
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_12899
set_lvar_int_to_lvar_int 235@ = 39@
set_lvar_float_to_lvar_float 42@ = 43@

:POOL2_12899
39@ += 1
goto @POOL2_12791

:POOL2_12913
goto @POOL2_13269

:POOL2_12920
if 
  227@ == 0
goto_if_false @POOL2_13074
39@ = 1

:POOL2_12945
if 
  8 > 39@
goto_if_false @POOL2_13067
if 
  Object.DoesExist(82@(39@,16i))
goto_if_false @POOL2_13053
165@, 166@, 167@ = Object.GetCoordinates(82@(39@,16i))
43@ = Math.GetDistanceBetweenCoords2D($x, $y, 165@, 166@)
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_13053
set_lvar_int_to_lvar_int 235@ = 39@
set_lvar_float_to_lvar_float 42@ = 43@

:POOL2_13053
39@ += 1
goto @POOL2_12945

:POOL2_13067
goto @POOL2_13269

:POOL2_13074
if 
  227@ == 1
goto_if_false @POOL2_13228
39@ = 9

:POOL2_13099
if 
  16 > 39@
goto_if_false @POOL2_13221
if 
  Object.DoesExist(82@(39@,16i))
goto_if_false @POOL2_13207
165@, 166@, 167@ = Object.GetCoordinates(82@(39@,16i))
43@ = Math.GetDistanceBetweenCoords2D($x, $y, 165@, 166@)
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_13207
set_lvar_int_to_lvar_int 235@ = 39@
set_lvar_float_to_lvar_float 42@ = 43@

:POOL2_13207
39@ += 1
goto @POOL2_13099

:POOL2_13221
goto @POOL2_13269

:POOL2_13228
if 
  227@ == 2
goto_if_false @POOL2_13269
if 
  Object.DoesExist(90@)
goto_if_false @POOL2_13269
235@ = 8

:POOL2_13269
if and
  235@ <> -1
  16 > 235@
goto_if_false @POOL2_13413
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_13413
$x, $y, $z = Object.GetCoordinates(82@)
if 
  Object.DoesExist(82@(235@,16i))
goto_if_false @POOL2_13362
165@, 166@, 167@ = Object.GetCoordinates(82@(235@,16i))

:POOL2_13362
set_lvar_float_to_lvar_float 169@ = 165@
sub_float_var_from_float_lvar 169@ -= $x
set_lvar_float_to_lvar_float 170@ = 166@
sub_float_var_from_float_lvar 170@ -= $y
42@ = Math.GetHeadingFromVector2D(169@, 170@)
Object.SetHeading(82@, 42@)

:POOL2_13413
goto @POOL2_13427

:POOL2_13420
241@ = 0

:POOL2_13427
236@ = 0
gosub @POOL2_28010
35@ += 1

:POOL2_13448
if 
  35@ == 1
goto_if_false @POOL2_13594
if 
  Pad.IsButtonPressed(180@, Button.Select)
goto_if_false @POOL2_13569
if 
  233@ == 0
goto_if_false @POOL2_13562
if 
  232@ == 0
goto_if_false @POOL2_13541
232@ = 1
233@ = 1
goto @POOL2_13555

:POOL2_13541
232@ = 0
233@ = 1

:POOL2_13555
201@ = 0

:POOL2_13562
goto @POOL2_13594

:POOL2_13569
if 
  233@ == 1
goto_if_false @POOL2_13594
233@ = 0

:POOL2_13594
if 
  232@ == 0
goto_if_false @POOL2_13709
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, 0.0, -0.001, 2.5)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, 0.0, 0.001, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:POOL2_13709
if 
  232@ == 1
goto_if_false @POOL2_13824
$x, $y, $z = Object.GetOffsetInWorldCoords(82@, 0.0, -0.5, 0.3)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Object.GetOffsetInWorldCoords(82@, 0.0, 0.5, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:POOL2_13824
if 
  232@ == 0
goto_if_false @POOL2_13957
if 
  Pad.IsButtonPressed(180@, Button.Square)
goto_if_false @POOL2_13932
if 
  128@ == 0
goto_if_false @POOL2_13925
if 
  198@ == 2
goto_if_false @POOL2_13910
198@ = 0
goto @POOL2_13918

:POOL2_13910
201@ = 3001

:POOL2_13918
128@ = 1

:POOL2_13925
goto @POOL2_13957

:POOL2_13932
if 
  128@ == 1
goto_if_false @POOL2_13957
128@ = 0

:POOL2_13957
if 
  35@ == 2
goto_if_false @POOL2_14300
$x = 0.0
$y = -0.5
$z = -1.7
if or
  Pad.IsButtonPressed(180@, Button.RightStickX)
  Pad.IsButtonPressed(180@, Button.RightStickY)
goto_if_false @POOL2_14150
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(180@)
cset_lvar_float_to_var_int 42@ =# $RStickX
42@ /= 128.0
42@ *= 0.2
add_float_lvar_to_float_var $x += 42@
cset_lvar_float_to_var_int 42@ =# $RStickY
42@ /= 128.0
if 
  -0.1 > 42@
goto_if_false @POOL2_14132
42@ = -0.1

:POOL2_14132
42@ *= 0.5
add_float_lvar_to_float_var $z += 42@

:POOL2_14150
$x, $y, $z = Object.GetOffsetInWorldCoords(82@, $x, $y, $z)
Object.SetCoordinates(168@, $x, $y, $z)
165@, 166@, 167@ = Object.GetCoordinates(82@)
set_lvar_float_to_lvar_float 169@ = 165@
sub_float_var_from_float_lvar 169@ -= $x
set_lvar_float_to_lvar_float 170@ = 166@
sub_float_var_from_float_lvar 170@ -= $y
$heading = Math.GetHeadingFromVector2D(169@, 170@)
Object.SetHeading(168@, $heading)
if 
  Pad.IsButtonPressed(180@, Button.Select)
goto_if_false @POOL2_14300
Camera.RestoreJumpcut
if 
  Object.DoesExist(168@)
goto_if_false @POOL2_14293
Object.Delete(168@)

:POOL2_14293
35@ = 0

:POOL2_14300
if 
  Pad.IsButtonPressed(180@, Button.LeftStickX)
goto_if_false @POOL2_14407
$heading = Object.GetHeading(82@)
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(180@)
cset_lvar_float_to_var_int 42@ =# $LStickX
42@ /= 128.0
42@ *= 2.0
add_float_lvar_to_float_var $heading += 42@
Object.SetRotation(82@, 0.0, 0.0, 0.0)
Object.SetHeading(82@, $heading)

:POOL2_14407
if 
  Object.DoesExist(234@)
goto_if_false @POOL2_14649
if 
  232@ == 0
goto_if_false @POOL2_14503
238@ = 0.0
239@ = 0.063
240@ = 0.0063
165@, 166@, 167@ = Object.GetOffsetInWorldCoords(82@, 240@, -0.05, 239@)
goto @POOL2_14558

:POOL2_14503
238@ = 22.5
239@ = 0.021
240@ = 0.0063
165@, 166@, 167@ = Object.GetOffsetInWorldCoords(82@, 240@, -0.05, 239@)

:POOL2_14558
$heading = Object.GetHeading(82@)
$heading += 180.0
Object.SetCoordinates(234@, 165@, 166@, 167@)
if 
  232@ == 0
goto_if_false @POOL2_14633
Object.SetRotation(234@, 0.0, 0.0, $heading)
goto @POOL2_14649

:POOL2_14633
Object.SetRotation(234@, 238@, 0.0, $heading)

:POOL2_14649
if 
  not Pad.IsButtonPressed(180@, Button.LeftStickX)
goto_if_false @POOL2_14688
236@ = 0
gosub @POOL2_28010
goto @POOL2_14788

:POOL2_14688
if 
  236@ <> 0
goto_if_false @POOL2_14774
39@ = 0

:POOL2_14713
if 
  10 > 39@
goto_if_false @POOL2_14774
if 
  Object.DoesExist(343@(39@,10i))
goto_if_false @POOL2_14760
Object.Delete(343@(39@,10i))

:POOL2_14760
39@ += 1
goto @POOL2_14713

:POOL2_14774
236@ = 0
TIMERA = 0

:POOL2_14788
if 
  Pad.IsButtonPressed(180@, Button.Cross)
goto_if_false @POOL2_14866
if 
  126@ == 0
goto_if_false @POOL2_14859
if 
  Object.DoesExist(234@)
goto_if_false @POOL2_14845
Object.Delete(234@)

:POOL2_14845
35@ = 99
126@ = 1

:POOL2_14859
goto @POOL2_14891

:POOL2_14866
if 
  126@ == 1
goto_if_false @POOL2_14891
126@ = 0

:POOL2_14891
if 
is_ps2_keyboard_key_pressed 11
goto_if_false @POOL2_14921
gosub @POOL2_33120
Object.SetHeading(82@, 359@)

:POOL2_14921
goto @POOL2_14950

:POOL2_14928
gosub @POOL2_33120
Object.SetHeading(82@, 359@)
35@ = 99

:POOL2_14950
if 
  Pad.IsButtonPressed(180@, Button.Triangle)
goto_if_false @POOL2_15141
if and
  127@ == 0
  183@ > 1000
goto_if_false @POOL2_15134
if 
  not Char.IsDead(209@)
goto_if_false @POOL2_15056
219@ += 1.1
219@ = World.GetGroundZFor3DCoord(217@, 218@, 219@)
Char.SetCoordinates(209@, 217@, 218@, 219@)
Char.SetHeading(209@, 220@)

:POOL2_15056
if 
  not Char.IsDead(210@)
goto_if_false @POOL2_15118
223@ += 1.1
223@ = World.GetGroundZFor3DCoord(221@, 222@, 223@)
Char.SetCoordinates(210@, 221@, 222@, 223@)
Char.SetHeading(210@, 224@)

:POOL2_15118
Text.ClearHelp
108@ = 1
127@ = 1

:POOL2_15134
goto @POOL2_15173

:POOL2_15141
if 
  127@ == 1
goto_if_false @POOL2_15166
127@ = 0

:POOL2_15166
183@ = 0

:POOL2_15173
if 
  35@ == 99
goto_if_false @POOL2_15275
39@ = 0

:POOL2_15198
if 
  10 > 39@
goto_if_false @POOL2_15259
if 
  Object.DoesExist(343@(39@,10i))
goto_if_false @POOL2_15245
Object.Delete(343@(39@,10i))

:POOL2_15245
39@ += 1
goto @POOL2_15198

:POOL2_15259
34@ += 2
35@ = 0
Text.ClearHelp

:POOL2_15275
return 

:POOL2_15277
return 

:POOL2_15279
gosub @POOL2_56162
if 
  226@ == 1
goto_if_false @POOL2_15897
if 
  Pad.IsButtonPressed(180@, Button.Triangle)
goto_if_false @POOL2_15375
if 
  127@ == 0
goto_if_false @POOL2_15368
34@ = 5
35@ = 0
127@ = 1
241@ = 1

:POOL2_15368
goto @POOL2_15890

:POOL2_15375
if 
  127@ == 1
goto_if_false @POOL2_15400
127@ = 0

:POOL2_15400
if 
  35@ == 0
goto_if_false @POOL2_15432
gosub @POOL2_18423
35@ += 1

:POOL2_15432
if 
  246@ == 0
goto_if_false @POOL2_15457
gosub @POOL2_52586

:POOL2_15457
if 
  246@ == 0
goto_if_false @POOL2_15615
gosub @POOL2_16355
if 
  248@ == 1
goto_if_false @POOL2_15605
if 
  Pad.IsButtonPressed(180@, Button.RightStickY)
goto_if_false @POOL2_15588
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(180@)
cset_lvar_float_to_var_int 42@ =# $RStickY
42@ /= 128.0
42@ *= -0.2
242@ = 0.2
add_float_lvar_to_float_lvar 242@ += 42@
goto @POOL2_15598

:POOL2_15588
242@ = 0.2

:POOL2_15598
goto @POOL2_15615

:POOL2_15605
242@ = 0.0

:POOL2_15615
if 
  246@ == 0
goto_if_false @POOL2_15675
if 
  242@ > 0.25
goto_if_false @POOL2_15668
gosub @POOL2_19412
goto @POOL2_15675

:POOL2_15668
gosub @POOL2_18262

:POOL2_15675
if 
  35@ == 1
goto_if_false @POOL2_15723
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_15723
gosub @POOL2_18605
35@ += 1

:POOL2_15723
if 
  35@ == 2
goto_if_false @POOL2_15748
gosub @POOL2_16609

:POOL2_15748
if 
  35@ == 3
goto_if_false @POOL2_15849
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_15849
588@ += 1.1
588@ = World.GetGroundZFor3DCoord(580@, 584@, 588@)
Char.SetCoordinates(211@, 580@, 584@, 588@)
Char.SetHeading(211@, 592@)
Char.SetCollision(211@, True)
TIMERA = 0
35@ = 99

:POOL2_15849
if 
  35@ == 99
goto_if_false @POOL2_15890
Text.ClearHelp
TIMERA = 0
34@ += 1
35@ = 0

:POOL2_15890
goto @POOL2_16353

:POOL2_15897
if 
  35@ == 0
goto_if_false @POOL2_15929
gosub @POOL2_18423
35@ += 1

:POOL2_15929
if 
  246@ == 0
goto_if_false @POOL2_16078
gosub @POOL2_16355
if 
  248@ == 1
goto_if_false @POOL2_16061
if 
  2000 > TIMERA
goto_if_false @POOL2_16008
242@ = 0.2
goto @POOL2_16054

:POOL2_16008
if 
  3000 > TIMERA
goto_if_false @POOL2_16044
242@ = 0.0
goto @POOL2_16054

:POOL2_16044
242@ = 1.0

:POOL2_16054
goto @POOL2_16078

:POOL2_16061
TIMERA = 0
242@ = 0.0

:POOL2_16078
if 
  246@ == 0
goto_if_false @POOL2_16138
if 
  242@ > 0.25
goto_if_false @POOL2_16131
gosub @POOL2_19412
goto @POOL2_16138

:POOL2_16131
gosub @POOL2_18262

:POOL2_16138
if 
  35@ == 1
goto_if_false @POOL2_16186
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_16186
gosub @POOL2_18605
35@ += 1

:POOL2_16186
if 
  35@ == 2
goto_if_false @POOL2_16211
gosub @POOL2_16609

:POOL2_16211
if 
  35@ == 3
goto_if_false @POOL2_16312
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_16312
588@ += 1.1
588@ = World.GetGroundZFor3DCoord(580@, 584@, 588@)
Char.SetCoordinates(211@, 580@, 584@, 588@)
Char.SetHeading(211@, 592@)
Char.SetCollision(211@, True)
TIMERA = 0
35@ = 99

:POOL2_16312
if 
  35@ == 99
goto_if_false @POOL2_16353
Text.ClearHelp
TIMERA = 0
34@ += 1
35@ = 0

:POOL2_16353
return 

:POOL2_16355
248@ = 0
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_16607
if 
  596@ == 1
goto_if_false @POOL2_16436
if 
  Char.IsPlayingAnim(211@, "POOL_SHORT_SHOT")
goto_if_false @POOL2_16436
248@ = 1

:POOL2_16436
if 
  596@ == 2
goto_if_false @POOL2_16492
if 
  Char.IsPlayingAnim(211@, "POOL_MED_SHOT")
goto_if_false @POOL2_16492
248@ = 1

:POOL2_16492
if 
  596@ == 3
goto_if_false @POOL2_16549
if 
  Char.IsPlayingAnim(211@, "POOL_LONG_SHOT")
goto_if_false @POOL2_16549
248@ = 1

:POOL2_16549
if 
  596@ == 4
goto_if_false @POOL2_16607
if 
  Char.IsPlayingAnim(211@, "POOL_XLONG_SHOT")
goto_if_false @POOL2_16607
248@ = 1

:POOL2_16607
return 

:POOL2_16609
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_17220
if 
  247@ == 0
goto_if_false @POOL2_17220
if 
  596@ == 1
goto_if_false @POOL2_16787
47@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "POOL_SHORT_START", "POOL", 8.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable(-1, "POOL_SHORT_SHOT", "POOL", 4.0, False, False, False, False, -1)
Sequence.Close(47@)
if 
  108@ == 0
goto_if_false @POOL2_16782
Char.PerformSequence(211@, 47@)

:POOL2_16782
Sequence.Clear(47@)

:POOL2_16787
if 
  596@ == 2
goto_if_false @POOL2_16927
47@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "POOL_MED_START", "POOL", 8.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable(-1, "POOL_MED_SHOT", "POOL", 4.0, False, False, False, False, -1)
Sequence.Close(47@)
if 
  108@ == 0
goto_if_false @POOL2_16922
Char.PerformSequence(211@, 47@)

:POOL2_16922
Sequence.Clear(47@)

:POOL2_16927
if 
  596@ == 3
goto_if_false @POOL2_17069
47@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "POOL_LONG_START", "POOL", 8.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable(-1, "POOL_LONG_SHOT", "POOL", 4.0, False, False, False, False, -1)
Sequence.Close(47@)
if 
  108@ == 0
goto_if_false @POOL2_17064
Char.PerformSequence(211@, 47@)

:POOL2_17064
Sequence.Clear(47@)

:POOL2_17069
if 
  596@ == 4
goto_if_false @POOL2_17213
47@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "POOL_XLONG_START", "POOL", 8.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable(-1, "POOL_XLONG_SHOT", "POOL", 4.0, False, False, False, False, -1)
Sequence.Close(47@)
if 
  108@ == 0
goto_if_false @POOL2_17208
Char.PerformSequence(211@, 47@)

:POOL2_17208
Sequence.Clear(47@)

:POOL2_17213
247@ += 1

:POOL2_17220
if 
  247@ == 1
goto_if_false @POOL2_17738
if 
  246@ == 0
goto_if_false @POOL2_17724
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_17717
39@ = Char.GetScriptTaskStatus(211@, 1560)
if 
  not is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @POOL2_17703
if 
  596@ == 1
goto_if_false @POOL2_17402
if 
  Char.IsPlayingAnim(211@, "POOL_SHORT_SHOT")
goto_if_false @POOL2_17402
Char.SetAnimCurrentTime(211@, "POOL_SHORT_SHOT", 243@)
Char.SetAnimSpeed(211@, "POOL_SHORT_SHOT", 244@)

:POOL2_17402
if 
  596@ == 2
goto_if_false @POOL2_17497
if 
  Char.IsPlayingAnim(211@, "POOL_MED_SHOT")
goto_if_false @POOL2_17497
Char.SetAnimCurrentTime(211@, "POOL_MED_SHOT", 243@)
Char.SetAnimSpeed(211@, "POOL_MED_SHOT", 244@)

:POOL2_17497
if 
  596@ == 3
goto_if_false @POOL2_17595
if 
  Char.IsPlayingAnim(211@, "POOL_LONG_SHOT")
goto_if_false @POOL2_17595
Char.SetAnimCurrentTime(211@, "POOL_LONG_SHOT", 243@)
Char.SetAnimSpeed(211@, "POOL_LONG_SHOT", 244@)

:POOL2_17595
if 
  596@ == 4
goto_if_false @POOL2_17696
if 
  Char.IsPlayingAnim(211@, "POOL_XLONG_SHOT")
goto_if_false @POOL2_17696
Char.SetAnimCurrentTime(211@, "POOL_XLONG_SHOT", 243@)
Char.SetAnimSpeed(211@, "POOL_XLONG_SHOT", 244@)

:POOL2_17696
goto @POOL2_17717

:POOL2_17703
TIMERA = 0
247@ += 1

:POOL2_17717
goto @POOL2_17738

:POOL2_17724
TIMERA = 0
247@ += 1

:POOL2_17738
if 
  247@ == 2
goto_if_false @POOL2_18157
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_18157
39@ = Char.GetScriptTaskStatus(211@, 1560)
if and
  not is_int_lvar_equal_to_constant 39@ == 7
  5000 > TIMERA
goto_if_false @POOL2_18150
42@ = 1.0
sub_float_lvar_from_float_lvar 42@ -= 244@
42@ /= 20.0
add_float_lvar_to_float_lvar 244@ += 42@
if 
  0.8 > 244@
goto_if_false @POOL2_17876
244@ += 0.01

:POOL2_17876
if and
  1.2 > 244@
  244@ > 0.8
goto_if_false @POOL2_17917
244@ = 1.0

:POOL2_17917
if 
  Char.IsPlayingAnim(211@, "POOL_SHORT_SHOT")
goto_if_false @POOL2_17975
Char.SetAnimSpeed(211@, "POOL_SHORT_SHOT", 244@)

:POOL2_17975
if 
  Char.IsPlayingAnim(211@, "POOL_MED_SHOT")
goto_if_false @POOL2_18029
Char.SetAnimSpeed(211@, "POOL_MED_SHOT", 244@)

:POOL2_18029
if 
  Char.IsPlayingAnim(211@, "POOL_LONG_SHOT")
goto_if_false @POOL2_18085
Char.SetAnimSpeed(211@, "POOL_LONG_SHOT", 244@)

:POOL2_18085
if 
  Char.IsPlayingAnim(211@, "POOL_XLONG_SHOT")
goto_if_false @POOL2_18143
Char.SetAnimSpeed(211@, "POOL_XLONG_SHOT", 244@)

:POOL2_18143
goto @POOL2_18157

:POOL2_18150
247@ += 1

:POOL2_18157
if 
  247@ == 3
goto_if_false @POOL2_18260
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_18253
if 
  108@ == 0
goto_if_false @POOL2_18253
Task.PlayAnimNonInterruptable(211@, "POOL_IDLE_STANCE", "POOL", 4.0, True, False, False, False, -1)

:POOL2_18253
35@ += 1

:POOL2_18260
return 

:POOL2_18262
set_lvar_float_to_lvar_float 42@ = 242@
sub_float_lvar_from_float_lvar 42@ -= 243@
if or
  42@ >= 0.05
  -0.05 >= 42@
goto_if_false @POOL2_18413
42@ /= 3.0
if and
  0.01 > 42@
  42@ > -0.01
goto_if_false @POOL2_18398
if 
  42@ > 0.0
goto_if_false @POOL2_18388
42@ = 0.01
goto @POOL2_18398

:POOL2_18388
42@ = -0.01

:POOL2_18398
add_float_lvar_to_float_lvar 243@ += 42@
goto @POOL2_18421

:POOL2_18413
set_lvar_float_to_lvar_float 243@ = 242@

:POOL2_18421
return 

:POOL2_18423
246@ = 0
247@ = 0
609@ = 565.0
610@ = 386.0
set_lvar_float_to_lvar_float 613@ = 609@
set_lvar_float_to_lvar_float 614@ = 610@
612@ = 67.0
611@ = 78.0
615@ = 19.0
616@ = 16.0
244@ = 0.0
243@ = 0.0
244@ = 0.0
242@ = 0.0
TIMERA = 0
TIMERB = 0
if 
  226@ <> 0
goto_if_false @POOL2_18596
Text.PrintHelpForever('PL_H4')

:POOL2_18596
gosub @POOL2_50834
return 

:POOL2_18605
Char.SetCollision(211@, False)
590@ += 1.1
590@ = World.GetGroundZFor3DCoord(582@, 586@, 590@)
Char.SetCoordinates(211@, 582@, 586@, 590@)
Char.SetHeading(211@, 594@)
if 
  is_int_lvar_equal_to_int_lvar 209@ == 211@
goto_if_false @POOL2_18863
if 
  not Char.IsDead(209@)
goto_if_false @POOL2_18856
$x, $y, $z = Char.GetOffsetInWorldCoords(209@, 0.0, -1.5, 0.0)
if 
  not Char.IsDead(210@)
goto_if_false @POOL2_18856
Char.SetCoordinates(210@, 221@, 222@, 223@)
if 
  Char.LocateAnyMeans2D(210@, $x, $y, 2.0, 2.0, False)
goto_if_false @POOL2_18829
$x, $y, $z = Char.GetOffsetInWorldCoords(210@, -2.0, 0.0, -1.0)
Char.SetCoordinates(210@, $x, $y, $z)

:POOL2_18829
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_18856
Task.LookAtObject(210@, 82@, 10000)

:POOL2_18856
goto @POOL2_19042

:POOL2_18863
if 
  not Char.IsDead(210@)
goto_if_false @POOL2_19042
$x, $y, $z = Char.GetOffsetInWorldCoords(210@, 0.0, -1.5, 0.0)
if 
  not Char.IsDead(209@)
goto_if_false @POOL2_19042
Char.SetCoordinates(209@, 217@, 218@, 219@)
if 
  Char.LocateAnyMeans2D(209@, $x, $y, 2.0, 2.0, False)
goto_if_false @POOL2_19042
$x, $y, $z = Char.GetOffsetInWorldCoords(209@, -2.0, 0.0, -1.0)
Char.SetCoordinates(209@, $x, $y, $z)
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_19042
Task.LookAtObject(209@, 82@, 10000)

:POOL2_19042
if 
  596@ == 1
goto_if_false @POOL2_19157
$x, $y, $z = Char.GetOffsetInWorldCoords(211@, 0.1532, -0.9733, 1.1819)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Char.GetOffsetInWorldCoords(211@, -0.0267, -0.3468, 0.4236)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:POOL2_19157
if 
  596@ == 2
goto_if_false @POOL2_19205
$x = 0.4
$y = -1.0
$z = 1.0

:POOL2_19205
if 
  596@ == 3
goto_if_false @POOL2_19253
$x = 0.3
$y = -0.5
$z = 1.0

:POOL2_19253
if 
  596@ == 4
goto_if_false @POOL2_19301
$x = 0.3
$y = -0.5
$z = 1.0

:POOL2_19301
if 
  596@ <> 1
goto_if_false @POOL2_19410
$x, $y, $z = Char.GetOffsetInWorldCoords(211@, $x, $y, $z)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Object.GetOffsetInWorldCoords(82@, 0.0, 0.3, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:POOL2_19410
return 

:POOL2_19412
if 
  226@ == 1
goto_if_false @POOL2_19512
set_lvar_float_to_lvar_float 245@ = 242@
sub_float_lvar_from_float_lvar 245@ -= 243@
245@ /= 0.1
set_lvar_float_to_lvar_float 244@ = 245@
244@ *= 2.0
if 
  0.6 > 244@
goto_if_false @POOL2_19505
244@ = 0.6

:POOL2_19505
goto @POOL2_19569

:POOL2_19512
set_lvar_float_to_lvar_float 244@ = 360@
244@ *= 2.0
if 
  0.6 > 244@
goto_if_false @POOL2_19561
244@ = 0.6

:POOL2_19561
set_lvar_float_to_lvar_float 245@ = 360@

:POOL2_19569
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_20458
$heading = Object.GetHeading(82@)
42@ = Math.Sin($heading)
set_lvar_float_to_lvar_float 169@ = 42@
169@ *= -1.0
42@ = Math.Cos($heading)
set_lvar_float_to_lvar_float 170@ = 42@
171@ = 0.0
$x, $y, $z = Object.GetCoordinates(82@)
set_lvar_float_to_var_float 165@ = $x
add_float_lvar_to_float_lvar 165@ += 169@
set_lvar_float_to_var_float 166@ = $y
add_float_lvar_to_float_lvar 166@ += 170@
42@ = Math.GetDistanceBetweenCoords2D($x, $y, 165@, 166@)
div_float_lvar_by_float_lvar 169@ /= 42@
div_float_lvar_by_float_lvar 170@ /= 42@
mult_float_lvar_by_float_lvar 169@ *= 245@
mult_float_lvar_by_float_lvar 170@ *= 245@
Object.FreezePosition(82@, False)
Object.SetCollision(82@, False)
Object.SetDynamic(82@, False)
Object.SetVelocity(82@, 169@, 170@, 171@)
274@ = -1
275@ = 0
273@ = 0
202@ = 0
39@ = 0

:POOL2_19810
if 
  16 > 39@
goto_if_false @POOL2_19853
109@(39@,16i) = 0
39@ += 1
goto @POOL2_19810

:POOL2_19853
Audio.ReportMissionAudioEventAtObject(82@, 1014)
249@ = 0.0
250@ = 0.0
set_var_float_to_lvar_float $x = 613@
sub_float_lvar_from_float_var $x -= 609@
set_var_float_to_lvar_float $y = 614@
sub_float_lvar_from_float_var $y -= 610@
div_float_var_by_float_lvar $x /= 611@
div_float_var_by_float_lvar $y /= 612@
if 
  226@ == 0
goto_if_false @POOL2_19977
$x = Math.RandomFloatInRange(-0.2, 0.2)
$y = Math.RandomFloatInRange(-0.2, 0.2)

:POOL2_19977
if or
  $x > 0.2
  -0.2 > $x
  $y > 0.2
  -0.2 > $y
  226@ == 0
goto_if_false @POOL2_20148
mult_float_var_by_float_lvar $x *= 245@
mult_float_var_by_float_lvar $y *= 245@
set_lvar_float_to_var_float 249@ = $x
249@ *= 0.5
set_lvar_float_to_var_float 250@ = $y
250@ *= -0.5
$x *= 10.0
$y *= 10.0
if 
  226@ == 1
goto_if_false @POOL2_20141
Object.SetRotationVelocity(82@, $y, 0.0, $x)

:POOL2_20141
goto @POOL2_20168

:POOL2_20148
249@ = 0.0
250@ = 0.0

:POOL2_20168
613@ = 559.0
614@ = 381.0
if 
  129@ == 1
goto_if_false @POOL2_20358
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CUE BALL DATA = ")
save_float_to_debug_file 245@
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z

:POOL2_20358
Object.SetCollision(82@, True)
Object.SetDynamic(82@, True)
if 
  not Char.IsDead(209@)
goto_if_false @POOL2_20415
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_20415
Task.LookAtObject(209@, 82@, 10000)

:POOL2_20415
if 
  not Char.IsDead(210@)
goto_if_false @POOL2_20458
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_20458
Task.LookAtObject(210@, 82@, 10000)

:POOL2_20458
246@ = 1
return 

:POOL2_20467
if 
  35@ == 0
goto_if_false @POOL2_20785
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_20785
$x, $y, $z = Object.GetCoordinates(163@)
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 580@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 584@
add_float_lvar_to_float_var $x += 169@
add_float_lvar_to_float_var $y += 170@
$z += 2.5
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Object.GetCoordinates(163@)
$z += 0.5
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
TIMERA = 0
165@, 166@, 167@ = Char.GetOffsetInWorldCoords(211@, 0.0, -0.2, 0.0)
167@ = World.GetGroundZFor3DCoord(165@, 166@, 167@)
$heading = Char.GetHeading(211@)
Char.SetCoordinates(211@, 606@, 607@, 608@)
Char.SetHeading(211@, $heading)
if 
  108@ == 0
goto_if_false @POOL2_20778
Task.PlayAnimNonInterruptable(211@, "POOL_IDLE_STANCE", "POOL", 1000.0, True, True, True, False, -1)

:POOL2_20778
35@ += 1

:POOL2_20785
if 
  35@ == 1
goto_if_false @POOL2_20910
39@ = 0
40@ = 0

:POOL2_20817
if 
  16 > 39@
goto_if_false @POOL2_20878
if 
  109@(39@,16i) == 1
goto_if_false @POOL2_20864
40@ += 1

:POOL2_20864
39@ += 1
goto @POOL2_20817

:POOL2_20878
if 
  40@ == 16
goto_if_false @POOL2_20910
35@ += 1
TIMERA = 0

:POOL2_20910
if 
  35@ == 2
goto_if_false @POOL2_20954
if 
  TIMERA > 700
goto_if_false @POOL2_20954
35@ = 99

:POOL2_20954
if 
  35@ == 99
goto_if_false @POOL2_20988
Text.ClearHelp
34@ += 1
35@ = 0

:POOL2_20988
return 

:POOL2_20990
if 
  35@ == 0
goto_if_false @POOL2_21022
270@ = 0
35@ += 1

:POOL2_21022
if 
  35@ == 1
goto_if_false @POOL2_21072
if 
  274@ == -1
goto_if_false @POOL2_21065
270@ = 1

:POOL2_21065
35@ += 1

:POOL2_21072
if 
  35@ == 2
goto_if_false @POOL2_21308
if 
  274@ <> -1
goto_if_false @POOL2_21301
if 
  227@ == -1
goto_if_false @POOL2_21158
if 
  274@ == 8
goto_if_false @POOL2_21151
270@ = 2

:POOL2_21151
goto @POOL2_21301

:POOL2_21158
if 
  227@ == 0
goto_if_false @POOL2_21208
if 
  274@ >= 8
goto_if_false @POOL2_21201
270@ = 2

:POOL2_21201
goto @POOL2_21301

:POOL2_21208
if 
  227@ == 1
goto_if_false @POOL2_21258
if 
  8 >= 274@
goto_if_false @POOL2_21251
270@ = 2

:POOL2_21251
goto @POOL2_21301

:POOL2_21258
if 
  227@ == 2
goto_if_false @POOL2_21301
if 
  274@ <> 8
goto_if_false @POOL2_21301
270@ = 2

:POOL2_21301
35@ += 1

:POOL2_21308
if 
  35@ == 3
goto_if_false @POOL2_21358
if 
  251@ == 1
goto_if_false @POOL2_21351
270@ = 3

:POOL2_21351
35@ += 1

:POOL2_21358
if 
  35@ == 4
goto_if_false @POOL2_21952
if 
  267@ == 1
goto_if_false @POOL2_21630
if 
  270@ <> 3
goto_if_false @POOL2_21623
if 
  227@ == -1
goto_if_false @POOL2_21473
if 
  259@ <> 1
goto_if_false @POOL2_21466
if 
  184@ == 0
goto_if_false @POOL2_21466

:POOL2_21466
goto @POOL2_21623

:POOL2_21473
if 
  227@ == 0
goto_if_false @POOL2_21523
if 
  269@ > 0
goto_if_false @POOL2_21516
270@ = 4

:POOL2_21516
goto @POOL2_21623

:POOL2_21523
if 
  227@ == 1
goto_if_false @POOL2_21573
if 
  268@ > 0
goto_if_false @POOL2_21566
270@ = 4

:POOL2_21566
goto @POOL2_21623

:POOL2_21573
if 
  227@ == 2
goto_if_false @POOL2_21623
if or
  268@ > 0
  269@ > 0
goto_if_false @POOL2_21623
270@ = 4

:POOL2_21623
goto @POOL2_21945

:POOL2_21630
if 
  267@ > 1
goto_if_false @POOL2_21945
if 
  227@ == -1
goto_if_false @POOL2_21795
if and
  268@ > 0
  269@ == 0
goto_if_false @POOL2_21727
if 
  259@ <> 1
goto_if_false @POOL2_21727
if 
  184@ == 0
goto_if_false @POOL2_21727

:POOL2_21727
if and
  268@ == 0
  269@ > 0
goto_if_false @POOL2_21788
if 
  259@ <> 1
goto_if_false @POOL2_21788
if 
  184@ == 0
goto_if_false @POOL2_21788

:POOL2_21788
goto @POOL2_21945

:POOL2_21795
if 
  227@ == 0
goto_if_false @POOL2_21845
if 
  269@ > 0
goto_if_false @POOL2_21838
270@ = 4

:POOL2_21838
goto @POOL2_21945

:POOL2_21845
if 
  227@ == 1
goto_if_false @POOL2_21895
if 
  268@ > 0
goto_if_false @POOL2_21888
270@ = 4

:POOL2_21888
goto @POOL2_21945

:POOL2_21895
if 
  227@ == 2
goto_if_false @POOL2_21945
if or
  269@ > 0
  268@ > 0
goto_if_false @POOL2_21945
270@ = 4

:POOL2_21945
35@ += 1

:POOL2_21952
if 
  35@ == 5
goto_if_false @POOL2_22070
if 
  227@ <> 2
goto_if_false @POOL2_22020
if 
  259@ == 1
goto_if_false @POOL2_22013
270@ = 5

:POOL2_22013
goto @POOL2_22063

:POOL2_22020
if 
  259@ == 1
goto_if_false @POOL2_22063
if 
  270@ <> 0
goto_if_false @POOL2_22063
270@ = 5

:POOL2_22063
35@ += 1

:POOL2_22070
if 
  35@ == 6
goto_if_false @POOL2_22156
if 
  270@ == 0
goto_if_false @POOL2_22149
if 
  267@ == 0
goto_if_false @POOL2_22149
if 
  273@ == 0
goto_if_false @POOL2_22149
270@ = 6

:POOL2_22149
35@ = 99

:POOL2_22156
if 
  35@ == 99
goto_if_false @POOL2_22380
if and
  270@ == 0
  184@ == 0
  267@ > 0
  227@ == -1
goto_if_false @POOL2_22364
if 
  is_int_lvar_greater_than_int_lvar 268@ > 269@
goto_if_false @POOL2_22292
if 
  225@ == 1
goto_if_false @POOL2_22271
213@ = 0
214@ = 1
goto @POOL2_22285

:POOL2_22271
213@ = 1
214@ = 0

:POOL2_22285
goto @POOL2_22364

:POOL2_22292
if 
  is_int_lvar_greater_than_int_lvar 269@ > 268@
goto_if_false @POOL2_22364
if 
  225@ == 1
goto_if_false @POOL2_22350
213@ = 1
214@ = 0
goto @POOL2_22364

:POOL2_22350
213@ = 0
214@ = 1

:POOL2_22364
Text.ClearHelp
35@ = 0
34@ += 1

:POOL2_22380
return 

:POOL2_22382
if 
  35@ == 0
goto_if_false @POOL2_24208
TIMERA = 0
if and
  67@ == 1
  68@ == 1
  69@ == 1
  70@ == 1
  71@ == 1
goto_if_false @POOL2_22528
if and
  72@ == 1
  73@ == 1
goto_if_false @POOL2_22528
if 
  213@ == 0
goto_if_false @POOL2_22503
213@ = 2

:POOL2_22503
if 
  214@ == 0
goto_if_false @POOL2_22528
214@ = 2

:POOL2_22528
if and
  75@ == 1
  76@ == 1
  77@ == 1
  78@ == 1
  79@ == 1
goto_if_false @POOL2_22649
if and
  80@ == 1
  81@ == 1
goto_if_false @POOL2_22649
if 
  213@ == 1
goto_if_false @POOL2_22624
213@ = 2

:POOL2_22624
if 
  214@ == 1
goto_if_false @POOL2_22649
214@ = 2

:POOL2_22649
switch_start 270@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @POOL2_24093 {caseNum1} 0 {caseLabel1} @POOL2_22712 {caseNum2} 1 {caseLabel2} @POOL2_23043 {caseNum3} 2 {caseLabel3} @POOL2_23241 {caseNum4} 3 {caseLabel4} @POOL2_23439 {caseNum5} 4 {caseLabel5} @POOL2_23637 {caseNum6} 5 {caseLabel6} @POOL2_23835 {caseNum7} 6 {caseLabel7} @POOL2_23895

:POOL2_22712
if 
  267@ > 0
goto_if_false @POOL2_22845
if 
  74@ <> 1
goto_if_false @POOL2_22817
228@ = 0
229@ = 1
if 
  225@ == 1
goto_if_false @POOL2_22795
set_lvar_int_to_lvar_int 227@ = 213@
goto @POOL2_22803

:POOL2_22795
set_lvar_int_to_lvar_int 227@ = 214@

:POOL2_22803
35@ = 99
goto @POOL2_22838

:POOL2_22817
272@ = 1
271@ = 1
35@ = 99

:POOL2_22838
goto @POOL2_23036

:POOL2_22845
if 
  225@ == 1
goto_if_false @POOL2_22969
228@ = 0
225@ = 2
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@
set_lvar_int_to_lvar_int 226@ = 216@
229@ = 0
set_lvar_int_to_lvar_int 227@ = 214@
if 
  216@ == 1
goto_if_false @POOL2_22948
set_lvar_int_to_constant 180@ = 1
goto @POOL2_22955

:POOL2_22948
set_lvar_int_to_constant 180@ = 0

:POOL2_22955
35@ = 99
goto @POOL2_23036

:POOL2_22969
228@ = 0
225@ = 1
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
set_lvar_int_to_lvar_int 226@ = 215@
229@ = 0
set_lvar_int_to_lvar_int 227@ = 213@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_23036
goto @POOL2_24093

:POOL2_23043
if 
  225@ == 1
goto_if_false @POOL2_23167
225@ = 2
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@
set_lvar_int_to_lvar_int 226@ = 216@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 214@
if 
  216@ == 1
goto_if_false @POOL2_23146
set_lvar_int_to_constant 180@ = 1
goto @POOL2_23153

:POOL2_23146
set_lvar_int_to_constant 180@ = 0

:POOL2_23153
35@ = 99
goto @POOL2_23234

:POOL2_23167
225@ = 1
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
set_lvar_int_to_lvar_int 226@ = 215@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 213@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_23234
goto @POOL2_24093

:POOL2_23241
if 
  225@ == 1
goto_if_false @POOL2_23365
225@ = 2
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@
set_lvar_int_to_lvar_int 226@ = 216@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 214@
if 
  216@ == 1
goto_if_false @POOL2_23344
set_lvar_int_to_constant 180@ = 1
goto @POOL2_23351

:POOL2_23344
set_lvar_int_to_constant 180@ = 0

:POOL2_23351
35@ = 99
goto @POOL2_23432

:POOL2_23365
225@ = 1
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
set_lvar_int_to_lvar_int 226@ = 215@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 213@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_23432
goto @POOL2_24093

:POOL2_23439
if 
  225@ == 1
goto_if_false @POOL2_23563
225@ = 2
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@
set_lvar_int_to_lvar_int 226@ = 216@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 214@
if 
  216@ == 1
goto_if_false @POOL2_23542
set_lvar_int_to_constant 180@ = 1
goto @POOL2_23549

:POOL2_23542
set_lvar_int_to_constant 180@ = 0

:POOL2_23549
35@ = 99
goto @POOL2_23630

:POOL2_23563
225@ = 1
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
set_lvar_int_to_lvar_int 226@ = 215@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 213@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_23630
goto @POOL2_24093

:POOL2_23637
if 
  225@ == 1
goto_if_false @POOL2_23761
225@ = 2
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@
set_lvar_int_to_lvar_int 226@ = 216@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 214@
if 
  216@ == 1
goto_if_false @POOL2_23740
set_lvar_int_to_constant 180@ = 1
goto @POOL2_23747

:POOL2_23740
set_lvar_int_to_constant 180@ = 0

:POOL2_23747
35@ = 99
goto @POOL2_23828

:POOL2_23761
225@ = 1
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
set_lvar_int_to_lvar_int 226@ = 215@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 213@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_23828
goto @POOL2_24093

:POOL2_23835
if 
  184@ == 0
goto_if_false @POOL2_23867
271@ = 0
goto @POOL2_23874

:POOL2_23867
271@ = 1

:POOL2_23874
272@ = 1
35@ = 99
goto @POOL2_24093

:POOL2_23895
if 
  225@ == 1
goto_if_false @POOL2_24019
225@ = 2
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@
set_lvar_int_to_lvar_int 226@ = 216@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 214@
if 
  216@ == 1
goto_if_false @POOL2_23998
set_lvar_int_to_constant 180@ = 1
goto @POOL2_24005

:POOL2_23998
set_lvar_int_to_constant 180@ = 0

:POOL2_24005
35@ = 99
goto @POOL2_24086

:POOL2_24019
225@ = 1
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
set_lvar_int_to_lvar_int 226@ = 215@
228@ = 2
229@ = 0
set_lvar_int_to_lvar_int 227@ = 213@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_24086
goto @POOL2_24093

:POOL2_24093
if 
  178@ == 0
goto_if_false @POOL2_24147
if 
  226@ == 1
goto_if_false @POOL2_24140
Text.PrintHelpForever('PL_H5')

:POOL2_24140
goto @POOL2_24194

:POOL2_24147
if 
  is_int_lvar_equal_to_constant 180@ == 0
goto_if_false @POOL2_24183
Text.PrintHelpForever('PL_H8')
goto @POOL2_24194

:POOL2_24183
Text.PrintHelpForever('PL_H9')

:POOL2_24194
TIMERA = 0
TIMERB = 0

:POOL2_24208
if 
  35@ == 99
goto_if_false @POOL2_24316
gosub @POOL2_53966
if 
  226@ == 1
goto_if_false @POOL2_24283
if 
  Pad.IsButtonPressed(180@, Button.Cross)
goto_if_false @POOL2_24276
35@ += 1

:POOL2_24276
goto @POOL2_24316

:POOL2_24283
if or
  TIMERB > 2000
  Pad.IsButtonPressed(180@, Button.Cross)
goto_if_false @POOL2_24316
35@ += 1

:POOL2_24316
if 
  35@ == 100
goto_if_false @POOL2_24478
Text.ClearHelp
39@ = 0
267@ = 0

:POOL2_24350
if 
  16 > 39@
goto_if_false @POOL2_24393
251@(39@,16i) = 0
39@ += 1
goto @POOL2_24350

:POOL2_24393
268@ = 0
269@ = 0
if 
  272@ == 1
goto_if_false @POOL2_24453
184@ = 1
34@ += 1
35@ = 0
goto @POOL2_24474

:POOL2_24453
184@ = 0
34@ = 3
35@ = 0

:POOL2_24474
wait 0

:POOL2_24478
return 

:POOL2_24480
if 
  35@ == 0
goto_if_false @POOL2_24933
if 
  271@ == 0
goto_if_false @POOL2_24580
if 
  225@ == 1
goto_if_false @POOL2_24557
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@
goto @POOL2_24573

:POOL2_24557
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@

:POOL2_24573
goto @POOL2_24637

:POOL2_24580
if 
  225@ == 1
goto_if_false @POOL2_24621
set_lvar_int_to_lvar_int 211@ = 209@
set_lvar_int_to_lvar_int 212@ = 106@
goto @POOL2_24637

:POOL2_24621
set_lvar_int_to_lvar_int 211@ = 210@
set_lvar_int_to_lvar_int 212@ = 107@

:POOL2_24637
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_24933
$x, $y, $z = Char.GetOffsetInWorldCoords(211@, 1.0, 2.0, 0.0)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
Camera.PointAtChar(211@, CameraMode.Fixed, SwitchType.JumpCut)
if 
  178@ == 0
goto_if_false @POOL2_24861
if 
  is_int_lvar_equal_to_int_lvar 211@ == 209@
goto_if_false @POOL2_24823
set_lvar_int_to_lvar_int 39@ = 162@
39@ *= 2
Player.AddScore($player1, 39@)
start_new_script @CASHWIN 39@ 5000 80 
if 
  not Char.IsDead(164@)
goto_if_false @POOL2_24816
Char.SetMoney(164@, 0)

:POOL2_24816
goto @POOL2_24854

:POOL2_24823
set_lvar_int_to_lvar_int 39@ = 162@
39@ *= -1
start_new_script @CASHWIN 39@ 5000 80 

:POOL2_24854
goto @POOL2_24919

:POOL2_24861
if 
  is_int_lvar_equal_to_int_lvar 211@ == 209@
goto_if_false @POOL2_24903
Text.PrintBig('PL_08', 5000, TextStyle.Middle)
goto @POOL2_24919

:POOL2_24903
Text.PrintBig('PL_09', 5000, TextStyle.Middle)

:POOL2_24919
TIMERA = 0
35@ += 1

:POOL2_24933
if 
  35@ == 1
goto_if_false @POOL2_24977
if 
  TIMERA > 5000
goto_if_false @POOL2_24977
35@ += 1

:POOL2_24977
if 
  35@ == 2
goto_if_false @POOL2_25550
Camera.DoFade(500, Fade.Out)

:POOL2_25002
if 
  Camera.GetFadingStatus
goto_if_false @POOL2_25026
wait 0
goto @POOL2_25002

:POOL2_25026
39@ = 0

:POOL2_25033
if 
  16 > 39@
goto_if_false @POOL2_25094
if 
  Object.DoesExist(82@(39@,16i))
goto_if_false @POOL2_25080
Object.Delete(82@(39@,16i))

:POOL2_25080
39@ += 1
goto @POOL2_25033

:POOL2_25094
$x, $y, $z = Object.GetOffsetInWorldCoords(163@, -0.2734375, -0.0546875, 0.9296875)
82@ = Object.CreateNoOffset(#K_POOLBALLCUE, $x, $y, $z)
$heading = Object.GetHeading(163@)
$heading += 270.0
Object.SetHeading(82@, $heading)
554@, 555@, 556@ = Object.GetOffsetInWorldCoords(163@, 0.3408, -0.0284, 0.9297)
557@ = Object.GetHeading(163@)
557@ += 90.0
83@ = Object.CreateNoOffset(#K_POOLBALLSPT01, 554@, 555@, 556@)
84@ = Object.CreateNoOffset(#K_POOLBALLSPT02, 0.0, 0.0, 0.0)
85@ = Object.CreateNoOffset(#K_POOLBALLSPT03, 0.0, 0.0, 0.0)
86@ = Object.CreateNoOffset(#K_POOLBALLSPT04, 0.0, 0.0, 0.0)
87@ = Object.CreateNoOffset(#K_POOLBALLSPT05, 0.0, 0.0, 0.0)
88@ = Object.CreateNoOffset(#K_POOLBALLSPT06, 0.0, 0.0, 0.0)
89@ = Object.CreateNoOffset(#K_POOLBALLSPT07, 0.0, 0.0, 0.0)
90@ = Object.CreateNoOffset(#K_POOLBALL8, 0.0, 0.0, 0.0)
91@ = Object.CreateNoOffset(#K_POOLBALLSTP01, 0.0, 0.0, 0.0)
92@ = Object.CreateNoOffset(#K_POOLBALLSTP02, 0.0, 0.0, 0.0)
93@ = Object.CreateNoOffset(#K_POOLBALLSTP03, 0.0, 0.0, 0.0)
94@ = Object.CreateNoOffset(#K_POOLBALLSTP04, 0.0, 0.0, 0.0)
95@ = Object.CreateNoOffset(#K_POOLBALLSTP05, 0.0, 0.0, 0.0)
96@ = Object.CreateNoOffset(#K_POOLBALLSTP06, 0.0, 0.0, 0.0)
97@ = Object.CreateNoOffset(#K_POOLBALLSTP07, 0.0, 0.0, 0.0)
gosub @POOL2_49954
35@ = 99

:POOL2_25550
if 
  35@ == 99
goto_if_false @POOL2_25584
Text.ClearHelp
34@ += 1
35@ = 0

:POOL2_25584
return 
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
Text.SetScale(1.3, 3.36)
Text.SetCenter(True)
Text.SetEdge(2, 0, 0, 0, 255)
Text.SetFont(Font.Pricedown)
$temp_integer_1, $temp_integer_2, $temp_integer_3, $temp_integer_4 = Hud.GetColor(6)
Text.SetColor($temp_integer_1, $temp_integer_2, $temp_integer_3, 255)
return 

:POOL2_25674
271@ = 0
267@ = 0
268@ = 0
269@ = 0
270@ = 0
39@ = 0

:POOL2_25716
if 
  16 > 39@
goto_if_false @POOL2_25770
251@(39@,16i) = 0
66@(39@,16i) = 0
39@ += 1
goto @POOL2_25716

:POOL2_25770
228@ = 0
272@ = 0
34@ = 1
35@ = 0
return 

:POOL2_25800
if 
  Object.DoesExist(163@)
goto_if_false @POOL2_25848
$x, $y, $z = Object.GetCoordinates(163@)
World.ClearArea($x, $y, $z, 10.0, True)

:POOL2_25848
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_25886
48@ = Object.GetSpeed(82@)
49@, 50@, 51@ = Object.GetRotationVelocity(82@)

:POOL2_25886
if 
  202@ > 2000
goto_if_false @POOL2_26376
set_var_float_to_lvar_float $x = 200@
$x *= -1.0
39@ = 0

:POOL2_25930
if 
  16 > 39@
goto_if_false @POOL2_26376
if 
  Object.DoesExist(82@(39@,16i))
goto_if_false @POOL2_26351
42@ = Object.GetSpeed(82@(39@,16i))
if 
  is_float_lvar_greater_than_float_lvar 199@ > 42@
goto_if_false @POOL2_26333
if 
  0.005 > 42@
goto_if_false @POOL2_26249
42@, 43@, 44@ = Object.GetRotationVelocity(82@(39@,16i))
40@ = 0
if or
  is_float_lvar_greater_than_float_lvar 42@ > 200@
  is_float_var_greater_than_float_lvar $x > 42@
goto_if_false @POOL2_26079
40@ = 1

:POOL2_26079
if or
  is_float_lvar_greater_than_float_lvar 43@ > 200@
  is_float_var_greater_than_float_lvar $x > 43@
goto_if_false @POOL2_26113
40@ = 1

:POOL2_26113
if or
  is_float_lvar_greater_than_float_lvar 44@ > 200@
  is_float_var_greater_than_float_lvar $x > 44@
goto_if_false @POOL2_26147
40@ = 1

:POOL2_26147
if 
  40@ == 0
goto_if_false @POOL2_26231
Object.SetVelocity(82@(39@,16i), 0.0, 0.0, 0.0)
Object.SetRotationVelocity(82@(39@,16i), 0.0, 0.0, 0.0)
109@(39@,16i) = 1
goto @POOL2_26242

:POOL2_26231
109@(39@,16i) = 0

:POOL2_26242
goto @POOL2_26326

:POOL2_26249
$x, $y, $z = Object.GetVelocity(82@(39@,16i))
$x *= 0.9
$y *= 0.9
$z *= 0.9
Object.SetVelocity(82@(39@,16i), $x, $y, $z)
109@(39@,16i) = 0

:POOL2_26326
goto @POOL2_26344

:POOL2_26333
109@(39@,16i) = 0

:POOL2_26344
goto @POOL2_26362

:POOL2_26351
109@(39@,16i) = 1

:POOL2_26362
39@ += 1
goto @POOL2_25930

:POOL2_26376
if 
  108@ <> 1
goto_if_false @POOL2_26440
set_lvar_int_to_lvar_int 354@ = 209@
set_lvar_int_to_lvar_int 355@ = 106@
gosub @POOL2_30078
set_lvar_int_to_lvar_int 354@ = 210@
set_lvar_int_to_lvar_int 355@ = 107@
gosub @POOL2_30078

:POOL2_26440
249@ *= 0.98
250@ *= 0.98
39@ = 0

:POOL2_26467
if 
  16 > 39@
goto_if_false @POOL2_26741
if 
  Object.DoesExist(82@(39@,16i))
goto_if_false @POOL2_26727
$x, $y, $z = Object.GetCoordinates(82@(39@,16i))
set_lvar_float_to_lvar_float 43@ = 52@
43@ *= 2.0
set_lvar_float_to_lvar_float 42@ = 556@
sub_float_lvar_from_float_lvar 42@ -= 43@
if 
  is_float_lvar_greater_than_float_var 42@ > $z
goto_if_false @POOL2_26727
if 
  66@(39@,16i) == 0
goto_if_false @POOL2_26727
Audio.ReportMissionAudioEventAtPosition($x, $y, $z, 1017)
if 
  Object.DoesExist(82@(39@,16i))
goto_if_false @POOL2_26641
Object.Delete(82@(39@,16i))

:POOL2_26641
66@(39@,16i) = 1
251@(39@,16i) = 1
267@ += 1
if and
  39@ > 0
  8 > 39@
goto_if_false @POOL2_26702
268@ += 1

:POOL2_26702
if 
  39@ > 8
goto_if_false @POOL2_26727
269@ += 1

:POOL2_26727
39@ += 1
goto @POOL2_26467

:POOL2_26741
39@ = 0

:POOL2_26748
if 
  16 > 39@
goto_if_false @POOL2_27127
if 
  Object.DoesExist(82@(39@,16i))
goto_if_false @POOL2_27113
if 
  Object.HasBeenDamagedByWeapon(82@(39@,16i), WeaponType.Fall)
goto_if_false @POOL2_26840
273@ += 1
if 
  39@ == 0
goto_if_false @POOL2_26840
275@ = 1

:POOL2_26840
if 
  274@ == -1
goto_if_false @POOL2_26956
if 
  39@ > 0
goto_if_false @POOL2_26956
if 
  Object.HasBeenDamagedByWeapon(82@(39@,16i), WeaponType.Drowning)
goto_if_false @POOL2_26956
set_lvar_int_to_lvar_int 274@ = 39@
if 
  275@ == 0
goto_if_false @POOL2_26956
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_26956
Object.AddVelocityRelative(82@, 249@, 250@, 0.0)

:POOL2_26956
if 
  Object.HasBeenDamagedByWeapon(82@(39@,16i), WeaponType.Runoverbycar)
goto_if_false @POOL2_27104
273@ += 1
if 
  39@ == 0
goto_if_false @POOL2_27010
275@ = 1

:POOL2_27010
if 
  274@ == -1
goto_if_false @POOL2_27104
if 
  39@ > 0
goto_if_false @POOL2_27104
set_lvar_int_to_lvar_int 274@ = 39@
if 
  275@ == 0
goto_if_false @POOL2_27104
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_27104
Object.AddVelocityRelative(82@, 249@, 250@, 0.0)

:POOL2_27104
Object.ClearLastWeaponDamage(82@(39@,16i))

:POOL2_27113
39@ += 1
goto @POOL2_26748

:POOL2_27127
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @POOL2_27218
if 
  129@ == 1
goto_if_false @POOL2_27193
129@ = 0
write_debug "OUTPUT_TEXT_OFF"
goto @POOL2_27218

:POOL2_27193
129@ = 1
write_debug "OUTPUT_TEXT_ON"

:POOL2_27218
if 
  not Object.DoesExist(163@)
goto_if_false @POOL2_27241
34@ = 99

:POOL2_27241
if 
  not Char.IsDead(164@)
goto_if_false @POOL2_27265
$6458 = Char.GetHealth(164@)

:POOL2_27265
if 
  Char.IsDead(164@)
goto_if_false @POOL2_27288
34@ = 99

:POOL2_27288
if 
  108@ == 1
goto_if_false @POOL2_27851
Hud.Display(True)
if 
  161@ > 0
goto_if_false @POOL2_27336
Player.AddScore($player1, 161@)

:POOL2_27336
if 
  not Char.IsDead(164@)
goto_if_false @POOL2_27408
Char.FreezePosition(164@, False)
DecisionMaker.Remove(203@)
203@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
Char.SetDecisionMaker(164@, 203@)
Char.SetCollision(164@, True)
Char.SetProofs(164@, False, False, False, False, False)
Char.HideWeaponForScriptedCutscene(164@, True)

:POOL2_27408
World.SetPedDensityMultiplier(1.0)
Text.UseCommands(False)
Hud.DisplayRadar(True)
39@ = 0

:POOL2_27430
if 
  16 > 39@
goto_if_false @POOL2_27471
Object.MarkAsNoLongerNeeded(82@(39@,16i))
39@ += 1
goto @POOL2_27430

:POOL2_27471
Camera.RestoreJumpcut
if 
  Object.DoesExist(234@)
goto_if_false @POOL2_27494
Object.Delete(234@)

:POOL2_27494
104@ += 0.1
Object.SetCoordinates(163@, 102@, 103@, 104@)
98@, 100@, $z = Object.GetOffsetInWorldCoords(163@, -0.96, -0.49, 0.7)
99@, 101@, $z = Object.GetOffsetInWorldCoords(163@, 0.96, 0.49, 0.7)
if 
  is_float_lvar_greater_than_float_lvar 98@ > 99@
goto_if_false @POOL2_27619
set_var_float_to_lvar_float $x = 98@
set_lvar_float_to_lvar_float 98@ = 99@
set_lvar_float_to_var_float 99@ = $x

:POOL2_27619
if 
  is_float_lvar_greater_than_float_lvar 100@ > 101@
goto_if_false @POOL2_27662
set_var_float_to_lvar_float $y = 100@
set_lvar_float_to_lvar_float 100@ = 101@
set_lvar_float_to_var_float 101@ = $y

:POOL2_27662
World.SetPoolTableCoords(98@, 100@, $z, 99@, 101@, $z)
39@ = 0

:POOL2_27689
if 
  16 > 39@
goto_if_false @POOL2_27787
if 
  Object.DoesExist(82@(39@,16i))
goto_if_false @POOL2_27773
$x, $y, $z = Object.GetCoordinates(82@(39@,16i))
$z += 0.1
Object.SetCoordinates(82@(39@,16i), $x, $y, $z)

:POOL2_27773
39@ += 1
goto @POOL2_27689

:POOL2_27787
if 
  Player.IsPlaying($player1)
goto_if_false @POOL2_27829
Char.ClearTasksImmediately($scplayer)
Char.FreezePosition($scplayer, False)
Player.SetControl($player1, True)
Char.SetCollision($scplayer, True)

:POOL2_27829
Object.Delete(106@)
Object.Delete(107@)
Streaming.MarkModelAsNoLongerNeeded(#K_POOLQ)
Streaming.RemoveAnimation("POOL")

:POOL2_27851
if and
  34@ == 99
  108@ == 0
goto_if_false @POOL2_27896
Text.UseCommands(False)
Hud.DisplayRadar(True)
34@ = 0
wait 500

:POOL2_27896
if 
is_ps2_keyboard_key_just_pressed 12
goto_if_false @POOL2_28008
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_28008
Object.FreezePosition(82@, False)
Object.SetCollision(82@, False)
Object.SetDynamic(82@, False)
$x = Math.RandomFloatInRange(-5.0, 5.0)
$y = Math.RandomFloatInRange(-5.0, 5.0)
Object.SetVelocity(82@, $x, $y, 0.0)
Object.SetCollision(82@, True)
Object.SetDynamic(82@, True)

:POOL2_28008
return 

:POOL2_28010
277@ = 0
276@ = 1.7

:POOL2_28027
if 
  277@ <> 99
goto_if_false @POOL2_30076
if 
  236@ <> 0
goto_if_false @POOL2_28070
277@ = 2

:POOL2_28070
if 
  277@ == 0
goto_if_false @POOL2_28679
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_28679
39@ = 0

:POOL2_28111
if 
  3 > 39@
goto_if_false @POOL2_28255
300@(39@,3f) = -999999.9
303@(39@,3f) = -999999.9
306@(39@,3f) = -999999.9
309@(39@,3f) = -999999.9
312@(39@,3f) = -999999.9
315@(39@,3f) = -999999.9
318@(39@,3f) = -999999.9
321@(39@,3f) = -999999.9
39@ += 1
goto @POOL2_28111

:POOL2_28255
set_lvar_float_to_lvar_float 297@ = 276@
set_lvar_float_to_lvar_float 297@ = 276@
set_lvar_float_to_lvar_float 296@ = 276@
296@ /= 10.0
$heading = Object.GetHeading(82@)
Object.SetRotation(82@, 0.0, 0.0, $heading)
$x, $y, $z = Object.GetCoordinates(82@)
if 
  is_float_lvar_greater_than_float_var 98@ > $x
goto_if_false @POOL2_28366
set_var_float_to_lvar_float $x = 98@
$x += 0.01

:POOL2_28366
if 
  is_float_var_greater_than_float_lvar $x > 99@
goto_if_false @POOL2_28403
set_var_float_to_lvar_float $x = 99@
$x -= 0.01

:POOL2_28403
if 
  is_float_lvar_greater_than_float_var 100@ > $y
goto_if_false @POOL2_28440
set_var_float_to_lvar_float $y = 100@
$y += 0.01

:POOL2_28440
if 
  is_float_var_greater_than_float_lvar $y > 101@
goto_if_false @POOL2_28477
set_var_float_to_lvar_float $y = 101@
$y -= 0.01

:POOL2_28477
165@, 166@, 167@ = Object.GetOffsetInWorldCoords(82@, 0.0, 1.0, 0.0)
set_lvar_float_to_lvar_float 278@ = 165@
sub_float_var_from_float_lvar 278@ -= $x
set_lvar_float_to_lvar_float 279@ = 166@
sub_float_var_from_float_lvar 279@ -= $y
42@ = Math.GetDistanceBetweenCoords2D($x, $y, 165@, 166@)
div_float_lvar_by_float_lvar 278@ /= 42@
div_float_lvar_by_float_lvar 279@ /= 42@
mult_float_lvar_by_float_lvar 278@ *= 297@
mult_float_lvar_by_float_lvar 279@ *= 297@
set_lvar_float_to_var_float 483@ = $x
set_lvar_float_to_var_float 484@ = $y
set_lvar_float_to_var_float 300@ = $x
set_lvar_float_to_var_float 303@ = $y
set_lvar_float_to_var_float 479@ = $x
add_float_lvar_to_float_lvar 479@ += 278@
set_lvar_float_to_var_float 480@ = $y
add_float_lvar_to_float_lvar 480@ += 279@
280@ = 0
324@ = 0
511@ = 0
277@ += 1

:POOL2_28679
if 
  277@ == 1
goto_if_false @POOL2_29098
237@ = 0

:POOL2_28704
if and
  297@ > 0.0
  3 > 280@
goto_if_false @POOL2_29084
gosub @POOL2_47597
set_lvar_float_to_lvar_float 306@(280@,3f) = 501@
set_lvar_float_to_lvar_float 309@(280@,3f) = 502@
set_lvar_int_to_lvar_int 39@ = 280@
39@ += 1
if 
  3 > 39@
goto_if_false @POOL2_28820
set_lvar_float_to_lvar_float 300@(39@,3f) = 501@
set_lvar_float_to_lvar_float 303@(39@,3f) = 502@

:POOL2_28820
42@ = Math.GetDistanceBetweenCoords2D(300@(280@,3f), 303@(280@,3f), 306@(280@,3f), 309@(280@,3f))
sub_float_lvar_from_float_lvar 297@ -= 42@
if 
  481@ == 0
goto_if_false @POOL2_29070
if 
  500@ <> -1
goto_if_false @POOL2_28914
297@ *= 0.5
goto @POOL2_28924

:POOL2_28914
297@ *= 0.75

:POOL2_28924
if 
  324@ == 0
goto_if_false @POOL2_28992
if 
  500@ <> -1
goto_if_false @POOL2_28992
set_lvar_int_to_lvar_int 324@ = 500@
set_lvar_float_to_lvar_float 325@ = 297@
set_lvar_float_to_lvar_float 326@ = 505@
set_lvar_float_to_lvar_float 327@ = 506@

:POOL2_28992
set_lvar_float_to_lvar_float 483@ = 501@
set_lvar_float_to_lvar_float 484@ = 502@
mult_float_lvar_by_float_lvar 503@ *= 297@
mult_float_lvar_by_float_lvar 504@ *= 297@
set_lvar_float_to_lvar_float 479@ = 483@
add_float_lvar_to_float_lvar 479@ += 503@
set_lvar_float_to_lvar_float 480@ = 484@
add_float_lvar_to_float_lvar 480@ += 504@
280@ += 1
goto @POOL2_29077

:POOL2_29070
280@ = 3

:POOL2_29077
goto @POOL2_28704

:POOL2_29084
236@ += 1
277@ += 1

:POOL2_29098
if 
  277@ == 2
goto_if_false @POOL2_30044
39@ = 0

:POOL2_29123
if 
  10 > 39@
goto_if_false @POOL2_29235
if 
  Object.DoesExist(343@(39@,10i))
goto_if_false @POOL2_29170
Object.Delete(343@(39@,10i))

:POOL2_29170
343@(39@,10i) = Object.Create(#K_POOLBALLCUE, 0.0, 0.0, 0.0)
Object.SetCollision(343@(39@,10i), False)
Object.SetScale(343@(39@,10i), 0.3)
39@ += 1
goto @POOL2_29123

:POOL2_29235
353@ = 0
339@ = 0.005
add_timed_float_lvar_to_float_lvar 338@ +=@ 339@
if 
  is_float_lvar_greater_than_float_lvar 338@ > 296@
goto_if_false @POOL2_29287
sub_float_lvar_from_float_lvar 338@ -= 296@

:POOL2_29287
342@ = 0.0
39@ = 0

:POOL2_29304
if 
  3 > 39@
goto_if_false @POOL2_30037
if and
  300@(39@,3f) > -9999.9
  303@(39@,3f) > -9999.9
  306@(39@,3f) > -9999.9
  309@(39@,3f) > -9999.9
goto_if_false @POOL2_30023
42@ = Math.GetDistanceBetweenCoords2D(300@(39@,3f), 303@(39@,3f), 306@(39@,3f), 309@(39@,3f))
set_lvar_float_to_lvar_float 169@ = 306@(39@,3f)
sub_float_lvar_from_float_lvar 169@ -= 300@(39@,3f)
set_lvar_float_to_lvar_float 170@ = 309@(39@,3f)
sub_float_lvar_from_float_lvar 170@ -= 303@(39@,3f)
set_lvar_float_to_lvar_float 43@ = 42@
div_float_lvar_by_float_lvar 43@ /= 296@
cset_lvar_int_to_lvar_float 40@ =# 43@
40@ += 1
div_float_lvar_by_float_lvar 169@ /= 42@
div_float_lvar_by_float_lvar 170@ /= 42@
set_lvar_float_to_lvar_float 340@ = 169@
set_lvar_float_to_lvar_float 341@ = 170@
mult_float_lvar_by_float_lvar 340@ *= 338@
mult_float_lvar_by_float_lvar 341@ *= 338@
mult_float_lvar_by_float_lvar 169@ *= 296@
mult_float_lvar_by_float_lvar 170@ *= 296@
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_29743
$x, $y, $z = Object.GetCoordinates(82@)
if 
  is_float_lvar_greater_than_float_var 98@ > $x
goto_if_false @POOL2_29632
set_var_float_to_lvar_float $x = 98@
$x += 0.01

:POOL2_29632
if 
  is_float_var_greater_than_float_lvar $x > 99@
goto_if_false @POOL2_29669
set_var_float_to_lvar_float $x = 99@
$x -= 0.01

:POOL2_29669
if 
  is_float_lvar_greater_than_float_var 100@ > $y
goto_if_false @POOL2_29706
set_var_float_to_lvar_float $y = 100@
$y += 0.01

:POOL2_29706
if 
  is_float_var_greater_than_float_lvar $y > 101@
goto_if_false @POOL2_29743
set_var_float_to_lvar_float $y = 101@
$y -= 0.01

:POOL2_29743
set_lvar_float_to_lvar_float 196@ = 300@(39@,3f)
sub_float_lvar_from_float_lvar 196@ -= 169@
set_lvar_float_to_lvar_float 197@ = 303@(39@,3f)
sub_float_lvar_from_float_lvar 197@ -= 170@
add_float_lvar_to_float_lvar 196@ += 340@
add_float_lvar_to_float_lvar 197@ += 341@
add_int_lvar_to_int_lvar 40@ += 353@

:POOL2_29807
if and
  is_int_lvar_greater_than_int_lvar 40@ > 353@
  10 > 353@
goto_if_false @POOL2_30023
set_var_float_to_lvar_float $x = 196@
add_float_lvar_to_float_var $x += 169@
set_var_float_to_lvar_float $y = 197@
add_float_lvar_to_float_var $y += 170@
set_lvar_float_to_var_float 196@ = $x
set_lvar_float_to_var_float 197@ = $y
if 
  Object.DoesExist(343@(353@,10i))
goto_if_false @POOL2_30009
if or
  is_float_var_greater_than_float_lvar $x > 99@
  is_float_lvar_greater_than_float_var 98@ > $x
  is_float_var_greater_than_float_lvar $y > 101@
  is_float_lvar_greater_than_float_var 100@ > $y
goto_if_false @POOL2_29980
Object.SetVisible(343@(353@,10i), False)
Object.SetCoordinates(343@(353@,10i), $x, $y, $z)
goto @POOL2_30009

:POOL2_29980
Object.SetVisible(343@(353@,10i), True)
Object.SetCoordinates(343@(353@,10i), $x, $y, $z)

:POOL2_30009
353@ += 1
goto @POOL2_29807

:POOL2_30023
39@ += 1
goto @POOL2_29304

:POOL2_30037
277@ += 1

:POOL2_30044
if 
  277@ == 3
goto_if_false @POOL2_30069
277@ = 99

:POOL2_30069
goto @POOL2_28027

:POOL2_30076
return 

:POOL2_30078
if 
  not Char.IsDead(354@)
goto_if_false @POOL2_33118
if 
  is_int_lvar_equal_to_int_var 354@ == $scplayer
goto_if_false @POOL2_30127
356@ = 0
goto @POOL2_30134

:POOL2_30127
356@ = 1

:POOL2_30134
if 
  Char.IsPlayingAnim(354@, "POOL_XLONG_SHOT")
goto_if_false @POOL2_30400
if 
  not Char.IsHoldingObject(354@, 355@)
goto_if_false @POOL2_30227
Task.PickUpObject(354@, 355@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)

:POOL2_30227
42@ = Char.GetAnimCurrentTime(354@, "POOL_XLONG_SHOT")
if 
  Object.IsPlayingAnim(355@, "POOL_XLONG_SHOT_O")
goto_if_false @POOL2_30321
Object.SetAnimCurrentTime(355@, "POOL_XLONG_SHOT_O", 42@)
goto @POOL2_30400

:POOL2_30321
if 
Object.PlayAnim(355@, "POOL_XLONG_SHOT_O", "POOL", 10000.0, False, True)
goto_if_false @POOL2_30400
Object.SetAnimSpeed(355@, "POOL_XLONG_SHOT_O", 0.0)

:POOL2_30400
if and
  Char.IsPlayingAnim(354@, "POOL_XLONG_START")
  not Char.IsPlayingAnim(354@, "POOL_XLONG_SHOT")
goto_if_false @POOL2_30694
if 
  not Char.IsHoldingObject(354@, 355@)
goto_if_false @POOL2_30516
Task.PickUpObject(354@, 355@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)

:POOL2_30516
42@ = Char.GetAnimCurrentTime(354@, "POOL_XLONG_START")
if 
  Object.IsPlayingAnim(355@, "POOL_XLONG_START_O")
goto_if_false @POOL2_30613
Object.SetAnimCurrentTime(355@, "POOL_XLONG_START_O", 42@)
goto @POOL2_30694

:POOL2_30613
if 
Object.PlayAnim(355@, "POOL_XLONG_START_O", "POOL", 10000.0, False, True)
goto_if_false @POOL2_30694
Object.SetAnimSpeed(355@, "POOL_XLONG_START_O", 0.0)

:POOL2_30694
if 
  Char.IsPlayingAnim(354@, "POOL_LONG_SHOT")
goto_if_false @POOL2_30954
if 
  not Char.IsHoldingObject(354@, 355@)
goto_if_false @POOL2_30786
Task.PickUpObject(354@, 355@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)

:POOL2_30786
42@ = Char.GetAnimCurrentTime(354@, "POOL_LONG_SHOT")
if 
  Object.IsPlayingAnim(355@, "POOL_LONG_SHOT_O")
goto_if_false @POOL2_30877
Object.SetAnimCurrentTime(355@, "POOL_LONG_SHOT_O", 42@)
goto @POOL2_30954

:POOL2_30877
if 
Object.PlayAnim(355@, "POOL_LONG_SHOT_O", "POOL", 10000.0, False, True)
goto_if_false @POOL2_30954
Object.SetAnimSpeed(355@, "POOL_LONG_SHOT_O", 0.0)

:POOL2_30954
if and
  Char.IsPlayingAnim(354@, "POOL_LONG_START")
  not Char.IsPlayingAnim(354@, "POOL_LONG_SHOT")
goto_if_false @POOL2_31241
if 
  not Char.IsHoldingObject(354@, 355@)
goto_if_false @POOL2_31068
Task.PickUpObject(354@, 355@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)

:POOL2_31068
42@ = Char.GetAnimCurrentTime(354@, "POOL_LONG_START")
if 
  Object.IsPlayingAnim(355@, "POOL_LONG_START_O")
goto_if_false @POOL2_31162
Object.SetAnimCurrentTime(355@, "POOL_LONG_START_O", 42@)
goto @POOL2_31241

:POOL2_31162
if 
Object.PlayAnim(355@, "POOL_LONG_START_O", "POOL", 10000.0, False, True)
goto_if_false @POOL2_31241
Object.SetAnimSpeed(355@, "POOL_LONG_START_O", 0.0)

:POOL2_31241
if 
  Char.IsPlayingAnim(354@, "POOL_MED_SHOT")
goto_if_false @POOL2_31495
if 
  not Char.IsHoldingObject(354@, 355@)
goto_if_false @POOL2_31332
Task.PickUpObject(354@, 355@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)

:POOL2_31332
42@ = Char.GetAnimCurrentTime(354@, "POOL_MED_SHOT")
if 
  Object.IsPlayingAnim(355@, "POOL_MED_SHOT_O")
goto_if_false @POOL2_31420
Object.SetAnimCurrentTime(355@, "POOL_MED_SHOT_O", 42@)
goto @POOL2_31495

:POOL2_31420
if 
Object.PlayAnim(355@, "POOL_MED_SHOT_O", "POOL", 10000.0, False, True)
goto_if_false @POOL2_31495
Object.SetAnimSpeed(355@, "POOL_MED_SHOT_O", 0.0)

:POOL2_31495
if and
  Char.IsPlayingAnim(354@, "POOL_MED_START")
  not Char.IsPlayingAnim(354@, "POOL_MED_SHOT")
goto_if_false @POOL2_31775
if 
  not Char.IsHoldingObject(354@, 355@)
goto_if_false @POOL2_31607
Task.PickUpObject(354@, 355@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)

:POOL2_31607
42@ = Char.GetAnimCurrentTime(354@, "POOL_MED_START")
if 
  Object.IsPlayingAnim(355@, "POOL_MED_START_O")
goto_if_false @POOL2_31698
Object.SetAnimCurrentTime(355@, "POOL_MED_START_O", 42@)
goto @POOL2_31775

:POOL2_31698
if 
Object.PlayAnim(355@, "POOL_MED_START_O", "POOL", 10000.0, False, True)
goto_if_false @POOL2_31775
Object.SetAnimSpeed(355@, "POOL_MED_START_O", 0.0)

:POOL2_31775
if 
  Char.IsPlayingAnim(354@, "POOL_SHORT_SHOT")
goto_if_false @POOL2_32041
if 
  not Char.IsHoldingObject(354@, 355@)
goto_if_false @POOL2_31868
Task.PickUpObject(354@, 355@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)

:POOL2_31868
42@ = Char.GetAnimCurrentTime(354@, "POOL_SHORT_SHOT")
if 
  Object.IsPlayingAnim(355@, "POOL_SHORT_SHOT_O")
goto_if_false @POOL2_31962
Object.SetAnimCurrentTime(355@, "POOL_SHORT_SHOT_O", 42@)
goto @POOL2_32041

:POOL2_31962
if 
Object.PlayAnim(355@, "POOL_SHORT_SHOT_O", "POOL", 10000.0, False, True)
goto_if_false @POOL2_32041
Object.SetAnimSpeed(355@, "POOL_SHORT_SHOT_O", 0.0)

:POOL2_32041
if and
  Char.IsPlayingAnim(354@, "POOL_SHORT_START")
  not Char.IsPlayingAnim(354@, "POOL_SHORT_SHOT")
goto_if_false @POOL2_32335
if 
  not Char.IsHoldingObject(354@, 355@)
goto_if_false @POOL2_32157
Task.PickUpObject(354@, 355@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)

:POOL2_32157
42@ = Char.GetAnimCurrentTime(354@, "POOL_SHORT_START")
if 
  Object.IsPlayingAnim(355@, "POOL_SHORT_START_O")
goto_if_false @POOL2_32254
Object.SetAnimCurrentTime(355@, "POOL_SHORT_START_O", 42@)
goto @POOL2_32335

:POOL2_32254
if 
Object.PlayAnim(355@, "POOL_SHORT_START_O", "POOL", 10000.0, False, True)
goto_if_false @POOL2_32335
Object.SetAnimSpeed(355@, "POOL_SHORT_START_O", 0.0)

:POOL2_32335
if 
  Char.IsPlayingAnim(354@, "POOL_CHALKCUE")
goto_if_false @POOL2_32538
if 
  not Char.IsHoldingObject(354@, 355@)
goto_if_false @POOL2_32426
Task.PickUpObject(354@, 355@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)

:POOL2_32426
42@ = Char.GetAnimCurrentTime(354@, "POOL_CHALKCUE")
if 
  42@ > 0.28
goto_if_false @POOL2_32531
if 
  357@(356@,2i) <> 1
goto_if_false @POOL2_32531
$x, $y, $z = Object.GetCoordinates(355@)
Audio.ReportMissionAudioEventAtPosition($x, $y, $z, 1018)
357@(356@,2i) = 1

:POOL2_32531
goto @POOL2_32571

:POOL2_32538
if 
  357@(356@,2i) <> 0
goto_if_false @POOL2_32571
357@(356@,2i) = 0

:POOL2_32571
if 
  Char.IsPlayingAnim(354@, "POOL_IDLE_STANCE")
goto_if_false @POOL2_32665
if 
  not Char.IsHoldingObject(354@, 355@)
goto_if_false @POOL2_32665
Task.PickUpObject(354@, 355@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)

:POOL2_32665
if 
  Char.IsPlayingAnim(354@, "POOL_WALK")
goto_if_false @POOL2_32752
if 
  not Char.IsHoldingObject(354@, 355@)
goto_if_false @POOL2_32752
Task.PickUpObject(354@, 355@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)

:POOL2_32752
if 
  Char.IsPlayingAnim(354@, "POOL_WALK_START")
goto_if_false @POOL2_32845
if 
  not Char.IsHoldingObject(354@, 355@)
goto_if_false @POOL2_32845
Task.PickUpObject(354@, 355@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)

:POOL2_32845
39@ = 0
if and
  Char.IsPlayingAnim(354@, "IDLE_STANCE")
  not is_int_lvar_equal_to_int_lvar 211@ == 354@
goto_if_false @POOL2_32896
39@ = 1

:POOL2_32896
if and
  Char.IsPlayingAnim(354@, "IDLE_STANCE")
  35@ == 6
goto_if_false @POOL2_32939
39@ = 1

:POOL2_32939
if 
  39@ == 1
goto_if_false @POOL2_33118
40@ = Char.GetScriptTaskStatus(354@, 1560)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @POOL2_33118
Char.DropObject(354@, False)
Task.PickUpObject(354@, 355@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)
47@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "POOL_IDLE_STANCE", "POOL", 4.0, True, True, True, False, -1)
Sequence.Close(47@)
if 
  108@ == 0
goto_if_false @POOL2_33113
Char.PerformSequence(354@, 47@)

:POOL2_33113
Sequence.Clear(47@)

:POOL2_33118
return 

:POOL2_33120
365@ = 99999.9
366@ = 99999.9
367@ = 99999.9
359@ = 99999.9
361@ = 0.0
360@ = 99999.9
362@ = 0

:POOL2_33187
if 
  6 > 362@
goto_if_false @POOL2_33429
378@(362@,6f) = 0.0
384@(362@,6f) = 0.0
390@(362@,6f) = 0.0
396@(362@,6f) = 0.0
402@(362@,6f) = 0.0
408@(362@,6f) = 0.0
414@(362@,6f) = 0.0
420@(362@,6f) = 0.0
426@(362@,6f) = 0.0
432@(362@,6f) = 0.0
438@(362@,6f) = 0.0
444@(362@,6f) = 0.0
450@(362@,6f) = 0.0
456@(362@,6f) = 0.0
462@(362@,6f) = 0.0
362@ += 1
goto @POOL2_33187

:POOL2_33429
362@ = 1

:POOL2_33436
if 
  16 > 362@
goto_if_false @POOL2_37707
wait 0
377@ = 0
if 
  Object.DoesExist(82@(362@,16i))
goto_if_false @POOL2_36640
if 
  66@(362@,16i) == 0
goto_if_false @POOL2_36626
if 
  8 > 362@
goto_if_false @POOL2_33539
364@ = 0
goto @POOL2_33578

:POOL2_33539
if 
  362@ == 8
goto_if_false @POOL2_33571
364@ = 2
goto @POOL2_33578

:POOL2_33571
364@ = 1

:POOL2_33578
if or
  is_int_lvar_equal_to_int_lvar 364@ == 227@
  227@ == -1
goto_if_false @POOL2_36612
if and
  227@ == -1
  364@ == 2
goto_if_false @POOL2_33643
377@ = 1
goto @POOL2_36605

:POOL2_33643
if 
  129@ == 1
goto_if_false @POOL2_33800
save_newline_to_debug_file 
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL ")
save_int_to_debug_file 362@

:POOL2_33800
363@ = 0

:POOL2_33807
if 
  6 > 363@
goto_if_false @POOL2_36605
if 
  129@ == 1
goto_if_false @POOL2_33980
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("POCKET ")
save_int_to_debug_file 363@

:POOL2_33980
set_lvar_int_to_lvar_int 512@ = 82@(362@,16i)
set_lvar_int_to_lvar_int 513@ = 363@
gosub @POOL2_48183
if 
  129@ == 1
goto_if_false @POOL2_34162
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile(" REQUIRED ANGLE = ")
save_float_to_debug_file 515@

:POOL2_34162
if 
  514@ == 1
goto_if_false @POOL2_36148
set_lvar_int_to_lvar_int 477@ = 82@(362@,16i)
478@ = 0
set_lvar_float_to_lvar_float 479@ = 54@(363@,6f)
set_lvar_float_to_lvar_float 480@ = 60@(363@,6f)
gosub @POOL2_46347
if 
  481@ == 1
goto_if_false @POOL2_34265
469@ = 1.0
goto @POOL2_34311

:POOL2_34265
if 
  is_int_lvar_equal_to_int_lvar 482@ == 364@
goto_if_false @POOL2_34301
469@ = 0.2
goto @POOL2_34311

:POOL2_34301
469@ = 0.1

:POOL2_34311
if 
  129@ == 1
goto_if_false @POOL2_34466
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile(" POCKET_PATH_SCORE = ")
save_float_to_debug_file 469@

:POOL2_34466
$x, $y, $z = Object.GetCoordinates(82@(362@,16i))
42@ = Math.GetDistanceBetweenCoords2D($x, $y, 54@(363@,6f), 60@(363@,6f))
471@ = 2.3
sub_float_lvar_from_float_lvar 471@ -= 42@
471@ /= 2.3
if 
  129@ == 1
goto_if_false @POOL2_34692
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile(" POCKET_DIST_SCORE = ")
save_float_to_debug_file 471@

:POOL2_34692
472@ = 90.0
sub_float_lvar_from_float_lvar 472@ -= 515@
472@ /= 90.0
if 
  129@ == 1
goto_if_false @POOL2_34875
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile(" POCKET_ANGLE_SCORE = ")
save_float_to_debug_file 472@

:POOL2_34875
set_lvar_int_to_lvar_int 477@ = 82@
set_lvar_int_to_lvar_int 478@ = 82@(362@,16i)
set_lvar_float_to_lvar_float 479@ = 522@
set_lvar_float_to_lvar_float 480@ = 523@
gosub @POOL2_46347
if 
  481@ == 1
goto_if_false @POOL2_34953
470@ = 1.0
goto @POOL2_35184

:POOL2_34953
if 
  129@ == 1
goto_if_false @POOL2_35103
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("   (PATH NOT CLEAR FROM CUE BALL TO THIS BALL) ")

:POOL2_35103
if 
  227@ == -1
goto_if_false @POOL2_35138
470@ = 0.05
goto @POOL2_35184

:POOL2_35138
if 
  is_int_lvar_equal_to_int_lvar 482@ == 227@
goto_if_false @POOL2_35174
470@ = 0.05
goto @POOL2_35184

:POOL2_35174
470@ = -1000.0

:POOL2_35184
if 
  129@ == 1
goto_if_false @POOL2_35339
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile(" CUE_PATH_SCORE = ")
save_float_to_debug_file 470@

:POOL2_35339
$x, $y, $z = Object.GetCoordinates(82@)
42@ = Math.GetDistanceBetweenCoords2D($x, $y, 522@, 523@)
if 
  0.3 > 42@
goto_if_false @POOL2_35427
43@ = 0.3
sub_float_lvar_from_float_lvar 43@ -= 42@
42@ = 0.3
add_float_lvar_to_float_lvar 42@ += 43@

:POOL2_35427
42@ += -0.3
43@ = 2.0
sub_float_lvar_from_float_lvar 43@ -= 42@
43@ /= 2.0
set_lvar_float_to_lvar_float 468@ = 43@
if 
  129@ == 1
goto_if_false @POOL2_35628
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile(" CUE_DIST_SCORE = ")
save_float_to_debug_file 468@

:POOL2_35628
469@ *= 1.0
470@ *= 1.0
468@ *= 0.3
471@ *= 0.4
472@ *= 0.8
set_lvar_float_to_lvar_float 473@ = 469@
add_float_lvar_to_float_lvar 473@ += 470@
add_float_lvar_to_float_lvar 473@ += 468@
add_float_lvar_to_float_lvar 473@ += 471@
add_float_lvar_to_float_lvar 473@ += 472@
473@ /= 5.0
switch_start 362@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @POOL2_36141 {caseNum1} 1 {caseLabel1} @POOL2_35856 {caseNum2} 2 {caseLabel2} @POOL2_35875 {caseNum3} 3 {caseLabel3} @POOL2_35894 {caseNum4} 4 {caseLabel4} @POOL2_35913 {caseNum5} 5 {caseLabel5} @POOL2_35932 {caseNum6} 6 {caseLabel6} @POOL2_35951 {caseNum7} 7 {caseLabel7} @POOL2_35970
switch_continued 8 {caseLabel1} @POOL2_35989 {caseNum2} 9 {caseLabel2} @POOL2_36008 {caseNum3} 10 {caseLabel3} @POOL2_36027 {caseNum4} 11 {caseLabel4} @POOL2_36046 {caseNum5} 12 {caseLabel5} @POOL2_36065 {caseNum6} 13 {caseLabel6} @POOL2_36084 {caseNum7} 14 {caseLabel7} @POOL2_36103 {caseNum8} 15 {caseLabel8} @POOL2_36122 {caseNum9} -1 {caseLabel9} @POOL2_36141

:POOL2_35856
set_lvar_float_to_lvar_float 378@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_35875
set_lvar_float_to_lvar_float 384@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_35894
set_lvar_float_to_lvar_float 390@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_35913
set_lvar_float_to_lvar_float 396@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_35932
set_lvar_float_to_lvar_float 402@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_35951
set_lvar_float_to_lvar_float 408@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_35970
set_lvar_float_to_lvar_float 414@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_35989
set_lvar_float_to_lvar_float 420@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36008
set_lvar_float_to_lvar_float 426@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36027
set_lvar_float_to_lvar_float 432@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36046
set_lvar_float_to_lvar_float 438@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36065
set_lvar_float_to_lvar_float 444@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36084
set_lvar_float_to_lvar_float 450@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36103
set_lvar_float_to_lvar_float 456@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36122
set_lvar_float_to_lvar_float 462@(363@,6f) = 473@
goto @POOL2_36141

:POOL2_36141
goto @POOL2_36591

:POOL2_36148
switch_start 362@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @POOL2_36591 {caseNum1} 1 {caseLabel1} @POOL2_36276 {caseNum2} 2 {caseLabel2} @POOL2_36297 {caseNum3} 3 {caseLabel3} @POOL2_36318 {caseNum4} 4 {caseLabel4} @POOL2_36339 {caseNum5} 5 {caseLabel5} @POOL2_36360 {caseNum6} 6 {caseLabel6} @POOL2_36381 {caseNum7} 7 {caseLabel7} @POOL2_36402
switch_continued 8 {caseLabel1} @POOL2_36423 {caseNum2} 9 {caseLabel2} @POOL2_36444 {caseNum3} 10 {caseLabel3} @POOL2_36465 {caseNum4} 11 {caseLabel4} @POOL2_36486 {caseNum5} 12 {caseLabel5} @POOL2_36507 {caseNum6} 13 {caseLabel6} @POOL2_36528 {caseNum7} 14 {caseLabel7} @POOL2_36549 {caseNum8} 15 {caseLabel8} @POOL2_36570 {caseNum9} -1 {caseLabel9} @POOL2_36591

:POOL2_36276
378@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36297
384@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36318
390@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36339
396@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36360
402@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36381
408@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36402
414@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36423
420@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36444
426@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36465
432@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36486
438@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36507
444@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36528
450@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36549
456@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36570
462@(363@,6f) = -1.0
goto @POOL2_36591

:POOL2_36591
363@ += 1
goto @POOL2_33807

:POOL2_36605
goto @POOL2_36619

:POOL2_36612
377@ = 1

:POOL2_36619
goto @POOL2_36633

:POOL2_36626
377@ = 1

:POOL2_36633
goto @POOL2_36647

:POOL2_36640
377@ = 1

:POOL2_36647
if 
  377@ == 1
goto_if_false @POOL2_37693
switch_start 362@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @POOL2_37693 {caseNum1} 1 {caseLabel1} @POOL2_36793 {caseNum2} 2 {caseLabel2} @POOL2_36853 {caseNum3} 3 {caseLabel3} @POOL2_36913 {caseNum4} 4 {caseLabel4} @POOL2_36973 {caseNum5} 5 {caseLabel5} @POOL2_37033 {caseNum6} 6 {caseLabel6} @POOL2_37093 {caseNum7} 7 {caseLabel7} @POOL2_37153
switch_continued 8 {caseLabel1} @POOL2_37213 {caseNum2} 9 {caseLabel2} @POOL2_37273 {caseNum3} 10 {caseLabel3} @POOL2_37333 {caseNum4} 11 {caseLabel4} @POOL2_37393 {caseNum5} 12 {caseLabel5} @POOL2_37453 {caseNum6} 13 {caseLabel6} @POOL2_37513 {caseNum7} 14 {caseLabel7} @POOL2_37573 {caseNum8} 15 {caseLabel8} @POOL2_37633 {caseNum9} -1 {caseLabel9} @POOL2_37693

:POOL2_36793
363@ = 0

:POOL2_36800
if 
  6 > 363@
goto_if_false @POOL2_36846
378@(363@,6f) = -1.0
363@ += 1
goto @POOL2_36800

:POOL2_36846
goto @POOL2_37693

:POOL2_36853
363@ = 0

:POOL2_36860
if 
  6 > 363@
goto_if_false @POOL2_36906
384@(363@,6f) = -1.0
363@ += 1
goto @POOL2_36860

:POOL2_36906
goto @POOL2_37693

:POOL2_36913
363@ = 0

:POOL2_36920
if 
  6 > 363@
goto_if_false @POOL2_36966
390@(363@,6f) = -1.0
363@ += 1
goto @POOL2_36920

:POOL2_36966
goto @POOL2_37693

:POOL2_36973
363@ = 0

:POOL2_36980
if 
  6 > 363@
goto_if_false @POOL2_37026
396@(363@,6f) = -1.0
363@ += 1
goto @POOL2_36980

:POOL2_37026
goto @POOL2_37693

:POOL2_37033
363@ = 0

:POOL2_37040
if 
  6 > 363@
goto_if_false @POOL2_37086
402@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37040

:POOL2_37086
goto @POOL2_37693

:POOL2_37093
363@ = 0

:POOL2_37100
if 
  6 > 363@
goto_if_false @POOL2_37146
408@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37100

:POOL2_37146
goto @POOL2_37693

:POOL2_37153
363@ = 0

:POOL2_37160
if 
  6 > 363@
goto_if_false @POOL2_37206
414@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37160

:POOL2_37206
goto @POOL2_37693

:POOL2_37213
363@ = 0

:POOL2_37220
if 
  6 > 363@
goto_if_false @POOL2_37266
420@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37220

:POOL2_37266
goto @POOL2_37693

:POOL2_37273
363@ = 0

:POOL2_37280
if 
  6 > 363@
goto_if_false @POOL2_37326
426@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37280

:POOL2_37326
goto @POOL2_37693

:POOL2_37333
363@ = 0

:POOL2_37340
if 
  6 > 363@
goto_if_false @POOL2_37386
432@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37340

:POOL2_37386
goto @POOL2_37693

:POOL2_37393
363@ = 0

:POOL2_37400
if 
  6 > 363@
goto_if_false @POOL2_37446
438@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37400

:POOL2_37446
goto @POOL2_37693

:POOL2_37453
363@ = 0

:POOL2_37460
if 
  6 > 363@
goto_if_false @POOL2_37506
444@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37460

:POOL2_37506
goto @POOL2_37693

:POOL2_37513
363@ = 0

:POOL2_37520
if 
  6 > 363@
goto_if_false @POOL2_37566
450@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37520

:POOL2_37566
goto @POOL2_37693

:POOL2_37573
363@ = 0

:POOL2_37580
if 
  6 > 363@
goto_if_false @POOL2_37626
456@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37580

:POOL2_37626
goto @POOL2_37693

:POOL2_37633
363@ = 0

:POOL2_37640
if 
  6 > 363@
goto_if_false @POOL2_37686
462@(363@,6f) = -1.0
363@ += 1
goto @POOL2_37640

:POOL2_37686
goto @POOL2_37693

:POOL2_37693
362@ += 1
goto @POOL2_33436

:POOL2_37707
474@ = -9999.9
475@ = -1
476@ = -1
362@ = 0
if 
  129@ == 1
goto_if_false @POOL2_37888
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("POOL AI POTENTIAL SHOT SCORES")

:POOL2_37888
if 
  6 > 362@
goto_if_false @POOL2_41212
if 
  129@ == 1
goto_if_false @POOL2_38202
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("POCKET")
save_int_to_debug_file 362@
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL 01 = ")
save_float_to_debug_file 378@(362@,6f)

:POOL2_38202
if 
  is_float_lvar_greater_than_float_lvar 378@(362@,6f) > 474@
goto_if_false @POOL2_38252
set_lvar_float_to_lvar_float 474@ = 378@(362@,6f)
475@ = 1
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_38252
if 
  129@ == 1
goto_if_false @POOL2_38411
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL 02 = ")
save_float_to_debug_file 384@(362@,6f)

:POOL2_38411
if 
  is_float_lvar_greater_than_float_lvar 384@(362@,6f) > 474@
goto_if_false @POOL2_38461
set_lvar_float_to_lvar_float 474@ = 384@(362@,6f)
475@ = 2
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_38461
if 
  129@ == 1
goto_if_false @POOL2_38620
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL 03 = ")
save_float_to_debug_file 390@(362@,6f)

:POOL2_38620
if 
  is_float_lvar_greater_than_float_lvar 390@(362@,6f) > 474@
goto_if_false @POOL2_38670
set_lvar_float_to_lvar_float 474@ = 390@(362@,6f)
475@ = 3
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_38670
if 
  129@ == 1
goto_if_false @POOL2_38829
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL 04 = ")
save_float_to_debug_file 396@(362@,6f)

:POOL2_38829
if 
  is_float_lvar_greater_than_float_lvar 396@(362@,6f) > 474@
goto_if_false @POOL2_38879
set_lvar_float_to_lvar_float 474@ = 396@(362@,6f)
475@ = 4
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_38879
if 
  129@ == 1
goto_if_false @POOL2_39038
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL 05 = ")
save_float_to_debug_file 402@(362@,6f)

:POOL2_39038
if 
  is_float_lvar_greater_than_float_lvar 402@(362@,6f) > 474@
goto_if_false @POOL2_39088
set_lvar_float_to_lvar_float 474@ = 402@(362@,6f)
475@ = 5
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_39088
if 
  129@ == 1
goto_if_false @POOL2_39247
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL 06 = ")
save_float_to_debug_file 408@(362@,6f)

:POOL2_39247
if 
  is_float_lvar_greater_than_float_lvar 408@(362@,6f) > 474@
goto_if_false @POOL2_39297
set_lvar_float_to_lvar_float 474@ = 408@(362@,6f)
475@ = 6
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_39297
if 
  129@ == 1
goto_if_false @POOL2_39456
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL 07 = ")
save_float_to_debug_file 414@(362@,6f)

:POOL2_39456
if 
  is_float_lvar_greater_than_float_lvar 414@(362@,6f) > 474@
goto_if_false @POOL2_39506
set_lvar_float_to_lvar_float 474@ = 414@(362@,6f)
475@ = 7
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_39506
if 
  129@ == 1
goto_if_false @POOL2_39665
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL 08 = ")
save_float_to_debug_file 420@(362@,6f)

:POOL2_39665
if 
  is_float_lvar_greater_than_float_lvar 420@(362@,6f) > 474@
goto_if_false @POOL2_39715
set_lvar_float_to_lvar_float 474@ = 420@(362@,6f)
475@ = 8
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_39715
if 
  129@ == 1
goto_if_false @POOL2_39874
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL 09 = ")
save_float_to_debug_file 426@(362@,6f)

:POOL2_39874
if 
  is_float_lvar_greater_than_float_lvar 426@(362@,6f) > 474@
goto_if_false @POOL2_39924
set_lvar_float_to_lvar_float 474@ = 426@(362@,6f)
475@ = 9
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_39924
if 
  129@ == 1
goto_if_false @POOL2_40083
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL 10 = ")
save_float_to_debug_file 432@(362@,6f)

:POOL2_40083
if 
  is_float_lvar_greater_than_float_lvar 432@(362@,6f) > 474@
goto_if_false @POOL2_40133
set_lvar_float_to_lvar_float 474@ = 432@(362@,6f)
475@ = 10
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_40133
if 
  129@ == 1
goto_if_false @POOL2_40292
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL 11 = ")
save_float_to_debug_file 438@(362@,6f)

:POOL2_40292
if 
  is_float_lvar_greater_than_float_lvar 438@(362@,6f) > 474@
goto_if_false @POOL2_40342
set_lvar_float_to_lvar_float 474@ = 438@(362@,6f)
475@ = 11
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_40342
if 
  129@ == 1
goto_if_false @POOL2_40501
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL 12 = ")
save_float_to_debug_file 444@(362@,6f)

:POOL2_40501
if 
  is_float_lvar_greater_than_float_lvar 444@(362@,6f) > 474@
goto_if_false @POOL2_40551
set_lvar_float_to_lvar_float 474@ = 444@(362@,6f)
475@ = 12
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_40551
if 
  129@ == 1
goto_if_false @POOL2_40710
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL 13 = ")
save_float_to_debug_file 450@(362@,6f)

:POOL2_40710
if 
  is_float_lvar_greater_than_float_lvar 450@(362@,6f) > 474@
goto_if_false @POOL2_40760
set_lvar_float_to_lvar_float 474@ = 450@(362@,6f)
475@ = 13
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_40760
if 
  129@ == 1
goto_if_false @POOL2_40919
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL 14 = ")
save_float_to_debug_file 456@(362@,6f)

:POOL2_40919
if 
  is_float_lvar_greater_than_float_lvar 456@(362@,6f) > 474@
goto_if_false @POOL2_40969
set_lvar_float_to_lvar_float 474@ = 456@(362@,6f)
475@ = 14
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_40969
if 
  129@ == 1
goto_if_false @POOL2_41128
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL 15 = ")
save_float_to_debug_file 462@(362@,6f)

:POOL2_41128
if 
  is_float_lvar_greater_than_float_lvar 462@(362@,6f) > 474@
goto_if_false @POOL2_41178
set_lvar_float_to_lvar_float 474@ = 462@(362@,6f)
475@ = 15
set_lvar_int_to_lvar_int 476@ = 362@

:POOL2_41178
if 
  129@ == 1
goto_if_false @POOL2_41198
save_newline_to_debug_file 

:POOL2_41198
362@ += 1
goto @POOL2_37888

:POOL2_41212
if 
  474@ > 0.0
goto_if_false @POOL2_41633
368@, 369@, 370@ = Object.GetCoordinates(82@(475@,16i))
374@, 375@, 376@ = Object.GetCoordinates(82@)
set_lvar_float_to_lvar_float 371@ = 54@(476@,6f)
sub_float_lvar_from_float_lvar 371@ -= 368@
set_lvar_float_to_lvar_float 372@ = 60@(476@,6f)
sub_float_lvar_from_float_lvar 372@ -= 369@
42@ = Math.GetDistanceBetweenCoords2D(368@, 369@, 54@(476@,6f), 60@(476@,6f))
div_float_lvar_by_float_lvar 371@ /= 42@
div_float_lvar_by_float_lvar 372@ /= 42@
set_lvar_float_to_lvar_float 43@ = 52@
43@ *= -2.0
mult_float_lvar_by_float_lvar 371@ *= 43@
mult_float_lvar_by_float_lvar 372@ *= 43@
set_lvar_float_to_lvar_float 365@ = 368@
add_float_lvar_to_float_lvar 365@ += 371@
set_lvar_float_to_lvar_float 366@ = 369@
add_float_lvar_to_float_lvar 366@ += 372@
set_var_float_to_lvar_float $x = 368@
sub_float_lvar_from_float_var $x -= 365@
set_var_float_to_lvar_float $y = 369@
sub_float_lvar_from_float_var $y -= 366@
set_lvar_float_to_lvar_float 169@ = 365@
sub_float_lvar_from_float_lvar 169@ -= 374@
set_lvar_float_to_lvar_float 170@ = 366@
sub_float_lvar_from_float_lvar 170@ -= 375@
361@ = Math.GetAngleBetween2DVectors($x, $y, 169@, 170@)
set_lvar_float_to_lvar_float 42@ = 361@
42@ /= 90.0
42@ *= 0.25
mult_float_var_by_float_lvar $x *= 42@
mult_float_var_by_float_lvar $y *= 42@
add_float_var_to_float_lvar 365@ += $x
add_float_var_to_float_lvar 366@ += $y
42@ = Math.GetDistanceBetweenCoords2D(374@, 375@, 365@, 366@)
43@ = Math.GetDistanceBetweenCoords2D(368@, 369@, 365@, 366@)
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = Math.RandomFloatInRange(2.0, 6.0)
mult_float_lvar_by_float_lvar 367@ *= 42@
goto @POOL2_46120

:POOL2_41633
if 
  129@ == 1
goto_if_false @POOL2_41783
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("HIT AND HOPE")

:POOL2_41783
362@ = 1

:POOL2_41790
if 
  16 > 362@
goto_if_false @POOL2_42389
wait 0
if 
  Object.DoesExist(82@(362@,16i))
goto_if_false @POOL2_42375
if 
  66@(362@,16i) == 0
goto_if_false @POOL2_42375
if 
  362@ == 0
goto_if_false @POOL2_41886
364@ = 3
goto @POOL2_41957

:POOL2_41886
if 
  8 > 362@
goto_if_false @POOL2_41918
364@ = 0
goto @POOL2_41957

:POOL2_41918
if 
  362@ == 8
goto_if_false @POOL2_41950
364@ = 2
goto @POOL2_41957

:POOL2_41950
364@ = 1

:POOL2_41957
if or
  is_int_lvar_equal_to_int_lvar 364@ == 227@
  227@ == -1
goto_if_false @POOL2_42375
if and
  227@ == 0
  364@ == 2
goto_if_false @POOL2_42015
goto @POOL2_42375

:POOL2_42015
set_lvar_int_to_lvar_int 524@ = 82@
set_lvar_int_to_lvar_int 525@ = 82@(362@,16i)
gosub @POOL2_48503
if 
  526@ <> 0
goto_if_false @POOL2_42375
if 
  526@ == 1
goto_if_false @POOL2_42101
set_lvar_float_to_lvar_float 365@ = 535@
set_lvar_float_to_lvar_float 366@ = 536@
goto @POOL2_42306

:POOL2_42101
if 
  526@ == 2
goto_if_false @POOL2_42142
set_lvar_float_to_lvar_float 365@ = 537@
set_lvar_float_to_lvar_float 366@ = 538@
goto @POOL2_42306

:POOL2_42142
set_var_float_to_lvar_float $x = 537@
sub_float_lvar_from_float_var $x -= 535@
set_var_float_to_lvar_float $y = 538@
sub_float_lvar_from_float_var $y -= 536@
42@ = Math.GetDistanceBetweenCoords2D(535@, 536@, 537@, 538@)
div_float_var_by_float_lvar $x /= 42@
div_float_var_by_float_lvar $y /= 42@
set_lvar_float_to_lvar_float 42@ = 52@
42@ *= 2.0
42@ *= 0.8
42@ *= 2.0
43@ = Math.RandomFloatInRange(0.0, 42@)
mult_float_var_by_float_lvar $x *= 43@
mult_float_var_by_float_lvar $y *= 43@
set_lvar_float_to_lvar_float 365@ = 535@
add_float_var_to_float_lvar 365@ += $x
set_lvar_float_to_lvar_float 366@ = 536@
add_float_var_to_float_lvar 366@ += $y

:POOL2_42306
$x, $y, $z = Object.GetCoordinates(82@)
42@ = Math.GetDistanceBetweenCoords2D($x, $y, 365@, 366@)
43@ = Math.RandomFloatInRange(2.0, 5.0)
set_lvar_float_to_lvar_float 367@ = 42@
mult_float_lvar_by_float_lvar 367@ *= 43@
362@ = 16

:POOL2_42375
362@ += 1
goto @POOL2_41790

:POOL2_42389
if and
  365@ == 99999.9
  366@ == 99999.9
goto_if_false @POOL2_44417
if 
  129@ == 1
goto_if_false @POOL2_42570
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BOUNCE OFF CUSHION")

:POOL2_42570
362@ = 1

:POOL2_42577
if 
  16 > 362@
goto_if_false @POOL2_44417
wait 0
if 
  Object.DoesExist(82@(362@,16i))
goto_if_false @POOL2_44403
if 
  66@(362@,16i) == 0
goto_if_false @POOL2_44403
if 
  362@ == 0
goto_if_false @POOL2_42673
364@ = 3
goto @POOL2_42744

:POOL2_42673
if 
  8 > 362@
goto_if_false @POOL2_42705
364@ = 0
goto @POOL2_42744

:POOL2_42705
if 
  362@ == 8
goto_if_false @POOL2_42737
364@ = 2
goto @POOL2_42744

:POOL2_42737
364@ = 1

:POOL2_42744
if or
  is_int_lvar_equal_to_int_lvar 364@ == 227@
  227@ == -1
goto_if_false @POOL2_44403
if and
  227@ == -1
  364@ == 2
goto_if_false @POOL2_42802
goto @POOL2_44403

:POOL2_42802
368@, 369@, 370@ = Object.GetCoordinates(82@)
371@, 372@, 373@ = Object.GetCoordinates(82@(362@,16i))
if 
  129@ == 1
goto_if_false @POOL2_42984
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("  CUSHION 1 DATA = ")

:POOL2_42984
set_lvar_float_to_lvar_float 374@ = 368@
add_float_lvar_to_float_lvar 374@ += 371@
374@ /= 2.0
set_lvar_float_to_lvar_float 375@ = 100@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_43216
set_lvar_int_to_lvar_int 545@ = 82@
set_lvar_int_to_lvar_int 546@ = 82@(362@,16i)
set_lvar_float_to_lvar_float 547@ = 374@
set_lvar_float_to_lvar_float 548@ = 375@
gosub @POOL2_49362
if 
  549@ == 1
goto_if_false @POOL2_43216
set_lvar_float_to_lvar_float 365@ = 374@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = Math.GetDistanceBetweenCoords2D(368@, 369@, 374@, 375@)
43@ = Math.GetDistanceBetweenCoords2D(371@, 372@, 374@, 375@)
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = Math.RandomFloatInRange(3.0, 6.0)
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_43216
if and
  365@ == 99999.9
  366@ == 99999.9
goto_if_false @POOL2_43603
if 
  129@ == 1
goto_if_false @POOL2_43397
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("  CUSHION 2 DATA = ")

:POOL2_43397
set_lvar_float_to_lvar_float 375@ = 101@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_43603
set_lvar_int_to_lvar_int 545@ = 82@
set_lvar_int_to_lvar_int 546@ = 82@(362@,16i)
set_lvar_float_to_lvar_float 547@ = 374@
set_lvar_float_to_lvar_float 548@ = 375@
gosub @POOL2_49362
if 
  549@ == 1
goto_if_false @POOL2_43603
set_lvar_float_to_lvar_float 365@ = 374@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = Math.GetDistanceBetweenCoords2D(368@, 369@, 374@, 375@)
43@ = Math.GetDistanceBetweenCoords2D(371@, 372@, 374@, 375@)
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = Math.RandomFloatInRange(3.0, 6.0)
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_43603
if and
  365@ == 99999.9
  366@ == 99999.9
goto_if_false @POOL2_44016
if 
  129@ == 1
goto_if_false @POOL2_43784
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("  CUSHION 3 DATA = ")

:POOL2_43784
set_lvar_float_to_lvar_float 375@ = 369@
add_float_lvar_to_float_lvar 375@ += 372@
375@ /= 2.0
set_lvar_float_to_lvar_float 374@ = 98@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_44016
set_lvar_int_to_lvar_int 545@ = 82@
set_lvar_int_to_lvar_int 546@ = 82@(362@,16i)
set_lvar_float_to_lvar_float 547@ = 374@
set_lvar_float_to_lvar_float 548@ = 375@
gosub @POOL2_49362
if 
  549@ == 1
goto_if_false @POOL2_44016
set_lvar_float_to_lvar_float 365@ = 374@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = Math.GetDistanceBetweenCoords2D(368@, 369@, 374@, 375@)
43@ = Math.GetDistanceBetweenCoords2D(371@, 372@, 374@, 375@)
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = Math.RandomFloatInRange(3.0, 6.0)
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_44016
if and
  365@ == 99999.9
  366@ == 99999.9
goto_if_false @POOL2_44403
if 
  129@ == 1
goto_if_false @POOL2_44197
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("  CUSHION 4 DATA = ")

:POOL2_44197
set_lvar_float_to_lvar_float 374@ = 99@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_44403
set_lvar_int_to_lvar_int 545@ = 82@
set_lvar_int_to_lvar_int 546@ = 82@(362@,16i)
set_lvar_float_to_lvar_float 547@ = 374@
set_lvar_float_to_lvar_float 548@ = 375@
gosub @POOL2_49362
if 
  549@ == 1
goto_if_false @POOL2_44403
set_lvar_float_to_lvar_float 365@ = 374@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = Math.GetDistanceBetweenCoords2D(368@, 369@, 374@, 375@)
43@ = Math.GetDistanceBetweenCoords2D(371@, 372@, 374@, 375@)
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = Math.RandomFloatInRange(3.0, 6.0)
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_44403
362@ += 1
goto @POOL2_42577

:POOL2_44417
if and
  365@ == 99999.9
  366@ == 99999.9
goto_if_false @POOL2_45889
if 
  129@ == 1
goto_if_false @POOL2_44598
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("SNOOKER - BOUNCE 2")

:POOL2_44598
362@ = 1

:POOL2_44605
if 
  16 > 362@
goto_if_false @POOL2_45889
wait 0
if 
  Object.DoesExist(82@(362@,16i))
goto_if_false @POOL2_45875
if 
  66@(362@,16i) == 0
goto_if_false @POOL2_45875
if 
  362@ == 0
goto_if_false @POOL2_44701
364@ = 3
goto @POOL2_44772

:POOL2_44701
if 
  8 > 362@
goto_if_false @POOL2_44733
364@ = 0
goto @POOL2_44772

:POOL2_44733
if 
  362@ == 8
goto_if_false @POOL2_44765
364@ = 2
goto @POOL2_44772

:POOL2_44765
364@ = 1

:POOL2_44772
if or
  is_int_lvar_equal_to_int_lvar 364@ == 227@
  227@ == -1
goto_if_false @POOL2_45875
if and
  227@ == -1
  364@ == 2
goto_if_false @POOL2_44830
goto @POOL2_45875

:POOL2_44830
368@, 369@, 370@ = Object.GetCoordinates(82@)
371@, 372@, 373@ = Object.GetCoordinates(82@(362@,16i))
set_lvar_float_to_lvar_float 374@ = 368@
add_float_lvar_to_float_lvar 374@ += 371@
374@ /= 2.0
set_lvar_float_to_lvar_float 375@ = 100@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_45105
set_lvar_int_to_lvar_int 550@ = 82@
set_lvar_float_to_lvar_float 551@ = 374@
set_lvar_float_to_lvar_float 552@ = 375@
gosub @POOL2_49882
if 
  553@ == 1
goto_if_false @POOL2_45105
set_lvar_float_to_lvar_float 365@ = 374@
42@ = Math.RandomFloatInRange(-0.05, 0.05)
add_float_lvar_to_float_lvar 365@ += 42@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = Math.GetDistanceBetweenCoords2D(368@, 369@, 374@, 375@)
43@ = Math.GetDistanceBetweenCoords2D(371@, 372@, 374@, 375@)
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = Math.RandomFloatInRange(5.0, 8.0)
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_45105
if and
  365@ == 99999.9
  366@ == 99999.9
goto_if_false @POOL2_45353
set_lvar_float_to_lvar_float 375@ = 101@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_45353
set_lvar_int_to_lvar_int 550@ = 82@
set_lvar_float_to_lvar_float 551@ = 374@
set_lvar_float_to_lvar_float 552@ = 375@
gosub @POOL2_49882
if 
  553@ == 1
goto_if_false @POOL2_45353
set_lvar_float_to_lvar_float 365@ = 374@
42@ = Math.RandomFloatInRange(-0.05, 0.05)
add_float_lvar_to_float_lvar 365@ += 42@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = Math.GetDistanceBetweenCoords2D(368@, 369@, 374@, 375@)
43@ = Math.GetDistanceBetweenCoords2D(371@, 372@, 374@, 375@)
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = Math.RandomFloatInRange(5.0, 8.0)
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_45353
if and
  365@ == 99999.9
  366@ == 99999.9
goto_if_false @POOL2_45627
set_lvar_float_to_lvar_float 375@ = 369@
add_float_lvar_to_float_lvar 375@ += 372@
375@ /= 2.0
set_lvar_float_to_lvar_float 374@ = 98@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_45627
set_lvar_int_to_lvar_int 550@ = 82@
set_lvar_float_to_lvar_float 551@ = 374@
set_lvar_float_to_lvar_float 552@ = 375@
gosub @POOL2_49882
if 
  553@ == 1
goto_if_false @POOL2_45627
set_lvar_float_to_lvar_float 365@ = 374@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = Math.RandomFloatInRange(-0.05, 0.05)
add_float_lvar_to_float_lvar 366@ += 42@
42@ = Math.GetDistanceBetweenCoords2D(368@, 369@, 374@, 375@)
43@ = Math.GetDistanceBetweenCoords2D(371@, 372@, 374@, 375@)
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = Math.RandomFloatInRange(5.0, 8.0)
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_45627
if and
  365@ == 99999.9
  366@ == 99999.9
goto_if_false @POOL2_45875
set_lvar_float_to_lvar_float 374@ = 99@
set_lvar_float_to_lvar_float 539@ = 374@
set_lvar_float_to_lvar_float 540@ = 375@
gosub @POOL2_49106
if 
  541@ == 0
goto_if_false @POOL2_45875
set_lvar_int_to_lvar_int 550@ = 82@
set_lvar_float_to_lvar_float 551@ = 374@
set_lvar_float_to_lvar_float 552@ = 375@
gosub @POOL2_49882
if 
  553@ == 1
goto_if_false @POOL2_45875
set_lvar_float_to_lvar_float 365@ = 374@
set_lvar_float_to_lvar_float 366@ = 375@
42@ = Math.RandomFloatInRange(-0.05, 0.05)
add_float_lvar_to_float_lvar 366@ += 42@
42@ = Math.GetDistanceBetweenCoords2D(368@, 369@, 374@, 375@)
43@ = Math.GetDistanceBetweenCoords2D(371@, 372@, 374@, 375@)
set_lvar_float_to_lvar_float 367@ = 42@
add_float_lvar_to_float_lvar 367@ += 43@
42@ = Math.RandomFloatInRange(5.0, 8.0)
mult_float_lvar_by_float_lvar 367@ *= 42@
362@ = 16

:POOL2_45875
362@ += 1
goto @POOL2_44605

:POOL2_45889
if and
  365@ == 99999.9
  366@ == 99999.9
goto_if_false @POOL2_46120
if 
  129@ == 1
goto_if_false @POOL2_46070
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("SNOOKER - LAST RESORT")

:POOL2_46070
359@ = Math.RandomFloatInRange(0.0, 360.0)
360@ = Math.RandomFloatInRange(4.0, 8.0)
365@ = 0.0
366@ = 0.0

:POOL2_46120
if and
  359@ == 99999.9
  360@ == 99999.9
goto_if_false @POOL2_46283
368@, 369@, 370@ = Object.GetCoordinates(82@)
set_lvar_float_to_lvar_float 371@ = 365@
sub_float_lvar_from_float_lvar 371@ -= 368@
set_lvar_float_to_lvar_float 372@ = 366@
sub_float_lvar_from_float_lvar 372@ -= 369@
359@ = Math.GetHeadingFromVector2D(371@, 372@)
set_lvar_float_to_lvar_float 360@ = 367@
360@ *= 1.0
if 
  90.0 > 361@
goto_if_false @POOL2_46283
set_lvar_float_to_lvar_float 42@ = 361@
42@ /= 90.0
42@ *= 2.0
add_float_lvar_to_float_lvar 360@ += 42@

:POOL2_46283
if 
  0.7 > 360@
goto_if_false @POOL2_46314
360@ = 0.7

:POOL2_46314
if 
  360@ > 4.0
goto_if_false @POOL2_46345
360@ = 4.0

:POOL2_46345
return 

:POOL2_46347
goto @POOL2_46398
477@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
478@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)

:POOL2_46398
481@ = 1
500@ = -1
if 
  Object.DoesExist(477@)
goto_if_false @POOL2_46491
483@, 484@, $z = Object.GetCoordinates(477@)
set_lvar_float_to_lvar_float 487@ = 479@
sub_float_lvar_from_float_lvar 487@ -= 483@
set_lvar_float_to_lvar_float 488@ = 480@
sub_float_lvar_from_float_lvar 488@ -= 484@
493@ = Math.GetDistanceBetweenCoords2D(483@, 484@, 479@, 480@)

:POOL2_46491
wait 0
if or
  227@ == -1
  227@ == 2
  227@ == 1
goto_if_false @POOL2_46580
497@ = 1

:POOL2_46534
if 
  16 > 497@
goto_if_false @POOL2_46573
gosub @POOL2_46675
497@ += 1
goto @POOL2_46534

:POOL2_46573
goto @POOL2_46666

:POOL2_46580
499@ = 1

:POOL2_46587
if 
  16 > 499@
goto_if_false @POOL2_46666
set_lvar_int_to_lvar_int 497@ = 499@
497@ += 7
if 
  497@ > 15
goto_if_false @POOL2_46645
497@ += -15

:POOL2_46645
gosub @POOL2_46675
499@ += 1
goto @POOL2_46587

:POOL2_46666
478@ = 0
return 

:POOL2_46675
if 
  Object.DoesExist(82@(497@,16i))
goto_if_false @POOL2_47595
if 
  66@(497@,16i) == 0
goto_if_false @POOL2_47595
if 
  not is_int_lvar_equal_to_int_lvar 82@(497@,16i) == 477@
goto_if_false @POOL2_47595
498@ = 0
if 
  Object.DoesExist(478@)
goto_if_false @POOL2_46793
if 
  is_int_lvar_equal_to_int_lvar 82@(497@,16i) == 478@
goto_if_false @POOL2_46793
498@ = 1

:POOL2_46793
if 
  498@ == 0
goto_if_false @POOL2_47595
485@, 486@, $z = Object.GetCoordinates(82@(497@,16i))
set_lvar_float_to_lvar_float 489@ = 485@
sub_float_lvar_from_float_lvar 489@ -= 483@
set_lvar_float_to_lvar_float 490@ = 486@
sub_float_lvar_from_float_lvar 490@ -= 484@
494@ = Math.GetDistanceBetweenCoords2D(483@, 484@, 485@, 486@)
42@ = Math.GetAngleBetween2DVectors(487@, 488@, 489@, 490@)
495@ = Math.GetDistanceBetweenCoords2D(485@, 486@, 479@, 480@)
if 
  is_float_lvar_greater_than_float_lvar 53@ > 495@
goto_if_false @POOL2_47225
if 
  497@ == 0
goto_if_false @POOL2_46963
482@ = 3
goto @POOL2_47034

:POOL2_46963
if 
  8 > 497@
goto_if_false @POOL2_46995
482@ = 0
goto @POOL2_47034

:POOL2_46995
if 
  497@ == 8
goto_if_false @POOL2_47027
482@ = 2
goto @POOL2_47034

:POOL2_47027
482@ = 1

:POOL2_47034
if 
  129@ == 1
goto_if_false @POOL2_47189
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("    BALL OBSTRUCTING PATH (TOO CLOSE TO TARGET DESTINATION) = ")
save_int_to_debug_file 497@

:POOL2_47189
set_lvar_int_to_lvar_int 500@ = 497@
481@ = 0
497@ = 16
499@ = 16
goto @POOL2_47595

:POOL2_47225
if 
  90.0 >= 42@
goto_if_false @POOL2_47595
if 
  is_float_lvar_greater_than_float_lvar 493@ > 494@
goto_if_false @POOL2_47595
496@ = Math.Sin(42@)
set_lvar_float_to_lvar_float 42@ = 496@
mult_float_lvar_by_float_lvar 42@ *= 494@
if 
  is_float_lvar_greater_than_float_lvar 53@ > 42@
goto_if_false @POOL2_47595
if 
  497@ == 0
goto_if_false @POOL2_47340
482@ = 3
goto @POOL2_47411

:POOL2_47340
if 
  8 > 497@
goto_if_false @POOL2_47372
482@ = 0
goto @POOL2_47411

:POOL2_47372
if 
  497@ == 8
goto_if_false @POOL2_47404
482@ = 2
goto @POOL2_47411

:POOL2_47404
482@ = 1

:POOL2_47411
if 
  129@ == 1
goto_if_false @POOL2_47566
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("    BALL OBSTRUCTING PATH (OVERLAPPING PATH) = ")
save_int_to_debug_file 497@

:POOL2_47566
set_lvar_int_to_lvar_int 500@ = 497@
481@ = 0
497@ = 16
499@ = 16

:POOL2_47595
return 

:POOL2_47597
481@ = 1
500@ = -1
set_lvar_float_to_lvar_float 487@ = 479@
sub_float_lvar_from_float_lvar 487@ -= 483@
set_lvar_float_to_lvar_float 488@ = 480@
sub_float_lvar_from_float_lvar 488@ -= 484@
if or
  is_float_lvar_greater_than_float_lvar 98@ > 479@
  is_float_lvar_greater_than_float_lvar 479@ > 99@
  is_float_lvar_greater_than_float_lvar 100@ > 480@
  is_float_lvar_greater_than_float_lvar 480@ > 101@
goto_if_false @POOL2_48158
501@ = -99999.9
502@ = -99999.9
39@ = 0
if and
  501@, 502@ = Math.Get2DLinesIntersectPoint(483@, 484@, 479@, 480@, 98@, 100@, 98@, 101@)
  511@ <> 1
goto_if_false @POOL2_47777
39@ = 1
goto @POOL2_47962

:POOL2_47777
if and
  501@, 502@ = Math.Get2DLinesIntersectPoint(483@, 484@, 479@, 480@, 99@, 100@, 99@, 101@)
  511@ <> 2
goto_if_false @POOL2_47841
39@ = 2
goto @POOL2_47962

:POOL2_47841
if and
  501@, 502@ = Math.Get2DLinesIntersectPoint(483@, 484@, 479@, 480@, 98@, 100@, 99@, 100@)
  511@ <> 3
goto_if_false @POOL2_47905
39@ = 3
goto @POOL2_47962

:POOL2_47905
if and
  501@, 502@ = Math.Get2DLinesIntersectPoint(483@, 484@, 479@, 480@, 98@, 101@, 99@, 101@)
  511@ <> 4
goto_if_false @POOL2_47962
39@ = 4

:POOL2_47962
42@ = Math.GetDistanceBetweenCoords2D(479@, 480@, 483@, 484@)
if 
  42@ > 0.0
goto_if_false @POOL2_48016
div_float_lvar_by_float_lvar 487@ /= 42@
div_float_lvar_by_float_lvar 488@ /= 42@

:POOL2_48016
if or
  39@ == 1
  39@ == 2
goto_if_false @POOL2_48067
set_lvar_float_to_lvar_float 503@ = 487@
503@ *= -1.0
set_lvar_float_to_lvar_float 504@ = 488@

:POOL2_48067
if or
  39@ == 3
  39@ == 4
goto_if_false @POOL2_48118
set_lvar_float_to_lvar_float 503@ = 487@
set_lvar_float_to_lvar_float 504@ = 488@
504@ *= -1.0

:POOL2_48118
if 
  39@ <> 0
goto_if_false @POOL2_48144
set_lvar_int_to_lvar_int 511@ = 39@

:POOL2_48144
481@ = 0
goto @POOL2_48181

:POOL2_48158
set_lvar_float_to_lvar_float 501@ = 479@
set_lvar_float_to_lvar_float 502@ = 480@
481@ = 1

:POOL2_48181
return 

:POOL2_48183
if 
  Object.DoesExist(512@)
goto_if_false @POOL2_48253
522@, 523@, $z = Object.GetCoordinates(512@)
set_lvar_float_to_lvar_float 516@ = 54@(513@,6f)
sub_float_lvar_from_float_lvar 516@ -= 522@
set_lvar_float_to_lvar_float 517@ = 60@(513@,6f)
sub_float_lvar_from_float_lvar 517@ -= 523@

:POOL2_48253
42@ = Math.GetDistanceBetweenCoords2D($x, $y, 54@(513@,6f), 60@(513@,6f))
set_lvar_float_to_lvar_float 518@ = 516@
div_float_lvar_by_float_lvar 518@ /= 42@
set_lvar_float_to_lvar_float 519@ = 517@
div_float_lvar_by_float_lvar 519@ /= 42@
518@ *= -1.0
519@ *= -1.0
set_lvar_float_to_lvar_float 42@ = 52@
42@ *= 2.0
mult_float_lvar_by_float_lvar 518@ *= 42@
mult_float_lvar_by_float_lvar 519@ *= 42@
add_float_lvar_to_float_lvar 522@ += 518@
add_float_lvar_to_float_lvar 523@ += 519@
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_48442
$x, $y, $z = Object.GetCoordinates(82@)
set_lvar_float_to_lvar_float 520@ = 522@
sub_float_var_from_float_lvar 520@ -= $x
set_lvar_float_to_lvar_float 521@ = 523@
sub_float_var_from_float_lvar 521@ -= $y

:POOL2_48442
515@ = Math.GetAngleBetween2DVectors(516@, 517@, 520@, 521@)
if 
  90.0 > 515@
goto_if_false @POOL2_48494
514@ = 1
goto @POOL2_48501

:POOL2_48494
514@ = 0

:POOL2_48501
return 

:POOL2_48503
526@ = 0
527@ = 0
528@ = 0
if and
  Object.DoesExist(524@)
  Object.DoesExist(525@)
goto_if_false @POOL2_49104
$x, $y, $z = Object.GetCoordinates(524@)
533@, 534@, $z = Object.GetCoordinates(525@)
set_lvar_float_to_lvar_float 529@ = 533@
sub_float_var_from_float_lvar 529@ -= $x
set_lvar_float_to_lvar_float 530@ = 534@
sub_float_var_from_float_lvar 530@ -= $y
42@ = Math.GetDistanceBetweenCoords2D($x, $y, 533@, 534@)
div_float_lvar_by_float_lvar 529@ /= 42@
div_float_lvar_by_float_lvar 530@ /= 42@
set_lvar_float_to_lvar_float 531@ = 530@
set_lvar_float_to_lvar_float 532@ = 529@
532@ *= -1.0
set_lvar_float_to_lvar_float 42@ = 52@
42@ *= 2.0
42@ *= 0.8
set_lvar_float_to_lvar_float 43@ = 531@
mult_float_lvar_by_float_lvar 43@ *= 42@
set_lvar_float_to_lvar_float 535@ = 533@
add_float_lvar_to_float_lvar 535@ += 43@
set_lvar_float_to_lvar_float 43@ = 532@
mult_float_lvar_by_float_lvar 43@ *= 42@
set_lvar_float_to_lvar_float 536@ = 534@
add_float_lvar_to_float_lvar 536@ += 43@
set_lvar_int_to_lvar_int 477@ = 524@
set_lvar_int_to_lvar_int 478@ = 525@
set_lvar_float_to_lvar_float 479@ = 535@
set_lvar_float_to_lvar_float 480@ = 536@
gosub @POOL2_46347
if 
  481@ == 1
goto_if_false @POOL2_48820
527@ = 1

:POOL2_48820
set_lvar_float_to_lvar_float 42@ = 52@
42@ *= 2.0
42@ *= -0.8
set_lvar_float_to_lvar_float 43@ = 531@
mult_float_lvar_by_float_lvar 43@ *= 42@
set_lvar_float_to_lvar_float 537@ = 533@
add_float_lvar_to_float_lvar 537@ += 43@
set_lvar_float_to_lvar_float 43@ = 532@
mult_float_lvar_by_float_lvar 43@ *= 42@
set_lvar_float_to_lvar_float 538@ = 534@
add_float_lvar_to_float_lvar 538@ += 43@
set_lvar_int_to_lvar_int 477@ = 524@
set_lvar_int_to_lvar_int 478@ = 525@
set_lvar_float_to_lvar_float 479@ = 537@
set_lvar_float_to_lvar_float 480@ = 538@
gosub @POOL2_46347
if 
  481@ == 1
goto_if_false @POOL2_48976
528@ = 1

:POOL2_48976
if and
  527@ == 0
  528@ == 0
goto_if_false @POOL2_49008
526@ = 0

:POOL2_49008
if and
  527@ == 1
  528@ == 0
goto_if_false @POOL2_49040
526@ = 1

:POOL2_49040
if and
  527@ == 0
  528@ == 1
goto_if_false @POOL2_49072
526@ = 2

:POOL2_49072
if and
  527@ == 1
  528@ == 1
goto_if_false @POOL2_49104
526@ = 3

:POOL2_49104
return 

:POOL2_49106
541@ = 0
543@ = 2.5
mult_float_lvar_by_float_lvar 543@ *= 52@
544@ = 0

:POOL2_49138
if 
  6 > 544@
goto_if_false @POOL2_49360
542@ = Math.GetDistanceBetweenCoords2D(539@, 540@, 54@(544@,6f), 60@(544@,6f))
if 
  is_float_lvar_greater_than_float_lvar 543@ > 542@
goto_if_false @POOL2_49346
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("    POINT LIES ON POCKET")
541@ = 1
544@ = 6

:POOL2_49346
544@ += 1
goto @POOL2_49138

:POOL2_49360
return 

:POOL2_49362
549@ = 0
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("       BOUNCE_SHOT_PATH_CLEAR DATA = ")
set_lvar_int_to_lvar_int 477@ = 545@
478@ = 0
set_lvar_float_to_lvar_float 479@ = 547@
set_lvar_float_to_lvar_float 480@ = 548@
gosub @POOL2_46347
if 
  481@ == 1
goto_if_false @POOL2_49880
Debugger.SaveStringToDebugFile("1ST PATH CLEAR ")
set_lvar_int_to_lvar_int 477@ = 546@
478@ = 0
set_lvar_float_to_lvar_float 479@ = 547@
set_lvar_float_to_lvar_float 480@ = 548@
gosub @POOL2_46347
if 
  481@ == 1
goto_if_false @POOL2_49880
Debugger.SaveStringToDebugFile("2ND PATH CLEAR ")
549@ = 1

:POOL2_49880
return 

:POOL2_49882
553@ = 0
set_lvar_int_to_lvar_int 477@ = 545@
478@ = 0
set_lvar_float_to_lvar_float 479@ = 547@
set_lvar_float_to_lvar_float 480@ = 548@
gosub @POOL2_46347
if 
  481@ == 1
goto_if_false @POOL2_49952
553@ = 1

:POOL2_49952
return 

:POOL2_49954
set_lvar_float_to_lvar_float 561@ = 52@
561@ *= 2.0
set_lvar_float_to_lvar_float 558@ = 52@
558@ *= -1.0
set_lvar_float_to_lvar_float 562@ = 561@
562@ *= -1.0
set_lvar_float_to_lvar_float 42@ = 561@
mult_float_lvar_by_float_lvar 42@ *= 561@
set_lvar_float_to_lvar_float 43@ = 52@
mult_float_lvar_by_float_lvar 43@ *= 52@
set_lvar_float_to_lvar_float 559@ = 42@
sub_float_lvar_from_float_lvar 559@ -= 43@
559@ = Math.Sqrt(559@)
set_lvar_float_to_lvar_float 560@ = 559@
560@ *= -1.0
563@ = 1

:POOL2_50089
if 
  15 > 563@
goto_if_false @POOL2_50132
Object.FreezePosition(82@(563@,16i), False)
563@ += 1
goto @POOL2_50089

:POOL2_50132
Object.SetCoordinates(83@, 554@, 555@, 556@)
Object.SetHeading(83@, 557@)
$x, $y, $z = Object.GetOffsetInWorldCoords(83@, 558@, 560@, 0.0)
Object.SetCoordinates(91@, $x, $y, $z)
Object.SetHeading(91@, 557@)
$x, $y, $z = Object.GetOffsetInWorldCoords(91@, 561@, 0.0, 0.0)
Object.SetCoordinates(85@, $x, $y, $z)
Object.SetHeading(85@, 557@)
$x, $y, $z = Object.GetOffsetInWorldCoords(91@, 558@, 560@, 0.0)
Object.SetCoordinates(89@, $x, $y, $z)
Object.SetHeading(89@, 557@)
$x, $y, $z = Object.GetOffsetInWorldCoords(89@, 561@, 0.0, 0.0)
Object.SetCoordinates(90@, $x, $y, $z)
Object.SetHeading(90@, 557@)
$x, $y, $z = Object.GetOffsetInWorldCoords(90@, 561@, 0.0, 0.0)
Object.SetCoordinates(92@, $x, $y, $z)
Object.SetHeading(92@, 557@)
$x, $y, $z = Object.GetOffsetInWorldCoords(89@, 558@, 560@, 0.0)
Object.SetCoordinates(93@, $x, $y, $z)
Object.SetHeading(93@, 557@)
$x, $y, $z = Object.GetOffsetInWorldCoords(93@, 561@, 0.0, 0.0)
Object.SetCoordinates(84@, $x, $y, $z)
Object.SetHeading(84@, 557@)
$x, $y, $z = Object.GetOffsetInWorldCoords(84@, 561@, 0.0, 0.0)
Object.SetCoordinates(97@, $x, $y, $z)
Object.SetHeading(97@, 557@)
$x, $y, $z = Object.GetOffsetInWorldCoords(97@, 561@, 0.0, 0.0)
Object.SetCoordinates(87@, $x, $y, $z)
Object.SetHeading(87@, 557@)
$x, $y, $z = Object.GetOffsetInWorldCoords(93@, 558@, 560@, 0.0)
Object.SetCoordinates(88@, $x, $y, $z)
Object.SetHeading(88@, 557@)
$x, $y, $z = Object.GetOffsetInWorldCoords(88@, 561@, 0.0, 0.0)
Object.SetCoordinates(94@, $x, $y, $z)
Object.SetHeading(94@, 557@)
$x, $y, $z = Object.GetOffsetInWorldCoords(94@, 561@, 0.0, 0.0)
Object.SetCoordinates(95@, $x, $y, $z)
Object.SetHeading(95@, 557@)
$x, $y, $z = Object.GetOffsetInWorldCoords(95@, 561@, 0.0, 0.0)
Object.SetCoordinates(86@, $x, $y, $z)
Object.SetHeading(86@, 557@)
$x, $y, $z = Object.GetOffsetInWorldCoords(86@, 561@, 0.0, 0.0)
Object.SetCoordinates(96@, $x, $y, $z)
Object.SetHeading(96@, 557@)
return 

:POOL2_50834
598@ = -0.96
599@ = 0.49
600@ = 0.97
601@ = 0.49
602@ = 0.97
603@ = -0.49
604@ = -0.96
605@ = -0.49
567@, 568@, 569@ = Object.GetOffsetInWorldCoords(82@, 0.0, -5.0, 0.0)
570@, 571@, 572@ = Object.GetCoordinates(82@)
$z = World.GetGroundZFor3DCoord(570@, 571@, 572@)
573@, 574@, 575@ = Object.GetOffsetInWorldCoords(163@, 598@, 599@, 0.0)
576@, 577@, 578@ = Object.GetOffsetInWorldCoords(163@, 600@, 601@, 0.0)
if 
  $x, $y = Math.Get2DLinesIntersectPoint(567@, 568@, 570@, 571@, 573@, 574@, 576@, 577@)
goto_if_false @POOL2_51088
set_lvar_float_to_var_float 581@ = $x
set_lvar_float_to_var_float 585@ = $y
set_lvar_float_to_var_float 589@ = $z

:POOL2_51088
573@, 574@, 575@ = Object.GetOffsetInWorldCoords(163@, 602@, 603@, 0.0)
if 
  $x, $y = Math.Get2DLinesIntersectPoint(567@, 568@, 570@, 571@, 573@, 574@, 576@, 577@)
goto_if_false @POOL2_51180
set_lvar_float_to_var_float 581@ = $x
set_lvar_float_to_var_float 585@ = $y
set_lvar_float_to_var_float 589@ = $z

:POOL2_51180
576@, 577@, 578@ = Object.GetOffsetInWorldCoords(163@, 604@, 605@, 0.0)
if 
  $x, $y = Math.Get2DLinesIntersectPoint(567@, 568@, 570@, 571@, 573@, 574@, 576@, 577@)
goto_if_false @POOL2_51272
set_lvar_float_to_var_float 581@ = $x
set_lvar_float_to_var_float 585@ = $y
set_lvar_float_to_var_float 589@ = $z

:POOL2_51272
573@, 574@, 575@ = Object.GetOffsetInWorldCoords(163@, 598@, 599@, 0.0)
if 
  $x, $y = Math.Get2DLinesIntersectPoint(567@, 568@, 570@, 571@, 573@, 574@, 576@, 577@)
goto_if_false @POOL2_51364
set_lvar_float_to_var_float 581@ = $x
set_lvar_float_to_var_float 585@ = $y
set_lvar_float_to_var_float 589@ = $z

:POOL2_51364
set_lvar_float_to_lvar_float 169@ = 570@
sub_float_lvar_from_float_lvar 169@ -= 581@
set_lvar_float_to_lvar_float 170@ = 571@
sub_float_lvar_from_float_lvar 170@ -= 585@
set_lvar_float_to_lvar_float 171@ = 572@
sub_float_lvar_from_float_lvar 171@ -= 589@
593@ = Math.GetHeadingFromVector2D(169@, 170@)
set_lvar_float_to_lvar_float 591@ = 593@
set_lvar_float_to_lvar_float 592@ = 593@
set_lvar_float_to_lvar_float 594@ = 593@
set_lvar_float_to_lvar_float 590@ = 589@
set_lvar_float_to_lvar_float 587@ = 589@
set_lvar_float_to_lvar_float 588@ = 589@
595@ = Math.GetDistanceBetweenCoords2D(570@, 571@, 581@, 585@)
div_float_lvar_by_float_lvar 169@ /= 595@
div_float_lvar_by_float_lvar 170@ /= 595@
set_var_float_to_lvar_float $x = 169@
$x *= 3.0
set_var_float_to_lvar_float $y = 170@
$y *= 3.0
set_lvar_float_to_lvar_float 579@ = 581@
sub_float_var_from_float_lvar 579@ -= $x
set_lvar_float_to_lvar_float 583@ = 585@
sub_float_var_from_float_lvar 583@ -= $y
set_var_float_to_lvar_float $x = 169@
$x *= 1.0
set_var_float_to_lvar_float $y = 170@
$y *= 1.0
set_lvar_float_to_lvar_float 606@ = 581@
sub_float_var_from_float_lvar 606@ -= $x
set_lvar_float_to_lvar_float 607@ = 585@
sub_float_var_from_float_lvar 607@ -= $y
set_lvar_float_to_lvar_float 608@ = 589@
if 
  0.25 > 595@
goto_if_false @POOL2_51683
596@ = 1
goto @POOL2_51760

:POOL2_51683
if 
  0.65 > 595@
goto_if_false @POOL2_51718
596@ = 2
goto @POOL2_51760

:POOL2_51718
if 
  1.1 > 595@
goto_if_false @POOL2_51753
596@ = 3
goto @POOL2_51760

:POOL2_51753
596@ = 4

:POOL2_51760
if 
  596@ == 1
goto_if_false @POOL2_51846
set_var_float_to_lvar_float $x = 169@
$x *= 0.615
set_var_float_to_lvar_float $y = 170@
$y *= 0.615
set_lvar_float_to_lvar_float 580@ = 570@
sub_float_var_from_float_lvar 580@ -= $x
set_lvar_float_to_lvar_float 584@ = 571@
sub_float_var_from_float_lvar 584@ -= $y

:POOL2_51846
if 
  596@ == 2
goto_if_false @POOL2_51932
set_var_float_to_lvar_float $x = 169@
$x *= 1.0
set_var_float_to_lvar_float $y = 170@
$y *= 1.0
set_lvar_float_to_lvar_float 580@ = 570@
sub_float_var_from_float_lvar 580@ -= $x
set_lvar_float_to_lvar_float 584@ = 571@
sub_float_var_from_float_lvar 584@ -= $y

:POOL2_51932
if 
  596@ == 3
goto_if_false @POOL2_52018
set_var_float_to_lvar_float $x = 169@
$x *= 1.6
set_var_float_to_lvar_float $y = 170@
$y *= 1.6
set_lvar_float_to_lvar_float 580@ = 570@
sub_float_var_from_float_lvar 580@ -= $x
set_lvar_float_to_lvar_float 584@ = 571@
sub_float_var_from_float_lvar 584@ -= $y

:POOL2_52018
if 
  596@ == 4
goto_if_false @POOL2_52104
set_var_float_to_lvar_float $x = 169@
$x *= 2.1
set_var_float_to_lvar_float $y = 170@
$y *= 2.1
set_lvar_float_to_lvar_float 580@ = 570@
sub_float_var_from_float_lvar 580@ -= $x
set_lvar_float_to_lvar_float 584@ = 571@
sub_float_var_from_float_lvar 584@ -= $y

:POOL2_52104
$distance = Math.GetDistanceBetweenCoords2D(570@, 571@, 580@, 584@)
set_lvar_float_to_lvar_float 42@ = 595@
42@ += 0.3
if 
  is_float_lvar_greater_than_float_var 42@ > $distance
goto_if_false @POOL2_52240
set_lvar_float_to_lvar_float 42@ = 595@
42@ += 0.3
set_var_float_to_lvar_float $x = 169@
mult_float_var_by_float_lvar $x *= 42@
set_var_float_to_lvar_float $y = 170@
mult_float_var_by_float_lvar $y *= 42@
set_lvar_float_to_lvar_float 580@ = 570@
sub_float_var_from_float_lvar 580@ -= $x
set_lvar_float_to_lvar_float 584@ = 571@
sub_float_var_from_float_lvar 584@ -= $y

:POOL2_52240
if 
  596@ == 1
goto_if_false @POOL2_52326
set_var_float_to_lvar_float $x = 169@
$x *= 0.655
set_var_float_to_lvar_float $y = 170@
$y *= 0.655
set_lvar_float_to_lvar_float 582@ = 570@
sub_float_var_from_float_lvar 582@ -= $x
set_lvar_float_to_lvar_float 586@ = 571@
sub_float_var_from_float_lvar 586@ -= $y

:POOL2_52326
if 
  596@ == 2
goto_if_false @POOL2_52412
set_var_float_to_lvar_float $x = 169@
$x *= 1.0
set_var_float_to_lvar_float $y = 170@
$y *= 1.0
set_lvar_float_to_lvar_float 582@ = 570@
sub_float_var_from_float_lvar 582@ -= $x
set_lvar_float_to_lvar_float 586@ = 571@
sub_float_var_from_float_lvar 586@ -= $y

:POOL2_52412
if 
  596@ == 3
goto_if_false @POOL2_52498
set_var_float_to_lvar_float $x = 169@
$x *= 1.6
set_var_float_to_lvar_float $y = 170@
$y *= 1.6
set_lvar_float_to_lvar_float 582@ = 570@
sub_float_var_from_float_lvar 582@ -= $x
set_lvar_float_to_lvar_float 586@ = 571@
sub_float_var_from_float_lvar 586@ -= $y

:POOL2_52498
if 
  596@ == 4
goto_if_false @POOL2_52584
set_var_float_to_lvar_float $x = 169@
$x *= 2.1
set_var_float_to_lvar_float $y = 170@
$y *= 2.1
set_lvar_float_to_lvar_float 582@ = 570@
sub_float_var_from_float_lvar 582@ -= $x
set_lvar_float_to_lvar_float 586@ = 571@
sub_float_var_from_float_lvar 586@ -= $y

:POOL2_52584
return 

:POOL2_52586
Hud.DrawSprite(1, 609@, 610@, 611@, 612@, 128, 128, 128, 255)
Hud.DrawSprite(2, 613@, 614@, 615@, 616@, 128, 128, 128, 255)
if or
  Pad.IsButtonPressed(180@, Button.LeftStickY)
  Pad.IsButtonPressed(180@, Button.LeftStickX)
goto_if_false @POOL2_53137
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(180@)
cset_var_float_to_var_int $x =# $LStickX
cset_var_float_to_var_int $y =# $LStickY
$x /= 128.0
$y /= 128.0
$x *= 5.0
$y *= 5.0
set_lvar_float_to_lvar_float 42@ = 613@
add_float_var_to_float_lvar 42@ += $x
set_lvar_float_to_lvar_float 44@ = 611@
44@ /= 2.0
set_lvar_float_to_lvar_float 43@ = 609@
add_float_lvar_to_float_lvar 43@ += 44@
if 
  is_float_lvar_greater_than_float_lvar 43@ > 42@
goto_if_false @POOL2_52852
set_lvar_float_to_lvar_float 43@ = 609@
sub_float_lvar_from_float_lvar 43@ -= 44@
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_52852
set_var_float_to_lvar_float $x = 42@

:POOL2_52852
set_lvar_float_to_lvar_float 42@ = 614@
add_float_var_to_float_lvar 42@ += $y
set_lvar_float_to_lvar_float 44@ = 612@
44@ /= 2.0
set_lvar_float_to_lvar_float 43@ = 610@
add_float_lvar_to_float_lvar 43@ += 44@
if 
  is_float_lvar_greater_than_float_lvar 43@ > 42@
goto_if_false @POOL2_52964
set_lvar_float_to_lvar_float 43@ = 610@
sub_float_lvar_from_float_lvar 43@ -= 44@
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_52964
set_var_float_to_lvar_float $y = 42@

:POOL2_52964
42@ = Math.GetDistanceBetweenCoords2D($x, $y, 609@, 610@)
set_lvar_float_to_lvar_float 43@ = 611@
43@ /= 3.2
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_53121
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 609@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 610@
div_float_lvar_by_float_lvar 169@ /= 42@
div_float_lvar_by_float_lvar 170@ /= 42@
mult_float_lvar_by_float_lvar 169@ *= 43@
mult_float_lvar_by_float_lvar 170@ *= 43@
set_lvar_float_to_lvar_float 613@ = 609@
add_float_lvar_to_float_lvar 613@ += 169@
set_lvar_float_to_lvar_float 614@ = 610@
add_float_lvar_to_float_lvar 614@ += 170@
goto @POOL2_53137

:POOL2_53121
set_lvar_float_to_var_float 613@ = $x
set_lvar_float_to_var_float 614@ = $y

:POOL2_53137
return 

:POOL2_53139
set_lvar_float_to_lvar_float 622@ = 52@
622@ *= 2.0
620@ = 1

:POOL2_53164
if 
  16 > 620@
goto_if_false @POOL2_53366
if 
  Object.DoesExist(82@(620@,16i))
goto_if_false @POOL2_53352
$x, $y, $z = Object.GetCoordinates(82@(620@,16i))
621@ = Math.GetDistanceBetweenCoords2D($x, $y, 618@, 619@)
if 
  is_float_lvar_greater_than_float_lvar 622@ > 621@
goto_if_false @POOL2_53352
set_lvar_float_to_lvar_float 623@ = 618@
sub_float_var_from_float_lvar 623@ -= $x
set_lvar_float_to_lvar_float 624@ = 619@
sub_float_var_from_float_lvar 624@ -= $y
div_float_lvar_by_float_lvar 623@ /= 621@
div_float_lvar_by_float_lvar 624@ /= 621@
mult_float_lvar_by_float_lvar 623@ *= 622@
mult_float_lvar_by_float_lvar 624@ *= 622@
set_lvar_float_to_var_float 618@ = $x
add_float_lvar_to_float_lvar 618@ += 623@
set_lvar_float_to_var_float 619@ = $y
add_float_lvar_to_float_lvar 619@ += 624@

:POOL2_53352
620@ += 1
goto @POOL2_53164

:POOL2_53366
set_lvar_float_to_lvar_float 621@ = 98@
if 
  is_float_lvar_greater_than_float_lvar 621@ > 618@
goto_if_false @POOL2_53401
set_lvar_float_to_lvar_float 618@ = 621@

:POOL2_53401
set_lvar_float_to_lvar_float 621@ = 99@
if 
  is_float_lvar_greater_than_float_lvar 618@ > 621@
goto_if_false @POOL2_53436
set_lvar_float_to_lvar_float 618@ = 621@

:POOL2_53436
set_lvar_float_to_lvar_float 621@ = 100@
if 
  is_float_lvar_greater_than_float_lvar 621@ > 619@
goto_if_false @POOL2_53471
set_lvar_float_to_lvar_float 619@ = 621@

:POOL2_53471
set_lvar_float_to_lvar_float 621@ = 101@
if 
  is_float_lvar_greater_than_float_lvar 619@ > 621@
goto_if_false @POOL2_53506
set_lvar_float_to_lvar_float 619@ = 621@

:POOL2_53506
return 

:POOL2_53508
$debug_char_health, $cam_x1, $cam_y1 = Object.GetOffsetInWorldCoords(163@, 0.0, 0.0, 0.0)
$cam_z1, $cam_x2, $cam_y2 = Object.GetOffsetInWorldCoords(163@, 0.0, -1.0, 0.0)
set_var_float_to_var_float $cam_z2 = $debug_char_health
sub_float_var_from_float_var $cam_z2 -= $cam_z1
set_var_float_to_var_float $cam_rvec_x = $cam_x1
sub_float_var_from_float_var $cam_rvec_x -= $cam_x2
$cam_rvec_y = Math.GetDistanceBetweenCoords2D($debug_char_health, $cam_x1, $cam_z1, $cam_x2)
div_float_var_by_float_var $cam_z2 /= $cam_rvec_y
div_float_var_by_float_var $cam_rvec_x /= $cam_rvec_y
set_var_float_to_var_float $cam_nvec_x = $cam_rvec_x
set_var_float_to_var_float $cam_nvec_y = $cam_z2
$cam_nvec_y *= -1.0
return 

:POOL2_53659
Hud.DrawWindow(29.0, 220.0, 632@, 638@, 'BJ_TITL', 2)
gosub @POOL2_59559
Text.SetColor(134, 155, 184, 255)
Text.SetWrapX(640.0)
Text.Display(36.0, 240.0, 'BJ_01')
gosub @POOL2_59559
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber(36.0, 260.0, 'DOLLAR', 155@)
gosub @POOL2_59559
Text.SetColor(134, 155, 184, 255)
Text.SetWrapX(640.0)
Text.Display(36.0, 290.0, 'BJ_02')
gosub @POOL2_59559
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber(36.0, 310.0, 'DOLLAR', $active_initial_cue)
gosub @POOL2_59559
Text.SetColor(134, 155, 184, 255)
Text.SetWrapX(640.0)
Text.Display(36.0, 340.0, 'BJ_03')
gosub @POOL2_59559
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber(36.0, 360.0, 'DOLLAR', $pool_min_bet)
return 

:POOL2_53966
if and
  270@ == 0
  267@ == 0
goto_if_false @POOL2_54012
626@ = 1
gosub @POOL2_56162
goto @POOL2_55363

:POOL2_54012
Hud.DrawWindow(29.0, 220.0, 628@, 634@, 'SCORE', 2)
gosub @POOL2_59559
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 240.0, 'PL_01')
gosub @POOL2_59559
Text.SetScale(627@, 633@)
if 
  213@ == 0
goto_if_false @POOL2_54137
Text.Display(36.0, 260.0, 'PL_12')

:POOL2_54137
if 
  213@ == 1
goto_if_false @POOL2_54176
Text.Display(36.0, 260.0, 'PL_13')

:POOL2_54176
if 
  213@ == -1
goto_if_false @POOL2_54215
Text.Display(36.0, 260.0, 'PL_15')

:POOL2_54215
if 
  213@ == 2
goto_if_false @POOL2_54254
Text.Display(36.0, 260.0, 'PL_14')

:POOL2_54254
gosub @POOL2_59559
Text.SetColor(134, 155, 184, 255)
if 
  178@ == 1
goto_if_false @POOL2_54321
Text.Display(36.0, 290.0, 'PL_02')
goto @POOL2_54342

:POOL2_54321
Text.Display(36.0, 290.0, 'PL_03')

:POOL2_54342
gosub @POOL2_59559
Text.SetScale(627@, 633@)
if 
  214@ == 0
goto_if_false @POOL2_54396
Text.Display(36.0, 310.0, 'PL_12')

:POOL2_54396
if 
  214@ == 1
goto_if_false @POOL2_54435
Text.Display(36.0, 310.0, 'PL_13')

:POOL2_54435
if 
  214@ == -1
goto_if_false @POOL2_54474
Text.Display(36.0, 310.0, 'PL_15')

:POOL2_54474
if 
  214@ == 2
goto_if_false @POOL2_54513
Text.Display(36.0, 310.0, 'PL_14')

:POOL2_54513
if 
  270@ > 0
goto_if_false @POOL2_54833
gosub @POOL2_59559
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 340.0, 'PL_04')
gosub @POOL2_59559
Text.SetScale(627@, 633@)
switch_start 270@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @POOL2_54826 {caseNum1} 0 {caseLabel1} @POOL2_54651 {caseNum2} 1 {caseLabel2} @POOL2_54658 {caseNum3} 2 {caseLabel3} @POOL2_54686 {caseNum4} 3 {caseLabel4} @POOL2_54714 {caseNum5} 4 {caseLabel5} @POOL2_54742 {caseNum6} 5 {caseLabel6} @POOL2_54770 {caseNum7} 6 {caseLabel7} @POOL2_54798

:POOL2_54651
goto @POOL2_54826

:POOL2_54658
Text.Display(36.0, 360.0, 'FOUL1')
goto @POOL2_54826

:POOL2_54686
Text.Display(36.0, 360.0, 'FOUL2')
goto @POOL2_54826

:POOL2_54714
Text.Display(36.0, 360.0, 'FOUL3')
goto @POOL2_54826

:POOL2_54742
Text.Display(36.0, 360.0, 'FOUL4')
goto @POOL2_54826

:POOL2_54770
Text.Display(36.0, 360.0, 'FOUL5')
goto @POOL2_54826

:POOL2_54798
Text.Display(36.0, 360.0, 'FOUL6')
goto @POOL2_54826

:POOL2_54826
goto @POOL2_55363

:POOL2_54833
if 
  267@ > 0
goto_if_false @POOL2_55363
if 
  267@ == 1
goto_if_false @POOL2_55025
gosub @POOL2_59559
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 340.0, 'PL_05')
39@ = 1

:POOL2_54918
if 
  16 > 39@
goto_if_false @POOL2_55018
if 
  251@(39@,16i) <> 0
goto_if_false @POOL2_55004
gosub @POOL2_59559
Text.SetScale(627@, 633@)
Text.DisplayWithNumber(36.0, 360.0, 'NUM', 39@)
39@ = 16

:POOL2_55004
39@ += 1
goto @POOL2_54918

:POOL2_55018
goto @POOL2_55363

:POOL2_55025
gosub @POOL2_59559
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 340.0, 'PL_06')
39@ = 1
set_lvar_int_to_lvar_int 40@ = 267@
42@ = 36.0

:POOL2_55092
if 
  40@ > 0
goto_if_false @POOL2_55363

:POOL2_55110
if 
  16 > 39@
goto_if_false @POOL2_55356
if 
  251@(39@,16i) <> 0
goto_if_false @POOL2_55317
if 
  40@ > 1
goto_if_false @POOL2_55259
gosub @POOL2_59559
Text.SetScale(627@, 633@)
41@ = Text.GetStringWidthWithNumber('COMMA', 39@)
cset_lvar_float_to_lvar_int 43@ =# 41@
Text.DisplayWithNumber(42@, 360.0, 'COMMA', 39@)
add_float_lvar_to_float_lvar 42@ += 43@
39@ += 1
40@ -= 1
goto @POOL2_55310

:POOL2_55259
gosub @POOL2_59559
Text.SetScale(627@, 633@)
Text.DisplayWithNumber(42@, 360.0, 'NUM', 39@)
40@ = -1
39@ = 16

:POOL2_55310
goto @POOL2_55324

:POOL2_55317
39@ += 1

:POOL2_55324
if 
  39@ >= 16
goto_if_false @POOL2_55349
40@ = -1

:POOL2_55349
goto @POOL2_55110

:POOL2_55356
goto @POOL2_55092

:POOL2_55363
return 
if or
is_ps2_keyboard_key_just_pressed 82
is_ps2_keyboard_key_just_pressed 26
goto_if_false @POOL2_55394
612@ += 1.0

:POOL2_55394
if or
is_ps2_keyboard_key_just_pressed 81
is_ps2_keyboard_key_just_pressed 29
goto_if_false @POOL2_55423
612@ += -1.0

:POOL2_55423
if or
is_ps2_keyboard_key_just_pressed 79
is_ps2_keyboard_key_just_pressed 7
goto_if_false @POOL2_55452
611@ += 1.0

:POOL2_55452
if or
is_ps2_keyboard_key_just_pressed 80
is_ps2_keyboard_key_just_pressed 4
goto_if_false @POOL2_55481
611@ += -1.0

:POOL2_55481
if or
is_ps2_keyboard_key_just_pressed 96
is_ps2_keyboard_key_just_pressed 26
goto_if_false @POOL2_55510
615@ += 1.0

:POOL2_55510
if or
is_ps2_keyboard_key_just_pressed 90
is_ps2_keyboard_key_just_pressed 29
goto_if_false @POOL2_55539
615@ += -1.0

:POOL2_55539
if or
is_ps2_keyboard_key_just_pressed 94
is_ps2_keyboard_key_just_pressed 7
goto_if_false @POOL2_55568
616@ += 1.0

:POOL2_55568
if or
is_ps2_keyboard_key_just_pressed 92
is_ps2_keyboard_key_just_pressed 4
goto_if_false @POOL2_55597
616@ += -1.0

:POOL2_55597
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @POOL2_56160
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL_SPRITE_HEIGHT = ")
save_float_to_debug_file 612@
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BALL_SPRITE_WIDTH = ")
save_float_to_debug_file 611@
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("NIB_SPRITE_HEIGHT = ")
save_float_to_debug_file 615@
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("NIB_SPRITE_WIDTH = ")
save_float_to_debug_file 616@

:POOL2_56160
return 

:POOL2_56162
if 
  626@ == 0
goto_if_false @POOL2_56411
39@ = 0
if 
  3000 > 201@
goto_if_false @POOL2_56213
39@ = 1

:POOL2_56213
if 
  232@ == 1
goto_if_false @POOL2_56270
201@ = 0
39@ = 1
if 
  198@ > 1
goto_if_false @POOL2_56270
198@ = 0

:POOL2_56270
if 
  198@ == 0
goto_if_false @POOL2_56315
Text.ClearHelp
Text.PrintHelpForever('PL_H3')
201@ = 0
198@ += 1

:POOL2_56315
if 
  34@ == 5
goto_if_false @POOL2_56397
if 
  198@ == 1
goto_if_false @POOL2_56390
if 
  201@ > 3000
goto_if_false @POOL2_56390
Text.ClearHelp
Text.PrintHelpForever('PL_H7')
198@ += 1

:POOL2_56390
goto @POOL2_56404

:POOL2_56397
39@ = 1

:POOL2_56404
goto @POOL2_56425

:POOL2_56411
39@ = 1
626@ = 0

:POOL2_56425
if 
  39@ == 1
goto_if_false @POOL2_56944
Hud.DrawWindow(29.0, 270.0, 629@, 635@, 'SCORE', 2)
gosub @POOL2_59559
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 290.0, 'PL_01')
gosub @POOL2_59559
Text.SetScale(627@, 633@)
if 
  213@ == 0
goto_if_false @POOL2_56568
Text.Display(36.0, 310.0, 'PL_12')

:POOL2_56568
if 
  213@ == 1
goto_if_false @POOL2_56607
Text.Display(36.0, 310.0, 'PL_13')

:POOL2_56607
if 
  213@ == -1
goto_if_false @POOL2_56646
Text.Display(36.0, 310.0, 'PL_15')

:POOL2_56646
if 
  213@ == 2
goto_if_false @POOL2_56685
Text.Display(36.0, 310.0, 'PL_14')

:POOL2_56685
gosub @POOL2_59559
Text.SetColor(134, 155, 184, 255)
if 
  178@ == 1
goto_if_false @POOL2_56752
Text.Display(36.0, 340.0, 'PL_02')
goto @POOL2_56773

:POOL2_56752
Text.Display(36.0, 340.0, 'PL_03')

:POOL2_56773
gosub @POOL2_59559
Text.SetScale(627@, 633@)
if 
  214@ == 0
goto_if_false @POOL2_56827
Text.Display(36.0, 360.0, 'PL_12')

:POOL2_56827
if 
  214@ == 1
goto_if_false @POOL2_56866
Text.Display(36.0, 360.0, 'PL_13')

:POOL2_56866
if 
  214@ == -1
goto_if_false @POOL2_56905
Text.Display(36.0, 360.0, 'PL_15')

:POOL2_56905
if 
  214@ == 2
goto_if_false @POOL2_56944
Text.Display(36.0, 360.0, 'PL_14')

:POOL2_56944
return 

:POOL2_56946
627@ = 0.4753
633@ = 2.3176
switch_start $current_Language {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @POOL2_57137 {caseNum1} 1 {caseLabel1} @POOL2_57029 {caseNum2} 2 {caseLabel2} @POOL2_57083 {caseNum3} 3 {caseLabel3} @POOL2_57110 {caseNum4} 4 {caseLabel4} @POOL2_57056 {caseNum5} -1 {caseLabel5} @POOL2_57164 {caseNum6} -1 {caseLabel6} @POOL2_57164 {caseNum7} -1 {caseLabel7} @POOL2_57164

:POOL2_57029
628@ = 210.6556
634@ = 426.4957
goto @POOL2_57164

:POOL2_57056
628@ = 175.0805
634@ = 426.4957
goto @POOL2_57164

:POOL2_57083
628@ = 190.782
634@ = 409.0
goto @POOL2_57164

:POOL2_57110
628@ = 214.9799
634@ = 409.0
goto @POOL2_57164

:POOL2_57137
628@ = 174.4835
634@ = 409.0
goto @POOL2_57164

:POOL2_57164
switch_start $current_Language {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @POOL2_57308 {caseNum1} 2 {caseLabel1} @POOL2_57254 {caseNum2} 3 {caseLabel2} @POOL2_57281 {caseNum3} 4 {caseLabel3} @POOL2_57227 {caseNum4} -1 {caseLabel4} @POOL2_57335 {caseNum5} -1 {caseLabel5} @POOL2_57335 {caseNum6} -1 {caseLabel6} @POOL2_57335 {caseNum7} -1 {caseLabel7} @POOL2_57335

:POOL2_57227
629@ = 179.098
635@ = 396.8582
goto @POOL2_57335

:POOL2_57254
629@ = 166.0992
635@ = 396.8582
goto @POOL2_57335

:POOL2_57281
629@ = 205.4915
635@ = 396.8582
goto @POOL2_57335

:POOL2_57308
629@ = 157.0
635@ = 396.8582
goto @POOL2_57335

:POOL2_57335
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @POOL2_57423 {caseNum1} 3 {caseLabel1} @POOL2_57398 {caseNum2} -1 {caseLabel2} @POOL2_57450 {caseNum3} -1 {caseLabel3} @POOL2_57450 {caseNum4} -1 {caseLabel4} @POOL2_57450 {caseNum5} -1 {caseLabel5} @POOL2_57450 {caseNum6} -1 {caseLabel6} @POOL2_57450 {caseNum7} -1 {caseLabel7} @POOL2_57450

:POOL2_57398
set_lvar_float_to_lvar_float 630@ = 629@
636@ = 394.4953
goto @POOL2_57450

:POOL2_57423
630@ = 168.1938
636@ = 394.4953
goto @POOL2_57450

:POOL2_57450
631@ = 0.4914
637@ = 2.3977
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @POOL2_57560 {caseNum1} 3 {caseLabel1} @POOL2_57533 {caseNum2} -1 {caseLabel2} @POOL2_57587 {caseNum3} -1 {caseLabel3} @POOL2_57587 {caseNum4} -1 {caseLabel4} @POOL2_57587 {caseNum5} -1 {caseLabel5} @POOL2_57587 {caseNum6} -1 {caseLabel6} @POOL2_57587 {caseNum7} -1 {caseLabel7} @POOL2_57587

:POOL2_57533
632@ = 178.0981
638@ = 409.0
goto @POOL2_57587

:POOL2_57560
632@ = 157.0
638@ = 409.0
goto @POOL2_57587

:POOL2_57587
return 
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @POOL2_57654
639@ += 1
if 
  639@ > 5
goto_if_false @POOL2_57636
639@ = 0

:POOL2_57636
write_debug_with_int "SCREEN_EDIT" {_p2} 639@

:POOL2_57654
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @POOL2_57683
633@(639@,6f) += -0.1

:POOL2_57683
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @POOL2_57712
633@(639@,6f) += 0.1

:POOL2_57712
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @POOL2_57741
627@(639@,6f) += 0.1

:POOL2_57741
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @POOL2_57770
627@(639@,6f) += -0.1

:POOL2_57770
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @POOL2_58510
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("POOL - SCREEN_COORDS")
save_newline_to_debug_file 
39@ = 0

:POOL2_57926
if 
  6 > 39@
goto_if_false @POOL2_58510
Debugger.SaveStringToDebugFile("SCREEN_COORD_X[")
save_int_to_debug_file 39@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file 627@(39@,6f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("SCREEN_COORD_Y[")
save_int_to_debug_file 39@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file 633@(39@,6f)
save_newline_to_debug_file 
39@ += 1
goto @POOL2_57926

:POOL2_58510
return 

:POOL2_58512
39@ = 0
if 
  3000 > 201@
goto_if_false @POOL2_58545
39@ = 1

:POOL2_58545
if 
  198@ == 0
goto_if_false @POOL2_58590
Text.ClearHelp
Text.PrintHelpForever('PL_H6')
201@ = 0
198@ += 1

:POOL2_58590
if 
  34@ == 4
goto_if_false @POOL2_58665
if 
  198@ == 1
goto_if_false @POOL2_58665
if 
  201@ > 3000
goto_if_false @POOL2_58665
Text.ClearHelp
Text.PrintHelpForever('PL_H7')
198@ += 1

:POOL2_58665
if 
  39@ == 1
goto_if_false @POOL2_59262
Hud.DrawWindow(29.0, 220.0, 630@, 636@, 'SCORE', 2)
gosub @POOL2_59559
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 240.0, 'PL_01')
gosub @POOL2_59559
Text.SetScale(627@, 633@)
if 
  213@ == 0
goto_if_false @POOL2_58808
Text.Display(36.0, 260.0, 'PL_12')

:POOL2_58808
if 
  213@ == 1
goto_if_false @POOL2_58847
Text.Display(36.0, 260.0, 'PL_13')

:POOL2_58847
if 
  213@ == -1
goto_if_false @POOL2_58886
Text.Display(36.0, 260.0, 'PL_15')

:POOL2_58886
if 
  213@ == 2
goto_if_false @POOL2_58925
Text.Display(36.0, 260.0, 'PL_14')

:POOL2_58925
gosub @POOL2_59559
Text.SetColor(134, 155, 184, 255)
if 
  178@ == 1
goto_if_false @POOL2_58992
Text.Display(36.0, 290.0, 'PL_02')
goto @POOL2_59013

:POOL2_58992
Text.Display(36.0, 290.0, 'PL_03')

:POOL2_59013
gosub @POOL2_59559
Text.SetScale(627@, 633@)
if 
  214@ == 0
goto_if_false @POOL2_59067
Text.Display(36.0, 310.0, 'PL_12')

:POOL2_59067
if 
  214@ == 1
goto_if_false @POOL2_59106
Text.Display(36.0, 310.0, 'PL_13')

:POOL2_59106
if 
  214@ == -1
goto_if_false @POOL2_59145
Text.Display(36.0, 310.0, 'PL_15')

:POOL2_59145
if 
  214@ == 2
goto_if_false @POOL2_59184
Text.Display(36.0, 310.0, 'PL_14')

:POOL2_59184
gosub @POOL2_59559
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 340.0, 'PL_16')
gosub @POOL2_59559
Text.SetScale(627@, 633@)
Text.Display(36.0, 360.0, 'PL_17')

:POOL2_59262
return 
Text.SetScale(0.4487, 1.5974)
Text.SetColor(128, 148, 178, 255)
Text.SetJustify(True)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 
Text.SetScale(0.4487, 1.5974)
Text.SetColor(128, 148, 178, 255)
Text.SetRightJustify(True)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 
Text.SetScale(0.9, 2.4)
Text.SetColor(128, 148, 178, 255)
Text.SetCenter(True)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 
Text.SetScale(0.9, 2.4)
Text.SetColor(81, 25, 29, 255)
Text.SetCenter(True)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 
Text.SetScale(0.54, 1.44)
Text.SetColor(128, 148, 178, 255)
Text.SetJustify(True)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 
Text.SetScale(0.405, 1.08)
Text.SetColor(128, 148, 178, 255)
Text.SetJustify(True)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 
Text.SetScale(0.54, 1.44)
Text.SetColor(81, 25, 29, 255)
Text.SetJustify(True)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 

:POOL2_59559
Text.SetColor(180, 180, 180, 255)
Text.SetScale(631@, 637@)
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(False)
set_lvar_float_to_lvar_float 640@ = 628@
640@ -= 20.0
Text.SetWrapX(640@)
Text.SetProportional(True)
Text.SetBackground(False)
return 

:POOL2_59626
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @POOL2_59746
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_59665
641@ = Object.GetTurnMass(82@)

:POOL2_59665
641@ += 0.001
39@ = 0

:POOL2_59682
if 
  16 > 39@
goto_if_false @POOL2_59746
if 
  Object.DoesExist(82@(39@,16i))
goto_if_false @POOL2_59732
Object.SetTurnMass(82@(39@,16i), 641@)

:POOL2_59732
39@ += 1
goto @POOL2_59682

:POOL2_59746
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @POOL2_59897
if 
  Object.DoesExist(82@)
goto_if_false @POOL2_59785
641@ = Object.GetTurnMass(82@)

:POOL2_59785
641@ += -0.0001
if 
  0.0 >= 641@
goto_if_false @POOL2_59826
641@ = 0.0001

:POOL2_59826
39@ = 0

:POOL2_59833
if 
  16 > 39@
goto_if_false @POOL2_59897
if 
  Object.DoesExist(82@(39@,16i))
goto_if_false @POOL2_59883
Object.SetTurnMass(82@(39@,16i), 641@)

:POOL2_59883
39@ += 1
goto @POOL2_59833

:POOL2_59897
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @POOL2_59983
39@ = 0

:POOL2_59919
if 
  16 > 39@
goto_if_false @POOL2_59983
if 
  Object.DoesExist(82@(39@,16i))
goto_if_false @POOL2_59969
Object.SetTurnMass(82@(39@,16i), 641@)

:POOL2_59969
39@ += 1
goto @POOL2_59919

:POOL2_59983
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @POOL2_60008
199@ += 0.001

:POOL2_60008
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @POOL2_60033
199@ += -0.001

:POOL2_60033
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @POOL2_60058
200@ += 0.001

:POOL2_60058
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @POOL2_60083
200@ += -0.001

:POOL2_60083
return 

:POOL2_60085
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:POOL2_60103
Text.PrintWithNumberBig('M_PASS', 10000, 5000, TextStyle.Middle)
Player.AddScore($player1, 10000)
Player.ClearWantedLevel($player1)
return 

:POOL2_60137
Player.MakeGangReappear
disable_2nd_pad_for_debug 0
Game.SetScriptCoopGame(False)
$disable_debug = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
39@ = 0

:POOL2_60165
if 
  10 > 39@
goto_if_false @POOL2_60226
if 
  Object.DoesExist(343@(39@,10i))
goto_if_false @POOL2_60212
Object.Delete(343@(39@,10i))

:POOL2_60212
39@ += 1
goto @POOL2_60165

:POOL2_60226
if 
  not Char.IsDead($active_pool_table)
goto_if_false @POOL2_60291
Char.ClearLookAt($active_pool_table)
$x, $y, $z = Char.GetCoordinates($active_pool_table)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
set_lvar_float_to_var_float 219@ = $z
set_lvar_float_to_var_float 223@ = $z

:POOL2_60291
if 
  not Char.IsDead($active_pool_table)
goto_if_false @POOL2_60335
$x, $y, $z = Char.GetCoordinates($active_pool_table)
Char.SetCoordinates($active_pool_table, $x, $y, 223@)

:POOL2_60335
if 
  Player.IsPlaying($player1)
goto_if_false @POOL2_60460
$x, $y, $z = Char.GetCoordinates($scplayer)
Char.SetCoordinates($scplayer, 217@, 218@, 219@)
if 
  not Char.IsDead($active_pool_table)
goto_if_false @POOL2_60409
165@, 166@, 167@ = Char.GetCoordinates($active_pool_table)

:POOL2_60409
set_lvar_float_to_lvar_float 169@ = 165@
sub_float_var_from_float_lvar 169@ -= $x
set_lvar_float_to_lvar_float 170@ = 166@
sub_float_var_from_float_lvar 170@ -= $y
$heading = Math.GetHeadingFromVector2D(169@, 170@)
Char.SetHeading($scplayer, $heading)

:POOL2_60460
Streaming.RequestModel(338)

:POOL2_60465
if 
  not Streaming.HasModelLoaded(338)
goto_if_false @POOL2_60492
wait 0
goto @POOL2_60465

:POOL2_60492
if 
  Player.IsPlaying($player1)
goto_if_false @POOL2_60532
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.DropObject($scplayer, False)
Char.GiveWeapon($scplayer, WeaponType.PoolCue, 9999)

:POOL2_60532
if 
  Object.DoesExist(106@)
goto_if_false @POOL2_60553
Object.Delete(106@)

:POOL2_60553
if 
  Object.DoesExist(107@)
goto_if_false @POOL2_60574
Object.Delete(107@)

:POOL2_60574
if 
  Object.DoesExist(234@)
goto_if_false @POOL2_60595
Object.Delete(234@)

:POOL2_60595
if 
  Object.DoesExist($active_pool_opponent)
goto_if_false @POOL2_60616
Object.Delete($active_pool_opponent)

:POOL2_60616
Streaming.MarkModelAsNoLongerNeeded(338)
Streaming.MarkModelAsNoLongerNeeded(#K_POOLQ)
Streaming.RemoveAnimation("POOL")
if 
  Player.IsPlaying($player1)
goto_if_false @POOL2_60661
Char.ClearTasksImmediately($scplayer)
Char.SetCollision($scplayer, True)

:POOL2_60661
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Text.ClearPrints
Text.ClearHelp
$onmission = 0
if 
  Player.IsPlaying($player1)
goto_if_false @POOL2_60767
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($scplayer)
Char.ClearLookAt($scplayer)
47@ = Sequence.Open()
Task.StandStill(-1, 1)
Task.Pause(-1, 1)
Sequence.Close(47@)
Char.PerformSequence($scplayer, 47@)
Sequence.Clear(47@)

:POOL2_60767
Mission.Finish
return 
$x, $y, $z = Camera.GetDebugCoordinates()
if 
  Object.DoesExist(163@)
goto_if_false @POOL2_60820
165@, 166@, 167@ = Object.GetCoordinates(163@)
$heading = Object.GetHeading(163@)

:POOL2_60820
$heading *= -1.0
42@ = Math.Cos($heading)
43@ = Math.Sin($heading)
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 165@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 166@
set_lvar_float_to_var_float 171@ = $z
sub_float_lvar_from_float_lvar 171@ -= 167@
set_lvar_float_to_lvar_float 172@ = 169@
mult_float_lvar_by_float_lvar 172@ *= 42@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 43@
sub_float_lvar_from_float_lvar 172@ -= 44@
set_lvar_float_to_lvar_float 173@ = 169@
mult_float_lvar_by_float_lvar 173@ *= 43@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 42@
add_float_lvar_to_float_lvar 173@ += 44@
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("FIXED_CAMERA_POSITION - OFFSET FROM TABLE = ")
save_float_to_debug_file 172@
save_float_to_debug_file 173@
save_float_to_debug_file 171@
$x, $y, $z = Camera.GetDebugPointAt()
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 165@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 166@
set_lvar_float_to_var_float 171@ = $z
sub_float_lvar_from_float_lvar 171@ -= 167@
set_lvar_float_to_lvar_float 172@ = 169@
mult_float_lvar_by_float_lvar 172@ *= 42@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 43@
sub_float_lvar_from_float_lvar 172@ -= 44@
set_lvar_float_to_lvar_float 173@ = 169@
mult_float_lvar_by_float_lvar 173@ *= 43@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 42@
add_float_lvar_to_float_lvar 173@ += 44@
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CAMERA_POINT_AT -       OFFSET FROM TABLE = ")
save_float_to_debug_file 172@
save_float_to_debug_file 173@
save_float_to_debug_file 171@
return 
$x, $y, $z = Camera.GetDebugCoordinates()
if 
  Char.DoesExist(211@)
goto_if_false @POOL2_61474
if 
  not Char.IsDead(211@)
goto_if_false @POOL2_61474
165@, 166@, 167@ = Char.GetCoordinates(211@)
$heading = Char.GetHeading(211@)

:POOL2_61474
$heading *= -1.0
42@ = Math.Cos($heading)
43@ = Math.Sin($heading)
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 165@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 166@
set_lvar_float_to_var_float 171@ = $z
sub_float_lvar_from_float_lvar 171@ -= 167@
set_lvar_float_to_lvar_float 172@ = 169@
mult_float_lvar_by_float_lvar 172@ *= 42@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 43@
sub_float_lvar_from_float_lvar 172@ -= 44@
set_lvar_float_to_lvar_float 173@ = 169@
mult_float_lvar_by_float_lvar 173@ *= 43@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 42@
add_float_lvar_to_float_lvar 173@ += 44@
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("FIXED_CAMERA_POSITION - OFFSET FROM CHAR = ")
save_float_to_debug_file 172@
save_float_to_debug_file 173@
save_float_to_debug_file 171@
$x, $y, $z = Camera.GetDebugPointAt()
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 165@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 166@
set_lvar_float_to_var_float 171@ = $z
sub_float_lvar_from_float_lvar 171@ -= 167@
set_lvar_float_to_lvar_float 172@ = 169@
mult_float_lvar_by_float_lvar 172@ *= 42@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 43@
sub_float_lvar_from_float_lvar 172@ -= 44@
set_lvar_float_to_lvar_float 173@ = 169@
mult_float_lvar_by_float_lvar 173@ *= 43@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 42@
add_float_lvar_to_float_lvar 173@ += 44@
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CAMERA_POINT_AT -       OFFSET FROM CHAR = ")
save_float_to_debug_file 172@
save_float_to_debug_file 173@
save_float_to_debug_file 171@
return 

//-------------Mission 9---------------
// Originally: Lowrider (Bet And Dance)

:LOWR
script_name 'LOWR'
gosub @LOWR_47
if 
  has_deatharrest_been_executed 
goto_if_false @LOWR_38
gosub @LOWR_27222

:LOWR_38
gosub @LOWR_27226
terminate_this_script 

:LOWR_47
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
66@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
67@ = DecisionMakerChar.Load(DecisionMakerType.Tough)

:LOWR_145
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @LOWR_171
36@ = 1

:LOWR_171
39@ += 1
if 
  39@ > 22
goto_if_false @LOWR_203
39@ = 0

:LOWR_203
40@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 64@ += 42@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 133@ += 42@
add_int_lvar_to_int_lvar 134@ += 42@
add_int_lvar_to_int_lvar 135@ += 42@
add_int_lvar_to_int_lvar 136@ += 42@
add_int_lvar_to_int_lvar 137@ += 42@
43@ = Streaming.GetAreaVisible()
if 
  43@ == 0
goto_if_false @LOWR_319
add_int_lvar_to_int_var $cam_dist += 42@

:LOWR_319
switch_start 34@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @LOWR_466 {caseNum1} 0 {caseLabel1} @LOWR_382 {caseNum2} 1 {caseLabel2} @LOWR_396 {caseNum3} 2 {caseLabel3} @LOWR_403 {caseNum4} 3 {caseLabel4} @LOWR_410 {caseNum5} 4 {caseLabel5} @LOWR_424 {caseNum6} 5 {caseLabel6} @LOWR_438 {caseNum7} 6 {caseLabel7} @LOWR_452

:LOWR_382
gosub @LOWR_619
goto @LOWR_466

:LOWR_396
goto @LOWR_466

:LOWR_403
goto @LOWR_466

:LOWR_410
gosub @LOWR_915
goto @LOWR_466

:LOWR_424
gosub @LOWR_9455
goto @LOWR_466

:LOWR_438
gosub @LOWR_12531
goto @LOWR_466

:LOWR_452
gosub @LOWR_17573
goto @LOWR_466

:LOWR_466
gosub @LOWR_19728
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @LOWR_495
gosub @LOWR_26505

:LOWR_495
if 
is_ps2_keyboard_key_just_pressed 18
goto_if_false @LOWR_517
gosub @LOWR_26607

:LOWR_517
if 
  38@ == 0
goto_if_false @LOWR_617
if 
  37@ == 0
goto_if_false @LOWR_601
if 
  36@ == 0
goto_if_false @LOWR_585
goto @LOWR_145
goto @LOWR_594

:LOWR_585
gosub @LOWR_27224
return 

:LOWR_594
goto @LOWR_610

:LOWR_601
gosub @LOWR_27222
return 

:LOWR_610
goto @LOWR_619

:LOWR_617
return 

:LOWR_619
if 
  35@ == -1
goto_if_false @LOWR_748
69@ = Car.Create(413, 0.0, 0.0, 0.0)
77@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
102@ = Blip.AddForCoord(0.0, 0.0, 0.0)
103@ = Blip.AddForCoord(0.0, 0.0, 0.0)
99@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)

:LOWR_748
271@ = 50
272@ = 1000
104@ = 0
43@ = 0

:LOWR_777
if 
  22 > 43@
goto_if_false @LOWR_820
105@(43@,22i) = 0
43@ += 1
goto @LOWR_777

:LOWR_820
127@ = 0
128@ = 0
129@ = 0
130@ = 0
132@ = 0
269@ = 0.01
if 
  35@ == -1
goto_if_false @LOWR_883

:LOWR_883
Text.LoadMissionText('LOWR')
CarGenerator.SuppressCarModel(567)
gosub @LOWR_27164
34@ = 3
return 

:LOWR_915
if 
  35@ == 0
goto_if_false @LOWR_2114
World.ClearAreaOfChars(1721.117, -1967.489, 11.0, 1904.391, -1838.315, 15.0)
127@ = 0
128@ = 0
138@ = 1796.947
145@ = -1924.376
152@ = 13.2937
159@ = 60.9627
139@ = 1802.865
146@ = -1918.742
153@ = 13.2965
160@ = 357.6195
140@ = 1788.992
147@ = -1924.501
154@ = 13.2937
161@ = 305.5176
141@ = 1784.189
148@ = -1913.44
155@ = 13.2957
162@ = 188.9639
142@ = 1790.964
149@ = -1913.898
156@ = 13.2985
163@ = 266.2616
143@ = 1799.899
150@ = -1906.425
157@ = 13.3025
164@ = 184.4735
144@ = 1785.94
151@ = -1904.839
158@ = 13.297
165@ = 152.5742
166@ = 1798.603
188@ = -1908.26
210@ = 12.4388
232@ = 102.3995
167@ = 1798.887
189@ = -1907.668
211@ = 12.4399
233@ = 174.1189
168@ = 1798.834
190@ = -1911.782
212@ = 12.4374
234@ = 158.2591
169@ = 1799.584
191@ = -1912.795
213@ = 12.4368
235@ = 74.6392
170@ = 1800.902
192@ = -1918.714
214@ = 12.4331
236@ = 256.6391
171@ = 1798.166
193@ = -1920.427
215@ = 12.4321
237@ = 19.6592
172@ = 1796.811
194@ = -1920.426
216@ = 12.4321
238@ = 331.8393
173@ = 1787.78
195@ = -1919.071
217@ = 12.4329
239@ = 331.8393
174@ = 1786.71
196@ = -1917.982
218@ = 12.4332
240@ = 285.8198
175@ = 1786.194
197@ = -1907.356
219@ = 12.4327
241@ = 260.4003
176@ = 1786.898
198@ = -1906.531
220@ = 12.4335
242@ = 141.9807
177@ = 1786.23
199@ = -1908.622
221@ = 12.4328
243@ = 327.1608
178@ = 1789.188
200@ = -1919.665
222@ = 12.4325
244@ = 357.2196
179@ = 1788.103
201@ = -1907.949
223@ = 12.4352
245@ = 200.9411
180@ = 1797.997
202@ = -1912.74
224@ = 12.4368
246@ = 312.2806
181@ = 1796.46
203@ = -1908.882
225@ = 12.4368
247@ = 312.2806
Streaming.RequestModel(114)
Streaming.RequestModel(115)
Streaming.RequestModel(116)
Streaming.RequestModel(63)
Streaming.RequestModel(41)
Streaming.RequestModel(567)
Streaming.RequestModel(534)
Streaming.RequestAnimation("LOWRIDER")
Streaming.LoadAllModelsNow

:LOWR_1943
if or
  not Streaming.HasModelLoaded(114)
  not Streaming.HasModelLoaded(115)
  not Streaming.HasModelLoaded(116)
  not Streaming.HasModelLoaded(63)
  not Streaming.HasModelLoaded(41)
goto_if_false @LOWR_1985
wait 0
goto @LOWR_1943

:LOWR_1985
if or
  not Streaming.HasModelLoaded(567)
  not Streaming.HasModelLoaded(534)
goto_if_false @LOWR_2017
wait 0
goto @LOWR_1985

:LOWR_2017
if 
  not Streaming.HasAnimationLoaded("LOWRIDER")
goto_if_false @LOWR_2051
wait 0
goto @LOWR_2017

:LOWR_2051
if 
  not Blip.DoesExist(102@)
goto_if_false @LOWR_2087
102@ = Blip.AddForCoord(1793.068, -1904.254, 12.3989)

:LOWR_2087
Zone.SwitchAudio('LOWRIDE', True)
$cam_dist = 0
35@ += 1

:LOWR_2114
if 
  35@ == 1
goto_if_false @LOWR_9428
if 
  128@ == 0
goto_if_false @LOWR_3578
if 
  Char.LocateAnyMeans2D($scplayer, 1792.924, -1918.987, 150.0, 150.0, False)
goto_if_false @LOWR_3571
69@ = Car.Create(534, 0.0, 0.0, 0.0)
70@ = Car.Create(567, 0.0, 0.0, 0.0)
71@ = Car.Create(567, 0.0, 0.0, 0.0)
72@ = Car.Create(567, 0.0, 0.0, 0.0)
73@ = Car.Create(534, 0.0, 0.0, 0.0)
74@ = Car.Create(567, 0.0, 0.0, 0.0)
75@ = Car.Create(534, 0.0, 0.0, 0.0)
Car.ChangeColor(69@, 1, 0)
Car.ChangeColor(70@, 2, 1)
Car.ChangeColor(71@, 3, 2)
Car.ChangeColor(72@, 10, 3)
Car.ChangeColor(73@, 9, 4)
Car.ChangeColor(74@, 6, 5)
Car.ChangeColor(75@, 7, 6)
Car.SetStatus(69@, EntityStatus.Physics)
Car.SetStatus(73@, EntityStatus.Physics)
Car.SetStatus(72@, EntityStatus.Physics)
Car.SetHydraulics(69@, True)
Car.SetHydraulics(73@, True)
Car.SetHydraulics(72@, True)
Car.SetOnlyDamagedByPlayer(69@, True)
Car.SetOnlyDamagedByPlayer(73@, True)
Car.SetOnlyDamagedByPlayer(72@, True)
43@ = 0

:LOWR_2482
if 
  7 > 43@
goto_if_false @LOWR_2571
Car.SetCoordinates(69@(43@,7i), 138@(43@,7f), 145@(43@,7f), 152@(43@,7f))
Car.SetHeading(69@(43@,7i), 159@(43@,7f))
Car.LockDoors(69@(43@,7i), CarLock.LockoutPlayerOnly)
43@ += 1
goto @LOWR_2482

:LOWR_2571
wait 0
77@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
79@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
80@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
82@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
wait 0
83@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
85@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
86@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
88@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
89@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
wait 0
78@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
81@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
84@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
87@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
90@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
91@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
92@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
wait 0
93@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
94@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
95@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
96@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
97@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
98@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
43@ = 0

:LOWR_3122
if 
  16 > 43@
goto_if_false @LOWR_3240
if 
  Char.DoesExist(77@(43@,22i))
goto_if_false @LOWR_3226
if 
  not Char.IsDead(77@(43@,22i))
goto_if_false @LOWR_3226
Char.SetCoordinates(77@(43@,22i), 166@(43@,22f), 188@(43@,22f), 210@(43@,22f))
Char.SetHeading(77@(43@,22i), 232@(43@,22f))

:LOWR_3226
43@ += 1
goto @LOWR_3122

:LOWR_3240
wait 0
43@ = 0

:LOWR_3251
if 
  22 > 43@
goto_if_false @LOWR_3315
if 
  not Char.IsDead(77@(43@,22i))
goto_if_false @LOWR_3301
Char.SetDecisionMaker(77@(43@,22i), 67@)

:LOWR_3301
43@ += 4
goto @LOWR_3251

:LOWR_3315
if 
  not Char.IsDead(93@)
goto_if_false @LOWR_3355
if 
  not Car.IsDead(70@)
goto_if_false @LOWR_3355
Char.WarpIntoCar(93@, 70@)

:LOWR_3355
if 
  not Char.IsDead(94@)
goto_if_false @LOWR_3395
if 
  not Car.IsDead(71@)
goto_if_false @LOWR_3395
Char.WarpIntoCar(94@, 71@)

:LOWR_3395
if 
  not Char.IsDead(95@)
goto_if_false @LOWR_3435
if 
  not Car.IsDead(73@)
goto_if_false @LOWR_3435
Char.WarpIntoCar(95@, 73@)

:LOWR_3435
if 
  not Char.IsDead(96@)
goto_if_false @LOWR_3475
if 
  not Car.IsDead(69@)
goto_if_false @LOWR_3475
Char.WarpIntoCar(96@, 69@)

:LOWR_3475
if 
  not Char.IsDead(97@)
goto_if_false @LOWR_3515
if 
  not Car.IsDead(72@)
goto_if_false @LOWR_3515
Char.WarpIntoCar(97@, 72@)

:LOWR_3515
if 
  not Char.IsDead(98@)
goto_if_false @LOWR_3557
if 
  not Car.IsDead(71@)
goto_if_false @LOWR_3557
Char.WarpIntoCarAsPassenger(98@, 71@, 0)

:LOWR_3557
128@ = 1
$lowrider_meeting_is_loaded = 1

:LOWR_3571
goto @LOWR_3719

:LOWR_3578
if 
  not Char.LocateAnyMeans2D($scplayer, 1792.924, -1918.987, 150.0, 150.0, False)
goto_if_false @LOWR_3719
43@ = 0

:LOWR_3623
if 
  7 > 43@
goto_if_false @LOWR_3664
Car.Delete(69@(43@,7i))
43@ += 1
goto @LOWR_3623

:LOWR_3664
43@ = 0

:LOWR_3671
if 
  22 > 43@
goto_if_false @LOWR_3712
Char.Delete(77@(43@,22i))
43@ += 1
goto @LOWR_3671

:LOWR_3712
128@ = 0

:LOWR_3719
if 
  128@ == 1
goto_if_false @LOWR_8968
if 
  127@ == 0
goto_if_false @LOWR_8682
switch_start 39@ {numCases} 21 {hasDefaultCase} 0 {defaultLabel} @LOWR_7962 {caseNum1} 0 {caseLabel1} @LOWR_3948 {caseNum2} 1 {caseLabel2} @LOWR_4324 {caseNum3} 2 {caseLabel3} @LOWR_4700 {caseNum4} 3 {caseLabel4} @LOWR_4850 {caseNum5} 4 {caseLabel5} @LOWR_5000 {caseNum6} 5 {caseLabel6} @LOWR_5115 {caseNum7} 6 {caseLabel7} @LOWR_5265
switch_continued 7 {caseLabel1} @LOWR_5415 {caseNum2} 8 {caseLabel2} @LOWR_5531 {caseNum3} 9 {caseLabel3} @LOWR_5647 {caseNum4} 10 {caseLabel4} @LOWR_6023 {caseNum5} 11 {caseLabel5} @LOWR_6206 {caseNum6} 12 {caseLabel6} @LOWR_6322 {caseNum7} 13 {caseLabel7} @LOWR_6438 {caseNum8} 14 {caseLabel8} @LOWR_6745 {caseNum9} 15 {caseLabel9} @LOWR_7070
switch_continued 16 {caseLabel1} @LOWR_7354 {caseNum2} 17 {caseLabel2} @LOWR_7463 {caseNum3} 18 {caseLabel3} @LOWR_7572 {caseNum4} 19 {caseLabel4} @LOWR_7779 {caseNum5} 20 {caseLabel5} @LOWR_7955 {caseNum6} -1 {caseLabel6} @LOWR_7962 {caseNum7} -1 {caseLabel7} @LOWR_7962 {caseNum8} -1 {caseLabel8} @LOWR_7962 {caseNum9} -1 {caseLabel9} @LOWR_7962

:LOWR_3948
if 
  not Char.IsDead(77@)
goto_if_false @LOWR_4317
43@ = Char.GetScriptTaskStatus(77@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_4222
49@ = Sequence.Open()
if 
  not Car.IsDead(74@)
goto_if_false @LOWR_4156
if 
  Car.Locate3D(74@, 143@, 150@, 157@, 0.2, 0.2, 1.0, False)
goto_if_false @LOWR_4108
Task.PlayAnim(-1, "M_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
goto @LOWR_4149

:LOWR_4108
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:LOWR_4149
goto @LOWR_4197

:LOWR_4156
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:LOWR_4197
Sequence.Close(49@)
Char.PerformSequence(77@, 49@)
Sequence.Clear(49@)
goto @LOWR_4317

:LOWR_4222
if 
  Char.IsPlayingAnim(77@, "M_SMKLEAN_LOOP")
goto_if_false @LOWR_4317
if 
  not Car.IsDead(74@)
goto_if_false @LOWR_4317
if 
  not Car.Locate3D(74@, 143@, 150@, 157@, 0.2, 0.2, 1.0, False)
goto_if_false @LOWR_4317
Char.ClearTasks(77@)

:LOWR_4317
goto @LOWR_7962

:LOWR_4324
if 
  not Char.IsDead(78@)
goto_if_false @LOWR_4693
43@ = Char.GetScriptTaskStatus(78@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_4598
49@ = Sequence.Open()
if 
  not Car.IsDead(74@)
goto_if_false @LOWR_4532
if 
  Car.Locate3D(74@, 143@, 150@, 157@, 0.2, 0.2, 1.0, False)
goto_if_false @LOWR_4484
Task.PlayAnim(-1, "F_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
goto @LOWR_4525

:LOWR_4484
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:LOWR_4525
goto @LOWR_4573

:LOWR_4532
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:LOWR_4573
Sequence.Close(49@)
Char.PerformSequence(78@, 49@)
Sequence.Clear(49@)
goto @LOWR_4693

:LOWR_4598
if 
  Char.IsPlayingAnim(78@, "F_SMKLEAN_LOOP")
goto_if_false @LOWR_4693
if 
  not Car.IsDead(74@)
goto_if_false @LOWR_4693
if 
  not Car.Locate3D(74@, 143@, 150@, 157@, 0.2, 0.2, 1.0, False)
goto_if_false @LOWR_4693
Char.ClearTasks(78@)

:LOWR_4693
goto @LOWR_7962

:LOWR_4700
if 
  not Char.IsDead(79@)
goto_if_false @LOWR_4843
43@ = Char.GetScriptTaskStatus(79@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_4843
49@ = Sequence.Open()
if 
  not Char.IsDead(80@)
goto_if_false @LOWR_4784
Task.ChatWithChar(-1, 80@, True, 1)
goto @LOWR_4825

:LOWR_4784
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:LOWR_4825
Sequence.Close(49@)
Char.PerformSequence(79@, 49@)
Sequence.Clear(49@)

:LOWR_4843
goto @LOWR_7962

:LOWR_4850
if 
  not Char.IsDead(80@)
goto_if_false @LOWR_4993
43@ = Char.GetScriptTaskStatus(80@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_4993
49@ = Sequence.Open()
if 
  not Char.IsDead(79@)
goto_if_false @LOWR_4934
Task.ChatWithChar(-1, 79@, False, 1)
goto @LOWR_4975

:LOWR_4934
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:LOWR_4975
Sequence.Close(49@)
Char.PerformSequence(80@, 49@)
Sequence.Clear(49@)

:LOWR_4993
goto @LOWR_7962

:LOWR_5000
if 
  not Char.IsDead(81@)
goto_if_false @LOWR_5108
43@ = Char.GetScriptTaskStatus(81@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5108
49@ = Sequence.Open()
Task.PlayAnim(-1, "CAR_HOOKERTALK", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(81@, 49@)
Sequence.Clear(49@)

:LOWR_5108
goto @LOWR_7962

:LOWR_5115
if 
  not Char.IsDead(82@)
goto_if_false @LOWR_5258
43@ = Char.GetScriptTaskStatus(82@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5258
49@ = Sequence.Open()
if 
  not Char.IsDead(83@)
goto_if_false @LOWR_5199
Task.ChatWithChar(-1, 83@, False, 1)
goto @LOWR_5240

:LOWR_5199
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:LOWR_5240
Sequence.Close(49@)
Char.PerformSequence(82@, 49@)
Sequence.Clear(49@)

:LOWR_5258
goto @LOWR_7962

:LOWR_5265
if 
  not Char.IsDead(83@)
goto_if_false @LOWR_5408
43@ = Char.GetScriptTaskStatus(83@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5408
49@ = Sequence.Open()
if 
  not Char.IsDead(82@)
goto_if_false @LOWR_5349
Task.ChatWithChar(-1, 82@, True, 1)
goto @LOWR_5390

:LOWR_5349
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:LOWR_5390
Sequence.Close(49@)
Char.PerformSequence(83@, 49@)
Sequence.Clear(49@)

:LOWR_5408
goto @LOWR_7962

:LOWR_5415
if 
  not Char.IsDead(84@)
goto_if_false @LOWR_5524
43@ = Char.GetScriptTaskStatus(84@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5524
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(84@, 49@)
Sequence.Clear(49@)

:LOWR_5524
goto @LOWR_7962

:LOWR_5531
if 
  not Char.IsDead(85@)
goto_if_false @LOWR_5640
43@ = Char.GetScriptTaskStatus(85@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5640
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(85@, 49@)
Sequence.Clear(49@)

:LOWR_5640
goto @LOWR_7962

:LOWR_5647
if 
  not Char.IsDead(86@)
goto_if_false @LOWR_6016
43@ = Char.GetScriptTaskStatus(86@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5921
49@ = Sequence.Open()
if 
  not Car.IsDead(75@)
goto_if_false @LOWR_5855
if 
  Car.Locate3D(75@, 144@, 151@, 158@, 0.2, 0.2, 1.0, False)
goto_if_false @LOWR_5807
Task.PlayAnim(-1, "M_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
goto @LOWR_5848

:LOWR_5807
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:LOWR_5848
goto @LOWR_5896

:LOWR_5855
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:LOWR_5896
Sequence.Close(49@)
Char.PerformSequence(86@, 49@)
Sequence.Clear(49@)
goto @LOWR_6016

:LOWR_5921
if 
  Char.IsPlayingAnim(86@, "M_SMKLEAN_LOOP")
goto_if_false @LOWR_6016
if 
  not Car.IsDead(75@)
goto_if_false @LOWR_6016
if 
  not Car.Locate3D(75@, 144@, 151@, 158@, 0.2, 0.2, 1.0, False)
goto_if_false @LOWR_6016
Char.ClearTasks(86@)

:LOWR_6016
goto @LOWR_7962

:LOWR_6023
if 
  not Char.IsDead(87@)
goto_if_false @LOWR_6199
43@ = Char.GetScriptTaskStatus(87@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_6199
49@ = Sequence.Open()
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "FUCKU", "PED", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "WOMAN_IDLESTANCE", "PED", 4.0, False, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(87@, 49@)
Sequence.Clear(49@)

:LOWR_6199
goto @LOWR_7962

:LOWR_6206
if 
  not Char.IsDead(88@)
goto_if_false @LOWR_6315
43@ = Char.GetScriptTaskStatus(88@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_6315
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(88@, 49@)
Sequence.Clear(49@)

:LOWR_6315
goto @LOWR_7962

:LOWR_6322
if 
  not Char.IsDead(89@)
goto_if_false @LOWR_6431
43@ = Char.GetScriptTaskStatus(89@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_6431
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, True, True, False, -1)
Sequence.Close(49@)
Char.PerformSequence(89@, 49@)
Sequence.Clear(49@)

:LOWR_6431
goto @LOWR_7962

:LOWR_6438
if 
  not Char.IsDead(90@)
goto_if_false @LOWR_6738
43@ = Char.GetScriptTaskStatus(90@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_6738
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1786.719, -1915.878, 12.3942, MoveState.Walk, 60000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Task.GoStraightToCoord(-1, 1796.179, -1919.465, 12.3928, MoveState.Walk, 60000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Task.GoStraightToCoord(-1, 1786.719, -1915.878, 12.3942, MoveState.Walk, 60000)
Task.GoStraightToCoord(-1, 179@, 201@, 223@, MoveState.Walk, 60000)
if 
  not Char.IsDead(86@)
goto_if_false @LOWR_6679
Task.TurnCharToFaceChar(-1, 86@)

:LOWR_6679
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, False, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(90@, 49@)
Sequence.Clear(49@)

:LOWR_6738
goto @LOWR_7962

:LOWR_6745
if 
  not Char.IsDead(91@)
goto_if_false @LOWR_7063
43@ = Char.GetScriptTaskStatus(91@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_7063
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1800.367, -1917.394, 12.3938, MoveState.Walk, 60000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Task.GoStraightToCoord(-1, 1789.057, -1917.901, 12.3936, MoveState.Walk, 60000)
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, False, True, True, False, -1)
Task.GoStraightToCoord(-1, 1788.526, -1907.294, 12.3955, MoveState.Walk, 60000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Task.GoStraightToCoord(-1, 1796.478, -1908.174, 12.3983, MoveState.Walk, 60000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(91@, 49@)
Sequence.Clear(49@)

:LOWR_7063
goto @LOWR_7962

:LOWR_7070
if 
  not Char.IsDead(92@)
goto_if_false @LOWR_7347
43@ = Char.GetScriptTaskStatus(92@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_7347
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1787.672, -1908.567, 12.3949, MoveState.Walk, 60000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Task.GoStraightToCoord(-1, 1786.719, -1917.107, 12.3942, MoveState.Walk, 60000)
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, False, False, False, False, -1)
Task.GoStraightToCoord(-1, 1787.672, -1908.567, 12.3949, MoveState.Walk, 60000)
Task.GoStraightToCoord(-1, 181@, 203@, 225@, MoveState.Walk, 60000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(92@, 49@)
Sequence.Clear(49@)

:LOWR_7347
goto @LOWR_7962

:LOWR_7354
if 
  not Char.IsDead(93@)
goto_if_false @LOWR_7456
43@ = Char.GetScriptTaskStatus(93@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_7456
49@ = Sequence.Open()
Task.PlayAnim(-1, "TAP_HAND", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(93@, 49@)
Sequence.Clear(49@)

:LOWR_7456
goto @LOWR_7962

:LOWR_7463
if 
  not Char.IsDead(94@)
goto_if_false @LOWR_7565
43@ = Char.GetScriptTaskStatus(94@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_7565
49@ = Sequence.Open()
Task.PlayAnim(-1, "TAP_HAND", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(94@, 49@)
Sequence.Clear(49@)

:LOWR_7565
goto @LOWR_7962

:LOWR_7572
43@ = 0

:LOWR_7579
if 
  7 > 43@
goto_if_false @LOWR_7772
if 
  Car.DoesExist(69@(43@,7i))
goto_if_false @LOWR_7758
if 
  not Car.IsDead(69@(43@,7i))
goto_if_false @LOWR_7728
if 
  Car.HasBeenDamagedByChar(69@(43@,7i), $scplayer)
goto_if_false @LOWR_7721
44@ = Car.GetHealth(69@(43@,7i))
if 
  950 > 44@
goto_if_false @LOWR_7721
Text.PrintNow('LOW_32', 5000, 1)
127@ = 1
43@ = 7

:LOWR_7721
goto @LOWR_7758

:LOWR_7728
Text.PrintNow('LOW_32', 5000, 1)
127@ = 1
43@ = 7

:LOWR_7758
43@ += 1
goto @LOWR_7579

:LOWR_7772
goto @LOWR_7962

:LOWR_7779
43@ = 0

:LOWR_7786
if 
  22 > 43@
goto_if_false @LOWR_7948
if 
  Char.DoesExist(77@(43@,22i))
goto_if_false @LOWR_7934
if 
  not Char.IsDead(77@(43@,22i))
goto_if_false @LOWR_7904
if 
  Char.HasBeenDamagedByChar(77@(43@,22i), $scplayer)
goto_if_false @LOWR_7897
Text.PrintNow('LOW_04', 5000, 1)
127@ = 1
43@ = 22

:LOWR_7897
goto @LOWR_7934

:LOWR_7904
Text.PrintNow('LOW_04', 5000, 1)
127@ = 1
43@ = 22

:LOWR_7934
43@ += 1
goto @LOWR_7786

:LOWR_7948
goto @LOWR_7962

:LOWR_7955
goto @LOWR_7962

:LOWR_7962
if 
  300 > 133@
goto_if_false @LOWR_8028
254@ = 1.0
257@ = 1.0
260@ = 0.0
263@ = 0.0
goto @LOWR_8101

:LOWR_8028
if 
  133@ > 500
goto_if_false @LOWR_8061
133@ = 0
goto @LOWR_8101

:LOWR_8061
254@ = 0.0
257@ = 0.0
260@ = 0.0
263@ = 0.0

:LOWR_8101
if 
  134@ > 2000
goto_if_false @LOWR_8175
283@ = Math.RandomIntInRange(0, 16)
gosub @LOWR_20072
set_lvar_float_to_lvar_float 255@ = 281@
set_lvar_float_to_lvar_float 258@ = 279@
set_lvar_float_to_lvar_float 261@ = 282@
set_lvar_float_to_lvar_float 264@ = 280@
134@ = 0

:LOWR_8175
if 
  135@ > 300
goto_if_false @LOWR_8249
283@ = Math.RandomIntInRange(0, 16)
gosub @LOWR_20072
set_lvar_float_to_lvar_float 256@ = 281@
set_lvar_float_to_lvar_float 259@ = 279@
set_lvar_float_to_lvar_float 262@ = 282@
set_lvar_float_to_lvar_float 265@ = 280@
135@ = 0

:LOWR_8249
if 
  not Car.IsDead(69@)
goto_if_false @LOWR_8391
if 
  Car.DoesHaveHydraulics(69@)
goto_if_false @LOWR_8391
Car.ControlHydraulics(69@, 257@, 263@, 254@, 260@)
$x, $y, $z = Car.GetCoordinates(69@)
set_lvar_float_to_lvar_float 50@ = 138@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 145@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 269@
mult_float_lvar_by_float_lvar 51@ *= 269@
Car.ApplyForce(69@, 50@, 51@, 0.0, 0.0, 0.0, 0.0)

:LOWR_8391
if 
  not Car.IsDead(72@)
goto_if_false @LOWR_8533
if 
  Car.DoesHaveHydraulics(72@)
goto_if_false @LOWR_8533
Car.ControlHydraulics(72@, 258@, 264@, 255@, 261@)
$x, $y, $z = Car.GetCoordinates(72@)
set_lvar_float_to_lvar_float 50@ = 141@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 148@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 269@
mult_float_lvar_by_float_lvar 51@ *= 269@
Car.ApplyForce(72@, 50@, 51@, 0.0, 0.0, 0.0, 0.0)

:LOWR_8533
if 
  not Car.IsDead(73@)
goto_if_false @LOWR_8675
if 
  Car.DoesHaveHydraulics(73@)
goto_if_false @LOWR_8675
Car.ControlHydraulics(73@, 259@, 265@, 256@, 262@)
$x, $y, $z = Car.GetCoordinates(73@)
set_lvar_float_to_lvar_float 50@ = 142@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 149@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 269@
mult_float_lvar_by_float_lvar 51@ *= 269@
Car.ApplyForce(73@, 50@, 51@, 0.0, 0.0, 0.0, 0.0)

:LOWR_8675
goto @LOWR_8968

:LOWR_8682
if 
  127@ == 1
goto_if_false @LOWR_8968
43@ = 0

:LOWR_8707
if 
  12 > 43@
goto_if_false @LOWR_8768
if 
  not Char.IsDead(77@(43@,22i))
goto_if_false @LOWR_8754
Char.ClearTasksImmediately(77@(43@,22i))

:LOWR_8754
43@ += 1
goto @LOWR_8707

:LOWR_8768
if 
  37@ <> 1
goto_if_false @LOWR_8858
43@ = 0

:LOWR_8793
if 
  22 > 43@
goto_if_false @LOWR_8858
if 
  not Char.IsDead(77@(43@,22i))
goto_if_false @LOWR_8844
Char.SetRelationship(77@(43@,22i), RelationshipType.Hate, PedType.Player1)

:LOWR_8844
43@ += 1
goto @LOWR_8793

:LOWR_8858
43@ = 0

:LOWR_8865
if 
  22 > 43@
goto_if_false @LOWR_8906
Char.MarkAsNoLongerNeeded(77@(43@,22i))
43@ += 1
goto @LOWR_8865

:LOWR_8906
43@ = 0

:LOWR_8913
if 
  7 > 43@
goto_if_false @LOWR_8954
Car.MarkAsNoLongerNeeded(69@(43@,7i))
43@ += 1
goto @LOWR_8913

:LOWR_8954
37@ = 1
127@ += 1

:LOWR_8968
if 
  $cam_dist > 120000
goto_if_false @LOWR_9019
Text.PrintNow('LOW_35', 5000, 1)
37@ = 1
goto @LOWR_9428

:LOWR_9019
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @LOWR_9066
Text.PrintNow('LOW_35', 5000, 1)
37@ = 1
goto @LOWR_9428

:LOWR_9066
if 
  Char.LocateInCar3D($scplayer, 1793.068, -1904.254, 12.3989, 4.0, 4.0, 4.0, True)
goto_if_false @LOWR_9403
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.IsLowRider($car)
goto_if_false @LOWR_9355
if 
  Car.DoesHaveHydraulics($car)
goto_if_false @LOWR_9307
43@ = Player.StoreScore($player1)
if 
  is_int_lvar_greater_or_equal_to_int_lvar 43@ >= 271@
goto_if_false @LOWR_9256
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 2000000)
35@ = 99
Player.SetControl($player1, False)
68@ = Char.StoreCarIsIn($scplayer)
Camera.DoFade(500, Fade.Out)

:LOWR_9225
if 
  Camera.GetFadingStatus
goto_if_false @LOWR_9249
wait 0
goto @LOWR_9225

:LOWR_9249
goto @LOWR_9300

:LOWR_9256
if 
  62@ == 0
goto_if_false @LOWR_9300
Text.PrintWithNumberNow('LOW_38', 271@, 5000, 1)
62@ += 1

:LOWR_9300
goto @LOWR_9348

:LOWR_9307
if 
  62@ == 0
goto_if_false @LOWR_9348
Text.PrintNow('LOW_36', 5000, 1)
62@ += 1

:LOWR_9348
goto @LOWR_9396

:LOWR_9355
if 
  62@ == 0
goto_if_false @LOWR_9396
Text.PrintNow('LOW_36', 5000, 1)
62@ += 1

:LOWR_9396
goto @LOWR_9428

:LOWR_9403
if 
  62@ <> 0
goto_if_false @LOWR_9428
62@ = 0

:LOWR_9428
if 
  35@ == 99
goto_if_false @LOWR_9453
gosub @LOWR_27164

:LOWR_9453
return 

:LOWR_9455
if 
  35@ == 0
goto_if_false @LOWR_10048
Camera.DoFade(500, Fade.Out)

:LOWR_9480
if 
  Camera.GetFadingStatus
goto_if_false @LOWR_9504
wait 0
goto @LOWR_9480

:LOWR_9504
if 
  not Car.IsDead(68@)
goto_if_false @LOWR_9525
Car.ResetHydraulics(68@)

:LOWR_9525
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
World.ClearArea(1793.068, -1904.254, 12.3989, 30.0, True)
if 
  Blip.DoesExist(102@)
goto_if_false @LOWR_9584
Blip.Remove(102@)

:LOWR_9584
if 
  not Car.IsDead(68@)
goto_if_false @LOWR_9630
Car.SetCoordinates(68@, 1793.068, -1904.254, 12.3989)
Car.SetHeading(68@, 171.6728)

:LOWR_9630
43@ = 0

:LOWR_9637
if 
  16 > 43@
goto_if_false @LOWR_9698
if 
  not Char.IsDead(77@(43@,22i))
goto_if_false @LOWR_9684
Char.ClearTasksImmediately(77@(43@,22i))

:LOWR_9684
43@ += 1
goto @LOWR_9637

:LOWR_9698
43@ = 0

:LOWR_9705
if 
  22 > 43@
goto_if_false @LOWR_9769
if 
  not Char.IsDead(77@(43@,22i))
goto_if_false @LOWR_9755
Char.SetDecisionMaker(77@(43@,22i), 66@)

:LOWR_9755
43@ += 1
goto @LOWR_9705

:LOWR_9769
43@ = 0

:LOWR_9776
if 
  16 > 43@
goto_if_false @LOWR_9874
if 
  not Char.IsDead(77@(43@,22i))
goto_if_false @LOWR_9860
Char.SetCoordinates(77@(43@,22i), 166@(43@,22f), 188@(43@,22f), 210@(43@,22f))
Char.SetHeading(77@(43@,22i), 232@(43@,22f))

:LOWR_9860
43@ += 1
goto @LOWR_9776

:LOWR_9874
43@ = 0

:LOWR_9881
if 
  7 > 43@
goto_if_false @LOWR_9979
if 
  not Car.IsDead(69@(43@,7i))
goto_if_false @LOWR_9965
Car.SetCoordinates(69@(43@,7i), 138@(43@,7f), 145@(43@,7f), 152@(43@,7f))
Car.SetHeading(69@(43@,7i), 159@(43@,7f))

:LOWR_9965
43@ += 1
goto @LOWR_9881

:LOWR_9979
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1796.749, -1916.961, 13.8583, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1796.125, -1916.181, 13.807, SwitchType.JumpCut)
35@ += 1

:LOWR_10048
if 
  35@ == 1
goto_if_false @LOWR_10073
35@ += 1

:LOWR_10073
if 
  35@ == 2
goto_if_false @LOWR_10231
if 
  not Char.IsDead(95@)
goto_if_false @LOWR_10231
Char.ClearTasksImmediately(95@)
Char.SetCoordinates(95@, 1792.631, -1909.274, 12.4371)
Char.SetHeading(95@, 331.0204)
Camera.SetFixedPosition(1793.816, -1910.713, 14.0346, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1793.453, -1909.801, 13.8451, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:LOWR_10200
if 
  Camera.GetFadingStatus
goto_if_false @LOWR_10224
wait 0
goto @LOWR_10200

:LOWR_10224
35@ += 1

:LOWR_10231
if 
  35@ == 3
goto_if_false @LOWR_10698
if 
  not Char.IsDead(95@)
goto_if_false @LOWR_10698
49@ = Sequence.Open()
Task.PlayAnim(-1, "PRTIAL_GNGTLKD", "LOWRIDER", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKE", "LOWRIDER", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKF", "LOWRIDER", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKG", "LOWRIDER", 4.0, False, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(95@, 49@)
Sequence.Clear(49@)
43@ = Math.RandomIntInRange(0, 3)
switch_start 43@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @LOWR_10684 {caseNum1} 0 {caseLabel1} @LOWR_10540 {caseNum2} 1 {caseLabel2} @LOWR_10588 {caseNum3} 2 {caseLabel3} @LOWR_10636 {caseNum4} -1 {caseLabel4} @LOWR_10684 {caseNum5} -1 {caseLabel5} @LOWR_10684 {caseNum6} -1 {caseLabel6} @LOWR_10684 {caseNum7} -1 {caseLabel7} @LOWR_10684

:LOWR_10540
set_var_text_label s$audio_string = 'LOWR_BA'
set_var_int_to_constant $audio_sound_file = 9208
start_new_script @AUDIOL 95@ 0 1 1 0 
goto @LOWR_10684

:LOWR_10588
set_var_text_label s$audio_string = 'LOWR_BB'
set_var_int_to_constant $audio_sound_file = 9209
start_new_script @AUDIOL 95@ 0 1 1 0 
goto @LOWR_10684

:LOWR_10636
set_var_text_label s$audio_string = 'LOWR_BC'
set_var_int_to_constant $audio_sound_file = 9210
start_new_script @AUDIOL 95@ 0 1 1 0 
goto @LOWR_10684

:LOWR_10684
TIMERA = 0
35@ += 1

:LOWR_10698
if 
  35@ == 4
goto_if_false @LOWR_10812
if 
  TIMERA > 1000
goto_if_false @LOWR_10812
if or
  $audio_line_is_active == 0
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @LOWR_10812
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
35@ += 1
131@ = 1
if 
  not Char.IsDead(95@)
goto_if_false @LOWR_10812
Char.ClearTasks(95@)

:LOWR_10812
if 
  35@ == 5
goto_if_false @LOWR_10944
Text.ClearPrints
Hud.SwitchWidescreen(False)
Camera.SetFixedPosition(1793.485, -1907.354, 13.4436, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1793.129, -1908.289, 13.4481, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 273@ = 271@
set_lvar_int_to_lvar_int 43@ = 273@
43@ *= -1
Player.AddScore($player1, 43@)
Text.PrintHelpForever('LOW_37')
Text.UseCommands(True)
wait 1
35@ += 1

:LOWR_10944
if 
  35@ == 6
goto_if_false @LOWR_12323
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @LOWR_11388
if and
  274@ <> 1
  274@ <> -1
goto_if_false @LOWR_11337
if 
  273@ >= 10000
goto_if_false @LOWR_11038
270@ = 1000
goto @LOWR_11142

:LOWR_11038
if 
  273@ >= 1000
goto_if_false @LOWR_11071
270@ = 100
goto @LOWR_11142

:LOWR_11071
if 
  273@ >= 100
goto_if_false @LOWR_11103
270@ = 10
goto @LOWR_11142

:LOWR_11103
if 
  273@ == 0
goto_if_false @LOWR_11135
270@ = 2
goto @LOWR_11142

:LOWR_11135
270@ = 1

:LOWR_11142
43@ = Player.StoreScore($player1)
if 
  is_int_lvar_greater_than_int_lvar 270@ > 43@
goto_if_false @LOWR_11177
set_lvar_int_to_lvar_int 270@ = 43@

:LOWR_11177
set_lvar_int_to_lvar_int 43@ = 273@
add_int_lvar_to_int_lvar 43@ += 270@
if 
  is_int_lvar_greater_than_int_lvar 43@ > 272@
goto_if_false @LOWR_11228
set_lvar_int_to_lvar_int 270@ = 272@
sub_int_lvar_from_int_lvar 270@ -= 273@

:LOWR_11228
if 
  0 > 270@
goto_if_false @LOWR_11253
270@ *= -1

:LOWR_11253
add_int_lvar_to_int_lvar 273@ += 270@
add_int_lvar_to_int_lvar 275@ += 270@
270@ *= -1
Player.AddScore($player1, 270@)
274@ += 1
if 
  274@ > 1
goto_if_false @LOWR_11323
274@ = 2
goto @LOWR_11330

:LOWR_11323
TIMERA = 0

:LOWR_11330
goto @LOWR_11381

:LOWR_11337
if 
  274@ == 1
goto_if_false @LOWR_11381
if 
  TIMERA > 500
goto_if_false @LOWR_11381
274@ = 2

:LOWR_11381
goto @LOWR_11779

:LOWR_11388
if 
  274@ <> 0
goto_if_false @LOWR_11413
274@ = 0

:LOWR_11413
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @LOWR_11754
if 
  276@ <> 1
goto_if_false @LOWR_11721
if 
  273@ > 10000
goto_if_false @LOWR_11482
270@ = -1000
goto @LOWR_11554

:LOWR_11482
if 
  273@ > 1000
goto_if_false @LOWR_11515
270@ = -100
goto @LOWR_11554

:LOWR_11515
if 
  273@ > 100
goto_if_false @LOWR_11547
270@ = -10
goto @LOWR_11554

:LOWR_11547
270@ = -1

:LOWR_11554
set_lvar_int_to_lvar_int 43@ = 273@
add_int_lvar_to_int_lvar 273@ += 270@
if 
  is_int_lvar_greater_than_int_lvar 271@ > 273@
goto_if_false @LOWR_11611
273@ = 0
set_lvar_int_to_lvar_int 270@ = 43@
270@ *= -1

:LOWR_11611
if 
  is_int_lvar_greater_than_int_lvar 271@ > 273@
goto_if_false @LOWR_11645
set_lvar_int_to_lvar_int 273@ = 271@
goto @LOWR_11668

:LOWR_11645
270@ *= -1
sub_int_lvar_from_int_lvar 275@ -= 270@
Player.AddScore($player1, 270@)

:LOWR_11668
276@ += 1
if 
  276@ > 1
goto_if_false @LOWR_11707
276@ = 2
goto @LOWR_11714

:LOWR_11707
TIMERA = 0

:LOWR_11714
goto @LOWR_11747

:LOWR_11721
if 
  TIMERA > 500
goto_if_false @LOWR_11747
276@ = 2

:LOWR_11747
goto @LOWR_11779

:LOWR_11754
if 
  276@ <> 0
goto_if_false @LOWR_11779
276@ = 0

:LOWR_11779
gosub @LOWR_26709
if 
  131@ == 0
goto_if_false @LOWR_11855
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @LOWR_11848
cset_lvar_float_to_lvar_int 46@ =# 273@
46@ *= 0.1
Text.ClearHelp
35@ += 1

:LOWR_11848
goto @LOWR_11879

:LOWR_11855
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @LOWR_11879
131@ = 0

:LOWR_11879
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @LOWR_12323
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
if 
  Car.DoesExist(70@)
goto_if_false @LOWR_11932
Car.Delete(70@)

:LOWR_11932
if 
  Car.DoesExist(73@)
goto_if_false @LOWR_11953
Car.Delete(73@)

:LOWR_11953
if 
  Car.DoesExist(71@)
goto_if_false @LOWR_11974
Car.Delete(71@)

:LOWR_11974
if 
  Car.DoesExist(74@)
goto_if_false @LOWR_11995
Car.Delete(74@)

:LOWR_11995
if 
  Car.DoesExist(72@)
goto_if_false @LOWR_12016
Car.Delete(72@)

:LOWR_12016
if 
  Char.DoesExist(78@)
goto_if_false @LOWR_12037
Char.Delete(78@)

:LOWR_12037
if 
  Char.DoesExist(80@)
goto_if_false @LOWR_12058
Char.Delete(80@)

:LOWR_12058
if 
  Char.DoesExist(93@)
goto_if_false @LOWR_12079
Char.Delete(93@)

:LOWR_12079
if 
  Char.DoesExist(83@)
goto_if_false @LOWR_12100
Char.Delete(83@)

:LOWR_12100
if 
  Char.DoesExist(84@)
goto_if_false @LOWR_12121
Char.Delete(84@)

:LOWR_12121
if 
  Char.DoesExist(86@)
goto_if_false @LOWR_12142
Char.Delete(86@)

:LOWR_12142
if 
  Char.DoesExist(87@)
goto_if_false @LOWR_12163
Char.Delete(87@)

:LOWR_12163
if 
  Char.DoesExist(89@)
goto_if_false @LOWR_12184
Char.Delete(89@)

:LOWR_12184
if 
  Char.DoesExist(97@)
goto_if_false @LOWR_12205
Char.Delete(97@)

:LOWR_12205
if 
  Char.DoesExist(90@)
goto_if_false @LOWR_12226
Char.Delete(90@)

:LOWR_12226
if 
  not Char.IsDead(99@)
goto_if_false @LOWR_12285
if 
  not Car.IsDead(68@)
goto_if_false @LOWR_12285
if 
  Char.IsInCar(99@, 68@)
goto_if_false @LOWR_12285
Task.LeaveCar(99@, 68@)

:LOWR_12285
Camera.DoFade(500, Fade.In)

:LOWR_12292
if 
  Camera.GetFadingStatus
goto_if_false @LOWR_12316
wait 0
goto @LOWR_12292

:LOWR_12316
37@ = 1

:LOWR_12323
if 
  35@ == 7
goto_if_false @LOWR_12352
Text.UseCommands(False)
35@ += 1

:LOWR_12352
if 
  35@ == 8
goto_if_false @LOWR_12377
35@ += 1

:LOWR_12377
if 
  35@ == 9
goto_if_false @LOWR_12402
35@ += 1

:LOWR_12402
if 
  35@ == 10
goto_if_false @LOWR_12479
if 
  TIMERA > 2000
goto_if_false @LOWR_12479
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:LOWR_12448
if 
  Camera.GetFadingStatus
goto_if_false @LOWR_12472
wait 0
goto @LOWR_12448

:LOWR_12472
35@ = 99

:LOWR_12479
if 
  37@ <> 1
goto_if_false @LOWR_12504
gosub @LOWR_21002

:LOWR_12504
if 
  35@ == 99
goto_if_false @LOWR_12529
gosub @LOWR_27164

:LOWR_12529
return 

:LOWR_12531
if 
  35@ == 0
goto_if_false @LOWR_12637
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Text.ClearPrints
Camera.SetFixedPosition(1788.107, -1903.804, 13.3553, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1788.944, -1904.343, 13.2601, SwitchType.JumpCut)
Streaming.LoadScene(1788.944, -1904.343, 13.2601)
35@ += 1

:LOWR_12637
if 
  35@ == 1
goto_if_false @LOWR_15458
Streaming.RequestModel(114)
Streaming.RequestModel(115)
Streaming.RequestModel(116)
Streaming.RequestModel(63)
Streaming.RequestModel(41)
Streaming.RequestModel(567)
Streaming.RequestModel(534)
Streaming.RequestAnimation("LOWRIDER")
Streaming.LoadAllModelsNow

:LOWR_12699
if 
  not Streaming.HasModelLoaded(114)
goto_if_false @LOWR_12725
wait 0
goto @LOWR_12699

:LOWR_12725
if 
  not Streaming.HasModelLoaded(115)
goto_if_false @LOWR_12751
wait 0
goto @LOWR_12725

:LOWR_12751
if 
  not Streaming.HasModelLoaded(116)
goto_if_false @LOWR_12777
wait 0
goto @LOWR_12751

:LOWR_12777
if 
  not Streaming.HasModelLoaded(63)
goto_if_false @LOWR_12803
wait 0
goto @LOWR_12777

:LOWR_12803
if 
  not Streaming.HasModelLoaded(41)
goto_if_false @LOWR_12829
wait 0
goto @LOWR_12803

:LOWR_12829
if or
  not Streaming.HasModelLoaded(567)
  not Streaming.HasModelLoaded(534)
goto_if_false @LOWR_12861
wait 0
goto @LOWR_12829

:LOWR_12861
if 
  not Streaming.HasAnimationLoaded("LOWRIDER")
goto_if_false @LOWR_12895
wait 0
goto @LOWR_12861

:LOWR_12895
138@ = 1798.203
145@ = -1926.222
152@ = 12.3895
159@ = 73.1404
139@ = 1802.864
146@ = -1918.741
153@ = 12.3931
160@ = 357.6193
140@ = 1784.635
147@ = -1924.968
154@ = 12.3901
161@ = 305.062
141@ = 1784.188
148@ = -1913.439
155@ = 12.3923
162@ = 183.5814
142@ = 1792.318
149@ = -1919.513
156@ = 12.3928
163@ = 8.2504
143@ = 1801.462
150@ = -1905.691
157@ = 12.3995
164@ = 189.9314
144@ = 1787.642
151@ = -1901.136
158@ = 12.3949
165@ = 145.4181
166@ = 1800.0
188@ = -1907.83
210@ = 12.4398
232@ = 73.7198
167@ = 1799.846
189@ = -1912.124
211@ = 12.4582
233@ = 48.2386
168@ = 1800.086
190@ = -1910.434
212@ = 12.4372
234@ = 83.7398
169@ = 1801.321
191@ = -1916.427
213@ = 12.4343
235@ = 83.7398
170@ = 1798.541
192@ = -1922.18
214@ = 12.431
236@ = 46.5794
171@ = 1799.49
193@ = -1920.617
215@ = 12.4322
237@ = 46.5794
172@ = 1787.255
194@ = -1926.597
216@ = 12.4283
238@ = 323.6194
173@ = 1786.442
195@ = -1920.201
217@ = 12.4322
239@ = 306.1995
174@ = 1785.824
196@ = -1919.162
218@ = 12.4324
240@ = 294.6196
175@ = 1786.102
197@ = -1913.833
219@ = 12.4327
241@ = 280.7204
176@ = 1786.806
198@ = -1905.246
220@ = 12.4342
242@ = 262.8214
177@ = 1788.693
199@ = -1902.139
221@ = 12.4348
243@ = 247.161
178@ = 1794.616
200@ = -1899.608
222@ = 12.4398
244@ = 191.0618
179@ = 1799.135
201@ = -1902.488
223@ = 12.4431
245@ = 157.4622
180@ = 1795.674
202@ = -1899.569
224@ = 12.4407
246@ = 162.6424
181@ = 1800.369
203@ = -1907.003
225@ = 12.4403
247@ = 77.6197
182@ = 1800.826
204@ = -1917.325
226@ = 12.434
248@ = 36.1793
183@ = 1785.85
205@ = -1917.955
227@ = 12.4324
249@ = 287.0602
184@ = 1788.538
206@ = -1927.091
228@ = 12.428
250@ = 345.1206
185@ = 1787.323
207@ = -1904.11
229@ = 12.4337
251@ = 263.3813
186@ = 1798.39
208@ = -1901.733
230@ = 12.4429
252@ = 142.4208
$lowrider_level = -1
$lowrider_last_level = -1
269@ = 0.01
43@ = 0

:LOWR_14046
if 
  7 > 43@
goto_if_false @LOWR_14107
if 
  Car.DoesExist(69@(43@,7i))
goto_if_false @LOWR_14093
Car.Delete(69@(43@,7i))

:LOWR_14093
43@ += 1
goto @LOWR_14046

:LOWR_14107
43@ = 0

:LOWR_14114
if 
  22 > 43@
goto_if_false @LOWR_14175
if 
  Char.DoesExist(77@(43@,22i))
goto_if_false @LOWR_14161
Char.Delete(77@(43@,22i))

:LOWR_14161
43@ += 1
goto @LOWR_14114

:LOWR_14175
if 
  not Car.DoesExist(68@)
goto_if_false @LOWR_14236
68@ = Car.Create(567, 1793.496, -1907.423, 12.3992)
Car.SetHeading(68@, 181.5231)
Car.ResetHydraulics(68@)
goto @LOWR_14282

:LOWR_14236
if 
  not Car.IsDead(68@)
goto_if_false @LOWR_14282
Car.SetCoordinates(68@, 1793.496, -1907.423, 12.3992)
Car.SetHeading(68@, 181.5231)

:LOWR_14282
Char.ClearTasksImmediately($scplayer)
if 
  not Car.IsDead(68@)
goto_if_false @LOWR_14354
Char.WarpIntoCar($scplayer, 68@)
Task.PlayAnim($scplayer, "SIT_RELAXED", "LOWRIDER", 4.0, True, False, False, True, -1)

:LOWR_14354
69@ = Car.Create(534, 0.0, 0.0, 0.0)
70@ = Car.Create(567, 0.0, 0.0, 0.0)
71@ = Car.Create(567, 0.0, 0.0, 0.0)
72@ = Car.Create(567, 0.0, 0.0, 0.0)
73@ = Car.Create(534, 0.0, 0.0, 0.0)
74@ = Car.Create(567, 0.0, 0.0, 0.0)
75@ = Car.Create(534, 0.0, 0.0, 0.0)
Car.ChangeColor(69@, 1, 0)
Car.ChangeColor(70@, 2, 1)
Car.ChangeColor(71@, 3, 2)
Car.ChangeColor(72@, 10, 3)
Car.ChangeColor(73@, 9, 4)
Car.ChangeColor(74@, 6, 5)
Car.ChangeColor(75@, 7, 6)
43@ = 0

:LOWR_14585
if 
  7 > 43@
goto_if_false @LOWR_14685
Car.SetCoordinates(69@(43@,7i), 138@(43@,7f), 145@(43@,7f), 152@(43@,7f))
Car.SetHeading(69@(43@,7i), 159@(43@,7f))
Car.FreezePosition(69@(43@,7i), True)
Car.LockDoors(69@(43@,7i), CarLock.LockoutPlayerOnly)
43@ += 1
goto @LOWR_14585

:LOWR_14685
Car.FreezePosition(73@, False)
Car.SetStatus(73@, EntityStatus.Physics)
Car.SetHydraulics(73@, True)
Car.SetOnlyDamagedByPlayer(73@, True)
Car.SetProofs(73@, True, True, True, True, True)
77@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
78@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
79@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
80@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
81@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
82@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
83@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
84@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
85@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
86@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
87@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
88@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
89@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
90@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
91@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
92@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
93@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
94@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
95@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
96@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
97@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
98@ = Char.CreateInsideCar(73@, PedType.Mission1, 116)
43@ = 0

:LOWR_15251
if 
  21 > 43@
goto_if_false @LOWR_15329
Char.SetCoordinates(77@(43@,22i), 166@(43@,22f), 188@(43@,22f), 210@(43@,22f))
Char.SetHeading(77@(43@,22i), 232@(43@,22f))
43@ += 1
goto @LOWR_15251

:LOWR_15329
99@ = Char.Create(PedType.Mission1, 63, 1788.273, -1903.364, 12.4345)
Char.SetHeading(99@, 232.5412)
if 
  $lowr_timer == 0
goto_if_false @LOWR_15399
Audio.PreloadBeatTrack(13)
$lowr_timer += 1
goto @LOWR_15410

:LOWR_15399
Audio.PreloadBeatTrack(0)
$lowr_timer = 0

:LOWR_15410
43@ = 0

:LOWR_15417
if 
  not is_int_lvar_equal_to_constant 43@ == 2
goto_if_false @LOWR_15451
wait 0
43@ = Audio.GetBeatTrackStatus()
goto @LOWR_15417

:LOWR_15451
35@ += 1

:LOWR_15458
if 
  35@ == 2
goto_if_false @LOWR_15582
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @LOWR_15582
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  not Car.IsDead($car)
goto_if_false @LOWR_15549
if 
  not Car.IsPassengerSeatFree($car, SeatIndex.TandemRear)
goto_if_false @LOWR_15549
277@ = Car.GetCharInPassengerSeat($car, 0)
Char.Delete(277@)

:LOWR_15549
if 
  not Char.IsDead(99@)
goto_if_false @LOWR_15582
Char.WarpIntoCarAsPassenger(99@, $car, 0)
35@ += 1

:LOWR_15582
if 
  35@ == 3
goto_if_false @LOWR_16153
Hud.SwitchWidescreen(False)
Camera.SetFixedPosition(1788.516, -1910.318, 14.8901, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1789.355, -1909.843, 14.6269, SwitchType.JumpCut)
Hud.DisplayRadar(False)
Hud.Display(False)
if 
  not Car.IsDead(68@)
goto_if_false @LOWR_15708
Car.LockDoors(68@, CarLock.LockedPlayerInside)
Player.ApplyBrakesToCar($player1, True)
Car.SetProofs(68@, True, True, True, True, True)

:LOWR_15708
266@ = 0.62
267@ = 0.31
268@ = -0.167
if 
  not Car.IsDead(68@)
goto_if_false @LOWR_15820
if 
  not Char.IsDead(99@)
goto_if_false @LOWR_15820
if 
  Car.IsModel(68@, 567)
goto_if_false @LOWR_15820
Char.ClearTasksImmediately(99@)
Char.AttachToCar(99@, 68@, 266@, 267@, 268@, 0, 0.0, WeaponType.Unarmed)

:LOWR_15820
49@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_HAIR", "LOWRIDER", 4.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "LRGIRL_HURRY", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(49@)
if 
  not Char.IsDead(99@)
goto_if_false @LOWR_15955
if 
  Char.IsAttachedToAnyCar(99@)
goto_if_false @LOWR_15955
Char.PerformSequence(99@, 49@)

:LOWR_15955
Sequence.Clear(49@)
TIMERA = 0
$lowrider_level = -1
$lowrider_last_level = -1
if 
  1 > $lowrider_opposition_skill
goto_if_false @LOWR_16006
$lowrider_opposition_skill = 1

:LOWR_16006
cset_lvar_float_to_lvar_int 46@ =# 273@
cset_lvar_float_to_lvar_int 47@ =# 272@
div_float_lvar_by_float_lvar 46@ /= 47@
46@ *= 4.0
cset_lvar_int_to_lvar_float 43@ =# 46@
add_int_lvar_to_int_var $lowrider_opposition_skill += 43@
if 
  $lowrider_opposition_skill > 5
goto_if_false @LOWR_16081
$lowrider_opposition_skill = 5

:LOWR_16081
if 
  1 > $lowrider_opposition_skill
goto_if_false @LOWR_16106
$lowrider_opposition_skill = 1

:LOWR_16106
wait 500
Camera.DoFade(500, Fade.In)

:LOWR_16118
if 
  Camera.GetFadingStatus
goto_if_false @LOWR_16142
wait 0
goto @LOWR_16118

:LOWR_16142
Text.ClearPrints
Audio.PlayBeatTrack
35@ += 1

:LOWR_16153
if 
  35@ == 4
goto_if_false @LOWR_16267
Player.SetControl($player1, True)
start_new_script @BDISPLY 
start_new_script @LOWGAME 68@ 73@ 99@ 
TIMERA = 0
136@ = 0
130@ = 0
Text.ClearPrints
Text.ClearHelp
Text.PrintHelp('LOW_26')
65@ = 0
63@ = 0
TIMERA = 0
35@ += 1

:LOWR_16267
if 
  35@ == 5
goto_if_false @LOWR_16310
if 
  $lowrider_game_is_active == 1
goto_if_false @LOWR_16310
35@ += 1

:LOWR_16310
if 
  35@ == 6
goto_if_false @LOWR_17476
if 
  $lowrider_game_is_active == 1
goto_if_false @LOWR_17469
if 
  132@ == 0
goto_if_false @LOWR_16787
if or
  136@ > 5000
  Pad.IsButtonPressed(PadId.Pad1, Button.Select)
goto_if_false @LOWR_16780
130@ += 1
if 
  130@ >= 5
goto_if_false @LOWR_16421
130@ = 0

:LOWR_16421
if 
  not Car.IsDead(68@)
goto_if_false @LOWR_16451
$x, $y, $z = Car.GetCoordinates(68@)

:LOWR_16451
if 
  130@ == 0
goto_if_false @LOWR_16514
Camera.SetFixedPosition(1803.978, -1909.369, 15.0671, 0.0, 0.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:LOWR_16514
if 
  130@ == 1
goto_if_false @LOWR_16577
Camera.SetFixedPosition(1795.369, -1900.999, 14.1795, 0.0, 0.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:LOWR_16577
if 
  130@ == 2
goto_if_false @LOWR_16640
Camera.SetFixedPosition(1788.793, -1902.99, 13.7203, 0.0, 0.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:LOWR_16640
if 
  130@ == 3
goto_if_false @LOWR_16703
Camera.SetFixedPosition(1789.377, -1912.195, 14.0671, 0.0, 0.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:LOWR_16703
if 
  130@ == 4
goto_if_false @LOWR_16766
Camera.SetFixedPosition(1796.409, -1912.231, 13.8316, 0.0, 0.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:LOWR_16766
132@ += 1
136@ = 0

:LOWR_16780
goto @LOWR_16811

:LOWR_16787
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Select)
goto_if_false @LOWR_16811
132@ = 0

:LOWR_16811
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @LOWR_17462
$x, $y, $z = Camera.GetActiveCoordinates()
if 
  not Car.IsDead(68@)
goto_if_false @LOWR_16875
56@, 57@, 58@ = Car.GetCoordinates(68@)
$heading = Car.GetHeading(68@)

:LOWR_16875
$heading *= -1.0
46@ = Math.Cos($heading)
47@ = Math.Sin($heading)
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
set_lvar_float_to_lvar_float 53@ = 50@
mult_float_lvar_by_float_lvar 53@ *= 46@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 47@
sub_float_lvar_from_float_lvar 53@ -= 48@
set_lvar_float_to_lvar_float 54@ = 50@
mult_float_lvar_by_float_lvar 54@ *= 47@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 46@
add_float_lvar_to_float_lvar 54@ += 48@
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("FIXED_CAMERA_POSITION - OFFSET FROM CAR = ")
save_float_to_debug_file 53@
save_float_to_debug_file 54@
save_float_to_debug_file 52@
$x, $y, $z = Camera.GetActivePointAt()
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
set_lvar_float_to_lvar_float 53@ = 50@
mult_float_lvar_by_float_lvar 53@ *= 46@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 47@
sub_float_lvar_from_float_lvar 53@ -= 48@
set_lvar_float_to_lvar_float 54@ = 50@
mult_float_lvar_by_float_lvar 54@ *= 47@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 46@
add_float_lvar_to_float_lvar 54@ += 48@
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CAMERA_POINT_AT -       OFFSET FROM CAR = ")
save_float_to_debug_file 53@
save_float_to_debug_file 54@
save_float_to_debug_file 52@

:LOWR_17462
goto @LOWR_17476

:LOWR_17469
35@ += 1

:LOWR_17476
if 
  35@ == 7
goto_if_false @LOWR_17539
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:LOWR_17508
if 
  Camera.GetFadingStatus
goto_if_false @LOWR_17532
wait 0
goto @LOWR_17508

:LOWR_17532
35@ = 99

:LOWR_17539
gosub @LOWR_23846
if 
  35@ == 99
goto_if_false @LOWR_17571
gosub @LOWR_27164

:LOWR_17571
return 

:LOWR_17573
if 
  35@ == 0
goto_if_false @LOWR_17611
Audio.StopBeatTrack
Text.ClearPrints
Camera.RestoreJumpcut
Player.SetControl($player1, False)
35@ += 1

:LOWR_17611
if 
  35@ == 1
goto_if_false @LOWR_19080
43@ = 0

:LOWR_17636
if 
  7 > 43@
goto_if_false @LOWR_17697
if 
  Car.DoesExist(69@(43@,7i))
goto_if_false @LOWR_17683
Car.Delete(69@(43@,7i))

:LOWR_17683
43@ += 1
goto @LOWR_17636

:LOWR_17697
43@ = 0

:LOWR_17704
if 
  22 > 43@
goto_if_false @LOWR_17765
if 
  Char.DoesExist(77@(43@,22i))
goto_if_false @LOWR_17751
Char.Delete(77@(43@,22i))

:LOWR_17751
43@ += 1
goto @LOWR_17704

:LOWR_17765
if 
  Char.DoesExist(99@)
goto_if_false @LOWR_17786
Char.Delete(99@)

:LOWR_17786
if 
  not Car.DoesExist(68@)
goto_if_false @LOWR_17842
68@ = Car.Create(567, 1793.496, -1907.423, 12.3992)
Car.SetHeading(68@, 181.5231)
goto @LOWR_17888

:LOWR_17842
if 
  not Car.IsDead(68@)
goto_if_false @LOWR_17888
Car.SetCoordinates(68@, 1793.496, -1907.423, 12.3992)
Car.SetHeading(68@, 181.5231)

:LOWR_17888
69@ = Car.Create(534, 0.0, 0.0, 0.0)
70@ = Car.Create(567, 0.0, 0.0, 0.0)
71@ = Car.Create(567, 0.0, 0.0, 0.0)
72@ = Car.Create(567, 0.0, 0.0, 0.0)
73@ = Car.Create(534, 0.0, 0.0, 0.0)
74@ = Car.Create(567, 0.0, 0.0, 0.0)
75@ = Car.Create(534, 0.0, 0.0, 0.0)
Car.ChangeColor(69@, 1, 0)
Car.ChangeColor(70@, 2, 1)
Car.ChangeColor(71@, 3, 2)
Car.ChangeColor(72@, 10, 3)
Car.ChangeColor(73@, 9, 4)
Car.ChangeColor(74@, 6, 5)
Car.ChangeColor(75@, 7, 6)
43@ = 0

:LOWR_18119
if 
  7 > 43@
goto_if_false @LOWR_18219
Car.SetCoordinates(69@(43@,7i), 138@(43@,7f), 145@(43@,7f), 152@(43@,7f))
Car.SetHeading(69@(43@,7i), 159@(43@,7f))
Car.FreezePosition(69@(43@,7i), True)
Car.LockDoors(69@(43@,7i), CarLock.LockoutPlayerOnly)
43@ += 1
goto @LOWR_18119

:LOWR_18219
Car.FreezePosition(73@, False)
Car.SetStatus(73@, EntityStatus.Physics)
Car.SetHydraulics(73@, True)
Car.SetOnlyDamagedByPlayer(73@, True)
Car.SetProofs(73@, True, True, True, True, True)
77@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
78@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
79@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
80@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
81@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
82@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
83@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
84@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
85@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
86@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
87@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
88@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
89@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
90@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
91@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
92@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
93@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
94@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
95@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
96@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
97@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
98@ = Char.CreateInsideCar(73@, PedType.Mission1, 116)
43@ = 0

:LOWR_18785
if 
  21 > 43@
goto_if_false @LOWR_18863
Char.SetCoordinates(77@(43@,22i), 166@(43@,22f), 188@(43@,22f), 210@(43@,22f))
Char.SetHeading(77@(43@,22i), 232@(43@,22f))
43@ += 1
goto @LOWR_18785

:LOWR_18863
99@ = Char.Create(PedType.Mission1, 63, 1788.273, -1903.364, 12.4345)
Char.SetHeading(99@, 232.5412)
if 
  not Car.IsDead(68@)
goto_if_false @LOWR_18977
Car.ResetHydraulics(68@)
if 
  not Car.IsPassengerSeatFree(68@, SeatIndex.TandemRear)
goto_if_false @LOWR_18951
277@ = Car.GetCharInPassengerSeat(68@, 0)
Char.Delete(277@)

:LOWR_18951
if 
  not Char.IsDead(99@)
goto_if_false @LOWR_18977
Char.WarpIntoCarAsPassenger(99@, 68@, 0)

:LOWR_18977
Char.ClearTasksImmediately($scplayer)
if 
  not Car.IsDead(68@)
goto_if_false @LOWR_19049
Char.WarpIntoCar($scplayer, 68@)
Task.PlayAnim($scplayer, "SIT_RELAXED", "LOWRIDER", 4.0, True, False, False, True, -1)

:LOWR_19049
Streaming.LoadSceneInDirection(1793.0, -1908.0, 14.0, 180.0)
Streaming.LoadAllModelsNow
35@ = 99

:LOWR_19080
if 
  35@ == 99
goto_if_false @LOWR_19719
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Streaming.LoadSceneInDirection(1793.0, -1908.0, 14.0, 180.0)
Streaming.LoadAllModelsNow
wait 500
if 
  Car.DoesExist(70@)
goto_if_false @LOWR_19163
Car.Delete(70@)

:LOWR_19163
if 
  Car.DoesExist(73@)
goto_if_false @LOWR_19184
Car.Delete(73@)

:LOWR_19184
if 
  Car.DoesExist(71@)
goto_if_false @LOWR_19205
Car.Delete(71@)

:LOWR_19205
if 
  Car.DoesExist(74@)
goto_if_false @LOWR_19226
Car.Delete(74@)

:LOWR_19226
if 
  Car.DoesExist(72@)
goto_if_false @LOWR_19247
Car.Delete(72@)

:LOWR_19247
if 
  Char.DoesExist(78@)
goto_if_false @LOWR_19268
Char.Delete(78@)

:LOWR_19268
if 
  Char.DoesExist(80@)
goto_if_false @LOWR_19289
Char.Delete(80@)

:LOWR_19289
if 
  Char.DoesExist(93@)
goto_if_false @LOWR_19310
Char.Delete(93@)

:LOWR_19310
if 
  Char.DoesExist(83@)
goto_if_false @LOWR_19331
Char.Delete(83@)

:LOWR_19331
if 
  Char.DoesExist(84@)
goto_if_false @LOWR_19352
Char.Delete(84@)

:LOWR_19352
if 
  Char.DoesExist(86@)
goto_if_false @LOWR_19373
Char.Delete(86@)

:LOWR_19373
if 
  Char.DoesExist(87@)
goto_if_false @LOWR_19394
Char.Delete(87@)

:LOWR_19394
if 
  Char.DoesExist(89@)
goto_if_false @LOWR_19415
Char.Delete(89@)

:LOWR_19415
if 
  Char.DoesExist(97@)
goto_if_false @LOWR_19436
Char.Delete(97@)

:LOWR_19436
if 
  Char.DoesExist(90@)
goto_if_false @LOWR_19457
Char.Delete(90@)

:LOWR_19457
if 
  not Char.IsDead(81@)
goto_if_false @LOWR_19502
if 
  not Car.IsDead(69@)
goto_if_false @LOWR_19502
Char.ClearTasksImmediately(81@)
Char.WarpIntoCar(81@, 69@)

:LOWR_19502
if 
  not Char.IsDead(88@)
goto_if_false @LOWR_19547
if 
  not Car.IsDead(75@)
goto_if_false @LOWR_19547
Char.ClearTasksImmediately(88@)
Char.WarpIntoCar(88@, 75@)

:LOWR_19547
if 
  not Char.IsDead(99@)
goto_if_false @LOWR_19587
if 
  not Car.IsDead(68@)
goto_if_false @LOWR_19587
Task.LeaveCar(99@, 68@)

:LOWR_19587
Camera.DoFade(500, Fade.In)

:LOWR_19594
if 
  Camera.GetFadingStatus
goto_if_false @LOWR_19618
wait 0
goto @LOWR_19594

:LOWR_19618
if 
  is_int_var_greater_than_int_var $lowrider_pscore > $lowrider_oscore
goto_if_false @LOWR_19685
273@ *= 2
Text.PrintWithNumberBig('WINNER', 273@, 5000, TextStyle.Middle)
Player.AddScore($player1, 273@)
36@ = 1
goto @LOWR_19708

:LOWR_19685
Text.PrintNow('LOW_33', 5000, 1)
37@ = 1

:LOWR_19708
wait 0
gosub @LOWR_27164

:LOWR_19719
gosub @LOWR_23846
return 

:LOWR_19728
if 
is_ps2_keyboard_key_just_pressed 33
goto_if_false @LOWR_19753
269@ += 0.01

:LOWR_19753
if 
is_ps2_keyboard_key_just_pressed 34
goto_if_false @LOWR_19778
269@ += -0.01

:LOWR_19778
if 
  Car.DoesExist(68@)
goto_if_false @LOWR_19833
if 
  Car.IsDead(68@)
goto_if_false @LOWR_19833
Text.PrintNow('LOW_34', 5000, 1)
37@ = 1

:LOWR_19833
if 
  Player.IsPlaying($player1)
goto_if_false @LOWR_20010
if 
  34@ > 2
goto_if_false @LOWR_20010
if 
  278@ == 0
goto_if_false @LOWR_19951
if 
  Char.LocateAnyMeans2D($scplayer, 1793.068, -1904.254, 125.0, 125.0, False)
goto_if_false @LOWR_19944
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
278@ = 1

:LOWR_19944
goto @LOWR_20010

:LOWR_19951
if 
  not Char.LocateAnyMeans2D($scplayer, 1793.068, -1904.254, 150.0, 150.0, False)
goto_if_false @LOWR_20010
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
278@ = 0

:LOWR_20010
return 
if 
  not Car.IsDead(68@)
goto_if_false @LOWR_20070
if 
  not Char.IsDead(99@)
goto_if_false @LOWR_20070
Char.AttachToCar(99@, 68@, 266@, 267@, 268@, 0, 0.0, WeaponType.Unarmed)

:LOWR_20070
return 

:LOWR_20072
if 
  283@ == 0
goto_if_false @LOWR_20130
279@ = 0.0
280@ = 0.0
281@ = 0.0
282@ = 0.0

:LOWR_20130
if 
  283@ == 1
goto_if_false @LOWR_20188
279@ = 0.0
280@ = 0.0
281@ = 0.0
282@ = 1.0

:LOWR_20188
if 
  283@ == 2
goto_if_false @LOWR_20246
279@ = 0.0
280@ = 0.0
281@ = 1.0
282@ = 0.0

:LOWR_20246
if 
  283@ == 3
goto_if_false @LOWR_20304
279@ = 0.0
280@ = 0.0
281@ = 1.0
282@ = 1.0

:LOWR_20304
if 
  283@ == 4
goto_if_false @LOWR_20362
279@ = 0.0
280@ = 1.0
281@ = 0.0
282@ = 0.0

:LOWR_20362
if 
  283@ == 5
goto_if_false @LOWR_20420
279@ = 0.0
280@ = 1.0
281@ = 0.0
282@ = 1.0

:LOWR_20420
if 
  283@ == 6
goto_if_false @LOWR_20478
279@ = 0.0
280@ = 1.0
281@ = 1.0
282@ = 0.0

:LOWR_20478
if 
  283@ == 7
goto_if_false @LOWR_20536
279@ = 0.0
280@ = 1.0
281@ = 1.0
282@ = 1.0

:LOWR_20536
if 
  283@ == 8
goto_if_false @LOWR_20594
279@ = 1.0
280@ = 0.0
281@ = 0.0
282@ = 0.0

:LOWR_20594
if 
  283@ == 9
goto_if_false @LOWR_20652
279@ = 1.0
280@ = 0.0
281@ = 0.0
282@ = 1.0

:LOWR_20652
if 
  283@ == 10
goto_if_false @LOWR_20710
279@ = 1.0
280@ = 0.0
281@ = 1.0
282@ = 0.0

:LOWR_20710
if 
  283@ == 11
goto_if_false @LOWR_20768
279@ = 1.0
280@ = 0.0
281@ = 1.0
282@ = 1.0

:LOWR_20768
if 
  283@ == 12
goto_if_false @LOWR_20826
279@ = 1.0
280@ = 1.0
281@ = 0.0
282@ = 0.0

:LOWR_20826
if 
  283@ == 13
goto_if_false @LOWR_20884
279@ = 1.0
280@ = 1.0
281@ = 0.0
282@ = 1.0

:LOWR_20884
if 
  283@ == 14
goto_if_false @LOWR_20942
279@ = 1.0
280@ = 1.0
281@ = 1.0
282@ = 0.0

:LOWR_20942
if 
  283@ == 15
goto_if_false @LOWR_21000
279@ = 1.0
280@ = 1.0
281@ = 1.0
282@ = 1.0

:LOWR_21000
return 

:LOWR_21002
if 
  300 > 133@
goto_if_false @LOWR_21068
254@ = 1.0
257@ = 1.0
260@ = 0.0
263@ = 0.0
goto @LOWR_21141

:LOWR_21068
if 
  133@ > 500
goto_if_false @LOWR_21101
133@ = 0
goto @LOWR_21141

:LOWR_21101
254@ = 0.0
257@ = 0.0
260@ = 0.0
263@ = 0.0

:LOWR_21141
if 
  134@ > 2000
goto_if_false @LOWR_21215
283@ = Math.RandomIntInRange(0, 16)
gosub @LOWR_20072
set_lvar_float_to_lvar_float 255@ = 281@
set_lvar_float_to_lvar_float 258@ = 279@
set_lvar_float_to_lvar_float 261@ = 282@
set_lvar_float_to_lvar_float 264@ = 280@
134@ = 0

:LOWR_21215
if 
  not Car.IsDead(69@)
goto_if_false @LOWR_21357
if 
  Car.DoesHaveHydraulics(69@)
goto_if_false @LOWR_21357
Car.ControlHydraulics(69@, 257@, 263@, 254@, 260@)
$x, $y, $z = Car.GetCoordinates(69@)
set_lvar_float_to_lvar_float 50@ = 138@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 145@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 269@
mult_float_lvar_by_float_lvar 51@ *= 269@
Car.ApplyForce(69@, 50@, 51@, 0.0, 0.0, 0.0, 0.0)

:LOWR_21357
if 
  not Car.IsDead(72@)
goto_if_false @LOWR_21499
if 
  Car.DoesHaveHydraulics(72@)
goto_if_false @LOWR_21499
Car.ControlHydraulics(72@, 258@, 264@, 255@, 261@)
$x, $y, $z = Car.GetCoordinates(72@)
set_lvar_float_to_lvar_float 50@ = 141@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 148@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 269@
mult_float_lvar_by_float_lvar 51@ *= 269@
Car.ApplyForce(72@, 50@, 51@, 0.0, 0.0, 0.0, 0.0)

:LOWR_21499
switch_start 39@ {numCases} 18 {hasDefaultCase} 0 {defaultLabel} @LOWR_23844 {caseNum1} 0 {caseLabel1} @LOWR_21692 {caseNum2} 1 {caseLabel2} @LOWR_21812 {caseNum3} 2 {caseLabel3} @LOWR_21932 {caseNum4} 3 {caseLabel4} @LOWR_22048 {caseNum5} 4 {caseLabel5} @LOWR_22164 {caseNum6} 5 {caseLabel6} @LOWR_22279 {caseNum7} 6 {caseLabel7} @LOWR_22395
switch_continued 7 {caseLabel1} @LOWR_22511 {caseNum2} 8 {caseLabel2} @LOWR_22627 {caseNum3} 9 {caseLabel3} @LOWR_22743 {caseNum4} 10 {caseLabel4} @LOWR_22863 {caseNum5} 11 {caseLabel5} @LOWR_23046 {caseNum6} 12 {caseLabel6} @LOWR_23162 {caseNum7} 13 {caseLabel7} @LOWR_23278 {caseNum8} 14 {caseLabel8} @LOWR_23394 {caseNum9} 15 {caseLabel9} @LOWR_23510
switch_continued 16 {caseLabel1} @LOWR_23626 {caseNum2} 17 {caseLabel2} @LOWR_23735 {caseNum3} -1 {caseLabel3} @LOWR_23844 {caseNum4} -1 {caseLabel4} @LOWR_23844 {caseNum5} -1 {caseLabel5} @LOWR_23844 {caseNum6} -1 {caseLabel6} @LOWR_23844 {caseNum7} -1 {caseLabel7} @LOWR_23844 {caseNum8} -1 {caseLabel8} @LOWR_23844 {caseNum9} -1 {caseLabel9} @LOWR_23844

:LOWR_21692
if 
  not Char.IsDead(77@)
goto_if_false @LOWR_21805
43@ = Char.GetScriptTaskStatus(77@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_21805
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(77@, 49@)
Sequence.Clear(49@)

:LOWR_21805
goto @LOWR_23844

:LOWR_21812
if 
  not Char.IsDead(78@)
goto_if_false @LOWR_21925
43@ = Char.GetScriptTaskStatus(78@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_21925
49@ = Sequence.Open()
Task.PlayAnim(-1, "F_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(78@, 49@)
Sequence.Clear(49@)

:LOWR_21925
goto @LOWR_23844

:LOWR_21932
if 
  not Char.IsDead(79@)
goto_if_false @LOWR_22041
43@ = Char.GetScriptTaskStatus(79@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22041
49@ = Sequence.Open()
if 
  not Char.IsDead(80@)
goto_if_false @LOWR_22016
Task.ChatWithChar(-1, 80@, True, 1)
goto @LOWR_22023

:LOWR_22016
Task.Pause(-1, 1000)

:LOWR_22023
Sequence.Close(49@)
Char.PerformSequence(79@, 49@)
Sequence.Clear(49@)

:LOWR_22041
goto @LOWR_23844

:LOWR_22048
if 
  not Char.IsDead(80@)
goto_if_false @LOWR_22157
43@ = Char.GetScriptTaskStatus(80@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22157
49@ = Sequence.Open()
if 
  not Char.IsDead(79@)
goto_if_false @LOWR_22132
Task.ChatWithChar(-1, 79@, False, 1)
goto @LOWR_22139

:LOWR_22132
Task.Pause(-1, 1000)

:LOWR_22139
Sequence.Close(49@)
Char.PerformSequence(80@, 49@)
Sequence.Clear(49@)

:LOWR_22157
goto @LOWR_23844

:LOWR_22164
if 
  not Char.IsDead(81@)
goto_if_false @LOWR_22272
43@ = Char.GetScriptTaskStatus(81@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22272
49@ = Sequence.Open()
Task.PlayAnim(-1, "CAR_HOOKERTALK", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(81@, 49@)
Sequence.Clear(49@)

:LOWR_22272
goto @LOWR_23844

:LOWR_22279
if 
  not Char.IsDead(82@)
goto_if_false @LOWR_22388
43@ = Char.GetScriptTaskStatus(82@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22388
49@ = Sequence.Open()
if 
  not Char.IsDead(83@)
goto_if_false @LOWR_22363
Task.ChatWithChar(-1, 83@, False, 1)
goto @LOWR_22370

:LOWR_22363
Task.Pause(-1, 1000)

:LOWR_22370
Sequence.Close(49@)
Char.PerformSequence(82@, 49@)
Sequence.Clear(49@)

:LOWR_22388
goto @LOWR_23844

:LOWR_22395
if 
  not Char.IsDead(83@)
goto_if_false @LOWR_22504
43@ = Char.GetScriptTaskStatus(83@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22504
49@ = Sequence.Open()
if 
  not Char.IsDead(82@)
goto_if_false @LOWR_22479
Task.ChatWithChar(-1, 82@, True, 1)
goto @LOWR_22486

:LOWR_22479
Task.Pause(-1, 1000)

:LOWR_22486
Sequence.Close(49@)
Char.PerformSequence(83@, 49@)
Sequence.Clear(49@)

:LOWR_22504
goto @LOWR_23844

:LOWR_22511
if 
  not Char.IsDead(84@)
goto_if_false @LOWR_22620
43@ = Char.GetScriptTaskStatus(84@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22620
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(84@, 49@)
Sequence.Clear(49@)

:LOWR_22620
goto @LOWR_23844

:LOWR_22627
if 
  not Char.IsDead(85@)
goto_if_false @LOWR_22736
43@ = Char.GetScriptTaskStatus(85@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22736
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(85@, 49@)
Sequence.Clear(49@)

:LOWR_22736
goto @LOWR_23844

:LOWR_22743
if 
  not Char.IsDead(86@)
goto_if_false @LOWR_22856
43@ = Char.GetScriptTaskStatus(86@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22856
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(86@, 49@)
Sequence.Clear(49@)

:LOWR_22856
goto @LOWR_23844

:LOWR_22863
if 
  not Char.IsDead(87@)
goto_if_false @LOWR_23039
43@ = Char.GetScriptTaskStatus(87@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23039
49@ = Sequence.Open()
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "FUCKU", "PED", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "WOMAN_IDLESTANCE", "PED", 4.0, False, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(87@, 49@)
Sequence.Clear(49@)

:LOWR_23039
goto @LOWR_23844

:LOWR_23046
if 
  not Char.IsDead(88@)
goto_if_false @LOWR_23155
43@ = Char.GetScriptTaskStatus(88@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23155
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(88@, 49@)
Sequence.Clear(49@)

:LOWR_23155
goto @LOWR_23844

:LOWR_23162
if 
  not Char.IsDead(89@)
goto_if_false @LOWR_23271
43@ = Char.GetScriptTaskStatus(89@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23271
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, True, True, False, -1)
Sequence.Close(49@)
Char.PerformSequence(89@, 49@)
Sequence.Clear(49@)

:LOWR_23271
goto @LOWR_23844

:LOWR_23278
if 
  not Char.IsDead(90@)
goto_if_false @LOWR_23387
43@ = Char.GetScriptTaskStatus(90@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23387
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(90@, 49@)
Sequence.Clear(49@)

:LOWR_23387
goto @LOWR_23844

:LOWR_23394
if 
  not Char.IsDead(91@)
goto_if_false @LOWR_23503
43@ = Char.GetScriptTaskStatus(91@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23503
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(91@, 49@)
Sequence.Clear(49@)

:LOWR_23503
goto @LOWR_23844

:LOWR_23510
if 
  not Char.IsDead(92@)
goto_if_false @LOWR_23619
43@ = Char.GetScriptTaskStatus(92@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23619
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(92@, 49@)
Sequence.Clear(49@)

:LOWR_23619
goto @LOWR_23844

:LOWR_23626
if 
  not Char.IsDead(93@)
goto_if_false @LOWR_23728
43@ = Char.GetScriptTaskStatus(93@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23728
49@ = Sequence.Open()
Task.PlayAnim(-1, "TAP_HAND", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(93@, 49@)
Sequence.Clear(49@)

:LOWR_23728
goto @LOWR_23844

:LOWR_23735
if 
  not Char.IsDead(94@)
goto_if_false @LOWR_23837
43@ = Char.GetScriptTaskStatus(94@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23837
49@ = Sequence.Open()
Task.PlayAnim(-1, "TAP_HAND", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(94@, 49@)
Sequence.Clear(49@)

:LOWR_23837
goto @LOWR_23844

:LOWR_23844
return 

:LOWR_23846
switch_start 39@ {numCases} 21 {hasDefaultCase} 0 {defaultLabel} @LOWR_26503 {caseNum1} 0 {caseLabel1} @LOWR_24039 {caseNum2} 1 {caseLabel2} @LOWR_24159 {caseNum3} 2 {caseLabel3} @LOWR_24275 {caseNum4} 3 {caseLabel4} @LOWR_24391 {caseNum5} 4 {caseLabel5} @LOWR_24511 {caseNum6} 5 {caseLabel6} @LOWR_24631 {caseNum7} 6 {caseLabel7} @LOWR_24747
switch_continued 7 {caseLabel1} @LOWR_24867 {caseNum2} 8 {caseLabel2} @LOWR_24983 {caseNum3} 9 {caseLabel3} @LOWR_25099 {caseNum4} 10 {caseLabel4} @LOWR_25219 {caseNum5} 11 {caseLabel5} @LOWR_25335 {caseNum6} 12 {caseLabel6} @LOWR_25455 {caseNum7} 13 {caseLabel7} @LOWR_25575 {caseNum8} 14 {caseLabel8} @LOWR_25691 {caseNum9} 15 {caseLabel9} @LOWR_25807
switch_continued 16 {caseLabel1} @LOWR_25923 {caseNum2} 17 {caseLabel2} @LOWR_26039 {caseNum3} 18 {caseLabel3} @LOWR_26155 {caseNum4} 19 {caseLabel4} @LOWR_26271 {caseNum5} 20 {caseLabel5} @LOWR_26387 {caseNum6} -1 {caseLabel6} @LOWR_26503 {caseNum7} -1 {caseLabel7} @LOWR_26503 {caseNum8} -1 {caseLabel8} @LOWR_26503 {caseNum9} -1 {caseLabel9} @LOWR_26503

:LOWR_24039
if 
  not Char.IsDead(77@)
goto_if_false @LOWR_24152
43@ = Char.GetScriptTaskStatus(77@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24152
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(77@, 49@)
Sequence.Clear(49@)

:LOWR_24152
goto @LOWR_26503

:LOWR_24159
if 
  not Char.IsDead(78@)
goto_if_false @LOWR_24268
43@ = Char.GetScriptTaskStatus(78@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24268
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(78@, 49@)
Sequence.Clear(49@)

:LOWR_24268
goto @LOWR_26503

:LOWR_24275
if 
  not Char.IsDead(79@)
goto_if_false @LOWR_24384
43@ = Char.GetScriptTaskStatus(79@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24384
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(79@, 49@)
Sequence.Clear(49@)

:LOWR_24384
goto @LOWR_26503

:LOWR_24391
if 
  not Char.IsDead(80@)
goto_if_false @LOWR_24504
43@ = Char.GetScriptTaskStatus(80@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24504
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKSTND_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(80@, 49@)
Sequence.Clear(49@)

:LOWR_24504
goto @LOWR_26503

:LOWR_24511
if 
  not Char.IsDead(81@)
goto_if_false @LOWR_24624
43@ = Char.GetScriptTaskStatus(81@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24624
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKSTND_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(81@, 49@)
Sequence.Clear(49@)

:LOWR_24624
goto @LOWR_26503

:LOWR_24631
if 
  not Char.IsDead(82@)
goto_if_false @LOWR_24740
43@ = Char.GetScriptTaskStatus(82@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24740
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(82@, 49@)
Sequence.Clear(49@)

:LOWR_24740
goto @LOWR_26503

:LOWR_24747
if 
  not Char.IsDead(83@)
goto_if_false @LOWR_24860
43@ = Char.GetScriptTaskStatus(83@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24860
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKSTND_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(83@, 49@)
Sequence.Clear(49@)

:LOWR_24860
goto @LOWR_26503

:LOWR_24867
if 
  not Char.IsDead(84@)
goto_if_false @LOWR_24976
43@ = Char.GetScriptTaskStatus(84@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24976
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(84@, 49@)
Sequence.Clear(49@)

:LOWR_24976
goto @LOWR_26503

:LOWR_24983
if 
  not Char.IsDead(85@)
goto_if_false @LOWR_25092
43@ = Char.GetScriptTaskStatus(85@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25092
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(85@, 49@)
Sequence.Clear(49@)

:LOWR_25092
goto @LOWR_26503

:LOWR_25099
if 
  not Char.IsDead(86@)
goto_if_false @LOWR_25212
43@ = Char.GetScriptTaskStatus(86@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25212
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(86@, 49@)
Sequence.Clear(49@)

:LOWR_25212
goto @LOWR_26503

:LOWR_25219
if 
  not Char.IsDead(87@)
goto_if_false @LOWR_25328
43@ = Char.GetScriptTaskStatus(87@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25328
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(87@, 49@)
Sequence.Clear(49@)

:LOWR_25328
goto @LOWR_26503

:LOWR_25335
if 
  not Char.IsDead(88@)
goto_if_false @LOWR_25448
43@ = Char.GetScriptTaskStatus(88@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25448
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(88@, 49@)
Sequence.Clear(49@)

:LOWR_25448
goto @LOWR_26503

:LOWR_25455
if 
  not Char.IsDead(89@)
goto_if_false @LOWR_25568
43@ = Char.GetScriptTaskStatus(89@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25568
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKSTND_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(89@, 49@)
Sequence.Clear(49@)

:LOWR_25568
goto @LOWR_26503

:LOWR_25575
if 
  not Char.IsDead(90@)
goto_if_false @LOWR_25684
43@ = Char.GetScriptTaskStatus(90@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25684
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(90@, 49@)
Sequence.Clear(49@)

:LOWR_25684
goto @LOWR_26503

:LOWR_25691
if 
  not Char.IsDead(91@)
goto_if_false @LOWR_25800
43@ = Char.GetScriptTaskStatus(91@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25800
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(91@, 49@)
Sequence.Clear(49@)

:LOWR_25800
goto @LOWR_26503

:LOWR_25807
if 
  not Char.IsDead(92@)
goto_if_false @LOWR_25916
43@ = Char.GetScriptTaskStatus(92@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25916
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(92@, 49@)
Sequence.Clear(49@)

:LOWR_25916
goto @LOWR_26503

:LOWR_25923
if 
  not Char.IsDead(93@)
goto_if_false @LOWR_26032
43@ = Char.GetScriptTaskStatus(93@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_26032
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(93@, 49@)
Sequence.Clear(49@)

:LOWR_26032
goto @LOWR_26503

:LOWR_26039
if 
  not Char.IsDead(94@)
goto_if_false @LOWR_26148
43@ = Char.GetScriptTaskStatus(94@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_26148
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(94@, 49@)
Sequence.Clear(49@)

:LOWR_26148
goto @LOWR_26503

:LOWR_26155
if 
  not Char.IsDead(95@)
goto_if_false @LOWR_26264
43@ = Char.GetScriptTaskStatus(95@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_26264
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(95@, 49@)
Sequence.Clear(49@)

:LOWR_26264
goto @LOWR_26503

:LOWR_26271
if 
  not Char.IsDead(96@)
goto_if_false @LOWR_26380
43@ = Char.GetScriptTaskStatus(96@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_26380
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(96@, 49@)
Sequence.Clear(49@)

:LOWR_26380
goto @LOWR_26503

:LOWR_26387
if 
  not Char.IsDead(97@)
goto_if_false @LOWR_26496
43@ = Char.GetScriptTaskStatus(97@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_26496
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(97@, 49@)
Sequence.Clear(49@)

:LOWR_26496
goto @LOWR_26503

:LOWR_26503
return 

:LOWR_26505
43@ = 0

:LOWR_26512
if 
  22 > 43@
goto_if_false @LOWR_26605
if 
  Char.DoesExist(77@(43@,22i))
goto_if_false @LOWR_26591
Char.Delete(77@(43@,22i))
write_debug_with_int "PED_DELETED" {_p2} 43@
43@ = 22
goto @LOWR_26598

:LOWR_26591
43@ += 1

:LOWR_26598
goto @LOWR_26512

:LOWR_26605
return 

:LOWR_26607
43@ = 0

:LOWR_26614
if 
  7 > 43@
goto_if_false @LOWR_26707
if 
  Car.DoesExist(69@(43@,7i))
goto_if_false @LOWR_26693
Car.Delete(69@(43@,7i))
write_debug_with_int "CAR_DELETED" {_p2} 43@
43@ = 7
goto @LOWR_26700

:LOWR_26693
43@ += 1

:LOWR_26700
goto @LOWR_26614

:LOWR_26707
return 

:LOWR_26709
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @LOWR_26812 {caseNum1} 3 {caseLabel1} @LOWR_26772 {caseNum2} -1 {caseLabel2} @LOWR_26852 {caseNum3} -1 {caseLabel3} @LOWR_26852 {caseNum4} -1 {caseLabel4} @LOWR_26852 {caseNum5} -1 {caseLabel5} @LOWR_26852 {caseNum6} -1 {caseLabel6} @LOWR_26852 {caseNum7} -1 {caseLabel7} @LOWR_26852

:LOWR_26772
Hud.DrawWindow(29.0, 220.0, 173.0, 409.0, 'BJ_TITL', 2)
goto @LOWR_26852

:LOWR_26812
Hud.DrawWindow(29.0, 220.0, 157.0, 409.0, 'BJ_TITL', 2)
goto @LOWR_26852

:LOWR_26852
gosub @LOWR_27109
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 240.0, 'WOF_04')
gosub @LOWR_27109
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber(36.0, 260.0, 'DOLLAR', 273@)
gosub @LOWR_27109
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 290.0, 'BJ_02')
gosub @LOWR_27109
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber(36.0, 310.0, 'DOLLAR', 271@)
gosub @LOWR_27109
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 340.0, 'BJ_03')
gosub @LOWR_27109
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber(36.0, 360.0, 'DOLLAR', 272@)
return 

:LOWR_27109
Text.SetColor(180, 180, 180, 255)
Text.SetScale(0.4714, 2.5077)
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(False)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
return 

:LOWR_27164
34@ += 1
35@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
return 

:LOWR_27222
return 

:LOWR_27224
return 

:LOWR_27226
Zone.SwitchAudio('LOWRIDE', False)
if 
  Car.DoesExist(68@)
goto_if_false @LOWR_27362
if 
  not Car.IsDead(68@)
goto_if_false @LOWR_27362
Car.SetStatus(68@, EntityStatus.Abandoned)
Car.FreezePosition(68@, False)
Car.SetProofs(68@, False, False, False, False, False)
if 
  Player.IsPlaying($player1)
goto_if_false @LOWR_27323
Player.ApplyBrakesToCar($player1, False)

:LOWR_27323
Car.LockDoors(68@, CarLock.Unlocked)
if 
  Char.IsInCar($scplayer, 68@)
goto_if_false @LOWR_27362
Char.ClearTasksImmediately($scplayer)
Char.WarpIntoCar($scplayer, 68@)

:LOWR_27362
43@ = 0

:LOWR_27369
if 
  7 > 43@
goto_if_false @LOWR_27553
if 
  Car.DoesExist(69@(43@,7i))
goto_if_false @LOWR_27539
if 
  not Car.IsDead(69@(43@,7i))
goto_if_false @LOWR_27530
if or
  43@ == 0
  43@ == 3
  43@ == 4
goto_if_false @LOWR_27508
if 
  Car.DoesHaveHydraulics(69@(43@,7i))
goto_if_false @LOWR_27508
Car.ControlHydraulics(69@(43@,7i), 0.0, 0.0, 0.0, 0.0)

:LOWR_27508
Car.SetStatus(69@(43@,7i), EntityStatus.Simple)
Car.SetHydraulics(69@(43@,7i), False)

:LOWR_27530
Car.MarkAsNoLongerNeeded(69@(43@,7i))

:LOWR_27539
43@ += 1
goto @LOWR_27369

:LOWR_27553
43@ = 0

:LOWR_27560
if 
  22 > 43@
goto_if_false @LOWR_27641
if 
  Char.DoesExist(77@(43@,22i))
goto_if_false @LOWR_27627
if 
  not Char.IsDead(77@(43@,22i))
goto_if_false @LOWR_27618

:LOWR_27618
Char.MarkAsNoLongerNeeded(77@(43@,22i))

:LOWR_27627
43@ += 1
goto @LOWR_27560

:LOWR_27641
if 
  Char.DoesExist(99@)
goto_if_false @LOWR_27662
Char.MarkAsNoLongerNeeded(99@)

:LOWR_27662
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.MarkModelAsNoLongerNeeded(567)
Streaming.MarkModelAsNoLongerNeeded(114)
Streaming.MarkModelAsNoLongerNeeded(115)
Streaming.MarkModelAsNoLongerNeeded(116)
Streaming.MarkModelAsNoLongerNeeded(63)
Streaming.MarkModelAsNoLongerNeeded(41)
Streaming.MarkModelAsNoLongerNeeded(567)
Streaming.MarkModelAsNoLongerNeeded(534)
Streaming.MarkModelAsNoLongerNeeded(567)
Streaming.RemoveAnimation("LOWRIDER")
Blip.Remove(102@)
Hud.DisplayRadar(True)
43@ = Audio.GetBeatTrackStatus()
if 
  not is_int_lvar_equal_to_constant 43@ == 0
goto_if_false @LOWR_27752
Audio.StopBeatTrack

:LOWR_27752
CarGenerator.DontSuppressCarModel(567)
$bd_terminate_script = 1
DecisionMaker.Remove(66@)
DecisionMaker.Remove(67@)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 10---------------
// Originally: Beefy Baron

:ZERO5
gosub @ZERO5_36
if 
  has_deatharrest_been_executed 
goto_if_false @ZERO5_27
gosub @ZERO5_1896

:ZERO5_27
gosub @ZERO5_1993
terminate_this_script 

:ZERO5_36
66@ = 0
$onmission = 1
Text.ClearThisPrintBigNow(TextStyle.Middle)
Stat.RegisterMissionGiven
script_name 'ZERO5'
Player.SetControl($player1, False)
wait 0
48@ = 1
49@ = 0
50@ = 0
51@ = 0
57@ = 0
55@ = 0
56@ = 0
63@ = 0
64@ = 0
52@ = 0
53@ = 0
$timer_time_limit_zero5 = 0
$lowr_track_to_play = 180000
40@ = -2205.44
41@ = 128.99
42@ = 57.33
43@ = 90.0
44@ = -2227.0
45@ = 113.0
46@ = 35.5
Player.ResetNumOfModelsKilled($player1)
TIMERA = 0
69@ = 0
Streaming.RequestModel(464)
Streaming.RequestModel(459)

:ZERO5_271
if or
  not Streaming.HasModelLoaded(464)
  not Streaming.HasModelLoaded(459)
goto_if_false @ZERO5_303
wait 0
goto @ZERO5_271

:ZERO5_303
Hud.DisplayCarNames(False)
Text.LoadMissionText('ZERO2')
World.DisableAllEntryExits(True)

:ZERO5_322
wait 0
if 
  48@ == 1
goto_if_false @ZERO5_351
gosub @ZERO5_408

:ZERO5_351
if 
  52@ == 1
goto_if_false @ZERO5_376
goto @ZERO5_1859

:ZERO5_376
if 
  53@ == 1
goto_if_false @ZERO5_401
goto @ZERO5_1896

:ZERO5_401
goto @ZERO5_322

:ZERO5_408
TIMERB = 0
World.ClearArea(44@, 45@, 46@, 1000.0, True)
35@ = Car.Create(459, -2250.9, 124.6, 28.48)
Car.SetLoadCollisionFlag(35@, False)
Car.OpenDoor(35@, CarDoor.LeftRearDoor)
Car.OpenDoor(35@, CarDoor.RightRearDoor)
Char.WarpIntoCar($scplayer, 35@)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Game.SetPoliceIgnorePlayer($player1, True)
Camera.SetFadingColor(0, 0, 0)
if 
  not Car.IsDead(35@)
goto_if_false @ZERO5_557
Car.SetCoordinates(35@, -2233.9, 122.6, 746.48)
Car.SetHeading(35@, 90.0)
Car.FreezePosition(35@, True)

:ZERO5_557
wait 1000
if 
  not Car.IsDead(35@)
goto_if_false @ZERO5_583
Car.CloseAllDoors(35@)

:ZERO5_583
Streaming.SetAreaVisible(0)
Char.SetHasUsedEntryExit($scplayer, -2240.854, 129.3346, 1.5)
Streaming.LoadScene(40@, 41@, 42@)
Rc.GiveModelToPlayer($player1, 40@, 41@, 42@, 40.09, 464)
34@ = Rc.GetCar($player1)
Car.SetHeading(34@, 90.0)
Rc.SetEnableDetonateOnContact(False)
Rc.SetEnableDetonate(False)
Car.SetHealth(34@, 1000)
Car.SetProofs(34@, False, True, True, False, False)
Hud.SwitchWidescreen(False)
if 
  not Car.IsDead(34@)
goto_if_false @ZERO5_733
Camera.PointAtCar(34@, CameraMode.CamOnAString, SwitchType.JumpCut)
Car.FreezePosition(34@, False)
wait 0
Camera.SetZoom(1)

:ZERO5_733
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:ZERO5_748
if 
  Camera.GetFadingStatus
goto_if_false @ZERO5_772
wait 0
goto @ZERO5_748

:ZERO5_772
Player.SetControl($player1, True)
Hud.DisplayTimerWithString($lowr_track_to_play, TimerDirection.Down, 'ZER2_5')
Hud.DisplayCounterWithString($timer_time_limit_zero5, CounterDisplay.Number, 'ZER2_43')
Text.PrintNow('ZER2_45', 5000, 1)
Game.SetForceRandomCarModel(459)

:ZERO5_832
if 
  57@ <> 1
goto_if_false @ZERO5_1857
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @ZERO5_913
48@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 1
53@ = 0
return 

:ZERO5_913
if 
  0 >= $lowr_track_to_play
goto_if_false @ZERO5_1156
if 
  not Car.IsDead(34@)
goto_if_false @ZERO5_961
Car.SetEngineOn(34@, False)
Car.SetHeavy(34@, True)

:ZERO5_961
Rc.RemoveBuggy
TIMERA = 0
48@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 1
53@ = 0
Text.PrintWithNumberBig('ZER2_43', $timer_time_limit_zero5, 5000, TextStyle.Middle)
Audio.PlayMissionPassedTune(1)
wait 2000
Char.SetHasUsedEntryExit($scplayer, -2241.854, 128.3346, 1.5)
Streaming.LoadScene(-2241.854, 128.3346, 1034.641)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @ZERO5_1120
Char.WarpFromCarToCoord($scplayer, -2220.146, 135.956, 1034.641)
goto @ZERO5_1140

:ZERO5_1120
Char.SetCoordinates($scplayer, -2220.146, 135.956, 1034.641)

:ZERO5_1140
Char.SetHeading($scplayer, 183.6951)
Streaming.SetAreaVisible(6)
return 

:ZERO5_1156
if 
  not Car.IsDead(34@)
goto_if_false @ZERO5_1681
if 
  Player.IsInRemoteMode($player1)
goto_if_false @ZERO5_1674
70@ = Clock.GetGameTimer()
if 
  not Car.Locate3D(34@, 72@, 73@, 74@, 1.5, 1.5, 1.5, False)
goto_if_false @ZERO5_1272
72@, 73@, 74@ = Car.GetCoordinates(34@)
set_lvar_int_to_lvar_int 71@ = 70@
71@ += 4000
64@ = 0

:ZERO5_1272
if 
  Car.Locate3D(34@, 72@, 73@, 74@, 1.5, 1.5, 1.5, False)
goto_if_false @ZERO5_1612
if 
  is_int_lvar_greater_than_int_lvar 70@ > 71@
goto_if_false @ZERO5_1612
if 
  64@ == 0
goto_if_false @ZERO5_1369
Text.PrintHelp('ZER2_4')
64@ = 1

:ZERO5_1369
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @ZERO5_1612
53@ = 1
48@ = 0
Player.SetControl($player1, False)
Text.PrintNow('ZER2_8', 5000, 1)
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Car.SetHealth(34@, 1)
Fx.AddExplosion(72@, 73@, 74@, ExplosionType.Grenade)
Rc.RemoveBuggy
53@ = 1
48@ = 0
Text.PrintNow('ZER2_8', 5000, 1)
wait 2000
Char.SetHasUsedEntryExit($scplayer, -2241.854, 128.3346, 1.5)
Streaming.LoadScene(-2241.854, 128.3346, 1034.641)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @ZERO5_1576
Char.WarpFromCarToCoord($scplayer, -2220.146, 135.956, 1034.641)
goto @ZERO5_1596

:ZERO5_1576
Char.SetCoordinates($scplayer, -2220.146, 135.956, 1034.641)

:ZERO5_1596
Char.SetHeading($scplayer, 183.6951)
Streaming.SetAreaVisible(6)
return 

:ZERO5_1612
37@, 38@, 39@ = Car.GetCoordinates(34@)
36@ = World.GetRandomCarInSphereNoSave(37@, 38@, 39@, 30.0, 459)
if 
  not Car.IsDead(36@)
goto_if_false @ZERO5_1674
Car.SetCruiseSpeed(36@, 10.0)

:ZERO5_1674
goto @ZERO5_1839

:ZERO5_1681
53@ = 1
48@ = 0
Text.PrintNow('ZER2_8', 5000, 1)
Player.SetControl($player1, False)
wait 2000
Char.SetHasUsedEntryExit($scplayer, -2241.854, 128.3346, 1.5)
Streaming.LoadScene(-2241.854, 128.3346, 1034.641)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @ZERO5_1803
Char.WarpFromCarToCoord($scplayer, -2220.146, 135.956, 1034.641)
goto @ZERO5_1823

:ZERO5_1803
Char.SetCoordinates($scplayer, -2220.146, 135.956, 1034.641)

:ZERO5_1823
Char.SetHeading($scplayer, 183.6951)
Streaming.SetAreaVisible(6)
return 

:ZERO5_1839
$timer_time_limit_zero5 = Player.GetNumOfModelsKilled($player1, 459)
goto @ZERO5_832

:ZERO5_1857
return 

:ZERO5_1859
Player.SetControl($player1, True)
Player.ClearWantedLevel($player1)
if 
  not Char.IsDead($scplayer)
goto_if_false @ZERO5_1894
Player.SetControl($player1, True)

:ZERO5_1894
return 

:ZERO5_1896
if 
  not Char.IsDead($scplayer)
goto_if_false @ZERO5_1919
Player.SetControl($player1, True)

:ZERO5_1919
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)

:ZERO5_1935
if 
  3000 > TIMERA
goto_if_false @ZERO5_1991
wait 0
if 
  not Car.IsDead(34@)
goto_if_false @ZERO5_1984
Car.SetForwardSpeed(34@, 0.0)

:ZERO5_1984
goto @ZERO5_1935

:ZERO5_1991
return 

:ZERO5_1993
Camera.ResetNewScriptables
$onmission = 0
Game.SetPoliceIgnorePlayer($player1, False)
Car.MarkAsNoLongerNeeded(35@)
if 
  Player.IsPlaying($player1)
goto_if_false @ZERO5_2076
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @ZERO5_2076
Char.WarpFromCarToCoord($scplayer, -2244.444, 136.8633, 34.3203)
Char.SetHeading($scplayer, 90.0)

:ZERO5_2076
Weather.Release
Player.SetControl($player1, True)
World.DisableAllEntryExits(False)
Rc.RemoveBuggy
Streaming.MarkModelAsNoLongerNeeded(459)
Streaming.MarkModelAsNoLongerNeeded(464)
Hud.ClearTimer($lowr_track_to_play)
Hud.ClearCounter($timer_time_limit_zero5)
$timer_mobile_start = Clock.GetGameTimer()
Hud.DisplayCarNames(True)
Mission.Finish
return 

//-------------Mission 11---------------
// Originally: Big Smoke

:INTRO1
script_name 'INTRO1'
gosub @INTRO1_914
if 
  has_deatharrest_been_executed 
goto_if_false @INTRO1_38
gosub @INTRO1_18053

:INTRO1_38
gosub @INTRO1_18183
terminate_this_script 

:INTRO1_47
switch_start 46@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @INTRO1_912 {caseNum1} 0 {caseLabel1} @INTRO1_110 {caseNum2} 1 {caseLabel2} @INTRO1_212 {caseNum3} 2 {caseLabel3} @INTRO1_314 {caseNum4} 3 {caseLabel4} @INTRO1_570 {caseNum5} 4 {caseLabel5} @INTRO1_628 {caseNum6} 5 {caseLabel6} @INTRO1_774 {caseNum7} 6 {caseLabel7} @INTRO1_854

:INTRO1_110
set_var_text_label s$van_death_counter_zero5[0] = 'INT1_AB'
set_var_text_label s$van_death_counter_zero5[1] = 'INT1_AC'
set_var_text_label s$van_death_counter_zero5[2] = 'INT1_AR'
set_var_text_label s$van_death_counter_zero5[3] = 'INT1_AA'
set_lvar_int_to_constant 93@ = 10048
set_lvar_int_to_constant 94@ = 10070
set_lvar_int_to_constant 95@ = 10071
set_lvar_int_to_constant 96@ = 10047
63@ = 3
goto @INTRO1_912

:INTRO1_212
set_var_text_label s$van_death_counter_zero5[0] = 'INT1_AI'
set_var_text_label s$van_death_counter_zero5[1] = 'INT1_AJ'
set_var_text_label s$van_death_counter_zero5[2] = 'INT1_AK'
set_var_text_label s$van_death_counter_zero5[3] = 'INT1_AQ'
set_lvar_int_to_constant 93@ = 10027
set_lvar_int_to_constant 94@ = 10052
set_lvar_int_to_constant 95@ = 10028
set_lvar_int_to_constant 96@ = 10031
63@ = 3
goto @INTRO1_912

:INTRO1_314
set_var_text_label s$van_death_counter_zero5[0] = 'INT1_GN'
set_var_text_label s$van_death_counter_zero5[1] = 'INT1_GA'
set_var_text_label s$van_death_counter_zero5[2] = 'INT1_GB'
set_var_text_label s$van_death_counter_zero5[3] = 'INT1_GC'
set_var_text_label s$van_death_counter_zero5[4] = 'INT1_GD'
set_var_text_label s$van_death_counter_zero5[5] = 'INT1_GE'
set_var_text_label s$van_death_counter_zero5[6] = 'INT1_GH'
set_var_text_label s$van_death_counter_zero5[7] = 'INT1_GI'
set_var_text_label s$van_death_counter_zero5[8] = 'INT1_GJ'
set_var_text_label s$van_death_counter_zero5[9] = 'INT1_GL'
set_var_text_label s$van_death_counter_zero5[10] = 'INT1_GM'
set_lvar_int_to_constant 93@ = 10026
set_lvar_int_to_constant 94@ = 10044
set_lvar_int_to_constant 95@ = 10007
set_lvar_int_to_constant 96@ = 10008
set_lvar_int_to_constant 97@ = 10045
set_lvar_int_to_constant 98@ = 10009
set_lvar_int_to_constant 99@ = 10046
set_lvar_int_to_constant 100@ = 10010
set_lvar_int_to_constant 101@ = 10068
set_lvar_int_to_constant 102@ = 10024
set_lvar_int_to_constant 103@ = 10025
63@ = 10
goto @INTRO1_912

:INTRO1_570
set_var_text_label s$van_death_counter_zero5[0] = 'INT1_CA'
set_var_text_label s$van_death_counter_zero5[1] = 'INT1_EI'
set_lvar_int_to_constant 93@ = 10034
set_lvar_int_to_constant 94@ = 10019
63@ = 1
goto @INTRO1_912

:INTRO1_628
set_var_text_label s$van_death_counter_zero5[0] = 'INT1_BA'
set_var_text_label s$van_death_counter_zero5[1] = 'INT1_BC'
set_var_text_label s$van_death_counter_zero5[2] = 'INT1_BB'
set_var_text_label s$van_death_counter_zero5[3] = 'INT1_BD'
set_var_text_label s$van_death_counter_zero5[4] = 'INT1_AM'
set_var_text_label s$van_death_counter_zero5[5] = 'INT1_AN'
set_lvar_int_to_constant 93@ = 10032
set_lvar_int_to_constant 94@ = 10004
set_lvar_int_to_constant 95@ = 10033
set_lvar_int_to_constant 96@ = 10005
set_lvar_int_to_constant 97@ = 10002
set_lvar_int_to_constant 98@ = 10029
63@ = 5
goto @INTRO1_912

:INTRO1_774
set_var_text_label s$van_death_counter_zero5[0] = 'INT1_BF'
set_var_text_label s$van_death_counter_zero5[1] = 'INT1_BG'
set_var_text_label s$van_death_counter_zero5[2] = 'INT1_BH'
set_lvar_int_to_constant 93@ = 10053
set_lvar_int_to_constant 94@ = 10054
set_lvar_int_to_constant 95@ = 10055
63@ = 2
goto @INTRO1_912

:INTRO1_854
set_var_text_label s$van_death_counter_zero5[0] = 'INT1_BI'
set_var_text_label s$van_death_counter_zero5[1] = 'INT1_BK'
set_lvar_int_to_constant 93@ = 10011
set_lvar_int_to_constant 94@ = 10072
63@ = 1
goto @INTRO1_912

:INTRO1_912
return 

:INTRO1_914
$onmission = 1
set_lvar_int_to_var_int 65@ = $big_smoke
set_lvar_int_to_var_int 66@ = $ryder
set_lvar_int_to_var_int 67@ = $sweet
set_lvar_int_to_lvar_int 76@ = 34@
set_lvar_int_to_lvar_int 77@ = 36@
set_lvar_int_to_lvar_int 78@ = 35@
79@ = 0
80@ = 0
81@ = 0
83@ = 0
84@ = 0
85@ = 0
58@ = 0
59@ = 0
60@ = 0
86@ = 0
48@ = 0
49@ = 0
$been_in_a_bmx = 0
68@ = 0
55@ = 0
57@ = 0
61@ = 0
62@ = 0
74@ = 0
92@ = 0
45@ = 0
54@ = 0
107@ = 3
115@ = 1
108@ = 1
87@ = 0
Stat.RegisterMissionGiven
Text.LoadMissionText('INTRO1')
Clock.SetTimeOfDay(9, 0)
Char.ClearTasksImmediately($scplayer)
Streaming.SetAreaVisible(3)
Cutscene.Load('INTRO1A')

:INTRO1_1190
if 
  not Cutscene.HasLoaded
goto_if_false @INTRO1_1214
wait 0
goto @INTRO1_1190

:INTRO1_1214
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:INTRO1_1223
if 
  not Cutscene.HasFinished
goto_if_false @INTRO1_1247
wait 0
goto @INTRO1_1223

:INTRO1_1247
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:INTRO1_1260
if 
  Camera.GetFadingStatus
goto_if_false @INTRO1_1284
wait 0
goto @INTRO1_1260

:INTRO1_1284
Cutscene.Clear
Streaming.SetAreaVisible(0)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.2)
Game.EnableAmbientCrime(False)
Streaming.LoadSpecialCharacter(10, 'SMOKE')
Streaming.RequestModel(404)
Streaming.LoadAllModelsNow

:INTRO1_1328
if or
  not Streaming.HasModelLoaded(404)
  not Streaming.HasSpecialCharacterLoaded(10)
goto_if_false @INTRO1_1359
wait 0
goto @INTRO1_1328

:INTRO1_1359
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Char.ClearTasks($scplayer)
Char.ClearTasksImmediately($scplayer)
$big_smoke = Char.Create(PedType.Mission1, 299, 2498.91, -1680.5, 12.37)
Char.SetAnimGroup($big_smoke, "FATMAN")
Char.SetHeading($big_smoke, 90.0)
41@ = Car.Create(404, 2494.91, -1682.17, 12.32)
Streaming.MarkModelAsNoLongerNeeded(404)
Car.ChangeColor(41@, 0, 0)
Car.SetHeading(41@, 90.0)
Char.SetCoordinates($scplayer, 2495.59, -1686.96, 12.51)
Task.StandStill($scplayer, 1)
Char.SetHeading($scplayer, 32.0)
Char.ClearTasksImmediately($scplayer)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger($big_smoke, 41@, 10000, 0)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsDriver($scplayer, 41@, 10000)
World.ClearArea(2494.91, -1682.17, 12.32, 50.0, True)
Streaming.LoadSceneInDirection(2495.59, -1686.96, 12.51, 32.2)
Streaming.SetAreaVisible(0)
Audio.SetRadioChannel(RadioChannel.BounceFM)
86@ = 0
75@ = 0
109@ = 0
46@ = 0
gosub @INTRO1_47
Camera.DoFade(1500, Fade.In)
Camera.SetFixedPosition(2498.947, -1690.0, 14.4011, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2498.405, -1689.177, 14.2309, SwitchType.JumpCut)
skip_cutscene_start_internal @INTRO1_2033

:INTRO1_1703
if 
  86@ <> 2
goto_if_false @INTRO1_1739
wait 0
gosub @INTRO1_20347
goto @INTRO1_1703

:INTRO1_1739
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2498.947, -1690.0, 14.4011, 2501.236, -1678.23, 17.5252, 9000, True)
Camera.SetVectorTrack(2498.405, -1689.177, 14.2309, 2500.238, -1678.188, 17.4907, 9000, True)
if 
  not Car.IsDead(41@)
goto_if_false @INTRO1_1946
if 
  not Char.IsDead($big_smoke)
goto_if_false @INTRO1_1946

:INTRO1_1855
if or
  not Char.IsInCar($scplayer, 41@)
  not Char.IsInCar($big_smoke, 41@)
goto_if_false @INTRO1_1946
wait 0
if 
  Car.IsDead(41@)
goto_if_false @INTRO1_1909
goto @INTRO1_18053

:INTRO1_1909
if 
  Char.IsDead($big_smoke)
goto_if_false @INTRO1_1932
goto @INTRO1_18053

:INTRO1_1932
gosub @INTRO1_20347
goto @INTRO1_1855

:INTRO1_1946
if 
  not Car.IsDead(41@)
goto_if_false @INTRO1_1997
Task.CarDriveToCoord($scplayer, 41@, 2414.68, -1656.38, 12.38, 10.0, DriveMode.Normal, 404, DrivingMode.AvoidCars)

:INTRO1_1997
if 
  86@ <> 4
goto_if_false @INTRO1_2033
wait 0
gosub @INTRO1_20347
goto @INTRO1_1997

:INTRO1_2033
skip_cutscene_end 
Text.ClearPrints
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)
Text.PrintBig('FUNERAL', 1000, TextStyle.BottomRight)

:INTRO1_2068
if 
  Camera.GetFadingStatus
goto_if_false @INTRO1_2092
wait 0
goto @INTRO1_2068

:INTRO1_2092
Camera.ResetNewScriptables
Char.Delete($big_smoke)
Streaming.UnloadSpecialCharacter(10)
if 
  not Car.IsDead(41@)
goto_if_false @INTRO1_2227
Char.ClearTasksImmediately($scplayer)
Car.SetCoordinates(41@, 956.6, -1099.47, 22.73)
Car.SetHeading(41@, 0.0)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO1_2197
Char.WarpFromCarToCoord($scplayer, 910.78, -1075.26, 23.29)
goto @INTRO1_2217

:INTRO1_2197
Char.SetCoordinates($scplayer, 910.78, -1075.26, 23.29)

:INTRO1_2217
Char.SetHeading($scplayer, 265.0)

:INTRO1_2227
Player.MakeSafeForCutscene($player1)
Streaming.LoadSceneInDirection(910.78, -1075.26, 23.29, 265.0)
Cutscene.Load('INTRO1B')

:INTRO1_2265
if 
  not Cutscene.HasLoaded
goto_if_false @INTRO1_2289
wait 0
goto @INTRO1_2265

:INTRO1_2289
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:INTRO1_2298
if 
  not Cutscene.HasFinished
goto_if_false @INTRO1_2322
wait 0
goto @INTRO1_2298

:INTRO1_2322
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:INTRO1_2335
if 
  Camera.GetFadingStatus
goto_if_false @INTRO1_2359
wait 0
goto @INTRO1_2335

:INTRO1_2359
Cutscene.Clear
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.2)
Streaming.LoadSpecialCharacter(1, 'SWEET')
Streaming.LoadSpecialCharacter(3, 'RYDER2')
Streaming.LoadSpecialCharacter(10, 'SMOKE')
Streaming.RequestModel(404)
Streaming.RequestModel(481)
Streaming.RequestModel(352)
Streaming.RequestModel(412)
Streaming.RequestModel(102)
Streaming.RequestModel(346)
Streaming.RequestCarRecording(201)
Streaming.LoadAllModelsNow

:INTRO1_2450
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasSpecialCharacterLoaded(3)
  not Streaming.HasSpecialCharacterLoaded(10)
  not Streaming.HasModelLoaded(404)
  not Streaming.HasModelLoaded(481)
  not Streaming.HasModelLoaded(412)
goto_if_false @INTRO1_2499
wait 0
goto @INTRO1_2450

:INTRO1_2499
if or
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(102)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasCarRecordingBeenLoaded(201)
goto_if_false @INTRO1_2540
wait 0
goto @INTRO1_2499

:INTRO1_2540
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.SetNearClip(0.2)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
World.ClearArea(943.71, -1103.5, 22.85, 70.0, True)
Streaming.LoadSceneInDirection(943.71, -1103.5, 22.85, 90.0)
51@ = Car.Create(412, 1038.5, -954.9, 41.5)
CarGenerator.SuppressCarModel(412)
Car.ChangeColor(51@, 22, 22)
Car.SetLoadCollisionFlag(51@, False)
50@ = Char.CreateInsideCar(51@, PedType.Mission2, 102)
52@ = Char.CreateAsPassenger(51@, PedType.Mission2, 102, 0)
110@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Char.SetAccuracy(50@, 25)
Char.SetAccuracy(52@, 25)
Char.SetShootRate(50@, 30)
Char.SetShootRate(52@, 30)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(52@, RelationshipType.Hate, PedType.Player1)
Streaming.MarkModelAsNoLongerNeeded(102)
Char.GiveWeapon(52@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(52@, WeaponType.MicroUzi)
Char.GiveWeapon(50@, WeaponType.MicroUzi, 30000)
Streaming.MarkModelAsNoLongerNeeded(352)
Char.SetCurrentWeapon(50@, WeaponType.MicroUzi)
Car.LockDoors(51@, CarLock.Locked)
Car.SetHeading(51@, 100.8)
Car.SetHealth(51@, 2000)
37@ = Car.Create(481, 971.8, -1108.0, 23.1)
Car.SetHealth(37@, 2000)
Car.SetHeading(37@, 140.0)
Car.SetCanBurstTires(37@, False)
76@ = Car.Create(481, 971.4, -1110.5, 23.3)
Car.SetHealth(76@, 2000)
Car.SetHeading(76@, 110.0)
Car.SetCanBurstTires(76@, False)
Car.SetStraightLineDistance(76@, 30)
77@ = Car.Create(481, 971.8, -1115.5, 23.1)
Car.SetHealth(77@, 2000)
Car.SetHeading(77@, 140.0)
Car.SetCanBurstTires(77@, False)
Car.SetStraightLineDistance(77@, 30)
78@ = Car.Create(481, 971.8, -1113.0, 23.1)
Car.SetHealth(78@, 2000)
Car.SetHeading(78@, 140.0)
Car.SetCanBurstTires(78@, False)
Car.SetStraightLineDistance(78@, 30)
Streaming.MarkModelAsNoLongerNeeded(481)
if 
  not Car.IsDead(41@)
goto_if_false @INTRO1_3087
Player.SetControl($player1, False)
Car.SetCanBeDamaged(41@, True)
Car.SetCoordinates(41@, 956.6, -1099.47, 22.73)
Car.SetHeading(41@, 0.0)

:INTRO1_3087
Char.ClearTasksImmediately($scplayer)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO1_3135
Char.WarpFromCarToCoord($scplayer, 940.0, -1103.5, 22.85)
goto @INTRO1_3155

:INTRO1_3135
Char.SetCoordinates($scplayer, 940.0, -1103.5, 22.85)

:INTRO1_3155
Char.SetHeading($scplayer, 272.5)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Task.GoStraightToCoord($scplayer, 954.0, -1103.5, 22.85, MoveState.Walk, 20000)
65@ = Char.Create(PedType.Mission1, 299, 942.79, -1104.41, 22.85)
Char.SetAnimGroup(65@, "FATMAN")
Char.SetHealth(65@, 2000)
Char.SetHeading(65@, 184.0)
Char.SetNeverTargeted(65@, True)
Char.SetSuffersCriticalHits(65@, False)
Char.SetCantBeDraggedOut(65@, True)
Char.SetStayInCarWhenJacked(65@, True)
Task.GoStraightToCoord(65@, 954.0, -1104.41, 22.85, MoveState.Walk, 20000)
Char.SetDecisionMaker(65@, 110@)
Char.SetCanBeKnockedOffBike(65@, True)
66@ = Char.Create(PedType.Mission1, 292, 942.9, -1105.79, 22.85)
Char.SetAnimGroup(66@, "GANG1")
Char.SetHealth(66@, 2000)
Char.SetHeading(66@, 50.0)
Char.SetNeverTargeted(66@, True)
Char.SetSuffersCriticalHits(66@, False)
Char.SetCantBeDraggedOut(66@, True)
Char.SetStayInCarWhenJacked(66@, True)
Task.GoStraightToCoord(66@, 954.0, -1105.79, 22.85, MoveState.Walk, 25000)
Char.SetDecisionMaker(66@, 110@)
Char.SetCanBeKnockedOffBike(66@, True)
67@ = Char.Create(PedType.Mission1, 290, 942.96, -1102.0, 22.85)
Char.SetAnimGroup(67@, "GANG2")
Char.SetHealth(67@, 2000)
Char.SetHeading(67@, 96.0)
Char.SetNeverTargeted(67@, True)
Char.SetSuffersCriticalHits(67@, False)
Char.SetCantBeDraggedOut(67@, True)
Char.SetStayInCarWhenJacked(67@, True)
Task.GoStraightToCoord(67@, 954.0, -1102.0, 22.85, MoveState.Walk, 20000)
Char.SetDecisionMaker(67@, 110@)
Char.SetCanBeKnockedOffBike(67@, True)
39@ = Blip.AddForChar(67@)
Blip.SetAsFriendly(39@, True)
Blip.Remove(39@)
TIMERB = 0

:INTRO1_3601
if 
  900 > TIMERB
goto_if_false @INTRO1_3631
wait 0
goto @INTRO1_3601

:INTRO1_3631
Streaming.LoadSceneInDirection(940.0, -1103.5, 22.85, 272.5)
Camera.DoFade(500, Fade.In)
World.ClearArea(949.8, -1100.3, 23.0, 500.0, True)
Camera.SetFixedPosition(947.9119, -1103.912, 23.4476, 0.0, 0.0, 0.0)
Camera.PointAtPoint(946.9478, -1103.822, 23.6977, SwitchType.JumpCut)
86@ = 0
75@ = 0
109@ = 0
46@ = 1
gosub @INTRO1_47
91@ = 0
skip_cutscene_start_internal @INTRO1_5496
TIMERB = 0

:INTRO1_3791
if 
  3300 > TIMERB
goto_if_false @INTRO1_3821
wait 0
goto @INTRO1_3791

:INTRO1_3821
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_3877
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_3877
if 
  Streaming.HasCarRecordingBeenLoaded(201)
goto_if_false @INTRO1_3877
Car.StartPlayback(51@, 201)

:INTRO1_3877
if 
  not Car.IsDead(41@)
goto_if_false @INTRO1_4028
if 
  not Char.IsDead(52@)
goto_if_false @INTRO1_3960
if 
  Char.IsInAnyCar(52@)
goto_if_false @INTRO1_3960
Task.DriveBy(52@, -1, -1, 952.92, -1102.99, 22.85, 100.0, DriveByType.AiSide, True, 90)

:INTRO1_3960
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_4028
if 
  Char.IsInAnyCar(50@)
goto_if_false @INTRO1_4028
Task.DriveBy(50@, -1, 41@, 0.0, 0.0, 0.0, 100.0, DriveByType.FixedLeft, False, 90)

:INTRO1_4028
TIMERB = 0

:INTRO1_4035
if 
  1500 > TIMERB
goto_if_false @INTRO1_4065
wait 0
goto @INTRO1_4035

:INTRO1_4065
Camera.ResetNewScriptables
Camera.SetFixedPosition(951.3326, -1099.652, 25.3079, 0.0, 0.0, 0.0)
Camera.PointAtPoint(951.9009, -1100.452, 25.1184, SwitchType.JumpCut)
TIMERB = 0

:INTRO1_4125
if 
  2500 > TIMERB
goto_if_false @INTRO1_4155
wait 0
goto @INTRO1_4125

:INTRO1_4155
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_4203
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_4203
Char.ClearLookAt(66@)
Task.LookAtVehicle(66@, 51@, 4000)

:INTRO1_4203
TIMERB = 0

:INTRO1_4210
if 
  1000 > TIMERB
goto_if_false @INTRO1_4240
wait 0
goto @INTRO1_4210

:INTRO1_4240
if 
  86@ <> 1
goto_if_false @INTRO1_4742
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_4510
if 
  75@ == 2
goto_if_false @INTRO1_4510
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_4426
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_4426
TIMERB = 0
Task.LookAtVehicle($scplayer, 51@, 4000)
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_4387
Char.ClearLookAt(65@)
Task.LookAtVehicle(65@, 51@, 4000)

:INTRO1_4387
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_4419
Char.ClearLookAt(67@)
Task.LookAtVehicle(67@, 51@, 4000)

:INTRO1_4419
109@ = 1

:INTRO1_4426
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(951.3326, -1099.652, 25.3079, 951.3326, -1099.652, 25.3079, 7500, True)
Camera.SetVectorTrack(951.9009, -1100.452, 25.1184, 951.9258, -1098.847, 25.3253, 7500, True)

:INTRO1_4510
if 
  TIMERB > 1000
goto_if_false @INTRO1_4735
if 
  109@ == 1
goto_if_false @INTRO1_4735
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_4728
Task.DiveAndGetUp(66@, 1.0, -3.0, 1000)
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_4654
Char.GiveWeapon(65@, WeaponType.Pistol, 50)
Char.SetHeading(65@, 270.0)
Char.SetStayInSamePlace(65@, True)
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_4654
Task.ToggleDuck(65@, True)
Task.KillCharOnFoot(65@, 50@)

:INTRO1_4654
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_4710
Char.GiveWeapon(67@, WeaponType.Pistol, 50)
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_4710
Task.KillCharOnFootWhileDucking(67@, 50@, 4, 2000, 100)

:INTRO1_4710
Task.DiveAndGetUp($scplayer, -1.5, -1.0, 1000)

:INTRO1_4728
109@ = 2

:INTRO1_4735
goto @INTRO1_4240

:INTRO1_4742
TIMERB = 0

:INTRO1_4749
if 
  1000 > TIMERB
goto_if_false @INTRO1_4779
wait 0
goto @INTRO1_4749

:INTRO1_4779
if 
  not Car.IsDead(41@)
goto_if_false @INTRO1_4800
Car.ExplodeInCutscene(41@)

:INTRO1_4800
TIMERB = 0
109@ = 0

:INTRO1_4814
if 
  86@ <> 2
goto_if_false @INTRO1_4876
wait 0
gosub @INTRO1_20347
if 
  TIMERB > 1600
goto_if_false @INTRO1_4869
goto @INTRO1_4876

:INTRO1_4869
goto @INTRO1_4814

:INTRO1_4876
World.ClearArea(956.09, -1105.68, 22.75, 50.0, True)
if 
  not Char.IsDead(52@)
goto_if_false @INTRO1_4955
Char.ClearTasks(52@)
Task.PlayAnim(52@, "CAR_SIT", "PED", 4.0, False, False, False, False, -1)

:INTRO1_4955
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 945.7507, -1103.549, 23.0477)
Char.SetHeading($scplayer, 252.8)
Task.StandStill($scplayer, 1)
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_5095
if 
  not Car.IsDead(76@)
goto_if_false @INTRO1_5095
Char.SetStayInSamePlace(65@, False)
Task.StandStill(65@, 1)
Char.ClearLookAt(65@)
Task.ToggleDuck(65@, False)
Char.SetCoordinates(65@, 957.0725, -1106.504, 22.7146)
Char.SetHeading(65@, 251.1192)
Task.EnterCarAsDriver(65@, 76@, -1)

:INTRO1_5095
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_5156
if 
  not Car.IsDead(77@)
goto_if_false @INTRO1_5156
Char.SetStayInSamePlace(66@, False)
Task.StandStill(66@, 1)
Char.ClearLookAt(66@)
Task.EnterCarAsDriver(66@, 77@, -1)

:INTRO1_5156
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_5237
if 
  not Car.IsDead(78@)
goto_if_false @INTRO1_5237
Char.SetStayInSamePlace(67@, False)
Task.StandStill(67@, 1)
Char.ClearLookAt(67@)
Char.SetCoordinates(67@, 957.12, -1104.4, 22.7146)
Task.EnterCarAsDriver(67@, 78@, -1)

:INTRO1_5237
wait 100
Camera.ResetNewScriptables
Camera.SetFixedPosition(953.489, -1100.465, 24.8611, 0.0, 0.0, 0.0)
Camera.PointAtPoint(954.1205, -1101.236, 24.7823, SwitchType.JumpCut)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10030)
109@ = 0

:INTRO1_5308
if 
  86@ <> 3
goto_if_false @INTRO1_5417
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_5410
if 
  75@ == 2
goto_if_false @INTRO1_5410
Char.ClearTasksImmediately($scplayer)
Task.GoStraightToCoord($scplayer, 971.181, -1108.193, 22.8672, MoveState.Run, 10000)
109@ = 1

:INTRO1_5410
goto @INTRO1_5308

:INTRO1_5417
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @INTRO1_5443
wait 0
goto @INTRO1_5417

:INTRO1_5443
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('INT1_AP', 10000, 1)

:INTRO1_5463
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @INTRO1_5489
wait 0
goto @INTRO1_5463

:INTRO1_5489
91@ = 1

:INTRO1_5496
skip_cutscene_end 
if 
  91@ == 0
goto_if_false @INTRO1_5778
Text.ClearPrints
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:INTRO1_5533
if 
  Camera.GetFadingStatus
goto_if_false @INTRO1_5557
wait 0
goto @INTRO1_5533

:INTRO1_5557
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_5626
if 
  not Car.IsDead(76@)
goto_if_false @INTRO1_5626
Char.SetCoordinates(65@, 969.2067, -1110.3, 22.8672)
Char.SetHeading(65@, 273.1099)
Task.ToggleDuck(65@, False)

:INTRO1_5626
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_5688
if 
  not Car.IsDead(77@)
goto_if_false @INTRO1_5688
Char.SetCoordinates(66@, 969.1187, -1116.561, 22.8552)
Char.SetHeading(66@, 298.5085)

:INTRO1_5688
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_5755
if 
  not Car.IsDead(78@)
goto_if_false @INTRO1_5755
Char.ClearLookAt(67@)
Char.SetCoordinates(67@, 969.436, -1113.775, 22.8593)
Char.SetHeading(67@, 267.2885)

:INTRO1_5755
Camera.ResetNewScriptables
if 
  not Car.IsDead(41@)
goto_if_false @INTRO1_5778
Car.ExplodeInCutscene(41@)

:INTRO1_5778
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_5827
if 
  not Car.IsDead(76@)
goto_if_false @INTRO1_5827
Task.ToggleDuck(65@, False)
Task.EnterCarAsDriver(65@, 76@, -1)

:INTRO1_5827
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_5869
if 
  not Car.IsDead(77@)
goto_if_false @INTRO1_5869
Task.EnterCarAsDriver(66@, 77@, -1)

:INTRO1_5869
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_5916
if 
  not Car.IsDead(78@)
goto_if_false @INTRO1_5916
Char.ClearLookAt(67@)
Task.EnterCarAsDriver(67@, 78@, -1)

:INTRO1_5916
Car.MarkAsNoLongerNeeded(41@)
Streaming.MarkModelAsNoLongerNeeded(404)
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_5949
Char.RemoveWeapon(65@, WeaponType.Pistol)

:INTRO1_5949
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_5972
Char.RemoveWeapon(67@, WeaponType.Pistol)

:INTRO1_5972
Streaming.MarkModelAsNoLongerNeeded(346)
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_6005
Car.StopPlayback(51@)
goto @INTRO1_6010

:INTRO1_6005
Car.StopPlayback(51@)

:INTRO1_6010
Streaming.RemoveCarRecording(201)
wait 100
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Char.ClearLookAt($scplayer)
Char.HideWeaponForScriptedCutscene($scplayer, False)
if 
  not Car.IsDead(37@)
goto_if_false @INTRO1_6077
43@ = Blip.AddForCar(37@)
Blip.SetAsFriendly(43@, True)

:INTRO1_6077
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_6138
116@, 117@, 118@ = Car.GetCoordinates(51@)
118@ -= 50.0
Car.SetCoordinates(51@, 116@, 117@, 118@)
Car.FreezePositionAndDontLoadCollision(51@, True)

:INTRO1_6138
if 
  91@ == 0
goto_if_false @INTRO1_6235
Camera.SetFadingColor(0, 0, 0)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 970.0873, -1107.776, 22.8672)
Char.SetHeading($scplayer, 254.4577)
wait 1000
Camera.DoFade(500, Fade.In)

:INTRO1_6211
if 
  Camera.GetFadingStatus
goto_if_false @INTRO1_6235
wait 0
goto @INTRO1_6211

:INTRO1_6235
82@ = Sequence.Open()
Task.CarDriveToCoord(-1, -1, 962.5424, -1128.6, 22.6656, 8.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 1036.603, -1148.943, 22.6562, 16.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 1325.583, -1150.183, 22.6484, 23.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 1644.773, -1051.334, 22.8984, 23.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Sequence.Close(82@)
72@ = Sequence.Open()
Task.CarDriveToCoord(-1, -1, 1780.85, -1111.48, 23.08, 21.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 1786.54, -1191.3, 22.95, 20.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 1798.67, -1270.41, 12.47, 19.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 1891.0, -1347.78, 12.54, 21.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 1959.12, -1450.1, 12.45, 21.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 1987.61, -1516.69, 2.39, 21.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 2493.82, -1669.91, 12.8, 25.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Sequence.Close(72@)
111@ = Sequence.Open()
Task.CarDriveToCoord(-1, -1, 1780.85, -1111.48, 23.08, 20.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 1784.54, -1191.3, 22.95, 19.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 1798.67, -1270.41, 12.47, 19.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 1891.0, -1347.78, 12.54, 20.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 1959.12, -1450.1, 12.45, 20.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 1987.61, -1516.69, 2.39, 20.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 2493.82, -1669.91, 12.8, 24.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Sequence.Close(111@)
if 
  Car.IsDead(37@)
goto_if_false @INTRO1_6898
Text.PrintNow('INT2_F4', 10000, 1)
goto @INTRO1_18053

:INTRO1_6898
75@ = 0
86@ = 3

:INTRO1_6912
if 
  86@ <> 4
goto_if_false @INTRO1_6987
wait 0
gosub @INTRO1_20347
gosub @INTRO1_18455
gosub @INTRO1_20023
if 
  45@ == 1
goto_if_false @INTRO1_6980
goto @INTRO1_18053

:INTRO1_6980
goto @INTRO1_6912

:INTRO1_6987
Text.PrintNow('INTRO2E', 10000, 1)
Streaming.RequestAnimation("MISC")
$blob_flag = 1
TIMERA = 0
if 
  Char.IsDead(67@)
goto_if_false @INTRO1_7064
Text.PrintNow('INT2_F2', 10000, 1)
goto @INTRO1_18053

:INTRO1_7064
92@ = 0
114@ = 0
86@ = 0
75@ = 0
109@ = 0
46@ = 4
gosub @INTRO1_47

:INTRO1_7113
if or
  not Char.LocateAnyMeans3D($scplayer, 1644.773, -1051.334, 22.8984, 10.0, 12.0, 20.0, False)
  not Char.LocateAnyMeans3D(67@, 1644.773, -1051.334, 22.8984, 10.0, 12.0, 20.0, False)
goto_if_false @INTRO1_9043
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @INTRO1_7244
Char.SetCoordinates($scplayer, 2473.692, -1684.215, 12.4625)
goto @INTRO1_18071

:INTRO1_7244
gosub @INTRO1_18455
gosub @INTRO1_20023
if 
  not Car.IsDead(37@)
goto_if_false @INTRO1_7304
if 
  Char.IsInCar($scplayer, 37@)
goto_if_false @INTRO1_7304
Text.ClearThisPrint('INTRO2E')

:INTRO1_7304
if 
  45@ == 1
goto_if_false @INTRO1_7329
goto @INTRO1_18053

:INTRO1_7329
if 
  92@ == 0
goto_if_false @INTRO1_7387
if 
  TIMERA > 6000
goto_if_false @INTRO1_7387
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
92@ = 1

:INTRO1_7387
if 
  68@ == 0
goto_if_false @INTRO1_7847
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_7840
if 
  not Char.LocateAnyMeans3D($scplayer, 949.4, -1102.1, 23.2, 50.0, 60.0, 25.0, False)
goto_if_false @INTRO1_7840
Car.SetCoordinates(51@, 1079.15, -1084.73, 25.43)
Car.SetHeading(51@, 175.95)
Car.FreezePositionAndDontLoadCollision(51@, False)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO1_7699
if 
  not Char.IsDead(52@)
goto_if_false @INTRO1_7595
if 
  Char.IsInAnyCar(52@)
goto_if_false @INTRO1_7595
Char.ClearTasks(52@)
Task.DriveBy(52@, $scplayer, -1, 0.0, 0.0, 0.0, 5000.0, DriveByType.AiSide, True, 40)

:INTRO1_7595
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO1_7692
69@ = Char.StoreCarIsIn($scplayer)
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_7692
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_7692
Char.ClearTasks(50@)
if 
  Char.IsInAnyCar(50@)
goto_if_false @INTRO1_7692
Task.CarMission(50@, 51@, 69@, CarMission.EscortLeft, 30.0, DrivingMode.AvoidCars)

:INTRO1_7692
goto @INTRO1_7833

:INTRO1_7699
122@, 123@, 124@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, -4.0, 0.0)
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_7833
53@ = Char.GetScriptTaskStatus(50@, 1489)
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_7833
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_7833
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_7833
Task.CarDriveToCoord(50@, 51@, 122@, 123@, 124@, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:INTRO1_7833
68@ = 1

:INTRO1_7840
goto @INTRO1_8678

:INTRO1_7847
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_8600
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_8541
if 
  not Char.IsDead(52@)
goto_if_false @INTRO1_8475
125@, 126@, 127@ = Char.GetCoordinates($scplayer)
if and
  not Car.Locate2D(51@, 125@, 126@, 50.0, 50.0, False)
  not Car.IsOnScreen(51@)
goto_if_false @INTRO1_8044
Char.ClearTasks(50@)
116@, 117@, 118@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, -40.0, 0.0)
119@, 120@, 121@ = Path.GetClosestCarNode(116@, 117@, 118@)
Car.SetCoordinates(51@, 119@, 120@, 121@)
Car.TurnToFaceCoord(51@, 116@, 117@)
Car.SetForwardSpeed(51@, 20.0)
goto @INTRO1_8468

:INTRO1_8044
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO1_8253
53@ = Char.GetScriptTaskStatus(50@, 1761)
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_8149
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO1_8149
69@ = Char.StoreCarIsIn($scplayer)
if 
  Char.IsInAnyCar(50@)
goto_if_false @INTRO1_8149
Task.CarMission(50@, 51@, 69@, CarMission.EscortLeft, 30.0, DrivingMode.AvoidCars)

:INTRO1_8149
if 
  not Char.IsDead(52@)
goto_if_false @INTRO1_8246
if 
  Char.IsInAnyCar(52@)
goto_if_false @INTRO1_8246
53@ = Char.GetScriptTaskStatus(52@, 1811)
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_8246
Task.DriveBy(52@, $scplayer, -1, 0.0, 0.0, 0.0, 5000.0, DriveByType.AiSide, True, 40)

:INTRO1_8246
goto @INTRO1_8468

:INTRO1_8253
122@, 123@, 124@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, -4.0, 0.0)
53@ = Char.GetScriptTaskStatus(50@, 1489)
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_8371
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_8371
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_8371
Task.CarDriveToCoord(50@, 51@, 122@, 123@, 124@, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:INTRO1_8371
if 
  not Char.IsDead(52@)
goto_if_false @INTRO1_8468
if 
  Char.IsInAnyCar(52@)
goto_if_false @INTRO1_8468
53@ = Char.GetScriptTaskStatus(52@, 1811)
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_8468
Task.DriveBy(52@, $scplayer, -1, 0.0, 0.0, 0.0, 5000.0, DriveByType.AiSide, True, 40)

:INTRO1_8468
goto @INTRO1_8534

:INTRO1_8475
if 
  114@ == 0
goto_if_false @INTRO1_8534
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_8534
Char.ClearTasks(50@)
Task.LeaveAnyCar(50@)
Task.KillCharOnFoot(50@, $scplayer)
114@ = 1

:INTRO1_8534
goto @INTRO1_8600

:INTRO1_8541
if 
  114@ == 0
goto_if_false @INTRO1_8600
if 
  not Char.IsDead(52@)
goto_if_false @INTRO1_8600
Char.ClearTasks(52@)
Task.LeaveAnyCar(52@)
Task.KillCharOnFoot(52@, $scplayer)
114@ = 1

:INTRO1_8600
if 
  Char.IsInCar($scplayer, 37@)
goto_if_false @INTRO1_8678
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_8678
if 
  Char.LocateAnyMeansChar3D($scplayer, 67@, 20.0, 20.0, 10.0, False)
goto_if_false @INTRO1_8678
gosub @INTRO1_20347

:INTRO1_8678
if 
  Char.IsInModel($scplayer, 481)
goto_if_false @INTRO1_8919
if 
  $been_in_a_bmx == 0
goto_if_false @INTRO1_8747
Text.PrintHelp('INTRO2C')
TIMERA = 0
$been_in_a_bmx = 1
goto @INTRO1_8919

:INTRO1_8747
if 
  $been_in_a_bmx == 1
goto_if_false @INTRO1_8809
if 
  TIMERA > 10000
goto_if_false @INTRO1_8809
Text.PrintHelp('INTRO2D')
TIMERA = 0
$been_in_a_bmx = 2

:INTRO1_8809
if 
  $been_in_a_bmx == 2
goto_if_false @INTRO1_8864
if 
  TIMERA > 20000
goto_if_false @INTRO1_8864
Text.PrintHelp('HELP3B')
$been_in_a_bmx = 3

:INTRO1_8864
if 
  $been_in_a_bmx == 3
goto_if_false @INTRO1_8919
if 
  TIMERA > 28000
goto_if_false @INTRO1_8919
Text.PrintHelp('HELP3B2')
$been_in_a_bmx = 4

:INTRO1_8919
if 
  Char.IsDead(65@)
goto_if_false @INTRO1_8958
Text.PrintNow('INT2_F1', 10000, 1)
goto @INTRO1_18053

:INTRO1_8958
if 
  Char.IsDead(66@)
goto_if_false @INTRO1_8997
Text.PrintNow('INT2_F3', 10000, 1)
goto @INTRO1_18053

:INTRO1_8997
if 
  Char.IsDead(67@)
goto_if_false @INTRO1_9036
Text.PrintNow('INT2_F2', 10000, 1)
goto @INTRO1_18053

:INTRO1_9036
goto @INTRO1_7113

:INTRO1_9043
113@ = 0
Camera.DoFade(500, Fade.Out)

:INTRO1_9057
if 
  Camera.GetFadingStatus
goto_if_false @INTRO1_9081
wait 0
goto @INTRO1_9057

:INTRO1_9081
Camera.SetFixedPosition(1647.208, -1085.232, 24.1633, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1646.354, -1084.712, 24.164, SwitchType.JumpCut)
Player.SetControl($player1, False)
Streaming.LoadSceneInDirection(1637.642, -1063.702, 22.8984, 152.0807)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)

:INTRO1_9169
if 
  not Streaming.HasAnimationLoaded("MISC")
goto_if_false @INTRO1_9213
wait 0
Streaming.RequestAnimation("MISC")
Camera.DoFade(0, Fade.Out)
goto @INTRO1_9169

:INTRO1_9213
107@ = 2
if 
  Car.IsDead(51@)
goto_if_false @INTRO1_9257
113@ = 1
107@ = 3
goto @INTRO1_9297

:INTRO1_9257
if or
  Car.IsInWater(51@)
  Char.IsDead(50@)
  Char.IsDead(52@)
goto_if_false @INTRO1_9297
113@ = 1
107@ = 3

:INTRO1_9297
Path.SwitchPedRoadsOff(1782.802, -1203.497, 0.0, 1788.273, -1236.15, 20.0)
Camera.SetNearClip(0.2)
86@ = 0
75@ = 0
109@ = 0
46@ = 3
gosub @INTRO1_47
if 
  not Car.IsDead(78@)
goto_if_false @INTRO1_9745
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_9745
Char.FreezePositionAndDontLoadCollision(67@, False)
Car.FreezePositionAndDontLoadCollision(78@, False)
if 
  not Char.IsInCar(67@, 78@)
goto_if_false @INTRO1_9444
Char.WarpIntoCar(67@, 78@)

:INTRO1_9444
World.ClearArea(1644.47, -1072.658, 22.9062, 4.0, True)
if 
  113@ == 0
goto_if_false @INTRO1_9710
Car.SetCoordinates(78@, 1644.47, -1072.658, 22.9062)
Car.SetHeading(78@, 170.0)
Task.CarDriveToCoord(67@, 78@, 1540.298, -1159.188, 22.9062, 20.0, DriveMode.Normal, 481, DrivingMode.AvoidCars)
Car.SetForwardSpeed(78@, 10.0)
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_9703
World.ClearArea(1637.08, -1061.001, 22.9114, 4.0, True)
Car.SetCoordinates(51@, 1637.08, -1061.001, 22.9114)
Car.SetHeading(51@, 182.2789)
Car.SetForwardSpeed(51@, 5.0)
if 
  not Char.IsDead(52@)
goto_if_false @INTRO1_9662
Char.ClearTasks(52@)

:INTRO1_9662
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_9703
Char.ClearTasks(50@)
Task.CarMission(50@, 51@, 78@, CarMission.EscortLeft, 40.0, DrivingMode.AvoidCars)

:INTRO1_9703
goto @INTRO1_9740

:INTRO1_9710
Car.SetCoordinates(78@, 1638.166, -1056.298, 22.9062)
Car.SetHeading(78@, 272.6299)

:INTRO1_9740
Blip.Remove(39@)

:INTRO1_9745
World.ClearArea(1638.712, -1050.319, 22.8984, 4.0, True)
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_9896
if 
  not Car.IsDead(76@)
goto_if_false @INTRO1_9896
Char.FreezePositionAndDontLoadCollision(65@, False)
Car.FreezePositionAndDontLoadCollision(76@, False)
if 
  not Char.IsInCar(65@, 76@)
goto_if_false @INTRO1_9842
Char.WarpIntoCar(65@, 76@)

:INTRO1_9842
World.ClearArea(1640.649, -1055.473, 22.9062, 4.0, True)
Car.SetCoordinates(76@, 1640.649, -1055.473, 22.9062)
Car.SetHeading(76@, 260.0)

:INTRO1_9896
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_10023
if 
  not Car.IsDead(77@)
goto_if_false @INTRO1_10023
Char.FreezePositionAndDontLoadCollision(66@, False)
Car.FreezePositionAndDontLoadCollision(77@, False)
if 
  not Char.IsInCar(66@, 77@)
goto_if_false @INTRO1_9969
Char.WarpIntoCar(66@, 77@)

:INTRO1_9969
World.ClearArea(1644.913, -1050.538, 22.8984, 4.0, True)
Car.SetCoordinates(77@, 1644.913, -1050.538, 22.8984)
Car.SetHeading(77@, 270.0)

:INTRO1_10023
Hud.SwitchWidescreen(True)
wait 100
if or
  Char.IsInAnyCar($scplayer)
  Char.IsOnAnyBike($scplayer)
goto_if_false @INTRO1_10097
69@ = Char.StoreCarIsIn($scplayer)
Car.SetCoordinates(69@, 1638.712, -1050.319, 22.8984)
Car.SetHeading(69@, 252.8)
goto @INTRO1_10127

:INTRO1_10097
Char.SetCoordinates($scplayer, 1638.712, -1050.319, 22.8984)
Char.SetHeading($scplayer, 252.8)

:INTRO1_10127
World.ClearArea(1636.084, -1093.459, 23.7139, 100.0, True)
if 
  113@ == 1
goto_if_false @INTRO1_10176
goto @INTRO1_10377

:INTRO1_10176
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(1647.208, -1085.232, 24.1633, 1647.969, -1098.429, 24.1724, 4100, True)
Camera.SetVectorTrack(1646.354, -1084.712, 24.164, 1647.523, -1099.323, 24.1731, 4100, True)
Camera.DoFade(500, Fade.In)
TIMERA = 0

:INTRO1_10274
if 
  500 > TIMERA
goto_if_false @INTRO1_10304
wait 0
goto @INTRO1_10274

:INTRO1_10304
if 
  86@ <> 1
goto_if_false @INTRO1_10340
wait 0
gosub @INTRO1_20347
goto @INTRO1_10304

:INTRO1_10340
TIMERA = 0

:INTRO1_10347
if 
  1000 > TIMERA
goto_if_false @INTRO1_10377
wait 0
goto @INTRO1_10347

:INTRO1_10377
if 
  113@ == 1
goto_if_false @INTRO1_10409
86@ = 1
Camera.DoFade(500, Fade.In)

:INTRO1_10409
Camera.ResetNewScriptables
Camera.SetFixedPosition(1646.476, -1049.43, 23.0659, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1645.693, -1049.997, 23.3176, SwitchType.JumpCut)

:INTRO1_10462
if 
  86@ <> 2
goto_if_false @INTRO1_10606
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_10599
if 
  75@ == 2
goto_if_false @INTRO1_10599
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_10592
Task.PlayAnim(66@, "BMX_COMEON", "MISC", 4.0, False, False, False, False, -1)
53@ = Char.GetScriptTaskStatus(66@, 1541)

:INTRO1_10592
109@ = 1

:INTRO1_10599
goto @INTRO1_10462

:INTRO1_10606
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_10680
if 
  not Car.IsDead(37@)
goto_if_false @INTRO1_10672
if 
  Char.IsInCar($scplayer, 37@)
goto_if_false @INTRO1_10672
40@ = Blip.AddForChar(66@)
Blip.SetAsFriendly(40@, True)

:INTRO1_10672
Char.PerformSequence(66@, 72@)

:INTRO1_10680
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_10725
if 
  not Car.IsDead(76@)
goto_if_false @INTRO1_10725
Char.PerformSequence(65@, 111@)
Sequence.Clear(111@)

:INTRO1_10725
if 
  113@ == 0
goto_if_false @INTRO1_11032
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_10874
if 
  not Car.IsDead(78@)
goto_if_false @INTRO1_10874
Char.ClearTasksImmediately(67@)
Car.SetCoordinates(78@, 1540.298, -1159.188, -50.3438)
wait 0
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_10874
if 
  not Car.IsDead(78@)
goto_if_false @INTRO1_10874
if 
  not Char.IsInAnyCar(67@)
goto_if_false @INTRO1_10860
Char.WarpIntoCar(67@, 78@)

:INTRO1_10860
Char.FreezePositionAndDontLoadCollision(67@, True)
Car.FreezePositionAndDontLoadCollision(78@, True)

:INTRO1_10874
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_11025
if 
  not Char.IsDead(52@)
goto_if_false @INTRO1_11025
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_11025
Char.ClearTasksImmediately(50@)
Char.ClearTasksImmediately(52@)
Car.SetCoordinates(51@, 1540.298, -1171.188, -50.3438)
wait 0
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_11025
if 
  not Char.IsDead(52@)
goto_if_false @INTRO1_11025
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_11025
Char.FreezePositionAndDontLoadCollision(50@, True)
Char.FreezePositionAndDontLoadCollision(52@, True)
Car.FreezePositionAndDontLoadCollision(51@, True)

:INTRO1_11025
goto @INTRO1_11072

:INTRO1_11032
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_11072
if 
  not Car.IsDead(78@)
goto_if_false @INTRO1_11072
Char.PerformSequence(67@, 72@)

:INTRO1_11072
Sequence.Clear(72@)
wait 1000
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
74@ = 1
if 
  not Car.IsDead(37@)
goto_if_false @INTRO1_11178
if 
  Char.IsInCar($scplayer, 37@)
goto_if_false @INTRO1_11162
Text.PrintNow('INTRO2K', 1000, 1)
goto @INTRO1_11178

:INTRO1_11162
Text.PrintNow('INTRO2E', 10000, 1)

:INTRO1_11178
92@ = 2
if 
  Car.IsDead(37@)
goto_if_false @INTRO1_11224
Text.PrintNow('INT2_F4', 10000, 1)
goto @INTRO1_18053

:INTRO1_11224
if 
  Char.IsDead(66@)
goto_if_false @INTRO1_11247
goto @INTRO1_18053

:INTRO1_11247
if 
  not Car.IsDead(37@)
goto_if_false @INTRO1_11303
if 
  Char.IsInCar($scplayer, 37@)
goto_if_false @INTRO1_11296
$blob_flag = 1
goto @INTRO1_11303

:INTRO1_11296
$blob_flag = 0

:INTRO1_11303
68@ = 0
57@ = 0
86@ = 0
75@ = 0
109@ = 0
46@ = 6
64@ = 0
gosub @INTRO1_47
TIMERA = 0
112@ = 0

:INTRO1_11373
if or
  not Char.LocateAnyMeans3D($scplayer, 2493.82, -1669.91, 12.8, 4.0, 3.5, 4.0, True)
  not Char.LocateAnyMeansChar3D($scplayer, 66@, 60.0, 60.0, 20.0, False)
goto_if_false @INTRO1_13472
wait 0
gosub @INTRO1_18455
gosub @INTRO1_20023
if 
  45@ == 1
goto_if_false @INTRO1_11489
goto @INTRO1_18053

:INTRO1_11489
if 
  57@ == 0
goto_if_false @INTRO1_12923
if 
  68@ == 0
goto_if_false @INTRO1_12047
if 
  Char.LocateAnyMeans3D($scplayer, 1981.292, -1510.219, 2.3844, 40.0, 40.0, 15.0, False)
goto_if_false @INTRO1_12040
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_12040
if 
  not Char.IsDead(52@)
goto_if_false @INTRO1_12040
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_11779
Char.FreezePositionAndDontLoadCollision(50@, False)
Char.FreezePositionAndDontLoadCollision(52@, False)
Car.FreezePositionAndDontLoadCollision(51@, False)
Car.SetCoordinates(51@, 1809.0, -1519.0, 7.0)
Car.SetHeading(51@, 270.0)
if 
  not Char.IsInAnyCar(50@)
goto_if_false @INTRO1_11696
Char.WarpIntoCar(50@, 51@)

:INTRO1_11696
if 
  not Char.IsInAnyCar(52@)
goto_if_false @INTRO1_11722
Char.WarpIntoCarAsPassenger(52@, 51@, 0)

:INTRO1_11722
Char.ClearTasks(52@)
if 
  Char.IsInAnyCar(52@)
goto_if_false @INTRO1_11779
Task.DriveBy(52@, $scplayer, -1, 0.0, 0.0, 0.0, 5000.0, DriveByType.AiSide, True, 40)

:INTRO1_11779
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO1_11883
69@ = Char.StoreCarIsIn($scplayer)
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_11876
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_11876
Char.ClearTasks(50@)
if 
  Char.IsInAnyCar(50@)
goto_if_false @INTRO1_11876
Task.CarMission(50@, 51@, 69@, CarMission.EscortLeft, 30.0, DrivingMode.AvoidCars)

:INTRO1_11876
goto @INTRO1_12033

:INTRO1_11883
122@, 123@, 124@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, -4.0, 0.0)
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_12033
53@ = Char.GetScriptTaskStatus(50@, 1489)
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_12033
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_12033
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_12033
if 
  Char.IsInAnyCar(50@)
goto_if_false @INTRO1_12033
Task.CarDriveToCoord(50@, 51@, 122@, 123@, 124@, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:INTRO1_12033
68@ = 1

:INTRO1_12040
goto @INTRO1_12816

:INTRO1_12047
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_12816
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_12757
if 
  not Char.IsDead(52@)
goto_if_false @INTRO1_12691
125@, 126@, 127@ = Char.GetCoordinates($scplayer)
if and
  not Car.Locate2D(51@, 125@, 126@, 50.0, 50.0, False)
  not Car.IsOnScreen(51@)
goto_if_false @INTRO1_12244
Char.ClearTasks(50@)
116@, 117@, 118@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, -40.0, 0.0)
119@, 120@, 121@ = Path.GetClosestCarNode(116@, 117@, 118@)
Car.SetCoordinates(51@, 119@, 120@, 121@)
Car.TurnToFaceCoord(51@, 116@, 117@)
Car.SetForwardSpeed(51@, 20.0)
goto @INTRO1_12684

:INTRO1_12244
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO1_12453
53@ = Char.GetScriptTaskStatus(50@, 1761)
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_12349
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO1_12349
69@ = Char.StoreCarIsIn($scplayer)
if 
  Char.IsInAnyCar(50@)
goto_if_false @INTRO1_12349
Task.CarMission(50@, 51@, 69@, CarMission.EscortLeft, 30.0, DrivingMode.AvoidCars)

:INTRO1_12349
if 
  not Char.IsDead(52@)
goto_if_false @INTRO1_12446
if 
  Char.IsInAnyCar(52@)
goto_if_false @INTRO1_12446
53@ = Char.GetScriptTaskStatus(52@, 1811)
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_12446
Task.DriveBy(52@, $scplayer, -1, 0.0, 0.0, 0.0, 5000.0, DriveByType.AiSide, True, 40)

:INTRO1_12446
goto @INTRO1_12684

:INTRO1_12453
122@, 123@, 124@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, -4.0, 0.0)
53@ = Char.GetScriptTaskStatus(50@, 1489)
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_12587
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_12587
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_12587
if 
  Char.IsInAnyCar(50@)
goto_if_false @INTRO1_12587
Task.CarDriveToCoord(50@, 51@, 122@, 123@, 124@, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:INTRO1_12587
if 
  not Char.IsDead(52@)
goto_if_false @INTRO1_12684
if 
  Char.IsInAnyCar(52@)
goto_if_false @INTRO1_12684
53@ = Char.GetScriptTaskStatus(52@, 1811)
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_12684
Task.DriveBy(52@, $scplayer, -1, 0.0, 0.0, 0.0, 5000.0, DriveByType.AiSide, True, 40)

:INTRO1_12684
goto @INTRO1_12750

:INTRO1_12691
if 
  114@ == 0
goto_if_false @INTRO1_12750
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_12750
Char.ClearTasks(50@)
Task.LeaveAnyCar(50@)
Task.KillCharOnFoot(50@, $scplayer)
114@ = 1

:INTRO1_12750
goto @INTRO1_12816

:INTRO1_12757
if 
  114@ == 0
goto_if_false @INTRO1_12816
if 
  not Char.IsDead(52@)
goto_if_false @INTRO1_12816
Char.ClearTasks(52@)
Task.LeaveAnyCar(52@)
Task.KillCharOnFoot(52@, $scplayer)
114@ = 1

:INTRO1_12816
if 
  not Char.IsDead(50@)
goto_if_false @INTRO1_12923
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_12923
if 
  Char.LocateAnyMeans3D(50@, 2341.85, -1658.92, 12.39, 30.0, 30.0, 30.0, False)
goto_if_false @INTRO1_12923
Char.ClearTasks(50@)
Task.CarDriveWander(50@, 51@, 20.0, DrivingMode.AvoidCars)
57@ = 1

:INTRO1_12923
if 
  112@ == 0
goto_if_false @INTRO1_13093
if 
  TIMERA > 1500
goto_if_false @INTRO1_13061
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_13061
if 
  not Car.IsDead(77@)
goto_if_false @INTRO1_13061
if 
  Char.IsInCar($scplayer, 37@)
goto_if_false @INTRO1_13061
if 
  Char.LocateAnyMeansChar3D($scplayer, 66@, 20.0, 20.0, 10.0, False)
goto_if_false @INTRO1_13061
gosub @INTRO1_20347
115@ = 1

:INTRO1_13061
if 
  86@ > 1
goto_if_false @INTRO1_13086
112@ = 1

:INTRO1_13086
goto @INTRO1_13330

:INTRO1_13093
if 
  112@ == 1
goto_if_false @INTRO1_13167
86@ = 0
75@ = 0
109@ = 0
46@ = 5
64@ = 0
gosub @INTRO1_47
TIMERA = 0
112@ = 2

:INTRO1_13167
if 
  112@ == 2
goto_if_false @INTRO1_13330
if 
  TIMERA > 1500
goto_if_false @INTRO1_13305
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_13305
if 
  not Car.IsDead(76@)
goto_if_false @INTRO1_13305
if 
  Char.IsInCar($scplayer, 37@)
goto_if_false @INTRO1_13305
if 
  Char.LocateAnyMeansChar3D($scplayer, 65@, 20.0, 20.0, 10.0, False)
goto_if_false @INTRO1_13305
gosub @INTRO1_20347
108@ = 1

:INTRO1_13305
if 
  86@ > 2
goto_if_false @INTRO1_13330
112@ = 3

:INTRO1_13330
if 
  Char.IsDead(65@)
goto_if_false @INTRO1_13369
Text.PrintNow('INT2_F1', 10000, 1)
goto @INTRO1_18053

:INTRO1_13369
if 
  Char.IsDead(66@)
goto_if_false @INTRO1_13408
Text.PrintNow('INT2_F3', 10000, 1)
goto @INTRO1_18053

:INTRO1_13408
if 
  113@ == 1
goto_if_false @INTRO1_13465
if 
  Char.IsDead(67@)
goto_if_false @INTRO1_13465
Text.PrintNow('INT2_F2', 10000, 1)
goto @INTRO1_18053

:INTRO1_13465
goto @INTRO1_11373

:INTRO1_13472
Player.SetControl($player1, False)
113@ = 0
if 
  not Car.IsDead(37@)
goto_if_false @INTRO1_13562
if 
  Char.IsInCar($scplayer, 37@)
goto_if_false @INTRO1_13562
Task.PlayAnim($scplayer, "BMX_CELEBRATE", "MISC", 4.0, False, False, False, False, -1)

:INTRO1_13562
wait 1000
Camera.DoFade(1500, Fade.Out)

:INTRO1_13574
if 
  Camera.GetFadingStatus
goto_if_false @INTRO1_13598
wait 0
goto @INTRO1_13574

:INTRO1_13598
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Player.ClearWantedLevel($player1)
Streaming.RequestCarRecording(205)
Streaming.RequestCarRecording(206)
Streaming.RequestAnimation("MISC")
Streaming.RequestAnimation("GANGS")
Streaming.LoadAllModelsNow

:INTRO1_13640
if or
  not Streaming.HasCarRecordingBeenLoaded(205)
  not Streaming.HasCarRecordingBeenLoaded(206)
  not Streaming.HasAnimationLoaded("MISC")
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @INTRO1_13689
wait 0
goto @INTRO1_13640

:INTRO1_13689
Hud.SwitchWidescreen(True)
Camera.SetNearClip(0.2)
86@ = 0
75@ = 0
109@ = 0
46@ = 2
gosub @INTRO1_47
if 
  not Car.IsDead(37@)
goto_if_false @INTRO1_13918
if 
  not Char.IsInCar($scplayer, 37@)
goto_if_false @INTRO1_13888
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO1_13837
Char.WarpFromCarToCoord($scplayer, 2487.309, -1668.372, 12.3438)
Char.SetHeading($scplayer, 80.0)
Char.HideWeaponForScriptedCutscene($scplayer, True)
113@ = 1
goto @INTRO1_13881

:INTRO1_13837
Char.SetCoordinates($scplayer, 2487.309, -1668.372, 12.3438)
Char.SetHeading($scplayer, 80.0)
Char.HideWeaponForScriptedCutscene($scplayer, True)
113@ = 1

:INTRO1_13881
goto @INTRO1_13918

:INTRO1_13888
Car.SetCoordinates(37@, 2487.309, -1668.372, 12.3438)
Car.SetHeading(37@, 80.0)

:INTRO1_13918
World.ClearArea(2487.309, -1668.372, 12.3438, 50.0, True)
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_14047
if 
  not Car.IsDead(76@)
goto_if_false @INTRO1_14047
Char.ClearTasksImmediately(65@)
Char.FreezePositionAndDontLoadCollision(65@, False)
Car.FreezePositionAndDontLoadCollision(76@, False)
if 
  not Char.IsInAnyCar(65@)
goto_if_false @INTRO1_14017
Char.WarpIntoCar(65@, 76@)

:INTRO1_14017
Car.SetCoordinates(76@, 2487.172, -1666.301, 12.3438)
Car.SetHeading(76@, 124.2698)

:INTRO1_14047
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_14122
if 
  not Car.IsDead(77@)
goto_if_false @INTRO1_14122
Char.ClearTasksImmediately(66@)
Char.FreezePositionAndDontLoadCollision(66@, False)
Car.FreezePositionAndDontLoadCollision(77@, False)
if 
  not Char.IsInAnyCar(66@)
goto_if_false @INTRO1_14122
Char.WarpIntoCar(66@, 77@)

:INTRO1_14122
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_14217
if 
  not Car.IsDead(78@)
goto_if_false @INTRO1_14217
Char.ClearTasksImmediately(67@)
Char.FreezePositionAndDontLoadCollision(67@, False)
Car.FreezePositionAndDontLoadCollision(78@, False)
if 
  not Char.IsInAnyCar(67@)
goto_if_false @INTRO1_14197
Char.WarpIntoCar(67@, 78@)

:INTRO1_14197
Car.SetCoordinates(78@, 2371.5, -1654.895, 12.3826)

:INTRO1_14217
Char.Delete(50@)
Char.Delete(52@)
Car.Delete(51@)
Camera.SetFixedPosition(2409.037, -1672.324, 18.3556, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2409.954, -1671.944, 18.2334, SwitchType.JumpCut)
Streaming.LoadScene(2480.689, -1670.006, 13.0061)
Camera.SetFixedPosition(2479.827, -1670.506, 12.9206, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2480.689, -1670.006, 13.0061, SwitchType.JumpCut)
wait 1000
Camera.DoFade(1000, Fade.In)
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_14413
if 
  not Car.IsDead(77@)
goto_if_false @INTRO1_14413
Car.StartPlayback(77@, 206)
Car.SetPlaybackSpeed(77@, 1.0)

:INTRO1_14413
109@ = 0

:INTRO1_14420
if 
  86@ <> 1
goto_if_false @INTRO1_14725
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_14718
if 
  75@ == 2
goto_if_false @INTRO1_14718
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_14711
Char.ClearLookAt(66@)
Task.LookAtChar(66@, $scplayer, 30000)
Char.StartFacialTalk(66@, 20000)
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, 66@, 30000)
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_14600
Task.PlayAnim(65@, "BMX_IDLELOOP_02", "MISC", 4.0, True, False, False, False, -1)

:INTRO1_14600
if 
  113@ == 0
goto_if_false @INTRO1_14661
Task.PlayAnim($scplayer, "BMX_IDLELOOP_01", "MISC", 4.0, True, False, False, False, -1)

:INTRO1_14661
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_14711
if 
  not Car.IsDead(78@)
goto_if_false @INTRO1_14711
Car.StartPlayback(78@, 205)
Car.SetPlaybackSpeed(78@, 0.8)

:INTRO1_14711
109@ = 1

:INTRO1_14718
goto @INTRO1_14420

:INTRO1_14725
TIMERB = 0

:INTRO1_14732
if 
  200 > TIMERB
goto_if_false @INTRO1_14762
wait 0
goto @INTRO1_14732

:INTRO1_14762
skip_cutscene_start_internal @INTRO1_17639
109@ = 0

:INTRO1_14776
if 
  86@ <> 2
goto_if_false @INTRO1_15074
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_15067
if 
  75@ == 2
goto_if_false @INTRO1_15067
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_15060
Char.ClearLookAt(67@)
Task.LookAtChar(67@, $scplayer, 30000)
Char.StartFacialTalk(67@, 20000)
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, 67@, 30000)
Task.PlayAnim(67@, "BMX_IDLELOOP_01", "MISC", 4.0, True, False, False, False, -1)
if 
  113@ == 0
goto_if_false @INTRO1_15001
Task.PlayAnim($scplayer, "BMX_IDLELOOP_01", "MISC", 4.0, True, False, False, False, -1)

:INTRO1_15001
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_15060
Task.PlayAnim(65@, "BMX_IDLELOOP_02", "MISC", 4.0, True, False, False, False, -1)

:INTRO1_15060
109@ = 1

:INTRO1_15067
goto @INTRO1_14776

:INTRO1_15074
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_15095
Char.StopFacialTalk(67@)

:INTRO1_15095
Camera.SetFixedPosition(2488.323, -1669.926, 13.3261, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2487.485, -1669.385, 13.2679, SwitchType.JumpCut)
109@ = 0

:INTRO1_15153
if 
  86@ <> 3
goto_if_false @INTRO1_15418
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_15411
if 
  75@ == 2
goto_if_false @INTRO1_15411
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_15404
Char.ClearLookAt(65@)
Task.LookAtChar(65@, $scplayer, 15000)
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_15282
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, 67@, 30000)

:INTRO1_15282
Char.StartFacialTalk($scplayer, 20000)
if 
  113@ == 0
goto_if_false @INTRO1_15361
Task.PlayAnim($scplayer, "BMX_TALKRIGHT_LOOP", "MISC", 4.0, True, False, False, False, -1)
goto @INTRO1_15404

:INTRO1_15361
Task.PlayAnim($scplayer, "PRTIAL_GNGTLKC", "GANGS", 4.0, True, False, False, False, -1)

:INTRO1_15404
109@ = 1

:INTRO1_15411
goto @INTRO1_15153

:INTRO1_15418
Char.StopFacialTalk($scplayer)
109@ = 0

:INTRO1_15430
if 
  86@ <> 4
goto_if_false @INTRO1_15517
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_15510
if 
  75@ == 2
goto_if_false @INTRO1_15510
109@ = 1
Char.StartFacialTalk($scplayer, 20000)

:INTRO1_15510
goto @INTRO1_15430

:INTRO1_15517
Camera.SetFixedPosition(2482.804, -1666.785, 13.785, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2483.778, -1666.774, 13.5566, SwitchType.JumpCut)
Char.ClearTasks($scplayer)
if 
  113@ == 0
goto_if_false @INTRO1_15634
Task.PlayAnim($scplayer, "BMX_IDLELOOP_01", "MISC", 4.0, True, False, False, False, -1)

:INTRO1_15634
Char.StopFacialTalk($scplayer)
109@ = 0

:INTRO1_15646
if 
  86@ <> 5
goto_if_false @INTRO1_15781
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_15774
if 
  75@ == 2
goto_if_false @INTRO1_15774
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_15767
Char.StartFacialTalk(67@, 20000)
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_15767
Char.ClearLookAt(65@)
Task.LookAtChar(65@, 67@, 15000)

:INTRO1_15767
109@ = 1

:INTRO1_15774
goto @INTRO1_15646

:INTRO1_15781
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_15802
Char.StopFacialTalk(67@)

:INTRO1_15802
109@ = 0

:INTRO1_15809
if 
  86@ <> 6
goto_if_false @INTRO1_16004
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_15997
if 
  75@ == 2
goto_if_false @INTRO1_15997
109@ = 1
Char.StartFacialTalk($scplayer, 20000)
if 
  113@ == 0
goto_if_false @INTRO1_15960
Task.PlayAnim($scplayer, "BMX_TALKRIGHT_LOOP", "MISC", 4.0, True, False, False, False, -1)
goto @INTRO1_15997

:INTRO1_15960
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 4.0, True, False, False, False, 6000)

:INTRO1_15997
goto @INTRO1_15809

:INTRO1_16004
Char.StopFacialTalk($scplayer)
if 
  113@ == 0
goto_if_false @INTRO1_16077
Task.PlayAnim($scplayer, "BMX_IDLELOOP_01", "MISC", 4.0, True, False, False, False, -1)
goto @INTRO1_16082

:INTRO1_16077
Char.ClearTasks($scplayer)

:INTRO1_16082
Camera.SetFixedPosition(2482.911, -1662.575, 14.0425, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2483.366, -1663.456, 13.914, SwitchType.JumpCut)
109@ = 0

:INTRO1_16140
if 
  86@ <> 7
goto_if_false @INTRO1_16275
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_16268
if 
  75@ == 2
goto_if_false @INTRO1_16268
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_16261
Char.StartFacialTalk(67@, 20000)
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_16261
Char.ClearLookAt(65@)
Task.LookAtChar(65@, 67@, 15000)

:INTRO1_16261
109@ = 1

:INTRO1_16268
goto @INTRO1_16140

:INTRO1_16275
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_16296
Char.StopFacialTalk(67@)

:INTRO1_16296
109@ = 0

:INTRO1_16303
if 
  86@ <> 8
goto_if_false @INTRO1_16508
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_16501
if 
  75@ == 2
goto_if_false @INTRO1_16501
109@ = 1
Char.ClearTasks($scplayer)
Char.StopFacialTalk($scplayer)
Char.StartFacialTalk($scplayer, 20000)
if 
  113@ == 0
goto_if_false @INTRO1_16464
Task.PlayAnim($scplayer, "BMX_TALKRIGHT_LOOP", "MISC", 4.0, True, False, False, False, -1)
goto @INTRO1_16501

:INTRO1_16464
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 4.0, True, False, False, False, 6000)

:INTRO1_16501
goto @INTRO1_16303

:INTRO1_16508
Char.StopFacialTalk($scplayer)
if 
  113@ == 0
goto_if_false @INTRO1_16581
Task.PlayAnim($scplayer, "BMX_IDLELOOP_01", "MISC", 4.0, True, False, False, False, -1)
goto @INTRO1_16586

:INTRO1_16581
Char.ClearTasks($scplayer)

:INTRO1_16586
Camera.SetFixedPosition(2490.0, -1667.537, 13.7938, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2489.044, -1667.497, 13.5038, SwitchType.JumpCut)
109@ = 0

:INTRO1_16644
if 
  86@ <> 9
goto_if_false @INTRO1_16824
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_16817
if 
  75@ == 2
goto_if_false @INTRO1_16817
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_16810
Char.ClearLookAt(65@)
Task.LookAtChar(65@, $scplayer, 15000)
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, 65@, 15000)
Char.StartFacialTalk(65@, 20000)
Task.PlayAnim(65@, "BMX_TALKLEFT_LOOP", "MISC", 4.0, True, False, False, False, -1)

:INTRO1_16810
109@ = 1

:INTRO1_16817
goto @INTRO1_16644

:INTRO1_16824
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_16883
Task.PlayAnim(65@, "BMX_IDLELOOP_02", "MISC", 4.0, True, False, False, False, -1)

:INTRO1_16883
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_16904
Char.StopFacialTalk(65@)

:INTRO1_16904
TIMERB = 0

:INTRO1_16911
if 
  1500 > TIMERB
goto_if_false @INTRO1_16941
wait 0
goto @INTRO1_16911

:INTRO1_16941
Camera.SetFixedPosition(2474.306, -1668.478, 13.4599, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2475.302, -1668.458, 13.5477, SwitchType.JumpCut)
if 
  not Car.IsDead(76@)
goto_if_false @INTRO1_17018
Car.SetHeading(76@, 0.0)

:INTRO1_17018
109@ = 0

:INTRO1_17025
if 
  86@ <> 10
goto_if_false @INTRO1_17160
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_17153
if 
  75@ == 2
goto_if_false @INTRO1_17153
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_17146
Char.ClearLookAt(66@)
Task.LookAtChar(66@, $scplayer, 15000)
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, 66@, 15000)
Char.StartFacialTalk(66@, 20000)

:INTRO1_17146
109@ = 1

:INTRO1_17153
goto @INTRO1_17025

:INTRO1_17160
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_17181
Char.StopFacialTalk(66@)

:INTRO1_17181
TIMERB = 0
109@ = 0

:INTRO1_17195
if 
  86@ <> 11
goto_if_false @INTRO1_17493
wait 0
gosub @INTRO1_20347
if 
  109@ == 0
goto_if_false @INTRO1_17323
if 
  75@ == 2
goto_if_false @INTRO1_17323
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_17323
Char.ClearLookAt(66@)
Task.LookAtChar(66@, $scplayer, 12500)
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, 66@, 12500)
Char.StartFacialTalk(66@, 20000)
109@ = 1

:INTRO1_17323
if 
  TIMERB > 3000
goto_if_false @INTRO1_17486
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_17414
if 
  not Car.IsDead(76@)
goto_if_false @INTRO1_17414
Char.ClearTasks(65@)
Task.CarDriveToCoord(65@, 76@, 2501.244, -1657.769, 12.3949, 4.0, DriveMode.Accurate, 481, DrivingMode.AvoidCars)

:INTRO1_17414
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_17486
if 
  not Car.IsDead(78@)
goto_if_false @INTRO1_17486
Char.ClearTasks(67@)
Task.CarDriveToCoord(67@, 78@, 2497.169, -1680.446, 12.3614, 6.0, DriveMode.Accurate, 481, DrivingMode.AvoidCars)

:INTRO1_17486
goto @INTRO1_17195

:INTRO1_17493
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_17514
Char.StopFacialTalk(66@)

:INTRO1_17514
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_17602
if 
  not Car.IsDead(77@)
goto_if_false @INTRO1_17602
if 
  Char.IsInAnyCar(66@)
goto_if_false @INTRO1_17602
Char.ClearLookAt(66@)
Task.CarDriveToCoord(66@, 77@, 2466.27, -1690.28, 12.51, 2.0, DriveMode.Accurate, 481, DrivingMode.AvoidCars)

:INTRO1_17602
TIMERB = 0

:INTRO1_17609
if 
  3000 > TIMERB
goto_if_false @INTRO1_17639
wait 0
goto @INTRO1_17609

:INTRO1_17639
skip_cutscene_end 
Camera.ResetNewScriptables
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Char.HideWeaponForScriptedCutscene($scplayer, False)
World.SwitchEntryExit('CARLS', True)
skip_cutscene_start_internal @INTRO1_18014
Text.ClearPrints
Camera.SetFixedPosition(2499.306, -1678.921, 13.0313, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2499.044, -1679.852, 13.2865, SwitchType.JumpCut)
Car.Delete(76@)
Car.Delete(77@)
Car.Delete(78@)
Char.Delete(65@)
Char.Delete(66@)
Char.Delete(67@)
Text.PrintHelp('SAVE_G')
TIMERB = 0

:INTRO1_17779
if 
  6000 > TIMERB
goto_if_false @INTRO1_17809
wait 0
goto @INTRO1_17779

:INTRO1_17809
Camera.SetFixedPosition(2504.28, -1682.857, 15.1427, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2504.306, -1683.851, 15.0385, SwitchType.JumpCut)
Text.PrintHelp('SAVE_G2')
TIMERB = 0

:INTRO1_17878
if 
  6000 > TIMERB
goto_if_false @INTRO1_17908
wait 0
goto @INTRO1_17878

:INTRO1_17908
Camera.SetFixedPosition(2494.863, -1683.051, 13.0207, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2494.939, -1684.037, 13.1717, SwitchType.JumpCut)
Text.PrintHelp('SAVE_G3')
Player.SetControl($player1, True)
TIMERB = 0

:INTRO1_17984
if 
  6000 > TIMERB
goto_if_false @INTRO1_18014
wait 0
goto @INTRO1_17984

:INTRO1_18014
skip_cutscene_end 
Char.ClearTasks($scplayer)
Char.SetHeading($scplayer, 82.97)
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
goto @INTRO1_18071

:INTRO1_18053
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:INTRO1_18071
$flag_intro_mission_counter += 1
Stat.RegisterMissionPassed('INTRO_1')
Text.PrintWithNumberBig('M_PASSR', 3, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(3)
terminate_all_scripts_with_this_name 'INT'
Blip.Remove($save_house_blip)
$save_house_blip = Blip.AddShortRangeSpriteForContactPoint($save_pickupX[0], $save_pickupY[0], $save_pickupZ[0], RadarSprite.SaveGame)
Blip.ChangeDisplay($save_house_blip, BlipDisplay.BlipOnly)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.PlayerMadeProgress(1)
Blip.Remove($intro_contact_blip)
World.SwitchEntryExit('CARLS', True)
return 

:INTRO1_18183
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Streaming.MarkModelAsNoLongerNeeded(404)
Streaming.MarkModelAsNoLongerNeeded(481)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(412)
CarGenerator.DontSuppressCarModel(412)
Streaming.MarkModelAsNoLongerNeeded(346)
Char.MarkAsNoLongerNeeded(50@)
Char.MarkAsNoLongerNeeded(52@)
Char.MarkAsNoLongerNeeded(65@)
Char.MarkAsNoLongerNeeded(66@)
Char.MarkAsNoLongerNeeded(67@)
Car.MarkAsNoLongerNeeded(51@)
Car.MarkAsNoLongerNeeded(41@)
Car.MarkAsNoLongerNeeded(76@)
Car.MarkAsNoLongerNeeded(77@)
Car.MarkAsNoLongerNeeded(78@)
Streaming.RemoveCarRecording(201)
Streaming.RemoveCarRecording(205)
Streaming.RemoveCarRecording(206)
Streaming.RemoveAnimation("MISC")
Streaming.RemoveAnimation("GANGS")
Path.SwitchPedRoadsOn(1782.802, -1203.497, 0.0, 1788.273, -1236.15, 20.0)
if 
  not Car.IsDead(51@)
goto_if_false @INTRO1_18371
Car.StopPlayback(51@)
goto @INTRO1_18376

:INTRO1_18371
Car.StopPlayback(51@)

:INTRO1_18376
Game.EnableAmbientCrime(True)
Car.Delete(76@)
Car.Delete(77@)
Car.Delete(78@)
Char.RemoveElegantly(65@)
Char.RemoveElegantly(66@)
Char.RemoveElegantly(67@)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(10)
Streaming.UnloadSpecialCharacter(3)
Blip.Remove(39@)
Blip.Remove(40@)
Blip.Remove(43@)
Mission.Finish
return 

:INTRO1_18455
if 
  not Car.IsDead(37@)
goto_if_false @INTRO1_19510
if 
  Char.IsInCar($scplayer, 37@)
goto_if_false @INTRO1_19407
if 
  92@ == 1
goto_if_false @INTRO1_18748
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_18748
if 
  not Char.LocateAnyMeansChar3D($scplayer, 67@, 60.0, 60.0, 20.0, False)
goto_if_false @INTRO1_18615
Text.PrintNow('INTRO2G', 6000, 1)
if 
  115@ == 1
goto_if_false @INTRO1_18601
115@ = 0

:INTRO1_18601
$blob_flag = 0
goto @INTRO1_18748

:INTRO1_18615
if 
  115@ == 0
goto_if_false @INTRO1_18730
if 
  46@ == 4
goto_if_false @INTRO1_18730
if 
  86@ > 5
goto_if_false @INTRO1_18730
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_18730
if 
  Char.LocateAnyMeansChar2D(67@, $scplayer, 20.0, 20.0, False)
goto_if_false @INTRO1_18730
115@ = 1
gosub @INTRO1_20578

:INTRO1_18730
Text.ClearThisPrint('INTRO2G')
$blob_flag = 1

:INTRO1_18748
if 
  92@ == 2
goto_if_false @INTRO1_19180
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_18988
if 
  not Char.LocateAnyMeansChar3D($scplayer, 66@, 60.0, 60.0, 20.0, False)
goto_if_false @INTRO1_18873
Text.PrintNow('INTRO2J', 6000, 1)
if 
  115@ == 1
goto_if_false @INTRO1_18859
115@ = 0

:INTRO1_18859
$blob_flag = 0
goto @INTRO1_18988

:INTRO1_18873
if 
  115@ == 0
goto_if_false @INTRO1_18970
if 
  86@ > 1
goto_if_false @INTRO1_18970
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_18970
if 
  Char.LocateAnyMeansChar2D(66@, $scplayer, 20.0, 20.0, False)
goto_if_false @INTRO1_18970
115@ = 1
gosub @INTRO1_20578

:INTRO1_18970
Text.ClearThisPrint('INTRO2J')
$blob_flag = 1

:INTRO1_18988
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_19180
if 
  not Char.LocateAnyMeansChar3D($scplayer, 65@, 60.0, 60.0, 20.0, False)
goto_if_false @INTRO1_19072
if 
  108@ == 1
goto_if_false @INTRO1_19065
108@ = 0

:INTRO1_19065
goto @INTRO1_19180

:INTRO1_19072
if 
  108@ == 0
goto_if_false @INTRO1_19169
if 
  86@ > 2
goto_if_false @INTRO1_19169
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_19169
if 
  Char.LocateAnyMeansChar2D(65@, $scplayer, 20.0, 20.0, False)
goto_if_false @INTRO1_19169
108@ = 1
gosub @INTRO1_21273

:INTRO1_19169
Text.ClearThisPrint('INTRO2J')

:INTRO1_19180
if 
  54@ == 0
goto_if_false @INTRO1_19400
Blip.Remove(43@)
$blob_flag = 1
if 
  92@ == 0
goto_if_false @INTRO1_19285
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_19264
Blip.Remove(39@)
39@ = Blip.AddForChar(67@)
Blip.SetAsFriendly(39@, True)

:INTRO1_19264
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
92@ = 1

:INTRO1_19285
if 
  92@ == 1
goto_if_false @INTRO1_19339
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_19339
Blip.Remove(39@)
39@ = Blip.AddForChar(67@)
Blip.SetAsFriendly(39@, True)

:INTRO1_19339
if 
  92@ == 2
goto_if_false @INTRO1_19393
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_19393
Blip.Remove(40@)
40@ = Blip.AddForChar(66@)
Blip.SetAsFriendly(40@, True)

:INTRO1_19393
54@ = 1

:INTRO1_19400
goto @INTRO1_19503

:INTRO1_19407
if 
  54@ == 1
goto_if_false @INTRO1_19503
Blip.Remove(43@)
Blip.Remove(40@)
Blip.Remove(39@)
43@ = Blip.AddForCar(37@)
Blip.SetAsFriendly(43@, True)
if 
  92@ <> 0
goto_if_false @INTRO1_19489
Text.PrintNow('INTRO2E', 10000, 1)

:INTRO1_19489
$blob_flag = 0
54@ = 0

:INTRO1_19503
goto @INTRO1_19533

:INTRO1_19510
Text.PrintNow('INT2_F4', 10000, 1)
45@ = 1

:INTRO1_19533
if 
  Char.IsDead(65@)
goto_if_false @INTRO1_19579
Text.PrintNow('INT2_F1', 10000, 1)
45@ = 1
goto @INTRO1_19675

:INTRO1_19579
if 
  83@ == 0
goto_if_false @INTRO1_19675
if 
  not Char.IsDead(65@)
goto_if_false @INTRO1_19675
if 
  not Car.IsDead(76@)
goto_if_false @INTRO1_19675
if 
  Char.IsInCar(65@, 76@)
goto_if_false @INTRO1_19675
Char.ClearTasks(65@)
Char.PerformSequence(65@, 82@)
Car.SetStraightLineDistance(76@, 10)
83@ = 1

:INTRO1_19675
if 
  Char.IsDead(66@)
goto_if_false @INTRO1_19721
Text.PrintNow('INT2_F3', 10000, 1)
45@ = 1
goto @INTRO1_19817

:INTRO1_19721
if 
  85@ == 0
goto_if_false @INTRO1_19817
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_19817
if 
  not Car.IsDead(77@)
goto_if_false @INTRO1_19817
if 
  Char.IsInCar(66@, 77@)
goto_if_false @INTRO1_19817
Char.ClearTasks(66@)
Char.PerformSequence(66@, 82@)
Car.SetStraightLineDistance(77@, 10)
85@ = 1

:INTRO1_19817
if 
  92@ <> 2
goto_if_false @INTRO1_19977
if 
  Char.IsDead(67@)
goto_if_false @INTRO1_19881
Text.PrintNow('INT2_F2', 10000, 1)
45@ = 1
goto @INTRO1_19977

:INTRO1_19881
if 
  84@ == 0
goto_if_false @INTRO1_19977
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_19977
if 
  not Car.IsDead(78@)
goto_if_false @INTRO1_19977
if 
  Char.IsInCar(67@, 78@)
goto_if_false @INTRO1_19977
Char.ClearTasks(67@)
Char.PerformSequence(67@, 82@)
Car.SetStraightLineDistance(78@, 10)
84@ = 1

:INTRO1_19977
if and
  83@ == 1
  84@ == 1
  85@ == 1
goto_if_false @INTRO1_20021
Sequence.Clear(82@)
83@ = 2

:INTRO1_20021
return 

:INTRO1_20023
if 
  TIMERB > 1000
goto_if_false @INTRO1_20345
if 
  not Char.IsDead(65@(48@,3i))
goto_if_false @INTRO1_20305
if 
  not Car.IsDead(76@(48@,3i))
goto_if_false @INTRO1_20268
if 
  Char.IsInCar(65@(48@,3i), 76@(48@,3i))
goto_if_false @INTRO1_20261
if 
  Char.LocateAnyMeansChar2D(65@(48@,3i), $scplayer, 130.0, 130.0, False)
goto_if_false @INTRO1_20206
if 
  58@(48@,3i) == 0
goto_if_false @INTRO1_20199
Char.FreezePositionAndDontLoadCollision(65@(48@,3i), False)
Car.FreezePositionAndDontLoadCollision(76@(48@,3i), False)
58@(48@,3i) = 1

:INTRO1_20199
goto @INTRO1_20261

:INTRO1_20206
if 
  58@(48@,3i) == 1
goto_if_false @INTRO1_20261
Char.FreezePositionAndDontLoadCollision(65@(48@,3i), True)
Car.FreezePositionAndDontLoadCollision(76@(48@,3i), True)
58@(48@,3i) = 0

:INTRO1_20261
goto @INTRO1_20305

:INTRO1_20268
Char.ClearTasks(65@(48@,3i))
Task.GoToCoordAnyMeans(65@(48@,3i), 2493.82, -1669.91, 12.8, 7, -1)

:INTRO1_20305
48@ += 1
if 
  is_int_lvar_greater_or_equal_to_int_lvar 48@ >= 107@
goto_if_false @INTRO1_20338
48@ = 0

:INTRO1_20338
TIMERB = 0

:INTRO1_20345
return 

:INTRO1_20347
if or
  75@ == 0
  75@ == 1
goto_if_false @INTRO1_20417
if 
  is_int_lvar_greater_or_equal_to_int_lvar 63@ >= 86@
goto_if_false @INTRO1_20417
if 
  TIMERA > 200
goto_if_false @INTRO1_20417
gosub @INTRO1_20482

:INTRO1_20417
if 
  75@ == 2
goto_if_false @INTRO1_20480
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @INTRO1_20480
75@ = 0
86@ += 1
109@ = 0
Text.ClearPrints
TIMERA = 0

:INTRO1_20480
return 

:INTRO1_20482
if 
  75@ == 0
goto_if_false @INTRO1_20518
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 93@(86@,14i))
75@ = 1

:INTRO1_20518
if 
  75@ == 1
goto_if_false @INTRO1_20576
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @INTRO1_20576
Text.PrintNow($van_death_counter_zero5(86@,14s), 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
75@ = 2

:INTRO1_20576
return 

:INTRO1_20578
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  92@ == 1
goto_if_false @INTRO1_20718
if 
  115@ == 1
goto_if_false @INTRO1_20718
if 
  64@ == 0
goto_if_false @INTRO1_20643
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10038)

:INTRO1_20643
if 
  64@ == 1
goto_if_false @INTRO1_20668
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10039)

:INTRO1_20668
if 
  64@ == 2
goto_if_false @INTRO1_20693
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10040)

:INTRO1_20693
if 
  64@ == 3
goto_if_false @INTRO1_20718
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10036)

:INTRO1_20718
if 
  92@ == 2
goto_if_false @INTRO1_20854
if 
  115@ == 1
goto_if_false @INTRO1_20854
if 
  64@ == 0
goto_if_false @INTRO1_20779
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10018)

:INTRO1_20779
if 
  64@ == 1
goto_if_false @INTRO1_20804
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10017)

:INTRO1_20804
if 
  64@ == 2
goto_if_false @INTRO1_20829
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10019)

:INTRO1_20829
if 
  64@ == 3
goto_if_false @INTRO1_20854
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10020)

:INTRO1_20854
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
gosub @INTRO1_21660
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
if 
  92@ == 1
goto_if_false @INTRO1_21053
if 
  115@ == 1
goto_if_false @INTRO1_21053
if 
  64@ == 0
goto_if_false @INTRO1_20951
Text.PrintNow('INT1_EA', 3000, 1)

:INTRO1_20951
if 
  64@ == 1
goto_if_false @INTRO1_20985
Text.PrintNow('INT1_EB', 3000, 1)

:INTRO1_20985
if 
  64@ == 2
goto_if_false @INTRO1_21019
Text.PrintNow('INT1_EC', 3000, 1)

:INTRO1_21019
if 
  64@ == 3
goto_if_false @INTRO1_21053
Text.PrintNow('INT1_BD', 3000, 1)

:INTRO1_21053
if 
  92@ == 2
goto_if_false @INTRO1_21225
if 
  115@ == 1
goto_if_false @INTRO1_21225
if 
  64@ == 0
goto_if_false @INTRO1_21123
Text.PrintNow('INT1_EH', 3000, 1)

:INTRO1_21123
if 
  64@ == 1
goto_if_false @INTRO1_21157
Text.PrintNow('INT1_EG', 3000, 1)

:INTRO1_21157
if 
  64@ == 2
goto_if_false @INTRO1_21191
Text.PrintNow('INT1_EI', 3000, 1)

:INTRO1_21191
if 
  64@ == 3
goto_if_false @INTRO1_21225
Text.PrintNow('INT1_FG', 3000, 1)

:INTRO1_21225
gosub @INTRO1_22075
64@ += 1
if 
  64@ > 3
goto_if_false @INTRO1_21264
64@ = 0

:INTRO1_21264
TIMERA = 0
return 

:INTRO1_21273
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  92@ == 2
goto_if_false @INTRO1_21413
if 
  108@ == 1
goto_if_false @INTRO1_21413
if 
  87@ == 0
goto_if_false @INTRO1_21338
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10063)

:INTRO1_21338
if 
  87@ == 1
goto_if_false @INTRO1_21363
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10060)

:INTRO1_21363
if 
  87@ == 2
goto_if_false @INTRO1_21388
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10061)

:INTRO1_21388
if 
  87@ == 3
goto_if_false @INTRO1_21413
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10062)

:INTRO1_21413
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
gosub @INTRO1_21660
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
if 
  92@ == 2
goto_if_false @INTRO1_21612
if 
  108@ == 1
goto_if_false @INTRO1_21612
if 
  87@ == 0
goto_if_false @INTRO1_21510
Text.PrintNow('INT1_EJ', 3000, 1)

:INTRO1_21510
if 
  87@ == 1
goto_if_false @INTRO1_21544
Text.PrintNow('INT1_ED', 3000, 1)

:INTRO1_21544
if 
  87@ == 2
goto_if_false @INTRO1_21578
Text.PrintNow('INT1_EE', 3000, 1)

:INTRO1_21578
if 
  87@ == 3
goto_if_false @INTRO1_21612
Text.PrintNow('INT1_EF', 3000, 1)

:INTRO1_21612
gosub @INTRO1_22075
87@ += 1
if 
  87@ > 3
goto_if_false @INTRO1_21651
87@ = 0

:INTRO1_21651
TIMERA = 0
return 

:INTRO1_21660
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @INTRO1_22073
wait 0
if 
  Car.IsDead(37@)
goto_if_false @INTRO1_21695

:INTRO1_21695
if 
  Char.IsDead(65@)
goto_if_false @INTRO1_21736
Text.PrintNow('INT2_F1', 10000, 1)
45@ = 1
return 

:INTRO1_21736
if 
  Char.IsDead(66@)
goto_if_false @INTRO1_21777
Text.PrintNow('INT2_F3', 10000, 1)
45@ = 1
return 

:INTRO1_21777
if 
  92@ <> 2
goto_if_false @INTRO1_21836
if 
  Char.IsDead(67@)
goto_if_false @INTRO1_21836
Text.PrintNow('INT2_F2', 10000, 1)
45@ = 1
return 

:INTRO1_21836
if 
  92@ == 1
goto_if_false @INTRO1_21957
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_21957
if and
  Char.LocateAnyMeans3D($scplayer, 1644.773, -1051.334, 22.8984, 10.0, 12.0, 20.0, False)
  Char.LocateAnyMeans3D(67@, 1644.773, -1051.334, 22.8984, 10.0, 12.0, 20.0, False)
goto_if_false @INTRO1_21957
return 

:INTRO1_21957
if 
  92@ == 2
goto_if_false @INTRO1_22066
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_22066
if and
  Char.LocateAnyMeans3D($scplayer, 2493.82, -1669.91, 12.8, 4.0, 3.5, 4.0, True)
  Char.LocateAnyMeansChar3D($scplayer, 66@, 60.0, 60.0, 20.0, False)
goto_if_false @INTRO1_22066
return 

:INTRO1_22066
goto @INTRO1_21660

:INTRO1_22073
return 

:INTRO1_22075
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @INTRO1_22488
wait 0
if 
  Car.IsDead(37@)
goto_if_false @INTRO1_22110

:INTRO1_22110
if 
  Char.IsDead(65@)
goto_if_false @INTRO1_22151
Text.PrintNow('INT2_F1', 10000, 1)
45@ = 1
return 

:INTRO1_22151
if 
  Char.IsDead(66@)
goto_if_false @INTRO1_22192
Text.PrintNow('INT2_F3', 10000, 1)
45@ = 1
return 

:INTRO1_22192
if 
  92@ <> 2
goto_if_false @INTRO1_22251
if 
  Char.IsDead(67@)
goto_if_false @INTRO1_22251
Text.PrintNow('INT2_F2', 10000, 1)
45@ = 1
return 

:INTRO1_22251
if 
  92@ == 1
goto_if_false @INTRO1_22372
if 
  not Char.IsDead(67@)
goto_if_false @INTRO1_22372
if and
  Char.LocateAnyMeans3D($scplayer, 1644.773, -1051.334, 22.8984, 10.0, 12.0, 20.0, False)
  Char.LocateAnyMeans3D(67@, 1644.773, -1051.334, 22.8984, 10.0, 12.0, 20.0, False)
goto_if_false @INTRO1_22372
return 

:INTRO1_22372
if 
  92@ == 2
goto_if_false @INTRO1_22481
if 
  not Char.IsDead(66@)
goto_if_false @INTRO1_22481
if and
  Char.LocateAnyMeans3D($scplayer, 2493.82, -1669.91, 12.8, 4.0, 3.5, 4.0, True)
  Char.LocateAnyMeansChar3D($scplayer, 66@, 60.0, 60.0, 20.0, False)
goto_if_false @INTRO1_22481
return 

:INTRO1_22481
goto @INTRO1_22075

:INTRO1_22488
return 

//-------------Mission 12---------------
// Originally: Ryder

:INTRO2
script_name 'INTRO2'
gosub @INTRO2_908
if 
  has_deatharrest_been_executed 
goto_if_false @INTRO2_38
gosub @INTRO2_13667

:INTRO2_38
gosub @INTRO2_14795
terminate_this_script 

:INTRO2_47
switch_start 40@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @INTRO2_906 {caseNum1} 0 {caseLabel1} @INTRO2_110 {caseNum2} 1 {caseLabel2} @INTRO2_498 {caseNum3} 2 {caseLabel3} @INTRO2_600 {caseNum4} 3 {caseLabel4} @INTRO2_768 {caseNum5} 4 {caseLabel5} @INTRO2_848 {caseNum6} -1 {caseLabel6} @INTRO2_906 {caseNum7} -1 {caseLabel7} @INTRO2_906

:INTRO2_110
set_var_text_label s$6502[0] = 'INT2_CA'
set_var_text_label s$6502[1] = 'INT2_CB'
set_var_text_label s$6502[2] = 'INT2_CC'
set_var_text_label s$6502[3] = 'INT2_CD'
set_var_text_label s$6502[4] = 'INT2_CE'
set_var_text_label s$6502[5] = 'INT2_CF'
set_var_text_label s$6502[6] = 'INT2_CG'
set_var_text_label s$6502[7] = 'INT2_BA'
set_var_text_label s$6502[8] = 'INT2_BB'
set_var_text_label s$6502[9] = 'INT2_BC'
set_var_text_label s$6502[10] = 'INT2_BD'
set_var_text_label s$6502[11] = 'INT2_BE'
set_var_text_label s$6502[12] = 'INT2_BF'
set_var_text_label s$6502[13] = 'INT2_BG'
set_var_text_label s$6502[14] = 'INT2_BH'
set_var_text_label s$6502[15] = 'INT2_BJ'
set_var_text_label s$6502[16] = 'INT2_BK'
set_lvar_int_to_constant 70@ = 10204
set_lvar_int_to_constant 71@ = 10216
set_lvar_int_to_constant 72@ = 10217
set_lvar_int_to_constant 73@ = 10218
set_lvar_int_to_constant 74@ = 10205
set_lvar_int_to_constant 75@ = 10219
set_lvar_int_to_constant 76@ = 10220
set_lvar_int_to_constant 77@ = 10210
set_lvar_int_to_constant 78@ = 10200
set_lvar_int_to_constant 79@ = 10211
set_lvar_int_to_constant 80@ = 10201
set_lvar_int_to_constant 81@ = 10212
set_lvar_int_to_constant 82@ = 10202
set_lvar_int_to_constant 83@ = 10213
set_lvar_int_to_constant 84@ = 10214
set_lvar_int_to_constant 85@ = 10203
set_lvar_int_to_constant 86@ = 10215
50@ = 16
goto @INTRO2_906

:INTRO2_498
set_var_text_label s$6502[0] = 'INT2_FA'
set_var_text_label s$6502[1] = 'INT2_FB'
set_var_text_label s$6502[2] = 'INT2_FC'
set_var_text_label s$6502[3] = 'INT2_FD'
set_lvar_int_to_constant 70@ = 10225
set_lvar_int_to_constant 71@ = 10226
set_lvar_int_to_constant 72@ = 10227
set_lvar_int_to_constant 73@ = 10228
50@ = 3
goto @INTRO2_906

:INTRO2_600
set_var_text_label s$6502[0] = 'INT2_GA'
set_var_text_label s$6502[1] = 'INT2_GB'
set_var_text_label s$6502[2] = 'INT2_GC'
set_var_text_label s$6502[3] = 'INT2_GD'
set_var_text_label s$6502[4] = 'INT2_GE'
set_var_text_label s$6502[5] = 'INT2_GF'
set_var_text_label s$6502[6] = 'INT2_HB'
set_lvar_int_to_constant 70@ = 10229
set_lvar_int_to_constant 71@ = 10246
set_lvar_int_to_constant 72@ = 10230
set_lvar_int_to_constant 73@ = 10247
set_lvar_int_to_constant 74@ = 10206
set_lvar_int_to_constant 75@ = 10231
set_lvar_int_to_constant 76@ = 10232
50@ = 7
goto @INTRO2_906

:INTRO2_768
set_var_text_label s$6502[0] = 'INT2_NB'
set_var_text_label s$6502[1] = 'INT2_NC'
set_var_text_label s$6502[2] = 'INT2_ND'
set_lvar_int_to_constant 70@ = 10243
set_lvar_int_to_constant 71@ = 10244
set_lvar_int_to_constant 72@ = 10245
50@ = 2
goto @INTRO2_906

:INTRO2_848
set_var_text_label s$6502[0] = 'INT2_JA'
set_var_text_label s$6502[1] = 'INT2_JB'
set_lvar_int_to_constant 70@ = 10235
set_lvar_int_to_constant 71@ = 10236
50@ = 1
goto @INTRO2_906

:INTRO2_906
return 

:INTRO2_908
Stat.RegisterMissionGiven
$onmission = 1
36@ = 0
38@ = 0
$flag_changed_hair_intro2 = 0
59@ = 0
60@ = 0
$flag_menace_buyfood = 0
44@ = 0
66@ = 0
$cj_vomits_for_menace = 0
68@ = 0
61@ = 0
69@ = 0
48@ = 0
63@ = 0
57@ = 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0.05
91@ = 0.12
92@ = 0.0
Zone.SetGangStrength('IWD1', GangType.Ballas, 5)
Zone.SetGangStrength('IWD2', GangType.Ballas, 5)
Zone.SetGangStrength('IWD3A', GangType.Ballas, 5)
Zone.SetGangStrength('IWD3B', GangType.Ballas, 5)
Zone.SetGangStrength('IWD4', GangType.Ballas, 5)
Zone.SetGangStrength('IWD5', GangType.Ballas, 5)
wait 0
Text.LoadMissionText('INTRO2')
goto @INTRO2_1204
$clothes_hat_cam_pointY = Char.Create(PedType.Mission1, $shopkeeper_model_shops, $flag_bought_some_food, $vomit_foodshop, $vomitX)

:INTRO2_1204
Streaming.SetAreaVisible(2)
Cutscene.Load('INTRO2A')

:INTRO2_1219
if 
  not Cutscene.HasLoaded
goto_if_false @INTRO2_1243
wait 0
goto @INTRO2_1219

:INTRO2_1243
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:INTRO2_1252
if 
  not Cutscene.HasFinished
goto_if_false @INTRO2_1276
wait 0
goto @INTRO2_1252

:INTRO2_1276
Camera.DoFade(0, Fade.Out)

:INTRO2_1282
if 
  Camera.GetFadingStatus
goto_if_false @INTRO2_1306
wait 0
goto @INTRO2_1282

:INTRO2_1306
Cutscene.Clear
Player.SetControl($player1, False)
Streaming.SetAreaVisible(0)
Blip.Remove($spray_shop1)
Streaming.LoadSpecialCharacter(1, 'RYDER2')
Streaming.RequestModel(600)
Streaming.RequestModel(#CIGAR)
Streaming.RequestModel(#CIGAR_GLOW)
Streaming.LoadAllModelsNow

:INTRO2_1352
if or
  not Streaming.HasModelLoaded(600)
  not Streaming.HasModelLoaded(#CIGAR)
  not Streaming.HasModelLoaded(#CIGAR_GLOW)
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @INTRO2_1391
wait 0
goto @INTRO2_1352

:INTRO2_1391
World.SwitchEntryExit('BARBERS', False)
World.SwitchEntryExit('BARBER2', False)
World.SwitchEntryExit('BARBER3', False)
World.SwitchEntryExit('FDPIZA', False)
World.SwitchEntryExit('FDCHICK', False)
World.SwitchEntryExit('FDBURG', False)
Char.ClearTasks($scplayer)
Char.ClearTasksImmediately($scplayer)
CarGenerator.Switch($gen_car5, 0)
World.ClearArea($ryder_carX, $ryder_carY, $ryder_carZ, 6.0, True)
Car.CustomPlateForNextCar(600, "_SHERM__")
$ryder_car = Car.Create(600, $ryder_carX, $ryder_carY, $ryder_carZ)
Car.SetCanBurstTires($ryder_car, False)
Car.ChangeColor($ryder_car, 84, 84)
Car.SetHeading($ryder_car, 0.0)
Car.SetCanBeVisiblyDamaged($ryder_car, False)
Audio.SetRadioChannel(RadioChannel.RadioLosSantos)
$ryder = Char.Create(PedType.Mission1, 290, 2475.29, -1687.85, 12.51)
67@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Char.SetDecisionMaker($ryder, 67@)
Char.SetAnimGroup($ryder, "GANG1")
Char.SetHeading($scplayer, 176.0)
Char.SetNeverTargeted($ryder, True)
Char.SetHealth($ryder, 500)
Char.SetMaxHealth($ryder, 500)
Char.SetSuffersCriticalHits($ryder, False)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger($ryder, $ryder_car, 20000, 0)
Char.SetCantBeDraggedOut($ryder, True)
Char.SetStayInCarWhenJacked($ryder, True)
Char.SetGetOutUpsideDownCar($ryder, False)
37@ = Blip.AddForCar($ryder_car)
Blip.SetAsFriendly(37@, True)
34@ = Blip.AddForCoord(2074.4, -1800.8, 12.5)
Blip.Remove(34@)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10209)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 2464.03, -1687.61, 12.51)
Char.SetHeading($scplayer, 252.27)
Streaming.SetAreaVisible(0)
Streaming.LoadScene(2464.03, -1687.61, 12.51)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(1000, Fade.In)
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_1851
goto @INTRO2_13667

:INTRO2_1851
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_1874
goto @INTRO2_13667

:INTRO2_1874
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @INTRO2_1978
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_1932
Text.PrintNow('INT2_12', 10000, 1)
goto @INTRO2_13667

:INTRO2_1932
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_1971
Text.PrintNow('INT2_11', 10000, 1)
goto @INTRO2_13667

:INTRO2_1971
goto @INTRO2_1874

:INTRO2_1978
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('INT2_AA', 10000, 1)

:INTRO2_1998
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @INTRO2_2102
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_2056
Text.PrintNow('INT2_12', 10000, 1)
goto @INTRO2_13667

:INTRO2_2056
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_2095
Text.PrintNow('INT2_11', 10000, 1)
goto @INTRO2_13667

:INTRO2_2095
goto @INTRO2_1998

:INTRO2_2102
$blob_flag = 0
49@ = 0
56@ = 0
64@ = 0
40@ = 0
gosub @INTRO2_47
Text.ClearThisPrint('INT2_1')
Text.PrintNow('INT2_6', 6000, 1)
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_2210
Text.PrintNow('INT2_12', 10000, 1)
goto @INTRO2_13667

:INTRO2_2210
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_2249
Text.PrintNow('INT2_11', 10000, 1)
goto @INTRO2_13667

:INTRO2_2249
$flag_player_on_menace_mission = 1

:INTRO2_2256
if or
  not Car.Locate3D($ryder_car, 2077.84, -1792.59, 12.38, 4.0, 4.0, 4.0, $blob_flag)
  not Char.IsSittingInCar($scplayer, $ryder_car)
  not Char.IsInCar($ryder, $ryder_car)
  not Car.IsOnAllWheels($ryder_car)
goto_if_false @INTRO2_2886
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @INTRO2_2352
goto @INTRO2_13692

:INTRO2_2352
if 
  48@ == 0
goto_if_false @INTRO2_2436
if 
  Char.LocateAnyMeans3D($scplayer, 2077.84, -1792.59, 12.38, 15.0, 15.0, 4.0, False)
goto_if_false @INTRO2_2436
Text.PrintHelp('HELP44B')
48@ = 1

:INTRO2_2436
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_2475
Text.PrintNow('INT2_12', 10000, 1)
goto @INTRO2_13667

:INTRO2_2475
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_2521
Text.PrintNow('INT2_11', 10000, 1)
goto @INTRO2_13667
goto @INTRO2_2724

:INTRO2_2521
if 
  Char.IsInCar($scplayer, $ryder_car)
goto_if_false @INTRO2_2632
if 
  38@ == 0
goto_if_false @INTRO2_2625
Blip.Remove(37@)
Blip.Remove(34@)
34@ = Blip.AddForCoord(2077.84, -1792.59, 12.56)
$blob_flag = 1
Text.PrintNow('HOOD2_A', 6000, 1)
TIMERB = 0
38@ = 1

:INTRO2_2625
goto @INTRO2_2724

:INTRO2_2632
if 
  38@ == 1
goto_if_false @INTRO2_2724
Blip.Remove(34@)
Blip.Remove(37@)
37@ = Blip.AddForCar($ryder_car)
Blip.SetAsFriendly(37@, True)
$blob_flag = 0
gosub @INTRO2_15095
Text.PrintNow('INT2_6', 6000, 1)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
38@ = 0

:INTRO2_2724
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_2801
if 
  not Car.IsDead($ryder_car)
goto_if_false @INTRO2_2801
if 
  Char.IsInCar($scplayer, $ryder_car)
goto_if_false @INTRO2_2801
if 
  TIMERB > 3000
goto_if_false @INTRO2_2801
gosub @INTRO2_15999

:INTRO2_2801
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_2840
Text.PrintNow('INT2_12', 10000, 1)
goto @INTRO2_13667

:INTRO2_2840
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_2879
Text.PrintNow('INT2_11', 10000, 1)
goto @INTRO2_13667

:INTRO2_2879
goto @INTRO2_2256

:INTRO2_2886
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Text.ClearHelp
World.SwitchEntryExit('BARBERS', True)
Camera.SetFixedPosition(2086.424, -1783.578, 16.9391, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2085.603, -1784.143, 16.8617, SwitchType.JumpCut)
TIMERB = 0

:INTRO2_2970
if 
  3000 > TIMERB
goto_if_false @INTRO2_3058
wait 0
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_3051
if 
  not Car.IsDead($ryder_car)
goto_if_false @INTRO2_3051
if 
  Char.IsInCar($scplayer, $ryder_car)
goto_if_false @INTRO2_3051
gosub @INTRO2_15999

:INTRO2_3051
goto @INTRO2_2970

:INTRO2_3058
skip_cutscene_start_internal @INTRO2_3229
Camera.SetFixedPosition(2075.418, -1794.748, 14.3637, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2074.44, -1794.564, 14.2591, SwitchType.JumpCut)
Text.PrintHelp('INT2_8')
Player.SetControl($player1, True)
TIMERB = 0

:INTRO2_3141
if 
  3000 > TIMERB
goto_if_false @INTRO2_3229
wait 0
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_3222
if 
  not Car.IsDead($ryder_car)
goto_if_false @INTRO2_3222
if 
  Char.IsInCar($scplayer, $ryder_car)
goto_if_false @INTRO2_3222
gosub @INTRO2_15999

:INTRO2_3222
goto @INTRO2_3141

:INTRO2_3229
skip_cutscene_end 
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Blip.Remove(34@)
34@ = Blip.AddForCoord(413.6397, -19.9389, 1000.812)
Blip.SetEntryExit(34@, 2073.042, -1794.563, 20.0)
$flag_changed_hair_intro2 = 0

:INTRO2_3298
if or
  $flag_changed_hair_intro2 == 0
  not Char.LocateOnFoot3D($scplayer, 2072.11, -1793.8, 12.56, 10.0, 10.0, 3.0, False)
goto_if_false @INTRO2_3809
wait 0
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_3396
Text.PrintNow('INT2_11', 10000, 1)
goto @INTRO2_13667

:INTRO2_3396
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_3435
Text.PrintNow('INT2_12', 10000, 1)
goto @INTRO2_13667

:INTRO2_3435
if 
  57@ == 0
goto_if_false @INTRO2_3525
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_3525
if 
  not Car.IsDead($ryder_car)
goto_if_false @INTRO2_3525
if 
  Char.IsInCar($scplayer, $ryder_car)
goto_if_false @INTRO2_3518
gosub @INTRO2_15999
goto @INTRO2_3525

:INTRO2_3518
57@ = 1

:INTRO2_3525
58@ = Streaming.GetAreaVisible()
if 
  58@ == 2
goto_if_false @INTRO2_3654
if 
  59@ == 0
goto_if_false @INTRO2_3647
if 
  Char.LocateOnFoot3D($scplayer, 411.68, -21.77, 1000.79, 10.0, 10.0, 3.0, False)
goto_if_false @INTRO2_3647
Text.ClearPrints
Text.PrintNow('INT2_9', 5000, 1)
Streaming.RequestAnimation("SHOP")
59@ = 1

:INTRO2_3647
goto @INTRO2_3743

:INTRO2_3654
if 
  59@ == 1
goto_if_false @INTRO2_3743
if 
  Char.LocateOnFoot3D($scplayer, 2072.11, -1793.8, 12.56, 10.0, 10.0, 3.0, False)
goto_if_false @INTRO2_3743
Text.PrintNow('INT2_8', 10000, 1)
59@ = 0

:INTRO2_3743
if 
  $flag_changed_hair_intro2 == 0
goto_if_false @INTRO2_3802
if 
  $flag_attacked_keeper_food == 1
goto_if_false @INTRO2_3802
Text.PrintNow('INT2_14', 10000, 1)
goto @INTRO2_13667

:INTRO2_3802
goto @INTRO2_3298

:INTRO2_3809
Camera.DoFade(0, Fade.Out)
Text.ClearPrints
Blip.Remove(34@)
World.SwitchEntryExit('FDPIZA', True)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
World.ClearArea(2072.04, -1800.92, 12.55, 200.0, True)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
Camera.SetNearClip(0.2)
Task.StandStill($scplayer, 10)

:INTRO2_3898
if 
  not Streaming.HasAnimationLoaded("SHOP")
goto_if_false @INTRO2_3934
wait 0
Camera.DoFade(0, Fade.Out)
goto @INTRO2_3898

:INTRO2_3934
if 
  not Car.IsDead($ryder_car)
goto_if_false @INTRO2_4403
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_4373

:INTRO2_3966
if 
  Car.IsWaitingForWorldCollision($ryder_car)
goto_if_false @INTRO2_4038
wait 0
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_4025
Text.PrintNow('INT2_11', 10000, 1)
goto @INTRO2_13667

:INTRO2_4025
Camera.DoFade(0, Fade.Out)
goto @INTRO2_3966

:INTRO2_4038
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_4270
Char.SetCoordinates($scplayer, 2072.55, -1794.67, 12.56)
Char.SetHeading($scplayer, 240.55)
Char.ClearTasksImmediately($ryder)
if 
  Char.IsInAnyCar($ryder)
goto_if_false @INTRO2_4132
Char.WarpFromCarToCoord($ryder, 2076.492, -1796.413, 12.5545)
goto @INTRO2_4152

:INTRO2_4132
Char.SetCoordinates($ryder, 2076.492, -1796.413, 12.5545)

:INTRO2_4152
Char.SetHeading($ryder, 80.0)
Char.SetHealth($ryder, 500)
46@ = Object.Create(#CIGAR, 2440.58, -1979.89, 14.2)
Task.PickUpObject($ryder, 46@, 0.04, 0.1, -0.02, 5, 16, "NULL", "NULL", -1)
Task.PlayAnim($ryder, "SMOKE_RYD", "SHOP", 4.0, True, False, False, False, -1)

:INTRO2_4270
if 
  not Car.IsDead($ryder_car)
goto_if_false @INTRO2_4340
World.ClearArea(2078.09, -1796.21, 12.3828, 100.0, True)
Car.SetCoordinates($ryder_car, 2078.09, -1796.21, 12.3828)
Car.SetHeading($ryder_car, 176.9536)

:INTRO2_4340
Car.FixDoor($ryder_car, CarDoor.LeftFrontDoor)
Car.FixDoor($ryder_car, CarDoor.RightFrontDoor)
Car.CloseAllDoors($ryder_car)
Car.LockDoors($ryder_car, CarLock.LockoutPlayerOnly)
goto @INTRO2_4396

:INTRO2_4373
Text.PrintNow('INT2_12', 10000, 1)
goto @INTRO2_13667

:INTRO2_4396
goto @INTRO2_4426

:INTRO2_4403
Text.PrintNow('INT2_11', 10000, 1)
goto @INTRO2_13667

:INTRO2_4426
TIMERA = 0

:INTRO2_4433
if 
  TIMERA <= 400
goto_if_false @INTRO2_4469
wait 0
Camera.DoFade(0, Fade.Out)
goto @INTRO2_4433

:INTRO2_4469
Text.ClearPrints
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_4535
45@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2075.53, -1796.32, 12.55, MoveState.Walk, 10000)
Char.ClearLookAt(-1)
Task.LookAtChar(-1, $ryder, 4500)
Sequence.Close(45@)

:INTRO2_4535
Char.PerformSequence($scplayer, 45@)
Sequence.Clear(45@)
Camera.SetFixedPosition(2074.866, -1800.882, 13.4518, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2075.067, -1799.903, 13.4124, SwitchType.JumpCut)
Text.ClearPrints
Camera.DoFade(500, Fade.In)
63@ = 0
49@ = 0
56@ = 0
64@ = 0
40@ = 1
gosub @INTRO2_47
TIMERA = 0

:INTRO2_4657
if 
  TIMERA <= 1700
goto_if_false @INTRO2_4694
wait 0
gosub @INTRO2_15690
goto @INTRO2_4657

:INTRO2_4694
if 
  $can_skip_smoking_cutscene == 1
goto_if_false @INTRO2_4719
skip_cutscene_start_internal @INTRO2_6566

:INTRO2_4719
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_4751
Char.ClearLookAt($ryder)
Task.LookAtChar($ryder, $scplayer, 2000)

:INTRO2_4751
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_4804
55@ = Particle.CreateOnChar("EXHALE", $ryder, 90@, 91@, 92@, 1)
Particle.AttachToCharBone(55@, $ryder, 5)

:INTRO2_4804
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_4825
Char.StopFacialTalk($ryder)

:INTRO2_4825
if or
  Player.IsWearing($player1, 1, "TASH")
  Player.IsWearing($player1, 1, "GOATEE")
  Player.IsWearing($player1, 1, "BEARD")
  Player.IsWearing($player1, 1, "PLAYER_FACE")
  Player.IsWearing($player1, 1, "HIGHFADE")
  Player.IsWearing($player1, 1, "FLATTOP")
goto_if_false @INTRO2_5442
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10221)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10222)
64@ = 0

:INTRO2_4952
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @INTRO2_5021
wait 0
gosub @INTRO2_15690
if 
  64@ == 0
goto_if_false @INTRO2_5014
if 
  56@ == 2
goto_if_false @INTRO2_5014

:INTRO2_5014
goto @INTRO2_4952

:INTRO2_5021
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('INT2_DA', 10000, 1)
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_5065
Char.StartFacialTalk($ryder, 2000)

:INTRO2_5065
64@ = 0

:INTRO2_5072
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @INTRO2_5141
wait 0
gosub @INTRO2_15690
if 
  64@ == 0
goto_if_false @INTRO2_5134
if 
  56@ == 2
goto_if_false @INTRO2_5134

:INTRO2_5134
goto @INTRO2_5072

:INTRO2_5141
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_5162
Char.StopFacialTalk($ryder)

:INTRO2_5162
Camera.SetFixedPosition(2074.827, -1797.414, 14.233, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2075.432, -1796.664, 13.9678, SwitchType.JumpCut)
wait 1000
64@ = 0

:INTRO2_5225
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @INTRO2_5294
wait 0
gosub @INTRO2_15690
if 
  64@ == 0
goto_if_false @INTRO2_5287
if 
  56@ == 2
goto_if_false @INTRO2_5287

:INTRO2_5287
goto @INTRO2_5225

:INTRO2_5294
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('INT2_DB', 10000, 1)
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_5338
Char.StartFacialTalk($ryder, 2000)

:INTRO2_5338
64@ = 0

:INTRO2_5345
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @INTRO2_5414
wait 0
gosub @INTRO2_15690
if 
  64@ == 0
goto_if_false @INTRO2_5407
if 
  56@ == 2
goto_if_false @INTRO2_5407

:INTRO2_5407
goto @INTRO2_5345

:INTRO2_5414
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_5435
Char.StopFacialTalk($ryder)

:INTRO2_5435
goto @INTRO2_5731

:INTRO2_5442
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10224)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 65535)
64@ = 0

:INTRO2_5465
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @INTRO2_5534
wait 0
gosub @INTRO2_15690
if 
  64@ == 0
goto_if_false @INTRO2_5527
if 
  56@ == 2
goto_if_false @INTRO2_5527

:INTRO2_5527
goto @INTRO2_5465

:INTRO2_5534
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('INT2_EA', 10000, 1)
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_5578
Char.StartFacialTalk($ryder, 2000)

:INTRO2_5578
64@ = 0

:INTRO2_5585
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @INTRO2_5654
wait 0
gosub @INTRO2_15690
if 
  64@ == 0
goto_if_false @INTRO2_5647
if 
  56@ == 2
goto_if_false @INTRO2_5647

:INTRO2_5647
goto @INTRO2_5585

:INTRO2_5654
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_5675
Char.StopFacialTalk($ryder)

:INTRO2_5675
Camera.SetFixedPosition(2075.19, -1797.282, 14.4799, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2075.638, -1796.471, 14.103, SwitchType.JumpCut)
wait 1000

:INTRO2_5731
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_5752
Char.StopFacialTalk($ryder)

:INTRO2_5752
TIMERA = 0

:INTRO2_5759
if 
  TIMERA <= 1000
goto_if_false @INTRO2_5796
wait 0
gosub @INTRO2_15690
goto @INTRO2_5759

:INTRO2_5796
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_5817
Char.StopFacialTalk($ryder)

:INTRO2_5817
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_5861
Char.ClearLookAt($ryder)
Task.LookAtCoord($ryder, 2102.0, -1806.0, 14.0, 3000)

:INTRO2_5861
64@ = 0

:INTRO2_5868
if 
  49@ <> 1
goto_if_false @INTRO2_5954
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_5940
if 
  56@ == 2
goto_if_false @INTRO2_5940
64@ = 1

:INTRO2_5940
gosub @INTRO2_15690
goto @INTRO2_5868

:INTRO2_5954
Char.ClearLookAt($scplayer)
Task.LookAtCoord($scplayer, 2102.0, -1806.0, 14.0, 3000)
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2074.23, -1795.03, 14.4282, 2074.983, -1798.671, 14.4451, 12000, True)
Camera.SetVectorTrack(2077.167, -1795.729, 14.1884, 2075.973, -1798.734, 14.5649, 12000, True)
64@ = 0

:INTRO2_6073
if 
  49@ <> 2
goto_if_false @INTRO2_6175
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_6161
if 
  56@ == 2
goto_if_false @INTRO2_6161
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_6154

:INTRO2_6154
64@ = 1

:INTRO2_6161
gosub @INTRO2_15690
goto @INTRO2_6073

:INTRO2_6175
TIMERB = 0
64@ = 0

:INTRO2_6189
if 
  49@ <> 3
goto_if_false @INTRO2_6291
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_6277
if 
  56@ == 2
goto_if_false @INTRO2_6277
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_6270

:INTRO2_6270
64@ = 1

:INTRO2_6277
gosub @INTRO2_15690
goto @INTRO2_6189

:INTRO2_6291
64@ = 0

:INTRO2_6298
if 
  49@ <> 4
goto_if_false @INTRO2_6400
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_6386
if 
  56@ == 2
goto_if_false @INTRO2_6386
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_6379

:INTRO2_6379
64@ = 1

:INTRO2_6386
gosub @INTRO2_15690
goto @INTRO2_6298

:INTRO2_6400
if 
  TIMERB <= 18000
goto_if_false @INTRO2_6548
wait 0
if 
  44@ == 0
goto_if_false @INTRO2_6482
if 
  TIMERB > 7500
goto_if_false @INTRO2_6482
Text.PrintHelp('FUDHLP1')
Hud.FlashObject(HudObject.Health)
44@ = 1

:INTRO2_6482
if 
  44@ == 1
goto_if_false @INTRO2_6541
if 
  TIMERB > 13500
goto_if_false @INTRO2_6541
Text.PrintHelp('FUDHLP2')
Hud.FlashObject(-1)
44@ = 2

:INTRO2_6541
goto @INTRO2_6400

:INTRO2_6548
if 
  $can_skip_smoking_cutscene == 1
goto_if_false @INTRO2_6576

:INTRO2_6566
skip_cutscene_end 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)

:INTRO2_6576
Text.ClearHelp
Camera.ResetNewScriptables
Text.PrintNow('HOOD2_B', 10000, 1)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
if 
  not Car.IsDead($ryder_car)
goto_if_false @INTRO2_6634
Car.SetCanBeVisiblyDamaged($ryder_car, True)

:INTRO2_6634
Blip.Remove(34@)
34@ = Blip.AddForCoord(372.9, -118.8, 1000.57)
Blip.SetEntryExit(34@, 2103.376, -1806.311, 20.0)
59@ = 0
$flag_menace_buyfood = 1
World.SetCarDensityMultiplier(0.5)
World.SetPedDensityMultiplier(0.5)
TIMERB = 0
$blob_flag = 1

:INTRO2_6721
if or
  not Char.LocateStoppedOnFoot3D($scplayer, $keep_offX, $keep_offY, $keep_offZ, 1.0, 1.0, 3.0, False)
  $flag_menace_buyfood <> 3
goto_if_false @INTRO2_7480
wait 0
if 
  87@ == 0
goto_if_false @INTRO2_6829
if 
  TIMERB > 2000
goto_if_false @INTRO2_6829
Text.PrintHelp('FUDHLP3')
87@ = 1

:INTRO2_6829
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_6868
Text.PrintNow('INT2_11', 10000, 1)
goto @INTRO2_13667

:INTRO2_6868
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_6907
Text.PrintNow('INT2_12', 10000, 1)
goto @INTRO2_13667

:INTRO2_6907
gosub @INTRO2_15690
if 
  $flag_menace_buyfood <> 3
goto_if_false @INTRO2_7083
if 
  $clothes_hat_cam_pointZ == 1
goto_if_false @INTRO2_7083
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @INTRO2_6996
Text.PrintNow('INT2_10', 10000, 1)
goto @INTRO2_13667
goto @INTRO2_7083

:INTRO2_6996
if 
  not Char.IsHealthGreater($clothes_hat_cam_pointY, 99)
goto_if_false @INTRO2_7083
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @INTRO2_7083
Char.GiveWeapon($clothes_hat_cam_pointY, WeaponType.Shotgun, 30)
Char.SetCurrentWeapon($clothes_hat_cam_pointY, WeaponType.Shotgun)
Char.SetRelationship($clothes_hat_cam_pointY, RelationshipType.Hate, PedType.Player1)
wait 1000
Text.PrintNow('INT2_14', 10000, 1)
goto @INTRO2_13667

:INTRO2_7083
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_7209
if 
  not Car.IsDead($ryder_car)
goto_if_false @INTRO2_7209
if 
  68@ == 0
goto_if_false @INTRO2_7209
if or
  not Car.Locate3D($ryder_car, 2078.09, -1796.2, 12.38, 0.2, 0.2, 2.0, False)
  not Char.IsHealthGreater($ryder, 499)
goto_if_false @INTRO2_7209
Task.EnterCarAsPassenger($ryder, $ryder_car, 20000, 0)
68@ = 1

:INTRO2_7209
58@ = Streaming.GetAreaVisible()
if 
  58@ == 5
goto_if_false @INTRO2_7405
if 
  59@ == 0
goto_if_false @INTRO2_7309
Streaming.RequestAnimation("GANGS")
Streaming.RequestAnimation("FOOD")
Streaming.RequestModel(346)
Streaming.RequestModel(349)
Streaming.LoadSpecialCharacter(2, 'RYDER3')
Streaming.RequestModel(155)
TIMERA = 0
59@ = 1

:INTRO2_7309
if 
  59@ == 1
goto_if_false @INTRO2_7398
if 
  Char.LocateOnFoot3D($scplayer, 372.05, -130.63, 1000.49, 20.0, 20.0, 3.0, False)
goto_if_false @INTRO2_7398
Text.PrintNow('INT2_13', 5000, 1)
59@ = 2

:INTRO2_7398
goto @INTRO2_7432

:INTRO2_7405
if 
  59@ == 2
goto_if_false @INTRO2_7432
Text.ClearPrints
59@ = 1

:INTRO2_7432
if 
  $lv_arm_LOD == 1
goto_if_false @INTRO2_7473
Text.PrintNow('INT2_14', 10000, 1)
goto @INTRO2_13667

:INTRO2_7473
goto @INTRO2_6721

:INTRO2_7480
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Text.ClearPrints
Camera.SetNearClip(0.1)
Particle.Stop(55@)
Streaming.MarkModelAsNoLongerNeeded(#CIGAR)
Streaming.MarkModelAsNoLongerNeeded(#CIGAR_GLOW)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1828)

:INTRO2_7520
if or
  not Streaming.HasAnimationLoaded("FOOD")
  not Streaming.HasAnimationLoaded("GANGS")
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasModelLoaded(155)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(349)
goto_if_false @INTRO2_7697
wait 0
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_7610
Text.PrintNow('INT2_11', 10000, 1)
goto @INTRO2_13667

:INTRO2_7610
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_7649
Text.PrintNow('INT2_12', 10000, 1)
goto @INTRO2_13667

:INTRO2_7649
if 
  $lv_arm_LOD == 1
goto_if_false @INTRO2_7690
Text.PrintNow('INT2_14', 10000, 1)
goto @INTRO2_13667

:INTRO2_7690
goto @INTRO2_7520

:INTRO2_7697
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_7816
Char.DropObject($ryder, True)
Char.ClearTasksImmediately($ryder)
Task.StandStill($ryder, 100)
Char.SetCoordinates($ryder, 375.7327, -125.2345, 1000.53)
Char.SetHeading($ryder, 201.2298)
Char.SetHealth($ryder, 500)
Char.SetMaxHealth($ryder, 500)
Task.PlayAnim($ryder, "ROB_SHIFTY", "SHOP", 4.0, False, False, False, False, -1)

:INTRO2_7816
World.ClearArea(372.9, -118.8, 1000.57, 20.0, True)
World.ClearArea(369.058, -4.92, 1000.883, 20.0, True)
35@ = Char.Create(PedType.Mission1, 155, 373.14, -117.11, 1000.57)
Char.SetHeading(35@, 180.0)
43@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
Char.SetDecisionMaker(35@, 43@)
Char.ClearLookAt(35@)
Task.LookAtChar(35@, $scplayer, 4700)
Task.TurnCharToFaceChar(35@, $scplayer)
Char.SetCoordinates($scplayer, 372.9, -118.8, 1000.57)
Task.TurnCharToFaceChar($scplayer, 35@)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
51@ = Sequence.Open()
Task.GoStraightToCoord(-1, 375.2, -119.8, 1000.5, MoveState.Walk, 7000)
Task.PlayAnim(-1, "ROB_STICKUP_IN", "SHOP", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "ROB_LOOP_THREAT", "SHOP", 4.0, True, False, False, False, -1)
Sequence.Close(51@)
49@ = 0
56@ = 0
64@ = 0
40@ = 2
gosub @INTRO2_47
wait 200
if 
  $cj_vomits_for_menace == 0
goto_if_false @INTRO2_8192
Task.PlayAnim($scplayer, "EAT_PIZZA", "FOOD", 4.0, False, False, False, False, -1)
goto @INTRO2_8332

:INTRO2_8192
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
set_lvar_float_to_var_float 90@ = $player_x
90@ += 0.355
set_lvar_float_to_var_float 91@ = $player_y
91@ -= 0.116
set_lvar_float_to_var_float 92@ = $player_z
92@ -= 0.048
62@ = Particle.Create("PUKE", 90@, 91@, 92@, 1)
Task.PlayAnimNonInterruptable($scplayer, "EAT_VOMIT_P", "FOOD", 4.0, False, False, False, False, -1)
$sample_name_shop = Char.SetSayContext($scplayer, 348)

:INTRO2_8332
Camera.DoFade(500, Fade.In)
Audio.SetMusicDoesFade(True)
Camera.SetFixedPosition(376.4939, -126.0317, 1002.396, 0.0, 0.0, 0.0)
Camera.PointAtPoint(375.9087, -125.2215, 1002.361, SwitchType.JumpCut)
wait 4500
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(377.0709, -121.8843, 1000.714, 377.3563, -119.1986, 1002.57, 7000, True)
Camera.SetVectorTrack(376.4134, -122.6288, 1000.598, 376.423, -119.1806, 1002.211, 7000, True)
Char.Delete($ryder)
Streaming.UnloadSpecialCharacter(1)
$ryder = Char.Create(PedType.Mission1, 291, 376.3327, -125.2345, 1000.53)
Char.SetAnimGroup($ryder, "GANG1")
Char.SetNeverTargeted($ryder, True)
Char.SetHealth($ryder, 500)
Char.SetMaxHealth($ryder, 500)
Char.SetSuffersCriticalHits($ryder, False)
Char.SetCantBeDraggedOut($ryder, True)
Char.SetStayInCarWhenJacked($ryder, True)
Char.SetDecisionMaker($ryder, 67@)
Char.SetGetOutUpsideDownCar($ryder, False)
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_8649
Char.GiveWeapon($ryder, WeaponType.Pistol, 30)
Char.SetCurrentWeapon($ryder, WeaponType.Pistol)
if 
  not Char.IsDead(35@)
goto_if_false @INTRO2_8649
Char.PerformSequence($ryder, 51@)
Sequence.Clear(51@)

:INTRO2_8649
41@ = 0
skip_cutscene_start_internal @INTRO2_10954
TIMERA = 0
63@ = 0

:INTRO2_8677
if 
  not Char.LocateAnyMeans3D($ryder, 375.2, -119.8, 1000.5, 0.4, 0.6, 2.0, False)
goto_if_false @INTRO2_9124
wait 0
if 
  Char.IsPlayingAnim($scplayer, "EAT_VOMIT_P")
goto_if_false @INTRO2_8899
93@ = Char.GetAnimCurrentTime($scplayer, "EAT_VOMIT_P")
if 
  63@ == 0
goto_if_false @INTRO2_8848
if 
  93@ >= 0.463
goto_if_false @INTRO2_8848
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @INTRO2_8841
Audio.ReportMissionAudioEventAtChar($scplayer, 1169)

:INTRO2_8841
63@ = 1

:INTRO2_8848
if 
  63@ == 1
goto_if_false @INTRO2_8899
if 
  93@ >= 0.52
goto_if_false @INTRO2_8899
Particle.Play(62@)
63@ = 2

:INTRO2_8899
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_8938
Text.PrintNow('INT2_11', 10000, 1)
goto @INTRO2_13667

:INTRO2_8938
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_8977
Text.PrintNow('INT2_12', 10000, 1)
goto @INTRO2_13667

:INTRO2_8977
if 
  $lv_arm_LOD == 1
goto_if_false @INTRO2_9018
Text.PrintNow('INT2_14', 10000, 1)
goto @INTRO2_13667

:INTRO2_9018
if 
  69@ == 0
goto_if_false @INTRO2_9117
if 
  TIMERA > 1000
goto_if_false @INTRO2_9117
if 
  $cj_vomits_for_menace == 0
goto_if_false @INTRO2_9110
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 4.0, False, False, False, False, 3000)

:INTRO2_9110
69@ = 1

:INTRO2_9117
goto @INTRO2_8677

:INTRO2_9124
if 
  not Char.IsDead(35@)
goto_if_false @INTRO2_9253
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_9253
Char.ClearTasks(35@)
Char.ClearLookAt(35@)
Task.LookAtChar(35@, $ryder, 12500)
Task.StandStill($scplayer, 100)
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, $ryder, 10000)
Char.SetHeading(35@, 200.0)
Task.PlayAnim(35@, "SHP_ROB_HANDSUP", "SHOP", 4.0, True, False, False, False, -1)

:INTRO2_9253
$iSetPizzaPanic = 1
64@ = 0

:INTRO2_9267
if 
  49@ <> 1
goto_if_false @INTRO2_9378
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_9371
if 
  56@ == 2
goto_if_false @INTRO2_9371
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_9364
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, $ryder, 6000)

:INTRO2_9364
64@ = 1

:INTRO2_9371
goto @INTRO2_9267

:INTRO2_9378
64@ = 0

:INTRO2_9385
if 
  49@ <> 2
goto_if_false @INTRO2_9548
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_9541
if 
  56@ == 2
goto_if_false @INTRO2_9541
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_9502
Task.PlayAnim($ryder, "ROB_LOOP", "SHOP", 4.0, True, False, False, False, -1)

:INTRO2_9502
if 
  not Char.IsDead(35@)
goto_if_false @INTRO2_9534
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, 35@, 6000)

:INTRO2_9534
64@ = 1

:INTRO2_9541
goto @INTRO2_9385

:INTRO2_9548
64@ = 0

:INTRO2_9555
if 
  49@ <> 3
goto_if_false @INTRO2_9778
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_9771
if 
  56@ == 2
goto_if_false @INTRO2_9771
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_9679
Task.PlayAnim($ryder, "ROB_LOOP_THREAT", "SHOP", 4.0, True, False, False, False, -1)

:INTRO2_9679
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_9711
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, $ryder, 6000)

:INTRO2_9711
Camera.ResetNewScriptables
Camera.SetFixedPosition(374.9156, -121.7312, 1002.5, 0.0, 0.0, 0.0)
Camera.PointAtPoint(374.7307, -120.7778, 1002.262, SwitchType.JumpCut)
64@ = 1

:INTRO2_9771
goto @INTRO2_9555

:INTRO2_9778
64@ = 0

:INTRO2_9785
if 
  49@ <> 4
goto_if_false @INTRO2_9948
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_9941
if 
  56@ == 2
goto_if_false @INTRO2_9941
if 
  not Char.IsDead(35@)
goto_if_false @INTRO2_9882
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, 35@, 6000)

:INTRO2_9882
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_9934
Task.PlayAnim($ryder, "ROB_LOOP", "SHOP", 4.0, True, False, False, False, -1)

:INTRO2_9934
64@ = 1

:INTRO2_9941
goto @INTRO2_9785

:INTRO2_9948
42@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.PlayAnim(-1, "ROB_2IDLE", "SHOP", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKH", "GANGS", 4.0, False, False, False, False, -1)
Sequence.Close(42@)
64@ = 0

:INTRO2_10050
if 
  49@ <> 5
goto_if_false @INTRO2_10289
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_10282
if 
  56@ == 2
goto_if_false @INTRO2_10282
Camera.SetFixedPosition(371.562, -120.1569, 1002.404, 0.0, 0.0, 0.0)
Camera.PointAtPoint(372.4125, -119.6767, 1002.19, SwitchType.JumpCut)
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_10275
Char.ClearTasks($scplayer)
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, $ryder, 10000)
Char.ClearTasks($ryder)
Char.ClearLookAt($ryder)
Task.LookAtChar($ryder, $scplayer, 10000)
Task.TurnCharToFaceChar($scplayer, $ryder)
Task.PlayAnim($scplayer, "PRTIAL_GNGTLKA", "GANGS", 4.0, False, False, False, False, -1)

:INTRO2_10275
64@ = 1

:INTRO2_10282
goto @INTRO2_10050

:INTRO2_10289
64@ = 0

:INTRO2_10296
if 
  49@ <> 6
goto_if_false @INTRO2_10455
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_10448
if 
  56@ == 2
goto_if_false @INTRO2_10448
Camera.SetFixedPosition(374.6357, -121.6844, 1001.637, 0.0, 0.0, 0.0)
Camera.PointAtPoint(374.5972, -120.6883, 1001.716, SwitchType.JumpCut)
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_10441
Char.PerformSequence($ryder, 42@)
Sequence.Clear(42@)

:INTRO2_10441
64@ = 1

:INTRO2_10448
goto @INTRO2_10296

:INTRO2_10455
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_10476
Char.ClearTasks($ryder)

:INTRO2_10476
if 
  not Char.IsDead(35@)
goto_if_false @INTRO2_10542
Char.SetHeading(35@, 180.0)
Task.PlayAnim(35@, "SHP_GUN_GRAB", "SHOP", 4.0, False, False, False, True, -1)

:INTRO2_10542
wait 500
if 
  not Char.IsDead(35@)
goto_if_false @INTRO2_10580
Char.GiveWeapon(35@, WeaponType.Shotgun, 30000)
Char.SetCurrentWeapon(35@, WeaponType.Shotgun)

:INTRO2_10580
wait 500
Camera.SetFixedPosition(373.03, -116.1498, 1002.375, 0.0, 0.0, 0.0)
Camera.PointAtPoint(373.0192, -117.1292, 1002.173, SwitchType.JumpCut)
wait 300
if 
  not Char.IsDead(35@)
goto_if_false @INTRO2_10680
Task.ShootAtCoord(35@, 374.2905, -125.681, 1001.308, 2000)

:INTRO2_10680
64@ = 0

:INTRO2_10687
if 
  49@ <> 7
goto_if_false @INTRO2_10947
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_10940
if 
  56@ == 2
goto_if_false @INTRO2_10940
Path.FlushRoute
Path.ExtendRoute(372.0, -120.1, 1000.5)
Path.ExtendRoute(370.5, -132.3, 1000.4)
Task.FollowPointRoute($scplayer, 6, RouteMode.Once)
Path.FlushRoute
Path.ExtendRoute(376.3, -121.0, 1000.5)
Path.ExtendRoute(375.9, -132.0, 1000.5)
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_10858
Task.FollowPointRoute($ryder, 6, RouteMode.Once)

:INTRO2_10858
if and
  not Char.IsDead($ryder)
  not Char.IsDead(35@)
goto_if_false @INTRO2_10894
Char.ClearLookAt($ryder)
Char.ClearLookAt($scplayer)
Char.ClearLookAt(35@)

:INTRO2_10894
if 
  not Char.IsDead(35@)
goto_if_false @INTRO2_10933
Task.ShootAtCoord(35@, 374.2905, -125.681, 1001.308, 1500)

:INTRO2_10933
64@ = 1

:INTRO2_10940
goto @INTRO2_10687

:INTRO2_10947
41@ = 1

:INTRO2_10954
skip_cutscene_end 
if 
  41@ == 0
goto_if_false @INTRO2_11013
Camera.DoFade(0, Fade.Out)
Text.ClearPrints

:INTRO2_10982
if 
  Camera.GetFadingStatus
goto_if_false @INTRO2_11006
wait 0
goto @INTRO2_10982

:INTRO2_11006
goto @INTRO2_11046

:INTRO2_11013
Camera.DoFade(500, Fade.Out)
Text.ClearPrints

:INTRO2_11022
if 
  Camera.GetFadingStatus
goto_if_false @INTRO2_11046
wait 0
goto @INTRO2_11022

:INTRO2_11046
Camera.ResetNewScriptables
World.ClearArea(372.9, -118.8, 1000.57, 100.0, True)
Streaming.SetAreaVisible(0)
Task.StandStill($scplayer, 0)
Char.SetCoordinates($scplayer, 2102.21, -1806.65, 12.4)
Char.SetHeading($scplayer, 75.0)
Char.SetCantBeDraggedOut($scplayer, True)
Char.SetAreaVisible($scplayer, 0)
wait 0
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_11322
if 
  not Car.IsDead($ryder_car)
goto_if_false @INTRO2_11322
Char.ClearLookAt($ryder)
Char.ClearLookAt($scplayer)
World.ClearArea(2077.57, -1796.41, 12.38, 100.0, True)
Car.SetCoordinates($ryder_car, 2077.57, -1796.41, 12.0)
Car.SetHeading($ryder_car, 180.0)
Car.SetHealth($ryder_car, 1000)
World.ClearArea(2098.61, -1801.62, 12.39, 100.0, True)
Char.SetCoordinates($ryder, 2092.61, -1801.62, 12.39)
Char.SetHeading($ryder, 72.0)
Char.SetAreaVisible($ryder, 0)
Car.LockDoors($ryder_car, CarLock.Unlocked)
Char.SetNextDesiredMoveState(MoveState.Run)
Task.EnterCarAsPassenger($ryder, $ryder_car, 40000, 0)

:INTRO2_11322
Weather.Release
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Text.ClearPrints
Shopping.ClearLoaded
World.ClearExtraColors(False)
Streaming.RemoveAnimation("SHOP")
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("FOOD")
38@ = 0
Text.PrintNow('INT2_6', 10000, 1)
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_11425
goto @INTRO2_13667
goto @INTRO2_11454

:INTRO2_11425
Char.SetHealth($ryder, 500)
Char.SetMaxHealth($ryder, 500)
47@ = Blip.AddForChar($ryder)
Blip.Remove(47@)

:INTRO2_11454
Blip.Remove(34@)
if 
  not Car.IsDead($ryder_car)
goto_if_false @INTRO2_11502
Blip.Remove(37@)
37@ = Blip.AddForCar($ryder_car)
Blip.SetAsFriendly(37@, True)
goto @INTRO2_11509

:INTRO2_11502
goto @INTRO2_13667

:INTRO2_11509
World.SwitchEntryExit('FDPIZA', False)
$blob_flag = 1
60@ = 0
54@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2102.77, -1806.35, 12.55, MoveState.Run, 4000)
Task.ShootAtCoord(-1, 2092.67, -1803.64, 15.56, 1000)
Sequence.Close(54@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10248)

:INTRO2_11607
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @INTRO2_11633
wait 0
goto @INTRO2_11607

:INTRO2_11633
Streaming.LoadSceneInDirection(2102.21, -1806.65, 12.4, 75.0)
Camera.DoFade(500, Fade.In)
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_11701
Text.PrintNow('INT2_11', 10000, 1)
goto @INTRO2_13667

:INTRO2_11701
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_11740
Text.PrintNow('INT2_12', 10000, 1)
goto @INTRO2_13667

:INTRO2_11740
49@ = 0
56@ = 0
64@ = 0
40@ = 4
gosub @INTRO2_47
TIMERA = 0
TIMERB = 0
World.ClearArea(2077.57, -1796.41, 12.38, 20.0, True)

:INTRO2_11813
if or
  not Car.Locate3D($ryder_car, 2473.88, -1692.81, 12.52, 4.0, 4.0, 4.0, $blob_flag)
  not Char.IsInCar($ryder, $ryder_car)
  not Char.IsSittingInCar($scplayer, $ryder_car)
  not Car.IsOnAllWheels($ryder_car)
goto_if_false @INTRO2_12919
wait 0
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_11926
Text.PrintNow('INT2_11', 10000, 1)
goto @INTRO2_13667

:INTRO2_11926
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_11965
Text.PrintNow('INT2_12', 10000, 1)
goto @INTRO2_13667

:INTRO2_11965
if 
  not Char.LocateOnFoot3D($scplayer, 2104.62, -1806.54, 12.55, 7.0, 6.0, 3.0, False)
goto_if_false @INTRO2_12304
if 
  66@ == 0
goto_if_false @INTRO2_12187
if 
  not Char.IsDead(35@)
goto_if_false @INTRO2_12180
Char.ClearTasks(35@)
Char.ClearTasksImmediately(35@)
Char.SetCoordinates(35@, 2105.32, -1806.24, 12.55)
Char.SetHeading(35@, 90.0)
Char.GiveWeapon(35@, WeaponType.Shotgun, 30000)
Char.SetCurrentWeapon(35@, WeaponType.Shotgun)
Char.SetAccuracy(35@, 30)
Camera.SetNearClip(0.1)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @INTRO2_12153
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('INT2_HA', 2000, 1)

:INTRO2_12153
Char.PerformSequence(35@, 54@)
Sequence.Clear(54@)
TIMERA = 0
66@ = 1

:INTRO2_12180
goto @INTRO2_12304

:INTRO2_12187
if 
  TIMERA > 2000
goto_if_false @INTRO2_12304
if 
  66@ == 1
goto_if_false @INTRO2_12304
if 
  not Char.IsDead(35@)
goto_if_false @INTRO2_12304
if 
  Char.LocateOnFoot3D(35@, 2102.77, -1806.35, 12.55, 1.0, 1.0, 3.0, False)
goto_if_false @INTRO2_12304
Char.SetRelationship(35@, RelationshipType.Hate, PedType.Player1)
66@ = 2

:INTRO2_12304
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_12413
if 
  not Car.IsDead($ryder_car)
goto_if_false @INTRO2_12413
if 
  Char.IsInCar($scplayer, $ryder_car)
goto_if_false @INTRO2_12413
if 
  Char.IsSittingInCar($ryder, $ryder_car)
goto_if_false @INTRO2_12413
gosub @INTRO2_15999
if 
  88@ == 0
goto_if_false @INTRO2_12413
TIMERB = 0
88@ = 1

:INTRO2_12413
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_12834
if 
  not Car.IsDead($ryder_car)
goto_if_false @INTRO2_12811
if 
  Char.IsInCar($scplayer, $ryder_car)
goto_if_false @INTRO2_12712
if 
  Char.IsSittingInCar($ryder, $ryder_car)
goto_if_false @INTRO2_12610
if 
  38@ == 0
goto_if_false @INTRO2_12603
Blip.Remove(47@)
Blip.Remove(37@)
Blip.Remove(34@)
34@ = Blip.AddForCoord(2473.88, -1692.81, 12.52)
$blob_flag = 1
if 
  88@ == 1
goto_if_false @INTRO2_12603
if 
  TIMERB > 7000
goto_if_false @INTRO2_12603
Text.PrintNow('INT2_O', 10000, 1)
38@ = 1

:INTRO2_12603
goto @INTRO2_12705

:INTRO2_12610
Blip.Remove(37@)
Blip.Remove(34@)
Blip.Remove(47@)
47@ = Blip.AddForChar($ryder)
Blip.SetAsFriendly(47@, True)
Text.PrintNow('INT2_5', 1000, 1)
65@ = Char.GetScriptTaskStatus($ryder, 1482)
if 
  is_int_lvar_equal_to_constant 65@ == 7
goto_if_false @INTRO2_12698
Task.EnterCarAsPassenger($ryder, $ryder_car, 20000, 0)

:INTRO2_12698
$blob_flag = 0

:INTRO2_12705
goto @INTRO2_12804

:INTRO2_12712
if 
  38@ == 1
goto_if_false @INTRO2_12804
Blip.Remove(34@)
Blip.Remove(37@)
37@ = Blip.AddForCar($ryder_car)
Blip.SetAsFriendly(37@, True)
$blob_flag = 0
gosub @INTRO2_15095
Text.PrintNow('INT2_6', 10000, 1)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
38@ = 0

:INTRO2_12804
goto @INTRO2_12834

:INTRO2_12811
Text.PrintNow('INT2_11', 10000, 1)
goto @INTRO2_13667

:INTRO2_12834
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_12873
Text.PrintNow('INT2_12', 10000, 1)
goto @INTRO2_13667

:INTRO2_12873
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_12912
Text.PrintNow('INT2_11', 10000, 1)
goto @INTRO2_13667

:INTRO2_12912
goto @INTRO2_11813

:INTRO2_12919
Player.SetControl($player1, False)
49@ = 0
56@ = 0
64@ = 0
40@ = 3
gosub @INTRO2_47
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_13030
if 
  not Car.IsDead($ryder_car)
goto_if_false @INTRO2_13030
Task.LeaveCar($ryder, $ryder_car)
wait 700
if 
  not Car.IsDead($ryder_car)
goto_if_false @INTRO2_13030
Task.LeaveCar($scplayer, $ryder_car)

:INTRO2_13030
Camera.DoFade(1600, Fade.Out)

:INTRO2_13037
if 
  Camera.GetFadingStatus
goto_if_false @INTRO2_13061
wait 0
goto @INTRO2_13037

:INTRO2_13061
Hud.SwitchWidescreen(True)
Camera.DoFade(1500, Fade.In)
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_13151
if 
  Char.IsInAnyCar($ryder)
goto_if_false @INTRO2_13131
Char.WarpFromCarToCoord($ryder, 2467.345, -1688.22, 12.5156)
goto @INTRO2_13151

:INTRO2_13131
Char.SetCoordinates($ryder, 2467.345, -1688.22, 12.5156)

:INTRO2_13151
Char.SetHeading($ryder, 284.0)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @INTRO2_13204
Char.WarpFromCarToCoord($scplayer, 2468.359, -1687.39, 12.518)
goto @INTRO2_13224

:INTRO2_13204
Char.SetCoordinates($scplayer, 2468.359, -1687.39, 12.5189)

:INTRO2_13224
Char.SetHeading($scplayer, 108.0)
Camera.SetFixedPosition(2464.771, -1687.493, 14.2709, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2465.75, -1687.675, 14.1833, SwitchType.JumpCut)
64@ = 0

:INTRO2_13292
if 
  49@ <> 1
goto_if_false @INTRO2_13371
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_13364
if 
  56@ == 2
goto_if_false @INTRO2_13364
64@ = 1

:INTRO2_13364
goto @INTRO2_13292

:INTRO2_13371
64@ = 0

:INTRO2_13378
if 
  49@ <> 2
goto_if_false @INTRO2_13457
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_13450
if 
  56@ == 2
goto_if_false @INTRO2_13450
64@ = 1

:INTRO2_13450
goto @INTRO2_13378

:INTRO2_13457
64@ = 0

:INTRO2_13464
if 
  49@ <> 3
goto_if_false @INTRO2_13584
wait 0
gosub @INTRO2_15999
if 
  64@ == 0
goto_if_false @INTRO2_13577
if 
  56@ == 2
goto_if_false @INTRO2_13577
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_13570
Task.GoStraightToCoord($ryder, 2459.79, -1688.18, 12.56, MoveState.Walk, 3000)

:INTRO2_13570
64@ = 1

:INTRO2_13577
goto @INTRO2_13464

:INTRO2_13584
Task.GoStraightToCoord($scplayer, 2471.58, -1685.73, 12.51, MoveState.Walk, 3000)
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_13630
Char.StopFacialTalk($ryder)

:INTRO2_13630
wait 1000
Char.ClearTasks($scplayer)
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Char.Delete($ryder)
goto @INTRO2_13692

:INTRO2_13667
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
$can_skip_smoking_cutscene = 1
return 

:INTRO2_13692
Stat.RegisterMissionPassed('INTRO_2')
Text.PrintWithNumberBig('M_PASSR', 3, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(3)
CarGenerator.Switch($gen_car5, 101)
$flag_intro_mission_counter += 1
Blip.Remove($intro_contact_blip)
start_new_script @SWEET 
Blip.Remove($sweet_contact_blip)
$sweet_contact_blip = Blip.AddSpriteForContactPoint($sweetX, $sweetY, $sweetZ, $sweet_blip_icon)
Player.ClearWantedLevel($player1)
World.SwitchEntryExit('BARBERS', True)
World.SwitchEntryExit('BARBER2', True)
World.SwitchEntryExit('BARBER3', True)
World.SwitchEntryExit('FDPIZA', True)
World.SwitchEntryExit('FDCHICK', True)
World.SwitchEntryExit('FDBURG', True)
World.SwitchEntryExit('TATTOO', True)
Blip.Remove($barber_shop1)
$barber_shop1 = Blip.AddShortRangeSpriteForCoord(2070.27, -1791.092, 17.1484, RadarSprite.Barbers)
Blip.Remove($food_shop1)
$food_shop1 = Blip.AddShortRangeSpriteForCoord(2107.624, -1807.516, 21.2114, RadarSprite.Pizza)
Audio.PlayMissionPassedTune(1)
if 
  $2654 == 0
goto_if_false @INTRO2_14789
$barbers_blips = Blip.AddShortRangeSpriteForCoord(822.6, -1590.3, 13.5, RadarSprite.Barbers)
$2592 = Blip.AddShortRangeSpriteForCoord(-2570.1, 245.4, 10.3, RadarSprite.Barbers)
$2593 = Blip.AddShortRangeSpriteForCoord(2726.6, -2026.4, 17.5, RadarSprite.Barbers)
$2594 = Blip.AddShortRangeSpriteForCoord(2080.3, 2119.0, 10.8, RadarSprite.Barbers)
$2595 = Blip.AddShortRangeSpriteForCoord(675.7, -496.6, 16.8, RadarSprite.Barbers)
$pizza_blips = Blip.AddShortRangeSpriteForCoord(-1805.7, 943.2, 24.8, RadarSprite.Pizza)
$2597 = Blip.AddShortRangeSpriteForCoord(2750.9, 2470.9, 11.0, RadarSprite.Pizza)
$2598 = Blip.AddShortRangeSpriteForCoord(2351.8, 2529.0, 10.8, RadarSprite.Pizza)
$2599 = Blip.AddShortRangeSpriteForCoord(2635.5, 1847.4, 11.0, RadarSprite.Pizza)
$2600 = Blip.AddShortRangeSpriteForCoord(2083.4, 2221.0, 11.0, RadarSprite.Pizza)
$2601 = Blip.AddShortRangeSpriteForCoord(-1719.1, 1359.4, 8.6, RadarSprite.Pizza)
$2602 = Blip.AddShortRangeSpriteForCoord(2330.2, 75.2, 31.0, RadarSprite.Pizza)
$2603 = Blip.AddShortRangeSpriteForCoord(203.2, -200.4, 6.5, RadarSprite.Pizza)
$burger_blips = Blip.AddShortRangeSpriteForCoord(812.9, -1616.1, 13.6, RadarSprite.BurgerShot)
$2605 = Blip.AddShortRangeSpriteForCoord(1199.1, -924.0, 43.3, RadarSprite.BurgerShot)
$2606 = Blip.AddShortRangeSpriteForCoord(2362.2, 2069.9, 10.8, RadarSprite.BurgerShot)
$2607 = Blip.AddShortRangeSpriteForCoord(2469.5, 2033.8, 10.8, RadarSprite.BurgerShot)
$2608 = Blip.AddShortRangeSpriteForCoord(2172.9, 2795.7, 10.8, RadarSprite.BurgerShot)
$2609 = Blip.AddShortRangeSpriteForCoord(1875.3, 2072.0, 10.8, RadarSprite.BurgerShot)
$2610 = Blip.AddShortRangeSpriteForCoord(1161.5, 2072.0, 10.8, RadarSprite.BurgerShot)
$2611 = Blip.AddShortRangeSpriteForCoord(-2356.0, 1009.0, 49.0, RadarSprite.BurgerShot)
$2612 = Blip.AddShortRangeSpriteForCoord(-1913.3, 826.2, 36.9, RadarSprite.BurgerShot)
$2613 = Blip.AddShortRangeSpriteForCoord(-2335.6, -165.6, 39.5, RadarSprite.BurgerShot)
$chicken_blips = Blip.AddShortRangeSpriteForCoord(2397.8, -1895.6, 13.7, RadarSprite.Chicken)
$2615 = Blip.AddShortRangeSpriteForCoord(2421.6, -1509.6, 24.1, RadarSprite.Chicken)
$2616 = Blip.AddShortRangeSpriteForCoord(-2671.6, 257.4, 4.6, RadarSprite.Chicken)
$2617 = Blip.AddShortRangeSpriteForCoord(2392.4, 2046.5, 10.8, RadarSprite.Chicken)
$2618 = Blip.AddShortRangeSpriteForCoord(2844.5, 2401.1, 11.0, RadarSprite.Chicken)
$2619 = Blip.AddShortRangeSpriteForCoord(2635.5, 1674.3, 11.0, RadarSprite.Chicken)
$2620 = Blip.AddShortRangeSpriteForCoord(2105.7, 2228.7, 11.0, RadarSprite.Chicken)
$2621 = Blip.AddShortRangeSpriteForCoord(-2154.0, -2461.2, 30.8, RadarSprite.Chicken)
$2622 = Blip.AddShortRangeSpriteForCoord(-1816.2, 620.8, 37.5, RadarSprite.Chicken)
$2623 = Blip.AddShortRangeSpriteForCoord(-1216.0, 1831.4, 45.3, RadarSprite.Chicken)
$2624 = Blip.AddShortRangeSpriteForCoord(172.73, 1176.76, 13.7, RadarSprite.Chicken)
$2625 = Blip.AddShortRangeSpriteForCoord(1971.7, -2036.6, 13.5, RadarSprite.Tattoo)
$tattoo_blips = Blip.AddShortRangeSpriteForCoord(2071.6, -1779.9, 13.5, RadarSprite.Tattoo)
$2627 = Blip.AddShortRangeSpriteForCoord(2094.6, 2119.0, 10.8, RadarSprite.Tattoo)
$2628 = Blip.AddShortRangeSpriteForCoord(-2490.5, -40.1, 39.3, RadarSprite.Tattoo)
$2654 = 1

:INTRO2_14789
Stat.PlayerMadeProgress(1)
return 

:INTRO2_14795
$onmission = 0
if 
  Player.IsPlaying($player1)
goto_if_false @INTRO2_14830
Char.SetCantBeDraggedOut($scplayer, False)
Char.ClearLookAt($scplayer)

:INTRO2_14830
if 
  not Car.IsDead($ryder_car)
goto_if_false @INTRO2_14853
Car.SetCanBurstTires($ryder_car, True)

:INTRO2_14853
Streaming.MarkModelAsNoLongerNeeded(155)
Streaming.MarkModelAsNoLongerNeeded(600)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(#CIGAR)
Streaming.MarkModelAsNoLongerNeeded(#CIGAR_GLOW)
Streaming.RemoveAnimation("SHOP")
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("FOOD")
$flag_menace_buyfood = 0
$flag_changed_hair_intro2 = 0
$timer_mobile_start = Clock.GetGameTimer()
Blip.Remove(47@)
Blip.Remove(34@)
Blip.Remove(37@)
Char.RemoveElegantly($ryder)
Char.MarkAsNoLongerNeeded(35@)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
$spray_shop1 = Blip.AddShortRangeSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Zone.SetGangStrength('IWD1', GangType.Ballas, 20)
Zone.SetGangStrength('IWD2', GangType.Ballas, 20)
Zone.SetGangStrength('IWD3A', GangType.Ballas, 20)
Zone.SetGangStrength('IWD3B', GangType.Ballas, 20)
Zone.SetGangStrength('IWD4', GangType.Ballas, 20)
Zone.SetGangStrength('IWD5', GangType.Ballas, 20)
$flag_player_on_menace_mission = 0
Mission.Finish
return 

:INTRO2_15095
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  89@ == 0
goto_if_false @INTRO2_15124
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25600)

:INTRO2_15124
if 
  89@ == 1
goto_if_false @INTRO2_15149
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25601)

:INTRO2_15149
if 
  89@ == 2
goto_if_false @INTRO2_15174
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25602)

:INTRO2_15174
if 
  89@ == 3
goto_if_false @INTRO2_15199
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25603)

:INTRO2_15199
if 
  89@ == 4
goto_if_false @INTRO2_15224
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25604)

:INTRO2_15224
if 
  89@ == 5
goto_if_false @INTRO2_15249
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25605)

:INTRO2_15249
if 
  89@ == 6
goto_if_false @INTRO2_15274
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25606)

:INTRO2_15274
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:INTRO2_15290
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @INTRO2_15352
wait 0
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_15327
return 

:INTRO2_15327
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_15345
return 

:INTRO2_15345
goto @INTRO2_15290

:INTRO2_15352
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
if 
  89@ == 0
goto_if_false @INTRO2_15390
Text.PrintNow('RYDX_AA', 3000, 1)

:INTRO2_15390
if 
  89@ == 1
goto_if_false @INTRO2_15424
Text.PrintNow('RYDX_AB', 3000, 1)

:INTRO2_15424
if 
  89@ == 2
goto_if_false @INTRO2_15458
Text.PrintNow('RYDX_AC', 3000, 1)

:INTRO2_15458
if 
  89@ == 3
goto_if_false @INTRO2_15492
Text.PrintNow('RYDX_AD', 3000, 1)

:INTRO2_15492
if 
  89@ == 4
goto_if_false @INTRO2_15526
Text.PrintNow('RYDX_AE', 3000, 1)

:INTRO2_15526
if 
  89@ == 5
goto_if_false @INTRO2_15560
Text.PrintNow('RYDX_AF', 3000, 1)

:INTRO2_15560
if 
  89@ == 6
goto_if_false @INTRO2_15594
Text.PrintNow('RYDX_AG', 3000, 1)

:INTRO2_15594
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @INTRO2_15656
wait 0
if 
  Car.IsDead($ryder_car)
goto_if_false @INTRO2_15631
return 

:INTRO2_15631
if 
  Char.IsDead($ryder)
goto_if_false @INTRO2_15649
return 

:INTRO2_15649
goto @INTRO2_15594

:INTRO2_15656
89@ += 1
if 
  89@ > 6
goto_if_false @INTRO2_15688
89@ = 0

:INTRO2_15688
return 

:INTRO2_15690
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_15997
if 
  Char.IsPlayingAnim($ryder, "SMOKE_RYD")
goto_if_false @INTRO2_15992
93@ = Char.GetAnimCurrentTime($ryder, "SMOKE_RYD")
if 
  63@ == 0
goto_if_false @INTRO2_15858
if 
  93@ >= 0.785
goto_if_false @INTRO2_15858
39@ = Object.Create(#CIGAR_GLOW, 2440.58, -1979.89, 14.2)
Object.AttachToObject(39@, 46@, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
63@ = 1

:INTRO2_15858
if 
  63@ == 1
goto_if_false @INTRO2_15924
if and
  93@ >= 0.15
  0.335 > 93@
goto_if_false @INTRO2_15924
Particle.Play(55@)
Object.Delete(39@)
63@ = 2

:INTRO2_15924
if 
  63@ == 2
goto_if_false @INTRO2_15985
if or
  93@ >= 0.335
  0.15 > 93@
goto_if_false @INTRO2_15985
Particle.Stop(55@)
63@ = 0

:INTRO2_15985
goto @INTRO2_15997

:INTRO2_15992
Particle.Stop(55@)

:INTRO2_15997
return 

:INTRO2_15999
if or
  56@ == 0
  56@ == 1
goto_if_false @INTRO2_16069
if 
  is_int_lvar_greater_or_equal_to_int_lvar 50@ >= 49@
goto_if_false @INTRO2_16069
if 
  TIMERA > 200
goto_if_false @INTRO2_16069
gosub @INTRO2_16141

:INTRO2_16069
if 
  56@ == 2
goto_if_false @INTRO2_16139
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @INTRO2_16139
gosub @INTRO2_16490
56@ = 0
49@ += 1
64@ = 0
Text.ClearPrints
TIMERA = 0

:INTRO2_16139
return 

:INTRO2_16141
if 
  56@ == 0
goto_if_false @INTRO2_16177
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 70@(49@,17i))
56@ = 1

:INTRO2_16177
if 
  56@ == 1
goto_if_false @INTRO2_16242
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @INTRO2_16242
Text.PrintNow($6502(49@,17s), 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
gosub @INTRO2_16244
56@ = 2

:INTRO2_16242
return 

:INTRO2_16244
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10246
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10247
goto_if_false @INTRO2_16312
if 
  not Char.IsDead(35@)
goto_if_false @INTRO2_16312
Char.ShutUpForScriptedSpeech(35@, True)
Char.StartFacialTalk(35@, 3000)
return 

:INTRO2_16312
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10204
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10205
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10200
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10201
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10202
goto_if_false @INTRO2_16400
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.StartFacialTalk($scplayer, 3000)
return 

:INTRO2_16400
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10203
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10206
goto_if_false @INTRO2_16457
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.StartFacialTalk($scplayer, 3000)
goto @INTRO2_16488

:INTRO2_16457
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_16488
Char.ShutUpForScriptedSpeech($ryder, True)
Char.StartFacialTalk($ryder, 3000)

:INTRO2_16488
return 

:INTRO2_16490
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10246
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10247
goto_if_false @INTRO2_16555
if 
  not Char.IsDead(35@)
goto_if_false @INTRO2_16555
Char.ShutUpForScriptedSpeech(35@, False)
Char.StopFacialTalk(35@)
return 

:INTRO2_16555
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10204
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10205
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10200
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10201
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10202
goto_if_false @INTRO2_16640
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
return 

:INTRO2_16640
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10203
  is_int_lvar_equal_to_constant 70@(49@,17i) == 10206
goto_if_false @INTRO2_16694
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
goto @INTRO2_16722

:INTRO2_16694
if 
  not Char.IsDead($ryder)
goto_if_false @INTRO2_16722
Char.ShutUpForScriptedSpeech($ryder, False)
Char.StopFacialTalk($ryder)

:INTRO2_16722
return 

//-------------Mission 13---------------
// Originally: Tagging Up Turf

:SWEET1
script_name 'SWEET1'
gosub @SWEET1_444
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET1_38
gosub @SWEET1_14533

:SWEET1_38
gosub @SWEET1_14796
terminate_this_script 
Char.ClearTasks($scplayer)

:SWEET1_52
switch_start $sweet1_index {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET1_407 {caseNum1} 0 {caseLabel1} @SWEET1_115 {caseNum2} 1 {caseLabel2} @SWEET1_239 {caseNum3} -1 {caseLabel3} @SWEET1_407 {caseNum4} -1 {caseLabel4} @SWEET1_407 {caseNum5} -1 {caseLabel5} @SWEET1_407 {caseNum6} -1 {caseLabel6} @SWEET1_407 {caseNum7} -1 {caseLabel7} @SWEET1_407

:SWEET1_115
set_var_text_label s$get_in_counter_swee1[0] = 'SWE1_AA'
set_var_text_label s$get_in_counter_swee1[1] = 'SWE1_AB'
set_var_text_label s$get_in_counter_swee1[2] = 'SWE1_AC'
set_var_text_label s$get_in_counter_swee1[3] = 'SWE1_AD'
set_var_text_label s$get_in_counter_swee1[4] = 'SWE1_AE'
set_var_int_to_constant $spray_can_pickup[0] = 7442
set_var_int_to_constant $spray_can_pickup[1] = 7402
set_var_int_to_constant $spray_can_pickup[2] = 7443
set_var_int_to_constant $spray_can_pickup[3] = 7444
set_var_int_to_constant $spray_can_pickup[4] = 7403
48@ = 4
goto @SWEET1_407

:SWEET1_239
set_var_text_label s$get_in_counter_swee1[0] = 'SWE1_BN'
set_var_text_label s$get_in_counter_swee1[1] = 'SWE1_BO'
set_var_text_label s$get_in_counter_swee1[2] = 'SWE1_BP'
set_var_text_label s$get_in_counter_swee1[3] = 'SWE1_BQ'
set_var_text_label s$get_in_counter_swee1[4] = 'SWE1_BX'
set_var_text_label s$get_in_counter_swee1[5] = 'SWE1_BT'
set_var_text_label s$get_in_counter_swee1[6] = 'SWE1_BU'
set_var_int_to_constant $spray_can_pickup[0] = 7469
set_var_int_to_constant $spray_can_pickup[1] = 7404
set_var_int_to_constant $spray_can_pickup[2] = 7470
set_var_int_to_constant $spray_can_pickup[3] = 7405
set_var_int_to_constant $spray_can_pickup[4] = 7494
set_var_int_to_constant $spray_can_pickup[5] = 7472
set_var_int_to_constant $spray_can_pickup[6] = 7473
48@ = 6
goto @SWEET1_407

:SWEET1_407
return 
goto @SWEET1_444
$6536 = Pickup.CreateWithAmmo(365, PickupType.OnStreetSlow, 1000, 2493.52, -1700.83, 14.27)

:SWEET1_444
Stat.RegisterMissionGiven
$onmission = 1
wait 0
Text.LoadMissionText('SWEET1')
World.ClearArea(2527.9, -1667.7, 14.1, 10.0, True)
Cutscene.Load('SWEET1A')

:SWEET1_503
if 
  not Cutscene.HasLoaded
goto_if_false @SWEET1_527
wait 0
goto @SWEET1_503

:SWEET1_527
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SWEET1_536
if 
  not Cutscene.HasFinished
goto_if_false @SWEET1_560
wait 0
goto @SWEET1_536

:SWEET1_560
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:SWEET1_573
if 
  Camera.GetFadingStatus
goto_if_false @SWEET1_597
wait 0
goto @SWEET1_573

:SWEET1_597
Cutscene.Clear
49@ = 0
50@ = 0
51@ = 0
52@ = 0
53@ = 0
35@ = 0
63@ = 0
71@ = 0
69@ = 0
61@ = 0
34@ = 0
57@ = 0
46@ = 0
58@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
36@ = 0
38@ = 0
39@ = 0
40@ = 0
$sweet1_cutscene_flag = 0
88@ = 2038.758
89@ = -1624.419
90@ = 2074.503
91@ = -1662.767
92@ = 2345.68
93@ = -1515.79
94@ = 2423.7
95@ = -1393.28
84@ = 2401.6
85@ = -1550.8
86@ = 2396.33
87@ = -1555.12
96@ = 2100.972
97@ = -1646.623
98@ = 2105.264
99@ = -1656.712
Zone.SetGangStrength('IWD1', GangType.Ballas, 10)
Zone.SetGangStrength('IWD2', GangType.Ballas, 10)
Zone.SetGangStrength('IWD3A', GangType.Ballas, 10)
Zone.SetGangStrength('IWD3B', GangType.Ballas, 10)
Zone.SetGangStrength('IWD4', GangType.Ballas, 10)
Zone.SetGangStrength('IWD5', GangType.Ballas, 10)
Zone.SetGangStrength('ELS1A', GangType.Ballas, 10)
Zone.SetGangStrength('ELS1B', GangType.Ballas, 10)
Zone.SetGangStrength('ELS2', GangType.Ballas, 10)
Zone.SetGangStrength('ELS3A', GangType.Ballas, 10)
Zone.SetGangStrength('ELS3B', GangType.Ballas, 10)
Zone.SetGangStrength('ELS4', GangType.Ballas, 10)
Streaming.LoadSpecialCharacter(1, 'SWEET')
Streaming.LoadSpecialCharacter(10, 'SMOKE')
Streaming.RequestModel(365)
Streaming.RequestModel(492)
Streaming.RequestModel(102)
Streaming.RequestModel(103)
Streaming.LoadAllModelsNow

:SWEET1_1146
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasSpecialCharacterLoaded(10)
goto_if_false @SWEET1_1176
wait 0
goto @SWEET1_1146

:SWEET1_1176
if or
  not Streaming.HasModelLoaded(365)
  not Streaming.HasModelLoaded(492)
  not Streaming.HasModelLoaded(102)
  not Streaming.HasModelLoaded(103)
goto_if_false @SWEET1_1216
wait 0
goto @SWEET1_1176

:SWEET1_1216
$sweet1_audio_is_playing = 0
$6545 = 0
$sweet1_chat_switch = 0
$sweet1_index = 0
gosub @SWEET1_52
Char.SetCoordinates($scplayer, 2516.53, -1671.37, 12.88)
Char.SetHeading($scplayer, 61.28)
Char.GiveWeapon($scplayer, WeaponType.SprayCan, 30000)
Char.SetCurrentWeapon($scplayer, WeaponType.SprayCan)
$sweet = Char.Create(PedType.Mission1, 290, 2518.07, -1668.82, 12.85)
Char.SetAnimGroup($sweet, "GANG2")
Char.SetHeading($sweet, 103.76)
72@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Char.SetDecisionMaker($sweet, 72@)
Char.SetNeverTargeted($sweet, True)
Char.GiveWeapon($sweet, WeaponType.SprayCan, 30000)
Char.SetCurrentWeapon($sweet, WeaponType.SprayCan)
Char.SetSuffersCriticalHits($sweet, False)
Char.SetHealth($sweet, 500)
Char.SetMaxHealth($sweet, 500)
Char.SetCantBeDraggedOut($sweet, True)
Char.SetStayInCarWhenJacked($sweet, True)
Char.SetGetOutUpsideDownCar($sweet, False)
CarGenerator.Switch($gen_car6, 0)
World.ClearArea(2518.07, -1668.82, 12.85, 10.0, True)
Car.CustomPlateForNextCar(492, "GROVE4L_")
$sweet_car = Car.Create(492, 2508.16, -1666.47, 13.0)
Car.SetCanBurstTires($sweet_car, False)
Car.ChangeColor($sweet_car, 59, 34)
Car.SetHeading($sweet_car, 16.0)
56@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(56@, True)
Audio.SetRadioChannel(RadioChannel.BounceFM)
$big_smoke = Char.Create(PedType.Mission1, 299, 2520.1, -1669.58, 13.1)
Char.SetAnimGroup($big_smoke, "FATMAN")
Char.SetHeading($big_smoke, 173.99)
Task.GoStraightToCoord($big_smoke, 2518.509, -1676.124, 13.3855, MoveState.Walk, 10000)
World.SetTagStatusInArea(88@, 89@, 90@, 91@, 0)
World.SetTagStatusInArea(92@, 93@, 94@, 95@, 0)
World.SetTagStatusInArea(84@, 85@, 86@, 87@, 0)
World.SetTagStatusInArea(96@, 97@, 98@, 99@, 0)
$tag_percentage = World.GetPercentageTaggedInArea(88@, 89@, 90@, 91@)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
World.ClearArea(2518.07, -1668.82, 12.85, 40.0, True)
Camera.SetNearClip(0.2)
Camera.SetFixedPosition(2512.01, -1671.207, 14.2722, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2512.938, -1670.842, 14.1948, SwitchType.JumpCut)
Streaming.LoadScene(2515.42, -1671.19, 14.46)
Task.GoStraightToCoord($sweet, 2513.812, -1669.527, 12.5348, MoveState.Walk, 10000)
Task.GoStraightToCoord($scplayer, 2512.64, -1671.07, 12.5, MoveState.Walk, 10000)
Camera.DoFade(500, Fade.In)

:SWEET1_1863
if 
  Camera.GetFadingStatus
goto_if_false @SWEET1_1887
wait 0
goto @SWEET1_1863

:SWEET1_1887
36@ = 0
skip_cutscene_start_internal @SWEET1_2699

:SWEET1_1901
if 
  $sweet1_audio_is_playing <> 1
goto_if_false @SWEET1_2028
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_2021
if 
  $6545 == 2
goto_if_false @SWEET1_2021
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_2014
Char.ClearLookAt($scplayer)
Char.ClearLookAt($sweet)
Task.LookAtChar($scplayer, $sweet, 8000)
Task.LookAtChar($sweet, $scplayer, 8000)

:SWEET1_2014
$sweet1_chat_switch = 1

:SWEET1_2021
goto @SWEET1_1901

:SWEET1_2028
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_2052
Task.TurnCharToFaceChar($scplayer, $sweet)

:SWEET1_2052
World.ClearArea(2512.26, -1667.83, 12.56, 30.0, True)
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2523.417, -1664.991, 15.1254, 2522.961, -1667.46, 15.2254, 13000, True)
Camera.SetVectorTrack(2513.695, -1670.609, 13.8556, 2514.297, -1669.343, 13.9372, 13000, True)

:SWEET1_2160
if 
  $sweet1_audio_is_playing <> 2
goto_if_false @SWEET1_2255
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_2248
if 
  $6545 == 2
goto_if_false @SWEET1_2248
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_2241

:SWEET1_2241
$sweet1_chat_switch = 1

:SWEET1_2248
goto @SWEET1_2160

:SWEET1_2255
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_2271

:SWEET1_2271
if 
  $sweet1_audio_is_playing <> 3
goto_if_false @SWEET1_2403
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_2396
if 
  $6545 == 2
goto_if_false @SWEET1_2396
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_2389
Task.PlayAnim($sweet, "IDLE_CHAT", "PED", 4.0, True, False, False, False, 6000)

:SWEET1_2389
$sweet1_chat_switch = 1

:SWEET1_2396
goto @SWEET1_2271

:SWEET1_2403
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_2419

:SWEET1_2419
if 
  $sweet1_audio_is_playing <> 4
goto_if_false @SWEET1_2514
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_2507
if 
  $6545 == 2
goto_if_false @SWEET1_2507
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_2500

:SWEET1_2500
$sweet1_chat_switch = 1

:SWEET1_2507
goto @SWEET1_2419

:SWEET1_2514
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_2530

:SWEET1_2530
if 
  $sweet1_audio_is_playing <> 5
goto_if_false @SWEET1_2687
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_2680
if 
  $6545 == 2
goto_if_false @SWEET1_2680
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_2673
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_2673
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.GoStraightToCoord($scplayer, 2510.271, -1669.803, 12.4092, MoveState.Walk, 10000)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger($sweet, $sweet_car, 20000, 0)

:SWEET1_2673
$sweet1_chat_switch = 1

:SWEET1_2680
goto @SWEET1_2530

:SWEET1_2687
wait 1000
36@ = 1

:SWEET1_2699
skip_cutscene_end 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Char.Delete($big_smoke)
Streaming.UnloadSpecialCharacter(10)
62@ = Blip.AddForCoord(2089.01, -1649.08, 12.8)
Blip.Remove(62@)
if 
  36@ == 0
goto_if_false @SWEET1_2909
Char.SetCoordinates($scplayer, 2511.68, -1670.33, 12.46)
Char.SetHeading($scplayer, 62.36)
Char.ClearLookAt($scplayer)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_2909
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_2909
World.ClearArea(2510.05, -1666.61, 12.57, 1.0, True)
Char.SetCoordinates($sweet, 2510.05, -1666.61, 12.57)
Char.SetHeading($sweet, 53.89)
Char.ClearLookAt($sweet)
Char.ClearTasksImmediately($sweet)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger($sweet, $sweet_car, 20000, 0)

:SWEET1_2909
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_2979
World.ClearArea(2510.05, -1666.61, 12.57, 1.0, True)
Char.SetCoordinates($sweet, 2510.05, -1666.61, 12.57)
Char.SetHeading($sweet, 53.89)

:SWEET1_2979
Char.ClearTasks($scplayer)
Camera.ResetNewScriptables
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Text.PrintNow('SWE1_A', 7000, 1)
45@ = 0
$blob_flag = 0
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_3070
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_3070
if or
  not Car.Locate3D($sweet_car, 2089.01, -1649.08, 12.54, 4.0, 4.0, 4.0, $blob_flag)
  not Char.IsSittingInCar($scplayer, $sweet_car)
  not Car.IsOnAllWheels($sweet_car)
goto_if_false @SWEET1_3594
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SWEET1_3158
goto @SWEET1_14640

:SWEET1_3158
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_3197
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_3197
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_3238
Text.PrintNow('SWE1SPF', 10000, 1)
goto @SWEET1_14533

:SWEET1_3238
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_3284
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533
goto @SWEET1_3468

:SWEET1_3284
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET1_3388
if 
  34@ == 0
goto_if_false @SWEET1_3381
Blip.Remove(56@)
Blip.Remove(62@)
62@ = Blip.AddForCoord(2089.01, -1649.08, 12.8)
Text.PrintNow('HOOD3_A', 5000, 1)
$blob_flag = 1
34@ = 1

:SWEET1_3381
goto @SWEET1_3468

:SWEET1_3388
if 
  34@ == 1
goto_if_false @SWEET1_3468
Blip.Remove(56@)
Blip.Remove(62@)
56@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(56@, True)
gosub @SWEET1_15124
Text.PrintNow('SWE1_S', 5000, 1)
$blob_flag = 0
34@ = 0

:SWEET1_3468
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_3507
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_3507
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_3548
Text.PrintNow('SWE1SPF', 10000, 1)
goto @SWEET1_14533

:SWEET1_3548
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_3587
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_3587
goto @SWEET1_3070

:SWEET1_3594
Player.SetControl($player1, False)
Camera.SetFixedPosition(2082.533, -1650.244, 14.8007, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2083.515, -1650.202, 14.6181, SwitchType.JumpCut)
Streaming.RequestAnimation("GRAFFITI")
78@, 79@, 80@ = World.GetNearestTagPosition(2100.84, -1648.71, 12.42)
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_3763
66@ = Sequence.Open()
Task.LeaveCar(-1, $sweet_car)
Task.GoStraightToCoord(-1, 2100.48, -1649.14, 12.47, MoveState.Walk, 20000)
Task.ShootAtCoord(-1, 78@, 79@, 80@, 15000)
Sequence.Close(66@)

:SWEET1_3763
World.SetTagStatusInArea(88@, 89@, 90@, 91@, 0)
World.SetTagStatusInArea(96@, 97@, 98@, 99@, 0)
$tag_percentage = World.GetPercentageTaggedInArea(88@, 89@, 90@, 91@)
Char.SetAccuracy($sweet, 90)
Char.SetShootRate($sweet, 100)
69@ = 0
Hud.SwitchWidescreen(True)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_3877
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_3877
Task.LeaveCar($sweet, $sweet_car)

:SWEET1_3877
wait 600
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_3906
Task.LeaveCar($scplayer, $sweet_car)

:SWEET1_3906
wait 500
Camera.DoFade(1000, Fade.Out)

:SWEET1_3918
if 
  Camera.GetFadingStatus
goto_if_false @SWEET1_3942
wait 0
goto @SWEET1_3918

:SWEET1_3942
if 
  not Streaming.HasAnimationLoaded("GRAFFITI")
goto_if_false @SWEET1_3976
wait 0
goto @SWEET1_3942

:SWEET1_3976
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 7474)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 7456)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SWEET1_4033
Char.WarpFromCarToCoord($scplayer, 2094.7, -1652.05, 12.65)
goto @SWEET1_4053

:SWEET1_4033
Char.SetCoordinates($scplayer, 2094.7, -1652.05, 12.65)

:SWEET1_4053
Char.SetHeading($scplayer, 302.0)
Char.ClearTasks($scplayer)
Task.GoStraightToCoord($scplayer, 2099.12, -1651.26, 12.63, MoveState.Walk, 20000)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_4200
if 
  Char.IsInAnyCar($sweet)
goto_if_false @SWEET1_4152
Char.WarpFromCarToCoord($sweet, 2095.8, -1649.86, 12.7)
goto @SWEET1_4172

:SWEET1_4152
Char.SetCoordinates($sweet, 2095.8, -1649.86, 12.7)

:SWEET1_4172
Char.SetHeading($sweet, 277.0)
Char.ClearTasks($sweet)
Char.PerformSequence($sweet, 66@)
Sequence.Clear(66@)

:SWEET1_4200
Camera.SetFixedPosition(2095.531, -1659.485, 13.3156, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2095.742, -1658.519, 13.4672, SwitchType.JumpCut)
World.ClearArea(2094.2, -1652.05, 12.65, 10.0, True)
wait 500
Camera.DoFade(500, Fade.In)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_4319
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, $sweet, 4500)

:SWEET1_4319
36@ = 0
skip_cutscene_start_internal @SWEET1_5931
wait 2000
Camera.SetFixedPosition(2102.11, -1647.672, 13.1493, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2101.369, -1648.315, 13.3438, SwitchType.JumpCut)

:SWEET1_4389
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET1_4493
wait 0
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_4447
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_4447
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_4486
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_4486
goto @SWEET1_4389

:SWEET1_4493
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SWE1_AR', 10000, 1)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_4537
Char.StartFacialTalk($sweet, 3000)

:SWEET1_4537
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET1_4641
wait 0
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_4595
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_4595
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_4634
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_4634
goto @SWEET1_4537

:SWEET1_4641
Text.ClearPrints
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_4664
Char.StopFacialTalk($sweet)

:SWEET1_4664
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_4688
64@ = Char.GetSequenceProgress($sweet)

:SWEET1_4688
if 
  64@ <> 2
goto_if_false @SWEET1_4844
wait 0
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_4751
Text.PrintNow('SWE1SPF', 10000, 1)
goto @SWEET1_14533

:SWEET1_4751
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_4790
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_4790
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_4829
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_4829
64@ = Char.GetSequenceProgress($sweet)
goto @SWEET1_4688

:SWEET1_4844
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2097.269, -1648.215, 14.4973, 2098.319, -1650.517, 14.3662, 10000, True)
Camera.SetVectorTrack(2101.626, -1649.577, 13.7631, 2101.89, -1647.925, 13.7316, 10000, True)
Text.PrintHelpForever('SWE1_D')
58@ = 1
TIMERA = 0

:SWEET1_4953
if 
  $tag_percentage <> 100
goto_if_false @SWEET1_5198
wait 0
$tag_percentage = World.GetPercentageTaggedInArea(96@, 97@, 98@, 99@)
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_5031
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_5031
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_5070
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_5070
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_5111
Text.PrintNow('SWE1SPF', 10000, 1)
goto @SWEET1_14533

:SWEET1_5111
if 
  58@ == 1
goto_if_false @SWEET1_5191
if 
  TIMERA > 5000
goto_if_false @SWEET1_5180
Text.PrintHelp('SWE1_F')
TIMERA = 0
58@ = 2
goto @SWEET1_5191

:SWEET1_5180
Text.PrintHelpForever('SWE1_D')

:SWEET1_5191
goto @SWEET1_4953

:SWEET1_5198
wait 1000
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_5287
Char.SetHeading($sweet, 280.0)
Task.PlayAnim($sweet, "GRAFFITI_CHKOUT", "GRAFFITI", 4.0, False, False, False, False, -1)
77@ = Char.GetScriptTaskStatus($sweet, 1541)

:SWEET1_5287
if 
  not is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @SWEET1_5526
wait 0
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_5348
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_5348
77@ = Char.GetScriptTaskStatus($sweet, 1541)
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_5398
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_5398
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_5439
Text.PrintNow('SWE1SPF', 10000, 1)
goto @SWEET1_14533

:SWEET1_5439
if 
  58@ == 1
goto_if_false @SWEET1_5519
if 
  TIMERA > 5000
goto_if_false @SWEET1_5508
Text.PrintHelp('SWE1_F')
TIMERA = 0
58@ = 2
goto @SWEET1_5519

:SWEET1_5508
Text.PrintHelpForever('SWE1_D')

:SWEET1_5519
goto @SWEET1_5287

:SWEET1_5526
Camera.ResetNewScriptables
Text.ClearHelp
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_5571
Task.GoStraightToCoord($sweet, 2099.1, -1650.02, 12.57, MoveState.Walk, 20000)

:SWEET1_5571
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_5619
Char.ClearLookAt($sweet)
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, $sweet, 4500)
Task.LookAtChar($sweet, $scplayer, 4500)

:SWEET1_5619
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET1_5723
wait 0
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_5677
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_5677
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_5716
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_5716
goto @SWEET1_5619

:SWEET1_5723
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE1_CA', 10000, 1)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_5767
Char.StartFacialTalk($sweet, 3000)

:SWEET1_5767
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET1_5871
wait 0
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_5825
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_5825
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_5864
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_5864
goto @SWEET1_5767

:SWEET1_5871
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_5892
Char.StopFacialTalk($sweet)

:SWEET1_5892
Text.ClearPrints
Task.GoStraightToCoord($scplayer, 2097.56, -1651.36, 12.71, MoveState.Walk, 20000)
wait 500
36@ = 1

:SWEET1_5931
skip_cutscene_end 
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 7475)
Camera.ResetNewScriptables
if 
  36@ == 0
goto_if_false @SWEET1_6144
Camera.DoFade(500, Fade.Out)

:SWEET1_5977
if 
  Camera.GetFadingStatus
goto_if_false @SWEET1_6001
wait 0
goto @SWEET1_5977

:SWEET1_6001
World.SetTagStatusInArea(96@, 97@, 98@, 99@, 1)
Char.SetCoordinates($scplayer, 2097.56, -1651.36, 12.71)
Char.SetHeading($scplayer, 99.0)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_6098
Char.ClearTasksImmediately($sweet)
Char.SetCoordinates($sweet, 2099.1, -1650.02, 12.57)
Char.SetHeading($sweet, 99.0)

:SWEET1_6098
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.DoFade(700, Fade.In)

:SWEET1_6120
if 
  Camera.GetFadingStatus
goto_if_false @SWEET1_6144
wait 0
goto @SWEET1_6120

:SWEET1_6144
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_6189
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_6189
Task.EnterCarAsPassenger($sweet, $sweet_car, 15000, 0)

:SWEET1_6189
Blip.Remove(56@)
Blip.Remove(62@)
Char.ClearLookAt($scplayer)
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Blip.Remove(62@)
42@ = Blip.AddForCoord(2068.31, -1654.0, 14.3)
Blip.ChangeColor(42@, BlipColor.Green)
43@ = Blip.AddForCoord(2047.31, -1634.65, 13.8)
Blip.ChangeColor(43@, BlipColor.Green)
Streaming.RemoveAnimation("GRAFFITI")
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_6313
Car.LockDoors($sweet_car, CarLock.LockoutPlayerOnly)

:SWEET1_6313
69@ = 1
$tag_percentage = World.GetPercentageTaggedInArea(88@, 89@, 90@, 91@)
World.SetTagStatusInArea(88@, 89@, 90@, 91@, 0)
65@ = 0

:SWEET1_6360
if 
  $tag_percentage <> 100
goto_if_false @SWEET1_6933
wait 0
if 
  65@ == 0
goto_if_false @SWEET1_6449
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET1_6442
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SWE1_CB', 2500, 1)
65@ = 1

:SWEET1_6442
goto @SWEET1_6505

:SWEET1_6449
if 
  65@ == 1
goto_if_false @SWEET1_6505
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET1_6505
Text.PrintNow('SWE1_X', 6000, 1)
65@ = 2

:SWEET1_6505
$tag_percentage = World.GetPercentageTaggedInArea(88@, 89@, 90@, 91@)
59@ = World.GetPercentageTaggedInArea(2068.876, -1654.589, 2063.544, -1650.013)
60@ = World.GetPercentageTaggedInArea(2044.836, -1633.986, 2047.145, -1638.957)
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_6611
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_6611
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_6650
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_6650
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_6691
Text.PrintNow('SWE1SPF', 10000, 1)
goto @SWEET1_14533

:SWEET1_6691
if or
  Char.LocateOnFoot2D($scplayer, 2043.68, -1635.73, 4.0, 4.0, False)
  Char.LocateOnFoot2D($scplayer, 2067.99, -1652.61, 4.0, 4.0, False)
goto_if_false @SWEET1_6880
if 
  58@ == 0
goto_if_false @SWEET1_6818
if 
  TIMERA > 1000
goto_if_false @SWEET1_6818
Text.PrintHelp('SWE1_D')
TIMERA = 0
58@ = 1

:SWEET1_6818
if 
  58@ == 1
goto_if_false @SWEET1_6880
if 
  TIMERA > 5000
goto_if_false @SWEET1_6880
Text.PrintHelp('SWE1_F')
TIMERA = 0
58@ = 2

:SWEET1_6880
if 
  59@ == 100
goto_if_false @SWEET1_6903
Blip.Remove(42@)

:SWEET1_6903
if 
  60@ == 100
goto_if_false @SWEET1_6926
Blip.Remove(43@)

:SWEET1_6926
goto @SWEET1_6360

:SWEET1_6933
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_6981
Blip.Remove(42@)
Blip.Remove(43@)
56@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(56@, True)
Car.LockDoors($sweet_car, CarLock.Unlocked)

:SWEET1_6981
Text.PrintNow('SWE1_S', 6000, 1)
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_7036
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_7036
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 7457)

:SWEET1_7043
if 
  not Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET1_7233
wait 0
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_7107
Text.PrintNow('SWE1SPF', 10000, 1)
goto @SWEET1_14533

:SWEET1_7107
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_7146
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_7146
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_7185
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_7185
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_7226
Text.PrintNow('SWE1SPF', 10000, 1)
goto @SWEET1_14533

:SWEET1_7226
goto @SWEET1_7043

:SWEET1_7233
45@ = 0
58@ = 0
TIMERA = 0
$blob_flag = 1
Blip.Remove(56@)
41@ = Blip.AddForCoord(2338.74, -1500.31, 22.83)

:SWEET1_7286
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET1_7431
wait 0
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_7344
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_7344
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_7383
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_7383
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_7424
Text.PrintNow('SWE1SPF', 10000, 1)
goto @SWEET1_14533

:SWEET1_7424
goto @SWEET1_7286

:SWEET1_7431
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE1_AS', 3000, 1)

:SWEET1_7451
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET1_7596
wait 0
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_7509
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_7509
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_7548
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_7548
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_7589
Text.PrintNow('SWE1SPF', 10000, 1)
goto @SWEET1_14533

:SWEET1_7589
goto @SWEET1_7451

:SWEET1_7596
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_7635
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_7635
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_7674
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_7674
TIMERA = 0

:SWEET1_7681
if or
  not Car.Locate3D($sweet_car, 2338.74, -1500.31, 22.83, 4.0, 4.0, 4.0, $blob_flag)
  not Char.IsSittingInCar($scplayer, $sweet_car)
  not Car.IsOnAllWheels($sweet_car)
goto_if_false @SWEET1_8310
wait 0
if 
  39@ == 0
goto_if_false @SWEET1_7802
if 
  TIMERA > 10000
goto_if_false @SWEET1_7802
Text.PrintHelp('SWE1_Z1')
39@ = 1

:SWEET1_7802
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_7841
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_7841
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_7882
Text.PrintNow('SWE1SPF', 10000, 1)
goto @SWEET1_14533

:SWEET1_7882
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_7928
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533
goto @SWEET1_8124

:SWEET1_7928
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET1_8032
if 
  34@ == 0
goto_if_false @SWEET1_8025
Blip.Remove(41@)
Blip.Remove(56@)
41@ = Blip.AddForCoord(2338.74, -1500.31, 22.83)
Text.PrintNow('HOOD3_B', 5000, 1)
34@ = 1
$blob_flag = 1

:SWEET1_8025
goto @SWEET1_8124

:SWEET1_8032
if 
  34@ == 1
goto_if_false @SWEET1_8124
Blip.Remove(56@)
Blip.Remove(41@)
56@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(56@, True)
gosub @SWEET1_15124
Text.PrintNow('SWE1_S', 6000, 1)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
$blob_flag = 0
34@ = 0

:SWEET1_8124
if 
  58@ == 0
goto_if_false @SWEET1_8184
if 
  TIMERA > 3000
goto_if_false @SWEET1_8184
Text.PrintNow('HOOD3_B', 5000, 1)
58@ = 1

:SWEET1_8184
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_8223
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_8223
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_8264
Text.PrintNow('SWE1SPF', 10000, 1)
goto @SWEET1_14533

:SWEET1_8264
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_8303
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_8303
goto @SWEET1_7681

:SWEET1_8310
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 7460)
Blip.Remove(56@)
Blip.Remove(41@)
43@ = Blip.AddForCoord(2396.21, -1469.8, 24.9)
Blip.ChangeColor(43@, BlipColor.Green)
44@ = Blip.AddForCoord(2353.22, -1506.54, 24.7)
Blip.ChangeColor(44@, BlipColor.Green)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2329.675, -1499.911, 25.8505, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2330.653, -1499.926, 25.644, SwitchType.JumpCut)
Player.SetControl($player1, False)
wait 100
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_8490
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET1_8490
Task.LeaveCar($scplayer, $sweet_car)

:SWEET1_8490
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET1_8594
wait 0
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_8548
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_8548
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_8587
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_8587
goto @SWEET1_8490

:SWEET1_8594
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE1_AV', 10000, 1)

:SWEET1_8614
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET1_8718
wait 0
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_8672
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_8672
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_8711
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_8711
goto @SWEET1_8614

:SWEET1_8718
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET1_8780
wait 0
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_8773
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_8773

:SWEET1_8773
goto @SWEET1_8718

:SWEET1_8780
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_8834
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_8834
Car.LockDoors($sweet_car, CarLock.LockoutPlayerOnly)
Task.CarDriveWander($sweet, $sweet_car, 20.0, DrivingMode.AvoidCars)

:SWEET1_8834
58@ = 0
39@ = 0
TIMERA = 0
World.SetTagStatusInArea(92@, 93@, 94@, 95@, 0)
$tag_percentage = World.GetPercentageTaggedInArea(92@, 93@, 94@, 95@)
wait 1000
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut

:SWEET1_8908
if 
  $tag_percentage <> 100
goto_if_false @SWEET1_10350
wait 0
if 
  58@ == 0
goto_if_false @SWEET1_9004
if 
  TIMERA > 2500
goto_if_false @SWEET1_9004
Text.PrintNow('SWE1_M', 6000, 1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 7488)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 7492)
58@ = 1

:SWEET1_9004
$tag_percentage = World.GetPercentageTaggedInArea(92@, 93@, 94@, 95@)
59@ = World.GetPercentageTaggedInArea(2396.21, -1469.8, 2387.95, -1463.55)
60@ = World.GetPercentageTaggedInArea(2353.22, -1506.54, 2354.88, -1511.58)
if 
  61@ == 0
goto_if_false @SWEET1_9305
if 
  Char.LocateAnyMeans2D($scplayer, 2395.61, -1470.52, 50.0, 50.0, False)
goto_if_false @SWEET1_9298
54@ = Char.Create(PedType.Mission1, 102, 2400.45, -1470.39, 22.97)
Char.SetHeading(54@, 82.4)
55@ = Char.Create(PedType.Mission1, 103, 2396.48, -1469.9, 22.99)
Char.SetHeading(55@, 262.64)
Task.ChatWithChar(55@, 54@, False, 1)
Task.ChatWithChar(54@, 55@, True, 1)
47@ = Sequence.Open()
Task.GotoCharOffset(-1, $scplayer, -1, 0.5, 90.0)
Sequence.SetToRepeat(47@, True)
Sequence.Close(47@)
37@ = Sequence.Open()
Task.GotoCharOffset(-1, $scplayer, -1, 0.5, 270.0)
Sequence.SetToRepeat(37@, True)
Sequence.Close(37@)
61@ = 1

:SWEET1_9298
goto @SWEET1_9971

:SWEET1_9305
if 
  46@ == 0
goto_if_false @SWEET1_9505
if 
  Char.LocateAnyMeans2D($scplayer, 2395.61, -1470.52, 20.0, 17.0, False)
goto_if_false @SWEET1_9505
if 
  not Char.IsDead(54@)
goto_if_false @SWEET1_9498
if 
  not Char.IsDead(55@)
goto_if_false @SWEET1_9498
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.SetFixedPosition(2400.384, -1472.208, 23.9349, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2399.49, -1471.763, 23.988, SwitchType.JumpCut)
Text.PrintHelp('SWE1_H')
wait 500
skip_cutscene_start_internal @SWEET1_9483
wait 6500

:SWEET1_9483
skip_cutscene_end 
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut

:SWEET1_9498
46@ = 1

:SWEET1_9505
if 
  46@ == 1
goto_if_false @SWEET1_9751
if 
  39@ == 0
goto_if_false @SWEET1_9578
if 
  TIMERA > 2000
goto_if_false @SWEET1_9578
Text.PrintHelp('SWE1_I')
39@ = 1

:SWEET1_9578
if 
  Char.LocateAnyMeans2D($scplayer, 2395.61, -1470.52, 5.0, 5.0, False)
goto_if_false @SWEET1_9751
if 
  not Char.IsDead(54@)
goto_if_false @SWEET1_9659
Char.ShutUpForScriptedSpeech(54@, True)
Task.StandStill(54@, 0)
Char.PerformSequence(54@, 47@)
Sequence.Clear(47@)

:SWEET1_9659
if 
  not Char.IsDead(55@)
goto_if_false @SWEET1_9744
Char.ShutUpForScriptedSpeech(55@, True)
Task.StandStill(55@, 0)
Char.PerformSequence(55@, 37@)
Sequence.Clear(37@)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET1_9737
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE1_BA', 2000, 1)

:SWEET1_9737
TIMERA = 0

:SWEET1_9744
46@ = 2

:SWEET1_9751
if 
  46@ == 2
goto_if_false @SWEET1_9885
if or
  59@ == 100
  TIMERA > 5000
goto_if_false @SWEET1_9885
if 
  not Char.IsDead(54@)
goto_if_false @SWEET1_9819
Task.KillCharOnFoot(54@, $scplayer)

:SWEET1_9819
if 
  not Char.IsDead(55@)
goto_if_false @SWEET1_9878
Task.KillCharOnFoot(55@, $scplayer)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET1_9878
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SWE1_BE', 2000, 1)

:SWEET1_9878
46@ = 3

:SWEET1_9885
if 
  46@ == 3
goto_if_false @SWEET1_9971
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET1_9971
if 
  not Char.IsDead(54@)
goto_if_false @SWEET1_9941
Char.ShutUpForScriptedSpeech(54@, False)

:SWEET1_9941
if 
  not Char.IsDead(55@)
goto_if_false @SWEET1_9964
Char.ShutUpForScriptedSpeech(55@, False)

:SWEET1_9964
46@ = 4

:SWEET1_9971
if 
  59@ == 100
goto_if_false @SWEET1_9994
Blip.Remove(43@)

:SWEET1_9994
if 
  60@ == 100
goto_if_false @SWEET1_10017
Blip.Remove(44@)

:SWEET1_10017
if and
  Char.LocateOnFoot2D($scplayer, 2353.3, -1508.18, 3.0, 3.0, False)
  35@ == 0
goto_if_false @SWEET1_10087
Text.PrintHelp('SWE1_G')
TIMERA = 0
35@ = 1

:SWEET1_10087
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_10126
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_10126
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_10165
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_10165
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_10206
Text.PrintNow('SWE1SPF', 10000, 1)
goto @SWEET1_14533

:SWEET1_10206
if 
  38@ == 0
goto_if_false @SWEET1_10343
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_10343
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_10343
if and
  not Char.LocateAnyMeansCar3D($scplayer, $sweet_car, 30.0, 30.0, 10.0, False)
  not Car.IsOnScreen($sweet_car)
goto_if_false @SWEET1_10343
Char.ClearTasks($sweet)
Car.SetCoordinates($sweet_car, 2487.172, -1666.301, -100.3438)
Car.FreezePositionAndDontLoadCollision($sweet_car, True)
Char.FreezePositionAndDontLoadCollision($sweet, True)
38@ = 1

:SWEET1_10343
goto @SWEET1_8908

:SWEET1_10350
Blip.Remove(43@)
Blip.Remove(44@)
Blip.Remove(41@)
41@ = Blip.AddForCoord(2374.0, -1534.1, 23.0)
Text.PrintNow('SWE1_Z', 5000, 1)
World.SetTagStatusInArea(84@, 85@, 86@, 87@, 0)
$tag_percentage = World.GetPercentageTaggedInArea(84@, 85@, 86@, 87@)
Streaming.RequestCarRecording(207)

:SWEET1_10439
if 
  $tag_percentage <> 100
goto_if_false @SWEET1_11234
wait 0
if 
  58@ == 0
goto_if_false @SWEET1_10521
if 
  TIMERA > 2500
goto_if_false @SWEET1_10521
Text.PrintNow('SWE1_M', 6000, 1)
58@ = 1

:SWEET1_10521
$tag_percentage = World.GetPercentageTaggedInArea(84@, 85@, 86@, 87@)
if 
  $tag_percentage == 100
goto_if_false @SWEET1_10561
Blip.Remove(42@)

:SWEET1_10561
if 
  49@ == 0
goto_if_false @SWEET1_10682
if 
  Char.LocateOnFoot3D($scplayer, 2374.0, -1534.1, 23.0, 1.4, 1.4, 2.0, True)
goto_if_false @SWEET1_10682
Text.PrintHelp('JUMPH1')
Blip.Remove(41@)
Blip.Remove(42@)
42@ = Blip.AddForCoord(2395.43, -1551.69, 26.98)
Blip.ChangeColor(42@, BlipColor.Green)
49@ = 1

:SWEET1_10682
if and
  Char.LocateOnFoot2D($scplayer, 2352.3, -1552.1, 3.0, 3.0, False)
  49@ == 0
goto_if_false @SWEET1_10745
Text.PrintHelp('JUMPH1')
49@ = 1

:SWEET1_10745
if and
  Char.LocateOnFoot2D($scplayer, 2420.7, -1572.1, 3.0, 3.0, False)
  49@ == 0
goto_if_false @SWEET1_10808
Text.PrintHelp('JUMPH1')
49@ = 1

:SWEET1_10808
if and
  Char.LocateOnFoot2D($scplayer, 2373.5, -1547.2, 3.0, 3.0, False)
  50@ == 0
goto_if_false @SWEET1_10871
Text.PrintHelp('RADAR5')
50@ = 1

:SWEET1_10871
if and
  Char.LocateOnFoot2D($scplayer, 2378.755, -1555.89, 3.0, 3.0, False)
  53@ == 0
goto_if_false @SWEET1_10971
Text.PrintHelp('JUMPH2')
Blip.Remove(41@)
Blip.Remove(42@)
42@ = Blip.AddForCoord(2395.43, -1551.69, 26.98)
Blip.ChangeColor(42@, BlipColor.Green)
53@ = 1

:SWEET1_10971
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_11012
Text.PrintNow('SWE1SPF', 10000, 1)
goto @SWEET1_14533

:SWEET1_11012
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_11051
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_11051
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_11090
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_11090
if 
  38@ == 0
goto_if_false @SWEET1_11227
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_11227
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_11227
if or
  not Char.LocateAnyMeansCar3D($scplayer, $sweet_car, 100.0, 100.0, 10.0, False)
  not Car.IsOnScreen($sweet_car)
goto_if_false @SWEET1_11227
Char.ClearTasks($sweet)
Car.SetCoordinates($sweet_car, 2487.172, -1666.301, -100.3438)
Car.FreezePositionAndDontLoadCollision($sweet_car, True)
Char.FreezePositionAndDontLoadCollision($sweet, True)
38@ = 1

:SWEET1_11227
goto @SWEET1_10439

:SWEET1_11234
Blip.Remove(42@)
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_11401
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_11401
if 
  38@ == 1
goto_if_false @SWEET1_11303
Car.FreezePositionAndDontLoadCollision($sweet_car, False)
Char.FreezePositionAndDontLoadCollision($sweet, False)

:SWEET1_11303
Car.SetCoordinates($sweet_car, 2337.86, -1467.21, 22.82)
Car.SetHeading($sweet_car, 180.0)
wait 100
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_11401
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_11401
Char.ClearTasksImmediately($sweet)
Task.WarpCharIntoCarAsDriver($sweet, $sweet_car)
Char.SetCanBeShotInVehicle($sweet, False)
Blip.Remove(41@)
Car.LockDoors($sweet_car, CarLock.Unlocked)

:SWEET1_11401
if 
  not Streaming.HasCarRecordingBeenLoaded(207)
goto_if_false @SWEET1_11511
wait 0
Streaming.RequestCarRecording(207)
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_11465
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_11465
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_11504
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_11504
goto @SWEET1_11401

:SWEET1_11511
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_11616
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_11616
if 
  Streaming.HasCarRecordingBeenLoaded(207)
goto_if_false @SWEET1_11616
Char.ClearTasksImmediately($sweet)
wait 0
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_11608
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_11608
Task.WarpCharIntoCarAsDriver($sweet, $sweet_car)

:SWEET1_11608
Car.StartPlayback($sweet_car, 207)

:SWEET1_11616
wait 2000
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_11657
Blip.Remove(56@)
56@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(56@, True)

:SWEET1_11657
Player.SetControl($player1, False)
Text.ClearHelp
World.ClearArea(2378.323, -1526.153, 23.869, 50.0, True)
Camera.DoFade(300, Fade.Out)

:SWEET1_11697
if 
  Camera.GetFadingStatus
goto_if_false @SWEET1_11721
wait 0
goto @SWEET1_11697

:SWEET1_11721
Streaming.LoadSceneInDirection(2385.444, -1529.335, 24.0351, 82.7482)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2386.444, -1529.313, 24.0696, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2385.444, -1529.335, 24.0351, SwitchType.JumpCut)
Camera.DoFade(300, Fade.In)
TIMERA = 0
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 7464)

:SWEET1_11819
if 
  TIMERA <= 3500
goto_if_false @SWEET1_11927
wait 0
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_11881
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_11881
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_11920
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_11920
goto @SWEET1_11819

:SWEET1_11927
Camera.SetFixedPosition(2386.444, -1529.313, 24.0696, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2385.444, -1529.335, 24.0351, SwitchType.JumpCut)
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_12002
Audio.ReportMissionAudioEventAtCar($sweet_car, 1147)

:SWEET1_12002
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET1_12106
wait 0
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_12060
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_12060
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_12099
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_12099
goto @SWEET1_12002

:SWEET1_12106
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_12130
Audio.ReportMissionAudioEventAtCar($sweet_car, 1147)

:SWEET1_12130
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE1_BH', 10000, 1)

:SWEET1_12150
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET1_12254
wait 0
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_12208
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_12208
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_12247
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_12247
goto @SWEET1_12150

:SWEET1_12254
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_12301
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_12301
Char.ClearTasksImmediately($sweet)
Char.WarpIntoCarAsPassenger($sweet, $sweet_car, 0)

:SWEET1_12301
Camera.ResetNewScriptables
if 
  not Char.IsDead(54@)
goto_if_false @SWEET1_12329
Char.ClearTasks(54@)
Task.WanderStandard(54@)

:SWEET1_12329
if 
  not Char.IsDead(55@)
goto_if_false @SWEET1_12355
Char.ClearTasks(55@)
Task.WanderStandard(55@)

:SWEET1_12355
$blob_flag = 0
34@ = 0
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Text.PrintNow('SWE1_S', 6000, 1)
Blip.Remove(56@)
Blip.Remove(41@)
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_12439
56@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(56@, True)

:SWEET1_12439
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 26007)

:SWEET1_12446
if or
  not Car.Locate3D($sweet_car, 2504.735, -1672.45, 12.3848, 4.0, 4.0, 4.0, $blob_flag)
  not Char.IsSittingInCar($scplayer, $sweet_car)
  not Car.IsOnAllWheels($sweet_car)
goto_if_false @SWEET1_12964
wait 0
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_12551
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_12551
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_12597
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533
goto @SWEET1_12879

:SWEET1_12597
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET1_12787
if 
  40@ == 0
goto_if_false @SWEET1_12683
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET1_12683
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWEX_AH', 3000, 1)
TIMERA = 0
40@ = 1

:SWEET1_12683
if 
  34@ == 0
goto_if_false @SWEET1_12780
Blip.Remove(41@)
Blip.Remove(56@)
41@ = Blip.AddForCoord(2504.735, -1672.45, 12.3848)
if 
  TIMERA > 3000
goto_if_false @SWEET1_12773
Text.PrintNow('SWE1_B', 6000, 1)
34@ = 1

:SWEET1_12773
$blob_flag = 1

:SWEET1_12780
goto @SWEET1_12879

:SWEET1_12787
if 
  34@ == 1
goto_if_false @SWEET1_12879
Blip.Remove(56@)
Blip.Remove(41@)
56@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(56@, True)
gosub @SWEET1_15124
Text.PrintNow('SWE1_S', 6000, 1)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
$blob_flag = 0
34@ = 0

:SWEET1_12879
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_12918
Text.PrintNow('SWE1_P', 10000, 1)
goto @SWEET1_14533

:SWEET1_12918
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_12957
Text.PrintNow('SWE1_Q', 10000, 1)
goto @SWEET1_14533

:SWEET1_12957
goto @SWEET1_12446

:SWEET1_12964
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)

:SWEET1_12982
if 
  Camera.GetFadingStatus
goto_if_false @SWEET1_13006
wait 0
goto @SWEET1_12982

:SWEET1_13006
Streaming.RequestAnimation("GANGS")

:SWEET1_13015
if 
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @SWEET1_13046
wait 0
goto @SWEET1_13015

:SWEET1_13046
Camera.SetNearClip(0.2)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_13076
Char.HideWeaponForScriptedCutscene($sweet, True)

:SWEET1_13076
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.RemoveWeapon($scplayer, WeaponType.SprayCan)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_13123
Char.StopFacialTalk($sweet)
Char.StopFacialTalk($scplayer)

:SWEET1_13123
$sweet1_audio_is_playing = 0
$6545 = 0
$sweet1_chat_switch = 0
$sweet1_index = 1
gosub @SWEET1_52
Camera.SetFixedPosition(2509.95, -1672.095, 13.7315, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2510.891, -1672.419, 13.8204, SwitchType.JumpCut)
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2510.153, -1673.551, 14.2267, 2509.997, -1671.866, 13.9831, 18000, True)
Camera.SetVectorTrack(2510.967, -1672.995, 14.0633, 2510.885, -1672.317, 13.896, 18000, True)
Car.MarkAsNoLongerNeeded($sweet_car)
World.ClearArea(2511.352, -1672.14, 12.4588, 1.0, True)
Char.ClearTasksImmediately($scplayer)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET1_13370
Char.SetCoordinates($scplayer, 2511.352, -1672.14, 12.4588)
goto @SWEET1_13390

:SWEET1_13370
Char.WarpFromCarToCoord($scplayer, 2511.352, -1672.14, 12.4588)

:SWEET1_13390
Char.SetHeading($scplayer, 180.0)
World.ClearArea(2511.352, -1673.14, 12.4588, 1.0, True)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_13518
Char.ClearTasksImmediately($sweet)
if 
  not Char.IsInAnyCar($sweet)
goto_if_false @SWEET1_13488
Char.SetCoordinates($sweet, 2511.352, -1673.14, 12.4588)
goto @SWEET1_13508

:SWEET1_13488
Char.WarpFromCarToCoord($sweet, 2511.352, -1673.14, 12.4588)

:SWEET1_13508
Char.SetHeading($sweet, 0.0)

:SWEET1_13518
Camera.DoFade(1000, Fade.In)
wait 700
100@ = 0.0
$sweet1_chat_switch = 0

:SWEET1_13547
if 
  $sweet1_audio_is_playing <> 1
goto_if_false @SWEET1_13658
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_13651
if 
  $6545 == 2
goto_if_false @SWEET1_13651
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_13644
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, $sweet, 20000)

:SWEET1_13644
$sweet1_chat_switch = 1

:SWEET1_13651
goto @SWEET1_13547

:SWEET1_13658
$sweet1_chat_switch = 0

:SWEET1_13665
if 
  $sweet1_audio_is_playing <> 2
goto_if_false @SWEET1_13760
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_13753
if 
  $6545 == 2
goto_if_false @SWEET1_13753
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_13746

:SWEET1_13746
$sweet1_chat_switch = 1

:SWEET1_13753
goto @SWEET1_13665

:SWEET1_13760
$sweet1_chat_switch = 0

:SWEET1_13767
if 
  $sweet1_audio_is_playing <> 3
goto_if_false @SWEET1_13862
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_13855
if 
  $6545 == 2
goto_if_false @SWEET1_13855
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_13848

:SWEET1_13848
$sweet1_chat_switch = 1

:SWEET1_13855
goto @SWEET1_13767

:SWEET1_13862
$sweet1_chat_switch = 0

:SWEET1_13869
if 
  $sweet1_audio_is_playing <> 4
goto_if_false @SWEET1_14001
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_13994
if 
  $6545 == 2
goto_if_false @SWEET1_13994
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_13987
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 4.0, True, False, False, False, 6000)

:SWEET1_13987
$sweet1_chat_switch = 1

:SWEET1_13994
goto @SWEET1_13869

:SWEET1_14001
$sweet1_chat_switch = 0

:SWEET1_14008
if 
  $sweet1_audio_is_playing <> 5
goto_if_false @SWEET1_14103
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_14096
if 
  $6545 == 2
goto_if_false @SWEET1_14096
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_14089

:SWEET1_14089
$sweet1_chat_switch = 1

:SWEET1_14096
goto @SWEET1_14008

:SWEET1_14103
$sweet1_chat_switch = 0

:SWEET1_14110
if 
  $sweet1_audio_is_playing <> 6
goto_if_false @SWEET1_14295
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_14288
if 
  $6545 == 2
goto_if_false @SWEET1_14288
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_14281
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_14281
Task.PlayAnim($sweet, "HNDSHKFA", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim($scplayer, "HNDSHKFA", "GANGS", 4.0, False, False, False, False, -1)

:SWEET1_14281
$sweet1_chat_switch = 1

:SWEET1_14288
goto @SWEET1_14110

:SWEET1_14295
77@ = Char.GetScriptTaskStatus($scplayer, 1541)

:SWEET1_14306
if 
  not is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @SWEET1_14346
wait 0
77@ = Char.GetScriptTaskStatus($scplayer, 1541)
goto @SWEET1_14306

:SWEET1_14346
$sweet1_chat_switch = 0

:SWEET1_14353
if 
  $sweet1_audio_is_playing <> 7
goto_if_false @SWEET1_14489
wait 0
gosub @SWEET1_15582
if 
  $sweet1_chat_switch == 0
goto_if_false @SWEET1_14482
if 
  $6545 == 2
goto_if_false @SWEET1_14482
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_14475
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, $sweet, 2000)
Task.GoStraightToCoord($sweet, 2517.397, -1677.352, 13.2548, MoveState.Walk, 20000)

:SWEET1_14475
$sweet1_chat_switch = 1

:SWEET1_14482
goto @SWEET1_14353

:SWEET1_14489
wait 1500
Char.ClearLookAt($scplayer)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Camera.ResetNewScriptables
Char.Delete($sweet)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
goto @SWEET1_14640

:SWEET1_14533
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
World.SetTagStatusInArea(88@, 89@, 90@, 91@, 0)
World.SetTagStatusInArea(92@, 93@, 94@, 95@, 0)
World.SetTagStatusInArea(84@, 85@, 86@, 87@, 0)
World.SetTagStatusInArea(96@, 97@, 98@, 99@, 0)
if 
  Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_14638
Char.RemoveWeapon($scplayer, WeaponType.SprayCan)

:SWEET1_14638
return 

:SWEET1_14640
$flag_sweet_mission_counter += 1
if 
  Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_14689
Char.RemoveWeapon($scplayer, WeaponType.SprayCan)
Char.GiveWeapon($scplayer, WeaponType.SprayCan, 1000)
goto @SWEET1_14699

:SWEET1_14689
Char.GiveWeapon($scplayer, WeaponType.SprayCan, 1000)

:SWEET1_14699
$bball_unlocked = 1
Pickup.Remove($6536)
$6536 = Pickup.CreateWithAmmo(365, PickupType.OnStreetSlow, 1000, 2492.505, -1700.825, 1017.8)
Stat.PlayerMadeProgress(1)
Stat.RegisterMissionPassed('SWEET_1')
Text.PrintWithNumberBig('M_PASSS', 200, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(3)
Player.AddScore($player1, 200)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
return 

:SWEET1_14796
Streaming.MarkModelAsNoLongerNeeded(365)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(103)
Char.MarkAsNoLongerNeeded(54@)
Char.MarkAsNoLongerNeeded(55@)
Char.MarkAsNoLongerNeeded($sweet)
$timer_mobile_start = Clock.GetGameTimer()
CarGenerator.Switch($gen_car6, 101)
Blip.Remove(41@)
Blip.Remove(42@)
Blip.Remove(43@)
Blip.Remove(44@)
Blip.Remove(56@)
Blip.Remove(62@)
Streaming.RemoveAnimation("GRAFFITI")
Streaming.RemoveAnimation("GANGS")
Char.RemoveElegantly($sweet)
Streaming.RemoveCarRecording(207)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(10)
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET1_14933
Car.SetCanBurstTires($sweet_car, True)

:SWEET1_14933
Zone.SetGangStrength('IWD1', GangType.Ballas, 30)
Zone.SetGangStrength('IWD2', GangType.Ballas, 30)
Zone.SetGangStrength('IWD3A', GangType.Ballas, 30)
Zone.SetGangStrength('IWD3B', GangType.Ballas, 30)
Zone.SetGangStrength('IWD4', GangType.Ballas, 30)
Zone.SetGangStrength('IWD5', GangType.Ballas, 30)
Zone.SetGangStrength('ELS1A', GangType.Ballas, 30)
Zone.SetGangStrength('ELS1B', GangType.Ballas, 30)
Zone.SetGangStrength('ELS2', GangType.Ballas, 30)
Zone.SetGangStrength('ELS3A', GangType.Ballas, 30)
Zone.SetGangStrength('ELS3B', GangType.Ballas, 30)
Zone.SetGangStrength('ELS4', GangType.Ballas, 30)
$onmission = 0
Mission.Finish
return 

:SWEET1_15124
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_15153
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 7468)

:SWEET1_15153
if 
  $sweet1_cutscene_flag == 1
goto_if_false @SWEET1_15178
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 26044)

:SWEET1_15178
if 
  $sweet1_cutscene_flag == 2
goto_if_false @SWEET1_15203
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 26041)

:SWEET1_15203
if 
  $sweet1_cutscene_flag == 3
goto_if_false @SWEET1_15228
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 7463)

:SWEET1_15228
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:SWEET1_15244
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET1_15326
wait 0
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_15281
return 

:SWEET1_15281
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_15301
return 

:SWEET1_15301
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_15319
return 

:SWEET1_15319
goto @SWEET1_15244

:SWEET1_15326
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_15364
Text.PrintNow('SWE1_BM', 3000, 1)

:SWEET1_15364
if 
  $sweet1_cutscene_flag == 1
goto_if_false @SWEET1_15398
Text.PrintNow('SWEX_BS', 3000, 1)

:SWEET1_15398
if 
  $sweet1_cutscene_flag == 2
goto_if_false @SWEET1_15432
Text.PrintNow('SWEX_BP', 3000, 1)

:SWEET1_15432
if 
  $sweet1_cutscene_flag == 3
goto_if_false @SWEET1_15466
Text.PrintNow('SWE1_BG', 3000, 1)

:SWEET1_15466
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET1_15548
wait 0
if 
  Char.IsDead($sweet)
goto_if_false @SWEET1_15503
return 

:SWEET1_15503
if 
  not Char.HasGotWeapon($scplayer, WeaponType.SprayCan)
goto_if_false @SWEET1_15523
return 

:SWEET1_15523
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET1_15541
return 

:SWEET1_15541
goto @SWEET1_15466

:SWEET1_15548
$sweet1_cutscene_flag += 1
if 
  $sweet1_cutscene_flag > 3
goto_if_false @SWEET1_15580
$sweet1_cutscene_flag = 0

:SWEET1_15580
return 

:SWEET1_15582
if or
  $6545 == 0
  $6545 == 1
goto_if_false @SWEET1_15652
if 
  is_int_lvar_greater_or_equal_to_int_var 48@ >= $sweet1_audio_is_playing
goto_if_false @SWEET1_15652
if 
  TIMERA > 200
goto_if_false @SWEET1_15652
gosub @SWEET1_15724

:SWEET1_15652
if 
  $6545 == 2
goto_if_false @SWEET1_15722
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET1_15722
gosub @SWEET1_15953
$6545 = 0
$sweet1_audio_is_playing += 1
$sweet1_chat_switch = 0
Text.ClearPrints
TIMERA = 0

:SWEET1_15722
return 

:SWEET1_15724
if 
  $6545 == 0
goto_if_false @SWEET1_15760
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, $spray_can_pickup($sweet1_audio_is_playing,8i))
$6545 = 1

:SWEET1_15760
if 
  $6545 == 1
goto_if_false @SWEET1_15825
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET1_15825
Text.PrintNow($get_in_counter_swee1($sweet1_audio_is_playing,8s), 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
gosub @SWEET1_15827
$6545 = 2

:SWEET1_15825
return 

:SWEET1_15827
if or
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7402
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7403
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7404
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7405
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7494
goto_if_false @SWEET1_15920
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.StartFacialTalk($scplayer, 2000)
goto @SWEET1_15951

:SWEET1_15920
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_15951
Char.ShutUpForScriptedSpeech($sweet, True)
Char.StartFacialTalk($sweet, 2000)

:SWEET1_15951
return 

:SWEET1_15953
if or
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7402
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7403
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7404
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7405
  is_int_var_equal_to_constant $spray_can_pickup($sweet1_audio_is_playing,8i) == 7494
goto_if_false @SWEET1_16043
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
goto @SWEET1_16071

:SWEET1_16043
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET1_16071
Char.ShutUpForScriptedSpeech($sweet, False)
Char.StopFacialTalk($sweet)

:SWEET1_16071
return 

//-------------Mission 14---------------
// Originally: Cleaning The Hood

:SWEET1B
script_name 'SWEET1B'
gosub @SWEET1B_1015
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET1B_38
gosub @SWEET1B_15476

:SWEET1B_38
gosub @SWEET1B_15986
terminate_this_script 

:SWEET1B_47
switch_start 87@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @SWEET1B_1013 {caseNum1} 0 {caseLabel1} @SWEET1B_175 {caseNum2} 1 {caseLabel2} @SWEET1B_365 {caseNum3} 2 {caseLabel3} @SWEET1B_533 {caseNum4} 3 {caseLabel4} @SWEET1B_591 {caseNum5} 4 {caseLabel5} @SWEET1B_737 {caseNum6} 5 {caseLabel6} @SWEET1B_795 {caseNum7} 6 {caseLabel7} @SWEET1B_853
switch_continued 7 {caseLabel1} @SWEET1B_911 {caseNum2} -1 {caseLabel2} @SWEET1B_1013 {caseNum3} -1 {caseLabel3} @SWEET1B_1013 {caseNum4} -1 {caseLabel4} @SWEET1B_1013 {caseNum5} -1 {caseLabel5} @SWEET1B_1013 {caseNum6} -1 {caseLabel6} @SWEET1B_1013 {caseNum7} -1 {caseLabel7} @SWEET1B_1013 {caseNum8} -1 {caseLabel8} @SWEET1B_1013 {caseNum9} -1 {caseLabel9} @SWEET1B_1013

:SWEET1B_175
set_var_text_label s$6566[0] = 'SWE1_ZF'
set_var_text_label s$6566[1] = 'SWE1_YA'
set_var_text_label s$6566[2] = 'SWE1_YB'
set_var_text_label s$6566[3] = 'SWE1_YC'
set_var_text_label s$6566[4] = 'SWE1_YD'
set_var_text_label s$6566[5] = 'SWE1_YE'
set_var_text_label s$6566[6] = 'SWE1_YF'
set_var_text_label s$6566[7] = 'SWE1_YG'
set_lvar_int_to_constant 93@ = 7487
set_lvar_int_to_constant 94@ = 7408
set_lvar_int_to_constant 95@ = 7423
set_lvar_int_to_constant 96@ = 7409
set_lvar_int_to_constant 97@ = 7424
set_lvar_int_to_constant 98@ = 7425
set_lvar_int_to_constant 99@ = 7410
set_lvar_int_to_constant 100@ = 7426
91@ = 7
goto @SWEET1B_1013

:SWEET1B_365
set_var_text_label s$6566[0] = 'SWE1_YM'
set_var_text_label s$6566[1] = 'SWE1_YN'
set_var_text_label s$6566[2] = 'SWE1_YO'
set_var_text_label s$6566[3] = 'SWE1_YP'
set_var_text_label s$6566[4] = 'SWE1_YQ'
set_var_text_label s$6566[5] = 'SWE1_YR'
set_var_text_label s$6566[6] = 'SWE1_YS'
set_lvar_int_to_constant 93@ = 7430
set_lvar_int_to_constant 94@ = 7431
set_lvar_int_to_constant 95@ = 7432
set_lvar_int_to_constant 96@ = 7433
set_lvar_int_to_constant 97@ = 7481
set_lvar_int_to_constant 98@ = 7434
set_lvar_int_to_constant 99@ = 7482
91@ = 6
goto @SWEET1B_1013

:SWEET1B_533
set_var_text_label s$6566[0] = 'SWE1_YX'
set_var_text_label s$6566[1] = 'SWE1_YY'
set_lvar_int_to_constant 93@ = 7437
set_lvar_int_to_constant 94@ = 7438
91@ = 1
goto @SWEET1B_1013

:SWEET1B_591
set_var_text_label s$6566[0] = 'SWE1_TA'
set_var_text_label s$6566[1] = 'SWE1_TB'
set_var_text_label s$6566[2] = 'SWE1_TC'
set_var_text_label s$6566[3] = 'SWE1_TD'
set_var_text_label s$6566[4] = 'SWE1_TE'
set_var_text_label s$6566[5] = 'SWE1_TF'
set_lvar_int_to_constant 93@ = 7476
set_lvar_int_to_constant 94@ = 7411
set_lvar_int_to_constant 95@ = 7412
set_lvar_int_to_constant 96@ = 7477
set_lvar_int_to_constant 97@ = 7413
set_lvar_int_to_constant 98@ = 7414
91@ = 5
goto @SWEET1B_1013

:SWEET1B_737
set_var_text_label s$6566[0] = 'SWE1_SA'
set_var_text_label s$6566[1] = 'SWE1_SB'
set_lvar_int_to_constant 93@ = 7400
set_lvar_int_to_constant 94@ = 7401
91@ = 1
goto @SWEET1B_1013

:SWEET1B_795
set_var_text_label s$6566[0] = 'SWE1_YT'
set_var_text_label s$6566[1] = 'SWE1_YU'
set_lvar_int_to_constant 93@ = 7483
set_lvar_int_to_constant 94@ = 7435
91@ = 1
goto @SWEET1B_1013

:SWEET1B_853
set_var_text_label s$6566[0] = 'SWE1_YV'
set_var_text_label s$6566[1] = 'SWE1_YW'
set_lvar_int_to_constant 93@ = 7436
set_lvar_int_to_constant 94@ = 7484
91@ = 1
goto @SWEET1B_1013

:SWEET1B_911
set_var_text_label s$6566[0] = 'SWE1_UA'
set_var_text_label s$6566[1] = 'SWE1_UB'
set_var_text_label s$6566[2] = 'SWE1_UC'
set_var_text_label s$6566[3] = 'SWE1_UD'
set_lvar_int_to_constant 93@ = 7415
set_lvar_int_to_constant 94@ = 7416
set_lvar_int_to_constant 95@ = 7407
set_lvar_int_to_constant 96@ = 10245
91@ = 3
goto @SWEET1B_1013

:SWEET1B_1013
return 

:SWEET1B_1015
Stat.RegisterMissionGiven
55@ = 0
47@ = 0
$onmission = 1
63@ = 0
52@ = 0
57@ = 0
71@ = 0
72@ = 0
73@ = 0
74@ = 0
77@ = 0
84@ = 0
50@ = 0
43@ = 0
83@ = 0
86@ = 0
102@ = 0
66@ = 0
69@ = 0
51@ = 0
105@ = 0
103@ = 0
60@ = 0
Path.SwitchRoadsOff(2272.922, -1649.556, 14.3311, 2266.101, -1633.219, 14.3505)
Path.SwitchPedRoadsOff(324.1973, 1116.758, 1082.898, 313.1226, 1124.197, 1082.898)
wait 0
Text.LoadMissionText('SWEET1B')
Streaming.SetAreaVisible(1)
Cutscene.Load('SWEET1B')

:SWEET1B_1272
if 
  not Cutscene.HasLoaded
goto_if_false @SWEET1B_1296
wait 0
goto @SWEET1B_1272

:SWEET1B_1296
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SWEET1B_1305
if 
  not Cutscene.HasFinished
goto_if_false @SWEET1B_1329
wait 0
goto @SWEET1B_1305

:SWEET1B_1329
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:SWEET1B_1342
if 
  Camera.GetFadingStatus
goto_if_false @SWEET1B_1366
wait 0
goto @SWEET1B_1342

:SWEET1B_1366
Cutscene.Clear
Streaming.SetAreaVisible(0)
Streaming.RequestModel(336)
Streaming.RequestModel(492)
Streaming.LoadSpecialCharacter(1, 'RYDER2')
75@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Streaming.LoadAllModelsNow

:SWEET1B_1404
if or
  not Streaming.HasModelLoaded(336)
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(492)
goto_if_false @SWEET1B_1440
wait 0
goto @SWEET1B_1404

:SWEET1B_1440
Game.EnableAmbientCrime(False)
World.ClearArea(2516.392, -1676.517, 13.0041, 5.0, True)
World.ClearArea(2508.742, -1671.132, 12.3818, 5.0, True)
World.ClearArea(2516.95, -1675.23, 13.05, 2.0, True)
$ryder = Char.Create(PedType.Mission1, 290, 2516.392, -1676.517, 13.0041)
Char.SetHeading($ryder, 45.7)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Respect, PedType.Player1, PedType.Mission1)
Char.GiveWeapon($ryder, WeaponType.BaseballBat, 3000)
Char.SetCurrentWeapon($ryder, WeaponType.BaseballBat)
Char.SetDecisionMaker($ryder, 75@)
Char.SetOnlyDamagedByPlayer($ryder, True)
Char.SetAnimGroup($ryder, "GANG1")
Char.SetMaxHealth($ryder, 500)
Char.SetHealth($ryder, 500)
Char.SetNeverTargeted($ryder, True)
Char.SetSuffersCriticalHits($ryder, True)
39@ = Blip.AddForChar($ryder)
Blip.SetAsFriendly(39@, True)
Blip.Remove(39@)
Char.SetCoordinates($scplayer, 2516.95, -1675.23, 13.05)
Char.SetHeading($scplayer, 56.0)
Streaming.LoadScene(2509.81, -1670.89, 12.39)
$Players_Group = Player.GetGroup($player1)
Group.SetMember($Players_Group, $ryder)
Player.SetGroupRecruitment($player1, False)
Char.ListenToPlayerGroupCommands($ryder, False)
Player.SetGroupToFollowAlways($player1, True)
Game.EnableEntryExitPlayerGroupWarping(2165.72, -1673.14, 10.0, True)
Game.EnableEntryExitPlayerGroupWarping(319.56, 1117.64, 10.0, True)
Game.MakeRoomInPlayerGangForMissionPeds(1)
Char.SetSignalAfterKill($ryder, False)
Text.PrintNow('SW1B_A', 10000, 1)
CarGenerator.Switch($gen_car6, 0)
World.ClearArea(2508.16, -1666.47, 12.3983, 6.0, True)
Car.CustomPlateForNextCar(492, "GROVE4L_")
$sweet_car = Car.Create(492, 2508.16, -1666.47, 12.3983)
Car.ChangeColor($sweet_car, 59, 34)
Car.SetHeading($sweet_car, 16.0)
Audio.SetRadioChannel(RadioChannel.RadioLosSantos)
Streaming.MarkModelAsNoLongerNeeded(492)
Player.SetControl($player1, True)
Camera.DoFade(1200, Fade.In)
38@ = Blip.AddForCoord(2301.07, -1754.4, 12.54)
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
$blob_flag = 1
TIMERA = 0
World.SwitchEntryExit('LACRAK', False)
58@ = 0
101@ = 0
92@ = 0
87@ = 0
gosub @SWEET1B_47
World.ClearArea(2301.07, -1754.4, 12.54, 20.0, True)

:SWEET1B_2035
if or
  not Char.LocateAnyMeans3D($scplayer, 2301.07, -1754.4, 12.54, 4.0, 4.0, 4.0, $blob_flag)
  not Char.LocateAnyMeansChar3D($ryder, $scplayer, 30.0, 30.0, 8.0, False)
goto_if_false @SWEET1B_2424
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_2152
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_2152
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SWEET1B_2174
goto @SWEET1B_15901

:SWEET1B_2174
if 
  78@ == 0
goto_if_false @SWEET1B_2316
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_2316
if 
  Char.LocateAnyMeansChar3D($ryder, $scplayer, 10.0, 10.0, 8.0, False)
goto_if_false @SWEET1B_2316
if and
  Char.IsOnFoot($scplayer)
  Char.IsOnFoot($ryder)
goto_if_false @SWEET1B_2272
gosub @SWEET1B_16997

:SWEET1B_2272
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_2316
if and
  Char.IsInAnyCar($scplayer)
  Char.IsInAnyCar($ryder)
goto_if_false @SWEET1B_2316
gosub @SWEET1B_16997

:SWEET1B_2316
if 
  104@ == 0
goto_if_false @SWEET1B_2371
if 
  TIMERA > 5000
goto_if_false @SWEET1B_2371
Text.PrintHelp('CALLRYD')
104@ = 1

:SWEET1B_2371
gosub @SWEET1B_16294
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_2417
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_2417
goto @SWEET1B_2035

:SWEET1B_2424
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Text.ClearPrints
Camera.SetFixedPosition(2301.918, -1746.505, 14.009, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2301.81, -1747.499, 14.0471, SwitchType.JumpCut)
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_2557
if 
  Char.IsInAnyCar($ryder)
goto_if_false @SWEET1B_2532
Task.LeaveAnyCar($ryder)
goto @SWEET1B_2557

:SWEET1B_2532
Task.GoStraightToCoord($ryder, 2298.57, -1775.44, 12.56, MoveState.Walk, 2500)

:SWEET1B_2557
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SWEET1B_2590
wait 800
Task.LeaveAnyCar($scplayer)
goto @SWEET1B_2615

:SWEET1B_2590
Task.GoStraightToCoord($scplayer, 2298.57, -1775.44, 12.56, MoveState.Walk, 2500)

:SWEET1B_2615
Car.MarkAsNoLongerNeeded($sweet_car)
Camera.DoFade(1700, Fade.Out)

:SWEET1B_2627
if 
  Camera.GetFadingStatus
goto_if_false @SWEET1B_2651
wait 0
goto @SWEET1B_2627

:SWEET1B_2651
Streaming.SetAreaVisible(3)
Player.MakeSafeForCutscene($player1)
Cutscene.Load('SWEET1C')

:SWEET1B_2671
if 
  not Cutscene.HasLoaded
goto_if_false @SWEET1B_2695
wait 0
goto @SWEET1B_2671

:SWEET1B_2695
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SWEET1B_2704
if 
  not Cutscene.HasFinished
goto_if_false @SWEET1B_2728
wait 0
goto @SWEET1B_2704

:SWEET1B_2728
Cutscene.Clear
Camera.DoFade(0, Fade.Out)

:SWEET1B_2736
if 
  Camera.GetFadingStatus
goto_if_false @SWEET1B_2760
wait 0
goto @SWEET1B_2736

:SWEET1B_2760
Streaming.SetAreaVisible(0)
Streaming.RequestModel(28)
Streaming.RequestModel(107)
Streaming.RequestAnimation("DEALER")
Streaming.RequestAnimation("GANGS")
34@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
76@ = DecisionMakerChar.Load(DecisionMakerType.Weak)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 7427)
Streaming.LoadAllModelsNow

:SWEET1B_2814
if or
  not Streaming.HasModelLoaded(28)
  not Streaming.HasModelLoaded(107)
  not Streaming.HasAnimationLoaded("DEALER")
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @SWEET1B_2863
wait 0
goto @SWEET1B_2814

:SWEET1B_2863
Blip.Remove(38@)
48@ = Char.Create(PedType.Mission2, 107, 2283.656, -1645.599, 14.1598)
Char.SetDecisionMaker(48@, 75@)
35@ = Char.Create(PedType.Mission2, 28, 2284.947, -1645.396, 14.1413)
Char.SetMaxHealth(35@, 120)
Char.SetHealth(35@, 120)
Char.SetHeading(35@, 114.0)
44@ = Blip.AddForChar(35@)
Char.SetDecisionMaker(35@, 75@)
Char.SetShootRate(35@, 75)
Char.ShutUpForScriptedSpeech(35@, True)
Task.TurnCharToFaceChar(35@, 48@)
Task.TurnCharToFaceChar(48@, 35@)
Char.FreezePositionAndDontLoadCollision(35@, True)
Char.FreezePositionAndDontLoadCollision(48@, True)
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Char.SetCoordinates($scplayer, 2300.13, -1763.18, 12.63)
Char.SetHeading($scplayer, 0.0)
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_3099
Char.SetCoordinates($ryder, 2298.15, -1762.67, 12.56)
Char.SetHeading($ryder, 355.37)

:SWEET1B_3099
Streaming.LoadScene(2300.13, -1763.18, 12.63)
85@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2281.116, -1647.527, 14.2174, MoveState.Run, 10000)
Task.GoStraightToCoord(-1, 2281.133, -1650.709, 14.1714, MoveState.Run, 10000)
Task.GoStraightToCoord(-1, 2238.091, -1661.728, 14.469, MoveState.Run, 10000)
Task.WanderStandard(-1)
Sequence.Close(85@)
42@ = Sequence.Open()
Task.PlayAnim(-1, "DEALER_IDLE", "DEALER", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "DEALER_DEAL", "GANGS", 4.0, False, False, False, False, -1)
Sequence.SetToRepeat(42@, True)
Sequence.Close(42@)
40@ = Sequence.Open()
Task.LookAtChar(-1, 35@, 3000)
Task.LookAbout(-1, 2000)
Task.PlayAnim(-1, "SHOP_PAY", "DEALER", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "DRUGS_BUY", "GANGS", 4.0, False, False, False, False, -1)
Sequence.SetToRepeat(40@, True)
Sequence.Close(40@)
102@ = 1
Camera.DoFade(1000, Fade.In)

:SWEET1B_3420
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET1B_3485
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_3478
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_3478
goto @SWEET1B_3420

:SWEET1B_3485
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE1_YH', 3000, 1)

:SWEET1B_3505
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET1B_3570
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_3563
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_3563
goto @SWEET1B_3505

:SWEET1B_3570
Text.PrintNow('SW1B_B', 10000, 1)

:SWEET1B_3586
if or
  not Char.IsDead(35@)
  not Char.LocateAnyMeans3D($scplayer, 2284.947, -1645.396, 14.1413, 50.0, 50.0, 8.0, False)
goto_if_false @SWEET1B_5267
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_3682
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_3682
if 
  104@ == 0
goto_if_false @SWEET1B_3737
if 
  TIMERA > 2000
goto_if_false @SWEET1B_3737
Text.PrintHelp('CALLRYD')
104@ = 1

:SWEET1B_3737
if 
  52@ == 0
goto_if_false @SWEET1B_3905
if 
  Char.LocateAnyMeans3D($scplayer, 2284.947, -1645.396, 14.1413, 50.0, 50.0, 8.0, False)
goto_if_false @SWEET1B_3898
if 
  not Char.IsDead(48@)
goto_if_false @SWEET1B_3826
Char.FreezePositionAndDontLoadCollision(48@, False)

:SWEET1B_3826
if 
  not Char.IsDead(35@)
goto_if_false @SWEET1B_3891
Char.FreezePositionAndDontLoadCollision(35@, False)
if 
  not Char.IsDead(48@)
goto_if_false @SWEET1B_3891
Char.PerformSequence(35@, 42@)
Sequence.Clear(42@)
Char.PerformSequence(48@, 40@)
Sequence.Clear(40@)

:SWEET1B_3891
52@ = 1

:SWEET1B_3898
goto @SWEET1B_4171

:SWEET1B_3905
if 
  not Char.IsDead(35@)
goto_if_false @SWEET1B_4171
if 
  52@ == 1
goto_if_false @SWEET1B_4171
if 
  Char.LocateAnyMeansChar3D(35@, $scplayer, 6.0, 6.0, 8.0, False)
goto_if_false @SWEET1B_4171
Char.ClearTasks(35@)
Task.LookAtChar(35@, $scplayer, 3000)
Task.TurnCharToFaceChar(35@, $scplayer)
Char.SetDecisionMaker(35@, 34@)
Task.PlayAnim(35@, "DEALER_IDLE", "DEALER", 4.0, True, False, False, False, -1)
if 
  51@ == 0
goto_if_false @SWEET1B_4122
if 
  not Char.IsDead(48@)
goto_if_false @SWEET1B_4122
Char.FreezePositionAndDontLoadCollision(48@, False)
Char.ClearTasksImmediately(48@)
Char.PerformSequence(48@, 85@)
Sequence.Clear(85@)
Char.SetDecisionMaker(48@, 75@)
51@ = 1

:SWEET1B_4122
58@ = 0
101@ = 0
92@ = 0
87@ = 4
gosub @SWEET1B_47
TIMERA = 0
52@ = 2

:SWEET1B_4171
if 
  52@ == 2
goto_if_false @SWEET1B_4331
if 
  105@ == 0
goto_if_false @SWEET1B_4260
if 
  TIMERA > 2000
goto_if_false @SWEET1B_4260
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET1B_4260
Text.PrintHelp('MEL_HLP')
105@ = 1

:SWEET1B_4260
if 
  105@ == 1
goto_if_false @SWEET1B_4331
if 
  TIMERA > 8000
goto_if_false @SWEET1B_4331
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET1B_4331
Text.PrintHelp('MELHLP2')
105@ = 2

:SWEET1B_4331
if 
  51@ == 0
goto_if_false @SWEET1B_4636
if 
  Char.IsDead(35@)
goto_if_false @SWEET1B_4428
if 
  not Char.IsDead(48@)
goto_if_false @SWEET1B_4421
Char.FreezePositionAndDontLoadCollision(48@, False)
Char.ClearTasksImmediately(48@)
Char.PerformSequence(48@, 85@)
Sequence.Clear(85@)
Char.SetDecisionMaker(48@, 75@)
51@ = 1

:SWEET1B_4421
goto @SWEET1B_4636

:SWEET1B_4428
if 
  not Char.IsDead(48@)
goto_if_false @SWEET1B_4573
if or
  not Char.IsHealthGreater(35@, 119)
  not Char.IsHealthGreater(48@, 99)
goto_if_false @SWEET1B_4566
Char.FreezePositionAndDontLoadCollision(48@, False)
Char.ClearTasksImmediately(48@)
Char.PerformSequence(48@, 85@)
Sequence.Clear(85@)
Char.SetDecisionMaker(48@, 75@)
if 
  not Char.IsDead(35@)
goto_if_false @SWEET1B_4559
Task.PlayAnim(35@, "DEALER_IDLE", "DEALER", 4.0, True, False, False, False, -1)

:SWEET1B_4559
51@ = 1

:SWEET1B_4566
goto @SWEET1B_4636

:SWEET1B_4573
if 
  not Char.IsDead(35@)
goto_if_false @SWEET1B_4636
Task.PlayAnim(35@, "XPRESSSCRATCH", "PED", 4.0, False, False, False, False, -1)
51@ = 1

:SWEET1B_4636
if 
  90@ == 0
goto_if_false @SWEET1B_4810
if 
  not Char.IsDead(35@)
goto_if_false @SWEET1B_4795
if 
  Char.IsHealthGreater(35@, 119)
goto_if_false @SWEET1B_4738
if 
  Char.LocateAnyMeansChar3D(35@, $scplayer, 6.0, 6.0, 8.0, False)
goto_if_false @SWEET1B_4731
gosub @SWEET1B_16997

:SWEET1B_4731
goto @SWEET1B_4788

:SWEET1B_4738
Char.GiveWeapon(35@, WeaponType.BaseballBat, 3000)
Char.SetDropsWeaponsWhenDead(35@, False)
Char.ShutUpForScriptedSpeech(35@, False)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
Char.ClearTasks(35@)
Task.KillCharOnFoot(35@, $scplayer)
90@ = 1

:SWEET1B_4788
goto @SWEET1B_4810

:SWEET1B_4795
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
90@ = 1

:SWEET1B_4810
if 
  66@ == 0
goto_if_false @SWEET1B_5214
if 
  Char.LocateAnyMeans3D($scplayer, 2284.947, -1645.396, 14.1413, 20.0, 15.0, 5.0, False)
goto_if_false @SWEET1B_5214
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 7428)
Player.SetControl($player1, False)
wait 1000
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2283.019, -1649.472, 15.0999, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2283.326, -1648.525, 15.1884, SwitchType.JumpCut)
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_5164
if 
  Char.LocateAnyMeansChar3D($ryder, $scplayer, 10.0, 10.0, 8.0, False)
goto_if_false @SWEET1B_5159

:SWEET1B_5002
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET1B_5067
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_5060
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_5060
goto @SWEET1B_5002

:SWEET1B_5067
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE1_YK', 5000, 1)

:SWEET1B_5087
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET1B_5152
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_5145
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_5145
goto @SWEET1B_5087

:SWEET1B_5152
goto @SWEET1B_5164

:SWEET1B_5159
wait 2000

:SWEET1B_5164
wait 1000
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SWEET1B_5190
Task.LeaveAnyCar($scplayer)

:SWEET1B_5190
Text.ClearPrints
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
66@ = 1

:SWEET1B_5214
gosub @SWEET1B_16294
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_5260
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_5260
goto @SWEET1B_3586

:SWEET1B_5267
Streaming.MarkModelAsNoLongerNeeded(107)
TIMERA = 0
Blip.Remove(44@)

:SWEET1B_5283
if or
  TIMERA <= 2000
  78@ <> 0
goto_if_false @SWEET1B_5359
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_5352
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_5352
goto @SWEET1B_5283

:SWEET1B_5359
Camera.DoFade(500, Fade.Out)

:SWEET1B_5366
if 
  Camera.GetFadingStatus
goto_if_false @SWEET1B_5390
wait 0
goto @SWEET1B_5366

:SWEET1B_5390
Streaming.SetAreaVisible(0)
Char.Delete(48@)
Streaming.MarkModelAsNoLongerNeeded(28)
Streaming.RemoveAnimation("DEALER")
Streaming.LoadScene(2283.0, -1644.4, 14.2)
World.ClearArea(2285.17, -1644.74, 14.08, 4.0, True)
World.ClearAreaOfCars(2288.28, -1648.13, 14.0, 2274.92, -1641.33, 14.31)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_5542
Char.SetAreaVisible($ryder, 0)
Char.HideWeaponForScriptedCutscene($ryder, True)
Char.RemoveFromGroup($ryder)
Char.ClearTasksImmediately($ryder)
Char.ClearLookAt($ryder)

:SWEET1B_5542
Char.ClearTasksImmediately($scplayer)
Char.ClearLookAt($scplayer)
Char.SetAreaVisible($scplayer, 0)
Char.HideWeaponForScriptedCutscene($scplayer, True)
wait 1000
World.ClearArea(2285.17, -1644.74, 14.08, 5.0, True)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET1B_5638
Char.SetCoordinates($scplayer, 2284.462, -1645.925, 14.1362)
goto @SWEET1B_5658

:SWEET1B_5638
Char.WarpFromCarToCoord($scplayer, 2284.462, -1645.925, 14.1362)

:SWEET1B_5658
Char.SetHeading($scplayer, 333.0)
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_5757
if 
  not Char.IsInAnyCar($ryder)
goto_if_false @SWEET1B_5727
Char.SetCoordinates($ryder, 2283.27, -1645.8, 14.15)
goto @SWEET1B_5747

:SWEET1B_5727
Char.WarpFromCarToCoord($ryder, 2283.27, -1645.8, 14.15)

:SWEET1B_5747
Char.SetHeading($ryder, 310.0)

:SWEET1B_5757
108@ = 0
if 
  Char.DoesExist(35@)
goto_if_false @SWEET1B_5803
if 
  Char.IsHeadMissing(35@)
goto_if_false @SWEET1B_5803
108@ = 1

:SWEET1B_5803
Camera.SetFixedPosition(2285.177, -1644.748, 14.0885, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2284.635, -1645.266, 14.7501, SwitchType.JumpCut)
if 
  108@ == 0
goto_if_false @SWEET1B_5879
Player.SetDrunkenness($player1, 100)

:SWEET1B_5879
58@ = 0
101@ = 0
92@ = 0
87@ = 1
gosub @SWEET1B_47
wait 200
Char.ClearLookAt($scplayer)
Task.LookAtCoord($scplayer, 2285.1, -1644.7, 14.0, 21000)
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_5991
Char.ClearLookAt($ryder)
Task.LookAtCoord($ryder, 2285.1, -1644.7, 14.0, 21000)

:SWEET1B_5991
Char.Delete(35@)
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_6133
if 
  not Char.LocateOnFoot3D($ryder, 2283.27, -1645.8, 14.15, 0.5, 0.5, 2.0, False)
goto_if_false @SWEET1B_6133
if 
  not Char.IsInAnyCar($ryder)
goto_if_false @SWEET1B_6103
Char.SetCoordinates($ryder, 2283.27, -1645.8, 14.15)
goto @SWEET1B_6123

:SWEET1B_6103
Char.WarpFromCarToCoord($ryder, 2283.27, -1645.8, 14.15)

:SWEET1B_6123
Char.SetHeading($ryder, 310.0)

:SWEET1B_6133
wait 200
Camera.DoFade(500, Fade.In)
wait 700
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_6287
if 
  not Char.LocateOnFoot3D($ryder, 2283.27, -1645.8, 14.15, 0.5, 0.5, 2.0, False)
goto_if_false @SWEET1B_6287
if 
  not Char.IsInAnyCar($ryder)
goto_if_false @SWEET1B_6257
Char.SetCoordinates($ryder, 2283.27, -1645.8, 14.15)
goto @SWEET1B_6277

:SWEET1B_6257
Char.WarpFromCarToCoord($ryder, 2283.27, -1645.8, 14.15)

:SWEET1B_6277
Char.SetHeading($ryder, 310.0)

:SWEET1B_6287
Text.ClearPrints
Text.ClearHelp
if 
  108@ == 0
goto_if_false @SWEET1B_6309

:SWEET1B_6309
skip_cutscene_start_internal @SWEET1B_7320
92@ = 0

:SWEET1B_6323
if 
  58@ == 0
goto_if_false @SWEET1B_6455
wait 0
gosub @SWEET1B_16997
if 
  92@ == 0
goto_if_false @SWEET1B_6448
if 
  101@ == 2
goto_if_false @SWEET1B_6448
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_6448
Task.PlayAnim($ryder, "IDLE_CHAT", "PED", 4.0, False, False, False, False, 6000)
92@ = 1

:SWEET1B_6448
goto @SWEET1B_6323

:SWEET1B_6455
92@ = 0

:SWEET1B_6462
if 
  58@ == 1
goto_if_false @SWEET1B_6498
wait 0
gosub @SWEET1B_16997
goto @SWEET1B_6462

:SWEET1B_6498
92@ = 0

:SWEET1B_6505
if 
  58@ == 2
goto_if_false @SWEET1B_6616
wait 0
gosub @SWEET1B_16997
if 
  92@ == 0
goto_if_false @SWEET1B_6609
if 
  101@ == 2
goto_if_false @SWEET1B_6609
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_6609
Char.ClearLookAt($ryder)
Task.LookAtChar($ryder, $scplayer, 9000)
92@ = 1

:SWEET1B_6609
goto @SWEET1B_6505

:SWEET1B_6616
if 
  108@ == 0
goto_if_false @SWEET1B_6634

:SWEET1B_6634
92@ = 0

:SWEET1B_6641
if 
  58@ == 3
goto_if_false @SWEET1B_6677
wait 0
gosub @SWEET1B_16997
goto @SWEET1B_6641

:SWEET1B_6677
92@ = 0

:SWEET1B_6684
if 
  58@ == 4
goto_if_false @SWEET1B_6795
wait 0
gosub @SWEET1B_16997
if 
  92@ == 0
goto_if_false @SWEET1B_6788
if 
  101@ == 2
goto_if_false @SWEET1B_6788
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_6788
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, $ryder, 5000)
92@ = 1

:SWEET1B_6788
goto @SWEET1B_6684

:SWEET1B_6795
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_6827
Char.ClearLookAt($ryder)
Task.LookAtChar($ryder, $scplayer, 5000)

:SWEET1B_6827
92@ = 0

:SWEET1B_6834
if 
  58@ == 5
goto_if_false @SWEET1B_6972
wait 0
gosub @SWEET1B_16997
if 
  92@ == 0
goto_if_false @SWEET1B_6965
if 
  101@ == 2
goto_if_false @SWEET1B_6965
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_6965
Task.PlayAnim($ryder, "PRTIAL_GNGTLKH", "GANGS", 4.0, False, False, False, False, -1)
92@ = 1

:SWEET1B_6965
goto @SWEET1B_6834

:SWEET1B_6972
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_7026
Task.PlayAnim($ryder, "IDLE_STANCE", "PED", 4.0, False, False, False, False, -1)

:SWEET1B_7026
Char.ClearLookAt($scplayer)
Task.LookAtCoord($scplayer, 2285.1, -1644.7, 14.0, 20000)
92@ = 0

:SWEET1B_7061
if 
  58@ == 6
goto_if_false @SWEET1B_7184
wait 0
gosub @SWEET1B_16997
if 
  92@ == 0
goto_if_false @SWEET1B_7177
if 
  101@ == 2
goto_if_false @SWEET1B_7177
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_7177
Char.ClearLookAt($ryder)
Task.LookAtCoord($ryder, 2285.1, -1644.7, 14.0, 20000)
92@ = 1

:SWEET1B_7177
goto @SWEET1B_7061

:SWEET1B_7184
Char.ClearTasks($scplayer)
Task.PlayAnim($scplayer, "FIGHTA_G", "PED", 4.0, False, False, False, False, -1)

:SWEET1B_7224
if 
  0.351 > 110@
goto_if_false @SWEET1B_7300
wait 0
if 
  Char.IsPlayingAnim($scplayer, "FIGHTA_G")
goto_if_false @SWEET1B_7293
110@ = Char.GetAnimCurrentTime($scplayer, "FIGHTA_G")

:SWEET1B_7293
goto @SWEET1B_7224

:SWEET1B_7300
Audio.ReportMissionAudioEventAtPosition(2285.177, -1644.748, 14.0885, 1136)

:SWEET1B_7320
skip_cutscene_end 
Char.ClearTasks($scplayer)
Text.ClearPrints
Audio.SetMusicDoesFade(False)
Camera.DoFade(0, Fade.Out)
Char.HideWeaponForScriptedCutscene($scplayer, False)
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_7369
Char.HideWeaponForScriptedCutscene($ryder, False)

:SWEET1B_7369
wait 1000
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_7395
Char.ClearLookAt($ryder)

:SWEET1B_7395
Char.ClearLookAt($scplayer)
Streaming.RemoveAnimation("GANGS")
Blip.Remove(38@)
38@ = Blip.AddForCoord(2171.781, -1676.78, 14.0859)
102@ = 2
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_7499
Char.RemoveFromGroup($ryder)
$Players_Group = Player.GetGroup($player1)
Group.SetMember($Players_Group, $ryder)
Player.SetGroupRecruitment($player1, False)
Char.ListenToPlayerGroupCommands($ryder, False)
47@ = 1

:SWEET1B_7499
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Camera.ResetNewScriptables
Player.SetDrunkenness($player1, 0)
Char.SetHeading($scplayer, 152.235)
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
79@ = Pickup.Create(336, PickupType.Once, 2285.743, -1647.309, 14.0782)
Audio.SetMusicDoesFade(True)
Camera.DoFade(1000, Fade.In)
Text.ClearPrints
if 
  not Char.HasGotWeapon($scplayer, WeaponType.BaseballBat)
goto_if_false @SWEET1B_7805
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 7441)
wait 500

:SWEET1B_7609
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET1B_7720
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_7667
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_7667
gosub @SWEET1B_16294
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_7713
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_7713
goto @SWEET1B_7609

:SWEET1B_7720
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SWE1_ZC', 3000, 1)

:SWEET1B_7740
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET1B_7805
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_7798
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_7798
goto @SWEET1B_7740

:SWEET1B_7805
58@ = 0
101@ = 0
92@ = 0
87@ = 5
gosub @SWEET1B_47
TIMERB = 0
TIMERA = 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_7893
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_7893
Text.PrintNow('SW1B_1', 10000, 1)
World.ClearArea(2171.781, -1676.78, 14.0859, 8.0, True)

:SWEET1B_7933
if or
  not Char.LocateAnyMeans3D($scplayer, 2171.781, -1676.78, 14.0859, 3.5, 3.5, 4.0, $blob_flag)
  not Char.LocateAnyMeansChar3D($ryder, $scplayer, 30.0, 30.0, 8.0, False)
goto_if_false @SWEET1B_8372
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_8050
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_8050
if 
  TIMERB > 5000
goto_if_false @SWEET1B_8177
if 
  Char.LocateAnyMeansChar3D($ryder, $scplayer, 10.0, 10.0, 8.0, False)
goto_if_false @SWEET1B_8177
if and
  Char.IsOnFoot($scplayer)
  Char.IsOnFoot($ryder)
goto_if_false @SWEET1B_8133
gosub @SWEET1B_16997

:SWEET1B_8133
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_8177
if and
  Char.IsInAnyCar($scplayer)
  Char.IsInAnyCar($ryder)
goto_if_false @SWEET1B_8177
gosub @SWEET1B_16997

:SWEET1B_8177
gosub @SWEET1B_16294
if 
  105@ == 0
goto_if_false @SWEET1B_8255
if 
  TIMERA > 2000
goto_if_false @SWEET1B_8255
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET1B_8255
Text.PrintHelp('MEL_HLP')
105@ = 1

:SWEET1B_8255
if 
  105@ == 1
goto_if_false @SWEET1B_8326
if 
  TIMERA > 8000
goto_if_false @SWEET1B_8326
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET1B_8326
Text.PrintHelp('MELHLP2')
105@ = 2

:SWEET1B_8326
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_8365
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_8365
goto @SWEET1B_7933

:SWEET1B_8372
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
58@ = 0
101@ = 0
92@ = 0
87@ = 6
gosub @SWEET1B_47
Hud.SwitchWidescreen(True)
World.SwitchEntryExit('LACRAK', True)
Player.SetControl($player1, False)
Camera.SetFixedPosition(2177.072, -1682.038, 15.8487, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2176.343, -1681.354, 15.8969, SwitchType.JumpCut)
TIMERB = 0

:SWEET1B_8497
if 
  58@ <> 1
goto_if_false @SWEET1B_8533
wait 0
gosub @SWEET1B_16997
goto @SWEET1B_8497

:SWEET1B_8533
Blip.Remove(38@)
38@ = Blip.AddForCoord(2169.72, -1673.14, 13.01)
102@ = 3
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
110@ = 0.0
TIMERB = 0
106@ = 0

:SWEET1B_8604
if 
  43@ <> 1
goto_if_false @SWEET1B_13618
wait 0
78@ = Streaming.GetAreaVisible()
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SWEET1B_8653
goto @SWEET1B_15901

:SWEET1B_8653
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_8692
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_8692
gosub @SWEET1B_16997
if 
  78@ == 5
goto_if_false @SWEET1B_12954
Game.ActivateInteriorPeds(False)
if 
  Char.LocateAnyMeans3D($scplayer, 319.15, 1120.89, 1082.87, 20.0, 20.0, 10.0, False)
goto_if_false @SWEET1B_12954
if 
  63@ == 0
goto_if_false @SWEET1B_12544
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
World.ClearArea(319.15, 1120.89, 1082.87, 100.0, True)
Blip.Remove(39@)
Camera.DoFade(0, Fade.Out)
Streaming.RequestModel(102)
Streaming.RequestModel(64)
Streaming.RequestModel(63)
Streaming.RequestModel(28)
Streaming.RequestModel(#CIGAR)
Streaming.RequestAnimation("CRACK")
Streaming.RequestAnimation("BLOWJOBZ")
Streaming.RequestAnimation("BASEBALL")
Streaming.LoadAllModelsNow

:SWEET1B_8888
if or
  not Streaming.HasAnimationLoaded("CRACK")
  not Streaming.HasAnimationLoaded("BLOWJOBZ")
  not Streaming.HasAnimationLoaded("BASEBALL")
goto_if_false @SWEET1B_8949
wait 0
Camera.DoFade(0, Fade.Out)
goto @SWEET1B_8888

:SWEET1B_8949
if or
  not Streaming.HasModelLoaded(102)
  not Streaming.HasModelLoaded(63)
  not Streaming.HasModelLoaded(64)
  not Streaming.HasModelLoaded(#CIGAR)
  not Streaming.HasModelLoaded(28)
goto_if_false @SWEET1B_8997
wait 0
Camera.DoFade(0, Fade.Out)
goto @SWEET1B_8949

:SWEET1B_8997
68@ = Sequence.Open()
Task.GoStraightToCoord(-1, 315.81, 1122.3, 1082.8, MoveState.Run, 10000)
Task.PlayAnim(-1, "BBALBAT_IDLE_01", "CRACK", 4.0, True, False, False, False, -1)
Sequence.Close(68@)
World.SwitchEntryExit('LACRAK', False)
61@ = Char.Create(PedType.CivFemale, 64, 309.77, 1123.5, 1082.87)
Char.SetAreaVisible(61@, 5)
Char.SetHeading(61@, 107.12)
Task.PlayAnimNonInterruptable(61@, "CRCKIDLE4", "CRACK", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(61@, 75@)
36@ = Char.Create(PedType.Mission2, 64, 317.5892, 1124.777, 1082.867)
Char.SetAreaVisible(36@, 5)
Char.SetHeading(36@, 180.0)
Task.PlayAnimNonInterruptable(36@, "CRCKIDLE2", "CRACK", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(36@, 75@)
54@ = Char.Create(PedType.Mission2, 102, 325.0, 1119.975, 1082.875)
Char.SetAreaVisible(54@, 5)
Char.SetHeading(54@, 90.0)
Task.PlayAnimNonInterruptable(54@, "CRCKIDLE1", "CRACK", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(54@, 75@)
80@ = Object.Create(#CIGAR, 2440.58, -1979.89, 1082.2)
Task.PickUpObject(54@, 80@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", -1)
49@ = Char.Create(PedType.Mission2, 102, 320.1898, 1123.292, 1082.875)
Char.SetAreaVisible(49@, 5)
Char.SetHeading(49@, 177.9659)
Task.PlayAnimNonInterruptable(49@, "CRCKIDLE3", "CRACK", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(49@, 75@)
81@ = Object.Create(#CIGAR, 2440.58, -1979.89, 1082.2)
Task.PickUpObject(49@, 81@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", -1)
62@ = Char.Create(PedType.Mission2, 102, 333.63, 1124.51, 1082.88)
Char.SetMaxHealth(62@, 70)
Char.SetHealth(62@, 70)
Char.SetAreaVisible(62@, 5)
Char.SetHeading(62@, 267.96)
Char.SetDecisionMaker(62@, 34@)
Char.SetRelationship(62@, RelationshipType.Dislike, PedType.Player1)
82@ = Object.Create(#CIGAR, 2440.58, -1979.89, 1082.2)
Task.PickUpObject(62@, 82@, 0.0, 0.0, 0.0, 5, 16, "NULL", "NULL", -1)
88@ = Blip.AddForChar(62@)
Blip.SetEntryExit(88@, 2167.835, -1672.923, 2.0)
64@ = Char.Create(PedType.Mission2, 102, 325.0, 1129.213, 1082.883)
Char.SetAreaVisible(64@, 5)
Char.SetHeading(64@, 90.0)
Task.PlayAnim(64@, "BJ_COUCH_LOOP_P", "BLOWJOBZ", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(64@, 34@)
Char.SetRelationship(64@, RelationshipType.Dislike, PedType.Player1)
89@ = Blip.AddForChar(64@)
Blip.SetEntryExit(89@, 2167.835, -1672.923, 2.0)
65@ = Char.Create(PedType.CivFemale, 63, 324.0, 1129.2, 1082.883)
Char.SetAreaVisible(65@, 5)
Char.SetHeading(65@, 270.0)
Task.PlayAnim(65@, "BJ_COUCH_LOOP_W", "BLOWJOBZ", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(65@, 75@)
Char.SetRelationship(65@, RelationshipType.Dislike, PedType.Player1)
59@ = Char.Create(PedType.Mission2, 102, 333.4072, 1124.462, 1082.89)
Char.SetAreaVisible(59@, 5)
Char.SetHeading(59@, 83.6676)
Task.PlayAnimNonInterruptable(59@, "CRCKIDLE3", "CRACK", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(59@, 75@)
81@ = Object.Create(#CIGAR, 2440.58, -1979.89, 1082.2)
Task.PickUpObject(59@, 81@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", -1)
37@ = Char.Create(PedType.Mission2, 28, 306.03, 1121.86, 1082.87)
Char.SetAreaVisible(37@, 5)
Char.SetShootRate(37@, 80)
Char.SetMaxHealth(37@, 150)
Char.SetHealth(37@, 150)
Char.SetHeading(37@, 263.66)
Char.GiveWeapon(37@, WeaponType.BaseballBat, 3000)
Char.SetDecisionMaker(37@, 34@)
Char.SetRelationship(37@, RelationshipType.Dislike, PedType.Player1)
45@ = Blip.AddForChar(37@)
Blip.SetEntryExit(45@, 2167.835, -1672.923, 2.0)
TIMERA = 0
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 7437)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 7438)

:SWEET1B_10252
if 
  TIMERA <= 1000
goto_if_false @SWEET1B_10288
wait 0
Camera.DoFade(0, Fade.Out)
goto @SWEET1B_10252

:SWEET1B_10288
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_10385
Char.RemoveFromGroup($ryder)
Char.ClearTasksImmediately($ryder)
Char.ClearLookAt($ryder)
Char.SetCoordinates($ryder, 320.12, 1118.2, 1082.89)
Char.SetHeading($ryder, 7.0)
Char.SetHasUsedEntryExit($ryder, 2169.72, -1673.14, 20.0)
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, $ryder, 6000)

:SWEET1B_10385
Camera.SetFixedPosition(318.297, 1115.438, 1085.054, 0.0, 0.0, 0.0)
Camera.PointAtPoint(318.7138, 1116.318, 1084.827, SwitchType.JumpCut)
wait 300
Camera.DoFade(1000, Fade.In)
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_10489
Task.GoStraightToCoord($ryder, 320.0, 1122.3, 1082.8, MoveState.Walk, 6000)

:SWEET1B_10489
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET1B_10567
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_10560
Text.PrintNow('SW1B_G', 10000, 1)
World.SwitchEntryExit('LACRAK', True)
goto @SWEET1B_15476

:SWEET1B_10560
goto @SWEET1B_10489

:SWEET1B_10567
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE1_YX', 10000, 1)

:SWEET1B_10587
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET1B_10665
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_10658
World.SwitchEntryExit('LACRAK', True)
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_10658
goto @SWEET1B_10587

:SWEET1B_10665
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 30000)
69@ = 0
skip_cutscene_start_internal @SWEET1B_11904

:SWEET1B_10686
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET1B_10764
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_10757
World.SwitchEntryExit('LACRAK', True)
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_10757
goto @SWEET1B_10686

:SWEET1B_10764
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SWE1_YY', 10000, 1)

:SWEET1B_10784
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET1B_10862
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_10855
World.SwitchEntryExit('LACRAK', True)
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_10855
goto @SWEET1B_10784

:SWEET1B_10862
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 30001)
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_10996

:SWEET1B_10885
if 
  not Char.LocateAnyMeans3D($ryder, 320.0, 1122.3, 1082.8, 0.9, 0.9, 2.0, False)
goto_if_false @SWEET1B_10996
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_10989
World.SwitchEntryExit('LACRAK', True)
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_10989
goto @SWEET1B_10885

:SWEET1B_10996
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_11182
if 
  not Char.IsDead(49@)
goto_if_false @SWEET1B_11182
Task.PlayAnim($ryder, "BAT_4", "BASEBALL", 4.0, False, False, False, False, -1)
TIMERA = 0

:SWEET1B_11072
if 
  TIMERA <= 400
goto_if_false @SWEET1B_11102
wait 0
goto @SWEET1B_11072

:SWEET1B_11102
if 
  not Char.IsDead(49@)
goto_if_false @SWEET1B_11175
Audio.ReportMissionAudioEventAtPosition(320.1898, 1123.292, 1082.875, 1135)
Task.DieNamedAnim(49@, "CRCKDETH3", "CRACK", 4.0, 0)
Char.DropObject(49@, False)

:SWEET1B_11175
92@ = 1

:SWEET1B_11182
if 
  not Char.IsDead(64@)
goto_if_false @SWEET1B_11306
Task.GoStraightToCoord(64@, 323.8, 1124.35, 1082.89, MoveState.Walk, 10000)
if 
  not Char.IsDead(65@)
goto_if_false @SWEET1B_11306
Char.ClearTasks(65@)
Char.SetCoordinates(65@, 325.3923, 1131.888, 1082.883)
Char.SetHeading(65@, 246.147)
Task.PlayAnim(65@, "COWER", "PED", 4.0, True, False, False, False, -1)

:SWEET1B_11306
TIMERA = 0

:SWEET1B_11313
if 
  TIMERA <= 700
goto_if_false @SWEET1B_11395
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_11388
World.SwitchEntryExit('LACRAK', True)
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_11388
goto @SWEET1B_11313

:SWEET1B_11395
if 
  not Char.IsDead(37@)
goto_if_false @SWEET1B_11454
Char.SetCoordinates(37@, 310.1843, 1122.598, 1082.89)
Char.SetHeading(37@, 270.0)
Blip.Remove(38@)
Char.PerformSequence(37@, 68@)

:SWEET1B_11454
Camera.SetFixedPosition(319.2787, 1121.339, 1083.123, 0.0, 0.0, 0.0)
Camera.PointAtPoint(318.3951, 1121.773, 1083.297, SwitchType.JumpCut)
Char.ClearLookAt($scplayer)
TIMERA = 0

:SWEET1B_11517
if 
  TIMERA <= 2500
goto_if_false @SWEET1B_11599
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_11592
World.SwitchEntryExit('LACRAK', True)
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_11592
goto @SWEET1B_11517

:SWEET1B_11599
if 
  not Char.IsDead(62@)
goto_if_false @SWEET1B_11670
Char.SetCoordinates(62@, 329.29, 1122.13, 1082.88)
Char.SetHeading(62@, 90.0)
Task.GoStraightToCoord(62@, 325.25, 1122.5, 1082.88, MoveState.Run, 10000)

:SWEET1B_11670
Camera.SetFixedPosition(318.6783, 1118.741, 1084.642, 0.0, 0.0, 0.0)
Camera.PointAtPoint(319.4823, 1119.317, 1084.494, SwitchType.JumpCut)

:SWEET1B_11721
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET1B_11799
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_11792
Text.PrintNow('SW1B_G', 10000, 1)
World.SwitchEntryExit('LACRAK', True)
goto @SWEET1B_15476

:SWEET1B_11792
goto @SWEET1B_11721

:SWEET1B_11799
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('BALLA_2', 10000, 1)

:SWEET1B_11819
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET1B_11897
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_11890
World.SwitchEntryExit('LACRAK', True)
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_11890
goto @SWEET1B_11819

:SWEET1B_11897
69@ = 1

:SWEET1B_11904
skip_cutscene_end 
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25623)
if 
  69@ == 0
goto_if_false @SWEET1B_12339
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.Out)

:SWEET1B_11946
if 
  Camera.GetFadingStatus
goto_if_false @SWEET1B_11970
wait 0
goto @SWEET1B_11946

:SWEET1B_11970
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 30000)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25623)
if 
  not Char.IsDead(37@)
goto_if_false @SWEET1B_12051
Char.SetCoordinates(37@, 310.1843, 1122.598, 1082.89)
Char.SetHeading(37@, 270.0)
Blip.Remove(38@)
Char.PerformSequence(37@, 68@)

:SWEET1B_12051
if 
  not Char.IsDead(64@)
goto_if_false @SWEET1B_12205
Char.SetCoordinates(64@, 323.5565, 1124.362, 1082.883)
Char.SetHeading(64@, 132.073)
Task.GoStraightToCoord(64@, 323.8, 1124.35, 1082.89, MoveState.Walk, 10000)
if 
  not Char.IsDead(65@)
goto_if_false @SWEET1B_12205
Char.ClearTasks(65@)
Char.SetCoordinates(65@, 325.3923, 1131.888, 1082.883)
Char.SetHeading(65@, 246.147)
Task.PlayAnim(65@, "COWER", "PED", 4.0, True, False, False, False, -1)

:SWEET1B_12205
if 
  not Char.IsDead(62@)
goto_if_false @SWEET1B_12276
Char.SetCoordinates(62@, 326.96, 1122.52, 1082.89)
Char.SetHeading(62@, 90.0)
Task.GoStraightToCoord(62@, 325.25, 1122.5, 1082.88, MoveState.Walk, 10000)

:SWEET1B_12276
if 
  not Char.IsDead(49@)
goto_if_false @SWEET1B_12322
Task.DieNamedAnim(49@, "CRCKDETH3", "CRACK", 4.0, 0)

:SWEET1B_12322
wait 1000
Char.ClearLookAt($scplayer)
Camera.DoFade(500, Fade.In)

:SWEET1B_12339
Sequence.Clear(68@)
Streaming.RemoveAnimation("BLOWJOBZ")
Streaming.RemoveAnimation("BASEBALL")
Streaming.RemoveAnimation("DEALER")
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
if 
  not Char.IsDead(64@)
goto_if_false @SWEET1B_12417
Task.KillCharOnFoot(64@, $scplayer)

:SWEET1B_12417
if 
  not Char.IsDead(62@)
goto_if_false @SWEET1B_12488
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_12488
Task.KillCharOnFoot($ryder, 62@)
Task.KillCharOnFoot(62@, $ryder)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Respect, PedType.Player1, PedType.Mission1)
Char.DropObject(62@, True)

:SWEET1B_12488
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET1B_12523
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('BALLA_1', 2000, 1)

:SWEET1B_12523
TIMERA = 0
63@ = 1
goto @SWEET1B_12954

:SWEET1B_12544
if 
  TIMERA > 2000
goto_if_false @SWEET1B_12623
if 
  103@ == 0
goto_if_false @SWEET1B_12623
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET1B_12623
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('RYDX_BC', 2000, 1)
103@ = 1

:SWEET1B_12623
if 
  TIMERA > 4000
goto_if_false @SWEET1B_12683
if 
  103@ == 1
goto_if_false @SWEET1B_12683
Text.PrintNow('SW1B_B', 6000, 1)
103@ = 2

:SWEET1B_12683
if 
  not Char.IsDead(37@)
goto_if_false @SWEET1B_12857
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET1B_12857
if 
  105@ == 0
goto_if_false @SWEET1B_12786
if 
  TIMERA > 3000
goto_if_false @SWEET1B_12786
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET1B_12786
Text.PrintHelp('MEL_HLP')
105@ = 1

:SWEET1B_12786
if 
  105@ == 1
goto_if_false @SWEET1B_12857
if 
  TIMERA > 9000
goto_if_false @SWEET1B_12857
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET1B_12857
Text.PrintHelp('MELHLP2')
105@ = 2

:SWEET1B_12857
if 
  63@ == 1
goto_if_false @SWEET1B_12954
if or
  Char.IsDead(62@)
  Char.IsDead(37@)
goto_if_false @SWEET1B_12954
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_12954
Char.RemoveFromGroup($ryder)
$Players_Group = Player.GetGroup($player1)
Group.SetMember($Players_Group, $ryder)
Player.SetGroupRecruitment($player1, False)
Char.ListenToPlayerGroupCommands($ryder, False)
63@ = 2

:SWEET1B_12954
if 
  63@ > 0
goto_if_false @SWEET1B_13163
if 
  Char.IsDead(37@)
goto_if_false @SWEET1B_12993
Blip.Remove(45@)

:SWEET1B_12993
if 
  Char.IsDead(62@)
goto_if_false @SWEET1B_13014
Blip.Remove(88@)

:SWEET1B_13014
if 
  Char.IsDead(64@)
goto_if_false @SWEET1B_13035
Blip.Remove(89@)

:SWEET1B_13035
if and
  Char.IsDead(64@)
  Char.IsDead(62@)
  Char.IsDead(37@)
goto_if_false @SWEET1B_13068
43@ = 1

:SWEET1B_13068
if 
  60@ == 0
goto_if_false @SWEET1B_13163
if 
  not Char.IsDead(37@)
goto_if_false @SWEET1B_13163
if or
  Char.IsDead(62@)
  Char.IsDead(64@)
  Char.LocateAnyMeansChar3D($scplayer, 37@, 2.0, 2.0, 2.0, False)
goto_if_false @SWEET1B_13163
Task.KillCharOnFoot(37@, $scplayer)
60@ = 1

:SWEET1B_13163
if 
  78@ == 5
goto_if_false @SWEET1B_13565
if 
  not Char.IsDead(36@)
goto_if_false @SWEET1B_13277
if 
  not Char.IsHealthGreater(36@, 80)
goto_if_false @SWEET1B_13277
if 
  71@ == 0
goto_if_false @SWEET1B_13277
Task.DieNamedAnim(36@, "CRCKDETH2", "CRACK", 4.0, 0)
Char.DropObject(36@, True)
71@ = 1

:SWEET1B_13277
if 
  not Char.IsDead(54@)
goto_if_false @SWEET1B_13373
if 
  not Char.IsHealthGreater(54@, 80)
goto_if_false @SWEET1B_13373
if 
  72@ == 0
goto_if_false @SWEET1B_13373
Task.DieNamedAnim(54@, "CRCKDETH1", "CRACK", 4.0, 0)
Char.DropObject(54@, True)
72@ = 1

:SWEET1B_13373
if 
  not Char.IsDead(61@)
goto_if_false @SWEET1B_13469
if 
  not Char.IsHealthGreater(61@, 80)
goto_if_false @SWEET1B_13469
if 
  74@ == 0
goto_if_false @SWEET1B_13469
Task.DieNamedAnim(61@, "CRCKDETH4", "CRACK", 4.0, 0)
Char.DropObject(61@, True)
74@ = 1

:SWEET1B_13469
if 
  not Char.IsDead(59@)
goto_if_false @SWEET1B_13565
if 
  not Char.IsHealthGreater(59@, 80)
goto_if_false @SWEET1B_13565
if 
  70@ == 0
goto_if_false @SWEET1B_13565
Task.DieNamedAnim(59@, "CRCKDETH3", "CRACK", 4.0, 0)
Char.DropObject(59@, True)
70@ = 1

:SWEET1B_13565
gosub @SWEET1B_16294
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_13611
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_13611
goto @SWEET1B_8604

:SWEET1B_13618
wait 2000
World.SwitchEntryExit('LACRAK', True)
Game.EnableEntryExitPlayerGroupWarping(2165.72, -1673.14, 10.0, True)
Game.EnableEntryExitPlayerGroupWarping(319.56, 1117.64, 10.0, True)
Streaming.MarkModelAsNoLongerNeeded(28)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(64)
Streaming.MarkModelAsNoLongerNeeded(63)
Streaming.MarkModelAsNoLongerNeeded(#CIGAR)
Game.ActivateInteriorPeds(True)
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_13766
Char.ClearTasksImmediately($ryder)
Char.RemoveFromGroup($ryder)
Char.ClearLookAt($ryder)
$Players_Group = Player.GetGroup($player1)
Group.SetMember($Players_Group, $ryder)
Player.SetGroupRecruitment($player1, False)
Char.ListenToPlayerGroupCommands($ryder, False)
47@ = 1

:SWEET1B_13766
Text.PrintNow('SW1B_F', 10000, 1)
Blip.Remove(45@)
Blip.Remove(38@)
38@ = Blip.AddForCoord(2513.33, -1672.12, 12.52)
$blob_flag = 1
102@ = 4
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_13842

:SWEET1B_13842
107@ = 0
58@ = 0
101@ = 0
92@ = 0
87@ = 3
gosub @SWEET1B_47

:SWEET1B_13884
if or
  not Char.LocateAnyMeans3D($scplayer, 2513.3, -1671.9, 12.52, 4.0, 4.0, 4.0, $blob_flag)
  not Char.LocateAnyMeans3D($ryder, 2513.3, -1671.9, 12.52, 4.0, 4.0, 4.0, False)
goto_if_false @SWEET1B_14929
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_14013
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_14013
if 
  107@ == 1
goto_if_false @SWEET1B_14038
gosub @SWEET1B_16294

:SWEET1B_14038
78@ = Streaming.GetAreaVisible()
if 
  78@ == 0
goto_if_false @SWEET1B_14481
if 
  107@ == 0
goto_if_false @SWEET1B_14292
if 
  Char.LocateAnyMeans3D($scplayer, 2167.601, -1672.592, 14.081, 10.0, 10.0, 4.0, False)
goto_if_false @SWEET1B_14292
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_14285
if 
  not Char.LocateAnyMeansChar3D($ryder, $scplayer, 30.0, 30.0, 8.0, False)
goto_if_false @SWEET1B_14285
World.ClearArea(2164.961, -1673.758, 14.0803, 1.0, True)
Char.SetCoordinates($ryder, 2164.961, -1673.758, 14.0803)
Char.SetHeading($ryder, 280.1246)
Char.SetAreaVisible($ryder, 0)
Char.ClearTasksImmediately($ryder)
Char.RemoveFromGroup($ryder)
Char.ClearLookAt($ryder)
$Players_Group = Player.GetGroup($player1)
Group.SetMember($Players_Group, $ryder)
Player.SetGroupRecruitment($player1, False)
Char.ListenToPlayerGroupCommands($ryder, False)

:SWEET1B_14285
107@ = 1

:SWEET1B_14292
if 
  107@ == 1
goto_if_false @SWEET1B_14481
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_14481
if 
  78@ == 0
goto_if_false @SWEET1B_14481
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_14481
if 
  Char.LocateAnyMeansChar3D($ryder, $scplayer, 10.0, 10.0, 8.0, False)
goto_if_false @SWEET1B_14481
World.SwitchEntryExit('LACRAK', False)
if and
  Char.IsOnFoot($scplayer)
  Char.IsOnFoot($ryder)
goto_if_false @SWEET1B_14437
gosub @SWEET1B_16997

:SWEET1B_14437
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_14481
if and
  Char.IsInAnyCar($scplayer)
  Char.IsInAnyCar($ryder)
goto_if_false @SWEET1B_14481
gosub @SWEET1B_16997

:SWEET1B_14481
if 
  78@ == 5
goto_if_false @SWEET1B_14883
if 
  not Char.IsDead(36@)
goto_if_false @SWEET1B_14595
if 
  not Char.IsHealthGreater(36@, 80)
goto_if_false @SWEET1B_14595
if 
  71@ == 0
goto_if_false @SWEET1B_14595
Task.DieNamedAnim(36@, "CRCKDETH2", "CRACK", 4.0, 0)
Char.DropObject(36@, True)
71@ = 1

:SWEET1B_14595
if 
  not Char.IsDead(54@)
goto_if_false @SWEET1B_14691
if 
  not Char.IsHealthGreater(54@, 80)
goto_if_false @SWEET1B_14691
if 
  72@ == 0
goto_if_false @SWEET1B_14691
Task.DieNamedAnim(54@, "CRCKDETH1", "CRACK", 4.0, 0)
Char.DropObject(54@, True)
72@ = 1

:SWEET1B_14691
if 
  not Char.IsDead(61@)
goto_if_false @SWEET1B_14787
if 
  not Char.IsHealthGreater(61@, 80)
goto_if_false @SWEET1B_14787
if 
  74@ == 0
goto_if_false @SWEET1B_14787
Task.DieNamedAnim(61@, "CRCKDETH4", "CRACK", 4.0, 0)
Char.DropObject(61@, True)
74@ = 1

:SWEET1B_14787
if 
  not Char.IsDead(59@)
goto_if_false @SWEET1B_14883
if 
  not Char.IsHealthGreater(59@, 80)
goto_if_false @SWEET1B_14883
if 
  70@ == 0
goto_if_false @SWEET1B_14883
Task.DieNamedAnim(59@, "CRCKDETH3", "CRACK", 4.0, 0)
Char.DropObject(59@, True)
70@ = 1

:SWEET1B_14883
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_14922
Text.PrintNow('SW1B_G', 10000, 1)
goto @SWEET1B_15476

:SWEET1B_14922
goto @SWEET1B_13884

:SWEET1B_14929
58@ = 0
101@ = 0
92@ = 0
87@ = 7
gosub @SWEET1B_47
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetNearClip(0.2)
wait 500
Camera.DoFade(1000, Fade.Out)

:SWEET1B_14994
if 
  Camera.GetFadingStatus
goto_if_false @SWEET1B_15018
wait 0
goto @SWEET1B_14994

:SWEET1B_15018
Streaming.RequestAnimation("GANGS")

:SWEET1B_15027
if 
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @SWEET1B_15058
wait 0
goto @SWEET1B_15027

:SWEET1B_15058
Camera.SetFixedPosition(2518.491, -1679.401, 14.4781, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2518.086, -1678.499, 14.6304, SwitchType.JumpCut)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET1B_15152
Char.SetCoordinates($scplayer, 2517.524, -1678.497, 13.3912)
goto @SWEET1B_15172

:SWEET1B_15152
Char.WarpFromCarToCoord($scplayer, 2517.524, -1678.497, 13.3912)

:SWEET1B_15172
Char.SetHeading($scplayer, 328.5351)
Char.HideWeaponForScriptedCutscene($scplayer, True)
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_15321
Char.ClearTasksImmediately($ryder)
Char.RemoveFromGroup($ryder)
Char.ClearLookAt($ryder)
Char.ClearTasks($ryder)
Char.HideWeaponForScriptedCutscene($ryder, True)
if 
  not Char.IsInAnyCar($ryder)
goto_if_false @SWEET1B_15275
Char.SetCoordinates($ryder, 2518.314, -1676.907, 13.3726)
goto @SWEET1B_15295

:SWEET1B_15275
Char.WarpFromCarToCoord($ryder, 2518.314, -1676.907, 13.3726)

:SWEET1B_15295
Task.TurnCharToFaceChar($ryder, $scplayer)
Task.TurnCharToFaceChar($scplayer, $ryder)
Char.SetHeading($scplayer, 180.0)

:SWEET1B_15321
wait 500
Camera.DoFade(1000, Fade.In)

:SWEET1B_15333
if 
  58@ <> 3
goto_if_false @SWEET1B_15369
wait 0
gosub @SWEET1B_16997
goto @SWEET1B_15333

:SWEET1B_15369
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_15410
Task.GoStraightToCoord($ryder, 2522.997, -1679.196, 14.497, MoveState.Walk, 4000)

:SWEET1B_15410
if 
  58@ <> 4
goto_if_false @SWEET1B_15446
wait 0
gosub @SWEET1B_16997
goto @SWEET1B_15410

:SWEET1B_15446
wait 1000
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Char.Delete($ryder)
goto @SWEET1B_15901

:SWEET1B_15476
78@ = Streaming.GetAreaVisible()
if 
  78@ == 5
goto_if_false @SWEET1B_15512
World.SwitchEntryExit('LACRAK', True)

:SWEET1B_15512
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
78@ = Streaming.GetAreaVisible()
if 
  78@ == 5
goto_if_false @SWEET1B_15899
if 
  63@ == 1
goto_if_false @SWEET1B_15899
if 
  not Char.IsDead(36@)
goto_if_false @SWEET1B_15647
if 
  71@ == 0
goto_if_false @SWEET1B_15647
Task.DieNamedAnim(36@, "CRCKDETH2", "CRACK", 4.0, 0)
Char.DropObject(36@, True)
71@ = 1

:SWEET1B_15647
if 
  not Char.IsDead(54@)
goto_if_false @SWEET1B_15725
if 
  72@ == 0
goto_if_false @SWEET1B_15725
Task.DieNamedAnim(54@, "CRCKDETH1", "CRACK", 4.0, 0)
Char.DropObject(54@, True)
72@ = 1

:SWEET1B_15725
if 
  not Char.IsDead(61@)
goto_if_false @SWEET1B_15803
if 
  74@ == 0
goto_if_false @SWEET1B_15803
Task.DieNamedAnim(61@, "CRCKDETH4", "CRACK", 4.0, 0)
Char.DropObject(61@, True)
74@ = 1

:SWEET1B_15803
if 
  not Char.IsDead(59@)
goto_if_false @SWEET1B_15899
if 
  not Char.IsHealthGreater(59@, 80)
goto_if_false @SWEET1B_15899
if 
  70@ == 0
goto_if_false @SWEET1B_15899
Task.DieNamedAnim(59@, "CRCKDETH3", "CRACK", 4.0, 0)
Char.DropObject(59@, True)
70@ = 1

:SWEET1B_15899
return 

:SWEET1B_15901
$flag_sweet_mission_counter += 1
Stat.RegisterMissionPassed('SWEET1B')
Text.PrintWithNumberBig('M_PASSR', 3, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(3)
Zone.SetGangStrength('GAN1', GangType.Grove, 40)
Zone.SetGangStrength('GAN2', GangType.Grove, 40)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.PlayerMadeProgress(1)
return 

:SWEET1B_15986
$entry_exit_area = 0
$entry_exit_status = 0
set_var_text_label s$entry_exit_name = 'LACRAK'
start_new_script @ENTEXT 
if 
  Player.IsPlaying($player1)
goto_if_false @SWEET1B_16045
Player.SetDrunkenness($player1, 0)

:SWEET1B_16045
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Path.SwitchRoadsOn(2272.922, -1649.556, 14.3311, 2266.101, -1633.219, 14.3505)
Path.SwitchPedRoadsOn(324.1973, 1116.758, 1082.898, 313.1226, 1124.197, 1082.898)
Streaming.MarkModelAsNoLongerNeeded(28)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(336)
Streaming.MarkModelAsNoLongerNeeded(107)
Streaming.MarkModelAsNoLongerNeeded(64)
Streaming.MarkModelAsNoLongerNeeded(63)
Streaming.MarkModelAsNoLongerNeeded(#CIGAR)
Streaming.MarkModelAsNoLongerNeeded(492)
Game.EnableEntryExitPlayerGroupWarping(2165.72, -1673.14, 10.0, False)
Game.EnableEntryExitPlayerGroupWarping(319.56, 1117.64, 10.0, False)
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("CRACK")
Streaming.RemoveAnimation("BLOWJOBZ")
Streaming.RemoveAnimation("BASEBALL")
Streaming.RemoveAnimation("DEALER")
Pickup.Remove(79@)
Blip.Remove(44@)
Blip.Remove(45@)
Blip.Remove(38@)
Blip.Remove(39@)
CarGenerator.Switch($gen_car6, 101)
Char.RemoveElegantly($ryder)
Streaming.UnloadSpecialCharacter(1)
Game.EnableAmbientCrime(True)
Mission.Finish
return 

:SWEET1B_16294
78@ = Streaming.GetAreaVisible()
if 
  78@ == 0
goto_if_false @SWEET1B_16995
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_16995
if 
  not Char.LocateAnyMeansChar3D($ryder, $scplayer, 30.0, 30.0, 8.0, False)
goto_if_false @SWEET1B_16507
if 
  47@ == 0
goto_if_false @SWEET1B_16500
if 
  43@ == 0
goto_if_false @SWEET1B_16418
World.SwitchEntryExit('LACRAK', False)

:SWEET1B_16418
Blip.Remove(45@)
Blip.Remove(44@)
Blip.Remove(39@)
Blip.Remove(38@)
39@ = Blip.AddForChar($ryder)
Blip.SetAsFriendly(39@, True)
Char.RemoveFromGroup($ryder)
Char.ClearTasks($ryder)
gosub @SWEET1B_17794
Text.PrintNow('SW1B_H', 6000, 1)
$blob_flag = 0
47@ = 1

:SWEET1B_16500
goto @SWEET1B_16995

:SWEET1B_16507
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_16995
if 
  Char.LocateAnyMeansChar3D($ryder, $scplayer, 10.0, 10.0, 8.0, False)
goto_if_false @SWEET1B_16995
if 
  47@ == 1
goto_if_false @SWEET1B_16995
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_16633
Blip.Remove(39@)
Char.RemoveFromGroup($ryder)
$Players_Group = Player.GetGroup($player1)
Group.SetMember($Players_Group, $ryder)
Player.SetGroupRecruitment($player1, False)
Char.ListenToPlayerGroupCommands($ryder, False)

:SWEET1B_16633
if 
  102@ == 0
goto_if_false @SWEET1B_16692
Blip.Remove(38@)
38@ = Blip.AddForCoord(2301.07, -1754.4, 12.54)
Text.PrintNow('SW1B_A', 7000, 1)

:SWEET1B_16692
if 
  102@ == 1
goto_if_false @SWEET1B_16755
if 
  not Char.IsDead(35@)
goto_if_false @SWEET1B_16739
Blip.Remove(44@)
44@ = Blip.AddForChar(35@)

:SWEET1B_16739
Text.PrintNow('SW1B_B', 7000, 1)

:SWEET1B_16755
if 
  102@ == 2
goto_if_false @SWEET1B_16832
if 
  78@ == 0
goto_if_false @SWEET1B_16816
Blip.Remove(38@)
38@ = Blip.AddForCoord(2171.781, -1676.78, 14.0859)

:SWEET1B_16816
Text.PrintNow('SW1B_1', 7000, 1)

:SWEET1B_16832
if 
  102@ == 3
goto_if_false @SWEET1B_16922
World.SwitchEntryExit('LACRAK', True)
if 
  78@ == 0
goto_if_false @SWEET1B_16906
Blip.Remove(38@)
38@ = Blip.AddForCoord(2169.72, -1673.14, 13.01)

:SWEET1B_16906
Text.PrintNow('SW1B_1', 7000, 1)

:SWEET1B_16922
if 
  102@ == 4
goto_if_false @SWEET1B_16981
Blip.Remove(38@)
38@ = Blip.AddForCoord(2513.33, -1672.12, 12.52)
Text.PrintNow('SW1B_F', 7000, 1)

:SWEET1B_16981
$blob_flag = 1
47@ = 0

:SWEET1B_16995
return 

:SWEET1B_16997
if or
  101@ == 0
  101@ == 1
goto_if_false @SWEET1B_17067
if 
  is_int_lvar_greater_or_equal_to_int_lvar 91@ >= 58@
goto_if_false @SWEET1B_17067
if 
  TIMERA > 200
goto_if_false @SWEET1B_17067
gosub @SWEET1B_17139

:SWEET1B_17067
if 
  101@ == 2
goto_if_false @SWEET1B_17137
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET1B_17137
gosub @SWEET1B_17524
101@ = 0
58@ += 1
92@ = 0
Text.ClearPrints
TIMERA = 0

:SWEET1B_17137
return 

:SWEET1B_17139
if 
  101@ == 0
goto_if_false @SWEET1B_17175
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 93@(58@,8i))
101@ = 1

:SWEET1B_17175
if 
  101@ == 1
goto_if_false @SWEET1B_17240
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET1B_17240
Text.PrintNow($6566(58@,8s), 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
gosub @SWEET1B_17242
101@ = 2

:SWEET1B_17240
return 

:SWEET1B_17242
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7400
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7401
goto_if_false @SWEET1B_17310
if 
  not Char.IsDead(35@)
goto_if_false @SWEET1B_17310
Char.ShutUpForScriptedSpeech(35@, True)
Char.StartFacialTalk(35@, 3000)
return 

:SWEET1B_17310
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7408
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7409
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7410
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7481
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7482
goto_if_false @SWEET1B_17398
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.StartFacialTalk($scplayer, 3000)
return 

:SWEET1B_17398
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7476
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7477
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7483
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7484
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7407
goto_if_false @SWEET1B_17491
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.StartFacialTalk($scplayer, 3000)
goto @SWEET1B_17522

:SWEET1B_17491
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_17522
Char.ShutUpForScriptedSpeech($ryder, True)
Char.StartFacialTalk($ryder, 3000)

:SWEET1B_17522
return 

:SWEET1B_17524
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7400
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7401
goto_if_false @SWEET1B_17589
if 
  not Char.IsDead(35@)
goto_if_false @SWEET1B_17589
Char.ShutUpForScriptedSpeech(35@, False)
Char.StopFacialTalk(35@)
return 

:SWEET1B_17589
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7408
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7409
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7410
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7481
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7482
goto_if_false @SWEET1B_17674
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
return 

:SWEET1B_17674
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7476
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7477
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7483
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7484
  is_int_lvar_equal_to_constant 93@(58@,8i) == 7407
goto_if_false @SWEET1B_17764
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
goto @SWEET1B_17792

:SWEET1B_17764
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET1B_17792
Char.ShutUpForScriptedSpeech($ryder, False)
Char.StopFacialTalk($ryder)

:SWEET1B_17792
return 

:SWEET1B_17794
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  109@ == 0
goto_if_false @SWEET1B_17823
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25611)

:SWEET1B_17823
if 
  109@ == 1
goto_if_false @SWEET1B_17848
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25612)

:SWEET1B_17848
if 
  109@ == 2
goto_if_false @SWEET1B_17873
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25613)

:SWEET1B_17873
if 
  109@ == 3
goto_if_false @SWEET1B_17898
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25614)

:SWEET1B_17898
if 
  109@ == 4
goto_if_false @SWEET1B_17923
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25615)

:SWEET1B_17923
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:SWEET1B_17939
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET1B_17983
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_17976
return 

:SWEET1B_17976
goto @SWEET1B_17939

:SWEET1B_17983
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
if 
  109@ == 0
goto_if_false @SWEET1B_18021
Text.PrintNow('RYDX_AL', 3000, 1)

:SWEET1B_18021
if 
  109@ == 1
goto_if_false @SWEET1B_18055
Text.PrintNow('RYDX_AM', 3000, 1)

:SWEET1B_18055
if 
  109@ == 2
goto_if_false @SWEET1B_18089
Text.PrintNow('RYDX_AN', 3000, 1)

:SWEET1B_18089
if 
  109@ == 3
goto_if_false @SWEET1B_18123
Text.PrintNow('RYDX_AO', 3000, 1)

:SWEET1B_18123
if 
  109@ == 4
goto_if_false @SWEET1B_18157
Text.PrintNow('RYDX_AP', 3000, 1)

:SWEET1B_18157
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET1B_18201
wait 0
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_18194
return 

:SWEET1B_18194
goto @SWEET1B_18157

:SWEET1B_18201
109@ += 1
if 
  109@ > 4
goto_if_false @SWEET1B_18233
109@ = 0

:SWEET1B_18233
if 
  Char.IsDead($ryder)
goto_if_false @SWEET1B_18249

:SWEET1B_18249
return 

//-------------Mission 15---------------
// Originally: Drive-Thru

:SWEET3
script_name 'SWEET3'
gosub @SWEET3_1697
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET3_38
gosub @SWEET3_12752

:SWEET3_38
gosub @SWEET3_12841
terminate_this_script 

:SWEET3_47
switch_start 79@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @SWEET3_1695 {caseNum1} 1 {caseLabel1} @SWEET3_175 {caseNum2} 2 {caseLabel2} @SWEET3_453 {caseNum3} 3 {caseLabel3} @SWEET3_731 {caseNum4} 4 {caseLabel4} @SWEET3_943 {caseNum5} 5 {caseLabel5} @SWEET3_1133 {caseNum6} 6 {caseLabel6} @SWEET3_1345 {caseNum7} 7 {caseLabel7} @SWEET3_1469
switch_continued 8 {caseLabel1} @SWEET3_1571 {caseNum2} -1 {caseLabel2} @SWEET3_1695 {caseNum3} -1 {caseLabel3} @SWEET3_1695 {caseNum4} -1 {caseLabel4} @SWEET3_1695 {caseNum5} -1 {caseLabel5} @SWEET3_1695 {caseNum6} -1 {caseLabel6} @SWEET3_1695 {caseNum7} -1 {caseLabel7} @SWEET3_1695 {caseNum8} -1 {caseLabel8} @SWEET3_1695 {caseNum9} -1 {caseLabel9} @SWEET3_1695

:SWEET3_175
set_var_text_label s$6582[0] = 'SWE2_BA'
set_var_text_label s$6582[1] = 'SWE2_BB'
set_var_text_label s$6582[2] = 'SWE2_BC'
set_var_text_label s$6582[3] = 'SWE2_BD'
set_var_text_label s$6582[4] = 'SWE2_BE'
set_var_text_label s$6582[5] = 'SWE2_BF'
set_var_text_label s$6582[6] = 'SWE2_BG'
set_var_text_label s$6582[7] = 'SWE2_BH'
set_var_text_label s$6582[8] = 'SWE2_BJ'
set_var_text_label s$6582[9] = 'SWE2_BK'
set_var_text_label s$6582[10] = 'SWE2_BL'
set_var_text_label s$6582[11] = 'SWE2_BM'
set_lvar_int_to_constant 66@ = 11200
set_lvar_int_to_constant 67@ = 11203
set_lvar_int_to_constant 68@ = 11239
set_lvar_int_to_constant 69@ = 11240
set_lvar_int_to_constant 70@ = 11241
set_lvar_int_to_constant 71@ = 11204
set_lvar_int_to_constant 72@ = 11205
set_lvar_int_to_constant 73@ = 11242
set_lvar_int_to_constant 74@ = 11243
set_lvar_int_to_constant 75@ = 11206
set_lvar_int_to_constant 76@ = 11201
set_lvar_int_to_constant 77@ = 11220
58@ = 11
goto @SWEET3_1695

:SWEET3_453
set_var_text_label s$6582[0] = 'SWE2_CA'
set_var_text_label s$6582[1] = 'SWE2_CC'
set_var_text_label s$6582[2] = 'SWE2_GA'
set_var_text_label s$6582[3] = 'SWE2_GB'
set_var_text_label s$6582[4] = 'SWE2_GC'
set_var_text_label s$6582[5] = 'SWE2_GD'
set_var_text_label s$6582[6] = 'SWE2_GE'
set_var_text_label s$6582[7] = 'SWE2_HA'
set_var_text_label s$6582[8] = 'SWE2_HB'
set_var_text_label s$6582[9] = 'SWE2_HC'
set_var_text_label s$6582[10] = 'SWE2_HD'
set_var_text_label s$6582[11] = 'SWE2_HE'
set_lvar_int_to_constant 66@ = 11221
set_lvar_int_to_constant 67@ = 11223
set_lvar_int_to_constant 68@ = 11281
set_lvar_int_to_constant 69@ = 11250
set_lvar_int_to_constant 70@ = 11202
set_lvar_int_to_constant 71@ = 11251
set_lvar_int_to_constant 72@ = 11252
set_lvar_int_to_constant 73@ = 11211
set_lvar_int_to_constant 74@ = 11253
set_lvar_int_to_constant 75@ = 11228
set_lvar_int_to_constant 76@ = 11229
set_lvar_int_to_constant 77@ = 11254
58@ = 11
goto @SWEET3_1695

:SWEET3_731
set_var_text_label s$6582[0] = 'SWE2_MA'
set_var_text_label s$6582[1] = 'SWE2_MB'
set_var_text_label s$6582[2] = 'SWE2_MC'
set_var_text_label s$6582[3] = 'SWE2_MD'
set_var_text_label s$6582[4] = 'SWE2_ME'
set_var_text_label s$6582[5] = 'SWE2_MF'
set_var_text_label s$6582[6] = 'SWE2_MG'
set_var_text_label s$6582[7] = 'SWE2_MH'
set_var_text_label s$6582[8] = 'SWE2_MJ'
set_lvar_int_to_constant 66@ = 11214
set_lvar_int_to_constant 67@ = 11235
set_lvar_int_to_constant 68@ = 11236
set_lvar_int_to_constant 69@ = 11274
set_lvar_int_to_constant 70@ = 11259
set_lvar_int_to_constant 71@ = 11215
set_lvar_int_to_constant 72@ = 11216
set_lvar_int_to_constant 73@ = 11237
set_lvar_int_to_constant 74@ = 11260
58@ = 8
goto @SWEET3_1695

:SWEET3_943
set_var_text_label s$6582[0] = 'SWE2_NA'
set_var_text_label s$6582[1] = 'SWE2_NB'
set_var_text_label s$6582[2] = 'SWE2_NC'
set_var_text_label s$6582[3] = 'SWE2_ND'
set_var_text_label s$6582[4] = 'SWE2_NE'
set_var_text_label s$6582[5] = 'SWE2_NF'
set_var_text_label s$6582[6] = 'SWE2_NG'
set_var_text_label s$6582[7] = 'SWE2_NH'
set_lvar_int_to_constant 66@ = 11261
set_lvar_int_to_constant 67@ = 11217
set_lvar_int_to_constant 68@ = 11218
set_lvar_int_to_constant 69@ = 11262
set_lvar_int_to_constant 70@ = 11238
set_lvar_int_to_constant 71@ = 11263
set_lvar_int_to_constant 72@ = 11264
set_lvar_int_to_constant 73@ = 11275
58@ = 7
goto @SWEET3_1695

:SWEET3_1133
set_var_text_label s$6582[0] = 'SWE2_OA'
set_var_text_label s$6582[1] = 'SWE2_OB'
set_var_text_label s$6582[2] = 'SWE2_OC'
set_var_text_label s$6582[3] = 'SWE2_OD'
set_var_text_label s$6582[4] = 'SWE2_OE'
set_var_text_label s$6582[5] = 'SWE2_OF'
set_var_text_label s$6582[6] = 'SWE2_OG'
set_var_text_label s$6582[7] = 'SWE2_OH'
set_var_text_label s$6582[8] = 'SWE2_OJ'
set_lvar_int_to_constant 66@ = 11276
set_lvar_int_to_constant 67@ = 11265
set_lvar_int_to_constant 68@ = 11266
set_lvar_int_to_constant 69@ = 11277
set_lvar_int_to_constant 70@ = 11267
set_lvar_int_to_constant 71@ = 11278
set_lvar_int_to_constant 72@ = 11268
set_lvar_int_to_constant 73@ = 11269
set_lvar_int_to_constant 74@ = 11279
58@ = 8
goto @SWEET3_1695

:SWEET3_1345
set_var_text_label s$6582[0] = 'SWE2_PA'
set_var_text_label s$6582[1] = 'SWE2_PB'
set_var_text_label s$6582[2] = 'SWE2_PC'
set_var_text_label s$6582[3] = 'SWE2_PD'
set_var_text_label s$6582[4] = 'SWE2_PE'
set_lvar_int_to_constant 66@ = 11270
set_lvar_int_to_constant 67@ = 11280
set_lvar_int_to_constant 68@ = 11271
set_lvar_int_to_constant 69@ = 11272
set_lvar_int_to_constant 70@ = 11273
58@ = 4
goto @SWEET3_1695

:SWEET3_1469
set_var_text_label s$6582[0] = 'SWE2_DA'
set_var_text_label s$6582[1] = 'SWE2_DB'
set_var_text_label s$6582[2] = 'SWE2_DC'
set_var_text_label s$6582[3] = 'SWE2_DD'
set_lvar_int_to_constant 66@ = 11244
set_lvar_int_to_constant 67@ = 11207
set_lvar_int_to_constant 68@ = 11245
set_lvar_int_to_constant 69@ = 11208
58@ = 3
goto @SWEET3_1695

:SWEET3_1571
set_var_text_label s$6582[0] = 'SWE2_EA'
set_var_text_label s$6582[1] = 'SWE2_EB'
set_var_text_label s$6582[2] = 'SWE2_EC'
set_var_text_label s$6582[3] = 'SWE2_ED'
set_var_text_label s$6582[4] = 'SWE2_EE'
set_lvar_int_to_constant 66@ = 11209
set_lvar_int_to_constant 67@ = 11246
set_lvar_int_to_constant 68@ = 11210
set_lvar_int_to_constant 69@ = 11224
set_lvar_int_to_constant 70@ = 11225
58@ = 4
goto @SWEET3_1695

:SWEET3_1695
return 

:SWEET3_1697
Stat.RegisterMissionGiven
$onmission = 1
96@ = 0
97@ = 0
41@ = 0
92@ = 0
83@ = 0
84@ = 0
91@ = 0
101@ = 0
102@ = 0
103@ = 0
59@ = 0
60@ = 0
47@ = 0
98@ = 0
99@ = 0
42@ = 0
56@ = 0
43@ = 0
51@ = 0
set_lvar_int_to_lvar_int 89@ = 45@
set_lvar_int_to_lvar_int 90@ = 46@
wait 0
Text.LoadMissionText('SWEET3')
Streaming.RequestModel(492)

:SWEET3_1875
if 
  not Streaming.HasModelLoaded(492)
goto_if_false @SWEET3_1902
wait 0
goto @SWEET3_1875

:SWEET3_1902
CarGenerator.Switch($gen_car6, 0)
World.ClearArea(2516.636, -1675.691, 13.0101, 15.0, True)
World.ClearArea(2508.795, -1671.707, 12.3892, 15.0, True)
Car.CustomPlateForNextCar(492, "GROVE4L_")
$sweet_car = Car.Create(492, 2508.7, -1671.7, 12.3)
Car.SetProofs($sweet_car, False, True, False, False, False)
Car.ChangeColor($sweet_car, 59, 34)
Car.SetHeading($sweet_car, 166.9)
Car.SetCanBurstTires($sweet_car, False)
Streaming.MarkModelAsNoLongerNeeded(492)
Cutscene.Load('SWEET2A')

:SWEET3_2052
if 
  not Cutscene.HasLoaded
goto_if_false @SWEET3_2076
wait 0
goto @SWEET3_2052

:SWEET3_2076
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SWEET3_2085
if 
  not Cutscene.HasFinished
goto_if_false @SWEET3_2109
wait 0
goto @SWEET3_2085

:SWEET3_2109
Camera.DoFade(0, Fade.Out)

:SWEET3_2115
if 
  Camera.GetFadingStatus
goto_if_false @SWEET3_2139
wait 0
goto @SWEET3_2115

:SWEET3_2139
Cutscene.Clear
Streaming.LoadSpecialCharacter(1, 'SMOKE')
Streaming.LoadSpecialCharacter(2, 'SWEET')
Streaming.LoadSpecialCharacter(3, 'RYDER2')
Streaming.RequestModel(372)
Streaming.RequestModel(#CIGAR)
Streaming.LoadAllModelsNow

:SWEET3_2191
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasSpecialCharacterLoaded(3)
  not Streaming.HasModelLoaded(372)
goto_if_false @SWEET3_2230
wait 0
goto @SWEET3_2191

:SWEET3_2230
if 
  not Streaming.HasModelLoaded(#CIGAR)
goto_if_false @SWEET3_2256
wait 0
goto @SWEET3_2230

:SWEET3_2256
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_2691
$big_smoke = Char.Create(PedType.Mission1, 290, 2511.514, -1671.464, 12.4607)
Char.SetAnimGroup($big_smoke, "FATMAN")
Char.SetHeading($big_smoke, 84.5)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger($big_smoke, $sweet_car, 10000, 1)
Char.GiveWeapon($big_smoke, WeaponType.Tec9, 99999)
Char.SetNeverTargeted($big_smoke, True)
Char.SetSuffersCriticalHits($big_smoke, False)
Char.SetHealth($big_smoke, 500)
Char.SetCantBeDraggedOut($big_smoke, True)
Char.SetStayInCarWhenJacked($big_smoke, True)
93@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Char.SetDecisionMaker($big_smoke, 93@)
Char.SetGetOutUpsideDownCar($big_smoke, False)
$sweet = Char.Create(PedType.Mission1, 291, 2507.886, -1667.801, 12.3881)
Char.SetAnimGroup($sweet, "GANG2")
Char.SetHeading($sweet, 167.8)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger($sweet, $sweet_car, 10000, 2)
Char.GiveWeapon($sweet, WeaponType.Tec9, 99999)
Char.SetNeverTargeted($sweet, True)
Char.SetSuffersCriticalHits($sweet, False)
Char.SetHealth($sweet, 500)
Char.SetCantBeDraggedOut($sweet, True)
Char.SetStayInCarWhenJacked($sweet, True)
94@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Char.SetDecisionMaker($sweet, 94@)
Char.SetGetOutUpsideDownCar($sweet, False)
$ryder = Char.Create(PedType.Mission1, 292, 2506.348, -1673.591, 12.3784)
Char.SetAnimGroup($ryder, "GANG1")
Char.SetHeading($ryder, 346.0)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger($ryder, $sweet_car, 10000, 0)
Char.GiveWeapon($ryder, WeaponType.Tec9, 99999)
Char.SetNeverTargeted($ryder, True)
Char.SetSuffersCriticalHits($ryder, False)
Char.SetHealth($ryder, 500)
Char.SetCantBeDraggedOut($ryder, True)
Char.SetStayInCarWhenJacked($ryder, True)
95@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Char.SetDecisionMaker($ryder, 95@)
Char.SetGetOutUpsideDownCar($ryder, False)
Game.SetRelationship(RelationshipType.Respect, PedType.Gang2, PedType.Mission1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Gang2)

:SWEET3_2691
Audio.SetRadioChannel(RadioChannel.BounceFM)
39@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(39@, True)
Camera.SetFadingColor(0, 0, 0)
World.ClearArea(2516.54, -1671.2, 12.87, 2.0, True)
Char.SetCoordinates($scplayer, 2516.54, -1671.2, 12.87)
Char.SetHeading($scplayer, 81.2)
Streaming.LoadSceneInDirection(2516.54, -1671.2, 12.87, 81.2)
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.DoFade(1000, Fade.In)
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_2839
goto @SWEET3_12752

:SWEET3_2839
TIMERB = 0
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 11219)

:SWEET3_2853
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET3_2918
wait 0
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_2911
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_2911
goto @SWEET3_2853

:SWEET3_2918
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE2_AA', 10000, 1)

:SWEET3_2938
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET3_3003
wait 0
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_2996
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_2996
goto @SWEET3_2938

:SWEET3_3003
86@ = 0
85@ = 0
87@ = 0
79@ = 1
gosub @SWEET3_47
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_3077
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_3077
Text.PrintNow('TWAR2_A', 6000, 1)
TIMERB = 0
$blob_flag = 0
59@ = 0

:SWEET3_3114
if or
  not Car.Locate3D($sweet_car, 2404.1, -1891.5, 12.3, 4.0, 4.0, 4.0, $blob_flag)
  not Char.IsSittingInCar($scplayer, $sweet_car)
  not Car.IsOnAllWheels($sweet_car)
goto_if_false @SWEET3_4301
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SWEET3_3202
goto @SWEET3_12770

:SWEET3_3202
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_3248
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752
goto @SWEET3_4138

:SWEET3_3248
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_4138
if 
  56@ == 0
goto_if_false @SWEET3_3540
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET3_3453
if 
  59@ == 0
goto_if_false @SWEET3_3381
Blip.Remove(39@)
39@ = Blip.AddForCoord(2404.1, -1891.5, 12.3)
Text.PrintNow('TWAR2_C', 6000, 1)
$blob_flag = 1
TIMERB = 0
59@ = 1

:SWEET3_3381
if 
  43@ == 0
goto_if_false @SWEET3_3439
if 
  TIMERB > 4000
goto_if_false @SWEET3_3432
gosub @SWEET3_13006
43@ = 1

:SWEET3_3432
goto @SWEET3_3446

:SWEET3_3439
gosub @SWEET3_13006

:SWEET3_3446
goto @SWEET3_3540

:SWEET3_3453
if 
  59@ == 1
goto_if_false @SWEET3_3540
Blip.Remove(39@)
39@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(39@, True)
gosub @SWEET3_15196
Text.PrintNow('TW2_X', 3000, 1)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
$blob_flag = 0
59@ = 0

:SWEET3_3540
if 
  not Car.IsHealthGreater($sweet_car, 250)
goto_if_false @SWEET3_4138
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 11231)

:SWEET3_3566
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET3_3748
wait 0
if 
  Char.IsDead($sweet)
goto_if_false @SWEET3_3624
Text.PrintNow('SWE3_E', 2000, 1)
goto @SWEET3_12752

:SWEET3_3624
if 
  Char.IsDead($ryder)
goto_if_false @SWEET3_3663
Text.PrintNow('SWE3_F', 2000, 1)
goto @SWEET3_12752

:SWEET3_3663
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET3_3702
Text.PrintNow('SWE3_G', 2000, 1)
goto @SWEET3_12752

:SWEET3_3702
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_3741
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_3741
goto @SWEET3_3566

:SWEET3_3748
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SWE2_KC', 2000, 1)
if 
  56@ == 0
goto_if_false @SWEET3_3933
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_3933
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET3_3846
Task.LeaveCarImmediately($big_smoke, $sweet_car)
Task.SmartFleeChar($big_smoke, $scplayer, 100.0, 10000)

:SWEET3_3846
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET3_3886
Task.LeaveCarImmediately($ryder, $sweet_car)
Task.SmartFleeChar($ryder, $scplayer, 100.0, 10000)

:SWEET3_3886
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET3_3926
Task.LeaveCarImmediately($sweet, $sweet_car)
Task.SmartFleeChar($sweet, $scplayer, 100.0, 10000)

:SWEET3_3926
56@ = 1

:SWEET3_3933
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET3_4115
wait 0
if 
  Char.IsDead($sweet)
goto_if_false @SWEET3_3991
Text.PrintNow('SWE3_E', 2000, 1)
goto @SWEET3_12752

:SWEET3_3991
if 
  Char.IsDead($ryder)
goto_if_false @SWEET3_4030
Text.PrintNow('SWE3_F', 2000, 1)
goto @SWEET3_12752

:SWEET3_4030
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET3_4069
Text.PrintNow('SWE3_G', 2000, 1)
goto @SWEET3_12752

:SWEET3_4069
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_4108
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_4108
goto @SWEET3_3933

:SWEET3_4115
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_4138
if 
  Char.IsDead($sweet)
goto_if_false @SWEET3_4177
Text.PrintNow('SWE3_E', 2000, 1)
goto @SWEET3_12752

:SWEET3_4177
if 
  Char.IsDead($ryder)
goto_if_false @SWEET3_4216
Text.PrintNow('SWE3_F', 2000, 1)
goto @SWEET3_12752

:SWEET3_4216
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET3_4255
Text.PrintNow('SWE3_G', 2000, 1)
goto @SWEET3_12752

:SWEET3_4255
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_4294
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_4294
goto @SWEET3_3114

:SWEET3_4301
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Text.ClearPrints
Camera.SetFixedPosition(2405.975, -1882.475, 15.2036, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2405.569, -1883.389, 15.2158, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.Out)

:SWEET3_4372
if 
  Camera.GetFadingStatus
goto_if_false @SWEET3_4396
wait 0
goto @SWEET3_4372

:SWEET3_4396
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET3_4439
Char.SetCoordinates($scplayer, 2364.193, -1914.077, 12.4235)
goto @SWEET3_4459

:SWEET3_4439
Char.WarpFromCarToCoord($scplayer, 2364.193, -1914.077, 12.4235)

:SWEET3_4459
Char.Delete($big_smoke)
Char.Delete($sweet)
Char.Delete($ryder)
Car.Delete($sweet_car)
Streaming.MarkModelAsNoLongerNeeded(107)
Streaming.MarkModelAsNoLongerNeeded(103)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(372)
Streaming.MarkModelAsNoLongerNeeded(412)
Streaming.MarkModelAsNoLongerNeeded(#CIGAR)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Streaming.LoadSceneInDirection(2397.644, -1880.276, 23.8686, 160.0)
World.ClearArea(2404.1, -1891.5, 12.3, 120.0, True)
Player.MakeSafeForCutscene($player1)
Streaming.Switch(False)
Cutscene.Load('SWEET2B')

:SWEET3_4584
if 
  not Cutscene.HasLoaded
goto_if_false @SWEET3_4608
wait 0
goto @SWEET3_4584

:SWEET3_4608
World.ClearArea(2404.1, -1891.5, 12.3, 120.0, True)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SWEET3_4641
if 
  not Cutscene.HasFinished
goto_if_false @SWEET3_4665
wait 0
goto @SWEET3_4641

:SWEET3_4665
Camera.DoFade(0, Fade.Out)

:SWEET3_4671
if 
  Camera.GetFadingStatus
goto_if_false @SWEET3_4695
wait 0
goto @SWEET3_4671

:SWEET3_4695
Cutscene.Clear
Streaming.RequestModel(412)
Streaming.RequestModel(107)
Streaming.RequestModel(106)
Streaming.RequestModel(103)
Streaming.RequestModel(492)
Streaming.LoadSpecialCharacter(1, 'SMOKE')
Streaming.LoadSpecialCharacter(2, 'SWEET')
Streaming.LoadSpecialCharacter(3, 'RYDER2')
Streaming.RequestModel(372)
Streaming.LoadAllModelsNow

:SWEET3_4765
if or
  not Streaming.HasModelLoaded(412)
  not Streaming.HasModelLoaded(107)
  not Streaming.HasModelLoaded(103)
  not Streaming.HasModelLoaded(492)
goto_if_false @SWEET3_4805
wait 0
goto @SWEET3_4765

:SWEET3_4805
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasSpecialCharacterLoaded(3)
  not Streaming.HasModelLoaded(372)
goto_if_false @SWEET3_4844
wait 0
goto @SWEET3_4805

:SWEET3_4844
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Blip.Remove(39@)
65@ = Sequence.Open()
Task.CarDriveToCoord(-1, -1, 2410.739, -1960.027, 12.3906, 13.0, DriveMode.Normal, 412, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 2326.903, -1969.676, 12.3738, 15.0, DriveMode.Normal, 412, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 2235.262, -1891.301, 12.3828, 18.0, DriveMode.Normal, 412, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 2094.307, -1891.856, 12.3738, 18.0, DriveMode.Normal, 412, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 2105.82, -1754.177, 12.3984, 20.0, DriveMode.Normal, 412, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 2321.914, -1736.094, 12.3828, 20.0, DriveMode.Normal, 412, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 2498.32, -1658.28, 12.36, 20.0, DriveMode.Normal, 412, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, -1, 2502.89, -1674.71, 12.37, 15.0, DriveMode.Normal, 412, DrivingMode.AvoidCars)
Sequence.Close(65@)
Car.CustomPlateForNextCar(492, "GROVE4L_")
$sweet_car = Car.Create(492, 2396.36, -1917.96, 12.38)
Car.SetProofs($sweet_car, False, True, False, False, False)
Car.ChangeColor($sweet_car, 59, 34)
Car.SetCanBurstTires($sweet_car, False)
Streaming.MarkModelAsNoLongerNeeded(492)
$big_smoke = Char.CreateAsPassenger($sweet_car, PedType.Mission1, 290, 2)
Char.SetAnimGroup($big_smoke, "FATMAN")
Char.SetHeading($big_smoke, 84.5)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger($big_smoke, $sweet_car, 10000, 1)
Char.GiveWeapon($big_smoke, WeaponType.Tec9, 99999)
Char.SetNeverTargeted($big_smoke, True)
Char.SetSuffersCriticalHits($big_smoke, False)
Char.SetHealth($big_smoke, 500)
Char.SetCantBeDraggedOut($big_smoke, True)
Char.SetStayInCarWhenJacked($big_smoke, True)
Char.SetDecisionMaker($big_smoke, 93@)
Char.SetGetOutUpsideDownCar($big_smoke, False)
$sweet = Char.CreateAsPassenger($sweet_car, PedType.Mission1, 291, 1)
Char.SetAnimGroup($sweet, "GANG2")
Char.SetHeading($sweet, 167.8)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger($sweet, $sweet_car, 10000, 2)
Char.GiveWeapon($sweet, WeaponType.Tec9, 99999)
Char.SetNeverTargeted($sweet, True)
Char.SetSuffersCriticalHits($sweet, False)
Char.SetHealth($sweet, 500)
Char.SetCantBeDraggedOut($sweet, True)
Char.SetStayInCarWhenJacked($sweet, True)
Char.SetDecisionMaker($sweet, 94@)
Char.SetGetOutUpsideDownCar($sweet, False)
$ryder = Char.CreateAsPassenger($sweet_car, PedType.Mission1, 292, 0)
Char.SetAnimGroup($ryder, "GANG1")
Char.SetHeading($ryder, 346.0)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger($ryder, $sweet_car, 10000, 0)
Char.GiveWeapon($ryder, WeaponType.Tec9, 99999)
Char.SetNeverTargeted($ryder, True)
Char.SetSuffersCriticalHits($ryder, False)
Char.SetHealth($ryder, 500)
Char.SetCantBeDraggedOut($ryder, True)
Char.SetStayInCarWhenJacked($ryder, True)
Char.SetDecisionMaker($ryder, 95@)
Char.SetGetOutUpsideDownCar($ryder, False)
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_5660
World.ClearArea(2396.36, -1917.96, 12.38, 10.0, True)
Car.SetCoordinates($sweet_car, 2396.36, -1917.96, 12.38)
Car.SetHeading($sweet_car, 267.3)
if 
  not Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET3_5660
Char.WarpIntoCar($scplayer, $sweet_car)

:SWEET3_5660
World.ClearArea(2411.31, -1928.837, 12.3906, 10.0, True)
40@ = Car.Create(412, 2411.31, -1928.837, 12.3906)
Car.ChangeColor(40@, 22, 22)
Car.SetCanBurstTires(40@, False)
Car.SetLoadCollisionFlag(40@, False)
Car.SetHealth(40@, 3000)
Car.LockDoors(40@, CarLock.LockoutPlayerOnly)
Car.SetHeading(40@, 178.7106)
52@ = Blip.AddForCar(40@)
89@ = Char.CreateInsideCar(40@, PedType.Mission2, 103)
Char.SetSuffersCriticalHits(89@, False)
Char.GiveWeapon(89@, WeaponType.Tec9, 99999)
Char.SetCurrentWeapon(89@, WeaponType.Tec9)
Char.SetAccuracy(89@, 40)
Char.PerformSequence(89@, 65@)
Sequence.Clear(65@)
90@ = Char.CreateAsPassenger(40@, PedType.Mission2, 103, 0)
Char.SetSuffersCriticalHits(90@, False)
Char.GiveWeapon(90@, WeaponType.Tec9, 99999)
Char.SetCurrentWeapon(90@, WeaponType.Tec9)
Char.SetAccuracy(90@, 40)
Task.DriveBy(90@, -1, $sweet_car, 0.0, 0.0, 0.0, 5000.0, DriveByType.Ai, True, 60)
53@ = Char.Create(PedType.Mission1, 106, 2506.45, -1681.02, 12.53)
Char.SetHeading(53@, 80.0)
Char.SetHealth(53@, 30)
Char.GiveWeapon(53@, WeaponType.Tec9, 99999)
Char.SetStayInSamePlace(53@, True)
Char.SetNeverTargeted(53@, True)
54@ = Char.Create(PedType.Mission1, 107, 2507.3, -1680.1, 13.0)
Char.SetHeading(54@, 90.0)
Char.SetHealth(54@, 30)
Char.GiveWeapon(54@, WeaponType.Tec9, 99999)
Char.SetStayInSamePlace(54@, True)
Char.SetNeverTargeted(54@, True)
Task.ChatWithChar(53@, 54@, True, 1)
Task.ChatWithChar(54@, 53@, False, 1)
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET3_6164
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_6164
Car.SetHealth($sweet_car, 3100)
if 
  Char.IsInCar($ryder, $sweet_car)
goto_if_false @SWEET3_6164
Char.SetCurrentWeapon($ryder, WeaponType.Tec9)
Task.DriveBy($ryder, -1, 40@, 0.0, 0.0, 0.0, 5000.0, DriveByType.Ai, True, 45)

:SWEET3_6164
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET3_6251
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_6251
if 
  Char.IsInCar($sweet, $sweet_car)
goto_if_false @SWEET3_6251
Task.DriveBy($sweet, -1, 40@, 0.0, 0.0, 0.0, 5000.0, DriveByType.Ai, False, 45)

:SWEET3_6251
Streaming.MarkModelAsNoLongerNeeded(412)
Streaming.MarkModelAsNoLongerNeeded(107)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
TIMERB = 0
60@ = 0
91@ = 0
59@ = 0
Game.SetRelationship(RelationshipType.Respect, PedType.Gang2, PedType.Mission1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Gang2)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission2, PedType.Player1)
Streaming.LoadSceneInDirection(2396.36, -1917.96, 12.38, 267.3)
Camera.DoFade(1000, Fade.In)
86@ = 0
85@ = 0
87@ = 0
79@ = 2
gosub @SWEET3_47
43@ = 0
100@ = 0
Player.ClearWantedLevel($player1)
Game.EnableAmbientCrime(False)
36@ = 0
37@ = 0
64@ = 0
goto @SWEET3_6447
81@ = Blip.AddForChar(89@)
82@ = Blip.AddForChar(90@)

:SWEET3_6447
if or
  not Char.IsDead(89@)
  not Char.IsDead(90@)
goto_if_false @SWEET3_9232
wait 0
if 
  not Car.IsDead(40@)
goto_if_false @SWEET3_7477
80@ = Streaming.GetAreaVisible()
if 
  Player.CanStartMission($player1)
goto_if_false @SWEET3_7477
if 
  80@ == 0
goto_if_false @SWEET3_7477
if and
  Car.Locate3D(40@, 2502.89, -1674.71, 12.37, 8.0, 8.0, 5.0, False)
  not Char.IsDead(89@)
  not Char.IsDead(90@)
goto_if_false @SWEET3_7477
Camera.DoFade(500, Fade.Out)

:SWEET3_6592
if 
  Camera.GetFadingStatus
goto_if_false @SWEET3_6616
wait 0
goto @SWEET3_6592

:SWEET3_6616
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
80@ = Streaming.GetAreaVisible()
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SWEET3_6670
62@ = Char.StoreCarIsIn($scplayer)
Car.FreezePosition(62@, True)
goto @SWEET3_6677

:SWEET3_6670
Char.FreezePosition($scplayer, True)

:SWEET3_6677
Streaming.SetAreaVisible(0)
Streaming.RequestCollision(2497.299, -1679.542)
Streaming.LoadSceneInDirection(2513.544, -1682.85, 14.1195, 41.0)
World.ClearArea(2513.544, -1682.85, 14.1195, 70.0, True)
Camera.SetFixedPosition(2514.399, -1683.345, 14.2746, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2513.544, -1682.85, 14.1195, SwitchType.JumpCut)
if 
  not Char.IsDead(89@)
goto_if_false @SWEET3_6857
if 
  not Car.IsDead(40@)
goto_if_false @SWEET3_6857
Task.CarDriveToCoord(89@, 40@, 2386.24, -1658.95, 12.38, 1.0, DriveMode.Straightline, 412, DrivingMode.PloughThrough)

:SWEET3_6857
if 
  not Char.IsDead(90@)
goto_if_false @SWEET3_6878
Char.ClearTasks(90@)

:SWEET3_6878
Camera.DoFade(500, Fade.In)
TIMERA = 0

:SWEET3_6892
if 
  500 > TIMERA
goto_if_false @SWEET3_6922
wait 0
goto @SWEET3_6892

:SWEET3_6922
if 
  not Car.IsDead(40@)
goto_if_false @SWEET3_7050
if 
  not Char.IsDead(54@)
goto_if_false @SWEET3_7043
if 
  not Char.IsDead(90@)
goto_if_false @SWEET3_7043
if 
  Char.IsInCar(90@, 40@)
goto_if_false @SWEET3_7043
Char.ClearTasks(90@)
Char.SetAccuracy(90@, 50)
Char.SetShootRate(90@, 90)
Task.DriveBy(90@, -1, -1, 2507.65, -1681.24, 12.8469, 5000.0, DriveByType.Ai, True, 100)

:SWEET3_7043
goto @SWEET3_7057

:SWEET3_7050
goto @SWEET3_9232

:SWEET3_7057
TIMERA = 0

:SWEET3_7064
if or
  not Char.IsDead(54@)
  not Char.IsDead(53@)
goto_if_false @SWEET3_7176
wait 0
if 
  TIMERA > 2500
goto_if_false @SWEET3_7129
if 
  not Char.IsDead(54@)
goto_if_false @SWEET3_7129
Task.Die(54@)

:SWEET3_7129
if 
  TIMERA > 2000
goto_if_false @SWEET3_7169
if 
  not Char.IsDead(53@)
goto_if_false @SWEET3_7169
Task.Die(53@)

:SWEET3_7169
goto @SWEET3_7064

:SWEET3_7176
if 
  not Char.IsDead(89@)
goto_if_false @SWEET3_7243
if 
  not Car.IsDead(40@)
goto_if_false @SWEET3_7243
Task.CarDriveToCoord(89@, 40@, 2386.24, -1658.95, 12.38, 30.0, DriveMode.Straightline, 412, DrivingMode.PloughThrough)

:SWEET3_7243
TIMERA = 0

:SWEET3_7250
if 
  TIMERA <= 3000
goto_if_false @SWEET3_7280
wait 0
goto @SWEET3_7250

:SWEET3_7280
Camera.DoFade(500, Fade.Out)

:SWEET3_7287
if 
  Camera.GetFadingStatus
goto_if_false @SWEET3_7311
wait 0
goto @SWEET3_7287

:SWEET3_7311
if 
  not Char.IsDead(89@)
goto_if_false @SWEET3_7332
Char.ClearTasksImmediately(89@)

:SWEET3_7332
if 
  not Char.IsDead(90@)
goto_if_false @SWEET3_7353
Char.ClearTasksImmediately(90@)

:SWEET3_7353
Car.Delete(40@)
Char.Delete(89@)
Char.Delete(90@)
Streaming.SetAreaVisible(80@)
107@, 108@, 109@ = Char.GetCoordinates($scplayer)
Streaming.LoadScene(107@, 108@, 109@)
wait 100
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SWEET3_7463
if 
  not Car.IsDead(62@)
goto_if_false @SWEET3_7456
Car.FreezePosition(62@, False)

:SWEET3_7456
goto @SWEET3_7470

:SWEET3_7463
Char.FreezePosition($scplayer, False)

:SWEET3_7470
Camera.DoFade(500, Fade.In)

:SWEET3_7477
if 
  Car.IsDead(40@)
goto_if_false @SWEET3_7553
if 
  44@ == 0
goto_if_false @SWEET3_7546
Blip.Remove(52@)
gosub @SWEET3_15863
Text.PrintNow('K_BALLA', 6000, 1)
44@ = 1

:SWEET3_7546
goto @SWEET3_7646

:SWEET3_7553
if 
  not Car.IsHealthGreater(40@, 250)
goto_if_false @SWEET3_7646
if 
  44@ == 0
goto_if_false @SWEET3_7646
Blip.Remove(52@)
gosub @SWEET3_15863
if or
  not Char.IsDead(89@)
  not Char.IsDead(90@)
goto_if_false @SWEET3_7639
Text.PrintNow('K_BALLA', 6000, 1)

:SWEET3_7639
44@ = 1

:SWEET3_7646
if 
  64@ == 0
goto_if_false @SWEET3_7872
if 
  Char.IsDead(89@)
goto_if_false @SWEET3_7768
if 
  not Char.IsDead(90@)
goto_if_false @SWEET3_7724
Blip.Remove(81@)
81@ = Blip.AddForChar(90@)
Task.KillCharOnFoot(90@, $scplayer)
64@ = 1

:SWEET3_7724
gosub @SWEET3_15863
if or
  not Char.IsDead(89@)
  not Char.IsDead(90@)
goto_if_false @SWEET3_7768
Text.PrintNow('K_BALLA', 6000, 1)

:SWEET3_7768
if 
  Char.IsDead(90@)
goto_if_false @SWEET3_7872
if 
  not Char.IsDead(89@)
goto_if_false @SWEET3_7828
Blip.Remove(82@)
82@ = Blip.AddForChar(89@)
Task.KillCharOnFoot(89@, $scplayer)
64@ = 1

:SWEET3_7828
gosub @SWEET3_15863
if or
  not Char.IsDead(89@)
  not Char.IsDead(90@)
goto_if_false @SWEET3_7872
Text.PrintNow('K_BALLA', 6000, 1)

:SWEET3_7872
if 
  Char.IsDead(89@)
goto_if_false @SWEET3_7893
Blip.Remove(81@)

:SWEET3_7893
if 
  Char.IsDead(90@)
goto_if_false @SWEET3_7914
Blip.Remove(82@)

:SWEET3_7914
if or
  Char.IsDead(53@)
  Char.IsDead(54@)
goto_if_false @SWEET3_7958
Text.PrintNow('TW2_Y', 6000, 1)
goto @SWEET3_12752

:SWEET3_7958
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_8004
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752
goto @SWEET3_9053

:SWEET3_8004
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_9053
if 
  56@ == 0
goto_if_false @SWEET3_8611
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET3_8526
if 
  59@ == 0
goto_if_false @SWEET3_8132
Blip.Remove(39@)
Blip.Remove(52@)
if 
  not Car.IsDead(40@)
goto_if_false @SWEET3_8109
52@ = Blip.AddForCar(40@)

:SWEET3_8109
Text.PrintNow('SWE3_B', 3000, 1)
59@ = 1

:SWEET3_8132
if 
  36@ == 0
goto_if_false @SWEET3_8176
if 
  TIMERB > 2000
goto_if_false @SWEET3_8176
gosub @SWEET3_13006

:SWEET3_8176
if 
  100@ == 0
goto_if_false @SWEET3_8231
if 
  TIMERB > 6000
goto_if_false @SWEET3_8231
Text.PrintHelp('SWE3_H')
100@ = 1

:SWEET3_8231
34@ = Car.GetHealth($sweet_car)
if 
  37@ == 0
goto_if_false @SWEET3_8357
if 
  36@ == 0
goto_if_false @SWEET3_8357
if 
  86@ > 11
goto_if_false @SWEET3_8357
set_lvar_int_to_lvar_int 35@ = 34@
35@ -= 60
86@ = 0
85@ = 0
87@ = 0
79@ = 7
37@ = 1
gosub @SWEET3_47
36@ = 1

:SWEET3_8357
if 
  37@ == 1
goto_if_false @SWEET3_8475
if 
  36@ == 0
goto_if_false @SWEET3_8475
if 
  86@ > 3
goto_if_false @SWEET3_8475
set_lvar_int_to_lvar_int 35@ = 34@
35@ -= 60
86@ = 0
85@ = 0
87@ = 0
79@ = 8
37@ = 2
gosub @SWEET3_47
36@ = 1

:SWEET3_8475
if 
  36@ == 1
goto_if_false @SWEET3_8519
if 
  not Car.IsHealthGreater($sweet_car, 35@)
goto_if_false @SWEET3_8519
36@ = 0

:SWEET3_8519
goto @SWEET3_8611

:SWEET3_8526
if 
  59@ == 1
goto_if_false @SWEET3_8611
Blip.Remove(39@)
Blip.Remove(52@)
39@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(39@, True)
gosub @SWEET3_15196
Text.PrintNow('TW2_X', 3000, 1)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
59@ = 0

:SWEET3_8611
if 
  not Car.IsHealthGreater($sweet_car, 250)
goto_if_false @SWEET3_9053
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 11213)

:SWEET3_8637
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET3_8663
wait 0
goto @SWEET3_8637

:SWEET3_8663
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SWE2_KA', 2000, 1)
if 
  56@ == 0
goto_if_false @SWEET3_8848
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_8848
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET3_8761
Task.LeaveCarImmediately($big_smoke, $sweet_car)
Task.SmartFleeChar($big_smoke, $scplayer, 100.0, 10000)

:SWEET3_8761
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET3_8801
Task.LeaveCarImmediately($ryder, $sweet_car)
Task.SmartFleeChar($ryder, $scplayer, 100.0, 10000)

:SWEET3_8801
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET3_8841
Task.LeaveCarImmediately($sweet, $sweet_car)
Task.SmartFleeChar($sweet, $scplayer, 100.0, 10000)

:SWEET3_8841
56@ = 1

:SWEET3_8848
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET3_9030
wait 0
if 
  Char.IsDead($sweet)
goto_if_false @SWEET3_8906
Text.PrintNow('SWE3_E', 2000, 1)
goto @SWEET3_12752

:SWEET3_8906
if 
  Char.IsDead($ryder)
goto_if_false @SWEET3_8945
Text.PrintNow('SWE3_F', 2000, 1)
goto @SWEET3_12752

:SWEET3_8945
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET3_8984
Text.PrintNow('SWE3_G', 2000, 1)
goto @SWEET3_12752

:SWEET3_8984
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_9023
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_9023
goto @SWEET3_8848

:SWEET3_9030
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_9053
if 
  Char.IsDead($sweet)
goto_if_false @SWEET3_9092
Text.PrintNow('SWE3_E', 2000, 1)
goto @SWEET3_12752

:SWEET3_9092
if 
  Char.IsDead($ryder)
goto_if_false @SWEET3_9131
Text.PrintNow('SWE3_F', 2000, 1)
goto @SWEET3_12752

:SWEET3_9131
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET3_9170
Text.PrintNow('SWE3_G', 2000, 1)
goto @SWEET3_12752

:SWEET3_9170
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_9209
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_9209
if 
  Car.IsDead(40@)
goto_if_false @SWEET3_9225

:SWEET3_9225
goto @SWEET3_6447

:SWEET3_9232
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET3_9253
Char.ClearTasks($sweet)

:SWEET3_9253
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET3_9274
Char.ClearTasks($ryder)

:SWEET3_9274
Blip.Remove(81@)
Blip.Remove(82@)
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_9365
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET3_9358
$blob_flag = 1
Blip.Remove(52@)
52@ = Blip.AddForCoord(2513.33, -1672.12, 12.52)
goto @SWEET3_9365

:SWEET3_9358
$blob_flag = 0

:SWEET3_9365
if 
  Char.IsDead($sweet)
goto_if_false @SWEET3_9404
Text.PrintNow('SWE3_E', 2000, 1)
goto @SWEET3_12752

:SWEET3_9404
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
86@ = 0
85@ = 0
87@ = 0
79@ = 3
gosub @SWEET3_47
TIMERA = 0
43@ = 0
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_9535
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET3_9519
Text.PrintNow('TW2_W', 6000, 1)
goto @SWEET3_9535

:SWEET3_9519
Text.PrintNow('TW2_X', 6000, 1)

:SWEET3_9535
if or
  not Car.Locate3D($sweet_car, 2513.3, -1671.9, 12.52, 4.0, 4.0, 4.0, $blob_flag)
  not Char.IsSittingInCar($scplayer, $sweet_car)
  not Car.IsOnAllWheels($sweet_car)
goto_if_false @SWEET3_10573
wait 0
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_9647
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752
goto @SWEET3_10410

:SWEET3_9647
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_10410
if 
  56@ == 0
goto_if_false @SWEET3_9968
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET3_9876
if 
  59@ == 0
goto_if_false @SWEET3_9785
Blip.Remove(39@)
Blip.Remove(52@)
52@ = Blip.AddForCoord(2513.33, -1672.12, 12.52)
Text.PrintNow('TW2_W', 6000, 1)
$blob_flag = 1
TIMERA = 0
59@ = 1

:SWEET3_9785
if 
  43@ == 0
goto_if_false @SWEET3_9862
if 
  TIMERA > 4000
goto_if_false @SWEET3_9855
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET3_9855
gosub @SWEET3_13006
43@ = 1

:SWEET3_9855
goto @SWEET3_9869

:SWEET3_9862
gosub @SWEET3_13006

:SWEET3_9869
goto @SWEET3_9968

:SWEET3_9876
if 
  59@ == 1
goto_if_false @SWEET3_9968
Blip.Remove(52@)
Blip.Remove(39@)
39@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(39@, True)
gosub @SWEET3_15196
Text.PrintNow('TW2_X', 6000, 1)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
$blob_flag = 0
59@ = 0

:SWEET3_9968
if 
  not Car.IsHealthGreater($sweet_car, 250)
goto_if_false @SWEET3_10410
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 11258)

:SWEET3_9994
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET3_10020
wait 0
goto @SWEET3_9994

:SWEET3_10020
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SWE2_KB', 2000, 1)
if 
  56@ == 0
goto_if_false @SWEET3_10205
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_10205
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET3_10118
Task.LeaveCarImmediately($big_smoke, $sweet_car)
Task.SmartFleeChar($big_smoke, $scplayer, 100.0, 10000)

:SWEET3_10118
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET3_10158
Task.LeaveCarImmediately($ryder, $sweet_car)
Task.SmartFleeChar($ryder, $scplayer, 100.0, 10000)

:SWEET3_10158
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET3_10198
Task.LeaveCarImmediately($sweet, $sweet_car)
Task.SmartFleeChar($sweet, $scplayer, 100.0, 10000)

:SWEET3_10198
56@ = 1

:SWEET3_10205
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET3_10387
wait 0
if 
  Char.IsDead($sweet)
goto_if_false @SWEET3_10263
Text.PrintNow('SWE3_E', 2000, 1)
goto @SWEET3_12752

:SWEET3_10263
if 
  Char.IsDead($ryder)
goto_if_false @SWEET3_10302
Text.PrintNow('SWE3_F', 2000, 1)
goto @SWEET3_12752

:SWEET3_10302
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET3_10341
Text.PrintNow('SWE3_G', 2000, 1)
goto @SWEET3_12752

:SWEET3_10341
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_10380
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_10380
goto @SWEET3_10205

:SWEET3_10387
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_10410
if 
  Char.IsDead($sweet)
goto_if_false @SWEET3_10449
Text.PrintNow('SWE3_E', 2000, 1)
goto @SWEET3_12752

:SWEET3_10449
if 
  Char.IsDead($ryder)
goto_if_false @SWEET3_10488
Text.PrintNow('SWE3_F', 2000, 1)
goto @SWEET3_12752

:SWEET3_10488
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET3_10527
Text.PrintNow('SWE3_G', 2000, 1)
goto @SWEET3_12752

:SWEET3_10527
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_10566
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_10566
goto @SWEET3_9535

:SWEET3_10573
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.SetFixedPosition(2502.764, -1670.778, 18.432, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2503.673, -1670.851, 18.0218, SwitchType.JumpCut)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
86@ = 0
85@ = 0
87@ = 0
79@ = 4
gosub @SWEET3_47
43@ = 0

:SWEET3_10685
if 
  86@ <> 1
goto_if_false @SWEET3_10721
wait 0
gosub @SWEET3_13006
goto @SWEET3_10685

:SWEET3_10721
38@ = 0
skip_cutscene_start_internal @SWEET3_11070
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET3_10767
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, $ryder, 15000)

:SWEET3_10767
if 
  86@ <> 3
goto_if_false @SWEET3_10803
wait 0
gosub @SWEET3_13006
goto @SWEET3_10767

:SWEET3_10803
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2522.371, -1679.26, 15.9361, 2516.479, -1680.764, 17.4286, 17000, True)
Camera.SetVectorTrack(2521.535, -1678.784, 15.6635, 2516.381, -1679.917, 16.9049, 17000, True)

:SWEET3_10887
if 
  86@ <> 8
goto_if_false @SWEET3_10923
wait 0
gosub @SWEET3_13006
goto @SWEET3_10887

:SWEET3_10923
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_10988
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET3_10988
Task.LeaveCar($sweet, $sweet_car)
Task.GoStraightToCoord($sweet, 2519.388, -1678.689, 13.707, MoveState.Walk, 5000)

:SWEET3_10988
wait 500
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_11058
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET3_11058
Task.LeaveCar($ryder, $sweet_car)
Task.GoStraightToCoord($ryder, 2519.388, -1678.689, 13.707, MoveState.Walk, 5000)

:SWEET3_11058
wait 6000
38@ = 1

:SWEET3_11070
skip_cutscene_end 
Char.ClearLookAt($scplayer)
Text.ClearPrints
if 
  38@ == 0
goto_if_false @SWEET3_11133
Camera.DoFade(500, Fade.Out)

:SWEET3_11104
if 
  Camera.GetFadingStatus
goto_if_false @SWEET3_11128
wait 0
goto @SWEET3_11104

:SWEET3_11128
wait 500

:SWEET3_11133
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.ResetNewScriptables
Char.Delete($ryder)
Char.Delete($sweet)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  38@ == 0
goto_if_false @SWEET3_11215
Camera.DoFade(500, Fade.In)

:SWEET3_11191
if 
  Camera.GetFadingStatus
goto_if_false @SWEET3_11215
wait 0
goto @SWEET3_11191

:SWEET3_11215
86@ = 0
85@ = 0
87@ = 0
79@ = 5
gosub @SWEET3_47
43@ = 0
TIMERA = 0
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_11303
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_11303
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_11384
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET3_11377
$blob_flag = 1
Blip.Remove(52@)
52@ = Blip.AddForCoord(2066.465, -1695.444, 12.5547)
goto @SWEET3_11384

:SWEET3_11377
$blob_flag = 0

:SWEET3_11384
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_11458
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET3_11442
Text.PrintNow('TW2_Z', 6000, 1)
goto @SWEET3_11458

:SWEET3_11442
Text.PrintNow('TW2_X', 6000, 1)

:SWEET3_11458
if or
  not Car.Locate3D($sweet_car, 2066.465, -1695.444, 12.5547, 4.0, 3.5, 4.0, $blob_flag)
  not Char.IsSittingInCar($scplayer, $sweet_car)
  not Car.IsOnAllWheels($sweet_car)
goto_if_false @SWEET3_12260
wait 0
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_11570
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752
goto @SWEET3_12175

:SWEET3_11570
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_12175
if 
  56@ == 0
goto_if_false @SWEET3_11891
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET3_11799
if 
  59@ == 0
goto_if_false @SWEET3_11708
Blip.Remove(39@)
Blip.Remove(52@)
52@ = Blip.AddForCoord(2066.465, -1695.444, 12.5547)
Text.PrintNow('TW2_Z', 6000, 1)
$blob_flag = 1
TIMERA = 0
59@ = 1

:SWEET3_11708
if 
  43@ == 0
goto_if_false @SWEET3_11785
if 
  TIMERA > 4000
goto_if_false @SWEET3_11778
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @SWEET3_11778
gosub @SWEET3_13006
43@ = 1

:SWEET3_11778
goto @SWEET3_11792

:SWEET3_11785
gosub @SWEET3_13006

:SWEET3_11792
goto @SWEET3_11891

:SWEET3_11799
if 
  59@ == 1
goto_if_false @SWEET3_11891
Blip.Remove(52@)
Blip.Remove(39@)
39@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(39@, True)
gosub @SWEET3_14719
Text.PrintNow('TW2_X', 6000, 1)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
$blob_flag = 0
59@ = 0

:SWEET3_11891
if 
  not Car.IsHealthGreater($sweet_car, 250)
goto_if_false @SWEET3_12175
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 11258)

:SWEET3_11917
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET3_11943
wait 0
goto @SWEET3_11917

:SWEET3_11943
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SWE2_KB', 2000, 1)
if 
  56@ == 0
goto_if_false @SWEET3_12048
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_12048
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET3_12041
Task.LeaveCarImmediately($big_smoke, $sweet_car)
Task.SmartFleeChar($big_smoke, $scplayer, 100.0, 10000)

:SWEET3_12041
56@ = 1

:SWEET3_12048
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET3_12152
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET3_12106
Text.PrintNow('SWE3_G', 2000, 1)
goto @SWEET3_12752

:SWEET3_12106
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_12145
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_12145
goto @SWEET3_12048

:SWEET3_12152
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_12175
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET3_12214
Text.PrintNow('SWE3_G', 2000, 1)
goto @SWEET3_12752

:SWEET3_12214
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_12253
Text.PrintNow('SWE3_D', 2000, 1)
goto @SWEET3_12752

:SWEET3_12253
goto @SWEET3_11458

:SWEET3_12260
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
86@ = 0
85@ = 0
87@ = 0
79@ = 6
gosub @SWEET3_47
43@ = 0
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2079.109, -1703.561, 17.6928, 2067.162, -1703.315, 13.4746, 17000, True)
Camera.SetVectorTrack(2078.251, -1703.206, 17.3208, 2067.105, -1702.33, 13.6396, 17000, True)
wait 500
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET3_12442
Char.ClearLookAt($scplayer)
Task.LookAtChar($scplayer, $big_smoke, 15000)

:SWEET3_12442
38@ = 0
skip_cutscene_start_internal @SWEET3_12605

:SWEET3_12456
if 
  86@ <> 1
goto_if_false @SWEET3_12492
wait 0
gosub @SWEET3_13006
goto @SWEET3_12456

:SWEET3_12492
if 
  86@ <> 5
goto_if_false @SWEET3_12528
wait 0
gosub @SWEET3_13006
goto @SWEET3_12492

:SWEET3_12528
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_12593
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET3_12593
Task.LeaveCar($big_smoke, $sweet_car)
Task.GoStraightToCoord($big_smoke, 2058.404, -1697.166, 12.5547, MoveState.Walk, 8000)

:SWEET3_12593
wait 5000
38@ = 1

:SWEET3_12605
skip_cutscene_end 
Char.ClearLookAt($scplayer)
Text.ClearPrints
if 
  38@ == 0
goto_if_false @SWEET3_12668
Camera.DoFade(500, Fade.Out)

:SWEET3_12639
if 
  Camera.GetFadingStatus
goto_if_false @SWEET3_12663
wait 0
goto @SWEET3_12639

:SWEET3_12663
wait 500

:SWEET3_12668
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Camera.ResetNewScriptables
Char.Delete($big_smoke)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
if 
  38@ == 0
goto_if_false @SWEET3_12745
Camera.DoFade(500, Fade.In)

:SWEET3_12721
if 
  Camera.GetFadingStatus
goto_if_false @SWEET3_12745
wait 0
goto @SWEET3_12721

:SWEET3_12745
goto @SWEET3_12770

:SWEET3_12752
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:SWEET3_12770
Stat.RegisterMissionPassed('SWEET_3')
Text.PrintWithNumberBig('M_PASSS', 200, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(5)
Player.AddScore($player1, 200)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
$flag_sweet_mission_counter += 1
Stat.SetInt(StatId.PassedSweet2, 1)
Stat.PlayerMadeProgress(1)
return 

:SWEET3_12841
Char.RemoveElegantly($big_smoke)
Char.RemoveElegantly($ryder)
Char.RemoveElegantly($sweet)
Blip.Remove(39@)
Blip.Remove(52@)
Blip.Remove(81@)
Blip.Remove(82@)
Game.EnableAmbientCrime(True)
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_12903
Car.SetCanBurstTires($sweet_car, True)

:SWEET3_12903
Streaming.MarkModelAsNoLongerNeeded(107)
Streaming.MarkModelAsNoLongerNeeded(106)
Streaming.MarkModelAsNoLongerNeeded(103)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(372)
Streaming.MarkModelAsNoLongerNeeded(412)
Streaming.MarkModelAsNoLongerNeeded(#CIGAR)
Car.MarkAsNoLongerNeeded(40@)
Char.MarkAsNoLongerNeeded(89@)
Char.MarkAsNoLongerNeeded(90@)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
CarGenerator.Switch($gen_car6, 101)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

:SWEET3_13006
if or
  85@ == 0
  85@ == 1
goto_if_false @SWEET3_13076
if 
  is_int_lvar_greater_or_equal_to_int_lvar 58@ >= 86@
goto_if_false @SWEET3_13076
if 
  TIMERA > 200
goto_if_false @SWEET3_13076
gosub @SWEET3_13148

:SWEET3_13076
if 
  85@ == 2
goto_if_false @SWEET3_13146
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET3_13146
gosub @SWEET3_13997
85@ = 0
86@ += 1
87@ = 0
Text.ClearPrints
TIMERA = 0

:SWEET3_13146
return 

:SWEET3_13148
if 
  85@ == 0
goto_if_false @SWEET3_13184
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 66@(86@,13i))
85@ = 1

:SWEET3_13184
if 
  85@ == 1
goto_if_false @SWEET3_13249
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET3_13249
Text.PrintNow($6582(86@,13s), 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
gosub @SWEET3_13251
85@ = 2

:SWEET3_13249
return 

:SWEET3_13251
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11200
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11201
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11202
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11274
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11275
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11276
goto_if_false @SWEET3_13351
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.StartFacialTalk($scplayer, 3000)
return 

:SWEET3_13351
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11277
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11278
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11279
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11280
goto_if_false @SWEET3_13427
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.StartFacialTalk($scplayer, 3000)
return 

:SWEET3_13427
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11220
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11221
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11223
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11228
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11229
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11237
goto_if_false @SWEET3_13543
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET3_13543
Char.ShutUpForScriptedSpeech($sweet, True)
Char.StartFacialTalk($sweet, 3000)
return 

:SWEET3_13543
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11238
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11235
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11236
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11224
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11225
goto_if_false @SWEET3_13647
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET3_13647
Char.ShutUpForScriptedSpeech($sweet, True)
Char.StartFacialTalk($sweet, 3000)
return 

:SWEET3_13647
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11214
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11215
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11216
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11217
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11218
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11210
goto_if_false @SWEET3_13763
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET3_13763
Char.ShutUpForScriptedSpeech($ryder, True)
Char.StartFacialTalk($ryder, 3000)
return 

:SWEET3_13763
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11207
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11208
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11209
goto_if_false @SWEET3_13843
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET3_13843
Char.ShutUpForScriptedSpeech($ryder, True)
Char.StartFacialTalk($ryder, 3000)
return 

:SWEET3_13843
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11203
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11204
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11205
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11206
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11281
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11211
goto_if_false @SWEET3_13964
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET3_13957
Char.ShutUpForScriptedSpeech($ryder, True)
Char.StartFacialTalk($ryder, 3000)

:SWEET3_13957
goto @SWEET3_13995

:SWEET3_13964
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET3_13995
Char.ShutUpForScriptedSpeech($big_smoke, True)
Char.StartFacialTalk($big_smoke, 3000)

:SWEET3_13995
return 

:SWEET3_13997
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11200
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11201
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11202
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11274
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11275
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11276
goto_if_false @SWEET3_14094
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
return 

:SWEET3_14094
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11277
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11278
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11279
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11280
goto_if_false @SWEET3_14167
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
return 

:SWEET3_14167
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11220
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11221
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11223
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11228
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11229
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11237
goto_if_false @SWEET3_14280
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET3_14280
Char.ShutUpForScriptedSpeech($sweet, False)
Char.StopFacialTalk($sweet)
return 

:SWEET3_14280
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11238
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11235
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11236
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11224
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11225
goto_if_false @SWEET3_14381
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET3_14381
Char.ShutUpForScriptedSpeech($sweet, False)
Char.StopFacialTalk($sweet)
return 

:SWEET3_14381
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11214
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11215
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11216
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11217
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11218
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11210
goto_if_false @SWEET3_14494
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET3_14494
Char.ShutUpForScriptedSpeech($ryder, False)
Char.StopFacialTalk($ryder)
return 

:SWEET3_14494
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11207
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11208
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11209
goto_if_false @SWEET3_14571
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET3_14571
Char.ShutUpForScriptedSpeech($ryder, False)
Char.StopFacialTalk($ryder)
return 

:SWEET3_14571
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11203
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11204
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11205
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11206
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11281
  is_int_lvar_equal_to_constant 66@(86@,13i) == 11211
goto_if_false @SWEET3_14689
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET3_14682
Char.ShutUpForScriptedSpeech($ryder, False)
Char.StopFacialTalk($ryder)

:SWEET3_14682
goto @SWEET3_14717

:SWEET3_14689
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET3_14717
Char.ShutUpForScriptedSpeech($big_smoke, False)
Char.StopFacialTalk($big_smoke)

:SWEET3_14717
return 

:SWEET3_14719
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  51@ == 0
goto_if_false @SWEET3_14748
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25800)

:SWEET3_14748
if 
  51@ == 1
goto_if_false @SWEET3_14773
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25801)

:SWEET3_14773
if 
  51@ == 2
goto_if_false @SWEET3_14798
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25802)

:SWEET3_14798
if 
  51@ == 3
goto_if_false @SWEET3_14823
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25803)

:SWEET3_14823
if 
  51@ == 4
goto_if_false @SWEET3_14848
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25804)

:SWEET3_14848
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:SWEET3_14864
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET3_14926
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET3_14901
return 

:SWEET3_14901
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_14919
return 

:SWEET3_14919
goto @SWEET3_14864

:SWEET3_14926
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
if 
  51@ == 0
goto_if_false @SWEET3_14964
Text.PrintNow('SMOX_AA', 3000, 1)

:SWEET3_14964
if 
  51@ == 1
goto_if_false @SWEET3_14998
Text.PrintNow('SMOX_AB', 3000, 1)

:SWEET3_14998
if 
  51@ == 2
goto_if_false @SWEET3_15032
Text.PrintNow('SMOX_AC', 3000, 1)

:SWEET3_15032
if 
  51@ == 3
goto_if_false @SWEET3_15066
Text.PrintNow('SMOX_AD', 3000, 1)

:SWEET3_15066
if 
  51@ == 4
goto_if_false @SWEET3_15100
Text.PrintNow('SMOX_AE', 3000, 1)

:SWEET3_15100
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET3_15162
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET3_15137
return 

:SWEET3_15137
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_15155
return 

:SWEET3_15155
goto @SWEET3_15100

:SWEET3_15162
51@ += 1
if 
  51@ > 4
goto_if_false @SWEET3_15194
51@ = 0

:SWEET3_15194
return 

:SWEET3_15196
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  51@ == 0
goto_if_false @SWEET3_15225
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25605)

:SWEET3_15225
if 
  51@ == 1
goto_if_false @SWEET3_15250
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 7468)

:SWEET3_15250
if 
  51@ == 2
goto_if_false @SWEET3_15275
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 26041)

:SWEET3_15275
if 
  51@ == 3
goto_if_false @SWEET3_15300
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25602)

:SWEET3_15300
if 
  51@ == 4
goto_if_false @SWEET3_15325
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 26044)

:SWEET3_15325
if 
  51@ == 5
goto_if_false @SWEET3_15350
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25603)

:SWEET3_15350
if 
  51@ == 6
goto_if_false @SWEET3_15375
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 7463)

:SWEET3_15375
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:SWEET3_15391
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET3_15489
wait 0
if 
  Char.IsDead($sweet)
goto_if_false @SWEET3_15428
return 

:SWEET3_15428
if 
  Char.IsDead($ryder)
goto_if_false @SWEET3_15446
return 

:SWEET3_15446
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET3_15464
return 

:SWEET3_15464
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_15482
return 

:SWEET3_15482
goto @SWEET3_15391

:SWEET3_15489
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
if 
  51@ == 0
goto_if_false @SWEET3_15527
Text.PrintNow('RYDX_AF', 3000, 1)

:SWEET3_15527
if 
  51@ == 1
goto_if_false @SWEET3_15561
Text.PrintNow('SWE1_BM', 3000, 1)

:SWEET3_15561
if 
  51@ == 2
goto_if_false @SWEET3_15595
Text.PrintNow('SWEX_BP', 3000, 1)

:SWEET3_15595
if 
  51@ == 3
goto_if_false @SWEET3_15629
Text.PrintNow('RYDX_AC', 3000, 1)

:SWEET3_15629
if 
  51@ == 4
goto_if_false @SWEET3_15663
Text.PrintNow('SWEX_BS', 3000, 1)

:SWEET3_15663
if 
  51@ == 5
goto_if_false @SWEET3_15697
Text.PrintNow('RYDX_AD', 3000, 1)

:SWEET3_15697
if 
  51@ == 6
goto_if_false @SWEET3_15731
Text.PrintNow('SWE1_BG', 3000, 1)

:SWEET3_15731
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET3_15829
wait 0
if 
  Char.IsDead($sweet)
goto_if_false @SWEET3_15768
return 

:SWEET3_15768
if 
  Char.IsDead($ryder)
goto_if_false @SWEET3_15786
return 

:SWEET3_15786
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET3_15804
return 

:SWEET3_15804
if 
  Car.IsDead($sweet_car)
goto_if_false @SWEET3_15822
return 

:SWEET3_15822
goto @SWEET3_15731

:SWEET3_15829
51@ += 1
if 
  51@ > 6
goto_if_false @SWEET3_15861
51@ = 0

:SWEET3_15861
return 

:SWEET3_15863
if 
  not Char.IsDead(89@)
goto_if_false @SWEET3_15992
Blip.Remove(81@)
81@ = Blip.AddForChar(89@)
Task.KillCharOnFoot(89@, $scplayer)
if 
  not Char.IsDead($ryder)
goto_if_false @SWEET3_15992
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_15992
if 
  Char.IsInCar($ryder, $sweet_car)
goto_if_false @SWEET3_15992
Char.ClearTasks($ryder)
Task.DriveBy($ryder, 89@, -1, 0.0, 0.0, 0.0, 5000.0, DriveByType.Ai, True, 70)

:SWEET3_15992
if 
  not Char.IsDead(90@)
goto_if_false @SWEET3_16121
Blip.Remove(82@)
82@ = Blip.AddForChar(90@)
Task.KillCharOnFoot(90@, $scplayer)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET3_16121
if 
  not Car.IsDead($sweet_car)
goto_if_false @SWEET3_16121
if 
  Char.IsInCar($sweet, $sweet_car)
goto_if_false @SWEET3_16121
Char.ClearTasks($sweet)
Task.DriveBy($sweet, 90@, -1, 0.0, 0.0, 0.0, 5000.0, DriveByType.Ai, False, 70)

:SWEET3_16121
return 

//-------------Mission 16---------------
// Originally: Nines And AK's

:SWEET2
script_name 'SWEET2'
gosub @SWEET2_1048
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET2_38
gosub @SWEET2_20129

:SWEET2_38
gosub @SWEET2_20646
terminate_this_script 

:SWEET2_47
switch_start 39@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET2_1046 {caseNum1} 0 {caseLabel1} @SWEET2_110 {caseNum2} 1 {caseLabel2} @SWEET2_322 {caseNum3} 2 {caseLabel3} @SWEET2_644 {caseNum4} 3 {caseLabel4} @SWEET2_812 {caseNum5} -1 {caseLabel5} @SWEET2_1046 {caseNum6} -1 {caseLabel6} @SWEET2_1046 {caseNum7} -1 {caseLabel7} @SWEET2_1046

:SWEET2_110
set_var_text_label s$6608[0] = 'SWE3_AA'
set_var_text_label s$6608[1] = 'SWE3_AB'
set_var_text_label s$6608[2] = 'SWE3_AC'
set_var_text_label s$6608[3] = 'SWE3_AD'
set_var_text_label s$6608[4] = 'SWE3_AE'
set_var_text_label s$6608[5] = 'SWE3_AF'
set_var_text_label s$6608[6] = 'SWE3_AH'
set_var_text_label s$6608[7] = 'SWE3_AJ'
set_var_text_label s$6608[8] = 'SWE3_AK'
set_lvar_int_to_constant 66@ = 9831
set_lvar_int_to_constant 67@ = 9834
set_lvar_int_to_constant 68@ = 9835
set_lvar_int_to_constant 69@ = 9836
set_lvar_int_to_constant 70@ = 9837
set_lvar_int_to_constant 71@ = 9866
set_lvar_int_to_constant 72@ = 9871
set_lvar_int_to_constant 73@ = 9872
set_lvar_int_to_constant 74@ = 9832
48@ = 8
goto @SWEET2_1046

:SWEET2_322
set_var_text_label s$6608[0] = 'SWE3_GA'
set_var_text_label s$6608[1] = 'SWE3_GB'
set_var_text_label s$6608[2] = 'SWE3_GC'
set_var_text_label s$6608[3] = 'SWE3_GD'
set_var_text_label s$6608[4] = 'SWE3_GE'
set_var_text_label s$6608[5] = 'SWE3_GF'
set_var_text_label s$6608[6] = 'SWE3_GG'
set_var_text_label s$6608[7] = 'SWE3_GH'
set_var_text_label s$6608[8] = 'SWE3_GJ'
set_var_text_label s$6608[9] = 'SWE3_GK'
set_var_text_label s$6608[10] = 'SWE3_GL'
set_var_text_label s$6608[11] = 'SWE3_GM'
set_var_text_label s$6608[12] = 'SWE3_GN'
set_var_text_label s$6608[13] = 'SWE3_GO'
set_lvar_int_to_constant 66@ = 9854
set_lvar_int_to_constant 67@ = 9855
set_lvar_int_to_constant 68@ = 9825
set_lvar_int_to_constant 69@ = 9856
set_lvar_int_to_constant 70@ = 9857
set_lvar_int_to_constant 71@ = 9858
set_lvar_int_to_constant 72@ = 9826
set_lvar_int_to_constant 73@ = 9827
set_lvar_int_to_constant 74@ = 9828
set_lvar_int_to_constant 75@ = 9829
set_lvar_int_to_constant 76@ = 9830
set_lvar_int_to_constant 77@ = 9859
set_lvar_int_to_constant 78@ = 9833
set_lvar_int_to_constant 79@ = 9860
48@ = 13
goto @SWEET2_1046

:SWEET2_644
set_var_text_label s$6608[0] = 'SWE3_HA'
set_var_text_label s$6608[1] = 'SWE3_HB'
set_var_text_label s$6608[2] = 'SWE3_HC'
set_var_text_label s$6608[3] = 'SWE3_HD'
set_var_text_label s$6608[4] = 'SWE3_HE'
set_var_text_label s$6608[5] = 'SWE3_HF'
set_var_text_label s$6608[6] = 'SWE3_HG'
set_lvar_int_to_constant 66@ = 9867
set_lvar_int_to_constant 67@ = 9861
set_lvar_int_to_constant 68@ = 9868
set_lvar_int_to_constant 69@ = 9862
set_lvar_int_to_constant 70@ = 9863
set_lvar_int_to_constant 71@ = 9869
set_lvar_int_to_constant 72@ = 9864
48@ = 6
goto @SWEET2_1046

:SWEET2_812
set_var_text_label s$6608[0] = 'MSWE07A'
set_var_text_label s$6608[1] = 'MSWE07B'
set_var_text_label s$6608[2] = 'MSWE07C'
set_var_text_label s$6608[3] = 'MSWE07D'
set_var_text_label s$6608[4] = 'MSWE07E'
set_var_text_label s$6608[5] = 'MSWE07F'
set_var_text_label s$6608[6] = 'MSWE07G'
set_var_text_label s$6608[7] = 'MSWE07H'
set_var_text_label s$6608[8] = 'MSWE07J'
set_var_text_label s$6608[9] = 'MSWE07K'
set_lvar_int_to_constant 66@ = 14524
set_lvar_int_to_constant 67@ = 14439
set_lvar_int_to_constant 68@ = 14525
set_lvar_int_to_constant 69@ = 14440
set_lvar_int_to_constant 70@ = 14526
set_lvar_int_to_constant 71@ = 14441
set_lvar_int_to_constant 72@ = 14442
set_lvar_int_to_constant 73@ = 14443
set_lvar_int_to_constant 74@ = 14527
set_lvar_int_to_constant 75@ = 14444
48@ = 9
goto @SWEET2_1046

:SWEET2_1046
return 

:SWEET2_1048
Stat.RegisterMissionGiven
$onmission = 1
36@ = 0
42@ = 0
38@ = 0
51@ = 0
53@ = 0
62@ = 0
45@ = 0
47@ = 0
56@ = 0
57@ = 0
89@ = 2440.58
94@ = -1979.89
99@ = 14.1
90@ = 2440.14
95@ = -1976.5
100@ = 13.4
91@ = 2440.95
96@ = -1973.76
101@ = 14.2
92@ = 2448.97
97@ = -1973.29
102@ = 13.35
93@ = 2444.35
98@ = -1970.61
103@ = 13.8
wait 0
Text.LoadMissionText('SWEET2')
Streaming.SetAreaVisible(1)
Cutscene.Load('SWEET3A')

:SWEET2_1307
if 
  not Cutscene.HasLoaded
goto_if_false @SWEET2_1331
wait 0
goto @SWEET2_1307

:SWEET2_1331
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SWEET2_1340
if 
  not Cutscene.HasFinished
goto_if_false @SWEET2_1364
wait 0
goto @SWEET2_1340

:SWEET2_1364
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:SWEET2_1377
if 
  Camera.GetFadingStatus
goto_if_false @SWEET2_1401
wait 0
goto @SWEET2_1377

:SWEET2_1401
Cutscene.Clear
Streaming.SetAreaVisible(0)
Weather.Force(WeatherType.SunnyLa)
Streaming.LoadSpecialCharacter(10, 'SMOKE')
Streaming.RequestModel(466)
Streaming.LoadAllModelsNow

:SWEET2_1431
if or
  not Streaming.HasSpecialCharacterLoaded(10)
  not Streaming.HasModelLoaded(466)
goto_if_false @SWEET2_1462
wait 0
goto @SWEET2_1431

:SWEET2_1462
52@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
CarGenerator.Switch($gen_car6, 0)
World.ClearArea(2506.23, -1675.75, 12.37, 6.0, True)
Car.CustomPlateForNextCar(466, "_A2TMFK_")
$big_smoke_car = Car.Create(466, 2506.23, -1675.75, 12.37)
Car.ChangeColor($big_smoke_car, 98, 14)
Car.SetHeading($big_smoke_car, 148.0)
Audio.SetRadioChannel(RadioChannel.BounceFM)
Game.SetRelationship(RelationshipType.Respect, PedType.Gang2, PedType.Mission1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Gang2)
$big_smoke = Char.Create(PedType.Mission1, 299, 2505.869, -1672.723, 12.3778)
Char.SetHeading($big_smoke, 160.0)
Char.SetHealth($big_smoke, 500)
Char.SetNeverTargeted($big_smoke, True)
Char.SetSuffersCriticalHits($big_smoke, False)
Char.SetWeaponSkill($big_smoke, 1)
Char.SetAccuracy($big_smoke, 100)
Char.SetShootRate($big_smoke, 30)
Char.SetOnlyDamagedByPlayer($big_smoke, True)
Char.SetGetOutUpsideDownCar($big_smoke, False)
Char.SetDecisionMaker($big_smoke, 52@)
Char.SetCoordinates($scplayer, 2515.28, -1673.44, 12.73)
Char.SetHeading($scplayer, 81.2)
Streaming.LoadScene(2516.54, -1671.2, 12.87)
Camera.DoFade(1000, Fade.In)
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Text.PrintNow('SWE2_A', 10000, 1)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger($big_smoke, $big_smoke_car, 5000, 0)
Char.SetCantBeDraggedOut($big_smoke, True)
Char.SetStayInCarWhenJacked($big_smoke, True)
44@ = Blip.AddForCar($big_smoke_car)
Blip.SetAsFriendly(44@, True)
35@ = Blip.AddForCoord(2453.07, -2003.96, 12.56)
Blip.Remove(35@)
$blob_flag = 0
80@ = 0
81@ = 0
82@ = 0
39@ = 0
gosub @SWEET2_47
TIMERB = 0
56@ = 0

:SWEET2_1889
if or
  not Car.Locate3D($big_smoke_car, 2453.07, -2003.96, 12.56, 4.0, 4.0, 4.0, $blob_flag)
  not Char.IsSittingInCar($big_smoke, $big_smoke_car)
  not Car.IsOnAllWheels($big_smoke_car)
goto_if_false @SWEET2_2360
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SWEET2_1977
goto @SWEET2_20218

:SWEET2_1977
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_2252
if 
  not Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_2222
if 
  Char.IsInCar($scplayer, $big_smoke_car)
goto_if_false @SWEET2_2123
if 
  45@ == 0
goto_if_false @SWEET2_2090
Blip.Remove(44@)
Blip.Remove(35@)
35@ = Blip.AddForCoord(2453.07, -2003.96, 12.56)
$blob_flag = 1
45@ = 1

:SWEET2_2090
if 
  TIMERB > 5000
goto_if_false @SWEET2_2116
gosub @SWEET2_20914

:SWEET2_2116
goto @SWEET2_2215

:SWEET2_2123
if 
  45@ == 1
goto_if_false @SWEET2_2215
Blip.Remove(35@)
Blip.Remove(44@)
44@ = Blip.AddForCar($big_smoke_car)
Blip.SetAsFriendly(44@, True)
gosub @SWEET2_21159
Text.PrintNow('SWE2_L', 6000, 1)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
$blob_flag = 0
45@ = 0

:SWEET2_2215
goto @SWEET2_2245

:SWEET2_2222
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_2245
goto @SWEET2_2275

:SWEET2_2252
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_2275
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_2314
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_2314
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_2353
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_2353
goto @SWEET2_1889

:SWEET2_2360
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2452.949, -2011.824, 16.3096, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2452.98, -2010.903, 15.9217, SwitchType.JumpCut)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_2582
if 
  not Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_2582
37@ = Sequence.Open()
Task.LeaveCar(-1, $big_smoke_car)
Path.FlushRoute
Path.ExtendRoute(2453.515, -1980.771, 12.5547)
Path.ExtendRoute(2450.486, -1981.659, 12.5547)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Sequence.Close(37@)
Char.PerformSequence($big_smoke, 37@)
Sequence.Clear(37@)
wait 800
if 
  not Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_2582
Task.LeaveCar($scplayer, $big_smoke_car)
Task.GoStraightToCoord($scplayer, 2453.29, -1983.71, 12.54, MoveState.Walk, 5000)

:SWEET2_2582
wait 2000
gosub @SWEET2_22332
Camera.DoFade(1000, Fade.Out)

:SWEET2_2601
if 
  Camera.GetFadingStatus
goto_if_false @SWEET2_2625
wait 0
goto @SWEET2_2601

:SWEET2_2625
Game.SetScriptLimitToGangSize(0)
World.ClearArea(2448.734, -1976.193, 12.5469, 200.0, False)
Player.MakeSafeForCutscene($player1)
Cutscene.Load('SWEET3B')

:SWEET2_2669
if 
  not Cutscene.HasLoaded
goto_if_false @SWEET2_2693
wait 0
goto @SWEET2_2669

:SWEET2_2693
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SWEET2_2702
if 
  not Cutscene.HasFinished
goto_if_false @SWEET2_2726
wait 0
goto @SWEET2_2702

:SWEET2_2726
Camera.DoFade(0, Fade.Out)

:SWEET2_2732
if 
  Camera.GetFadingStatus
goto_if_false @SWEET2_2756
wait 0
goto @SWEET2_2732

:SWEET2_2756
Cutscene.Clear
Streaming.LoadSpecialCharacter(1, 'EMMET')
Streaming.RequestModel(#DYN_WINE_BIG)
Streaming.RequestAnimation("GANGS")
Streaming.RequestAnimation("CRACK")
Streaming.RequestAnimation("COLT45")
Streaming.RequestAnimation("FAT")
Streaming.RequestModel(346)
Streaming.RequestModel(549)
Streaming.LoadAllModelsNow

:SWEET2_2822
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(#DYN_WINE_BIG)
  not Streaming.HasAnimationLoaded("GANGS")
  not Streaming.HasAnimationLoaded("CRACK")
  not Streaming.HasModelLoaded(346)
  not Streaming.HasAnimationLoaded("COLT45")
goto_if_false @SWEET2_2885
wait 0
goto @SWEET2_2822

:SWEET2_2885
if or
  not Streaming.HasModelLoaded(549)
  not Streaming.HasAnimationLoaded("FAT")
goto_if_false @SWEET2_2919
wait 0
goto @SWEET2_2885

:SWEET2_2919
World.ClearArea(2446.49, -1966.47, 12.54, 4.0, True)
Car.CustomPlateForNextCar(549, "_FELTCH_")
83@ = Car.Create(549, 2446.49, -1965.0, 12.54)
Car.SetHeading(83@, 101.85)
Car.LockDoors(83@, CarLock.Locked)
Car.SetProofs(83@, True, True, True, True, True)
63@ = Char.Create(PedType.Mission1, 290, 2451.834, -1976.811, 12.5469)
Char.SetHeading(63@, 75.6292)
Char.SetHealth(63@, 600)
Char.SetNeverTargeted(63@, True)
Char.SetSuffersCriticalHits(63@, False)
Blip.Remove(35@)
41@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Pistol)
Char.GiveWeapon($scplayer, WeaponType.Pistol, 30000)
Char.SetCurrentWeapon($scplayer, WeaponType.Pistol)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_3135
Char.GiveWeapon($big_smoke, WeaponType.Pistol, 10000)
Char.SetCurrentWeapon($big_smoke, WeaponType.Pistol)

:SWEET2_3135
Text.ClearPrints
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetNearClip(0.2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 9840)
Camera.DoFade(1000, Fade.In)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_3220
Char.ClearTasksImmediately($big_smoke)
Char.SetCoordinates($big_smoke, 2450.465, -1980.577, 12.5469)
Char.SetHeading($big_smoke, 79.2792)

:SWEET2_3220
$tag_target[0] = Object.Create(#DYN_WINE_BIG, 89@, 94@, 99@)
Object.SetHeading($tag_target[0], 90.0)
Object.MakeTargetable($tag_target[0], True)
if 
  not Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_3299
Car.SetCoordinates($big_smoke_car, 2452.646, -2003.876, 12.554)
Car.SetHeading($big_smoke_car, 100.2244)

:SWEET2_3299
Camera.SetFixedPosition(2445.797, -1976.585, 14.8864, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2444.983, -1977.151, 14.7514, SwitchType.JumpCut)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET2_3393
Char.SetCoordinates($scplayer, 2453.821, -1978.777, 12.5469)
goto @SWEET2_3413

:SWEET2_3393
Char.WarpFromCarToCoord($scplayer, 2453.821, -1978.777, 12.5469)

:SWEET2_3413
Char.SetHeading($scplayer, 89.5159)
38@ = 0
wait 2500
Camera.SetFixedPosition(2451.365, -1980.395, 14.288, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2450.365, -1980.363, 14.2636, SwitchType.JumpCut)
62@ = 0
54@ = Sequence.Open()
Task.ShootAtCoord(-1, 89@, 94@, 99@, 1300)
Task.PlayAnim(-1, "PRTIAL_GNGTLKH", "GANGS", 4.0, False, False, False, False, -1)
Task.StandStill(-1, 5000)
Task.PlayAnim(-1, "BBALBAT_IDLE_02", "CRACK", 4.0, False, False, False, False, -1)
Task.StandStill(-1, 5000)
Task.PlayAnim(-1, "PRTIAL_GNGTLKD", "GANGS", 4.0, False, False, False, False, -1)
Task.StandStill(-1, 5000)
Sequence.Close(54@)

:SWEET2_3667
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_3732
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_3725
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_3725
goto @SWEET2_3667

:SWEET2_3732
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE3_BC', 10000, 1)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_3783
Char.ShutUpForScriptedSpeech($big_smoke, True)
Char.StartFacialTalk($big_smoke, 3000)

:SWEET2_3783
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_3848
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_3841
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_3841
goto @SWEET2_3783

:SWEET2_3848
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_3884
Text.ClearPrints
Char.StopFacialTalk($big_smoke)
Char.PerformSequence($big_smoke, 54@)
Sequence.Clear(54@)

:SWEET2_3884
84@ = 0

:SWEET2_3891
if 
  36@ <> 1
goto_if_false @SWEET2_4748
wait 0
if 
  Object.DoesExist($tag_target[0])
goto_if_false @SWEET2_4004
if 
  Player.IsTargetingObject($player1, $tag_target[0])
goto_if_false @SWEET2_3962
gosub @SWEET2_20816
goto @SWEET2_3969

:SWEET2_3962
gosub @SWEET2_20869

:SWEET2_3969
if 
  Object.HasBeenDamaged($tag_target[0])
goto_if_false @SWEET2_4004
Object.MakeTargetable($tag_target[0], False)
Object.Delete($tag_target[0])
36@ += 1

:SWEET2_4004
if 
  not Char.LocateOnFoot3D($scplayer, 2448.96, -1973.545, 13.3074, 13.0, 13.0, 10.0, False)
goto_if_false @SWEET2_4154
if 
  38@ == 0
goto_if_false @SWEET2_4147
Blip.Remove(35@)
35@ = Blip.AddForCoord(2451.95, -1978.93, 12.55)
Text.ClearHelp
Text.PrintNow('SWE2_J', 10000, 1)
if 
  Char.HasGotWeapon($scplayer, WeaponType.Pistol)
goto_if_false @SWEET2_4140
Char.SetAmmo($scplayer, WeaponType.Pistol, 10)

:SWEET2_4140
38@ = 1

:SWEET2_4147
goto @SWEET2_4302

:SWEET2_4154
if 
  84@ == 0
goto_if_false @SWEET2_4217
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_4217
Char.RemoveAllWeapons($big_smoke)
Char.GiveWeapon($big_smoke, WeaponType.Pistol, 10000)
Char.SetCurrentWeapon($big_smoke, WeaponType.Pistol)
84@ = 1

:SWEET2_4217
if 
  38@ == 1
goto_if_false @SWEET2_4302
Blip.Remove(35@)
if 
  Char.HasGotWeapon($scplayer, WeaponType.Pistol)
goto_if_false @SWEET2_4268
Char.SetAmmo($scplayer, WeaponType.Pistol, 30000)

:SWEET2_4268
Text.PrintHelpForever('HOOD2A')
Text.PrintNow('SWE2_G', 10000, 1)
38@ = 0

:SWEET2_4302
if 
  62@ == 0
goto_if_false @SWEET2_4624
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_4624
55@ = Char.GetScriptTaskStatus($big_smoke, 1541)
64@ = Char.GetSequenceProgress($big_smoke)
if 
  64@ == 0
goto_if_false @SWEET2_4624
Camera.SetNearClip(0.2)
Camera.SetFixedPosition(2439.859, -1979.678, 14.4278, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2440.833, -1979.794, 14.235, SwitchType.JumpCut)
wait 500
if 
  Object.DoesExist($tag_target[0])
goto_if_false @SWEET2_4459
Object.Break($tag_target[0], 1)

:SWEET2_4459
wait 1000
Char.SetCoordinates($scplayer, 2450.74, -1978.375, 12.5469)
Char.SetHeading($scplayer, 89.5159)
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_4540
Char.SetCoordinates(63@, 2451.834, -1976.811, 12.5469)
Char.SetHeading(63@, 75.6292)

:SWEET2_4540
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
36@ = 0
Object.Delete($tag_target[0])
$tag_target[0] = Object.Create(#DYN_WINE_BIG, 2440.58, -1979.89, 14.2)
Object.SetHeading($tag_target[0], 90.0)
Object.MakeTargetable($tag_target[0], True)
Text.PrintHelpForever('HOOD2A')
62@ = 1

:SWEET2_4624
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_4663
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_4663
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_4702
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_4702
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_4741
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_4741
goto @SWEET2_3891

:SWEET2_4748
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 9812)

:SWEET2_4755
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_4859
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_4813
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_4813
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_4852
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_4852
goto @SWEET2_4755

:SWEET2_4859
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE3_DC', 10000, 1)
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_4953
Char.ShutUpForScriptedSpeech(63@, True)
Char.StartFacialTalk(63@, 3000)
Task.PlayAnim(63@, "PRTIAL_GNGTLKC", "GANGS", 4.0, False, False, False, True, -1)

:SWEET2_4953
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_5057
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_5011
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_5011
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_5050
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_5050
goto @SWEET2_4953

:SWEET2_5057
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_5085
Char.ClearTasks(63@)
Text.ClearPrints
Char.StopFacialTalk(63@)

:SWEET2_5085
Player.SetControl($player1, False)
Player.ClearWantedLevel($player1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 9838)
wait 1000
36@ = 0
wait 1000
Hud.SwitchWidescreen(True)
Camera.SetNearClip(0.2)
Text.ClearHelp
if 
  not Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_5180
Car.SetCoordinates($big_smoke_car, 2452.646, -2003.876, 12.554)
Car.SetHeading($big_smoke_car, 100.2244)

:SWEET2_5180
$tag_target[0] = Object.Create(#DYN_WINE_BIG, 89@, 94@, 99@)
Object.SetHeading($tag_target[0], 90.0)
Object.MakeTargetable($tag_target[0], True)
$tag_target[1] = Object.Create(#DYN_WINE_BIG, 90@, 95@, 100@)
Object.SetHeading($tag_target[1], 90.0)
Object.MakeTargetable($tag_target[1], True)
$tag_target[2] = Object.Create(#DYN_WINE_BIG, 91@, 96@, 101@)
Object.SetHeading($tag_target[2], 90.0)
Object.MakeTargetable($tag_target[2], True)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET2_5322
Char.SetCoordinates($scplayer, 2453.821, -1978.777, 12.5469)
goto @SWEET2_5342

:SWEET2_5322
Char.WarpFromCarToCoord($scplayer, 2453.821, -1978.777, 12.5469)

:SWEET2_5342
Char.SetHeading($scplayer, 89.5159)
Camera.SetFixedPosition(2447.379, -1977.062, 15.2851, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2446.391, -1977.011, 15.1366, SwitchType.JumpCut)
wait 2500
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2451.388, -1981.104, 14.5206, 2451.738, -1980.585, 14.5765, 8000, True)
Camera.SetVectorTrack(2450.427, -1980.924, 14.3127, 2450.858, -1980.187, 14.318, 8000, True)
Char.SetHeading($scplayer, 65.0)
38@ = 0
62@ = 0
60@ = Sequence.Open()
Task.PlayAnim(-1, "BBALBAT_IDLE_02", "CRACK", 4.0, False, False, False, False, -1)
Task.StandStill(-1, 5000)
Task.PlayAnim(-1, "PRTIAL_GNGTLKD", "GANGS", 4.0, False, False, False, False, -1)
Task.StandStill(-1, 5000)
Task.PlayAnim(-1, "PRTIAL_GNGTLKH", "GANGS", 4.0, False, False, False, False, -1)
Task.StandStill(-1, 5000)
Sequence.SetToRepeat(60@, True)
Sequence.Close(60@)
54@ = Sequence.Open()
Task.PlayAnim(-1, "COLT45_FIRE", "COLT45", 4.0, False, False, False, True, 2000)
Task.ShootAtCoord(-1, 89@, 94@, 99@, 1300)
Task.ShootAtCoord(-1, 90@, 95@, 100@, 1300)
Task.ShootAtCoord(-1, 91@, 96@, 101@, 1300)
Char.PerformSequence(-1, 60@)
Sequence.Close(54@)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_5816
Char.PerformSequence($big_smoke, 54@)
Sequence.Clear(54@)

:SWEET2_5816
84@ = 0

:SWEET2_5823
if 
  36@ <> 3
goto_if_false @SWEET2_7111
wait 0
if 
  Object.DoesExist($tag_target(42@,10i))
goto_if_false @SWEET2_5956
if 
  Player.IsTargetingObject($player1, $tag_target(42@,10i))
goto_if_false @SWEET2_5902
gosub @SWEET2_20816
goto @SWEET2_5909

:SWEET2_5902
gosub @SWEET2_20869

:SWEET2_5909
if 
  Object.HasBeenDamaged($tag_target(42@,10i))
goto_if_false @SWEET2_5956
Object.MakeTargetable($tag_target(42@,10i), False)
Object.Delete($tag_target(42@,10i))
36@ += 1

:SWEET2_5956
if 
  not Char.LocateOnFoot3D($scplayer, 2448.96, -1973.545, 13.3074, 13.0, 13.0, 10.0, False)
goto_if_false @SWEET2_6106
if 
  38@ == 0
goto_if_false @SWEET2_6099
Blip.Remove(35@)
35@ = Blip.AddForCoord(2451.95, -1978.93, 12.55)
Text.ClearHelp
Text.PrintNow('SWE2_J', 10000, 1)
if 
  Char.HasGotWeapon($scplayer, WeaponType.Pistol)
goto_if_false @SWEET2_6092
Char.SetAmmo($scplayer, WeaponType.Pistol, 10)

:SWEET2_6092
38@ = 1

:SWEET2_6099
goto @SWEET2_6254

:SWEET2_6106
if 
  84@ == 0
goto_if_false @SWEET2_6169
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_6169
Char.RemoveAllWeapons($big_smoke)
Char.GiveWeapon($big_smoke, WeaponType.Pistol, 10000)
Char.SetCurrentWeapon($big_smoke, WeaponType.Pistol)
84@ = 1

:SWEET2_6169
if 
  38@ == 1
goto_if_false @SWEET2_6254
Blip.Remove(35@)
if 
  Char.HasGotWeapon($scplayer, WeaponType.Pistol)
goto_if_false @SWEET2_6220
Char.SetAmmo($scplayer, WeaponType.Pistol, 30000)

:SWEET2_6220
Text.PrintHelpForever('HOOD2B')
Text.PrintNow('SWE2_H', 10000, 1)
38@ = 0

:SWEET2_6254
if 
  62@ == 0
goto_if_false @SWEET2_6955
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_6955
55@ = Char.GetScriptTaskStatus($big_smoke, 1541)
64@ = Char.GetSequenceProgress($big_smoke)
if 
  64@ == 1
goto_if_false @SWEET2_6353
wait 700
if 
  Object.DoesExist($tag_target[0])
goto_if_false @SWEET2_6353
Object.Break($tag_target[0], 1)

:SWEET2_6353
if 
  64@ == 2
goto_if_false @SWEET2_6399
wait 500
if 
  Object.DoesExist($tag_target[1])
goto_if_false @SWEET2_6399
Object.Break($tag_target[1], 1)

:SWEET2_6399
if 
  64@ == 3
goto_if_false @SWEET2_6955

:SWEET2_6417
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET2_6482
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_6475
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_6475
goto @SWEET2_6417

:SWEET2_6482
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SWE3_BA', 10000, 1)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_6533
Char.ShutUpForScriptedSpeech($big_smoke, True)
Char.StartFacialTalk($big_smoke, 3000)

:SWEET2_6533
wait 500
if 
  Object.DoesExist($tag_target[2])
goto_if_false @SWEET2_6561
Object.Break($tag_target[2], 1)

:SWEET2_6561
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET2_6626
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_6619
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_6619
goto @SWEET2_6561

:SWEET2_6626
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_6649
Text.ClearPrints
Char.StopFacialTalk($big_smoke)

:SWEET2_6649
wait 1000
Char.SetCoordinates($scplayer, 2450.74, -1978.375, 12.5469)
Char.SetHeading($scplayer, 89.5159)
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_6730
Char.SetCoordinates(63@, 2451.834, -1976.811, 12.5469)
Char.SetHeading(63@, 75.6292)

:SWEET2_6730
Camera.ResetNewScriptables
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Text.PrintHelpForever('HOOD2B')
36@ = 0
if 
  Object.DoesExist($tag_target[0])
goto_if_false @SWEET2_6788
Object.MakeTargetable($tag_target[0], False)

:SWEET2_6788
Object.Delete($tag_target[0])
$tag_target[0] = Object.Create(#DYN_WINE_BIG, 89@, 94@, 99@)
Object.SetHeading($tag_target[0], 90.0)
Object.MakeTargetable($tag_target[0], True)
if 
  Object.DoesExist($tag_target[1])
goto_if_false @SWEET2_6849
Object.MakeTargetable($tag_target[1], False)

:SWEET2_6849
Object.Delete($tag_target[1])
$tag_target[1] = Object.Create(#DYN_WINE_BIG, 90@, 95@, 100@)
Object.SetHeading($tag_target[1], 90.0)
Object.MakeTargetable($tag_target[1], True)
if 
  Object.DoesExist($tag_target[2])
goto_if_false @SWEET2_6910
Object.MakeTargetable($tag_target[2], False)

:SWEET2_6910
Object.Delete($tag_target[2])
$tag_target[2] = Object.Create(#DYN_WINE_BIG, 91@, 96@, 101@)
Object.SetHeading($tag_target[2], 90.0)
Object.MakeTargetable($tag_target[2], True)
62@ = 1

:SWEET2_6955
42@ += 1
if 
  42@ >= 3
goto_if_false @SWEET2_6987
42@ = 0

:SWEET2_6987
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_7026
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_7026
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_7065
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_7065
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_7104
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_7104
goto @SWEET2_5823

:SWEET2_7111
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 9810)

:SWEET2_7118
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_7222
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_7176
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_7176
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_7215
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_7215
goto @SWEET2_7118

:SWEET2_7222
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE3_DA', 10000, 1)
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_7316
Char.ShutUpForScriptedSpeech(63@, True)
Char.StartFacialTalk(63@, 3000)
Task.PlayAnim(63@, "PRTIAL_GNGTLKC", "GANGS", 4.0, False, False, False, True, -1)

:SWEET2_7316
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_7420
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_7374
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_7374
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_7413
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_7413
goto @SWEET2_7316

:SWEET2_7420
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_7448
Char.ClearTasks(63@)
Text.ClearPrints
Char.StopFacialTalk(63@)

:SWEET2_7448
Player.SetControl($player1, False)
Player.ClearWantedLevel($player1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 9841)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 9842)
wait 1000
36@ = 0
wait 1000
Hud.SwitchWidescreen(True)
Camera.SetNearClip(0.2)
Text.ClearHelp
if 
  not Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_7550
Car.SetCoordinates($big_smoke_car, 2452.646, -2003.876, 12.554)
Car.SetHeading($big_smoke_car, 100.2244)

:SWEET2_7550
89@ = 2440.58
94@ = -1979.89
99@ = 14.1
90@ = 2440.14
95@ = -1976.5
100@ = 13.4
91@ = 2440.66
96@ = -1973.76
101@ = 14.1
92@ = 2448.97
97@ = -1973.29
102@ = 13.3
93@ = 2444.35
98@ = -1970.61
103@ = 13.7
$tag_target[0] = Object.Create(#DYN_WINE_BIG, 89@, 94@, 99@)
Object.SetHeading($tag_target[0], 90.0)
Object.MakeTargetable($tag_target[0], True)
$tag_target[1] = Object.Create(#DYN_WINE_BIG, 90@, 95@, 100@)
Object.SetHeading($tag_target[1], 90.0)
Object.MakeTargetable($tag_target[1], True)
$tag_target[2] = Object.Create(#DYN_WINE_BIG, 91@, 96@, 101@)
Object.SetHeading($tag_target[2], 90.0)
Object.MakeTargetable($tag_target[2], True)
$tag_target[3] = Object.Create(#DYN_WINE_BIG, 92@, 97@, 102@)
Object.SetHeading($tag_target[3], 90.0)
Object.MakeTargetable($tag_target[3], True)
$tag_target[4] = Object.Create(#DYN_WINE_BIG, 93@, 98@, 103@)
Object.SetHeading($tag_target[4], 90.0)
Object.MakeTargetable($tag_target[4], True)
Camera.SetFixedPosition(2453.755, -1978.959, 15.389, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2452.837, -1978.611, 15.1996, SwitchType.JumpCut)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET2_7959
Char.SetCoordinates($scplayer, 2453.821, -1978.777, 12.5469)
goto @SWEET2_7979

:SWEET2_7959
Char.WarpFromCarToCoord($scplayer, 2453.821, -1978.777, 12.5469)

:SWEET2_7979
Char.SetHeading($scplayer, 89.5159)
wait 2500
Camera.SetFixedPosition(2449.041, -1977.732, 12.9667, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2449.835, -1978.326, 13.0934, SwitchType.JumpCut)
Char.SetHeading($scplayer, 65.0)
38@ = 0
62@ = 0
Sequence.Clear(60@)
59@ = Sequence.Open()
Task.StandStill(-1, 5000)
Task.PlayAnim(-1, "BBALBAT_IDLE_02", "CRACK", 4.0, False, False, False, False, -1)
Task.StandStill(-1, 5000)
Task.PlayAnim(-1, "PRTIAL_GNGTLKH", "GANGS", 4.0, False, False, False, False, -1)
Task.StandStill(-1, 5000)
Task.PlayAnim(-1, "PRTIAL_GNGTLKD", "GANGS", 4.0, False, False, False, False, -1)
Sequence.SetToRepeat(59@, True)
Sequence.Close(59@)
60@ = Sequence.Open()
Task.AchieveHeading(-1, 77.0)
Task.PlayAnim(-1, "IDLE_TIRED", "FAT", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "IDLE_TIRED", "FAT", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "IDLE_TIRED", "FAT", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "IDLE_TIRED", "FAT", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "IDLE_TIRED", "FAT", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "IDLE_TIRED", "FAT", 4.0, False, False, False, False, -1)
Char.PerformSequence(-1, 59@)
Sequence.Close(60@)
58@ = Sequence.Open()
Task.ToggleDuck(-1, False)
Task.GoStraightToCoord(-1, 2450.48, -1981.65, 12.55, MoveState.Walk, 4000)
Char.PerformSequence(-1, 60@)
Sequence.Close(58@)
54@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.PlayAnim(-1, "CROUCH_ROLL_R", "PED", 4.0, False, True, True, False, -1)
Task.ShootAtCoord(-1, 89@, 94@, 99@, 1400)
Task.ShootAtCoord(-1, 90@, 95@, 100@, 1400)
Task.ShootAtCoord(-1, 91@, 96@, 101@, 1400)
Task.ShootAtCoord(-1, 92@, 97@, 102@, 1400)
Task.ShootAtCoord(-1, 93@, 98@, 103@, 1400)
Char.PerformSequence(-1, 58@)
Sequence.Close(54@)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_8699
Char.PerformSequence($big_smoke, 54@)
Sequence.Clear(54@)

:SWEET2_8699
40@ = 0
84@ = 0

:SWEET2_8713
if 
  36@ <> 5
goto_if_false @SWEET2_11713
wait 0
if 
  Object.DoesExist($tag_target(42@,10i))
goto_if_false @SWEET2_8846
if 
  Player.IsTargetingObject($player1, $tag_target(42@,10i))
goto_if_false @SWEET2_8792
gosub @SWEET2_20816
goto @SWEET2_8799

:SWEET2_8792
gosub @SWEET2_20869

:SWEET2_8799
if 
  Object.HasBeenDamaged($tag_target(42@,10i))
goto_if_false @SWEET2_8846
Object.MakeTargetable($tag_target(42@,10i), False)
Object.Delete($tag_target(42@,10i))
36@ += 1

:SWEET2_8846
if 
  not Char.LocateOnFoot3D($scplayer, 2448.96, -1973.545, 13.3074, 13.0, 13.0, 10.0, False)
goto_if_false @SWEET2_8996
if 
  38@ == 0
goto_if_false @SWEET2_8989
Blip.Remove(35@)
35@ = Blip.AddForCoord(2451.95, -1978.93, 12.55)
Text.ClearHelp
Text.PrintNow('SWE2_J', 10000, 1)
if 
  Char.HasGotWeapon($scplayer, WeaponType.Pistol)
goto_if_false @SWEET2_8982
Char.SetAmmo($scplayer, WeaponType.Pistol, 10)

:SWEET2_8982
38@ = 1

:SWEET2_8989
goto @SWEET2_9125

:SWEET2_8996
if 
  84@ == 0
goto_if_false @SWEET2_9059
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_9059
Char.RemoveAllWeapons($big_smoke)
Char.GiveWeapon($big_smoke, WeaponType.Pistol, 10000)
Char.SetCurrentWeapon($big_smoke, WeaponType.Pistol)
84@ = 1

:SWEET2_9059
if 
  38@ == 1
goto_if_false @SWEET2_9125
Blip.Remove(35@)
Char.GiveWeapon($scplayer, WeaponType.Pistol, 10)
Text.PrintHelpForever('HOOD2F')
Text.PrintNow('SWE2_I', 10000, 1)
38@ = 0

:SWEET2_9125
if 
  62@ == 0
goto_if_false @SWEET2_11557
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_11557
55@ = Char.GetScriptTaskStatus($big_smoke, 1541)
64@ = Char.GetSequenceProgress($big_smoke)
if 
  64@ == 2
goto_if_false @SWEET2_9511
Camera.SetFixedPosition(2452.865, -1977.859, 13.739, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2451.901, -1978.117, 13.6752, SwitchType.JumpCut)
if 
  40@ == 0
goto_if_false @SWEET2_9511

:SWEET2_9265
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_9330
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_9323
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_9323
goto @SWEET2_9265

:SWEET2_9330
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE3_BD', 10000, 1)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_9381
Char.ShutUpForScriptedSpeech($big_smoke, True)
Char.StartFacialTalk($big_smoke, 3000)

:SWEET2_9381
wait 500
if 
  Object.DoesExist($tag_target[0])
goto_if_false @SWEET2_9409
Object.Break($tag_target[0], 1)

:SWEET2_9409
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_9474
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_9467
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_9467
goto @SWEET2_9409

:SWEET2_9474
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_9497
Text.ClearPrints
Char.StopFacialTalk($big_smoke)

:SWEET2_9497
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 9843)
40@ = 1

:SWEET2_9511
if 
  64@ == 3
goto_if_false @SWEET2_9852
Camera.SetFixedPosition(2452.979, -1980.734, 13.866, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2452.089, -1980.282, 13.8231, SwitchType.JumpCut)
if 
  40@ == 1
goto_if_false @SWEET2_9852

:SWEET2_9598
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET2_9663
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_9656
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_9656
goto @SWEET2_9598

:SWEET2_9663
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SWE3_BE', 10000, 1)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_9714
Char.ShutUpForScriptedSpeech($big_smoke, True)
Char.StartFacialTalk($big_smoke, 3000)

:SWEET2_9714
wait 500
if 
  Object.DoesExist($tag_target[1])
goto_if_false @SWEET2_9742
Object.Break($tag_target[1], 1)

:SWEET2_9742
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET2_9807
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_9800
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_9800
goto @SWEET2_9742

:SWEET2_9807
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_9838
Char.ShutUpForScriptedSpeech($big_smoke, True)
Char.StartFacialTalk($big_smoke, 3000)

:SWEET2_9838
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 9844)
40@ = 2

:SWEET2_9852
if 
  64@ == 4
goto_if_false @SWEET2_10248
Camera.SetFixedPosition(2453.303, -1979.46, 14.432, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2452.354, -1979.243, 14.2053, SwitchType.JumpCut)
if 
  84@ == 1
goto_if_false @SWEET2_9984
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_9984
Char.RemoveAllWeapons($big_smoke)
Char.GiveWeapon($big_smoke, WeaponType.Pistol, 10000)
Char.SetCurrentWeapon($big_smoke, WeaponType.Pistol)
84@ = 2

:SWEET2_9984
if 
  40@ == 2
goto_if_false @SWEET2_10248

:SWEET2_10002
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_10067
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_10060
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_10060
goto @SWEET2_10002

:SWEET2_10067
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE3_BF', 10000, 1)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_10118
Char.ShutUpForScriptedSpeech($big_smoke, True)
Char.StartFacialTalk($big_smoke, 3000)

:SWEET2_10118
wait 500
if 
  Object.DoesExist($tag_target[2])
goto_if_false @SWEET2_10146
Object.Break($tag_target[2], 1)

:SWEET2_10146
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_10211
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_10204
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_10204
goto @SWEET2_10146

:SWEET2_10211
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_10234
Text.ClearPrints
Char.StopFacialTalk($big_smoke)

:SWEET2_10234
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 9839)
40@ = 3

:SWEET2_10248
if 
  64@ == 5
goto_if_false @SWEET2_10581
Camera.SetFixedPosition(2449.363, -1971.914, 13.768, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2449.492, -1972.896, 13.6288, SwitchType.JumpCut)
if 
  40@ == 3
goto_if_false @SWEET2_10581

:SWEET2_10335
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET2_10400
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_10393
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_10393
goto @SWEET2_10335

:SWEET2_10400
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SWE3_BG', 10000, 1)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_10451
Char.ShutUpForScriptedSpeech($big_smoke, True)
Char.StartFacialTalk($big_smoke, 3000)

:SWEET2_10451
wait 500
if 
  Object.DoesExist($tag_target[3])
goto_if_false @SWEET2_10479
Object.Break($tag_target[3], 1)

:SWEET2_10479
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET2_10544
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_10537
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_10537
goto @SWEET2_10479

:SWEET2_10544
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 9873)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_10574
Text.ClearPrints
Char.StopFacialTalk($big_smoke)

:SWEET2_10574
40@ = 4

:SWEET2_10581
if 
  64@ == 6
goto_if_false @SWEET2_11557
Camera.SetFixedPosition(2442.503, -1967.336, 14.1262, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2443.092, -1968.133, 13.9918, SwitchType.JumpCut)
if 
  84@ == 2
goto_if_false @SWEET2_10713
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_10713
Char.RemoveAllWeapons($big_smoke)
Char.GiveWeapon($big_smoke, WeaponType.Pistol, 10000)
Char.SetCurrentWeapon($big_smoke, WeaponType.Pistol)
84@ = 3

:SWEET2_10713
if 
  40@ == 4
goto_if_false @SWEET2_10970

:SWEET2_10731
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_10796
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_10789
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_10789
goto @SWEET2_10731

:SWEET2_10796
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE3_BB', 10000, 1)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_10847
Char.ShutUpForScriptedSpeech($big_smoke, True)
Char.StartFacialTalk($big_smoke, 3000)

:SWEET2_10847
wait 500
if 
  Object.DoesExist($tag_target[4])
goto_if_false @SWEET2_10875
Object.Break($tag_target[4], 1)

:SWEET2_10875
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_10940
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_10933
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_10933
goto @SWEET2_10875

:SWEET2_10940
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_10963
Text.ClearPrints
Char.StopFacialTalk($big_smoke)

:SWEET2_10963
40@ = 5

:SWEET2_10970
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET2_11035
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_11028
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_11028
goto @SWEET2_10970

:SWEET2_11035
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SWE3_ZZ', 10000, 1)

:SWEET2_11055
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET2_11120
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_11113
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_11113
goto @SWEET2_11055

:SWEET2_11120
Text.PrintNow('SWE2_I', 10000, 1)
Char.SetCoordinates($scplayer, 2450.74, -1978.375, 12.5469)
Char.SetHeading($scplayer, 89.5159)
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_11212
Char.SetCoordinates(63@, 2451.834, -1976.811, 12.5469)
Char.SetHeading(63@, 75.6292)

:SWEET2_11212
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Text.PrintHelpForever('HOOD2F')
36@ = 0
if 
  Object.DoesExist($tag_target[0])
goto_if_false @SWEET2_11268
Object.MakeTargetable($tag_target[0], False)

:SWEET2_11268
Object.Delete($tag_target[0])
$tag_target[0] = Object.Create(#DYN_WINE_BIG, 89@, 94@, 99@)
Object.SetHeading($tag_target[0], 90.0)
Object.MakeTargetable($tag_target[0], True)
if 
  Object.DoesExist($tag_target[1])
goto_if_false @SWEET2_11329
Object.MakeTargetable($tag_target[1], False)

:SWEET2_11329
Object.Delete($tag_target[1])
$tag_target[1] = Object.Create(#DYN_WINE_BIG, 90@, 95@, 100@)
Object.SetHeading($tag_target[1], 90.0)
Object.MakeTargetable($tag_target[1], True)
if 
  Object.DoesExist($tag_target[2])
goto_if_false @SWEET2_11390
Object.MakeTargetable($tag_target[2], False)

:SWEET2_11390
Object.Delete($tag_target[2])
$tag_target[2] = Object.Create(#DYN_WINE_BIG, 91@, 96@, 101@)
Object.SetHeading($tag_target[2], 90.0)
Object.MakeTargetable($tag_target[2], True)
if 
  Object.DoesExist($tag_target[3])
goto_if_false @SWEET2_11451
Object.MakeTargetable($tag_target[3], False)

:SWEET2_11451
Object.Delete($tag_target[3])
$tag_target[3] = Object.Create(#DYN_WINE_BIG, 92@, 97@, 102@)
Object.SetHeading($tag_target[3], 90.0)
Object.MakeTargetable($tag_target[3], True)
if 
  Object.DoesExist($tag_target[4])
goto_if_false @SWEET2_11512
Object.MakeTargetable($tag_target[4], False)

:SWEET2_11512
Object.Delete($tag_target[4])
$tag_target[4] = Object.Create(#DYN_WINE_BIG, 93@, 98@, 103@)
Object.SetHeading($tag_target[4], 90.0)
Object.MakeTargetable($tag_target[4], True)
62@ = 1

:SWEET2_11557
42@ += 1
if 
  42@ >= 5
goto_if_false @SWEET2_11589
42@ = 0

:SWEET2_11589
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_11628
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_11628
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_11667
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_11667
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_11706
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_11706
goto @SWEET2_8713

:SWEET2_11713
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 9816)

:SWEET2_11720
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_11824
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_11778
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_11778
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_11817
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_11817
goto @SWEET2_11720

:SWEET2_11824
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE3_DG', 10000, 1)
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_11918
Char.ShutUpForScriptedSpeech(63@, True)
Char.StartFacialTalk(63@, 3000)
Task.PlayAnim(63@, "PRTIAL_GNGTLKC", "GANGS", 4.0, False, False, False, True, -1)

:SWEET2_11918
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_12022
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_11976
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_11976
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_12015
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_12015
goto @SWEET2_11918

:SWEET2_12022
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_12050
Char.ClearTasks(63@)
Text.ClearPrints
Char.StopFacialTalk(63@)

:SWEET2_12050
Player.ClearWantedLevel($player1)
Player.SetControl($player1, False)
wait 1000
36@ = 0
wait 1000
Hud.SwitchWidescreen(True)
Camera.SetNearClip(0.2)
Text.ClearHelp
if 
  not Car.IsDead(83@)
goto_if_false @SWEET2_12189
Car.SetCoordinates(83@, 2446.49, -1966.47, 12.54)
Car.SetHeading(83@, 101.85)
Camera.SetFixedPosition(2447.223, -1971.385, 14.5714, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2447.07, -1970.434, 14.2998, SwitchType.JumpCut)

:SWEET2_12189
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_12235
Char.SetCoordinates(63@, 2452.69, -1980.218, 12.5469)
Char.SetHeading(63@, 44.7926)

:SWEET2_12235
if 
  not Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_12281
Car.SetCoordinates($big_smoke_car, 2452.646, -2003.876, 12.554)
Car.SetHeading($big_smoke_car, 100.2244)

:SWEET2_12281
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET2_12324
Char.SetCoordinates($scplayer, 2446.11, -1974.53, 12.54)
goto @SWEET2_12344

:SWEET2_12324
Char.WarpFromCarToCoord($scplayer, 2446.11, -1974.53, 12.54)

:SWEET2_12344
Char.SetHeading($scplayer, 349.81)
Text.PrintNow('SWE2_F', 10000, 1)
if 
  not Car.IsDead(83@)
goto_if_false @SWEET2_12447
wait 3000
Camera.SetFixedPosition(2448.249, -1968.608, 13.7351, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2447.919, -1967.707, 13.4528, SwitchType.JumpCut)
wait 2000

:SWEET2_12447
Text.PrintHelpForever('HOOD2C')
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
38@ = 0
62@ = 0

:SWEET2_12487
if 
  not Car.IsDead(83@)
goto_if_false @SWEET2_13007
wait 0
if 
  not Char.LocateOnFoot3D($scplayer, 2451.95, -1978.93, 12.55, 13.0, 13.0, 10.0, False)
goto_if_false @SWEET2_12657
if 
  38@ == 0
goto_if_false @SWEET2_12650
Blip.Remove(35@)
35@ = Blip.AddForCoord(2451.95, -1978.93, 12.55)
Text.ClearHelp
Text.PrintNow('SWE2_J', 10000, 1)
if 
  Char.HasGotWeapon($scplayer, WeaponType.Pistol)
goto_if_false @SWEET2_12643
Char.SetAmmo($scplayer, WeaponType.Pistol, 10)

:SWEET2_12643
38@ = 1

:SWEET2_12650
goto @SWEET2_12742

:SWEET2_12657
if 
  38@ == 1
goto_if_false @SWEET2_12742
Blip.Remove(35@)
if 
  Char.HasGotWeapon($scplayer, WeaponType.Pistol)
goto_if_false @SWEET2_12708
Char.SetAmmo($scplayer, WeaponType.Pistol, 30000)

:SWEET2_12708
Text.PrintHelpForever('HOOD2C')
Text.PrintNow('SWE2_F', 10000, 1)
38@ = 0

:SWEET2_12742
if 
  62@ == 0
goto_if_false @SWEET2_12883
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_12883
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_12830
Char.SetProofs(63@, False, False, True, False, False)
Char.SetHealth(63@, 600)

:SWEET2_12830
if 
  not Car.IsDead(83@)
goto_if_false @SWEET2_12861
Car.SetProofs(83@, False, False, False, False, False)

:SWEET2_12861
Char.SetProofs($scplayer, False, False, True, False, False)
62@ = 1

:SWEET2_12883
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_12922
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_12922
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_12961
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_12961
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_13000
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_13000
goto @SWEET2_12487

:SWEET2_13007
Text.ClearHelp
Player.ClearWantedLevel($player1)
Streaming.MarkModelAsNoLongerNeeded(549)
wait 2000
Player.ClearWantedLevel($player1)
Camera.DoFade(500, Fade.Out)

:SWEET2_13036
if 
  Camera.GetFadingStatus
goto_if_false @SWEET2_13060
wait 0
goto @SWEET2_13036

:SWEET2_13060
Streaming.LoadSceneInDirection(2450.567, -1975.641, 12.5469, 288.0)
Char.SetProofs($scplayer, False, False, False, False, False)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetNearClip(0.2)
Streaming.RequestAnimation("GANGS")

:SWEET2_13131
if 
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @SWEET2_13162
wait 0
goto @SWEET2_13131

:SWEET2_13162
80@ = 0
81@ = 0
82@ = 0
39@ = 1
gosub @SWEET2_47
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET2_13240
Char.SetCoordinates($scplayer, 2450.567, -1975.641, 12.5469)
goto @SWEET2_13260

:SWEET2_13240
Char.WarpFromCarToCoord($scplayer, 2450.567, -1975.641, 12.5469)

:SWEET2_13260
Char.SetHeading($scplayer, 288.25)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_13402
Char.SetCoordinates($big_smoke, 2452.741, -1976.45, 12.5469)
Char.SetHeading($big_smoke, 345.3302)
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_13402
Char.SetHealth(63@, 600)
Char.SetCoordinates(63@, 2452.846, -1975.1, 12.5469)
Char.SetHeading(63@, 160.25)
Task.TurnCharToFaceChar($big_smoke, $scplayer)
Task.TurnCharToFaceChar(63@, $scplayer)
Char.ClearLookAt(63@)
Task.LookAtChar(63@, $scplayer, 30000)

:SWEET2_13402
if 
  not Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_13448
Car.SetCoordinates($big_smoke_car, 2452.646, -2003.876, 12.554)
Car.SetHeading($big_smoke_car, 100.2244)

:SWEET2_13448
World.ClearArea(2453.029, -2001.059, 12.554, 30.0, True)
Text.ClearHelp
Text.ClearPrints
Camera.DoFade(500, Fade.In)
Camera.SetFixedPosition(2450.107, -1977.553, 14.0919, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2450.777, -1976.838, 13.8915, SwitchType.JumpCut)
82@ = 0

:SWEET2_13541
if 
  80@ <> 1
goto_if_false @SWEET2_13796
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_13672
if 
  81@ == 2
goto_if_false @SWEET2_13672
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_13672
Task.PlayAnim($big_smoke, "PRTIAL_GNGTLKC", "GANGS", 4.0, False, False, False, True, -1)
82@ = 1

:SWEET2_13672
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_13711
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_13711
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_13750
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_13750
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_13789
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_13789
goto @SWEET2_13541

:SWEET2_13796
88@ = 0
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
World.ClearArea(2452.646, -2003.876, 12.554, 50.0, True)
skip_cutscene_start_internal @SWEET2_17017
82@ = 0

:SWEET2_13855
if 
  80@ <> 2
goto_if_false @SWEET2_14067
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_13943
if 
  81@ == 2
goto_if_false @SWEET2_13943
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_13943
82@ = 1

:SWEET2_13943
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_13982
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_13982
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_14021
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_14021
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_14060
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_14060
goto @SWEET2_13855

:SWEET2_14067
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_14088
Char.StopFacialTalk($big_smoke)

:SWEET2_14088
82@ = 0

:SWEET2_14095
if 
  80@ <> 3
goto_if_false @SWEET2_14307
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_14183
if 
  81@ == 2
goto_if_false @SWEET2_14183
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_14183
82@ = 1

:SWEET2_14183
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_14222
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_14222
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_14261
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_14261
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_14300
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_14300
goto @SWEET2_14095

:SWEET2_14307
82@ = 0

:SWEET2_14314
if 
  80@ <> 4
goto_if_false @SWEET2_14526
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_14402
if 
  81@ == 2
goto_if_false @SWEET2_14402
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_14402
82@ = 1

:SWEET2_14402
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_14441
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_14441
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_14480
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_14480
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_14519
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_14519
goto @SWEET2_14314

:SWEET2_14526
82@ = 0

:SWEET2_14533
if 
  80@ <> 5
goto_if_false @SWEET2_14745
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_14621
if 
  81@ == 2
goto_if_false @SWEET2_14621
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_14621
82@ = 1

:SWEET2_14621
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_14660
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_14660
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_14699
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_14699
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_14738
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_14738
goto @SWEET2_14533

:SWEET2_14745
Task.GoStraightToCoord($scplayer, 2452.642, -1998.219, 12.554, MoveState.Walk, 20000)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_14811
Task.GoStraightToCoord($big_smoke, 2454.951, -1998.658, 12.554, MoveState.Walk, 20000)

:SWEET2_14811
82@ = 0

:SWEET2_14818
if 
  80@ <> 6
goto_if_false @SWEET2_15030
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_14906
if 
  81@ == 2
goto_if_false @SWEET2_14906
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_14906
82@ = 1

:SWEET2_14906
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_14945
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_14945
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_14984
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_14984
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_15023
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_15023
goto @SWEET2_14818

:SWEET2_15030
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_15083
Task.GoStraightToCoord(63@, 2453.321, -1987.714, 12.5469, MoveState.Walk, 20000)
Char.SetAnimGroup(63@, "GANG1")

:SWEET2_15083
Char.SetCoordinates($scplayer, 2452.079, -1978.844, 12.5469)
Char.SetHeading($scplayer, 180.0)
Char.ClearTasks($scplayer)
Task.GoStraightToCoord($scplayer, 2452.642, -1998.219, 12.554, MoveState.Walk, 20000)
82@ = 0

:SWEET2_15150
if 
  80@ <> 7
goto_if_false @SWEET2_15362
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_15238
if 
  81@ == 2
goto_if_false @SWEET2_15238
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_15238
82@ = 1

:SWEET2_15238
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_15277
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_15277
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_15316
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_15316
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_15355
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_15355
goto @SWEET2_15150

:SWEET2_15362
Camera.SetFixedPosition(2453.588, -1992.36, 14.707, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2453.538, -1991.412, 14.3914, SwitchType.JumpCut)
82@ = 0

:SWEET2_15420
if 
  80@ <> 8
goto_if_false @SWEET2_15632
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_15508
if 
  81@ == 2
goto_if_false @SWEET2_15508
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_15508
82@ = 1

:SWEET2_15508
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_15547
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_15547
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_15586
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_15586
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_15625
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_15625
goto @SWEET2_15420

:SWEET2_15632
82@ = 0

:SWEET2_15639
if 
  80@ <> 9
goto_if_false @SWEET2_15851
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_15727
if 
  81@ == 2
goto_if_false @SWEET2_15727
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_15727
82@ = 1

:SWEET2_15727
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_15766
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_15766
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_15805
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_15805
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_15844
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_15844
goto @SWEET2_15639

:SWEET2_15851
82@ = 0

:SWEET2_15858
if 
  80@ <> 10
goto_if_false @SWEET2_16113
wait 0
gosub @SWEET2_20914
if 
  82@ == 0
goto_if_false @SWEET2_15989
if 
  81@ == 2
goto_if_false @SWEET2_15989
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_15989
Task.PlayAnim(63@, "PRTIAL_GNGTLKC", "GANGS", 4.0, False, False, False, True, -1)
82@ = 1

:SWEET2_15989
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_16028
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_16028
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_16067
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_16067
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_16106
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_16106
goto @SWEET2_15858

:SWEET2_16113
if 
  80@ <> 11
goto_if_false @SWEET2_16266
wait 0
gosub @SWEET2_20914
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_16181
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_16181
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_16220
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_16220
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_16259
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_16259
goto @SWEET2_16113

:SWEET2_16266
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_16287
Char.ClearTasks(63@)

:SWEET2_16287
World.ClearArea(2453.029, -2001.059, 12.554, 10.0, True)
Camera.SetFixedPosition(2453.569, -1992.405, 16.0824, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2453.603, -1993.318, 15.6741, SwitchType.JumpCut)
if 
  not Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_16430
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_16430
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger($big_smoke, $big_smoke_car, 50000, 0)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsDriver($scplayer, $big_smoke_car, 50000)

:SWEET2_16430
if 
  80@ <> 12
goto_if_false @SWEET2_16583
wait 0
gosub @SWEET2_20914
if 
  Char.IsDead(63@)
goto_if_false @SWEET2_16498
Text.PrintNow('SWE2_K', 10000, 1)
goto @SWEET2_20129

:SWEET2_16498
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_16537
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_16537
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_16576
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_16576
goto @SWEET2_16430

:SWEET2_16583
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_16731
if 
  not Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_16731

:SWEET2_16615
if or
  not Char.IsSittingInCar($scplayer, $big_smoke_car)
  not Char.IsSittingInCar($big_smoke, $big_smoke_car)
goto_if_false @SWEET2_16731
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_16685
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_16685
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_16724
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_16724
goto @SWEET2_16615

:SWEET2_16731
Camera.SetFixedPosition(2456.758, -1999.253, 15.2969, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2456.231, -2000.027, 14.947, SwitchType.JumpCut)

:SWEET2_16782
if 
  80@ <> 13
goto_if_false @SWEET2_16896
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_16843
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_16843
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_16882
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_16882
gosub @SWEET2_20914
goto @SWEET2_16782

:SWEET2_16896
if 
  80@ <> 14
goto_if_false @SWEET2_17010
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_16957
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_16957
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_16996
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_16996
gosub @SWEET2_20914
goto @SWEET2_16896

:SWEET2_17010
88@ = 1

:SWEET2_17017
skip_cutscene_end 
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
if 
  88@ == 0
goto_if_false @SWEET2_17199
Text.ClearPrints
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.Out)

:SWEET2_17068
if 
  Camera.GetFadingStatus
goto_if_false @SWEET2_17092
wait 0
goto @SWEET2_17068

:SWEET2_17092
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Camera.ResetNewScriptables
if 
  not Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_17188
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_17188
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET2_17162
Char.WarpIntoCar($scplayer, $big_smoke_car)

:SWEET2_17162
if 
  not Char.IsInAnyCar($big_smoke)
goto_if_false @SWEET2_17188
Char.WarpIntoCarAsPassenger($big_smoke, $big_smoke_car, 0)

:SWEET2_17188
wait 100
Camera.DoFade(500, Fade.In)

:SWEET2_17199
Char.Delete(63@)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Game.SetScriptLimitToGangSize(99)
41@ += 60
if 
  Char.HasGotWeapon($scplayer, WeaponType.Pistol)
goto_if_false @SWEET2_17258
Char.SetAmmo($scplayer, WeaponType.Pistol, 41@)

:SWEET2_17258
Text.PrintNow('SWE2_D', 10000, 1)
if 
  not Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_17315
Blip.Remove(35@)
Blip.Remove(44@)
44@ = Blip.AddForCar($big_smoke_car)
Blip.SetAsFriendly(44@, True)

:SWEET2_17315
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_17351
46@ = Blip.AddForChar($big_smoke)
Blip.SetAsFriendly(46@, True)
Blip.Remove(46@)

:SWEET2_17351
35@ = Blip.AddForCoord(2066.465, -1695.444, 12.5547)
Blip.Remove(35@)
$blob_flag = 1
47@ = 0
45@ = 0
38@ = 0
61@ = 0
53@ = 0
TIMERA = 0
TIMERB = 0
80@ = 0
81@ = 0
82@ = 0
39@ = 2
gosub @SWEET2_47
gosub @SWEET2_22589
56@ = 0
Weather.Release
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("CRACK")
Streaming.RemoveAnimation("COLT45")
Streaming.RemoveAnimation("FAT")
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(#DYN_WINE_BIG)
Streaming.MarkModelAsNoLongerNeeded(549)
Streaming.UnloadSpecialCharacter(1)

:SWEET2_17536
if or
  not Car.Locate3D($big_smoke_car, 2066.465, -1695.444, 12.5547, 4.0, 4.0, 4.0, $blob_flag)
  not Char.IsSittingInCar($big_smoke, $big_smoke_car)
  not Car.IsOnAllWheels($big_smoke_car)
goto_if_false @SWEET2_18306
wait 0
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET2_17811
if 
  TIMERA > 5000
goto_if_false @SWEET2_17680
if 
  53@ == 1
goto_if_false @SWEET2_17680
Text.PrintHelp('HELP53')
TIMERA = 0
53@ = 2

:SWEET2_17680
if 
  TIMERA > 5000
goto_if_false @SWEET2_17742
if 
  53@ == 2
goto_if_false @SWEET2_17742
Text.PrintHelp('HOOD2D')
TIMERA = 0
53@ = 3

:SWEET2_17742
if 
  TIMERA > 5000
goto_if_false @SWEET2_17804
if 
  53@ == 3
goto_if_false @SWEET2_17804
Text.PrintHelp('HOOD2E')
TIMERA = 0
53@ = 4

:SWEET2_17804
goto @SWEET2_17900

:SWEET2_17811
if 
  TIMERA > 2000
goto_if_false @SWEET2_17900
if 
  53@ == 0
goto_if_false @SWEET2_17900
Text.PrintHelp('EMMET_G')
Blip.Remove($emmets_shop_blip)
$emmets_shop_blip = Blip.AddShortRangeSpriteForCoord(2447.364, -1974.496, 12.5469, RadarSprite.EmmetGun)
TIMERA = 0
53@ = 1

:SWEET2_17900
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_18198
if 
  not Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_18168
if 
  Char.IsInCar($scplayer, $big_smoke_car)
goto_if_false @SWEET2_18069
if 
  45@ == 0
goto_if_false @SWEET2_18029
Blip.Remove(44@)
Blip.Remove(35@)
Text.PrintNow('SWE2_D', 6000, 1)
35@ = Blip.AddForCoord(2066.465, -1695.444, 12.5547)
$blob_flag = 1
45@ = 1

:SWEET2_18029
if 
  TIMERB > 6000
goto_if_false @SWEET2_18062
gosub @SWEET2_20914
56@ = 1

:SWEET2_18062
goto @SWEET2_18161

:SWEET2_18069
if 
  45@ == 1
goto_if_false @SWEET2_18161
Blip.Remove(35@)
Blip.Remove(44@)
44@ = Blip.AddForCar($big_smoke_car)
Blip.SetAsFriendly(44@, True)
gosub @SWEET2_21159
Text.PrintNow('SWE2_L', 6000, 1)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
$blob_flag = 0
45@ = 0

:SWEET2_18161
goto @SWEET2_18191

:SWEET2_18168
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_18191
goto @SWEET2_18221

:SWEET2_18198
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_18221
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_18260
Text.PrintNow('SWE2_C', 10000, 1)
goto @SWEET2_20129

:SWEET2_18260
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_18299
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_18299
goto @SWEET2_17536

:SWEET2_18306
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetNearClip(0.2)
Camera.SetFixedPosition(2086.01, -1699.698, 17.7495, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2085.06, -1699.831, 17.4682, SwitchType.JumpCut)
Streaming.RequestModel(330)
wait 1000
Camera.DoFade(1000, Fade.Out)

:SWEET2_18392
if 
  Camera.GetFadingStatus
goto_if_false @SWEET2_18416
wait 0
goto @SWEET2_18392

:SWEET2_18416
if 
  not Streaming.HasModelLoaded(330)
goto_if_false @SWEET2_18443
wait 0
goto @SWEET2_18416

:SWEET2_18443
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_18553
if 
  not Char.IsInAnyCar($big_smoke)
goto_if_false @SWEET2_18502
Char.SetCoordinates($big_smoke, 2071.169, -1703.06, 12.5538)
goto @SWEET2_18522

:SWEET2_18502
Char.WarpFromCarToCoord($big_smoke, 2071.169, -1703.06, 12.5538)

:SWEET2_18522
Char.SetHeading($big_smoke, 162.3527)
Char.ClearTasks($big_smoke)
Char.ClearLookAt($big_smoke)
Task.LookAtChar($big_smoke, $scplayer, 4000)

:SWEET2_18553
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SWEET2_18596
Char.SetCoordinates($scplayer, 2071.554, -1704.375, 12.5538)
goto @SWEET2_18616

:SWEET2_18596
Char.WarpFromCarToCoord($scplayer, 2071.554, -1704.375, 12.5538)

:SWEET2_18616
Char.SetHeading($scplayer, 12.5041)
Char.ClearTasks($scplayer)
Camera.SetFixedPosition(2069.607, -1704.63, 14.2313, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2070.475, -1704.174, 14.0353, SwitchType.JumpCut)
wait 1000
Camera.DoFade(1000, Fade.In)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 9865)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 9870)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 28200)

:SWEET2_18715
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_18780
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_18773
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_18773
goto @SWEET2_18715

:SWEET2_18780
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SWE3_JA', 10000, 1)
gosub @SWEET2_21636

:SWEET2_18807
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_18872
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_18865
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_18865
goto @SWEET2_18807

:SWEET2_18872
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_18893
Char.ClearLookAt($big_smoke)

:SWEET2_18893
gosub @SWEET2_21990

:SWEET2_18900
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET2_18965
wait 0
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_18958
Text.PrintNow('SWE2_B', 10000, 1)
goto @SWEET2_20129

:SWEET2_18958
goto @SWEET2_18900

:SWEET2_18965
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SWE3_JB', 10000, 1)
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.StartFacialTalk($scplayer, 3000)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_19041
Task.GoStraightToCoord($big_smoke, 2065.1, -1703.4, 13.15, MoveState.Walk, 4000)

:SWEET2_19041
wait 1000
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_19087
Task.GoStraightToCoord($scplayer, 2073.287, -1702.104, 12.5469, MoveState.Walk, 4000)

:SWEET2_19087
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
Text.ClearPrints
wait 1000
Camera.SetFixedPosition(2072.723, -1699.737, 14.1283, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2072.935, -1700.67, 13.8382, SwitchType.JumpCut)
Char.Delete($big_smoke)

:SWEET2_19162
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @SWEET2_19188
wait 0
goto @SWEET2_19162

:SWEET2_19188
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
TIMERA = 0

:SWEET2_19199
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @SWEET2_19251
wait 0
if 
  TIMERA > 1500
goto_if_false @SWEET2_19244
goto @SWEET2_19251

:SWEET2_19244
goto @SWEET2_19199

:SWEET2_19251
80@ = 0
81@ = 0
82@ = 0
39@ = 3
gosub @SWEET2_47
Char.ClearTasks($scplayer)
Task.UseMobilePhone($scplayer, True)
wait 1800
85@ = 0
65@ = 0
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("CRACK")
Streaming.RemoveAnimation("COLT45")
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(466)
Streaming.MarkModelAsNoLongerNeeded(#DYN_WINE_BIG)
Streaming.MarkModelAsNoLongerNeeded(549)
Streaming.UnloadSpecialCharacter(10)
Streaming.UnloadSpecialCharacter(1)

:SWEET2_19372
if 
  not Char.LocateAnyMeans3D($scplayer, 2246.972, -1660.779, 14.2856, 3.5, 4.0, 4.0, True)
goto_if_false @SWEET2_19620
wait 0
if 
  85@ == 0
goto_if_false @SWEET2_19532
gosub @SWEET2_20914
if 
  80@ > 0
goto_if_false @SWEET2_19532
if or
  80@ == 10
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @SWEET2_19532
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
Task.UseMobilePhone($scplayer, False)
Streaming.MarkModelAsNoLongerNeeded(330)
Text.PrintNow('COLORS', 6000, 1)
85@ = 1

:SWEET2_19532
if 
  65@ == 0
goto_if_false @SWEET2_19613
if 
  80@ > 0
goto_if_false @SWEET2_19613
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Blip.Remove(35@)
35@ = Blip.AddForCoord(2246.972, -1660.779, 14.2856)
65@ = 1

:SWEET2_19613
goto @SWEET2_19372

:SWEET2_19620
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2253.099, -1644.225, 16.6501, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2252.774, -1645.161, 16.5203, SwitchType.JumpCut)
Text.PrintNow('S2HELP1', 6000, 1)
World.SwitchEntryExit('CSCHP', True)
World.SwitchEntryExit('CSSPRT', True)
World.SwitchEntryExit('LACS1', True)
wait 2500
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
87@ = 0

:SWEET2_19762
if 
  87@ <> 2
goto_if_false @SWEET2_20109
wait 0
86@ = Streaming.GetAreaVisible()
if 
  86@ == 15
goto_if_false @SWEET2_20001
if 
  87@ == 0
goto_if_false @SWEET2_20001
if 
  Char.LocateOnFoot3D($scplayer, 208.0279, -107.9499, 1004.133, 10.0, 10.0, 5.0, False)
goto_if_false @SWEET2_20001
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Text.ClearPrints
wait 1500
Player.SetControl($player1, False)
Camera.SetFixedPosition(213.0277, -102.9124, 1006.377, 0.0, 0.0, 0.0)
Camera.PointAtPoint(213.7582, -102.2797, 1006.119, SwitchType.JumpCut)
Text.PrintNow('S2HELP2', 6000, 1)
wait 4000
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Text.PrintHelp('HELWARD')
87@ = 1

:SWEET2_20001
if 
  87@ == 1
goto_if_false @SWEET2_20102
if 
  86@ == 0
goto_if_false @SWEET2_20102
if 
  Char.LocateOnFoot3D($scplayer, 2244.48, -1664.06, 14.469, 10.0, 10.0, 5.0, False)
goto_if_false @SWEET2_20102
Blip.Remove(35@)
wait 2000
87@ = 2

:SWEET2_20102
goto @SWEET2_19762

:SWEET2_20109
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
goto @SWEET2_20218

:SWEET2_20129
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if 
  Char.HasGotWeapon($scplayer, WeaponType.Pistol)
goto_if_false @SWEET2_20172
Char.SetAmmo($scplayer, WeaponType.Pistol, 5)

:SWEET2_20172
Blip.Remove($emmets_shop_blip)
World.SwitchEntryExit('CSCHP', False)
World.SwitchEntryExit('CSSPRT', False)
World.SwitchEntryExit('LACS1', False)
return 

:SWEET2_20218
$flag_sweet_mission_counter += 1
Stat.RegisterMissionPassed('SWEET_2')
Text.PrintWithNumberBig('M_PASSR', 4, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(4)
start_new_script @SMOKE 
Blip.Remove($smoke_contact_blip)
$smoke_contact_blip = Blip.AddSpriteForContactPoint($smokeX, $smokeY, $smokeZ, $smoke_blip_icon)
Blip.Remove($clothes_shop1)
$clothes_shop1 = Blip.AddShortRangeSpriteForCoord(2243.807, -1668.567, 20.0313, RadarSprite.Tshirt)
Blip.Remove($emmets_shop_blip)
$emmets_shop_blip = Blip.AddShortRangeSpriteForCoord(2447.364, -1974.496, 12.5469, RadarSprite.EmmetGun)
$emmets_gun = Pickup.CreateWithAmmo(346, PickupType.OnStreetSlow, 16, 2447.773, -1975.663, 13.0)
if 
  $added_all_food_blips_before == 0
goto_if_false @SWEET2_20631
World.SwitchEntryExit('CSCHP', True)
World.SwitchEntryExit('CSSPRT', True)
World.SwitchEntryExit('LACS1', True)
$2637 = Blip.AddShortRangeSpriteForCoord(-2376.4, 909.2, 45.4, RadarSprite.Tshirt)
$2638 = Blip.AddShortRangeSpriteForCoord(1654.0, 1733.4, 11.0, RadarSprite.Tshirt)
$2639 = Blip.AddShortRangeSpriteForCoord(2105.7, 2257.4, 11.0, RadarSprite.Tshirt)
$2645 = Blip.AddShortRangeSpriteForCoord(-2371.1, 910.2, 47.2, RadarSprite.Tshirt)
$2640 = Blip.AddShortRangeSpriteForCoord(501.7, -1358.5, 16.4, RadarSprite.Tshirt)
$2641 = Blip.AddShortRangeSpriteForCoord(2818.6, 2401.5, 11.0, RadarSprite.Tshirt)
$2635 = Blip.AddShortRangeSpriteForCoord(2112.8, -1214.7, 23.9, RadarSprite.Tshirt)
$2636 = Blip.AddShortRangeSpriteForCoord(2772.0, 2447.6, 11.0, RadarSprite.Tshirt)
$2647 = Blip.AddShortRangeSpriteForCoord(-2489.0, -26.9, 32.6, RadarSprite.Tshirt)
$added_all_food_blips_before = 1

:SWEET2_20631
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Stat.PlayerMadeProgress(1)
return 

:SWEET2_20646
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Char.RemoveElegantly($big_smoke)
Char.RemoveElegantly(63@)
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("CRACK")
Streaming.RemoveAnimation("COLT45")
Streaming.RemoveAnimation("FAT")
CarGenerator.Switch($gen_car6, 101)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(466)
Streaming.MarkModelAsNoLongerNeeded(#DYN_WINE_BIG)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(549)
gosub @SWEET2_22589
Streaming.UnloadSpecialCharacter(10)
Streaming.UnloadSpecialCharacter(1)
Blip.Remove(35@)
Blip.Remove(44@)
Game.SetScriptLimitToGangSize(99)
Weather.Release
if 
  not Car.IsDead(83@)
goto_if_false @SWEET2_20796
Car.SetProofs(83@, False, False, False, False, False)

:SWEET2_20796
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Text.ClearHelp
Mission.Finish
return 

:SWEET2_20816
if 
  Object.DoesExist($tag_target(42@,10i))
goto_if_false @SWEET2_20867
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_20867
Task.LookAtObject($big_smoke, $tag_target(42@,10i), 5000)

:SWEET2_20867
return 

:SWEET2_20869
if 
  Object.DoesExist($tag_target(42@,10i))
goto_if_false @SWEET2_20910
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_20910
Char.ClearLookAt($big_smoke)

:SWEET2_20910
return 
return 

:SWEET2_20914
if or
  81@ == 0
  81@ == 1
goto_if_false @SWEET2_20984
if 
  is_int_lvar_greater_or_equal_to_int_lvar 48@ >= 80@
goto_if_false @SWEET2_20984
if 
  TIMERA > 200
goto_if_false @SWEET2_20984
gosub @SWEET2_21056

:SWEET2_20984
if 
  81@ == 2
goto_if_false @SWEET2_21054
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_21054
gosub @SWEET2_21990
81@ = 0
80@ += 1
82@ = 0
Text.ClearPrints
TIMERA = 0

:SWEET2_21054
return 

:SWEET2_21056
if 
  81@ == 0
goto_if_false @SWEET2_21092
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 66@(80@,14i))
81@ = 1

:SWEET2_21092
if 
  81@ == 1
goto_if_false @SWEET2_21157
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SWEET2_21157
Text.PrintNow($6608(80@,14s), 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
gosub @SWEET2_21636
81@ = 2

:SWEET2_21157
return 

:SWEET2_21159
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  57@ == 0
goto_if_false @SWEET2_21188
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25800)

:SWEET2_21188
if 
  57@ == 1
goto_if_false @SWEET2_21213
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25801)

:SWEET2_21213
if 
  57@ == 2
goto_if_false @SWEET2_21238
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25802)

:SWEET2_21238
if 
  57@ == 3
goto_if_false @SWEET2_21263
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25803)

:SWEET2_21263
if 
  57@ == 4
goto_if_false @SWEET2_21288
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25804)

:SWEET2_21288
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:SWEET2_21304
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SWEET2_21366
wait 0
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_21341
return 

:SWEET2_21341
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_21359
return 

:SWEET2_21359
goto @SWEET2_21304

:SWEET2_21366
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
if 
  57@ == 0
goto_if_false @SWEET2_21404
Text.PrintNow('SMOX_AA', 3000, 1)

:SWEET2_21404
if 
  57@ == 1
goto_if_false @SWEET2_21438
Text.PrintNow('SMOX_AB', 3000, 1)

:SWEET2_21438
if 
  57@ == 2
goto_if_false @SWEET2_21472
Text.PrintNow('SMOX_AC', 3000, 1)

:SWEET2_21472
if 
  57@ == 3
goto_if_false @SWEET2_21506
Text.PrintNow('SMOX_AD', 3000, 1)

:SWEET2_21506
if 
  57@ == 4
goto_if_false @SWEET2_21540
Text.PrintNow('SMOX_AE', 3000, 1)

:SWEET2_21540
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SWEET2_21602
wait 0
if 
  Car.IsDead($big_smoke_car)
goto_if_false @SWEET2_21577
return 

:SWEET2_21577
if 
  Char.IsDead($big_smoke)
goto_if_false @SWEET2_21595
return 

:SWEET2_21595
goto @SWEET2_21540

:SWEET2_21602
57@ += 1
if 
  57@ > 4
goto_if_false @SWEET2_21634
57@ = 0

:SWEET2_21634
return 

:SWEET2_21636
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9831
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9866
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9832
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9833
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9867
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9868
goto_if_false @SWEET2_21736
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.StartFacialTalk($scplayer, 3000)
return 

:SWEET2_21736
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9869
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14524
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14525
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14526
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14527
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9870
goto_if_false @SWEET2_21836
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.StartFacialTalk($scplayer, 3000)
return 

:SWEET2_21836
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9825
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9826
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9827
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9828
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9829
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9830
goto_if_false @SWEET2_21957
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_21950
Char.ShutUpForScriptedSpeech(63@, True)
Char.StartFacialTalk(63@, 3000)

:SWEET2_21950
goto @SWEET2_21988

:SWEET2_21957
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_21988
Char.ShutUpForScriptedSpeech($big_smoke, True)
Char.StartFacialTalk($big_smoke, 3000)

:SWEET2_21988
return 

:SWEET2_21990
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9831
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9866
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9832
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9833
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9867
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9868
goto_if_false @SWEET2_22087
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
return 

:SWEET2_22087
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9869
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14524
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14525
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14526
  is_int_lvar_equal_to_constant 66@(80@,14i) == 14527
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9870
goto_if_false @SWEET2_22184
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
return 

:SWEET2_22184
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9825
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9826
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9827
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9828
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9829
  is_int_lvar_equal_to_constant 66@(80@,14i) == 9830
goto_if_false @SWEET2_22302
if 
  not Char.IsDead(63@)
goto_if_false @SWEET2_22295
Char.ShutUpForScriptedSpeech(63@, False)
Char.StopFacialTalk(63@)

:SWEET2_22295
goto @SWEET2_22330

:SWEET2_22302
if 
  not Char.IsDead($big_smoke)
goto_if_false @SWEET2_22330
Char.ShutUpForScriptedSpeech($big_smoke, False)
Char.StopFacialTalk($big_smoke)

:SWEET2_22330
return 

:SWEET2_22332
Zone.SetGangStrength('ELS1A', GangType.Ballas, 0)
Zone.SetGangStrength('ELS1B', GangType.Ballas, 0)
Zone.SetGangStrength('ELS2', GangType.Ballas, 0)
Zone.SetGangStrength('ELS3A', GangType.Ballas, 0)
Zone.SetGangStrength('ELS3B', GangType.Ballas, 0)
Zone.SetGangStrength('ELS4', GangType.Ballas, 0)
Zone.SetGangStrength('LIND1A', GangType.Ballas, 0)
Zone.SetGangStrength('LIND1B', GangType.Ballas, 0)
Zone.SetGangStrength('LIND2A', GangType.Ballas, 0)
Zone.SetGangStrength('LIND2B', GangType.Ballas, 0)
Zone.SetGangStrength('LIND3', GangType.Ballas, 0)
Zone.SetGangStrength('IWD1', GangType.Ballas, 0)
Zone.SetGangStrength('IWD2', GangType.Ballas, 0)
Zone.SetGangStrength('IWD3A', GangType.Ballas, 0)
Zone.SetGangStrength('IWD3B', GangType.Ballas, 0)
Zone.SetGangStrength('IWD4', GangType.Ballas, 0)
Zone.SetGangStrength('IWD5', GangType.Ballas, 0)
return 

:SWEET2_22589
Zone.SetGangStrength('ELS1A', GangType.Ballas, 30)
Zone.SetGangStrength('ELS1B', GangType.Ballas, 30)
Zone.SetGangStrength('ELS2', GangType.Ballas, 30)
Zone.SetGangStrength('ELS3A', GangType.Ballas, 30)
Zone.SetGangStrength('ELS3B', GangType.Ballas, 30)
Zone.SetGangStrength('ELS4', GangType.Ballas, 30)
Zone.SetGangStrength('LIND1A', GangType.Ballas, 20)
Zone.SetGangStrength('LIND1B', GangType.Ballas, 20)
Zone.SetGangStrength('LIND2A', GangType.Ballas, 20)
Zone.SetGangStrength('LIND2B', GangType.Ballas, 20)
Zone.SetGangStrength('LIND3', GangType.Ballas, 20)
Zone.SetGangStrength('IWD1', GangType.Ballas, 30)
Zone.SetGangStrength('IWD2', GangType.Ballas, 30)
Zone.SetGangStrength('IWD3A', GangType.Ballas, 30)
Zone.SetGangStrength('IWD3B', GangType.Ballas, 30)
Zone.SetGangStrength('IWD4', GangType.Ballas, 30)
Zone.SetGangStrength('IWD5', GangType.Ballas, 30)
return 

//-------------Mission 17---------------
// Originally: Drive-By

:SWEET4
script_name 'SWEET4'
gosub @SWEET4_4512
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET4_38
gosub @SWEET4_23645

:SWEET4_38
gosub @SWEET4_23765
terminate_this_script 

:SWEET4_47
Streaming.RequestModel(492)
Streaming.RequestModel(372)
Streaming.RequestModel(346)
Streaming.LoadSpecialCharacter(10, 'SMOKE')
Streaming.LoadSpecialCharacter(2, 'RYDER2')
Streaming.LoadSpecialCharacter(3, 'SWEET')
Streaming.LoadAllModelsNow

:SWEET4_103
if or
  not Streaming.HasModelLoaded(492)
  not Streaming.HasModelLoaded(372)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasSpecialCharacterLoaded(10)
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasSpecialCharacterLoaded(3)
goto_if_false @SWEET4_152
wait 0
goto @SWEET4_103

:SWEET4_152
return 

:SWEET4_154
397@ = 2510.76
398@ = -1665.82
399@ = 12.3835
400@ = 213.1638
World.ClearArea(397@, 398@, 399@, 1.0, True)
394@ = Char.Create(PedType.CivMale, 299, 397@, 398@, 399@)
Char.SetGetOutUpsideDownCar(394@, False)
Char.GiveWeapon(394@, WeaponType.Tec9, $sw4_hood_acc)
Char.SetCurrentWeapon(394@, WeaponType.Tec9)
Char.SetHeading(394@, 400@)
Char.SetAccuracy(394@, 90)
Char.SetAnimGroup(394@, "FATMAN")
Char.SetProofs(394@, True, False, False, False, False)
return 

:SWEET4_300
404@ = 2509.39
405@ = -1672.07
406@ = 12.3835
407@ = 59.592
World.ClearArea(404@, 405@, 406@, 1.0, True)
401@ = Char.Create(PedType.CivMale, 291, 404@, 405@, 406@)
Char.SetGetOutUpsideDownCar(401@, False)
Char.GiveWeapon(401@, WeaponType.Tec9, $sw4_hood_acc)
Char.SetCurrentWeapon(401@, WeaponType.Tec9)
Char.SetHeading(401@, 407@)
Char.SetAccuracy(401@, 90)
Char.SetAnimGroup(401@, "GANG1")
Char.SetProofs(401@, True, False, False, False, False)
return 
Char.MarkAsNoLongerNeeded(401@)
return 

:SWEET4_452
411@ = 2514.29
412@ = -1670.46
413@ = 12.3835
414@ = 41.1276
World.ClearArea(411@, 412@, 413@, 1.0, True)
408@ = Char.Create(PedType.CivMale, 292, 411@, 412@, 413@)
Char.SetGetOutUpsideDownCar(408@, False)
Char.GiveWeapon(408@, WeaponType.Tec9, $sw4_hood_acc)
Char.SetCurrentWeapon(408@, WeaponType.Tec9)
Char.SetHeading(408@, 414@)
Char.SetAccuracy(408@, 90)
Char.SetAnimGroup(408@, "GANG2")
Char.SetProofs(408@, True, False, False, False, False)
return 

:SWEET4_597
Streaming.RequestModel(102)
Streaming.RequestModel(103)
Streaming.RequestModel(346)
Streaming.RequestModel(412)
Streaming.RequestModel(365)
Streaming.LoadAllModelsNow

:SWEET4_622
if or
  not Streaming.HasModelLoaded(102)
  not Streaming.HasModelLoaded(103)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(412)
  not Streaming.HasModelLoaded(365)
goto_if_false @SWEET4_667
wait 0
goto @SWEET4_622

:SWEET4_667
Streaming.RequestAnimation("GANGS")
Streaming.RequestAnimation("GHANDS")
Streaming.RequestAnimation("GHETTO_DB")

:SWEET4_699
if or
  not Streaming.HasAnimationLoaded("GANGS")
  not Streaming.HasAnimationLoaded("GHANDS")
  not Streaming.HasAnimationLoaded("GHETTO_DB")
goto_if_false @SWEET4_753
wait 0
goto @SWEET4_699

:SWEET4_753
42@ = 1
return 
$6657 = Blip.AddForCoord(2075.55, -1831.09, 12.21)
195@ = Char.Create(PedType.Gang1, 102, 465@, 483@, 501@)
326@ = Char.Create(PedType.Gang1, 102, 465@, 483@, 501@)
395@ = Blip.AddForChar(394@)
409@ = Blip.AddForChar(408@)
402@ = Blip.AddForChar(401@)

:SWEET4_842
527@ = 2077.18
531@ = -1362.05
535@ = 23.65
539@ = 180.0
451@ = 2079.42
469@ = -1364.08
487@ = 23.04
505@ = 314.1323
World.ClearArea(527@, 531@, 535@, 0.5, True)
523@ = Car.Create(412, 527@, 531@, 535@)
415@ = Char.CreateInsideCar(523@, PedType.Gang1, 102)
Car.SetHeading(523@, 539@)
CarGenerator.SuppressCarModel(412)
Car.OpenDoor(523@, CarDoor.LeftFrontDoor)
Char.GiveWeapon(415@, WeaponType.Tec9, $sw4_hood_acc)
Char.SetAccuracy(415@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1033
433@ = Blip.AddForChar(415@)

:SWEET4_1033
452@ = 2075.95
470@ = -1365.74
488@ = 24.02
506@ = 315.85
World.ClearArea(452@, 470@, 488@, 0.5, True)
416@ = Char.Create(PedType.Gang1, 103, 452@, 470@, 488@)
Char.GiveWeapon(416@, WeaponType.Pistol, $sw4_hood_acc)
Char.SetHeading(416@, 506@)
Char.SetAccuracy(416@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1161
434@ = Blip.AddForChar(416@)

:SWEET4_1161
453@ = 2079.87
471@ = -1361.88
489@ = 24.02
507@ = 54.15
World.ClearArea(453@, 471@, 489@, 0.5, True)
417@ = Char.Create(PedType.Gang1, 102, 453@, 471@, 489@)
Char.GiveWeapon(417@, WeaponType.Pistol, $sw4_hood_acc)
Char.SetHeading(417@, 507@)
Char.SetAccuracy(417@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1289
435@ = Blip.AddForChar(417@)

:SWEET4_1289
454@ = 2079.34
472@ = -1360.02
490@ = 24.02
508@ = 214.36
World.ClearArea(454@, 472@, 490@, 0.5, True)
418@ = Char.Create(PedType.Gang1, 102, 454@, 472@, 490@)
Char.GiveWeapon(418@, WeaponType.Pistol, $sw4_hood_acc)
Char.SetHeading(418@, 508@)
Char.SetAccuracy(418@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1417
436@ = Blip.AddForChar(418@)

:SWEET4_1417
return 

:SWEET4_1419
528@ = 2101.57
532@ = -1287.65
536@ = 24.17
540@ = 5.0
455@ = 2101.57
473@ = -1287.65
491@ = 24.17
509@ = 5.0
World.ClearArea(455@, 473@, 491@, 0.5, True)
524@ = Car.Create(412, 528@, 532@, 536@)
419@ = Char.CreateInsideCar(524@, PedType.Gang1, 102)
Car.SetHeading(524@, 540@)
Car.PopBoot(524@)
Char.GiveWeapon(419@, WeaponType.Tec9, $sw4_hood_acc)
Char.SetAccuracy(419@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1603
437@ = Blip.AddForChar(419@)

:SWEET4_1603
456@ = 2101.58
474@ = -1291.78
492@ = 24.02
510@ = 182.8706
World.ClearArea(456@, 474@, 492@, 0.5, True)
420@ = Char.Create(PedType.Gang1, 103, 456@, 474@, 492@)
Char.GiveWeapon(420@, WeaponType.Pistol, $sw4_hood_acc)
Char.SetHeading(420@, 510@)
Char.SetAccuracy(420@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1731
438@ = Blip.AddForChar(420@)

:SWEET4_1731
457@ = 2099.3
475@ = -1291.12
493@ = 24.02
511@ = 105.53
World.ClearArea(457@, 475@, 493@, 0.5, True)
421@ = Char.Create(PedType.Gang1, 102, 457@, 475@, 493@)
Char.GiveWeapon(421@, WeaponType.Pistol, $sw4_hood_acc)
Char.SetHeading(421@, 511@)
Char.SetAccuracy(421@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1859
439@ = Blip.AddForChar(421@)

:SWEET4_1859
458@ = 2093.84
476@ = -1290.07
494@ = 23.15
512@ = 58.035
World.ClearArea(458@, 476@, 494@, 0.5, True)
422@ = Char.Create(PedType.Gang1, 103, 458@, 476@, 494@)
Char.GiveWeapon(422@, WeaponType.Pistol, $sw4_hood_acc)
Char.SetHeading(422@, 512@)
Char.SetAccuracy(422@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_1987
440@ = Blip.AddForChar(422@)

:SWEET4_1987
return 

:SWEET4_1989
459@ = 2161.07
477@ = -1265.92
495@ = 23.02
513@ = 257.59
World.ClearArea(459@, 477@, 495@, 0.5, True)
423@ = Char.Create(PedType.Gang1, 102, 459@, 477@, 495@)
Char.GiveWeapon(423@, WeaponType.Tec9, $sw4_hood_acc)
Char.SetHeading(423@, 513@)
Char.SetAccuracy(423@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_2117
441@ = Blip.AddForChar(423@)

:SWEET4_2117
460@ = 2162.18
478@ = -1264.69
496@ = 23.03
514@ = 238.46
World.ClearArea(460@, 478@, 496@, 0.5, True)
424@ = Char.Create(PedType.Gang1, 102, 460@, 478@, 496@)
Char.GiveWeapon(424@, WeaponType.Pistol, $sw4_hood_acc)
Char.SetHeading(424@, 514@)
Char.SetAccuracy(424@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_2245
442@ = Blip.AddForChar(424@)

:SWEET4_2245
461@ = 2162.97
479@ = -1261.92
497@ = 23.02
515@ = 45.33
World.ClearArea(461@, 479@, 497@, 0.5, True)
425@ = Char.Create(PedType.Gang1, 103, 461@, 479@, 497@)
Char.GiveWeapon(425@, WeaponType.Pistol, $sw4_hood_acc)
Char.SetHeading(425@, 515@)
Char.SetAccuracy(425@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_2373
443@ = Blip.AddForChar(425@)

:SWEET4_2373
462@ = 2160.12
480@ = -1262.98
498@ = 23.03
516@ = 18.46
World.ClearArea(462@, 480@, 498@, 0.5, True)
426@ = Char.Create(PedType.Gang1, 103, 462@, 480@, 498@)
Char.GiveWeapon(426@, WeaponType.Pistol, $sw4_hood_acc)
Char.SetHeading(426@, 516@)
Char.SetAccuracy(426@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_2501
444@ = Blip.AddForChar(426@)

:SWEET4_2501
return 

:SWEET4_2503
463@ = 1983.8
481@ = -1235.98
499@ = 20.17
517@ = 318.72
World.ClearArea(463@, 481@, 499@, 0.5, True)
427@ = Char.Create(PedType.Gang1, 102, 463@, 481@, 499@)
Char.GiveWeapon(427@, WeaponType.Tec9, $sw4_hood_acc)
Char.SetHeading(427@, 517@)
Char.SetAccuracy(427@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_2631
445@ = Blip.AddForChar(427@)

:SWEET4_2631
464@ = 1981.3
482@ = -1233.94
500@ = 20.04
518@ = 254.99
World.ClearArea(464@, 482@, 500@, 0.5, True)
428@ = Char.Create(PedType.Gang1, 103, 464@, 482@, 500@)
Char.GiveWeapon(428@, WeaponType.Pistol, $sw4_hood_acc)
Char.SetHeading(428@, 518@)
Char.SetAccuracy(428@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_2759
446@ = Blip.AddForChar(428@)

:SWEET4_2759
465@ = 1986.67
483@ = -1239.76
501@ = 19.17
519@ = 98.28
World.ClearArea(465@, 483@, 501@, 0.5, True)
429@ = Char.Create(PedType.Gang1, 102, 465@, 483@, 501@)
Char.GiveWeapon(429@, WeaponType.SprayCan, $sw4_hood_acc)
Task.StayInSamePlace(429@, True)
Char.SetHeading(429@, 519@)
Char.SetAccuracy(429@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_2894
447@ = Blip.AddForChar(429@)

:SWEET4_2894
466@ = 1986.54
484@ = -1233.03
502@ = 20.07
520@ = 143.42
World.ClearArea(466@, 484@, 502@, 0.5, True)
430@ = Char.Create(PedType.Gang1, 103, 466@, 484@, 502@)
Char.GiveWeapon(430@, WeaponType.Pistol, $sw4_hood_acc)
Char.SetHeading(430@, 520@)
Char.SetAccuracy(430@, $sw4_stage)
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_3022
448@ = Blip.AddForChar(430@)

:SWEET4_3022
return 

:SWEET4_3024
Char.MarkAsNoLongerNeeded(415@)
Char.MarkAsNoLongerNeeded(416@)
Char.MarkAsNoLongerNeeded(417@)
Char.MarkAsNoLongerNeeded(418@)
Char.MarkAsNoLongerNeeded(419@)
Char.MarkAsNoLongerNeeded(420@)
Char.MarkAsNoLongerNeeded(421@)
Char.MarkAsNoLongerNeeded(422@)
Char.MarkAsNoLongerNeeded(423@)
Char.MarkAsNoLongerNeeded(424@)
Char.MarkAsNoLongerNeeded(425@)
Char.MarkAsNoLongerNeeded(426@)
Char.MarkAsNoLongerNeeded(427@)
Char.MarkAsNoLongerNeeded(428@)
Char.MarkAsNoLongerNeeded(429@)
Char.MarkAsNoLongerNeeded(430@)
return 

:SWEET4_3106
545@ = 2508.16
546@ = -1666.47
547@ = 13.0
548@ = 16.0
CarGenerator.Switch($gen_car6, 0)
Car.CustomPlateForNextCar(492, "GROVE4L_")
World.ClearArea(545@, 546@, 547@, 6.0, True)
543@ = Car.Create(492, 545@, 546@, 547@)
Car.ChangeColor(543@, 59, 34)
Car.SetHeading(543@, 548@)
544@ = Blip.AddForCar(543@)
Blip.SetAsFriendly(544@, True)
Car.SetCanBurstTires(543@, False)
Car.SetHealth(543@, 1450)
Player.AlterWantedLevel($player1, 0)
return 

:SWEET4_3259
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_3296
if 
  not Car.IsOnScreen(543@)
goto_if_false @SWEET4_3296
Car.Delete(543@)

:SWEET4_3296
Streaming.MarkModelAsNoLongerNeeded(492)
return 

:SWEET4_3303
return 

:SWEET4_3305
return 

:SWEET4_3307
if and
  not Char.IsDead(423@)
  not Char.IsDead(424@)
  not Char.IsDead(425@)
  not Char.IsDead(426@)
goto_if_false @SWEET4_3377
192@ = Group.Create(DefaultTaskAllocator.FollowAnyMeans)
Group.SetLeader(192@, 423@)
Group.SetMember(192@, 424@)
Group.SetMember(192@, 425@)
Group.SetMember(192@, 426@)

:SWEET4_3377
return 

:SWEET4_3379
if and
  not Char.IsDead(427@)
  not Char.IsDead(428@)
  not Char.IsDead(429@)
  not Char.IsDead(430@)
goto_if_false @SWEET4_3449
193@ = Group.Create(DefaultTaskAllocator.FollowAnyMeans)
Group.SetLeader(193@, 427@)
Group.SetMember(193@, 428@)
Group.SetMember(193@, 429@)
Group.SetMember(193@, 430@)

:SWEET4_3449
return 

:SWEET4_3451
if and
  not Car.IsDead(523@)
  not Car.IsDead(543@)
goto_if_false @SWEET4_3502
98@ = Sequence.Open()
Task.LeaveCar(-1, 523@)
Task.StayInSamePlace(-1, True)
Task.DestroyCar(-1, 543@)
Sequence.Close(98@)

:SWEET4_3502
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(543@)
goto_if_false @SWEET4_3580
99@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 2075.15, -1363.85, 23.85, 6, 0.5, 5.0, $scplayer)
Task.StayInSamePlace(-1, True)
Task.DestroyCar(-1, 543@)
Sequence.Close(99@)

:SWEET4_3580
if 
  not Char.IsDead($scplayer)
goto_if_false @SWEET4_3636
100@ = Sequence.Open()
Task.DiveAndGetUp(-1, 1.0, 1.0, 500)
Task.StayInSamePlace(-1, True)
Task.DestroyCar(-1, 543@)
Sequence.Close(100@)

:SWEET4_3636
if 
  not Char.IsDead($scplayer)
goto_if_false @SWEET4_3746
118@ = Sequence.Open()
Task.PlayAnim(-1, "PRTIAL_GNGTLKG", "GANGS", 4.0, False, False, False, False, 0)
Task.PlayAnim(-1, "PRTIAL_GNGTLKH", "GANGS", 4.0, False, False, False, False, 0)
Sequence.Close(118@)

:SWEET4_3746
if 
  not Char.IsDead($scplayer)
goto_if_false @SWEET4_3785
101@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.DestroyCar(-1, 543@)
Sequence.Close(101@)

:SWEET4_3785
return 

:SWEET4_3787
if and
  not Car.IsDead(524@)
  not Char.IsDead($scplayer)
goto_if_false @SWEET4_3860
102@ = Sequence.Open()
Task.LeaveCar(-1, 524@)
Task.GoToCoordWhileShooting(-1, 545@, 546@, 547@, 4, 1.0, 5.0, $scplayer)
Task.DestroyCar(-1, 543@)
Sequence.Close(102@)

:SWEET4_3860
if 
  not Char.IsDead($scplayer)
goto_if_false @SWEET4_3899
103@ = Sequence.Open()
Task.WeaponRoll(-1, True)
Task.DestroyCar(-1, 543@)
Sequence.Close(103@)

:SWEET4_3899
if 
  not Char.IsDead($scplayer)
goto_if_false @SWEET4_3966
104@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 2080.66, -1292.61, 24.02, 6, 0.5, 5.0, $scplayer)
Task.DestroyCar(-1, 543@)
Sequence.Close(104@)

:SWEET4_3966
if 
  not Char.IsDead($scplayer)
goto_if_false @SWEET4_4033
105@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 2132.0, -1307.0, 24.0, 6, 1.0, 5.0, $scplayer)
Task.DestroyCar(-1, 543@)
Sequence.Close(105@)

:SWEET4_4033
return 

:SWEET4_4035
if 
  not Char.IsDead($scplayer)
goto_if_false @SWEET4_4136
106@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 2163.0, -1262.0, 24.0, 6, 1.0, 5.0, $scplayer)
Task.GoToCoordWhileShooting(-1, 2080.0, -1261.0, 24.0, 6, 1.0, 5.0, $scplayer)
Task.DestroyCar(-1, 543@)
Sequence.Close(106@)

:SWEET4_4136
if 
  not Char.IsDead($scplayer)
goto_if_false @SWEET4_4169
107@ = Sequence.Open()
Task.DestroyCar(-1, 543@)
Sequence.Close(107@)

:SWEET4_4169
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(543@)
goto_if_false @SWEET4_4213
108@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.DestroyCar(-1, 543@)
Sequence.Close(108@)

:SWEET4_4213
if 
  not Char.IsDead($scplayer)
goto_if_false @SWEET4_4314
109@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 2163.0, -1262.0, 24.0, 6, 1.0, 5.0, $scplayer)
Task.GoToCoordWhileShooting(-1, 2080.0, -1261.0, 24.0, 6, 1.0, 5.0, $scplayer)
Task.DestroyCar(-1, 543@)
Sequence.Close(109@)

:SWEET4_4314
return 

:SWEET4_4316
if 
  not Char.IsDead($scplayer)
goto_if_false @SWEET4_4377
110@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 545@, 546@, 547@, 4, 1.0, 5.0, $scplayer)
Task.DestroyCar(-1, 543@)
Sequence.Close(110@)

:SWEET4_4377
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(543@)
goto_if_false @SWEET4_4415
111@ = Sequence.Open()
Task.DestroyCar(-1, 543@)
Sequence.Close(111@)

:SWEET4_4415
if 
  not Char.IsDead($scplayer)
goto_if_false @SWEET4_4477
112@ = Sequence.Open()
Task.ShootAtCoord(-1, 1984.21, -1239.04, 20.5, 6000)
Task.FleeChar(-1, $scplayer, 50.0, -1)
Sequence.Close(112@)

:SWEET4_4477
if 
  not Char.IsDead($scplayer)
goto_if_false @SWEET4_4510
113@ = Sequence.Open()
Task.DestroyCar(-1, 543@)
Sequence.Close(113@)

:SWEET4_4510
return 

:SWEET4_4512
Stat.RegisterMissionGiven
$onmission = 1
wait 0
$6636 = 0
43@ = 0
$sw4_stage = 30
$sw4_hood_acc = 30000
$sw4_spray_marker = 0
$sw4_blipped = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 0
48@ = 0
396@ = 0
403@ = 0
410@ = 0
$sw4_cut = 0
$sw4_attack = 0
$6662 = 0
$6663 = 0
$6664 = 0
$sw4_hood_create = 0
$6666 = 0
$6667 = 0
77@ = 0
$sw4_ammo = 0
$sw4_hood_dead = 0
$6641 = 0
$6642 = 0
$6643 = 0
$6644 = 0
$6645 = 0
$6646 = 0
$6647 = 0
$6648 = 0
$6649 = 0
$6650 = 0
$6651 = 0
$6652 = 0
$6653 = 0
$6654 = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
34@ = 0
42@ = 0
84@ = 0
94@ = 0
98@ = 1
99@ = 2
100@ = 3
101@ = 4
117@ = 5
116@ = 6
96@ = 7
97@ = 8
118@ = 9
77@ = 0
85@ = 25.0
451@ = 2227.72
469@ = -1315.79
487@ = 24.04
456@ = 2099.8
474@ = -1288.37
492@ = 24.35
461@ = 2184.97
479@ = -1230.92
497@ = 24.02
466@ = 2157.77
484@ = -1345.03
502@ = 24.04
89@ = 2507.0
90@ = -1671.0
91@ = 12.0
119@ = 2500.026
129@ = -1661.18
139@ = 17.763
120@ = 2194.35
130@ = -1380.42
140@ = 24.34
121@ = 2082.42
131@ = -1362.58
141@ = 26.81
122@ = 2078.99
132@ = -1366.22
142@ = 25.09
123@ = 2152.0
133@ = -1339.0
143@ = 30.0
124@ = 2502.16
134@ = -1661.95
144@ = 15.76
125@ = 2509.18
135@ = -1662.81
145@ = 14.07
126@ = 2510.63
136@ = -1665.81
146@ = 13.83
127@ = 2511.89
137@ = -1668.39
147@ = 14.26
128@ = 0.0
138@ = 0.0
148@ = 0.0
54@ = 2132.239
55@ = -1379.652
56@ = 22.8281
455@ = 2101.57
473@ = -1287.65
491@ = 24.17
509@ = 5.0
459@ = 2161.07
477@ = -1265.92
495@ = 23.02
513@ = 257.59
463@ = 1983.8
481@ = -1235.98
499@ = 20.17
517@ = 318.72
391@ = 1
392@ = 2
389@ = 0
393@ = 1
390@ = 0
set_lvar_text_label 204@s = 'SWE4_AA'
set_lvar_text_label 206@s = 'SWE4_AB'
set_lvar_text_label 208@s = 'SWE4_AC'
set_lvar_text_label 210@s = 'SWE4_AD'
set_lvar_text_label 212@s = 'SWE4_AE'
set_lvar_text_label 214@s = 'SWE4_AF'
set_lvar_text_label 216@s = 'SWE4_AG'
set_lvar_text_label 218@s = 'SWE4_AH'
set_lvar_text_label 220@s = 'SWE4_AI'
set_lvar_text_label 222@s = 'SWE4_AJ'
set_lvar_text_label 224@s = 'SWE4_AK'
set_lvar_text_label 226@s = 'SWE4_BA'
set_lvar_text_label 228@s = 'SWE4_BB'
set_lvar_text_label 230@s = 'SWE4_BC'
set_lvar_text_label 232@s = 'SWE4_BD'
set_lvar_text_label 234@s = 'SWE4_BE'
set_lvar_text_label 236@s = 'SWE4_CA'
set_lvar_text_label 238@s = 'SWE4_CB'
set_lvar_text_label 240@s = 'SWE4_CC'
set_lvar_text_label 242@s = 'SWE4_DA'
set_lvar_text_label 244@s = 'SWE4_DB'
set_lvar_text_label 246@s = 'SWE4_DC'
set_lvar_text_label 248@s = 'SWE4_DD'
set_lvar_text_label 250@s = 'SWE4_DE'
set_lvar_text_label 252@s = 'SWE4_DF'
set_lvar_text_label 254@s = 'SWE4_EA'
set_lvar_text_label 256@s = 'SWE4_EB'
set_lvar_text_label 258@s = 'SWE4_EC'
set_lvar_text_label 260@s = 'SWE4_FA'
set_lvar_text_label 262@s = 'SWE4_FB'
set_lvar_text_label 264@s = 'SWE4_FC'
set_lvar_text_label 266@s = 'SWE4_FD'
set_lvar_text_label 268@s = 'SWE4_GA'
set_lvar_text_label 270@s = 'SWE4_GB'
set_lvar_text_label 272@s = 'SWE4_HA'
set_lvar_text_label 274@s = 'SWE4_HB'
set_lvar_text_label 276@s = 'SWE4_KA'
set_lvar_text_label 278@s = 'SWE4_KB'
set_lvar_text_label 280@s = 'SWE4_KC'
set_lvar_text_label 282@s = 'SWE4_KD'
set_lvar_text_label 284@s = 'SWE4_KF'
set_lvar_text_label 286@s = 'SWE4_KG'
set_lvar_text_label 288@s = 'SWE4_KH'
set_lvar_text_label 290@s = 'SWE4_KE'
set_lvar_text_label 292@s = 'SWE4_KI'
set_lvar_text_label 294@s = 'SWE4_LA'
set_lvar_text_label 296@s = 'SWE4_LB'
set_lvar_text_label 298@s = 'SWE4_LC'
set_lvar_text_label 300@s = 'SWE4_MA'
set_lvar_text_label 302@s = 'SWE4_MB'
set_lvar_text_label 304@s = 'SWE4_MC'
set_lvar_text_label 306@s = 'SWE4_MD'
set_lvar_text_label 308@s = 'SWE4_NA'
set_lvar_text_label 310@s = 'SWE4_NB'
set_lvar_text_label 312@s = 'SWE4_NC'
set_lvar_text_label 314@s = 'SWE4_OA'
set_lvar_text_label 316@s = 'SWE4_OB'
set_lvar_text_label 318@s = 'SWE4_OC'
set_lvar_text_label 320@s = 'SWE4_PA'
set_lvar_text_label 322@s = 'SWE4_PB'
set_lvar_text_label 324@s = 'SWE4_PC'
set_lvar_int_to_constant 328@ = 11405
set_lvar_int_to_constant 329@ = 11433
set_lvar_int_to_constant 330@ = 11434
set_lvar_int_to_constant 331@ = 11435
set_lvar_int_to_constant 332@ = 11406
set_lvar_int_to_constant 333@ = 11436
set_lvar_int_to_constant 334@ = 11400
set_lvar_int_to_constant 335@ = 11407
set_lvar_int_to_constant 336@ = 11408
set_lvar_int_to_constant 337@ = 11401
set_lvar_int_to_constant 338@ = 11409
set_lvar_int_to_constant 339@ = 11437
set_lvar_int_to_constant 340@ = 11402
set_lvar_int_to_constant 341@ = 11438
set_lvar_int_to_constant 342@ = 11410
set_lvar_int_to_constant 343@ = 11439
set_lvar_int_to_constant 344@ = 11411
set_lvar_int_to_constant 345@ = 11412
set_lvar_int_to_constant 346@ = 11413
set_lvar_int_to_constant 347@ = 11414
set_lvar_int_to_constant 348@ = 11415
set_lvar_int_to_constant 349@ = 11416
set_lvar_int_to_constant 350@ = 11417
set_lvar_int_to_constant 351@ = 11418
set_lvar_int_to_constant 352@ = 11419
set_lvar_int_to_constant 353@ = 11420
set_lvar_int_to_constant 354@ = 11440
set_lvar_int_to_constant 355@ = 11455
set_lvar_int_to_constant 356@ = 11421
set_lvar_int_to_constant 357@ = 11441
set_lvar_int_to_constant 358@ = 11422
set_lvar_int_to_constant 359@ = 11456
set_lvar_int_to_constant 360@ = 11442
set_lvar_int_to_constant 361@ = 11423
set_lvar_int_to_constant 362@ = 11443
set_lvar_int_to_constant 363@ = 11424
set_lvar_int_to_constant 364@ = 11444
set_lvar_int_to_constant 365@ = 11403
set_lvar_int_to_constant 366@ = 11425
set_lvar_int_to_constant 367@ = 11426
set_lvar_int_to_constant 368@ = 11445
set_lvar_int_to_constant 369@ = 11446
set_lvar_int_to_constant 370@ = 11447
set_lvar_int_to_constant 371@ = 11404
set_lvar_int_to_constant 372@ = 11457
set_lvar_int_to_constant 373@ = 11458
set_lvar_int_to_constant 374@ = 11448
set_lvar_int_to_constant 375@ = 11427
set_lvar_int_to_constant 376@ = 11459
set_lvar_int_to_constant 377@ = 11449
set_lvar_int_to_constant 378@ = 11450
set_lvar_int_to_constant 379@ = 11428
set_lvar_int_to_constant 380@ = 11429
set_lvar_int_to_constant 381@ = 11430
set_lvar_int_to_constant 382@ = 11431
set_lvar_int_to_constant 383@ = 11451
set_lvar_int_to_constant 384@ = 11452
set_lvar_int_to_constant 385@ = 11453
set_lvar_int_to_constant 386@ = 11460
set_lvar_int_to_constant 387@ = 11432
set_lvar_int_to_constant 388@ = 11454
Text.ClearThisPrint('M_FAIL')
Text.LoadMissionText('SWEET4')
World.ClearArea(2518.0, -1673.0, 14.0, 50.0, False)
Camera.DoFade(1000, Fade.Out)

:SWEET4_6965
if 
  Camera.GetFadingStatus
goto_if_false @SWEET4_6989
wait 0
goto @SWEET4_6965

:SWEET4_6989
Cutscene.Load('SWEET4A')
Camera.DoFade(0, Fade.Out)

:SWEET4_7006
if 
  not Cutscene.HasLoaded
goto_if_false @SWEET4_7030
wait 0
goto @SWEET4_7006

:SWEET4_7030
Camera.DoFade(0, Fade.Out)
Cutscene.Start
Camera.DoFade(0, Fade.Out)
Camera.DoFade(1000, Fade.In)

:SWEET4_7051
if 
  not Cutscene.HasFinished
goto_if_false @SWEET4_7075
wait 0
goto @SWEET4_7051

:SWEET4_7075
Camera.DoFade(0, Fade.Out)

:SWEET4_7081
if 
  Camera.GetFadingStatus
goto_if_false @SWEET4_7105
wait 0
goto @SWEET4_7081

:SWEET4_7105
Cutscene.Clear
Audio.SetMusicDoesFade(False)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Audio.SetRadioChannel(RadioChannel.CSR)
Game.SetCreateRandomGangMembers(False)
gosub @SWEET4_47
gosub @SWEET4_154
gosub @SWEET4_300
gosub @SWEET4_452
gosub @SWEET4_3106
if and
  not Char.IsDead(394@)
  not Char.IsDead(401@)
  not Char.IsDead(408@)
  not Car.IsDead(543@)
goto_if_false @SWEET4_7339
Char.SetNextDesiredMoveState(MoveState.Walk)
97@ = Sequence.Open()
Task.StandStill(-1, 1000)
Task.EnterCarAsPassenger(-1, 543@, -1, 0)
Sequence.Close(97@)
Char.PerformSequence(394@, 97@)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger(401@, 543@, -1, 1)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger(408@, 543@, -1, 2)
47@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Char.SetDecisionMaker(394@, 47@)
Char.SetDecisionMaker(401@, 47@)
Char.SetDecisionMaker(408@, 47@)
Char.SetCantBeDraggedOut($scplayer, True)
Char.SetCantBeDraggedOut(394@, True)
Char.SetCantBeDraggedOut(401@, True)
Char.SetCantBeDraggedOut(408@, True)
$6668 = Clock.GetGameTimer()
$sw4_text_timer_diff = -1

:SWEET4_7339
53@ = Game.GetMaxWantedLevel()
Game.SetMaxWantedLevel(0)
Game.SetCreateRandomCops(False)
Game.SwitchCopsOnBikes(False)
Camera.SetBehindPlayer
Game.SetWantedMultiplier(0.7)
Player.SetGroupRecruitment($player1, False)
if 
  not Char.IsDead($scplayer)
goto_if_false @SWEET4_7418
Char.SetCoordinates($scplayer, 2516.92, -1679.45, 13.42)
Char.SetHeading($scplayer, 27.25)

:SWEET4_7418
gosub @SWEET4_597
Text.PrintNow('SWE4_00', 5000, 1)
61@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.In)

:SWEET4_7477
wait 0
if 
  389@ <> 0
goto_if_false @SWEET4_7961
if 
  390@ == 0
goto_if_false @SWEET4_7545
if 
  Audio.HasMissionAudioLoaded(392@)
goto_if_false @SWEET4_7538
Audio.ClearMissionAudio(392@)

:SWEET4_7538
390@ = 1

:SWEET4_7545
if 
  390@ == 1
goto_if_false @SWEET4_7589
Audio.LoadMissionAudio(391@, 327@(389@,62i))
gosub @SWEET4_24349
390@ = 2

:SWEET4_7589
if 
  390@ == 2
goto_if_false @SWEET4_7698
if 
  Audio.HasMissionAudioLoaded(391@)
goto_if_false @SWEET4_7698
if 
  326@ <> 0
goto_if_false @SWEET4_7672
if 
  not Char.IsDead(326@)
goto_if_false @SWEET4_7672
Char.StartFacialTalk(326@, 10000)
Char.ShutUpForScriptedSpeech(326@, True)

:SWEET4_7672
Audio.PlayMissionAudio(391@)
Text.PrintNow(202@(389@,62s), 10000, 1)
390@ = 3

:SWEET4_7698
if 
  390@ == 3
goto_if_false @SWEET4_7961
if 
  Audio.HasMissionAudioFinished(391@)
goto_if_false @SWEET4_7900
Text.ClearThisPrint(202@(389@,62s))
if 
  326@ <> 0
goto_if_false @SWEET4_7787
if 
  not Char.IsDead(326@)
goto_if_false @SWEET4_7787
Char.StopFacialTalk(326@)
Char.ShutUpForScriptedSpeech(326@, False)

:SWEET4_7787
if 
  391@ == 1
goto_if_false @SWEET4_7826
391@ = 2
392@ = 1
goto @SWEET4_7840

:SWEET4_7826
391@ = 1
392@ = 2

:SWEET4_7840
389@ = 0
390@ = 0
if 
  $sw4_text_timer_diff == 2
goto_if_false @SWEET4_7886
$sw4_text_timer_diff = 6
goto @SWEET4_7893

:SWEET4_7886
$sw4_text_timer_diff += 1

:SWEET4_7893
goto @SWEET4_7961

:SWEET4_7900
if 
  not Audio.HasMissionAudioLoaded(392@)
goto_if_false @SWEET4_7961
if 
  60 > 389@
goto_if_false @SWEET4_7961
set_lvar_int_to_lvar_int 393@ = 389@
393@ += 1
Audio.LoadMissionAudio(392@, 327@(393@,62i))

:SWEET4_7961
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SWEET4_7983
goto @SWEET4_23663

:SWEET4_7983
if or
  8 > $6636
  $6636 == 666
goto_if_false @SWEET4_8058
if or
  Char.IsDead(394@)
  Char.IsDead(401@)
  Char.IsDead(408@)
goto_if_false @SWEET4_8058
Text.PrintNow('SWE4_04', 5000, 1)
goto @SWEET4_23645

:SWEET4_8058
if 
  Car.IsDead(543@)
goto_if_false @SWEET4_8097
Text.PrintNow('SWE4_04', 5000, 1)
goto @SWEET4_23645

:SWEET4_8097
if 
  $6636 == 0
goto_if_false @SWEET4_9056
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_9056
if and
  not Char.IsDead($scplayer)
  not Char.IsDead(394@)
  not Char.IsDead(401@)
  not Char.IsDead(408@)
goto_if_false @SWEET4_9056
if and
  Char.IsInCar($scplayer, 543@)
  Char.IsInCar(394@, 543@)
  Char.IsInCar(401@, 543@)
  Char.IsInCar(408@, 543@)
goto_if_false @SWEET4_8251
Text.ClearPrints
Char.ClearLookAt(394@)
Blip.Remove(544@)
Blip.Remove(395@)
Blip.Remove(402@)
Blip.Remove(409@)
$6668 = Clock.GetGameTimer()
$sw4_spray_marker = 0
$6636 = 1

:SWEET4_8251
if 
  Char.IsInCar($scplayer, 543@)
goto_if_false @SWEET4_9056
if 
  396@ == 0
goto_if_false @SWEET4_8334
if 
  not Char.IsInCar(394@, 543@)
goto_if_false @SWEET4_8334
Blip.Remove(544@)
395@ = Blip.AddForChar(394@)
Blip.SetAsFriendly(395@, True)
396@ = 1

:SWEET4_8334
if 
  396@ == 1
goto_if_false @SWEET4_8448
if 
  not Char.IsInCar(394@, 543@)
goto_if_false @SWEET4_8448
if 
  not Char.LocateOnFootCar2D(394@, 543@, 8.0, 8.0, False)
goto_if_false @SWEET4_8424
Text.PrintNow('SWE4_09', 100, 1)
goto @SWEET4_8448

:SWEET4_8424
Task.EnterCarAsPassenger(394@, 543@, -1, 0)
61@ = Clock.GetGameTimer()
396@ = 2

:SWEET4_8448
if 
  396@ == 2
goto_if_false @SWEET4_8532
67@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 1000
goto_if_false @SWEET4_8532
if 
  73@ > 3000
goto_if_false @SWEET4_8532
396@ = 1

:SWEET4_8532
if 
  403@ == 0
goto_if_false @SWEET4_8596
if 
  not Char.IsInCar(401@, 543@)
goto_if_false @SWEET4_8596
Blip.Remove(544@)
402@ = Blip.AddForChar(401@)
Blip.SetAsFriendly(402@, True)
403@ = 1

:SWEET4_8596
if 
  403@ == 1
goto_if_false @SWEET4_8710
if 
  not Char.IsInCar(401@, 543@)
goto_if_false @SWEET4_8710
if 
  not Char.LocateOnFootCar2D(401@, 543@, 8.0, 8.0, False)
goto_if_false @SWEET4_8686
Text.PrintNow('SWE4_10', 100, 1)
goto @SWEET4_8710

:SWEET4_8686
Task.EnterCarAsPassenger(401@, 543@, -1, 1)
61@ = Clock.GetGameTimer()
403@ = 2

:SWEET4_8710
if 
  403@ == 2
goto_if_false @SWEET4_8794
67@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 1000
goto_if_false @SWEET4_8794
if 
  73@ > 3000
goto_if_false @SWEET4_8794
403@ = 1

:SWEET4_8794
if 
  410@ == 0
goto_if_false @SWEET4_8858
if 
  not Char.IsInCar(408@, 543@)
goto_if_false @SWEET4_8858
Blip.Remove(544@)
409@ = Blip.AddForChar(408@)
Blip.SetAsFriendly(409@, True)
410@ = 1

:SWEET4_8858
if 
  410@ == 1
goto_if_false @SWEET4_8972
if 
  not Char.IsInCar(408@, 543@)
goto_if_false @SWEET4_8972
if 
  not Char.LocateOnFootCar2D(408@, 543@, 8.0, 8.0, False)
goto_if_false @SWEET4_8948
Text.PrintNow('SWE4_11', 100, 1)
goto @SWEET4_8972

:SWEET4_8948
Task.EnterCarAsPassenger(408@, 543@, -1, 2)
61@ = Clock.GetGameTimer()
410@ = 2

:SWEET4_8972
if 
  410@ == 2
goto_if_false @SWEET4_9056
67@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 1000
goto_if_false @SWEET4_9056
if 
  73@ > 3000
goto_if_false @SWEET4_9056
410@ = 1

:SWEET4_9056
if and
  not Char.IsDead($scplayer)
  not Char.IsDead(394@)
  not Char.IsDead(401@)
  not Char.IsDead(408@)
goto_if_false @SWEET4_10027
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_10027
if and
  Char.IsInCar($scplayer, 543@)
  Char.IsInCar(394@, 543@)
  Char.IsInCar(401@, 543@)
  Char.IsInCar(408@, 543@)
goto_if_false @SWEET4_10027
if 
  $6636 == 1
goto_if_false @SWEET4_9171
$6636 = 2

:SWEET4_9171
if 
  $6636 == 2
goto_if_false @SWEET4_9229
$sw4_blipped = 0
World.SetPedDensityMultiplier(0.0)
57@ = Blip.AddForCoord(54@, 55@, 56@)
61@ = Clock.GetGameTimer()
$6636 = 3

:SWEET4_9229
if 
  $6636 == 3
goto_if_false @SWEET4_9387
if 
  43@ == 0
goto_if_false @SWEET4_9317
67@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 6000
goto_if_false @SWEET4_9317
61@ = Clock.GetGameTimer()
43@ = 1

:SWEET4_9317
if 
  43@ == 1
goto_if_false @SWEET4_9387
67@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 5000
goto_if_false @SWEET4_9387
61@ = Clock.GetGameTimer()
43@ = 2

:SWEET4_9387
if 
  $6636 == 3
goto_if_false @SWEET4_10027
if and
  $sw4_hood_create == 0
  34@ == 0
goto_if_false @SWEET4_10027
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_10027
if 
  Char.LocateInCar3D($scplayer, 54@, 55@, 56@, 150.0, 150.0, 150.0, False)
goto_if_false @SWEET4_9513
if 
  42@ == 0
goto_if_false @SWEET4_9513
World.SetPedDensityMultiplier(0.0)

:SWEET4_9513
if 
  Char.LocateInCar3D($scplayer, 54@, 55@, 56@, 4.0, 4.0, 4.0, True)
goto_if_false @SWEET4_10027
if 
  Char.IsSittingInCar($scplayer, 543@)
goto_if_false @SWEET4_10027
Player.SetControl($player1, False)
$sw4_text_timer_diff = 9
Blip.Remove(57@)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.DoFade(300, Fade.Out)
$6668 = Clock.GetGameTimer()
Task.PlayAnim($scplayer, "GDB_CAR_PLY", "GHETTO_DB", 4.0, False, False, False, False, 0)
Char.SetCurrentWeapon(394@, WeaponType.Tec9)
Task.PlayAnim(394@, "GDB_CAR_SMO", "GHETTO_DB", 4.0, False, False, False, False, 0)
Char.SetCurrentWeapon(408@, WeaponType.Tec9)
Task.PlayAnim(408@, "GDB_CAR_SWE", "GHETTO_DB", 4.0, False, False, False, False, 0)
Char.SetCurrentWeapon(401@, WeaponType.Tec9)
Task.PlayAnim(401@, "GDB_CAR_RYD", "GHETTO_DB", 4.0, False, False, False, False, 0)
Car.SetCanBeVisiblyDamaged(543@, False)
198@ = Object.Create(#KB_BEER, 2440.58, -1979.89, 14.2)
gosub @SWEET4_842
gosub @SWEET4_3303
gosub @SWEET4_3451
if 
  not Char.IsDead(418@)
goto_if_false @SWEET4_9927
Char.HideWeaponForScriptedCutscene(418@, True)
Task.PickUpObject(418@, 198@, 0.1, 0.1, 0.0, 6, 16, "NULL", "NULL", -1)

:SWEET4_9927
Streaming.RequestModel(#LAEROAD30)

:SWEET4_9931
if 
  Camera.GetFadingStatus
goto_if_false @SWEET4_9955
wait 0
goto @SWEET4_9931

:SWEET4_9955
if 
  not Streaming.HasModelLoaded(#LAEROAD30)
goto_if_false @SWEET4_9981
wait 0
goto @SWEET4_9955

:SWEET4_9981
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_10006
Car.PopPanel(543@, 4, True)

:SWEET4_10006
$6636 = 4
34@ = 1
$6664 = 1

:SWEET4_10027
if and
  $6636 == 4
  $sw4_blipped == 0
goto_if_false @SWEET4_10111
if and
  not Char.IsDead(401@)
  not Char.IsDead(394@)
goto_if_false @SWEET4_10111
if and
  not Car.IsDead(543@)
  not Char.IsDead(408@)
goto_if_false @SWEET4_10111
59@ = Clock.GetGameTimer()
$6668 = Clock.GetGameTimer()
$sw4_blipped = 1

:SWEET4_10111
if 
  $6636 == 4
goto_if_false @SWEET4_11385
if 
  $sw4_blipped > 0
goto_if_false @SWEET4_10227
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 2000
goto_if_false @SWEET4_10227
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SWEET4_10227
Text.ClearPrints
$sw4_text_timer_diff = 14
50@ = 1
$sw4_blipped = 4

:SWEET4_10227
if 
  $sw4_blipped == 1
goto_if_false @SWEET4_10481
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 300
goto_if_false @SWEET4_10481
if 
  $6664 == 1
goto_if_false @SWEET4_10481
if 
  not Char.IsDead(401@)
goto_if_false @SWEET4_10481
Camera.SetNearClip(0.1)
120@, 130@, 140@ = Car.GetOffsetInWorldCoords(543@, -0.337, 1.566, 0.657)
122@, 132@, 142@ = Car.GetOffsetInWorldCoords(543@, 0.038, -1.033, 0.088)
Camera.SetFixedPosition(120@, 130@, 140@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(122@, 132@, 142@, SwitchType.JumpCut)
59@ = Clock.GetGameTimer()
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(300, Fade.In)

:SWEET4_10443
if 
  Camera.GetFadingStatus
goto_if_false @SWEET4_10467
wait 0
goto @SWEET4_10443

:SWEET4_10467
$sw4_text_timer_diff = 9
$sw4_blipped = 2

:SWEET4_10481
if 
  $sw4_blipped == 2
goto_if_false @SWEET4_10603
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 10700
goto_if_false @SWEET4_10603
if 
  $6664 == 1
goto_if_false @SWEET4_10603
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(300, Fade.Out)

:SWEET4_10572
if 
  Camera.GetFadingStatus
goto_if_false @SWEET4_10596
wait 0
goto @SWEET4_10572

:SWEET4_10596
$sw4_blipped = 31

:SWEET4_10603
if 
  $sw4_blipped == 31
goto_if_false @SWEET4_10765
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 11000
goto_if_false @SWEET4_10765
Camera.SetNearClip(0.1)
Camera.SetFadingColor(0, 0, 0)
Camera.SetFixedPosition(2098.139, -1385.882, 30.5735, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2098.952, -1385.364, 30.3086, SwitchType.JumpCut)
Camera.DoFade(300, Fade.In)

:SWEET4_10734
if 
  Camera.GetFadingStatus
goto_if_false @SWEET4_10758
wait 0
goto @SWEET4_10734

:SWEET4_10758
$sw4_blipped = 3

:SWEET4_10765
if 
  $sw4_blipped == 3
goto_if_false @SWEET4_11024
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 13000
goto_if_false @SWEET4_11024
if 
  $6664 == 1
goto_if_false @SWEET4_11024
if 
  not Car.IsDead(523@)
goto_if_false @SWEET4_11024
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2098.139, -1385.882, 30.5735, 2075.787, -1369.657, 23.6289, 3500, True)
Camera.SetVectorTrack(2098.952, -1385.364, 30.3086, 2076.316, -1368.814, 23.7227, 3500, True)
if 
  not Char.IsDead(417@)
goto_if_false @SWEET4_10993
Task.PlayAnim(417@, "GSIGN1", "GHANDS", 4.0, False, False, False, False, 0)

:SWEET4_10993
if 
  not Char.IsDead(416@)
goto_if_false @SWEET4_11017
Char.PerformSequence(416@, 118@)

:SWEET4_11017
$sw4_blipped = 4

:SWEET4_11024
if 
  $sw4_blipped == 4
goto_if_false @SWEET4_11111
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if or
  71@ > 20000
  50@ == 1
goto_if_false @SWEET4_11111
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(300, Fade.Out)
$sw4_blipped = 6

:SWEET4_11111
if 
  $sw4_blipped == 6
goto_if_false @SWEET4_11385
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if or
  71@ > 21000
  50@ == 1
goto_if_false @SWEET4_11385
Text.ClearPrints
$sw4_text_timer_diff = 14
Streaming.MarkModelAsNoLongerNeeded(#LAEROAD30)
Camera.ResetNewScriptables
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(300, Fade.In)
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("GHANDS")
62@ = Clock.GetGameTimer()
63@ = Clock.GetGameTimer()
64@ = Clock.GetGameTimer()
Text.PrintHelp('SWE4_13')
Car.FixPanel(543@, 4)
World.ClearArea(54@, 55@, 56@, 4.0, True)
Car.SetCanBeVisiblyDamaged(543@, True)
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_11364
$sw4_health_display = Car.GetHealth(543@)
if 
  $sw4_health_display > 250
goto_if_false @SWEET4_11349
$sw4_health_display -= 250

:SWEET4_11349
set_var_int_to_var_int $sw4_text_timer_flag = $sw4_health_display
$sw4_text_timer_flag /= 10

:SWEET4_11364
$sw4_spray_marker = 1
50@ = 0
$6636 = 5

:SWEET4_11385
if and
  $6636 == 5
  $sw4_blipped >= 6
goto_if_false @SWEET4_12654
70@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 76@ = 70@
sub_int_lvar_from_int_lvar 76@ -= 64@
if 
  76@ > 5000
goto_if_false @SWEET4_11512
if 
  84@ == 0
goto_if_false @SWEET4_11512
Hud.ClearCounter($sw4_text_timer_flag)
Hud.DisplayCounterWithString($sw4_text_timer_flag, CounterDisplay.Bar, 'SWE4_08')
Text.PrintHelp('SWE4_15')
62@ = Clock.GetGameTimer()
84@ = 1

:SWEET4_11512
if and
  $sw4_cut == 0
  $6664 == 1
goto_if_false @SWEET4_11717
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_11717
if and
  not Char.IsDead(415@)
  not Char.IsDead(394@)
goto_if_false @SWEET4_11717
if or
  Car.Locate3D(543@, 451@, 469@, 487@, 85@, 85@, 85@, False)
  Char.IsShooting(394@)
goto_if_false @SWEET4_11717
if and
  not Char.IsDead(416@)
  not Char.IsDead(417@)
  not Char.IsDead(418@)
  not Car.IsDead(523@)
goto_if_false @SWEET4_11717
Object.Delete(198@)
Char.SetCurrentWeapon(418@, WeaponType.Pistol)
Char.PerformSequence(415@, 98@)
Sequence.Clear(98@)
Char.PerformSequence(416@, 99@)
Sequence.Clear(99@)
Char.PerformSequence(417@, 100@)
Sequence.Clear(100@)
Char.PerformSequence(418@, 101@)
Sequence.Clear(101@)
$sw4_cut = 1

:SWEET4_11717
if and
  $sw4_attack == 0
  $sw4_hood_create == 1
goto_if_false @SWEET4_11910
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_11910
if and
  not Char.IsDead(419@)
  not Char.IsDead(394@)
goto_if_false @SWEET4_11910
if or
  Car.Locate3D(543@, 455@, 473@, 491@, 85@, 85@, 85@, False)
  Char.IsShooting(394@)
goto_if_false @SWEET4_11910
if and
  not Char.IsDead(420@)
  not Char.IsDead(421@)
  not Char.IsDead(422@)
  not Car.IsDead(524@)
goto_if_false @SWEET4_11910
Char.PerformSequence(419@, 102@)
Sequence.Clear(102@)
Char.PerformSequence(420@, 103@)
Sequence.Clear(103@)
Char.PerformSequence(421@, 104@)
Sequence.Clear(104@)
Char.PerformSequence(422@, 105@)
Sequence.Clear(105@)
$sw4_attack = 1

:SWEET4_11910
if and
  $6662 == 0
  $6666 == 1
goto_if_false @SWEET4_12098
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_12098
if and
  not Char.IsDead(423@)
  not Char.IsDead(394@)
goto_if_false @SWEET4_12098
if or
  Car.Locate3D(543@, 459@, 477@, 495@, 85@, 85@, 85@, False)
  Char.IsShooting(394@)
goto_if_false @SWEET4_12098
if and
  not Char.IsDead(424@)
  not Char.IsDead(425@)
  not Char.IsDead(426@)
goto_if_false @SWEET4_12098
Char.PerformSequence(423@, 106@)
Sequence.Clear(106@)
Char.PerformSequence(424@, 107@)
Sequence.Clear(107@)
Char.PerformSequence(425@, 108@)
Sequence.Clear(108@)
Char.PerformSequence(426@, 109@)
Sequence.Clear(109@)
$6662 = 1

:SWEET4_12098
if and
  $6663 == 0
  $6667 == 1
goto_if_false @SWEET4_12286
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_12286
if and
  not Char.IsDead(427@)
  not Char.IsDead(394@)
goto_if_false @SWEET4_12286
if or
  Car.Locate3D(543@, 463@, 481@, 499@, 85@, 85@, 85@, False)
  Char.IsShooting(394@)
goto_if_false @SWEET4_12286
if and
  not Char.IsDead(428@)
  not Char.IsDead(429@)
  not Char.IsDead(430@)
goto_if_false @SWEET4_12286
Char.PerformSequence(427@, 110@)
Sequence.Clear(110@)
Char.PerformSequence(428@, 111@)
Sequence.Clear(111@)
Char.PerformSequence(429@, 112@)
Sequence.Clear(112@)
Char.PerformSequence(430@, 113@)
Sequence.Clear(113@)
$6663 = 1

:SWEET4_12286
if and
  $sw4_hood_create == 0
  34@ == 2
  $sw4_spray_marker == 0
goto_if_false @SWEET4_12430
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_12430
if 
  not Camera.IsPointOnScreen(455@, 473@, 491@, 4.0)
goto_if_false @SWEET4_12430
if 
  not Char.LocateAnyMeans3D($scplayer, 455@, 473@, 491@, 85@, 85@, 85@, False)
goto_if_false @SWEET4_12430
gosub @SWEET4_1419
gosub @SWEET4_3305
gosub @SWEET4_3787
Streaming.MarkModelAsNoLongerNeeded(412)
$sw4_hood_create = 1

:SWEET4_12430
if and
  $6666 == 0
  34@ == 3
  $sw4_spray_marker == 0
goto_if_false @SWEET4_12542
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_12542
if 
  not Char.LocateAnyMeans3D($scplayer, 459@, 477@, 495@, 85@, 85@, 85@, False)
goto_if_false @SWEET4_12542
gosub @SWEET4_1989
gosub @SWEET4_3307
gosub @SWEET4_4035
$6666 = 1

:SWEET4_12542
if and
  $6667 == 0
  34@ == 4
  $sw4_spray_marker == 0
goto_if_false @SWEET4_12654
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_12654
if 
  not Char.LocateAnyMeans3D($scplayer, 463@, 481@, 499@, 85@, 85@, 85@, False)
goto_if_false @SWEET4_12654
gosub @SWEET4_2503
gosub @SWEET4_3379
gosub @SWEET4_4316
$6667 = 1

:SWEET4_12654
if 
  $6636 > 4
goto_if_false @SWEET4_14589
if and
  not Char.IsDead($scplayer)
  not Char.IsDead(394@)
  not Char.IsDead(401@)
  not Char.IsDead(408@)
goto_if_false @SWEET4_12967
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_12967
if and
  Char.IsInCar($scplayer, 543@)
  Char.IsInCar(394@, 543@)
  Char.IsInCar(401@, 543@)
  Char.IsInCar(408@, 543@)
goto_if_false @SWEET4_12967
if 
  not Car.IsOnFire(543@)
goto_if_false @SWEET4_12937
if 
  48@ == 1
goto_if_false @SWEET4_12824
Hud.ClearCounter($sw4_text_timer_flag)
Hud.DisplayCounterWithString($sw4_text_timer_flag, CounterDisplay.Bar, 'SWE4_08')
48@ = 0

:SWEET4_12824
$sw4_health_display = Car.GetHealth(543@)
$sw4_health_display -= 250
set_var_int_to_var_int $sw4_text_timer_flag = $sw4_health_display
$sw4_text_timer_flag /= 12
if 
  Char.LocateStoppedInCar3D($scplayer, 2067.0, -1831.0, 13.0, 5.0, 5.0, 5.0, False)
goto_if_false @SWEET4_12930
if 
  $sw4_health_display == 750
goto_if_false @SWEET4_12930
Car.SetHealth(543@, 1450)

:SWEET4_12930
goto @SWEET4_12967

:SWEET4_12937
if 
  48@ == 0
goto_if_false @SWEET4_12967
Hud.ClearCounter($sw4_text_timer_flag)
48@ = 1

:SWEET4_12967
68@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 74@ = 68@
sub_int_lvar_from_int_lvar 74@ -= 62@
if or
  74@ > 2000
  Char.IsDead(195@)
goto_if_false @SWEET4_13078
set_lvar_int_to_constant 41@ = 8
set_lvar_int_to_lvar_int 194@ = 408@
gosub @SWEET4_24058
set_lvar_int_to_constant 41@ = 8
set_lvar_int_to_lvar_int 194@ = 401@
gosub @SWEET4_24058
set_lvar_int_to_constant 41@ = 8
set_lvar_int_to_lvar_int 194@ = 394@
gosub @SWEET4_24058

:SWEET4_13078
if 
  $6664 == 1
goto_if_false @SWEET4_13467
if 
  34@ == 1
goto_if_false @SWEET4_13467
if 
  $sw4_ammo == 0
goto_if_false @SWEET4_13172
if 
  Char.IsDead(415@)
goto_if_false @SWEET4_13172
Blip.Remove(433@)
Char.MarkAsNoLongerNeeded(415@)
77@ += 1
$sw4_ammo = 1

:SWEET4_13172
if 
  $sw4_hood_dead == 0
goto_if_false @SWEET4_13230
if 
  Char.IsDead(416@)
goto_if_false @SWEET4_13230
Blip.Remove(434@)
Char.MarkAsNoLongerNeeded(416@)
77@ += 1
$sw4_hood_dead = 1

:SWEET4_13230
if 
  $6641 == 0
goto_if_false @SWEET4_13288
if 
  Char.IsDead(417@)
goto_if_false @SWEET4_13288
Blip.Remove(435@)
Char.MarkAsNoLongerNeeded(417@)
77@ += 1
$6641 = 1

:SWEET4_13288
if 
  $6642 == 0
goto_if_false @SWEET4_13346
if 
  Char.IsDead(418@)
goto_if_false @SWEET4_13346
Blip.Remove(436@)
Char.MarkAsNoLongerNeeded(418@)
77@ += 1
$6642 = 1

:SWEET4_13346
if 
  35@ == 0
goto_if_false @SWEET4_13467
if and
  $sw4_ammo == 1
  $sw4_hood_dead == 1
  $6641 == 1
  $6642 == 1
goto_if_false @SWEET4_13467
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_13453
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_13453
389@ = 46

:SWEET4_13453
34@ = 2
35@ = 1

:SWEET4_13467
if 
  $sw4_hood_create == 1
goto_if_false @SWEET4_13856
if 
  34@ == 2
goto_if_false @SWEET4_13856
if 
  $6643 == 0
goto_if_false @SWEET4_13561
if 
  Char.IsDead(419@)
goto_if_false @SWEET4_13561
Blip.Remove(437@)
Char.MarkAsNoLongerNeeded(419@)
77@ += 1
$6643 = 1

:SWEET4_13561
if 
  $6644 == 0
goto_if_false @SWEET4_13619
if 
  Char.IsDead(420@)
goto_if_false @SWEET4_13619
Blip.Remove(438@)
Char.MarkAsNoLongerNeeded(420@)
77@ += 1
$6644 = 1

:SWEET4_13619
if 
  $6645 == 0
goto_if_false @SWEET4_13677
if 
  Char.IsDead(421@)
goto_if_false @SWEET4_13677
Blip.Remove(439@)
Char.MarkAsNoLongerNeeded(421@)
77@ += 1
$6645 = 1

:SWEET4_13677
if 
  $6646 == 0
goto_if_false @SWEET4_13735
if 
  Char.IsDead(422@)
goto_if_false @SWEET4_13735
Blip.Remove(440@)
Char.MarkAsNoLongerNeeded(422@)
77@ += 1
$6646 = 1

:SWEET4_13735
if 
  36@ == 0
goto_if_false @SWEET4_13856
if and
  $6643 == 1
  $6644 == 1
  $6645 == 1
  $6646 == 1
goto_if_false @SWEET4_13856
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_13842
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_13842
389@ = 47

:SWEET4_13842
34@ = 3
36@ = 1

:SWEET4_13856
if 
  $6666 == 1
goto_if_false @SWEET4_14245
if 
  34@ == 3
goto_if_false @SWEET4_14245
if 
  $6647 == 0
goto_if_false @SWEET4_13950
if 
  Char.IsDead(423@)
goto_if_false @SWEET4_13950
Blip.Remove(441@)
Char.MarkAsNoLongerNeeded(423@)
77@ += 1
$6647 = 1

:SWEET4_13950
if 
  $6648 == 0
goto_if_false @SWEET4_14008
if 
  Char.IsDead(424@)
goto_if_false @SWEET4_14008
Blip.Remove(442@)
Char.MarkAsNoLongerNeeded(424@)
77@ += 1
$6648 = 1

:SWEET4_14008
if 
  $6649 == 0
goto_if_false @SWEET4_14066
if 
  Char.IsDead(425@)
goto_if_false @SWEET4_14066
Blip.Remove(443@)
Char.MarkAsNoLongerNeeded(425@)
77@ += 1
$6649 = 1

:SWEET4_14066
if 
  $6650 == 0
goto_if_false @SWEET4_14124
if 
  Char.IsDead(426@)
goto_if_false @SWEET4_14124
Blip.Remove(444@)
Char.MarkAsNoLongerNeeded(426@)
77@ += 1
$6650 = 1

:SWEET4_14124
if 
  37@ == 0
goto_if_false @SWEET4_14245
if and
  $6647 == 1
  $6648 == 1
  $6649 == 1
  $6650 == 1
goto_if_false @SWEET4_14245
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_14231
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_14231
389@ = 48

:SWEET4_14231
34@ = 4
37@ = 1

:SWEET4_14245
if 
  $6667 == 1
goto_if_false @SWEET4_14589
if 
  34@ == 4
goto_if_false @SWEET4_14589
if 
  $6651 == 0
goto_if_false @SWEET4_14339
if 
  Char.IsDead(427@)
goto_if_false @SWEET4_14339
Blip.Remove(445@)
Char.MarkAsNoLongerNeeded(427@)
77@ += 1
$6651 = 1

:SWEET4_14339
if 
  $6652 == 0
goto_if_false @SWEET4_14397
if 
  Char.IsDead(428@)
goto_if_false @SWEET4_14397
Blip.Remove(446@)
Char.MarkAsNoLongerNeeded(428@)
77@ += 1
$6652 = 1

:SWEET4_14397
if 
  $6653 == 0
goto_if_false @SWEET4_14455
if 
  Char.IsDead(429@)
goto_if_false @SWEET4_14455
Blip.Remove(447@)
Char.MarkAsNoLongerNeeded(429@)
77@ += 1
$6653 = 1

:SWEET4_14455
if 
  $6654 == 0
goto_if_false @SWEET4_14513
if 
  Char.IsDead(430@)
goto_if_false @SWEET4_14513
Blip.Remove(448@)
Char.MarkAsNoLongerNeeded(430@)
77@ += 1
$6654 = 1

:SWEET4_14513
if 
  38@ == 0
goto_if_false @SWEET4_14589
if and
  $6651 == 1
  $6652 == 1
  $6653 == 1
  $6654 == 1
goto_if_false @SWEET4_14589
$6668 = Clock.GetGameTimer()
34@ = 1
38@ = 0

:SWEET4_14589
if 
  $6636 == 5
goto_if_false @SWEET4_16380
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_16049
if 
  45@ == 0
goto_if_false @SWEET4_15077
if and
  Car.IsStopped(543@)
  Char.IsInCar($scplayer, 543@)
goto_if_false @SWEET4_15077
59@ = Clock.GetGameTimer()
44@ = Math.RandomIntInRange(0, 5)
$sw4_stage = 50
if 
  not Char.IsDead(415@)
goto_if_false @SWEET4_14710
Char.SetAccuracy(415@, $sw4_stage)

:SWEET4_14710
if 
  not Char.IsDead(416@)
goto_if_false @SWEET4_14734
Char.SetAccuracy(416@, $sw4_stage)

:SWEET4_14734
if 
  not Char.IsDead(417@)
goto_if_false @SWEET4_14758
Char.SetAccuracy(417@, $sw4_stage)

:SWEET4_14758
if 
  not Char.IsDead(418@)
goto_if_false @SWEET4_14782
Char.SetAccuracy(418@, $sw4_stage)

:SWEET4_14782
if 
  not Char.IsDead(419@)
goto_if_false @SWEET4_14806
Char.SetAccuracy(419@, $sw4_stage)

:SWEET4_14806
if 
  not Char.IsDead(420@)
goto_if_false @SWEET4_14830
Char.SetAccuracy(420@, $sw4_stage)

:SWEET4_14830
if 
  not Char.IsDead(421@)
goto_if_false @SWEET4_14854
Char.SetAccuracy(421@, $sw4_stage)

:SWEET4_14854
if 
  not Char.IsDead(422@)
goto_if_false @SWEET4_14878
Char.SetAccuracy(422@, $sw4_stage)

:SWEET4_14878
if 
  not Char.IsDead(423@)
goto_if_false @SWEET4_14902
Char.SetAccuracy(423@, $sw4_stage)

:SWEET4_14902
if 
  not Char.IsDead(424@)
goto_if_false @SWEET4_14926
Char.SetAccuracy(424@, $sw4_stage)

:SWEET4_14926
if 
  not Char.IsDead(425@)
goto_if_false @SWEET4_14950
Char.SetAccuracy(425@, $sw4_stage)

:SWEET4_14950
if 
  not Char.IsDead(426@)
goto_if_false @SWEET4_14974
Char.SetAccuracy(426@, $sw4_stage)

:SWEET4_14974
if 
  not Char.IsDead(427@)
goto_if_false @SWEET4_14998
Char.SetAccuracy(427@, $sw4_stage)

:SWEET4_14998
if 
  not Char.IsDead(428@)
goto_if_false @SWEET4_15022
Char.SetAccuracy(428@, $sw4_stage)

:SWEET4_15022
if 
  not Char.IsDead(429@)
goto_if_false @SWEET4_15046
Char.SetAccuracy(429@, $sw4_stage)

:SWEET4_15046
if 
  not Char.IsDead(430@)
goto_if_false @SWEET4_15070
Char.SetAccuracy(430@, $sw4_stage)

:SWEET4_15070
45@ = 1

:SWEET4_15077
if 
  45@ == 1
goto_if_false @SWEET4_15577
69@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 75@ = 69@
sub_int_lvar_from_int_lvar 75@ -= 63@
if 
  75@ > 3000
goto_if_false @SWEET4_15577
if 
  Car.IsStopped(543@)
goto_if_false @SWEET4_15570
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 250
goto_if_false @SWEET4_15563
if 
  44@ == 0
goto_if_false @SWEET4_15253
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15253
389@ = 20
59@ = Clock.GetGameTimer()
45@ = 2

:SWEET4_15253
if 
  44@ == 1
goto_if_false @SWEET4_15315
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15315
389@ = 21
59@ = Clock.GetGameTimer()
45@ = 2

:SWEET4_15315
if 
  44@ == 2
goto_if_false @SWEET4_15377
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15377
389@ = 22
59@ = Clock.GetGameTimer()
45@ = 2

:SWEET4_15377
if 
  44@ == 3
goto_if_false @SWEET4_15439
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15439
389@ = 23
59@ = Clock.GetGameTimer()
45@ = 2

:SWEET4_15439
if 
  44@ == 4
goto_if_false @SWEET4_15501
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15501
389@ = 24
59@ = Clock.GetGameTimer()
45@ = 2

:SWEET4_15501
if 
  44@ == 5
goto_if_false @SWEET4_15563
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15563
389@ = 25
59@ = Clock.GetGameTimer()
45@ = 2

:SWEET4_15563
goto @SWEET4_15577

:SWEET4_15570
45@ = 2

:SWEET4_15577
if 
  45@ == 2
goto_if_false @SWEET4_16049
if 
  not Car.IsStopped(543@)
goto_if_false @SWEET4_16049
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 3100
goto_if_false @SWEET4_15658
45@ = 0

:SWEET4_15658
$sw4_stage = 30
if 
  not Char.IsDead(415@)
goto_if_false @SWEET4_15689
Char.SetAccuracy(415@, $sw4_stage)

:SWEET4_15689
if 
  not Char.IsDead(416@)
goto_if_false @SWEET4_15713
Char.SetAccuracy(416@, $sw4_stage)

:SWEET4_15713
if 
  not Char.IsDead(417@)
goto_if_false @SWEET4_15737
Char.SetAccuracy(417@, $sw4_stage)

:SWEET4_15737
if 
  not Char.IsDead(418@)
goto_if_false @SWEET4_15761
Char.SetAccuracy(418@, $sw4_stage)

:SWEET4_15761
if 
  not Char.IsDead(419@)
goto_if_false @SWEET4_15785
Char.SetAccuracy(419@, $sw4_stage)

:SWEET4_15785
if 
  not Char.IsDead(420@)
goto_if_false @SWEET4_15809
Char.SetAccuracy(420@, $sw4_stage)

:SWEET4_15809
if 
  not Char.IsDead(421@)
goto_if_false @SWEET4_15833
Char.SetAccuracy(421@, $sw4_stage)

:SWEET4_15833
if 
  not Char.IsDead(422@)
goto_if_false @SWEET4_15857
Char.SetAccuracy(422@, $sw4_stage)

:SWEET4_15857
if 
  not Char.IsDead(423@)
goto_if_false @SWEET4_15881
Char.SetAccuracy(423@, $sw4_stage)

:SWEET4_15881
if 
  not Char.IsDead(424@)
goto_if_false @SWEET4_15905
Char.SetAccuracy(424@, $sw4_stage)

:SWEET4_15905
if 
  not Char.IsDead(425@)
goto_if_false @SWEET4_15929
Char.SetAccuracy(425@, $sw4_stage)

:SWEET4_15929
if 
  not Char.IsDead(426@)
goto_if_false @SWEET4_15953
Char.SetAccuracy(426@, $sw4_stage)

:SWEET4_15953
if 
  not Char.IsDead(427@)
goto_if_false @SWEET4_15977
Char.SetAccuracy(427@, $sw4_stage)

:SWEET4_15977
if 
  not Char.IsDead(428@)
goto_if_false @SWEET4_16001
Char.SetAccuracy(428@, $sw4_stage)

:SWEET4_16001
if 
  not Char.IsDead(429@)
goto_if_false @SWEET4_16025
Char.SetAccuracy(429@, $sw4_stage)

:SWEET4_16025
if 
  not Char.IsDead(430@)
goto_if_false @SWEET4_16049
Char.SetAccuracy(430@, $sw4_stage)

:SWEET4_16049
if 
  77@ == 16
goto_if_false @SWEET4_16111
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_16111
389@ = 33
82@ = Clock.GetGameTimer()
77@ = 17

:SWEET4_16111
if 
  77@ == 17
goto_if_false @SWEET4_16380
81@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 80@ = 81@
sub_int_lvar_from_int_lvar 80@ -= 82@
if 
  80@ > 3000
goto_if_false @SWEET4_16380
Game.SetFreeResprays(True)
Text.ClearPrints
Game.SetMaxWantedLevel(53@)
if 
  49@ == 0
goto_if_false @SWEET4_16209
Game.SetCreateRandomCops(True)
Player.AlterWantedLevelNoDrop($player1, 2)

:SWEET4_16209
Car.LockDoors(543@, CarLock.Unlocked)
Hud.ClearCounter($sw4_text_timer_flag)
Blip.Remove($spray_shop1)
$spray_shop1 = Blip.AddSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
82@ = Clock.GetGameTimer()
World.SetPedDensityMultiplier(0.5)
Blip.Remove(433@)
Blip.Remove(434@)
Blip.Remove(435@)
Blip.Remove(436@)
Blip.Remove(437@)
Blip.Remove(438@)
Blip.Remove(439@)
Blip.Remove(440@)
Blip.Remove(441@)
Blip.Remove(442@)
Blip.Remove(443@)
Blip.Remove(444@)
Blip.Remove(445@)
Blip.Remove(446@)
Blip.Remove(447@)
Blip.Remove(448@)
$6668 = Clock.GetGameTimer()
$sw4_text_timer_diff = 14
$sw4_blipped = 0
$6636 = 6
Game.SetWantedMultiplier(1.0)
83@ = 0

:SWEET4_16380
if and
  $6636 == 6
  $sw4_text_timer_diff == 18
goto_if_false @SWEET4_17912
81@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 80@ = 81@
sub_int_lvar_from_int_lvar 80@ -= 82@
if 
  83@ == 0
goto_if_false @SWEET4_16486
if 
  80@ > 500
goto_if_false @SWEET4_16486
Text.PrintHelp('SWE4_07')
Blip.Remove($spray_shop1)
83@ += 1

:SWEET4_16486
if 
  83@ == 1
goto_if_false @SWEET4_16557
if 
  80@ > 1000
goto_if_false @SWEET4_16557
Blip.Remove($spray_shop1)
$spray_shop1 = Blip.AddSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
83@ += 1

:SWEET4_16557
if 
  83@ == 2
goto_if_false @SWEET4_16606
if 
  80@ > 1500
goto_if_false @SWEET4_16606
Blip.Remove($spray_shop1)
83@ += 1

:SWEET4_16606
if 
  83@ == 3
goto_if_false @SWEET4_16677
if 
  80@ > 2000
goto_if_false @SWEET4_16677
Blip.Remove($spray_shop1)
$spray_shop1 = Blip.AddSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
83@ += 1

:SWEET4_16677
if 
  83@ == 4
goto_if_false @SWEET4_16726
if 
  80@ > 2500
goto_if_false @SWEET4_16726
Blip.Remove($spray_shop1)
83@ += 1

:SWEET4_16726
if 
  83@ == 5
goto_if_false @SWEET4_16797
if 
  80@ > 3000
goto_if_false @SWEET4_16797
Blip.Remove($spray_shop1)
$spray_shop1 = Blip.AddSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
83@ += 1

:SWEET4_16797
if 
  83@ == 6
goto_if_false @SWEET4_16846
if 
  80@ > 3500
goto_if_false @SWEET4_16846
Blip.Remove($spray_shop1)
83@ += 1

:SWEET4_16846
if 
  83@ == 7
goto_if_false @SWEET4_16917
if 
  80@ > 4000
goto_if_false @SWEET4_16917
Blip.Remove($spray_shop1)
$spray_shop1 = Blip.AddSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
83@ += 1

:SWEET4_16917
if 
  83@ == 8
goto_if_false @SWEET4_16966
if 
  80@ > 4500
goto_if_false @SWEET4_16966
Blip.Remove($spray_shop1)
83@ += 1

:SWEET4_16966
if 
  83@ == 9
goto_if_false @SWEET4_17037
if 
  80@ > 5000
goto_if_false @SWEET4_17037
Blip.Remove($spray_shop1)
$spray_shop1 = Blip.AddSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
83@ += 1

:SWEET4_17037
if 
  83@ == 10
goto_if_false @SWEET4_17086
if 
  80@ > 5500
goto_if_false @SWEET4_17086
Blip.Remove($spray_shop1)
83@ += 1

:SWEET4_17086
if 
  83@ == 11
goto_if_false @SWEET4_17157
if 
  80@ > 6000
goto_if_false @SWEET4_17157
Blip.Remove($spray_shop1)
$spray_shop1 = Blip.AddSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
83@ += 1

:SWEET4_17157
if 
  83@ == 12
goto_if_false @SWEET4_17206
if 
  80@ > 6500
goto_if_false @SWEET4_17206
Blip.Remove($spray_shop1)
83@ += 1

:SWEET4_17206
if 
  83@ == 13
goto_if_false @SWEET4_17277
if 
  80@ > 7000
goto_if_false @SWEET4_17277
Blip.Remove($spray_shop1)
$spray_shop1 = Blip.AddSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
83@ += 1

:SWEET4_17277
if 
  83@ == 14
goto_if_false @SWEET4_17326
if 
  80@ > 7500
goto_if_false @SWEET4_17326
Blip.Remove($spray_shop1)
83@ += 1

:SWEET4_17326
if 
  83@ == 15
goto_if_false @SWEET4_17397
if 
  80@ > 8000
goto_if_false @SWEET4_17397
Blip.Remove($spray_shop1)
$spray_shop1 = Blip.AddSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
83@ += 1

:SWEET4_17397
if 
  83@ == 16
goto_if_false @SWEET4_17446
if 
  80@ > 8500
goto_if_false @SWEET4_17446
Blip.Remove($spray_shop1)
83@ += 1

:SWEET4_17446
if 
  83@ == 17
goto_if_false @SWEET4_17517
if 
  80@ > 9000
goto_if_false @SWEET4_17517
Blip.Remove($spray_shop1)
$spray_shop1 = Blip.AddSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
83@ += 1

:SWEET4_17517
if 
  83@ == 18
goto_if_false @SWEET4_17566
if 
  80@ > 9500
goto_if_false @SWEET4_17566
Blip.Remove($spray_shop1)
83@ += 1

:SWEET4_17566
if 
  83@ == 19
goto_if_false @SWEET4_17662
if 
  80@ > 10000
goto_if_false @SWEET4_17662
Blip.Remove($spray_shop1)
$spray_shop1 = Blip.AddSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
Blip.Remove($6657)
$6657 = Blip.AddForCoord(2075.55, -1831.09, 12.21)
83@ += 1

:SWEET4_17662
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_17769
if 
  not Char.IsDead($scplayer)
goto_if_false @SWEET4_17769
if 
  Char.LocateInCar3D($scplayer, 2075.55, -1831.09, 12.21, 4.0, 4.0, 4.0, True)
goto_if_false @SWEET4_17769
Text.ClearPrints
Text.PrintHelp('SWE4_06')
Blip.Remove($6657)
$sw4_blipped = 1

:SWEET4_17769
if 
  not Player.IsWantedLevelGreater($player1, 0)
goto_if_false @SWEET4_17912
if or
  Char.LocateInCar3D($scplayer, 2075.55, -1831.09, 12.21, 20.0, 20.0, 20.0, True)
  Char.LocateInCar3D($scplayer, 1024.55, -1039.09, 35.21, 20.0, 20.0, 20.0, True)
goto_if_false @SWEET4_17905
Text.ClearHelp
59@ = Clock.GetGameTimer()
Blip.Remove($6657)
$6636 = 7
$sw4_blipped = 0
goto @SWEET4_17912

:SWEET4_17905
Player.AlterWantedLevelNoDrop($player1, 2)

:SWEET4_17912
if 
  $6636 == 7
goto_if_false @SWEET4_18551
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 5000
goto_if_false @SWEET4_18061
if 
  43@ == 2
goto_if_false @SWEET4_18061
Game.SetFreeResprays(False)
Text.PrintHelp('WANT_L')
58@ = Blip.AddForCoord(545@, 546@, 547@)
Blip.Remove($spray_shop1)
$spray_shop1 = Blip.AddShortRangeSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
59@ = Clock.GetGameTimer()
$6668 = Clock.GetGameTimer()
43@ = 3

:SWEET4_18061
if 
  43@ == 3
goto_if_false @SWEET4_18179
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 5000
goto_if_false @SWEET4_18179
if 
  49@ == 0
goto_if_false @SWEET4_18172
$sw4_text_timer_diff = 18
$6668 = Clock.GetGameTimer()
Text.PrintNow('SWE4_14', 8000, 1)
49@ = 1

:SWEET4_18172
43@ = 4

:SWEET4_18179
if 
  43@ == 4
goto_if_false @SWEET4_18551
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(543@)
goto_if_false @SWEET4_18551
if 
  Char.IsInCar($scplayer, 543@)
goto_if_false @SWEET4_18551
if 
  Char.LocateInCar3D($scplayer, 545@, 546@, 547@, 4.0, 4.0, 4.0, True)
goto_if_false @SWEET4_18551
if 
  Char.IsSittingInCar($scplayer, 543@)
goto_if_false @SWEET4_18551
Player.SetControl($player1, False)
Task.CarTempAction($scplayer, 543@, TempAction.HandbrakeStraight, 2000000)
World.ClearArea(2518.0, -1673.0, 14.0, 50.0, False)
Text.ClearPrints
World.SetPedDensityMultiplier(0.0)
Hud.SwitchWidescreen(True)
Camera.DoFade(300, Fade.Out)
59@ = Clock.GetGameTimer()
$6668 = Clock.GetGameTimer()
Task.PlayAnim($scplayer, "GDB_CAR2_PLY", "GHETTO_DB", 4.0, False, False, False, True, 0)
Char.SetCurrentWeapon(394@, WeaponType.Tec9)
Task.PlayAnim(394@, "GDB_CAR2_SMO", "GHETTO_DB", 4.0, False, False, False, False, 0)
Char.SetCurrentWeapon(408@, WeaponType.Tec9)
Task.PlayAnim(408@, "GDB_CAR2_SWE", "GHETTO_DB", 4.0, False, False, False, False, 0)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Car.SetCanBeVisiblyDamaged(543@, False)
$sw4_blipped = 0
$6636 = 8

:SWEET4_18551
if 
  $6636 == 8
goto_if_false @SWEET4_19858
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_19858
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_18992
if 
  52@ == 0
goto_if_false @SWEET4_18883
if 
  390@ == 0
goto_if_false @SWEET4_18883
if 
  Car.IsStopped(543@)
goto_if_false @SWEET4_18883
if 
  not Char.IsDead(401@)
goto_if_false @SWEET4_18736
Car.PopPanel(543@, 4, True)
Camera.SetFadingColor(0, 0, 0)
117@ = Sequence.Open()
Task.LeaveCar(-1, 543@)
Task.GoStraightToCoord(-1, 2513.79, -1663.09, 14.56, MoveState.Walk, -2)
Sequence.Close(117@)
Char.PerformSequence(401@, 117@)

:SWEET4_18736
120@, 130@, 140@ = Car.GetOffsetInWorldCoords(543@, -0.4, 1.566, 0.657)
122@, 132@, 142@ = Car.GetOffsetInWorldCoords(543@, 0.038, -1.033, 0.088)
Camera.SetFixedPosition(120@, 130@, 140@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(122@, 132@, 142@, SwitchType.JumpCut)
Camera.DoFade(300, Fade.In)

:SWEET4_18840
if 
  Camera.GetFadingStatus
goto_if_false @SWEET4_18864
wait 0
goto @SWEET4_18840

:SWEET4_18864
389@ = 42
59@ = Clock.GetGameTimer()
52@ = 1

:SWEET4_18883
if 
  52@ == 1
goto_if_false @SWEET4_18992
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 1000
goto_if_false @SWEET4_18992
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_18992
389@ = 43
59@ = Clock.GetGameTimer()
52@ = 2
$sw4_blipped = 3

:SWEET4_18992
if 
  $sw4_blipped == 3
goto_if_false @SWEET4_19331
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 1000
goto_if_false @SWEET4_19117
Char.RemoveElegantly(401@)
if 
  52@ == 2
goto_if_false @SWEET4_19117
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_19117
389@ = 44
59@ = Clock.GetGameTimer()
52@ = 3

:SWEET4_19117
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  52@ == 3
goto_if_false @SWEET4_19219
if 
  71@ > 1000
goto_if_false @SWEET4_19219
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_19219
389@ = 45
59@ = Clock.GetGameTimer()
52@ = 4

:SWEET4_19219
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  not Char.IsDead(408@)
goto_if_false @SWEET4_19331
if 
  71@ > 1000
goto_if_false @SWEET4_19331
410@ = Char.GetScriptTaskStatus(408@, 1541)
if or
  is_int_lvar_equal_to_constant 410@ == 7
  52@ == 4
goto_if_false @SWEET4_19331
Char.PerformSequence(408@, 117@)
59@ = Clock.GetGameTimer()
$sw4_blipped = 4

:SWEET4_19331
if 
  $sw4_blipped == 4
goto_if_false @SWEET4_19448
if 
  not Char.IsDead(394@)
goto_if_false @SWEET4_19448
396@ = Char.GetScriptTaskStatus(394@, 1541)
if or
  is_int_lvar_equal_to_constant 396@ == 7
  390@ == 0
goto_if_false @SWEET4_19448
Char.PerformSequence(394@, 117@)
wait 100
Char.PerformSequence($scplayer, 117@)
59@ = Clock.GetGameTimer()
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1500, Fade.Out)
$sw4_blipped = 5

:SWEET4_19448
if 
  $sw4_blipped == 5
goto_if_false @SWEET4_19715
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 1000
goto_if_false @SWEET4_19715

:SWEET4_19506
if 
  Camera.GetFadingStatus
goto_if_false @SWEET4_19530
wait 0
goto @SWEET4_19506

:SWEET4_19530
Task.PlayAnim($scplayer, "GDB_CAR2_PLY", "GHETTO_DB", 4.0, False, False, False, False, 1)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SWEET4_19618
Char.WarpFromCarToCoord($scplayer, 2511.0, -1671.0, 12.5)
goto @SWEET4_19638

:SWEET4_19618
Char.SetCoordinates($scplayer, 2511.0, -1671.0, 12.5)

:SWEET4_19638
Task.PlayAnim($scplayer, "GDB_CAR2_PLY", "GHETTO_DB", 4.0, False, False, False, False, 1)
Char.SetHeading($scplayer, 223.0)
Char.RemoveElegantly(408@)
Char.RemoveElegantly(394@)
59@ = Clock.GetGameTimer()
$sw4_blipped = 7

:SWEET4_19715
if 
  $sw4_blipped == 7
goto_if_false @SWEET4_19858
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 100
goto_if_false @SWEET4_19858
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_19858
Char.Delete(394@)
Char.Delete(394@)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.DoFade(2000, Fade.In)

:SWEET4_19820
if 
  Camera.GetFadingStatus
goto_if_false @SWEET4_19844
wait 0
goto @SWEET4_19820

:SWEET4_19844
goto @SWEET4_23663
$sw4_blipped = 8

:SWEET4_19858
if and
  $6636 > 2
  8 > $6636
goto_if_false @SWEET4_21901
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_20588
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(543@)
goto_if_false @SWEET4_20588
if and
  not Char.IsInCar($scplayer, 543@)
  Char.IsOnFoot($scplayer)
goto_if_false @SWEET4_20588
Car.CloseAllDoors(543@)
if 
  51@ == 0
goto_if_false @SWEET4_20007
96@ = Sequence.Open()
Task.ShuffleToNextCarSeat(-1, 543@)
Task.CarDriveWander(-1, 543@, 50.0, DrivingMode.AvoidCars)
Sequence.Close(96@)
51@ = 1

:SWEET4_20007
46@ = 0
79@ = 15000
544@ = Blip.AddForCar(543@)
Blip.SetAsFriendly(544@, True)
if 
  $6636 == 3
goto_if_false @SWEET4_20060
Blip.Remove(57@)

:SWEET4_20060
if 
  $6636 == 5
goto_if_false @SWEET4_20523
Hud.ClearCounter($sw4_text_timer_flag)
if 
  34@ == 1
goto_if_false @SWEET4_20193
if 
  $sw4_ammo == 0
goto_if_false @SWEET4_20124
Blip.Remove(433@)

:SWEET4_20124
if 
  $sw4_hood_dead == 0
goto_if_false @SWEET4_20147
Blip.Remove(434@)

:SWEET4_20147
if 
  $6641 == 0
goto_if_false @SWEET4_20170
Blip.Remove(435@)

:SWEET4_20170
if 
  $6642 == 0
goto_if_false @SWEET4_20193
Blip.Remove(436@)

:SWEET4_20193
if 
  34@ == 2
goto_if_false @SWEET4_20303
if 
  $6643 == 0
goto_if_false @SWEET4_20234
Blip.Remove(437@)

:SWEET4_20234
if 
  $6644 == 0
goto_if_false @SWEET4_20257
Blip.Remove(438@)

:SWEET4_20257
if 
  $6645 == 0
goto_if_false @SWEET4_20280
Blip.Remove(439@)

:SWEET4_20280
if 
  $6646 == 0
goto_if_false @SWEET4_20303
Blip.Remove(440@)

:SWEET4_20303
if 
  34@ == 3
goto_if_false @SWEET4_20413
if 
  $6647 == 0
goto_if_false @SWEET4_20344
Blip.Remove(441@)

:SWEET4_20344
if 
  $6648 == 0
goto_if_false @SWEET4_20367
Blip.Remove(442@)

:SWEET4_20367
if 
  $6649 == 0
goto_if_false @SWEET4_20390
Blip.Remove(443@)

:SWEET4_20390
if 
  $6650 == 0
goto_if_false @SWEET4_20413
Blip.Remove(444@)

:SWEET4_20413
if 
  34@ == 4
goto_if_false @SWEET4_20523
if 
  $6651 == 0
goto_if_false @SWEET4_20454
Blip.Remove(445@)

:SWEET4_20454
if 
  $6652 == 0
goto_if_false @SWEET4_20477
Blip.Remove(446@)

:SWEET4_20477
if 
  $6653 == 0
goto_if_false @SWEET4_20500
Blip.Remove(447@)

:SWEET4_20500
if 
  $6654 == 0
goto_if_false @SWEET4_20523
Blip.Remove(448@)

:SWEET4_20523
if 
  $6636 == 6
goto_if_false @SWEET4_20546
Blip.Remove($6657)

:SWEET4_20546
if 
  $6636 == 7
goto_if_false @SWEET4_20569
Blip.Remove(58@)

:SWEET4_20569
Car.LockDoors(543@, CarLock.Unlocked)
61@ = Clock.GetGameTimer()
$sw4_spray_marker = 1

:SWEET4_20588
if 
  $sw4_spray_marker == 1
goto_if_false @SWEET4_21901
if 
  78@ >= 0
goto_if_false @SWEET4_20945
67@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
79@ = 10000
sub_int_lvar_from_int_lvar 79@ -= 73@
set_lvar_int_to_lvar_int 78@ = 79@
78@ /= 1000
if 
  46@ == 0
goto_if_false @SWEET4_20716
59@ = Clock.GetGameTimer()
44@ = Math.RandomIntInRange(0, 2)
46@ = 1

:SWEET4_20716
if 
  46@ == 1
goto_if_false @SWEET4_20945
65@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 200
goto_if_false @SWEET4_20945
if 
  44@ == 0
goto_if_false @SWEET4_20831
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_20831
389@ = 26
44@ = 5

:SWEET4_20831
if 
  44@ == 1
goto_if_false @SWEET4_20888
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_20888
389@ = 27
44@ = 5

:SWEET4_20888
if 
  44@ == 2
goto_if_false @SWEET4_20945
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_20945
389@ = 28
44@ = 5

:SWEET4_20945
if and
  100 > 79@
  79@ > 0
goto_if_false @SWEET4_21013
if 
  not Char.LocateAnyMeansCar3D($scplayer, 543@, 15.0, 15.0, 15.0, False)
goto_if_false @SWEET4_21013
Car.LockDoors(543@, CarLock.Locked)

:SWEET4_21013
if 
  0 > 78@
goto_if_false @SWEET4_21038
78@ = 0

:SWEET4_21038
if 
  78@ == 0
goto_if_false @SWEET4_21175
if 
  not Char.LocateAnyMeansCar3D($scplayer, 543@, 15.0, 15.0, 15.0, False)
goto_if_false @SWEET4_21175
if 
  not Char.IsDead(394@)
goto_if_false @SWEET4_21175
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_21175
Car.LockDoors(543@, CarLock.Locked)
Char.PerformSequence(394@, 96@)
Text.ClearPrints
389@ = 29
61@ = Clock.GetGameTimer()
Blip.Remove(544@)
$6636 = 666

:SWEET4_21175
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(543@)
goto_if_false @SWEET4_21901
if 
  Char.IsInCar($scplayer, 543@)
goto_if_false @SWEET4_21901
46@ = 0
Blip.Remove(544@)
if 
  $6636 == 3
goto_if_false @SWEET4_21259
57@ = Blip.AddForCoord(54@, 55@, 56@)

:SWEET4_21259
if 
  $6636 == 5
goto_if_false @SWEET4_21780
if 
  84@ == 1
goto_if_false @SWEET4_21316
Hud.ClearCounter($sw4_text_timer_flag)
Hud.DisplayCounterWithString($sw4_text_timer_flag, CounterDisplay.Bar, 'SWE4_08')

:SWEET4_21316
if 
  not Char.IsDead(415@)
goto_if_false @SWEET4_21345
Blip.Remove(433@)
433@ = Blip.AddForChar(415@)

:SWEET4_21345
if 
  not Char.IsDead(416@)
goto_if_false @SWEET4_21374
Blip.Remove(434@)
434@ = Blip.AddForChar(416@)

:SWEET4_21374
if 
  not Char.IsDead(417@)
goto_if_false @SWEET4_21403
Blip.Remove(435@)
435@ = Blip.AddForChar(417@)

:SWEET4_21403
if 
  not Char.IsDead(418@)
goto_if_false @SWEET4_21432
Blip.Remove(436@)
436@ = Blip.AddForChar(418@)

:SWEET4_21432
if 
  not Char.IsDead(419@)
goto_if_false @SWEET4_21461
Blip.Remove(437@)
437@ = Blip.AddForChar(419@)

:SWEET4_21461
if 
  not Char.IsDead(420@)
goto_if_false @SWEET4_21490
Blip.Remove(438@)
438@ = Blip.AddForChar(420@)

:SWEET4_21490
if 
  not Char.IsDead(421@)
goto_if_false @SWEET4_21519
Blip.Remove(439@)
439@ = Blip.AddForChar(421@)

:SWEET4_21519
if 
  not Char.IsDead(422@)
goto_if_false @SWEET4_21548
Blip.Remove(440@)
440@ = Blip.AddForChar(422@)

:SWEET4_21548
if 
  not Char.IsDead(423@)
goto_if_false @SWEET4_21577
Blip.Remove(441@)
441@ = Blip.AddForChar(423@)

:SWEET4_21577
if 
  not Char.IsDead(424@)
goto_if_false @SWEET4_21606
Blip.Remove(442@)
442@ = Blip.AddForChar(424@)

:SWEET4_21606
if 
  not Char.IsDead(425@)
goto_if_false @SWEET4_21635
Blip.Remove(443@)
443@ = Blip.AddForChar(425@)

:SWEET4_21635
if 
  not Char.IsDead(426@)
goto_if_false @SWEET4_21664
Blip.Remove(444@)
444@ = Blip.AddForChar(426@)

:SWEET4_21664
if 
  not Char.IsDead(427@)
goto_if_false @SWEET4_21693
Blip.Remove(445@)
445@ = Blip.AddForChar(427@)

:SWEET4_21693
if 
  not Char.IsDead(428@)
goto_if_false @SWEET4_21722
Blip.Remove(446@)
446@ = Blip.AddForChar(428@)

:SWEET4_21722
if 
  not Char.IsDead(429@)
goto_if_false @SWEET4_21751
Blip.Remove(447@)
447@ = Blip.AddForChar(429@)

:SWEET4_21751
if 
  not Char.IsDead(430@)
goto_if_false @SWEET4_21780
Blip.Remove(448@)
448@ = Blip.AddForChar(430@)

:SWEET4_21780
if 
  $6636 == 6
goto_if_false @SWEET4_21843
$sw4_text_timer_diff = 18
82@ = Clock.GetGameTimer()
82@ -= 5000
Blip.Remove($6657)
$6657 = Blip.AddForCoord(2075.55, -1831.09, 12.21)

:SWEET4_21843
if 
  $6636 == 7
goto_if_false @SWEET4_21880
Blip.Remove(58@)
58@ = Blip.AddForCoord(89@, 90@, 91@)

:SWEET4_21880
Text.ClearPrints
78@ = 1
$6668 = Clock.GetGameTimer()
$sw4_spray_marker = 0

:SWEET4_21901
if 
  $6636 == 666
goto_if_false @SWEET4_22036
67@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 1000
goto_if_false @SWEET4_22036
if and
  not Char.IsDead(394@)
  not Car.IsDead(543@)
goto_if_false @SWEET4_22036
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22036
Task.CarDriveWander(394@, 543@, 50.0, DrivingMode.AvoidCars)
389@ = 32
$6636 = 667

:SWEET4_22036
if 
  $6636 == 667
goto_if_false @SWEET4_22135
if 
  not Car.IsDead(543@)
goto_if_false @SWEET4_22135
if or
  not Car.IsOnScreen(543@)
  not Char.LocateAnyMeansCar3D($scplayer, 543@, 50.0, 50.0, 50.0, False)
goto_if_false @SWEET4_22135
Text.PrintNow('SWE4_05', 5000, 1)
goto @SWEET4_23645

:SWEET4_22135
if 
  $sw4_spray_marker == 0
goto_if_false @SWEET4_23638
if 
  $6636 == 3
goto_if_false @SWEET4_22569
if 
  $sw4_text_timer_diff == -1
goto_if_false @SWEET4_22276
if 
  390@ == 0
goto_if_false @SWEET4_22222
Text.Print('SWE4_01', 100, 1)

:SWEET4_22222
$sw4_text_timer_start = Clock.GetGameTimer()
set_var_int_to_var_int $sw4_text_timer_end = $sw4_text_timer_start
sub_int_var_from_int_var $sw4_text_timer_end -= $6668
if 
  $sw4_text_timer_end > 3000
goto_if_false @SWEET4_22276
Text.ClearPrints
$sw4_text_timer_diff += 1
$6668 = Clock.GetGameTimer()

:SWEET4_22276
if 
  $sw4_text_timer_diff == 0
goto_if_false @SWEET4_22326
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22326
389@ = 1

:SWEET4_22326
if 
  $sw4_text_timer_diff == 1
goto_if_false @SWEET4_22376
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22376
389@ = 2

:SWEET4_22376
if 
  $sw4_text_timer_diff == 2
goto_if_false @SWEET4_22426
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22426
389@ = 5

:SWEET4_22426
if 
  $sw4_text_timer_diff == 6
goto_if_false @SWEET4_22476
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22476
389@ = 9

:SWEET4_22476
if 
  $sw4_text_timer_diff == 7
goto_if_false @SWEET4_22526
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22526
389@ = 10

:SWEET4_22526
if 
  $sw4_text_timer_diff == 8
goto_if_false @SWEET4_22569
if 
  390@ == 0
goto_if_false @SWEET4_22569
389@ = 11

:SWEET4_22569
if 
  $6636 == 4
goto_if_false @SWEET4_22945
if 
  $sw4_text_timer_diff == 9
goto_if_false @SWEET4_22637
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22637
389@ = 12

:SWEET4_22637
if 
  $sw4_text_timer_diff == 10
goto_if_false @SWEET4_22687
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22687
389@ = 13

:SWEET4_22687
if 
  $sw4_text_timer_diff == 11
goto_if_false @SWEET4_22737
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22737
389@ = 14

:SWEET4_22737
if 
  $sw4_text_timer_diff == 12
goto_if_false @SWEET4_22787
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22787
389@ = 15

:SWEET4_22787
if 
  $sw4_text_timer_diff == 13
goto_if_false @SWEET4_22945
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22945
389@ = 16
if 
  not Char.IsDead(417@)
goto_if_false @SWEET4_22889
Task.PlayAnim(417@, "GSIGN3", "GHANDS", 4.0, False, False, False, False, 0)

:SWEET4_22889
if 
  not Char.IsDead(418@)
goto_if_false @SWEET4_22945
Task.PlayAnim(418@, "DRNKBR_PRTL", "GANGS", 4.0, False, False, False, False, 0)

:SWEET4_22945
if 
  $6636 == 6
goto_if_false @SWEET4_23323
if 
  49@ == 0
goto_if_false @SWEET4_23177
if 
  $sw4_text_timer_diff == 14
goto_if_false @SWEET4_23066
Text.Print('SWE4_12', 100, 1)
$sw4_text_timer_start = Clock.GetGameTimer()
set_var_int_to_var_int $sw4_text_timer_end = $sw4_text_timer_start
sub_int_var_from_int_var $sw4_text_timer_end -= $6668
if 
  $sw4_text_timer_end > 4000
goto_if_false @SWEET4_23066
$sw4_text_timer_diff += 1
$6668 = Clock.GetGameTimer()

:SWEET4_23066
if 
  $sw4_text_timer_diff == 15
goto_if_false @SWEET4_23170
Text.Print('SWE4_03', 100, 1)
$sw4_text_timer_start = Clock.GetGameTimer()
set_var_int_to_var_int $sw4_text_timer_end = $sw4_text_timer_start
sub_int_var_from_int_var $sw4_text_timer_end -= $6668
if 
  $sw4_text_timer_end > 4000
goto_if_false @SWEET4_23170
82@ = Clock.GetGameTimer()
$sw4_text_timer_diff += 1
$sw4_text_timer_diff += 1
$sw4_text_timer_diff += 1
$6668 = Clock.GetGameTimer()

:SWEET4_23170
goto @SWEET4_23323

:SWEET4_23177
if 
  $sw4_text_timer_diff == 14
goto_if_false @SWEET4_23227
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23227
389@ = 55

:SWEET4_23227
if 
  $sw4_text_timer_diff == 15
goto_if_false @SWEET4_23277
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23277
389@ = 56

:SWEET4_23277
if 
  $sw4_text_timer_diff == 16
goto_if_false @SWEET4_23323
Text.Print('SWE4_03', 4000, 1)
$sw4_text_timer_diff += 1
$6668 = Clock.GetGameTimer()

:SWEET4_23323
if and
  $6636 == 7
  43@ == 4
goto_if_false @SWEET4_23638
$sw4_text_timer_start = Clock.GetGameTimer()
set_var_int_to_var_int $sw4_text_timer_end = $sw4_text_timer_start
sub_int_var_from_int_var $sw4_text_timer_end -= $6668
if 
  $sw4_text_timer_end > 6000
goto_if_false @SWEET4_23438
if 
  $sw4_text_timer_diff == 18
goto_if_false @SWEET4_23438
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23438
389@ = 37

:SWEET4_23438
if 
  $sw4_text_timer_diff == 19
goto_if_false @SWEET4_23488
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23488
389@ = 38

:SWEET4_23488
if 
  $sw4_text_timer_diff == 20
goto_if_false @SWEET4_23538
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23538
389@ = 39

:SWEET4_23538
if 
  $sw4_text_timer_diff == 21
goto_if_false @SWEET4_23588
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23588
389@ = 40

:SWEET4_23588
if 
  $sw4_text_timer_diff == 22
goto_if_false @SWEET4_23638
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23638
389@ = 41

:SWEET4_23638
goto @SWEET4_7477

:SWEET4_23645
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:SWEET4_23663
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player1)
$flag_sweet_mission_counter += 1
Stat.RegisterMissionPassed('SWEET_4')
Stat.PlayerMadeProgress(1)
Player.AddScore($player1, 500)
Stat.AwardPlayerMissionRespect(6)
Text.PrintWithNumberBig('M_PASSS', 500, 5000, TextStyle.Middle)
Audio.PlayMissionPassedTune(1)
start_new_script @RYDER 
Blip.Remove($ryder_contact_blip)
$ryder_contact_blip = Blip.AddSpriteForContactPoint($ryderX, $ryderY, $ryderZ, $ryder_blip_icon)
Player.ClearWantedLevel($player1)
return 

:SWEET4_23765
gosub @SWEET4_3259
gosub @SWEET4_3024
Char.RemoveElegantly(408@)
Char.RemoveElegantly(401@)
Char.RemoveElegantly(394@)
Streaming.UnloadSpecialCharacter(10)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(103)
Streaming.MarkModelAsNoLongerNeeded(372)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(412)
Streaming.MarkModelAsNoLongerNeeded(365)
Streaming.RemoveAnimation("GHANDS")
Streaming.RemoveAnimation("GANGS")
Blip.Remove(544@)
Blip.Remove(57@)
Blip.Remove(58@)
Blip.Remove(433@)
Blip.Remove(434@)
Blip.Remove(435@)
Blip.Remove(436@)
Blip.Remove(437@)
Blip.Remove(438@)
Blip.Remove(439@)
Blip.Remove(440@)
Blip.Remove(441@)
Blip.Remove(442@)
Blip.Remove(443@)
Blip.Remove(444@)
Blip.Remove(445@)
Blip.Remove(446@)
Blip.Remove(447@)
Blip.Remove(448@)
Blip.Remove($spray_shop1)
Blip.Remove($6657)
$spray_shop1 = Blip.AddShortRangeSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
Game.SetFreeResprays(False)
Game.SetWantedMultiplier(1.0)
Game.SetMaxWantedLevel(53@)
Game.SetCreateRandomCops(True)
Game.SwitchCopsOnBikes(True)
CarGenerator.Switch($gen_car6, 101)
CarGenerator.DontSuppressCarModel(412)
Streaming.RemoveAnimation("GHETTO_DB")
Hud.ClearCounter($sw4_text_timer_flag)
Audio.SetMusicDoesFade(True)
Game.SetCreateRandomGangMembers(True)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

:SWEET4_24058
if 
  not Char.IsDead(194@)
goto_if_false @SWEET4_24088
86@, 87@, 88@ = Char.GetCoordinates(194@)

:SWEET4_24088
195@ = -1
199@ = 99999.9
39@ = 0

:SWEET4_24112
if 
  18 > 39@
goto_if_false @SWEET4_24258
if 
  not Char.IsDead(415@(39@,18i))
goto_if_false @SWEET4_24244
451@(39@,18f), 469@(39@,18f), 487@(39@,18f) = Char.GetCoordinates(415@(39@,18i))
200@ = Math.GetDistanceBetweenCoords2D(86@, 87@, 451@(39@,18f), 469@(39@,18f))
if 
  is_float_lvar_greater_than_float_lvar 199@ > 200@
goto_if_false @SWEET4_24244
set_lvar_float_to_lvar_float 199@ = 200@
set_lvar_int_to_lvar_int 195@ = 415@(39@,18i)

:SWEET4_24244
39@ += 1
goto @SWEET4_24112

:SWEET4_24258
if 
  195@ >= 0
goto_if_false @SWEET4_24342
if and
  not Char.IsDead(195@)
  not Char.IsDead(194@)
goto_if_false @SWEET4_24342
Task.DriveBy(194@, 195@, -1, 0.0, 0.0, 0.0, 40.0, 41@, 40@, 99)
Char.SetCurrentWeapon(194@, WeaponType.Tec9)

:SWEET4_24342
62@ = Clock.GetGameTimer()
return 

:SWEET4_24349
if and
  389@ <= 11
  17 <= 389@
goto_if_false @SWEET4_24381
326@ = 0

:SWEET4_24381
if and
  389@ <= 41
  46 <= 389@
goto_if_false @SWEET4_24413
326@ = 0

:SWEET4_24413
if or
  389@ == 12
  389@ == 14
  389@ == 16
  389@ == 42
  389@ == 43
goto_if_false @SWEET4_24467
set_lvar_int_to_lvar_int 326@ = 408@

:SWEET4_24467
if or
  389@ == 13
  389@ == 44
goto_if_false @SWEET4_24500
set_lvar_int_to_var_int 326@ = $scplayer

:SWEET4_24500
if 
  389@ == 15
goto_if_false @SWEET4_24526
set_lvar_int_to_lvar_int 326@ = 401@

:SWEET4_24526
if 
  389@ == 45
goto_if_false @SWEET4_24552
set_lvar_int_to_lvar_int 326@ = 394@

:SWEET4_24552
return 

//-------------Mission 18---------------
// Originally: Sweet's Girl

:HOODS5
script_name 'HOODS5'
gosub @HOODS5_251
if 
  has_deatharrest_been_executed 
goto_if_false @HOODS5_38
gosub @HOODS5_15216

:HOODS5_38
gosub @HOODS5_15289
terminate_this_script 
if 
  127@ == 99
goto_if_false @HOODS5_251
50@ = Pickup.CreateWithAmmo(346, PickupType.Once, 20, 2444.895, -1981.524, 13.933)
49@ = Blip.AddSpriteForCoord(2444.895, -1981.524, 13.933, RadarSprite.Ammugun)
48@ = Blip.AddSpriteForCoord(2444.895, -1981.524, 13.933, RadarSprite.Ammugun)
75@ = Char.Create(PedType.Gang2, 290, 2752.341, -1948.867, 16.3125)
43@ = Char.Create(PedType.Gang2, 290, 2752.341, -1948.867, 16.3125)
37@ = Char.Create(PedType.Gang2, 290, 2752.341, -1948.867, 16.3125)
71@ = Blip.AddForChar(75@)
72@ = Blip.AddForChar(75@)
201@ = Blip.AddForChar(75@)
202@ = Blip.AddForChar(75@)
167@ = Blip.AddForPickup(50@)

:HOODS5_251
Stat.RegisterMissionGiven
$onmission = 1
Player.SetGroupToFollowAlways($player1, True)
154@ = 14
155@ = 15
156@ = 16
157@ = 17
158@ = 18
161@ = 21
148@ = 0
Char.SetRelationship($scplayer, RelationshipType.Hate, PedType.Mission1)

:HOODS5_325
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @HOODS5_351
goto @HOODS5_15234

:HOODS5_351
if 
is_ps2_keyboard_key_pressed 7
goto_if_false @HOODS5_454
Char.SetCoordinates($scplayer, 2769.492, -1967.329, 12.3834)
36@ = 0

:HOODS5_393
if 
  6 > 36@
goto_if_false @HOODS5_454
if 
  not Char.IsDead(37@(36@,6i))
goto_if_false @HOODS5_440
Task.Die(37@(36@,6i))

:HOODS5_440
36@ += 1
goto @HOODS5_393

:HOODS5_454
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @HOODS5_476
127@ = 7

:HOODS5_476
switch_start 127@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @HOODS5_737 {caseNum1} 0 {caseLabel1} @HOODS5_604 {caseNum2} 1 {caseLabel2} @HOODS5_625 {caseNum3} 2 {caseLabel3} @HOODS5_639 {caseNum4} 3 {caseLabel4} @HOODS5_653 {caseNum5} 4 {caseLabel5} @HOODS5_667 {caseNum6} 5 {caseLabel6} @HOODS5_681 {caseNum7} 6 {caseLabel7} @HOODS5_695
switch_continued 7 {caseLabel1} @HOODS5_709 {caseNum2} 8 {caseLabel2} @HOODS5_723 {caseNum3} -1 {caseLabel3} @HOODS5_737 {caseNum4} -1 {caseLabel4} @HOODS5_737 {caseNum5} -1 {caseLabel5} @HOODS5_737 {caseNum6} -1 {caseLabel6} @HOODS5_737 {caseNum7} -1 {caseLabel7} @HOODS5_737 {caseNum8} -1 {caseLabel8} @HOODS5_737 {caseNum9} -1 {caseLabel9} @HOODS5_737

:HOODS5_604
gosub @HOODS5_918
127@ = 1
goto @HOODS5_737

:HOODS5_625
gosub @HOODS5_1302
goto @HOODS5_737

:HOODS5_639
gosub @HOODS5_3513
goto @HOODS5_737

:HOODS5_653
gosub @HOODS5_4668
goto @HOODS5_737

:HOODS5_667
gosub @HOODS5_5153
goto @HOODS5_737

:HOODS5_681
gosub @HOODS5_5483
goto @HOODS5_737

:HOODS5_695
gosub @HOODS5_7802
goto @HOODS5_737

:HOODS5_709
gosub @HOODS5_9684
goto @HOODS5_737

:HOODS5_723
goto @HOODS5_15234
goto @HOODS5_737

:HOODS5_737
gosub @HOODS5_792
gosub @HOODS5_890
gosub @HOODS5_13224
if 
  126@ == 1
goto_if_false @HOODS5_783
goto @HOODS5_15216

:HOODS5_783
goto @HOODS5_325
return 

:HOODS5_792
if 
  125@ == 1
goto_if_false @HOODS5_888
if 
  Char.IsDead(75@)
goto_if_false @HOODS5_849
126@ = 1
Text.Print('SW5_L', 4000, 1)

:HOODS5_849
if 
  Char.IsDead(43@)
goto_if_false @HOODS5_888
126@ = 1
Text.Print('SW5_M', 4000, 1)

:HOODS5_888
return 

:HOODS5_890
if 
  Pickup.HasBeenCollected($emmets_gun)
goto_if_false @HOODS5_916
Blip.Remove(49@)
Blip.Remove(167@)

:HOODS5_916
return 

:HOODS5_918
World.ClearArea($sweet_carX, $sweet_carY, $sweet_carZ, 5.0, True)
CarGenerator.Switch($gen_car6, 0)
Streaming.RequestModel(330)
Streaming.RequestModel(12)
Streaming.RequestModel(372)
Streaming.RequestModel(405)
Streaming.RequestModel(346)
Streaming.RequestModel(492)
Streaming.RequestModel(105)
Streaming.RequestModel(106)
Streaming.LoadSpecialCharacter(1, 'SWEET')
Streaming.LoadAllModelsNow

:HOODS5_995
if or
  not Streaming.HasModelLoaded(330)
  not Streaming.HasModelLoaded(12)
  not Streaming.HasModelLoaded(372)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(405)
goto_if_false @HOODS5_1041
wait 0
goto @HOODS5_995

:HOODS5_1041
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(105)
  not Streaming.HasModelLoaded(106)
  not Streaming.HasModelLoaded(492)
goto_if_false @HOODS5_1080
wait 0
goto @HOODS5_1041

:HOODS5_1080
Streaming.RequestAnimation("SWEET")
Streaming.RequestAnimation("GANGS")

:HOODS5_1098
if or
  not Streaming.HasAnimationLoaded("SWEET")
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @HOODS5_1138
wait 0
goto @HOODS5_1098

:HOODS5_1138
Streaming.RequestCarRecording(153)
Streaming.RequestCarRecording(154)

:HOODS5_1148
if or
  not Streaming.HasCarRecordingBeenLoaded(153)
  not Streaming.HasCarRecordingBeenLoaded(154)
goto_if_false @HOODS5_1180
wait 0
goto @HOODS5_1148

:HOODS5_1180
99@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
100@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
47@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission3, PedType.Mission1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Mission3)
DecisionMakerChar.ClearEventResponse(47@, 12)
DecisionMakerChar.ClearEventResponse(47@, 9)
DecisionMakerChar.ClearEventResponse(47@, 31)
$sw4_health = 0
$sw5_target = 0
$6676 = 0
$6677 = 0
$6678 = 0
$6679 = 0
198@ = 99999.0
199@ = 99999.0
return 

:HOODS5_1302
if 
  148@ > 1
goto_if_false @HOODS5_1379
if 
  166@ == 0
goto_if_false @HOODS5_1379
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @HOODS5_1379
148@ = 7
147@ = 1
355@ = 5
35@ = 0

:HOODS5_1379
if 
  148@ == 0
goto_if_false @HOODS5_1786
Text.LoadMissionText('SWEET5')
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
Streaming.SetAreaVisible(1)
Cutscene.Load('SWEET5A')

:HOODS5_1437
if 
  not Cutscene.HasLoaded
goto_if_false @HOODS5_1461
wait 0
goto @HOODS5_1437

:HOODS5_1461
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:HOODS5_1470
if 
  not Cutscene.HasFinished
goto_if_false @HOODS5_1494
wait 0
goto @HOODS5_1470

:HOODS5_1494
Camera.DoFade(0, Fade.Out)

:HOODS5_1500
if 
  Camera.GetFadingStatus
goto_if_false @HOODS5_1524
wait 0
goto @HOODS5_1500

:HOODS5_1524
Cutscene.Clear
Streaming.SetAreaVisible(0)
48@ = Blip.AddForCoord(2775.793, -1942.909, 15.6576)
Blip.SetCoordAppearance(48@, 2)
49@ = Blip.AddSpriteForCoord(2444.895, -1981.524, 13.933, RadarSprite.EmmetGun)
Pickup.Remove($emmets_gun)
$emmets_gun = Pickup.CreateWithAmmo(346, PickupType.OnStreetSlow, 16, 2447.773, -1975.663, 13.0)
167@ = Blip.AddForPickup($emmets_gun)
Blip.ChangeDisplay(167@, BlipDisplay.MarkerOnly)
Streaming.RequestCollision(2770.116, -1915.896)
Char.SetCoordinates($scplayer, 2770.116, -1915.896, 11.651)
Char.ClearTasksImmediately($scplayer)
Streaming.LoadScene(2770.116, -1915.896, 11.651)
Camera.SetFixedPosition(2770.897, -1915.951, 12.6746, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2770.337, -1916.334, 13.4091, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Camera.DoFade(1500, Fade.In)
352@ = 29
148@ = 1
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000

:HOODS5_1786
if 
  148@ == 1
goto_if_false @HOODS5_1860
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_1860
Task.UseMobilePhone($scplayer, True)
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2200
355@ = 3
148@ = 20

:HOODS5_1860
if 
  148@ == 20
goto_if_false @HOODS5_2062
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_2062
if 
  352@ == 0
goto_if_false @HOODS5_2062
75@ = Char.Create(PedType.Mission3, 290, 2752.341, -1948.867, 16.3125)
105@ = Car.Create(492, 2745.545, -1942.74, 12.5394)
Car.SetHeading(105@, 90.0)
Char.SetHeading(75@, 0.0)
43@ = Char.Create(PedType.Mission3, 12, 2751.282, -1948.867, 16.3125)
Char.SetHeading(43@, 0.0)
Char.SetDecisionMaker(43@, 99@)
set_lvar_int_to_lvar_int 399@ = 75@
set_lvar_int_to_lvar_int 400@ = 43@
352@ = 1
354@ = 7
148@ = 2

:HOODS5_2062
if 
  148@ == 2
goto_if_false @HOODS5_2469
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_2469
if 
  not Char.IsDead(75@)
goto_if_false @HOODS5_2150
68@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.UseMobilePhone(-1, True)
Sequence.Close(68@)
Char.PerformSequence(75@, 68@)
Sequence.Clear(68@)

:HOODS5_2150
if 
  not Char.IsDead(43@)
goto_if_false @HOODS5_2233
68@ = Sequence.Open()
Task.Pause(-1, 500)
Task.PlayAnim(-1, "DUCK_COWER", "PED", 8.0, False, False, False, False, 16000)
Sequence.Close(68@)
Char.PerformSequence(43@, 68@)
Sequence.Clear(68@)

:HOODS5_2233
37@ = Char.Create(PedType.Mission2, 106, 2751.515, -1973.178, 16.3051)
Char.SetAccuracy(37@, 40)
Char.SetDecisionMaker(37@, 99@)
Char.GiveWeapon(37@, WeaponType.Pistol, 99999)
Task.ToggleDuck(37@, True)
68@ = Sequence.Open()
Task.Pause(-1, 2500)
Task.GoStraightToCoord(-1, 2751.791, -1964.08, 16.3125, MoveState.Walk, -2)
Task.Pause(-1, 3500)
Task.GoStraightToCoord(-1, 2751.791, -1954.08, 16.3125, MoveState.Walk, -2)
Sequence.Close(68@)
Char.PerformSequence(37@, 68@)
Sequence.Clear(68@)
38@ = Char.Create(PedType.Mission2, 105, 2753.197, -1973.946, 16.3051)
Char.SetAccuracy(38@, 40)
Char.GiveWeapon(38@, WeaponType.Pistol, 99999)
Task.ToggleDuck(38@, True)
Task.ShootAtCoord(38@, 2753.15, -1949.642, 16.5866, -2)
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000
148@ = 3

:HOODS5_2469
if 
  148@ == 3
goto_if_false @HOODS5_2598
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_2598
if 
  352@ == 3
goto_if_false @HOODS5_2598
Camera.SetFixedPosition(2753.784, -1947.466, 16.489, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2753.255, -1948.292, 16.6835, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 4000
148@ = 4

:HOODS5_2598
if 
  148@ == 4
goto_if_false @HOODS5_2658
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_2658
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 4000
148@ = 5

:HOODS5_2658
if 
  148@ == 5
goto_if_false @HOODS5_2791
if 
  352@ == 7
goto_if_false @HOODS5_2791
Camera.SetFixedPosition(2770.897, -1915.951, 12.6746, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2770.337, -1916.334, 13.4091, SwitchType.JumpCut)
if 
  not Char.IsDead(75@)
goto_if_false @HOODS5_2768
Char.SetAccuracy(75@, 100)

:HOODS5_2768
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 4500
148@ = 21

:HOODS5_2791
if 
  148@ == 21
goto_if_false @HOODS5_2858
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_2858
Task.UseMobilePhone($scplayer, False)
148@ = 6
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 1000

:HOODS5_2858
if 
  148@ == 6
goto_if_false @HOODS5_3111
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_3111
Camera.SetFixedPosition(2756.252, -1949.02, 17.513, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2755.402, -1949.518, 17.3404, SwitchType.JumpCut)
if 
  not Char.IsDead(75@)
goto_if_false @HOODS5_3088
Char.ClearTasksImmediately(75@)
Task.ToggleDuck(75@, True)
Char.GiveWeapon(75@, WeaponType.Pistol, 500)
Char.SetCurrentWeapon(75@, WeaponType.Pistol)
Char.SetHeading(75@, 180.0)
68@ = Sequence.Open()
Task.PlayAnim(-1, "CROUCH_ROLL_L", "PED", 8.0, False, True, True, False, -1)
if 
  not Char.IsDead(37@)
goto_if_false @HOODS5_3070
Task.ShootAtChar(-1, 37@, -2)

:HOODS5_3070
Sequence.Close(68@)
Char.PerformSequence(75@, 68@)
Sequence.Clear(68@)

:HOODS5_3088
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2500
148@ = 7

:HOODS5_3111
if 
  148@ == 7
goto_if_false @HOODS5_3171
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_3171
Text.ClearPrints
166@ = 1
Camera.DoFade(1000, Fade.Out)
148@ = 8

:HOODS5_3171
if 
  148@ == 8
goto_if_false @HOODS5_3345
if 
  not Camera.GetFadingStatus
goto_if_false @HOODS5_3345
Streaming.RequestCollision(2518.789, -1677.22)
Char.SetCoordinates($scplayer, 2518.448, -1677.224, 13.4109)
Char.SetHeading($scplayer, 90.691)
Streaming.LoadScene(2510.284, -1674.066, 14.5338)
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 300
148@ = 9
$6680 = 100
170@ = Math.RandomIntInRange(2500, 6000)
add_int_lvar_to_int_lvar 170@ += TIMERA
Hud.DisplayCounterWithString($6680, CounterDisplay.Bar, 'SW5_A3')
170@ = Math.RandomIntInRange(2500, 6000)
add_int_lvar_to_int_lvar 170@ += TIMERA

:HOODS5_3345
if 
  148@ == 9
goto_if_false @HOODS5_3511
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_3511
Camera.DoFade(1500, Fade.In)
Char.Delete(75@)
Char.Delete(37@)
Char.Delete(38@)
Char.Delete(43@)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
34@ = Char.GetScriptTaskStatus($scplayer, 1833)
Text.Print('SW5_A2', 6000, 1)
Text.Print('SW5_17', 6000, 1)
Player.SetControl($player1, True)
Player.MakeGangReappear
Hud.SwitchWidescreen(False)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Game.SetWantedMultiplier(0.2)
147@ = 1
127@ = 2

:HOODS5_3511
return 

:HOODS5_3513
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 170@
goto_if_false @HOODS5_3616
170@ = Math.RandomIntInRange(2500, 6000)
add_int_lvar_to_int_lvar 170@ += TIMERA
171@ = Math.RandomIntInRange(2, 4)
sub_int_lvar_from_int_var $6680 -= 171@
if 
  0 >= $6680
goto_if_false @HOODS5_3616
$6680 = 0
Text.Print('SW5_L', 4000, 1)
125@ = 1

:HOODS5_3616
if 
  97@ == 0
goto_if_false @HOODS5_4349
if 
  Char.LocateAnyMeans3D($scplayer, 2775.793, -1942.909, 15.6576, 100.0, 100.0, 50.0, False)
goto_if_false @HOODS5_4349
Game.SetCreateRandomGangMembers(False)
97@ = 1
Text.Print('SW5_J', 4000, 1)
106@ = 2761.516
112@ = -1972.028
118@ = 12.5459
set_lvar_int_to_constant 140@ = 105
107@ = 2761.599
113@ = -1955.673
119@ = 12.5469
set_lvar_int_to_constant 141@ = 106
108@ = 2768.451
114@ = -1972.605
120@ = 12.3837
set_lvar_int_to_constant 142@ = 105
109@ = 2761.551
115@ = -1980.099
121@ = 12.5478
set_lvar_int_to_constant 143@ = 106
110@ = 2752.159
116@ = -1979.574
122@ = 14.0469
set_lvar_int_to_constant 144@ = 106
111@ = 2768.451
117@ = -1972.605
123@ = 12.3837
set_lvar_int_to_constant 145@ = 105
172@ = Car.Create(492, 2766.923, -1974.348, 12.3783)
Car.SetHeading(172@, 4.0)
36@ = 0

:HOODS5_3971
if 
  5 > 36@
goto_if_false @HOODS5_4165
37@(36@,6i) = Char.Create(PedType.Mission1, 140@(36@,6i), 106@(36@,6f), 112@(36@,6f), 118@(36@,6f))
Char.SetAccuracy(37@(36@,6i), 65)
if or
  36@ == 0
  36@ == 3
goto_if_false @HOODS5_4087
Char.GiveWeapon(37@(36@,6i), WeaponType.Tec9, 99999)
goto @HOODS5_4103

:HOODS5_4087
Char.GiveWeapon(37@(36@,6i), WeaponType.Pistol, 99999)

:HOODS5_4103
Task.ToggleDuck(37@(36@,6i), True)
Task.ShootAtCoord(37@(36@,6i), 2750.957, -1968.016, 17.9291, -2)
Char.SetKindaStayInSamePlace(37@(36@,6i), True)
36@ += 1
goto @HOODS5_3971

:HOODS5_4165
51@ = Blip.AddForChar(37@)
52@ = Blip.AddForChar(38@)
53@ = Blip.AddForChar(39@)
54@ = Blip.AddForChar(40@)
55@ = Blip.AddForChar(41@)
Blip.Remove(48@)
Char.SetDecisionMaker(37@, 47@)
Char.SetDecisionMaker(38@, 47@)
Char.SetDecisionMaker(39@, 47@)
Char.SetDecisionMaker(40@, 47@)
Char.SetDecisionMaker(41@, 47@)
Char.SetIsTargetPriority(37@, True)
Char.SetIsTargetPriority(38@, True)
Char.SetIsTargetPriority(39@, True)
Char.SetIsTargetPriority(40@, True)
Char.SetIsTargetPriority(41@, True)
Path.SwitchRoadsOff(2793.814, -1987.935, 15.3045, 2754.324, -1900.369, 9.8752)
Path.SwitchPedRoadsOff(2793.814, -1987.935, 15.3045, 2754.324, -1900.369, 9.8752)

:HOODS5_4349
if 
  97@ == 1
goto_if_false @HOODS5_4666
gosub @HOODS5_11951
if 
  146@ == 0
goto_if_false @HOODS5_4474
if 
  Char.IsInArea3D($scplayer, 2782.693, -1921.125, 11.7984, 2746.098, -1993.905, 16.9599, False)
goto_if_false @HOODS5_4474
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @HOODS5_4474
146@ = 1
Text.PrintHelp('SW5_19')

:HOODS5_4474
36@ = 0
57@ = 0

:HOODS5_4488
if 
  5 > 36@
goto_if_false @HOODS5_4587
if 
  Char.IsDead(37@(36@,6i))
goto_if_false @HOODS5_4549
Blip.Remove(51@(36@,6i))
57@ += 1
goto @HOODS5_4573

:HOODS5_4549
Char.SetAccuracy(37@(36@,6i), 173@)
Char.SetShootRate(37@(36@,6i), 173@)

:HOODS5_4573
36@ += 1
goto @HOODS5_4488

:HOODS5_4587
set_lvar_int_to_lvar_int 173@ = 57@
173@ *= 6
173@ += 60
if 
  57@ == 5
goto_if_false @HOODS5_4666
148@ = 0
130@ = 0
131@ = 0
128@ = 0
127@ = 3
Game.SetScriptLimitToGangSize(0)

:HOODS5_4666
return 

:HOODS5_4668
if 
  148@ == 0
goto_if_false @HOODS5_4709
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 1500
148@ = 1

:HOODS5_4709
if 
  148@ == 1
goto_if_false @HOODS5_4781
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_4781
352@ = 29
Hud.ClearCounter($6680)
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2500
148@ = 2

:HOODS5_4781
if 
  148@ == 2
goto_if_false @HOODS5_4848
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_4848
352@ = 29
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2500
148@ = 3

:HOODS5_4848
if 
  148@ == 3
goto_if_false @HOODS5_4943
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_4943
if and
  not Char.IsInAir($scplayer)
  not Char.IsGettingInToACar($scplayer)
goto_if_false @HOODS5_4943
174@ = 1
Task.UseMobilePhone($scplayer, True)
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2500
148@ = 4

:HOODS5_4943
if 
  148@ == 4
goto_if_false @HOODS5_5001
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_5001
148@ = 5
352@ = 8
354@ = 2

:HOODS5_5001
if 
  148@ == 5
goto_if_false @HOODS5_5151
if 
  352@ == 0
goto_if_false @HOODS5_5151
Task.UseMobilePhone($scplayer, False)
48@ = Blip.AddForCoord(2764.272, -1979.494, 12.5394)
Path.SwitchRoadsBackToOriginal(2793.814, -1987.935, 15.3045, 2754.324, -1900.369, 9.8752)
Path.SwitchPedRoadsBackToOriginal(2793.814, -1987.935, 15.3045, 2754.324, -1900.369, 9.8752)
Text.Print('SW5_14', 5000, 1)
127@ = 4

:HOODS5_5151
return 

:HOODS5_5153
if 
  Char.LocateAnyMeans3D($scplayer, 2764.272, -1979.494, 12.5394, 4.0, 4.0, 4.0, True)
goto_if_false @HOODS5_5481
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HOODS5_5481
59@ = Char.StoreCarIsIn($scplayer)
if 
  not Car.IsDead(59@)
goto_if_false @HOODS5_5481
60@ = Car.GetMaximumNumberOfPassengers(59@)
if 
  2 > 60@
goto_if_false @HOODS5_5315
if 
  61@ == 0
goto_if_false @HOODS5_5308
Text.PrintNow('SW5_G', 5000, 1)
61@ = 1

:HOODS5_5308
goto @HOODS5_5481

:HOODS5_5315
104@ = Car.GetClass(59@)
102@ = Car.GetModel(59@)
if or
  is_int_lvar_equal_to_constant 104@ == 0
  is_int_lvar_equal_to_constant 104@ == 1
  is_int_lvar_equal_to_constant 104@ == 2
  is_int_lvar_equal_to_constant 104@ == 3
  is_int_lvar_equal_to_constant 102@ == 596
  is_int_lvar_equal_to_constant 102@ == 420
goto_if_false @HOODS5_5465
Player.SetControl($player1, False)
Task.CarTempAction($scplayer, 59@, TempAction.HandbrakeStraight, 2000000)
Camera.DoFade(800, Fade.Out)

:HOODS5_5415
if 
  Camera.GetFadingStatus
goto_if_false @HOODS5_5439
wait 0
goto @HOODS5_5415

:HOODS5_5439
127@ = 5
148@ = 0
Blip.Remove(48@)
goto @HOODS5_5481

:HOODS5_5465
Text.PrintNow('SW5_16', 1000, 1)

:HOODS5_5481
return 

:HOODS5_5483
if 
  130@ == 0
goto_if_false @HOODS5_5532
130@ = 1
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HOODS5_5532
131@ = 1

:HOODS5_5532
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HOODS5_5648
if 
  131@ == 0
goto_if_false @HOODS5_5641
if and
  not Char.IsDead(75@)
  not Char.IsDead(43@)
goto_if_false @HOODS5_5641
if and
  148@ <> 0
  148@ <> 5
goto_if_false @HOODS5_5641
148@ = 4
35@ = 0
131@ = 1
355@ = 5

:HOODS5_5641
goto @HOODS5_5673

:HOODS5_5648
if 
  131@ == 1
goto_if_false @HOODS5_5673
131@ = 0

:HOODS5_5673
if 
  148@ == 5
goto_if_false @HOODS5_5740
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_5740
Camera.DoFade(800, Fade.In)
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 3000
148@ = 1

:HOODS5_5740
if 
  148@ == 0
goto_if_false @HOODS5_6493
Text.ClearPrints
World.ClearAreaOfCars(2746.504, -2001.611, 10.775, 2789.562, -1927.154, 21.633)
Path.SwitchRoadsOff(2793.814, -1987.935, 15.3045, 2754.324, -1900.369, 9.8752)
Path.SwitchPedRoadsOff(2793.814, -1987.935, 15.3045, 2754.324, -1900.369, 9.8752)
Hud.SwitchWidescreen(True)
Char.HideWeaponForScriptedCutscene($scplayer, True)
DecisionMakerChar.ClearEventResponse(47@, 36)
DecisionMakerChar.AddEventResponse(47@, 36, 1022, 0.0, 100.0, 0.0, 0.0, True, False)
75@ = Char.Create(PedType.Mission3, 290, 2752.341, -1948.867, 16.3125)
43@ = Char.Create(PedType.Mission3, 12, 2751.282, -1948.867, 16.3125)
set_lvar_int_to_lvar_int 399@ = 75@
set_lvar_int_to_lvar_int 400@ = 43@
Char.SetSuffersCriticalHits(75@, False)
Char.SetSuffersCriticalHits(43@, False)
Char.SetOnlyDamagedByPlayer(75@, False)
Char.SetOnlyDamagedByPlayer(43@, False)
62@ = Car.Create(405, 2766.665, -1901.943, 10.005)
63@ = Car.Create(405, 2772.638, -1903.127, 10.1479)
Car.SetHeading(62@, 180.0)
Car.SetHeading(63@, 180.0)
Car.SetCanGoAgainstTraffic(62@, True)
Car.SetCanGoAgainstTraffic(63@, True)
Car.StartPlayback(62@, 153)
Car.StartPlayback(63@, 154)
65@ = Char.CreateInsideCar(63@, PedType.Mission1, 105)
64@ = Char.CreateInsideCar(62@, PedType.Mission1, 105)
Char.SetDecisionMaker(64@, 47@)
Char.SetDecisionMaker(65@, 47@)
Char.GiveWeapon(64@, WeaponType.Pistol, 99999)
Char.GiveWeapon(65@, WeaponType.Pistol, 99999)
Car.SetPlaybackSpeed(62@, 0.0)
Car.SetPlaybackSpeed(63@, 0.0)
if 
  not Car.IsDead(59@)
goto_if_false @HOODS5_6293
Car.SetCoordinates(59@, 2763.96, -1978.898, 12.5394)
Car.SetHeading(59@, 0.0)
if 
  not Car.IsPassengerSeatFree(59@, SeatIndex.TandemRear)
goto_if_false @HOODS5_6260
175@ = Car.GetCharInPassengerSeat(59@, 0)
Char.Delete(175@)

:HOODS5_6260
if 
  not Car.IsPassengerSeatFree(59@, SeatIndex.RearLeft)
goto_if_false @HOODS5_6293
175@ = Car.GetCharInPassengerSeat(59@, 1)
Char.Delete(175@)

:HOODS5_6293
Camera.SetFixedPosition(2756.231, -1949.667, 18.0543, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2755.751, -1950.535, 17.9303, SwitchType.JumpCut)
Path.FlushRoute
Path.ExtendRoute(2752.402, -1974.077, 16.3125)
Char.SetCoordinates(43@, 2752.312, -1952.896, 16.3051)
Char.SetHeading(43@, 180.0)
Task.FollowPointRoute(43@, 6, RouteMode.Once)
Char.SetCoordinates(75@, 2752.395, -1950.699, 16.3125)
Char.SetHeading(75@, 180.0)
68@ = Sequence.Open()
Task.Pause(-1, 1000)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Sequence.Close(68@)
Char.PerformSequence(75@, 68@)
Sequence.Clear(68@)
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 500
148@ = 5

:HOODS5_6493
if 
  148@ == 1
goto_if_false @HOODS5_6771
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_6771
Camera.SetFixedPosition(2764.601, -1986.696, 15.021, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2764.32, -1985.751, 14.8511, SwitchType.JumpCut)
if 
  not Car.IsDead(59@)
goto_if_false @HOODS5_6715
if 
  not Char.IsDead(43@)
goto_if_false @HOODS5_6656
Char.SetCoordinates(43@, 2760.358, -1979.501, 12.5394)
Char.SetHeading(43@, 330.0)
Task.EnterCarAsPassenger(43@, 59@, 5000, 1)

:HOODS5_6656
if 
  not Char.IsDead(75@)
goto_if_false @HOODS5_6715
Char.SetCoordinates(75@, 2767.224, -1981.524, 12.381)
Char.SetHeading(75@, 0.0)
Task.EnterCarAsPassenger(75@, 59@, 5000, 0)

:HOODS5_6715
if 
  not Car.IsDead(63@)
goto_if_false @HOODS5_6748
Car.SetPlaybackSpeed(63@, 1.0)
66@ = 1

:HOODS5_6748
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 500
148@ = 2

:HOODS5_6771
if 
  148@ == 2
goto_if_false @HOODS5_6864
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_6864
if 
  not Car.IsDead(62@)
goto_if_false @HOODS5_6841
Car.SetPlaybackSpeed(62@, 1.0)
66@ = 1

:HOODS5_6841
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000
148@ = 3

:HOODS5_6864
if 
  148@ == 3
goto_if_false @HOODS5_6931
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_6931
352@ = 12
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000
148@ = 4

:HOODS5_6931
if 
  148@ == 4
goto_if_false @HOODS5_7800
if 
  176@ == 0
goto_if_false @HOODS5_7041
if 
  not Car.IsDead(62@)
goto_if_false @HOODS5_7041
if 
  not Car.IsPlaybackGoingOn(62@)
goto_if_false @HOODS5_7041
Car.SetMission(62@, CarMission.BlockPlayerClose)
Car.SetCruiseSpeed(62@, 60.0)
Car.SetHealth(62@, 2500)
Car.SetAirResistanceMultiplier(62@, 0.1)
176@ = 1

:HOODS5_7041
if 
  177@ == 0
goto_if_false @HOODS5_7133
if 
  not Car.IsDead(63@)
goto_if_false @HOODS5_7133
if 
  not Car.IsPlaybackGoingOn(63@)
goto_if_false @HOODS5_7133
Car.SetMission(63@, CarMission.BlockPlayerClose)
Car.SetCruiseSpeed(63@, 60.0)
Car.SetHealth(63@, 2500)
Car.SetAirResistanceMultiplier(63@, 0.1)
177@ = 1

:HOODS5_7133
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_7800
if 
  352@ == 0
goto_if_false @HOODS5_7800
66@ = 1
Path.SwitchRoadsBackToOriginal(2793.814, -1987.935, 15.3045, 2754.324, -1900.369, 9.8752)
Path.SwitchPedRoadsBackToOriginal(2793.814, -1987.935, 15.3045, 2754.324, -1900.369, 9.8752)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HOODS5_7275
59@ = Char.GetCarIsUsing($scplayer)
Car.SetAirResistanceMultiplier(59@, 5.0)

:HOODS5_7275
if 
  131@ == 1
goto_if_false @HOODS5_7367
if 
  not Car.IsDead(62@)
goto_if_false @HOODS5_7330
if 
  Car.IsPlaybackGoingOn(62@)
goto_if_false @HOODS5_7330
Car.SkipToEndAndStopPlayback(62@)

:HOODS5_7330
if 
  not Car.IsDead(63@)
goto_if_false @HOODS5_7367
if 
  Car.IsPlaybackGoingOn(63@)
goto_if_false @HOODS5_7367
Car.SkipToEndAndStopPlayback(63@)

:HOODS5_7367
if and
  not Car.IsDead(62@)
  not Car.IsDead(63@)
goto_if_false @HOODS5_7458
Car.SetMission(62@, CarMission.BlockPlayerClose)
Car.SetMission(63@, CarMission.RamPlayerClose)
Car.SetCruiseSpeed(62@, 60.0)
Car.SetCruiseSpeed(63@, 60.0)
Car.SetHealth(62@, 2500)
Car.SetHealth(63@, 2500)
Car.SetAirResistanceMultiplier(62@, 0.1)
Car.SetAirResistanceMultiplier(63@, 0.1)

:HOODS5_7458
73@ = Blip.AddForCoord(2509.062, -1672.527, 12.386)
Blip.SetAsFriendly(73@, True)
if and
  not Char.IsDead(75@)
  not Car.IsDead(59@)
  not Char.IsDead(43@)
goto_if_false @HOODS5_7619
Group.SetMember($Players_Group, 75@)
Group.SetMember($Players_Group, 43@)
Char.ListenToPlayerGroupCommands(75@, False)
Char.ListenToPlayerGroupCommands(43@, False)
Char.GiveWeapon(75@, WeaponType.Pistol, 9999)
if 
  not Char.IsInCar(75@, 59@)
goto_if_false @HOODS5_7585
Char.ClearTasksImmediately(75@)
Char.WarpIntoCarAsPassenger(75@, 59@, 0)

:HOODS5_7585
if 
  not Char.IsInCar(43@, 59@)
goto_if_false @HOODS5_7619
Char.ClearTasksImmediately(43@)
Char.WarpIntoCarAsPassenger(43@, 59@, 1)

:HOODS5_7619
if and
  not Car.IsDead(63@)
  not Char.IsDead(65@)
goto_if_false @HOODS5_7687
68@ = Sequence.Open()
Task.CarTempAction(-1, 63@, TempAction.Wait, 1500)
Task.CarTempAction(-1, 63@, TempAction.ReverseRight, 1000)
Sequence.Close(68@)
Char.PerformSequence(65@, 68@)
Sequence.Clear(68@)

:HOODS5_7687
if and
  not Car.IsDead(62@)
  not Char.IsDead(64@)
goto_if_false @HOODS5_7721
Task.CarTempAction(64@, 62@, TempAction.Wait, 1500)

:HOODS5_7721
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Text.ClearPrints
Text.Print('SW5_I', 5000, 1)
127@ = 6
125@ = 1
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 3000
164@ = 0
Player.MakeGangReappear

:HOODS5_7800
return 

:HOODS5_7802
if 
  152@ == 0
goto_if_false @HOODS5_7938
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HOODS5_7938
149@ = Char.GetCarIsUsing($scplayer)
150@ = Car.GetHealth(149@)
if 
  900 > 150@
goto_if_false @HOODS5_7938
if 
  352@ == 0
goto_if_false @HOODS5_7938
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 153@
goto_if_false @HOODS5_7938
352@ = 13
152@ = 1
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 6000

:HOODS5_7938
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 153@
goto_if_false @HOODS5_8497
if and
  not Car.IsDead(62@)
  not Car.IsDead(63@)
goto_if_false @HOODS5_8349
if or
  Char.LocateInCarCar3D($scplayer, 62@, 20.0, 20.0, 10.0, False)
  Char.LocateInCarCar3D($scplayer, 63@, 20.0, 20.0, 10.0, False)
goto_if_false @HOODS5_8194
151@ = Math.RandomIntInRange(0, 5)
165@ = 0

:HOODS5_8055
if 
  154@(151@,7i) == 0
goto_if_false @HOODS5_8148
151@ += 1
165@ += 1
if 
  151@ > 4
goto_if_false @HOODS5_8116
151@ = 0

:HOODS5_8116
if 
  165@ > 4
goto_if_false @HOODS5_8141
goto @HOODS5_8171

:HOODS5_8141
goto @HOODS5_8055

:HOODS5_8148
set_lvar_int_to_lvar_int 352@ = 154@(151@,7i)
154@(151@,7i) = 0

:HOODS5_8171
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 7500
goto @HOODS5_8342

:HOODS5_8194
151@ = Math.RandomIntInRange(0, 1)
165@ = 0

:HOODS5_8210
if 
  161@(151@,3i) == 0
goto_if_false @HOODS5_8303
151@ += 1
165@ += 1
if 
  151@ > 1
goto_if_false @HOODS5_8271
151@ = 0

:HOODS5_8271
if 
  165@ > 2
goto_if_false @HOODS5_8296
goto @HOODS5_8481

:HOODS5_8296
goto @HOODS5_8210

:HOODS5_8303
set_lvar_int_to_lvar_int 352@ = 161@(151@,3i)
161@(151@,3i) = 0
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 7500

:HOODS5_8342
goto @HOODS5_8497

:HOODS5_8349
151@ = Math.RandomIntInRange(0, 2)
165@ = 0

:HOODS5_8365
if 
  161@(151@,3i) == 0
goto_if_false @HOODS5_8458
151@ += 1
165@ += 1
if 
  151@ > 1
goto_if_false @HOODS5_8426
151@ = 0

:HOODS5_8426
if 
  165@ > 2
goto_if_false @HOODS5_8451
goto @HOODS5_8481

:HOODS5_8451
goto @HOODS5_8365

:HOODS5_8458
set_lvar_int_to_lvar_int 352@ = 161@(151@,3i)
161@(151@,3i) = 0

:HOODS5_8481
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 7500

:HOODS5_8497
if 
  not Char.IsDead(75@)
goto_if_false @HOODS5_8712
if 
  not Char.IsGroupMember(75@, $Players_Group)
goto_if_false @HOODS5_8712
if 
  69@ == 0
goto_if_false @HOODS5_8609
69@ = 1
Text.Print('SW5_T', 4000, 1)
if 
  not Blip.DoesExist(71@)
goto_if_false @HOODS5_8604
71@ = Blip.AddForChar(75@)
Blip.SetAsFriendly(71@, True)

:HOODS5_8604
Blip.Remove(73@)

:HOODS5_8609
if and
  Char.LocateAnyMeansChar2D($scplayer, 75@, 6.0, 6.0, False)
  69@ == 1
goto_if_false @HOODS5_8712
69@ = 0
Group.SetMember($Players_Group, 75@)
Char.ListenToPlayerGroupCommands(75@, False)
Blip.Remove(71@)
if 
  70@ == 0
goto_if_false @HOODS5_8712
73@ = Blip.AddForCoord(2509.062, -1672.527, 12.386)

:HOODS5_8712
if 
  not Char.IsDead(43@)
goto_if_false @HOODS5_8934
if 
  not Char.IsGroupMember(43@, $Players_Group)
goto_if_false @HOODS5_8934
if 
  70@ == 0
goto_if_false @HOODS5_8824
70@ = 1
Text.Print('SW5_U', 4000, 1)
if 
  not Blip.DoesExist(72@)
goto_if_false @HOODS5_8819
72@ = Blip.AddForChar(43@)
Blip.SetAsFriendly(72@, True)

:HOODS5_8819
Blip.Remove(73@)

:HOODS5_8824
if and
  Char.LocateAnyMeansChar2D($scplayer, 43@, 6.0, 6.0, False)
  70@ == 1
goto_if_false @HOODS5_8934
70@ = 0
Group.SetMember($Players_Group, 43@)
Char.ListenToPlayerGroupCommands(43@, False)
Blip.Remove(72@)
if 
  69@ == 0
goto_if_false @HOODS5_8934
73@ = Blip.AddForCoord(2509.062, -1672.527, 12.386)
Blip.SetAsFriendly(73@, True)

:HOODS5_8934
if 
  66@ == 1
goto_if_false @HOODS5_9054
if and
  not Car.IsDead(63@)
  not Char.IsDead(65@)
goto_if_false @HOODS5_9054
if 
  not Char.LocateAnyMeansChar3D($scplayer, 65@, 50.0, 50.0, 20.0, False)
goto_if_false @HOODS5_9054
85@, 86@, 87@ = Char.GetCoordinates($scplayer)
91@ = Char.GetHeading($scplayer)
66@ = 2
set_lvar_int_to_lvar_int 67@ = TIMERA
67@ += 800

:HOODS5_9054
if and
  66@ == 2
  103@ == 0
goto_if_false @HOODS5_9284
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 67@
goto_if_false @HOODS5_9284
88@, 89@, 90@ = Path.GetNthClosestCarNode($player_x, $player_y, $player_z, 2)
if 
  not Camera.IsPointOnScreen(85@, 86@, 87@, 8.0)
goto_if_false @HOODS5_9284
if 
  not Char.LocateStoppedAnyMeans3D($scplayer, 88@, 89@, 90@, 10.0, 10.0, 10.0, False)
goto_if_false @HOODS5_9284
if and
  not Car.IsDead(63@)
  not Char.IsDead(65@)
goto_if_false @HOODS5_9284
if 
  not Car.IsUpsidedown(63@)
goto_if_false @HOODS5_9284
if 
  Char.IsInCar(65@, 63@)
goto_if_false @HOODS5_9284
Car.SetCoordinates(63@, 85@, 86@, 87@)
Car.SetHeading(63@, 91@)
Car.SetForwardSpeed(63@, 25.0)
66@ = 1

:HOODS5_9284
if and
  not Char.IsDead(75@)
  not Char.IsDead(43@)
goto_if_false @HOODS5_9682
if 
  103@ == 0
goto_if_false @HOODS5_9464
if 
  Char.LocateAnyMeans3D($scplayer, 2509.062, -1672.527, 12.386, 63.0, 63.0, 60.0, False)
goto_if_false @HOODS5_9464
103@ = 1
if 
  not Car.IsDead(62@)
goto_if_false @HOODS5_9421
Car.SetMission(62@, CarMission.Cruise)
Car.SetCruiseSpeed(62@, 20.0)
Car.MarkAsNoLongerNeeded(62@)
Char.MarkAsNoLongerNeeded(64@)

:HOODS5_9421
if 
  not Car.IsDead(63@)
goto_if_false @HOODS5_9464
Car.SetMission(63@, CarMission.Cruise)
Car.SetCruiseSpeed(63@, 20.0)
Car.MarkAsNoLongerNeeded(63@)
Char.MarkAsNoLongerNeeded(65@)

:HOODS5_9464
if and
  70@ == 0
  69@ == 0
goto_if_false @HOODS5_9682
if 
  Char.LocateAnyMeans3D($scplayer, 2509.062, -1672.527, 12.386, 4.0, 4.0, 4.0, True)
goto_if_false @HOODS5_9682
if and
  Char.LocateAnyMeans3D(75@, 2509.062, -1672.527, 12.386, 8.0, 8.0, 4.0, False)
  Char.LocateAnyMeans3D(43@, 2509.062, -1672.527, 12.386, 8.0, 8.0, 4.0, False)
goto_if_false @HOODS5_9682
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HOODS5_9668
Player.SetControl($player1, False)
$car = Char.StoreCarIsInNoSave($scplayer)
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 2000000)

:HOODS5_9668
127@ = 7
148@ = 0

:HOODS5_9682
return 

:HOODS5_9684
if 
  148@ == 0
goto_if_false @HOODS5_9732
125@ = 0
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 600
148@ = 12

:HOODS5_9732
if 
  148@ == 12
goto_if_false @HOODS5_10395
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_10395
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HOODS5_9801
59@ = Char.GetCarIsUsing($scplayer)
129@ = Car.GetModel(59@)

:HOODS5_9801
if 
  not Char.IsDead(75@)
goto_if_false @HOODS5_9832
Char.SetProofs(75@, True, True, True, True, True)

:HOODS5_9832
if 
  not Char.IsDead(43@)
goto_if_false @HOODS5_9863
Char.SetProofs(43@, True, True, True, True, True)

:HOODS5_9863
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
World.ClearAreaOfCars(2472.102, -1646.181, 19.6421, 2517.383, -1691.232, 9.4098)
World.ClearAreaOfChars(2472.102, -1646.181, 19.6421, 2517.383, -1691.232, 9.4098)
if 
  not Car.IsDead(62@)
goto_if_false @HOODS5_9992
if 
  not Char.IsInCar($scplayer, 62@)
goto_if_false @HOODS5_9992
Car.Delete(62@)

:HOODS5_9992
if 
  not Car.IsDead(63@)
goto_if_false @HOODS5_10032
if 
  not Char.IsInCar($scplayer, 63@)
goto_if_false @HOODS5_10032
Car.Delete(63@)

:HOODS5_10032
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HOODS5_10099
if 
  not Car.IsDead(59@)
goto_if_false @HOODS5_10099
Task.LeaveAnyCar($scplayer)
Car.SetCoordinates(59@, 2507.709, -1672.192, 13.458)
Car.SetHeading(59@, 340.0)

:HOODS5_10099
Camera.SetFixedPosition(2514.24, -1679.268, 14.5054, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2513.649, -1678.483, 14.3221, SwitchType.JumpCut)
if 
  not Char.IsDead(43@)
goto_if_false @HOODS5_10246
$car = Char.GetCarIsUsing(43@)
if 
  $car == -1
goto_if_false @HOODS5_10246
Char.SetCoordinates(43@, 2509.821, -1675.815, 12.5469)
Char.SetHeading(43@, 337.0)
Task.GoStraightToCoord(43@, 2512.229, -1672.784, 12.4531, MoveState.Walk, -2)

:HOODS5_10246
if 
  not Char.IsDead(75@)
goto_if_false @HOODS5_10342
$car = Char.GetCarIsUsing(75@)
if 
  $car == -1
goto_if_false @HOODS5_10342
Char.SetCoordinates(75@, 2508.821, -1675.815, 12.5469)
Char.SetHeading(75@, 337.0)
Task.GoStraightToCoord(75@, 2511.229, -1672.784, 12.4531, MoveState.Walk, -2)

:HOODS5_10342
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HOODS5_10388
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 300
148@ = 10
goto @HOODS5_10395

:HOODS5_10388
148@ = 2

:HOODS5_10395
if 
  148@ == 10
goto_if_false @HOODS5_10502
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_10502
if 
  not Char.IsDead(43@)
goto_if_false @HOODS5_10502
$car = Char.GetCarIsUsing(43@)
if 
  $car <> -1
goto_if_false @HOODS5_10479
Task.LeaveAnyCar(43@)

:HOODS5_10479
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 400
148@ = 11

:HOODS5_10502
if 
  148@ == 11
goto_if_false @HOODS5_10609
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_10609
if 
  not Char.IsDead(75@)
goto_if_false @HOODS5_10609
$car = Char.GetCarIsUsing(75@)
if 
  $car <> -1
goto_if_false @HOODS5_10586
Task.LeaveAnyCar(75@)

:HOODS5_10586
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000
148@ = 1

:HOODS5_10609
if 
  148@ == 1
goto_if_false @HOODS5_10653
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_10653
148@ = 2

:HOODS5_10653
if 
  148@ == 2
goto_if_false @HOODS5_11132
if 
  not Car.IsDead(59@)
goto_if_false @HOODS5_10694
Car.SetVisible(59@, False)

:HOODS5_10694
Camera.SetFixedPosition(2509.713, -1671.558, 13.5033, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2510.19, -1672.389, 13.8387, SwitchType.JumpCut)
Char.SetCoordinatesNoOffset($scplayer, 2509.892, -1672.469, 13.5032)
Char.SetHeading($scplayer, 270.0)
if and
  not Char.IsDead(75@)
  not Char.IsDead(43@)
goto_if_false @HOODS5_11006
Char.Delete(75@)
75@ = Char.Create(PedType.CivMale, 290, 2752.341, -1948.867, 16.3125)
Char.SetCurrentWeapon(75@, WeaponType.Unarmed)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.RemoveFromGroup(75@)
Char.RemoveFromGroup(43@)
Char.ClearTasksImmediately(75@)
Char.ClearTasksImmediately(43@)
Char.SetCoordinatesNoOffset(75@, 2510.792, -1672.469, 13.5032)
Char.SetCoordinatesNoOffset(43@, 2510.792, -1673.469, 13.5032)
Char.SetHeading(75@, 90.0)
Char.SetHeading(43@, 90.0)
Task.PlayAnimNonInterruptable(75@, "SWEET_ASS_SLAP", "SWEET", 4.0, False, False, False, False, -2)
Task.PlayAnimNonInterruptable(43@, "HO_ASS_SLAPPED", "SWEET", 4.0, False, False, False, False, -2)

:HOODS5_11006
set_lvar_int_to_lvar_int 399@ = 75@
$wz1_health_bar = 1
203@ = 23
227@ = 5
207@ = 100
208@ = 1900
209@ = 4200
210@ = 6000
211@ = 8000
217@ = 23
218@ = 24
219@ = 25
220@ = 26
221@ = 27
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 1700
148@ = 3

:HOODS5_11132
if 
  148@ == 3
goto_if_false @HOODS5_11251
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11251
if 
  not Char.IsDead(75@)
goto_if_false @HOODS5_11228
Task.PlayAnimNonInterruptable(75@, "PRTIAL_GNGTLKA", "GANGS", 4.0, False, False, False, False, -2)

:HOODS5_11228
148@ = 4
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 300

:HOODS5_11251
if 
  148@ == 4
goto_if_false @HOODS5_11352
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11352
if 
  not Char.IsDead(43@)
goto_if_false @HOODS5_11329
Task.FollowPathNodesToCoord(43@, 2516.686, -1675.861, 13.1227, 4, 5500)

:HOODS5_11329
148@ = 5
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000

:HOODS5_11352
if 
  148@ == 5
goto_if_false @HOODS5_11503
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11503
Task.PlayAnim($scplayer, "HNDSHKFA", "GANGS", 4.0, False, False, False, False, -2)
if 
  not Char.IsDead(75@)
goto_if_false @HOODS5_11480
Task.PlayAnimNonInterruptable(75@, "HNDSHKFA", "GANGS", 4.0, False, False, False, False, 3400)

:HOODS5_11480
148@ = 7
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 4000

:HOODS5_11503
if 
  148@ == 7
goto_if_false @HOODS5_11691
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11691
if 
  not Char.IsDead(75@)
goto_if_false @HOODS5_11668
Task.PlayAnimNonInterruptable(75@, "SWEET_HNDSHLDR_01", "SWEET", 4.0, False, False, False, False, -2)
Task.PlayAnimNonInterruptable($scplayer, "PLYR_HNDSHLDR_01", "SWEET", 4.0, False, False, False, False, -2)
if 
  not Char.IsDead(43@)
goto_if_false @HOODS5_11668
Char.Delete(43@)

:HOODS5_11668
148@ = 8
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 3500

:HOODS5_11691
if 
  148@ == 8
goto_if_false @HOODS5_11799
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11799
if 
  not Char.IsDead(75@)
goto_if_false @HOODS5_11776
Char.FreezePosition(75@, False)
Task.FollowPathNodesToCoord(75@, 2516.686, -1675.861, 13.1227, 4, 5500)

:HOODS5_11776
148@ = 9
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 1500

:HOODS5_11799
if 
  148@ == 9
goto_if_false @HOODS5_11949
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11949
if 
  not Char.IsDead(75@)
goto_if_false @HOODS5_11857
Char.Delete(75@)

:HOODS5_11857
if 
  not Char.IsDead(43@)
goto_if_false @HOODS5_11878
Char.Delete(43@)

:HOODS5_11878
if 
  not Car.IsDead(59@)
goto_if_false @HOODS5_11901
Car.SetVisible(59@, True)

:HOODS5_11901
Char.FreezePosition($scplayer, False)
Player.SetControl($player1, True)
Char.SetHeading($scplayer, 90.0)
Hud.SwitchWidescreen(False)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.MakeGangReappear
127@ = 8

:HOODS5_11949
return 

:HOODS5_11951
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 179@
goto_if_false @HOODS5_13222
set_lvar_int_to_lvar_int 179@ = TIMERA
179@ += 50
180@ += 1
if 
  180@ == 5
goto_if_false @HOODS5_12017
180@ = 0

:HOODS5_12017
if 
  not Char.IsDead(37@(180@,6i))
goto_if_false @HOODS5_13109
if 
  96@ == 0
goto_if_false @HOODS5_12085
if 
  Char.HasBeenDamagedByChar(37@(180@,6i), $scplayer)
goto_if_false @HOODS5_12085
96@ = 1

:HOODS5_12085
82@, 83@, 84@ = Char.GetCoordinates(37@(180@,6i))
85@, 86@, 87@ = Char.GetCoordinates($scplayer)
200@ = Math.GetDistanceBetweenCoords2D(85@, 86@, 82@, 83@)
if 
  not is_int_lvar_equal_to_int_lvar 193@ == 180@
goto_if_false @HOODS5_12211
if 
  is_float_lvar_greater_than_float_lvar 198@ > 200@
goto_if_false @HOODS5_12204
set_lvar_int_to_lvar_int 194@ = 193@
set_lvar_float_to_lvar_float 199@ = 198@
set_lvar_float_to_lvar_float 198@ = 200@
set_lvar_int_to_lvar_int 193@ = 180@

:HOODS5_12204
goto @HOODS5_12219

:HOODS5_12211
set_lvar_float_to_lvar_float 198@ = 200@

:HOODS5_12219
if 
  not is_int_lvar_equal_to_int_lvar 194@ == 180@
goto_if_false @HOODS5_12299
if 
  not is_int_lvar_equal_to_int_lvar 193@ == 180@
goto_if_false @HOODS5_12292
if 
  is_float_lvar_greater_than_float_lvar 199@ > 200@
goto_if_false @HOODS5_12292
set_lvar_int_to_lvar_int 194@ = 180@
set_lvar_float_to_lvar_float 199@ = 200@

:HOODS5_12292
goto @HOODS5_12307

:HOODS5_12299
set_lvar_float_to_lvar_float 199@ = 200@

:HOODS5_12307
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HOODS5_12573
59@ = Char.GetCarIsUsing($scplayer)
188@ = Car.GetSpeed(59@)
if 
  188@ > 5.0
goto_if_false @HOODS5_12573
197@ = Math.RandomFloatInRange(-0.2, 0.2)
set_lvar_float_to_lvar_float 196@ = 188@
196@ *= 1.6
add_float_lvar_to_float_lvar 196@ += 197@
if 
  is_float_lvar_greater_than_float_lvar 196@ > 200@
goto_if_false @HOODS5_12573
set_lvar_float_to_lvar_float 196@ = 87@
sub_float_lvar_from_float_lvar 196@ -= 84@
196@ = Math.Abs()
if 
  1.0 > 196@
goto_if_false @HOODS5_12573
set_lvar_float_to_lvar_float 195@ = 82@
sub_float_lvar_from_float_lvar 195@ -= 85@
set_lvar_float_to_lvar_float 196@ = 83@
sub_float_lvar_from_float_lvar 196@ -= 86@
190@ = Math.GetHeadingFromVector2D(195@, 196@)
189@ = Car.GetHeading(59@)
set_lvar_float_to_lvar_float 195@ = 190@
sub_float_lvar_from_float_lvar 195@ -= 189@
195@ = Math.Abs()
if 
  5.0 > 195@
goto_if_false @HOODS5_12573
96@ = 1
181@(180@,6i) = 4

:HOODS5_12573
if 
  181@(180@,6i) == 4
goto_if_false @HOODS5_12661
34@ = Char.GetScriptTaskStatus(37@(180@,6i), 1651)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HOODS5_12661
Task.DiveAndGetUp(37@(180@,6i), 1.0, 0.0, 500)
181@(180@,6i) = 5

:HOODS5_12661
if 
  181@(180@,6i) == 5
goto_if_false @HOODS5_12727
34@ = Char.GetScriptTaskStatus(37@(180@,6i), 1651)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HOODS5_12727
181@(180@,6i) = 0

:HOODS5_12727
if 
  181@(180@,6i) == 0
goto_if_false @HOODS5_12805
if 
  96@ == 1
goto_if_false @HOODS5_12805
if or
  is_int_lvar_equal_to_int_lvar 180@ == 193@
  is_int_lvar_equal_to_int_lvar 180@ == 194@
goto_if_false @HOODS5_12805
181@(180@,6i) = 1

:HOODS5_12805
if 
  181@(180@,6i) == 1
goto_if_false @HOODS5_13102
34@ = Char.GetScriptTaskStatus(37@(180@,6i), 1869)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HOODS5_12953
34@ = Char.GetScriptTaskStatus(37@(180@,6i), 1506)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HOODS5_12953
187@ = Math.RandomIntInRange(0, 2)
if 
  187@ == 0
goto_if_false @HOODS5_12941
Task.ShootAtChar(37@(180@,6i), $scplayer, -2)
goto @HOODS5_12953

:HOODS5_12941
Task.KillCharOnFoot(37@(180@,6i), $scplayer)

:HOODS5_12953
if and
  not is_int_lvar_equal_to_int_lvar 180@ == 193@
  not is_int_lvar_equal_to_int_lvar 180@ == 194@
goto_if_false @HOODS5_13102
34@ = Char.GetScriptTaskStatus(37@(180@,6i), 1560)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HOODS5_13102
68@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 106@(180@,6f), 112@(180@,6f), 118@(180@,6f), 6, 6000)
Task.ShootAtCoord(-1, 2750.957, -1968.016, 17.9291, -2)
Sequence.Close(68@)
Char.PerformSequence(37@(180@,6i), 68@)
Sequence.Clear(68@)
181@(180@,6i) = 0

:HOODS5_13102
goto @HOODS5_13222

:HOODS5_13109
if 
  96@ == 0
goto_if_false @HOODS5_13134
96@ = 1

:HOODS5_13134
if 
  is_int_lvar_equal_to_int_lvar 180@ == 193@
goto_if_false @HOODS5_13186
set_lvar_int_to_lvar_int 193@ = 194@
set_lvar_float_to_lvar_float 198@ = 199@
194@ = 0
199@ = 99999.0

:HOODS5_13186
if 
  is_int_lvar_equal_to_int_lvar 180@ == 194@
goto_if_false @HOODS5_13222
194@ = 0
199@ = 99999.0

:HOODS5_13222
return 

:HOODS5_13224
if 
  203@ <> 0
goto_if_false @HOODS5_13424
if 
  204@ == 0
goto_if_false @HOODS5_13302
204@ = 1
set_lvar_int_to_lvar_int 205@ = TIMERA
206@ = 0
set_lvar_int_to_lvar_int 408@ = 205@
add_int_lvar_to_int_lvar 408@ += 207@(206@,10i)

:HOODS5_13302
if 
  204@ == 1
goto_if_false @HOODS5_13424
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 408@
goto_if_false @HOODS5_13424
set_lvar_int_to_lvar_int 352@ = 217@(206@,10i)
206@ += 1
227@ -= 1
if 
  227@ == 0
goto_if_false @HOODS5_13404
203@ = 0
204@ = 0
goto @HOODS5_13424

:HOODS5_13404
set_lvar_int_to_lvar_int 408@ = 205@
add_int_lvar_to_int_lvar 408@ += 207@(206@,10i)

:HOODS5_13424
switch_start 355@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @HOODS5_15214 {caseNum1} 0 {caseLabel1} @HOODS5_13487 {caseNum2} 1 {caseLabel2} @HOODS5_14356 {caseNum3} 2 {caseLabel3} @HOODS5_14885 {caseNum4} 3 {caseLabel4} @HOODS5_14961 {caseNum5} 4 {caseLabel5} @HOODS5_15019 {caseNum6} 5 {caseLabel6} @HOODS5_15133 {caseNum7} -1 {caseLabel7} @HOODS5_15214

:HOODS5_13487
set_lvar_text_label 230@s = 'MSWE13A'
set_lvar_int_to_constant 309@ = 14538
set_lvar_text_label 232@s = 'MSWE13B'
set_lvar_int_to_constant 310@ = 14484
set_lvar_text_label 234@s = 'MSWE13C'
set_lvar_int_to_constant 311@ = 14485
set_lvar_text_label 236@s = 'MSWE13D'
set_lvar_int_to_constant 312@ = 14486
set_lvar_text_label 238@s = 'MSWE13E'
set_lvar_int_to_constant 313@ = 14487
set_lvar_text_label 240@s = 'MSWE13F'
set_lvar_int_to_constant 314@ = 14539
set_lvar_text_label 242@s = 'MSWE13G'
set_lvar_int_to_constant 315@ = 14488
set_lvar_text_label 244@s = 'SWE5_FA'
set_lvar_int_to_constant 316@ = 15019
set_lvar_text_label 246@s = 'SWE5_FB'
set_lvar_int_to_constant 317@ = 15020
set_lvar_text_label 248@s = 'SWE5_GH'
set_lvar_int_to_constant 318@ = 15035
set_lvar_text_label 250@s = 'SWE5_CA'
set_lvar_int_to_constant 319@ = 15010
set_lvar_text_label 252@s = 'SWE5_CC'
set_lvar_int_to_constant 320@ = 15012
set_lvar_text_label 254@s = 'SWE5_GA'
set_lvar_int_to_constant 321@ = 15021
set_lvar_text_label 256@s = 'SWE5_GC'
set_lvar_int_to_constant 322@ = 15023
set_lvar_text_label 258@s = 'SWE5_GD'
set_lvar_int_to_constant 323@ = 15024
set_lvar_text_label 260@s = 'SWE5_GE'
set_lvar_int_to_constant 324@ = 15028
set_lvar_text_label 262@s = 'SWE5_GF'
set_lvar_int_to_constant 325@ = 15029
set_lvar_text_label 264@s = 'SWE5_GG'
set_lvar_int_to_constant 326@ = 15030
set_lvar_text_label 266@s = 'SWE5_GJ'
set_lvar_int_to_constant 327@ = 15036
set_lvar_text_label 268@s = 'SWE5_GK'
set_lvar_int_to_constant 328@ = 15037
set_lvar_text_label 270@s = 'SWE5_GB'
set_lvar_int_to_constant 329@ = 15022
set_lvar_text_label 272@s = 'SWE5_GL'
set_lvar_int_to_constant 330@ = 15038
set_lvar_text_label 274@s = 'SWE5_EA'
set_lvar_int_to_constant 331@ = 15015
set_lvar_text_label 276@s = 'SWE5_EB'
set_lvar_int_to_constant 332@ = 15016
set_lvar_text_label 278@s = 'SWE5_EC'
set_lvar_int_to_constant 333@ = 15017
set_lvar_text_label 280@s = 'SWE5_ED'
set_lvar_int_to_constant 334@ = 15027
set_lvar_text_label 282@s = 'SWE5_EE'
set_lvar_int_to_constant 335@ = 15018
set_lvar_text_label 286@s = 'MOBRING'
set_lvar_int_to_constant 337@ = 28200
358@ = 1
359@ = 0
360@ = 0
361@ = 0
362@ = 0
363@ = 1
364@ = 0
365@ = 0
366@ = 0
367@ = 3
368@ = 0
369@ = 0
370@ = 2
371@ = 2
372@ = 2
373@ = 1
374@ = 1
375@ = 1
376@ = 3
377@ = 3
378@ = 2
379@ = 3
380@ = 2
381@ = 2
382@ = 2
383@ = 1
384@ = 2
385@ = 2
386@ = 0
set_lvar_int_to_var_int 398@ = $scplayer
355@ = 1
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 309@)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 310@)
349@ = 1
350@ = 2
goto @HOODS5_15214

:HOODS5_14356
if 
  352@ <> 0
goto_if_false @HOODS5_14878
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 356@
goto_if_false @HOODS5_14878
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @HOODS5_14878
if 
  is_int_lvar_equal_to_int_lvar 349@ == 352@
goto_if_false @HOODS5_14445
351@ = 1
goto @HOODS5_14508

:HOODS5_14445
if 
  is_int_lvar_equal_to_int_lvar 350@ == 352@
goto_if_false @HOODS5_14478
351@ = 2
goto @HOODS5_14508

:HOODS5_14478
351@ = 1
set_lvar_int_to_lvar_int 349@ = 352@
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 308@(352@,40i))

:HOODS5_14508
if 
  Audio.HasMissionAudioLoaded(351@)
goto_if_false @HOODS5_14866
if 
  357@(352@,40i) <> 0
goto_if_false @HOODS5_14639
set_lvar_int_to_lvar_int 405@ = 357@(352@,40i)
set_lvar_int_to_lvar_int 406@ = 397@(405@,7i)
if 
  not Char.IsDead(406@)
goto_if_false @HOODS5_14639
Audio.AttachMissionAudioToChar(351@, 406@)
if 
  not Char.IsTalking(406@)
goto_if_false @HOODS5_14632
404@ = 1
Char.StartFacialTalk(406@, 15000)
goto @HOODS5_14639

:HOODS5_14632
Char.DisableSpeech(406@, False)

:HOODS5_14639
if 
  357@(352@,40i) == 0
goto_if_false @HOODS5_14668
404@ = 1

:HOODS5_14668
if 
  404@ == 1
goto_if_false @HOODS5_14859
Audio.PlayMissionAudio(351@)
Text.ClearPrints
Text.Print(228@(352@,40s), 10000, 1)
355@ += 1
404@ = 0
352@ += 1
set_lvar_int_to_lvar_int 353@ = 352@
if 
  308@(352@,40i) <> 0
goto_if_false @HOODS5_14859
if 
  351@ == 1
goto_if_false @HOODS5_14821
if 
  not is_int_lvar_equal_to_int_lvar 350@ == 352@
goto_if_false @HOODS5_14814
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 308@(352@,40i))
set_lvar_int_to_lvar_int 350@ = 352@

:HOODS5_14814
goto @HOODS5_14859

:HOODS5_14821
if 
  not is_int_lvar_equal_to_int_lvar 349@ == 352@
goto_if_false @HOODS5_14859
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 308@(352@,40i))
set_lvar_int_to_lvar_int 349@ = 352@

:HOODS5_14859
goto @HOODS5_14878

:HOODS5_14866
Audio.LoadMissionAudio(351@, 308@(352@,40i))

:HOODS5_14878
goto @HOODS5_15214

:HOODS5_14885
if 
  Audio.HasMissionAudioFinished(351@)
goto_if_false @HOODS5_14915
355@ += 1
goto @HOODS5_14954

:HOODS5_14915
if 
  Char.DoesExist(406@)
goto_if_false @HOODS5_14954
if 
  Char.IsDead(406@)
goto_if_false @HOODS5_14954
355@ += 1

:HOODS5_14954
goto @HOODS5_15214

:HOODS5_14961
Audio.ClearMissionAudio(351@)
348@(351@,3i) = 0
Text.ClearPrints
if 
  not Char.IsDead(406@)
goto_if_false @HOODS5_15005
Char.StopFacialTalk(406@)
Char.EnableSpeech(406@)

:HOODS5_15005
355@ += 1
goto @HOODS5_15214

:HOODS5_15019
352@ += 1
if 
  308@(352@,40i) <> 0
goto_if_false @HOODS5_15072
Audio.LoadMissionAudio(351@, 308@(352@,40i))
set_lvar_int_to_lvar_int 348@(351@,3i) = 352@

:HOODS5_15072
354@ -= 1
if 
  354@ <= 0
goto_if_false @HOODS5_15111
352@ = 0
goto @HOODS5_15119

:HOODS5_15111
set_lvar_int_to_lvar_int 352@ = 353@

:HOODS5_15119
355@ = 1
goto @HOODS5_15214

:HOODS5_15133
355@ = 1
352@ = 0
354@ = 0
203@ = 0
227@ = 0
Audio.ClearMissionAudio(351@)
348@(351@,3i) = 0
Text.ClearPrints
if 
  not Char.IsDead(406@)
goto_if_false @HOODS5_15207
Char.EnableSpeech(406@)

:HOODS5_15207
goto @HOODS5_15214

:HOODS5_15214
return 

:HOODS5_15216
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:HOODS5_15234
$flag_sweet_mission_counter += 1
Stat.RegisterMissionPassed('SWEET_5')
Stat.PlayerMadeProgress(1)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Text.PrintWithNumberBig('M_PASSR', 7, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(7)
return 

:HOODS5_15289
$onmission = 0
CarGenerator.Switch($gen_car6, 101)
Game.SetScriptLimitToGangSize(99)
if 
  Char.DoesExist(75@)
goto_if_false @HOODS5_15373
if 
  not Char.IsDead(75@)
goto_if_false @HOODS5_15373
Char.SetProofs(75@, False, False, False, False, False)
Char.SetOnlyDamagedByPlayer(75@, False)
Char.SetNeverTargeted(75@, False)
Char.MarkAsNoLongerNeeded(75@)

:HOODS5_15373
if 
  Char.DoesExist(43@)
goto_if_false @HOODS5_15439
if 
  not Char.IsDead(43@)
goto_if_false @HOODS5_15439
Char.SetProofs(43@, False, False, False, False, False)
Char.SetOnlyDamagedByPlayer(43@, False)
Char.SetNeverTargeted(43@, False)
Char.MarkAsNoLongerNeeded(43@)

:HOODS5_15439
36@ = 0

:HOODS5_15446
if 
  5 > 36@
goto_if_false @HOODS5_15487
Char.MarkAsNoLongerNeeded(37@(36@,6i))
36@ += 1
goto @HOODS5_15446

:HOODS5_15487
if 
  not Char.IsDead($scplayer)
goto_if_false @HOODS5_15510
Task.UseMobilePhone($scplayer, False)

:HOODS5_15510
Streaming.RemoveAnimation("SWEET")
Streaming.RemoveAnimation("GANGS")
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(12)
Streaming.MarkModelAsNoLongerNeeded(372)
Streaming.MarkModelAsNoLongerNeeded(405)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(105)
Streaming.MarkModelAsNoLongerNeeded(106)
Streaming.UnloadSpecialCharacter(1)
Streaming.RemoveCarRecording(153)
Streaming.RemoveCarRecording(154)
Path.SwitchRoadsBackToOriginal(2793.814, -1987.935, 15.3045, 2754.324, -1900.369, 9.8752)
Path.SwitchPedRoadsBackToOriginal(2793.814, -1987.935, 15.3045, 2754.324, -1900.369, 9.8752)
Path.SwitchRoadsBackToOriginal(2463.375, -1702.695, 17.9193, 2508.735, -1644.574, 10.5835)
if 
  not Car.IsDead(105@)
goto_if_false @HOODS5_15696
Car.MarkAsNoLongerNeeded(105@)

:HOODS5_15696
Hud.ClearCounter($6680)
Char.ClearRelationship($scplayer, RelationshipType.Hate, PedType.Mission1)
Blip.Remove(51@)
Blip.Remove(52@)
Blip.Remove(53@)
Blip.Remove(54@)
Blip.Remove(55@)
Blip.Remove(48@)
Blip.Remove(73@)
Blip.Remove(49@)
Blip.Remove(71@)
Blip.Remove(72@)
Game.SetWantedMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SwitchEmergencyServices(True)
DecisionMaker.Remove(47@)
DecisionMaker.Remove(99@)
Game.SetCreateRandomGangMembers(True)
Player.SetGroupToFollowAlways($player1, False)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

//-------------Mission 19---------------
// Originally: Cesar Vialpando

:SWEET6
script_name 'SWEET6'
gosub @SWEET6_47
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET6_38
gosub @SWEET6_35885

:SWEET6_38
gosub @SWEET6_36111
terminate_this_script 

:SWEET6_47
Stat.RegisterMissionGiven
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
66@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
67@ = DecisionMakerChar.Load(DecisionMakerType.Tough)

:SWEET6_147
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @SWEET6_173
36@ = 1

:SWEET6_173
39@ += 1
if 
  39@ > 22
goto_if_false @SWEET6_205
39@ = 0

:SWEET6_205
40@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 64@ += 42@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 136@ += 42@
add_int_lvar_to_int_lvar 137@ += 42@
add_int_lvar_to_int_lvar 138@ += 42@
add_int_lvar_to_int_lvar 139@ += 42@
add_int_lvar_to_int_lvar 140@ += 42@
gosub @SWEET6_567
switch_start 34@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SWEET6_458 {caseNum1} 0 {caseLabel1} @SWEET6_360 {caseNum2} 1 {caseLabel2} @SWEET6_374 {caseNum3} 2 {caseLabel3} @SWEET6_388 {caseNum4} 3 {caseLabel4} @SWEET6_402 {caseNum5} 4 {caseLabel5} @SWEET6_416 {caseNum6} 5 {caseLabel6} @SWEET6_430 {caseNum7} 6 {caseLabel7} @SWEET6_444

:SWEET6_360
gosub @SWEET6_1379
goto @SWEET6_458

:SWEET6_374
gosub @SWEET6_1720
goto @SWEET6_458

:SWEET6_388
gosub @SWEET6_2081
goto @SWEET6_458

:SWEET6_402
gosub @SWEET6_7478
goto @SWEET6_458

:SWEET6_416
gosub @SWEET6_16694
goto @SWEET6_458

:SWEET6_430
gosub @SWEET6_19507
goto @SWEET6_458

:SWEET6_444
gosub @SWEET6_24628
goto @SWEET6_458

:SWEET6_458
gosub @SWEET6_28469

:SWEET6_465
if 
  38@ == 0
goto_if_false @SWEET6_565
if 
  37@ == 0
goto_if_false @SWEET6_549
if 
  36@ == 0
goto_if_false @SWEET6_533
goto @SWEET6_147
goto @SWEET6_542

:SWEET6_533
gosub @SWEET6_35937
return 

:SWEET6_542
goto @SWEET6_558

:SWEET6_549
gosub @SWEET6_35885
return 

:SWEET6_558
goto @SWEET6_567

:SWEET6_565
return 

:SWEET6_567
if 
is_ps2_keyboard_key_just_pressed 27
goto_if_false @SWEET6_658
if 
  68@ == 0
goto_if_false @SWEET6_632
68@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @SWEET6_658

:SWEET6_632
68@ = 0
write_debug "LEVEL_DEBUG_OFF"

:SWEET6_658
if 
  68@ == 1
goto_if_false @SWEET6_1377
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @SWEET6_725
69@ += 1
if 
  69@ > 3
goto_if_false @SWEET6_723
69@ = 0

:SWEET6_723
clear_all_view_variables 

:SWEET6_725
if 
  69@ == 1
goto_if_false @SWEET6_935
set_var_int_to_lvar_int $sw5_sweet_health = 34@
set_var_int_to_lvar_int $SWEET6_view_debug = 35@
set_var_int_to_lvar_int $6683 = 62@
set_var_int_to_lvar_int $6684 = 64@
set_var_int_to_lvar_int $6685 = 63@
set_var_int_to_lvar_int $6686 = 65@
set_var_int_to_lvar_int $6687 = TIMERA
set_var_int_to_lvar_int $6688 = TIMERB
view_integer_variable $sw5_sweet_health {_p2} "M_STAGE"
view_integer_variable $SWEET6_view_debug {_p2} "M_GOALS"
view_integer_variable $6683 {_p2} "DIALOGUE_FLAG"
view_integer_variable $6684 {_p2} "DIALOGUE_TIMER"
view_integer_variable $6685 {_p2} "HELP_FLAG"
view_integer_variable $6686 {_p2} "HELP_TIMER"
view_integer_variable $6687 {_p2} "TIMERA"
view_integer_variable $6688 {_p2} "TIMERB"

:SWEET6_935
if 
  69@ == 2
goto_if_false @SWEET6_1054
set_var_int_to_lvar_int $sw5_sweet_health = 107@
set_var_int_to_var_int $SWEET6_view_debug = $sw6_mission_attempts
set_var_int_to_lvar_int $6688 = 130@
view_integer_variable $sw5_sweet_health {_p2} "CAR_HYD_FLAG"
view_integer_variable $SWEET6_view_debug {_p2} "SW6_MISSION_ATTEMPTS"
view_integer_variable $6688 {_p2} "PLAYER_HAS_ATTACKED_MEET"

:SWEET6_1054
if 
  69@ == 3
goto_if_false @SWEET6_1132
set_var_int_to_lvar_int $sw5_sweet_health = 131@
set_var_int_to_lvar_int $SWEET6_view_debug = 276@
view_integer_variable $sw5_sweet_health {_p2} "MEETING_IS_LOADED"
view_integer_variable $SWEET6_view_debug {_p2} "CURRENT_WAGER"

:SWEET6_1132
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @SWEET6_1154
38@ = 1

:SWEET6_1154
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @SWEET6_1242
if 
  70@ == 0
goto_if_false @SWEET6_1217
70@ = 1
write_debug "LEVEL_PAUSED"
goto @SWEET6_1242

:SWEET6_1217
70@ = 0
write_debug "LEVEL_UNPAUSED"

:SWEET6_1242
if 
  70@ == 1
goto_if_false @SWEET6_1267
goto @SWEET6_465

:SWEET6_1267
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @SWEET6_1289
35@ += 1

:SWEET6_1289
if 
is_ps2_keyboard_key_just_pressed 86
goto_if_false @SWEET6_1311
35@ -= 1

:SWEET6_1311
if 
is_ps2_keyboard_key_just_pressed 85
goto_if_false @SWEET6_1333
34@ += 1

:SWEET6_1333
if 
is_ps2_keyboard_key_just_pressed 84
goto_if_false @SWEET6_1355
34@ -= 1

:SWEET6_1355
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @SWEET6_1377
35@ = 99

:SWEET6_1377
return 

:SWEET6_1379
if 
  35@ == -1
goto_if_false @SWEET6_1524
72@ = Car.Create(413, 0.0, 0.0, 0.0)
80@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
105@ = Blip.AddForCoord(0.0, 0.0, 0.0)
106@ = Blip.AddForCoord(0.0, 0.0, 0.0)
$mod_garage_blip = Blip.AddForCoord(0.0, 0.0, 0.0)
$mod_garage1 = Blip.AddForCoord(0.0, 0.0, 0.0)

:SWEET6_1524
107@ = 0
43@ = 0

:SWEET6_1538
if 
  22 > 43@
goto_if_false @SWEET6_1581
108@(43@,22i) = 0
43@ += 1
goto @SWEET6_1538

:SWEET6_1581
130@ = 0
131@ = 0
132@ = 0
133@ = 0
135@ = 0
272@ = 0.01
if 
  35@ == -1
goto_if_false @SWEET6_1664
$6689 = Blip.AddForCoord(0.0, 0.0, 0.0)

:SWEET6_1664
Text.LoadMissionText('SWEET6')
CarGenerator.SuppressCarModel(567)
274@ = 50
275@ = 1000
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
gosub @SWEET6_35827
return 

:SWEET6_1720
if 
  35@ == 0
goto_if_false @SWEET6_1853
Streaming.SetAreaVisible(1)
Cutscene.Load('SWEET6A')

:SWEET6_1753
if 
  not Cutscene.HasLoaded
goto_if_false @SWEET6_1777
wait 0
goto @SWEET6_1753

:SWEET6_1777
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SWEET6_1786
if 
  not Cutscene.HasFinished
goto_if_false @SWEET6_1810
wait 0
goto @SWEET6_1786

:SWEET6_1810
Cutscene.Clear
Camera.DoFade(0, Fade.Out)

:SWEET6_1818
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_1842
wait 0
goto @SWEET6_1818

:SWEET6_1842
Streaming.SetAreaVisible(0)
35@ += 1

:SWEET6_1853
if 
  35@ == 1
goto_if_false @SWEET6_2029
Streaming.LoadScene(2519.575, -1677.88, 13.7661)
Char.SetCoordinates($scplayer, 2519.575, -1677.88, 13.7661)
Char.SetHeading($scplayer, 107.8934)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
World.ClearArea(2519.575, -1677.88, 13.7661, 1000.0, True)
Camera.DoFade(500, Fade.In)

:SWEET6_1962
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_1986
wait 0
goto @SWEET6_1962

:SWEET6_1986
Text.Print('S6_01', 10000, 1)
105@ = Blip.AddForCoord(2653.016, -2009.172, 12.5547)
35@ += 1

:SWEET6_2029
if 
  35@ == 2
goto_if_false @SWEET6_2054
35@ = 99

:SWEET6_2054
if 
  35@ == 99
goto_if_false @SWEET6_2079
gosub @SWEET6_35827

:SWEET6_2079
return 

:SWEET6_2081
if 
  35@ == 0
goto_if_false @SWEET6_2349
43@ = 0
if 
  Char.LocateAnyMeans3D($scplayer, 2653.016, -2009.172, 12.5547, 4.0, 4.0, 4.0, True)
goto_if_false @SWEET6_2300
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SWEET6_2208
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.IsOnAllWheels($car)
goto_if_false @SWEET6_2208
Player.SetControl($player1, False)
43@ = 1

:SWEET6_2208
if 
  Char.IsOnFoot($scplayer)
goto_if_false @SWEET6_2254
if 
  Char.IsStopped($scplayer)
goto_if_false @SWEET6_2254
Player.SetControl($player1, False)
43@ = 1

:SWEET6_2254
if 
  43@ == 1
goto_if_false @SWEET6_2300
if 
  Blip.DoesExist(105@)
goto_if_false @SWEET6_2293
Blip.Remove(105@)

:SWEET6_2293
35@ += 1

:SWEET6_2300
if 
  68@ == 1
goto_if_false @SWEET6_2349
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @SWEET6_2349
Char.SetCoordinates($scplayer, $lowrideX, $lowrideY, $lowrideZ)

:SWEET6_2349
if 
  35@ == 1
goto_if_false @SWEET6_2428
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SWEET6_2421
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.IsStopped($car)
goto_if_false @SWEET6_2414
35@ += 1

:SWEET6_2414
goto @SWEET6_2428

:SWEET6_2421
35@ += 1

:SWEET6_2428
if 
  35@ == 2
goto_if_false @SWEET6_2952
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:SWEET6_2460
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_2484
wait 0
goto @SWEET6_2460

:SWEET6_2484
Text.ClearPrints
Streaming.RequestCollision(2644.252, -2028.246)
Streaming.LoadScene(2644.252, -2028.246, 12.5547)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2640.362, -2011.104, 14.9634, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2640.959, -2011.886, 14.7846, SwitchType.JumpCut)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Player.MakeGangDisappear
World.ClearArea(2648.941, -2017.247, 12.5625, 15.0, True)
World.ClearArea(2643.875, -2029.439, 12.5547, 15.0, True)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 2641.743, -2015.496, 12.6446)
Char.SetHeading($scplayer, 214.4731)
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
$stop_gargae_for_neil = 1
Streaming.RequestModel(50)
Streaming.RequestModel(567)
Streaming.LoadAllModelsNow

:SWEET6_2694
if or
  not Streaming.HasModelLoaded(50)
  not Streaming.HasModelLoaded(567)
goto_if_false @SWEET6_2725
wait 0
goto @SWEET6_2694

:SWEET6_2725
Streaming.RequestAnimation("CAR")
Streaming.RequestAnimation("GANGS")

:SWEET6_2741
if or
  not Streaming.HasAnimationLoaded("CAR")
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @SWEET6_2779
wait 0
goto @SWEET6_2741

:SWEET6_2779
Streaming.RequestCarRecording(552)

:SWEET6_2784
if 
  not Streaming.HasCarRecordingBeenLoaded(552)
goto_if_false @SWEET6_2811
wait 0
goto @SWEET6_2784

:SWEET6_2811
71@ = Car.Create(567, 2644.252, -2028.246, 12.5547)
Car.SetHeading(71@, 358.8272)
Car.SetHydraulics(71@, True)
Car.SetStraightLineDistance(71@, 40)
Car.SetDrivingStyle(71@, DrivingMode.PloughThrough)
79@ = Char.CreateInsideCar(71@, PedType.CivMale, 50)
Char.SetDecisionMaker(79@, 66@)
Task.LookAtChar($scplayer, 79@, 99999)
Camera.DoFade(500, Fade.In)

:SWEET6_2905
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_2929
wait 0
goto @SWEET6_2905

:SWEET6_2929
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
35@ += 1

:SWEET6_2952
if and
  35@ > 2
  17 > 35@
goto_if_false @SWEET6_3001
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SWEET6_3001
35@ = 17

:SWEET6_3001
if 
  35@ == 3
goto_if_false @SWEET6_3117
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_3117
Car.FreezePosition(71@, False)
Car.SetForwardSpeed(71@, 2.0)
Car.SetCruiseSpeed(71@, 4.0)
Car.GotoCoordinatesAccurate(71@, 2644.462, -2016.282, 12.5547)
TIMERA = 0
TIMERB = 0
43@ = 0
Car.SetStatus(71@, EntityStatus.Physics)
35@ += 1

:SWEET6_3117
if 
  35@ == 4
goto_if_false @SWEET6_3558
if 
  15000 > TIMERA
goto_if_false @SWEET6_3505
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_3498
if 
  Car.LocateStopped3D(71@, 2644.462, -2017.282, 12.5547, 4.0, 4.0, 4.0, False)
goto_if_false @SWEET6_3273
if 
  Car.DoesHaveHydraulics(71@)
goto_if_false @SWEET6_3259
Car.ControlHydraulics(71@, 0.0, 0.0, 0.0, 0.0)

:SWEET6_3259
35@ += 1
goto @SWEET6_3498

:SWEET6_3273
if 
  2 > 43@
goto_if_false @SWEET6_3465
if and
  1800 > TIMERB
  TIMERB > 1500
goto_if_false @SWEET6_3365
$wheel_fl = 1.0
$wheel_bl = 0.0
$wheel_fr = 1.0
$wheel_br = 0.0
goto @SWEET6_3465

:SWEET6_3365
if 
  TIMERB > 1800
goto_if_false @SWEET6_3465
if 
  2500 > TIMERB
goto_if_false @SWEET6_3450
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 0.0
goto @SWEET6_3465

:SWEET6_3450
TIMERB = 1300
43@ += 1

:SWEET6_3465
if 
  Car.DoesHaveHydraulics(71@)
goto_if_false @SWEET6_3498
Car.ControlHydraulics(71@, $wheel_fl, $wheel_bl, $wheel_fr, $wheel_br)

:SWEET6_3498
goto @SWEET6_3558

:SWEET6_3505
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_3558
Car.SetCoordinates(71@, 2644.462, -2017.282, 12.5547)
Car.SetHeading(71@, 358.5157)
35@ += 1

:SWEET6_3558
if 
  35@ == 5
goto_if_false @SWEET6_3703
if 
  not Char.IsDead(79@)
goto_if_false @SWEET6_3703
49@ = Sequence.Open()
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_3620
Task.LeaveCar(-1, 71@)

:SWEET6_3620
Task.TurnCharToFaceChar(-1, $scplayer)
Task.LookAtChar(-1, $scplayer, -2)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(79@, 49@)
Sequence.Clear(49@)
TIMERA = 0
35@ += 1

:SWEET6_3703
if 
  35@ == 6
goto_if_false @SWEET6_3795
if 
  not Char.IsDead(79@)
goto_if_false @SWEET6_3795
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_3795
if 
  not Char.IsInCar(79@, 71@)
goto_if_false @SWEET6_3795
if 
  Char.IsOnFoot(79@)
goto_if_false @SWEET6_3795
35@ += 1

:SWEET6_3795
if 
  35@ == 7
goto_if_false @SWEET6_4168
Camera.SetFixedPosition(2640.2, -2018.059, 14.3965, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2641.135, -2017.758, 14.2101, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 2642.658, -2015.291, 12.5947)
Char.SetHeading($scplayer, 181.4479)
if 
  not Char.IsDead(79@)
goto_if_false @SWEET6_3950
Char.SetCoordinates(79@, 2641.862, -2018.108, 12.2327)
Char.SetHeading(79@, 353.04)
Task.LookAtChar(79@, $scplayer, -2)

:SWEET6_3950
Char.ClearTasksImmediately($scplayer)
49@ = Sequence.Open()
if 
  not Char.IsDead(79@)
goto_if_false @SWEET6_4026
Task.LookAtChar(-1, 79@, 99999)
Task.GoStraightToCoord(-1, 2642.391, -2016.581, 12.5947, MoveState.Walk, 5000)
Task.TurnCharToFaceChar(-1, 79@)
goto @SWEET6_4033

:SWEET6_4026
Task.Pause(-1, 1000)

:SWEET6_4033
Sequence.Close(49@)
Char.PerformSequence($scplayer, 49@)
Sequence.Clear(49@)
if 
  not Char.IsDead(79@)
goto_if_false @SWEET6_4146
Char.ClearTasksImmediately(79@)
49@ = Sequence.Open()
Task.LookAtChar(-1, $scplayer, -2)
Task.TurnCharToFaceChar(-1, $scplayer)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(79@, 49@)
Sequence.Clear(49@)

:SWEET6_4146
62@ = 0
TIMERA = 500
35@ += 1

:SWEET6_4168
if 
  35@ == 8
goto_if_false @SWEET6_4592
if 
  not Char.IsDead(79@)
goto_if_false @SWEET6_4281
$x, $y, $z = Char.GetCoordinates($scplayer)
56@, 57@, 58@ = Char.GetCoordinates(79@)
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
$heading = Math.GetHeadingFromVector2D(50@, 51@)
Char.SetHeading(79@, $heading)

:SWEET6_4281
if and
  $audio_line_is_active == 0
  TIMERA > 500
goto_if_false @SWEET6_4592
switch_start 62@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET6_4592 {caseNum1} 0 {caseLabel1} @SWEET6_4370 {caseNum2} 1 {caseLabel2} @SWEET6_4436 {caseNum3} 2 {caseLabel3} @SWEET6_4502 {caseNum4} 3 {caseLabel4} @SWEET6_4557 {caseNum5} -1 {caseLabel5} @SWEET6_4592 {caseNum6} -1 {caseLabel6} @SWEET6_4592 {caseNum7} -1 {caseLabel7} @SWEET6_4592

:SWEET6_4370
set_var_text_label s$audio_string = 'LOWR_KA'
set_var_int_to_constant $audio_sound_file = 9233
start_new_script @AUDIOL 79@ 0 1 1 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 9234)
62@ += 1
goto @SWEET6_4592

:SWEET6_4436
set_var_text_label s$audio_string = 'LOWR_KB'
set_var_int_to_constant $audio_sound_file = 9234
start_new_script @AUDIOL 79@ 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 9235)
62@ += 1
goto @SWEET6_4592

:SWEET6_4502
set_var_text_label s$audio_string = 'LOWR_KC'
set_var_int_to_constant $audio_sound_file = 9235
start_new_script @AUDIOL 79@ 0 1 1 1 
62@ += 1
goto @SWEET6_4592

:SWEET6_4557
if 
  not Char.IsDead(79@)
goto_if_false @SWEET6_4578
Char.ClearTasks(79@)

:SWEET6_4578
35@ += 1
goto @SWEET6_4592

:SWEET6_4592
if 
  35@ == 9
goto_if_false @SWEET6_4745
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_4745
Audio.SetRadioChannel(RadioChannel.PlaybackFM)
Char.ClearLookAt($scplayer)
49@ = Sequence.Open()
Task.EnterCarAsDriver(-1, 71@, 10000)
Task.PlayAnim(-1, "SIT_RELAXED", "CAR", 4.0, False, False, False, True, -1)
Sequence.Close(49@)
Char.PerformSequence($scplayer, 49@)
Sequence.Clear(49@)
TIMERA = 0
if 
  not Char.IsDead(79@)
goto_if_false @SWEET6_4738
Task.LookAtChar(79@, $scplayer, -2)

:SWEET6_4738
35@ += 1

:SWEET6_4745
if 
  35@ == 10
goto_if_false @SWEET6_4833
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_4833
if and
  Char.IsInCar($scplayer, 71@)
  not Char.IsOnFoot($scplayer)
goto_if_false @SWEET6_4833
if 
  not Char.IsDead(79@)
goto_if_false @SWEET6_4826
Char.FreezePosition(79@, True)

:SWEET6_4826
35@ += 1

:SWEET6_4833
if 
  35@ == 11
goto_if_false @SWEET6_5124
if 
  not Char.IsDead(79@)
goto_if_false @SWEET6_5124
49@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.LookAtChar(-1, $scplayer, -2)
Task.PlayAnim(-1, "PRTIAL_GNGTLKB", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKG", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(79@, 49@)
Sequence.Clear(49@)
35@ += 1
43@ = 0
TIMERA = 500
TIMERB = 0
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 0.0
62@ = 0
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_5124
Car.SetStatus(71@, EntityStatus.Physics)

:SWEET6_5124
if 
  35@ == 12
goto_if_false @SWEET6_5827
if and
  $audio_line_is_active == 0
  TIMERA > 500
goto_if_false @SWEET6_5519
switch_start 62@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SWEET6_5519 {caseNum1} 0 {caseLabel1} @SWEET6_5231 {caseNum2} 1 {caseLabel2} @SWEET6_5297 {caseNum3} 2 {caseLabel3} @SWEET6_5363 {caseNum4} 3 {caseLabel4} @SWEET6_5429 {caseNum5} 4 {caseLabel5} @SWEET6_5484 {caseNum6} -1 {caseLabel6} @SWEET6_5519 {caseNum7} -1 {caseLabel7} @SWEET6_5519

:SWEET6_5231
set_var_text_label s$audio_string = 'LOWR_KD'
set_var_int_to_constant $audio_sound_file = 9236
start_new_script @AUDIOL 79@ 0 1 2 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 9237)
62@ += 1
goto @SWEET6_5519

:SWEET6_5297
set_var_text_label s$audio_string = 'LOWR_KE'
set_var_int_to_constant $audio_sound_file = 9237
start_new_script @AUDIOL 79@ 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 9238)
62@ += 1
goto @SWEET6_5519

:SWEET6_5363
set_var_text_label s$audio_string = 'LOWR_KF'
set_var_int_to_constant $audio_sound_file = 9238
start_new_script @AUDIOL 79@ 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 9239)
62@ += 1
goto @SWEET6_5519

:SWEET6_5429
set_var_text_label s$audio_string = 'LOWR_KG'
set_var_int_to_constant $audio_sound_file = 9239
start_new_script @AUDIOL 79@ 0 1 1 1 
62@ += 1
goto @SWEET6_5519

:SWEET6_5484
if 
  not Char.IsDead(79@)
goto_if_false @SWEET6_5505
Char.ClearTasks(79@)

:SWEET6_5505
35@ += 1
goto @SWEET6_5519

:SWEET6_5519
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_5827
if 
  4 > 43@
goto_if_false @SWEET6_5734
if and
  1800 > TIMERB
  TIMERB > 1500
goto_if_false @SWEET6_5627
$wheel_fl = 1.0
$wheel_bl = 0.0
$wheel_fr = 1.0
$wheel_br = 0.0
goto @SWEET6_5727

:SWEET6_5627
if 
  TIMERB > 1800
goto_if_false @SWEET6_5727
if 
  2500 > TIMERB
goto_if_false @SWEET6_5712
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 0.0
goto @SWEET6_5727

:SWEET6_5712
TIMERB = 1300
43@ += 1

:SWEET6_5727
goto @SWEET6_5794

:SWEET6_5734
if 
  43@ == 4
goto_if_false @SWEET6_5794
Task.PlayAnim($scplayer, "TAP_HAND", "CAR", 4.0, True, False, False, False, -1)
43@ += 1

:SWEET6_5794
if 
  Car.DoesHaveHydraulics(71@)
goto_if_false @SWEET6_5827
Car.ControlHydraulics(71@, $wheel_fl, $wheel_bl, $wheel_fr, $wheel_br)

:SWEET6_5827
if 
  Player.IsPlaying($player1)
goto_if_false @SWEET6_5889
if 
  Char.IsPlayingAnim($scplayer, "TAP_HAND")
goto_if_false @SWEET6_5889
Char.SetAnimSpeed($scplayer, "TAP_HAND", 0.5)

:SWEET6_5889
if 
  35@ == 13
goto_if_false @SWEET6_6070
if 
  $sw6_mission_attempts == 0
goto_if_false @SWEET6_6063
if 
  not Char.IsDead(79@)
goto_if_false @SWEET6_5978
Char.ClearTasks(79@)
Char.FreezePosition(79@, False)
Task.GoStraightToCoord(79@, 2641.231, -2020.621, 12.7578, MoveState.Walk, 5000)

:SWEET6_5978
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_6035
if 
  Car.DoesHaveHydraulics(71@)
goto_if_false @SWEET6_6035
Car.ControlHydraulics(71@, 0.0, 0.0, 0.0, 0.0)

:SWEET6_6035
35@ += 1
TIMERA = 0
TIMERB = 0
goto @SWEET6_6070

:SWEET6_6063
35@ = 17

:SWEET6_6070
if 
  35@ == 14
goto_if_false @SWEET6_6214
if 
  TIMERA > 1000
goto_if_false @SWEET6_6214
Camera.SetFixedPosition(2643.985, -2023.749, 14.95, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2644.091, -2022.8, 14.6533, SwitchType.JumpCut)
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_6214
Char.ClearTasksImmediately($scplayer)
Char.WarpIntoCar($scplayer, 71@)
Car.StartPlayback(71@, 552)
Car.PausePlayback(71@)
35@ += 1
TIMERA = 0

:SWEET6_6214
if 
  35@ == 15
goto_if_false @SWEET6_6302
if 
  TIMERA > 1000
goto_if_false @SWEET6_6302
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_6302
if 
  Car.IsPlaybackGoingOn(71@)
goto_if_false @SWEET6_6302
Car.UnpausePlayback(71@)
35@ += 1
TIMERA = 0

:SWEET6_6302
if 
  35@ == 16
goto_if_false @SWEET6_6367
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_6367
if or
  not Car.IsOnScreen(71@)
  TIMERA > 3000
goto_if_false @SWEET6_6367
35@ += 1

:SWEET6_6367
if 
  35@ == 17
goto_if_false @SWEET6_6637
Text.ClearPrints
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.RestoreJumpcut
Char.HideWeaponForScriptedCutscene($scplayer, False)
$stop_gargae_for_neil = 0
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_6557
if 
  Car.IsPlaybackGoingOn(71@)
goto_if_false @SWEET6_6446
Car.StopPlayback(71@)

:SWEET6_6446
Car.FreezePosition(71@, False)
if 
  Char.DoesExist(79@)
goto_if_false @SWEET6_6474
Char.Delete(79@)

:SWEET6_6474
Char.ClearTasksImmediately($scplayer)
Char.WarpIntoCar($scplayer, 71@)
if 
  Car.IsPlaybackGoingOn(71@)
goto_if_false @SWEET6_6508
Car.StopPlayback(71@)

:SWEET6_6508
$heading = Car.GetHeading(71@)
Car.SetCoordinates(71@, 2644.258, -2026.526, 12.5469)
Car.SetHeading(71@, 2.3109)
Player.SetControl($player1, True)
Camera.SetInFrontOfPlayer
Camera.RestoreJumpcut

:SWEET6_6557
Char.Delete(79@)
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.RemoveAnimation("CAR")
Streaming.RemoveAnimation("GANGS")
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  $sw6_mission_attempts <> 0
goto_if_false @SWEET6_6630
35@ = 99
goto @SWEET6_6637

:SWEET6_6630
35@ += 1

:SWEET6_6637
if 
  35@ == 18
goto_if_false @SWEET6_6714
Blip.Remove(105@)
105@ = Blip.AddForCoord(2645.112, -2045.745, 12.607)
Garage.Activate('MODLAST')
Text.PrintNow('S6_38', 7000, 1)
35@ += 1

:SWEET6_6714
if 
  35@ == 19
goto_if_false @SWEET6_6965
if 
  $foodmed_junkfud <> 0
goto_if_false @SWEET6_6771
Text.ClearPrints
Blip.Remove(105@)
35@ += 1
goto @SWEET6_6965

:SWEET6_6771
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_6965
if 
  not Char.IsInCar($scplayer, 71@)
goto_if_false @SWEET6_6881
if 
  Blip.DoesExist(105@)
goto_if_false @SWEET6_6827
Blip.Remove(105@)

:SWEET6_6827
if 
  not Blip.DoesExist(106@)
goto_if_false @SWEET6_6874
106@ = Blip.AddForCar(71@)
Blip.SetAsFriendly(106@, True)
Text.PrintNow('S6_23', 5000, 1)

:SWEET6_6874
goto @SWEET6_6965

:SWEET6_6881
if 
  Blip.DoesExist(106@)
goto_if_false @SWEET6_6913
Blip.Remove(106@)
Text.ClearThisPrint('S6_23')

:SWEET6_6913
if 
  not Blip.DoesExist(105@)
goto_if_false @SWEET6_6965
105@ = Blip.AddForCoord(2645.112, -2045.745, 12.607)
Text.PrintNow('S6_38', 7000, 1)

:SWEET6_6965
if 
  35@ == 20
goto_if_false @SWEET6_7130
if and
  $foodmed_junkfud == 3
  $foodlarge_junkfud == 3
goto_if_false @SWEET6_7060
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_7053
if 
  Char.IsInCar($scplayer, 71@)
goto_if_false @SWEET6_7053
Car.SetHeading(71@, 0.0)

:SWEET6_7053
35@ = 99

:SWEET6_7060
if 
  $foodmed_junkfud == 0
goto_if_false @SWEET6_7130
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_7123
if 
  Char.IsInCar($scplayer, 71@)
goto_if_false @SWEET6_7123
Car.SetHeading(71@, 0.0)

:SWEET6_7123
35@ = 99

:SWEET6_7130
if 
  35@ > 12
goto_if_false @SWEET6_7362
43@ = 0
if and
  $foodmed_junkfud == 3
  $foodlarge_junkfud == 3
goto_if_false @SWEET6_7187
43@ = 1

:SWEET6_7187
if 
  $foodmed_junkfud == 0
goto_if_false @SWEET6_7212
43@ = 1

:SWEET6_7212
if 
  43@ == 1
goto_if_false @SWEET6_7362
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SWEET6_7362
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_7325
if 
  not Char.IsInCar($scplayer, 71@)
goto_if_false @SWEET6_7318
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.DoesHaveHydraulics($car)
goto_if_false @SWEET6_7318
Car.MarkAsNoLongerNeeded(71@)
71@ = Char.StoreCarIsIn($scplayer)

:SWEET6_7318
goto @SWEET6_7362

:SWEET6_7325
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.DoesHaveHydraulics($car)
goto_if_false @SWEET6_7362
Car.MarkAsNoLongerNeeded(71@)
71@ = Char.StoreCarIsIn($scplayer)

:SWEET6_7362
if 
  35@ == 99
goto_if_false @SWEET6_7476
Player.MakeGangReappear
$sw6_mission_attempts += 1
Garage.Activate('MODLAST')
Text.ClearPrints
if 
  Char.DoesExist(79@)
goto_if_false @SWEET6_7423
Char.Delete(79@)

:SWEET6_7423
$stop_gargae_for_neil = 1
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.RemoveAnimation("CAR")
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveCarRecording(552)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
gosub @SWEET6_35827

:SWEET6_7476
return 

:SWEET6_7478
if 
  35@ == 0
goto_if_false @SWEET6_8696
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_7554
if 
  Char.IsInCar($scplayer, 71@)
goto_if_false @SWEET6_7554
Text.PrintNow('S6_03', 7000, 1)
goto @SWEET6_7554

:SWEET6_7554
if 
  not Blip.DoesExist(105@)
goto_if_false @SWEET6_7590
105@ = Blip.AddForCoord(1793.068, -1904.254, 12.3989)

:SWEET6_7590
130@ = 0
131@ = 0
141@ = 1796.947
148@ = -1924.376
155@ = 13.2937
162@ = 60.9627
142@ = 1802.865
149@ = -1918.742
156@ = 13.2965
163@ = 357.6195
143@ = 1788.992
150@ = -1924.501
157@ = 13.2937
164@ = 305.5176
144@ = 1784.189
151@ = -1913.44
158@ = 13.2957
165@ = 188.9639
145@ = 1790.964
152@ = -1913.898
159@ = 13.2985
166@ = 266.2616
146@ = 1799.899
153@ = -1906.425
160@ = 13.3025
167@ = 184.4735
147@ = 1785.94
154@ = -1904.839
161@ = 13.297
168@ = 152.5742
169@ = 1798.603
191@ = -1908.26
213@ = 12.4388
235@ = 102.3995
170@ = 1798.887
192@ = -1907.668
214@ = 12.4399
236@ = 174.1189
171@ = 1798.834
193@ = -1911.782
215@ = 12.4374
237@ = 158.2591
172@ = 1799.584
194@ = -1912.795
216@ = 12.4368
238@ = 74.6392
173@ = 1800.902
195@ = -1918.714
217@ = 12.4331
239@ = 256.6391
174@ = 1798.166
196@ = -1920.427
218@ = 12.4321
240@ = 19.6592
175@ = 1796.811
197@ = -1920.426
219@ = 12.4321
241@ = 331.8393
176@ = 1787.78
198@ = -1919.071
220@ = 12.4329
242@ = 331.8393
177@ = 1786.71
199@ = -1917.982
221@ = 12.4332
243@ = 285.8198
178@ = 1786.194
200@ = -1907.356
222@ = 12.4327
244@ = 260.4003
179@ = 1786.898
201@ = -1906.531
223@ = 12.4335
245@ = 141.9807
180@ = 1786.23
202@ = -1908.622
224@ = 12.4328
246@ = 327.1608
181@ = 1789.188
203@ = -1919.665
225@ = 12.4325
247@ = 357.2196
182@ = 1788.103
204@ = -1907.949
226@ = 12.4352
248@ = 200.9411
183@ = 1797.997
205@ = -1912.74
227@ = 12.4368
249@ = 312.2806
184@ = 1796.46
206@ = -1908.882
228@ = 12.4368
250@ = 312.2806
Streaming.RequestModel(114)
Streaming.RequestModel(115)
Streaming.RequestModel(116)
Streaming.RequestModel(63)
Streaming.RequestModel(41)
Streaming.RequestModel(567)
Streaming.RequestModel(534)
Streaming.RequestAnimation("LOWRIDER")
Streaming.LoadAllModelsNow

:SWEET6_8568
if or
  not Streaming.HasModelLoaded(114)
  not Streaming.HasModelLoaded(115)
  not Streaming.HasModelLoaded(116)
  not Streaming.HasModelLoaded(63)
  not Streaming.HasModelLoaded(41)
goto_if_false @SWEET6_8610
wait 0
goto @SWEET6_8568

:SWEET6_8610
if or
  not Streaming.HasModelLoaded(567)
  not Streaming.HasModelLoaded(534)
goto_if_false @SWEET6_8642
wait 0
goto @SWEET6_8610

:SWEET6_8642
if 
  not Streaming.HasAnimationLoaded("LOWRIDER")
goto_if_false @SWEET6_8676
wait 0
goto @SWEET6_8642

:SWEET6_8676
Zone.SwitchAudio('LOWRIDE', True)
35@ += 1

:SWEET6_8696
if 
  35@ == 1
goto_if_false @SWEET6_16325
if 
  68@ == 1
goto_if_false @SWEET6_8795
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @SWEET6_8795
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_8795
Car.SetCoordinates(71@, 1800.978, -1895.775, 12.4046)
Car.SetHeading(71@, 136.3521)

:SWEET6_8795
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_8978
if 
  not Char.IsInCar($scplayer, 71@)
goto_if_false @SWEET6_8905
if 
  Blip.DoesExist(105@)
goto_if_false @SWEET6_8851
Blip.Remove(105@)

:SWEET6_8851
if 
  not Blip.DoesExist(106@)
goto_if_false @SWEET6_8898
Text.PrintNow('S6_35', 5000, 1)
106@ = Blip.AddForCar(71@)
Blip.SetAsFriendly(106@, True)

:SWEET6_8898
goto @SWEET6_8978

:SWEET6_8905
if 
  not Blip.DoesExist(105@)
goto_if_false @SWEET6_8957
Text.PrintNow('S6_03', 7000, 1)
105@ = Blip.AddForCoord(1793.068, -1904.254, 12.3989)

:SWEET6_8957
if 
  Blip.DoesExist(106@)
goto_if_false @SWEET6_8978
Blip.Remove(106@)

:SWEET6_8978
43@ = 0
if and
  $foodmed_junkfud == 3
  $foodlarge_junkfud == 3
goto_if_false @SWEET6_9017
43@ = 1

:SWEET6_9017
if 
  $foodmed_junkfud == 0
goto_if_false @SWEET6_9042
43@ = 1

:SWEET6_9042
if 
  43@ == 1
goto_if_false @SWEET6_9192
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SWEET6_9192
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_9155
if 
  not Char.IsInCar($scplayer, 71@)
goto_if_false @SWEET6_9148
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.DoesHaveHydraulics($car)
goto_if_false @SWEET6_9148
Car.MarkAsNoLongerNeeded(71@)
71@ = Char.StoreCarIsIn($scplayer)

:SWEET6_9148
goto @SWEET6_9192

:SWEET6_9155
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.DoesHaveHydraulics($car)
goto_if_false @SWEET6_9192
Car.MarkAsNoLongerNeeded(71@)
71@ = Char.StoreCarIsIn($scplayer)

:SWEET6_9192
if 
  131@ == 0
goto_if_false @SWEET6_10695
if 
  Char.LocateAnyMeans2D($scplayer, 1792.924, -1918.987, 150.0, 150.0, False)
goto_if_false @SWEET6_10688
72@ = Car.Create(534, 0.0, 0.0, 0.0)
73@ = Car.Create(567, 0.0, 0.0, 0.0)
74@ = Car.Create(567, 0.0, 0.0, 0.0)
75@ = Car.Create(567, 0.0, 0.0, 0.0)
Car.ChangeColor(72@, 1, 0)
Car.ChangeColor(73@, 2, 1)
Car.ChangeColor(74@, 3, 2)
Car.ChangeColor(75@, 10, 3)
Car.SetStatus(72@, EntityStatus.Physics)
Car.SetStatus(75@, EntityStatus.Physics)
Car.SetHydraulics(72@, True)
Car.SetHydraulics(75@, True)
Car.SetOnlyDamagedByPlayer(72@, True)
Car.SetOnlyDamagedByPlayer(75@, True)
wait 0
76@ = Car.Create(534, 0.0, 0.0, 0.0)
77@ = Car.Create(567, 0.0, 0.0, 0.0)
78@ = Car.Create(534, 0.0, 0.0, 0.0)
Car.ChangeColor(76@, 9, 4)
Car.ChangeColor(77@, 6, 5)
Car.ChangeColor(78@, 7, 6)
Car.SetStatus(76@, EntityStatus.Physics)
Car.SetHydraulics(76@, True)
Car.SetOnlyDamagedByPlayer(76@, True)
wait 0
43@ = 0

:SWEET6_9550
if 
  7 > 43@
goto_if_false @SWEET6_9659
if 
  not Car.IsDead(72@(43@,7i))
goto_if_false @SWEET6_9645
Car.SetCoordinates(72@(43@,7i), 141@(43@,7f), 148@(43@,7f), 155@(43@,7f))
Car.SetHeading(72@(43@,7i), 162@(43@,7f))
Car.LockDoors(72@(43@,7i), CarLock.LockoutPlayerOnly)

:SWEET6_9645
43@ += 1
goto @SWEET6_9550

:SWEET6_9659
wait 0
80@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
82@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
83@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
85@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
86@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
88@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
89@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
91@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
92@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
wait 0
81@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
84@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
87@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
90@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
wait 0
93@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
94@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
95@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
wait 0
96@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
97@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
98@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
99@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
100@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
101@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
wait 0
43@ = 0

:SWEET6_10214
if 
  16 > 43@
goto_if_false @SWEET6_10332
if 
  Char.DoesExist(80@(43@,22i))
goto_if_false @SWEET6_10318
if 
  not Char.IsDead(80@(43@,22i))
goto_if_false @SWEET6_10318
Char.SetCoordinates(80@(43@,22i), 169@(43@,22f), 191@(43@,22f), 213@(43@,22f))
Char.SetHeading(80@(43@,22i), 235@(43@,22f))

:SWEET6_10318
43@ += 1
goto @SWEET6_10214

:SWEET6_10332
43@ = 0

:SWEET6_10339
if 
  22 > 43@
goto_if_false @SWEET6_10423
if 
  Char.DoesExist(80@(43@,22i))
goto_if_false @SWEET6_10409
if 
  not Char.IsDead(80@(43@,22i))
goto_if_false @SWEET6_10409
Char.SetDecisionMaker(80@(43@,22i), 67@)

:SWEET6_10409
43@ += 4
goto @SWEET6_10339

:SWEET6_10423
if 
  not Char.IsDead(96@)
goto_if_false @SWEET6_10463
if 
  not Car.IsDead(73@)
goto_if_false @SWEET6_10463
Char.WarpIntoCar(96@, 73@)

:SWEET6_10463
if 
  not Char.IsDead(97@)
goto_if_false @SWEET6_10503
if 
  not Car.IsDead(74@)
goto_if_false @SWEET6_10503
Char.WarpIntoCar(97@, 74@)

:SWEET6_10503
if 
  not Char.IsDead(98@)
goto_if_false @SWEET6_10543
if 
  not Car.IsDead(76@)
goto_if_false @SWEET6_10543
Char.WarpIntoCar(98@, 76@)

:SWEET6_10543
if 
  not Char.IsDead(99@)
goto_if_false @SWEET6_10583
if 
  not Car.IsDead(72@)
goto_if_false @SWEET6_10583
Char.WarpIntoCar(99@, 72@)

:SWEET6_10583
if 
  not Char.IsDead(100@)
goto_if_false @SWEET6_10623
if 
  not Car.IsDead(75@)
goto_if_false @SWEET6_10623
Char.WarpIntoCar(100@, 75@)

:SWEET6_10623
if 
  Char.DoesExist(101@)
goto_if_false @SWEET6_10681
if 
  not Char.IsDead(101@)
goto_if_false @SWEET6_10681
if 
  not Car.IsDead(74@)
goto_if_false @SWEET6_10681
Char.WarpIntoCarAsPassenger(101@, 74@, 0)

:SWEET6_10681
131@ = 1

:SWEET6_10688
goto @SWEET6_10836

:SWEET6_10695
if 
  not Char.LocateAnyMeans2D($scplayer, 1792.924, -1918.987, 150.0, 150.0, False)
goto_if_false @SWEET6_10836
43@ = 0

:SWEET6_10740
if 
  7 > 43@
goto_if_false @SWEET6_10781
Car.Delete(72@(43@,7i))
43@ += 1
goto @SWEET6_10740

:SWEET6_10781
43@ = 0

:SWEET6_10788
if 
  22 > 43@
goto_if_false @SWEET6_10829
Char.Delete(80@(43@,22i))
43@ += 1
goto @SWEET6_10788

:SWEET6_10829
131@ = 0

:SWEET6_10836
if 
  131@ == 1
goto_if_false @SWEET6_16060
if 
  130@ == 0
goto_if_false @SWEET6_15792
if 
  300 > 136@
goto_if_false @SWEET6_10938
257@ = 1.0
260@ = 1.0
263@ = 0.0
266@ = 0.0
goto @SWEET6_11011

:SWEET6_10938
if 
  136@ > 500
goto_if_false @SWEET6_10971
136@ = 0
goto @SWEET6_11011

:SWEET6_10971
257@ = 0.0
260@ = 0.0
263@ = 0.0
266@ = 0.0

:SWEET6_11011
if 
  137@ > 2000
goto_if_false @SWEET6_11085
296@ = Math.RandomIntInRange(0, 16)
gosub @SWEET6_28813
set_lvar_float_to_lvar_float 258@ = 294@
set_lvar_float_to_lvar_float 261@ = 292@
set_lvar_float_to_lvar_float 264@ = 295@
set_lvar_float_to_lvar_float 267@ = 293@
137@ = 0

:SWEET6_11085
if 
  138@ > 300
goto_if_false @SWEET6_11159
296@ = Math.RandomIntInRange(0, 16)
gosub @SWEET6_28813
set_lvar_float_to_lvar_float 259@ = 294@
set_lvar_float_to_lvar_float 262@ = 292@
set_lvar_float_to_lvar_float 265@ = 295@
set_lvar_float_to_lvar_float 268@ = 293@
138@ = 0

:SWEET6_11159
if 
  not Car.IsDead(72@)
goto_if_false @SWEET6_11301
if 
  Car.DoesHaveHydraulics(72@)
goto_if_false @SWEET6_11301
Car.ControlHydraulics(72@, 260@, 266@, 257@, 263@)
$x, $y, $z = Car.GetCoordinates(72@)
set_lvar_float_to_lvar_float 50@ = 141@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 148@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 272@
mult_float_lvar_by_float_lvar 51@ *= 272@
Car.ApplyForce(72@, 50@, 51@, 0.0, 0.0, 0.0, 0.0)

:SWEET6_11301
if 
  not Car.IsDead(75@)
goto_if_false @SWEET6_11443
if 
  Car.DoesHaveHydraulics(75@)
goto_if_false @SWEET6_11443
Car.ControlHydraulics(75@, 261@, 267@, 258@, 264@)
$x, $y, $z = Car.GetCoordinates(75@)
set_lvar_float_to_lvar_float 50@ = 144@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 151@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 272@
mult_float_lvar_by_float_lvar 51@ *= 272@
Car.ApplyForce(75@, 50@, 51@, 0.0, 0.0, 0.0, 0.0)

:SWEET6_11443
if 
  not Car.IsDead(76@)
goto_if_false @SWEET6_11585
if 
  Car.DoesHaveHydraulics(76@)
goto_if_false @SWEET6_11585
Car.ControlHydraulics(76@, 262@, 268@, 259@, 265@)
$x, $y, $z = Car.GetCoordinates(76@)
set_lvar_float_to_lvar_float 50@ = 145@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 152@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 272@
mult_float_lvar_by_float_lvar 51@ *= 272@
Car.ApplyForce(76@, 50@, 51@, 0.0, 0.0, 0.0, 0.0)

:SWEET6_11585
switch_start 39@ {numCases} 20 {hasDefaultCase} 0 {defaultLabel} @SWEET6_15785 {caseNum1} 0 {caseLabel1} @SWEET6_11778 {caseNum2} 1 {caseLabel2} @SWEET6_12154 {caseNum3} 2 {caseLabel3} @SWEET6_12530 {caseNum4} 3 {caseLabel4} @SWEET6_12680 {caseNum5} 4 {caseLabel5} @SWEET6_12830 {caseNum6} 5 {caseLabel6} @SWEET6_12945 {caseNum7} 6 {caseLabel7} @SWEET6_13095
switch_continued 7 {caseLabel1} @SWEET6_13245 {caseNum2} 8 {caseLabel2} @SWEET6_13361 {caseNum3} 9 {caseLabel3} @SWEET6_13477 {caseNum4} 10 {caseLabel4} @SWEET6_13853 {caseNum5} 11 {caseLabel5} @SWEET6_14036 {caseNum6} 12 {caseLabel6} @SWEET6_14152 {caseNum7} 13 {caseLabel7} @SWEET6_14268 {caseNum8} 14 {caseLabel8} @SWEET6_14575 {caseNum9} 15 {caseLabel9} @SWEET6_14900
switch_continued 16 {caseLabel1} @SWEET6_15184 {caseNum2} 17 {caseLabel2} @SWEET6_15293 {caseNum3} 18 {caseLabel3} @SWEET6_15402 {caseNum4} 19 {caseLabel4} @SWEET6_15609 {caseNum5} -1 {caseLabel5} @SWEET6_15785 {caseNum6} -1 {caseLabel6} @SWEET6_15785 {caseNum7} -1 {caseLabel7} @SWEET6_15785 {caseNum8} -1 {caseLabel8} @SWEET6_15785 {caseNum9} -1 {caseLabel9} @SWEET6_15785

:SWEET6_11778
if 
  not Char.IsDead(80@)
goto_if_false @SWEET6_12147
43@ = Char.GetScriptTaskStatus(80@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_12052
49@ = Sequence.Open()
if 
  not Car.IsDead(77@)
goto_if_false @SWEET6_11986
if 
  Car.Locate3D(77@, 146@, 153@, 160@, 0.2, 0.2, 1.0, False)
goto_if_false @SWEET6_11938
Task.PlayAnim(-1, "M_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
goto @SWEET6_11979

:SWEET6_11938
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:SWEET6_11979
goto @SWEET6_12027

:SWEET6_11986
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:SWEET6_12027
Sequence.Close(49@)
Char.PerformSequence(80@, 49@)
Sequence.Clear(49@)
goto @SWEET6_12147

:SWEET6_12052
if 
  Char.IsPlayingAnim(80@, "M_SMKLEAN_LOOP")
goto_if_false @SWEET6_12147
if 
  not Car.IsDead(77@)
goto_if_false @SWEET6_12147
if 
  not Car.Locate3D(77@, 146@, 153@, 160@, 0.2, 0.2, 1.0, False)
goto_if_false @SWEET6_12147
Char.ClearTasks(80@)

:SWEET6_12147
goto @SWEET6_15785

:SWEET6_12154
if 
  not Char.IsDead(81@)
goto_if_false @SWEET6_12523
43@ = Char.GetScriptTaskStatus(81@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_12428
49@ = Sequence.Open()
if 
  not Car.IsDead(77@)
goto_if_false @SWEET6_12362
if 
  Car.Locate3D(77@, 146@, 153@, 160@, 0.2, 0.2, 1.0, False)
goto_if_false @SWEET6_12314
Task.PlayAnim(-1, "F_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
goto @SWEET6_12355

:SWEET6_12314
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:SWEET6_12355
goto @SWEET6_12403

:SWEET6_12362
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:SWEET6_12403
Sequence.Close(49@)
Char.PerformSequence(81@, 49@)
Sequence.Clear(49@)
goto @SWEET6_12523

:SWEET6_12428
if 
  Char.IsPlayingAnim(81@, "F_SMKLEAN_LOOP")
goto_if_false @SWEET6_12523
if 
  not Car.IsDead(77@)
goto_if_false @SWEET6_12523
if 
  not Car.Locate3D(77@, 146@, 153@, 160@, 0.2, 0.2, 1.0, False)
goto_if_false @SWEET6_12523
Char.ClearTasks(81@)

:SWEET6_12523
goto @SWEET6_15785

:SWEET6_12530
if 
  not Char.IsDead(82@)
goto_if_false @SWEET6_12673
43@ = Char.GetScriptTaskStatus(82@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_12673
49@ = Sequence.Open()
if 
  not Char.IsDead(83@)
goto_if_false @SWEET6_12614
Task.ChatWithChar(-1, 83@, True, 1)
goto @SWEET6_12655

:SWEET6_12614
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:SWEET6_12655
Sequence.Close(49@)
Char.PerformSequence(82@, 49@)
Sequence.Clear(49@)

:SWEET6_12673
goto @SWEET6_15785

:SWEET6_12680
if 
  not Char.IsDead(83@)
goto_if_false @SWEET6_12823
43@ = Char.GetScriptTaskStatus(83@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_12823
49@ = Sequence.Open()
if 
  not Char.IsDead(82@)
goto_if_false @SWEET6_12764
Task.ChatWithChar(-1, 82@, False, 1)
goto @SWEET6_12805

:SWEET6_12764
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:SWEET6_12805
Sequence.Close(49@)
Char.PerformSequence(83@, 49@)
Sequence.Clear(49@)

:SWEET6_12823
goto @SWEET6_15785

:SWEET6_12830
if 
  not Char.IsDead(84@)
goto_if_false @SWEET6_12938
43@ = Char.GetScriptTaskStatus(84@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_12938
49@ = Sequence.Open()
Task.PlayAnim(-1, "CAR_HOOKERTALK", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(84@, 49@)
Sequence.Clear(49@)

:SWEET6_12938
goto @SWEET6_15785

:SWEET6_12945
if 
  not Char.IsDead(85@)
goto_if_false @SWEET6_13088
43@ = Char.GetScriptTaskStatus(85@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_13088
49@ = Sequence.Open()
if 
  not Char.IsDead(86@)
goto_if_false @SWEET6_13029
Task.ChatWithChar(-1, 86@, False, 1)
goto @SWEET6_13070

:SWEET6_13029
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:SWEET6_13070
Sequence.Close(49@)
Char.PerformSequence(85@, 49@)
Sequence.Clear(49@)

:SWEET6_13088
goto @SWEET6_15785

:SWEET6_13095
if 
  not Char.IsDead(86@)
goto_if_false @SWEET6_13238
43@ = Char.GetScriptTaskStatus(86@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_13238
49@ = Sequence.Open()
if 
  not Char.IsDead(85@)
goto_if_false @SWEET6_13179
Task.ChatWithChar(-1, 85@, True, 1)
goto @SWEET6_13220

:SWEET6_13179
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:SWEET6_13220
Sequence.Close(49@)
Char.PerformSequence(86@, 49@)
Sequence.Clear(49@)

:SWEET6_13238
goto @SWEET6_15785

:SWEET6_13245
if 
  not Char.IsDead(87@)
goto_if_false @SWEET6_13354
43@ = Char.GetScriptTaskStatus(87@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_13354
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(87@, 49@)
Sequence.Clear(49@)

:SWEET6_13354
goto @SWEET6_15785

:SWEET6_13361
if 
  not Char.IsDead(88@)
goto_if_false @SWEET6_13470
43@ = Char.GetScriptTaskStatus(88@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_13470
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(88@, 49@)
Sequence.Clear(49@)

:SWEET6_13470
goto @SWEET6_15785

:SWEET6_13477
if 
  not Char.IsDead(89@)
goto_if_false @SWEET6_13846
43@ = Char.GetScriptTaskStatus(89@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_13751
49@ = Sequence.Open()
if 
  not Car.IsDead(78@)
goto_if_false @SWEET6_13685
if 
  Car.Locate3D(78@, 147@, 154@, 161@, 0.2, 0.2, 1.0, False)
goto_if_false @SWEET6_13637
Task.PlayAnim(-1, "M_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
goto @SWEET6_13678

:SWEET6_13637
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:SWEET6_13678
goto @SWEET6_13726

:SWEET6_13685
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)

:SWEET6_13726
Sequence.Close(49@)
Char.PerformSequence(89@, 49@)
Sequence.Clear(49@)
goto @SWEET6_13846

:SWEET6_13751
if 
  Char.IsPlayingAnim(89@, "M_SMKLEAN_LOOP")
goto_if_false @SWEET6_13846
if 
  not Car.IsDead(78@)
goto_if_false @SWEET6_13846
if 
  not Car.Locate3D(78@, 147@, 154@, 161@, 0.2, 0.2, 1.0, False)
goto_if_false @SWEET6_13846
Char.ClearTasks(89@)

:SWEET6_13846
goto @SWEET6_15785

:SWEET6_13853
if 
  not Char.IsDead(90@)
goto_if_false @SWEET6_14029
43@ = Char.GetScriptTaskStatus(90@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_14029
49@ = Sequence.Open()
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "FUCKU", "PED", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "WOMAN_IDLESTANCE", "PED", 4.0, False, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(90@, 49@)
Sequence.Clear(49@)

:SWEET6_14029
goto @SWEET6_15785

:SWEET6_14036
if 
  not Char.IsDead(91@)
goto_if_false @SWEET6_14145
43@ = Char.GetScriptTaskStatus(91@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_14145
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(91@, 49@)
Sequence.Clear(49@)

:SWEET6_14145
goto @SWEET6_15785

:SWEET6_14152
if 
  not Char.IsDead(92@)
goto_if_false @SWEET6_14261
43@ = Char.GetScriptTaskStatus(92@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_14261
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, True, True, False, -1)
Sequence.Close(49@)
Char.PerformSequence(92@, 49@)
Sequence.Clear(49@)

:SWEET6_14261
goto @SWEET6_15785

:SWEET6_14268
if 
  not Char.IsDead(93@)
goto_if_false @SWEET6_14568
43@ = Char.GetScriptTaskStatus(93@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_14568
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1786.719, -1915.878, 12.3942, MoveState.Walk, 60000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Task.GoStraightToCoord(-1, 1796.179, -1919.465, 12.3928, MoveState.Walk, 60000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Task.GoStraightToCoord(-1, 1786.719, -1915.878, 12.3942, MoveState.Walk, 60000)
Task.GoStraightToCoord(-1, 182@, 204@, 226@, MoveState.Walk, 60000)
if 
  not Char.IsDead(89@)
goto_if_false @SWEET6_14509
Task.TurnCharToFaceChar(-1, 89@)

:SWEET6_14509
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, False, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(93@, 49@)
Sequence.Clear(49@)

:SWEET6_14568
goto @SWEET6_15785

:SWEET6_14575
if 
  not Char.IsDead(94@)
goto_if_false @SWEET6_14893
43@ = Char.GetScriptTaskStatus(94@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_14893
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1800.367, -1917.394, 12.3938, MoveState.Walk, 60000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Task.GoStraightToCoord(-1, 1789.057, -1917.901, 12.3936, MoveState.Walk, 60000)
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, False, True, True, False, -1)
Task.GoStraightToCoord(-1, 1788.526, -1907.294, 12.3955, MoveState.Walk, 60000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Task.GoStraightToCoord(-1, 1796.478, -1908.174, 12.3983, MoveState.Walk, 60000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(94@, 49@)
Sequence.Clear(49@)

:SWEET6_14893
goto @SWEET6_15785

:SWEET6_14900
if 
  not Char.IsDead(95@)
goto_if_false @SWEET6_15177
43@ = Char.GetScriptTaskStatus(95@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_15177
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1787.672, -1908.567, 12.3949, MoveState.Walk, 60000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Task.GoStraightToCoord(-1, 1786.719, -1917.107, 12.3942, MoveState.Walk, 60000)
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, False, False, False, False, -1)
Task.GoStraightToCoord(-1, 1787.672, -1908.567, 12.3949, MoveState.Walk, 60000)
Task.GoStraightToCoord(-1, 184@, 206@, 228@, MoveState.Walk, 60000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(95@, 49@)
Sequence.Clear(49@)

:SWEET6_15177
goto @SWEET6_15785

:SWEET6_15184
if 
  not Char.IsDead(96@)
goto_if_false @SWEET6_15286
43@ = Char.GetScriptTaskStatus(96@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_15286
49@ = Sequence.Open()
Task.PlayAnim(-1, "TAP_HAND", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(96@, 49@)
Sequence.Clear(49@)

:SWEET6_15286
goto @SWEET6_15785

:SWEET6_15293
if 
  not Char.IsDead(97@)
goto_if_false @SWEET6_15395
43@ = Char.GetScriptTaskStatus(97@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_15395
49@ = Sequence.Open()
Task.PlayAnim(-1, "TAP_HAND", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(97@, 49@)
Sequence.Clear(49@)

:SWEET6_15395
goto @SWEET6_15785

:SWEET6_15402
43@ = 0

:SWEET6_15409
if 
  7 > 43@
goto_if_false @SWEET6_15602
if 
  Car.DoesExist(72@(43@,7i))
goto_if_false @SWEET6_15588
if 
  not Car.IsDead(72@(43@,7i))
goto_if_false @SWEET6_15558
if 
  Car.HasBeenDamagedByChar(72@(43@,7i), $scplayer)
goto_if_false @SWEET6_15551
44@ = Car.GetHealth(72@(43@,7i))
if 
  950 > 44@
goto_if_false @SWEET6_15551
Text.PrintNow('S6_32', 5000, 1)
130@ = 1
43@ = 7

:SWEET6_15551
goto @SWEET6_15588

:SWEET6_15558
Text.PrintNow('S6_32', 5000, 1)
130@ = 1
43@ = 7

:SWEET6_15588
43@ += 1
goto @SWEET6_15409

:SWEET6_15602
goto @SWEET6_15785

:SWEET6_15609
43@ = 0

:SWEET6_15616
if 
  22 > 43@
goto_if_false @SWEET6_15778
if 
  Char.DoesExist(80@(43@,22i))
goto_if_false @SWEET6_15764
if 
  not Char.IsDead(80@(43@,22i))
goto_if_false @SWEET6_15734
if 
  Char.HasBeenDamagedByChar(80@(43@,22i), $scplayer)
goto_if_false @SWEET6_15727
Text.PrintNow('S6_04', 5000, 1)
130@ = 1
43@ = 22

:SWEET6_15727
goto @SWEET6_15764

:SWEET6_15734
Text.PrintNow('S6_04', 5000, 1)
130@ = 1
43@ = 22

:SWEET6_15764
43@ += 1
goto @SWEET6_15616

:SWEET6_15778
goto @SWEET6_15785

:SWEET6_15785
goto @SWEET6_16060

:SWEET6_15792
if 
  130@ == 1
goto_if_false @SWEET6_16060
43@ = 0

:SWEET6_15817
if 
  12 > 43@
goto_if_false @SWEET6_15878
if 
  not Char.IsDead(80@(43@,22i))
goto_if_false @SWEET6_15864
Char.ClearTasksImmediately(80@(43@,22i))

:SWEET6_15864
43@ += 1
goto @SWEET6_15817

:SWEET6_15878
43@ = 0

:SWEET6_15885
if 
  22 > 43@
goto_if_false @SWEET6_15950
if 
  not Char.IsDead(80@(43@,22i))
goto_if_false @SWEET6_15936
Char.SetRelationship(80@(43@,22i), RelationshipType.Hate, PedType.Player1)

:SWEET6_15936
43@ += 1
goto @SWEET6_15885

:SWEET6_15950
43@ = 0

:SWEET6_15957
if 
  22 > 43@
goto_if_false @SWEET6_15998
Char.MarkAsNoLongerNeeded(80@(43@,22i))
43@ += 1
goto @SWEET6_15957

:SWEET6_15998
43@ = 0

:SWEET6_16005
if 
  7 > 43@
goto_if_false @SWEET6_16046
Car.MarkAsNoLongerNeeded(72@(43@,7i))
43@ += 1
goto @SWEET6_16005

:SWEET6_16046
37@ = 1
130@ += 1

:SWEET6_16060
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_16325
if 
  Char.IsInCar($scplayer, 71@)
goto_if_false @SWEET6_16325
if 
  Char.LocateInCar3D($scplayer, 1793.068, -1904.254, 12.3989, 4.0, 4.0, 4.0, True)
goto_if_false @SWEET6_16318
if 
  Car.IsOnAllWheels(71@)
goto_if_false @SWEET6_16311
43@ = Player.StoreScore($player1)
if 
  is_int_lvar_greater_or_equal_to_int_lvar 43@ >= 274@
goto_if_false @SWEET6_16215
Player.SetControl($player1, False)
$car = Char.StoreCarIsInNoSave($scplayer)
35@ = 99
goto @SWEET6_16311

:SWEET6_16215
if and
  $audio_line_is_active == 0
  not Text.IsMessageBeingDisplayed
goto_if_false @SWEET6_16311
if 
  280@ == 0
goto_if_false @SWEET6_16311
set_var_text_label s$audio_string = 'LOWR_AK'
set_var_int_to_constant $audio_sound_file = 9206
start_new_script @AUDIOL -1 0 0 1 0 
280@ += 1
Text.PrintHelp('S6_40')

:SWEET6_16311
goto @SWEET6_16325

:SWEET6_16318
280@ = 0

:SWEET6_16325
if 
  281@ == 0
goto_if_false @SWEET6_16448
if 
  not Char.LocateAnyMeans2D($scplayer, 2644.069, -2029.135, 20.0, 20.0, False)
goto_if_false @SWEET6_16441
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @SWEET6_16441
Text.PrintHelp('S6_22')
Blip.Remove($mod_garage_blip)
$mod_garage_blip = Blip.AddShortRangeSpriteForCoord(2644.252, -2028.246, 12.5547, RadarSprite.ModGarage)
281@ += 1

:SWEET6_16441
goto @SWEET6_16627

:SWEET6_16448
if 
  282@ == 0
goto_if_false @SWEET6_16541
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_16534
if 
  Char.IsInCar($scplayer, 71@)
goto_if_false @SWEET6_16534
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @SWEET6_16534
Text.PrintHelp('S6_36')
282@ += 1

:SWEET6_16534
goto @SWEET6_16627

:SWEET6_16541
if 
  282@ == 1
goto_if_false @SWEET6_16627
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_16627
if 
  Char.IsInCar($scplayer, 71@)
goto_if_false @SWEET6_16627
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @SWEET6_16627
Text.PrintHelp('S6_41')
282@ += 1

:SWEET6_16627
if 
  35@ == 99
goto_if_false @SWEET6_16692
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SWEET6_16692
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.IsStopped($car)
goto_if_false @SWEET6_16692
gosub @SWEET6_35827

:SWEET6_16692
return 

:SWEET6_16694
if 
  35@ == 0
goto_if_false @SWEET6_17318
Camera.DoFade(500, Fade.Out)

:SWEET6_16719
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_16743
wait 0
goto @SWEET6_16719

:SWEET6_16743
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_16764
Car.ResetHydraulics(71@)

:SWEET6_16764
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
World.ClearArea(1793.068, -1904.254, 12.3989, 30.0, True)
if 
  Blip.DoesExist(105@)
goto_if_false @SWEET6_16823
Blip.Remove(105@)

:SWEET6_16823
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_16869
Car.SetCoordinates(71@, 1793.068, -1904.254, 12.3989)
Car.SetHeading(71@, 171.6728)

:SWEET6_16869
43@ = 0

:SWEET6_16876
if 
  16 > 43@
goto_if_false @SWEET6_16937
if 
  not Char.IsDead(80@(43@,22i))
goto_if_false @SWEET6_16923
Char.ClearTasksImmediately(80@(43@,22i))

:SWEET6_16923
43@ += 1
goto @SWEET6_16876

:SWEET6_16937
43@ = 0

:SWEET6_16944
if 
  22 > 43@
goto_if_false @SWEET6_17008
if 
  not Char.IsDead(80@(43@,22i))
goto_if_false @SWEET6_16994
Char.SetDecisionMaker(80@(43@,22i), 66@)

:SWEET6_16994
43@ += 1
goto @SWEET6_16944

:SWEET6_17008
43@ = 0

:SWEET6_17015
if 
  16 > 43@
goto_if_false @SWEET6_17113
if 
  not Char.IsDead(80@(43@,22i))
goto_if_false @SWEET6_17099
Char.SetCoordinates(80@(43@,22i), 169@(43@,22f), 191@(43@,22f), 213@(43@,22f))
Char.SetHeading(80@(43@,22i), 235@(43@,22f))

:SWEET6_17099
43@ += 1
goto @SWEET6_17015

:SWEET6_17113
43@ = 0

:SWEET6_17120
if 
  7 > 43@
goto_if_false @SWEET6_17218
if 
  not Car.IsDead(72@(43@,7i))
goto_if_false @SWEET6_17204
Car.SetCoordinates(72@(43@,7i), 141@(43@,7f), 148@(43@,7f), 155@(43@,7f))
Car.SetHeading(72@(43@,7i), 162@(43@,7f))

:SWEET6_17204
43@ += 1
goto @SWEET6_17120

:SWEET6_17218
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1796.749, -1916.961, 13.8583, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1796.125, -1916.181, 13.807, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:SWEET6_17287
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_17311
wait 0
goto @SWEET6_17287

:SWEET6_17311
35@ += 1

:SWEET6_17318
if 
  35@ == 1
goto_if_false @SWEET6_17436
if 
  not Char.IsDead(98@)
goto_if_false @SWEET6_17422
49@ = Sequence.Open()
if 
  not Car.IsDead(76@)
goto_if_false @SWEET6_17380
Task.LeaveCar(-1, 76@)

:SWEET6_17380
Task.GoStraightToCoord(-1, 1792.631, -1909.274, 12.4371, MoveState.Walk, 10000)
Sequence.Close(49@)
Char.PerformSequence(98@, 49@)
Sequence.Clear(49@)

:SWEET6_17422
TIMERA = 0
35@ += 1

:SWEET6_17436
if 
  35@ == 2
goto_if_false @SWEET6_17588
if or
  TIMERA > 5000
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SWEET6_17588
if 
  not Char.IsDead(98@)
goto_if_false @SWEET6_17588
Char.ClearTasksImmediately(98@)
Char.SetCoordinates(98@, 1792.631, -1909.274, 12.4371)
Char.SetHeading(98@, 331.0204)
Camera.SetFixedPosition(1793.816, -1910.713, 14.0346, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1793.453, -1909.801, 13.8451, SwitchType.JumpCut)
35@ += 1

:SWEET6_17588
if 
  35@ == 3
goto_if_false @SWEET6_18038
if 
  not Char.IsDead(98@)
goto_if_false @SWEET6_18038
49@ = Sequence.Open()
Task.PlayAnim(-1, "PRTIAL_GNGTLKD", "LOWRIDER", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKE", "LOWRIDER", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKF", "LOWRIDER", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKG", "LOWRIDER", 4.0, False, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(98@, 49@)
Sequence.Clear(49@)
43@ = Math.RandomIntInRange(0, 3)
if 
  43@ == 0
goto_if_false @SWEET6_17893
set_var_text_label s$audio_string = 'LOWR_BA'
set_var_int_to_constant $audio_sound_file = 9208
start_new_script @AUDIOL 98@ 0 1 1 0 

:SWEET6_17893
if 
  43@ == 1
goto_if_false @SWEET6_17952
set_var_text_label s$audio_string = 'LOWR_BB'
set_var_int_to_constant $audio_sound_file = 9209
start_new_script @AUDIOL 98@ 0 1 1 0 

:SWEET6_17952
if 
  43@ == 2
goto_if_false @SWEET6_18011
set_var_text_label s$audio_string = 'LOWR_BC'
set_var_int_to_constant $audio_sound_file = 9210
start_new_script @AUDIOL 98@ 0 1 1 0 

:SWEET6_18011
wait 1000
Text.UseCommands(True)
wait 1
TIMERA = 0
35@ += 1

:SWEET6_18038
if 
  35@ == 4
goto_if_false @SWEET6_18133
if or
  $audio_line_is_active == 0
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SWEET6_18133
35@ += 1
134@ = 1
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
if 
  not Char.IsDead(98@)
goto_if_false @SWEET6_18133
Char.ClearTasks(98@)

:SWEET6_18133
if 
  35@ == 5
goto_if_false @SWEET6_18255
Hud.SwitchWidescreen(False)
Camera.SetFixedPosition(1793.485, -1907.354, 13.4436, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1793.129, -1908.289, 13.4481, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 276@ = 274@
set_lvar_int_to_lvar_int 43@ = 276@
43@ *= -1
Player.AddScore($player1, 43@)
Text.PrintHelpForever('S6_37')
35@ += 1

:SWEET6_18255
if 
  35@ == 6
goto_if_false @SWEET6_19190
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @SWEET6_18699
if and
  277@ <> 1
  277@ <> -1
goto_if_false @SWEET6_18648
if 
  276@ >= 10000
goto_if_false @SWEET6_18349
273@ = 1000
goto @SWEET6_18453

:SWEET6_18349
if 
  276@ >= 1000
goto_if_false @SWEET6_18382
273@ = 100
goto @SWEET6_18453

:SWEET6_18382
if 
  276@ >= 100
goto_if_false @SWEET6_18414
273@ = 10
goto @SWEET6_18453

:SWEET6_18414
if 
  276@ == 0
goto_if_false @SWEET6_18446
273@ = 2
goto @SWEET6_18453

:SWEET6_18446
273@ = 1

:SWEET6_18453
43@ = Player.StoreScore($player1)
if 
  is_int_lvar_greater_than_int_lvar 273@ > 43@
goto_if_false @SWEET6_18488
set_lvar_int_to_lvar_int 273@ = 43@

:SWEET6_18488
set_lvar_int_to_lvar_int 43@ = 276@
add_int_lvar_to_int_lvar 43@ += 273@
if 
  is_int_lvar_greater_than_int_lvar 43@ > 275@
goto_if_false @SWEET6_18539
set_lvar_int_to_lvar_int 273@ = 275@
sub_int_lvar_from_int_lvar 273@ -= 276@

:SWEET6_18539
if 
  0 > 273@
goto_if_false @SWEET6_18564
273@ *= -1

:SWEET6_18564
add_int_lvar_to_int_lvar 276@ += 273@
add_int_lvar_to_int_lvar 278@ += 273@
273@ *= -1
Player.AddScore($player1, 273@)
277@ += 1
if 
  277@ > 1
goto_if_false @SWEET6_18634
277@ = 2
goto @SWEET6_18641

:SWEET6_18634
TIMERA = 0

:SWEET6_18641
goto @SWEET6_18692

:SWEET6_18648
if 
  277@ == 1
goto_if_false @SWEET6_18692
if 
  TIMERA > 500
goto_if_false @SWEET6_18692
277@ = 2

:SWEET6_18692
goto @SWEET6_19090

:SWEET6_18699
if 
  277@ <> 0
goto_if_false @SWEET6_18724
277@ = 0

:SWEET6_18724
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @SWEET6_19065
if 
  279@ <> 1
goto_if_false @SWEET6_19032
if 
  276@ > 10000
goto_if_false @SWEET6_18793
273@ = -1000
goto @SWEET6_18865

:SWEET6_18793
if 
  276@ > 1000
goto_if_false @SWEET6_18826
273@ = -100
goto @SWEET6_18865

:SWEET6_18826
if 
  276@ > 100
goto_if_false @SWEET6_18858
273@ = -10
goto @SWEET6_18865

:SWEET6_18858
273@ = -1

:SWEET6_18865
set_lvar_int_to_lvar_int 43@ = 276@
add_int_lvar_to_int_lvar 276@ += 273@
if 
  is_int_lvar_greater_than_int_lvar 274@ > 276@
goto_if_false @SWEET6_18922
276@ = 0
set_lvar_int_to_lvar_int 273@ = 43@
273@ *= -1

:SWEET6_18922
if 
  is_int_lvar_greater_than_int_lvar 274@ > 276@
goto_if_false @SWEET6_18956
set_lvar_int_to_lvar_int 276@ = 274@
goto @SWEET6_18979

:SWEET6_18956
273@ *= -1
sub_int_lvar_from_int_lvar 278@ -= 273@
Player.AddScore($player1, 273@)

:SWEET6_18979
279@ += 1
if 
  279@ > 1
goto_if_false @SWEET6_19018
279@ = 2
goto @SWEET6_19025

:SWEET6_19018
TIMERA = 0

:SWEET6_19025
goto @SWEET6_19058

:SWEET6_19032
if 
  TIMERA > 500
goto_if_false @SWEET6_19058
279@ = 2

:SWEET6_19058
goto @SWEET6_19090

:SWEET6_19065
if 
  279@ <> 0
goto_if_false @SWEET6_19090
279@ = 0

:SWEET6_19090
gosub @SWEET6_35372
if 
  134@ == 0
goto_if_false @SWEET6_19166
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SWEET6_19159
cset_lvar_float_to_lvar_int 46@ =# 276@
46@ *= 0.1
Text.ClearHelp
35@ += 1

:SWEET6_19159
goto @SWEET6_19190

:SWEET6_19166
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SWEET6_19190
134@ = 0

:SWEET6_19190
if 
  35@ == 7
goto_if_false @SWEET6_19223
Text.UseCommands(False)
Hud.SwitchWidescreen(True)
35@ += 1

:SWEET6_19223
if 
  35@ == 8
goto_if_false @SWEET6_19271
if 
  not Char.IsDead(98@)
goto_if_false @SWEET6_19271
TIMERA = 0
35@ += 1

:SWEET6_19271
if 
  35@ == 9
goto_if_false @SWEET6_19396
if 
  not Char.IsDead(98@)
goto_if_false @SWEET6_19396
Char.SetNextDesiredMoveState(MoveState.Walk)
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1791.433, -1911.414, 12.4371, MoveState.Walk, 10000)
if 
  not Car.IsDead(76@)
goto_if_false @SWEET6_19364
Task.EnterCarAsDriver(-1, 76@, 5000)

:SWEET6_19364
Sequence.Close(49@)
Char.PerformSequence(98@, 49@)
Sequence.Clear(49@)
TIMERA = 0
35@ += 1

:SWEET6_19396
if 
  35@ == 10
goto_if_false @SWEET6_19473
if 
  TIMERA > 2000
goto_if_false @SWEET6_19473
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:SWEET6_19442
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_19466
wait 0
goto @SWEET6_19442

:SWEET6_19466
35@ = 99

:SWEET6_19473
gosub @SWEET6_29743
if 
  35@ == 99
goto_if_false @SWEET6_19505
gosub @SWEET6_35827

:SWEET6_19505
return 

:SWEET6_19507
if 
  35@ == 0
goto_if_false @SWEET6_19613
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Text.ClearPrints
Camera.SetFixedPosition(1788.107, -1903.804, 13.3553, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1788.944, -1904.343, 13.2601, SwitchType.JumpCut)
Streaming.LoadScene(1788.944, -1904.343, 13.2601)
35@ += 1

:SWEET6_19613
if 
  35@ == 1
goto_if_false @SWEET6_22333
Streaming.RequestModel(114)
Streaming.RequestModel(115)
Streaming.RequestModel(116)
Streaming.RequestModel(63)
Streaming.RequestModel(41)
Streaming.RequestModel(567)
Streaming.RequestModel(534)
Streaming.RequestAnimation("LOWRIDER")
Streaming.LoadAllModelsNow

:SWEET6_19675
if or
  not Streaming.HasModelLoaded(114)
  not Streaming.HasModelLoaded(115)
  not Streaming.HasModelLoaded(116)
  not Streaming.HasModelLoaded(63)
  not Streaming.HasModelLoaded(41)
goto_if_false @SWEET6_19717
wait 0
goto @SWEET6_19675

:SWEET6_19717
if or
  not Streaming.HasModelLoaded(567)
  not Streaming.HasModelLoaded(534)
goto_if_false @SWEET6_19749
wait 0
goto @SWEET6_19717

:SWEET6_19749
if 
  not Streaming.HasAnimationLoaded("LOWRIDER")
goto_if_false @SWEET6_19783
wait 0
goto @SWEET6_19749

:SWEET6_19783
141@ = 1798.203
148@ = -1926.222
155@ = 12.3895
162@ = 73.1404
142@ = 1802.864
149@ = -1918.741
156@ = 12.3931
163@ = 357.6193
143@ = 1784.635
150@ = -1924.968
157@ = 12.3901
164@ = 305.062
144@ = 1784.188
151@ = -1913.439
158@ = 12.3923
165@ = 183.5814
145@ = 1792.318
152@ = -1919.513
159@ = 12.3928
166@ = 8.2504
146@ = 1801.462
153@ = -1905.691
160@ = 12.3995
167@ = 189.9314
147@ = 1787.642
154@ = -1901.136
161@ = 12.3949
168@ = 145.4181
169@ = 1800.0
191@ = -1907.83
213@ = 12.4398
235@ = 73.7198
170@ = 1799.846
192@ = -1912.124
214@ = 12.4582
236@ = 48.2386
171@ = 1800.086
193@ = -1910.434
215@ = 12.4372
237@ = 83.7398
172@ = 1801.321
194@ = -1916.427
216@ = 12.4343
238@ = 83.7398
173@ = 1798.541
195@ = -1922.18
217@ = 12.431
239@ = 46.5794
174@ = 1799.49
196@ = -1920.617
218@ = 12.4322
240@ = 46.5794
175@ = 1787.255
197@ = -1926.597
219@ = 12.4283
241@ = 323.6194
176@ = 1786.442
198@ = -1920.201
220@ = 12.4322
242@ = 306.1995
177@ = 1785.824
199@ = -1919.162
221@ = 12.4324
243@ = 294.6196
178@ = 1786.102
200@ = -1913.833
222@ = 12.4327
244@ = 280.7204
179@ = 1786.806
201@ = -1905.246
223@ = 12.4342
245@ = 262.8214
180@ = 1788.693
202@ = -1902.139
224@ = 12.4348
246@ = 247.161
181@ = 1794.616
203@ = -1899.608
225@ = 12.4398
247@ = 191.0618
182@ = 1799.135
204@ = -1902.488
226@ = 12.4431
248@ = 157.4622
183@ = 1795.674
205@ = -1899.569
227@ = 12.4407
249@ = 162.6424
184@ = 1800.369
206@ = -1907.003
228@ = 12.4403
250@ = 77.6197
185@ = 1800.826
207@ = -1917.325
229@ = 12.434
251@ = 36.1793
186@ = 1785.85
208@ = -1917.955
230@ = 12.4324
252@ = 287.0602
187@ = 1788.538
209@ = -1927.091
231@ = 12.428
253@ = 345.1206
188@ = 1787.323
210@ = -1904.11
232@ = 12.4337
254@ = 263.3813
189@ = 1798.39
211@ = -1901.733
233@ = 12.4429
255@ = 142.4208
272@ = 0.01
43@ = 0

:SWEET6_20920
if 
  7 > 43@
goto_if_false @SWEET6_20981
if 
  Car.DoesExist(72@(43@,7i))
goto_if_false @SWEET6_20967
Car.Delete(72@(43@,7i))

:SWEET6_20967
43@ += 1
goto @SWEET6_20920

:SWEET6_20981
43@ = 0

:SWEET6_20988
if 
  22 > 43@
goto_if_false @SWEET6_21049
if 
  Char.DoesExist(80@(43@,22i))
goto_if_false @SWEET6_21035
Char.Delete(80@(43@,22i))

:SWEET6_21035
43@ += 1
goto @SWEET6_20988

:SWEET6_21049
if 
  not Car.DoesExist(71@)
goto_if_false @SWEET6_21105
71@ = Car.Create(567, 1793.496, -1907.423, 12.3992)
Car.SetHeading(71@, 181.5231)
goto @SWEET6_21151

:SWEET6_21105
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_21151
Car.SetCoordinates(71@, 1793.496, -1907.423, 12.3992)
Car.SetHeading(71@, 181.5231)

:SWEET6_21151
Char.ClearTasksImmediately($scplayer)
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_21223
Char.WarpIntoCar($scplayer, 71@)
Task.PlayAnim($scplayer, "SIT_RELAXED", "LOWRIDER", 4.0, True, False, False, True, -1)

:SWEET6_21223
72@ = Car.Create(534, 0.0, 0.0, 0.0)
73@ = Car.Create(567, 0.0, 0.0, 0.0)
74@ = Car.Create(567, 0.0, 0.0, 0.0)
75@ = Car.Create(567, 0.0, 0.0, 0.0)
76@ = Car.Create(534, 0.0, 0.0, 0.0)
77@ = Car.Create(567, 0.0, 0.0, 0.0)
78@ = Car.Create(534, 0.0, 0.0, 0.0)
Car.ChangeColor(72@, 1, 0)
Car.ChangeColor(73@, 2, 1)
Car.ChangeColor(74@, 3, 2)
Car.ChangeColor(75@, 10, 3)
Car.ChangeColor(76@, 9, 4)
Car.ChangeColor(77@, 6, 5)
Car.ChangeColor(78@, 7, 6)
43@ = 0

:SWEET6_21454
if 
  7 > 43@
goto_if_false @SWEET6_21554
Car.SetCoordinates(72@(43@,7i), 141@(43@,7f), 148@(43@,7f), 155@(43@,7f))
Car.SetHeading(72@(43@,7i), 162@(43@,7f))
Car.FreezePosition(72@(43@,7i), True)
Car.LockDoors(72@(43@,7i), CarLock.LockoutPlayerOnly)
43@ += 1
goto @SWEET6_21454

:SWEET6_21554
Car.FreezePosition(76@, False)
Car.SetStatus(76@, EntityStatus.Physics)
Car.SetHydraulics(76@, True)
Car.SetOnlyDamagedByPlayer(76@, True)
Car.SetProofs(76@, True, True, True, True, True)
80@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
81@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
82@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
83@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
84@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
85@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
86@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
87@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
88@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
89@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
90@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
91@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
92@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
93@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
94@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
95@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
96@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
97@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
98@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
99@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
100@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
101@ = Char.CreateInsideCar(76@, PedType.Mission1, 116)
43@ = 0

:SWEET6_22120
if 
  21 > 43@
goto_if_false @SWEET6_22198
Char.SetCoordinates(80@(43@,22i), 169@(43@,22f), 191@(43@,22f), 213@(43@,22f))
Char.SetHeading(80@(43@,22i), 235@(43@,22f))
43@ += 1
goto @SWEET6_22120

:SWEET6_22198
102@ = Char.Create(PedType.Mission1, 63, 1788.273, -1903.364, 12.4345)
Char.SetHeading(102@, 232.5412)
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_22281
if 
  not Car.IsPassengerSeatFree(71@, SeatIndex.TandemRear)
goto_if_false @SWEET6_22281
283@ = Car.GetCharInPassengerSeat(71@, 0)
Char.Delete(283@)

:SWEET6_22281
Audio.PreloadBeatTrack(0)
43@ = 0

:SWEET6_22292
if 
  not is_int_lvar_equal_to_constant 43@ == 2
goto_if_false @SWEET6_22326
wait 0
43@ = Audio.GetBeatTrackStatus()
goto @SWEET6_22292

:SWEET6_22326
35@ += 1

:SWEET6_22333
if 
  35@ == 2
goto_if_false @SWEET6_22486
Camera.DoFade(500, Fade.In)

:SWEET6_22358
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_22382
wait 0
goto @SWEET6_22358

:SWEET6_22382
if 
  not Char.IsDead(102@)
goto_if_false @SWEET6_22477
Char.SetNextDesiredMoveState(MoveState.Walk)
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1791.178, -1905.84, 12.3975, MoveState.Walk, 10000)
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_22459
Task.EnterCarAsPassenger(-1, 71@, 5000, 0)

:SWEET6_22459
Sequence.Close(49@)
Char.PerformSequence(102@, 49@)
Sequence.Clear(49@)

:SWEET6_22477
Text.ClearPrints
35@ += 1

:SWEET6_22486
if 
  35@ == 3
goto_if_false @SWEET6_22607
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SWEET6_22593
if 
  not Char.IsDead(102@)
goto_if_false @SWEET6_22586
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_22586
if 
  Char.IsInCar(102@, 71@)
goto_if_false @SWEET6_22586
35@ += 1
TIMERA = 0

:SWEET6_22586
goto @SWEET6_22607

:SWEET6_22593
35@ += 1
TIMERA = 0

:SWEET6_22607
if 
  35@ == 4
goto_if_false @SWEET6_23201
Camera.DoFade(500, Fade.Out)

:SWEET6_22632
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_22656
wait 0
goto @SWEET6_22632

:SWEET6_22656
Hud.Display(False)
Hud.SwitchWidescreen(False)
Camera.SetFixedPosition(1788.516, -1910.318, 14.8901, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1789.355, -1909.843, 14.6269, SwitchType.JumpCut)
Hud.DisplayRadar(False)
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_22764
Car.LockDoors(71@, CarLock.LockedPlayerInside)
Player.ApplyBrakesToCar($player1, True)
Car.SetProofs(71@, True, True, True, True, True)

:SWEET6_22764
if 
  not Char.IsDead(102@)
goto_if_false @SWEET6_22829
Char.ClearTasksImmediately(102@)
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_22829
if 
  Car.IsPassengerSeatFree(71@, SeatIndex.TandemRear)
goto_if_false @SWEET6_22829
Char.WarpIntoCarAsPassenger(102@, 71@, 0)

:SWEET6_22829
269@ = 0.62
270@ = 0.31
271@ = -0.167
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_22941
if 
  not Char.IsDead(102@)
goto_if_false @SWEET6_22941
if 
  Car.IsModel(71@, 567)
goto_if_false @SWEET6_22941
Char.ClearTasksImmediately(102@)
Char.AttachToCar(102@, 71@, 269@, 270@, 271@, 0, 0.0, WeaponType.Unarmed)

:SWEET6_22941
49@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "LRGIRL_HAIR", "LOWRIDER", 4.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "LRGIRL_HURRY", "LOWRIDER", 4.0, False, False, False, True, -1)
Sequence.Close(49@)
if 
  not Char.IsDead(102@)
goto_if_false @SWEET6_23076
if 
  Char.IsAttachedToAnyCar(102@)
goto_if_false @SWEET6_23076
Char.PerformSequence(102@, 49@)

:SWEET6_23076
Sequence.Clear(49@)
TIMERA = 0
Text.ClearPrints
$lowrider_level = -1
$lowrider_last_level = -1
if 
  $sw6_mission_attempts == 0
goto_if_false @SWEET6_23136
$lowrider_opposition_skill = 2
goto @SWEET6_23161

:SWEET6_23136
if 
  1 > $lowrider_opposition_skill
goto_if_false @SWEET6_23161
$lowrider_opposition_skill = 1

:SWEET6_23161
Camera.DoFade(500, Fade.In)

:SWEET6_23168
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_23192
wait 0
goto @SWEET6_23168

:SWEET6_23192
Audio.PlayBeatTrack
35@ += 1

:SWEET6_23201
if 
  35@ == 5
goto_if_false @SWEET6_23315
Player.SetControl($player1, True)
start_new_script @BDISPLY 
start_new_script @LOWGAME 71@ 76@ 102@ 
TIMERA = 0
139@ = 0
133@ = 0
Text.ClearPrints
Text.ClearHelp
Text.PrintHelp('S6_39')
65@ = 0
63@ = 0
TIMERA = 0
35@ += 1

:SWEET6_23315
if 
  35@ == 6
goto_if_false @SWEET6_23358
if 
  $lowrider_game_is_active == 1
goto_if_false @SWEET6_23358
35@ += 1

:SWEET6_23358
if 
  35@ == 7
goto_if_false @SWEET6_24524
if 
  $lowrider_game_is_active == 1
goto_if_false @SWEET6_24517
if 
  135@ == 0
goto_if_false @SWEET6_23835
if or
  139@ > 5000
  Pad.IsButtonPressed(PadId.Pad1, Button.Select)
goto_if_false @SWEET6_23828
133@ += 1
if 
  133@ >= 5
goto_if_false @SWEET6_23469
133@ = 0

:SWEET6_23469
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_23499
$x, $y, $z = Car.GetCoordinates(71@)

:SWEET6_23499
if 
  133@ == 0
goto_if_false @SWEET6_23562
Camera.SetFixedPosition(1803.978, -1909.369, 15.0671, 0.0, 0.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:SWEET6_23562
if 
  133@ == 1
goto_if_false @SWEET6_23625
Camera.SetFixedPosition(1795.369, -1900.999, 14.1795, 0.0, 0.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:SWEET6_23625
if 
  133@ == 2
goto_if_false @SWEET6_23688
Camera.SetFixedPosition(1788.793, -1902.99, 13.7203, 0.0, 0.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:SWEET6_23688
if 
  133@ == 3
goto_if_false @SWEET6_23751
Camera.SetFixedPosition(1789.377, -1912.195, 14.0671, 0.0, 0.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:SWEET6_23751
if 
  133@ == 4
goto_if_false @SWEET6_23814
Camera.SetFixedPosition(1796.409, -1912.231, 13.8316, 0.0, 0.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:SWEET6_23814
135@ += 1
139@ = 0

:SWEET6_23828
goto @SWEET6_23859

:SWEET6_23835
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Select)
goto_if_false @SWEET6_23859
135@ = 0

:SWEET6_23859
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @SWEET6_24510
$x, $y, $z = Camera.GetActiveCoordinates()
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_23923
56@, 57@, 58@ = Car.GetCoordinates(71@)
$heading = Car.GetHeading(71@)

:SWEET6_23923
$heading *= -1.0
46@ = Math.Cos($heading)
47@ = Math.Sin($heading)
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
set_lvar_float_to_lvar_float 53@ = 50@
mult_float_lvar_by_float_lvar 53@ *= 46@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 47@
sub_float_lvar_from_float_lvar 53@ -= 48@
set_lvar_float_to_lvar_float 54@ = 50@
mult_float_lvar_by_float_lvar 54@ *= 47@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 46@
add_float_lvar_to_float_lvar 54@ += 48@
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("FIXED_CAMERA_POSITION - OFFSET FROM CAR = ")
save_float_to_debug_file 53@
save_float_to_debug_file 54@
save_float_to_debug_file 52@
$x, $y, $z = Camera.GetActivePointAt()
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
set_lvar_float_to_lvar_float 53@ = 50@
mult_float_lvar_by_float_lvar 53@ *= 46@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 47@
sub_float_lvar_from_float_lvar 53@ -= 48@
set_lvar_float_to_lvar_float 54@ = 50@
mult_float_lvar_by_float_lvar 54@ *= 47@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 46@
add_float_lvar_to_float_lvar 54@ += 48@
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CAMERA_POINT_AT -       OFFSET FROM CAR = ")
save_float_to_debug_file 53@
save_float_to_debug_file 54@
save_float_to_debug_file 52@

:SWEET6_24510
goto @SWEET6_24524

:SWEET6_24517
35@ += 1

:SWEET6_24524
if 
  35@ == 8
goto_if_false @SWEET6_24594
Player.SetControl($player1, False)
$bd_terminate_script = 1
Camera.DoFade(500, Fade.Out)

:SWEET6_24563
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_24587
wait 0
goto @SWEET6_24563

:SWEET6_24587
35@ = 99

:SWEET6_24594
gosub @SWEET6_32587
if 
  35@ == 99
goto_if_false @SWEET6_24626
gosub @SWEET6_35827

:SWEET6_24626
return 

:SWEET6_24628
if 
  35@ == 0
goto_if_false @SWEET6_24742
Audio.StopBeatTrack
Text.ClearPrints
Camera.RestoreJumpcut
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.SetFixedPosition(1785.766, -1924.333, 14.4648, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1786.283, -1923.493, 14.3015, SwitchType.JumpCut)
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_24735
Car.ResetHydraulics(71@)

:SWEET6_24735
35@ += 1

:SWEET6_24742
if 
  35@ == 1
goto_if_false @SWEET6_26230
43@ = 0

:SWEET6_24767
if 
  7 > 43@
goto_if_false @SWEET6_24828
if 
  Car.DoesExist(72@(43@,7i))
goto_if_false @SWEET6_24814
Car.Delete(72@(43@,7i))

:SWEET6_24814
43@ += 1
goto @SWEET6_24767

:SWEET6_24828
43@ = 0

:SWEET6_24835
if 
  22 > 43@
goto_if_false @SWEET6_24896
if 
  Char.DoesExist(80@(43@,22i))
goto_if_false @SWEET6_24882
Char.Delete(80@(43@,22i))

:SWEET6_24882
43@ += 1
goto @SWEET6_24835

:SWEET6_24896
if 
  Char.DoesExist(102@)
goto_if_false @SWEET6_24917
Char.Delete(102@)

:SWEET6_24917
if 
  not Car.DoesExist(71@)
goto_if_false @SWEET6_24973
71@ = Car.Create(567, 1793.496, -1907.423, 12.3992)
Car.SetHeading(71@, 181.5231)
goto @SWEET6_25019

:SWEET6_24973
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_25019
Car.SetCoordinates(71@, 1793.496, -1907.423, 12.3992)
Car.SetHeading(71@, 181.5231)

:SWEET6_25019
72@ = Car.Create(534, 0.0, 0.0, 0.0)
73@ = Car.Create(567, 0.0, 0.0, 0.0)
74@ = Car.Create(567, 0.0, 0.0, 0.0)
75@ = Car.Create(567, 0.0, 0.0, 0.0)
76@ = Car.Create(534, 0.0, 0.0, 0.0)
77@ = Car.Create(567, 0.0, 0.0, 0.0)
78@ = Car.Create(534, 0.0, 0.0, 0.0)
Car.ChangeColor(72@, 1, 0)
Car.ChangeColor(73@, 2, 1)
Car.ChangeColor(74@, 3, 2)
Car.ChangeColor(75@, 10, 3)
Car.ChangeColor(76@, 9, 4)
Car.ChangeColor(77@, 6, 5)
Car.ChangeColor(78@, 7, 6)
43@ = 0

:SWEET6_25250
if 
  7 > 43@
goto_if_false @SWEET6_25350
Car.SetCoordinates(72@(43@,7i), 141@(43@,7f), 148@(43@,7f), 155@(43@,7f))
Car.SetHeading(72@(43@,7i), 162@(43@,7f))
Car.FreezePosition(72@(43@,7i), True)
Car.LockDoors(72@(43@,7i), CarLock.LockoutPlayerOnly)
43@ += 1
goto @SWEET6_25250

:SWEET6_25350
Car.FreezePosition(76@, False)
Car.SetStatus(76@, EntityStatus.Physics)
Car.SetHydraulics(76@, True)
Car.SetOnlyDamagedByPlayer(76@, True)
Car.SetProofs(76@, True, True, True, True, True)
80@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
81@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
82@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
83@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
84@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
85@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
86@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
87@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
88@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
89@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
90@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
91@ = Char.Create(PedType.Mission1, 116, 0.0, 0.0, 0.0)
92@ = Char.Create(PedType.Mission1, 114, 0.0, 0.0, 0.0)
93@ = Char.Create(PedType.Mission1, 115, 0.0, 0.0, 0.0)
94@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
95@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
96@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
97@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
98@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
99@ = Char.Create(PedType.Mission1, 63, 0.0, 0.0, 0.0)
100@ = Char.Create(PedType.Mission1, 41, 0.0, 0.0, 0.0)
101@ = Char.CreateInsideCar(76@, PedType.Mission1, 116)
43@ = 0

:SWEET6_25916
if 
  21 > 43@
goto_if_false @SWEET6_25994
Char.SetCoordinates(80@(43@,22i), 169@(43@,22f), 191@(43@,22f), 213@(43@,22f))
Char.SetHeading(80@(43@,22i), 235@(43@,22f))
43@ += 1
goto @SWEET6_25916

:SWEET6_25994
102@ = Char.Create(PedType.Mission1, 63, 1788.273, -1903.364, 12.4345)
Char.SetHeading(102@, 232.5412)
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_26103
43@ = Car.GetNumberOfPassengers(71@)
if 
  43@ > 0
goto_if_false @SWEET6_26077
goto @SWEET6_26103

:SWEET6_26077
if 
  not Char.IsDead(102@)
goto_if_false @SWEET6_26103
Char.WarpIntoCarAsPassenger(102@, 71@, 0)

:SWEET6_26103
Char.ClearTasksImmediately($scplayer)
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_26175
Char.WarpIntoCar($scplayer, 71@)
Task.PlayAnim($scplayer, "SIT_RELAXED", "LOWRIDER", 4.0, True, False, False, True, -1)

:SWEET6_26175
Streaming.LoadScene(1791.574, -1911.437, 12.4378)
Camera.DoFade(1000, Fade.In)

:SWEET6_26199
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_26223
wait 0
goto @SWEET6_26199

:SWEET6_26223
35@ += 1

:SWEET6_26230
if 
  35@ == 2
goto_if_false @SWEET6_26348
if 
  not Char.IsDead(101@)
goto_if_false @SWEET6_26348
49@ = Sequence.Open()
if 
  not Car.IsDead(76@)
goto_if_false @SWEET6_26292
Task.LeaveCar(-1, 76@)

:SWEET6_26292
Task.GoStraightToCoord(-1, 1791.574, -1911.437, 12.4378, MoveState.Walk, 10000)
Sequence.Close(49@)
Char.PerformSequence(101@, 49@)
Sequence.Clear(49@)
TIMERA = 0
35@ += 1

:SWEET6_26348
if 
  35@ == 3
goto_if_false @SWEET6_26571
if 
  TIMERA > 5000
goto_if_false @SWEET6_26571
Camera.SetFixedPosition(1795.43, -1905.018, 13.6653, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1795.145, -1905.968, 13.5431, SwitchType.JumpCut)
if 
  not Char.IsDead(101@)
goto_if_false @SWEET6_26557
Char.ClearTasksImmediately(101@)
Char.SetCoordinates(101@, 1795.968, -1909.333, 12.4389)
Char.SetHeading(101@, 20.3199)
49@ = Sequence.Open()
Task.LookAtChar(-1, $scplayer, 99999)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(101@, 49@)
Sequence.Clear(49@)

:SWEET6_26557
TIMERA = 0
35@ += 1

:SWEET6_26571
if 
  35@ == 4
goto_if_false @SWEET6_26901
if 
  is_int_var_greater_than_int_var $lowrider_pscore > $lowrider_oscore
goto_if_false @SWEET6_26745
43@ = Math.RandomIntInRange(0, 2)
if 
  43@ == 0
goto_if_false @SWEET6_26683
set_var_text_label s$audio_string = 'LOWR_CA'
set_var_int_to_constant $audio_sound_file = 9211
start_new_script @AUDIOL 101@ 0 1 1 0 
goto @SWEET6_26724

:SWEET6_26683
set_var_text_label s$audio_string = 'LOWR_CB'
set_var_int_to_constant $audio_sound_file = 9212
start_new_script @AUDIOL 101@ 0 1 1 0 

:SWEET6_26724
TIMERA = 0
35@ += 1
goto @SWEET6_26896

:SWEET6_26745
$lowrider_opposition_skill -= 1
43@ = Math.RandomIntInRange(0, 2)
if 
  43@ == 0
goto_if_false @SWEET6_26827
set_var_text_label s$audio_string = 'LOWR_DA'
set_var_int_to_constant $audio_sound_file = 9213
start_new_script @AUDIOL 101@ 0 1 1 0 
goto @SWEET6_26868

:SWEET6_26827
set_var_text_label s$audio_string = 'LOWR_DB'
set_var_int_to_constant $audio_sound_file = 9214
start_new_script @AUDIOL 101@ 0 1 1 0 

:SWEET6_26868
TIMERA = 0
35@ += 2
276@ *= -1
TIMERA = 0

:SWEET6_26896
wait 1000

:SWEET6_26901
if 
  35@ == 5
goto_if_false @SWEET6_27058
if or
  $audio_line_is_active == 0
  TIMERA > 3000
goto_if_false @SWEET6_27058
if 
  not Char.IsDead(101@)
goto_if_false @SWEET6_27058
Char.ClearTasks(101@)
Char.ClearLookAt(101@)
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1794.299, -1917.246, 12.4339, MoveState.Walk, 10000)
if 
  not Car.IsDead(76@)
goto_if_false @SWEET6_27026
Task.EnterCarAsDriver(-1, 76@, 10000)

:SWEET6_27026
Sequence.Close(49@)
Char.PerformSequence(101@, 49@)
Sequence.Clear(49@)
TIMERA = 0
35@ += 2

:SWEET6_27058
if 
  35@ == 6
goto_if_false @SWEET6_27219
if or
  $audio_line_is_active == 0
  TIMERA > 3000
goto_if_false @SWEET6_27219
if 
  not Char.IsDead(101@)
goto_if_false @SWEET6_27219
Char.ClearTasks(101@)
Char.ClearLookAt(101@)
Char.SetNextDesiredMoveState(MoveState.Walk)
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1794.299, -1917.246, 12.4339, MoveState.Walk, 10000)
if 
  not Car.IsDead(76@)
goto_if_false @SWEET6_27187
Task.EnterCarAsDriver(-1, 76@, 10000)

:SWEET6_27187
Sequence.Close(49@)
Char.PerformSequence(101@, 49@)
Sequence.Clear(49@)
TIMERA = 0
35@ += 1

:SWEET6_27219
if 
  35@ == 7
goto_if_false @SWEET6_27334
if 
  TIMERA > 3000
goto_if_false @SWEET6_27334
if 
  is_int_var_greater_than_int_var $lowrider_pscore > $lowrider_oscore
goto_if_false @SWEET6_27296
35@ += 1
TIMERA = 0
goto @SWEET6_27334

:SWEET6_27296
Camera.DoFade(500, Fade.Out)

:SWEET6_27303
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_27327
wait 0
goto @SWEET6_27303

:SWEET6_27327
35@ = 99

:SWEET6_27334
if 
  35@ == 8
goto_if_false @SWEET6_27366
TIMERA = 0
35@ += 1

:SWEET6_27366
if 
  35@ == 9
goto_if_false @SWEET6_27817
Camera.DoFade(500, Fade.Out)

:SWEET6_27391
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_27415
wait 0
goto @SWEET6_27391

:SWEET6_27415
43@ = 0

:SWEET6_27422
if 
  7 > 43@
goto_if_false @SWEET6_27483
if 
  Car.DoesExist(72@(43@,7i))
goto_if_false @SWEET6_27469
Car.Delete(72@(43@,7i))

:SWEET6_27469
43@ += 1
goto @SWEET6_27422

:SWEET6_27483
43@ = 0

:SWEET6_27490
if 
  22 > 43@
goto_if_false @SWEET6_27551
if 
  Char.DoesExist(80@(43@,22i))
goto_if_false @SWEET6_27537
Char.Delete(80@(43@,22i))

:SWEET6_27537
43@ += 1
goto @SWEET6_27490

:SWEET6_27551
if 
  Char.DoesExist(102@)
goto_if_false @SWEET6_27572
Char.Delete(102@)

:SWEET6_27572
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.MarkModelAsNoLongerNeeded(567)
Streaming.MarkModelAsNoLongerNeeded(114)
Streaming.MarkModelAsNoLongerNeeded(115)
Streaming.MarkModelAsNoLongerNeeded(116)
Streaming.MarkModelAsNoLongerNeeded(63)
Streaming.MarkModelAsNoLongerNeeded(41)
Streaming.MarkModelAsNoLongerNeeded(567)
Streaming.MarkModelAsNoLongerNeeded(534)
Streaming.RemoveAnimation("LOWRIDER")
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_27705
Car.ResetHydraulics(71@)
World.ClearArea(1784.757, -1890.923, 12.399, 25.0, True)
Car.SetCoordinates(71@, 1784.757, -1889.923, 12.399)
Car.SetHeading(71@, 90.0)
Car.FreezePosition(71@, True)

:SWEET6_27705
wait 500
Cutscene.Load('SWEET6B')

:SWEET6_27721
if 
  not Cutscene.HasLoaded
goto_if_false @SWEET6_27745
wait 0
goto @SWEET6_27721

:SWEET6_27745
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SWEET6_27754
if 
  not Cutscene.HasFinished
goto_if_false @SWEET6_27778
wait 0
goto @SWEET6_27754

:SWEET6_27778
Cutscene.Clear
Camera.DoFade(0, Fade.Out)

:SWEET6_27786
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_27810
wait 0
goto @SWEET6_27786

:SWEET6_27810
35@ = 99

:SWEET6_27817
if 
  35@ == 99
goto_if_false @SWEET6_28460
43@ = 0

:SWEET6_27842
if 
  7 > 43@
goto_if_false @SWEET6_27903
if 
  Car.DoesExist(72@(43@,7i))
goto_if_false @SWEET6_27889
Car.Delete(72@(43@,7i))

:SWEET6_27889
43@ += 1
goto @SWEET6_27842

:SWEET6_27903
43@ = 0

:SWEET6_27910
if 
  22 > 43@
goto_if_false @SWEET6_27971
if 
  Char.DoesExist(80@(43@,22i))
goto_if_false @SWEET6_27957
Char.Delete(80@(43@,22i))

:SWEET6_27957
43@ += 1
goto @SWEET6_27910

:SWEET6_27971
if 
  Char.DoesExist(102@)
goto_if_false @SWEET6_27992
Char.Delete(102@)

:SWEET6_27992
Streaming.RequestModel(534)
Streaming.RequestModel(567)
Streaming.RequestModel(114)
Streaming.RequestModel(115)
Streaming.RequestModel(116)

:SWEET6_28014
if or
  not Streaming.HasModelLoaded(534)
  not Streaming.HasModelLoaded(567)
  not Streaming.HasModelLoaded(114)
  not Streaming.HasModelLoaded(115)
  not Streaming.HasModelLoaded(116)
goto_if_false @SWEET6_28058
wait 0
goto @SWEET6_28014

:SWEET6_28058
284@ = Car.Create(534, 1787.266, -1925.162, 12.39)
Car.SetHeading(284@, 24.6517)
285@ = Car.Create(567, 1799.919, -1926.14, 12.3895)
Car.SetHeading(285@, 341.4824)
286@ = Char.CreateInsideCar(284@, PedType.CivMale, 114)
287@ = Char.CreateInsideCar(285@, PedType.CivMale, 114)
288@ = Char.Create(PedType.CivMale, 114, 1796.7, -1915.742, 12.3946)
Char.SetHeading(288@, 80.7)
289@ = Char.Create(PedType.CivMale, 115, 1791.623, -1919.621, 12.3927)
Char.SetHeading(289@, 10.9)
290@ = Char.Create(PedType.CivMale, 116, 1786.067, -1911.462, 12.3937)
Char.SetHeading(290@, 120.0)
Streaming.MarkModelAsNoLongerNeeded(534)
Streaming.MarkModelAsNoLongerNeeded(567)
Streaming.MarkModelAsNoLongerNeeded(114)
Streaming.MarkModelAsNoLongerNeeded(115)
Streaming.MarkModelAsNoLongerNeeded(116)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Char.MarkAsNoLongerNeeded(288@)
Char.MarkAsNoLongerNeeded(289@)
Char.MarkAsNoLongerNeeded(290@)
Char.MarkAsNoLongerNeeded(286@)
Char.MarkAsNoLongerNeeded(287@)
Car.MarkAsNoLongerNeeded(284@)
Car.MarkAsNoLongerNeeded(285@)
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_28345
Car.FreezePosition(71@, True)

:SWEET6_28345
Streaming.LoadScene(1793.989, -1908.417, 12.3995)
Camera.DoFade(1500, Fade.In)

:SWEET6_28369
if 
  Camera.GetFadingStatus
goto_if_false @SWEET6_28393
wait 0
goto @SWEET6_28369

:SWEET6_28393
if 
  is_int_var_greater_than_int_var $lowrider_pscore > $lowrider_oscore
goto_if_false @SWEET6_28426
36@ = 1
goto @SWEET6_28449

:SWEET6_28426
Text.PrintNow('S6_33', 5000, 1)
37@ = 1

:SWEET6_28449
wait 0
gosub @SWEET6_35827

:SWEET6_28460
gosub @SWEET6_32587
return 

:SWEET6_28469
if 
is_ps2_keyboard_key_just_pressed 33
goto_if_false @SWEET6_28494
272@ += 0.01

:SWEET6_28494
if 
is_ps2_keyboard_key_just_pressed 34
goto_if_false @SWEET6_28519
272@ += -0.01

:SWEET6_28519
if 
  Car.DoesExist(71@)
goto_if_false @SWEET6_28574
if 
  Car.IsDead(71@)
goto_if_false @SWEET6_28574
Text.PrintNow('S6_34', 5000, 1)
37@ = 1

:SWEET6_28574
if 
  Player.IsPlaying($player1)
goto_if_false @SWEET6_28751
if 
  34@ > 2
goto_if_false @SWEET6_28751
if 
  291@ == 0
goto_if_false @SWEET6_28692
if 
  Char.LocateAnyMeans2D($scplayer, 1793.068, -1904.254, 125.0, 125.0, False)
goto_if_false @SWEET6_28685
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
291@ = 1

:SWEET6_28685
goto @SWEET6_28751

:SWEET6_28692
if 
  not Char.LocateAnyMeans2D($scplayer, 1793.068, -1904.254, 150.0, 150.0, False)
goto_if_false @SWEET6_28751
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
291@ = 0

:SWEET6_28751
return 
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_28811
if 
  not Char.IsDead(102@)
goto_if_false @SWEET6_28811
Char.AttachToCar(102@, 71@, 269@, 270@, 271@, 0, 0.0, WeaponType.Unarmed)

:SWEET6_28811
return 

:SWEET6_28813
if 
  296@ == 0
goto_if_false @SWEET6_28871
292@ = 0.0
293@ = 0.0
294@ = 0.0
295@ = 0.0

:SWEET6_28871
if 
  296@ == 1
goto_if_false @SWEET6_28929
292@ = 0.0
293@ = 0.0
294@ = 0.0
295@ = 1.0

:SWEET6_28929
if 
  296@ == 2
goto_if_false @SWEET6_28987
292@ = 0.0
293@ = 0.0
294@ = 1.0
295@ = 0.0

:SWEET6_28987
if 
  296@ == 3
goto_if_false @SWEET6_29045
292@ = 0.0
293@ = 0.0
294@ = 1.0
295@ = 1.0

:SWEET6_29045
if 
  296@ == 4
goto_if_false @SWEET6_29103
292@ = 0.0
293@ = 1.0
294@ = 0.0
295@ = 0.0

:SWEET6_29103
if 
  296@ == 5
goto_if_false @SWEET6_29161
292@ = 0.0
293@ = 1.0
294@ = 0.0
295@ = 1.0

:SWEET6_29161
if 
  296@ == 6
goto_if_false @SWEET6_29219
292@ = 0.0
293@ = 1.0
294@ = 1.0
295@ = 0.0

:SWEET6_29219
if 
  296@ == 7
goto_if_false @SWEET6_29277
292@ = 0.0
293@ = 1.0
294@ = 1.0
295@ = 1.0

:SWEET6_29277
if 
  296@ == 8
goto_if_false @SWEET6_29335
292@ = 1.0
293@ = 0.0
294@ = 0.0
295@ = 0.0

:SWEET6_29335
if 
  296@ == 9
goto_if_false @SWEET6_29393
292@ = 1.0
293@ = 0.0
294@ = 0.0
295@ = 1.0

:SWEET6_29393
if 
  296@ == 10
goto_if_false @SWEET6_29451
292@ = 1.0
293@ = 0.0
294@ = 1.0
295@ = 0.0

:SWEET6_29451
if 
  296@ == 11
goto_if_false @SWEET6_29509
292@ = 1.0
293@ = 0.0
294@ = 1.0
295@ = 1.0

:SWEET6_29509
if 
  296@ == 12
goto_if_false @SWEET6_29567
292@ = 1.0
293@ = 1.0
294@ = 0.0
295@ = 0.0

:SWEET6_29567
if 
  296@ == 13
goto_if_false @SWEET6_29625
292@ = 1.0
293@ = 1.0
294@ = 0.0
295@ = 1.0

:SWEET6_29625
if 
  296@ == 14
goto_if_false @SWEET6_29683
292@ = 1.0
293@ = 1.0
294@ = 1.0
295@ = 0.0

:SWEET6_29683
if 
  296@ == 15
goto_if_false @SWEET6_29741
292@ = 1.0
293@ = 1.0
294@ = 1.0
295@ = 1.0

:SWEET6_29741
return 

:SWEET6_29743
if 
  300 > 136@
goto_if_false @SWEET6_29809
257@ = 1.0
260@ = 1.0
263@ = 0.0
266@ = 0.0
goto @SWEET6_29882

:SWEET6_29809
if 
  136@ > 500
goto_if_false @SWEET6_29842
136@ = 0
goto @SWEET6_29882

:SWEET6_29842
257@ = 0.0
260@ = 0.0
263@ = 0.0
266@ = 0.0

:SWEET6_29882
if 
  137@ > 2000
goto_if_false @SWEET6_29956
296@ = Math.RandomIntInRange(0, 16)
gosub @SWEET6_28813
set_lvar_float_to_lvar_float 258@ = 294@
set_lvar_float_to_lvar_float 261@ = 292@
set_lvar_float_to_lvar_float 264@ = 295@
set_lvar_float_to_lvar_float 267@ = 293@
137@ = 0

:SWEET6_29956
if 
  not Car.IsDead(72@)
goto_if_false @SWEET6_30098
if 
  Car.DoesHaveHydraulics(72@)
goto_if_false @SWEET6_30098
Car.ControlHydraulics(72@, 260@, 266@, 257@, 263@)
$x, $y, $z = Car.GetCoordinates(72@)
set_lvar_float_to_lvar_float 50@ = 141@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 148@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 272@
mult_float_lvar_by_float_lvar 51@ *= 272@
Car.ApplyForce(72@, 50@, 51@, 0.0, 0.0, 0.0, 0.0)

:SWEET6_30098
if 
  not Car.IsDead(75@)
goto_if_false @SWEET6_30240
if 
  Car.DoesHaveHydraulics(75@)
goto_if_false @SWEET6_30240
Car.ControlHydraulics(75@, 261@, 267@, 258@, 264@)
$x, $y, $z = Car.GetCoordinates(75@)
set_lvar_float_to_lvar_float 50@ = 144@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 151@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 272@
mult_float_lvar_by_float_lvar 51@ *= 272@
Car.ApplyForce(75@, 50@, 51@, 0.0, 0.0, 0.0, 0.0)

:SWEET6_30240
switch_start 39@ {numCases} 18 {hasDefaultCase} 0 {defaultLabel} @SWEET6_32585 {caseNum1} 0 {caseLabel1} @SWEET6_30433 {caseNum2} 1 {caseLabel2} @SWEET6_30553 {caseNum3} 2 {caseLabel3} @SWEET6_30673 {caseNum4} 3 {caseLabel4} @SWEET6_30789 {caseNum5} 4 {caseLabel5} @SWEET6_30905 {caseNum6} 5 {caseLabel6} @SWEET6_31020 {caseNum7} 6 {caseLabel7} @SWEET6_31136
switch_continued 7 {caseLabel1} @SWEET6_31252 {caseNum2} 8 {caseLabel2} @SWEET6_31368 {caseNum3} 9 {caseLabel3} @SWEET6_31484 {caseNum4} 10 {caseLabel4} @SWEET6_31604 {caseNum5} 11 {caseLabel5} @SWEET6_31787 {caseNum6} 12 {caseLabel6} @SWEET6_31903 {caseNum7} 13 {caseLabel7} @SWEET6_32019 {caseNum8} 14 {caseLabel8} @SWEET6_32135 {caseNum9} 15 {caseLabel9} @SWEET6_32251
switch_continued 16 {caseLabel1} @SWEET6_32367 {caseNum2} 17 {caseLabel2} @SWEET6_32476 {caseNum3} -1 {caseLabel3} @SWEET6_32585 {caseNum4} -1 {caseLabel4} @SWEET6_32585 {caseNum5} -1 {caseLabel5} @SWEET6_32585 {caseNum6} -1 {caseLabel6} @SWEET6_32585 {caseNum7} -1 {caseLabel7} @SWEET6_32585 {caseNum8} -1 {caseLabel8} @SWEET6_32585 {caseNum9} -1 {caseLabel9} @SWEET6_32585

:SWEET6_30433
if 
  not Char.IsDead(80@)
goto_if_false @SWEET6_30546
43@ = Char.GetScriptTaskStatus(80@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_30546
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(80@, 49@)
Sequence.Clear(49@)

:SWEET6_30546
goto @SWEET6_32585

:SWEET6_30553
if 
  not Char.IsDead(81@)
goto_if_false @SWEET6_30666
43@ = Char.GetScriptTaskStatus(81@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_30666
49@ = Sequence.Open()
Task.PlayAnim(-1, "F_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(81@, 49@)
Sequence.Clear(49@)

:SWEET6_30666
goto @SWEET6_32585

:SWEET6_30673
if 
  not Char.IsDead(82@)
goto_if_false @SWEET6_30782
43@ = Char.GetScriptTaskStatus(82@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_30782
49@ = Sequence.Open()
if 
  not Char.IsDead(83@)
goto_if_false @SWEET6_30757
Task.ChatWithChar(-1, 83@, True, 1)
goto @SWEET6_30764

:SWEET6_30757
Task.Pause(-1, 1000)

:SWEET6_30764
Sequence.Close(49@)
Char.PerformSequence(82@, 49@)
Sequence.Clear(49@)

:SWEET6_30782
goto @SWEET6_32585

:SWEET6_30789
if 
  not Char.IsDead(83@)
goto_if_false @SWEET6_30898
43@ = Char.GetScriptTaskStatus(83@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_30898
49@ = Sequence.Open()
if 
  not Char.IsDead(82@)
goto_if_false @SWEET6_30873
Task.ChatWithChar(-1, 82@, False, 1)
goto @SWEET6_30880

:SWEET6_30873
Task.Pause(-1, 1000)

:SWEET6_30880
Sequence.Close(49@)
Char.PerformSequence(83@, 49@)
Sequence.Clear(49@)

:SWEET6_30898
goto @SWEET6_32585

:SWEET6_30905
if 
  not Char.IsDead(84@)
goto_if_false @SWEET6_31013
43@ = Char.GetScriptTaskStatus(84@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31013
49@ = Sequence.Open()
Task.PlayAnim(-1, "CAR_HOOKERTALK", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(84@, 49@)
Sequence.Clear(49@)

:SWEET6_31013
goto @SWEET6_32585

:SWEET6_31020
if 
  not Char.IsDead(85@)
goto_if_false @SWEET6_31129
43@ = Char.GetScriptTaskStatus(85@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31129
49@ = Sequence.Open()
if 
  not Char.IsDead(86@)
goto_if_false @SWEET6_31104
Task.ChatWithChar(-1, 86@, False, 1)
goto @SWEET6_31111

:SWEET6_31104
Task.Pause(-1, 1000)

:SWEET6_31111
Sequence.Close(49@)
Char.PerformSequence(85@, 49@)
Sequence.Clear(49@)

:SWEET6_31129
goto @SWEET6_32585

:SWEET6_31136
if 
  not Char.IsDead(86@)
goto_if_false @SWEET6_31245
43@ = Char.GetScriptTaskStatus(86@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31245
49@ = Sequence.Open()
if 
  not Char.IsDead(85@)
goto_if_false @SWEET6_31220
Task.ChatWithChar(-1, 85@, True, 1)
goto @SWEET6_31227

:SWEET6_31220
Task.Pause(-1, 1000)

:SWEET6_31227
Sequence.Close(49@)
Char.PerformSequence(86@, 49@)
Sequence.Clear(49@)

:SWEET6_31245
goto @SWEET6_32585

:SWEET6_31252
if 
  not Char.IsDead(87@)
goto_if_false @SWEET6_31361
43@ = Char.GetScriptTaskStatus(87@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31361
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(87@, 49@)
Sequence.Clear(49@)

:SWEET6_31361
goto @SWEET6_32585

:SWEET6_31368
if 
  not Char.IsDead(88@)
goto_if_false @SWEET6_31477
43@ = Char.GetScriptTaskStatus(88@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31477
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(88@, 49@)
Sequence.Clear(49@)

:SWEET6_31477
goto @SWEET6_32585

:SWEET6_31484
if 
  not Char.IsDead(89@)
goto_if_false @SWEET6_31597
43@ = Char.GetScriptTaskStatus(89@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31597
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(89@, 49@)
Sequence.Clear(49@)

:SWEET6_31597
goto @SWEET6_32585

:SWEET6_31604
if 
  not Char.IsDead(90@)
goto_if_false @SWEET6_31780
43@ = Char.GetScriptTaskStatus(90@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31780
49@ = Sequence.Open()
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "FUCKU", "PED", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "WOMAN_IDLESTANCE", "PED", 4.0, False, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(90@, 49@)
Sequence.Clear(49@)

:SWEET6_31780
goto @SWEET6_32585

:SWEET6_31787
if 
  not Char.IsDead(91@)
goto_if_false @SWEET6_31896
43@ = Char.GetScriptTaskStatus(91@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31896
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(91@, 49@)
Sequence.Clear(49@)

:SWEET6_31896
goto @SWEET6_32585

:SWEET6_31903
if 
  not Char.IsDead(92@)
goto_if_false @SWEET6_32012
43@ = Char.GetScriptTaskStatus(92@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32012
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, True, True, False, -1)
Sequence.Close(49@)
Char.PerformSequence(92@, 49@)
Sequence.Clear(49@)

:SWEET6_32012
goto @SWEET6_32585

:SWEET6_32019
if 
  not Char.IsDead(93@)
goto_if_false @SWEET6_32128
43@ = Char.GetScriptTaskStatus(93@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32128
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(93@, 49@)
Sequence.Clear(49@)

:SWEET6_32128
goto @SWEET6_32585

:SWEET6_32135
if 
  not Char.IsDead(94@)
goto_if_false @SWEET6_32244
43@ = Char.GetScriptTaskStatus(94@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32244
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(94@, 49@)
Sequence.Clear(49@)

:SWEET6_32244
goto @SWEET6_32585

:SWEET6_32251
if 
  not Char.IsDead(95@)
goto_if_false @SWEET6_32360
43@ = Char.GetScriptTaskStatus(95@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32360
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(95@, 49@)
Sequence.Clear(49@)

:SWEET6_32360
goto @SWEET6_32585

:SWEET6_32367
if 
  not Char.IsDead(96@)
goto_if_false @SWEET6_32469
43@ = Char.GetScriptTaskStatus(96@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32469
49@ = Sequence.Open()
Task.PlayAnim(-1, "TAP_HAND", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(96@, 49@)
Sequence.Clear(49@)

:SWEET6_32469
goto @SWEET6_32585

:SWEET6_32476
if 
  not Char.IsDead(97@)
goto_if_false @SWEET6_32578
43@ = Char.GetScriptTaskStatus(97@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32578
49@ = Sequence.Open()
Task.PlayAnim(-1, "TAP_HAND", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(97@, 49@)
Sequence.Clear(49@)

:SWEET6_32578
goto @SWEET6_32585

:SWEET6_32585
return 

:SWEET6_32587
switch_start 39@ {numCases} 21 {hasDefaultCase} 0 {defaultLabel} @SWEET6_35244 {caseNum1} 0 {caseLabel1} @SWEET6_32780 {caseNum2} 1 {caseLabel2} @SWEET6_32900 {caseNum3} 2 {caseLabel3} @SWEET6_33016 {caseNum4} 3 {caseLabel4} @SWEET6_33132 {caseNum5} 4 {caseLabel5} @SWEET6_33252 {caseNum6} 5 {caseLabel6} @SWEET6_33372 {caseNum7} 6 {caseLabel7} @SWEET6_33488
switch_continued 7 {caseLabel1} @SWEET6_33608 {caseNum2} 8 {caseLabel2} @SWEET6_33724 {caseNum3} 9 {caseLabel3} @SWEET6_33840 {caseNum4} 10 {caseLabel4} @SWEET6_33960 {caseNum5} 11 {caseLabel5} @SWEET6_34076 {caseNum6} 12 {caseLabel6} @SWEET6_34196 {caseNum7} 13 {caseLabel7} @SWEET6_34316 {caseNum8} 14 {caseLabel8} @SWEET6_34432 {caseNum9} 15 {caseLabel9} @SWEET6_34548
switch_continued 16 {caseLabel1} @SWEET6_34664 {caseNum2} 17 {caseLabel2} @SWEET6_34780 {caseNum3} 18 {caseLabel3} @SWEET6_34896 {caseNum4} 19 {caseLabel4} @SWEET6_35012 {caseNum5} 20 {caseLabel5} @SWEET6_35128 {caseNum6} -1 {caseLabel6} @SWEET6_35244 {caseNum7} -1 {caseLabel7} @SWEET6_35244 {caseNum8} -1 {caseLabel8} @SWEET6_35244 {caseNum9} -1 {caseLabel9} @SWEET6_35244

:SWEET6_32780
if 
  not Char.IsDead(80@)
goto_if_false @SWEET6_32893
43@ = Char.GetScriptTaskStatus(80@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32893
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(80@, 49@)
Sequence.Clear(49@)

:SWEET6_32893
goto @SWEET6_35244

:SWEET6_32900
if 
  not Char.IsDead(81@)
goto_if_false @SWEET6_33009
43@ = Char.GetScriptTaskStatus(81@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33009
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(81@, 49@)
Sequence.Clear(49@)

:SWEET6_33009
goto @SWEET6_35244

:SWEET6_33016
if 
  not Char.IsDead(82@)
goto_if_false @SWEET6_33125
43@ = Char.GetScriptTaskStatus(82@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33125
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(82@, 49@)
Sequence.Clear(49@)

:SWEET6_33125
goto @SWEET6_35244

:SWEET6_33132
if 
  not Char.IsDead(83@)
goto_if_false @SWEET6_33245
43@ = Char.GetScriptTaskStatus(83@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33245
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKSTND_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(83@, 49@)
Sequence.Clear(49@)

:SWEET6_33245
goto @SWEET6_35244

:SWEET6_33252
if 
  not Char.IsDead(84@)
goto_if_false @SWEET6_33365
43@ = Char.GetScriptTaskStatus(84@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33365
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKSTND_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(84@, 49@)
Sequence.Clear(49@)

:SWEET6_33365
goto @SWEET6_35244

:SWEET6_33372
if 
  not Char.IsDead(85@)
goto_if_false @SWEET6_33481
43@ = Char.GetScriptTaskStatus(85@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33481
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(85@, 49@)
Sequence.Clear(49@)

:SWEET6_33481
goto @SWEET6_35244

:SWEET6_33488
if 
  not Char.IsDead(86@)
goto_if_false @SWEET6_33601
43@ = Char.GetScriptTaskStatus(86@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33601
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKSTND_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(86@, 49@)
Sequence.Clear(49@)

:SWEET6_33601
goto @SWEET6_35244

:SWEET6_33608
if 
  not Char.IsDead(87@)
goto_if_false @SWEET6_33717
43@ = Char.GetScriptTaskStatus(87@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33717
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(87@, 49@)
Sequence.Clear(49@)

:SWEET6_33717
goto @SWEET6_35244

:SWEET6_33724
if 
  not Char.IsDead(88@)
goto_if_false @SWEET6_33833
43@ = Char.GetScriptTaskStatus(88@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33833
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(88@, 49@)
Sequence.Clear(49@)

:SWEET6_33833
goto @SWEET6_35244

:SWEET6_33840
if 
  not Char.IsDead(89@)
goto_if_false @SWEET6_33953
43@ = Char.GetScriptTaskStatus(89@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33953
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(89@, 49@)
Sequence.Clear(49@)

:SWEET6_33953
goto @SWEET6_35244

:SWEET6_33960
if 
  not Char.IsDead(90@)
goto_if_false @SWEET6_34069
43@ = Char.GetScriptTaskStatus(90@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34069
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(90@, 49@)
Sequence.Clear(49@)

:SWEET6_34069
goto @SWEET6_35244

:SWEET6_34076
if 
  not Char.IsDead(91@)
goto_if_false @SWEET6_34189
43@ = Char.GetScriptTaskStatus(91@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34189
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKLEAN_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(91@, 49@)
Sequence.Clear(49@)

:SWEET6_34189
goto @SWEET6_35244

:SWEET6_34196
if 
  not Char.IsDead(92@)
goto_if_false @SWEET6_34309
43@ = Char.GetScriptTaskStatus(92@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34309
49@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKSTND_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(92@, 49@)
Sequence.Clear(49@)

:SWEET6_34309
goto @SWEET6_35244

:SWEET6_34316
if 
  not Char.IsDead(93@)
goto_if_false @SWEET6_34425
43@ = Char.GetScriptTaskStatus(93@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34425
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(93@, 49@)
Sequence.Clear(49@)

:SWEET6_34425
goto @SWEET6_35244

:SWEET6_34432
if 
  not Char.IsDead(94@)
goto_if_false @SWEET6_34541
43@ = Char.GetScriptTaskStatus(94@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34541
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_B_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(94@, 49@)
Sequence.Clear(49@)

:SWEET6_34541
goto @SWEET6_35244

:SWEET6_34548
if 
  not Char.IsDead(95@)
goto_if_false @SWEET6_34657
43@ = Char.GetScriptTaskStatus(95@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34657
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(95@, 49@)
Sequence.Clear(49@)

:SWEET6_34657
goto @SWEET6_35244

:SWEET6_34664
if 
  not Char.IsDead(96@)
goto_if_false @SWEET6_34773
43@ = Char.GetScriptTaskStatus(96@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34773
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_C_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(96@, 49@)
Sequence.Clear(49@)

:SWEET6_34773
goto @SWEET6_35244

:SWEET6_34780
if 
  not Char.IsDead(97@)
goto_if_false @SWEET6_34889
43@ = Char.GetScriptTaskStatus(97@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34889
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(97@, 49@)
Sequence.Clear(49@)

:SWEET6_34889
goto @SWEET6_35244

:SWEET6_34896
if 
  not Char.IsDead(98@)
goto_if_false @SWEET6_35005
43@ = Char.GetScriptTaskStatus(98@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_35005
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(98@, 49@)
Sequence.Clear(49@)

:SWEET6_35005
goto @SWEET6_35244

:SWEET6_35012
if 
  not Char.IsDead(99@)
goto_if_false @SWEET6_35121
43@ = Char.GetScriptTaskStatus(99@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_35121
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(99@, 49@)
Sequence.Clear(49@)

:SWEET6_35121
goto @SWEET6_35244

:SWEET6_35128
if 
  not Char.IsDead(100@)
goto_if_false @SWEET6_35237
43@ = Char.GetScriptTaskStatus(100@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_35237
49@ = Sequence.Open()
Task.PlayAnim(-1, "RAP_A_LOOP", "LOWRIDER", 4.0, True, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence(100@, 49@)
Sequence.Clear(49@)

:SWEET6_35237
goto @SWEET6_35244

:SWEET6_35244
return 
Text.SetScale(0.9, 2.4)
Text.SetColor(128, 148, 178, 255)
Text.SetCenter(True)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 
Text.SetScale(0.9, 2.4)
Text.SetColor(81, 25, 29, 255)
Text.SetCenter(True)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 
Text.SetScale(0.54, 1.44)
Text.SetColor(128, 148, 178, 255)
Text.SetJustify(True)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 

:SWEET6_35372
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @SWEET6_35475 {caseNum1} 3 {caseLabel1} @SWEET6_35435 {caseNum2} -1 {caseLabel2} @SWEET6_35515 {caseNum3} -1 {caseLabel3} @SWEET6_35515 {caseNum4} -1 {caseLabel4} @SWEET6_35515 {caseNum5} -1 {caseLabel5} @SWEET6_35515 {caseNum6} -1 {caseLabel6} @SWEET6_35515 {caseNum7} -1 {caseLabel7} @SWEET6_35515

:SWEET6_35435
Hud.DrawWindow(29.0, 220.0, 173.0, 409.0, 'BJ_TITL', 2)
goto @SWEET6_35515

:SWEET6_35475
Hud.DrawWindow(29.0, 220.0, 157.0, 409.0, 'BJ_TITL', 2)
goto @SWEET6_35515

:SWEET6_35515
gosub @SWEET6_35772
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 240.0, 'WOF_04')
gosub @SWEET6_35772
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber(36.0, 260.0, 'DOLLAR', 276@)
gosub @SWEET6_35772
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 290.0, 'BJ_02')
gosub @SWEET6_35772
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber(36.0, 310.0, 'DOLLAR', 274@)
gosub @SWEET6_35772
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 340.0, 'BJ_03')
gosub @SWEET6_35772
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber(36.0, 360.0, 'DOLLAR', 275@)
return 

:SWEET6_35772
Text.SetColor(180, 180, 180, 255)
Text.SetScale(0.4714, 2.5077)
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(False)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
return 

:SWEET6_35827
34@ += 1
35@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
return 

:SWEET6_35885
Blip.Remove($mod_garage_blip)
$stop_gargae_for_neil = 1
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Garage.Deactivate('MODLAST')
Garage.Deactivate('BODLAWN')
return 

:SWEET6_35937
Blip.Remove($mod_garage_blip)
$mod_garage_blip = Blip.AddShortRangeSpriteForCoord(2644.252, -2028.246, 12.5547, RadarSprite.ModGarage)
Blip.Remove($mod_garage1)
$mod_garage1 = Blip.AddShortRangeSpriteForCoord(1043.4, -1025.3, 34.4, RadarSprite.ModGarage)
Blip.Remove($sweet_contact_blip)
Garage.Activate('MODLAST')
Garage.Activate('BODLAWN')
276@ *= 2
Text.PrintWithNumberBig('M_PASS', 276@, 5000, TextStyle.Middle)
Player.AddScore($player1, 276@)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Stat.PlayerMadeProgress(1)
Player.ClearWantedLevel($player1)
$flag_sweet_mission_counter += 1
$lowrider_minigame_unlocked = 1
$stop_gargae_for_neil = 0
Stat.RegisterMissionPassed('SWEET_6')
CarGenerator.Switch($dirtrack_reward_cargen, 101)
return 

:SWEET6_36111
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Zone.SwitchAudio('LOWRIDE', False)
if 
  Car.DoesExist(71@)
goto_if_false @SWEET6_36263
if 
  not Car.IsDead(71@)
goto_if_false @SWEET6_36263
Car.SetStatus(71@, EntityStatus.Abandoned)
Car.FreezePosition(71@, False)
Car.SetProofs(71@, False, False, False, False, False)
if 
  Player.IsPlaying($player1)
goto_if_false @SWEET6_36224
Player.ApplyBrakesToCar($player1, False)

:SWEET6_36224
Car.LockDoors(71@, CarLock.Unlocked)
if 
  Char.IsInCar($scplayer, 71@)
goto_if_false @SWEET6_36263
Char.ClearTasksImmediately($scplayer)
Char.WarpIntoCar($scplayer, 71@)

:SWEET6_36263
43@ = 0

:SWEET6_36270
if 
  7 > 43@
goto_if_false @SWEET6_36454
if 
  Car.DoesExist(72@(43@,7i))
goto_if_false @SWEET6_36440
if 
  not Car.IsDead(72@(43@,7i))
goto_if_false @SWEET6_36431
if or
  43@ == 0
  43@ == 3
  43@ == 4
goto_if_false @SWEET6_36409
if 
  Car.DoesHaveHydraulics(72@(43@,7i))
goto_if_false @SWEET6_36409
Car.ControlHydraulics(72@(43@,7i), 0.0, 0.0, 0.0, 0.0)

:SWEET6_36409
Car.SetStatus(72@(43@,7i), EntityStatus.Simple)
Car.SetHydraulics(72@(43@,7i), False)

:SWEET6_36431
Car.MarkAsNoLongerNeeded(72@(43@,7i))

:SWEET6_36440
43@ += 1
goto @SWEET6_36270

:SWEET6_36454
43@ = 0

:SWEET6_36461
if 
  22 > 43@
goto_if_false @SWEET6_36542
if 
  Char.DoesExist(80@(43@,22i))
goto_if_false @SWEET6_36528
if 
  not Char.IsDead(80@(43@,22i))
goto_if_false @SWEET6_36519

:SWEET6_36519
Char.MarkAsNoLongerNeeded(80@(43@,22i))

:SWEET6_36528
43@ += 1
goto @SWEET6_36461

:SWEET6_36542
if 
  Char.DoesExist(79@)
goto_if_false @SWEET6_36563
Char.MarkAsNoLongerNeeded(79@)

:SWEET6_36563
if 
  Char.DoesExist(102@)
goto_if_false @SWEET6_36584
Char.MarkAsNoLongerNeeded(102@)

:SWEET6_36584
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.MarkModelAsNoLongerNeeded(567)
Streaming.MarkModelAsNoLongerNeeded(114)
Streaming.MarkModelAsNoLongerNeeded(115)
Streaming.MarkModelAsNoLongerNeeded(116)
Streaming.MarkModelAsNoLongerNeeded(63)
Streaming.MarkModelAsNoLongerNeeded(41)
Streaming.MarkModelAsNoLongerNeeded(567)
Streaming.MarkModelAsNoLongerNeeded(534)
Streaming.RemoveAnimation("CAR")
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("LOWRIDER")
Blip.Remove(105@)
Blip.Remove(106@)
Hud.ClearCounter($lowrider_pscore)
Hud.ClearCounter($lowrider_oscore)
Hud.DisplayRadar(True)
43@ = Audio.GetBeatTrackStatus()
if 
  not is_int_lvar_equal_to_constant 43@ == 0
goto_if_false @SWEET6_36700
Audio.StopBeatTrack

:SWEET6_36700
CarGenerator.DontSuppressCarModel(567)
$bd_terminate_script = 1
DecisionMaker.Remove(66@)
DecisionMaker.Remove(67@)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 20---------------
// Originally: Los Sepulcros

:SWEET7
script_name 'SWEET7'
gosub @SWEET7_54
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET7_38
gosub @SWEET7_32138

:SWEET7_38
gosub @SWEET7_32237
terminate_this_script 
546@ = 0

:SWEET7_54
Stat.RegisterMissionGiven
Text.LoadMissionText('SWEET7')
$onmission = 1
wait 0
Player.SetControl($player1, False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)
Weather.ForceNow(WeatherType.SunnyLa)

:SWEET7_104
if 
  Camera.GetFadingStatus
goto_if_false @SWEET7_128
wait 0
goto @SWEET7_104

:SWEET7_128
Cutscene.Load('SWEET7A')

:SWEET7_139
if 
  not Cutscene.HasLoaded
goto_if_false @SWEET7_163
wait 0
goto @SWEET7_139

:SWEET7_163
World.ClearArea(2508.975, -1671.537, 12.3853, 500.0, True)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SWEET7_196
if 
  not Cutscene.HasFinished
goto_if_false @SWEET7_220
wait 0
goto @SWEET7_196

:SWEET7_220
Camera.DoFade(0, Fade.Out)

:SWEET7_226
if 
  Camera.GetFadingStatus
goto_if_false @SWEET7_250
wait 0
goto @SWEET7_226

:SWEET7_250
Cutscene.Clear
Weather.Release
wait 0
Char.SetCoordinates($scplayer, 2515.207, -1674.086, 12.7552)
Char.SetHeading($scplayer, 54.1779)
Streaming.LoadSpecialCharacter(1, 'SWEET')
Streaming.RequestModel(492)
Streaming.RequestModel(68)
Streaming.RequestModel(12)
Streaming.RequestModel(445)
Streaming.RequestModel(543)
Streaming.RequestModel(352)
Streaming.RequestModel(346)
Streaming.RequestModel(349)
Streaming.RequestModel(104)
Streaming.RequestModel(103)
Streaming.RequestModel(102)
Streaming.RequestModel(107)
Streaming.RequestModel(106)
Streaming.RequestModel(105)
Streaming.RequestAnimation("GRAVEYARD")
Streaming.RequestAnimation("SMOKING")
Streaming.LoadAllModelsNow

:SWEET7_389
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(68)
  not Streaming.HasModelLoaded(12)
  not Streaming.HasModelLoaded(445)
  not Streaming.HasModelLoaded(543)
goto_if_false @SWEET7_433
wait 0
goto @SWEET7_389

:SWEET7_433
if or
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(492)
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(349)
goto_if_false @SWEET7_475
wait 0
goto @SWEET7_433

:SWEET7_475
if or
  not Streaming.HasModelLoaded(104)
  not Streaming.HasModelLoaded(103)
  not Streaming.HasModelLoaded(102)
goto_if_false @SWEET7_509
wait 0
goto @SWEET7_475

:SWEET7_509
if or
  not Streaming.HasModelLoaded(107)
  not Streaming.HasModelLoaded(106)
  not Streaming.HasModelLoaded(105)
  not Streaming.HasAnimationLoaded("GRAVEYARD")
  not Streaming.HasAnimationLoaded("SMOKING")
goto_if_false @SWEET7_567
wait 0
goto @SWEET7_509

:SWEET7_567
wait 500
302@ = 0
286@ = 0
285@ = 0
278@ = 0
279@ = 0
280@ = 0
276@ = 0
277@ = 0
$sw7_kanefuckedhealth = 0
275@ = 0
73@ = 0
74@ = 0
274@ = 0
133@ = 0
38@ = 0
37@ = 0
53@ = 0
139@ = 0
54@ = 0
55@ = -13
61@ = 0
56@ = 0
57@ = 0
58@ = 0
62@ = 0
63@ = 0
64@ = 0
303@ = 0
69@ = 0
71@ = 0
132@ = 0
123@ = 0
135@ = 806.4608
136@ = -1129.844
137@ = 952.2434
138@ = -1051.841
141@ = 931.9752
151@ = -1062.447
161@ = 23.6757
171@ = 921.2714
181@ = -1064.736
191@ = 23.327
201@ = 920.3427
211@ = -1061.403
221@ = 23.6757
231@ = 921.269
241@ = -1081.521
251@ = 23.623
142@ = 922.6375
152@ = -1122.282
162@ = 23.0028
143@ = 899.537
153@ = -1114.694
163@ = 23.232
172@ = 913.2869
182@ = -1092.168
192@ = 23.1942
202@ = 911.2869
212@ = -1092.168
222@ = 22.1942
232@ = 914.2869
242@ = -1092.168
252@ = 25.1942
173@ = 886.0813
183@ = -1114.899
193@ = 22.9879
203@ = 883.5623
213@ = -1112.94
223@ = 23.0419
233@ = 881.4856
243@ = -1116.985
253@ = 23.0419
144@ = 907.4198
154@ = -1101.579
164@ = 23.2969
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
$sw7_kanefuckedhealth = 240000
Path.SwitchRoadsOff(2297.038, -1664.6, 10.8474, 2324.865, -1652.124, 14.8382)
Path.SwitchPedRoadsOff(2297.038, -1664.6, 10.8474, 2324.865, -1652.124, 14.8382)
35@ = Zone.GetGangStrength('GAN1', GangType.Grove)
36@ = Zone.GetGangStrength('GAN2', GangType.Grove)
Zone.SetGangStrength('GAN1', GangType.Grove, 0)
Zone.SetGangStrength('GAN2', GangType.Grove, 0)
53@ = 0
287@ = Game.GetMaxWantedLevel()
World.ClearArea(954.4976, -1103.594, 22.8015, 10.0, True)
Car.CustomPlateForNextCar(492, "GROVE4L_")
World.ClearArea(2508.084, -1671.19, 12.3794, 500.0, True)
78@ = Car.Create(492, 2508.084, -1671.19, 12.3794)
Car.SetHeading(78@, 354.4729)
Car.SetCanBurstTires(78@, False)
Car.ChangeColor(78@, 59, 34)
Car.OpenDoor(78@, CarDoor.RightFrontDoor)
79@ = Car.Create(445, 925.7109, -1122.968, 22.9909)
Car.SetHeading(79@, 330.8056)
Car.ChangeColor(79@, 59, 34)
Car.SetCanBurstTires(79@, False)
Car.SetProofs(79@, False, False, True, False, False)
Car.SetProofs(79@, True, True, True, True, True)
Car.LockDoors(79@, CarLock.Locked)
Camera.SetFadingColor(0, 0, 0)
Camera.SetBehindPlayer
92@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
93@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
94@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
95@ = DecisionMakerChar.Load(DecisionMakerType.Weak)
105@ = Char.Create(PedType.Mission1, 102, 885.1994, -1075.546, 23.3273)
Char.SetDecisionMaker(105@, 92@)
Char.SetHeading(105@, 170.0)
Char.SetAccuracy(105@, 90)
550@ = Char.GetHealth(105@)
Char.SetHealth(105@, 120)
107@ = Char.Create(PedType.Mission1, 103, 883.2532, -1075.496, 23.3273)
Char.SetDecisionMaker(107@, 92@)
Char.SetHeading(107@, 175.0)
Char.SetAccuracy(107@, 90)
Char.SetHealth(107@, 120)
109@ = Char.Create(PedType.Mission1, 103, 881.4261, -1077.114, 23.3203)
Char.SetDecisionMaker(109@, 92@)
Char.SetHeading(109@, 275.0)
Char.SetAccuracy(109@, 90)
Char.SetHealth(109@, 120)
if 
  not Char.IsDead(105@)
goto_if_false @SWEET7_1917
Char.GiveWeapon(105@, WeaponType.Pistol, 2000)
Task.PlayAnim(105@, "MRNM_LOOP", "GRAVEYARD", 4.0, True, False, False, False, -1)

:SWEET7_1917
if 
  not Char.IsDead(107@)
goto_if_false @SWEET7_1943
Char.GiveWeapon(107@, WeaponType.Pistol, 2000)

:SWEET7_1943
if 
  not Char.IsDead(109@)
goto_if_false @SWEET7_2011
Char.GiveWeapon(109@, WeaponType.Pistol, 2000)
Task.PlayAnim(109@, "MRNM_LOOP", "GRAVEYARD", 10.0, True, False, False, False, -1)

:SWEET7_2011
134@ = Object.CreateNoOffset(#CASKET_LAW, 885.6575, -1077.412, 23.3188)
96@ = Char.Create(PedType.CivMale, 68, 886.6391, -1079.179, 23.3136)
Task.PlayAnim(96@, "PRST_LOOPA", "GRAVEYARD", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(96@, 93@)
Char.SetHeading(96@, 24.0)
Streaming.MarkModelAsNoLongerNeeded(68)
97@ = Char.Create(PedType.CivFemale, 12, 884.9761, -1079.983, 23.3133)
Task.PlayAnim(97@, "MRNF_LOOP", "GRAVEYARD", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(97@, 93@)
Char.SetHeading(97@, 4.0)
Streaming.MarkModelAsNoLongerNeeded(12)
World.ClearArea(2297.971, -1628.015, 13.7028, 20.0, True)
263@ = Char.Create(PedType.Gang2, 105, 2509.418, -1663.134, 12.5872)
Char.SetHeading(263@, 214.5012)
Char.SetDecisionMaker(263@, 93@)
Char.SetSuffersCriticalHits(263@, False)
Char.SetCantBeDraggedOut(263@, True)
Char.SetStayInCarWhenJacked(263@, True)
Char.SetGetOutUpsideDownCar(263@, False)
Task.PlayAnim(263@, "M_SMKLEAN_LOOP", "SMOKING", 4.0, True, False, False, False, -1)
264@ = Char.Create(PedType.Gang2, 106, 2504.471, -1675.764, 12.3709)
Char.SetHeading(264@, 277.5012)
Char.SetDecisionMaker(264@, 93@)
Char.SetSuffersCriticalHits(264@, False)
Char.SetCantBeDraggedOut(264@, True)
Char.SetStayInCarWhenJacked(264@, True)
Char.SetGetOutUpsideDownCar(264@, False)
Task.PlayAnim(264@, "M_SMKSTND_LOOP", "SMOKING", 4.0, True, False, False, False, -1)
Path.SwitchRoadsOff(135@, 136@, 0.0, 137@, 138@, 60.0)
Path.SwitchPedRoadsOff(135@, 136@, 0.0, 137@, 138@, 60.0)
281@ = Stat.GetInt(StatId.Respect)
301@ = Game.FindMaxNumberOfGroupMembers()
if 
  301@ > 1
goto_if_false @SWEET7_2695
55@ = 3
$sweet = Char.Create(PedType.Mission2, 290, 2509.59, -1672.237, 12.3934)
Char.SetHeading($sweet, 239.0)
if 
  not Car.IsDead(78@)
goto_if_false @SWEET7_2614
Car.LockDoors(78@, CarLock.LockoutPlayerOnly)
Car.FreezePosition(78@, True)

:SWEET7_2614
Char.GiveWeapon($sweet, WeaponType.MicroUzi, 99999)
Char.SetNeverTargeted($sweet, True)
Char.SetSuffersCriticalHits($sweet, False)
Char.SetHealth($sweet, 1000)
Char.SetMaxHealth($sweet, 1000)
Char.SetCantBeDraggedOut($sweet, True)
Char.SetStayInCarWhenJacked($sweet, True)
Char.SetGetOutUpsideDownCar($sweet, False)
Audio.SetRadioChannel(RadioChannel.CSR)
TIMERA = 0
goto @SWEET7_3126

:SWEET7_2695
$sweet = Char.Create(PedType.Mission2, 290, 2511.343, -1674.936, 12.5473)
if 
  not Car.IsDead(78@)
goto_if_false @SWEET7_2750
Car.LockDoors(78@, CarLock.LockoutPlayerOnly)
Car.FreezePosition(78@, True)

:SWEET7_2750
Char.GiveWeapon($sweet, WeaponType.MicroUzi, 99999)
Char.SetNeverTargeted($sweet, True)
Char.SetSuffersCriticalHits($sweet, False)
Char.SetHealth($sweet, 1000)
Char.SetMaxHealth($sweet, 1000)
Char.SetCantBeDraggedOut($sweet, True)
Char.SetStayInCarWhenJacked($sweet, True)
Char.SetGetOutUpsideDownCar($sweet, False)
288@ = Car.Create(543, 2491.912, -1681.372, 12.345)
Car.SetHeading(288@, 87.9)
Car.ChangeColor(288@, 113, 8)
289@ = Char.Create(PedType.Gang1, 102, 2262.797, -1348.54, 22.985)
Char.SetHeading(289@, 312.0)
Char.GiveWeapon(289@, WeaponType.MicroUzi, 2000)
Char.SetDecisionMaker(289@, 93@)
290@ = Char.Create(PedType.Gang1, 103, 2263.582, -1346.651, 22.9838)
Char.SetHeading(290@, 140.0)
Char.GiveWeapon(290@, WeaponType.Pistol, 2000)
Char.SetDecisionMaker(290@, 93@)
Task.ChatWithChar(289@, 290@, True, 1)
Task.ChatWithChar(290@, 289@, False, 1)
291@ = Char.Create(PedType.Gang1, 104, 2261.85, -1345.101, 22.9864)
Char.SetHeading(291@, 224.0)
Char.GiveWeapon(291@, WeaponType.MicroUzi, 2000)
Char.SetDecisionMaker(291@, 93@)
Task.PlayAnim(291@, "MRNM_LOOP", "GRAVEYARD", 10.0, True, False, False, False, -1)
Streaming.UnloadSpecialCharacter(1)
292@ = Blip.AddForChar(289@)
293@ = Blip.AddForChar(290@)
294@ = Blip.AddForChar(291@)
55@ = 0
282@ = -10
TIMERB = 0

:SWEET7_3126
Task.TurnCharToFaceChar($scplayer, $sweet)
TIMERA = 0

:SWEET7_3141
if 
  2000 > TIMERA
goto_if_false @SWEET7_3171
wait 0
goto @SWEET7_3141

:SWEET7_3171
Streaming.MarkModelAsNoLongerNeeded(543)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
World.ClearArea(2508.16, -1666.47, 13.0, 10.0, True)
Camera.DoFade(1000, Fade.In)
260@ = Player.GetGroup($player1)
Game.SetRelationship(RelationshipType.Respect, PedType.Gang2, PedType.Player1)
Player.SetGroupRecruitment($player1, False)
Group.SetFollowStatus(260@, True)
if 
  274@ == 13
goto_if_false @SWEET7_3326
40@ = Blip.AddForChar($scplayer)
78@ = Car.Create(492, 2508.975, -1671.537, 12.3853)
43@ = Blip.AddForCar(78@)
98@ = Char.Create(PedType.Mission1, 102, 885.1994, -1075.546, 23.3273)

:SWEET7_3326
304@ = 0
532@ = 1
533@ = 2
534@ = 0
535@ = 1
536@ = 0
537@ = 0
set_lvar_text_label 312@s = 'SWE7_AA'
set_lvar_text_label 314@s = 'SWE7_AB'
set_lvar_text_label 316@s = 'SWE7_AC'
set_lvar_text_label 318@s = 'SWE7_AD'
set_lvar_text_label 320@s = 'SWE7_AE'
set_lvar_text_label 322@s = 'SWE7_AF'
set_lvar_text_label 324@s = 'SWE7_AG'
set_lvar_text_label 326@s = 'SWE7_AH'
set_lvar_text_label 328@s = 'SWE7_BA'
set_lvar_text_label 330@s = 'SWE7_BB'
set_lvar_text_label 332@s = 'SWE7_BC'
set_lvar_text_label 334@s = 'SWE7_BD'
set_lvar_text_label 336@s = 'SWE7_BE'
set_lvar_text_label 338@s = 'SWE7_CA'
set_lvar_text_label 340@s = 'SWE7_CB'
set_lvar_text_label 342@s = 'SWE7_CC'
set_lvar_text_label 344@s = 'SWE7_DA'
set_lvar_text_label 346@s = 'SWE7_DB'
set_lvar_text_label 348@s = 'SWE7_DC'
set_lvar_text_label 350@s = 'SWE7_DD'
set_lvar_text_label 352@s = 'SWE7_DE'
set_lvar_text_label 354@s = 'SWE7_EA'
set_lvar_text_label 356@s = 'SWE7_EB'
set_lvar_text_label 358@s = 'SWE7_EC'
set_lvar_text_label 360@s = 'SWE7_ED'
set_lvar_text_label 362@s = 'SWE7_EE'
set_lvar_text_label 364@s = 'SWE7_EF'
set_lvar_text_label 366@s = 'SWE7_EG'
set_lvar_text_label 368@s = 'SWE7_EH'
set_lvar_text_label 370@s = 'SWE7_EJ'
set_lvar_text_label 372@s = 'SWE7_EK'
set_lvar_text_label 374@s = 'SWE7_FA'
set_lvar_text_label 376@s = 'SWE7_FB'
set_lvar_text_label 378@s = 'SWE7_GA'
set_lvar_text_label 380@s = 'SWE7_GB'
set_lvar_text_label 382@s = 'SWE7_GC'
set_lvar_text_label 384@s = 'SWE7_HA'
set_lvar_text_label 386@s = 'SWE7_HB'
set_lvar_text_label 388@s = 'SWE7_HC'
set_lvar_text_label 390@s = 'SWE7_JA'
set_lvar_text_label 392@s = 'SWE7_JB'
set_lvar_text_label 394@s = 'SWE7_JC'
set_lvar_text_label 396@s = 'SWE7_KA'
set_lvar_text_label 398@s = 'SWE7_KB'
set_lvar_text_label 400@s = 'SWE7_KC'
set_lvar_text_label 402@s = 'SWE7_LA'
set_lvar_text_label 404@s = 'SWE7_LB'
set_lvar_text_label 406@s = 'SWE7_LC'
set_lvar_text_label 408@s = 'SWE7_MA'
set_lvar_text_label 410@s = 'SWE7_MB'
set_lvar_text_label 412@s = 'SWE7_MC'
set_lvar_text_label 414@s = 'SWE7_MD'
set_lvar_text_label 416@s = 'SWE7_NA'
set_lvar_text_label 418@s = 'SWE7_NB'
set_lvar_text_label 420@s = 'SWE7_OA'
set_lvar_text_label 422@s = 'SWE7_OB'
set_lvar_text_label 424@s = 'SWE7_PA'
set_lvar_text_label 426@s = 'SWE7_PB'
set_lvar_text_label 428@s = 'SWE7_PC'
set_lvar_text_label 430@s = 'SWE7_PD'
set_lvar_text_label 432@s = 'SWE7_QA'
set_lvar_text_label 434@s = 'SWE7_QB'
set_lvar_text_label 436@s = 'SWE7_QC'
set_lvar_text_label 438@s = 'SWE7_RA'
set_lvar_text_label 440@s = 'SWE7_RB'
set_lvar_text_label 442@s = 'SWE7_RC'
set_lvar_text_label 444@s = 'SWE7_SA'
set_lvar_text_label 446@s = 'SWE7_SB'
set_lvar_text_label 448@s = 'SWE7_SC'
set_lvar_text_label 450@s = 'SWE7_TA'
set_lvar_text_label 452@s = 'SWE7_TB'
set_lvar_text_label 454@s = 'SWE7_TC'
set_lvar_int_to_constant 459@ = 15200
set_lvar_int_to_constant 460@ = 15267
set_lvar_int_to_constant 461@ = 15201
set_lvar_int_to_constant 462@ = 15202
set_lvar_int_to_constant 463@ = 15268
set_lvar_int_to_constant 464@ = 15203
set_lvar_int_to_constant 465@ = 15204
set_lvar_int_to_constant 466@ = 15205
set_lvar_int_to_constant 467@ = 15206
set_lvar_int_to_constant 468@ = 15269
set_lvar_int_to_constant 469@ = 15207
set_lvar_int_to_constant 470@ = 15208
set_lvar_int_to_constant 471@ = 15270
set_lvar_int_to_constant 472@ = 15209
set_lvar_int_to_constant 473@ = 15210
set_lvar_int_to_constant 474@ = 15211
set_lvar_int_to_constant 475@ = 15212
set_lvar_int_to_constant 476@ = 15213
set_lvar_int_to_constant 477@ = 15214
set_lvar_int_to_constant 478@ = 15215
set_lvar_int_to_constant 479@ = 15216
set_lvar_int_to_constant 480@ = 15217
set_lvar_int_to_constant 481@ = 15218
set_lvar_int_to_constant 482@ = 15219
set_lvar_int_to_constant 483@ = 15220
set_lvar_int_to_constant 484@ = 15221
set_lvar_int_to_constant 485@ = 15222
set_lvar_int_to_constant 486@ = 15223
set_lvar_int_to_constant 487@ = 15224
set_lvar_int_to_constant 488@ = 15225
set_lvar_int_to_constant 489@ = 15226
set_lvar_int_to_constant 490@ = 15227
set_lvar_int_to_constant 491@ = 15228
set_lvar_int_to_constant 492@ = 15229
set_lvar_int_to_constant 493@ = 15271
set_lvar_int_to_constant 494@ = 15230
set_lvar_int_to_constant 495@ = 15231
set_lvar_int_to_constant 496@ = 15232
set_lvar_int_to_constant 497@ = 15233
set_lvar_int_to_constant 498@ = 15234
set_lvar_int_to_constant 499@ = 15235
set_lvar_int_to_constant 500@ = 15236
set_lvar_int_to_constant 501@ = 15237
set_lvar_int_to_constant 502@ = 15238
set_lvar_int_to_constant 503@ = 15239
set_lvar_int_to_constant 504@ = 15240
set_lvar_int_to_constant 505@ = 15241
set_lvar_int_to_constant 506@ = 15242
set_lvar_int_to_constant 507@ = 15243
set_lvar_int_to_constant 508@ = 15244
set_lvar_int_to_constant 509@ = 15245
set_lvar_int_to_constant 510@ = 15246
set_lvar_int_to_constant 511@ = 15247
set_lvar_int_to_constant 512@ = 15248
set_lvar_int_to_constant 513@ = 15249
set_lvar_int_to_constant 514@ = 15250
set_lvar_int_to_constant 515@ = 15251
set_lvar_int_to_constant 516@ = 15252
set_lvar_int_to_constant 517@ = 15253
set_lvar_int_to_constant 518@ = 15254
set_lvar_int_to_constant 519@ = 15255
set_lvar_int_to_constant 520@ = 15256
set_lvar_int_to_constant 521@ = 15257
set_lvar_int_to_constant 522@ = 15258
set_lvar_int_to_constant 523@ = 15259
set_lvar_int_to_constant 524@ = 15260
set_lvar_int_to_constant 525@ = 15261
set_lvar_int_to_constant 526@ = 15262
set_lvar_int_to_constant 527@ = 15263
set_lvar_int_to_constant 528@ = 15264
set_lvar_int_to_constant 529@ = 15265
set_lvar_int_to_constant 530@ = 15266

:SWEET7_4959
wait 0
if 
  304@ == 0
goto_if_false @SWEET7_4997
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 34800)
304@ = 1

:SWEET7_4997
if 
  304@ == 1
goto_if_false @SWEET7_5037
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @SWEET7_5037
304@ = 2

:SWEET7_5037
if 
  304@ == 2
goto_if_false @SWEET7_5132
if 
  not Char.IsDead(97@)
goto_if_false @SWEET7_5132
if 
  Char.LocateAnyMeansChar2D($scplayer, 97@, 200.0, 200.0, False)
goto_if_false @SWEET7_5132
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot3, 884.9761, -1079.983, 23.3133)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
304@ = 3

:SWEET7_5132
if 
  534@ <> 0
goto_if_false @SWEET7_5485
if 
  536@ == 0
goto_if_false @SWEET7_5203
if 
  Audio.HasMissionAudioLoaded(533@)
goto_if_false @SWEET7_5189
Audio.ClearMissionAudio(533@)

:SWEET7_5189
536@ = 1
537@ = 1

:SWEET7_5203
if 
  536@ == 1
goto_if_false @SWEET7_5240
Audio.LoadMissionAudio(532@, 458@(534@,74i))
536@ = 2

:SWEET7_5240
if 
  536@ == 2
goto_if_false @SWEET7_5300
if 
  Audio.HasMissionAudioLoaded(532@)
goto_if_false @SWEET7_5300
Audio.PlayMissionAudio(532@)
Text.PrintNow(310@(534@,74s), 10000, 1)
536@ = 3

:SWEET7_5300
if 
  536@ == 3
goto_if_false @SWEET7_5485
if 
  Audio.HasMissionAudioFinished(532@)
goto_if_false @SWEET7_5424
Text.ClearThisPrint(310@(534@,74s))
if 
  532@ == 1
goto_if_false @SWEET7_5382
532@ = 2
533@ = 1
goto @SWEET7_5396

:SWEET7_5382
532@ = 1
533@ = 2

:SWEET7_5396
534@ = 0
536@ = 0
537@ = 0
goto @SWEET7_5485

:SWEET7_5424
if 
  not Audio.HasMissionAudioLoaded(533@)
goto_if_false @SWEET7_5485
if 
  72 > 534@
goto_if_false @SWEET7_5485
set_lvar_int_to_lvar_int 535@ = 534@
535@ += 1
Audio.LoadMissionAudio(533@, 458@(535@,74i))

:SWEET7_5485
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SWEET7_5507
goto @SWEET7_32156

:SWEET7_5507
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @SWEET7_5558
if 
  not Car.IsDead(78@)
goto_if_false @SWEET7_5558
Car.SetCoordinates(78@, 794.203, -1059.185, 23.6844)

:SWEET7_5558
262@, 261@ = Group.GetSize(260@)
if 
  1 > 53@
goto_if_false @SWEET7_5693
if 
  1 > $sw7_kanefuckedhealth
goto_if_false @SWEET7_5636
Hud.ClearTimer($sw7_kanefuckedhealth)
Text.ClearPrints
540@ = Math.RandomIntInRange(0, 2)
539@ = 31
53@ = 999

:SWEET7_5636
if 
  not Car.IsDead(78@)
goto_if_false @SWEET7_5693
if 
  Car.IsOnFire(78@)
goto_if_false @SWEET7_5693
Text.ClearPrints
Text.PrintNow('TWAR664', 6000, 1)
goto @SWEET7_32138

:SWEET7_5693
281@ = Stat.GetInt(StatId.Respect)
if 
  55@ == 0
goto_if_false @SWEET7_7055
if 
  0 > 282@
goto_if_false @SWEET7_6071
if 
  537@ == 0
goto_if_false @SWEET7_6071
switch_start 282@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @SWEET7_6071 {caseNum1} -10 {caseLabel1} @SWEET7_5882 {caseNum2} -9 {caseLabel2} @SWEET7_5903 {caseNum3} -8 {caseLabel3} @SWEET7_5924 {caseNum4} -7 {caseLabel4} @SWEET7_5945 {caseNum5} -6 {caseLabel5} @SWEET7_5966 {caseNum6} -5 {caseLabel6} @SWEET7_5987 {caseNum7} -4 {caseLabel7} @SWEET7_6008
switch_continued -3 {caseLabel1} @SWEET7_6029 {caseNum2} -2 {caseLabel2} @SWEET7_6050 {caseNum3} -1 {caseLabel3} @SWEET7_6071 {caseNum4} -1 {caseLabel4} @SWEET7_6071 {caseNum5} -1 {caseLabel5} @SWEET7_6071 {caseNum6} -1 {caseLabel6} @SWEET7_6071 {caseNum7} -1 {caseLabel7} @SWEET7_6071 {caseNum8} -1 {caseLabel8} @SWEET7_6071 {caseNum9} -1 {caseLabel9} @SWEET7_6071

:SWEET7_5882
534@ = 1
282@ = -9
goto @SWEET7_6071

:SWEET7_5903
534@ = 2
282@ = -8
goto @SWEET7_6071

:SWEET7_5924
534@ = 3
282@ = -7
goto @SWEET7_6071

:SWEET7_5945
534@ = 4
282@ = -6
goto @SWEET7_6071

:SWEET7_5966
534@ = 5
282@ = -5
goto @SWEET7_6071

:SWEET7_5987
534@ = 6
282@ = -4
goto @SWEET7_6071

:SWEET7_6008
534@ = 7
282@ = -3
goto @SWEET7_6071

:SWEET7_6029
534@ = 8
282@ = -2
goto @SWEET7_6071

:SWEET7_6050
534@ = 0
282@ = 0
goto @SWEET7_6071

:SWEET7_6071
if 
  537@ == 0
goto_if_false @SWEET7_6196
if 
  282@ == 0
goto_if_false @SWEET7_6139
Text.ClearPrints
Text.PrintNow('TWAR612', 6000, 1)
282@ = 1
TIMERB = 0

:SWEET7_6139
if 
  282@ == 1
goto_if_false @SWEET7_6196
if 
  TIMERB > 7000
goto_if_false @SWEET7_6196
Text.ClearPrints
Text.PrintHelp('HELP101')
282@ = 2

:SWEET7_6196
if 
  284@ == 0
goto_if_false @SWEET7_6285
if 
  TIMERA > 3000
goto_if_false @SWEET7_6285
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_6285
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_6285
Char.ClearTasks($sweet)
Task.TurnCharToFaceChar($sweet, $scplayer)
TIMERA = 0

:SWEET7_6285
if 
  Char.DoesExist($sweet)
goto_if_false @SWEET7_6345
if 
  Char.HasBeenDamagedByChar($sweet, $scplayer)
goto_if_false @SWEET7_6345
Text.ClearPrints
Text.PrintNow('TWAR618', 6000, 1)
goto @SWEET7_32138

:SWEET7_6345
if 
  295@ == 0
goto_if_false @SWEET7_6405
if 
  Char.DoesExist(289@)
goto_if_false @SWEET7_6405
if 
  Char.HasBeenDamagedByChar(289@, $scplayer)
goto_if_false @SWEET7_6405
295@ = 1

:SWEET7_6405
if 
  295@ == 0
goto_if_false @SWEET7_6465
if 
  Char.DoesExist(290@)
goto_if_false @SWEET7_6465
if 
  Char.HasBeenDamagedByChar(290@, $scplayer)
goto_if_false @SWEET7_6465
295@ = 1

:SWEET7_6465
if 
  295@ == 0
goto_if_false @SWEET7_6525
if 
  Char.DoesExist(291@)
goto_if_false @SWEET7_6525
if 
  Char.HasBeenDamagedByChar(291@, $scplayer)
goto_if_false @SWEET7_6525
295@ = 1

:SWEET7_6525
if 
  295@ == 1
goto_if_false @SWEET7_6637
if 
  not Char.IsDead(289@)
goto_if_false @SWEET7_6572
Char.ClearTasks(289@)
Task.KillCharOnFoot(289@, $scplayer)

:SWEET7_6572
if 
  not Char.IsDead(290@)
goto_if_false @SWEET7_6601
Char.ClearTasks(290@)
Task.KillCharOnFoot(290@, $scplayer)

:SWEET7_6601
if 
  not Char.IsDead(291@)
goto_if_false @SWEET7_6630
Char.ClearTasks(291@)
Task.KillCharOnFoot(291@, $scplayer)

:SWEET7_6630
295@ = 2

:SWEET7_6637
if 
  296@ == 0
goto_if_false @SWEET7_6696
if 
  Char.IsDead(289@)
goto_if_false @SWEET7_6696
Stat.IncrementInt(StatId.Respect, 35)
Blip.Remove(292@)
281@ = Stat.GetInt(StatId.Respect)
296@ = 1

:SWEET7_6696
if 
  297@ == 0
goto_if_false @SWEET7_6755
if 
  Char.IsDead(290@)
goto_if_false @SWEET7_6755
Stat.IncrementInt(StatId.Respect, 35)
Blip.Remove(293@)
281@ = Stat.GetInt(StatId.Respect)
297@ = 1

:SWEET7_6755
if 
  298@ == 0
goto_if_false @SWEET7_6814
if 
  Char.IsDead(291@)
goto_if_false @SWEET7_6814
Stat.IncrementInt(StatId.Respect, 35)
Blip.Remove(294@)
281@ = Stat.GetInt(StatId.Respect)
298@ = 1

:SWEET7_6814
if 
  Char.IsDead(289@)
goto_if_false @SWEET7_6894
if 
  Char.IsDead(290@)
goto_if_false @SWEET7_6894
if 
  Char.IsDead(291@)
goto_if_false @SWEET7_6894
281@ = Stat.GetInt(StatId.Respect)
if 
  100 > 281@
goto_if_false @SWEET7_6894
Stat.SetInt(StatId.Respect, 200)

:SWEET7_6894
301@ = Game.FindMaxNumberOfGroupMembers()
if 
  301@ > 1
goto_if_false @SWEET7_7055
Char.MarkAsNoLongerNeeded(289@)
Char.MarkAsNoLongerNeeded(290@)
Char.MarkAsNoLongerNeeded(291@)
Blip.Remove(292@)
Blip.Remove(293@)
Blip.Remove(294@)
Text.ClearPrints
Text.PrintNow('TWAR617', 6000, 1)
if 
  not Car.IsDead(78@)
goto_if_false @SWEET7_7055
Car.LockDoors(78@, CarLock.LockoutPlayerOnly)
55@ = 1
284@ = 1
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_7055
Char.ClearTasks($sweet)
Task.EnterCarAsPassenger($sweet, 78@, 20000, 0)
41@ = Blip.AddForCar(78@)
Audio.SetRadioChannel(RadioChannel.CSR)
Blip.SetAsFriendly(41@, True)

:SWEET7_7055
if 
  55@ == 1
goto_if_false @SWEET7_7281
if 
  284@ == 1
goto_if_false @SWEET7_7170
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_7170
if 
  not Car.IsDead(78@)
goto_if_false @SWEET7_7170
if 
  Char.IsSittingInCar($sweet, 78@)
goto_if_false @SWEET7_7170
Car.FreezePosition(78@, False)
Car.LockDoors(78@, CarLock.Unlocked)
Car.OpenDoor(78@, CarDoor.LeftFrontDoor)
284@ = 2

:SWEET7_7170
if 
  not Car.IsDead(78@)
goto_if_false @SWEET7_7281
if 
  Char.IsSittingInCar($scplayer, 78@)
goto_if_false @SWEET7_7281
Blip.Remove(41@)
281@ = Stat.GetInt(StatId.Respect)
267@ = Blip.AddForCoord(2460.499, -1656.57, 12.3125)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_7260
Char.ShutUpForScriptedSpeech($sweet, True)

:SWEET7_7260
55@ = 2
44@ = 0
539@ = 1

:SWEET7_7281
if 
  55@ == 2
goto_if_false @SWEET7_8493
if 
  not Car.IsDead(78@)
goto_if_false @SWEET7_8493
if 
  Char.IsInCar($scplayer, 78@)
goto_if_false @SWEET7_7577
if 
  539@ > 0
goto_if_false @SWEET7_7577
if 
  537@ == 0
goto_if_false @SWEET7_7577
switch_start 539@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SWEET7_7577 {caseNum1} 1 {caseLabel1} @SWEET7_7433 {caseNum2} 2 {caseLabel2} @SWEET7_7454 {caseNum3} 3 {caseLabel3} @SWEET7_7475 {caseNum4} 4 {caseLabel4} @SWEET7_7496 {caseNum5} 5 {caseLabel5} @SWEET7_7517 {caseNum6} -1 {caseLabel6} @SWEET7_7577 {caseNum7} -1 {caseLabel7} @SWEET7_7577

:SWEET7_7433
534@ = 10
539@ = 2
goto @SWEET7_7577

:SWEET7_7454
534@ = 11
539@ = 3
goto @SWEET7_7577

:SWEET7_7475
534@ = 12
539@ = 4
goto @SWEET7_7577

:SWEET7_7496
534@ = 13
539@ = 5
goto @SWEET7_7577

:SWEET7_7517
534@ = 0
Text.PrintNow('TWAR650', 6000, 1)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_7563
Char.ShutUpForScriptedSpeech($sweet, False)

:SWEET7_7563
539@ = 0
goto @SWEET7_7577

:SWEET7_7577
if 
  541@ > 0
goto_if_false @SWEET7_7800
if 
  537@ == 0
goto_if_false @SWEET7_7800
switch_start 541@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_7800 {caseNum1} 1 {caseLabel1} @SWEET7_7676 {caseNum2} 2 {caseLabel2} @SWEET7_7740 {caseNum3} -1 {caseLabel3} @SWEET7_7800 {caseNum4} -1 {caseLabel4} @SWEET7_7800 {caseNum5} -1 {caseLabel5} @SWEET7_7800 {caseNum6} -1 {caseLabel6} @SWEET7_7800 {caseNum7} -1 {caseLabel7} @SWEET7_7800

:SWEET7_7676
if 
  540@ == 0
goto_if_false @SWEET7_7701
534@ = 24

:SWEET7_7701
if 
  540@ == 1
goto_if_false @SWEET7_7726
534@ = 26

:SWEET7_7726
541@ = 2
goto @SWEET7_7800

:SWEET7_7740
534@ = 0
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_7770
Char.ShutUpForScriptedSpeech($sweet, False)

:SWEET7_7770
Text.PrintNow('TWAR645', 6000, 1)
541@ = 0
goto @SWEET7_7800

:SWEET7_7800
if 
  542@ > 0
goto_if_false @SWEET7_7975
if 
  537@ == 0
goto_if_false @SWEET7_7975
switch_start 542@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_7975 {caseNum1} 1 {caseLabel1} @SWEET7_7899 {caseNum2} 2 {caseLabel2} @SWEET7_7938 {caseNum3} -1 {caseLabel3} @SWEET7_7975 {caseNum4} -1 {caseLabel4} @SWEET7_7975 {caseNum5} -1 {caseLabel5} @SWEET7_7975 {caseNum6} -1 {caseLabel6} @SWEET7_7975 {caseNum7} -1 {caseLabel7} @SWEET7_7975

:SWEET7_7899
if 
  540@ == 0
goto_if_false @SWEET7_7924
534@ = 25

:SWEET7_7924
542@ = 2
goto @SWEET7_7975

:SWEET7_7938
534@ = 0
Text.PrintNow('TWAR650', 6000, 1)
542@ = 0
goto @SWEET7_7975

:SWEET7_7975
281@ = Stat.GetInt(StatId.Respect)
if 
  44@ == 0
goto_if_false @SWEET7_8075
if 
  not Char.IsInCar($scplayer, 78@)
goto_if_false @SWEET7_8075
41@ = Blip.AddForCar(78@)
Audio.SetRadioChannel(RadioChannel.CSR)
Blip.SetAsFriendly(41@, True)
Blip.Remove(267@)
Text.ClearPrints
44@ = 1
539@ = 0
541@ = 1
540@ = Math.RandomIntInRange(0, 2)

:SWEET7_8075
if 
  44@ == 1
goto_if_false @SWEET7_8169
if 
  Char.IsInCar($scplayer, 78@)
goto_if_false @SWEET7_8169
Blip.Remove(41@)
267@ = Blip.AddForCoord(2460.499, -1656.57, 12.3125)
Text.ClearPrints
44@ = 0
539@ = 0
542@ = 1
540@ = Math.RandomIntInRange(0, 1)

:SWEET7_8169
34@ = Streaming.GetAreaVisible()
if 
  34@ == 0
goto_if_false @SWEET7_8212
if 
  not Game.IsMinigameInProgress
goto_if_false @SWEET7_8212
Player.SetControl($player1, True)

:SWEET7_8212
if 
  Char.IsInCar($scplayer, 78@)
goto_if_false @SWEET7_8493
if 
  Char.LocateInCar3D($scplayer, 2460.499, -1656.57, 12.3125, 4.0, 4.0, 4.0, True)
goto_if_false @SWEET7_8493
Player.SetControl($player1, False)
if 
  Car.IsStopped(78@)
goto_if_false @SWEET7_8493
Car.FreezePosition(78@, True)
World.ClearArea(2268.039, -1670.695, 14.3594, 10.0, True)
Streaming.RemoveAnimation("SMOKING")
Text.ClearPrints
539@ = 1
Player.SetControl($player1, True)
Game.SetRelationship(RelationshipType.Respect, PedType.Gang2, PedType.Player1)
Player.SetGroupRecruitment($player1, True)
Blip.Remove(267@)
if 
  not Char.IsDead(263@)
goto_if_false @SWEET7_8493
if 
  not Char.IsDead(264@)
goto_if_false @SWEET7_8493
265@ = Blip.AddForChar(263@)
Blip.SetAsFriendly(265@, True)
268@ = 1
266@ = Blip.AddForChar(264@)
Blip.SetAsFriendly(266@, True)
269@ = 1
285@ = 1
TIMERA = 0
55@ = 4
270@ = 1
540@ = Math.RandomIntInRange(0, 3)

:SWEET7_8493
if 
  55@ == 3
goto_if_false @SWEET7_8697
Car.FreezePosition(78@, True)
World.ClearArea(2268.039, -1670.695, 14.3594, 10.0, True)
Streaming.RemoveAnimation("SMOKING")
Text.ClearPrints
539@ = 1
Player.SetControl($player1, True)
Game.SetRelationship(RelationshipType.Respect, PedType.Gang2, PedType.Player1)
Player.SetGroupRecruitment($player1, True)
if 
  not Char.IsDead(263@)
goto_if_false @SWEET7_8697
if 
  not Char.IsDead(264@)
goto_if_false @SWEET7_8697
265@ = Blip.AddForChar(263@)
Blip.SetAsFriendly(265@, True)
268@ = 1
266@ = Blip.AddForChar(264@)
Blip.SetAsFriendly(266@, True)
269@ = 1
285@ = 1
TIMERA = 0
55@ = 4
270@ = 1
540@ = Math.RandomIntInRange(0, 3)

:SWEET7_8697
if 
  285@ == 1
goto_if_false @SWEET7_8763
if 
  TIMERA > 8000
goto_if_false @SWEET7_8763
Text.ClearThisPrint('TWAR652')
Text.PrintHelp('TWAR660')
285@ = 2

:SWEET7_8763
if 
  270@ == 1
goto_if_false @SWEET7_9539
if 
  268@ == 1
goto_if_false @SWEET7_8846
if 
  not Char.IsDead(263@)
goto_if_false @SWEET7_8846
if 
  Char.IsGroupMember(263@, 260@)
goto_if_false @SWEET7_8846
Blip.Remove(265@)
268@ = 0

:SWEET7_8846
if 
  269@ == 1
goto_if_false @SWEET7_8911
if 
  not Char.IsDead(264@)
goto_if_false @SWEET7_8911
if 
  Char.IsGroupMember(264@, 260@)
goto_if_false @SWEET7_8911
Blip.Remove(266@)
269@ = 0

:SWEET7_8911
if 
  268@ == 0
goto_if_false @SWEET7_8998
if 
  not Char.IsDead(263@)
goto_if_false @SWEET7_8998
if 
  not Char.IsGroupMember(263@, 260@)
goto_if_false @SWEET7_8998
Blip.Remove(41@)
55@ = 4
265@ = Blip.AddForChar(263@)
Blip.SetAsFriendly(265@, True)
268@ = 1

:SWEET7_8998
if 
  269@ == 0
goto_if_false @SWEET7_9085
if 
  not Char.IsDead(264@)
goto_if_false @SWEET7_9085
if 
  not Char.IsGroupMember(264@, 260@)
goto_if_false @SWEET7_9085
Blip.Remove(41@)
55@ = 4
266@ = Blip.AddForChar(264@)
Blip.SetAsFriendly(266@, True)
269@ = 1

:SWEET7_9085
262@, 261@ = Group.GetSize(260@)
if 
  261@ > 1
goto_if_false @SWEET7_9483
if 
  not Char.IsDead(263@)
goto_if_false @SWEET7_9198
if 
  not Char.IsGroupMember(263@, 260@)
goto_if_false @SWEET7_9198
Text.ClearHelp
Text.PrintHelpForever('TWAR662')
if 
  11 > 543@
goto_if_false @SWEET7_9198
Text.ClearPrints
540@ = Math.RandomIntInRange(0, 2)
543@ = 11

:SWEET7_9198
if 
  not Char.IsDead(264@)
goto_if_false @SWEET7_9282
if 
  not Char.IsGroupMember(264@, 260@)
goto_if_false @SWEET7_9282
Text.ClearHelp
Text.PrintHelpForever('TWAR662')
if 
  11 > 543@
goto_if_false @SWEET7_9282
Text.ClearPrints
540@ = Math.RandomIntInRange(0, 2)
543@ = 11

:SWEET7_9282
if 
  543@ > 10
goto_if_false @SWEET7_9483
if 
  537@ == 0
goto_if_false @SWEET7_9483
switch_start 543@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_9483 {caseNum1} 11 {caseLabel1} @SWEET7_9381 {caseNum2} 12 {caseLabel2} @SWEET7_9445 {caseNum3} -1 {caseLabel3} @SWEET7_9483 {caseNum4} -1 {caseLabel4} @SWEET7_9483 {caseNum5} -1 {caseLabel5} @SWEET7_9483 {caseNum6} -1 {caseLabel6} @SWEET7_9483 {caseNum7} -1 {caseLabel7} @SWEET7_9483

:SWEET7_9381
if 
  540@ == 0
goto_if_false @SWEET7_9406
534@ = 20

:SWEET7_9406
if 
  540@ == 1
goto_if_false @SWEET7_9431
534@ = 21

:SWEET7_9431
543@ = 12
goto @SWEET7_9483

:SWEET7_9445
534@ = 0
Text.PrintNow('TWAR659', 6000, 1)
543@ = 999
goto @SWEET7_9483

:SWEET7_9483
if 
  2 > 261@
goto_if_false @SWEET7_9539
if 
  285@ == 2
goto_if_false @SWEET7_9539
Text.ClearHelp
Text.PrintHelpForever('TWAR660')
543@ = 0

:SWEET7_9539
if 
  55@ == 4
goto_if_false @SWEET7_10198
if 
  539@ > 0
goto_if_false @SWEET7_10010
if 
  537@ == 0
goto_if_false @SWEET7_10010
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_10010 {caseNum1} 1 {caseLabel1} @SWEET7_9656 {caseNum2} 2 {caseLabel2} @SWEET7_9919 {caseNum3} -1 {caseLabel3} @SWEET7_10010 {caseNum4} -1 {caseLabel4} @SWEET7_10010 {caseNum5} -1 {caseLabel5} @SWEET7_10010 {caseNum6} -1 {caseLabel6} @SWEET7_10010 {caseNum7} -1 {caseLabel7} @SWEET7_10010

:SWEET7_9656
if 
  540@ == 0
goto_if_false @SWEET7_9739
534@ = 1
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_9739
Char.ClearTasks($sweet)
Task.PlayAnim($sweet, "ENDCHAT_01", "PED", 4.0, True, False, False, False, -1)

:SWEET7_9739
if 
  540@ == 1
goto_if_false @SWEET7_9822
534@ = 1
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_9822
Char.ClearTasks($sweet)
Task.PlayAnim($sweet, "ENDCHAT_01", "PED", 4.0, True, False, False, False, -1)

:SWEET7_9822
if 
  540@ == 2
goto_if_false @SWEET7_9905
534@ = 1
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_9905
Char.ClearTasks($sweet)
Task.PlayAnim($sweet, "ENDCHAT_01", "PED", 4.0, True, False, False, False, -1)

:SWEET7_9905
539@ = 2
goto @SWEET7_10010

:SWEET7_9919
534@ = 0
Text.PrintNow('TWAR652', 6000, 1)
if 
  not Car.IsDead(78@)
goto_if_false @SWEET7_9996
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_9996
Char.ClearTasks($sweet)
Task.EnterCarAsPassenger($sweet, 78@, 20000, 0)
Audio.SetRadioChannel(RadioChannel.CSR)

:SWEET7_9996
539@ = 0
goto @SWEET7_10010

:SWEET7_10010
if 
  not Char.IsDead(263@)
goto_if_false @SWEET7_10198
if 
  not Char.IsDead(264@)
goto_if_false @SWEET7_10198
if 
  Char.IsGroupMember(263@, 260@)
goto_if_false @SWEET7_10198
if 
  Char.IsGroupMember(264@, 260@)
goto_if_false @SWEET7_10198
Text.ClearHelp
Text.ClearPrints
Text.PrintNow('TWAR654', 5500, 1)
286@ = 1
TIMERB = 0
if 
  not Car.IsDead(78@)
goto_if_false @SWEET7_10191
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_10191
if 
  Char.IsSittingInCar($sweet, 78@)
goto_if_false @SWEET7_10191
Car.LockDoors(78@, CarLock.Unlocked)
41@ = Blip.AddForCar(78@)
Blip.SetAsFriendly(41@, True)
Audio.SetRadioChannel(RadioChannel.CSR)

:SWEET7_10191
55@ = 10

:SWEET7_10198
if 
  286@ == 1
goto_if_false @SWEET7_10242
if 
  TIMERB > 6000
goto_if_false @SWEET7_10242
286@ = 2

:SWEET7_10242
if 
  55@ == 10
goto_if_false @SWEET7_10554
if 
  not Car.IsDead(78@)
goto_if_false @SWEET7_10554
if 
  not Char.IsDead(263@)
goto_if_false @SWEET7_10554
if 
  not Char.IsDead(264@)
goto_if_false @SWEET7_10554
if 
  Char.IsSittingInCar(263@, 78@)
goto_if_false @SWEET7_10554
if 
  Char.IsSittingInCar(264@, 78@)
goto_if_false @SWEET7_10554
if 
  Char.IsSittingInCar($scplayer, 78@)
goto_if_false @SWEET7_10554
Car.FreezePosition(78@, False)
Text.ClearHelp
Text.ClearPrints
Camera.SetBehindPlayer
if 
  302@ == 0
goto_if_false @SWEET7_10462
Hud.DisplayTimerWithString($sw7_kanefuckedhealth, TimerDirection.Down, 'TWAR620')
Zone.SetGangStrength('GAN1', GangType.Grove, 35@)
Zone.SetGangStrength('GAN2', GangType.Grove, 36@)
Streaming.RemoveAnimation("SMOKING")
302@ = 1

:SWEET7_10462
Blip.Remove(41@)
42@ = Blip.AddForCoord(799.0102, -1074.032, 23.0115)
270@ = 1
44@ = 0
539@ = 1
55@ = 20
TIMERA = 0
Path.SwitchRoadsOff(772.243, -1050.323, 10.2931, 806.2723, -1130.195, 23.8359)

:SWEET7_10554
if 
  37@ == 1
goto_if_false @SWEET7_10621
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SWEET7_10621
if 
  10 > 53@
goto_if_false @SWEET7_10621
53@ = 10
37@ = 0

:SWEET7_10621
if 
  38@ == 1
goto_if_false @SWEET7_10663
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SWEET7_10663
133@ = 15

:SWEET7_10663
if 
  Char.IsDead($sweet)
goto_if_false @SWEET7_10704
Text.ClearPrints
Text.PrintNow('TWAR638', 10000, 1)
goto @SWEET7_32138

:SWEET7_10704
if 
  Car.IsDead(79@)
goto_if_false @SWEET7_10777
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_10777
if 
  not Char.IsInAnyCar($sweet)
goto_if_false @SWEET7_10777
Text.ClearPrints
Text.PrintNow('TWAR648', 6000, 1)
goto @SWEET7_32138

:SWEET7_10777
if 
  53@ == 0
goto_if_false @SWEET7_12683
if 
  55@ == 20
goto_if_false @SWEET7_12683
if 
  not Car.IsDead(78@)
goto_if_false @SWEET7_12683
if 
  Char.IsInCar($scplayer, 78@)
goto_if_false @SWEET7_11102
if 
  278@ == 0
goto_if_false @SWEET7_10903
if 
  TIMERA > 20000
goto_if_false @SWEET7_10903
Text.PrintHelp('TWAR656')
278@ = 1

:SWEET7_10903
if 
  539@ > 0
goto_if_false @SWEET7_11102
if 
  537@ == 0
goto_if_false @SWEET7_11102
switch_start 539@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET7_11102 {caseNum1} 1 {caseLabel1} @SWEET7_11002 {caseNum2} 2 {caseLabel2} @SWEET7_11023 {caseNum3} 3 {caseLabel3} @SWEET7_11044 {caseNum4} 4 {caseLabel4} @SWEET7_11065 {caseNum5} -1 {caseLabel5} @SWEET7_11102 {caseNum6} -1 {caseLabel6} @SWEET7_11102 {caseNum7} -1 {caseLabel7} @SWEET7_11102

:SWEET7_11002
534@ = 23
539@ = 2
goto @SWEET7_11102

:SWEET7_11023
534@ = 35
539@ = 3
goto @SWEET7_11102

:SWEET7_11044
534@ = 36
539@ = 4
goto @SWEET7_11102

:SWEET7_11065
534@ = 0
Text.PrintNow('TWAR631', 6000, 1)
539@ = 0
goto @SWEET7_11102

:SWEET7_11102
if 
  541@ > 0
goto_if_false @SWEET7_11302
if 
  537@ == 0
goto_if_false @SWEET7_11302
switch_start 541@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_11302 {caseNum1} 1 {caseLabel1} @SWEET7_11201 {caseNum2} 2 {caseLabel2} @SWEET7_11265 {caseNum3} -1 {caseLabel3} @SWEET7_11302 {caseNum4} -1 {caseLabel4} @SWEET7_11302 {caseNum5} -1 {caseLabel5} @SWEET7_11302 {caseNum6} -1 {caseLabel6} @SWEET7_11302 {caseNum7} -1 {caseLabel7} @SWEET7_11302

:SWEET7_11201
if 
  540@ == 0
goto_if_false @SWEET7_11226
534@ = 24

:SWEET7_11226
if 
  540@ == 1
goto_if_false @SWEET7_11251
534@ = 26

:SWEET7_11251
541@ = 2
goto @SWEET7_11302

:SWEET7_11265
534@ = 0
Text.PrintNow('TWAR632', 6000, 1)
541@ = 0
goto @SWEET7_11302

:SWEET7_11302
if 
  542@ > 0
goto_if_false @SWEET7_11477
if 
  537@ == 0
goto_if_false @SWEET7_11477
switch_start 542@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_11477 {caseNum1} 1 {caseLabel1} @SWEET7_11401 {caseNum2} 2 {caseLabel2} @SWEET7_11440 {caseNum3} -1 {caseLabel3} @SWEET7_11477 {caseNum4} -1 {caseLabel4} @SWEET7_11477 {caseNum5} -1 {caseLabel5} @SWEET7_11477 {caseNum6} -1 {caseLabel6} @SWEET7_11477 {caseNum7} -1 {caseLabel7} @SWEET7_11477

:SWEET7_11401
if 
  540@ == 0
goto_if_false @SWEET7_11426
534@ = 25

:SWEET7_11426
542@ = 2
goto @SWEET7_11477

:SWEET7_11440
534@ = 0
Text.PrintNow('TWAR631', 6000, 1)
542@ = 0
goto @SWEET7_11477

:SWEET7_11477
if 
  44@ == 0
goto_if_false @SWEET7_11570
if 
  not Char.IsInCar($scplayer, 78@)
goto_if_false @SWEET7_11570
41@ = Blip.AddForCar(78@)
Audio.SetRadioChannel(RadioChannel.CSR)
Blip.SetAsFriendly(41@, True)
Blip.Remove(42@)
Text.ClearPrints
44@ = 1
539@ = 0
541@ = 1
540@ = Math.RandomIntInRange(0, 2)

:SWEET7_11570
if 
  44@ == 1
goto_if_false @SWEET7_11734
if 
  not Char.IsDead(263@)
goto_if_false @SWEET7_11734
if 
  not Char.IsDead(264@)
goto_if_false @SWEET7_11734
if 
  Char.IsInCar($scplayer, 78@)
goto_if_false @SWEET7_11734
if 
  Char.IsSittingInCar(263@, 78@)
goto_if_false @SWEET7_11734
if 
  Char.IsSittingInCar(264@, 78@)
goto_if_false @SWEET7_11734
Blip.Remove(41@)
42@ = Blip.AddForCoord(799.0102, -1074.032, 23.0115)
Text.ClearPrints
44@ = 0
539@ = 0
542@ = 1
540@ = Math.RandomIntInRange(0, 1)

:SWEET7_11734
34@ = Streaming.GetAreaVisible()
if 
  34@ == 0
goto_if_false @SWEET7_11777
if 
  not Game.IsMinigameInProgress
goto_if_false @SWEET7_11777
Player.SetControl($player1, True)

:SWEET7_11777
if 
  44@ == 0
goto_if_false @SWEET7_12683
if 
  Char.IsInCar($scplayer, 78@)
goto_if_false @SWEET7_12683
if 
  Char.LocateInCar3D($scplayer, 799.0102, -1074.032, 23.0115, 3.8, 3.8, 4.0, True)
goto_if_false @SWEET7_12683
Player.SetControl($player1, False)
if 
  Car.IsStopped(78@)
goto_if_false @SWEET7_12683
Blip.Remove(42@)
Player.SetControl($player1, False)
Hud.ClearTimer($sw7_kanefuckedhealth)
Camera.DoFade(500, Fade.Out)

:SWEET7_11909
if 
  Camera.GetFadingStatus
goto_if_false @SWEET7_11933
wait 0
goto @SWEET7_11909

:SWEET7_11933
Camera.SetFixedPosition(790.7784, -1072.139, 26.2131, 0.0, 0.0, 0.0)
Camera.PointAtPoint(791.6847, -1072.378, 25.8645, SwitchType.JumpCut)
Streaming.LoadScene(803.5742, -1075.752, 23.3957)
wait 0
if 
  not Car.IsDead(78@)
goto_if_false @SWEET7_12028
Car.FreezePosition(78@, True)

:SWEET7_12028
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.DoFade(1000, Fade.In)

:SWEET7_12046
if 
  Camera.GetFadingStatus
goto_if_false @SWEET7_12070
wait 0
goto @SWEET7_12046

:SWEET7_12070
Hud.ClearTimer($sw7_kanefuckedhealth)
Camera.DoFade(1000, Fade.In)

:SWEET7_12082
if 
  Camera.GetFadingStatus
goto_if_false @SWEET7_12106
wait 0
goto @SWEET7_12082

:SWEET7_12106
270@ = 0
53@ = 1
133@ = 1
TIMERA = 0
if 
  537@ == 0
goto_if_false @SWEET7_12159
534@ = 29

:SWEET7_12159
if 
  53@ == -999
goto_if_false @SWEET7_12332
81@ = Char.Create(PedType.Mission2, 106, 820.7578, -1078.671, 22.9313)
Char.SetHeading(81@, 258.1012)
Char.SetDecisionMaker(81@, 93@)
Char.SetHealth(81@, 500)
Char.SetMaxHealth(81@, 500)
Char.SetNeverTargeted(81@, True)
Char.GiveWeapon(81@, WeaponType.MicroUzi, 99999)
82@ = Char.Create(PedType.Mission2, 106, 820.2401, -1075.763, 23.0894)
Char.SetHeading(82@, 200.7)
Char.SetDecisionMaker(82@, 93@)
Char.SetHealth(82@, 500)
Char.SetMaxHealth(82@, 500)
Char.SetNeverTargeted(82@, True)
Char.GiveWeapon(82@, WeaponType.MicroUzi, 99999)

:SWEET7_12332
Streaming.MarkModelAsNoLongerNeeded(106)
Streaming.MarkModelAsNoLongerNeeded(107)
Streaming.MarkModelAsNoLongerNeeded(105)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_12453
Char.SetDecisionMaker($sweet, 93@)
Char.ClearTasks($sweet)
39@ = Blip.AddForChar($sweet)
Blip.SetAsFriendly(39@, True)
83@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 804.576, -1075.795, 23.3946, MoveState.Walk, 10000)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(83@)
Char.PerformSequence($sweet, 83@)
Sequence.Clear(83@)
TIMERA = 0

:SWEET7_12453
if 
  1000 > TIMERA
goto_if_false @SWEET7_12483
wait 0
goto @SWEET7_12453

:SWEET7_12483
if 
  not Char.IsDead(263@)
goto_if_false @SWEET7_12568
Char.SetDecisionMaker(263@, 93@)
Char.RemoveFromGroup(263@)
Char.ClearTasks(263@)
272@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 804.8553, -1074.422, 23.4385, MoveState.Walk, 10000)
Sequence.Close(272@)
Char.PerformSequence(263@, 272@)
Sequence.Clear(272@)

:SWEET7_12568
if 
  1750 > TIMERA
goto_if_false @SWEET7_12598
wait 0
goto @SWEET7_12568

:SWEET7_12598
if 
  not Char.IsDead(264@)
goto_if_false @SWEET7_12683
Char.SetDecisionMaker(264@, 93@)
Char.RemoveFromGroup(264@)
Char.ClearTasks(264@)
273@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 805.1254, -1072.344, 23.5187, MoveState.Run, 10000)
Sequence.Close(273@)
Char.PerformSequence(264@, 273@)
Sequence.Clear(273@)

:SWEET7_12683
if 
  133@ == 1
goto_if_false @SWEET7_12734
if 
  TIMERA > 500
goto_if_false @SWEET7_12734
133@ = 4
TIMERA = 0

:SWEET7_12734
if 
  133@ == 4
goto_if_false @SWEET7_13121
if 
  TIMERA > 1000
goto_if_false @SWEET7_12803
if 
  303@ == 0
goto_if_false @SWEET7_12803
38@ = 1
303@ = 1

:SWEET7_12803
if 
  TIMERA > 3000
goto_if_false @SWEET7_13121
World.ClearArea(804.576, -1075.795, 23.3946, 5.0, True)
Camera.SetFixedPosition(813.1065, -1071.708, 27.3524, 0.0, 0.0, 0.0)
Camera.PointAtPoint(812.2476, -1072.201, 27.2129, SwitchType.JumpCut)
133@ = 5
if 
  537@ == 0
goto_if_false @SWEET7_12922

:SWEET7_12922
if 
  not Char.IsDead($scplayer)
goto_if_false @SWEET7_13003
Char.ClearTasks($scplayer)
549@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 803.7976, -1075.882, 23.3933, MoveState.Run, 10000)
Task.AchieveHeading(-1, 272.0)
Sequence.Close(549@)
Char.PerformSequence($scplayer, 549@)
Sequence.Clear(549@)

:SWEET7_13003
TIMERA = 0
if 
  not Char.IsDead(264@)
goto_if_false @SWEET7_13121
Char.ClearTasks(264@)
Char.SetCoordinates(264@, 805.1254, -1072.344, 23.5187)
Char.SetHeading(264@, 230.0)
273@ = Sequence.Open()
Task.Climb(-1, True)
Task.GoStraightToCoord(-1, 820.4114, -1076.603, 23.0623, MoveState.Run, 10000)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(273@)
Char.PerformSequence(264@, 273@)
Sequence.Clear(273@)

:SWEET7_13121
if 
  133@ == 5
goto_if_false @SWEET7_13276
if 
  TIMERA > 200
goto_if_false @SWEET7_13276
World.ClearArea(804.576, -1075.795, 23.3946, 5.0, True)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_13262
Char.ClearTasks($sweet)
Char.SetCoordinates($sweet, 804.576, -1075.795, 23.3946)
Char.SetHeading($sweet, 271.0)
83@ = Sequence.Open()
Task.Climb(-1, True)
Sequence.Close(83@)
Char.PerformSequence($sweet, 83@)
Sequence.Clear(83@)

:SWEET7_13262
TIMERA = 0
133@ = 6

:SWEET7_13276
if 
  133@ == 6
goto_if_false @SWEET7_13438
if 
  TIMERA > 1000
goto_if_false @SWEET7_13438
if 
  not Char.IsDead(263@)
goto_if_false @SWEET7_13424
Char.ClearTasks(263@)
Char.SetCoordinates(263@, 804.8553, -1074.422, 23.4385)
Char.SetHeading(263@, 262.0)
272@ = Sequence.Open()
Task.Climb(-1, True)
Task.GoStraightToCoord(-1, 818.4114, -1076.603, 23.0623, MoveState.Run, 10000)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(272@)
Char.PerformSequence(263@, 272@)
Sequence.Clear(272@)

:SWEET7_13424
133@ = 10
TIMERA = 0

:SWEET7_13438
if 
  133@ == 10
goto_if_false @SWEET7_13560
if 
  TIMERA > 2000
goto_if_false @SWEET7_13560
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_13521
Char.ClearTasks($sweet)
Task.GoStraightToCoord($sweet, 818.4114, -1076.603, 23.0623, MoveState.Run, 10000)

:SWEET7_13521
if 
  537@ == 0
goto_if_false @SWEET7_13546
534@ = 31

:SWEET7_13546
133@ = 13
TIMERA = 0

:SWEET7_13560
if 
  133@ == 13
goto_if_false @SWEET7_13622
if 
  537@ == 0
goto_if_false @SWEET7_13622
if 
  TIMERA > 2000
goto_if_false @SWEET7_13622
133@ = 15

:SWEET7_13622
if 
  133@ == 15
goto_if_false @SWEET7_13855
38@ = 0
Char.ClearTasks($scplayer)
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Text.ClearPrints
Player.SetControl($player1, True)
133@ = 20
Text.ClearPrints
Text.PrintNow('TWAR635', 6000, 1)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_13753
Char.ClearTasksImmediately($sweet)
Char.SetCoordinates($sweet, 818.4114, -1076.603, 23.0623)
Char.SetHeading($sweet, 279.0)
Task.TurnCharToFaceChar($sweet, $scplayer)

:SWEET7_13753
if 
  not Char.IsDead(263@)
goto_if_false @SWEET7_13804
Char.ClearTasksImmediately(263@)
Char.SetCoordinates(263@, 816.0391, -1072.607, 23.71)
Char.SetHeading(263@, 248.0)

:SWEET7_13804
if 
  not Char.IsDead(264@)
goto_if_false @SWEET7_13855
Char.ClearTasksImmediately(264@)
Char.SetCoordinates(264@, 815.9681, -1073.723, 23.5666)
Char.SetHeading(264@, 253.0)

:SWEET7_13855
if 
  53@ == 1
goto_if_false @SWEET7_14139
if 
  55@ == 20
goto_if_false @SWEET7_14139
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_14139
if 
  68@ == 0
goto_if_false @SWEET7_14048
if 
  Char.LocateAnyMeans3D($sweet, 818.4114, -1076.603, 23.0623, 4.0, 4.0, 4.0, False)
goto_if_false @SWEET7_14048
if 
  Char.LocateAnyMeansChar2D($scplayer, $sweet, 2.0, 2.0, False)
goto_if_false @SWEET7_14048
Char.ClearTasks($sweet)
if 
  not Char.IsDead(82@)
goto_if_false @SWEET7_14025

:SWEET7_14025
if 
  not Char.IsDead(81@)
goto_if_false @SWEET7_14041

:SWEET7_14041
68@ = 1

:SWEET7_14048
if 
  Char.LocateAnyMeans3D($sweet, 818.4114, -1076.603, 23.0623, 2.0, 2.0, 2.0, False)
goto_if_false @SWEET7_14139
if 
  Char.LocateAnyMeansChar2D($scplayer, $sweet, 2.0, 2.0, False)
goto_if_false @SWEET7_14139
53@ = 4
Blip.Remove(39@)

:SWEET7_14139
if 
  1 > 53@
goto_if_false @SWEET7_14198
if 
  Car.IsDead(78@)
goto_if_false @SWEET7_14198
Text.ClearPrints
Text.PrintNow('TWAR633', 8000, 1)
goto @SWEET7_32138

:SWEET7_14198
if 
  5 > 53@
goto_if_false @SWEET7_15457
if 
  Char.DoesExist(263@)
goto_if_false @SWEET7_14274
if 
  Char.IsDead(263@)
goto_if_false @SWEET7_14274
Text.ClearPrints
540@ = Math.RandomIntInRange(0, 3)
539@ = 21
53@ = 999

:SWEET7_14274
if 
  Char.DoesExist(264@)
goto_if_false @SWEET7_14332
if 
  Char.IsDead(264@)
goto_if_false @SWEET7_14332
Text.ClearPrints
540@ = Math.RandomIntInRange(0, 3)
539@ = 21
53@ = 999

:SWEET7_14332
if 
  Char.DoesExist(105@)
goto_if_false @SWEET7_14557
if 
  Char.HasBeenDamagedByChar(105@, $scplayer)
goto_if_false @SWEET7_14557
69@ = 1
if 
  not Char.IsDead(105@)
goto_if_false @SWEET7_14403
Char.ClearTasks(105@)
Task.KillCharOnFoot(105@, $scplayer)

:SWEET7_14403
if 
  not Char.IsDead(107@)
goto_if_false @SWEET7_14432
Char.ClearTasks(107@)
Task.KillCharOnFoot(107@, $scplayer)

:SWEET7_14432
if 
  not Char.IsDead(109@)
goto_if_false @SWEET7_14461
Char.ClearTasks(109@)
Task.KillCharOnFoot(109@, $scplayer)

:SWEET7_14461
if 
  not Char.IsDead(97@)
goto_if_false @SWEET7_14497
Char.ClearTasks(97@)
Task.SmartFleeChar(97@, $scplayer, 100.0, -1)

:SWEET7_14497
if 
  not Char.IsDead(96@)
goto_if_false @SWEET7_14533
Char.ClearTasks(96@)
Task.SmartFleeChar(96@, $scplayer, 100.0, -1)

:SWEET7_14533
540@ = Math.RandomIntInRange(0, 3)
539@ = 41
53@ = 999

:SWEET7_14557
if 
  Char.DoesExist(107@)
goto_if_false @SWEET7_14782
if 
  Char.HasBeenDamagedByChar(107@, $scplayer)
goto_if_false @SWEET7_14782
69@ = 1
if 
  not Char.IsDead(107@)
goto_if_false @SWEET7_14628
Char.ClearTasks(107@)
Task.KillCharOnFoot(107@, $scplayer)

:SWEET7_14628
if 
  not Char.IsDead(105@)
goto_if_false @SWEET7_14657
Char.ClearTasks(105@)
Task.KillCharOnFoot(105@, $scplayer)

:SWEET7_14657
if 
  not Char.IsDead(109@)
goto_if_false @SWEET7_14686
Char.ClearTasks(109@)
Task.KillCharOnFoot(109@, $scplayer)

:SWEET7_14686
if 
  not Char.IsDead(97@)
goto_if_false @SWEET7_14722
Char.ClearTasks(97@)
Task.SmartFleeChar(97@, $scplayer, 100.0, -1)

:SWEET7_14722
if 
  not Char.IsDead(96@)
goto_if_false @SWEET7_14758
Char.ClearTasks(96@)
Task.SmartFleeChar(96@, $scplayer, 100.0, -1)

:SWEET7_14758
540@ = Math.RandomIntInRange(0, 3)
539@ = 41
53@ = 999

:SWEET7_14782
if 
  Char.DoesExist(109@)
goto_if_false @SWEET7_15007
if 
  Char.HasBeenDamagedByChar(109@, $scplayer)
goto_if_false @SWEET7_15007
69@ = 1
if 
  not Char.IsDead(109@)
goto_if_false @SWEET7_14853
Char.ClearTasks(109@)
Task.KillCharOnFoot(109@, $scplayer)

:SWEET7_14853
if 
  not Char.IsDead(105@)
goto_if_false @SWEET7_14882
Char.ClearTasks(105@)
Task.KillCharOnFoot(105@, $scplayer)

:SWEET7_14882
if 
  not Char.IsDead(107@)
goto_if_false @SWEET7_14911
Char.ClearTasks(107@)
Task.KillCharOnFoot(107@, $scplayer)

:SWEET7_14911
if 
  not Char.IsDead(97@)
goto_if_false @SWEET7_14947
Char.ClearTasks(97@)
Task.SmartFleeChar(97@, $scplayer, 100.0, -1)

:SWEET7_14947
if 
  not Char.IsDead(96@)
goto_if_false @SWEET7_14983
Char.ClearTasks(96@)
Task.SmartFleeChar(96@, $scplayer, 100.0, -1)

:SWEET7_14983
540@ = Math.RandomIntInRange(0, 3)
539@ = 41
53@ = 999

:SWEET7_15007
if 
  Char.DoesExist(96@)
goto_if_false @SWEET7_15232
if 
  Char.HasBeenDamagedByChar(96@, $scplayer)
goto_if_false @SWEET7_15232
69@ = 1
if 
  not Char.IsDead(105@)
goto_if_false @SWEET7_15078
Char.ClearTasks(105@)
Task.KillCharOnFoot(105@, $scplayer)

:SWEET7_15078
if 
  not Char.IsDead(107@)
goto_if_false @SWEET7_15107
Char.ClearTasks(107@)
Task.KillCharOnFoot(107@, $scplayer)

:SWEET7_15107
if 
  not Char.IsDead(109@)
goto_if_false @SWEET7_15136
Char.ClearTasks(109@)
Task.KillCharOnFoot(109@, $scplayer)

:SWEET7_15136
if 
  not Char.IsDead(97@)
goto_if_false @SWEET7_15172
Char.ClearTasks(97@)
Task.SmartFleeChar(97@, $scplayer, 100.0, -1)

:SWEET7_15172
if 
  not Char.IsDead(96@)
goto_if_false @SWEET7_15208
Char.ClearTasks(96@)
Task.SmartFleeChar(96@, $scplayer, 100.0, -1)

:SWEET7_15208
540@ = Math.RandomIntInRange(0, 3)
539@ = 41
53@ = 999

:SWEET7_15232
if 
  Char.DoesExist(97@)
goto_if_false @SWEET7_15457
if 
  Char.HasBeenDamagedByChar(97@, $scplayer)
goto_if_false @SWEET7_15457
69@ = 1
if 
  not Char.IsDead(105@)
goto_if_false @SWEET7_15303
Char.ClearTasks(105@)
Task.KillCharOnFoot(105@, $scplayer)

:SWEET7_15303
if 
  not Char.IsDead(107@)
goto_if_false @SWEET7_15332
Char.ClearTasks(107@)
Task.KillCharOnFoot(107@, $scplayer)

:SWEET7_15332
if 
  not Char.IsDead(109@)
goto_if_false @SWEET7_15361
Char.ClearTasks(109@)
Task.KillCharOnFoot(109@, $scplayer)

:SWEET7_15361
if 
  not Char.IsDead(97@)
goto_if_false @SWEET7_15397
Char.ClearTasks(97@)
Task.SmartFleeChar(97@, $scplayer, 100.0, -1)

:SWEET7_15397
if 
  not Char.IsDead(96@)
goto_if_false @SWEET7_15433
Char.ClearTasks(96@)
Task.SmartFleeChar(96@, $scplayer, 100.0, -1)

:SWEET7_15433
540@ = Math.RandomIntInRange(0, 3)
539@ = 41
53@ = 999

:SWEET7_15457
if 
  53@ == 999
goto_if_false @SWEET7_16414
if and
  539@ > 20
  30 > 539@
goto_if_false @SWEET7_15715
if 
  537@ == 0
goto_if_false @SWEET7_15715
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_15715 {caseNum1} 21 {caseLabel1} @SWEET7_15582 {caseNum2} 22 {caseLabel2} @SWEET7_15671 {caseNum3} -1 {caseLabel3} @SWEET7_15715 {caseNum4} -1 {caseLabel4} @SWEET7_15715 {caseNum5} -1 {caseLabel5} @SWEET7_15715 {caseNum6} -1 {caseLabel6} @SWEET7_15715 {caseNum7} -1 {caseLabel7} @SWEET7_15715

:SWEET7_15582
if 
  540@ == 0
goto_if_false @SWEET7_15607
534@ = 17

:SWEET7_15607
if 
  540@ == 1
goto_if_false @SWEET7_15632
534@ = 18

:SWEET7_15632
if 
  540@ == 2
goto_if_false @SWEET7_15657
534@ = 19

:SWEET7_15657
539@ = 22
goto @SWEET7_15715

:SWEET7_15671
534@ = 0
Text.PrintNow('TWAR658', 6000, 1)
539@ = 0
goto @SWEET7_32138
goto @SWEET7_15715

:SWEET7_15715
if and
  539@ > 30
  40 > 539@
goto_if_false @SWEET7_15929
if 
  537@ == 0
goto_if_false @SWEET7_15929
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_15929 {caseNum1} 31 {caseLabel1} @SWEET7_15821 {caseNum2} 32 {caseLabel2} @SWEET7_15885 {caseNum3} -1 {caseLabel3} @SWEET7_15929 {caseNum4} -1 {caseLabel4} @SWEET7_15929 {caseNum5} -1 {caseLabel5} @SWEET7_15929 {caseNum6} -1 {caseLabel6} @SWEET7_15929 {caseNum7} -1 {caseLabel7} @SWEET7_15929

:SWEET7_15821
if 
  540@ == 0
goto_if_false @SWEET7_15846
534@ = 27

:SWEET7_15846
if 
  540@ == 1
goto_if_false @SWEET7_15871
534@ = 28

:SWEET7_15871
539@ = 32
goto @SWEET7_15929

:SWEET7_15885
534@ = 0
Text.PrintNow('TWAR619', 6000, 1)
539@ = 0
goto @SWEET7_32138
goto @SWEET7_15929

:SWEET7_15929
if and
  539@ > 40
  50 > 539@
goto_if_false @SWEET7_16168
if 
  537@ == 0
goto_if_false @SWEET7_16168
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_16168 {caseNum1} 41 {caseLabel1} @SWEET7_16035 {caseNum2} 42 {caseLabel2} @SWEET7_16124 {caseNum3} -1 {caseLabel3} @SWEET7_16168 {caseNum4} -1 {caseLabel4} @SWEET7_16168 {caseNum5} -1 {caseLabel5} @SWEET7_16168 {caseNum6} -1 {caseLabel6} @SWEET7_16168 {caseNum7} -1 {caseLabel7} @SWEET7_16168

:SWEET7_16035
if 
  540@ == 0
goto_if_false @SWEET7_16060
534@ = 37

:SWEET7_16060
if 
  540@ == 1
goto_if_false @SWEET7_16085
534@ = 38

:SWEET7_16085
if 
  540@ == 1
goto_if_false @SWEET7_16110
534@ = 39

:SWEET7_16110
539@ = 42
goto @SWEET7_16168

:SWEET7_16124
534@ = 0
Text.PrintNow('TWAR625', 6000, 1)
539@ = 0
goto @SWEET7_32138
goto @SWEET7_16168

:SWEET7_16168
if and
  539@ > 60
  70 > 539@
goto_if_false @SWEET7_16414
if 
  537@ == 0
goto_if_false @SWEET7_16414
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_16414 {caseNum1} 61 {caseLabel1} @SWEET7_16274 {caseNum2} 62 {caseLabel2} @SWEET7_16363 {caseNum3} -1 {caseLabel3} @SWEET7_16414 {caseNum4} -1 {caseLabel4} @SWEET7_16414 {caseNum5} -1 {caseLabel5} @SWEET7_16414 {caseNum6} -1 {caseLabel6} @SWEET7_16414 {caseNum7} -1 {caseLabel7} @SWEET7_16414

:SWEET7_16274
if 
  540@ == 0
goto_if_false @SWEET7_16299
534@ = 61

:SWEET7_16299
if 
  540@ == 1
goto_if_false @SWEET7_16324
534@ = 62

:SWEET7_16324
if 
  540@ == 2
goto_if_false @SWEET7_16349
534@ = 63

:SWEET7_16349
539@ = 62
goto @SWEET7_16414

:SWEET7_16363
534@ = 0
Text.ClearPrints
Text.PrintNow('TWAR627', 8000, 1)
Char.Delete(98@)
539@ = 0
goto @SWEET7_32138
goto @SWEET7_16414

:SWEET7_16414
if 
  53@ == 4
goto_if_false @SWEET7_16922
53@ = 5
if 
  not Car.IsDead(78@)
goto_if_false @SWEET7_16479
Car.CloseAllDoors(78@)
Car.FreezePosition(78@, False)
Car.LockDoors(78@, CarLock.LockoutPlayerOnly)
Car.MarkAsNoLongerNeeded(78@)

:SWEET7_16479
World.ClearArea(894.0744, -1073.497, 23.3203, 125.0, True)
Player.SetControl($player1, False)
76@ = Car.Create(445, 897.3787, -1073.502, 23.3203)
Car.SetHeading(76@, 90.2)
Car.ChangeColor(76@, 25, 40)
Car.LockDoors(76@, CarLock.LockoutPlayerOnly)
Car.SetProofs(76@, True, True, True, True, True)
Streaming.MarkModelAsNoLongerNeeded(445)
98@ = Char.CreateAsPassenger(76@, PedType.Mission1, 104, 0)
101@ = Char.CreateInsideCar(76@, PedType.Mission1, 103)
Char.GiveWeapon(101@, WeaponType.MicroUzi, 2000)
Char.SetDecisionMaker(98@, 92@)
Char.SetDecisionMaker(101@, 92@)
Char.SetHealth(98@, 260)
Char.SetMaxHealth(98@, 300)
Char.SetAccuracy(98@, 100)
Char.AddArmor(98@, 100)
Char.SetOnlyDamagedByPlayer(98@, True)
Char.SetSuffersCriticalHits(98@, False)
Char.SetCanBeShotInVehicle(98@, False)
Char.SetAllowedToDuck(98@, False)
111@ = Char.Create(PedType.Mission1, 103, 876.4128, -1068.866, 23.3745)
Char.SetDecisionMaker(111@, 93@)
Char.SetHeading(111@, 166.6)
Char.GiveWeapon(111@, WeaponType.MicroUzi, 2000)
Char.SetOnlyDamagedByPlayer(111@, True)
Char.SetAccuracy(111@, 90)
Char.SetHealth(111@, 120)
112@ = Char.Create(PedType.Mission1, 103, 922.7446, -1066.214, 23.3203)
Char.SetDecisionMaker(112@, 93@)
Char.SetHeading(112@, 66.6)
Char.GiveWeapon(112@, WeaponType.MicroUzi, 2000)
Char.SetShootRate(112@, 15)
Char.SetOnlyDamagedByPlayer(112@, True)
Char.SetAccuracy(112@, 90)
Char.SetHealth(112@, 120)
113@ = Char.Create(PedType.Mission1, 103, 922.4503, -1117.908, 23.0517)
Char.SetDecisionMaker(113@, 93@)
Char.SetHeading(113@, 357.6)
Char.GiveWeapon(113@, WeaponType.MicroUzi, 2000)
Char.SetShootRate(113@, 15)
Char.SetOnlyDamagedByPlayer(113@, True)
Char.SetAccuracy(113@, 90)
Char.SetHealth(113@, 120)

:SWEET7_16922
if 
  71@ == 0
goto_if_false @SWEET7_17438
if and
  53@ > 4
  999 > 53@
goto_if_false @SWEET7_17438
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_17005
$sw7_kanehealth = Char.GetHealth(98@)
set_var_int_to_var_int $sweet6_contact_blip = $sw7_kanehealth
$sweet6_contact_blip /= 3

:SWEET7_17005
if 
  132@ == 0
goto_if_false @SWEET7_17392
if 
  Char.IsDead(98@)
goto_if_false @SWEET7_17392
Blip.Remove(40@)
gosub @SWEET7_31126
Text.ClearPrints
71@ = 1
62@ = 99
63@ = 99
64@ = 99
539@ = 1
if 
  not Car.IsDead(79@)
goto_if_false @SWEET7_17198
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_17198
Car.LockDoors(79@, CarLock.Unlocked)
Car.LockDoors(79@, CarLock.LockoutPlayerOnly)
Char.ClearTasks($sweet)
87@ = Sequence.Open()
Task.GoStraightToCoord(-1, 930.8062, -1114.459, 23.094, MoveState.Run, 10000)
Task.EnterCarAsPassenger(-1, 79@, 30000, -1)
Sequence.Close(87@)
Char.PerformSequence($sweet, 87@)
Sequence.Clear(87@)

:SWEET7_17198
if 
  not Char.IsDead(81@)
goto_if_false @SWEET7_17295
Char.ClearTasks(81@)
300@ = Sequence.Open()
Task.GoStraightToCoord(-1, 945.3914, -1100.376, 23.2999, MoveState.Run, -1)
Task.AimGunAtCoord(-1, 969.3931, -1098.341, 22.877, 120000)
Task.StayInSamePlace(-1, True)
Sequence.Close(300@)
Char.PerformSequence(81@, 300@)
Sequence.Clear(300@)

:SWEET7_17295
if 
  not Char.IsDead(82@)
goto_if_false @SWEET7_17392
Char.ClearTasks(82@)
299@ = Sequence.Open()
Task.GoStraightToCoord(-1, 944.9411, -1106.773, 23.2539, MoveState.Run, -1)
Task.AimGunAtCoord(-1, 970.9636, -1107.962, 22.8672, 120000)
Task.StayInSamePlace(-1, True)
Sequence.Close(299@)
Char.PerformSequence(82@, 299@)
Sequence.Clear(299@)

:SWEET7_17392
if 
  132@ > 0
goto_if_false @SWEET7_17438
if 
  Char.IsDead(98@)
goto_if_false @SWEET7_17438
Blip.Remove(40@)
71@ = 4

:SWEET7_17438
if 
  71@ == 4
goto_if_false @SWEET7_17600
if 
  not Car.IsDead(79@)
goto_if_false @SWEET7_17600
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_17600
if 
  Char.IsSittingInCar($sweet, 79@)
goto_if_false @SWEET7_17600
Car.LockDoors(79@, CarLock.Unlocked)
if 
  Char.IsSittingInCar($scplayer, 79@)
goto_if_false @SWEET7_17600
276@ = 1
Char.ClearTasks($sweet)
Blip.Remove(43@)
271@ = Blip.AddForCoord(2501.634, -1674.131, 12.3689)
Game.SetPoliceIgnorePlayer($player1, False)
Camera.SetBehindPlayer
71@ = 8
44@ = 0
539@ = 1

:SWEET7_17600
if 
  71@ == 8
goto_if_false @SWEET7_18393
if 
  132@ == 0
goto_if_false @SWEET7_17793
if 
  539@ > 0
goto_if_false @SWEET7_17793
if 
  537@ == 0
goto_if_false @SWEET7_17793
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_17793 {caseNum1} 1 {caseLabel1} @SWEET7_17735 {caseNum2} 2 {caseLabel2} @SWEET7_17756 {caseNum3} -1 {caseLabel3} @SWEET7_17793 {caseNum4} -1 {caseLabel4} @SWEET7_17793 {caseNum5} -1 {caseLabel5} @SWEET7_17793 {caseNum6} -1 {caseLabel6} @SWEET7_17793 {caseNum7} -1 {caseLabel7} @SWEET7_17793

:SWEET7_17735
534@ = 69
539@ = 2
goto @SWEET7_17793

:SWEET7_17756
534@ = 0
Text.PrintNow('TWAR646', 6000, 1)
539@ = 0
goto @SWEET7_17793

:SWEET7_17793
if 
  132@ > 0
goto_if_false @SWEET7_18012
if 
  539@ > 0
goto_if_false @SWEET7_18012
if 
  537@ == 0
goto_if_false @SWEET7_18012
switch_start 539@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET7_18012 {caseNum1} 1 {caseLabel1} @SWEET7_17910 {caseNum2} 2 {caseLabel2} @SWEET7_17931 {caseNum3} 3 {caseLabel3} @SWEET7_17952 {caseNum4} 4 {caseLabel4} @SWEET7_17973 {caseNum5} -1 {caseLabel5} @SWEET7_18012 {caseNum6} -1 {caseLabel6} @SWEET7_18012 {caseNum7} -1 {caseLabel7} @SWEET7_18012

:SWEET7_17910
534@ = 64
539@ = 2
goto @SWEET7_18012

:SWEET7_17931
534@ = 65
539@ = 3
goto @SWEET7_18012

:SWEET7_17952
534@ = 66
539@ = 4
goto @SWEET7_18012

:SWEET7_17973
534@ = 0
Text.ClearPrints
Text.PrintNow('TWAR646', 6000, 1)
539@ = 0
goto @SWEET7_18012

:SWEET7_18012
if 
  not Car.IsDead(79@)
goto_if_false @SWEET7_18393
if 
  44@ == 0
goto_if_false @SWEET7_18117
if 
  not Char.IsInCar($scplayer, 79@)
goto_if_false @SWEET7_18117
539@ = 0
43@ = Blip.AddForCar(79@)
Blip.SetAsFriendly(43@, True)
Blip.Remove(271@)
Text.ClearPrints
Text.PrintNow('TWAR645', 6000, 1)
44@ = 1

:SWEET7_18117
if 
  44@ == 1
goto_if_false @SWEET7_18211
if 
  Char.IsInCar($scplayer, 79@)
goto_if_false @SWEET7_18211
Blip.Remove(43@)
271@ = Blip.AddForCoord(2501.634, -1674.131, 12.3689)
Game.SetPoliceIgnorePlayer($player1, False)
Text.ClearPrints
Text.PrintNow('TWAR647', 8000, 1)
44@ = 0

:SWEET7_18211
34@ = Streaming.GetAreaVisible()
if 
  34@ == 0
goto_if_false @SWEET7_18254
if 
  not Game.IsMinigameInProgress
goto_if_false @SWEET7_18254
Player.SetControl($player1, True)

:SWEET7_18254
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_18393
if 
  Char.IsSittingInCar($sweet, 79@)
goto_if_false @SWEET7_18393
if 
  Char.IsInCar($scplayer, 79@)
goto_if_false @SWEET7_18393
if 
  Char.LocateInCar3D($scplayer, 2501.634, -1674.131, 12.3689, 4.0, 4.0, 4.0, True)
goto_if_false @SWEET7_18393
Player.SetControl($player1, False)
if 
  Car.IsStopped(79@)
goto_if_false @SWEET7_18393
Blip.Remove(271@)
Text.ClearPrints
71@ = 74

:SWEET7_18393
if 
  71@ == 74
goto_if_false @SWEET7_18599
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
World.ClearArea(2501.634, -1674.131, 12.3689, 5.0, True)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2499.582, -1682.395, 15.2226, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2499.969, -1681.485, 15.079, SwitchType.JumpCut)
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_18578
85@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 2516.634, -1673.847, 13.9671, MoveState.Walk, 20000)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(85@)
Char.PerformSequence($sweet, 85@)
Sequence.Clear(85@)

:SWEET7_18578
TIMERB = 0
539@ = 1
71@ = 77

:SWEET7_18599
if 
  71@ == 77
goto_if_false @SWEET7_18807
if 
  539@ > 0
goto_if_false @SWEET7_18807
if 
  537@ == 0
goto_if_false @SWEET7_18807
switch_start 539@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET7_18807 {caseNum1} 1 {caseLabel1} @SWEET7_18716 {caseNum2} 2 {caseLabel2} @SWEET7_18737 {caseNum3} 3 {caseLabel3} @SWEET7_18758 {caseNum4} 4 {caseLabel4} @SWEET7_18779 {caseNum5} -1 {caseLabel5} @SWEET7_18807 {caseNum6} -1 {caseLabel6} @SWEET7_18807 {caseNum7} -1 {caseLabel7} @SWEET7_18807

:SWEET7_18716
534@ = 70
539@ = 2
goto @SWEET7_18807

:SWEET7_18737
534@ = 71
539@ = 3
goto @SWEET7_18807

:SWEET7_18758
534@ = 72
539@ = 4
goto @SWEET7_18807

:SWEET7_18779
534@ = 0
71@ = 80
539@ = 0
goto @SWEET7_18807

:SWEET7_18807
if 
  71@ == 80
goto_if_false @SWEET7_18861
Camera.SetBehindPlayer
Char.Delete($sweet)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Text.ClearPrints
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
goto @SWEET7_32156

:SWEET7_18861
if 
  53@ == 5
goto_if_false @SWEET7_19161
Player.SetControl($player1, False)
wait 0
Camera.DoFade(1500, Fade.Out)

:SWEET7_18897
if 
  Camera.GetFadingStatus
goto_if_false @SWEET7_18921
wait 0
goto @SWEET7_18897

:SWEET7_18921
Player.SetControl($player1, False)
if 
  not Char.IsDead(81@)
goto_if_false @SWEET7_18951
Char.SetSuffersCriticalHits(81@, False)

:SWEET7_18951
if 
  not Char.IsDead(82@)
goto_if_false @SWEET7_18974
Char.SetSuffersCriticalHits(82@, False)

:SWEET7_18974
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_18995
Char.ClearTasks($sweet)

:SWEET7_18995
Hud.SwitchWidescreen(True)
Char.SetCoordinates($scplayer, 816.8154, -1075.383, 23.3516)
Char.SetHeading($scplayer, 277.0)
Camera.SetFixedPosition(822.0925, -1077.878, 23.6895, 0.0, 0.0, 0.0)
Camera.PointAtPoint(821.1437, -1077.566, 23.7335, SwitchType.JumpCut)
Streaming.LoadScene(803.9182, -1078.626, 23.3515)
wait 1000
Camera.DoFade(1000, Fade.In)

:SWEET7_19109
if 
  Camera.GetFadingStatus
goto_if_false @SWEET7_19133
wait 0
goto @SWEET7_19109

:SWEET7_19133
53@ = 6
539@ = 1
TIMERA = 0
TIMERB = 0

:SWEET7_19161
if 
  53@ == 6
goto_if_false @SWEET7_19987
if 
  539@ > 0
goto_if_false @SWEET7_19411
if 
  537@ == 0
goto_if_false @SWEET7_19411
switch_start 539@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET7_19411 {caseNum1} 1 {caseLabel1} @SWEET7_19278 {caseNum2} 2 {caseLabel2} @SWEET7_19292 {caseNum3} 3 {caseLabel3} @SWEET7_19351 {caseNum4} 4 {caseLabel4} @SWEET7_19372 {caseNum5} -1 {caseLabel5} @SWEET7_19411 {caseNum6} -1 {caseLabel6} @SWEET7_19411 {caseNum7} -1 {caseLabel7} @SWEET7_19411

:SWEET7_19278
539@ = 2
goto @SWEET7_19411

:SWEET7_19292
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_19337
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_19337
Char.ClearTasks($sweet)
Task.TurnCharToFaceChar($sweet, 98@)

:SWEET7_19337
539@ = 3
goto @SWEET7_19411

:SWEET7_19351
534@ = 34
539@ = 4
goto @SWEET7_19411

:SWEET7_19372
534@ = 0
Text.PrintHelp('TWAR661')
546@ = 1
539@ = 0
goto @SWEET7_19411

:SWEET7_19411
if 
  TIMERB > 10000
goto_if_false @SWEET7_19475
if 
  546@ == 1
goto_if_false @SWEET7_19475
Text.ClearHelp
Text.PrintHelp('TWAR662')
546@ = 2
TIMERB = 0

:SWEET7_19475
if 
  546@ == 2
goto_if_false @SWEET7_19987
if 
  TIMERB > 8000
goto_if_false @SWEET7_19987
Text.ClearHelp
Camera.SetFixedPosition(891.9803, -1068.343, 23.6669, 0.0, 0.0, 0.0)
Camera.PointAtPoint(891.3828, -1069.141, 23.7373, SwitchType.JumpCut)
37@ = 1
if 
  75@ == 0
goto_if_false @SWEET7_19688
if 
  not Car.IsDead(76@)
goto_if_false @SWEET7_19688
if 
  not Char.IsDead(101@)
goto_if_false @SWEET7_19688
Task.CarDriveToCoord(101@, 76@, 875.3232, -1073.502, 23.3364, 10.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
if 
  537@ == 0
goto_if_false @SWEET7_19681
534@ = 40

:SWEET7_19681
75@ = 1

:SWEET7_19688
if 
  not Car.IsDead(76@)
goto_if_false @SWEET7_19987
if 
  not Char.IsDead(101@)
goto_if_false @SWEET7_19987
if 
  Car.Locate3D(76@, 875.3232, -1071.941, 23.3364, 3.0, 3.0, 3.0, False)
goto_if_false @SWEET7_19987
if 
  Car.IsStopped(76@)
goto_if_false @SWEET7_19987
53@ = 7
if 
  537@ == 0
goto_if_false @SWEET7_19816
545@ = 0

:SWEET7_19816
Camera.SetFixedPosition(871.9701, -1069.503, 25.6673, 0.0, 0.0, 0.0)
Camera.PointAtPoint(872.7517, -1070.042, 25.353, SwitchType.JumpCut)
Car.LockDoors(76@, CarLock.Unlocked)
Car.SetProofs(76@, False, False, False, False, False)
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_19980
99@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 869.1639, -1071.619, 25.2208, MoveState.Walk, 10000)
Task.GoStraightToCoord(-1, 892.7105, -1077.929, 23.2684, MoveState.Walk, 10000)
Sequence.Close(99@)
Char.PerformSequence(98@, 99@)
Sequence.Clear(99@)

:SWEET7_19980
TIMERA = 0

:SWEET7_19987
if 
  53@ == 7
goto_if_false @SWEET7_20131
if 
  TIMERA > 2000
goto_if_false @SWEET7_20131
if 
  not Char.IsDead(101@)
goto_if_false @SWEET7_20115
102@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 873.9978, -1077.988, 23.3203, MoveState.Walk, 10000)
Task.GoStraightToCoord(-1, 833.1347, -1095.187, 22.8281, MoveState.Walk, 10000)
Sequence.Close(102@)
Char.PerformSequence(101@, 102@)
Sequence.Clear(102@)

:SWEET7_20115
Text.ClearPrints
53@ = 8
539@ = 1

:SWEET7_20131
if 
  53@ == 8
goto_if_false @SWEET7_20337
if 
  539@ > 0
goto_if_false @SWEET7_20311
if 
  537@ == 0
goto_if_false @SWEET7_20311
switch_start 539@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SWEET7_20311 {caseNum1} 1 {caseLabel1} @SWEET7_20248 {caseNum2} 2 {caseLabel2} @SWEET7_20269 {caseNum3} 3 {caseLabel3} @SWEET7_20290 {caseNum4} -1 {caseLabel4} @SWEET7_20311 {caseNum5} -1 {caseLabel5} @SWEET7_20311 {caseNum6} -1 {caseLabel6} @SWEET7_20311 {caseNum7} -1 {caseLabel7} @SWEET7_20311

:SWEET7_20248
534@ = 41
539@ = 2
goto @SWEET7_20311

:SWEET7_20269
534@ = 42
539@ = 3
goto @SWEET7_20311

:SWEET7_20290
534@ = 0
539@ = 0
goto @SWEET7_20311

:SWEET7_20311
if 
  TIMERA > 8000
goto_if_false @SWEET7_20337
53@ = 10

:SWEET7_20337
if 
  53@ == 10
goto_if_false @SWEET7_20980
37@ = 0
539@ = 0
270@ = 99
Char.SetCoordinates($scplayer, 817.3972, -1076.164, 23.1065)
if 
  not Char.IsDead(263@)
goto_if_false @SWEET7_20442
Char.SetCoordinates(263@, 820.5947, -1074.517, 23.1755)
Char.SetHeading(263@, 176.0)

:SWEET7_20442
if 
  not Char.IsDead(264@)
goto_if_false @SWEET7_20488
Char.SetCoordinates(264@, 818.3846, -1079.001, 22.929)
Char.SetHeading(264@, 291.0)

:SWEET7_20488
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_20591
Char.ClearTasksImmediately(98@)
if 
  not Char.IsInAnyCar(98@)
goto_if_false @SWEET7_20545
Char.SetCoordinates(98@, 890.4531, -1063.368, 23.7342)

:SWEET7_20545
if 
  Char.IsInAnyCar(98@)
goto_if_false @SWEET7_20581
Char.WarpFromCarToCoord(98@, 890.4531, -1063.368, 23.7342)

:SWEET7_20581
Task.AchieveHeading(98@, 84.0)

:SWEET7_20591
Char.SetHeading($scplayer, 255.0)
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Streaming.RemoveAnimation("SMOKING")
Streaming.RemoveAnimation("GRAVEYARD")
if 
  not Char.IsDead(101@)
goto_if_false @SWEET7_20701
Char.ClearTasksImmediately(101@)
Char.SetCoordinates(101@, 844.5107, -1101.66, 22.8516)
Task.AchieveHeading(101@, 135.0)
Char.GiveWeapon(101@, WeaponType.Pistol, 2000)
Char.AddArmor(101@, 50)

:SWEET7_20701
if 
  not Car.IsDead(76@)
goto_if_false @SWEET7_20769
Car.SetCoordinates(76@, 875.3232, -1073.502, 23.3364)
Car.SetHeading(76@, 89.0)
Car.LockDoors(76@, CarLock.Unlocked)
Car.SetProofs(76@, False, False, False, False, False)

:SWEET7_20769
Player.SetControl($player1, True)
Group.SetFollowStatus(260@, True)
if 
  not Char.IsDead(263@)
goto_if_false @SWEET7_20833
if 
  not Char.IsGroupMember(263@, 260@)
goto_if_false @SWEET7_20833
Group.SetMember(260@, 263@)
Char.SetNeverLeavesGroup(263@, True)

:SWEET7_20833
if 
  not Char.IsDead(264@)
goto_if_false @SWEET7_20883
if 
  not Char.IsGroupMember(264@, 260@)
goto_if_false @SWEET7_20883
Group.SetMember(260@, 264@)
Char.SetNeverLeavesGroup(264@, True)

:SWEET7_20883
if 
  not Char.IsDead(101@)
goto_if_false @SWEET7_20912
Char.SetDecisionMaker(101@, 93@)
Char.ClearTasks(101@)

:SWEET7_20912
Task.StayInSamePlace(101@, True)
53@ = 15
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_20957
40@ = Blip.AddForChar(98@)
Blip.ChangeColor(40@, BlipColor.Red)

:SWEET7_20957
if 
  not Car.IsDead(78@)
goto_if_false @SWEET7_20978
Car.Delete(78@)

:SWEET7_20978
Text.ClearHelp

:SWEET7_20980
if 
  53@ == 15
goto_if_false @SWEET7_21530
Game.SetPoliceIgnorePlayer($player1, True)
if 
  not Char.IsDead(101@)
goto_if_false @SWEET7_21436
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_21131
84@ = Sequence.Open()
Task.GoStraightToCoord(-1, 832.3179, -1081.627, 22.9332, MoveState.Run, 10000)
Task.GoToCoordWhileShooting(-1, 833.9351, -1101.966, 22.8281, 6, 100.0, 1.0, 101@)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 101@)
Sequence.Close(84@)
Char.PerformSequence($sweet, 84@)
Sequence.Clear(84@)

:SWEET7_21131
if 
  not Char.IsDead(81@)
goto_if_false @SWEET7_21246
Char.ClearTasks(81@)
88@ = Sequence.Open()
Task.GoStraightToCoord(-1, 828.6603, -1080.408, 23.03, MoveState.Sprint, 10000)
Task.GoToCoordWhileShooting(-1, 832.5559, -1104.067, 22.8281, 7, 100.0, 1.0, 101@)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 101@)
Sequence.Close(88@)
Char.PerformSequence(81@, 88@)
Sequence.Clear(88@)

:SWEET7_21246
if 
  not Char.IsDead(82@)
goto_if_false @SWEET7_21361
Char.ClearTasks(82@)
90@ = Sequence.Open()
Task.GoStraightToCoord(-1, 832.2366, -1077.225, 23.1896, MoveState.Sprint, 10000)
Task.GoToCoordWhileShooting(-1, 835.7187, -1097.325, 22.8784, 7, 100.0, 1.0, 101@)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 101@)
Sequence.Close(90@)
Char.PerformSequence(82@, 90@)
Sequence.Clear(90@)

:SWEET7_21361
gosub @SWEET7_30356
if 
  not Char.IsDead(101@)
goto_if_false @SWEET7_21436
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_21436
104@ = Sequence.Open()
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $sweet)
Sequence.Close(104@)
Char.PerformSequence(101@, 104@)
Sequence.Clear(104@)

:SWEET7_21436
if 
  54@ == 1
goto_if_false @SWEET7_21496
if 
  not Char.IsDead(97@)
goto_if_false @SWEET7_21475
Char.Delete(97@)

:SWEET7_21475
if 
  not Char.IsDead(96@)
goto_if_false @SWEET7_21496
Char.Delete(96@)

:SWEET7_21496
TIMERB = 0
61@ = 1
539@ = 1
540@ = Math.RandomIntInRange(0, 3)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:SWEET7_21530
if 
  61@ == 1
goto_if_false @SWEET7_22126
if 
  539@ > 0
goto_if_false @SWEET7_21773
if 
  537@ == 0
goto_if_false @SWEET7_21773
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_21773 {caseNum1} 1 {caseLabel1} @SWEET7_21647 {caseNum2} 2 {caseLabel2} @SWEET7_21736 {caseNum3} -1 {caseLabel3} @SWEET7_21773 {caseNum4} -1 {caseLabel4} @SWEET7_21773 {caseNum5} -1 {caseLabel5} @SWEET7_21773 {caseNum6} -1 {caseLabel6} @SWEET7_21773 {caseNum7} -1 {caseLabel7} @SWEET7_21773

:SWEET7_21647
if 
  540@ == 0
goto_if_false @SWEET7_21672
534@ = 43

:SWEET7_21672
if 
  540@ == 1
goto_if_false @SWEET7_21697
534@ = 44

:SWEET7_21697
if 
  540@ == 1
goto_if_false @SWEET7_21722
534@ = 45

:SWEET7_21722
539@ = 2
goto @SWEET7_21773

:SWEET7_21736
Text.PrintNow('TWAR636', 8000, 1)
534@ = 0
539@ = 0
goto @SWEET7_21773

:SWEET7_21773
if 
  TIMERB > 6000
goto_if_false @SWEET7_21886
if 
  70@ == 0
goto_if_false @SWEET7_21886
if 
  not Char.IsDead(101@)
goto_if_false @SWEET7_21886
Char.ClearTasks(101@)
Task.PlayAnim(101@, "KO_SHOT_FACE", "PED", 8.0, False, False, False, True, -1)
Char.SetHealth(101@, 0)
70@ = 1
Text.ClearPrints

:SWEET7_21886
if 
  TIMERB > 7000
goto_if_false @SWEET7_22126
if 
  not Char.IsDead(101@)
goto_if_false @SWEET7_21931
Char.ClearTasks(101@)
Task.Die(101@)

:SWEET7_21931
if 
  71@ == 0
goto_if_false @SWEET7_22005
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_22005
Char.ClearTasks($sweet)
Path.FlushRoute
Path.ExtendRoute(872.7859, -1100.792, 22.8437)
65@ = 1
Task.FollowPointRoute($sweet, 6, RouteMode.Once)

:SWEET7_22005
if 
  not Char.IsDead(81@)
goto_if_false @SWEET7_22061
Char.ClearTasks(81@)
Path.FlushRoute
Path.ExtendRoute(882.445, -1102.041, 22.8281)
66@ = 1
Task.FollowPointRoute(81@, 7, RouteMode.Once)

:SWEET7_22061
if 
  not Char.IsDead(82@)
goto_if_false @SWEET7_22117
Char.ClearTasks(82@)
Path.FlushRoute
Path.ExtendRoute(888.5107, -1099.935, 21.8918)
67@ = 1
Task.FollowPointRoute(82@, 7, RouteMode.Once)

:SWEET7_22117
61@ = 2
Text.ClearPrints

:SWEET7_22126
if 
  71@ == 0
goto_if_false @SWEET7_22263
if 
  65@ == 1
goto_if_false @SWEET7_22263
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_22263
if 
  Char.LocateAnyMeans3D($sweet, 872.7859, -1100.792, 22.8437, 3.0, 3.0, 3.0, False)
goto_if_false @SWEET7_22263
Char.ClearTasks($sweet)
Task.GoStraightToCoord($sweet, 875.9534, -1079.515, 23.3203, MoveState.Run, 10000)
65@ = 2

:SWEET7_22263
if 
  66@ == 1
goto_if_false @SWEET7_22382
if 
  not Char.IsDead(81@)
goto_if_false @SWEET7_22382
if 
  Char.LocateAnyMeans3D(81@, 882.445, -1102.041, 22.8281, 5.0, 5.0, 3.0, False)
goto_if_false @SWEET7_22382
Char.ClearTasks(81@)
Task.GoStraightToCoord(81@, 881.3811, -1088.896, 23.1974, MoveState.Run, 10000)
66@ = 2

:SWEET7_22382
if 
  67@ == 1
goto_if_false @SWEET7_22501
if 
  not Char.IsDead(82@)
goto_if_false @SWEET7_22501
if 
  Char.LocateAnyMeans3D(82@, 888.5107, -1099.935, 21.8918, 5.0, 5.0, 3.0, False)
goto_if_false @SWEET7_22501
Char.ClearTasks(82@)
Task.GoStraightToCoord(82@, 893.6727, -1077.295, 23.2759, MoveState.Sprint, 10000)
67@ = 2

:SWEET7_22501
if 
  61@ > 0
goto_if_false @SWEET7_22975
if 
  71@ == 0
goto_if_false @SWEET7_22683
if 
  64@ == 0
goto_if_false @SWEET7_22683
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_22683
if 
  Char.LocateAnyMeans3D($sweet, 875.9534, -1079.515, 23.3203, 2.0, 2.0, 3.0, False)
goto_if_false @SWEET7_22683
Char.ClearTasks($sweet)
if 
  not Char.IsDead(105@)
goto_if_false @SWEET7_22676
86@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.KillCharOnFoot(-1, 105@)
Sequence.Close(86@)
Char.PerformSequence($sweet, 86@)
Sequence.Clear(86@)

:SWEET7_22676
64@ = 1

:SWEET7_22683
if 
  62@ == 0
goto_if_false @SWEET7_22829
if 
  not Char.IsDead(81@)
goto_if_false @SWEET7_22829
if 
  Char.LocateAnyMeans3D(81@, 881.3811, -1088.896, 23.1974, 5.0, 5.0, 3.0, False)
goto_if_false @SWEET7_22829
Char.ClearTasks(81@)
if 
  not Char.IsDead(107@)
goto_if_false @SWEET7_22822
89@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.KillCharOnFoot(-1, 107@)
Sequence.Close(89@)
Char.PerformSequence(81@, 89@)
Sequence.Clear(89@)

:SWEET7_22822
62@ = 1

:SWEET7_22829
if 
  63@ == 0
goto_if_false @SWEET7_22975
if 
  not Char.IsDead(82@)
goto_if_false @SWEET7_22975
if 
  Char.LocateAnyMeans3D(82@, 893.6727, -1077.295, 23.2759, 5.0, 5.0, 3.0, False)
goto_if_false @SWEET7_22975
Char.ClearTasks(82@)
if 
  not Char.IsDead(109@)
goto_if_false @SWEET7_22968
91@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.KillCharOnFoot(-1, 109@)
Sequence.Close(91@)
Char.PerformSequence(82@, 91@)
Sequence.Clear(91@)

:SWEET7_22968
63@ = 1

:SWEET7_22975
if 
  62@ == 1
goto_if_false @SWEET7_23061
if 
  Char.IsDead(107@)
goto_if_false @SWEET7_23061
if 
  not Char.IsDead(111@)
goto_if_false @SWEET7_23054
if 
  not Char.IsDead(81@)
goto_if_false @SWEET7_23054
Char.ClearTasks(81@)
Task.KillCharOnFoot(81@, 111@)

:SWEET7_23054
62@ = 2

:SWEET7_23061
if 
  63@ == 1
goto_if_false @SWEET7_23147
if 
  Char.IsDead(109@)
goto_if_false @SWEET7_23140
if 
  not Char.IsDead(112@)
goto_if_false @SWEET7_23140
if 
  not Char.IsDead(82@)
goto_if_false @SWEET7_23140
Char.ClearTasks(82@)
Task.KillCharOnFoot(82@, 112@)

:SWEET7_23140
63@ = 2

:SWEET7_23147
if 
  71@ == 0
goto_if_false @SWEET7_23269
if 
  132@ == 0
goto_if_false @SWEET7_23269
if 
  64@ == 1
goto_if_false @SWEET7_23269
if 
  Char.IsDead(105@)
goto_if_false @SWEET7_23269
if 
  not Char.IsDead(113@)
goto_if_false @SWEET7_23262
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_23262
Char.ClearTasks($sweet)
Task.KillCharOnFoot($sweet, 113@)

:SWEET7_23262
64@ = 2

:SWEET7_23269
if 
  62@ == 2
goto_if_false @SWEET7_23355
if 
  Char.IsDead(111@)
goto_if_false @SWEET7_23355
if 
  not Char.IsDead(81@)
goto_if_false @SWEET7_23355
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_23348
Char.ClearTasks(81@)
Task.KillCharOnFoot(81@, 98@)

:SWEET7_23348
62@ = 3

:SWEET7_23355
if 
  63@ == 2
goto_if_false @SWEET7_23441
if 
  Char.IsDead(112@)
goto_if_false @SWEET7_23441
if 
  not Char.IsDead(82@)
goto_if_false @SWEET7_23441
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_23434
Char.ClearTasks(82@)
Task.KillCharOnFoot(82@, 98@)

:SWEET7_23434
63@ = 3

:SWEET7_23441
if 
  71@ == 0
goto_if_false @SWEET7_23563
if 
  132@ == 0
goto_if_false @SWEET7_23563
if 
  64@ == 2
goto_if_false @SWEET7_23563
if 
  Char.IsDead(113@)
goto_if_false @SWEET7_23563
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_23563
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_23556
Char.ClearTasks($sweet)
Task.KillCharOnFoot($sweet, 98@)

:SWEET7_23556
64@ = 3

:SWEET7_23563
if 
  59@ == 1
goto_if_false @SWEET7_23771
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_23771
if 
  Char.LocateAnyMeans3D(98@, 140@(139@,10f), 150@(139@,10f), 160@(139@,10f), 5.0, 5.0, 5.0, False)
goto_if_false @SWEET7_23685
Char.SetAllowedToDuck(98@, True)
Char.ClearTasks(98@)
Task.KillCharOnFootWhileDucking(98@, $scplayer, 4, 3000, 50)
59@ = 2

:SWEET7_23685
if 
  60@ == 1
goto_if_false @SWEET7_23771
if 
  Char.LocateAnyMeans3D(98@, 140@(139@,10f), 150@(139@,10f), 160@(139@,10f), 20.0, 20.0, 5.0, False)
goto_if_false @SWEET7_23771
gosub @SWEET7_30054
60@ = 2

:SWEET7_23771
if 
  59@ == 3
goto_if_false @SWEET7_24008
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_24008
if 
  Char.LocateAnyMeans3D(98@, 140@(139@,10f), 150@(139@,10f), 160@(139@,10f), 5.0, 5.0, 5.0, False)
goto_if_false @SWEET7_23922
Char.ClearTasks(98@)
Task.KillCharOnFootWhileDucking(98@, $scplayer, 4, 3000, 50)
if 
  not Char.IsDead(112@)
goto_if_false @SWEET7_23915
Char.ClearTasks(112@)
Task.KillCharOnFootWhileDucking(112@, $scplayer, 4, 3000, 50)

:SWEET7_23915
59@ = 4

:SWEET7_23922
if 
  60@ == 2
goto_if_false @SWEET7_24008
if 
  Char.LocateAnyMeans3D(98@, 140@(139@,10f), 150@(139@,10f), 160@(139@,10f), 20.0, 20.0, 5.0, False)
goto_if_false @SWEET7_24008
gosub @SWEET7_30054
60@ = 3

:SWEET7_24008
if 
  59@ == 5
goto_if_false @SWEET7_24123
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_24123
if 
  Char.LocateAnyMeans3D(98@, 140@(139@,10f), 150@(139@,10f), 160@(139@,10f), 5.0, 5.0, 5.0, False)
goto_if_false @SWEET7_24123
Char.ClearTasks(98@)
Task.KillCharOnFootWhileDucking(98@, $scplayer, 4, 3000, 50)
59@ = 6

:SWEET7_24123
if 
  59@ == 7
goto_if_false @SWEET7_24238
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_24238
if 
  Char.LocateAnyMeans3D(98@, 140@(139@,10f), 150@(139@,10f), 160@(139@,10f), 5.0, 5.0, 5.0, False)
goto_if_false @SWEET7_24238
Char.ClearTasks(98@)
Task.StayInSamePlace(98@, False)
Task.KillCharOnFoot(98@, $scplayer)
59@ = 8

:SWEET7_24238
if 
  53@ == 20
goto_if_false @SWEET7_24748
if 
  53@ <> 25
goto_if_false @SWEET7_24363
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_24363
if 
  Char.LocateAnyMeansChar2D($scplayer, 98@, 20.0, 20.0, False)
goto_if_false @SWEET7_24363
53@ = 25
139@ += 1
gosub @SWEET7_29974
59@ = 1
60@ = 1
TIMERA = 0

:SWEET7_24363
if 
  53@ <> 25
goto_if_false @SWEET7_24451
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_24451
if 
  Char.HasBeenDamagedByChar(98@, $scplayer)
goto_if_false @SWEET7_24451
53@ = 25
139@ += 1
gosub @SWEET7_29974
59@ = 1
60@ = 1

:SWEET7_24451
if 
  53@ <> 25
goto_if_false @SWEET7_24527
if 
  Char.IsDead(105@)
goto_if_false @SWEET7_24527
56@ = 1
53@ = 25
139@ += 1
gosub @SWEET7_29974
59@ = 1
60@ = 1

:SWEET7_24527
if 
  53@ <> 25
goto_if_false @SWEET7_24603
if 
  Char.IsDead(107@)
goto_if_false @SWEET7_24603
57@ = 1
53@ = 25
139@ += 1
gosub @SWEET7_29974
59@ = 1
60@ = 1

:SWEET7_24603
if 
  53@ <> 25
goto_if_false @SWEET7_24679
if 
  Char.IsDead(109@)
goto_if_false @SWEET7_24679
58@ = 1
53@ = 25
139@ += 1
gosub @SWEET7_29974
59@ = 1
60@ = 1

:SWEET7_24679
if 
  53@ <> 25
goto_if_false @SWEET7_24748
if 
  Char.IsDead(111@)
goto_if_false @SWEET7_24748
53@ = 25
139@ += 1
gosub @SWEET7_29974
59@ = 1
60@ = 1

:SWEET7_24748
if 
  53@ == 25
goto_if_false @SWEET7_24972
if 
  59@ == 2
goto_if_false @SWEET7_24972
if 
  53@ <> 30
goto_if_false @SWEET7_24884
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_24884
if 
  Char.LocateAnyMeansChar2D($scplayer, 98@, 20.0, 20.0, False)
goto_if_false @SWEET7_24884
53@ = 30
139@ += 1
gosub @SWEET7_29974
59@ = 3
60@ = 2

:SWEET7_24884
if 
  53@ <> 30
goto_if_false @SWEET7_24972
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_24972
if 
  Char.HasBeenDamagedByChar(98@, $scplayer)
goto_if_false @SWEET7_24972
53@ = 30
139@ += 1
gosub @SWEET7_29974
59@ = 3
60@ = 2

:SWEET7_24972
if 
  53@ == 30
goto_if_false @SWEET7_25182
if 
  59@ == 4
goto_if_false @SWEET7_25182
if 
  53@ <> 35
goto_if_false @SWEET7_25101
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_25101
if 
  Char.LocateAnyMeansChar2D($scplayer, 98@, 20.0, 20.0, False)
goto_if_false @SWEET7_25101
53@ = 35
139@ += 1
gosub @SWEET7_29974
59@ = 5

:SWEET7_25101
if 
  53@ <> 35
goto_if_false @SWEET7_25182
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_25182
if 
  Char.HasBeenDamagedByChar(98@, $scplayer)
goto_if_false @SWEET7_25182
53@ = 35
139@ += 1
gosub @SWEET7_29974
59@ = 5

:SWEET7_25182
if 
  53@ == 35
goto_if_false @SWEET7_25406
if 
  59@ == 6
goto_if_false @SWEET7_25406
if 
  53@ <> 40
goto_if_false @SWEET7_25318
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_25318
if 
  Char.LocateAnyMeansChar2D($scplayer, 98@, 10.0, 10.0, False)
goto_if_false @SWEET7_25318
53@ = 40
139@ += 1
gosub @SWEET7_29974
59@ = 7
53@ = 50

:SWEET7_25318
if 
  53@ <> 40
goto_if_false @SWEET7_25406
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_25406
if 
  Char.HasBeenDamagedByChar(98@, $scplayer)
goto_if_false @SWEET7_25406
53@ = 40
139@ += 1
gosub @SWEET7_29974
59@ = 7
53@ = 50

:SWEET7_25406
if 
  53@ == 50
goto_if_false @SWEET7_25671
77@ = Car.Create(492, 960.0995, -1032.099, 29.0858)
Car.SetHeading(77@, 180.4729)
Car.ChangeColor(77@, 0, 2)
Car.SetCanBurstTires(77@, False)
122@ = Char.CreateInsideCar(77@, PedType.CivMale, 103)
Char.SetSuffersCriticalHits(122@, False)
Char.SetDecisionMaker(122@, 93@)
117@ = Char.CreateAsPassenger(77@, PedType.Mission1, 103, 1)
Char.SetDecisionMaker(117@, 93@)
Char.GiveWeapon(117@, WeaponType.Shotgun, 2000)
Char.SetShootRate(117@, 15)
119@ = Char.CreateAsPassenger(77@, PedType.Mission1, 102, 2)
Char.SetDecisionMaker(119@, 93@)
Char.GiveWeapon(119@, WeaponType.MicroUzi, 2000)
Char.SetShootRate(119@, 15)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(103)
Car.LockDoors(77@, CarLock.LockoutPlayerOnly)
if 
  not Char.IsDead(122@)
goto_if_false @SWEET7_25671
if 
  not Car.IsDead(77@)
goto_if_false @SWEET7_25671
Task.CarDriveToCoord(122@, 77@, 955.9623, -1100.14, 22.7516, 10.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
53@ = 55

:SWEET7_25671
if 
  277@ == 0
goto_if_false @SWEET7_25767
if and
  53@ > 50
  999 > 53@
goto_if_false @SWEET7_25767
if 
  Char.IsDead(122@)
goto_if_false @SWEET7_25767
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_25760
Char.ClearTasks(98@)
Task.KillCharOnFoot(98@, $scplayer)

:SWEET7_25760
277@ = 1

:SWEET7_25767
if 
  53@ == 55
goto_if_false @SWEET7_25954
if 
  not Char.IsDead(122@)
goto_if_false @SWEET7_25954
if 
  not Car.IsDead(77@)
goto_if_false @SWEET7_25954
if 
  Car.Locate3D(77@, 955.9623, -1100.14, 22.7516, 3.0, 3.0, 3.0, False)
goto_if_false @SWEET7_25954
if 
  not Char.IsDead(122@)
goto_if_false @SWEET7_25954
if 
  not Car.IsDead(77@)
goto_if_false @SWEET7_25954
Task.CarDriveToCoord(122@, 77@, 929.9791, -1103.645, 22.8506, 10.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
53@ = 60
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_25954

:SWEET7_25954
if 
  53@ == 60
goto_if_false @SWEET7_26302
if 
  not Car.IsDead(77@)
goto_if_false @SWEET7_26302
if 
  Car.Locate3D(77@, 929.9791, -1103.645, 22.8506, 5.0, 5.0, 3.0, False)
goto_if_false @SWEET7_26302
if 
  Car.IsStopped(77@)
goto_if_false @SWEET7_26302
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_26140
Char.ClearTasks(98@)
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_26140
if 
  not Car.IsDead(77@)
goto_if_false @SWEET7_26140
539@ = 1
540@ = Math.RandomIntInRange(0, 3)
Task.EnterCarAsPassenger(98@, 77@, -2, 0)
53@ = 65

:SWEET7_26140
if 
  not Char.IsDead(117@)
goto_if_false @SWEET7_26221
118@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 916.3773, -1107.937, 23.1694, MoveState.Run, 10000)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(118@)
Char.PerformSequence(117@, 118@)
Sequence.Clear(118@)
53@ = 65

:SWEET7_26221
if 
  not Char.IsDead(119@)
goto_if_false @SWEET7_26302
120@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 918.4471, -1094.806, 23.4897, MoveState.Run, 10000)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(120@)
Char.PerformSequence(119@, 120@)
Sequence.Clear(120@)
53@ = 65

:SWEET7_26302
if 
  53@ == 65
goto_if_false @SWEET7_26913
if 
  539@ > 0
goto_if_false @SWEET7_26545
if 
  537@ == 0
goto_if_false @SWEET7_26545
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_26545 {caseNum1} 1 {caseLabel1} @SWEET7_26419 {caseNum2} 2 {caseLabel2} @SWEET7_26508 {caseNum3} -1 {caseLabel3} @SWEET7_26545 {caseNum4} -1 {caseLabel4} @SWEET7_26545 {caseNum5} -1 {caseLabel5} @SWEET7_26545 {caseNum6} -1 {caseLabel6} @SWEET7_26545 {caseNum7} -1 {caseLabel7} @SWEET7_26545

:SWEET7_26419
if 
  540@ == 0
goto_if_false @SWEET7_26444
534@ = 46

:SWEET7_26444
if 
  540@ == 1
goto_if_false @SWEET7_26469
534@ = 47

:SWEET7_26469
if 
  540@ == 2
goto_if_false @SWEET7_26494
534@ = 48

:SWEET7_26494
539@ = 2
goto @SWEET7_26545

:SWEET7_26508
534@ = 0
Text.PrintNow('TWAR626', 6000, 1)
539@ = 0
goto @SWEET7_26545

:SWEET7_26545
if 
  Char.IsDead(98@)
goto_if_false @SWEET7_26639
if 
  not Car.IsDead(77@)
goto_if_false @SWEET7_26639
if 
  not Char.IsDead(122@)
goto_if_false @SWEET7_26639
Char.ClearTasks(122@)
103@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(103@)
Char.PerformSequence(122@, 103@)
Sequence.Clear(103@)
53@ = 90

:SWEET7_26639
if 
  not Car.IsDead(77@)
goto_if_false @SWEET7_26913
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_26913
if 
  not Char.IsDead(122@)
goto_if_false @SWEET7_26913
if 
  Char.IsSittingInCar(98@, 77@)
goto_if_false @SWEET7_26913
Blip.Remove(40@)
Car.SetTempAction(77@, TempAction.Reverse, 6000)
Car.LockDoors(77@, CarLock.LockoutPlayerOnly)
Char.SetCantBeDraggedOut(98@, True)
Char.SetCantBeDraggedOut(98@, True)
Char.SetStayInCarWhenJacked(98@, True)
53@ = 70
TIMERA = 0
Text.ClearPrints
539@ = 11
540@ = Math.RandomIntInRange(0, 4)
if 
  not Car.IsDead(79@)
goto_if_false @SWEET7_26811
Car.LockDoors(79@, CarLock.Unlocked)
Car.LockDoors(79@, CarLock.LockoutPlayerOnly)

:SWEET7_26811
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_26913
39@ = Blip.AddForChar($sweet)
Blip.SetAsFriendly(39@, True)
Char.ClearTasks($sweet)
121@ = Sequence.Open()
Task.GoStraightToCoord(-1, 930.8062, -1114.459, 23.094, MoveState.Run, 10000)
Task.EnterCarAsPassenger(-1, 79@, 30000, -1)
Sequence.Close(121@)
Char.PerformSequence($sweet, 121@)
Sequence.Clear(121@)
132@ = 1

:SWEET7_26913
if 
  53@ == 70
goto_if_false @SWEET7_27275
if 
  539@ > 10
goto_if_false @SWEET7_27181
if 
  537@ == 0
goto_if_false @SWEET7_27181
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_27181 {caseNum1} 11 {caseLabel1} @SWEET7_27030 {caseNum2} 12 {caseLabel2} @SWEET7_27144 {caseNum3} -1 {caseLabel3} @SWEET7_27181 {caseNum4} -1 {caseLabel4} @SWEET7_27181 {caseNum5} -1 {caseLabel5} @SWEET7_27181 {caseNum6} -1 {caseLabel6} @SWEET7_27181 {caseNum7} -1 {caseLabel7} @SWEET7_27181

:SWEET7_27030
if 
  540@ == 0
goto_if_false @SWEET7_27055
534@ = 49

:SWEET7_27055
if 
  540@ == 1
goto_if_false @SWEET7_27080
534@ = 50

:SWEET7_27080
if 
  540@ == 2
goto_if_false @SWEET7_27105
534@ = 51

:SWEET7_27105
if 
  540@ == 3
goto_if_false @SWEET7_27130
534@ = 52

:SWEET7_27130
539@ = 12
goto @SWEET7_27181

:SWEET7_27144
534@ = 0
Text.PrintNow('TWAR629', 6000, 1)
539@ = 0
goto @SWEET7_27181

:SWEET7_27181
if 
  TIMERA > 5000
goto_if_false @SWEET7_27275
if 
  not Car.IsDead(77@)
goto_if_false @SWEET7_27275
if 
  not Char.IsDead(122@)
goto_if_false @SWEET7_27275
Task.CarDriveToCoord(122@, 77@, 1952.432, -1136.238, 24.621, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Text.ClearPrints
53@ = 75

:SWEET7_27275
if 
  53@ == 75
goto_if_false @SWEET7_27814
if 
  539@ > 10
goto_if_false @SWEET7_27545
if 
  537@ == 0
goto_if_false @SWEET7_27545
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_27545 {caseNum1} 11 {caseLabel1} @SWEET7_27392 {caseNum2} 12 {caseLabel2} @SWEET7_27506 {caseNum3} -1 {caseLabel3} @SWEET7_27545 {caseNum4} -1 {caseLabel4} @SWEET7_27545 {caseNum5} -1 {caseLabel5} @SWEET7_27545 {caseNum6} -1 {caseLabel6} @SWEET7_27545 {caseNum7} -1 {caseLabel7} @SWEET7_27545

:SWEET7_27392
if 
  540@ == 0
goto_if_false @SWEET7_27417
534@ = 49

:SWEET7_27417
if 
  540@ == 1
goto_if_false @SWEET7_27442
534@ = 50

:SWEET7_27442
if 
  540@ == 2
goto_if_false @SWEET7_27467
534@ = 51

:SWEET7_27467
if 
  540@ == 3
goto_if_false @SWEET7_27492
534@ = 52

:SWEET7_27492
539@ = 12
goto @SWEET7_27545

:SWEET7_27506
534@ = 0
Text.ClearPrints
Text.PrintNow('TWAR629', 6000, 1)
539@ = 0
goto @SWEET7_27545

:SWEET7_27545
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_27814
if 
  Char.LocateAnyMeans3D(98@, 1952.432, -1136.238, 24.621, 5.0, 5.0, 5.0, False)
goto_if_false @SWEET7_27668
53@ = 80
if 
  not Car.IsDead(77@)
goto_if_false @SWEET7_27668
if 
  not Char.IsDead(122@)
goto_if_false @SWEET7_27668
Char.ClearTasks(122@)
Task.CarDriveWander(122@, 77@, 30.0, DrivingMode.AvoidCars)

:SWEET7_27668
if 
  not Car.IsDead(77@)
goto_if_false @SWEET7_27814
if 
  not Char.IsInCar(98@, 77@)
goto_if_false @SWEET7_27741
if 
  73@ == 0
goto_if_false @SWEET7_27741
Char.ClearTasks(98@)
Task.KillCharOnFoot(98@, $scplayer)
73@ = 1

:SWEET7_27741
if 
  not Char.IsDead(122@)
goto_if_false @SWEET7_27814
if 
  not Char.IsInCar(122@, 77@)
goto_if_false @SWEET7_27814
if 
  74@ == 0
goto_if_false @SWEET7_27814
Char.ClearTasks(122@)
Task.KillCharOnFoot(122@, $scplayer)
74@ = 1

:SWEET7_27814
if 
  53@ == 80
goto_if_false @SWEET7_28086
if 
  not Car.IsDead(77@)
goto_if_false @SWEET7_28086
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_28086
if 
  not Char.LocateAnyMeansChar3D($scplayer, 98@, 50.0, 50.0, 50.0, False)
goto_if_false @SWEET7_27940
if 
  not Car.IsOnScreen(77@)
goto_if_false @SWEET7_27940
540@ = Math.RandomIntInRange(0, 3)
539@ = 61
53@ = 999

:SWEET7_27940
if 
  not Car.IsDead(77@)
goto_if_false @SWEET7_28013
if 
  not Char.IsInCar(98@, 77@)
goto_if_false @SWEET7_28013
if 
  73@ == 0
goto_if_false @SWEET7_28013
Char.ClearTasks(98@)
Task.KillCharOnFoot(98@, $scplayer)
73@ = 1

:SWEET7_28013
if 
  not Char.IsDead(122@)
goto_if_false @SWEET7_28086
if 
  not Char.IsInCar(122@, 77@)
goto_if_false @SWEET7_28086
if 
  74@ == 0
goto_if_false @SWEET7_28086
Char.ClearTasks(122@)
Task.KillCharOnFoot(122@, $scplayer)
74@ = 1

:SWEET7_28086
if 
  71@ == 1
goto_if_false @SWEET7_28420
gosub @SWEET7_31488
if 
  539@ > 0
goto_if_false @SWEET7_28289
if 
  537@ == 0
goto_if_false @SWEET7_28289
switch_start 539@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SWEET7_28289 {caseNum1} 1 {caseLabel1} @SWEET7_28210 {caseNum2} 2 {caseLabel2} @SWEET7_28231 {caseNum3} 3 {caseLabel3} @SWEET7_28252 {caseNum4} -1 {caseLabel4} @SWEET7_28289 {caseNum5} -1 {caseLabel5} @SWEET7_28289 {caseNum6} -1 {caseLabel6} @SWEET7_28289 {caseNum7} -1 {caseLabel7} @SWEET7_28289

:SWEET7_28210
534@ = 67
539@ = 2
goto @SWEET7_28289

:SWEET7_28231
534@ = 68
539@ = 3
goto @SWEET7_28289

:SWEET7_28252
534@ = 0
Text.PrintNow('TWAR628', 6000, 1)
539@ = 0
goto @SWEET7_28289

:SWEET7_28289
if 
  123@ == 0
goto_if_false @SWEET7_28420
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_28420
if 
  not Car.IsDead(79@)
goto_if_false @SWEET7_28420
43@ = Blip.AddForCar(79@)
Blip.SetAsFriendly(43@, True)
Text.ClearPrints
Text.PrintNow('TWAR644', 6000, 1)
if 
  Char.IsSittingInCar($sweet, 79@)
goto_if_false @SWEET7_28398
Car.LockDoors(79@, CarLock.Unlocked)

:SWEET7_28398
Car.SetProofs(79@, False, False, False, False, False)
71@ = 4

:SWEET7_28420
if 
  132@ == 1
goto_if_false @SWEET7_28529
if 
  not Car.IsDead(79@)
goto_if_false @SWEET7_28529
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_28529
if 
  Char.IsSittingInCar($sweet, 79@)
goto_if_false @SWEET7_28529
Text.ClearPrints
539@ = 1
540@ = Math.RandomIntInRange(0, 2)
Car.LockDoors(79@, CarLock.Unlocked)
Car.SetHealth(79@, 1000)
132@ = 2

:SWEET7_28529
if 
  132@ == 2
goto_if_false @SWEET7_28888
if 
  539@ > 0
goto_if_false @SWEET7_28749
if 
  537@ == 0
goto_if_false @SWEET7_28749
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_28749 {caseNum1} 1 {caseLabel1} @SWEET7_28646 {caseNum2} 2 {caseLabel2} @SWEET7_28710 {caseNum3} -1 {caseLabel3} @SWEET7_28749 {caseNum4} -1 {caseLabel4} @SWEET7_28749 {caseNum5} -1 {caseLabel5} @SWEET7_28749 {caseNum6} -1 {caseLabel6} @SWEET7_28749 {caseNum7} -1 {caseLabel7} @SWEET7_28749

:SWEET7_28646
if 
  540@ == 0
goto_if_false @SWEET7_28671
534@ = 53

:SWEET7_28671
if 
  540@ == 1
goto_if_false @SWEET7_28696
534@ = 54

:SWEET7_28696
539@ = 2
goto @SWEET7_28749

:SWEET7_28710
534@ = 0
Text.ClearPrints
Text.PrintNow('TWAR640', 6000, 1)
539@ = 0
goto @SWEET7_28749

:SWEET7_28749
if 
  not Car.IsDead(79@)
goto_if_false @SWEET7_28888
if 
  Char.IsSittingInCar($scplayer, 79@)
goto_if_false @SWEET7_28888
Car.SetProofs(79@, False, False, False, False, False)
Car.LockDoors(79@, CarLock.Unlocked)
Blip.Remove(39@)
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_28860
40@ = Blip.AddForChar(98@)
Text.ClearPrints
539@ = 1
540@ = Math.RandomIntInRange(0, 2)
44@ = 0

:SWEET7_28860
276@ = 1
132@ = 3
275@ = 1
544@ = 1

:SWEET7_28888
if 
  132@ == 3
goto_if_false @SWEET7_29328
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_29328
if 
  not Car.IsDead(79@)
goto_if_false @SWEET7_29328
if 
  Char.IsInCar($scplayer, 79@)
goto_if_false @SWEET7_29157
if 
  539@ > 0
goto_if_false @SWEET7_29157
if 
  537@ == 0
goto_if_false @SWEET7_29157
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_29157 {caseNum1} 1 {caseLabel1} @SWEET7_29056 {caseNum2} 2 {caseLabel2} @SWEET7_29120 {caseNum3} -1 {caseLabel3} @SWEET7_29157 {caseNum4} -1 {caseLabel4} @SWEET7_29157 {caseNum5} -1 {caseLabel5} @SWEET7_29157 {caseNum6} -1 {caseLabel6} @SWEET7_29157 {caseNum7} -1 {caseLabel7} @SWEET7_29157

:SWEET7_29056
if 
  540@ == 0
goto_if_false @SWEET7_29081
534@ = 55

:SWEET7_29081
if 
  540@ == 1
goto_if_false @SWEET7_29106
534@ = 56

:SWEET7_29106
539@ = 2
goto @SWEET7_29157

:SWEET7_29120
534@ = 0
Text.PrintNow('TWAR641', 6000, 1)
539@ = 0
goto @SWEET7_29157

:SWEET7_29157
if 
  44@ == 0
goto_if_false @SWEET7_29239
if 
  not Char.IsInCar($scplayer, 79@)
goto_if_false @SWEET7_29239
43@ = Blip.AddForCar(79@)
Blip.SetAsFriendly(43@, True)
Blip.Remove(40@)
Text.ClearPrints
Text.PrintNow('TWAR643', 6000, 1)
44@ = 1

:SWEET7_29239
if 
  44@ == 1
goto_if_false @SWEET7_29328
if 
  Char.IsInCar($scplayer, 79@)
goto_if_false @SWEET7_29328
Blip.Remove(43@)
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_29321
40@ = Blip.AddForChar(98@)
Text.PrintNow('TWAR641', 6000, 1)

:SWEET7_29321
44@ = 0

:SWEET7_29328
if 
  275@ == 1
goto_if_false @SWEET7_29473
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_29473
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_29473
if 
  Char.LocateAnyMeansChar2D($sweet, 98@, 30.0, 30.0, False)
goto_if_false @SWEET7_29473
Char.ClearTasks($sweet)
Task.DriveBy($sweet, 98@, -1, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 90)
275@ = 2
544@ = 1
540@ = Math.RandomIntInRange(0, 4)

:SWEET7_29473
if 
  275@ == 2
goto_if_false @SWEET7_29816
if 
  544@ > 0
goto_if_false @SWEET7_29741
if 
  537@ == 0
goto_if_false @SWEET7_29741
switch_start 544@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_29741 {caseNum1} 1 {caseLabel1} @SWEET7_29590 {caseNum2} 2 {caseLabel2} @SWEET7_29704 {caseNum3} -1 {caseLabel3} @SWEET7_29741 {caseNum4} -1 {caseLabel4} @SWEET7_29741 {caseNum5} -1 {caseLabel5} @SWEET7_29741 {caseNum6} -1 {caseLabel6} @SWEET7_29741 {caseNum7} -1 {caseLabel7} @SWEET7_29741

:SWEET7_29590
if 
  540@ == 0
goto_if_false @SWEET7_29615
534@ = 57

:SWEET7_29615
if 
  540@ == 1
goto_if_false @SWEET7_29640
534@ = 58

:SWEET7_29640
if 
  540@ == 2
goto_if_false @SWEET7_29665
534@ = 59

:SWEET7_29665
if 
  540@ == 3
goto_if_false @SWEET7_29690
534@ = 60

:SWEET7_29690
544@ = 2
goto @SWEET7_29741

:SWEET7_29704
534@ = 0
Text.PrintNow('TWAR649', 6000, 1)
544@ = 0
goto @SWEET7_29741

:SWEET7_29741
if 
  not Char.IsDead($sweet)
goto_if_false @SWEET7_29816
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_29816
if 
  not Char.LocateAnyMeansChar2D($sweet, 98@, 40.0, 40.0, False)
goto_if_false @SWEET7_29816
Char.ClearTasks($sweet)
275@ = 1

:SWEET7_29816
if 
  276@ == 1
goto_if_false @SWEET7_29896
if 
  not Char.LocateAnyMeans3D($scplayer, 875.3232, -1071.941, 23.3364, 400.0, 400.0, 100.0, False)
goto_if_false @SWEET7_29896
gosub @SWEET7_31914
276@ = 2

:SWEET7_29896
if 
  279@ == 1
goto_if_false @SWEET7_29967
if 
  TIMERB > 6000
goto_if_false @SWEET7_29967
Text.ClearHelp
Text.PrintHelp('TWAR801')
279@ = 2
280@ = 1
TIMERB = 0

:SWEET7_29967
goto @SWEET7_4959

:SWEET7_29974
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_30052
100@ = Sequence.Open()
Task.TogglePedThreatScanner(-1, False, False, False)
Task.GoStraightToCoord(-1, 140@(139@,10f), 150@(139@,10f), 160@(139@,10f), MoveState.Sprint, -2)
Sequence.Close(100@)
Char.PerformSequence(98@, 100@)
Sequence.Clear(100@)

:SWEET7_30052
return 

:SWEET7_30054
if 
  not Char.IsDead(105@)
goto_if_false @SWEET7_30146
106@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 170@(139@,10f), 180@(139@,10f), 190@(139@,10f), 6, 100.0, 1.0, $scplayer)
Task.StayInSamePlace(-1, False)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(106@)
Char.PerformSequence(105@, 106@)
Sequence.Clear(106@)

:SWEET7_30146
if 
  not Char.IsDead(107@)
goto_if_false @SWEET7_30252
108@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 200@(139@,10f), 210@(139@,10f), 220@(139@,10f), 6, 100.0, 1.0, $scplayer)
Task.StayInSamePlace(-1, False)
Task.KillCharOnFoot(-1, $scplayer)
Task.KillCharOnFootWhileDucking(-1, $scplayer, 4, 5000, 70)
Sequence.Close(108@)
Char.PerformSequence(107@, 108@)
Sequence.Clear(108@)

:SWEET7_30252
if 
  not Char.IsDead(109@)
goto_if_false @SWEET7_30354
Char.SetFollowNodeThresholdDistance(109@, 150.0)
110@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 230@(139@,10f), 240@(139@,10f), 250@(139@,10f), 6, 100.0, 1.0, $scplayer)
Task.StayInSamePlace(-1, False)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(110@)
Char.PerformSequence(109@, 110@)
Sequence.Clear(110@)

:SWEET7_30354
return 

:SWEET7_30356
53@ = 20
54@ = 1
279@ = 1
TIMERB = 0
if 
  not Char.IsDead(105@)
goto_if_false @SWEET7_30410
Char.GiveWeapon(105@, WeaponType.Pistol, 2000)

:SWEET7_30410
if 
  not Char.IsDead(107@)
goto_if_false @SWEET7_30436
Char.GiveWeapon(107@, WeaponType.Pistol, 2000)

:SWEET7_30436
if 
  not Char.IsDead(109@)
goto_if_false @SWEET7_30462
Char.GiveWeapon(109@, WeaponType.Pistol, 2000)

:SWEET7_30462
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_30488
Char.GiveWeapon(98@, WeaponType.Pistol, 2000)

:SWEET7_30488
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_30629
100@ = Sequence.Open()
if 
  139@ == 3
goto_if_false @SWEET7_30550
Task.GoStraightToCoord(-1, 889.4055, -1057.06, 24.0241, MoveState.Sprint, -2)

:SWEET7_30550
if 
  3 > 139@
goto_if_false @SWEET7_30591
Task.GoStraightToCoord(-1, 889.4055, -1057.06, 24.0241, MoveState.Sprint, -2)

:SWEET7_30591
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootWhileDucking(-1, $scplayer, 4, 3000, 50)
Sequence.Close(100@)
Char.PerformSequence(98@, 100@)
Sequence.Clear(100@)

:SWEET7_30629
if 
  not Char.IsDead(105@)
goto_if_false @SWEET7_30725
Char.SetFollowNodeThresholdDistance(105@, 150.0)
106@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 884.8275, -1057.997, 24.8115, 6, 100.0, 1.0, $scplayer)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(106@)
Char.PerformSequence(105@, 106@)
Sequence.Clear(106@)

:SWEET7_30725
if 
  not Char.IsDead(107@)
goto_if_false @SWEET7_30835
Char.SetFollowNodeThresholdDistance(107@, 150.0)
108@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 880.5971, -1057.468, 25.9345, 6, 100.0, 1.0, $scplayer)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Task.KillCharOnFootWhileDucking(-1, $scplayer, 4, 5000, 70)
Sequence.Close(108@)
Char.PerformSequence(107@, 108@)
Sequence.Clear(108@)

:SWEET7_30835
if 
  not Char.IsDead(109@)
goto_if_false @SWEET7_30931
Char.SetFollowNodeThresholdDistance(109@, 150.0)
110@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 881.8948, -1061.774, 24.2952, 6, 100.0, 1.0, $scplayer)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(110@)
Char.PerformSequence(109@, 110@)
Sequence.Clear(110@)

:SWEET7_30931
if 
  not Char.IsDead(111@)
goto_if_false @SWEET7_31000
Char.SetFollowNodeThresholdDistance(111@, 150.0)
114@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.KillCharOnFootWhileDucking(-1, $scplayer, 4, 5000, 70)
Sequence.Close(114@)
Char.PerformSequence(111@, 114@)
Sequence.Clear(114@)

:SWEET7_31000
if 
  not Char.IsDead(112@)
goto_if_false @SWEET7_31062
Char.SetFollowNodeThresholdDistance(112@, 150.0)
115@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(115@)
Char.PerformSequence(112@, 115@)
Sequence.Clear(115@)

:SWEET7_31062
if 
  not Char.IsDead(113@)
goto_if_false @SWEET7_31124
Char.SetFollowNodeThresholdDistance(113@, 150.0)
116@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(116@)
Char.PerformSequence(113@, 116@)
Sequence.Clear(116@)

:SWEET7_31124
return 

:SWEET7_31126
if 
  not Char.IsDead(105@)
goto_if_false @SWEET7_31171
45@ = Blip.AddForChar(105@)
Blip.ChangeScale(45@, 2)
123@ += 1
124@ = 1

:SWEET7_31171
if 
  not Char.IsDead(107@)
goto_if_false @SWEET7_31216
46@ = Blip.AddForChar(107@)
Blip.ChangeScale(46@, 2)
123@ += 1
125@ = 1

:SWEET7_31216
if 
  not Char.IsDead(109@)
goto_if_false @SWEET7_31261
47@ = Blip.AddForChar(109@)
Blip.ChangeScale(47@, 2)
123@ += 1
126@ = 1

:SWEET7_31261
if 
  not Char.IsDead(111@)
goto_if_false @SWEET7_31306
48@ = Blip.AddForChar(111@)
Blip.ChangeScale(48@, 2)
123@ += 1
127@ = 1

:SWEET7_31306
if 
  not Char.IsDead(112@)
goto_if_false @SWEET7_31351
49@ = Blip.AddForChar(112@)
Blip.ChangeScale(49@, 2)
123@ += 1
128@ = 1

:SWEET7_31351
if 
  not Char.IsDead(113@)
goto_if_false @SWEET7_31396
50@ = Blip.AddForChar(113@)
Blip.ChangeScale(50@, 2)
123@ += 1
129@ = 1

:SWEET7_31396
if 
  not Char.IsDead(117@)
goto_if_false @SWEET7_31441
51@ = Blip.AddForChar(117@)
Blip.ChangeScale(51@, 2)
123@ += 1
130@ = 1

:SWEET7_31441
if 
  not Char.IsDead(119@)
goto_if_false @SWEET7_31486
52@ = Blip.AddForChar(119@)
Blip.ChangeScale(52@, 2)
123@ += 1
131@ = 1

:SWEET7_31486
return 

:SWEET7_31488
if 
  124@ == 1
goto_if_false @SWEET7_31541
if 
  Char.IsDead(105@)
goto_if_false @SWEET7_31541
Blip.Remove(45@)
123@ -= 1
124@ = 2

:SWEET7_31541
if 
  125@ == 1
goto_if_false @SWEET7_31594
if 
  Char.IsDead(107@)
goto_if_false @SWEET7_31594
Blip.Remove(46@)
123@ -= 1
125@ = 2

:SWEET7_31594
if 
  126@ == 1
goto_if_false @SWEET7_31647
if 
  Char.IsDead(109@)
goto_if_false @SWEET7_31647
Blip.Remove(47@)
123@ -= 1
126@ = 2

:SWEET7_31647
if 
  127@ == 1
goto_if_false @SWEET7_31700
if 
  Char.IsDead(111@)
goto_if_false @SWEET7_31700
Blip.Remove(48@)
123@ -= 1
127@ = 2

:SWEET7_31700
if 
  128@ == 1
goto_if_false @SWEET7_31753
if 
  Char.IsDead(112@)
goto_if_false @SWEET7_31753
123@ -= 1
Blip.Remove(49@)
128@ = 2

:SWEET7_31753
if 
  129@ == 1
goto_if_false @SWEET7_31806
if 
  Char.IsDead(113@)
goto_if_false @SWEET7_31806
Blip.Remove(50@)
123@ -= 1
129@ = 2

:SWEET7_31806
if 
  130@ == 1
goto_if_false @SWEET7_31859
if 
  Char.IsDead(117@)
goto_if_false @SWEET7_31859
Blip.Remove(51@)
123@ -= 1
130@ = 2

:SWEET7_31859
if 
  131@ == 1
goto_if_false @SWEET7_31912
if 
  Char.IsDead(119@)
goto_if_false @SWEET7_31912
Blip.Remove(52@)
123@ -= 1
131@ = 2

:SWEET7_31912
return 

:SWEET7_31914
if 
  not Car.IsDead(79@)
goto_if_false @SWEET7_32010
if 
  not Char.IsDead(263@)
goto_if_false @SWEET7_31970
if 
  not Char.IsSittingInCar(263@, 79@)
goto_if_false @SWEET7_31970
Char.MarkAsNoLongerNeeded(263@)

:SWEET7_31970
if 
  not Char.IsDead(264@)
goto_if_false @SWEET7_32010
if 
  not Char.IsSittingInCar(264@, 79@)
goto_if_false @SWEET7_32010
Char.MarkAsNoLongerNeeded(264@)

:SWEET7_32010
if 
  not Char.IsDead(98@)
goto_if_false @SWEET7_32066
if 
  not Car.IsDead(77@)
goto_if_false @SWEET7_32066
if 
  not Char.IsSittingInCar(98@, 77@)
goto_if_false @SWEET7_32066
Car.MarkAsNoLongerNeeded(77@)

:SWEET7_32066
Char.MarkAsNoLongerNeeded(81@)
Char.MarkAsNoLongerNeeded(82@)
Char.MarkAsNoLongerNeeded(117@)
Char.MarkAsNoLongerNeeded(119@)
Char.MarkAsNoLongerNeeded(96@)
Char.MarkAsNoLongerNeeded(97@)
Char.MarkAsNoLongerNeeded(105@)
Char.MarkAsNoLongerNeeded(107@)
Char.MarkAsNoLongerNeeded(109@)
Char.MarkAsNoLongerNeeded(111@)
Char.MarkAsNoLongerNeeded(112@)
Char.MarkAsNoLongerNeeded(113@)
Car.MarkAsNoLongerNeeded(76@)
Car.MarkAsNoLongerNeeded(78@)
return 

:SWEET7_32138
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:SWEET7_32156
281@ = Stat.GetInt(StatId.Respect)
281@ = Stat.GetInt(StatId.Respect)
Stat.RegisterMissionPassed('SWEET_7')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSR', 10, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(10)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
$flag_sweet_mission_counter += 1
Blip.Remove($sweet_contact_blip)
Game.SetPoliceIgnorePlayer($player1, False)
return 

:SWEET7_32237
Game.SetEveryoneIgnorePlayer($player1, False)
Path.SwitchRoadsOn(2297.038, -1664.6, 10.8474, 2324.865, -1652.124, 14.8382)
Path.SwitchPedRoadsOn(2297.038, -1664.6, 10.8474, 2324.865, -1652.124, 14.8382)
Zone.SetGangStrength('GAN1', GangType.Grove, 35@)
Zone.SetGangStrength('GAN2', GangType.Grove, 36@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Text.ClearHelp
$timer_mobile_start = Clock.GetGameTimer()
Game.SetPoliceIgnorePlayer($player1, False)
Player.ClearWantedLevel($player1)
Char.RemoveElegantly($sweet)
Weather.Release
Streaming.UnloadSpecialCharacter(1)
if 
  not Char.IsDead(263@)
goto_if_false @SWEET7_32409
Char.SetSuffersCriticalHits(263@, True)
Char.SetHealth(263@, 100)
Char.MarkAsNoLongerNeeded(263@)

:SWEET7_32409
if 
  not Char.IsDead(264@)
goto_if_false @SWEET7_32444
Char.SetSuffersCriticalHits(264@, True)
Char.SetHealth(264@, 100)
Char.MarkAsNoLongerNeeded(264@)

:SWEET7_32444
Blip.Remove(40@)
Blip.Remove(39@)
Blip.Remove(41@)
Blip.Remove(42@)
Blip.Remove(43@)
Blip.Remove(45@)
Blip.Remove(46@)
Blip.Remove(47@)
Blip.Remove(48@)
Blip.Remove(49@)
Blip.Remove(50@)
Blip.Remove(51@)
Blip.Remove(52@)
Blip.Remove(267@)
Blip.Remove(265@)
Blip.Remove(266@)
Blip.Remove(292@)
Blip.Remove(293@)
Blip.Remove(294@)
Blip.Remove(271@)
Hud.ClearTimer($sw7_kanefuckedhealth)
Streaming.RemoveAnimation("GRAVEYARD")
Streaming.RemoveAnimation("SMOKING")
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(445)
Streaming.MarkModelAsNoLongerNeeded(543)
Streaming.MarkModelAsNoLongerNeeded(107)
Streaming.MarkModelAsNoLongerNeeded(106)
Streaming.MarkModelAsNoLongerNeeded(105)
Streaming.MarkModelAsNoLongerNeeded(68)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(103)
Streaming.MarkModelAsNoLongerNeeded(104)
Streaming.MarkModelAsNoLongerNeeded(12)
Path.SwitchRoadsOn(772.243, -1050.323, 10.2931, 806.2723, -1130.195, 23.8359)
Path.SwitchRoadsOn(135@, 136@, 0.0, 137@, 138@, 60.0)
Path.SwitchPedRoadsOn(135@, 136@, 0.0, 137@, 138@, 60.0)
$onmission = 0
Mission.Finish
return 

//-------------Mission 21---------------
// Originally: Doberman

:CRASH4
script_name 'CRASH4'
gosub @CRASH4_47
if 
  has_deatharrest_been_executed 
goto_if_false @CRASH4_38
gosub @CRASH4_6189

:CRASH4_38
gosub @CRASH4_6788
terminate_this_script 

:CRASH4_47
$onmission = 1
$flag_on_doberman_mission = 1
49@ = 0
50@ = 0
46@ = 0
36@ = 0
37@ = 0
38@ = 0
42@ = 0
42@ = 0
44@ = 0
56@ = 0.0
57@ = 0.0
59@ = 0
58@ = 0
61@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
66@ = 0
67@ = 0
68@ = 0
70@ = 0
$flag_bought_gun_for_doberman = 0
71@ = 0
72@ = 0
73@ = 0
74@ = 0
Stat.RegisterMissionGiven
wait 0
Text.ClearThisPrintBigNow(TextStyle.Middle)
wait 1000
Text.LoadMissionText('CRASH2')
Zone.SetGangStrength('GLN1', GangType.Ballas, 40)
Zone.SetGangStrength('GLN1', GangType.Grove, 0)
71@ = Zone.GetGangStrength('GLN1', GangType.Vagos)
72@ = Zone.GetGangStrength('GLN1', GangType.Aztecas)
Zone.SetGangStrength('GLN1', GangType.Vagos, 0)
Zone.SetGangStrength('GLN1', GangType.Aztecas, 0)
Game.SetEveryoneIgnorePlayer($player1, True)
Game.SetPoliceIgnorePlayer($player1, True)
43@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
Streaming.RequestModel(102)
Streaming.RequestModel(103)
Streaming.RequestModel(372)
Streaming.RequestAnimation("GANGS")
Streaming.RequestAnimation("SMOKING")
Streaming.RequestModel(#CIGAR)
Streaming.RequestModel(106)
Streaming.RequestModel(107)
Streaming.LoadAllModelsNow

:CRASH4_442
if or
  not Streaming.HasModelLoaded(103)
  not Streaming.HasModelLoaded(372)
  not Streaming.HasModelLoaded(102)
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @CRASH4_486
wait 0
goto @CRASH4_442

:CRASH4_486
if or
  not Streaming.HasAnimationLoaded("SMOKING")
  not Streaming.HasModelLoaded(#CIGAR)
  not Streaming.HasModelLoaded(106)
  not Streaming.HasModelLoaded(107)
goto_if_false @CRASH4_531
wait 0
goto @CRASH4_486

:CRASH4_531
World.SetPedDensityMultiplier(0.0)
World.ClearArea(1363.689, -1280.441, 12.5469, 1.0, True)
Char.SetCoordinates($scplayer, 1363.689, -1280.441, 12.5469)
Streaming.LoadScene(1363.689, -1280.441, 12.5469)
Char.SetHeading($scplayer, 90.0)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.MakeGangDisappear
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Game.SetPoliceIgnorePlayer($player1, True)
World.ClearArea(1350.177, -1264.921, 14.7166, 1.0, True)
Camera.SetFixedPosition(1350.177, -1264.921, 14.7166, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1350.987, -1265.499, 14.8167, SwitchType.JumpCut)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1500, Fade.In)

:CRASH4_730
if 
  Camera.GetFadingStatus
goto_if_false @CRASH4_754
wait 0
goto @CRASH4_730

:CRASH4_754
Text.PrintNow('AMUHLP', 10000, 1)
skip_cutscene_start_internal @CRASH4_814
TIMERA = 0

:CRASH4_784
if 
  5000 > TIMERA
goto_if_false @CRASH4_814
wait 0
goto @CRASH4_784

:CRASH4_814
skip_cutscene_end 
Text.ClearThisPrint('AMUHLP')
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:CRASH4_842
if 
  Camera.GetFadingStatus
goto_if_false @CRASH4_866
wait 0
goto @CRASH4_842

:CRASH4_866
Streaming.RequestModel(#LAEJEFFERSALPHA)
Streaming.RequestModel(#LAELODPARK02)
Streaming.RequestModel(#LAEMACPARK02)

:CRASH4_881
if or
  not Streaming.HasModelLoaded(#LAEJEFFERSALPHA)
  not Streaming.HasModelLoaded(#LAELODPARK02)
  not Streaming.HasModelLoaded(#LAEMACPARK02)
goto_if_false @CRASH4_918
wait 0
goto @CRASH4_881

:CRASH4_918
Streaming.LoadAllModelsNow
Hud.SwitchWidescreen(True)
if 
  $played_cut1_before_crash4 == 1
goto_if_false @CRASH4_949
skip_cutscene_start_internal @CRASH4_2106

:CRASH4_949
Char.SetCoordinates($scplayer, 1859.931, -1137.139, 22.946)
Streaming.LoadSceneInDirection(1859.931, -1137.139, 22.946, 89.9)
if 
  62@ == 0
goto_if_false @CRASH4_1343
World.ClearArea(1924.632, -1126.623, 24.135, 30.0, True)
53@ = Char.Create(PedType.Mission1, 103, 1924.632, -1126.623, 24.135)
Char.SetOnlyDamagedByPlayer(53@, True)
Char.SetHeading(53@, 180.0)
60@ = Object.Create(#CIGAR, 1924.632, -1126.623, 24.135)
Task.PickUpObject(53@, 60@, 0.04, 0.1, -0.02, 5, 16, "NULL", "NULL", -1)
Task.PlayAnimNonInterruptable(53@, "M_SMKLEAN_LOOP", "SMOKING", 4.0, True, False, False, False, -1)
54@ = Char.Create(PedType.Mission1, 102, 1921.157, -1127.438, 24.048)
Char.SetOnlyDamagedByPlayer(54@, True)
Char.SetHeading(54@, 270.0)
Task.PlayAnimNonInterruptable(54@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
55@ = Char.Create(PedType.Mission1, 103, 1922.157, -1127.438, 24.048)
Char.SetOnlyDamagedByPlayer(55@, True)
Char.SetHeading(55@, 90.0)
Task.PlayAnimNonInterruptable(55@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
62@ = 1

:CRASH4_1343
Camera.SetFixedPosition(1858.909, -1136.102, 26.7903, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1859.867, -1136.38, 26.725, SwitchType.JumpCut)
World.SetPedDensityMultiplier(0.0)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:CRASH4_1416
if 
  Camera.GetFadingStatus
goto_if_false @CRASH4_1440
wait 0
goto @CRASH4_1416

:CRASH4_1440
Text.PrintNow('CM2_10', 20000, 1)
TIMERA = 0

:CRASH4_1463
if 
  10000 > TIMERA
goto_if_false @CRASH4_1493
wait 0
goto @CRASH4_1463

:CRASH4_1493
Text.ClearThisPrint('CM2_10')
Camera.SetFixedPosition(1916.77, -1130.479, 26.9978, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1917.738, -1130.27, 26.8593, SwitchType.JumpCut)
Text.PrintNow('CM2_11', 20000, 1)
TIMERA = 0

:CRASH4_1578
if 
  10000 > TIMERA
goto_if_false @CRASH4_1778
wait 0
if 
  49@ == 0
goto_if_false @CRASH4_1771
if 
  TIMERA > 7000
goto_if_false @CRASH4_1771
if 
  not Char.IsDead(54@)
goto_if_false @CRASH4_1771
if 
  not Char.IsDead(55@)
goto_if_false @CRASH4_1771
Task.PlayAnimNonInterruptable(54@, "HNDSHKFA", "GANGS", 4.0, False, False, False, False, -1)
56@ = 0.0
Task.PlayAnimNonInterruptable(55@, "HNDSHKFA", "GANGS", 4.0, False, False, False, False, -1)
57@ = 0.0
49@ = 1

:CRASH4_1771
goto @CRASH4_1578

:CRASH4_1778
Text.ClearThisPrint('CM2_11')
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:CRASH4_1804
if 
  Camera.GetFadingStatus
goto_if_false @CRASH4_1828
wait 0
goto @CRASH4_1804

:CRASH4_1828
Streaming.MarkModelAsNoLongerNeeded(#LAEJEFFERSALPHA)
Streaming.MarkModelAsNoLongerNeeded(#LAELODPARK02)
Streaming.MarkModelAsNoLongerNeeded(#LAEMACPARK02)
Text.ClearThisPrint('CM2_2')
Streaming.RequestCollision(1363.689, -1280.441)
World.ClearArea(1363.689, -1280.441, 12.5469, 1.0, True)
Char.SetCoordinates($scplayer, 1363.689, -1280.441, 12.5469)
Char.SetHeading($scplayer, 90.0)
Streaming.LoadSceneInDirection(1363.689, -1280.441, 12.5469, 90.0)
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("SMOKING")
if 
  62@ == 1
goto_if_false @CRASH4_2000
Char.Delete(53@)
Char.Delete(54@)
Char.Delete(55@)
Object.Delete(60@)

:CRASH4_2000
Streaming.MarkModelAsNoLongerNeeded(#CIGAR)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
World.SetPedDensityMultiplier(1.0)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1500, Fade.In)

:CRASH4_2036
if 
  Camera.GetFadingStatus
goto_if_false @CRASH4_2060
wait 0
goto @CRASH4_2036

:CRASH4_2060
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Game.SetPoliceIgnorePlayer($player1, False)
if 
  $played_cut1_before_crash4 == 1
goto_if_false @CRASH4_2409
44@ = 1

:CRASH4_2106
skip_cutscene_end 
if 
  44@ == 0
goto_if_false @CRASH4_2409
Text.ClearPrints
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:CRASH4_2143
if 
  Camera.GetFadingStatus
goto_if_false @CRASH4_2167
wait 0
goto @CRASH4_2143

:CRASH4_2167
World.SetPedDensityMultiplier(1.0)
Streaming.RequestCollision(1363.689, -1280.441)
World.ClearArea(1363.689, -1280.441, 12.5469, 1.0, True)
Char.SetCoordinates($scplayer, 1363.689, -1280.441, 12.5469)
Char.SetHeading($scplayer, 90.0)
Streaming.LoadSceneInDirection(1363.689, -1280.441, 12.5469, 90.0)
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("SMOKING")
Streaming.MarkModelAsNoLongerNeeded(#LAEJEFFERSALPHA)
Streaming.MarkModelAsNoLongerNeeded(#LAELODPARK02)
Streaming.MarkModelAsNoLongerNeeded(#LAEMACPARK02)
if 
  62@ == 1
goto_if_false @CRASH4_2335
Char.Delete(53@)
Char.Delete(54@)
Char.Delete(55@)
Object.Delete(60@)

:CRASH4_2335
Streaming.MarkModelAsNoLongerNeeded(#CIGAR)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1500, Fade.In)

:CRASH4_2369
if 
  Camera.GetFadingStatus
goto_if_false @CRASH4_2393
wait 0
goto @CRASH4_2369

:CRASH4_2393
Camera.SetBehindPlayer
Game.SetEveryoneIgnorePlayer($player1, False)
Game.SetPoliceIgnorePlayer($player1, False)

:CRASH4_2409
$played_cut1_before_crash4 = 1
52@ = Blip.AddSpriteForCoord(1362.895, -1281.008, 12.586, RadarSprite.Ammugun)
World.SwitchEntryExit('AMMUN1', True)
Zone.SetGangStrength('GLN1', GangType.Ballas, 40)
Zone.SetGangStrength('GLN1', GangType.Grove, 0)
Game.SetOnlyCreateGangMembers(True)
Game.SetGangWarsTrainingMission(True)
Zone.SetForGangWarsTraining('GLN1')
Game.SetWantedMultiplier(0.5)
Game.CanTriggerGangWarWhenOnAMission(True)
Game.SetGangWarsActive(True)
$flag_gang_war_active = 1
Text.PrintNow('CM2_3', 8000, 1)
45@ = Blip.AddSpriteForCoord(1932.351, -1189.647, 19.063, RadarSprite.GangG)

:CRASH4_2560
if 
  not Player.IsInInfoZone($player1, 'GLN1')
goto_if_false @CRASH4_2812
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CRASH4_2611
goto @CRASH4_6345

:CRASH4_2611
if 
  67@ == 0
goto_if_false @CRASH4_2718
if 
  Char.LocateAnyMeans3D($scplayer, 2444.895, -1981.524, 13.933, 880.0, 880.0, 100.0, False)
goto_if_false @CRASH4_2718
if 
  is_var_text_label_empty s$shop_name
goto_if_false @CRASH4_2718
Text.PrintHelp('CM2_18')
TIMERB = 0
67@ = 1

:CRASH4_2718
if 
  67@ == 1
goto_if_false @CRASH4_2789
if 
  is_var_text_label_empty s$shop_name
goto_if_false @CRASH4_2789
if 
  TIMERB > 5000
goto_if_false @CRASH4_2789
Text.PrintHelp('CM2_19')
67@ = 2

:CRASH4_2789
47@ = Zone.GetGangStrength('GLN1', GangType.Ballas)
goto @CRASH4_2560

:CRASH4_2812
Blip.Remove(52@)
Text.PrintNow('CM2_5', 8000, 1)
TIMERA = 0

:CRASH4_2840
if 
  not Game.IsGangWarGoingOn
goto_if_false @CRASH4_3104
wait 0
if 
  not Player.IsInInfoZone($player1, 'GLN1')
goto_if_false @CRASH4_2930
if 
  46@ == 0
goto_if_false @CRASH4_2923
Text.PrintNow('CM2_6', 8000, 1)
46@ = 1

:CRASH4_2923
goto @CRASH4_2982

:CRASH4_2930
if 
  46@ == 1
goto_if_false @CRASH4_2982
Text.ClearThisPrint('CM2_6')
Text.PrintNow('CM2_5', 8000, 1)
46@ = 0

:CRASH4_2982
if 
  73@ == 0
goto_if_false @CRASH4_3044
if 
  TIMERA >= 60000
goto_if_false @CRASH4_3044
Text.PrintNow('CM2_5', 8000, 1)
73@ = 1

:CRASH4_3044
if 
  73@ == 1
goto_if_false @CRASH4_3097
if 
  TIMERA >= 70000
goto_if_false @CRASH4_3097
TIMERA = 0
73@ = 0

:CRASH4_3097
goto @CRASH4_2840

:CRASH4_3104
Text.ClearThisPrint('CM2_5')
TIMERA = 0

:CRASH4_3122
if 
  47@ <> 0
goto_if_false @CRASH4_3464
wait 0
47@ = Zone.GetGangStrength('GLN1', GangType.Ballas)
74@ = Zone.GetGangStrength('GLN1', GangType.Grove)
if 
  not Player.IsInInfoZone($player1, 'GLN1')
goto_if_false @CRASH4_3335
if 
  46@ == 0
goto_if_false @CRASH4_3242
Text.PrintNow('CM2_6', 8000, 1)
46@ = 1

:CRASH4_3242
if 
  not Game.IsGangWarGoingOn
goto_if_false @CRASH4_3321
if 
  74@ == 0
goto_if_false @CRASH4_3314
if 
  66@ == 0
goto_if_false @CRASH4_3314
Text.PrintNow('CM2_17', 8000, 1)
66@ = 1

:CRASH4_3314
goto @CRASH4_3328

:CRASH4_3321
66@ = 0

:CRASH4_3328
goto @CRASH4_3457

:CRASH4_3335
if 
  46@ == 1
goto_if_false @CRASH4_3371
Text.ClearThisPrint('CM2_6')
46@ = 0

:CRASH4_3371
if 
  not Game.IsGangWarGoingOn
goto_if_false @CRASH4_3450
if 
  74@ == 0
goto_if_false @CRASH4_3443
if 
  65@ == 0
goto_if_false @CRASH4_3443
Text.PrintNow('CM2_16', 8000, 1)
65@ = 1

:CRASH4_3443
goto @CRASH4_3457

:CRASH4_3450
65@ = 0

:CRASH4_3457
goto @CRASH4_3122

:CRASH4_3464
Blip.Remove(45@)
Text.ClearThisPrint('CM2_16')
Text.ClearThisPrint('CM2_17')
Text.ClearThisPrint('CM2_6')
Text.ClearThisPrint('CM2_5')
Zone.SetGangStrength('GLN1', GangType.Ballas, 0)
Game.CanTriggerGangWarWhenOnAMission(False)
wait 5000
Game.SetOnlyCreateGangMembers(False)
ENTEXT_63()

:CRASH4_3548
if 
  $player_is_completely_safe <> 1
goto_if_false @CRASH4_3584
wait 0
ENTEXT_63()
goto @CRASH4_3548

:CRASH4_3584
Text.ClearPrints
Player.SetControl($player1, False)
Game.SetPoliceIgnorePlayer($player1, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:CRASH4_3622
if 
  Camera.GetFadingStatus
goto_if_false @CRASH4_3646
wait 0
goto @CRASH4_3622

:CRASH4_3646
World.SetPedDensityMultiplier(0.0)
Player.MakeGangDisappear
Hud.SwitchWidescreen(True)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @CRASH4_3753
World.ClearArea(1859.931, -1137.139, 22.946, 2.0, True)
Char.SetCoordinates($scplayer, 1859.931, -1137.139, 22.946)
Char.SetHeading($scplayer, 284.0)
Streaming.LoadScene(1859.931, -1137.139, 22.946)
goto @CRASH4_3859

:CRASH4_3753
75@ = Char.StoreCarIsIn($scplayer)
World.ClearArea(1859.931, -1137.139, 22.946, 2.0, True)
Char.WarpFromCarToCoord($scplayer, 1859.931, -1137.139, 22.946)

:CRASH4_3805
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CRASH4_3832
wait 0
goto @CRASH4_3805

:CRASH4_3832
Char.SetHeading($scplayer, 284.0)
Streaming.LoadScene(1859.931, -1137.139, 22.946)

:CRASH4_3859
Camera.SetFixedPosition(1859.828, -1136.18, 33.7679, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1860.751, -1136.463, 33.508, SwitchType.JumpCut)
if 
  63@ == 0
goto_if_false @CRASH4_4089
53@ = Char.Create(PedType.Mission1, 106, 1910.336, -1154.475, 22.699)
Char.SetHeading(53@, 131.345)
Char.SetOnlyDamagedByPlayer(53@, True)
Task.PlayAnimNonInterruptable(53@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
54@ = Char.Create(PedType.Mission1, 107, 1907.99, -1157.554, 22.932)
Char.SetHeading(54@, 318.746)
Char.SetOnlyDamagedByPlayer(54@, True)
Task.PlayAnimNonInterruptable(54@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
63@ = 1

:CRASH4_4089
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:CRASH4_4104
if 
  Camera.GetFadingStatus
goto_if_false @CRASH4_4128
wait 0
goto @CRASH4_4104

:CRASH4_4128
if 
  $played_cut2_before_crash4 == 1
goto_if_false @CRASH4_4153
skip_cutscene_start_internal @CRASH4_4683

:CRASH4_4153
Text.PrintNow('CM2_12', 20000, 1)
TIMERA = 0

:CRASH4_4176
if 
  10000 > TIMERA
goto_if_false @CRASH4_4206
wait 0
goto @CRASH4_4176

:CRASH4_4206
Text.ClearThisPrint('CM2_12')
Camera.SetFixedPosition(1891.889, -1163.394, 25.5792, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1892.865, -1163.187, 25.5167, SwitchType.JumpCut)
Text.PrintNow('CM2_13', 20000, 1)
TIMERA = 0

:CRASH4_4291
if 
  10000 > TIMERA
goto_if_false @CRASH4_4321
wait 0
goto @CRASH4_4291

:CRASH4_4321
Text.ClearThisPrint('CM2_13')
Text.PrintNow('CM2_14', 20000, 1)
TIMERA = 0

:CRASH4_4355
if 
  10000 > TIMERA
goto_if_false @CRASH4_4385
wait 0
goto @CRASH4_4355

:CRASH4_4385
Text.ClearThisPrint('CM2_14')
Camera.SetFixedPosition(1859.828, -1136.18, 33.7679, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1860.751, -1136.463, 33.508, SwitchType.JumpCut)
Text.PrintNow('CM2_15', 20000, 1)
TIMERA = 0

:CRASH4_4470
if 
  10000 > TIMERA
goto_if_false @CRASH4_4500
wait 0
goto @CRASH4_4470

:CRASH4_4500
Text.ClearThisPrint('CM2_15')
Text.PrintNow('CM2_20', 20000, 1)
TIMERA = 0

:CRASH4_4534
if 
  10000 > TIMERA
goto_if_false @CRASH4_4564
wait 0
goto @CRASH4_4534

:CRASH4_4564
Text.ClearThisPrint('CM2_20')
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:CRASH4_4590
if 
  Camera.GetFadingStatus
goto_if_false @CRASH4_4614
wait 0
goto @CRASH4_4590

:CRASH4_4614
Text.ClearPrints
if 
  63@ == 1
goto_if_false @CRASH4_4644
Char.Delete(53@)
Char.Delete(54@)

:CRASH4_4644
World.SetPedDensityMultiplier(1.0)
if 
  $played_cut2_before_crash4 == 1
goto_if_false @CRASH4_4779
61@ = 1
$played_cut2_before_crash4 = 1

:CRASH4_4683
skip_cutscene_end 
if 
  61@ == 0
goto_if_false @CRASH4_4779
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:CRASH4_4718
if 
  Camera.GetFadingStatus
goto_if_false @CRASH4_4742
wait 0
goto @CRASH4_4718

:CRASH4_4742
Text.ClearPrints
World.SetPedDensityMultiplier(1.0)
if 
  63@ == 1
goto_if_false @CRASH4_4779
Char.Delete(53@)
Char.Delete(54@)

:CRASH4_4779
$played_cut2_before_crash4 = 1
Camera.SetFixedPosition(1914.107, -1130.994, 27.8685, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1914.841, -1130.332, 27.7162, SwitchType.JumpCut)
if 
  $flag_end_guy_audio_crash4 == 0
goto_if_false @CRASH4_4869
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8030)
goto @CRASH4_4926

:CRASH4_4869
if 
  $flag_end_guy_audio_crash4 == 1
goto_if_false @CRASH4_4901
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8031)
goto @CRASH4_4926

:CRASH4_4901
if 
  $flag_end_guy_audio_crash4 == 2
goto_if_false @CRASH4_4926
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8032)

:CRASH4_4926
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CRASH4_4952
wait 0
goto @CRASH4_4926

:CRASH4_4952
World.ClearArea(1922.439, -1118.043, 25.125, 10.0, False)
34@ = Char.Create(PedType.Mission2, 103, 1922.439, -1118.043, 25.125)
Char.SetHeading(34@, 180.0)
Char.SetOnlyDamagedByPlayer(34@, True)
Char.GiveWeapon(34@, WeaponType.Tec9, 30000)
Char.SetProofs(34@, True, True, True, True, True)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)
if 
  not Char.IsDead(34@)
goto_if_false @CRASH4_5104
Task.GoStraightToCoord(34@, 1922.328, -1127.938, 24.078, MoveState.Run, -1)
goto @CRASH4_5111

:CRASH4_5104
38@ = 1

:CRASH4_5111
if 
  Camera.GetFadingStatus
goto_if_false @CRASH4_5135
wait 0
goto @CRASH4_5111

:CRASH4_5135
if 
  not Char.IsDead(34@)
goto_if_false @CRASH4_5323
Char.ShutUpForScriptedSpeech(34@, True)
if 
  $flag_end_guy_audio_crash4 == 0
goto_if_false @CRASH4_5213
Text.PrintNow('CRA2_ZA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Char.StartFacialTalk(34@, 999999)
goto @CRASH4_5316

:CRASH4_5213
if 
  $flag_end_guy_audio_crash4 == 1
goto_if_false @CRASH4_5268
Text.PrintNow('CRA2_ZB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Char.StartFacialTalk(34@, 999999)
goto @CRASH4_5316

:CRASH4_5268
if 
  $flag_end_guy_audio_crash4 == 2
goto_if_false @CRASH4_5316
Text.PrintNow('CRA2_ZC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Char.StartFacialTalk(34@, 999999)

:CRASH4_5316
goto @CRASH4_5363

:CRASH4_5323
Text.ClearThisPrint('CRA2_ZA')
Text.ClearThisPrint('CRA2_ZB')
Text.ClearThisPrint('CRA2_ZC')
38@ = 1

:CRASH4_5363
skip_cutscene_start_internal @CRASH4_5757
TIMERA = 0

:CRASH4_5377
if 
  2000 > TIMERA
goto_if_false @CRASH4_5555
wait 0
if 
  38@ == 0
goto_if_false @CRASH4_5548
if 
  Char.IsDead(34@)
goto_if_false @CRASH4_5500
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CRASH4_5453
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:CRASH4_5453
Text.ClearThisPrint('CRA2_ZA')
Text.ClearThisPrint('CRA2_ZB')
Text.ClearThisPrint('CRA2_ZC')
38@ = 1
goto @CRASH4_5548

:CRASH4_5500
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CRASH4_5548
Text.ClearThisPrint('CRA2_ZA')
Text.ClearThisPrint('CRA2_ZB')
Text.ClearThisPrint('CRA2_ZC')

:CRASH4_5548
goto @CRASH4_5377

:CRASH4_5555
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CRASH4_5603
Text.ClearThisPrint('CRA2_ZA')
Text.ClearThisPrint('CRA2_ZB')
Text.ClearThisPrint('CRA2_ZC')

:CRASH4_5603
if 
  not Char.IsDead(34@)
goto_if_false @CRASH4_5638
Char.StopFacialTalk(34@)
Char.ShutUpForScriptedSpeech(34@, False)
goto @CRASH4_5645

:CRASH4_5638
38@ = 1

:CRASH4_5645
Player.MakeGangReappear
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Game.SetPoliceIgnorePlayer($player1, False)
Game.SetEveryoneIgnorePlayer($player1, False)
if 
  not Char.IsDead(34@)
goto_if_false @CRASH4_5738
Char.SetDecisionMaker(34@, 43@)
35@ = Blip.AddForChar(34@)
Task.KillCharOnFoot(34@, $scplayer)
Char.SetProofs(34@, False, False, False, False, False)
goto @CRASH4_5750

:CRASH4_5738
Blip.Remove(35@)
38@ = 1

:CRASH4_5750
64@ = 1

:CRASH4_5757
skip_cutscene_end 
if 
  64@ == 0
goto_if_false @CRASH4_6048
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:CRASH4_5792
if 
  Camera.GetFadingStatus
goto_if_false @CRASH4_5816
wait 0
goto @CRASH4_5792

:CRASH4_5816
Player.MakeGangReappear
if 
  not Char.IsDead(34@)
goto_if_false @CRASH4_5907
World.ClearArea(1922.903, -1128.477, 24.092, 2.0, False)
Char.SetCoordinates(34@, 1922.903, -1128.477, 24.092)
Char.SetHeading(34@, 180.0)
Char.StopFacialTalk(34@)
Char.ShutUpForScriptedSpeech(34@, False)
goto @CRASH4_5914

:CRASH4_5907
38@ = 1

:CRASH4_5914
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:CRASH4_5937
if 
  Camera.GetFadingStatus
goto_if_false @CRASH4_5961
wait 0
goto @CRASH4_5937

:CRASH4_5961
Player.SetControl($player1, True)
Game.SetPoliceIgnorePlayer($player1, False)
Game.SetEveryoneIgnorePlayer($player1, False)
if 
  not Char.IsDead(34@)
goto_if_false @CRASH4_6036
35@ = Blip.AddForChar(34@)
Task.KillCharOnFoot(34@, $scplayer)
Char.SetProofs(34@, False, False, False, False, False)
goto @CRASH4_6048

:CRASH4_6036
Blip.Remove(35@)
38@ = 1

:CRASH4_6048
$flag_end_guy_audio_crash4 += 1
if 
  $flag_end_guy_audio_crash4 > 2
goto_if_false @CRASH4_6080
$flag_end_guy_audio_crash4 = 0

:CRASH4_6080
Text.PrintNow('CM2_8', 8000, 1)

:CRASH4_6096
if 
  38@ <> 1
goto_if_false @CRASH4_6182
wait 0
if 
  38@ == 0
goto_if_false @CRASH4_6175
if 
  Char.IsDead(34@)
goto_if_false @CRASH4_6175
Text.ClearThisPrint('CM2_7')
Blip.Remove(35@)
38@ = 1

:CRASH4_6175
goto @CRASH4_6096

:CRASH4_6182
goto @CRASH4_6345

:CRASH4_6189
Zone.SetGangStrength('GLN1', GangType.Ballas, 40)
Zone.SetGangStrength('GLN1', GangType.Grove, 0)
Zone.SetGangStrength('GLN1', GangType.Vagos, 71@)
Zone.SetGangStrength('GLN1', GangType.Aztecas, 72@)
World.SwitchEntryExit('AMMUN1', False)
World.SwitchEntryExit('AMMUN2', False)
World.SwitchEntryExit('AMMUN3', False)
World.SwitchEntryExit('AMMUN4', False)
World.SwitchEntryExit('AMMUN5', False)
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Game.SetGangWarsActive(False)
$flag_gang_war_active = 0
return 

:CRASH4_6345
$flag_sweet_mission_counter += 1
Stat.RegisterMissionPassed('CRASH_2')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSR', 40, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(40)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Blip.Remove($sweet_contact_blip)
$sweet_contact_blip = Blip.AddSpriteForContactPoint($sweetX, $sweetY, $sweetZ, $sweet_blip_icon)
$territory_pickup = Pickup.CreateProtection(2502.1, -1686.38, 13.0, 10000, $territory_cash)
start_new_script @TCASH 
World.SwitchEntryExit('AMMUN1', True)
World.SwitchEntryExit('AMMUN2', True)
World.SwitchEntryExit('AMMUN3', True)
World.SwitchEntryExit('AMMUN4', True)
World.SwitchEntryExit('AMMUN5', True)
if 
  $add_all_ammu_blips == 0
goto_if_false @CRASH4_6786
$weapon_shop1_blip = Blip.AddShortRangeSpriteForCoord(1372.9, -1278.8, 12.5, RadarSprite.Ammugun)
$ammu_shop_blip = Blip.AddShortRangeSpriteForCoord(2400.5, -1978.4, 13.5, RadarSprite.Ammugun)
$2579 = Blip.AddShortRangeSpriteForCoord(-2626.6, 209.4, 4.9, RadarSprite.Ammugun)
$2580 = Blip.AddShortRangeSpriteForCoord(2535.9, 2083.5, 10.8, RadarSprite.Ammugun)
$2581 = Blip.AddShortRangeSpriteForCoord(2156.5, 943.2, 10.8, RadarSprite.Ammugun)
$2582 = Blip.AddShortRangeSpriteForCoord(779.7, 1874.3, 4.9, RadarSprite.Ammugun)
$2583 = Blip.AddShortRangeSpriteForCoord(-2092.7, -2463.8, 30.6, RadarSprite.Ammugun)
$2584 = Blip.AddShortRangeSpriteForCoord(240.0, -178.2, 2.0, RadarSprite.Ammugun)
$2585 = Blip.AddShortRangeSpriteForCoord(-1509.4, 2611.8, 58.5, RadarSprite.Ammugun)
$2586 = Blip.AddShortRangeSpriteForCoord(-315.67, 829.87, 13.43, RadarSprite.Ammugun)
$2587 = Blip.AddShortRangeSpriteForCoord(2332.9, 63.6, 31.0, RadarSprite.Ammugun)
$add_all_ammu_blips = 1

:CRASH4_6786
return 

:CRASH4_6788
Streaming.MarkModelAsNoLongerNeeded(#LAEJEFFERSALPHA)
Streaming.MarkModelAsNoLongerNeeded(#LAELODPARK02)
Streaming.MarkModelAsNoLongerNeeded(#LAEMACPARK02)
World.SetPedDensityMultiplier(1.0)
Game.SetOnlyCreateGangMembers(False)
$onmission = 0
$flag_on_doberman_mission = 0
Blip.Remove(45@)
Blip.Remove(35@)
Blip.Remove(52@)
Game.CanTriggerGangWarWhenOnAMission(False)
$timer_mobile_start = Clock.GetGameTimer()
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(103)
Streaming.MarkModelAsNoLongerNeeded(372)
Streaming.MarkModelAsNoLongerNeeded(106)
Streaming.MarkModelAsNoLongerNeeded(107)
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("SMOKING")
Object.Delete(60@)
Streaming.MarkModelAsNoLongerNeeded(#CIGAR)
Char.Delete(53@)
Char.Delete(54@)
Char.Delete(55@)
DecisionMaker.Remove(43@)
Mission.Finish
return 

//-------------Mission 22---------------
// Originally: Burning Desire

:CRASH1
script_name 'CRASH1'
gosub @CRASH1_47
if 
  has_deatharrest_been_executed 
goto_if_false @CRASH1_38
gosub @CRASH1_41227

:CRASH1_38
gosub @CRASH1_41349
terminate_this_script 

:CRASH1_47
Stat.RegisterMissionGiven
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
45@ = 0
46@ = 0
TIMERA = 0
TIMERB = 0
47@ = 1
48@ = 0
49@ = 0
50@ = 0
51@ = -1
52@ = 0
53@ = 0
55@ = 0
54@ = 0
56@ = 1
213@ = 0

:CRASH1_210
57@(213@,3i) = 0
213@ += 1
  213@ >= 3
goto_if_false @CRASH1_210
355@ = 0
356@ = 0
357@ = 0
358@ = 0
359@ = 0
360@ = 0
361@ = 0
198@ = 0
314@ = 0
315@ = 0
316@ = 0
323@ = 0
322@ = 0
313@ = 0
317@ = 0
325@ = 0
353@ = 0
354@ = 0
336@ = 0
340@ = 0
342@ = 0
345@ = 0
346@ = 1
347@ = 1
348@ = 0
349@ = 0
350@ = 0
210@ = 0
if 
  34@ == -99
goto_if_false @CRASH1_1160
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
98@ = Car.Create(412, 0.0, 0.0, 0.0)
99@ = Car.Create(412, 0.0, 0.0, 0.0)
100@ = Car.Create(596, 0.0, 0.0, 0.0)
213@ = 0

:CRASH1_575
87@(213@,5i) = Char.Create(PedType.Gang8, 110, 0.0, 0.0, 0.0)
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_575
213@ = 0

:CRASH1_631
92@(213@,2i) = Char.Create(PedType.Gang8, 110, 0.0, 0.0, 0.0)
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_631
94@ = Char.Create(PedType.Gang8, 109, 0.0, 0.0, 0.0)
95@ = Char.Create(PedType.CivFemale, 195, 0.0, 0.0, 0.0)
96@ = Char.Create(PedType.Gang8, 109, 0.0, 0.0, 0.0)
97@ = Char.Create(PedType.Gang8, 109, 0.0, 0.0, 0.0)
213@ = 0

:CRASH1_784
101@(213@,8i) = Object.CreateNoOffset(#BD_WINDOW, 0.0, 0.0, 0.0)
213@ += 1
  213@ >= 8
goto_if_false @CRASH1_784
114@ = Object.Create(#CR1_DOOR, 0.0, 0.0, 0.0)
119@ = Object.Create(#BREAK_WALL_1B, 0.0, 0.0, 0.0)
120@ = Object.Create(#BREAK_WALL_2B, 0.0, 0.0, 0.0)
121@ = Object.Create(#BREAK_WALL_3B, 0.0, 0.0, 0.0)
119@ = Object.Create(#BD_FIRE1_O, 0.0, 0.0, 0.0)
138@ = ScriptFire.CreateCharFire(94@)
139@ = ScriptFire.CreateCharFire(95@)
140@ = ScriptFire.CreateCharFire(96@)
141@ = ScriptFire.CreateCharFire(97@)
213@ = 0

:CRASH1_985
142@(213@,21i) = ScriptFire.Start(0.0, 0.0, 0.0, 0, 1)
213@ += 1
  213@ >= 21
goto_if_false @CRASH1_985
213@ = 0

:CRASH1_1041
163@(213@,4i) = ScriptFire.Start(0.0, 0.0, 0.0, 0, 1)
213@ += 1
  213@ >= 4
goto_if_false @CRASH1_1041
135@ = Pickup.CreateWithAmmo(366, PickupType.Once, 0, 0.0, 0.0, 0.0)
132@ = Pickup.CreateWithAmmo(344, PickupType.Once, 0, 0.0, 0.0, 0.0)
131@ = Blip.AddForChar(95@)
128@ = Blip.AddForPickup(132@)

:CRASH1_1160
Text.LoadMissionText('CRASH1')
gosub @CRASH1_38857
180@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
181@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
gosub @CRASH1_39065

:CRASH1_1199
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CRASH1_1232
36@ = 1
goto @CRASH1_1651

:CRASH1_1232
gosub @CRASH1_36706
gosub @CRASH1_37130
if or
  38@ == 1
  39@ == 1
goto_if_false @CRASH1_1278
goto @CRASH1_1651

:CRASH1_1278
gosub @CRASH1_38228
gosub @CRASH1_38262
if 
  Char.IsDead($scplayer)
goto_if_false @CRASH1_1322
37@ = 1
goto @CRASH1_1651

:CRASH1_1322
if 
  34@ == 0
goto_if_false @CRASH1_1380
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:CRASH1_1380
if 
  34@ == 1
goto_if_false @CRASH1_1405
gosub @CRASH1_1838

:CRASH1_1405
if 
  34@ == 2
goto_if_false @CRASH1_1430
gosub @CRASH1_2345

:CRASH1_1430
if 
  34@ == 3
goto_if_false @CRASH1_1455
gosub @CRASH1_3600

:CRASH1_1455
if 
  34@ == 4
goto_if_false @CRASH1_1480
gosub @CRASH1_5983

:CRASH1_1480
if 
  34@ == 5
goto_if_false @CRASH1_1505
gosub @CRASH1_8432

:CRASH1_1505
if 
  34@ == 6
goto_if_false @CRASH1_1530
gosub @CRASH1_10291

:CRASH1_1530
if 
  34@ == 7
goto_if_false @CRASH1_1555
gosub @CRASH1_13180

:CRASH1_1555
if 
  34@ == 8
goto_if_false @CRASH1_1580
36@ = 1

:CRASH1_1580
if 
  34@ == 50
goto_if_false @CRASH1_1605
gosub @CRASH1_15449

:CRASH1_1605
if 
  34@ == 51
goto_if_false @CRASH1_1630
38@ = 1

:CRASH1_1630
gosub @CRASH1_38301
gosub @CRASH1_38357
gosub @CRASH1_32145

:CRASH1_1651
if 
  38@ == 0
goto_if_false @CRASH1_1834
if 
  37@ == 0
goto_if_false @CRASH1_1735
if 
  36@ == 0
goto_if_false @CRASH1_1719
goto @CRASH1_1199
goto @CRASH1_1728

:CRASH1_1719
gosub @CRASH1_41291
return 

:CRASH1_1728
goto @CRASH1_1827

:CRASH1_1735
gosub @CRASH1_41227
if or
  314@ == 1
  Char.IsInArea3D($scplayer, 2350.405, -1181.907, 26.8553, 2353.484, -1170.524, 30.0687, False)
goto_if_false @CRASH1_1825
34@ = 50
35@ = 0
37@ = 0
goto @CRASH1_1199

:CRASH1_1825
return 

:CRASH1_1827
goto @CRASH1_1836

:CRASH1_1834
return 

:CRASH1_1836
return 

:CRASH1_1838
if 
  35@ == 0
goto_if_false @CRASH1_1900
Text.PrintNow('CRA1_00', 15000, 1)
gosub @CRASH1_16457
349@ = 0
204@ = 0
35@ += 1

:CRASH1_1900
if 
  35@ == 1
goto_if_false @CRASH1_1969
if 
  Pickup.HasBeenCollected(132@)
goto_if_false @CRASH1_1969
Blip.Remove(128@)
349@ = 0
set_lvar_int_to_lvar_int 204@ = 45@
204@ += 5000
35@ += 1

:CRASH1_1969
if 
  35@ == 2
goto_if_false @CRASH1_1994
35@ += 1

:CRASH1_1994
if 
  35@ == 3
goto_if_false @CRASH1_2055
Text.PrintNow('CRA1_01', 5000, 1)
122@ = Blip.AddForCoord(2351.904, -1170.826, 28.5)
35@ += 1

:CRASH1_2055
if 
  35@ == 4
goto_if_false @CRASH1_2146
if 
  Char.LocateAnyMeans2D($scplayer, 2350.168, -1164.938, 300.0, 300.0, False)
goto_if_false @CRASH1_2146
gosub @CRASH1_39609
gosub @CRASH1_39708
gosub @CRASH1_40373
gosub @CRASH1_40881
35@ += 1

:CRASH1_2146
if 
  35@ == 5
goto_if_false @CRASH1_2245
if 
  Char.LocateAnyMeans3D($scplayer, 2337.666, -1180.994, 31.7513, 38.1099, 31.5599, 8.75, False)
goto_if_false @CRASH1_2245
Blip.Remove(122@)
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
348@ = 1
35@ = 99

:CRASH1_2245
if 
  349@ == 0
goto_if_false @CRASH1_2318
if 
  204@ <> 0
goto_if_false @CRASH1_2318
if 
  is_int_lvar_greater_than_int_lvar 45@ > 204@
goto_if_false @CRASH1_2318
Text.PrintHelp('MOLOTOV')
349@ = 1

:CRASH1_2318
if 
  35@ == 99
goto_if_false @CRASH1_2343
gosub @CRASH1_38827

:CRASH1_2343
return 

:CRASH1_2345
if 
  35@ == 0
goto_if_false @CRASH1_2476
297@ = 0
298@ = 0
299@ = 0
300@ = 0
301@ = 0
313@ = 0
332@ = 0
333@ = 0
209@ = 0
187@ = -1
205@ = 0
gosub @CRASH1_18730
gosub @CRASH1_19322
Game.SwitchEmergencyServices(False)
Game.SetWantedMultiplier(0.3)
Game.SetMaxFireGenerations(1)
35@ += 1

:CRASH1_2476
if 
  35@ == 1
goto_if_false @CRASH1_2533
Text.PrintNow('CRA1_02', 6000, 1)
set_lvar_int_to_lvar_int 204@ = 45@
204@ += 7000
35@ += 1

:CRASH1_2533
if 
  35@ == 2
goto_if_false @CRASH1_2631
213@ = 0

:CRASH1_2558
set_lvar_int_to_lvar_int 217@ = 213@
gosub @CRASH1_20309
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_2558
if 
  is_int_lvar_greater_than_int_lvar 45@ > 204@
goto_if_false @CRASH1_2631
Text.PrintHelp('WINDOWS')
35@ += 1

:CRASH1_2631
if 
  35@ == 3
goto_if_false @CRASH1_2733
213@ = 0

:CRASH1_2656
set_lvar_int_to_lvar_int 217@ = 213@
gosub @CRASH1_20309
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_2656
if 
  209@ == 5
goto_if_false @CRASH1_2733
Text.PrintNow('CRA1_04', 3000, 1)
35@ = 99

:CRASH1_2733
213@ = 0

:CRASH1_2740
set_lvar_int_to_lvar_int 216@ = 213@
gosub @CRASH1_16525
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_2740
if 
  313@ == 1
goto_if_false @CRASH1_2808
gosub @CRASH1_21015
goto @CRASH1_2815

:CRASH1_2808
gosub @CRASH1_20662

:CRASH1_2815
gosub @CRASH1_21168
if 
  205@ <> 0
goto_if_false @CRASH1_3150
if 
  is_int_lvar_greater_than_int_lvar 45@ > 205@
goto_if_false @CRASH1_3150
205@ = 0
214@ = 0
213@ = 0

:CRASH1_2880
if 
  302@(213@,5i) == 1
goto_if_false @CRASH1_2909
214@ += 1

:CRASH1_2909
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_2880
209@ += 1
if 
  not is_int_lvar_equal_to_int_lvar 214@ == 209@
goto_if_false @CRASH1_3006
if 
  is_int_lvar_greater_than_int_lvar 209@ > 214@
goto_if_false @CRASH1_2990
set_lvar_int_to_lvar_int 209@ = 214@
goto @CRASH1_3006

:CRASH1_2990
set_lvar_int_to_lvar_int 205@ = 45@
205@ += 500

:CRASH1_3006
if 
  5 > 209@
goto_if_false @CRASH1_3031
gosub @CRASH1_20473

:CRASH1_3031
351@ = 0
213@ = 0

:CRASH1_3045
if 
  351@ == 0
goto_if_false @CRASH1_3129
if and
  302@(213@,5i) == 1
  307@(213@,5i) == 0
goto_if_false @CRASH1_3129
set_lvar_int_to_lvar_int 191@ = 213@
gosub @CRASH1_23203
307@(213@,5i) = 1
351@ = 1

:CRASH1_3129
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_3045

:CRASH1_3150
if 
  297@ == 0
goto_if_false @CRASH1_3410
289@ = 2337.666
289@ -= 31.0
291@ = -1180.994
291@ -= 38.0
293@ = 31.7513
293@ -= 8.0
290@ = 2337.666
290@ += 31.0
292@ = -1180.994
292@ += 38.0
294@ = 31.7513
294@ += 8.0
if 
  332@ == 0
goto_if_false @CRASH1_3344
if 
  World.IsProjectileInArea(289@, 291@, 293@, 290@, 292@, 294@)
goto_if_false @CRASH1_3344
332@ = 1

:CRASH1_3344
if 
  333@ == 0
goto_if_false @CRASH1_3410
214@ = World.GetNumberOfFiresInArea(289@, 291@, 293@, 290@, 292@, 294@)
if 
  214@ > 0
goto_if_false @CRASH1_3410
333@ = 1

:CRASH1_3410
if 
  348@ == 1
goto_if_false @CRASH1_3504
if 
  not Char.LocateAnyMeans3D($scplayer, 2337.666, -1180.994, 31.7513, 48.1099, 41.5599, 18.75, False)
goto_if_false @CRASH1_3497
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
348@ = 0

:CRASH1_3497
goto @CRASH1_3573

:CRASH1_3504
if 
  Char.LocateAnyMeans3D($scplayer, 2337.666, -1180.994, 31.7513, 38.1099, 31.5599, 8.75, False)
goto_if_false @CRASH1_3573
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
348@ = 1

:CRASH1_3573
if 
  35@ == 99
goto_if_false @CRASH1_3598
gosub @CRASH1_38827

:CRASH1_3598
return 

:CRASH1_3600
if 
  35@ == 0
goto_if_false @CRASH1_3751
191@ = 5
gosub @CRASH1_23203
192@ = 0
gosub @CRASH1_24873
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 3000
329@ = 0
334@ = 0
335@ = 0
352@ = 0
353@ = 0
354@ = 0
337@ = 0
347@ = 1
206@ = 0
Game.SetWantedMultiplier(0.0)
Player.ClearWantedLevel($player1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 21403)
35@ += 1

:CRASH1_3751
if 
  359@ == 1
goto_if_false @CRASH1_3794
if 
  Char.IsDead(95@)
goto_if_false @CRASH1_3794
37@ = 1
return 

:CRASH1_3794
if 
  35@ == 1
goto_if_false @CRASH1_3903
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_3903
Camera.DoFade(400, Fade.Out)
Player.SetControl($player1, False)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 2500
gosub @CRASH1_26362
gosub @CRASH1_26452
341@ = 0
50@ = 1
gosub @CRASH1_32981
35@ += 1

:CRASH1_3903
if 
  35@ == 2
goto_if_false @CRASH1_4000
if 
  354@ == 1
goto_if_false @CRASH1_3953
35@ += 1
goto @CRASH1_4000

:CRASH1_3953
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4000
gosub @CRASH1_23105
329@ = 1
352@ = 1
35@ += 1

:CRASH1_4000
if 
  35@ == 3
goto_if_false @CRASH1_4087
if 
  354@ == 1
goto_if_false @CRASH1_4050
35@ += 1
goto @CRASH1_4087

:CRASH1_4050
if and
  is_int_lvar_greater_than_int_lvar 45@ > 200@
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @CRASH1_4087
gosub @CRASH1_26665
35@ += 1

:CRASH1_4087
if 
  35@ == 4
goto_if_false @CRASH1_4229
if 
  354@ == 1
goto_if_false @CRASH1_4137
35@ += 1
goto @CRASH1_4229

:CRASH1_4137
if and
  Char.IsDead(94@)
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4175
gosub @CRASH1_26924
35@ += 1

:CRASH1_4175
set_lvar_int_to_lvar_int 219@ = 200@
219@ += 8000
if and
  not Char.IsDead(94@)
  is_int_lvar_greater_than_int_lvar 45@ > 219@
goto_if_false @CRASH1_4229
gosub @CRASH1_26924
35@ += 1

:CRASH1_4229
if 
  35@ == 5
goto_if_false @CRASH1_4411
if 
  354@ == 1
goto_if_false @CRASH1_4279
35@ += 1
goto @CRASH1_4411

:CRASH1_4279
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4411
if 
  Object.DoesExist(106@)
goto_if_false @CRASH1_4337
if 
  not Object.HasBeenDamaged(106@)
goto_if_false @CRASH1_4337
Object.Break(106@, 1)

:CRASH1_4337
197@ = 4
gosub @CRASH1_25459
335@ = 1
56@ = 0
gosub @CRASH1_33143
Text.PrintNow('CRA1_05', 4600, 1)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 4300
35@ += 1

:CRASH1_4411
if 
  35@ == 6
goto_if_false @CRASH1_4524
if 
  354@ == 1
goto_if_false @CRASH1_4461
35@ += 1
goto @CRASH1_4524

:CRASH1_4461
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4524
Camera.DoFade(300, Fade.Out)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1000
gosub @CRASH1_18650
gosub @CRASH1_23025
35@ += 1

:CRASH1_4524
if 
  35@ == 7
goto_if_false @CRASH1_4688
if 
  354@ == 1
goto_if_false @CRASH1_4574
35@ += 1
goto @CRASH1_4688

:CRASH1_4574
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4688
gosub @CRASH1_26993
282@ = 2352.037
283@ = -1170.318
284@ = 26.9702
122@ = Blip.AddForCoord(282@, 283@, 284@)
192@ = 2
gosub @CRASH1_24873
Camera.DoFade(200, Fade.In)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 200
35@ += 1

:CRASH1_4688
if 
  35@ == 8
goto_if_false @CRASH1_4824
if 
  354@ == 1
goto_if_false @CRASH1_4738
35@ = 50
goto @CRASH1_4824

:CRASH1_4738
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4824
329@ = 0
352@ = 0
Player.SetControl($player1, True)
gosub @CRASH1_28246
set_lvar_int_to_lvar_int 206@ = 45@
206@ += 9000
Text.Print('CRA1_06', 4000, 1)
35@ += 1

:CRASH1_4824
if 
  35@ == 9
goto_if_false @CRASH1_5086
if 
  314@ == 1
goto_if_false @CRASH1_5036
Blip.Remove(122@)
341@ = 0
206@ = 0
if 
  not Char.IsDead(95@)
goto_if_false @CRASH1_4968
Char.SetHasUsedEntryExit(95@, 2352.114, -1170.61, 8.0)
282@, 283@, 284@ = Char.GetCoordinates(95@)
284@ += 999.0
Char.SetCoordinates(95@, 282@, 283@, 284@)
131@ = Blip.AddForChar(95@)
Blip.SetAsFriendly(131@, True)

:CRASH1_4968
ScriptFire.Remove(138@)
192@ = 4
gosub @CRASH1_24873
197@ = 6
gosub @CRASH1_25459
gosub @CRASH1_26123
gosub @CRASH1_26184
gosub @CRASH1_40944
35@ = 99
goto @CRASH1_5086

:CRASH1_5036
213@ = 0

:CRASH1_5043
set_lvar_int_to_lvar_int 216@ = 213@
gosub @CRASH1_16525
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_5043
gosub @CRASH1_21168

:CRASH1_5086
if and
  352@ == 1
  Pad.IsSkipCutsceneButtonPressed
  354@ == 0
goto_if_false @CRASH1_5120
354@ = 1

:CRASH1_5120
if 
  35@ == 50
goto_if_false @CRASH1_5175
Camera.DoFade(500, Fade.Out)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
353@ = 1
35@ += 1

:CRASH1_5175
if 
  35@ == 51
goto_if_false @CRASH1_5249
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_5249
gosub @CRASH1_16094
Camera.DoFade(1500, Fade.In)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1500
35@ += 1

:CRASH1_5249
if 
  35@ == 52
goto_if_false @CRASH1_5367
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_5367
353@ = 0
354@ = 0
329@ = 0
352@ = 0
Player.SetControl($player1, True)
gosub @CRASH1_28246
set_lvar_int_to_lvar_int 206@ = 45@
206@ += 9000
Text.Print('CRA1_06', 4000, 1)
35@ = 9

:CRASH1_5367
gosub @CRASH1_27063
if 
  353@ == 0
goto_if_false @CRASH1_5435
213@ = 0

:CRASH1_5399
set_lvar_int_to_lvar_int 216@ = 213@
gosub @CRASH1_16525
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_5399

:CRASH1_5435
if 
  353@ == 0
goto_if_false @CRASH1_5460
gosub @CRASH1_21168

:CRASH1_5460
if 
  337@ == 1
goto_if_false @CRASH1_5485
gosub @CRASH1_28317

:CRASH1_5485
if 
  206@ > 0
goto_if_false @CRASH1_5536
if 
  is_int_lvar_greater_than_int_lvar 45@ > 206@
goto_if_false @CRASH1_5536
206@ = 0
341@ = 1

:CRASH1_5536
if 
  347@ == 1
goto_if_false @CRASH1_5602
World.ClearArea(2345.907, -1171.659, 30.9688, 1.5, False)
World.ClearArea(2345.907, -1171.659, 1030.969, 1.5, False)

:CRASH1_5602
if and
  not is_local_var_bit_set_const 54@ {n} 3
  341@ == 1
goto_if_false @CRASH1_5793
if 
  Char.IsInArea3D($scplayer, 2340.262, -1170.539, 24.9859, 2351.095, -1164.287, 28.2183, False)
goto_if_false @CRASH1_5793
if or
  49@ == 2
  49@ == 1
goto_if_false @CRASH1_5727
if 
  48@ == 2
goto_if_false @CRASH1_5720
return 

:CRASH1_5720
gosub @CRASH1_33172

:CRASH1_5727
if 
  49@ == 0
goto_if_false @CRASH1_5761
50@ = 3
gosub @CRASH1_32981
return 

:CRASH1_5761
if and
  49@ == 3
  48@ <> 2
goto_if_false @CRASH1_5793
gosub @CRASH1_33143

:CRASH1_5793
if 
  348@ == 1
goto_if_false @CRASH1_5887
if 
  not Char.LocateAnyMeans3D($scplayer, 2337.666, -1180.994, 31.7513, 48.1099, 41.5599, 18.75, False)
goto_if_false @CRASH1_5880
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
348@ = 0

:CRASH1_5880
goto @CRASH1_5956

:CRASH1_5887
if 
  Char.LocateAnyMeans3D($scplayer, 2337.666, -1180.994, 31.7513, 38.1099, 31.5599, 8.75, False)
goto_if_false @CRASH1_5956
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
348@ = 1

:CRASH1_5956
if 
  35@ == 99
goto_if_false @CRASH1_5981
gosub @CRASH1_38827

:CRASH1_5981
return 

:CRASH1_5983
if 
  35@ == 0
goto_if_false @CRASH1_6083
gosub @CRASH1_28623
327@ = 0
330@ = 0
352@ = 0
353@ = 0
354@ = 0
338@ = 0
339@ = 0
350@ = 0
190@ = -1
Streaming.MarkModelAsNoLongerNeeded(#CR_AMMOBOX)
35@ += 1

:CRASH1_6083
if 
  Char.IsDead(95@)
goto_if_false @CRASH1_6108
37@ = 1
return 

:CRASH1_6108
if 
  35@ == 1
goto_if_false @CRASH1_6133
35@ += 1

:CRASH1_6133
if 
  35@ == 2
goto_if_false @CRASH1_6513
289@ = 2344.751
289@ -= 1.5
291@ = -1181.161
291@ -= 1.5
293@ = 1030.961
293@ -= 0.5
290@ = 2344.751
290@ += 1.5
292@ = -1181.161
292@ += 1.5
294@ = 1030.961
294@ += 1.5
if 
  Char.IsInArea3D($scplayer, 289@, 291@, 293@, 290@, 292@, 294@, False)
goto_if_false @CRASH1_6513
Blip.Remove(131@)
347@ = 0
Char.SetProofs(95@, False, False, False, False, False)
350@ = 1
if 
  not Pickup.HasBeenCollected(135@)
goto_if_false @CRASH1_6506
Camera.DoFade(500, Fade.Out)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 550
Player.SetControl($player1, False)
285@ = 180.0
Char.SetHeading(95@, 285@)
282@, 283@, 284@ = Char.GetCoordinates(95@)
284@ = 1030.969
Char.SetCoordinates(95@, 282@, 283@, 284@)
211@ = 99
201@ = 0
330@ = 1
352@ = 1
gosub @CRASH1_33172
50@ = 5
gosub @CRASH1_32981
35@ += 1
goto @CRASH1_6513

:CRASH1_6506
35@ = 10

:CRASH1_6513
if 
  35@ == 3
goto_if_false @CRASH1_6679
if 
  354@ == 1
goto_if_false @CRASH1_6563
35@ += 1
goto @CRASH1_6679

:CRASH1_6563
if 
  49@ <> 5
goto_if_false @CRASH1_6595
50@ = 5
gosub @CRASH1_32981

:CRASH1_6595
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_6679
122@ = Blip.AddForPickup(135@)
Blip.SetEntryExit(122@, 2352.114, -1170.61, 3.0)
gosub @CRASH1_28934
Camera.DoFade(500, Fade.In)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 550
35@ += 1

:CRASH1_6679
if 
  35@ == 4
goto_if_false @CRASH1_6801
if 
  354@ == 1
goto_if_false @CRASH1_6729
35@ += 1
goto @CRASH1_6801

:CRASH1_6729
if 
  49@ <> 5
goto_if_false @CRASH1_6761
50@ = 5
gosub @CRASH1_32981

:CRASH1_6761
if and
  is_int_lvar_greater_than_int_lvar 45@ > 200@
  49@ == 5
goto_if_false @CRASH1_6801
gosub @CRASH1_33143
35@ += 1

:CRASH1_6801
if 
  35@ == 5
goto_if_false @CRASH1_6876
if 
  354@ == 1
goto_if_false @CRASH1_6851
35@ += 1
goto @CRASH1_6876

:CRASH1_6851
if 
  is_local_var_bit_set_const 54@ {n} 5
goto_if_false @CRASH1_6876
35@ += 1

:CRASH1_6876
if 
  35@ == 6
goto_if_false @CRASH1_6972
if 
  354@ == 1
goto_if_false @CRASH1_6926
35@ += 1
goto @CRASH1_6972

:CRASH1_6926
if 
  49@ <> 6
goto_if_false @CRASH1_6965
50@ = 6
gosub @CRASH1_32981
goto @CRASH1_6972

:CRASH1_6965
35@ += 1

:CRASH1_6972
if 
  35@ == 7
goto_if_false @CRASH1_7087
if 
  354@ == 1
goto_if_false @CRASH1_7022
35@ += 1
goto @CRASH1_7087

:CRASH1_7022
Camera.SetFixedPosition(2329.68, -1172.025, 1030.137, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2328.868, -1172.534, 1029.854, SwitchType.JumpCut)
gosub @CRASH1_33143
35@ += 1

:CRASH1_7087
if 
  35@ == 8
goto_if_false @CRASH1_7198
if 
  354@ == 1
goto_if_false @CRASH1_7137
35@ = 50
goto @CRASH1_7198

:CRASH1_7137
if 
  is_local_var_bit_set_const 54@ {n} 6
goto_if_false @CRASH1_7198
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
330@ = 0
352@ = 0
35@ += 1

:CRASH1_7198
if 
  35@ == 9
goto_if_false @CRASH1_7262
50@ = 7
gosub @CRASH1_32981
if 
  49@ == 7
goto_if_false @CRASH1_7262
gosub @CRASH1_33143
35@ += 1

:CRASH1_7262
if 
  35@ == 10
goto_if_false @CRASH1_7362
if 
  Char.HasGotWeapon($scplayer, WeaponType.Extinguisher)
goto_if_false @CRASH1_7362
Blip.Remove(122@)
if 
  not Char.IsDead(95@)
goto_if_false @CRASH1_7334
131@ = Blip.AddForChar(95@)
Blip.SetAsFriendly(131@, True)

:CRASH1_7334
gosub @CRASH1_33172
50@ = 8
gosub @CRASH1_32981
35@ += 1

:CRASH1_7362
if 
  35@ == 11
goto_if_false @CRASH1_7679
289@ = 2344.751
289@ -= 1.5
291@ = -1181.161
291@ -= 1.5
293@ = 1030.961
293@ -= 0.5
290@ = 2344.751
290@ += 1.5
292@ = -1181.161
292@ += 1.5
294@ = 1030.961
294@ += 1.5
if 
  Char.IsInArea3D($scplayer, 289@, 291@, 293@, 290@, 292@, 294@, False)
goto_if_false @CRASH1_7679
if 
  49@ <> 8
goto_if_false @CRASH1_7568
50@ = 8
gosub @CRASH1_32981

:CRASH1_7568
if 
  49@ == 8
goto_if_false @CRASH1_7679
gosub @CRASH1_33143
285@ = 180.0
Char.SetHeading(95@, 285@)
282@, 283@, 284@ = Char.GetCoordinates(95@)
284@ = 1030.969
Char.SetCoordinates(95@, 282@, 283@, 284@)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 3000
211@ = 99
35@ += 1

:CRASH1_7679
if 
  35@ == 12
goto_if_false @CRASH1_7802
if 
  200@ > 0
goto_if_false @CRASH1_7752
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_7752
200@ = 0
Text.PrintHelp('CRA1_35')

:CRASH1_7752
if 
  Char.LocateAnyMeansChar3D($scplayer, 95@, 6.0, 6.0, 1.0, False)
goto_if_false @CRASH1_7802
Char.SetHealth(95@, 100)
35@ = 99

:CRASH1_7802
if and
  352@ == 1
  Pad.IsSkipCutsceneButtonPressed
  354@ == 0
goto_if_false @CRASH1_7836
354@ = 1

:CRASH1_7836
if 
  35@ == 50
goto_if_false @CRASH1_7918
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
211@ = 0
353@ = 0
354@ = 0
330@ = 0
352@ = 0
35@ = 10

:CRASH1_7918
gosub @CRASH1_27063
gosub @CRASH1_28317
if and
  314@ == 0
  315@ == 1
goto_if_false @CRASH1_7971
338@ = 1
315@ = 0

:CRASH1_7971
if 
  338@ == 1
goto_if_false @CRASH1_8016
if 
  Camera.GetFadingStatus
goto_if_false @CRASH1_8016
338@ = 0
339@ = 1

:CRASH1_8016
if 
  339@ == 1
goto_if_false @CRASH1_8070
if 
  not Camera.GetFadingStatus
goto_if_false @CRASH1_8070
339@ = 0
Text.PrintNow('CRA1_10', 5000, 1)

:CRASH1_8070
World.ClearArea(255@, 256@, 257@, 3.0, False)
if 
  327@ == 0
goto_if_false @CRASH1_8158
if 
  Char.HasGotWeapon($scplayer, WeaponType.Extinguisher)
goto_if_false @CRASH1_8158
327@ = 1
Text.PrintNow('CRA1_09', 4000, 1)
Text.PrintHelp('FIRE_EX')

:CRASH1_8158
if 
  347@ == 1
goto_if_false @CRASH1_8224
World.ClearArea(2345.907, -1171.659, 30.9688, 1.5, False)
World.ClearArea(2345.907, -1171.659, 1030.969, 1.5, False)

:CRASH1_8224
if 
  314@ == 0
goto_if_false @CRASH1_8405
if 
  348@ == 1
goto_if_false @CRASH1_8336
if 
  not Char.LocateAnyMeans3D($scplayer, 2337.666, -1180.994, 31.7513, 48.1099, 41.5599, 18.75, False)
goto_if_false @CRASH1_8329
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
348@ = 0

:CRASH1_8329
goto @CRASH1_8405

:CRASH1_8336
if 
  Char.LocateAnyMeans3D($scplayer, 2337.666, -1180.994, 31.7513, 38.1099, 31.5599, 8.75, False)
goto_if_false @CRASH1_8405
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
348@ = 1

:CRASH1_8405
if 
  35@ == 99
goto_if_false @CRASH1_8430
gosub @CRASH1_38827

:CRASH1_8430
return 

:CRASH1_8432
if 
  35@ == 0
goto_if_false @CRASH1_8840
346@ = 1
if 
  ScriptFire.IsExtinguished(163@)
goto_if_false @CRASH1_8480
346@ = 0

:CRASH1_8480
Player.SetControl($player1, False)
gosub @CRASH1_29056
Streaming.MarkModelAsNoLongerNeeded(109)
if 
  not Car.IsDead(98@)
goto_if_false @CRASH1_8526
Car.OpenDoorABit(98@, CarDoor.Hood, 0.0)

:CRASH1_8526
322@ = 0
196@ = 0
192@ = 3
gosub @CRASH1_24873
Hud.ClearCounter($sw7_funeraltimer)
194@ = 3
195@ = 3
282@ = 2319.717
283@ = -1178.556
284@ = 1030.969
122@ = Blip.AddForCoord(282@, 283@, 284@)
Blip.SetEntryExit(122@, 2352.114, -1170.61, 3.0)
324@ = 1
352@ = 0
353@ = 0
354@ = 0
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 21402)
Char.FreezePosition(95@, False)
Task.GoStraightToCoord(95@, 2345.627, -1175.844, 1030.969, MoveState.Run, -2)
Task.TurnCharToFaceChar($scplayer, 95@)
Camera.SetFixedPosition(2349.768, -1177.159, 1031.791, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2348.849, -1176.765, 1031.828, SwitchType.JumpCut)
if 
  346@ == 1
goto_if_false @CRASH1_8794
192@ = 4
gosub @CRASH1_24873

:CRASH1_8794
191@ = 1
gosub @CRASH1_24064
Hud.SwitchWidescreen(True)
352@ = 1
353@ = 0
354@ = 0
35@ += 1

:CRASH1_8840
if 
  35@ == 1
goto_if_false @CRASH1_8952
if 
  354@ == 1
goto_if_false @CRASH1_8890
35@ += 1
goto @CRASH1_8952

:CRASH1_8890
50@ = 9
gosub @CRASH1_32981
if 
  49@ == 9
goto_if_false @CRASH1_8952
gosub @CRASH1_33143
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
35@ += 1

:CRASH1_8952
if 
  35@ == 2
goto_if_false @CRASH1_9073
if 
  354@ == 1
goto_if_false @CRASH1_9002
35@ += 1
goto @CRASH1_9073

:CRASH1_9002
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_9073
40@ = Char.GetScriptTaskStatus(95@, 1491)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_9073
Task.TurnCharToFaceChar($scplayer, 95@)
Task.TurnCharToFaceChar(95@, $scplayer)
35@ += 1

:CRASH1_9073
if 
  35@ == 3
goto_if_false @CRASH1_9178
if 
  354@ == 1
goto_if_false @CRASH1_9123
35@ += 1
goto @CRASH1_9178

:CRASH1_9123
if and
  is_local_var_bit_set_const 54@ {n} 9
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @CRASH1_9178
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
193@ = 1
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 100
35@ += 1

:CRASH1_9178
if 
  35@ == 4
goto_if_false @CRASH1_9319
if 
  354@ == 1
goto_if_false @CRASH1_9228
35@ += 1
goto @CRASH1_9319

:CRASH1_9228
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_9319
Camera.SetFixedPosition(2347.942, -1179.954, 1031.858, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2346.95, -1179.89, 1031.961, SwitchType.JumpCut)
50@ = 10
gosub @CRASH1_32981
35@ += 1

:CRASH1_9319
if 
  35@ == 5
goto_if_false @CRASH1_9450
if 
  354@ == 1
goto_if_false @CRASH1_9369
35@ += 1
goto @CRASH1_9450

:CRASH1_9369
if 
  49@ <> 10
goto_if_false @CRASH1_9401
50@ = 10
gosub @CRASH1_32981

:CRASH1_9401
Camera.Shake(40)
if and
  193@ == 5
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @CRASH1_9450
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
35@ += 1

:CRASH1_9450
if 
  35@ == 6
goto_if_false @CRASH1_9639
if 
  354@ == 1
goto_if_false @CRASH1_9500
35@ += 1
goto @CRASH1_9639

:CRASH1_9500
if 
  49@ <> 10
goto_if_false @CRASH1_9532
50@ = 10
gosub @CRASH1_32981

:CRASH1_9532
if and
  is_int_lvar_greater_than_int_lvar 45@ > 200@
  49@ == 10
goto_if_false @CRASH1_9639
Camera.SetFixedPosition(2348.495, -1176.45, 1031.486, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2347.538, -1176.732, 1031.558, SwitchType.JumpCut)
gosub @CRASH1_33143
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 3000
35@ += 1

:CRASH1_9639
if 
  35@ == 7
goto_if_false @CRASH1_9757
if 
  354@ == 1
goto_if_false @CRASH1_9689
35@ += 1
goto @CRASH1_9757

:CRASH1_9689
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_9757
if 
  346@ == 0
goto_if_false @CRASH1_9750
Task.GoStraightToCoord($scplayer, 2344.738, -1180.853, 1030.977, MoveState.Walk, -2)

:CRASH1_9750
35@ += 1

:CRASH1_9757
if 
  35@ == 8
goto_if_false @CRASH1_9854
if 
  354@ == 1
goto_if_false @CRASH1_9807
35@ = 50
goto @CRASH1_9854

:CRASH1_9807
if 
  is_local_var_bit_set_const 54@ {n} 10
goto_if_false @CRASH1_9854
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
352@ = 0
35@ += 1

:CRASH1_9854
if 
  35@ == 9
goto_if_false @CRASH1_9879
35@ = 99

:CRASH1_9879
if and
  352@ == 1
  Pad.IsSkipCutsceneButtonPressed
  354@ == 0
goto_if_false @CRASH1_9913
354@ = 1

:CRASH1_9913
if 
  35@ == 50
goto_if_false @CRASH1_9968
Camera.DoFade(500, Fade.Out)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
353@ = 1
35@ += 1

:CRASH1_9968
if 
  35@ == 51
goto_if_false @CRASH1_10192
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_10192
if 
  not is_local_var_bit_set_const 54@ {n} 9
goto_if_false @CRASH1_10037
gosub @CRASH1_33172
set_local_var_bit_const 54@ {n} 10

:CRASH1_10037
if 
  not is_local_var_bit_set_const 54@ {n} 10
goto_if_false @CRASH1_10062
gosub @CRASH1_33172

:CRASH1_10062
if 
  5 > 193@
goto_if_false @CRASH1_10147
if 
  Object.IsPlayingAnim(119@, "BD_FIRE1")
goto_if_false @CRASH1_10140
Object.SetAnimCurrentTime(119@, "BD_FIRE1", 1.0)
193@ = 3
goto @CRASH1_10147

:CRASH1_10140
193@ = 4

:CRASH1_10147
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Camera.DoFade(1500, Fade.In)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1500
35@ += 1

:CRASH1_10192
if 
  35@ == 52
goto_if_false @CRASH1_10257
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_10257
353@ = 0
354@ = 0
352@ = 0
35@ = 9

:CRASH1_10257
gosub @CRASH1_31027
if 
  35@ == 99
goto_if_false @CRASH1_10289
gosub @CRASH1_38827

:CRASH1_10289
return 

:CRASH1_10291
if 
  Char.IsDead(95@)
goto_if_false @CRASH1_10316
37@ = 1
return 

:CRASH1_10316
if 
  35@ == 0
goto_if_false @CRASH1_10369
352@ = 0
353@ = 0
354@ = 0
331@ = 0
35@ += 1

:CRASH1_10369
if 
  35@ == 1
goto_if_false @CRASH1_10394
35@ += 1

:CRASH1_10394
if 
  35@ == 2
goto_if_false @CRASH1_10419
35@ += 1

:CRASH1_10419
if 
  35@ == 3
goto_if_false @CRASH1_10476
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 5000
set_lvar_int_to_lvar_int 207@ = 200@
207@ -= 3000
35@ += 1

:CRASH1_10476
if 
  35@ == 4
goto_if_false @CRASH1_10595
if 
  207@ <> 0
goto_if_false @CRASH1_10545
if 
  is_int_lvar_greater_than_int_lvar 45@ > 207@
goto_if_false @CRASH1_10545
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 21400)
207@ = 0

:CRASH1_10545
if and
  is_int_lvar_greater_than_int_lvar 45@ > 200@
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @CRASH1_10595
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 2000
35@ += 1

:CRASH1_10595
if 
  35@ == 5
goto_if_false @CRASH1_10682
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_10678
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 5000
set_lvar_int_to_lvar_int 207@ = 200@
207@ -= 3000
35@ += 1
goto @CRASH1_10682

:CRASH1_10678
Camera.Shake(80)

:CRASH1_10682
if 
  35@ == 6
goto_if_false @CRASH1_10801
if 
  207@ <> 0
goto_if_false @CRASH1_10751
if 
  is_int_lvar_greater_than_int_lvar 45@ > 207@
goto_if_false @CRASH1_10751
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 21401)
207@ = 0

:CRASH1_10751
if and
  is_int_lvar_greater_than_int_lvar 45@ > 200@
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @CRASH1_10801
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1500
35@ += 1

:CRASH1_10801
if 
  35@ == 7
goto_if_false @CRASH1_10856
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_10852
35@ += 1
goto @CRASH1_10856

:CRASH1_10852
Camera.Shake(40)

:CRASH1_10856
if 
  35@ == 8
goto_if_false @CRASH1_11024
if 
  322@ == 1
goto_if_false @CRASH1_11024
World.ClearArea(2351.762, -1178.75, 26.9753, 15.0, True)
Char.SetCoordinates(95@, 2352.262, -1176.75, 26.9753)
Char.SetHeading(95@, 0.0)
Char.SetHasUsedEntryExit(95@, 2352.114, -1170.61, 8.0)
Char.SetAreaVisible(95@, 0)
Char.ClearTasksImmediately(95@)
World.SwitchEntryExit('GANG', False)
Blip.Remove(122@)
gosub @CRASH1_33172
50@ = 12
gosub @CRASH1_32981
35@ += 1

:CRASH1_11024
if 
  35@ == 9
goto_if_false @CRASH1_11274
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
Camera.SetFixedPosition(2354.589, -1166.262, 27.87, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2353.826, -1166.89, 28.0181, SwitchType.JumpCut)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
220@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2351.97, -1169.26, 27.013, MoveState.Walk, -2)
Task.AchieveHeading(-1, 180.0)
Sequence.Close(220@)
Char.PerformSequence($scplayer, 220@)
Sequence.Clear(220@)
220@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2351.97, -1170.26, 27.013, MoveState.Run, -2)
Task.AchieveHeading(-1, 0.0)
Sequence.Close(220@)
Char.PerformSequence(95@, 220@)
Sequence.Clear(220@)
Streaming.RequestModel(407)
Streaming.RequestModel(277)
Streaming.LoadAllModelsNow
331@ = 1
352@ = 1
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
35@ += 1

:CRASH1_11274
if 
  35@ == 10
goto_if_false @CRASH1_11456
if 
  354@ == 1
goto_if_false @CRASH1_11324
35@ = 50
goto @CRASH1_11456

:CRASH1_11324
if 
  49@ <> 12
goto_if_false @CRASH1_11356
50@ = 12
gosub @CRASH1_32981

:CRASH1_11356
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_11456
if 
  49@ == 12
goto_if_false @CRASH1_11456
40@ = Char.GetScriptTaskStatus(95@, -1)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_11456
40@ = Char.GetScriptTaskStatus($scplayer, -1)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_11456
35@ += 1

:CRASH1_11456
if 
  35@ == 11
goto_if_false @CRASH1_11675
if 
  354@ == 1
goto_if_false @CRASH1_11506
35@ = 50
goto @CRASH1_11675

:CRASH1_11506
Task.CharSlideToCoordAndPlayAnim(95@, 2351.97, -1170.26, 27.013, 0.0, 0.2, "GRLFRD_KISS_03", "BD_FIRE", 4.0, False, False, False, False, -1)
Task.CharSlideToCoordAndPlayAnim($scplayer, 2351.97, -1169.26, 27.013, 180.0, 0.2, "PLAYA_KISS_03", "BD_FIRE", 4.0, False, False, False, False, -1)
gosub @CRASH1_33143
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1000
35@ += 1

:CRASH1_11675
if 
  35@ == 12
goto_if_false @CRASH1_11871
if 
  354@ == 1
goto_if_false @CRASH1_11725
35@ = 50
goto @CRASH1_11871

:CRASH1_11725
if and
  not Char.IsPlayingAnim(95@, "GRLFRD_KISS_03")
  not Char.IsPlayingAnim($scplayer, "PLAYA_KISS_03")
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_11871
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, 95@)
Char.SetNeverLeavesGroup(95@, True)
Char.ListenToPlayerGroupCommands(95@, False)
Task.FollowFootsteps(95@, $scplayer)
Player.SetGroupToFollowAlways($player1, True)
331@ = 0
352@ = 0
World.ClearAllScriptFireFlags
35@ += 1

:CRASH1_11871
if 
  35@ == 13
goto_if_false @CRASH1_11917
if and
  Streaming.HasModelLoaded(407)
  Streaming.HasModelLoaded(277)
goto_if_false @CRASH1_11917
35@ = 99

:CRASH1_11917
if and
  352@ == 1
  Pad.IsSkipCutsceneButtonPressed
  354@ == 0
goto_if_false @CRASH1_11951
354@ = 1

:CRASH1_11951
if 
  35@ == 50
goto_if_false @CRASH1_12161
if 
  Char.IsPlayingAnim(95@, "GRLFRD_KISS_03")
goto_if_false @CRASH1_12027
Char.SetAnimCurrentTime(95@, "GRLFRD_KISS_03", 1.0)

:CRASH1_12027
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_03")
goto_if_false @CRASH1_12083
Char.SetAnimCurrentTime($scplayer, "PLAYA_KISS_03", 1.0)

:CRASH1_12083
if 
  not is_local_var_bit_set_const 54@ {n} 12
goto_if_false @CRASH1_12108
gosub @CRASH1_33172

:CRASH1_12108
Char.ClearTasksImmediately(95@)
Char.ClearTasksImmediately($scplayer)
set_lvar_int_to_lvar_int 200@ = 45@
353@ = 0
354@ = 0
331@ = 0
352@ = 0
35@ = 12

:CRASH1_12161
if 
  331@ == 0
goto_if_false @CRASH1_12186
gosub @CRASH1_29132

:CRASH1_12186
gosub @CRASH1_31027
gosub @CRASH1_31470
gosub @CRASH1_31657
289@ = 2319.994
289@ -= 1.5
291@ = -1179.218
291@ -= 1.5
293@ = 1030.977
293@ -= 1.2
290@ = 2319.994
290@ += 1.5
292@ = -1179.218
292@ += 1.5
294@ = 1030.977
294@ += 1.2
if and
  Char.IsInArea3D($scplayer, 289@, 291@, 293@, 290@, 292@, 294@, False)
  324@ == 1
goto_if_false @CRASH1_12446
Blip.Remove(122@)
282@ = 2353.085
283@ = -1181.1
284@ = 1026.97
122@ = Blip.AddForCoord(282@, 283@, 284@)
Blip.SetEntryExit(122@, 2352.114, -1170.61, 3.0)
324@ = 0

:CRASH1_12446
World.ClearArea(255@, 256@, 257@, 3.0, False)
if and
  314@ == 0
  315@ == 1
goto_if_false @CRASH1_12536
315@ = 0
Player.SetControl($player1, False)
Char.RemoveFromGroup(95@)
Task.StandStill(95@, -2)
Char.FreezePosition(95@, True)
323@ = 1
336@ = 0

:CRASH1_12536
if and
  314@ == 0
  323@ == 1
goto_if_false @CRASH1_12765
if 
  Char.LocateOnFoot3D($scplayer, 2351.575, -1166.19, 26.4524, 4.0, 4.0, 4.0, False)
goto_if_false @CRASH1_12765
if 
  not Camera.GetFadingStatus
goto_if_false @CRASH1_12765
if or
  Char.IsInArea3D(95@, 2340.097, -1188.51, 1025.577, 2352.977, -1179.882, 1028.184, False)
  Char.IsInArea3D(95@, 2344.22, -1179.892, 1025.577, 2349.831, -1171.664, 1028.184, False)
goto_if_false @CRASH1_12735
322@ = 1
323@ = 0
Char.FreezePosition(95@, False)
goto @CRASH1_12765

:CRASH1_12735
Text.PrintNow('CRA1_10', 8000, 1)
Player.SetControl($player1, True)
336@ = 1

:CRASH1_12765
if and
  314@ == 1
  336@ == 1
goto_if_false @CRASH1_12844
336@ = 0
Char.FreezePosition(95@, False)
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, 95@)
Char.SetNeverLeavesGroup(95@, True)
Char.ListenToPlayerGroupCommands(95@, False)
Player.SetGroupToFollowAlways($player1, True)
190@ = 2

:CRASH1_12844
if 
  Char.HasGotWeapon($scplayer, WeaponType.Extinguisher)
goto_if_false @CRASH1_12901
214@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Extinguisher)
if 
  500 > 214@
goto_if_false @CRASH1_12901
Char.SetAmmo($scplayer, WeaponType.Extinguisher, 30000)

:CRASH1_12901
if 
  342@ == 1
goto_if_false @CRASH1_12972
clear_local_var_bit_const 54@ {n} 11
50@ = 11
gosub @CRASH1_32981
if 
  49@ == 11
goto_if_false @CRASH1_12972
gosub @CRASH1_33143
342@ = 0

:CRASH1_12972
if 
  314@ == 0
goto_if_false @CRASH1_13153
if 
  348@ == 1
goto_if_false @CRASH1_13084
if 
  not Char.LocateAnyMeans3D($scplayer, 2337.666, -1180.994, 31.7513, 48.1099, 41.5599, 18.75, False)
goto_if_false @CRASH1_13077
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
348@ = 0

:CRASH1_13077
goto @CRASH1_13153

:CRASH1_13084
if 
  Char.LocateAnyMeans3D($scplayer, 2337.666, -1180.994, 31.7513, 38.1099, 31.5599, 8.75, False)
goto_if_false @CRASH1_13153
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
348@ = 1

:CRASH1_13153
if 
  35@ == 99
goto_if_false @CRASH1_13178
gosub @CRASH1_38827

:CRASH1_13178
return 

:CRASH1_13180
if 
  35@ == 0
goto_if_false @CRASH1_13324
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
gosub @CRASH1_31844
258@ = 2402.307
259@ = -1727.53
260@ = 12.3906
122@ = Blip.AddForCoord(258@, 259@, 260@)
Blip.Remove(131@)
325@ = 0
326@ = 0
336@ = 0
50@ = 13
gosub @CRASH1_32981
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech(95@, True)
35@ += 1

:CRASH1_13324
if 
  Char.IsDead(95@)
goto_if_false @CRASH1_13367
if 
  326@ == 0
goto_if_false @CRASH1_13367
37@ = 1
return 

:CRASH1_13367
if 
  35@ == 1
goto_if_false @CRASH1_13449
if 
  49@ <> 13
goto_if_false @CRASH1_13417
50@ = 13
gosub @CRASH1_32981

:CRASH1_13417
if 
  49@ == 13
goto_if_false @CRASH1_13449
gosub @CRASH1_33143
35@ += 1

:CRASH1_13449
if 
  35@ == 2
goto_if_false @CRASH1_13773
351@ = 0
if 
  Char.LocateAnyMeans3D(95@, 258@, 259@, 260@, 3.0, 3.0, 3.0, True)
goto_if_false @CRASH1_13580
351@ = 1
Player.SetControl($player1, False)
if 
  Char.IsInAnyCar(95@)
goto_if_false @CRASH1_13580
$car = Char.StoreCarIsInNoSave(95@)
if 
  not Char.IsInCar($scplayer, $car)
goto_if_false @CRASH1_13580
351@ = 0

:CRASH1_13580
if 
  351@ == 1
goto_if_false @CRASH1_13773
Char.RemoveFromGroup(95@)
Blip.Remove(122@)
Blip.Remove(131@)
326@ = 1
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
World.ClearArea(2401.52, -1722.074, 12.6072, 8.0, True)
if 
  Char.IsInAnyCar(95@)
goto_if_false @CRASH1_13715
$car = Char.StoreCarIsInNoSave(95@)
282@, 283@, 284@ = Car.GetCoordinates($car)
World.ClearArea(282@, 283@, 284@, 5.0, True)

:CRASH1_13715
Camera.SetFixedPosition(2392.542, -1727.949, 14.991, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2393.458, -1727.558, 14.9067, SwitchType.JumpCut)
35@ += 1

:CRASH1_13773
if 
  35@ == 3
goto_if_false @CRASH1_13861
50@ = 16
gosub @CRASH1_32981
if 
  49@ == 16
goto_if_false @CRASH1_13861
gosub @CRASH1_33143
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @CRASH1_13854
Task.TurnCharToFaceChar($scplayer, 95@)

:CRASH1_13854
35@ += 1

:CRASH1_13861
if 
  35@ == 4
goto_if_false @CRASH1_13904
if 
  is_local_var_bit_set_const 54@ {n} 16
goto_if_false @CRASH1_13904
35@ += 1

:CRASH1_13904
if 
  35@ == 5
goto_if_false @CRASH1_13968
50@ = 17
gosub @CRASH1_32981
if 
  49@ == 17
goto_if_false @CRASH1_13968
gosub @CRASH1_33143
35@ += 1

:CRASH1_13968
if 
  35@ == 6
goto_if_false @CRASH1_14028
if 
  Char.IsInAnyCar(95@)
goto_if_false @CRASH1_14021
Task.LeaveAnyCar(95@)
35@ += 1
goto @CRASH1_14028

:CRASH1_14021
35@ = 8

:CRASH1_14028
if 
  35@ == 7
goto_if_false @CRASH1_14082
40@ = Char.GetScriptTaskStatus(95@, 1587)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_14082
35@ += 1

:CRASH1_14082
if 
  35@ == 8
goto_if_false @CRASH1_14155
Task.GoStraightToCoord(95@, 2402.052, -1719.716, 12.6181, MoveState.Run, -2)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @CRASH1_14148
Task.TurnCharToFaceChar($scplayer, 95@)

:CRASH1_14148
35@ += 1

:CRASH1_14155
if 
  35@ == 9
goto_if_false @CRASH1_14400
40@ = Char.GetScriptTaskStatus(95@, 1491)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_14400
282@, 283@, 284@ = Char.GetCoordinates($scplayer)
set_lvar_float_to_lvar_float 290@ = 282@
set_lvar_float_to_lvar_float 292@ = 283@
282@, 283@, 284@ = Char.GetCoordinates(95@)
set_lvar_float_to_lvar_float 289@ = 282@
set_lvar_float_to_lvar_float 291@ = 283@
set_lvar_float_to_lvar_float 282@ = 289@
sub_float_lvar_from_float_lvar 282@ -= 290@
set_lvar_float_to_lvar_float 283@ = 291@
sub_float_lvar_from_float_lvar 283@ -= 292@
285@ = Math.GetHeadingFromVector2D(282@, 283@)
Task.CharSlideToCoordAndPlayAnim(95@, 2402.052, -1719.716, 12.6181, 285@, 0.2, "BD_GF_WAVE", "BD_FIRE", 4.0, False, False, False, False, -1)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @CRASH1_14393
Task.TurnCharToFaceChar($scplayer, 95@)

:CRASH1_14393
35@ += 1

:CRASH1_14400
if 
  35@ == 10
goto_if_false @CRASH1_14464
50@ = 18
gosub @CRASH1_32981
if 
  49@ == 18
goto_if_false @CRASH1_14464
gosub @CRASH1_33143
35@ += 1

:CRASH1_14464
if 
  35@ == 11
goto_if_false @CRASH1_14582
if 
  Char.IsPlayingAnim(95@, "BD_GF_WAVE")
goto_if_false @CRASH1_14582
295@ = Char.GetAnimCurrentTime(95@, "BD_GF_WAVE")
if 
  295@ == 1.0
goto_if_false @CRASH1_14582
Task.GoStraightToCoord(95@, 2401.857, -1717.01, 12.6334, MoveState.Run, -2)
35@ += 1

:CRASH1_14582
if 
  35@ == 12
goto_if_false @CRASH1_14656
40@ = Char.GetScriptTaskStatus(95@, 1491)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_14656
Char.Delete(95@)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Char.ShutUpForScriptedSpeech($scplayer, False)
35@ += 1

:CRASH1_14656
if 
  35@ == 13
goto_if_false @CRASH1_14699
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Game.SetAllCarsCanBeDamaged(True)
35@ = 99

:CRASH1_14699
if 
  326@ == 0
goto_if_false @CRASH1_14803
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CRASH1_14770
if 
  325@ == 0
goto_if_false @CRASH1_14763
325@ = 1
Char.ClearTasksImmediately(95@)

:CRASH1_14763
goto @CRASH1_14803

:CRASH1_14770
if 
  325@ == 1
goto_if_false @CRASH1_14803
325@ = 0
Task.FollowFootsteps(95@, $scplayer)

:CRASH1_14803
if 
  not Char.IsDead(95@)
goto_if_false @CRASH1_15122
214@ = Char.GetAreaVisible($scplayer)
215@ = Char.GetAreaVisible(95@)
if 
  is_int_lvar_equal_to_int_lvar 214@ == 215@
goto_if_false @CRASH1_15122
282@, 283@, 284@ = Char.GetCoordinates(95@)
286@, 287@, 288@ = Char.GetCoordinates($scplayer)
296@ = Math.GetDistanceBetweenCoords3D(282@, 283@, 284@, 286@, 287@, 288@)
if 
  336@ == 1
goto_if_false @CRASH1_15041
if 
  20.0 > 296@
goto_if_false @CRASH1_15034
336@ = 0
Char.ClearTasks(95@)
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, 95@)
Char.SetNeverLeavesGroup(95@, True)
Char.ListenToPlayerGroupCommands(95@, False)
Player.SetGroupToFollowAlways($player1, True)
if 
  325@ == 0
goto_if_false @CRASH1_15015
Task.FollowFootsteps(95@, $scplayer)

:CRASH1_15015
122@ = Blip.AddForCoord(258@, 259@, 260@)
Blip.Remove(131@)

:CRASH1_15034
goto @CRASH1_15122

:CRASH1_15041
if 
  296@ > 50.0
goto_if_false @CRASH1_15122
336@ = 1
Text.PrintNow('CRA1_12', 7000, 1)
Char.RemoveFromGroup(95@)
Char.ClearTasksImmediately(95@)
Task.StandStill(95@, -2)
Blip.Remove(122@)
131@ = Blip.AddForChar(95@)
Blip.SetAsFriendly(131@, True)

:CRASH1_15122
if and
  not Char.IsDead(95@)
  326@ == 0
goto_if_false @CRASH1_15262
if and
  Char.IsInAnyCar($scplayer)
  Char.IsInAnyCar(95@)
goto_if_false @CRASH1_15262
$car = Char.StoreCarIsInNoSave($scplayer)
if and
  Char.IsInCar(95@, $car)
  not Car.IsStopped($car)
goto_if_false @CRASH1_15262
if and
  not is_local_var_bit_set_const 54@ {n} 14
  49@ == 0
goto_if_false @CRASH1_15262
50@ = 14
gosub @CRASH1_32981
if 
  49@ == 14
goto_if_false @CRASH1_15262
gosub @CRASH1_33143

:CRASH1_15262
if and
  not Char.IsDead(95@)
  326@ == 0
goto_if_false @CRASH1_15422
if and
  not is_local_var_bit_set_const 54@ {n} 15
  49@ <> 15
goto_if_false @CRASH1_15422
if 
  Char.LocateAnyMeans3D(95@, 258@, 259@, 260@, 30.0, 30.0, 20.0, False)
goto_if_false @CRASH1_15422
gosub @CRASH1_33172
50@ = 15
gosub @CRASH1_32981
if 
  49@ == 15
goto_if_false @CRASH1_15398
gosub @CRASH1_33143

:CRASH1_15398
World.ClearArea(2401.52, -1722.074, 12.6072, 8.0, True)

:CRASH1_15422
if 
  35@ == 99
goto_if_false @CRASH1_15447
gosub @CRASH1_38827

:CRASH1_15447
return 

:CRASH1_15449
if 
  35@ == 0
goto_if_false @CRASH1_15512
Char.SetProofs($scplayer, True, True, True, True, True)
Player.SetControl($player1, False)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1000
35@ += 1

:CRASH1_15512
if 
  35@ == 1
goto_if_false @CRASH1_15587
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_15587
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.Out)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
35@ += 1

:CRASH1_15587
if 
  35@ == 2
goto_if_false @CRASH1_15849
if and
  not Camera.GetFadingStatus
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_15849
if 
  314@ == 0
goto_if_false @CRASH1_15693
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CRASH1_15693
$car = Char.StoreCarIsInNoSave($scplayer)
Char.WarpFromCarToCoord($scplayer, 2351.733, -1179.042, 26.9753)
Car.Delete($car)

:CRASH1_15693
Streaming.SetAreaVisible(0)
World.ClearArea(2351.961, -1172.073, 26.9765, 8.0, True)
Streaming.LoadScene(2351.961, -1172.073, 26.9765)
Char.SetCoordinates($scplayer, 2351.961, -1172.073, 26.9765)
Char.SetHeading($scplayer, 0.0)
Char.SetAreaVisible($scplayer, 0)
Camera.SetFixedPosition(2345.044, -1170.015, 32.0063, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2345.8, -1169.822, 31.381, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1000
35@ += 1

:CRASH1_15849
if 
  35@ == 3
goto_if_false @CRASH1_15940
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_15940
Camera.DoFade(500, Fade.In)
Task.GoStraightToCoord($scplayer, 2351.928, -1166.08, 26.4593, MoveState.Run, -2)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
35@ += 1

:CRASH1_15940
if 
  35@ == 4
goto_if_false @CRASH1_16045
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_16045
40@ = Char.GetScriptTaskStatus($scplayer, 1491)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_16045
Char.SetCoordinates($scplayer, 2351.928, -1166.08, 26.4593)
Char.SetHeading($scplayer, 0.0)
Camera.SetBehindPlayer
35@ = 99

:CRASH1_16045
if 
  35@ == 99
goto_if_false @CRASH1_16092
Char.SetProofs($scplayer, False, False, False, False, False)
Player.SetControl($player1, True)
gosub @CRASH1_38827

:CRASH1_16092
return 

:CRASH1_16094
if 
  334@ == 0
goto_if_false @CRASH1_16169
Object.SetProofs(114@, False, False, False, False, False)
Object.SetCollisionDamageEffect(114@, True)
Object.SetDynamic(114@, True)
Object.Break(114@, 1)
197@ = 0
gosub @CRASH1_25459
goto @CRASH1_16183

:CRASH1_16169
192@ = 2
gosub @CRASH1_24873

:CRASH1_16183
if 
  not Char.IsDead(94@)
goto_if_false @CRASH1_16244
Char.SetCoordinates(94@, 2352.181, -1164.893, 26.4392)
138@ = ScriptFire.CreateCharFire(94@)
Char.SetHealth(94@, 1)
Char.ClearTasksImmediately(94@)
Task.Die(94@)

:CRASH1_16244
if 
  Object.DoesExist(106@)
goto_if_false @CRASH1_16265
Object.Delete(106@)

:CRASH1_16265
if 
  335@ == 0
goto_if_false @CRASH1_16297
197@ = 4
gosub @CRASH1_25459

:CRASH1_16297
Blip.Remove(122@)
282@ = 2352.037
283@ = -1170.318
284@ = 26.9702
122@ = Blip.AddForCoord(282@, 283@, 284@)
gosub @CRASH1_26993
216@ = 0

:CRASH1_16360
if 
  not Char.IsDead(87@(216@,5i))
goto_if_false @CRASH1_16409
if 
  182@(216@,5i) == 6
goto_if_false @CRASH1_16409
gosub @CRASH1_18650

:CRASH1_16409
216@ += 1
  216@ >= 5
goto_if_false @CRASH1_16360
if 
  187@ == 5
goto_if_false @CRASH1_16455
gosub @CRASH1_23025

:CRASH1_16455
return 

:CRASH1_16457
282@ = 1785.698
283@ = -1222.105
284@ = 16.9119
214@ = 0
132@ = Pickup.CreateWithAmmo(344, PickupType.Once, 20, 282@, 283@, 284@)
128@ = Blip.AddForPickup(132@)
return 

:CRASH1_16525
if 
  Char.IsDead(87@(216@,5i))
goto_if_false @CRASH1_16554
299@ = 1
return 

:CRASH1_16554
switch_start 182@(216@,5i) {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @CRASH1_16802 {caseNum1} -1 {caseLabel1} @CRASH1_16686 {caseNum2} 0 {caseLabel2} @CRASH1_16711 {caseNum3} 1 {caseLabel3} @CRASH1_16725 {caseNum4} 2 {caseLabel4} @CRASH1_16739 {caseNum5} 3 {caseLabel5} @CRASH1_16753 {caseNum6} 4 {caseLabel6} @CRASH1_16760 {caseNum7} 5 {caseLabel7} @CRASH1_16774
switch_continued 6 {caseLabel1} @CRASH1_16788 {caseNum2} -1 {caseLabel2} @CRASH1_16802 {caseNum3} -1 {caseLabel3} @CRASH1_16802 {caseNum4} -1 {caseLabel4} @CRASH1_16802 {caseNum5} -1 {caseLabel5} @CRASH1_16802 {caseNum6} -1 {caseLabel6} @CRASH1_16802 {caseNum7} -1 {caseLabel7} @CRASH1_16802 {caseNum8} -1 {caseLabel8} @CRASH1_16802 {caseNum9} -1 {caseLabel9} @CRASH1_16802

:CRASH1_16686
gosub @CRASH1_16804
182@(216@,5i) = 0
goto @CRASH1_16802

:CRASH1_16711
gosub @CRASH1_17015
goto @CRASH1_16802

:CRASH1_16725
gosub @CRASH1_17569
goto @CRASH1_16802

:CRASH1_16739
gosub @CRASH1_18020
goto @CRASH1_16802

:CRASH1_16753
goto @CRASH1_16802

:CRASH1_16760
gosub @CRASH1_17664
goto @CRASH1_16802

:CRASH1_16774
gosub @CRASH1_18158
goto @CRASH1_16802

:CRASH1_16788
gosub @CRASH1_18210
goto @CRASH1_16802

:CRASH1_16802
return 

:CRASH1_16804
switch_start 216@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CRASH1_16964 {caseNum1} 0 {caseLabel1} @CRASH1_16867 {caseNum2} 1 {caseLabel2} @CRASH1_16916 {caseNum3} -1 {caseLabel3} @CRASH1_17013 {caseNum4} -1 {caseLabel4} @CRASH1_17013 {caseNum5} -1 {caseLabel5} @CRASH1_17013 {caseNum6} -1 {caseLabel6} @CRASH1_17013 {caseNum7} -1 {caseLabel7} @CRASH1_17013

:CRASH1_16867
Task.PlayAnimNonInterruptable(87@(216@,5i), "WASH_UP", "BD_FIRE", 1.0, True, False, False, False, -1)
goto @CRASH1_17013

:CRASH1_16916
Task.PlayAnim(87@(216@,5i), "PHONE_TALK", "PED", 1.0, True, False, False, False, -1)
goto @CRASH1_17013

:CRASH1_16964
Task.PlayAnim(87@(216@,5i), "M_SMKLEAN_LOOP", "BD_FIRE", 1.0, True, False, False, False, -1)

:CRASH1_17013
return 

:CRASH1_17015
if 
  301@ == 1
goto_if_false @CRASH1_17042
gosub @CRASH1_17618
return 

:CRASH1_17042
if and
  332@ == 1
  333@ == 1
goto_if_false @CRASH1_17076
gosub @CRASH1_17618
return 

:CRASH1_17076
if 
  298@ == 1
goto_if_false @CRASH1_17103
gosub @CRASH1_17848
return 

:CRASH1_17103
if 
  299@ == 1
goto_if_false @CRASH1_17130
gosub @CRASH1_17618
return 

:CRASH1_17130
if 
  Char.HasBeenDamagedByChar(87@(216@,5i), $scplayer)
goto_if_false @CRASH1_17169
gosub @CRASH1_17618
299@ = 1
return 

:CRASH1_17169
if 
  297@ == 1
goto_if_false @CRASH1_17189
return 

:CRASH1_17189
switch_start 216@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_17497 {caseNum1} 0 {caseLabel1} @CRASH1_17252 {caseNum2} 1 {caseLabel2} @CRASH1_17301 {caseNum3} 2 {caseLabel3} @CRASH1_17350 {caseNum4} 3 {caseLabel4} @CRASH1_17399 {caseNum5} 4 {caseLabel5} @CRASH1_17448 {caseNum6} -1 {caseLabel6} @CRASH1_17497 {caseNum7} -1 {caseLabel7} @CRASH1_17497

:CRASH1_17252
if 
  Char.LocateAnyMeansChar2D(87@(216@,5i), $scplayer, 3.0, 3.0, False)
goto_if_false @CRASH1_17294
gosub @CRASH1_17499

:CRASH1_17294
goto @CRASH1_17497

:CRASH1_17301
if 
  Char.LocateAnyMeansChar2D(87@(216@,5i), $scplayer, 3.0, 3.0, False)
goto_if_false @CRASH1_17343
gosub @CRASH1_17499

:CRASH1_17343
goto @CRASH1_17497

:CRASH1_17350
if 
  Char.LocateAnyMeansChar2D(87@(216@,5i), $scplayer, 3.0, 3.0, False)
goto_if_false @CRASH1_17392
gosub @CRASH1_17499

:CRASH1_17392
goto @CRASH1_17497

:CRASH1_17399
if 
  Char.LocateAnyMeansChar2D(87@(216@,5i), $scplayer, 3.0, 3.0, False)
goto_if_false @CRASH1_17441
gosub @CRASH1_17499

:CRASH1_17441
goto @CRASH1_17497

:CRASH1_17448
if 
  Char.LocateAnyMeansChar2D(87@(216@,5i), $scplayer, 3.0, 3.0, False)
goto_if_false @CRASH1_17490
gosub @CRASH1_17499

:CRASH1_17490
goto @CRASH1_17497

:CRASH1_17497
return 

:CRASH1_17499
221@ = Char.SetSayContext(87@(216@,5i), 2)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @CRASH1_17549
Task.GotoChar(87@(216@,5i), $scplayer, 5000, 3.0)

:CRASH1_17549
182@(216@,5i) = 1
297@ = 1
return 

:CRASH1_17569
40@ = Char.GetScriptTaskStatus(87@(216@,5i), 1497)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_17616
298@ = 1
gosub @CRASH1_17618

:CRASH1_17616
return 

:CRASH1_17618
Char.ClearTasksImmediately(87@(216@,5i))
Char.SetDecisionMaker(87@(216@,5i), 181@)
Task.KillCharOnFoot(87@(216@,5i), $scplayer)
182@(216@,5i) = 4
return 

:CRASH1_17664
if 
  329@ == 1
goto_if_false @CRASH1_17695
182@(216@,5i) = 5
return 

:CRASH1_17695
282@, 283@, 284@ = Char.GetCoordinates($scplayer)
set_lvar_float_to_lvar_float 289@ = 282@
set_lvar_float_to_lvar_float 291@ = 283@
282@, 283@, 284@ = Char.GetCoordinates(87@(216@,5i))
set_lvar_float_to_lvar_float 290@ = 282@
set_lvar_float_to_lvar_float 292@ = 283@
295@ = Math.GetDistanceBetweenCoords2D(289@, 291@, 290@, 292@)
if 
  295@ > 38.0
goto_if_false @CRASH1_17806
gosub @CRASH1_17848
return 

:CRASH1_17806
40@ = Char.GetScriptTaskStatus(87@(216@,5i), 1506)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_17846
gosub @CRASH1_17618

:CRASH1_17846
return 

:CRASH1_17848
if 
  329@ == 1
goto_if_false @CRASH1_17879
182@(216@,5i) = 5
return 

:CRASH1_17879
Char.ClearTasksImmediately(87@(216@,5i))
282@, 283@, 284@ = Char.GetCoordinates($scplayer)
set_lvar_float_to_lvar_float 289@ = 282@
set_lvar_float_to_lvar_float 291@ = 283@
282@, 283@, 284@ = Char.GetCoordinates(87@(216@,5i))
set_lvar_float_to_lvar_float 290@ = 282@
set_lvar_float_to_lvar_float 292@ = 283@
set_lvar_float_to_lvar_float 282@ = 289@
sub_float_lvar_from_float_lvar 282@ -= 290@
set_lvar_float_to_lvar_float 283@ = 291@
sub_float_lvar_from_float_lvar 283@ -= 292@
285@ = Math.GetHeadingFromVector2D(282@, 283@)
Task.AchieveHeading(87@(216@,5i), 285@)
182@(216@,5i) = 2
return 

:CRASH1_18020
282@, 283@, 284@ = Char.GetCoordinates($scplayer)
set_lvar_float_to_lvar_float 289@ = 282@
set_lvar_float_to_lvar_float 291@ = 283@
282@, 283@, 284@ = Char.GetCoordinates(87@(216@,5i))
set_lvar_float_to_lvar_float 290@ = 282@
set_lvar_float_to_lvar_float 292@ = 283@
295@ = Math.GetDistanceBetweenCoords2D(289@, 291@, 290@, 292@)
if 
  35.0 > 295@
goto_if_false @CRASH1_18131
gosub @CRASH1_17618
return 

:CRASH1_18131
if 
  300@ == 1
goto_if_false @CRASH1_18156
gosub @CRASH1_17848

:CRASH1_18156
return 

:CRASH1_18158
gosub @CRASH1_18329
Char.ClearTasksImmediately(87@(216@,5i))
Char.SetDecisionMaker(87@(216@,5i), 180@)
Task.StandStill(87@(216@,5i), -2)
182@(216@,5i) = 6
return 

:CRASH1_18210
if 
  329@ == 1
goto_if_false @CRASH1_18283
40@ = Char.GetScriptTaskStatus(87@(216@,5i), 1466)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_18281
Char.ClearTasksImmediately(87@(216@,5i))
Task.StandStill(87@(216@,5i), -2)

:CRASH1_18281
return 

:CRASH1_18283
Char.ClearTasksImmediately(87@(216@,5i))
Char.SetDecisionMaker(87@(216@,5i), 181@)
Task.KillCharOnFoot(87@(216@,5i), $scplayer)
182@(216@,5i) = 4
return 

:CRASH1_18329
261@(216@,5f), 266@(216@,5f), 271@(216@,5f) = Char.GetCoordinates(87@(216@,5i))
switch_start 210@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @CRASH1_18639 {caseNum1} 0 {caseLabel1} @CRASH1_18422 {caseNum2} 1 {caseLabel2} @CRASH1_18453 {caseNum3} 2 {caseLabel3} @CRASH1_18484 {caseNum4} 3 {caseLabel4} @CRASH1_18515 {caseNum5} 4 {caseLabel5} @CRASH1_18546 {caseNum6} 5 {caseLabel6} @CRASH1_18577 {caseNum7} 6 {caseLabel7} @CRASH1_18608

:CRASH1_18422
Char.SetCoordinates(87@(216@,5i), 2319.314, -1202.897, 26.9609)
goto @CRASH1_18641

:CRASH1_18453
Char.SetCoordinates(87@(216@,5i), 2315.977, -1204.658, 26.9609)
goto @CRASH1_18641

:CRASH1_18484
Char.SetCoordinates(87@(216@,5i), 2318.991, -1207.222, 26.9615)
goto @CRASH1_18641

:CRASH1_18515
Char.SetCoordinates(87@(216@,5i), 2315.745, -1210.296, 26.9609)
goto @CRASH1_18641

:CRASH1_18546
Char.SetCoordinates(87@(216@,5i), 2318.09, -1212.916, 26.9609)
goto @CRASH1_18641

:CRASH1_18577
Char.SetCoordinates(87@(216@,5i), 2314.109, -1215.641, 26.9609)
goto @CRASH1_18641

:CRASH1_18608
Char.SetCoordinates(87@(216@,5i), 2316.042, -1219.501, 26.9609)
goto @CRASH1_18641

:CRASH1_18639
return 

:CRASH1_18641
210@ += 1
return 

:CRASH1_18650
213@ = 0

:CRASH1_18657
if 
  not Char.IsDead(87@(213@,5i))
goto_if_false @CRASH1_18707
Char.SetCoordinates(87@(213@,5i), 261@(213@,5f), 266@(213@,5f), 271@(213@,5f))

:CRASH1_18707
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_18657
return 

:CRASH1_18730
282@ = 2346.047
283@ = -1189.661
284@ = 27.9709
214@ = 0
109@(214@,5i) = Object.Create(#CR_AMMOBOX, 282@, 283@, 284@)
Object.SetVisible(109@(214@,5i), False)
Object.SetCollision(109@(214@,5i), False)
123@(214@,5i) = Blip.AddForObject(109@(214@,5i))
Blip.ChangeColor(123@(214@,5i), BlipColor.Red)
Object.SetHealth(109@(214@,5i), 1)
282@ = 2336.045
283@ = -1189.661
284@ = 27.9709
214@ += 1
109@(214@,5i) = Object.Create(#CR_AMMOBOX, 282@, 283@, 284@)
Object.SetVisible(109@(214@,5i), False)
Object.SetCollision(109@(214@,5i), False)
123@(214@,5i) = Blip.AddForObject(109@(214@,5i))
Blip.ChangeColor(123@(214@,5i), BlipColor.Red)
Object.SetHealth(109@(214@,5i), 1)
282@ = 2326.409
283@ = -1189.661
284@ = 27.9709
214@ += 1
109@(214@,5i) = Object.Create(#CR_AMMOBOX, 282@, 283@, 284@)
Object.SetVisible(109@(214@,5i), False)
Object.SetCollision(109@(214@,5i), False)
123@(214@,5i) = Blip.AddForObject(109@(214@,5i))
Blip.ChangeColor(123@(214@,5i), BlipColor.Red)
Object.SetHealth(109@(214@,5i), 1)
282@ = 2345.898
283@ = -1170.044
284@ = 27.9709
214@ += 1
109@(214@,5i) = Object.Create(#CR_AMMOBOX, 282@, 283@, 284@)
Object.SetVisible(109@(214@,5i), False)
Object.SetCollision(109@(214@,5i), False)
123@(214@,5i) = Blip.AddForObject(109@(214@,5i))
Blip.ChangeColor(123@(214@,5i), BlipColor.Red)
Object.SetHealth(109@(214@,5i), 1)
282@ = 2326.407
283@ = -1170.044
284@ = 27.9709
214@ += 1
109@(214@,5i) = Object.Create(#CR_AMMOBOX, 282@, 283@, 284@)
Object.SetVisible(109@(214@,5i), False)
Object.SetCollision(109@(214@,5i), False)
123@(214@,5i) = Blip.AddForObject(109@(214@,5i))
Blip.ChangeColor(123@(214@,5i), BlipColor.Red)
Object.SetHealth(109@(214@,5i), 1)
return 

:CRASH1_19322
214@ = 0
222@(214@,5f) = 2345.979
222@(214@,5f) -= 2.1
227@(214@,5f) = 2345.979
227@(214@,5f) += 2.1
232@(214@,5f) = -1188.8
232@(214@,5f) -= 0.8
237@(214@,5f) = -1188.8
237@(214@,5f) += 0.8
242@(214@,5f) = 28.8649
242@(214@,5f) -= 1.2
247@(214@,5f) = 28.8649
247@(214@,5f) += 1.2
302@(214@,5i) = 0
307@(214@,5i) = 0
214@ += 1
222@(214@,5f) = 2336.188
222@(214@,5f) -= 2.1
227@(214@,5f) = 2336.188
227@(214@,5f) += 2.1
232@(214@,5f) = -1188.8
232@(214@,5f) -= 0.8
237@(214@,5f) = -1188.8
237@(214@,5f) += 0.8
242@(214@,5f) = 28.8649
242@(214@,5f) -= 1.2
247@(214@,5f) = 28.8649
247@(214@,5f) += 1.2
302@(214@,5i) = 0
307@(214@,5i) = 0
214@ += 1
222@(214@,5f) = 2326.255
222@(214@,5f) -= 2.1
227@(214@,5f) = 2326.255
227@(214@,5f) += 2.1
232@(214@,5f) = -1188.8
232@(214@,5f) -= 0.8
237@(214@,5f) = -1188.8
237@(214@,5f) += 0.8
242@(214@,5f) = 28.8649
242@(214@,5f) -= 1.2
247@(214@,5f) = 28.8649
247@(214@,5f) += 1.2
302@(214@,5i) = 0
307@(214@,5i) = 0
214@ += 1
222@(214@,5f) = 2346.116
222@(214@,5f) -= 2.1
227@(214@,5f) = 2346.116
227@(214@,5f) += 2.1
232@(214@,5f) = -1171.0
232@(214@,5f) -= 0.8
237@(214@,5f) = -1171.0
237@(214@,5f) += 0.8
242@(214@,5f) = 28.8649
242@(214@,5f) -= 1.2
247@(214@,5f) = 28.8649
247@(214@,5f) += 1.2
302@(214@,5i) = 0
307@(214@,5i) = 0
214@ += 1
222@(214@,5f) = 2326.255
222@(214@,5f) -= 2.1
227@(214@,5f) = 2326.255
227@(214@,5f) += 2.1
232@(214@,5f) = -1171.0
232@(214@,5f) -= 0.8
237@(214@,5f) = -1171.0
237@(214@,5f) += 0.8
242@(214@,5f) = 28.8649
242@(214@,5f) -= 1.2
247@(214@,5f) = 28.8649
247@(214@,5f) += 1.2
302@(214@,5i) = 0
307@(214@,5i) = 0
return 

:CRASH1_20309
if 
  302@(217@,5i) == 1
goto_if_false @CRASH1_20333
return 

:CRASH1_20333
if 
  World.IsProjectileInArea(222@(217@,5f), 232@(217@,5f), 242@(217@,5f), 227@(217@,5f), 237@(217@,5f), 247@(217@,5f))
goto_if_false @CRASH1_20471
if 
  not Object.HasBeenDamaged(101@(217@,8i))
goto_if_false @CRASH1_20419
Object.Break(101@(217@,8i), 1)

:CRASH1_20419
302@(217@,5i) = 1
301@ = 1
Object.Delete(109@(217@,5i))
Blip.Remove(123@(217@,5i))
set_lvar_int_to_lvar_int 205@ = 45@
205@ += 500

:CRASH1_20471
return 

:CRASH1_20473
214@ = Math.RandomIntInRange(0, 5)
switch_start 214@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_20660 {caseNum1} 0 {caseLabel1} @CRASH1_20545 {caseNum2} 1 {caseLabel2} @CRASH1_20568 {caseNum3} 2 {caseLabel3} @CRASH1_20591 {caseNum4} 3 {caseLabel4} @CRASH1_20614 {caseNum5} 4 {caseLabel5} @CRASH1_20637 {caseNum6} -1 {caseLabel6} @CRASH1_20660 {caseNum7} -1 {caseLabel7} @CRASH1_20660

:CRASH1_20545
Text.PrintNow('CRA1_30', 4000, 1)
goto @CRASH1_20660

:CRASH1_20568
Text.PrintNow('CRA1_31', 4000, 1)
goto @CRASH1_20660

:CRASH1_20591
Text.PrintNow('CRA1_32', 4000, 1)
goto @CRASH1_20660

:CRASH1_20614
Text.PrintNow('CRA1_33', 4000, 1)
goto @CRASH1_20660

:CRASH1_20637
Text.PrintNow('CRA1_34', 4000, 1)
goto @CRASH1_20660

:CRASH1_20660
return 

:CRASH1_20662
218@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Molotov)
if and
  218@ == 0
  5 > 209@
goto_if_false @CRASH1_21013
if 
  345@ == 0
goto_if_false @CRASH1_20740
set_lvar_int_to_lvar_int 208@ = 45@
208@ += 3000
345@ = 1
return 

:CRASH1_20740
if 
  not is_int_lvar_greater_than_int_lvar 45@ > 208@
goto_if_false @CRASH1_20761
return 

:CRASH1_20761
208@ = 0
345@ = 0
282@ = 2337.602
283@ = -1169.369
284@ = 28.2207
214@ = 0
133@(214@,2i) = Pickup.CreateWithAmmo(344, PickupType.Once, 20, 282@, 283@, 284@)
129@(214@,2i) = Blip.AddForPickup(133@(214@,2i))
282@ = 2334.129
283@ = -1200.438
284@ = 28.1609
214@ += 1
133@(214@,2i) = Pickup.CreateWithAmmo(344, PickupType.Once, 20, 282@, 283@, 284@)
129@(214@,2i) = Blip.AddForPickup(133@(214@,2i))
213@ = 0

:CRASH1_20938
if 
  302@(213@,5i) == 0
goto_if_false @CRASH1_20969
Blip.Remove(123@(213@,5i))

:CRASH1_20969
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_20938
Text.PrintNow('CRA1_03', 5000, 1)
313@ = 1

:CRASH1_21013
return 

:CRASH1_21015
if or
  Pickup.HasBeenCollected(133@)
  Pickup.HasBeenCollected(134@)
goto_if_false @CRASH1_21166
213@ = 0

:CRASH1_21043
Pickup.Remove(133@(213@,2i))
Blip.Remove(129@(213@,2i))
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_21043
213@ = 0

:CRASH1_21089
if 
  302@(213@,5i) == 0
goto_if_false @CRASH1_21138
123@(213@,5i) = Blip.AddForObject(109@(213@,5i))
Blip.ChangeColor(123@(213@,5i), BlipColor.Red)

:CRASH1_21138
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_21089
313@ = 0

:CRASH1_21166
return 

:CRASH1_21168
switch_start 187@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CRASH1_21329 {caseNum1} -1 {caseLabel1} @CRASH1_21231 {caseNum2} 0 {caseLabel2} @CRASH1_21245 {caseNum3} 1 {caseLabel3} @CRASH1_21259 {caseNum4} 2 {caseLabel4} @CRASH1_21273 {caseNum5} 3 {caseLabel5} @CRASH1_21287 {caseNum6} 4 {caseLabel6} @CRASH1_21301 {caseNum7} 5 {caseLabel7} @CRASH1_21315

:CRASH1_21231
gosub @CRASH1_21331
goto @CRASH1_21329

:CRASH1_21245
gosub @CRASH1_21609
goto @CRASH1_21329

:CRASH1_21259
gosub @CRASH1_21703
goto @CRASH1_21329

:CRASH1_21273
gosub @CRASH1_21766
goto @CRASH1_21329

:CRASH1_21287
gosub @CRASH1_21874
goto @CRASH1_21329

:CRASH1_21301
gosub @CRASH1_22007
goto @CRASH1_21329

:CRASH1_21315
gosub @CRASH1_22347
goto @CRASH1_21329

:CRASH1_21329
return 

:CRASH1_21331
if 
  209@ <> 2
goto_if_false @CRASH1_21351
return 

:CRASH1_21351
282@ = 2370.792
283@ = -1250.899
284@ = 22.8451
285@ = 358.0048
World.ClearArea(282@, 283@, 284@, 10.0, False)
99@ = Car.Create(412, 282@, 283@, 284@)
Car.SetHeading(99@, 285@)
Car.SetCruiseSpeed(99@, 100.0)
Car.SetDrivingStyle(99@, DrivingMode.AvoidCars)
214@ = 0
92@(214@,2i) = Char.CreateInsideCar(99@, PedType.Gang8, 109)
Char.GiveWeapon(92@(214@,2i), WeaponType.Pistol, 999)
Char.SetIsTargetPriority(92@(214@,2i), True)
214@ += 1
92@(214@,2i) = Char.CreateAsPassenger(99@, PedType.Gang8, 108, 0)
Char.GiveWeapon(92@(214@,2i), WeaponType.Pistol, 999)
Char.SetIsTargetPriority(92@(214@,2i), True)
252@ = 2370.792
253@ = -1185.662
254@ = 26.4297
Car.GotoCoordinates(99@, 252@, 253@, 254@)
187@ = 0
357@ = 1
return 

:CRASH1_21609
if 
  Car.IsDead(99@)
goto_if_false @CRASH1_21634
187@ = 2
return 

:CRASH1_21634
if 
  Car.Locate2D(99@, 252@, 253@, 6.0, 6.0, False)
goto_if_false @CRASH1_21701
Car.SetTempAction(99@, TempAction.TurnLeft, 500)
set_lvar_int_to_lvar_int 199@ = 45@
199@ += 350
187@ = 1

:CRASH1_21701
return 

:CRASH1_21703
if 
  Car.IsDead(99@)
goto_if_false @CRASH1_21728
187@ = 2
return 

:CRASH1_21728
if 
  is_int_lvar_greater_than_int_lvar 45@ > 199@
goto_if_false @CRASH1_21764
Car.SetTempAction(99@, TempAction.HandbrakeTurnLeft, 5000)
187@ = 2

:CRASH1_21764
return 

:CRASH1_21766
if or
  Car.IsDead(99@)
  Car.IsStopped(99@)
goto_if_false @CRASH1_21872
216@ = 0
if 
  not Char.IsDead(92@(216@,2i))
goto_if_false @CRASH1_21826
Task.LeaveCar(92@(216@,2i), 99@)

:CRASH1_21826
216@ += 1
if 
  not Char.IsDead(92@(216@,2i))
goto_if_false @CRASH1_21865
Task.LeaveCar(92@(216@,2i), 99@)

:CRASH1_21865
187@ = 3

:CRASH1_21872
return 

:CRASH1_21874
216@ = 0
if 
  not Char.IsDead(92@(216@,2i))
goto_if_false @CRASH1_21936
40@ = Char.GetScriptTaskStatus(92@(216@,2i), 1485)
if 
  not is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_21936
return 

:CRASH1_21936
216@ += 1
if 
  not Char.IsDead(92@(216@,2i))
goto_if_false @CRASH1_21998
40@ = Char.GetScriptTaskStatus(92@(216@,2i), 1485)
if 
  not is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_21998
return 

:CRASH1_21998
187@ = 4
return 

:CRASH1_22007
if 
  329@ == 1
goto_if_false @CRASH1_22159
216@ = 0
if 
  not Char.IsDead(92@(216@,2i))
goto_if_false @CRASH1_22084
Char.ClearTasksImmediately(92@(216@,2i))
Char.SetDecisionMaker(92@(216@,2i), 180@)
Task.StandStill(92@(216@,2i), -2)

:CRASH1_22084
216@ += 1
if 
  not Char.IsDead(92@(216@,2i))
goto_if_false @CRASH1_22143
Char.ClearTasksImmediately(92@(216@,2i))
Char.SetDecisionMaker(92@(216@,2i), 180@)
Task.StandStill(92@(216@,2i), -2)

:CRASH1_22143
gosub @CRASH1_22656
187@ = 5
return 

:CRASH1_22159
216@ = 0
if 
  not Char.IsDead(92@(216@,2i))
goto_if_false @CRASH1_22252
40@ = Char.GetScriptTaskStatus(92@(216@,2i), 1506)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_22252
Char.ClearTasksImmediately(92@(216@,2i))
Char.SetDecisionMaker(92@(216@,2i), 181@)
Task.KillCharOnFoot(92@(216@,2i), $scplayer)

:CRASH1_22252
216@ += 1
if 
  not Char.IsDead(92@(216@,2i))
goto_if_false @CRASH1_22345
40@ = Char.GetScriptTaskStatus(92@(216@,2i), 1506)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_22345
Char.ClearTasksImmediately(92@(216@,2i))
Char.SetDecisionMaker(92@(216@,2i), 181@)
Task.KillCharOnFoot(92@(216@,2i), $scplayer)

:CRASH1_22345
return 

:CRASH1_22347
if 
  329@ == 1
goto_if_false @CRASH1_22527
216@ = 0
if 
  not Char.IsDead(92@(216@,2i))
goto_if_false @CRASH1_22445
40@ = Char.GetScriptTaskStatus(92@(216@,2i), 1466)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_22445
Char.ClearTasksImmediately(92@(216@,2i))
Task.StandStill(92@(216@,2i), -2)

:CRASH1_22445
216@ += 1
if 
  not Char.IsDead(92@(216@,2i))
goto_if_false @CRASH1_22525
40@ = Char.GetScriptTaskStatus(92@(216@,2i), 1466)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_22525
Char.ClearTasksImmediately(92@(216@,2i))
Task.StandStill(92@(216@,2i), -2)

:CRASH1_22525
return 

:CRASH1_22527
216@ = 0
if 
  not Char.IsDead(92@(216@,2i))
goto_if_false @CRASH1_22587
Char.ClearTasksImmediately(92@(216@,2i))
Char.SetDecisionMaker(92@(216@,2i), 181@)
Task.KillCharOnFoot(92@(216@,2i), $scplayer)

:CRASH1_22587
216@ += 1
if 
  not Char.IsDead(92@(216@,2i))
goto_if_false @CRASH1_22647
Char.ClearTasksImmediately(92@(216@,2i))
Char.SetDecisionMaker(92@(216@,2i), 181@)
Task.KillCharOnFoot(92@(216@,2i), $scplayer)

:CRASH1_22647
187@ = 4
return 

:CRASH1_22656
213@ = 0

:CRASH1_22663
if 
  not Char.IsDead(92@(213@,2i))
goto_if_false @CRASH1_23002
276@(213@,2f), 278@(213@,2f), 280@(213@,2f) = Char.GetCoordinates(92@(213@,2i))
switch_start 210@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @CRASH1_22993 {caseNum1} 0 {caseLabel1} @CRASH1_22776 {caseNum2} 1 {caseLabel2} @CRASH1_22807 {caseNum3} 2 {caseLabel3} @CRASH1_22838 {caseNum4} 3 {caseLabel4} @CRASH1_22869 {caseNum5} 4 {caseLabel5} @CRASH1_22900 {caseNum6} 5 {caseLabel6} @CRASH1_22931 {caseNum7} 6 {caseLabel7} @CRASH1_22962

:CRASH1_22776
Char.SetCoordinates(92@(213@,2i), 2319.314, -1202.897, 26.9609)
goto @CRASH1_22995

:CRASH1_22807
Char.SetCoordinates(92@(213@,2i), 2315.977, -1204.658, 26.9609)
goto @CRASH1_22995

:CRASH1_22838
Char.SetCoordinates(92@(213@,2i), 2318.991, -1207.222, 26.9615)
goto @CRASH1_22995

:CRASH1_22869
Char.SetCoordinates(92@(213@,2i), 2315.745, -1210.296, 26.9609)
goto @CRASH1_22995

:CRASH1_22900
Char.SetCoordinates(92@(213@,2i), 2318.09, -1212.916, 26.9609)
goto @CRASH1_22995

:CRASH1_22931
Char.SetCoordinates(92@(213@,2i), 2314.109, -1215.641, 26.9609)
goto @CRASH1_22995

:CRASH1_22962
Char.SetCoordinates(92@(213@,2i), 2316.042, -1219.501, 26.9609)
goto @CRASH1_22995

:CRASH1_22993
return 

:CRASH1_22995
210@ += 1

:CRASH1_23002
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_22663
return 

:CRASH1_23025
213@ = 0

:CRASH1_23032
if 
  not Char.IsDead(92@(213@,2i))
goto_if_false @CRASH1_23082
Char.SetCoordinates(92@(213@,2i), 276@(213@,2f), 278@(213@,2f), 280@(213@,2f))

:CRASH1_23082
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_23032
return 

:CRASH1_23105
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
Camera.SetFixedPosition(2335.339, -1159.13, 30.4689, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2336.154, -1159.707, 30.42, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1500
return 

:CRASH1_23203
if 
  191@ == 5
goto_if_false @CRASH1_23223
World.RemoveAllScriptFires

:CRASH1_23223
if or
  191@ == 5
  191@ == 3
goto_if_false @CRASH1_23384
214@ = Math.RandomIntInRange(2, 4)
142@ = ScriptFire.Start(2346.355, -1172.734, 27.2957, 1, 214@)
214@ = Math.RandomIntInRange(1, 4)
143@ = ScriptFire.Start(2345.484, -1171.842, 27.2957, 0, 214@)
214@ = Math.RandomIntInRange(2, 4)
144@ = ScriptFire.Start(2348.171, -1173.493, 27.2957, 0, 214@)
214@ = Math.RandomIntInRange(2, 4)
145@ = ScriptFire.Start(2348.387, -1172.34, 27.2957, 1, 214@)

:CRASH1_23384
if or
  191@ == 5
  191@ == 0
goto_if_false @CRASH1_23545
214@ = Math.RandomIntInRange(1, 4)
146@ = ScriptFire.Start(2347.983, -1187.069, 27.2891, 0, 214@)
214@ = Math.RandomIntInRange(1, 4)
147@ = ScriptFire.Start(2347.792, -1186.253, 27.2891, 1, 214@)
214@ = Math.RandomIntInRange(2, 4)
148@ = ScriptFire.Start(2346.15, -1186.639, 27.2891, 0, 214@)
214@ = Math.RandomIntInRange(1, 4)
149@ = ScriptFire.Start(2345.988, -1188.301, 27.2891, 1, 214@)

:CRASH1_23545
if or
  191@ == 5
  191@ == 1
goto_if_false @CRASH1_23706
214@ = Math.RandomIntInRange(1, 4)
150@ = ScriptFire.Start(2334.972, -1187.806, 27.082, 1, 214@)
214@ = Math.RandomIntInRange(1, 4)
151@ = ScriptFire.Start(2334.182, -1188.269, 27.008, 0, 214@)
214@ = Math.RandomIntInRange(2, 4)
152@ = ScriptFire.Start(2335.786, -1188.25, 27.7429, 1, 214@)
214@ = Math.RandomIntInRange(1, 4)
153@ = ScriptFire.Start(2335.467, -1187.143, 27.5372, 0, 214@)

:CRASH1_23706
if or
  191@ == 5
  191@ == 2
goto_if_false @CRASH1_23901
214@ = Math.RandomIntInRange(2, 4)
154@ = ScriptFire.Start(2323.431, -1185.613, 27.2891, 1, 214@)
214@ = Math.RandomIntInRange(1, 4)
155@ = ScriptFire.Start(2324.549, -1186.614, 27.2891, 0, 214@)
214@ = Math.RandomIntInRange(1, 4)
156@ = ScriptFire.Start(2325.371, -1184.383, 27.2891, 1, 214@)
214@ = Math.RandomIntInRange(2, 4)
157@ = ScriptFire.Start(2324.762, -1187.462, 27.2891, 0, 214@)
214@ = Math.RandomIntInRange(1, 3)
158@ = ScriptFire.Start(2324.716, -1188.478, 30.58, 1, 214@)

:CRASH1_23901
if or
  191@ == 5
  191@ == 4
goto_if_false @CRASH1_24062
214@ = Math.RandomIntInRange(2, 4)
159@ = ScriptFire.Start(2322.239, -1172.971, 27.1409, 0, 214@)
214@ = Math.RandomIntInRange(1, 4)
160@ = ScriptFire.Start(2322.22, -1174.752, 27.2031, 0, 214@)
214@ = Math.RandomIntInRange(1, 4)
161@ = ScriptFire.Start(2323.696, -1174.429, 27.2131, 1, 214@)
214@ = Math.RandomIntInRange(2, 4)
162@ = ScriptFire.Start(2325.159, -1172.793, 27.1539, 1, 214@)

:CRASH1_24062
return 

:CRASH1_24064
if 
  191@ == 0
goto_if_false @CRASH1_24084
World.RemoveAllScriptFires

:CRASH1_24084
if 
  191@ == 1
goto_if_false @CRASH1_24139
213@ = 0

:CRASH1_24109
ScriptFire.Remove(142@(213@,21i))
213@ += 1
  213@ >= 8
goto_if_false @CRASH1_24109

:CRASH1_24139
214@ = Math.RandomIntInRange(1, 3)
142@ = ScriptFire.Start(2345.646, -1178.38, 1027.153, 1, 214@)
214@ = Math.RandomIntInRange(1, 3)
143@ = ScriptFire.Start(2344.558, -1178.334, 1027.125, 0, 214@)
214@ = Math.RandomIntInRange(1, 4)
144@ = ScriptFire.Start(2345.027, -1177.208, 1027.165, 0, 214@)
214@ = Math.RandomIntInRange(1, 3)
145@ = ScriptFire.Start(2347.865, -1173.929, 1027.224, 1, 214@)
214@ = Math.RandomIntInRange(1, 3)
146@ = ScriptFire.Start(2349.136, -1187.914, 1027.259, 0, 214@)
214@ = Math.RandomIntInRange(1, 4)
147@ = ScriptFire.Start(2348.798, -1186.306, 1027.281, 1, 214@)
214@ = Math.RandomIntInRange(1, 3)
148@ = ScriptFire.Start(2347.625, -1187.324, 1027.268, 0, 214@)
214@ = Math.RandomIntInRange(1, 4)
149@ = ScriptFire.Start(2347.587, -1184.596, 1027.134, 1, 214@)
if 
  191@ == 0
goto_if_false @CRASH1_24871
214@ = Math.RandomIntInRange(1, 3)
150@ = ScriptFire.Start(2334.972, -1187.806, 1027.182, 1, 214@)
214@ = Math.RandomIntInRange(1, 3)
151@ = ScriptFire.Start(2334.182, -1188.269, 1027.108, 0, 214@)
214@ = Math.RandomIntInRange(1, 3)
152@ = ScriptFire.Start(2335.786, -1188.25, 1027.743, 1, 214@)
214@ = Math.RandomIntInRange(1, 4)
153@ = ScriptFire.Start(2335.467, -1187.143, 1027.537, 0, 214@)
214@ = Math.RandomIntInRange(1, 3)
154@ = ScriptFire.Start(2321.82, -1179.514, 1027.767, 1, 214@)
214@ = Math.RandomIntInRange(1, 3)
155@ = ScriptFire.Start(2321.454, -1181.044, 1027.224, 0, 214@)
214@ = Math.RandomIntInRange(1, 4)
156@ = ScriptFire.Start(2322.789, -1181.093, 1027.172, 1, 214@)
214@ = Math.RandomIntInRange(1, 3)
157@ = ScriptFire.Start(2321.852, -1183.062, 1027.112, 0, 214@)
214@ = Math.RandomIntInRange(1, 4)
158@ = ScriptFire.Start(2322.611, -1184.014, 1027.133, 0, 214@)
214@ = Math.RandomIntInRange(1, 3)
159@ = ScriptFire.Start(2322.239, -1172.971, 1027.141, 0, 214@)
214@ = Math.RandomIntInRange(1, 3)
160@ = ScriptFire.Start(2322.22, -1174.752, 1027.203, 0, 214@)
214@ = Math.RandomIntInRange(1, 4)
161@ = ScriptFire.Start(2323.696, -1174.429, 1027.213, 1, 214@)
214@ = Math.RandomIntInRange(1, 3)
162@ = ScriptFire.Start(2325.159, -1172.793, 1027.154, 1, 214@)

:CRASH1_24871
return 

:CRASH1_24873
switch_start 192@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CRASH1_25457 {caseNum1} 0 {caseLabel1} @CRASH1_24936 {caseNum2} 1 {caseLabel2} @CRASH1_24967 {caseNum3} 2 {caseLabel3} @CRASH1_24998 {caseNum4} 3 {caseLabel4} @CRASH1_25010 {caseNum5} 4 {caseLabel5} @CRASH1_25089 {caseNum6} 5 {caseLabel6} @CRASH1_25125 {caseNum7} 6 {caseLabel7} @CRASH1_25222

:CRASH1_24936
163@ = ScriptFire.Start(2345.464, -1174.033, 31.1, 0, 3)
goto @CRASH1_25457

:CRASH1_24967
164@ = ScriptFire.Start(2352.1, -1171.25, 26.97, 0, 2)
goto @CRASH1_25457

:CRASH1_24998
ScriptFire.Remove(164@)
goto @CRASH1_25457

:CRASH1_25010
164@ = ScriptFire.Start(2340.365, -1184.928, 1031.1, 0, 3)
165@ = ScriptFire.Start(2332.483, -1180.889, 1031.1, 0, 3)
166@ = ScriptFire.Start(2326.081, -1178.825, 1027.2, 0, 3)
goto @CRASH1_25457

:CRASH1_25089
ScriptFire.Remove(163@)
163@ = ScriptFire.Start(2344.884, -1178.697, 1031.1, 0, 3)
goto @CRASH1_25457

:CRASH1_25125
213@ = 0

:CRASH1_25132
318@(213@,4i) = 1
if 
  ScriptFire.DoesExist(163@(213@,4i))
goto_if_false @CRASH1_25194
if 
  ScriptFire.IsExtinguished(163@(213@,4i))
goto_if_false @CRASH1_25194
318@(213@,4i) = 0

:CRASH1_25194
213@ += 1
  213@ >= 4
goto_if_false @CRASH1_25132
goto @CRASH1_25457

:CRASH1_25222
214@ = 3
if 
  318@ == 0
goto_if_false @CRASH1_25254
214@ = 1

:CRASH1_25254
163@ = ScriptFire.Start(2344.884, -1178.697, 1031.1, 0, 214@)
214@ = 3
if 
  319@ == 0
goto_if_false @CRASH1_25311
214@ = 1

:CRASH1_25311
164@ = ScriptFire.Start(2340.365, -1184.928, 1031.1, 0, 214@)
214@ = 3
if 
  320@ == 0
goto_if_false @CRASH1_25368
214@ = 1

:CRASH1_25368
165@ = ScriptFire.Start(2332.483, -1180.889, 1031.1, 0, 214@)
214@ = 3
if 
  321@ == 0
goto_if_false @CRASH1_25425
214@ = 1

:CRASH1_25425
166@ = ScriptFire.Start(2326.081, -1178.825, 1027.2, 0, 214@)
goto @CRASH1_25457

:CRASH1_25457
return 

:CRASH1_25459
switch_start 197@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CRASH1_26121 {caseNum1} 0 {caseLabel1} @CRASH1_25522 {caseNum2} 1 {caseLabel2} @CRASH1_25603 {caseNum3} 2 {caseLabel3} @CRASH1_25620 {caseNum4} 3 {caseLabel4} @CRASH1_25970 {caseNum5} 4 {caseLabel5} @CRASH1_26014 {caseNum6} 5 {caseLabel6} @CRASH1_26059 {caseNum7} 6 {caseLabel7} @CRASH1_26071

:CRASH1_25522
177@ = Particle.Create("TEARGASAD", 2351.718, -1170.982, 26.7609, 1)
Particle.Play(177@)
179@ = Particle.Create("TEARGAS", 2351.813, -1181.29, 1029.783, 1)
Particle.Play(179@)
goto @CRASH1_26121

:CRASH1_25603
Particle.Kill(177@)
Particle.Kill(179@)
goto @CRASH1_26121

:CRASH1_25620
168@ = Particle.CreateOnChar("TEARGAS", $scplayer, 0.0, 0.0, 2.0, 1)
169@ = Particle.CreateOnChar("TEARGAS", $scplayer, 0.0, 2.0, 1.8, 1)
170@ = Particle.CreateOnChar("TEARGAS", $scplayer, 0.0, -2.0, 2.0, 1)
171@ = Particle.CreateOnChar("TEARGAS", $scplayer, 1.0, 5.0, 1.5, 1)
172@ = Particle.CreateOnChar("TEARGAS", $scplayer, -1.0, 8.0, 1.8, 1)
173@ = Particle.CreateOnChar("TEARGAS", $scplayer, 2.0, 0.0, 1.5, 1)
174@ = Particle.CreateOnChar("TEARGAS", $scplayer, -2.0, 0.0, 1.5, 1)
175@ = Particle.CreateOnChar("TEARGAS", $scplayer, -2.0, 2.0, 1.5, 1)
176@ = Particle.CreateOnChar("TEARGAS", $scplayer, 2.0, 2.0, 1.5, 1)
213@ = 0

:CRASH1_25933
Particle.Play(168@(213@,9i))
213@ += 1
  213@ >= 9
goto_if_false @CRASH1_25933
goto @CRASH1_26121

:CRASH1_25970
213@ = 0

:CRASH1_25977
Particle.Kill(168@(213@,9i))
213@ += 1
  213@ >= 9
goto_if_false @CRASH1_25977
goto @CRASH1_26121

:CRASH1_26014
178@ = Particle.Create("TEARGASAD", 2345.007, -1171.812, 33.996, 1)
Particle.Play(178@)
goto @CRASH1_26121

:CRASH1_26059
Particle.Kill(178@)
goto @CRASH1_26121

:CRASH1_26071
Particle.Kill(177@)
177@ = Particle.Create("TEARGASAD", 2351.718, -1175.129, 26.7609, 1)
Particle.Play(177@)
goto @CRASH1_26121

:CRASH1_26121
return 

:CRASH1_26123
255@ = 2322.639
256@ = -1176.537
257@ = 1027.757
135@ = Pickup.CreateWithAmmo(366, PickupType.Once, 30000, 255@, 256@, 257@)
317@ = 1
return 

:CRASH1_26184
115@ = Object.CreateNoOffset(#CR1_DOOR, 2342.708, -1177.826, 1031.002)
116@ = Object.CreateNoOffset(#CR1_DOOR, 2338.402, -1177.832, 1030.985)
117@ = Object.CreateNoOffset(#CR1_DOOR, 2333.665, -1173.932, 1030.977)
118@ = Object.CreateNoOffset(#CR1_DOOR, 2335.968, -1179.435, 1030.969)
Object.SetHeading(118@, 89.3975)
213@ = 0

:CRASH1_26289
Object.SetAreaVisible(115@(213@,4i), 5)
213@ += 1
  213@ >= 4
goto_if_false @CRASH1_26289
213@ = 0

:CRASH1_26328
Object.SetCollisionDamageEffect(115@(213@,4i), False)
213@ += 1
  213@ >= 4
goto_if_false @CRASH1_26328
return 

:CRASH1_26362
282@ = 2352.325
283@ = -1179.79
284@ = 26.9766
285@ = 2.8064
94@ = Char.Create(PedType.Gang8, 110, 282@, 283@, 284@)
Char.SetAreaVisible(94@, 5)
Char.SetHeading(94@, 285@)
Char.SetDecisionMaker(94@, 180@)
358@ = 1
return 

:CRASH1_26452
282@ = 2345.907
283@ = -1171.659
284@ = 30.9688
285@ = 359.0737
95@ = Char.Create(PedType.CivFemale, 195, 282@, 283@, 284@)
Char.SetAreaVisible(95@, 5)
Char.SetHeading(95@, 285@)
Char.SetHealth(95@, 100)
Char.SetNeverTargeted(95@, True)
Char.SetProofs(95@, False, True, True, False, False)
Char.SetRelationship(95@, RelationshipType.Respect, PedType.Player1)
Char.FreezePosition(95@, True)
Task.PlayAnimNonInterruptable(95@, "BD_PANIC_LOOP", "BD_FIRE", 4.0, True, False, False, False, -1)
211@ = 0
214@ = Math.RandomIntInRange(500, 2000)
set_lvar_int_to_lvar_int 201@ = 45@
add_int_lvar_to_int_lvar 201@ += 214@
Char.DisableSpeech(95@, False)
359@ = 1
return 

:CRASH1_26665
Object.SetProofs(114@, False, False, False, False, False)
Object.SetCollisionDamageEffect(114@, True)
Object.SetDynamic(114@, True)
Object.SetVelocity(114@, 0.0, 15.0, 0.0)
Object.Break(114@, 1)
167@ = Particle.Create("EXPLOSION_DOOR", 2351.918, -1171.014, 28.1817, 1)
Particle.PlayAndKill(167@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
197@ = 0
gosub @CRASH1_25459
192@ = 1
gosub @CRASH1_24873
334@ = 1
if 
  Char.IsDead(94@)
goto_if_false @CRASH1_26821
return 

:CRASH1_26821
220@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2352.181, -1164.893, 26.4392, MoveState.Run, -2)
Task.Die(-1)
Sequence.Close(220@)
Char.PerformSequence(94@, 220@)
Sequence.Clear(220@)
Char.SetProofs(94@, False, True, False, False, False)
ScriptFire.Remove(138@)
138@ = ScriptFire.CreateCharFire(94@)
Char.SetHealth(94@, 55)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 4000
return 

:CRASH1_26924
Camera.SetFixedPosition(2343.56, -1168.507, 32.4408, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2344.391, -1169.01, 32.6753, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 200
return 

:CRASH1_26993
World.SwitchEntryExit('GANG', True)
282@, 283@, 284@ = Char.GetCoordinates($scplayer)
Streaming.LoadScene(282@, 283@, 284@)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Streaming.SetAreaVisible(0)
return 

:CRASH1_27063
if or
  Char.IsDead(95@)
  211@ == 99
goto_if_false @CRASH1_27088
return 

:CRASH1_27088
if 
  is_int_lvar_greater_than_int_lvar 201@ > 45@
goto_if_false @CRASH1_27109
return 

:CRASH1_27109
if 
  211@ == 0
goto_if_false @CRASH1_27186
if 
  350@ == 1
goto_if_false @CRASH1_27170
set_lvar_int_to_lvar_int 201@ = 45@
201@ += 120000
goto @CRASH1_27179

:CRASH1_27170
211@ = Math.RandomIntInRange(1, 5)

:CRASH1_27179
goto @CRASH1_27544

:CRASH1_27186
295@ = 1.0
switch_start 211@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CRASH1_27487 {caseNum1} 1 {caseLabel1} @CRASH1_27259 {caseNum2} 2 {caseLabel2} @CRASH1_27316 {caseNum3} 3 {caseLabel3} @CRASH1_27373 {caseNum4} 4 {caseLabel4} @CRASH1_27430 {caseNum5} -1 {caseLabel5} @CRASH1_27487 {caseNum6} -1 {caseLabel6} @CRASH1_27487 {caseNum7} -1 {caseLabel7} @CRASH1_27487

:CRASH1_27259
if 
  Char.IsPlayingAnim(95@, "BD_PANIC_01")
goto_if_false @CRASH1_27309
295@ = Char.GetAnimCurrentTime(95@, "BD_PANIC_01")

:CRASH1_27309
goto @CRASH1_27487

:CRASH1_27316
if 
  Char.IsPlayingAnim(95@, "BD_PANIC_02")
goto_if_false @CRASH1_27366
295@ = Char.GetAnimCurrentTime(95@, "BD_PANIC_02")

:CRASH1_27366
goto @CRASH1_27487

:CRASH1_27373
if 
  Char.IsPlayingAnim(95@, "BD_PANIC_03")
goto_if_false @CRASH1_27423
295@ = Char.GetAnimCurrentTime(95@, "BD_PANIC_03")

:CRASH1_27423
goto @CRASH1_27487

:CRASH1_27430
if 
  Char.IsPlayingAnim(95@, "BD_PANIC_04")
goto_if_false @CRASH1_27480
295@ = Char.GetAnimCurrentTime(95@, "BD_PANIC_04")

:CRASH1_27480
goto @CRASH1_27487

:CRASH1_27487
if 
  295@ <> 1.0
goto_if_false @CRASH1_27510
return 

:CRASH1_27510
211@ = 0
214@ = Math.RandomIntInRange(500, 2000)
set_lvar_int_to_lvar_int 201@ = 45@
add_int_lvar_to_int_lvar 201@ += 214@

:CRASH1_27544
switch_start 211@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_27885 {caseNum1} 0 {caseLabel1} @CRASH1_27607 {caseNum2} 1 {caseLabel2} @CRASH1_27689 {caseNum3} 2 {caseLabel3} @CRASH1_27738 {caseNum4} 3 {caseLabel4} @CRASH1_27787 {caseNum5} 4 {caseLabel5} @CRASH1_27836 {caseNum6} -1 {caseLabel6} @CRASH1_27885 {caseNum7} -1 {caseLabel7} @CRASH1_27885

:CRASH1_27607
if 
  not Char.IsPlayingAnim(95@, "BD_PANIC_LOOP")
goto_if_false @CRASH1_27682
Task.PlayAnimNonInterruptable(95@, "BD_PANIC_LOOP", "BD_FIRE", 4.0, True, False, False, False, -1)

:CRASH1_27682
goto @CRASH1_27885

:CRASH1_27689
Task.PlayAnimNonInterruptable(95@, "BD_PANIC_01", "BD_FIRE", 1.0, False, False, False, False, -1)
goto @CRASH1_27885

:CRASH1_27738
Task.PlayAnimNonInterruptable(95@, "BD_PANIC_02", "BD_FIRE", 1.0, False, False, False, False, -1)
goto @CRASH1_27885

:CRASH1_27787
Task.PlayAnimNonInterruptable(95@, "BD_PANIC_03", "BD_FIRE", 1.0, False, False, False, False, -1)
goto @CRASH1_27885

:CRASH1_27836
Task.PlayAnimNonInterruptable(95@, "BD_PANIC_04", "BD_FIRE", 1.0, False, False, False, False, -1)
goto @CRASH1_27885

:CRASH1_27885
if 
  341@ == 0
goto_if_false @CRASH1_27905
return 

:CRASH1_27905
if and
  49@ <> 1
  49@ <> 2
  49@ <> 0
goto_if_false @CRASH1_27939
return 

:CRASH1_27939
if 
  211@ == 0
goto_if_false @CRASH1_28132
if or
  is_local_var_bit_set_const 54@ {n} 1
  is_local_var_bit_set_const 54@ {n} 2
goto_if_false @CRASH1_27996
clear_local_var_bit_const 54@ {n} 1
clear_local_var_bit_const 54@ {n} 2

:CRASH1_27996
if 
  49@ == 0
goto_if_false @CRASH1_28130
214@ = Math.RandomIntInRange(0, 3)
switch_start 214@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CRASH1_28128 {caseNum1} 0 {caseLabel1} @CRASH1_28086 {caseNum2} 1 {caseLabel2} @CRASH1_28107 {caseNum3} -1 {caseLabel3} @CRASH1_28130 {caseNum4} -1 {caseLabel4} @CRASH1_28130 {caseNum5} -1 {caseLabel5} @CRASH1_28130 {caseNum6} -1 {caseLabel6} @CRASH1_28130 {caseNum7} -1 {caseLabel7} @CRASH1_28130

:CRASH1_28086
50@ = 1
gosub @CRASH1_32981
goto @CRASH1_28130

:CRASH1_28107
50@ = 2
gosub @CRASH1_32981
goto @CRASH1_28130

:CRASH1_28128
return 

:CRASH1_28130
return 

:CRASH1_28132
if and
  211@ >= 1
  4 >= 211@
goto_if_false @CRASH1_28244
if and
  48@ == 1
  Char.IsInArea3D($scplayer, 2327.242, -1175.052, 24.6005, 2361.952, -1149.091, 28.2697, False)
goto_if_false @CRASH1_28244
if 
  49@ == 2
goto_if_false @CRASH1_28237
56@ = 0

:CRASH1_28237
gosub @CRASH1_33143

:CRASH1_28244
return 

:CRASH1_28246
Text.PrintNow('CRA1_07', 5000, 1)
$sw7_funeraltimer = 100
set_lvar_int_to_lvar_int 202@ = 45@
202@ += 3000
Hud.DisplayCounterWithString($sw7_funeraltimer, CounterDisplay.Bar, 'CRA1_70')
337@ = 1
Char.SetHealth(95@, 100)
return 

:CRASH1_28317
if 
  Char.IsDead(95@)
goto_if_false @CRASH1_28335
return 

:CRASH1_28335
214@ = Char.GetHealth(95@)
if 
  is_int_lvar_greater_than_int_lvar 45@ > 202@
goto_if_false @CRASH1_28465
214@ -= 1
282@, 283@, 284@ = Char.GetCoordinates(95@)
215@ = World.GetNumberOfFiresInRange(282@, 283@, 284@, 1.2)
if and
  215@ > 0
  314@ == 1
goto_if_false @CRASH1_28449
set_lvar_int_to_lvar_int 202@ = 45@
202@ += 100
goto @CRASH1_28465

:CRASH1_28449
set_lvar_int_to_lvar_int 202@ = 45@
202@ += 3000

:CRASH1_28465
if 
  0 > 214@
goto_if_false @CRASH1_28490
214@ = 0

:CRASH1_28490
if 
  214@ == 0
goto_if_false @CRASH1_28605
Char.ClearTasksImmediately(95@)
ScriptFire.Remove(139@)
139@ = ScriptFire.CreateCharFire(95@)
Char.SetHealth(95@, 20)
Task.Die(95@)
Char.FreezePosition(95@, False)
211@ = 99
Hud.ClearCounter($sw7_funeraltimer)
Text.PrintNow('CRA1_50', 5000, 1)
340@ = 1
285@ = 180.0
Char.SetHeading(95@, 285@)
goto @CRASH1_28613

:CRASH1_28605
Char.SetHealth(95@, 214@)

:CRASH1_28613
set_var_int_to_lvar_int $sw7_funeraltimer = 214@
return 

:CRASH1_28623
282@ = 2342.742
283@ = -1184.731
284@ = 1026.977
285@ = 274.3023
96@ = Char.Create(PedType.Gang8, 110, 282@, 283@, 284@)
Char.SetHasUsedEntryExit(96@, 2352.114, -1170.61, 2.0)
Char.SetAreaVisible(96@, 5)
Char.SetHeading(96@, 285@)
Char.SetDecisionMaker(96@, 180@)
Char.SetHealth(96@, 20)
Char.SetMaxHealth(96@, 100)
Char.SetRelationship(96@, RelationshipType.Hate, PedType.Player1)
Char.SetAccuracy(96@, 5)
140@ = ScriptFire.CreateCharFire(96@)
Task.Dead(96@)
188@ = 0
282@ = 2322.563
283@ = -1185.218
284@ = 1026.977
285@ = 292.9689
97@ = Char.Create(PedType.Gang8, 108, 282@, 283@, 284@)
Char.SetHasUsedEntryExit(97@, 2352.114, -1170.61, 2.0)
Char.SetAreaVisible(97@, 5)
Char.SetHeading(97@, 285@)
Char.SetDecisionMaker(97@, 180@)
Char.SetHealth(97@, 20)
Char.SetMaxHealth(97@, 100)
Char.SetRelationship(97@, RelationshipType.Hate, PedType.Player1)
Char.SetAccuracy(97@, 5)
141@ = ScriptFire.CreateCharFire(97@)
Task.Dead(97@)
189@ = 0
360@ = 1
return 

:CRASH1_28934
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Char.SetCoordinates($scplayer, 2344.535, -1181.745, 1030.961)
Char.SetHeading($scplayer, 359.8736)
Camera.SetFixedPosition(2344.624, -1185.354, 1033.783, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2344.695, -1184.373, 1033.602, SwitchType.JumpCut)
192@ = 4
gosub @CRASH1_24873
191@ = 1
gosub @CRASH1_24064
return 

:CRASH1_29056
213@ = 0

:CRASH1_29063
Char.RemoveElegantly(87@(213@,5i))
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_29063
213@ = 0

:CRASH1_29100
Char.RemoveElegantly(92@(213@,2i))
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_29100
return 

:CRASH1_29132
switch_start 190@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_29657 {caseNum1} -1 {caseLabel1} @CRASH1_29195 {caseNum2} 0 {caseLabel2} @CRASH1_29250 {caseNum3} 1 {caseLabel3} @CRASH1_29382 {caseNum4} 2 {caseLabel4} @CRASH1_29466 {caseNum5} 3 {caseLabel5} @CRASH1_29492 {caseNum6} -1 {caseLabel6} @CRASH1_29657 {caseNum7} -1 {caseLabel7} @CRASH1_29657

:CRASH1_29195
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, 95@)
Char.SetNeverLeavesGroup(95@, True)
Char.ListenToPlayerGroupCommands(95@, False)
Task.FollowFootsteps(95@, $scplayer)
Player.SetGroupToFollowAlways($player1, True)
190@ = 0
goto @CRASH1_29657

:CRASH1_29250
328@ = 0
if 
  314@ == 1
goto_if_false @CRASH1_29375
gosub @CRASH1_29659
if 
  328@ == 1
goto_if_false @CRASH1_29333
342@ = 1
Char.ClearTasksImmediately(95@)
Task.StandStill(95@, -2)
190@ = 1
goto @CRASH1_29375

:CRASH1_29333
40@ = Char.GetScriptTaskStatus(95@, 2128)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_29375
Char.ClearTasksImmediately(95@)
Task.FollowFootsteps(95@, $scplayer)

:CRASH1_29375
goto @CRASH1_29657

:CRASH1_29382
328@ = 0
if 
  314@ == 1
goto_if_false @CRASH1_29459
gosub @CRASH1_29659
if 
  328@ == 0
goto_if_false @CRASH1_29459
Char.ClearTasksImmediately(95@)
Task.FollowFootsteps(95@, $scplayer)
342@ = 0
190@ = 0

:CRASH1_29459
goto @CRASH1_29657

:CRASH1_29466
Char.ClearTasksImmediately(95@)
Task.StandStill(95@, -2)
190@ = 3
goto @CRASH1_29657

:CRASH1_29492
if 
  Char.LocateAnyMeansChar3D($scplayer, 95@, 6.0, 6.0, 1.0, False)
goto_if_false @CRASH1_29650
328@ = 0
if 
  314@ == 1
goto_if_false @CRASH1_29650
gosub @CRASH1_29659
if 
  328@ == 0
goto_if_false @CRASH1_29600
Task.FollowFootsteps(95@, $scplayer)
190@ = 0
goto @CRASH1_29650

:CRASH1_29600
220@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.StandStill(-1, -2)
Sequence.Close(220@)
Char.PerformSequence(95@, 220@)
Sequence.Clear(220@)
342@ = 1
190@ = 1

:CRASH1_29650
goto @CRASH1_29657

:CRASH1_29657
return 

:CRASH1_29659
switch_start 196@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_31025 {caseNum1} 0 {caseLabel1} @CRASH1_29722 {caseNum2} 1 {caseLabel2} @CRASH1_29952 {caseNum3} 2 {caseLabel3} @CRASH1_30182 {caseNum4} 3 {caseLabel4} @CRASH1_30412 {caseNum5} 4 {caseLabel5} @CRASH1_30642 {caseNum6} -1 {caseLabel6} @CRASH1_31025 {caseNum7} -1 {caseLabel7} @CRASH1_31025

:CRASH1_29722
289@ = 2345.5
289@ -= 2.0
291@ = -1177.122
291@ -= 2.0
293@ = 1030.969
293@ -= 0.5
290@ = 2345.5
290@ += 2.0
292@ = -1177.122
292@ += 2.0
294@ = 1030.969
294@ += 1.5
if 
  Char.IsInArea3D(95@, 289@, 291@, 293@, 290@, 292@, 294@, False)
goto_if_false @CRASH1_29945
if 
  ScriptFire.DoesExist(163@)
goto_if_false @CRASH1_29938
if 
  ScriptFire.IsExtinguished(163@)
goto_if_false @CRASH1_29924
196@ += 1
goto @CRASH1_29931

:CRASH1_29924
328@ = 1

:CRASH1_29931
goto @CRASH1_29945

:CRASH1_29938
196@ += 1

:CRASH1_29945
goto @CRASH1_31025

:CRASH1_29952
289@ = 2342.795
289@ -= 2.0
291@ = -1184.971
291@ -= 2.0
293@ = 1030.969
293@ -= 0.5
290@ = 2342.795
290@ += 2.0
292@ = -1184.971
292@ += 2.0
294@ = 1030.969
294@ += 1.5
if 
  Char.IsInArea3D(95@, 289@, 291@, 293@, 290@, 292@, 294@, False)
goto_if_false @CRASH1_30175
if 
  ScriptFire.DoesExist(164@)
goto_if_false @CRASH1_30168
if 
  ScriptFire.IsExtinguished(164@)
goto_if_false @CRASH1_30154
196@ += 1
goto @CRASH1_30161

:CRASH1_30154
328@ = 1

:CRASH1_30161
goto @CRASH1_30175

:CRASH1_30168
196@ += 1

:CRASH1_30175
goto @CRASH1_31025

:CRASH1_30182
289@ = 2334.445
289@ -= 2.0
291@ = -1181.463
291@ -= 2.0
293@ = 1030.969
293@ -= 0.5
290@ = 2334.445
290@ += 2.0
292@ = -1181.463
292@ += 2.0
294@ = 1030.969
294@ += 1.5
if 
  Char.IsInArea3D(95@, 289@, 291@, 293@, 290@, 292@, 294@, False)
goto_if_false @CRASH1_30405
if 
  ScriptFire.DoesExist(165@)
goto_if_false @CRASH1_30398
if 
  ScriptFire.IsExtinguished(165@)
goto_if_false @CRASH1_30384
196@ += 1
goto @CRASH1_30391

:CRASH1_30384
328@ = 1

:CRASH1_30391
goto @CRASH1_30405

:CRASH1_30398
196@ += 1

:CRASH1_30405
goto @CRASH1_31025

:CRASH1_30412
289@ = 2325.854
289@ -= 2.5
291@ = -1182.636
291@ -= 2.5
293@ = 1026.984
293@ -= 0.5
290@ = 2325.854
290@ += 2.5
292@ = -1182.636
292@ += 2.5
294@ = 1026.984
294@ += 1.5
if 
  Char.IsInArea3D(95@, 289@, 291@, 293@, 290@, 292@, 294@, False)
goto_if_false @CRASH1_30635
if 
  ScriptFire.DoesExist(166@)
goto_if_false @CRASH1_30628
if 
  ScriptFire.IsExtinguished(166@)
goto_if_false @CRASH1_30614
196@ += 1
goto @CRASH1_30621

:CRASH1_30614
328@ = 1

:CRASH1_30621
goto @CRASH1_30635

:CRASH1_30628
196@ += 1

:CRASH1_30635
goto @CRASH1_31025

:CRASH1_30642
289@ = 2342.961
289@ -= 2.0
291@ = -1176.906
291@ -= 2.0
293@ = 1026.977
293@ -= 0.5
290@ = 2342.961
290@ += 2.0
292@ = -1176.906
292@ += 2.0
294@ = 1026.977
294@ += 1.5
if 
  Char.IsInArea3D(95@, 289@, 291@, 293@, 290@, 292@, 294@, False)
goto_if_false @CRASH1_31018
289@ = 2344.99
291@ = -1178.398
293@ = 1026.977
213@ = 0

:CRASH1_30835
if 
  ScriptFire.DoesExist(142@(213@,21i))
goto_if_false @CRASH1_30946
if 
  not ScriptFire.IsExtinguished(142@(213@,21i))
goto_if_false @CRASH1_30946
290@, 292@, 294@ = ScriptFire.GetCoords(142@(213@,21i))
295@ = Math.GetDistanceBetweenCoords3D(289@, 291@, 293@, 290@, 292@, 294@)
if 
  3.0 >= 295@
goto_if_false @CRASH1_30946
328@ = 1
return 

:CRASH1_30946
213@ += 1
  213@ >= 21
goto_if_false @CRASH1_30835
214@ = World.GetNumberOfFiresInRange(289@, 291@, 293@, 3.0)
if 
  214@ <> 0
goto_if_false @CRASH1_31011
328@ = 1

:CRASH1_31011
196@ += 1

:CRASH1_31018
goto @CRASH1_31025

:CRASH1_31025
return 

:CRASH1_31027
214@ = 0
switch_start 193@(214@,3i) {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CRASH1_31468 {caseNum1} 0 {caseLabel1} @CRASH1_31101 {caseNum2} 1 {caseLabel2} @CRASH1_31108 {caseNum3} 2 {caseLabel3} @CRASH1_31213 {caseNum4} 3 {caseLabel4} @CRASH1_31317 {caseNum5} 4 {caseLabel5} @CRASH1_31378 {caseNum6} 5 {caseLabel6} @CRASH1_31461 {caseNum7} -1 {caseLabel7} @CRASH1_31468

:CRASH1_31101
goto @CRASH1_31468

:CRASH1_31108
Object.Delete(119@(214@,3i))
Streaming.MarkModelAsNoLongerNeeded(#BREAK_WALL_1A)
282@ = 2338.0
283@ = -1180.0
284@ = 1030.5
285@ = 90.0
119@(214@,3i) = Object.CreateNoOffset(#BD_FIRE1_O, 282@, 283@, 284@)
Object.SetHeading(119@(214@,3i), 285@)
193@(214@,3i) = 2
goto @CRASH1_31468

:CRASH1_31213
if 
  Object.DoesExist(119@(214@,3i))
goto_if_false @CRASH1_31310
if 
Object.PlayAnim(119@(214@,3i), "BD_FIRE1", "BD_FIRE", 1000.0, False, True)
goto_if_false @CRASH1_31299
193@(214@,3i) = 3
goto @CRASH1_31310

:CRASH1_31299
193@(214@,3i) = 4

:CRASH1_31310
goto @CRASH1_31468

:CRASH1_31317
295@ = Object.GetAnimCurrentTime(119@(214@,3i), "BD_FIRE1")
if 
  295@ == 1.0
goto_if_false @CRASH1_31371
193@(214@,3i) = 4

:CRASH1_31371
goto @CRASH1_31468

:CRASH1_31378
Object.Delete(119@(214@,3i))
Streaming.MarkModelAsNoLongerNeeded(#BD_FIRE1_O)
282@ = 2338.126
283@ = -1181.917
284@ = 1033.188
119@(214@,3i) = Object.CreateNoOffset(#BREAK_WALL_1B, 282@, 283@, 284@)
193@(214@,3i) = 5
goto @CRASH1_31468

:CRASH1_31461
goto @CRASH1_31468

:CRASH1_31468
return 

:CRASH1_31470
214@ = 1
switch_start 193@(214@,3i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_31655 {caseNum1} 0 {caseLabel1} @CRASH1_31544 {caseNum2} 1 {caseLabel2} @CRASH1_31551 {caseNum3} 2 {caseLabel3} @CRASH1_31558 {caseNum4} 3 {caseLabel4} @CRASH1_31565 {caseNum5} 4 {caseLabel5} @CRASH1_31648 {caseNum6} -1 {caseLabel6} @CRASH1_31655 {caseNum7} -1 {caseLabel7} @CRASH1_31655

:CRASH1_31544
goto @CRASH1_31655

:CRASH1_31551
goto @CRASH1_31655

:CRASH1_31558
goto @CRASH1_31655

:CRASH1_31565
Object.Delete(119@(214@,3i))
Streaming.MarkModelAsNoLongerNeeded(#BREAK_WALL_2A)
282@ = 2330.402
283@ = -1179.15
284@ = 1030.55
119@(214@,3i) = Object.CreateNoOffset(#BREAK_WALL_2B, 282@, 283@, 284@)
193@(214@,3i) = 4
goto @CRASH1_31655

:CRASH1_31648
goto @CRASH1_31655

:CRASH1_31655
return 

:CRASH1_31657
214@ = 2
switch_start 193@(214@,3i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_31842 {caseNum1} 0 {caseLabel1} @CRASH1_31731 {caseNum2} 1 {caseLabel2} @CRASH1_31738 {caseNum3} 2 {caseLabel3} @CRASH1_31745 {caseNum4} 3 {caseLabel4} @CRASH1_31752 {caseNum5} 4 {caseLabel5} @CRASH1_31835 {caseNum6} -1 {caseLabel6} @CRASH1_31842 {caseNum7} -1 {caseLabel7} @CRASH1_31842

:CRASH1_31731
goto @CRASH1_31842

:CRASH1_31738
goto @CRASH1_31842

:CRASH1_31745
goto @CRASH1_31842

:CRASH1_31752
Object.Delete(119@(214@,3i))
Streaming.MarkModelAsNoLongerNeeded(#BREAK_WALL_3A)
282@ = 2340.293
283@ = -1182.294
284@ = 1026.957
119@(214@,3i) = Object.CreateNoOffset(#BREAK_WALL_3B, 282@, 283@, 284@)
193@(214@,3i) = 4
goto @CRASH1_31842

:CRASH1_31835
goto @CRASH1_31842

:CRASH1_31842
return 

:CRASH1_31844
World.CreateEmergencyServicesCar(407, 2340.637, -1152.722, 25.9686)
return 

:CRASH1_31866
213@ = 0

:CRASH1_31873
if 
  343@(213@,2i) == 0
goto_if_false @CRASH1_31910
set_lvar_int_to_lvar_int 212@ = 213@
gosub @CRASH1_31933

:CRASH1_31910
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_31873
return 

:CRASH1_31933
if 
  343@(212@,2i) == 1
goto_if_false @CRASH1_31957
return 

:CRASH1_31957
switch_start 212@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CRASH1_32114 {caseNum1} 0 {caseLabel1} @CRASH1_32020 {caseNum2} 1 {caseLabel2} @CRASH1_32067 {caseNum3} -1 {caseLabel3} @CRASH1_32143 {caseNum4} -1 {caseLabel4} @CRASH1_32143 {caseNum5} -1 {caseLabel5} @CRASH1_32143 {caseNum6} -1 {caseLabel6} @CRASH1_32143 {caseNum7} -1 {caseLabel7} @CRASH1_32143

:CRASH1_32020
136@(212@,2i) = Pickup.CreateMoney(2338.551, -1186.939, 1027.977, 500, True)
343@(212@,2i) = 1
goto @CRASH1_32143

:CRASH1_32067
136@(212@,2i) = Pickup.CreateMoney(2348.184, -1173.164, 1031.977, 500, True)
343@(212@,2i) = 1
goto @CRASH1_32143

:CRASH1_32114
write_debug_with_int "ILLEGAL_CASH_PICKUP_ID" {_p2} 212@

:CRASH1_32143
return 

:CRASH1_32145
switch_start 48@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @CRASH1_32229 {caseNum1} 0 {caseLabel1} @CRASH1_32208 {caseNum2} 1 {caseLabel2} @CRASH1_32208 {caseNum3} 2 {caseLabel3} @CRASH1_32215 {caseNum4} 3 {caseLabel4} @CRASH1_32208 {caseNum5} 4 {caseLabel5} @CRASH1_32208 {caseNum6} -1 {caseLabel6} @CRASH1_32265 {caseNum7} -1 {caseLabel7} @CRASH1_32265

:CRASH1_32208
goto @CRASH1_32265

:CRASH1_32215
gosub @CRASH1_32405
goto @CRASH1_32265

:CRASH1_32229
write_debug "UNKNOWN_CONVERSATION_STATUS_ID"
return 

:CRASH1_32265
return 

:CRASH1_32267
if 
  is_int_lvar_equal_to_int_lvar 53@ == 52@
goto_if_false @CRASH1_32288
return 

:CRASH1_32288
214@ = 1
57@(214@,3i) = 1
Audio.LoadMissionAudio(214@, 60@(53@,9i))
53@ += 1
if 
  is_int_lvar_equal_to_int_lvar 53@ == 52@
goto_if_false @CRASH1_32346
return 

:CRASH1_32346
214@ += 1
if 
  214@ > 2
goto_if_false @CRASH1_32373
return 

:CRASH1_32373
57@(214@,3i) = 1
Audio.LoadMissionAudio(214@, 60@(53@,9i))
53@ += 1
return 

:CRASH1_32405
gosub @CRASH1_33674
if 
  48@ == 3
goto_if_false @CRASH1_32439
gosub @CRASH1_32673
return 

:CRASH1_32439
switch_start 57@(47@,3i) {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @CRASH1_32640 {caseNum1} 0 {caseLabel1} @CRASH1_32506 {caseNum2} 1 {caseLabel2} @CRASH1_32515 {caseNum3} 2 {caseLabel3} @CRASH1_32551 {caseNum4} 3 {caseLabel4} @CRASH1_32608 {caseNum5} -1 {caseLabel5} @CRASH1_32671 {caseNum6} -1 {caseLabel6} @CRASH1_32671 {caseNum7} -1 {caseLabel7} @CRASH1_32671

:CRASH1_32506
return 
goto @CRASH1_32671

:CRASH1_32515
if 
  not Audio.HasMissionAudioLoaded(47@)
goto_if_false @CRASH1_32533
return 

:CRASH1_32533
57@(47@,3i) = 2
goto @CRASH1_32671

:CRASH1_32551
Audio.PlayMissionAudio(47@)
if 
  56@ == 1
goto_if_false @CRASH1_32588
Text.PrintNow(69@(51@,9s), 10000, 1)

:CRASH1_32588
57@(47@,3i) = 3
return 
goto @CRASH1_32671

:CRASH1_32608
if 
  not Audio.HasMissionAudioFinished(47@)
goto_if_false @CRASH1_32626
return 

:CRASH1_32626
gosub @CRASH1_32726
goto @CRASH1_32671

:CRASH1_32640
write_debug "UNKNOWN_AUDIO_SLOT_STATUS"
return 

:CRASH1_32671
return 

:CRASH1_32673
214@ = 1

:CRASH1_32680
if 
  2 >= 214@
goto_if_false @CRASH1_32717
Audio.ClearMissionAudio(214@)
214@ += 1
goto @CRASH1_32680

:CRASH1_32717
gosub @CRASH1_32855
return 

:CRASH1_32726
57@(47@,3i) = 0
51@ += 1
if 
  is_int_lvar_equal_to_int_lvar 51@ == 52@
goto_if_false @CRASH1_32772
gosub @CRASH1_32855
return 

:CRASH1_32772
if 
  is_int_lvar_greater_than_int_lvar 52@ > 53@
goto_if_false @CRASH1_32821
57@(47@,3i) = 1
Audio.LoadMissionAudio(47@, 60@(53@,9i))
53@ += 1

:CRASH1_32821
47@ += 1
if 
  47@ > 2
goto_if_false @CRASH1_32853
47@ = 1

:CRASH1_32853
return 

:CRASH1_32855
set_local_var_bit_lvar 54@ {var_n} 49@
49@ = 0
48@ = 0
50@ = 0
47@ = 1
51@ = 0
52@ = 0
53@ = 0
214@ = 1

:CRASH1_32919
if 
  2 > 214@
goto_if_false @CRASH1_32962
57@(214@,3i) = 0
214@ += 1
goto @CRASH1_32919

:CRASH1_32962
Text.ClearSmallPrints
set_lvar_int_to_lvar_int 55@ = 45@
55@ += 120
return 

:CRASH1_32981
if 
  48@ <> 0
goto_if_false @CRASH1_33006
gosub @CRASH1_33172

:CRASH1_33006
if 
  is_int_lvar_greater_than_int_lvar 55@ > 45@
goto_if_false @CRASH1_33027
return 

:CRASH1_33027
55@ = 0
set_lvar_int_to_lvar_int 49@ = 50@
50@ = 0
47@ = 1
51@ = 0
52@ = 0
53@ = 0
56@ = 1
214@ = 1

:CRASH1_33091
if 
  2 > 214@
goto_if_false @CRASH1_33134
57@(214@,3i) = 0
214@ += 1
goto @CRASH1_33091

:CRASH1_33134
gosub @CRASH1_33201
return 

:CRASH1_33143
if 
  48@ <> 1
goto_if_false @CRASH1_33163
return 

:CRASH1_33163
48@ = 2
return 

:CRASH1_33172
if 
  48@ == 0
goto_if_false @CRASH1_33192
return 

:CRASH1_33192
gosub @CRASH1_32673
return 

:CRASH1_33201
switch_start 49@ {numCases} 17 {hasDefaultCase} 1 {defaultLabel} @CRASH1_33632 {caseNum1} 1 {caseLabel1} @CRASH1_33394 {caseNum2} 2 {caseLabel2} @CRASH1_33408 {caseNum3} 3 {caseLabel3} @CRASH1_33422 {caseNum4} 5 {caseLabel4} @CRASH1_33436 {caseNum5} 6 {caseLabel5} @CRASH1_33450 {caseNum6} 7 {caseLabel6} @CRASH1_33464 {caseNum7} 8 {caseLabel7} @CRASH1_33478
switch_continued 9 {caseLabel1} @CRASH1_33492 {caseNum2} 10 {caseLabel2} @CRASH1_33506 {caseNum3} 11 {caseLabel3} @CRASH1_33520 {caseNum4} 12 {caseLabel4} @CRASH1_33534 {caseNum5} 13 {caseLabel5} @CRASH1_33548 {caseNum6} 14 {caseLabel6} @CRASH1_33562 {caseNum7} 15 {caseLabel7} @CRASH1_33576 {caseNum8} 16 {caseLabel8} @CRASH1_33590 {caseNum9} 17 {caseLabel9} @CRASH1_33604
switch_continued 18 {caseLabel1} @CRASH1_33618 {caseNum2} -1 {caseLabel2} @CRASH1_33658 {caseNum3} -1 {caseLabel3} @CRASH1_33658 {caseNum4} -1 {caseLabel4} @CRASH1_33658 {caseNum5} -1 {caseLabel5} @CRASH1_33658 {caseNum6} -1 {caseLabel6} @CRASH1_33658 {caseNum7} -1 {caseLabel7} @CRASH1_33658 {caseNum8} -1 {caseLabel8} @CRASH1_33658 {caseNum9} -1 {caseLabel9} @CRASH1_33658

:CRASH1_33394
gosub @CRASH1_34116
goto @CRASH1_33658

:CRASH1_33408
gosub @CRASH1_34523
goto @CRASH1_33658

:CRASH1_33422
gosub @CRASH1_34749
goto @CRASH1_33658

:CRASH1_33436
gosub @CRASH1_34888
goto @CRASH1_33658

:CRASH1_33450
gosub @CRASH1_35028
goto @CRASH1_33658

:CRASH1_33464
gosub @CRASH1_35059
goto @CRASH1_33658

:CRASH1_33478
gosub @CRASH1_35090
goto @CRASH1_33658

:CRASH1_33492
gosub @CRASH1_35230
goto @CRASH1_33658

:CRASH1_33506
gosub @CRASH1_35261
goto @CRASH1_33658

:CRASH1_33520
gosub @CRASH1_35401
goto @CRASH1_33658

:CRASH1_33534
gosub @CRASH1_35866
goto @CRASH1_33658

:CRASH1_33548
gosub @CRASH1_35897
goto @CRASH1_33658

:CRASH1_33562
gosub @CRASH1_36074
goto @CRASH1_33658

:CRASH1_33576
gosub @CRASH1_36473
goto @CRASH1_33658

:CRASH1_33590
gosub @CRASH1_36504
goto @CRASH1_33658

:CRASH1_33604
gosub @CRASH1_36644
goto @CRASH1_33658

:CRASH1_33618
gosub @CRASH1_36675
goto @CRASH1_33658

:CRASH1_33632
write_debug "UNKNOWN_CONVERSATION"
return 

:CRASH1_33658
gosub @CRASH1_32267
48@ = 1
return 

:CRASH1_33674
switch_start 49@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @CRASH1_33834 {caseNum1} 3 {caseLabel1} @CRASH1_33802 {caseNum2} 5 {caseLabel2} @CRASH1_33802 {caseNum3} 6 {caseLabel3} @CRASH1_33802 {caseNum4} 7 {caseLabel4} @CRASH1_33802 {caseNum5} 8 {caseLabel5} @CRASH1_33802 {caseNum6} 9 {caseLabel6} @CRASH1_33802 {caseNum7} 10 {caseLabel7} @CRASH1_33802
switch_continued 11 {caseLabel1} @CRASH1_33802 {caseNum2} 12 {caseLabel2} @CRASH1_33802 {caseNum3} 13 {caseLabel3} @CRASH1_33802 {caseNum4} 14 {caseLabel4} @CRASH1_33802 {caseNum5} 15 {caseLabel5} @CRASH1_33802 {caseNum6} 16 {caseLabel6} @CRASH1_33802 {caseNum7} 17 {caseLabel7} @CRASH1_33802 {caseNum8} 18 {caseLabel8} @CRASH1_33802 {caseNum9} -1 {caseLabel9} @CRASH1_33834

:CRASH1_33802
if 
  Char.IsDead($scplayer)
goto_if_false @CRASH1_33827
48@ = 3
return 

:CRASH1_33827
goto @CRASH1_33834

:CRASH1_33834
switch_start 49@ {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @CRASH1_33994 {caseNum1} 1 {caseLabel1} @CRASH1_33962 {caseNum2} 2 {caseLabel2} @CRASH1_33962 {caseNum3} 5 {caseLabel3} @CRASH1_33962 {caseNum4} 6 {caseLabel4} @CRASH1_33962 {caseNum5} 7 {caseLabel5} @CRASH1_33962 {caseNum6} 8 {caseLabel6} @CRASH1_33962 {caseNum7} 9 {caseLabel7} @CRASH1_33962
switch_continued 10 {caseLabel1} @CRASH1_33962 {caseNum2} 11 {caseLabel2} @CRASH1_33962 {caseNum3} 12 {caseLabel3} @CRASH1_33962 {caseNum4} 13 {caseLabel4} @CRASH1_33962 {caseNum5} 14 {caseLabel5} @CRASH1_33962 {caseNum6} 15 {caseLabel6} @CRASH1_33962 {caseNum7} 16 {caseLabel7} @CRASH1_33962 {caseNum8} 17 {caseLabel8} @CRASH1_33962 {caseNum9} 18 {caseLabel9} @CRASH1_33962

:CRASH1_33962
if 
  Char.IsDead(95@)
goto_if_false @CRASH1_33987
48@ = 3
return 

:CRASH1_33987
goto @CRASH1_33994

:CRASH1_33994
switch_start 49@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @CRASH1_34114 {caseNum1} 14 {caseLabel1} @CRASH1_34057 {caseNum2} -1 {caseLabel2} @CRASH1_34114 {caseNum3} -1 {caseLabel3} @CRASH1_34114 {caseNum4} -1 {caseLabel4} @CRASH1_34114 {caseNum5} -1 {caseLabel5} @CRASH1_34114 {caseNum6} -1 {caseLabel6} @CRASH1_34114 {caseNum7} -1 {caseLabel7} @CRASH1_34114

:CRASH1_34057
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @CRASH1_34082
48@ = 3
return 

:CRASH1_34082
if 
  not Char.IsInAnyCar(95@)
goto_if_false @CRASH1_34107
48@ = 3
return 

:CRASH1_34107
goto @CRASH1_34114

:CRASH1_34114
return 

:CRASH1_34116
214@ = Math.RandomIntInRange(0, 9)
switch_start 214@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CRASH1_34514 {caseNum1} 0 {caseLabel1} @CRASH1_34253 {caseNum2} 1 {caseLabel2} @CRASH1_34282 {caseNum3} 2 {caseLabel3} @CRASH1_34311 {caseNum4} 3 {caseLabel4} @CRASH1_34340 {caseNum5} 4 {caseLabel5} @CRASH1_34369 {caseNum6} 5 {caseLabel6} @CRASH1_34398 {caseNum7} 6 {caseLabel7} @CRASH1_34427
switch_continued 7 {caseLabel1} @CRASH1_34456 {caseNum2} 8 {caseLabel2} @CRASH1_34485 {caseNum3} -1 {caseLabel3} @CRASH1_34514 {caseNum4} -1 {caseLabel4} @CRASH1_34514 {caseNum5} -1 {caseLabel5} @CRASH1_34514 {caseNum6} -1 {caseLabel6} @CRASH1_34514 {caseNum7} -1 {caseLabel7} @CRASH1_34514 {caseNum8} -1 {caseLabel8} @CRASH1_34514 {caseNum9} -1 {caseLabel9} @CRASH1_34514

:CRASH1_34253
set_lvar_int_to_constant 60@ = 17818
set_lvar_text_label 69@s = 'CRA1_AA'
goto @CRASH1_34514

:CRASH1_34282
set_lvar_int_to_constant 60@ = 17819
set_lvar_text_label 69@s = 'CRA1_AB'
goto @CRASH1_34514

:CRASH1_34311
set_lvar_int_to_constant 60@ = 17820
set_lvar_text_label 69@s = 'CRA1_AC'
goto @CRASH1_34514

:CRASH1_34340
set_lvar_int_to_constant 60@ = 17821
set_lvar_text_label 69@s = 'CRA1_AD'
goto @CRASH1_34514

:CRASH1_34369
set_lvar_int_to_constant 60@ = 17822
set_lvar_text_label 69@s = 'CRA1_AE'
goto @CRASH1_34514

:CRASH1_34398
set_lvar_int_to_constant 60@ = 17823
set_lvar_text_label 69@s = 'CRA1_AF'
goto @CRASH1_34514

:CRASH1_34427
set_lvar_int_to_constant 60@ = 17824
set_lvar_text_label 69@s = 'CRA1_AG'
goto @CRASH1_34514

:CRASH1_34456
set_lvar_int_to_constant 60@ = 17825
set_lvar_text_label 69@s = 'CRA1_AH'
goto @CRASH1_34514

:CRASH1_34485
set_lvar_int_to_constant 60@ = 17863
set_lvar_text_label 69@s = 'CRA1_AJ'
goto @CRASH1_34514

:CRASH1_34514
52@ = 1
return 

:CRASH1_34523
214@ = Math.RandomIntInRange(0, 5)
switch_start 214@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_34740 {caseNum1} 0 {caseLabel1} @CRASH1_34595 {caseNum2} 1 {caseLabel2} @CRASH1_34624 {caseNum3} 2 {caseLabel3} @CRASH1_34653 {caseNum4} 3 {caseLabel4} @CRASH1_34682 {caseNum5} 4 {caseLabel5} @CRASH1_34711 {caseNum6} -1 {caseLabel6} @CRASH1_34740 {caseNum7} -1 {caseLabel7} @CRASH1_34740

:CRASH1_34595
set_lvar_int_to_constant 60@ = 17827
set_lvar_text_label 69@s = 'CRA1_BA'
goto @CRASH1_34740

:CRASH1_34624
set_lvar_int_to_constant 60@ = 17828
set_lvar_text_label 69@s = 'CRA1_BB'
goto @CRASH1_34740

:CRASH1_34653
set_lvar_int_to_constant 60@ = 17829
set_lvar_text_label 69@s = 'CRA1_BC'
goto @CRASH1_34740

:CRASH1_34682
set_lvar_int_to_constant 60@ = 17830
set_lvar_text_label 69@s = 'CRA1_BD'
goto @CRASH1_34740

:CRASH1_34711
set_lvar_int_to_constant 60@ = 17831
set_lvar_text_label 69@s = 'CRA1_BE'
goto @CRASH1_34740

:CRASH1_34740
52@ = 1
return 

:CRASH1_34749
214@ = Math.RandomIntInRange(0, 2)
switch_start 214@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CRASH1_34879 {caseNum1} 0 {caseLabel1} @CRASH1_34821 {caseNum2} 1 {caseLabel2} @CRASH1_34850 {caseNum3} -1 {caseLabel3} @CRASH1_34879 {caseNum4} -1 {caseLabel4} @CRASH1_34879 {caseNum5} -1 {caseLabel5} @CRASH1_34879 {caseNum6} -1 {caseLabel6} @CRASH1_34879 {caseNum7} -1 {caseLabel7} @CRASH1_34879

:CRASH1_34821
set_lvar_int_to_constant 60@ = 17800
set_lvar_text_label 69@s = 'CRA1_CA'
goto @CRASH1_34879

:CRASH1_34850
set_lvar_int_to_constant 60@ = 17801
set_lvar_text_label 69@s = 'CRA1_CB'
goto @CRASH1_34879

:CRASH1_34879
52@ = 1
return 

:CRASH1_34888
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 17802
set_lvar_text_label 69@(214@,9s) = 'CRA1_EA'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17837
set_lvar_text_label 69@(214@,9s) = 'CRA1_EB'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_35018
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_35018
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_35028
set_lvar_int_to_constant 60@ = 17803
set_lvar_text_label 69@s = 'CRA1_EC'
52@ = 1
return 

:CRASH1_35059
set_lvar_int_to_constant 60@ = 17804
set_lvar_text_label 69@s = 'CRA1_ED'
52@ = 1
return 

:CRASH1_35090
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 17805
set_lvar_text_label 69@(214@,9s) = 'CRA1_FA'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17838
set_lvar_text_label 69@(214@,9s) = 'CRA1_FB'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_35220
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_35220
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_35230
set_lvar_int_to_constant 60@ = 17839
set_lvar_text_label 69@s = 'CRA1_GA'
52@ = 1
return 

:CRASH1_35261
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 17840
set_lvar_text_label 69@(214@,9s) = 'CRA1_GB'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17806
set_lvar_text_label 69@(214@,9s) = 'CRA1_GC'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_35391
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_35391
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_35401
214@ = Math.RandomIntInRange(0, 11)
switch_start 214@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @CRASH1_35857 {caseNum1} 0 {caseLabel1} @CRASH1_35538 {caseNum2} 1 {caseLabel2} @CRASH1_35567 {caseNum3} 2 {caseLabel3} @CRASH1_35596 {caseNum4} 3 {caseLabel4} @CRASH1_35625 {caseNum5} 4 {caseLabel5} @CRASH1_35654 {caseNum6} 5 {caseLabel6} @CRASH1_35683 {caseNum7} 6 {caseLabel7} @CRASH1_35712
switch_continued 7 {caseLabel1} @CRASH1_35741 {caseNum2} 8 {caseLabel2} @CRASH1_35770 {caseNum3} 9 {caseLabel3} @CRASH1_35799 {caseNum4} 10 {caseLabel4} @CRASH1_35828 {caseNum5} -1 {caseLabel5} @CRASH1_35857 {caseNum6} -1 {caseLabel6} @CRASH1_35857 {caseNum7} -1 {caseLabel7} @CRASH1_35857 {caseNum8} -1 {caseLabel8} @CRASH1_35857 {caseNum9} -1 {caseLabel9} @CRASH1_35857

:CRASH1_35538
set_lvar_int_to_constant 60@ = 17841
set_lvar_text_label 69@s = 'CRA1_HA'
goto @CRASH1_35857

:CRASH1_35567
set_lvar_int_to_constant 60@ = 17842
set_lvar_text_label 69@s = 'CRA1_HB'
goto @CRASH1_35857

:CRASH1_35596
set_lvar_int_to_constant 60@ = 17843
set_lvar_text_label 69@s = 'CRA1_HC'
goto @CRASH1_35857

:CRASH1_35625
set_lvar_int_to_constant 60@ = 17844
set_lvar_text_label 69@s = 'CRA1_HD'
goto @CRASH1_35857

:CRASH1_35654
set_lvar_int_to_constant 60@ = 17807
set_lvar_text_label 69@s = 'CRA1_HE'
goto @CRASH1_35857

:CRASH1_35683
set_lvar_int_to_constant 60@ = 17808
set_lvar_text_label 69@s = 'CRA1_HF'
goto @CRASH1_35857

:CRASH1_35712
set_lvar_int_to_constant 60@ = 17809
set_lvar_text_label 69@s = 'CRA1_HG'
goto @CRASH1_35857

:CRASH1_35741
set_lvar_int_to_constant 60@ = 17810
set_lvar_text_label 69@s = 'CRA1_HH'
goto @CRASH1_35857

:CRASH1_35770
set_lvar_int_to_constant 60@ = 17845
set_lvar_text_label 69@s = 'CRA1_HJ'
goto @CRASH1_35857

:CRASH1_35799
set_lvar_int_to_constant 60@ = 17846
set_lvar_text_label 69@s = 'CRA1_HK'
goto @CRASH1_35857

:CRASH1_35828
set_lvar_int_to_constant 60@ = 17847
set_lvar_text_label 69@s = 'CRA1_HL'
goto @CRASH1_35857

:CRASH1_35857
52@ = 1
return 

:CRASH1_35866
set_lvar_int_to_constant 60@ = 17848
set_lvar_text_label 69@s = 'CRA1_JA'
52@ = 1
return 

:CRASH1_35897
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 17849
set_lvar_text_label 69@(214@,9s) = 'CRA1_JB'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17811
set_lvar_text_label 69@(214@,9s) = 'CRA1_JC'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17850
set_lvar_text_label 69@(214@,9s) = 'CRA1_JD'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_36064
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_36064
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_36074
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 17812
set_lvar_text_label 69@(214@,9s) = 'CRA1_KA'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17851
set_lvar_text_label 69@(214@,9s) = 'CRA1_KB'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17813
set_lvar_text_label 69@(214@,9s) = 'CRA1_KC'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17852
set_lvar_text_label 69@(214@,9s) = 'CRA1_KD'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17853
set_lvar_text_label 69@(214@,9s) = 'CRA1_KE'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17814
set_lvar_text_label 69@(214@,9s) = 'CRA1_KF'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17854
set_lvar_text_label 69@(214@,9s) = 'CRA1_KG'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17855
set_lvar_text_label 69@(214@,9s) = 'CRA1_KH'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17815
set_lvar_text_label 69@(214@,9s) = 'CRA1_KJ'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_36463
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_36463
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_36473
set_lvar_int_to_constant 60@ = 17856
set_lvar_text_label 69@s = 'CRA1_LA'
52@ = 1
return 

:CRASH1_36504
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 17816
set_lvar_text_label 69@(214@,9s) = 'CRA1_MA'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 17857
set_lvar_text_label 69@(214@,9s) = 'CRA1_MB'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_36634
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_36634
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_36644
set_lvar_int_to_constant 60@ = 17817
set_lvar_text_label 69@s = 'CRA1_MC'
52@ = 1
return 

:CRASH1_36675
set_lvar_int_to_constant 60@ = 17858
set_lvar_text_label 69@s = 'CRA1_MD'
52@ = 1
return 

:CRASH1_36706
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @CRASH1_36755
46@ += 1
if 
  46@ > 2
goto_if_false @CRASH1_36753
46@ = 0

:CRASH1_36753
clear_all_view_variables 

:CRASH1_36755
214@ = Char.GetHealth($scplayer)
if 
  not Char.IsDead(95@)
goto_if_false @CRASH1_36787
215@ = Char.GetHealth(95@)

:CRASH1_36787
if 
  46@ == 1
goto_if_false @CRASH1_37000
set_var_int_to_lvar_int $g_Crash1_counterKM1 = 34@
set_var_int_to_lvar_int $Crash1_view_debug = 35@
set_var_int_to_lvar_int $6696 = 45@
set_var_int_to_lvar_int $6697 = 214@
set_var_int_to_lvar_int $6698 = 215@
set_var_int_to_lvar_int $6699 = 190@
$6700 = 0
$6701 = 0
view_integer_variable $6700 {_p2} "IGNORE"
view_integer_variable $6701 {_p2} "IGNORE"
view_integer_variable $g_Crash1_counterKM1 {_p2} "M_STAGE"
view_integer_variable $Crash1_view_debug {_p2} "M_GOALS"
view_integer_variable $6696 {_p2} "M_MISSION_TIMER"
view_integer_variable $6697 {_p2} "PLAYER_HEALTH"
view_integer_variable $6698 {_p2} "COOCHIE_HEALTH"
view_integer_variable $6699 {_p2} "AICOOCHIE"

:CRASH1_37000
if 
  46@ == 2
goto_if_false @CRASH1_37018

:CRASH1_37018
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @CRASH1_37040
38@ = 1

:CRASH1_37040
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @CRASH1_37128
if 
  39@ == 0
goto_if_false @CRASH1_37103
39@ = 1
write_debug "LEVEL_PAUSED"
goto @CRASH1_37128

:CRASH1_37103
39@ = 0
write_debug "LEVEL_UNPAUSED"

:CRASH1_37128
return 

:CRASH1_37130
if 
  not is_ps2_keyboard_key_just_pressed 13
goto_if_false @CRASH1_37147
return 

:CRASH1_37147
if and
  34@ == 1
  3 > 35@
goto_if_false @CRASH1_37294
World.ClearArea(2311.234, -1150.613, 25.8027, 0.5, False)
Streaming.LoadScene(2311.234, -1150.613, 25.8027)
Char.SetHeading($scplayer, 266.3994)
Char.SetCoordinates($scplayer, 2311.234, -1150.613, 25.8027)
Camera.SetBehindPlayer
Blip.Remove(122@)
Blip.Remove(128@)
if 
  not Char.HasGotWeapon($scplayer, WeaponType.Molotov)
goto_if_false @CRASH1_37287
Pickup.Remove(132@)
Char.GiveWeapon($scplayer, WeaponType.Molotov, 20)

:CRASH1_37287
35@ = 3

:CRASH1_37294
if 
  34@ == 2
goto_if_false @CRASH1_37707
213@ = 0

:CRASH1_37319
if 
  302@(213@,5i) == 0
goto_if_false @CRASH1_37412
if 
  not Object.HasBeenDamaged(101@(213@,8i))
goto_if_false @CRASH1_37372
Object.Break(101@(213@,8i), 1)

:CRASH1_37372
302@(213@,5i) = 1
307@(213@,5i) = 1
Object.Delete(109@(213@,5i))
Blip.Remove(123@(213@,5i))

:CRASH1_37412
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_37319
209@ = 5
if 
  313@ == 1
goto_if_false @CRASH1_37504
213@ = 0

:CRASH1_37465
Pickup.Remove(133@(213@,2i))
Blip.Remove(129@(213@,2i))
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_37465

:CRASH1_37504
if 
  312@ == 1
goto_if_false @CRASH1_37532
Pickup.Remove(132@)
Blip.Remove(128@)

:CRASH1_37532
if 
  355@ == 1
goto_if_false @CRASH1_37616
213@ = 0

:CRASH1_37557
if 
  not Char.IsDead(87@(213@,5i))
goto_if_false @CRASH1_37595
Char.ClearTasksImmediately(87@(213@,5i))
Task.Die(87@(213@,5i))

:CRASH1_37595
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_37557

:CRASH1_37616
if 
  357@ == 1
goto_if_false @CRASH1_37700
213@ = 0

:CRASH1_37641
if 
  not Char.IsDead(92@(213@,2i))
goto_if_false @CRASH1_37679
Char.ClearTasksImmediately(92@(213@,2i))
Task.Die(92@(213@,2i))

:CRASH1_37679
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_37641

:CRASH1_37700
gosub @CRASH1_38827

:CRASH1_37707
if and
  34@ == 4
  10 > 35@
goto_if_false @CRASH1_37896
327@ = 1
if 
  not Char.HasGotWeapon($scplayer, WeaponType.Extinguisher)
goto_if_false @CRASH1_37772
Char.GiveWeapon($scplayer, WeaponType.Extinguisher, 30000)
Blip.Remove(122@)

:CRASH1_37772
World.ClearArea(2336.51, -1181.342, 1030.969, 0.5, False)
Char.SetHeading($scplayer, 279.3672)
Char.SetCoordinates($scplayer, 2336.51, -1181.342, 1030.969)
Camera.SetBehindPlayer
347@ = 0
Char.SetProofs(95@, False, False, False, False, False)
if 
  49@ <> 0
goto_if_false @CRASH1_37875
gosub @CRASH1_33172

:CRASH1_37875
50@ = 8
gosub @CRASH1_32981
35@ = 11

:CRASH1_37896
if and
  34@ == 6
  8 > 35@
goto_if_false @CRASH1_38059
Blip.Remove(122@)
World.ClearArea(2350.36, -1180.56, 1026.977, 0.5, False)
Char.SetHeading($scplayer, 266.3335)
Char.SetCoordinates($scplayer, 2350.36, -1180.56, 1026.977)
Camera.SetBehindPlayer
if 
  not Char.IsDead(95@)
goto_if_false @CRASH1_38052
World.ClearArea(2349.07, -1181.505, 1026.983, 0.5, False)
Char.SetHeading(95@, 266.6129)
Char.SetCoordinates(95@, 2349.07, -1181.505, 1026.983)

:CRASH1_38052
35@ = 8

:CRASH1_38059
if and
  34@ == 7
  35@ == 2
goto_if_false @CRASH1_38226
World.ClearArea(2423.539, -1721.212, 12.9061, 0.5, False)
Char.SetHeading($scplayer, 154.9302)
Char.SetCoordinates($scplayer, 2423.539, -1721.212, 12.9061)
Camera.SetBehindPlayer
if 
  not Char.IsDead(95@)
goto_if_false @CRASH1_38226
if 
  not Char.IsInAnyCar(95@)
goto_if_false @CRASH1_38226
World.ClearArea(2419.168, -1718.171, 12.7866, 0.5, False)
Char.SetHeading(95@, 75.9556)
Char.SetCoordinates(95@, 2419.168, -1718.171, 12.7866)

:CRASH1_38226
return 

:CRASH1_38228
41@ += 1
if 
  41@ > 9
goto_if_false @CRASH1_38260
41@ = 0

:CRASH1_38260
return 

:CRASH1_38262
42@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 44@ = 42@
sub_int_lvar_from_int_lvar 44@ -= 43@
set_lvar_int_to_lvar_int 43@ = 42@
add_int_lvar_to_int_lvar 45@ += 44@
return 

:CRASH1_38301
219@ = Clock.GetGameTimer()
300@ = 0
if 
  is_int_lvar_greater_than_int_lvar 219@ > 198@
goto_if_false @CRASH1_38355
300@ = 1
set_lvar_int_to_lvar_int 198@ = 219@
198@ += 3000

:CRASH1_38355
return 

:CRASH1_38357
if 
  314@ == 1
goto_if_false @CRASH1_38489
214@ = Streaming.GetAreaVisible()
if 
  214@ <> 5
goto_if_false @CRASH1_38487
314@ = 0
316@ = 1
Player.DisableSprint($player1, False)
197@ = 3
gosub @CRASH1_25459
Weather.SetHeathazeEffect(False)
if 
  34@ == 5
goto_if_false @CRASH1_38469
192@ = 5
gosub @CRASH1_24873

:CRASH1_38469
191@ = 5
gosub @CRASH1_23203
Hud.SetRadarZoom(0)

:CRASH1_38487
return 

:CRASH1_38489
if 
  314@ == 0
goto_if_false @CRASH1_38825
214@ = Char.GetAreaVisible($scplayer)
if 
  316@ == 1
goto_if_false @CRASH1_38567
if 
  214@ == 5
goto_if_false @CRASH1_38560
return 
goto @CRASH1_38567

:CRASH1_38560
316@ = 0

:CRASH1_38567
if 
  214@ == 5
goto_if_false @CRASH1_38825
v$5310 = Char.GetNameOfEntryExitUsed($scplayer)
if 
  is_var_text_label16_equal_to_text_label v$5310 == "GANG"
goto_if_false @CRASH1_38825
314@ = 1
315@ = 1
323@ = 0
203@ = 0
Player.DisableSprint($player1, True)
197@ = 2
gosub @CRASH1_25459
Weather.SetHeathazeEffect(True)
set_char_fire_damage_multiplier $scplayer {_p2} 0.3
Path.SwitchPedRoadsOn(2300.0, -1200.0, 1000.0, 2370.0, -1160.0, 1050.0)
191@ = 0
gosub @CRASH1_24064
if 
  34@ == 4
goto_if_false @CRASH1_38756
192@ = 4
gosub @CRASH1_24873

:CRASH1_38756
if 
  34@ == 5
goto_if_false @CRASH1_38788
192@ = 6
gosub @CRASH1_24873

:CRASH1_38788
gosub @CRASH1_31866
Hud.SetRadarZoom(50)
Game.ShowBlipsOnAllLevels(True)
Text.ClearThisPrint('CRA1_06')
Text.ClearThisPrint('CRA1_10')

:CRASH1_38825
return 

:CRASH1_38827
34@ += 1
35@ = 0
TIMERA = 0
TIMERB = 0
return 

:CRASH1_38857
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:CRASH1_38872
if 
  Camera.GetFadingStatus
goto_if_false @CRASH1_38896
wait 0
goto @CRASH1_38872

:CRASH1_38896
Streaming.SetAreaVisible(17)
Char.SetCoordinates($scplayer, 1038.17, -1335.221, 12.5493)
Char.SetHeading($scplayer, 0.0)
Cutscene.Load('CRASH1A')

:CRASH1_38941
if 
  not Cutscene.HasLoaded
goto_if_false @CRASH1_38965
wait 0
goto @CRASH1_38941

:CRASH1_38965
Cutscene.Start
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:CRASH1_38982
if 
  not Cutscene.HasFinished
goto_if_false @CRASH1_39006
wait 0
goto @CRASH1_38982

:CRASH1_39006
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)

:CRASH1_39020
if 
  Camera.GetFadingStatus
goto_if_false @CRASH1_39044
wait 0
goto @CRASH1_39020

:CRASH1_39044
Cutscene.Clear
Streaming.SetAreaVisible(0)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
return 

:CRASH1_39065
if 
  not Player.IsPlaying($player1)
goto_if_false @CRASH1_39092
wait 0
goto @CRASH1_39065

:CRASH1_39092
gosub @CRASH1_39285
gosub @CRASH1_39563
World.ClearArea(1038.17, -1335.221, 12.5493, 0.5, False)
Streaming.LoadScene(1038.17, -1335.221, 12.5493)
Char.SetCoordinates($scplayer, 1038.17, -1335.221, 12.5493)
Char.SetHeading($scplayer, 0.0)
Camera.SetBehindPlayer
100@ = Car.Create(596, 1032.438, -1330.931, 12.3864)
Car.SetHeading(100@, 270.0)
Car.LockDoors(100@, CarLock.Unlocked)
Car.MarkAsNoLongerNeeded(100@)
World.SwitchEntryExit('GANG', False)
Object.Delete($ca3_loadingbay)
Group.Remove($Players_Group)
Player.SetGroupRecruitment($player1, False)
$disable_mod_garage = 1
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)
gosub @CRASH1_38827
return 

:CRASH1_39285
Streaming.RequestModel(412)
Streaming.RequestModel(596)
Streaming.RequestModel(108)
Streaming.RequestModel(109)
Streaming.RequestModel(110)
Streaming.RequestModel(195)
Streaming.RequestModel(346)
Streaming.RequestModel(344)
Streaming.RequestModel(366)
Streaming.RequestModel(#BREAK_WALL_1A)
Streaming.RequestModel(#BREAK_WALL_2A)
Streaming.RequestModel(#BREAK_WALL_3A)
Streaming.RequestModel(#BREAK_WALL_1B)
Streaming.RequestModel(#BREAK_WALL_2B)
Streaming.RequestModel(#BREAK_WALL_3B)
Streaming.RequestModel(#BD_FIRE1_O)
Streaming.RequestModel(#CR_AMMOBOX)
Streaming.LoadAllModelsNow

:CRASH1_39369
if or
  not Streaming.HasModelLoaded(412)
  not Streaming.HasModelLoaded(596)
goto_if_false @CRASH1_39401
wait 0
goto @CRASH1_39369

:CRASH1_39401
if or
  not Streaming.HasModelLoaded(108)
  not Streaming.HasModelLoaded(109)
  not Streaming.HasModelLoaded(110)
  not Streaming.HasModelLoaded(195)
goto_if_false @CRASH1_39440
wait 0
goto @CRASH1_39401

:CRASH1_39440
if or
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(344)
  not Streaming.HasModelLoaded(366)
goto_if_false @CRASH1_39477
wait 0
goto @CRASH1_39440

:CRASH1_39477
if or
  not Streaming.HasModelLoaded(#BREAK_WALL_1B)
  not Streaming.HasModelLoaded(#BREAK_WALL_2B)
  not Streaming.HasModelLoaded(#BREAK_WALL_3B)
  not Streaming.HasModelLoaded(#BD_FIRE1_O)
goto_if_false @CRASH1_39519
wait 0
goto @CRASH1_39477

:CRASH1_39519
if or
  not Streaming.HasModelLoaded(#CR_AMMOBOX)
  not Streaming.HasModelLoaded(#BREAK_WALL_1A)
  not Streaming.HasModelLoaded(#BREAK_WALL_2A)
  not Streaming.HasModelLoaded(#BREAK_WALL_3A)
goto_if_false @CRASH1_39561
wait 0
goto @CRASH1_39519

:CRASH1_39561
return 

:CRASH1_39563
Streaming.RequestAnimation("BD_FIRE")

:CRASH1_39574
if 
  not Streaming.HasAnimationLoaded("BD_FIRE")
goto_if_false @CRASH1_39607
wait 0
goto @CRASH1_39574

:CRASH1_39607
return 

:CRASH1_39609
282@ = 2351.237
283@ = -1161.075
284@ = 27.4175
285@ = 268.343
World.ClearArea(282@, 283@, 284@, 10.0, False)
98@ = Car.Create(412, 282@, 283@, 284@)
Car.SetHeading(98@, 285@)
Car.OpenDoor(98@, CarDoor.Hood)
356@ = 1
return 

:CRASH1_39708
282@ = 2354.26
283@ = -1161.106
284@ = 26.4678
285@ = 80.3034
214@ = 0
87@(214@,5i) = Char.Create(PedType.Gang8, 110, 282@, 283@, 284@)
Char.SetHeading(87@(214@,5i), 285@)
Char.GiveWeapon(87@(214@,5i), WeaponType.Pistol, 999)
Char.SetIsTargetPriority(87@(214@,5i), True)
Char.SetDecisionMaker(87@(214@,5i), 180@)
182@(214@,5i) = -1
282@ = 2349.739
283@ = -1165.192
284@ = 26.3933
285@ = 65.0946
214@ += 1
87@(214@,5i) = Char.Create(PedType.Gang8, 109, 282@, 283@, 284@)
Char.SetHeading(87@(214@,5i), 285@)
Char.GiveWeapon(87@(214@,5i), WeaponType.Pistol, 999)
Char.SetIsTargetPriority(87@(214@,5i), True)
Char.SetDecisionMaker(87@(214@,5i), 180@)
182@(214@,5i) = -1
282@ = 2354.245
283@ = -1170.401
284@ = 26.9609
285@ = 1.1416
214@ += 1
87@(214@,5i) = Char.Create(PedType.Gang8, 108, 282@, 283@, 284@)
Char.SetHeading(87@(214@,5i), 285@)
Char.GiveWeapon(87@(214@,5i), WeaponType.Pistol, 999)
Char.SetIsTargetPriority(87@(214@,5i), True)
Char.SetDecisionMaker(87@(214@,5i), 180@)
182@(214@,5i) = -1
282@ = 2315.006
283@ = -1189.825
284@ = 27.0045
285@ = 52.4876
214@ += 1
87@(214@,5i) = Char.Create(PedType.Gang8, 109, 282@, 283@, 284@)
Char.SetHeading(87@(214@,5i), 285@)
Char.GiveWeapon(87@(214@,5i), WeaponType.Pistol, 999)
Char.SetIsTargetPriority(87@(214@,5i), True)
Char.SetDecisionMaker(87@(214@,5i), 180@)
Char.SetAccuracy(87@(214@,5i), 15)
182@(214@,5i) = -1
282@ = 2349.953
283@ = -1204.126
284@ = 26.9609
285@ = 348.4
214@ += 1
87@(214@,5i) = Char.Create(PedType.Gang8, 108, 282@, 283@, 284@)
Char.SetHeading(87@(214@,5i), 285@)
Char.GiveWeapon(87@(214@,5i), WeaponType.Pistol, 999)
Char.SetIsTargetPriority(87@(214@,5i), True)
Char.SetDecisionMaker(87@(214@,5i), 180@)
182@(214@,5i) = -1
355@ = 1
return 

:CRASH1_40373
282@ = 2345.914
283@ = -1188.633
284@ = 28.969
214@ = 0
101@(214@,8i) = Object.CreateNoOffset(#BD_WINDOW, 282@, 283@, 284@)
282@ = 2336.023
283@ = -1188.633
284@ = 28.969
214@ += 1
101@(214@,8i) = Object.CreateNoOffset(#BD_WINDOW, 282@, 283@, 284@)
282@ = 2326.164
283@ = -1188.633
284@ = 28.969
214@ += 1
101@(214@,8i) = Object.CreateNoOffset(#BD_WINDOW, 282@, 283@, 284@)
282@ = 2345.977
283@ = -1170.977
284@ = 28.969
214@ += 1
101@(214@,8i) = Object.CreateNoOffset(#BD_WINDOW, 282@, 283@, 284@)
Object.SetHeading(101@(214@,8i), 180.0)
282@ = 2326.57
283@ = -1170.984
284@ = 28.953
214@ += 1
101@(214@,8i) = Object.CreateNoOffset(#BD_WINDOW, 282@, 283@, 284@)
Object.SetHeading(101@(214@,8i), 180.0)
282@ = 2345.977
283@ = -1170.977
284@ = 32.953
214@ += 1
101@(214@,8i) = Object.CreateNoOffset(#BD_WINDOW_SHATTER, 282@, 283@, 284@)
Object.SetHeading(101@(214@,8i), 180.0)
282@ = 2336.023
283@ = -1188.633
284@ = 32.961
214@ += 1
101@(214@,8i) = Object.CreateNoOffset(#BD_WINDOW, 282@, 283@, 284@)
282@ = 2345.914
283@ = -1188.633
284@ = 32.961
214@ += 1
101@(214@,8i) = Object.CreateNoOffset(#BD_WINDOW, 282@, 283@, 284@)
return 

:CRASH1_40881
114@ = Object.Create(#CR1_DOOR, 2352.851, -1171.027, 26.9669)
Object.SetHeading(114@, 90.0)
Object.SetDynamic(114@, False)
Object.SetCollisionDamageEffect(114@, False)
Object.SetProofs(114@, True, True, True, True, True)
return 

:CRASH1_40944
282@ = 2338.126
283@ = -1181.917
284@ = 1033.188
214@ = 0
119@(214@,3i) = Object.CreateNoOffset(#BREAK_WALL_1A, 282@, 283@, 284@)
Object.SetHeading(119@(214@,3i), 90.0)
193@(214@,3i) = 0
282@ = 2330.402
283@ = -1179.15
284@ = 1030.55
214@ += 1
119@(214@,3i) = Object.CreateNoOffset(#BREAK_WALL_2A, 282@, 283@, 284@)
193@(214@,3i) = 0
282@ = 2340.293
283@ = -1182.294
284@ = 1026.963
214@ += 1
119@(214@,3i) = Object.CreateNoOffset(#BREAK_WALL_3A, 282@, 283@, 284@)
Object.SetHeading(119@(214@,3i), 90.0)
193@(214@,3i) = 0
213@ = 0

:CRASH1_41186
Object.SetAreaVisible(119@(213@,3i), 5)
213@ += 1
  213@ >= 3
goto_if_false @CRASH1_41186
361@ = 1
return 

:CRASH1_41227
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if and
  340@ == 0
  359@ == 1
  Char.IsDead(95@)
goto_if_false @CRASH1_41289
Text.PrintNow('CRA1_51', 5000, 1)

:CRASH1_41289
return 

:CRASH1_41291
Text.PrintWithNumberBig('M_PASSD', 0, 5000, TextStyle.Middle)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.RegisterMissionPassed('CRASH_1')
Stat.PlayerMadeProgress(1)
$flag_crash_mission_counter += 1
set_global_var_bit_const $iActiveGF {n} 0
return 

:CRASH1_41349
if 
  355@ == 1
goto_if_false @CRASH1_41411
213@ = 0

:CRASH1_41374
Char.MarkAsNoLongerNeeded(87@(213@,5i))
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_41374
355@ = 0

:CRASH1_41411
if 
  356@ == 1
goto_if_false @CRASH1_41441
Car.MarkAsNoLongerNeeded(98@)
356@ = 0

:CRASH1_41441
if 
  313@ == 1
goto_if_false @CRASH1_41512
213@ = 0

:CRASH1_41466
Pickup.Remove(133@(213@,2i))
Blip.Remove(129@(213@,2i))
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_41466
313@ = 0

:CRASH1_41512
213@ = 0

:CRASH1_41519
Pickup.Remove(136@(213@,2i))
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_41519
if 
  357@ == 1
goto_if_false @CRASH1_41616
Car.MarkAsNoLongerNeeded(99@)
213@ = 0

:CRASH1_41579
Char.MarkAsNoLongerNeeded(92@(213@,2i))
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_41579
357@ = 0

:CRASH1_41616
if 
  358@ == 1
goto_if_false @CRASH1_41651
Char.MarkAsNoLongerNeeded(94@)
ScriptFire.Remove(138@)
358@ = 0

:CRASH1_41651
if 
  359@ == 1
goto_if_false @CRASH1_41696
Char.MarkAsNoLongerNeeded(95@)
Blip.Remove(131@)
Hud.ClearCounter($sw7_funeraltimer)
ScriptFire.Remove(139@)
359@ = 1

:CRASH1_41696
if 
  360@ == 1
goto_if_false @CRASH1_41731
Char.RemoveElegantly(96@)
Char.RemoveElegantly(97@)
360@ = 0

:CRASH1_41731
if 
  317@ == 1
goto_if_false @CRASH1_41761
Pickup.Remove(135@)
317@ = 0

:CRASH1_41761
Blip.Remove(122@)
Blip.Remove(128@)
Streaming.RemoveAnimation("BD_FIRE")
if 
  Player.IsPlaying($player1)
goto_if_false @CRASH1_41843
Char.RemoveWeapon($scplayer, WeaponType.Molotov)
Char.RemoveWeapon($scplayer, WeaponType.Extinguisher)
set_char_fire_damage_multiplier $scplayer {_p2} 1.0
Player.DisableSprint($player1, False)
Player.SetGroupToFollowAlways($player1, False)
Char.ShutUpForScriptedSpeech($scplayer, False)

:CRASH1_41843
if 
  314@ == 1
goto_if_false @CRASH1_41875
197@ = 3
gosub @CRASH1_25459

:CRASH1_41875
197@ = 1
gosub @CRASH1_25459
197@ = 5
gosub @CRASH1_25459
Streaming.MarkModelAsNoLongerNeeded(412)
Streaming.MarkModelAsNoLongerNeeded(596)
Streaming.MarkModelAsNoLongerNeeded(407)
Streaming.MarkModelAsNoLongerNeeded(108)
Streaming.MarkModelAsNoLongerNeeded(109)
Streaming.MarkModelAsNoLongerNeeded(110)
Streaming.MarkModelAsNoLongerNeeded(195)
Streaming.MarkModelAsNoLongerNeeded(277)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(344)
Streaming.MarkModelAsNoLongerNeeded(366)
Streaming.MarkModelAsNoLongerNeeded(#BREAK_WALL_1A)
Streaming.MarkModelAsNoLongerNeeded(#BREAK_WALL_2A)
Streaming.MarkModelAsNoLongerNeeded(#BREAK_WALL_3A)
Streaming.MarkModelAsNoLongerNeeded(#BREAK_WALL_1B)
Streaming.MarkModelAsNoLongerNeeded(#BREAK_WALL_2B)
Streaming.MarkModelAsNoLongerNeeded(#BREAK_WALL_3B)
Streaming.MarkModelAsNoLongerNeeded(#BD_FIRE1_O)
Streaming.MarkModelAsNoLongerNeeded(#CR_AMMOBOX)
Weather.SetHeathazeEffect(False)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SetWantedMultiplier(1.0)
Hud.SetRadarZoom(0)
Player.DisableSprint($player1, False)
Game.SwitchEmergencyServices(True)
World.SwitchEntryExit('GANG', False)
Player.SetGroupRecruitment($player1, True)
$disable_mod_garage = 0
$ca3_loadingbay = Object.Create(#CR1_DOOR, 2352.851, -1171.027, 26.9669)
Object.SetHeading($ca3_loadingbay, 90.0)
Object.SetDynamic($ca3_loadingbay, False)
Object.SetCollisionDamageEffect($ca3_loadingbay, False)
Object.SetProofs($ca3_loadingbay, True, True, True, True, True)
Object.DontRemove($ca3_loadingbay)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 23---------------
// Originally: Gray Imports

:DRUGS3
script_name 'DRUGS3'
gosub @DRUGS3_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRUGS3_38
gosub @DRUGS3_19343

:DRUGS3_38
gosub @DRUGS3_19417
terminate_this_script 

:DRUGS3_47
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('CRASH3')
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
World.ClearArea(1036.86, -1336.49, 20.0, 20.0, False)
Cutscene.Load('CRASH3A')

:DRUGS3_116
if 
  not Cutscene.HasLoaded
goto_if_false @DRUGS3_140
wait 0
goto @DRUGS3_116

:DRUGS3_140
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:DRUGS3_149
if 
  not Cutscene.HasFinished
goto_if_false @DRUGS3_173
wait 0
goto @DRUGS3_149

:DRUGS3_173
Camera.DoFade(0, Fade.Out)

:DRUGS3_179
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS3_203
wait 0
goto @DRUGS3_179

:DRUGS3_203
Cutscene.Clear
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Streaming.RequestModel(530)
Streaming.RequestModel(414)
Streaming.RequestModel(353)
Streaming.RequestModel(#SEC_KEYPAD)
Streaming.RequestModel(#KMB_RAMP)
Streaming.RequestModel(429)
Streaming.RequestModel(461)
Streaming.RequestCarRecording(342)
Streaming.LoadAllModelsNow

:DRUGS3_260
if or
  not Streaming.HasModelLoaded(530)
  not Streaming.HasModelLoaded(414)
  not Streaming.HasCarRecordingBeenLoaded(342)
goto_if_false @DRUGS3_297
wait 0
goto @DRUGS3_260

:DRUGS3_297
if or
  not Streaming.HasModelLoaded(#SEC_KEYPAD)
  not Streaming.HasModelLoaded(353)
  not Streaming.HasModelLoaded(#KMB_RAMP)
  not Streaming.HasModelLoaded(429)
  not Streaming.HasModelLoaded(461)
goto_if_false @DRUGS3_344
wait 0
goto @DRUGS3_297

:DRUGS3_344
Game.SetWantedMultiplier(0.1)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
52@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.ClearEventResponse(52@, 7)
DecisionMakerChar.AddEventResponse(52@, 7, 1000, 50.0, 50.0, 50.0, 50.0, True, True)
53@ = DecisionMakerChar.Load(DecisionMakerType.Weak)
Char.SetCoordinates($scplayer, 1038.0, -1339.0, 12.8)
Char.SetHeading($scplayer, 1.0)
Camera.SetBehindPlayer
Streaming.LoadSceneInDirection(1038.0, -1340.99, 13.94, 1.0)
Camera.DoFade(1500, Fade.In)
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
151@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
156@ = 0
157@ = 0
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
183@ = 0
184@ = 0
185@ = 0
186@ = 0
187@ = 0
if 
  $6702 > 0
goto_if_false @DRUGS3_850
Skip.SetUp(2263.378, -2226.33, 12.4, 47.416)

:DRUGS3_850
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DRUGS3_876
goto @DRUGS3_19361

:DRUGS3_876
if 
  141@ == 0
goto_if_false @DRUGS3_937
137@ = Blip.AddForCoord(2247.639, -2202.144, 12.59)
Text.PrintNow('CSH3_1', 7000, 1)
141@ = 1

:DRUGS3_937
if 
  141@ == 1
goto_if_false @DRUGS3_3398
if 
  Char.LocateAnyMeans2D($scplayer, 2247.639, -2202.144, 3.0, 3.0, True)
goto_if_false @DRUGS3_3398
if 
  $6702 == 0
goto_if_false @DRUGS3_1018
$6702 = 1

:DRUGS3_1018
Skip.Clear
Player.SetControl($player1, False)
Game.SwitchEmergencyServices(False)
Camera.DoFade(500, Fade.Out)

:DRUGS3_1038
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS3_1062
wait 0
goto @DRUGS3_1038

:DRUGS3_1062
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @DRUGS3_1126
$car = Char.StoreCarIsInNoSave($scplayer)
Car.SetProofs($car, False, True, True, False, False)
Car.SetHeading($car, 128.0)
Car.SetHealth($car, 2000)
goto @DRUGS3_1136

:DRUGS3_1126
Char.SetHeading($scplayer, 128.0)

:DRUGS3_1136
World.ClearArea(2174.896, -2258.914, 150.0, 150.0, True)
Streaming.RequestModel(#IMCMPTRKDRL_LAS)
Streaming.RequestModel(#IMCMPTRKDRR_LAS)
Streaming.RequestModel(#IMCOMPMOVEDR1_LAS)
Streaming.RequestModel(50)
Streaming.RequestModel(346)
Streaming.RequestModel(#BARREL4)
Streaming.RequestCarRecording(310)
Streaming.RequestCarRecording(328)
Streaming.RequestCarRecording(329)
Streaming.RequestCarRecording(309)
Streaming.RequestCarRecording(347)
Streaming.LoadAllModelsNow

:DRUGS3_1216
if or
  not Streaming.HasModelLoaded(50)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(#BARREL4)
goto_if_false @DRUGS3_1252
wait 0
goto @DRUGS3_1216

:DRUGS3_1252
if or
  not Streaming.HasCarRecordingBeenLoaded(310)
  not Streaming.HasCarRecordingBeenLoaded(328)
  not Streaming.HasCarRecordingBeenLoaded(329)
  not Streaming.HasCarRecordingBeenLoaded(309)
goto_if_false @DRUGS3_1294
wait 0
goto @DRUGS3_1252

:DRUGS3_1294
if or
  not Streaming.HasCarRecordingBeenLoaded(347)
  not Streaming.HasModelLoaded(#IMCMPTRKDRL_LAS)
  not Streaming.HasModelLoaded(#IMCMPTRKDRR_LAS)
  not Streaming.HasModelLoaded(#IMCOMPMOVEDR1_LAS)
goto_if_false @DRUGS3_1336
wait 0
goto @DRUGS3_1294

:DRUGS3_1336
Streaming.LoadScene(2212.02, -2225.45, 12.24)
34@ = Object.Create(#IMCMPTRKDRL_LAS, 2192.925, -2231.824, 14.205)
35@ = Object.Create(#IMCMPTRKDRR_LAS, 2195.072, -2229.589, 14.205)
Object.SetHeading(34@, 135.0)
Object.SetHeading(35@, 85.0)
36@ = Object.Create(#IMCMPTRKDRL_LAS, 2200.184, -2224.419, 14.205)
37@ = Object.Create(#IMCMPTRKDRR_LAS, 2202.432, -2222.266, 14.205)
Object.SetHeading(36@, 135.0)
Object.SetHeading(37@, 85.0)
38@ = Object.Create(#IMCMPTRKDRL_LAS, 2207.766, -2217.281, 14.205)
39@ = Object.Create(#IMCMPTRKDRR_LAS, 2210.014, -2215.058, 14.205)
Object.SetHeading(38@, 135.0)
Object.SetHeading(39@, 85.0)
40@ = Object.Create(#IMCMPTRKDRL_LAS, 2215.096, -2210.761, 14.205)
41@ = Object.Create(#IMCMPTRKDRR_LAS, 2217.344, -2208.537, 14.205)
Object.SetHeading(40@, 135.0)
Object.SetHeading(41@, 85.0)
42@ = Object.CreateNoOffset(#KMB_RAMP, 2193.418, -2231.352, 14.183)
43@ = Object.CreateNoOffset(#KMB_RAMP, 2194.642, -2230.128, 14.183)
44@ = Object.CreateNoOffset(#KMB_RAMP, 2200.686, -2224.019, 14.183)
45@ = Object.CreateNoOffset(#KMB_RAMP, 2201.91, -2222.795, 14.183)
46@ = Object.CreateNoOffset(#KMB_RAMP, 2208.243, -2216.833, 14.183)
47@ = Object.CreateNoOffset(#KMB_RAMP, 2209.468, -2215.609, 14.183)
48@ = Object.CreateNoOffset(#KMB_RAMP, 2215.489, -2210.406, 14.183)
49@ = Object.CreateNoOffset(#KMB_RAMP, 2216.713, -2209.182, 14.183)
Object.SetRotation(42@, 0.0, 0.0, 45.0)
Object.SetRotation(43@, 0.0, 0.0, 45.0)
Object.SetRotation(44@, 0.0, 0.0, 45.0)
Object.SetRotation(45@, 0.0, 0.0, 45.0)
Object.SetRotation(46@, 0.0, 0.0, 45.0)
Object.SetRotation(47@, 0.0, 0.0, 45.0)
Object.SetRotation(48@, 0.0, 0.0, 45.0)
Object.SetRotation(49@, 0.0, 0.0, 45.0)
50@ = Object.CreateNoOffset(#IMCOMPMOVEDR1_LAS, 2178.073, -2254.384, 15.9)
Object.SetHeading(50@, 224.0)
51@ = Object.Create(#SEC_KEYPAD, 2174.896, -2258.914, 15.0)
Object.FreezePosition(51@, True)
Object.SetHeading(51@, 35.23)
Object.SetHealth(51@, 10)
Object.SetOnlyDamagedByPlayer(51@, True)
73@ = Object.Create(#BARREL4, 2187.538, -2255.581, 12.51)
Object.SetOnlyDamagedByPlayer(73@, True)
58@ = Car.Create(414, 2175.94, -2268.1, 12.66)
Car.SetHeading(58@, 48.24)
Car.SetHealth(58@, 450)
59@ = Car.Create(414, 2159.395, -2295.29, 12.688)
Car.SetHeading(59@, 44.51)
Car.SetHealth(59@, 450)
60@ = Car.Create(530, 2174.87, -2289.22, 12.06)
Car.SetHeading(60@, 321.59)
62@ = Char.CreateInsideCar(60@, PedType.Mission1, 50)
Car.SetStraightLineDistance(60@, 150)
Char.SetDecisionMaker(62@, 52@)
61@ = Car.Create(530, 2193.25, -2256.4, 12.25)
Car.SetHeading(61@, 266.92)
63@ = Char.CreateInsideCar(61@, PedType.Mission1, 50)
Car.SetStraightLineDistance(61@, 150)
Char.SetDecisionMaker(63@, 52@)
if 
  not Car.IsDead(60@)
goto_if_false @DRUGS3_2503
if 
  not Char.IsDead(62@)
goto_if_false @DRUGS3_2503
if 
  Char.IsSittingInCar(62@, 60@)
goto_if_false @DRUGS3_2503
71@ = Object.Create(#BARREL4, 2179.18, -2270.92, -14.0)
Object.SetOnlyDamagedByPlayer(71@, True)
72@ = Object.Create(#BARREL4, 2179.18, -2270.92, -10.0)
Object.SetOnlyDamagedByPlayer(72@, True)
Object.AttachToCar(71@, 60@, 0.5, 0.3, 0.3, 0.0, 0.0, 0.0)
Object.AttachToCar(72@, 60@, -0.5, 0.3, 0.3, 0.0, 0.0, 0.0)
Task.CarDriveToCoord(62@, 60@, 2179.49, -2280.46, 14.03, 5.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)

:DRUGS3_2503
if 
  not Car.IsDead(61@)
goto_if_false @DRUGS3_2724
if 
  not Char.IsDead(63@)
goto_if_false @DRUGS3_2724
if 
  Char.IsInCar(63@, 61@)
goto_if_false @DRUGS3_2724
69@ = Object.Create(#BARREL4, 2179.18, -2270.92, -14.0)
Object.SetOnlyDamagedByPlayer(69@, True)
70@ = Object.Create(#BARREL4, 2179.18, -2270.92, -10.0)
Object.SetOnlyDamagedByPlayer(70@, True)
Object.AttachToCar(69@, 61@, 0.5, 0.3, 0.3, 0.0, 0.0, 0.0)
Object.AttachToCar(70@, 61@, -0.5, 0.3, 0.3, 0.0, 0.0, 0.0)
Task.CarDriveToCoord(63@, 61@, 2209.1, -2253.64, 12.25, 6.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)

:DRUGS3_2724
54@ = Car.Create(429, 2207.7, -2246.157, 12.597)
83@ = Char.CreateInsideCar(54@, PedType.Mission1, 50)
Char.SetDecisionMaker(83@, 52@)
55@ = Car.Create(461, 2212.9, -2241.6, 12.59)
84@ = Char.CreateInsideCar(55@, PedType.Mission1, 50)
Char.SetDecisionMaker(84@, 52@)
56@ = Car.Create(429, 2218.87, -2234.29, 12.6)
85@ = Char.CreateInsideCar(56@, PedType.Mission1, 50)
Char.SetDecisionMaker(85@, 52@)
57@ = Car.Create(461, 2224.3, -2228.19, 12.597)
86@ = Char.CreateInsideCar(57@, PedType.Mission1, 50)
Char.SetDecisionMaker(86@, 52@)
64@ = Char.Create(PedType.Mission1, 50, 2181.97, -2252.695, 13.82)
Char.SetHeading(64@, 231.26)
Char.GiveWeapon(64@, WeaponType.Mp5, 99999)
Char.SetDecisionMaker(64@, 52@)
Char.SetAccuracy(64@, 30)
65@ = Char.Create(PedType.Mission1, 50, 2189.65, -2250.05, 12.597)
Char.SetHeading(65@, 229.24)
Char.SetDecisionMaker(65@, 52@)
Char.GiveWeapon(65@, WeaponType.Pistol, 9999)
Char.SetAccuracy(65@, 30)
66@ = Char.Create(PedType.Mission1, 50, 2193.126, -2233.95, 12.59)
Char.SetHeading(66@, 249.77)
Char.SetDecisionMaker(66@, 52@)
Char.GiveWeapon(66@, WeaponType.Mp5, 9999)
Char.SetAccuracy(66@, 30)
67@ = Char.Create(PedType.Mission1, 50, 2199.71, -2257.841, 12.597)
Char.SetHeading(67@, 347.22)
Char.SetDecisionMaker(67@, 52@)
Char.GiveWeapon(67@, WeaponType.Pistol, 9999)
Char.SetAccuracy(67@, 30)
68@ = Char.Create(PedType.Mission1, 50, 2200.2, -2256.49, 12.597)
Char.SetHeading(68@, 168.1)
Task.ChatWithChar(67@, 68@, True, 1)
Char.SetDecisionMaker(68@, 52@)
Char.GiveWeapon(68@, WeaponType.Mp5, 9999)
Char.SetAccuracy(68@, 30)
Task.ChatWithChar(68@, 67@, False, 1)
Camera.SetFixedPosition(2256.623, -2213.522, 23.0389, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2255.702, -2213.833, 22.8027, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Camera.DoFade(500, Fade.In)
if 
  not Car.IsDead(54@)
goto_if_false @DRUGS3_3391
if 
  not Car.IsDead(55@)
goto_if_false @DRUGS3_3391
if 
  not Car.IsDead(56@)
goto_if_false @DRUGS3_3391
if 
  not Car.IsDead(57@)
goto_if_false @DRUGS3_3391
Car.StartPlayback(55@, 310)
Car.StartPlayback(56@, 328)
Car.StartPlayback(57@, 329)
Car.StartPlayback(54@, 309)
Text.PrintNow('CSH3_2', 5000, 1)

:DRUGS3_3391
141@ = 2

:DRUGS3_3398
if 
  141@ == 2
goto_if_false @DRUGS3_3490
if 
  not Car.IsDead(54@)
goto_if_false @DRUGS3_3483
if 
  Car.IsPlaybackGoingOn(54@)
goto_if_false @DRUGS3_3483
if 
  not Car.IsDead(54@)
goto_if_false @DRUGS3_3483
Car.PausePlayback(54@)
TIMERA = 0
141@ = 3

:DRUGS3_3483
skip_cutscene_start_internal @DRUGS3_5144

:DRUGS3_3490
if 
  141@ == 3
goto_if_false @DRUGS3_3679
if 
  TIMERA > 5499
goto_if_false @DRUGS3_3679
Camera.SetFixedPosition(2207.014, -2244.207, 13.7376, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2206.333, -2243.486, 13.613, SwitchType.JumpCut)
if 
  not Char.IsDead(66@)
goto_if_false @DRUGS3_3628
Task.PlayAnim(66@, "HANDSUP", "PED", 4.0, False, False, False, False, -1)

:DRUGS3_3628
if 
  not Car.IsDead(54@)
goto_if_false @DRUGS3_3679
if 
  Car.IsPlaybackGoingOn(54@)
goto_if_false @DRUGS3_3679
Car.UnpausePlayback(54@)
TIMERA = 0
141@ = 4

:DRUGS3_3679
if 
  141@ == 4
goto_if_false @DRUGS3_3833
if 
  TIMERA > 1799
goto_if_false @DRUGS3_3833
Camera.SetFixedPosition(2205.371, -2235.253, 14.1153, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2204.374, -2235.265, 14.0397, SwitchType.JumpCut)
if 
  not Char.IsDead(66@)
goto_if_false @DRUGS3_3819
Task.PlayAnim(66@, "ROADCROSS", "PED", 4.0, False, False, False, False, -1)

:DRUGS3_3819
TIMERA = 0
141@ = 5

:DRUGS3_3833
if 
  141@ == 5
goto_if_false @DRUGS3_4088
if 
  TIMERA > 3150
goto_if_false @DRUGS3_4088
Text.PrintNow('CSH3_3', 7000, 2)
Camera.SetFixedPosition(2210.3, -2254.067, 16.7105, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2209.311, -2254.181, 16.6143, SwitchType.JumpCut)
if 
  not Char.IsDead(68@)
goto_if_false @DRUGS3_3989
Task.PlayAnim(68@, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)

:DRUGS3_3989
if 
  not Char.IsDead(62@)
goto_if_false @DRUGS3_4074
if 
  not Car.IsDead(60@)
goto_if_false @DRUGS3_4074
if 
  not Char.IsSittingInCar(62@, 60@)
goto_if_false @DRUGS3_4074
Task.CarDriveToCoord(62@, 60@, 2187.88, -2265.11, 12.6, 6.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)

:DRUGS3_4074
TIMERA = 0
141@ = 6

:DRUGS3_4088
if 
  TIMERA > 2999
goto_if_false @DRUGS3_5126
if 
  141@ == 6
goto_if_false @DRUGS3_5126
87@ = Char.Create(PedType.Mission1, 50, 2177.95, -2261.002, 13.818)
Char.SetHeading(87@, 45.4)
Char.SetDecisionMaker(87@, 52@)
Camera.SetFixedPosition(2187.079, -2255.27, 15.5563, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2186.082, -2255.316, 15.5002, SwitchType.JumpCut)
75@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2175.29, -2259.22, 14.8, MoveState.Run, -1)
Task.PlayAnim(-1, "ATM", "PED", 4.0, False, False, False, False, -1)
Sequence.Close(75@)
Char.PerformSequence(87@, 75@)
Sequence.Clear(75@)
if 
  not Char.IsDead(64@)
goto_if_false @DRUGS3_4345
Task.PlayAnim(64@, "ROADCROSS", "PED", 4.0, False, False, False, False, -1)

:DRUGS3_4345
if 
  142@ <> 6
goto_if_false @DRUGS3_5119
wait 0
if 
  142@ == 0
goto_if_false @DRUGS3_4453
if 
  not Char.IsDead(87@)
goto_if_false @DRUGS3_4453
if 
  Char.LocateStoppedOnFoot2D(87@, 2175.29, -2259.22, 3.0, 3.0, False)
goto_if_false @DRUGS3_4453
TIMERB = 0
142@ = 1

:DRUGS3_4453
if 
  142@ == 1
goto_if_false @DRUGS3_4583
if 
  not Char.IsDead(87@)
goto_if_false @DRUGS3_4583
if 
  Char.LocateStoppedOnFoot2D(87@, 2175.29, -2259.22, 3.0, 3.0, False)
goto_if_false @DRUGS3_4583
if 
  TIMERB > 1000
goto_if_false @DRUGS3_4583
Task.AchieveHeading(87@, 308.1)
Audio.ReportMissionAudioEventAtObject(50@, 1035)
TIMERB = 0
159@ = 1
142@ = 2

:DRUGS3_4583
if 
  159@ == 1
goto_if_false @DRUGS3_4686
if 
  not Char.IsDead(87@)
goto_if_false @DRUGS3_4686
77@ = Char.GetScriptTaskStatus(87@, 1492)
if or
  is_int_lvar_equal_to_constant 77@ == 7
  TIMERB > 1000
goto_if_false @DRUGS3_4686
Task.GoStraightToCoord(87@, 2179.523, -2256.364, 14.81, MoveState.Run, 5000)
159@ = 2

:DRUGS3_4686
if 
  142@ == 2
goto_if_false @DRUGS3_4799
if 
  not Char.IsDead(87@)
goto_if_false @DRUGS3_4799
if 
  Object.DoesExist(50@)
goto_if_false @DRUGS3_4799
if 
  Object.Slide(50@, 2178.073, -2254.384, 19.7, 0.0, 0.0, 0.15, False)
goto_if_false @DRUGS3_4799
Audio.ReportMissionAudioEventAtObject(50@, 1036)
142@ = 3

:DRUGS3_4799
if 
  142@ == 3
goto_if_false @DRUGS3_4903
if 
  not Char.IsDead(87@)
goto_if_false @DRUGS3_4903
if 
  Char.LocateOnFoot2D(87@, 2179.522, -2256.364, 1.0, 1.0, False)
goto_if_false @DRUGS3_4903
Task.GoStraightToCoord(87@, 2173.5, -2250.35, 14.81, MoveState.Run, 5000)
142@ = 4

:DRUGS3_4903
if 
  142@ == 4
goto_if_false @DRUGS3_5015
if 
  not Char.IsDead(87@)
goto_if_false @DRUGS3_5015
if 
  Char.LocateOnFoot2D(87@, 2174.31, -2251.09, 1.0, 1.0, False)
goto_if_false @DRUGS3_5015
Task.GoStraightToCoord(87@, 2168.66, -2254.904, 14.59, MoveState.Run, 5000)
Audio.ReportMissionAudioEventAtObject(50@, 1035)
142@ = 5

:DRUGS3_5015
if 
  142@ == 5
goto_if_false @DRUGS3_5112
if 
  Object.DoesExist(50@)
goto_if_false @DRUGS3_5112
if 
  Object.Slide(50@, 2178.073, -2254.384, 15.9, 0.0, 0.0, 0.15, False)
goto_if_false @DRUGS3_5112
Audio.ReportMissionAudioEventAtObject(50@, 1036)
142@ = 6

:DRUGS3_5112
goto @DRUGS3_4345

:DRUGS3_5119
141@ = 7

:DRUGS3_5126
if 
  141@ == 7
goto_if_false @DRUGS3_6312

:DRUGS3_5144
skip_cutscene_end 
Camera.DoFade(500, Fade.Out)

:DRUGS3_5153
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS3_5177
wait 0
goto @DRUGS3_5153

:DRUGS3_5177
Audio.ReportMissionAudioEventAtObject(50@, 1036)
159@ = 0
Car.StopPlayback(54@)
Car.StopPlayback(55@)
Car.StopPlayback(56@)
Car.StopPlayback(57@)
Object.Delete(50@)
Object.Delete(42@)
Object.Delete(43@)
Object.Delete(44@)
Object.Delete(45@)
Object.Delete(46@)
Object.Delete(47@)
Object.Delete(48@)
Object.Delete(49@)
Object.Delete(34@)
Object.Delete(35@)
Object.Delete(36@)
Object.Delete(37@)
Object.Delete(38@)
Object.Delete(39@)
Object.Delete(40@)
Object.Delete(41@)
Car.Delete(54@)
Car.Delete(55@)
Car.Delete(56@)
Car.Delete(57@)
Car.Delete(60@)
Car.Delete(61@)
Char.Delete(62@)
Char.Delete(63@)
Object.Delete(69@)
Object.Delete(70@)
Object.Delete(71@)
Object.Delete(72@)
Char.Delete(83@)
Char.Delete(84@)
Char.Delete(85@)
Char.Delete(86@)
Char.Delete(87@)
World.ClearArea(2192.925, -2231.824, 100.0, 100.0, False)
34@ = Object.Create(#IMCMPTRKDRL_LAS, 2192.925, -2231.824, 14.205)
35@ = Object.Create(#IMCMPTRKDRR_LAS, 2195.072, -2229.589, 14.205)
Object.SetHeading(34@, 315.0)
Object.SetHeading(35@, 315.0)
36@ = Object.Create(#IMCMPTRKDRL_LAS, 2200.184, -2224.419, 14.205)
37@ = Object.Create(#IMCMPTRKDRR_LAS, 2202.432, -2222.266, 14.205)
Object.SetHeading(36@, 315.0)
Object.SetHeading(37@, 315.0)
38@ = Object.Create(#IMCMPTRKDRL_LAS, 2207.766, -2217.281, 14.205)
39@ = Object.Create(#IMCMPTRKDRR_LAS, 2210.014, -2215.058, 14.205)
Object.SetHeading(38@, 315.0)
Object.SetHeading(39@, 315.0)
40@ = Object.Create(#IMCMPTRKDRL_LAS, 2215.096, -2210.761, 14.205)
41@ = Object.Create(#IMCMPTRKDRR_LAS, 2217.344, -2208.537, 14.205)
Object.SetHeading(40@, 315.0)
Object.SetHeading(41@, 315.0)
50@ = Object.CreateNoOffset(#IMCOMPMOVEDR1_LAS, 2178.073, -2254.384, 15.9)
Object.SetHeading(50@, 224.0)
60@ = Car.Create(530, 2176.89, -2291.75, 12.25)
Car.SetHeading(60@, 321.59)
62@ = Char.CreateInsideCar(60@, PedType.Mission1, 50)
Char.GiveWeapon(62@, WeaponType.Pistol, 9999)
Char.SetAccuracy(62@, 30)
Car.SetStraightLineDistance(60@, 150)
Char.SetDecisionMaker(62@, 52@)
Car.SetHealth(60@, 600)
Car.SetOnlyDamagedByPlayer(60@, True)
61@ = Car.Create(530, 2210.81, -2253.72, 12.598)
Car.SetHeading(61@, 71.09)
63@ = Char.CreateInsideCar(61@, PedType.Mission1, 50)
Char.GiveWeapon(63@, WeaponType.Pistol, 9999)
Char.SetAccuracy(63@, 30)
Car.SetStraightLineDistance(61@, 150)
Char.SetDecisionMaker(63@, 52@)
Car.SetOnlyDamagedByPlayer(61@, True)
Car.SetHealth(61@, 600)
69@ = Object.Create(#BARREL4, 2179.18, -2270.92, -14.0)
70@ = Object.Create(#BARREL4, 2179.18, -2270.92, -10.0)
Object.SetOnlyDamagedByPlayer(69@, True)
Object.SetOnlyDamagedByPlayer(70@, True)
Object.AttachToCar(69@, 61@, 0.5, 0.3, 0.3, 0.0, 0.0, 0.0)
Object.AttachToCar(70@, 61@, -0.5, 0.3, 0.3, 0.0, 0.0, 0.0)
133@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2186.507, -2244.993, 15.81)
134@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2146.559, -2244.46, 13.58)
135@ = Pickup.Create(#HEALTH, PickupType.Once, 2158.82, -2232.747, 13.59)
Streaming.RequestModel(102)
Streaming.RequestModel(#IMY_BBOX)
Streaming.RequestAnimation("SWAT")
Streaming.RequestAnimation("DODGE")
Streaming.RequestCarRecording(347)
Streaming.LoadSpecialCharacter(1, 'ANDRE')
Streaming.LoadAllModelsNow

:DRUGS3_6144
if or
  not Streaming.HasModelLoaded(102)
  not Streaming.HasAnimationLoaded("SWAT")
  not Streaming.HasModelLoaded(#IMY_BBOX)
  not Streaming.HasCarRecordingBeenLoaded(347)
goto_if_false @DRUGS3_6188
wait 0
goto @DRUGS3_6144

:DRUGS3_6188
if or
  not Streaming.HasAnimationLoaded("DODGE")
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @DRUGS3_6223
wait 0
goto @DRUGS3_6188

:DRUGS3_6223
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Text.ClearPrints
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Blip.Remove(137@)
137@ = Blip.AddForCoord(2178.38, -2254.89, 13.81)
Camera.DoFade(500, Fade.In)
111@ = Object.CreateNoOffset(#IMY_LA_DOOR, 2118.088, -2274.635, 20.867)
Object.SetHeading(111@, 225.0)
141@ = 8

:DRUGS3_6312
if 
  141@ == 8
goto_if_false @DRUGS3_9925
if 
  149@ == 0
goto_if_false @DRUGS3_6434
if 
  Object.DoesExist(51@)
goto_if_false @DRUGS3_6434
if 
  not Object.HasBeenDamaged(51@)
goto_if_false @DRUGS3_6434
if 
  Char.LocateAnyMeansObject3D($scplayer, 51@, 15.0, 15.0, 4.0, False)
goto_if_false @DRUGS3_6434
Text.PrintHelp('CSH3_7')
149@ = 1

:DRUGS3_6434
if 
  149@ == 1
goto_if_false @DRUGS3_6538
if 
  Object.DoesExist(51@)
goto_if_false @DRUGS3_6538
if 
  not Object.HasBeenDamaged(51@)
goto_if_false @DRUGS3_6538
if 
  Char.LocateAnyMeansObject3D($scplayer, 51@, 5.0, 5.0, 4.0, False)
goto_if_false @DRUGS3_6538
Text.PrintHelp('CSH3_7')
149@ = 2

:DRUGS3_6538
if 
  149@ == 2
goto_if_false @DRUGS3_6631
if 
  Object.DoesExist(51@)
goto_if_false @DRUGS3_6631
if 
  not Object.HasBeenDamaged(51@)
goto_if_false @DRUGS3_6631
if 
  not Char.LocateAnyMeansObject3D($scplayer, 51@, 5.0, 5.0, 4.0, False)
goto_if_false @DRUGS3_6631
149@ = 1

:DRUGS3_6631
if 
  Object.DoesExist(51@)
goto_if_false @DRUGS3_6672
if 
  Object.HasBeenDamaged(51@)
goto_if_false @DRUGS3_6672
Text.ClearPrints
141@ = 9

:DRUGS3_6672
if 
  147@ == 0
goto_if_false @DRUGS3_9007
if 
  144@ == 0
goto_if_false @DRUGS3_6783
if 
  145@ == 0
goto_if_false @DRUGS3_6783
if 
  Char.IsInAngledArea2D($scplayer, 2198.686, -2180.832, 2116.212, -2263.317, 82.0, False)
goto_if_false @DRUGS3_6783
144@ = 1
145@ = 1

:DRUGS3_6783
if 
  Char.IsInAngledArea2D($scplayer, 2172.36, -2207.176, 2116.212, -2263.317, 82.0, False)
goto_if_false @DRUGS3_6849
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRUGS3_6849
147@ = 1

:DRUGS3_6849
if 
  Char.IsInAngledArea2D($scplayer, 2198.686, -2180.832, 2116.212, -2263.317, 82.0, False)
goto_if_false @DRUGS3_6938
if 
  Char.IsShooting($scplayer)
goto_if_false @DRUGS3_6915
147@ = 1

:DRUGS3_6915
if 
  Player.IsTargetingAnything($player1)
goto_if_false @DRUGS3_6938
147@ = 1

:DRUGS3_6938
if 
  Char.DoesExist(62@)
goto_if_false @DRUGS3_6980
if 
  Char.HasBeenDamagedByChar(62@, $scplayer)
goto_if_false @DRUGS3_6980
147@ = 1

:DRUGS3_6980
if 
  Char.DoesExist(63@)
goto_if_false @DRUGS3_7022
if 
  Char.HasBeenDamagedByChar(62@, $scplayer)
goto_if_false @DRUGS3_7022
147@ = 1

:DRUGS3_7022
if 
  Char.DoesExist(64@)
goto_if_false @DRUGS3_7064
if 
  Char.HasBeenDamagedByChar(64@, $scplayer)
goto_if_false @DRUGS3_7064
147@ = 1

:DRUGS3_7064
if 
  Char.DoesExist(65@)
goto_if_false @DRUGS3_7106
if 
  Char.HasBeenDamagedByChar(65@, $scplayer)
goto_if_false @DRUGS3_7106
147@ = 1

:DRUGS3_7106
if 
  Char.DoesExist(66@)
goto_if_false @DRUGS3_7148
if 
  Char.HasBeenDamagedByChar(66@, $scplayer)
goto_if_false @DRUGS3_7148
147@ = 1

:DRUGS3_7148
if 
  Char.DoesExist(67@)
goto_if_false @DRUGS3_7190
if 
  Char.HasBeenDamagedByChar(67@, $scplayer)
goto_if_false @DRUGS3_7190
147@ = 1

:DRUGS3_7190
if 
  Char.DoesExist(68@)
goto_if_false @DRUGS3_7232
if 
  Char.HasBeenDamagedByChar(68@, $scplayer)
goto_if_false @DRUGS3_7232
147@ = 1

:DRUGS3_7232
if 
  145@ == 1
goto_if_false @DRUGS3_7350
if 
  not Char.IsDead(66@)
goto_if_false @DRUGS3_7350
if 
  Char.IsInAngledArea2D($scplayer, 2198.686, -2180.832, 2116.212, -2263.317, 82.0, False)
goto_if_false @DRUGS3_7350
Task.GotoCharOffset(66@, $scplayer, -1, 1.5, 0.0)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 18001)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 18003)
145@ = 2

:DRUGS3_7350
if 
  145@ == 2
goto_if_false @DRUGS3_7436
if 
  not Char.IsDead(66@)
goto_if_false @DRUGS3_7436
if 
  Char.LocateAnyMeansChar2D(66@, $scplayer, 5.0, 5.0, False)
goto_if_false @DRUGS3_7436
Audio.AttachMissionAudioToChar(MissionAudioSlot.Slot1, 66@)
Audio.AttachMissionAudioToChar(MissionAudioSlot.Slot2, 66@)
145@ = 3

:DRUGS3_7436
if 
  145@ == 3
goto_if_false @DRUGS3_7512
if 
  not Char.IsDead(66@)
goto_if_false @DRUGS3_7512
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS3_7512
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('CRA3_EA', 3000, 1)
145@ = 4

:DRUGS3_7512
if 
  145@ == 4
goto_if_false @DRUGS3_7609
if 
  not Char.IsDead(66@)
goto_if_false @DRUGS3_7609
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS3_7609
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS3_7609
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('CRA3_EC', 3000, 1)
145@ = 5

:DRUGS3_7609
if 
  145@ == 5
goto_if_false @DRUGS3_7658
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS3_7658
Text.ClearPrints
147@ = 1
145@ = 6

:DRUGS3_7658
if 
  144@ == 1
goto_if_false @DRUGS3_7784
if 
  not Car.IsDead(61@)
goto_if_false @DRUGS3_7784
if 
  not Char.IsDead(63@)
goto_if_false @DRUGS3_7784
if 
  Char.IsInCar(63@, 61@)
goto_if_false @DRUGS3_7784
if 
  Car.IsOnScreen(61@)
goto_if_false @DRUGS3_7784
Task.CarDriveToCoord(63@, 61@, 2195.84, -2251.522, 12.598, 5.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
144@ = 2

:DRUGS3_7784
if 
  144@ == 2
goto_if_false @DRUGS3_7965
if 
  not Char.IsDead(63@)
goto_if_false @DRUGS3_7965
if 
  not Car.IsDead(61@)
goto_if_false @DRUGS3_7965
if 
  Char.IsInCar(63@, 61@)
goto_if_false @DRUGS3_7965
if 
  Car.LocateStopped2D(61@, 2195.84, -2251.522, 3.0, 3.0, False)
goto_if_false @DRUGS3_7965
if 
  not Char.IsDead(63@)
goto_if_false @DRUGS3_7965
if 
  not Char.IsDead(65@)
goto_if_false @DRUGS3_7958
Task.LookAtChar(63@, 65@, 30000)
Task.GoStraightToCoord(65@, 2197.896, -2249.251, 12.59, MoveState.Walk, -1)

:DRUGS3_7958
144@ = 3

:DRUGS3_7965
if 
  144@ == 3
goto_if_false @DRUGS3_8097
if 
  not Char.IsDead(63@)
goto_if_false @DRUGS3_8097
if 
  Char.IsSittingInAnyCar(63@)
goto_if_false @DRUGS3_8097
if 
  not Char.IsDead(65@)
goto_if_false @DRUGS3_8097
if 
  Char.LocateStoppedOnFoot2D(65@, 2197.896, -2249.251, 3.0, 3.0, False)
goto_if_false @DRUGS3_8097
Task.TurnCharToFaceChar(65@, 63@)
Task.LookAtChar(63@, 65@, 60000)
144@ = 4

:DRUGS3_8097
if 
  144@ == 4
goto_if_false @DRUGS3_8244
if 
  not Char.IsDead(63@)
goto_if_false @DRUGS3_8244
if 
  Char.IsSittingInAnyCar(63@)
goto_if_false @DRUGS3_8244
if 
  not Char.IsDead(65@)
goto_if_false @DRUGS3_8244
if 
  Char.LocateStoppedOnFoot2D(65@, 2197.896, -2249.251, 3.0, 3.0, False)
goto_if_false @DRUGS3_8244
Task.PlayAnim(65@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
144@ = 5

:DRUGS3_8244
if 
  143@ == 0
goto_if_false @DRUGS3_8320
if 
  not Car.IsDead(60@)
goto_if_false @DRUGS3_8320
if 
  not Char.IsDead(62@)
goto_if_false @DRUGS3_8320
if 
  Char.IsSittingInCar(62@, 60@)
goto_if_false @DRUGS3_8320
143@ = 1

:DRUGS3_8320
if 
  143@ == 1
goto_if_false @DRUGS3_8563
if 
  not Car.IsDead(60@)
goto_if_false @DRUGS3_8563
if 
  not Char.IsDead(62@)
goto_if_false @DRUGS3_8563
if 
  Char.IsSittingInCar(62@, 60@)
goto_if_false @DRUGS3_8563
if 
  Streaming.HasCarRecordingBeenLoaded(347)
goto_if_false @DRUGS3_8563
Car.StartPlaybackLooped(60@, 347)
71@ = Object.Create(#BARREL4, 2179.18, -2270.92, -14.0)
72@ = Object.Create(#BARREL4, 2179.18, -2270.92, -10.0)
Object.AttachToCar(71@, 60@, 0.5, 0.3, 0.3, 0.0, 0.0, 0.0)
Object.AttachToCar(72@, 60@, -0.5, 0.3, 0.3, 0.0, 0.0, 0.0)
Object.SetOnlyDamagedByPlayer(71@, True)
Object.SetOnlyDamagedByPlayer(72@, True)
146@ = 1
143@ = 2

:DRUGS3_8563
if 
  143@ == 2
goto_if_false @DRUGS3_8662
if 
  not Car.IsDead(60@)
goto_if_false @DRUGS3_8662
if 
  not Char.IsDead(62@)
goto_if_false @DRUGS3_8662
if 
  Char.IsSittingInCar(62@, 60@)
goto_if_false @DRUGS3_8662
if 
  not Car.IsPlaybackGoingOn(60@)
goto_if_false @DRUGS3_8662
TIMERA = 0
143@ = 3

:DRUGS3_8662
if 
  143@ == 3
goto_if_false @DRUGS3_8757
if 
  not Car.IsDead(60@)
goto_if_false @DRUGS3_8757
if 
  not Char.IsDead(62@)
goto_if_false @DRUGS3_8757
if 
  Char.IsInCar(62@, 60@)
goto_if_false @DRUGS3_8757
if 
  TIMERA > 500
goto_if_false @DRUGS3_8757
143@ = 0

:DRUGS3_8757
if 
  146@ == 1
goto_if_false @DRUGS3_8881
if 
  not Car.IsDead(60@)
goto_if_false @DRUGS3_8881
if 
  not Char.IsDead(62@)
goto_if_false @DRUGS3_8881
if 
  Char.IsSittingInCar(62@, 60@)
goto_if_false @DRUGS3_8881
if 
  Car.Locate2D(60@, 2179.18, -2270.92, 2.0, 2.0, False)
goto_if_false @DRUGS3_8881
Object.Delete(71@)
Object.Delete(72@)
146@ = 0

:DRUGS3_8881
if 
  4 > 143@
goto_if_false @DRUGS3_9007
if 
  not Car.IsDead(60@)
goto_if_false @DRUGS3_8995
if 
  not Char.IsDead(62@)
goto_if_false @DRUGS3_8976
if 
  Char.IsSittingInCar(62@, 60@)
goto_if_false @DRUGS3_8957
goto @DRUGS3_8969

:DRUGS3_8957
Car.StopPlayback(60@)
143@ = 4

:DRUGS3_8969
goto @DRUGS3_8988

:DRUGS3_8976
Car.StopPlayback(60@)
143@ = 4

:DRUGS3_8988
goto @DRUGS3_9007

:DRUGS3_8995
Car.StopPlayback(60@)
143@ = 4

:DRUGS3_9007
if 
  147@ == 1
goto_if_false @DRUGS3_9461
if 
  not Char.IsDead(67@)
goto_if_false @DRUGS3_9086
set_lvar_int_to_lvar_int 112@ = 67@
116@ = 2203.12
117@ = -2264.767
118@ = 14.0
gosub @DRUGS3_18833

:DRUGS3_9086
if 
  not Char.IsDead(68@)
goto_if_false @DRUGS3_9147
set_lvar_int_to_lvar_int 112@ = 68@
116@ = 2188.586
117@ = -2258.273
118@ = 14.0
gosub @DRUGS3_18706

:DRUGS3_9147
if 
  not Char.IsDead(65@)
goto_if_false @DRUGS3_9208
set_lvar_int_to_lvar_int 112@ = 65@
116@ = 2207.985
117@ = -2244.51
118@ = 14.0
gosub @DRUGS3_18833

:DRUGS3_9208
if 
  not Char.IsDead(66@)
goto_if_false @DRUGS3_9232
Task.KillCharOnFoot(66@, $scplayer)

:DRUGS3_9232
if 
  not Char.IsDead(64@)
goto_if_false @DRUGS3_9263
set_lvar_int_to_lvar_int 112@ = 64@
gosub @DRUGS3_18882

:DRUGS3_9263
if 
  not Car.IsDead(60@)
goto_if_false @DRUGS3_9361
if 
  not Char.IsDead(62@)
goto_if_false @DRUGS3_9361
if 
  Char.IsSittingInCar(62@, 60@)
goto_if_false @DRUGS3_9361
if 
  not Car.IsDead(60@)
goto_if_false @DRUGS3_9361
Car.StopPlayback(60@)
Task.CarMission(62@, 60@, -1, CarMission.RamPlayerFaraway, 6.0, DrivingMode.PloughThrough)
185@ = 1

:DRUGS3_9361
if 
  not Car.IsDead(61@)
goto_if_false @DRUGS3_9454
if 
  not Char.IsDead(63@)
goto_if_false @DRUGS3_9454
if 
  Char.IsSittingInCar(63@, 61@)
goto_if_false @DRUGS3_9454
if 
  not Car.IsDead(61@)
goto_if_false @DRUGS3_9454
Task.CarMission(63@, 61@, -1, CarMission.RamPlayerFaraway, 5.0, DrivingMode.PloughThrough)
186@ = 1

:DRUGS3_9454
147@ = 2

:DRUGS3_9461
if 
  185@ == 1
goto_if_false @DRUGS3_9569
if 
  not Car.IsDead(60@)
goto_if_false @DRUGS3_9569
if 
  not Char.IsDead(62@)
goto_if_false @DRUGS3_9569
if 
  Char.IsSittingInCar(62@, 60@)
goto_if_false @DRUGS3_9569
if 
  Char.IsTouchingChar(62@, $scplayer)
goto_if_false @DRUGS3_9569
Task.CarTempAction(62@, 60@, TempAction.Reverse, 2000)
185@ = 2

:DRUGS3_9569
if 
  185@ == 2
goto_if_false @DRUGS3_9693
if 
  not Car.IsDead(60@)
goto_if_false @DRUGS3_9693
if 
  not Char.IsDead(62@)
goto_if_false @DRUGS3_9693
if 
  Char.IsSittingInCar(62@, 60@)
goto_if_false @DRUGS3_9693
132@ = Char.GetScriptTaskStatus(62@, 1735)
if 
  is_int_lvar_equal_to_constant 132@ == 7
goto_if_false @DRUGS3_9693
Task.CarMission(62@, 60@, -1, CarMission.RamPlayerFaraway, 6.0, DrivingMode.PloughThrough)
185@ = 1

:DRUGS3_9693
if 
  186@ == 1
goto_if_false @DRUGS3_9801
if 
  not Car.IsDead(61@)
goto_if_false @DRUGS3_9801
if 
  not Char.IsDead(63@)
goto_if_false @DRUGS3_9801
if 
  Char.IsSittingInCar(63@, 61@)
goto_if_false @DRUGS3_9801
if 
  Char.IsTouchingChar(63@, $scplayer)
goto_if_false @DRUGS3_9801
Task.CarTempAction(63@, 61@, TempAction.Reverse, 2000)
186@ = 2

:DRUGS3_9801
if 
  186@ == 2
goto_if_false @DRUGS3_9925
if 
  not Car.IsDead(61@)
goto_if_false @DRUGS3_9925
if 
  not Char.IsDead(63@)
goto_if_false @DRUGS3_9925
if 
  Char.IsSittingInCar(63@, 61@)
goto_if_false @DRUGS3_9925
132@ = Char.GetScriptTaskStatus(63@, 1735)
if 
  is_int_lvar_equal_to_constant 132@ == 7
goto_if_false @DRUGS3_9925
Task.CarMission(63@, 61@, -1, CarMission.RamPlayerFaraway, 6.0, DrivingMode.PloughThrough)
186@ = 1

:DRUGS3_9925
if 
  141@ == 9
goto_if_false @DRUGS3_10758
if 
  150@ == 0
goto_if_false @DRUGS3_10758
Text.PrintNow('CSH3_13', 5000, 1)
Object.Delete(51@)
Streaming.MarkModelAsNoLongerNeeded(#SEC_KEYPAD)
Sound.AddOneOffSound(2181.127, -2251.999, 14.036, 65535)
add_continuous_sound 2181.127 {_p2} -2251.999 {_p3} 14.036 {_p4} 65535 {_p5} 76@
Blip.Remove(137@)
Game.SetMaxFireGenerations(0)
101@ = Char.Create(PedType.Special, 290, 2125.8, -2274.24, 19.67)
Char.SetHeading(101@, 221.579)
Char.SetDecisionMaker(101@, 52@)
Char.SetHealth(101@, 1000)
Char.SetMaxHealth(101@, 1000)
Char.SetMoney(101@, 3000)
Char.SetSuffersCriticalHits(101@, False)
Char.SetUsesUpperbodyDamageAnimsOnly(101@, True)
138@ = Blip.AddForChar(101@)
109@ = Char.Create(PedType.Mission1, 102, 2129.217, -2281.78, 19.6719)
Char.SetHeading(109@, 314.7061)
Char.SetDecisionMaker(109@, 52@)
Char.GiveWeapon(109@, WeaponType.Pistol, 99999)
Char.SetWeaponSkill(109@, 2)
Char.SetAccuracy(109@, 20)
Char.SetHealth(109@, 50)
110@ = Char.Create(PedType.Mission1, 102, 2124.154, -2277.243, 19.6719)
Char.SetHeading(110@, 241.1202)
Char.SetDecisionMaker(110@, 52@)
Char.GiveWeapon(110@, WeaponType.Pistol, 99999)
Char.SetWeaponSkill(110@, 2)
Char.SetAccuracy(110@, 20)
Char.SetHealth(110@, 50)
179@ = 1
83@ = Char.Create(PedType.Mission1, 50, 2172.73, -2249.83, 12.6)
Char.SetHeading(83@, 227.0)
Char.SetDecisionMaker(83@, 52@)
Char.GiveWeapon(83@, WeaponType.Pistol, 99999)
Char.SetAccuracy(83@, 20)
Char.SetHealth(83@, 30)
84@ = Char.Create(PedType.Mission1, 50, 2168.42, -2252.714, 12.59)
Char.SetHeading(84@, 250.942)
Char.SetDecisionMaker(84@, 52@)
Char.GiveWeapon(84@, WeaponType.Pistol, 99999)
Char.SetAccuracy(84@, 20)
Char.SetShootRate(84@, 30)
Char.SetHealth(84@, 20)
85@ = Char.Create(PedType.Mission1, 50, 2174.66, -2248.6, 12.6)
Char.SetHeading(85@, 227.0)
Char.SetDecisionMaker(85@, 52@)
Char.GiveWeapon(85@, WeaponType.Mp5, 99999)
Char.SetAllowedToDuck(85@, False)
Char.SetAccuracy(85@, 20)
87@ = Char.Create(PedType.Mission1, 50, 2163.072, -2246.027, 12.59)
Char.SetHeading(87@, 224.58)
Char.SetDecisionMaker(87@, 52@)
Char.GiveWeapon(87@, WeaponType.Mp5, 99999)
Char.SetAccuracy(87@, 20)
88@ = Char.Create(PedType.Mission1, 50, 2158.03, -2233.23, 12.59)
Char.SetHeading(88@, 230.37)
Char.SetDecisionMaker(88@, 52@)
Char.GiveWeapon(88@, WeaponType.Pistol, 99999)
Char.SetAccuracy(88@, 20)
if 
  155@ == 0
goto_if_false @DRUGS3_10671
if 
  not Char.IsDead(83@)
goto_if_false @DRUGS3_10671
Task.KillCharOnFoot(83@, $scplayer)
155@ = 1

:DRUGS3_10671
if 
  157@ == 0
goto_if_false @DRUGS3_10720
if 
  not Char.IsDead(85@)
goto_if_false @DRUGS3_10720
Task.KillCharOnFoot(85@, $scplayer)
157@ = 1

:DRUGS3_10720
if 
  Object.DoesExist(50@)
goto_if_false @DRUGS3_10744
Audio.ReportMissionAudioEventAtObject(50@, 1035)

:DRUGS3_10744
150@ = 1
141@ = 10

:DRUGS3_10758
if 
  150@ == 1
goto_if_false @DRUGS3_10855
if 
  Object.DoesExist(50@)
goto_if_false @DRUGS3_10855
if 
  Object.Slide(50@, 2178.073, -2254.384, 19.7, 0.0, 0.0, 0.1, False)
goto_if_false @DRUGS3_10855
Audio.ReportMissionAudioEventAtObject(50@, 1036)
150@ = 2

:DRUGS3_10855
if 
  141@ == 10
goto_if_false @DRUGS3_11049
if 
  Char.IsInAngledArea2D($scplayer, 2167.955, -2253.054, 2175.023, -2245.327, -11.5, False)
goto_if_false @DRUGS3_10923
141@ = 11

:DRUGS3_10923
if 
  Char.DoesExist(83@)
goto_if_false @DRUGS3_10965
if 
  Char.HasBeenDamagedByChar(83@, $scplayer)
goto_if_false @DRUGS3_10965
141@ = 11

:DRUGS3_10965
if 
  Char.DoesExist(84@)
goto_if_false @DRUGS3_11007
if 
  Char.HasBeenDamagedByChar(84@, $scplayer)
goto_if_false @DRUGS3_11007
141@ = 11

:DRUGS3_11007
if 
  Char.DoesExist(85@)
goto_if_false @DRUGS3_11049
if 
  Char.HasBeenDamagedByChar(85@, $scplayer)
goto_if_false @DRUGS3_11049
141@ = 11

:DRUGS3_11049
if 
  141@ == 11
goto_if_false @DRUGS3_18446
if 
  178@ == 0
goto_if_false @DRUGS3_11176
if 
  TIMERA > 0
goto_if_false @DRUGS3_11176
if 
  Char.IsDead(83@)
goto_if_false @DRUGS3_11176
if 
  Char.IsDead(85@)
goto_if_false @DRUGS3_11176
if 
  Char.IsDead(87@)
goto_if_false @DRUGS3_11176
Text.PrintHelp('CSH3_10')
TIMERA = 0
178@ = 1

:DRUGS3_11176
if 
  178@ == 1
goto_if_false @DRUGS3_11238
if 
  TIMERA > 8000
goto_if_false @DRUGS3_11238
Text.PrintHelp('CSH3_11')
TIMERA = 0
178@ = 2

:DRUGS3_11238
if 
  178@ == 2
goto_if_false @DRUGS3_11300
if 
  TIMERA > 8000
goto_if_false @DRUGS3_11300
Text.PrintHelp('CSH3_12')
TIMERA = 0
178@ = 3

:DRUGS3_11300
if 
  178@ == 3
goto_if_false @DRUGS3_11362
if 
  TIMERA > 8000
goto_if_false @DRUGS3_11362
Text.PrintHelp('CSH3_52')
TIMERA = 0
178@ = 4

:DRUGS3_11362
if 
  178@ == 4
goto_if_false @DRUGS3_11417
if 
  TIMERA > 8000
goto_if_false @DRUGS3_11417
Text.PrintHelp('CSH3_51')
178@ = 5

:DRUGS3_11417
if 
  151@ == 0
goto_if_false @DRUGS3_11761
if 
  156@ == 0
goto_if_false @DRUGS3_11491
if 
  not Char.IsDead(84@)
goto_if_false @DRUGS3_11491
set_lvar_int_to_lvar_int 112@ = 84@
gosub @DRUGS3_18882
156@ = 1

:DRUGS3_11491
if 
  159@ == 0
goto_if_false @DRUGS3_11547
if 
  not Char.IsDead(87@)
goto_if_false @DRUGS3_11547
set_lvar_int_to_lvar_int 112@ = 87@
gosub @DRUGS3_19119
159@ = 1

:DRUGS3_11547
if 
  159@ == 1
goto_if_false @DRUGS3_11654
if 
  not Char.IsDead(87@)
goto_if_false @DRUGS3_11642
if or
  Char.HasBeenDamagedByChar(87@, $scplayer)
  Char.LocateAnyMeansChar2D(87@, $scplayer, 3.0, 3.0, False)
goto_if_false @DRUGS3_11635
Task.KillCharOnFoot(87@, $scplayer)
159@ = 2

:DRUGS3_11635
goto @DRUGS3_11654

:DRUGS3_11642
Char.MarkAsNoLongerNeeded(87@)
159@ = 2

:DRUGS3_11654
if 
  160@ == 0
goto_if_false @DRUGS3_11761
if 
  not Char.IsDead(88@)
goto_if_false @DRUGS3_11761
if or
  Char.IsInAngledArea2D($scplayer, 2161.927, -2243.252, 2168.71, -2237.79, 10.0, False)
  Char.HasBeenDamagedByChar(88@, $scplayer)
goto_if_false @DRUGS3_11761
set_lvar_int_to_lvar_int 112@ = 88@
gosub @DRUGS3_19036
160@ = 1

:DRUGS3_11761
if 
  152@ == 0
goto_if_false @DRUGS3_12231
if 
  Char.IsInAngledArea2D($scplayer, 2160.659, -2244.409, 2168.71, -2237.79, 12.0, False)
goto_if_false @DRUGS3_12231
Streaming.MarkModelAsNoLongerNeeded(414)
Streaming.MarkModelAsNoLongerNeeded(#SEC_KEYPAD)
Streaming.MarkModelAsNoLongerNeeded(#KMB_RAMP)
Car.MarkAsNoLongerNeeded(60@)
Car.MarkAsNoLongerNeeded(61@)
Char.MarkAsNoLongerNeeded(62@)
Char.MarkAsNoLongerNeeded(63@)
Object.MarkAsNoLongerNeeded(69@)
Object.MarkAsNoLongerNeeded(70@)
Object.MarkAsNoLongerNeeded(71@)
Object.MarkAsNoLongerNeeded(72@)
Object.MarkAsNoLongerNeeded(73@)
Char.MarkAsNoLongerNeeded(62@)
Char.MarkAsNoLongerNeeded(63@)
Char.MarkAsNoLongerNeeded(64@)
Char.MarkAsNoLongerNeeded(65@)
Char.MarkAsNoLongerNeeded(66@)
Char.MarkAsNoLongerNeeded(67@)
Char.MarkAsNoLongerNeeded(68@)
Car.MarkAsNoLongerNeeded(58@)
Car.MarkAsNoLongerNeeded(59@)
89@ = Char.Create(PedType.Mission1, 50, 2149.249, -2243.958, 12.6)
Char.SetHeading(89@, 312.4132)
Char.SetDecisionMaker(89@, 52@)
Char.GiveWeapon(89@, WeaponType.Mp5, 99999)
Char.SetAccuracy(89@, 20)
Char.SetHealth(89@, 50)
90@ = Char.Create(PedType.Mission1, 50, 2156.04, -2250.73, 12.59)
Char.SetHeading(90@, 46.763)
Char.SetDecisionMaker(90@, 52@)
Char.GiveWeapon(90@, WeaponType.Pistol, 99999)
Char.SetAccuracy(90@, 20)
69@ = Object.Create(#BARREL4, 2149.725, -2249.85, 12.35)
70@ = Object.Create(#BARREL4, 2162.399, -2259.433, 12.35)
71@ = Object.Create(#BARREL4, 2152.317, -2270.389, 12.35)
72@ = Object.Create(#BARREL4, 2139.31, -2270.019, 14.7)
Object.SetOnlyDamagedByPlayer(69@, True)
Object.SetOnlyDamagedByPlayer(70@, True)
Object.SetOnlyDamagedByPlayer(71@, True)
Object.SetOnlyDamagedByPlayer(72@, True)
102@ = Object.Create(#IMY_BBOX, 2140.91, -2260.2, 18.1)
Object.SetHeading(102@, 317.068)
Object.SetHealth(102@, 1000)
Object.SetOnlyDamagedByPlayer(102@, True)
152@ = 1

:DRUGS3_12231
if 
  152@ == 1
goto_if_false @DRUGS3_12498
if 
  161@ == 0
goto_if_false @DRUGS3_12305
if 
  not Char.IsDead(89@)
goto_if_false @DRUGS3_12305
set_lvar_int_to_lvar_int 112@ = 89@
gosub @DRUGS3_19119
161@ = 1

:DRUGS3_12305
if 
  161@ == 1
goto_if_false @DRUGS3_12412
if 
  not Char.IsDead(89@)
goto_if_false @DRUGS3_12400
if or
  Char.HasBeenDamagedByChar(89@, $scplayer)
  Char.LocateAnyMeansChar2D(89@, $scplayer, 3.0, 3.0, False)
goto_if_false @DRUGS3_12393
Task.KillCharOnFoot(89@, $scplayer)
161@ = 2

:DRUGS3_12393
goto @DRUGS3_12412

:DRUGS3_12400
Char.MarkAsNoLongerNeeded(89@)
161@ = 2

:DRUGS3_12412
if 
  162@ == 0
goto_if_false @DRUGS3_12498
if 
  not Char.IsDead(90@)
goto_if_false @DRUGS3_12498
set_lvar_int_to_lvar_int 112@ = 90@
116@ = 2152.019
117@ = -2246.949
118@ = 12.595
gosub @DRUGS3_18964
162@ = 1

:DRUGS3_12498
if 
  153@ == 0
goto_if_false @DRUGS3_13164
if 
  Char.IsInAngledArea2D($scplayer, 2157.47, -2246.72, 2152.737, -2251.857, -10.0, False)
goto_if_false @DRUGS3_13164
92@ = Char.Create(PedType.Mission1, 50, 2164.943, -2259.275, 12.594)
Char.SetHeading(92@, 46.776)
Char.SetDecisionMaker(92@, 52@)
Char.GiveWeapon(92@, WeaponType.Mp5, 99999)
Char.SetAccuracy(92@, 30)
Char.SetShootRate(92@, 20)
93@ = Char.Create(PedType.Mission1, 50, 2159.296, -2256.66, 12.59)
Char.SetHeading(93@, 46.776)
Char.SetDecisionMaker(93@, 52@)
Char.GiveWeapon(93@, WeaponType.Mp5, 99999)
Char.SetAccuracy(93@, 20)
Char.SetAllowedToDuck(93@, False)
Char.SetShootRate(93@, 20)
94@ = Char.Create(PedType.Mission1, 50, 2137.578, -2262.216, 12.59)
Char.SetHeading(94@, 211.9)
Char.SetDecisionMaker(94@, 52@)
Char.GiveWeapon(94@, WeaponType.Mp5, 99999)
Char.SetAccuracy(94@, 10)
95@ = Char.Create(PedType.Mission1, 50, 2138.008, -2253.369, 12.59)
Char.SetHeading(95@, 139.993)
Char.SetDecisionMaker(95@, 52@)
Char.GiveWeapon(95@, WeaponType.Pistol, 99999)
Char.SetAccuracy(95@, 10)
96@ = Char.Create(PedType.Mission1, 50, 2151.545, -2279.607, 13.82)
Char.SetHeading(96@, 46.63)
Char.SetDecisionMaker(96@, 52@)
Char.GiveWeapon(96@, WeaponType.Mp5, 99999)
Char.SetAccuracy(96@, 10)
97@ = Char.Create(PedType.Mission1, 50, 2140.695, -2259.877, 12.5547)
Char.SetHeading(97@, 259.7427)
Char.SetDecisionMaker(97@, 52@)
Char.GiveWeapon(97@, WeaponType.Mp5, 99999)
Char.SetAccuracy(97@, 10)
Char.SetShootRate(97@, 20)
98@ = Char.Create(PedType.Mission1, 50, 2141.763, -2261.277, 12.5547)
Char.SetHeading(98@, 259.742)
Char.SetDecisionMaker(98@, 52@)
Char.GiveWeapon(98@, WeaponType.Mp5, 99999)
Char.SetAccuracy(98@, 10)
Char.SetShootRate(98@, 20)
99@ = Char.Create(PedType.Mission1, 102, 2131.561, -2279.424, 19.712)
Char.SetHeading(99@, 313.176)
Char.SetDecisionMaker(99@, 52@)
Char.GiveWeapon(99@, WeaponType.Pistol, 99999)
Char.SetAccuracy(99@, 10)
Char.SetShootRate(99@, 20)
100@ = Char.Create(PedType.Mission1, 102, 2128.952, -2282.271, 19.712)
Char.SetHeading(100@, 313.176)
Char.SetDecisionMaker(100@, 52@)
Char.GiveWeapon(100@, WeaponType.Pistol, 99999)
Char.SetAccuracy(100@, 10)
Char.SetShootRate(100@, 20)
153@ = 1

:DRUGS3_13164
if 
  153@ == 1
goto_if_false @DRUGS3_13294
if 
  164@ == 0
goto_if_false @DRUGS3_13238
if 
  not Char.IsDead(92@)
goto_if_false @DRUGS3_13238
set_lvar_int_to_lvar_int 112@ = 92@
gosub @DRUGS3_18882
164@ = 1

:DRUGS3_13238
if 
  165@ == 0
goto_if_false @DRUGS3_13294
if 
  not Char.IsDead(93@)
goto_if_false @DRUGS3_13294
set_lvar_int_to_lvar_int 112@ = 93@
gosub @DRUGS3_18882
165@ = 1

:DRUGS3_13294
if 
  154@ == 0
goto_if_false @DRUGS3_14045
if 
  Char.IsInAngledArea2D($scplayer, 2160.728, -2254.586, 2152.4, -2263.3, 10.0, False)
goto_if_false @DRUGS3_14045
if 
  166@ == 0
goto_if_false @DRUGS3_13464
if 
  Object.DoesExist(102@)
goto_if_false @DRUGS3_13389

:DRUGS3_13389
if 
  not Char.IsDead(94@)
goto_if_false @DRUGS3_13464
set_lvar_int_to_lvar_int 112@ = 94@
116@ = 2148.945
117@ = -2273.314
118@ = 13.595
Char.SetAllowedToDuck(94@, False)
gosub @DRUGS3_18706
166@ = 1

:DRUGS3_13464
if 
  167@ == 0
goto_if_false @DRUGS3_13587
if 
  not Char.IsDead(95@)
goto_if_false @DRUGS3_13587
set_lvar_int_to_lvar_int 112@ = 95@
116@ = 2133.613
117@ = -2258.067
118@ = 12.59
119@ = 2143.387
120@ = -2267.5
121@ = 13.595
Task.ToggleDuck(95@, True)
gosub @DRUGS3_18761
167@ = 1

:DRUGS3_13587
if 
  168@ == 0
goto_if_false @DRUGS3_13680
if 
  not Char.IsDead(96@)
goto_if_false @DRUGS3_13680
set_lvar_int_to_lvar_int 112@ = 96@
116@ = 2140.375
117@ = -2269.66
118@ = 13.59
Task.ToggleDuck(96@, True)
gosub @DRUGS3_18706
168@ = 1

:DRUGS3_13680
if 
  171@ == 0
goto_if_false @DRUGS3_13803
if 
  not Char.IsDead(99@)
goto_if_false @DRUGS3_13803
set_lvar_int_to_lvar_int 112@ = 99@
116@ = 2134.504
117@ = -2276.708
118@ = 19.712
119@ = 2130.845
120@ = -2272.55
121@ = 19.71
Char.SetAllowedToDuck(99@, False)
gosub @DRUGS3_18761
171@ = 1

:DRUGS3_13803
if 
  172@ == 0
goto_if_false @DRUGS3_13926
if 
  not Char.IsDead(100@)
goto_if_false @DRUGS3_13926
set_lvar_int_to_lvar_int 112@ = 100@
116@ = 2134.788
117@ = -2275.941
118@ = 19.712
119@ = 2139.879
120@ = -2270.926
121@ = 18.0
Char.SetAllowedToDuck(100@, False)
gosub @DRUGS3_18761
172@ = 1

:DRUGS3_13926
if 
  169@ == 0
goto_if_false @DRUGS3_13982
if 
  not Char.IsDead(97@)
goto_if_false @DRUGS3_13982
set_lvar_int_to_lvar_int 112@ = 97@
gosub @DRUGS3_18882
169@ = 1

:DRUGS3_13982
if 
  170@ == 0
goto_if_false @DRUGS3_14038
if 
  not Char.IsDead(98@)
goto_if_false @DRUGS3_14038
set_lvar_int_to_lvar_int 112@ = 98@
gosub @DRUGS3_18882
170@ = 1

:DRUGS3_14038
154@ = 1

:DRUGS3_14045
if 
  173@ == 0
goto_if_false @DRUGS3_14209
if 
  Char.IsInAngledArea3D($scplayer, 2136.48, -2266.78, 28.0, 2145.55, -2275.04, 18.0, -20.0, False)
goto_if_false @DRUGS3_14209
Streaming.MarkModelAsNoLongerNeeded(#IMCMPTRKDRL_LAS)
Streaming.MarkModelAsNoLongerNeeded(#IMCMPTRKDRR_LAS)
Streaming.MarkModelAsNoLongerNeeded(#IMCOMPMOVEDR1_LAS)
Text.PrintNow('CSH3_53', 7000, 1)
if 
  not Char.IsDead(109@)
goto_if_false @DRUGS3_14178
set_lvar_int_to_lvar_int 112@ = 109@
gosub @DRUGS3_18882

:DRUGS3_14178
if 
  not Char.IsDead(110@)
goto_if_false @DRUGS3_14202
Task.KillCharOnFoot(110@, $scplayer)

:DRUGS3_14202
173@ = 1

:DRUGS3_14209
if 
  179@ == 1
goto_if_false @DRUGS3_14250
if 
  Char.IsDead(101@)
goto_if_false @DRUGS3_14250
179@ = 2

:DRUGS3_14250
if 
  179@ == 2
goto_if_false @DRUGS3_14275
goto @DRUGS3_19361

:DRUGS3_14275
if 
  Char.IsDead(101@)
goto_if_false @DRUGS3_14312
if 
  Blip.DoesExist(138@)
goto_if_false @DRUGS3_14312
Blip.Remove(138@)

:DRUGS3_14312
if 
  174@ == 0
goto_if_false @DRUGS3_14467
if 
  Object.DoesExist(102@)
goto_if_false @DRUGS3_14467
103@ = Object.GetHealth(102@)
if 
  1000 > 103@
goto_if_false @DRUGS3_14467
Object.SetProofs(102@, True, True, True, True, True)
if 
  not Char.IsDead(98@)
goto_if_false @DRUGS3_14453
Char.SetHeading(98@, 200.025)
Task.PlayAnimNonInterruptable(98@, "CRUSH_JUMP", "DODGE", 1000.0, False, True, True, True, -1)

:DRUGS3_14453
TIMERB = 0
174@ = 1

:DRUGS3_14467
if 
  174@ == 1
goto_if_false @DRUGS3_14647
if 
  TIMERB > 1500
goto_if_false @DRUGS3_14647
if 
  Object.DoesExist(102@)
goto_if_false @DRUGS3_14647
Object.SetCoordinates(102@, 2140.91, -2260.2, 18.1)
Object.SetDynamic(102@, True)
Object.SetCollision(102@, True)
Object.AddToVelocity(102@, 0.0, 0.0, -2.0)
if 
  not Char.IsDead(97@)
goto_if_false @DRUGS3_14633
Char.SetCollision(97@, False)
Task.PlayAnimNonInterruptable(97@, "CRUSHED", "DODGE", 1000.0, False, True, True, True, -1)

:DRUGS3_14633
TIMERB = 0
174@ = 2

:DRUGS3_14647
if 
  174@ == 2
goto_if_false @DRUGS3_14742
if 
  TIMERB > 600
goto_if_false @DRUGS3_14742
if 
  not Char.IsDead(97@)
goto_if_false @DRUGS3_14712
Char.SetNeverTargeted(97@, True)
Char.RemoveElegantly(97@)

:DRUGS3_14712
if 
  not Char.IsDead(98@)
goto_if_false @DRUGS3_14735
Char.SetNeverTargeted(98@, True)

:DRUGS3_14735
174@ = 3

:DRUGS3_14742
if 
  155@ == 1
goto_if_false @DRUGS3_14788
if 
  Char.IsDead(83@)
goto_if_false @DRUGS3_14788
Char.MarkAsNoLongerNeeded(83@)
155@ = 2

:DRUGS3_14788
if 
  156@ == 1
goto_if_false @DRUGS3_14834
if 
  Char.IsDead(84@)
goto_if_false @DRUGS3_14834
Char.MarkAsNoLongerNeeded(84@)
156@ = 2

:DRUGS3_14834
if 
  157@ == 1
goto_if_false @DRUGS3_14880
if 
  Char.IsDead(85@)
goto_if_false @DRUGS3_14880
Char.MarkAsNoLongerNeeded(85@)
157@ = 2

:DRUGS3_14880
if 
  159@ > 0
goto_if_false @DRUGS3_14944
if 
  3 > 159@
goto_if_false @DRUGS3_14944
if 
  Char.IsDead(87@)
goto_if_false @DRUGS3_14944
Char.MarkAsNoLongerNeeded(87@)
159@ = 2

:DRUGS3_14944
if 
  160@ == 1
goto_if_false @DRUGS3_14990
if 
  Char.IsDead(88@)
goto_if_false @DRUGS3_14990
Char.MarkAsNoLongerNeeded(88@)
160@ = 2

:DRUGS3_14990
if 
  161@ > 0
goto_if_false @DRUGS3_15054
if 
  3 > 161@
goto_if_false @DRUGS3_15054
if 
  Char.IsDead(89@)
goto_if_false @DRUGS3_15054
Char.MarkAsNoLongerNeeded(89@)
161@ = 3

:DRUGS3_15054
if 
  162@ == 1
goto_if_false @DRUGS3_15100
if 
  Char.IsDead(90@)
goto_if_false @DRUGS3_15100
Char.MarkAsNoLongerNeeded(90@)
162@ = 2

:DRUGS3_15100
if 
  164@ == 1
goto_if_false @DRUGS3_15146
if 
  Char.IsDead(92@)
goto_if_false @DRUGS3_15146
Char.MarkAsNoLongerNeeded(92@)
164@ = 2

:DRUGS3_15146
if 
  165@ == 1
goto_if_false @DRUGS3_15192
if 
  Char.IsDead(93@)
goto_if_false @DRUGS3_15192
Char.MarkAsNoLongerNeeded(93@)
165@ = 2

:DRUGS3_15192
if 
  166@ == 1
goto_if_false @DRUGS3_15238
if 
  Char.IsDead(94@)
goto_if_false @DRUGS3_15238
Char.MarkAsNoLongerNeeded(94@)
166@ = 2

:DRUGS3_15238
if 
  167@ == 1
goto_if_false @DRUGS3_15284
if 
  Char.IsDead(95@)
goto_if_false @DRUGS3_15284
Char.MarkAsNoLongerNeeded(95@)
167@ = 2

:DRUGS3_15284
if 
  168@ == 1
goto_if_false @DRUGS3_15330
if 
  Char.IsDead(96@)
goto_if_false @DRUGS3_15330
Char.MarkAsNoLongerNeeded(96@)
168@ = 2

:DRUGS3_15330
if 
  171@ == 1
goto_if_false @DRUGS3_15376
if 
  Char.IsDead(99@)
goto_if_false @DRUGS3_15376
Char.MarkAsNoLongerNeeded(99@)
171@ = 2

:DRUGS3_15376
if 
  172@ == 1
goto_if_false @DRUGS3_15422
if 
  Char.IsDead(100@)
goto_if_false @DRUGS3_15422
Char.MarkAsNoLongerNeeded(100@)
172@ = 2

:DRUGS3_15422
if 
  173@ == 1
goto_if_false @DRUGS3_16461
if 
  Char.IsInAngledArea3D($scplayer, 2125.14, -2270.97, 27.0, 2121.09, -2275.33, 19.0, 14.0, False)
goto_if_false @DRUGS3_16461
Char.MarkAsNoLongerNeeded(83@)
Char.MarkAsNoLongerNeeded(84@)
Char.MarkAsNoLongerNeeded(85@)
Char.MarkAsNoLongerNeeded(86@)
Char.MarkAsNoLongerNeeded(87@)
Char.MarkAsNoLongerNeeded(88@)
Char.MarkAsNoLongerNeeded(89@)
Char.MarkAsNoLongerNeeded(90@)
Char.RemoveElegantly(83@)
Char.RemoveElegantly(84@)
Char.RemoveElegantly(85@)
Char.RemoveElegantly(86@)
Char.RemoveElegantly(87@)
Char.RemoveElegantly(88@)
Char.RemoveElegantly(89@)
Char.RemoveElegantly(90@)
Car.Delete(54@)
Car.Delete(55@)
Car.Delete(60@)
World.ClearArea(2185.53, -2271.95, 50.0, 50.0, False)
Streaming.MarkModelAsNoLongerNeeded(102)
74@ = Object.Create(#BARREL4, 2170.366, -2337.439, 12.54)
Object.SetOnlyDamagedByPlayer(74@, True)
60@ = Car.Create(530, 2122.092, -2307.141, 12.5693)
Car.SetHeading(60@, 265.9861)
Car.SetCanBurstTires(60@, False)
54@ = Car.Create(429, 2190.07, -2269.8, 12.5693)
Car.SetHeading(54@, 308.99)
Car.SetHealth(54@, 1000)
55@ = Car.Create(461, 2175.75, -2280.57, 12.5693)
Car.SetHeading(55@, 315.41)
Car.SetCanBurstTires(55@, False)
136@ = Pickup.CreateWithAmmo(353, PickupType.Once, 250, 2175.614, -2282.959, 13.54)
83@ = Char.Create(PedType.Mission1, 50, 2132.698, -2303.37, 13.699)
Char.SetHeading(83@, 826.228)
Char.SetDecisionMaker(83@, 52@)
Char.GiveWeapon(83@, WeaponType.Mp5, 99999)
Char.SetAccuracy(83@, 30)
set_lvar_int_to_lvar_int 112@ = 83@
gosub @DRUGS3_18882
84@ = Char.Create(PedType.Mission1, 50, 2138.06, -2308.614, 19.7)
Char.SetHeading(84@, 60.478)
Char.SetDecisionMaker(84@, 52@)
Char.GiveWeapon(84@, WeaponType.Mp5, 99999)
Char.SetAccuracy(84@, 30)
set_lvar_int_to_lvar_int 112@ = 84@
gosub @DRUGS3_18926
85@ = Char.Create(PedType.Mission1, 50, 2144.007, -2295.194, 19.676)
Char.SetHeading(85@, 119.8487)
Char.SetDecisionMaker(85@, 52@)
Char.GiveWeapon(85@, WeaponType.Pistol, 99999)
Char.SetAllowedToDuck(85@, False)
Char.SetHealth(85@, 50)
Char.SetAccuracy(85@, 30)
set_lvar_int_to_lvar_int 112@ = 85@
gosub @DRUGS3_18926
86@ = Char.Create(PedType.Mission1, 50, 2131.56, -2313.6, 12.5719)
Char.SetHeading(86@, 265.9861)
Char.SetDecisionMaker(86@, 52@)
Char.GiveWeapon(86@, WeaponType.Mp5, 99999)
Char.SetAllowedToDuck(86@, False)
Char.SetAccuracy(86@, 30)
set_lvar_int_to_lvar_int 112@ = 86@
gosub @DRUGS3_18882
88@ = Char.Create(PedType.Mission1, 50, 2183.367, -2293.234, 12.5)
Char.SetHeading(88@, 148.671)
Char.SetDecisionMaker(88@, 52@)
Char.GiveWeapon(88@, WeaponType.Mp5, 99999)
Task.KillCharOnFoot(88@, $scplayer)
Char.SetHealth(88@, 50)
set_lvar_int_to_lvar_int 112@ = 88@
gosub @DRUGS3_18926
89@ = Char.Create(PedType.Mission1, 50, 2165.737, -2324.289, 17.515)
Char.SetHeading(89@, 224.6632)
Char.SetDecisionMaker(89@, 52@)
Char.GiveWeapon(89@, WeaponType.Mp5, 99999)
Char.SetHealth(89@, 70)
Char.SetAccuracy(89@, 30)
set_lvar_int_to_lvar_int 112@ = 89@
gosub @DRUGS3_18926
90@ = Char.Create(PedType.Mission1, 50, 2170.07, -2334.498, 12.547)
Char.SetHeading(90@, 89.2721)
Char.SetDecisionMaker(90@, 52@)
Char.GiveWeapon(90@, WeaponType.Mp5, 99999)
Char.SetHealth(90@, 50)
set_lvar_int_to_lvar_int 112@ = 90@
gosub @DRUGS3_18926
if 
  Object.DoesExist(111@)
goto_if_false @DRUGS3_16396
Object.SetHeading(111@, 90.0)
goto @DRUGS3_16401

:DRUGS3_16396
Object.Delete(111@)

:DRUGS3_16401
if 
  not Char.IsDead(101@)
goto_if_false @DRUGS3_16454
Task.PlayAnim(101@, "IDLE_CHAT", "PED", 4.0, False, False, False, False, 2000)

:DRUGS3_16454
173@ = 2

:DRUGS3_16461
if 
  173@ == 2
goto_if_false @DRUGS3_16689
if 
  not Char.IsDead(101@)
goto_if_false @DRUGS3_16689
if or
  TIMERA > 750
  Char.HasBeenDamagedByChar(101@, $scplayer)
  Player.IsTargetingChar($player1, 101@)
goto_if_false @DRUGS3_16689
87@ = Char.Create(PedType.Mission1, 50, 2135.46, -2296.64, 12.9)
Char.SetHeading(87@, 337.5533)
Char.SetDecisionMaker(87@, 52@)
Char.GiveWeapon(87@, WeaponType.Pistol, 99999)
Task.KillCharOnFoot(87@, $scplayer)
set_lvar_int_to_lvar_int 112@ = 87@
gosub @DRUGS3_18926
113@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 2128.43, -2292.01, 13.75, 6, 350000)
Task.FollowPathNodesToCoord(-1, 2185.5, -2274.8, 13.75, 7, 350000)
Sequence.Close(113@)
Char.PerformSequence(101@, 113@)
Sequence.Clear(113@)
173@ = 3

:DRUGS3_16689
if 
  173@ == 3
goto_if_false @DRUGS3_16773
if 
  not Char.IsDead(101@)
goto_if_false @DRUGS3_16773
if 
  Char.LocateAnyMeans2D(101@, 2185.5, -2274.8, 10.0, 10.0, False)
goto_if_false @DRUGS3_16773
Char.MarkAsNoLongerNeeded(86@)
173@ = 4

:DRUGS3_16773
if 
  not Char.IsDead(101@)
goto_if_false @DRUGS3_18210
if 
  173@ == 4
goto_if_false @DRUGS3_17553
if 
  not Char.LocateAnyMeansChar2D($scplayer, 101@, 200.0, 200.0, False)
goto_if_false @DRUGS3_16877
if 
  not Char.IsOnScreen(101@)
goto_if_false @DRUGS3_16877
Text.PrintNow('CSH3_55', 5000, 1)
goto @DRUGS3_19343

:DRUGS3_16877
if 
  2 > 182@
goto_if_false @DRUGS3_17553
if 
  182@ == 1
goto_if_false @DRUGS3_16970
if 
  not Car.IsDead(54@)
goto_if_false @DRUGS3_16970
$car = Char.GetCarIsUsing($scplayer)
if 
  is_int_var_equal_to_int_lvar $car == 54@
goto_if_false @DRUGS3_16970
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_16970
if 
  182@ == 0
goto_if_false @DRUGS3_17185
if 
  not Car.IsDead(54@)
goto_if_false @DRUGS3_17171
if 
  Car.Locate2D(54@, 2190.07, -2269.8, 6.0, 6.0, False)
goto_if_false @DRUGS3_17150
if 
  not Char.IsInCar($scplayer, 54@)
goto_if_false @DRUGS3_17129
if 
  184@ == 0
goto_if_false @DRUGS3_17108
Char.ClearTasks(101@)
Task.EnterCarAsDriver(101@, 54@, -2)
182@ = 1
goto @DRUGS3_17122

:DRUGS3_17108
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17122
goto @DRUGS3_17143

:DRUGS3_17129
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17143
goto @DRUGS3_17164

:DRUGS3_17150
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17164
goto @DRUGS3_17185

:DRUGS3_17171
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17185
if 
  182@ == 1
goto_if_false @DRUGS3_17421
if 
  184@ == 0
goto_if_false @DRUGS3_17407
if 
  not Car.IsDead(54@)
goto_if_false @DRUGS3_17400
if 
  Char.IsInCar(101@, 54@)
goto_if_false @DRUGS3_17400
if 
  Char.LocateAnyMeansChar2D(101@, $scplayer, 60.0, 60.0, False)
goto_if_false @DRUGS3_17400
Text.PrintNow('CSH3_54', 5000, 1)
Char.SetHealth(101@, 100)
Char.SetSuffersCriticalHits(101@, True)
Car.GotoCoordinates(54@, 2246.61, -2204.78, 13.65)
Car.SetCruiseSpeed(54@, 20.0)
Car.SetDrivingStyle(54@, DrivingMode.AvoidCars)
Path.SwitchRoadsOff(2203.8, -2174.63, 0.0, 2279.2, -2234.63, 18.21)
183@ = 1
182@ = 2

:DRUGS3_17400
goto @DRUGS3_17421

:DRUGS3_17407
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17421
if 
  not Car.IsDead(54@)
goto_if_false @DRUGS3_17539
if 
  184@ == 0
goto_if_false @DRUGS3_17488
if 
  Char.IsInCar($scplayer, 54@)
goto_if_false @DRUGS3_17488
gosub @DRUGS3_18627
184@ = 1

:DRUGS3_17488
if 
  184@ == 1
goto_if_false @DRUGS3_17532
if 
  not Char.IsInCar($scplayer, 54@)
goto_if_false @DRUGS3_17532
184@ = 0

:DRUGS3_17532
goto @DRUGS3_17553

:DRUGS3_17539
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17553
if 
  183@ == 1
goto_if_false @DRUGS3_17649
if 
  not Char.IsSittingInAnyCar(101@)
goto_if_false @DRUGS3_17649
Task.SmartFleeChar(101@, $scplayer, 300.0, 500000)
if 
  not Car.IsDead(54@)
goto_if_false @DRUGS3_17642
if 
  Car.IsPlaybackGoingOn(54@)
goto_if_false @DRUGS3_17642
Car.StopPlayback(54@)

:DRUGS3_17642
183@ = 2

:DRUGS3_17649
if 
  182@ == 2
goto_if_false @DRUGS3_17854
if 
  not Car.IsDead(54@)
goto_if_false @DRUGS3_17854
if 
  Char.IsSittingInCar(101@, 54@)
goto_if_false @DRUGS3_17854
if 
  Car.Locate2D(54@, 2246.61, -2204.78, 10.0, 10.0, False)
goto_if_false @DRUGS3_17854
Char.MarkAsNoLongerNeeded(83@)
Char.MarkAsNoLongerNeeded(84@)
Char.MarkAsNoLongerNeeded(85@)
Char.MarkAsNoLongerNeeded(86@)
Char.MarkAsNoLongerNeeded(87@)
Char.MarkAsNoLongerNeeded(88@)
Char.MarkAsNoLongerNeeded(89@)
Char.MarkAsNoLongerNeeded(90@)
Car.MarkAsNoLongerNeeded(60@)
Car.SetIdle(54@)
Car.StartPlaybackUsingAi(54@, 342)
Car.SetPlaybackSpeed(54@, 0.85)
Path.SwitchRoadsOff(2203.8, -2174.63, 0.0, 2279.2, -2234.63, 18.21)
187@ = 1
182@ = 3

:DRUGS3_17854
if 
  182@ == 3
goto_if_false @DRUGS3_18071
if 
  not Car.IsDead(54@)
goto_if_false @DRUGS3_18071
if 
  Char.IsSittingInCar(101@, 54@)
goto_if_false @DRUGS3_18071
if 
  187@ == 1
goto_if_false @DRUGS3_17989
if 
  Car.IsPlaybackGoingOn(54@)
goto_if_false @DRUGS3_17989
if 
  not Char.LocateAnyMeansChar2D(101@, $scplayer, 40.0, 40.0, False)
goto_if_false @DRUGS3_17989
Car.SetPlaybackSpeed(54@, 0.4)
187@ = 2

:DRUGS3_17989
if 
  187@ == 2
goto_if_false @DRUGS3_18071
if 
  Car.IsPlaybackGoingOn(54@)
goto_if_false @DRUGS3_18071
if 
  Char.LocateAnyMeansChar2D(101@, $scplayer, 40.0, 40.0, False)
goto_if_false @DRUGS3_18071
Car.SetPlaybackSpeed(54@, 0.85)
187@ = 1

:DRUGS3_18071
if 
  182@ == 3
goto_if_false @DRUGS3_18210
if 
  not Car.IsDead(54@)
goto_if_false @DRUGS3_18210
if 
  Char.IsSittingInCar(101@, 54@)
goto_if_false @DRUGS3_18210
if 
  Car.Locate2D(54@, 1440.92, -1594.59, 20.0, 20.0, False)
goto_if_false @DRUGS3_18210
if 
  Car.IsPlaybackGoingOn(54@)
goto_if_false @DRUGS3_18188
Car.StopPlayback(54@)
Car.SetIdle(54@)

:DRUGS3_18188
Task.CarDriveWander(101@, 54@, 25.0, DrivingMode.AvoidCars)
182@ = 4

:DRUGS3_18210
if 
  173@ > 1
goto_if_false @DRUGS3_18446
if 
  not Char.IsDead(101@)
goto_if_false @DRUGS3_18446
gosub @DRUGS3_18495
if 
  180@ == 0
goto_if_false @DRUGS3_18316
if 
  181@ == 0
goto_if_false @DRUGS3_18316
set_lvar_int_to_constant 80@ = 18007
set_lvar_text_label 81@s = 'CRA3_DB'
gosub @DRUGS3_18453

:DRUGS3_18316
if 
  180@ == 1
goto_if_false @DRUGS3_18381
if 
  181@ == 0
goto_if_false @DRUGS3_18381
set_lvar_int_to_constant 80@ = 18008
set_lvar_text_label 81@s = 'CRA3_DC'
gosub @DRUGS3_18453

:DRUGS3_18381
if 
  180@ == 2
goto_if_false @DRUGS3_18446
if 
  181@ == 0
goto_if_false @DRUGS3_18446
set_lvar_int_to_constant 80@ = 18009
set_lvar_text_label 81@s = 'CRA3_DD'
gosub @DRUGS3_18453

:DRUGS3_18446
goto @DRUGS3_850

:DRUGS3_18453
if 
  181@ == 0
goto_if_false @DRUGS3_18493
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 80@)
set_lvar_text_label 78@s = 81@s
181@ = 1

:DRUGS3_18493
return 

:DRUGS3_18495
if 
  181@ == 1
goto_if_false @DRUGS3_18572
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS3_18572
Text.PrintNow(78@s, 4000, 1)
if 
  not Char.IsDead(101@)
goto_if_false @DRUGS3_18561
Audio.AttachMissionAudioToChar(MissionAudioSlot.Slot1, 101@)

:DRUGS3_18561
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
181@ = 2

:DRUGS3_18572
if 
  181@ == 2
goto_if_false @DRUGS3_18625
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS3_18625
180@ += 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
181@ = 0

:DRUGS3_18625
return 

:DRUGS3_18627
Char.SetHealth(101@, 100)
Char.SetMaxHealth(101@, 100)
114@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 2191.422, -2183.429, 13.55, 6, -2)
Task.SmartFleeChar(-1, $scplayer, 300.0, 500000)
Sequence.Close(114@)
Char.PerformSequence(101@, 114@)
Sequence.Clear(114@)
return 

:DRUGS3_18706
124@ = Sequence.Open()
Task.GoStraightToCoord(-1, 116@, 117@, 118@, MoveState.Run, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(124@)
Char.PerformSequence(112@, 124@)
Sequence.Clear(124@)
return 

:DRUGS3_18761
125@ = Sequence.Open()
Task.GoStraightToCoord(-1, 116@, 117@, 118@, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 119@, 120@, 121@, MoveState.Run, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(125@)
Char.PerformSequence(112@, 125@)
Sequence.Clear(125@)
return 

:DRUGS3_18833
123@ = Sequence.Open()
Task.GoStraightToCoord(-1, 116@, 117@, 118@, MoveState.Run, -1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(123@)
Char.PerformSequence(112@, 123@)
Sequence.Clear(123@)
return 

:DRUGS3_18882
122@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(122@)
Char.PerformSequence(112@, 122@)
Sequence.Clear(122@)
return 

:DRUGS3_18926
129@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(129@)
Char.PerformSequence(112@, 129@)
Sequence.Clear(129@)
return 

:DRUGS3_18964
128@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 116@, 117@, 118@, 6, 0.5, 1.0, $scplayer)
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(128@)
Char.PerformSequence(112@, 128@)
Sequence.Clear(128@)
return 

:DRUGS3_19036
127@ = Sequence.Open()
Task.PlayAnim(-1, "CROUCH_ROLL_R", "PED", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(127@)
Char.PerformSequence(112@, 127@)
Sequence.Clear(127@)
return 

:DRUGS3_19119
126@ = Sequence.Open()
Task.PlayAnim(-1, "SWT_WLLPK_L", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SWT_WLLSHOOT_IN_L", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootTimed(-1, $scplayer, 1500)
Task.StayInSamePlace(-1, False)
Task.PlayAnim(-1, "SWT_WLLSHOOT_OUT_L", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnim(-1, "SWT_WLLPK_L_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(126@, True)
Sequence.Close(126@)
Char.PerformSequence(112@, 126@)
Sequence.Clear(126@)
return 

:DRUGS3_19343
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:DRUGS3_19361
Text.PrintWithNumberBig('M_PASSD', 0, 5000, TextStyle.Middle)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.PlayerMadeProgress(1)
Stat.RegisterMissionPassed('CRASH_3')
$flag_crash_mission_counter += 1
Blip.Remove($crash_contact_blip)
return 

:DRUGS3_19417
if 
  not Car.IsDead($car)
goto_if_false @DRUGS3_19448
Car.SetProofs($car, False, False, False, False, False)

:DRUGS3_19448
if 
  Object.DoesExist(50@)
goto_if_false @DRUGS3_19469
Object.Delete(50@)

:DRUGS3_19469
if 
  Object.DoesExist(34@)
goto_if_false @DRUGS3_19490
Object.Delete(35@)

:DRUGS3_19490
if 
  Object.DoesExist(36@)
goto_if_false @DRUGS3_19511
Object.Delete(37@)

:DRUGS3_19511
if 
  Object.DoesExist(38@)
goto_if_false @DRUGS3_19532
Object.Delete(39@)

:DRUGS3_19532
if 
  Object.DoesExist(40@)
goto_if_false @DRUGS3_19553
Object.Delete(41@)

:DRUGS3_19553
if 
  Object.DoesExist(50@)
goto_if_false @DRUGS3_19574
Object.Delete(50@)

:DRUGS3_19574
if 
  Object.DoesExist(51@)
goto_if_false @DRUGS3_19595
Object.Delete(51@)

:DRUGS3_19595
Path.SwitchRoadsOn(2203.8, -2174.63, 0.0, 2279.2, -2234.63, 18.21)
Blip.Remove(137@)
Blip.Remove(138@)
Streaming.RemoveAnimation("SWAT")
Streaming.RemoveAnimation("DODGE")
Pickup.Remove(133@)
Pickup.Remove(134@)
Pickup.Remove(135@)
Object.Delete(102@)
Car.MarkAsNoLongerNeeded(58@)
Car.MarkAsNoLongerNeeded(59@)
Car.MarkAsNoLongerNeeded(60@)
Car.MarkAsNoLongerNeeded(61@)
Pickup.Remove(136@)
Char.RemoveElegantly(83@)
Char.RemoveElegantly(84@)
Char.RemoveElegantly(85@)
Char.RemoveElegantly(86@)
Char.RemoveElegantly(87@)
Char.RemoveElegantly(88@)
Char.RemoveElegantly(89@)
Char.RemoveElegantly(90@)
Char.RemoveElegantly(92@)
Char.RemoveElegantly(93@)
Char.RemoveElegantly(94@)
Char.RemoveElegantly(95@)
Char.RemoveElegantly(96@)
Char.RemoveElegantly(97@)
Char.RemoveElegantly(98@)
Game.SetWantedMultiplier(1.0)
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(#BARREL4)
Streaming.MarkModelAsNoLongerNeeded(530)
Streaming.MarkModelAsNoLongerNeeded(414)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(#SEC_KEYPAD)
Streaming.MarkModelAsNoLongerNeeded(#KMB_RAMP)
Streaming.MarkModelAsNoLongerNeeded(429)
Streaming.MarkModelAsNoLongerNeeded(461)
Streaming.MarkModelAsNoLongerNeeded(#IMCMPTRKDRL_LAS)
Streaming.MarkModelAsNoLongerNeeded(#IMCMPTRKDRR_LAS)
Streaming.MarkModelAsNoLongerNeeded(#IMCOMPMOVEDR1_LAS)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(#IMY_BBOX)
Streaming.MarkModelAsNoLongerNeeded(461)
Streaming.UnloadSpecialCharacter(1)
if 
  not Car.IsDead(55@)
goto_if_false @DRUGS3_19886
Car.SetCanBurstTires(55@, True)

:DRUGS3_19886
if 
  not Car.IsDead(60@)
goto_if_false @DRUGS3_19909
Car.SetCanBurstTires(60@, True)

:DRUGS3_19909
if 
  not Car.IsDead($car)
goto_if_false @DRUGS3_19940
Car.SetProofs($car, False, False, True, False, False)

:DRUGS3_19940
$timer_mobile_start = Clock.GetGameTimer()
Game.SwitchEmergencyServices(True)
$onmission = 0
Mission.Finish
return 

//-------------Mission 24---------------
// Originally: Home Invasion

:GUNS1
script_name 'GUNS1'
gosub @GUNS1_47
if 
  has_deatharrest_been_executed 
goto_if_false @GUNS1_38
gosub @GUNS1_40480

:GUNS1_38
gosub @GUNS1_40575
terminate_this_script 

:GUNS1_47
Stat.RegisterMissionGiven
$onmission = 1
wait 0
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:GUNS1_75
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_99
wait 0
goto @GUNS1_75

:GUNS1_99
Weather.Force(WeatherType.SunnyLa)
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @GUNS1_148
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)

:GUNS1_148
Text.LoadMissionText('RYDER1')
Cutscene.Load('RYDER1A')

:GUNS1_170
if 
  not Cutscene.HasLoaded
goto_if_false @GUNS1_194
wait 0
goto @GUNS1_170

:GUNS1_194
World.ClearArea(2464.0, -1714.0, 14.0, 100.0, True)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:GUNS1_227
if 
  not Cutscene.HasFinished
goto_if_false @GUNS1_251
wait 0
goto @GUNS1_227

:GUNS1_251
Camera.DoFade(0, Fade.Out)

:GUNS1_257
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_281
wait 0
goto @GUNS1_257

:GUNS1_281
Weather.Release
Cutscene.Clear
Player.SetControl($player1, False)
39@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
41@ = DecisionMakerChar.Copy(39@)
40@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Garage.ChangeType('BURG_LK', GarageType.ForScriptToOpenAndClose)
42@ = DecisionMakerGroup.Load(0)
Group.SetDecisionMaker($Players_Group, 42@)
DecisionMakerGroup.ClearEventResponse(42@, 54)
DecisionMakerGroup.ClearEventResponse(42@, 55)
51@ = 0
52@ = 0
53@ = 0
54@ = 0
55@ = 0
56@ = 0
58@ = 0
59@ = 0
35@ = 0
60@ = 0
61@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
66@ = 0
67@ = 0
34@ = 0
94@ = 0
$ryd1_time_to_daylight = 0
96@ = 0
68@ = 0
69@ = 0
36@ = 0
38@ = 0
70@ = 0
71@ = 0
72@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
43@ = 0
44@ = 0
46@ = 0
77@ = 0
95@ = 0
167@ = 0.0
166@ = 0.0
47@ = 0
48@ = 2
50@ = 0
78@ = 0
88@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
97@ = 0
79@ = 0
80@ = 0
$tripskip_c3flag = 0
132@ = 2809.0
139@ = -1168.0
146@ = 1024.572
133@ = 2820.033
140@ = -1165.836
147@ = 1024.696
134@ = 2819.54
141@ = -1170.556
148@ = 1028.297
135@ = 2817.021
142@ = -1165.202
149@ = 1028.305
136@ = 2812.656
143@ = -1168.58
150@ = 1028.297
137@ = 2812.611
144@ = -1172.732
151@ = 1024.695
138@ = 2803.68
145@ = -1161.312
152@ = 1028.305
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
171@ = 0
if 
  52@ == 999999
goto_if_false @GUNS1_1040
108@ = Blip.AddForCoord(0.0, 0.0, 0.0)

:GUNS1_1040
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
268@ = 0
269@ = 0
270@ = 0
271@ = 0
272@ = 0
set_var_text_label s$ryd1_noise_bar[1] = 'RYD1_AA'
set_var_text_label s$ryd1_noise_bar[2] = 'RYD1_AB'
set_var_text_label s$ryd1_noise_bar[3] = 'RYD1_AC'
set_var_text_label s$ryd1_noise_bar[4] = 'RYD1_AD'
set_var_text_label s$ryd1_noise_bar[5] = 'RYD1_AE'
set_var_text_label s$ryd1_noise_bar[6] = 'RYD1_AF'
set_var_text_label s$ryd1_noise_bar[7] = 'RYD1_AG'
set_var_text_label s$ryd1_noise_bar[8] = 'RYD1_AH'
set_var_text_label s$ryd1_noise_bar[9] = 'RYD1_AJ'
set_var_text_label s$ryd1_noise_bar[10] = 'RYD1_BA'
set_var_text_label s$ryd1_noise_bar[11] = 'RYD1_BB'
set_var_text_label s$ryd1_noise_bar[12] = 'RYD1_BC'
set_var_text_label s$ryd1_noise_bar[13] = 'RYD1_BD'
set_var_text_label s$ryd1_noise_bar[14] = 'RYD1_BE'
set_var_text_label s$ryd1_noise_bar[15] = 'RYD1_BF'
set_var_text_label s$ryd1_noise_bar[16] = 'RYD1_CA'
set_var_text_label s$ryd1_noise_bar[17] = 'RYD1_CB'
set_var_text_label s$ryd1_noise_bar[18] = 'RYD1_CC'
set_var_text_label s$ryd1_noise_bar[19] = 'RYD1_CD'
set_var_text_label s$ryd1_noise_bar[20] = 'RYD1_CE'
set_var_text_label s$ryd1_noise_bar[21] = 'RYD1_CF'
set_var_text_label s$ryd1_noise_bar[22] = 'RYD1_ZA'
set_var_text_label s$ryd1_noise_bar[23] = 'RYD1_ZB'
set_var_text_label s$ryd1_noise_bar[24] = 'RYD1_ZC'
set_var_text_label s$ryd1_noise_bar[25] = 'RYD1_ZD'
set_var_text_label s$ryd1_noise_bar[26] = 'RYD1_ZE'
set_var_text_label s$ryd1_noise_bar[27] = 'RYD1_ZF'
set_var_text_label s$ryd1_noise_bar[28] = 'RYD1_ZG'
set_var_text_label s$ryd1_noise_bar[29] = 'RYD1_ZH'
set_var_text_label s$ryd1_noise_bar[30] = 'RYD1_ZJ'
set_var_text_label s$ryd1_noise_bar[31] = 'RYD1_ZK'
set_var_text_label s$ryd1_noise_bar[32] = 'RYD1_ZL'
set_var_text_label s$ryd1_noise_bar[33] = 'RYD1_ZM'
set_var_text_label s$ryd1_noise_bar[34] = 'RYD1_ZN'
set_var_text_label s$ryd1_noise_bar[35] = 'RYD1_DA'
set_var_text_label s$ryd1_noise_bar[36] = 'RYD1_DB'
set_var_text_label s$ryd1_noise_bar[37] = 'RYD1_DC'
set_var_text_label s$ryd1_noise_bar[38] = 'RYD1_DD'
set_var_text_label s$ryd1_noise_bar[39] = 'RYD1_DE'
set_var_text_label s$ryd1_noise_bar[40] = 'RYD1_DF'
set_var_text_label s$ryd1_noise_bar[41] = 'RYD1_DG'
set_var_text_label s$ryd1_noise_bar[42] = 'RYD1_DH'
set_var_text_label s$ryd1_noise_bar[43] = 'RYD1_DJ'
set_var_text_label s$ryd1_noise_bar[44] = 'RYD1_DK'
set_var_text_label s$ryd1_noise_bar[45] = 'RYD1_DL'
set_var_text_label s$ryd1_noise_bar[46] = 'RYD1_EA'
set_var_text_label s$ryd1_noise_bar[47] = 'RYD1_EB'
set_var_text_label s$ryd1_noise_bar[48] = 'RYD1_EC'
set_var_text_label s$ryd1_noise_bar[49] = 'RYD1_ED'
set_var_text_label s$ryd1_noise_bar[50] = 'RYD1_FA'
set_var_text_label s$ryd1_noise_bar[51] = 'RYD1_FB'
set_var_text_label s$ryd1_noise_bar[52] = 'RYD1_FC'
set_var_text_label s$ryd1_noise_bar[53] = 'RYD1_GA'
set_var_text_label s$ryd1_noise_bar[54] = 'RYD1_GB'
set_var_text_label s$ryd1_noise_bar[55] = 'RYD1_GC'
set_var_text_label s$ryd1_noise_bar[56] = 'RYD1_GD'
set_var_text_label s$ryd1_noise_bar[57] = 'RYD1_GE'
set_var_text_label s$ryd1_noise_bar[58] = 'RYD1_GF'
set_var_text_label s$ryd1_noise_bar[59] = 'RYD1_GG'
set_var_text_label s$ryd1_noise_bar[60] = 'RYD1_GH'
set_var_text_label s$ryd1_noise_bar[61] = 'RYD1_GJ'
set_var_text_label s$ryd1_noise_bar[62] = 'RYD1_GK'
set_var_text_label s$ryd1_noise_bar[63] = 'RYD1_GL'
set_var_text_label s$ryd1_noise_bar[64] = 'RYD1_HA'
set_var_text_label s$ryd1_noise_bar[65] = 'RYD1_HB'
set_var_text_label s$ryd1_noise_bar[66] = 'RYD1_JA'
set_var_text_label s$ryd1_noise_bar[67] = 'RYD1_JB'
set_var_text_label s$ryd1_noise_bar[68] = 'RYD1_KA'
set_var_text_label s$ryd1_noise_bar[69] = 'RYD1_KB'
set_var_text_label s$ryd1_noise_bar[70] = 'RYD1_KC'
set_var_text_label s$ryd1_noise_bar[71] = 'RYD1_KD'
set_var_text_label s$ryd1_noise_bar[72] = 'RYD1_KE'
set_var_text_label s$ryd1_noise_bar[73] = 'RYD1_KF'
set_var_text_label s$ryd1_noise_bar[74] = 'RYD1_KG'
set_var_text_label s$ryd1_noise_bar[75] = 'RYD1_KH'
set_var_text_label s$ryd1_noise_bar[76] = 'RYDX_AC'
set_var_text_label s$ryd1_noise_bar[77] = 'RYD1_LA'
set_var_text_label s$ryd1_noise_bar[78] = 'RYD1_LB'
set_var_text_label s$ryd1_noise_bar[79] = 'RYD1_LC'
set_var_text_label s$ryd1_noise_bar[80] = 'RYDX_BG'
set_var_text_label s$ryd1_noise_bar[81] = 'RYDX_BI'
set_lvar_int_to_constant 173@ = 10400
set_lvar_int_to_constant 174@ = 10408
set_lvar_int_to_constant 175@ = 10401
set_lvar_int_to_constant 176@ = 10409
set_lvar_int_to_constant 177@ = 10410
set_lvar_int_to_constant 178@ = 10402
set_lvar_int_to_constant 179@ = 10411
set_lvar_int_to_constant 180@ = 10403
set_lvar_int_to_constant 181@ = 10412
set_lvar_int_to_constant 182@ = 10413
set_lvar_int_to_constant 183@ = 10404
set_lvar_int_to_constant 184@ = 10414
set_lvar_int_to_constant 185@ = 10415
set_lvar_int_to_constant 186@ = 10405
set_lvar_int_to_constant 187@ = 10416
set_lvar_int_to_constant 188@ = 10417
set_lvar_int_to_constant 189@ = 10418
set_lvar_int_to_constant 190@ = 10406
set_lvar_int_to_constant 191@ = 10445
set_lvar_int_to_constant 192@ = 10419
set_lvar_int_to_constant 193@ = 10446
set_lvar_int_to_constant 194@ = 10461
set_lvar_int_to_constant 195@ = 10462
set_lvar_int_to_constant 196@ = 10463
set_lvar_int_to_constant 197@ = 10464
set_lvar_int_to_constant 198@ = 10465
set_lvar_int_to_constant 199@ = 10466
set_lvar_int_to_constant 200@ = 10467
set_lvar_int_to_constant 201@ = 10468
set_lvar_int_to_constant 202@ = 10469
set_lvar_int_to_constant 203@ = 10470
set_lvar_int_to_constant 204@ = 10471
set_lvar_int_to_constant 205@ = 10472
set_lvar_int_to_constant 206@ = 10473
set_lvar_int_to_constant 207@ = 65535
set_lvar_int_to_constant 208@ = 10474
set_lvar_int_to_constant 209@ = 10475
set_lvar_int_to_constant 210@ = 10407
set_lvar_int_to_constant 211@ = 10476
set_lvar_int_to_constant 212@ = 10420
set_lvar_int_to_constant 213@ = 10447
set_lvar_int_to_constant 214@ = 10421
set_lvar_int_to_constant 215@ = 10422
set_lvar_int_to_constant 216@ = 10423
set_lvar_int_to_constant 217@ = 10448
set_lvar_int_to_constant 218@ = 10449
set_lvar_int_to_constant 219@ = 10424
set_lvar_int_to_constant 220@ = 10425
set_lvar_int_to_constant 221@ = 10426
set_lvar_int_to_constant 222@ = 10427
set_lvar_int_to_constant 223@ = 10428
set_lvar_int_to_constant 224@ = 10450
set_lvar_int_to_constant 225@ = 10451
set_lvar_int_to_constant 226@ = 10429
set_lvar_int_to_constant 227@ = 10452
set_lvar_int_to_constant 228@ = 10430
set_lvar_int_to_constant 229@ = 10453
set_lvar_int_to_constant 230@ = 10431
set_lvar_int_to_constant 231@ = 10454
set_lvar_int_to_constant 232@ = 10432
set_lvar_int_to_constant 233@ = 10433
set_lvar_int_to_constant 234@ = 10455
set_lvar_int_to_constant 235@ = 10434
set_lvar_int_to_constant 236@ = 10435
set_lvar_int_to_constant 237@ = 10436
set_lvar_int_to_constant 238@ = 10437
set_lvar_int_to_constant 239@ = 10456
set_lvar_int_to_constant 240@ = 10438
set_lvar_int_to_constant 241@ = 10439
set_lvar_int_to_constant 242@ = 10440
set_lvar_int_to_constant 243@ = 10441
set_lvar_int_to_constant 244@ = 10442
set_lvar_int_to_constant 245@ = 10443
set_lvar_int_to_constant 246@ = 10457
set_lvar_int_to_constant 247@ = 10444
set_lvar_int_to_constant 248@ = 25602
set_lvar_int_to_constant 249@ = 10458
set_lvar_int_to_constant 250@ = 10459
set_lvar_int_to_constant 251@ = 10460
set_lvar_int_to_constant 252@ = 25627
set_lvar_int_to_constant 253@ = 25629
set_lvar_int_to_constant 274@ = 23604
set_lvar_int_to_constant 275@ = 29400
set_lvar_int_to_constant 276@ = 23600
277@ = 0
278@ = 0
279@ = 0
$disable_mod_garage = 1
if 
  51@ == 0
goto_if_false @GUNS1_4763
$hours, $minutes = Clock.GetTimeOfDay()
77@ = 1
Clock.SetTimeOfDay(22, 0)
World.SwitchEntryExit('BURHOUS', False)
Streaming.RequestModel(609)
Streaming.RequestAnimation("CAR_CHAT")
Streaming.LoadSpecialCharacter(1, 'RYDER2')

:GUNS1_3091
if or
  not Streaming.HasModelLoaded(609)
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasAnimationLoaded("CAR_CHAT")
goto_if_false @GUNS1_3134
wait 0
goto @GUNS1_3091

:GUNS1_3134
World.ClearArea(2470.656, -1689.649, 12.5198, 100.0, True)
Car.CustomPlateForNextCar(609, "__SWAG__")
102@ = Car.Create(609, 2476.682, -1679.566, 12.3451)
Car.SetHeading(102@, 48.737)
98@ = Char.Create(PedType.Special, 290, 2475.168, -1686.483, 12.5007)
Char.SetCantBeDraggedOut(98@, True)
Char.SetDecisionMaker(98@, 39@)
DecisionMakerChar.ClearEventResponse(39@, 9)
DecisionMakerChar.ClearEventResponse(39@, 79)
DecisionMakerChar.ClearEventResponse(39@, 43)
DecisionMakerChar.ClearEventResponse(39@, 73)
DecisionMakerChar.ClearEventResponse(39@, 41)
DecisionMakerChar.AddEventResponse(39@, 9, 251, 0.0, 100.0, 0.0, 0.0, True, True)
Char.SetAnimGroup(98@, "GANG1")
Char.SetNeverTargeted(98@, True)
Char.SetHealth(98@, 200)
Char.SetSuffersCriticalHits(98@, False)
Car.SetHeading(102@, 30.0)
if 
  77@ == 999
goto_if_false @GUNS1_3393
104@ = Blip.AddForCar(102@)
Blip.SetAsFriendly(104@, True)

:GUNS1_3393
Text.ClearPrints
55@ = 1
59@ = 1
53@ = 1
51@ = 1
Streaming.LoadScene(2475.0, -1699.0, 15.0)
Camera.RestoreJumpcut
Char.SetCoordinates($scplayer, 2473.483, -1686.599, 12.5154)
Char.SetHeading($scplayer, 14.9748)
129@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2473.527, -1680.036, 12.3551, MoveState.Walk, 6000)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsDriver(-1, 102@, 5000)
Sequence.Close(129@)
Char.PerformSequence($scplayer, 129@)
Sequence.Clear(129@)
Char.SetHeading(98@, 349.379)
129@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2480.925, -1682.348, 12.3381, MoveState.Run, 6000)
Task.GoStraightToCoord(-1, 2478.305, -1677.06, 12.3478, MoveState.Run, 6000)
Task.EnterCarAsPassenger(-1, 102@, 3000, 0)
Sequence.Close(129@)
Char.PerformSequence(98@, 129@)
Sequence.Clear(129@)
Camera.SetFixedPosition(2470.383, -1675.816, 13.2161, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2471.166, -1676.424, 13.347, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
World.ClearArea(2470.656, -1689.649, 12.5198, 100.0, True)
Clock.SetTimeOfDay(22, 0)
Camera.DoFade(1000, Fade.In)

:GUNS1_3718
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_3742
wait 0
goto @GUNS1_3718

:GUNS1_3742
skip_cutscene_start_internal @GUNS1_4286
TIMERA = 0
52@ = 0
254@ = 76
255@ = 1
256@ = 2
257@ = 0
263@ = 0

:GUNS1_3798
if 
  52@ == 0
goto_if_false @GUNS1_4286
if 
  254@ <> 0
goto_if_false @GUNS1_4155
if 
  257@ == 0
goto_if_false @GUNS1_3880
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_3873
Audio.ClearMissionAudio(256@)

:GUNS1_3873
257@ = 1

:GUNS1_3880
if 
  257@ == 1
goto_if_false @GUNS1_3917
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_3917
if 
  257@ == 2
goto_if_false @GUNS1_3977
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_3977
Audio.PlayMissionAudio(255@)
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)
257@ = 3

:GUNS1_3977
if 
  257@ == 3
goto_if_false @GUNS1_4155
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_4094
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  255@ == 1
goto_if_false @GUNS1_4059
255@ = 2
256@ = 1
goto @GUNS1_4073

:GUNS1_4059
255@ = 1
256@ = 2

:GUNS1_4073
254@ = 0
257@ = 0
goto @GUNS1_4155

:GUNS1_4094
if 
  not Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_4155
if 
  76 > 254@
goto_if_false @GUNS1_4155
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
Audio.LoadMissionAudio(256@, 172@(263@,82i))

:GUNS1_4155
if 
  TIMERA > 15000
goto_if_false @GUNS1_4181
52@ = 1

:GUNS1_4181
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_4268
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_4254
if and
  Char.IsSittingInCar(98@, 102@)
  Char.IsSittingInCar($scplayer, 102@)
goto_if_false @GUNS1_4247
52@ = 1

:GUNS1_4247
goto @GUNS1_4261

:GUNS1_4254
52@ = 1

:GUNS1_4261
goto @GUNS1_4275

:GUNS1_4268
52@ = 1

:GUNS1_4275
wait 0
goto @GUNS1_3798

:GUNS1_4286
skip_cutscene_end 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
if 
  77@ == 1
goto_if_false @GUNS1_4604
Game.SetEveryoneIgnorePlayer($player1, True)
Audio.ClearMissionAudio(255@)
Audio.ClearMissionAudio(256@)
Text.ClearPrints
Hud.FreezeTimer(False)
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
Camera.DoFade(1000, Fade.Out)

:GUNS1_4416
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_4440
wait 0
goto @GUNS1_4416

:GUNS1_4440
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_4528
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_4528
if 
  not Char.IsInCar(98@, 102@)
goto_if_false @GUNS1_4501
Char.WarpIntoCarAsPassenger(98@, 102@, 0)

:GUNS1_4501
if 
  not Char.IsInCar($scplayer, 102@)
goto_if_false @GUNS1_4528
Char.WarpIntoCar($scplayer, 102@)

:GUNS1_4528
Player.SetGroupRecruitment($player1, False)
Game.SetScriptLimitToGangSize(0)
Game.MakeRoomInPlayerGangForMissionPeds(1)
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_4604
if 
  not Char.IsGroupMember(98@, $Players_Group)
goto_if_false @GUNS1_4604
Game.SetScriptLimitToGangSize(1)
Group.SetMember($Players_Group, 98@)
Group.SetFollowStatus($Players_Group, False)
Char.ListenToPlayerGroupCommands(98@, False)

:GUNS1_4604
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Text.ClearPrints
Clock.SetTimeOfDay(22, 0)
Streaming.RemoveAnimation("CAR_CHAT")
Game.SetEveryoneIgnorePlayer($player1, False)
Player.StoreClothesState
88@ = 1
Player.GiveClothesOutsideShop($player1, "BALACLAVA", "BALACLAVA", BodyPart.SpecialCostume)
Player.BuildModel($player1)
Text.ClearThisBigPrint('BOXBURG')
Text.Print('GUNS130', 5000, 1)
Camera.DoFade(1000, Fade.In)

:GUNS1_4714
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_4738
wait 0
goto @GUNS1_4714

:GUNS1_4738
Player.SetControl($player1, True)
if 
  $played_vcrash1_before == 1
goto_if_false @GUNS1_4763

:GUNS1_4763
wait 0
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @GUNS1_4813
goto @GUNS1_40498
99@ = Char.Create(PedType.Mission1, 62, 2817.269, -1169.875, 28.272)

:GUNS1_4813
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @GUNS1_4848
Char.SetCoordinates($scplayer, 2834.0, -1182.0, 25.0)

:GUNS1_4848
if 
is_ps2_keyboard_key_pressed 31
goto_if_false @GUNS1_4883
Char.SetCoordinates($scplayer, 2492.0, -1666.0, 12.0)

:GUNS1_4883
if 
is_ps2_keyboard_key_pressed 33
goto_if_false @GUNS1_4905
35@ = 4

:GUNS1_4905
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @GUNS1_4927
51@ = 8

:GUNS1_4927
if 
is_ps2_keyboard_key_pressed 42
goto_if_false @GUNS1_4952
$tripskip_c3flag = 6000000

:GUNS1_4952
if 
is_ps2_keyboard_key_pressed 39
goto_if_false @GUNS1_4975
$tripskip_c3flag = 5000

:GUNS1_4975
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @GUNS1_4997
goto @GUNS1_40498

:GUNS1_4997
if 
  53@ == 1
goto_if_false @GUNS1_5402
if 
  Char.IsDead(98@)
goto_if_false @GUNS1_5163
Text.ClearPrints
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @GUNS1_5140
Camera.DoFade(1000, Fade.Out)

:GUNS1_5069
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_5093
wait 0
goto @GUNS1_5069

:GUNS1_5093
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:GUNS1_5116
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_5140
wait 0
goto @GUNS1_5116

:GUNS1_5140
Text.Print('GUNS125', 5000, 1)
goto @GUNS1_40480

:GUNS1_5163
if 
  Car.IsDead(102@)
goto_if_false @GUNS1_5309
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @GUNS1_5286
Camera.DoFade(1000, Fade.Out)

:GUNS1_5215
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_5239
wait 0
goto @GUNS1_5215

:GUNS1_5239
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:GUNS1_5262
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_5286
wait 0
goto @GUNS1_5262

:GUNS1_5286
Text.Print('GUNS122', 5000, 1)
goto @GUNS1_40480

:GUNS1_5309
37@ = Streaming.GetAreaVisible()
if 
  37@ == 0
goto_if_false @GUNS1_5402
if 
  8 > 51@
goto_if_false @GUNS1_5402
if 
  not Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @GUNS1_5402
Text.Print('RYD1_37', 5000, 1)
goto @GUNS1_40480

:GUNS1_5402
if and
  51@ == 1
  not Car.IsDead(102@)
goto_if_false @GUNS1_5508
if 
  Char.IsInCar($scplayer, 102@)
goto_if_false @GUNS1_5508
Blip.Remove(104@)
55@ = 0
Text.ClearPrints
105@ = Blip.AddForCoord(2819.9, -1181.7, 25.15)
Text.Print('GUNS130', 5000, 1)
56@ = 1
51@ = 2

:GUNS1_5508
if 
  51@ == 2
goto_if_false @GUNS1_8248
if and
  not Car.IsDead(102@)
  not Char.IsDead(98@)
goto_if_false @GUNS1_6558
if 
  not Char.IsInCar($scplayer, 102@)
goto_if_false @GUNS1_6110
if 
  55@ == 0
goto_if_false @GUNS1_5772
if 
  59@ == 0
goto_if_false @GUNS1_5632
if 
  57@ == 1
goto_if_false @GUNS1_5632
Blip.Remove(108@)
57@ = 0

:GUNS1_5632
Blip.Remove(105@)
if 
  57@ == 1
goto_if_false @GUNS1_5667
Blip.Remove(108@)
57@ = 0

:GUNS1_5667
56@ = 0
if 
  Text.IsMessageBeingDisplayed
goto_if_false @GUNS1_5694
44@ = 1

:GUNS1_5694
Text.ClearPrints
Text.Print('GUNS128', 5000, 1)
254@ = 76
257@ = 0
Audio.ClearMissionAudio(255@)
Audio.ClearMissionAudio(256@)
Player.SetGroupToFollowNever($player1, True)
104@ = Blip.AddForCar(102@)
Blip.SetAsFriendly(104@, True)
55@ = 1
goto @GUNS1_6103

:GUNS1_5772
if 
  254@ <> 0
goto_if_false @GUNS1_6103
if 
  257@ == 0
goto_if_false @GUNS1_5836
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_5829
Audio.ClearMissionAudio(256@)

:GUNS1_5829
257@ = 1

:GUNS1_5836
if 
  257@ == 1
goto_if_false @GUNS1_5873
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_5873
if 
  257@ == 2
goto_if_false @GUNS1_5934
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_5934
Audio.AttachMissionAudioToChar(255@, 98@)
Audio.PlayMissionAudio(255@)
43@ += 1
257@ = 3

:GUNS1_5934
if 
  257@ == 3
goto_if_false @GUNS1_6103
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_6042
if 
  255@ == 1
goto_if_false @GUNS1_6007
255@ = 2
256@ = 1
goto @GUNS1_6021

:GUNS1_6007
255@ = 1
256@ = 2

:GUNS1_6021
254@ = 0
257@ = 0
goto @GUNS1_6103

:GUNS1_6042
if 
  not Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_6103
if 
  76 > 254@
goto_if_false @GUNS1_6103
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
Audio.LoadMissionAudio(256@, 172@(263@,82i))

:GUNS1_6103
goto @GUNS1_6254

:GUNS1_6110
if 
  59@ == 1
goto_if_false @GUNS1_6217
if 
  56@ == 0
goto_if_false @GUNS1_6210
Player.SetGroupToFollowNever($player1, False)
Blip.Remove(104@)
55@ = 0
Text.ClearPrints
Text.Print('GUNS130', 5000, 1)
105@ = Blip.AddForCoord(2819.9, -1181.7, 25.15)
56@ = 1

:GUNS1_6210
goto @GUNS1_6254

:GUNS1_6217
if 
  55@ == 1
goto_if_false @GUNS1_6254
Player.SetGroupToFollowNever($player1, False)
Blip.Remove(104@)
55@ = 0

:GUNS1_6254
if 
  Char.IsInCar(98@, 102@)
goto_if_false @GUNS1_6349
if 
  59@ == 0
goto_if_false @GUNS1_6342
if 
  57@ == 1
goto_if_false @GUNS1_6321
Blip.Remove(108@)
57@ = 0

:GUNS1_6321
59@ = 1
58@ = 0
59@ = 1

:GUNS1_6342
goto @GUNS1_6558

:GUNS1_6349
if 
  59@ == 1
goto_if_false @GUNS1_6374
59@ = 0

:GUNS1_6374
if and
  57@ == 0
  55@ == 0
goto_if_false @GUNS1_6471
Blip.Remove(105@)
56@ = 0
108@ = Blip.AddForChar(98@)
Blip.SetAsFriendly(108@, True)
if 
  Text.IsMessageBeingDisplayed
goto_if_false @GUNS1_6446
44@ = 1

:GUNS1_6446
Text.ClearPrints
Text.Print('GUNS143', 5000, 1)
57@ = 1

:GUNS1_6471
if 
  58@ == 0
goto_if_false @GUNS1_6515
Task.EnterCarAsPassenger(98@, 102@, -2, 0)
58@ = 1
goto @GUNS1_6558

:GUNS1_6515
38@ = Char.GetScriptTaskStatus(98@, 1482)
if and
  not is_int_lvar_equal_to_constant 38@ == 0
  not is_int_lvar_equal_to_constant 38@ == 1
goto_if_false @GUNS1_6558
58@ = 0

:GUNS1_6558
if and
  59@ == 1
  56@ == 1
goto_if_false @GUNS1_8086
if 
  44@ == 1
goto_if_false @GUNS1_6674
if 
  8 > 43@
goto_if_false @GUNS1_6674
Text.Print('GUNS135', 4000, 1)
43@ -= 1
if 
  0 > 43@
goto_if_false @GUNS1_6667
43@ = 0

:GUNS1_6667
44@ = 0

:GUNS1_6674
if 
  44@ == 0
goto_if_false @GUNS1_8086
if 
  258@ == 0
goto_if_false @GUNS1_8086
if 
  254@ <> 0
goto_if_false @GUNS1_7056
if 
  257@ == 0
goto_if_false @GUNS1_6774
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_6767
Audio.ClearMissionAudio(256@)

:GUNS1_6767
257@ = 1

:GUNS1_6774
if 
  257@ == 1
goto_if_false @GUNS1_6811
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_6811
if 
  257@ == 2
goto_if_false @GUNS1_6878
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_6878
Audio.PlayMissionAudio(255@)
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)
43@ += 1
257@ = 3

:GUNS1_6878
if 
  257@ == 3
goto_if_false @GUNS1_7056
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_6995
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  255@ == 1
goto_if_false @GUNS1_6960
255@ = 2
256@ = 1
goto @GUNS1_6974

:GUNS1_6960
255@ = 1
256@ = 2

:GUNS1_6974
254@ = 0
257@ = 0
goto @GUNS1_7056

:GUNS1_6995
if 
  not Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_7056
if 
  76 > 254@
goto_if_false @GUNS1_7056
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
Audio.LoadMissionAudio(256@, 172@(263@,82i))

:GUNS1_7056
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @GUNS1_8086
switch_start 259@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @GUNS1_7963 {caseNum1} 0 {caseLabel1} @GUNS1_7197 {caseNum2} 1 {caseLabel2} @GUNS1_7279 {caseNum3} 2 {caseLabel3} @GUNS1_7363 {caseNum4} 3 {caseLabel4} @GUNS1_7471 {caseNum5} 4 {caseLabel5} @GUNS1_7579 {caseNum6} 5 {caseLabel6} @GUNS1_7663 {caseNum7} 6 {caseLabel7} @GUNS1_7771
switch_continued 7 {caseLabel1} @GUNS1_7855 {caseNum2} -1 {caseLabel2} @GUNS1_8086 {caseNum3} -1 {caseLabel3} @GUNS1_8086 {caseNum4} -1 {caseLabel4} @GUNS1_8086 {caseNum5} -1 {caseLabel5} @GUNS1_8086 {caseNum6} -1 {caseLabel6} @GUNS1_8086 {caseNum7} -1 {caseLabel7} @GUNS1_8086 {caseNum8} -1 {caseLabel8} @GUNS1_8086 {caseNum9} -1 {caseLabel9} @GUNS1_8086

:GUNS1_7197
if 
  257@ == 0
goto_if_false @GUNS1_7272
254@ = 2
259@ = 1
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_7267
Char.StartFacialTalk(98@, 5000)
Char.ShutUpForScriptedSpeech(98@, True)
Char.ShutUpForScriptedSpeech($scplayer, True)

:GUNS1_7267
262@ = Clock.GetGameTimer()

:GUNS1_7272
goto @GUNS1_8086

:GUNS1_7279
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7356
if 
  257@ == 0
goto_if_false @GUNS1_7356
254@ = 3
259@ = 2
262@ = Clock.GetGameTimer()

:GUNS1_7356
goto @GUNS1_8086

:GUNS1_7363
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7464
if 
  257@ == 0
goto_if_false @GUNS1_7464
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_7445
Char.StartFacialTalk(98@, 4000)

:GUNS1_7445
254@ = 4
259@ = 3
262@ = Clock.GetGameTimer()

:GUNS1_7464
goto @GUNS1_8086

:GUNS1_7471
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7572
if 
  257@ == 0
goto_if_false @GUNS1_7572
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_7553
Char.StartFacialTalk(98@, 4000)

:GUNS1_7553
254@ = 5
259@ = 4
262@ = Clock.GetGameTimer()

:GUNS1_7572
goto @GUNS1_8086

:GUNS1_7579
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7656
if 
  257@ == 0
goto_if_false @GUNS1_7656
254@ = 6
259@ = 5
262@ = Clock.GetGameTimer()

:GUNS1_7656
goto @GUNS1_8086

:GUNS1_7663
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7764
if 
  257@ == 0
goto_if_false @GUNS1_7764
254@ = 7
259@ = 6
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_7759
Char.StartFacialTalk(98@, 3000)

:GUNS1_7759
262@ = Clock.GetGameTimer()

:GUNS1_7764
goto @GUNS1_8086

:GUNS1_7771
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7848
if 
  257@ == 0
goto_if_false @GUNS1_7848
254@ = 8
259@ = 7
262@ = Clock.GetGameTimer()

:GUNS1_7848
goto @GUNS1_8086

:GUNS1_7855
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7956
if 
  257@ == 0
goto_if_false @GUNS1_7956
254@ = 9
259@ = 8
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_7951
Char.StartFacialTalk(98@, 3000)

:GUNS1_7951
262@ = Clock.GetGameTimer()

:GUNS1_7956
goto @GUNS1_8086

:GUNS1_7963
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_8079
if 
  257@ == 0
goto_if_false @GUNS1_8079
258@ = 1
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_8063
Char.ShutUpForScriptedSpeech(98@, False)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk(98@)

:GUNS1_8063
Text.Print('GUNS130', 5000, 1)

:GUNS1_8079
goto @GUNS1_8086

:GUNS1_8086
if and
  59@ == 1
  56@ == 1
goto_if_false @GUNS1_8248
if 
  Char.LocateInCar3D($scplayer, 2819.9, -1181.7, 25.15, 4.0, 4.0, 2.5, True)
goto_if_false @GUNS1_8248
Player.SetControl($player1, False)
$car = Char.StoreCarIsInNoSave($scplayer)
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 2000000)
Blip.Remove(105@)
56@ = 0
44@ = 0
Game.SetPoliceIgnorePlayer($player1, True)
Text.ClearPrints
World.ClearArea(2819.9, -1181.7, 25.15, 30.0, True)
51@ = 3

:GUNS1_8248
if and
  4 > 51@
  80@ == 1
goto_if_false @GUNS1_8428
if 
  $tripskip_c3flag == 0
goto_if_false @GUNS1_8428
Text.ClearPrints
Char.ClearTasks($scplayer)
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @GUNS1_8405
Camera.DoFade(1000, Fade.Out)

:GUNS1_8334
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_8358
wait 0
goto @GUNS1_8334

:GUNS1_8358
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:GUNS1_8381
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_8405
wait 0
goto @GUNS1_8381

:GUNS1_8405
Text.Print('RYD1_35', 5000, 1)
goto @GUNS1_40480

:GUNS1_8428
if 
  51@ == 3
goto_if_false @GUNS1_11250
if 
  $played_vcrash1_before == 0
goto_if_false @GUNS1_8471
$played_vcrash1_before = 1

:GUNS1_8471
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Hud.FreezeTimer(True)
skip_cutscene_start_internal @GUNS1_10634
Camera.SetFixedPosition(2798.645, -1190.165, 31.8647, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2799.488, -1189.684, 31.6214, SwitchType.JumpCut)
Text.ClearPrints
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_8616
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_10634
if 
  254@ <> 0
goto_if_false @GUNS1_8977
if 
  257@ == 0
goto_if_false @GUNS1_8702
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_8695
Audio.ClearMissionAudio(256@)

:GUNS1_8695
257@ = 1

:GUNS1_8702
if 
  257@ == 1
goto_if_false @GUNS1_8739
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_8739
if 
  257@ == 2
goto_if_false @GUNS1_8799
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_8799
Audio.PlayMissionAudio(255@)
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)
257@ = 3

:GUNS1_8799
if 
  257@ == 3
goto_if_false @GUNS1_8977
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_8916
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  255@ == 1
goto_if_false @GUNS1_8881
255@ = 2
256@ = 1
goto @GUNS1_8895

:GUNS1_8881
255@ = 1
256@ = 2

:GUNS1_8895
254@ = 0
257@ = 0
goto @GUNS1_8977

:GUNS1_8916
if 
  not Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_8977
if 
  76 > 254@
goto_if_false @GUNS1_8977
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
Audio.LoadMissionAudio(256@, 172@(263@,82i))

:GUNS1_8977
switch_start 259@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @GUNS1_10555 {caseNum1} 0 {caseLabel1} @GUNS1_9040 {caseNum2} 1 {caseLabel2} @GUNS1_9158 {caseNum3} 2 {caseLabel3} @GUNS1_9321 {caseNum4} 3 {caseLabel4} @GUNS1_9457 {caseNum5} 4 {caseLabel5} @GUNS1_10010 {caseNum6} 5 {caseLabel6} @GUNS1_10233 {caseNum7} 6 {caseLabel7} @GUNS1_10421

:GUNS1_9040
if 
  257@ == 0
goto_if_false @GUNS1_9151
254@ = 10
259@ = 1
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_9146
Char.StartFacialTalk(98@, 4000)
125@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 2809.281, -1181.609, 24.6181, MoveState.Walk, -1)
Sequence.Close(125@)
Char.PerformSequence(98@, 125@)
Sequence.Clear(125@)

:GUNS1_9146
262@ = Clock.GetGameTimer()

:GUNS1_9151
goto @GUNS1_10627

:GUNS1_9158
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_9314
if 
  257@ == 0
goto_if_false @GUNS1_9314
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_9245
Char.StopFacialTalk(98@)
Char.StartFacialTalk($scplayer, 5000)

:GUNS1_9245
124@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 2808.119, -1182.255, 24.6181, MoveState.Walk, -1)
Sequence.Close(124@)
Char.PerformSequence($scplayer, 124@)
Sequence.Clear(124@)
254@ = 11
259@ = 2
262@ = Clock.GetGameTimer()

:GUNS1_9314
goto @GUNS1_10627

:GUNS1_9321
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_9450
if 
  257@ == 0
goto_if_false @GUNS1_9450
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_9408
Char.StopFacialTalk($scplayer)
Char.StartFacialTalk(98@, 4000)

:GUNS1_9408
254@ = 12
Streaming.RequestAnimation("ON_LOOKERS")
Streaming.RequestAnimation("GANGS")
259@ = 3
262@ = Clock.GetGameTimer()

:GUNS1_9450
goto @GUNS1_10627

:GUNS1_9457
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_10003
if 
  257@ == 0
goto_if_false @GUNS1_10003

:GUNS1_9515
if or
  not Streaming.HasAnimationLoaded("ON_LOOKERS")
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @GUNS1_9560
wait 0
goto @GUNS1_9515

:GUNS1_9560
if 
  73@ == 0
goto_if_false @GUNS1_9787
if and
  not Car.IsDead(102@)
  not Char.IsDead(98@)
goto_if_false @GUNS1_9787
if and
  not Char.IsInCar($scplayer, 102@)
  not Char.IsInCar(98@, 102@)
goto_if_false @GUNS1_9787
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately(98@)
Char.SetCoordinates($scplayer, 2808.119, -1182.255, 24.3693)
Char.SetHeading($scplayer, 353.059)
Char.SetCoordinates(98@, 2809.281, -1181.609, 24.3693)
Char.SetHeading(98@, 30.6396)
Camera.SetFixedPosition(2804.06, -1181.834, 25.8646, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2804.96, -1181.406, 25.9365, SwitchType.JumpCut)
Car.CloseAllDoors(102@)
Car.LockDoors(102@, CarLock.Locked)
Car.FixDoor(102@, CarDoor.LeftFrontDoor)
Car.FixDoor(102@, CarDoor.RightFrontDoor)
Car.FreezePosition(102@, True)
73@ = 1

:GUNS1_9787
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_9960
126@ = Sequence.Open()
Task.PlayAnim(-1, "SHOUT_IN", "ON_LOOKERS", 1000.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SHOUT_LOOP", "ON_LOOKERS", 1000.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SHOUT_OUT", "ON_LOOKERS", 1000.0, False, False, False, False, -1)
Sequence.Close(126@)
Char.PerformSequence(98@, 126@)
Sequence.Clear(126@)
Task.TurnCharToFaceChar($scplayer, 98@)

:GUNS1_9960
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_9984
Char.StartFacialTalk(98@, 4000)

:GUNS1_9984
254@ = 13
259@ = 4
262@ = Clock.GetGameTimer()

:GUNS1_10003
goto @GUNS1_10627

:GUNS1_10010
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_10226
if 
  257@ == 0
goto_if_false @GUNS1_10226
Streaming.RequestAnimation("GANGS")

:GUNS1_10077
if 
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @GUNS1_10108
wait 0
goto @GUNS1_10077

:GUNS1_10108
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_10137
Char.StopFacialTalk(98@)
Char.StartFacialTalk($scplayer, 3000)

:GUNS1_10137
254@ = 14
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_10214
Task.LookAtChar($scplayer, 98@, 5000)
Task.PlayAnim($scplayer, "PRTIAL_GNGTLKC", "GANGS", 4.0, False, False, False, False, -1)

:GUNS1_10214
259@ = 5
262@ = Clock.GetGameTimer()

:GUNS1_10226
goto @GUNS1_10627

:GUNS1_10233
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_10414
if 
  257@ == 0
goto_if_false @GUNS1_10414
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_10320
Char.StopFacialTalk($scplayer)
Char.StartFacialTalk(98@, 4000)

:GUNS1_10320
254@ = 15
Char.ClearTasks($scplayer)
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_10402
Task.LookAtChar(98@, $scplayer, 3000)
Task.PlayAnim(98@, "PRTIAL_GNGTLKB", "GANGS", 4.0, False, False, False, False, -1)

:GUNS1_10402
259@ = 6
262@ = Clock.GetGameTimer()

:GUNS1_10414
goto @GUNS1_10627

:GUNS1_10421
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_10548
if 
  257@ == 0
goto_if_false @GUNS1_10548
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_10503
Char.StartFacialTalk(98@, 4000)

:GUNS1_10503
254@ = 16
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_10536
Char.ClearLookAt(98@)
Task.ShakeFist(98@)

:GUNS1_10536
259@ = 7
262@ = Clock.GetGameTimer()

:GUNS1_10548
goto @GUNS1_10627

:GUNS1_10555
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_10620
if 
  257@ == 0
goto_if_false @GUNS1_10620
258@ = 1

:GUNS1_10620
goto @GUNS1_10627

:GUNS1_10627
goto @GUNS1_8616

:GUNS1_10634
skip_cutscene_end 
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_10662
Char.StopFacialTalk(98@)
Char.StopFacialTalk($scplayer)

:GUNS1_10662
Audio.ClearMissionAudio(255@)
Audio.ClearMissionAudio(256@)
Hud.FreezeTimer(False)
if 
  73@ == 0
goto_if_false @GUNS1_10911
if and
  not Car.IsDead(102@)
  not Char.IsDead(98@)
goto_if_false @GUNS1_10911
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately(98@)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @GUNS1_10768
Char.SetCoordinates($scplayer, 2808.119, -1182.255, 24.3693)
goto @GUNS1_10788

:GUNS1_10768
Char.WarpFromCarToCoord($scplayer, 2808.119, -1182.255, 24.3693)

:GUNS1_10788
Char.SetHeading($scplayer, 10.3905)
if 
  not Char.IsInAnyCar(98@)
goto_if_false @GUNS1_10841
Char.SetCoordinatesNoOffset(98@, 2809.281, -1181.609, 24.6181)
goto @GUNS1_10861

:GUNS1_10841
Char.WarpFromCarToCoord(98@, 2809.281, -1181.609, 24.6181)

:GUNS1_10861
Char.SetHeading(98@, 30.6396)
Car.CloseAllDoors(102@)
Car.LockDoors(102@, CarLock.Locked)
Car.FixDoor(102@, CarDoor.LeftFrontDoor)
Car.FixDoor(102@, CarDoor.RightFrontDoor)
Car.FreezePosition(102@, True)
73@ = 1

:GUNS1_10911
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_10937
Char.ClearTasksImmediately(98@)
Char.ClearLookAt(98@)

:GUNS1_10937
Char.ClearTasksImmediately($scplayer)
Char.ClearLookAt($scplayer)
Streaming.RemoveAnimation("ON_LOOKERS")
Text.ClearPrints
Camera.RestoreJumpcut
World.SwitchEntryExit('BURHOUS', True)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
109@ = Blip.AddForCoord(2808.0, -1177.0, 26.0)
Text.Print('RYD1_39', 5000, 1)
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_11243
if 
  Char.IsGroupMember(98@, $Players_Group)
goto_if_false @GUNS1_11065
Char.RemoveFromGroup(98@)

:GUNS1_11065
128@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2829.412, -1187.152, 23.8422, MoveState.Walk, -2)
Task.LookAtCoord(-1, 2833.251, -1197.908, 23.3976, 2500)
Task.LookAtCoord(-1, 2831.166, -1169.792, 23.9627, 2500)
Task.StandStill(-1, 5000)
Task.GoStraightToCoord(-1, 2811.438, -1185.982, 24.2707, MoveState.Walk, -2)
Task.LookAtCoord(-1, 2808.122, -1190.884, 24.3397, 2500)
Task.LookAtCoord(-1, 2808.43, -1177.409, 24.3621, 2500)
Task.StandStill(-1, 5000)
Sequence.SetToRepeat(128@, True)
Sequence.Close(128@)
Char.PerformSequence(98@, 128@)
Sequence.Clear(128@)

:GUNS1_11243
51@ = 4

:GUNS1_11250
if 
  51@ == 4
goto_if_false @GUNS1_12377
if or
  Char.LocateAnyMeans3D($scplayer, 2808.0, -1170.0, 1026.0, 10.0, 10.0, 10.0, False)
  Char.LocateAnyMeans3D($scplayer, 2807.96, -1176.236, 24.3824, 1.2, 1.2, 3.0, False)
goto_if_false @GUNS1_12377
Text.ClearPrints
Blip.Remove(109@)
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:GUNS1_11374
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_11398
wait 0
goto @GUNS1_11374

:GUNS1_11398
Text.ClearPrints
Text.ClearHelp
Hud.DisplayRadar(False)
Hud.Display(False)
Camera.SetFixedPosition(2806.792, -1168.75, 1025.883, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2807.339, -1169.587, 1025.903, SwitchType.JumpCut)
Hud.SetRadarZoom(90)
Hud.SwitchWidescreen(True)
Char.ClearTasksImmediately($scplayer)
Streaming.SetAreaVisible(8)
Streaming.LoadScene(2807.62, -1169.88, 1024.578)
Streaming.SetAreaVisible(8)
Char.SetHasUsedEntryExit($scplayer, 2807.96, -1176.236, 20.0)
Char.SetCoordinates($scplayer, 2807.62, -1171.9, 1024.578)
Char.SetHeading($scplayer, 0.0)
167@ = 0.0
$ryd1_time_to_daylight = 0
Streaming.SetAreaVisible(8)
Path.SwitchPedRoadsOff(2775.0, -1196.4, 0.0, 2840.0, -1141.0, 40.0)
World.ClearArea(2808.73, -1168.32, 1024.6, 100.0, True)
Streaming.LoadScene(2808.73, -1168.32, 1024.6)
Camera.RestoreJumpcut
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_11666
Char.ClearTasks(98@)

:GUNS1_11666
Streaming.RequestModel(#DB_AMMO)

:GUNS1_11671
if 
  not Streaming.HasModelLoaded(#DB_AMMO)
goto_if_false @GUNS1_11698
wait 0
goto @GUNS1_11671

:GUNS1_11698
34@ = 0

:GUNS1_11705
if 
  7 > 34@
goto_if_false @GUNS1_11911
117@(34@,7i) = Object.Create(#DB_AMMO, 132@(34@,7f), 139@(34@,7f), 146@(34@,7f))
110@(34@,7i) = Blip.AddForObject(117@(34@,7i))
163@, 164@, 165@ = Object.GetCoordinates(117@(34@,7i))
if 
  165@ > 700.0
goto_if_false @GUNS1_11835
Blip.SetEntryExit(110@(34@,7i), 2807.844, -1176.985, 10.0)

:GUNS1_11835
81@(34@,7i) = 1
Object.SetAreaVisible(117@(34@,7i), 8)
Object.SetAsStealable(117@(34@,7i), True)
Object.SetCollision(117@(34@,7i), True)
Object.SetDynamic(117@(34@,7i), True)
47@ += 1
34@ += 1
goto @GUNS1_11705

:GUNS1_11911
Streaming.RequestAnimation("INT_HOUSE")
Streaming.RequestAnimation("GANGS")

:GUNS1_11933
if or
  not Streaming.HasAnimationLoaded("INT_HOUSE")
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @GUNS1_11977
wait 0
goto @GUNS1_11933

:GUNS1_11977
Streaming.RequestModel(62)
Streaming.RequestModel(349)

:GUNS1_11986
if or
  not Streaming.HasModelLoaded(62)
  not Streaming.HasModelLoaded(349)
goto_if_false @GUNS1_12017
wait 0
goto @GUNS1_11986

:GUNS1_12017
99@ = Char.Create(PedType.Mission1, 62, 2816.857, -1169.075, 1028.172)
Char.SetAreaVisible(99@, 8)
Char.SetSuffersCriticalHits(99@, True)
World.SetCharUsesCollisionClosestObjectOfType(2816.857, -1169.075, 1028.172, 4.0, #MED_BED_8, False, 99@)
Char.SetDecisionMaker(99@, 40@)
Char.SetCoordinates(99@, 2816.857, -1169.075, 1028.172)
Char.SetHeading(99@, 90.0)
Char.GiveWeapon(99@, WeaponType.Shotgun, 3000)
Char.SetCurrentWeapon(99@, WeaponType.Unarmed)
Task.PlayAnim(99@, "BED_LOOP_R", "INT_HOUSE", 4.0, True, False, False, False, -1)
Camera.SetFixedPosition(2806.792, -1168.75, 1025.883, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2807.339, -1169.587, 1025.903, SwitchType.JumpCut)
if 
  95@ == 0
goto_if_false @GUNS1_12297
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
World.ClearArea(2819.9, -1181.7, 1025.15, 50.0, True)
95@ = 1

:GUNS1_12297
61@ = 1
35@ += 1
Blip.Remove(110@)
81@ = 0
Object.Delete(117@)
47@ -= 1
Camera.DoFade(500, Fade.In)

:GUNS1_12342
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_12366
wait 0
goto @GUNS1_12342

:GUNS1_12366
Hud.Display(True)
51@ = 5

:GUNS1_12377
if 
  7 > 51@
goto_if_false @GUNS1_12612
if 
  80@ == 0
goto_if_false @GUNS1_12605
$hours, $minutes = Clock.GetTimeOfDay()
if 
  $hours > 21
goto_if_false @GUNS1_12505
49@ = 24
sub_int_var_from_int_lvar 49@ -= $hours
49@ += 6
49@ *= 60000
set_var_int_to_lvar_int $tripskip_c3flag = 49@
49@ = 60000
sub_int_var_from_int_lvar 49@ -= $minutes
add_int_var_to_int_var $tripskip_c3flag += $minutes

:GUNS1_12505
if 
  5 > $hours
goto_if_false @GUNS1_12582
49@ = 6
sub_int_var_from_int_lvar 49@ -= $hours
49@ *= 60000
set_var_int_to_lvar_int $tripskip_c3flag = 49@
49@ = 60000
sub_int_var_from_int_lvar 49@ -= $minutes
add_int_var_to_int_var $tripskip_c3flag += $minutes

:GUNS1_12582
Hud.DisplayTimerWithString($tripskip_c3flag, TimerDirection.Down, 'RYD1_41')
80@ = 1

:GUNS1_12605
goto @GUNS1_12642

:GUNS1_12612
if 
  80@ == 1
goto_if_false @GUNS1_12642
Hud.ClearTimer($tripskip_c3flag)
80@ = 0

:GUNS1_12642
if 
  51@ == 5
goto_if_false @GUNS1_14250
World.ClearArea(2819.9, -1181.7, 1025.15, 50.0, True)
Hud.FreezeTimer(True)
skip_cutscene_start_internal @GUNS1_13601
Text.ClearHelp
Text.PrintHelpForever('RYD1_92')

:GUNS1_12708
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @GUNS1_12732
wait 0
goto @GUNS1_12708

:GUNS1_12732
TIMERA = 0
52@ = 0

:GUNS1_12746
if 
  52@ == 0
goto_if_false @GUNS1_12806
if or
  TIMERA > 4000
  not Player.IsPlaying($player1)
goto_if_false @GUNS1_12795
52@ = 1

:GUNS1_12795
wait 0
goto @GUNS1_12746

:GUNS1_12806
Text.ClearHelp
Text.PrintHelpForever('RYD1_93')

:GUNS1_12819
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @GUNS1_12843
wait 0
goto @GUNS1_12819

:GUNS1_12843
TIMERA = 0
52@ = 0

:GUNS1_12857
if 
  52@ == 0
goto_if_false @GUNS1_12917
if or
  TIMERA > 4000
  not Player.IsPlaying($player1)
goto_if_false @GUNS1_12906
52@ = 1

:GUNS1_12906
wait 0
goto @GUNS1_12857

:GUNS1_12917
Camera.SetFixedPosition(2815.59, -1169.15, 1029.45, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2820.48, -1173.33, 1028.01, SwitchType.JumpCut)
Text.ClearHelp
Text.PrintHelpForever('RYD1_94')

:GUNS1_12981
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @GUNS1_13005
wait 0
goto @GUNS1_12981

:GUNS1_13005
TIMERA = 0
52@ = 0
277@ = 3
278@ = 0
279@ = 0

:GUNS1_13040
if 
  52@ == 0
goto_if_false @GUNS1_13289
if 
  277@ <> 0
goto_if_false @GUNS1_13247
if 
  278@ == 0
goto_if_false @GUNS1_13120
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @GUNS1_13113
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:GUNS1_13113
278@ = 1

:GUNS1_13120
if 
  278@ == 1
goto_if_false @GUNS1_13156
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 273@(277@,4i))
278@ = 2

:GUNS1_13156
if 
  278@ == 2
goto_if_false @GUNS1_13200
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @GUNS1_13200
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
278@ = 3

:GUNS1_13200
if 
  278@ == 3
goto_if_false @GUNS1_13247
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @GUNS1_13247
277@ = 0
278@ = 0

:GUNS1_13247
if or
  TIMERA > 4000
  not Player.IsPlaying($player1)
goto_if_false @GUNS1_13278
52@ = 1

:GUNS1_13278
wait 0
goto @GUNS1_13040

:GUNS1_13289
Text.PrintHelpForever('RYD1_95')

:GUNS1_13300
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @GUNS1_13324
wait 0
goto @GUNS1_13300

:GUNS1_13324
TIMERA = 0
52@ = 0
277@ = 3
278@ = 0

:GUNS1_13352
if 
  52@ == 0
goto_if_false @GUNS1_13601
if 
  277@ <> 0
goto_if_false @GUNS1_13559
if 
  278@ == 0
goto_if_false @GUNS1_13432
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @GUNS1_13425
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:GUNS1_13425
278@ = 1

:GUNS1_13432
if 
  278@ == 1
goto_if_false @GUNS1_13468
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 273@(277@,4i))
278@ = 2

:GUNS1_13468
if 
  278@ == 2
goto_if_false @GUNS1_13512
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @GUNS1_13512
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
278@ = 3

:GUNS1_13512
if 
  278@ == 3
goto_if_false @GUNS1_13559
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @GUNS1_13559
277@ = 0
278@ = 0

:GUNS1_13559
if or
  TIMERA > 4000
  not Player.IsPlaying($player1)
goto_if_false @GUNS1_13590
52@ = 1

:GUNS1_13590
wait 0
goto @GUNS1_13352

:GUNS1_13601
skip_cutscene_end 
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Hud.FreezeTimer(False)
Text.ClearHelp
Text.ClearPrints
if and
  not Car.IsDead(102@)
  not Char.IsDead(98@)
goto_if_false @GUNS1_14029
World.ClearArea(2812.9, -1181.13, 1024.396, 100.0, True)
Car.SetCoordinates(102@, 2811.846, -1183.291, 24.2764)
Car.SetHeading(102@, 246.9816)
Car.OpenDoor(102@, CarDoor.LeftRearDoor)
Car.OpenDoor(102@, CarDoor.RightRearDoor)
Char.ClearTasks(98@)
154@, 155@, 156@ = Car.GetOffsetInWorldCoords(102@, -1.5, -4.0, 0.0)
153@ = Car.GetHeading(102@)
153@ -= 180.0
if 
  180.0 > 153@
goto_if_false @GUNS1_13787
153@ += 360.0

:GUNS1_13787
Char.ClearTasksImmediately(98@)
Char.SetCoordinates(98@, 2811.122, -1186.549, 24.2718)
Char.SetHeading(98@, 17.5866)
154@, 155@, 156@ = Car.GetOffsetInWorldCoords(102@, 0.0, -4.0, 0.0)
128@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2829.412, -1187.152, 23.8422, MoveState.Walk, -2)
Task.LookAtCoord(-1, 2833.251, -1197.908, 23.3976, 2500)
Task.LookAtCoord(-1, 2831.166, -1169.792, 23.9627, 2500)
Task.StandStill(-1, 5000)
Task.GoStraightToCoord(-1, 2811.438, -1185.982, 24.2707, MoveState.Walk, -2)
Task.LookAtCoord(-1, 2808.122, -1190.884, 24.3397, 2500)
Task.LookAtCoord(-1, 2808.43, -1177.409, 24.3621, 2500)
Task.StandStill(-1, 5000)
Sequence.SetToRepeat(128@, True)
Sequence.Close(128@)
Char.PerformSequence(98@, 128@)
Sequence.Clear(128@)

:GUNS1_14029
Char.ClearTasksImmediately($scplayer)
Camera.RestoreJumpcut
Streaming.RemoveAnimation("GANGS")
167@ = 0.0
$ryd1_time_to_daylight = 0
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
if 
  94@ == 0
goto_if_false @GUNS1_14149
167@ = 0.0
$ryd1_time_to_daylight = 0
$ryd1_time_to_daylight = 0
Hud.DisplayCounterWithString($ryd1_time_to_daylight, CounterDisplay.Bar, 'GUNS1_5')
Hud.DisplayRadar(False)
94@ = 1
TIMERB = 0

:GUNS1_14149
95@ = 1
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
51@ = 6
$ryd1_time_to_daylight = 0
167@ = 0.0

:GUNS1_14250
if and
  96@ == 0
  7 > 51@
goto_if_false @GUNS1_16100
if 
  91@ == 0
goto_if_false @GUNS1_14373
if 
  51@ == 6
goto_if_false @GUNS1_14373
if 
  TIMERB > 2500
goto_if_false @GUNS1_14373
Text.ClearPrints
Text.Print('RYD1_40', 5000, 1)
Text.PrintWithNumber('RYD1_97', 3, 5000, 1)
91@ = 1

:GUNS1_14373
if 
  95@ == 0
goto_if_false @GUNS1_16100
if 
  94@ == 0
goto_if_false @GUNS1_16100
37@ = Streaming.GetAreaVisible()
if 
  37@ == 8
goto_if_false @GUNS1_14574
if 
  Char.LocateAnyMeans3D($scplayer, 2807.62, -1171.9, 1024.578, 50.0, 50.0, 50.0, False)
goto_if_false @GUNS1_14567
if 
  96@ == 0
goto_if_false @GUNS1_14567
$ryd1_time_to_daylight = 0
167@ = 0.0
if 
  94@ == 0
goto_if_false @GUNS1_14567
Hud.DisplayCounterWithString($ryd1_time_to_daylight, CounterDisplay.Bar, 'GUNS1_5')
Hud.SetCounterFlashWhenFirstDisplayed($ryd1_time_to_daylight, False)
Hud.DisplayRadar(False)
94@ = 1

:GUNS1_14567
goto @GUNS1_16100

:GUNS1_14574
if 
  $tripskip_c3flag == 0
goto_if_false @GUNS1_16100
if 
  not Char.IsDead(99@)
goto_if_false @GUNS1_14695
Char.ClearTasks(99@)
Char.SetCoordinates(99@, 2806.996, -1169.809, 1024.612)
Char.SetHeading(99@, 193.7598)
Char.SetDecisionMaker(99@, 39@)
DecisionMaker.Remove(40@)
Char.SetRelationship(99@, RelationshipType.Hate, PedType.Player1)
127@ = Sequence.Open()
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(127@)
Char.PerformSequence(99@, 127@)
Sequence.Clear(127@)

:GUNS1_14695
49@ = 0

:GUNS1_14702
if 
  7 > 49@
goto_if_false @GUNS1_14807
if 
  Object.DoesExist(117@(49@,7i))
goto_if_false @GUNS1_14751
Object.SetAsStealable(117@(49@,7i), False)

:GUNS1_14751
if 
  81@(49@,7i) == 1
goto_if_false @GUNS1_14793
Blip.Remove(110@(49@,7i))
81@(49@,7i) = 0

:GUNS1_14793
49@ += 1
goto @GUNS1_14702

:GUNS1_14807
Hud.ClearTimer($tripskip_c3flag)
Hud.ClearCounter($ryd1_time_to_daylight)
Hud.DisplayRadar(True)
if 
  35@ > 3
goto_if_false @GUNS1_14858
Hud.ClearTimer($tripskip_c3flag)
51@ = 7
goto @GUNS1_16093

:GUNS1_14858
ENTEXT_63()
if 
  $player_is_completely_safe == 1
goto_if_false @GUNS1_15947
if and
  not Car.IsDead(102@)
  not Char.IsDead(98@)
goto_if_false @GUNS1_15947
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Text.ClearHelp
Text.ClearPrints
Car.LockDoors(102@, CarLock.Unlocked)
Car.FreezePosition(102@, False)
Streaming.LoadScene(2807.858, -1188.103, 25.4725)
Camera.SetFixedPosition(2807.858, -1188.103, 25.4725, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2808.792, -1187.748, 25.4449, SwitchType.JumpCut)
Path.FlushRoute
Path.ExtendRoute(2832.257, -1182.708, 23.7924)
Path.ExtendRoute(2840.811, -1211.145, 22.6279)
127@ = Sequence.Open()
if 
  51@ > 5
goto_if_false @GUNS1_15084
Task.GoStraightToCoord(-1, 2812.091, -1186.198, 24.2658, MoveState.Run, 10000)

:GUNS1_15084
Task.EnterCarAsDriver(-1, 102@, 20000)
Task.DrivePointRouteAdvanced(-1, 102@, 25.0, DriveMode.Accurate, 0, DrivingMode.SlowDownForCars)
Sequence.Close(127@)
Char.PerformSequence(98@, 127@)
Sequence.Clear(127@)
254@ = 0
255@ = 1
256@ = 2
257@ = 0
263@ = 0
259@ = 0
52@ = 0
TIMERA = 0

:GUNS1_15186
if 
  52@ == 0
goto_if_false @GUNS1_15947
if 
  254@ <> 0
goto_if_false @GUNS1_15543
if 
  257@ == 0
goto_if_false @GUNS1_15268
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_15261
Audio.ClearMissionAudio(256@)

:GUNS1_15261
257@ = 1

:GUNS1_15268
if 
  257@ == 1
goto_if_false @GUNS1_15305
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_15305
if 
  257@ == 2
goto_if_false @GUNS1_15365
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_15365
Audio.PlayMissionAudio(255@)
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)
257@ = 3

:GUNS1_15365
if 
  257@ == 3
goto_if_false @GUNS1_15543
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_15482
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  255@ == 1
goto_if_false @GUNS1_15447
255@ = 2
256@ = 1
goto @GUNS1_15461

:GUNS1_15447
255@ = 1
256@ = 2

:GUNS1_15461
254@ = 0
257@ = 0
goto @GUNS1_15543

:GUNS1_15482
if 
  not Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_15543
if 
  76 > 254@
goto_if_false @GUNS1_15543
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
Audio.LoadMissionAudio(256@, 172@(263@,82i))

:GUNS1_15543
switch_start 259@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @GUNS1_15787 {caseNum1} 0 {caseLabel1} @GUNS1_15606 {caseNum2} 1 {caseLabel2} @GUNS1_15674 {caseNum3} -1 {caseLabel3} @GUNS1_15857 {caseNum4} -1 {caseLabel4} @GUNS1_15857 {caseNum5} -1 {caseLabel5} @GUNS1_15857 {caseNum6} -1 {caseLabel6} @GUNS1_15857 {caseNum7} -1 {caseLabel7} @GUNS1_15857

:GUNS1_15606
if 
  257@ == 0
goto_if_false @GUNS1_15667
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_15648
Char.StartFacialTalk(98@, 5000)

:GUNS1_15648
254@ = 81
259@ = 1
262@ = Clock.GetGameTimer()

:GUNS1_15667
goto @GUNS1_15857

:GUNS1_15674
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_15780
if 
  257@ == 0
goto_if_false @GUNS1_15780
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_15753
Char.StopFacialTalk(98@)

:GUNS1_15753
Char.StartFacialTalk($scplayer, 5000)
254@ = 77
259@ = 2
262@ = Clock.GetGameTimer()

:GUNS1_15780
goto @GUNS1_15857

:GUNS1_15787
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_15850
if 
  257@ == 0
goto_if_false @GUNS1_15850
Char.StopFacialTalk($scplayer)

:GUNS1_15850
goto @GUNS1_15857

:GUNS1_15857
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_15891
38@ = Char.GetScriptTaskStatus(98@, 1560)
goto @GUNS1_15898

:GUNS1_15891
52@ = 1

:GUNS1_15898
if or
  TIMERA > 15000
  is_int_lvar_equal_to_constant 38@ == 7
goto_if_false @GUNS1_15936
Char.StopFacialTalk($scplayer)
52@ = 1

:GUNS1_15936
wait 0
goto @GUNS1_15186

:GUNS1_15947
Text.ClearPrints
Char.ClearTasks($scplayer)
Camera.RestoreJumpcut
Player.AlterWantedLevel($player1, 2)
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @GUNS1_16070
Camera.DoFade(1000, Fade.Out)

:GUNS1_15999
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_16023
wait 0
goto @GUNS1_15999

:GUNS1_16023
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:GUNS1_16046
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_16070
wait 0
goto @GUNS1_16046

:GUNS1_16070
Text.Print('RYD1_96', 5000, 1)
goto @GUNS1_40480

:GUNS1_16093
94@ = 0

:GUNS1_16100
if 
  7 > 51@
goto_if_false @GUNS1_16233
160@, 161@, 162@ = Char.GetCoordinates($scplayer)
if 
  162@ > 900.0
goto_if_false @GUNS1_16208
if 
  92@ == 0
goto_if_false @GUNS1_16201
37@ = Streaming.GetAreaVisible()
if 
  37@ == 8
goto_if_false @GUNS1_16201
92@ = 1

:GUNS1_16201
goto @GUNS1_16233

:GUNS1_16208
if 
  92@ == 1
goto_if_false @GUNS1_16233
92@ = 0

:GUNS1_16233
if 
  51@ > 2
goto_if_false @GUNS1_23534
if 
  7 > 51@
goto_if_false @GUNS1_23534
if 
  94@ == 1
goto_if_false @GUNS1_23534
if 
  96@ == 0
goto_if_false @GUNS1_23534
37@ = Streaming.GetAreaVisible()
if 
  37@ == 0
goto_if_false @GUNS1_16569
if 
  95@ == 1
goto_if_false @GUNS1_16472
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
277@ = 3
278@ = 0
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
if 
  60@ == 1
goto_if_false @GUNS1_16427
if 
  Object.DoesExist(117@(36@,7i))
goto_if_false @GUNS1_16427
Object.SetAreaVisible(117@(36@,7i), 0)

:GUNS1_16427
if 
  94@ == 1
goto_if_false @GUNS1_16461
Hud.ClearCounter($ryd1_time_to_daylight)
Hud.DisplayRadar(True)
94@ = 0

:GUNS1_16461
95@ = 0
Hud.SetRadarZoom(0)

:GUNS1_16472
if 
  $ryd1_time_to_daylight > 11
goto_if_false @GUNS1_16552
$ryd1_time_to_daylight -= 10
if 
  167@ > 11.0
goto_if_false @GUNS1_16535
167@ -= 10.0
goto @GUNS1_16545

:GUNS1_16535
167@ = 0.0

:GUNS1_16545
goto @GUNS1_16569

:GUNS1_16552
167@ = 0.0
$ryd1_time_to_daylight = 0

:GUNS1_16569
if 
  37@ == 8
goto_if_false @GUNS1_17345
if 
  Char.LocateAnyMeans3D($scplayer, 2809.0, -1169.0, 1026.0, 30.0, 30.0, 30.0, False)
goto_if_false @GUNS1_17345
if 
  277@ <> 0
goto_if_false @GUNS1_16861
if 
  278@ == 0
goto_if_false @GUNS1_16697
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @GUNS1_16690
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:GUNS1_16690
278@ = 1

:GUNS1_16697
if 
  278@ == 1
goto_if_false @GUNS1_16733
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 273@(277@,4i))
278@ = 2

:GUNS1_16733
if 
  278@ == 2
goto_if_false @GUNS1_16800
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @GUNS1_16800
if 
  not Char.IsDead(99@)
goto_if_false @GUNS1_16793
Audio.AttachMissionAudioToChar(MissionAudioSlot.Slot3, 99@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:GUNS1_16793
278@ = 3

:GUNS1_16800
if 
  278@ == 3
goto_if_false @GUNS1_16854
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @GUNS1_16854
277@ = 0
278@ = 0
TIMERA = 0

:GUNS1_16854
goto @GUNS1_16887

:GUNS1_16861
if 
  TIMERA > 3000
goto_if_false @GUNS1_16887
277@ = 3

:GUNS1_16887
if 
  not Char.IsDead(99@)
goto_if_false @GUNS1_17011
160@, 161@, 162@ = Char.GetCoordinates($scplayer)
if 
  79@ == 1
goto_if_false @GUNS1_16968
166@ = World.GetSoundLevelAtCoords(-1, 160@, 161@, 162@)
166@ *= 1.6
goto @GUNS1_17011

:GUNS1_16968
if 
  TIMERB > 500
goto_if_false @GUNS1_16994
79@ = 1

:GUNS1_16994
$ryd1_time_to_daylight = 0
167@ = 0.0

:GUNS1_17011
if 
  95@ == 0
goto_if_false @GUNS1_17127
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
World.ClearArea(2819.9, -1181.7, 1025.15, 50.0, True)
if 
  60@ == 1
goto_if_false @GUNS1_17116
if 
  Object.DoesExist(117@(36@,7i))
goto_if_false @GUNS1_17116
Object.SetAreaVisible(117@(36@,7i), 8)

:GUNS1_17116
Hud.SetRadarZoom(90)
95@ = 1

:GUNS1_17127
if 
  166@ > 20.0
goto_if_false @GUNS1_17166
166@ -= 20.0
add_float_lvar_to_float_lvar 167@ += 166@

:GUNS1_17166
167@ *= 0.99
cset_var_int_to_lvar_float $ryd1_time_to_daylight =# 167@
if 
  $ryd1_time_to_daylight >= 100
goto_if_false @GUNS1_17246
$ryd1_time_to_daylight = 100
if 
  171@ == 0
goto_if_false @GUNS1_17239
169@ = Clock.GetGameTimer()
171@ = 1

:GUNS1_17239
goto @GUNS1_17271

:GUNS1_17246
if 
  0 > $ryd1_time_to_daylight
goto_if_false @GUNS1_17271
$ryd1_time_to_daylight = 0

:GUNS1_17271
if 
  not Char.IsDead(99@)
goto_if_false @GUNS1_17345
if or
  Char.HasBeenDamagedByChar(99@, $scplayer)
  Char.LocateAnyMeansChar3D($scplayer, 99@, 1.0, 1.0, 2.0, False)
goto_if_false @GUNS1_17345
171@ = 2
$ryd1_time_to_daylight = 100

:GUNS1_17345
if 
  171@ == 1
goto_if_false @GUNS1_18259
168@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 170@ = 168@
sub_int_lvar_from_int_lvar 170@ -= 169@
if 
  170@ > 1500
goto_if_false @GUNS1_18259
if 
  93@ == 0
goto_if_false @GUNS1_18252
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
277@ = 0
278@ = 0
Text.ClearPrints
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2816.096, -1169.522, 1029.081, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2817.093, -1169.588, 1029.055, SwitchType.JumpCut)
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_17573
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_18178
if 
  254@ <> 0
goto_if_false @GUNS1_17934
if 
  257@ == 0
goto_if_false @GUNS1_17659
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_17652
Audio.ClearMissionAudio(256@)

:GUNS1_17652
257@ = 1

:GUNS1_17659
if 
  257@ == 1
goto_if_false @GUNS1_17696
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_17696
if 
  257@ == 2
goto_if_false @GUNS1_17756
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_17756
Audio.PlayMissionAudio(255@)
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)
257@ = 3

:GUNS1_17756
if 
  257@ == 3
goto_if_false @GUNS1_17934
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_17873
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  255@ == 1
goto_if_false @GUNS1_17838
255@ = 2
256@ = 1
goto @GUNS1_17852

:GUNS1_17838
255@ = 1
256@ = 2

:GUNS1_17852
254@ = 0
257@ = 0
goto @GUNS1_17934

:GUNS1_17873
if 
  not Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_17934
if 
  76 > 254@
goto_if_false @GUNS1_17934
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
Audio.LoadMissionAudio(256@, 172@(263@,82i))

:GUNS1_17934
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @GUNS1_18171
switch_start 259@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @GUNS1_18078 {caseNum1} 0 {caseLabel1} @GUNS1_18010 {caseNum2} -1 {caseLabel2} @GUNS1_18171 {caseNum3} -1 {caseLabel3} @GUNS1_18171 {caseNum4} -1 {caseLabel4} @GUNS1_18171 {caseNum5} -1 {caseLabel5} @GUNS1_18171 {caseNum6} -1 {caseLabel6} @GUNS1_18171 {caseNum7} -1 {caseLabel7} @GUNS1_18171

:GUNS1_18010
if 
  257@ == 0
goto_if_false @GUNS1_18071
if 
  not Char.IsDead(99@)
goto_if_false @GUNS1_18052
Char.StartFacialTalk(99@, 5000)

:GUNS1_18052
254@ = 36
259@ = 1
262@ = Clock.GetGameTimer()

:GUNS1_18071
goto @GUNS1_18171

:GUNS1_18078
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_18164
if 
  not Char.IsDead(99@)
goto_if_false @GUNS1_18139
Char.StopFacialTalk(99@)

:GUNS1_18139
if 
  257@ == 0
goto_if_false @GUNS1_18164
258@ = 1

:GUNS1_18164
goto @GUNS1_18171

:GUNS1_18171
goto @GUNS1_17573

:GUNS1_18178
Text.Print('GUNS134', 3000, 1)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
171@ = 0
$ryd1_time_to_daylight = 0
167@ = 0.0
93@ = 1
277@ = 3
goto @GUNS1_18259

:GUNS1_18252
171@ = 2

:GUNS1_18259
if or
  171@ == 2
  $tripskip_c3flag == 0
goto_if_false @GUNS1_23174
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
278@ = 0
277@ = 0
49@ = 0

:GUNS1_18309
if 
  7 > 49@
goto_if_false @GUNS1_18414
if 
  Object.DoesExist(117@(49@,7i))
goto_if_false @GUNS1_18358
Object.SetAsStealable(117@(49@,7i), False)

:GUNS1_18358
if 
  81@(49@,7i) == 1
goto_if_false @GUNS1_18400
Blip.Remove(110@(49@,7i))
81@(49@,7i) = 0

:GUNS1_18400
49@ += 1
goto @GUNS1_18309

:GUNS1_18414
if 
  37@ == 8
goto_if_false @GUNS1_21775
if 
  not Char.IsDead(99@)
goto_if_false @GUNS1_21768
49@ = Char.GetHealth(99@)
if 
  20 > 49@
goto_if_false @GUNS1_18481
Char.SetHealth(99@, 20)

:GUNS1_18481
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Char.ClearTasksImmediately(99@)
Char.FreezePositionAndDontLoadCollision(99@, False)
157@, 158@, 159@ = Char.GetOffsetInWorldCoords($scplayer, 1.0, 1.0, 0.0)
World.ClearArea(2808.123, -1172.823, 1024.612, 10.0, True)
if 
  Char.LocateAnyMeansChar3D($scplayer, 99@, 1.0, 1.0, 2.0, False)
goto_if_false @GUNS1_18616
Char.SetCoordinates($scplayer, 2817.229, -1166.11, 1028.172)
Char.SetHeading($scplayer, 94.7698)

:GUNS1_18616
Char.SetCoordinates(99@, 2815.961, -1169.392, 1028.172)
Char.SetHeading(99@, 14.1)
Camera.SetFixedPosition(2816.242, -1168.358, 1029.485, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2815.674, -1169.144, 1029.729, SwitchType.JumpCut)
127@ = Sequence.Open()
Task.ScratchHead(-1)
Task.ShakeFist(-1)
Sequence.Close(127@)
Char.PerformSequence(99@, 127@)
Sequence.Clear(127@)
Player.SetControl($player1, False)
Char.ClearTasks($scplayer)
Hud.SwitchWidescreen(True)
Text.ClearPrints
Text.ClearHelp
Char.SetProofs($scplayer, True, True, True, True, True)
if 
  4 > 35@
goto_if_false @GUNS1_18811
Char.SetCoordinates($scplayer, 2807.525, -1167.076, 1024.578)
Char.SetHeading($scplayer, 169.2411)

:GUNS1_18811
Char.SetCurrentWeapon(99@, WeaponType.Shotgun)
skip_cutscene_start_internal @GUNS1_19606
Text.ClearPrints
if 
  $tripskip_c3flag > 0
goto_if_false @GUNS1_18892
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
if 
  not Char.IsDead(99@)
goto_if_false @GUNS1_18885
Char.StopFacialTalk(99@)
Char.StartFacialTalk(99@, 4000)
254@ = 39

:GUNS1_18885
goto @GUNS1_18922

:GUNS1_18892
Text.Print('RYD1_36', 4000, 1)
278@ = 0
277@ = 1

:GUNS1_18922
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
52@ = 0
TIMERA = 0

:GUNS1_18992
if 
  52@ == 0
goto_if_false @GUNS1_19606
if 
  277@ <> 0
goto_if_false @GUNS1_19211
if 
  278@ == 0
goto_if_false @GUNS1_19072
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @GUNS1_19065
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:GUNS1_19065
278@ = 1

:GUNS1_19072
if 
  278@ == 1
goto_if_false @GUNS1_19108
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 273@(277@,4i))
278@ = 2

:GUNS1_19108
if 
  278@ == 2
goto_if_false @GUNS1_19152
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @GUNS1_19152
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
278@ = 3

:GUNS1_19152
if 
  278@ == 3
goto_if_false @GUNS1_19211
if or
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
  TIMERA > 3000
goto_if_false @GUNS1_19211
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
277@ = 0
278@ = 0

:GUNS1_19211
if 
  254@ <> 0
goto_if_false @GUNS1_19503
if 
  257@ == 0
goto_if_false @GUNS1_19275
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_19268
Audio.ClearMissionAudio(256@)

:GUNS1_19268
257@ = 1

:GUNS1_19275
if 
  257@ == 1
goto_if_false @GUNS1_19312
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_19312
if 
  257@ == 2
goto_if_false @GUNS1_19372
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_19372
Audio.PlayMissionAudio(255@)
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)
257@ = 3

:GUNS1_19372
if 
  257@ == 3
goto_if_false @GUNS1_19503
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_19503
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  not Char.IsDead(99@)
goto_if_false @GUNS1_19436
Char.StopFacialTalk(99@)

:GUNS1_19436
if 
  255@ == 1
goto_if_false @GUNS1_19475
255@ = 2
256@ = 1
goto @GUNS1_19489

:GUNS1_19475
255@ = 1
256@ = 2

:GUNS1_19489
254@ = 0
257@ = 0

:GUNS1_19503
if 
  Char.IsDead(99@)
goto_if_false @GUNS1_19533
52@ = 1
goto @GUNS1_19569

:GUNS1_19533
38@ = Char.GetScriptTaskStatus(99@, 1560)
if 
  is_int_lvar_equal_to_constant 38@ == 7
goto_if_false @GUNS1_19569
52@ = 1

:GUNS1_19569
if 
  TIMERA > 15000
goto_if_false @GUNS1_19595
52@ = 1

:GUNS1_19595
wait 0
goto @GUNS1_18992

:GUNS1_19606
skip_cutscene_end 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Text.ClearPrints
Char.HideWeaponForScriptedCutscene($scplayer, False)
Streaming.RemoveAnimation("GANGS")
60@ = 0
if 
  not Char.IsDead(99@)
goto_if_false @GUNS1_19923
Char.StopFacialTalk(99@)
if and
  Char.LocateAnyMeans3D($scplayer, 2811.882, -1167.57, 1029.22, 9.1, 7.2, 5.0, False)
  162@ > 1029.0
goto_if_false @GUNS1_19785
127@ = Sequence.Open()
Task.LookAtChar(-1, $scplayer, 5000)
Task.GotoChar(-1, $scplayer, -1, 5.0)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(127@)
Char.PerformSequence(99@, 127@)
Sequence.Clear(127@)
goto @GUNS1_19923

:GUNS1_19785
Char.SetCoordinates(99@, 2804.325, -1162.254, 1028.18)
Char.SetHeading(99@, 180.0)
127@ = Sequence.Open()
Task.LookAtChar(-1, $scplayer, 10000)
Task.GoToCoordWhileShooting(-1, 2803.977, -1168.157, 1025.375, 6, 0.5, 0.0, $scplayer)
Task.GoToCoordWhileShooting(-1, 2806.996, -1169.809, 1024.612, 6, 0.5, 0.0, $scplayer)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(127@)
Char.PerformSequence(99@, 127@)
Sequence.Clear(127@)

:GUNS1_19923
Char.ClearTasks($scplayer)
Char.ClearLookAt($scplayer)
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_19959
Char.ClearTasks(98@)
Char.ClearLookAt(98@)

:GUNS1_19959
World.ClearArea(2806.996, -1169.209, 1024.612, 50.0, True)
if and
  not Char.IsDead(98@)
  not Car.IsDead(102@)
goto_if_false @GUNS1_20122
Char.ClearTasks(98@)
154@, 155@, 156@ = Car.GetOffsetInWorldCoords(102@, -1.5, -4.0, 0.0)
153@ = Car.GetHeading(102@)
153@ -= 180.0
if 
  180.0 > 153@
goto_if_false @GUNS1_20087
153@ += 360.0

:GUNS1_20087
Char.ClearTasksImmediately(98@)
Char.SetCoordinates(98@, 2811.122, -1186.549, 24.2718)
Char.SetHeading(98@, 17.5866)

:GUNS1_20122
if 
  not Char.IsDead(99@)
goto_if_false @GUNS1_20168
Char.SetDecisionMaker(99@, 39@)
DecisionMaker.Remove(40@)
Char.SetRelationship(99@, RelationshipType.Hate, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)

:GUNS1_20168
Streaming.RemoveAnimation("INT_HOUSE")
if 
  35@ > 3
goto_if_false @GUNS1_20303
if 
  not Char.IsDead(99@)
goto_if_false @GUNS1_20245
127@ = Sequence.Open()
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(127@)
Char.PerformSequence(99@, 127@)
Sequence.Clear(127@)

:GUNS1_20245
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Char.SetProofs($scplayer, False, False, False, False, False)
Text.Print('RYD1_44', 4000, 1)
43@ = 0
goto @GUNS1_21768

:GUNS1_20303
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_20373
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_20834
if 
  254@ <> 0
goto_if_false @GUNS1_20673
if 
  257@ == 0
goto_if_false @GUNS1_20459
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_20452
Audio.ClearMissionAudio(256@)

:GUNS1_20452
257@ = 1

:GUNS1_20459
if 
  257@ == 1
goto_if_false @GUNS1_20496
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_20496
if 
  257@ == 2
goto_if_false @GUNS1_20556
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_20556
Audio.PlayMissionAudio(255@)
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)
257@ = 3

:GUNS1_20556
if 
  257@ == 3
goto_if_false @GUNS1_20673
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_20673
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  255@ == 1
goto_if_false @GUNS1_20638
255@ = 2
256@ = 1
goto @GUNS1_20652

:GUNS1_20638
255@ = 1
256@ = 2

:GUNS1_20652
254@ = 0
257@ = 0
258@ = 1

:GUNS1_20673
if 
  257@ == 0
goto_if_false @GUNS1_20827
if 
  258@ == 0
goto_if_false @GUNS1_20827
254@ = 38
Char.SetCoordinates($scplayer, 2807.525, -1167.076, 1024.578)
Char.SetHeading($scplayer, 169.2411)
Task.GoStraightToCoord($scplayer, 2807.626, -1178.272, 1024.578, MoveState.Run, 6000)
Sequence.Clear(127@)
Camera.SetFixedPosition(2809.671, -1173.223, 1025.994, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2808.816, -1172.714, 1025.891, SwitchType.JumpCut)

:GUNS1_20827
goto @GUNS1_20373

:GUNS1_20834
52@ = 0
TIMERA = 0

:GUNS1_20848
if 
  52@ == 0
goto_if_false @GUNS1_20958
38@ = Char.GetScriptTaskStatus($scplayer, 1491)
if or
  TIMERA > 10000
  is_int_lvar_equal_to_constant 38@ == 7
  Char.LocateAnyMeans3D($scplayer, 2807.626, -1174.272, 1024.578, 1.3, 1.3, 3.0, False)
goto_if_false @GUNS1_20947
52@ = 1

:GUNS1_20947
wait 0
goto @GUNS1_20848

:GUNS1_20958
Camera.DoFade(1500, Fade.Out)

:GUNS1_20965
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_20989
wait 0
goto @GUNS1_20965

:GUNS1_20989
Char.ClearTasks($scplayer)
Char.SetCoordinates($scplayer, 2808.784, -1178.054, 24.3559)
Char.SetHeading($scplayer, 231.7034)
Streaming.SetAreaVisible(0)
Char.SetHasUsedEntryExit($scplayer, 2807.776, -1174.782, 20.0)
Camera.SetFixedPosition(2807.473, -1176.315, 25.8373, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2808.318, -1176.847, 25.8125, SwitchType.JumpCut)
Streaming.RequestCollision(2808.784, -1178.054)
Streaming.LoadScene(2808.784, -1178.054, 24.0)
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_21149
Car.Delete(102@)

:GUNS1_21149
Car.MarkAsNoLongerNeeded(102@)
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_21175
Char.Delete(98@)

:GUNS1_21175
Char.MarkAsNoLongerNeeded(98@)
127@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2814.974, -1181.695, 24.2639, MoveState.Run, 10000)
Task.ScratchHead(-1)
Sequence.Close(127@)
Char.PerformSequence($scplayer, 127@)
Sequence.Clear(127@)
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @GUNS1_21276
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)

:GUNS1_21276
Camera.DoFade(1000, Fade.In)

:GUNS1_21283
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_21307
wait 0
goto @GUNS1_21283

:GUNS1_21307
254@ = 78
255@ = 1
256@ = 2
257@ = 0
263@ = 0
52@ = 0
TIMERA = 0

:GUNS1_21356
if 
  52@ == 0
goto_if_false @GUNS1_21768
if 
  254@ <> 0
goto_if_false @GUNS1_21713
if 
  257@ == 0
goto_if_false @GUNS1_21438
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_21431
Audio.ClearMissionAudio(256@)

:GUNS1_21431
257@ = 1

:GUNS1_21438
if 
  257@ == 1
goto_if_false @GUNS1_21475
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_21475
if 
  257@ == 2
goto_if_false @GUNS1_21535
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_21535
Audio.PlayMissionAudio(255@)
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)
257@ = 3

:GUNS1_21535
if 
  257@ == 3
goto_if_false @GUNS1_21713
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_21652
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  255@ == 1
goto_if_false @GUNS1_21617
255@ = 2
256@ = 1
goto @GUNS1_21631

:GUNS1_21617
255@ = 1
256@ = 2

:GUNS1_21631
254@ = 0
257@ = 0
goto @GUNS1_21713

:GUNS1_21652
if 
  not Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_21713
if 
  76 > 254@
goto_if_false @GUNS1_21713
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
Audio.LoadMissionAudio(256@, 172@(263@,82i))

:GUNS1_21713
38@ = Char.GetScriptTaskStatus($scplayer, 1560)
if or
  TIMERA > 10000
  is_int_lvar_equal_to_constant 38@ == 7
goto_if_false @GUNS1_21757
52@ = 1

:GUNS1_21757
wait 0
goto @GUNS1_21356

:GUNS1_21768
goto @GUNS1_22938

:GUNS1_21775
if 
  not Char.IsDead(99@)
goto_if_false @GUNS1_22938
Char.ClearTasks(99@)
Char.SetCoordinates(99@, 2806.996, -1169.809, 1024.612)
Char.SetHeading(99@, 193.7598)
Char.SetDecisionMaker(99@, 39@)
DecisionMaker.Remove(40@)
Char.SetRelationship(99@, RelationshipType.Hate, PedType.Player1)
127@ = Sequence.Open()
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(127@)
Char.PerformSequence(99@, 127@)
Sequence.Clear(127@)
if 
  35@ <= 3
goto_if_false @GUNS1_22938
if and
  not Car.IsDead(102@)
  not Char.IsDead(98@)
goto_if_false @GUNS1_22938
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Text.ClearPrints
Text.ClearHelp
Car.LockDoors(102@, CarLock.Unlocked)
Car.FreezePosition(102@, False)
Camera.SetFixedPosition(2807.858, -1188.103, 25.4725, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2808.792, -1187.748, 25.4449, SwitchType.JumpCut)
Path.FlushRoute
Path.ExtendRoute(2832.257, -1182.708, 23.7924)
Path.ExtendRoute(2840.811, -1211.145, 22.6279)
127@ = Sequence.Open()
if 
  51@ > 5
goto_if_false @GUNS1_22080
Task.GoStraightToCoord(-1, 2816.727, -1185.688, 24.2433, MoveState.Run, 10000)

:GUNS1_22080
Task.EnterCarAsDriver(-1, 102@, 20000)
Task.DrivePointRouteAdvanced(-1, 102@, 25.0, DriveMode.Accurate, 0, DrivingMode.SlowDownForCars)
Sequence.Close(127@)
Char.PerformSequence(98@, 127@)
Sequence.Clear(127@)
254@ = 0
255@ = 1
256@ = 2
257@ = 0
263@ = 0
259@ = 0
52@ = 0
TIMERA = 0

:GUNS1_22182
if 
  52@ == 0
goto_if_false @GUNS1_22938
if 
  254@ <> 0
goto_if_false @GUNS1_22539
if 
  257@ == 0
goto_if_false @GUNS1_22264
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_22257
Audio.ClearMissionAudio(256@)

:GUNS1_22257
257@ = 1

:GUNS1_22264
if 
  257@ == 1
goto_if_false @GUNS1_22301
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_22301
if 
  257@ == 2
goto_if_false @GUNS1_22361
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_22361
Audio.PlayMissionAudio(255@)
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)
257@ = 3

:GUNS1_22361
if 
  257@ == 3
goto_if_false @GUNS1_22539
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_22478
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  255@ == 1
goto_if_false @GUNS1_22443
255@ = 2
256@ = 1
goto @GUNS1_22457

:GUNS1_22443
255@ = 1
256@ = 2

:GUNS1_22457
254@ = 0
257@ = 0
goto @GUNS1_22539

:GUNS1_22478
if 
  not Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_22539
if 
  76 > 254@
goto_if_false @GUNS1_22539
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
Audio.LoadMissionAudio(256@, 172@(263@,82i))

:GUNS1_22539
switch_start 259@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @GUNS1_22783 {caseNum1} 0 {caseLabel1} @GUNS1_22602 {caseNum2} 1 {caseLabel2} @GUNS1_22670 {caseNum3} -1 {caseLabel3} @GUNS1_22853 {caseNum4} -1 {caseLabel4} @GUNS1_22853 {caseNum5} -1 {caseLabel5} @GUNS1_22853 {caseNum6} -1 {caseLabel6} @GUNS1_22853 {caseNum7} -1 {caseLabel7} @GUNS1_22853

:GUNS1_22602
if 
  257@ == 0
goto_if_false @GUNS1_22663
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_22644
Char.StartFacialTalk(98@, 5000)

:GUNS1_22644
254@ = 80
259@ = 1
262@ = Clock.GetGameTimer()

:GUNS1_22663
goto @GUNS1_22853

:GUNS1_22670
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_22776
if 
  257@ == 0
goto_if_false @GUNS1_22776
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_22749
Char.StopFacialTalk(98@)

:GUNS1_22749
Char.StartFacialTalk($scplayer, 5000)
254@ = 77
259@ = 2
262@ = Clock.GetGameTimer()

:GUNS1_22776
goto @GUNS1_22853

:GUNS1_22783
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_22846
if 
  257@ == 0
goto_if_false @GUNS1_22846
Char.StopFacialTalk($scplayer)

:GUNS1_22846
goto @GUNS1_22853

:GUNS1_22853
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_22887
38@ = Char.GetScriptTaskStatus(98@, 1560)
goto @GUNS1_22894

:GUNS1_22887
52@ = 1

:GUNS1_22894
if or
  TIMERA > 15000
  is_int_lvar_equal_to_constant 38@ == 7
goto_if_false @GUNS1_22927
52@ = 1

:GUNS1_22927
wait 0
goto @GUNS1_22182

:GUNS1_22938
Hud.ClearTimer($tripskip_c3flag)
Hud.ClearCounter($ryd1_time_to_daylight)
Hud.DisplayRadar(True)
94@ = 0
96@ = 1
if 
  35@ > 3
goto_if_false @GUNS1_23010
Hud.ClearTimer($tripskip_c3flag)
96@ = 1
51@ = 7
goto @GUNS1_23167

:GUNS1_23010
Text.ClearPrints
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Char.ClearTasks($scplayer)
Player.AlterWantedLevel($player1, 2)
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @GUNS1_23144
Camera.DoFade(1000, Fade.Out)

:GUNS1_23073
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_23097
wait 0
goto @GUNS1_23073

:GUNS1_23097
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:GUNS1_23120
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_23144
wait 0
goto @GUNS1_23120

:GUNS1_23144
Text.Print('RYD1_96', 5000, 1)
goto @GUNS1_40480

:GUNS1_23167
goto @GUNS1_23534

:GUNS1_23174
set_lvar_int_to_lvar_int 45@ = 46@
sub_int_var_from_int_lvar 45@ -= $ryd1_time_to_daylight
set_lvar_int_to_var_int 46@ = $ryd1_time_to_daylight
if and
  $ryd1_time_to_daylight > 30
  60 > $ryd1_time_to_daylight
goto_if_false @GUNS1_23363
if 
  0 > 45@
goto_if_false @GUNS1_23302
if 
  44@ == 0
goto_if_false @GUNS1_23295
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @GUNS1_23295
Text.Print('GUNS134', 4000, 1)
44@ = 1

:GUNS1_23295
goto @GUNS1_23363

:GUNS1_23302
if 
  44@ == 1
goto_if_false @GUNS1_23363
if and
  not Text.IsMessageBeingDisplayed
  44@ <> 2
goto_if_false @GUNS1_23363
Text.Print('GUNS134', 3000, 1)
44@ = 2

:GUNS1_23363
if 
  $ryd1_time_to_daylight > 59
goto_if_false @GUNS1_23516
if 
  0 > 45@
goto_if_false @GUNS1_23462
if 
  44@ == 1
goto_if_false @GUNS1_23455
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @GUNS1_23455
Text.ClearPrints
Text.Print('GUNS1_7', 4000, 1)
44@ = 3

:GUNS1_23455
goto @GUNS1_23516

:GUNS1_23462
if 
  44@ == 2
goto_if_false @GUNS1_23516
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @GUNS1_23516
Text.Print('GUNS1_7', 4000, 1)
44@ = 3

:GUNS1_23516
if 
  51 > $ryd1_time_to_daylight
goto_if_false @GUNS1_23534

:GUNS1_23534
if 
  51@ == 6
goto_if_false @GUNS1_25513
49@ = 0

:GUNS1_23559
if 
  7 > 49@
goto_if_false @GUNS1_23790
if 
  60@ == 0
goto_if_false @GUNS1_23734
if 
  Object.DoesExist(117@(49@,7i))
goto_if_false @GUNS1_23727
if 
  81@(49@,7i) == 0
goto_if_false @GUNS1_23727
110@(49@,7i) = Blip.AddForObject(117@(49@,7i))
163@, 164@, 165@ = Object.GetCoordinates(117@(49@,7i))
if 
  165@ > 700.0
goto_if_false @GUNS1_23716
Blip.SetEntryExit(110@(49@,7i), 2807.844, -1176.985, 10.0)

:GUNS1_23716
81@(49@,7i) = 1

:GUNS1_23727
goto @GUNS1_23776

:GUNS1_23734
if 
  81@(49@,7i) == 1
goto_if_false @GUNS1_23776
Blip.Remove(110@(49@,7i))
81@(49@,7i) = 0

:GUNS1_23776
49@ += 1
goto @GUNS1_23559

:GUNS1_23790
if 
  254@ <> 0
goto_if_false @GUNS1_24157
if 
  257@ == 0
goto_if_false @GUNS1_23854
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_23847
Audio.ClearMissionAudio(256@)

:GUNS1_23847
257@ = 1

:GUNS1_23854
if 
  257@ == 1
goto_if_false @GUNS1_23891
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_23891
if 
  257@ == 2
goto_if_false @GUNS1_23951
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_23951
Audio.PlayMissionAudio(255@)
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)
257@ = 3

:GUNS1_23951
if 
  257@ == 3
goto_if_false @GUNS1_24157
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_24157
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  47@ > 0
goto_if_false @GUNS1_24069
if 
  97@ == 0
goto_if_false @GUNS1_24053
Text.PrintNow('GUNS147', 5000, 1)
goto @GUNS1_24069

:GUNS1_24053
Text.PrintNow('RYD1_2', 5000, 1)

:GUNS1_24069
if 
  255@ == 1
goto_if_false @GUNS1_24108
255@ = 2
256@ = 1
goto @GUNS1_24122

:GUNS1_24108
255@ = 1
256@ = 2

:GUNS1_24122
254@ = 0
257@ = 0
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_24157
Char.StopFacialTalk(98@)

:GUNS1_24157
if 
  97@ == 1
goto_if_false @GUNS1_25447
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_25440
if 
  Char.IsSittingInCar($scplayer, 102@)
goto_if_false @GUNS1_25440
Car.FreezePosition(102@, False)
Car.CloseAllDoors(102@)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2810.199, -1187.979, 25.1092, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2811.069, -1187.504, 25.2425, SwitchType.JumpCut)
Text.ClearPrints
Text.ClearHelp
World.ClearArea(154@, 155@, 156@, 25.0, True)
Object.Delete(117@(36@,7i))
Hud.ClearCounter($ryd1_time_to_daylight)
Hud.DisplayRadar(True)
94@ = 0
Blip.Remove(104@)
55@ = 0
Char.RemoveElegantly(99@)
Blip.Remove(110@)
Blip.Remove(111@)
Blip.Remove(112@)
Blip.Remove(113@)
Blip.Remove(114@)
Blip.Remove(115@)
Blip.Remove(116@)
Object.Delete(117@)
Object.Delete(118@)
Object.Delete(119@)
Object.Delete(120@)
Object.Delete(121@)
Object.Delete(122@)
Object.Delete(123@)
Char.MarkAsNoLongerNeeded(99@)
Streaming.MarkModelAsNoLongerNeeded(62)
Streaming.MarkModelAsNoLongerNeeded(#DB_AMMO)
Streaming.MarkModelAsNoLongerNeeded(349)
Object.MarkAsNoLongerNeeded(117@)
Object.MarkAsNoLongerNeeded(118@)
Object.MarkAsNoLongerNeeded(119@)
Object.MarkAsNoLongerNeeded(120@)
Object.MarkAsNoLongerNeeded(121@)
Object.MarkAsNoLongerNeeded(122@)
Object.MarkAsNoLongerNeeded(123@)
Streaming.RemoveAnimation("INT_HOUSE")
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_24564
128@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2812.091, -1186.198, 24.2658, MoveState.Run, 10000)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger(-1, 102@, 4000, 0)
Sequence.Close(128@)
Char.PerformSequence(98@, 128@)
Sequence.Clear(128@)

:GUNS1_24564
World.SwitchEntryExit('BURHOUS', False)
254@ = 38
257@ = 0
255@ = 1
256@ = 2
TIMERB = 0
52@ = 0

:GUNS1_24619
if 
  52@ == 0
goto_if_false @GUNS1_25181
if 
  254@ <> 0
goto_if_false @GUNS1_24976
if 
  257@ == 0
goto_if_false @GUNS1_24701
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_24694
Audio.ClearMissionAudio(256@)

:GUNS1_24694
257@ = 1

:GUNS1_24701
if 
  257@ == 1
goto_if_false @GUNS1_24738
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_24738
if 
  257@ == 2
goto_if_false @GUNS1_24798
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_24798
Audio.PlayMissionAudio(255@)
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)
257@ = 3

:GUNS1_24798
if 
  257@ == 3
goto_if_false @GUNS1_24976
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_24915
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  255@ == 1
goto_if_false @GUNS1_24880
255@ = 2
256@ = 1
goto @GUNS1_24894

:GUNS1_24880
255@ = 1
256@ = 2

:GUNS1_24894
254@ = 0
257@ = 0
goto @GUNS1_24976

:GUNS1_24915
if 
  not Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_24976
if 
  76 > 254@
goto_if_false @GUNS1_24976
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
Audio.LoadMissionAudio(256@, 172@(263@,82i))

:GUNS1_24976
if and
  not Char.IsDead(98@)
  not Car.IsDead(102@)
goto_if_false @GUNS1_25030
if 
  Char.IsSittingInCar(98@, 102@)
goto_if_false @GUNS1_25023
52@ = 1

:GUNS1_25023
goto @GUNS1_25144

:GUNS1_25030
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @GUNS1_25137
Camera.DoFade(1000, Fade.Out)

:GUNS1_25066
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_25090
wait 0
goto @GUNS1_25066

:GUNS1_25090
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:GUNS1_25113
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_25137
wait 0
goto @GUNS1_25113

:GUNS1_25137
goto @GUNS1_40480

:GUNS1_25144
if 
  TIMERB > 15000
goto_if_false @GUNS1_25170
52@ = 1

:GUNS1_25170
wait 0
goto @GUNS1_24619

:GUNS1_25181
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_25242
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_25242
if 
  not Char.IsInCar(98@, 102@)
goto_if_false @GUNS1_25242
Char.WarpIntoCarAsPassenger(98@, 102@, 0)

:GUNS1_25242
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
58@ = 0
57@ = 0
55@ = 0
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
264@ = 1
51@ = 8
43@ = 0
44@ = 0
Game.SetPoliceIgnorePlayer($player1, False)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Text.ClearPrints
Text.Print('GUNS124', 10000, 1)
107@ = Blip.AddForCoord(2742.0, -2008.0, 13.0)
68@ = 1

:GUNS1_25440
goto @GUNS1_25513

:GUNS1_25447
if 
  97@ == 0
goto_if_false @GUNS1_25513
if 
  35@ > 3
goto_if_false @GUNS1_25513
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_25513
Car.LockDoors(102@, CarLock.Unlocked)
97@ = 1

:GUNS1_25513
if and
  51@ == 6
  60@ == 0
goto_if_false @GUNS1_26285
76@ = 0
34@ = 0
if 
  is_int_lvar_greater_than_int_lvar 48@ > 47@
goto_if_false @GUNS1_25710
Text.ClearPrints
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @GUNS1_25680
Camera.DoFade(1000, Fade.Out)

:GUNS1_25609
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_25633
wait 0
goto @GUNS1_25609

:GUNS1_25633
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:GUNS1_25656
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_25680
wait 0
goto @GUNS1_25656

:GUNS1_25680
Text.Print('RYD1_32', 5000, 1)
goto @GUNS1_40480
goto @GUNS1_25735

:GUNS1_25710
if 
  47@ == 0
goto_if_false @GUNS1_25735
51@ = 7

:GUNS1_25735
if 
  7 > 34@
goto_if_false @GUNS1_26258
if 
  61@(34@,7i) == 0
goto_if_false @GUNS1_25918
if 
  Object.DoesExist(117@(34@,7i))
goto_if_false @GUNS1_25891
if 
  Object.IsInWater(117@(34@,7i))
goto_if_false @GUNS1_25884
Object.MarkAsNoLongerNeeded(117@(34@,7i))
if 
  81@(34@,7i) == 1
goto_if_false @GUNS1_25866
Blip.Remove(110@(34@,7i))
81@(34@,7i) = 0

:GUNS1_25866
61@(34@,7i) = 1
47@ -= 1

:GUNS1_25884
goto @GUNS1_25918

:GUNS1_25891
Object.MarkAsNoLongerNeeded(117@(34@,7i))
61@(34@,7i) = 1
47@ -= 1

:GUNS1_25918
if and
  61@(34@,7i) == 0
  60@ == 0
goto_if_false @GUNS1_26244
if 
  Char.LocateOnFootObject3D($scplayer, 117@(34@,7i), 1.5, 1.5, 1.5, False)
goto_if_false @GUNS1_26244
76@ = 1
if 
  75@ == 0
goto_if_false @GUNS1_26055
if 
  90@ == 0
goto_if_false @GUNS1_26048
Text.PrintHelpForever('GUNS118')
90@ = 1

:GUNS1_26048
75@ = 1

:GUNS1_26055
if 
  Object.DoesExist(117@(34@,7i))
goto_if_false @GUNS1_26244
if 
  Char.IsHoldingObject($scplayer, 117@(34@,7i))
goto_if_false @GUNS1_26244
Text.ClearHelp
75@ = 0
set_lvar_int_to_lvar_int 36@ = 34@
if and
  not Char.IsDead(98@)
  55@ == 0
goto_if_false @GUNS1_26226
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_26226
56@ = 0
104@ = Blip.AddForCar(102@)
Blip.SetAsFriendly(104@, True)
Text.ClearPrints
if 
  89@ == 0
goto_if_false @GUNS1_26219
Text.Print('GUNS146', 10000, 1)
89@ = 1

:GUNS1_26219
55@ = 1

:GUNS1_26226
61@(34@,7i) = 1
60@ = 1

:GUNS1_26244
34@ += 1
goto @GUNS1_25735

:GUNS1_26258
if 
  76@ == 0
goto_if_false @GUNS1_26285
Text.ClearHelp
75@ = 0

:GUNS1_26285
if 
  60@ == 1
goto_if_false @GUNS1_26474
if 
  Object.DoesExist(117@(36@,7i))
goto_if_false @GUNS1_26474
if 
  Char.IsHoldingObject($scplayer, 117@(36@,7i))
goto_if_false @GUNS1_26353
goto @GUNS1_26474

:GUNS1_26353
61@(36@,7i) = 0
60@ = 0
Blip.Remove(104@)
55@ = 0
if and
  56@ == 0
  35@ <> 5
goto_if_false @GUNS1_26474
Text.ClearPrints
if 
  97@ == 0
goto_if_false @GUNS1_26451
Text.Print('RYD1_40', 5000, 1)
goto @GUNS1_26467

:GUNS1_26451
Text.Print('RYD1_2', 5000, 1)

:GUNS1_26467
56@ = 1

:GUNS1_26474
if and
  60@ == 1
  51@ == 6
goto_if_false @GUNS1_27959
if and
  not Car.IsDead(102@)
  not Char.IsDead(98@)
goto_if_false @GUNS1_27959
if 
  Char.LocateOnFoot3D($scplayer, 154@, 155@, 24.0, 1.5, 1.5, 2.0, False)
goto_if_false @GUNS1_27950
if 
  75@ == 0
goto_if_false @GUNS1_26654
128@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2811.438, -1185.982, 24.2707, MoveState.Walk, 10000)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(128@)
Char.PerformSequence(98@, 128@)
Sequence.Clear(128@)
Text.PrintHelpForever('RYD1_30')
75@ = 1

:GUNS1_26654
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @GUNS1_27943
Text.ClearHelp
Text.ClearPrints
75@ = 0
35@ += 1
50@ += 50
72@ = 0
48@ -= 1
47@ -= 1
if 
  47@ == 0
goto_if_false @GUNS1_26798
if 
  257@ == 0
goto_if_false @GUNS1_26784
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_26777
Char.StartFacialTalk(98@, 4000)

:GUNS1_26777
254@ = 33

:GUNS1_26784
51@ = 7
goto @GUNS1_27339

:GUNS1_26798
switch_start 35@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @GUNS1_27283 {caseNum1} 2 {caseLabel1} @GUNS1_26861 {caseNum2} 3 {caseLabel2} @GUNS1_26917 {caseNum3} 4 {caseLabel3} @GUNS1_26973 {caseNum4} 5 {caseLabel4} @GUNS1_27059 {caseNum5} 6 {caseLabel5} @GUNS1_27115 {caseNum6} 7 {caseLabel6} @GUNS1_27171 {caseNum7} 8 {caseLabel7} @GUNS1_27227

:GUNS1_26861
if 
  257@ == 0
goto_if_false @GUNS1_26910
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_26903
Char.StartFacialTalk(98@, 4000)

:GUNS1_26903
254@ = 22

:GUNS1_26910
goto @GUNS1_27339

:GUNS1_26917
if 
  257@ == 0
goto_if_false @GUNS1_26966
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_26959
Char.StartFacialTalk(98@, 4000)

:GUNS1_26959
254@ = 23

:GUNS1_26966
goto @GUNS1_27339

:GUNS1_26973
if 
  257@ == 0
goto_if_false @GUNS1_27052
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_27015
Char.StartFacialTalk(98@, 4000)

:GUNS1_27015
97@ = 1
254@ = 31
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_27052
Car.LockDoors(102@, CarLock.Unlocked)

:GUNS1_27052
goto @GUNS1_27339

:GUNS1_27059
if 
  257@ == 0
goto_if_false @GUNS1_27108
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_27101
Char.StartFacialTalk(98@, 4000)

:GUNS1_27101
254@ = 25

:GUNS1_27108
goto @GUNS1_27339

:GUNS1_27115
if 
  257@ == 0
goto_if_false @GUNS1_27164
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_27157
Char.StartFacialTalk(98@, 4000)

:GUNS1_27157
254@ = 27

:GUNS1_27164
goto @GUNS1_27339

:GUNS1_27171
if 
  257@ == 0
goto_if_false @GUNS1_27220
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_27213
Char.StartFacialTalk(98@, 4000)

:GUNS1_27213
254@ = 24

:GUNS1_27220
goto @GUNS1_27339

:GUNS1_27227
if 
  257@ == 0
goto_if_false @GUNS1_27276
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_27269
Char.StartFacialTalk(98@, 4000)

:GUNS1_27269
254@ = 32

:GUNS1_27276
goto @GUNS1_27339

:GUNS1_27283
if 
  257@ == 0
goto_if_false @GUNS1_27332
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_27325
Char.StartFacialTalk(98@, 4000)

:GUNS1_27325
254@ = 26

:GUNS1_27332
goto @GUNS1_27339

:GUNS1_27339
Char.ClearTasks(98@)
Task.ShakeFist(98@)
128@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2829.412, -1187.152, 23.8422, MoveState.Walk, -2)
Task.LookAtCoord(-1, 2833.251, -1197.908, 23.3976, 2500)
Task.LookAtCoord(-1, 2831.166, -1169.792, 23.9627, 2500)
Task.StandStill(-1, 5000)
Task.GoStraightToCoord(-1, 2811.438, -1185.982, 24.2707, MoveState.Walk, -2)
Task.LookAtCoord(-1, 2808.122, -1190.884, 24.3397, 2500)
Task.LookAtCoord(-1, 2808.43, -1177.409, 24.3621, 2500)
Task.StandStill(-1, 5000)
Sequence.SetToRepeat(128@, True)
Sequence.Close(128@)
Char.PerformSequence(98@, 128@)
Sequence.Clear(128@)
60@ = 0
if 
  97@ <> 1
goto_if_false @GUNS1_27564
Blip.Remove(104@)
55@ = 0

:GUNS1_27564
if and
  35@ > 1
  72@ == 0
goto_if_false @GUNS1_27740
52@ = 0
TIMERB = 0
if 
  Object.DoesExist(117@(36@,7i))
goto_if_false @GUNS1_27740

:GUNS1_27623
if 
  52@ == 0
goto_if_false @GUNS1_27695
if or
  not Char.IsHoldingObject($scplayer, 117@(36@,7i))
  Char.IsDead($scplayer)
  TIMERB > 5000
goto_if_false @GUNS1_27684
52@ = 1

:GUNS1_27684
wait 0
goto @GUNS1_27623

:GUNS1_27695
Object.MarkAsNoLongerNeeded(117@(36@,7i))
Object.Delete(117@(36@,7i))
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
72@ = 1

:GUNS1_27740
if and
  56@ == 0
  47@ > 0
goto_if_false @GUNS1_27943
49@ = 0

:GUNS1_27772
if 
  7 > 49@
goto_if_false @GUNS1_27936
if 
  Object.DoesExist(117@(49@,7i))
goto_if_false @GUNS1_27922
if 
  81@(49@,7i) == 0
goto_if_false @GUNS1_27922
110@(49@,7i) = Blip.AddForObject(117@(49@,7i))
163@, 164@, 165@ = Object.GetCoordinates(117@(49@,7i))
if 
  165@ > 700.0
goto_if_false @GUNS1_27911
Blip.SetEntryExit(110@(49@,7i), 2807.844, -1176.985, 10.0)

:GUNS1_27911
81@(49@,7i) = 1

:GUNS1_27922
49@ += 1
goto @GUNS1_27772

:GUNS1_27936
56@ = 1

:GUNS1_27943
goto @GUNS1_27959

:GUNS1_27950
Text.ClearHelp
75@ = 0

:GUNS1_27959
if 
  51@ == 7
goto_if_false @GUNS1_32066
37@ = Streaming.GetAreaVisible()
if 
  37@ == 0
goto_if_false @GUNS1_31466
44@ = 0
43@ = 0
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Player.SetControl($player1, False)
Text.ClearPrints
Camera.DoFade(1000, Fade.Out)

:GUNS1_28044
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_28068
wait 0
goto @GUNS1_28044

:GUNS1_28068
Camera.RestoreJumpcut
Hud.SetRadarZoom(0)
Text.ClearPrints
Hud.SwitchWidescreen(True)
Text.ClearPrints
Text.ClearHelp
World.ClearArea(154@, 155@, 156@, 25.0, True)
Object.Delete(117@(36@,7i))
if 
  96@ == 0
goto_if_false @GUNS1_28145
Hud.ClearCounter($ryd1_time_to_daylight)
Hud.DisplayRadar(True)
94@ = 0

:GUNS1_28145
Blip.Remove(104@)
55@ = 0
Char.RemoveElegantly(99@)
Object.Delete(117@)
Object.Delete(118@)
Object.Delete(119@)
Object.Delete(120@)
Object.Delete(121@)
Object.Delete(122@)
Object.Delete(123@)
Char.MarkAsNoLongerNeeded(99@)
Streaming.MarkModelAsNoLongerNeeded(62)
Streaming.MarkModelAsNoLongerNeeded(#DB_AMMO)
Streaming.MarkModelAsNoLongerNeeded(349)
Object.MarkAsNoLongerNeeded(117@)
Object.MarkAsNoLongerNeeded(118@)
Object.MarkAsNoLongerNeeded(119@)
Object.MarkAsNoLongerNeeded(120@)
Object.MarkAsNoLongerNeeded(121@)
Object.MarkAsNoLongerNeeded(122@)
Object.MarkAsNoLongerNeeded(123@)
Streaming.RemoveAnimation("INT_HOUSE")
if and
  not Char.IsDead(98@)
  not Car.IsDead(102@)
goto_if_false @GUNS1_28548
Char.ClearTasks(98@)
154@, 155@, 156@ = Car.GetOffsetInWorldCoords(102@, -1.5, -4.0, 0.0)
153@ = Car.GetHeading(102@)
153@ -= 180.0
if 
  180.0 > 153@
goto_if_false @GUNS1_28368
153@ += 360.0

:GUNS1_28368
Char.ClearTasksImmediately(98@)
Char.SetCoordinates(98@, 2811.122, -1186.549, 24.2718)
Char.SetHeading(98@, 17.5866)
154@, 155@, 156@ = Char.GetOffsetInWorldCoords(98@, 1.0, 1.0, 0.0)
Char.SetCoordinates($scplayer, 154@, 155@, 156@)
Char.SetCoordinates($scplayer, 2806.928, -1178.878, 24.4038)
Char.SetHeading($scplayer, 260.0)
154@, 155@, 156@ = Car.GetOffsetInWorldCoords(102@, 3.5, 0.0, 0.0)
157@, 158@, 159@ = Car.GetOffsetInWorldCoords(102@, -3.5, 0.0, 0.0)
Car.LockDoors(102@, CarLock.Unlocked)
Car.FreezePosition(102@, False)

:GUNS1_28548
if 
  96@ == 1
goto_if_false @GUNS1_30581
Streaming.RequestModel(346)
Streaming.RequestModel(280)
Streaming.RequestModel(596)

:GUNS1_28581
if or
  not Streaming.HasModelLoaded(280)
  not Streaming.HasModelLoaded(596)
  not Streaming.HasModelLoaded(346)
goto_if_false @GUNS1_28618
wait 0
goto @GUNS1_28581

:GUNS1_28618
Car.CustomPlateForNextCar(596, "TH3_P1G5")
103@ = Car.Create(596, 2841.16, -1237.64, 21.56)
Car.SwitchSiren(103@, True)
Car.SetHeading(103@, 10.0)
100@ = Char.CreateInsideCar(103@, PedType.Cop, 280)
Char.GiveWeapon(100@, WeaponType.Pistol, 3000)
101@ = Char.CreateAsPassenger(103@, PedType.Cop, 280, 0)
Char.GiveWeapon(101@, WeaponType.Pistol, 3000)
if and
  not Car.IsDead(102@)
  not Car.IsDead(103@)
  not Char.IsDead(100@)
goto_if_false @GUNS1_28879
130@ = Sequence.Open()
Task.CarDriveToCoord(-1, 103@, 2833.26, -1186.69, 23.8, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.LeaveCar(-1, 103@)
Task.AimGunAtChar(-1, $scplayer, 2000)
Task.ShootAtCoord(-1, 154@, 155@, 156@, 10000)
Sequence.Close(130@)
Char.PerformSequence(100@, 130@)
Sequence.Clear(130@)
131@ = Sequence.Open()
Task.LeaveCar(-1, 103@)
Task.AimGunAtChar(-1, $scplayer, 2000)
Task.ShootAtCoord(-1, 157@, 158@, 159@, 10000)
Sequence.Close(131@)

:GUNS1_28879
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_28900
Car.CloseAllDoors(102@)

:GUNS1_28900
Camera.SetFixedPosition(2835.015, -1176.018, 25.3376, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2834.264, -1176.677, 25.3009, SwitchType.JumpCut)
Streaming.RequestCollision(2835.015, -1176.018)
Streaming.LoadScene(2835.015, -1176.018, 25.3376)
Camera.DoFade(1000, Fade.In)

:GUNS1_28987
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_29011
wait 0
goto @GUNS1_28987

:GUNS1_29011
TIMERA = 0
52@ = 0
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_29095
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_30442
if 
  254@ <> 0
goto_if_false @GUNS1_29456
if 
  257@ == 0
goto_if_false @GUNS1_29181
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_29174
Audio.ClearMissionAudio(256@)

:GUNS1_29174
257@ = 1

:GUNS1_29181
if 
  257@ == 1
goto_if_false @GUNS1_29218
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_29218
if 
  257@ == 2
goto_if_false @GUNS1_29278
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_29278
Audio.PlayMissionAudio(255@)
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)
257@ = 3

:GUNS1_29278
if 
  257@ == 3
goto_if_false @GUNS1_29456
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_29395
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  255@ == 1
goto_if_false @GUNS1_29360
255@ = 2
256@ = 1
goto @GUNS1_29374

:GUNS1_29360
255@ = 1
256@ = 2

:GUNS1_29374
254@ = 0
257@ = 0
goto @GUNS1_29456

:GUNS1_29395
if 
  not Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_29456
if 
  76 > 254@
goto_if_false @GUNS1_29456
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
Audio.LoadMissionAudio(256@, 172@(263@,82i))

:GUNS1_29456
switch_start 259@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @GUNS1_30222 {caseNum1} 0 {caseLabel1} @GUNS1_29519 {caseNum2} 1 {caseLabel2} @GUNS1_29614 {caseNum3} 2 {caseLabel3} @GUNS1_29698 {caseNum4} 3 {caseLabel4} @GUNS1_30138 {caseNum5} -1 {caseLabel5} @GUNS1_30435 {caseNum6} -1 {caseLabel6} @GUNS1_30435 {caseNum7} -1 {caseLabel7} @GUNS1_30435

:GUNS1_29519
if 
  257@ == 0
goto_if_false @GUNS1_29607
Camera.SetFixedPosition(2835.015, -1176.018, 25.3376, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2834.264, -1176.677, 25.3009, SwitchType.JumpCut)
254@ = 43
259@ = 1
262@ = Clock.GetGameTimer()

:GUNS1_29607
goto @GUNS1_30435

:GUNS1_29614
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_29691
if 
  257@ == 0
goto_if_false @GUNS1_29691
254@ = 44
259@ = 2
262@ = Clock.GetGameTimer()

:GUNS1_29691
goto @GUNS1_30435

:GUNS1_29698
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_30131
if 
  not Char.IsDead(100@)
goto_if_false @GUNS1_30131
38@ = Char.GetScriptTaskStatus(100@, 1560)
if 
  is_int_lvar_equal_to_constant 38@ == 1
goto_if_false @GUNS1_30131
38@ = Char.GetSequenceProgress(100@)
if or
  38@ == 1
  TIMERA > 10000
goto_if_false @GUNS1_30131
if 
  70@ == 0
goto_if_false @GUNS1_30131
if 
  not Char.IsDead(101@)
goto_if_false @GUNS1_30131
if 
  not Car.IsDead(103@)
goto_if_false @GUNS1_30131
if 
  257@ == 0
goto_if_false @GUNS1_30131
254@ = 45
259@ = 3
262@ = Clock.GetGameTimer()
Char.PerformSequence(101@, 131@)
Sequence.Clear(131@)
Camera.SetFixedPosition(2807.873, -1178.356, 24.8046, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2808.721, -1178.87, 24.9362, SwitchType.JumpCut)
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_30124
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_30124
129@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2814.042, -1181.376, 24.2701, MoveState.Run, 6000)
Char.SetNextDesiredMoveState(MoveState.Run)
Task.EnterCarAsDriver(-1, 102@, 5000)
Sequence.Close(129@)
Char.PerformSequence($scplayer, 129@)
Sequence.Clear(129@)
128@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2812.091, -1186.198, 24.2658, MoveState.Run, 6000)
Char.SetNextDesiredMoveState(MoveState.Run)
Task.EnterCarAsPassenger(-1, 102@, 3000, 0)
Sequence.Close(128@)
Char.PerformSequence(98@, 128@)
Sequence.Clear(128@)

:GUNS1_30124
70@ = 1

:GUNS1_30131
goto @GUNS1_30435

:GUNS1_30138
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_30215
if 
  257@ == 0
goto_if_false @GUNS1_30215
254@ = 46
259@ = 4
262@ = Clock.GetGameTimer()

:GUNS1_30215
goto @GUNS1_30435

:GUNS1_30222
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_30428
if 
  257@ == 0
goto_if_false @GUNS1_30428
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(102@)
goto_if_false @GUNS1_30333
if 
  not Char.IsInCar($scplayer, 102@)
goto_if_false @GUNS1_30333
Char.ClearTasks($scplayer)
Char.WarpIntoCar($scplayer, 102@)

:GUNS1_30333
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_30421
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_30421
if 
  not Char.IsInCar(98@, 102@)
goto_if_false @GUNS1_30394
Char.WarpIntoCarAsPassenger(98@, 102@, 0)

:GUNS1_30394
if 
  not Char.IsInCar($scplayer, 102@)
goto_if_false @GUNS1_30421
Char.WarpIntoCar($scplayer, 102@)

:GUNS1_30421
258@ = 1

:GUNS1_30428
goto @GUNS1_30435

:GUNS1_30435
goto @GUNS1_29095

:GUNS1_30442
264@ = 0
Text.Print('GUNS123', 10000, 1)
106@ = Blip.AddSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
71@ = 1
69@ = 1
if 
  not Player.IsWantedLevelGreater($player1, 1)
goto_if_false @GUNS1_30526
Player.AlterWantedLevel($player1, 2)

:GUNS1_30526
if 
  not Char.IsDead(100@)
goto_if_false @GUNS1_30550
Task.KillCharOnFoot(100@, $scplayer)

:GUNS1_30550
if 
  not Char.IsDead(101@)
goto_if_false @GUNS1_30574
Task.KillCharOnFoot(101@, $scplayer)

:GUNS1_30574
goto @GUNS1_31171

:GUNS1_30581
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_30602
Car.CloseAllDoors(102@)

:GUNS1_30602
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.SetFixedPosition(2818.67, -1182.264, 24.8706, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2817.702, -1182.449, 25.0366, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)
Streaming.RequestCollision(2814.042, -1181.376)
Streaming.LoadScene(2814.042, -1181.376, 24.2701)

:GUNS1_30705
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_30729
wait 0
goto @GUNS1_30705

:GUNS1_30729
if and
  not Car.IsDead(102@)
  not Char.IsDead(98@)
goto_if_false @GUNS1_30874
129@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2814.042, -1181.376, 24.2701, MoveState.Walk, 6000)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsDriver(-1, 102@, 6000)
Sequence.Close(129@)
Char.PerformSequence($scplayer, 129@)
Sequence.Clear(129@)
128@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2812.091, -1186.198, 24.2658, MoveState.Walk, 6000)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger(-1, 102@, 4000, 0)
Sequence.Close(128@)
Char.PerformSequence(98@, 128@)
Sequence.Clear(128@)

:GUNS1_30874
264@ = 1
TIMERB = 0
52@ = 0

:GUNS1_30895
if 
  52@ == 0
goto_if_false @GUNS1_31126
if and
  not Char.IsDead(98@)
  not Car.IsDead(102@)
goto_if_false @GUNS1_30975
if and
  Char.IsSittingInCar(98@, 102@)
  Char.IsSittingInCar($scplayer, 102@)
goto_if_false @GUNS1_30968
52@ = 1

:GUNS1_30968
goto @GUNS1_31089

:GUNS1_30975
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @GUNS1_31082
Camera.DoFade(1000, Fade.Out)

:GUNS1_31011
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_31035
wait 0
goto @GUNS1_31011

:GUNS1_31035
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:GUNS1_31058
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_31082
wait 0
goto @GUNS1_31058

:GUNS1_31082
goto @GUNS1_40480

:GUNS1_31089
if 
  TIMERB > 10000
goto_if_false @GUNS1_31115
52@ = 1

:GUNS1_31115
wait 0
goto @GUNS1_30895

:GUNS1_31126
Text.ClearPrints
Text.Print('GUNS124', 10000, 1)
107@ = Blip.AddForCoord(2742.0, -2008.0, 13.0)
68@ = 1

:GUNS1_31171
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_31259
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_31259
if 
  not Char.IsInCar(98@, 102@)
goto_if_false @GUNS1_31232
Char.WarpIntoCarAsPassenger(98@, 102@, 0)

:GUNS1_31232
if 
  not Char.IsInCar($scplayer, 102@)
goto_if_false @GUNS1_31259
Char.WarpIntoCar($scplayer, 102@)

:GUNS1_31259
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_31333
if 
  not Char.IsGroupMember(98@, $Players_Group)
goto_if_false @GUNS1_31333
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, 98@)
Group.SetFollowStatus($Players_Group, False)
Char.ListenToPlayerGroupCommands(98@, False)

:GUNS1_31333
Game.SetPoliceIgnorePlayer($player1, False)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
58@ = 0
57@ = 0
55@ = 0
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
51@ = 8
43@ = 0
goto @GUNS1_32066

:GUNS1_31466
if 
  254@ <> 0
goto_if_false @GUNS1_31737
if 
  257@ == 0
goto_if_false @GUNS1_31530
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_31523
Audio.ClearMissionAudio(256@)

:GUNS1_31523
257@ = 1

:GUNS1_31530
if 
  257@ == 1
goto_if_false @GUNS1_31567
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_31567
if 
  257@ == 2
goto_if_false @GUNS1_31627
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_31627
Audio.PlayMissionAudio(255@)
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)
257@ = 3

:GUNS1_31627
if 
  257@ == 3
goto_if_false @GUNS1_31737
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_31737
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  255@ == 1
goto_if_false @GUNS1_31709
255@ = 2
256@ = 1
goto @GUNS1_31723

:GUNS1_31709
255@ = 1
256@ = 2

:GUNS1_31723
254@ = 0
257@ = 0

:GUNS1_31737
if and
  not Char.IsDead(98@)
  3 > 43@
goto_if_false @GUNS1_31987
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @GUNS1_31980
if 
  43@ == 0
goto_if_false @GUNS1_31838
if 
  257@ == 0
goto_if_false @GUNS1_31831
Char.StartFacialTalk($scplayer, 3000)
254@ = 38
43@ = 1

:GUNS1_31831
goto @GUNS1_31980

:GUNS1_31838
if 
  43@ == 1
goto_if_false @GUNS1_31924
if 
  257@ == 0
goto_if_false @GUNS1_31917
if 
  not Char.IsDead(99@)
goto_if_false @GUNS1_31903
Char.StartFacialTalk(99@, 4000)
Char.StopFacialTalk($scplayer)

:GUNS1_31903
254@ = 36
43@ = 2

:GUNS1_31917
goto @GUNS1_31980

:GUNS1_31924
if 
  257@ == 0
goto_if_false @GUNS1_31980
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_31966
Char.StartFacialTalk(98@, 4000)

:GUNS1_31966
254@ = 37
43@ = 3

:GUNS1_31980
goto @GUNS1_32005

:GUNS1_31987
Text.ClearPrints
Text.Print('RYD1_44', 4000, 1)

:GUNS1_32005
if 
  55@ == 0
goto_if_false @GUNS1_32066
Blip.Remove(104@)
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_32066
104@ = Blip.AddForCar(102@)
Blip.SetAsFriendly(104@, True)
55@ = 1

:GUNS1_32066
if 
  51@ == 8
goto_if_false @GUNS1_40471
if 
  254@ <> 0
goto_if_false @GUNS1_32373
if 
  257@ == 0
goto_if_false @GUNS1_32148
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_32141
Audio.ClearMissionAudio(256@)

:GUNS1_32141
257@ = 1

:GUNS1_32148
if 
  257@ == 1
goto_if_false @GUNS1_32185
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_32185
if 
  257@ == 2
goto_if_false @GUNS1_32263
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_32263
Audio.PlayMissionAudio(255@)
if 
  254@ <> 76
goto_if_false @GUNS1_32256
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)

:GUNS1_32256
257@ = 3

:GUNS1_32263
if 
  257@ == 3
goto_if_false @GUNS1_32373
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_32373
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  255@ == 1
goto_if_false @GUNS1_32345
255@ = 2
256@ = 1
goto @GUNS1_32359

:GUNS1_32345
255@ = 1
256@ = 2

:GUNS1_32359
254@ = 0
257@ = 0

:GUNS1_32373
if 
  264@ == 0
goto_if_false @GUNS1_32913
if 
  266@ == 0
goto_if_false @GUNS1_32906
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @GUNS1_32906
switch_start 265@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @GUNS1_32804 {caseNum1} 0 {caseLabel1} @GUNS1_32485 {caseNum2} 1 {caseLabel2} @GUNS1_32552 {caseNum3} 2 {caseLabel3} @GUNS1_32636 {caseNum4} 3 {caseLabel4} @GUNS1_32720 {caseNum5} -1 {caseLabel5} @GUNS1_32906 {caseNum6} -1 {caseLabel6} @GUNS1_32906 {caseNum7} -1 {caseLabel7} @GUNS1_32906

:GUNS1_32485
if 
  257@ == 0
goto_if_false @GUNS1_32545
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_32533
Char.ShutUpForScriptedSpeech(98@, True)
Char.ShutUpForScriptedSpeech($scplayer, True)

:GUNS1_32533
265@ = 1
262@ = Clock.GetGameTimer()

:GUNS1_32545
goto @GUNS1_32906

:GUNS1_32552
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_32629
if 
  257@ == 0
goto_if_false @GUNS1_32629
254@ = 47
265@ = 2
262@ = Clock.GetGameTimer()

:GUNS1_32629
goto @GUNS1_32906

:GUNS1_32636
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_32713
if 
  257@ == 0
goto_if_false @GUNS1_32713
254@ = 48
265@ = 3
262@ = Clock.GetGameTimer()

:GUNS1_32713
goto @GUNS1_32906

:GUNS1_32720
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_32797
if 
  257@ == 0
goto_if_false @GUNS1_32797
254@ = 49
265@ = 4
262@ = Clock.GetGameTimer()

:GUNS1_32797
goto @GUNS1_32906

:GUNS1_32804
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_32899
if 
  257@ == 0
goto_if_false @GUNS1_32899
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_32892
Char.ShutUpForScriptedSpeech(98@, False)
Char.ShutUpForScriptedSpeech($scplayer, False)

:GUNS1_32892
266@ = 1

:GUNS1_32899
goto @GUNS1_32906

:GUNS1_32906
goto @GUNS1_34942

:GUNS1_32913
if 
  264@ == 1
goto_if_false @GUNS1_33383
if 
  268@ == 0
goto_if_false @GUNS1_33376
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @GUNS1_33376
switch_start 267@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @GUNS1_33267 {caseNum1} 0 {caseLabel1} @GUNS1_33025 {caseNum2} 1 {caseLabel2} @GUNS1_33099 {caseNum3} 2 {caseLabel3} @GUNS1_33183 {caseNum4} -1 {caseLabel4} @GUNS1_33376 {caseNum5} -1 {caseLabel5} @GUNS1_33376 {caseNum6} -1 {caseLabel6} @GUNS1_33376 {caseNum7} -1 {caseLabel7} @GUNS1_33376

:GUNS1_33025
if 
  257@ == 0
goto_if_false @GUNS1_33092
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_33073
Char.ShutUpForScriptedSpeech(98@, True)
Char.ShutUpForScriptedSpeech($scplayer, True)

:GUNS1_33073
254@ = 50
267@ = 1
262@ = Clock.GetGameTimer()

:GUNS1_33092
goto @GUNS1_33376

:GUNS1_33099
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33176
if 
  257@ == 0
goto_if_false @GUNS1_33176
254@ = 51
267@ = 2
262@ = Clock.GetGameTimer()

:GUNS1_33176
goto @GUNS1_33376

:GUNS1_33183
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33260
if 
  257@ == 0
goto_if_false @GUNS1_33260
254@ = 52
267@ = 3
262@ = Clock.GetGameTimer()

:GUNS1_33260
goto @GUNS1_33376

:GUNS1_33267
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33369
if 
  257@ == 0
goto_if_false @GUNS1_33369
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_33355
Char.ShutUpForScriptedSpeech(98@, False)
Char.ShutUpForScriptedSpeech($scplayer, False)

:GUNS1_33355
268@ = 1
264@ = 3

:GUNS1_33369
goto @GUNS1_33376

:GUNS1_33376
goto @GUNS1_34942

:GUNS1_33383
if 
  264@ == 2
goto_if_false @GUNS1_33749
if 
  272@ == 0
goto_if_false @GUNS1_33742
switch_start 271@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @GUNS1_33640 {caseNum1} 0 {caseLabel1} @GUNS1_33482 {caseNum2} 1 {caseLabel2} @GUNS1_33556 {caseNum3} -1 {caseLabel3} @GUNS1_33742 {caseNum4} -1 {caseLabel4} @GUNS1_33742 {caseNum5} -1 {caseLabel5} @GUNS1_33742 {caseNum6} -1 {caseLabel6} @GUNS1_33742 {caseNum7} -1 {caseLabel7} @GUNS1_33742

:GUNS1_33482
if 
  257@ == 0
goto_if_false @GUNS1_33549
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_33530
Char.ShutUpForScriptedSpeech(98@, True)
Char.ShutUpForScriptedSpeech($scplayer, True)

:GUNS1_33530
254@ = 64
271@ = 1
262@ = Clock.GetGameTimer()

:GUNS1_33549
goto @GUNS1_33742

:GUNS1_33556
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33633
if 
  257@ == 0
goto_if_false @GUNS1_33633
254@ = 65
271@ = 2
262@ = Clock.GetGameTimer()

:GUNS1_33633
goto @GUNS1_33742

:GUNS1_33640
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33735
if 
  257@ == 0
goto_if_false @GUNS1_33735
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_33728
Char.ShutUpForScriptedSpeech(98@, False)
Char.ShutUpForScriptedSpeech($scplayer, False)

:GUNS1_33728
272@ = 1

:GUNS1_33735
goto @GUNS1_33742

:GUNS1_33742
goto @GUNS1_34942

:GUNS1_33749
if 
  264@ == 3
goto_if_false @GUNS1_34942
if 
  270@ == 0
goto_if_false @GUNS1_34942
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @GUNS1_34942
switch_start 269@ {numCases} 11 {hasDefaultCase} 1 {defaultLabel} @GUNS1_34840 {caseNum1} 0 {caseLabel1} @GUNS1_33926 {caseNum2} 1 {caseLabel2} @GUNS1_34000 {caseNum3} 2 {caseLabel3} @GUNS1_34084 {caseNum4} 3 {caseLabel4} @GUNS1_34168 {caseNum5} 4 {caseLabel5} @GUNS1_34252 {caseNum6} 5 {caseLabel6} @GUNS1_34336 {caseNum7} 6 {caseLabel7} @GUNS1_34420
switch_continued 7 {caseLabel1} @GUNS1_34504 {caseNum2} 8 {caseLabel2} @GUNS1_34588 {caseNum3} 9 {caseLabel3} @GUNS1_34672 {caseNum4} 10 {caseLabel4} @GUNS1_34756 {caseNum5} -1 {caseLabel5} @GUNS1_34942 {caseNum6} -1 {caseLabel6} @GUNS1_34942 {caseNum7} -1 {caseLabel7} @GUNS1_34942 {caseNum8} -1 {caseLabel8} @GUNS1_34942 {caseNum9} -1 {caseLabel9} @GUNS1_34942

:GUNS1_33926
if 
  257@ == 0
goto_if_false @GUNS1_33993
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_33974
Char.ShutUpForScriptedSpeech(98@, True)
Char.ShutUpForScriptedSpeech($scplayer, True)

:GUNS1_33974
254@ = 53
269@ = 1
262@ = Clock.GetGameTimer()

:GUNS1_33993
goto @GUNS1_34942

:GUNS1_34000
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34077
if 
  257@ == 0
goto_if_false @GUNS1_34077
254@ = 54
269@ = 2
262@ = Clock.GetGameTimer()

:GUNS1_34077
goto @GUNS1_34942

:GUNS1_34084
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34161
if 
  257@ == 0
goto_if_false @GUNS1_34161
254@ = 55
269@ = 3
262@ = Clock.GetGameTimer()

:GUNS1_34161
goto @GUNS1_34942

:GUNS1_34168
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34245
if 
  257@ == 0
goto_if_false @GUNS1_34245
254@ = 56
269@ = 4
262@ = Clock.GetGameTimer()

:GUNS1_34245
goto @GUNS1_34942

:GUNS1_34252
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34329
if 
  257@ == 0
goto_if_false @GUNS1_34329
254@ = 57
269@ = 5
262@ = Clock.GetGameTimer()

:GUNS1_34329
goto @GUNS1_34942

:GUNS1_34336
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34413
if 
  257@ == 0
goto_if_false @GUNS1_34413
254@ = 58
269@ = 6
262@ = Clock.GetGameTimer()

:GUNS1_34413
goto @GUNS1_34942

:GUNS1_34420
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34497
if 
  257@ == 0
goto_if_false @GUNS1_34497
254@ = 59
269@ = 7
262@ = Clock.GetGameTimer()

:GUNS1_34497
goto @GUNS1_34942

:GUNS1_34504
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34581
if 
  257@ == 0
goto_if_false @GUNS1_34581
254@ = 60
269@ = 8
262@ = Clock.GetGameTimer()

:GUNS1_34581
goto @GUNS1_34942

:GUNS1_34588
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34665
if 
  257@ == 0
goto_if_false @GUNS1_34665
254@ = 61
269@ = 9
262@ = Clock.GetGameTimer()

:GUNS1_34665
goto @GUNS1_34942

:GUNS1_34672
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34749
if 
  257@ == 0
goto_if_false @GUNS1_34749
254@ = 62
269@ = 10
262@ = Clock.GetGameTimer()

:GUNS1_34749
goto @GUNS1_34942

:GUNS1_34756
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34833
if 
  257@ == 0
goto_if_false @GUNS1_34833
254@ = 63
269@ = 11
262@ = Clock.GetGameTimer()

:GUNS1_34833
goto @GUNS1_34942

:GUNS1_34840
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34935
if 
  257@ == 0
goto_if_false @GUNS1_34935
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_34928
Char.ShutUpForScriptedSpeech(98@, False)
Char.ShutUpForScriptedSpeech($scplayer, False)

:GUNS1_34928
270@ = 1

:GUNS1_34935
goto @GUNS1_34942

:GUNS1_34942
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_35580
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_35580
if 
  not Char.IsInCar($scplayer, 102@)
goto_if_false @GUNS1_35213
54@ = 0
if 
  55@ == 0
goto_if_false @GUNS1_35206
if 
  68@ == 1
goto_if_false @GUNS1_35048
Blip.Remove(107@)
68@ = 0

:GUNS1_35048
if 
  69@ == 1
goto_if_false @GUNS1_35078
Blip.Remove(106@)
69@ = 0

:GUNS1_35078
if 
  57@ == 1
goto_if_false @GUNS1_35108
Blip.Remove(108@)
57@ = 0

:GUNS1_35108
if 
  Text.IsMessageBeingDisplayed
goto_if_false @GUNS1_35128
44@ = 1

:GUNS1_35128
Text.ClearPrints
Text.Print('GUNS128', 2000, 1)
Player.SetGroupToFollowNever($player1, True)
104@ = Blip.AddForCar(102@)
Blip.SetAsFriendly(104@, True)
55@ = 1
254@ = 76
257@ = 0
Audio.ClearMissionAudio(255@)
Audio.ClearMissionAudio(256@)
264@ = 99

:GUNS1_35206
goto @GUNS1_35580

:GUNS1_35213
54@ = 1
if 
  55@ == 1
goto_if_false @GUNS1_35271
Player.SetGroupToFollowNever($player1, False)
Blip.Remove(104@)
264@ = 3
55@ = 0
goto @GUNS1_35580

:GUNS1_35271
if 
  not Char.IsInCar(98@, 102@)
goto_if_false @GUNS1_35536
59@ = 0
if 
  57@ == 0
goto_if_false @GUNS1_35442
if 
  68@ == 1
goto_if_false @GUNS1_35345
Blip.Remove(107@)
68@ = 0

:GUNS1_35345
if 
  69@ == 1
goto_if_false @GUNS1_35375
Blip.Remove(106@)
69@ = 0

:GUNS1_35375
if 
  Text.IsMessageBeingDisplayed
goto_if_false @GUNS1_35395
44@ = 1

:GUNS1_35395
Text.ClearPrints
Text.Print('GUNS143', 2000, 1)
108@ = Blip.AddForChar(98@)
Blip.SetAsFriendly(108@, True)
264@ = 99
57@ = 1

:GUNS1_35442
if 
  58@ == 0
goto_if_false @GUNS1_35486
Task.EnterCarAsPassenger(98@, 102@, -2, 0)
58@ = 1
goto @GUNS1_35529

:GUNS1_35486
38@ = Char.GetScriptTaskStatus(98@, 1482)
if and
  not is_int_lvar_equal_to_constant 38@ == 0
  not is_int_lvar_equal_to_constant 38@ == 1
goto_if_false @GUNS1_35529
58@ = 0

:GUNS1_35529
goto @GUNS1_35580

:GUNS1_35536
if 
  57@ == 1
goto_if_false @GUNS1_35573
Blip.Remove(108@)
57@ = 0
264@ = 3

:GUNS1_35573
59@ = 1

:GUNS1_35580
if and
  59@ == 1
  54@ == 1
goto_if_false @GUNS1_40471
if 
  68@ == 1
goto_if_false @GUNS1_39657
if 
  Char.LocateInCar3D($scplayer, 2742.0, -2008.0, 13.0, 15.0, 15.0, 4.0, False)
goto_if_false @GUNS1_39587
Text.ClearPrints
Text.Print('RYD1_34', 3000, 1)
if 
  Char.LocateStoppedInCar3D($scplayer, 2741.241, -2011.274, 13.5869, 2.9, 3.2, 5.0, False)
goto_if_false @GUNS1_39510
Player.SetControl($player1, False)
Text.ClearPrints
Camera.DoFade(1500, Fade.Out)

:GUNS1_35753
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_35777
wait 0
goto @GUNS1_35753

:GUNS1_35777
World.ClearArea(2741.241, -2011.274, 13.5869, 10.0, True)
Hud.SwitchWidescreen(True)
Blip.Remove(107@)
Text.ClearPrints
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_35852
if 
  Char.IsGroupMember(98@, $Players_Group)
goto_if_false @GUNS1_35852
Char.RemoveFromGroup(98@)

:GUNS1_35852
Streaming.LoadScene(2745.47, -2003.59, 15.53)
Camera.SetFixedPosition(2745.47, -2003.59, 15.53, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2737.34, -2002.24, 11.65, SwitchType.JumpCut)
if 
  88@ == 1
goto_if_false @GUNS1_35961
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
88@ = 0

:GUNS1_35961
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @GUNS1_36004
Char.WarpFromCarToCoord($scplayer, 2741.0, -2007.14, 13.0)
goto @GUNS1_36024

:GUNS1_36004
Char.SetCoordinates($scplayer, 2741.0, -2008.14, 13.0)

:GUNS1_36024
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_36103
if 
  Char.IsInAnyCar(98@)
goto_if_false @GUNS1_36083
Char.WarpFromCarToCoord(98@, 2740.0, -2008.14, 13.0)
goto @GUNS1_36103

:GUNS1_36083
Char.SetCoordinates(98@, 2740.0, -2007.14, 13.0)

:GUNS1_36103
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_36129
Car.Delete(102@)
Car.MarkAsNoLongerNeeded(102@)

:GUNS1_36129
World.ClearArea(2741.0, -2005.0, 14.14, 50.0, True)
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_36223
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_37402
if 
  254@ <> 0
goto_if_false @GUNS1_36584
if 
  257@ == 0
goto_if_false @GUNS1_36309
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_36302
Audio.ClearMissionAudio(256@)

:GUNS1_36302
257@ = 1

:GUNS1_36309
if 
  257@ == 1
goto_if_false @GUNS1_36346
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_36346
if 
  257@ == 2
goto_if_false @GUNS1_36406
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_36406
Audio.PlayMissionAudio(255@)
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)
257@ = 3

:GUNS1_36406
if 
  257@ == 3
goto_if_false @GUNS1_36584
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_36523
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  255@ == 1
goto_if_false @GUNS1_36488
255@ = 2
256@ = 1
goto @GUNS1_36502

:GUNS1_36488
255@ = 1
256@ = 2

:GUNS1_36502
254@ = 0
257@ = 0
goto @GUNS1_36584

:GUNS1_36523
if 
  not Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_36584
if 
  76 > 254@
goto_if_false @GUNS1_36584
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
Audio.LoadMissionAudio(256@, 172@(263@,82i))

:GUNS1_36584
switch_start 259@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @GUNS1_37297 {caseNum1} 0 {caseLabel1} @GUNS1_36647 {caseNum2} 1 {caseLabel2} @GUNS1_36960 {caseNum3} 2 {caseLabel3} @GUNS1_37087 {caseNum4} -1 {caseLabel4} @GUNS1_37395 {caseNum5} -1 {caseLabel5} @GUNS1_37395 {caseNum6} -1 {caseLabel6} @GUNS1_37395 {caseNum7} -1 {caseLabel7} @GUNS1_37395

:GUNS1_36647
if 
  257@ == 0
goto_if_false @GUNS1_36953
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_36696
Char.StartFacialTalk(98@, 4000)
Char.ShutUpForScriptedSpeech(98@, True)

:GUNS1_36696
254@ = 66
259@ = 1
262@ = Clock.GetGameTimer()
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_36922
129@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2741.0, -2005.0, 14.14, MoveState.Walk, 6000)
Task.GoStraightToCoord(-1, 2741.0, -2001.0, 14.14, MoveState.Walk, 6000)
Task.TurnCharToFaceChar(-1, 98@)
Sequence.Close(129@)
Char.PerformSequence($scplayer, 129@)
Sequence.Clear(129@)
129@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2740.0, -2005.0, 14.14, MoveState.Walk, 6000)
Task.GoStraightToCoord(-1, 2740.0, -2001.0, 14.14, MoveState.Walk, 6000)
Task.TurnCharToFaceChar(-1, $scplayer)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Sequence.Close(129@)
Char.PerformSequence(98@, 129@)
Sequence.Clear(129@)

:GUNS1_36922
Camera.DoFade(1500, Fade.In)

:GUNS1_36929
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_36953
wait 0
goto @GUNS1_36929

:GUNS1_36953
goto @GUNS1_37395

:GUNS1_36960
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_37080
if 
  257@ == 0
goto_if_false @GUNS1_37080
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_37047
Char.StartFacialTalk($scplayer, 4000)
Char.StopFacialTalk(98@)

:GUNS1_37047
254@ = 67
52@ = 0
TIMERA = 0
259@ = 2
262@ = Clock.GetGameTimer()

:GUNS1_37080
goto @GUNS1_37395

:GUNS1_37087
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_37290
if 
  257@ == 0
goto_if_false @GUNS1_37290
38@ = Char.GetScriptTaskStatus($scplayer, 1560)
if or
  is_int_lvar_equal_to_constant 38@ == 7
  TIMERA > 8000
goto_if_false @GUNS1_37290
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_37198

:GUNS1_37198
Garage.Close('BURG_LK')

:GUNS1_37209
if 
  not Garage.IsClosed('BURG_LK')
goto_if_false @GUNS1_37242
wait 0
goto @GUNS1_37209

:GUNS1_37242
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_37271
Char.StartFacialTalk(98@, 5000)
Char.StopFacialTalk($scplayer)

:GUNS1_37271
254@ = 68
259@ = 3
262@ = Clock.GetGameTimer()

:GUNS1_37290
goto @GUNS1_37395

:GUNS1_37297
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_37388
if 
  257@ == 0
goto_if_false @GUNS1_37388
Char.ClearTasks($scplayer)
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_37381
Char.ClearTasks(98@)

:GUNS1_37381
258@ = 1

:GUNS1_37388
goto @GUNS1_37395

:GUNS1_37395
goto @GUNS1_36223

:GUNS1_37402
Camera.DoFade(1000, Fade.Out)

:GUNS1_37409
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_37433
wait 0
goto @GUNS1_37409

:GUNS1_37433
Char.SetCoordinates($scplayer, 2161.0, -1664.0, 22.0)
Camera.SetFixedPosition(2168.155, -1686.374, 15.6932, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2168.094, -1685.377, 15.7351, SwitchType.JumpCut)
Streaming.RequestCollision(2168.155, -1686.374)
Streaming.LoadScene(2168.155, -1686.374, 15.6932)
Camera.DoFade(1000, Fade.In)

:GUNS1_37540
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_37564
wait 0
goto @GUNS1_37540

:GUNS1_37564
Text.ClearHelp
Text.PrintHelpForever('RYD1_88')

:GUNS1_37577
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @GUNS1_37601
wait 0
goto @GUNS1_37577

:GUNS1_37601
TIMERA = 0
52@ = 0

:GUNS1_37615
if 
  52@ == 0
goto_if_false @GUNS1_37675
if or
  TIMERA > 4000
  not Player.IsPlaying($player1)
goto_if_false @GUNS1_37664
52@ = 1

:GUNS1_37664
wait 0
goto @GUNS1_37615

:GUNS1_37675
Text.ClearHelp
Text.PrintHelpForever('RYD1_90')

:GUNS1_37688
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @GUNS1_37712
wait 0
goto @GUNS1_37688

:GUNS1_37712
TIMERA = 0
52@ = 0

:GUNS1_37726
if 
  52@ == 0
goto_if_false @GUNS1_37786
if or
  TIMERA > 4000
  not Player.IsPlaying($player1)
goto_if_false @GUNS1_37775
52@ = 1

:GUNS1_37775
wait 0
goto @GUNS1_37726

:GUNS1_37786
Text.ClearHelp
Camera.DoFade(1000, Fade.Out)

:GUNS1_37795
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_37819
wait 0
goto @GUNS1_37795

:GUNS1_37819
Char.SetCoordinates($scplayer, 2272.0, -1792.0, 14.0)
Camera.SetFixedPosition(2255.539, -1783.703, 13.6049, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2254.882, -1784.445, 13.7333, SwitchType.JumpCut)
Streaming.RequestCollision(2254.208, -1790.233)
Streaming.LoadScene(2254.208, -1790.233, 13.1057)
CarGenerator.Switch($gen_car18, 0)
World.ClearArea(2251.028, -1788.661, 12.7625, 10.0, True)
102@ = Car.Create(609, 2251.028, -1788.661, 12.9625)
Car.SetHeading(102@, 358.9591)
Camera.DoFade(1000, Fade.In)

:GUNS1_37990
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_38014
wait 0
goto @GUNS1_37990

:GUNS1_38014
Text.PrintHelpForever('RYD1_89')

:GUNS1_38025
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @GUNS1_38049
wait 0
goto @GUNS1_38025

:GUNS1_38049
TIMERA = 0
52@ = 0

:GUNS1_38063
if 
  52@ == 0
goto_if_false @GUNS1_38123
if or
  TIMERA > 4000
  not Player.IsPlaying($player1)
goto_if_false @GUNS1_38112
52@ = 1

:GUNS1_38112
wait 0
goto @GUNS1_38063

:GUNS1_38123
Text.ClearHelp
Text.PrintHelpForever('RYD1_91')

:GUNS1_38136
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @GUNS1_38160
wait 0
goto @GUNS1_38136

:GUNS1_38160
TIMERA = 0
52@ = 0

:GUNS1_38174
if 
  52@ == 0
goto_if_false @GUNS1_38234
if or
  TIMERA > 4000
  not Player.IsPlaying($player1)
goto_if_false @GUNS1_38223
52@ = 1

:GUNS1_38223
wait 0
goto @GUNS1_38174

:GUNS1_38234
Text.ClearHelp
Camera.DoFade(1000, Fade.Out)

:GUNS1_38243
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_38267
wait 0
goto @GUNS1_38243

:GUNS1_38267
if 
  not Car.IsDead(102@)
goto_if_false @GUNS1_38293
Car.Delete(102@)
Car.MarkAsNoLongerNeeded(102@)

:GUNS1_38293
Char.SetCoordinates($scplayer, 2741.0, -2001.0, 12.5547)
Char.SetHeading($scplayer, 80.0)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2745.47, -2003.59, 15.53, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2737.34, -2002.24, 11.65, SwitchType.JumpCut)
Streaming.RequestCollision(2745.47, -2003.59)
Streaming.LoadScene(2745.47, -2003.59, 15.53)
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_38469
Char.SetCoordinates(98@, 2740.0, -2001.0, 12.5547)
Char.SetHeading(98@, 230.0)
Task.TurnCharToFaceChar($scplayer, 98@)
Task.TurnCharToFaceChar(98@, $scplayer)

:GUNS1_38469
Camera.DoFade(1000, Fade.In)

:GUNS1_38476
if 
  Camera.GetFadingStatus
goto_if_false @GUNS1_38500
wait 0
goto @GUNS1_38476

:GUNS1_38500
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_38570
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_39396
if 
  254@ <> 0
goto_if_false @GUNS1_38931
if 
  257@ == 0
goto_if_false @GUNS1_38656
if 
  Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_38649
Audio.ClearMissionAudio(256@)

:GUNS1_38649
257@ = 1

:GUNS1_38656
if 
  257@ == 1
goto_if_false @GUNS1_38693
Audio.LoadMissionAudio(255@, 172@(254@,82i))
257@ = 2

:GUNS1_38693
if 
  257@ == 2
goto_if_false @GUNS1_38753
if 
  Audio.HasMissionAudioLoaded(255@)
goto_if_false @GUNS1_38753
Audio.PlayMissionAudio(255@)
Text.PrintNow($ryd1_noise_bar(254@,82s), 10000, 1)
257@ = 3

:GUNS1_38753
if 
  257@ == 3
goto_if_false @GUNS1_38931
if 
  Audio.HasMissionAudioFinished(255@)
goto_if_false @GUNS1_38870
Text.ClearThisPrint($ryd1_noise_bar(254@,82s))
if 
  255@ == 1
goto_if_false @GUNS1_38835
255@ = 2
256@ = 1
goto @GUNS1_38849

:GUNS1_38835
255@ = 1
256@ = 2

:GUNS1_38849
254@ = 0
257@ = 0
goto @GUNS1_38931

:GUNS1_38870
if 
  not Audio.HasMissionAudioLoaded(256@)
goto_if_false @GUNS1_38931
if 
  76 > 254@
goto_if_false @GUNS1_38931
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
Audio.LoadMissionAudio(256@, 172@(263@,82i))

:GUNS1_38931
switch_start 259@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @GUNS1_39291 {caseNum1} 0 {caseLabel1} @GUNS1_38994 {caseNum2} 1 {caseLabel2} @GUNS1_39103 {caseNum3} -1 {caseLabel3} @GUNS1_39389 {caseNum4} -1 {caseLabel4} @GUNS1_39389 {caseNum5} -1 {caseLabel5} @GUNS1_39389 {caseNum6} -1 {caseLabel6} @GUNS1_39389 {caseNum7} -1 {caseLabel7} @GUNS1_39389

:GUNS1_38994
if 
  257@ == 0
goto_if_false @GUNS1_39096
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_39041
Char.StartFacialTalk($scplayer, 5000)
Char.StopFacialTalk(98@)

:GUNS1_39041
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
254@ = 74
259@ = 1
262@ = Clock.GetGameTimer()

:GUNS1_39096
goto @GUNS1_39389

:GUNS1_39103
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_39284
if 
  257@ == 0
goto_if_false @GUNS1_39284
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_39195
Char.StartFacialTalk(98@, 5000)
Char.StopFacialTalk($scplayer)
Char.ClearTasks($scplayer)

:GUNS1_39195
254@ = 75
259@ = 2
TIMERA = 0
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_39279
129@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2761.0, -2002.0, 14.0, MoveState.Walk, 10000)
Sequence.Close(129@)
Char.PerformSequence(98@, 129@)
Sequence.Clear(129@)

:GUNS1_39279
262@ = Clock.GetGameTimer()

:GUNS1_39284
goto @GUNS1_39389

:GUNS1_39291
261@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_39382
if 
  257@ == 0
goto_if_false @GUNS1_39382
if 
  not Char.IsDead(98@)
goto_if_false @GUNS1_39375
Char.StopFacialTalk(98@)
Char.StopFacialTalk($scplayer)

:GUNS1_39375
258@ = 1

:GUNS1_39382
goto @GUNS1_39389

:GUNS1_39389
goto @GUNS1_38570

:GUNS1_39396
52@ = 0

:GUNS1_39403
if 
  52@ == 0
goto_if_false @GUNS1_39476
38@ = Char.GetScriptTaskStatus($scplayer, 1560)
if or
  is_int_lvar_equal_to_constant 38@ == 7
  TIMERA > 6000
goto_if_false @GUNS1_39465
52@ = 1

:GUNS1_39465
wait 0
goto @GUNS1_39403

:GUNS1_39476
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Char.ShutUpForScriptedSpeech($scplayer, False)
goto @GUNS1_40498
goto @GUNS1_39580

:GUNS1_39510
  Char.LocateAnyMeans3D($scplayer, 2741.0, -2010.0, 13.5, 4.0, 4.0, 5.0, True)
if 
  not Garage.IsOpen('BURG_LK')
goto_if_false @GUNS1_39580
Garage.Open('BURG_LK')

:GUNS1_39580
goto @GUNS1_39657

:GUNS1_39587
  Char.LocateAnyMeans3D($scplayer, 2742.0, -2000.0, 13.0, 4.0, 4.0, 5.0, True)
if 
  not Garage.IsClosed('BURG_LK')
goto_if_false @GUNS1_39657
Garage.Close('BURG_LK')

:GUNS1_39657
if 
  Player.IsWantedLevelGreater($player1, 0)
goto_if_false @GUNS1_40072
268@ = 0
if 
  96@ == 1
goto_if_false @GUNS1_39929
if 
  Char.LocateInCar2D($scplayer, 2067.4, -1831.2, 15.0, 15.0, False)
goto_if_false @GUNS1_39837
if and
  71@ == 1
  74@ == 0
goto_if_false @GUNS1_39830
if and
  not Char.IsDead(100@)
  not Car.IsDead(103@)
  not Car.IsDead(102@)
goto_if_false @GUNS1_39816
Car.SwitchSiren(103@, False)
Task.CarMission(100@, 103@, 102@, CarMission.EmergencyVehicleStop, 20.0, DrivingMode.StopForCars)

:GUNS1_39816
74@ = 1
71@ = 0

:GUNS1_39830
goto @GUNS1_39929

:GUNS1_39837
if and
  74@ == 1
  71@ == 0
goto_if_false @GUNS1_39929
if and
  not Char.IsDead(100@)
  not Car.IsDead(103@)
  not Car.IsDead(102@)
goto_if_false @GUNS1_39915
Car.SwitchSiren(103@, True)
Task.CarMission(100@, 103@, 102@, CarMission.RamPlayerClose, 33.0, DrivingMode.PloughThrough)

:GUNS1_39915
74@ = 0
71@ = 1

:GUNS1_39929
if 
  69@ == 0
goto_if_false @GUNS1_40065
if 
  68@ == 1
goto_if_false @GUNS1_39986
Blip.Remove(107@)
Text.ClearPrints
264@ = 2
68@ = 0

:GUNS1_39986
106@ = Blip.AddSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
69@ = 1
Text.ClearPrints
Text.Print('GUNS123', 5000, 1)
if 
  78@ == 1
goto_if_false @GUNS1_40065
264@ = 2
78@ = 0

:GUNS1_40065
goto @GUNS1_40471

:GUNS1_40072
272@ = 0
if 
  44@ == 1
goto_if_false @GUNS1_40170
if 
  11 > 43@
goto_if_false @GUNS1_40170
Text.Print('GUNS135', 4000, 1)
43@ -= 1
if 
  0 > 43@
goto_if_false @GUNS1_40163
43@ = 0

:GUNS1_40163
44@ = 0

:GUNS1_40170
if 
  68@ == 0
goto_if_false @GUNS1_40386
if 
  69@ == 1
goto_if_false @GUNS1_40218
Blip.Remove(106@)
69@ = 0

:GUNS1_40218
Text.ClearPrints
if 
  Char.LocateInCar2D($scplayer, 2067.4, -1831.2, 15.0, 15.0, False)
goto_if_false @GUNS1_40286
wait 3000
Text.Print('GUNS124', 5000, 1)
goto @GUNS1_40302

:GUNS1_40286
Text.Print('GUNS124', 5000, 1)

:GUNS1_40302
if 
  78@ == 0
goto_if_false @GUNS1_40352
if 
  96@ == 1
goto_if_false @GUNS1_40345
264@ = 1

:GUNS1_40345
goto @GUNS1_40359

:GUNS1_40352
264@ = 3

:GUNS1_40359
107@ = Blip.AddForCoord(2742.0, -2008.0, 13.0)
68@ = 1

:GUNS1_40386
if and
  71@ == 1
  74@ == 0
goto_if_false @GUNS1_40471
if and
  not Char.IsDead(100@)
  not Car.IsDead(103@)
  not Car.IsDead(102@)
goto_if_false @GUNS1_40471
Car.SwitchSiren(103@, False)
Task.CarMission(100@, 103@, 102@, CarMission.Cruise, 20.0, DrivingMode.AvoidCars)
71@ = 0

:GUNS1_40471
goto @GUNS1_4763
return 

:GUNS1_40480
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:GUNS1_40498
set_lvar_int_to_lvar_int 50@ = 35@
50@ *= 50
Text.PrintWithNumberBig('M_PASSR', 3, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(3)
Game.SetPoliceIgnorePlayer($player1, False)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.PlayerMadeProgress(1)
Stat.RegisterMissionPassed('RYDER_1')
$flag_ryder_mission_counter += 1
return 

:GUNS1_40575
$onmission = 0
$disable_mod_garage = 0
$timer_mobile_start = Clock.GetGameTimer()
CarGenerator.Switch($gen_car18, 101)
Hud.SetRadarZoom(0)
if 
  Player.IsPlaying($player1)
goto_if_false @GUNS1_40628
Char.ShutUpForScriptedSpeech($scplayer, False)

:GUNS1_40628
Game.SetPoliceIgnorePlayer($player1, False)
World.SwitchEntryExit('BURHOUS', True)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Blip.Remove(108@)
Blip.Remove(105@)
Blip.Remove(104@)
Blip.Remove(109@)
Blip.Remove(106@)
Blip.Remove(107@)
Blip.Remove(110@)
Blip.Remove(111@)
Blip.Remove(112@)
Blip.Remove(113@)
Blip.Remove(114@)
Blip.Remove(115@)
Blip.Remove(116@)
Hud.ClearCounter($ryd1_time_to_daylight)
Hud.DisplayRadar(True)
Hud.Display(True)
Hud.ClearTimer($tripskip_c3flag)
Streaming.MarkModelAsNoLongerNeeded(609)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(62)
Streaming.MarkModelAsNoLongerNeeded(280)
Streaming.MarkModelAsNoLongerNeeded(596)
Streaming.MarkModelAsNoLongerNeeded(#DB_AMMO)
Streaming.RemoveAnimation("CARRY")
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("POLICE")
Streaming.RemoveAnimation("INT_HOUSE")
Streaming.RemoveAnimation("ON_LOOKERS")
Streaming.RemoveAnimation("CAR_CHAT")
Char.RemoveElegantly(98@)
Char.MarkAsNoLongerNeeded(99@)
Char.MarkAsNoLongerNeeded(100@)
Char.MarkAsNoLongerNeeded(101@)
Car.MarkAsNoLongerNeeded(103@)
Car.MarkAsNoLongerNeeded(102@)
Object.MarkAsNoLongerNeeded(117@)
Object.MarkAsNoLongerNeeded(118@)
Object.MarkAsNoLongerNeeded(119@)
Object.MarkAsNoLongerNeeded(120@)
Object.MarkAsNoLongerNeeded(121@)
Object.MarkAsNoLongerNeeded(122@)
Object.MarkAsNoLongerNeeded(123@)
if 
  not Char.IsDead(99@)
goto_if_false @GUNS1_40937
Char.SetDecisionMaker(99@, 41@)
Char.SetRelationship(99@, RelationshipType.Hate, PedType.Player1)

:GUNS1_40937
Streaming.UnloadSpecialCharacter(1)
DecisionMaker.Remove(39@)
DecisionMaker.Remove(40@)
DecisionMaker.Remove(41@)
DecisionMaker.Remove(42@)
Path.SwitchPedRoadsBackToOriginal(2775.0, -1196.4, 20.0, 2840.0, -1141.0, 35.0)
Mission.Finish
return 

//-------------Mission 25---------------
// Originally: Catalyst

:RYDER3
script_name 'RYDER3'
gosub @RYDER3_47
if 
  has_deatharrest_been_executed 
goto_if_false @RYDER3_38
gosub @RYDER3_17920

:RYDER3_38
gosub @RYDER3_18100
terminate_this_script 

:RYDER3_47
Stat.RegisterMissionGiven
$onmission = 1
Game.MakeRoomInPlayerGangForMissionPeds(1)
89@ = 0
$6869 = 0
95@ = 2
102@ = 0
Text.LoadMissionText('RYDER3')
72@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
105@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
World.SetCarDensityMultiplier(0.5)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:RYDER3_135
if 
  Camera.GetFadingStatus
goto_if_false @RYDER3_159
wait 0
goto @RYDER3_135

:RYDER3_159
Streaming.SetAreaVisible(2)
Cutscene.Load('RYDER3A')

:RYDER3_174
if 
  not Cutscene.HasLoaded
goto_if_false @RYDER3_198
wait 0
goto @RYDER3_174

:RYDER3_198
Cutscene.Start
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:RYDER3_215
if 
  not Cutscene.HasFinished
goto_if_false @RYDER3_239
wait 0
goto @RYDER3_215

:RYDER3_239
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)

:RYDER3_253
if 
  Camera.GetFadingStatus
goto_if_false @RYDER3_277
wait 0
goto @RYDER3_253

:RYDER3_277
Cutscene.Clear
Text.ClearPrints
Hud.SwitchWidescreen(False)
Streaming.SetAreaVisible(0)
CarGenerator.Switch($gen_car5, 0)
Streaming.RequestModel(600)
Streaming.RequestModel(352)
Streaming.RequestModel(346)
Streaming.RequestModel(#CR_GUNCRATE)
Streaming.RequestModel(#CR_AMMOBOX)
Streaming.RequestModel(105)
Streaming.RequestAnimation("BOX")
Streaming.RequestAnimation("RYDER")
Streaming.RequestAnimation("SWAT")
Streaming.RequestModel(108)
Streaming.RequestModel(109)
Streaming.RequestModel(110)
Streaming.RequestModel(537)
Streaming.RequestModel(569)
Streaming.RequestModel(492)
Streaming.RequestModel(105)
Streaming.RequestModel(106)
Streaming.LoadSpecialCharacter(1, 'RYDER2')
Streaming.LoadAllModelsNow

:RYDER3_399
if or
  not Streaming.HasModelLoaded(600)
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(#CR_GUNCRATE)
  not Streaming.HasModelLoaded(#CR_AMMOBOX)
goto_if_false @RYDER3_446
wait 0
goto @RYDER3_399

:RYDER3_446
if or
  not Streaming.HasModelLoaded(105)
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasAnimationLoaded("BOX")
  not Streaming.HasAnimationLoaded("RYDER")
goto_if_false @RYDER3_492
wait 0
goto @RYDER3_446

:RYDER3_492
if or
  not Streaming.HasModelLoaded(108)
  not Streaming.HasModelLoaded(109)
  not Streaming.HasModelLoaded(110)
  not Streaming.HasModelLoaded(537)
  not Streaming.HasModelLoaded(569)
goto_if_false @RYDER3_536
wait 0
goto @RYDER3_492

:RYDER3_536
if or
  not Streaming.HasModelLoaded(492)
  not Streaming.HasModelLoaded(105)
  not Streaming.HasModelLoaded(106)
  not Streaming.HasAnimationLoaded("SWAT")
goto_if_false @RYDER3_579
wait 0
goto @RYDER3_536

:RYDER3_579
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_2059
gosub @RYDER3_18751
Player.SetControl($player1, False)
51@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_R", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootTimed(-1, $scplayer, 2000)
Task.StayInSamePlace(-1, False)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_OUT_R", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(51@, True)
Sequence.Close(51@)
52@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_L", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootTimed(-1, $scplayer, 2000)
Task.StayInSamePlace(-1, False)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_OUT_L", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(52@, True)
Sequence.Close(52@)
76@ = Sequence.Open()
Task.PlayAnim(-1, "COWER", "PED", 4.0, False, False, False, True, -1)
Task.Pause(-1, 2000)
Sequence.Close(76@)
75@ = Sequence.Open()
Task.PlayAnim(-1, "RYD_BECKON_01", "RYDER", 1.0, False, False, False, False, -1)
Task.Pause(-1, 20000)
Sequence.SetToRepeat(75@, True)
Sequence.Close(75@)
40@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.GoToCoordAnyMeans(-1, 2290.584, -1142.411, 25.7144, 6, -1)
Task.GoToCoordAnyMeans(-1, 2288.539, -1133.753, 25.7076, 6, -1)
Task.AchieveHeading(-1, 253.83)
Task.StayInSamePlace(-1, True)
Sequence.Close(40@)
66@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 2289.092, -1117.049, 25.9062, 6, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(66@)
67@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 2285.11, -1117.117, 25.9062, 6, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(67@)
World.ClearArea(2477.135, -1683.116, 12.3782, 10.0, True)
World.ClearArea(2469.224, -1672.496, 12.484, 10.0, True)
World.ClearArea(2472.783, -1685.696, 12.5153, 0.5, False)
Streaming.LoadScene(2472.783, -1685.696, 12.5153)
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_1446
Char.SetCoordinates($scplayer, 2472.783, -1685.696, 12.5153)
Char.SetHeading($scplayer, 336.6331)
Camera.SetBehindPlayer

:RYDER3_1446
Car.SetModelComponents(600, 4, 4)
Car.CustomPlateForNextCar(600, "_SHERM__")
108@ = Car.Create(600, 2476.035, -1678.379, 12.3457)
Car.SetCanBurstTires(108@, False)
Car.SetHeading(108@, 43.9007)
Car.SetHealth(108@, 2000)
99@ = Blip.AddForCar(108@)
Blip.SetAsFriendly(99@, True)
Car.SetOnlyDamagedByPlayer(108@, True)
Car.ChangeColor(108@, 84, 84)
Car.SetCruiseSpeed(108@, 5.0)
Blip.ChangeDisplay(99@, BlipDisplay.Neither)
Car.SetStraightLineDistance(108@, 250)
$ryder = Char.CreateAsPassenger(108@, PedType.Mission1, 290, 0)
Char.SetGetOutUpsideDownCar($ryder, False)
Streaming.UnloadSpecialCharacter(1)
Char.SetHeading($ryder, 121.9883)
Task.StayInSamePlace($ryder, True)
Char.SetHealth($ryder, 800)
Char.SetMaxHealth($ryder, 800)
Char.SetSuffersCriticalHits($ryder, False)
Char.SetNeverTargeted($ryder, True)
Char.GiveWeapon($ryder, WeaponType.MicroUzi, 9999)
Char.SetCantBeDraggedOut($ryder, True)
Char.SetAnimGroup($ryder, "GANG1")
Char.SetRelationship($ryder, RelationshipType.Like, PedType.Player1)
Char.SetDecisionMaker($ryder, 72@)
Game.SetRelationship(RelationshipType.Like, PedType.Mission1, PedType.Mission1)
Game.SetRelationship(RelationshipType.Like, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Like, PedType.Mission2, PedType.Mission2)
109@ = 0

:RYDER3_1724
if 
  10 > 109@
goto_if_false @RYDER3_1767
110@(109@,10i) = -1
109@ += 1
goto @RYDER3_1724

:RYDER3_1767
109@ = 0
$r3_rnd = 0
$collected_guns = 10
122@ = 0
123@ = -1
124@ = 5
if 
  $onmission == 0
goto_if_false @RYDER3_1848
110@(109@,10i) = Object.CreateNoOffset(#GUNBOX, $x, $y, $z)

:RYDER3_1848
89@ = 0
Path.SwitchRoadsOff(2284.0, -1151.0, 10.0, 2288.0, -1147.0, 30.0)
Path.SwitchRoadsOff(2287.321, -1132.571, 10.0, 2360.839, -1177.134, 40.0)
Path.SwitchRoadsOff(2311.676, -1375.397, 10.0, 2292.365, -1303.102, 40.0)
Path.SwitchRoadsOff(2268.695, -1138.541, 10.0, 2282.362, -1159.604, 40.0)
Path.SwitchRoadsOff(2307.537, -1162.624, 10.0, 2266.351, -1136.99, 40.0)
Game.SwitchRandomTrains(False)
Game.SetCreateRandomGangMembers(False)
125@ = 0
126@ = 0
127@ = -153
TIMERA = 0
Game.SetWantedMultiplier(0.0)

:RYDER3_2059
128@ = Object.CreateNoOffset(#TMP_BIN, 2295.391, -1129.812, 26.4)
Object.SetHeading(128@, 187.2863)
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_2119
Task.EnterCarAsDriver($scplayer, 108@, 5000)

:RYDER3_2119
Camera.SetFixedPosition(2473.642, -1674.005, 13.6679, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2473.833, -1674.969, 13.4843, SwitchType.JumpCut)
gosub @RYDER3_18844
Text.PrintNow('RYD3_Z', 6000, 1)
TIMERB = 0

:RYDER3_2200
if 
  4000 > TIMERB
goto_if_false @RYDER3_2247
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @RYDER3_2240

:RYDER3_2240
goto @RYDER3_2200

:RYDER3_2247
gosub @RYDER3_18779

:RYDER3_2254
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_17913
wait 0
gosub @RYDER3_18877
gosub @RYDER3_19947
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @RYDER3_2310
goto @RYDER3_17999

:RYDER3_2310
if 
  Char.LocateAnyMeans3D($scplayer, 2290.65, -1148.723, 25.7508, 275.0, 275.0, 200.0, False)
goto_if_false @RYDER3_2372
World.SetCarDensityMultiplier(0.0)
goto @RYDER3_2397

:RYDER3_2372
if 
  10 > 89@
goto_if_false @RYDER3_2397
World.SetCarDensityMultiplier(1.0)

:RYDER3_2397
if 
  102@ == 0
goto_if_false @RYDER3_3444
if and
  Streaming.HasModelLoaded(537)
  Streaming.HasModelLoaded(569)
goto_if_false @RYDER3_3444
129@ = Train.Create(10, 2278.177, -1144.882, 27.5107, True)
Car.LockDoors(129@, CarLock.Locked)
Train.SetSpeed(129@, 0.0)
Train.SetCruiseSpeed(129@, 0.0)
Car.FreezePosition(129@, True)
163@ = Train.GetCaboose(129@)
74@ = Object.Create(#AMMOTRN_OBJ, 2278.177, -1144.882, 27.5107)
Object.AttachToCar(74@, 163@, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
91@ = Object.Create(#CR_GUNCRATE, 2278.177, -1144.882, 27.5107)
Object.AttachToCar(91@, 163@, 0.5, -5.5, -0.8, 0.0, 0.0, 145.0)
92@ = Object.Create(#CR_GUNCRATE, 2278.177, -1144.882, 27.5107)
Object.AttachToCar(92@, 163@, 0.5, 6.0, -0.8, 0.0, 0.0, 60.0)
93@ = Object.Create(#CR_GUNCRATE, 2278.177, -1144.882, 27.5107)
Object.AttachToCar(93@, 163@, -0.5, 8.0, -0.8, 0.0, 0.0, 130.0)
61@ = Object.Create(#CR_GUNCRATE, 2287.744, -1131.75, 25.7431)
Object.SetHeading(61@, 85.7739)
62@ = Object.Create(#CR_GUNCRATE, 2287.358, -1131.091, 25.7449)
Object.SetHeading(62@, 209.4727)
63@ = Object.Create(#CR_GUNCRATE, 2287.665, -1127.056, 25.8118)
Object.SetHeading(63@, 97.4572)
64@ = Object.Create(#CR_GUNCRATE, 2287.431, -1125.586, 25.8256)
Object.SetHeading(64@, 176.9109)
102@ = 1
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Mission2)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission2, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission2, PedType.Mission1)
142@ = Char.Create(PedType.CivMale, 106, 2291.969, -1131.63, 25.7468)
Char.SetHeading(142@, 188.6236)
Task.PlayAnimNonInterruptable(142@, "KO_SHOT_FRONT", "PED", 2.0, False, False, False, True, -1)
Char.SetCollision(142@, False)
Char.SetNeverTargeted(142@, True)
Char.SetDecisionMaker(142@, 105@)
143@ = Char.Create(PedType.CivMale, 108, 2290.66, -1146.023, 25.7507)
Char.SetHeading(143@, 180.7254)
Task.PlayAnimNonInterruptable(143@, "KO_SHOT_FRONT", "PED", 2.0, False, False, False, True, -1)
Char.SetCollision(143@, False)
Char.SetNeverTargeted(143@, True)
Char.SetDecisionMaker(143@, 105@)
130@ = Char.Create(PedType.Mission2, 108, 2295.683, -1128.682, 25.8647)
Char.SetHeading(130@, 175.3117)
Task.StayInSamePlace(130@, True)
Char.SetIsTargetPriority(130@, True)
131@ = Char.Create(PedType.Mission2, 109, 2289.14, -1131.133, 25.7539)
Char.SetHeading(131@, 190.007)
Task.StayInSamePlace(131@, True)
Char.SetIsTargetPriority(131@, True)
132@ = Char.Create(PedType.Mission2, 109, 2293.741, -1130.343, 25.8004)
Char.SetHeading(132@, 178.0093)
Task.ToggleDuck(132@, True)
Task.StayInSamePlace(132@, True)
Char.SetIsTargetPriority(132@, True)
133@ = Char.Create(PedType.Mission2, 110, 2285.522, -1135.369, 28.0)
Char.SetHeading(133@, 202.6963)
Char.SetOnlyDamagedByPlayer(133@, True)
Task.StayInSamePlace(133@, True)
Char.SetIsTargetPriority(133@, True)
144@ = Char.Create(PedType.Mission1, 105, 2296.282, -1158.184, 25.6529)
Char.SetHeading(144@, 9.002)
Task.ToggleDuck(144@, True)
Task.StayInSamePlace(144@, True)
145@ = Char.Create(PedType.Mission1, 106, 2287.524, -1150.041, 25.7574)
Char.SetHeading(145@, 347.622)
Task.StayInSamePlace(145@, True)
Task.ToggleDuck(145@, True)
146@ = Char.Create(PedType.Mission1, 105, 2301.257, -1157.372, 25.597)
Char.SetHeading(146@, 9.002)
Task.StayInSamePlace(146@, True)

:RYDER3_3444
if and
  not Car.IsDead(108@)
  not Char.IsDead($ryder)
goto_if_false @RYDER3_3561
if and
  Char.IsInCar($scplayer, 108@)
  89@ == 0
goto_if_false @RYDER3_3561
TIMERB = 0
Audio.SetRadioChannel(RadioChannel.RadioLosSantos)
Game.SwitchRandomTrains(False)
122@ = 4
89@ += 1
Blip.ChangeDisplay(99@, BlipDisplay.Neither)
34@ = Blip.AddForCoord(2278.177, -1144.882, 27.5107)
Blip.SetCoordAppearance(34@, 0)
101@ = 1

:RYDER3_3561
if or
  89@ == 1
  89@ == 2
goto_if_false @RYDER3_4008
if and
  not Car.IsDead(108@)
  not Char.IsDead($ryder)
goto_if_false @RYDER3_4008
if 
  Char.IsInCar($scplayer, 108@)
goto_if_false @RYDER3_3688
if 
  101@ <> 1
goto_if_false @RYDER3_3681
Blip.ChangeDisplay(99@, BlipDisplay.Neither)
Blip.ChangeDisplay(34@, BlipDisplay.Both)
Text.PrintNow('RYD3_Z', 6000, 1)
101@ = 1

:RYDER3_3681
goto @RYDER3_4008

:RYDER3_3688
if 
  101@ == 1
goto_if_false @RYDER3_3953
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_3729
Char.ShutUpForScriptedSpeech($ryder, False)

:RYDER3_3729
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_3752
Char.ShutUpForScriptedSpeech($scplayer, False)

:RYDER3_3752
Blip.ChangeDisplay(34@, BlipDisplay.Neither)
Blip.ChangeDisplay(99@, BlipDisplay.Both)
$6869 = Math.RandomIntInRange(0, 3)
switch_start $6869 {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER3_3946 {caseNum1} 0 {caseLabel1} @RYDER3_3838 {caseNum2} 1 {caseLabel2} @RYDER3_3874 {caseNum3} 2 {caseLabel3} @RYDER3_3910 {caseNum4} -1 {caseLabel4} @RYDER3_3946 {caseNum5} -1 {caseLabel5} @RYDER3_3946 {caseNum6} -1 {caseLabel6} @RYDER3_3946 {caseNum7} -1 {caseLabel7} @RYDER3_3946

:RYDER3_3838
set_lvar_text_label 106@s = 'RYD3_NA'
set_lvar_int_to_constant 96@ = 13649
gosub @RYDER3_19927
goto @RYDER3_3946

:RYDER3_3874
set_lvar_text_label 106@s = 'RYD3_NB'
set_lvar_int_to_constant 96@ = 13650
gosub @RYDER3_19927
goto @RYDER3_3946

:RYDER3_3910
set_lvar_text_label 106@s = 'RYD3_NC'
set_lvar_int_to_constant 96@ = 13651
gosub @RYDER3_19927
goto @RYDER3_3946

:RYDER3_3946
101@ = 2

:RYDER3_3953
if and
  95@ == 2
  101@ == 2
goto_if_false @RYDER3_4001
Text.PrintNow('RYD3_Q', 4000, 1)
101@ = 0

:RYDER3_4001
87@ = 1

:RYDER3_4008
if 
  89@ == 1
goto_if_false @RYDER3_5318
if 
  87@ == 0
goto_if_false @RYDER3_4746
if and
  95@ == 2
  85@ == 0
goto_if_false @RYDER3_4151
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_4092
Char.ShutUpForScriptedSpeech($ryder, True)

:RYDER3_4092
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_4115
Char.ShutUpForScriptedSpeech($scplayer, True)

:RYDER3_4115
set_lvar_text_label 106@s = 'RYD3_AD'
set_lvar_int_to_constant 96@ = 13602
gosub @RYDER3_19927
85@ = 1

:RYDER3_4151
if and
  95@ == 2
  85@ == 1
goto_if_false @RYDER3_4212
set_lvar_text_label 106@s = 'RYD3_AE'
set_lvar_int_to_constant 96@ = 13655
gosub @RYDER3_19927
85@ = 2

:RYDER3_4212
if and
  95@ == 2
  85@ == 2
goto_if_false @RYDER3_4273
set_lvar_text_label 106@s = 'RYD3_BA'
set_lvar_int_to_constant 96@ = 13656
gosub @RYDER3_19927
85@ = 3

:RYDER3_4273
if and
  95@ == 2
  85@ == 3
goto_if_false @RYDER3_4334
set_lvar_text_label 106@s = 'RYD3_BB'
set_lvar_int_to_constant 96@ = 13603
gosub @RYDER3_19927
85@ = 4

:RYDER3_4334
if and
  95@ == 2
  85@ == 4
goto_if_false @RYDER3_4395
set_lvar_text_label 106@s = 'RYD3_BC'
set_lvar_int_to_constant 96@ = 13657
gosub @RYDER3_19927
85@ = 5

:RYDER3_4395
if and
  95@ == 2
  85@ == 5
goto_if_false @RYDER3_4456
set_lvar_text_label 106@s = 'RYD3_BD'
set_lvar_int_to_constant 96@ = 13604
gosub @RYDER3_19927
85@ = 6

:RYDER3_4456
if and
  95@ == 2
  85@ == 6
goto_if_false @RYDER3_4517
set_lvar_text_label 106@s = 'RYD3_BE'
set_lvar_int_to_constant 96@ = 13658
gosub @RYDER3_19927
85@ = 7

:RYDER3_4517
if and
  95@ == 2
  85@ == 7
goto_if_false @RYDER3_4578
set_lvar_text_label 106@s = 'RYD3_BG'
set_lvar_int_to_constant 96@ = 13606
gosub @RYDER3_19927
85@ = 8

:RYDER3_4578
if and
  95@ == 2
  85@ == 8
goto_if_false @RYDER3_4639
set_lvar_text_label 106@s = 'RYD3_BH'
set_lvar_int_to_constant 96@ = 13659
gosub @RYDER3_19927
85@ = 9

:RYDER3_4639
if and
  95@ == 2
  85@ == 9
goto_if_false @RYDER3_4746
set_lvar_text_label 106@s = 'RYD3_BJ'
set_lvar_int_to_constant 96@ = 13607
gosub @RYDER3_19927
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_4716
Char.ShutUp($ryder, False)

:RYDER3_4716
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_4739
Char.ShutUp($scplayer, False)

:RYDER3_4739
85@ = 10

:RYDER3_4746
if and
  Char.LocateAnyMeans3D($scplayer, 2290.65, -1148.723, 25.7508, 200.0, 200.0, 200.0, False)
  102@ == 1
goto_if_false @RYDER3_5249
36@ = 0

:RYDER3_4808
if 
  not Char.IsDead(130@(36@,6i))
goto_if_false @RYDER3_4971
Task.StayInSamePlace(130@(36@,6i), True)
136@(36@,6i) = Blip.AddForChar(130@(36@,6i))
if or
  36@ == 3
  36@ == 0
goto_if_false @RYDER3_4912
Char.SetWeaponSkill(130@(36@,6i), 2)
Char.GiveWeapon(130@(36@,6i), WeaponType.Pistol, 9999)
goto @RYDER3_4937

:RYDER3_4912
Char.GiveWeapon(130@(36@,6i), WeaponType.MicroUzi, 9999)
Char.SetCurrentWeapon(130@(36@,6i), WeaponType.MicroUzi)

:RYDER3_4937
Char.SetShootRate(130@(36@,6i), 50)
Char.SetAccuracy(130@(36@,6i), 50)
Char.SetDecisionMaker(130@(36@,6i), 72@)

:RYDER3_4971
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_4808
36@ = 0

:RYDER3_4999
if 
  not Char.IsDead(144@(36@,4i))
goto_if_false @RYDER3_5221
Char.SetNeverTargeted(144@(36@,4i), True)
Task.StayInSamePlace(144@(36@,4i), True)
if 
  36@ == 1
goto_if_false @RYDER3_5090
Char.SetHealth(144@(36@,4i), 200)
Char.SetMaxHealth(144@(36@,4i), 200)
goto @RYDER3_5112

:RYDER3_5090
Char.SetHealth(144@(36@,4i), 50)
Char.SetMaxHealth(144@(36@,4i), 50)

:RYDER3_5112
if 
  36@ == 1
goto_if_false @RYDER3_5162
Char.SetWeaponSkill(144@(36@,4i), 2)
Char.GiveWeapon(144@(36@,4i), WeaponType.Pistol, 9999)
goto @RYDER3_5187

:RYDER3_5162
Char.GiveWeapon(144@(36@,4i), WeaponType.MicroUzi, 9999)
Char.SetCurrentWeapon(144@(36@,4i), WeaponType.MicroUzi)

:RYDER3_5187
Char.SetShootRate(144@(36@,4i), 70)
Char.SetAccuracy(144@(36@,4i), 70)
Char.SetDecisionMaker(144@(36@,4i), 72@)

:RYDER3_5221
36@ += 1
  36@ >= 3
goto_if_false @RYDER3_4999
102@ = 2

:RYDER3_5249
if 
  Char.LocateAnyMeans3D($scplayer, 2290.65, -1148.723, 25.7508, 100.0, 100.0, 200.0, False)
goto_if_false @RYDER3_5318
89@ += 1
TIMERB = 0
85@ = 0

:RYDER3_5318
if 
  89@ == 2
goto_if_false @RYDER3_6766
36@ = 0

:RYDER3_5343
if and
  Char.IsDead(130@(36@,6i))
  130@(36@,6i) <> 0
goto_if_false @RYDER3_5423
if 
  Blip.DoesExist(136@(36@,6i))
goto_if_false @RYDER3_5423
Blip.Remove(136@(36@,6i))
136@(36@,6i) = 0
Char.MarkAsNoLongerNeeded(130@(36@,6i))

:RYDER3_5423
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_5343
if and
  not Car.IsDead(108@)
  not Char.IsDead($ryder)
goto_if_false @RYDER3_5498
if 
  Char.IsInCar($scplayer, 108@)
goto_if_false @RYDER3_5491
goto @RYDER3_5498

:RYDER3_5491
88@ = 1

:RYDER3_5498
if and
  Char.LocateAnyMeans3D($scplayer, 2290.65, -1148.723, 25.7508, 100.0, 100.0, 100.0, False)
  86@ == 0
goto_if_false @RYDER3_6094
if 
  not Char.IsDead(145@)
goto_if_false @RYDER3_5730
149@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.ToggleDuck(-1, True)
Task.GoStraightToCoord(-1, 2291.724, -1138.648, 25.6745, MoveState.Run, -2)
Task.StayInSamePlace(-1, True)
if 
  not Char.IsDead(130@)
goto_if_false @RYDER3_5638
Task.KillCharOnFoot(-1, 130@)

:RYDER3_5638
if 
  not Char.IsDead(131@)
goto_if_false @RYDER3_5661
Task.KillCharOnFoot(-1, 131@)

:RYDER3_5661
if 
  not Char.IsDead(132@)
goto_if_false @RYDER3_5684
Task.KillCharOnFoot(-1, 132@)

:RYDER3_5684
if 
  not Char.IsDead(133@)
goto_if_false @RYDER3_5707
Task.KillCharOnFoot(-1, 133@)

:RYDER3_5707
Sequence.Close(149@)
Char.ClearTasksImmediately(145@)
Char.PerformSequence(145@, 149@)
Sequence.Clear(149@)

:RYDER3_5730
if 
  not Char.IsDead(144@)
goto_if_false @RYDER3_5907
149@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.ToggleDuck(-1, True)
Task.GoStraightToCoord(-1, 2297.533, -1137.578, 25.8778, MoveState.Run, -2)
Task.StayInSamePlace(-1, True)
if 
  not Char.IsDead(130@)
goto_if_false @RYDER3_5815
Task.KillCharOnFoot(-1, 130@)

:RYDER3_5815
if 
  not Char.IsDead(131@)
goto_if_false @RYDER3_5838
Task.KillCharOnFoot(-1, 131@)

:RYDER3_5838
if 
  not Char.IsDead(132@)
goto_if_false @RYDER3_5861
Task.KillCharOnFoot(-1, 132@)

:RYDER3_5861
if 
  not Char.IsDead(133@)
goto_if_false @RYDER3_5884
Task.KillCharOnFoot(-1, 133@)

:RYDER3_5884
Sequence.Close(149@)
Char.ClearTasksImmediately(144@)
Char.PerformSequence(144@, 149@)
Sequence.Clear(149@)

:RYDER3_5907
if 
  not Char.IsDead(146@)
goto_if_false @RYDER3_6080
149@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.ToggleDuck(-1, True)
Task.GoStraightToCoord(-1, 2290.118, -1141.78, 25.7024, MoveState.Run, -2)
Path.FlushRoute
if 
  not Char.IsDead(130@)
goto_if_false @RYDER3_5988
Task.KillCharOnFoot(-1, 130@)

:RYDER3_5988
if 
  not Char.IsDead(131@)
goto_if_false @RYDER3_6011
Task.KillCharOnFoot(-1, 131@)

:RYDER3_6011
if 
  not Char.IsDead(132@)
goto_if_false @RYDER3_6034
Task.KillCharOnFoot(-1, 132@)

:RYDER3_6034
if 
  not Char.IsDead(133@)
goto_if_false @RYDER3_6057
Task.KillCharOnFoot(-1, 133@)

:RYDER3_6057
Sequence.Close(149@)
Char.ClearTasksImmediately(146@)
Char.PerformSequence(146@, 149@)
Sequence.Clear(149@)

:RYDER3_6080
86@ = 1
TIMERB = 0

:RYDER3_6094
if and
  88@ == 0
  86@ == 1
goto_if_false @RYDER3_6241
if and
  95@ == 2
  85@ == 0
goto_if_false @RYDER3_6180
set_lvar_text_label 106@s = 'RYD3_CA'
set_lvar_int_to_constant 96@ = 13608
gosub @RYDER3_19927
85@ = 1

:RYDER3_6180
if and
  95@ == 2
  85@ == 1
goto_if_false @RYDER3_6241
set_lvar_text_label 106@s = 'RYD3_CB'
set_lvar_int_to_constant 96@ = 13660
gosub @RYDER3_19927
85@ = 2

:RYDER3_6241
if and
  not Car.IsDead(108@)
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_6406
if 
  not Char.IsInCar($scplayer, 108@)
goto_if_false @RYDER3_6349
Text.PrintNow('RYD3_Q', 5000, 1)
if 
  39@ == 0
goto_if_false @RYDER3_6342
Blip.Remove(34@)
34@ = Blip.AddForCar(108@)
Blip.SetAsFriendly(34@, True)
39@ = 1

:RYDER3_6342
goto @RYDER3_6406

:RYDER3_6349
if 
  39@ == 1
goto_if_false @RYDER3_6406
Blip.Remove(34@)
34@ = Blip.AddForCoord(2278.177, -1144.882, 27.5107)
Blip.SetCoordAppearance(34@, 0)
39@ = 0

:RYDER3_6406
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(108@)
goto_if_false @RYDER3_6766
if 
  Car.LocateStopped3D(108@, 2289.591, -1135.625, 25.6863, 40.0, 40.0, 40.0, False)
goto_if_false @RYDER3_6766
Blip.Remove(34@)
if or
  not Char.IsDead(130@)
  not Char.IsDead(131@)
  not Char.IsDead(132@)
  not Char.IsDead(133@)
goto_if_false @RYDER3_6540
set_lvar_text_label 106@s = 'RYD3_CC'
set_lvar_int_to_constant 96@ = 13661
gosub @RYDER3_19927

:RYDER3_6540
TIMERA = 0
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_6759
if 
  not Car.IsDead(108@)
goto_if_false @RYDER3_6759
if 
  Char.IsInCar($ryder, 108@)
goto_if_false @RYDER3_6759
148@ = Sequence.Open()
Task.LeaveCar(-1, 108@)
Task.ToggleDuck(-1, True)
Task.GoToCoordAnyMeans(-1, 2295.104, -1148.029, 25.7612, 6, -1)
Task.TogglePedThreatScanner(-1, True, True, True)
if 
  not Char.IsDead(130@)
goto_if_false @RYDER3_6672
Task.KillCharOnFoot(-1, 130@)

:RYDER3_6672
if 
  not Char.IsDead(131@)
goto_if_false @RYDER3_6695
Task.KillCharOnFoot(-1, 131@)

:RYDER3_6695
if 
  not Char.IsDead(132@)
goto_if_false @RYDER3_6718
Task.KillCharOnFoot(-1, 132@)

:RYDER3_6718
if 
  not Char.IsDead(133@)
goto_if_false @RYDER3_6741
Task.KillCharOnFoot(-1, 133@)

:RYDER3_6741
Sequence.Close(148@)
Char.ClearTasks($ryder)
Char.PerformSequence($ryder, 148@)

:RYDER3_6759
89@ += 1

:RYDER3_6766
if and
  89@ == 3
  TIMERA > 4000
goto_if_false @RYDER3_6869
if 
  not Char.IsDead(131@)
goto_if_false @RYDER3_6815
Task.StayInSamePlace(131@, False)

:RYDER3_6815
if or
  not Char.IsDead(130@)
  not Char.IsDead(131@)
  not Char.IsDead(132@)
  not Char.IsDead(133@)
goto_if_false @RYDER3_6862
Text.PrintNow('RYD3_M', 5000, 1)

:RYDER3_6862
89@ += 1

:RYDER3_6869
if 
  89@ == 4
goto_if_false @RYDER3_7115
36@ = 0

:RYDER3_6894
if and
  Char.IsDead(130@(36@,6i))
  130@(36@,6i) <> 0
goto_if_false @RYDER3_6974
if 
  Blip.DoesExist(136@(36@,6i))
goto_if_false @RYDER3_6974
Blip.Remove(136@(36@,6i))
136@(36@,6i) = 0
Char.MarkAsNoLongerNeeded(130@(36@,6i))

:RYDER3_6974
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_6894
if and
  Char.IsDead(130@)
  Char.IsDead(131@)
  Char.IsDead(132@)
  Char.IsDead(133@)
goto_if_false @RYDER3_7058
if 
  84@ == 0
goto_if_false @RYDER3_7058
TIMERA = 0
84@ = 1

:RYDER3_7058
if and
  84@ == 1
  TIMERA > 2000
goto_if_false @RYDER3_7115
89@ += 1
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_7115
Char.PerformSequence($ryder, 40@)

:RYDER3_7115
if 
  89@ == 5
goto_if_false @RYDER3_7147
TIMERA = 0
89@ += 1

:RYDER3_7147
if 
  89@ == 6
goto_if_false @RYDER3_8209
gosub @RYDER3_18811
Streaming.RequestModel(492)
Streaming.RequestModel(352)
Streaming.RequestModel(102)
Streaming.RequestModel(104)
Streaming.RequestModel(346)

:RYDER3_7195
if or
  not Streaming.HasModelLoaded(492)
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(102)
  not Streaming.HasModelLoaded(104)
  not Streaming.HasModelLoaded(346)
goto_if_false @RYDER3_7240
wait 0
goto @RYDER3_7195

:RYDER3_7240
150@ = Car.Create(492, 2340.055, -1151.432, 25.9546)
Car.SetHeading(150@, 92.6857)
Car.GotoCoordinates(150@, 2313.414, -1150.093, 25.7997)
Car.SetDrivingStyle(150@, DrivingMode.PloughThrough)
Car.SetCruiseSpeed(150@, 25.0)
151@ = Char.CreateInsideCar(150@, PedType.Mission2, 102)
Char.SetHeading(151@, 227.7265)
152@ = Char.CreateAsPassenger(150@, PedType.Mission2, 104, 0)
Char.SetHeading(152@, 301.1901)
153@ = Char.CreateAsPassenger(150@, PedType.Mission2, 102, 1)
Char.SetHeading(153@, 82.8733)
Char.SetOnlyDamagedByPlayer(153@, True)
154@ = Char.CreateAsPassenger(150@, PedType.Mission2, 104, 2)
Char.SetHeading(154@, 82.8733)
Char.SetOnlyDamagedByPlayer(154@, True)
36@ = 0

:RYDER3_7425
155@(36@,4i) = Blip.AddForChar(151@(36@,4i))
if 
  36@ == 3
goto_if_false @RYDER3_7491
Char.SetWeaponSkill(151@(36@,4i), 2)
Char.GiveWeapon(151@(36@,4i), WeaponType.Pistol, 9999)
goto @RYDER3_7516

:RYDER3_7491
Char.GiveWeapon(151@(36@,4i), WeaponType.MicroUzi, 9999)
Char.SetCurrentWeapon(151@(36@,4i), WeaponType.MicroUzi)

:RYDER3_7516
Char.SetHealth(151@(36@,4i), 200)
Char.SetMaxHealth(151@(36@,4i), 200)
Char.SetShootRate(151@(36@,4i), 40)
Char.SetAccuracy(151@(36@,4i), 40)
Char.SetDecisionMaker(151@(36@,4i), 72@)
Char.SetIsTargetPriority(151@(36@,4i), True)
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_7425
gosub @RYDER3_18751
Streaming.LoadSceneInDirection(2287.296, -1140.38, 25.6779, 252.6459)
Camera.SetFixedPosition(2283.145, -1135.652, 28.6919, 0.0, 0.0, 0.0)
if 
  not Car.IsDead(150@)
goto_if_false @RYDER3_7692
Camera.PointAtCar(150@, CameraMode.Fixed, SwitchType.JumpCut)

:RYDER3_7692
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_7744
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @RYDER3_7744
Task.TurnCharToFaceCoord($scplayer, 2313.414, -1150.093, 25.7997)

:RYDER3_7744
36@ = 0

:RYDER3_7751
if 
  not Char.IsDead(144@(36@,4i))
goto_if_false @RYDER3_7826
if 
  not Char.IsInAnyCar(144@(36@,4i))
goto_if_false @RYDER3_7826
Task.TurnCharToFaceCoord(144@(36@,4i), 2313.414, -1150.093, 25.7997)
Task.StayInSamePlace(144@(36@,4i), True)

:RYDER3_7826
36@ += 1
  36@ >= 3
goto_if_false @RYDER3_7751
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_8047
159@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.GoStraightToCoord(-1, 2295.693, -1142.469, 25.8392, MoveState.Run, -2)
Task.TurnCharToFaceCoord(-1, 2313.414, -1150.093, 25.7997)
if 
  not Char.IsDead(151@)
goto_if_false @RYDER3_7939
Task.KillCharOnFoot(-1, 151@)

:RYDER3_7939
if 
  not Char.IsDead(152@)
goto_if_false @RYDER3_7962
Task.KillCharOnFoot(-1, 152@)

:RYDER3_7962
if 
  not Char.IsDead(153@)
goto_if_false @RYDER3_7985
Task.KillCharOnFoot(-1, 153@)

:RYDER3_7985
if 
  not Char.IsDead(154@)
goto_if_false @RYDER3_8008
Task.KillCharOnFoot(-1, 154@)

:RYDER3_8008
Sequence.Close(159@)
if 
  not Char.IsInAnyCar($ryder)
goto_if_false @RYDER3_8042
Char.ClearTasksImmediately($ryder)
Char.PerformSequence($ryder, 159@)

:RYDER3_8042
Sequence.Clear(159@)

:RYDER3_8047
gosub @RYDER3_18844
Text.PrintNow('RYD3_2', 3000, 1)
wait 1000
TIMERB = 0

:RYDER3_8082
if 
  3000 > TIMERB
goto_if_false @RYDER3_8136
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @RYDER3_8129
goto @RYDER3_8136

:RYDER3_8129
goto @RYDER3_8082

:RYDER3_8136
gosub @RYDER3_18779
Text.PrintNow('RYD3_DA', 3000, 1)
set_lvar_text_label 106@s = 'RYD3_DA'
set_lvar_int_to_constant 96@ = 13610
gosub @RYDER3_19927
85@ = 0
TIMERB = 0
89@ += 1

:RYDER3_8209
if 
  89@ == 7
goto_if_false @RYDER3_8293
if 
  not Car.IsDead(150@)
goto_if_false @RYDER3_8293
if 
  Car.LocateStopped2D(150@, 2304.182, -1142.619, 15.0, 15.0, False)
goto_if_false @RYDER3_8293
Car.TaskEveryoneLeave(150@)
89@ += 1

:RYDER3_8293
if 
  89@ == 8
goto_if_false @RYDER3_9029
36@ = 0

:RYDER3_8318
if and
  Char.IsDead(151@(36@,4i))
  151@(36@,4i) <> 0
goto_if_false @RYDER3_8398
if 
  Blip.DoesExist(155@(36@,4i))
goto_if_false @RYDER3_8398
Blip.Remove(155@(36@,4i))
155@(36@,4i) = 0
Char.MarkAsNoLongerNeeded(151@(36@,4i))

:RYDER3_8398
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_8318
if and
  TIMERB > 3000
  85@ == 0
goto_if_false @RYDER3_8641
set_lvar_text_label 106@s = 'RYD3_DB'
set_lvar_int_to_constant 96@ = 13662
gosub @RYDER3_19927
if 
  not Char.IsDead(151@)
goto_if_false @RYDER3_8514
Task.GoToCoordAnyMeans(151@, 2299.284, -1133.929, 27.3281, 6, -1)

:RYDER3_8514
if 
  not Char.IsDead(152@)
goto_if_false @RYDER3_8554
Task.GoToCoordAnyMeans(152@, 2291.226, -1140.169, 25.6912, 6, -1)

:RYDER3_8554
if 
  not Char.IsDead(153@)
goto_if_false @RYDER3_8594
Task.GoToCoordAnyMeans(153@, 2298.09, -1144.036, 25.919, 6, -1)

:RYDER3_8594
if 
  not Char.IsDead(154@)
goto_if_false @RYDER3_8634
Task.GoToCoordAnyMeans(154@, 2291.842, -1129.22, 25.7756, 6, -1)

:RYDER3_8634
85@ = 1

:RYDER3_8641
if and
  95@ == 2
  85@ == 1
goto_if_false @RYDER3_8702
set_lvar_text_label 106@s = 'RYD3_DC'
set_lvar_int_to_constant 96@ = 13611
gosub @RYDER3_19927
85@ = 2

:RYDER3_8702
if and
  Char.IsDead(151@)
  Char.IsDead(152@)
  Char.IsDead(153@)
  Char.IsDead(154@)
goto_if_false @RYDER3_9029
89@ += 1
68@ = Blip.AddForCoord(2287.147, -1121.702, 25.8903)
Blip.SetCoordAppearance(68@, 0)
set_lvar_text_label 106@s = 'RYD3_EA'
set_lvar_int_to_constant 96@ = 13612
gosub @RYDER3_19927
85@ = 0
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_9022
161@ = Sequence.Open()
Task.AchieveHeading(-1, 77.6187)
Task.PlayAnim(-1, "IDLE_ARMED", "PED", 1.0, False, False, False, False, -1)
Task.Pause(-1, 2000)
Task.TurnCharToFaceChar(-1, $scplayer)
Task.PlayAnim(-1, "RYD_BECKON_01", "RYDER", 1.0, False, False, False, False, -1)
Sequence.SetToRepeat(161@, True)
Sequence.Close(161@)
160@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2294.854, -1143.85, 25.814, MoveState.Run, -2)
Task.GoStraightToCoord(-1, 2290.716, -1122.997, 25.8774, MoveState.Run, -2)
Char.PerformSequence(-1, 161@)
Sequence.Close(160@)
Char.ClearTasksImmediately($ryder)
Char.PerformSequence($ryder, 160@)
Sequence.Clear(161@)
Sequence.Clear(160@)

:RYDER3_9022
TIMERB = 0

:RYDER3_9029
if 
  89@ == 9
goto_if_false @RYDER3_10572
if and
  TIMERB > 4000
  85@ == 0
goto_if_false @RYDER3_9096
Text.PrintNow('RYD3_1', 4000, 1)
85@ = 1

:RYDER3_9096
if 
  Char.LocateOnFoot3D($scplayer, 2287.147, -1121.702, 25.8903, 1.2, 1.2, 3.0, True)
goto_if_false @RYDER3_10572
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_9167
Player.SetControl($player1, False)

:RYDER3_9167
if 
  Blip.DoesExist(68@)
goto_if_false @RYDER3_9188
Blip.Remove(68@)

:RYDER3_9188
gosub @RYDER3_18751
Char.Delete(133@)
Pad.SetPlayerDisplayVitalStatsButton($player1, False)
Camera.SetFixedPosition(2288.881, -1117.758, 28.0044, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2288.3, -1118.549, 27.8136, SwitchType.JumpCut)
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_9333
Char.SetCoordinates($scplayer, 2287.147, -1121.702, 25.8903)
Char.SetHeading($scplayer, 91.8747)
Task.Climb($scplayer, True)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.SetProofs($scplayer, True, True, True, True, True)

:RYDER3_9333
wait 1000
gosub @RYDER3_18811
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_9439
Char.ClearTasksImmediately($scplayer)
if 
  not Char.IsSittingInAnyCar($scplayer)
goto_if_false @RYDER3_9409
Char.SetCoordinates($scplayer, 2284.766, -1121.5, 27.386)
goto @RYDER3_9429

:RYDER3_9409
Char.WarpFromCarToCoord($scplayer, 2284.766, -1121.5, 27.386)

:RYDER3_9429
Char.SetHeading($scplayer, 220.0)

:RYDER3_9439
Streaming.RequestCarRecording(486)
Streaming.RequestCarRecording(490)

:RYDER3_9449
if or
  not Streaming.HasCarRecordingBeenLoaded(486)
  not Streaming.HasCarRecordingBeenLoaded(490)
goto_if_false @RYDER3_9481
wait 0
goto @RYDER3_9449

:RYDER3_9481
World.ClearArea(2284.732, -1121.916, 27.0, 50.0, True)
if 
  not Car.IsDead(108@)
goto_if_false @RYDER3_9648
162@ = Char.Create(PedType.Mission1, 105, 2294.554, -1156.382, 25.6646)
Char.SetHeading(162@, 9.002)
if 
  not Char.IsDead(162@)
goto_if_false @RYDER3_9598
if 
  not Char.IsInCar(162@, 108@)
goto_if_false @RYDER3_9598
Char.WarpIntoCar(162@, 108@)

:RYDER3_9598
if 
  Char.IsDead(162@)
goto_if_false @RYDER3_9643
162@ = Char.CreateInsideCar(108@, PedType.Mission1, 105)
Char.SetNeverTargeted(162@, True)
Char.GiveWeapon(162@, WeaponType.MicroUzi, 9999)

:RYDER3_9643
Car.CloseAllDoors(108@)

:RYDER3_9648
if and
  not Car.IsDead(108@)
  not Char.IsDead(162@)
goto_if_false @RYDER3_9700
70@ = Blip.AddForCar(108@)
Blip.SetAsFriendly(70@, True)
Car.SetHealth(108@, 5000)
Char.SetHealth(162@, 500)

:RYDER3_9700
Char.Delete($ryder)
if 
  not Car.IsDead(108@)
goto_if_false @RYDER3_9735
$x, $y, $z = Car.GetCoordinates(108@)

:RYDER3_9735
$ryder = Char.Create(PedType.Mission1, 290, $x, $y, $z)
Char.SetHealth($ryder, 500)
Char.ClearAllRelationships($ryder, RelationshipType.Hate)
if 
  not Car.IsDead(108@)
goto_if_false @RYDER3_9817
Char.AttachToCar($ryder, 108@, 0.0, -0.85, 0.65, 1, 360.0, WeaponType.MicroUzi)

:RYDER3_9817
Char.SetProofs($ryder, True, True, False, True, True)
Task.TogglePedThreatScanner($ryder, False, False, False)
if 
  not Char.IsDead(162@)
goto_if_false @RYDER3_9878
Task.TogglePedThreatScanner(162@, False, False, False)
Char.SetDecisionMaker(162@, 105@)

:RYDER3_9878
if 
  not Car.IsDead(108@)
goto_if_false @RYDER3_9907
Car.StartPlayback(108@, 486)
Car.PausePlayback(108@)

:RYDER3_9907
wait 800
if 
  not Car.IsDead(129@)
goto_if_false @RYDER3_9943
Car.FreezePosition(129@, False)
Car.StartPlayback(129@, 490)

:RYDER3_9943
Object.Delete(61@)
Object.Delete(62@)
Object.Delete(63@)
Object.Delete(64@)
36@ = 0

:RYDER3_9970
Char.Delete(144@(36@,4i))
36@ += 1
  36@ >= 3
goto_if_false @RYDER3_9970
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
Streaming.LoadSceneInDirection(2288.516, -1136.404, 28.5557, 149.2199)
Camera.SetFixedPosition(2288.516, -1136.404, 28.5557, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2288.295, -1137.368, 28.41, SwitchType.JumpCut)
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_10138
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 2284.766, -1121.5, 27.386)
Char.SetHeading($scplayer, 0.0)

:RYDER3_10138
wait 200
if and
  not Car.IsDead(108@)
  Car.IsPlaybackGoingOn(108@)
goto_if_false @RYDER3_10169
Car.UnpausePlayback(108@)

:RYDER3_10169
gosub @RYDER3_18844
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13663)

:RYDER3_10201
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @RYDER3_10227
wait 0
goto @RYDER3_10201

:RYDER3_10227
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('RYD3_FA', 2000, 1)
wait 2000
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13613)

:RYDER3_10263
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @RYDER3_10289
wait 0
goto @RYDER3_10263

:RYDER3_10289
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('RYD3_FB', 4000, 1)
wait 4000
if 
  not Car.IsDead(129@)
goto_if_false @RYDER3_10407
Player.SetHeadingForAttached($player1, 225.0, 225.0)
163@ = Train.GetCaboose(129@)
Char.AttachToCar($scplayer, 163@, 0.0, -8.0, 0.9, 0, 360.0, WeaponType.Unarmed)
Char.SetProofs($scplayer, True, True, True, True, True)
Char.SetCollision($scplayer, False)

:RYDER3_10407
gosub @RYDER3_18779
World.SetCarDensityMultiplier(0.0)
Hud.DrawCrosshair(True)
set_lvar_text_label 106@s = 'RYD3_GA'
set_lvar_int_to_constant 96@ = 13614
gosub @RYDER3_19927
TIMERB = 0
85@ = 0
$r3_total_guns = 90000
Hud.DisplayTimerWithString($r3_total_guns, TimerDirection.Down, 'RYD3_3')
$box_timer = 0
122@ = 0
Hud.DisplayNthCounterWithString($box_timer, CounterDisplay.Bar, 1, 'RYD3_E')
Hud.DisplayNthCounterWithString($collected_guns, CounterDisplay.Number, 2, 'RYD3_F')
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_10565
Char.ClearTasks($ryder)

:RYDER3_10565
89@ += 1

:RYDER3_10572
if 
  89@ == 10
goto_if_false @RYDER3_13706
if and
  TIMERB > 5000
  85@ == 0
goto_if_false @RYDER3_10634
Text.PrintHelpForever('RYD3_D')
85@ = 1

:RYDER3_10634
if 
  TIMERA > 8000
goto_if_false @RYDER3_10900
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_10893
Char.ClearTasks($ryder)
$6869 = Math.RandomIntInRange(0, 3)
switch_start $6869 {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER3_10893 {caseNum1} 0 {caseLabel1} @RYDER3_10746 {caseNum2} 1 {caseLabel2} @RYDER3_10795 {caseNum3} 2 {caseLabel3} @RYDER3_10844 {caseNum4} -1 {caseLabel4} @RYDER3_10893 {caseNum5} -1 {caseLabel5} @RYDER3_10893 {caseNum6} -1 {caseLabel6} @RYDER3_10893 {caseNum7} -1 {caseLabel7} @RYDER3_10893

:RYDER3_10746
Task.PlayAnim($ryder, "RYD_BECKON_01", "RYDER", 1.0, False, False, False, False, -1)
goto @RYDER3_10893

:RYDER3_10795
Task.PlayAnim($ryder, "RYD_BECKON_02", "RYDER", 1.0, False, False, False, False, -1)
goto @RYDER3_10893

:RYDER3_10844
Task.PlayAnim($ryder, "RYD_BECKON_03", "RYDER", 1.0, False, False, False, False, -1)
goto @RYDER3_10893

:RYDER3_10893
TIMERA = 0

:RYDER3_10900
if 
  not Car.IsDead(163@)
goto_if_false @RYDER3_13643
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_10995
$x, $y, $z = Char.GetCoordinates($scplayer)
44@, 45@, 46@ = Char.GetCoordinates($ryder)
sub_float_lvar_from_float_var $x -= 44@
sub_float_lvar_from_float_var $y -= 45@
$heading = Math.GetHeadingFromVector2D($x, $y)
Char.SetHeading($ryder, $heading)

:RYDER3_10995
if 
  $r3_rnd <> 10
goto_if_false @RYDER3_11460
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
goto_if_false @RYDER3_11115
add_int_lvar_to_int_var $box_timer += 124@
if 
  $box_timer > 100
goto_if_false @RYDER3_11069
$box_timer = 100

:RYDER3_11069
if 
  0 > $box_timer
goto_if_false @RYDER3_11101
$box_timer = 0
124@ = 50

:RYDER3_11101
164@ += 1
goto @RYDER3_11460

:RYDER3_11115
if 
  164@ > 0
goto_if_false @RYDER3_11460
if 
  $box_timer > 20
goto_if_false @RYDER3_11446
cset_lvar_float_to_var_int 165@ =# $box_timer
165@ /= 2.0
$x, $y, $z = Camera.GetActiveCoordinates()
44@, 45@, 46@ = Camera.GetActivePointAt()
if 
  Object.DoesExist(110@(109@,10i))
goto_if_false @RYDER3_11220
Object.Delete(110@(109@,10i))

:RYDER3_11220
110@(109@,10i) = Object.CreateNoOffset(127@, 44@, 45@, 46@)
Object.SetRecordsCollisions(110@(109@,10i), True)
set_lvar_int_to_lvar_int 166@(109@,10i) = 127@
sub_float_var_from_float_lvar 44@ -= $x
sub_float_var_from_float_lvar 45@ -= $y
sub_float_var_from_float_lvar 46@ -= $z
mult_float_lvar_by_float_lvar 44@ *= 165@
mult_float_lvar_by_float_lvar 45@ *= 165@
mult_float_lvar_by_float_lvar 46@ *= 165@
Object.SetDynamic(110@(109@,10i), True)
Object.SetCollision(110@(109@,10i), True)
$x, $y, $z = Car.GetSpeedVector(163@)
set_lvar_float_to_var_float 47@ = $x
add_float_lvar_to_float_lvar 47@ += 44@
set_lvar_float_to_var_float 48@ = $y
add_float_lvar_to_float_lvar 48@ += 45@
set_lvar_float_to_var_float 49@ = $z
add_float_lvar_to_float_lvar 49@ += 46@
Object.SetVelocity(110@(109@,10i), 47@, 48@, 49@)
109@ += 1
if 
  109@ == 10
goto_if_false @RYDER3_11446
109@ = 0

:RYDER3_11446
164@ = 0
$box_timer = 0

:RYDER3_11460
176@ = 0

:RYDER3_11467
if 
  10 > 176@
goto_if_false @RYDER3_13643
if and
  Object.DoesExist(110@(176@,10i))
  not Char.IsDead($ryder)
goto_if_false @RYDER3_13629
$x, $y, $z = Char.GetOffsetInWorldCoords($ryder, 0.0, 1.0, 0.5)
if 
  Object.Locate3D(110@(176@,10i), $x, $y, $z, 1.0, 1.0, 1.0, False)
goto_if_false @RYDER3_12397
if and
  122@ == 0
  not Char.IsDead($ryder)
  $r3_rnd <> 10
goto_if_false @RYDER3_12390
Object.SetCollision(110@(176@,10i), False)
Task.PickUpObject($ryder, 110@(176@,10i), 0.0, 0.3, 0.0, 6, 16, "CATCH_BOX", "BOX", 0)
TIMERA = 0
$6869 = Math.RandomIntInRange(0, 2)
switch_start $r3_rnd {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RYDER3_12240 {caseNum1} 1 {caseLabel1} @RYDER3_11754 {caseNum2} 3 {caseLabel2} @RYDER3_11844 {caseNum3} 5 {caseLabel3} @RYDER3_11934 {caseNum4} 7 {caseLabel4} @RYDER3_12024 {caseNum5} 8 {caseLabel5} @RYDER3_12114 {caseNum6} 9 {caseLabel6} @RYDER3_12204 {caseNum7} -1 {caseLabel7} @RYDER3_12240

:RYDER3_11754
if 
  $6869 == 0
goto_if_false @RYDER3_11808
set_lvar_text_label 106@s = 'RYD3_HA'
set_lvar_int_to_constant 96@ = 13616
gosub @RYDER3_19927
goto @RYDER3_11837

:RYDER3_11808
set_lvar_text_label 106@s = 'RYD3_HB'
set_lvar_int_to_constant 96@ = 13617
gosub @RYDER3_19927

:RYDER3_11837
goto @RYDER3_12240

:RYDER3_11844
if 
  $6869 == 0
goto_if_false @RYDER3_11898
set_lvar_text_label 106@s = 'RYD3_HC'
set_lvar_int_to_constant 96@ = 13618
gosub @RYDER3_19927
goto @RYDER3_11927

:RYDER3_11898
set_lvar_text_label 106@s = 'RYD3_HD'
set_lvar_int_to_constant 96@ = 13619
gosub @RYDER3_19927

:RYDER3_11927
goto @RYDER3_12240

:RYDER3_11934
if 
  $6869 == 0
goto_if_false @RYDER3_11988
set_lvar_text_label 106@s = 'RYD3_HE'
set_lvar_int_to_constant 96@ = 13620
gosub @RYDER3_19927
goto @RYDER3_12017

:RYDER3_11988
set_lvar_text_label 106@s = 'RYD3_HF'
set_lvar_int_to_constant 96@ = 13621
gosub @RYDER3_19927

:RYDER3_12017
goto @RYDER3_12240

:RYDER3_12024
if 
  $6869 == 0
goto_if_false @RYDER3_12078
set_lvar_text_label 106@s = 'RYD3_HG'
set_lvar_int_to_constant 96@ = 13622
gosub @RYDER3_19927
goto @RYDER3_12107

:RYDER3_12078
set_lvar_text_label 106@s = 'RYD3_HH'
set_lvar_int_to_constant 96@ = 13623
gosub @RYDER3_19927

:RYDER3_12107
goto @RYDER3_12240

:RYDER3_12114
if 
  $6869 == 0
goto_if_false @RYDER3_12168
set_lvar_text_label 106@s = 'RYD3_HJ'
set_lvar_int_to_constant 96@ = 13624
gosub @RYDER3_19927
goto @RYDER3_12197

:RYDER3_12168
set_lvar_text_label 106@s = 'RYD3_HK'
set_lvar_int_to_constant 96@ = 13625
gosub @RYDER3_19927

:RYDER3_12197
goto @RYDER3_12240

:RYDER3_12204
set_lvar_text_label 106@s = 'RYD3_HM'
set_lvar_int_to_constant 96@ = 13627
gosub @RYDER3_19927
goto @RYDER3_12240

:RYDER3_12240
set_lvar_int_to_lvar_int 123@ = 176@
$r3_rnd += 1
if 
  $collected_guns > 0
goto_if_false @RYDER3_12280
$collected_guns -= 1

:RYDER3_12280
if 
  $r3_rnd == 5
goto_if_false @RYDER3_12354
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_12322
Char.SetHealth($ryder, 5000)

:RYDER3_12322
if 
  not Char.IsDead(162@)
goto_if_false @RYDER3_12346
Char.SetHealth(162@, 5000)

:RYDER3_12346
127@ = -137

:RYDER3_12354
if 
  $r3_rnd == 10
goto_if_false @RYDER3_12383
Hud.DrawCrosshair(False)
World.SetCarDensityMultiplier(1.0)

:RYDER3_12383
122@ += 1

:RYDER3_12390
goto @RYDER3_12961

:RYDER3_12397
if and
  166@(176@,10i) == -137
  not Char.IsDead($ryder)
goto_if_false @RYDER3_12961
if 
  Char.HasBeenDamagedByWeapon($ryder, WeaponType.Explosion)
goto_if_false @RYDER3_12736
$6869 = Math.RandomIntInRange(0, 6)
switch_start $6869 {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RYDER3_12731 {caseNum1} 0 {caseLabel1} @RYDER3_12515 {caseNum2} 1 {caseLabel2} @RYDER3_12551 {caseNum3} 2 {caseLabel3} @RYDER3_12587 {caseNum4} 3 {caseLabel4} @RYDER3_12623 {caseNum5} 4 {caseLabel5} @RYDER3_12659 {caseNum6} 5 {caseLabel6} @RYDER3_12695 {caseNum7} -1 {caseLabel7} @RYDER3_12731

:RYDER3_12515
set_lvar_text_label 106@s = 'RYD3_JA'
set_lvar_int_to_constant 96@ = 13629
gosub @RYDER3_19927
goto @RYDER3_12731

:RYDER3_12551
set_lvar_text_label 106@s = 'RYD3_JB'
set_lvar_int_to_constant 96@ = 13630
gosub @RYDER3_19927
goto @RYDER3_12731

:RYDER3_12587
set_lvar_text_label 106@s = 'RYD3_JC'
set_lvar_int_to_constant 96@ = 13631
gosub @RYDER3_19927
goto @RYDER3_12731

:RYDER3_12623
set_lvar_text_label 106@s = 'RYD3_JD'
set_lvar_int_to_constant 96@ = 13632
gosub @RYDER3_19927
goto @RYDER3_12731

:RYDER3_12659
set_lvar_text_label 106@s = 'RYD3_JE'
set_lvar_int_to_constant 96@ = 13633
gosub @RYDER3_19927
goto @RYDER3_12731

:RYDER3_12695
set_lvar_text_label 106@s = 'RYD3_JF'
set_lvar_int_to_constant 96@ = 13634
gosub @RYDER3_19927
goto @RYDER3_12731

:RYDER3_12731
Char.ClearLastWeaponDamage($ryder)

:RYDER3_12736
if 
  Object.HasCollidedWithAnything(110@(176@,10i))
goto_if_false @RYDER3_12954
126@ += 1
if 
  126@ > 4
goto_if_false @RYDER3_12947
if and
  not Char.IsDead($ryder)
  not Char.IsDead(162@)
goto_if_false @RYDER3_12947
if 
  not Char.IsTouchingObject($ryder, 110@(176@,10i))
goto_if_false @RYDER3_12947
if 
  not Char.IsTouchingObject(162@, 110@(176@,10i))
goto_if_false @RYDER3_12947
$x, $y, $z = Object.GetCoordinates(110@(176@,10i))
Object.Break(110@(176@,10i), 1)
Audio.ReportMissionAudioEventAtObject(110@(176@,10i), 1159)
100@ = Particle.Create("EXPLOSION_SMALL", $x, $y, $z, 1)
Particle.PlayAndKill(100@)
Object.MarkAsNoLongerNeeded(110@(176@,10i))
110@(176@,10i) = 0

:RYDER3_12947
goto @RYDER3_12961

:RYDER3_12954
126@ = 0

:RYDER3_12961
if 
  Object.DoesExist(110@(176@,10i))
goto_if_false @RYDER3_13036
if 
  not Char.LocateAnyMeansObject2D($scplayer, 110@(176@,10i), 100.0, 100.0, False)
goto_if_false @RYDER3_13036
Object.MarkAsNoLongerNeeded(110@(176@,10i))
110@(176@,10i) = 0

:RYDER3_13036
if 
  122@ == 1
goto_if_false @RYDER3_13629
if and
  not Char.IsDead($ryder)
  not Char.IsDead(162@)
goto_if_false @RYDER3_13086
$task_status = Char.GetScriptTaskStatus($ryder, 1802)

:RYDER3_13086
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RYDER3_13629
if 
  123@ > -1
goto_if_false @RYDER3_13622
switch_start 82@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @RYDER3_13539 {caseNum1} 0 {caseLabel1} @RYDER3_13185 {caseNum2} 2 {caseLabel2} @RYDER3_13260 {caseNum3} 4 {caseLabel3} @RYDER3_13335 {caseNum4} 6 {caseLabel4} @RYDER3_13403 {caseNum5} 8 {caseLabel5} @RYDER3_13471 {caseNum6} -1 {caseLabel6} @RYDER3_13539 {caseNum7} -1 {caseLabel7} @RYDER3_13539

:RYDER3_13185
79@ = Object.Create(#CR_GUNCRATE, 2278.177, -1144.882, 27.5107)
Object.AttachToCar(79@, 108@, 0.4, -2.1, -0.1, 0.0, 0.0, 15.0)
Object.SetCollision(79@, False)
goto @RYDER3_13539

:RYDER3_13260
77@ = Object.Create(#CR_GUNCRATE, 2278.177, -1144.882, 27.5107)
Object.AttachToCar(77@, 108@, -0.5, -2.1, -0.1, 0.0, 0.0, 30.0)
Object.SetCollision(77@, False)
goto @RYDER3_13539

:RYDER3_13335
78@ = Object.Create(#CR_GUNCRATE, 2278.177, -1144.882, 27.5107)
Object.AttachToCar(78@, 108@, 0.4, -2.1, 0.3, 0.0, 30.0, 0.0)
goto @RYDER3_13539

:RYDER3_13403
80@ = Object.Create(#CR_AMMOBOX, 2278.177, -1144.882, 27.5107)
Object.AttachToCar(80@, 108@, -0.6, -2.1, 0.3, 0.0, 0.0, 15.0)
goto @RYDER3_13539

:RYDER3_13471
81@ = Object.Create(#CR_AMMOBOX, 2278.177, -1144.882, 27.5107)
Object.AttachToCar(81@, 108@, -0.1, -2.1, 0.3, 0.0, 0.0, 15.0)
goto @RYDER3_13539

:RYDER3_13539
82@ += 1
if 
  82@ >= 10
goto_if_false @RYDER3_13593
Hud.ClearCounter($collected_guns)
Hud.ClearCounter($box_timer)
Hud.ClearTimer($r3_total_guns)
89@ += 1
goto @RYDER3_13622

:RYDER3_13593
if 
  Object.DoesExist(110@(123@,10i))
goto_if_false @RYDER3_13622
Object.Delete(110@(123@,10i))

:RYDER3_13622
122@ = 0

:RYDER3_13629
176@ += 1
goto @RYDER3_11467

:RYDER3_13643
if 
  not Car.IsDead(108@)
goto_if_false @RYDER3_13706
if 
  10 > $r3_total_guns
goto_if_false @RYDER3_13706
Hud.ClearCounter($collected_guns)
Hud.ClearCounter($box_timer)
Hud.ClearTimer($r3_total_guns)
125@ = 1
89@ += 1

:RYDER3_13706
if and
  89@ == 11
  95@ == 2
goto_if_false @RYDER3_14514
gosub @RYDER3_18811
World.SetCarDensityMultiplier(1.0)
Text.ClearHelp
if 
  not Car.IsDead(108@)
goto_if_false @RYDER3_13768
Car.StopPlayback(108@)

:RYDER3_13768
if 
  not Car.IsDead(163@)
goto_if_false @RYDER3_13975
$x, $y, $z = Car.GetCoordinates(163@)
177@ = World.GetGroundZFor3DCoord($x, $y, $z)
$x, $y, $z = Car.GetOffsetInWorldCoords(163@, -2.0, -1.0, -1.0)
44@, 45@, 46@ = Car.GetOffsetInWorldCoords(163@, 0.0, -4.0, -1.0)
47@, 48@, 49@ = Car.GetOffsetInWorldCoords(163@, 0.0, 10.0, -0.5)
179@, 180@, 181@ = Car.GetOffsetInWorldCoords(163@, 0.0, -50.0, 0.0)
$heading = Car.GetHeading(163@)
178@ = Car.GetHeading(163@)
$heading -= 50.0
if 
  not Car.IsDead(129@)
goto_if_false @RYDER3_13975
Car.StopPlayback(129@)

:RYDER3_13975
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_14025
Char.SetCollision($scplayer, True)
Char.DetachFromCar($scplayer)
Streaming.RemoveAnimation("BOX")
Char.SetProofs($scplayer, False, False, False, False, False)

:RYDER3_14025
World.DeleteMissionTrains
Object.Delete(74@)
Object.Delete(91@)
Object.Delete(92@)
Object.Delete(93@)
Pad.SetPlayerDisplayVitalStatsButton($player1, True)
if and
  not Car.IsDead(108@)
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_14132
Car.FreezePosition(108@, False)
Car.SetCoordinates(108@, $x, $y, 177@)
Car.SetHeading(108@, $heading)
Char.SetCoordinates($scplayer, 44@, 45@, 177@)
Car.SetStatus(108@, EntityStatus.Player)
Car.LockDoors(108@, CarLock.Unlocked)

:RYDER3_14132
gosub @RYDER3_18751
Camera.SetFixedPosition(47@, 48@, 49@, 0.0, 0.0, 0.0)
Streaming.LoadSceneInDirection(47@, 48@, 49@, 178@)
if 
  not Car.IsDead(108@)
goto_if_false @RYDER3_14253
Camera.PointAtCar(108@, CameraMode.Fixed, SwitchType.JumpCut)
Char.Delete(162@)
162@ = Char.CreateAsPassenger(108@, PedType.Mission1, 105, 0)
Char.SetHealth(162@, 800)
Char.SetMaxHealth(162@, 800)
Char.SetSuffersCriticalHits(162@, False)
Char.SetNeverTargeted(162@, True)

:RYDER3_14253
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_14306
Char.DetachFromCar($ryder)
Char.AttachToCar($ryder, 108@, 0.0, -1.3, 0.8, 2, 15.0, WeaponType.MicroUzi)

:RYDER3_14306
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(108@)
goto_if_false @RYDER3_14338
Task.EnterCarAsDriver($scplayer, 108@, 4000)

:RYDER3_14338
gosub @RYDER3_18844
if 
  125@ == 1
goto_if_false @RYDER3_14427
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13635)

:RYDER3_14374
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @RYDER3_14400
wait 0
goto @RYDER3_14374

:RYDER3_14400
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('RYD3_JG', 2000, 1)
goto @RYDER3_14484

:RYDER3_14427
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13628)

:RYDER3_14438
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @RYDER3_14464
wait 0
goto @RYDER3_14438

:RYDER3_14464
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('RYD3_HN', 2000, 1)

:RYDER3_14484
wait 4000
gosub @RYDER3_18779
Hud.DrawCrosshair(False)
TIMERA = 0
89@ = 35

:RYDER3_14514
if 
  89@ == 12
goto_if_false @RYDER3_14578
if 
  125@ == 1
goto_if_false @RYDER3_14571
89@ = 35
69@ = 1
goto @RYDER3_14578

:RYDER3_14571
89@ = 35

:RYDER3_14578
if 
  89@ == 35
goto_if_false @RYDER3_15004
if 
  Blip.DoesExist(70@)
goto_if_false @RYDER3_14617
Blip.Remove(70@)

:RYDER3_14617
if 
  125@ == 1
goto_if_false @RYDER3_14831
gosub @RYDER3_18811
if 
  not Car.IsDead(129@)
goto_if_false @RYDER3_14663
Car.Delete(129@)

:RYDER3_14663
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_14684
Char.Delete($ryder)

:RYDER3_14684
if 
  not Char.IsDead(162@)
goto_if_false @RYDER3_14705
Char.Delete(162@)

:RYDER3_14705
if and
  not Car.IsDead(108@)
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_14753
if 
  not Char.IsInCar($scplayer, 108@)
goto_if_false @RYDER3_14753
Char.WarpIntoCar($scplayer, 108@)

:RYDER3_14753
176@ = 0

:RYDER3_14760
if 
  10 > 176@
goto_if_false @RYDER3_14801
Object.Delete(110@(176@,10i))
176@ += 1
goto @RYDER3_14760

:RYDER3_14801
gosub @RYDER3_18844
Text.PrintNow('RYD3_T', 4000, 1)
goto @RYDER3_17920

:RYDER3_14831
if and
  not Char.IsDead($ryder)
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_14887
Char.SetRelationship($ryder, RelationshipType.Hate, PedType.Cop)
Task.StayInSamePlace($ryder, True)
Task.TogglePedThreatScanner($ryder, True, True, True)
Char.SetDecisionMaker($ryder, 72@)

:RYDER3_14887
set_lvar_text_label 106@s = 'RYD3_KA'
set_lvar_int_to_constant 96@ = 13636
gosub @RYDER3_19927
TIMERB = 0
85@ = 0
Blip.Remove(34@)
34@ = Blip.AddForCoord(2067.463, -1831.67, 12.5527)
Blip.SetCoordAppearance(34@, 0)
Game.SetWantedMultiplier(1.0)
Player.AlterWantedLevel($player1, 3)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
89@ += 1
TIMERA = 0

:RYDER3_15004
if and
  89@ == 36
  TIMERA > 4000
goto_if_false @RYDER3_15083
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_15053
Task.ToggleDuck($ryder, True)

:RYDER3_15053
Text.PrintNow('RYD3_13', 7000, 1)
89@ += 1
39@ = 0

:RYDER3_15083
if 
  89@ == 37
goto_if_false @RYDER3_17828
if 
  not Car.IsDead(108@)
goto_if_false @RYDER3_15357
if 
  not Char.IsInCar($scplayer, 108@)
goto_if_false @RYDER3_15204
Text.PrintNow('RYD3_Q', 5000, 1)
if 
  39@ == 0
goto_if_false @RYDER3_15197
Blip.Remove(34@)
34@ = Blip.AddForCar(108@)
Blip.SetAsFriendly(34@, True)
39@ = 1

:RYDER3_15197
goto @RYDER3_15306

:RYDER3_15204
if 
  39@ == 1
goto_if_false @RYDER3_15306
Blip.Remove(34@)
if 
  103@ == 1
goto_if_false @RYDER3_15272
34@ = Blip.AddForCoord(2446.887, -1661.962, 12.3047)
goto @RYDER3_15292

:RYDER3_15272
34@ = Blip.AddForCoord(2067.463, -1831.67, 12.5527)

:RYDER3_15292
Blip.SetCoordAppearance(34@, 0)
39@ = 0

:RYDER3_15306
if and
  Car.IsUpsidedown(108@)
  97@ == 0
goto_if_false @RYDER3_15357
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_15350
Task.Die($ryder)

:RYDER3_15350
97@ = 1

:RYDER3_15357
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_15831
if and
  Char.IsShooting($ryder)
  TIMERB > 10000
  not Text.IsMessageBeingDisplayed
goto_if_false @RYDER3_15831
TIMERB = 0
$6869 = Math.RandomIntInRange(0, 8)
switch_start $6869 {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @RYDER3_15831 {caseNum1} 0 {caseLabel1} @RYDER3_15543 {caseNum2} 1 {caseLabel2} @RYDER3_15579 {caseNum3} 2 {caseLabel3} @RYDER3_15615 {caseNum4} 3 {caseLabel4} @RYDER3_15651 {caseNum5} 4 {caseLabel5} @RYDER3_15687 {caseNum6} 5 {caseLabel6} @RYDER3_15723 {caseNum7} 6 {caseLabel7} @RYDER3_15759
switch_continued 7 {caseLabel1} @RYDER3_15795 {caseNum2} -1 {caseLabel2} @RYDER3_15831 {caseNum3} -1 {caseLabel3} @RYDER3_15831 {caseNum4} -1 {caseLabel4} @RYDER3_15831 {caseNum5} -1 {caseLabel5} @RYDER3_15831 {caseNum6} -1 {caseLabel6} @RYDER3_15831 {caseNum7} -1 {caseLabel7} @RYDER3_15831 {caseNum8} -1 {caseLabel8} @RYDER3_15831 {caseNum9} -1 {caseLabel9} @RYDER3_15831

:RYDER3_15543
set_lvar_text_label 106@s = 'RYD3_LA'
set_lvar_int_to_constant 96@ = 13638
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15579
set_lvar_text_label 106@s = 'RYD3_LB'
set_lvar_int_to_constant 96@ = 13639
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15615
set_lvar_text_label 106@s = 'RYD3_LC'
set_lvar_int_to_constant 96@ = 13640
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15651
set_lvar_text_label 106@s = 'RYD3_LD'
set_lvar_int_to_constant 96@ = 13641
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15687
set_lvar_text_label 106@s = 'RYD3_LE'
set_lvar_int_to_constant 96@ = 13642
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15723
set_lvar_text_label 106@s = 'RYD3_LF'
set_lvar_int_to_constant 96@ = 13643
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15759
set_lvar_text_label 106@s = 'RYD3_LG'
set_lvar_int_to_constant 96@ = 13644
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15795
set_lvar_text_label 106@s = 'RYD3_LH'
set_lvar_int_to_constant 96@ = 13645
gosub @RYDER3_19927
goto @RYDER3_15831

:RYDER3_15831
if and
  not Car.IsDead(108@)
  not Char.IsDead($scplayer)
  39@ == 0
goto_if_false @RYDER3_17828
if and
  not Char.IsDead($ryder)
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_16191
if 
  not Player.IsWantedLevelGreater($player1, 0)
goto_if_false @RYDER3_16057
if and
  103@ == 0
  not Char.IsDead($ryder)
goto_if_false @RYDER3_16050
Char.ClearTasksImmediately($ryder)
Char.ClearAllRelationships($ryder, RelationshipType.Hate)
Char.SetDecisionMaker($ryder, 105@)
Task.StayInSamePlace($ryder, True)
Task.TogglePedThreatScanner($ryder, False, False, False)
Task.ToggleDuck($ryder, True)
if 
  Blip.DoesExist(34@)
goto_if_false @RYDER3_15987
Blip.Remove(34@)

:RYDER3_15987
set_lvar_text_label 106@s = 'RYD3_KB'
set_lvar_int_to_constant 96@ = 13637
gosub @RYDER3_19927
TIMERA = 0
34@ = Blip.AddForCoord(2451.38, -1661.609, 12.3047)
103@ = 1

:RYDER3_16050
goto @RYDER3_16191

:RYDER3_16057
if and
  103@ == 1
  not Char.IsDead($ryder)
goto_if_false @RYDER3_16191
if 
  Blip.DoesExist(34@)
goto_if_false @RYDER3_16101
Blip.Remove(34@)

:RYDER3_16101
Char.ClearTasksImmediately($ryder)
Char.SetRelationship($ryder, RelationshipType.Hate, PedType.Cop)
Task.StayInSamePlace($ryder, True)
Task.TogglePedThreatScanner($ryder, True, True, True)
Char.SetDecisionMaker($ryder, 72@)
Task.ToggleDuck($ryder, True)
Text.PrintNow('RYD3_I', 7000, 1)
34@ = Blip.AddForCoord(2067.463, -1831.67, 12.5527)
103@ = 0

:RYDER3_16191
if and
  not Player.IsWantedLevelGreater($player1, 0)
  TIMERA > 4000
  104@ == 0
goto_if_false @RYDER3_16247
Text.PrintNow('RYD3101', 7000, 1)
104@ = 1

:RYDER3_16247
if 
  not Player.IsWantedLevelGreater($player1, 0)
goto_if_false @RYDER3_17828
if and
  Char.LocateAnyMeans3D($scplayer, 2446.887, -1661.962, 12.3047, 4.0, 4.0, 4.0, True)
  Char.IsInCar($scplayer, 108@)
goto_if_false @RYDER3_17828
Player.ClearWantedLevel($player1)
World.ClearArea(2483.618, -1666.093, 12.3594, 50.0, True)
gosub @RYDER3_18811
if and
  not Char.IsDead($ryder)
  not Car.IsDead(108@)
goto_if_false @RYDER3_16415
Char.DetachFromCar($ryder)
Char.AttachToCar($ryder, 108@, 0.0, -1.3, 0.8, 0, 15.0, WeaponType.MicroUzi)

:RYDER3_16415
Blip.Remove(34@)
Streaming.RequestCarRecording(104)
Streaming.RequestAnimation("GANGS")

:RYDER3_16433
if or
  not Streaming.HasCarRecordingBeenLoaded(104)
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @RYDER3_16468
wait 0
goto @RYDER3_16433

:RYDER3_16468
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(108@)
goto_if_false @RYDER3_16535
if 
  not Char.IsInCar($scplayer, 108@)
goto_if_false @RYDER3_16518
Char.WarpIntoCarAsPassenger($scplayer, 108@, 0)

:RYDER3_16518
Car.StartPlayback(108@, 104)
Car.SkipInPlayback(108@, 1.0)

:RYDER3_16535
gosub @RYDER3_18751
Camera.SetFixedPosition(2444.796, -1650.005, 24.6868, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2445.629, -1650.483, 24.4081, SwitchType.JumpCut)
Char.Delete(162@)
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_16625
Task.TogglePedThreatScanner($ryder, False, False, False)

:RYDER3_16625
gosub @RYDER3_18844
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13646)

:RYDER3_16643
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @RYDER3_16669
wait 0
goto @RYDER3_16643

:RYDER3_16669
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('RYD3_MA', 8000, 1)
TIMERB = 0

:RYDER3_16696
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @RYDER3_16722
wait 0
goto @RYDER3_16696

:RYDER3_16722
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13664)

:RYDER3_16735
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @RYDER3_16761
wait 0
goto @RYDER3_16735

:RYDER3_16761
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('RYD3_MB', 8000, 1)
TIMERB = 0

:RYDER3_16788
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @RYDER3_16814
wait 0
goto @RYDER3_16788

:RYDER3_16814
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13647)

:RYDER3_16827
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @RYDER3_16853
wait 0
goto @RYDER3_16827

:RYDER3_16853
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('RYD3_MC', 8000, 1)
TIMERB = 0

:RYDER3_16880
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @RYDER3_16906
wait 0
goto @RYDER3_16880

:RYDER3_16906
Text.ClearPrints
if 
  not Car.IsDead(108@)
goto_if_false @RYDER3_16965
Camera.SetFixedPosition(2472.576, -1675.462, 14.0837, 0.0, 0.0, 0.0)
Camera.PointAtCar(108@, CameraMode.Fixed, SwitchType.JumpCut)

:RYDER3_16965
wait 5000
if 
  69@ == 0
goto_if_false @RYDER3_17828
if and
  not Car.IsDead(108@)
  not Char.IsDead($ryder)
goto_if_false @RYDER3_17091
Char.ClearTasks($ryder)
Task.ToggleDuck($ryder, False)
Car.StopPlayback(108@)
$x, $y, $z = Car.GetOffsetInWorldCoords(108@, 0.0, 10.0, 0.0)
Task.GoStraightToCoord($scplayer, $x, $y, $z, MoveState.Walk, -2)
Task.GoStraightToCoord($ryder, $x, $y, $z, MoveState.Walk, -2)

:RYDER3_17091
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13665)

:RYDER3_17102
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @RYDER3_17128
wait 0
goto @RYDER3_17102

:RYDER3_17128
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('RYD3_MD', 8000, 1)
TIMERB = 0

:RYDER3_17155
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @RYDER3_17181
wait 0
goto @RYDER3_17155

:RYDER3_17181
Text.ClearPrints
wait 1500
if 
  Streaming.HasAnimationLoaded("GANGS")
goto_if_false @RYDER3_17807
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_17331
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @RYDER3_17267
Char.WarpFromCarToCoord($scplayer, 2471.343, -1684.306, 12.5159)
goto @RYDER3_17287

:RYDER3_17267
Char.SetCoordinates($scplayer, 2471.343, -1684.306, 12.5159)

:RYDER3_17287
Char.ClearTasksImmediately($scplayer)
Char.SetHeading($scplayer, 238.6571)
$x, $y, $z = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, -1.0)

:RYDER3_17331
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_17645
if 
  Char.IsInAnyCar($ryder)
goto_if_false @RYDER3_17389
Char.DetachFromCar($ryder)
Char.WarpFromCarToCoord($ryder, $x, $y, $z)
goto @RYDER3_17403

:RYDER3_17389
Char.SetCoordinates($ryder, $x, $y, $z)

:RYDER3_17403
50@ = 238.6571
50@ -= 180.0
Char.ClearTasksImmediately($ryder)
Char.SetHeading($ryder, 50@)
35@ = Sequence.Open()
Task.CharSlideToCoordAndPlayAnim(-1, 2471.343, -1684.306, 12.5159, 238.6571, 0.4, "PRTIAL_HNDSHK_01", "GANGS", 4.0, False, False, False, False, -1)
Task.LookAtChar(-1, $ryder, 3000)
Sequence.Close(35@)
Char.PerformSequence($scplayer, 35@)
Sequence.Clear(35@)
35@ = Sequence.Open()
Task.CharSlideToCoordAndPlayAnim(-1, $x, $y, $z, 50@, 0.4, "PRTIAL_HNDSHK_01", "GANGS", 4.0, False, False, False, False, -1)
Task.GoStraightToCoord(-1, 2465.728, -1687.025, 12.5184, MoveState.Walk, -2)
Sequence.Close(35@)
Char.PerformSequence($ryder, 35@)
Sequence.Clear(35@)

:RYDER3_17645
Camera.SetFixedPosition(2472.521, -1683.47, 14.0526, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2472.001, -1684.324, 14.0313, SwitchType.JumpCut)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13648)

:RYDER3_17707
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @RYDER3_17733
wait 0
goto @RYDER3_17707

:RYDER3_17733
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('RYD3_ME', 8000, 1)
TIMERB = 0

:RYDER3_17760
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @RYDER3_17786
wait 0
goto @RYDER3_17760

:RYDER3_17786
Text.ClearPrints
wait 1000
gosub @RYDER3_18811
goto @RYDER3_17816

:RYDER3_17807
Streaming.RequestAnimation("GANGS")

:RYDER3_17816
Char.Delete($ryder)
goto @RYDER3_17999

:RYDER3_17828
if 
  Car.IsDead(108@)
goto_if_false @RYDER3_17867
Text.PrintNow('RYD3_14', 5000, 1)
goto @RYDER3_17920

:RYDER3_17867
if 
  Char.IsDead($ryder)
goto_if_false @RYDER3_17906
Text.PrintNow('RYD3_B', 5000, 1)
goto @RYDER3_17920

:RYDER3_17906
goto @RYDER3_2254

:RYDER3_17913
goto @RYDER3_17920

:RYDER3_17920
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_17943
Char.ShutUpForScriptedSpeech($scplayer, False)

:RYDER3_17943
Game.SetWantedMultiplier(1.0)
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_17981
Char.SetProofs($scplayer, False, False, False, False, False)

:RYDER3_17981
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:RYDER3_17999
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_18022
Char.ShutUpForScriptedSpeech($scplayer, False)

:RYDER3_18022
gosub @RYDER3_18779
Game.SetWantedMultiplier(1.0)
Camera.SetBehindPlayer
gosub @RYDER3_18844
Text.PrintWithNumberBig('M_PASSR', 7, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(7)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
$flag_ryder_mission_counter += 1
Stat.PlayerMadeProgress(1)
Stat.RegisterMissionPassed('RYDER_3')
return 

:RYDER3_18100
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_18123
Char.ShutUpForScriptedSpeech($scplayer, False)

:RYDER3_18123
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_18144
Char.RemoveElegantly($ryder)

:RYDER3_18144
Hud.DrawCrosshair(False)
Game.SetWantedMultiplier(1.0)
Pad.SetPlayerDisplayVitalStatsButton($player1, True)
Streaming.RemoveCarRecording(490)
Streaming.RemoveCarRecording(486)
Streaming.RemoveCarRecording(104)
36@ = 0

:RYDER3_18183
if 
  Blip.DoesExist(155@(36@,4i))
goto_if_false @RYDER3_18212
Blip.Remove(155@(36@,4i))

:RYDER3_18212
if 
  Blip.DoesExist(136@(36@,6i))
goto_if_false @RYDER3_18241
Blip.Remove(136@(36@,6i))

:RYDER3_18241
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_18183
if 
  Blip.DoesExist(70@)
goto_if_false @RYDER3_18283
Blip.Remove(70@)

:RYDER3_18283
if 
  Blip.DoesExist(34@)
goto_if_false @RYDER3_18304
Blip.Remove(34@)

:RYDER3_18304
if 
  Blip.DoesExist(68@)
goto_if_false @RYDER3_18325
Blip.Remove(68@)

:RYDER3_18325
if 
  Blip.DoesExist(99@)
goto_if_false @RYDER3_18346
Blip.Remove(99@)

:RYDER3_18346
Object.Delete(61@)
Object.Delete(62@)
Object.Delete(63@)
Object.Delete(64@)
Object.Delete(91@)
Object.Delete(92@)
Object.Delete(93@)
Object.Delete(81@)
Object.Delete(77@)
Object.Delete(78@)
Object.Delete(79@)
Object.Delete(80@)
Game.SetCreateRandomGangMembers(True)
Hud.ClearCounter($collected_guns)
Hud.ClearCounter($box_timer)
Hud.ClearTimer($r3_total_guns)
Char.DetachFromCar($scplayer)
Game.SwitchRandomTrains(True)
Streaming.MarkModelAsNoLongerNeeded(600)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(#CR_GUNCRATE)
Streaming.MarkModelAsNoLongerNeeded(#CR_AMMOBOX)
Streaming.MarkModelAsNoLongerNeeded(105)
Streaming.MarkModelAsNoLongerNeeded(106)
Streaming.MarkModelAsNoLongerNeeded(108)
Streaming.MarkModelAsNoLongerNeeded(109)
Streaming.MarkModelAsNoLongerNeeded(110)
Streaming.MarkModelAsNoLongerNeeded(537)
Streaming.MarkModelAsNoLongerNeeded(569)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(104)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.RemoveAnimation("BOX")
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("RYDER")
Streaming.RemoveAnimation("SWAT")
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Streaming.UnloadSpecialCharacter(1)
Path.SwitchRoadsBackToOriginal(2284.0, -1151.0, 10.0, 2288.0, -1147.0, 30.0)
Path.SwitchRoadsBackToOriginal(2287.321, -1132.571, 10.0, 2360.839, -1177.134, 40.0)
Path.SwitchRoadsBackToOriginal(2311.676, -1375.397, 10.0, 2292.365, -1303.102, 40.0)
Path.SwitchRoadsBackToOriginal(2268.695, -1138.541, 10.0, 2282.362, -1159.604, 40.0)
Path.SwitchRoadsBackToOriginal(2307.537, -1162.624, 10.0, 2266.351, -1136.99, 40.0)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Player.ClearWantedLevel($player1)
Game.SetWantedMultiplier(1.0)
Mission.Finish
return 

:RYDER3_18751
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
Text.ClearPrints
Text.ClearHelp
return 

:RYDER3_18779
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Text.ClearHelp
Text.ClearPrints
return 

:RYDER3_18811
Camera.DoFade(500, Fade.Out)

:RYDER3_18818
if 
  Camera.GetFadingStatus
goto_if_false @RYDER3_18842
wait 0
goto @RYDER3_18818

:RYDER3_18842
return 

:RYDER3_18844
Camera.DoFade(500, Fade.In)

:RYDER3_18851
if 
  Camera.GetFadingStatus
goto_if_false @RYDER3_18875
wait 0
goto @RYDER3_18851

:RYDER3_18875
return 

:RYDER3_18877
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @RYDER3_18993
Streaming.RequestModel(600)

:RYDER3_18897
if 
  not Streaming.HasModelLoaded(600)
goto_if_false @RYDER3_18924
wait 0
goto @RYDER3_18897

:RYDER3_18924
182@ = Car.Create(600, 2298.39, -1149.012, 25.7656)
Car.SetHeading(182@, 45.766)
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_18981
Char.WarpIntoCar($scplayer, 182@)

:RYDER3_18981
Streaming.MarkModelAsNoLongerNeeded(600)
89@ = 50

:RYDER3_18993
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RYDER3_19081
Streaming.RequestCarRecording(486)
Streaming.RequestCarRecording(490)

:RYDER3_19018
if or
  not Streaming.HasCarRecordingBeenLoaded(486)
  not Streaming.HasCarRecordingBeenLoaded(490)
goto_if_false @RYDER3_19050
wait 0
goto @RYDER3_19018

:RYDER3_19050
if 
  not Car.IsDead(129@)
goto_if_false @RYDER3_19081
Car.FreezePosition(129@, False)
Car.StartPlayback(129@, 490)

:RYDER3_19081
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @RYDER3_19246
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
Streaming.RequestModel(537)
Streaming.RequestModel(569)
Streaming.RequestModel(492)
Streaming.RequestCarRecording(106)

:RYDER3_19129
if 
  not Streaming.HasCarRecordingBeenLoaded(106)
goto_if_false @RYDER3_19155
wait 0
goto @RYDER3_19129

:RYDER3_19155
if or
  not Streaming.HasModelLoaded(537)
  not Streaming.HasModelLoaded(569)
  not Streaming.HasModelLoaded(492)
goto_if_false @RYDER3_19192
wait 0
goto @RYDER3_19155

:RYDER3_19192
183@ = Train.Create(10, 2278.177, -1144.882, 27.5107, True)
Streaming.MarkModelAsNoLongerNeeded(537)
Streaming.MarkModelAsNoLongerNeeded(569)
Train.SetSpeed(183@, 0.0)
Train.SetCruiseSpeed(183@, 0.0)

:RYDER3_19246
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @RYDER3_19319
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER3_19319
Task.PlayAnim($ryder, "RYD_BECKON_01", "RYDER", 1.0, False, False, False, False, -1)

:RYDER3_19319
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @RYDER3_19341
$r3_rnd = 9

:RYDER3_19341
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @RYDER3_19504
if 
  not Char.IsDead($scplayer)
goto_if_false @RYDER3_19504
Streaming.RequestAnimation("CARRY")

:RYDER3_19381
if 
  not Streaming.HasAnimationLoaded("CARRY")
goto_if_false @RYDER3_19412
wait 0
goto @RYDER3_19381

:RYDER3_19412
$x, $y, $z = Char.GetCoordinates($scplayer)
110@ = Object.CreateNoOffset(127@, $x, $y, $z)
Object.SetCollision(110@, False)
Task.PickUpObject($scplayer, 110@, 0.0, 0.3, 0.0, 6, 16, "CATCH_BOX", "BOX", 0)
Streaming.RemoveAnimation("CARRY")

:RYDER3_19504
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @RYDER3_19575
Streaming.RequestCarRecording(486)

:RYDER3_19524
if 
  not Streaming.HasCarRecordingBeenLoaded(486)
goto_if_false @RYDER3_19551
wait 0
goto @RYDER3_19524

:RYDER3_19551
if 
  not Car.IsDead(108@)
goto_if_false @RYDER3_19575
Car.StartPlayback(108@, 486)

:RYDER3_19575
if 
is_ps2_keyboard_key_just_pressed 12
goto_if_false @RYDER3_19925
if 
  not Car.IsDead(108@)
goto_if_false @RYDER3_19925
79@ = Object.Create(#CR_GUNCRATE, 2278.177, -1144.882, 27.5107)
Object.AttachToCar(79@, 108@, 0.4, -2.1, -0.1, 0.0, 0.0, 15.0)
Object.SetCollision(79@, False)
77@ = Object.Create(#CR_GUNCRATE, 2278.177, -1144.882, 27.5107)
Object.AttachToCar(77@, 108@, -0.5, -2.1, -0.1, 0.0, 0.0, 30.0)
Object.SetCollision(77@, False)
78@ = Object.Create(#CR_GUNCRATE, 2278.177, -1144.882, 27.5107)
Object.AttachToCar(78@, 108@, 0.4, -2.1, 0.3, 0.0, 30.0, 0.0)
80@ = Object.Create(#CR_AMMOBOX, 2278.177, -1144.882, 27.5107)
Object.AttachToCar(80@, 108@, -0.6, -2.1, 0.3, 0.0, 0.0, 15.0)
81@ = Object.Create(#CR_AMMOBOX, 2278.177, -1144.882, 27.5107)
Object.AttachToCar(81@, 108@, -0.1, -2.1, 0.3, 0.0, 0.0, 15.0)

:RYDER3_19925
return 

:RYDER3_19927
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 96@)
95@ = 0
return 

:RYDER3_19947
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  95@ == 0
goto_if_false @RYDER3_19990
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(106@s, 10000, 1)
95@ = 1

:RYDER3_19990
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  95@ == 1
goto_if_false @RYDER3_20028
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint(106@s)
95@ = 2

:RYDER3_20028
return 

//-------------Mission 26---------------
// Originally: Robbing Uncle Sam

:RYDER2
script_name 'RYDER2'
gosub @RYDER2_47
if 
  has_deatharrest_been_executed 
goto_if_false @RYDER2_38
gosub @RYDER2_41077

:RYDER2_38
gosub @RYDER2_41195
terminate_this_script 

:RYDER2_47
Stat.RegisterMissionGiven
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
49@ = 0
50@ = 0

:RYDER2_98
wait 0
38@ += 1
if 
  38@ > 9
goto_if_false @RYDER2_134
38@ = 0

:RYDER2_134
39@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 41@ = 39@
sub_int_lvar_from_int_lvar 41@ -= 40@
set_lvar_int_to_lvar_int 40@ = 39@
add_int_lvar_to_int_lvar 141@ += 41@
add_int_lvar_to_int_lvar 142@ += 41@
add_int_lvar_to_int_lvar 144@ += 41@
42@ = 0

:RYDER2_194
if 
  9 > 42@
goto_if_false @RYDER2_238
add_int_lvar_to_int_lvar 181@(42@,9i) += 41@
42@ += 1
goto @RYDER2_194

:RYDER2_238
add_int_lvar_to_int_lvar 51@ += 41@
add_int_lvar_to_int_lvar 52@ += 41@
add_int_lvar_to_int_lvar 53@ += 41@
add_int_lvar_to_int_lvar 54@ += 41@
add_int_lvar_to_int_lvar 55@ += 41@
add_int_lvar_to_int_lvar 56@ += 41@
add_int_lvar_to_int_lvar 57@ += 41@
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @RYDER2_316
36@ = 1

:RYDER2_316
gosub @RYDER2_988

:RYDER2_323
switch_start 34@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @RYDER2_563 {caseNum1} 0 {caseLabel1} @RYDER2_451 {caseNum2} 1 {caseLabel2} @RYDER2_465 {caseNum3} 2 {caseLabel3} @RYDER2_479 {caseNum4} 3 {caseLabel4} @RYDER2_493 {caseNum5} 4 {caseLabel5} @RYDER2_507 {caseNum6} 5 {caseLabel6} @RYDER2_521 {caseNum7} 6 {caseLabel7} @RYDER2_535
switch_continued 7 {caseLabel1} @RYDER2_549 {caseNum2} -1 {caseLabel2} @RYDER2_563 {caseNum3} -1 {caseLabel3} @RYDER2_563 {caseNum4} -1 {caseLabel4} @RYDER2_563 {caseNum5} -1 {caseLabel5} @RYDER2_563 {caseNum6} -1 {caseLabel6} @RYDER2_563 {caseNum7} -1 {caseLabel7} @RYDER2_563 {caseNum8} -1 {caseLabel8} @RYDER2_563 {caseNum9} -1 {caseLabel9} @RYDER2_563

:RYDER2_451
gosub @RYDER2_1573
goto @RYDER2_563

:RYDER2_465
gosub @RYDER2_3425
goto @RYDER2_563

:RYDER2_479
gosub @RYDER2_6954
goto @RYDER2_563

:RYDER2_493
gosub @RYDER2_11610
goto @RYDER2_563

:RYDER2_507
gosub @RYDER2_12737
goto @RYDER2_563

:RYDER2_521
gosub @RYDER2_14026
goto @RYDER2_563

:RYDER2_535
gosub @RYDER2_18066
goto @RYDER2_563

:RYDER2_549
gosub @RYDER2_30046
goto @RYDER2_563

:RYDER2_563
gosub @RYDER2_31793
if 
  203@ == 1
goto_if_false @RYDER2_602
203@ = 0
goto @RYDER2_323

:RYDER2_602
if 
  37@ == 0
goto_if_false @RYDER2_668
if 
  36@ == 0
goto_if_false @RYDER2_652
goto @RYDER2_98
goto @RYDER2_661

:RYDER2_652
gosub @RYDER2_41095
return 

:RYDER2_661
goto @RYDER2_677

:RYDER2_668
gosub @RYDER2_41077
return 

:RYDER2_677
goto @RYDER2_988
$ryder = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
282@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
281@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
308@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
313@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
96@ = Car.Create(413, 0.0, 0.0, 0.0)
97@ = Car.Create(413, 0.0, 0.0, 0.0)
119@ = Blip.AddForCoord(0.0, 0.0, 0.0)
120@ = Blip.AddForCoord(0.0, 0.0, 0.0)
121@ = Blip.AddForCoord(0.0, 0.0, 0.0)
122@ = Blip.AddForCoord(0.0, 0.0, 0.0)
123@ = Blip.AddForCoord(0.0, 0.0, 0.0)
93@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
340@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)

:RYDER2_988
if 
is_ps2_keyboard_key_just_pressed 27
goto_if_false @RYDER2_1102
if 
  58@ == 0
goto_if_false @RYDER2_1076
58@ = 1
write_debug "LEVEL_DEBUG_ON"
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_1069
Char.SetOnlyDamagedByPlayer($ryder, True)

:RYDER2_1069
goto @RYDER2_1102

:RYDER2_1076
58@ = 0
write_debug "LEVEL_DEBUG_OFF"

:RYDER2_1102
if 
  58@ == 1
goto_if_false @RYDER2_1571
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @RYDER2_1169
59@ += 1
if 
  59@ > 2
goto_if_false @RYDER2_1167
59@ = 0

:RYDER2_1167
clear_all_view_variables 

:RYDER2_1169
if 
  59@ == 1
goto_if_false @RYDER2_1409
set_var_int_to_lvar_int $throw_power_bar = 34@
set_var_int_to_lvar_int $ry2_view_debug = 35@
set_var_int_to_lvar_int $6876 = 134@
set_var_int_to_lvar_int $6877 = 132@
set_var_float_to_lvar_float $6886 = 253@
set_var_int_to_lvar_int $6879 = 49@
set_var_int_to_lvar_int $6880 = 50@
set_var_int_to_var_int $6881 = $audio_line_is_active
view_integer_variable $throw_power_bar {_p2} "M_STAGE"
view_integer_variable $ry2_view_debug {_p2} "M_GOALS"
view_integer_variable $6876 {_p2} "RYDER_STAGE"
view_integer_variable $6877 {_p2} "WAREHOUSE_OPENED"
view_float_variable $6886 {_p2} "GATE2_TARGET_Z"
view_integer_variable $6879 {_p2} "DIALOGUE_FLAG"
view_integer_variable $6880 {_p2} "DIALOGUE_FLAG2"
view_integer_variable $6881 {_p2} "AUDIO_LINE_IS_ACTIVE"

:RYDER2_1409
if 
  59@ == 2
goto_if_false @RYDER2_1571
set_var_int_to_lvar_int $throw_power_bar = 279@
set_var_int_to_lvar_int $ry2_view_debug = 127@
set_var_int_to_lvar_int $6876 = 336@
set_var_int_to_lvar_int $6877 = TIMERA
set_var_int_to_lvar_int $6878 = 51@
view_integer_variable $throw_power_bar {_p2} "RYDER_GET_BOX_FLAG"
view_integer_variable $ry2_view_debug {_p2} "LOADED_BOXES"
view_integer_variable $6876 {_p2} "SPAWN_THIS_MANY_GUARDS"
view_integer_variable $6877 {_p2} "TIMERA"
view_integer_variable $6878 {_p2} "SPAWN_TIMER"

:RYDER2_1571
return 

:RYDER2_1573
if 
  35@ == 0
goto_if_false @RYDER2_3246
$ryder = 0
95@ = 0
99@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
$6890 = 0
140@ = 0
143@ = 0
145@ = 0
146@ = 0
198@ = 0
199@ = 0
203@ = 0
42@ = 0

:RYDER2_1787
if 
  9 > 42@
goto_if_false @RYDER2_1830
172@(42@,9i) = 0
42@ += 1
goto @RYDER2_1787

:RYDER2_1830
120@ = 0
193@ = 0
196@ = 0
197@ = 0
307@ = 0
202@ = 0
200@ = 6
242@ = 2720.623
243@ = -2405.432
244@ = 13.989
245@ = 2774.361
246@ = -2417.829
247@ = 14.675
347@ = 2721.0
357@ = -2380.0
367@ = 16.3507
377@ = 173.3713
387@ = 2721.601
397@ = -2384.638
407@ = 16.3403
417@ = 2732.873
427@ = -2385.677
437@ = 12.625
447@ = 2763.692
457@ = -2411.258
467@ = 12.6276
348@ = 2729.35
358@ = -2451.07
368@ = 16.6007
378@ = 247.5382
388@ = 2734.908
398@ = -2451.32
408@ = 16.5938
418@ = 2735.176
428@ = -2437.915
438@ = 12.6362
448@ = 2763.772
458@ = -2428.203
468@ = 12.4725
349@ = 2748.555
359@ = -2453.049
369@ = 12.8623
379@ = 347.9489
389@ = 2748.595
399@ = -2446.587
409@ = 12.6432
419@ = 2757.586
429@ = -2434.761
439@ = 12.4876
449@ = 2766.158
459@ = -2432.014
469@ = 12.6485
350@ = 2793.516
360@ = -2394.284
370@ = 12.8623
380@ = 178.5569
390@ = 2793.473
400@ = -2398.662
410@ = 12.6323
420@ = 2799.573
430@ = -2403.292
440@ = 12.6308
450@ = 2799.251
460@ = -2410.985
470@ = 12.6309
351@ = 2721.0
361@ = -2380.0
371@ = 16.3507
381@ = 186.1396
391@ = 2721.502
401@ = -2383.609
411@ = 16.3403
421@ = 2733.744
431@ = -2386.227
441@ = 12.625
451@ = 2754.885
461@ = -2409.502
471@ = 12.5104
352@ = 2729.35
362@ = -2451.07
372@ = 16.6007
382@ = 246.8993
392@ = 2734.468
402@ = -2450.824
412@ = 16.5938
422@ = 2735.573
432@ = -2436.667
442@ = 12.6361
452@ = 2759.36
462@ = -2420.356
472@ = 12.4948
353@ = 2748.551
363@ = -2452.828
373@ = 12.8623
383@ = 339.2833
393@ = 2750.67
403@ = -2442.944
413@ = 12.6432
423@ = 2758.147
433@ = -2440.491
443@ = 12.4936
453@ = 2769.029
463@ = -2430.337
473@ = 12.6485
354@ = 2793.638
364@ = -2395.227
374@ = 12.8623
384@ = 170.3273
394@ = 2793.903
404@ = -2399.063
414@ = 12.6322
424@ = 2799.384
434@ = -2403.474
444@ = 12.6309
454@ = 2799.41
464@ = -2414.336
474@ = 12.6309
355@ = 2799.764
365@ = -2433.002
375@ = 12.6308
385@ = 358.8697
395@ = 2799.902
405@ = -2425.694
415@ = 12.6307
425@ = 2796.654
435@ = -2420.463
445@ = 12.6315
455@ = 2786.01
465@ = -2414.445
475@ = 12.6341
356@ = 2800.008
366@ = -2432.285
376@ = 12.6307
386@ = 2.0796
396@ = 2800.023
406@ = -2426.153
416@ = 12.6307
426@ = 2790.801
436@ = -2421.917
446@ = 12.633
456@ = 2786.337
466@ = -2421.433
476@ = 12.634
35@ += 1

:RYDER2_3246
if 
  35@ == 1
goto_if_false @RYDER2_3282
Text.LoadMissionText('RYDER2')
35@ += 1

:RYDER2_3282
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
237@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
236@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
235@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
238@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 1823)

:RYDER2_3333
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @RYDER2_3359
wait 0
goto @RYDER2_3333

:RYDER2_3359
if 
  35@ == 2
goto_if_false @RYDER2_3391
Game.SetWantedMultiplier(0.2)
35@ = 99

:RYDER2_3391
if 
  35@ == 99
goto_if_false @RYDER2_3423
34@ += 1
35@ = 0

:RYDER2_3423
return 

:RYDER2_3425
if 
  35@ == 0
goto_if_false @RYDER2_3581
World.ClearArea(2463.475, -1713.428, 12.5025, 20.0, True)
Cutscene.Load('RYDER2A')

:RYDER2_3478
if 
  not Cutscene.HasLoaded
goto_if_false @RYDER2_3502
wait 0
goto @RYDER2_3478

:RYDER2_3502
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:RYDER2_3511
if 
  not Cutscene.HasFinished
goto_if_false @RYDER2_3535
wait 0
goto @RYDER2_3511

:RYDER2_3535
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:RYDER2_3548
if 
  Camera.GetFadingStatus
goto_if_false @RYDER2_3572
wait 0
goto @RYDER2_3548

:RYDER2_3572
Cutscene.Clear
35@ += 1

:RYDER2_3581
if 
  35@ == 1
goto_if_false @RYDER2_4528
CarGenerator.Switch($gen_car5, 0)
World.ClearArea(2472.81, -1690.97, 12.53, 5.0, True)
Streaming.RequestModel(414)
Streaming.LoadSpecialCharacter(1, 'RYDER2')
Streaming.RequestModel(346)

:RYDER2_3653
if or
  not Streaming.HasModelLoaded(414)
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(346)
goto_if_false @RYDER2_3689
wait 0
goto @RYDER2_3653

:RYDER2_3689
Player.SetGroupToFollowAlways($player1, True)
Car.SetModelComponents(414, -1, -1)
95@ = Car.Create(414, 2475.908, -1679.621, 12.3447)
Car.SetHeading(95@, 69.0573)
Blip.Remove(119@)
119@ = Blip.AddForCar(95@)
Blip.SetAsFriendly(119@, True)
Car.SetCanBurstTires(95@, False)
Car.DoesProvideCover(95@, False)
CarGenerator.SuppressCarModel(414)
$ryder = Char.CreateAsPassenger(95@, PedType.Mission2, 290, 0)
Char.SetGetOutUpsideDownCar($ryder, False)
Char.GiveWeapon($ryder, WeaponType.Pistol, 99999)
Char.SetAccuracy($ryder, 70)
Char.SetMaxHealth($ryder, 500)
Char.SetHealth($ryder, 500)
Task.TogglePedThreatScanner($ryder, False, False, False)
Char.SetNeverTargeted($ryder, True)
Char.SetSuffersCriticalHits($ryder, False)
Char.SetAnimGroup($ryder, "GANG1")
Char.SetDecisionMaker($ryder, 235@)
DecisionMakerChar.ClearEventResponse(235@, 79)
Task.LookAtChar($ryder, $scplayer, 999999)
Text.PrintNow('RY2_03', 7000, 1)
49@ = 0
Char.SetCantBeDraggedOut($ryder, True)
Char.SetAnimGroup($ryder, "MAN")
Char.SetCoordinates($scplayer, 2474.87, -1698.465, 12.521)
Char.SetHeading($scplayer, 4.8941)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(0, Fade.In)

:RYDER2_3979
if 
  Camera.GetFadingStatus
goto_if_false @RYDER2_4003
wait 0
goto @RYDER2_3979

:RYDER2_4003
Player.SetControl($player1, True)
TIMERA = 0
240@ = Object.CreateNoOffset(#KMB_FRONTGATE, 242@, 243@, 244@)
248@, 249@, 250@ = Object.GetOffsetInWorldCoords(240@, 0.0, 10.0, 0.0)
241@ = Object.CreateNoOffset(#WAREHOUSE_DOOR2B, 245@, 246@, 247@)
251@, 252@, 253@ = Object.GetOffsetInWorldCoords(241@, 0.0, 0.0, 4.0)
257@ = Object.CreateNoOffset(#KMB_FRONTGATE, 2720.623, -2504.023, 13.989)
254@, 255@, 256@ = Object.GetOffsetInWorldCoords(257@, 0.0, 10.0, 0.0)
258@ = Object.CreateNoOffset(#WAREHOUSE_DOOR2B, 2774.361, -2493.922, 14.675)
259@ = Object.CreateNoOffset(#WAREHOUSE_DOOR2B, 2774.361, -2455.925, 14.675)
87@ = Object.CreateNoOffset(#WAREHOUSE_DOOR1, 2799.75, -2405.394, 14.58)
88@ = Object.CreateNoOffset(#WAREHOUSE_DOOR1, 2799.75, -2430.215, 14.58)
89@ = Object.CreateNoOffset(#WAREHOUSE_DOOR1, 2799.75, -2443.487, 14.58)
90@ = Object.CreateNoOffset(#WAREHOUSE_DOOR1, 2799.75, -2468.254, 14.58)
91@ = Object.CreateNoOffset(#WAREHOUSE_DOOR1, 2799.75, -2481.711, 14.58)
92@ = Object.CreateNoOffset(#WAREHOUSE_DOOR1, 2799.75, -2506.313, 14.58)
42@ = 0

:RYDER2_4352
if 
  6 > 42@
goto_if_false @RYDER2_4395
Object.FreezePosition(87@(42@,6i), True)
42@ += 1
goto @RYDER2_4352

:RYDER2_4395
60@ = Object.Create(#SEC_KEYPAD, 2720.475, -2411.856, 13.8768)
Object.SetHeading(60@, 90.0)
Object.SetHealth(60@, 10)
Object.FreezePosition(60@, True)
Object.SetCollision(60@, False)
61@ = Object.Create(#SEC_KEYPAD, 2774.148, -2423.23, 14.2684)
Object.SetHeading(61@, 270.0)
Object.SetHealth(61@, 10)
Object.FreezePosition(61@, True)
Object.SetCollision(61@, False)
Audio.SetRadioChannel(RadioChannel.RadioLosSantos)
49@ = 0
TIMERA = 0
35@ += 1

:RYDER2_4528
if 
  35@ == 2
goto_if_false @RYDER2_4689
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_4689
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_4689
if 
  Char.IsInCar($scplayer, 95@)
goto_if_false @RYDER2_4689
Blip.Remove(120@)
120@ = Blip.AddForCoord(2699.293, -2395.013, 12.6172)
Text.PrintNow('RY2_02', 7000, 1)
54@ = 0
35@ += 1
49@ = 0
50@ = 0
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_4689
Char.ClearLookAt($ryder)

:RYDER2_4689
if 
  35@ == 3
goto_if_false @RYDER2_6356
if 
  58@ == 1
goto_if_false @RYDER2_4762
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @RYDER2_4762
Char.SetCoordinates($scplayer, 2699.293, -2395.013, 12.6172)

:RYDER2_4762
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_4919
if 
  Blip.DoesExist(120@)
goto_if_false @RYDER2_4919
if 
  Car.Locate3D(95@, 2699.293, -2395.013, 12.6172, 4.0, 4.0, 4.0, True)
goto_if_false @RYDER2_4919
if 
  Char.IsInCar($scplayer, 95@)
goto_if_false @RYDER2_4919
if 
  Car.IsOnAllWheels(95@)
goto_if_false @RYDER2_4919
$car = Char.StoreCarIsInNoSave($scplayer)
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 2000000)
Player.SetControl($player1, False)
Blip.Remove(120@)
35@ = 99

:RYDER2_4919
if 
  54@ > 7500
goto_if_false @RYDER2_6356
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_6356
if 
  Char.IsInAnyCar($ryder)
goto_if_false @RYDER2_6356
$car = Char.StoreCarIsIn($ryder)
if 
  not Car.IsDead($car)
goto_if_false @RYDER2_6356
if 
  Char.IsInCar($scplayer, $car)
goto_if_false @RYDER2_6356
if 
  TIMERB > 1000
goto_if_false @RYDER2_6356
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_6356
switch_start 50@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @RYDER2_6356 {caseNum1} 0 {caseLabel1} @RYDER2_5178 {caseNum2} 1 {caseLabel2} @RYDER2_5251 {caseNum3} 2 {caseLabel3} @RYDER2_5375 {caseNum4} 3 {caseLabel4} @RYDER2_5499 {caseNum5} 4 {caseLabel5} @RYDER2_5623 {caseNum6} 5 {caseLabel6} @RYDER2_5747 {caseNum7} 6 {caseLabel7} @RYDER2_5871
switch_continued 7 {caseLabel1} @RYDER2_5995 {caseNum2} 8 {caseLabel2} @RYDER2_6119 {caseNum3} 9 {caseLabel3} @RYDER2_6243 {caseNum4} -1 {caseLabel4} @RYDER2_6356 {caseNum5} -1 {caseLabel5} @RYDER2_6356 {caseNum6} -1 {caseLabel6} @RYDER2_6356 {caseNum7} -1 {caseLabel7} @RYDER2_6356 {caseNum8} -1 {caseLabel8} @RYDER2_6356 {caseNum9} -1 {caseLabel9} @RYDER2_6356

:RYDER2_5178
set_var_text_label s$audio_string = 'RYD2_AA'
set_var_int_to_constant $audio_sound_file = 10605
start_new_script @AUDIOL $ryder 0 0 2 0 
50@ += 1
TIMERB = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10678)
goto @RYDER2_6356

:RYDER2_5251
set_var_text_label s$audio_string = 'RYD2_CA'
set_var_int_to_constant $audio_sound_file = 10678
if 
  49@ == 0
goto_if_false @RYDER2_5317
start_new_script @AUDIOL $scplayer 0 0 1 1 
goto @RYDER2_5343

:RYDER2_5317
start_new_script @AUDIOL $scplayer 0 0 1 0 
49@ = 0

:RYDER2_5343
50@ += 1
TIMERB = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10609)
goto @RYDER2_6356

:RYDER2_5375
set_var_text_label s$audio_string = 'RYD2_CB'
set_var_int_to_constant $audio_sound_file = 10609
if 
  49@ == 0
goto_if_false @RYDER2_5441
start_new_script @AUDIOL $ryder 0 0 2 1 
goto @RYDER2_5467

:RYDER2_5441
start_new_script @AUDIOL $ryder 0 0 2 0 
49@ = 0

:RYDER2_5467
50@ += 1
TIMERB = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10679)
goto @RYDER2_6356

:RYDER2_5499
set_var_text_label s$audio_string = 'RYD2_CC'
set_var_int_to_constant $audio_sound_file = 10679
if 
  49@ == 0
goto_if_false @RYDER2_5565
start_new_script @AUDIOL $scplayer 0 0 1 1 
goto @RYDER2_5591

:RYDER2_5565
start_new_script @AUDIOL $scplayer 0 0 1 0 
49@ = 0

:RYDER2_5591
50@ += 1
TIMERB = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10610)
goto @RYDER2_6356

:RYDER2_5623
set_var_text_label s$audio_string = 'RYD2_CD'
set_var_int_to_constant $audio_sound_file = 10610
if 
  49@ == 0
goto_if_false @RYDER2_5689
start_new_script @AUDIOL $ryder 0 0 2 1 
goto @RYDER2_5715

:RYDER2_5689
start_new_script @AUDIOL $ryder 0 0 2 0 
49@ = 0

:RYDER2_5715
50@ += 1
TIMERB = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10611)
goto @RYDER2_6356

:RYDER2_5747
set_var_text_label s$audio_string = 'RYD2_CE'
set_var_int_to_constant $audio_sound_file = 10611
if 
  49@ == 0
goto_if_false @RYDER2_5813
start_new_script @AUDIOL $ryder 0 0 1 1 
goto @RYDER2_5839

:RYDER2_5813
start_new_script @AUDIOL $ryder 0 0 1 0 
49@ = 0

:RYDER2_5839
50@ += 1
TIMERB = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10680)
goto @RYDER2_6356

:RYDER2_5871
set_var_text_label s$audio_string = 'RYD2_CF'
set_var_int_to_constant $audio_sound_file = 10680
if 
  49@ == 0
goto_if_false @RYDER2_5937
start_new_script @AUDIOL $scplayer 0 0 2 1 
goto @RYDER2_5963

:RYDER2_5937
start_new_script @AUDIOL $scplayer 0 0 2 0 
49@ = 0

:RYDER2_5963
50@ += 1
TIMERB = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10681)
goto @RYDER2_6356

:RYDER2_5995
set_var_text_label s$audio_string = 'RYD2_CG'
set_var_int_to_constant $audio_sound_file = 10681
if 
  49@ == 0
goto_if_false @RYDER2_6061
start_new_script @AUDIOL $scplayer 0 0 1 1 
goto @RYDER2_6087

:RYDER2_6061
start_new_script @AUDIOL $scplayer 0 0 1 0 
49@ = 0

:RYDER2_6087
50@ += 1
TIMERB = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10612)
goto @RYDER2_6356

:RYDER2_6119
set_var_text_label s$audio_string = 'RYD2_CH'
set_var_int_to_constant $audio_sound_file = 10612
if 
  49@ == 0
goto_if_false @RYDER2_6185
start_new_script @AUDIOL $ryder 0 0 2 1 
goto @RYDER2_6211

:RYDER2_6185
start_new_script @AUDIOL $ryder 0 0 2 0 
49@ = 0

:RYDER2_6211
50@ += 1
TIMERB = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10682)
goto @RYDER2_6356

:RYDER2_6243
set_var_text_label s$audio_string = 'RYD2_CJ'
set_var_int_to_constant $audio_sound_file = 10682
if 
  49@ == 0
goto_if_false @RYDER2_6309
start_new_script @AUDIOL $scplayer 0 0 1 1 
goto @RYDER2_6335

:RYDER2_6309
start_new_script @AUDIOL $scplayer 0 0 1 0 
49@ = 0

:RYDER2_6335
50@ += 1
TIMERB = 0
goto @RYDER2_6356

:RYDER2_6356
if 
  35@ == 99
goto_if_false @RYDER2_6388
35@ = 0
34@ += 1

:RYDER2_6388
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_6952
if 
  not Char.IsInCar($scplayer, 95@)
goto_if_false @RYDER2_6869
if 
  not Blip.DoesExist(119@)
goto_if_false @RYDER2_6501
Blip.Remove(119@)
119@ = Blip.AddForCar(95@)
Blip.SetAsFriendly(119@, True)
Blip.Remove(120@)
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_6493
Task.LookAtChar($ryder, $scplayer, 999999)

:RYDER2_6493
TIMERA = 20001

:RYDER2_6501
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_6862
if 
  TIMERA > 60000
goto_if_false @RYDER2_6570
Text.PrintNow('RY2_03', 7000, 1)
49@ = 0
TIMERA = 0

:RYDER2_6570
if 
  35@ > 2
goto_if_false @RYDER2_6862
if 
  TIMERA > 5000
goto_if_false @RYDER2_6862
if 
  49@ == 0
goto_if_false @RYDER2_6862
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_6862
if 
  Char.LocateAnyMeansChar3D($scplayer, $ryder, 15.0, 15.0, 15.0, False)
goto_if_false @RYDER2_6862
42@ = Math.RandomIntInRange(0, 3)
switch_start 42@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_6836 {caseNum1} 0 {caseLabel1} @RYDER2_6749 {caseNum2} 1 {caseLabel2} @RYDER2_6778 {caseNum3} 2 {caseLabel3} @RYDER2_6807 {caseNum4} -1 {caseLabel4} @RYDER2_6836 {caseNum5} -1 {caseLabel5} @RYDER2_6836 {caseNum6} -1 {caseLabel6} @RYDER2_6836 {caseNum7} -1 {caseLabel7} @RYDER2_6836

:RYDER2_6749
set_var_text_label s$audio_string = 'RYD2_BA'
set_var_int_to_constant $audio_sound_file = 10606
goto @RYDER2_6836

:RYDER2_6778
set_var_text_label s$audio_string = 'RYD2_BB'
set_var_int_to_constant $audio_sound_file = 10607
goto @RYDER2_6836

:RYDER2_6807
set_var_text_label s$audio_string = 'RYD2_BC'
set_var_int_to_constant $audio_sound_file = 10608
goto @RYDER2_6836

:RYDER2_6836
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ += 1

:RYDER2_6862
goto @RYDER2_6952

:RYDER2_6869
if 
  Blip.DoesExist(119@)
goto_if_false @RYDER2_6952
Blip.Remove(119@)
if 
  not Blip.DoesExist(120@)
goto_if_false @RYDER2_6952
Blip.Remove(120@)
120@ = Blip.AddForCoord(2699.293, -2395.013, 12.6172)
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_6952
Char.ClearLookAt($ryder)

:RYDER2_6952
return 

:RYDER2_6954
if 
  35@ == 0
goto_if_false @RYDER2_6995
Text.ClearPrints
Player.SetControl($player1, False)
49@ = -1
35@ += 1

:RYDER2_6995
if 
  35@ == 1
goto_if_false @RYDER2_7052
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_7052
if 
  Car.IsStopped(95@)
goto_if_false @RYDER2_7052
35@ += 1

:RYDER2_7052
if 
  35@ == 2
goto_if_false @RYDER2_8785
Camera.DoFade(500, Fade.Out)

:RYDER2_7077
if 
  Camera.GetFadingStatus
goto_if_false @RYDER2_7101
wait 0
goto @RYDER2_7077

:RYDER2_7101
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_7147
Car.SetCoordinates(95@, 2699.623, -2394.787, 12.6172)
Car.SetHeading(95@, 267.9095)

:RYDER2_7147
World.ClearArea(2720.611, -2405.38, 12.4609, 30.0, True)
World.ClearArea(2768.74, -2413.788, 12.6172, 30.0, True)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2688.57, -2394.186, 17.6992, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2689.455, -2394.599, 17.4888, SwitchType.JumpCut)
Streaming.RequestModel(#CJ_CARDBRD_PICKUP)
Streaming.RequestModel(287)
Streaming.RequestModel(346)
Streaming.RequestModel(530)
Streaming.LoadAllModelsNow

:RYDER2_7272
if or
  not Streaming.HasModelLoaded(#CJ_CARDBRD_PICKUP)
  not Streaming.HasModelLoaded(287)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(530)
goto_if_false @RYDER2_7314
wait 0
goto @RYDER2_7272

:RYDER2_7314
66@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2796.875, -2417.142, 13.23)
67@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2798.009, -2417.107, 13.23)
68@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2796.9, -2418.31, 13.23)
69@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2798.013, -2418.325, 13.23)
73@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2799.886, -2381.203, 13.23)
74@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2799.958, -2379.72, 13.23)
75@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2763.531, -2401.935, 13.23)
76@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2802.75, -2449.835, 13.23)
77@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2802.915, -2448.575, 13.23)
78@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2802.906, -2446.827, 13.23)
79@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2788.932, -2431.271, 13.23)
80@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2790.398, -2431.336, 13.23)
81@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2778.698, -2442.433, 13.23)
82@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2763.565, -2400.641, 13.23)
83@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2780.851, -2392.737, 13.23)
84@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2795.094, -2469.49, 13.23)
85@ = Object.CreateNoOffset(#CJ_CARDBRD_PICKUP, 2803.067, -2428.38, 13.23)
Object.SetHeading(66@, 91.9411)
Object.SetHeading(67@, 0.032)
Object.SetHeading(68@, 89.8612)
Object.SetHeading(69@, 1.6342)
Object.SetHeading(73@, 6.8174)
Object.SetHeading(74@, 19.1807)
Object.SetHeading(75@, 339.113)
Object.SetHeading(76@, 352.3154)
Object.SetHeading(77@, 2.8386)
Object.SetHeading(78@, 3.2099)
Object.SetHeading(79@, 266.6248)
Object.SetHeading(80@, 4.6663)
Object.SetHeading(81@, 175.8277)
Object.SetHeading(82@, 344.0064)
Object.SetHeading(83@, 355.9493)
Object.SetHeading(84@, 1.9283)
Object.SetHeading(85@, 358.0803)
42@ = 0

:RYDER2_7882
if 
  25 > 42@
goto_if_false @RYDER2_7998
wait 0
if 
  Object.DoesExist(62@(42@,25i))
goto_if_false @RYDER2_7984
Object.SetDynamic(62@(42@,25i), True)
43@ = Math.RandomIntInRange(1, 8)
Object.SetMass(62@(42@,25i), 1000.0)
Object.SetTurnMass(62@(42@,25i), 1000.0)
set_lvar_int_to_lvar_int 147@(42@,25i) = 43@

:RYDER2_7984
42@ += 1
goto @RYDER2_7882

:RYDER2_7998
102@ = Char.Create(PedType.Mission1, 287, 2773.722, -2423.388, 12.6311)
Char.SetHeading(102@, 68.8849)
204@, 205@, 206@ = Char.GetOffsetInWorldCoords(102@, 0.0, 1.5, 0.0)
103@ = Char.Create(PedType.Mission1, 287, 2721.944, -2411.565, 12.6198)
Char.SetHeading(103@, 0.0)
104@ = Char.Create(PedType.Mission1, 287, 2789.524, -2416.372, 12.6333)
Char.SetHeading(104@, 202.4407)
105@ = Char.Create(PedType.Mission1, 287, 2790.231, -2418.837, 12.6331)
Char.SetHeading(105@, 23.3411)
106@ = Char.Create(PedType.Mission1, 287, 2774.911, -2404.303, 12.6311)
Char.SetHeading(106@, 77.8711)
239@ = Group.Create(DefaultTaskAllocator.StandStill)
42@ = 0

:RYDER2_8216
if 
  5 > 42@
goto_if_false @RYDER2_8408
Char.GiveWeapon(102@(42@,9i), WeaponType.Pistol, 99999)
Char.SetAccuracy(102@(42@,9i), 35)
Char.SetHealth(102@(42@,9i), 100)
Task.TogglePedThreatScanner(102@(42@,9i), False, False, False)
Char.SetDecisionMaker(102@(42@,9i), 236@)
Char.SetSenseRange(102@(42@,9i), 100.0)
if 
  42@ == 0
goto_if_false @RYDER2_8346
Group.SetLeader(239@, 102@)
goto @RYDER2_8383

:RYDER2_8346
if and
  42@ <> 2
  42@ <> 3
goto_if_false @RYDER2_8383
Group.SetMember(239@, 102@(42@,9i))

:RYDER2_8383
Char.SetNeverLeavesGroup(102@(42@,9i), True)
42@ += 1
goto @RYDER2_8216

:RYDER2_8408
if 
  not Char.IsDead(104@)
goto_if_false @RYDER2_8432
Char.SetDecisionMaker(104@, 237@)

:RYDER2_8432
if 
  not Char.IsDead(105@)
goto_if_false @RYDER2_8456
Char.SetDecisionMaker(105@, 237@)

:RYDER2_8456
99@ = Car.Create(530, 2791.426, -2418.577, 12.66)
Car.SetHeading(99@, 90.0)
Streaming.MarkModelAsNoLongerNeeded(530)
Car.SetProofs(99@, True, False, False, False, False)
Car.SetCoordinates(99@, 2758.241, -2372.314, 12.6172)
Car.SetHeading(99@, 180.3774)
Car.SetCanBurstTires(99@, False)
Car.SetHealth(99@, 3000)
112@ = Char.CreateInsideCar(99@, PedType.Mission1, 287)
Streaming.RequestModel(500)

:RYDER2_8572
if 
  not Streaming.HasModelLoaded(500)
goto_if_false @RYDER2_8599
wait 0
goto @RYDER2_8572

:RYDER2_8599
98@ = Car.Create(500, 2688.963, -2407.676, 12.4609)
Car.SetHeading(98@, 270.0)
111@ = Char.CreateInsideCar(98@, PedType.Mission1, 287)
Car.GotoCoordinatesAccurate(98@, 2712.854, -2407.825, 12.4684)
Streaming.MarkModelAsNoLongerNeeded(500)
Car.ChangeColor(98@, 37, 37)
if 
  not Char.IsDead(106@)
goto_if_false @RYDER2_8740
Path.FlushRoute
Path.ExtendRoute(2776.531, -2401.042, 12.625)
Path.ExtendRoute(2798.933, -2400.343, 12.631)
Task.FollowPointRoute(106@, 4, RouteMode.Loop)

:RYDER2_8740
Camera.DoFade(500, Fade.In)

:RYDER2_8747
if 
  Camera.GetFadingStatus
goto_if_false @RYDER2_8771
wait 0
goto @RYDER2_8747

:RYDER2_8771
TIMERA = 0
35@ += 1

:RYDER2_8785
if 
  35@ == 3
goto_if_false @RYDER2_9055
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_9055
if 
  not Car.IsDead(98@)
goto_if_false @RYDER2_9055
if 
  Car.Locate3D(98@, 2712.854, -2407.825, 12.4684, 15.0, 15.0, 15.0, False)
goto_if_false @RYDER2_9055
Camera.SetFixedPosition(2700.626, -2392.21, 14.9203, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2701.092, -2393.088, 14.8109, SwitchType.JumpCut)
if 
  not Car.IsDead(99@)
goto_if_false @RYDER2_8980
Car.GotoCoordinatesAccurate(99@, 2768.74, -2413.788, 12.6172)
Car.SetStraightLineDistance(99@, 200)

:RYDER2_8980
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_9034
if 
  not Car.IsDead(98@)
goto_if_false @RYDER2_9034
Task.LookAtVehicle($ryder, 98@, 5000)
Task.LookAtVehicle($scplayer, 98@, 6000)

:RYDER2_9034
TIMERA = 0
49@ += 1
35@ += 1

:RYDER2_9055
if 
  35@ == 4
goto_if_false @RYDER2_9175
if 
  not Car.IsDead(98@)
goto_if_false @RYDER2_9175
if 
  Car.LocateStopped3D(98@, 2712.854, -2407.825, 12.4684, 4.0, 4.0, 4.0, False)
goto_if_false @RYDER2_9175
35@ += 1
if 
  Object.DoesExist(240@)
goto_if_false @RYDER2_9168
Audio.ReportMissionAudioEventAtObject(240@, 1126)

:RYDER2_9168
TIMERA = 0

:RYDER2_9175
if 
  35@ == 5
goto_if_false @RYDER2_9266
if 
  Object.DoesExist(240@)
goto_if_false @RYDER2_9266
if 
  Object.Slide(240@, 248@, 249@, 250@, 0.0, 0.2, 0.0, False)
goto_if_false @RYDER2_9266
35@ += 1
Audio.ReportMissionAudioEventAtObject(240@, 1127)

:RYDER2_9266
if 
  35@ == 6
goto_if_false @RYDER2_9440
if 
  not Car.IsDead(98@)
goto_if_false @RYDER2_9440
Camera.SetFixedPosition(2723.094, -2413.245, 14.2659, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2722.548, -2412.414, 14.1704, SwitchType.JumpCut)
Car.GotoCoordinates(98@, 2758.492, -2454.51, 12.4766)
if 
  not Char.IsDead(102@)
goto_if_false @RYDER2_9397
Char.SetHeading(102@, 275.0)

:RYDER2_9397
if 
  not Char.IsDead(103@)
goto_if_false @RYDER2_9426
Task.LookAtVehicle(103@, 98@, 999999)

:RYDER2_9426
35@ += 1
TIMERA = 0

:RYDER2_9440
if 
  35@ == 7
goto_if_false @RYDER2_9549
if 
  TIMERA > 2500
goto_if_false @RYDER2_9549
Camera.SetFixedPosition(2770.979, -2426.933, 13.3413, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2771.185, -2425.977, 13.5536, SwitchType.JumpCut)
TIMERA = 0
201@ = 0
35@ += 1

:RYDER2_9549
if 
  35@ == 8
goto_if_false @RYDER2_9831
if 
  not Car.IsDead(99@)
goto_if_false @RYDER2_9766
if 
  Car.LocateStopped3D(99@, 2768.74, -2413.788, 12.6172, 4.0, 4.0, 4.0, False)
goto_if_false @RYDER2_9766
if 
  not Char.IsDead(102@)
goto_if_false @RYDER2_9766
48@ = Sequence.Open()
Task.TurnCharToFaceCoord(-1, 2774.267, -2423.22, 14.3429)
Task.PlayAnim(-1, "ATM", "PED", 4.0, False, False, False, False, 1000)
Task.GoStraightToCoord(-1, 2773.722, -2423.388, 12.6311, MoveState.Walk, 5000)
Task.AchieveHeading(-1, 90.0)
Sequence.Close(48@)
Char.PerformSequence(102@, 48@)
Sequence.Clear(48@)
TIMERA = 0
35@ += 1

:RYDER2_9766
if 
  TIMERA > 10000
goto_if_false @RYDER2_9831
if 
  not Car.IsDead(99@)
goto_if_false @RYDER2_9831
Car.SetCoordinates(99@, 2768.74, -2413.788, 12.6172)
Car.SetHeading(99@, 225.6142)

:RYDER2_9831
if 
  35@ == 9
goto_if_false @RYDER2_10061
if 
  not Char.IsDead(102@)
goto_if_false @RYDER2_10061
if 
  Char.IsPlayingAnim(102@, "ATM")
goto_if_false @RYDER2_9986
if 
  201@ == 0
goto_if_false @RYDER2_9918
TIMERB = 0
201@ += 1

:RYDER2_9918
if 
  201@ == 1
goto_if_false @RYDER2_9986
if 
  TIMERB > 500
goto_if_false @RYDER2_9986
if 
  Object.DoesExist(61@)
goto_if_false @RYDER2_9986
Audio.ReportMissionAudioEventAtObject(61@, 1028)
201@ += 1

:RYDER2_9986
42@ = Char.GetScriptTaskStatus(102@, 1560)
if or
  is_int_lvar_equal_to_constant 42@ == 7
  TIMERA > 4000
goto_if_false @RYDER2_10061
TIMERA = 0
if 
  Object.DoesExist(241@)
goto_if_false @RYDER2_10054
Audio.ReportMissionAudioEventAtObject(241@, 1035)

:RYDER2_10054
35@ += 1

:RYDER2_10061
if 
  35@ == 10
goto_if_false @RYDER2_10195
if 
  Object.DoesExist(241@)
goto_if_false @RYDER2_10195
if 
  Object.Slide(241@, 251@, 252@, 253@, 0.0, 0.0, 0.1, False)
goto_if_false @RYDER2_10195
if 
  not Car.IsDead(99@)
goto_if_false @RYDER2_10195
Car.GotoCoordinates(99@, 2785.354, -2416.744, 12.6187)
TIMERA = 0
Audio.ReportMissionAudioEventAtObject(241@, 1036)
35@ += 1

:RYDER2_10195
if 
  35@ == 11
goto_if_false @RYDER2_10263
if 
  TIMERA > 4000
goto_if_false @RYDER2_10263
if 
  Object.DoesExist(241@)
goto_if_false @RYDER2_10256
Audio.ReportMissionAudioEventAtObject(241@, 1035)

:RYDER2_10256
35@ += 1

:RYDER2_10263
if 
  35@ == 12
goto_if_false @RYDER2_10354
if 
  Object.DoesExist(241@)
goto_if_false @RYDER2_10354
if 
  Object.Slide(241@, 245@, 246@, 247@, 0.0, 0.0, 0.2, False)
goto_if_false @RYDER2_10354
Audio.ReportMissionAudioEventAtObject(241@, 1036)
35@ += 1

:RYDER2_10354
if 
  35@ == 13
goto_if_false @RYDER2_10405
if and
  TIMERA > 2000
  $audio_line_is_active == 0
goto_if_false @RYDER2_10405
35@ = 99

:RYDER2_10405
if 
  TIMERB > 1000
goto_if_false @RYDER2_11039
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_11039
switch_start 49@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @RYDER2_11039 {caseNum1} 0 {caseLabel1} @RYDER2_10570 {caseNum2} 1 {caseLabel2} @RYDER2_10643 {caseNum3} 2 {caseLabel3} @RYDER2_10664 {caseNum4} 3 {caseLabel4} @RYDER2_10737 {caseNum5} 4 {caseLabel5} @RYDER2_10810 {caseNum6} 5 {caseLabel6} @RYDER2_10883 {caseNum7} 6 {caseLabel7} @RYDER2_10956
switch_continued 7 {caseLabel1} @RYDER2_10977 {caseNum2} -1 {caseLabel2} @RYDER2_11039 {caseNum3} -1 {caseLabel3} @RYDER2_11039 {caseNum4} -1 {caseLabel4} @RYDER2_11039 {caseNum5} -1 {caseLabel5} @RYDER2_11039 {caseNum6} -1 {caseLabel6} @RYDER2_11039 {caseNum7} -1 {caseLabel7} @RYDER2_11039 {caseNum8} -1 {caseLabel8} @RYDER2_11039 {caseNum9} -1 {caseLabel9} @RYDER2_11039

:RYDER2_10570
set_var_text_label s$audio_string = 'RYD2_DA'
set_var_int_to_constant $audio_sound_file = 10613
start_new_script @AUDIOL $ryder 0 1 1 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10614)
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_10643
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_10664
set_var_text_label s$audio_string = 'RYD2_DB'
set_var_int_to_constant $audio_sound_file = 10614
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10683)
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_10737
set_var_text_label s$audio_string = 'RYD2_DC'
set_var_int_to_constant $audio_sound_file = 10683
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10615)
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_10810
set_var_text_label s$audio_string = 'RYD2_DD'
set_var_int_to_constant $audio_sound_file = 10615
start_new_script @AUDIOL $ryder 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10616)
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_10883
set_var_text_label s$audio_string = 'RYD2_DE'
set_var_int_to_constant $audio_sound_file = 10616
start_new_script @AUDIOL $ryder 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10617)
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_10956
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_10977
set_var_text_label s$audio_string = 'RYD2_DF'
set_var_int_to_constant $audio_sound_file = 10617
start_new_script @AUDIOL $ryder 0 1 2 1 
49@ += 1
TIMERB = 0
goto @RYDER2_11039

:RYDER2_11039
if 
  35@ > 2
goto_if_false @RYDER2_11081
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @RYDER2_11081
35@ = 99

:RYDER2_11081
if 
  35@ == 99
goto_if_false @RYDER2_11608
Camera.DoFade(250, Fade.Out)

:RYDER2_11106
if 
  Camera.GetFadingStatus
goto_if_false @RYDER2_11130
wait 0
goto @RYDER2_11106

:RYDER2_11130
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_11220
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 2700.758, -2392.45, 12.6172)
Char.SetHeading($scplayer, 236.0759)
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_11220
Char.ClearTasksImmediately($ryder)
Char.WarpIntoCar($ryder, 95@)

:RYDER2_11220
if 
  not Car.IsDead(99@)
goto_if_false @RYDER2_11266
Car.SetCoordinates(99@, 2791.426, -2418.31, 13.66)
Car.SetHeading(99@, 270.0)

:RYDER2_11266
if 
  not Char.IsDead(112@)
goto_if_false @RYDER2_11287
Char.Delete(112@)

:RYDER2_11287
if 
  not Car.IsDead(98@)
goto_if_false @RYDER2_11333
Car.SetCoordinates(98@, 2748.055, -2394.427, 12.6419)
Car.SetHeading(98@, 174.3167)

:RYDER2_11333
if 
  not Char.IsDead(111@)
goto_if_false @RYDER2_11354
Char.Delete(111@)

:RYDER2_11354
Object.SetCoordinates(240@, 242@, 243@, 244@)
Object.SetCoordinates(241@, 245@, 246@, 247@)
42@ = 0

:RYDER2_11389
if 
  25 > 42@
goto_if_false @RYDER2_11498
if 
  Object.DoesExist(62@(42@,25i))
goto_if_false @RYDER2_11484
Object.FreezePosition(62@(42@,25i), False)
Object.SetVelocity(62@(42@,25i), 0.0, 0.0, 0.0)
Object.SetDynamic(62@(42@,25i), False)
Object.SetCollision(62@(42@,25i), True)

:RYDER2_11484
42@ += 1
goto @RYDER2_11389

:RYDER2_11498
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_11523
Car.PopDoor(95@, CarDoor.Trunk, False)

:RYDER2_11523
if 
  not Char.IsDead(103@)
goto_if_false @RYDER2_11544
Char.ClearLookAt(103@)

:RYDER2_11544
Game.SwitchEmergencyServices(False)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(250, Fade.In)

:RYDER2_11563
if 
  Camera.GetFadingStatus
goto_if_false @RYDER2_11587
wait 0
goto @RYDER2_11563

:RYDER2_11587
Player.SetControl($player1, True)
35@ = 0
34@ += 1

:RYDER2_11608
return 

:RYDER2_11610
if 
  35@ == 0
goto_if_false @RYDER2_11830
if 
  Object.DoesExist(60@)
goto_if_false @RYDER2_11665
Object.SetCollision(60@, True)
Object.MakeTargetable(60@, False)
Object.FreezePosition(60@, True)

:RYDER2_11665
if 
  Object.DoesExist(61@)
goto_if_false @RYDER2_11702
Object.SetCollision(61@, True)
Object.MakeTargetable(61@, False)
Object.FreezePosition(61@, True)

:RYDER2_11702
Text.Print('RY2_59', 7000, 1)
Blip.Remove(122@)
122@ = Blip.AddForCoord(2722.075, -2411.271, 12.6198)
Blip.ChangeColor(122@, BlipColor.Red)
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_11780
Car.FreezePosition(95@, True)
Car.LockDoors(95@, CarLock.LockoutPlayerOnly)

:RYDER2_11780
191@ = 0
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_11816
Task.LookAtChar($ryder, $scplayer, 99999)

:RYDER2_11816
142@ = 0
35@ += 1

:RYDER2_11830
if 
  35@ == 1
goto_if_false @RYDER2_12420
if 
  133@ == 2
goto_if_false @RYDER2_12023
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_12016
Blip.Remove(122@)
Streaming.RequestCarRecording(523)

:RYDER2_11892
if 
  not Streaming.HasCarRecordingBeenLoaded(523)
goto_if_false @RYDER2_11919
wait 0
goto @RYDER2_11892

:RYDER2_11919
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_11943
Car.StartPlayback(95@, 523)

:RYDER2_11943
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_11964
Char.ClearLookAt($ryder)

:RYDER2_11964
set_var_text_label s$audio_string = 'RYD2_GA'
set_var_int_to_constant $audio_sound_file = 10621
start_new_script @AUDIOL $ryder 0 1 1 0 
wait 100
35@ = 99

:RYDER2_12016
goto @RYDER2_12420

:RYDER2_12023
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_12281
if 
  Char.LocateOnFootCar3D($scplayer, 95@, 5.0, 5.0, 3.0, False)
goto_if_false @RYDER2_12281
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @RYDER2_12281
if 
  190@ == 0
goto_if_false @RYDER2_12190
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_12176
set_var_text_label s$audio_string = 'RYD2_EA'
set_var_int_to_constant $audio_sound_file = 10618
start_new_script @AUDIOL $ryder 0 1 1 0 
142@ = 0

:RYDER2_12176
190@ += 1
goto @RYDER2_12281

:RYDER2_12190
if 
  190@ == 1
goto_if_false @RYDER2_12281
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_12274
set_var_text_label s$audio_string = 'RYD2_EB'
set_var_int_to_constant $audio_sound_file = 10619
start_new_script @AUDIOL $ryder 0 1 1 0 
142@ = 0

:RYDER2_12274
190@ = 0

:RYDER2_12281
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_12420
if 
  Char.LocateAnyMeansChar3D($ryder, $scplayer, 20.0, 20.0, 20.0, False)
goto_if_false @RYDER2_12420
if 
  142@ > 40000
goto_if_false @RYDER2_12420
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_12420
set_var_text_label s$audio_string = 'RYD2_FA'
set_var_int_to_constant $audio_sound_file = 10620
start_new_script @AUDIOL $ryder 0 1 1 0 
142@ = 0

:RYDER2_12420
if 
  35@ <> 99
goto_if_false @RYDER2_12689
if 
  38@ == 9
goto_if_false @RYDER2_12689
if and
  132@ <> 0
  133@ == 0
goto_if_false @RYDER2_12576
if 
  Char.LocateAnyMeans3D($scplayer, 2785.89, -2417.98, 14.36, 20.0, 20.0, 5.0, False)
goto_if_false @RYDER2_12569
if 
  51@ > 30000
goto_if_false @RYDER2_12569
336@ = 3
gosub @RYDER2_39696
51@ = 0

:RYDER2_12569
goto @RYDER2_12689

:RYDER2_12576
if and
  133@ == 0
  132@ == 0
goto_if_false @RYDER2_12689
if 
  Char.LocateAnyMeans3D($scplayer, 2785.89, -2417.98, 14.36, 20.0, 20.0, 5.0, False)
goto_if_false @RYDER2_12689
if 
  51@ > 30000
goto_if_false @RYDER2_12689
336@ = 3
gosub @RYDER2_39696
51@ = 0

:RYDER2_12689
if 
  35@ == 99
goto_if_false @RYDER2_12735
34@ += 1
35@ = 0
191@ = 0
336@ = 0

:RYDER2_12735
return 

:RYDER2_12737
if 
  35@ == 0
goto_if_false @RYDER2_12884
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @RYDER2_12884
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_12884
if 
  132@ == 0
goto_if_false @RYDER2_12877
123@ = Blip.AddForCoord(2773.101, -2423.418, 12.6269)
Blip.ChangeColor(123@, BlipColor.Red)
Text.Print('RY2_60', 7000, 1)
54@ = 0
49@ = 0
35@ += 1
goto @RYDER2_12884

:RYDER2_12877
35@ += 1

:RYDER2_12884
if 
  35@ == 1
goto_if_false @RYDER2_12970
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_12970
if 
  not Car.IsPlaybackGoingOn(95@)
goto_if_false @RYDER2_12970
Car.FreezePosition(95@, True)
49@ = 0
54@ = 20000
35@ += 1
TIMERA = 0

:RYDER2_12970
if 
  35@ == 2
goto_if_false @RYDER2_13449
if 
  132@ <> 0
goto_if_false @RYDER2_13111
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_13104
Blip.Remove(123@)
Streaming.RequestCarRecording(524)

:RYDER2_13032
if 
  not Streaming.HasCarRecordingBeenLoaded(524)
goto_if_false @RYDER2_13059
wait 0
goto @RYDER2_13032

:RYDER2_13059
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_13083
Car.StartPlayback(95@, 524)

:RYDER2_13083
TIMERA = 0
49@ = 0
35@ += 1

:RYDER2_13104
goto @RYDER2_13449

:RYDER2_13111
if 
  54@ > 20000
goto_if_false @RYDER2_13449
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_13449
if 
  Char.LocateAnyMeansChar3D($scplayer, $ryder, 15.0, 15.0, 15.0, False)
goto_if_false @RYDER2_13449
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_13449
switch_start 49@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_13449 {caseNum1} 0 {caseLabel1} @RYDER2_13263 {caseNum2} 1 {caseLabel2} @RYDER2_13325 {caseNum3} 2 {caseLabel3} @RYDER2_13387 {caseNum4} -1 {caseLabel4} @RYDER2_13449 {caseNum5} -1 {caseLabel5} @RYDER2_13449 {caseNum6} -1 {caseLabel6} @RYDER2_13449 {caseNum7} -1 {caseLabel7} @RYDER2_13449

:RYDER2_13263
set_var_text_label s$audio_string = 'RYD2_GB'
set_var_int_to_constant $audio_sound_file = 10622
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ += 1
54@ = 0
goto @RYDER2_13449

:RYDER2_13325
set_var_text_label s$audio_string = 'RYD2_LA'
set_var_int_to_constant $audio_sound_file = 10629
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ += 1
54@ = 0
goto @RYDER2_13449

:RYDER2_13387
set_var_text_label s$audio_string = 'RYD2_LE'
set_var_int_to_constant $audio_sound_file = 10633
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 0
54@ = 0
goto @RYDER2_13449

:RYDER2_13449
if 
  35@ == 3
goto_if_false @RYDER2_13622
49@ = 0
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_13622
42@ = Math.RandomIntInRange(0, 2)
if 
  42@ == 0
goto_if_false @RYDER2_13574
set_var_text_label s$audio_string = 'RYD2_HA'
set_var_int_to_constant $audio_sound_file = 10684
start_new_script @AUDIOL $scplayer 0 1 1 0 
35@ += 1
goto @RYDER2_13622

:RYDER2_13574
set_var_text_label s$audio_string = 'RYD2_HB'
set_var_int_to_constant $audio_sound_file = 10685
start_new_script @AUDIOL $scplayer 0 1 1 0 
35@ += 1

:RYDER2_13622
if 
  35@ == 4
goto_if_false @RYDER2_13710
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_13710
if 
  not Car.IsPlaybackGoingOn(95@)
goto_if_false @RYDER2_13686
35@ = 99
goto @RYDER2_13710

:RYDER2_13686
if 
  TIMERA > 10600
goto_if_false @RYDER2_13710
Car.StopPlayback(95@)

:RYDER2_13710
if 
  35@ == 99
goto_if_false @RYDER2_13772
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_13758
Car.FreezePosition(95@, True)
Car.SetIsConsideredByPlayer(95@, False)

:RYDER2_13758
35@ = 0
34@ += 1

:RYDER2_13772
if 
  191@ == 0
goto_if_false @RYDER2_13894
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_13894
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_13894
if 
  not Char.IsInCar($ryder, 95@)
goto_if_false @RYDER2_13894
if 
  Car.IsPlaybackGoingOn(95@)
goto_if_false @RYDER2_13869
Car.PausePlayback(95@)
Car.FreezePosition(95@, True)

:RYDER2_13869
Task.EnterCarAsDriver($ryder, 95@, 10000)
TIMERA = 0
191@ += 1

:RYDER2_13894
if 
  191@ == 1
goto_if_false @RYDER2_14024
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_13998
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_13998
if 
  Char.IsInCar($ryder, 95@)
goto_if_false @RYDER2_13998
if 
  Car.IsPlaybackGoingOn(95@)
goto_if_false @RYDER2_13991
Car.UnpausePlayback(95@)
Car.FreezePosition(95@, False)

:RYDER2_13991
191@ = 0

:RYDER2_13998
if 
  TIMERA > 10000
goto_if_false @RYDER2_14024
191@ = 0

:RYDER2_14024
return 

:RYDER2_14026
if 
  58@ == 1
goto_if_false @RYDER2_14069
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @RYDER2_14069
set_lvar_int_to_lvar_int 127@ = 200@

:RYDER2_14069
if 
  35@ == 0
goto_if_false @RYDER2_14491
Streaming.RequestAnimation("RYDER")

:RYDER2_14096
if 
  not Streaming.HasAnimationLoaded("RYDER")
goto_if_false @RYDER2_14127
wait 0
goto @RYDER2_14096

:RYDER2_14127
266@ = 0
set_var_int_to_lvar_int $ryder_health = 200@
Hud.DisplayNthCounterWithString($ryder_health, CounterDisplay.Number, 2, 'RY2_21')
Hud.DisplayNthCounterWithString($6890, CounterDisplay.Bar, 1, 'RY2_19')
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_14300
if 
  Car.IsModel(95@, 414)
goto_if_false @RYDER2_14271
260@, 261@, 262@ = Car.GetOffsetInWorldCoords(95@, 0.0, -5.5, 0.6)
263@, 264@, 265@ = Car.GetOffsetInWorldCoords(95@, 3.0, 5.5, 0.6)

:RYDER2_14271
Car.SetHeavy(95@, True)
Car.SetStrong(95@, True)
Car.SetHealth(95@, 2500)
Car.LockDoors(95@, CarLock.LockoutPlayerOnly)

:RYDER2_14300
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_14373
DecisionMakerChar.ClearEventResponse(235@, 12)
Char.SetRelationship($ryder, RelationshipType.Respect, PedType.Player1)
Char.SetRelationship($ryder, RelationshipType.Hate, PedType.Mission1)
Task.TogglePedThreatScanner($ryder, True, True, True)
if 
  Blip.DoesExist(119@)
goto_if_false @RYDER2_14373
Blip.Remove(119@)

:RYDER2_14373
if 
  not Car.IsDead(99@)
goto_if_false @RYDER2_14444
if 
  not Char.IsInCar($scplayer, 99@)
goto_if_false @RYDER2_14444
Text.Print('RY2_55', 5000, 1)
Blip.Remove(119@)
119@ = Blip.AddForCar(99@)
Blip.SetAsFriendly(119@, True)

:RYDER2_14444
197@ = 1
267@ = 0
54@ = -4000
49@ = 0
TIMERA = 0
wait 0
35@ += 1

:RYDER2_14491
if 
  267@ == 0
goto_if_false @RYDER2_14571
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_14571
if 
  Char.IsOnFoot($ryder)
goto_if_false @RYDER2_14571
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_14571
Car.FreezePosition(95@, True)
267@ = 1

:RYDER2_14571
if 
  266@ == 0
goto_if_false @RYDER2_14673
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  $audio_line_is_active == 0
goto_if_false @RYDER2_14666
set_var_text_label s$audio_string = 'RYD2_KB'
set_var_int_to_constant $audio_sound_file = 10627
start_new_script @AUDIOL $ryder 0 1 1 0 
266@ = 1
TIMERA = 0

:RYDER2_14666
goto @RYDER2_14735

:RYDER2_14673
if 
  266@ == 1
goto_if_false @RYDER2_14735
if 
  TIMERA > 1000
goto_if_false @RYDER2_14735
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_14735
266@ = 2

:RYDER2_14735
if 
  35@ == 1
goto_if_false @RYDER2_14897
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @RYDER2_14897
if 
  not Car.IsDead(99@)
goto_if_false @RYDER2_14897
if and
  Char.IsInCar($scplayer, 99@)
  266@ == 2
goto_if_false @RYDER2_14860
if 
  1 > 268@
goto_if_false @RYDER2_14835
268@ = 1

:RYDER2_14835
35@ += 1
TIMERA = 0
wait 0
goto @RYDER2_14897

:RYDER2_14860
if 
  Char.IsInCar($scplayer, 99@)
goto_if_false @RYDER2_14897
Text.ClearThisPrint('RY2_55')
268@ = 1

:RYDER2_14897
if and
  268@ > 0
  5 > 268@
goto_if_false @RYDER2_15105
if 
  not Car.IsDead(99@)
goto_if_false @RYDER2_15105
if 
  Char.IsInCar($scplayer, 99@)
goto_if_false @RYDER2_15103
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @RYDER2_15096
switch_start 268@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_15089 {caseNum1} 1 {caseLabel1} @RYDER2_15035 {caseNum2} 2 {caseLabel2} @RYDER2_15053 {caseNum3} 3 {caseLabel3} @RYDER2_15071 {caseNum4} -1 {caseLabel4} @RYDER2_15089 {caseNum5} -1 {caseLabel5} @RYDER2_15089 {caseNum6} -1 {caseLabel6} @RYDER2_15089 {caseNum7} -1 {caseLabel7} @RYDER2_15089

:RYDER2_15035
Text.PrintHelp('RY2_69')
goto @RYDER2_15089

:RYDER2_15053
Text.PrintHelp('RY2_68')
goto @RYDER2_15089

:RYDER2_15071
Text.PrintHelp('RY2_71')
goto @RYDER2_15089

:RYDER2_15089
268@ += 1

:RYDER2_15096
goto @RYDER2_15105

:RYDER2_15103
Text.ClearHelp

:RYDER2_15105
if 
  35@ == 2
goto_if_false @RYDER2_15130
35@ += 3

:RYDER2_15130
if 
  35@ == 5
goto_if_false @RYDER2_15346
if and
  not Text.IsHelpMessageBeingDisplayed
  not Text.IsMessageBeingDisplayed
goto_if_false @RYDER2_15346
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_15346
if 
  54@ > 1000
goto_if_false @RYDER2_15346
switch_start 49@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @RYDER2_15346 {caseNum1} 0 {caseLabel1} @RYDER2_15263 {caseNum2} 1 {caseLabel2} @RYDER2_15325 {caseNum3} -1 {caseLabel3} @RYDER2_15346 {caseNum4} -1 {caseLabel4} @RYDER2_15346 {caseNum5} -1 {caseLabel5} @RYDER2_15346 {caseNum6} -1 {caseLabel6} @RYDER2_15346 {caseNum7} -1 {caseLabel7} @RYDER2_15346

:RYDER2_15263
set_var_text_label s$audio_string = 'RYD2_KA'
set_var_int_to_constant $audio_sound_file = 10626
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ += 1
54@ = 0
goto @RYDER2_15346

:RYDER2_15325
49@ = 0
35@ += 1
goto @RYDER2_15346

:RYDER2_15346
if 
  35@ == 6
goto_if_false @RYDER2_15437
if 
  54@ > 1000
goto_if_false @RYDER2_15437
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_15437
51@ = 0
TIMERB = 30000
142@ = 0
TIMERA = 0
35@ += 1

:RYDER2_15437
if and
  35@ > 5
  51@ > 30000
goto_if_false @RYDER2_15477
336@ = 1
51@ = 0

:RYDER2_15477
if 
  35@ == 8
goto_if_false @RYDER2_15894
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_15894
if and
  not Text.IsHelpMessageBeingDisplayed
  not Text.IsMessageBeingDisplayed
goto_if_false @RYDER2_15894
192@ = 1
if 
  142@ > 30000
goto_if_false @RYDER2_15894
switch_start 143@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @RYDER2_15855 {caseNum1} 0 {caseLabel1} @RYDER2_15615 {caseNum2} 1 {caseLabel2} @RYDER2_15663 {caseNum3} 2 {caseLabel3} @RYDER2_15711 {caseNum4} 3 {caseLabel4} @RYDER2_15759 {caseNum5} 4 {caseLabel5} @RYDER2_15807 {caseNum6} -1 {caseLabel6} @RYDER2_15855 {caseNum7} -1 {caseLabel7} @RYDER2_15855

:RYDER2_15615
set_var_text_label s$audio_string = 'RYD2_LA'
set_var_int_to_constant $audio_sound_file = 10629
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_15855

:RYDER2_15663
set_var_text_label s$audio_string = 'RYD2_LB'
set_var_int_to_constant $audio_sound_file = 10630
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_15855

:RYDER2_15711
set_var_text_label s$audio_string = 'RYD2_LC'
set_var_int_to_constant $audio_sound_file = 10631
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_15855

:RYDER2_15759
set_var_text_label s$audio_string = 'RYD2_LD'
set_var_int_to_constant $audio_sound_file = 10632
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_15855

:RYDER2_15807
set_var_text_label s$audio_string = 'RYD2_LE'
set_var_int_to_constant $audio_sound_file = 10633
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_15855

:RYDER2_15855
143@ += 1
if 
  143@ > 4
goto_if_false @RYDER2_15887
143@ = 0

:RYDER2_15887
142@ = 0

:RYDER2_15894
if 
  Blip.DoesExist(119@)
goto_if_false @RYDER2_15968
if 
  not Car.IsDead(99@)
goto_if_false @RYDER2_15961
if 
  Char.IsInCar($scplayer, 99@)
goto_if_false @RYDER2_15961
Text.ClearThisPrint('RY2_55')
Blip.Remove(119@)

:RYDER2_15961
goto @RYDER2_16137

:RYDER2_15968
if 
  not Car.IsDead(99@)
goto_if_false @RYDER2_16137
if 
  not Char.IsInCar($scplayer, 99@)
goto_if_false @RYDER2_16067
Blip.Remove(119@)
119@ = Blip.AddForCar(99@)
Blip.SetAsFriendly(119@, True)
if 
  Blip.DoesExist(120@)
goto_if_false @RYDER2_16044
Blip.Remove(120@)

:RYDER2_16044
Text.Print('RY2_55', 5000, 1)
goto @RYDER2_16137

:RYDER2_16067
if 
  35@ >= 1
goto_if_false @RYDER2_16137
if 
  not Blip.DoesExist(120@)
goto_if_false @RYDER2_16137
Blip.Remove(120@)
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_16137
120@ = Blip.AddForCar(95@)
Blip.SetAsFriendly(120@, True)

:RYDER2_16137
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_17099
if 
  134@ == 0
goto_if_false @RYDER2_16409
42@ = Char.GetScriptTaskStatus($ryder, 1560)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_16409

:RYDER2_16200
if 
  not Streaming.HasAnimationLoaded("COLT45")
goto_if_false @RYDER2_16242
Streaming.RequestAnimation("COLT45")
wait 0
goto @RYDER2_16200

:RYDER2_16242
48@ = Sequence.Open()
Task.GoStraightToCoord(-1, 263@, 264@, 265@, MoveState.Walk, -2)
Task.AchieveHeading(-1, 90.0)
Task.StayInSamePlace(-1, True)
Task.PlayAnim(-1, "ROADCROSS", "PED", 4.0, False, True, True, False, -1)
Task.PlayAnim(-1, "ROADCROSS", "PED", 4.0, False, True, True, False, -1)
Task.PlayAnim(-1, "COLT45_RELOAD", "COLT45", 4.0, False, True, True, False, -1)
Sequence.Close(48@)
Char.PerformSequence($ryder, 48@)
Sequence.Clear(48@)

:RYDER2_16409
42@ = 0

:RYDER2_16416
if 
  25 > 42@
goto_if_false @RYDER2_16695
if 
  Object.DoesExist(62@(42@,25i))
goto_if_false @RYDER2_16681
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_16681
$x, $y, $z = Car.GetOffsetInWorldCoords(95@, 0.0, -2.61, 1.04)
if 
  Object.Locate3D(62@(42@,25i), $x, $y, $z, 0.71, 1.0, 1.12, False)
goto_if_false @RYDER2_16681
if 
  not Car.IsDead(99@)
goto_if_false @RYDER2_16681
if 
  Char.IsInCar($scplayer, 99@)
goto_if_false @RYDER2_16681
if 
  not Char.IsOnFoot($scplayer)
goto_if_false @RYDER2_16681
if 
  Char.IsSittingInCar($scplayer, 99@)
goto_if_false @RYDER2_16681
if 
  270@ == 0
goto_if_false @RYDER2_16640
270@ = 1

:RYDER2_16640
if 
  56@ > 500
goto_if_false @RYDER2_16681
set_lvar_int_to_lvar_int 272@ = 42@
271@ += 1
56@ = 0

:RYDER2_16681
42@ += 1
goto @RYDER2_16416

:RYDER2_16695
if 
  270@ == 0
goto_if_false @RYDER2_16720
56@ = 0

:RYDER2_16720
if 
  271@ <> 0
goto_if_false @RYDER2_17099
switch_start 271@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RYDER2_17099 {caseNum1} 1 {caseLabel1} @RYDER2_16801 {caseNum2} 2 {caseLabel2} @RYDER2_16924 {caseNum3} 3 {caseLabel3} @RYDER2_16964 {caseNum4} 4 {caseLabel4} @RYDER2_17049 {caseNum5} -1 {caseLabel5} @RYDER2_17099 {caseNum6} -1 {caseLabel6} @RYDER2_17099 {caseNum7} -1 {caseLabel7} @RYDER2_17099

:RYDER2_16801
if 
  not Car.IsDead(99@)
goto_if_false @RYDER2_16830
Char.ClearTasksImmediately($scplayer)
Char.WarpIntoCar($scplayer, 99@)

:RYDER2_16830
Hud.SwitchWidescreen(True)
Text.ClearHelp
Player.SetControl($player1, False)
Camera.SetFixedPosition(2767.481, -2410.593, 14.7201, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2768.133, -2411.346, 14.6336, SwitchType.JumpCut)
Object.Delete(62@(272@,25i))
127@ += 1
271@ += 1
goto @RYDER2_17099

:RYDER2_16924
if 
  56@ > 1000
goto_if_false @RYDER2_16957
56@ = 0
271@ += 1

:RYDER2_16957
goto @RYDER2_17099

:RYDER2_16964
if 
  56@ > 1000
goto_if_false @RYDER2_16997
271@ += 1
goto @RYDER2_17042

:RYDER2_16997
if 
  500 > 56@
goto_if_false @RYDER2_17042
if 
  not Car.IsDead(99@)
goto_if_false @RYDER2_17042
Car.SetForwardSpeed(99@, -5.0)

:RYDER2_17042
goto @RYDER2_17099

:RYDER2_17049
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
270@ = 0
271@ = 0
56@ = 0
269@ = 1
goto @RYDER2_17099

:RYDER2_17099
if 
  38@ == 7
goto_if_false @RYDER2_17460
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_17460
if and
  Char.HasBeenDamagedByWeapon($ryder, WeaponType.Pistol)
  57@ > 40000
goto_if_false @RYDER2_17460
273@ += 1
if 
  273@ > 4
goto_if_false @RYDER2_17193
273@ = 1

:RYDER2_17193
switch_start 273@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RYDER2_17448 {caseNum1} 1 {caseLabel1} @RYDER2_17256 {caseNum2} 2 {caseLabel2} @RYDER2_17304 {caseNum3} 3 {caseLabel3} @RYDER2_17352 {caseNum4} 4 {caseLabel4} @RYDER2_17400 {caseNum5} -1 {caseLabel5} @RYDER2_17448 {caseNum6} -1 {caseLabel6} @RYDER2_17448 {caseNum7} -1 {caseLabel7} @RYDER2_17448

:RYDER2_17256
set_var_text_label s$audio_string = 'RYD2_MA'
set_var_int_to_constant $audio_sound_file = 10638
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_17448

:RYDER2_17304
set_var_text_label s$audio_string = 'RYD2_MC'
set_var_int_to_constant $audio_sound_file = 10640
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_17448

:RYDER2_17352
set_var_text_label s$audio_string = 'RYD2_MD'
set_var_int_to_constant $audio_sound_file = 10641
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_17448

:RYDER2_17400
set_var_text_label s$audio_string = 'RYD2_ME'
set_var_int_to_constant $audio_sound_file = 10642
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_17448

:RYDER2_17448
Char.ClearLastWeaponDamage($ryder)
57@ = 0

:RYDER2_17460
if and
  is_int_lvar_greater_or_equal_to_int_lvar 127@ >= 200@
  271@ == 0
goto_if_false @RYDER2_17582
Hud.ClearCounter($ryder_health)
if 
  328@ <> -1
goto_if_false @RYDER2_17575
if 
  Object.DoesExist(62@(328@,25i))
goto_if_false @RYDER2_17575
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_17575
if 
  Char.IsHoldingObject($ryder, 62@(328@,25i))
goto_if_false @RYDER2_17575
Char.DropObject($ryder, True)

:RYDER2_17575
35@ = 99

:RYDER2_17582
if and
  55@ > 30000
  35@ <> 99
  1 > 202@
goto_if_false @RYDER2_18003
if and
  $audio_line_is_active == 0
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @RYDER2_18003
if 
  38@ == 5
goto_if_false @RYDER2_18003
if 
  Char.IsInArea3D($scplayer, 2775.781, -2406.821, 10.638, 2801.433, -2429.618, 15.3143, False)
goto_if_false @RYDER2_18003
42@ = 0
43@ = 0

:RYDER2_17717
if 
  25 > 42@
goto_if_false @RYDER2_17855
if 
  Object.DoesExist(62@(42@,25i))
goto_if_false @RYDER2_17841
if 
  not Object.HasBeenDamaged(62@(42@,25i))
goto_if_false @RYDER2_17841
if 
  Object.IsInArea3D(62@(42@,25i), 2774.308, -2405.28, 12.6803, 2801.607, -2430.073, 15.3896, False)
goto_if_false @RYDER2_17841
43@ += 1
42@ = 25

:RYDER2_17841
42@ += 1
goto @RYDER2_17717

:RYDER2_17855
if 
  43@ == 0
goto_if_false @RYDER2_18003
42@ = Math.RandomIntInRange(0, 2)
if 
  42@ == 0
goto_if_false @RYDER2_17948
set_var_text_label s$audio_string = 'RYD2_LH'
set_var_int_to_constant $audio_sound_file = 10636
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_17989

:RYDER2_17948
set_var_text_label s$audio_string = 'RYD2_LJ'
set_var_int_to_constant $audio_sound_file = 10637
start_new_script @AUDIOL $ryder 0 1 1 0 

:RYDER2_17989
55@ = 0
202@ += 1

:RYDER2_18003
if 
  35@ == 99
goto_if_false @RYDER2_18042
203@ = 1
35@ = 0
34@ += 1

:RYDER2_18042
gosub @RYDER2_39696
set_lvar_int_to_lvar_int 306@ = 127@
gosub @RYDER2_36655
return 

:RYDER2_18066
if 
  35@ == 0
goto_if_false @RYDER2_18228
278@ = 0
279@ = 0
280@ = 0
281@ = 0
42@ = 0

:RYDER2_18119
if 
  10 > 42@
goto_if_false @RYDER2_18162
282@(42@,10i) = 0
42@ += 1
goto @RYDER2_18119

:RYDER2_18162
292@ = 0
293@ = 0
304@ = 4
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_18207
Char.SetDecisionMaker($ryder, 237@)

:RYDER2_18207
49@ = 0
292@ = 0
35@ += 1

:RYDER2_18228
if 
  35@ == 1
goto_if_false @RYDER2_18514
296@ = 2765.999
297@ = -2419.777
298@ = 12.6396
World.ClearArea(296@, 297@, 298@, 1.5, True)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2761.119, -2421.157, 14.5289, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2762.002, -2420.691, 14.4766, SwitchType.JumpCut)
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_18441
Char.SetProofs($ryder, True, True, True, True, True)
Char.ClearTasksImmediately($ryder)
Char.SetCoordinates($ryder, 296@, 297@, 298@)
Char.SetHeading($ryder, 270.0)
Task.GoStraightToCoord($ryder, 2771.352, -2418.073, 12.644, MoveState.Run, 5000)

:RYDER2_18441
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_18500
set_var_text_label s$audio_string = 'RYD2_ND'
set_var_int_to_constant $audio_sound_file = 10647
start_new_script @AUDIOL $ryder 0 1 1 0 

:RYDER2_18500
TIMERA = 0
35@ += 1

:RYDER2_18514
if 
  35@ == 2
goto_if_false @RYDER2_18572
if and
  TIMERA > 2500
  $audio_line_is_active == 0
goto_if_false @RYDER2_18572
35@ += 1
TIMERA = 0

:RYDER2_18572
if 
  35@ == 3
goto_if_false @RYDER2_19015
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_18909
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_18909
Char.ClearTasksImmediately($ryder)
Char.AttachToCar($ryder, 95@, 0.0, -3.0, 0.9, 2, 180.0, WeaponType.Unarmed)
Hud.ClearCounter($6890)
Char.SetMaxHealth($ryder, 350)
Char.SetHealth($ryder, 350)
94@ = Object.Create(#NF_PED_COLL, 0.0, 0.0, 0.0)
Object.AttachToCar(94@, 95@, -0.5, -2.0, 0.0, 0.0, 0.0, 0.0)
Char.SetProofs($ryder, True, True, True, True, True)
Object.SetScale(94@, 0.5)
Object.SetProofs(94@, False, True, True, True, False)
299@ = 1000
292@ = 1
293@ = 1
48@ = Sequence.Open()
Task.LookAtChar(-1, $scplayer, 2000)
Task.PlayAnimNonInterruptable(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, True, 2000)
Task.PlayAnimNonInterruptable(-1, "VAN_STAND", "RYDER", 4.0, False, False, False, True, -1)
Sequence.Close(48@)
Char.PerformSequence($ryder, 48@)
Sequence.Clear(48@)

:RYDER2_18909
Camera.SetFixedPosition(2774.323, -2420.589, 14.8944, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2773.441, -2420.132, 14.7784, SwitchType.JumpCut)
set_var_text_label s$audio_string = 'RYD2_NB'
set_var_int_to_constant $audio_sound_file = 10645
start_new_script @AUDIOL $ryder 0 1 1 0 
TIMERA = 0
35@ += 1

:RYDER2_19015
if 
  35@ == 4
goto_if_false @RYDER2_19212
if and
  TIMERA > 2500
  $audio_line_is_active == 0
goto_if_false @RYDER2_19212
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Text.PrintNow('RY2_67', 5000, 1)
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_19167
Blip.Remove(119@)
Blip.Remove(119@)
119@ = Blip.AddForCar(95@)
Blip.SetAsFriendly(119@, True)
Car.SetProofs(95@, False, False, True, False, False)
Car.FreezePosition(95@, False)
Car.SetIsConsideredByPlayer(95@, True)
Car.LockDoors(95@, CarLock.Unlocked)

:RYDER2_19167
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_19198
Char.SetProofs($ryder, False, False, False, False, False)

:RYDER2_19198
35@ += 1
TIMERA = 0

:RYDER2_19212
if 
  35@ == 5
goto_if_false @RYDER2_19618
43@ = 0
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_19579
if 
  Char.IsInCar($scplayer, 95@)
goto_if_false @RYDER2_19290
43@ = 1
Camera.SetPlayerInCarMode(3)
goto @RYDER2_19579

:RYDER2_19290
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @RYDER2_19579
if 
  49@ == 0
goto_if_false @RYDER2_19579
if or
  TIMERA > 30000
  43@ == 1
goto_if_false @RYDER2_19579
42@ = Math.RandomIntInRange(0, 3)
switch_start 42@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_19565 {caseNum1} 0 {caseLabel1} @RYDER2_19421 {caseNum2} 1 {caseLabel2} @RYDER2_19469 {caseNum3} 2 {caseLabel3} @RYDER2_19517 {caseNum4} -1 {caseLabel4} @RYDER2_19565 {caseNum5} -1 {caseLabel5} @RYDER2_19565 {caseNum6} -1 {caseLabel6} @RYDER2_19565 {caseNum7} -1 {caseLabel7} @RYDER2_19565

:RYDER2_19421
set_var_text_label s$audio_string = 'RYD2_NA'
set_var_int_to_constant $audio_sound_file = 10644
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_19565

:RYDER2_19469
set_var_text_label s$audio_string = 'RYD2_NC'
set_var_int_to_constant $audio_sound_file = 10646
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_19565

:RYDER2_19517
set_var_text_label s$audio_string = 'RYD2_ND'
set_var_int_to_constant $audio_sound_file = 10647
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_19565

:RYDER2_19565
49@ = 1
TIMERA = 0

:RYDER2_19579
if 
  43@ == 1
goto_if_false @RYDER2_19618
TIMERA = 0
54@ = 0
35@ += 1

:RYDER2_19618
if 
  35@ == 6
goto_if_false @RYDER2_20628
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  $audio_line_is_active == 0
goto_if_false @RYDER2_20628
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_20628
if 
  Char.IsInCar($scplayer, 95@)
goto_if_false @RYDER2_20271
Car.FreezePosition(95@, False)
if 
  Blip.DoesExist(119@)
goto_if_false @RYDER2_19721
Blip.Remove(119@)

:RYDER2_19721
Blip.Remove(120@)
if 
  not Blip.DoesExist(120@)
goto_if_false @RYDER2_19778
120@ = Blip.AddForCoord(2454.626, -1972.534, 12.5617)
Text.PrintNow('RY2_66', 6000, 1)

:RYDER2_19778
TIMERA = 0
Streaming.RequestModel(470)
Streaming.RequestModel(287)

:RYDER2_19795
if or
  not Streaming.HasModelLoaded(470)
  not Streaming.HasModelLoaded(287)
goto_if_false @RYDER2_19827
wait 0
goto @RYDER2_19795

:RYDER2_19827
96@ = Car.Create(470, 2780.718, -2456.103, 12.6354)
Car.SetHeading(96@, 90.0)
Car.SetHeavy(96@, True)
Car.LockDoors(96@, CarLock.LockoutPlayerOnly)
Car.SetProofs(96@, True, True, True, True, True)
97@ = Car.Create(470, 2780.557, -2493.346, 12.6287)
Car.SetHeading(97@, 90.0)
Car.SetHeavy(97@, True)
Car.LockDoors(97@, CarLock.LockoutPlayerOnly)
Car.SetProofs(97@, True, True, True, True, True)
if 
  not Car.IsDead(96@)
goto_if_false @RYDER2_20092
113@ = Char.CreateInsideCar(96@, PedType.Mission1, 287)
Task.TogglePedThreatScanner(113@, False, False, False)
Car.SetDrivingStyle(96@, DrivingMode.AvoidCars)
Car.SetCruiseSpeed(96@, 50.0)
Car.SetProofs(96@, False, False, False, False, False)
Car.SetTraction(96@, 2.0)
Car.SetHeavy(96@, True)
Car.SetHealth(96@, 1300)
117@ = Char.CreateAsPassenger(96@, PedType.Mission1, 287, 0)
Char.SetRelationship(117@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(117@, 237@)
Char.GiveWeapon(117@, WeaponType.Pistol, 999999)

:RYDER2_20092
if 
  not Car.IsDead(97@)
goto_if_false @RYDER2_20233
114@ = Char.CreateInsideCar(97@, PedType.Mission1, 287)
Task.TogglePedThreatScanner(114@, False, False, False)
Car.SetDrivingStyle(97@, DrivingMode.AvoidCars)
Car.SetCruiseSpeed(97@, 50.0)
Car.SetProofs(97@, False, False, False, False, False)
Car.SetTraction(97@, 2.0)
Car.SetHeavy(97@, True)
Car.SetHealth(97@, 1300)
118@ = Char.CreateAsPassenger(97@, PedType.Mission1, 287, 0)
Char.SetRelationship(118@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(118@, 237@)
Char.GiveWeapon(118@, WeaponType.Pistol, 999999)

:RYDER2_20233
Streaming.MarkModelAsNoLongerNeeded(470)
Streaming.MarkModelAsNoLongerNeeded(287)
54@ = 0
49@ = 0
35@ += 1
goto @RYDER2_20628

:RYDER2_20271
if 
  54@ > 20000
goto_if_false @RYDER2_20628
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @RYDER2_20628
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_20628
if 
  Char.LocateAnyMeansChar3D($scplayer, $ryder, 5.0, 5.0, 3.0, False)
goto_if_false @RYDER2_20628
42@ = Math.RandomIntInRange(0, 4)
switch_start 42@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RYDER2_20621 {caseNum1} 0 {caseLabel1} @RYDER2_20429 {caseNum2} 1 {caseLabel2} @RYDER2_20477 {caseNum3} 2 {caseLabel3} @RYDER2_20525 {caseNum4} 3 {caseLabel4} @RYDER2_20573 {caseNum5} -1 {caseLabel5} @RYDER2_20621 {caseNum6} -1 {caseLabel6} @RYDER2_20621 {caseNum7} -1 {caseLabel7} @RYDER2_20621

:RYDER2_20429
set_var_text_label s$audio_string = 'RYD2_NA'
set_var_int_to_constant $audio_sound_file = 10644
start_new_script @AUDIOL $ryder 1 0 1 0 
goto @RYDER2_20621

:RYDER2_20477
set_var_text_label s$audio_string = 'RYD2_NB'
set_var_int_to_constant $audio_sound_file = 10645
start_new_script @AUDIOL $ryder 1 0 1 0 
goto @RYDER2_20621

:RYDER2_20525
set_var_text_label s$audio_string = 'RYD2_NC'
set_var_int_to_constant $audio_sound_file = 10646
start_new_script @AUDIOL $ryder 1 0 1 0 
goto @RYDER2_20621

:RYDER2_20573
set_var_text_label s$audio_string = 'RYD2_ND'
set_var_int_to_constant $audio_sound_file = 10647
start_new_script @AUDIOL $ryder 1 0 1 0 
goto @RYDER2_20621

:RYDER2_20621
54@ = 0

:RYDER2_20628
if 
  35@ == 7
goto_if_false @RYDER2_20742
248@, 249@, 250@ = Object.GetOffsetInWorldCoords(258@, 0.0, 0.0, 4.0)
251@, 252@, 253@ = Object.GetOffsetInWorldCoords(259@, 0.0, 0.0, 4.0)
if 
  Object.DoesExist(258@)
goto_if_false @RYDER2_20728
Audio.ReportMissionAudioEventAtObject(258@, 1035)

:RYDER2_20728
TIMERA = 0
35@ += 1

:RYDER2_20742
if 
  35@ == 8
goto_if_false @RYDER2_20883
if 
  TIMERA > 1000
goto_if_false @RYDER2_20883
if and
  Object.Slide(258@, 248@, 249@, 250@, 0.0, 0.0, 0.2, False)
  Object.Slide(259@, 251@, 252@, 253@, 0.0, 0.0, 0.15, False)
goto_if_false @RYDER2_20883
if 
  Object.DoesExist(258@)
goto_if_false @RYDER2_20876
Audio.ReportMissionAudioEventAtObject(258@, 1036)

:RYDER2_20876
35@ += 1

:RYDER2_20883
if 
  35@ == 9
goto_if_false @RYDER2_21209
if 
  not Car.IsDead(96@)
goto_if_false @RYDER2_20927
Car.SetForwardSpeed(96@, 20.0)

:RYDER2_20927
if 
  not Car.IsDead(97@)
goto_if_false @RYDER2_20953
Car.SetForwardSpeed(97@, 20.0)

:RYDER2_20953
49@ = 0
50@ = 0
54@ = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10649)
if 
  not Car.IsDead(96@)
goto_if_false @RYDER2_21053
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_21053
if 
  not Char.IsDead(113@)
goto_if_false @RYDER2_21053
Task.CarMission(113@, 96@, 95@, CarMission.RamPlayerFaraway, 50.0, DrivingMode.AvoidCars)

:RYDER2_21053
if 
  not Car.IsDead(97@)
goto_if_false @RYDER2_21121
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_21121
if 
  not Char.IsDead(114@)
goto_if_false @RYDER2_21121
Task.CarMission(114@, 97@, 95@, CarMission.BlockPlayerFaraway, 50.0, DrivingMode.AvoidCars)

:RYDER2_21121
if 
  not Car.IsDead(96@)
goto_if_false @RYDER2_21195
if 
  not Car.IsDead(97@)
goto_if_false @RYDER2_21195
StuckCarCheck.AddWithWarp(96@, 1.0, 2000, True, True, True, -1)
StuckCarCheck.AddWithWarp(97@, 1.0, 2000, True, True, True, -1)

:RYDER2_21195
35@ += 1
TIMERA = 0

:RYDER2_21209
if 
  35@ == 10
goto_if_false @RYDER2_21372
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @RYDER2_21372
42@ = Math.RandomIntInRange(0, 2)
if 
  42@ == 0
goto_if_false @RYDER2_21317
set_var_text_label s$audio_string = 'RYD2_OA'
set_var_int_to_constant $audio_sound_file = 10648
start_new_script @AUDIOL $ryder 0 1 2 0 
goto @RYDER2_21358

:RYDER2_21317
set_var_text_label s$audio_string = 'RYD2_OB'
set_var_int_to_constant $audio_sound_file = 10669
start_new_script @AUDIOL $ryder 0 1 2 0 

:RYDER2_21358
TIMERA = 0
35@ += 1

:RYDER2_21372
if 
  35@ == 11
goto_if_false @RYDER2_22103
if 
  TIMERA > 1000
goto_if_false @RYDER2_22103
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_22103
if 
  Char.IsInCar($scplayer, 95@)
goto_if_false @RYDER2_22103
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @RYDER2_22103
if 
  54@ > 1000
goto_if_false @RYDER2_22103
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_22103
switch_start 50@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @RYDER2_22096 {caseNum1} 0 {caseLabel1} @RYDER2_21624 {caseNum2} 1 {caseLabel2} @RYDER2_21690 {caseNum3} 2 {caseLabel3} @RYDER2_21756 {caseNum4} 3 {caseLabel4} @RYDER2_21822 {caseNum5} 4 {caseLabel5} @RYDER2_21888 {caseNum6} 5 {caseLabel6} @RYDER2_21961 {caseNum7} 6 {caseLabel7} @RYDER2_22027
switch_continued 7 {caseLabel1} @RYDER2_22082 {caseNum2} -1 {caseLabel2} @RYDER2_22096 {caseNum3} -1 {caseLabel3} @RYDER2_22096 {caseNum4} -1 {caseLabel4} @RYDER2_22096 {caseNum5} -1 {caseLabel5} @RYDER2_22096 {caseNum6} -1 {caseLabel6} @RYDER2_22096 {caseNum7} -1 {caseLabel7} @RYDER2_22096 {caseNum8} -1 {caseLabel8} @RYDER2_22096 {caseNum9} -1 {caseLabel9} @RYDER2_22096

:RYDER2_21624
set_var_text_label s$audio_string = 'RYD2_PA'
set_var_int_to_constant $audio_sound_file = 10649
start_new_script @AUDIOL $ryder 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10686)
50@ += 1
goto @RYDER2_22096

:RYDER2_21690
set_var_text_label s$audio_string = 'RYD2_PB'
set_var_int_to_constant $audio_sound_file = 10686
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10650)
50@ += 1
goto @RYDER2_22096

:RYDER2_21756
set_var_text_label s$audio_string = 'RYD2_PC'
set_var_int_to_constant $audio_sound_file = 10650
start_new_script @AUDIOL $ryder 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10687)
50@ += 1
goto @RYDER2_22096

:RYDER2_21822
set_var_text_label s$audio_string = 'RYD2_PD'
set_var_int_to_constant $audio_sound_file = 10687
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10688)
50@ += 1
goto @RYDER2_22096

:RYDER2_21888
set_var_text_label s$audio_string = 'RYD2_PE'
set_var_int_to_constant $audio_sound_file = 10688
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10651)
50@ += 1
279@ += 1
goto @RYDER2_22096

:RYDER2_21961
set_var_text_label s$audio_string = 'RYD2_PF'
set_var_int_to_constant $audio_sound_file = 10651
start_new_script @AUDIOL $ryder 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10652)
50@ += 1
goto @RYDER2_22096

:RYDER2_22027
set_var_text_label s$audio_string = 'RYD2_PG'
set_var_int_to_constant $audio_sound_file = 10652
start_new_script @AUDIOL $ryder 0 1 1 1 
50@ += 1
goto @RYDER2_22096

:RYDER2_22082
35@ += 1
goto @RYDER2_22096

:RYDER2_22096
54@ = 0

:RYDER2_22103
if 
  35@ == 12
goto_if_false @RYDER2_22128
35@ += 1

:RYDER2_22128
if 
  35@ == 13
goto_if_false @RYDER2_22206
Text.PrintHelp('RY2_72')
293@ = 0
TIMERA = 0
193@ = 0
194@ = 0
195@ = 0
49@ = 0
35@ += 1

:RYDER2_22206
if 
  35@ == 14
goto_if_false @RYDER2_24265
if 
  193@ == 0
goto_if_false @RYDER2_22291
if 
  TIMERA > 10000
goto_if_false @RYDER2_22291
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_22291
Car.SetCanBurstTires(95@, True)
193@ = 1

:RYDER2_22291
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_22409
if 
  Char.IsInCar($scplayer, 95@)
goto_if_false @RYDER2_22409
if 
  Car.Locate3D(95@, 2454.626, -1972.534, 12.5617, 4.0, 4.0, 4.0, True)
goto_if_false @RYDER2_22409
if 
  Car.IsOnAllWheels(95@)
goto_if_false @RYDER2_22409
Player.SetControl($player1, False)
Blip.Remove(120@)
35@ = 99

:RYDER2_22409
if 
is_ps2_keyboard_key_pressed 88
goto_if_false @RYDER2_22460
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_22460
Car.SetCoordinates(95@, 2454.626, -1972.534, 12.5617)

:RYDER2_22460
if 
  195@ == 0
goto_if_false @RYDER2_22623
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_22623
if 
  Car.Locate2D(95@, 2454.626, -1972.534, 40.0, 40.0, False)
goto_if_false @RYDER2_22623
if 
  Car.DoesExist(96@)
goto_if_false @RYDER2_22553
Car.MarkAsNoLongerNeeded(96@)

:RYDER2_22553
if 
  Char.DoesExist(113@)
goto_if_false @RYDER2_22574
Char.MarkAsNoLongerNeeded(113@)

:RYDER2_22574
if 
  Car.DoesExist(97@)
goto_if_false @RYDER2_22595
Car.MarkAsNoLongerNeeded(97@)

:RYDER2_22595
if 
  Char.DoesExist(114@)
goto_if_false @RYDER2_22616
Char.MarkAsNoLongerNeeded(114@)

:RYDER2_22616
195@ += 1

:RYDER2_22623
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @RYDER2_24063
if 
  TIMERA > 20000
goto_if_false @RYDER2_24063
if 
  194@ <> 99
goto_if_false @RYDER2_24063
if 
  54@ > 1000
goto_if_false @RYDER2_24063
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_24063
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_24063
if 
  Char.LocateAnyMeansChar3D($scplayer, $ryder, 15.0, 15.0, 5.0, False)
goto_if_false @RYDER2_24063
switch_start 194@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @RYDER2_24063 {caseNum1} 0 {caseLabel1} @RYDER2_22892 {caseNum2} 1 {caseLabel2} @RYDER2_22965 {caseNum3} 2 {caseLabel3} @RYDER2_23089 {caseNum4} 3 {caseLabel4} @RYDER2_23213 {caseNum5} 4 {caseLabel5} @RYDER2_23337 {caseNum6} 5 {caseLabel6} @RYDER2_23461 {caseNum7} 6 {caseLabel7} @RYDER2_23585
switch_continued 7 {caseLabel1} @RYDER2_23709 {caseNum2} 8 {caseLabel2} @RYDER2_23833 {caseNum3} 9 {caseLabel3} @RYDER2_23957 {caseNum4} -1 {caseLabel4} @RYDER2_24063 {caseNum5} -1 {caseLabel5} @RYDER2_24063 {caseNum6} -1 {caseLabel6} @RYDER2_24063 {caseNum7} -1 {caseLabel7} @RYDER2_24063 {caseNum8} -1 {caseLabel8} @RYDER2_24063 {caseNum9} -1 {caseLabel9} @RYDER2_24063

:RYDER2_22892
set_var_text_label s$audio_string = 'RYD2_SA'
set_var_int_to_constant $audio_sound_file = 10600
start_new_script @AUDIOL $scplayer 0 1 1 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10601)
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_22965
set_var_text_label s$audio_string = 'RYD2_SB'
set_var_int_to_constant $audio_sound_file = 10601
if 
  49@ == 0
goto_if_false @RYDER2_23031
start_new_script @AUDIOL $scplayer 0 1 2 1 
goto @RYDER2_23057

:RYDER2_23031
start_new_script @AUDIOL $scplayer 0 1 2 0 
49@ = 0

:RYDER2_23057
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10658)
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23089
set_var_text_label s$audio_string = 'RYD2_SC'
set_var_int_to_constant $audio_sound_file = 10658
if 
  49@ == 0
goto_if_false @RYDER2_23155
start_new_script @AUDIOL $ryder 0 1 1 1 
goto @RYDER2_23181

:RYDER2_23155
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 0

:RYDER2_23181
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10602)
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23213
set_var_text_label s$audio_string = 'RYD2_SD'
set_var_int_to_constant $audio_sound_file = 10602
if 
  49@ == 0
goto_if_false @RYDER2_23279
start_new_script @AUDIOL $scplayer 0 1 2 1 
goto @RYDER2_23305

:RYDER2_23279
start_new_script @AUDIOL $scplayer 0 1 2 0 
49@ = 0

:RYDER2_23305
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10659)
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23337
set_var_text_label s$audio_string = 'RYD2_SE'
set_var_int_to_constant $audio_sound_file = 10659
if 
  49@ == 0
goto_if_false @RYDER2_23403
start_new_script @AUDIOL $ryder 0 1 1 1 
goto @RYDER2_23429

:RYDER2_23403
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 0

:RYDER2_23429
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10660)
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23461
set_var_text_label s$audio_string = 'RYD2_SF'
set_var_int_to_constant $audio_sound_file = 10660
if 
  49@ == 0
goto_if_false @RYDER2_23527
start_new_script @AUDIOL $ryder 0 1 2 1 
goto @RYDER2_23553

:RYDER2_23527
start_new_script @AUDIOL $ryder 0 1 2 0 
49@ = 0

:RYDER2_23553
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10661)
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23585
set_var_text_label s$audio_string = 'RYD2_SG'
set_var_int_to_constant $audio_sound_file = 10661
if 
  49@ == 0
goto_if_false @RYDER2_23651
start_new_script @AUDIOL $ryder 0 1 1 1 
goto @RYDER2_23677

:RYDER2_23651
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 0

:RYDER2_23677
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10603)
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23709
set_var_text_label s$audio_string = 'RYD2_SH'
set_var_int_to_constant $audio_sound_file = 10603
if 
  49@ == 0
goto_if_false @RYDER2_23775
start_new_script @AUDIOL $scplayer 0 1 2 1 
goto @RYDER2_23801

:RYDER2_23775
start_new_script @AUDIOL $scplayer 0 1 2 0 
49@ = 0

:RYDER2_23801
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10604)
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23833
set_var_text_label s$audio_string = 'RYD2_SJ'
set_var_int_to_constant $audio_sound_file = 10604
if 
  49@ == 0
goto_if_false @RYDER2_23899
start_new_script @AUDIOL $scplayer 0 1 1 1 
goto @RYDER2_23925

:RYDER2_23899
start_new_script @AUDIOL $scplayer 0 1 1 0 
49@ = 0

:RYDER2_23925
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10662)
194@ += 1
54@ = 0
goto @RYDER2_24063

:RYDER2_23957
set_var_text_label s$audio_string = 'RYD2_SK'
set_var_int_to_constant $audio_sound_file = 10662
if 
  49@ == 0
goto_if_false @RYDER2_24023
start_new_script @AUDIOL $ryder 0 1 2 1 
goto @RYDER2_24049

:RYDER2_24023
start_new_script @AUDIOL $ryder 0 1 2 0 
49@ = 0

:RYDER2_24049
194@ = 99
goto @RYDER2_24063

:RYDER2_24063
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @RYDER2_24265
if and
  194@ <= 0
  99 < 194@
goto_if_false @RYDER2_24265
if 
  304@ == 0
goto_if_false @RYDER2_24265
293@ = 1
42@ = Math.RandomIntInRange(0, 2)
if 
  42@ == 0
goto_if_false @RYDER2_24210
set_var_text_label s$audio_string = 'RYD2_RA'
set_var_int_to_constant $audio_sound_file = 10656
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 1
goto @RYDER2_24258

:RYDER2_24210
set_var_text_label s$audio_string = 'RYD2_RB'
set_var_int_to_constant $audio_sound_file = 10657
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 1

:RYDER2_24258
304@ -= 1

:RYDER2_24265
if 
  35@ == 99
goto_if_false @RYDER2_24329
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_24329
if 
  Car.IsStopped(95@)
goto_if_false @RYDER2_24329
35@ = 0
34@ += 1

:RYDER2_24329
gosub @RYDER2_36655
if 
  Object.DoesExist(94@)
goto_if_false @RYDER2_24610
42@ = Object.GetHealth(94@)
if 
  is_int_lvar_greater_than_int_lvar 299@ > 42@
goto_if_false @RYDER2_24597
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_24597
42@ = Char.GetHealth($ryder)
42@ += -17
if 
  1 > 42@
goto_if_false @RYDER2_24435
42@ = 1

:RYDER2_24435
Char.SetHealth($ryder, 42@)
if 
  42@ == 1
goto_if_false @RYDER2_24466
Task.Die($ryder)

:RYDER2_24466
$x, $y, $z = Char.GetOffsetInWorldCoords($ryder, 0.5, 0.2, 0.4)
207@ = Math.RandomFloatInRange(-1.0, 1.0)
208@ = Math.RandomFloatInRange(-1.0, 1.0)
209@ = Math.RandomFloatInRange(-1.0, 1.0)
if 
  Char.DoesExist($ryder)
goto_if_false @RYDER2_24597
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_24597
Fx.AddBlood($x, $y, $z, 207@, 208@, 209@, 20, $ryder)

:RYDER2_24597
Object.ClearLastWeaponDamage(94@)
299@ = Object.GetHealth(94@)

:RYDER2_24610
if 
  292@ == 1
goto_if_false @RYDER2_26942
if 
  293@ == 0
goto_if_false @RYDER2_24767
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_24767
if 
  280@ == 0
goto_if_false @RYDER2_24743
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Leftshock)
goto_if_false @RYDER2_24736
280@ = 1
if or
  279@ == 0
  279@ == 3
goto_if_false @RYDER2_24736
279@ += 1

:RYDER2_24736
goto @RYDER2_24767

:RYDER2_24743
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Leftshock)
goto_if_false @RYDER2_24767
280@ = 0

:RYDER2_24767
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_24833
$heading = Car.GetHeading(95@)
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_24825
$heading += 180.0
Char.SetHeading($ryder, $heading)

:RYDER2_24825
274@ = Car.GetRoll(95@)

:RYDER2_24833
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_24857
275@ = Car.GetHeading(95@)

:RYDER2_24857
set_lvar_float_to_lvar_float 277@ = 275@
sub_float_lvar_from_float_lvar 277@ -= 276@
if 
  -180.0 > 277@
goto_if_false @RYDER2_24904
277@ += 360.0

:RYDER2_24904
if 
  277@ > 180.0
goto_if_false @RYDER2_24935
277@ += -360.0

:RYDER2_24935
set_lvar_float_to_lvar_float 276@ = 275@
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_26942
if 
  279@ == 0
goto_if_false @RYDER2_25599
if 
  -60.0 > 274@
goto_if_false @RYDER2_25069
if 
  278@ <> 1
goto_if_false @RYDER2_25062
Task.PlayAnimNonInterruptable($ryder, "VAN_FALL_L", "RYDER", 4.0, False, False, False, True, -1)
278@ = 1

:RYDER2_25062
goto @RYDER2_25592

:RYDER2_25069
if 
  274@ > 60.0
goto_if_false @RYDER2_25161
if 
  278@ <> 2
goto_if_false @RYDER2_25154
Task.PlayAnimNonInterruptable($ryder, "VAN_FALL_R", "RYDER", 4.0, False, False, False, True, -1)
278@ = 2

:RYDER2_25154
goto @RYDER2_25592

:RYDER2_25161
if 
  -5.0 > 274@
goto_if_false @RYDER2_25253
if 
  278@ <> 3
goto_if_false @RYDER2_25246
Task.PlayAnimNonInterruptable($ryder, "VAN_LEAN_L", "RYDER", 4.0, False, False, False, True, -1)
278@ = 3

:RYDER2_25246
goto @RYDER2_25592

:RYDER2_25253
if 
  274@ > 5.0
goto_if_false @RYDER2_25345
if 
  278@ <> 4
goto_if_false @RYDER2_25338
Task.PlayAnimNonInterruptable($ryder, "VAN_LEAN_R", "RYDER", 4.0, False, False, False, True, -1)
278@ = 4

:RYDER2_25338
goto @RYDER2_25592

:RYDER2_25345
if 
  -2.0 > 277@
goto_if_false @RYDER2_25437
if 
  278@ <> 4
goto_if_false @RYDER2_25430
Task.PlayAnimNonInterruptable($ryder, "VAN_LEAN_R", "RYDER", 4.0, False, False, False, True, -1)
278@ = 4

:RYDER2_25430
goto @RYDER2_25592

:RYDER2_25437
if 
  277@ > 2.0
goto_if_false @RYDER2_25529
if 
  278@ <> 3
goto_if_false @RYDER2_25522
Task.PlayAnimNonInterruptable($ryder, "VAN_LEAN_L", "RYDER", 4.0, False, False, False, True, -1)
278@ = 3

:RYDER2_25522
goto @RYDER2_25592

:RYDER2_25529
if 
  278@ <> 0
goto_if_false @RYDER2_25592
Task.PlayAnimNonInterruptable($ryder, "VAN_STAND", "RYDER", 4.0, False, False, False, True, -1)
278@ = 0

:RYDER2_25592
goto @RYDER2_26942

:RYDER2_25599
if 
  279@ == 1
goto_if_false @RYDER2_25819
if 
  278@ <> 5
goto_if_false @RYDER2_25690
Task.PlayAnimNonInterruptable($ryder, "VAN_PICKUP_S", "RYDER", 1000.0, False, False, False, False, -1)
278@ = 5
goto @RYDER2_25819

:RYDER2_25690
42@ = Char.GetScriptTaskStatus($ryder, 2066)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_25819
$x, $y, $z = Char.GetCoordinates($ryder)
281@ = Object.Create(#CM_BOX, $x, $y, $z)
Task.PickUpObject($ryder, 281@, -0.096, 0.246, 0.142, 6, 16, "NULL", "NULL", 1)
Object.SetCollision(281@, False)
306@ -= 1
304@ -= 1
279@ += 1

:RYDER2_25819
if 
  279@ == 2
goto_if_false @RYDER2_25946
if 
  278@ <> 6
goto_if_false @RYDER2_25910
Task.PlayAnimNonInterruptable($ryder, "VAN_PICKUP_E", "RYDER", 1000.0, False, False, False, False, -1)
278@ = 6
goto @RYDER2_25946

:RYDER2_25910
42@ = Char.GetScriptTaskStatus($ryder, 2066)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_25946
279@ += 1

:RYDER2_25946
if 
  279@ == 3
goto_if_false @RYDER2_26617
if 
  -60.0 > 274@
goto_if_false @RYDER2_26070
if 
  278@ <> 1
goto_if_false @RYDER2_26063
gosub @RYDER2_39505
Task.PlayAnimNonInterruptable($ryder, "VAN_FALL_L", "RYDER", 4.0, False, False, False, True, -1)
278@ = 1
279@ = 0

:RYDER2_26063
goto @RYDER2_26617

:RYDER2_26070
if 
  274@ > 60.0
goto_if_false @RYDER2_26176
if 
  278@ <> 2
goto_if_false @RYDER2_26169
gosub @RYDER2_39505
Task.PlayAnimNonInterruptable($ryder, "VAN_FALL_R", "RYDER", 4.0, False, False, False, True, -1)
278@ = 2
279@ = 0

:RYDER2_26169
goto @RYDER2_26617

:RYDER2_26176
if 
  -5.0 > 274@
goto_if_false @RYDER2_26269
if 
  278@ <> 7
goto_if_false @RYDER2_26262
Task.PlayAnimNonInterruptable($ryder, "VAN_CRATE_R", "RYDER", 4.0, False, False, False, True, -1)
278@ = 7

:RYDER2_26262
goto @RYDER2_26617

:RYDER2_26269
if 
  274@ > 5.0
goto_if_false @RYDER2_26362
if 
  278@ <> 8
goto_if_false @RYDER2_26355
Task.PlayAnimNonInterruptable($ryder, "VAN_CRATE_L", "RYDER", 4.0, False, False, False, True, -1)
278@ = 8

:RYDER2_26355
goto @RYDER2_26617

:RYDER2_26362
if 
  -2.0 > 277@
goto_if_false @RYDER2_26455
if 
  278@ <> 7
goto_if_false @RYDER2_26448
Task.PlayAnimNonInterruptable($ryder, "VAN_CRATE_R", "RYDER", 4.0, False, False, False, True, -1)
278@ = 7

:RYDER2_26448
goto @RYDER2_26617

:RYDER2_26455
if 
  277@ > 2.0
goto_if_false @RYDER2_26548
if 
  278@ <> 8
goto_if_false @RYDER2_26541
Task.PlayAnimNonInterruptable($ryder, "VAN_CRATE_L", "RYDER", 4.0, False, False, False, True, -1)
278@ = 8

:RYDER2_26541
goto @RYDER2_26617

:RYDER2_26548
if 
  278@ <> 9
goto_if_false @RYDER2_26617
Task.PlayAnimNonInterruptable($ryder, "VAN_STAND_CRATE", "RYDER", 4.0, False, False, False, True, -1)
278@ = 9

:RYDER2_26617
if 
  279@ == 4
goto_if_false @RYDER2_26786
if 
  278@ <> 10
goto_if_false @RYDER2_26705
Task.PlayAnimNonInterruptable($ryder, "VAN_THROW", "RYDER", 1000.0, False, False, False, False, -1)
278@ = 10
goto @RYDER2_26786

:RYDER2_26705
if 
  Char.IsPlayingAnim($ryder, "VAN_THROW")
goto_if_false @RYDER2_26786
45@ = Char.GetAnimCurrentTime($ryder, "VAN_THROW")
if 
  45@ > 0.292
goto_if_false @RYDER2_26786
gosub @RYDER2_39505
279@ += 1

:RYDER2_26786
if 
  279@ == 5
goto_if_false @RYDER2_26942
42@ = Char.GetScriptTaskStatus($ryder, 2066)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_26942
if 
  278@ <> 0
goto_if_false @RYDER2_26896
Task.PlayAnimNonInterruptable($ryder, "VAN_STAND", "RYDER", 1000.0, False, False, False, True, -1)
278@ = 0

:RYDER2_26896
if 
  304@ > 0
goto_if_false @RYDER2_26928
279@ = 1
goto @RYDER2_26942

:RYDER2_26928
279@ = 0
293@ = 1

:RYDER2_26942
if 
  292@ <> 0
goto_if_false @RYDER2_27019
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_27019
42@ = Char.GetHealth($ryder)
if 
  100 > 42@
goto_if_false @RYDER2_27019
Char.DetachFromCar($ryder)
Task.Die($ryder)
292@ = 0

:RYDER2_27019
42@ = 0

:RYDER2_27026
if 
  5 > 42@
goto_if_false @RYDER2_27383
if 
  Object.DoesExist(282@(42@,10i))
goto_if_false @RYDER2_27369
if 
  Object.DoesExist(282@(42@,10i))
goto_if_false @RYDER2_27163
if 
  not Car.IsDead(96@)
goto_if_false @RYDER2_27163
if 
  Car.IsTouchingObject(96@, 282@(42@,10i))
goto_if_false @RYDER2_27163
$x, $y, $z = Object.GetCoordinates(282@(42@,10i))
Object.Delete(282@(42@,10i))
Fx.AddExplosion($x, $y, $z, ExplosionType.Small)

:RYDER2_27163
if 
  Object.DoesExist(282@(42@,10i))
goto_if_false @RYDER2_27262
if 
  not Car.IsDead(97@)
goto_if_false @RYDER2_27262
if 
  Car.IsTouchingObject(97@, 282@(42@,10i))
goto_if_false @RYDER2_27262
$x, $y, $z = Object.GetCoordinates(282@(42@,10i))
Object.Delete(282@(42@,10i))
Fx.AddExplosion($x, $y, $z, ExplosionType.Small)

:RYDER2_27262
if 
  Object.DoesExist(282@(42@,10i))
goto_if_false @RYDER2_27369
43@ = Object.GetHealth(282@(42@,10i))
if 
  950 > 43@
goto_if_false @RYDER2_27369
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_27369
$x, $y, $z = Object.GetCoordinates(282@(42@,10i))
Object.Delete(282@(42@,10i))
Fx.AddExplosion($x, $y, $z, ExplosionType.Grenade)

:RYDER2_27369
42@ += 1
goto @RYDER2_27026

:RYDER2_27383
if 
  35@ > 4
goto_if_false @RYDER2_27552
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_27552
if 
  Char.IsInCar($scplayer, 95@)
goto_if_false @RYDER2_27500
if 
  Blip.DoesExist(119@)
goto_if_false @RYDER2_27457
Blip.Remove(119@)

:RYDER2_27457
if 
  not Blip.DoesExist(120@)
goto_if_false @RYDER2_27493
120@ = Blip.AddForCoord(2454.626, -1972.534, 12.5617)

:RYDER2_27493
goto @RYDER2_27552

:RYDER2_27500
if 
  not Blip.DoesExist(119@)
goto_if_false @RYDER2_27531
119@ = Blip.AddForCar(95@)
Blip.SetAsFriendly(119@, True)

:RYDER2_27531
if 
  Blip.DoesExist(120@)
goto_if_false @RYDER2_27552
Blip.Remove(120@)

:RYDER2_27552
if 
  35@ >= 13
goto_if_false @RYDER2_27978
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_27978
if 
  not Char.IsInCar($scplayer, 95@)
goto_if_false @RYDER2_27978
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @RYDER2_27978
if and
  194@ <= 0
  99 < 194@
goto_if_false @RYDER2_27978
if 
  54@ > 15000
goto_if_false @RYDER2_27978
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_27978
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_27978
if 
  Char.LocateAnyMeansChar3D($scplayer, $ryder, 5.0, 5.0, 5.0, False)
goto_if_false @RYDER2_27978
42@ = Math.RandomIntInRange(0, 3)
switch_start 42@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_27971 {caseNum1} 0 {caseLabel1} @RYDER2_27806 {caseNum2} 1 {caseLabel2} @RYDER2_27861 {caseNum3} 2 {caseLabel3} @RYDER2_27916 {caseNum4} -1 {caseLabel4} @RYDER2_27971 {caseNum5} -1 {caseLabel5} @RYDER2_27971 {caseNum6} -1 {caseLabel6} @RYDER2_27971 {caseNum7} -1 {caseLabel7} @RYDER2_27971

:RYDER2_27806
set_var_text_label s$audio_string = 'RYD2_QA'
set_var_int_to_constant $audio_sound_file = 10653
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 1
goto @RYDER2_27971

:RYDER2_27861
set_var_text_label s$audio_string = 'RYD2_QB'
set_var_int_to_constant $audio_sound_file = 10654
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 1
goto @RYDER2_27971

:RYDER2_27916
set_var_text_label s$audio_string = 'RYD2_QC'
set_var_int_to_constant $audio_sound_file = 10655
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 1
goto @RYDER2_27971

:RYDER2_27971
54@ = 0

:RYDER2_27978
if 
  38@ == 4
goto_if_false @RYDER2_28531
if 
  Car.DoesExist(96@)
goto_if_false @RYDER2_28531
if 
  not Car.IsDead(96@)
goto_if_false @RYDER2_28531
if 
  not Char.IsDead(113@)
goto_if_false @RYDER2_28100
if 
  not Char.IsInCar(113@, 96@)
goto_if_false @RYDER2_28100
42@ = Char.GetScriptTaskStatus(113@, 1506)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28100
Task.KillCharOnFoot(113@, $scplayer)

:RYDER2_28100
if 
  not Char.IsDead(117@)
goto_if_false @RYDER2_28531
if 
  Char.IsInCar(117@, 96@)
goto_if_false @RYDER2_28494
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_28487
if 
  Char.IsInCar($scplayer, 95@)
goto_if_false @RYDER2_28323
45@ = Car.GetSpeed(95@)
if 
  5.0 > 45@
goto_if_false @RYDER2_28316
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_28316
if 
  Char.LocateAnyMeansChar3D(117@, $ryder, 40.0, 40.0, 20.0, False)
goto_if_false @RYDER2_28316
42@ = Char.GetScriptTaskStatus(117@, 1811)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28316
Task.DriveBy(117@, -1, 95@, 0.0, 0.0, 0.0, 100.0, DriveByType.Ai, True, 40)

:RYDER2_28316
goto @RYDER2_28487

:RYDER2_28323
if 
  not Char.IsInCar($scplayer, 96@)
goto_if_false @RYDER2_28450
if 
  Char.LocateAnyMeansChar3D(117@, $scplayer, 40.0, 40.0, 20.0, False)
goto_if_false @RYDER2_28443
42@ = Char.GetScriptTaskStatus(117@, 1811)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28443
Task.DriveBy(117@, $scplayer, -1, 0.0, 0.0, 0.0, 100.0, DriveByType.Ai, True, 40)

:RYDER2_28443
goto @RYDER2_28487

:RYDER2_28450
42@ = Char.GetScriptTaskStatus(117@, 1506)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28487
Task.KillCharOnFoot(117@, $scplayer)

:RYDER2_28487
goto @RYDER2_28531

:RYDER2_28494
42@ = Char.GetScriptTaskStatus(117@, 1506)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28531
Task.KillCharOnFoot(117@, $scplayer)

:RYDER2_28531
if 
  38@ == 8
goto_if_false @RYDER2_29084
if 
  Car.DoesExist(97@)
goto_if_false @RYDER2_29084
if 
  not Car.IsDead(97@)
goto_if_false @RYDER2_29084
if 
  not Char.IsDead(114@)
goto_if_false @RYDER2_28653
if 
  not Char.IsInCar(114@, 97@)
goto_if_false @RYDER2_28653
42@ = Char.GetScriptTaskStatus(114@, 1506)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28653
Task.KillCharOnFoot(114@, $scplayer)

:RYDER2_28653
if 
  not Char.IsDead(118@)
goto_if_false @RYDER2_29084
if 
  Char.IsInCar(118@, 97@)
goto_if_false @RYDER2_29047
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_29040
if 
  Char.IsInCar($scplayer, 95@)
goto_if_false @RYDER2_28876
45@ = Car.GetSpeed(95@)
if 
  5.0 > 45@
goto_if_false @RYDER2_28869
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_28869
if 
  Char.LocateAnyMeansChar3D(118@, $ryder, 40.0, 40.0, 20.0, False)
goto_if_false @RYDER2_28869
42@ = Char.GetScriptTaskStatus(118@, 1811)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28869
Task.DriveBy(118@, -1, 95@, 0.0, 0.0, 0.0, 100.0, DriveByType.Ai, True, 60)

:RYDER2_28869
goto @RYDER2_29040

:RYDER2_28876
if 
  not Char.IsInCar($scplayer, 97@)
goto_if_false @RYDER2_29003
if 
  Char.LocateAnyMeansChar3D(118@, $scplayer, 40.0, 40.0, 20.0, False)
goto_if_false @RYDER2_28996
42@ = Char.GetScriptTaskStatus(118@, 1811)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28996
Task.DriveBy(118@, $scplayer, -1, 0.0, 0.0, 0.0, 100.0, DriveByType.Ai, True, 60)

:RYDER2_28996
goto @RYDER2_29040

:RYDER2_29003
42@ = Char.GetScriptTaskStatus(118@, 1506)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_29040
Task.KillCharOnFoot(118@, $scplayer)

:RYDER2_29040
goto @RYDER2_29084

:RYDER2_29047
42@ = Char.GetScriptTaskStatus(118@, 1506)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_29084
Task.KillCharOnFoot(118@, $scplayer)

:RYDER2_29084
if and
  38@ == 0
  35@ > 10
goto_if_false @RYDER2_29564
if 
  Car.DoesExist(96@)
goto_if_false @RYDER2_29564
if 
  not Car.IsDead(96@)
goto_if_false @RYDER2_29564
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_29564
$x, $y, $z = Car.GetOffsetInWorldCoords(95@, 0.0, -20.0, 0.0)
if 
  not Car.Locate2D(96@, $x, $y, 40.0, 40.0, False)
goto_if_false @RYDER2_29564
if 
  not Car.IsOnScreen(96@)
goto_if_false @RYDER2_29564
42@ = 1
43@ = 0

:RYDER2_29250
if 
  43@ == 0
goto_if_false @RYDER2_29449
207@, 208@, 209@ = Path.GetNthClosestCarNode($x, $y, $z, 42@)
if and
  not Camera.IsPointOnScreen(207@, 208@, 209@, 5.0)
  not World.IsPointObscuredByAMissionEntity(207@, 208@, 209@, 5.0, 5.0, 5.0)
goto_if_false @RYDER2_29410
45@ = Math.GetDistanceBetweenCoords2D($x, $y, 207@, 208@)
if 
  45@ > 30.0
goto_if_false @RYDER2_29396
43@ = -1
goto @RYDER2_29403

:RYDER2_29396
43@ = 1

:RYDER2_29403
goto @RYDER2_29442

:RYDER2_29410
42@ += 1
if 
  42@ > 10
goto_if_false @RYDER2_29442
43@ = -1

:RYDER2_29442
goto @RYDER2_29250

:RYDER2_29449
if 
  43@ == 1
goto_if_false @RYDER2_29564
$x, $y, $z = Car.GetCoordinates(95@)
set_lvar_float_to_var_float 294@ = $x
sub_float_lvar_from_float_lvar 294@ -= 207@
set_lvar_float_to_var_float 295@ = $y
sub_float_lvar_from_float_lvar 295@ -= 208@
$heading = Math.GetHeadingFromVector2D(294@, 295@)
World.ClearArea(207@, 208@, 209@, 5.0, True)
Car.SetCoordinates(96@, 207@, 208@, 209@)
Car.SetHeading(96@, $heading)

:RYDER2_29564
if and
  38@ == 1
  35@ > 10
goto_if_false @RYDER2_30044
if 
  Car.DoesExist(97@)
goto_if_false @RYDER2_30044
if 
  not Car.IsDead(97@)
goto_if_false @RYDER2_30044
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_30044
$x, $y, $z = Car.GetOffsetInWorldCoords(95@, 0.0, -20.0, 0.0)
if 
  not Car.Locate2D(97@, $x, $y, 40.0, 40.0, False)
goto_if_false @RYDER2_30044
if 
  not Car.IsOnScreen(97@)
goto_if_false @RYDER2_30044
42@ = 1
43@ = 0

:RYDER2_29730
if 
  43@ == 0
goto_if_false @RYDER2_29929
207@, 208@, 209@ = Path.GetNthClosestCarNode($x, $y, $z, 42@)
if and
  not Camera.IsPointOnScreen(207@, 208@, 209@, 5.0)
  not World.IsPointObscuredByAMissionEntity(207@, 208@, 209@, 5.0, 5.0, 5.0)
goto_if_false @RYDER2_29890
45@ = Math.GetDistanceBetweenCoords2D($x, $y, 207@, 208@)
if 
  45@ > 30.0
goto_if_false @RYDER2_29876
43@ = -1
goto @RYDER2_29883

:RYDER2_29876
43@ = 1

:RYDER2_29883
goto @RYDER2_29922

:RYDER2_29890
42@ += 1
if 
  42@ > 10
goto_if_false @RYDER2_29922
43@ = -1

:RYDER2_29922
goto @RYDER2_29730

:RYDER2_29929
if 
  43@ == 1
goto_if_false @RYDER2_30044
$x, $y, $z = Car.GetCoordinates(95@)
set_lvar_float_to_var_float 294@ = $x
sub_float_lvar_from_float_lvar 294@ -= 207@
set_lvar_float_to_var_float 295@ = $y
sub_float_lvar_from_float_lvar 295@ -= 208@
$heading = Math.GetHeadingFromVector2D(294@, 295@)
World.ClearArea(207@, 208@, 209@, 5.0, True)
Car.SetCoordinates(97@, 207@, 208@, 209@)
Car.SetHeading(97@, $heading)

:RYDER2_30044
return 

:RYDER2_30046
if 
  35@ == 0
goto_if_false @RYDER2_30754
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:RYDER2_30078
if 
  Camera.GetFadingStatus
goto_if_false @RYDER2_30102
wait 0
goto @RYDER2_30078

:RYDER2_30102
Streaming.RequestModel(105)
Streaming.RequestModel(106)

:RYDER2_30110
if or
  not Streaming.HasModelLoaded(105)
  not Streaming.HasModelLoaded(106)
goto_if_false @RYDER2_30140
wait 0
goto @RYDER2_30110

:RYDER2_30140
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_30186
Car.SetCoordinates(95@, 2455.708, -1972.858, 12.5469)
Car.SetHeading(95@, 343.4514)

:RYDER2_30186
Hud.SwitchWidescreen(True)
Camera.SetNearClip(0.1)
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_30218
Char.ClearTasks($ryder)

:RYDER2_30218
World.ClearArea(2447.901, -1980.542, 12.8338, 20.0, True)
Camera.SetFixedPosition(2447.901, -1980.542, 12.8338, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2448.484, -1979.735, 12.929, SwitchType.JumpCut)
if 
  not Char.IsDead(113@)
goto_if_false @RYDER2_30314
Char.Delete(113@)

:RYDER2_30314
if 
  not Char.IsDead(114@)
goto_if_false @RYDER2_30335
Char.Delete(114@)

:RYDER2_30335
if 
  not Car.IsDead(96@)
goto_if_false @RYDER2_30356
Car.Delete(96@)

:RYDER2_30356
if 
  not Car.IsDead(97@)
goto_if_false @RYDER2_30377
Car.Delete(97@)

:RYDER2_30377
115@ = Char.Create(PedType.CivMale, 105, 2448.476, -1980.751, 12.5947)
116@ = Char.Create(PedType.CivMale, 106, 2447.553, -1979.883, 12.5947)
Char.SetHeading(115@, 316.4611)
Char.SetHeading(116@, 319.2614)
Char.SetDecisionMaker(115@, 237@)
Char.SetDecisionMaker(116@, 237@)
Streaming.MarkModelAsNoLongerNeeded(105)
Streaming.MarkModelAsNoLongerNeeded(106)
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_30615
Char.DetachFromCar($ryder)
Char.ClearTasksImmediately($ryder)
if 
  Object.DoesExist(281@)
goto_if_false @RYDER2_30516
Object.Delete(281@)

:RYDER2_30516
Char.SetCoordinates($ryder, 2453.002, -1976.576, 12.5469)
Char.SetHeading($ryder, 5.1526)
Char.SetAnimGroup($ryder, "GANG1")
48@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2452.702, -1972.939, 12.5469, MoveState.Walk, 10000)
Task.LookAtChar(-1, $scplayer, 3000)
Sequence.Close(48@)
Char.PerformSequence($ryder, 48@)
Sequence.Clear(48@)

:RYDER2_30615
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 2452.29, -1971.682, 12.5469)
Char.SetHeading($scplayer, 153.4741)
if 
  not Char.IsDead(115@)
goto_if_false @RYDER2_30677
Task.LookAtChar($scplayer, 115@, 4000)

:RYDER2_30677
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
$audio_line_is_active = 0
Text.ClearPrints
49@ = 0
54@ = 1000
TIMERA = 0
Camera.DoFade(500, Fade.In)

:RYDER2_30723
if 
  Camera.GetFadingStatus
goto_if_false @RYDER2_30747
wait 0
goto @RYDER2_30723

:RYDER2_30747
35@ += 1

:RYDER2_30754
if 
  35@ > 0
goto_if_false @RYDER2_31473
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_31473
if 
  54@ > 1000
goto_if_false @RYDER2_31473
switch_start 49@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RYDER2_31473 {caseNum1} 0 {caseLabel1} @RYDER2_30872 {caseNum2} 1 {caseLabel2} @RYDER2_31027 {caseNum3} 2 {caseLabel3} @RYDER2_31100 {caseNum4} 3 {caseLabel4} @RYDER2_31312 {caseNum5} -1 {caseLabel5} @RYDER2_31473 {caseNum6} -1 {caseLabel6} @RYDER2_31473 {caseNum7} -1 {caseLabel7} @RYDER2_31473

:RYDER2_30872
set_var_text_label s$audio_string = 'RYD2_TA'
set_var_int_to_constant $audio_sound_file = 10663
start_new_script @AUDIOL $ryder 0 1 1 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 10689)
49@ += 1
54@ = 0
if 
  not Char.IsDead(115@)
goto_if_false @RYDER2_30979
Task.GoStraightToCoord(115@, 2451.915, -1977.506, 12.5947, MoveState.Walk, 10000)

:RYDER2_30979
if 
  not Char.IsDead(116@)
goto_if_false @RYDER2_31020
Task.GoStraightToCoord(116@, 2450.546, -1976.361, 12.5947, MoveState.Walk, 10000)

:RYDER2_31020
goto @RYDER2_31473

:RYDER2_31027
set_var_text_label s$audio_string = 'RYD2_TB'
set_var_int_to_constant $audio_sound_file = 10689
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 10664)
49@ += 1
54@ = 0
goto @RYDER2_31473

:RYDER2_31100
Camera.SetFixedPosition(2450.046, -1966.412, 15.1296, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2450.561, -1967.251, 14.9539, SwitchType.JumpCut)
set_var_text_label s$audio_string = 'RYD2_TC'
set_var_int_to_constant $audio_sound_file = 10664
start_new_script @AUDIOL $ryder 0 1 1 1 
49@ += 1
54@ = 0
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_31305
48@ = Sequence.Open()
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, True, True, False, 2000)
Task.GoStraightToCoord(-1, 2452.239, -1980.224, 12.5469, MoveState.Walk, 10000)
Sequence.Close(48@)
Char.PerformSequence($ryder, 48@)
Sequence.Clear(48@)

:RYDER2_31305
goto @RYDER2_31473

:RYDER2_31312
if 
  not Char.IsDead(115@)
goto_if_false @RYDER2_31382
48@ = Sequence.Open()
Task.Pause(-1, 2000)
Task.GoStraightToCoord(-1, 2452.951, -1982.921, 12.5469, MoveState.Walk, 10000)
Sequence.Close(48@)
Char.PerformSequence(115@, 48@)
Sequence.Clear(48@)

:RYDER2_31382
if 
  not Char.IsDead(116@)
goto_if_false @RYDER2_31452
48@ = Sequence.Open()
Task.Pause(-1, 1500)
Task.GoStraightToCoord(-1, 2452.006, -1983.186, 12.5469, MoveState.Walk, 10000)
Sequence.Close(48@)
Char.PerformSequence(116@, 48@)
Sequence.Clear(48@)

:RYDER2_31452
49@ += 1
54@ = 0
goto @RYDER2_31473

:RYDER2_31473
if 
  35@ == 1
goto_if_false @RYDER2_31577
if and
  49@ > 3
  54@ > 5000
  $audio_line_is_active == 0
goto_if_false @RYDER2_31553
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @RYDER2_31546
35@ += 1

:RYDER2_31546
goto @RYDER2_31577

:RYDER2_31553
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @RYDER2_31577
35@ += 1

:RYDER2_31577
if 
  35@ == 2
goto_if_false @RYDER2_31791
Camera.DoFade(1000, Fade.Out)

:RYDER2_31602
if 
  Camera.GetFadingStatus
goto_if_false @RYDER2_31626
wait 0
goto @RYDER2_31602

:RYDER2_31626
Char.Delete(115@)
Char.Delete(116@)
Char.Delete($ryder)
42@ = 0

:RYDER2_31648
if 
  5 > 42@
goto_if_false @RYDER2_31709
if 
  Object.DoesExist(308@(42@,5i))
goto_if_false @RYDER2_31695
Object.Delete(308@(42@,5i))

:RYDER2_31695
42@ += 1
goto @RYDER2_31648

:RYDER2_31709
if 
  Object.DoesExist(313@)
goto_if_false @RYDER2_31730
Object.Delete(313@)

:RYDER2_31730
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(1000, Fade.In)

:RYDER2_31753
if 
  Camera.GetFadingStatus
goto_if_false @RYDER2_31777
wait 0
goto @RYDER2_31753

:RYDER2_31777
Player.SetControl($player1, True)
36@ = 1

:RYDER2_31791
return 

:RYDER2_31793
if 
  Char.DoesExist($ryder)
goto_if_false @RYDER2_31848
if 
  Char.IsDead($ryder)
goto_if_false @RYDER2_31848
37@ = 1
Text.PrintNow('RY2_22', 5000, 1)

:RYDER2_31848
if 
  Car.DoesExist(95@)
goto_if_false @RYDER2_31942
if 
  Car.IsDead(95@)
goto_if_false @RYDER2_31942
if 
  292@ == 1
goto_if_false @RYDER2_31919
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_31919
Task.Die($ryder)

:RYDER2_31919
37@ = 1
Text.PrintNow('RY2_25', 5000, 1)

:RYDER2_31942
if 
  6 > 34@
goto_if_false @RYDER2_32061
if 
  Car.DoesExist(99@)
goto_if_false @RYDER2_32061
if 
  Car.IsDead(99@)
goto_if_false @RYDER2_32022
37@ = 1
Text.PrintNow('RY2_40', 5000, 1)
goto @RYDER2_32061

:RYDER2_32022
if 
  Car.IsInWater(99@)
goto_if_false @RYDER2_32061
37@ = 1
Text.PrintNow('RY2_40', 5000, 1)

:RYDER2_32061
if and
  34@ > 2
  6 > 34@
goto_if_false @RYDER2_32406
if 
  38@ == 6
goto_if_false @RYDER2_32406
42@ = 0
43@ = 0

:RYDER2_32118
if 
  25 > 42@
goto_if_false @RYDER2_32243
if 
  Object.DoesExist(62@(42@,25i))
goto_if_false @RYDER2_32229
if 
  not Object.IsInWater(62@(42@,25i))
goto_if_false @RYDER2_32229
$x, $y, $z = Object.GetCoordinates(62@(42@,25i))
if 
  $z > 0.0
goto_if_false @RYDER2_32222
43@ += 1

:RYDER2_32222
goto @RYDER2_32229

:RYDER2_32229
42@ += 1
goto @RYDER2_32118

:RYDER2_32243
if 
  is_int_var_greater_than_int_lvar $ryder_health > 43@
goto_if_false @RYDER2_32406
42@ = Math.RandomIntInRange(0, 2)
if 
  42@ == 0
goto_if_false @RYDER2_32337
set_var_text_label s$audio_string = 'RYD2_LF'
set_var_int_to_constant $audio_sound_file = 10634
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_32378

:RYDER2_32337
set_var_text_label s$audio_string = 'RYD2_LE'
set_var_int_to_constant $audio_sound_file = 10633
start_new_script @AUDIOL $ryder 0 1 1 0 

:RYDER2_32378
wait 4000
Text.PrintNow('RY2_58', 5000, 1)
37@ = 1

:RYDER2_32406
if 
  34@ >= 3
goto_if_false @RYDER2_32875
if 
  133@ == 0
goto_if_false @RYDER2_32522
if 
  Object.DoesExist(60@)
goto_if_false @RYDER2_32515
if 
  Object.HasBeenDamaged(60@)
goto_if_false @RYDER2_32515
133@ += 1
Text.ClearPrints
Audio.ReportMissionAudioEventAtObject(60@, 1107)
if 
  Object.DoesExist(240@)
goto_if_false @RYDER2_32515
Audio.ReportMissionAudioEventAtObject(240@, 1126)

:RYDER2_32515
goto @RYDER2_32613

:RYDER2_32522
if 
  133@ == 1
goto_if_false @RYDER2_32613
if 
  Object.DoesExist(240@)
goto_if_false @RYDER2_32613
if 
  Object.Slide(240@, 248@, 249@, 250@, 0.0, 0.2, 0.0, False)
goto_if_false @RYDER2_32613
Audio.ReportMissionAudioEventAtObject(240@, 1127)
133@ += 1

:RYDER2_32613
if 
  132@ == 0
goto_if_false @RYDER2_32753
if 
  Object.DoesExist(61@)
goto_if_false @RYDER2_32746
if 
  Object.HasBeenDamaged(61@)
goto_if_false @RYDER2_32746
if 
  Object.DoesExist(87@)
goto_if_false @RYDER2_32684
Object.Delete(87@)

:RYDER2_32684
if 
  Object.DoesExist(88@)
goto_if_false @RYDER2_32705
Object.Delete(88@)

:RYDER2_32705
Audio.ReportMissionAudioEventAtObject(61@, 1107)
if 
  Object.DoesExist(241@)
goto_if_false @RYDER2_32737
Audio.ReportMissionAudioEventAtObject(241@, 1035)

:RYDER2_32737
Text.ClearPrints
132@ += 1

:RYDER2_32746
goto @RYDER2_32875

:RYDER2_32753
if 
  132@ == 1
goto_if_false @RYDER2_32875
if 
  Object.DoesExist(241@)
goto_if_false @RYDER2_32875
if 
  Object.Slide(241@, 251@, 252@, 253@, 0.1, 0.1, 0.1, False)
goto_if_false @RYDER2_32875
Audio.ReportMissionAudioEventAtObject(241@, 1036)
if 
  133@ <> 0
goto_if_false @RYDER2_32860
Blip.Remove(120@)

:RYDER2_32860
132@ += 1
144@ = 30000

:RYDER2_32875
if 
  38@ == 0
goto_if_false @RYDER2_32970
if 
  Char.IsInArea2D($scplayer, 2721.0, -2329.852, 2810.548, -2565.934, False)
goto_if_false @RYDER2_32963
if 
  126@ == 0
goto_if_false @RYDER2_32956
126@ = 1

:RYDER2_32956
goto @RYDER2_32970

:RYDER2_32963
126@ = 0

:RYDER2_32970
set_var_int_to_lvar_int $ryder_health = 200@
sub_int_lvar_from_int_var $ryder_health -= 127@
if 
  0 > $ryder_health
goto_if_false @RYDER2_33011
$ryder_health = 0

:RYDER2_33011
if 
  124@ == 1
goto_if_false @RYDER2_33124
if 
  131@ == 0
goto_if_false @RYDER2_33124
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_33124
Char.SetRelationship($ryder, RelationshipType.Hate, PedType.Mission1)
Task.TogglePedThreatScanner($ryder, False, True, False)
DecisionMakerChar.AddEventResponse(235@, 36, 1022, 0.0, 100.0, 0.0, 0.0, True, False)
131@ = 1

:RYDER2_33124
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_33215
$6890 = Char.GetHealth($ryder)
cset_lvar_float_to_var_int 45@ =# $6890
45@ /= 500.0
45@ *= 100.0
if 
  45@ > 100.0
goto_if_false @RYDER2_33207
45@ = 100.0

:RYDER2_33207
cset_var_int_to_lvar_float $6890 =# 45@

:RYDER2_33215
if 
  124@ == 0
goto_if_false @RYDER2_34010
if 
  38@ == 1
goto_if_false @RYDER2_34003
42@ = 0

:RYDER2_33258
if 
  5 > 42@
goto_if_false @RYDER2_33352
if 
  not Char.IsDead(102@(42@,9i))
goto_if_false @RYDER2_33338
if or
  Char.HasBeenDamagedByChar(102@(42@,9i), $scplayer)
  Player.IsTargetingChar($player1, 102@(42@,9i))
goto_if_false @RYDER2_33338
124@ = 1

:RYDER2_33338
42@ += 1
goto @RYDER2_33258

:RYDER2_33352
if 
  124@ == 0
goto_if_false @RYDER2_33935
42@ = 0

:RYDER2_33377
if 
  5 > 42@
goto_if_false @RYDER2_33935
if 
  not Char.IsDead(102@(42@,9i))
goto_if_false @RYDER2_33921
if 
  172@(42@,9i) == 0
goto_if_false @RYDER2_33677
if 
  126@ == 1
goto_if_false @RYDER2_33677
if 
  Char.HasSpottedChar(102@(42@,9i), $scplayer)
goto_if_false @RYDER2_33592
Task.AimGunAtChar(102@(42@,9i), $scplayer, 10000)
if 
  300@ == 0
goto_if_false @RYDER2_33563
set_var_text_label s$audio_string = 'RYD2_VA'
set_var_int_to_constant $audio_sound_file = 10670
start_new_script @AUDIOL 102@(42@,9i) 0 1 1 0 
300@ += 1

:RYDER2_33563
181@(42@,9i) = 0
172@(42@,9i) += 1
goto @RYDER2_33677

:RYDER2_33592
if 
  Char.LocateOnFootChar3D($scplayer, 102@(42@,9i), 5.0, 5.0, 2.0, False)
goto_if_false @RYDER2_33677
43@ = Char.GetScriptTaskStatus(102@(42@,9i), 1593)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @RYDER2_33677
Task.TurnCharToFaceChar(102@(42@,9i), $scplayer)

:RYDER2_33677
if 
  172@(42@,9i) == 1
goto_if_false @RYDER2_33921
if 
  181@(42@,9i) > 8000
goto_if_false @RYDER2_33885
if 
  126@ == 1
goto_if_false @RYDER2_33878
43@ = Math.RandomIntInRange(0, 2)
if 
  42@ == 0
goto_if_false @RYDER2_33819
set_var_text_label s$audio_string = 'RYD2_VB'
set_var_int_to_constant $audio_sound_file = 10671
start_new_script @AUDIOL 102@(42@,9i) 0 1 1 0 
goto @RYDER2_33864

:RYDER2_33819
set_var_text_label s$audio_string = 'RYD2_VG'
set_var_int_to_constant $audio_sound_file = 10676
start_new_script @AUDIOL 102@(42@,9i) 0 1 1 0 

:RYDER2_33864
124@ = 1
42@ = 5

:RYDER2_33878
goto @RYDER2_33921

:RYDER2_33885
if 
  126@ == 0
goto_if_false @RYDER2_33921
172@(42@,9i) = 0
300@ = 0

:RYDER2_33921
42@ += 1
goto @RYDER2_33377

:RYDER2_33935
if 
  124@ == 1
goto_if_false @RYDER2_34003
42@ = 0

:RYDER2_33960
if 
  9 > 42@
goto_if_false @RYDER2_34003
172@(42@,9i) = 0
42@ += 1
goto @RYDER2_33960

:RYDER2_34003
goto @RYDER2_34891

:RYDER2_34010
if 
  9 > 38@
goto_if_false @RYDER2_34891
if 
  not Char.IsDead(102@(38@,9i))
goto_if_false @RYDER2_34891
switch_start 38@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @RYDER2_34817 {caseNum1} 1 {caseLabel1} @RYDER2_34111 {caseNum2} 2 {caseLabel2} @RYDER2_34191 {caseNum3} 3 {caseLabel3} @RYDER2_34421 {caseNum4} 4 {caseLabel4} @RYDER2_34644 {caseNum5} -1 {caseLabel5} @RYDER2_34891 {caseNum6} -1 {caseLabel6} @RYDER2_34891 {caseNum7} -1 {caseLabel7} @RYDER2_34891

:RYDER2_34111
if 
  172@(38@,9i) == 0
goto_if_false @RYDER2_34184
48@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(48@)
Char.PerformSequence(102@(38@,9i), 48@)
Sequence.Clear(48@)
172@(38@,9i) += 1

:RYDER2_34184
goto @RYDER2_34891

:RYDER2_34191
if 
  132@ == 1
goto_if_false @RYDER2_34414
if 
  174@ == 0
goto_if_false @RYDER2_34345
Char.SetRelationship(104@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(104@, RelationshipType.Hate, PedType.Mission2)
Task.TogglePedThreatScanner(104@, False, False, False)
48@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2785.752, -2413.019, 12.6316, MoveState.Run, -2)
Task.SetCharDecisionMaker(-1, 236@)
Task.TogglePedThreatScanner(-1, True, True, False)
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Task.KindaStayInSamePlace(-1, True)
Sequence.Close(48@)
Char.PerformSequence(104@, 48@)
Sequence.Clear(48@)
174@ += 1

:RYDER2_34345
if 
  174@ == 1
goto_if_false @RYDER2_34414
if 
  Char.LocateAnyMeansChar3D(104@, $scplayer, 5.0, 5.0, 5.0, False)
goto_if_false @RYDER2_34414
Task.KillCharOnFoot(104@, $scplayer)
174@ += 1

:RYDER2_34414
goto @RYDER2_34891

:RYDER2_34421
if 
  132@ == 1
goto_if_false @RYDER2_34637
if 
  175@ == 0
goto_if_false @RYDER2_34568
Char.SetRelationship(105@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(105@, RelationshipType.Hate, PedType.Mission2)
Task.TogglePedThreatScanner(105@, False, False, False)
48@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2786.663, -2422.235, 12.634, MoveState.Run, -2)
Task.SetCharDecisionMaker(-1, 236@)
Task.TogglePedThreatScanner(-1, True, True, False)
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Task.KindaStayInSamePlace(-1, True)
Sequence.Close(48@)
Char.PerformSequence(105@, 48@)
Sequence.Clear(48@)

:RYDER2_34568
if 
  175@ == 1
goto_if_false @RYDER2_34637
if 
  Char.LocateAnyMeansChar3D(105@, $scplayer, 5.0, 5.0, 5.0, False)
goto_if_false @RYDER2_34637
Task.KillCharOnFoot(105@, $scplayer)
175@ += 1

:RYDER2_34637
goto @RYDER2_34891

:RYDER2_34644
if 
  176@ == 0
goto_if_false @RYDER2_34741
48@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2764.928, -2402.124, 12.625, MoveState.Run, -2)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootWhileDucking(-1, $scplayer, 1, 3000, 90)
Task.StayInSamePlace(-1, True)
Sequence.Close(48@)
Char.PerformSequence(106@, 48@)
Sequence.Clear(48@)
176@ += 1

:RYDER2_34741
if 
  176@ == 1
goto_if_false @RYDER2_34810
if 
  Char.LocateAnyMeansChar3D(106@, $scplayer, 5.0, 5.0, 5.0, False)
goto_if_false @RYDER2_34810
Task.KillCharOnFoot(106@, $scplayer)
176@ += 1

:RYDER2_34810
goto @RYDER2_34891

:RYDER2_34817
if 
  172@(38@,9i) == 0
goto_if_false @RYDER2_34884
48@ = Sequence.Open()
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(48@)
Char.PerformSequence(102@(38@,9i), 48@)
Sequence.Clear(48@)
172@(38@,9i) += 1

:RYDER2_34884
goto @RYDER2_34891

:RYDER2_34891
if 
  38@ == 2
goto_if_false @RYDER2_35390
42@ = 0

:RYDER2_34916
if 
  25 > 42@
goto_if_false @RYDER2_35390
if 
  Object.DoesExist(62@(42@,25i))
goto_if_false @RYDER2_35376
if 
  Object.HasBeenDamaged(62@(42@,25i))
goto_if_false @RYDER2_35376
$x, $y, $z = Object.GetCoordinates(62@(42@,25i))
if 
  Object.IsAttached(62@(42@,25i))
goto_if_false @RYDER2_35019
goto @RYDER2_35360

:RYDER2_35019
if 
  147@(42@,25i) == 1
goto_if_false @RYDER2_35073
210@(42@,25i) = Pickup.CreateWithAmmo(346, PickupType.Once, 30, $x, $y, $z)
goto @RYDER2_35360

:RYDER2_35073
if 
  147@(42@,25i) == 2
goto_if_false @RYDER2_35124
210@(42@,25i) = Pickup.Create(#BODYARMOUR, PickupType.Once, $x, $y, $z)
goto @RYDER2_35360

:RYDER2_35124
if 
  147@(42@,25i) == 3
goto_if_false @RYDER2_35178
210@(42@,25i) = Pickup.CreateWithAmmo(342, PickupType.Once, 6, $x, $y, $z)
goto @RYDER2_35360

:RYDER2_35178
if 
  147@(42@,25i) == 4
goto_if_false @RYDER2_35230
210@(42@,25i) = Pickup.Create(#HEALTH, PickupType.Once, $x, $y, $z)
goto @RYDER2_35360

:RYDER2_35230
if 
  147@(42@,25i) == 5
goto_if_false @RYDER2_35259
goto @RYDER2_35360

:RYDER2_35259
if 
  147@(42@,25i) == 6
goto_if_false @RYDER2_35313
210@(42@,25i) = Pickup.CreateWithAmmo(352, PickupType.Once, 30, $x, $y, $z)
goto @RYDER2_35360

:RYDER2_35313
if 
  147@(42@,25i) == 7
goto_if_false @RYDER2_35360
210@(42@,25i) = Pickup.CreateWithAmmo(349, PickupType.Once, 30, $x, $y, $z)

:RYDER2_35360
145@ += 1
Object.Delete(62@(42@,25i))

:RYDER2_35376
42@ += 1
goto @RYDER2_34916

:RYDER2_35390
if 
  197@ == 1
goto_if_false @RYDER2_35800
if 
  196@ == 0
goto_if_false @RYDER2_35635
if 
  not Car.IsDead(99@)
goto_if_false @RYDER2_35628
if 
  Char.IsInCar($scplayer, 99@)
goto_if_false @RYDER2_35628
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_35628
if 
  not Car.IsPlaybackGoingOn(95@)
goto_if_false @RYDER2_35628
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_35628
if 
  not Char.IsInCar($ryder, 95@)
goto_if_false @RYDER2_35628
if 
  Car.IsStopped(95@)
goto_if_false @RYDER2_35628
196@ = 1
Car.FreezePosition(95@, True)
Car.SetCollision(95@, False)
if 
  not Object.DoesExist(93@)
goto_if_false @RYDER2_35628
$x, $y, $z = Car.GetCoordinates(95@)
$heading = Car.GetHeading(95@)
93@ = Object.CreateNoOffset(#FAKE_MULE_COL, $x, $y, $z)
Object.SetHeading(93@, $heading)

:RYDER2_35628
goto @RYDER2_35800

:RYDER2_35635
if 
  271@ == 0
goto_if_false @RYDER2_35800
if 
  not Car.IsDead(99@)
goto_if_false @RYDER2_35702
if 
  not Char.IsInCar($scplayer, 99@)
goto_if_false @RYDER2_35695
196@ = 0

:RYDER2_35695
goto @RYDER2_35709

:RYDER2_35702
196@ = 0

:RYDER2_35709
if 
  196@ == 0
goto_if_false @RYDER2_35800
if 
  Object.DoesExist(93@)
goto_if_false @RYDER2_35770
$x, $y, $z = Object.GetCoordinates(93@)
$heading = Object.GetHeading(93@)
Object.Delete(93@)

:RYDER2_35770
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_35800
Car.SetCollision(95@, True)
Car.FreezePosition(95@, False)

:RYDER2_35800
if and
  38@ == 3
  34@ >= 3
goto_if_false @RYDER2_36153
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  $audio_line_is_active == 0
goto_if_false @RYDER2_36153
if 
  Object.DoesExist(60@)
goto_if_false @RYDER2_36000
if 
  not Object.HasBeenDamaged(60@)
goto_if_false @RYDER2_36000
if 
  Char.LocateOnFoot3D($scplayer, 2722.114, -2412.055, 12.6198, 2.0, 2.0, 2.0, False)
goto_if_false @RYDER2_35975
if 
  301@ == 0
goto_if_false @RYDER2_35968
Text.PrintNow('RY2_61', 5000, 1)
301@ += 1

:RYDER2_35968
goto @RYDER2_36000

:RYDER2_35975
if 
  301@ <> 0
goto_if_false @RYDER2_36000
301@ = 0

:RYDER2_36000
if 
  Object.DoesExist(61@)
goto_if_false @RYDER2_36153
if 
  not Object.HasBeenDamaged(61@)
goto_if_false @RYDER2_36153
if 
  Char.LocateOnFoot3D($scplayer, 2773.101, -2423.418, 12.6269, 2.0, 2.0, 2.0, False)
goto_if_false @RYDER2_36128
if 
  302@ == 0
goto_if_false @RYDER2_36121
Text.PrintNow('RY2_62', 5000, 1)
302@ += 1

:RYDER2_36121
goto @RYDER2_36153

:RYDER2_36128
if 
  302@ <> 0
goto_if_false @RYDER2_36153
302@ = 0

:RYDER2_36153
if 
  38@ == 4
goto_if_false @RYDER2_36565
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_36565
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_36565
if 
  Car.IsPlaybackGoingOn(95@)
goto_if_false @RYDER2_36565
$x, $y, $z = Car.GetOffsetInWorldCoords(95@, 0.0, 10.0, 0.0)
if 
  Char.LocateAnyMeans3D($scplayer, $x, $y, $z, 4.0, 4.0, 4.0, False)
goto_if_false @RYDER2_36540
if 
  303@ == 0
goto_if_false @RYDER2_36533
42@ = Math.RandomIntInRange(0, 3)
switch_start 42@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_36526 {caseNum1} 0 {caseLabel1} @RYDER2_36382 {caseNum2} 1 {caseLabel2} @RYDER2_36430 {caseNum3} 2 {caseLabel3} @RYDER2_36478 {caseNum4} -1 {caseLabel4} @RYDER2_36526 {caseNum5} -1 {caseLabel5} @RYDER2_36526 {caseNum6} -1 {caseLabel6} @RYDER2_36526 {caseNum7} -1 {caseLabel7} @RYDER2_36526

:RYDER2_36382
set_var_text_label s$audio_string = 'RYD2_JA'
set_var_int_to_constant $audio_sound_file = 10623
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_36526

:RYDER2_36430
set_var_text_label s$audio_string = 'RYD2_JB'
set_var_int_to_constant $audio_sound_file = 10624
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_36526

:RYDER2_36478
set_var_text_label s$audio_string = 'RYD2_JC'
set_var_int_to_constant $audio_sound_file = 10625
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_36526

:RYDER2_36526
303@ += 1

:RYDER2_36533
goto @RYDER2_36565

:RYDER2_36540
if 
  303@ <> 0
goto_if_false @RYDER2_36565
303@ = 0

:RYDER2_36565
if 
  145@ == 3
goto_if_false @RYDER2_36653
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  $audio_line_is_active == 0
goto_if_false @RYDER2_36653
set_var_text_label s$audio_string = 'RYD2_LG'
set_var_int_to_constant $audio_sound_file = 10635
start_new_script @AUDIOL $ryder 0 1 1 0 
145@ += 1

:RYDER2_36653
return 

:RYDER2_36655
if 
  306@ == 6
goto_if_false @RYDER2_36687
307@ = 1
306@ = 5

:RYDER2_36687
if 
  307@ == 1
goto_if_false @RYDER2_36812
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_36805
if 
  not Object.DoesExist(313@)
goto_if_false @RYDER2_36805
313@ = Object.Create(#CM_BOX, 0.0, 0.0, 0.0)
Object.SetCollision(313@, False)
Object.AttachToCar(313@, 95@, 0.6223, -2.3101, 0.2002, 0.0, 0.0, 317.0214)

:RYDER2_36805
goto @RYDER2_36833

:RYDER2_36812
if 
  Object.DoesExist(313@)
goto_if_false @RYDER2_36833
Object.Delete(313@)

:RYDER2_36833
switch_start 306@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RYDER2_38778 {caseNum1} 0 {caseLabel1} @RYDER2_36896 {caseNum2} 1 {caseLabel2} @RYDER2_36971 {caseNum3} 2 {caseLabel3} @RYDER2_37146 {caseNum4} 3 {caseLabel4} @RYDER2_37421 {caseNum5} 4 {caseLabel5} @RYDER2_37796 {caseNum6} 5 {caseLabel6} @RYDER2_38271 {caseNum7} -1 {caseLabel7} @RYDER2_38778

:RYDER2_36896
314@ = 0

:RYDER2_36903
if 
  5 > 314@
goto_if_false @RYDER2_36964
if 
  Object.DoesExist(308@(314@,5i))
goto_if_false @RYDER2_36950
Object.Delete(308@(314@,5i))

:RYDER2_36950
314@ += 1
goto @RYDER2_36903

:RYDER2_36964
goto @RYDER2_38778

:RYDER2_36971
if 
  not Object.DoesExist(308@)
goto_if_false @RYDER2_37071
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_37071
308@ = Object.Create(#CJ_CARDBRD_PICKUP, 0.0, 0.0, 0.0)
Object.SetCollision(308@, False)
Object.AttachToCar(308@, 95@, -0.4928, -0.1684, 0.3614, 0.0, 0.0, 0.0)

:RYDER2_37071
314@ = 1

:RYDER2_37078
if 
  5 > 314@
goto_if_false @RYDER2_37139
if 
  Object.DoesExist(308@(314@,5i))
goto_if_false @RYDER2_37125
Object.Delete(308@(314@,5i))

:RYDER2_37125
314@ += 1
goto @RYDER2_37078

:RYDER2_37139
goto @RYDER2_38778

:RYDER2_37146
if 
  not Object.DoesExist(309@)
goto_if_false @RYDER2_37246
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_37246
309@ = Object.Create(#CJ_CARDBRD_PICKUP, 0.0, 0.0, 0.0)
Object.SetCollision(309@, False)
Object.AttachToCar(309@, 95@, 0.4835, -0.2148, 0.3614, 0.0, 0.0, 0.0)

:RYDER2_37246
if 
  not Object.DoesExist(308@)
goto_if_false @RYDER2_37346
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_37346
308@ = Object.Create(#CJ_CARDBRD_PICKUP, 0.0, 0.0, 0.0)
Object.SetCollision(308@, False)
Object.AttachToCar(308@, 95@, -0.4928, -0.1684, 0.3614, 0.0, 0.0, 0.0)

:RYDER2_37346
314@ = 2

:RYDER2_37353
if 
  5 > 314@
goto_if_false @RYDER2_37414
if 
  Object.DoesExist(308@(314@,5i))
goto_if_false @RYDER2_37400
Object.Delete(308@(314@,5i))

:RYDER2_37400
314@ += 1
goto @RYDER2_37353

:RYDER2_37414
goto @RYDER2_38778

:RYDER2_37421
if 
  not Object.DoesExist(310@)
goto_if_false @RYDER2_37521
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_37521
310@ = Object.Create(#CARDBOARDBOX2, 0.0, 0.0, 0.0)
Object.SetCollision(310@, False)
Object.AttachToCar(310@, 95@, -0.2585, -0.3195, 1.1567, 0.0, 0.0, 23.47)

:RYDER2_37521
if 
  not Object.DoesExist(309@)
goto_if_false @RYDER2_37621
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_37621
309@ = Object.Create(#CJ_CARDBRD_PICKUP, 0.0, 0.0, 0.0)
Object.SetCollision(309@, False)
Object.AttachToCar(309@, 95@, 0.4835, -0.2148, 0.3614, 0.0, 0.0, 0.0)

:RYDER2_37621
if 
  not Object.DoesExist(308@)
goto_if_false @RYDER2_37721
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_37721
308@ = Object.Create(#CJ_CARDBRD_PICKUP, 0.0, 0.0, 0.0)
Object.SetCollision(308@, False)
Object.AttachToCar(308@, 95@, -0.4928, -0.1684, 0.3614, 0.0, 0.0, 0.0)

:RYDER2_37721
314@ = 3

:RYDER2_37728
if 
  5 > 314@
goto_if_false @RYDER2_37789
if 
  Object.DoesExist(308@(314@,5i))
goto_if_false @RYDER2_37775
Object.Delete(308@(314@,5i))

:RYDER2_37775
314@ += 1
goto @RYDER2_37728

:RYDER2_37789
goto @RYDER2_38778

:RYDER2_37796
if 
  not Object.DoesExist(311@)
goto_if_false @RYDER2_37896
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_37896
311@ = Object.Create(#CARDBOARDBOX2, 0.0, 0.0, 0.0)
Object.SetCollision(311@, False)
Object.AttachToCar(311@, 95@, -0.4009, -1.7762, 0.2292, 0.0, 0.0, 342.0102)

:RYDER2_37896
if 
  not Object.DoesExist(310@)
goto_if_false @RYDER2_37996
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_37996
310@ = Object.Create(#CARDBOARDBOX2, 0.0, 0.0, 0.0)
Object.SetCollision(310@, False)
Object.AttachToCar(310@, 95@, -0.2585, -0.3195, 1.1567, 0.0, 0.0, 23.47)

:RYDER2_37996
if 
  not Object.DoesExist(309@)
goto_if_false @RYDER2_38096
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_38096
309@ = Object.Create(#CJ_CARDBRD_PICKUP, 0.0, 0.0, 0.0)
Object.SetCollision(309@, False)
Object.AttachToCar(309@, 95@, 0.4835, -0.2148, 0.3614, 0.0, 0.0, 0.0)

:RYDER2_38096
if 
  not Object.DoesExist(308@)
goto_if_false @RYDER2_38196
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_38196
308@ = Object.Create(#CJ_CARDBRD_PICKUP, 0.0, 0.0, 0.0)
Object.SetCollision(308@, False)
Object.AttachToCar(308@, 95@, -0.4928, -0.1684, 0.3614, 0.0, 0.0, 0.0)

:RYDER2_38196
314@ = 4

:RYDER2_38203
if 
  5 > 314@
goto_if_false @RYDER2_38264
if 
  Object.DoesExist(308@(314@,5i))
goto_if_false @RYDER2_38250
Object.Delete(308@(314@,5i))

:RYDER2_38250
314@ += 1
goto @RYDER2_38203

:RYDER2_38264
goto @RYDER2_38778

:RYDER2_38271
if 
  not Object.DoesExist(312@)
goto_if_false @RYDER2_38371
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_38371
312@ = Object.Create(#CARDBOARDBOX2, 0.0, 0.0, 0.0)
Object.SetCollision(312@, False)
Object.AttachToCar(312@, 95@, -0.4374, -1.7451, 0.9021, 0.0, 0.0, 210.1588)

:RYDER2_38371
if 
  not Object.DoesExist(311@)
goto_if_false @RYDER2_38471
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_38471
311@ = Object.Create(#CARDBOARDBOX2, 0.0, 0.0, 0.0)
Object.SetCollision(311@, False)
Object.AttachToCar(311@, 95@, -0.4009, -1.7762, 0.2292, 0.0, 0.0, 342.0102)

:RYDER2_38471
if 
  not Object.DoesExist(310@)
goto_if_false @RYDER2_38571
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_38571
310@ = Object.Create(#CARDBOARDBOX2, 0.0, 0.0, 0.0)
Object.SetCollision(310@, False)
Object.AttachToCar(310@, 95@, -0.2585, -0.3195, 1.1567, 0.0, 0.0, 23.47)

:RYDER2_38571
if 
  not Object.DoesExist(309@)
goto_if_false @RYDER2_38671
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_38671
309@ = Object.Create(#CJ_CARDBRD_PICKUP, 0.0, 0.0, 0.0)
Object.SetCollision(309@, False)
Object.AttachToCar(309@, 95@, 0.4835, -0.2148, 0.3614, 0.0, 0.0, 0.0)

:RYDER2_38671
if 
  not Object.DoesExist(308@)
goto_if_false @RYDER2_38771
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_38771
308@ = Object.Create(#CJ_CARDBRD_PICKUP, 0.0, 0.0, 0.0)
Object.SetCollision(308@, False)
Object.AttachToCar(308@, 95@, -0.4928, -0.1684, 0.3614, 0.0, 0.0, 0.0)

:RYDER2_38771
goto @RYDER2_38778

:RYDER2_38778
return 

:RYDER2_38780
316@ = -1
315@ = 0

:RYDER2_38794
if 
  10 > 315@
goto_if_false @RYDER2_38861
if 
  not Object.DoesExist(282@(315@,10i))
goto_if_false @RYDER2_38847
set_lvar_int_to_lvar_int 316@ = 315@
315@ = 10

:RYDER2_38847
315@ += 1
goto @RYDER2_38794

:RYDER2_38861
if 
  316@ <> -1
goto_if_false @RYDER2_38916
set_lvar_int_to_lvar_int 282@(316@,10i) = 281@
53@ = 0
Object.SetRecordsCollisions(282@(316@,10i), True)
127@ -= 1

:RYDER2_38916
return 

:RYDER2_38918
if 
  318@ == -999
goto_if_false @RYDER2_38961
317@ = Char.Create(PedType.Mission1, 7, 0.0, 0.0, 0.0)

:RYDER2_38961
if 
  not Char.IsDead(317@)
goto_if_false @RYDER2_39155
Char.GiveWeapon(317@, WeaponType.Pistol, 99999)
Char.SetAccuracy(317@, 32)
Char.SetHealth(317@, 100)
Char.SetDecisionMaker(317@, 236@)
Char.SetRelationship(317@, RelationshipType.Hate, PedType.Player1)
if 
  133@ <> 0
goto_if_false @RYDER2_39047
Char.SetRelationship(317@, RelationshipType.Hate, PedType.Mission2)

:RYDER2_39047
Task.TogglePedThreatScanner(317@, True, True, True)
Char.SetSenseRange(317@, 100.0)
if 
  not Group.DoesExist(239@)
goto_if_false @RYDER2_39096
Group.Remove(239@)
239@ = Group.Create(DefaultTaskAllocator.StandStill)

:RYDER2_39096
318@, 319@ = Group.GetSize(239@)
if 
  318@ == 0
goto_if_false @RYDER2_39140
Group.SetLeader(239@, 317@)
goto @RYDER2_39148

:RYDER2_39140
Group.SetMember(239@, 317@)

:RYDER2_39148
Char.SetNeverLeavesGroup(317@, True)

:RYDER2_39155
return 
320@ = 999999.0
321@ = -1
322@ = 0.0
323@ = 0.0
324@ = 0.0
42@ = 0

:RYDER2_39211
if 
  25 > 42@
goto_if_false @RYDER2_39471
if 
  Object.DoesExist(62@(42@,25i))
goto_if_false @RYDER2_39457
if 
  not Char.IsHoldingObject($scplayer, 62@(42@,25i))
goto_if_false @RYDER2_39457
if 
  not Object.IsAttached(62@(42@,25i))
goto_if_false @RYDER2_39457
if 
  not Object.HasBeenDamaged(62@(42@,25i))
goto_if_false @RYDER2_39457
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_39342
$x, $y, $z = Char.GetCoordinates($ryder)

:RYDER2_39342
325@, 326@, 327@ = Object.GetCoordinates(62@(42@,25i))
45@ = Math.GetDistanceBetweenCoords2D(325@, 326@, $x, $y)
if 
  6.0 > 45@
goto_if_false @RYDER2_39457
if 
  is_float_lvar_greater_than_float_lvar 320@ > 45@
goto_if_false @RYDER2_39457
set_lvar_float_to_lvar_float 320@ = 45@
set_lvar_int_to_lvar_int 321@ = 42@
set_lvar_float_to_lvar_float 322@ = 325@
set_lvar_float_to_lvar_float 323@ = 326@
set_lvar_float_to_lvar_float 324@ = 327@

:RYDER2_39457
42@ += 1
goto @RYDER2_39211

:RYDER2_39471
set_lvar_int_to_lvar_int 328@ = 321@
set_lvar_float_to_lvar_float 325@ = 322@
set_lvar_float_to_lvar_float 326@ = 323@
set_lvar_float_to_lvar_float 327@ = 324@
return 

:RYDER2_39505
329@, 330@, 331@ = Object.GetCoordinates(281@)
332@, 333@, 334@, 335@ = Object.GetQuaternion(281@)
Char.DropObject($ryder, True)
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_39575
294@ = Car.GetForwardX(95@)
295@ = Car.GetForwardY(95@)

:RYDER2_39575
294@ *= -10.0
295@ *= -10.0
Object.SetCoordinates(281@, 329@, 330@, 331@)
Object.SetQuaternion(281@, 332@, 333@, 334@, 335@)
Object.SetDynamic(281@, True)
Object.SetCollision(281@, True)
Object.AddToVelocity(281@, 294@, 295@, 0.0)
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_39680
Object.SortOutCollisionWithCar(281@, 95@)

:RYDER2_39680
gosub @RYDER2_38780
281@ = 0
return 

:RYDER2_39696
if 
  336@ > 0
goto_if_false @RYDER2_40476
switch_start 339@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RYDER2_40469 {caseNum1} 0 {caseLabel1} @RYDER2_39777 {caseNum2} 1 {caseLabel2} @RYDER2_39819 {caseNum3} 2 {caseLabel3} @RYDER2_39994 {caseNum4} 3 {caseLabel4} @RYDER2_40260 {caseNum5} -1 {caseLabel5} @RYDER2_40469 {caseNum6} -1 {caseLabel6} @RYDER2_40469 {caseNum7} -1 {caseLabel7} @RYDER2_40469

:RYDER2_39777
if 
  not Streaming.HasModelLoaded(287)
goto_if_false @RYDER2_39805
Streaming.RequestModel(287)
goto @RYDER2_39812

:RYDER2_39805
339@ += 1

:RYDER2_39812
goto @RYDER2_40469

:RYDER2_39819
345@ = -1
346@ = 0

:RYDER2_39833
if 
  5 > 346@
goto_if_false @RYDER2_39962
if 
  Char.DoesExist(340@(346@,5i))
goto_if_false @RYDER2_39933
if 
  Char.IsDead(340@(346@,5i))
goto_if_false @RYDER2_39926
Char.MarkAsNoLongerNeeded(340@(346@,5i))
340@(346@,5i) = 0
set_lvar_int_to_lvar_int 345@ = 346@
346@ = 5

:RYDER2_39926
goto @RYDER2_39948

:RYDER2_39933
set_lvar_int_to_lvar_int 345@ = 346@
346@ = 5

:RYDER2_39948
346@ += 1
goto @RYDER2_39833

:RYDER2_39962
if 
  345@ <> -1
goto_if_false @RYDER2_39987
339@ += 1

:RYDER2_39987
goto @RYDER2_40469

:RYDER2_39994
if or
  338@ == 3
  338@ == 7
  338@ == 8
  338@ == 9
goto_if_false @RYDER2_40047
338@ += 1
goto @RYDER2_39994

:RYDER2_40047
if 
  338@ > 9
goto_if_false @RYDER2_40072
338@ = 0

:RYDER2_40072
if 
  not is_int_lvar_equal_to_int_lvar 338@ == 337@
goto_if_false @RYDER2_40221
if 
  not Camera.IsPointOnScreen(347@(338@,10f), 357@(338@,10f), 367@(338@,10f), 2.0)
goto_if_false @RYDER2_40207
if 
  not World.IsPointObscuredByAMissionEntity(347@(338@,10f), 357@(338@,10f), 367@(338@,10f), 1.5, 1.5, 2.0)
goto_if_false @RYDER2_40193
339@ += 1
goto @RYDER2_40200

:RYDER2_40193
338@ += 1

:RYDER2_40200
goto @RYDER2_40214

:RYDER2_40207
338@ += 1

:RYDER2_40214
goto @RYDER2_40228

:RYDER2_40221
338@ += 1

:RYDER2_40228
if 
  338@ > 9
goto_if_false @RYDER2_40253
338@ = 0

:RYDER2_40253
goto @RYDER2_40469

:RYDER2_40260
340@(345@,5i) = Char.Create(PedType.Mission1, 287, 347@(338@,10f), 357@(338@,10f), 367@(338@,10f))
set_lvar_int_to_lvar_int 317@ = 340@(345@,5i)
gosub @RYDER2_38918
48@ = Sequence.Open()
Task.TogglePedThreatScanner(-1, True, True, True)
Task.GoStraightToCoord(-1, 387@(338@,10f), 397@(338@,10f), 407@(338@,10f), MoveState.Run, -2)
Task.GoStraightToCoord(-1, 417@(338@,10f), 427@(338@,10f), 437@(338@,10f), MoveState.Run, -2)
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_40418
Task.GotoChar(-1, $ryder, 20000, 25.0)

:RYDER2_40418
Sequence.Close(48@)
Char.PerformSequence(340@(345@,5i), 48@)
Sequence.Clear(48@)
set_lvar_int_to_lvar_int 337@ = 338@
336@ += -1
339@ = 0
goto @RYDER2_40469

:RYDER2_40469
goto @RYDER2_40483

:RYDER2_40476
339@ = 0

:RYDER2_40483
return 
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RYDER2_40556
477@ += 1
if 
  477@ > 24
goto_if_false @RYDER2_40532
477@ = 0

:RYDER2_40532
write_debug_with_int "ADJUST_BOX_NUMBER" {_p2} 477@

:RYDER2_40556
if 
  Object.DoesExist(62@(477@,25i))
goto_if_false @RYDER2_40653
$x, $y, $z = Object.GetCoordinates(62@(477@,25i))
$heading = Object.GetHeading(62@(477@,25i))
$z += 1.0
Fx.DrawCorona($x, $y, $z, 0.2, CoronaType.Moon, FlareType.None, 255, 0, 0)
$z += -1.0

:RYDER2_40653
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @RYDER2_40678
$y += 0.1

:RYDER2_40678
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @RYDER2_40703
$y += -0.1

:RYDER2_40703
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @RYDER2_40728
$x += 0.1

:RYDER2_40728
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @RYDER2_40753
$x += -0.1

:RYDER2_40753
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @RYDER2_40778
$z += 0.01

:RYDER2_40778
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @RYDER2_40803
$z += -0.01

:RYDER2_40803
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @RYDER2_40828
$heading += 1.0

:RYDER2_40828
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @RYDER2_40853
$heading += -1.0

:RYDER2_40853
if 
  Object.DoesExist(62@(477@,25i))
goto_if_false @RYDER2_40903
Object.SetCoordinates(62@(477@,25i), $x, $y, $z)
Object.SetHeading(62@(477@,25i), $heading)

:RYDER2_40903
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @RYDER2_41075
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BOX COORDS = ")
save_int_to_debug_file 477@
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z
save_float_to_debug_file $heading

:RYDER2_41075
return 

:RYDER2_41077
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:RYDER2_41095
Player.ClearWantedLevel($player1)
Stat.RegisterMissionPassed('RYDER_2')
Text.PrintWithNumberBig('M_PASSR', 10, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(5)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Stat.PlayerMadeProgress(1)
if 
  $flag_returned_tags == 0
goto_if_false @RYDER2_41174
Gang.SetWeapons(GangType.Grove, WeaponType.Pistol, WeaponType.Tec9, WeaponType.Unarmed)

:RYDER2_41174
Blip.Remove($ryder_contact_blip)
Stat.SetInt(StatId.PassedRyder2, 1)
$flag_ryder_mission_counter += 1
return 

:RYDER2_41195
if 
  Player.IsPlaying($player1)
goto_if_false @RYDER2_41218
Player.SetGroupToFollowAlways($player1, False)

:RYDER2_41218
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_41248
Car.FreezePosition(95@, False)
Car.SetIsConsideredByPlayer(95@, True)

:RYDER2_41248
Camera.SetPlayerInCarMode(2)
if 
  not Car.IsDead(98@)
goto_if_false @RYDER2_41273
Car.MarkAsNoLongerNeeded(98@)

:RYDER2_41273
if 
  124@ == 1
goto_if_false @RYDER2_41473
42@ = 0

:RYDER2_41298
if 
  9 > 42@
goto_if_false @RYDER2_41382
if 
  Char.DoesExist(102@(42@,9i))
goto_if_false @RYDER2_41368
if 
  not Char.IsDead(102@(42@,9i))
goto_if_false @RYDER2_41368
Task.KillCharOnFoot(102@(42@,9i), $scplayer)

:RYDER2_41368
42@ += 1
goto @RYDER2_41298

:RYDER2_41382
42@ = 0

:RYDER2_41389
if 
  5 > 42@
goto_if_false @RYDER2_41473
if 
  Char.DoesExist(340@(42@,5i))
goto_if_false @RYDER2_41459
if 
  not Char.IsDead(340@(42@,5i))
goto_if_false @RYDER2_41459
Task.KillCharOnFoot(340@(42@,5i), $scplayer)

:RYDER2_41459
42@ += 1
goto @RYDER2_41389

:RYDER2_41473
if 
  not Char.IsDead($ryder)
goto_if_false @RYDER2_41494
Char.RemoveElegantly($ryder)

:RYDER2_41494
Object.MarkAsNoLongerNeeded(240@)
Object.MarkAsNoLongerNeeded(241@)
Object.MarkAsNoLongerNeeded(257@)
Object.MarkAsNoLongerNeeded(258@)
Object.MarkAsNoLongerNeeded(259@)
42@ = 0

:RYDER2_41526
if 
  25 > 42@
goto_if_false @RYDER2_41609
Object.MarkAsNoLongerNeeded(62@(42@,25i))
if 
  210@(42@,25i) <> 0
goto_if_false @RYDER2_41595
Pickup.Remove(210@(42@,25i))
210@(42@,25i) = 0

:RYDER2_41595
42@ += 1
goto @RYDER2_41526

:RYDER2_41609
42@ = 0

:RYDER2_41616
if 
  5 > 42@
goto_if_false @RYDER2_41648
42@ += 1
goto @RYDER2_41616

:RYDER2_41648
Blip.Remove(119@)
Blip.Remove(120@)
Blip.Remove(121@)
Blip.Remove(122@)
Blip.Remove(123@)
42@ = 0

:RYDER2_41680
if 
  5 > 42@
goto_if_false @RYDER2_41741
if 
  Object.DoesExist(308@(42@,5i))
goto_if_false @RYDER2_41727
Object.Delete(308@(42@,5i))

:RYDER2_41727
42@ += 1
goto @RYDER2_41680

:RYDER2_41741
if 
  Object.DoesExist(313@)
goto_if_false @RYDER2_41762
Object.Delete(313@)

:RYDER2_41762
if 
  Object.DoesExist(93@)
goto_if_false @RYDER2_41783
Object.Delete(93@)

:RYDER2_41783
if 
  Car.DoesExist(95@)
goto_if_false @RYDER2_41829
if 
  not Car.IsDead(95@)
goto_if_false @RYDER2_41829
Car.FreezePosition(95@, False)
Car.SetCollision(95@, True)

:RYDER2_41829
Game.SwitchEmergencyServices(True)
DecisionMaker.Remove(237@)
DecisionMaker.Remove(236@)
DecisionMaker.Remove(235@)
DecisionMaker.Remove(238@)
CarGenerator.DontSuppressCarModel(414)
Hud.ClearCounter($ryder_health)
Hud.ClearCounter($6890)
Streaming.MarkModelAsNoLongerNeeded(287)
Streaming.MarkModelAsNoLongerNeeded(414)
Streaming.MarkModelAsNoLongerNeeded(470)
Streaming.MarkModelAsNoLongerNeeded(500)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(#CJ_CARDBRD_PICKUP)
Streaming.MarkModelAsNoLongerNeeded(105)
Streaming.MarkModelAsNoLongerNeeded(106)
Streaming.RemoveAnimation("RYDER")
Streaming.RemoveAnimation("COLT45")
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SetWantedMultiplier(1.0)
$timer_mobile_start = Clock.GetGameTimer()
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
$onmission = 0
Mission.Finish
return 

//-------------Mission 27---------------
// Originally: OG Loc

:TWAR7
script_name 'TWAR7'
gosub @TWAR7_47
if 
  has_deatharrest_been_executed 
goto_if_false @TWAR7_38
gosub @TWAR7_23165

:TWAR7_38
gosub @TWAR7_23270
terminate_this_script 

:TWAR7_47
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('SMOKE1')
if 
  $onmission == 0
goto_if_false @TWAR7_130
$mc_strap = Char.Create(PedType.Mission2, 292, 1543.2, -1687.0, 12.5)
66@ = Blip.AddForCoord(2454.4, -1284.5, 22.7)

:TWAR7_130
Text.ClearPrints
wait 0
67@ = 0
68@ = 0
69@ = 0
70@ = 0
85@ = 0
71@ = 0
72@ = 0
73@ = 0
79@ = 0
80@ = 0
133@ = 0.0
134@ = 0.0
135@ = 0.0
136@ = 0.0
137@ = 0.0
138@ = 0.0
139@ = 0.0
140@ = 0.0
83@ = 0
84@ = 0
85@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
141@ = 0.0
142@ = 0.0
143@ = 0.0
144@ = 0.0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
81@ = 0
82@ = 0.0
Player.MakeGangDisappear
World.ClearArea(2072.3, -1695.2, 12.5, 80.0, True)
65@ = Object.Create(#LAE_SMOKECUTSCENE, 2055.0, -1695.0, 12.5)
Cutscene.Load('SMOKE1A')

:TWAR7_515
if 
  not Cutscene.HasLoaded
goto_if_false @TWAR7_539
wait 0
goto @TWAR7_515

:TWAR7_539
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:TWAR7_548
if 
  not Cutscene.HasFinished
goto_if_false @TWAR7_572
wait 0
goto @TWAR7_548

:TWAR7_572
Camera.DoFade(0, Fade.Out)

:TWAR7_578
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_602
wait 0
goto @TWAR7_578

:TWAR7_602
Cutscene.Clear
Object.Delete(65@)
Player.MakeGangReappear
Player.SetControl($player1, False)
Camera.SetFadingColor(0, 0, 0)
wait 0
Streaming.RequestModel(466)
Streaming.LoadSpecialCharacter(1, 'SMOKE')
Streaming.LoadSpecialCharacter(2, 'SWEET')
Streaming.LoadAllModelsNow
Group.Remove($Players_Group)
Player.SetGroupRecruitment($player1, False)
Player.SetGroupToFollowAlways($player1, True)
Hud.SwitchWidescreen(True)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Player.MakeGangDisappear
Camera.SetFixedPosition(2073.87, -1682.701, 14.1963, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2073.698, -1683.686, 14.1768, SwitchType.JumpCut)
148@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
149@ = DecisionMakerChar.Copy(65542)
146@ = DecisionMakerGroup.Load(0)
DecisionMakerGroup.ClearEventResponse(146@, 54)
DecisionMakerGroup.AddEventResponse(146@, 54, 1513, 100.0, 100.0, 100.0, 100.0, True, True)
DecisionMakerGroup.ClearEventResponse(146@, 36)
DecisionMakerGroup.AddEventResponse(146@, 36, 1510, 0.0, 100.0, 0.0, 0.0, True, False)
DecisionMakerGroup.ClearEventResponse(146@, 71)
DecisionMakerGroup.ClearEventResponse(146@, 9)
Group.SetDecisionMaker($Players_Group, 146@)
World.ClearArea(2075.0, -1688.5, 12.29, 10.0, True)
Car.CustomPlateForNextCar(466, "_A2TMFK_")
37@ = Car.Create(466, 2075.0, -1688.5, 12.29)
Car.SetHeading(37@, 359.74)
Car.ChangeColor(37@, 98, 14)
Car.SetCanRespray(37@, False)
Audio.SetRadioChannel(RadioChannel.BounceFM)
World.ClearArea(2077.0, -1691.1, 12.5, 1.0, True)
$big_smoke = Char.Create(PedType.Mission2, 290, 2077.0, -1691.1, 12.5)
Char.SetGetOutUpsideDownCar($big_smoke, False)
Char.SetHeading($big_smoke, 255.7)
Char.SetNeverTargeted($big_smoke, True)
Char.SetCantBeDraggedOut($big_smoke, True)
Char.SetAnimGroup($big_smoke, "FATMAN")
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger($big_smoke, 37@, -2, 0)
Char.SetDecisionMaker($big_smoke, 149@)
World.ClearArea(2075.3, -1693.4, 12.5, 1.0, True)
$sweet = Char.Create(PedType.Mission2, 291, 2075.3, -1693.4, 12.5)
Char.SetGetOutUpsideDownCar($sweet, False)
Char.SetNeverTargeted($sweet, True)
Char.SetCantBeDraggedOut($sweet, True)
Char.SetAnimGroup($sweet, "GANG2")
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger($sweet, 37@, -2, 2)
Char.SetDecisionMaker($sweet, 149@)
Char.ClearTasksImmediately($scplayer)
World.ClearArea(2072.9, -1690.6, 12.5, 1.0, True)
Char.SetCoordinates($scplayer, 2072.9, -1690.6, 12.5)
Char.SetHeading($scplayer, 33.0)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsDriver($scplayer, 37@, -2)
Game.SwitchRandomTrains(False)
World.DeleteAllTrains
Game.EnableAmbientCrime(False)
World.SwitchEntryExit('LAHS1A', False)
Camera.DoFade(500, Fade.In)
69@ = 1
skip_cutscene_start_internal @TWAR7_1756

:TWAR7_1306
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @TWAR7_1332
goto @TWAR7_23183

:TWAR7_1332
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_1364
goto @TWAR7_23165

:TWAR7_1364
if or
  67@ == 0
  67@ == 1
goto_if_false @TWAR7_1674
if 
  81@ == 1
goto_if_false @TWAR7_1674
if 
  Skip.IsWaitingForScriptToFadeIn
goto_if_false @TWAR7_1674
Player.SetControl($player1, False)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($sweet, False)
Char.ShutUpForScriptedSpeech($big_smoke, False)
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
83@ = 0
if 
  Char.IsDead($mc_strap)
goto_if_false @TWAR7_1598
Streaming.RequestAnimation("CAR_CHAT")
Streaming.LoadSpecialCharacter(3, 'OGLOC')
Streaming.LoadAllModelsNow
$mc_strap = Char.Create(PedType.Mission2, 292, 1543.2, -1687.0, 12.5)
Char.SetGetOutUpsideDownCar($mc_strap, False)
Char.SetHeading($mc_strap, 97.2)
Char.SetNeverTargeted($mc_strap, True)
Char.SetCantBeDraggedOut($mc_strap, True)
Char.SetSuffersCriticalHits($mc_strap, False)
Char.SetOnlyDamagedByPlayer($mc_strap, True)
Char.WarpIntoCarAsPassenger($mc_strap, 37@, -1)
Char.SetSenseRange($mc_strap, 80.0)

:TWAR7_1598
Blip.Remove(66@)
66@ = Blip.AddForCoord(2454.4, -1284.5, 22.7)
Text.PrintNow('SMK1_10', 7000, 1)
Player.SetControl($player1, True)
Camera.DoFade(1000, Fade.In)
85@ = 2
68@ = 2
67@ = 1

:TWAR7_1674
if 
  67@ == 0
goto_if_false @TWAR7_2248
if 
  Char.IsInCar($scplayer, 37@)
goto_if_false @TWAR7_2248
if 
  Char.IsInCar($big_smoke, 37@)
goto_if_false @TWAR7_2248
if 
  Char.IsInCar($sweet, 37@)
goto_if_false @TWAR7_2248
69@ = 0

:TWAR7_1756
skip_cutscene_end 
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_1790
goto @TWAR7_23165

:TWAR7_1790
if 
  69@ == 1
goto_if_false @TWAR7_1914
Camera.DoFade(500, Fade.Out)

:TWAR7_1815
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_1839
wait 0
goto @TWAR7_1815

:TWAR7_1839
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_1871
goto @TWAR7_23165

:TWAR7_1871
Char.ClearTasksImmediately($scplayer)
Char.WarpIntoCar($scplayer, 37@)
Char.ClearTasksImmediately($big_smoke)
Char.WarpIntoCarAsPassenger($big_smoke, 37@, 0)
Char.ClearTasksImmediately($sweet)
Char.WarpIntoCarAsPassenger($sweet, 37@, 2)

:TWAR7_1914
if 
  $h9_door_c == 1
goto_if_false @TWAR7_2009
Skip.SetUpForSpecificVehicle(1526.9, -1654.5, 12.1, 180.0, 37@)
if 
  $tw7_trip_skip_flag == 0
goto_if_false @TWAR7_1993
Text.PrintHelp('SKIP_1')
$tw7_trip_skip_flag = 1

:TWAR7_1993
Text.PrintNow('SMK1_02', 7000, 1)

:TWAR7_2009
if 
  $h9_door_c == 2
goto_if_false @TWAR7_2095
Skip.SetUpForVehicleFinishedByScript(2453.8, -1305.0, 22.5, 0.0, 37@)
if 
  $tw7_trip_skip_flag == 0
goto_if_false @TWAR7_2088
Text.PrintHelp('SKIP_1')
$tw7_trip_skip_flag = 1

:TWAR7_2088
81@ = 1

:TWAR7_2095
66@ = Blip.AddForCoord(1532.8, -1672.9, 12.4)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Player.MakeGangReappear
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
if 
  69@ == 1
goto_if_false @TWAR7_2220
Camera.DoFade(500, Fade.In)

:TWAR7_2164
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_2188
wait 0
goto @TWAR7_2164

:TWAR7_2188
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_2220
goto @TWAR7_23165

:TWAR7_2220
TIMERB = 0
68@ = 0
71@ = 1
67@ = 1

:TWAR7_2248
if 
  67@ == 1
goto_if_false @TWAR7_4048
if 
  68@ == 0
goto_if_false @TWAR7_2624
if 
  83@ == 0
goto_if_false @TWAR7_2388
if 
  85@ == 0
goto_if_false @TWAR7_2388
if 
  TIMERB > 7000
goto_if_false @TWAR7_2388
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($big_smoke, True)
Char.ShutUpForScriptedSpeech($sweet, True)
83@ = 1
84@ = 0
gosub @TWAR7_29790
85@ = 1

:TWAR7_2388
if 
  85@ == 1
goto_if_false @TWAR7_2452
if 
  83@ == 0
goto_if_false @TWAR7_2452
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($big_smoke, False)
Char.ShutUpForScriptedSpeech($sweet, False)
85@ = 2

:TWAR7_2452
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @TWAR7_2503
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @TWAR7_2503
Char.SetCoordinates($scplayer, 1531.4, -1693.7, 12.4)

:TWAR7_2503
if 
  Char.IsInCar($scplayer, 37@)
goto_if_false @TWAR7_2624
if 
  Char.IsInCar($big_smoke, 37@)
goto_if_false @TWAR7_2624
if 
  Char.IsInCar($sweet, 37@)
goto_if_false @TWAR7_2624
if 
  Char.LocateInCar3D($scplayer, 1532.8, -1672.9, 12.4, 4.0, 4.0, 4.0, True)
goto_if_false @TWAR7_2624
Text.ClearHelp
Player.SetControl($player1, False)
68@ = 1

:TWAR7_2624
if 
  68@ == 1
goto_if_false @TWAR7_3598
Player.SetControl($player1, False)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($big_smoke, False)
Char.ShutUpForScriptedSpeech($sweet, False)
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
83@ = 0
if 
  $h9_door_c == 0
goto_if_false @TWAR7_2712
$h9_door_c = 1

:TWAR7_2712
Skip.Clear
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:TWAR7_2729
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_2753
wait 0
goto @TWAR7_2729

:TWAR7_2753
Player.MakeSafeForCutscene($player1)
Streaming.Switch(False)
World.ClearArea(1532.8, -1672.9, 12.4, 300.0, True)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1496.5, -1672.6, 13.2)
Char.Delete($big_smoke)
Char.Delete($sweet)
Car.Delete(37@)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.MarkModelAsNoLongerNeeded(466)
Txd.LoadDictionary('LD_BUM')
Txd.LoadSprite(1, "BUM2")
Txd.LoadSprite(2, "BLKDOT")
Streaming.LoadAllModelsNow
Text.UseCommands(True)
Cutscene.Load('SMOKE1B')

:TWAR7_2903
if 
  not Cutscene.HasLoaded
goto_if_false @TWAR7_2927
wait 0
goto @TWAR7_2903

:TWAR7_2927
Cutscene.Start
Camera.DoFade(1000, Fade.In)
TIMERA = 0

:TWAR7_2943
if 
  not Cutscene.HasFinished
goto_if_false @TWAR7_2967
wait 0
goto @TWAR7_2943

:TWAR7_2967
Cutscene.Clear
Camera.DoFade(0, Fade.Out)

:TWAR7_2975
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_2999
wait 0
goto @TWAR7_2975

:TWAR7_2999
Text.UseCommands(False)
Txd.Remove
Streaming.RequestModel(466)
Streaming.RequestAnimation("CAR_CHAT")
Streaming.LoadSpecialCharacter(1, 'SMOKE')
Streaming.LoadSpecialCharacter(2, 'SWEET')
Streaming.LoadSpecialCharacter(3, 'OGLOC')
Streaming.LoadAllModelsNow
Car.CustomPlateForNextCar(466, "_A2TMFK_")
37@ = Car.Create(466, 1532.8, -1672.9, 12.4)
Car.SetHeading(37@, 184.0)
Car.ChangeColor(37@, 98, 14)
Car.SetCanRespray(37@, False)
Char.WarpIntoCar($scplayer, 37@)
Audio.SetRadioChannel(RadioChannel.BounceFM)
$big_smoke = Char.Create(PedType.Mission2, 290, 2072.3, -1697.2, 12.5)
Char.SetGetOutUpsideDownCar($big_smoke, False)
Char.SetHeading($big_smoke, 255.7)
Char.SetNeverTargeted($big_smoke, True)
Char.SetCantBeDraggedOut($big_smoke, True)
Char.SetAnimGroup($big_smoke, "FATMAN")
Task.EnterCarAsPassenger($big_smoke, 37@, -2, 0)
Char.SetDecisionMaker($big_smoke, 149@)
Char.WarpIntoCarAsPassenger($big_smoke, 37@, -1)
$sweet = Char.Create(PedType.Mission2, 291, 2072.3, -1696.2, 12.5)
Char.SetGetOutUpsideDownCar($sweet, False)
Char.SetNeverTargeted($sweet, True)
Char.SetCantBeDraggedOut($sweet, True)
Char.SetAnimGroup($sweet, "GANG2")
Task.EnterCarAsPassenger($sweet, 37@, -2, 2)
Char.SetDecisionMaker($sweet, 149@)
Char.WarpIntoCarAsPassenger($sweet, 37@, -1)
$mc_strap = Char.Create(PedType.Mission2, 292, 1543.2, -1687.0, 12.5)
Char.SetGetOutUpsideDownCar($mc_strap, False)
Char.SetHeading($mc_strap, 97.2)
Char.SetNeverTargeted($mc_strap, True)
Char.SetCantBeDraggedOut($mc_strap, True)
Char.SetSuffersCriticalHits($mc_strap, False)
Char.SetOnlyDamagedByPlayer($mc_strap, True)
Char.WarpIntoCarAsPassenger($mc_strap, 37@, -1)
Char.SetSenseRange($mc_strap, 80.0)
DecisionMakerChar.ClearEventResponse(148@, 79)
DecisionMakerChar.ClearEventResponse(148@, 36)
DecisionMakerChar.AddEventResponse(148@, 36, 1022, 0.0, 100.0, 0.0, 0.0, True, True)
Char.SetDecisionMaker($mc_strap, 148@)
Blip.Remove(66@)
66@ = Blip.AddForCoord(2454.4, -1284.5, 22.7)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_3554
goto @TWAR7_23165

:TWAR7_3554
Camera.DoFade(1000, Fade.In)
Text.PrintNow('SMK1_10', 7000, 1)
TIMERB = 0
85@ = 0
68@ = 2

:TWAR7_3598
if 
  68@ == 2
goto_if_false @TWAR7_4048
if 
  83@ == 0
goto_if_false @TWAR7_3727
if 
  85@ == 0
goto_if_false @TWAR7_3727
if 
  TIMERB > 7000
goto_if_false @TWAR7_3727
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($big_smoke, True)
Char.ShutUpForScriptedSpeech($sweet, True)
Char.ShutUpForScriptedSpeech($mc_strap, True)
83@ = 2
84@ = 0
gosub @TWAR7_29790
85@ = 1

:TWAR7_3727
if 
  85@ == 1
goto_if_false @TWAR7_3798
if 
  83@ == 0
goto_if_false @TWAR7_3798
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($big_smoke, False)
Char.ShutUpForScriptedSpeech($sweet, False)
Char.ShutUpForScriptedSpeech($mc_strap, False)
85@ = 2

:TWAR7_3798
if 
  Char.IsInAnyCar($mc_strap)
goto_if_false @TWAR7_3897
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @TWAR7_3897
if 
  Char.IsInAnyCar($big_smoke)
goto_if_false @TWAR7_3897
if 
  Char.IsInAnyCar($sweet)
goto_if_false @TWAR7_3897
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @TWAR7_3897
Char.SetCoordinates($scplayer, 2454.7, -1294.5, 22.7)

:TWAR7_3897
if 
  Char.IsInCar($scplayer, 37@)
goto_if_false @TWAR7_4048
if 
  Char.IsInCar($big_smoke, 37@)
goto_if_false @TWAR7_4048
if 
  Char.IsInCar($sweet, 37@)
goto_if_false @TWAR7_4048
if 
  Char.LocateInCar3D($scplayer, 2454.4, -1284.5, 22.7, 4.0, 4.0, 4.0, True)
goto_if_false @TWAR7_4048
if 
  $h9_door_c == 1
goto_if_false @TWAR7_4027
$h9_door_c = 2

:TWAR7_4027
85@ = 0
68@ = 0
67@ = 2

:TWAR7_4048
if 
  67@ == 2
goto_if_false @TWAR7_5665
if 
  68@ == 0
goto_if_false @TWAR7_4312
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
83@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Game.ShutAllCharsUp(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Camera.SetFixedPosition(2451.2, -1295.1, 24.8, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2459.7, -1284.6, 26.5, SwitchType.JumpCut)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($big_smoke, False)
Char.ShutUpForScriptedSpeech($sweet, False)
Char.ShutUpForScriptedSpeech($mc_strap, False)
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
83@ = 0
69@ = 1
skip_cutscene_start_internal @TWAR7_4925
Task.PlayAnim($mc_strap, "CAR_SC1_BR", "CAR_CHAT", 6.0, False, False, False, False, -1)
83@ = 3
84@ = 0
gosub @TWAR7_29790
TIMERA = 0
68@ = 1

:TWAR7_4312
if 
  68@ == 1
goto_if_false @TWAR7_4439
if 
  84@ == 1
goto_if_false @TWAR7_4439
Task.PlayAnim($scplayer, "CAR_SC1_FL", "CAR_CHAT", 6.0, False, False, False, True, -1)
Task.PlayAnim($sweet, "CAR_SC1_BL", "CAR_CHAT", 6.0, False, False, False, False, -1)
68@ = 2

:TWAR7_4439
if 
  68@ == 2
goto_if_false @TWAR7_4524
if 
  84@ == 4
goto_if_false @TWAR7_4524
Task.PlayAnim($big_smoke, "CAR_SC1_FR", "CAR_CHAT", 6.0, False, False, False, False, -1)
68@ = 3

:TWAR7_4524
if 
  68@ == 3
goto_if_false @TWAR7_4711
Sphere.Draw(2468.8, -1278.2, 29.1, 1.2)
if 
  83@ == 0
goto_if_false @TWAR7_4711
if 
  Car.IsStopped(37@)
goto_if_false @TWAR7_4711
145@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 2457.4, -1286.1, 23.0, MoveState.Run, 60000)
Sequence.Close(145@)
Char.PerformSequence($scplayer, 145@)
Sequence.Clear(145@)
145@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 2458.4, -1287.8, 23.0, MoveState.Run, 60000)
Sequence.Close(145@)
Char.PerformSequence($mc_strap, 145@)
Sequence.Clear(145@)
68@ = 4

:TWAR7_4711
if 
  68@ == 4
goto_if_false @TWAR7_4860
Sphere.Draw(2468.8, -1278.2, 29.1, 1.2)
$task_status = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_4860
if 
  Char.IsInAnyCar($big_smoke)
goto_if_false @TWAR7_4816
Char.WarpFromCarToCoord($big_smoke, 2472.8, -1277.9, 28.9)

:TWAR7_4816
Char.WarpIntoCar($big_smoke, 37@)
Car.LockDoors(37@, CarLock.Locked)
Task.CarDriveWander($big_smoke, 37@, 15.0, DrivingMode.AvoidCars)
TIMERA = 0
68@ = 5

:TWAR7_4860
if 
  68@ == 5
goto_if_false @TWAR7_5665
Sphere.Draw(2468.8, -1278.2, 29.1, 1.2)
if 
  TIMERA > 0
goto_if_false @TWAR7_5665
69@ = 0

:TWAR7_4925
skip_cutscene_end 
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_4959
goto @TWAR7_23165

:TWAR7_4959
if 
  69@ == 1
goto_if_false @TWAR7_5339
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
83@ = 0
Camera.DoFade(500, Fade.Out)

:TWAR7_5001
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_5069
Sphere.Draw(2468.8, -1278.2, 29.1, 1.2)
wait 0
Sphere.Draw(2468.8, -1278.2, 29.1, 1.2)
goto @TWAR7_5001

:TWAR7_5069
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_5101
goto @TWAR7_23165

:TWAR7_5101
World.ClearArea(2457.4, -1286.1, 23.0, 1.0, True)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 2457.4, -1286.1, 23.0)
Char.SetHeading($scplayer, 230.2)
World.ClearArea(2458.4, -1287.8, 23.0, 1.0, True)
Char.ClearTasksImmediately($mc_strap)
Char.SetCoordinates($mc_strap, 2458.4, -1287.8, 23.0)
Char.SetHeading($mc_strap, 230.2)
World.ClearArea(2452.4, -1267.6, 23.8, 5.0, True)
Car.SetCoordinates(37@, 2452.4, -1267.6, 23.8)
Car.SetHeading(37@, 0.0)
if 
  Char.IsInAnyCar($big_smoke)
goto_if_false @TWAR7_5309
Char.WarpFromCarToCoord($big_smoke, 2472.8, -1277.9, 28.9)

:TWAR7_5309
Char.WarpIntoCar($big_smoke, 37@)
Car.LockDoors(37@, CarLock.Locked)
Task.CarDriveWander($big_smoke, 37@, 15.0, DrivingMode.AvoidCars)

:TWAR7_5339
145@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2463.5, -1286.9, 25.2, MoveState.Run, -2)
Task.GoStraightToCoord(-1, 2463.9, -1278.4, 29.0, MoveState.Run, -2)
Task.GoStraightToCoord(-1, 2467.8, -1277.1, 28.9, MoveState.Run, -2)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(145@)
Char.PerformSequence($mc_strap, 145@)
Sequence.Clear(145@)
Streaming.RemoveAnimation("CAR_CHAT")
Blip.Remove(66@)
66@ = Blip.AddForCoord(2468.8, -1278.4, 28.9)
Blip.SetAsFriendly(66@, False)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Player.MakeGangReappear
Hud.SwitchWidescreen(False)
Game.ShutAllCharsUp(False)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Text.ClearPrints
Text.PrintNow('SMK1_03', 7000, 1)
if 
  69@ == 1
goto_if_false @TWAR7_5651
Camera.DoFade(500, Fade.In)

:TWAR7_5551
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_5619
Sphere.Draw(2468.8, -1278.2, 29.1, 1.2)
wait 0
Sphere.Draw(2468.8, -1278.2, 29.1, 1.2)
goto @TWAR7_5551

:TWAR7_5619
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_5651
goto @TWAR7_23165

:TWAR7_5651
68@ = 0
67@ = 3

:TWAR7_5665
if 
  67@ == 3
goto_if_false @TWAR7_8884
if 
  68@ == 0
goto_if_false @TWAR7_5756
if 
  Char.LocateStoppedOnFoot3D($scplayer, 2468.8, -1278.2, 29.1, 1.2, 1.2, 3.0, True)
goto_if_false @TWAR7_5756
68@ = 1

:TWAR7_5756
if 
  68@ == 1
goto_if_false @TWAR7_6760
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
83@ = 0
Camera.DoFade(500, Fade.Out)

:TWAR7_5802
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_5826
wait 0
goto @TWAR7_5802

:TWAR7_5826
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_5858
goto @TWAR7_23165

:TWAR7_5858
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Game.ShutAllCharsUp(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Streaming.RequestModel(461)
Streaming.RequestModel(372)
Streaming.RequestModel(109)
Streaming.RequestModel(352)
Streaming.RequestAnimation("CRIB")
Streaming.RequestAnimation("MISC")
Streaming.RequestAnimation("GANGS")
Streaming.RequestAnimation("RAPPING")
Txd.LoadDictionary('LD_BUM')
Txd.LoadSprite(1, "BUM1")
Txd.LoadSprite(2, "BLKDOT")
Streaming.LoadAllModelsNow
Text.UseCommands(True)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 1817)

:TWAR7_5983
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @TWAR7_6009
wait 0
goto @TWAR7_5983

:TWAR7_6009
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_6041
goto @TWAR7_23165

:TWAR7_6041
Streaming.LoadAllModelsNow
World.ClearArea(2471.0, -1285.1, 28.3, 30.0, True)
36@ = Car.Create(461, 2471.0, -1285.1, 28.3)
Car.SetHeading(36@, 272.5)
Car.SetCanBurstTires(36@, False)
World.ClearArea(2488.2, -1279.9, 30.0, 30.0, True)
35@ = Car.Create(461, 2488.2, -1279.9, 30.0)
Car.SetOnlyDamagedByPlayer(35@, True)
Car.SetHeading(35@, 286.4)
Car.SetAlwaysCreateSkids(35@, True)
Car.SetCanBurstTires(35@, False)
Car.SetProofs(35@, True, True, True, True, True)
World.ClearArea(2483.9, -1280.2, 29.4, 30.0, True)
34@ = Char.Create(PedType.Mission1, 109, 2483.9, -1280.2, 29.4)
Char.ShutUpForScriptedSpeech(34@, True)
Char.SetMoney(34@, 500)
Char.SetHeading(34@, 261.6)
Char.GiveWeapon(34@, WeaponType.Tec9, 30000)
Char.SetSuffersCriticalHits(34@, False)
Char.SetOnlyDamagedByPlayer(34@, True)
Char.SetCanBeKnockedOffBike(34@, True)
Char.SetStayInSamePlace(34@, True)
Char.SetProofs(34@, True, True, False, True, True)
Char.SetShootRate(34@, 20)
Char.SetDecisionMaker(34@, 149@)
147@ = Sequence.Open()
Task.DriveBy(-1, 34@, -1, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, False, 100)
Sequence.Close(147@)
Group.SetSequence($Players_Group, 147@)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($mc_strap)
World.ClearArea(2468.0, -1278.5, 29.1, 1.0, True)
Char.SetCoordinates($scplayer, 2468.0, -1278.5, 29.1)
Char.SetHeading($scplayer, 269.4)
World.ClearArea(2467.4, -1275.8, 28.8, 1.0, True)
Char.SetCoordinates($mc_strap, 2467.4, -1275.8, 28.8)
Char.SetHeading($mc_strap, 282.8)
145@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2469.2, -1278.7, 29.3, MoveState.Walk, 60000)
Task.AchieveHeading(-1, 262.0)
Task.PlayAnim(-1, "CRIB_USE_SWITCH", "CRIB", 4.0, False, False, False, False, 800)
Task.LookAtChar(-1, $mc_strap, 7000)
Sequence.Close(145@)
Char.PerformSequence($scplayer, 145@)
Sequence.Clear(145@)
69@ = 1
skip_cutscene_start_internal @TWAR7_8172
Text.ClearPrints
Camera.SetFixedPosition(2461.7, -1273.7, 30.0, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2470.1, -1277.1, 30.7, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:TWAR7_6697
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_6721
wait 0
goto @TWAR7_6697

:TWAR7_6721
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_6753
goto @TWAR7_23165

:TWAR7_6753
68@ = 2

:TWAR7_6760
if 
  68@ == 2
goto_if_false @TWAR7_6884
if 
  Char.IsPlayingAnim($scplayer, "CRIB_USE_SWITCH")
goto_if_false @TWAR7_6884
82@ = Char.GetAnimCurrentTime($scplayer, "CRIB_USE_SWITCH")
if 
  82@ > 0.65
goto_if_false @TWAR7_6884
Audio.ReportMissionAudioEventAtPosition(2469.2, -1278.7, 29.3, 1102)
68@ = 3

:TWAR7_6884
if 
  68@ == 3
goto_if_false @TWAR7_7086
$task_status = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_7086
145@ = Sequence.Open()
Task.PlayAnim(-1, "PRTIAL_GNGTLKE", "GANGS", 4.0, False, False, False, False, -1)
Task.GoStraightToCoord(-1, 2467.8, -1274.4, 28.8, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, 2468.6, -1273.3, 28.8, MoveState.Walk, -2)
Task.AchieveHeading(-1, 278.7)
Sequence.Close(145@)
Char.PerformSequence($mc_strap, 145@)
Sequence.Clear(145@)
83@ = 4
84@ = 0
130@ = 5
gosub @TWAR7_29790
68@ = 4

:TWAR7_7086
if 
  68@ == 4
goto_if_false @TWAR7_7198
if 
  84@ > 2
goto_if_false @TWAR7_7198
145@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $mc_strap)
Task.PlayAnim(-1, "PLYR_SHKHEAD", "MISC", 4.0, False, False, False, False, -1)
Sequence.Close(145@)
Char.PerformSequence($scplayer, 145@)
Sequence.Clear(145@)
68@ = 5

:TWAR7_7198
if 
  68@ == 5
goto_if_false @TWAR7_7402
if 
  83@ == 0
goto_if_false @TWAR7_7402
145@ = Sequence.Open()
Task.PlayAnim(-1, "BNG_WNDW", "MISC", 4.0, False, False, False, False, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(145@)
Char.PerformSequence($mc_strap, 145@)
Sequence.Clear(145@)
145@ = Sequence.Open()
Task.PlayAnim(-1, "LAUGH_01", "RAPPING", 4.0, False, False, False, False, -1)
Sequence.Close(145@)
Char.PerformSequence($scplayer, 145@)
Sequence.Clear(145@)
83@ = 4
84@ = 5
130@ = 9
gosub @TWAR7_29790
TIMERA = 0
68@ = 6

:TWAR7_7402
if 
  68@ == 6
goto_if_false @TWAR7_7512
if 
  Char.IsPlayingAnim($mc_strap, "BNG_WNDW")
goto_if_false @TWAR7_7512
82@ = Char.GetAnimCurrentTime($mc_strap, "BNG_WNDW")
if 
  82@ > 0.4
goto_if_false @TWAR7_7512
Audio.ReportMissionAudioEventAtPosition(2468.6, -1273.3, 28.8, 1103)
68@ = 7

:TWAR7_7512
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_8884
if 
  not Car.IsDead(35@)
goto_if_false @TWAR7_8884
if 
  68@ == 7
goto_if_false @TWAR7_7698
if 
  83@ == 0
goto_if_false @TWAR7_7698
145@ = Sequence.Open()
Task.EnterCarAsDriver(-1, 35@, -1)
Sequence.Close(145@)
Char.PerformSequence(34@, 145@)
Sequence.Clear(145@)
83@ = 4
84@ = 9
130@ = 10
gosub @TWAR7_29790
Camera.SetFixedPosition(2495.4, -1282.3, 32.6, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2479.2, -1272.5, 30.5, SwitchType.JumpCut)
68@ = 8

:TWAR7_7698
if 
  68@ == 8
goto_if_false @TWAR7_7756
if 
  Char.IsInCar(34@, 35@)
goto_if_false @TWAR7_7756
Car.StartPlayback(35@, 30)
TIMERA = 0
68@ = 9

:TWAR7_7756
if 
  68@ == 9
goto_if_false @TWAR7_8070
if 
  TIMERA > 2000
goto_if_false @TWAR7_8070
if 
  not Car.IsDead(36@)
goto_if_false @TWAR7_8070
World.ClearArea(2468.4, -1282.4, 28.8, 1.0, True)
Char.SetCoordinates($mc_strap, 2468.4, -1282.4, 28.8)
Char.SetHeading($mc_strap, 171.7)
Char.SetNextDesiredMoveState(MoveState.Run)
145@ = Sequence.Open()
Task.EnterCarAsPassenger(-1, 36@, -2, -1)
Sequence.Close(145@)
Char.PerformSequence($mc_strap, 145@)
Sequence.Clear(145@)
World.ClearArea(2467.4, -1281.2, 28.8, 1.0, True)
Char.SetCoordinates($scplayer, 2467.4, -1281.2, 28.8)
Char.SetHeading($scplayer, 171.7)
Char.SetNextDesiredMoveState(MoveState.Run)
145@ = Sequence.Open()
Task.EnterCarAsDriver(-1, 36@, -2)
Sequence.Close(145@)
Char.PerformSequence($scplayer, 145@)
Sequence.Clear(145@)
Camera.SetFixedPosition(2460.9, -1283.7, 30.6, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2472.6, -1284.4, 31.1, SwitchType.JumpCut)
83@ = 5
84@ = 0
gosub @TWAR7_29790
68@ = 10

:TWAR7_8070
if 
  68@ == 10
goto_if_false @TWAR7_8884
if 
  83@ == 0
goto_if_false @TWAR7_8884
if 
  not Char.IsDead($mc_strap)
goto_if_false @TWAR7_8884
if 
  not Car.IsDead(36@)
goto_if_false @TWAR7_8884
if and
  Char.IsInCar($scplayer, 36@)
  Char.IsInCar($mc_strap, 36@)
goto_if_false @TWAR7_8884
69@ = 0

:TWAR7_8172
skip_cutscene_end 
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_8206
goto @TWAR7_23165

:TWAR7_8206
if 
  69@ == 1
goto_if_false @TWAR7_8454
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
83@ = 0
Camera.DoFade(500, Fade.Out)

:TWAR7_8252
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_8276
wait 0
goto @TWAR7_8252

:TWAR7_8276
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_8308
goto @TWAR7_23165

:TWAR7_8308
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_8372
if 
  not Car.IsDead(35@)
goto_if_false @TWAR7_8372
Char.ClearTasks(34@)
if 
  not Char.IsInCar(34@, 35@)
goto_if_false @TWAR7_8372
Char.WarpIntoCar(34@, 35@)

:TWAR7_8372
if 
  not Car.IsDead(36@)
goto_if_false @TWAR7_8454
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($mc_strap)
if 
  not Char.IsInCar($scplayer, 36@)
goto_if_false @TWAR7_8425
Char.WarpIntoCar($scplayer, 36@)

:TWAR7_8425
if 
  not Char.IsInCar($mc_strap, 36@)
goto_if_false @TWAR7_8454
Task.WarpCharIntoCarAsPassenger($mc_strap, 36@, -1)

:TWAR7_8454
Player.EnsureHasDriveByWeapon($player1, 78)
Char.GiveWeapon($mc_strap, WeaponType.Tec9, 30000)
Char.SetCurrentWeapon($mc_strap, WeaponType.Tec9)
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $mc_strap)
72@ = 1
71@ = 1
Char.SetRelationship($mc_strap, RelationshipType.Hate, PedType.Mission1)
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_8596
if 
  not Car.IsDead(35@)
goto_if_false @TWAR7_8596
if 
  Car.IsPlaybackGoingOn(35@)
goto_if_false @TWAR7_8566
Car.StopPlayback(35@)

:TWAR7_8566
Car.SetCoordinates(35@, 2521.2, -1359.0, 27.3)
Car.SetHeading(35@, 295.2)

:TWAR7_8596
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Streaming.RemoveAnimation("CRIB")
Streaming.RemoveAnimation("MISC")
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("RAPPING")
Text.ClearHelp
Text.PrintNow('SMK1_04', 7000, 1)
Blip.Remove(66@)
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_8690
66@ = Blip.AddForChar(34@)
Blip.SetAsFriendly(66@, False)

:TWAR7_8690
Char.HideWeaponForScriptedCutscene($scplayer, False)
Game.ShutAllCharsUp(False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.RestoreJumpcut
Player.SetControl($player1, True)
if 
  69@ == 1
goto_if_false @TWAR7_8797
Camera.DoFade(500, Fade.In)

:TWAR7_8741
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_8765
wait 0
goto @TWAR7_8741

:TWAR7_8765
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_8797
goto @TWAR7_23165

:TWAR7_8797
Text.UseCommands(False)
Txd.Remove
Char.Delete($big_smoke)
Char.Delete($sweet)
Car.Delete(37@)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.MarkModelAsNoLongerNeeded(466)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
if or
  Car.IsDead(35@)
  Car.IsDead(36@)
goto_if_false @TWAR7_8863
goto @TWAR7_23165

:TWAR7_8863
85@ = 0
68@ = 0
67@ = 4

:TWAR7_8884
if 
  67@ > 3
goto_if_false @TWAR7_18503
if 
  15 > 67@
goto_if_false @TWAR7_18503
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_18369
if 
  not Car.IsDead(35@)
goto_if_false @TWAR7_18228
if 
  67@ == 4
goto_if_false @TWAR7_9847
if 
  85@ == 0
goto_if_false @TWAR7_9084
if 
  83@ == 0
goto_if_false @TWAR7_9084
if or
  Char.HasSpottedChar($mc_strap, 34@)
  Char.HasSpottedChar(34@, $mc_strap)
goto_if_false @TWAR7_9084
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_9077
83@ = 6
84@ = 0
130@ = 1
gosub @TWAR7_29790

:TWAR7_9077
85@ = 1

:TWAR7_9084
if 
  73@ == 0
goto_if_false @TWAR7_9300
Path.SwitchRoadsOff(2563.7, -1435.0, 10.0, 2580.3, -1266.4, 100.6)
Path.SwitchRoadsOff(2635.0, -1434.4, 10.0, 2652.0, -1263.6, 100.0)
Path.SwitchRoadsOff(2714.9, -1501.6, 10.0, 2746.1, -1266.4, 100.0)
40@ = Char.CreateRandom(2579.8, -1348.3, 35.5)
Task.Die(40@)
41@ = Char.CreateRandom(2578.8, -1348.3, 35.5)
Char.SetHeading(41@, 260.0)
Task.PlayAnim(41@, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
73@ = 1

:TWAR7_9300
if 
  73@ == 1
goto_if_false @TWAR7_9395
if 
  Car.Locate2D(35@, 2582.6, -1351.8, 5.0, 5.0, False)
goto_if_false @TWAR7_9395
Path.SwitchRoadsOn(2563.7, -1435.0, 10.0, 2580.3, -1266.4, 100.6)
73@ = 2

:TWAR7_9395
if 
  73@ == 2
goto_if_false @TWAR7_9490
if 
  Car.Locate2D(35@, 2653.0, -1329.8, 5.0, 5.0, False)
goto_if_false @TWAR7_9490
Path.SwitchRoadsOn(2635.0, -1434.4, 10.0, 2652.0, -1263.6, 100.0)
73@ = 3

:TWAR7_9490
if 
  73@ == 3
goto_if_false @TWAR7_9585
if 
  Car.Locate2D(35@, 2748.3, -1320.3, 5.0, 5.0, False)
goto_if_false @TWAR7_9585
Path.SwitchRoadsOn(2714.9, -1501.6, 10.0, 2746.1, -1266.4, 100.0)
73@ = 4

:TWAR7_9585
if 
  68@ == 0
goto_if_false @TWAR7_9668
if or
  Char.LocateAnyMeansChar2D($scplayer, 34@, 30.0, 30.0, False)
  Char.HasBeenDamagedByChar(34@, $scplayer)
  Car.HasBeenDamagedByChar(35@, $scplayer)
goto_if_false @TWAR7_9668
Car.StartPlayback(35@, 31)
Streaming.RemoveCarRecording(30)
68@ = 1

:TWAR7_9668
if 
  68@ == 1
goto_if_false @TWAR7_9833
if 
  not Car.IsPlaybackGoingOn(35@)
goto_if_false @TWAR7_9833
Path.SwitchRoadsOn(2563.7, -1435.0, 10.0, 2580.3, -1266.4, 100.6)
Path.SwitchRoadsOn(2635.0, -1434.4, 10.0, 2652.0, -1263.6, 100.0)
Path.SwitchRoadsOn(2714.9, -1501.6, 10.0, 2746.1, -1266.4, 100.0)
TIMERA = 0
85@ = 0
68@ = 0
73@ = 0
67@ = 5

:TWAR7_9833
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_9847
if 
  67@ == 5
goto_if_false @TWAR7_10859
if 
  85@ == 0
goto_if_false @TWAR7_9986
if or
  Char.HasSpottedChar($mc_strap, 34@)
  Char.HasSpottedChar(34@, $mc_strap)
goto_if_false @TWAR7_9961
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_9954
83@ = 6
84@ = 1
130@ = 2
gosub @TWAR7_29790

:TWAR7_9954
85@ = 1

:TWAR7_9961
if 
  68@ == 1
goto_if_false @TWAR7_9986
85@ = 1

:TWAR7_9986
if 
  73@ == 0
goto_if_false @TWAR7_10171
Path.SwitchRoadsOff(2713.9, -1499.3, 10.0, 2746.6, -1266.3, 100.0)
Path.SwitchRoadsOff(2714.6, -1249.9, 10.0, 2744.7, -1332.9, 100.0)
Path.SwitchRoadsOff(2634.6, -1396.6, 10.0, 2651.0, -1264.2, 100.0)
Path.SwitchRoadsOff(2635.1, -1248.0, 10.0, 2651.0, -1055.3, 100.0)
Path.SwitchRoadsOff(2651.5, -1263.8, 10.0, 2579.5, -1248.7, 100.0)
73@ = 1

:TWAR7_10171
if 
  73@ == 1
goto_if_false @TWAR7_10298
if 
  Car.Locate2D(35@, 2712.7, -1265.7, 5.0, 5.0, False)
goto_if_false @TWAR7_10298
Path.SwitchRoadsOn(2713.9, -1499.3, 10.0, 2746.6, -1266.3, 100.0)
Path.SwitchRoadsOn(2714.6, -1249.9, 10.0, 2744.7, -1332.9, 100.0)
73@ = 2

:TWAR7_10298
if 
  73@ == 2
goto_if_false @TWAR7_10457
if 
  Car.Locate2D(35@, 2630.5, -1248.3, 5.0, 5.0, False)
goto_if_false @TWAR7_10457
Path.SwitchRoadsOn(2634.6, -1396.6, 10.0, 2651.0, -1264.2, 100.0)
Path.SwitchRoadsOn(2635.1, -1248.0, 10.0, 2651.0, -1055.3, 100.0)
Path.SwitchRoadsOn(2651.5, -1263.8, 10.0, 2579.5, -1248.7, 100.0)
73@ = 3

:TWAR7_10457
if 
  68@ == 0
goto_if_false @TWAR7_10606
if or
  Char.LocateAnyMeansChar2D($scplayer, 34@, 30.0, 30.0, False)
  Char.HasBeenDamagedByChar(34@, $scplayer)
  Car.HasBeenDamagedByChar(35@, $scplayer)
  TIMERA > 4000
goto_if_false @TWAR7_10606
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_10561
Char.SetProofs(34@, False, False, False, False, False)

:TWAR7_10561
if 
  not Car.IsDead(35@)
goto_if_false @TWAR7_10592
Car.SetProofs(35@, False, False, False, False, False)

:TWAR7_10592
Car.StartPlayback(35@, 32)
68@ = 1

:TWAR7_10606
if 
  68@ == 1
goto_if_false @TWAR7_10845
if 
  not Car.IsPlaybackGoingOn(35@)
goto_if_false @TWAR7_10845
Char.MarkAsNoLongerNeeded(41@)
Char.MarkAsNoLongerNeeded(40@)
Path.SwitchRoadsOn(2713.9, -1499.3, 10.0, 2746.6, -1266.3, 100.0)
Path.SwitchRoadsOn(2714.6, -1249.9, 10.0, 2744.7, -1332.9, 100.0)
Path.SwitchRoadsOn(2634.6, -1396.6, 10.0, 2651.0, -1264.2, 100.0)
Path.SwitchRoadsOn(2635.1, -1248.0, 10.0, 2651.0, -1055.3, 100.0)
Path.SwitchRoadsOn(2651.5, -1263.8, 10.0, 2579.5, -1248.7, 100.0)
TIMERA = 0
85@ = 0
73@ = 0
68@ = 0
67@ = 6

:TWAR7_10845
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_10859
if 
  67@ == 6
goto_if_false @TWAR7_11888
if 
  85@ == 0
goto_if_false @TWAR7_11025
if or
  Char.HasSpottedChar($mc_strap, 34@)
  Char.HasSpottedChar(34@, $mc_strap)
  Char.LocateAnyMeansChar2D($scplayer, 34@, 35.0, 35.0, False)
goto_if_false @TWAR7_11000
TIMERB = 0
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_10993
83@ = 6
84@ = 2
130@ = 3
gosub @TWAR7_29790

:TWAR7_10993
85@ = 1

:TWAR7_11000
if 
  68@ == 1
goto_if_false @TWAR7_11025
85@ = 1

:TWAR7_11025
if 
  73@ == 0
goto_if_false @TWAR7_11210
Path.SwitchRoadsOff(2563.7, -1248.6, 10.0, 2578.9, -1192.2, 100.0)
Path.SwitchRoadsOff(2443.7, -1249.2, 10.0, 2459.1, -1191.9, 100.0)
Path.SwitchRoadsOff(2363.5, -1253.4, 10.0, 2378.7, -1145.5, 100.0)
Path.SwitchRoadsOff(2311.2, -1144.7, 10.0, 2379.1, -1162.1, 100.0)
Path.SwitchRoadsOff(2239.9, -1130.0, 10.0, 2017.6, -928.3, 100.0)
73@ = 1

:TWAR7_11210
if 
  73@ == 1
goto_if_false @TWAR7_11305
if 
  Car.Locate2D(35@, 2563.2, -1191.8, 5.0, 5.0, False)
goto_if_false @TWAR7_11305
Path.SwitchRoadsOn(2563.7, -1248.6, 10.0, 2578.9, -1192.2, 100.6)
73@ = 2

:TWAR7_11305
if 
  73@ == 2
goto_if_false @TWAR7_11400
if 
  Car.Locate2D(35@, 2442.4, -1191.4, 5.0, 5.0, False)
goto_if_false @TWAR7_11400
Path.SwitchRoadsOn(2443.7, -1249.2, 10.0, 2459.1, -1191.9, 100.0)
73@ = 3

:TWAR7_11400
if 
  73@ == 3
goto_if_false @TWAR7_11495
if 
  Car.Locate2D(35@, 2360.1, -1164.8, 5.0, 5.0, False)
goto_if_false @TWAR7_11495
Path.SwitchRoadsOn(2363.5, -1253.4, 10.0, 2378.7, -1145.5, 100.0)
73@ = 4

:TWAR7_11495
if 
  73@ == 4
goto_if_false @TWAR7_11590
if 
  Car.Locate2D(35@, 2315.0, -1145.9, 5.0, 5.0, False)
goto_if_false @TWAR7_11590
Path.SwitchRoadsOn(2311.2, -1144.7, 10.0, 2379.1, -1162.1, 100.0)
73@ = 5

:TWAR7_11590
if 
  68@ == 0
goto_if_false @TWAR7_11677
if or
  Char.LocateAnyMeansChar2D($scplayer, 34@, 30.0, 30.0, False)
  Char.HasBeenDamagedByChar(34@, $scplayer)
  Car.HasBeenDamagedByChar(35@, $scplayer)
  TIMERA > 4000
goto_if_false @TWAR7_11677
Car.StartPlayback(35@, 33)
68@ = 1

:TWAR7_11677
if 
  68@ == 1
goto_if_false @TWAR7_11874
if 
  not Car.IsPlaybackGoingOn(35@)
goto_if_false @TWAR7_11874
Path.SwitchRoadsOn(2563.7, -1248.6, 10.0, 2578.9, -1192.2, 100.6)
Path.SwitchRoadsOn(2443.7, -1249.2, 10.0, 2459.1, -1191.9, 100.0)
Path.SwitchRoadsOn(2363.5, -1253.4, 10.0, 2378.7, -1145.5, 100.0)
Path.SwitchRoadsOn(2311.2, -1144.7, 10.0, 2379.1, -1162.1, 100.0)
TIMERA = 0
85@ = 0
73@ = 0
68@ = 0
67@ = 7

:TWAR7_11874
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_11888
if 
  67@ == 7
goto_if_false @TWAR7_12388
if 
  85@ == 0
goto_if_false @TWAR7_12034
if or
  Char.HasSpottedChar($mc_strap, 34@)
  Char.HasSpottedChar(34@, $mc_strap)
goto_if_false @TWAR7_12009
TIMERB = 0
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_12002
83@ = 6
84@ = 3
130@ = 4
gosub @TWAR7_29790

:TWAR7_12002
85@ = 1

:TWAR7_12009
if 
  68@ == 1
goto_if_false @TWAR7_12034
85@ = 1

:TWAR7_12034
if 
  73@ == 0
goto_if_false @TWAR7_12091
Path.SwitchRoadsOff(1930.6, -1031.9, 10.0, 1574.4, -879.9, 100.0)
73@ = 1

:TWAR7_12091
if 
  73@ == 1
goto_if_false @TWAR7_12186
if 
  Car.Locate2D(35@, 2149.8, -996.1, 5.0, 5.0, False)
goto_if_false @TWAR7_12186
Path.SwitchRoadsOn(2239.9, -1130.0, 10.0, 2017.6, -928.3, 100.0)
73@ = 2

:TWAR7_12186
if 
  68@ == 0
goto_if_false @TWAR7_12273
if or
  Char.LocateAnyMeansChar2D($scplayer, 34@, 30.0, 30.0, False)
  Char.HasBeenDamagedByChar(34@, $scplayer)
  Car.HasBeenDamagedByChar(35@, $scplayer)
  TIMERA > 4000
goto_if_false @TWAR7_12273
Car.StartPlayback(35@, 34)
68@ = 1

:TWAR7_12273
if 
  68@ == 1
goto_if_false @TWAR7_12374
if 
  not Car.IsPlaybackGoingOn(35@)
goto_if_false @TWAR7_12374
Path.SwitchRoadsOn(2239.9, -1130.0, 10.0, 2017.6, -928.3, 100.0)
TIMERA = 0
85@ = 0
73@ = 0
68@ = 0
67@ = 8

:TWAR7_12374
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_12388
if 
  67@ == 8
goto_if_false @TWAR7_13968
if 
  85@ == 0
goto_if_false @TWAR7_12527
if or
  Char.HasSpottedChar($mc_strap, 34@)
  Char.HasSpottedChar(34@, $mc_strap)
goto_if_false @TWAR7_12502
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_12495
83@ = 6
84@ = 4
130@ = 5
gosub @TWAR7_29790

:TWAR7_12495
85@ = 1

:TWAR7_12502
if 
  68@ == 1
goto_if_false @TWAR7_12527
85@ = 1

:TWAR7_12527
if 
  73@ == 0
goto_if_false @TWAR7_12584
Path.SwitchRoadsOff(1879.6, -1024.3, 10.0, 1600.0, -1521.7, 100.0)
73@ = 1

:TWAR7_12584
if 
  73@ == 1
goto_if_false @TWAR7_12679
if 
  Car.Locate2D(35@, 1819.4, -1034.0, 5.0, 5.0, False)
goto_if_false @TWAR7_12679
Path.SwitchRoadsOn(1930.6, -1031.9, 10.0, 1574.4, -879.9, 100.0)
73@ = 2

:TWAR7_12679
if 
  73@ == 2
goto_if_false @TWAR7_12774
if 
  Car.Locate2D(35@, 1755.3, -1489.1, 5.0, 5.0, False)
goto_if_false @TWAR7_12774
Path.SwitchRoadsOn(1879.6, -1024.3, 10.0, 1552.0, -1521.7, 100.0)
73@ = 3

:TWAR7_12774
if 
  68@ == 0
goto_if_false @TWAR7_13714
if or
  Char.LocateAnyMeansChar2D($scplayer, 34@, 30.0, 30.0, False)
  Char.HasBeenDamagedByChar(34@, $scplayer)
  Car.HasBeenDamagedByChar(35@, $scplayer)
  TIMERA > 4000
goto_if_false @TWAR7_13714
set_lvar_int_to_constant 78@ = 410
gosub @TWAR7_26168
42@ = Car.Create(410, 1688.5, -1111.7, 58.5)
52@ = Char.CreateRandomAsDriver(42@)
Car.SetLoadCollisionFlag(42@, True)
Car.SetHeading(42@, 322.3)
Car.StartPlayback(42@, 50)
set_lvar_int_to_constant 78@ = 410
gosub @TWAR7_26168
43@ = Car.Create(410, 1679.7, -1131.6, 59.7)
53@ = Char.CreateRandomAsDriver(43@)
Car.SetLoadCollisionFlag(43@, True)
Car.SetHeading(43@, 321.2)
Car.StartPlayback(43@, 51)
44@ = Car.Create(461, 1644.8, -1177.5, 54.3)
54@ = Char.CreateRandomAsDriver(44@)
Car.SetLoadCollisionFlag(44@, True)
Car.SetHeading(44@, 320.8)
Car.StartPlayback(44@, 52)
set_lvar_int_to_constant 78@ = 410
gosub @TWAR7_26168
45@ = Car.Create(410, 1637.0, -1203.8, 51.5)
55@ = Char.CreateRandomAsDriver(45@)
Car.SetLoadCollisionFlag(45@, True)
Car.SetHeading(45@, 350.3)
Car.StartPlayback(45@, 53)
74@, 75@ = Streaming.GetRandomCarModelInMemory(True)
if 
  74@ >= 0
goto_if_false @TWAR7_13210
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
46@ = Car.Create(74@, 1618.2, -1306.4, 35.6)
Car.SetHeading(46@, 343.7)
Car.SetLoadCollisionFlag(46@, True)
56@ = Char.CreateRandomAsDriver(46@)
Car.StartPlayback(46@, 54)

:TWAR7_13210
74@, 75@ = Streaming.GetRandomCarModelInMemory(True)
if 
  74@ >= 0
goto_if_false @TWAR7_13308
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
47@ = Car.Create(74@, 1621.8, -1317.9, 33.0)
Car.SetHeading(47@, 348.7)
Car.SetLoadCollisionFlag(47@, True)
57@ = Char.CreateRandomAsDriver(47@)
Car.StartPlayback(47@, 55)

:TWAR7_13308
74@, 75@ = Streaming.GetRandomCarModelInMemory(True)
if 
  74@ >= 0
goto_if_false @TWAR7_13406
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
48@ = Car.Create(74@, 1615.6, -1327.7, 31.5)
Car.SetHeading(48@, 352.1)
Car.SetLoadCollisionFlag(48@, True)
58@ = Char.CreateRandomAsDriver(48@)
Car.StartPlayback(48@, 56)

:TWAR7_13406
74@, 75@ = Streaming.GetRandomCarModelInMemory(True)
if 
  74@ >= 0
goto_if_false @TWAR7_13504
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
49@ = Car.Create(74@, 1612.3, -1394.0, 27.6)
Car.SetHeading(49@, 353.6)
Car.SetLoadCollisionFlag(49@, True)
59@ = Char.CreateRandomAsDriver(49@)
Car.StartPlayback(49@, 57)

:TWAR7_13504
74@, 75@ = Streaming.GetRandomCarModelInMemory(True)
if 
  74@ >= 0
goto_if_false @TWAR7_13602
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
50@ = Car.Create(74@, 1612.3, -1462.2, 27.1)
Car.SetHeading(50@, 357.2)
Car.SetLoadCollisionFlag(50@, True)
60@ = Char.CreateRandomAsDriver(50@)
Car.StartPlayback(50@, 58)

:TWAR7_13602
74@, 75@ = Streaming.GetRandomCarModelInMemory(True)
if 
  74@ >= 0
goto_if_false @TWAR7_13700
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
51@ = Car.Create(74@, 1663.4, -1457.0, 24.3)
Car.SetHeading(51@, 51.9)
Car.SetLoadCollisionFlag(51@, True)
61@ = Char.CreateRandomAsDriver(51@)
Car.StartPlayback(51@, 60)

:TWAR7_13700
Car.StartPlayback(35@, 35)
68@ = 1

:TWAR7_13714
if 
  68@ == 1
goto_if_false @TWAR7_13821
if 
  not Car.IsPlaybackGoingOn(35@)
goto_if_false @TWAR7_13755
68@ = 2

:TWAR7_13755
if 
  not Car.IsDead(51@)
goto_if_false @TWAR7_13821
if 
  Car.Locate2D(51@, 1601.4, -1389.5, 5.0, 5.0, False)
goto_if_false @TWAR7_13821
Car.StopPlayback(51@)
68@ = 2

:TWAR7_13821
if 
  68@ == 2
goto_if_false @TWAR7_13954
if 
  not Car.IsPlaybackGoingOn(35@)
goto_if_false @TWAR7_13954
Path.SwitchRoadsOn(1930.6, -1031.9, 10.0, 1574.4, -879.9, 100.0)
Path.SwitchRoadsOn(1879.6, -1024.3, 10.0, 1552.0, -1521.7, 100.0)
TIMERA = 0
73@ = 0
85@ = 0
68@ = 0
67@ = 9

:TWAR7_13954
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_13968
if 
  67@ == 9
goto_if_false @TWAR7_14628
if 
  85@ == 0
goto_if_false @TWAR7_14114
if or
  Char.HasSpottedChar($mc_strap, 34@)
  Char.HasSpottedChar(34@, $mc_strap)
goto_if_false @TWAR7_14089
TIMERB = 0
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_14082
83@ = 6
84@ = 5
130@ = 6
gosub @TWAR7_29790

:TWAR7_14082
85@ = 1

:TWAR7_14089
if 
  68@ == 1
goto_if_false @TWAR7_14114
85@ = 1

:TWAR7_14114
if 
  73@ == 0
goto_if_false @TWAR7_14171
Path.SwitchRoadsOff(1725.8, -1433.3, 10.0, 1838.0, -1459.4, 100.0)
73@ = 1

:TWAR7_14171
if 
  73@ == 1
goto_if_false @TWAR7_14266
if 
  Car.Locate2D(35@, 1781.3, -1437.9, 5.0, 5.0, False)
goto_if_false @TWAR7_14266
Path.SwitchRoadsOn(1725.8, -1433.3, 10.0, 1838.0, -1459.4, 100.0)
73@ = 2

:TWAR7_14266
if 
  68@ == 0
goto_if_false @TWAR7_14513
if or
  Char.LocateAnyMeansChar2D($scplayer, 34@, 30.0, 30.0, False)
  Char.HasBeenDamagedByChar(34@, $scplayer)
  Car.HasBeenDamagedByChar(35@, $scplayer)
  TIMERA > 4000
goto_if_false @TWAR7_14513
Car.MarkAsNoLongerNeeded(42@)
Car.MarkAsNoLongerNeeded(43@)
Car.MarkAsNoLongerNeeded(44@)
Car.MarkAsNoLongerNeeded(45@)
Car.MarkAsNoLongerNeeded(46@)
Car.MarkAsNoLongerNeeded(47@)
Car.MarkAsNoLongerNeeded(48@)
Car.MarkAsNoLongerNeeded(49@)
Car.MarkAsNoLongerNeeded(50@)
Car.MarkAsNoLongerNeeded(51@)
Char.MarkAsNoLongerNeeded(52@)
Char.MarkAsNoLongerNeeded(53@)
Char.MarkAsNoLongerNeeded(54@)
Char.MarkAsNoLongerNeeded(55@)
Char.MarkAsNoLongerNeeded(56@)
Char.MarkAsNoLongerNeeded(57@)
Char.MarkAsNoLongerNeeded(58@)
Char.MarkAsNoLongerNeeded(59@)
Char.MarkAsNoLongerNeeded(60@)
Char.MarkAsNoLongerNeeded(61@)
38@ = Char.CreateRandom(1778.4, -1343.1, 14.7)
Char.SetHeading(38@, 180.0)
39@ = Char.CreateRandom(1778.4, -1344.1, 14.7)
Char.SetHeading(39@, 0.0)
Car.StartPlayback(35@, 36)
68@ = 1

:TWAR7_14513
if 
  68@ == 1
goto_if_false @TWAR7_14614
if 
  not Car.IsPlaybackGoingOn(35@)
goto_if_false @TWAR7_14614
Path.SwitchRoadsOn(1725.8, -1433.3, 10.0, 1838.0, -1459.4, 100.0)
TIMERA = 0
73@ = 0
85@ = 0
68@ = 0
67@ = 10

:TWAR7_14614
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_14628
if 
  67@ == 10
goto_if_false @TWAR7_15329
if 
  85@ == 0
goto_if_false @TWAR7_14774
if or
  Char.HasSpottedChar($mc_strap, 34@)
  Char.HasSpottedChar(34@, $mc_strap)
goto_if_false @TWAR7_14749
TIMERB = 0
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_14742
83@ = 6
84@ = 6
130@ = 7
gosub @TWAR7_29790

:TWAR7_14742
85@ = 1

:TWAR7_14749
if 
  68@ == 1
goto_if_false @TWAR7_14774
85@ = 1

:TWAR7_14774
if 
  73@ == 0
goto_if_false @TWAR7_14895
Path.SwitchRoadsOff(1838.4, -1453.6, 10.0, 1853.7, -1303.4, 100.0)
Path.SwitchRoadsOff(1979.3, -1468.7, 10.0, 1853.5, -1452.5, 100.0)
Path.SwitchRoadsOff(2334.0, -1556.1, 10.0, 2350.5, -1489.7, 100.0)
73@ = 1

:TWAR7_14895
if 
  73@ == 1
goto_if_false @TWAR7_14990
if 
  Car.Locate2D(35@, 1855.7, -1379.0, 5.0, 5.0, False)
goto_if_false @TWAR7_14990
Path.SwitchRoadsOn(1838.4, -1453.6, 10.0, 1853.7, -1303.4, 100.0)
73@ = 2

:TWAR7_14990
if 
  73@ == 2
goto_if_false @TWAR7_15085
if 
  Car.Locate2D(35@, 1971.5, -1474.6, 5.0, 5.0, False)
goto_if_false @TWAR7_15085
Path.SwitchRoadsOn(1979.3, -1468.7, 10.0, 1853.5, -1452.5, 100.0)
73@ = 3

:TWAR7_15085
if 
  68@ == 0
goto_if_false @TWAR7_15172
if or
  Char.LocateAnyMeansChar2D($scplayer, 34@, 30.0, 30.0, False)
  Char.HasBeenDamagedByChar(34@, $scplayer)
  Car.HasBeenDamagedByChar(35@, $scplayer)
  TIMERA > 4000
goto_if_false @TWAR7_15172
Car.StartPlayback(35@, 37)
68@ = 1

:TWAR7_15172
if 
  68@ == 1
goto_if_false @TWAR7_15315
if 
  not Car.IsPlaybackGoingOn(35@)
goto_if_false @TWAR7_15315
Char.MarkAsNoLongerNeeded(38@)
Char.MarkAsNoLongerNeeded(39@)
Path.SwitchRoadsOn(1838.4, -1453.6, 10.0, 1853.7, -1303.4, 100.0)
Path.SwitchRoadsOn(1979.3, -1468.7, 10.0, 1853.5, -1452.5, 100.0)
TIMERA = 0
73@ = 0
85@ = 0
68@ = 0
67@ = 11

:TWAR7_15315
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_15329
if 
  67@ == 11
goto_if_false @TWAR7_15893
if 
  85@ == 0
goto_if_false @TWAR7_15475
if or
  Char.HasSpottedChar($mc_strap, 34@)
  Char.HasSpottedChar(34@, $mc_strap)
goto_if_false @TWAR7_15450
TIMERB = 0
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_15443
83@ = 6
84@ = 7
130@ = 8
gosub @TWAR7_29790

:TWAR7_15443
85@ = 1

:TWAR7_15450
if 
  68@ == 1
goto_if_false @TWAR7_15475
85@ = 1

:TWAR7_15475
if 
  73@ == 0
goto_if_false @TWAR7_15532
Path.SwitchRoadsOff(2350.1, -1516.0, 10.0, 2423.9, -1532.5, 100.0)
73@ = 1

:TWAR7_15532
if 
  73@ == 1
goto_if_false @TWAR7_15659
if 
  Car.Locate2D(35@, 2394.8, -1508.7, 5.0, 5.0, False)
goto_if_false @TWAR7_15659
Path.SwitchRoadsOn(2350.1, -1516.0, 10.0, 2423.9, -1532.5, 100.0)
Path.SwitchRoadsOn(2334.0, -1556.1, 10.0, 2350.5, -1489.7, 100.0)
73@ = 2

:TWAR7_15659
if 
  68@ == 0
goto_if_false @TWAR7_15746
if or
  Char.LocateAnyMeansChar2D($scplayer, 34@, 30.0, 30.0, False)
  Char.HasBeenDamagedByChar(34@, $scplayer)
  Car.HasBeenDamagedByChar(35@, $scplayer)
  TIMERA > 4000
goto_if_false @TWAR7_15746
Car.StartPlayback(35@, 38)
68@ = 1

:TWAR7_15746
if 
  68@ == 1
goto_if_false @TWAR7_15879
if 
  not Car.IsPlaybackGoingOn(35@)
goto_if_false @TWAR7_15879
Path.SwitchRoadsOn(2350.1, -1516.0, 10.0, 2423.9, -1532.5, 100.0)
Path.SwitchRoadsOn(2334.0, -1556.1, 10.0, 2350.5, -1489.7, 100.0)
TIMERA = 0
73@ = 0
85@ = 0
68@ = 0
67@ = 12

:TWAR7_15879
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_15893
if 
  67@ == 12
goto_if_false @TWAR7_16393
if 
  85@ == 0
goto_if_false @TWAR7_16039
if or
  Char.HasSpottedChar($mc_strap, 34@)
  Char.HasSpottedChar(34@, $mc_strap)
goto_if_false @TWAR7_16014
TIMERB = 0
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_16007
83@ = 6
84@ = 8
130@ = 9
gosub @TWAR7_29790

:TWAR7_16007
85@ = 1

:TWAR7_16014
if 
  68@ == 1
goto_if_false @TWAR7_16039
85@ = 1

:TWAR7_16039
if 
  73@ == 0
goto_if_false @TWAR7_16096
Path.SwitchRoadsOff(2379.8, -1373.3, 10.0, 2423.7, -1452.6, 100.0)
73@ = 1

:TWAR7_16096
if 
  73@ == 1
goto_if_false @TWAR7_16191
if 
  Car.Locate2D(35@, 2398.6, -1432.4, 5.0, 5.0, False)
goto_if_false @TWAR7_16191
Path.SwitchRoadsOn(2379.8, -1373.3, 10.0, 2423.7, -1452.6, 100.0)
73@ = 2

:TWAR7_16191
if 
  68@ == 0
goto_if_false @TWAR7_16278
if or
  Char.LocateAnyMeansChar2D($scplayer, 34@, 30.0, 30.0, False)
  Char.HasBeenDamagedByChar(34@, $scplayer)
  Car.HasBeenDamagedByChar(35@, $scplayer)
  TIMERA > 4000
goto_if_false @TWAR7_16278
Car.StartPlayback(35@, 39)
68@ = 1

:TWAR7_16278
if 
  68@ == 1
goto_if_false @TWAR7_16379
if 
  not Car.IsPlaybackGoingOn(35@)
goto_if_false @TWAR7_16379
Path.SwitchRoadsOn(2379.8, -1373.3, 10.0, 2423.7, -1452.6, 100.0)
TIMERA = 0
73@ = 0
85@ = 0
68@ = 0
67@ = 13

:TWAR7_16379
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_16393
if 
  67@ == 13
goto_if_false @TWAR7_17814
gosub @TWAR7_25463
gosub @TWAR7_25201
if 
  85@ == 0
goto_if_false @TWAR7_16553
if or
  Char.HasSpottedChar($mc_strap, 34@)
  Char.HasSpottedChar(34@, $mc_strap)
goto_if_false @TWAR7_16528
TIMERB = 0
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_16521
83@ = 6
84@ = 9
130@ = 10
gosub @TWAR7_29790

:TWAR7_16521
85@ = 1

:TWAR7_16528
if 
  68@ == 1
goto_if_false @TWAR7_16553
85@ = 1

:TWAR7_16553
if 
  73@ == 0
goto_if_false @TWAR7_16706
Path.SwitchRoadsOff(2363.5, -1291.7, 10.0, 2379.5, -1181.2, 100.0)
Path.SwitchRoadsOff(2295.9, -1291.5, 10.0, 2311.5, -1162.3, 100.0)
Path.SwitchRoadsOff(2333.9, -1392.1, 10.0, 2220.2, -1377.1, 100.0)
Path.SwitchRoadsOff(2334.6, -1493.6, 10.0, 2219.8, -1475.2, 100.0)
73@ = 1

:TWAR7_16706
if 
  73@ == 1
goto_if_false @TWAR7_16801
if 
  Car.Locate2D(35@, 2362.8, -1259.3, 5.0, 5.0, False)
goto_if_false @TWAR7_16801
Path.SwitchRoadsOn(2363.5, -1291.7, 10.0, 2379.5, -1181.2, 100.0)
73@ = 2

:TWAR7_16801
if 
  73@ == 2
goto_if_false @TWAR7_16896
if 
  Car.Locate2D(35@, 2294.5, -1263.5, 5.0, 5.0, False)
goto_if_false @TWAR7_16896
Path.SwitchRoadsOn(2295.9, -1291.5, 10.0, 2311.5, -1162.3, 100.0)
73@ = 3

:TWAR7_16896
if 
  73@ == 3
goto_if_false @TWAR7_16991
if 
  Car.Locate2D(35@, 2284.2, -1393.8, 5.0, 5.0, False)
goto_if_false @TWAR7_16991
Path.SwitchRoadsOn(2333.9, -1392.1, 10.0, 2220.2, -1377.1, 100.0)
73@ = 4

:TWAR7_16991
if 
  73@ == 4
goto_if_false @TWAR7_17086
if 
  Car.Locate2D(35@, 2293.8, -1491.7, 5.0, 5.0, False)
goto_if_false @TWAR7_17086
Path.SwitchRoadsOn(2334.6, -1493.6, 10.0, 2219.8, -1475.2, 100.0)
73@ = 5

:TWAR7_17086
if 
  68@ == 0
goto_if_false @TWAR7_17395
if or
  Char.LocateAnyMeansChar2D($scplayer, 34@, 30.0, 30.0, False)
  Char.HasBeenDamagedByChar(34@, $scplayer)
  Car.HasBeenDamagedByChar(35@, $scplayer)
  TIMERA > 4000
goto_if_false @TWAR7_17395
if 
  Streaming.HasModelLoaded(110)
goto_if_false @TWAR7_17233
62@ = Char.Create(PedType.Mission2, 110, 2301.9, -1504.1, 24.3)
Char.SetHeading(62@, 358.5)
Char.GiveWeapon(62@, WeaponType.Tec9, 30000)
Char.SetKindaStayInSamePlace(62@, True)
Char.SetDecisionMaker(62@, 149@)

:TWAR7_17233
if 
  Streaming.HasModelLoaded(110)
goto_if_false @TWAR7_17307
63@ = Char.Create(PedType.Mission2, 110, 2302.5, -1502.3, 24.3)
Char.SetHeading(63@, 18.5)
Char.GiveWeapon(63@, WeaponType.Tec9, 30000)
Char.SetKindaStayInSamePlace(63@, True)
Char.SetDecisionMaker(63@, 149@)

:TWAR7_17307
if 
  Streaming.HasModelLoaded(110)
goto_if_false @TWAR7_17381
64@ = Char.Create(PedType.Mission2, 110, 2300.6, -1503.9, 24.3)
Char.SetHeading(64@, 5.9)
Char.GiveWeapon(64@, WeaponType.Tec9, 30000)
Char.SetKindaStayInSamePlace(64@, True)
Char.SetDecisionMaker(64@, 149@)

:TWAR7_17381
Car.StartPlayback(35@, 40)
68@ = 1

:TWAR7_17395
if 
  68@ == 1
goto_if_false @TWAR7_17646
if 
  not Car.IsPlaybackGoingOn(35@)
goto_if_false @TWAR7_17646
Path.SwitchRoadsOn(2363.5, -1291.7, 10.0, 2379.5, -1181.2, 100.0)
Path.SwitchRoadsOn(2295.9, -1291.5, 10.0, 2311.5, -1162.3, 100.0)
Path.SwitchRoadsOn(2333.9, -1392.1, 10.0, 2220.2, -1377.1, 100.0)
Path.SwitchRoadsOn(2334.6, -1493.6, 10.0, 2219.8, -1475.2, 100.0)
145@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 2300.3, -1502.8, 24.3, MoveState.Run, -1)
Task.AchieveHeading(-1, 205.1)
Sequence.Close(145@)
Char.PerformSequence(34@, 145@)
Sequence.Clear(145@)
if 
  not Car.IsDead(35@)
goto_if_false @TWAR7_17639
Car.SetAlwaysCreateSkids(35@, False)

:TWAR7_17639
68@ = 2

:TWAR7_17646
if 
  68@ == 2
goto_if_false @TWAR7_17814
if or
  Char.LocateAnyMeansChar2D($scplayer, 34@, 30.0, 30.0, False)
  Char.HasBeenDamagedByChar(34@, $scplayer)
  Car.HasBeenDamagedByChar(35@, $scplayer)
goto_if_false @TWAR7_17814
if 
  Char.IsGroupMember($mc_strap, $Players_Group)
goto_if_false @TWAR7_17735
Char.RemoveFromGroup($mc_strap)

:TWAR7_17735
Char.IgnoreHeightDifferenceFollowingNodes($mc_strap, True)
Char.SetFollowNodeThresholdDistance($mc_strap, 50.0)
145@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, 34@)
Sequence.Close(145@)
Char.PerformSequence($mc_strap, 145@)
Sequence.Clear(145@)
85@ = 0
73@ = 0
68@ = 0
67@ = 14

:TWAR7_17814
if 
  67@ == 14
goto_if_false @TWAR7_18221
if 
  85@ == 0
goto_if_false @TWAR7_17912
if or
  Char.HasSpottedChar($mc_strap, 34@)
  Char.HasSpottedChar(34@, $mc_strap)
goto_if_false @TWAR7_17912
83@ = 7
84@ = 0
gosub @TWAR7_29790
TIMERB = 0
85@ = 1

:TWAR7_17912
if 
  85@ == 1
goto_if_false @TWAR7_17976
if 
  83@ == 0
goto_if_false @TWAR7_17976
83@ = 17
84@ = 0
gosub @TWAR7_29790
85@ = 2

:TWAR7_17976
if 
  68@ == 0
goto_if_false @TWAR7_18221
Blip.Remove(66@)
66@ = Blip.AddForChar(34@)
Char.SetOnlyDamagedByPlayer(34@, False)
145@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.TurnCharToFaceChar(-1, $mc_strap)
Task.KillCharOnFoot(-1, $mc_strap)
Sequence.Close(145@)
Char.PerformSequence(34@, 145@)
Sequence.Clear(145@)
if 
  not Char.IsDead(62@)
goto_if_false @TWAR7_18108
$task_status = Char.GetScriptTaskStatus(62@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_18108
Task.KillCharOnFoot(62@, $scplayer)

:TWAR7_18108
if 
  not Char.IsDead(63@)
goto_if_false @TWAR7_18161
$task_status = Char.GetScriptTaskStatus(63@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_18161
Task.KillCharOnFoot(63@, $scplayer)

:TWAR7_18161
if 
  not Char.IsDead(64@)
goto_if_false @TWAR7_18214
$task_status = Char.GetScriptTaskStatus(64@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_18214
Task.KillCharOnFoot(64@, $scplayer)

:TWAR7_18214
68@ = 1

:TWAR7_18221
goto @TWAR7_18362

:TWAR7_18228
Blip.Remove(66@)
if 
  not Char.IsDead(62@)
goto_if_false @TWAR7_18264
Task.FleeChar(62@, $scplayer, 20.0, -2)

:TWAR7_18264
if 
  not Char.IsDead(63@)
goto_if_false @TWAR7_18295
Task.FleeChar(63@, $scplayer, 20.0, -2)

:TWAR7_18295
if 
  not Char.IsDead(64@)
goto_if_false @TWAR7_18326
Task.FleeChar(64@, $scplayer, 20.0, -2)

:TWAR7_18326
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
TIMERA = 0
68@ = 0
85@ = 0
67@ = 15

:TWAR7_18362
goto @TWAR7_18503

:TWAR7_18369
Blip.Remove(66@)
if 
  not Char.IsDead(62@)
goto_if_false @TWAR7_18405
Task.FleeChar(62@, $scplayer, 20.0, -2)

:TWAR7_18405
if 
  not Char.IsDead(63@)
goto_if_false @TWAR7_18436
Task.FleeChar(63@, $scplayer, 20.0, -2)

:TWAR7_18436
if 
  not Char.IsDead(64@)
goto_if_false @TWAR7_18467
Task.FleeChar(64@, $scplayer, 20.0, -2)

:TWAR7_18467
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
TIMERA = 0
68@ = 0
85@ = 0
67@ = 15

:TWAR7_18503
if 
  67@ == 15
goto_if_false @TWAR7_21068
if 
  68@ == 0
goto_if_false @TWAR7_19984
if 
  TIMERA > 2000
goto_if_false @TWAR7_19984
ENTEXT_63()
if 
  $player_is_completely_safe == 1
goto_if_false @TWAR7_19984
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:TWAR7_18592
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_18616
wait 0
goto @TWAR7_18592

:TWAR7_18616
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_18648
goto @TWAR7_23165

:TWAR7_18648
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
83@ = 0
Char.Delete(62@)
Char.Delete(63@)
Char.Delete(64@)
Path.SwitchRoadsBackToOriginal(2563.7, -1435.0, 10.0, 2580.3, -1266.4, 100.6)
Path.SwitchRoadsBackToOriginal(2635.0, -1434.4, 10.0, 2652.0, -1263.6, 100.0)
Path.SwitchRoadsBackToOriginal(2714.9, -1501.6, 10.0, 2746.1, -1266.4, 100.0)
Path.SwitchRoadsBackToOriginal(2713.9, -1499.3, 10.0, 2746.6, -1266.3, 100.0)
Path.SwitchRoadsBackToOriginal(2714.6, -1249.9, 10.0, 2744.7, -1332.9, 100.0)
Path.SwitchRoadsBackToOriginal(2634.6, -1396.6, 10.0, 2651.0, -1264.2, 100.0)
Path.SwitchRoadsBackToOriginal(2635.1, -1248.0, 10.0, 2651.0, -1055.3, 100.0)
Path.SwitchRoadsBackToOriginal(2651.5, -1263.8, 10.0, 2579.5, -1248.7, 100.0)
Path.SwitchRoadsBackToOriginal(2563.7, -1248.6, 10.0, 2578.9, -1192.2, 100.6)
Path.SwitchRoadsBackToOriginal(2443.7, -1249.2, 10.0, 2459.1, -1191.9, 100.0)
Path.SwitchRoadsBackToOriginal(2363.5, -1253.4, 10.0, 2378.7, -1145.5, 100.0)
Path.SwitchRoadsBackToOriginal(2311.2, -1144.7, 10.0, 2379.1, -1162.1, 100.0)
Path.SwitchRoadsBackToOriginal(2239.9, -1130.0, 10.0, 2017.6, -928.3, 100.0)
Path.SwitchRoadsBackToOriginal(1930.6, -1031.9, 10.0, 1574.4, -879.9, 100.0)
Path.SwitchRoadsBackToOriginal(1879.6, -1024.3, 10.0, 1552.0, -1521.7, 100.0)
Path.SwitchRoadsBackToOriginal(1725.8, -1433.3, 10.0, 1838.0, -1459.4, 100.0)
Path.SwitchRoadsBackToOriginal(1838.4, -1453.6, 10.0, 1853.7, -1303.4, 100.0)
Path.SwitchRoadsBackToOriginal(1979.3, -1468.7, 10.0, 1853.5, -1452.5, 100.0)
Path.SwitchRoadsBackToOriginal(2334.0, -1556.1, 10.0, 2350.5, -1489.7, 100.0)
Path.SwitchRoadsBackToOriginal(2350.1, -1516.0, 10.0, 2423.9, -1532.5, 100.0)
Path.SwitchRoadsBackToOriginal(2379.8, -1373.3, 10.0, 2423.7, -1452.6, 100.0)
Path.SwitchRoadsBackToOriginal(2363.5, -1291.7, 10.0, 2379.5, -1181.2, 100.0)
Path.SwitchRoadsBackToOriginal(2295.9, -1291.5, 10.0, 2311.5, -1162.3, 100.0)
Path.SwitchRoadsBackToOriginal(2333.9, -1392.1, 10.0, 2220.2, -1377.1, 100.0)
Path.SwitchRoadsBackToOriginal(2334.6, -1493.6, 10.0, 2219.8, -1475.2, 100.0)
Car.MarkAsNoLongerNeeded(36@)
Car.MarkAsNoLongerNeeded(35@)
Streaming.MarkModelAsNoLongerNeeded(109)
Streaming.MarkModelAsNoLongerNeeded(110)
Streaming.MarkModelAsNoLongerNeeded(461)
Streaming.RequestAnimation("MISC")
Streaming.LoadAllModelsNow
Streaming.RequestCollision(2293.4, -1490.2)
Streaming.LoadSceneInDirection(2293.4, -1490.2, 22.2, 90.0)
World.ClearArea(2293.4, -1490.2, 22.2, 20.0, True)
World.SetPedDensityMultiplier(0.0)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Game.ShutAllCharsUp(True)
Player.MakeGangDisappear
if 
  not Car.IsDead(35@)
goto_if_false @TWAR7_19616
Car.SetAlwaysCreateSkids(35@, False)

:TWAR7_19616
Char.ClearTasksImmediately($scplayer)
141@, 142@, 143@ = Char.GetCoordinates($scplayer)
144@ = Char.GetHeading($scplayer)
Char.RemoveFromGroup($mc_strap)
Char.ClearTasksImmediately($mc_strap)
World.ClearArea(2290.4, -1490.2, 22.3, 1.0, True)
Char.SetCoordinates($scplayer, 2290.4, -1490.2, 22.3)
Char.SetHeading($scplayer, 265.8)
Task.GoStraightToCoord($scplayer, 2295.6, -1490.5, 21.3, MoveState.Walk, -1)
76@ = Char.GetCurrentWeapon($scplayer)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.ClearTasksImmediately($mc_strap)
World.ClearArea(2295.3, -1491.3, 22.3, 1.0, True)
Char.SetCoordinates($mc_strap, 2295.3, -1491.3, 22.3)
Char.SetHeading($mc_strap, 268.4)
Task.AimGunAtCoord($mc_strap, 2299.3, -1490.6, 22.8, 10000)
Camera.SetFixedPosition(2299.3, -1490.6, 22.8, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2255.6, -1493.3, 38.3, SwitchType.JumpCut)
83@ = 8
84@ = 0
gosub @TWAR7_29790
68@ = 1
Camera.DoFade(1500, Fade.In)

:TWAR7_19914
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_19938
wait 0
goto @TWAR7_19914

:TWAR7_19938
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_19970
goto @TWAR7_23165

:TWAR7_19970
69@ = 1
skip_cutscene_start_internal @TWAR7_20578

:TWAR7_19984
if 
  68@ == 1
goto_if_false @TWAR7_20115
$task_status = Char.GetScriptTaskStatus($scplayer, 1491)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_20115
Task.TurnCharToFaceChar($mc_strap, $scplayer)
145@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $mc_strap)
Task.PlayAnim(-1, "IDLE_CHAT_02", "MISC", 4.0, True, False, False, False, -1)
Sequence.Close(145@)
Char.PerformSequence($scplayer, 145@)
Sequence.Clear(145@)
68@ = 2

:TWAR7_20115
if 
  68@ == 2
goto_if_false @TWAR7_20199
if 
  84@ > 2
goto_if_false @TWAR7_20199
Char.ClearTasks($scplayer)
Task.PlayAnim($mc_strap, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
68@ = 3

:TWAR7_20199
if 
  68@ == 3
goto_if_false @TWAR7_20283
if 
  84@ > 3
goto_if_false @TWAR7_20283
Char.ClearTasks($mc_strap)
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
68@ = 4

:TWAR7_20283
if 
  68@ == 4
goto_if_false @TWAR7_20367
if 
  84@ > 4
goto_if_false @TWAR7_20367
Char.ClearTasks($scplayer)
Task.PlayAnim($mc_strap, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
68@ = 5

:TWAR7_20367
if 
  68@ == 5
goto_if_false @TWAR7_20451
if 
  84@ > 5
goto_if_false @TWAR7_20451
Char.ClearTasks($mc_strap)
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
68@ = 6

:TWAR7_20451
if 
  68@ == 6
goto_if_false @TWAR7_20535
if 
  84@ > 6
goto_if_false @TWAR7_20535
Char.ClearTasks($scplayer)
Task.PlayAnim($mc_strap, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
68@ = 7

:TWAR7_20535
if 
  68@ == 7
goto_if_false @TWAR7_21068
if 
  83@ == 0
goto_if_false @TWAR7_21068
69@ = 0

:TWAR7_20578
skip_cutscene_end 
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_20612
goto @TWAR7_23165

:TWAR7_20612
Char.ClearTasks($mc_strap)
if 
  69@ == 1
goto_if_false @TWAR7_20652
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
83@ = 0

:TWAR7_20652
Camera.DoFade(500, Fade.Out)

:TWAR7_20659
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_20683
wait 0
goto @TWAR7_20659

:TWAR7_20683
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_20715
goto @TWAR7_23165

:TWAR7_20715
Char.ClearTasksImmediately($scplayer)
143@ -= 1.0
World.ClearArea(141@, 142@, 143@, 1.0, True)
Streaming.RequestCollision(141@, 142@)
Streaming.LoadAllModelsNow
Char.SetCoordinates($scplayer, 141@, 142@, 143@)
Char.SetHeading($scplayer, 144@)
Char.SetCurrentWeapon($scplayer, 76@)
Char.ClearTasksImmediately($mc_strap)
137@, 138@, 139@ = Path.GetClosestCharNode(141@, 142@, 143@)
Streaming.RequestCollision(137@, 138@)
Streaming.LoadAllModelsNow
139@ += 2.0
143@ = World.GetGroundZFor3DCoord(137@, 138@, 139@)
World.ClearArea(137@, 138@, 143@, 1.0, True)
Char.SetCoordinates($mc_strap, 137@, 138@, 143@)
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $mc_strap)
72@ = 1
Streaming.LoadScene(141@, 142@, 143@)
Streaming.RemoveAnimation("MISC")
World.SetPedDensityMultiplier(1.0)
Blip.Remove(66@)
66@ = Blip.AddForCoord(783.2, -1630.3, 12.2)
Blip.SetAsFriendly(66@, True)
Hud.SwitchWidescreen(False)
Game.ShutAllCharsUp(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Camera.DoFade(1500, Fade.In)

:TWAR7_20984
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_21008
wait 0
goto @TWAR7_20984

:TWAR7_21008
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_21040
goto @TWAR7_23165

:TWAR7_21040
68@ = 0
85@ = 0
67@ = 16
TIMERB = 0

:TWAR7_21068
if 
  67@ == 16
goto_if_false @TWAR7_21370
if 
  83@ == 0
goto_if_false @TWAR7_21150
if 
  85@ == 0
goto_if_false @TWAR7_21150
83@ = 9
84@ = 0
gosub @TWAR7_29790
85@ = 1

:TWAR7_21150
if 
  83@ == 0
goto_if_false @TWAR7_21209
if 
  85@ == 1
goto_if_false @TWAR7_21209
Text.PrintNow('SMK1_13', 8500, 1)
85@ = 2

:TWAR7_21209
if 
  68@ == 0
goto_if_false @TWAR7_21363
if 
  Char.IsGroupMember($mc_strap, $Players_Group)
goto_if_false @TWAR7_21363
if 
  Char.LocateAnyMeans3D($scplayer, 783.2, -1630.3, 12.2, 4.0, 4.0, 4.0, True)
goto_if_false @TWAR7_21363
if 
  Char.LocateAnyMeans3D($mc_strap, 783.2, -1630.3, 12.2, 4.0, 4.0, 4.0, False)
goto_if_false @TWAR7_21363
Player.SetControl($player1, False)
68@ = 0
67@ = 17

:TWAR7_21363
gosub @TWAR7_25201

:TWAR7_21370
if 
  67@ == 17
goto_if_false @TWAR7_21765
if 
  68@ == 0
goto_if_false @TWAR7_21629
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
83@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Game.ShutAllCharsUp(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.RemoveFromGroup($mc_strap)
145@ = Sequence.Open()
Task.Pause(-1, 1500)
Task.LeaveAnyCar(-1)
Task.TurnCharToFaceChar(-1, $mc_strap)
Sequence.Close(145@)
Char.PerformSequence($scplayer, 145@)
Sequence.Clear(145@)
145@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 792.1, -1626.0, 12.4, MoveState.Walk, -2)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(145@)
Char.PerformSequence($mc_strap, 145@)
Sequence.Clear(145@)
83@ = 10
84@ = 0
gosub @TWAR7_29790
Camera.SetFixedPosition(776.7145, -1637.248, 14.084, 0.0, 0.0, 0.0)
Camera.PointAtPoint(777.5906, -1636.769, 14.1398, SwitchType.JumpCut)
68@ = 1

:TWAR7_21629
if 
  68@ == 1
goto_if_false @TWAR7_21765
if 
  83@ == 0
goto_if_false @TWAR7_21765
Camera.DoFade(500, Fade.Out)

:TWAR7_21672
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_21696
wait 0
goto @TWAR7_21672

:TWAR7_21696
Char.Delete($mc_strap)
Blip.Remove(66@)
Game.ShutAllCharsUp(False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Camera.DoFade(500, Fade.In)

:TWAR7_21734
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_21758
wait 0
goto @TWAR7_21734

:TWAR7_21758
goto @TWAR7_23183

:TWAR7_21765
if 
  67@ > 3
goto_if_false @TWAR7_21882
if 
  14 > 67@
goto_if_false @TWAR7_21882
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_21882
$task_status = Char.GetScriptTaskStatus(34@, 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_21882
Task.DriveBy(34@, $scplayer, -1, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, False, 100)

:TWAR7_21882
if 
  67@ > 3
goto_if_false @TWAR7_21995
if 
  15 > 67@
goto_if_false @TWAR7_21995
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_21995
if 
  not Char.LocateAnyMeansChar2D($scplayer, 34@, 250.0, 250.0, False)
goto_if_false @TWAR7_21995
if 
  not Char.IsOnScreen(34@)
goto_if_false @TWAR7_21995
68@ = 0
67@ = 20

:TWAR7_21995
if 
  67@ == 20
goto_if_false @TWAR7_22472
if 
  68@ == 0
goto_if_false @TWAR7_22273
if 
  not Char.IsDead($mc_strap)
goto_if_false @TWAR7_22201
if 
  not Car.IsDead(36@)
goto_if_false @TWAR7_22201
if 
  Char.IsInCar($mc_strap, 36@)
goto_if_false @TWAR7_22201
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
83@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Text.PrintNow('SMK1_12', 4000, 1)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @TWAR7_22151
Player.ApplyBrakesToCar($player1, True)

:TWAR7_22151
Char.RemoveFromGroup($mc_strap)
145@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.WanderStandard(-1)
Sequence.Close(145@)
Char.PerformSequence($mc_strap, 145@)
Sequence.Clear(145@)
TIMERA = 0
68@ = 1

:TWAR7_22201
if 
  Car.IsDead(36@)
goto_if_false @TWAR7_22224
68@ = 2

:TWAR7_22224
if 
  Char.IsDead($mc_strap)
goto_if_false @TWAR7_22247
68@ = 2

:TWAR7_22247
if 
  not Char.IsInCar($mc_strap, 36@)
goto_if_false @TWAR7_22273
68@ = 2

:TWAR7_22273
if 
  68@ == 1
goto_if_false @TWAR7_22429
if 
  TIMERA > 3000
goto_if_false @TWAR7_22429
Camera.DoFade(500, Fade.Out)

:TWAR7_22317
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_22341
wait 0
goto @TWAR7_22317

:TWAR7_22341
Char.Delete($mc_strap)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @TWAR7_22369
Player.ApplyBrakesToCar($player1, False)

:TWAR7_22369
Blip.Remove(66@)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Camera.DoFade(500, Fade.In)

:TWAR7_22398
if 
  Camera.GetFadingStatus
goto_if_false @TWAR7_22422
wait 0
goto @TWAR7_22398

:TWAR7_22422
68@ = 2

:TWAR7_22429
if 
  68@ == 2
goto_if_false @TWAR7_22472
Text.ClearPrints
Text.PrintNow('SMK1_12', 4000, 1)
goto @TWAR7_23165

:TWAR7_22472
if 
  67@ == 3
goto_if_false @TWAR7_22528
if 
  not Streaming.HasCarRecordingBeenLoaded(30)
goto_if_false @TWAR7_22509
Streaming.RequestCarRecording(30)

:TWAR7_22509
if 
  not Streaming.HasCarRecordingBeenLoaded(31)
goto_if_false @TWAR7_22528
Streaming.RequestCarRecording(31)

:TWAR7_22528
if 
  67@ == 4
goto_if_false @TWAR7_22565
if 
  not Streaming.HasCarRecordingBeenLoaded(32)
goto_if_false @TWAR7_22565
Streaming.RequestCarRecording(32)

:TWAR7_22565
if 
  67@ == 5
goto_if_false @TWAR7_22602
if 
  not Streaming.HasCarRecordingBeenLoaded(33)
goto_if_false @TWAR7_22602
Streaming.RequestCarRecording(33)

:TWAR7_22602
if 
  67@ == 6
goto_if_false @TWAR7_22639
if 
  not Streaming.HasCarRecordingBeenLoaded(34)
goto_if_false @TWAR7_22639
Streaming.RequestCarRecording(34)

:TWAR7_22639
if 
  67@ == 7
goto_if_false @TWAR7_22871
if 
  not Streaming.HasCarRecordingBeenLoaded(35)
goto_if_false @TWAR7_22676
Streaming.RequestCarRecording(35)

:TWAR7_22676
if 
  not Streaming.HasCarRecordingBeenLoaded(50)
goto_if_false @TWAR7_22695
Streaming.RequestCarRecording(50)

:TWAR7_22695
if 
  not Streaming.HasCarRecordingBeenLoaded(51)
goto_if_false @TWAR7_22714
Streaming.RequestCarRecording(51)

:TWAR7_22714
if 
  not Streaming.HasCarRecordingBeenLoaded(52)
goto_if_false @TWAR7_22733
Streaming.RequestCarRecording(52)

:TWAR7_22733
if 
  not Streaming.HasCarRecordingBeenLoaded(53)
goto_if_false @TWAR7_22752
Streaming.RequestCarRecording(53)

:TWAR7_22752
if 
  not Streaming.HasCarRecordingBeenLoaded(54)
goto_if_false @TWAR7_22771
Streaming.RequestCarRecording(54)

:TWAR7_22771
if 
  not Streaming.HasCarRecordingBeenLoaded(55)
goto_if_false @TWAR7_22790
Streaming.RequestCarRecording(55)

:TWAR7_22790
if 
  not Streaming.HasCarRecordingBeenLoaded(56)
goto_if_false @TWAR7_22809
Streaming.RequestCarRecording(56)

:TWAR7_22809
if 
  not Streaming.HasCarRecordingBeenLoaded(57)
goto_if_false @TWAR7_22828
Streaming.RequestCarRecording(57)

:TWAR7_22828
if 
  not Streaming.HasCarRecordingBeenLoaded(58)
goto_if_false @TWAR7_22847
Streaming.RequestCarRecording(58)

:TWAR7_22847
if 
  not Streaming.HasCarRecordingBeenLoaded(35)
goto_if_false @TWAR7_22866
Streaming.RequestCarRecording(60)

:TWAR7_22866
Streaming.RequestModel(410)

:TWAR7_22871
if 
  67@ == 8
goto_if_false @TWAR7_22908
if 
  not Streaming.HasCarRecordingBeenLoaded(36)
goto_if_false @TWAR7_22908
Streaming.RequestCarRecording(36)

:TWAR7_22908
if 
  67@ == 9
goto_if_false @TWAR7_22950
Streaming.MarkModelAsNoLongerNeeded(410)
if 
  not Streaming.HasCarRecordingBeenLoaded(37)
goto_if_false @TWAR7_22950
Streaming.RequestCarRecording(37)

:TWAR7_22950
if 
  67@ == 10
goto_if_false @TWAR7_22987
if 
  not Streaming.HasCarRecordingBeenLoaded(38)
goto_if_false @TWAR7_22987
Streaming.RequestCarRecording(38)

:TWAR7_22987
if 
  67@ == 11
goto_if_false @TWAR7_23024
if 
  not Streaming.HasCarRecordingBeenLoaded(39)
goto_if_false @TWAR7_23024
Streaming.RequestCarRecording(39)

:TWAR7_23024
if 
  67@ == 12
goto_if_false @TWAR7_23065
if 
  not Streaming.HasCarRecordingBeenLoaded(40)
goto_if_false @TWAR7_23061
Streaming.RequestCarRecording(40)

:TWAR7_23061
Streaming.RequestModel(110)

:TWAR7_23065
if 
  67@ > 0
goto_if_false @TWAR7_23108
if 
  3 > 67@
goto_if_false @TWAR7_23108
gosub @TWAR7_24682

:TWAR7_23108
if 
  67@ > 3
goto_if_false @TWAR7_23151
if 
  14 > 67@
goto_if_false @TWAR7_23151
gosub @TWAR7_24891

:TWAR7_23151
gosub @TWAR7_27399
goto @TWAR7_1306

:TWAR7_23165
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:TWAR7_23183
Text.ClearPrints
Text.PrintWithNumberBig('M_PASSR', 5, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(5)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.RegisterMissionPassed('SMOKE_1')
Stat.PlayerMadeProgress(1)
$flag_smoke_mission_counter += 1
start_new_script @STRAP 
Blip.Remove($strap_contact_blip)
$strap_contact_blip = Blip.AddSpriteForContactPoint($strapX, $strapY, $strapZ, $strap_blip_icon)
return 

:TWAR7_23270
if 
  is_var_text_label_empty s$shop_name
goto_if_false @TWAR7_23288
Camera.RestoreJumpcut

:TWAR7_23288
if 
  not Char.IsDead($scplayer)
goto_if_false @TWAR7_23311
Char.ShutUpForScriptedSpeech($scplayer, False)

:TWAR7_23311
Game.ShutAllCharsUp(False)
Blip.Remove(66@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Streaming.MarkModelAsNoLongerNeeded(410)
Streaming.MarkModelAsNoLongerNeeded(461)
Streaming.MarkModelAsNoLongerNeeded(372)
Streaming.MarkModelAsNoLongerNeeded(109)
Streaming.MarkModelAsNoLongerNeeded(110)
Streaming.MarkModelAsNoLongerNeeded(466)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.RemoveAnimation("CAR_CHAT")
Streaming.RemoveAnimation("CRIB")
Streaming.RemoveAnimation("MISC")
Streaming.RemoveAnimation("RAPPING")
Path.SwitchRoadsBackToOriginal(2563.7, -1435.0, 10.0, 2580.3, -1266.4, 100.6)
Path.SwitchRoadsBackToOriginal(2635.0, -1434.4, 10.0, 2652.0, -1263.6, 100.0)
Path.SwitchRoadsBackToOriginal(2714.9, -1501.6, 10.0, 2746.1, -1266.4, 100.0)
Path.SwitchRoadsBackToOriginal(2713.9, -1499.3, 10.0, 2746.6, -1266.3, 100.0)
Path.SwitchRoadsBackToOriginal(2714.6, -1249.9, 10.0, 2744.7, -1332.9, 100.0)
Path.SwitchRoadsBackToOriginal(2634.6, -1396.6, 10.0, 2651.0, -1264.2, 100.0)
Path.SwitchRoadsBackToOriginal(2635.1, -1248.0, 10.0, 2651.0, -1055.3, 100.0)
Path.SwitchRoadsBackToOriginal(2651.5, -1263.8, 10.0, 2579.5, -1248.7, 100.0)
Path.SwitchRoadsBackToOriginal(2563.7, -1248.6, 10.0, 2578.9, -1192.2, 100.6)
Path.SwitchRoadsBackToOriginal(2443.7, -1249.2, 10.0, 2459.1, -1191.9, 100.0)
Path.SwitchRoadsBackToOriginal(2363.5, -1253.4, 10.0, 2378.7, -1145.5, 100.0)
Path.SwitchRoadsBackToOriginal(2311.2, -1144.7, 10.0, 2379.1, -1162.1, 100.0)
Path.SwitchRoadsBackToOriginal(2239.9, -1130.0, 10.0, 2017.6, -928.3, 100.0)
Path.SwitchRoadsBackToOriginal(1930.6, -1031.9, 10.0, 1574.4, -879.9, 100.0)
Path.SwitchRoadsBackToOriginal(1879.6, -1024.3, 10.0, 1552.0, -1521.7, 100.0)
Path.SwitchRoadsBackToOriginal(1725.8, -1433.3, 10.0, 1838.0, -1459.4, 100.0)
Path.SwitchRoadsBackToOriginal(1838.4, -1453.6, 10.0, 1853.7, -1303.4, 100.0)
Path.SwitchRoadsBackToOriginal(1979.3, -1468.7, 10.0, 1853.5, -1452.5, 100.0)
Path.SwitchRoadsBackToOriginal(2334.0, -1556.1, 10.0, 2350.5, -1489.7, 100.0)
Path.SwitchRoadsBackToOriginal(2350.1, -1516.0, 10.0, 2423.9, -1532.5, 100.0)
Path.SwitchRoadsBackToOriginal(2379.8, -1373.3, 10.0, 2423.7, -1452.6, 100.0)
Path.SwitchRoadsBackToOriginal(2363.5, -1291.7, 10.0, 2379.5, -1181.2, 100.0)
Path.SwitchRoadsBackToOriginal(2295.9, -1291.5, 10.0, 2311.5, -1162.3, 100.0)
Path.SwitchRoadsBackToOriginal(2333.9, -1392.1, 10.0, 2220.2, -1377.1, 100.0)
Path.SwitchRoadsBackToOriginal(2334.6, -1493.6, 10.0, 2219.8, -1475.2, 100.0)
World.SwitchEntryExit('LAHS1A', True)
Game.SwitchRandomTrains(True)
Char.RemoveElegantly($big_smoke)
Char.RemoveElegantly($sweet)
Char.RemoveElegantly($mc_strap)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Game.EnableAmbientCrime(True)
Sequence.Clear(147@)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

:TWAR7_24265
if 
  4 > 67@
goto_if_false @TWAR7_24406
if 
  Char.IsDead($big_smoke)
goto_if_false @TWAR7_24324
Text.ClearPrints
Text.PrintNow('SMK1_06', 7000, 1)
70@ = 1

:TWAR7_24324
if 
  Char.IsDead($sweet)
goto_if_false @TWAR7_24365
Text.ClearPrints
Text.PrintNow('SMK1_07', 7000, 1)
70@ = 1

:TWAR7_24365
if 
  Car.IsDead(37@)
goto_if_false @TWAR7_24406
Text.ClearPrints
Text.PrintNow('SMK1_08', 7000, 1)
70@ = 1

:TWAR7_24406
if 
  67@ == 1
goto_if_false @TWAR7_24467
if 
  68@ == 1
goto_if_false @TWAR7_24467
if 
  70@ == 1
goto_if_false @TWAR7_24467
70@ = 0

:TWAR7_24467
if 
  67@ == 1
goto_if_false @TWAR7_24544
if 
  68@ == 2
goto_if_false @TWAR7_24544
if 
  Char.IsDead($mc_strap)
goto_if_false @TWAR7_24544
Text.ClearPrints
Text.PrintNow('SMK1_05', 7000, 1)
70@ = 1

:TWAR7_24544
if 
  67@ > 1
goto_if_false @TWAR7_24603
if 
  Char.IsDead($mc_strap)
goto_if_false @TWAR7_24603
Text.ClearPrints
Text.PrintNow('SMK1_05', 7000, 1)
70@ = 1

:TWAR7_24603
if 
  67@ > 3
goto_if_false @TWAR7_24680
if 
  15 > 67@
goto_if_false @TWAR7_24680
if 
  Car.IsDead(36@)
goto_if_false @TWAR7_24680
Text.ClearPrints
Text.PrintNow('SMK1_14', 7000, 1)
70@ = 1

:TWAR7_24680
return 

:TWAR7_24682
if 
  71@ == 0
goto_if_false @TWAR7_24825
if 
  Char.IsInCar($scplayer, 37@)
goto_if_false @TWAR7_24825
Text.ClearThisPrint('SMK1_01')
Blip.Remove(66@)
if 
  67@ == 1
goto_if_false @TWAR7_24818
if 
  68@ == 0
goto_if_false @TWAR7_24798
66@ = Blip.AddForCoord(1532.8, -1672.9, 12.4)
goto @TWAR7_24818

:TWAR7_24798
66@ = Blip.AddForCoord(2454.4, -1284.5, 22.7)

:TWAR7_24818
71@ = 1

:TWAR7_24825
if 
  71@ == 1
goto_if_false @TWAR7_24889
if 
  not Char.IsInCar($scplayer, 37@)
goto_if_false @TWAR7_24889
Blip.Remove(66@)
66@ = Blip.AddForCar(37@)
Blip.SetAsFriendly(66@, True)
71@ = 0

:TWAR7_24889
return 

:TWAR7_24891
if 
  72@ == 1
goto_if_false @TWAR7_25199
if 
  67@ > 3
goto_if_false @TWAR7_25199
if 
  14 > 67@
goto_if_false @TWAR7_25199
if 
  71@ == 0
goto_if_false @TWAR7_25072
if 
  not Car.IsDead(36@)
goto_if_false @TWAR7_25072
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @TWAR7_25072
Text.ClearThisPrint(86@(84@,13s))
Text.ClearThisPrint('SMK1_11')
Text.ClearThisPrint('SMK1_04')
Text.PrintNow('SMK1_04', 7000, 1)
Blip.Remove(66@)
66@ = Blip.AddForChar(34@)
Blip.SetAsFriendly(66@, False)
71@ = 1

:TWAR7_25072
if 
  71@ == 1
goto_if_false @TWAR7_25199
if 
  not Car.IsDead(36@)
goto_if_false @TWAR7_25199
if 
  not Char.IsInCar($scplayer, 36@)
goto_if_false @TWAR7_25199
Text.ClearThisPrint(86@(84@,13s))
Text.ClearThisPrint('SMK1_11')
Text.ClearThisPrint('SMK1_04')
Text.PrintNow('SMK1_11', 7000, 1)
Blip.Remove(66@)
66@ = Blip.AddForCar(36@)
Blip.SetAsFriendly(66@, True)
71@ = 0

:TWAR7_25199
return 

:TWAR7_25201
if 
  72@ == 1
goto_if_false @TWAR7_25265
if 
  not Char.IsGroupMember($mc_strap, $Players_Group)
goto_if_false @TWAR7_25265
Blip.Remove(66@)
66@ = Blip.AddForChar($mc_strap)
Blip.SetAsFriendly(66@, True)
72@ = 0

:TWAR7_25265
if 
  72@ == 0
goto_if_false @TWAR7_25461
if 
  Char.LocateAnyMeansChar3D($scplayer, $mc_strap, 8.0, 8.0, 8.0, False)
goto_if_false @TWAR7_25461
if 
  not Char.IsGroupMember($mc_strap, $Players_Group)
goto_if_false @TWAR7_25350
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $mc_strap)

:TWAR7_25350
if 
  16 > 67@
goto_if_false @TWAR7_25429
Blip.Remove(66@)
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @TWAR7_25407
66@ = Blip.AddForChar(34@)
goto @TWAR7_25422

:TWAR7_25407
66@ = Blip.AddForCar(36@)
Blip.SetAsFriendly(66@, True)

:TWAR7_25422
goto @TWAR7_25454

:TWAR7_25429
Blip.Remove(66@)
66@ = Blip.AddForCoord(783.2, -1630.3, 12.2)

:TWAR7_25454
72@ = 1

:TWAR7_25461
return 

:TWAR7_25463
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_26129
if 
  not Car.IsDead(35@)
goto_if_false @TWAR7_26122
if 
  Char.IsInCar(34@, 35@)
goto_if_false @TWAR7_26085
if 
  80@ == 0
goto_if_false @TWAR7_25574
if or
  Char.HasBeenDamagedByChar(34@, $scplayer)
  Car.HasBeenDamagedByChar(35@, $scplayer)
goto_if_false @TWAR7_25574
Car.SetHealth(35@, 350)
80@ = 1

:TWAR7_25574
133@, 134@, 137@ = Char.GetCoordinates($scplayer)
135@, 136@, 137@ = Car.GetCoordinates(35@)
137@ = Math.GetDistanceBetweenCoords2D(133@, 134@, 135@, 136@)
if 
  21.0 > 137@
goto_if_false @TWAR7_25683
137@ /= 20.0
set_lvar_float_to_lvar_float 138@ = 137@
137@ = 2.0
sub_float_lvar_from_float_lvar 137@ -= 138@
goto @TWAR7_25729

:TWAR7_25683
137@ -= 20.0
137@ /= 90.0
set_lvar_float_to_lvar_float 138@ = 137@
137@ = 1.0
sub_float_lvar_from_float_lvar 137@ -= 138@

:TWAR7_25729
set_lvar_float_to_lvar_float 140@ = 137@
if 
  140@ > 2.0
goto_if_false @TWAR7_25768
140@ = 2.0

:TWAR7_25768
if 
  0.5 > 140@
goto_if_false @TWAR7_25799
140@ = 0.5

:TWAR7_25799
if 
  Car.IsPlaybackGoingOn(35@)
goto_if_false @TWAR7_25823
Car.SetPlaybackSpeed(35@, 140@)

:TWAR7_25823
if 
  67@ == 8
goto_if_false @TWAR7_26051
if 
  10 > 79@
goto_if_false @TWAR7_26044
if 
  not Car.IsDead(42@(79@,10i))
goto_if_false @TWAR7_26030
if 
  not Char.IsDead(52@(79@,10i))
goto_if_false @TWAR7_26001
if 
  Char.IsInCar(52@(79@,10i), 42@(79@,10i))
goto_if_false @TWAR7_25965
if 
  Car.IsPlaybackGoingOn(42@(79@,10i))
goto_if_false @TWAR7_25958
Car.SetPlaybackSpeed(42@(79@,10i), 140@)

:TWAR7_25958
goto @TWAR7_25994

:TWAR7_25965
if 
  Car.IsPlaybackGoingOn(42@(79@,10i))
goto_if_false @TWAR7_25994
Car.StopPlayback(42@(79@,10i))

:TWAR7_25994
goto @TWAR7_26030

:TWAR7_26001
if 
  Car.IsPlaybackGoingOn(42@(79@,10i))
goto_if_false @TWAR7_26030
Car.StopPlayback(42@(79@,10i))

:TWAR7_26030
79@ += 1
goto @TWAR7_26051

:TWAR7_26044
79@ = 0

:TWAR7_26051
if 
  not Char.IsInCar(34@, 35@)
goto_if_false @TWAR7_26078
Char.WarpIntoCar(34@, 35@)

:TWAR7_26078
goto @TWAR7_26122

:TWAR7_26085
if 
  not Car.IsDead(35@)
goto_if_false @TWAR7_26122
if 
  Car.IsPlaybackGoingOn(35@)
goto_if_false @TWAR7_26122
Car.StopPlayback(35@)

:TWAR7_26122
goto @TWAR7_26166

:TWAR7_26129
if 
  not Car.IsDead(35@)
goto_if_false @TWAR7_26166
if 
  Car.IsPlaybackGoingOn(35@)
goto_if_false @TWAR7_26166
Car.StopPlayback(35@)

:TWAR7_26166
return 

:TWAR7_26168
77@ = Math.RandomIntInRange(1, 37)
if 
  77@ == 1
goto_if_false @TWAR7_26210
Car.CustomPlateForNextCar(78@, "GOT_M00_")

:TWAR7_26210
if 
  77@ == 2
goto_if_false @TWAR7_26243
Car.CustomPlateForNextCar(78@, "M00TV_4U")

:TWAR7_26243
if 
  77@ == 3
goto_if_false @TWAR7_26276
Car.CustomPlateForNextCar(78@, "MATHEW_2")

:TWAR7_26276
if 
  77@ == 4
goto_if_false @TWAR7_26309
Car.CustomPlateForNextCar(78@, "D4_DEW0R")

:TWAR7_26309
if 
  77@ == 5
goto_if_false @TWAR7_26342
Car.CustomPlateForNextCar(78@, "D0DE_777")

:TWAR7_26342
if 
  77@ == 6
goto_if_false @TWAR7_26375
Car.CustomPlateForNextCar(78@, "DAM0_666")

:TWAR7_26375
if 
  77@ == 7
goto_if_false @TWAR7_26408
Car.CustomPlateForNextCar(78@, "C0NEY_88")

:TWAR7_26408
if 
  77@ == 8
goto_if_false @TWAR7_26441
Car.CustomPlateForNextCar(78@, "PRE4CHER")

:TWAR7_26441
if 
  77@ == 9
goto_if_false @TWAR7_26474
Car.CustomPlateForNextCar(78@, "DBP_4NDY")

:TWAR7_26474
if 
  77@ == 10
goto_if_false @TWAR7_26507
Car.CustomPlateForNextCar(78@, "EV1L_SLY")

:TWAR7_26507
if 
  77@ == 11
goto_if_false @TWAR7_26540
Car.CustomPlateForNextCar(78@, "N1_R4V3N")

:TWAR7_26540
if 
  77@ == 12
goto_if_false @TWAR7_26573
Car.CustomPlateForNextCar(78@, "D1VX_Z00")

:TWAR7_26573
if 
  77@ == 13
goto_if_false @TWAR7_26605
Car.CustomPlateForNextCar(78@, "MR_B3NN")

:TWAR7_26605
if 
  77@ == 14
goto_if_false @TWAR7_26638
Car.CustomPlateForNextCar(78@, "R3D_R4SP")

:TWAR7_26638
if 
  77@ == 15
goto_if_false @TWAR7_26671
Car.CustomPlateForNextCar(78@, "LA_B0MBA")

:TWAR7_26671
if 
  77@ == 16
goto_if_false @TWAR7_26704
Car.CustomPlateForNextCar(78@, "L3337_0G")

:TWAR7_26704
if 
  77@ == 17
goto_if_false @TWAR7_26737
Car.CustomPlateForNextCar(78@, "BUDD4H_X")

:TWAR7_26737
if 
  77@ == 18
goto_if_false @TWAR7_26770
Car.CustomPlateForNextCar(78@, "T3H_BUCK")

:TWAR7_26770
if 
  77@ == 19
goto_if_false @TWAR7_26803
Car.CustomPlateForNextCar(78@, "CHUNKY_1")

:TWAR7_26803
if 
  77@ == 20
goto_if_false @TWAR7_26836
Car.CustomPlateForNextCar(78@, "EV1L_BNZ")

:TWAR7_26836
if 
  77@ == 21
goto_if_false @TWAR7_26869
Car.CustomPlateForNextCar(78@, "S4ND_M4N")

:TWAR7_26869
if 
  77@ == 22
goto_if_false @TWAR7_26902
Car.CustomPlateForNextCar(78@, "RKK_DBP1")

:TWAR7_26902
if 
  77@ == 23
goto_if_false @TWAR7_26935
Car.CustomPlateForNextCar(78@, "RE1_K0KU")

:TWAR7_26935
if 
  77@ == 24
goto_if_false @TWAR7_26968
Car.CustomPlateForNextCar(78@, "S3XY_JUD")

:TWAR7_26968
if 
  77@ == 25
goto_if_false @TWAR7_27001
Car.CustomPlateForNextCar(78@, "SUNRA_93")

:TWAR7_27001
if 
  77@ == 26
goto_if_false @TWAR7_27034
Car.CustomPlateForNextCar(78@, "UG_FUX69")

:TWAR7_27034
if 
  77@ == 27
goto_if_false @TWAR7_27067
Car.CustomPlateForNextCar(78@, "LI0N_CUM")

:TWAR7_27067
if 
  77@ == 28
goto_if_false @TWAR7_27100
Car.CustomPlateForNextCar(78@, "RKK_PWND")

:TWAR7_27100
if 
  77@ == 29
goto_if_false @TWAR7_27133
Car.CustomPlateForNextCar(78@, "HAZE_B0B")

:TWAR7_27133
if 
  77@ == 30
goto_if_false @TWAR7_27166
Car.CustomPlateForNextCar(78@, "T3H_FLUF")

:TWAR7_27166
if 
  77@ == 31
goto_if_false @TWAR7_27199
Car.CustomPlateForNextCar(78@, "BM_4NDY_")

:TWAR7_27199
if 
  77@ == 32
goto_if_false @TWAR7_27232
Car.CustomPlateForNextCar(78@, "BM_D34N_")

:TWAR7_27232
if 
  77@ == 33
goto_if_false @TWAR7_27265
Car.CustomPlateForNextCar(78@, "BM_L4C3Y")

:TWAR7_27265
if 
  77@ == 34
goto_if_false @TWAR7_27298
Car.CustomPlateForNextCar(78@, "BM_D3V__")

:TWAR7_27298
if 
  77@ == 35
goto_if_false @TWAR7_27331
Car.CustomPlateForNextCar(78@, "NU_SK00L")

:TWAR7_27331
if 
  77@ == 36
goto_if_false @TWAR7_27364
Car.CustomPlateForNextCar(78@, "G4L_AVET")

:TWAR7_27364
if 
  77@ == 37
goto_if_false @TWAR7_27397
Car.CustomPlateForNextCar(78@, "M0J0_J0J")

:TWAR7_27397
return 

:TWAR7_27399
if 
  67@ == 1
goto_if_false @TWAR7_28418
if 
  Char.IsSittingInCar($scplayer, 37@)
goto_if_false @TWAR7_27688
if or
  83@ == 1
  83@ == 2
goto_if_false @TWAR7_27688
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_27681
gosub @TWAR7_31954
gosub @TWAR7_32061
if 
  68@ == 0
goto_if_false @TWAR7_27578
if or
  not Char.IsDead($big_smoke)
  not Char.IsDead($sweet)
goto_if_false @TWAR7_27547
gosub @TWAR7_32215
goto @TWAR7_27578

:TWAR7_27547
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(86@(84@,13s))
126@ = 0
127@ = 0

:TWAR7_27578
if or
  68@ == 1
  68@ == 2
goto_if_false @TWAR7_27674
if or
  not Char.IsDead($big_smoke)
  not Char.IsDead($sweet)
  not Char.IsDead($mc_strap)
goto_if_false @TWAR7_27643
gosub @TWAR7_32215
goto @TWAR7_27674

:TWAR7_27643
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(86@(84@,13s))
126@ = 0
127@ = 0

:TWAR7_27674
goto @TWAR7_27688

:TWAR7_27681
83@ = 0

:TWAR7_27688
if 
  not Char.IsInCar($scplayer, 37@)
goto_if_false @TWAR7_27824
if 
  11 > 83@
goto_if_false @TWAR7_27824
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_27751
84@ += 1

:TWAR7_27751
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Text.ClearThisPrint(86@(84@,13s))
set_lvar_int_to_lvar_int 132@ = 83@
set_lvar_int_to_lvar_int 131@ = 84@
83@ = 11
84@ = Math.RandomIntInRange(0, 5)
set_lvar_int_to_lvar_int 130@ = 84@
130@ += 1
gosub @TWAR7_29790

:TWAR7_27824
if 
  83@ == 11
goto_if_false @TWAR7_28149
if 
  not Char.IsInCar($scplayer, 37@)
goto_if_false @TWAR7_28097
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_28074
gosub @TWAR7_31954
gosub @TWAR7_32061
if 
  68@ == 0
goto_if_false @TWAR7_27978
if or
  not Char.IsDead($big_smoke)
  not Char.IsDead($sweet)
goto_if_false @TWAR7_27947
gosub @TWAR7_32215
goto @TWAR7_27978

:TWAR7_27947
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(86@(84@,13s))
126@ = 0
127@ = 0

:TWAR7_27978
if 
  68@ == 1
goto_if_false @TWAR7_28067
if or
  not Char.IsDead($big_smoke)
  not Char.IsDead($sweet)
  not Char.IsDead($mc_strap)
goto_if_false @TWAR7_28036
gosub @TWAR7_32215
goto @TWAR7_28067

:TWAR7_28036
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(86@(84@,13s))
126@ = 0
127@ = 0

:TWAR7_28067
goto @TWAR7_28097

:TWAR7_28074
Text.PrintNow('SMK1_01', 11000, 1)
83@ = 12

:TWAR7_28097
if 
  Char.IsSittingInCar($scplayer, 37@)
goto_if_false @TWAR7_28149
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(86@(84@,13s))
83@ = 13
84@ = 0
Text.ClearPrints

:TWAR7_28149
if 
  83@ == 12
goto_if_false @TWAR7_28202
if 
  Char.IsSittingInCar($scplayer, 37@)
goto_if_false @TWAR7_28202
83@ = 13
84@ = 0
Text.ClearPrints

:TWAR7_28202
if 
  83@ == 13
goto_if_false @TWAR7_28418
if 
  Char.IsSittingInCar($scplayer, 37@)
goto_if_false @TWAR7_28344
TIMERB = 0
set_lvar_int_to_lvar_int 83@ = 132@
set_lvar_int_to_lvar_int 84@ = 131@
gosub @TWAR7_29790
if 
  132@ == 0
goto_if_false @TWAR7_28344
if 
  68@ == 0
goto_if_false @TWAR7_28328
Text.PrintNow('SMK1_02', 7000, 1)
goto @TWAR7_28344

:TWAR7_28328
Text.PrintNow('SMK1_10', 7000, 1)

:TWAR7_28344
if 
  not Char.IsInCar($scplayer, 37@)
goto_if_false @TWAR7_28418
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(86@(84@,13s))
83@ = 11
84@ = Math.RandomIntInRange(0, 5)
set_lvar_int_to_lvar_int 130@ = 84@
130@ += 1
gosub @TWAR7_29790

:TWAR7_28418
if or
  83@ == 3
  83@ == 4
  83@ == 5
  83@ == 8
  83@ == 10
goto_if_false @TWAR7_28518
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_28511
gosub @TWAR7_31954
gosub @TWAR7_32061
gosub @TWAR7_32215
goto @TWAR7_28518

:TWAR7_28511
83@ = 0

:TWAR7_28518
if 
  67@ > 3
goto_if_false @TWAR7_29524
if or
  14 > 67@
  67@ == 16
goto_if_false @TWAR7_29524
if 
  Char.IsGroupMember($mc_strap, $Players_Group)
goto_if_false @TWAR7_28917
if 
  Char.LocateAnyMeansChar3D($mc_strap, $scplayer, 10.0, 10.0, 8.0, False)
goto_if_false @TWAR7_28910
if and
  Char.IsOnFoot($scplayer)
  Char.IsOnFoot($mc_strap)
goto_if_false @TWAR7_28763
if 
  83@ == 9
goto_if_false @TWAR7_28763
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_28756
gosub @TWAR7_31954
gosub @TWAR7_32061
if 
  not Char.IsDead($mc_strap)
goto_if_false @TWAR7_28718
gosub @TWAR7_32215
goto @TWAR7_28749

:TWAR7_28718
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(86@(84@,13s))
126@ = 0
127@ = 0

:TWAR7_28749
goto @TWAR7_28763

:TWAR7_28756
83@ = 0

:TWAR7_28763
if and
  Char.IsInAnyCar($scplayer)
  Char.IsInAnyCar($mc_strap)
goto_if_false @TWAR7_28910
if 
  83@ == 9
goto_if_false @TWAR7_28910
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_28903
gosub @TWAR7_31954
gosub @TWAR7_32061
if 
  not Char.IsDead($mc_strap)
goto_if_false @TWAR7_28865
gosub @TWAR7_32215
goto @TWAR7_28896

:TWAR7_28865
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(86@(84@,13s))
126@ = 0
127@ = 0

:TWAR7_28896
goto @TWAR7_28910

:TWAR7_28903
83@ = 0

:TWAR7_28910
goto @TWAR7_29034

:TWAR7_28917
if 
  14 > 83@
goto_if_false @TWAR7_29034
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_28961
84@ += 1

:TWAR7_28961
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(86@(84@,13s))
Text.ClearPrints
set_lvar_int_to_lvar_int 132@ = 83@
set_lvar_int_to_lvar_int 131@ = 84@
83@ = 14
84@ = Math.RandomIntInRange(0, 3)
set_lvar_int_to_lvar_int 130@ = 84@
130@ += 1
gosub @TWAR7_29790

:TWAR7_29034
if 
  83@ == 14
goto_if_false @TWAR7_29225
if 
  not Char.IsGroupMember($mc_strap, $Players_Group)
goto_if_false @TWAR7_29202
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_29172
gosub @TWAR7_31954
gosub @TWAR7_32061
if 
  not Char.IsDead($mc_strap)
goto_if_false @TWAR7_29134
gosub @TWAR7_32215
goto @TWAR7_29165

:TWAR7_29134
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(86@(84@,13s))
126@ = 0
127@ = 0

:TWAR7_29165
goto @TWAR7_29195

:TWAR7_29172
Text.PrintNow('SMK1_09', 7000, 1)
83@ = 15

:TWAR7_29195
goto @TWAR7_29225

:TWAR7_29202
Text.PrintNow('SMK1_09', 7000, 1)
83@ = 15

:TWAR7_29225
if 
  83@ == 15
goto_if_false @TWAR7_29278
if 
  Char.IsGroupMember($mc_strap, $Players_Group)
goto_if_false @TWAR7_29278
83@ = 16
84@ = 0
Text.ClearPrints

:TWAR7_29278
if 
  83@ == 16
goto_if_false @TWAR7_29524
if 
  Char.IsGroupMember($mc_strap, $Players_Group)
goto_if_false @TWAR7_29469
TIMERB = 0
set_lvar_int_to_lvar_int 83@ = 132@
set_lvar_int_to_lvar_int 84@ = 131@
gosub @TWAR7_29790
if 
  132@ == 0
goto_if_false @TWAR7_29462
if 
  14 > 67@
goto_if_false @TWAR7_29446
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @TWAR7_29423
Text.PrintNow('SMK1_04', 7000, 1)
goto @TWAR7_29439

:TWAR7_29423
Text.PrintNow('SMK1_11', 7000, 1)

:TWAR7_29439
goto @TWAR7_29462

:TWAR7_29446
Text.PrintNow('SMK1_13', 8500, 1)

:TWAR7_29462
goto @TWAR7_29524

:TWAR7_29469
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(86@(84@,13s))
83@ = 14
84@ = Math.RandomIntInRange(0, 3)
set_lvar_int_to_lvar_int 130@ = 84@
130@ += 1
gosub @TWAR7_29790

:TWAR7_29524
if or
  83@ == 6
  83@ == 7
goto_if_false @TWAR7_29657
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_29650
gosub @TWAR7_31954
gosub @TWAR7_32061
if 
  not Char.IsDead(34@)
goto_if_false @TWAR7_29612
gosub @TWAR7_32215
goto @TWAR7_29643

:TWAR7_29612
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(86@(84@,13s))
126@ = 0
127@ = 0

:TWAR7_29643
goto @TWAR7_29657

:TWAR7_29650
83@ = 0

:TWAR7_29657
if 
  83@ == 17
goto_if_false @TWAR7_29788
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_29781
gosub @TWAR7_31954
gosub @TWAR7_32061
if and
  not Char.IsDead(34@)
  not Char.IsDead($mc_strap)
goto_if_false @TWAR7_29743
gosub @TWAR7_32215
goto @TWAR7_29774

:TWAR7_29743
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(86@(84@,13s))
126@ = 0
127@ = 0

:TWAR7_29774
goto @TWAR7_29788

:TWAR7_29781
83@ = 0

:TWAR7_29788
return 

:TWAR7_29790
if 
  83@ == 1
goto_if_false @TWAR7_29991
set_lvar_text_label 86@s = 'SMO1_AA'
set_lvar_text_label 88@s = 'SMO1_AC'
set_lvar_text_label 90@s = 'SMO1_AD'
set_lvar_text_label 92@s = 'SMO1_AE'
set_lvar_text_label 94@s = 'SMO1_AF'
set_lvar_text_label 96@s = 'SMO1_AG'
set_lvar_text_label 98@s = 'SMO1_AH'
set_lvar_text_label 100@s = 'SMO1_AJ'
set_lvar_int_to_constant 112@ = 9636
set_lvar_int_to_constant 113@ = 9619
set_lvar_int_to_constant 114@ = 9669
set_lvar_int_to_constant 115@ = 9620
set_lvar_int_to_constant 116@ = 9637
set_lvar_int_to_constant 117@ = 9621
set_lvar_int_to_constant 118@ = 9670
set_lvar_int_to_constant 119@ = 9671
125@ = 8

:TWAR7_29991
if 
  83@ == 2
goto_if_false @TWAR7_30170
set_lvar_text_label 86@s = 'SMO1_BA'
set_lvar_text_label 88@s = 'SMO1_BB'
set_lvar_text_label 90@s = 'SMO1_BC'
set_lvar_text_label 92@s = 'SMO1_BD'
set_lvar_text_label 94@s = 'SMO1_BE'
set_lvar_text_label 96@s = 'SMO1_BF'
set_lvar_text_label 98@s = 'SMO1_BG'
set_lvar_int_to_constant 112@ = 9622
set_lvar_int_to_constant 113@ = 9641
set_lvar_int_to_constant 114@ = 9672
set_lvar_int_to_constant 115@ = 9642
set_lvar_int_to_constant 116@ = 9643
set_lvar_int_to_constant 117@ = 9638
set_lvar_int_to_constant 118@ = 9644
125@ = 7

:TWAR7_30170
if 
  83@ == 3
goto_if_false @TWAR7_30349
set_lvar_text_label 86@s = 'SMO1_CA'
set_lvar_text_label 88@s = 'SMO1_CB'
set_lvar_text_label 90@s = 'SMO1_CC'
set_lvar_text_label 92@s = 'SMO1_CD'
set_lvar_text_label 94@s = 'SMO1_CE'
set_lvar_text_label 96@s = 'SMO1_CF'
set_lvar_text_label 98@s = 'SMO1_CG'
set_lvar_int_to_constant 112@ = 9645
set_lvar_int_to_constant 113@ = 9674
set_lvar_int_to_constant 114@ = 9646
set_lvar_int_to_constant 115@ = 9673
set_lvar_int_to_constant 116@ = 9675
set_lvar_int_to_constant 117@ = 9639
set_lvar_int_to_constant 118@ = 9640
125@ = 7

:TWAR7_30349
if 
  83@ == 4
goto_if_false @TWAR7_30595
set_lvar_text_label 86@s = 'SMO1_CH'
set_lvar_text_label 88@s = 'SMO1_DB'
set_lvar_text_label 90@s = 'SMO1_CJ'
set_lvar_text_label 92@s = 'SMO1_CK'
set_lvar_text_label 94@s = 'SMO1_CL'
set_lvar_text_label 96@s = 'SMO1_CM'
set_lvar_text_label 98@s = 'SMO1_CN'
set_lvar_text_label 100@s = 'SMO1_CO'
set_lvar_text_label 102@s = 'SMO1_CP'
set_lvar_text_label 104@s = 'SMO1_DA'
set_lvar_int_to_constant 112@ = 9647
set_lvar_int_to_constant 113@ = 9623
set_lvar_int_to_constant 114@ = 9600
set_lvar_int_to_constant 115@ = 9601
set_lvar_int_to_constant 116@ = 9602
set_lvar_int_to_constant 117@ = 9648
set_lvar_int_to_constant 118@ = 9649
set_lvar_int_to_constant 119@ = 9603
set_lvar_int_to_constant 120@ = 9604
set_lvar_int_to_constant 121@ = 9650
set_lvar_int_to_lvar_int 125@ = 130@

:TWAR7_30595
if 
  83@ == 5
goto_if_false @TWAR7_30664
set_lvar_text_label 86@s = 'SMO1_EA'
set_lvar_text_label 88@s = 'SMO1_EB'
set_lvar_int_to_constant 112@ = 9625
set_lvar_int_to_constant 113@ = 9651
125@ = 2

:TWAR7_30664
if 
  83@ == 6
goto_if_false @TWAR7_30910
set_lvar_text_label 86@s = 'SMO1_FA'
set_lvar_text_label 88@s = 'SMO1_FB'
set_lvar_text_label 90@s = 'SMO1_FC'
set_lvar_text_label 92@s = 'SMO1_FD'
set_lvar_text_label 94@s = 'SMO1_FE'
set_lvar_text_label 96@s = 'SMO1_FF'
set_lvar_text_label 98@s = 'SMO1_FG'
set_lvar_text_label 100@s = 'SMO1_FH'
set_lvar_text_label 102@s = 'SMO1_FJ'
set_lvar_text_label 104@s = 'SMO1_FK'
set_lvar_int_to_constant 112@ = 9605
set_lvar_int_to_constant 113@ = 9606
set_lvar_int_to_constant 114@ = 9607
set_lvar_int_to_constant 115@ = 9608
set_lvar_int_to_constant 116@ = 9609
set_lvar_int_to_constant 117@ = 9610
set_lvar_int_to_constant 118@ = 9611
set_lvar_int_to_constant 119@ = 9612
set_lvar_int_to_constant 120@ = 9613
set_lvar_int_to_constant 121@ = 9614
set_lvar_int_to_lvar_int 125@ = 130@

:TWAR7_30910
if 
  83@ == 7
goto_if_false @TWAR7_30979
set_lvar_text_label 86@s = 'SMO1_GA'
set_lvar_text_label 88@s = 'SMO1_GB'
set_lvar_int_to_constant 112@ = 9617
set_lvar_int_to_constant 113@ = 9618
125@ = 2

:TWAR7_30979
if 
  83@ == 8
goto_if_false @TWAR7_31180
set_lvar_text_label 86@s = 'SMO1_HA'
set_lvar_text_label 88@s = 'SMO1_HB'
set_lvar_text_label 90@s = 'SMO1_HC'
set_lvar_text_label 92@s = 'SMO1_HD'
set_lvar_text_label 94@s = 'SMO1_HE'
set_lvar_text_label 96@s = 'SMO1_HF'
set_lvar_text_label 98@s = 'SMO1_HG'
set_lvar_text_label 100@s = 'SMO1_HH'
set_lvar_int_to_constant 112@ = 9656
set_lvar_int_to_constant 113@ = 9626
set_lvar_int_to_constant 114@ = 9627
set_lvar_int_to_constant 115@ = 9657
set_lvar_int_to_constant 116@ = 9628
set_lvar_int_to_constant 117@ = 9658
set_lvar_int_to_constant 118@ = 9629
set_lvar_int_to_constant 119@ = 9659
125@ = 8

:TWAR7_31180
if 
  83@ == 9
goto_if_false @TWAR7_31425
set_lvar_text_label 86@s = 'SMO1_JA'
set_lvar_text_label 88@s = 'SMO1_JB'
set_lvar_text_label 90@s = 'SMO1_JC'
set_lvar_text_label 92@s = 'SMO1_JD'
set_lvar_text_label 94@s = 'SMO1_JG'
set_lvar_text_label 96@s = 'SMO1_JM'
set_lvar_text_label 98@s = 'SMO1_JH'
set_lvar_text_label 100@s = 'SMO1_JJ'
set_lvar_text_label 102@s = 'SMO1_JK'
set_lvar_text_label 104@s = 'SMO1_JL'
set_lvar_int_to_constant 112@ = 9660
set_lvar_int_to_constant 113@ = 9630
set_lvar_int_to_constant 114@ = 9661
set_lvar_int_to_constant 115@ = 9662
set_lvar_int_to_constant 116@ = 9631
set_lvar_int_to_constant 117@ = 9634
set_lvar_int_to_constant 118@ = 9663
set_lvar_int_to_constant 119@ = 9632
set_lvar_int_to_constant 120@ = 9664
set_lvar_int_to_constant 121@ = 9633
125@ = 10

:TWAR7_31425
if 
  83@ == 10
goto_if_false @TWAR7_31560
set_lvar_text_label 86@s = 'SMO1_KA'
set_lvar_text_label 88@s = 'SMO1_KB'
set_lvar_text_label 90@s = 'SMO1_KC'
set_lvar_text_label 92@s = 'SMO1_KD'
set_lvar_text_label 94@s = 'SMO1_KE'
set_lvar_int_to_constant 112@ = 9665
set_lvar_int_to_constant 113@ = 9666
set_lvar_int_to_constant 114@ = 9635
set_lvar_int_to_constant 115@ = 9667
set_lvar_int_to_constant 116@ = 9668
125@ = 5

:TWAR7_31560
if 
  83@ == 11
goto_if_false @TWAR7_31718
set_lvar_text_label 86@s = 'SMOX_AA'
set_lvar_text_label 88@s = 'SMOX_AB'
set_lvar_text_label 90@s = 'SMOX_AC'
set_lvar_text_label 92@s = 'SMOX_AD'
set_lvar_text_label 94@s = 'SMOX_AE'
set_lvar_text_label 96@s = 'SMOX_AF'
set_lvar_int_to_constant 112@ = 25800
set_lvar_int_to_constant 113@ = 25801
set_lvar_int_to_constant 114@ = 25802
set_lvar_int_to_constant 115@ = 25803
set_lvar_int_to_constant 116@ = 25804
set_lvar_int_to_constant 117@ = 25805
set_lvar_int_to_lvar_int 125@ = 130@

:TWAR7_31718
if 
  83@ == 14
goto_if_false @TWAR7_31810
set_lvar_text_label 86@s = 'LOCX_AA'
set_lvar_text_label 88@s = 'LOCX_AB'
set_lvar_text_label 90@s = 'LOCX_AC'
set_lvar_int_to_constant 112@ = 25000
set_lvar_int_to_constant 113@ = 25001
set_lvar_int_to_constant 114@ = 25002
set_lvar_int_to_lvar_int 125@ = 130@

:TWAR7_31810
if 
  83@ == 17
goto_if_false @TWAR7_31923
set_lvar_text_label 86@s = 'SMO1_GC'
set_lvar_text_label 88@s = 'SMO1_GD'
set_lvar_text_label 90@s = 'SMO1_GE'
set_lvar_text_label 92@s = 'SMO1_GF'
set_lvar_int_to_constant 112@ = 9652
set_lvar_int_to_constant 113@ = 9653
set_lvar_int_to_constant 114@ = 9654
set_lvar_int_to_constant 115@ = 9655
125@ = 4

:TWAR7_31923
set_lvar_int_to_lvar_int 128@ = 84@
126@ = 0
127@ = 0
129@ = 1
return 

:TWAR7_31954
if 
  is_int_lvar_greater_than_int_lvar 125@ > 128@
goto_if_false @TWAR7_32059
if 
  126@ == 0
goto_if_false @TWAR7_32016
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 112@(128@,13i))
128@ += 1
126@ = 1

:TWAR7_32016
if 
  127@ == 0
goto_if_false @TWAR7_32059
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 112@(128@,13i))
128@ += 1
127@ = 1

:TWAR7_32059
return 

:TWAR7_32061
if 
  129@ == 1
goto_if_false @TWAR7_32137
if 
  126@ == 1
goto_if_false @TWAR7_32137
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @TWAR7_32137
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(86@(84@,13s), 4500, 1)
126@ = 2

:TWAR7_32137
if 
  129@ == 2
goto_if_false @TWAR7_32213
if 
  127@ == 1
goto_if_false @TWAR7_32213
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @TWAR7_32213
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow(86@(84@,13s), 4500, 1)
127@ = 2

:TWAR7_32213
return 

:TWAR7_32215
if 
  126@ == 2
goto_if_false @TWAR7_32278
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @TWAR7_32278
Text.ClearThisPrint(86@(84@,13s))
84@ += 1
129@ = 2
126@ = 0

:TWAR7_32278
if 
  127@ == 2
goto_if_false @TWAR7_32341
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @TWAR7_32341
Text.ClearThisPrint(86@(84@,13s))
84@ += 1
129@ = 1
127@ = 0

:TWAR7_32341
return 

//-------------Mission 28---------------
// Originally: Running Dog

:SMOKE2
script_name 'SMOKE2'
gosub @SMOKE2_47
if 
  has_deatharrest_been_executed 
goto_if_false @SMOKE2_38
gosub @SMOKE2_11279

:SMOKE2_38
gosub @SMOKE2_11359
terminate_this_script 

:SMOKE2_47
Stat.RegisterMissionGiven
Text.LoadMissionText('SMOKE2')
$onmission = 1
wait 0
36@ = 2068.42
37@ = -1694.87
38@ = 13.3
39@ = 270.0
$loaded_boxes_neg = 2514.34
$s2_meet_x = -1411.93
$s2_meet_y = 27.41
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
46@ = 22
47@ = 2459.8
69@ = -1402.19
91@ = 24.06
48@ = 2442.07
70@ = -1370.23
92@ = 24.06
49@ = 2414.49
71@ = -1369.36
93@ = 24.76
50@ = 2410.19
72@ = -1364.03
94@ = 24.75
51@ = 2399.68
73@ = -1358.24
95@ = 24.93
52@ = 2381.88
74@ = -1354.88
96@ = 24.08
53@ = 2343.29
75@ = -1351.41
97@ = 24.06
54@ = 2336.29
76@ = -1310.99
98@ = 24.29
55@ = 2257.07
77@ = -1291.85
99@ = 24.01
56@ = 2241.61
78@ = -1281.61
100@ = 24.42
57@ = 2241.61
79@ = -1264.68
101@ = 24.37
58@ = 2239.48
80@ = -1260.91
102@ = 23.98
59@ = 2241.18
81@ = -1257.88
103@ = 23.99
60@ = 2241.18
82@ = -1254.46
104@ = 24.46
61@ = 2241.18
83@ = -1238.3
105@ = 25.21
62@ = 2221.54
84@ = -1235.75
106@ = 24.62
63@ = 2202.27
85@ = -1236.72
107@ = 24.0
64@ = 2202.21
86@ = -1257.05
108@ = 23.91
65@ = 2199.57
87@ = -1263.15
109@ = 23.92
66@ = 2199.08
88@ = -1279.44
110@ = 24.57
67@ = 2182.07
89@ = -1280.2
111@ = 24.68
68@ = 2175.18
90@ = -1282.82
112@ = 24.02
126@ = 2117.86
127@ = -1071.42
128@ = 24.64
129@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
157@ = 0
158@ = 0
160@ = 0
182@ = 0
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:SMOKE2_1021
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE2_1045
wait 0
goto @SMOKE2_1021

:SMOKE2_1045
World.ClearArea(2069.9, -1702.73, 12.59, 100.0, False)
Streaming.RequestModel(#LAE_SMOKECUTSCENE)

:SMOKE2_1074
if 
  not Streaming.HasModelLoaded(#LAE_SMOKECUTSCENE)
goto_if_false @SMOKE2_1101
wait 0
goto @SMOKE2_1074

:SMOKE2_1101
187@ = Object.CreateNoOffset(#LAE_SMOKECUTSCENE, 2055.0, -1695.0, 15.0)
Cutscene.Load('SMOKE2A')

:SMOKE2_1135
if 
  not Cutscene.HasLoaded
goto_if_false @SMOKE2_1159
wait 0
goto @SMOKE2_1135

:SMOKE2_1159
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SMOKE2_1168
if 
  not Cutscene.HasFinished
goto_if_false @SMOKE2_1192
wait 0
goto @SMOKE2_1168

:SMOKE2_1192
Camera.DoFade(0, Fade.Out)

:SMOKE2_1198
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE2_1222
wait 0
goto @SMOKE2_1198

:SMOKE2_1222
Cutscene.Clear
Player.SetControl($player1, False)
Streaming.MarkModelAsNoLongerNeeded(#LAE_SMOKECUTSCENE)
Object.Delete(187@)
Streaming.LoadSpecialCharacter(1, 'SMOKE')
Streaming.RequestModel(466)
Streaming.RequestModel(346)
Streaming.LoadAllModelsNow

:SMOKE2_1266
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(466)
  not Streaming.HasModelLoaded(346)
goto_if_false @SMOKE2_1302
wait 0
goto @SMOKE2_1266

:SMOKE2_1302
gosub @SMOKE2_5382
Streaming.LoadScene(2069.9, -1702.73, 12.59)
World.ClearArea(2069.9, -1702.73, 12.59, 100.0, False)
World.ClearArea($loaded_boxes_neg, $s2_meet_x, $s2_meet_y, 100.0, False)
Path.SwitchRoadsOff(2488.0, -1431.93, 25.41, 2528.0, -1391.93, 29.41)
Path.SwitchRoadsOff(2252.89, -1286.37, 22.25, 2258.89, -1280.37, 28.25)
Audio.SetRadioChannel(RadioChannel.BounceFM)
Char.SetCoordinates($scplayer, 2070.87, -1703.01, 12.55)
Char.SetHeading($scplayer, 0.0)
Camera.SetFadingColor(0, 0, 0)
wait 500
Camera.DoFade(1500, Fade.In)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
if 
  182@ == 1
goto_if_false @SMOKE2_1678
34@ = Car.Create(466, 0.0, 0.0, -100.0)
183@ = Blip.AddForCar(34@)
35@ = Char.Create(PedType.Mission1, 290, 0.0, 0.0, -100.0)
41@ = Char.Create(PedType.Mission2, 108, 0.0, 0.0, -100.0)
42@ = Car.Create(405, 0.0, 0.0, -100.0)
43@ = Char.CreateInsideCar(42@, PedType.Mission2, 109)
44@ = Char.Create(PedType.Mission2, 109, 0.0, 0.0, -100.0)
45@ = Char.Create(PedType.Mission2, 110, 0.0, 0.0, -100.0)

:SMOKE2_1678
Path.SwitchPedRoadsOff(2458.5, -1410.63, 24.06, 2504.27, -1395.83, 28.55)
115@ = Sequence.Open()
Task.GoStraightToCoord(-1, 47@, 69@, 91@, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 48@, 70@, 92@, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 49@, 71@, 93@, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 50@, 72@, 94@, MoveState.Run, -1)
Task.Climb(-1, True)
Task.GoStraightToCoord(-1, 51@, 73@, 95@, MoveState.Run, -1)
Task.Climb(-1, True)
Task.GoStraightToCoord(-1, 52@, 74@, 96@, MoveState.Run, -1)
Sequence.Close(115@)
116@ = Sequence.Open()
Task.Climb(-1, True)
Task.GoStraightToCoord(-1, 53@, 75@, 97@, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 54@, 76@, 98@, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 55@, 77@, 99@, MoveState.Sprint, -1)
Task.GoStraightToCoord(-1, 2254.09, -1283.83, 25.18, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 56@, 78@, 100@, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 57@, 79@, 101@, MoveState.Run, -1)
Task.Climb(-1, True)
Sequence.Close(116@)
117@ = Sequence.Open()
Task.GoStraightToCoord(-1, 58@, 80@, 102@, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 59@, 81@, 103@, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 60@, 82@, 104@, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 61@, 83@, 105@, MoveState.Run, -1)
Task.AchieveHeading(-1, 90.0)
Task.Climb(-1, True)
Task.GoStraightToCoord(-1, 62@, 84@, 106@, MoveState.Run, -1)
Task.Climb(-1, True)
Sequence.Close(117@)
118@ = Sequence.Open()
Task.GoStraightToCoord(-1, 63@, 85@, 107@, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 64@, 86@, 108@, MoveState.Run, -1)
Task.Climb(-1, True)
Task.GoStraightToCoord(-1, 65@, 87@, 109@, MoveState.Run, -1)
Task.Climb(-1, True)
Task.GoStraightToCoord(-1, 66@, 88@, 110@, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 67@, 89@, 111@, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 68@, 90@, 112@, MoveState.Run, -1)
Sequence.Close(118@)
114@ = Sequence.Open()
Char.PerformSequence(-1, 115@)
Char.PerformSequence(-1, 116@)
Char.PerformSequence(-1, 117@)
Char.PerformSequence(-1, 118@)
Sequence.Close(114@)
Text.PrintNow('SMK2_1', 10000, 0)

:SMOKE2_2258
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SMOKE2_2284
goto @SMOKE2_11304

:SMOKE2_2284
if and
  162@ <> 1
  not Char.IsDead(35@)
  not Car.IsDead(34@)
goto_if_false @SMOKE2_2436
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @SMOKE2_2436
Blip.Remove(183@)
184@ = Blip.AddForCoord($loaded_boxes_neg, $s2_meet_x, $s2_meet_y)
162@ = 1
163@ = 1
Text.PrintNow('SMK2_2', 11000, 0)
40@ = Pickup.CreateWithAmmo(346, PickupType.Once, 100, 2444.895, -1981.524, 13.933)
186@ = Blip.AddSpriteForCoord(2444.895, -1981.524, 13.933, RadarSprite.EmmetGun)
TIMERA = 0

:SMOKE2_2436
if and
  162@ == 1
  166@ <> 1
  not Char.IsDead(35@)
  not Car.IsDead(34@)
goto_if_false @SMOKE2_3206
if 
  167@ <> 1
goto_if_false @SMOKE2_2517
if 
  Pickup.HasBeenCollected(40@)
goto_if_false @SMOKE2_2517
Blip.Remove(186@)
167@ = 1

:SMOKE2_2517
if and
  163@ == 1
  not Char.IsInCar($scplayer, 34@)
goto_if_false @SMOKE2_2743
Blip.Remove(184@)
183@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(183@, True)
gosub @SMOKE2_10713
if 
  Char.IsDead(35@)
goto_if_false @SMOKE2_2613
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SMK2_7', 4000, 0)
goto @SMOKE2_11279

:SMOKE2_2613
if 
  Car.IsDead(34@)
goto_if_false @SMOKE2_2652
Text.PrintNow('SMK2_12', 5000, 0)
goto @SMOKE2_11279

:SMOKE2_2652
if or
  not Char.LocateAnyMeans2D($scplayer, 2444.895, -1981.524, 20.0, 20.0, False)
  167@ == 1
goto_if_false @SMOKE2_2720
Text.PrintNow('SMK2_3', 5000, 0)
goto @SMOKE2_2736

:SMOKE2_2720
Text.PrintNow('SMK2_16', 5000, 0)

:SMOKE2_2736
163@ = 0

:SMOKE2_2743
if and
  163@ == 0
  Char.IsInCar($scplayer, 34@)
goto_if_false @SMOKE2_2829
Blip.Remove(183@)
184@ = Blip.AddForCoord($loaded_boxes_neg, $s2_meet_x, $s2_meet_y)
if 
  165@ == 1
goto_if_false @SMOKE2_2822
Text.PrintNow('SMK2_15', 5000, 0)

:SMOKE2_2822
163@ = 1

:SMOKE2_2829
if 
  163@ == 1
goto_if_false @SMOKE2_3005
if and
  164@ <> 1
  TIMERA > 10000
goto_if_false @SMOKE2_2917
161@ = 2
gosub @SMOKE2_9885
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE2_2910
Char.ShutUpForScriptedSpeech(35@, True)

:SMOKE2_2910
164@ = 1

:SMOKE2_2917
if and
  164@ == 1
  165@ <> 1
goto_if_false @SMOKE2_3005
if 
  is_int_lvar_greater_than_int_lvar 159@ > 158@
goto_if_false @SMOKE2_2975
gosub @SMOKE2_10482
goto @SMOKE2_3005

:SMOKE2_2975
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE2_2998
Char.ShutUpForScriptedSpeech(35@, False)

:SMOKE2_2998
165@ = 1

:SMOKE2_3005
if 
  163@ == 1
goto_if_false @SMOKE2_3206
if 
  Char.LocateInCar3D($scplayer, $loaded_boxes_neg, $s2_meet_x, $s2_meet_y, 4.0, 4.0, 2.0, True)
goto_if_false @SMOKE2_3206
Player.SetControl($player1, False)
166@ = 1
Blip.Remove(184@)
Blip.Remove(186@)
Path.SwitchRoadsBackToOriginal(2488.0, -1431.93, 25.41, 2528.0, -1391.93, 29.41)
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE2_3144
Char.ShutUpForScriptedSpeech(35@, False)

:SMOKE2_3144
gosub @SMOKE2_5582
Path.SwitchRoadsOff(2164.51, -1287.88, 20.0, 2170.88, -1267.88, 30.0)
Text.PrintNow('SMK2_17', 10000, 0)
TIMERA = 0

:SMOKE2_3206
if 
  166@ == 1
goto_if_false @SMOKE2_5048
if and
  168@ <> 1
  TIMERA > 10000
goto_if_false @SMOKE2_3275
Text.PrintHelpForever('SMK2_H1')
168@ = 1
TIMERA = 0

:SMOKE2_3275
if and
  168@ == 1
  169@ <> 1
  TIMERA > 10000
goto_if_false @SMOKE2_3333
Text.PrintHelpForever('SMK2_H2')
169@ = 1
TIMERA = 0

:SMOKE2_3333
if and
  169@ == 1
  170@ <> 1
  TIMERA > 10000
goto_if_false @SMOKE2_3391
Text.PrintHelpForever('SPRSTAM')
170@ = 1
TIMERA = 0

:SMOKE2_3391
if and
  170@ == 1
  171@ <> 1
  TIMERA > 10000
goto_if_false @SMOKE2_3433
Text.ClearHelp
171@ = 1

:SMOKE2_3433
if 
  173@ <> 1
goto_if_false @SMOKE2_3673
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE2_3549
if and
  Char.LocateAnyMeansChar2D($scplayer, 35@, 5.0, 5.0, False)
  172@ <> 1
goto_if_false @SMOKE2_3549
161@ = 1
gosub @SMOKE2_9885
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE2_3542
Char.ShutUpForScriptedSpeech(35@, True)

:SMOKE2_3542
172@ = 1

:SMOKE2_3549
if and
  172@ == 1
  161@ == 1
goto_if_false @SMOKE2_3673
if 
  is_int_lvar_greater_than_int_lvar 159@ > 158@
goto_if_false @SMOKE2_3643
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE2_3623
gosub @SMOKE2_10482
goto @SMOKE2_3636

:SMOKE2_3623
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
173@ = 1

:SMOKE2_3636
goto @SMOKE2_3673

:SMOKE2_3643
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE2_3666
Char.ShutUpForScriptedSpeech(35@, False)

:SMOKE2_3666
173@ = 1

:SMOKE2_3673
if 
  174@ <> 1
goto_if_false @SMOKE2_3806
if 
  Char.LocateAnyMeans2D($scplayer, 2354.11, -1355.54, 15.0, 15.0, False)
goto_if_false @SMOKE2_3806
113@ = 0

:SMOKE2_3736
if 
  2 > 113@
goto_if_false @SMOKE2_3799
if 
  not Char.IsDead(44@(113@,2i))
goto_if_false @SMOKE2_3785
Char.SetKindaStayInSamePlace(44@(113@,2i), False)

:SMOKE2_3785
113@ += 1
goto @SMOKE2_3736

:SMOKE2_3799
174@ = 1

:SMOKE2_3806
if 
  not Char.IsDead(41@)
goto_if_false @SMOKE2_4137
if 
  175@ <> 1
goto_if_false @SMOKE2_3912
122@ = Char.GetScriptTaskStatus(41@, 1952)
if 
  is_int_lvar_equal_to_constant 122@ == 1
goto_if_false @SMOKE2_3912
119@, 120@ = Char.GetSequenceProgressRecursive(41@)
if and
  119@ == 1
  120@ == 4
goto_if_false @SMOKE2_3912
175@ = 1

:SMOKE2_3912
if 
  175@ <> 1
goto_if_false @SMOKE2_4037
if 
  Char.IsPlayingAnim(41@, "RUN_GANG1")
goto_if_false @SMOKE2_3978
Char.SetAnimSpeed(41@, "RUN_GANG1", 1.5)

:SMOKE2_3978
if 
  Char.IsPlayingAnim(41@, "SPRINT_CIVI")
goto_if_false @SMOKE2_4030
Char.SetAnimSpeed(41@, "SPRINT_CIVI", 1.5)

:SMOKE2_4030
goto @SMOKE2_4137

:SMOKE2_4037
if 
  Char.IsPlayingAnim(41@, "RUN_GANG1")
goto_if_false @SMOKE2_4085
Char.SetAnimSpeed(41@, "RUN_GANG1", 1.2)

:SMOKE2_4085
if 
  Char.IsPlayingAnim(41@, "SPRINT_CIVI")
goto_if_false @SMOKE2_4137
Char.SetAnimSpeed(41@, "SPRINT_CIVI", 1.2)

:SMOKE2_4137
if 
  not Char.IsDead(41@)
goto_if_false @SMOKE2_5041
if 
  176@ <> 1
goto_if_false @SMOKE2_4314
set_lvar_int_to_lvar_int 113@ = 46@
113@ -= 1
122@ = Char.GetScriptTaskStatus(41@, 1952)
if and
  is_int_lvar_equal_to_constant 122@ == 7
  Char.LocateAnyMeans3D(41@, 47@(113@,22f), 69@(113@,22f), 91@(113@,22f), 10.0, 10.0, 10.0, False)
goto_if_false @SMOKE2_4314
176@ = 1
if and
  not Car.IsDead(42@)
  not Char.IsDead(43@)
goto_if_false @SMOKE2_4314
if 
  not Car.IsOnFire(42@)
goto_if_false @SMOKE2_4314
Task.EnterCarAsPassenger(41@, 42@, -2, 0)

:SMOKE2_4314
if 
  180@ <> 1
goto_if_false @SMOKE2_4384
if and
  not Char.IsDead(43@)
  not Car.IsDead(42@)
goto_if_false @SMOKE2_4384
if 
  Car.IsOnFire(42@)
goto_if_false @SMOKE2_4384
Task.KillCharOnFoot(43@, $scplayer)
180@ = 1

:SMOKE2_4384
if and
  176@ == 1
  177@ <> 1
goto_if_false @SMOKE2_5034
if 
  178@ <> 1
goto_if_false @SMOKE2_4743
if and
  not Car.IsDead(42@)
  not Char.IsDead(43@)
goto_if_false @SMOKE2_4631
if 
  Char.IsInCar(41@, 42@)
goto_if_false @SMOKE2_4631
178@ = 1
Task.CarDriveWander(43@, 42@, 30.0, DrivingMode.AvoidCars)
Char.GiveWeapon(41@, WeaponType.MicroUzi, 99999)
Task.DriveBy(41@, $scplayer, -1, 0.0, 0.0, 0.0, 1000.0, DriveByType.Ai, False, 60)
Path.SwitchRoadsBackToOriginal(2164.51, -1287.88, 20.0, 2170.88, -1267.88, 30.0)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SMOKE2_4608
Text.PrintNow('SMK2_9', 10000, 0)
goto @SMOKE2_4624

:SMOKE2_4608
Text.PrintNow('SMK2_8', 10000, 0)

:SMOKE2_4624
TIMERA = 0

:SMOKE2_4631
if 
  178@ <> 1
goto_if_false @SMOKE2_4743
if or
  Car.IsDead(42@)
  Char.IsDead(43@)
goto_if_false @SMOKE2_4702
Task.SmartFleeChar(41@, $scplayer, 1000.0, 9999999)
177@ = 1
goto @SMOKE2_4743

:SMOKE2_4702
if 
  Car.IsOnFire(42@)
goto_if_false @SMOKE2_4743
Task.SmartFleeChar(41@, $scplayer, 1000.0, 9999999)
177@ = 1

:SMOKE2_4743
if 
  178@ == 1
goto_if_false @SMOKE2_5034
if 
  177@ <> 1
goto_if_false @SMOKE2_4889
if 
  not Car.IsDead(42@)
goto_if_false @SMOKE2_4889
125@ = Car.GetDriver(42@)
if or
  Car.IsOnFire(42@)
  125@ == -1
goto_if_false @SMOKE2_4889
Task.SmartFleeChar(41@, $scplayer, 1000.0, 9999999)
if and
  not Char.IsDead(43@)
  180@ <> 1
goto_if_false @SMOKE2_4882
Task.KillCharOnFoot(43@, $scplayer)
180@ = 1

:SMOKE2_4882
177@ = 1

:SMOKE2_4889
if 
  177@ <> 1
goto_if_false @SMOKE2_5034
if and
  179@ <> 1
  TIMERA > 180000
goto_if_false @SMOKE2_5034
if and
  not Car.IsDead(42@)
  not Char.IsDead(43@)
goto_if_false @SMOKE2_5034
if and
  Char.IsInCar(43@, 42@)
  Char.IsInCar(41@, 42@)
goto_if_false @SMOKE2_5034
Task.CarDriveToCoord(43@, 42@, 126@, 127@, 128@, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
179@ = 1
Text.PrintNow('SMK2_10', 7000, 0)

:SMOKE2_5034
goto @SMOKE2_5048

:SMOKE2_5041
goto @SMOKE2_11304

:SMOKE2_5048
if 
  Char.IsDead(35@)
goto_if_false @SMOKE2_5087
Text.PrintNow('SMK2_7', 4000, 0)
goto @SMOKE2_11279

:SMOKE2_5087
if and
  166@ <> 1
  Car.IsDead(34@)
goto_if_false @SMOKE2_5133
Text.PrintNow('SMK2_12', 5000, 0)
goto @SMOKE2_11279

:SMOKE2_5133
if and
  176@ == 1
  not Char.IsDead(41@)
goto_if_false @SMOKE2_5210
if 
  not Char.LocateAnyMeansChar2D($scplayer, 41@, 300.0, 300.0, False)
goto_if_false @SMOKE2_5210
Text.PrintNow('SMK2_11', 4000, 0)
goto @SMOKE2_11279

:SMOKE2_5210
if and
  179@ == 1
  177@ <> 1
  not Char.IsDead(41@)
  not Char.IsDead(43@)
  not Car.IsDead(42@)
goto_if_false @SMOKE2_5375
if and
  Char.IsInCar(41@, 42@)
  Char.IsInCar(43@, 42@)
  Car.Locate3D(42@, 126@, 127@, 128@, 6.0, 6.0, 4.0, False)
goto_if_false @SMOKE2_5375
ENTEXT_63()
if 
  $player_is_completely_safe == 1
goto_if_false @SMOKE2_5347
gosub @SMOKE2_8275
goto @SMOKE2_5352

:SMOKE2_5347
Char.RemoveElegantly(41@)

:SMOKE2_5352
Text.PrintNow('SMK2_11', 4000, 0)
goto @SMOKE2_11279

:SMOKE2_5375
goto @SMOKE2_2258

:SMOKE2_5382
Car.CustomPlateForNextCar(466, "_A2TMFK_")
34@ = Car.Create(466, 36@, 37@, 38@)
Car.SetHeading(34@, 39@)
Car.ChangeColor(34@, 98, 14)
183@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(183@, True)
35@ = Char.CreateAsPassenger(34@, PedType.Mission1, 290, 0)
Char.SetHealth(35@, 500)
Char.SetMaxHealth(35@, 500)
Char.GiveWeapon(35@, WeaponType.Pistol, 99999)
Char.SetOnlyDamagedByPlayer(35@, True)
Char.SetNeverTargeted(35@, True)
Char.SetSuffersCriticalHits(35@, False)
Char.SetAnimGroup(35@, "FATMAN")
Char.SetCantBeDraggedOut(35@, True)
Char.SetStayInCarWhenJacked(35@, True)
Char.SetGetOutUpsideDownCar(35@, False)
124@ = DecisionMakerChar.Copy(-1)
DecisionMakerChar.ClearEventResponse(124@, 79)
Char.SetDecisionMaker(35@, 124@)
Char.ClearAllRelationships(35@, RelationshipType.Dislike)
Char.ClearAllRelationships(35@, RelationshipType.Hate)
return 

:SMOKE2_5582
Camera.DoFade(1000, Fade.Out)

:SMOKE2_5589
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE2_5613
wait 0
goto @SMOKE2_5589

:SMOKE2_5613
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
World.ClearArea($loaded_boxes_neg, $s2_meet_x, $s2_meet_y, 150.0, True)
Path.SwitchRoadsOff(2441.38, -1405.59, 15.0, 2460.42, -1368.34, 40.0)
Path.SwitchPedRoadsOff(2441.38, -1405.59, 15.0, 2460.42, -1368.34, 40.0)
World.SetCarDensityMultiplier(0.0)
192@, 193@ = Streaming.GetRandomCarModelInMemory(True)
if 
  192@ <> -1
goto_if_false @SMOKE2_5822
188@ = Car.Create(192@, 2448.31, -1392.34, 23.68)
190@ = Char.CreateRandomAsDriver(188@)
Car.SetHeading(188@, 180.0)
189@ = Car.Create(192@, 2453.7, -1408.14, 23.68)
191@ = Char.CreateRandomAsDriver(189@)
Car.SetHeading(189@, 0.0)

:SMOKE2_5822
if 
  not Car.IsDead(34@)
goto_if_false @SMOKE2_5932
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @SMOKE2_5877
Char.WarpFromCarToCoord($scplayer, 2473.6, -1420.86, 27.88)

:SMOKE2_5877
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE2_5932
if 
  Char.IsInCar(35@, 34@)
goto_if_false @SMOKE2_5932
Char.WarpFromCarToCoord(35@, 2470.6, -1420.86, 27.88)

:SMOKE2_5932
Car.Delete(34@)
Player.SetControl($player1, False)
Player.MakeSafeForCutscene($player1)
Cutscene.Load('SMOKE2B')

:SMOKE2_5960
if 
  not Cutscene.HasLoaded
goto_if_false @SMOKE2_5984
wait 0
goto @SMOKE2_5960

:SMOKE2_5984
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SMOKE2_5993
if 
  not Cutscene.HasFinished
goto_if_false @SMOKE2_6017
wait 0
goto @SMOKE2_5993

:SMOKE2_6017
Camera.DoFade(0, Fade.Out)

:SMOKE2_6023
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE2_6047
wait 0
goto @SMOKE2_6023

:SMOKE2_6047
Cutscene.Clear
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
World.SetCarDensityMultiplier(1.0)
Streaming.RequestModel(108)
Streaming.RequestModel(109)
Streaming.RequestModel(110)
Streaming.RequestModel(405)
Streaming.RequestModel(352)
Streaming.LoadAllModelsNow

:SMOKE2_6091
if or
  not Streaming.HasModelLoaded(108)
  not Streaming.HasModelLoaded(109)
  not Streaming.HasModelLoaded(110)
  not Streaming.HasModelLoaded(405)
  not Streaming.HasModelLoaded(352)
goto_if_false @SMOKE2_6135
wait 0
goto @SMOKE2_6091

:SMOKE2_6135
set_lvar_text_label 130@s = 'SMO2B11'
set_lvar_int_to_constant 148@ = 10840
$s2_meet_z = Math.RandomIntInRange(0, 3)
if 
  $s2_meet_z == 0
goto_if_false @SMOKE2_6206
set_lvar_text_label 132@s = 'SMO2_CA'
set_lvar_int_to_constant 149@ = 10812

:SMOKE2_6206
if 
  $s2_meet_z == 1
goto_if_false @SMOKE2_6246
set_lvar_text_label 132@s = 'SMO2_CB'
set_lvar_int_to_constant 149@ = 10813

:SMOKE2_6246
if 
  $s2_meet_z == 2
goto_if_false @SMOKE2_6286
set_lvar_text_label 132@s = 'SMO2_CC'
set_lvar_int_to_constant 149@ = 10814

:SMOKE2_6286
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 148@)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 149@)

:SMOKE2_6300
if or
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SMOKE2_6330
wait 0
goto @SMOKE2_6300

:SMOKE2_6330
Streaming.LoadScene(2471.99, -1402.32, 27.82)
41@ = Char.Create(PedType.Mission2, 108, 2471.99, -1402.32, 27.82)
Char.SetHeading(41@, 90.0)
Char.SetHealth(41@, 200)
Char.SetMaxHealth(41@, 200)
Char.SetMoney(41@, 500)
Char.SetOnlyDamagedByPlayer(41@, True)
Char.GiveWeapon(41@, WeaponType.Pistol, 99999)
Char.SetAccuracy(41@, 5)
Char.SetStayInSamePlace(41@, True)
Char.ClearAllRelationships(41@, RelationshipType.Dislike)
Char.ClearAllRelationships(41@, RelationshipType.Hate)
if 
  not Char.IsDead(41@)
goto_if_false @SMOKE2_6476
Char.PerformSequence(41@, 114@)

:SMOKE2_6476
Char.SetCoordinates($scplayer, 2473.99, -1402.32, 27.82)
Char.SetHeading($scplayer, 90.0)
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE2_6552
Char.SetCoordinates(35@, 2474.99, -1402.32, 27.82)
Char.SetHeading(35@, 90.0)

:SMOKE2_6552
Camera.SetFixedPosition(2460.993, -1400.991, 24.5671, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2461.876, -1401.406, 24.7836, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)

:SMOKE2_6610
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE2_6634
wait 0
goto @SMOKE2_6610

:SMOKE2_6634
181@ = 1
skip_cutscene_start_internal @SMOKE2_7451
wait 2000
Path.FlushRoute
Path.ExtendRoute(47@, 69@, 91@)
Path.ExtendRoute(48@, 70@, 92@)
Task.FollowPointRoute($scplayer, 6, RouteMode.Once)
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE2_6778
121@ = Sequence.Open()
Task.GoStraightToCoord(-1, 47@, 69@, 91@, MoveState.Run, -1)
Task.PlayAnim(-1, "IDLE_TIRED", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(121@)
Char.PerformSequence(35@, 121@)
Sequence.Clear(121@)

:SMOKE2_6778
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(130@s, 10000, 1)
wait 4000
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
if 
  192@ <> -1
goto_if_false @SMOKE2_6876
if and
  not Char.IsDead(190@)
  not Car.IsDead(188@)
goto_if_false @SMOKE2_6876
Task.CarDriveToCoord(190@, 188@, 2448.31, -1429.92, 23.68, 10.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)

:SMOKE2_6876
Camera.SetFixedPosition(2459.716, -1406.529, 23.4481, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2459.658, -1405.536, 23.553, SwitchType.JumpCut)
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE2_7062
122@ = Char.GetScriptTaskStatus(35@, 1560)
if 
  is_int_lvar_equal_to_constant 122@ == 1
goto_if_false @SMOKE2_7062
119@ = Char.GetSequenceProgress(35@)

:SMOKE2_6980
if 
  0 >= 119@
goto_if_false @SMOKE2_7062
wait 0
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE2_7055
122@ = Char.GetScriptTaskStatus(35@, 1560)
if 
  is_int_lvar_equal_to_constant 122@ == 1
goto_if_false @SMOKE2_7055
119@ = Char.GetSequenceProgress(35@)

:SMOKE2_7055
goto @SMOKE2_6980

:SMOKE2_7062
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow(132@s, 10000, 1)

:SMOKE2_7076
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SMOKE2_7102
wait 0
goto @SMOKE2_7076

:SMOKE2_7102
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
wait 1000
World.ClearArea(49@, 71@, 93@, 35.0, False)
if 
  not Char.IsDead(41@)
goto_if_false @SMOKE2_7185
Char.SetCoordinates(41@, 49@, 71@, 23.74)
Char.SetHeading(41@, 45.0)
Char.PerformSequenceFromProgress(41@, 114@, 0, 3)

:SMOKE2_7185
Camera.SetFixedPosition(2406.65, -1358.0, 25.33, 0.0, 0.0, 0.0)
Camera.PointAtPoint(50@, 72@, 94@, SwitchType.JumpCut)
wait 1000
if 
  not Char.IsDead(41@)
goto_if_false @SMOKE2_7383
122@ = Char.GetScriptTaskStatus(41@, 1952)
if 
  is_int_lvar_equal_to_constant 122@ == 1
goto_if_false @SMOKE2_7383
119@, 120@ = Char.GetSequenceProgressRecursive(41@)

:SMOKE2_7291
if and
  119@ == 0
  3 >= 120@
goto_if_false @SMOKE2_7383
wait 0
if 
  not Char.IsDead(41@)
goto_if_false @SMOKE2_7376
122@ = Char.GetScriptTaskStatus(41@, 1952)
if 
  is_int_lvar_equal_to_constant 122@ == 1
goto_if_false @SMOKE2_7376
119@, 120@ = Char.GetSequenceProgressRecursive(41@)

:SMOKE2_7376
goto @SMOKE2_7291

:SMOKE2_7383
wait 2200
Camera.SetFixedPosition(2404.81, -1354.37, 25.71, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2401.4, -1356.79, 25.31, SwitchType.JumpCut)
wait 4500
181@ = 0

:SMOKE2_7451
skip_cutscene_end 
if 
  181@ == 1
goto_if_false @SMOKE2_7657
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE2_7589
if 
  Char.IsInAnyCar(35@)
goto_if_false @SMOKE2_7526
Char.WarpFromCarToCoord(35@, 47@, 69@, 23.06)
goto @SMOKE2_7542

:SMOKE2_7526
Char.SetCoordinates(35@, 47@, 69@, 23.06)

:SMOKE2_7542
Char.SetHeading(35@, 90.0)
Task.PlayAnim(35@, "IDLE_TIRED", "PED", 4.0, True, False, False, False, -1)

:SMOKE2_7589
if 
  not Char.IsDead(41@)
goto_if_false @SMOKE2_7647
Char.SetCoordinates(41@, 2390.73, -1355.69, 23.74)
Char.SetHeading(41@, 81.47)
Char.PerformSequenceFromProgress(41@, 114@, 0, 7)

:SMOKE2_7647
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints

:SMOKE2_7657
if 
  not Char.IsDead(41@)
goto_if_false @SMOKE2_7759
123@ = DecisionMakerChar.Copy(-1)
DecisionMakerChar.ClearEventResponse(123@, 79)
DecisionMakerChar.ClearEventResponse(123@, 9)
DecisionMakerChar.ClearEventResponse(123@, 15)
DecisionMakerChar.ClearEventResponse(123@, 31)
DecisionMakerChar.ClearEventResponse(123@, 43)
DecisionMakerChar.ClearEventResponse(123@, 36)
DecisionMakerChar.ClearEventResponse(123@, 37)
DecisionMakerChar.ClearEventResponse(123@, 11)
DecisionMakerChar.ClearEventResponse(123@, 20)
Char.SetDecisionMaker(41@, 123@)
185@ = Blip.AddForChar(41@)

:SMOKE2_7759
World.ClearArea(2170.68, -1282.01, 23.7, 100.0, False)
42@ = Car.Create(405, 2170.68, -1282.01, 23.7)
43@ = Char.CreateInsideCar(42@, PedType.Mission2, 109)
Car.SetHeading(42@, 357.03)
Car.SetOnlyDamagedByPlayer(42@, True)
Car.SetCanBurstTires(42@, False)
Car.LockDoors(42@, CarLock.LockoutPlayerOnly)
Char.SetOnlyDamagedByPlayer(43@, True)
Char.GiveWeapon(43@, WeaponType.Pistol, 99999)
World.ClearArea(2353.86, -1356.92, 23.41, 5.0, False)
44@ = Char.Create(PedType.Mission2, 109, 2353.86, -1356.92, 23.41)
45@ = Char.Create(PedType.Mission2, 110, 2354.11, -1355.54, 23.41)
Char.SetHeading(44@, 90.0)
Char.SetHeading(45@, 270.0)
113@ = 0

:SMOKE2_7967
if 
  2 > 113@
goto_if_false @SMOKE2_8082
Char.SetOnlyDamagedByPlayer(44@(113@,2i), True)
Char.GiveWeapon(44@(113@,2i), WeaponType.Pistol, 99999)
Char.SetAccuracy(44@(113@,2i), 50)
Char.ClearAllRelationships(44@(113@,2i), RelationshipType.Dislike)
Char.ClearAllRelationships(44@(113@,2i), RelationshipType.Hate)
Char.SetKindaStayInSamePlace(44@(113@,2i), True)
Task.KillCharOnFoot(44@(113@,2i), $scplayer)
113@ += 1
goto @SMOKE2_7967

:SMOKE2_8082
Streaming.MarkModelAsNoLongerNeeded(110)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SMOKE2_8125
Char.WarpFromCarToCoord($scplayer, 48@, 70@, 23.05)
goto @SMOKE2_8141

:SMOKE2_8125
Char.SetCoordinates($scplayer, 48@, 70@, 23.05)

:SMOKE2_8141
Char.SetHeading($scplayer, 90.0)
Path.SwitchRoadsBackToOriginal(2441.38, -1405.59, 15.0, 2460.42, -1368.34, 40.0)
Path.SwitchPedRoadsBackToOriginal(2441.38, -1405.59, 15.0, 2460.42, -1368.34, 40.0)
if 
  192@ <> -1
goto_if_false @SMOKE2_8253
Car.MarkAsNoLongerNeeded(188@)
Char.MarkAsNoLongerNeeded(190@)
Car.MarkAsNoLongerNeeded(189@)
Char.MarkAsNoLongerNeeded(191@)

:SMOKE2_8253
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Char.ClearTasks($scplayer)
return 

:SMOKE2_8275
Player.SetControl($player1, False)
if 
  not Char.IsDead(41@)
goto_if_false @SMOKE2_8313
Char.SetProofs(41@, True, True, True, True, True)

:SMOKE2_8313
if 
  not Char.IsDead(43@)
goto_if_false @SMOKE2_8344
Char.SetProofs(43@, True, True, True, True, True)

:SMOKE2_8344
if 
  not Car.IsDead(42@)
goto_if_false @SMOKE2_8375
Car.SetProofs(42@, True, True, True, True, True)

:SMOKE2_8375
Camera.DoFade(1000, Fade.Out)

:SMOKE2_8382
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE2_8406
wait 0
goto @SMOKE2_8382

:SMOKE2_8406
World.ClearArea(126@, 127@, 128@, 100.0, False)
Path.SwitchRoadsOff(2108.5, -1080.59, 4.73, 2128.5, -1060.59, 44.73)
Path.SwitchPedRoadsOff(2108.5, -1080.59, 4.73, 2128.5, -1060.59, 44.73)
195@, 196@, 197@ = Char.GetCoordinates($scplayer)
198@ = Char.GetHeading($scplayer)
200@ = World.GetWaterHeightAtCoords(195@, 196@, False)
199@ = World.GetGroundZFor3DCoord(195@, 196@, 197@)
if 
  is_float_lvar_greater_than_float_lvar 200@ > 199@
goto_if_false @SMOKE2_8564
set_lvar_float_to_lvar_float 199@ = 200@

:SMOKE2_8564
Streaming.RequestCollision(126@, 127@)
Streaming.LoadScene(126@, 127@, 128@)
Path.SwitchRoadsOff(2082.91, -1107.01, 4.53, 2102.91, -1087.01, 44.53)
Path.SwitchPedRoadsOff(2082.91, -1107.01, 4.53, 2102.91, -1087.01, 44.53)
World.ClearArea(2092.91, -1097.01, 24.53, 20.0, False)
Char.SetCoordinates($scplayer, 2092.91, -1097.01, -100.0)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SMOKE2_8725
194@ = Char.StoreCarIsIn($scplayer)
Car.SetHeading(194@, 242.86)

:SMOKE2_8725
if 
  not Car.IsDead(42@)
goto_if_false @SMOKE2_8899
Car.SetCoordinates(42@, 126@, 127@, -100.0)
Car.SetHeading(42@, 50.74)
if 
  not Char.IsDead(41@)
goto_if_false @SMOKE2_8834
Char.ClearTasksImmediately(41@)
if 
  Char.IsInAnyCar(41@)
goto_if_false @SMOKE2_8824
Char.WarpFromCarToCoord(41@, 2115.98, -1059.43, 24.75)

:SMOKE2_8824
Char.WarpIntoCarAsPassenger(41@, 42@, 0)

:SMOKE2_8834
if 
  not Char.IsDead(43@)
goto_if_false @SMOKE2_8899
Char.ClearTasksImmediately(43@)
if 
  Char.IsInAnyCar(43@)
goto_if_false @SMOKE2_8891
Char.WarpFromCarToCoord(43@, 2117.04, -1061.53, 24.53)

:SMOKE2_8891
Char.WarpIntoCar(43@, 42@)

:SMOKE2_8899
wait 1000
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2110.56, -1067.61, 25.27, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2114.84, -1067.77, 25.63, SwitchType.JumpCut)
if 
  not Char.IsDead(41@)
goto_if_false @SMOKE2_9097
Path.FlushRoute
Path.ExtendRoute(2121.0, -1068.03, 23.82)
Path.ExtendRoute(2127.23, -1061.17, 28.33)
Path.ExtendRoute(2139.74, -1066.82, 34.06)
Path.ExtendRoute(2143.63, -1066.27, 34.06)
Path.ExtendRoute(2157.15, -1072.39, 39.48)
201@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Sequence.Close(201@)
Char.PerformSequence(41@, 201@)
Sequence.Clear(201@)

:SMOKE2_9097
Camera.DoFade(500, Fade.In)

:SMOKE2_9104
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE2_9192
wait 0
if 
  not Char.IsDead(41@)
goto_if_false @SMOKE2_9185
if 
  Char.IsPlayingAnim(41@, "RUN_GANG1")
goto_if_false @SMOKE2_9185
Char.SetAnimSpeed(41@, "RUN_GANG1", 1.0)

:SMOKE2_9185
goto @SMOKE2_9104

:SMOKE2_9192
202@ = 0
203@ = 0
181@ = 1
skip_cutscene_start_internal @SMOKE2_9517

:SMOKE2_9220
if 
  203@ <> 1
goto_if_false @SMOKE2_9510
wait 0
if 
  not Char.IsDead(41@)
goto_if_false @SMOKE2_9503
if 
  Char.IsPlayingAnim(41@, "RUN_GANG1")
goto_if_false @SMOKE2_9306
Char.SetAnimSpeed(41@, "RUN_GANG1", 1.0)

:SMOKE2_9306
if 
  202@ <> 1
goto_if_false @SMOKE2_9430
if 
  Char.LocateOnFoot3D(41@, 2143.63, -1066.27, 34.06, 4.0, 4.0, 4.0, False)
goto_if_false @SMOKE2_9430
Camera.SetFixedPosition(2131.97, -1067.61, 33.57, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2137.38, -1068.03, 34.43, SwitchType.JumpCut)
202@ = 1

:SMOKE2_9430
if 
  203@ <> 1
goto_if_false @SMOKE2_9503
if 
  Char.LocateOnFoot3D(41@, 2157.15, -1072.39, 39.48, 6.0, 6.0, 4.0, False)
goto_if_false @SMOKE2_9503
203@ = 1

:SMOKE2_9503
goto @SMOKE2_9220

:SMOKE2_9510
181@ = 0

:SMOKE2_9517
skip_cutscene_end 
Camera.DoFade(1000, Fade.Out)

:SMOKE2_9526
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE2_9614
wait 0
if 
  not Char.IsDead(41@)
goto_if_false @SMOKE2_9607
if 
  Char.IsPlayingAnim(41@, "RUN_GANG1")
goto_if_false @SMOKE2_9607
Char.SetAnimSpeed(41@, "RUN_GANG1", 1.0)

:SMOKE2_9607
goto @SMOKE2_9526

:SMOKE2_9614
Streaming.RequestCollision(195@, 196@)
Streaming.LoadScene(195@, 196@, 199@)
Char.SetCoordinates($scplayer, 195@, 196@, 199@)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SMOKE2_9686
194@ = Char.StoreCarIsIn($scplayer)
Car.SetHeading(194@, 198@)
goto @SMOKE2_9694

:SMOKE2_9686
Char.SetHeading($scplayer, 198@)

:SMOKE2_9694
Char.Delete(41@)
Char.Delete(43@)
Car.Delete(42@)
Path.SwitchRoadsBackToOriginal(2108.5, -1080.59, 4.73, 2128.5, -1060.59, 44.73)
Path.SwitchPedRoadsBackToOriginal(2108.5, -1080.59, 4.73, 2128.5, -1060.59, 44.73)
Path.SwitchRoadsBackToOriginal(2082.91, -1107.01, 4.53, 2102.91, -1087.01, 44.53)
Path.SwitchPedRoadsBackToOriginal(2082.91, -1107.01, 4.53, 2102.91, -1087.01, 44.53)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Camera.DoFade(1000, Fade.In)

:SMOKE2_9859
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE2_9883
wait 0
goto @SMOKE2_9859

:SMOKE2_9883
return 

:SMOKE2_9885
switch_start 161@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @SMOKE2_10446 {caseNum1} 0 {caseLabel1} @SMOKE2_9948 {caseNum2} 1 {caseLabel2} @SMOKE2_10091 {caseNum3} 2 {caseLabel3} @SMOKE2_10234 {caseNum4} -1 {caseLabel4} @SMOKE2_10453 {caseNum5} -1 {caseLabel5} @SMOKE2_10453 {caseNum6} -1 {caseLabel6} @SMOKE2_10453 {caseNum7} -1 {caseLabel7} @SMOKE2_10453

:SMOKE2_9948
$s2_meet_z = Math.RandomIntInRange(0, 3)
if 
  $s2_meet_z == 0
goto_if_false @SMOKE2_9997
set_lvar_text_label 130@s = 'SMO2_CA'
set_lvar_int_to_constant 148@ = 10812

:SMOKE2_9997
if 
  $s2_meet_z == 1
goto_if_false @SMOKE2_10037
set_lvar_text_label 130@s = 'SMO2_CB'
set_lvar_int_to_constant 148@ = 10813

:SMOKE2_10037
if 
  $s2_meet_z == 2
goto_if_false @SMOKE2_10077
set_lvar_text_label 130@s = 'SMO2_CC'
set_lvar_int_to_constant 148@ = 10814

:SMOKE2_10077
159@ = 1
goto @SMOKE2_10453

:SMOKE2_10091
$s2_meet_z = Math.RandomIntInRange(0, 3)
if 
  $s2_meet_z == 0
goto_if_false @SMOKE2_10140
set_lvar_text_label 130@s = 'SMO2_DA'
set_lvar_int_to_constant 148@ = 10815

:SMOKE2_10140
if 
  $s2_meet_z == 1
goto_if_false @SMOKE2_10180
set_lvar_text_label 130@s = 'SMO2_DB'
set_lvar_int_to_constant 148@ = 10816

:SMOKE2_10180
if 
  $s2_meet_z == 2
goto_if_false @SMOKE2_10220
set_lvar_text_label 130@s = 'SMO2_DC'
set_lvar_int_to_constant 148@ = 10817

:SMOKE2_10220
159@ = 1
goto @SMOKE2_10453

:SMOKE2_10234
set_lvar_text_label 130@s = 'SMO2_BA'
set_lvar_int_to_constant 148@ = 10800
set_lvar_text_label 132@s = 'SMO2_BB'
set_lvar_int_to_constant 149@ = 10805
set_lvar_text_label 134@s = 'SMO2_BC'
set_lvar_int_to_constant 150@ = 10801
set_lvar_text_label 136@s = 'SMO2_BD'
set_lvar_int_to_constant 151@ = 10806
set_lvar_text_label 138@s = 'SMO2_BE'
set_lvar_int_to_constant 152@ = 10802
set_lvar_text_label 140@s = 'SMO2_BF'
set_lvar_int_to_constant 153@ = 10807
set_lvar_text_label 142@s = 'SMO2_BG'
set_lvar_int_to_constant 154@ = 10803
set_lvar_text_label 144@s = 'SMO2_BH'
set_lvar_int_to_constant 155@ = 10808
set_lvar_text_label 146@s = 'SMO2_BJ'
set_lvar_int_to_constant 156@ = 10809
159@ = 9
goto @SMOKE2_10453

:SMOKE2_10446
goto @SMOKE2_10453

:SMOKE2_10453
157@ = 0
158@ = 0
160@ = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
return 

:SMOKE2_10482
if or
  157@ == 0
  157@ == 1
goto_if_false @SMOKE2_10552
if 
  is_int_lvar_greater_than_int_lvar 159@ > 158@
goto_if_false @SMOKE2_10552
if 
  TIMERB > 200
goto_if_false @SMOKE2_10552
gosub @SMOKE2_10617

:SMOKE2_10552
if 
  157@ == 2
goto_if_false @SMOKE2_10615
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SMOKE2_10615
157@ = 0
158@ += 1
160@ = 0
Text.ClearPrints
TIMERB = 0

:SMOKE2_10615
return 

:SMOKE2_10617
if 
  157@ == 0
goto_if_false @SMOKE2_10653
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 148@(158@,9i))
157@ = 1

:SMOKE2_10653
if 
  157@ == 1
goto_if_false @SMOKE2_10711
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SMOKE2_10711
Text.PrintNow(130@(158@,9s), 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
157@ = 2

:SMOKE2_10711
return 

:SMOKE2_10713
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
switch_start 129@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @SMOKE2_10850 {caseNum1} 0 {caseLabel1} @SMOKE2_10780 {caseNum2} 1 {caseLabel2} @SMOKE2_10794 {caseNum3} 2 {caseLabel3} @SMOKE2_10808 {caseNum4} 3 {caseLabel4} @SMOKE2_10822 {caseNum5} 4 {caseLabel5} @SMOKE2_10836 {caseNum6} -1 {caseLabel6} @SMOKE2_10857 {caseNum7} -1 {caseLabel7} @SMOKE2_10857

:SMOKE2_10780
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25800)
goto @SMOKE2_10857

:SMOKE2_10794
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25801)
goto @SMOKE2_10857

:SMOKE2_10808
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25802)
goto @SMOKE2_10857

:SMOKE2_10822
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25803)
goto @SMOKE2_10857

:SMOKE2_10836
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25804)
goto @SMOKE2_10857

:SMOKE2_10850
goto @SMOKE2_10857

:SMOKE2_10857
Char.StopFacialTalk($scplayer)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:SMOKE2_10866
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SMOKE2_10961
wait 0
if or
  Char.IsDead(35@)
  Car.IsDead(34@)
goto_if_false @SMOKE2_10908
return 

:SMOKE2_10908
if 
  167@ <> 1
goto_if_false @SMOKE2_10954
if 
  Pickup.HasBeenCollected(40@)
goto_if_false @SMOKE2_10954
Blip.Remove(186@)
167@ = 1

:SMOKE2_10954
goto @SMOKE2_10866

:SMOKE2_10961
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
switch_start 129@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @SMOKE2_11143 {caseNum1} 0 {caseLabel1} @SMOKE2_11028 {caseNum2} 1 {caseLabel2} @SMOKE2_11051 {caseNum3} 2 {caseLabel3} @SMOKE2_11074 {caseNum4} 3 {caseLabel4} @SMOKE2_11097 {caseNum5} 4 {caseLabel5} @SMOKE2_11120 {caseNum6} -1 {caseLabel6} @SMOKE2_11150 {caseNum7} -1 {caseLabel7} @SMOKE2_11150

:SMOKE2_11028
Text.PrintNow('SMOX_AA', 3000, 1)
goto @SMOKE2_11150

:SMOKE2_11051
Text.PrintNow('SMOX_AB', 3000, 1)
goto @SMOKE2_11150

:SMOKE2_11074
Text.PrintNow('SMOX_AC', 3000, 1)
goto @SMOKE2_11150

:SMOKE2_11097
Text.PrintNow('SMOX_AD', 3000, 1)
goto @SMOKE2_11150

:SMOKE2_11120
Text.PrintNow('SMOX_AE', 3000, 1)
goto @SMOKE2_11150

:SMOKE2_11143
goto @SMOKE2_11150

:SMOKE2_11150
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SMOKE2_11245
wait 0
if or
  Char.IsDead(35@)
  Car.IsDead(34@)
goto_if_false @SMOKE2_11192
return 

:SMOKE2_11192
if 
  167@ <> 1
goto_if_false @SMOKE2_11238
if 
  Pickup.HasBeenCollected(40@)
goto_if_false @SMOKE2_11238
Blip.Remove(186@)
167@ = 1

:SMOKE2_11238
goto @SMOKE2_11150

:SMOKE2_11245
129@ += 1
if 
  129@ > 4
goto_if_false @SMOKE2_11277
129@ = 0

:SMOKE2_11277
return 

:SMOKE2_11279
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
$trigger_phonecall_failed = 1
return 

:SMOKE2_11304
$flag_smoke_mission_counter += 1
Stat.RegisterMissionPassed('SMOKE_2')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSR', 3, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(3)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
return 

:SMOKE2_11359
Streaming.MarkModelAsNoLongerNeeded(108)
Streaming.MarkModelAsNoLongerNeeded(109)
Streaming.MarkModelAsNoLongerNeeded(110)
Streaming.MarkModelAsNoLongerNeeded(466)
Streaming.MarkModelAsNoLongerNeeded(405)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.UnloadSpecialCharacter(1)
Char.RemoveElegantly(35@)
Pickup.Remove(40@)
Blip.Remove(186@)
Blip.Remove(183@)
Blip.Remove(184@)
Blip.Remove(185@)
Sequence.Clear(114@)
Sequence.Clear(115@)
Sequence.Clear(116@)
Sequence.Clear(117@)
Sequence.Clear(118@)
Sequence.Clear(121@)
Sequence.Clear(201@)
Text.ClearHelp
DecisionMaker.Remove(123@)
DecisionMaker.Remove(124@)
Path.SwitchPedRoadsBackToOriginal(2458.5, -1410.63, 24.06, 2504.27, -1395.83, 28.55)
Path.SwitchRoadsBackToOriginal(2488.0, -1431.93, 25.41, 2528.0, -1391.93, 29.41)
Path.SwitchRoadsBackToOriginal(2252.89, -1286.37, 22.25, 2258.89, -1280.37, 28.25)
Path.SwitchRoadsBackToOriginal(2164.51, -1287.88, 20.0, 2170.88, -1267.88, 30.0)
Path.SwitchRoadsBackToOriginal(2108.5, -1080.59, 4.73, 2128.5, -1060.59, 44.73)
Path.SwitchPedRoadsBackToOriginal(2108.5, -1080.59, 4.73, 2128.5, -1060.59, 44.73)
Path.SwitchRoadsBackToOriginal(2082.91, -1107.01, 4.53, 2102.91, -1087.01, 44.53)
Path.SwitchPedRoadsBackToOriginal(2082.91, -1107.01, 4.53, 2102.91, -1087.01, 44.53)
Path.SwitchRoadsBackToOriginal(2441.38, -1405.59, 15.0, 2460.42, -1368.34, 40.0)
Path.SwitchPedRoadsBackToOriginal(2441.38, -1405.59, 15.0, 2460.42, -1368.34, 40.0)
World.SetCarDensityMultiplier(1.0)
Path.FlushRoute
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 29---------------
// Originally: Wrong Side of the Tracks

:SMOKE3
script_name 'SMOKE3'
gosub @SMOKE3_47
if 
  has_deatharrest_been_executed 
goto_if_false @SMOKE3_38
gosub @SMOKE3_20031

:SMOKE3_38
gosub @SMOKE3_20104
terminate_this_script 

:SMOKE3_47
Stat.RegisterMissionGiven
$onmission = 1
wait 0
Text.LoadMissionText('SMOKE3')
Weather.ForceNow(WeatherType.SunnyLa)
World.ClearArea(2077.58, -1695.929, 150.0, 150.0, True)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:SMOKE3_114
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE3_138
wait 0
goto @SMOKE3_114

:SMOKE3_138
Streaming.RequestModel(#LAE_SMOKECUTSCENE)

:SMOKE3_143
if 
  not Streaming.HasModelLoaded(#LAE_SMOKECUTSCENE)
goto_if_false @SMOKE3_170
wait 0
goto @SMOKE3_143

:SMOKE3_170
131@ = Object.CreateNoOffset(#LAE_SMOKECUTSCENE, 2055.0, -1695.0, 15.0)
Cutscene.Load('SMOKE3A')

:SMOKE3_204
if 
  not Cutscene.HasLoaded
goto_if_false @SMOKE3_228
wait 0
goto @SMOKE3_204

:SMOKE3_228
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SMOKE3_237
if 
  not Cutscene.HasFinished
goto_if_false @SMOKE3_261
wait 0
goto @SMOKE3_237

:SMOKE3_261
Camera.DoFade(0, Fade.Out)

:SMOKE3_267
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE3_291
wait 0
goto @SMOKE3_267

:SMOKE3_291
Cutscene.Clear
Weather.Release
Streaming.MarkModelAsNoLongerNeeded(#LAE_SMOKECUTSCENE)
Object.Delete(131@)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1500, Fade.In)
Camera.DoFade(1000, Fade.Out)

:SMOKE3_338
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE3_362
wait 0
goto @SMOKE3_338

:SMOKE3_362
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Streaming.RequestModel(538)
Streaming.RequestModel(570)
Streaming.RequestModel(#IMMMCRAN)
Streaming.RequestModel(466)
Streaming.RequestModel(372)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 17060)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25803)
Streaming.LoadSpecialCharacter(1, 'SMOKE')
Streaming.LoadAllModelsNow

:SMOKE3_433
if or
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SMOKE3_463
wait 0
goto @SMOKE3_433

:SMOKE3_463
if 
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @SMOKE3_489
wait 0
goto @SMOKE3_463

:SMOKE3_489
if or
  not Streaming.HasModelLoaded(538)
  not Streaming.HasModelLoaded(570)
  not Streaming.HasModelLoaded(#IMMMCRAN)
  not Streaming.HasModelLoaded(372)
  not Streaming.HasModelLoaded(466)
goto_if_false @SMOKE3_536
wait 0
goto @SMOKE3_489

:SMOKE3_536
74@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
76@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.ClearEventResponse(76@, 9)
75@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.ClearEventResponse(75@, 9)
DecisionMakerChar.ClearEventResponse(75@, 12)
DecisionMakerChar.ClearEventResponse(75@, 56)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
World.ClearArea(1682.618, -1957.88, 150.0, 150.0, False)
Game.SwitchRandomTrains(False)
World.DeleteAllTrains
40@ = Train.Create(11, 1725.55, -1953.278, 12.5, False)
Train.SetSpeed(40@, 0.0)
Train.SetCruiseSpeed(40@, 0.0)
43@ = Train.GetCarriage(40@, 1)
44@ = Train.GetCarriage(40@, 2)
Car.SetProofs(40@, True, True, True, True, True)
Train.SetForcedToSlowDown(40@, False)
Car.LockDoors(40@, CarLock.Locked)
Car.LockDoors(43@, CarLock.Locked)
Car.LockDoors(44@, CarLock.Locked)
Car.SetProofs(43@, True, True, True, True, True)
Car.SetProofs(44@, True, True, True, True, True)
World.ClearArea(2077.58, -1695.929, 150.0, 150.0, True)
Car.CustomPlateForNextCar(466, "_A2TMFK_")
78@ = Car.Create(466, 2058.86, -1694.612, 12.297)
Car.ChangeColor(78@, 98, 14)
Car.SetHeading(78@, 271.822)
Car.SetHealth(78@, 1000)
$big_smoke = Char.CreateAsPassenger(78@, PedType.Special, 290, 0)
Char.SetGetOutUpsideDownCar($big_smoke, False)
Char.SetHealth($big_smoke, 500)
Char.SetOnlyDamagedByPlayer($big_smoke, True)
Char.SetSuffersCriticalHits($big_smoke, False)
Char.SetNeverTargeted($big_smoke, True)
Char.SetDecisionMaker($big_smoke, 74@)
Char.SetCantBeDraggedOut($big_smoke, True)
Char.SetStayInCarWhenJacked($big_smoke, True)
Game.SetMaxFireGenerations(1)
Audio.SetRadioChannel(RadioChannel.RadioLosSantos)
Char.WarpIntoCar($scplayer, 78@)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetGroupRecruitment($player1, False)
Game.SetScriptLimitToGangSize(0)
World.SetRailtrackResistanceMult(0.3)
Camera.DoFade(500, Fade.In)
Char.ShutUpForScriptedSpeech($big_smoke, True)
Char.ShutUpForScriptedSpeech($scplayer, True)
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
96@ = 0
95@ = 0
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
97@ = 0
107@ = 0
105@ = 0
106@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
if 
  80@ == 0
goto_if_false @SMOKE3_1285
118@ = Blip.AddForCoord(1783.211, -1933.133, 12.597)
103@ = 1
80@ = 1

:SMOKE3_1285
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SMOKE3_1311
goto @SMOKE3_20049

:SMOKE3_1311
if 
  80@ == 1
goto_if_false @SMOKE3_1619
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_1619
if 
  not Car.IsDead(78@)
goto_if_false @SMOKE3_1619
if 
  Char.IsSittingInCar($scplayer, 78@)
goto_if_false @SMOKE3_1619
if 
  103@ == 1
goto_if_false @SMOKE3_1425
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SMO3_AA', 5000, 1)
103@ = 2

:SMOKE3_1425
if 
  103@ == 2
goto_if_false @SMOKE3_1478
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SMOKE3_1478
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 17000)
103@ = 3

:SMOKE3_1478
if 
  103@ == 3
goto_if_false @SMOKE3_1557
if 
  Char.IsSittingInCar($scplayer, 78@)
goto_if_false @SMOKE3_1557
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SMOKE3_1557
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SMO3_AB', 5000, 1)
103@ = 4

:SMOKE3_1557
if 
  103@ == 4
goto_if_false @SMOKE3_1619
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SMOKE3_1619
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SMK3_1', 5000, 1)
103@ = 5

:SMOKE3_1619
if 
  94@ == 0
goto_if_false @SMOKE3_1901
if or
  80@ == 1
  80@ == 10
goto_if_false @SMOKE3_1901
if 
  92@ == 0
goto_if_false @SMOKE3_1775
if 
  not Car.IsDead(78@)
goto_if_false @SMOKE3_1775
if 
  not Char.IsSittingInCar($scplayer, 78@)
goto_if_false @SMOKE3_1775
123@ = Blip.AddForCar(78@)
Blip.SetAsFriendly(123@, True)
Blip.Remove(118@)
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SMOX_AD', 2000, 1)
80@ = 10
92@ = 1

:SMOKE3_1775
if 
  92@ == 1
goto_if_false @SMOKE3_1901
if 
  not Car.IsDead(78@)
goto_if_false @SMOKE3_1901
if 
  Char.IsSittingInCar($scplayer, 78@)
goto_if_false @SMOKE3_1901
Blip.Remove(123@)
118@ = Blip.AddForCoord(1783.211, -1933.133, 12.597)
if 
  103@ == 5
goto_if_false @SMOKE3_1887
Text.PrintNow('SMK3_1', 12000, 1)

:SMOKE3_1887
80@ = 1
92@ = 0

:SMOKE3_1901
if or
  80@ == 1
  80@ == 10
goto_if_false @SMOKE3_1965
if 
  Char.IsDead($big_smoke)
goto_if_false @SMOKE3_1965
Text.PrintNow('SMK3_21', 5000, 1)
goto @SMOKE3_20031

:SMOKE3_1965
if 
  80@ == 1
goto_if_false @SMOKE3_10192
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_10192
if 
  not Car.IsDead(78@)
goto_if_false @SMOKE3_2810
if 
  81@ == 0
goto_if_false @SMOKE3_2810
if 
  Char.IsSittingInCar($big_smoke, 78@)
goto_if_false @SMOKE3_2810
if 
  Char.IsSittingInCar($scplayer, 78@)
goto_if_false @SMOKE3_2810
if 
  Car.Locate2D(78@, 1783.211, -1933.133, 4.2, 4.2, True)
goto_if_false @SMOKE3_2810
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:SMOKE3_2127
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE3_2151
wait 0
goto @SMOKE3_2127

:SMOKE3_2151
if 
  not Car.IsDead(78@)
goto_if_false @SMOKE3_2197
Car.SetCoordinates(78@, 1783.418, -1933.055, 12.3862)
Car.SetHeading(78@, 178.4615)

:SMOKE3_2197
Streaming.RequestModel(108)
Streaming.RequestModel(109)
Streaming.RequestModel(110)
Streaming.RequestModel(353)
Streaming.RequestModel(468)
Streaming.RequestModel(#TRNTRK8_LAS)
Streaming.RequestAnimation("TRAIN")
Streaming.RequestAnimation("GANGS")
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 17065)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 17007)
Streaming.LoadSpecialCharacter(1, 'SMOKE')
Streaming.RequestAnimation("GANGS")
Streaming.RequestAnimation("TRAIN")
Streaming.LoadAllModelsNow

:SMOKE3_2297
if or
  not Streaming.HasAnimationLoaded("GANGS")
  not Streaming.HasAnimationLoaded("TRAIN")
goto_if_false @SMOKE3_2337
wait 0
goto @SMOKE3_2297

:SMOKE3_2337
if or
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SMOKE3_2367
wait 0
goto @SMOKE3_2337

:SMOKE3_2367
if or
  not Streaming.HasModelLoaded(108)
  not Streaming.HasModelLoaded(109)
  not Streaming.HasModelLoaded(110)
  not Streaming.HasModelLoaded(468)
  not Streaming.HasModelLoaded(353)
goto_if_false @SMOKE3_2411
wait 0
goto @SMOKE3_2367

:SMOKE3_2411
Streaming.LoadScene(1684.53, -1948.48, 20.66)
World.ClearArea(1682.618, -1957.88, 150.0, 150.0, False)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
94@ = 1
Blip.Remove(118@)
World.ClearArea(1699.31, -1938.799, 100.0, 100.0, False)
52@ = Object.CreateNoOffset(#IMMMCRAN, 2194.438, -1912.756, 11.907)
Object.SetHeading(52@, 0.0)
34@ = Char.Create(PedType.Mission1, 108, 1682.546, -1959.222, 20.99)
Char.SetHeading(34@, 0.0)
Char.SetFollowNodeThresholdDistance(34@, 500.0)
Char.SetProofs(34@, True, True, True, True, True)
Char.SetDecisionMaker(34@, 75@)
35@ = Char.Create(PedType.Mission1, 110, 1682.546, -1958.222, 20.99)
Char.SetHeading(35@, 180.0)
Char.SetFollowNodeThresholdDistance(35@, 500.0)
Char.SetProofs(35@, True, True, True, True, True)
Char.SetDecisionMaker(35@, 75@)
36@ = Char.Create(PedType.Mission1, 109, 1681.038, -1958.03, 20.99)
Char.SetHeading(36@, 182.467)
Char.SetFollowNodeThresholdDistance(36@, 500.0)
Char.SetProofs(36@, True, True, True, True, True)
Char.SetDecisionMaker(36@, 75@)
37@ = Char.Create(PedType.Mission1, 110, 1681.129, -1959.63, 20.99)
Char.SetHeading(37@, 6.22)
Char.SetFollowNodeThresholdDistance(37@, 500.0)
Char.SetProofs(37@, True, True, True, True, True)
Char.SetDecisionMaker(37@, 75@)
81@ = 1

:SMOKE3_2810
if 
  81@ == 1
goto_if_false @SMOKE3_3039
if 
  not Char.IsDead($scplayer)
goto_if_false @SMOKE3_3039
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_3039
if 
  not Car.IsDead(78@)
goto_if_false @SMOKE3_3039
World.ClearArea(1682.618, -1957.88, 150.0, 150.0, False)
Camera.SetFixedPosition(1780.729, -1937.955, 13.443, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1781.311, -1937.148, 13.3475, SwitchType.JumpCut)
Streaming.LoadScene(1687.04, -1946.6, 21.79)
Streaming.LoadSceneInDirection(1735.16, -1945.29, 14.44, 88.46)
Camera.DoFade(750, Fade.In)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Char.StartFacialTalk($scplayer, 10000)
Text.PrintNow('SMO3_BA', 5000, 1)
TIMERA = 0
81@ = 2

:SMOKE3_3039
if 
  81@ == 2
goto_if_false @SMOKE3_3260
if 
  TIMERA > 1000
goto_if_false @SMOKE3_3260
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_3260
if 
  not Car.IsDead(78@)
goto_if_false @SMOKE3_3260
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SMOKE3_3260
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Char.StopFacialTalk($scplayer)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 17066)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Char.StartFacialTalk($big_smoke, 10000)
Text.PrintNow('SMO3_BB', 5000, 1)
101@ = 0
skip_cutscene_start_internal @SMOKE3_7981
Task.LeaveCar($big_smoke, 78@)
wait 100
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_3222
Task.LookAtChar($big_smoke, $scplayer, 3500)

:SMOKE3_3222
if 
  not Car.IsDead(78@)
goto_if_false @SMOKE3_3246
Task.LeaveCar($scplayer, 78@)

:SMOKE3_3246
TIMERA = 0
81@ = 3

:SMOKE3_3260
if 
  81@ == 3
goto_if_false @SMOKE3_3533
if 
  not Char.IsDead($scplayer)
goto_if_false @SMOKE3_3533
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_3533
if 
  not Car.IsDead(78@)
goto_if_false @SMOKE3_3533
if 
  not Char.IsInAnyCar($big_smoke)
goto_if_false @SMOKE3_3533
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SMOKE3_3533
Camera.SetFixedPosition(1778.61, -1938.675, 12.9064, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1779.275, -1937.944, 13.0581, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 1783.92, -1936.33, 12.6)
Char.SetHeading($scplayer, 117.0)
Task.GoStraightToCoord($big_smoke, 1775.3, -1939.23, 12.9, MoveState.Walk, -1)
64@ = Sequence.Open()
Task.LookAtChar(-1, $big_smoke, 10000)
Task.GoStraightToCoord(-1, 1776.63, -1940.18, 13.66, MoveState.Walk, -1)
Sequence.Close(64@)
Char.PerformSequence($scplayer, 64@)
Sequence.Clear(64@)
TIMERA = 0
81@ = 4

:SMOKE3_3533
if 
  81@ == 4
goto_if_false @SMOKE3_3941
if 
  not Char.IsDead($scplayer)
goto_if_false @SMOKE3_3941
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_3941
if 
  not Char.IsDead(34@)
goto_if_false @SMOKE3_3941
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_3941
if 
  not Char.IsDead(36@)
goto_if_false @SMOKE3_3941
if 
  not Char.IsDead(37@)
goto_if_false @SMOKE3_3941
if 
  not Car.IsDead(78@)
goto_if_false @SMOKE3_3941
if 
  not Char.IsSittingInAnyCar($big_smoke)
goto_if_false @SMOKE3_3941
if 
  not Char.IsSittingInAnyCar($scplayer)
goto_if_false @SMOKE3_3941
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SMOKE3_3941
if 
  TIMERA > 3000
goto_if_false @SMOKE3_3941
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Char.StartFacialTalk($scplayer, 10000)
Text.PrintNow('SMO3_BC', 5000, 1)
Camera.SetFixedPosition(1732.47, -1945.045, 12.9171, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1731.492, -1945.129, 13.1107, SwitchType.JumpCut)
Char.SetCoordinates($big_smoke, 1737.2, -1944.2, 12.6)
Char.SetHeading($big_smoke, 88.5)
Char.SetCoordinates($scplayer, 1737.2, -1945.7, 12.6)
Char.SetHeading($scplayer, 88.5)
Task.GoStraightToCoord($big_smoke, 1718.04, -1944.2, 13.6, MoveState.Walk, -1)
Task.GoStraightToCoord($scplayer, 1718.04, -1945.7, 13.6, MoveState.Walk, -1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 17067)
TIMERA = 0
81@ = 5

:SMOKE3_3941
if 
  81@ == 5
goto_if_false @SMOKE3_4027
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SMOKE3_4027
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Char.StopFacialTalk($scplayer)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 17008)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Char.StartFacialTalk($scplayer, 10000)
Text.PrintNow('SMO3_BD', 5000, 1)
81@ = 6

:SMOKE3_4027
if 
  81@ == 6
goto_if_false @SMOKE3_4136
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SMOKE3_4136
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Char.StopFacialTalk($scplayer)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 17068)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_4122
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Char.StartFacialTalk($big_smoke, 3000)
Text.PrintNow('SMO3_BE', 5000, 1)

:SMOKE3_4122
TIMERA = 0
81@ = 7

:SMOKE3_4136
if 
  81@ == 7
goto_if_false @SMOKE3_4595
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_4595
if 
  not Char.IsDead(34@)
goto_if_false @SMOKE3_4595
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_4595
if 
  not Char.IsDead(36@)
goto_if_false @SMOKE3_4595
if 
  not Char.IsDead(37@)
goto_if_false @SMOKE3_4595
if 
  TIMERA > 1500
goto_if_false @SMOKE3_4595
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SMOKE3_4595
Camera.SetFixedPosition(1726.028, -1944.924, 13.9132, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1725.059, -1945.168, 13.9694, SwitchType.JumpCut)
Task.PlayAnim(35@, "HNDSHKFA", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim(34@, "HNDSHKFA", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim(37@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
Task.PlayAnim(36@, "PRTIAL_GNGTLKG", "GANGS", 4.0, True, False, False, False, -1)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1724.08, -1946.27, 12.5)
Char.SetHeading($scplayer, 86.93)
Char.ClearTasksImmediately($big_smoke)
Char.SetCoordinates($big_smoke, 1723.93, -1944.52, 12.5)
Char.SetHeading($big_smoke, 93.27)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Char.StartFacialTalk($scplayer, 10000)
Text.PrintNow('SMO3_BF', 5000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 17009)
TIMERA = 0
81@ = 8

:SMOKE3_4595
if 
  81@ == 8
goto_if_false @SMOKE3_4814
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_4814
if 
  not Char.IsDead(34@)
goto_if_false @SMOKE3_4814
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_4814
if 
  not Char.IsDead(36@)
goto_if_false @SMOKE3_4814
if 
  not Char.IsDead(37@)
goto_if_false @SMOKE3_4814
38@ = Char.GetScriptTaskStatus(34@, 1541)
if or
  is_int_lvar_equal_to_constant 38@ == 7
  TIMERA > 1750
goto_if_false @SMOKE3_4814
Task.LookAtChar(34@, $big_smoke, 10000)
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_4768
Task.LookAtChar(35@, $scplayer, 10000)

:SMOKE3_4768
if 
  not Char.IsDead(36@)
goto_if_false @SMOKE3_4795
Task.LookAtChar(36@, $scplayer, 10000)

:SMOKE3_4795
Char.ClearTasksImmediately($scplayer)
TIMERA = 0
81@ = 9

:SMOKE3_4814
if 
  81@ == 9
goto_if_false @SMOKE3_5118
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_5118
if 
  not Char.IsDead(34@)
goto_if_false @SMOKE3_5118
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_5118
if 
  not Char.IsDead(36@)
goto_if_false @SMOKE3_5118
if 
  not Char.IsDead(37@)
goto_if_false @SMOKE3_5118
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SMOKE3_5118
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SMOKE3_5118
if 
  TIMERA > 0
goto_if_false @SMOKE3_5118
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 17010)
Camera.SetFixedPosition(1721.344, -1943.875, 13.8732, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1722.211, -1944.373, 13.8443, SwitchType.JumpCut)
Task.LookAtChar($scplayer, $big_smoke, 10000)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Char.StartFacialTalk($big_smoke, 3000)
Text.PrintNow('SMO3_BG', 5000, 1)
Task.PlayAnim($big_smoke, "PRTIAL_GNGTLKC", "GANGS", 4.0, False, False, False, False, -1)
TIMERB = 0
81@ = 10

:SMOKE3_5118
if 
  81@ == 10
goto_if_false @SMOKE3_5798
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_5798
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SMOKE3_5798
Text.ClearPrints
54@ = Car.Create(468, 1778.624, -1939.905, 12.5598)
Car.SetHeading(54@, 176.7993)
Car.SetHealth(54@, 10000)
Car.SetCanBurstTires(54@, False)
Car.SetProofs(54@, True, True, True, True, True)
Car.ChangeColor(54@, 6, 6)
114@ = 1
if 
  not Car.IsDead(78@)
goto_if_false @SMOKE3_5279
Car.SetHealth(78@, 10000)
Car.SetCanBurstTires(78@, False)

:SMOKE3_5279
if 
  not Char.IsDead(34@)
goto_if_false @SMOKE3_5357
Char.ClearTasksImmediately(34@)
Char.SetCoordinates(34@, 1682.254, -1953.64, 20.985)
Char.SetHeading(34@, 266.36)
Task.GoStraightToCoord(34@, 1799.49, -1953.73, 12.23, MoveState.Run, 50000)

:SMOKE3_5357
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_5435
Char.ClearTasksImmediately(35@)
Char.SetCoordinates(35@, 1679.256, -1953.635, 20.985)
Char.SetHeading(35@, 266.36)
Task.GoStraightToCoord(35@, 1799.49, -1953.73, 12.23, MoveState.Run, 50000)

:SMOKE3_5435
wait 250
if 
  not Char.IsDead(36@)
goto_if_false @SMOKE3_5518
Char.ClearTasksImmediately(36@)
Char.SetCoordinates(36@, 1676.74, -1953.59, 20.985)
Char.SetHeading(36@, 266.36)
Task.GoStraightToCoord(36@, 1799.49, -1953.73, 12.23, MoveState.Run, 50000)

:SMOKE3_5518
wait 250
if 
  not Char.IsDead(37@)
goto_if_false @SMOKE3_5601
Char.ClearTasksImmediately(37@)
Char.SetCoordinates(37@, 1675.3, -1953.67, 20.985)
Char.SetHeading(37@, 266.389)
Task.GoStraightToCoord(37@, 1799.49, -1953.73, 12.23, MoveState.Run, 50000)

:SMOKE3_5601
if 
  not Car.IsDead(40@)
goto_if_false @SMOKE3_5634
Train.SetCruiseSpeed(40@, 15.0)
86@ = 1

:SMOKE3_5634
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(1703.548, -1951.496, 16.9714, 1750.548, -1951.496, 16.9714, 10000, True)
Camera.SetVectorTrack(1702.549, -1951.514, 16.9159, 1702.549, -1951.514, 16.9159, 10000, True)
TIMERB = 0
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_5791
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($big_smoke)
Char.SetCoordinates($scplayer, 1715.0, -1946.79, 12.6)
Char.SetCoordinates($big_smoke, 1712.36, -1944.47, 12.6)

:SMOKE3_5791
81@ = 11

:SMOKE3_5798
if 
  81@ > 10
goto_if_false @SMOKE3_6739
if 
  14 > 81@
goto_if_false @SMOKE3_6739
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_6739
if 
  not Char.IsDead(34@)
goto_if_false @SMOKE3_6739
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_6739
if 
  not Char.IsDead(36@)
goto_if_false @SMOKE3_6739
if 
  not Char.IsDead(37@)
goto_if_false @SMOKE3_6739
if 
  not Car.IsDead(43@)
goto_if_false @SMOKE3_6739
if 
  not Car.IsDead(44@)
goto_if_false @SMOKE3_6739
46@, 47@, 48@ = Car.GetOffsetInWorldCoords(43@, 0.0, 9.84, 3.0)
49@, 50@, 51@ = Car.GetOffsetInWorldCoords(44@, 0.0, 9.84, 3.0)
if 
  81@ <= 11
goto_if_false @SMOKE3_6051
$player_x, $player_y, $player_z = Char.GetCoordinates(35@)
Camera.PointAtPoint($player_x, $player_y, 18.0, SwitchType.JumpCut)

:SMOKE3_6051
if 
  82@ == 0
goto_if_false @SMOKE3_6165
if 
  Char.LocateAnyMeans3D(34@, 49@, 50@, 51@, 2.0, 2.0, 2.0, False)
goto_if_false @SMOKE3_6165
Task.PlayAnim($scplayer, "FUCKU", "PED", 4.0, False, False, False, False, -1)
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19879
82@ = 1

:SMOKE3_6165
if 
  82@ == 1
goto_if_false @SMOKE3_6247
if 
  Char.LocateAnyMeans3D(34@, 46@, 47@, 48@, 2.0, 2.0, 2.0, False)
goto_if_false @SMOKE3_6247
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19879
82@ = 2

:SMOKE3_6247
if 
  83@ == 0
goto_if_false @SMOKE3_6329
if 
  Char.LocateAnyMeans3D(35@, 49@, 50@, 51@, 2.0, 2.0, 2.0, False)
goto_if_false @SMOKE3_6329
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19879
83@ = 1

:SMOKE3_6329
if 
  83@ == 1
goto_if_false @SMOKE3_6411
if 
  Char.LocateAnyMeans3D(35@, 46@, 47@, 48@, 2.0, 2.0, 2.0, False)
goto_if_false @SMOKE3_6411
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19879
83@ = 2

:SMOKE3_6411
if 
  84@ == 0
goto_if_false @SMOKE3_6493
if 
  Char.LocateAnyMeans3D(36@, 49@, 50@, 51@, 2.0, 2.0, 2.0, False)
goto_if_false @SMOKE3_6493
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19879
84@ = 1

:SMOKE3_6493
if 
  84@ == 1
goto_if_false @SMOKE3_6575
if 
  Char.LocateAnyMeans3D(36@, 46@, 47@, 48@, 2.0, 2.0, 2.0, False)
goto_if_false @SMOKE3_6575
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19879
84@ = 2

:SMOKE3_6575
if 
  85@ == 0
goto_if_false @SMOKE3_6657
if 
  Char.LocateAnyMeans3D(37@, 49@, 50@, 51@, 2.0, 2.0, 2.0, False)
goto_if_false @SMOKE3_6657
set_lvar_int_to_lvar_int 61@ = 37@
gosub @SMOKE3_19879
85@ = 1

:SMOKE3_6657
if 
  85@ == 1
goto_if_false @SMOKE3_6739
if 
  Char.LocateAnyMeans3D(37@, 46@, 47@, 48@, 2.0, 2.0, 2.0, False)
goto_if_false @SMOKE3_6739
set_lvar_int_to_lvar_int 61@ = 37@
gosub @SMOKE3_19879
85@ = 2

:SMOKE3_6739
if 
  81@ == 11
goto_if_false @SMOKE3_6873
if 
  TIMERB > 4200
goto_if_false @SMOKE3_6873
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_6873
Task.GoStraightToCoord($big_smoke, 1765.99, -1944.25, 13.75, MoveState.Run, 100000)
Task.GoStraightToCoord($scplayer, 1771.1, -1946.12, 13.75, MoveState.Run, 100000)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SMO3_BH', 5000, 1)
81@ = 12

:SMOKE3_6873
if 
  81@ == 12
goto_if_false @SMOKE3_6919
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SMOKE3_6919
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
81@ = 13

:SMOKE3_6919
if 
  81@ == 13
goto_if_false @SMOKE3_6994
if 
  TIMERB > 8000
goto_if_false @SMOKE3_6994
Camera.DoFade(500, Fade.Out)

:SMOKE3_6963
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE3_6987
wait 0
goto @SMOKE3_6963

:SMOKE3_6987
81@ = 14

:SMOKE3_6994
if 
  81@ == 14
goto_if_false @SMOKE3_7940
if 
  not Car.IsDead(40@)
goto_if_false @SMOKE3_7940
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_7940
Train.SetCoordinates(40@, 1880.06, -1953.67, 12.44)
Train.SetCruiseSpeed(40@, 10.0)
Char.Delete(34@)
Char.Delete(35@)
Char.Delete(36@)
Char.Delete(37@)
34@ = Char.Create(PedType.Mission1, 108, 1682.618, -1957.88, 20.9453)
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19936
Char.SetSuffersCriticalHits(34@, False)
35@ = Char.Create(PedType.Mission1, 110, 1682.99, -1947.17, 20.03)
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19936
Char.SetSuffersCriticalHits(35@, False)
36@ = Char.Create(PedType.Mission1, 110, 1681.618, -1957.88, 20.9453)
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19936
Char.SetSuffersCriticalHits(36@, False)
37@ = Char.Create(PedType.Mission4, 110, 1682.5, -1945.17, 20.033)
set_lvar_int_to_lvar_int 61@ = 37@
gosub @SMOKE3_19936
Char.SetSuffersCriticalHits(37@, False)
Char.SetProofs(34@, False, False, True, False, False)
Char.SetProofs(35@, False, False, True, False, False)
Char.SetProofs(36@, False, False, True, False, False)
Char.AttachToCar(34@, 40@, 0.0, 5.0, 3.0, 0, 360.0, WeaponType.Mp5)
Char.AttachToCar(35@, 40@, 0.0, 2.0, 3.0, 0, 360.0, WeaponType.Mp5)
Char.AttachToCar(36@, 40@, 0.0, -3.0, 3.0, 0, 360.0, WeaponType.Mp5)
Char.AttachToCar(37@, 40@, 0.0, -6.1, 3.0, 0, 360.0, WeaponType.Mp5)
Char.SetDecisionMaker(34@, 75@)
Char.SetDecisionMaker(35@, 75@)
Char.SetDecisionMaker(36@, 75@)
Char.SetDecisionMaker(37@, 76@)
Char.SetAccuracy(34@, 10)
Char.SetAccuracy(35@, 10)
Char.SetAccuracy(36@, 10)
Char.SetAccuracy(37@, 10)
Char.SetShootRate(34@, 20)
Char.SetShootRate(35@, 20)
Char.SetShootRate(36@, 30)
Char.SetShootRate(37@, 20)
if 
  98@ == 0
goto_if_false @SMOKE3_7605
Char.SetMaxHealth(34@, 500)
Char.SetMaxHealth(35@, 500)
Char.SetMaxHealth(36@, 500)
Char.SetHealth(34@, 500)
Char.SetHealth(35@, 500)
Char.SetHealth(36@, 500)

:SMOKE3_7605
if 
  98@ == 1
goto_if_false @SMOKE3_7671
Char.SetMaxHealth(34@, 480)
Char.SetMaxHealth(35@, 500)
Char.SetMaxHealth(36@, 450)
Char.SetHealth(34@, 480)
Char.SetHealth(35@, 500)
Char.SetHealth(36@, 450)

:SMOKE3_7671
if 
  98@ == 2
goto_if_false @SMOKE3_7737
Char.SetMaxHealth(34@, 450)
Char.SetMaxHealth(35@, 450)
Char.SetMaxHealth(36@, 450)
Char.SetHealth(34@, 450)
Char.SetHealth(35@, 450)
Char.SetHealth(36@, 450)

:SMOKE3_7737
if 
  98@ == 3
goto_if_false @SMOKE3_7803
Char.SetMaxHealth(34@, 350)
Char.SetMaxHealth(35@, 350)
Char.SetMaxHealth(36@, 350)
Char.SetHealth(34@, 350)
Char.SetHealth(35@, 350)
Char.SetHealth(36@, 350)

:SMOKE3_7803
if 
  98@ > 3
goto_if_false @SMOKE3_7869
Char.SetMaxHealth(34@, 300)
Char.SetMaxHealth(35@, 300)
Char.SetMaxHealth(36@, 300)
Char.SetHealth(34@, 300)
Char.SetHealth(35@, 300)
Char.SetHealth(36@, 300)

:SMOKE3_7869
Char.SetProofs(37@, True, True, True, True, True)
119@ = Blip.AddForChar(34@)
120@ = Blip.AddForChar(35@)
121@ = Blip.AddForChar(36@)
122@ = Blip.AddForChar(37@)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($big_smoke)
TIMERA = 0
81@ = 15

:SMOKE3_7940
if 
  81@ == 15
goto_if_false @SMOKE3_10192
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_10192
101@ = 1

:SMOKE3_7981
skip_cutscene_end 
if 
  101@ == 0
goto_if_false @SMOKE3_9391
Camera.DoFade(0, Fade.Out)

:SMOKE3_8007
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE3_8031
wait 0
goto @SMOKE3_8007

:SMOKE3_8031
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Char.Delete(34@)
Char.Delete(35@)
Char.Delete(36@)
Char.Delete(37@)
Blip.Remove(119@)
Blip.Remove(120@)
Blip.Remove(121@)
Blip.Remove(122@)
World.DeleteMissionTrains
Object.Delete(52@)
52@ = Object.CreateNoOffset(#IMMMCRAN, 2194.438, -1912.756, 11.907)
Object.SetHeading(52@, 0.0)
40@ = Train.Create(11, 1880.06, -1953.67, 12.44, False)
Train.SetForcedToSlowDown(40@, False)
Train.SetSpeed(40@, 10.0)
Train.SetCruiseSpeed(40@, 10.0)
43@ = Train.GetCarriage(40@, 1)
44@ = Train.GetCarriage(40@, 2)
Car.SetProofs(40@, True, True, True, True, True)
Car.LockDoors(40@, CarLock.Locked)
Car.LockDoors(43@, CarLock.Locked)
Car.LockDoors(44@, CarLock.Locked)
Car.SetProofs(43@, True, True, True, True, True)
Car.SetProofs(44@, True, True, True, True, True)
34@ = Char.Create(PedType.Mission1, 108, 1682.618, -1957.88, 20.9453)
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19936
Char.SetSuffersCriticalHits(34@, False)
35@ = Char.Create(PedType.Mission1, 110, 1682.99, -1947.17, 20.03)
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19936
Char.SetSuffersCriticalHits(35@, False)
36@ = Char.Create(PedType.Mission1, 110, 1681.618, -1957.88, 20.9453)
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19936
Char.SetSuffersCriticalHits(36@, False)
37@ = Char.Create(PedType.Mission4, 110, 1682.5, -1945.17, 20.033)
set_lvar_int_to_lvar_int 61@ = 37@
gosub @SMOKE3_19936
Char.SetSuffersCriticalHits(37@, False)
Char.SetProofs(34@, False, False, True, False, False)
Char.SetProofs(35@, False, False, True, False, False)
Char.SetProofs(36@, False, False, True, False, False)
Char.AttachToCar(34@, 40@, 0.0, 5.0, 3.0, 0, 360.0, WeaponType.Mp5)
Char.AttachToCar(35@, 40@, 0.0, 2.0, 3.0, 0, 360.0, WeaponType.Mp5)
Char.AttachToCar(36@, 40@, 0.0, -3.0, 3.0, 0, 360.0, WeaponType.Mp5)
Char.AttachToCar(37@, 40@, 0.0, -6.1, 3.0, 0, 360.0, WeaponType.Mp5)
Char.SetDecisionMaker(34@, 75@)
Char.SetDecisionMaker(35@, 75@)
Char.SetDecisionMaker(36@, 75@)
Char.SetDecisionMaker(37@, 76@)
Char.SetAccuracy(34@, 10)
Char.SetAccuracy(35@, 10)
Char.SetAccuracy(36@, 10)
Char.SetAccuracy(37@, 10)
Char.SetShootRate(34@, 20)
Char.SetShootRate(35@, 20)
Char.SetShootRate(36@, 30)
Char.SetShootRate(37@, 20)
if 
  98@ == 0
goto_if_false @SMOKE3_8769
Char.SetMaxHealth(34@, 500)
Char.SetMaxHealth(35@, 500)
Char.SetMaxHealth(36@, 500)
Char.SetHealth(34@, 500)
Char.SetHealth(35@, 500)
Char.SetHealth(36@, 500)

:SMOKE3_8769
if 
  98@ == 1
goto_if_false @SMOKE3_8835
Char.SetMaxHealth(34@, 480)
Char.SetMaxHealth(35@, 500)
Char.SetMaxHealth(36@, 450)
Char.SetHealth(34@, 480)
Char.SetHealth(35@, 500)
Char.SetHealth(36@, 450)

:SMOKE3_8835
if 
  98@ == 2
goto_if_false @SMOKE3_8901
Char.SetMaxHealth(34@, 450)
Char.SetMaxHealth(35@, 450)
Char.SetMaxHealth(36@, 450)
Char.SetHealth(34@, 450)
Char.SetHealth(35@, 450)
Char.SetHealth(36@, 450)

:SMOKE3_8901
if 
  98@ == 3
goto_if_false @SMOKE3_8967
Char.SetMaxHealth(34@, 300)
Char.SetMaxHealth(35@, 350)
Char.SetMaxHealth(36@, 350)
Char.SetHealth(34@, 300)
Char.SetHealth(35@, 350)
Char.SetHealth(36@, 350)

:SMOKE3_8967
if 
  98@ > 3
goto_if_false @SMOKE3_9033
Char.SetMaxHealth(34@, 300)
Char.SetMaxHealth(35@, 300)
Char.SetMaxHealth(36@, 300)
Char.SetHealth(34@, 300)
Char.SetHealth(35@, 300)
Char.SetHealth(36@, 300)

:SMOKE3_9033
119@ = Blip.AddForChar(34@)
120@ = Blip.AddForChar(35@)
121@ = Blip.AddForChar(36@)
122@ = Blip.AddForChar(37@)
if 
  114@ == 0
goto_if_false @SMOKE3_9155
54@ = Car.Create(468, 1778.624, -1939.905, 12.5598)
Car.SetHeading(54@, 176.7993)
Car.SetHealth(54@, 10000)
Car.SetProofs(54@, True, True, True, True, True)
Car.SetCanBurstTires(54@, False)
Car.ChangeColor(54@, 6, 6)

:SMOKE3_9155
if 
  not Car.IsDead(78@)
goto_if_false @SMOKE3_9186
Car.SetHealth(78@, 10000)
Car.SetCanBurstTires(78@, False)

:SMOKE3_9186
Char.SetProofs(37@, True, True, True, True, True)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_9300
if 
  Char.IsInAnyCar($big_smoke)
goto_if_false @SMOKE3_9270
Char.WarpFromCarToCoord($big_smoke, 1772.918, -1941.495, 12.567)
Char.SetHeading($big_smoke, 269.216)
goto @SMOKE3_9300

:SMOKE3_9270
Char.SetCoordinates($big_smoke, 1772.918, -1941.495, 12.567)
Char.SetHeading($big_smoke, 269.216)

:SMOKE3_9300
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SMOKE3_9353
Char.WarpFromCarToCoord($scplayer, 1774.065, -1943.003, 12.558)
Char.SetHeading($scplayer, 263.195)
goto @SMOKE3_9383

:SMOKE3_9353
Char.SetCoordinates($scplayer, 1774.065, -1943.003, 12.558)
Char.SetHeading($scplayer, 263.195)

:SMOKE3_9383
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)

:SMOKE3_9391
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_9698
Player.SetGroupRecruitment($player1, False)
Game.SetScriptLimitToGangSize(1)
Char.SetCoordinates($scplayer, 1774.065, -1943.003, 12.558)
Char.SetHeading($scplayer, 263.195)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_9494
Char.SetCoordinates($big_smoke, 1772.918, -1941.495, 12.567)
Char.SetHeading($big_smoke, 269.216)

:SMOKE3_9494
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($big_smoke)
Camera.ResetNewScriptables
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $big_smoke)
Group.SetSeparationRange($Players_Group, 30.0)
77@ = DecisionMakerGroup.Load(0)
DecisionMakerGroup.ClearEventResponse(77@, 9)
DecisionMakerGroup.ClearEventResponse(77@, 41)
DecisionMakerGroup.ClearEventResponse(77@, 36)
Group.SetDecisionMaker($Players_Group, 77@)
Char.SetRelationship($big_smoke, RelationshipType.Hate, PedType.Mission1)
Char.SetDecisionMaker($big_smoke, 74@)
Task.TogglePedThreatScanner($big_smoke, False, True, False)
DecisionMakerGroup.AddEventResponse(77@, 36, 1510, 0.0, 100.0, 0.0, 0.0, True, False)
DecisionMakerChar.AddEventResponse(74@, 36, 1022, 0.0, 100.0, 0.0, 0.0, True, False)
Player.SetGroupToFollowAlways($player1, True)
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
World.SetCarDensityMultiplier(0.5)
World.SetPedDensityMultiplier(0.5)

:SMOKE3_9698
Text.ClearPrints
if 
  not Car.IsDead(54@)
goto_if_false @SMOKE3_9731
125@ = Blip.AddForCar(54@)
Blip.SetAsFriendly(125@, True)

:SMOKE3_9731
if 
  not Char.IsDead(37@)
goto_if_false @SMOKE3_9769
Char.SetAccuracy(37@, 20)
set_lvar_int_to_lvar_int 61@ = 37@
gosub @SMOKE3_19977

:SMOKE3_9769
Path.SwitchRoadsOff(2261.14, -1141.45, 18.0, 2308.19, -1156.38, 35.0)
Path.SwitchRoadsOff(2270.69, -1391.75, 20.28, 2315.81, -1375.58, 26.88)
Path.SwitchRoadsOff(2257.3, -1491.95, 20.63, 2299.7, -1477.32, 26.12)
Path.SwitchRoadsOff(2235.25, -1656.59, 12.68, 2176.75, -1629.89, 15.0)
Path.SwitchRoadsOff(2221.43, -1721.07, 10.09, 2174.01, -172.72, 15.73)
Path.SwitchRoadsOff(2234.09, -1723.3, 14.0, 2178.22, -1742.47, 10.0)
Path.SwitchRoadsOff(2261.14, -1141.45, 18.0, 2308.19, -1156.38, 35.0)
Path.SwitchRoadsOff(1956.91, -1936.01, 10.07, 1965.61, -1978.99, 14.45)
Path.SwitchRoadsOff(2181.3, -1892.0, 10.0, 222.36, -1897.71, 15.0)
Text.PrintNow('SMK3_2', 7000, 1)
Streaming.RemoveAnimation("GANGS")
Streaming.MarkModelAsNoLongerNeeded(109)
96@ = 1
80@ = 2
98@ += 1
102@ = 1
DecisionMakerChar.AddEventResponse(75@, 36, 1000, 0.0, 100.0, 0.0, 0.0, False, True)
Camera.DoFade(1000, Fade.In)
Car.MarkAsNoLongerNeeded(78@)
Camera.SetVehicleTweak(468, 1.0, 1.0, 0.12)
Streaming.MarkModelAsNoLongerNeeded(#TRNTRK8_LAS)
81@ = 14

:SMOKE3_10192
if 
  102@ == 1
goto_if_false @SMOKE3_10280
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_10280
if 
  Char.IsSittingInAnyCar($big_smoke)
goto_if_false @SMOKE3_10280
Blip.Remove(125@)
Char.GiveWeapon($big_smoke, WeaponType.Tec9, 99999)
Char.SetCurrentWeapon($big_smoke, WeaponType.Tec9)
Char.SetAccuracy($big_smoke, 70)
102@ = 2

:SMOKE3_10280
if 
  81@ == 14
goto_if_false @SMOKE3_10348
if 
  112@ == 0
goto_if_false @SMOKE3_10348
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @SMOKE3_10348
Blip.Remove(125@)
Camera.SetPlayerInCarMode(3)
112@ = 1

:SMOKE3_10348
if 
  80@ == 2
goto_if_false @SMOKE3_16881
if 
  2 > 93@
goto_if_false @SMOKE3_10607
if 
  93@ == 0
goto_if_false @SMOKE3_10529
if 
  Char.LocateAnyMeans2D($scplayer, 2272.57, -1494.89, 40.0, 40.0, False)
goto_if_false @SMOKE3_10529
56@ = Car.Create(466, 2295.777, -1481.268, 22.91)
60@ = Char.CreateInsideCar(56@, PedType.CivMale, 108)
Car.SetHeading(56@, 88.47)
Car.GotoCoordinatesAccurate(56@, 2280.45, -1480.961, 22.483)
Car.SetCruiseSpeed(56@, 6.5)
Car.SetDrivingStyle(56@, DrivingMode.StopForCars)
93@ = 1

:SMOKE3_10529
if 
  93@ == 1
goto_if_false @SMOKE3_10607
if 
  not Char.LocateAnyMeans2D($scplayer, 2280.45, -1480.961, 50.0, 50.0, False)
goto_if_false @SMOKE3_10607
Car.MarkAsNoLongerNeeded(56@)
Char.MarkAsNoLongerNeeded(60@)
Streaming.MarkModelAsNoLongerNeeded(466)
93@ = 2

:SMOKE3_10607
if 
  not Car.IsDead(40@)
goto_if_false @SMOKE3_13922
if 
  96@ == 1
goto_if_false @SMOKE3_10763
if 
  not Char.LocateAnyMeansCar2D($scplayer, 40@, 50.0, 50.0, False)
goto_if_false @SMOKE3_10763
if 
  97@ == 1
goto_if_false @SMOKE3_10700
Train.SetCruiseSpeed(40@, 15.0)

:SMOKE3_10700
if 
  97@ > 1
goto_if_false @SMOKE3_10728
Train.SetCruiseSpeed(40@, 18.0)

:SMOKE3_10728
if 
  97@ == 0
goto_if_false @SMOKE3_10756
Train.SetCruiseSpeed(40@, 10.0)

:SMOKE3_10756
96@ = 2

:SMOKE3_10763
if 
  96@ == 2
goto_if_false @SMOKE3_10854
if 
  Char.LocateAnyMeansCar2D($scplayer, 40@, 45.0, 45.0, False)
goto_if_false @SMOKE3_10854
if 
  97@ == 0
goto_if_false @SMOKE3_10837
97@ = 1

:SMOKE3_10837
Train.SetCruiseSpeed(40@, 28.0)
96@ = 1

:SMOKE3_10854
if 
  96@ == 1
goto_if_false @SMOKE3_10955
if 
  Char.LocateAnyMeansCar2D($scplayer, 40@, 20.0, 20.0, False)
goto_if_false @SMOKE3_10955
if 
  97@ > 1
goto_if_false @SMOKE3_10938
Train.SetCruiseSpeed(40@, 32.5)
goto @SMOKE3_10948

:SMOKE3_10938
Train.SetCruiseSpeed(40@, 30.0)

:SMOKE3_10948
96@ = 3

:SMOKE3_10955
if 
  96@ == 3
goto_if_false @SMOKE3_11011
if 
  not Char.LocateAnyMeansCar2D($scplayer, 40@, 20.0, 20.0, False)
goto_if_false @SMOKE3_11011
96@ = 2

:SMOKE3_11011
if 
  15 > 91@
goto_if_false @SMOKE3_11751
if 
  91@ == 0
goto_if_false @SMOKE3_11228
if 
  Car.Locate2D(40@, 2282.12, -1439.76, 20.0, 20.0, False)
goto_if_false @SMOKE3_11228
if 
  not Char.LocateAnyMeans2D($scplayer, 2289.69, -1034.14, 20.0, 20.0, False)
goto_if_false @SMOKE3_11221
41@ = Train.Create(11, 2289.69, -1034.14, 26.29, True)
Train.SetSpeed(41@, 30.0)
Train.SetCruiseSpeed(41@, 15.0)
53@ = Object.Create(#IMY_TRACK_BARRIER, 2151.289, -664.906, 52.1)
Object.SetHeading(53@, 50.36)
97@ = 2
91@ = 1
goto @SMOKE3_11228

:SMOKE3_11221
91@ = 15

:SMOKE3_11228
if 
  91@ == 1
goto_if_false @SMOKE3_11317
if 
  not Car.IsDead(41@)
goto_if_false @SMOKE3_11317
if 
  Car.Locate2D(41@, 2288.31, -1408.91, 20.0, 20.0, False)
goto_if_false @SMOKE3_11317
Train.SetCruiseSpeed(41@, 0.0)
91@ = 2

:SMOKE3_11317
if 
  91@ == 2
goto_if_false @SMOKE3_11410
if 
  not Car.IsDead(41@)
goto_if_false @SMOKE3_11410
if 
  not Char.LocateAnyMeansCar2D($scplayer, 41@, 40.0, 40.0, False)
goto_if_false @SMOKE3_11410
if 
  not Car.IsOnScreen(41@)
goto_if_false @SMOKE3_11410
Train.Delete(41@)
91@ = 3

:SMOKE3_11410
if 
  91@ == 3
goto_if_false @SMOKE3_11569
if 
  Car.Locate2D(40@, 2176.87, -689.51, 20.0, 20.0, False)
goto_if_false @SMOKE3_11569
if 
  not Char.LocateAnyMeans2D($scplayer, 2283.36, -336.9, 30.0, 30.0, False)
goto_if_false @SMOKE3_11562
41@ = Train.Create(11, 2283.36, -336.9, 37.27, True)
Train.SetSpeed(41@, 30.0)
Train.SetCruiseSpeed(41@, 15.0)
91@ = 4
goto @SMOKE3_11569

:SMOKE3_11562
91@ = 15

:SMOKE3_11569
if 
  91@ == 4
goto_if_false @SMOKE3_11658
if 
  not Car.IsDead(41@)
goto_if_false @SMOKE3_11658
if 
  Car.Locate2D(41@, 2052.08, -583.31, 20.0, 20.0, False)
goto_if_false @SMOKE3_11658
Train.SetCruiseSpeed(41@, 0.0)
91@ = 5

:SMOKE3_11658
if 
  91@ == 5
goto_if_false @SMOKE3_11751
if 
  not Car.IsDead(41@)
goto_if_false @SMOKE3_11751
if 
  not Char.LocateAnyMeansCar2D($scplayer, 41@, 40.0, 40.0, False)
goto_if_false @SMOKE3_11751
if 
  not Car.IsOnScreen(41@)
goto_if_false @SMOKE3_11751
Train.Delete(41@)
91@ = 6

:SMOKE3_11751
if 
  104@ == 0
goto_if_false @SMOKE3_12063
if 
  Car.Locate2D(40@, 2198.0, -1913.0, 12.0, 12.0, False)
goto_if_false @SMOKE3_12063
if 
  not Char.IsDead(34@)
goto_if_false @SMOKE3_11830
Task.Duck(34@, -1)

:SMOKE3_11830
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_11853
Task.Duck(35@, -1)

:SMOKE3_11853
if 
  not Char.IsDead(36@)
goto_if_false @SMOKE3_11876
Task.Duck(36@, -1)

:SMOKE3_11876
57@ = Car.Create(466, 2200.07, -1731.94, 12.28)
Car.SetHeading(57@, 277.116)
58@ = Char.Create(PedType.Mission3, 7, 2201.55, -1728.59, 12.43)
Char.SetHeading(58@, 285.1)
59@ = Char.Create(PedType.Mission3, 7, 2202.93, -1728.36, 12.43)
Char.SetHeading(59@, 393.56)
Task.PlayAnim(58@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
Task.PlayAnim(59@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
97@ = 1
104@ = 1

:SMOKE3_12063
if 
  104@ == 1
goto_if_false @SMOKE3_12219
if 
  not Car.Locate2D(40@, 2198.0, -1913.0, 12.0, 12.0, False)
goto_if_false @SMOKE3_12219
if 
  not Char.IsDead(34@)
goto_if_false @SMOKE3_12150
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19936

:SMOKE3_12150
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_12181
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19936

:SMOKE3_12181
if 
  not Char.IsDead(36@)
goto_if_false @SMOKE3_12212
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19936

:SMOKE3_12212
104@ = 2

:SMOKE3_12219
if 
  104@ == 2
goto_if_false @SMOKE3_12351
if 
  Car.Locate2D(40@, 2285.58, -1353.75, 20.0, 20.0, False)
goto_if_false @SMOKE3_12351
if 
  not Char.IsDead(34@)
goto_if_false @SMOKE3_12298
Task.Duck(34@, -1)

:SMOKE3_12298
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_12321
Task.Duck(35@, -1)

:SMOKE3_12321
if 
  not Char.IsDead(36@)
goto_if_false @SMOKE3_12344
Task.Duck(36@, -1)

:SMOKE3_12344
104@ = 3

:SMOKE3_12351
if 
  104@ == 3
goto_if_false @SMOKE3_12560
if 
  not Car.Locate2D(40@, 2285.58, -1353.75, 20.0, 20.0, False)
goto_if_false @SMOKE3_12560
if 
  not Char.IsDead(34@)
goto_if_false @SMOKE3_12438
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19936

:SMOKE3_12438
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_12469
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19936

:SMOKE3_12469
if 
  not Char.IsDead(36@)
goto_if_false @SMOKE3_12500
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19936

:SMOKE3_12500
if 
  not Char.IsDead(37@)
goto_if_false @SMOKE3_12521
Task.Die(37@)

:SMOKE3_12521
Object.Delete(52@)
Streaming.MarkModelAsNoLongerNeeded(#IMMMCRAN)
Car.MarkAsNoLongerNeeded(57@)
Char.MarkAsNoLongerNeeded(58@)
Char.MarkAsNoLongerNeeded(59@)
105@ = 1
104@ = 4

:SMOKE3_12560
if 
  104@ == 4
goto_if_false @SMOKE3_12669
if 
  Car.Locate2D(40@, 2121.0, -361.0, 18.0, 18.0, False)
goto_if_false @SMOKE3_12669
if 
  not Char.IsDead(34@)
goto_if_false @SMOKE3_12639
Task.Duck(34@, -1)

:SMOKE3_12639
if 
  not Char.IsDead(36@)
goto_if_false @SMOKE3_12662
Task.Duck(36@, -1)

:SMOKE3_12662
104@ = 5

:SMOKE3_12669
if 
  104@ == 5
goto_if_false @SMOKE3_12794
if 
  not Car.Locate2D(40@, 2121.0, -361.0, 18.0, 18.0, False)
goto_if_false @SMOKE3_12794
if 
  not Char.IsDead(34@)
goto_if_false @SMOKE3_12756
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19936

:SMOKE3_12756
if 
  not Char.IsDead(36@)
goto_if_false @SMOKE3_12787
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19936

:SMOKE3_12787
104@ = 6

:SMOKE3_12794
if 
  104@ == 6
goto_if_false @SMOKE3_12864
if 
  not Car.Locate2D(40@, 2121.0, -361.0, 18.0, 18.0, False)
goto_if_false @SMOKE3_12864
97@ = 3
104@ = 7

:SMOKE3_12864
if 
  105@ == 1
goto_if_false @SMOKE3_12951
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_12951
if 
  Car.Locate2D(40@, 2285.53, -1120.59, 20.0, 20.0, False)
goto_if_false @SMOKE3_12951
Char.SetDecisionMaker(35@, 76@)
105@ = 2

:SMOKE3_12951
if 
  105@ == 2
goto_if_false @SMOKE3_13076
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_13076
if 
  Char.LocateAnyMeansCar2D($scplayer, 40@, 30.0, 30.0, False)
goto_if_false @SMOKE3_13076
Task.PlayAnimNonInterruptable(35@, "TRAN_STMB", "TRAIN", 4.0, False, False, False, True, -1)
Char.SetProofs(35@, True, True, True, True, True)
105@ = 3

:SMOKE3_13076
if 
  105@ == 3
goto_if_false @SMOKE3_13228
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_13228
if 
  Char.IsPlayingAnim(35@, "TRAN_STMB")
goto_if_false @SMOKE3_13228
39@ = Char.GetAnimCurrentTime(35@, "TRAN_STMB")
if 
  39@ == 1.0
goto_if_false @SMOKE3_13228
Task.PlayAnimNonInterruptable(35@, "TRAN_HNG", "TRAIN", 4.0, True, False, False, False, -1)
TIMERA = 0
105@ = 4

:SMOKE3_13228
if 
  105@ == 4
goto_if_false @SMOKE3_13326
if 
  TIMERA > 10000
goto_if_false @SMOKE3_13326
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_13326
Task.PlayAnimNonInterruptable(35@, "TRAN_GTUP", "TRAIN", 4.0, False, False, False, False, -1)
105@ = 5

:SMOKE3_13326
if 
  105@ == 5
goto_if_false @SMOKE3_13481
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_13481
if 
  Char.IsPlayingAnim(35@, "TRAN_GTUP")
goto_if_false @SMOKE3_13481
39@ = Char.GetAnimCurrentTime(35@, "TRAN_GTUP")
if 
  39@ == 1.0
goto_if_false @SMOKE3_13481
Char.SetDecisionMaker(35@, 75@)
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19936
Streaming.RemoveAnimation("TRAIN")
Char.SetProofs(35@, False, False, False, False, False)
105@ = 6

:SMOKE3_13481
if 
  105@ > 0
goto_if_false @SMOKE3_13549
if 
  6 > 105@
goto_if_false @SMOKE3_13549
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_13549
45@ = Car.GetHeading(40@)
Char.SetHeading(35@, 45@)

:SMOKE3_13549
if 
  106@ == 0
goto_if_false @SMOKE3_13797
if 
  Object.DoesExist(52@)
goto_if_false @SMOKE3_13766
if 
  not Char.IsDead(37@)
goto_if_false @SMOKE3_13759
if 
  Char.LocateAnyMeans2D(37@, 2197.53, -1913.39, 3.0, 3.0, False)
goto_if_false @SMOKE3_13759
Task.TogglePedThreatScanner(37@, False, False, False)
Char.DetachFromCar(37@)
Char.SetCollision(37@, False)
Char.AttachToObject(37@, 52@, 2.85, -0.7, 5.9, 0, 360.0, WeaponType.Unarmed)
Char.SetHeading(37@, 0.0)
Task.PlayAnimNonInterruptable(37@, "TRAN_OUCH", "TRAIN", 4.0, False, False, False, True, -1)
90@ = 1
106@ = 1
Blip.Remove(122@)

:SMOKE3_13759
goto @SMOKE3_13797

:SMOKE3_13766
if 
  not Char.IsDead(37@)
goto_if_false @SMOKE3_13797
Char.SetProofs(37@, False, False, False, False, False)

:SMOKE3_13797
if 
  106@ == 1
goto_if_false @SMOKE3_13922
if 
  Object.DoesExist(52@)
goto_if_false @SMOKE3_13863
45@ = Object.GetHeading(52@)
if 
  not Char.IsDead(37@)
goto_if_false @SMOKE3_13863
Char.SetHeading(37@, 45@)

:SMOKE3_13863
if 
  not Char.IsDead(37@)
goto_if_false @SMOKE3_13922
if 
  not Char.LocateAnyMeansChar2D($scplayer, 37@, 50.0, 50.0, False)
goto_if_false @SMOKE3_13922
Char.RemoveElegantly(37@)
106@ = 2

:SMOKE3_13922
if 
  87@ == 0
goto_if_false @SMOKE3_13991
if 
  Char.IsDead(34@)
goto_if_false @SMOKE3_13991
87@ = 1
116@ += 1
if 
  Blip.DoesExist(119@)
goto_if_false @SMOKE3_13991
Blip.Remove(119@)

:SMOKE3_13991
if 
  88@ == 0
goto_if_false @SMOKE3_14060
if 
  Char.IsDead(35@)
goto_if_false @SMOKE3_14060
88@ = 1
116@ += 1
if 
  Blip.DoesExist(120@)
goto_if_false @SMOKE3_14060
Blip.Remove(120@)

:SMOKE3_14060
if 
  89@ == 0
goto_if_false @SMOKE3_14129
if 
  Char.IsDead(36@)
goto_if_false @SMOKE3_14129
89@ = 1
116@ += 1
if 
  Blip.DoesExist(121@)
goto_if_false @SMOKE3_14129
Blip.Remove(121@)

:SMOKE3_14129
if 
  90@ == 0
goto_if_false @SMOKE3_14198
if 
  Char.IsDead(37@)
goto_if_false @SMOKE3_14198
90@ = 1
116@ += 1
if 
  Blip.DoesExist(122@)
goto_if_false @SMOKE3_14198
Blip.Remove(122@)

:SMOKE3_14198
if 
  108@ == 0
goto_if_false @SMOKE3_14263
if 
  not Car.IsDead(57@)
goto_if_false @SMOKE3_14263
if 
  Car.HasBeenDamagedByCar(57@, 40@)
goto_if_false @SMOKE3_14263
Car.Explode(57@)
108@ = 1

:SMOKE3_14263
if 
  108@ == 1
goto_if_false @SMOKE3_14293
Car.MarkAsNoLongerNeeded(57@)
108@ = 2

:SMOKE3_14293
if 
  87@ == 1
goto_if_false @SMOKE3_14885
if 
  88@ == 1
goto_if_false @SMOKE3_14885
if 
  89@ == 1
goto_if_false @SMOKE3_14885
if 
  90@ == 1
goto_if_false @SMOKE3_14885
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_14485
if 
  Char.IsGroupMember($big_smoke, $Players_Group)
goto_if_false @SMOKE3_14462
124@ = Blip.AddForCoord(2061.68, -1694.71, 12.554)
107@ = 1
109@ = 1
110@ = 0
111@ = 0
115@ = 1
goto @SMOKE3_14485

:SMOKE3_14462
115@ = 2
Text.PrintNow('SMK3_18', 5000, 1)

:SMOKE3_14485
World.SetRailtrackResistanceMult(-1.0)
Char.MarkAsNoLongerNeeded(34@)
Char.MarkAsNoLongerNeeded(35@)
Char.MarkAsNoLongerNeeded(36@)
Char.MarkAsNoLongerNeeded(37@)
Streaming.MarkModelAsNoLongerNeeded(108)
Streaming.MarkModelAsNoLongerNeeded(109)
Streaming.MarkModelAsNoLongerNeeded(110)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(538)
Streaming.MarkModelAsNoLongerNeeded(570)
Train.MarkAsNoLongerNeeded(40@)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Path.SwitchRoadsOn(2261.14, -1141.45, 18.0, 2308.19, -1156.38, 35.0)
Path.SwitchRoadsOn(2270.69, -1391.75, 20.28, 2315.81, -1375.58, 26.88)
Path.SwitchRoadsOn(2268.75, -1390.8, 20.86, 2330.03, -1375.53, 23.1)
Path.SwitchRoadsOn(2257.3, -1491.95, 20.63, 2299.7, -1477.32, 26.12)
Path.SwitchRoadsOn(2235.25, -1656.59, 12.68, 2176.75, -1629.89, 15.0)
Path.SwitchRoadsOn(2221.43, -1721.07, 10.09, 2174.01, -172.72, 15.73)
Path.SwitchRoadsOn(2234.09, -1723.3, 14.0, 2178.22, -1742.47, 10.0)
Path.SwitchRoadsOn(2261.14, -1141.45, 18.0, 2308.19, -1156.38, 35.0)
Path.SwitchRoadsOn(1956.91, -1936.01, 10.07, 1965.61, -1978.99, 14.45)
Path.SwitchRoadsOn(2181.3, -1892.0, 10.0, 222.36, -1897.71, 15.0)
80@ = 3

:SMOKE3_14885
if 
  Char.IsDead($big_smoke)
goto_if_false @SMOKE3_14924
Text.PrintNow('SMK3_21', 5000, 1)
goto @SMOKE3_20031

:SMOKE3_14924
if 
  80@ == 2
goto_if_false @SMOKE3_15563
if 
  97@ == 0
goto_if_false @SMOKE3_14987
$x = 320.0
$y = 320.0
goto @SMOKE3_15007

:SMOKE3_14987
$x = 200.0
$y = 200.0

:SMOKE3_15007
if 
  not Car.IsDead(40@)
goto_if_false @SMOKE3_15563
if 
  not Car.IsOnScreen(40@)
goto_if_false @SMOKE3_15563
if 
  not Char.LocateAnyMeansCar2D($scplayer, 40@, $x, $y, False)
goto_if_false @SMOKE3_15563
if or
  not Char.IsDead(34@)
  not Char.IsDead(35@)
  not Char.IsDead(36@)
  not Char.IsDead(37@)
goto_if_false @SMOKE3_15563
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
79@ = Streaming.GetAreaVisible()
if 
  79@ <> 0
goto_if_false @SMOKE3_15267
Camera.DoFade(250, Fade.Out)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_15169
Char.SetProofs($big_smoke, True, True, True, True, True)

:SMOKE3_15169
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE3_15193
wait 0
goto @SMOKE3_15169

:SMOKE3_15193
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_15267
Streaming.SetAreaVisible(0)
Char.FreezePosition($scplayer, True)
$x, $y, $z = Char.GetCoordinates($big_smoke)
Char.SetProofs($big_smoke, True, True, True, True, True)
Streaming.LoadScene($x, $y, $z)
Camera.DoFade(250, Fade.In)

:SMOKE3_15267
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_15342
109@ = 1
Camera.SetInFrontOfChar($big_smoke)
Task.WanderStandard($big_smoke)
$x, $y, $z = Char.GetCoordinates($big_smoke)
World.ClearArea($x, $y, 100.0, 100.0, False)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)

:SMOKE3_15342
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 17036)

:SMOKE3_15349
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SMOKE3_15375
wait 0
goto @SMOKE3_15349

:SMOKE3_15375
Text.PrintNow('SMO3_MC', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)

:SMOKE3_15395
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SMOKE3_15421
wait 0
goto @SMOKE3_15395

:SMOKE3_15421
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  79@ <> 0
goto_if_false @SMOKE3_15520
Camera.DoFade(500, Fade.Out)

:SMOKE3_15452
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE3_15476
wait 0
goto @SMOKE3_15452

:SMOKE3_15476
Streaming.SetAreaVisible(79@)
Char.FreezePosition($scplayer, False)
$x, $y, $z = Char.GetCoordinates($scplayer)
Streaming.LoadScene($x, $y, $z)
Camera.DoFade(250, Fade.In)

:SMOKE3_15520
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Char.Delete($big_smoke)
Text.PrintNow('SMK3_13', 5000, 1)
goto @SMOKE3_20031

:SMOKE3_15563
if 
  80@ == 2
goto_if_false @SMOKE3_16022
if 
  not Car.IsDead(40@)
goto_if_false @SMOKE3_16022
if 
  Car.Locate2D(40@, 2790.52, 223.63, 15.0, 15.0, False)
goto_if_false @SMOKE3_16022
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Train.SetSpeed(40@, 20.0)
Train.SetCruiseSpeed(40@, 20.0)
Camera.SetFixedPosition(2796.839, 222.9677, 10.7646, 0.0, 0.0, 0.0)
Camera.PointAtCar(40@, CameraMode.Fixed, SwitchType.JumpCut)
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @SMOKE3_15778
$car = Char.StoreCarIsInNoSave($scplayer)
Car.SetCoordinates($car, 2814.828, 154.135, 17.2)
Car.SetHeading($car, 9.0)
Car.SetCruiseSpeed($car, 0.0)
goto @SMOKE3_15808

:SMOKE3_15778
Char.SetCoordinates($scplayer, 2814.828, 154.135, 17.2)
Char.SetHeading($scplayer, 9.0)

:SMOKE3_15808
wait 3000
Camera.RestoreJumpcut
wait 0
109@ = 1
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_15866
Camera.SetInFrontOfChar($big_smoke)
Task.WanderStandard($big_smoke)
$x, $y, $z = Char.GetCoordinates($big_smoke)

:SMOKE3_15866
World.ClearArea($x, $y, 100.0, 100.0, False)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 17036)

:SMOKE3_15901
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SMOKE3_15927
wait 0
goto @SMOKE3_15901

:SMOKE3_15927
Text.PrintNow('SMO3_MC', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)

:SMOKE3_15947
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SMOKE3_15973
wait 0
goto @SMOKE3_15947

:SMOKE3_15973
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Char.Delete($big_smoke)
Text.PrintNow('SMK3_20', 10000, 1)
goto @SMOKE3_20031

:SMOKE3_16022
if 
  109@ == 0
goto_if_false @SMOKE3_16881
if 
  Char.IsGroupMember($big_smoke, $Players_Group)
goto_if_false @SMOKE3_16881
if 
  Char.IsSittingInAnyCar($big_smoke)
goto_if_false @SMOKE3_16881
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @SMOKE3_16881
gosub @SMOKE3_19729
if 
  110@ == 0
goto_if_false @SMOKE3_16170
if 
  111@ == 0
goto_if_false @SMOKE3_16170
set_lvar_int_to_constant 128@ = 17011
set_lvar_text_label 129@s = 'SMO3_CA'
gosub @SMOKE3_19687
TIMERB = 0

:SMOKE3_16170
if 
  110@ == 1
goto_if_false @SMOKE3_16261
if 
  111@ == 0
goto_if_false @SMOKE3_16261
if 
  TIMERB > 4000
goto_if_false @SMOKE3_16261
set_lvar_int_to_constant 128@ = 17018
set_lvar_text_label 129@s = 'SMO3_EB'
gosub @SMOKE3_19687
TIMERB = 0

:SMOKE3_16261
if 
  110@ == 2
goto_if_false @SMOKE3_16380
if 
  111@ == 0
goto_if_false @SMOKE3_16380
if 
  not Car.IsDead(40@)
goto_if_false @SMOKE3_16380
if 
  Char.LocateAnyMeansCar2D($big_smoke, 40@, 50.0, 50.0, False)
goto_if_false @SMOKE3_16380
set_lvar_int_to_constant 128@ = 17017
set_lvar_text_label 129@s = 'SMO3_EA'
117@ = 1
gosub @SMOKE3_19687

:SMOKE3_16380
if 
  110@ == 3
goto_if_false @SMOKE3_16492
if 
  111@ == 0
goto_if_false @SMOKE3_16492
if 
  not Car.IsDead(41@)
goto_if_false @SMOKE3_16492
if 
  Char.LocateAnyMeansCar2D($big_smoke, 41@, 165.0, 165.0, False)
goto_if_false @SMOKE3_16492
set_lvar_int_to_constant 128@ = 17019
set_lvar_text_label 129@s = 'SMO3_FA'
gosub @SMOKE3_19687

:SMOKE3_16492
if 
  110@ == 4
goto_if_false @SMOKE3_16595
if 
  111@ == 0
goto_if_false @SMOKE3_16595
if 
  Char.LocateAnyMeans2D($big_smoke, 2180.22, -689.43, 60.0, 60.0, False)
goto_if_false @SMOKE3_16595
set_lvar_int_to_constant 128@ = 17025
set_lvar_text_label 129@s = 'SMO3_HA'
gosub @SMOKE3_19687

:SMOKE3_16595
if 
  110@ == 5
goto_if_false @SMOKE3_16714
if 
  111@ == 0
goto_if_false @SMOKE3_16714
if 
  not Car.IsDead(41@)
goto_if_false @SMOKE3_16714
if 
  Char.LocateAnyMeansCar2D($big_smoke, 41@, 100.0, 100.0, False)
goto_if_false @SMOKE3_16714
set_lvar_int_to_constant 128@ = 17021
set_lvar_text_label 129@s = 'SMO3_FC'
gosub @SMOKE3_19687
TIMERB = 0

:SMOKE3_16714
if 
  110@ == 6
goto_if_false @SMOKE3_16881
if 
  111@ == 0
goto_if_false @SMOKE3_16881
if 
  TIMERB > 11000
goto_if_false @SMOKE3_16881
set_lvar_int_to_constant 128@ = 17088
set_lvar_text_label 129@s = 'SMO3_EC'
if 
  Object.DoesExist(53@)
goto_if_false @SMOKE3_16828
if 
  not Object.IsOnScreen(53@)
goto_if_false @SMOKE3_16828
Object.Delete(53@)

:SMOKE3_16828
Streaming.MarkModelAsNoLongerNeeded(#IMY_TRACK_BARRIER)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_16874
if 
  3 > 116@
goto_if_false @SMOKE3_16874
Char.SetAccuracy($big_smoke, 85)

:SMOKE3_16874
gosub @SMOKE3_19687

:SMOKE3_16881
if 
  80@ == 3
goto_if_false @SMOKE3_18339
if 
  115@ == 1
goto_if_false @SMOKE3_18339
if 
  113@ == 0
goto_if_false @SMOKE3_16963
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 17044)
Object.MarkAsNoLongerNeeded(53@)
Streaming.MarkModelAsNoLongerNeeded(#IMY_TRACK_BARRIER)
113@ = 1

:SMOKE3_16963
if 
  113@ == 1
goto_if_false @SMOKE3_17023
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SMOKE3_17023
Text.PrintNow('SMO3_PC', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
113@ = 2

:SMOKE3_17023
if 
  113@ == 2
goto_if_false @SMOKE3_17076
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SMOKE3_17076
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
113@ = 3
TIMERB = 0

:SMOKE3_17076
if 
  113@ == 3
goto_if_false @SMOKE3_17143
if 
  TIMERB > 500
goto_if_false @SMOKE3_17143
Text.PrintNow('SMK3_22', 6000, 1)
TIMERB = 0
113@ = 4

:SMOKE3_17143
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_17781
if 
  113@ == 4
goto_if_false @SMOKE3_17781
if 
  Char.IsGroupMember($big_smoke, $Players_Group)
goto_if_false @SMOKE3_17781
if 
  Char.IsSittingInAnyCar($big_smoke)
goto_if_false @SMOKE3_17781
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @SMOKE3_17781
gosub @SMOKE3_19729
if 
  110@ == 0
goto_if_false @SMOKE3_17326
if 
  111@ == 0
goto_if_false @SMOKE3_17326
if 
  TIMERB > 7000
goto_if_false @SMOKE3_17326
set_lvar_int_to_constant 128@ = 17082
set_lvar_text_label 129@s = 'SMO3_RA'
gosub @SMOKE3_19687
TIMERB = 0

:SMOKE3_17326
if 
  110@ == 1
goto_if_false @SMOKE3_17391
if 
  111@ == 0
goto_if_false @SMOKE3_17391
set_lvar_int_to_constant 128@ = 17054
set_lvar_text_label 129@s = 'SMO3_RB'
gosub @SMOKE3_19687

:SMOKE3_17391
if 
  110@ == 2
goto_if_false @SMOKE3_17456
if 
  111@ == 0
goto_if_false @SMOKE3_17456
set_lvar_int_to_constant 128@ = 17083
set_lvar_text_label 129@s = 'SMO3_RC'
gosub @SMOKE3_19687

:SMOKE3_17456
if 
  110@ == 3
goto_if_false @SMOKE3_17521
if 
  111@ == 0
goto_if_false @SMOKE3_17521
set_lvar_int_to_constant 128@ = 17055
set_lvar_text_label 129@s = 'SMO3_RD'
gosub @SMOKE3_19687

:SMOKE3_17521
if 
  110@ == 4
goto_if_false @SMOKE3_17586
if 
  111@ == 0
goto_if_false @SMOKE3_17586
set_lvar_int_to_constant 128@ = 17084
set_lvar_text_label 129@s = 'SMO3_RE'
gosub @SMOKE3_19687

:SMOKE3_17586
if 
  110@ == 5
goto_if_false @SMOKE3_17651
if 
  111@ == 0
goto_if_false @SMOKE3_17651
set_lvar_int_to_constant 128@ = 17056
set_lvar_text_label 129@s = 'SMO3_RF'
gosub @SMOKE3_19687

:SMOKE3_17651
if 
  110@ == 6
goto_if_false @SMOKE3_17716
if 
  111@ == 0
goto_if_false @SMOKE3_17716
set_lvar_int_to_constant 128@ = 17085
set_lvar_text_label 129@s = 'SMO3_RG'
gosub @SMOKE3_19687

:SMOKE3_17716
if 
  110@ == 7
goto_if_false @SMOKE3_17781
if 
  111@ == 0
goto_if_false @SMOKE3_17781
set_lvar_int_to_constant 128@ = 17057
set_lvar_text_label 129@s = 'SMO3_RH'
gosub @SMOKE3_19687

:SMOKE3_17781
if 
  107@ == 1
goto_if_false @SMOKE3_18300
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_18300
if 
  Char.LocateAnyMeans2D($scplayer, 2061.68, -1694.71, 4.0, 4.0, True)
goto_if_false @SMOKE3_18300
if 
  Char.LocateAnyMeans2D($big_smoke, 2061.68, -1694.71, 4.0, 4.0, False)
goto_if_false @SMOKE3_18300
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)
Hud.SwitchWidescreen(True)
113@ = 5
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)

:SMOKE3_17924
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE3_17948
wait 0
goto @SMOKE3_17924

:SMOKE3_17948
Char.ClearTasksImmediately($scplayer)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_17993
Char.RemoveFromGroup($big_smoke)
Char.ClearTasksImmediately($big_smoke)
Char.SetCurrentWeapon($big_smoke, WeaponType.Unarmed)

:SMOKE3_17993
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SMOKE3_18046
Char.WarpFromCarToCoord($scplayer, 2060.325, -1694.805, 12.5547)
Char.SetHeading($scplayer, 91.3046)
goto @SMOKE3_18076

:SMOKE3_18046
Char.SetCoordinates($scplayer, 2060.325, -1694.805, 12.5547)
Char.SetHeading($scplayer, 91.3046)

:SMOKE3_18076
if 
  Char.IsInAnyCar($big_smoke)
goto_if_false @SMOKE3_18129
Char.WarpFromCarToCoord($big_smoke, 2057.75, -1694.79, 12.554)
Char.SetHeading($big_smoke, 273.188)
goto @SMOKE3_18159

:SMOKE3_18129
Char.SetCoordinates($big_smoke, 2057.75, -1694.79, 12.554)
Char.SetHeading($big_smoke, 273.188)

:SMOKE3_18159
World.ClearArea(2057.75, -1694.79, 100.0, 100.0, True)
if 
  not Car.IsDead(54@)
goto_if_false @SMOKE3_18229
Car.SetCoordinates(54@, 2060.3, -1697.975, 9.0)
Car.SetHeading(54@, 88.04)

:SMOKE3_18229
Streaming.RequestAnimation("GANGS")
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 17058)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 17059)
Streaming.LoadAllModelsNow

:SMOKE3_18254
if or
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @SMOKE3_18293
wait 0
goto @SMOKE3_18254

:SMOKE3_18293
80@ = 4

:SMOKE3_18300
if 
  Char.IsDead($big_smoke)
goto_if_false @SMOKE3_18339
Text.PrintNow('SMK3_21', 5000, 1)
goto @SMOKE3_20031

:SMOKE3_18339
if 
  80@ == 4
goto_if_false @SMOKE3_19077
Camera.SetFixedPosition(2061.814, -1692.773, 13.1148, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2061.089, -1693.453, 13.2238, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_18502
Task.PlayAnim($big_smoke, "PRTIAL_GNGTLKC", "GANGS", 4.0, False, False, False, False, -1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Char.StartFacialTalk($big_smoke, 10000)
Text.PrintNow('SMO3_SA', 4000, 1)

:SMOKE3_18502
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SMOKE3_18528
wait 0
goto @SMOKE3_18502

:SMOKE3_18528
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 17086)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SMO3_SB', 4000, 1)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_18613
Task.PlayAnim($big_smoke, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)

:SMOKE3_18613
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SMOKE3_18639
wait 0
goto @SMOKE3_18613

:SMOKE3_18639
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_18665
Char.ClearTasks($big_smoke)
Char.StopFacialTalk($big_smoke)

:SMOKE3_18665
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 17087)
Camera.SetFixedPosition(2055.851, -1692.644, 14.0837, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2056.581, -1693.324, 14.0171, SwitchType.JumpCut)

:SMOKE3_18729
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SMOKE3_18755
wait 0
goto @SMOKE3_18729

:SMOKE3_18755
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SMO3_SC', 5000, 1)
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)

:SMOKE3_18811
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SMOKE3_18837
wait 0
goto @SMOKE3_18811

:SMOKE3_18837
Text.ClearPrints

:SMOKE3_18839
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SMOKE3_18865
wait 0
goto @SMOKE3_18839

:SMOKE3_18865
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SMO3_SD', 5000, 1)

:SMOKE3_18885
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SMOKE3_18911
wait 0
goto @SMOKE3_18885

:SMOKE3_18911
Camera.DoFade(1500, Fade.Out)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_18982
Task.GoStraightToCoord($big_smoke, 2058.027, -1697.166, 13.55, MoveState.Walk, -1)
Task.GoStraightToCoord($scplayer, 2072.723, -1694.359, 13.55, MoveState.Walk, -1)

:SMOKE3_18982
if 
  Camera.GetFadingStatus
goto_if_false @SMOKE3_19006
wait 0
goto @SMOKE3_18982

:SMOKE3_19006
Char.Delete($big_smoke)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 2072.723, -1694.359, 12.54)
Char.SetHeading($scplayer, 272.637)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Camera.DoFade(500, Fade.In)
Text.ClearPrints
goto @SMOKE3_20049

:SMOKE3_19077
if or
  80@ == 2
  80@ == 3
goto_if_false @SMOKE3_19680
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_19680
if 
  95@ == 0
goto_if_false @SMOKE3_19261
if 
  not Char.IsGroupMember($big_smoke, $Players_Group)
goto_if_false @SMOKE3_19261
Text.PrintNow('SMK3_18', 5000, 1)
118@ = Blip.AddForChar($big_smoke)
Blip.SetAsFriendly(118@, True)
if 
  80@ == 2
goto_if_false @SMOKE3_19224
Blip.Remove(119@)
Blip.Remove(120@)
Blip.Remove(121@)
Blip.Remove(122@)

:SMOKE3_19224
if 
  80@ == 3
goto_if_false @SMOKE3_19254
Blip.Remove(124@)
107@ = 0

:SMOKE3_19254
95@ = 1

:SMOKE3_19261
if 
  95@ == 1
goto_if_false @SMOKE3_19680
if 
  Char.LocateAnyMeansChar3D($scplayer, $big_smoke, 10.0, 10.0, 8.0, False)
goto_if_false @SMOKE3_19680
if 
  Char.IsOnScreen($big_smoke)
goto_if_false @SMOKE3_19680
if 
  not Char.IsGroupMember($big_smoke, $Players_Group)
goto_if_false @SMOKE3_19368
Group.SetMember($Players_Group, $big_smoke)
Group.SetSeparationRange($Players_Group, 30.0)

:SMOKE3_19368
Blip.Remove(118@)
if 
  80@ == 2
goto_if_false @SMOKE3_19503
if 
  not Char.IsDead(34@)
goto_if_false @SMOKE3_19415
119@ = Blip.AddForChar(34@)

:SMOKE3_19415
if 
  not Char.IsDead(35@)
goto_if_false @SMOKE3_19439
120@ = Blip.AddForChar(35@)

:SMOKE3_19439
if 
  not Char.IsDead(36@)
goto_if_false @SMOKE3_19463
121@ = Blip.AddForChar(36@)

:SMOKE3_19463
if 
  not Char.IsDead(37@)
goto_if_false @SMOKE3_19487
122@ = Blip.AddForChar(37@)

:SMOKE3_19487
Text.PrintNow('SMK3_3', 5000, 1)

:SMOKE3_19503
if 
  80@ == 3
goto_if_false @SMOKE3_19582
if 
  115@ == 1
goto_if_false @SMOKE3_19582
Text.PrintNow('SMK3_22', 5000, 1)
124@ = Blip.AddForCoord(2061.68, -1694.71, 12.554)
107@ = 1

:SMOKE3_19582
if 
  115@ == 2
goto_if_false @SMOKE3_19673
if 
  80@ == 3
goto_if_false @SMOKE3_19673
124@ = Blip.AddForCoord(2061.68, -1694.71, 12.554)
107@ = 1
109@ = 1
110@ = 0
111@ = 0
115@ = 1

:SMOKE3_19673
95@ = 0

:SMOKE3_19680
goto @SMOKE3_1285

:SMOKE3_19687
if 
  111@ == 0
goto_if_false @SMOKE3_19727
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 128@)
set_lvar_text_label 126@s = 129@s
111@ = 1

:SMOKE3_19727
return 

:SMOKE3_19729
if 
  111@ == 1
goto_if_false @SMOKE3_19783
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SMOKE3_19783
Text.PrintNow(126@s, 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
111@ = 2

:SMOKE3_19783
if 
  111@ == 2
goto_if_false @SMOKE3_19877
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SMOKE3_19877
110@ += 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
if 
  117@ == 1
goto_if_false @SMOKE3_19870
Text.PrintNow('SMK3_25', 6000, 1)
117@ = 2

:SMOKE3_19870
111@ = 0

:SMOKE3_19877
return 

:SMOKE3_19879
62@ = Sequence.Open()
Task.Jump(-1, True)
Task.GoStraightToCoord(-1, 1799.49, -1953.73, 12.23, MoveState.Run, 50000)
Sequence.Close(62@)
Char.PerformSequence(61@, 62@)
Sequence.Clear(62@)
return 

:SMOKE3_19936
63@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.TogglePedThreatScanner(-1, True, False, False)
Sequence.Close(63@)
Char.PerformSequence(61@, 63@)
Sequence.Clear(63@)
return 

:SMOKE3_19977
65@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
if 
  not Char.IsDead($big_smoke)
goto_if_false @SMOKE3_20011
Task.KillCharOnFoot(-1, $big_smoke)

:SMOKE3_20011
Sequence.Close(65@)
Char.PerformSequence(61@, 65@)
Sequence.Clear(65@)
return 

:SMOKE3_20031
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:SMOKE3_20049
$flag_smoke_mission_counter += 1
Stat.RegisterMissionPassed('SMOKE_3')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSR', 5, 5000, TextStyle.Middle)
Audio.PlayMissionPassedTune(1)
Stat.AwardPlayerMissionRespect(5)
Player.ClearWantedLevel($player1)
return 

:SMOKE3_20104
$onmission = 0
Camera.RestoreJumpcut
Camera.SetPlayerInCarMode(2)
Object.MarkAsNoLongerNeeded(53@)
Object.MarkAsNoLongerNeeded(52@)
Streaming.MarkModelAsNoLongerNeeded(#IMY_TRACK_BARRIER)
World.SetRailtrackResistanceMult(-1.0)
if 
  Player.IsPlaying($player1)
goto_if_false @SMOKE3_20166
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)

:SMOKE3_20166
if 
  not Car.IsDead(54@)
goto_if_false @SMOKE3_20189
Car.SetCanBurstTires(54@, True)

:SMOKE3_20189
Streaming.MarkMissionTrainsAsNoLongerNeeded
Game.SwitchRandomTrains(True)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Char.RemoveElegantly(34@)
Char.RemoveElegantly(35@)
Char.RemoveElegantly(36@)
Char.RemoveElegantly(37@)
Char.RemoveElegantly($big_smoke)
Path.SwitchRoadsOn(2261.14, -1141.45, 18.0, 2308.19, -1156.38, 35.0)
Path.SwitchRoadsOn(2270.69, -1391.75, 20.28, 2315.81, -1375.58, 26.88)
Path.SwitchRoadsOn(2268.75, -1390.8, 20.86, 2330.03, -1375.53, 23.1)
Path.SwitchRoadsOn(2257.3, -1491.95, 20.63, 2299.7, -1477.32, 26.12)
Path.SwitchRoadsOn(2235.25, -1656.59, 12.68, 2176.75, -1629.89, 15.0)
Path.SwitchRoadsOn(2221.43, -1721.07, 10.09, 2174.01, -172.72, 15.73)
Path.SwitchRoadsOn(2234.09, -1723.3, 14.0, 2178.22, -1742.47, 10.0)
Path.SwitchRoadsOn(2261.14, -1141.45, 18.0, 2308.19, -1156.38, 35.0)
Path.SwitchRoadsOn(1956.91, -1936.01, 10.07, 1965.61, -1978.99, 14.45)
Path.SwitchRoadsOn(2181.3, -1892.0, 10.0, 222.36, -1897.71, 15.0)
Streaming.MarkModelAsNoLongerNeeded(108)
Streaming.MarkModelAsNoLongerNeeded(109)
Streaming.MarkModelAsNoLongerNeeded(110)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.MarkModelAsNoLongerNeeded(538)
Streaming.MarkModelAsNoLongerNeeded(570)
Streaming.MarkModelAsNoLongerNeeded(#IMMMCRAN)
Streaming.MarkModelAsNoLongerNeeded(419)
Streaming.MarkModelAsNoLongerNeeded(466)
Streaming.MarkModelAsNoLongerNeeded(372)
Streaming.MarkModelAsNoLongerNeeded(#TRNTRK8_LAS)
Streaming.UnloadSpecialCharacter(1)
Streaming.RemoveAnimation("TRAIN")
Streaming.RemoveAnimation("GANGS")
Blip.Remove(118@)
Blip.Remove(119@)
Blip.Remove(120@)
Blip.Remove(121@)
Blip.Remove(122@)
Blip.Remove(123@)
Blip.Remove(124@)
Blip.Remove(125@)
if 
  not Car.IsDead(40@)
goto_if_false @SMOKE3_20701
Train.SetForcedToSlowDown(40@, True)

:SMOKE3_20701
Camera.ResetVehicleTweak
if 
  not Car.IsDead(54@)
goto_if_false @SMOKE3_20756
Car.SetHealth(54@, 1000)
Car.SetCanBurstTires(54@, True)
Car.SetProofs(54@, False, False, False, False, False)
Char.ShutUpForScriptedSpeech($scplayer, False)

:SMOKE3_20756
Weather.Release
if 
  not Car.IsDead(78@)
goto_if_false @SMOKE3_20789
Car.SetHealth(78@, 1000)
Car.SetCanBurstTires(78@, True)

:SMOKE3_20789
Car.MarkAsNoLongerNeeded(54@)
Car.MarkAsNoLongerNeeded(78@)
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

//-------------Mission 30---------------
// Originally: Just Business

:DRUGS1
script_name 'DRUGS1'
gosub @DRUGS1_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRUGS1_38
gosub @DRUGS1_51829

:DRUGS1_38
gosub @DRUGS1_51907
terminate_this_script 

:DRUGS1_47
Stat.RegisterMissionGiven
$onmission = 1
wait 0
Text.LoadMissionText('SMOKE4')
World.ClearArea(2060.0, -1694.0, 50.0, 50.0, True)
Weather.ForceNow(WeatherType.SunnyLa)
Streaming.RequestModel(#LAE_SMOKECUTSCENE)

:DRUGS1_104
if 
  not Streaming.HasModelLoaded(#LAE_SMOKECUTSCENE)
goto_if_false @DRUGS1_131
wait 0
goto @DRUGS1_104

:DRUGS1_131
290@ = Object.CreateNoOffset(#LAE_SMOKECUTSCENE, 2055.0, -1695.0, 15.0)
Cutscene.Load('SMOKE4A')

:DRUGS1_165
if 
  not Cutscene.HasLoaded
goto_if_false @DRUGS1_189
wait 0
goto @DRUGS1_165

:DRUGS1_189
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:DRUGS1_198
if 
  not Cutscene.HasFinished
goto_if_false @DRUGS1_222
wait 0
goto @DRUGS1_198

:DRUGS1_222
Camera.DoFade(0, Fade.Out)

:DRUGS1_228
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS1_252
wait 0
goto @DRUGS1_228

:DRUGS1_252
Cutscene.Clear
Streaming.MarkModelAsNoLongerNeeded(#LAE_SMOKECUTSCENE)
Object.Delete(290@)
Camera.SetFadingColor(0, 0, 0)
wait 500
Streaming.RequestModel(466)
Streaming.RequestModel(91)
Streaming.RequestModel(93)
Streaming.RequestModel(111)
Streaming.RequestModel(112)
Streaming.LoadSpecialCharacter(1, 'SMOKE')
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25802)
Streaming.LoadAllModelsNow

:DRUGS1_320
if or
  not Streaming.HasModelLoaded(466)
  not Streaming.HasModelLoaded(111)
  not Streaming.HasModelLoaded(111)
  not Streaming.HasModelLoaded(91)
  not Streaming.HasModelLoaded(93)
goto_if_false @DRUGS1_363
wait 0
goto @DRUGS1_320

:DRUGS1_363
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_393
wait 0
goto @DRUGS1_363

:DRUGS1_393
90@ = 0
$smokehealth_s4 = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
282@ = 0
283@ = 0
127@ = 0
128@ = 0
129@ = 0
242@ = 0
243@ = 0
244@ = 0
245@ = 0
246@ = 0
247@ = 0
248@ = 0
249@ = 0
250@ = 0
251@ = 0
252@ = 0
253@ = 0
254@ = 0
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
268@ = 0
269@ = 0
270@ = 0
271@ = 0
272@ = 0
273@ = 0
274@ = 0
275@ = 0
276@ = 0
277@ = 0
278@ = 0
279@ = 0
280@ = 0
281@ = 0
284@ = 0
285@ = 0
286@ = 0
287@ = 0
35@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
36@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.AddEventResponse(36@, 49, 311, 0.0, 100.0, 100.0, 100.0, False, True)
World.ClearArea(2077.58, -1695.929, 150.0, 150.0, True)
Car.CustomPlateForNextCar(466, "_A2TMFK_")
34@ = Car.Create(466, 2058.86, -1694.612, 12.297)
Audio.SetRadioChannel(RadioChannel.RadioLosSantos)
Car.ChangeColor(34@, 98, 14)
Car.SetHeading(34@, 271.822)
Car.SetHealth(34@, 1000)
$big_smoke = Char.CreateAsPassenger(34@, PedType.Special, 290, 0)
Char.SetGetOutUpsideDownCar($big_smoke, False)
Char.SetSignalAfterKill($big_smoke, False)
Char.SetHealth($big_smoke, 500)
Char.SetSuffersCriticalHits($big_smoke, False)
Char.SetNeverTargeted($big_smoke, True)
Char.SetDecisionMaker($big_smoke, 35@)
Char.SetCantBeDraggedOut($big_smoke, True)
Char.SetStayInCarWhenJacked($big_smoke, True)
Game.SetMaxFireGenerations(1)
Char.WarpIntoCar($scplayer, 34@)
Game.SetWantedMultiplier(0.0)
Game.SwitchEmergencyServices(False)
Camera.DoFade(1500, Fade.In)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Char.ShutUp($scplayer, True)
Path.SwitchRoadsOff(1694.12, -1604.33, 5.0, 1805.94, -1593.12, 15.0)
Text.PrintNow('DGS1_1', 6000, 1)
TIMERB = 0
Player.SetGroupRecruitment($player1, False)
Game.SetScriptLimitToGangSize(0)
Char.ShutUpForScriptedSpeech($big_smoke, True)
Char.ShutUpForScriptedSpeech($scplayer, True)

:DRUGS1_1346
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DRUGS1_1372
goto @DRUGS1_51847

:DRUGS1_1372
if 
  280@ <= 7
goto_if_false @DRUGS1_1429
if 
  Char.IsDead($big_smoke)
goto_if_false @DRUGS1_1429
Text.PrintNow('DGS1_60', 7000, 1)
goto @DRUGS1_51829

:DRUGS1_1429
if 
  123@ == 0
goto_if_false @DRUGS1_9205
if 
  90@ == 11
goto_if_false @DRUGS1_1565
if 
  6 > $smokehealth_s4
goto_if_false @DRUGS1_1565
if 
  not Char.IsInArea2D($scplayer, 1744.2, -1686.68, 1698.34, -1616.4, False)
goto_if_false @DRUGS1_1565
if 
  not Char.IsOnScreen($big_smoke)
goto_if_false @DRUGS1_1565
Char.ExplodeHead($big_smoke)
Text.PrintNow('DGS1_3', 7000, 1)
goto @DRUGS1_51829

:DRUGS1_1565
if 
  90@ == 0
goto_if_false @DRUGS1_1696
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_1696
if 
  not Car.IsDead(34@)
goto_if_false @DRUGS1_1696
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @DRUGS1_1696
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @DRUGS1_1696
88@ = Blip.AddForCoord(1722.568, -1597.92, 12.405)
Text.PrintNow('DGS1_1', 10000, 1)
90@ = 1

:DRUGS1_1696
if 
  92@ == 0
goto_if_false @DRUGS1_1984
if or
  90@ == 1
  90@ == 100
goto_if_false @DRUGS1_1984
if 
  91@ == 0
goto_if_false @DRUGS1_1852
if 
  not Car.IsDead(34@)
goto_if_false @DRUGS1_1852
if 
  not Char.IsSittingInCar($scplayer, 34@)
goto_if_false @DRUGS1_1852
87@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(87@, True)
Blip.Remove(88@)
90@ = 100
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SMOX_AC', 2000, 1)
91@ = 1

:DRUGS1_1852
if 
  91@ == 1
goto_if_false @DRUGS1_1984
if 
  not Car.IsDead(34@)
goto_if_false @DRUGS1_1984
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @DRUGS1_1984
Blip.Remove(87@)
88@ = Blip.AddForCoord(1722.568, -1597.92, 12.405)
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  282@ > 12
goto_if_false @DRUGS1_1970
Text.PrintNow('DGS1_1', 5000, 1)

:DRUGS1_1970
90@ = 1
91@ = 0

:DRUGS1_1984
if 
  90@ == 1
goto_if_false @DRUGS1_2938
gosub @DRUGS1_51446
if 
  282@ == 0
goto_if_false @DRUGS1_2093
if 
  283@ == 0
goto_if_false @DRUGS1_2093
if 
  TIMERB > 6500
goto_if_false @DRUGS1_2093
set_lvar_int_to_constant 239@ = 11083
set_lvar_text_label 240@s = 'SMO4_AA'
gosub @DRUGS1_51404

:DRUGS1_2093
if 
  282@ == 1
goto_if_false @DRUGS1_2158
if 
  283@ == 0
goto_if_false @DRUGS1_2158
set_lvar_int_to_constant 239@ = 11003
set_lvar_text_label 240@s = 'SMO4_AB'
gosub @DRUGS1_51404

:DRUGS1_2158
if 
  282@ == 2
goto_if_false @DRUGS1_2223
if 
  283@ == 0
goto_if_false @DRUGS1_2223
set_lvar_int_to_constant 239@ = 11004
set_lvar_text_label 240@s = 'SMO4_AC'
gosub @DRUGS1_51404

:DRUGS1_2223
if 
  282@ == 3
goto_if_false @DRUGS1_2288
if 
  283@ == 0
goto_if_false @DRUGS1_2288
set_lvar_int_to_constant 239@ = 11084
set_lvar_text_label 240@s = 'SMO4_AD'
gosub @DRUGS1_51404

:DRUGS1_2288
if 
  282@ == 4
goto_if_false @DRUGS1_2353
if 
  283@ == 0
goto_if_false @DRUGS1_2353
set_lvar_int_to_constant 239@ = 11005
set_lvar_text_label 240@s = 'SMO4_AE'
gosub @DRUGS1_51404

:DRUGS1_2353
if 
  282@ == 5
goto_if_false @DRUGS1_2418
if 
  283@ == 0
goto_if_false @DRUGS1_2418
set_lvar_int_to_constant 239@ = 11006
set_lvar_text_label 240@s = 'SMO4_AF'
gosub @DRUGS1_51404

:DRUGS1_2418
if 
  282@ == 6
goto_if_false @DRUGS1_2483
if 
  283@ == 0
goto_if_false @DRUGS1_2483
set_lvar_int_to_constant 239@ = 11007
set_lvar_text_label 240@s = 'SMO4_AG'
gosub @DRUGS1_51404

:DRUGS1_2483
if 
  282@ == 7
goto_if_false @DRUGS1_2548
if 
  283@ == 0
goto_if_false @DRUGS1_2548
set_lvar_int_to_constant 239@ = 11085
set_lvar_text_label 240@s = 'SMO4_AH'
gosub @DRUGS1_51404

:DRUGS1_2548
if 
  282@ == 7
goto_if_false @DRUGS1_2613
if 
  283@ == 0
goto_if_false @DRUGS1_2613
set_lvar_int_to_constant 239@ = 11008
set_lvar_text_label 240@s = 'SMO4_AJ'
gosub @DRUGS1_51404

:DRUGS1_2613
if 
  282@ == 8
goto_if_false @DRUGS1_2678
if 
  283@ == 0
goto_if_false @DRUGS1_2678
set_lvar_int_to_constant 239@ = 11009
set_lvar_text_label 240@s = 'SMO4_AK'
gosub @DRUGS1_51404

:DRUGS1_2678
if 
  282@ == 9
goto_if_false @DRUGS1_2743
if 
  283@ == 0
goto_if_false @DRUGS1_2743
set_lvar_int_to_constant 239@ = 11010
set_lvar_text_label 240@s = 'SMO4_AL'
gosub @DRUGS1_51404

:DRUGS1_2743
if 
  282@ == 10
goto_if_false @DRUGS1_2808
if 
  283@ == 0
goto_if_false @DRUGS1_2808
set_lvar_int_to_constant 239@ = 11011
set_lvar_text_label 240@s = 'SMO4_AM'
gosub @DRUGS1_51404

:DRUGS1_2808
if 
  282@ == 11
goto_if_false @DRUGS1_2873
if 
  283@ == 0
goto_if_false @DRUGS1_2873
set_lvar_int_to_constant 239@ = 11086
set_lvar_text_label 240@s = 'SMO4_AN'
gosub @DRUGS1_51404

:DRUGS1_2873
if 
  282@ == 12
goto_if_false @DRUGS1_2938
if 
  283@ == 0
goto_if_false @DRUGS1_2938
set_lvar_int_to_constant 239@ = 11012
set_lvar_text_label 240@s = 'SMO4_AO'
gosub @DRUGS1_51404

:DRUGS1_2938
if 
  90@ == 1
goto_if_false @DRUGS1_5103
if 
  not Car.IsDead(34@)
goto_if_false @DRUGS1_5103
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_5103
if 
  Char.IsSittingInCar($big_smoke, 34@)
goto_if_false @DRUGS1_5103
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @DRUGS1_5103
if 
  Car.Locate3D(34@, 1722.568, -1597.92, 12.45, 4.0, 4.0, 5.0, True)
goto_if_false @DRUGS1_5103
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
World.DisableAllEntryExits(True)
Game.SetMaxWantedLevel(0)
122@ = 0
World.ClearArea(1722.568, -1597.92, 300.0, 300.0, True)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
Camera.SetFixedPosition(1711.449, -1576.924, 30.3531, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1711.628, -1577.821, 29.9486, SwitchType.JumpCut)
Task.LeaveAnyCar($big_smoke)
Task.LeaveAnyCar($scplayer)
Camera.DoFade(2000, Fade.Out)

:DRUGS1_3206
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS1_3230
wait 0
goto @DRUGS1_3206

:DRUGS1_3230
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Streaming.RequestModel(352)
Streaming.RequestModel(346)
Streaming.RequestModel(353)
Streaming.RequestAnimation("JST_BUISNESS")
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 11013)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 11000)
Streaming.LoadAllModelsNow

:DRUGS1_3292
if or
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(353)
  not Streaming.HasAnimationLoaded("JST_BUISNESS")
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_3348
wait 0
goto @DRUGS1_3292

:DRUGS1_3348
if 
  not Streaming.HasModelLoaded(353)
goto_if_false @DRUGS1_3375
wait 0
goto @DRUGS1_3348

:DRUGS1_3375
37@ = Char.Create(PedType.Mission1, 93, 1718.283, -1633.178, 19.2035)
Char.ShutUp(37@, True)
Char.SetHeading(37@, 59.5412)
Task.PlayAnimNonInterruptable(37@, "SEAT_IDLE", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(37@, 35@)
Char.ShutUp(37@, True)
38@ = Char.Create(PedType.Mission1, 93, 1717.72, -1633.952, 19.2029)
Char.SetHeading(38@, 313.3566)
Char.ShutUp(38@, True)
Task.PlayAnimNonInterruptable(38@, "SEAT_IDLE", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(38@, 35@)
Char.ShutUp(38@, True)
39@ = Char.Create(PedType.Mission1, 93, 1712.811, -1629.454, 19.201)
Char.SetHeading(39@, 48.5227)
Char.ShutUp(39@, True)
Task.PlayAnimNonInterruptable(39@, "SEAT_IDLE", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(39@, 35@)
Char.ShutUp(39@, True)
40@ = Char.Create(PedType.Mission1, 93, 1712.146, -1630.165, 19.2003)
Char.SetHeading(40@, 322.1413)
Char.ShutUp(40@, True)
Task.PlayAnimNonInterruptable(40@, "SEAT_IDLE", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(40@, 35@)
Char.ShutUp(40@, True)
41@ = Char.Create(PedType.Mission1, 93, 1732.528, -1627.45, 19.2044)
Char.SetHeading(41@, 275.6598)
Char.ShutUp(41@, True)
Task.PlayAnimNonInterruptable(41@, "SEAT_IDLE", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(41@, 35@)
Char.ShutUp(41@, True)
42@ = Char.Create(PedType.Mission1, 111, 1729.973, -1649.115, 19.274)
Char.SetHeading(42@, 11.051)
Char.SetDecisionMaker(42@, 35@)
Char.GiveWeapon(42@, WeaponType.Mp5, 9999)
Char.SetAreaVisible(42@, 18)
Char.SetHealth(42@, 35)
214@ = Blip.AddForChar(42@)
Blip.ChangeDisplay(214@, BlipDisplay.BlipOnly)
Blip.ChangeScale(214@, 2)
Char.SetKeepTask(42@, True)
43@ = Char.Create(PedType.Mission1, 112, 1729.971, -1657.139, 19.278)
Char.SetHeading(43@, 21.106)
Char.SetHealth(43@, 10)
Char.SetDecisionMaker(43@, 35@)
Char.SetWeaponSkill(43@, 2)
Char.GiveWeapon(43@, WeaponType.Pistol, 9999)
Char.SetAccuracy(43@, 60)
Char.SetAreaVisible(43@, 18)
215@ = Blip.AddForChar(43@)
Blip.ChangeDisplay(215@, BlipDisplay.BlipOnly)
Blip.ChangeScale(215@, 2)
Char.SetKeepTask(43@, True)
Char.SetShootRate(43@, 50)
44@ = Char.Create(PedType.Mission1, 112, 1722.311, -1658.636, 19.108)
Char.SetHeading(44@, 352.526)
Char.SetDecisionMaker(44@, 36@)
Char.SetWeaponSkill(44@, 2)
Char.GiveWeapon(44@, WeaponType.Pistol, 9999)
Char.SetAreaVisible(44@, 18)
216@ = Blip.AddForChar(44@)
Blip.ChangeDisplay(216@, BlipDisplay.BlipOnly)
Blip.ChangeScale(216@, 2)
Char.SetKeepTask(44@, True)
45@ = Char.Create(PedType.Mission1, 111, 1712.399, -1657.463, 19.26)
Char.SetHealth(45@, 150)
Char.SetHeading(45@, 323.108)
Char.SetDecisionMaker(45@, 36@)
Char.SetWeaponSkill(45@, 2)
Char.GiveWeapon(45@, WeaponType.Pistol, 9999)
Char.SetAreaVisible(45@, 18)
Char.SetAccuracy(45@, 50)
217@ = Blip.AddForChar(45@)
Blip.ChangeDisplay(217@, BlipDisplay.BlipOnly)
Blip.ChangeScale(217@, 2)
Char.SetKeepTask(45@, True)
Char.SetMaxHealth(45@, 150)
Char.SetHealth(45@, 150)
Char.SetShootRate(45@, 50)
46@ = Char.Create(PedType.Mission1, 111, 1712.763, -1664.816, 19.273)
Char.SetHeading(46@, 329.331)
Char.SetDecisionMaker(46@, 36@)
Char.GiveWeapon(46@, WeaponType.Mp5, 9999)
Char.SetAccuracy(46@, 50)
Char.SetMaxHealth(46@, 150)
Char.SetHealth(46@, 150)
Char.SetAreaVisible(46@, 18)
218@ = Blip.AddForChar(46@)
Blip.ChangeDisplay(218@, BlipDisplay.BlipOnly)
Blip.ChangeScale(218@, 2)
Char.SetKeepTask(46@, True)
47@ = Char.Create(PedType.Mission1, 111, 1718.711, -1655.182, 19.108)
Char.SetHeading(47@, 327.782)
Char.SetDecisionMaker(47@, 35@)
Char.SetWeaponSkill(47@, 2)
Char.GiveWeapon(47@, WeaponType.Pistol, 9999)
Char.SetAreaVisible(47@, 18)
Char.SetAccuracy(47@, 60)
219@ = Blip.AddForChar(47@)
Blip.ChangeDisplay(219@, BlipDisplay.BlipOnly)
Blip.ChangeScale(219@, 2)
Char.SetKeepTask(47@, True)
48@ = Char.Create(PedType.Mission1, 112, 1701.8, -1650.28, 19.26)
Char.SetHeading(48@, 265.623)
Char.SetDecisionMaker(48@, 35@)
Char.SetWeaponSkill(48@, 2)
Char.GiveWeapon(48@, WeaponType.Pistol, 9999)
Char.SetMaxHealth(48@, 150)
Char.SetHealth(48@, 150)
Char.SetAreaVisible(48@, 18)
220@ = Blip.AddForChar(48@)
Blip.ChangeDisplay(220@, BlipDisplay.BlipOnly)
Blip.ChangeScale(220@, 2)
Char.SetKeepTask(48@, True)
Char.SetShootRate(48@, 50)
51@ = Char.Create(PedType.Mission1, 112, 1719.6, -1671.764, 22.741)
Char.SetHealth(51@, 5)
Char.SetHeading(51@, 11.45)
Char.SetDecisionMaker(51@, 35@)
Char.GiveWeapon(51@, WeaponType.Mp5, 9999)
Char.SetAllowedToDuck(51@, False)
Char.SetAreaVisible(51@, 18)
223@ = Blip.AddForChar(51@)
Blip.ChangeDisplay(223@, BlipDisplay.BlipOnly)
Blip.ChangeScale(223@, 2)
Char.SetKeepTask(51@, True)
52@ = Char.Create(PedType.Mission1, 112, 1701.897, -1668.039, 19.23)
Char.SetHeading(52@, 276.178)
Char.SetDecisionMaker(52@, 35@)
Char.SetWeaponSkill(52@, 2)
Char.GiveWeapon(52@, WeaponType.Pistol, 9999)
Char.SetAreaVisible(52@, 18)
Char.SetAccuracy(52@, 60)
224@ = Blip.AddForChar(52@)
Blip.ChangeDisplay(224@, BlipDisplay.BlipOnly)
Blip.ChangeScale(224@, 2)
Char.SetKeepTask(52@, True)
Char.SetMaxHealth(52@, 150)
Char.SetHealth(52@, 150)
53@ = Char.Create(PedType.Mission1, 111, 1725.037, -1672.69, 22.735)
Char.SetHeading(53@, 127.283)
Char.SetDecisionMaker(53@, 35@)
Char.SetWeaponSkill(53@, 2)
Char.GiveWeapon(53@, WeaponType.Pistol, 9999)
Char.SetAccuracy(53@, 60)
Char.SetAreaVisible(53@, 18)
225@ = Blip.AddForChar(53@)
Blip.ChangeDisplay(225@, BlipDisplay.BlipOnly)
Blip.ChangeScale(225@, 2)
Char.SetKeepTask(53@, True)
Char.SetShootRate(53@, 50)
54@ = Char.Create(PedType.Mission1, 111, 1733.358, -1664.599, 22.747)
Char.SetHeading(54@, 141.981)
Char.SetDecisionMaker(54@, 35@)
Char.SetWeaponSkill(54@, 2)
Char.GiveWeapon(54@, WeaponType.Pistol, 9999)
Char.SetAccuracy(54@, 50)
Char.SetAreaVisible(54@, 18)
226@ = Blip.AddForChar(54@)
Blip.ChangeDisplay(226@, BlipDisplay.BlipOnly)
Blip.ChangeScale(226@, 2)
Char.SetKeepTask(54@, True)
Char.SetMaxHealth(54@, 150)
Char.SetHealth(54@, 150)
Streaming.LoadSceneInDirection(1726.993, -1628.007, 20.2, 8.98)
Streaming.LoadSceneInDirection(1726.993, -1628.007, 20.2, 169.7)
90@ = 2

:DRUGS1_5103
if 
  90@ == 2
goto_if_false @DRUGS1_5367
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_5367
if 
  not Char.IsInAnyCar($big_smoke)
goto_if_false @DRUGS1_5367
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @DRUGS1_5367
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($big_smoke)
Char.SetCoordinates($scplayer, 1726.04, -1632.521, 19.18)
Char.SetHeading($scplayer, 180.0)
Char.SetCoordinates($big_smoke, 1726.815, -1633.001, 19.18)
Char.SetHeading($big_smoke, 180.0)
63@ = Char.Create(PedType.Mission1, 91, 1727.757, -1632.918, 19.18)
Char.SetHeading(63@, 270.0)
Char.SetDecisionMaker(63@, 35@)
Char.ShutUp(63@, True)
TIMERB = 0
Camera.SetFixedPosition(1728.489, -1633.539, 20.16, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1726.404, -1632.053, 20.279, SwitchType.JumpCut)
TIMERA = 0
99@ = 1
90@ = 8

:DRUGS1_5367
if 
  90@ == 8
goto_if_false @DRUGS1_6846
if 
  99@ == 1
goto_if_false @DRUGS1_5438
if 
  TIMERA > 1000
goto_if_false @DRUGS1_5438
Text.ClearPrints
Camera.DoFade(500, Fade.In)
99@ = 2

:DRUGS1_5438
if 
  99@ == 2
goto_if_false @DRUGS1_5676
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_5676
if 
  not Char.IsDead(63@)
goto_if_false @DRUGS1_5676
Char.SetCollision(63@, False)
Char.SetCollision($big_smoke, False)
Char.SetCollision($scplayer, False)
Task.PlayAnimNonInterruptable($scplayer, "PLAYER_01", "JST_BUISNESS", 1000.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable($big_smoke, "SMOKE_01", "JST_BUISNESS", 1000.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable(63@, "GIRL_01", "JST_BUISNESS", 1000.0, False, False, False, True, -1)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
TIMERB = 0
93@ = 0
skip_cutscene_start_internal @DRUGS1_6916
99@ = 3

:DRUGS1_5676
if 
  99@ == 3
goto_if_false @DRUGS1_5815
if 
  TIMERB > 2066
goto_if_false @DRUGS1_5815
Camera.SetFixedPosition(1726.35, -1630.824, 20.7289, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1726.411, -1631.822, 20.7195, SwitchType.JumpCut)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_5792
Char.StartFacialTalk($big_smoke, 10000)

:DRUGS1_5792
Text.PrintNow('SMO4_BA', 5000, 1)
99@ = 4

:DRUGS1_5815
if 
  99@ == 4
goto_if_false @DRUGS1_5987
if 
  TIMERB > 4999
goto_if_false @DRUGS1_5987
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_5987
Camera.SetFixedPosition(1726.37, -1633.38, 20.6705, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1726.416, -1632.381, 20.6667, SwitchType.JumpCut)
Text.ClearPrints
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_5945
Char.StopFacialTalk($big_smoke)

:DRUGS1_5945
Text.PrintNow('SMO4_BB', 5000, 1)
Char.StartFacialTalk($scplayer, 10000)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 11014)
99@ = 5

:DRUGS1_5987
if 
  99@ == 5
goto_if_false @DRUGS1_6102
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_6102
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_6102
Char.StopFacialTalk($scplayer)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_6068
Char.StartFacialTalk($big_smoke, 10000)

:DRUGS1_6068
Text.PrintNow('SMO4_BC', 5000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 11015)
99@ = 6

:DRUGS1_6102
if 
  99@ == 6
goto_if_false @DRUGS1_6184
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_6184
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_6184
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SMO4_BD', 5000, 1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 11001)
99@ = 7

:DRUGS1_6184
if 
  99@ == 7
goto_if_false @DRUGS1_6426
if 
  TIMERB > 9999
goto_if_false @DRUGS1_6426
if 
  not Char.IsDead(63@)
goto_if_false @DRUGS1_6426
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_6426
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_6426
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_6288
Char.StopFacialTalk($big_smoke)

:DRUGS1_6288
Char.ClearTasksImmediately(63@)
Char.SetCoordinates(63@, 1732.785, -1633.043, 19.2)
Char.SetHeading(63@, 0.0)
Task.PlayAnimNonInterruptable(63@, "GIRL_02", "JST_BUISNESS", 1000.0, False, False, False, True, -1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SMO4_BE', 3000, 1)
Camera.SetNearClip(0.09)
Char.StartFacialTalk($scplayer, 2000)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 11002)
129@ = 1
99@ = 8

:DRUGS1_6426
if 
  129@ == 1
goto_if_false @DRUGS1_6471
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_6471
Char.StopFacialTalk($scplayer)
129@ = 2

:DRUGS1_6471
if 
  99@ == 8
goto_if_false @DRUGS1_6634
if 
  TIMERB > 18500
goto_if_false @DRUGS1_6634
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_6634
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_6634
Camera.SetFixedPosition(1725.094, -1632.446, 20.7074, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1726.091, -1632.391, 20.6711, SwitchType.JumpCut)
Camera.SetNearClip(0.1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SMO4_BF', 3000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 11016)
99@ = 9

:DRUGS1_6634
if 
  99@ == 9
goto_if_false @DRUGS1_6714
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_6714
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_6714
Char.StopFacialTalk($scplayer)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SMO4_BG', 5000, 1)
99@ = 10

:DRUGS1_6714
if 
  99@ == 10
goto_if_false @DRUGS1_6846
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_6846
Text.ClearPrints
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_6846
if 
  Char.IsPlayingAnim($scplayer, "PLAYER_01")
goto_if_false @DRUGS1_6846
62@ = Char.GetAnimCurrentTime($scplayer, "PLAYER_01")
if 
  62@ == 1.0
goto_if_false @DRUGS1_6846
90@ = 10
99@ = 11

:DRUGS1_6846
if 
  90@ == 10
goto_if_false @DRUGS1_9205
if 
  TIMERA > 2000
goto_if_false @DRUGS1_9205
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_9205
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
93@ = 1

:DRUGS1_6916
skip_cutscene_end 
Camera.DoFade(1000, Fade.Out)

:DRUGS1_6925
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS1_6949
wait 0
goto @DRUGS1_6925

:DRUGS1_6949
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Streaming.SetAreaVisible(18)
Streaming.LoadScene(1722.81, -1658.54, 20.19)
if 
  93@ == 0
goto_if_false @DRUGS1_8315
Text.ClearPrints
Char.Delete(37@)
Char.Delete(38@)
Char.Delete(39@)
Char.Delete(40@)
Char.Delete(41@)
Char.Delete(42@)
Char.Delete(43@)
Char.Delete(44@)
Char.Delete(45@)
Char.Delete(46@)
Char.Delete(47@)
Char.Delete(48@)
Char.Delete(51@)
Char.Delete(52@)
Char.Delete(53@)
Char.Delete(54@)
Streaming.MarkModelAsNoLongerNeeded(91)
Streaming.MarkModelAsNoLongerNeeded(93)
Car.Delete(34@)
Streaming.MarkModelAsNoLongerNeeded(466)
42@ = Char.Create(PedType.Mission1, 111, 1729.973, -1649.115, 19.274)
Char.SetHeading(42@, 11.051)
Char.SetDecisionMaker(42@, 35@)
Char.GiveWeapon(42@, WeaponType.Mp5, 9999)
Char.SetAreaVisible(42@, 18)
Char.SetHealth(42@, 35)
214@ = Blip.AddForChar(42@)
Blip.ChangeDisplay(214@, BlipDisplay.BlipOnly)
Blip.ChangeScale(214@, 2)
Char.SetKeepTask(42@, True)
43@ = Char.Create(PedType.Mission1, 112, 1729.971, -1657.139, 19.278)
Char.SetHealth(43@, 10)
Char.SetHeading(43@, 21.106)
Char.SetDecisionMaker(43@, 35@)
Char.SetWeaponSkill(43@, 2)
Char.GiveWeapon(43@, WeaponType.Pistol, 9999)
Char.SetAccuracy(43@, 60)
Char.SetAreaVisible(43@, 18)
215@ = Blip.AddForChar(43@)
Blip.ChangeDisplay(215@, BlipDisplay.BlipOnly)
Blip.ChangeScale(215@, 2)
Char.SetShootRate(43@, 50)
Char.SetKeepTask(43@, True)
44@ = Char.Create(PedType.Mission1, 112, 1722.311, -1658.636, 19.108)
Char.SetHeading(44@, 352.526)
Char.SetDecisionMaker(44@, 36@)
Char.SetWeaponSkill(44@, 2)
Char.GiveWeapon(44@, WeaponType.Pistol, 9999)
Char.SetAreaVisible(44@, 18)
216@ = Blip.AddForChar(44@)
Blip.ChangeDisplay(216@, BlipDisplay.BlipOnly)
Blip.ChangeScale(216@, 2)
Char.SetKeepTask(44@, True)
45@ = Char.Create(PedType.Mission1, 111, 1712.399, -1657.463, 19.26)
Char.SetHealth(45@, 150)
Char.SetHeading(45@, 323.108)
Char.SetDecisionMaker(45@, 36@)
Char.SetWeaponSkill(45@, 2)
Char.GiveWeapon(45@, WeaponType.Pistol, 9999)
Char.SetAreaVisible(45@, 18)
217@ = Blip.AddForChar(45@)
Blip.ChangeDisplay(217@, BlipDisplay.BlipOnly)
Blip.ChangeScale(217@, 2)
Char.SetAccuracy(45@, 60)
Char.SetKeepTask(45@, True)
Char.SetMaxHealth(45@, 150)
Char.SetHealth(45@, 150)
Char.SetShootRate(45@, 50)
46@ = Char.Create(PedType.Mission1, 111, 1712.763, -1664.816, 19.273)
Char.SetHeading(46@, 329.331)
Char.SetDecisionMaker(46@, 36@)
Char.GiveWeapon(46@, WeaponType.Mp5, 9999)
Char.SetAccuracy(46@, 70)
Char.SetMaxHealth(46@, 150)
Char.SetHealth(46@, 150)
Char.SetAreaVisible(46@, 18)
218@ = Blip.AddForChar(46@)
Blip.ChangeDisplay(218@, BlipDisplay.BlipOnly)
Blip.ChangeScale(218@, 2)
Char.SetKeepTask(46@, True)
47@ = Char.Create(PedType.Mission1, 111, 1718.711, -1655.182, 19.108)
Char.SetHeading(47@, 327.782)
Char.SetDecisionMaker(47@, 35@)
Char.SetWeaponSkill(47@, 2)
Char.GiveWeapon(47@, WeaponType.Pistol, 9999)
Char.SetAreaVisible(47@, 18)
219@ = Blip.AddForChar(47@)
Blip.ChangeDisplay(219@, BlipDisplay.BlipOnly)
Blip.ChangeScale(219@, 2)
Char.SetAccuracy(47@, 60)
Char.SetKeepTask(47@, True)
48@ = Char.Create(PedType.Mission1, 112, 1701.8, -1650.28, 19.26)
Char.SetHeading(48@, 265.623)
Char.SetDecisionMaker(48@, 35@)
Char.SetWeaponSkill(48@, 2)
Char.GiveWeapon(48@, WeaponType.Pistol, 9999)
Char.SetMaxHealth(48@, 150)
Char.SetHealth(48@, 150)
Char.SetAreaVisible(48@, 18)
220@ = Blip.AddForChar(48@)
Blip.ChangeDisplay(220@, BlipDisplay.BlipOnly)
Blip.ChangeScale(220@, 2)
Char.SetKeepTask(48@, True)
Char.SetShootRate(48@, 60)
51@ = Char.Create(PedType.Mission1, 112, 1719.6, -1671.764, 22.741)
Char.SetHealth(51@, 5)
Char.SetHeading(51@, 11.45)
Char.SetDecisionMaker(51@, 35@)
Char.GiveWeapon(51@, WeaponType.Mp5, 9999)
Char.SetAllowedToDuck(51@, False)
Char.SetAreaVisible(51@, 18)
223@ = Blip.AddForChar(51@)
Blip.ChangeDisplay(223@, BlipDisplay.BlipOnly)
Blip.ChangeScale(223@, 2)
Char.SetKeepTask(51@, True)
52@ = Char.Create(PedType.Mission1, 112, 1701.897, -1668.039, 19.23)
Char.SetHeading(52@, 276.178)
Char.SetDecisionMaker(52@, 35@)
Char.SetWeaponSkill(52@, 2)
Char.GiveWeapon(52@, WeaponType.Pistol, 9999)
Char.SetAreaVisible(52@, 18)
Char.SetAccuracy(52@, 60)
224@ = Blip.AddForChar(52@)
Blip.ChangeDisplay(224@, BlipDisplay.BlipOnly)
Blip.ChangeScale(224@, 2)
Char.SetKeepTask(52@, True)
Char.SetMaxHealth(52@, 150)
Char.SetHealth(52@, 150)
53@ = Char.Create(PedType.Mission1, 111, 1725.037, -1672.69, 22.735)
Char.SetHeading(53@, 127.283)
Char.SetDecisionMaker(53@, 35@)
Char.SetWeaponSkill(53@, 2)
Char.GiveWeapon(53@, WeaponType.Pistol, 9999)
Char.SetAccuracy(53@, 60)
Char.SetAreaVisible(53@, 18)
225@ = Blip.AddForChar(53@)
Blip.ChangeDisplay(225@, BlipDisplay.BlipOnly)
Blip.ChangeScale(225@, 2)
Char.SetKeepTask(53@, True)
Char.SetShootRate(53@, 50)
54@ = Char.Create(PedType.Mission1, 111, 1733.358, -1664.599, 22.747)
Char.SetHeading(54@, 141.981)
Char.SetDecisionMaker(54@, 35@)
Char.SetWeaponSkill(54@, 2)
Char.GiveWeapon(54@, WeaponType.Pistol, 9999)
Char.SetAccuracy(54@, 65)
Char.SetAreaVisible(54@, 18)
226@ = Blip.AddForChar(54@)
Blip.ChangeDisplay(226@, BlipDisplay.BlipOnly)
Blip.ChangeScale(226@, 2)
Char.SetKeepTask(54@, True)
Char.SetMaxHealth(54@, 150)
Char.SetHealth(54@, 150)

:DRUGS1_8315
if 
  $smokehealth_s4 == 0
goto_if_false @DRUGS1_8582
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_8582
Char.ClearTasksImmediately($big_smoke)
Char.SetCollision($big_smoke, True)
Char.SetCollision($scplayer, True)
Char.StopFacialTalk($big_smoke)
Char.StopFacialTalk($scplayer)
Char.SetCoordinates($big_smoke, 1727.884, -1641.127, 19.2323)
Char.SetHeading($big_smoke, 182.5173)
Char.SetHasUsedEntryExit($big_smoke, 1727.009, -1635.826, 1.0)
89@ = Blip.AddForChar($big_smoke)
Char.SetAccuracy($big_smoke, 100)
Char.SetAreaVisible($big_smoke, 18)
Blip.SetAsFriendly(89@, True)
Char.SetHasUsedEntryExit($scplayer, 1727.009, -1635.826, 1.0)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Streaming.LoadScene(1727.884, -1641.127, 19.2323)
Char.GiveWeapon($big_smoke, WeaponType.MicroUzi, 99999)
Char.SetMaxHealth($big_smoke, 500)
Char.SetHealth($big_smoke, 500)
$s2_random_int = Char.GetHealth($big_smoke)
Char.SetShootRate($big_smoke, 55)
$s2_random_int /= 5
Hud.DisplayCounterWithString($s2_random_int, CounterDisplay.Bar, 'DGS1_58')
Task.ToggleDuck($big_smoke, True)
$smokehealth_s4 = 1

:DRUGS1_8582
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 11020)
Hud.SwitchWidescreen(True)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1725.933, -1638.374, 19.2232)
Char.SetHeading($scplayer, 174.7897)
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_8663
Char.SetProofs($big_smoke, True, True, True, True, True)

:DRUGS1_8663
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_8689
wait 0
goto @DRUGS1_8663

:DRUGS1_8689
Camera.DoFade(250, Fade.In)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_8731
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SMO4_BL', 2500, 1)

:DRUGS1_8731
if 
  not Char.IsDead(42@)
goto_if_false @DRUGS1_8786
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_8786
set_lvar_int_to_lvar_int 79@ = 42@
set_lvar_int_to_var_int 80@ = $big_smoke
gosub @DRUGS1_51747

:DRUGS1_8786
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS1_8841
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_8841
set_lvar_int_to_lvar_int 79@ = 44@
set_lvar_int_to_var_int 80@ = $big_smoke
gosub @DRUGS1_51791

:DRUGS1_8841
Camera.SetFixedPosition(1726.528, -1637.829, 21.257, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1726.477, -1638.779, 20.9496, SwitchType.JumpCut)
Task.ToggleDuck($scplayer, True)
Task.GoStraightToCoord($scplayer, 1724.626, -1640.693, 20.2245, MoveState.Walk, -1)
TIMERA = 0

:DRUGS1_8930
if or
  not Char.LocateStoppedAnyMeans2D($scplayer, 1724.626, -1640.693, 1.5, 1.5, False)
  TIMERA <= 1500
goto_if_false @DRUGS1_8987
wait 0
goto @DRUGS1_8930

:DRUGS1_8987
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_9004
Text.ClearPrints

:DRUGS1_9004
Char.GiveWeapon($scplayer, WeaponType.MicroUzi, 120)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Char.ClearTasksImmediately($scplayer)
Char.SetHeading($scplayer, 180.0)
Hud.SwitchWidescreen(False)
Char.SetCollision($scplayer, True)
Streaming.RemoveAnimation("JST_BUISNESS")
Blip.Remove(88@)
Char.Delete(37@)
Char.Delete(38@)
Char.Delete(39@)
Char.Delete(40@)
Streaming.MarkModelAsNoLongerNeeded(93)
Streaming.MarkModelAsNoLongerNeeded(91)
Char.Delete(63@)
Car.Delete(34@)
Streaming.MarkModelAsNoLongerNeeded(466)
Player.SetControl($player1, True)
Task.ToggleDuck($scplayer, True)
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_9152
Char.SetProofs($big_smoke, False, False, False, False, False)

:DRUGS1_9152
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
123@ = 1
282@ = 0
283@ = 0
125@ = 1
90@ = 11
TIMERA = 0
128@ = 2

:DRUGS1_9205
if 
  90@ == 11
goto_if_false @DRUGS1_15665
if 
  128@ == 2
goto_if_false @DRUGS1_15665
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_9272
$s2_random_int = Char.GetHealth($big_smoke)
$s2_random_int /= 5

:DRUGS1_9272
if 
  126@ == 0
goto_if_false @DRUGS1_13668
if 
  $smokehealth_s4 == 1
goto_if_false @DRUGS1_9765
if 
  not Char.IsDead(43@)
goto_if_false @DRUGS1_9347
set_lvar_int_to_lvar_int 79@ = 43@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_9347
if 
  not Char.IsDead(45@)
goto_if_false @DRUGS1_9386
set_lvar_int_to_lvar_int 79@ = 45@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747

:DRUGS1_9386
if 
  not Char.IsDead(46@)
goto_if_false @DRUGS1_9441
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_9441
set_lvar_int_to_lvar_int 79@ = 46@
set_lvar_int_to_var_int 80@ = $big_smoke
gosub @DRUGS1_51791

:DRUGS1_9441
if 
  not Char.IsDead(47@)
goto_if_false @DRUGS1_9480
set_lvar_int_to_lvar_int 79@ = 47@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747

:DRUGS1_9480
if 
  not Char.IsDead(51@)
goto_if_false @DRUGS1_9519
set_lvar_int_to_lvar_int 79@ = 51@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_9519
if 
  not Char.IsDead(53@)
goto_if_false @DRUGS1_9618
set_lvar_int_to_lvar_int 79@ = 53@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1728.416
82@ = -1669.709
83@ = 22.84935
84@ = 1721.637
85@ = -1662.946
86@ = 20.27
gosub @DRUGS1_51610

:DRUGS1_9618
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_9751
122@ = 1
69@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
if 
  not Char.IsDead(42@)
goto_if_false @DRUGS1_9681
Task.KillCharOnFoot(-1, 42@)

:DRUGS1_9681
if 
  not Char.IsDead(43@)
goto_if_false @DRUGS1_9704
Task.KillCharOnFoot(-1, 43@)

:DRUGS1_9704
Task.StayInSamePlace(-1, False)
Task.GoStraightToCoord(-1, 1727.717, -1658.271, 20.277, MoveState.Run, -1)
Sequence.Close(69@)
Char.PerformSequence($big_smoke, 69@)
Sequence.Clear(69@)

:DRUGS1_9751
TIMERA = 0
$smokehealth_s4 = 2

:DRUGS1_9765
if 
  $smokehealth_s4 == 2
goto_if_false @DRUGS1_9976
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_9976
77@ = Char.GetScriptTaskStatus($big_smoke, 1560)
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_9976
Char.SetAccuracy($big_smoke, 50)
70@ = Sequence.Open()
122@ = 2
Task.StayInSamePlace(-1, True)
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS1_9876
Task.KillCharOnFoot(-1, 44@)

:DRUGS1_9876
if 
  not Char.IsDead(52@)
goto_if_false @DRUGS1_9899
Task.KillCharOnFoot(-1, 52@)

:DRUGS1_9899
if 
  not Char.IsDead(53@)
goto_if_false @DRUGS1_9922
Task.KillCharOnFoot(-1, 53@)

:DRUGS1_9922
Task.StayInSamePlace(-1, False)
Task.FollowPathNodesToCoord(-1, 1719.854, -1666.667, 20.271, 6, -1)
Sequence.Close(70@)
Char.PerformSequence($big_smoke, 70@)
Sequence.Clear(70@)
$smokehealth_s4 = 3

:DRUGS1_9976
if 
  $smokehealth_s4 == 3
goto_if_false @DRUGS1_10180
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_10180
77@ = Char.GetScriptTaskStatus($big_smoke, 1560)
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_10180
122@ = 3
71@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
if 
  not Char.IsDead(46@)
goto_if_false @DRUGS1_10080
Task.KillCharOnFoot(-1, 46@)

:DRUGS1_10080
if 
  not Char.IsDead(47@)
goto_if_false @DRUGS1_10103
Task.KillCharOnFoot(-1, 47@)

:DRUGS1_10103
if 
  not Char.IsDead(48@)
goto_if_false @DRUGS1_10126
Task.KillCharOnFoot(-1, 48@)

:DRUGS1_10126
Task.StayInSamePlace(-1, False)
Task.FollowPathNodesToCoord(-1, 1713.96, -1668.24, 19.27, 6, -1)
Sequence.Close(71@)
Char.PerformSequence($big_smoke, 71@)
Sequence.Clear(71@)
$smokehealth_s4 = 4

:DRUGS1_10180
if 
  $smokehealth_s4 == 4
goto_if_false @DRUGS1_10361
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_10361
77@ = Char.GetScriptTaskStatus($big_smoke, 1560)
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_10361
122@ = 4
72@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
if 
  not Char.IsDead(45@)
goto_if_false @DRUGS1_10290
Task.KillCharOnFoot(-1, 45@)

:DRUGS1_10290
if 
  not Char.IsDead(51@)
goto_if_false @DRUGS1_10313
Task.KillCharOnFoot(-1, 51@)

:DRUGS1_10313
if 
  not Char.IsDead(54@)
goto_if_false @DRUGS1_10336
Task.KillCharOnFoot(-1, 54@)

:DRUGS1_10336
Sequence.Close(72@)
Char.PerformSequence($big_smoke, 72@)
Sequence.Clear(72@)
$smokehealth_s4 = 5

:DRUGS1_10361
if 
  $smokehealth_s4 == 5
goto_if_false @DRUGS1_10496
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_10496
77@ = Char.GetScriptTaskStatus($big_smoke, 1560)
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_10496
122@ = 5
73@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.FollowPathNodesToCoord(-1, 1704.45, -1667.71, 19.68, 6, -1)
Task.StayInSamePlace(-1, True)
Sequence.Close(73@)
Char.PerformSequence($big_smoke, 73@)
Sequence.Clear(73@)
$smokehealth_s4 = 6

:DRUGS1_10496
if 
  94@ == 0
goto_if_false @DRUGS1_10571
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS1_10571
if 
  Char.HasBeenDamagedByChar(44@, $scplayer)
goto_if_false @DRUGS1_10571
Task.StayInSamePlace(44@, False)
Task.KillCharOnFoot(44@, $scplayer)
94@ = 1

:DRUGS1_10571
if 
  95@ == 0
goto_if_false @DRUGS1_10686
if or
  Char.LocateAnyMeans3D($scplayer, 1727.0, -1637.0, 20.0, 3.0, 3.0, 5.0, False)
  Char.LocateAnyMeans3D($scplayer, 1700.19, -1667.58, 20.0, 6.5, 6.5, 5.0, False)
goto_if_false @DRUGS1_10686
Char.RemoveElegantly(41@)
95@ = 1

:DRUGS1_10686
if 
  96@ == 0
goto_if_false @DRUGS1_10964
if 
  Char.DoesExist(48@)
goto_if_false @DRUGS1_10964
if or
  Char.IsInArea3D($scplayer, 1707.16, -1643.73, 17.0, 1735.9, -1653.46, 22.0, False)
  Char.HasBeenDamagedByChar(48@, $scplayer)
  Char.IsDead(44@)
goto_if_false @DRUGS1_10964
if 
  not Char.IsDead(48@)
goto_if_false @DRUGS1_10858
set_lvar_int_to_lvar_int 79@ = 48@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1725.069
82@ = -1649.467
83@ = 19.27
Char.SetMoney(48@, 250)
gosub @DRUGS1_51698

:DRUGS1_10858
if 
  not Char.IsDead(52@)
goto_if_false @DRUGS1_10957
set_lvar_int_to_lvar_int 79@ = 52@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1717.0
82@ = -1667.75
83@ = 20.27
84@ = 1715.609
85@ = -1657.258
86@ = 20.271
gosub @DRUGS1_51610

:DRUGS1_10957
96@ = 1

:DRUGS1_10964
if 
  98@ == 0
goto_if_false @DRUGS1_11165
if 
  Char.DoesExist(54@)
goto_if_false @DRUGS1_11165
if or
  Char.IsInArea3D($scplayer, 1738.42, -1651.07, 17.0, 1698.7, -1659.61, 22.0, False)
  Char.HasBeenDamagedByChar(54@, $scplayer)
  Char.IsDead(45@)
goto_if_false @DRUGS1_11165
if 
  not Char.IsDead(54@)
goto_if_false @DRUGS1_11158
set_lvar_int_to_lvar_int 79@ = 54@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1729.928
82@ = -1667.75
83@ = 22.85
84@ = 1725.52
85@ = -1663.737
86@ = 20.5
gosub @DRUGS1_51610

:DRUGS1_11158
98@ = 1

:DRUGS1_11165
if 
  7 > $smokehealth_s4
goto_if_false @DRUGS1_11821
if 
  102@ == 0
goto_if_false @DRUGS1_11241
if 
  Char.IsDead(42@)
goto_if_false @DRUGS1_11241
Char.MarkAsNoLongerNeeded(42@)
Blip.Remove(214@)
124@ += 1
102@ = 1

:DRUGS1_11241
if 
  103@ == 0
goto_if_false @DRUGS1_11299
if 
  Char.IsDead(43@)
goto_if_false @DRUGS1_11299
Char.MarkAsNoLongerNeeded(43@)
Blip.Remove(215@)
124@ += 1
103@ = 1

:DRUGS1_11299
if 
  104@ == 0
goto_if_false @DRUGS1_11357
if 
  Char.IsDead(44@)
goto_if_false @DRUGS1_11357
Char.MarkAsNoLongerNeeded(44@)
Blip.Remove(216@)
124@ += 1
104@ = 1

:DRUGS1_11357
if 
  105@ == 0
goto_if_false @DRUGS1_11415
if 
  Char.IsDead(45@)
goto_if_false @DRUGS1_11415
Char.MarkAsNoLongerNeeded(45@)
Blip.Remove(217@)
124@ += 1
105@ = 1

:DRUGS1_11415
if 
  106@ == 0
goto_if_false @DRUGS1_11473
if 
  Char.IsDead(46@)
goto_if_false @DRUGS1_11473
Char.MarkAsNoLongerNeeded(46@)
Blip.Remove(218@)
124@ += 1
106@ = 1

:DRUGS1_11473
if 
  107@ == 0
goto_if_false @DRUGS1_11531
if 
  Char.IsDead(47@)
goto_if_false @DRUGS1_11531
Char.MarkAsNoLongerNeeded(47@)
Blip.Remove(219@)
124@ += 1
107@ = 1

:DRUGS1_11531
if 
  108@ == 0
goto_if_false @DRUGS1_11589
if 
  Char.IsDead(48@)
goto_if_false @DRUGS1_11589
Char.MarkAsNoLongerNeeded(48@)
Blip.Remove(220@)
124@ += 1
108@ = 1

:DRUGS1_11589
if 
  111@ == 0
goto_if_false @DRUGS1_11647
if 
  Char.IsDead(51@)
goto_if_false @DRUGS1_11647
Char.MarkAsNoLongerNeeded(51@)
Blip.Remove(223@)
124@ += 1
111@ = 1

:DRUGS1_11647
if 
  112@ == 0
goto_if_false @DRUGS1_11705
if 
  Char.IsDead(52@)
goto_if_false @DRUGS1_11705
Char.MarkAsNoLongerNeeded(52@)
Blip.Remove(224@)
124@ += 1
112@ = 1

:DRUGS1_11705
if 
  113@ == 0
goto_if_false @DRUGS1_11763
if 
  Char.IsDead(53@)
goto_if_false @DRUGS1_11763
Char.MarkAsNoLongerNeeded(53@)
Blip.Remove(225@)
124@ += 1
113@ = 1

:DRUGS1_11763
if 
  114@ == 0
goto_if_false @DRUGS1_11821
if 
  Char.IsDead(54@)
goto_if_false @DRUGS1_11821
Char.MarkAsNoLongerNeeded(54@)
Blip.Remove(226@)
124@ += 1
114@ = 1

:DRUGS1_11821
if 
  90@ == 11
goto_if_false @DRUGS1_12448
if 
  126@ == 0
goto_if_false @DRUGS1_12448
gosub @DRUGS1_51446
if 
  282@ == 0
goto_if_false @DRUGS1_11929
if 
  283@ == 0
goto_if_false @DRUGS1_11929
set_lvar_int_to_constant 239@ = 11121
set_lvar_text_label 240@s = 'SMO4_BO'
gosub @DRUGS1_51404

:DRUGS1_11929
if 
  282@ == 1
goto_if_false @DRUGS1_11994
if 
  283@ == 0
goto_if_false @DRUGS1_11994
set_lvar_int_to_constant 239@ = 11037
set_lvar_text_label 240@s = 'SMO4_EK'
gosub @DRUGS1_51404

:DRUGS1_11994
if 
  282@ == 2
goto_if_false @DRUGS1_12059
if 
  283@ == 0
goto_if_false @DRUGS1_12059
set_lvar_int_to_constant 239@ = 11128
set_lvar_text_label 240@s = 'SMO4_DA'
gosub @DRUGS1_51404

:DRUGS1_12059
if 
  282@ == 3
goto_if_false @DRUGS1_12124
if 
  283@ == 0
goto_if_false @DRUGS1_12124
set_lvar_int_to_constant 239@ = 11022
set_lvar_text_label 240@s = 'SMO4_BN'
gosub @DRUGS1_51404

:DRUGS1_12124
if 
  282@ == 4
goto_if_false @DRUGS1_12189
if 
  283@ == 0
goto_if_false @DRUGS1_12189
set_lvar_int_to_constant 239@ = 11023
set_lvar_text_label 240@s = 'SMO4_BP'
gosub @DRUGS1_51404

:DRUGS1_12189
if 
  282@ == 5
goto_if_false @DRUGS1_12254
if 
  283@ == 0
goto_if_false @DRUGS1_12254
set_lvar_int_to_constant 239@ = 11034
set_lvar_text_label 240@s = 'SMO4_EG'
gosub @DRUGS1_51404

:DRUGS1_12254
if 
  282@ == 6
goto_if_false @DRUGS1_12319
if 
  283@ == 0
goto_if_false @DRUGS1_12319
set_lvar_int_to_constant 239@ = 11036
set_lvar_text_label 240@s = 'SMO4_EJ'
gosub @DRUGS1_51404

:DRUGS1_12319
if 
  127@ == 0
goto_if_false @DRUGS1_12383
if or
  $smokehealth_s4 == 6
  124@ == 11
goto_if_false @DRUGS1_12383
283@ = 0
282@ = 12
127@ = 1

:DRUGS1_12383
if 
  282@ == 12
goto_if_false @DRUGS1_12448
if 
  283@ == 0
goto_if_false @DRUGS1_12448
set_lvar_int_to_constant 239@ = 11027
set_lvar_text_label 240@s = 'SMO4_DJ'
gosub @DRUGS1_51404

:DRUGS1_12448
if 
  125@ == 1
goto_if_false @DRUGS1_12491
Text.PrintHelp('DGS1_63')
TIMERB = 0
125@ = 2

:DRUGS1_12491
if 
  125@ == 2
goto_if_false @DRUGS1_12553
if 
  TIMERB > 10000
goto_if_false @DRUGS1_12553
Text.PrintHelp('DGS1_2')
TIMERB = 0
125@ = 3

:DRUGS1_12553
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_13668
if 
  Char.LocateOnFoot3D($big_smoke, 1704.45, -1667.71, 19.68, 6.0, 6.0, 4.0, False)
goto_if_false @DRUGS1_13668
if 
  Char.LocateOnFoot3D($scplayer, 1700.49, -1667.87, 19.46, 8.5, 8.5, 4.0, False)
goto_if_false @DRUGS1_13668
if or
  $smokehealth_s4 == 6
  124@ == 11
goto_if_false @DRUGS1_13668
Char.SetProofs($big_smoke, True, True, True, True, True)
Camera.DoFade(500, Fade.Out)

:DRUGS1_12712
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS1_12736
wait 0
goto @DRUGS1_12712

:DRUGS1_12736
Player.SetControl($player1, False)
Char.ClearTasksImmediately($scplayer)
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_12847
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($big_smoke, 0)
Char.ClearTasksImmediately($big_smoke)
Char.SetAreaVisible($scplayer, 0)
Char.SetCoordinates($big_smoke, 1696.229, -1669.133, 19.23)
Char.SetHeading($big_smoke, 86.7366)
Char.SetCoordinates($scplayer, 1696.339, -1666.897, 19.2)
Char.SetHeading($scplayer, 85.4)

:DRUGS1_12847
49@ = Char.Create(PedType.Mission1, 112, 1682.685, -1671.516, 19.24)
Char.SetHeading(49@, 289.407)
Char.SetDecisionMaker(49@, 35@)
Char.SetWeaponSkill(49@, 2)
Char.GiveWeapon(49@, WeaponType.Pistol, 9999)
Char.SetAccuracy(49@, 50)
Char.SetHealth(49@, 150)
214@ = Blip.AddForChar(49@)
Blip.ChangeDisplay(214@, BlipDisplay.BlipOnly)
Blip.ChangeScale(214@, 2)
Char.SetKeepTask(49@, True)
55@ = Char.Create(PedType.Mission1, 111, 1676.529, -1676.516, 20.47)
Char.SetHeading(55@, 299.59)
Char.SetDecisionMaker(55@, 35@)
Char.GiveWeapon(55@, WeaponType.Mp5, 9999)
Char.SetAccuracy(55@, 30)
Char.SetHealth(55@, 150)
Char.SetAllowedToDuck(55@, False)
215@ = Blip.AddForChar(55@)
Blip.ChangeDisplay(215@, BlipDisplay.BlipOnly)
Blip.ChangeScale(215@, 2)
Char.SetKeepTask(55@, True)
56@ = Char.Create(PedType.Mission1, 111, 1645.896, -1667.693, 20.472)
Char.SetHeading(56@, 270.18)
Char.SetDecisionMaker(56@, 35@)
Char.SetWeaponSkill(56@, 2)
Char.GiveWeapon(56@, WeaponType.Pistol, 9999)
Char.SetAccuracy(56@, 60)
Char.SetHealth(56@, 150)
216@ = Blip.AddForChar(56@)
Blip.ChangeDisplay(216@, BlipDisplay.BlipOnly)
Blip.ChangeScale(216@, 2)
Char.SetKeepTask(56@, True)
57@ = Char.Create(PedType.Mission1, 111, 1663.022, -1685.541, 20.469)
Char.SetHeading(57@, 301.304)
Char.SetDecisionMaker(57@, 35@)
Char.GiveWeapon(57@, WeaponType.Mp5, 9999)
Char.SetAccuracy(57@, 50)
Char.SetHealth(57@, 125)
217@ = Blip.AddForChar(57@)
Blip.ChangeDisplay(217@, BlipDisplay.BlipOnly)
Blip.ChangeScale(217@, 2)
Char.SetKeepTask(57@, True)
58@ = Char.Create(PedType.Mission1, 111, 1663.079, -1676.61, 20.468)
Char.SetHeading(58@, 268.5)
Char.SetDecisionMaker(58@, 35@)
Char.GiveWeapon(58@, WeaponType.Mp5, 9999)
Char.SetAccuracy(58@, 60)
Char.SetMaxHealth(58@, 125)
Char.SetHealth(58@, 125)
Char.SetAllowedToDuck(58@, False)
218@ = Blip.AddForChar(58@)
Blip.ChangeDisplay(218@, BlipDisplay.BlipOnly)
Blip.ChangeScale(218@, 2)
Char.SetKeepTask(58@, True)
59@ = Char.Create(PedType.Mission1, 111, 1662.793, -1670.124, 20.463)
Char.SetHeading(59@, 268.5)
Char.SetDecisionMaker(59@, 35@)
Char.GiveWeapon(59@, WeaponType.Mp5, 9999)
Char.SetOnlyDamagedByPlayer(59@, True)
Char.SetAccuracy(59@, 60)
Char.SetMaxHealth(59@, 150)
Char.SetHealth(59@, 150)
219@ = Blip.AddForChar(59@)
Blip.ChangeDisplay(219@, BlipDisplay.BlipOnly)
Blip.ChangeScale(219@, 2)
Char.SetKeepTask(59@, True)
50@ = Char.Create(PedType.Mission1, 111, 1698.51, -1678.459, 19.233)
Char.SetHeading(50@, 99.699)
Char.SetDecisionMaker(50@, 35@)
Char.SetWeaponSkill(50@, 2)
Char.GiveWeapon(50@, WeaponType.Pistol, 9999)
Char.SetAccuracy(50@, 30)
Char.SetHealth(50@, 150)
220@ = Blip.AddForChar(50@)
Blip.ChangeDisplay(220@, BlipDisplay.BlipOnly)
Blip.ChangeScale(220@, 2)
Char.SetKeepTask(50@, True)
Task.ToggleDuck($scplayer, True)
wait 500
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_13617
Char.SetProofs($big_smoke, False, False, False, False, False)

:DRUGS1_13617
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Camera.DoFade(750, Fade.In)
124@ = 0
$smokehealth_s4 = 6
282@ = 0
283@ = 0
126@ = 1

:DRUGS1_13668
if 
  126@ == 1
goto_if_false @DRUGS1_15665
if 
  $smokehealth_s4 == 6
goto_if_false @DRUGS1_13861
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_13861
Char.SetAccuracy($big_smoke, 80)
74@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.GoStraightToCoord(-1, 1690.24, -1669.363, 21.46, MoveState.Run, -1)
Task.StayInSamePlace(-1, True)
if 
  not Char.IsDead(49@)
goto_if_false @DRUGS1_13790
Task.KillCharOnFoot(-1, 49@)

:DRUGS1_13790
if 
  not Char.IsDead(55@)
goto_if_false @DRUGS1_13813
Task.KillCharOnFoot(-1, 55@)

:DRUGS1_13813
if 
  not Char.IsDead(56@)
goto_if_false @DRUGS1_13836
Task.KillCharOnFoot(-1, 56@)

:DRUGS1_13836
Sequence.Close(74@)
Char.PerformSequence($big_smoke, 74@)
Sequence.Clear(74@)
$smokehealth_s4 = 7

:DRUGS1_13861
if 
  $smokehealth_s4 == 7
goto_if_false @DRUGS1_14059
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_14059
77@ = Char.GetScriptTaskStatus($big_smoke, 1560)
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_14059
Char.SetAccuracy($big_smoke, 60)
75@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 1669.82, -1671.917, 21.43, 6, -1)
Task.StayInSamePlace(-1, True)
if 
  not Char.IsDead(58@)
goto_if_false @DRUGS1_13988
Task.KillCharOnFoot(-1, 58@)

:DRUGS1_13988
if 
  not Char.IsDead(56@)
goto_if_false @DRUGS1_14011
Task.KillCharOnFoot(-1, 56@)

:DRUGS1_14011
if 
  not Char.IsDead(59@)
goto_if_false @DRUGS1_14034
Task.KillCharOnFoot(-1, 59@)

:DRUGS1_14034
Sequence.Close(75@)
Char.PerformSequence($big_smoke, 75@)
Sequence.Clear(75@)
$smokehealth_s4 = 8

:DRUGS1_14059
if 
  $smokehealth_s4 == 8
goto_if_false @DRUGS1_14204
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_14204
77@ = Char.GetScriptTaskStatus($big_smoke, 1560)
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_14204
76@ = Sequence.Open()
Task.ToggleDuck(-1, True)
if 
  not Char.IsDead(50@)
goto_if_false @DRUGS1_14156
Task.KillCharOnFoot(-1, 50@)

:DRUGS1_14156
if 
  not Char.IsDead(57@)
goto_if_false @DRUGS1_14179
Task.KillCharOnFoot(-1, 57@)

:DRUGS1_14179
Sequence.Close(76@)
Char.PerformSequence($big_smoke, 76@)
Sequence.Clear(76@)
$smokehealth_s4 = 9

:DRUGS1_14204
if 
  $smokehealth_s4 == 9
goto_if_false @DRUGS1_14295
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_14295
77@ = Char.GetScriptTaskStatus($big_smoke, 1560)
if or
  is_int_lvar_equal_to_constant 77@ == 7
  124@ == 7
goto_if_false @DRUGS1_14295
TIMERB = 0
284@ = 1
90@ = 12

:DRUGS1_14295
if 
  124@ == 7
goto_if_false @DRUGS1_14334
TIMERB = 0
284@ = 1
90@ = 12

:DRUGS1_14334
if 
  100@ == 0
goto_if_false @DRUGS1_14618
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_14618
if 
  not Char.IsDead(49@)
goto_if_false @DRUGS1_14423
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_14423
set_lvar_int_to_lvar_int 79@ = 49@
set_lvar_int_to_var_int 80@ = $big_smoke
gosub @DRUGS1_51791

:DRUGS1_14423
if 
  not Char.IsDead(55@)
goto_if_false @DRUGS1_14462
set_lvar_int_to_lvar_int 79@ = 55@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_14462
if 
  not Char.IsDead(57@)
goto_if_false @DRUGS1_14517
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_14517
set_lvar_int_to_lvar_int 79@ = 57@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747

:DRUGS1_14517
if 
  not Char.IsDead(58@)
goto_if_false @DRUGS1_14556
set_lvar_int_to_lvar_int 79@ = 58@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_14556
if 
  not Char.IsDead(59@)
goto_if_false @DRUGS1_14611
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_14611
set_lvar_int_to_lvar_int 79@ = 59@
set_lvar_int_to_var_int 80@ = $big_smoke
gosub @DRUGS1_51747

:DRUGS1_14611
100@ = 1

:DRUGS1_14618
if 
  101@ == 0
goto_if_false @DRUGS1_14797
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_14797
if 
  not Char.IsDead(50@)
goto_if_false @DRUGS1_14721
set_lvar_int_to_lvar_int 79@ = 50@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1669.863
82@ = -1679.125
83@ = 20.47
gosub @DRUGS1_51555

:DRUGS1_14721
if 
  not Char.IsDead(56@)
goto_if_false @DRUGS1_14790
set_lvar_int_to_lvar_int 79@ = 56@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1675.149
82@ = -1667.818
83@ = 20.47
gosub @DRUGS1_51555

:DRUGS1_14790
101@ = 1

:DRUGS1_14797
if 
  282@ == 0
goto_if_false @DRUGS1_14862
if 
  283@ == 0
goto_if_false @DRUGS1_14862
set_lvar_int_to_constant 239@ = 11029
set_lvar_text_label 240@s = 'SMO4_EB'
gosub @DRUGS1_51404

:DRUGS1_14862
if 
  282@ == 1
goto_if_false @DRUGS1_14927
if 
  283@ == 0
goto_if_false @DRUGS1_14927
set_lvar_int_to_constant 239@ = 11021
set_lvar_text_label 240@s = 'SMO4_BM'
gosub @DRUGS1_51404

:DRUGS1_14927
if 
  282@ == 2
goto_if_false @DRUGS1_14992
if 
  283@ == 0
goto_if_false @DRUGS1_14992
set_lvar_int_to_constant 239@ = 11133
set_lvar_text_label 240@s = 'SMO4_DG'
gosub @DRUGS1_51404

:DRUGS1_14992
if 
  282@ == 3
goto_if_false @DRUGS1_15057
if 
  283@ == 0
goto_if_false @DRUGS1_15057
set_lvar_int_to_constant 239@ = 11016
set_lvar_text_label 240@s = 'SMO4_BG'
gosub @DRUGS1_51404

:DRUGS1_15057
if 
  282@ == 4
goto_if_false @DRUGS1_15122
if 
  283@ == 0
goto_if_false @DRUGS1_15122
set_lvar_int_to_constant 239@ = 11031
set_lvar_text_label 240@s = 'SMO4_ED'
gosub @DRUGS1_51404

:DRUGS1_15122
if 
  282@ == 5
goto_if_false @DRUGS1_15187
if 
  283@ == 0
goto_if_false @DRUGS1_15187
set_lvar_int_to_constant 239@ = 11033
set_lvar_text_label 240@s = 'SMO4_EF'
gosub @DRUGS1_51404

:DRUGS1_15187
if 
  282@ == 6
goto_if_false @DRUGS1_15252
if 
  283@ == 0
goto_if_false @DRUGS1_15252
set_lvar_int_to_constant 239@ = 11035
set_lvar_text_label 240@s = 'SMO4_EH'
gosub @DRUGS1_51404

:DRUGS1_15252
gosub @DRUGS1_51446
if 
  109@ == 0
goto_if_false @DRUGS1_15317
if 
  Char.IsDead(49@)
goto_if_false @DRUGS1_15317
Char.MarkAsNoLongerNeeded(49@)
Blip.Remove(214@)
124@ += 1
109@ = 1

:DRUGS1_15317
if 
  115@ == 0
goto_if_false @DRUGS1_15375
if 
  Char.IsDead(55@)
goto_if_false @DRUGS1_15375
Char.MarkAsNoLongerNeeded(55@)
Blip.Remove(215@)
124@ += 1
115@ = 1

:DRUGS1_15375
if 
  116@ == 0
goto_if_false @DRUGS1_15433
if 
  Char.IsDead(56@)
goto_if_false @DRUGS1_15433
Char.MarkAsNoLongerNeeded(56@)
Blip.Remove(216@)
124@ += 1
116@ = 1

:DRUGS1_15433
if 
  117@ == 0
goto_if_false @DRUGS1_15491
if 
  Char.IsDead(57@)
goto_if_false @DRUGS1_15491
Char.MarkAsNoLongerNeeded(57@)
Blip.Remove(217@)
124@ += 1
117@ = 1

:DRUGS1_15491
if 
  118@ == 0
goto_if_false @DRUGS1_15549
if 
  Char.IsDead(58@)
goto_if_false @DRUGS1_15549
Char.MarkAsNoLongerNeeded(58@)
Blip.Remove(218@)
124@ += 1
118@ = 1

:DRUGS1_15549
if 
  119@ == 0
goto_if_false @DRUGS1_15607
if 
  Char.IsDead(59@)
goto_if_false @DRUGS1_15607
Char.MarkAsNoLongerNeeded(59@)
Blip.Remove(219@)
124@ += 1
119@ = 1

:DRUGS1_15607
if 
  110@ == 0
goto_if_false @DRUGS1_15665
if 
  Char.IsDead(50@)
goto_if_false @DRUGS1_15665
Char.MarkAsNoLongerNeeded(50@)
Blip.Remove(220@)
124@ += 1
110@ = 1

:DRUGS1_15665
if 
  284@ == 1
goto_if_false @DRUGS1_15709
if 
  TIMERB > 2000
goto_if_false @DRUGS1_15709
284@ = 2

:DRUGS1_15709
if 
  284@ == 2
goto_if_false @DRUGS1_17003
if 
  90@ == 12
goto_if_false @DRUGS1_16204
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_16204
Text.ClearPrints
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Pad.SetPlayerEnterCarButton($player1, False)
World.ClearArea(1672.321, -1697.259, 200.0, 200.0, False)
Camera.SetFixedPosition(1672.321, -1697.259, 20.6216, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1672.069, -1696.5, 21.2228, SwitchType.JumpCut)
Hud.ClearCounter($s2_random_int)
Blip.Remove(89@)
Char.ClearTasksImmediately($big_smoke)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($big_smoke, 1668.756, -1689.291, 20.869)
Char.SetHeading($big_smoke, 203.5)
Char.SetCoordinates($scplayer, 1667.26, -1683.5, 20.869)
Char.SetHeading($scplayer, 203.5)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(112)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 11041)
Streaming.RequestCarRecording(250)
Streaming.RequestCarRecording(251)
Streaming.RequestCarRecording(252)
Streaming.RequestModel(581)
wait 100
Streaming.LoadAllModelsNow

:DRUGS1_15987
if or
  not Streaming.HasCarRecordingBeenLoaded(250)
  not Streaming.HasCarRecordingBeenLoaded(251)
  not Streaming.HasCarRecordingBeenLoaded(252)
  not Streaming.HasModelLoaded(581)
goto_if_false @DRUGS1_16029
wait 0
goto @DRUGS1_15987

:DRUGS1_16029
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_16055
wait 0
goto @DRUGS1_16029

:DRUGS1_16055
Char.Delete(63@)
World.ClearArea(1668.67, -1694.68, 19.97, 200.0, False)
Car.CustomPlateForNextCar(581, "_IMY_AK")
161@ = Car.Create(581, 1671.791, -1695.106, 19.48)
Car.SetHeading(161@, 117.5347)
Car.SetProofs(161@, False, True, True, True, True)
Camera.SetInterpolationParameters(0.0, 3000)
Car.SetCanBurstTires(161@, False)
Char.GiveWeapon($scplayer, WeaponType.MicroUzi, 99999)
Car.SetHealth(161@, 2000)
Car.SetCanBurstTires(161@, False)
TIMERA = 0
90@ = 13

:DRUGS1_16204
if 
  90@ == 13
goto_if_false @DRUGS1_16319
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_16319
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_16319
Camera.SetFixedPosition(1672.321, -1697.259, 20.6216, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1672.069, -1696.5, 20.6212, SwitchType.Interpolation)
TIMERA = 0
90@ = 14

:DRUGS1_16319
if 
  90@ == 14
goto_if_false @DRUGS1_16450
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_16450
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_16450
if 
  TIMERA > 900
goto_if_false @DRUGS1_16450
Task.EnterCarAsDriver($big_smoke, 161@, 5000)
Task.EnterCarAsPassenger($scplayer, 161@, 5000, 0)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SMO4_EO', 5000, 1)
127@ = 2
90@ = 15

:DRUGS1_16450
if 
  90@ == 15
goto_if_false @DRUGS1_16659
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_16659
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_16659
if 
  Char.IsSittingInCar($big_smoke, 161@)
goto_if_false @DRUGS1_16659
Camera.SetFixedPosition(1672.983, -1692.091, 19.8891, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1672.57, -1692.999, 19.9589, SwitchType.JumpCut)
Camera.PointAtCar(161@, CameraMode.Fixed, SwitchType.JumpCut)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1674.371, -1695.097, 19.814)
Char.SetHeading($scplayer, 90.0)
Task.EnterCarAsPassenger($scplayer, 161@, 5000, 0)
Task.LookAtChar($big_smoke, $scplayer, 2000)
Char.SetCanBeKnockedOffBike($scplayer, True)
Char.SetCanBeKnockedOffBike($big_smoke, True)
90@ = 16

:DRUGS1_16659
if 
  90@ == 16
goto_if_false @DRUGS1_16759
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_16759
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_16759
if 
  Char.IsSittingInCar($scplayer, 161@)
goto_if_false @DRUGS1_16759
Audio.SetRadioChannel(RadioChannel.RadioX)
Char.ClearLookAt($big_smoke)
Car.StartPlayback(161@, 250)
TIMERA = 0
90@ = 17

:DRUGS1_16759
if 
  90@ == 17
goto_if_false @DRUGS1_16952
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_16952
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_16952
if 
  Char.IsSittingInCar($scplayer, 161@)
goto_if_false @DRUGS1_16952
if 
  TIMERA > 1600
goto_if_false @DRUGS1_16952
Camera.SetFixedPosition(1623.331, -1705.448, 19.7991, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1624.331, -1705.475, 19.7991, SwitchType.JumpCut)
Car.StopPlayback(161@)
wait 0
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_16931
Car.StartPlayback(161@, 251)

:DRUGS1_16931
TIMERA = 0
284@ = 3
90@ = 18

:DRUGS1_16952
if 
  127@ == 2
goto_if_false @DRUGS1_17003
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_17003
Text.ClearThisPrint('SMO4_EO')
127@ = 3

:DRUGS1_17003
if or
  243@ == 0
  243@ == 1
  243@ == 2
  243@ == 3
goto_if_false @DRUGS1_17225
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_17225
if 
  280@ <= 3
goto_if_false @DRUGS1_17225
$smokeshoot_s4flag = Car.GetHealth(161@)
$smokeshoot_s4flag -= 1000
if 
  0 >= $smokeshoot_s4flag
goto_if_false @DRUGS1_17218
$smokeshoot_s4flag = 0
Car.SetProofs(161@, False, False, False, False, False)
Char.SetProofs($scplayer, False, False, False, False, False)
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_17183
Char.SetProofs($big_smoke, False, False, False, False, False)
Task.Die($big_smoke)

:DRUGS1_17183
Car.Explode(161@)
Text.PrintNow('DGS1_60', 7000, 1)
goto @DRUGS1_51829
goto @DRUGS1_17225

:DRUGS1_17218
$smokeshoot_s4flag /= 10

:DRUGS1_17225
if 
  243@ == 0
goto_if_false @DRUGS1_23355
if 
  90@ == 18
goto_if_false @DRUGS1_18562
if 
  TIMERA > 700
goto_if_false @DRUGS1_18562
$z = 19.7991
Streaming.RequestCarRecording(253)
Streaming.RequestCarRecording(254)
Streaming.RequestCarRecording(255)
Streaming.RequestCarRecording(256)
Streaming.RequestCarRecording(257)
Streaming.RequestModel(560)
Streaming.RequestModel(#KMB_SKIP)
Streaming.RequestModel(516)
Streaming.RequestModel(437)
Streaming.RequestModel(443)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 11087)
Streaming.LoadAllModelsNow

:DRUGS1_17353
if or
  not Streaming.HasCarRecordingBeenLoaded(253)
  not Streaming.HasCarRecordingBeenLoaded(254)
  not Streaming.HasCarRecordingBeenLoaded(255)
  not Streaming.HasCarRecordingBeenLoaded(256)
  not Streaming.HasCarRecordingBeenLoaded(257)
goto_if_false @DRUGS1_17400
wait 0
goto @DRUGS1_17353

:DRUGS1_17400
if or
  not Streaming.HasModelLoaded(560)
  not Streaming.HasModelLoaded(#KMB_SKIP)
  not Streaming.HasModelLoaded(516)
  not Streaming.HasModelLoaded(437)
  not Streaming.HasModelLoaded(443)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_17451
wait 0
goto @DRUGS1_17400

:DRUGS1_17451
162@ = Object.Create(#KMB_SKIP, 1563.603, -1437.107, 12.347)
Object.SetHeading(162@, 90.4568)
Object.FreezePosition(162@, True)
163@ = Car.Create(437, 1552.209, -1437.3, 12.3828)
Car.SetHeading(163@, 90.2081)
Car.FreezePosition(163@, True)
164@ = Car.Create(437, 1539.759, -1437.34, 12.3906)
Car.SetHeading(164@, 90.2081)
Car.FreezePosition(164@, True)
165@ = Car.Create(516, 1680.473, -1589.874, 13.23)
Car.SetHeading(165@, 87.883)
Car.ChangeColor(165@, 3, 3)
177@ = Char.CreateInsideCar(165@, PedType.Mission1, 7)
Char.SetDecisionMaker(177@, 35@)
166@ = Car.Create(516, 1594.553, -1595.039, 13.243)
Car.SetHeading(166@, 271.189)
Car.ChangeColor(166@, 8, 8)
178@ = Char.CreateInsideCar(166@, PedType.Mission1, 7)
Char.SetDecisionMaker(178@, 35@)
167@ = Car.Create(516, 1655.527, -1550.667, 13.226)
Car.SetHeading(167@, 180.735)
Car.ChangeColor(167@, 51, 51)
179@ = Char.CreateInsideCar(167@, PedType.Mission1, 7)
Char.SetDecisionMaker(179@, 35@)
168@ = Car.Create(516, 1655.391, -1463.511, 13.22)
Car.SetHeading(168@, 180.735)
Car.ChangeColor(168@, 4, 4)
Car.SetHeavy(168@, True)
180@ = Char.CreateInsideCar(168@, PedType.Mission1, 7)
Char.SetDecisionMaker(180@, 35@)
169@ = Car.Create(516, 1660.788, -1563.222, 13.23)
Car.SetHeading(169@, 358.832)
Car.ChangeColor(169@, 73, 73)
181@ = Char.CreateInsideCar(169@, PedType.Mission1, 7)
Char.SetDecisionMaker(181@, 35@)
170@ = Car.Create(516, 1660.594, -1522.353, 13.225)
Car.SetHeading(170@, 358.832)
Car.ChangeColor(170@, 99, 99)
182@ = Char.CreateInsideCar(170@, PedType.Mission1, 7)
Char.SetDecisionMaker(182@, 35@)
171@ = Car.Create(516, 1693.236, -1589.973, 13.224)
Car.SetHeading(171@, 91.298)
Car.ChangeColor(171@, 2, 2)
Car.SetHeavy(171@, True)
183@ = Char.CreateInsideCar(171@, PedType.Mission1, 7)
Char.SetDecisionMaker(183@, 35@)
188@ = Car.Create(443, 1590.891, -1590.689, 13.09)
Car.SetPetrolTankWeakpoint(188@, False)
Car.SetHeading(188@, 273.516)
Car.SetHealth(188@, 3000)
Car.SetOnlyDamagedByPlayer(188@, True)
42@ = Char.CreateInsideCar(188@, PedType.Mission1, 111)
Char.SetDecisionMaker(42@, 35@)
Char.SetCanBeShotInVehicle(42@, False)
209@ = Blip.AddForCar(188@)
Blip.ChangeDisplay(209@, BlipDisplay.BlipOnly)
Blip.ChangeScale(209@, 2)
Car.SetProofs(188@, False, True, True, True, True)
275@ = 1
TIMERA = 0

:DRUGS1_18152
if 
  $z > 13.8442
goto_if_false @DRUGS1_18555
wait 0
sub_timed_val_from_float_var $z -=@ 0.02
Camera.SetFixedPosition(1623.331, -1705.448, $z, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1624.331, -1705.475, $z, SwitchType.JumpCut)
if 
  271@ == 0
goto_if_false @DRUGS1_18548
if 
  TIMERA > 1000
goto_if_false @DRUGS1_18548
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_18548
if 
  not Car.IsPlaybackGoingOn(161@)
goto_if_false @DRUGS1_18548
189@ = Car.Create(581, 1665.25, -1716.98, 12.75)
Car.SetPetrolTankWeakpoint(189@, False)
Car.SetHeading(189@, 84.0)
Car.SetHealth(189@, 800)
43@ = Char.CreateInsideCar(189@, PedType.Mission1, 111)
Char.SetDecisionMaker(43@, 35@)
Char.SetHealth(43@, 10)
Char.SetOnlyDamagedByPlayer(43@, True)
44@ = Char.CreateAsPassenger(189@, PedType.Mission1, 111, 0)
Char.GiveWeapon(44@, WeaponType.MicroUzi, 99999)
Char.SetDecisionMaker(44@, 35@)
Char.SetHealth(44@, 10)
Char.SetOnlyDamagedByPlayer(44@, True)
214@ = Blip.AddForCar(189@)
Blip.ChangeDisplay(214@, BlipDisplay.BlipOnly)
Blip.ChangeScale(214@, 2)
247@ = 1
260@ = 1
wait 0
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_18507
Car.StartPlayback(161@, 252)
Car.SetPlaybackSpeed(161@, 0.9)

:DRUGS1_18507
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS1_18541
Car.StartPlayback(189@, 256)
Car.SetPlaybackSpeed(189@, 0.9)

:DRUGS1_18541
271@ = 1

:DRUGS1_18548
goto @DRUGS1_18152

:DRUGS1_18555
90@ = 19

:DRUGS1_18562
if 
  90@ == 19
goto_if_false @DRUGS1_18964
if 
  TIMERA > 8500
goto_if_false @DRUGS1_18964
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_18964
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_18964
Char.GiveWeapon($scplayer, WeaponType.MicroUzi, 99999)
Task.DriveBy($scplayer, -1, -1, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 100)
Player.SetHeadingForAttached($player1, 95.5, 200.0)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Hud.DisplayCounterWithString($smokeshoot_s4flag, CounterDisplay.Bar, 'DGS1_59')
288@ += 1
if 
  288@ > 1
goto_if_false @DRUGS1_18763
289@ = 30
goto @DRUGS1_18770

:DRUGS1_18763
289@ = 92

:DRUGS1_18770
if 
  not Char.IsDead(43@)
goto_if_false @DRUGS1_18835
Char.GiveWeapon(43@, WeaponType.MicroUzi, 99999)
Task.DriveBy(43@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 289@)

:DRUGS1_18835
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS1_18887
Task.DriveBy(44@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)

:DRUGS1_18887
Char.SetProofs($scplayer, True, True, True, True, True)
Char.SetProofs($big_smoke, True, True, True, True, True)
Text.PrintHelp('DGS1_64')
282@ = 0
283@ = 0
TIMERB = 0
122@ = 200
90@ = 20

:DRUGS1_18964
if 
  122@ == 200
goto_if_false @DRUGS1_19004
if 
  Text.IsHelpMessageBeingDisplayed
goto_if_false @DRUGS1_19004
122@ = 201

:DRUGS1_19004
if 
  122@ == 201
goto_if_false @DRUGS1_19055
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @DRUGS1_19055
Text.PrintHelp('DGS1_65')
122@ = 202

:DRUGS1_19055
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_23355
if 
  242@ == 0
goto_if_false @DRUGS1_19347
if 
  Car.Locate2D(161@, 1620.59, -1612.14, 7.0, 7.0, False)
goto_if_false @DRUGS1_19347
if 
  not Car.IsDead(165@)
goto_if_false @DRUGS1_19190
Car.GotoCoordinates(165@, 1571.424, -1590.02, 13.23)
Car.SetCruiseSpeed(165@, 13.5)
Car.SetForwardSpeed(165@, 13.5)
Car.SetDrivingStyle(165@, DrivingMode.StopForCarsIgnoreLights)

:DRUGS1_19190
if 
  not Car.IsDead(166@)
goto_if_false @DRUGS1_19253
Car.GotoCoordinates(166@, 1681.473, -1595.059, 13.22)
Car.SetCruiseSpeed(166@, 13.5)
Car.SetForwardSpeed(166@, 4.5)
Car.SetDrivingStyle(166@, DrivingMode.StopForCarsIgnoreLights)

:DRUGS1_19253
if 
  not Car.IsDead(171@)
goto_if_false @DRUGS1_19306
Car.GotoCoordinates(171@, 1582.411, -1590.115, 13.228)
Car.SetCruiseSpeed(171@, 9.0)
Car.SetDrivingStyle(171@, DrivingMode.StopForCarsIgnoreLights)

:DRUGS1_19306
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS1_19340
Car.StartPlayback(188@, 255)
Car.SetPlaybackSpeed(188@, 0.9)

:DRUGS1_19340
242@ = 1

:DRUGS1_19347
if 
  242@ == 1
goto_if_false @DRUGS1_19652
if 
  Car.Locate2D(161@, 1654.1, -1589.48, 10.0, 10.0, False)
goto_if_false @DRUGS1_19652
if 
  not Car.IsDead(167@)
goto_if_false @DRUGS1_19456
Car.GotoCoordinates(167@, 1655.839, -1576.842, 13.226)
Car.SetCruiseSpeed(167@, 9.0)
Car.SetDrivingStyle(167@, DrivingMode.StopForCarsIgnoreLights)

:DRUGS1_19456
if 
  not Car.IsDead(168@)
goto_if_false @DRUGS1_19519
Car.GotoCoordinates(168@, 1655.593, -1559.511, 13.227)
Car.SetCruiseSpeed(168@, 9.0)
Car.SetForwardSpeed(168@, 9.0)
Car.SetDrivingStyle(168@, DrivingMode.StopForCarsIgnoreLights)

:DRUGS1_19519
if 
  not Car.IsDead(169@)
goto_if_false @DRUGS1_19582
Car.GotoCoordinates(169@, 1702.0, -1444.0, 13.0)
Car.SetCruiseSpeed(169@, 9.0)
Car.SetForwardSpeed(169@, 10.8)
Car.SetDrivingStyle(169@, DrivingMode.StopForCarsIgnoreLights)

:DRUGS1_19582
if 
  not Car.IsDead(170@)
goto_if_false @DRUGS1_19645
Car.GotoCoordinates(170@, 1702.0, -1444.0, 13.0)
Car.SetCruiseSpeed(170@, 9.0)
Car.SetForwardSpeed(170@, 9.0)
Car.SetDrivingStyle(170@, DrivingMode.StopForCarsIgnoreLights)

:DRUGS1_19645
242@ = 2

:DRUGS1_19652
if 
  242@ == 2
goto_if_false @DRUGS1_20019
if 
  Car.Locate2D(161@, 1657.56, -1537.29, 10.0, 10.0, False)
goto_if_false @DRUGS1_20019
194@ = Car.Create(581, 1702.127, -1496.87, 12.95)
Car.SetPetrolTankWeakpoint(194@, False)
Car.SetHeading(194@, 26.5)
Car.SetHealth(194@, 800)
49@ = Char.CreateInsideCar(194@, PedType.Mission1, 111)
Char.SetDecisionMaker(49@, 35@)
Char.SetOnlyDamagedByPlayer(49@, True)
Char.SetHealth(49@, 10)
50@ = Char.CreateAsPassenger(194@, PedType.Mission1, 111, 0)
Char.GiveWeapon(50@, WeaponType.MicroUzi, 99999)
Char.SetOnlyDamagedByPlayer(50@, True)
Char.SetDecisionMaker(50@, 35@)
Char.SetHealth(50@, 10)
215@ = Blip.AddForCar(194@)
Blip.ChangeDisplay(215@, BlipDisplay.BlipOnly)
Blip.ChangeScale(215@, 2)
248@ = 1
261@ = 1
172@ = Car.Create(516, 1622.005, -1443.498, 13.229)
Car.SetHeading(172@, 266.928)
Car.ChangeColor(172@, 115, 115)
Car.SetHeavy(172@, True)
184@ = Char.CreateInsideCar(172@, PedType.Mission1, 7)
Char.SetDecisionMaker(184@, 35@)
173@ = Car.Create(516, 1536.288, -1443.049, 13.224)
Car.SetHeading(173@, 269.939)
Car.ChangeColor(173@, 122, 122)
Car.SetHeavy(173@, True)
185@ = Char.CreateInsideCar(173@, PedType.Mission1, 7)
Char.SetDecisionMaker(185@, 35@)
242@ = 3

:DRUGS1_20019
if 
  242@ == 3
goto_if_false @DRUGS1_20372
if 
  Car.Locate2D(161@, 1657.94, -1468.93, 15.0, 15.0, False)
goto_if_false @DRUGS1_20372
if 
  not Car.IsDead(194@)
goto_if_false @DRUGS1_20099
Car.StartPlayback(194@, 257)

:DRUGS1_20099
if 
  not Char.IsDead(49@)
goto_if_false @DRUGS1_20182
if 
  3 > 288@
goto_if_false @DRUGS1_20182
Char.GiveWeapon(49@, WeaponType.MicroUzi, 99999)
Task.DriveBy(49@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 289@)

:DRUGS1_20182
if 
  not Char.IsDead(50@)
goto_if_false @DRUGS1_20234
Task.DriveBy(50@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)

:DRUGS1_20234
Car.Delete(165@)
Car.Delete(166@)
Car.Delete(171@)
if 
  not Car.IsDead(172@)
goto_if_false @DRUGS1_20302
Car.GotoCoordinates(172@, 1720.037, -1444.137, 13.222)
Car.SetCruiseSpeed(172@, 9.0)
Car.SetDrivingStyle(172@, DrivingMode.StopForCarsIgnoreLights)

:DRUGS1_20302
if 
  not Car.IsDead(173@)
goto_if_false @DRUGS1_20365
Car.GotoCoordinates(173@, 1654.817, -1492.993, 13.22)
Car.SetCruiseSpeed(173@, 13.5)
Car.SetForwardSpeed(173@, 20.0)
Car.SetDrivingStyle(173@, DrivingMode.StopForCarsIgnoreLights)

:DRUGS1_20365
242@ = 4

:DRUGS1_20372
if 
  242@ == 4
goto_if_false @DRUGS1_20435
if 
  Car.Locate2D(161@, 1631.77, -1441.31, 12.0, 12.0, False)
goto_if_false @DRUGS1_20435
242@ = 5

:DRUGS1_20435
if 
  242@ == 5
goto_if_false @DRUGS1_20597
if 
  Car.Locate2D(161@, 1545.68, -1437.35, 10.0, 10.0, False)
goto_if_false @DRUGS1_20597
175@ = Car.Create(516, 1394.751, -1427.224, 13.24)
Car.SetHeading(175@, 184.525)
Car.ChangeColor(175@, 99, 99)
Car.GotoCoordinates(175@, 1441.028, -1443.271, 13.234)
Car.SetCruiseSpeed(175@, 13.5)
Car.SetDrivingStyle(175@, DrivingMode.StopForCarsIgnoreLights)
181@ = Char.CreateInsideCar(175@, PedType.Mission1, 7)
Char.SetDecisionMaker(181@, 35@)
242@ = 6

:DRUGS1_20597
if 
  242@ == 6
goto_if_false @DRUGS1_21433
if 
  Car.Locate2D(161@, 1508.7, -1440.86, 10.0, 10.0, False)
goto_if_false @DRUGS1_21433
Car.Delete(172@)
Car.Delete(167@)
Car.Delete(168@)
176@ = Car.Create(437, 1457.689, -1371.728, 13.235)
Car.SetHeading(176@, 177.712)
Car.StartPlayback(176@, 253)
Car.SetPlaybackSpeed(176@, 0.9)
190@ = Car.Create(560, 1374.507, -1394.312, 13.272)
Car.SetHealth(190@, 400)
Car.SetHeading(190@, 193.922)
52@ = Char.CreateAsPassenger(190@, PedType.Mission1, 111, 0)
Char.GiveWeapon(52@, WeaponType.MicroUzi, 99999)
Char.SetDecisionMaker(52@, 35@)
Task.DriveBy(52@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 70)
230@ = Blip.AddForCar(190@)
Blip.ChangeDisplay(230@, BlipDisplay.BlipOnly)
Blip.ChangeScale(230@, 2)
191@ = Car.Create(560, 1374.577, -1401.141, 13.102)
Car.SetHeading(191@, 349.825)
Car.ChangeColor(191@, 0, 0)
Car.SetHealth(191@, 500)
192@ = Car.Create(560, 1374.362, -1407.883, 13.239)
Car.SetHeading(192@, 194.852)
Car.SetHealth(192@, 500)
228@ = Blip.AddForCar(192@)
Blip.ChangeDisplay(228@, BlipDisplay.BlipOnly)
Blip.ChangeScale(228@, 2)
193@ = Car.Create(560, 1401.058, -1430.891, 12.3905)
Car.SetHeading(193@, 10.385)
Car.SetHealth(193@, 500)
229@ = Blip.AddForCar(193@)
Blip.ChangeDisplay(229@, BlipDisplay.BlipOnly)
Blip.ChangeScale(229@, 2)
Car.OpenDoor(193@, CarDoor.LeftFrontDoor)
Car.OpenDoor(193@, CarDoor.RightFrontDoor)
53@ = Char.Create(PedType.Mission1, 111, 1399.464, -1431.604, 12.3905)
Char.SetDecisionMaker(53@, 35@)
Char.GiveWeapon(53@, WeaponType.MicroUzi, 99999)
Char.SetHealth(53@, 100)
set_lvar_int_to_lvar_int 79@ = 53@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791
235@ = Blip.AddForChar(53@)
Blip.ChangeDisplay(235@, BlipDisplay.BlipOnly)
Blip.ChangeScale(235@, 2)
61@ = Char.Create(PedType.Mission1, 111, 1401.466, -1427.389, 12.3905)
Char.SetDecisionMaker(61@, 35@)
Char.GiveWeapon(61@, WeaponType.MicroUzi, 99999)
Char.SetHealth(61@, 100)
set_lvar_int_to_lvar_int 79@ = 61@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791
236@ = Blip.AddForChar(61@)
Blip.ChangeDisplay(236@, BlipDisplay.BlipOnly)
Blip.ChangeScale(236@, 2)
54@ = Char.Create(PedType.Mission1, 111, 1374.992, -1397.639, 12.438)
Char.SetDecisionMaker(54@, 35@)
Char.GiveWeapon(54@, WeaponType.MicroUzi, 99999)
Char.SetHealth(54@, 100)
set_lvar_int_to_lvar_int 79@ = 54@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747
226@ = Blip.AddForChar(54@)
Blip.ChangeDisplay(226@, BlipDisplay.BlipOnly)
Blip.ChangeScale(226@, 2)
55@ = Char.Create(PedType.Mission1, 111, 1374.543, -1404.678, 12.425)
Char.SetDecisionMaker(55@, 35@)
Char.GiveWeapon(55@, WeaponType.MicroUzi, 99999)
Char.SetHealth(55@, 100)
set_lvar_int_to_lvar_int 79@ = 55@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747
227@ = Blip.AddForChar(55@)
Blip.ChangeDisplay(227@, BlipDisplay.BlipOnly)
Blip.ChangeScale(227@, 2)
242@ = 7

:DRUGS1_21433
if 
  242@ == 7
goto_if_false @DRUGS1_21731
if 
  not Car.IsPlaybackGoingOn(161@)
goto_if_false @DRUGS1_21731
if 
  Car.Locate2D(161@, 1395.844, -1408.105, 5.0, 5.0, False)
goto_if_false @DRUGS1_21731
Car.FreezePosition(161@, True)
Blip.Remove(209@)
Car.StopPlayback(189@)
Blip.Remove(214@)
Car.StopPlayback(194@)
Blip.Remove(215@)
Char.MarkAsNoLongerNeeded(177@)
Char.MarkAsNoLongerNeeded(178@)
Char.MarkAsNoLongerNeeded(179@)
Char.MarkAsNoLongerNeeded(180@)
Char.MarkAsNoLongerNeeded(181@)
Char.MarkAsNoLongerNeeded(182@)
Char.MarkAsNoLongerNeeded(183@)
Char.MarkAsNoLongerNeeded(184@)
Char.MarkAsNoLongerNeeded(185@)
Car.MarkAsNoLongerNeeded(165@)
Car.MarkAsNoLongerNeeded(166@)
Car.MarkAsNoLongerNeeded(167@)
Car.MarkAsNoLongerNeeded(168@)
Car.MarkAsNoLongerNeeded(171@)
Car.MarkAsNoLongerNeeded(172@)
Car.MarkAsNoLongerNeeded(175@)
Car.MarkAsNoLongerNeeded(176@)
Car.Delete(169@)
Car.Delete(170@)
Car.Delete(173@)
Streaming.MarkModelAsNoLongerNeeded(437)
Streaming.MarkModelAsNoLongerNeeded(#KMB_SKIP)
Streaming.MarkModelAsNoLongerNeeded(516)
Object.Delete(162@)
Car.Delete(163@)
Car.Delete(164@)
Car.MarkAsNoLongerNeeded(176@)
Car.Delete(194@)
Char.Delete(49@)
Char.Delete(50@)
Car.Delete(189@)
Car.Delete(188@)
Char.Delete(42@)
Char.Delete(43@)
Char.Delete(44@)
Car.MarkAsNoLongerNeeded(175@)
TIMERA = 0
242@ = 8

:DRUGS1_21731
if 
  242@ > 7
goto_if_false @DRUGS1_21838
if 
  244@ == 0
goto_if_false @DRUGS1_21838
if 
  not Camera.IsPointOnScreen(1400.41, -1447.12, 12.3, 10.0)
goto_if_false @DRUGS1_21838
World.ClearArea(1400.41, -1447.12, 12.3, 50.0, False)
244@ = 1
  9 > 242@

:DRUGS1_21838
if 
  242@ == 8
goto_if_false @DRUGS1_21918
Streaming.RequestCarRecording(258)
Streaming.RequestCarRecording(259)
Streaming.RequestCarRecording(260)
Streaming.RequestCarRecording(261)
Streaming.RequestCarRecording(262)
Streaming.RequestCarRecording(263)
Streaming.RequestCarRecording(264)
Streaming.RequestCarRecording(265)
Streaming.RequestCarRecording(266)
Streaming.RequestCarRecording(267)
Streaming.RequestCarRecording(268)
242@ = 9

:DRUGS1_21918
if 
  242@ == 9
goto_if_false @DRUGS1_22145
if 
  TIMERA > 10000
goto_if_false @DRUGS1_22145
if 
  Streaming.HasCarRecordingBeenLoaded(258)
goto_if_false @DRUGS1_22145
if 
  Streaming.HasCarRecordingBeenLoaded(259)
goto_if_false @DRUGS1_22145
if 
  Streaming.HasCarRecordingBeenLoaded(260)
goto_if_false @DRUGS1_22145
if 
  Streaming.HasCarRecordingBeenLoaded(261)
goto_if_false @DRUGS1_22145
if 
  Streaming.HasCarRecordingBeenLoaded(262)
goto_if_false @DRUGS1_22145
if 
  Streaming.HasCarRecordingBeenLoaded(263)
goto_if_false @DRUGS1_22145
if 
  Streaming.HasCarRecordingBeenLoaded(264)
goto_if_false @DRUGS1_22145
if 
  Streaming.HasCarRecordingBeenLoaded(265)
goto_if_false @DRUGS1_22145
if 
  Streaming.HasCarRecordingBeenLoaded(266)
goto_if_false @DRUGS1_22145
if 
  Streaming.HasCarRecordingBeenLoaded(267)
goto_if_false @DRUGS1_22145
if 
  Streaming.HasCarRecordingBeenLoaded(268)
goto_if_false @DRUGS1_22145
243@ = 1
242@ = 10

:DRUGS1_22145
if 
  275@ == 1
goto_if_false @DRUGS1_22191
if 
  Car.IsDead(188@)
goto_if_false @DRUGS1_22191
Car.StopPlayback(188@)
275@ = 2

:DRUGS1_22191
if 
  247@ == 1
goto_if_false @DRUGS1_22439
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS1_22439
if 
  not Char.IsDead(43@)
goto_if_false @DRUGS1_22248
goto @DRUGS1_22439

:DRUGS1_22248
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS1_22397
if 
  Char.IsInCar(44@, 189@)
goto_if_false @DRUGS1_22390
205@ = Car.GetDriver(189@)
if 
  205@ == -1
goto_if_false @DRUGS1_22390
$player_x, $player_y, $player_z = Car.GetCoordinates(161@)
Char.WarpFromCarToCoord(44@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(44@, 189@)
Task.DriveBy(44@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)
247@ = 2

:DRUGS1_22390
goto @DRUGS1_22439

:DRUGS1_22397
Car.SetForwardSpeed(189@, 18.0)
Car.StopPlayback(189@)
Car.SetRotationVelocity(189@, 3.5, 7.3999, 8.1003)
247@ = 2

:DRUGS1_22439
if 
  247@ == 2
goto_if_false @DRUGS1_22531
if 
  Char.IsDead(44@)
goto_if_false @DRUGS1_22531
Car.StopPlayback(189@)
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS1_22524
Car.SetForwardSpeed(189@, 18.0)
Car.SetRotationVelocity(189@, 3.5, 7.3999, 8.1003)

:DRUGS1_22524
247@ = 3

:DRUGS1_22531
if 
  260@ == 1
goto_if_false @DRUGS1_22618
if 
  Char.IsDead(43@)
goto_if_false @DRUGS1_22618
if or
  Char.IsDead(44@)
  Car.IsDead(189@)
goto_if_false @DRUGS1_22618
Car.StopPlayback(189@)
Blip.Remove(214@)
Car.MarkAsNoLongerNeeded(189@)
Char.MarkAsNoLongerNeeded(43@)
Char.MarkAsNoLongerNeeded(44@)
260@ = 2

:DRUGS1_22618
if 
  248@ == 1
goto_if_false @DRUGS1_22866
if 
  not Car.IsDead(194@)
goto_if_false @DRUGS1_22866
if 
  not Char.IsDead(49@)
goto_if_false @DRUGS1_22675
goto @DRUGS1_22866

:DRUGS1_22675
if 
  not Char.IsDead(50@)
goto_if_false @DRUGS1_22824
if 
  Char.IsInCar(50@, 194@)
goto_if_false @DRUGS1_22817
205@ = Car.GetDriver(194@)
if 
  205@ == -1
goto_if_false @DRUGS1_22817
$player_x, $player_y, $player_z = Car.GetCoordinates(161@)
Char.WarpFromCarToCoord(50@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(50@, 194@)
Task.DriveBy(50@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)
248@ = 2

:DRUGS1_22817
goto @DRUGS1_22866

:DRUGS1_22824
Car.SetForwardSpeed(194@, 15.0)
Car.StopPlayback(194@)
Car.SetRotationVelocity(194@, 3.5, 7.3999, 8.1003)
248@ = 2

:DRUGS1_22866
if 
  248@ == 2
goto_if_false @DRUGS1_22958
if 
  Char.IsDead(50@)
goto_if_false @DRUGS1_22958
Car.StopPlayback(194@)
if 
  not Car.IsDead(194@)
goto_if_false @DRUGS1_22951
Car.SetForwardSpeed(194@, 15.0)
Car.SetRotationVelocity(194@, 3.5, 7.3999, 8.1003)

:DRUGS1_22951
248@ = 3

:DRUGS1_22958
if 
  261@ == 1
goto_if_false @DRUGS1_23045
if 
  Char.IsDead(49@)
goto_if_false @DRUGS1_23045
if or
  Char.IsDead(50@)
  Car.IsDead(194@)
goto_if_false @DRUGS1_23045
Car.StopPlayback(194@)
Blip.Remove(215@)
Car.MarkAsNoLongerNeeded(194@)
Char.MarkAsNoLongerNeeded(49@)
Char.MarkAsNoLongerNeeded(50@)
261@ = 2

:DRUGS1_23045
if 
  Char.IsDead(54@)
goto_if_false @DRUGS1_23082
if 
  Blip.DoesExist(226@)
goto_if_false @DRUGS1_23082
Blip.Remove(226@)

:DRUGS1_23082
if 
  Char.IsDead(55@)
goto_if_false @DRUGS1_23119
if 
  Blip.DoesExist(227@)
goto_if_false @DRUGS1_23119
Blip.Remove(227@)

:DRUGS1_23119
if 
  Car.IsDead(190@)
goto_if_false @DRUGS1_23156
if 
  Blip.DoesExist(230@)
goto_if_false @DRUGS1_23156
Blip.Remove(230@)

:DRUGS1_23156
if 
  Car.IsDead(192@)
goto_if_false @DRUGS1_23193
if 
  Blip.DoesExist(228@)
goto_if_false @DRUGS1_23193
Blip.Remove(228@)

:DRUGS1_23193
if 
  286@ == 0
goto_if_false @DRUGS1_23274
if 
  not Car.IsDead(169@)
goto_if_false @DRUGS1_23274
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS1_23274
if 
  Car.HasBeenDamagedByCar(169@, 188@)
goto_if_false @DRUGS1_23274
Car.Explode(169@)
286@ = 1

:DRUGS1_23274
if 
  287@ == 0
goto_if_false @DRUGS1_23355
if 
  not Car.IsDead(170@)
goto_if_false @DRUGS1_23355
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS1_23355
if 
  Car.HasBeenDamagedByCar(170@, 188@)
goto_if_false @DRUGS1_23355
Car.Explode(170@)
287@ = 1

:DRUGS1_23355
if or
  90@ == 20
  243@ == 1
goto_if_false @DRUGS1_25358
if 
  3 > 245@
goto_if_false @DRUGS1_25358
if 
  282@ == 0
goto_if_false @DRUGS1_23463
if 
  283@ == 0
goto_if_false @DRUGS1_23463
set_lvar_int_to_constant 239@ = 11088
set_lvar_text_label 240@s = 'SMO4_FB'
gosub @DRUGS1_51404

:DRUGS1_23463
if 
  282@ == 1
goto_if_false @DRUGS1_23528
if 
  283@ == 0
goto_if_false @DRUGS1_23528
set_lvar_int_to_constant 239@ = 11045
set_lvar_text_label 240@s = 'SMO4_ES'
gosub @DRUGS1_51404

:DRUGS1_23528
if 
  285@ == 0
goto_if_false @DRUGS1_23591
if 
  Car.Locate2D(161@, 1659.49, -1580.97, 50.0, 50.0, False)
goto_if_false @DRUGS1_23591
285@ = 1

:DRUGS1_23591
if 
  282@ == 2
goto_if_false @DRUGS1_23674
if 
  283@ == 0
goto_if_false @DRUGS1_23674
if 
  285@ == 1
goto_if_false @DRUGS1_23674
set_lvar_int_to_constant 239@ = 11090
set_lvar_text_label 240@s = 'SMO4_FD'
gosub @DRUGS1_51404

:DRUGS1_23674
if 
  282@ == 3
goto_if_false @DRUGS1_23739
if 
  283@ == 0
goto_if_false @DRUGS1_23739
set_lvar_int_to_constant 239@ = 11046
set_lvar_text_label 240@s = 'SMO4_FE'
gosub @DRUGS1_51404

:DRUGS1_23739
if 
  282@ == 4
goto_if_false @DRUGS1_23804
if 
  283@ == 0
goto_if_false @DRUGS1_23804
set_lvar_int_to_constant 239@ = 11047
set_lvar_text_label 240@s = 'SMO4_FF'
gosub @DRUGS1_51404

:DRUGS1_23804
if 
  282@ == 5
goto_if_false @DRUGS1_23869
if 
  283@ == 0
goto_if_false @DRUGS1_23869
set_lvar_int_to_constant 239@ = 11048
set_lvar_text_label 240@s = 'SMO4_FG'
gosub @DRUGS1_51404

:DRUGS1_23869
if 
  285@ == 1
goto_if_false @DRUGS1_23932
if 
  Car.Locate2D(161@, 1638.05, -1440.64, 60.0, 60.0, False)
goto_if_false @DRUGS1_23932
285@ = 2

:DRUGS1_23932
if 
  282@ == 6
goto_if_false @DRUGS1_24015
if 
  283@ == 0
goto_if_false @DRUGS1_24015
if 
  285@ == 2
goto_if_false @DRUGS1_24015
set_lvar_int_to_constant 239@ = 11089
set_lvar_text_label 240@s = 'SMO4_FC'
gosub @DRUGS1_51404

:DRUGS1_24015
if 
  285@ == 2
goto_if_false @DRUGS1_24078
if 
  Car.Locate2D(161@, 1579.33, -1438.05, 55.0, 55.0, False)
goto_if_false @DRUGS1_24078
285@ = 3

:DRUGS1_24078
if 
  282@ == 7
goto_if_false @DRUGS1_24161
if 
  283@ == 0
goto_if_false @DRUGS1_24161
if 
  285@ == 3
goto_if_false @DRUGS1_24161
set_lvar_int_to_constant 239@ = 11050
set_lvar_text_label 240@s = 'SMO4_FJ'
gosub @DRUGS1_51404

:DRUGS1_24161
if 
  282@ == 8
goto_if_false @DRUGS1_24226
if 
  283@ == 0
goto_if_false @DRUGS1_24226
set_lvar_int_to_constant 239@ = 11091
set_lvar_text_label 240@s = 'SMO4_FK'
gosub @DRUGS1_51404

:DRUGS1_24226
if 
  285@ == 3
goto_if_false @DRUGS1_24326
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS1_24312
if 
  Car.Locate2D(161@, 1432.61, -1438.66, 12.0, 12.0, False)
goto_if_false @DRUGS1_24305
285@ = 4

:DRUGS1_24305
goto @DRUGS1_24326

:DRUGS1_24312
285@ = 4
282@ = 12

:DRUGS1_24326
if 
  282@ == 9
goto_if_false @DRUGS1_24409
if 
  283@ == 0
goto_if_false @DRUGS1_24409
if 
  285@ == 4
goto_if_false @DRUGS1_24409
set_lvar_int_to_constant 239@ = 11092
set_lvar_text_label 240@s = 'SMO4_FL'
gosub @DRUGS1_51404

:DRUGS1_24409
if 
  282@ == 10
goto_if_false @DRUGS1_24474
if 
  283@ == 0
goto_if_false @DRUGS1_24474
set_lvar_int_to_constant 239@ = 11051
set_lvar_text_label 240@s = 'SMO4_FM'
gosub @DRUGS1_51404

:DRUGS1_24474
if 
  285@ == 4
goto_if_false @DRUGS1_24537
if 
  Car.Locate2D(161@, 1406.73, -1393.15, 10.0, 10.0, False)
goto_if_false @DRUGS1_24537
285@ = 5

:DRUGS1_24537
if 
  282@ == 11
goto_if_false @DRUGS1_24620
if 
  283@ == 0
goto_if_false @DRUGS1_24620
if 
  285@ == 5
goto_if_false @DRUGS1_24620
set_lvar_int_to_constant 239@ = 11052
set_lvar_text_label 240@s = 'SMO4_GA'
gosub @DRUGS1_51404

:DRUGS1_24620
if 
  282@ == 12
goto_if_false @DRUGS1_24685
if 
  283@ == 0
goto_if_false @DRUGS1_24685
set_lvar_int_to_constant 239@ = 11093
set_lvar_text_label 240@s = 'SMO4_GB'
gosub @DRUGS1_51404

:DRUGS1_24685
if 
  282@ == 13
goto_if_false @DRUGS1_24750
if 
  283@ == 0
goto_if_false @DRUGS1_24750
set_lvar_int_to_constant 239@ = 11053
set_lvar_text_label 240@s = 'SMO4_GD'
gosub @DRUGS1_51404

:DRUGS1_24750
if 
  282@ == 14
goto_if_false @DRUGS1_24815
if 
  283@ == 0
goto_if_false @DRUGS1_24815
set_lvar_int_to_constant 239@ = 11054
set_lvar_text_label 240@s = 'SMO4_GE'
gosub @DRUGS1_51404

:DRUGS1_24815
if 
  282@ == 15
goto_if_false @DRUGS1_24880
if 
  283@ == 0
goto_if_false @DRUGS1_24880
set_lvar_int_to_constant 239@ = 11094
set_lvar_text_label 240@s = 'SMO4_GF'
gosub @DRUGS1_51404

:DRUGS1_24880
if 
  282@ == 16
goto_if_false @DRUGS1_24945
if 
  283@ == 0
goto_if_false @DRUGS1_24945
set_lvar_int_to_constant 239@ = 11055
set_lvar_text_label 240@s = 'SMO4_GG'
gosub @DRUGS1_51404

:DRUGS1_24945
if 
  282@ == 17
goto_if_false @DRUGS1_25010
if 
  283@ == 0
goto_if_false @DRUGS1_25010
set_lvar_int_to_constant 239@ = 11056
set_lvar_text_label 240@s = 'SMO4_GH'
gosub @DRUGS1_51404

:DRUGS1_25010
if 
  282@ == 18
goto_if_false @DRUGS1_25075
if 
  283@ == 0
goto_if_false @DRUGS1_25075
set_lvar_int_to_constant 239@ = 11095
set_lvar_text_label 240@s = 'SMO4_GJ'
gosub @DRUGS1_51404

:DRUGS1_25075
if 
  282@ == 19
goto_if_false @DRUGS1_25140
if 
  283@ == 0
goto_if_false @DRUGS1_25140
set_lvar_int_to_constant 239@ = 11044
set_lvar_text_label 240@s = 'SMO4_ER'
gosub @DRUGS1_51404

:DRUGS1_25140
if 
  285@ == 5
goto_if_false @DRUGS1_25203
if 
  Car.Locate2D(161@, 1362.39, -1590.12, 15.0, 15.0, False)
goto_if_false @DRUGS1_25203
285@ = 6

:DRUGS1_25203
if 
  282@ == 20
goto_if_false @DRUGS1_25286
if 
  283@ == 0
goto_if_false @DRUGS1_25286
if 
  285@ == 6
goto_if_false @DRUGS1_25286
set_lvar_int_to_constant 239@ = 11096
set_lvar_text_label 240@s = 'SMO4_GK'
gosub @DRUGS1_51404

:DRUGS1_25286
if 
  282@ == 21
goto_if_false @DRUGS1_25351
if 
  283@ == 0
goto_if_false @DRUGS1_25351
set_lvar_int_to_constant 239@ = 11038
set_lvar_text_label 240@s = 'SMO4_EL'
gosub @DRUGS1_51404

:DRUGS1_25351
gosub @DRUGS1_51446

:DRUGS1_25358
if 
  243@ == 1
goto_if_false @DRUGS1_32458
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_32458
if 
  245@ == 0
goto_if_false @DRUGS1_26694
189@ = Car.Create(581, 1446.923, -1429.569, 12.1)
Car.SetPetrolTankWeakpoint(189@, False)
Car.SetHeading(189@, 174.719)
42@ = Char.CreateInsideCar(189@, PedType.Mission1, 111)
Char.SetDecisionMaker(42@, 35@)
Char.SetHealth(42@, 10)
Char.SetOnlyDamagedByPlayer(42@, True)
43@ = Char.CreateAsPassenger(189@, PedType.Mission1, 111, 0)
Char.GiveWeapon(43@, WeaponType.MicroUzi, 99999)
Char.SetHealth(43@, 10)
Char.SetOnlyDamagedByPlayer(43@, True)
Char.SetDecisionMaker(43@, 35@)
214@ = Blip.AddForCar(189@)
Blip.ChangeDisplay(214@, BlipDisplay.BlipOnly)
Blip.ChangeScale(214@, 2)
247@ = 1
260@ = 1
194@ = Car.Create(581, 1377.421, -1571.321, 12.1)
Car.SetPetrolTankWeakpoint(194@, False)
Car.SetHeading(194@, 166.577)
44@ = Char.CreateInsideCar(194@, PedType.Mission1, 111)
Char.SetDecisionMaker(44@, 35@)
Char.SetHealth(44@, 10)
Char.SetOnlyDamagedByPlayer(44@, True)
45@ = Char.CreateAsPassenger(194@, PedType.Mission1, 111, 0)
Char.GiveWeapon(45@, WeaponType.MicroUzi, 99999)
Char.SetHealth(45@, 10)
Char.SetOnlyDamagedByPlayer(45@, True)
Char.SetDecisionMaker(45@, 35@)
215@ = Blip.AddForCar(194@)
Blip.ChangeDisplay(215@, BlipDisplay.BlipOnly)
Blip.ChangeScale(215@, 2)
248@ = 1
261@ = 1
195@ = Car.Create(581, 1361.086, -1665.478, 12.62)
Car.SetPetrolTankWeakpoint(195@, False)
Car.SetHeading(195@, 187.657)
46@ = Char.CreateInsideCar(195@, PedType.Mission1, 111)
Char.SetDecisionMaker(46@, 35@)
Char.SetHealth(46@, 50)
47@ = Char.CreateAsPassenger(195@, PedType.Mission1, 111, 0)
Char.GiveWeapon(47@, WeaponType.MicroUzi, 99999)
Char.SetDecisionMaker(47@, 35@)
Char.SetHealth(47@, 10)
216@ = Blip.AddForCar(195@)
Blip.ChangeDisplay(216@, BlipDisplay.BlipOnly)
Blip.ChangeScale(216@, 2)
249@ = 1
262@ = 1
196@ = Car.Create(581, 1365.219, -1420.908, 12.104)
Car.SetPetrolTankWeakpoint(196@, False)
Car.SetHeading(196@, 353.946)
56@ = Char.CreateInsideCar(196@, PedType.Mission1, 111)
Char.SetDecisionMaker(56@, 35@)
Char.SetHealth(56@, 10)
Char.SetOnlyDamagedByPlayer(56@, True)
57@ = Char.CreateAsPassenger(196@, PedType.Mission1, 111, 0)
Char.GiveWeapon(57@, WeaponType.MicroUzi, 99999)
Char.SetHealth(57@, 10)
Char.SetOnlyDamagedByPlayer(57@, True)
Char.SetDecisionMaker(57@, 35@)
217@ = Blip.AddForCar(196@)
Blip.ChangeDisplay(217@, BlipDisplay.BlipOnly)
Blip.ChangeScale(217@, 2)
250@ = 1
263@ = 1
165@ = Car.Create(560, 1374.372, -1665.108, 12.91)
Car.SetPetrolTankWeakpoint(165@, False)
Car.SetHeading(165@, 176.22)
48@ = Char.CreateInsideCar(165@, PedType.Mission1, 111)
Char.SetDecisionMaker(48@, 35@)
49@ = Char.CreateAsPassenger(165@, PedType.Mission1, 111, 0)
Char.GiveWeapon(49@, WeaponType.MicroUzi, 99999)
Char.SetHealth(49@, 10)
Char.SetDecisionMaker(49@, 35@)
210@ = Blip.AddForCar(165@)
Blip.ChangeDisplay(210@, BlipDisplay.BlipOnly)
Blip.ChangeScale(210@, 2)
265@ = 1
255@ = 1
166@ = Car.Create(560, 1373.704, -1633.619, 12.935)
Car.SetPetrolTankWeakpoint(166@, False)
Car.SetHeading(166@, 176.22)
50@ = Char.CreateInsideCar(166@, PedType.Mission1, 111)
Char.SetDecisionMaker(50@, 35@)
51@ = Char.CreateAsPassenger(166@, PedType.Mission1, 111, 0)
Char.GiveWeapon(51@, WeaponType.MicroUzi, 99999)
Char.SetDecisionMaker(51@, 35@)
Char.SetHealth(51@, 10)
211@ = Blip.AddForCar(166@)
Blip.ChangeDisplay(211@, BlipDisplay.BlipOnly)
Blip.ChangeScale(211@, 2)
266@ = 1
256@ = 1
wait 0
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_26337
Car.FreezePosition(161@, False)
Car.StartPlayback(161@, 258)

:DRUGS1_26337
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS1_26512
if 
  not Char.IsDead(42@)
goto_if_false @DRUGS1_26512
Car.StartPlayback(189@, 259)
if 
  not Char.IsDead(42@)
goto_if_false @DRUGS1_26460
if 
  2 > 288@
goto_if_false @DRUGS1_26460
Char.GiveWeapon(42@, WeaponType.MicroUzi, 99999)
Task.DriveBy(42@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 289@)

:DRUGS1_26460
if 
  not Char.IsDead(43@)
goto_if_false @DRUGS1_26512
Task.DriveBy(43@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)

:DRUGS1_26512
if 
  not Car.IsDead(196@)
goto_if_false @DRUGS1_26687
if 
  not Char.IsDead(56@)
goto_if_false @DRUGS1_26552
Car.StartPlayback(196@, 264)

:DRUGS1_26552
if 
  not Char.IsDead(56@)
goto_if_false @DRUGS1_26635
if 
  3 > 288@
goto_if_false @DRUGS1_26635
Char.GiveWeapon(56@, WeaponType.MicroUzi, 99999)
Task.DriveBy(56@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 289@)

:DRUGS1_26635
if 
  not Char.IsDead(57@)
goto_if_false @DRUGS1_26687
Task.DriveBy(57@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 90)

:DRUGS1_26687
245@ = 1

:DRUGS1_26694
if 
  245@ == 1
goto_if_false @DRUGS1_27001
if 
  Car.Locate2D(161@, 1374.62, -1549.64, 10.0, 10.0, False)
goto_if_false @DRUGS1_27001
if 
  not Car.IsDead(194@)
goto_if_false @DRUGS1_26909
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS1_26857
Car.StartPlayback(194@, 260)
if 
  2 > 288@
goto_if_false @DRUGS1_26857
Char.GiveWeapon(44@, WeaponType.MicroUzi, 99999)
Task.DriveBy(44@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 289@)

:DRUGS1_26857
if 
  not Char.IsDead(45@)
goto_if_false @DRUGS1_26909
Task.DriveBy(45@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)

:DRUGS1_26909
Car.Delete(176@)
Car.Delete(190@)
Car.Delete(191@)
Car.Delete(192@)
Car.Delete(193@)
Char.Delete(52@)
Char.Delete(53@)
Char.Delete(54@)
Char.Delete(55@)
Char.Delete(61@)
Blip.Remove(235@)
Blip.Remove(226@)
Blip.Remove(227@)
Blip.Remove(236@)
Blip.Remove(230@)
Blip.Remove(228@)
Blip.Remove(229@)
245@ = 2

:DRUGS1_27001
if 
  245@ == 2
goto_if_false @DRUGS1_27340
if 
  Car.Locate2D(161@, 1361.086, -1665.478, 10.0, 10.0, False)
goto_if_false @DRUGS1_27340
if 
  not Car.IsDead(195@)
goto_if_false @DRUGS1_27097
if 
  not Char.IsDead(46@)
goto_if_false @DRUGS1_27097
Car.StartPlayback(195@, 261)

:DRUGS1_27097
if 
  not Char.IsDead(47@)
goto_if_false @DRUGS1_27149
Task.DriveBy(47@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)

:DRUGS1_27149
if 
  not Car.IsDead(165@)
goto_if_false @DRUGS1_27189
if 
  not Char.IsDead(48@)
goto_if_false @DRUGS1_27189
Car.StartPlayback(165@, 262)

:DRUGS1_27189
if 
  not Char.IsDead(49@)
goto_if_false @DRUGS1_27241
Task.DriveBy(49@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 10)

:DRUGS1_27241
if 
  not Car.IsDead(166@)
goto_if_false @DRUGS1_27281
if 
  not Char.IsDead(50@)
goto_if_false @DRUGS1_27281
Car.StartPlayback(166@, 263)

:DRUGS1_27281
if 
  not Char.IsDead(51@)
goto_if_false @DRUGS1_27333
Task.DriveBy(51@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 10)

:DRUGS1_27333
245@ = 3

:DRUGS1_27340
if 
  245@ == 3
goto_if_false @DRUGS1_28330
if 
  Car.Locate2D(161@, 1530.0, -1742.0, 10.0, 10.0, True)
goto_if_false @DRUGS1_28330
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_27438
Car.SetProofs(161@, True, True, True, True, True)

:DRUGS1_27438
$cam_offz = 0.2
204@ = 0.0
Camera.AttachToVehicle(161@, 0.0, -2.0, $cam_offz, 0.0, 0.0, 204@, 0.0, SwitchType.JumpCut)
Char.ClearTasksImmediately($scplayer)
Char.WarpIntoCarAsPassenger($scplayer, 161@, 0)
Car.StopPlayback(189@)
Car.Delete(189@)
Blip.Remove(214@)
Char.Delete(42@)
Char.Delete(43@)
Car.StopPlayback(194@)
Car.Delete(194@)
Blip.Remove(215@)
Char.Delete(44@)
Char.Delete(45@)
Car.StopPlayback(195@)
Car.Delete(195@)
Blip.Remove(216@)
Char.Delete(46@)
Char.Delete(47@)
Car.StopPlayback(196@)
Car.Delete(196@)
Blip.Remove(217@)
Char.Delete(56@)
Char.Delete(57@)
Car.StopPlayback(165@)
Car.Delete(165@)
Blip.Remove(210@)
Char.Delete(48@)
Char.Delete(49@)
Car.StopPlayback(166@)
Car.Delete(166@)
Blip.Remove(211@)
Char.Delete(50@)
Char.Delete(51@)
189@ = Car.Create(581, 1505.103, -1733.09, 3.05)
Car.SetPetrolTankWeakpoint(189@, False)
Car.SetHeading(189@, 258.539)
42@ = Char.CreateInsideCar(189@, PedType.Mission1, 111)
Char.SetDecisionMaker(42@, 35@)
Char.SetHealth(42@, 10)
43@ = Char.CreateAsPassenger(189@, PedType.Mission1, 111, 0)
Char.GiveWeapon(43@, WeaponType.MicroUzi, 99999)
Char.SetHealth(43@, 10)
Char.SetDecisionMaker(43@, 35@)
194@ = Car.Create(581, 1487.213, -1734.792, 3.25)
Car.SetPetrolTankWeakpoint(194@, False)
Car.SetHeading(194@, 250.829)
44@ = Char.CreateInsideCar(194@, PedType.Mission1, 111)
Char.SetDecisionMaker(44@, 35@)
Char.SetHealth(44@, 10)
45@ = Char.CreateAsPassenger(194@, PedType.Mission1, 111, 0)
Char.GiveWeapon(45@, WeaponType.MicroUzi, 99999)
Char.SetHealth(45@, 20)
Char.SetDecisionMaker(45@, 35@)
165@ = Car.Create(560, 1496.864, -1731.303, 6.3)
Car.SetPetrolTankWeakpoint(165@, False)
Car.SetHeading(165@, 255.305)
48@ = Char.CreateInsideCar(165@, PedType.Mission1, 111)
Char.SetDecisionMaker(48@, 35@)
49@ = Char.CreateAsPassenger(165@, PedType.Mission1, 111, 0)
Char.GiveWeapon(49@, WeaponType.MicroUzi, 99999)
Char.SetDecisionMaker(49@, 35@)
Char.SetHealth(49@, 10)
188@ = Car.Create(443, 1550.873, -1737.122, 14.1055)
Car.SetPetrolTankWeakpoint(188@, False)
Car.SetHeading(188@, 245.14)
197@ = Char.CreateInsideCar(188@, PedType.Mission1, 111)
Char.SetCanBeShotInVehicle(197@, False)
Car.SetProofs(188@, True, True, True, True, True)
Char.SetProofs(197@, True, True, True, True, True)
Char.SetDecisionMaker(197@, 35@)
198@ = Char.CreateAsPassenger(188@, PedType.Mission1, 111, 0)
Char.GiveWeapon(198@, WeaponType.MicroUzi, 99999)
Char.SetDecisionMaker(198@, 35@)
208@ = Car.Create(560, 1550.873, -1737.122, -14.1055)
Car.SetPetrolTankWeakpoint(208@, False)
Car.SetHeading(208@, 256.415)
Car.SetProofs(208@, True, True, True, True, True)
Car.AttachToCar(208@, 188@, 0.0, -4.6, 0.65, 15.0, 0.0, 0.0)
269@ = 0
207@ = Car.Create(560, 1550.873, -1737.122, 14.1055)
Car.SetPetrolTankWeakpoint(207@, False)
Car.SetHeading(207@, 256.415)
Car.SetProofs(207@, True, True, True, True, True)
Car.AttachToCar(207@, 188@, 0.0, 1.15, 2.4, 15.0, 0.0, 0.0)
270@ = 0
TIMERA = 0
246@ = 1
245@ = 4

:DRUGS1_28330
if 
  246@ == 1
goto_if_false @DRUGS1_28489
if 
  Car.Locate2D(161@, 1550.52, -1749.19, 10.0, 10.0, True)
goto_if_false @DRUGS1_28489
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS1_28410
Car.StartPlayback(188@, 265)

:DRUGS1_28410
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS1_28434
Car.StartPlayback(189@, 266)

:DRUGS1_28434
if 
  not Car.IsDead(165@)
goto_if_false @DRUGS1_28458
Car.StartPlayback(165@, 267)

:DRUGS1_28458
if 
  not Car.IsDead(194@)
goto_if_false @DRUGS1_28482
Car.StartPlayback(194@, 268)

:DRUGS1_28482
246@ = 2

:DRUGS1_28489
if 
  245@ == 4
goto_if_false @DRUGS1_28619
if 
  TIMERA > 250
goto_if_false @DRUGS1_28619
if 
  0.8 > $cam_offz
goto_if_false @DRUGS1_28612
add_timed_val_to_float_var $cam_offz +=@ 0.008
add_timed_val_to_float_lvar 204@ +=@ 0.008
Camera.AttachToVehicle(161@, 0.0, -2.0, $cam_offz, 0.0, 0.0, 204@, 0.0, SwitchType.JumpCut)
goto @DRUGS1_28619

:DRUGS1_28612
245@ = 5

:DRUGS1_28619
if 
  245@ == 5
goto_if_false @DRUGS1_28742
if 
  TIMERA > 2500
goto_if_false @DRUGS1_28742
Camera.SetFixedPosition(1605.591, -1766.793, 3.3342, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1604.774, -1766.255, 3.5404, SwitchType.JumpCut)
Clock.SetTimeScale(0.9)
TIMERA = 0
TIMERB = 0
276@ = 1
245@ = 6

:DRUGS1_28742
if 
  245@ == 6
goto_if_false @DRUGS1_28796
if 
  TIMERA > 800
goto_if_false @DRUGS1_28796
$z = 0.3
245@ = 7

:DRUGS1_28796
if 
  245@ == 7
goto_if_false @DRUGS1_28900
if 
  0.6 > $z
goto_if_false @DRUGS1_28857
$z += 0.001
Clock.SetTimeScale($z)
goto @DRUGS1_28900

:DRUGS1_28857
if or
  TIMERA > 2500
  $z > 0.6
goto_if_false @DRUGS1_28900
245@ = 7
Clock.SetTimeScale(0.5)

:DRUGS1_28900
if 
  245@ == 7
goto_if_false @DRUGS1_28980
if 
  TIMERA > 2000
goto_if_false @DRUGS1_28980
Camera.PointAtPoint(1605.783, -1765.834, 3.5404, SwitchType.Interpolation)
$z = 0.5
TIMERA = 0
245@ = 8

:DRUGS1_28980
if 
  245@ == 8
goto_if_false @DRUGS1_29091
if 
  1.0 > $z
goto_if_false @DRUGS1_29041
$z += 0.01
Clock.SetTimeScale($z)
goto @DRUGS1_29091

:DRUGS1_29041
if or
  TIMERA > 1000
  $z > 0.9
goto_if_false @DRUGS1_29091
245@ = 9
TIMERA = 0
Clock.SetTimeScale(1.0)

:DRUGS1_29091
if 
  245@ == 9
goto_if_false @DRUGS1_29142
if 
  TIMERA > 2800
goto_if_false @DRUGS1_29142
243@ = 2
245@ = 10

:DRUGS1_29142
if 
  276@ == 1
goto_if_false @DRUGS1_29254
if 
  TIMERB > 1242
goto_if_false @DRUGS1_29254
Fx.AddSparks(1580.85, -1752.32, 12.91, 0.0, 0.0, 1.0, 60)
Fx.AddSparks(1580.75, -1749.51, 12.92, 0.0, 0.0, 1.0, 100)
276@ = 2

:DRUGS1_29254
if 
  276@ == 2
goto_if_false @DRUGS1_29366
if 
  TIMERB > 1400
goto_if_false @DRUGS1_29366
Fx.AddSparks(1580.74, -1752.68, 12.87, 0.0, 0.0, 1.0, 100)
Fx.AddSparks(1580.85, -1749.75, 12.91, 0.0, 0.0, 1.0, 60)
276@ = 3

:DRUGS1_29366
if 
  276@ == 3
goto_if_false @DRUGS1_29478
if 
  TIMERB > 1500
goto_if_false @DRUGS1_29478
Fx.AddSparks(1580.85, -1752.32, 12.91, 0.0, 0.0, 1.0, 100)
Fx.AddSparks(1580.85, -1752.32, 12.91, 0.0, 0.0, 1.0, 80)
276@ = 4

:DRUGS1_29478
if 
  276@ == 4
goto_if_false @DRUGS1_29590
if 
  TIMERB > 1600
goto_if_false @DRUGS1_29590
Fx.AddSparks(1580.85, -1752.32, 12.91, 0.0, 0.0, 1.0, 100)
Fx.AddSparks(1580.75, -1749.51, 12.92, 0.0, 0.0, 1.0, 60)
276@ = 5

:DRUGS1_29590
if 
  276@ == 5
goto_if_false @DRUGS1_29702
if 
  TIMERB > 1700
goto_if_false @DRUGS1_29702
Fx.AddSparks(1580.74, -1752.68, 12.87, 0.0, 0.0, 1.0, 80)
Fx.AddSparks(1580.85, -1749.75, 12.91, 0.0, 0.0, 1.0, 100)
276@ = 6

:DRUGS1_29702
if 
  276@ == 6
goto_if_false @DRUGS1_29814
if 
  TIMERB > 1800
goto_if_false @DRUGS1_29814
Fx.AddSparks(1580.85, -1752.32, 12.91, 0.0, 0.0, 1.0, 60)
Fx.AddSparks(1580.85, -1752.32, 12.91, 0.0, 0.0, 1.0, 80)
276@ = 7

:DRUGS1_29814
if 
  276@ == 7
goto_if_false @DRUGS1_29892
if 
  TIMERB > 2404
goto_if_false @DRUGS1_29892
Fx.AddSparks(1599.28, -1757.56, 3.11, 0.0, 0.0, 1.0, 60)
276@ = 8

:DRUGS1_29892
if 
  276@ == 8
goto_if_false @DRUGS1_30004
if 
  TIMERB > 3418
goto_if_false @DRUGS1_30004
Fx.AddSparks(1599.76, 1757.96, 3.14, 0.0, 0.0, 1.0, 100)
Fx.AddSparks(1601.69, -1758.73, 3.18, 0.0, 0.0, 1.0, 60)
276@ = 9

:DRUGS1_30004
if 
  276@ == 9
goto_if_false @DRUGS1_30082
if 
  TIMERB > 3598
goto_if_false @DRUGS1_30082
Fx.AddSparks(1605.46, -1763.14, 3.18, 0.0, 0.0, 1.0, 100)
276@ = 10

:DRUGS1_30082
if 
  276@ == 10
goto_if_false @DRUGS1_30160
if 
  TIMERB > 3600
goto_if_false @DRUGS1_30160
Fx.AddSparks(1605.46, -1763.14, 3.18, 0.0, 0.0, 1.0, 80)
276@ = 11

:DRUGS1_30160
if 
  4 > 245@
goto_if_false @DRUGS1_32458
if 
  247@ == 1
goto_if_false @DRUGS1_30426
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS1_30426
if 
  not Char.IsDead(42@)
goto_if_false @DRUGS1_30235
goto @DRUGS1_30426

:DRUGS1_30235
if 
  not Char.IsDead(43@)
goto_if_false @DRUGS1_30384
if 
  Char.IsInCar(43@, 189@)
goto_if_false @DRUGS1_30377
205@ = Car.GetDriver(189@)
if 
  205@ == -1
goto_if_false @DRUGS1_30377
$player_x, $player_y, $player_z = Car.GetCoordinates(161@)
Char.WarpFromCarToCoord(43@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(43@, 189@)
Task.DriveBy(43@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)
247@ = 2

:DRUGS1_30377
goto @DRUGS1_30426

:DRUGS1_30384
Car.SetForwardSpeed(189@, 18.0)
Car.StopPlayback(189@)
Car.SetRotationVelocity(189@, 1.5, 3.3999, 4.1003)
247@ = 2

:DRUGS1_30426
if 
  247@ == 2
goto_if_false @DRUGS1_30518
if 
  Char.IsDead(43@)
goto_if_false @DRUGS1_30518
Car.StopPlayback(189@)
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS1_30511
Car.SetForwardSpeed(189@, 18.0)
Car.SetRotationVelocity(189@, 1.5, 3.3999, 4.1003)

:DRUGS1_30511
247@ = 3

:DRUGS1_30518
if 
  260@ == 1
goto_if_false @DRUGS1_30605
if 
  Char.IsDead(42@)
goto_if_false @DRUGS1_30605
if or
  Char.IsDead(43@)
  Car.IsDead(189@)
goto_if_false @DRUGS1_30605
Car.StopPlayback(189@)
Blip.Remove(214@)
Car.MarkAsNoLongerNeeded(189@)
Char.MarkAsNoLongerNeeded(42@)
Char.MarkAsNoLongerNeeded(43@)
260@ = 2

:DRUGS1_30605
if 
  248@ == 1
goto_if_false @DRUGS1_30853
if 
  not Car.IsDead(194@)
goto_if_false @DRUGS1_30853
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS1_30662
goto @DRUGS1_30853

:DRUGS1_30662
if 
  not Char.IsDead(45@)
goto_if_false @DRUGS1_30811
if 
  Char.IsInCar(45@, 194@)
goto_if_false @DRUGS1_30804
205@ = Car.GetDriver(194@)
if 
  205@ == -1
goto_if_false @DRUGS1_30804
$player_x, $player_y, $player_z = Car.GetCoordinates(161@)
Char.WarpFromCarToCoord(45@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(45@, 194@)
Task.DriveBy(45@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)
248@ = 2

:DRUGS1_30804
goto @DRUGS1_30853

:DRUGS1_30811
Car.SetForwardSpeed(194@, 15.0)
Car.StopPlayback(194@)
Car.SetRotationVelocity(194@, 5.5, 3.3999, 5.1003)
248@ = 2

:DRUGS1_30853
if 
  248@ == 2
goto_if_false @DRUGS1_30945
if 
  Char.IsDead(45@)
goto_if_false @DRUGS1_30945
Car.StopPlayback(194@)
if 
  not Car.IsDead(194@)
goto_if_false @DRUGS1_30938
Car.SetForwardSpeed(194@, 15.0)
Car.SetRotationVelocity(194@, 5.5, 3.3999, 5.1003)

:DRUGS1_30938
248@ = 3

:DRUGS1_30945
if 
  261@ == 1
goto_if_false @DRUGS1_31032
if 
  Char.IsDead(44@)
goto_if_false @DRUGS1_31032
if or
  Char.IsDead(45@)
  Car.IsDead(194@)
goto_if_false @DRUGS1_31032
Car.StopPlayback(194@)
Blip.Remove(215@)
Car.MarkAsNoLongerNeeded(194@)
Char.MarkAsNoLongerNeeded(44@)
Char.MarkAsNoLongerNeeded(45@)
261@ = 2

:DRUGS1_31032
if 
  249@ == 1
goto_if_false @DRUGS1_31281
if 
  not Car.IsDead(195@)
goto_if_false @DRUGS1_31281
if 
  not Char.IsDead(46@)
goto_if_false @DRUGS1_31089
goto @DRUGS1_31281

:DRUGS1_31089
if 
  not Char.IsDead(47@)
goto_if_false @DRUGS1_31239
if 
  Char.IsInCar(47@, 195@)
goto_if_false @DRUGS1_31232
205@ = Car.GetDriver(195@)
if 
  205@ == -1
goto_if_false @DRUGS1_31232
$player_x, $player_y, $player_z = Car.GetCoordinates(161@)
Char.WarpFromCarToCoord(47@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(47@, 195@)
Task.DriveBy(47@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 289@)
249@ = 2

:DRUGS1_31232
goto @DRUGS1_31281

:DRUGS1_31239
Car.SetForwardSpeed(195@, 15.0)
Car.StopPlayback(195@)
Car.SetRotationVelocity(195@, 1.5, 4.3999, 5.1003)
249@ = 2

:DRUGS1_31281
if 
  249@ == 2
goto_if_false @DRUGS1_31373
if 
  Char.IsDead(47@)
goto_if_false @DRUGS1_31373
Car.StopPlayback(195@)
if 
  not Car.IsDead(195@)
goto_if_false @DRUGS1_31366
Car.SetForwardSpeed(195@, 15.0)
Car.SetRotationVelocity(195@, 1.5, 4.3999, 5.1003)

:DRUGS1_31366
249@ = 3

:DRUGS1_31373
if 
  262@ == 1
goto_if_false @DRUGS1_31460
if 
  Char.IsDead(46@)
goto_if_false @DRUGS1_31460
if or
  Char.IsDead(47@)
  Car.IsDead(195@)
goto_if_false @DRUGS1_31460
Car.StopPlayback(195@)
Blip.Remove(216@)
Car.MarkAsNoLongerNeeded(195@)
Char.MarkAsNoLongerNeeded(46@)
Char.MarkAsNoLongerNeeded(47@)
262@ = 2

:DRUGS1_31460
if 
  250@ == 1
goto_if_false @DRUGS1_31709
if 
  not Car.IsDead(196@)
goto_if_false @DRUGS1_31709
if 
  not Char.IsDead(56@)
goto_if_false @DRUGS1_31517
goto @DRUGS1_31709

:DRUGS1_31517
if 
  not Char.IsDead(57@)
goto_if_false @DRUGS1_31667
if 
  Char.IsInCar(57@, 196@)
goto_if_false @DRUGS1_31660
205@ = Car.GetDriver(196@)
if 
  205@ == -1
goto_if_false @DRUGS1_31660
$player_x, $player_y, $player_z = Car.GetCoordinates(161@)
Char.WarpFromCarToCoord(57@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(57@, 196@)
Task.DriveBy(57@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 289@)
250@ = 2

:DRUGS1_31660
goto @DRUGS1_31709

:DRUGS1_31667
Car.SetForwardSpeed(196@, 15.0)
Car.StopPlayback(196@)
Car.SetRotationVelocity(196@, 2.5, 3.3999, 3.1003)
250@ = 2

:DRUGS1_31709
if 
  250@ == 2
goto_if_false @DRUGS1_31801
if 
  Char.IsDead(57@)
goto_if_false @DRUGS1_31801
Car.StopPlayback(196@)
if 
  not Car.IsDead(196@)
goto_if_false @DRUGS1_31794
Car.SetForwardSpeed(196@, 15.0)
Car.SetRotationVelocity(196@, 2.5, 3.3999, 3.1003)

:DRUGS1_31794
250@ = 3

:DRUGS1_31801
if 
  263@ == 1
goto_if_false @DRUGS1_31888
if 
  Char.IsDead(56@)
goto_if_false @DRUGS1_31888
if or
  Char.IsDead(57@)
  Car.IsDead(196@)
goto_if_false @DRUGS1_31888
Car.StopPlayback(196@)
Blip.Remove(217@)
Car.MarkAsNoLongerNeeded(196@)
Char.MarkAsNoLongerNeeded(56@)
Char.MarkAsNoLongerNeeded(57@)
263@ = 2

:DRUGS1_31888
if 
  265@ == 1
goto_if_false @DRUGS1_32040
if 
  not Car.IsDead(165@)
goto_if_false @DRUGS1_32040
if 
  not Char.IsDead(48@)
goto_if_false @DRUGS1_31945
goto @DRUGS1_32040

:DRUGS1_31945
if 
  not Char.IsDead(49@)
goto_if_false @DRUGS1_32028
if 
  Char.IsInCar(49@, 165@)
goto_if_false @DRUGS1_32021
205@ = Car.GetDriver(165@)
if 
  205@ == -1
goto_if_false @DRUGS1_32021
Task.ShuffleToNextCarSeat(49@, 165@)
265@ = 2

:DRUGS1_32021
goto @DRUGS1_32040

:DRUGS1_32028
Car.StopPlayback(165@)
265@ = 2

:DRUGS1_32040
if 
  265@ == 2
goto_if_false @DRUGS1_32086
if 
  Char.IsDead(49@)
goto_if_false @DRUGS1_32086
Car.StopPlayback(165@)
265@ = 3

:DRUGS1_32086
if 
  255@ == 1
goto_if_false @DRUGS1_32173
if 
  Char.IsDead(48@)
goto_if_false @DRUGS1_32173
if or
  Char.IsDead(49@)
  Car.IsDead(165@)
goto_if_false @DRUGS1_32173
Car.StopPlayback(165@)
Blip.Remove(210@)
Car.MarkAsNoLongerNeeded(165@)
Char.MarkAsNoLongerNeeded(48@)
Char.MarkAsNoLongerNeeded(49@)
255@ = 2

:DRUGS1_32173
if 
  266@ == 1
goto_if_false @DRUGS1_32325
if 
  not Car.IsDead(166@)
goto_if_false @DRUGS1_32325
if 
  not Char.IsDead(50@)
goto_if_false @DRUGS1_32230
goto @DRUGS1_32325

:DRUGS1_32230
if 
  not Char.IsDead(51@)
goto_if_false @DRUGS1_32313
if 
  Char.IsInCar(51@, 166@)
goto_if_false @DRUGS1_32306
205@ = Car.GetDriver(166@)
if 
  205@ == -1
goto_if_false @DRUGS1_32306
Task.ShuffleToNextCarSeat(51@, 166@)
266@ = 2

:DRUGS1_32306
goto @DRUGS1_32325

:DRUGS1_32313
Car.StopPlayback(166@)
266@ = 2

:DRUGS1_32325
if 
  266@ == 2
goto_if_false @DRUGS1_32371
if 
  Char.IsDead(51@)
goto_if_false @DRUGS1_32371
Car.StopPlayback(166@)
266@ = 3

:DRUGS1_32371
if 
  256@ == 1
goto_if_false @DRUGS1_32458
if 
  Char.IsDead(50@)
goto_if_false @DRUGS1_32458
if or
  Char.IsDead(51@)
  Car.IsDead(166@)
goto_if_false @DRUGS1_32458
Car.StopPlayback(166@)
Car.MarkAsNoLongerNeeded(166@)
Char.MarkAsNoLongerNeeded(50@)
Char.MarkAsNoLongerNeeded(51@)
Blip.Remove(211@)
256@ = 2

:DRUGS1_32458
if 
  243@ == 2
goto_if_false @DRUGS1_42159
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_42159
if 
  272@ == 0
goto_if_false @DRUGS1_34432
Camera.DoFade(0, Fade.Out)
Car.StopPlayback(189@)
Car.Delete(189@)
Char.Delete(42@)
Char.Delete(43@)
Car.StopPlayback(194@)
Car.Delete(194@)
Char.Delete(44@)
Char.Delete(45@)
Car.StopPlayback(165@)
Car.Delete(165@)
Char.Delete(48@)
Char.Delete(49@)
Car.Delete(208@)
Car.Delete(207@)
Car.StopPlayback(188@)
Car.Delete(188@)
Char.Delete(197@)
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_32622
Car.StopPlayback(161@)

:DRUGS1_32622
Streaming.RequestCarRecording(269)
Streaming.RequestCarRecording(270)
Streaming.RequestCarRecording(271)
Streaming.RequestCarRecording(272)
Streaming.RequestCarRecording(273)
Streaming.RequestCarRecording(274)
Streaming.RequestCarRecording(275)
Streaming.RequestCarRecording(276)
Streaming.RequestCarRecording(277)
Streaming.RequestCarRecording(278)
Streaming.RequestCarRecording(279)
Streaming.RequestCarRecording(280)
Streaming.RequestCarRecording(281)
Streaming.LoadAllModelsNow

:DRUGS1_32689
if or
  not Streaming.HasCarRecordingBeenLoaded(273)
  not Streaming.HasCarRecordingBeenLoaded(274)
  not Streaming.HasCarRecordingBeenLoaded(275)
  not Streaming.HasCarRecordingBeenLoaded(276)
  not Streaming.HasCarRecordingBeenLoaded(277)
goto_if_false @DRUGS1_32736
wait 0
goto @DRUGS1_32689

:DRUGS1_32736
if or
  not Streaming.HasCarRecordingBeenLoaded(278)
  not Streaming.HasCarRecordingBeenLoaded(279)
  not Streaming.HasCarRecordingBeenLoaded(280)
  not Streaming.HasCarRecordingBeenLoaded(281)
goto_if_false @DRUGS1_32778
wait 0
goto @DRUGS1_32736

:DRUGS1_32778
if or
  not Streaming.HasCarRecordingBeenLoaded(269)
  not Streaming.HasCarRecordingBeenLoaded(270)
  not Streaming.HasCarRecordingBeenLoaded(271)
  not Streaming.HasCarRecordingBeenLoaded(272)
goto_if_false @DRUGS1_32820
wait 0
goto @DRUGS1_32778

:DRUGS1_32820
188@ = Car.Create(443, 1601.915, -1755.917, 4.6)
Car.SetPetrolTankWeakpoint(188@, False)
Car.SetHeading(188@, 256.415)
197@ = Char.CreateInsideCar(188@, PedType.Mission1, 111)
Char.SetCanBeShotInVehicle(197@, False)
Car.SetProofs(188@, True, True, True, True, True)
Char.SetProofs(197@, True, True, True, True, True)
Char.SetDecisionMaker(197@, 35@)
Char.SetOnlyDamagedByPlayer(197@, True)
209@ = Blip.AddForCar(188@)
Blip.ChangeDisplay(209@, BlipDisplay.BlipOnly)
Blip.ChangeScale(209@, 2)
208@ = Car.Create(560, 1550.873, -1737.122, -14.1055)
Car.SetPetrolTankWeakpoint(208@, False)
Car.SetHeading(208@, 256.415)
Car.SetProofs(208@, True, True, True, True, True)
Car.AttachToCar(208@, 188@, 0.0, -4.6, 0.65, 15.0, 0.0, 0.0)
273@ = 1
207@ = Car.Create(560, 1550.873, -1737.122, 14.1055)
Car.SetPetrolTankWeakpoint(207@, False)
Car.SetHeading(207@, 256.415)
Car.SetProofs(207@, True, True, True, True, True)
Car.AttachToCar(207@, 188@, 0.0, 1.15, 2.4, 15.0, 0.0, 0.0)
274@ = 1
189@ = Car.Create(581, 1505.103, -1733.09, 3.05)
Car.SetPetrolTankWeakpoint(189@, False)
Car.SetHeading(189@, 258.539)
Car.SetProofs(189@, False, True, True, True, False)
42@ = Char.CreateInsideCar(189@, PedType.Mission1, 111)
Char.SetHealth(42@, 10)
Char.SetOnlyDamagedByPlayer(42@, 10)
Char.SetDecisionMaker(42@, 35@)
Char.SetOnlyDamagedByPlayer(42@, True)
43@ = Char.CreateAsPassenger(189@, PedType.Mission1, 111, 0)
Char.GiveWeapon(43@, WeaponType.MicroUzi, 99999)
Char.SetHealth(43@, 10)
Char.SetOnlyDamagedByPlayer(43@, 10)
Char.SetDecisionMaker(43@, 35@)
Char.SetOnlyDamagedByPlayer(43@, True)
247@ = 1
260@ = 1
214@ = Blip.AddForCar(189@)
Blip.ChangeDisplay(214@, BlipDisplay.BlipOnly)
Blip.ChangeScale(214@, 2)
194@ = Car.Create(581, 1487.213, -1734.792, 3.25)
Car.SetPetrolTankWeakpoint(194@, False)
Car.SetHeading(194@, 258.716)
Car.SetProofs(194@, False, True, True, True, False)
44@ = Char.CreateInsideCar(194@, PedType.Mission1, 111)
Char.SetDecisionMaker(44@, 35@)
Char.SetOnlyDamagedByPlayer(44@, True)
Char.SetHealth(44@, 20)
45@ = Char.CreateAsPassenger(194@, PedType.Mission1, 111, 0)
Char.GiveWeapon(45@, WeaponType.MicroUzi, 99999)
Char.SetDecisionMaker(45@, 35@)
Char.SetOnlyDamagedByPlayer(45@, True)
Char.SetHealth(45@, 30)
248@ = 1
261@ = 1
215@ = Blip.AddForCar(194@)
Blip.ChangeDisplay(215@, BlipDisplay.BlipOnly)
Blip.ChangeScale(215@, 2)
165@ = Car.Create(560, 1496.864, -1731.303, 6.3)
Car.SetPetrolTankWeakpoint(165@, False)
Car.SetHeading(165@, 257.724)
46@ = Char.CreateInsideCar(165@, PedType.Mission1, 111)
Char.SetDecisionMaker(46@, 35@)
Char.SetCanBeShotInVehicle(46@, False)
Char.SetOnlyDamagedByPlayer(46@, True)
47@ = Char.CreateAsPassenger(165@, PedType.Mission1, 111, 0)
Char.GiveWeapon(47@, WeaponType.MicroUzi, 99999)
Char.SetOnlyDamagedByPlayer(47@, True)
Char.SetDecisionMaker(47@, 35@)
Char.SetHealth(47@, 10)
265@ = 1
255@ = 1
210@ = Blip.AddForCar(165@)
Blip.ChangeDisplay(210@, BlipDisplay.BlipOnly)
Blip.ChangeScale(210@, 2)
Car.SetHealth(165@, 1000)
wait 0
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS1_33700
Car.StartPlayback(188@, 269)

:DRUGS1_33700
if 
  not Car.IsDead(208@)
goto_if_false @DRUGS1_33724
Car.StartPlayback(208@, 270)

:DRUGS1_33724
if 
  not Car.IsDead(207@)
goto_if_false @DRUGS1_33748
Car.StartPlayback(207@, 271)

:DRUGS1_33748
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_33772
Car.StartPlayback(161@, 272)

:DRUGS1_33772
if 
  not Car.IsDead(208@)
goto_if_false @DRUGS1_33810
Car.Detach(208@, 20.0, 180.0, 0.0, False)

:DRUGS1_33810
if 
  not Car.IsDead(207@)
goto_if_false @DRUGS1_33848
Car.Detach(207@, 20.0, 180.0, 0.0, False)

:DRUGS1_33848
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS1_33872
Car.StartPlayback(189@, 273)

:DRUGS1_33872
if 
  not Car.IsDead(194@)
goto_if_false @DRUGS1_33896
Car.StartPlayback(194@, 274)

:DRUGS1_33896
if 
  not Car.IsDead(165@)
goto_if_false @DRUGS1_33920
Car.StartPlayback(165@, 275)

:DRUGS1_33920
Task.DriveBy($scplayer, -1, -1, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 100)
Player.SetHeadingForAttached($player1, 346.2, 359.0)
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_34014
Car.SetProofs(161@, False, True, True, True, True)

:DRUGS1_34014
Camera.DoFade(250, Fade.In)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
285@ = 0
282@ = 0
283@ = 0
Char.SetProofs($scplayer, True, True, True, True, True)
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_34096
Char.SetProofs($big_smoke, True, True, True, True, True)

:DRUGS1_34096
TIMERB = 0
if 
  not Char.IsDead(43@)
goto_if_false @DRUGS1_34155
Task.DriveBy(43@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 90)

:DRUGS1_34155
if 
  not Char.IsDead(42@)
goto_if_false @DRUGS1_34238
if 
  3 > 288@
goto_if_false @DRUGS1_34238
Char.GiveWeapon(42@, WeaponType.MicroUzi, 99999)
Task.DriveBy(42@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 289@)

:DRUGS1_34238
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS1_34321
if 
  2 > 288@
goto_if_false @DRUGS1_34321
Char.GiveWeapon(44@, WeaponType.MicroUzi, 99999)
Task.DriveBy(44@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 289@)

:DRUGS1_34321
if 
  not Char.IsDead(45@)
goto_if_false @DRUGS1_34373
Task.DriveBy(45@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 90)

:DRUGS1_34373
if 
  not Char.IsDead(47@)
goto_if_false @DRUGS1_34425
Task.DriveBy(47@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 90)

:DRUGS1_34425
272@ = 1

:DRUGS1_34432
if 
  272@ == 1
goto_if_false @DRUGS1_34977
if 
  Car.Locate2D(161@, 1905.28, -1831.57, 12.0, 12.0, False)
goto_if_false @DRUGS1_34977
166@ = Car.Create(560, 2002.102, -1890.368, 8.108)
Car.SetPetrolTankWeakpoint(166@, False)
Car.SetHeading(166@, 44.1)
Car.StartPlayback(166@, 276)
48@ = Char.CreateInsideCar(166@, PedType.Mission1, 111)
Char.SetDecisionMaker(48@, 35@)
Char.SetCanBeShotInVehicle(48@, False)
Char.SetOnlyDamagedByPlayer(48@, True)
49@ = Char.CreateAsPassenger(166@, PedType.Mission1, 111, 0)
Char.GiveWeapon(49@, WeaponType.MicroUzi, 99999)
Char.SetOnlyDamagedByPlayer(49@, True)
Char.SetDecisionMaker(49@, 35@)
Char.SetHealth(49@, 10)
266@ = 1
256@ = 1
211@ = Blip.AddForCar(166@)
Blip.ChangeDisplay(211@, BlipDisplay.BlipOnly)
Blip.ChangeScale(211@, 2)
Car.SetHealth(166@, 1100)
Car.SetProofs(166@, False, True, False, False, False)
167@ = Car.Create(560, 2008.843, -1897.323, 8.1)
Car.SetPetrolTankWeakpoint(167@, False)
Car.SetHeading(167@, 44.1)
Car.StartPlayback(167@, 277)
Car.SetProofs(167@, False, True, True, True, False)
Car.SetOnlyDamagedByPlayer(167@, True)
50@ = Char.CreateInsideCar(167@, PedType.Mission1, 111)
Char.SetDecisionMaker(50@, 35@)
Char.SetOnlyDamagedByPlayer(50@, True)
51@ = Char.CreateAsPassenger(167@, PedType.Mission1, 111, 0)
Char.GiveWeapon(51@, WeaponType.MicroUzi, 99999)
Char.SetOnlyDamagedByPlayer(51@, True)
Char.SetDecisionMaker(51@, 35@)
Char.SetHealth(51@, 10)
267@ = 1
257@ = 1
212@ = Blip.AddForCar(167@)
Blip.ChangeDisplay(212@, BlipDisplay.BlipOnly)
Blip.ChangeScale(212@, 2)
Car.SetHealth(167@, 700)
if 
  not Char.IsDead(49@)
goto_if_false @DRUGS1_34918
Task.DriveBy(49@, -1, 161@, 0.0, 0.0, 0.0, 250.0, DriveByType.Ai, True, 10)

:DRUGS1_34918
if 
  not Char.IsDead(51@)
goto_if_false @DRUGS1_34970
Task.DriveBy(51@, -1, 161@, 0.0, 0.0, 0.0, 250.0, DriveByType.Ai, True, 10)

:DRUGS1_34970
272@ = 2

:DRUGS1_34977
if 
  272@ == 2
goto_if_false @DRUGS1_35686
if 
  Car.Locate2D(161@, 2101.55, -1850.81, 12.0, 12.0, False)
goto_if_false @DRUGS1_35686
196@ = Car.Create(581, 2093.446, -1836.207, 12.72)
Car.SetPetrolTankWeakpoint(196@, False)
Car.SetHeading(196@, 267.18)
Car.SetProofs(196@, False, True, True, True, False)
52@ = Char.CreateInsideCar(196@, PedType.Mission1, 111)
Char.SetHealth(52@, 50)
Char.SetDecisionMaker(52@, 35@)
Char.SetOnlyDamagedByPlayer(52@, True)
53@ = Char.CreateAsPassenger(196@, PedType.Mission1, 111, 0)
Char.GiveWeapon(53@, WeaponType.MicroUzi, 99999)
Char.SetDecisionMaker(53@, 35@)
Char.SetOnlyDamagedByPlayer(53@, True)
Char.SetHealth(53@, 10)
250@ = 1
263@ = 1
217@ = Blip.AddForCar(196@)
Blip.ChangeDisplay(217@, BlipDisplay.BlipOnly)
Blip.ChangeScale(217@, 2)
Car.StartPlayback(196@, 279)
195@ = Car.Create(581, 2018.735, -1900.925, 8.108)
Car.SetPetrolTankWeakpoint(195@, False)
Car.SetHeading(195@, 258.716)
Car.SetProofs(195@, False, True, True, True, False)
54@ = Char.CreateInsideCar(195@, PedType.Mission1, 111)
Char.SetDecisionMaker(54@, 35@)
Char.SetOnlyDamagedByPlayer(54@, True)
55@ = Char.CreateAsPassenger(195@, PedType.Mission1, 111, 0)
Char.GiveWeapon(55@, WeaponType.MicroUzi, 99999)
Char.SetDecisionMaker(55@, 35@)
Char.SetOnlyDamagedByPlayer(55@, True)
Char.SetHealth(54@, 10)
Char.SetOnlyDamagedByPlayer(54@, 10)
Char.SetHealth(55@, 30)
Char.SetOnlyDamagedByPlayer(55@, 10)
249@ = 1
262@ = 1
216@ = Blip.AddForCar(195@)
Blip.ChangeDisplay(216@, BlipDisplay.BlipOnly)
Blip.ChangeScale(216@, 2)
Car.StartPlayback(195@, 278)
if 
  not Char.IsDead(52@)
goto_if_false @DRUGS1_35492
if 
  4 > 288@
goto_if_false @DRUGS1_35492
Char.GiveWeapon(52@, WeaponType.MicroUzi, 99999)
Task.DriveBy(52@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 289@)

:DRUGS1_35492
if 
  not Char.IsDead(54@)
goto_if_false @DRUGS1_35575
if 
  4 > 288@
goto_if_false @DRUGS1_35575
Char.GiveWeapon(54@, WeaponType.MicroUzi, 99999)
Task.DriveBy(54@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 289@)

:DRUGS1_35575
if 
  not Char.IsDead(53@)
goto_if_false @DRUGS1_35627
Task.DriveBy(53@, -1, 161@, 0.0, 0.0, 0.0, 250.0, DriveByType.Ai, True, 100)

:DRUGS1_35627
if 
  not Char.IsDead(55@)
goto_if_false @DRUGS1_35679
Task.DriveBy(55@, -1, 161@, 0.0, 0.0, 0.0, 250.0, DriveByType.Ai, True, 100)

:DRUGS1_35679
272@ = 3

:DRUGS1_35686
if 
  272@ == 3
goto_if_false @DRUGS1_36117
if 
  Car.Locate2D(161@, 2425.93, -1874.76, 10.0, 10.0, False)
goto_if_false @DRUGS1_36117
Car.Delete(208@)
Car.Delete(207@)
Car.Delete(189@)
Car.Delete(194@)
Char.Delete(42@)
Char.Delete(43@)
Char.Delete(44@)
Char.Delete(45@)
Car.Delete(165@)
Car.Delete(166@)
Char.Delete(46@)
Char.Delete(47@)
Char.Delete(48@)
Char.Delete(49@)
206@ = Car.Create(581, 2417.1, -1876.578, 12.92)
Car.SetPetrolTankWeakpoint(206@, False)
Car.SetHeading(206@, 271.4)
Car.StartPlayback(206@, 280)
Car.SetProofs(206@, False, True, True, True, False)
56@ = Char.CreateInsideCar(206@, PedType.Mission1, 111)
Char.SetDecisionMaker(56@, 35@)
Char.SetOnlyDamagedByPlayer(56@, True)
57@ = Char.CreateAsPassenger(206@, PedType.Mission1, 111, 0)
Char.GiveWeapon(57@, WeaponType.MicroUzi, 99999)
Char.SetDecisionMaker(57@, 35@)
Char.SetOnlyDamagedByPlayer(57@, True)
Char.SetHealth(56@, 10)
Char.SetHealth(57@, 10)
251@ = 1
264@ = 1
218@ = Blip.AddForCar(206@)
Blip.ChangeDisplay(218@, BlipDisplay.BlipOnly)
Blip.ChangeScale(218@, 2)
if 
  not Char.IsDead(57@)
goto_if_false @DRUGS1_36045
Task.DriveBy(57@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 90)

:DRUGS1_36045
if 
  not Char.IsDead(56@)
goto_if_false @DRUGS1_36110
Char.GiveWeapon(56@, WeaponType.MicroUzi, 99999)
Task.DriveBy(56@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 289@)

:DRUGS1_36110
272@ = 4

:DRUGS1_36117
if 
  272@ == 4
goto_if_false @DRUGS1_36400
if 
  Car.Locate2D(161@, 2499.36, -1871.699, 10.0, 10.0, False)
goto_if_false @DRUGS1_36400
168@ = Car.Create(560, 2529.256, -1892.9, 13.24)
Car.SetPetrolTankWeakpoint(168@, False)
Car.SetHeading(168@, 269.177)
Car.StartPlayback(168@, 281)
Car.SetHealth(168@, 600)
58@ = Char.CreateInsideCar(168@, PedType.Mission1, 111)
Char.SetDecisionMaker(58@, 35@)
Char.SetOnlyDamagedByPlayer(58@, True)
59@ = Char.CreateAsPassenger(168@, PedType.Mission1, 111, 0)
Char.GiveWeapon(59@, WeaponType.MicroUzi, 99999)
Char.SetOnlyDamagedByPlayer(59@, True)
Char.SetDecisionMaker(59@, 35@)
268@ = 1
258@ = 1
213@ = Blip.AddForCar(168@)
Blip.ChangeDisplay(213@, BlipDisplay.BlipOnly)
Blip.ChangeScale(213@, 2)
Car.SetHealth(168@, 800)
if 
  not Char.IsDead(59@)
goto_if_false @DRUGS1_36393
Task.DriveBy(59@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 90)

:DRUGS1_36393
272@ = 5

:DRUGS1_36400
if 
  272@ == 5
goto_if_false @DRUGS1_36464
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS1_36464
if 
  not is_recording_going_on_for_car 188@
goto_if_false @DRUGS1_36464
Car.FreezePosition(188@, True)
272@ = 6

:DRUGS1_36464
if 
  272@ == 6
goto_if_false @DRUGS1_36532
if 
  279@ == 0
goto_if_false @DRUGS1_36532
if 
  243@ == 2
goto_if_false @DRUGS1_36532
279@ = 1
277@ = 1

:DRUGS1_36532
if 
  273@ == 1
goto_if_false @DRUGS1_36686
if 
  not Car.IsDead(165@)
goto_if_false @DRUGS1_36686
if 
  not Car.IsDead(208@)
goto_if_false @DRUGS1_36686
if 
  TIMERB > 26250
goto_if_false @DRUGS1_36686
if or
  265@ <> 3
  255@ <> 2
goto_if_false @DRUGS1_36686
Car.SetProofs(208@, False, False, False, False, False)
Car.StopPlayback(208@)
Car.SetHealth(208@, 200)
Car.SetRotationVelocity(208@, 1.5, -2.3999, 4.1003)
Car.Explode(208@)
273@ = 2

:DRUGS1_36686
if 
  273@ == 2
goto_if_false @DRUGS1_36751
if 
  not Car.IsDead(165@)
goto_if_false @DRUGS1_36751
if 
  TIMERB > 26900
goto_if_false @DRUGS1_36751
Car.Explode(165@)
273@ = 3

:DRUGS1_36751
if 
  274@ == 1
goto_if_false @DRUGS1_36852
if 
  not Car.IsDead(166@)
goto_if_false @DRUGS1_36852
if 
  not Car.IsDead(207@)
goto_if_false @DRUGS1_36852
if 
  TIMERB > 35647
goto_if_false @DRUGS1_36852
Car.SetProofs(207@, False, False, False, False, False)
Car.SetHealth(207@, 500)
274@ = 2

:DRUGS1_36852
if 
  274@ == 2
goto_if_false @DRUGS1_36919
if 
  TIMERB > 35800
goto_if_false @DRUGS1_36919
if 
  not Car.IsDead(207@)
goto_if_false @DRUGS1_36919
Car.Explode(207@)
274@ = 3

:DRUGS1_36919
if 
  274@ == 3
goto_if_false @DRUGS1_36986
if 
  TIMERB > 36500
goto_if_false @DRUGS1_36986
if 
  not Car.IsDead(166@)
goto_if_false @DRUGS1_36986
Car.Explode(166@)
274@ = 4

:DRUGS1_36986
if 
  247@ == 1
goto_if_false @DRUGS1_37234
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS1_37234
if 
  not Char.IsDead(42@)
goto_if_false @DRUGS1_37043
goto @DRUGS1_37234

:DRUGS1_37043
if 
  not Char.IsDead(43@)
goto_if_false @DRUGS1_37192
if 
  Char.IsInCar(43@, 189@)
goto_if_false @DRUGS1_37185
205@ = Car.GetDriver(189@)
if 
  205@ == -1
goto_if_false @DRUGS1_37185
$player_x, $player_y, $player_z = Car.GetCoordinates(161@)
Char.WarpFromCarToCoord(43@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(43@, 189@)
Task.DriveBy(43@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)
247@ = 2

:DRUGS1_37185
goto @DRUGS1_37234

:DRUGS1_37192
Car.SetForwardSpeed(189@, 18.0)
Car.StopPlayback(189@)
Car.SetRotationVelocity(189@, 3.5, 7.3999, 8.1003)
247@ = 2

:DRUGS1_37234
if 
  247@ == 2
goto_if_false @DRUGS1_37326
if 
  Char.IsDead(43@)
goto_if_false @DRUGS1_37326
Car.StopPlayback(189@)
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS1_37319
Car.SetForwardSpeed(189@, 18.0)
Car.SetRotationVelocity(189@, 3.5, 7.3999, 8.1003)

:DRUGS1_37319
247@ = 3

:DRUGS1_37326
if 
  260@ == 1
goto_if_false @DRUGS1_37413
if 
  Char.IsDead(42@)
goto_if_false @DRUGS1_37413
if or
  Char.IsDead(43@)
  Car.IsDead(189@)
goto_if_false @DRUGS1_37413
Car.StopPlayback(189@)
Blip.Remove(214@)
Car.MarkAsNoLongerNeeded(189@)
Char.MarkAsNoLongerNeeded(42@)
Char.MarkAsNoLongerNeeded(43@)
260@ = 2

:DRUGS1_37413
if 
  248@ == 1
goto_if_false @DRUGS1_37661
if 
  not Car.IsDead(194@)
goto_if_false @DRUGS1_37661
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS1_37470
goto @DRUGS1_37661

:DRUGS1_37470
if 
  not Char.IsDead(45@)
goto_if_false @DRUGS1_37619
if 
  Char.IsInCar(45@, 194@)
goto_if_false @DRUGS1_37612
205@ = Car.GetDriver(194@)
if 
  205@ == -1
goto_if_false @DRUGS1_37612
$player_x, $player_y, $player_z = Car.GetCoordinates(161@)
Char.WarpFromCarToCoord(45@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(45@, 194@)
Task.DriveBy(45@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)
248@ = 2

:DRUGS1_37612
goto @DRUGS1_37661

:DRUGS1_37619
Car.SetForwardSpeed(194@, 18.0)
Car.StopPlayback(194@)
Car.SetRotationVelocity(194@, 3.5, 7.3999, 8.1003)
248@ = 2

:DRUGS1_37661
if 
  248@ == 2
goto_if_false @DRUGS1_37753
if 
  Char.IsDead(45@)
goto_if_false @DRUGS1_37753
Car.StopPlayback(194@)
if 
  not Car.IsDead(194@)
goto_if_false @DRUGS1_37746
Car.SetForwardSpeed(194@, 18.0)
Car.SetRotationVelocity(194@, 3.5, 7.3999, 8.1003)

:DRUGS1_37746
248@ = 3

:DRUGS1_37753
if 
  261@ == 1
goto_if_false @DRUGS1_37840
if 
  Char.IsDead(44@)
goto_if_false @DRUGS1_37840
if or
  Char.IsDead(45@)
  Car.IsDead(194@)
goto_if_false @DRUGS1_37840
Car.StopPlayback(194@)
Blip.Remove(215@)
Car.MarkAsNoLongerNeeded(194@)
Char.MarkAsNoLongerNeeded(44@)
Char.MarkAsNoLongerNeeded(45@)
261@ = 2

:DRUGS1_37840
if 
  265@ == 1
goto_if_false @DRUGS1_37992
if 
  not Car.IsDead(165@)
goto_if_false @DRUGS1_37992
if 
  not Char.IsDead(46@)
goto_if_false @DRUGS1_37897
goto @DRUGS1_37992

:DRUGS1_37897
if 
  not Char.IsDead(47@)
goto_if_false @DRUGS1_37980
if 
  Char.IsInCar(47@, 165@)
goto_if_false @DRUGS1_37973
205@ = Car.GetDriver(165@)
if 
  205@ == -1
goto_if_false @DRUGS1_37973
Task.ShuffleToNextCarSeat(47@, 165@)
265@ = 2

:DRUGS1_37973
goto @DRUGS1_37992

:DRUGS1_37980
Car.StopPlayback(165@)
265@ = 2

:DRUGS1_37992
if 
  265@ == 2
goto_if_false @DRUGS1_38059
if 
  Char.IsDead(47@)
goto_if_false @DRUGS1_38059
Car.StopPlayback(165@)
if 
  not Car.IsDead(165@)
goto_if_false @DRUGS1_38052
Car.SetIdle(165@)

:DRUGS1_38052
265@ = 3

:DRUGS1_38059
if 
  255@ == 1
goto_if_false @DRUGS1_38167
if 
  Char.IsDead(46@)
goto_if_false @DRUGS1_38167
if or
  Char.IsDead(47@)
  Car.IsDead(165@)
goto_if_false @DRUGS1_38167
Car.StopPlayback(165@)
if 
  not Car.IsDead(165@)
goto_if_false @DRUGS1_38140
Car.SetIdle(165@)

:DRUGS1_38140
Blip.Remove(210@)
Car.MarkAsNoLongerNeeded(165@)
Char.MarkAsNoLongerNeeded(46@)
Char.MarkAsNoLongerNeeded(47@)
255@ = 2

:DRUGS1_38167
if 
  266@ == 1
goto_if_false @DRUGS1_38319
if 
  not Car.IsDead(166@)
goto_if_false @DRUGS1_38319
if 
  not Char.IsDead(48@)
goto_if_false @DRUGS1_38224
goto @DRUGS1_38319

:DRUGS1_38224
if 
  not Char.IsDead(49@)
goto_if_false @DRUGS1_38307
if 
  Char.IsInCar(49@, 166@)
goto_if_false @DRUGS1_38300
205@ = Car.GetDriver(166@)
if 
  205@ == -1
goto_if_false @DRUGS1_38300
Task.ShuffleToNextCarSeat(49@, 166@)
266@ = 2

:DRUGS1_38300
goto @DRUGS1_38319

:DRUGS1_38307
Car.StopPlayback(166@)
266@ = 2

:DRUGS1_38319
if 
  266@ == 2
goto_if_false @DRUGS1_38386
if 
  Char.IsDead(49@)
goto_if_false @DRUGS1_38386
Car.StopPlayback(166@)
if 
  not Car.IsDead(166@)
goto_if_false @DRUGS1_38379
Car.SetIdle(166@)

:DRUGS1_38379
266@ = 3

:DRUGS1_38386
if 
  256@ == 1
goto_if_false @DRUGS1_38494
if 
  Char.IsDead(48@)
goto_if_false @DRUGS1_38494
if or
  Char.IsDead(49@)
  Car.IsDead(166@)
goto_if_false @DRUGS1_38494
Car.StopPlayback(166@)
if 
  not Car.IsDead(166@)
goto_if_false @DRUGS1_38467
Car.SetIdle(166@)

:DRUGS1_38467
Blip.Remove(211@)
Car.MarkAsNoLongerNeeded(166@)
Char.MarkAsNoLongerNeeded(48@)
Char.MarkAsNoLongerNeeded(49@)
256@ = 2

:DRUGS1_38494
if 
  267@ == 1
goto_if_false @DRUGS1_38646
if 
  not Car.IsDead(167@)
goto_if_false @DRUGS1_38646
if 
  not Char.IsDead(50@)
goto_if_false @DRUGS1_38551
goto @DRUGS1_38646

:DRUGS1_38551
if 
  not Char.IsDead(51@)
goto_if_false @DRUGS1_38634
if 
  Char.IsInCar(51@, 167@)
goto_if_false @DRUGS1_38627
205@ = Car.GetDriver(167@)
if 
  205@ == -1
goto_if_false @DRUGS1_38627
Task.ShuffleToNextCarSeat(51@, 167@)
267@ = 2

:DRUGS1_38627
goto @DRUGS1_38646

:DRUGS1_38634
Car.StopPlayback(167@)
267@ = 2

:DRUGS1_38646
if 
  267@ == 2
goto_if_false @DRUGS1_38713
if 
  Char.IsDead(51@)
goto_if_false @DRUGS1_38713
Car.StopPlayback(167@)
if 
  not Car.IsDead(167@)
goto_if_false @DRUGS1_38706
Car.SetIdle(167@)

:DRUGS1_38706
267@ = 3

:DRUGS1_38713
if 
  257@ == 1
goto_if_false @DRUGS1_38821
if 
  Char.IsDead(50@)
goto_if_false @DRUGS1_38821
if or
  Char.IsDead(51@)
  Car.IsDead(167@)
goto_if_false @DRUGS1_38821
Car.StopPlayback(167@)
Blip.Remove(212@)
if 
  not Car.IsDead(167@)
goto_if_false @DRUGS1_38799
Car.SetIdle(167@)

:DRUGS1_38799
Car.MarkAsNoLongerNeeded(167@)
Char.MarkAsNoLongerNeeded(50@)
Char.MarkAsNoLongerNeeded(51@)
257@ = 2

:DRUGS1_38821
if 
  250@ == 1
goto_if_false @DRUGS1_39069
if 
  not Car.IsDead(196@)
goto_if_false @DRUGS1_39069
if 
  not Char.IsDead(52@)
goto_if_false @DRUGS1_38878
goto @DRUGS1_39069

:DRUGS1_38878
if 
  not Char.IsDead(53@)
goto_if_false @DRUGS1_39027
if 
  Char.IsInCar(53@, 196@)
goto_if_false @DRUGS1_39020
205@ = Car.GetDriver(196@)
if 
  205@ == -1
goto_if_false @DRUGS1_39020
$player_x, $player_y, $player_z = Car.GetCoordinates(161@)
Char.WarpFromCarToCoord(53@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(53@, 196@)
Task.DriveBy(53@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)
250@ = 2

:DRUGS1_39020
goto @DRUGS1_39069

:DRUGS1_39027
Car.SetForwardSpeed(196@, 18.0)
Car.StopPlayback(196@)
Car.SetRotationVelocity(196@, 3.5, 7.3999, 8.1003)
250@ = 2

:DRUGS1_39069
if 
  250@ == 2
goto_if_false @DRUGS1_39161
if 
  Char.IsDead(53@)
goto_if_false @DRUGS1_39161
Car.StopPlayback(196@)
if 
  not Car.IsDead(196@)
goto_if_false @DRUGS1_39154
Car.SetForwardSpeed(196@, 18.0)
Car.SetRotationVelocity(196@, 3.5, 7.3999, 8.1003)

:DRUGS1_39154
250@ = 3

:DRUGS1_39161
if 
  263@ == 1
goto_if_false @DRUGS1_39248
if 
  Char.IsDead(52@)
goto_if_false @DRUGS1_39248
if or
  Char.IsDead(53@)
  Car.IsDead(196@)
goto_if_false @DRUGS1_39248
Car.StopPlayback(196@)
Blip.Remove(217@)
Car.MarkAsNoLongerNeeded(196@)
Char.MarkAsNoLongerNeeded(52@)
Char.MarkAsNoLongerNeeded(53@)
263@ = 2

:DRUGS1_39248
if 
  249@ == 1
goto_if_false @DRUGS1_39496
if 
  not Car.IsDead(195@)
goto_if_false @DRUGS1_39496
if 
  not Char.IsDead(54@)
goto_if_false @DRUGS1_39305
goto @DRUGS1_39496

:DRUGS1_39305
if 
  not Char.IsDead(55@)
goto_if_false @DRUGS1_39454
if 
  Char.IsInCar(55@, 195@)
goto_if_false @DRUGS1_39447
205@ = Car.GetDriver(195@)
if 
  205@ == -1
goto_if_false @DRUGS1_39447
$player_x, $player_y, $player_z = Car.GetCoordinates(161@)
Char.WarpFromCarToCoord(55@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(55@, 195@)
Task.DriveBy(55@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)
249@ = 2

:DRUGS1_39447
goto @DRUGS1_39496

:DRUGS1_39454
Car.SetForwardSpeed(195@, 18.0)
Car.StopPlayback(195@)
Car.SetRotationVelocity(195@, 3.5, 7.3999, 8.1003)
249@ = 2

:DRUGS1_39496
if 
  249@ == 2
goto_if_false @DRUGS1_39588
if 
  Char.IsDead(55@)
goto_if_false @DRUGS1_39588
Car.StopPlayback(195@)
if 
  not Car.IsDead(195@)
goto_if_false @DRUGS1_39581
Car.SetForwardSpeed(195@, 18.0)
Car.SetRotationVelocity(195@, 3.5, 7.3999, 8.1003)

:DRUGS1_39581
249@ = 3

:DRUGS1_39588
if 
  262@ == 1
goto_if_false @DRUGS1_39675
if 
  Char.IsDead(54@)
goto_if_false @DRUGS1_39675
if or
  Char.IsDead(55@)
  Car.IsDead(195@)
goto_if_false @DRUGS1_39675
Car.StopPlayback(195@)
Blip.Remove(216@)
Car.MarkAsNoLongerNeeded(195@)
Char.MarkAsNoLongerNeeded(54@)
Char.MarkAsNoLongerNeeded(55@)
262@ = 2

:DRUGS1_39675
if 
  251@ == 1
goto_if_false @DRUGS1_39923
if 
  not Car.IsDead(206@)
goto_if_false @DRUGS1_39923
if 
  not Char.IsDead(56@)
goto_if_false @DRUGS1_39732
goto @DRUGS1_39923

:DRUGS1_39732
if 
  not Char.IsDead(57@)
goto_if_false @DRUGS1_39881
if 
  Char.IsInCar(57@, 206@)
goto_if_false @DRUGS1_39874
205@ = Car.GetDriver(206@)
if 
  205@ == -1
goto_if_false @DRUGS1_39874
$player_x, $player_y, $player_z = Car.GetCoordinates(161@)
Char.WarpFromCarToCoord(57@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(57@, 206@)
Task.DriveBy(57@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)
251@ = 2

:DRUGS1_39874
goto @DRUGS1_39923

:DRUGS1_39881
Car.SetForwardSpeed(206@, 18.0)
Car.StopPlayback(206@)
Car.SetRotationVelocity(206@, 3.5, 7.3999, 8.1003)
251@ = 2

:DRUGS1_39923
if 
  251@ == 2
goto_if_false @DRUGS1_40015
if 
  Char.IsDead(57@)
goto_if_false @DRUGS1_40015
Car.StopPlayback(206@)
if 
  not Car.IsDead(206@)
goto_if_false @DRUGS1_40008
Car.SetForwardSpeed(206@, 18.0)
Car.SetRotationVelocity(206@, 3.5, 7.3999, 8.1003)

:DRUGS1_40008
251@ = 3

:DRUGS1_40015
if 
  264@ == 1
goto_if_false @DRUGS1_40102
if 
  Char.IsDead(56@)
goto_if_false @DRUGS1_40102
if or
  Char.IsDead(57@)
  Car.IsDead(206@)
goto_if_false @DRUGS1_40102
Car.StopPlayback(206@)
Blip.Remove(218@)
Car.MarkAsNoLongerNeeded(206@)
Char.MarkAsNoLongerNeeded(56@)
Char.MarkAsNoLongerNeeded(57@)
264@ = 2

:DRUGS1_40102
if 
  268@ == 1
goto_if_false @DRUGS1_40254
if 
  not Car.IsDead(168@)
goto_if_false @DRUGS1_40254
if 
  not Char.IsDead(58@)
goto_if_false @DRUGS1_40159
goto @DRUGS1_40254

:DRUGS1_40159
if 
  not Char.IsDead(59@)
goto_if_false @DRUGS1_40242
if 
  Char.IsInCar(59@, 168@)
goto_if_false @DRUGS1_40235
205@ = Car.GetDriver(168@)
if 
  205@ == -1
goto_if_false @DRUGS1_40235
Task.ShuffleToNextCarSeat(59@, 168@)
268@ = 2

:DRUGS1_40235
goto @DRUGS1_40254

:DRUGS1_40242
Car.StopPlayback(168@)
268@ = 2

:DRUGS1_40254
if 
  268@ == 2
goto_if_false @DRUGS1_40321
if 
  Char.IsDead(59@)
goto_if_false @DRUGS1_40321
Car.StopPlayback(168@)
if 
  not Car.IsDead(168@)
goto_if_false @DRUGS1_40314
Car.SetIdle(168@)

:DRUGS1_40314
268@ = 3

:DRUGS1_40321
if 
  258@ == 1
goto_if_false @DRUGS1_40429
if 
  Char.IsDead(58@)
goto_if_false @DRUGS1_40429
if or
  Char.IsDead(59@)
  Car.IsDead(168@)
goto_if_false @DRUGS1_40429
Car.StopPlayback(168@)
if 
  not Car.IsDead(168@)
goto_if_false @DRUGS1_40402
Car.SetIdle(168@)

:DRUGS1_40402
Blip.Remove(213@)
Car.MarkAsNoLongerNeeded(168@)
Char.MarkAsNoLongerNeeded(58@)
Char.MarkAsNoLongerNeeded(59@)
258@ = 2

:DRUGS1_40429
if 
  272@ > 0
goto_if_false @DRUGS1_42159
if 
  282@ == 0
goto_if_false @DRUGS1_40512
if 
  283@ == 0
goto_if_false @DRUGS1_40512
set_lvar_int_to_constant 239@ = 11100
set_lvar_text_label 240@s = 'SMO4_HA'
gosub @DRUGS1_51404

:DRUGS1_40512
if 
  282@ == 1
goto_if_false @DRUGS1_40577
if 
  283@ == 0
goto_if_false @DRUGS1_40577
set_lvar_int_to_constant 239@ = 11059
set_lvar_text_label 240@s = 'SMO4_HB'
gosub @DRUGS1_51404

:DRUGS1_40577
if 
  282@ == 2
goto_if_false @DRUGS1_40642
if 
  283@ == 0
goto_if_false @DRUGS1_40642
set_lvar_int_to_constant 239@ = 11060
set_lvar_text_label 240@s = 'SMO4_HC'
gosub @DRUGS1_51404

:DRUGS1_40642
if 
  282@ == 3
goto_if_false @DRUGS1_40707
if 
  283@ == 0
goto_if_false @DRUGS1_40707
set_lvar_int_to_constant 239@ = 11101
set_lvar_text_label 240@s = 'SMO4_HD'
gosub @DRUGS1_51404

:DRUGS1_40707
if 
  282@ == 4
goto_if_false @DRUGS1_40772
if 
  283@ == 0
goto_if_false @DRUGS1_40772
set_lvar_int_to_constant 239@ = 11061
set_lvar_text_label 240@s = 'SMO4_HE'
gosub @DRUGS1_51404

:DRUGS1_40772
if 
  282@ == 5
goto_if_false @DRUGS1_40837
if 
  283@ == 0
goto_if_false @DRUGS1_40837
set_lvar_int_to_constant 239@ = 11062
set_lvar_text_label 240@s = 'SMO4_HF'
gosub @DRUGS1_51404

:DRUGS1_40837
if 
  282@ == 6
goto_if_false @DRUGS1_40902
if 
  283@ == 0
goto_if_false @DRUGS1_40902
set_lvar_int_to_constant 239@ = 11102
set_lvar_text_label 240@s = 'SMO4_HH'
gosub @DRUGS1_51404

:DRUGS1_40902
if 
  282@ == 7
goto_if_false @DRUGS1_40967
if 
  283@ == 0
goto_if_false @DRUGS1_40967
set_lvar_int_to_constant 239@ = 11063
set_lvar_text_label 240@s = 'SMO4_HJ'
gosub @DRUGS1_51404

:DRUGS1_40967
if 
  282@ == 8
goto_if_false @DRUGS1_41032
if 
  283@ == 0
goto_if_false @DRUGS1_41032
set_lvar_int_to_constant 239@ = 11044
set_lvar_text_label 240@s = 'SMO4_ER'
gosub @DRUGS1_51404

:DRUGS1_41032
if 
  285@ == 0
goto_if_false @DRUGS1_41095
if 
  Car.Locate2D(161@, 2047.59, -1850.32, 12.0, 12.0, False)
goto_if_false @DRUGS1_41095
285@ = 1

:DRUGS1_41095
if 
  282@ == 9
goto_if_false @DRUGS1_41178
if 
  283@ == 0
goto_if_false @DRUGS1_41178
if 
  285@ == 1
goto_if_false @DRUGS1_41178
set_lvar_int_to_constant 239@ = 11066
set_lvar_text_label 240@s = 'SMO4_HN'
gosub @DRUGS1_51404

:DRUGS1_41178
if 
  285@ == 1
goto_if_false @DRUGS1_41241
if 
  Car.Locate2D(161@, 2121.17, -1853.67, 12.0, 12.0, False)
goto_if_false @DRUGS1_41241
285@ = 2

:DRUGS1_41241
if 
  282@ == 10
goto_if_false @DRUGS1_41324
if 
  283@ == 0
goto_if_false @DRUGS1_41324
if 
  285@ == 2
goto_if_false @DRUGS1_41324
set_lvar_int_to_constant 239@ = 11098
set_lvar_text_label 240@s = 'SMO4_GM'
gosub @DRUGS1_51404

:DRUGS1_41324
if 
  282@ == 11
goto_if_false @DRUGS1_41389
if 
  283@ == 0
goto_if_false @DRUGS1_41389
set_lvar_int_to_constant 239@ = 11058
set_lvar_text_label 240@s = 'SMO4_GP'
gosub @DRUGS1_51404

:DRUGS1_41389
if 
  285@ == 2
goto_if_false @DRUGS1_41452
if 
  Car.Locate2D(161@, 2216.75, -1854.73, 12.0, 12.0, False)
goto_if_false @DRUGS1_41452
285@ = 3

:DRUGS1_41452
if 
  282@ == 12
goto_if_false @DRUGS1_41535
if 
  283@ == 0
goto_if_false @DRUGS1_41535
if 
  285@ == 3
goto_if_false @DRUGS1_41535
set_lvar_int_to_constant 239@ = 11067
set_lvar_text_label 240@s = 'SMO4_HP'
gosub @DRUGS1_51404

:DRUGS1_41535
if 
  282@ == 13
goto_if_false @DRUGS1_41600
if 
  283@ == 0
goto_if_false @DRUGS1_41600
set_lvar_int_to_constant 239@ = 11107
set_lvar_text_label 240@s = 'SMO4_HS'
gosub @DRUGS1_51404

:DRUGS1_41600
if 
  282@ == 14
goto_if_false @DRUGS1_41665
if 
  283@ == 0
goto_if_false @DRUGS1_41665
set_lvar_int_to_constant 239@ = 11068
set_lvar_text_label 240@s = 'SMO4_HT'
gosub @DRUGS1_51404

:DRUGS1_41665
if 
  285@ == 3
goto_if_false @DRUGS1_41728
if 
  Car.Locate2D(161@, 2435.94, -1874.57, 12.0, 12.0, False)
goto_if_false @DRUGS1_41728
285@ = 4

:DRUGS1_41728
if 
  282@ == 15
goto_if_false @DRUGS1_41811
if 
  283@ == 0
goto_if_false @DRUGS1_41811
if 
  285@ == 4
goto_if_false @DRUGS1_41811
set_lvar_int_to_constant 239@ = 11097
set_lvar_text_label 240@s = 'SMO4_GL'
gosub @DRUGS1_51404

:DRUGS1_41811
if 
  282@ == 16
goto_if_false @DRUGS1_41876
if 
  283@ == 0
goto_if_false @DRUGS1_41876
set_lvar_int_to_constant 239@ = 11057
set_lvar_text_label 240@s = 'SMO4_GN'
gosub @DRUGS1_51404

:DRUGS1_41876
if 
  285@ == 4
goto_if_false @DRUGS1_41939
if 
  Car.Locate2D(161@, 2539.11, -1865.31, 12.0, 12.0, False)
goto_if_false @DRUGS1_41939
285@ = 5

:DRUGS1_41939
if 
  282@ == 17
goto_if_false @DRUGS1_42022
if 
  283@ == 0
goto_if_false @DRUGS1_42022
if 
  285@ == 4
goto_if_false @DRUGS1_42022
set_lvar_int_to_constant 239@ = 11071
set_lvar_text_label 240@s = 'SMO4_JA'
gosub @DRUGS1_51404

:DRUGS1_42022
if 
  282@ == 18
goto_if_false @DRUGS1_42087
if 
  283@ == 0
goto_if_false @DRUGS1_42087
set_lvar_int_to_constant 239@ = 11108
set_lvar_text_label 240@s = 'SMO4_JB'
gosub @DRUGS1_51404

:DRUGS1_42087
if 
  282@ == 19
goto_if_false @DRUGS1_42152
if 
  283@ == 0
goto_if_false @DRUGS1_42152
set_lvar_int_to_constant 239@ = 11072
set_lvar_text_label 240@s = 'SMO4_JC'
gosub @DRUGS1_51404

:DRUGS1_42152
gosub @DRUGS1_51446

:DRUGS1_42159
if 
  279@ == 1
goto_if_false @DRUGS1_44172
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_44172
if 
  277@ == 1
goto_if_false @DRUGS1_43121
if 
  Car.Locate2D(161@, 2565.98, -1747.12, 12.0, 12.0, False)
goto_if_false @DRUGS1_43121
Camera.DoFade(0, Fade.Out)
Streaming.RequestCarRecording(282)
Streaming.RequestCarRecording(283)
Streaming.RequestCarRecording(284)
Streaming.RequestCarRecording(285)
Streaming.RequestCarRecording(286)
Streaming.RequestModel(#STORM_DRAIN_COVER)
Streaming.RequestModel(#BARREL4)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Car.SetProofs(161@, True, True, True, True, True)
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_42347
Char.SetProofs($big_smoke, True, True, True, True, True)

:DRUGS1_42347
Char.SetProofs($scplayer, True, True, True, True, True)
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS1_42385
Car.OpenDoor(188@, CarDoor.LeftFrontDoor)

:DRUGS1_42385
130@ = 2569.144
131@ = -1676.185
132@ = 2.915
133@ = 2569.512
134@ = -1677.113
135@ = 2.8487
Camera.SetFixedPosition(2578.406, -1668.328, 1.3204, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2577.853, -1669.157, 1.4051, SwitchType.JumpCut)
Car.StopPlayback(189@)
Car.Delete(189@)
Char.Delete(42@)
Char.Delete(43@)
Car.StopPlayback(194@)
Car.Delete(194@)
Char.Delete(44@)
Char.Delete(45@)
Car.StopPlayback(165@)
Car.Delete(165@)
Char.Delete(46@)
Char.Delete(47@)
Car.StopPlayback(166@)
Car.Delete(166@)
Char.Delete(48@)
Char.Delete(49@)
Car.StopPlayback(167@)
Car.Delete(167@)
Char.Delete(50@)
Char.Delete(51@)
Car.StopPlayback(196@)
Car.Delete(196@)
Char.Delete(52@)
Char.Delete(53@)
Car.StopPlayback(195@)
Car.Delete(195@)
Char.Delete(54@)
Char.Delete(55@)
Car.StopPlayback(206@)
Car.Delete(206@)
Char.Delete(56@)
Char.Delete(57@)
Car.StopPlayback(168@)
Car.Delete(168@)
Char.Delete(58@)
Char.Delete(59@)
165@ = Car.Create(560, 2575.871, -1676.557, 0.7246)
Car.SetHeading(165@, 85.0235)
Car.SetProofs(165@, True, False, False, False, False)
166@ = Car.Create(560, 2567.348, -1675.912, 0.7398)
Car.SetHeading(166@, 263.7667)
Car.SetProofs(166@, True, False, False, False, False)
37@ = Char.Create(PedType.Mission1, 111, 2578.022, -1674.761, 0.7667)
Char.SetHeading(37@, 162.2371)
Char.SetDecisionMaker(37@, 35@)
Char.GiveWeapon(37@, WeaponType.MicroUzi, 9999)
Task.ShootAtCoord(37@, 2574.87, -1686.48, 2.02, 3000)
38@ = Char.Create(PedType.Mission1, 111, 2574.336, -1674.478, 0.7734)
Char.SetHeading(38@, 162.2371)
Char.SetDecisionMaker(38@, 35@)
Char.GiveWeapon(38@, WeaponType.MicroUzi, 9999)
Task.ShootAtCoord(38@, 2572.21, -1686.56, 3.13, 3000)
Task.ToggleDuck(38@, True)
39@ = Char.Create(PedType.Mission1, 111, 2569.295, -1674.4, 0.7752)
Char.SetHeading(39@, 170.9985)
Char.SetDecisionMaker(39@, 35@)
Char.GiveWeapon(39@, WeaponType.MicroUzi, 9999)
Task.ShootAtCoord(39@, 2566.95, -1686.14, 2.5, 3000)
40@ = Char.Create(PedType.Mission1, 111, 2565.314, -1673.921, 0.7864)
Char.SetHeading(40@, 170.9985)
Char.SetDecisionMaker(40@, 35@)
Char.GiveWeapon(40@, WeaponType.MicroUzi, 9999)
Task.ToggleDuck(40@, True)
Task.ShootAtCoord(40@, 2564.35, -1786.51, 2.18, 3000)
if 
  Car.IsPlaybackGoingOn(161@)
goto_if_false @DRUGS1_43107
Car.StopPlayback(161@)

:DRUGS1_43107
243@ = 3
277@ = 2

:DRUGS1_43121
if 
  277@ == 2
goto_if_false @DRUGS1_43258
if 
  Streaming.HasCarRecordingBeenLoaded(282)
goto_if_false @DRUGS1_43258
if 
  Streaming.HasCarRecordingBeenLoaded(283)
goto_if_false @DRUGS1_43258
if 
  Streaming.HasCarRecordingBeenLoaded(284)
goto_if_false @DRUGS1_43258
if 
  Streaming.HasCarRecordingBeenLoaded(285)
goto_if_false @DRUGS1_43258
if 
  Streaming.HasCarRecordingBeenLoaded(286)
goto_if_false @DRUGS1_43258
if 
  Streaming.HasModelLoaded(#STORM_DRAIN_COVER)
goto_if_false @DRUGS1_43258
if 
  Streaming.HasModelLoaded(#BARREL4)
goto_if_false @DRUGS1_43258
277@ = 3

:DRUGS1_43258
switch_start 277@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DRUGS1_43583 {caseNum1} 3 {caseLabel1} @DRUGS1_43321 {caseNum2} 7 {caseLabel2} @DRUGS1_43416 {caseNum3} 8 {caseLabel3} @DRUGS1_43472 {caseNum4} -1 {caseLabel4} @DRUGS1_43583 {caseNum5} -1 {caseLabel5} @DRUGS1_43583 {caseNum6} -1 {caseLabel6} @DRUGS1_43583 {caseNum7} -1 {caseLabel7} @DRUGS1_43583

:DRUGS1_43321
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_43409
TIMERA = 0
Car.StartPlayback(161@, 282)
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS1_43376
Car.SetHealth(188@, 300)

:DRUGS1_43376
$z = 1.0
277@ = 7
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_43409

:DRUGS1_43409
goto @DRUGS1_43583

:DRUGS1_43416
277@ = 8
Camera.DoFade(250, Fade.In)
TIMERA = 0
TIMERB = 0
151@ = 0
159@ = 0
160@ = 0
goto @DRUGS1_43583

:DRUGS1_43472
gosub @DRUGS1_50300
gosub @DRUGS1_50554
gosub @DRUGS1_51029
if 
  TIMERA > 1800
goto_if_false @DRUGS1_43576
if 
  278@ == 0
goto_if_false @DRUGS1_43537
278@ = 1

:DRUGS1_43537
Camera.SetFixedPosition(130@, 131@, 132@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(133@, 134@, 135@, SwitchType.JumpCut)

:DRUGS1_43576
goto @DRUGS1_43583

:DRUGS1_43583
if 
  278@ == 1
goto_if_false @DRUGS1_43764
if 
  not Char.IsDead(37@)
goto_if_false @DRUGS1_43640
set_lvar_int_to_lvar_int 79@ = 37@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747

:DRUGS1_43640
if 
  not Char.IsDead(38@)
goto_if_false @DRUGS1_43679
set_lvar_int_to_lvar_int 79@ = 38@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_43679
if 
  not Char.IsDead(39@)
goto_if_false @DRUGS1_43718
set_lvar_int_to_lvar_int 79@ = 39@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747

:DRUGS1_43718
if 
  not Char.IsDead(40@)
goto_if_false @DRUGS1_43757
set_lvar_int_to_lvar_int 79@ = 40@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_43757
278@ = 2

:DRUGS1_43764
if 
  278@ == 2
goto_if_false @DRUGS1_43808
if 
  TIMERB > 3400
goto_if_false @DRUGS1_43808
278@ = 3

:DRUGS1_43808
if 
  278@ == 3
goto_if_false @DRUGS1_43918
if 
  TIMERB > 3480
goto_if_false @DRUGS1_43918
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS1_43918
Car.FreezePosition(188@, False)
Car.Explode(188@)
Fx.AddExplosion(2570.228, -1684.949, 2.2595, ExplosionType.Grenade)
Fx.AddExplosion(2570.228, -1684.949, 2.2595, ExplosionType.Molotov)
278@ = 4

:DRUGS1_43918
if 
  278@ == 4
goto_if_false @DRUGS1_44002
if 
  TIMERB > 3550
goto_if_false @DRUGS1_44002
if 
  not Car.IsDead(165@)
goto_if_false @DRUGS1_43995
Car.Explode(165@)
Fx.AddExplosion(2575.269, -1677.076, 1.0414, ExplosionType.Molotov)

:DRUGS1_43995
278@ = 5

:DRUGS1_44002
if 
  278@ == 5
goto_if_false @DRUGS1_44086
if 
  not Car.IsDead(166@)
goto_if_false @DRUGS1_44086
if 
  TIMERB > 3625
goto_if_false @DRUGS1_44086
Car.Explode(166@)
Fx.AddExplosion(2568.749, -1676.139, 1.209, ExplosionType.Rocket)
278@ = 6

:DRUGS1_44086
if 
  277@ > 7
goto_if_false @DRUGS1_44172
if 
  TIMERB > 4599
goto_if_false @DRUGS1_44172
Task.DriveBy($scplayer, -1, -1, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 100)
279@ = 2
277@ = 10

:DRUGS1_44172
if 
  279@ == 2
goto_if_false @DRUGS1_50293
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_50293
if 
  280@ == 0
goto_if_false @DRUGS1_45765
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Player.SetHeadingForAttached($player1, 263.0, 350.0)
Camera.RestoreJumpcut
Car.SetProofs(161@, False, True, True, True, True)
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_44298
Char.SetProofs($big_smoke, True, True, True, True, True)

:DRUGS1_44298
Char.SetProofs($scplayer, True, True, True, True, True)
152@ = Object.CreateNoOffset(#STORM_DRAIN_COVER, 2631.852, -1482.75, 18.109)
281@ = 1
282@ = 0
283@ = 0
285@ = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 11073)
Object.SetHealth(152@, 150)
153@ = Object.Create(#BARREL4, 2786.521, -1416.051, 15.31)
154@ = Object.Create(#BARREL4, 2787.548, -1418.323, 15.31)
155@ = Object.Create(#BARREL4, 2824.324, -1418.704, 15.31)
156@ = Object.Create(#BARREL4, 2822.16, -1419.988, 15.31)
157@ = Object.Create(#BARREL4, 2823.05, -1418.747, 15.3)
Streaming.MarkModelAsNoLongerNeeded(443)
168@ = Car.Create(560, 2601.689, -1600.107, 3.1106)
Car.SetHeading(168@, 61.4469)
258@ = 1
169@ = Car.Create(560, 2595.717, -1558.29, 8.4514)
Car.SetHeading(169@, 287.8971)
259@ = 1
48@ = Char.Create(PedType.Mission1, 111, 2601.441, -1597.461, 3.2207)
Char.SetHeading(48@, 135.3988)
Char.SetHealth(48@, 20)
Char.SetDecisionMaker(48@, 35@)
Char.GiveWeapon(48@, WeaponType.MicroUzi, 3000)
231@ = Blip.AddForChar(48@)
Blip.ChangeDisplay(231@, BlipDisplay.BlipOnly)
Blip.ChangeScale(231@, 2)
49@ = Char.Create(PedType.Mission1, 111, 2596.765, -1559.589, 8.277)
Char.SetHeading(49@, 201.1592)
Char.SetHealth(49@, 20)
Char.SetDecisionMaker(49@, 35@)
Char.GiveWeapon(49@, WeaponType.MicroUzi, 3000)
232@ = Blip.AddForChar(49@)
Blip.ChangeDisplay(232@, BlipDisplay.BlipOnly)
Blip.ChangeScale(232@, 2)
50@ = Char.Create(PedType.Mission1, 111, 2596.941, -1555.855, 8.9717)
Char.SetHeading(50@, 201.1592)
Char.SetHealth(50@, 20)
Char.SetDecisionMaker(50@, 35@)
Char.GiveWeapon(50@, WeaponType.MicroUzi, 3000)
233@ = Blip.AddForChar(50@)
Blip.ChangeDisplay(233@, BlipDisplay.BlipOnly)
Blip.ChangeScale(233@, 2)
51@ = Char.Create(PedType.Mission1, 111, 2624.819, -1494.002, 15.4086)
Char.SetHeading(51@, 145.1087)
Char.SetHealth(51@, 10)
Char.SetDecisionMaker(51@, 35@)
Char.GiveWeapon(51@, WeaponType.MicroUzi, 3000)
234@ = Blip.AddForChar(51@)
Blip.ChangeDisplay(234@, BlipDisplay.BlipOnly)
Blip.ChangeScale(234@, 2)
53@ = Char.Create(PedType.Mission1, 111, 2625.413, -1496.587, 15.3563)
Char.SetHeading(53@, 153.8693)
Char.SetHealth(53@, 10)
Char.SetDecisionMaker(53@, 35@)
Char.GiveWeapon(53@, WeaponType.MicroUzi, 3000)
235@ = Blip.AddForChar(53@)
Blip.ChangeDisplay(235@, BlipDisplay.BlipOnly)
Blip.ChangeScale(235@, 2)
189@ = Car.Create(581, 2539.344, -1712.77, 12.4719)
Car.SetHeading(189@, 287.1995)
42@ = Char.CreateInsideCar(189@, PedType.Mission1, 111)
Char.SetDecisionMaker(42@, 35@)
43@ = Char.CreateAsPassenger(189@, PedType.Mission1, 111, 0)
Char.GiveWeapon(43@, WeaponType.MicroUzi, 9999)
Char.SetDecisionMaker(43@, 35@)
214@ = Blip.AddForCar(189@)
Blip.ChangeDisplay(214@, BlipDisplay.BlipOnly)
Blip.ChangeScale(214@, 2)
Char.SetHealth(42@, 10)
Char.SetOnlyDamagedByPlayer(42@, 10)
Char.SetHealth(43@, 10)
Char.SetOnlyDamagedByPlayer(43@, 10)
247@ = 1
260@ = 1
194@ = Car.Create(581, 2533.568, -1714.569, 12.4874)
Car.SetPetrolTankWeakpoint(194@, False)
Car.SetHeading(194@, 287.5564)
44@ = Char.CreateInsideCar(194@, PedType.Mission1, 111)
Char.SetDecisionMaker(44@, 35@)
45@ = Char.CreateAsPassenger(194@, PedType.Mission1, 111, 0)
Char.GiveWeapon(45@, WeaponType.MicroUzi, 9999)
Char.SetDecisionMaker(45@, 35@)
215@ = Blip.AddForCar(194@)
Blip.ChangeDisplay(215@, BlipDisplay.BlipOnly)
Blip.ChangeScale(215@, 2)
Char.SetHealth(44@, 50)
Char.SetHealth(45@, 50)
248@ = 1
261@ = 1
195@ = Car.Create(581, 2529.683, -1715.803, 12.4991)
Car.SetPetrolTankWeakpoint(195@, False)
Car.SetHeading(195@, 287.7722)
46@ = Char.CreateInsideCar(195@, PedType.Mission1, 111)
Char.SetDecisionMaker(46@, 35@)
47@ = Char.CreateAsPassenger(195@, PedType.Mission1, 111, 0)
Char.GiveWeapon(47@, WeaponType.MicroUzi, 9999)
Char.SetDecisionMaker(47@, 35@)
216@ = Blip.AddForCar(195@)
Blip.ChangeDisplay(216@, BlipDisplay.BlipOnly)
Blip.ChangeScale(216@, 2)
Char.SetHealth(46@, 30)
Char.SetOnlyDamagedByPlayer(46@, 10)
Char.SetHealth(47@, 30)
Char.SetOnlyDamagedByPlayer(47@, 10)
249@ = 1
262@ = 1
196@ = Car.Create(581, 2524.542, -1717.461, 12.5175)
Car.SetPetrolTankWeakpoint(196@, False)
Car.SetHeading(196@, 287.8176)
56@ = Char.CreateInsideCar(196@, PedType.Mission1, 111)
Char.SetDecisionMaker(56@, 35@)
57@ = Char.CreateAsPassenger(196@, PedType.Mission1, 111, 0)
Char.GiveWeapon(57@, WeaponType.MicroUzi, 9999)
Char.SetDecisionMaker(57@, 35@)
217@ = Blip.AddForCar(196@)
Blip.ChangeDisplay(217@, BlipDisplay.BlipOnly)
Blip.ChangeScale(217@, 2)
250@ = 1
263@ = 1
if 
  not Char.IsDead(48@)
goto_if_false @DRUGS1_45602
set_lvar_int_to_lvar_int 79@ = 48@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747

:DRUGS1_45602
if 
  not Char.IsDead(49@)
goto_if_false @DRUGS1_45641
set_lvar_int_to_lvar_int 79@ = 49@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_45641
if 
  not Char.IsDead(50@)
goto_if_false @DRUGS1_45680
set_lvar_int_to_lvar_int 79@ = 50@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51747

:DRUGS1_45680
if 
  not Char.IsDead(51@)
goto_if_false @DRUGS1_45719
set_lvar_int_to_lvar_int 79@ = 51@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_45719
if 
  not Char.IsDead(53@)
goto_if_false @DRUGS1_45758
set_lvar_int_to_lvar_int 79@ = 53@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51791

:DRUGS1_45758
280@ = 1

:DRUGS1_45765
if 
  280@ == 1
goto_if_false @DRUGS1_46173
if 
  Car.Locate2D(161@, 2580.74, -1621.47, 15.0, 15.0, False)
goto_if_false @DRUGS1_46173
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS1_45845
Car.StartPlayback(189@, 283)

:DRUGS1_45845
if 
  not Car.IsDead(194@)
goto_if_false @DRUGS1_45869
Car.StartPlayback(194@, 284)

:DRUGS1_45869
if 
  not Car.IsDead(195@)
goto_if_false @DRUGS1_45893
Car.StartPlayback(195@, 285)

:DRUGS1_45893
if 
  not Car.IsDead(196@)
goto_if_false @DRUGS1_45917
Car.StartPlayback(196@, 286)

:DRUGS1_45917
if 
  not Char.IsDead(43@)
goto_if_false @DRUGS1_45969
Task.DriveBy(43@, -1, 161@, 0.0, 0.0, 0.0, 200.0, DriveByType.Ai, True, 90)

:DRUGS1_45969
if 
  not Char.IsDead(45@)
goto_if_false @DRUGS1_46022
Task.DriveBy(45@, -1, 161@, 0.0, 0.0, 0.0, 200.0, DriveByType.Ai, True, 289@)

:DRUGS1_46022
if 
  not Char.IsDead(47@)
goto_if_false @DRUGS1_46074
Task.DriveBy(47@, -1, 161@, 0.0, 0.0, 0.0, 200.0, DriveByType.Ai, True, 90)

:DRUGS1_46074
if 
  not Char.IsDead(57@)
goto_if_false @DRUGS1_46126
Task.DriveBy(57@, -1, 161@, 0.0, 0.0, 0.0, 200.0, DriveByType.Ai, True, 90)

:DRUGS1_46126
Car.MarkAsNoLongerNeeded(165@)
Car.MarkAsNoLongerNeeded(188@)
Char.MarkAsNoLongerNeeded(197@)
Car.MarkAsNoLongerNeeded(166@)
Char.MarkAsNoLongerNeeded(37@)
Char.MarkAsNoLongerNeeded(38@)
Char.MarkAsNoLongerNeeded(39@)
Char.MarkAsNoLongerNeeded(40@)
280@ = 2

:DRUGS1_46173
if 
  280@ == 2
goto_if_false @DRUGS1_46312
if 
  Car.Locate2D(161@, 2676.96, -1432.1, 12.0, 12.0, False)
goto_if_false @DRUGS1_46312
Char.Delete(48@)
Char.Delete(49@)
Char.Delete(50@)
Car.Delete(168@)
Car.Delete(169@)
Car.Delete(188@)
Char.MarkAsNoLongerNeeded(51@)
Char.MarkAsNoLongerNeeded(53@)
Blip.Remove(231@)
Blip.Remove(232@)
Blip.Remove(233@)
Blip.Remove(234@)
Blip.Remove(235@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 11117)
280@ = 3

:DRUGS1_46312
if 
  280@ == 3
goto_if_false @DRUGS1_46512
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_46512
if 
  Car.Locate2D(161@, 2825.37, -1538.43, 7.0, 7.0, False)
goto_if_false @DRUGS1_46512
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.SetFixedPosition(2823.755, -1537.138, 10.0736, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2823.25, -1537.966, 10.3176, SwitchType.JumpCut)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 11118)

:DRUGS1_46459
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_46485
wait 0
goto @DRUGS1_46459

:DRUGS1_46485
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SMO4_JS', 5000, 1)
280@ = 4

:DRUGS1_46512
if 
  280@ == 4
goto_if_false @DRUGS1_46768
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_46768
if 
  Car.LocateStopped2D(161@, 2825.37, -1538.43, 5.0, 5.0, False)
goto_if_false @DRUGS1_46768
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_46768
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_46768
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_46768
Text.ClearPrints
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SMO4_KA', 5000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 11080)
Char.Delete(43@)
Char.Delete(44@)
Car.Delete(189@)
Blip.Remove(214@)
Char.Delete(45@)
Char.Delete(46@)
Car.Delete(194@)
Blip.Remove(215@)
Char.Delete(47@)
Char.Delete(48@)
Car.Delete(195@)
Blip.Remove(216@)
Char.Delete(56@)
Char.Delete(57@)
Car.Delete(196@)
Blip.Remove(217@)
Task.LookAtChar($big_smoke, $scplayer, 10000)
TIMERA = 0
280@ = 5

:DRUGS1_46768
if 
  280@ == 5
goto_if_false @DRUGS1_46975
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_46975
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_46975
Camera.SetFixedPosition(2819.666, -1542.108, 10.2063, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2820.401, -1541.444, 10.3396, SwitchType.JumpCut)
Text.ClearPrints
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_46893
Char.StartFacialTalk($big_smoke, 10000)

:DRUGS1_46893
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SMO4_KC', 5000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 11081)
Char.SetCanBeKnockedOffBike($scplayer, False)
Char.RemoveWeapon($scplayer, WeaponType.MicroUzi)
Char.GiveWeapon($scplayer, WeaponType.MicroUzi, 80)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRUGS1_46968
Task.LeaveAnyCar($scplayer)

:DRUGS1_46968
280@ = 6

:DRUGS1_46975
if 
  280@ == 6
goto_if_false @DRUGS1_47054
if 
  not Char.IsSittingInAnyCar($scplayer)
goto_if_false @DRUGS1_47054
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_47054
Task.LookAtChar($scplayer, $big_smoke, 15000)
Task.LookAtChar($big_smoke, $scplayer, 15000)
280@ = 7

:DRUGS1_47054
if 
  280@ == 7
goto_if_false @DRUGS1_47142
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_47142
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_47142
Text.ClearPrints
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SMO4_KD', 5000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 11119)
280@ = 8

:DRUGS1_47142
if 
  280@ == 8
goto_if_false @DRUGS1_47259
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_47259
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_47259
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_47211
Char.StopFacialTalk($big_smoke)

:DRUGS1_47211
Text.ClearPrints
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SMO4_KE', 5000, 1)
Char.StartFacialTalk($scplayer, 10000)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 11120)
280@ = 9

:DRUGS1_47259
if 
  280@ == 9
goto_if_false @DRUGS1_47354
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_47354
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_47354
Text.ClearPrints
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SMO4_KF', 5000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 11082)
TIMERA = 0
280@ = 10

:DRUGS1_47354
if 
  280@ == 10
goto_if_false @DRUGS1_47558
if 
  not Car.IsDead(161@)
goto_if_false @DRUGS1_47558
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_47558
if 
  TIMERA > 3000
goto_if_false @DRUGS1_47558
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_47558
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_47558
Char.StopFacialTalk($scplayer)
Car.SetStraightLineDistance(161@, 200)
Task.CarDriveToCoord($big_smoke, 161@, 2804.5, -1538.95, 10.38, 6.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SMO4_KG', 2500, 1)
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_47544
Char.StartFacialTalk($big_smoke, 10000)

:DRUGS1_47544
TIMERA = 0
280@ = 11

:DRUGS1_47558
if 
  280@ == 11
goto_if_false @DRUGS1_47677
if 
  TIMERA > 2000
goto_if_false @DRUGS1_47677
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS1_47677
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_47631
Char.StopFacialTalk($big_smoke)

:DRUGS1_47631
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Car.Delete(161@)
Char.Delete($big_smoke)
Hud.ClearCounter($smokeshoot_s4flag)
Text.ClearPrints
goto @DRUGS1_51847
280@ = 12

:DRUGS1_47677
if 
  281@ == 1
goto_if_false @DRUGS1_47804
if 
  World.HasObjectOfTypeBeenSmashed(2631.852, -1482.75, 18.109, 10.0, #STORM_DRAIN_COVER)
goto_if_false @DRUGS1_47804
if 
  Object.HasBeenDamagedByWeapon(152@, WeaponType.MicroUzi)
goto_if_false @DRUGS1_47765
Text.ClearPrints
281@ = 2
goto @DRUGS1_47804

:DRUGS1_47765
$smokeshoot_s4flag = Car.GetHealth(161@)
$smokeshoot_s4flag -= 100
Car.SetHealth(161@, $smokeshoot_s4flag)
$smokeshoot_s4flag /= 10
Text.ClearPrints
281@ = 3

:DRUGS1_47804
if 
  280@ > 0
goto_if_false @DRUGS1_48455
if 
  4 > 280@
goto_if_false @DRUGS1_48455
if 
  282@ == 0
goto_if_false @DRUGS1_47905
if 
  283@ == 0
goto_if_false @DRUGS1_47905
set_lvar_int_to_constant 239@ = 11073
set_lvar_text_label 240@s = 'SMO4_JE'
gosub @DRUGS1_51404

:DRUGS1_47905
if 
  282@ == 1
goto_if_false @DRUGS1_47970
if 
  283@ == 0
goto_if_false @DRUGS1_47970
set_lvar_int_to_constant 239@ = 11074
set_lvar_text_label 240@s = 'SMO4_JF'
gosub @DRUGS1_51404

:DRUGS1_47970
if 
  282@ == 2
goto_if_false @DRUGS1_48035
if 
  283@ == 0
goto_if_false @DRUGS1_48035
set_lvar_int_to_constant 239@ = 11075
set_lvar_text_label 240@s = 'SMO4_JG'
gosub @DRUGS1_51404

:DRUGS1_48035
if 
  282@ == 3
goto_if_false @DRUGS1_48172
if 
  283@ == 0
goto_if_false @DRUGS1_48172
if 
  281@ == 2
goto_if_false @DRUGS1_48125
set_lvar_int_to_constant 239@ = 11076
set_lvar_text_label 240@s = 'SMO4_JH'
gosub @DRUGS1_51404
goto @DRUGS1_48172

:DRUGS1_48125
if 
  281@ == 3
goto_if_false @DRUGS1_48172
set_lvar_int_to_constant 239@ = 11077
set_lvar_text_label 240@s = 'SMO4_JJ'
gosub @DRUGS1_51404

:DRUGS1_48172
if 
  285@ == 0
goto_if_false @DRUGS1_48235
if 
  Car.Locate2D(161@, 2647.31, -1457.67, 10.0, 10.0, False)
goto_if_false @DRUGS1_48235
285@ = 1

:DRUGS1_48235
if 
  282@ == 4
goto_if_false @DRUGS1_48318
if 
  283@ == 0
goto_if_false @DRUGS1_48318
if 
  285@ == 1
goto_if_false @DRUGS1_48318
set_lvar_int_to_constant 239@ = 11110
set_lvar_text_label 240@s = 'SMO4_JK'
gosub @DRUGS1_51404

:DRUGS1_48318
if 
  282@ == 5
goto_if_false @DRUGS1_48383
if 
  283@ == 0
goto_if_false @DRUGS1_48383
set_lvar_int_to_constant 239@ = 11078
set_lvar_text_label 240@s = 'SMO4_JL'
gosub @DRUGS1_51404

:DRUGS1_48383
if 
  282@ == 6
goto_if_false @DRUGS1_48448
if 
  283@ == 0
goto_if_false @DRUGS1_48448
set_lvar_int_to_constant 239@ = 11114
set_lvar_text_label 240@s = 'SMO4_JP'
gosub @DRUGS1_51404

:DRUGS1_48448
gosub @DRUGS1_51446

:DRUGS1_48455
if 
  258@ == 1
goto_if_false @DRUGS1_48520
if 
  not Car.IsDead(168@)
goto_if_false @DRUGS1_48520
if 
  Car.HasBeenDamagedByChar(168@, $scplayer)
goto_if_false @DRUGS1_48520
Car.Explode(168@)
258@ = 2

:DRUGS1_48520
if 
  259@ == 1
goto_if_false @DRUGS1_48585
if 
  not Car.IsDead(169@)
goto_if_false @DRUGS1_48585
if 
  Car.HasBeenDamagedByChar(169@, $scplayer)
goto_if_false @DRUGS1_48585
Car.Explode(169@)
259@ = 2

:DRUGS1_48585
if 
  247@ == 1
goto_if_false @DRUGS1_48833
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS1_48833
if 
  not Char.IsDead(42@)
goto_if_false @DRUGS1_48642
goto @DRUGS1_48833

:DRUGS1_48642
if 
  not Char.IsDead(43@)
goto_if_false @DRUGS1_48791
if 
  Char.IsInCar(43@, 189@)
goto_if_false @DRUGS1_48784
205@ = Car.GetDriver(189@)
if 
  205@ == -1
goto_if_false @DRUGS1_48784
$player_x, $player_y, $player_z = Car.GetCoordinates(161@)
Char.WarpFromCarToCoord(43@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(43@, 189@)
Task.DriveBy(43@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)
247@ = 2

:DRUGS1_48784
goto @DRUGS1_48833

:DRUGS1_48791
Car.SetForwardSpeed(189@, 18.0)
Car.StopPlayback(189@)
Car.SetRotationVelocity(189@, 3.5, 7.3999, 8.1003)
247@ = 2

:DRUGS1_48833
if 
  247@ == 2
goto_if_false @DRUGS1_48925
if 
  Char.IsDead(43@)
goto_if_false @DRUGS1_48925
Car.StopPlayback(189@)
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS1_48918
Car.SetForwardSpeed(189@, 18.0)
Car.SetRotationVelocity(189@, 3.5, 7.3999, 8.1003)

:DRUGS1_48918
247@ = 3

:DRUGS1_48925
if 
  260@ == 1
goto_if_false @DRUGS1_49012
if 
  Char.IsDead(42@)
goto_if_false @DRUGS1_49012
if or
  Char.IsDead(43@)
  Car.IsDead(189@)
goto_if_false @DRUGS1_49012
Car.StopPlayback(189@)
Blip.Remove(214@)
Car.MarkAsNoLongerNeeded(189@)
Char.MarkAsNoLongerNeeded(42@)
Char.MarkAsNoLongerNeeded(43@)
260@ = 2

:DRUGS1_49012
if 
  248@ == 1
goto_if_false @DRUGS1_49260
if 
  not Car.IsDead(194@)
goto_if_false @DRUGS1_49260
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS1_49069
goto @DRUGS1_49260

:DRUGS1_49069
if 
  not Char.IsDead(45@)
goto_if_false @DRUGS1_49218
if 
  Char.IsInCar(45@, 194@)
goto_if_false @DRUGS1_49211
205@ = Car.GetDriver(194@)
if 
  205@ == -1
goto_if_false @DRUGS1_49211
$player_x, $player_y, $player_z = Car.GetCoordinates(161@)
Char.WarpFromCarToCoord(45@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(45@, 194@)
Task.DriveBy(45@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)
248@ = 2

:DRUGS1_49211
goto @DRUGS1_49260

:DRUGS1_49218
Car.SetForwardSpeed(194@, 18.0)
Car.StopPlayback(194@)
Car.SetRotationVelocity(194@, 3.5, 7.3999, 8.1003)
248@ = 2

:DRUGS1_49260
if 
  248@ == 2
goto_if_false @DRUGS1_49352
if 
  Char.IsDead(45@)
goto_if_false @DRUGS1_49352
Car.StopPlayback(194@)
if 
  not Car.IsDead(194@)
goto_if_false @DRUGS1_49345
Car.SetForwardSpeed(194@, 18.0)
Car.SetRotationVelocity(194@, 3.5, 7.3999, 8.1003)

:DRUGS1_49345
248@ = 3

:DRUGS1_49352
if 
  261@ == 1
goto_if_false @DRUGS1_49439
if 
  Char.IsDead(44@)
goto_if_false @DRUGS1_49439
if or
  Char.IsDead(45@)
  Car.IsDead(194@)
goto_if_false @DRUGS1_49439
Car.StopPlayback(194@)
Blip.Remove(215@)
Car.MarkAsNoLongerNeeded(194@)
Char.MarkAsNoLongerNeeded(44@)
Char.MarkAsNoLongerNeeded(45@)
261@ = 2

:DRUGS1_49439
if 
  249@ == 1
goto_if_false @DRUGS1_49687
if 
  not Car.IsDead(195@)
goto_if_false @DRUGS1_49687
if 
  not Char.IsDead(46@)
goto_if_false @DRUGS1_49496
goto @DRUGS1_49687

:DRUGS1_49496
if 
  not Char.IsDead(47@)
goto_if_false @DRUGS1_49645
if 
  Char.IsInCar(47@, 195@)
goto_if_false @DRUGS1_49638
205@ = Car.GetDriver(195@)
if 
  205@ == -1
goto_if_false @DRUGS1_49638
$player_x, $player_y, $player_z = Car.GetCoordinates(161@)
Char.WarpFromCarToCoord(47@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(47@, 195@)
Task.DriveBy(47@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)
249@ = 2

:DRUGS1_49638
goto @DRUGS1_49687

:DRUGS1_49645
Car.SetForwardSpeed(195@, 18.0)
Car.StopPlayback(195@)
Car.SetRotationVelocity(195@, 3.5, 7.3999, 8.1003)
249@ = 2

:DRUGS1_49687
if 
  249@ == 2
goto_if_false @DRUGS1_49779
if 
  Char.IsDead(47@)
goto_if_false @DRUGS1_49779
Car.StopPlayback(195@)
if 
  not Car.IsDead(195@)
goto_if_false @DRUGS1_49772
Car.SetForwardSpeed(195@, 18.0)
Car.SetRotationVelocity(195@, 3.5, 7.3999, 8.1003)

:DRUGS1_49772
249@ = 3

:DRUGS1_49779
if 
  262@ == 1
goto_if_false @DRUGS1_49866
if 
  Char.IsDead(46@)
goto_if_false @DRUGS1_49866
if or
  Char.IsDead(47@)
  Car.IsDead(195@)
goto_if_false @DRUGS1_49866
Car.StopPlayback(195@)
Blip.Remove(216@)
Car.MarkAsNoLongerNeeded(195@)
Char.MarkAsNoLongerNeeded(46@)
Char.MarkAsNoLongerNeeded(47@)
262@ = 2

:DRUGS1_49866
if 
  250@ == 1
goto_if_false @DRUGS1_50114
if 
  not Car.IsDead(196@)
goto_if_false @DRUGS1_50114
if 
  not Char.IsDead(56@)
goto_if_false @DRUGS1_49923
goto @DRUGS1_50114

:DRUGS1_49923
if 
  not Char.IsDead(57@)
goto_if_false @DRUGS1_50072
if 
  Char.IsInCar(57@, 196@)
goto_if_false @DRUGS1_50065
205@ = Car.GetDriver(196@)
if 
  205@ == -1
goto_if_false @DRUGS1_50065
$player_x, $player_y, $player_z = Car.GetCoordinates(161@)
Char.WarpFromCarToCoord(57@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(57@, 196@)
Task.DriveBy(57@, -1, 161@, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)
250@ = 2

:DRUGS1_50065
goto @DRUGS1_50114

:DRUGS1_50072
Car.SetForwardSpeed(196@, 18.0)
Car.StopPlayback(196@)
Car.SetRotationVelocity(196@, 3.5, 7.3999, 8.1003)
250@ = 2

:DRUGS1_50114
if 
  250@ == 2
goto_if_false @DRUGS1_50206
if 
  Char.IsDead(57@)
goto_if_false @DRUGS1_50206
Car.StopPlayback(196@)
if 
  not Car.IsDead(196@)
goto_if_false @DRUGS1_50199
Car.SetForwardSpeed(196@, 18.0)
Car.SetRotationVelocity(196@, 3.5, 7.3999, 8.1003)

:DRUGS1_50199
250@ = 3

:DRUGS1_50206
if 
  263@ == 1
goto_if_false @DRUGS1_50293
if 
  Char.IsDead(56@)
goto_if_false @DRUGS1_50293
if or
  Char.IsDead(57@)
  Car.IsDead(196@)
goto_if_false @DRUGS1_50293
Car.StopPlayback(196@)
Blip.Remove(217@)
Car.MarkAsNoLongerNeeded(196@)
Char.MarkAsNoLongerNeeded(56@)
Char.MarkAsNoLongerNeeded(57@)
263@ = 2

:DRUGS1_50293
goto @DRUGS1_1346

:DRUGS1_50300
switch_start 151@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DRUGS1_50552 {caseNum1} 0 {caseLabel1} @DRUGS1_50363 {caseNum2} 1 {caseLabel2} @DRUGS1_50394 {caseNum3} 2 {caseLabel3} @DRUGS1_50473 {caseNum4} -1 {caseLabel4} @DRUGS1_50552 {caseNum5} -1 {caseLabel5} @DRUGS1_50552 {caseNum6} -1 {caseLabel6} @DRUGS1_50552 {caseNum7} -1 {caseLabel7} @DRUGS1_50552

:DRUGS1_50363
Clock.SetTimeScale(0.8)
158@ = 0.8
151@ += 1
goto @DRUGS1_50552

:DRUGS1_50394
if 
  TIMERB > 3200
goto_if_false @DRUGS1_50466
sub_timed_val_from_float_lvar 158@ -=@ 0.05
if 
  0.3 > 158@
goto_if_false @DRUGS1_50461
158@ = 0.3
151@ += 1

:DRUGS1_50461
Clock.SetTimeScale(158@)

:DRUGS1_50466
goto @DRUGS1_50552

:DRUGS1_50473
if 
  TIMERB > 4000
goto_if_false @DRUGS1_50545
add_timed_val_to_float_lvar 158@ +=@ 0.05
if 
  158@ > 1.0
goto_if_false @DRUGS1_50540
158@ = 1.0
151@ += 1

:DRUGS1_50540
Clock.SetTimeScale(158@)

:DRUGS1_50545
goto @DRUGS1_50552

:DRUGS1_50552
return 

:DRUGS1_50554
switch_start 159@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DRUGS1_51027 {caseNum1} 0 {caseLabel1} @DRUGS1_50617 {caseNum2} 1 {caseLabel2} @DRUGS1_50787 {caseNum3} 2 {caseLabel3} @DRUGS1_50912 {caseNum4} -1 {caseLabel4} @DRUGS1_51027 {caseNum5} -1 {caseLabel5} @DRUGS1_51027 {caseNum6} -1 {caseLabel6} @DRUGS1_51027 {caseNum7} -1 {caseLabel7} @DRUGS1_51027

:DRUGS1_50617
133@, 134@, 135@ = Car.GetCoordinates(161@)
130@, 131@, 132@ = Car.GetOffsetInWorldCoords(161@, 1.0, -2.5, 0.0)
130@ = 2563.28
131@ = -1737.328
132@ = 1.1412
133@ = 2562.65
134@ = -1734.725
135@ = 1.1991
136@ = 0.001
137@ = 3E-12
139@ = 0.03
140@ = 0.1
148@ = 0.47
141@ = 0.003
159@ += 1

:DRUGS1_50787
if 
  2900 > TIMERB
goto_if_false @DRUGS1_50895
add_timed_float_lvar_to_float_lvar 139@ +=@ 136@
add_timed_float_lvar_to_float_lvar 137@ +=@ 137@
add_timed_float_lvar_to_float_lvar 140@ +=@ 137@
if 
  is_float_lvar_greater_than_float_lvar 140@ > 148@
goto_if_false @DRUGS1_50857
set_lvar_float_to_lvar_float 140@ = 148@

:DRUGS1_50857
add_timed_float_lvar_to_float_lvar 130@ +=@ 139@
add_timed_float_lvar_to_float_lvar 131@ +=@ 140@
add_timed_float_lvar_to_float_lvar 132@ +=@ 141@
goto @DRUGS1_51027
goto @DRUGS1_50912

:DRUGS1_50895
136@ = -0.01
159@ += 1

:DRUGS1_50912
if 
  4000 > TIMERB
goto_if_false @DRUGS1_51020
add_timed_float_lvar_to_float_lvar 139@ +=@ 136@
add_timed_float_lvar_to_float_lvar 137@ +=@ 137@
add_timed_float_lvar_to_float_lvar 140@ +=@ 137@
if 
  is_float_lvar_greater_than_float_lvar 140@ > 148@
goto_if_false @DRUGS1_50982
set_lvar_float_to_lvar_float 140@ = 148@

:DRUGS1_50982
add_timed_float_lvar_to_float_lvar 130@ +=@ 139@
add_timed_float_lvar_to_float_lvar 131@ +=@ 140@
add_timed_float_lvar_to_float_lvar 132@ +=@ 141@
goto @DRUGS1_51027
goto @DRUGS1_51027

:DRUGS1_51020
159@ += 1

:DRUGS1_51027
return 

:DRUGS1_51029
switch_start 160@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DRUGS1_51402 {caseNum1} 0 {caseLabel1} @DRUGS1_51092 {caseNum2} 1 {caseLabel2} @DRUGS1_51169 {caseNum3} 2 {caseLabel3} @DRUGS1_51268 {caseNum4} -1 {caseLabel4} @DRUGS1_51402 {caseNum5} -1 {caseLabel5} @DRUGS1_51402 {caseNum6} -1 {caseLabel6} @DRUGS1_51402 {caseNum7} -1 {caseLabel7} @DRUGS1_51402

:DRUGS1_51092
143@ = 0.007
144@ = 0.012
145@ = 0.045
146@ = 0.06
149@ = 0.32
147@ = 0.005
150@ = 0.1
160@ += 1

:DRUGS1_51169
if 
  2800 > TIMERB
goto_if_false @DRUGS1_51261
add_timed_float_lvar_to_float_lvar 146@ +=@ 143@
if 
  is_float_lvar_greater_than_float_lvar 146@ > 149@
goto_if_false @DRUGS1_51223
set_lvar_float_to_lvar_float 146@ = 149@

:DRUGS1_51223
add_timed_float_lvar_to_float_lvar 133@ +=@ 145@
add_timed_float_lvar_to_float_lvar 134@ +=@ 146@
add_timed_float_lvar_to_float_lvar 135@ +=@ 147@
goto @DRUGS1_51402
goto @DRUGS1_51268

:DRUGS1_51261
160@ += 1

:DRUGS1_51268
if 
  3600 > TIMERB
goto_if_false @DRUGS1_51388
add_timed_float_lvar_to_float_lvar 146@ +=@ 143@
if 
  is_float_lvar_greater_than_float_lvar 146@ > 149@
goto_if_false @DRUGS1_51322
set_lvar_float_to_lvar_float 146@ = 149@

:DRUGS1_51322
add_timed_float_lvar_to_float_lvar 147@ +=@ 144@
if 
  is_float_lvar_greater_than_float_lvar 147@ > 150@
goto_if_false @DRUGS1_51357
set_lvar_float_to_lvar_float 147@ = 150@

:DRUGS1_51357
add_timed_float_lvar_to_float_lvar 133@ +=@ 145@
add_timed_float_lvar_to_float_lvar 134@ +=@ 146@
add_timed_float_lvar_to_float_lvar 135@ +=@ 147@
goto @DRUGS1_51395

:DRUGS1_51388
160@ += 1

:DRUGS1_51395
goto @DRUGS1_51402

:DRUGS1_51402
return 

:DRUGS1_51404
if 
  283@ == 0
goto_if_false @DRUGS1_51444
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 239@)
set_lvar_text_label 237@s = 240@s
283@ = 1

:DRUGS1_51444
return 

:DRUGS1_51446
if 
  283@ == 1
goto_if_false @DRUGS1_51500
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_51500
Text.PrintNow(237@s, 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
283@ = 2

:DRUGS1_51500
if 
  283@ == 2
goto_if_false @DRUGS1_51553
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS1_51553
282@ += 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
283@ = 0

:DRUGS1_51553
return 

:DRUGS1_51555
78@ = Sequence.Open()
Task.GoStraightToCoord(-1, 81@, 82@, 83@, MoveState.Run, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 80@)
Sequence.Close(78@)
Char.PerformSequence(79@, 78@)
Sequence.Clear(78@)
return 

:DRUGS1_51610
65@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 81@, 82@, 83@, 6, 0.5, 1.0, $scplayer)
Task.GoToCoordWhileShooting(-1, 84@, 85@, 86@, 6, 0.5, 1.0, $scplayer)
Task.KillCharOnFoot(-1, 80@)
Sequence.Close(65@)
Char.PerformSequence(79@, 65@)
Sequence.Clear(65@)
return 

:DRUGS1_51698
66@ = Sequence.Open()
Task.GoStraightToCoord(-1, 81@, 82@, 83@, MoveState.Run, -1)
Task.KillCharOnFoot(-1, 80@)
Sequence.Close(66@)
Char.PerformSequence(79@, 66@)
Sequence.Clear(66@)
return 

:DRUGS1_51747
67@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, 80@)
Sequence.Close(67@)
Char.PerformSequence(79@, 67@)
Sequence.Clear(67@)
return 

:DRUGS1_51791
68@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 80@)
Sequence.Close(68@)
Char.PerformSequence(79@, 68@)
Sequence.Clear(68@)
return 

:DRUGS1_51829
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:DRUGS1_51847
$flag_smoke_mission_counter += 1
Blip.Remove($smoke_contact_blip)
Stat.RegisterMissionPassed('SMOKE_4')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSR', 10, 5000, TextStyle.Middle)
Audio.PlayMissionPassedTune(1)
Stat.AwardPlayerMissionRespect(10)
Player.ClearWantedLevel($player1)
return 

:DRUGS1_51907
$onmission = 0
Path.SwitchRoadsOn(1694.12, -1604.33, 5.0, 1805.94, -1593.12, 15.0)
Char.RemoveElegantly($big_smoke)
Streaming.UnloadSpecialCharacter(1)
World.DisableAllEntryExits(False)
Blip.Remove(87@)
Blip.Remove(88@)
Blip.Remove(89@)
Blip.Remove(209@)
Blip.Remove(210@)
Blip.Remove(211@)
Blip.Remove(212@)
Blip.Remove(213@)
Blip.Remove(214@)
Blip.Remove(215@)
Blip.Remove(216@)
Blip.Remove(217@)
Blip.Remove(218@)
Blip.Remove(219@)
Blip.Remove(220@)
Blip.Remove(229@)
Blip.Remove(223@)
Blip.Remove(224@)
Blip.Remove(225@)
Blip.Remove(226@)
Blip.Remove(227@)
Blip.Remove(228@)
Blip.Remove(229@)
Blip.Remove(230@)
Blip.Remove(231@)
Blip.Remove(232@)
Blip.Remove(233@)
Blip.Remove(234@)
Blip.Remove(235@)
Blip.Remove(226@)
Blip.Remove(227@)
Blip.Remove(236@)
Player.SetGroupRecruitment($player1, True)
Game.SetScriptLimitToGangSize(99)
Streaming.MarkModelAsNoLongerNeeded(466)
Streaming.MarkModelAsNoLongerNeeded(91)
Streaming.MarkModelAsNoLongerNeeded(93)
Streaming.MarkModelAsNoLongerNeeded(111)
Streaming.MarkModelAsNoLongerNeeded(112)
Streaming.MarkModelAsNoLongerNeeded(581)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.RemoveAnimation("JST_BUISNESS")
Streaming.MarkModelAsNoLongerNeeded(560)
Streaming.MarkModelAsNoLongerNeeded(#KMB_SKIP)
Streaming.MarkModelAsNoLongerNeeded(516)
Streaming.MarkModelAsNoLongerNeeded(437)
Streaming.MarkModelAsNoLongerNeeded(443)
Streaming.MarkModelAsNoLongerNeeded(#STORM_DRAIN_COVER)
Streaming.MarkModelAsNoLongerNeeded(#BARREL4)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Game.SetWantedMultiplier(1.0)
Game.SetMaxWantedLevel(4)
Hud.ClearCounter($s2_random_int)
Hud.ClearCounter($smokeshoot_s4flag)
if 
  Player.IsPlaying($player1)
goto_if_false @DRUGS1_52301
Char.ShutUp($scplayer, False)
Pad.SetPlayerEnterCarButton($player1, True)
Char.SetCanBeKnockedOffBike($scplayer, False)
Char.ShutUpForScriptedSpeech($scplayer, False)

:DRUGS1_52301
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS1_52324
Char.SetCanBeKnockedOffBike($big_smoke, False)

:DRUGS1_52324
Weather.Release
Char.DetachFromCar($scplayer)
Char.SetProofs($scplayer, False, False, False, False, False)
Game.SwitchEmergencyServices(True)
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
if 
  Player.IsPlaying($player1)
goto_if_false @DRUGS1_52709
if 
  not Char.IsDead(42@)
goto_if_false @DRUGS1_52397
Task.KillCharOnFoot(42@, $scplayer)

:DRUGS1_52397
if 
  not Char.IsDead(43@)
goto_if_false @DRUGS1_52421
Task.KillCharOnFoot(43@, $scplayer)

:DRUGS1_52421
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS1_52445
Task.KillCharOnFoot(44@, $scplayer)

:DRUGS1_52445
if 
  not Char.IsDead(45@)
goto_if_false @DRUGS1_52469
Task.KillCharOnFoot(45@, $scplayer)

:DRUGS1_52469
if 
  not Char.IsDead(46@)
goto_if_false @DRUGS1_52493
Task.KillCharOnFoot(46@, $scplayer)

:DRUGS1_52493
if 
  not Char.IsDead(47@)
goto_if_false @DRUGS1_52517
Task.KillCharOnFoot(47@, $scplayer)

:DRUGS1_52517
if 
  not Char.IsDead(48@)
goto_if_false @DRUGS1_52541
Task.KillCharOnFoot(48@, $scplayer)

:DRUGS1_52541
if 
  not Char.IsDead(49@)
goto_if_false @DRUGS1_52565
Task.KillCharOnFoot(49@, $scplayer)

:DRUGS1_52565
if 
  not Char.IsDead(50@)
goto_if_false @DRUGS1_52589
Task.KillCharOnFoot(50@, $scplayer)

:DRUGS1_52589
if 
  not Char.IsDead(51@)
goto_if_false @DRUGS1_52613
Task.KillCharOnFoot(51@, $scplayer)

:DRUGS1_52613
if 
  not Char.IsDead(52@)
goto_if_false @DRUGS1_52637
Task.KillCharOnFoot(52@, $scplayer)

:DRUGS1_52637
if 
  not Char.IsDead(53@)
goto_if_false @DRUGS1_52661
Task.KillCharOnFoot(53@, $scplayer)

:DRUGS1_52661
if 
  not Char.IsDead(54@)
goto_if_false @DRUGS1_52685
Task.KillCharOnFoot(54@, $scplayer)

:DRUGS1_52685
if 
  not Char.IsDead(55@)
goto_if_false @DRUGS1_52709
Task.KillCharOnFoot(55@, $scplayer)

:DRUGS1_52709
return 

//-------------Mission 31---------------
// Originally: Life's a Beach

:MUSIC1
script_name 'MUSIC1'
gosub @MUSIC1_47
if 
  has_deatharrest_been_executed 
goto_if_false @MUSIC1_38
gosub @MUSIC1_15646

:MUSIC1_38
gosub @MUSIC1_15719
terminate_this_script 

:MUSIC1_47
Stat.RegisterMissionGiven
Text.LoadMissionText('STRAP1')
$onmission = 1
wait 0
34@ = 526.84
35@ = -1885.19
36@ = 2.4
set_lvar_float_to_lvar_float 39@ = 34@
39@ += 2.5
set_lvar_float_to_lvar_float 40@ = 35@
40@ += 3.5
41@ = 2.79
set_lvar_float_to_lvar_float 42@ = 34@
42@ -= 7.0
set_lvar_float_to_lvar_float 43@ = 35@
43@ -= 9.8
44@ = 2.06
set_lvar_float_to_lvar_float 48@ = 39@
48@ += 9.0
set_lvar_float_to_lvar_float 49@ = 40@
49@ += 4.0
set_lvar_float_to_lvar_float 50@ = 41@
51@ = 340.0
52@ = 1643.42
53@ = -1524.69
54@ = 12.61
set_lvar_float_to_lvar_float 56@ = 48@
56@ -= 1.08
set_lvar_float_to_lvar_float 57@ = 49@
57@ -= 3.05
set_lvar_float_to_lvar_float 58@ = 56@
58@ -= 0.54
set_lvar_float_to_lvar_float 59@ = 57@
59@ -= 1.53
60@ = 3.14
61@ = 21
set_lvar_float_to_lvar_float 83@ = 39@
83@ += 10.0
set_lvar_float_to_lvar_float 104@ = 40@
104@ -= 6.0
125@ = 300.0
set_lvar_float_to_lvar_float 84@ = 83@
84@ += 3.0
set_lvar_float_to_lvar_float 105@ = 104@
set_lvar_float_to_lvar_float 126@ = 125@
126@ += 120.0
set_lvar_float_to_lvar_float 85@ = 83@
85@ += 3.0
set_lvar_float_to_lvar_float 106@ = 104@
106@ += 3.0
set_lvar_float_to_lvar_float 127@ = 125@
127@ += 240.0
set_lvar_float_to_lvar_float 86@ = 34@
86@ += 17.5
set_lvar_float_to_lvar_float 107@ = 35@
107@ += 3.0
128@ = 270.0
set_lvar_float_to_lvar_float 87@ = 86@
87@ += 1.0
set_lvar_float_to_lvar_float 108@ = 107@
set_lvar_float_to_lvar_float 129@ = 128@
129@ -= 180.0
set_lvar_float_to_lvar_float 88@ = 39@
88@ -= 2.0
set_lvar_float_to_lvar_float 109@ = 40@
109@ -= 8.0
130@ = 315.0
set_lvar_float_to_lvar_float 89@ = 88@
89@ += 2.5
set_lvar_float_to_lvar_float 110@ = 109@
set_lvar_float_to_lvar_float 131@ = 130@
131@ += 90.0
set_lvar_float_to_lvar_float 90@ = 88@
90@ += 2.5
set_lvar_float_to_lvar_float 111@ = 109@
111@ += 2.5
set_lvar_float_to_lvar_float 132@ = 130@
132@ += 180.0
set_lvar_float_to_lvar_float 91@ = 88@
set_lvar_float_to_lvar_float 112@ = 109@
112@ += 2.5
set_lvar_float_to_lvar_float 133@ = 130@
133@ += 270.0
set_lvar_float_to_lvar_float 92@ = 34@
92@ += 12.0
set_lvar_float_to_lvar_float 113@ = 35@
113@ -= 9.5
134@ = 0.0
set_lvar_float_to_lvar_float 93@ = 92@
93@ -= 0.5
set_lvar_float_to_lvar_float 114@ = 113@
114@ += 1.5
set_lvar_float_to_lvar_float 135@ = 134@
135@ += 180.0
set_lvar_float_to_lvar_float 94@ = 42@
set_lvar_float_to_lvar_float 115@ = 43@
115@ += 5.0
136@ = 200.0
set_lvar_float_to_lvar_float 95@ = 42@
95@ += 3.0
set_lvar_float_to_lvar_float 116@ = 43@
116@ += 3.5
137@ = 170.0
set_lvar_float_to_lvar_float 96@ = 42@
96@ += 4.0
set_lvar_float_to_lvar_float 117@ = 43@
138@ = 0.0
set_lvar_float_to_lvar_float 97@ = 42@
97@ += 5.0
set_lvar_float_to_lvar_float 118@ = 43@
118@ += 2.0
139@ = 270.0
set_lvar_float_to_lvar_float 98@ = 39@
98@ += 1.0
set_lvar_float_to_lvar_float 119@ = 40@
119@ += 6.0
140@ = 270.0
set_lvar_float_to_lvar_float 99@ = 98@
99@ += 1.5
set_lvar_float_to_lvar_float 120@ = 119@
120@ += 1.5
set_lvar_float_to_lvar_float 141@ = 140@
141@ -= 90.0
set_lvar_float_to_lvar_float 100@ = 98@
100@ += 3.0
set_lvar_float_to_lvar_float 121@ = 119@
set_lvar_float_to_lvar_float 142@ = 140@
142@ -= 180.0
set_lvar_float_to_lvar_float 101@ = 98@
101@ += 1.5
set_lvar_float_to_lvar_float 122@ = 119@
122@ -= 1.5
set_lvar_float_to_lvar_float 143@ = 140@
143@ -= 270.0
set_lvar_float_to_lvar_float 102@ = 48@
102@ -= 3.0
set_lvar_float_to_lvar_float 123@ = 49@
123@ -= 1.0
144@ = 0.0
set_lvar_float_to_lvar_float 103@ = 102@
set_lvar_float_to_lvar_float 124@ = 123@
124@ += 1.0
set_lvar_float_to_lvar_float 145@ = 144@
145@ += 180.0
162@ = 20.0
set_lvar_float_to_lvar_float 163@ = 162@
163@ *= 4.0
146@ = 7
gosub @MUSIC1_14072
187@ = 0
188@ = 0
190@ = 0
192@ = 0
193@ = 0
194@ = 0
195@ = 0
197@ = 0
198@ = 0
199@ = 0
200@ = 0
201@ = 0
202@ = 0
203@ = 0
204@ = 0
207@ = 0
208@ = 0
205@ = 0
206@ = 0
209@ = 0
267@ = 0
268@ = 0
269@ = 0
231@ = 0
170@ = 0

:MUSIC1_1557
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_1653
210@(170@,21i) = 0
232@(170@,21i) = 0
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_1639
253@(170@,7i) = 0
260@(170@,7i) = 0

:MUSIC1_1639
170@ += 1
goto @MUSIC1_1557

:MUSIC1_1653
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:MUSIC1_1668
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC1_1692
wait 0
goto @MUSIC1_1668

:MUSIC1_1692
World.ClearArea(809.5818, -1630.573, 12.5469, 100.0, False)
Streaming.LoadScene(809.5818, -1630.573, 12.5469)
Player.MakeGangDisappear
Cutscene.Load('STRAP1A')

:MUSIC1_1746
if 
  not Cutscene.HasLoaded
goto_if_false @MUSIC1_1770
wait 0
goto @MUSIC1_1746

:MUSIC1_1770
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:MUSIC1_1779
if 
  not Cutscene.HasFinished
goto_if_false @MUSIC1_1803
wait 0
goto @MUSIC1_1779

:MUSIC1_1803
Camera.DoFade(0, Fade.Out)

:MUSIC1_1809
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC1_1833
wait 0
goto @MUSIC1_1809

:MUSIC1_1833
Cutscene.Clear
Player.SetControl($player1, False)
Player.MakeGangReappear
Streaming.RequestModel(412)
Streaming.RequestModel(419)
Streaming.RequestModel(467)
Streaming.RequestModel(413)
Streaming.RequestModel(353)
Streaming.RequestModel(13)
Streaming.RequestModel(93)
Streaming.RequestModel(22)
Streaming.RequestModel(99)
Streaming.RequestModel(211)
Streaming.RequestModel(101)
Streaming.RequestModel(217)
Streaming.RequestModel(19)
Streaming.RequestModel(91)
Streaming.RequestModel(55)
Streaming.RequestVehicleMod(#WHEEL_OR1)
StreamedScript.Stream(35)
Streaming.LoadAllModelsNow

:MUSIC1_1922
if or
  not Streaming.HasModelLoaded(412)
  not Streaming.HasModelLoaded(419)
  not Streaming.HasModelLoaded(467)
  not Streaming.HasModelLoaded(413)
  not Streaming.HasModelLoaded(353)
goto_if_false @MUSIC1_1969
wait 0
goto @MUSIC1_1922

:MUSIC1_1969
if 
  not Streaming.HasModelLoaded(13)
goto_if_false @MUSIC1_1995
wait 0
goto @MUSIC1_1969

:MUSIC1_1995
if or
  not Streaming.HasModelLoaded(93)
  not Streaming.HasModelLoaded(22)
  not Streaming.HasModelLoaded(99)
  not Streaming.HasModelLoaded(211)
  not Streaming.HasModelLoaded(101)
  not Streaming.HasModelLoaded(217)
goto_if_false @MUSIC1_2043
wait 0
goto @MUSIC1_1995

:MUSIC1_2043
if or
  not Streaming.HasModelLoaded(19)
  not Streaming.HasModelLoaded(91)
  not Streaming.HasModelLoaded(55)
goto_if_false @MUSIC1_2077
wait 0
goto @MUSIC1_2043

:MUSIC1_2077
if or
  not Streaming.HasVehicleModLoaded(#WHEEL_OR1)
  not StreamedScript.HasLoaded(35)
goto_if_false @MUSIC1_2108
wait 0
goto @MUSIC1_2077

:MUSIC1_2108
Garage.ChangeType('MUL_LAN', GarageType.ForScriptToOpenAndClose)
Path.SwitchPedRoadsOff(502.15, -1913.39, -5.0, 558.86, -1838.87, 10.0)
Streaming.LoadScene(809.5818, -1630.573, 12.5469)
Weather.ForceNow(WeatherType.SunnyLa)
Char.SetCoordinates($scplayer, 809.5818, -1630.573, 12.5469)
Char.SetHeading($scplayer, 176.0)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.SetFadingColor(0, 0, 0)
wait 500
Camera.DoFade(1500, Fade.In)
Player.SetControl($player1, True)
271@ = Blip.AddForCoord(58@, 59@, 60@)
Text.PrintNow('MUS1_5', 10000, 0)
if 
  192@ == 1
goto_if_false @MUSIC1_2489
47@ = Car.Create(413, 0.0, 0.0, -100.0)
272@ = Blip.AddForCar(47@)
55@ = Char.Create(PedType.Mission1, 13, 0.0, 0.0, -100.0)
181@ = Sequence.Open()
Task.StandStill(-1, -2)
Sequence.Close(181@)
170@ = 0

:MUSIC1_2361
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_2422
62@(170@,21i) = Char.Create(PedType.Mission1, 13, 0.0, 0.0, -100.0)
170@ += 1
goto @MUSIC1_2361

:MUSIC1_2422
170@ = 0

:MUSIC1_2429
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_2489
147@(170@,7i) = Car.Create(412, 0.0, 0.0, -100.0)
170@ += 1
goto @MUSIC1_2429

:MUSIC1_2489
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MUSIC1_2515
goto @MUSIC1_15664

:MUSIC1_2515
Weather.ForceNow(WeatherType.SunnyLa)
if 
  193@ <> 1
goto_if_false @MUSIC1_2925
if 
  Char.LocateAnyMeans2D($scplayer, 34@, 35@, 200.0, 200.0, False)
goto_if_false @MUSIC1_2925
World.ClearArea(34@, 35@, 36@, 100.0, False)
gosub @MUSIC1_6819
set_lvar_float_to_lvar_float 274@ = 39@
274@ += 0.15
set_lvar_float_to_lvar_float 275@ = 40@
275@ += 0.15
45@ = Object.CreateNoOffset(#DYN_WOODPILE2, 274@, 275@, 2.6)
set_lvar_float_to_lvar_float 274@ = 42@
274@ += 0.15
set_lvar_float_to_lvar_float 275@ = 43@
275@ += 0.15
46@ = Object.CreateNoOffset(#DYN_WOODPILE2, 274@, 275@, 2.31)
Object.SetScale(45@, 0.5)
Object.SetScale(46@, 0.5)
Object.SetCollisionDamageEffect(45@, False)
Object.SetCollisionDamageEffect(46@, False)
Zone.SwitchAudio('BEACH', True)
wait 1500
gosub @MUSIC1_8085
if 
  not Char.IsDead(55@)
goto_if_false @MUSIC1_2788
Char.FreezePosition(55@, True)

:MUSIC1_2788
if 
  not Car.IsDead(47@)
goto_if_false @MUSIC1_2811
Car.FreezePosition(47@, True)

:MUSIC1_2811
if 
  Object.DoesExist(45@)
goto_if_false @MUSIC1_2834
Object.FreezePosition(45@, True)

:MUSIC1_2834
if 
  Object.DoesExist(46@)
goto_if_false @MUSIC1_2857
Object.FreezePosition(46@, True)

:MUSIC1_2857
37@ = Particle.Create("FIRE", 39@, 40@, 41@, 1)
38@ = Particle.Create("FIRE", 42@, 43@, 44@, 1)
Particle.Play(37@)
Particle.Play(38@)
270@ = 1
193@ = 1

:MUSIC1_2925
if 
  193@ == 1
goto_if_false @MUSIC1_6812
175@, 176@ = Clock.GetTimeOfDay()
if and
  175@ >= 6
  22 > 175@
goto_if_false @MUSIC1_3018
if 
  270@ == 1
goto_if_false @MUSIC1_3011
Particle.Stop(37@)
Particle.Stop(38@)
270@ = 0

:MUSIC1_3011
goto @MUSIC1_3053

:MUSIC1_3018
if 
  270@ == 0
goto_if_false @MUSIC1_3053
Particle.Play(37@)
Particle.Play(38@)
270@ = 1

:MUSIC1_3053
if and
  194@ <> 1
  Char.LocateAnyMeans2D($scplayer, 34@, 35@, 50.0, 50.0, False)
goto_if_false @MUSIC1_3108
gosub @MUSIC1_14944
194@ = 1

:MUSIC1_3108
if 
  203@ == 0
goto_if_false @MUSIC1_6025
if and
  195@ <> 1
  197@ <> 1
  199@ <> 1
goto_if_false @MUSIC1_3314
if and
  not Char.IsDead(55@)
  Char.LocateOnFoot3D($scplayer, 58@, 59@, 60@, 1.2, 1.2, 2.0, True)
goto_if_false @MUSIC1_3314
Blip.Remove(271@)
Char.ClearTasks(55@)
Char.SetHeading(55@, 110.0)
gosub @MUSIC1_12841
Text.PrintHelp('TALK_1')
195@ = 1
196@ = 0
Player.SetControl($player1, False)
Char.SetCoordinates($scplayer, 58@, 59@, 2.3)
Char.SetHeading($scplayer, 290.0)
Camera.SetPositionUnfixed(0.031, -2.152)
wait 1000
Player.SetControl($player1, True)

:MUSIC1_3314
if and
  195@ == 1
  197@ <> 1
goto_if_false @MUSIC1_4324
if 
  not Char.IsDead(55@)
goto_if_false @MUSIC1_4324
if 
  Conversation.IsAtNode(55@, 287@s)
goto_if_false @MUSIC1_4018
Player.SetControl($player1, False)
if 
  not StreamedScript.HasLoaded(35)
goto_if_false @MUSIC1_3400
StreamedScript.Stream(35)

:MUSIC1_3400
Camera.DoFade(1000, Fade.Out)

:MUSIC1_3407
if or
  Camera.GetFadingStatus
  not StreamedScript.HasLoaded(35)
goto_if_false @MUSIC1_3435
wait 0
goto @MUSIC1_3407

:MUSIC1_3435
Text.ClearHelp
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MUSIC1_3480
Char.WarpFromCarToCoord($scplayer, 533.81, -1891.64, -100.0)
goto @MUSIC1_3500

:MUSIC1_3480
Char.SetCoordinates($scplayer, 533.81, -1891.64, -100.0)

:MUSIC1_3500
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
World.ClearArea(533.81, -1891.64, 2.27, 10.0, False)
170@ = 0

:MUSIC1_3538
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_3668
if 
  not Car.IsDead(147@(170@,7i))
goto_if_false @MUSIC1_3645
if 
  Car.Locate3D(147@(170@,7i), 533.81, -1891.64, 2.27, 10.0, 10.0, 10.0, False)
goto_if_false @MUSIC1_3638
Car.Delete(147@(170@,7i))

:MUSIC1_3638
goto @MUSIC1_3654

:MUSIC1_3645
Car.Delete(147@(170@,7i))

:MUSIC1_3654
170@ += 1
goto @MUSIC1_3538

:MUSIC1_3668
if 
  not Char.IsDead(55@)
goto_if_false @MUSIC1_3774
Conversation.ClearForChar(55@)
Char.ClearTasksImmediately(55@)
Char.SetHeading(55@, 110.0)
182@ = Sequence.Open()
Task.PlayAnim(-1, "DAN_LOOP_A", "DANCING", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(182@, True)
Sequence.Close(182@)
Char.PerformSequence(55@, 182@)
Sequence.Clear(182@)

:MUSIC1_3774
Zone.SwitchAudio('BEACH', False)
if 
  not Char.IsDead(65@)
goto_if_false @MUSIC1_3808
Char.ClearTasksImmediately(65@)

:MUSIC1_3808
if 
  not Char.IsDead(66@)
goto_if_false @MUSIC1_3829
Char.ClearTasksImmediately(66@)

:MUSIC1_3829
Text.ClearPrints
Text.PrintNow('MUS1_4', 10000, 0)
170@ = 0

:MUSIC1_3854
if 
  5 > 170@
goto_if_false @MUSIC1_3970
$5314(170@,5f) = 531.18
$5319(170@,5f) = -1893.8
$5324(170@,5f) = 3.45
$5329(170@,5f) = 533.94
$5334(170@,5f) = -1891.82
$5339(170@,5f) = 3.44
170@ += 1
goto @MUSIC1_3854

:MUSIC1_3970
set_global_var_bit_const $d6_trip_skips_available {n} 31
StreamedScript.StartNew(35, 533.81, -1891.64, -100.0, 51@, 1, -1)
197@ = 1
goto @MUSIC1_4324

:MUSIC1_4018
if 
  196@ <> 1
goto_if_false @MUSIC1_4215
if or
  Conversation.IsAtNode(55@, 285@s)
  Conversation.IsAtNode(55@, 289@s)
goto_if_false @MUSIC1_4077
196@ = 1
goto @MUSIC1_4208

:MUSIC1_4077
if 
  Char.LocateAnyMeansChar2D($scplayer, 55@, 5.0, 5.0, False)
goto_if_false @MUSIC1_4122
TIMERB = 0
goto @MUSIC1_4208

:MUSIC1_4122
if 
  TIMERB > 3000
goto_if_false @MUSIC1_4208
Conversation.ClearForChar(55@)
Text.ClearHelp
Char.SetCoordinates(55@, 56@, 57@, -100.0)
Char.SetHeading(55@, 51@)
Char.PerformSequence(55@, 181@)
195@ = 0
196@ = 0
271@ = Blip.AddForCoord(58@, 59@, 60@)

:MUSIC1_4208
goto @MUSIC1_4324

:MUSIC1_4215
if 
  not Char.LocateOnFoot3D($scplayer, 58@, 59@, 60@, 1.2, 1.2, 2.0, False)
goto_if_false @MUSIC1_4324
196@ = 0
Conversation.ClearForChar(55@)
Text.ClearHelp
Char.SetCoordinates(55@, 56@, 57@, -100.0)
Char.SetHeading(55@, 51@)
Char.PerformSequence(55@, 181@)
195@ = 0
271@ = Blip.AddForCoord(58@, 59@, 60@)

:MUSIC1_4324
if and
  197@ == 1
  199@ <> 1
goto_if_false @MUSIC1_4626
if and
  not is_global_var_bit_set_const $d6_trip_skips_available {n} 31
  198@ <> 1
goto_if_false @MUSIC1_4510
Player.SetControl($player1, True)
if 
  not Char.IsDead(55@)
goto_if_false @MUSIC1_4402
Char.ClearTasksImmediately(55@)

:MUSIC1_4402
Text.ClearPrints
if 
  $iDanceReport >= 4000
goto_if_false @MUSIC1_4482
Zone.SwitchAudio('BEACH', True)
gosub @MUSIC1_13713
Text.PrintHelp('TALK_1')
199@ = 1
200@ = 1
196@ = 0
goto @MUSIC1_4510

:MUSIC1_4482
191@ = 1
gosub @MUSIC1_15219
TIMERA = 0
198@ = 1

:MUSIC1_4510
if 
  198@ == 1
goto_if_false @MUSIC1_4626
if and
  is_int_lvar_greater_than_int_lvar 189@ > 188@
  191@ == 1
goto_if_false @MUSIC1_4584
if 
  not Char.IsDead(55@)
goto_if_false @MUSIC1_4577
gosub @MUSIC1_15392

:MUSIC1_4577
goto @MUSIC1_4626

:MUSIC1_4584
if 
  TIMERA > 1000
goto_if_false @MUSIC1_4626
Text.PrintNow('MUS1_8', 5000, 0)
goto @MUSIC1_15646

:MUSIC1_4626
if and
  199@ == 1
  201@ <> 1
goto_if_false @MUSIC1_5227
if 
  not Char.IsDead(55@)
goto_if_false @MUSIC1_5227
if 
  200@ <> 1
goto_if_false @MUSIC1_4786
if 
  Char.LocateOnFoot3D($scplayer, 58@, 59@, 60@, 1.2, 1.2, 2.0, True)
goto_if_false @MUSIC1_4779
Blip.Remove(271@)
Char.ClearTasks(55@)
Char.SetHeading(55@, 110.0)
gosub @MUSIC1_13713
Text.PrintHelp('TALK_1')
200@ = 1
196@ = 0

:MUSIC1_4779
goto @MUSIC1_5227

:MUSIC1_4786
if or
  Conversation.IsAtNode(55@, 'VYES1')
  Conversation.IsAtNode(55@, 'VYES2')
goto_if_false @MUSIC1_4923
if 
  not Car.IsDead(47@)
goto_if_false @MUSIC1_4916
Conversation.ClearForChar(55@)
Text.ClearHelp
Char.SetNextDesiredMoveState(MoveState.Walk)
Char.FreezePosition(55@, False)
Task.EnterCarAsPassenger(55@, 47@, -1, 0)
272@ = Blip.AddForCar(47@)
Blip.SetAsFriendly(272@, True)
200@ = 0
201@ = 1
Text.Print('MUS1_7', 10000, 0)

:MUSIC1_4916
goto @MUSIC1_5227

:MUSIC1_4923
if 
  196@ <> 1
goto_if_false @MUSIC1_5118
if 
  Conversation.IsAtNode(55@, 'VLATE')
goto_if_false @MUSIC1_4980
196@ = 1
goto @MUSIC1_5111

:MUSIC1_4980
if 
  Char.LocateAnyMeansChar2D($scplayer, 55@, 5.0, 5.0, False)
goto_if_false @MUSIC1_5025
TIMERB = 0
goto @MUSIC1_5111

:MUSIC1_5025
if 
  TIMERB > 3000
goto_if_false @MUSIC1_5111
Conversation.ClearForChar(55@)
Text.ClearHelp
Char.SetCoordinates(55@, 56@, 57@, -100.0)
Char.SetHeading(55@, 51@)
Char.PerformSequence(55@, 181@)
200@ = 0
196@ = 0
271@ = Blip.AddForCoord(58@, 59@, 60@)

:MUSIC1_5111
goto @MUSIC1_5227

:MUSIC1_5118
if 
  not Char.LocateOnFoot3D($scplayer, 58@, 59@, 60@, 1.2, 1.2, 2.0, False)
goto_if_false @MUSIC1_5227
196@ = 0
Conversation.ClearForChar(55@)
Text.ClearHelp
Char.SetCoordinates(55@, 56@, 57@, -100.0)
Char.SetHeading(55@, 51@)
Char.PerformSequence(55@, 181@)
200@ = 0
271@ = Blip.AddForCoord(58@, 59@, 60@)

:MUSIC1_5227
if and
  201@ == 1
  202@ <> 1
  not Char.IsDead(55@)
  not Car.IsDead(47@)
goto_if_false @MUSIC1_5330
if 
  Char.IsInCar(55@, 47@)
goto_if_false @MUSIC1_5330
Car.LockDoors(47@, CarLock.Unlocked)
Car.ControlDoor(47@, CarDoor.LeftRearDoor, 1, -1.0)
Car.ControlDoor(47@, CarDoor.RightRearDoor, 1, -1.0)
Car.SetCanBeVisiblyDamaged(47@, True)
202@ = 1

:MUSIC1_5330
if 
  268@ <> 1
goto_if_false @MUSIC1_5770
if and
  Char.LocateAnyMeans2D($scplayer, 34@, 35@, 162@, 162@, False)
  Char.IsShooting($scplayer)
goto_if_false @MUSIC1_5397
268@ = 1
goto @MUSIC1_5571

:MUSIC1_5397
if 
  Char.IsDead(55@)
goto_if_false @MUSIC1_5427
268@ = 1
goto @MUSIC1_5460

:MUSIC1_5427
if or
  Char.HasBeenDamagedByChar(55@, $scplayer)
  Char.IsRespondingToEvent(55@, 31)
goto_if_false @MUSIC1_5460
268@ = 1

:MUSIC1_5460
170@ = 0

:MUSIC1_5467
if and
  is_int_lvar_greater_than_int_lvar 61@ > 170@
  268@ <> 1
goto_if_false @MUSIC1_5571
if 
  Char.IsDead(62@(170@,21i))
goto_if_false @MUSIC1_5527
268@ = 1
goto @MUSIC1_5557

:MUSIC1_5527
if 
  Char.HasBeenDamagedByChar(62@(170@,21i), $scplayer)
goto_if_false @MUSIC1_5557
268@ = 1

:MUSIC1_5557
170@ += 1
goto @MUSIC1_5467

:MUSIC1_5571
if 
  268@ == 1
goto_if_false @MUSIC1_5738
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
if 
  202@ <> 1
goto_if_false @MUSIC1_5634
gosub @MUSIC1_10052
gosub @MUSIC1_10452
goto @MUSIC1_5718

:MUSIC1_5634
if 
  209@ <> 1
goto_if_false @MUSIC1_5666
gosub @MUSIC1_10726
209@ = 1

:MUSIC1_5666
if and
  not Char.IsDead(55@)
  231@ <> 1
goto_if_false @MUSIC1_5718
Char.SetCurrentWeapon(55@, WeaponType.Mp5)
Task.KillCharOnFoot(55@, $scplayer)
231@ = 1
Char.SetKeepTask(55@, True)

:MUSIC1_5718
Zone.SwitchAudio('BEACH', False)
goto @MUSIC1_5770

:MUSIC1_5738
if or
  197@ <> 1
  199@ == 1
goto_if_false @MUSIC1_5770
gosub @MUSIC1_9958

:MUSIC1_5770
if and
  202@ == 1
  268@ == 1
goto_if_false @MUSIC1_5827
if and
  209@ == 1
  269@ <> 1
goto_if_false @MUSIC1_5827
gosub @MUSIC1_11354

:MUSIC1_5827
if and
  207@ <> 1
  not Car.IsDead(47@)
goto_if_false @MUSIC1_5927
if 
  Char.IsInCar($scplayer, 47@)
goto_if_false @MUSIC1_5927
Blip.Remove(272@)
207@ = 1
208@ = 1
Car.FreezePosition(47@, False)
Camera.SetBehindPlayer
Text.PrintNow('MUS1_19', 7000, 0)
273@ = Blip.AddForCoord(52@, 53@, 54@)

:MUSIC1_5927
if 
  207@ == 1
goto_if_false @MUSIC1_6025
gosub @MUSIC1_14778
if 
  not Car.IsDead(47@)
goto_if_false @MUSIC1_6025
if 
  not Car.Locate2D(47@, 34@, 35@, 162@, 162@, False)
goto_if_false @MUSIC1_6025
Car.SetOnlyDamagedByPlayer(47@, False)
203@ = 1
Zone.SwitchAudio('BEACH', False)

:MUSIC1_6025
if 
  203@ == 1
goto_if_false @MUSIC1_6555
if and
  204@ <> 1
  not Char.IsDead(55@)
  not Car.IsDead(47@)
goto_if_false @MUSIC1_6115
177@ = Sequence.Open()
Task.LeaveCarImmediately(-1, 47@)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(177@)
Char.PerformSequence(55@, 177@)
Sequence.Clear(177@)
204@ = 1

:MUSIC1_6115
if and
  204@ == 1
  not Char.IsDead(55@)
  205@ <> 1
goto_if_false @MUSIC1_6228
178@ = Char.GetScriptTaskStatus(55@, 1560)
if 
  not is_int_lvar_equal_to_constant 178@ == 7
goto_if_false @MUSIC1_6228
179@ = Char.GetSequenceProgress(55@)
if 
  179@ >= 0
goto_if_false @MUSIC1_6228
191@ = 0
gosub @MUSIC1_15219
Char.SetCurrentWeapon(55@, WeaponType.Mp5)
205@ = 1

:MUSIC1_6228
if and
  205@ == 1
  206@ <> 1
goto_if_false @MUSIC1_6336
if and
  is_int_lvar_greater_than_int_lvar 189@ > 188@
  191@ == 0
goto_if_false @MUSIC1_6329
if 
  not Char.IsDead(55@)
goto_if_false @MUSIC1_6309
gosub @MUSIC1_15392
goto @MUSIC1_6322

:MUSIC1_6309
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
206@ = 1

:MUSIC1_6322
goto @MUSIC1_6336

:MUSIC1_6329
206@ = 1

:MUSIC1_6336
if 
  209@ <> 1
goto_if_false @MUSIC1_6368
gosub @MUSIC1_10726
209@ = 1

:MUSIC1_6368
if 
  269@ <> 1
goto_if_false @MUSIC1_6393
gosub @MUSIC1_11354

:MUSIC1_6393
if and
  209@ == 1
  267@ <> 1
goto_if_false @MUSIC1_6462
if 
  not Char.LocateAnyMeans2D($scplayer, 34@, 35@, 163@, 163@, False)
goto_if_false @MUSIC1_6462
gosub @MUSIC1_10228
267@ = 1

:MUSIC1_6462
if and
  209@ == 1
  not Car.IsDead(47@)
  269@ <> 1
goto_if_false @MUSIC1_6548
if and
  Char.IsInCar($scplayer, 47@)
  Char.LocateInCar2D($scplayer, 52@, 53@, 50.0, 50.0, False)
goto_if_false @MUSIC1_6548
gosub @MUSIC1_11771
269@ = 1

:MUSIC1_6548
gosub @MUSIC1_14778

:MUSIC1_6555
if 
  202@ <> 1
goto_if_false @MUSIC1_6664
if 
  Char.IsDead(55@)
goto_if_false @MUSIC1_6621
Text.ClearPrints
Text.PrintNow('MUS1_18', 5000, 0)
goto @MUSIC1_15646
goto @MUSIC1_6664

:MUSIC1_6621
if 
  268@ == 1
goto_if_false @MUSIC1_6664
Text.ClearPrints
Text.PrintNow('MUS1_21', 5000, 0)
goto @MUSIC1_15646

:MUSIC1_6664
if 
  Car.IsDead(47@)
goto_if_false @MUSIC1_6712
Text.ClearPrints
Text.PrintNow('MUS1_20', 5000, 0)
goto @MUSIC1_15646
goto @MUSIC1_6812

:MUSIC1_6712
if 
  207@ == 1
goto_if_false @MUSIC1_6812
if 
  Char.IsInCar($scplayer, 47@)
goto_if_false @MUSIC1_6812
if 
  Car.Locate3D(47@, 52@, 53@, 54@, 4.0, 4.0, 2.0, True)
goto_if_false @MUSIC1_6812
Player.SetControl($player1, False)
gosub @MUSIC1_11889
goto @MUSIC1_15664

:MUSIC1_6812
goto @MUSIC1_2489

:MUSIC1_6819
170@ = 0
164@ = -30.0

:MUSIC1_6836
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_7108
165@ = Math.Cos(164@)
166@ = Math.Sin(164@)
mult_float_lvar_by_float_lvar 165@ *= 162@
mult_float_lvar_by_float_lvar 166@ *= 162@
add_float_lvar_to_float_lvar 165@ += 34@
add_float_lvar_to_float_lvar 166@ += 35@
if or
  170@ == 0
  170@ == 3
  170@ == 6
goto_if_false @MUSIC1_6965
147@(170@,7i) = Car.Create(412, 165@, 166@, -100.0)
goto @MUSIC1_7043

:MUSIC1_6965
if or
  170@ == 1
  170@ == 7
goto_if_false @MUSIC1_7020
147@(170@,7i) = Car.Create(467, 165@, 166@, -100.0)
goto @MUSIC1_7043

:MUSIC1_7020
147@(170@,7i) = Car.Create(419, 165@, 166@, -100.0)

:MUSIC1_7043
168@ = 90.0
add_float_lvar_to_float_lvar 168@ += 164@
Car.SetHeading(147@(170@,7i), 168@)
Car.LockDoors(147@(170@,7i), CarLock.Locked)
164@ += 37.0
170@ += 1
goto @MUSIC1_6836

:MUSIC1_7108
Car.SetModelComponents(413, 0, 0)
47@ = Car.Create(413, 48@, 49@, 50@)
276@ = Car.AddMod(47@, #WHEEL_OR1)
Car.SetHeading(47@, 51@)
Car.SetIdle(47@)
Car.SetOnlyDamagedByPlayer(47@, True)
Car.SetHealth(47@, 5000)
Car.ChangeColor(47@, 4, 4)
Car.SetCanBurstTires(47@, False)
Car.SetTraction(47@, 2.0)
Car.OpenDoor(47@, CarDoor.LeftRearDoor)
Car.OpenDoor(47@, CarDoor.RightRearDoor)
Car.LockDoors(47@, CarLock.LockoutPlayerOnly)
Car.SetCanBeVisiblyDamaged(47@, False)
wait 1000
55@ = Char.Create(PedType.Mission1, 13, 56@, 57@, -100.0)
Char.SetHeading(55@, 51@)
Char.SetOnlyDamagedByPlayer(55@, True)
Char.GiveWeapon(55@, WeaponType.Mp5, 99999)
Char.SetCurrentWeapon(55@, WeaponType.Unarmed)
231@ = 0
180@ = DecisionMakerChar.Copy(65542)
DecisionMakerChar.AddEventResponse(180@, 31, 413, 100.0, 100.0, 100.0, 100.0, False, True)
Char.SetDecisionMaker(55@, 180@)
170@ = 0

:MUSIC1_7352
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_8025
if or
  170@ == 0
  170@ == 4
  170@ == 7
  170@ == 11
goto_if_false @MUSIC1_7449
62@(170@,21i) = Char.Create(PedType.Mission1, 22, 83@(170@,21f), 104@(170@,21f), -100.0)
goto @MUSIC1_7945

:MUSIC1_7449
if or
  170@ == 6
  170@ == 3
  170@ == 2
goto_if_false @MUSIC1_7520
62@(170@,21i) = Char.Create(PedType.Mission1, 101, 83@(170@,21f), 104@(170@,21f), -100.0)
goto @MUSIC1_7945

:MUSIC1_7520
if or
  170@ == 9
  170@ == 14
  170@ == 17
  170@ == 19
goto_if_false @MUSIC1_7599
62@(170@,21i) = Char.Create(PedType.Mission1, 211, 83@(170@,21f), 104@(170@,21f), -100.0)
goto @MUSIC1_7945

:MUSIC1_7599
if 
  170@ == 12
goto_if_false @MUSIC1_7656
62@(170@,21i) = Char.Create(PedType.Mission1, 99, 83@(170@,21f), 104@(170@,21f), -100.0)
goto @MUSIC1_7945

:MUSIC1_7656
if or
  170@ == 16
  170@ == 10
goto_if_false @MUSIC1_7720
62@(170@,21i) = Char.Create(PedType.Mission1, 93, 83@(170@,21f), 104@(170@,21f), -100.0)
goto @MUSIC1_7945

:MUSIC1_7720
if or
  170@ == 5
  170@ == 15
goto_if_false @MUSIC1_7785
62@(170@,21i) = Char.Create(PedType.Mission1, 217, 83@(170@,21f), 104@(170@,21f), -100.0)
goto @MUSIC1_7945

:MUSIC1_7785
if or
  170@ == 8
  170@ == 13
goto_if_false @MUSIC1_7849
62@(170@,21i) = Char.Create(PedType.Mission1, 19, 83@(170@,21f), 104@(170@,21f), -100.0)
goto @MUSIC1_7945

:MUSIC1_7849
if or
  170@ == 1
  170@ == 20
goto_if_false @MUSIC1_7913
62@(170@,21i) = Char.Create(PedType.Mission1, 55, 83@(170@,21f), 104@(170@,21f), -100.0)
goto @MUSIC1_7945

:MUSIC1_7913
62@(170@,21i) = Char.Create(PedType.Mission1, 91, 83@(170@,21f), 104@(170@,21f), -100.0)

:MUSIC1_7945
Char.SetHeading(62@(170@,21i), 125@(170@,21f))
Char.GiveWeapon(62@(170@,21i), WeaponType.Mp5, 99999)
Char.SetCurrentWeapon(62@(170@,21i), WeaponType.Unarmed)
Char.SetDecisionMaker(62@(170@,21i), 180@)
210@(170@,21i) = 0
170@ += 1
goto @MUSIC1_7352

:MUSIC1_8025
Streaming.MarkModelAsNoLongerNeeded(412)
Streaming.MarkModelAsNoLongerNeeded(419)
Streaming.MarkModelAsNoLongerNeeded(467)
Streaming.MarkModelAsNoLongerNeeded(93)
Streaming.MarkModelAsNoLongerNeeded(22)
Streaming.MarkModelAsNoLongerNeeded(99)
Streaming.MarkModelAsNoLongerNeeded(211)
Streaming.MarkModelAsNoLongerNeeded(101)
Streaming.MarkModelAsNoLongerNeeded(217)
Streaming.MarkModelAsNoLongerNeeded(19)
Streaming.MarkModelAsNoLongerNeeded(91)
Streaming.MarkModelAsNoLongerNeeded(55)
Streaming.MarkVehicleModAsNoLongerNeeded(#WHEEL_OR1)
return 

:MUSIC1_8085
Streaming.RequestAnimation("BAR")
Streaming.RequestAnimation("DANCING")
Streaming.RequestAnimation("BEACH")
Streaming.RequestAnimation("SCRATCHING")

:MUSIC1_8126
if or
  not Streaming.HasAnimationLoaded("BAR")
  not Streaming.HasAnimationLoaded("DANCING")
  not Streaming.HasAnimationLoaded("BEACH")
  not Streaming.HasAnimationLoaded("SCRATCHING")
goto_if_false @MUSIC1_8189
wait 0
goto @MUSIC1_8126

:MUSIC1_8189
181@ = Sequence.Open()
Task.PlayAnim(-1, "SCLNG_R", "SCRATCHING", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(181@, True)
Sequence.Close(181@)
if 
  not Char.IsDead(55@)
goto_if_false @MUSIC1_8270
Char.PerformSequence(55@, 181@)

:MUSIC1_8270
if 
  not Char.IsDead(62@)
goto_if_false @MUSIC1_8354
183@ = Sequence.Open()
Task.PlayAnim(-1, "DNCE_M_A", "DANCING", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(62@, 183@)
Sequence.Clear(183@)

:MUSIC1_8354
if 
  not Char.IsDead(63@)
goto_if_false @MUSIC1_8438
183@ = Sequence.Open()
Task.PlayAnim(-1, "DNCE_M_B", "DANCING", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(63@, 183@)
Sequence.Clear(183@)

:MUSIC1_8438
if 
  not Char.IsDead(64@)
goto_if_false @MUSIC1_8522
183@ = Sequence.Open()
Task.PlayAnim(-1, "DNCE_M_D", "DANCING", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(64@, 183@)
Sequence.Clear(183@)

:MUSIC1_8522
if and
  not Char.IsDead(65@)
  not Char.IsDead(66@)
goto_if_false @MUSIC1_8567
Task.ChatWithChar(65@, 66@, True, 1)
Task.ChatWithChar(66@, 65@, False, 1)

:MUSIC1_8567
if 
  not Char.IsDead(67@)
goto_if_false @MUSIC1_8653
183@ = Sequence.Open()
Task.PlayAnim(-1, "LAY_BAC_LOOP", "BEACH", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(67@, 183@)
Sequence.Clear(183@)

:MUSIC1_8653
if 
  not Char.IsDead(68@)
goto_if_false @MUSIC1_8741
183@ = Sequence.Open()
Task.PlayAnim(-1, "PARKSIT_M_LOOP", "BEACH", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(68@, 183@)
Sequence.Clear(183@)

:MUSIC1_8741
if 
  not Char.IsDead(69@)
goto_if_false @MUSIC1_8827
183@ = Sequence.Open()
Task.PlayAnim(-1, "LAY_BAC_LOOP", "BEACH", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(69@, 183@)
Sequence.Clear(183@)

:MUSIC1_8827
if 
  not Char.IsDead(70@)
goto_if_false @MUSIC1_8915
183@ = Sequence.Open()
Task.PlayAnim(-1, "PARKSIT_M_LOOP", "BEACH", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(70@, 183@)
Sequence.Clear(183@)

:MUSIC1_8915
if 
  not Char.IsDead(71@)
goto_if_false @MUSIC1_9003
183@ = Sequence.Open()
Task.PlayAnim(-1, "PARKSIT_W_LOOP", "BEACH", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(71@, 183@)
Sequence.Clear(183@)

:MUSIC1_9003
if 
  not Char.IsDead(72@)
goto_if_false @MUSIC1_9091
183@ = Sequence.Open()
Task.PlayAnim(-1, "PARKSIT_M_LOOP", "BEACH", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(72@, 183@)
Sequence.Clear(183@)

:MUSIC1_9091
if 
  not Char.IsDead(73@)
goto_if_false @MUSIC1_9179
183@ = Sequence.Open()
Task.PlayAnim(-1, "PARKSIT_M_LOOP", "BEACH", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(73@, 183@)
Sequence.Clear(183@)

:MUSIC1_9179
if 
  not Char.IsDead(74@)
goto_if_false @MUSIC1_9265
183@ = Sequence.Open()
Task.PlayAnim(-1, "LAY_BAC_LOOP", "BEACH", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(74@, 183@)
Sequence.Clear(183@)

:MUSIC1_9265
if 
  not Char.IsDead(75@)
goto_if_false @MUSIC1_9345
183@ = Sequence.Open()
Task.PlayAnim(-1, "BATHER", "BEACH", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(75@, 183@)
Sequence.Clear(183@)

:MUSIC1_9345
if 
  not Char.IsDead(76@)
goto_if_false @MUSIC1_9434
183@ = Sequence.Open()
Task.PlayAnim(-1, "SITNWAIT_LOOP_W", "BEACH", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(76@, 183@)
Sequence.Clear(183@)

:MUSIC1_9434
if 
  not Char.IsDead(77@)
goto_if_false @MUSIC1_9518
183@ = Sequence.Open()
Task.PlayAnim(-1, "DNCE_M_B", "DANCING", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(77@, 183@)
Sequence.Clear(183@)

:MUSIC1_9518
if 
  not Char.IsDead(78@)
goto_if_false @MUSIC1_9602
183@ = Sequence.Open()
Task.PlayAnim(-1, "DNCE_M_C", "DANCING", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(78@, 183@)
Sequence.Clear(183@)

:MUSIC1_9602
if 
  not Char.IsDead(79@)
goto_if_false @MUSIC1_9686
183@ = Sequence.Open()
Task.PlayAnim(-1, "DNCE_M_D", "DANCING", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(79@, 183@)
Sequence.Clear(183@)

:MUSIC1_9686
if 
  not Char.IsDead(80@)
goto_if_false @MUSIC1_9770
183@ = Sequence.Open()
Task.PlayAnim(-1, "DNCE_M_E", "DANCING", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(183@, True)
Sequence.Close(183@)
Char.PerformSequence(80@, 183@)
Sequence.Clear(183@)

:MUSIC1_9770
if 
  not Char.IsDead(81@)
goto_if_false @MUSIC1_9863
173@ = Sequence.Open()
Task.PlayAnim(-1, "DNK_STNDF_LOOP", "BAR", 4.0, False, False, False, True, -1)
Task.Pause(-1, 4000)
Sequence.SetToRepeat(173@, True)
Sequence.Close(173@)
Char.PerformSequence(81@, 173@)
Sequence.Clear(173@)

:MUSIC1_9863
if 
  not Char.IsDead(82@)
goto_if_false @MUSIC1_9956
174@ = Sequence.Open()
Task.PlayAnim(-1, "DNK_STNDF_LOOP", "BAR", 4.0, False, False, False, True, -1)
Task.Pause(-1, 2200)
Sequence.SetToRepeat(174@, True)
Sequence.Close(174@)
Char.PerformSequence(82@, 174@)
Sequence.Clear(174@)

:MUSIC1_9956
return 

:MUSIC1_9958
if and
  not Char.IsDead(65@)
  not Char.IsDead(66@)
goto_if_false @MUSIC1_10050
277@ = Char.GetScriptTaskStatus(65@, 1655)
278@ = Char.GetScriptTaskStatus(66@, 1655)
if and
  is_int_lvar_equal_to_constant 277@ == 7
  is_int_lvar_equal_to_constant 278@ == 7
goto_if_false @MUSIC1_10050
Task.ChatWithChar(65@, 66@, True, 1)
Task.ChatWithChar(66@, 65@, False, 1)

:MUSIC1_10050
return 

:MUSIC1_10052
170@ = 5

:MUSIC1_10059
if 
  8 >= 170@
goto_if_false @MUSIC1_10167
if and
  not Char.IsDead(62@(170@,21i))
  210@(170@,21i) == 0
goto_if_false @MUSIC1_10153
Char.SetCurrentWeapon(62@(170@,21i), WeaponType.Mp5)
Task.KillCharOnFoot(62@(170@,21i), $scplayer)
210@(170@,21i) = 1
Char.SetKeepTask(62@(170@,21i), True)

:MUSIC1_10153
170@ += 1
goto @MUSIC1_10059

:MUSIC1_10167
if and
  not Char.IsDead(55@)
  231@ == 0
goto_if_false @MUSIC1_10226
Char.SetCurrentWeapon(55@, WeaponType.Mp5)
Char.FreezePosition(55@, False)
Task.KillCharOnFoot(55@, $scplayer)
231@ = 1
Char.SetKeepTask(55@, True)

:MUSIC1_10226
return 

:MUSIC1_10228
170@ = 0

:MUSIC1_10235
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_10339
if 
  232@(170@,21i) <> 1
goto_if_false @MUSIC1_10325
if 
  not Char.IsDead(62@(170@,21i))
goto_if_false @MUSIC1_10325
if 
  not Char.IsOnScreen(62@(170@,21i))
goto_if_false @MUSIC1_10325
Char.Delete(62@(170@,21i))

:MUSIC1_10325
170@ += 1
goto @MUSIC1_10235

:MUSIC1_10339
170@ = 0

:MUSIC1_10346
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_10450
if 
  253@(170@,7i) <> 1
goto_if_false @MUSIC1_10436
if 
  not Car.IsDead(147@(170@,7i))
goto_if_false @MUSIC1_10436
if 
  not Car.IsOnScreen(147@(170@,7i))
goto_if_false @MUSIC1_10436
Car.Delete(147@(170@,7i))

:MUSIC1_10436
170@ += 1
goto @MUSIC1_10346

:MUSIC1_10450
return 

:MUSIC1_10452
170@ = 0

:MUSIC1_10459
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_10570
if 
  not Char.IsDead(62@(170@,21i))
goto_if_false @MUSIC1_10556
if or
  5 > 170@
  170@ > 8
goto_if_false @MUSIC1_10556
Task.SmartFleeChar(62@(170@,21i), $scplayer, 400.0, 9999999)
Char.SetKeepTask(62@(170@,21i), True)

:MUSIC1_10556
170@ += 1
goto @MUSIC1_10459

:MUSIC1_10570
if 
  not Car.IsDead(148@)
goto_if_false @MUSIC1_10647
Car.LockDoors(148@, CarLock.LockoutPlayerOnly)
if 
  not Char.IsDead(77@)
goto_if_false @MUSIC1_10619
Task.EnterCarAsDriver(77@, 148@, -1)

:MUSIC1_10619
if 
  not Char.IsDead(78@)
goto_if_false @MUSIC1_10647
Task.EnterCarAsPassenger(78@, 148@, -1, 0)

:MUSIC1_10647
if 
  not Car.IsDead(149@)
goto_if_false @MUSIC1_10724
Car.LockDoors(149@, CarLock.LockoutPlayerOnly)
if 
  not Char.IsDead(79@)
goto_if_false @MUSIC1_10696
Task.EnterCarAsDriver(79@, 149@, -1)

:MUSIC1_10696
if 
  not Char.IsDead(80@)
goto_if_false @MUSIC1_10724
Task.EnterCarAsPassenger(80@, 149@, -1, 0)

:MUSIC1_10724
return 

:MUSIC1_10726
if 
  not Car.IsDead(47@)
goto_if_false @MUSIC1_11352
169@ = 0
172@ = 0

:MUSIC1_10756
if 
  is_int_lvar_greater_than_int_lvar 146@ > 172@
goto_if_false @MUSIC1_11063
if 
  not Car.IsDead(147@(172@,7i))
goto_if_false @MUSIC1_11049
161@ = Car.GetDriver(147@(172@,7i))
if and
  161@ == -1
  253@(172@,7i) <> 1
  2 > 169@
goto_if_false @MUSIC1_11049
171@ = 0

:MUSIC1_10850
if 
  is_int_lvar_greater_than_int_lvar 61@ > 171@
goto_if_false @MUSIC1_11049
if and
  not Char.IsDead(62@(171@,21i))
  232@(171@,21i) <> 1
goto_if_false @MUSIC1_11035
Car.LockDoors(147@(172@,7i), CarLock.LockoutPlayerOnly)
Task.CarMission(62@(171@,21i), 147@(172@,7i), -1, CarMission.RamPlayerFaraway, 30.0, DrivingMode.AvoidCars)
set_lvar_int_to_lvar_int 154@(172@,7i) = 62@(171@,21i)
260@(172@,7i) = 1
Car.SetHeavy(147@(172@,7i), True)
Car.SetStrong(147@(172@,7i), True)
Car.SetOnlyDamagedByPlayer(147@(172@,7i), True)
232@(171@,21i) = 1
253@(172@,7i) = 1
169@ += 1
set_lvar_int_to_lvar_int 171@ = 61@

:MUSIC1_11035
171@ += 1
goto @MUSIC1_10850

:MUSIC1_11049
172@ += 1
goto @MUSIC1_10756

:MUSIC1_11063
DecisionMaker.Remove(180@)
180@ = DecisionMakerChar.Copy(-1)
DecisionMakerChar.ClearEventResponse(180@, 7)
170@ = 0

:MUSIC1_11089
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_11328
if 
  not Char.IsDead(62@(170@,21i))
goto_if_false @MUSIC1_11314
if 
  232@(170@,21i) <> 1
goto_if_false @MUSIC1_11291
if and
  170@ >= 5
  8 >= 170@
goto_if_false @MUSIC1_11251
Char.SetStayInSamePlace(62@(170@,21i), True)
Char.SetCurrentWeapon(62@(170@,21i), WeaponType.Mp5)
Task.KillCharOnFoot(62@(170@,21i), $scplayer)
210@(170@,21i) = 1
Char.SetKeepTask(62@(170@,21i), True)
Char.SetRelationship(62@(170@,21i), RelationshipType.Hate, PedType.Player1)
goto @MUSIC1_11284

:MUSIC1_11251
Task.SmartFleeChar(62@(170@,21i), $scplayer, 400.0, 9999999)
Char.SetKeepTask(62@(170@,21i), True)

:MUSIC1_11284
goto @MUSIC1_11302

:MUSIC1_11291
Char.SetKeepTask(62@(170@,21i), False)

:MUSIC1_11302
Char.SetDecisionMaker(62@(170@,21i), 180@)

:MUSIC1_11314
170@ += 1
goto @MUSIC1_11089

:MUSIC1_11328
if 
  not Char.IsDead(55@)
goto_if_false @MUSIC1_11352
Char.SetDecisionMaker(55@, 180@)

:MUSIC1_11352
return 

:MUSIC1_11354
if 
  not Car.IsDead(47@)
goto_if_false @MUSIC1_11586
172@ = 0

:MUSIC1_11377
if 
  is_int_lvar_greater_than_int_lvar 146@ > 172@
goto_if_false @MUSIC1_11586
if and
  not Car.IsDead(147@(172@,7i))
  253@(172@,7i) == 1
goto_if_false @MUSIC1_11572
if 
  not Char.IsDead(154@(172@,7i))
goto_if_false @MUSIC1_11572
if and
  not Char.IsInCar(154@(172@,7i), 147@(172@,7i))
  260@(172@,7i) == 0
goto_if_false @MUSIC1_11523
Task.CarMission(154@(172@,7i), 147@(172@,7i), -1, CarMission.RamPlayerFaraway, 30.0, DrivingMode.AvoidCars)
260@(172@,7i) = 1

:MUSIC1_11523
if and
  Char.IsInCar(154@(172@,7i), 147@(172@,7i))
  260@(172@,7i) == 1
goto_if_false @MUSIC1_11572
260@(172@,7i) = 0

:MUSIC1_11572
172@ += 1
goto @MUSIC1_11377

:MUSIC1_11586
return 
170@ = 0

:MUSIC1_11595
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_11769
if and
  not Car.IsDead(147@(170@,7i))
  253@(170@,7i) == 1
goto_if_false @MUSIC1_11755
161@ = Car.GetDriver(147@(170@,7i))
if and
  not Car.IsOnScreen(147@(170@,7i))
  161@ <> -1
  not Char.LocateAnyMeansCar2D($scplayer, 147@(170@,7i), 100.0, 100.0, False)
goto_if_false @MUSIC1_11755
165@, 166@, 167@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, -10.0, -1.0)
Car.SetCoordinates(147@(170@,7i), 165@, 166@, 167@)

:MUSIC1_11755
170@ += 1
goto @MUSIC1_11595

:MUSIC1_11769
return 

:MUSIC1_11771
172@ = 0

:MUSIC1_11778
if 
  is_int_lvar_greater_than_int_lvar 146@ > 172@
goto_if_false @MUSIC1_11887
if and
  not Car.IsDead(147@(172@,7i))
  not Char.IsDead(154@(172@,7i))
  253@(172@,7i) == 1
goto_if_false @MUSIC1_11873
Task.CarDriveToCoord(154@(172@,7i), 147@(172@,7i), 34@, 35@, 36@, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:MUSIC1_11873
172@ += 1
goto @MUSIC1_11778

:MUSIC1_11887
return 

:MUSIC1_11889
Camera.DoFade(1000, Fade.Out)

:MUSIC1_11896
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC1_11920
wait 0
goto @MUSIC1_11896

:MUSIC1_11920
Garage.Open('MUL_LAN')

:MUSIC1_11931
if 
  not Garage.IsOpen('MUL_LAN')
goto_if_false @MUSIC1_11964
wait 0
goto @MUSIC1_11931

:MUSIC1_11964
if 
  Car.IsDead(47@)
goto_if_false @MUSIC1_12005
Text.ClearPrints
Text.PrintNow('MUS1_20', 5000, 0)
goto @MUSIC1_15646

:MUSIC1_12005
World.ClearArea(52@, 53@, 54@, 50.0, False)
172@ = 0

:MUSIC1_12030
if 
  is_int_lvar_greater_than_int_lvar 146@ > 172@
goto_if_false @MUSIC1_12103
if 
  253@(172@,7i) == 1
goto_if_false @MUSIC1_12089
Char.Delete(154@(172@,7i))
Car.Delete(147@(172@,7i))

:MUSIC1_12089
172@ += 1
goto @MUSIC1_12030

:MUSIC1_12103
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Char.HideWeaponForScriptedCutscene($scplayer, True)
if 
  not Car.IsDead(47@)
goto_if_false @MUSIC1_12185
Car.SetCoordinates(47@, 52@, 53@, 54@)
Car.SetHeading(47@, 0.0)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @MUSIC1_12185
Char.WarpIntoCar($scplayer, 47@)

:MUSIC1_12185
wait 500
Camera.SetFixedPosition(1640.75, -1528.1, 14.25, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1642.49, -1522.89, 14.11, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:MUSIC1_12248
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC1_12272
wait 0
goto @MUSIC1_12248

:MUSIC1_12272
if 
  Car.IsDead(47@)
goto_if_false @MUSIC1_12313
Text.ClearPrints
Text.PrintNow('MUS1_20', 5000, 0)
goto @MUSIC1_15646

:MUSIC1_12313
279@ = 1
skip_cutscene_start_internal @MUSIC1_12579
if 
  not Car.IsDead(47@)
goto_if_false @MUSIC1_12452
280@ = Sequence.Open()
Task.CarDriveToCoord(-1, 47@, 1643.48, -1515.73, 13.82, 5.0, DriveMode.Accurate, 0, DrivingMode.AvoidCars)
Task.LeaveCar(-1, 47@)
Task.GoStraightToCoord(-1, 1641.91, -1517.64, 12.62, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 1641.91, -1522.36, 12.61, MoveState.Walk, -1)
Sequence.Close(280@)
Char.PerformSequence($scplayer, 280@)
Sequence.Clear(280@)

:MUSIC1_12452
wait 1000
178@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  not is_int_lvar_equal_to_constant 178@ == 7
goto_if_false @MUSIC1_12567
179@ = Char.GetSequenceProgress($scplayer)

:MUSIC1_12494
if and
  1 >= 179@
  not is_int_lvar_equal_to_constant 178@ == 7
goto_if_false @MUSIC1_12567
wait 0
178@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  not is_int_lvar_equal_to_constant 178@ == 7
goto_if_false @MUSIC1_12560
179@ = Char.GetSequenceProgress($scplayer)

:MUSIC1_12560
goto @MUSIC1_12494

:MUSIC1_12567
wait 2000
279@ = 0

:MUSIC1_12579
skip_cutscene_end 
if 
  279@ == 1
goto_if_false @MUSIC1_12599

:MUSIC1_12599
Camera.DoFade(500, Fade.Out)

:MUSIC1_12606
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC1_12630
wait 0
goto @MUSIC1_12606

:MUSIC1_12630
Garage.Close('MUL_LAN')

:MUSIC1_12641
if 
  not Garage.IsClosed('MUL_LAN')
goto_if_false @MUSIC1_12674
wait 0
goto @MUSIC1_12641

:MUSIC1_12674
if 
  Car.IsDead(47@)
goto_if_false @MUSIC1_12715
Text.ClearPrints
Text.PrintNow('MUS1_20', 5000, 0)
goto @MUSIC1_15646

:MUSIC1_12715
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.ClearTasksImmediately($scplayer)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MUSIC1_12764
Char.WarpFromCarToCoord($scplayer, 52@, 53@, 54@)
goto @MUSIC1_12778

:MUSIC1_12764
Char.SetCoordinates($scplayer, 52@, 53@, 54@)

:MUSIC1_12778
Char.SetHeading($scplayer, 180.0)
Car.Delete(47@)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Camera.DoFade(500, Fade.In)

:MUSIC1_12815
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC1_12839
wait 0
goto @MUSIC1_12815

:MUSIC1_12839
return 

:MUSIC1_12841
Conversation.StartSettingUp(55@)
$bikehealth_s4 = Math.RandomIntInRange(0, 2)
$m1_random_int = Math.RandomIntInRange(0, 3)
if 
  $bikehealth_s4 == 0
goto_if_false @MUSIC1_13112
switch_start $m1_random_int {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @MUSIC1_13098 {caseNum1} 0 {caseLabel1} @MUSIC1_12945 {caseNum2} 1 {caseLabel2} @MUSIC1_12996 {caseNum3} 2 {caseLabel3} @MUSIC1_13047 {caseNum4} -1 {caseLabel4} @MUSIC1_13105 {caseNum5} -1 {caseLabel5} @MUSIC1_13105 {caseNum6} -1 {caseLabel6} @MUSIC1_13105 {caseNum7} -1 {caseLabel7} @MUSIC1_13105

:MUSIC1_12945
set_lvar_text_label 281@s = 'HI1'
set_lvar_int_to_constant 291@ = 42617
set_lvar_int_to_constant 292@ = 42619
set_lvar_int_to_constant 293@ = 42618
goto @MUSIC1_13105

:MUSIC1_12996
set_lvar_text_label 281@s = 'HI3'
set_lvar_int_to_constant 291@ = 42623
set_lvar_int_to_constant 292@ = 42625
set_lvar_int_to_constant 293@ = 42624
goto @MUSIC1_13105

:MUSIC1_13047
set_lvar_text_label 281@s = 'HI5'
set_lvar_int_to_constant 291@ = 42629
set_lvar_int_to_constant 292@ = 42631
set_lvar_int_to_constant 293@ = 42630
goto @MUSIC1_13105

:MUSIC1_13098
goto @MUSIC1_13105

:MUSIC1_13105
goto @MUSIC1_13335

:MUSIC1_13112
switch_start $m1_random_int {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @MUSIC1_13328 {caseNum1} 0 {caseLabel1} @MUSIC1_13175 {caseNum2} 1 {caseLabel2} @MUSIC1_13226 {caseNum3} 2 {caseLabel3} @MUSIC1_13277 {caseNum4} -1 {caseLabel4} @MUSIC1_13335 {caseNum5} -1 {caseLabel5} @MUSIC1_13335 {caseNum6} -1 {caseLabel6} @MUSIC1_13335 {caseNum7} -1 {caseLabel7} @MUSIC1_13335

:MUSIC1_13175
set_lvar_text_label 281@s = 'HI2'
set_lvar_int_to_constant 291@ = 42620
set_lvar_int_to_constant 292@ = 42622
set_lvar_int_to_constant 293@ = 42621
goto @MUSIC1_13335

:MUSIC1_13226
set_lvar_text_label 281@s = 'HI4'
set_lvar_int_to_constant 291@ = 42626
set_lvar_int_to_constant 292@ = 42628
set_lvar_int_to_constant 293@ = 42627
goto @MUSIC1_13335

:MUSIC1_13277
set_lvar_text_label 281@s = 'HI6'
set_lvar_int_to_constant 291@ = 42632
set_lvar_int_to_constant 292@ = 42634
set_lvar_int_to_constant 293@ = 42633
goto @MUSIC1_13335

:MUSIC1_13328
goto @MUSIC1_13335

:MUSIC1_13335
$bikehealth_s4 = Math.RandomIntInRange(0, 2)
if 
  $bikehealth_s4 == 0
goto_if_false @MUSIC1_13413
set_lvar_text_label 283@s = 'DOFFE1'
set_lvar_int_to_constant 294@ = 42654
set_lvar_int_to_constant 295@ = 42605
set_lvar_int_to_constant 296@ = 42604
goto @MUSIC1_13457

:MUSIC1_13413
set_lvar_text_label 283@s = 'DOFFE3'
set_lvar_int_to_constant 294@ = 42608
set_lvar_int_to_constant 295@ = 42610
set_lvar_int_to_constant 296@ = 42609

:MUSIC1_13457
$bikehealth_s4 = Math.RandomIntInRange(0, 2)
if 
  $bikehealth_s4 == 0
goto_if_false @MUSIC1_13515
set_lvar_text_label 285@s = 'BEXIT1'
set_lvar_int_to_constant 297@ = 42600
goto @MUSIC1_13539

:MUSIC1_13515
set_lvar_text_label 285@s = 'BEXIT2'
set_lvar_int_to_constant 297@ = 42601

:MUSIC1_13539
set_lvar_text_label 287@s = 'DSTAR2'
set_lvar_int_to_constant 298@ = 42614
$bikehealth_s4 = Math.RandomIntInRange(0, 2)
if 
  $bikehealth_s4 == 0
goto_if_false @MUSIC1_13621
set_lvar_text_label 289@s = 'GEXIT1'
set_lvar_int_to_constant 299@ = 42615
goto @MUSIC1_13645

:MUSIC1_13621
set_lvar_text_label 289@s = 'GEXIT2'
set_lvar_int_to_constant 299@ = 42616

:MUSIC1_13645
Conversation.SetUpNodeWithScriptedSpeech(281@s, 283@s, 285@s, 291@, 292@, 293@)
Conversation.SetUpEndNodeWithScriptedSpeech(285@s, 297@)
Conversation.SetUpNodeWithScriptedSpeech(283@s, 287@s, 289@s, 294@, 295@, 296@)
Conversation.SetUpEndNodeWithScriptedSpeech(287@s, 298@)
Conversation.SetUpEndNodeWithScriptedSpeech(289@s, 299@)
Conversation.FinishSettingUp
return 

:MUSIC1_13713
Conversation.StartSettingUp(55@)
$bikehealth_s4 = Math.RandomIntInRange(0, 2)
if 
  $bikehealth_s4 == 0
goto_if_false @MUSIC1_13796
set_lvar_text_label 300@s = 'VOFFE1'
set_lvar_int_to_constant 304@ = 42640
set_lvar_int_to_constant 305@ = 42642
set_lvar_int_to_constant 306@ = 42641
goto @MUSIC1_13840

:MUSIC1_13796
set_lvar_text_label 300@s = 'VOFFE2'
set_lvar_int_to_constant 304@ = 42643
set_lvar_int_to_constant 305@ = 42645
set_lvar_int_to_constant 306@ = 42644

:MUSIC1_13840
$bikehealth_s4 = Math.RandomIntInRange(0, 2)
if 
  $bikehealth_s4 == 0
goto_if_false @MUSIC1_13918
set_lvar_text_label 302@s = 'VSURE1'
set_lvar_int_to_constant 307@ = 42646
set_lvar_int_to_constant 308@ = 42648
set_lvar_int_to_constant 309@ = 42647
goto @MUSIC1_13962

:MUSIC1_13918
set_lvar_text_label 302@s = 'VSURE2'
set_lvar_int_to_constant 307@ = 42649
set_lvar_int_to_constant 308@ = 42651
set_lvar_int_to_constant 309@ = 42650

:MUSIC1_13962
Conversation.SetUpNodeWithScriptedSpeech(300@s, 'VYES2', 302@s, 304@, 305@, 306@)
Conversation.SetUpEndNodeWithScriptedSpeech('VYES2', 42653)
Conversation.SetUpNodeWithScriptedSpeech(302@s, 'VLATE', 'VYES1', 307@, 308@, 309@)
Conversation.SetUpEndNodeWithScriptedSpeech('VLATE', 42639)
Conversation.SetUpEndNodeWithScriptedSpeech('VYES1', 42652)
Conversation.FinishSettingUp
return 

:MUSIC1_14072
set_lvar_float_to_lvar_float 310@ = 39@
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 40@
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14524
set_lvar_float_to_lvar_float 39@ = 312@
set_lvar_float_to_lvar_float 40@ = 313@
41@ = 2.68
set_lvar_float_to_lvar_float 310@ = 42@
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 43@
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14524
set_lvar_float_to_lvar_float 42@ = 312@
set_lvar_float_to_lvar_float 43@ = 313@
44@ = 2.39
set_lvar_float_to_lvar_float 310@ = 48@
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 49@
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14524
set_lvar_float_to_lvar_float 48@ = 312@
set_lvar_float_to_lvar_float 49@ = 313@
50@ = 3.42
51@ -= 51.0
set_lvar_float_to_lvar_float 310@ = 56@
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 57@
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14524
set_lvar_float_to_lvar_float 56@ = 312@
set_lvar_float_to_lvar_float 57@ = 313@
set_lvar_float_to_lvar_float 310@ = 58@
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 59@
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14524
set_lvar_float_to_lvar_float 58@ = 312@
set_lvar_float_to_lvar_float 59@ = 313@
60@ = 2.31
170@ = 0

:MUSIC1_14404
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_14522
set_lvar_float_to_lvar_float 310@ = 83@(170@,21f)
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 104@(170@,21f)
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14524
set_lvar_float_to_lvar_float 83@(170@,21f) = 312@
set_lvar_float_to_lvar_float 104@(170@,21f) = 313@
125@(170@,21f) -= 51.0
170@ += 1
goto @MUSIC1_14404

:MUSIC1_14522
return 

:MUSIC1_14524
set_lvar_float_to_lvar_float 314@ = 310@
mult_float_lvar_by_float_lvar 314@ *= 310@
set_lvar_float_to_lvar_float 315@ = 311@
mult_float_lvar_by_float_lvar 315@ *= 311@
set_lvar_float_to_lvar_float 317@ = 314@
add_float_lvar_to_float_lvar 317@ += 315@
316@ = Math.Sqrt(317@)
set_lvar_float_to_lvar_float 318@ = 311@
div_float_lvar_by_float_lvar 318@ /= 316@
set_lvar_float_to_lvar_float 319@ = 310@
div_float_lvar_by_float_lvar 319@ /= 316@
320@ = Math.Cos(51.0)
321@ = Math.Sin(51.0)
set_lvar_float_to_lvar_float 322@ = 318@
mult_float_lvar_by_float_lvar 322@ *= 320@
set_lvar_float_to_lvar_float 323@ = 319@
mult_float_lvar_by_float_lvar 323@ *= 321@
set_lvar_float_to_lvar_float 324@ = 319@
mult_float_lvar_by_float_lvar 324@ *= 320@
set_lvar_float_to_lvar_float 325@ = 318@
mult_float_lvar_by_float_lvar 325@ *= 321@
set_lvar_float_to_lvar_float 326@ = 322@
sub_float_lvar_from_float_lvar 326@ -= 323@
set_lvar_float_to_lvar_float 327@ = 324@
add_float_lvar_to_float_lvar 327@ += 325@
set_lvar_float_to_lvar_float 312@ = 316@
mult_float_lvar_by_float_lvar 312@ *= 327@
set_lvar_float_to_lvar_float 313@ = 316@
mult_float_lvar_by_float_lvar 313@ *= 326@
add_float_lvar_to_float_lvar 312@ += 34@
add_float_lvar_to_float_lvar 313@ += 35@
return 

:MUSIC1_14778
if 
  not Car.IsDead(47@)
goto_if_false @MUSIC1_14942
if 
  208@ == 1
goto_if_false @MUSIC1_14881
if 
  not Char.IsInCar($scplayer, 47@)
goto_if_false @MUSIC1_14874
Blip.Remove(273@)
272@ = Blip.AddForCar(47@)
Blip.SetAsFriendly(272@, True)
Text.PrintNow('MUS1_6', 7000, 0)
208@ = 0

:MUSIC1_14874
goto @MUSIC1_14942

:MUSIC1_14881
if 
  Char.IsInCar($scplayer, 47@)
goto_if_false @MUSIC1_14942
Blip.Remove(272@)
273@ = Blip.AddForCoord(52@, 53@, 54@)
Text.PrintNow('MUS1_19', 7000, 0)
208@ = 1

:MUSIC1_14942
return 

:MUSIC1_14944
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Text.ClearPrints
Text.PrintNow('MUS1_2', 10000, 0)
Camera.SetFixedPosition(532.87, -1893.69, 3.29, 0.0, 0.0, 0.0)
Camera.PointAtPoint(533.97, -1892.67, 3.3, SwitchType.JumpCut)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
Char.SetCoordinates($scplayer, $player_x, $player_y, -100.0)
set_lvar_float_to_lvar_float 328@ = 34@
sub_float_var_from_float_lvar 328@ -= $player_x
set_lvar_float_to_lvar_float 329@ = 35@
sub_float_var_from_float_lvar 329@ -= $player_y
$heading = Math.GetHeadingFromVector2D(328@, 329@)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @MUSIC1_15128
Char.SetHeading($scplayer, $heading)
goto @MUSIC1_15149

:MUSIC1_15128
330@ = Char.StoreCarIsInNoSave($scplayer)
Car.SetIdle(330@)
Car.SetHeading(330@, $heading)

:MUSIC1_15149
wait 2000
279@ = 1
skip_cutscene_start_internal @MUSIC1_15180
wait 8000
279@ = 0

:MUSIC1_15180
skip_cutscene_end 
if 
  279@ == 1
goto_if_false @MUSIC1_15200

:MUSIC1_15200
Text.ClearPrints
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
return 

:MUSIC1_15219
switch_start 191@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MUSIC1_15356 {caseNum1} 0 {caseLabel1} @MUSIC1_15282 {caseNum2} 1 {caseLabel2} @MUSIC1_15318 {caseNum3} -1 {caseLabel3} @MUSIC1_15363 {caseNum4} -1 {caseLabel4} @MUSIC1_15363 {caseNum5} -1 {caseLabel5} @MUSIC1_15363 {caseNum6} -1 {caseLabel6} @MUSIC1_15363 {caseNum7} -1 {caseLabel7} @MUSIC1_15363

:MUSIC1_15282
set_lvar_text_label 184@s = 'LOC1_YT'
set_lvar_int_to_constant 186@ = 8464
189@ = 1
goto @MUSIC1_15363

:MUSIC1_15318
set_lvar_text_label 184@s = 'DNCEF1'
set_lvar_int_to_constant 186@ = 42602
189@ = 1
goto @MUSIC1_15363

:MUSIC1_15356
goto @MUSIC1_15363

:MUSIC1_15363
187@ = 0
188@ = 0
190@ = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
return 

:MUSIC1_15392
if or
  187@ == 0
  187@ == 1
goto_if_false @MUSIC1_15462
if 
  is_int_lvar_greater_than_int_lvar 189@ > 188@
goto_if_false @MUSIC1_15462
if 
  TIMERA > 1000
goto_if_false @MUSIC1_15462
gosub @MUSIC1_15520

:MUSIC1_15462
if 
  187@ == 2
goto_if_false @MUSIC1_15518
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @MUSIC1_15518
187@ = 0
188@ += 1
Text.ClearPrints
TIMERA = 0

:MUSIC1_15518
return 

:MUSIC1_15520
if 
  187@ == 0
goto_if_false @MUSIC1_15556
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 186@(188@,1i))
187@ = 1

:MUSIC1_15556
if 
  187@ == 1
goto_if_false @MUSIC1_15644
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @MUSIC1_15644
Text.PrintNow(184@(188@,1s), 10000, 1)
if and
  191@ == 1
  not Char.IsDead(55@)
goto_if_false @MUSIC1_15633
Audio.AttachMissionAudioToChar(MissionAudioSlot.Slot1, 55@)

:MUSIC1_15633
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
187@ = 2

:MUSIC1_15644
return 

:MUSIC1_15646
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:MUSIC1_15664
$flag_strap_mission_counter += 1
Stat.RegisterMissionPassed('STRAP_1')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSR', 3, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(3)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
return 

:MUSIC1_15719
Streaming.MarkModelAsNoLongerNeeded(412)
Streaming.MarkModelAsNoLongerNeeded(419)
Streaming.MarkModelAsNoLongerNeeded(467)
Streaming.MarkModelAsNoLongerNeeded(413)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(13)
Streaming.MarkModelAsNoLongerNeeded(93)
Streaming.MarkModelAsNoLongerNeeded(22)
Streaming.MarkModelAsNoLongerNeeded(99)
Streaming.MarkModelAsNoLongerNeeded(211)
Streaming.MarkModelAsNoLongerNeeded(101)
Streaming.MarkModelAsNoLongerNeeded(217)
Streaming.MarkModelAsNoLongerNeeded(19)
Streaming.MarkModelAsNoLongerNeeded(91)
Streaming.MarkModelAsNoLongerNeeded(55)
Streaming.MarkVehicleModAsNoLongerNeeded(#WHEEL_OR1)
Object.MarkAsNoLongerNeeded(45@)
Object.MarkAsNoLongerNeeded(46@)
StreamedScript.MarkAsNoLongerNeeded(35)
Streaming.RemoveAnimation("BAR")
Streaming.RemoveAnimation("DANCING")
Streaming.RemoveAnimation("BEACH")
Streaming.RemoveAnimation("SCRATCHING")
Blip.Remove(271@)
Blip.Remove(272@)
Blip.Remove(273@)
Particle.Kill(37@)
Particle.Kill(38@)
Sequence.Clear(173@)
Sequence.Clear(174@)
Sequence.Clear(177@)
Sequence.Clear(280@)
Sequence.Clear(181@)
Sequence.Clear(182@)
Sequence.Clear(183@)
if 
  Player.IsPlaying($player1)
goto_if_false @MUSIC1_15929
Char.HideWeaponForScriptedCutscene($scplayer, False)

:MUSIC1_15929
if 
  not Char.IsDead(55@)
goto_if_false @MUSIC1_15957
Conversation.ClearForChar(55@)
Char.FreezePosition(55@, False)

:MUSIC1_15957
if 
  not Car.IsDead(47@)
goto_if_false @MUSIC1_15980
Car.SetCanBeVisiblyDamaged(47@, True)

:MUSIC1_15980
DecisionMaker.Remove(180@)
Text.ClearHelp
Zone.SwitchAudio('BEACH', False)
Path.SwitchPedRoadsBackToOriginal(502.15, -1913.39, -5.0, 558.86, -1838.87, 10.0)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 32---------------
// Originally: Madd Dogg's Rhymes

:MUSIC2
script_name 'MUSIC2'
gosub @MUSIC2_47
if 
  has_deatharrest_been_executed 
goto_if_false @MUSIC2_38
gosub @MUSIC2_10511

:MUSIC2_38
gosub @MUSIC2_10584
terminate_this_script 

:MUSIC2_47
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('STRAP2')
Camera.SetFadingColor(0, 0, 0)
Streaming.SetAreaVisible(10)
Camera.DoFade(2000, Fade.Out)

:MUSIC2_86
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC2_110
wait 0
goto @MUSIC2_86

:MUSIC2_110
Cutscene.Load('STRAP2A')

:MUSIC2_121
if 
  not Cutscene.HasLoaded
goto_if_false @MUSIC2_145
wait 0
goto @MUSIC2_121

:MUSIC2_145
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:MUSIC2_154
if 
  not Cutscene.HasFinished
goto_if_false @MUSIC2_178
wait 0
goto @MUSIC2_154

:MUSIC2_178
Cutscene.Clear
Camera.DoFade(0, Fade.Out)

:MUSIC2_186
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC2_210
wait 0
goto @MUSIC2_186

:MUSIC2_210
Streaming.SetAreaVisible(0)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Streaming.RequestModel(579)
Streaming.RequestModel(580)
Streaming.RequestModel(#KMB_RHYMESBOOK)
Streaming.RequestModel(#CJ_JUICE_CAN)
Streaming.RequestModel(347)
Streaming.RequestModel(510)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 15606)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 15607)
Streaming.LoadAllModelsNow

:MUSIC2_281
if or
  not Streaming.HasModelLoaded(579)
  not Streaming.HasModelLoaded(580)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @MUSIC2_321
wait 0
goto @MUSIC2_281

:MUSIC2_321
if or
  not Streaming.HasModelLoaded(#KMB_RHYMESBOOK)
  not Streaming.HasModelLoaded(#CJ_JUICE_CAN)
  not Streaming.HasModelLoaded(347)
  not Streaming.HasModelLoaded(510)
goto_if_false @MUSIC2_363
wait 0
goto @MUSIC2_321

:MUSIC2_363
61@ = Blip.AddForCoord(1239.032, -741.106, 94.76)
Char.SetCoordinates($scplayer, 790.0, -1626.0, 12.5)
Streaming.LoadScene(790.0, -1626.0, 12.5)
Camera.SetBehindPlayer
Char.SetHeading($scplayer, 356.0)
45@ = DecisionMakerChar.Load(DecisionMakerType.Steal)
46@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Mission1)
World.SwitchEntryExit('MDDOGS', True)
Player.SetGroupRecruitment($player1, False)
Game.SetScriptLimitToGangSize(0)
Camera.DoFade(1500, Fade.In)
70@ = 0
71@ = 0
72@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
79@ = 0
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
97@ = 0
Text.PrintNow('STP2_1', 10000, 1)
if 
  $m1_random_int2 > 0
goto_if_false @MUSIC2_745
Skip.SetUp(1242.659, -748.503, 94.33, 191.586)

:MUSIC2_745
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MUSIC2_771
goto @MUSIC2_10529

:MUSIC2_771
if 
  70@ == 0
goto_if_false @MUSIC2_973
if 
  Char.IsInAngledArea2D($scplayer, 1222.799, -735.563, 1348.407, -759.322, -100.0, False)
goto_if_false @MUSIC2_973
if 
  $m1_random_int2 == 0
goto_if_false @MUSIC2_857
$m1_random_int2 = 1

:MUSIC2_857
Skip.Clear
Blip.Remove(61@)
61@ = Blip.AddForCoord(1298.66, -795.58, 83.84)
Text.PrintNow('STP2_2', 5000, 1)
35@ = Car.Create(579, 1243.154, -805.76, 83.188)
Car.SetHeading(35@, 1.533)
36@ = Car.Create(580, 1255.024, -804.587, 83.934)
Car.SetHeading(36@, 182.9)
70@ = 1

:MUSIC2_973
if 
  70@ == 1
goto_if_false @MUSIC2_1834
34@ = Char.GetAreaVisible($scplayer)
if 
  34@ == 5
goto_if_false @MUSIC2_1834
Game.SetWantedMultiplier(0.0)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1256.623, -801.0125, 1084.091, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1255.93, -801.7316, 1084.044, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 1299.352, -792.6416, 1083.008)
Char.SetHeading($scplayer, 0.0)
World.ClearArea(1299.352, -792.6416, 200.0, 200.0, False)
Streaming.RequestAnimation("CRIB")
Streaming.RequestAnimation("VENDING")
Streaming.RequestModel(335)
Streaming.RequestModel(24)
Streaming.RequestModel(25)
Streaming.RequestModel(352)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 43000)
Streaming.LoadAllModelsNow
Streaming.LoadScene(1256.623, -801.0125, 1084.091)

:MUSIC2_1198
if or
  not Streaming.HasAnimationLoaded("CRIB")
  not Streaming.HasAnimationLoaded("VENDING")
  not Streaming.HasModelLoaded(335)
  not Streaming.HasModelLoaded(24)
Streaming.RequestModel(25)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @MUSIC2_1256
wait 0
goto @MUSIC2_1198

:MUSIC2_1256
Player.SetControl($player1, False)
Hud.SetRadarZoom(100)
Blip.Remove(61@)
37@ = Char.Create(PedType.Mission1, 24, 1301.98, -785.31, 1083.05)
Char.SetHasUsedEntryExit(37@, 1298.78, -798.2, 1.0)
Char.SetFollowNodeThresholdDistance(37@, 2.0)
Char.SetHeading(37@, 358.83)
Char.SetDecisionMaker(37@, 45@)
62@ = Blip.AddForChar(37@)
Blip.ChangeDisplay(62@, BlipDisplay.BlipOnly)
Char.GiveWeapon(37@, WeaponType.MicroUzi, 9999)
Char.SetAccuracy(37@, 90)
Char.SetDropsWeaponsWhenDead(37@, False)
Char.SetAreaVisible(37@, 5)
Text.PrintNow('STP2_3', 7000, 1)
wait 2000
skip_cutscene_start_internal @MUSIC2_1703
wait 1000
38@ = Char.Create(PedType.Mission1, 25, 1249.063, -769.8262, 1083.023)
Char.SetHasUsedEntryExit(38@, 1298.78, -798.2, 1.0)
Char.SetAreaVisible(38@, 5)
Char.SetHeading(38@, 270.552)
Char.SetFollowNodeThresholdDistance(38@, 5.0)
Char.SetDecisionMaker(38@, 45@)
wait 3500
if 
  not Char.IsDead(38@)
goto_if_false @MUSIC2_1547
Task.GoStraightToCoord(38@, 1262.056, -769.9772, 1083.988, MoveState.Walk, -1)

:MUSIC2_1547
wait 500
Camera.SetFixedPosition(1260.744, -769.5749, 1085.258, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1259.781, -769.5841, 1084.988, SwitchType.JumpCut)
Text.PrintNow('STP2_39', 7000, 1)
wait 7000
Camera.SetNearClip(0.1)
Camera.SetFixedPosition(1299.504, -793.3958, 1084.693, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1299.589, -792.3994, 1084.685, SwitchType.JumpCut)
Text.PrintNow('STP2_5', 7000, 1)
wait 7000

:MUSIC2_1703
skip_cutscene_end 
Char.Delete(38@)
59@ = Pickup.Create(#KMB_RHYMESBOOK, PickupType.Once, 1256.871, -801.048, 1084.063)
61@ = Blip.AddForPickup(59@)
Blip.SetEntryExit(61@, 1298.78, -798.2, 1.0)
World.DisableAllEntryExits(True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Char.GiveWeapon($scplayer, WeaponType.Knife, 1)
Pad.SetPlayerCycleWeaponButton($player1, False)
Car.Delete(35@)
Streaming.MarkModelAsNoLongerNeeded(579)
Streaming.MarkModelAsNoLongerNeeded(580)
Car.Delete(36@)
Text.ClearPrints
TIMERA = 0
70@ = 2

:MUSIC2_1834
if 
  85@ == 0
goto_if_false @MUSIC2_6612
if 
  70@ == 2
goto_if_false @MUSIC2_6612
if 
  71@ == 0
goto_if_false @MUSIC2_1924
Text.PrintHelp('STP2_7')
Hud.FlashObject(HudObject.Radar)
TIMERA = 0
TIMERB = 0
71@ = 1

:MUSIC2_1924
if 
  79@ == 0
goto_if_false @MUSIC2_1972
if 
  TIMERB > 5000
goto_if_false @MUSIC2_1972
Hud.FlashObject(-1)
79@ = 1

:MUSIC2_1972
if 
  not Char.IsDead(37@)
goto_if_false @MUSIC2_2303
if 
  71@ == 1
goto_if_false @MUSIC2_2054
if 
  TIMERA > 5000
goto_if_false @MUSIC2_2054
Text.PrintHelp('STP2_9')
Hud.FlashObject(-1)
TIMERA = 0
71@ = 2

:MUSIC2_2054
if 
  71@ == 2
goto_if_false @MUSIC2_2141
if 
  not Char.IsDead(37@)
goto_if_false @MUSIC2_2141
if or
  Char.LocateAnyMeansChar2D($scplayer, 37@, 5.0, 5.0, False)
  TIMERA > 9500
goto_if_false @MUSIC2_2141
TIMERA = 0
71@ = 3

:MUSIC2_2141
if 
  71@ == 3
goto_if_false @MUSIC2_2230
if or
  TIMERA > 10000
  Char.IsPlayingAnim($scplayer, "KILL_PARTIAL")
  Player.IsTargetingChar($player1, 37@)
goto_if_false @MUSIC2_2230
Text.PrintHelp('STP2_10')
TIMERA = 0
71@ = 4

:MUSIC2_2230
if 
  71@ == 4
goto_if_false @MUSIC2_2303
if 
  Char.IsPlayingAnim($scplayer, "KILL_PARTIAL")
goto_if_false @MUSIC2_2303
Text.PrintHelp('STP2_11')
TIMERA = 0
71@ = 5

:MUSIC2_2303
if 
  72@ == 0
goto_if_false @MUSIC2_3038
if 
  Char.LocateAnyMeans3D($scplayer, 1290.907, -781.423, 1083.59, 4.3, 4.3, 6.0, False)
goto_if_false @MUSIC2_3038
if 
  Char.IsDucking($scplayer)
goto_if_false @MUSIC2_2392
96@ = 1

:MUSIC2_2392
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Char.ClearTasksImmediately($scplayer)
Camera.SetNearClip(0.1)
World.ClearArea(1290.907, -781.423, 100.0, 100.0, False)
38@ = Char.Create(PedType.Mission1, 25, 1290.667, -778.9339, 1083.012)
Char.SetHasUsedEntryExit(38@, 1298.78, -798.2, 1.0)
Char.SetAreaVisible(38@, 5)
Char.SetHeading(38@, 350.151)
Char.SetFollowNodeThresholdDistance(38@, 5.0)
Char.SetDecisionMaker(38@, 45@)
63@ = Blip.AddForChar(38@)
Blip.ChangeDisplay(63@, BlipDisplay.BlipOnly)
Char.GiveWeapon(38@, WeaponType.MicroUzi, 9999)
Char.SetAccuracy(38@, 90)
Char.SetDropsWeaponsWhenDead(38@, False)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(1289.988, -766.581, 1084.063, "NONE", "NONE")
Path.ExtendPatrolRoute(1270.314, -766.564, 1084.063, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(1270.074, -782.155, 1084.063, "NONE", "NONE")
Path.ExtendPatrolRoute(1290.246, -782.463, 1084.056, "ROADCROSS", "PED")
Task.FollowPatrolRoute(38@, 4, RouteMode.Loop)
Char.SetCoordinates($scplayer, 1297.599, -781.234, 1083.048)
Char.SetHeading($scplayer, 89.58)
Camera.SetFixedPosition(1291.055, -784.506, 1084.514, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1290.55, -783.6482, 1084.417, SwitchType.JumpCut)
if 
  not Char.IsDead(37@)
goto_if_false @MUSIC2_2912
Char.Delete(37@)
37@ = Char.Create(PedType.Mission1, 24, 1304.189, -785.871, 1084.048)
Char.SetHasUsedEntryExit(37@, 1298.78, -798.2, 1.0)
Char.SetAreaVisible(37@, 5)
Char.SetFollowNodeThresholdDistance(37@, 2.0)
Char.SetHeading(37@, 311.2134)
Char.SetDecisionMaker(37@, 45@)
62@ = Blip.AddForChar(37@)
Blip.ChangeDisplay(62@, BlipDisplay.BlipOnly)
Char.GiveWeapon(37@, WeaponType.MicroUzi, 9999)
Char.SetAccuracy(37@, 90)
Char.SetDropsWeaponsWhenDead(37@, False)

:MUSIC2_2912
Text.PrintNow('STP2_13', 6000, 1)
wait 2000
skip_cutscene_start_internal @MUSIC2_2945
wait 4000

:MUSIC2_2945
skip_cutscene_end 
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
if 
  96@ == 1
goto_if_false @MUSIC2_2983
Task.ToggleDuck($scplayer, True)

:MUSIC2_2983
96@ = 0
Hud.SwitchWidescreen(False)
Text.PrintNow('STP2_14', 5000, 1)
TIMERA = 0
TIMERB = 0
72@ = 1
71@ = 6

:MUSIC2_3038
if 
  71@ == 6
goto_if_false @MUSIC2_3082
if 
  TIMERA > 5000
goto_if_false @MUSIC2_3082
71@ = 7

:MUSIC2_3082
if 
  73@ == 0
goto_if_false @MUSIC2_4090
if 
  Char.LocateAnyMeans3D($scplayer, 1260.104, -769.51, 1083.06, 5.0, 5.0, 6.0, False)
goto_if_false @MUSIC2_4090
if 
  Char.IsDucking($scplayer)
goto_if_false @MUSIC2_3171
96@ = 1

:MUSIC2_3171
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Char.ClearTasksImmediately($scplayer)
Text.ClearPrints
World.ClearArea(1260.104, -769.51, 100.0, 100.0, False)
39@ = Char.Create(PedType.Mission1, 25, 1249.598, -780.06, 1083.063)
Char.SetHasUsedEntryExit(39@, 1298.78, -798.2, 1.0)
Char.SetAreaVisible(39@, 5)
Char.SetAccuracy(39@, 90)
Char.SetHeading(39@, 355.188)
Char.SetFollowNodeThresholdDistance(39@, 5.0)
Char.SetDecisionMaker(39@, 45@)
Task.GoStraightToCoord(39@, 1250.092, -769.277, 1083.064, MoveState.Walk, -1)
Camera.SetFixedPosition(1249.856, -766.8402, 1084.777, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1249.814, -767.8293, 1084.637, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 1266.494, -769.705, 1083.06)
Char.SetHeading($scplayer, 92.259)
if 
  not Char.IsDead(38@)
goto_if_false @MUSIC2_3671
Char.Delete(38@)
38@ = Char.Create(PedType.Mission1, 25, 1290.667, -778.9339, 1083.012)
Char.SetHasUsedEntryExit(38@, 1298.78, -798.2, 1.0)
Char.SetHeading(38@, 350.151)
Char.SetFollowNodeThresholdDistance(38@, 2.0)
Char.SetDecisionMaker(38@, 45@)
63@ = Blip.AddForChar(38@)
Blip.ChangeDisplay(63@, BlipDisplay.BlipOnly)
Char.GiveWeapon(38@, WeaponType.MicroUzi, 9999)
Char.SetAccuracy(38@, 90)
Char.SetDropsWeaponsWhenDead(38@, False)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(1289.988, -766.581, 1084.063, "NONE", "NONE")
Path.ExtendPatrolRoute(1270.314, -766.564, 1084.063, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(1270.074, -782.155, 1084.063, "NONE", "NONE")
Path.ExtendPatrolRoute(1290.246, -782.463, 1084.056, "ROADCROSS", "PED")
Task.FollowPatrolRoute(38@, 4, RouteMode.Loop)

:MUSIC2_3671
Text.PrintNow('STP2_15', 3000, 1)
wait 2000
skip_cutscene_start_internal @MUSIC2_3846
wait 1000
Text.PrintNow('STP2_16', 4000, 1)
Camera.SetFixedPosition(1267.405, -769.6973, 1084.667, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1266.412, -769.6685, 1084.551, SwitchType.JumpCut)
if 
  not Char.IsDead(39@)
goto_if_false @MUSIC2_3817
Char.SetCoordinates(39@, 1249.598, -780.06, 1083.063)
Char.SetHeading(39@, 355.188)

:MUSIC2_3817
wait 2000
Camera.PointAtPoint(1266.912, -770.5618, 1084.569, SwitchType.Interpolation)
wait 2000

:MUSIC2_3846
skip_cutscene_end 
Char.Delete(39@)
39@ = Char.Create(PedType.Mission1, 25, 1249.634, -781.405, 1083.5)
Char.SetHasUsedEntryExit(39@, 1298.78, -798.2, 1.0)
Char.SetAreaVisible(39@, 5)
Char.SetHeading(39@, 357.273)
64@ = Blip.AddForChar(39@)
Blip.ChangeDisplay(64@, BlipDisplay.BlipOnly)
Char.SetFollowNodeThresholdDistance(39@, 5.0)
Char.SetDecisionMaker(39@, 45@)
58@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 1267.96, -769.792, 1084.06, 4, -2)
Sequence.SetToRepeat(58@, True)
Sequence.Close(58@)
Char.PerformSequence(39@, 58@)
Sequence.Clear(58@)
Char.GiveWeapon(39@, WeaponType.MicroUzi, 50)
Char.SetAccuracy(39@, 90)
Char.SetDropsWeaponsWhenDead(39@, False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
if 
  96@ == 1
goto_if_false @MUSIC2_4063
Task.ToggleDuck($scplayer, True)

:MUSIC2_4063
96@ = 0
Text.ClearPrints
Text.PrintHelp('STP2_41')
73@ = 1

:MUSIC2_4090
if 
  74@ == 0
goto_if_false @MUSIC2_6070
if 
  Char.LocateAnyMeans3D($scplayer, 1249.466, -789.487, 1083.063, 7.5, 7.5, 6.0, False)
goto_if_false @MUSIC2_6070
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @MUSIC2_4194
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot3, 1276.31, -793.92, 1084.12)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:MUSIC2_4194
if 
  Char.IsDucking($scplayer)
goto_if_false @MUSIC2_4217
96@ = 1

:MUSIC2_4217
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Char.ClearTasksImmediately($scplayer)
World.ClearArea(1249.466, -789.487, 100.0, 100.0, False)
Char.SetCoordinates($scplayer, 1249.825, -780.682, 1083.06)
Char.SetHeading($scplayer, 180.659)
Text.ClearPrints
40@ = Char.Create(PedType.Mission1, 25, 1258.271, -793.395, 1083.289)
Char.SetHasUsedEntryExit(40@, 1298.78, -798.2, 1.0)
Char.SetAreaVisible(40@, 5)
Char.SetHeading(40@, 354.328)
65@ = Blip.AddForChar(40@)
Blip.ChangeDisplay(65@, BlipDisplay.BlipOnly)
Char.SetFollowNodeThresholdDistance(40@, 5.0)
Char.SetDecisionMaker(40@, 45@)
Char.SetDropsWeaponsWhenDead(40@, False)
47@ = Object.CreateNoOffset(#CJ_JUICE_CAN, 1258.25, -792.64, 1084.16)
$x, $y, $z, $x, $y, $z = Streaming.GetModelDimensions(#CJ_JUICE_CAN)
$y /= 2.0
$y += 0.027
41@ = Char.Create(PedType.Mission1, 24, 1276.795, -792.368, 1083.055)
Char.SetHasUsedEntryExit(41@, 1298.78, -798.2, 1.0)
Char.SetAccuracy(41@, 100)
Char.SetAreaVisible(41@, 5)
Char.SetHeading(41@, 180.0)
Char.SetDecisionMaker(41@, 45@)
if 
  not Char.IsDead(40@)
goto_if_false @MUSIC2_4670
49@ = Sequence.Open()
Task.PickUpObject(-1, 47@, 0.062, $y, 0.0, 5, 16, "VEND_USE_PT2", "VENDING", 0)
Task.PickUpObject(-1, 47@, 0.062, $y, 0.0, 5, 16, "VEND_DRINK2_P", "VENDING", 0)
Sequence.Close(49@)
Char.PerformSequence(40@, 49@)
Sequence.Clear(49@)

:MUSIC2_4670
Camera.SetFixedPosition(1251.82, -788.354, 1084.502, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1252.463, -789.1154, 1084.42, SwitchType.JumpCut)
Text.PrintNow('STP2_19', 5000, 1)
if 
  not Char.IsDead(38@)
goto_if_false @MUSIC2_5004
Char.Delete(38@)
38@ = Char.Create(PedType.Mission1, 25, 1290.667, -778.9339, 1083.012)
Char.SetHasUsedEntryExit(38@, 1298.78, -798.2, 1.0)
Char.SetHeading(38@, 350.151)
Char.SetFollowNodeThresholdDistance(38@, 2.0)
Char.SetDecisionMaker(38@, 45@)
63@ = Blip.AddForChar(38@)
Blip.ChangeDisplay(63@, BlipDisplay.BlipOnly)
Char.GiveWeapon(38@, WeaponType.MicroUzi, 9999)
Char.SetAccuracy(38@, 100)
Char.SetDropsWeaponsWhenDead(38@, False)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(1289.988, -766.581, 1084.063, "NONE", "NONE")
Path.ExtendPatrolRoute(1270.314, -766.564, 1084.063, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(1270.074, -782.155, 1084.063, "NONE", "NONE")
Path.ExtendPatrolRoute(1290.246, -782.463, 1084.056, "ROADCROSS", "PED")
Task.FollowPatrolRoute(38@, 4, RouteMode.Loop)

:MUSIC2_5004
if 
  not Char.IsDead(39@)
goto_if_false @MUSIC2_5135
Char.Delete(39@)
39@ = Char.Create(PedType.Mission1, 25, 1267.96, -769.792, 1084.06)
Char.SetHasUsedEntryExit(39@, 1298.78, -798.2, 1.0)
Char.SetHeading(39@, 0.141)
64@ = Blip.AddForChar(39@)
Blip.ChangeDisplay(64@, BlipDisplay.BlipOnly)
Char.SetFollowNodeThresholdDistance(39@, 5.0)
Char.SetDecisionMaker(39@, 45@)
Char.GiveWeapon(39@, WeaponType.MicroUzi, 50)
Char.SetAccuracy(39@, 100)
Char.SetDropsWeaponsWhenDead(39@, False)

:MUSIC2_5135
wait 1750
skip_cutscene_start_internal @MUSIC2_5545
wait 2000
if 
  not Char.IsDead(41@)
goto_if_false @MUSIC2_5220
Task.PlayAnim(41@, "PED_CONSOLE_LOOP", "CRIB", 4.0, True, False, False, False, -1)
Char.StartFacialTalk(41@, 10000)

:MUSIC2_5220
wait 500
Camera.SetFixedPosition(1274.983, -790.5506, 1084.063, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1275.575, -791.356, 1084.035, SwitchType.JumpCut)
Text.PrintNow('LOC2_BA', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:MUSIC2_5296
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @MUSIC2_5322
wait 0
goto @MUSIC2_5296

:MUSIC2_5322
Camera.SetFixedPosition(1276.301, -794.5306, 1084.231, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1276.292, -793.5345, 1084.143, SwitchType.JumpCut)
Text.PrintNow('LOC2_BB', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
if 
  not Char.IsDead(41@)
goto_if_false @MUSIC2_5519
50@ = Sequence.Open()
Task.PlayAnim(-1, "PED_CONSOLE_LOOSE", "CRIB", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PED_CONSOLE_LOOP", "CRIB", 4.0, True, False, False, False, -1)
Sequence.Close(50@)
Char.PerformSequence(41@, 50@)
Sequence.Clear(50@)

:MUSIC2_5519
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @MUSIC2_5545
wait 0
goto @MUSIC2_5519

:MUSIC2_5545
skip_cutscene_end 
Char.Delete(40@)
Char.Delete(41@)
40@ = Char.Create(PedType.Mission1, 25, 1258.271, -793.395, 1083.289)
Char.SetHasUsedEntryExit(40@, 1298.78, -798.2, 1.0)
Char.SetHeading(40@, 354.328)
Task.PlayAnim(40@, "ATM", "PED", 4.0, True, False, False, False, -1)
65@ = Blip.AddForChar(40@)
Blip.ChangeDisplay(65@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(40@, 45@)
Char.SetDropsWeaponsWhenDead(40@, False)
Char.GiveWeapon(40@, WeaponType.MicroUzi, 5000)
Char.SetAccuracy(40@, 100)
Char.SetInformRespectedFriends(40@, 5.0, 1)
41@ = Char.Create(PedType.Mission1, 24, 1276.795, -792.368, 1083.055)
Char.SetHasUsedEntryExit(41@, 1298.78, -798.2, 1.0)
Char.SetHeading(41@, 180.0)
Char.SetDecisionMaker(41@, 45@)
Char.SetDropsWeaponsWhenDead(41@, False)
Char.GiveWeapon(41@, WeaponType.MicroUzi, 5000)
66@ = Blip.AddForChar(41@)
Blip.ChangeDisplay(66@, BlipDisplay.BlipOnly)
Char.SetAccuracy(41@, 100)
Char.SetInformRespectedFriends(41@, 5.0, 1)
43@ = Char.Create(PedType.Mission1, 25, 1262.533, -805.139, 1083.056)
Char.SetHasUsedEntryExit(43@, 1298.78, -798.2, 1.0)
Char.SetHeading(43@, 359.265)
Char.SetDecisionMaker(43@, 45@)
68@ = Blip.AddForChar(43@)
Blip.ChangeDisplay(68@, BlipDisplay.BlipOnly)
Char.SetDropsWeaponsWhenDead(43@, False)
Char.GiveWeapon(43@, WeaponType.MicroUzi, 5555)
Char.SetAccuracy(43@, 100)
if 
  not Char.IsDead(41@)
goto_if_false @MUSIC2_5974
Task.PlayAnim(41@, "PED_CONSOLE_LOOP", "CRIB", 4.0, True, False, False, False, -1)

:MUSIC2_5974
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
if 
  96@ == 1
goto_if_false @MUSIC2_6024
Task.ToggleDuck($scplayer, True)

:MUSIC2_6024
96@ = 0
TIMERA = 0
TIMERB = 0
71@ = 9
Text.PrintHelp('STP2_36')
74@ = 1

:MUSIC2_6070
if 
  74@ == 1
goto_if_false @MUSIC2_6262
$x = Char.GetSpeed($scplayer)
if 
  not Char.IsDead(40@)
goto_if_false @MUSIC2_6262
if or
  Char.IsInArea3D($scplayer, 1246.77, -785.08, 1083.26, 1255.87, -797.69, 1090.0, False)
  $x > 0.0
goto_if_false @MUSIC2_6262
Char.SetHeading(40@, 168.503)
51@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1256.29, -795.6, 1084.289, MoveState.Walk, -1)
Task.PlayAnim(-1, "ATM", "PED", 4.0, True, False, False, False, -1)
Sequence.Close(51@)
Char.PerformSequence(40@, 51@)
Sequence.Clear(51@)
74@ = 2

:MUSIC2_6262
if 
  Pickup.HasBeenCollected(59@)
goto_if_false @MUSIC2_6390
Blip.Remove(61@)
61@ = Blip.AddForCoord(1298.74, -797.46, 1083.4)
if 
  Player.IsPlaying($player1)
goto_if_false @MUSIC2_6326
Pad.SetPlayerCycleWeaponButton($player1, True)

:MUSIC2_6326
Blip.SetEntryExit(61@, 1298.78, -798.2, 1.0)
Text.PrintNow('STP2_40', 7000, 1)
TIMERA = 0
TIMERB = 0
70@ = 3
85@ = 1

:MUSIC2_6390
if 
  Char.IsDead(37@)
goto_if_false @MUSIC2_6427
if 
  Blip.DoesExist(62@)
goto_if_false @MUSIC2_6427
Blip.Remove(62@)

:MUSIC2_6427
if 
  Char.IsDead(38@)
goto_if_false @MUSIC2_6464
if 
  Blip.DoesExist(63@)
goto_if_false @MUSIC2_6464
Blip.Remove(63@)

:MUSIC2_6464
if 
  Char.IsDead(39@)
goto_if_false @MUSIC2_6501
if 
  Blip.DoesExist(64@)
goto_if_false @MUSIC2_6501
Blip.Remove(64@)

:MUSIC2_6501
if 
  Char.IsDead(40@)
goto_if_false @MUSIC2_6538
if 
  Blip.DoesExist(65@)
goto_if_false @MUSIC2_6538
Blip.Remove(65@)

:MUSIC2_6538
if 
  Char.IsDead(41@)
goto_if_false @MUSIC2_6575
if 
  Blip.DoesExist(66@)
goto_if_false @MUSIC2_6575
Blip.Remove(66@)

:MUSIC2_6575
if 
  Char.IsDead(43@)
goto_if_false @MUSIC2_6612
if 
  Blip.DoesExist(68@)
goto_if_false @MUSIC2_6612
Blip.Remove(68@)

:MUSIC2_6612
if 
  70@ == 3
goto_if_false @MUSIC2_8701
if 
  85@ == 1
goto_if_false @MUSIC2_8013
World.DisableAllEntryExits(False)
60@ = Pickup.CreateWithAmmo(347, PickupType.Once, 30, 1237.418, -808.5872, 1084.09)
Char.Delete(37@)
Char.Delete(38@)
Char.Delete(39@)
37@ = Char.Create(PedType.Mission1, 24, 1243.53, -812.19, 1083.04)
Char.SetHasUsedEntryExit(37@, 1298.78, -798.2, 1.0)
Char.SetHeading(37@, 270.948)
Char.SetDecisionMaker(37@, 45@)
62@ = Blip.AddForChar(37@)
Blip.ChangeDisplay(62@, BlipDisplay.BlipOnly)
Char.GiveWeapon(37@, WeaponType.PistolSilenced, 99999)
Char.SetFollowNodeThresholdDistance(37@, 2.0)
Task.FollowPathNodesToCoord(37@, 1270.694, -802.518, 1084.05, 4, -2)
Char.SetInformRespectedFriends(37@, 10.0, 1)
Char.SetAccuracy(37@, 100)
38@ = Char.Create(PedType.Mission1, 25, 1280.02, -789.01, 1083.05)
Char.SetHasUsedEntryExit(38@, 1298.78, -798.2, 1.0)
Char.SetHeading(38@, 91.837)
Char.SetDecisionMaker(38@, 45@)
63@ = Blip.AddForChar(38@)
Blip.ChangeDisplay(63@, BlipDisplay.BlipOnly)
Char.GiveWeapon(38@, WeaponType.PistolSilenced, 99999)
Char.SetInformRespectedFriends(38@, 5.0, 1)
Char.SetAccuracy(38@, 100)
42@ = Char.Create(PedType.Mission1, 24, 1249.768, -780.616, 1084.063)
Char.SetHasUsedEntryExit(42@, 1298.78, -798.2, 1.0)
Char.SetHeading(42@, 3.43)
67@ = Blip.AddForChar(42@)
Blip.ChangeDisplay(67@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(42@, 45@)
Char.GiveWeapon(42@, WeaponType.PistolSilenced, 99999)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(1249.799, -769.679, 1084.063, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(1267.62, -769.651, 1084.06, "NONE", "NONE")
Path.ExtendPatrolRoute(1249.799, -769.679, 1084.063, "NONE", "NONE")
Path.ExtendPatrolRoute(1249.768, -780.616, 1084.063, "NONE", "NONE")
Task.FollowPatrolRoute(42@, 4, RouteMode.Loop)
Char.SetInformRespectedFriends(42@, 15.0, 2)
if 
  not Char.IsDead(41@)
goto_if_false @MUSIC2_7349
Char.Delete(41@)
41@ = Char.Create(PedType.Mission1, 24, 1276.795, -792.368, 1083.055)
Char.SetHasUsedEntryExit(41@, 1298.78, -798.2, 1.0)
Char.SetHeading(41@, 180.0)
Char.SetDecisionMaker(41@, 46@)
Char.GiveWeapon(41@, WeaponType.PistolSilenced, 99999)
66@ = Blip.AddForChar(41@)
Blip.ChangeDisplay(66@, BlipDisplay.BlipOnly)
Task.PlayAnim(41@, "PED_CONSOLE_LOOP", "CRIB", 4.0, True, False, False, False, -1)
Char.SetInformRespectedFriends(41@, 20.0, 1)
goto @MUSIC2_7465

:MUSIC2_7349
Char.RemoveElegantly(41@)
41@ = Char.Create(PedType.Mission1, 24, 1270.616, -792.298, 1084.047)
Char.SetHasUsedEntryExit(41@, 1298.78, -798.2, 1.0)
Char.SetHeading(41@, 186.126)
Char.SetDecisionMaker(41@, 46@)
Char.GiveWeapon(41@, WeaponType.PistolSilenced, 99999)
66@ = Blip.AddForChar(41@)
Blip.ChangeDisplay(66@, BlipDisplay.BlipOnly)
Task.SitDown(41@, 400000)
Char.SetInformRespectedFriends(41@, 20.0, 1)

:MUSIC2_7465
if 
  not Char.IsDead(40@)
goto_if_false @MUSIC2_7624
Char.Delete(40@)
40@ = Char.Create(PedType.Mission1, 25, 1256.492, -795.662, 1084.282)
Char.SetHasUsedEntryExit(40@, 1298.78, -798.2, 1.0)
Char.SetHeading(40@, 186.842)
Task.PlayAnim(40@, "ATM", "PED", 4.0, True, False, False, False, -1)
65@ = Blip.AddForChar(40@)
Blip.ChangeDisplay(65@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(40@, 46@)
Char.GiveWeapon(40@, WeaponType.PistolSilenced, 99999)
Char.SetInformRespectedFriends(40@, 10.0, 1)
goto @MUSIC2_7760

:MUSIC2_7624
Char.RemoveElegantly(40@)
40@ = Char.Create(PedType.Mission1, 25, 1252.99, -795.461, 1083.282)
Char.SetHasUsedEntryExit(40@, 1298.78, -798.2, 1.0)
Char.SetHeading(40@, 186.842)
Task.PlayAnim(40@, "ATM", "PED", 4.0, True, False, False, False, -1)
65@ = Blip.AddForChar(40@)
Blip.ChangeDisplay(65@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(40@, 46@)
Char.GiveWeapon(40@, WeaponType.PistolSilenced, 99999)
Char.SetInformRespectedFriends(40@, 10.0, 1)

:MUSIC2_7760
44@ = Char.Create(PedType.Mission1, 25, 1290.667, -778.9339, 1083.012)
Char.SetHasUsedEntryExit(44@, 1298.78, -798.2, 1.0)
Char.SetHeading(44@, 350.151)
Char.SetFollowNodeThresholdDistance(44@, 5.0)
Char.SetDecisionMaker(44@, 46@)
69@ = Blip.AddForChar(44@)
Blip.ChangeDisplay(69@, BlipDisplay.BlipOnly)
Char.GiveWeapon(44@, WeaponType.PistolSilenced, 5000)
Char.SetAccuracy(44@, 100)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(1289.988, -766.581, 1084.063, "NONE", "NONE")
Path.ExtendPatrolRoute(1270.314, -766.564, 1084.063, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(1270.074, -782.155, 1084.063, "NONE", "NONE")
Path.ExtendPatrolRoute(1290.246, -782.463, 1084.056, "ROADCROSS", "PED")
Task.FollowPatrolRoute(44@, 4, RouteMode.Loop)
78@ = 0
85@ = 2

:MUSIC2_8013
if 
  94@ == 0
goto_if_false @MUSIC2_8134
if 
  Char.LocateAnyMeans3D($scplayer, 1282.61, -787.389, 1084.063, 6.0, 6.0, 6.0, False)
goto_if_false @MUSIC2_8134
if 
  not Char.IsDead(40@)
goto_if_false @MUSIC2_8103
Char.SetDecisionMaker(40@, 45@)

:MUSIC2_8103
if 
  not Char.IsDead(41@)
goto_if_false @MUSIC2_8127
Char.SetDecisionMaker(41@, 45@)

:MUSIC2_8127
94@ = 1

:MUSIC2_8134
if 
  78@ == 0
goto_if_false @MUSIC2_8231
if 
  Char.LocateOnFoot3D($scplayer, 1249.61, -772.86, 1083.46, 7.0, 7.0, 5.0, False)
goto_if_false @MUSIC2_8231
if 
  not Char.IsDead(44@)
goto_if_false @MUSIC2_8231
Char.SetDecisionMaker(44@, 45@)
78@ = 1

:MUSIC2_8231
if 
  85@ > 0
goto_if_false @MUSIC2_8304
if 
  71@ == 9
goto_if_false @MUSIC2_8304
if 
  TIMERA > 8500
goto_if_false @MUSIC2_8304
Text.PrintHelp('STP2_33')
71@ = 10

:MUSIC2_8304
34@ = Char.GetAreaVisible($scplayer)
if 
  34@ == 0
goto_if_false @MUSIC2_8405
Blip.Remove(61@)

:MUSIC2_8335
if 
  not Camera.GetFadingStatus
goto_if_false @MUSIC2_8359
wait 0
goto @MUSIC2_8335

:MUSIC2_8359
Char.SetCoordinates($scplayer, 1299.664, -800.546, 83.148)
Char.SetHeading($scplayer, 271.284)
Camera.SetBehindPlayer
85@ = 2
70@ = 4

:MUSIC2_8405
if 
  Char.IsDead(37@)
goto_if_false @MUSIC2_8442
if 
  Blip.DoesExist(62@)
goto_if_false @MUSIC2_8442
Blip.Remove(62@)

:MUSIC2_8442
if 
  Char.IsDead(38@)
goto_if_false @MUSIC2_8479
if 
  Blip.DoesExist(63@)
goto_if_false @MUSIC2_8479
Blip.Remove(63@)

:MUSIC2_8479
if 
  Char.IsDead(39@)
goto_if_false @MUSIC2_8516
if 
  Blip.DoesExist(64@)
goto_if_false @MUSIC2_8516
Blip.Remove(64@)

:MUSIC2_8516
if 
  Char.IsDead(40@)
goto_if_false @MUSIC2_8553
if 
  Blip.DoesExist(65@)
goto_if_false @MUSIC2_8553
Blip.Remove(65@)

:MUSIC2_8553
if 
  Char.IsDead(41@)
goto_if_false @MUSIC2_8590
if 
  Blip.DoesExist(66@)
goto_if_false @MUSIC2_8590
Blip.Remove(66@)

:MUSIC2_8590
if 
  Char.IsDead(42@)
goto_if_false @MUSIC2_8627
if 
  Blip.DoesExist(67@)
goto_if_false @MUSIC2_8627
Blip.Remove(67@)

:MUSIC2_8627
if 
  Char.IsDead(43@)
goto_if_false @MUSIC2_8664
if 
  Blip.DoesExist(68@)
goto_if_false @MUSIC2_8664
Blip.Remove(68@)

:MUSIC2_8664
if 
  Char.IsDead(44@)
goto_if_false @MUSIC2_8701
if 
  Blip.DoesExist(69@)
goto_if_false @MUSIC2_8701
Blip.Remove(69@)

:MUSIC2_8701
if 
  85@ == 2
goto_if_false @MUSIC2_8990
if 
  70@ == 4
goto_if_false @MUSIC2_8990
61@ = Blip.AddForCoord(790.0, -1631.0, 12.43)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
53@ = Car.Create(510, 1306.718, -797.24, 83.66)
Car.SetHeading(53@, 206.253)
Char.Delete(37@)
Char.Delete(38@)
Char.Delete(39@)
Char.Delete(40@)
Char.Delete(41@)
Char.Delete(42@)
Char.Delete(43@)
Blip.Remove(62@)
Blip.Remove(63@)
Blip.Remove(64@)
Blip.Remove(65@)
Blip.Remove(66@)
Blip.Remove(67@)
Blip.Remove(68@)
Streaming.MarkModelAsNoLongerNeeded(24)
Streaming.MarkModelAsNoLongerNeeded(25)
Streaming.MarkModelAsNoLongerNeeded(579)
Streaming.MarkModelAsNoLongerNeeded(580)
Streaming.MarkModelAsNoLongerNeeded(#KMB_RHYMESBOOK)
Streaming.MarkModelAsNoLongerNeeded(#CJ_JUICE_CAN)
Streaming.MarkModelAsNoLongerNeeded(347)
Streaming.RemoveAnimation("CRIB")
Streaming.RemoveAnimation("VENDING")
Streaming.MarkModelAsNoLongerNeeded(335)
Hud.SetRadarZoom(0)
Blip.Remove(62@)
Blip.Remove(63@)
Blip.Remove(64@)
Blip.Remove(65@)
Blip.Remove(66@)
Blip.Remove(67@)
Blip.Remove(68@)
Text.PrintNow('STP2_30', 7000, 1)
70@ = 5
TIMERA = 0

:MUSIC2_8990
if 
  97@ == 0
goto_if_false @MUSIC2_9050
if 
  not Car.IsDead(53@)
goto_if_false @MUSIC2_9050
if 
  Char.IsSittingInCar($scplayer, 53@)
goto_if_false @MUSIC2_9050
97@ = 1

:MUSIC2_9050
if 
  70@ == 5
goto_if_false @MUSIC2_9584
if 
  Char.LocateAnyMeans3D($scplayer, 788.05, -1630.31, 12.42, 2.0, 2.0, 5.0, True)
goto_if_false @MUSIC2_9584
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.DoFade(1000, Fade.Out)

:MUSIC2_9134
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC2_9158
wait 0
goto @MUSIC2_9134

:MUSIC2_9158
World.ClearArea(-1095.489, -1630.609, 50.0, 50.0, True)
Car.MarkAsNoLongerNeeded(53@)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MUSIC2_9278
$car = Char.StoreCarIsIn($scplayer)
Car.SetCoordinates($car, 784.686, -1613.7, 12.22)
Car.SetHeading($car, 353.08)
Char.WarpFromCarToCoord($scplayer, 785.75, -1632.84, 12.43)
Char.SetHeading($scplayer, 316.0)
goto @MUSIC2_9308

:MUSIC2_9278
Char.SetCoordinates($scplayer, 785.75, -1632.84, 12.43)
Char.SetHeading($scplayer, 316.0)

:MUSIC2_9308
Streaming.RequestAnimation("GANGS")
Streaming.LoadSpecialCharacter(1, 'OGLOC')
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 15602)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 15600)
Streaming.LoadAllModelsNow

:MUSIC2_9354
if or
  not Streaming.HasAnimationLoaded("GANGS")
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @MUSIC2_9393
wait 0
goto @MUSIC2_9354

:MUSIC2_9393
52@ = Char.Create(PedType.Special, 290, 792.72, -1626.6, 12.43)
Char.SetHeading(52@, 114.71)
Char.SetDecisionMaker(52@, 46@)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.ShutUp(52@, True)
Char.ShutUp($scplayer, True)
Camera.DoFade(2000, Fade.In)
95@ = 1
Camera.SetFixedPosition(785.7997, -1635.43, 13.4579, 0.0, 0.0, 0.0)
Camera.PointAtPoint(786.2913, -1634.565, 13.3583, SwitchType.JumpCut)
Task.GoStraightToCoord($scplayer, 788.98, -1629.61, 12.59, MoveState.Walk, -1)
Task.GoStraightToCoord(52@, 788.98, -1629.61, 12.59, MoveState.Walk, -1)
TIMERA = 0
70@ = 6

:MUSIC2_9584
if 
  70@ == 6
goto_if_false @MUSIC2_9839
if 
  TIMERA > 2440
goto_if_false @MUSIC2_9839
if 
  not Char.IsDead(52@)
goto_if_false @MUSIC2_9839
Camera.SetFixedPosition(788.2733, -1628.832, 13.9503, 0.0, 0.0, 0.0)
Camera.PointAtPoint(788.473, -1629.811, 13.9214, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 787.973, -1630.274, 12.42)
Char.SetHeading($scplayer, 310.378)
Char.SetCoordinates(52@, 788.7348, -1629.626, 12.42)
Char.SetHeading(52@, 130.378)
Char.ClearTasksImmediately(52@)
Char.ClearTasksImmediately($scplayer)
Task.PlayAnim(52@, "HNDSHKFA", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim($scplayer, "HNDSHKFA", "GANGS", 4.0, False, False, False, False, -1)
70@ = 7

:MUSIC2_9839
if 
  70@ > 4
goto_if_false @MUSIC2_10504
if 
  not Char.IsDead(52@)
goto_if_false @MUSIC2_10504
if 
  95@ == 1
goto_if_false @MUSIC2_9926
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Char.StartFacialTalk($scplayer, 10000)
Text.PrintNow('LOC2_CA', 5000, 1)
95@ = 2

:MUSIC2_9926
if 
  95@ == 2
goto_if_false @MUSIC2_9984
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @MUSIC2_9984
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Char.StopFacialTalk($scplayer)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 15603)
95@ = 3

:MUSIC2_9984
if 
  95@ == 3
goto_if_false @MUSIC2_10037
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('LOC2_CB', 5000, 1)
Char.StartFacialTalk(52@, 10000)
95@ = 4

:MUSIC2_10037
if 
  95@ == 4
goto_if_false @MUSIC2_10095
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @MUSIC2_10095
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Char.StopFacialTalk(52@)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 15601)
95@ = 5

:MUSIC2_10095
if 
  95@ == 5
goto_if_false @MUSIC2_10163
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @MUSIC2_10163
Text.PrintNow('LOC2_CC', 5000, 1)
Char.StartFacialTalk($scplayer, 10000)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
95@ = 6

:MUSIC2_10163
if 
  95@ == 6
goto_if_false @MUSIC2_10210
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @MUSIC2_10210
Text.ClearPrints
Char.StopFacialTalk($scplayer)
95@ = 7

:MUSIC2_10210
if 
  95@ == 7
goto_if_false @MUSIC2_10368
Camera.SetFixedPosition(773.2047, -1633.066, 17.7324, 0.0, 0.0, 0.0)
Camera.PointAtPoint(774.1813, -1632.908, 17.5877, SwitchType.JumpCut)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('LOC2_DC', 5000, 1)
Char.StartFacialTalk(52@, 4000)
Task.GoStraightToCoord($scplayer, 806.1331, -1630.219, 12.3906, MoveState.Walk, 60000)
Task.GoStraightToCoord(52@, 793.8177, -1625.155, 12.3828, MoveState.Walk, 60000)
95@ = 8

:MUSIC2_10368
if 
  95@ == 8
goto_if_false @MUSIC2_10504
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @MUSIC2_10504
Camera.DoFade(1000, Fade.Out)
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)

:MUSIC2_10414
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC2_10438
wait 0
goto @MUSIC2_10414

:MUSIC2_10438
Char.SetCoordinates($scplayer, 808.299, -1630.424, 12.42)
Char.SetHeading($scplayer, 254.602)
Camera.DoFade(1000, Fade.In)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
goto @MUSIC2_10529
95@ = 9

:MUSIC2_10504
goto @MUSIC2_745

:MUSIC2_10511
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:MUSIC2_10529
Stat.RegisterMissionPassed('STRAP_2')
Text.PrintWithNumberBig('M_PASSR', 4, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(4)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.PlayerMadeProgress(1)
$flag_strap_mission_counter += 1
return 

:MUSIC2_10584
Game.SetScriptLimitToGangSize(99)
Char.RemoveElegantly(52@)
Pickup.Remove(60@)
World.SwitchEntryExit('MADDOGS', False)
World.SwitchEntryExit('MDDOGS', False)
if 
  Player.IsPlaying($player1)
goto_if_false @MUSIC2_10654
Pad.SetPlayerCycleWeaponButton($player1, True)
Player.SetGroupRecruitment($player1, True)

:MUSIC2_10654
Game.SetWantedMultiplier(1.0)
Hud.SetRadarZoom(0)
Char.ShutUp($scplayer, False)
Blip.Remove(61@)
Blip.Remove(62@)
Blip.Remove(63@)
Blip.Remove(64@)
Blip.Remove(65@)
Blip.Remove(66@)
Blip.Remove(67@)
Blip.Remove(68@)
Pickup.Remove(59@)
Streaming.UnloadSpecialCharacter(1)
Streaming.RemoveAnimation("GANGS")
Streaming.MarkModelAsNoLongerNeeded(510)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(24)
Streaming.MarkModelAsNoLongerNeeded(25)
Streaming.MarkModelAsNoLongerNeeded(579)
Streaming.MarkModelAsNoLongerNeeded(580)
Streaming.MarkModelAsNoLongerNeeded(#KMB_RHYMESBOOK)
Streaming.MarkModelAsNoLongerNeeded(#CJ_JUICE_CAN)
Streaming.MarkModelAsNoLongerNeeded(347)
Streaming.RemoveAnimation("CRIB")
Streaming.RemoveAnimation("VENDING")
Streaming.MarkModelAsNoLongerNeeded(335)
$onmission = 0
World.DisableAllEntryExits(False)
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

//-------------Mission 33---------------
// Originally: Management Issues

:MUSIC3
script_name 'MUSIC3'
gosub @MUSIC3_47
if 
  has_deatharrest_been_executed 
goto_if_false @MUSIC3_38
gosub @MUSIC3_15486

:MUSIC3_38
gosub @MUSIC3_15590
terminate_this_script 

:MUSIC3_47
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('STRAP3')
if 
  $onmission == 0
goto_if_false @MUSIC3_805
90@ = Object.Create(#DYN_ROADBARRIER_2, 1024.5, -1123.2, 22.9)
91@ = Object.Create(#DYN_ROADBARRIER_2, 1024.5, -1127.2, 22.9)
92@ = Object.Create(#DYN_ROADBARRIER_2, 1024.5, -1131.2, 22.9)
93@ = Object.Create(#DYN_ROADBARRIER_2, 1020.5, -1123.2, 22.9)
94@ = Object.Create(#DYN_ROADBARRIER_2, 1020.5, -1127.2, 22.9)
95@ = Object.Create(#DYN_ROADBARRIER_2, 1020.5, -1131.2, 22.9)
96@ = Object.Create(#DYN_ROADBARRIER_2, 1016.5, -1133.2, 22.9)
97@ = Object.Create(#DYN_ROADBARRIER_2, 1012.5, -1133.2, 22.9)
98@ = Object.Create(#DYN_ROADBARRIER_2, 1008.5, -1133.2, 22.9)
99@ = Object.Create(#DYN_ROADBARRIER_2, 1028.5, -1133.2, 22.9)
100@ = Object.Create(#DYN_ROADBARRIER_2, 1032.5, -1133.2, 22.9)
101@ = Object.Create(#DYN_ROADBARRIER_2, 1036.5, -1133.2, 22.9)
78@ = Object.Create(#DYN_ROADBARRIER_2, 1036.5, -1133.2, 22.9)
79@ = Object.Create(#DYN_ROADBARRIER_2, 1036.5, -1133.2, 22.9)
80@ = Object.Create(#DYN_ROADBARRIER_2, 1036.5, -1133.2, 22.9)
81@ = Object.Create(#DYN_ROADBARRIER_2, 1036.5, -1133.2, 22.9)
82@ = Object.Create(#DYN_ROADBARRIER_2, 1036.5, -1133.2, 22.9)
83@ = Object.Create(#DYN_ROADBARRIER_2, 1036.5, -1133.2, 22.9)
84@ = Object.Create(#DYN_ROADBARRIER_2, 1036.5, -1133.2, 22.9)
85@ = Object.Create(#DYN_ROADBARRIER_2, 1036.5, -1133.2, 22.9)
86@ = Object.Create(#DYN_ROADBARRIER_2, 1036.5, -1133.2, 22.9)
87@ = Object.Create(#DYN_ROADBARRIER_2, 1036.5, -1133.2, 22.9)
88@ = Object.Create(#DYN_ROADBARRIER_2, 1036.5, -1133.2, 22.9)
89@ = Object.Create(#DYN_ROADBARRIER_2, 1036.5, -1133.2, 22.9)
113@ = Blip.AddForCoord(1118.3, -1140.9, 22.2)
63@ = Char.Create(PedType.Mission2, 280, 1023.4, -1121.0, 22.9)
70@ = Char.Create(PedType.Mission2, 280, 1023.4, -1121.0, 22.9)
67@ = Car.Create(507, 1174.1, -926.8, 43.6)
65@ = Char.Create(PedType.Mission2, 280, 1023.4, -1121.0, 22.9)
64@ = Char.Create(PedType.Mission2, 280, 1023.4, -1121.0, 22.9)
111@ = Char.Create(PedType.Mission2, 280, 1023.4, -1121.0, 22.9)

:MUSIC3_805
Text.ClearPrints
wait 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
175@ = 0
126@ = 0
$x = 0.0
$y = 0.0
$z = 0.0
140@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
set_lvar_int_to_constant 136@ = 24
141@ = 0
142@ = 0
225@ = 0.0
226@ = 0.0
227@ = 0.0
228@ = 0.0
229@ = 0.0
230@ = 0.0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
$minutes = 0
150@ = 0
157@ = 0.0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
220@ = 0
221@ = 0
222@ = 0
223@ = 0
224@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
156@ = 0
170@ = 0
171@ = 0
Player.MakeGangDisappear
Streaming.SetAreaVisible(10)
Camera.SetFadingColor(0, 0, 0)
Cutscene.Load('STRAP3A')

:MUSIC3_1314
if 
  not Cutscene.HasLoaded
goto_if_false @MUSIC3_1338
wait 0
goto @MUSIC3_1314

:MUSIC3_1338
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:MUSIC3_1347
if 
  not Cutscene.HasFinished
goto_if_false @MUSIC3_1371
wait 0
goto @MUSIC3_1347

:MUSIC3_1371
Camera.DoFade(0, Fade.Out)

:MUSIC3_1377
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC3_1401
wait 0
goto @MUSIC3_1377

:MUSIC3_1401
Streaming.SetAreaVisible(0)
Cutscene.Clear
Player.MakeGangReappear
Player.SetControl($player1, False)
Camera.SetFadingColor(0, 0, 0)
wait 0
Streaming.RequestModel(24)
Streaming.RequestModel(507)
Streaming.RequestModel(346)
Streaming.RequestModel(330)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 35200)
Streaming.LoadAllModelsNow
Group.Remove($Players_Group)
Player.SetGroupRecruitment($player1, False)
233@ = DecisionMakerChar.Copy(65542)
234@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
World.ClearArea(1214.8, -921.7, 41.7, 5.0, True)
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23312
73@ = Car.Create(507, 1214.8, -921.7, 41.7)
Car.SetHeading(73@, 169.3)
Car.ChangeColor(73@, 0, 0)
Car.SetCanRespray(73@, False)
Car.SetOnlyDamagedByPlayer(73@, True)
Car.LockDoors(73@, CarLock.Unlocked)
Car.SetOnlyDamagedByPlayer(73@, True)
Car.SetCanBurstTires(73@, False)
113@ = Blip.AddForCar(73@)
76@ = Char.CreateInsideCar(73@, PedType.Mission2, 24)
Char.GiveWeapon(76@, WeaponType.Pistol, 3000)
Char.SetDecisionMaker(76@, 234@)
World.ClearArea(1297.6, -1137.2, 22.5, 5.0, True)
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23312
72@ = Car.Create(507, 1297.6, -1137.2, 22.5)
Car.SetHeading(72@, 90.0)
Car.SetOnlyDamagedByPlayer(72@, True)
Car.ChangeColor(72@, 0, 0)
Car.MarkAsConvoyCar(72@, True)
Car.LockDoors(72@, CarLock.LockoutPlayerOnly)
Car.FreezePositionAndDontLoadCollision(72@, True)
Car.SetCanBurstTires(72@, False)
World.ClearArea(1316.5, -1137.2, 22.5, 5.0, True)
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23312
74@ = Car.Create(507, 1316.5, -1137.2, 22.5)
Car.SetHeading(74@, 90.0)
Car.SetOnlyDamagedByPlayer(74@, True)
Car.ChangeColor(74@, 0, 0)
Car.MarkAsConvoyCar(74@, True)
Car.LockDoors(74@, CarLock.LockoutPlayerOnly)
Car.SetDrivingStyle(74@, DrivingMode.SlowDownForCars)
Car.FreezePositionAndDontLoadCollision(74@, True)
Car.SetCanBurstTires(74@, False)
Car.SetStraightLineDistance(74@, 50)
Car.SetCanBeVisiblyDamaged(74@, False)
Path.MarkRoadNodeAsDontWander(76.6, -1527.6, 4.1)
Path.MarkRoadNodeAsDontWander(162.2, -1394.6, 46.8)
Path.MarkRoadNodeAsDontWander(273.2, -980.9, 47.4)
Path.MarkRoadNodeAsDontWander(362.8, -1147.8, 77.0)
Path.MarkRoadNodeAsDontWander(378.1, -1147.4, 77.0)
Path.MarkRoadNodeAsDontWander(1536.4, -994.8, 41.5)
Path.MarkRoadNodeAsDontWander(1638.7, -1177.5, 54.1)
Path.MarkRoadNodeAsDontWander(1873.9, -1009.4, 35.0)
Path.MarkRoadNodeAsDontWander(2887.8, -1121.4, 9.8)
Path.MarkRoadNodeAsDontWander(165.8, -1185.3, 51.8)
Path.MarkRoadNodeAsDontWander(695.7, -995.6, 51.0)
Path.MarkRoadNodeAsDontWander(794.8, -1033.6, 23.7)
Path.MarkRoadNodeAsDontWander(1311.1, -701.7, 91.7)
Path.MarkRoadNodeAsDontWander(2838.7, -1024.2, 21.5)
Text.PrintNow('STP3_01', 7000, 1)
Text.Print('STP3_02', 7000, 1)
World.ClearArea(794.6, -1597.1, 12.5, 1.0, True)
Streaming.LoadScene(794.6, -1597.1, 12.5)
Char.SetCoordinates($scplayer, 794.6, -1597.1, 12.5)
Char.SetHeading($scplayer, 45.0)
Clock.SetTimeOfDay(16, 0)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Game.EnableAmbientCrime(False)
TIMERB = 0
Camera.DoFade(500, Fade.In)

:MUSIC3_2270
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MUSIC3_2296
goto @MUSIC3_15504

:MUSIC3_2296
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_2328
goto @MUSIC3_15486

:MUSIC3_2328
144@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 143@ = 144@
sub_int_lvar_from_int_lvar 143@ -= 145@
set_lvar_int_to_lvar_int 145@ = 144@
sub_int_lvar_from_int_lvar 146@ -= 143@
add_int_lvar_to_int_lvar 159@ += 143@
149@, $minutes = Clock.GetTimeOfDay()
if 
  122@ == 0
goto_if_false @MUSIC3_4540
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @MUSIC3_2444
Char.SetCoordinates($scplayer, 1179.5, -920.3, 42.2)
Char.SetHeading($scplayer, 99.7)

:MUSIC3_2444
if 
  175@ == 0
goto_if_false @MUSIC3_2595
if or
  123@ == 1
  123@ == 2
goto_if_false @MUSIC3_2595
if 
  Char.LocateAnyMeansCar3D($scplayer, 73@, 25.0, 25.0, 25.0, False)
goto_if_false @MUSIC3_2595
if 
  not Char.IsDead(76@)
goto_if_false @MUSIC3_2581
if 
  Char.IsInCar(76@, 73@)
goto_if_false @MUSIC3_2574
Text.Print('STP3_19', 7000, 1)

:MUSIC3_2574
goto @MUSIC3_2588

:MUSIC3_2581
175@ = 2

:MUSIC3_2588
175@ = 1

:MUSIC3_2595
if 
  175@ == 1
goto_if_false @MUSIC3_2755
if 
  not Char.IsDead(76@)
goto_if_false @MUSIC3_2748
if 
  not Char.IsSittingInCar(76@, 73@)
goto_if_false @MUSIC3_2741
Text.ClearThisPrint('STP3_19')
if 
  Char.LocateAnyMeansChar3D($scplayer, 76@, 15.0, 15.0, 15.0, False)
goto_if_false @MUSIC3_2734
if 
  174@ == 0
goto_if_false @MUSIC3_2734
174@ = 1
176@ = 0
gosub @MUSIC3_24543

:MUSIC3_2734
175@ = 2

:MUSIC3_2741
goto @MUSIC3_2755

:MUSIC3_2748
175@ = 2

:MUSIC3_2755
if 
  175@ == 2
goto_if_false @MUSIC3_2874
if 
  174@ == 0
goto_if_false @MUSIC3_2874
if 
  not Car.IsDead(73@)
goto_if_false @MUSIC3_2874
if 
  not Char.IsInCar($scplayer, 73@)
goto_if_false @MUSIC3_2867
Text.ClearThisPrint('STP3_19')
Text.Print('STP3_11', 7000, 1)
175@ = 3
goto @MUSIC3_2874

:MUSIC3_2867
175@ = 3

:MUSIC3_2874
if 
  123@ == 0
goto_if_false @MUSIC3_3327
if 
  not Char.IsDead(76@)
goto_if_false @MUSIC3_3327
if or
  Char.LocateAnyMeansChar2D($scplayer, 76@, 250.0, 250.0, False)
  149@ > 17
goto_if_false @MUSIC3_3327
ENTEXT_63()
if 
  $player_is_completely_safe == 1
goto_if_false @MUSIC3_3320
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @MUSIC3_3099
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
174@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
174@ = 7
176@ = 0
177@ = 1
gosub @MUSIC3_24543
Char.ShutUpForScriptedSpeech($scplayer, True)
124@ = 1
skip_cutscene_start_internal @MUSIC3_3488
Task.UseMobilePhone($scplayer, True)
TIMERA = 0
167@ = 1
123@ = 1
goto @MUSIC3_3313

:MUSIC3_3099
if 
  not Char.IsDead(76@)
goto_if_false @MUSIC3_3264
if 
  not Car.IsDead(73@)
goto_if_false @MUSIC3_3264
232@ = Sequence.Open()
Task.EnterCarAsDriver(-1, 73@, -1)
Task.CarDriveToCoord(-1, 73@, 1211.0, -932.3, 41.9, 15.0, DriveMode.Normal, 1, DrivingMode.StopForCars)
Task.CarDriveToCoord(-1, 73@, 1160.8, -1027.5, 31.4, 15.0, DriveMode.Normal, 1, DrivingMode.StopForCars)
Task.CarDriveWander(-1, 73@, 15.0, DrivingMode.StopForCars)
Sequence.Close(232@)
Char.PerformSequence(76@, 232@)
Sequence.Clear(232@)
StuckCarCheck.AddWithWarp(73@, 0.5, 4000, True, True, True, 7)

:MUSIC3_3264
174@ = 7
176@ = 0
177@ = 5
gosub @MUSIC3_24543
Char.ShutUpForScriptedSpeech($scplayer, True)
167@ = 3
123@ = 1

:MUSIC3_3313
goto @MUSIC3_3327

:MUSIC3_3320
123@ = 1

:MUSIC3_3327
if 
  167@ == 1
goto_if_false @MUSIC3_3417
if 
  TIMERA > 2000
goto_if_false @MUSIC3_3417
if 
  174@ == 0
goto_if_false @MUSIC3_3417
174@ = 7
176@ = 1
177@ = 2
gosub @MUSIC3_24543
167@ = 2

:MUSIC3_3417
if 
  167@ == 2
goto_if_false @MUSIC3_3705
if 
  174@ == 0
goto_if_false @MUSIC3_3705
174@ = 7
176@ = 2
177@ = 5
gosub @MUSIC3_24543
124@ = 0

:MUSIC3_3488
skip_cutscene_end 
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_3522
goto @MUSIC3_15486

:MUSIC3_3522
if 
  not Char.IsDead(76@)
goto_if_false @MUSIC3_3687
if 
  not Car.IsDead(73@)
goto_if_false @MUSIC3_3687
232@ = Sequence.Open()
Task.EnterCarAsDriver(-1, 73@, -1)
Task.CarDriveToCoord(-1, 73@, 1211.0, -932.3, 41.9, 15.0, DriveMode.Normal, 1, DrivingMode.StopForCars)
Task.CarDriveToCoord(-1, 73@, 1160.8, -1027.5, 31.4, 15.0, DriveMode.Normal, 1, DrivingMode.StopForCars)
Task.CarDriveWander(-1, 73@, 15.0, DrivingMode.StopForCars)
Sequence.Close(232@)
Char.PerformSequence(76@, 232@)
Sequence.Clear(232@)
StuckCarCheck.AddWithWarp(73@, 0.5, 4000, True, True, True, 7)

:MUSIC3_3687
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
167@ = 3

:MUSIC3_3705
if 
  167@ == 3
goto_if_false @MUSIC3_3875
if 
  174@ == 0
goto_if_false @MUSIC3_3791
$task_status = Char.GetScriptTaskStatus($scplayer, 1833)
if 
  is_int_var_equal_to_constant $task_status == 1
goto_if_false @MUSIC3_3777
Task.UseMobilePhone($scplayer, False)

:MUSIC3_3777
Char.ShutUpForScriptedSpeech($scplayer, False)
167@ = 4

:MUSIC3_3791
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @MUSIC3_3875
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
174@ = 0
$task_status = Char.GetScriptTaskStatus($scplayer, 1833)
if 
  is_int_var_equal_to_constant $task_status == 1
goto_if_false @MUSIC3_3861
Task.UseMobilePhone($scplayer, False)

:MUSIC3_3861
Char.ShutUpForScriptedSpeech($scplayer, False)
167@ = 4

:MUSIC3_3875
if 
  123@ == 1
goto_if_false @MUSIC3_3987
if 
  not Char.IsDead(76@)
goto_if_false @MUSIC3_3987
if 
  Char.IsInCar(76@, 73@)
goto_if_false @MUSIC3_3987
if 
  149@ > 20
goto_if_false @MUSIC3_3987
Task.CarDriveToCoord(76@, 73@, 1316.4, -1136.5, 22.9, 15.0, DriveMode.Normal, 1, DrivingMode.AvoidCars)
123@ = 2

:MUSIC3_3987
if 
  123@ == 2
goto_if_false @MUSIC3_4108
if 
  not Char.IsDead(76@)
goto_if_false @MUSIC3_4108
if 
  Char.IsInCar(76@, 73@)
goto_if_false @MUSIC3_4108
if 
  Car.Locate2D(73@, 1316.4, -1136.5, 5.0, 5.0, False)
goto_if_false @MUSIC3_4108
Text.PrintNow('STP3_03', 4000, 1)
150@ = 1
122@ = 9

:MUSIC3_4108
if 
  123@ > 0
goto_if_false @MUSIC3_4341
if 
  3 > 123@
goto_if_false @MUSIC3_4341
if 
  Car.HasBeenDamagedByChar(73@, $scplayer)
goto_if_false @MUSIC3_4225
if 
  not Char.IsDead(76@)
goto_if_false @MUSIC3_4213
232@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(232@)
Char.PerformSequence(76@, 232@)
Sequence.Clear(232@)

:MUSIC3_4213
StuckCarCheck.Remove(73@)
123@ = 3

:MUSIC3_4225
if 
  not Char.IsDead(76@)
goto_if_false @MUSIC3_4329
if 
  not Char.IsInCar(76@, 73@)
goto_if_false @MUSIC3_4322
if 
  not Char.IsDead(76@)
goto_if_false @MUSIC3_4310
232@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(232@)
Char.PerformSequence(76@, 232@)
Sequence.Clear(232@)

:MUSIC3_4310
StuckCarCheck.Remove(73@)
123@ = 3

:MUSIC3_4322
goto @MUSIC3_4341

:MUSIC3_4329
StuckCarCheck.Remove(73@)
123@ = 3

:MUSIC3_4341
if 
  149@ > 21
goto_if_false @MUSIC3_4373
150@ = 0
122@ = 9

:MUSIC3_4373
if 
  Char.LocateAnyMeansCar2D($scplayer, 73@, 60.0, 60.0, False)
goto_if_false @MUSIC3_4418
Car.SetOnlyDamagedByPlayer(73@, False)
goto @MUSIC3_4425

:MUSIC3_4418
Car.SetOnlyDamagedByPlayer(73@, True)

:MUSIC3_4425
if 
  123@ == 3
goto_if_false @MUSIC3_4540
if 
  Char.IsInCar($scplayer, 73@)
goto_if_false @MUSIC3_4540
Blip.Remove(113@)
113@ = Blip.AddForCoord(1306.4, -1137.5, 22.5)
Text.ClearThisPrint('STP3_11')
Text.Print('STP3_33', 7000, 1)
Streaming.MarkModelAsNoLongerNeeded(330)
175@ = 0
123@ = 0
122@ = 1

:MUSIC3_4540
if 
  122@ == 1
goto_if_false @MUSIC3_5521
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @MUSIC3_4603
Char.SetCoordinates($scplayer, 1306.4, -1137.5, 22.5)
Car.SetHeading(73@, 90.0)

:MUSIC3_4603
if 
  149@ > 21
goto_if_false @MUSIC3_4635
150@ = 0
122@ = 9

:MUSIC3_4635
if 
  123@ == 0
goto_if_false @MUSIC3_4901
if 
  Char.IsInCar($scplayer, 73@)
goto_if_false @MUSIC3_4901
if or
  not Car.IsHealthGreater(73@, 700)
  Car.IsVisiblyDamaged(73@)
goto_if_false @MUSIC3_4775
Text.ClearThisPrint('STP3_33')
if 
  175@ == 0
goto_if_false @MUSIC3_4775
Blip.Remove($spray_shop2)
$spray_shop2 = Blip.AddSpriteForCoord(488.0, -1734.0, 34.4, RadarSprite.Spray)
Text.Print('STP3_22', 11000, 1)
175@ = 1

:MUSIC3_4775
if 
  Car.IsHealthGreater(73@, 700)
goto_if_false @MUSIC3_4901
if 
  not Car.IsVisiblyDamaged(73@)
goto_if_false @MUSIC3_4901
Text.ClearThisPrint('STP3_22')
Blip.Remove($spray_shop2)
$spray_shop2 = Blip.AddShortRangeSpriteForCoord(488.0, -1734.0, 34.4, RadarSprite.Spray)
Blip.Remove(113@)
113@ = Blip.AddForCoord(1306.4, -1137.5, 22.5)
160@ = 0
159@ = 0
175@ = 0
123@ = 1

:MUSIC3_4901
if 
  160@ == 0
goto_if_false @MUSIC3_4961
if 
  159@ > 4000
goto_if_false @MUSIC3_4961
Text.Print('STP3_33', 7000, 1)
160@ = 1

:MUSIC3_4961
if 
  123@ == 1
goto_if_false @MUSIC3_5410
if 
  Char.IsInCar($scplayer, 73@)
goto_if_false @MUSIC3_5410
if 
  Car.Locate3D(73@, 1306.4, -1137.5, 22.5, 4.0, 4.0, 4.0, True)
goto_if_false @MUSIC3_5219
157@ = Car.GetHeading(73@)
if 
  157@ > 95.0
goto_if_false @MUSIC3_5112
if 
  360.0 >= 157@
goto_if_false @MUSIC3_5112
Text.PrintNow('STP3_25', 7000, 1)

:MUSIC3_5112
if 
  85.0 > 157@
goto_if_false @MUSIC3_5170
if 
  157@ >= 0.0
goto_if_false @MUSIC3_5170
Text.PrintNow('STP3_25', 7000, 1)

:MUSIC3_5170
if 
  157@ >= 85.0
goto_if_false @MUSIC3_5219
if 
  95.0 >= 157@
goto_if_false @MUSIC3_5219
123@ = 2

:MUSIC3_5219
if 
  161@ == 0
goto_if_false @MUSIC3_5329
if 
  Car.Locate3D(73@, 1306.4, -1137.5, 22.5, 15.0, 30.0, 30.0, False)
goto_if_false @MUSIC3_5329
if or
  Car.IsOnScreen(72@)
  Car.IsOnScreen(74@)
goto_if_false @MUSIC3_5329
Text.PrintNow('STP3_25', 7000, 1)
161@ = 1

:MUSIC3_5329
if or
  not Car.IsHealthGreater(73@, 700)
  Car.IsVisiblyDamaged(73@)
goto_if_false @MUSIC3_5410
Blip.Remove(113@)
Blip.Remove($spray_shop2)
$spray_shop2 = Blip.AddSpriteForCoord(488.0, -1734.0, 34.4, RadarSprite.Spray)
Text.ClearPrints
Text.Print('STP3_22', 11000, 1)
123@ = 0

:MUSIC3_5410
if 
  Car.IsHealthGreater(73@, 700)
goto_if_false @MUSIC3_5514
if 
  not Car.IsVisiblyDamaged(73@)
goto_if_false @MUSIC3_5514
if 
  123@ == 2
goto_if_false @MUSIC3_5514
Player.SetControl($player1, False)
Char.MarkAsNoLongerNeeded(76@)
Blip.Remove(113@)
Blip.Remove($spray_shop2)
$spray_shop2 = Blip.AddShortRangeSpriteForCoord(488.0, -1734.0, 34.4, RadarSprite.Spray)
122@ = 2

:MUSIC3_5514
gosub @MUSIC3_20707

:MUSIC3_5521
if 
  122@ == 9
goto_if_false @MUSIC3_5553
123@ = 0
122@ = 10

:MUSIC3_5553
if 
  122@ == 10
goto_if_false @MUSIC3_7208
ENTEXT_63()
if 
  $player_is_completely_safe == 1
goto_if_false @MUSIC3_6509
if 
  123@ == 0
goto_if_false @MUSIC3_6509
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:MUSIC3_5623
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC3_5647
wait 0
goto @MUSIC3_5623

:MUSIC3_5647
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
174@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.ShutAllCharsUp(True)
if 
  Char.LocateAnyMeans2D($scplayer, 1306.4, -1137.5, 20.0, 20.0, False)
goto_if_false @MUSIC3_5768
World.ClearArea(1247.1, -1156.0, 22.7, 1.0, True)
Char.SetCoordinates($scplayer, 1247.1, -1156.0, 22.7)

:MUSIC3_5768
Streaming.LoadScene(1305.5, -1131.7, 22.6)
Car.Delete(72@)
Car.MarkAsNoLongerNeeded(73@)
Char.Delete(76@)
Car.Delete(74@)
Audio.SetRadioChannel(RadioChannel.UserTracks)
World.ClearArea(1303.5, -1131.5, 22.6, 5.0, True)
75@ = Char.Create(PedType.Mission2, 24, 1303.5, -1131.5, 22.6)
Char.SetHeading(75@, 168.1)
Char.SetDecisionMaker(75@, 233@)
World.ClearArea(1297.6, -1137.2, 22.5, 5.0, True)
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23312
72@ = Car.Create(507, 1297.6, -1137.2, 22.5)
Car.SetHeading(72@, 90.0)
Car.ChangeColor(72@, 0, 0)
Car.MarkAsConvoyCar(72@, True)
Task.EnterCarAsDriver(75@, 72@, -1)
World.ClearArea(1305.5, -1131.7, 22.6, 5.0, True)
77@ = Char.Create(PedType.Mission2, 24, 1305.5, -1131.7, 22.6)
Char.SetHeading(77@, 168.1)
Char.SetDecisionMaker(77@, 233@)
World.ClearArea(1316.5, -1137.2, 22.5, 5.0, True)
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23312
74@ = Car.Create(507, 1316.5, -1137.2, 22.5)
Car.SetHeading(74@, 90.0)
Car.ChangeColor(74@, 0, 0)
Car.MarkAsConvoyCar(74@, True)
Car.SetStraightLineDistance(74@, 50)
if 
  150@ == 1
goto_if_false @MUSIC3_6280
World.ClearArea(1306.4, -1137.5, 22.5, 5.0, True)
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23312
73@ = Car.Create(507, 1306.4, -1137.5, 22.5)
Car.SetHeading(73@, 90.0)
Car.ChangeColor(73@, 0, 0)
Car.MarkAsConvoyCar(74@, True)
Car.SetStraightLineDistance(73@, 50)
140@ = Math.RandomIntInRange(0, 3)
76@ = Char.CreateInsideCar(73@, PedType.Mission2, 135@(140@,5i))
goto @MUSIC3_6354

:MUSIC3_6280
if 
  not Car.IsDead(73@)
goto_if_false @MUSIC3_6354
if 
  Car.Locate2D(73@, 1306.4, -1137.5, 20.0, 20.0, False)
goto_if_false @MUSIC3_6354
Car.SetCoordinates(73@, 1247.5, -1151.8, 22.6)

:MUSIC3_6354
Camera.SetFixedPosition(1292.8, -1143.5, 24.3, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1302.3, -1136.2, 24.0, SwitchType.JumpCut)
Text.ClearPrints
if 
  150@ == 0
goto_if_false @MUSIC3_6448
Text.PrintNow('STP3_20', 8000, 1)
goto @MUSIC3_6464

:MUSIC3_6448
Text.PrintNow('STP3_21', 8000, 1)

:MUSIC3_6464
Camera.DoFade(500, Fade.In)

:MUSIC3_6471
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC3_6495
wait 0
goto @MUSIC3_6471

:MUSIC3_6495
TIMERA = 0
123@ = 1

:MUSIC3_6509
if 
  123@ == 1
goto_if_false @MUSIC3_6595
if 
  TIMERA > 1000
goto_if_false @MUSIC3_6595
if 
  not Car.IsDead(74@)
goto_if_false @MUSIC3_6588
if 
  not Char.IsDead(77@)
goto_if_false @MUSIC3_6588
Task.EnterCarAsDriver(77@, 74@, -1)

:MUSIC3_6588
123@ = 2

:MUSIC3_6595
if 
  123@ == 2
goto_if_false @MUSIC3_6961
if 
  not Char.IsDead(77@)
goto_if_false @MUSIC3_6961
$task_status = Char.GetScriptTaskStatus(77@, 1483)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @MUSIC3_6961
if 
  not Car.IsDead(72@)
goto_if_false @MUSIC3_6746
if 
  not Char.IsDead(75@)
goto_if_false @MUSIC3_6746
231@ = Sequence.Open()
Task.CarDriveToCoord(-1, 72@, 1103.3, -1140.9, 22.7, 15.0, DriveMode.Accurate, 1, DrivingMode.AvoidCars)
Sequence.Close(231@)
Char.PerformSequence(75@, 231@)
Sequence.Clear(231@)

:MUSIC3_6746
if 
  not Car.IsDead(74@)
goto_if_false @MUSIC3_6841
if 
  not Char.IsDead(77@)
goto_if_false @MUSIC3_6841
231@ = Sequence.Open()
Task.Pause(-1, 500)
Task.CarDriveToCoord(-1, 74@, 1103.3, -1140.9, 22.7, 15.0, DriveMode.Accurate, 1, DrivingMode.AvoidCars)
Sequence.Close(231@)
Char.PerformSequence(77@, 231@)
Sequence.Clear(231@)

:MUSIC3_6841
if 
  150@ == 1
goto_if_false @MUSIC3_6954
if 
  not Car.IsDead(73@)
goto_if_false @MUSIC3_6954
if 
  not Char.IsDead(76@)
goto_if_false @MUSIC3_6954
231@ = Sequence.Open()
Task.Pause(-1, 1000)
Task.CarDriveToCoord(-1, 73@, 1103.3, -1140.9, 22.7, 15.0, DriveMode.Accurate, 1, DrivingMode.AvoidCars)
Sequence.Close(231@)
Char.PerformSequence(76@, 231@)
Sequence.Clear(231@)

:MUSIC3_6954
123@ = 3

:MUSIC3_6961
if 
  123@ == 3
goto_if_false @MUSIC3_7208
if 
  not Car.IsDead(72@)
goto_if_false @MUSIC3_7208
if 
  not Car.IsOnScreen(72@)
goto_if_false @MUSIC3_7208
Camera.DoFade(500, Fade.Out)

:MUSIC3_7018
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC3_7042
wait 0
goto @MUSIC3_7018

:MUSIC3_7042
Game.ShutAllCharsUp(False)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
225@, 226@, 227@ = Char.GetCoordinates($scplayer)
Streaming.LoadScene(225@, 226@, 227@)
Text.ClearPrints
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if 
  150@ == 0
goto_if_false @MUSIC3_7154
Text.PrintNow('STP3_20', 5500, 1)
goto @MUSIC3_7170

:MUSIC3_7154
Text.PrintNow('STP3_21', 5500, 1)

:MUSIC3_7170
Camera.DoFade(500, Fade.In)

:MUSIC3_7177
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC3_7201
wait 0
goto @MUSIC3_7177

:MUSIC3_7201
goto @MUSIC3_15486

:MUSIC3_7208
if 
  122@ == 2
goto_if_false @MUSIC3_9827
if 
  126@ == 0
goto_if_false @MUSIC3_7591
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
174@ = 0
Zone.SwitchAudio('AWARDS', True)
Game.ShutAllCharsUp(True)
Player.ClearWantedLevel($player1)
World.ClearArea(1303.5, -1131.5, 22.6, 5.0, True)
75@ = Char.Create(PedType.Mission2, 24, 1303.5, -1131.5, 22.6)
Char.SetHeading(75@, 168.1)
Char.GiveWeapon(75@, WeaponType.Pistol, 3000)
Char.SetDecisionMaker(75@, 233@)
World.ClearArea(1305.5, -1131.7, 22.6, 5.0, True)
77@ = Char.Create(PedType.Mission2, 24, 1305.5, -1131.7, 22.6)
Char.SetHeading(77@, 168.1)
Char.GiveWeapon(77@, WeaponType.Pistol, 3000)
Char.SetDecisionMaker(77@, 233@)
World.ClearArea(1306.4, -1137.5, 22.5, 5.0, True)
Car.SetCoordinates(73@, 1306.4, -1137.5, 22.5)
Car.SetHeading(73@, 90.0)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Camera.SetFixedPosition(1288.6, -1146.2, 28.9, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1301.0, -1137.2, 23.3, SwitchType.JumpCut)
Car.FreezePositionAndDontLoadCollision(72@, False)
Task.EnterCarAsDriver(75@, 72@, -1)
TIMERA = 0
126@ = 1

:MUSIC3_7591
if 
  126@ == 1
goto_if_false @MUSIC3_7682
if 
  TIMERA > 1000
goto_if_false @MUSIC3_7682
if 
  not Char.IsDead(77@)
goto_if_false @MUSIC3_7661
Car.FreezePositionAndDontLoadCollision(74@, False)
Task.EnterCarAsDriver(77@, 74@, -1)

:MUSIC3_7661
124@ = 1
skip_cutscene_start_internal @MUSIC3_8920
126@ = 2

:MUSIC3_7682
if 
  126@ == 2
goto_if_false @MUSIC3_7780
if 
  not Char.IsDead(77@)
goto_if_false @MUSIC3_7780
$task_status = Char.GetScriptTaskStatus(77@, 1483)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @MUSIC3_7780
174@ = 8
176@ = 0
177@ = 2
gosub @MUSIC3_24543
126@ = 3

:MUSIC3_7780
if 
  126@ == 3
goto_if_false @MUSIC3_8156
if 
  174@ == 0
goto_if_false @MUSIC3_8156
Camera.DoFade(500, Fade.Out)

:MUSIC3_7823
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC3_7847
wait 0
goto @MUSIC3_7823

:MUSIC3_7847
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_7879
goto @MUSIC3_15486

:MUSIC3_7879
Streaming.RequestModel(20)
Streaming.RequestModel(91)
Streaming.RequestModel(367)
Streaming.RequestModel(409)
Streaming.RequestModel(280)
Streaming.RequestModel(#DYN_ROADBARRIER_2)
Streaming.LoadAllModelsNow
Audio.SetRadioChannel(RadioChannel.UserTracks)

:MUSIC3_7913
if 
  130@ == 0
goto_if_false @MUSIC3_7949
wait 0
gosub @MUSIC3_16523
goto @MUSIC3_7913

:MUSIC3_7949
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_7981
goto @MUSIC3_15486

:MUSIC3_7981
Clock.SetTimeOfDay(22, 0)
World.ClearArea(1022.2, -1133.2, 24.0, 80.0, True)
Streaming.LoadScene(1022.2, -1133.2, 24.0)
Camera.SetFixedPosition(996.6, -1144.4, 29.8, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1018.9, -1133.7, 23.5, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:MUSIC3_8086
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC3_8110
wait 0
goto @MUSIC3_8086

:MUSIC3_8110
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_8142
goto @MUSIC3_15486

:MUSIC3_8142
126@ = 4
TIMERA = 0

:MUSIC3_8156
if 
  126@ == 4
goto_if_false @MUSIC3_8324
if 
  not Car.IsDead(66@)
goto_if_false @MUSIC3_8317
if 
  not Char.IsDead(69@)
goto_if_false @MUSIC3_8317
$task_status = Char.GetScriptTaskStatus(69@, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @MUSIC3_8317
225@, 226@, $z = Car.GetOffsetInWorldCoords(66@, 1.7, 1.5, 0.0)
231@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 225@, 226@, 227@, MoveState.Walk, -1)
Task.AchieveHeading(-1, 0.0)
Sequence.Close(231@)
Char.PerformSequence(69@, 231@)
Sequence.Clear(231@)

:MUSIC3_8317
126@ = 5

:MUSIC3_8324
if 
  126@ == 5
goto_if_false @MUSIC3_8447
gosub @MUSIC3_20255
if 
  TIMERA > 4000
goto_if_false @MUSIC3_8447
Camera.SetFixedPosition(1026.3, -1123.6, 24.3, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1023.6, -1123.8, 24.3, SwitchType.JumpCut)
174@ = 11
176@ = 0
gosub @MUSIC3_24543
126@ = 6

:MUSIC3_8447
if 
  126@ == 6
goto_if_false @MUSIC3_8563
if 
  174@ == 0
goto_if_false @MUSIC3_8563
174@ = 12
176@ = 0
gosub @MUSIC3_24543
if 
  not Char.IsDead(65@)
goto_if_false @MUSIC3_8556
Task.PlayAnim(65@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)

:MUSIC3_8556
126@ = 7

:MUSIC3_8563
if 
  126@ == 7
goto_if_false @MUSIC3_8877
gosub @MUSIC3_20255
if 
  174@ == 0
goto_if_false @MUSIC3_8877
if 
  174@ == 0
goto_if_false @MUSIC3_8877
Camera.DoFade(500, Fade.Out)

:MUSIC3_8631
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC3_8655
wait 0
goto @MUSIC3_8631

:MUSIC3_8655
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_8687
goto @MUSIC3_15486

:MUSIC3_8687
World.ClearArea(1305.5, -1131.7, 22.6, 60.0, True)
Streaming.LoadScene(1305.5, -1131.7, 22.6)
Camera.SetFixedPosition(1288.6, -1146.2, 28.9, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1301.0, -1137.2, 23.3, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:MUSIC3_8786
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC3_8810
wait 0
goto @MUSIC3_8786

:MUSIC3_8810
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_8842
goto @MUSIC3_15486

:MUSIC3_8842
174@ = 8
176@ = 2
177@ = 4
gosub @MUSIC3_24543
126@ = 8

:MUSIC3_8877
if 
  126@ == 8
goto_if_false @MUSIC3_9827
if 
  174@ == 0
goto_if_false @MUSIC3_9827
124@ = 0

:MUSIC3_8920
skip_cutscene_end 
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_8954
goto @MUSIC3_15486

:MUSIC3_8954
if 
  124@ == 1
goto_if_false @MUSIC3_9509
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
174@ = 0
Camera.DoFade(500, Fade.Out)

:MUSIC3_8996
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC3_9020
wait 0
goto @MUSIC3_8996

:MUSIC3_9020
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_9052
goto @MUSIC3_15486

:MUSIC3_9052
Car.FreezePositionAndDontLoadCollision(72@, False)
if 
  Char.IsDead(75@)
goto_if_false @MUSIC3_9143
World.ClearArea(1303.5, -1131.5, 22.6, 5.0, True)
75@ = Char.Create(PedType.Mission2, 24, 1303.5, -1131.5, 22.6)
Char.SetHeading(75@, 168.1)
Char.GiveWeapon(75@, WeaponType.Pistol, 3000)

:MUSIC3_9143
if 
  not Char.IsDead(75@)
goto_if_false @MUSIC3_9186
if 
  not Char.IsInCar(75@, 72@)
goto_if_false @MUSIC3_9186
Char.WarpIntoCar(75@, 72@)

:MUSIC3_9186
Car.FreezePositionAndDontLoadCollision(74@, False)
if 
  Char.IsDead(77@)
goto_if_false @MUSIC3_9313
140@ = Math.RandomIntInRange(0, 3)
World.ClearArea(1305.5, -1131.7, 22.6, 5.0, True)
77@ = Char.Create(PedType.Mission2, 24, 1305.5, -1131.7, 22.6)
Char.SetHeading(77@, 168.1)
Char.GiveWeapon(77@, WeaponType.Pistol, 3000)
if 
  not Char.IsInCar(77@, 74@)
goto_if_false @MUSIC3_9313
Char.WarpIntoCar(77@, 74@)

:MUSIC3_9313
if 
  not Char.IsDead(77@)
goto_if_false @MUSIC3_9356
if 
  not Char.IsInCar(77@, 74@)
goto_if_false @MUSIC3_9356
Char.WarpIntoCar(77@, 74@)

:MUSIC3_9356
World.ClearArea(1306.4, -1137.5, 22.5, 5.0, True)
Car.SetCoordinates(73@, 1306.4, -1137.5, 22.5)
Car.SetHeading(73@, 90.0)
Streaming.RequestModel(20)
Streaming.RequestModel(91)
Streaming.RequestModel(367)
Streaming.RequestModel(409)
Streaming.RequestModel(280)
Streaming.LoadAllModelsNow

:MUSIC3_9435
if 
  130@ == 0
goto_if_false @MUSIC3_9471
wait 0
gosub @MUSIC3_16523
goto @MUSIC3_9435

:MUSIC3_9471
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_9503
goto @MUSIC3_15486

:MUSIC3_9503
Clock.SetTimeOfDay(22, 0)

:MUSIC3_9509
Car.MarkAsConvoyCar(72@, True)
Car.MarkAsConvoyCar(73@, True)
Car.MarkAsConvoyCar(74@, True)
Char.Delete(65@)
Char.Delete(64@)
Char.Delete(111@)
Char.Delete(69@)
Char.Delete(70@)
Car.Delete(66@)
Car.Delete(67@)
Streaming.MarkModelAsNoLongerNeeded(20)
Streaming.MarkModelAsNoLongerNeeded(91)
Streaming.MarkModelAsNoLongerNeeded(409)
Car.LockDoors(73@, CarLock.Locked)
Game.ShutAllCharsUp(False)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Text.Print('STP3_06', 7000, 1)
if 
  124@ == 1
goto_if_false @MUSIC3_9710
Camera.DoFade(500, Fade.In)

:MUSIC3_9654
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC3_9678
wait 0
goto @MUSIC3_9654

:MUSIC3_9678
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_9710
goto @MUSIC3_15486

:MUSIC3_9710
if 
  not Char.IsDead(75@)
goto_if_false @MUSIC3_9760
Task.CarDriveToCoord(75@, 72@, 1015.1, -1139.2, 22.7, 15.0, DriveMode.Accurate, 1, DrivingMode.AvoidCars)

:MUSIC3_9760
if 
  not Char.IsDead(77@)
goto_if_false @MUSIC3_9806
Car.SetFollowCar(74@, 72@, 27.0)
Car.SetCruiseSpeed(74@, 15.0)
Car.SetDrivingStyle(74@, DrivingMode.SlowDownForCars)

:MUSIC3_9806
175@ = 0
123@ = 0
122@ = 3

:MUSIC3_9827
if 
  122@ == 3
goto_if_false @MUSIC3_10346
if 
  175@ == 0
goto_if_false @MUSIC3_9936
if 
  Car.Locate2D(72@, 1094.8, -1142.6, 3.0, 3.0, False)
goto_if_false @MUSIC3_9936
174@ = 8
176@ = 4
177@ = 5
gosub @MUSIC3_24543
175@ = 1

:MUSIC3_9936
if 
  123@ == 0
goto_if_false @MUSIC3_10047
if 
  Car.Locate2D(72@, 1015.1, -1139.2, 3.0, 3.0, False)
goto_if_false @MUSIC3_10047
225@, 226@, $z = Car.GetOffsetInWorldCoords(72@, 0.0, -12.0, 0.0)
Blip.Remove(113@)
113@ = Blip.AddForCoord(225@, 226@, 227@)
123@ = 1

:MUSIC3_10047
if 
  123@ == 1
goto_if_false @MUSIC3_10204
if 
  Car.Locate2D(73@, 225@, 226@, 9.0, 9.0, False)
goto_if_false @MUSIC3_10122
Text.PrintNow('STP3_32', 7000, 1)
goto @MUSIC3_10124

:MUSIC3_10122
Text.ClearPrints

:MUSIC3_10124
if 
  Car.LocateStopped2D(73@, 225@, 226@, 10.0, 10.0, False)
goto_if_false @MUSIC3_10204
Blip.Remove(113@)
Text.ClearPrints
123@ = 0
if 
  129@ == 0
goto_if_false @MUSIC3_10204
175@ = 0
122@ = 4

:MUSIC3_10204
gosub @MUSIC3_20958
if 
  not Car.IsDead(73@)
goto_if_false @MUSIC3_10271
if 
  not Char.IsInCar($scplayer, 73@)
goto_if_false @MUSIC3_10271
Text.ClearPrints
Text.PrintNow('STP3_12', 4000, 1)
goto @MUSIC3_15486

:MUSIC3_10271
gosub @MUSIC3_21432
if 
  130@ == 1
goto_if_false @MUSIC3_10346
gosub @MUSIC3_18919
if 
  129@ == 4
goto_if_false @MUSIC3_10346
Text.ClearPrints
Text.PrintNow('STP3_24', 4000, 1)
goto @MUSIC3_15486

:MUSIC3_10346
if 
  122@ == 4
goto_if_false @MUSIC3_13174
if 
  123@ == 0
goto_if_false @MUSIC3_11970
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:MUSIC3_10391
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC3_10415
wait 0
goto @MUSIC3_10391

:MUSIC3_10415
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_10447
goto @MUSIC3_15486

:MUSIC3_10447
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
174@ = 0
Game.ShutAllCharsUp(True)
Char.ShutUpForScriptedSpeech($scplayer, True)
Audio.SetRadioChannel(RadioChannel.UserTracks)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Streaming.RequestModel(20)
Streaming.RequestModel(40)
Streaming.LoadAllModelsNow
DecisionMakerChar.ClearEventResponse(233@, 13)
World.ClearArea(1021.0, -1122.0, 22.9, 50.0, True)
104@ = Char.Create(PedType.Mission2, 24, 1021.0, -1122.0, 22.9)
Char.SetHeading(104@, 180.0)
Char.SetAnimGroup(104@, "GANG2")
Char.SetDecisionMaker(104@, 233@)
Char.SetOnlyDamagedByPlayer(104@, True)
Char.GiveWeapon(104@, WeaponType.Pistol, 3000)
232@ = Sequence.Open()
Task.Pause(-1, 120)
Task.GoStraightToCoord(-1, 1021.0, -1133.7, 22.9, MoveState.Walk, -1)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger(-1, 72@, -1, 0)
Sequence.Close(232@)
Char.PerformSequence(104@, 232@)
Sequence.Clear(232@)
105@ = Char.Create(PedType.Mission2, 24, 1022.2, -1122.0, 22.9)
Char.SetHeading(105@, 180.0)
Char.SetAnimGroup(104@, "GANG1")
Char.SetDecisionMaker(105@, 233@)
Char.SetOnlyDamagedByPlayer(105@, True)
Char.GiveWeapon(105@, WeaponType.Pistol, 3000)
232@ = Sequence.Open()
Task.Pause(-1, 100)
Task.GoStraightToCoord(-1, 1022.2, -1133.7, 22.9, MoveState.Walk, -1)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger(-1, 72@, -1, 1)
Sequence.Close(232@)
Char.PerformSequence(105@, 232@)
Sequence.Clear(232@)
106@ = Char.Create(PedType.Mission2, 24, 1023.4, -1122.0, 22.9)
Char.GiveWeapon(106@, WeaponType.Pistol, 3000)
Char.SetHeading(106@, 180.0)
Char.SetDecisionMaker(106@, 233@)
Char.SetOnlyDamagedByPlayer(106@, True)
232@ = Sequence.Open()
Task.Pause(-1, 100)
Task.GoStraightToCoord(-1, 1023.4, -1133.7, 22.9, MoveState.Walk, -1)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger(-1, 72@, -1, 2)
Sequence.Close(232@)
Char.PerformSequence(106@, 232@)
Sequence.Clear(232@)
102@ = Char.Create(PedType.Gang9, 20, 1021.6, -1123.2, 22.9)
Char.ShutUpForScriptedSpeech(102@, True)
Char.SetGetOutUpsideDownCar(102@, False)
Char.SetAnimGroup(104@, "GANG2")
Char.SetHeading(102@, 187.9)
Char.SetDecisionMaker(102@, 233@)
Blip.Remove(113@)
Char.SetForceDieInCar(102@, True)
Char.SetOnlyDamagedByPlayer(102@, True)
232@ = Sequence.Open()
Task.Pause(-1, 100)
Task.GoStraightToCoord(-1, 1021.6, -1134.9, 22.9, MoveState.Walk, -1)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger(-1, 73@, -1, 1)
Sequence.Close(232@)
Char.PerformSequence(102@, 232@)
Sequence.Clear(232@)
103@ = Char.Create(PedType.Gang9, 40, 1022.8, -1123.2, 22.9)
Char.SetGetOutUpsideDownCar(103@, False)
Char.SetHeading(103@, 187.9)
Char.SetDecisionMaker(103@, 233@)
Char.SetOnlyDamagedByPlayer(103@, True)
Char.SetForceDieInCar(103@, True)
232@ = Sequence.Open()
Task.Pause(-1, 100)
Task.GoStraightToCoord(-1, 1022.8, -1134.9, 22.9, MoveState.Walk, -1)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger(-1, 73@, -1, 2)
Sequence.Close(232@)
Char.PerformSequence(103@, 232@)
Sequence.Clear(232@)
Task.LookAtChar($scplayer, 103@, -2)
108@ = Char.Create(PedType.Mission2, 24, 1022.2, -1124.4, 22.9)
Char.GiveWeapon(108@, WeaponType.Pistol, 3000)
Char.SetAnimGroup(104@, "GANG1")
Char.SetHeading(108@, 180.0)
Char.SetDecisionMaker(108@, 233@)
Char.SetOnlyDamagedByPlayer(108@, True)
232@ = Sequence.Open()
Task.Pause(-1, 50)
Task.GoStraightToCoord(-1, 1022.2, -1136.1, 22.9, MoveState.Walk, -1)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger(-1, 74@, -1, 0)
Sequence.Close(232@)
Char.PerformSequence(108@, 232@)
Sequence.Clear(232@)
109@ = Char.Create(PedType.Mission2, 24, 1023.4, -1124.4, 22.9)
Char.GiveWeapon(109@, WeaponType.Pistol, 3000)
Char.SetHeading(109@, 180.0)
Char.SetDecisionMaker(109@, 233@)
Char.SetOnlyDamagedByPlayer(109@, True)
232@ = Sequence.Open()
Task.Pause(-1, 50)
Task.GoStraightToCoord(-1, 1023.4, -1136.1, 22.9, MoveState.Walk, -1)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger(-1, 74@, -1, 1)
Sequence.Close(232@)
Char.PerformSequence(109@, 232@)
Sequence.Clear(232@)
110@ = Char.Create(PedType.Mission2, 24, 1021.4, -1125.6, 22.9)
Char.GiveWeapon(110@, WeaponType.Pistol, 3000)
Char.SetHeading(110@, 180.0)
Char.SetDecisionMaker(110@, 233@)
Char.SetOnlyDamagedByPlayer(110@, True)
232@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1021.4, -1137.3, 22.9, MoveState.Walk, -1)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger(-1, 74@, -1, 2)
Sequence.Close(232@)
Char.PerformSequence(110@, 232@)
Sequence.Clear(232@)
if 
  not Car.IsDead(72@)
goto_if_false @MUSIC3_11688
World.ClearArea(1015.1, -1139.2, 22.9, 50.0, True)
Car.SetCoordinates(72@, 1015.1, -1139.2, 22.9)
Car.SetHeading(72@, 90.0)

:MUSIC3_11688
if 
  not Car.IsDead(73@)
goto_if_false @MUSIC3_11758
World.ClearArea(1025.1, -1139.2, 22.9, 50.0, True)
Car.SetCoordinates(73@, 1025.1, -1139.2, 22.9)
Car.SetHeading(73@, 90.0)

:MUSIC3_11758
if 
  not Car.IsDead(74@)
goto_if_false @MUSIC3_11828
World.ClearArea(1035.1, -1139.2, 22.9, 50.0, True)
Car.SetCoordinates(74@, 1035.1, -1139.2, 22.9)
Car.SetHeading(74@, 90.0)

:MUSIC3_11828
Car.LockDoors(73@, CarLock.Unlocked)
Camera.SetFixedPosition(1021.4, -1135.3, 23.5, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1021.7, -1124.1, 25.2, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:MUSIC3_11893
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC3_11917
wait 0
goto @MUSIC3_11893

:MUSIC3_11917
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_11949
goto @MUSIC3_15486

:MUSIC3_11949
124@ = 1
skip_cutscene_start_internal @MUSIC3_12295
123@ = 1

:MUSIC3_11970
if 
  123@ == 1
goto_if_false @MUSIC3_12100
if 
  not Char.IsDead(102@)
goto_if_false @MUSIC3_12100
if 
  Char.IsInArea2D(102@, 1019.7, -1130.2, 1025.7, -1135.0, False)
goto_if_false @MUSIC3_12100
Camera.SetFixedPosition(1024.7, -1141.7, 24.0, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1024.6, -1138.7, 23.9, SwitchType.JumpCut)
123@ = 2

:MUSIC3_12100
if 
  123@ == 2
goto_if_false @MUSIC3_12208
if 
  not Car.IsDead(73@)
goto_if_false @MUSIC3_12208
if 
  not Char.IsDead(102@)
goto_if_false @MUSIC3_12208
if 
  Char.IsInCar(102@, 73@)
goto_if_false @MUSIC3_12208
Audio.SetRadioChannel(RadioChannel.CSR)
174@ = 2
176@ = 0
gosub @MUSIC3_24543
TIMERA = 0
123@ = 3

:MUSIC3_12208
if 
  123@ == 3
goto_if_false @MUSIC3_12255
if 
  174@ == 0
goto_if_false @MUSIC3_12255
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
123@ = 4

:MUSIC3_12255
if 
  123@ == 4
goto_if_false @MUSIC3_13167
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @MUSIC3_13167
124@ = 0

:MUSIC3_12295
skip_cutscene_end 
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_12329
goto @MUSIC3_15486

:MUSIC3_12329
if 
  124@ == 1
goto_if_false @MUSIC3_12811
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
174@ = 0
Camera.DoFade(500, Fade.Out)

:MUSIC3_12371
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC3_12395
wait 0
goto @MUSIC3_12371

:MUSIC3_12395
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_12427
goto @MUSIC3_15486

:MUSIC3_12427
if 
  not Car.IsDead(72@)
goto_if_false @MUSIC3_12569
if 
  not Char.IsDead(104@)
goto_if_false @MUSIC3_12485
if 
  not Char.IsInAnyCar(104@)
goto_if_false @MUSIC3_12485
Char.WarpIntoCarAsPassenger(104@, 72@, 0)

:MUSIC3_12485
if 
  not Char.IsDead(105@)
goto_if_false @MUSIC3_12527
if 
  not Char.IsInAnyCar(105@)
goto_if_false @MUSIC3_12527
Char.WarpIntoCarAsPassenger(105@, 72@, 1)

:MUSIC3_12527
if 
  not Char.IsDead(106@)
goto_if_false @MUSIC3_12569
if 
  not Char.IsInAnyCar(106@)
goto_if_false @MUSIC3_12569
Char.WarpIntoCarAsPassenger(106@, 72@, 2)

:MUSIC3_12569
if 
  not Car.IsDead(73@)
goto_if_false @MUSIC3_12669
if 
  not Char.IsDead(102@)
goto_if_false @MUSIC3_12627
if 
  not Char.IsInAnyCar(102@)
goto_if_false @MUSIC3_12627
Char.WarpIntoCarAsPassenger(102@, 73@, 1)

:MUSIC3_12627
if 
  not Char.IsDead(103@)
goto_if_false @MUSIC3_12669
if 
  not Char.IsInAnyCar(103@)
goto_if_false @MUSIC3_12669
Char.WarpIntoCarAsPassenger(103@, 73@, 2)

:MUSIC3_12669
if 
  not Car.IsDead(74@)
goto_if_false @MUSIC3_12811
if 
  not Char.IsDead(108@)
goto_if_false @MUSIC3_12727
if 
  not Char.IsInAnyCar(108@)
goto_if_false @MUSIC3_12727
Char.WarpIntoCarAsPassenger(108@, 74@, 0)

:MUSIC3_12727
if 
  not Char.IsDead(109@)
goto_if_false @MUSIC3_12769
if 
  not Char.IsInAnyCar(109@)
goto_if_false @MUSIC3_12769
Char.WarpIntoCarAsPassenger(109@, 74@, 1)

:MUSIC3_12769
if 
  not Char.IsDead(110@)
goto_if_false @MUSIC3_12811
if 
  not Char.IsInAnyCar(110@)
goto_if_false @MUSIC3_12811
Char.WarpIntoCarAsPassenger(110@, 74@, 2)

:MUSIC3_12811
if 
  not Car.IsDead(72@)
goto_if_false @MUSIC3_12932
if 
  not Char.IsDead(75@)
goto_if_false @MUSIC3_12932
232@ = Sequence.Open()
Task.CarDriveToCoord(-1, 72@, 964.6, -1055.1, 27.6, 15.0, DriveMode.Accurate, 1, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 72@, 965.0, -1036.4, 29.0, 15.0, DriveMode.Accurate, 1, DrivingMode.AvoidCars)
Sequence.Close(232@)
Char.PerformSequence(75@, 232@)
Sequence.Clear(232@)

:MUSIC3_12932
Char.ClearLookAt($scplayer)
Text.ClearPrints
Text.Print('STP3_08', 7000, 1)
Text.Print('STP3_09', 7000, 1)
Blip.Remove(113@)
113@ = Blip.AddForCoord(836.9, -2041.5, 11.8)
DecisionMakerChar.AddEventResponse(233@, 13, 917, 0.0, 100.0, 0.0, 0.0, False, True)
Car.LockDoors(73@, CarLock.Locked)
Game.ShutAllCharsUp(False)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
if 
  124@ == 1
goto_if_false @MUSIC3_13146
Camera.DoFade(500, Fade.In)

:MUSIC3_13090
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC3_13114
wait 0
goto @MUSIC3_13090

:MUSIC3_13114
gosub @MUSIC3_16167
if 
  125@ == 1
goto_if_false @MUSIC3_13146
goto @MUSIC3_15486

:MUSIC3_13146
TIMERA = 0
123@ = 0
122@ = 5

:MUSIC3_13167
gosub @MUSIC3_20255

:MUSIC3_13174
if 
  122@ == 5
goto_if_false @MUSIC3_14678
gosub @MUSIC3_22296
if 
  123@ == 0
goto_if_false @MUSIC3_13685
if 
  175@ == 0
goto_if_false @MUSIC3_13282
if 
  TIMERA > 14000
goto_if_false @MUSIC3_13282
174@ = 3
176@ = 0
gosub @MUSIC3_24543
175@ = 1

:MUSIC3_13282
if 
  175@ == 1
goto_if_false @MUSIC3_13346
if 
  174@ == 0
goto_if_false @MUSIC3_13346
174@ = 4
176@ = 0
gosub @MUSIC3_24543
175@ = 2

:MUSIC3_13346
if 
  175@ == 2
goto_if_false @MUSIC3_13410
if 
  174@ == 0
goto_if_false @MUSIC3_13410
174@ = 5
176@ = 0
gosub @MUSIC3_24543
175@ = 3

:MUSIC3_13410
if 
  175@ == 3
goto_if_false @MUSIC3_13569
if 
  Char.IsInArea3D($scplayer, 789.4, -1798.8, 10.0, 896.9, -1763.6, 20.0, False)
goto_if_false @MUSIC3_13569
if 
  174@ == 5
goto_if_false @MUSIC3_13569
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
174@ = 0
Text.ClearPrints
174@ = 10
176@ = 0
gosub @MUSIC3_24543
175@ = 4
if 
  not Char.IsDead(102@)
goto_if_false @MUSIC3_13562
Char.ShutUpForScriptedSpeech(102@, False)

:MUSIC3_13562
Char.ShutUpForScriptedSpeech($scplayer, False)

:MUSIC3_13569
if 
  not Char.IsDead(103@)
goto_if_false @MUSIC3_13685
if 
  not Char.IsTalking(103@)
goto_if_false @MUSIC3_13685
if 
  175@ == 0
goto_if_false @MUSIC3_13649
if 
  10000 > TIMERA
goto_if_false @MUSIC3_13649
151@ = Char.SetSayContext(103@, 341)

:MUSIC3_13649
if or
  175@ == 3
  175@ == 4
goto_if_false @MUSIC3_13685
151@ = Char.SetSayContext(103@, 341)

:MUSIC3_13685
if 
  123@ == 0
goto_if_false @MUSIC3_14186
if 
  not Car.IsDead(73@)
goto_if_false @MUSIC3_13945
if 
  Char.IsInCar($scplayer, 73@)
goto_if_false @MUSIC3_13945
if 
  163@ == 0
goto_if_false @MUSIC3_13827
if 
  Char.IsInArea3D($scplayer, 853.7, -1810.1, 10.0, 818.5, -1874.0, 20.0, False)
goto_if_false @MUSIC3_13827
Text.PrintNow('STP3_35', 7000, 1)
163@ = 1

:MUSIC3_13827
if 
  163@ == 1
goto_if_false @MUSIC3_13945
158@ = Car.GetSpeed(73@)
if 
  158@ > 10.0
goto_if_false @MUSIC3_13945
if 
  Char.IsInArea3D($scplayer, 820.0, -2004.0, 10.0, 852.4, -2068.0, 20.0, False)
goto_if_false @MUSIC3_13945
Text.PrintNow('STP3_34', 7000, 1)
163@ = 2

:MUSIC3_13945
if 
  not Car.IsDead(73@)
goto_if_false @MUSIC3_14144
if 
  not Char.IsInCar($scplayer, 73@)
goto_if_false @MUSIC3_14144
if 
  Car.IsInArea3D(73@, 855.6, -2067.9, 5.0, 812.6, -2085.9, 20.0, False)
goto_if_false @MUSIC3_14144
Clock.SetTimeScale(0.3)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
174@ = 0
Text.ClearPrints
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Camera.SetFixedPosition(813.5, -2128.9, 2.2, 0.0, 0.0, 0.0)
Camera.PointAtPoint(847.6, -2068.1, 11.7, SwitchType.JumpCut)
gosub @MUSIC3_22096
175@ = 0
TIMERA = 0
123@ = 1

:MUSIC3_14144
if 
  Car.IsInWater(73@)
goto_if_false @MUSIC3_14186
Blip.Remove(113@)
gosub @MUSIC3_22096
174@ = 0
123@ = 2

:MUSIC3_14186
if 
  123@ == 1
goto_if_false @MUSIC3_14295
if 
  175@ == 0
goto_if_false @MUSIC3_14250
174@ = 6
176@ = 0
gosub @MUSIC3_24543
175@ = 1

:MUSIC3_14250
if or
  Car.IsInWater(73@)
  TIMERA > 10000
goto_if_false @MUSIC3_14295
Clock.SetTimeScale(1.0)
TIMERA = 0
123@ = 2

:MUSIC3_14295
if 
  123@ == 2
goto_if_false @MUSIC3_14427
if 
  TIMERA > 500
goto_if_false @MUSIC3_14427
if 
  174@ == 0
goto_if_false @MUSIC3_14427
if 
  155@ == 0
goto_if_false @MUSIC3_14389
TIMERA = 0
122@ = 7
goto @MUSIC3_14427

:MUSIC3_14389
Player.SetControl($player1, True)
Player.MakeGangReappear
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
123@ = 0
TIMERB = 0
122@ = 6

:MUSIC3_14427
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  TIMERA > 11000
goto_if_false @MUSIC3_14454
Text.ClearHelp

:MUSIC3_14454
if 
  4 > 129@
goto_if_false @MUSIC3_14479
gosub @MUSIC3_18919

:MUSIC3_14479
if 
  3 > 164@
goto_if_false @MUSIC3_14504
gosub @MUSIC3_19550

:MUSIC3_14504
if 
  123@ == 0
goto_if_false @MUSIC3_14678
if 
  not Car.IsInWater(73@)
goto_if_false @MUSIC3_14678
if 
  Char.IsDead(102@)
goto_if_false @MUSIC3_14579
Text.ClearPrints
Text.PrintNow('STP3_31', 4000, 1)
goto @MUSIC3_15486

:MUSIC3_14579
if 
  not Car.IsDead(73@)
goto_if_false @MUSIC3_14678
if 
  not Char.IsInCar($scplayer, 73@)
goto_if_false @MUSIC3_14678
if 
  Car.IsStopped(73@)
goto_if_false @MUSIC3_14678
Task.LeaveCarAndFlee(102@, 73@, 2316.4, -1519.2, 24.3)
Text.ClearPrints
Text.PrintNow('STP3_18', 4000, 1)
goto @MUSIC3_15486

:MUSIC3_14678
if 
  122@ == 6
goto_if_false @MUSIC3_15309
gosub @MUSIC3_22296
if 
  123@ == 0
goto_if_false @MUSIC3_14980
if 
  155@ == 0
goto_if_false @MUSIC3_14760
TIMERA = 0
122@ = 7
goto @MUSIC3_14980

:MUSIC3_14760
Blip.Remove(113@)
if 
  not Char.IsDead(75@)
goto_if_false @MUSIC3_14789
114@ = Blip.AddForChar(75@)

:MUSIC3_14789
if 
  not Char.IsDead(77@)
goto_if_false @MUSIC3_14813
115@ = Blip.AddForChar(77@)

:MUSIC3_14813
if 
  not Char.IsDead(104@)
goto_if_false @MUSIC3_14837
116@ = Blip.AddForChar(104@)

:MUSIC3_14837
if 
  not Char.IsDead(105@)
goto_if_false @MUSIC3_14861
117@ = Blip.AddForChar(105@)

:MUSIC3_14861
if 
  not Char.IsDead(106@)
goto_if_false @MUSIC3_14885
118@ = Blip.AddForChar(106@)

:MUSIC3_14885
if 
  not Char.IsDead(108@)
goto_if_false @MUSIC3_14909
119@ = Blip.AddForChar(108@)

:MUSIC3_14909
if 
  not Char.IsDead(109@)
goto_if_false @MUSIC3_14933
120@ = Blip.AddForChar(109@)

:MUSIC3_14933
if 
  not Char.IsDead(110@)
goto_if_false @MUSIC3_14957
121@ = Blip.AddForChar(110@)

:MUSIC3_14957
Text.PrintNow('STP3_26', 11000, 1)
123@ = 1

:MUSIC3_14980
if 
  123@ == 1
goto_if_false @MUSIC3_15309
if 
  Char.IsDead(75@)
goto_if_false @MUSIC3_15019
Blip.Remove(114@)

:MUSIC3_15019
if 
  Char.IsDead(77@)
goto_if_false @MUSIC3_15040
Blip.Remove(115@)

:MUSIC3_15040
if 
  Char.IsDead(104@)
goto_if_false @MUSIC3_15061
Blip.Remove(116@)

:MUSIC3_15061
if 
  Char.IsDead(105@)
goto_if_false @MUSIC3_15082
Blip.Remove(117@)

:MUSIC3_15082
if 
  Char.IsDead(106@)
goto_if_false @MUSIC3_15103
Blip.Remove(118@)

:MUSIC3_15103
if 
  Char.IsDead(108@)
goto_if_false @MUSIC3_15124
Blip.Remove(119@)

:MUSIC3_15124
if 
  Char.IsDead(109@)
goto_if_false @MUSIC3_15145
Blip.Remove(120@)

:MUSIC3_15145
if 
  Char.IsDead(110@)
goto_if_false @MUSIC3_15166
Blip.Remove(121@)

:MUSIC3_15166
if 
  Char.IsDead(75@)
goto_if_false @MUSIC3_15309
if 
  Char.IsDead(77@)
goto_if_false @MUSIC3_15309
if 
  Char.IsDead(104@)
goto_if_false @MUSIC3_15309
if 
  Char.IsDead(105@)
goto_if_false @MUSIC3_15309
if 
  Char.IsDead(106@)
goto_if_false @MUSIC3_15309
if 
  Char.IsDead(108@)
goto_if_false @MUSIC3_15309
if 
  Char.IsDead(109@)
goto_if_false @MUSIC3_15309
if 
  Char.IsDead(110@)
goto_if_false @MUSIC3_15309
TIMERA = 2000
122@ = 7

:MUSIC3_15309
if 
  122@ == 7
goto_if_false @MUSIC3_15370
if 
  TIMERA > 3000
goto_if_false @MUSIC3_15370
Player.SetControl($player1, True)
Player.MakeGangReappear
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
goto @MUSIC3_15504

:MUSIC3_15370
if 
  162@ == 0
goto_if_false @MUSIC3_15472
if or
  122@ == 0
  122@ == 1
goto_if_false @MUSIC3_15472
if 
  149@ == 21
goto_if_false @MUSIC3_15472
if 
  $minutes > 30
goto_if_false @MUSIC3_15472
Text.Print('STP3_28', 7000, 1)
162@ = 1

:MUSIC3_15472
gosub @MUSIC3_25779
goto @MUSIC3_2270

:MUSIC3_15486
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:MUSIC3_15504
$flag_strap_mission_counter += 1
Text.ClearPrints
Stat.SetInt(StatId.PassedStrap3, 1)
Text.PrintWithNumberBig('M_PASSR', 5, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(5)
Stat.RegisterMissionPassed('STRAP_3')
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Blip.Remove($strap_contact_blip)
$strap_contact_blip = Blip.AddSpriteForContactPoint($strapX, $strapY, $strapZ, $strap_blip_icon)
Stat.PlayerMadeProgress(1)
return 

:MUSIC3_15590
Zone.SwitchAudio('AWARDS', False)
Clock.SetTimeScale(1.0)
Hud.SwitchWidescreen(False)
if 
  is_var_text_label_empty s$shop_name
goto_if_false @MUSIC3_15632
Camera.RestoreJumpcut

:MUSIC3_15632
Blip.Remove(113@)
Blip.Remove($spray_shop2)
$spray_shop2 = Blip.AddShortRangeSpriteForCoord(488.0, -1734.0, 34.4, RadarSprite.Spray)
Char.RemoveElegantly(102@)
Char.RemoveElegantly(103@)
if 
  not Car.IsDead(72@)
goto_if_false @MUSIC3_15697
Car.ImproveByCheating(72@, False)

:MUSIC3_15697
if 
  not Car.IsDead(74@)
goto_if_false @MUSIC3_15720
Car.ImproveByCheating(74@, False)

:MUSIC3_15720
if 
  not Car.IsDead(73@)
goto_if_false @MUSIC3_15743
Car.LockDoors(73@, CarLock.Unlocked)

:MUSIC3_15743
if 
  not Char.IsDead($scplayer)
goto_if_false @MUSIC3_15766
Char.ShutUpForScriptedSpeech($scplayer, False)

:MUSIC3_15766
Game.ShutAllCharsUp(False)
Streaming.MarkModelAsNoLongerNeeded(24)
Streaming.MarkModelAsNoLongerNeeded(280)
Streaming.MarkModelAsNoLongerNeeded(20)
Streaming.MarkModelAsNoLongerNeeded(91)
Streaming.MarkModelAsNoLongerNeeded(20)
Streaming.MarkModelAsNoLongerNeeded(40)
Streaming.MarkModelAsNoLongerNeeded(409)
Streaming.MarkModelAsNoLongerNeeded(507)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(367)
Streaming.MarkModelAsNoLongerNeeded(#DYN_ROADBARRIER_2)
Streaming.MarkModelAsNoLongerNeeded(330)
Path.UnmarkAllRoadNodesAsDontWander
Path.SwitchRoadsBackToOriginal(802.1, -1150.2, 10.0, 1156.9, -1131.2, 50.0)
Path.SwitchPedRoadsBackToOriginal(802.1, -1150.2, 10.0, 1156.9, -1131.2, 50.0)
Path.SwitchRoadsBackToOriginal(1053.2, -1146.1, 10.0, 1072.5, -1215.5, 50.0)
Path.SwitchPedRoadsBackToOriginal(1053.2, -1146.1, 10.0, 1072.5, -1215.5, 50.0)
Path.SwitchRoadsBackToOriginal(932.9, -1154.4, 10.0, 951.8, -1215.4, 50.0)
Path.SwitchPedRoadsBackToOriginal(932.9, -1154.4, 10.0, 951.8, -1215.4, 50.0)
Path.SwitchRoadsBackToOriginal(972.1, -1135.4, 10.0, 952.9, -1044.3, 50.0)
Path.SwitchPedRoadsBackToOriginal(972.1, -1135.4, 10.0, 952.9, -1044.3, 50.0)
Path.SwitchRoadsBackToOriginal(1072.8, -1135.0, 10.0, 1092.4, -1045.5, 50.0)
Path.SwitchPedRoadsBackToOriginal(1072.8, -1135.0, 10.0, 1092.4, -1045.5, 50.0)
Game.EnableAmbientCrime(True)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

:MUSIC3_16167
if 
  5 > 122@
goto_if_false @MUSIC3_16226
if 
  Car.IsDead(73@)
goto_if_false @MUSIC3_16226
Text.ClearPrints
Text.PrintNow('STP3_10', 4000, 1)
125@ = 1

:MUSIC3_16226
if 
  5 > 122@
goto_if_false @MUSIC3_16326
if 
  Car.IsDead(72@)
goto_if_false @MUSIC3_16285
Text.ClearPrints
Text.PrintNow('STP3_10', 4000, 1)
125@ = 1

:MUSIC3_16285
if 
  Car.IsDead(74@)
goto_if_false @MUSIC3_16326
Text.ClearPrints
Text.PrintNow('STP3_10', 4000, 1)
125@ = 1

:MUSIC3_16326
if 
  122@ == 3
goto_if_false @MUSIC3_16403
if 
  4 > 123@
goto_if_false @MUSIC3_16403
if 
  Char.IsDead(63@)
goto_if_false @MUSIC3_16403
Text.ClearPrints
Text.PrintNow('STP3_16', 4000, 1)
125@ = 1

:MUSIC3_16403
if 
  122@ > 2
goto_if_false @MUSIC3_16521
if 
  5 > 122@
goto_if_false @MUSIC3_16521
if 
  Char.IsDead(75@)
goto_if_false @MUSIC3_16480
Text.ClearPrints
Text.PrintNow('STP3_17', 4000, 1)
125@ = 1

:MUSIC3_16480
if 
  Char.IsDead(77@)
goto_if_false @MUSIC3_16521
Text.ClearPrints
Text.PrintNow('STP3_17', 4000, 1)
125@ = 1

:MUSIC3_16521
return 

:MUSIC3_16523
if 
  20 > 132@
goto_if_false @MUSIC3_18910
if 
  132@ == 0
goto_if_false @MUSIC3_18677
65@ = Char.Create(PedType.CivMale, 20, 1023.4, -1123.6, 22.9)
Char.SetHeading(65@, 267.1)
Char.SetLoadCollisionFlag(65@, True)
Char.SetDecisionMaker(65@, 233@)
64@ = Char.Create(PedType.CivFemale, 91, 1023.1, -1124.6, 22.9)
Char.SetHeading(64@, 296.3)
Char.SetLoadCollisionFlag(64@, True)
Char.SetDecisionMaker(64@, 233@)
111@ = Char.Create(PedType.CivFemale, 91, 1025.0, -1124.6, 22.9)
Char.SetHeading(111@, 90.0)
Char.SetLoadCollisionFlag(111@, True)
Char.SetDecisionMaker(111@, 233@)
78@ = Object.Create(#DYN_ROADBARRIER_2, 1092.7, -1144.2, 22.7)
Object.SetHeading(78@, 0.0)
Object.SetCollision(78@, True)
79@ = Object.Create(#DYN_ROADBARRIER_2, 1092.7, -1148.8, 22.7)
Object.SetHeading(79@, 90.0)
Object.SetCollision(79@, True)
Path.SwitchRoadsOff(802.1, -1150.2, 10.0, 1156.9, -1131.2, 50.0)
Path.SwitchPedRoadsOff(802.1, -1150.2, 10.0, 1156.9, -1131.2, 50.0)
80@ = Object.Create(#DYN_ROADBARRIER_2, 1062.5, -1159.4, 22.6)
Object.SetHeading(80@, 180.0)
Object.SetCollision(80@, True)
81@ = Object.Create(#DYN_ROADBARRIER_2, 1054.4, -1159.4, 22.6)
Object.SetHeading(81@, 180.0)
Object.SetCollision(81@, True)
Path.SwitchRoadsOff(1053.2, -1146.1, 10.0, 1072.5, -1215.5, 50.0)
Path.SwitchPedRoadsOff(1053.2, -1146.1, 10.0, 1072.5, -1215.5, 50.0)
82@ = Object.Create(#DYN_ROADBARRIER_2, 944.5, -1159.4, 22.6)
Object.SetHeading(82@, 180.0)
Object.SetCollision(82@, True)
83@ = Object.Create(#DYN_ROADBARRIER_2, 940.0, -1159.4, 22.6)
Object.SetHeading(83@, 180.0)
Object.SetCollision(83@, True)
Path.SwitchRoadsOff(932.9, -1154.4, 10.0, 951.8, -1215.4, 50.0)
Path.SwitchPedRoadsOff(932.9, -1154.4, 10.0, 951.8, -1215.4, 50.0)
84@ = Object.Create(#DYN_ROADBARRIER_2, 931.3, -1148.8, 22.7)
Object.SetHeading(84@, 90.0)
Object.SetCollision(84@, True)
85@ = Object.Create(#DYN_ROADBARRIER_2, 931.3, -1139.9, 22.7)
Object.SetHeading(85@, 90.0)
Object.SetCollision(85@, True)
86@ = Object.Create(#DYN_ROADBARRIER_2, 960.2, -1130.4, 22.7)
Object.SetHeading(86@, 180.0)
Object.SetCollision(86@, True)
87@ = Object.Create(#DYN_ROADBARRIER_2, 967.4, -1130.4, 22.7)
Object.SetHeading(87@, 90.0)
Object.SetCollision(87@, True)
Path.SwitchRoadsOff(972.1, -1135.4, 10.0, 952.9, -1044.3, 50.0)
Path.SwitchPedRoadsOff(972.1, -1135.4, 10.0, 952.9, -1044.3, 50.0)
88@ = Object.Create(#DYN_ROADBARRIER_2, 1080.6, -1130.7, 22.7)
Object.SetHeading(88@, 180.0)
Object.SetCollision(88@, True)
89@ = Object.Create(#DYN_ROADBARRIER_2, 1085.5, -1130.6, 22.7)
Object.SetHeading(89@, 180.0)
Object.SetCollision(89@, True)
Path.SwitchRoadsOff(1072.8, -1135.0, 10.0, 1092.4, -1045.5, 50.0)
Path.SwitchPedRoadsOff(1072.8, -1135.0, 10.0, 1092.4, -1045.5, 50.0)
90@ = Object.Create(#DYN_ROADBARRIER_2, 1024.5, -1123.2, 22.9)
Object.SetHeading(90@, 90.0)
Object.SetCollision(90@, False)
91@ = Object.Create(#DYN_ROADBARRIER_2, 1024.5, -1127.2, 22.9)
Object.SetHeading(91@, 90.0)
Object.SetCollision(91@, False)
92@ = Object.Create(#DYN_ROADBARRIER_2, 1024.5, -1131.2, 22.9)
Object.SetHeading(92@, 90.0)
Object.SetCollision(92@, False)
93@ = Object.Create(#DYN_ROADBARRIER_2, 1020.5, -1123.2, 22.9)
Object.SetHeading(93@, 90.0)
Object.SetCollision(93@, False)
94@ = Object.Create(#DYN_ROADBARRIER_2, 1020.5, -1127.2, 22.9)
Object.SetHeading(94@, 90.0)
Object.SetCollision(94@, False)
95@ = Object.Create(#DYN_ROADBARRIER_2, 1020.5, -1131.2, 22.9)
Object.SetHeading(95@, 90.0)
Object.SetCollision(95@, False)
96@ = Object.Create(#DYN_ROADBARRIER_2, 1016.5, -1133.2, 22.9)
Object.SetHeading(96@, 180.0)
Object.SetCollision(96@, False)
97@ = Object.Create(#DYN_ROADBARRIER_2, 1012.5, -1133.2, 22.9)
Object.SetHeading(97@, 180.0)
Object.SetCollision(97@, False)
98@ = Object.Create(#DYN_ROADBARRIER_2, 1008.5, -1133.2, 22.9)
Object.SetHeading(98@, 180.0)
Object.SetCollision(98@, False)
99@ = Object.Create(#DYN_ROADBARRIER_2, 1028.5, -1133.2, 22.9)
Object.SetHeading(99@, 180.0)
Object.SetCollision(99@, False)
100@ = Object.Create(#DYN_ROADBARRIER_2, 1032.5, -1133.2, 22.9)
Object.SetHeading(100@, 180.0)
Object.SetCollision(100@, False)
101@ = Object.Create(#DYN_ROADBARRIER_2, 1036.5, -1133.2, 22.9)
Object.SetHeading(101@, 180.0)
Object.SetCollision(101@, False)
55@ = Char.Create(PedType.Mission2, 280, 1025.3, -1124.9, 22.9)
Char.GiveWeapon(55@, WeaponType.Pistol, 3000)
Char.SetHeading(55@, 276.6)
Char.SetLoadCollisionFlag(55@, True)
56@ = Char.Create(PedType.Mission2, 280, 1024.7, -1129.1, 22.9)
Char.GiveWeapon(56@, WeaponType.Pistol, 3000)
Char.SetHeading(56@, 276.6)
Char.SetLoadCollisionFlag(56@, True)
57@ = Char.Create(PedType.Mission2, 280, 1024.7, -1133.8, 22.9)
Char.GiveWeapon(57@, WeaponType.Pistol, 3000)
Char.SetHeading(57@, 276.6)
Char.SetLoadCollisionFlag(57@, True)
58@ = Char.Create(PedType.Mission2, 280, 1020.4, -1125.2, 22.9)
Char.GiveWeapon(58@, WeaponType.Pistol, 3000)
Char.SetHeading(58@, 92.2)
Char.SetLoadCollisionFlag(58@, True)
59@ = Char.Create(PedType.Mission2, 280, 1020.4, -1129.1, 22.9)
Char.GiveWeapon(59@, WeaponType.Pistol, 3000)
Char.SetHeading(59@, 92.2)
Char.SetLoadCollisionFlag(59@, True)
60@ = Char.Create(PedType.Mission2, 280, 1020.4, -1133.5, 22.9)
Char.GiveWeapon(60@, WeaponType.Pistol, 3000)
Char.SetHeading(60@, 92.2)
Char.SetLoadCollisionFlag(60@, True)
61@ = Char.Create(PedType.Mission2, 280, 1032.6, -1115.5, 22.9)
Char.GiveWeapon(61@, WeaponType.Pistol, 3000)
Char.SetHeading(61@, 173.9)
Char.SetLoadCollisionFlag(61@, True)
62@ = Char.Create(PedType.Mission2, 280, 1012.0, -1115.8, 22.9)
Char.GiveWeapon(62@, WeaponType.Pistol, 3000)
Char.SetHeading(62@, 187.9)
Char.SetLoadCollisionFlag(62@, True)
66@ = Car.Create(409, 1031.4, -1138.6, 22.7)
69@ = Char.CreateInsideCar(66@, PedType.Mission2, 24)
Car.SetHeading(66@, 90.0)
Char.SetLoadCollisionFlag(69@, True)
231@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.CarDriveToCoord(-1, 66@, 1023.3, -1138.6, 22.7, 15.0, DriveMode.Accurate, 1, DrivingMode.AvoidCars)
Sequence.Close(231@)
Char.PerformSequence(69@, 231@)
Sequence.Clear(231@)
67@ = Car.Create(409, 1042.8, -1138.6, 22.7)
70@ = Char.CreateInsideCar(67@, PedType.Mission2, 24)
Car.SetHeading(67@, 90.0)
Char.SetLoadCollisionFlag(70@, True)
63@ = Char.Create(PedType.Mission2, 280, 1093.7, -1145.2, 22.7)
Char.GiveWeapon(63@, WeaponType.Pistol, 3000)
Char.SetHeading(63@, 274.6)
Char.SetLoadCollisionFlag(63@, True)
Char.SetDecisionMaker(63@, 233@)
112@ = Char.CreateRandom(1023.6, -1122.3, 22.9)
Char.SetVisible(112@, False)
Char.SetCollision(112@, False)
Char.SetDecisionMaker(112@, 233@)
Char.SetStayInSamePlace(112@, True)

:MUSIC3_18677
gosub @MUSIC3_20035
34@(132@,21i) = Char.CreateRandom(225@, 226@, 22.9)
Char.SetHeading(34@(132@,21i), $heading)
Char.SetSenseRange(34@(132@,21i), 0.0)
Char.SetStayInSamePlace(34@(132@,21i), True)
Char.GiveWeapon(34@(132@,21i), WeaponType.Camera, 30000)
Char.SetDecisionMaker(34@(132@,21i), 233@)
Char.SetLoadCollisionFlag(34@(132@,21i), True)
if 
  5 > 132@
goto_if_false @MUSIC3_18885
232@ = Sequence.Open()
152@ = Math.RandomIntInRange(500, 2000)
if 
  not Char.IsDead(112@)
goto_if_false @MUSIC3_18838
Task.KillCharOnFootTimed(-1, 112@, 152@)

:MUSIC3_18838
152@ = Math.RandomIntInRange(1500, 4000)
Task.Pause(-1, 152@)
Sequence.SetToRepeat(232@, True)
Sequence.Close(232@)
Char.PerformSequence(34@(132@,21i), 232@)
Sequence.Clear(232@)

:MUSIC3_18885
Char.SetLoadCollisionFlag(34@(132@,21i), True)
132@ += 1
goto @MUSIC3_18917

:MUSIC3_18910
130@ = 1

:MUSIC3_18917
return 

:MUSIC3_18919
if 
  129@ == 0
goto_if_false @MUSIC3_19169
if 
  20 > 131@
goto_if_false @MUSIC3_19046
if 
  Char.IsDead(34@(131@,21i))
goto_if_false @MUSIC3_18982
129@ = 1

:MUSIC3_18982
if 
  not Char.IsDead(34@(131@,21i))
goto_if_false @MUSIC3_19032
if 
  Char.HasBeenDamagedByChar(34@(131@,21i), $scplayer)
goto_if_false @MUSIC3_19032
129@ = 1

:MUSIC3_19032
131@ += 1
goto @MUSIC3_19053

:MUSIC3_19046
131@ = 0

:MUSIC3_19053
if 
  8 > 141@
goto_if_false @MUSIC3_19162
if 
  Char.IsDead(55@(141@,9i))
goto_if_false @MUSIC3_19098
129@ = 1

:MUSIC3_19098
if 
  not Char.IsDead(55@(141@,9i))
goto_if_false @MUSIC3_19148
if 
  Char.HasBeenDamagedByChar(55@(141@,9i), $scplayer)
goto_if_false @MUSIC3_19148
129@ = 1

:MUSIC3_19148
141@ += 1
goto @MUSIC3_19169

:MUSIC3_19162
141@ = 0

:MUSIC3_19169
if 
  129@ == 1
goto_if_false @MUSIC3_19208
131@ = 0
141@ = 0
129@ = 2

:MUSIC3_19208
if 
  129@ == 2
goto_if_false @MUSIC3_19415
if 
  20 > 131@
goto_if_false @MUSIC3_19408
if 
  not Char.IsDead(34@(131@,21i))
goto_if_false @MUSIC3_19394
$task_status = Char.GetScriptTaskStatus(34@(131@,21i), 1499)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @MUSIC3_19330
Char.SetKeepTask(34@(131@,21i), True)
Task.FleeChar(34@(131@,21i), $scplayer, 80.0, 10000000)

:MUSIC3_19330
if 
  not Char.LocateAnyMeansChar2D(34@(131@,21i), $scplayer, 80.0, 80.0, False)
goto_if_false @MUSIC3_19394
if 
  not Char.IsOnScreen(34@(131@,21i))
goto_if_false @MUSIC3_19394
Char.MarkAsNoLongerNeeded(34@(131@,21i))

:MUSIC3_19394
131@ += 1
goto @MUSIC3_19415

:MUSIC3_19408
129@ = 3

:MUSIC3_19415
if 
  129@ == 3
goto_if_false @MUSIC3_19548
if 
  8 > 141@
goto_if_false @MUSIC3_19541
if 
  not Char.IsDead(55@(141@,9i))
goto_if_false @MUSIC3_19527
$task_status = Char.GetScriptTaskStatus(55@(141@,9i), 1764)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @MUSIC3_19527
Char.SetKeepTask(55@(141@,9i), True)
Task.CharArrestChar(55@(141@,9i), $scplayer)

:MUSIC3_19527
141@ += 1
goto @MUSIC3_19548

:MUSIC3_19541
129@ = 4

:MUSIC3_19548
return 

:MUSIC3_19550
if 
  164@ == 0
goto_if_false @MUSIC3_19691
if 
  8 > 165@
goto_if_false @MUSIC3_19684
if 
  not Char.IsDead(55@(165@,9i))
goto_if_false @MUSIC3_19670
if 
  not Char.LocateAnyMeansChar2D(55@(165@,9i), $scplayer, 80.0, 80.0, False)
goto_if_false @MUSIC3_19670
if 
  not Char.IsOnScreen(55@(165@,9i))
goto_if_false @MUSIC3_19670
Char.MarkAsNoLongerNeeded(55@(165@,9i))

:MUSIC3_19670
165@ += 1
goto @MUSIC3_19691

:MUSIC3_19684
164@ = 1

:MUSIC3_19691
if 
  164@ == 1
goto_if_false @MUSIC3_19832
if 
  8 > 166@
goto_if_false @MUSIC3_19825
if 
  not Char.IsDead(55@(166@,9i))
goto_if_false @MUSIC3_19811
if 
  not Char.LocateAnyMeansChar2D(55@(166@,9i), $scplayer, 80.0, 80.0, False)
goto_if_false @MUSIC3_19811
if 
  not Char.IsOnScreen(55@(166@,9i))
goto_if_false @MUSIC3_19811
Char.MarkAsNoLongerNeeded(55@(166@,9i))

:MUSIC3_19811
166@ += 1
goto @MUSIC3_19832

:MUSIC3_19825
164@ = 2

:MUSIC3_19832
if 
  164@ == 2
goto_if_false @MUSIC3_20033
if 
  not Char.LocateAnyMeans2D($scplayer, 1015.1, -1139.2, 80.0, 80.0, False)
goto_if_false @MUSIC3_20033
Object.MarkAsNoLongerNeeded(90@)
Object.MarkAsNoLongerNeeded(91@)
Object.MarkAsNoLongerNeeded(92@)
Object.MarkAsNoLongerNeeded(93@)
Object.MarkAsNoLongerNeeded(94@)
Object.MarkAsNoLongerNeeded(95@)
Object.MarkAsNoLongerNeeded(96@)
Object.MarkAsNoLongerNeeded(97@)
Object.MarkAsNoLongerNeeded(98@)
Object.MarkAsNoLongerNeeded(99@)
Object.MarkAsNoLongerNeeded(100@)
Object.MarkAsNoLongerNeeded(101@)
Object.MarkAsNoLongerNeeded(78@)
Object.MarkAsNoLongerNeeded(79@)
Object.MarkAsNoLongerNeeded(80@)
Object.MarkAsNoLongerNeeded(81@)
Object.MarkAsNoLongerNeeded(82@)
Object.MarkAsNoLongerNeeded(83@)
Object.MarkAsNoLongerNeeded(84@)
Object.MarkAsNoLongerNeeded(85@)
Object.MarkAsNoLongerNeeded(86@)
Object.MarkAsNoLongerNeeded(87@)
Object.MarkAsNoLongerNeeded(88@)
Object.MarkAsNoLongerNeeded(89@)
Streaming.MarkModelAsNoLongerNeeded(#DYN_ROADBARRIER_2)
Zone.SwitchAudio('AWARDS', False)
164@ = 3

:MUSIC3_20033
return 

:MUSIC3_20035
225@ = Math.RandomFloatInRange(1016.2, 1030.8)
226@ = Math.RandomFloatInRange(-1122.3, -1133.7)
if 
  1020.0 > 225@
goto_if_false @MUSIC3_20103
$heading = 280.1
goto @MUSIC3_20113

:MUSIC3_20103
$heading = 96.5

:MUSIC3_20113
if and
  1027.4 > 225@
  225@ > 1019.8
goto_if_false @MUSIC3_20151
goto @MUSIC3_20035

:MUSIC3_20151
if 
  is_int_lvar_greater_than_int_lvar 133@ > 134@
goto_if_false @MUSIC3_20253
wait 0
if 
  not Char.IsDead(34@(134@,21i))
goto_if_false @MUSIC3_20239
if 
  Char.LocateAnyMeans2D(34@(134@,21i), 225@, 226@, 1.0, 1.0, False)
goto_if_false @MUSIC3_20239
goto @MUSIC3_20035

:MUSIC3_20239
134@ += 1
goto @MUSIC3_20151

:MUSIC3_20253
return 

:MUSIC3_20255
if 
  127@ == 0
goto_if_false @MUSIC3_20287
gosub @MUSIC3_20513
goto @MUSIC3_20383

:MUSIC3_20287
if 
  is_int_lvar_greater_than_int_lvar 170@ > 127@
goto_if_false @MUSIC3_20320
127@ += 1
goto @MUSIC3_20383

:MUSIC3_20320
Fx.DrawLightWithRange(225@, 226@, 227@, 255, 255, 255, 200.0)
172@ = Particle.Create("CAMFLASH", 225@, 226@, 227@, 1)
Particle.PlayAndKill(172@)
127@ = 0

:MUSIC3_20383
if 
  128@ == 0
goto_if_false @MUSIC3_20415
gosub @MUSIC3_20513
goto @MUSIC3_20511

:MUSIC3_20415
if 
  is_int_lvar_greater_than_int_lvar 171@ > 128@
goto_if_false @MUSIC3_20448
128@ += 1
goto @MUSIC3_20511

:MUSIC3_20448
Fx.DrawLightWithRange(228@, 229@, 230@, 255, 255, 255, 200.0)
173@ = Particle.Create("CAMFLASH", 228@, 229@, 230@, 1)
Particle.PlayAndKill(173@)
128@ = 0

:MUSIC3_20511
return 

:MUSIC3_20513
if 
  127@ == 0
goto_if_false @MUSIC3_20609
170@ = Math.RandomIntInRange(1, 10)
133@ = Math.RandomIntInRange(0, 20)
if 
  not Char.IsDead(34@(133@,21i))
goto_if_false @MUSIC3_20609
225@, 226@, $z = Char.GetOffsetInWorldCoords(34@(133@,21i), 0.0, 0.3, 0.5)
127@ += 1

:MUSIC3_20609
if 
  128@ == 0
goto_if_false @MUSIC3_20705
171@ = Math.RandomIntInRange(1, 10)
133@ = Math.RandomIntInRange(0, 20)
if 
  not Char.IsDead(34@(133@,21i))
goto_if_false @MUSIC3_20705
228@, 229@, 230@ = Char.GetOffsetInWorldCoords(34@(133@,21i), 0.0, 0.3, 0.5)
128@ += 1

:MUSIC3_20705
return 

:MUSIC3_20707
if 
  142@ == 0
goto_if_false @MUSIC3_20846
if 
  Char.IsInCar($scplayer, 73@)
goto_if_false @MUSIC3_20846
Blip.Remove(113@)
Text.ClearThisPrint('STP3_13')
if 
  123@ == 0
goto_if_false @MUSIC3_20785
175@ = 0

:MUSIC3_20785
if 
  123@ == 1
goto_if_false @MUSIC3_20839
113@ = Blip.AddForCoord(1306.4, -1137.5, 22.5)
Text.Print('STP3_33', 7000, 1)

:MUSIC3_20839
142@ = 1

:MUSIC3_20846
if 
  142@ == 1
goto_if_false @MUSIC3_20956
if 
  not Char.IsInCar($scplayer, 73@)
goto_if_false @MUSIC3_20956
Blip.Remove(113@)
113@ = Blip.AddForCar(73@)
Blip.SetAsFriendly(113@, True)
if 
  TIMERB > 7000
goto_if_false @MUSIC3_20949
Text.ClearThisPrint('STP3_33')
Text.Print('STP3_13', 7000, 1)

:MUSIC3_20949
142@ = 0

:MUSIC3_20956
return 

:MUSIC3_20958
if 
  147@ == 0
goto_if_false @MUSIC3_21022
if 
  not Char.LocateAnyMeansCar2D($scplayer, 72@, 35.0, 35.0, False)
goto_if_false @MUSIC3_21015
146@ = 5000

:MUSIC3_21015
147@ = 1

:MUSIC3_21022
if 
  147@ == 1
goto_if_false @MUSIC3_21430
if 
  not Char.LocateAnyMeansCar2D($scplayer, 72@, 35.0, 35.0, False)
goto_if_false @MUSIC3_21401
if 
  146@ > 4000
goto_if_false @MUSIC3_21116
148@ = 5
Text.PrintWithNumberNow('STP3_14', 148@, 4000, 1)

:MUSIC3_21116
if 
  4000 > 146@
goto_if_false @MUSIC3_21180
if 
  146@ > 3000
goto_if_false @MUSIC3_21180
148@ = 4
Text.PrintWithNumberNow('STP3_14', 148@, 4000, 1)

:MUSIC3_21180
if 
  3000 > 146@
goto_if_false @MUSIC3_21244
if 
  146@ > 2000
goto_if_false @MUSIC3_21244
148@ = 3
Text.PrintWithNumberNow('STP3_14', 148@, 4000, 1)

:MUSIC3_21244
if 
  2000 > 146@
goto_if_false @MUSIC3_21308
if 
  146@ > 1000
goto_if_false @MUSIC3_21308
148@ = 2
Text.PrintWithNumberNow('STP3_14', 148@, 4000, 1)

:MUSIC3_21308
if 
  1000 > 146@
goto_if_false @MUSIC3_21353
148@ = 1
Text.PrintWithNumberNow('STP3_15', 148@, 4000, 1)

:MUSIC3_21353
if 
  0 > 146@
goto_if_false @MUSIC3_21394
Text.PrintNow('STP3_07', 4000, 1)
125@ = 1

:MUSIC3_21394
goto @MUSIC3_21430

:MUSIC3_21401
Text.ClearThisPrint('STP3_14')
Text.ClearThisPrint('STP3_15')
147@ = 0

:MUSIC3_21430
return 

:MUSIC3_21432
if 
  175@ == 0
goto_if_false @MUSIC3_21534
if 
  not Car.IsHealthGreater(72@, 950)
goto_if_false @MUSIC3_21492
Text.PrintNow('STP3_30', 4000, 1)
175@ = 1

:MUSIC3_21492
if 
  not Car.IsHealthGreater(74@, 950)
goto_if_false @MUSIC3_21534
Text.PrintNow('STP3_30', 4000, 1)
175@ = 1

:MUSIC3_21534
if 
  175@ == 1
goto_if_false @MUSIC3_21640
if 
  not Car.IsHealthGreater(72@, 850)
goto_if_false @MUSIC3_21596
Text.ClearPrints
Text.Print('STP3_23', 4000, 1)
175@ = 2

:MUSIC3_21596
if 
  not Car.IsHealthGreater(74@, 850)
goto_if_false @MUSIC3_21640
Text.ClearPrints
Text.Print('STP3_23', 4000, 1)
175@ = 2

:MUSIC3_21640
if 
  175@ == 2
goto_if_false @MUSIC3_21720
if 
  not Char.IsDead(75@)
goto_if_false @MUSIC3_21682
Task.KillCharOnFoot(75@, $scplayer)

:MUSIC3_21682
if 
  not Char.IsDead(77@)
goto_if_false @MUSIC3_21706
Task.KillCharOnFoot(77@, $scplayer)

:MUSIC3_21706
TIMERA = 0
175@ = 3

:MUSIC3_21720
if 
  175@ == 3
goto_if_false @MUSIC3_21764
if 
  TIMERA > 3000
goto_if_false @MUSIC3_21764
125@ = 1

:MUSIC3_21764
return 

:MUSIC3_21766
if 
  not Char.IsDead(104@)
goto_if_false @MUSIC3_21823
232@ = Sequence.Open()
Task.Pause(-1, 150)
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(232@)
Char.PerformSequence(104@, 232@)
Sequence.Clear(232@)

:MUSIC3_21823
if 
  not Char.IsDead(105@)
goto_if_false @MUSIC3_21873
232@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(232@)
Char.PerformSequence(105@, 232@)
Sequence.Clear(232@)

:MUSIC3_21873
if 
  not Char.IsDead(106@)
goto_if_false @MUSIC3_21929
232@ = Sequence.Open()
Task.Pause(-1, 100)
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(232@)
Char.PerformSequence(106@, 232@)
Sequence.Clear(232@)

:MUSIC3_21929
return 

:MUSIC3_21931
if 
  not Char.IsDead(108@)
goto_if_false @MUSIC3_21988
232@ = Sequence.Open()
Task.Pause(-1, 150)
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(232@)
Char.PerformSequence(108@, 232@)
Sequence.Clear(232@)

:MUSIC3_21988
if 
  not Char.IsDead(109@)
goto_if_false @MUSIC3_22038
232@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(232@)
Char.PerformSequence(109@, 232@)
Sequence.Clear(232@)

:MUSIC3_22038
if 
  not Char.IsDead(110@)
goto_if_false @MUSIC3_22094
232@ = Sequence.Open()
Task.Pause(-1, 100)
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(232@)
Char.PerformSequence(110@, 232@)
Sequence.Clear(232@)

:MUSIC3_22094
return 

:MUSIC3_22096
if 
  not Car.IsDead(72@)
goto_if_false @MUSIC3_22150
if 
  Char.LocateAnyMeansCar2D($scplayer, 72@, 160.0, 160.0, False)
goto_if_false @MUSIC3_22150
155@ += 1

:MUSIC3_22150
if 
  not Car.IsDead(74@)
goto_if_false @MUSIC3_22204
if 
  Char.LocateAnyMeansCar2D($scplayer, 74@, 160.0, 160.0, False)
goto_if_false @MUSIC3_22204
155@ += 1

:MUSIC3_22204
if 
  not Car.IsDead(72@)
goto_if_false @MUSIC3_22249
if 
  not Char.IsDead(75@)
goto_if_false @MUSIC3_22249
Task.CarTempAction(75@, 72@, TempAction.HandbrakeStraight, 3000)

:MUSIC3_22249
if 
  not Car.IsDead(74@)
goto_if_false @MUSIC3_22294
if 
  not Char.IsDead(77@)
goto_if_false @MUSIC3_22294
Task.CarTempAction(77@, 74@, TempAction.HandbrakeStraight, 3000)

:MUSIC3_22294
return 

:MUSIC3_22296
if 
  153@ == 0
goto_if_false @MUSIC3_22448
if 
  not Car.IsDead(72@)
goto_if_false @MUSIC3_22448
if 
  not Char.LocateInCarCar2D($scplayer, 72@, 15.0, 15.0, False)
goto_if_false @MUSIC3_22448
if 
  not Char.IsDead(75@)
goto_if_false @MUSIC3_22448
Car.ImproveByCheating(72@, True)
Car.SetCruiseSpeed(72@, 100.0)
Car.MarkAsConvoyCar(72@, False)
StuckCarCheck.AddWithWarp(72@, 0.5, 4000, True, True, True, 7)
Task.CarMission(75@, 72@, -1, CarMission.BlockPlayerFaraway, 35.0, DrivingMode.AvoidCars)
153@ = 1

:MUSIC3_22448
if 
  122@ == 6
goto_if_false @MUSIC3_22803
if 
  TIMERB > 1000
goto_if_false @MUSIC3_22803
if 
  153@ == 1
goto_if_false @MUSIC3_22606
if 
  not Car.IsDead(72@)
goto_if_false @MUSIC3_22606
if 
  not Char.IsDead(75@)
goto_if_false @MUSIC3_22606
if 
  not Char.LocateAnyMeansCar2D($scplayer, 72@, 20.0, 20.0, False)
goto_if_false @MUSIC3_22599
Task.CarMission(75@, 72@, -1, CarMission.BlockPlayerFaraway, 35.0, DrivingMode.AvoidCars)
153@ = 2
goto @MUSIC3_22606

:MUSIC3_22599
153@ = 2

:MUSIC3_22606
if 
  153@ == 2
goto_if_false @MUSIC3_22803
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @MUSIC3_22803
if 
  not Car.IsDead(72@)
goto_if_false @MUSIC3_22803
if 
  not Char.IsDead(75@)
goto_if_false @MUSIC3_22782
if 
  Char.LocateAnyMeansCar2D($scplayer, 72@, 20.0, 20.0, False)
goto_if_false @MUSIC3_22775
Char.ClearTasks(75@)
232@ = Sequence.Open()
Task.CarTempAction(-1, 72@, TempAction.HandbrakeStraight, 3000)
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(232@)
Char.PerformSequence(75@, 232@)
Sequence.Clear(232@)
gosub @MUSIC3_21766
Car.LockDoors(72@, CarLock.Unlocked)
153@ = 3

:MUSIC3_22775
goto @MUSIC3_22803

:MUSIC3_22782
gosub @MUSIC3_21766
Car.LockDoors(72@, CarLock.Unlocked)
153@ = 3

:MUSIC3_22803
if 
  154@ == 0
goto_if_false @MUSIC3_22955
if 
  not Car.IsDead(74@)
goto_if_false @MUSIC3_22955
if 
  not Char.LocateInCarCar2D($scplayer, 74@, 15.0, 15.0, False)
goto_if_false @MUSIC3_22955
if 
  not Char.IsDead(77@)
goto_if_false @MUSIC3_22955
Car.ImproveByCheating(74@, True)
Car.SetCruiseSpeed(74@, 100.0)
Car.MarkAsConvoyCar(74@, False)
StuckCarCheck.AddWithWarp(74@, 0.5, 4000, True, True, True, 7)
Task.CarMission(77@, 74@, -1, CarMission.BlockPlayerFaraway, 35.0, DrivingMode.AvoidCars)
154@ = 1

:MUSIC3_22955
if 
  122@ == 6
goto_if_false @MUSIC3_23310
if 
  TIMERB > 1000
goto_if_false @MUSIC3_23310
if 
  154@ == 1
goto_if_false @MUSIC3_23113
if 
  not Car.IsDead(74@)
goto_if_false @MUSIC3_23113
if 
  not Char.IsDead(77@)
goto_if_false @MUSIC3_23113
if 
  not Char.LocateAnyMeansCar2D($scplayer, 74@, 20.0, 20.0, False)
goto_if_false @MUSIC3_23106
Task.CarMission(77@, 74@, -1, CarMission.BlockPlayerFaraway, 35.0, DrivingMode.AvoidCars)
154@ = 2
goto @MUSIC3_23113

:MUSIC3_23106
154@ = 2

:MUSIC3_23113
if 
  154@ == 2
goto_if_false @MUSIC3_23310
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @MUSIC3_23310
if 
  not Car.IsDead(74@)
goto_if_false @MUSIC3_23310
if 
  not Char.IsDead(77@)
goto_if_false @MUSIC3_23289
if 
  Char.LocateAnyMeansCar2D($scplayer, 74@, 15.0, 15.0, False)
goto_if_false @MUSIC3_23282
Char.ClearTasks(77@)
232@ = Sequence.Open()
Task.CarTempAction(-1, 74@, TempAction.HandbrakeStraight, 3000)
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(232@)
Char.PerformSequence(77@, 232@)
Sequence.Clear(232@)
gosub @MUSIC3_21931
Car.LockDoors(74@, CarLock.Unlocked)
154@ = 3

:MUSIC3_23282
goto @MUSIC3_23310

:MUSIC3_23289
gosub @MUSIC3_21931
Car.LockDoors(74@, CarLock.Unlocked)
154@ = 3

:MUSIC3_23310
return 

:MUSIC3_23312
168@ = Math.RandomIntInRange(1, 37)
if 
  168@ == 1
goto_if_false @MUSIC3_23354
Car.CustomPlateForNextCar(169@, "GOT_M00_")

:MUSIC3_23354
if 
  168@ == 2
goto_if_false @MUSIC3_23387
Car.CustomPlateForNextCar(169@, "M00TV_4U")

:MUSIC3_23387
if 
  168@ == 3
goto_if_false @MUSIC3_23420
Car.CustomPlateForNextCar(169@, "MATHEW_2")

:MUSIC3_23420
if 
  168@ == 4
goto_if_false @MUSIC3_23453
Car.CustomPlateForNextCar(169@, "D4_DEW0R")

:MUSIC3_23453
if 
  168@ == 5
goto_if_false @MUSIC3_23486
Car.CustomPlateForNextCar(169@, "D0DE_777")

:MUSIC3_23486
if 
  168@ == 6
goto_if_false @MUSIC3_23519
Car.CustomPlateForNextCar(169@, "DAM0_666")

:MUSIC3_23519
if 
  168@ == 7
goto_if_false @MUSIC3_23552
Car.CustomPlateForNextCar(169@, "C0NEY_88")

:MUSIC3_23552
if 
  168@ == 8
goto_if_false @MUSIC3_23585
Car.CustomPlateForNextCar(169@, "PRE4CHER")

:MUSIC3_23585
if 
  168@ == 9
goto_if_false @MUSIC3_23618
Car.CustomPlateForNextCar(169@, "DBP_4NDY")

:MUSIC3_23618
if 
  168@ == 10
goto_if_false @MUSIC3_23651
Car.CustomPlateForNextCar(169@, "EV1L_SLY")

:MUSIC3_23651
if 
  168@ == 11
goto_if_false @MUSIC3_23684
Car.CustomPlateForNextCar(169@, "N1_R4V3N")

:MUSIC3_23684
if 
  168@ == 12
goto_if_false @MUSIC3_23717
Car.CustomPlateForNextCar(169@, "D1VX_Z00")

:MUSIC3_23717
if 
  168@ == 13
goto_if_false @MUSIC3_23749
Car.CustomPlateForNextCar(169@, "MR_B3NN")

:MUSIC3_23749
if 
  168@ == 14
goto_if_false @MUSIC3_23782
Car.CustomPlateForNextCar(169@, "R3D_R4SP")

:MUSIC3_23782
if 
  168@ == 15
goto_if_false @MUSIC3_23815
Car.CustomPlateForNextCar(169@, "LA_B0MBA")

:MUSIC3_23815
if 
  168@ == 16
goto_if_false @MUSIC3_23848
Car.CustomPlateForNextCar(169@, "L3337_0G")

:MUSIC3_23848
if 
  168@ == 17
goto_if_false @MUSIC3_23881
Car.CustomPlateForNextCar(169@, "BUDD4H_X")

:MUSIC3_23881
if 
  168@ == 18
goto_if_false @MUSIC3_23914
Car.CustomPlateForNextCar(169@, "T3H_BUCK")

:MUSIC3_23914
if 
  168@ == 19
goto_if_false @MUSIC3_23947
Car.CustomPlateForNextCar(169@, "CHUNKY_1")

:MUSIC3_23947
if 
  168@ == 20
goto_if_false @MUSIC3_23980
Car.CustomPlateForNextCar(169@, "EV1L_BNZ")

:MUSIC3_23980
if 
  168@ == 21
goto_if_false @MUSIC3_24013
Car.CustomPlateForNextCar(169@, "S4ND_M4N")

:MUSIC3_24013
if 
  168@ == 22
goto_if_false @MUSIC3_24046
Car.CustomPlateForNextCar(169@, "RKK_DBP1")

:MUSIC3_24046
if 
  168@ == 23
goto_if_false @MUSIC3_24079
Car.CustomPlateForNextCar(169@, "RE1_K0KU")

:MUSIC3_24079
if 
  168@ == 24
goto_if_false @MUSIC3_24112
Car.CustomPlateForNextCar(169@, "S3XY_JUD")

:MUSIC3_24112
if 
  168@ == 25
goto_if_false @MUSIC3_24145
Car.CustomPlateForNextCar(169@, "SUNRA_93")

:MUSIC3_24145
if 
  168@ == 26
goto_if_false @MUSIC3_24178
Car.CustomPlateForNextCar(169@, "UG_FUX69")

:MUSIC3_24178
if 
  168@ == 27
goto_if_false @MUSIC3_24211
Car.CustomPlateForNextCar(169@, "LI0N_CUM")

:MUSIC3_24211
if 
  168@ == 28
goto_if_false @MUSIC3_24244
Car.CustomPlateForNextCar(169@, "RKK_PWND")

:MUSIC3_24244
if 
  168@ == 29
goto_if_false @MUSIC3_24277
Car.CustomPlateForNextCar(169@, "HAZE_B0B")

:MUSIC3_24277
if 
  168@ == 30
goto_if_false @MUSIC3_24310
Car.CustomPlateForNextCar(169@, "T3H_FLUF")

:MUSIC3_24310
if 
  168@ == 31
goto_if_false @MUSIC3_24343
Car.CustomPlateForNextCar(169@, "BM_4NDY_")

:MUSIC3_24343
if 
  168@ == 32
goto_if_false @MUSIC3_24376
Car.CustomPlateForNextCar(169@, "BM_D34N_")

:MUSIC3_24376
if 
  168@ == 33
goto_if_false @MUSIC3_24409
Car.CustomPlateForNextCar(169@, "BM_L4C3Y")

:MUSIC3_24409
if 
  168@ == 34
goto_if_false @MUSIC3_24442
Car.CustomPlateForNextCar(169@, "BM_D3V__")

:MUSIC3_24442
if 
  168@ == 35
goto_if_false @MUSIC3_24475
Car.CustomPlateForNextCar(169@, "NU_SK00L")

:MUSIC3_24475
if 
  168@ == 36
goto_if_false @MUSIC3_24508
Car.CustomPlateForNextCar(169@, "G4L_AVET")

:MUSIC3_24508
if 
  168@ == 37
goto_if_false @MUSIC3_24541
Car.CustomPlateForNextCar(169@, "M0J0_J0J")

:MUSIC3_24541
return 

:MUSIC3_24543
if 
  174@ == 1
goto_if_false @MUSIC3_24590
set_lvar_text_label 178@s = 'LOC3_AA'
set_lvar_int_to_constant 206@ = 19004
220@ = 1

:MUSIC3_24590
if 
  174@ == 2
goto_if_false @MUSIC3_24725
set_lvar_text_label 178@s = 'LOC3_BA'
set_lvar_text_label 180@s = 'LOC3_BB'
set_lvar_text_label 182@s = 'LOC3_BC'
set_lvar_text_label 184@s = 'LOC3_BD'
set_lvar_text_label 186@s = 'LOC3_BE'
set_lvar_int_to_constant 206@ = 19016
set_lvar_int_to_constant 207@ = 19017
set_lvar_int_to_constant 208@ = 19000
set_lvar_int_to_constant 209@ = 19001
set_lvar_int_to_constant 210@ = 19002
220@ = 5

:MUSIC3_24725
if 
  174@ == 3
goto_if_false @MUSIC3_24794
set_lvar_text_label 178@s = 'LOC3_CA'
set_lvar_text_label 180@s = 'LOC3_CB'
set_lvar_int_to_constant 206@ = 19005
set_lvar_int_to_constant 207@ = 19006
220@ = 2

:MUSIC3_24794
if 
  174@ == 4
goto_if_false @MUSIC3_24929
set_lvar_text_label 178@s = 'LOC3_DA'
set_lvar_text_label 180@s = 'LOC3_DB'
set_lvar_text_label 182@s = 'LOC3_DC'
set_lvar_text_label 184@s = 'LOC3_DD'
set_lvar_text_label 186@s = 'LOC3_EA'
set_lvar_int_to_constant 206@ = 19018
set_lvar_int_to_constant 207@ = 19019
set_lvar_int_to_constant 208@ = 19020
set_lvar_int_to_constant 209@ = 19021
set_lvar_int_to_constant 210@ = 19003
220@ = 5

:MUSIC3_24929
if 
  174@ == 5
goto_if_false @MUSIC3_25174
set_lvar_text_label 178@s = 'LOC3_EB'
set_lvar_text_label 180@s = 'LOC3_EC'
set_lvar_text_label 182@s = 'LOC3_ED'
set_lvar_text_label 184@s = 'LOC3_EE'
set_lvar_text_label 186@s = 'LOC3_EF'
set_lvar_text_label 188@s = 'LOC3_EG'
set_lvar_text_label 190@s = 'LOC3_EH'
set_lvar_text_label 192@s = 'LOC3_EJ'
set_lvar_text_label 194@s = 'LOC3_EK'
set_lvar_text_label 196@s = 'LOC3_EL'
set_lvar_int_to_constant 206@ = 19022
set_lvar_int_to_constant 207@ = 19023
set_lvar_int_to_constant 208@ = 19024
set_lvar_int_to_constant 209@ = 19025
set_lvar_int_to_constant 210@ = 19026
set_lvar_int_to_constant 211@ = 19027
set_lvar_int_to_constant 212@ = 19028
set_lvar_int_to_constant 213@ = 19029
set_lvar_int_to_constant 214@ = 19030
set_lvar_int_to_constant 215@ = 19031
220@ = 10

:MUSIC3_25174
if 
  174@ == 6
goto_if_false @MUSIC3_25221
set_lvar_text_label 178@s = 'LOC3_EO'
set_lvar_int_to_constant 206@ = 19034
220@ = 1

:MUSIC3_25221
if 
  174@ == 7
goto_if_false @MUSIC3_25357
set_lvar_text_label 178@s = 'MOBRING'
set_lvar_text_label 180@s = 'MLOC04A'
set_lvar_text_label 182@s = 'MLOC04B'
set_lvar_text_label 184@s = 'MLOC04C'
set_lvar_text_label 186@s = 'MLOC04D'
set_lvar_int_to_constant 206@ = 28200
set_lvar_int_to_constant 207@ = 16421
set_lvar_int_to_constant 208@ = 16412
set_lvar_int_to_constant 209@ = 16413
set_lvar_int_to_constant 210@ = 16422
set_lvar_int_to_lvar_int 220@ = 177@

:MUSIC3_25357
if 
  174@ == 8
goto_if_false @MUSIC3_25493
set_lvar_text_label 178@s = 'LOC3_FA'
set_lvar_text_label 180@s = 'LOC3_FB'
set_lvar_text_label 182@s = 'LOC3_FC'
set_lvar_text_label 184@s = 'LOC3_FE'
set_lvar_text_label 186@s = 'LOC3_FF'
set_lvar_int_to_constant 206@ = 19007
set_lvar_int_to_constant 207@ = 19008
set_lvar_int_to_constant 208@ = 19009
set_lvar_int_to_constant 209@ = 19011
set_lvar_int_to_constant 210@ = 19012
set_lvar_int_to_lvar_int 220@ = 177@

:MUSIC3_25493
if 
  174@ == 9
goto_if_false @MUSIC3_25607
set_lvar_text_label 178@s = 'LOC3_GA'
set_lvar_text_label 180@s = 'LOC3_GB'
set_lvar_text_label 182@s = 'LOC3_GC'
set_lvar_text_label 184@s = 'LOC3_GD'
set_lvar_int_to_constant 206@ = 19013
set_lvar_int_to_constant 207@ = 19014
set_lvar_int_to_constant 208@ = 19035
set_lvar_int_to_constant 209@ = 19036
set_lvar_int_to_lvar_int 220@ = 177@

:MUSIC3_25607
if 
  174@ == 10
goto_if_false @MUSIC3_25654
set_lvar_text_label 178@s = 'RYD1_BE'
set_lvar_int_to_constant 206@ = 10405
220@ = 1

:MUSIC3_25654
if 
  174@ == 11
goto_if_false @MUSIC3_25701
set_lvar_text_label 178@s = 'LOC3_JA'
set_lvar_int_to_constant 206@ = 19038
220@ = 1

:MUSIC3_25701
if 
  174@ == 12
goto_if_false @MUSIC3_25748
set_lvar_text_label 178@s = 'LOC3_JB'
set_lvar_int_to_constant 206@ = 19039
220@ = 1

:MUSIC3_25748
set_lvar_int_to_lvar_int 223@ = 176@
221@ = 0
222@ = 0
224@ = 1
return 

:MUSIC3_25779
if 
  174@ == 1
goto_if_false @MUSIC3_25905
if 
  is_int_lvar_greater_than_int_lvar 220@ > 176@
goto_if_false @MUSIC3_25898
gosub @MUSIC3_26545
gosub @MUSIC3_26652
if 
  not Char.IsDead(76@)
goto_if_false @MUSIC3_25860
gosub @MUSIC3_26806
goto @MUSIC3_25891

:MUSIC3_25860
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(178@(176@,14s))
221@ = 0
222@ = 0

:MUSIC3_25891
goto @MUSIC3_25905

:MUSIC3_25898
174@ = 0

:MUSIC3_25905
if or
  174@ == 7
  174@ == 2
  174@ == 6
  174@ == 11
  174@ == 12
goto_if_false @MUSIC3_26005
if 
  is_int_lvar_greater_than_int_lvar 220@ > 176@
goto_if_false @MUSIC3_25998
gosub @MUSIC3_26545
gosub @MUSIC3_26652
gosub @MUSIC3_26806
goto @MUSIC3_26005

:MUSIC3_25998
174@ = 0

:MUSIC3_26005
if 
  122@ == 5
goto_if_false @MUSIC3_26299
if 
  123@ == 0
goto_if_false @MUSIC3_26299
if or
  174@ == 3
  174@ == 4
  174@ == 5
  174@ == 10
goto_if_false @MUSIC3_26299
if 
  is_int_lvar_greater_than_int_lvar 220@ > 176@
goto_if_false @MUSIC3_26292
gosub @MUSIC3_26545
gosub @MUSIC3_26652
if 
  not Char.IsDead(102@)
goto_if_false @MUSIC3_26254
if 
  not Car.IsDead(73@)
goto_if_false @MUSIC3_26216
if 
  Char.IsInCar($scplayer, 73@)
goto_if_false @MUSIC3_26178
gosub @MUSIC3_26806
goto @MUSIC3_26209

:MUSIC3_26178
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(178@(176@,14s))
221@ = 0
222@ = 0

:MUSIC3_26209
goto @MUSIC3_26247

:MUSIC3_26216
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(178@(176@,14s))
221@ = 0
222@ = 0

:MUSIC3_26247
goto @MUSIC3_26285

:MUSIC3_26254
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(178@(176@,14s))
221@ = 0
222@ = 0

:MUSIC3_26285
goto @MUSIC3_26299

:MUSIC3_26292
174@ = 0

:MUSIC3_26299
if or
  174@ == 8
  174@ == 9
goto_if_false @MUSIC3_26543
if 
  is_int_lvar_greater_than_int_lvar 220@ > 176@
goto_if_false @MUSIC3_26536
gosub @MUSIC3_26545
gosub @MUSIC3_26652
if 
  not Char.IsDead(75@)
goto_if_false @MUSIC3_26498
if 
  not Car.IsDead(73@)
goto_if_false @MUSIC3_26460
if 
  Char.IsInCar($scplayer, 73@)
goto_if_false @MUSIC3_26422
gosub @MUSIC3_26806
goto @MUSIC3_26453

:MUSIC3_26422
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(178@(176@,14s))
221@ = 0
222@ = 0

:MUSIC3_26453
goto @MUSIC3_26491

:MUSIC3_26460
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(178@(176@,14s))
221@ = 0
222@ = 0

:MUSIC3_26491
goto @MUSIC3_26529

:MUSIC3_26498
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(178@(176@,14s))
221@ = 0
222@ = 0

:MUSIC3_26529
goto @MUSIC3_26543

:MUSIC3_26536
174@ = 0

:MUSIC3_26543
return 

:MUSIC3_26545
if 
  is_int_lvar_greater_than_int_lvar 220@ > 223@
goto_if_false @MUSIC3_26650
if 
  221@ == 0
goto_if_false @MUSIC3_26607
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 206@(223@,14i))
223@ += 1
221@ = 1

:MUSIC3_26607
if 
  222@ == 0
goto_if_false @MUSIC3_26650
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 206@(223@,14i))
223@ += 1
222@ = 1

:MUSIC3_26650
return 

:MUSIC3_26652
if 
  224@ == 1
goto_if_false @MUSIC3_26728
if 
  221@ == 1
goto_if_false @MUSIC3_26728
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @MUSIC3_26728
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(178@(176@,14s), 4500, 1)
221@ = 2

:MUSIC3_26728
if 
  224@ == 2
goto_if_false @MUSIC3_26804
if 
  222@ == 1
goto_if_false @MUSIC3_26804
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @MUSIC3_26804
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow(178@(176@,14s), 4500, 1)
222@ = 2

:MUSIC3_26804
return 

:MUSIC3_26806
if 
  221@ == 2
goto_if_false @MUSIC3_26869
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @MUSIC3_26869
Text.ClearThisPrint(178@(176@,14s))
176@ += 1
224@ = 2
221@ = 0

:MUSIC3_26869
if 
  222@ == 2
goto_if_false @MUSIC3_26932
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @MUSIC3_26932
Text.ClearThisPrint(178@(176@,14s))
176@ += 1
224@ = 1
222@ = 0

:MUSIC3_26932
return 

//-------------Mission 34---------------
// Originally: House Party

:MUSIC5
script_name 'MUSIC5'
gosub @MUSIC5_47
if 
  has_deatharrest_been_executed 
goto_if_false @MUSIC5_38
gosub @MUSIC5_15844

:MUSIC5_38
gosub @MUSIC5_16013
terminate_this_script 

:MUSIC5_47
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('STRAP4')
Text.ClearPrints
wait 0
$LA_hub_activity = 1
80@ = 0
81@ = 0
82@ = 0
83@ = 0
106@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
88@ = 0
set_lvar_int_to_constant 89@ = 106
set_lvar_int_to_constant 90@ = 107
set_lvar_int_to_constant 91@ = 107
set_lvar_int_to_constant 92@ = 103
set_lvar_int_to_constant 93@ = 103
set_lvar_int_to_constant 94@ = 104
95@ = 0
96@ = 0
105@ = 0
107@ = 0
108@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0.0
142@ = 0.0
143@ = 0.0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 0
104@ = 75
CarGenerator.Switch($gen_car5, 0)
CarGenerator.Switch($gen_car6, 0)
CarGenerator.Switch($gen_car9, 0)
World.ClearArea(791.7, -1627.0, 12.3, 10.0, True)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
Player.MakeGangDisappear
Camera.SetFadingColor(0, 0, 0)
if 
  $strap4_mission_passed_once_flag == 0
goto_if_false @MUSIC5_609
World.ClearArea(782.5, -1619.3, 12.0, 5.0, False)
102@, 103@ = Streaming.GetRandomCarModelInMemory(True)
if 
  102@ >= 0
goto_if_false @MUSIC5_506
64@ = Car.Create(102@, 782.5, -1619.3, 12.0)
Car.SetHeading(64@, 270.0)

:MUSIC5_506
World.ClearArea(782.5, -1604.8, 12.0, 5.0, False)
102@, 103@ = Streaming.GetRandomCarModelInMemory(True)
if 
  102@ >= 0
goto_if_false @MUSIC5_591
65@ = Car.Create(102@, 782.5, -1604.8, 12.0)
Car.SetHeading(65@, 270.0)

:MUSIC5_591
Cutscene.Load('STRAP4A')
goto @MUSIC5_673

:MUSIC5_609
if 
  97@ == 0
goto_if_false @MUSIC5_673
World.ClearArea(2484.9, -1649.2, 12.5, 160.0, False)
Streaming.SetAreaVisible(3)
Cutscene.Load('STRP4B1')
97@ = 1

:MUSIC5_673
if 
  not Cutscene.HasLoaded
goto_if_false @MUSIC5_697
wait 0
goto @MUSIC5_673

:MUSIC5_697
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:MUSIC5_706
if 
  not Cutscene.HasFinished
goto_if_false @MUSIC5_730
wait 0
goto @MUSIC5_706

:MUSIC5_730
Camera.DoFade(0, Fade.Out)

:MUSIC5_736
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_760
wait 0
goto @MUSIC5_736

:MUSIC5_760
Car.MarkAsNoLongerNeeded(64@)
Car.MarkAsNoLongerNeeded(65@)
Cutscene.Clear
Player.SetControl($player1, False)
if 
  97@ == 1
goto_if_false @MUSIC5_1053
if 
  not Cutscene.WasSkipped
goto_if_false @MUSIC5_1053
World.ClearArea(2484.9, -1649.2, 12.5, 160.0, False)
Camera.SetFadingColor(0, 0, 0)
Streaming.RequestModel(492)
Streaming.LoadAllModelsNow
World.ClearArea(2503.0, -1658.8, 12.3, 5.0, True)
Car.CustomPlateForNextCar(492, "GROVE4L_")
34@ = Car.Create(492, 2503.0, -1658.8, 13.0)
Car.ChangeColor(34@, 59, 34)
Car.SetHeading(34@, 234.0)
Streaming.SetAreaVisible(0)
Cutscene.Load('STRP4B2')

:MUSIC5_945
if 
  not Cutscene.HasLoaded
goto_if_false @MUSIC5_969
wait 0
goto @MUSIC5_945

:MUSIC5_969
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:MUSIC5_978
if 
  not Cutscene.HasFinished
goto_if_false @MUSIC5_1002
wait 0
goto @MUSIC5_978

:MUSIC5_1002
Camera.DoFade(0, Fade.Out)

:MUSIC5_1008
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_1032
wait 0
goto @MUSIC5_1008

:MUSIC5_1032
Cutscene.Clear
Car.Delete(34@)
Player.SetControl($player1, False)
97@ = 0

:MUSIC5_1053
Player.MakeGangReappear
Camera.SetFadingColor(0, 0, 0)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
wait 0
if 
  $strap4_mission_passed_once_flag == 0
goto_if_false @MUSIC5_1112
Camera.DoFade(0, Fade.In)
goto @MUSIC5_15862

:MUSIC5_1112
Streaming.RequestModel(106)
Streaming.RequestModel(107)
Streaming.RequestModel(103)
Streaming.RequestModel(104)
Streaming.RequestModel(492)
Streaming.RequestModel(566)
Streaming.RequestModel(412)
Streaming.RequestModel(344)
Streaming.RequestModel(372)
Streaming.LoadSpecialCharacter(1, 'SWEET')
Streaming.LoadSpecialCharacter(2, 'RYDER2')
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 34200)

:MUSIC5_1188
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @MUSIC5_1214
wait 0
goto @MUSIC5_1188

:MUSIC5_1214
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot3, 2482.0, -1646.3, 12.8)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
Streaming.LoadAllModelsNow
Group.Remove($Players_Group)
Player.SetGroupRecruitment($player1, False)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Mission2)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission2, PedType.Mission1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission3, PedType.Mission1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission2, PedType.Mission3)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission3, PedType.Mission2)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission2, PedType.Player1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission3, PedType.Player1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Mission1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission2, PedType.Mission2)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission3, PedType.Mission3)
147@ = Player.GetGroup($player1)
Group.SetSeparationRange(147@, 1000.0)
151@ = DecisionMakerGroup.Load(0)
DecisionMakerGroup.ClearEventResponse(151@, 55)
DecisionMakerGroup.ClearEventResponse(151@, 54)
DecisionMakerGroup.AddEventResponse(151@, 15, 1502, 0.0, 100.0, 0.0, 0.0, False, True)
Group.SetDecisionMaker(147@, 151@)
Group.SetDefaultTaskAllocator(147@, DefaultTaskAllocator.StandStill)
145@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
146@ = DecisionMakerChar.Copy(65542)
DecisionMakerChar.ClearEventResponse(146@, 13)
DecisionMakerChar.ClearEventResponse(145@, 13)
$sweet = Char.Create(PedType.Mission3, 290, 2485.5, -1647.7, 13.3)
Char.SetNeverTargeted($sweet, True)
Char.SetHeading($sweet, 196.6)
Char.SetOnlyDamagedByPlayer($sweet, True)
Char.SetStayInSamePlace($sweet, True)
Char.GiveWeapon($sweet, WeaponType.Tec9, 3000)
Char.AddArmor($sweet, 100)
Char.SetOnlyDamagedByPlayer($sweet, True)
Char.SetDecisionMaker($sweet, 146@)
World.ClearArea(2503.0, -1658.8, 12.3, 5.0, True)
Car.CustomPlateForNextCar(492, "GROVE4L_")
34@ = Car.Create(492, 2503.0, -1658.8, 13.0)
Car.ChangeColor(34@, 59, 34)
Car.SetHeading(34@, 234.0)
Car.LockDoors(34@, CarLock.LockoutPlayerOnly)
Car.SetHeavy(34@, True)
Car.SetProofs(34@, True, True, False, False, False)
95@ = Math.RandomIntInRange(0, 3)
63@ = Char.Create(PedType.Mission3, 89@(95@,6i), 2487.1, -1647.7, 13.3)
Char.SetNeverTargeted(63@, True)
Char.SetHeading(63@, 158.9)
Char.SetOnlyDamagedByPlayer(63@, True)
Char.SetStayInSamePlace(63@, True)
Char.GiveWeapon(63@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(63@, 146@)
World.ClearArea(2496.7, -1683.4, 13.0, 5.0, True)
set_lvar_int_to_constant 99@ = 412
gosub @MUSIC5_16418
35@ = Car.Create(412, 2496.7, -1683.4, 13.0)
Car.SetHeading(35@, 272.5)
Car.LockDoors(35@, CarLock.LockoutPlayerOnly)
Car.SetHeavy(35@, True)
Car.SetProofs(35@, True, True, False, False, False)
$ryder = Char.Create(PedType.Mission3, 291, 2484.1, -1641.2, 13.5)
Char.SetStayInSamePlace($ryder, True)
Char.SetNeverTargeted($ryder, True)
Char.SetHeading($ryder, 180.0)
Char.GiveWeapon($ryder, WeaponType.Tec9, 3000)
Char.SetDecisionMaker($ryder, 146@)
95@ = Math.RandomIntInRange(0, 3)
36@ = Char.Create(PedType.Mission2, 89@(95@,6i), 2486.2, -1642.2, 13.5)
Char.SetStayInSamePlace(36@, True)
Char.SetNeverTargeted(36@, True)
Char.SetHeading(36@, 180.0)
Char.GiveWeapon(36@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(36@, 146@)
95@ = Math.RandomIntInRange(0, 3)
37@ = Char.Create(PedType.Mission2, 89@(95@,6i), 2486.2, -1641.2, 13.5)
Char.SetStayInSamePlace(37@, True)
Char.SetNeverTargeted(37@, True)
Char.SetHeading(37@, 180.0)
Char.GiveWeapon(37@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(37@, 146@)
95@ = Math.RandomIntInRange(0, 3)
39@ = Char.Create(PedType.Mission2, 89@(95@,6i), 2486.2, -1639.2, 13.5)
Char.SetStayInSamePlace(39@, True)
Char.SetNeverTargeted(39@, True)
Char.SetHeading(39@, 180.0)
Char.GiveWeapon(39@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(39@, 146@)
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16418
43@ = Car.Create(566, 2227.6, -1667.8, 13.7)
Car.SetHeading(43@, 342.3)
Car.SetProofs(43@, True, True, False, False, False)
Car.LockDoors(43@, CarLock.LockoutPlayerOnly)
95@ = Math.RandomIntInRange(3, 6)
47@ = Char.CreateInsideCar(43@, PedType.Mission1, 89@(95@,6i))
Char.SetKindaStayInSamePlace(47@, True)
Char.GiveWeapon(47@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(47@, 146@)
149@ = Group.Create(DefaultTaskAllocator.StandStill)
Group.SetSeparationRange(149@, 300.0)
Group.SetDecisionMaker(149@, 151@)
Group.SetLeader(149@, 47@)
Char.SetAccuracy(47@, 104@)
95@ = Math.RandomIntInRange(3, 6)
48@ = Char.CreateAsPassenger(43@, PedType.Mission1, 89@(95@,6i), 0)
Char.GiveWeapon(48@, WeaponType.Tec9, 3000)
Char.SetKindaStayInSamePlace(48@, True)
Char.SetDecisionMaker(48@, 146@)
Group.SetMember(149@, 48@)
Char.SetAccuracy(48@, 104@)
95@ = Math.RandomIntInRange(3, 6)
49@ = Char.CreateAsPassenger(43@, PedType.Mission1, 89@(95@,6i), 1)
Char.SetOnlyDamagedByPlayer(49@, True)
Char.SetSuffersCriticalHits(49@, False)
Char.AddArmor(49@, 100)
Char.GiveWeapon(49@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(49@, 146@)
Char.SetAccuracy(49@, 104@)
95@ = Math.RandomIntInRange(3, 6)
50@ = Char.CreateAsPassenger(43@, PedType.Mission1, 89@(95@,6i), 2)
Char.GiveWeapon(50@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(50@, 146@)
Group.SetMember(149@, 50@)
Char.SetAccuracy(50@, 104@)
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16418
44@ = Car.Create(566, 2224.6, -1677.9, 13.2)
Car.SetHeading(44@, 342.3)
Car.SetProofs(44@, True, True, False, False, False)
Car.LockDoors(44@, CarLock.LockoutPlayerOnly)
95@ = Math.RandomIntInRange(3, 6)
51@ = Char.CreateInsideCar(44@, PedType.Mission1, 89@(95@,6i))
Char.GiveWeapon(51@, WeaponType.Tec9, 3000)
Char.SetKindaStayInSamePlace(51@, True)
Char.SetDecisionMaker(51@, 146@)
Group.SetMember(149@, 51@)
Char.SetAccuracy(51@, 104@)
95@ = Math.RandomIntInRange(3, 6)
52@ = Char.CreateAsPassenger(44@, PedType.Mission1, 89@(95@,6i), 0)
Char.GiveWeapon(52@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(52@, 146@)
Group.SetMember(149@, 52@)
Char.SetAccuracy(52@, 104@)
95@ = Math.RandomIntInRange(3, 6)
53@ = Char.CreateAsPassenger(44@, PedType.Mission1, 89@(95@,6i), 1)
Char.GiveWeapon(53@, WeaponType.Tec9, 3000)
Char.SetKindaStayInSamePlace(53@, True)
Char.SetDecisionMaker(53@, 146@)
Group.SetMember(149@, 53@)
Char.SetAccuracy(53@, 104@)
95@ = Math.RandomIntInRange(3, 6)
54@ = Char.CreateAsPassenger(44@, PedType.Mission1, 89@(95@,6i), 2)
Char.GiveWeapon(54@, WeaponType.Tec9, 3000)
Char.SetKindaStayInSamePlace(54@, True)
Char.SetDecisionMaker(54@, 146@)
Group.SetMember(149@, 54@)
Char.SetAccuracy(54@, 104@)
Streaming.SetAreaVisible(0)
Streaming.LoadScene(2484.9, -1649.2, 12.5)
World.ClearArea(2484.9, -1649.2, 12.5, 160.0, False)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.SetMaxFireGenerations(1)
Streaming.RequestCarRecording(22)
Streaming.RequestCarRecording(23)
World.ClearArea(2492.4, -1632.0, 12.4, 1.0, True)
Char.SetCoordinates($scplayer, 2492.4, -1632.0, 12.4)
Camera.SetFixedPosition(2483.0, -1649.8, 12.5, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2494.3, -1650.3, 16.6, SwitchType.JumpCut)
Game.ShutAllCharsUp(True)
Game.EnableAmbientCrime(False)

:MUSIC5_3036
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MUSIC5_3062
goto @MUSIC5_15862

:MUSIC5_3062
Player.AlterWantedLevel($player1, 0)
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_3101
goto @MUSIC5_15844

:MUSIC5_3101
if 
  80@ == 0
goto_if_false @MUSIC5_7140
if 
  81@ == 0
goto_if_false @MUSIC5_4061
if 
  not Car.IsDead(34@)
goto_if_false @MUSIC5_3208
144@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 2498.5, -1652.3, 12.5, 6, -1)
Task.EnterCarAsDriver(-1, 34@, -1)
Sequence.Close(144@)
Char.PerformSequence($sweet, 144@)
Sequence.Clear(144@)

:MUSIC5_3208
if 
  not Char.IsDead(63@)
goto_if_false @MUSIC5_3295
if 
  not Car.IsDead(35@)
goto_if_false @MUSIC5_3295
144@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 2487.4, -1657.9, 12.3, 6, -1)
Task.EnterCarAsDriver(-1, 35@, -1)
Sequence.Close(144@)
Char.PerformSequence(63@, 144@)
Sequence.Clear(144@)

:MUSIC5_3295
if 
  not Char.IsDead($ryder)
goto_if_false @MUSIC5_3433
144@ = Sequence.Open()
Task.Pause(-1, 500)
Task.GoStraightToCoord(-1, 2486.1, -1646.7, 12.9, MoveState.Walk, 1)
Task.GoStraightToCoord(-1, 2485.1, -1652.7, 12.3, MoveState.Run, -1)
Task.FollowPathNodesToCoord(-1, 2478.4, -1649.1, 12.5, 6, -1)
Task.FollowPathNodesToCoord(-1, 2478.2, -1631.4, 12.5, 6, -1)
Sequence.Close(144@)
Char.PerformSequence($ryder, 144@)
Sequence.Clear(144@)

:MUSIC5_3433
if 
  not Char.IsDead(36@)
goto_if_false @MUSIC5_3626
144@ = Sequence.Open()
Task.Pause(-1, 1000)
Task.GoStraightToCoord(-1, 2487.1, -1646.7, 12.9, MoveState.Walk, 1)
Task.GoStraightToCoord(-1, 2487.1, -1654.7, 12.3, MoveState.Run, -1)
Task.FollowPathNodesToCoord(-1, 2472.3, -1652.8, 12.5, 6, -1)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.Pause(-1, 9000)
Task.FollowPathNodesToCoord(-1, 2466.3, -1660.7, 12.2, 6, -1)
Task.AchieveHeading(-1, 88.6)
Sequence.Close(144@)
Char.PerformSequence(36@, 144@)
Sequence.Clear(144@)

:MUSIC5_3626
if 
  not Char.IsDead(37@)
goto_if_false @MUSIC5_3795
144@ = Sequence.Open()
Task.Pause(-1, 1500)
Task.GoStraightToCoord(-1, 2486.1, -1646.7, 12.9, MoveState.Walk, 1)
Task.GoStraightToCoord(-1, 2486.1, -1654.7, 12.3, MoveState.Run, -1)
Task.FollowPathNodesToCoord(-1, 2467.6, -1649.2, 12.5, 6, -1)
Task.AchieveHeading(-1, 110.0)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.ToggleDuck(-1, True)
Sequence.Close(144@)
Char.PerformSequence(37@, 144@)
Sequence.Clear(144@)

:MUSIC5_3795
if 
  not Char.IsDead(39@)
goto_if_false @MUSIC5_3988
144@ = Sequence.Open()
Task.Pause(-1, 3000)
Task.GoStraightToCoord(-1, 2486.1, -1646.7, 12.9, MoveState.Walk, 1)
Task.GoStraightToCoord(-1, 2486.1, -1654.7, 12.3, MoveState.Run, -1)
Task.FollowPathNodesToCoord(-1, 2473.4, -1652.7, 12.5, 6, -1)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.Pause(-1, 9000)
Task.FollowPathNodesToCoord(-1, 2463.8, -1663.6, 12.2, 6, -1)
Task.AchieveHeading(-1, 116.3)
Sequence.Close(144@)
Char.PerformSequence(39@, 144@)
Sequence.Clear(144@)

:MUSIC5_3988
Camera.DoFade(1000, Fade.In)
105@ = 1
107@ = Math.RandomIntInRange(0, 3)
set_lvar_int_to_lvar_int 108@ = 107@
108@ += 1
gosub @MUSIC5_17649
82@ = 1
skip_cutscene_start_internal @MUSIC5_5678
TIMERA = 0
81@ = 1

:MUSIC5_4061
if 
  81@ == 1
goto_if_false @MUSIC5_4207
if 
  not Char.IsDead($sweet)
goto_if_false @MUSIC5_4207
if 
  TIMERA > 3000
goto_if_false @MUSIC5_4207
105@ = 2
107@ = 0
108@ = 2
gosub @MUSIC5_17649
Camera.SetFixedPosition(2501.5, -1650.5, 13.3, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2498.9, -1682.1, 16.3, SwitchType.JumpCut)
TIMERA = 0
81@ = 2

:MUSIC5_4207
if 
  81@ == 2
goto_if_false @MUSIC5_5336
if 
  86@ == 0
goto_if_false @MUSIC5_4493
if 
  TIMERA > 6000
goto_if_false @MUSIC5_4493
if 
  not Car.IsDead(43@)
goto_if_false @MUSIC5_4374
if 
  not Char.IsDead(47@)
goto_if_false @MUSIC5_4374
144@ = Sequence.Open()
Task.CarDriveToCoord(-1, 43@, 2435.3, -1661.1, 12.2, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarTempAction(-1, 43@, TempAction.TurnRight, 200)
Task.CarTempAction(-1, 43@, TempAction.HandbrakeStraight, 400)
Sequence.Close(144@)
Char.PerformSequence(47@, 144@)
Sequence.Clear(144@)

:MUSIC5_4374
if 
  not Car.IsDead(44@)
goto_if_false @MUSIC5_4486
if 
  not Char.IsDead(51@)
goto_if_false @MUSIC5_4486
144@ = Sequence.Open()
Task.CarDriveToCoord(-1, 44@, 2440.8, -1656.9, 12.2, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarTempAction(-1, 44@, TempAction.TurnLeft, 200)
Task.CarTempAction(-1, 44@, TempAction.HandbrakeStraight, 400)
Sequence.Close(144@)
Char.PerformSequence(51@, 144@)
Sequence.Clear(144@)

:MUSIC5_4486
86@ = 1

:MUSIC5_4493
if or
  2 > 84@
  2 > 85@
goto_if_false @MUSIC5_5266
if 
  not Car.IsDead(34@)
goto_if_false @MUSIC5_5016
if 
  84@ == 0
goto_if_false @MUSIC5_4802
if 
  Char.IsInCar($sweet, 34@)
goto_if_false @MUSIC5_4795
Camera.DoFade(500, Fade.Out)

:MUSIC5_4578
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_4602
wait 0
goto @MUSIC5_4578

:MUSIC5_4602
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_4634
goto @MUSIC5_15844

:MUSIC5_4634
Streaming.LoadScene(2459.275, -1653.263, 13.0938)
Camera.SetFixedPosition(2459.275, -1653.263, 13.0938, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2460.089, -1653.843, 13.1158, SwitchType.JumpCut)
if 
  not Car.IsDead(34@)
goto_if_false @MUSIC5_4725
Car.StartPlayback(34@, 22)

:MUSIC5_4725
Camera.DoFade(500, Fade.In)

:MUSIC5_4732
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_4756
wait 0
goto @MUSIC5_4732

:MUSIC5_4756
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_4788
goto @MUSIC5_15844

:MUSIC5_4788
84@ = 1

:MUSIC5_4795
goto @MUSIC5_5016

:MUSIC5_4802
if 
  not Car.IsDead(34@)
goto_if_false @MUSIC5_5016
if 
  not Car.IsPlaybackGoingOn(34@)
goto_if_false @MUSIC5_5016
if 
  84@ == 1
goto_if_false @MUSIC5_5016
144@ = Sequence.Open()
Task.Pause(-1, 2000)
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 2458.9, -1665.6, 12.2, MoveState.Run, -2)
Task.GoStraightToCoord(-1, 2465.0, -1666.4, 12.2, MoveState.Run, -2)
Task.FollowPathNodesToCoord(-1, 2465.3, -1654.6, 12.2, 6, -2)
Task.AchieveHeading(-1, 107.0)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.ToggleDuck(-1, True)
Sequence.Close(144@)
Char.PerformSequence($sweet, 144@)
Sequence.Clear(144@)
84@ = 2

:MUSIC5_5016
if 
  not Char.IsDead(63@)
goto_if_false @MUSIC5_5259
if 
  not Car.IsDead(35@)
goto_if_false @MUSIC5_5259
if 
  85@ == 0
goto_if_false @MUSIC5_5106
if 
  Char.IsInCar(63@, 35@)
goto_if_false @MUSIC5_5099
Car.StartPlayback(35@, 23)
85@ = 1

:MUSIC5_5099
goto @MUSIC5_5259

:MUSIC5_5106
if 
  not Car.IsPlaybackGoingOn(35@)
goto_if_false @MUSIC5_5259
if 
  85@ == 1
goto_if_false @MUSIC5_5259
144@ = Sequence.Open()
Task.Pause(-1, 2000)
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 2458.2, -1655.0, 12.2, MoveState.Run, -2)
Task.GoStraightToCoord(-1, 2461.1, -1650.8, 12.2, MoveState.Run, -2)
Task.FollowPathNodesToCoord(-1, 2467.4, -1657.7, 12.2, 6, -2)
Task.AchieveHeading(-1, 110.0)
Sequence.Close(144@)
Char.PerformSequence(63@, 144@)
Sequence.Clear(144@)
85@ = 2

:MUSIC5_5259
goto @MUSIC5_5336

:MUSIC5_5266
Camera.DoFade(500, Fade.Out)

:MUSIC5_5273
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_5297
wait 0
goto @MUSIC5_5273

:MUSIC5_5297
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_5329
goto @MUSIC5_15844

:MUSIC5_5329
81@ = 3

:MUSIC5_5336
if 
  81@ == 3
goto_if_false @MUSIC5_5609
Streaming.LoadScene(2404.5, -1672.3, 15.8)
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16418
61@ = Car.Create(566, 2485.0, -1682.5, 15.0)
Car.LockDoors(61@, CarLock.LockoutPlayerOnly)
Car.SetHeavy(61@, True)
Car.SetProofs(61@, True, True, False, False, False)
Car.SetHeading(61@, 90.0)
Camera.ResetNewScriptables
Camera.PersistPos(True)
Camera.PersistTrack(True)
Camera.SetVectorMove(2404.5, -1672.3, 15.8, 2408.6, -1672.7, 15.9, 5000, True)
Camera.SetVectorTrack(2384.8, -1665.4, 13.4, 2416.5, -1665.3, 13.9, 5000, True)
Camera.DoFade(500, Fade.In)

:MUSIC5_5539
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_5563
wait 0
goto @MUSIC5_5539

:MUSIC5_5563
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_5595
goto @MUSIC5_15844

:MUSIC5_5595
TIMERA = 0
81@ = 4

:MUSIC5_5609
if 
  81@ == 4
goto_if_false @MUSIC5_5653
if 
  TIMERA > 5800
goto_if_false @MUSIC5_5653
81@ = 5

:MUSIC5_5653
if 
  81@ == 5
goto_if_false @MUSIC5_7140
82@ = 0

:MUSIC5_5678
skip_cutscene_end 
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_5712
goto @MUSIC5_15844

:MUSIC5_5712
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
105@ = 0
Camera.DoFade(500, Fade.Out)

:MUSIC5_5736
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_5760
wait 0
goto @MUSIC5_5736

:MUSIC5_5760
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_5792
goto @MUSIC5_15844

:MUSIC5_5792
Camera.ResetNewScriptables
if 
  82@ == 1
goto_if_false @MUSIC5_5906
if 
  not Car.IsDead(43@)
goto_if_false @MUSIC5_5858
Car.SetCoordinates(43@, 2453.1, -1663.0, 12.3)
Car.SetHeading(43@, 217.2)

:MUSIC5_5858
if 
  not Car.IsDead(44@)
goto_if_false @MUSIC5_5904
Car.SetCoordinates(44@, 2452.2, -1651.9, 12.3)
Car.SetHeading(44@, 314.2)

:MUSIC5_5904
Text.ClearPrints

:MUSIC5_5906
if 
  Car.IsDead(61@)
goto_if_false @MUSIC5_5999
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16418
61@ = Car.Create(566, 2485.0, -1682.5, 15.0)
Car.LockDoors(61@, CarLock.LockoutPlayerOnly)
Car.SetHeavy(61@, True)
Car.SetProofs(61@, True, True, False, False, False)
Car.SetHeading(61@, 90.0)

:MUSIC5_5999
if 
  not Car.IsDead(34@)
goto_if_false @MUSIC5_6066
if 
  Car.IsPlaybackGoingOn(34@)
goto_if_false @MUSIC5_6036
Car.StopPlayback(34@)

:MUSIC5_6036
Car.SetCoordinates(34@, 2462.3, -1662.4, 12.1)
Car.SetHeading(34@, 325.8)

:MUSIC5_6066
if 
  not Car.IsDead(35@)
goto_if_false @MUSIC5_6133
if 
  Car.IsPlaybackGoingOn(35@)
goto_if_false @MUSIC5_6103
Car.StopPlayback(35@)

:MUSIC5_6103
Car.SetCoordinates(35@, 2463.4, -1656.1, 12.0)
Car.SetHeading(35@, 50.5)

:MUSIC5_6133
Char.ClearTasksImmediately($sweet)
World.ClearArea(2465.3, -1654.6, 12.2, 1.0, True)
Char.SetCoordinates($sweet, 2465.3, -1654.6, 12.2)
Char.SetHeading($sweet, 107.0)
Char.SetDecisionMaker($sweet, 145@)
148@ = Group.Create(DefaultTaskAllocator.StandStill)
Group.SetDecisionMaker(148@, 151@)
Group.SetLeader(148@, $sweet)
144@ = Sequence.Open()
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 1000.0, False, False, False, True, -1)
Task.ToggleDuck(-1, True)
Sequence.Close(144@)
Char.PerformSequence($sweet, 144@)
Sequence.Clear(144@)
if 
  not Char.IsDead(63@)
goto_if_false @MUSIC5_6382
Char.ClearTasksImmediately(63@)
World.ClearArea(2467.4, -1657.7, 12.2, 1.0, True)
Char.SetCoordinates(63@, 2467.4, -1657.7, 12.2)
Char.SetHeading(63@, 107.0)
Char.SetDecisionMaker(63@, 145@)
Group.SetMember(148@, 63@)

:MUSIC5_6382
if 
  not Char.IsDead(36@)
goto_if_false @MUSIC5_6541
Char.ClearTasksImmediately(36@)
World.ClearArea(2466.3, -1660.7, 12.2, 1.0, True)
Char.SetCoordinates(36@, 2466.3, -1660.7, 12.2)
Char.SetHeading(36@, 88.6)
Char.SetDecisionMaker(36@, 145@)
Group.SetMember(147@, 36@)
144@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 1000.0, False, False, False, True, -1)
Sequence.Close(144@)
Char.PerformSequence(36@, 144@)
Sequence.Clear(144@)

:MUSIC5_6541
if 
  not Char.IsDead(37@)
goto_if_false @MUSIC5_6700
Char.ClearTasksImmediately(37@)
World.ClearArea(2467.6, -1649.2, 12.5, 1.0, True)
Char.SetCoordinates(37@, 2467.6, -1649.2, 12.5)
Char.SetHeading(37@, 110.0)
Char.SetDecisionMaker(37@, 145@)
Group.SetMember(147@, 37@)
144@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 1000.0, False, False, False, True, -1)
Sequence.Close(144@)
Char.PerformSequence(37@, 144@)
Sequence.Clear(144@)

:MUSIC5_6700
if 
  not Char.IsDead(39@)
goto_if_false @MUSIC5_6859
Char.ClearTasksImmediately(39@)
World.ClearArea(2462.3, -1665.7, 12.2, 1.0, True)
Char.SetCoordinates(39@, 2462.3, -1665.7, 12.2)
Char.SetHeading(39@, 76.9)
Char.SetDecisionMaker(39@, 145@)
Group.SetMember(147@, 39@)
144@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 1000.0, False, False, False, True, -1)
Sequence.Close(144@)
Char.PerformSequence(39@, 144@)
Sequence.Clear(144@)

:MUSIC5_6859
Streaming.LoadScene(2487.3, -1650.7, 12.5)
World.ClearArea(2469.7, -1657.0, 12.3, 1.0, True)
Char.SetCoordinatesDontWarpGang($scplayer, 2469.7, -1657.0, 12.3)
Char.SetHeading($scplayer, 90.0)
62@ = Pickup.CreateWithAmmo(372, PickupType.OnStreet, 120, 2466.0, -1656.1, 13.3)
DecisionMakerChar.AddEventResponse(145@, 13, 917, 0.0, 100.0, 0.0, 0.0, False, True)
Char.Delete($ryder)
Streaming.UnloadSpecialCharacter(2)
105@ = 2
107@ = 2
108@ = 4
gosub @MUSIC5_17649
Game.ShutAllCharsUp(False)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(1500, Fade.In)

:MUSIC5_7063
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_7087
wait 0
goto @MUSIC5_7063

:MUSIC5_7087
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_7119
goto @MUSIC5_15844

:MUSIC5_7119
TIMERA = 0
81@ = 0
80@ = 1

:MUSIC5_7140
if 
  80@ == 1
goto_if_false @MUSIC5_8232
if 
  106@ == 0
goto_if_false @MUSIC5_7217
if 
  105@ == 0
goto_if_false @MUSIC5_7217
Text.Print('STP4_02', 11000, 1)
106@ = 1

:MUSIC5_7217
if 
  81@ == 0
goto_if_false @MUSIC5_7863
if 
  not Char.IsDead(47@)
goto_if_false @MUSIC5_7307
144@ = Sequence.Open()
Task.Pause(-1, 1200)
Task.LeaveAnyCar(-1)
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(47@, 144@)
Sequence.Clear(144@)
66@ = Blip.AddForChar(47@)
Blip.ChangeScale(66@, 1)

:MUSIC5_7307
if 
  not Char.IsDead(48@)
goto_if_false @MUSIC5_7388
144@ = Sequence.Open()
Task.Pause(-1, 500)
Task.LeaveAnyCar(-1)
Task.AchieveHeading(-1, 295.1)
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(48@, 144@)
Sequence.Clear(144@)
67@ = Blip.AddForChar(48@)
Blip.ChangeScale(67@, 1)

:MUSIC5_7388
if 
  not Char.IsDead(49@)
goto_if_false @MUSIC5_7460
144@ = Sequence.Open()
Task.Pause(-1, 2200)
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(144@)
Char.PerformSequence(49@, 144@)
Sequence.Clear(144@)
68@ = Blip.AddForChar(49@)
Blip.ChangeScale(68@, 1)

:MUSIC5_7460
if 
  not Char.IsDead(50@)
goto_if_false @MUSIC5_7532
144@ = Sequence.Open()
Task.Pause(-1, 2000)
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(144@)
Char.PerformSequence(50@, 144@)
Sequence.Clear(144@)
69@ = Blip.AddForChar(50@)
Blip.ChangeScale(69@, 1)

:MUSIC5_7532
if 
  not Char.IsDead(51@)
goto_if_false @MUSIC5_7613
144@ = Sequence.Open()
Task.Pause(-1, 1800)
Task.LeaveAnyCar(-1)
Task.AchieveHeading(-1, 245.3)
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(51@, 144@)
Sequence.Clear(144@)
70@ = Blip.AddForChar(51@)
Blip.ChangeScale(70@, 1)

:MUSIC5_7613
if 
  not Char.IsDead(52@)
goto_if_false @MUSIC5_7694
144@ = Sequence.Open()
Task.Pause(-1, 2300)
Task.LeaveAnyCar(-1)
Task.AchieveHeading(-1, 268.6)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(144@)
Char.PerformSequence(52@, 144@)
Sequence.Clear(144@)
71@ = Blip.AddForChar(52@)
Blip.ChangeScale(71@, 1)

:MUSIC5_7694
if 
  not Char.IsDead(53@)
goto_if_false @MUSIC5_7775
144@ = Sequence.Open()
Task.Pause(-1, 2100)
Task.LeaveAnyCar(-1)
Task.AchieveHeading(-1, 225.8)
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(53@, 144@)
Sequence.Clear(144@)
72@ = Blip.AddForChar(53@)
Blip.ChangeScale(72@, 1)

:MUSIC5_7775
if 
  not Char.IsDead(54@)
goto_if_false @MUSIC5_7856
144@ = Sequence.Open()
Task.Pause(-1, 1200)
Task.LeaveAnyCar(-1)
Task.AchieveHeading(-1, 236.0)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(144@)
Char.PerformSequence(54@, 144@)
Sequence.Clear(144@)
73@ = Blip.AddForChar(54@)
Blip.ChangeScale(73@, 1)

:MUSIC5_7856
81@ = 1

:MUSIC5_7863
if 
  81@ == 1
goto_if_false @MUSIC5_8164
if 
  Char.IsDead(47@)
goto_if_false @MUSIC5_8164
if 
  Char.IsDead(48@)
goto_if_false @MUSIC5_8164
if 
  Char.IsDead(49@)
goto_if_false @MUSIC5_8164
if 
  Char.IsDead(50@)
goto_if_false @MUSIC5_8164
if 
  Char.IsDead(51@)
goto_if_false @MUSIC5_8164
if 
  Char.IsDead(52@)
goto_if_false @MUSIC5_8164
if 
  Char.IsDead(53@)
goto_if_false @MUSIC5_8164
if 
  Char.IsDead(54@)
goto_if_false @MUSIC5_8164
if 
  Char.IsDead(55@)
goto_if_false @MUSIC5_8164
if 
  Char.IsDead(56@)
goto_if_false @MUSIC5_8164
Char.MarkAsNoLongerNeeded(47@)
Char.MarkAsNoLongerNeeded(48@)
Char.MarkAsNoLongerNeeded(49@)
Char.MarkAsNoLongerNeeded(50@)
Char.MarkAsNoLongerNeeded(51@)
Char.MarkAsNoLongerNeeded(52@)
Char.MarkAsNoLongerNeeded(53@)
Char.MarkAsNoLongerNeeded(54@)
Char.MarkAsNoLongerNeeded(55@)
Char.MarkAsNoLongerNeeded(56@)
Blip.Remove(66@)
Blip.Remove(67@)
Blip.Remove(68@)
Blip.Remove(69@)
Blip.Remove(70@)
Blip.Remove(71@)
Blip.Remove(72@)
Blip.Remove(73@)
Blip.Remove(74@)
Blip.Remove(75@)
Text.ClearPrints
TIMERA = 0
81@ = 0
80@ = 2

:MUSIC5_8164
if 
  10 > 88@
goto_if_false @MUSIC5_8225
if 
  Char.IsDead(47@(88@,14i))
goto_if_false @MUSIC5_8211
Blip.Remove(66@(88@,14i))

:MUSIC5_8211
88@ += 1
goto @MUSIC5_8232

:MUSIC5_8225
88@ = 0

:MUSIC5_8232
if 
  80@ == 2
goto_if_false @MUSIC5_9777
ENTEXT_63()
if 
  $player_is_completely_safe == 1
goto_if_false @MUSIC5_9293
if 
  81@ == 0
goto_if_false @MUSIC5_9293
if 
  TIMERA > 2000
goto_if_false @MUSIC5_9293
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
105@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.ShutAllCharsUp(True)
World.ClearArea(2425.8, -1636.6, 26.2, 5.0, True)
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16418
45@ = Car.Create(566, 2425.8, -1636.6, 26.2)
Car.SetHeading(45@, 166.8)
World.ClearArea(2441.6, -1658.6, 25.2, 5.0, True)
47@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2441.6, -1658.6, 25.2)
Char.SetAccuracy(47@, 104@)
Char.SetHeading(47@, 262.7)
Char.SetOnlyDamagedByPlayer(47@, True)
Char.GiveWeapon(47@, WeaponType.Tec9, 3000)
Char.SetStayInSamePlace(47@, True)
150@ = Group.Create(DefaultTaskAllocator.StandStill)
Group.SetSeparationRange(150@, 300.0)
Char.SetHealth(47@, 10)
Char.SetDecisionMaker(47@, 146@)
Group.SetDecisionMaker(150@, 151@)
Group.SetLeader(150@, 47@)
66@ = Blip.AddForChar(47@)
Blip.ChangeScale(66@, 1)
144@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
Task.Pause(-1, 500)
Task.Climb(-1, False)
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(47@, 144@)
Sequence.Clear(144@)
World.ClearArea(2441.6, -1660.2, 25.1, 5.0, True)
48@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2441.6, -1660.2, 25.1)
Char.SetAccuracy(48@, 104@)
Char.SetHeading(48@, 265.9)
Char.SetOnlyDamagedByPlayer(48@, True)
Char.GiveWeapon(48@, WeaponType.Tec9, 3000)
Char.SetHealth(48@, 10)
Char.SetStayInSamePlace(48@, True)
Char.SetDecisionMaker(48@, 146@)
Group.SetMember(150@, 48@)
67@ = Blip.AddForChar(48@)
Blip.ChangeScale(67@, 1)
144@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
Task.Pause(-1, 600)
Task.Climb(-1, False)
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(48@, 144@)
Sequence.Clear(144@)
World.ClearArea(2441.6, -1665.2, 24.6, 5.0, True)
49@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2441.6, -1665.2, 24.6)
Char.SetAccuracy(49@, 104@)
Char.SetHeading(49@, 273.6)
Char.SetOnlyDamagedByPlayer(49@, True)
Char.SetHealth(49@, 10)
Char.GiveWeapon(49@, WeaponType.Tec9, 3000)
Char.SetStayInSamePlace(49@, True)
Char.SetDecisionMaker(49@, 146@)
Group.SetMember(150@, 49@)
68@ = Blip.AddForChar(49@)
Blip.ChangeScale(68@, 1)
144@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
Task.Pause(-1, 1700)
Task.Climb(-1, False)
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(49@, 144@)
Sequence.Clear(144@)
World.ClearArea(2441.6, -1655.4, 25.6, 5.0, True)
50@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2441.6, -1655.4, 25.6)
Char.SetAccuracy(50@, 104@)
Char.SetHeading(50@, 280.0)
Char.SetOnlyDamagedByPlayer(50@, True)
Char.GiveWeapon(50@, WeaponType.Tec9, 3000)
Char.SetHealth(50@, 10)
Char.SetStayInSamePlace(50@, True)
Char.SetDecisionMaker(50@, 146@)
Group.SetMember(150@, 50@)
69@ = Blip.AddForChar(50@)
Blip.ChangeScale(69@, 1)
144@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
Task.Pause(-1, 2000)
Task.Climb(-1, False)
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(50@, 144@)
Sequence.Clear(144@)
Task.TurnCharToFaceChar($scplayer, 50@)
Camera.SetFixedPosition(2474.3, -1660.9, 14.1, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2449.8, -1657.2, 19.1, SwitchType.JumpCut)
105@ = 2
107@ = 5
108@ = 6
gosub @MUSIC5_17649
skip_cutscene_start_internal @MUSIC5_9330
TIMERA = 0
TIMERB = 0
81@ = 1

:MUSIC5_9293
if 
  81@ == 1
goto_if_false @MUSIC5_9500
if 
  TIMERA > 3000
goto_if_false @MUSIC5_9500

:MUSIC5_9330
skip_cutscene_end 
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_9364
goto @MUSIC5_15844

:MUSIC5_9364
if 
  82@ == 1
goto_if_false @MUSIC5_9399
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
105@ = 0

:MUSIC5_9399
if 
  not Char.IsDead(37@)
goto_if_false @MUSIC5_9437
Task.ShootAtCoord(37@, 2443.9, -1659.9, 24.6, -2)

:MUSIC5_9437
if 
  not Char.IsDead(39@)
goto_if_false @MUSIC5_9458
Char.ExplodeHead(39@)

:MUSIC5_9458
Game.ShutAllCharsUp(False)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
106@ = 0
81@ = 2

:MUSIC5_9500
if 
  81@ == 2
goto_if_false @MUSIC5_9709
if 
  106@ == 0
goto_if_false @MUSIC5_9577
if 
  105@ == 0
goto_if_false @MUSIC5_9577
Text.Print('STP4_03', 11000, 1)
106@ = 1

:MUSIC5_9577
if 
  Char.IsDead(47@)
goto_if_false @MUSIC5_9709
if 
  Char.IsDead(48@)
goto_if_false @MUSIC5_9709
if 
  Char.IsDead(49@)
goto_if_false @MUSIC5_9709
if 
  Char.IsDead(50@)
goto_if_false @MUSIC5_9709
Car.MarkAsNoLongerNeeded(45@)
Char.MarkAsNoLongerNeeded(47@)
Char.MarkAsNoLongerNeeded(48@)
Char.MarkAsNoLongerNeeded(49@)
Char.MarkAsNoLongerNeeded(50@)
Blip.Remove(66@)
Blip.Remove(67@)
Blip.Remove(68@)
Blip.Remove(69@)
Text.ClearPrints
TIMERA = 0
81@ = 0
80@ = 3

:MUSIC5_9709
if 
  4 > 88@
goto_if_false @MUSIC5_9770
if 
  Char.IsDead(47@(88@,14i))
goto_if_false @MUSIC5_9756
Blip.Remove(66@(88@,14i))

:MUSIC5_9756
88@ += 1
goto @MUSIC5_9777

:MUSIC5_9770
88@ = 0

:MUSIC5_9777
if 
  80@ == 3
goto_if_false @MUSIC5_14612
ENTEXT_63()
if 
  $player_is_completely_safe == 1
goto_if_false @MUSIC5_11431
if 
  81@ == 0
goto_if_false @MUSIC5_11431
if 
  TIMERA > 2000
goto_if_false @MUSIC5_11431
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:MUSIC5_9866
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_9890
wait 0
goto @MUSIC5_9866

:MUSIC5_9890
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_9922
goto @MUSIC5_15844

:MUSIC5_9922
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
105@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Game.ShutAllCharsUp(True)
DecisionMakerChar.ClearEventResponse(146@, 13)
DecisionMakerChar.ClearEventResponse(145@, 13)
if 
  Char.LocateAnyMeans3D($scplayer, 2473.5, -1655.2, 12.1, 5.0, 5.0, 5.0, False)
goto_if_false @MUSIC5_10060
World.ClearArea(2475.8, -1663.6, 12.3, 1.0, True)
Char.SetCoordinates($scplayer, 2475.8, -1663.6, 12.3)

:MUSIC5_10060
if 
  not Car.IsDead(35@)
goto_if_false @MUSIC5_10137
World.ClearArea(2473.5, -1655.2, 12.1, 5.0, True)
Car.SetCoordinates(35@, 2473.5, -1655.2, 12.1)
Car.SetHeading(35@, 267.2)
goto @MUSIC5_10238

:MUSIC5_10137
World.ClearArea(2473.5, -1655.2, 12.1, 5.0, True)
set_lvar_int_to_constant 99@ = 412
gosub @MUSIC5_16418
35@ = Car.Create(412, 2473.5, -1655.2, 12.1)
Car.SetHeading(35@, 267.2)
Car.LockDoors(35@, CarLock.LockoutPlayerOnly)
Car.SetHeavy(35@, True)
Car.SetProofs(35@, True, True, False, False, False)

:MUSIC5_10238
World.ClearArea(2480.7, -1729.2, 12.2, 5.0, True)
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16418
46@ = Car.Create(566, 2480.7, -1729.2, 12.2)
Car.SetHeading(46@, 105.1)
Car.LockDoors(46@, CarLock.LockoutPlayerOnly)
World.ClearArea(2481.2, -1718.2, 12.5, 5.0, True)
47@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2481.2, -1718.2, 12.5)
Char.SetAccuracy(47@, 104@)
Char.SetHeading(47@, 353.4)
Char.GiveWeapon(47@, WeaponType.Tec9, 3000)
Char.SetStayInSamePlace(47@, True)
Char.SetDecisionMaker(47@, 146@)
150@ = Group.Create(DefaultTaskAllocator.StandStill)
Group.SetSeparationRange(150@, 300.0)
Group.SetDecisionMaker(150@, 151@)
Group.SetLeader(150@, 47@)
66@ = Blip.AddForChar(47@)
Blip.ChangeScale(66@, 1)
144@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2481.2, -1688.1, 12.5, MoveState.Run, -1)
Task.ToggleDuck(-1, True)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.ShootAtCoord(-1, 2480.2, -1680.1, 12.5, 10000)
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(47@, 144@)
Sequence.Clear(144@)
World.ClearArea(2482.1, -1720.2, 12.5, 5.0, True)
48@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2482.1, -1720.2, 12.5)
Char.SetAccuracy(48@, 104@)
Char.SetHeading(48@, 352.8)
Char.GiveWeapon(48@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(48@, 146@)
Group.SetMember(150@, 48@)
67@ = Blip.AddForChar(48@)
Blip.ChangeScale(67@, 1)
144@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2482.1, -1689.8, 12.5, MoveState.Run, -1)
Task.ShootAtCoord(-1, 2480.2, -1680.1, 13.5, 4000)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(144@)
Char.PerformSequence(48@, 144@)
Sequence.Clear(144@)
World.ClearArea(2481.0, -1718.2, 12.5, 5.0, True)
49@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2481.0, -1718.2, 12.5)
Char.SetAccuracy(49@, 104@)
Char.SetHeading(49@, 352.8)
Char.GiveWeapon(49@, WeaponType.Tec9, 3000)
Char.SetStayInSamePlace(49@, True)
Char.SetDecisionMaker(49@, 146@)
Group.SetMember(150@, 49@)
68@ = Blip.AddForChar(49@)
Blip.ChangeScale(68@, 1)
144@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2481.0, -1687.8, 12.5, MoveState.Run, -1)
Task.ToggleDuck(-1, True)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.ShootAtCoord(-1, 2480.2, -1680.1, 13.5, 10000)
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(49@, 144@)
Sequence.Clear(144@)
World.ClearArea(2480.3, -1719.2, 12.5, 5.0, True)
50@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2480.3, -1719.2, 12.5)
Char.SetAccuracy(50@, 104@)
Char.SetHeading(50@, 352.8)
Char.GiveWeapon(50@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(50@, 146@)
Group.SetMember(150@, 50@)
69@ = Blip.AddForChar(50@)
Blip.ChangeScale(69@, 1)
144@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2480.3, -1689.7, 12.5, MoveState.Run, -1)
Task.ToggleDuck(-1, True)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.ShootAtCoord(-1, 2480.2, -1680.1, 13.5, 4000)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(144@)
Char.PerformSequence(50@, 144@)
Sequence.Clear(144@)
Streaming.LoadSceneInDirection(2478.8, -1708.1, 12.9, 190.0)
Camera.SetFixedPosition(2481.0, -1682.5, 12.9, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2487.4, -1700.0, 16.7, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:MUSIC5_11319
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_11343
wait 0
goto @MUSIC5_11319

:MUSIC5_11343
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_11375
goto @MUSIC5_15844

:MUSIC5_11375
105@ = 2
107@ = 6
108@ = 7
gosub @MUSIC5_17649
82@ = 1
skip_cutscene_start_internal @MUSIC5_11475
TIMERA = 0
81@ = 1

:MUSIC5_11431
if 
  81@ == 1
goto_if_false @MUSIC5_13451
if 
  TIMERA > 3000
goto_if_false @MUSIC5_13451
82@ = 0

:MUSIC5_11475
skip_cutscene_end 
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_11509
goto @MUSIC5_15844

:MUSIC5_11509
if 
  82@ == 1
goto_if_false @MUSIC5_11544
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
105@ = 0

:MUSIC5_11544
Camera.DoFade(500, Fade.Out)

:MUSIC5_11551
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_11575
wait 0
goto @MUSIC5_11551

:MUSIC5_11575
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_11607
goto @MUSIC5_15844

:MUSIC5_11607
Char.ClearTasksImmediately($scplayer)
Char.SetHeading($scplayer, 215.5)
if 
  not Char.IsDead($sweet)
goto_if_false @MUSIC5_11770
Char.ClearTasksImmediately($sweet)
World.ClearArea(2472.5, -1666.2, 12.3, 1.0, True)
Char.SetCoordinates($sweet, 2472.5, -1666.2, 12.3)
Char.SetHeading($sweet, 234.4)
Char.SetStayInSamePlace($sweet, False)
144@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 146@)
Task.ToggleDuck(-1, False)
Task.GoStraightToCoord(-1, 2476.1, -1673.4, 12.5, MoveState.Walk, -1)
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence($sweet, 144@)
Sequence.Clear(144@)

:MUSIC5_11770
if 
  not Char.IsDead(63@)
goto_if_false @MUSIC5_11864
Char.ClearTasksImmediately(63@)
Char.SetStayInSamePlace(63@, False)
144@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 146@)
Task.ToggleDuck(-1, False)
Task.GoStraightToCoord(-1, 2478.2, -1673.7, 12.5, MoveState.Run, -1)
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(63@, 144@)
Sequence.Clear(144@)

:MUSIC5_11864
if 
  not Char.IsDead(36@)
goto_if_false @MUSIC5_11958
Char.ClearTasksImmediately(36@)
Char.SetStayInSamePlace(36@, False)
144@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 146@)
Task.ToggleDuck(-1, False)
Task.GoStraightToCoord(-1, 2481.2, -1682.9, 12.5, MoveState.Run, -1)
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(36@, 144@)
Sequence.Clear(144@)

:MUSIC5_11958
if 
  not Char.IsDead(37@)
goto_if_false @MUSIC5_12052
Char.ClearTasksImmediately(37@)
Char.SetStayInSamePlace(37@, False)
144@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 146@)
Task.ToggleDuck(-1, False)
Task.GoStraightToCoord(-1, 2482.2, -1682.9, 12.5, MoveState.Run, -1)
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(37@, 144@)
Sequence.Clear(144@)

:MUSIC5_12052
DecisionMakerChar.AddEventResponse(145@, 13, 917, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerGroup.AddEventResponse(151@, 15, 1502, 0.0, 100.0, 0.0, 0.0, False, True)
if 
  not Char.IsDead(47@)
goto_if_false @MUSIC5_12171
Char.ClearTasksImmediately(47@)
144@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(47@, 144@)
Sequence.Clear(144@)

:MUSIC5_12171
if 
  not Char.IsDead(48@)
goto_if_false @MUSIC5_12222
Char.ClearTasksImmediately(48@)
144@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(48@, 144@)
Sequence.Clear(144@)

:MUSIC5_12222
if 
  not Char.IsDead(49@)
goto_if_false @MUSIC5_12273
Char.ClearTasksImmediately(49@)
144@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(49@, 144@)
Sequence.Clear(144@)

:MUSIC5_12273
if 
  not Char.IsDead(50@)
goto_if_false @MUSIC5_12378
Char.ClearTasksImmediately(50@)
World.ClearArea(2489.6, -1683.3, 12.5, 1.0, True)
Char.SetCoordinates(50@, 2489.6, -1683.3, 12.5)
Char.SetHeading(50@, 45.5)
144@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 145@)
Sequence.Close(144@)
Char.PerformSequence(50@, 144@)
Sequence.Clear(144@)

:MUSIC5_12378
World.ClearArea(2469.4, -1708.9, 12.5, 5.0, True)
51@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2469.4, -1708.9, 12.5)
Char.SetAccuracy(51@, 104@)
Char.SetHeading(51@, 352.8)
Char.GiveWeapon(51@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(51@, 145@)
Group.SetMember(150@, 51@)
70@ = Blip.AddForChar(51@)
Blip.ChangeScale(70@, 1)
144@ = Sequence.Open()
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(144@)
Char.PerformSequence(51@, 144@)
Sequence.Clear(144@)
World.ClearArea(2467.1, -1710.8, 12.5, 5.0, True)
52@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2467.1, -1710.8, 12.5)
Char.SetAccuracy(52@, 104@)
Char.SetHeading(52@, 352.8)
Char.GiveWeapon(52@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(52@, 145@)
Group.SetMember(150@, 52@)
71@ = Blip.AddForChar(52@)
Blip.ChangeScale(71@, 1)
144@ = Sequence.Open()
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(144@)
Char.PerformSequence(52@, 144@)
Sequence.Clear(144@)
World.ClearArea(2529.3, -1691.6, 12.5, 5.0, True)
53@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2529.3, -1691.6, 12.5)
Char.SetAccuracy(53@, 104@)
Char.SetHeading(53@, 352.8)
Char.GiveWeapon(53@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(53@, 145@)
Group.SetMember(150@, 53@)
72@ = Blip.AddForChar(53@)
Blip.ChangeScale(72@, 1)
144@ = Sequence.Open()
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(144@)
Char.PerformSequence(53@, 144@)
Sequence.Clear(144@)
World.ClearArea(2529.7, -1690.1, 12.5, 5.0, True)
54@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2529.7, -1690.1, 12.5)
Char.SetAccuracy(54@, 104@)
Char.SetHeading(54@, 352.8)
Char.GiveWeapon(54@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(54@, 145@)
Group.SetMember(150@, 54@)
73@ = Blip.AddForChar(54@)
Blip.ChangeScale(73@, 1)
144@ = Sequence.Open()
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(144@)
Char.PerformSequence(54@, 144@)
Sequence.Clear(144@)
World.ClearArea(2478.7, -1645.7, 12.5, 5.0, True)
55@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2478.7, -1645.7, 12.5)
Char.SetAccuracy(55@, 104@)
Char.SetHeading(55@, 180.0)
Char.GiveWeapon(55@, WeaponType.Tec9, 3000)
Char.SetStayInSamePlace(55@, True)
Char.SetDecisionMaker(55@, 146@)
World.ClearArea(2477.7, -1645.7, 12.5, 5.0, True)
56@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2477.7, -1645.7, 12.5)
Char.SetAccuracy(56@, 104@)
Char.SetHeading(56@, 180.0)
Char.GiveWeapon(56@, WeaponType.Tec9, 3000)
Char.SetStayInSamePlace(56@, True)
Char.SetDecisionMaker(56@, 146@)
World.ClearArea(2478.7, -1644.7, 12.5, 5.0, True)
57@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2478.7, -1644.7, 12.5)
Char.SetAccuracy(57@, 104@)
Char.SetHeading(57@, 180.0)
Char.GiveWeapon(57@, WeaponType.Tec9, 3000)
Char.SetStayInSamePlace(57@, True)
Char.SetDecisionMaker(57@, 146@)
World.ClearArea(2477.7, -1644.7, 12.5, 5.0, True)
58@ = Char.Create(PedType.Mission1, 89@(95@,6i), 2477.7, -1644.7, 12.5)
Char.SetAccuracy(58@, 104@)
Char.SetHeading(58@, 180.0)
Char.GiveWeapon(58@, WeaponType.Tec9, 3000)
Char.SetStayInSamePlace(58@, True)
Char.SetDecisionMaker(58@, 146@)
Game.ShutAllCharsUp(False)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Text.Print('STP4_04', 11000, 1)
Camera.DoFade(500, Fade.In)

:MUSIC5_13381
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_13405
wait 0
goto @MUSIC5_13381

:MUSIC5_13405
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_13437
goto @MUSIC5_15844

:MUSIC5_13437
TIMERA = 0
81@ = 2

:MUSIC5_13451
if 
  81@ == 2
goto_if_false @MUSIC5_14544
if 
  96@ == 0
goto_if_false @MUSIC5_13813
if 
  Char.IsDead(47@)
goto_if_false @MUSIC5_13574
if 
  Char.IsDead(48@)
goto_if_false @MUSIC5_13574
if 
  Char.IsDead(49@)
goto_if_false @MUSIC5_13574
if 
  Char.IsDead(54@)
goto_if_false @MUSIC5_13574
if 
  Char.IsDead(55@)
goto_if_false @MUSIC5_13574
96@ = 1

:MUSIC5_13574
if 
  TIMERA > 10000
goto_if_false @MUSIC5_13600
96@ = 1

:MUSIC5_13600
if 
  Char.LocateAnyMeans2D($scplayer, 2478.5, -1646.2, 7.0, 7.0, False)
goto_if_false @MUSIC5_13645
96@ = 1

:MUSIC5_13645
if 
  not Char.IsDead(55@)
goto_if_false @MUSIC5_13687
if 
  Char.HasBeenDamagedByChar(55@, $scplayer)
goto_if_false @MUSIC5_13687
96@ = 1

:MUSIC5_13687
if 
  not Char.IsDead(56@)
goto_if_false @MUSIC5_13729
if 
  Char.HasBeenDamagedByChar(56@, $scplayer)
goto_if_false @MUSIC5_13729
96@ = 1

:MUSIC5_13729
if 
  not Char.IsDead(57@)
goto_if_false @MUSIC5_13771
if 
  Char.HasBeenDamagedByChar(57@, $scplayer)
goto_if_false @MUSIC5_13771
96@ = 1

:MUSIC5_13771
if 
  not Char.IsDead(58@)
goto_if_false @MUSIC5_13813
if 
  Char.HasBeenDamagedByChar(58@, $scplayer)
goto_if_false @MUSIC5_13813
96@ = 1

:MUSIC5_13813
if 
  96@ == 1
goto_if_false @MUSIC5_14209
if 
  not Char.IsDead(55@)
goto_if_false @MUSIC5_13918
149@ = Group.Create(DefaultTaskAllocator.StandStill)
Group.SetSeparationRange(149@, 300.0)
Char.SetDecisionMaker(55@, 145@)
Group.SetDecisionMaker(149@, 151@)
Group.SetLeader(149@, 55@)
74@ = Blip.AddForChar(55@)
Blip.ChangeScale(74@, 1)
Char.SetStayInSamePlace(55@, False)
Task.KillCharOnFoot(55@, $scplayer)

:MUSIC5_13918
if 
  not Char.IsDead(56@)
goto_if_false @MUSIC5_13980
Char.SetDecisionMaker(56@, 145@)
Group.SetMember(149@, 56@)
75@ = Blip.AddForChar(56@)
Blip.ChangeScale(75@, 1)
Char.SetStayInSamePlace(56@, False)
Task.KillCharOnFoot(56@, $scplayer)

:MUSIC5_13980
if 
  not Char.IsDead(57@)
goto_if_false @MUSIC5_14110
Char.SetDecisionMaker(57@, 145@)
Group.SetMember(149@, 57@)
76@ = Blip.AddForChar(57@)
Blip.ChangeScale(76@, 1)
Char.SetStayInSamePlace(57@, False)
144@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2477.3, -1651.4, 12.5, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 2464.0, -1653.4, 12.5, MoveState.Run, -1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(144@)
Char.PerformSequence(57@, 144@)
Sequence.Clear(144@)

:MUSIC5_14110
if 
  not Char.IsDead(58@)
goto_if_false @MUSIC5_14172
Char.SetDecisionMaker(58@, 145@)
Group.SetMember(149@, 58@)
77@ = Blip.AddForChar(58@)
Blip.ChangeScale(77@, 1)
Char.SetStayInSamePlace(58@, False)
Task.KillCharOnFoot(58@, $sweet)

:MUSIC5_14172
Text.ClearPrints
105@ = 2
107@ = 7
108@ = 8
gosub @MUSIC5_17649
96@ = 2

:MUSIC5_14209
if 
  Char.IsDead(47@)
goto_if_false @MUSIC5_14544
if 
  Char.IsDead(48@)
goto_if_false @MUSIC5_14544
if 
  Char.IsDead(49@)
goto_if_false @MUSIC5_14544
if 
  Char.IsDead(50@)
goto_if_false @MUSIC5_14544
if 
  Char.IsDead(51@)
goto_if_false @MUSIC5_14544
if 
  Char.IsDead(52@)
goto_if_false @MUSIC5_14544
if 
  Char.IsDead(53@)
goto_if_false @MUSIC5_14544
if 
  Char.IsDead(54@)
goto_if_false @MUSIC5_14544
if 
  Char.IsDead(55@)
goto_if_false @MUSIC5_14544
if 
  Char.IsDead(56@)
goto_if_false @MUSIC5_14544
if 
  Char.IsDead(57@)
goto_if_false @MUSIC5_14544
if 
  Char.IsDead(58@)
goto_if_false @MUSIC5_14544
Char.MarkAsNoLongerNeeded(47@)
Char.MarkAsNoLongerNeeded(48@)
Char.MarkAsNoLongerNeeded(49@)
Char.MarkAsNoLongerNeeded(50@)
Char.MarkAsNoLongerNeeded(51@)
Char.MarkAsNoLongerNeeded(52@)
Char.MarkAsNoLongerNeeded(53@)
Char.MarkAsNoLongerNeeded(54@)
Char.MarkAsNoLongerNeeded(55@)
Char.MarkAsNoLongerNeeded(56@)
Char.MarkAsNoLongerNeeded(57@)
Char.MarkAsNoLongerNeeded(58@)
Blip.Remove(66@)
Blip.Remove(67@)
Blip.Remove(68@)
Blip.Remove(69@)
Blip.Remove(70@)
Blip.Remove(71@)
Blip.Remove(72@)
Blip.Remove(73@)
Blip.Remove(74@)
Blip.Remove(75@)
Blip.Remove(76@)
Blip.Remove(77@)
Text.ClearPrints
TIMERA = 0
81@ = 0
80@ = 4

:MUSIC5_14544
if 
  12 > 88@
goto_if_false @MUSIC5_14605
if 
  Char.IsDead(47@(88@,14i))
goto_if_false @MUSIC5_14591
Blip.Remove(66@(88@,14i))

:MUSIC5_14591
88@ += 1
goto @MUSIC5_14612

:MUSIC5_14605
88@ = 0

:MUSIC5_14612
if 
  80@ == 4
goto_if_false @MUSIC5_15767
ENTEXT_63()
if 
  $player_is_completely_safe == 1
goto_if_false @MUSIC5_15424
if 
  81@ == 0
goto_if_false @MUSIC5_15424
if 
  TIMERA > 2000
goto_if_false @MUSIC5_15424
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:MUSIC5_14701
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_14725
wait 0
goto @MUSIC5_14701

:MUSIC5_14725
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_14757
goto @MUSIC5_15844

:MUSIC5_14757
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
105@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.ShutAllCharsUp(True)
World.ClearArea(2484.9, -1649.2, 12.5, 160.0, True)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 2484.2, -1666.2, 12.3)
Char.SetHeading($scplayer, 336.7)
144@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2486.7, -1650.1, 12.3, MoveState.Walk, -1)
Task.Pause(-1, 1000)
Task.GoStraightToCoord(-1, 2486.7, -1646.0, 12.5, MoveState.Walk, -1)
Sequence.Close(144@)
Char.PerformSequence($scplayer, 144@)
Sequence.Clear(144@)
if 
  not Char.IsDead($sweet)
goto_if_false @MUSIC5_15037
Char.ClearTasksImmediately($sweet)
Char.SetCoordinates($sweet, 2487.2, -1666.1, 12.3)
Char.SetHeading($sweet, 4.3)
144@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2486.7, -1645.1, 12.3, MoveState.Walk, -1)
Task.AchieveHeading(-1, 178.8)
Sequence.Close(144@)
Char.PerformSequence($sweet, 144@)
Sequence.Clear(144@)

:MUSIC5_15037
if 
  not Char.IsDead(63@)
goto_if_false @MUSIC5_15088
Char.ClearTasksImmediately(63@)
Char.SetCoordinates(63@, 2488.9, -1649.0, 12.5)
Char.SetHeading(63@, 177.2)

:MUSIC5_15088
if 
  not Char.IsDead(36@)
goto_if_false @MUSIC5_15185
Char.ClearTasksImmediately(36@)
Char.SetCoordinates(36@, 2484.2, -1669.1, 12.3)
Char.SetHeading(36@, 177.2)
144@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2488.4, -1650.8, 12.3, MoveState.Walk, -1)
Sequence.Close(144@)
Char.PerformSequence(36@, 144@)
Sequence.Clear(144@)

:MUSIC5_15185
if 
  not Char.IsDead(37@)
goto_if_false @MUSIC5_15282
Char.ClearTasksImmediately(37@)
Char.SetCoordinates(37@, 2485.2, -1669.1, 12.3)
Char.SetHeading(37@, 177.2)
144@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2489.4, -1650.7, 12.3, MoveState.Walk, -1)
Sequence.Close(144@)
Char.PerformSequence(37@, 144@)
Sequence.Clear(144@)

:MUSIC5_15282
105@ = 3
107@ = 0
gosub @MUSIC5_17649
Camera.SetFixedPosition(2480.7, -1660.5, 13.1, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2498.7, -1656.6, 17.9, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:MUSIC5_15361
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_15385
wait 0
goto @MUSIC5_15361

:MUSIC5_15385
gosub @MUSIC5_16375
if 
  83@ == 1
goto_if_false @MUSIC5_15417
goto @MUSIC5_15844

:MUSIC5_15417
81@ = 1

:MUSIC5_15424
if 
  81@ == 1
goto_if_false @MUSIC5_15518
if 
  107@ == 4
goto_if_false @MUSIC5_15518
Camera.SetFixedPosition(2471.554, -1656.167, 18.379, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2472.425, -1655.676, 18.402, SwitchType.JumpCut)
81@ = 2

:MUSIC5_15518
if 
  81@ == 2
goto_if_false @MUSIC5_15568
if 
  105@ == 0
goto_if_false @MUSIC5_15568
TIMERA = 0
81@ = 3

:MUSIC5_15568
if 
  81@ == 3
goto_if_false @MUSIC5_15767
if 
  TIMERA > 1000
goto_if_false @MUSIC5_15767
Camera.DoFade(2500, Fade.Out)

:MUSIC5_15612
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_15636
wait 0
goto @MUSIC5_15612

:MUSIC5_15636
100@, 101@ = Clock.GetTimeOfDay()
100@ += 6
Clock.SetTimeOfDay(100@, 101@)
Char.Delete($sweet)
Streaming.UnloadSpecialCharacter(1)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 2486.6, -1649.9, 12.5)
Char.SetHeading($scplayer, 177.8)
Game.ShutAllCharsUp(False)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
wait 2000
Camera.DoFade(2500, Fade.In)

:MUSIC5_15736
if 
  Camera.GetFadingStatus
goto_if_false @MUSIC5_15760
wait 0
goto @MUSIC5_15736

:MUSIC5_15760
goto @MUSIC5_15862

:MUSIC5_15767
if 
  not Char.LocateAnyMeans2D($scplayer, 2484.9, -1663.5, 300.0, 300.0, False)
goto_if_false @MUSIC5_15830
Text.ClearPrints
Text.PrintNow('STP4_06', 7000, 1)
goto @MUSIC5_15844

:MUSIC5_15830
gosub @MUSIC5_18109
goto @MUSIC5_3036

:MUSIC5_15844
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:MUSIC5_15862
if 
  $strap4_mission_passed_once_flag == 0
goto_if_false @MUSIC5_15946
Blip.Remove($strap_contact_blip)
$strap_contact_blip = Blip.AddSpriteForContactPoint($strap2X, $strap2Y, $strap2Z, $strap_blip_icon)
Camera.DoFade(500, Fade.In)
Text.PrintNow('STP4_07', 11000, 1)
$flag_strap_mission_counter += 1
$strap4_mission_passed_once_flag = 1
goto @MUSIC5_16011

:MUSIC5_15946
Stat.SetInt(StatId.PassedStrap4, 1)
Text.PrintWithNumberBig('M_PASSR', 10, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(10)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.RegisterMissionPassed('STRAP_4')
Stat.PlayerMadeProgress(1)
$flag_strap_mission_counter += 1
Blip.Remove($strap_contact_blip)

:MUSIC5_16011
return 

:MUSIC5_16013
if 
  is_var_text_label_empty s$shop_name
goto_if_false @MUSIC5_16031
Camera.RestoreJumpcut

:MUSIC5_16031
if 
  not Car.IsDead(34@)
goto_if_false @MUSIC5_16076
Car.LockDoors(34@, CarLock.Unlocked)
Car.SetProofs(34@, False, False, False, False, False)
Car.SetHeavy(34@, False)

:MUSIC5_16076
if 
  not Car.IsDead(35@)
goto_if_false @MUSIC5_16121
Car.LockDoors(35@, CarLock.Unlocked)
Car.SetProofs(35@, False, False, False, False, False)
Car.SetHeavy(35@, False)

:MUSIC5_16121
if 
  not Car.IsDead(61@)
goto_if_false @MUSIC5_16166
Car.LockDoors(61@, CarLock.Unlocked)
Car.SetProofs(61@, False, False, False, False, False)
Car.SetHeavy(61@, False)

:MUSIC5_16166
Blip.Remove(66@)
Blip.Remove(67@)
Blip.Remove(68@)
Blip.Remove(69@)
Blip.Remove(70@)
Blip.Remove(71@)
Blip.Remove(72@)
Blip.Remove(73@)
Blip.Remove(74@)
Blip.Remove(75@)
Blip.Remove(76@)
Blip.Remove(77@)
Blip.Remove(78@)
Blip.Remove(79@)
$LA_hub_activity = 0
if 
  not Char.IsDead($scplayer)
goto_if_false @MUSIC5_16266
Char.ShutUpForScriptedSpeech($scplayer, False)

:MUSIC5_16266
Game.ShutAllCharsUp(False)
Char.RemoveElegantly($sweet)
Char.RemoveElegantly($ryder)
Streaming.MarkModelAsNoLongerNeeded(106)
Streaming.MarkModelAsNoLongerNeeded(107)
Streaming.MarkModelAsNoLongerNeeded(103)
Streaming.MarkModelAsNoLongerNeeded(104)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(566)
Streaming.MarkModelAsNoLongerNeeded(412)
Streaming.MarkModelAsNoLongerNeeded(344)
Streaming.MarkModelAsNoLongerNeeded(372)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
CarGenerator.Switch($gen_car5, 101)
CarGenerator.Switch($gen_car6, 101)
CarGenerator.Switch($gen_car9, 101)
Pickup.Remove(62@)
Game.EnableAmbientCrime(True)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

:MUSIC5_16375
if 
  Char.IsDead($sweet)
goto_if_false @MUSIC5_16416
Text.ClearPrints
Text.PrintNow('STP4_05', 7000, 1)
83@ = 1

:MUSIC5_16416
return 

:MUSIC5_16418
98@ = Math.RandomIntInRange(1, 37)
if 
  98@ == 1
goto_if_false @MUSIC5_16460
Car.CustomPlateForNextCar(99@, "GOT_M00_")

:MUSIC5_16460
if 
  98@ == 2
goto_if_false @MUSIC5_16493
Car.CustomPlateForNextCar(99@, "M00TV_4U")

:MUSIC5_16493
if 
  98@ == 3
goto_if_false @MUSIC5_16526
Car.CustomPlateForNextCar(99@, "MATHEW_2")

:MUSIC5_16526
if 
  98@ == 4
goto_if_false @MUSIC5_16559
Car.CustomPlateForNextCar(99@, "D4_DEW0R")

:MUSIC5_16559
if 
  98@ == 5
goto_if_false @MUSIC5_16592
Car.CustomPlateForNextCar(99@, "D0DE_777")

:MUSIC5_16592
if 
  98@ == 6
goto_if_false @MUSIC5_16625
Car.CustomPlateForNextCar(99@, "DAM0_666")

:MUSIC5_16625
if 
  98@ == 7
goto_if_false @MUSIC5_16658
Car.CustomPlateForNextCar(99@, "C0NEY_88")

:MUSIC5_16658
if 
  98@ == 8
goto_if_false @MUSIC5_16691
Car.CustomPlateForNextCar(99@, "PRE4CHER")

:MUSIC5_16691
if 
  98@ == 9
goto_if_false @MUSIC5_16724
Car.CustomPlateForNextCar(99@, "DBP_4NDY")

:MUSIC5_16724
if 
  98@ == 10
goto_if_false @MUSIC5_16757
Car.CustomPlateForNextCar(99@, "EV1L_SLY")

:MUSIC5_16757
if 
  98@ == 11
goto_if_false @MUSIC5_16790
Car.CustomPlateForNextCar(99@, "N1_R4V3N")

:MUSIC5_16790
if 
  98@ == 12
goto_if_false @MUSIC5_16823
Car.CustomPlateForNextCar(99@, "D1VX_Z00")

:MUSIC5_16823
if 
  98@ == 13
goto_if_false @MUSIC5_16855
Car.CustomPlateForNextCar(99@, "MR_B3NN")

:MUSIC5_16855
if 
  98@ == 14
goto_if_false @MUSIC5_16888
Car.CustomPlateForNextCar(99@, "R3D_R4SP")

:MUSIC5_16888
if 
  98@ == 15
goto_if_false @MUSIC5_16921
Car.CustomPlateForNextCar(99@, "LA_B0MBA")

:MUSIC5_16921
if 
  98@ == 16
goto_if_false @MUSIC5_16954
Car.CustomPlateForNextCar(99@, "L3337_0G")

:MUSIC5_16954
if 
  98@ == 17
goto_if_false @MUSIC5_16987
Car.CustomPlateForNextCar(99@, "BUDD4H_X")

:MUSIC5_16987
if 
  98@ == 18
goto_if_false @MUSIC5_17020
Car.CustomPlateForNextCar(99@, "T3H_BUCK")

:MUSIC5_17020
if 
  98@ == 19
goto_if_false @MUSIC5_17053
Car.CustomPlateForNextCar(99@, "CHUNKY_1")

:MUSIC5_17053
if 
  98@ == 20
goto_if_false @MUSIC5_17086
Car.CustomPlateForNextCar(99@, "EV1L_BNZ")

:MUSIC5_17086
if 
  98@ == 21
goto_if_false @MUSIC5_17119
Car.CustomPlateForNextCar(99@, "S4ND_M4N")

:MUSIC5_17119
if 
  98@ == 22
goto_if_false @MUSIC5_17152
Car.CustomPlateForNextCar(99@, "RKK_DBP1")

:MUSIC5_17152
if 
  98@ == 23
goto_if_false @MUSIC5_17185
Car.CustomPlateForNextCar(99@, "RE1_K0KU")

:MUSIC5_17185
if 
  98@ == 24
goto_if_false @MUSIC5_17218
Car.CustomPlateForNextCar(99@, "S3XY_JUD")

:MUSIC5_17218
if 
  98@ == 25
goto_if_false @MUSIC5_17251
Car.CustomPlateForNextCar(99@, "SUNRA_93")

:MUSIC5_17251
if 
  98@ == 26
goto_if_false @MUSIC5_17284
Car.CustomPlateForNextCar(99@, "UG_FUX69")

:MUSIC5_17284
if 
  98@ == 27
goto_if_false @MUSIC5_17317
Car.CustomPlateForNextCar(99@, "LI0N_CUM")

:MUSIC5_17317
if 
  98@ == 28
goto_if_false @MUSIC5_17350
Car.CustomPlateForNextCar(99@, "RKK_PWND")

:MUSIC5_17350
if 
  98@ == 29
goto_if_false @MUSIC5_17383
Car.CustomPlateForNextCar(99@, "HAZE_B0B")

:MUSIC5_17383
if 
  98@ == 30
goto_if_false @MUSIC5_17416
Car.CustomPlateForNextCar(99@, "T3H_FLUF")

:MUSIC5_17416
if 
  98@ == 31
goto_if_false @MUSIC5_17449
Car.CustomPlateForNextCar(99@, "BM_4NDY_")

:MUSIC5_17449
if 
  98@ == 32
goto_if_false @MUSIC5_17482
Car.CustomPlateForNextCar(99@, "BM_D34N_")

:MUSIC5_17482
if 
  98@ == 33
goto_if_false @MUSIC5_17515
Car.CustomPlateForNextCar(99@, "BM_L4C3Y")

:MUSIC5_17515
if 
  98@ == 34
goto_if_false @MUSIC5_17548
Car.CustomPlateForNextCar(99@, "BM_D3V__")

:MUSIC5_17548
if 
  98@ == 35
goto_if_false @MUSIC5_17581
Car.CustomPlateForNextCar(99@, "NU_SK00L")

:MUSIC5_17581
if 
  98@ == 36
goto_if_false @MUSIC5_17614
Car.CustomPlateForNextCar(99@, "G4L_AVET")

:MUSIC5_17614
if 
  98@ == 37
goto_if_false @MUSIC5_17647
Car.CustomPlateForNextCar(99@, "M0J0_J0J")

:MUSIC5_17647
return 

:MUSIC5_17649
if 
  105@ == 1
goto_if_false @MUSIC5_17741
set_lvar_text_label 109@s = 'LOC4_CA'
set_lvar_text_label 111@s = 'LOC4_CB'
set_lvar_text_label 113@s = 'LOC4_CC'
set_lvar_int_to_constant 127@ = 13200
set_lvar_int_to_constant 128@ = 13201
set_lvar_int_to_constant 129@ = 13202
set_lvar_int_to_lvar_int 136@ = 108@

:MUSIC5_17741
if 
  105@ == 2
goto_if_false @MUSIC5_17921
set_lvar_text_label 109@s = 'LOC4_AA'
set_lvar_text_label 111@s = 'LOC4_AB'
set_lvar_text_label 113@s = 'LOC4_AC'
set_lvar_text_label 115@s = 'LOC4_AE'
set_lvar_text_label 119@s = 'LOC4_AF'
set_lvar_text_label 121@s = 'LOC4_AG'
set_lvar_text_label 123@s = 'LOC4_AH'
set_lvar_int_to_constant 127@ = 13203
set_lvar_int_to_constant 128@ = 13204
set_lvar_int_to_constant 129@ = 13205
set_lvar_int_to_constant 130@ = 13207
set_lvar_int_to_constant 132@ = 13208
set_lvar_int_to_constant 133@ = 13209
set_lvar_int_to_constant 134@ = 13210
set_lvar_int_to_lvar_int 136@ = 108@

:MUSIC5_17921
if 
  105@ == 3
goto_if_false @MUSIC5_18078
set_lvar_text_label 109@s = 'LOC4_BA'
set_lvar_text_label 111@s = 'LOC4_BB'
set_lvar_text_label 113@s = 'LOC4_BC'
set_lvar_text_label 115@s = 'LOC4_BD'
set_lvar_text_label 117@s = 'LOC4_BE'
set_lvar_text_label 119@s = 'LOC4_BG'
set_lvar_int_to_constant 127@ = 13211
set_lvar_int_to_constant 128@ = 13215
set_lvar_int_to_constant 129@ = 13212
set_lvar_int_to_constant 130@ = 13216
set_lvar_int_to_constant 131@ = 13213
set_lvar_int_to_constant 132@ = 13217
136@ = 6

:MUSIC5_18078
set_lvar_int_to_lvar_int 139@ = 107@
137@ = 0
138@ = 0
140@ = 1
return 

:MUSIC5_18109
if 
  105@ == 2
goto_if_false @MUSIC5_18235
if 
  is_int_lvar_greater_than_int_lvar 136@ > 107@
goto_if_false @MUSIC5_18228
gosub @MUSIC5_18316
gosub @MUSIC5_18423
if 
  not Char.IsDead($sweet)
goto_if_false @MUSIC5_18190
gosub @MUSIC5_18577
goto @MUSIC5_18221

:MUSIC5_18190
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(109@(107@,9s))
137@ = 0
138@ = 0

:MUSIC5_18221
goto @MUSIC5_18235

:MUSIC5_18228
105@ = 0

:MUSIC5_18235
if or
  105@ == 1
  105@ == 3
goto_if_false @MUSIC5_18314
if 
  is_int_lvar_greater_than_int_lvar 136@ > 107@
goto_if_false @MUSIC5_18307
gosub @MUSIC5_18316
gosub @MUSIC5_18423
gosub @MUSIC5_18577
goto @MUSIC5_18314

:MUSIC5_18307
105@ = 0

:MUSIC5_18314
return 

:MUSIC5_18316
if 
  is_int_lvar_greater_than_int_lvar 136@ > 139@
goto_if_false @MUSIC5_18421
if 
  137@ == 0
goto_if_false @MUSIC5_18378
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 127@(139@,9i))
139@ += 1
137@ = 1

:MUSIC5_18378
if 
  138@ == 0
goto_if_false @MUSIC5_18421
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 127@(139@,9i))
139@ += 1
138@ = 1

:MUSIC5_18421
return 

:MUSIC5_18423
if 
  140@ == 1
goto_if_false @MUSIC5_18499
if 
  137@ == 1
goto_if_false @MUSIC5_18499
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @MUSIC5_18499
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(109@(107@,9s), 4500, 1)
137@ = 2

:MUSIC5_18499
if 
  140@ == 2
goto_if_false @MUSIC5_18575
if 
  138@ == 1
goto_if_false @MUSIC5_18575
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @MUSIC5_18575
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow(109@(107@,9s), 4500, 1)
138@ = 2

:MUSIC5_18575
return 

:MUSIC5_18577
if 
  137@ == 2
goto_if_false @MUSIC5_18640
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @MUSIC5_18640
Text.ClearThisPrint(109@(107@,9s))
107@ += 1
140@ = 2
137@ = 0

:MUSIC5_18640
if 
  138@ == 2
goto_if_false @MUSIC5_18703
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @MUSIC5_18703
Text.ClearThisPrint(109@(107@,9s))
107@ += 1
140@ = 1
138@ = 0

:MUSIC5_18703
return 

//-------------Mission 35---------------
// Originally: Race Tournament / 8-track / Dirt Track

:CPRACE
gosub @CPRACE_112
if 
  has_deatharrest_been_executed 
goto_if_false @CPRACE_43
Text.PrintNow('RACES25', 5000, 1)
goto @CPRACE_103

:CPRACE_43
if or
  53@ == 0
  53@ == 3
goto_if_false @CPRACE_103
Camera.DoFade(2000, Fade.Out)
set_deatharrest_state 0

:CPRACE_79
if 
  Camera.GetFadingStatus
goto_if_false @CPRACE_103
wait 0
goto @CPRACE_79

:CPRACE_103
gosub @CPRACE_51271
terminate_this_script 

:CPRACE_112
$onmission = 1
$disable_mod_garage = 1
script_name 'CPRACE'
wait 0
World.DisableAllEntryExits(True)
Text.LoadMissionText('RACETOR')
if 
  $show_race_selection == 1
goto_if_false @CPRACE_372
set_lvar_int_to_constant 49@ = 1
53@ = 0
if 
  $menu_mode == 0
goto_if_false @CPRACE_220
50@ = 0
51@ = 8

:CPRACE_220
if 
  $menu_mode == 1
goto_if_false @CPRACE_252
50@ = 9
51@ = 14

:CPRACE_252
if 
  $menu_mode == 2
goto_if_false @CPRACE_284
50@ = 15
51@ = 18

:CPRACE_284
if 
  $menu_mode == 3
goto_if_false @CPRACE_316
50@ = 19
51@ = 24

:CPRACE_316
if or
  is_int_lvar_greater_than_int_var 50@ > $race_selection
  is_int_var_greater_than_int_lvar $race_selection > 51@
goto_if_false @CPRACE_351
set_var_int_to_lvar_int $race_selection = 50@

:CPRACE_351
52@ = 0
gosub @CPRACE_46973
goto @CPRACE_425

:CPRACE_372
set_lvar_int_to_constant 49@ = 2
if or
  $race_selection == 25
  $race_selection == 26
goto_if_false @CPRACE_418
53@ = 3
goto @CPRACE_425

:CPRACE_418
53@ = 2

:CPRACE_425
if 
  is_int_lvar_equal_to_constant 49@ == 10
goto_if_false @CPRACE_1239
54@ = Blip.AddForCoord($x, $y, $z)
449@ = Checkpoint.Create(205@, $x, $y, $z, $x, $y, $z, 6.0)

:CPRACE_488
363@(253@,16f) += 3.0
363@(253@,16f) = World.GetGroundZFor3DCoord(331@(253@,16f), 347@(253@,16f), 363@(253@,16f))
if 
  0.0 > 363@(253@,16f)
goto_if_false @CPRACE_591
if 
  Streaming.IsThisModelABoat(716@(253@,16i))
goto_if_false @CPRACE_591
363@(253@,16f) = 0.0

:CPRACE_591
379@(253@,16i) = Car.Create(716@(253@,16i), 331@(253@,16f), 347@(253@,16f), 363@(253@,16f))
Car.SetHeading(379@(253@,16i), $heading)
Car.SetAreaVisible(379@(253@,16i), 221@)
Car.LockDoors(379@(253@,16i), CarLock.LockoutPlayerOnly)
if 
  $race_selection == 25
goto_if_false @CPRACE_693
Car.SetHealth(379@(253@,16i), 2200)

:CPRACE_693
if 
  $race_selection == 26
goto_if_false @CPRACE_742
Car.SetHealth(379@(253@,16i), 10000)
Car.SetProofs(379@(253@,16i), False, False, False, True, False)

:CPRACE_742
if 
  221@ == 0
goto_if_false @CPRACE_933
Car.SetProofs(379@(253@,16i), False, True, False, False, False)
Car.SetStrong(379@(253@,16i), True)
Car.SetOnlyDamagedByPlayer(379@(253@,16i), True)
if 
  is_int_lvar_equal_to_constant 49@ == 6
goto_if_false @CPRACE_915

:CPRACE_819
if 
  Car.IsWaitingForWorldCollision(379@(253@,16i))
goto_if_false @CPRACE_915
wait 0
if 
  Car.IsDead(379@(253@,16i))
goto_if_false @CPRACE_908
if 
  $show_race_selection == 0
goto_if_false @CPRACE_906
if 
  $race_selection == 0
goto_if_false @CPRACE_906
$failed_cesar_race = 1

:CPRACE_906
return 

:CPRACE_908
goto @CPRACE_819

:CPRACE_915
Car.SetLoadCollisionFlag(379@(253@,16i), False)
goto @CPRACE_944

:CPRACE_933
Car.SetLoadCollisionFlag(379@(253@,16i), True)

:CPRACE_944
if 
  209@ <> -1
goto_if_false @CPRACE_985
Car.ChangeColor(379@(253@,16i), 209@(253@,6i), 215@(253@,6i))

:CPRACE_985
if 
  Streaming.IsThisModelABoat(716@(253@,16i))
goto_if_false @CPRACE_1037
Car.SetStraightLineDistance(379@(253@,16i), 40)
Boat.SetCruiseSpeed(379@(253@,16i), 50.0)
goto @CPRACE_1237

:CPRACE_1037
if 
  Streaming.IsThisModelAHeli(716@(253@,16i))
goto_if_false @CPRACE_1089
Car.FreezePosition(379@(253@,16i), True)
Car.SetForwardSpeed(379@(253@,16i), 10.0)
goto @CPRACE_1237

:CPRACE_1089
if 
  Streaming.IsThisModelAPlane(716@(253@,16i))
goto_if_false @CPRACE_1141
Car.FreezePosition(379@(253@,16i), True)
Car.SetForwardSpeed(379@(253@,16i), 10.0)
goto @CPRACE_1237

:CPRACE_1141
Car.SetWatertight(379@(253@,16i), True)
Car.SetCanBurstTires(379@(253@,16i), False)
if 
  221@ == 0
goto_if_false @CPRACE_1192
Car.SetUpsidedownNotDamaged(379@(253@,16i), True)

:CPRACE_1192
Car.SetStraightLineDistance(379@(253@,16i), 5)
Car.SetDrivingStyle(379@(253@,16i), DrivingMode.AvoidCars)
Car.SetCruiseSpeed(379@(253@,16i), 50.0)
Car.SetIdle(379@(253@,16i))

:CPRACE_1237
return 

:CPRACE_1239
$tripskip_s2flag = 70.3919
$6916 = 154.6278
$6930 = 0.6617
$6944 = 2.5845
$y_hud_pos = 203.8119
$x_hud_scale = 0.7208
$y_hud_scale = 2.5114
$6918 = 228.9919
$6932 = 0.7377
$6946 = 2.2364
$6919 = 279.6367
$6921 = 333.4643
$6922 = 358.6443
$6923 = 25.18
55@ = 2357.239
56@ = 1321.193
57@ = 3300.968
58@ = 3646.799
59@ = 3880.677
60@ = 4216.273
61@ = 8410.458
62@ = 4817.636
63@ = 4817.636
64@ = 3203.229
65@ = 3265.028
66@ = 1901.285
67@ = 2644.297
68@ = 8372.679
69@ = 10760.5
70@ = 7806.103
71@ = 4307.65
72@ = 4696.661
73@ = 5960.28
74@ = 6826.647
75@ = 12299.14
76@ = 17384.62
77@ = 4922.472
78@ = 4398.5
79@ = 4970.742
80@ = 0.0
81@ = 0.0
82@ = 0.0
83@ = 0.0
84@ = 0.0
set_lvar_text_label 85@s = 'RACE00'
set_lvar_text_label 87@s = 'RACE01'
set_lvar_text_label 89@s = 'RACE02'
set_lvar_text_label 91@s = 'RACE03'
set_lvar_text_label 93@s = 'RACE04'
set_lvar_text_label 95@s = 'RACE05'
set_lvar_text_label 97@s = 'RACE06'
set_lvar_text_label 99@s = 'RACE07'
set_lvar_text_label 101@s = 'RACE08'
set_lvar_text_label 103@s = 'RACE09'
set_lvar_text_label 105@s = 'RACE10'
set_lvar_text_label 107@s = 'RACE11'
set_lvar_text_label 109@s = 'RACE12'
set_lvar_text_label 111@s = 'RACE13'
set_lvar_text_label 113@s = 'RACE14'
set_lvar_text_label 115@s = 'RACE15'
set_lvar_text_label 117@s = 'RACE16'
set_lvar_text_label 119@s = 'RACE17'
set_lvar_text_label 121@s = 'RACE18'
set_lvar_text_label 123@s = 'RACE19'
set_lvar_text_label 125@s = 'RACE20'
set_lvar_text_label 127@s = 'RACE21'
set_lvar_text_label 129@s = 'RACE22'
set_lvar_text_label 131@s = 'RACE23'
set_lvar_text_label 133@s = 'RACE24'
set_lvar_int_to_constant 145@ = 259
set_lvar_int_to_constant 146@ = 261
set_lvar_int_to_constant 147@ = 263
set_lvar_int_to_constant 148@ = 265
set_lvar_int_to_constant 149@ = 267
set_lvar_int_to_constant 150@ = 269
set_lvar_int_to_constant 151@ = 271
set_lvar_int_to_constant 152@ = 273
set_lvar_int_to_constant 153@ = 275
set_lvar_int_to_constant 154@ = 277
set_lvar_int_to_constant 155@ = 279
set_lvar_int_to_constant 156@ = 281
set_lvar_int_to_constant 157@ = 283
set_lvar_int_to_constant 158@ = 285
set_lvar_int_to_constant 159@ = 287
set_lvar_int_to_constant 160@ = 289
set_lvar_int_to_constant 161@ = 291
set_lvar_int_to_constant 162@ = 293
set_lvar_int_to_constant 163@ = 295
set_lvar_int_to_constant 164@ = 296
set_lvar_int_to_constant 165@ = 297
set_lvar_int_to_constant 166@ = 298
set_lvar_int_to_constant 167@ = 299
set_lvar_int_to_constant 168@ = 300
set_lvar_int_to_constant 169@ = 301
set_lvar_int_to_constant 170@ = 48
set_lvar_int_to_constant 171@ = 220
set_lvar_int_to_constant 175@ = 258
set_lvar_int_to_constant 176@ = 260
set_lvar_int_to_constant 177@ = 262
set_lvar_int_to_constant 178@ = 264
set_lvar_int_to_constant 179@ = 266
set_lvar_int_to_constant 180@ = 268
set_lvar_int_to_constant 181@ = 270
set_lvar_int_to_constant 182@ = 272
set_lvar_int_to_constant 183@ = 274
set_lvar_int_to_constant 184@ = 276
set_lvar_int_to_constant 185@ = 278
set_lvar_int_to_constant 186@ = 280
set_lvar_int_to_constant 187@ = 282
set_lvar_int_to_constant 188@ = 284
set_lvar_int_to_constant 189@ = 286
set_lvar_int_to_constant 190@ = 288
set_lvar_int_to_constant 191@ = 290
set_lvar_int_to_constant 192@ = 292
set_lvar_int_to_constant 193@ = 294
set_lvar_int_to_constant 200@ = 172
set_lvar_int_to_constant 201@ = 221
$x, $y, $z = Char.GetCoordinates($scplayer)
Restart.SetRespawnPointForDurationOfMission($x, $y, $z)
set_lvar_int_to_constant 205@ = 0
Text.UseCommands(True)
Text.SetMessageFormatting(True, 355, 370)
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Game.SetAllCarsCanBeDamaged(False)
Hud.DisplayRadar(False)
206@ = 0
207@ = 0
208@ = 25
209@ = -1
221@ = 0
222@ = 0
223@ = 0
224@ = 1
225@ = 0
226@ = 0
227@ = 0
if 
is_ps2_keyboard_key_pressed 21
goto_if_false @CPRACE_2627
$race_debug = 0
$6958 = 0
view_integer_variable $6958 {_p2} "COORDS"
Player.SetControl($player1, True)
set_lvar_int_to_constant 49@ = 0
228@ = 1
goto @CPRACE_2634

:CPRACE_2627
$race_debug = -1

:CPRACE_2634
wait 0
$game_timer = Clock.GetGameTimer()
if 
  13 > 49@
goto_if_false @CPRACE_2668
229@ = 0

:CPRACE_2668
253@ = 0
switch_start 49@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @CPRACE_20804 {caseNum1} 0 {caseLabel1} @CPRACE_2803 {caseNum2} 1 {caseLabel2} @CPRACE_5835 {caseNum3} 2 {caseLabel3} @CPRACE_7390 {caseNum4} 3 {caseLabel4} @CPRACE_7576 {caseNum5} 4 {caseLabel5} @CPRACE_7923 {caseNum6} 5 {caseLabel6} @CPRACE_8659 {caseNum7} 6 {caseLabel7} @CPRACE_8771
switch_continued 7 {caseLabel1} @CPRACE_11219 {caseNum2} 8 {caseLabel2} @CPRACE_11296 {caseNum3} 9 {caseLabel3} @CPRACE_11381 {caseNum4} 10 {caseLabel4} @CPRACE_11466 {caseNum5} 11 {caseLabel5} @CPRACE_12350 {caseNum6} 12 {caseLabel6} @CPRACE_12350 {caseNum7} 13 {caseLabel7} @CPRACE_19580 {caseNum8} 14 {caseLabel8} @CPRACE_20087 {caseNum9} -1 {caseLabel9} @CPRACE_20804

:CPRACE_2803
if 
  $race_debug > -1
goto_if_false @CPRACE_4451
if 
is_ps2_keyboard_key_pressed 21
goto_if_false @CPRACE_4444
if 
  228@ == 0
goto_if_false @CPRACE_4437
if 
  $race_debug == 0
goto_if_false @CPRACE_2909
$6958 += 1
Text.PrintNow('CHEATON', 800, 1)
$race_debug = 1
goto @CPRACE_4430

:CPRACE_2909
if 
is_ps2_keyboard_key_pressed 102
goto_if_false @CPRACE_4400
224@ = 1
save_newline_to_debug_file 
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("TOTAL_LAPS = 1")
256@ = 6
save_newline_to_debug_file 
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("TOTAL_RACERS = 6")
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
save_newline_to_debug_file 
252@ = 0

:CPRACE_3257
if 
  is_int_lvar_greater_than_int_lvar 256@ > 252@
goto_if_false @CPRACE_3557
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("RACER_MODEL[")
save_int_to_debug_file 252@
Debugger.SaveStringToDebugFile("] = MALE01")
252@ += 1
goto @CPRACE_3257

:CPRACE_3557
set_lvar_int_to_lvar_int 716@ = 230@
set_lvar_int_to_lvar_int 717@ = 230@
set_lvar_int_to_lvar_int 718@ = 230@
set_lvar_int_to_lvar_int 719@ = 230@
set_lvar_int_to_lvar_int 720@ = 230@
set_lvar_int_to_lvar_int 721@ = 230@
save_newline_to_debug_file 
252@ = 0

:CPRACE_3614
if 
  is_int_lvar_greater_than_int_lvar 256@ > 252@
goto_if_false @CPRACE_3919
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("RACERS_CAR_MODEL[")
save_int_to_debug_file 252@
Debugger.SaveStringToDebugFile("] = ")
save_int_to_debug_file 230@
252@ += 1
goto @CPRACE_3614

:CPRACE_3919
set_var_float_to_lvar_float $x = 454@
set_var_float_to_lvar_float $y = 536@
set_var_float_to_lvar_float $z = 618@
save_newline_to_debug_file 
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CHECKPOINTS_X[0] = ")
save_float_to_debug_file $x
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CHECKPOINTS_Y[0] = ")
save_float_to_debug_file $y
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CHECKPOINTS_Z[0] = ")
save_float_to_debug_file $z
Text.PrintNow('LABEL', 1000, 1)
49@ = 3
$6958 = 0
$race_debug = 0
goto @CPRACE_4430

:CPRACE_4400
$6958 = 0
Text.PrintNow('CHEATOF', 800, 1)
$race_debug = 0

:CPRACE_4430
228@ = 1

:CPRACE_4437
goto @CPRACE_4451

:CPRACE_4444
228@ = 0

:CPRACE_4451
if 
  $race_debug == 1
goto_if_false @CPRACE_5828
if 
  Player.IsPlaying($player1)
goto_if_false @CPRACE_5828
if 
  $6958 == 0
goto_if_false @CPRACE_4566
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @CPRACE_4559
if 
  235@ == 0
goto_if_false @CPRACE_4552
$6958 += 1
235@ = 1

:CPRACE_4552
goto @CPRACE_4566

:CPRACE_4559
235@ = 0

:CPRACE_4566
if 
  $6958 > 0
goto_if_false @CPRACE_5828
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CPRACE_5828
443@ = Char.StoreCarIsInNoSave($scplayer)
230@ = Car.GetModel(443@)
if or
  Streaming.IsThisModelAPlane(230@)
  Streaming.IsThisModelAHeli(230@)
goto_if_false @CPRACE_4655
$x, $y, $z = Camera.GetDebugCoordinates()
goto @CPRACE_4669

:CPRACE_4655
$x, $y, $z = Char.GetCoordinates($scplayer)

:CPRACE_4669
$distance = Math.GetDistanceBetweenCoords3D($x, $y, $z, 231@, 232@, 233@)
cset_lvar_int_to_var_float 234@ =# $distance
gosub @CPRACE_47593
Text.SetDropshadow(2, 0, 0, 0, 255)
Text.SetScale(0.8, 2.0)
Text.DisplayWithNumber(30.0, 145.0, 'RACES00', 234@)
if or
  $distance > 200.0
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @CPRACE_5821
if 
  235@ == 0
goto_if_false @CPRACE_5814
Text.PrintNow('TEXXYZ4', 800, 1)
$6958 -= 1
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CHECKPOINTS_X[")
save_int_to_debug_file $6958
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $x
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CHECKPOINTS_Y[")
save_int_to_debug_file $6958
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $y
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CHECKPOINTS_Z[")
save_int_to_debug_file $6958
Debugger.SaveStringToDebugFile("] = ")
if 
  Streaming.IsThisModelABoat(230@)
goto_if_false @CPRACE_5658
goto @CPRACE_5718

:CPRACE_5658
if 
  Streaming.IsThisModelAHeli(230@)
goto_if_false @CPRACE_5681
goto @CPRACE_5718

:CPRACE_5681
if 
  Streaming.IsThisModelAPlane(230@)
goto_if_false @CPRACE_5704
goto @CPRACE_5718

:CPRACE_5704
$z = World.GetGroundZFor3DCoord($x, $y, $z)

:CPRACE_5718
save_float_to_debug_file $z
save_newline_to_debug_file 
set_lvar_float_to_var_float 454@($6958,82f) = $x
set_lvar_float_to_var_float 536@($6958,82f) = $y
set_lvar_float_to_var_float 618@($6958,82f) = $z
set_lvar_float_to_var_float 231@ = $x
set_lvar_float_to_var_float 232@ = $y
set_lvar_float_to_var_float 233@ = $z
$6958 += 1
set_lvar_int_to_var_int 250@ = $6958
$6958 += 1
235@ = 1

:CPRACE_5814
goto @CPRACE_5828

:CPRACE_5821
235@ = 0

:CPRACE_5828
goto @CPRACE_20804

:CPRACE_5835
Hud.Display(False)
Hud.DisplayRadar(False)
$current_Language = Game.GetCurrentLanguage()
if 
  not is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CPRACE_5878
Text.SetHelpMessageBoxSize(250)
goto @CPRACE_5883

:CPRACE_5878
Text.SetHelpMessageBoxSize(200)

:CPRACE_5883
Text.PrintHelpForever('RACES33')
236@, 237@, 238@, 239@ = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  -100 > 237@
  236@ > 100
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @CPRACE_6027
if 
  240@ == 0
goto_if_false @CPRACE_6020
if 
  is_int_lvar_greater_than_int_var 51@ > $race_selection
goto_if_false @CPRACE_5998
$race_selection += 1
goto @CPRACE_6006

:CPRACE_5998
set_var_int_to_lvar_int $race_selection = 50@

:CPRACE_6006
gosub @CPRACE_46973
240@ = 1

:CPRACE_6020
goto @CPRACE_6034

:CPRACE_6027
240@ = 0

:CPRACE_6034
if or
  237@ > 100
  -100 > 236@
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @CPRACE_6151
if 
  241@ == 0
goto_if_false @CPRACE_6144
if 
  is_int_var_greater_than_int_lvar $race_selection > 50@
goto_if_false @CPRACE_6122
$race_selection -= 1
goto @CPRACE_6130

:CPRACE_6122
set_var_int_to_lvar_int $race_selection = 51@

:CPRACE_6130
gosub @CPRACE_46973
241@ = 1

:CPRACE_6144
goto @CPRACE_6158

:CPRACE_6151
241@ = 0

:CPRACE_6158
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CPRACE_6228
if 
  242@ == 0
goto_if_false @CPRACE_6221
Txd.Remove
Hud.Display(True)
Hud.DisplayRadar(True)
Text.ClearHelp
53@ = 1
return 
242@ = 1

:CPRACE_6221
goto @CPRACE_6235

:CPRACE_6228
242@ = 0

:CPRACE_6235
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CPRACE_6316
if 
  243@ == 0
goto_if_false @CPRACE_6309
if 
  $race_selection > -1
goto_if_false @CPRACE_6302
Camera.DoFade(500, Fade.Out)
49@ = 2

:CPRACE_6302
243@ = 1

:CPRACE_6309
goto @CPRACE_6323

:CPRACE_6316
243@ = 0

:CPRACE_6323
Hud.DrawWindow(53.0, 130.0, 597.0, 410.0, 'RACES_0', 3)
gosub @CPRACE_47593
Text.SetWrapX(320.0)
Text.SetScale($6930, $6944)
Text.Display($tripskip_s2flag, $6916, 85@($race_selection,30s))
gosub @CPRACE_47593
Text.SetScale($x_hud_scale, $y_hud_scale)
Text.Display($tripskip_s2flag, $y_hud_pos, 'RACES36')
gosub @CPRACE_47593
Text.SetColor(180, 180, 180, 255)
Text.SetScale($6932, $6946)
set_var_float_to_var_float $6918 = $y_hud_pos
add_float_var_to_float_var $6918 += $6923
if 
  Game.AreMeasurementsInMeters
goto_if_false @CPRACE_6623
set_lvar_float_to_lvar_float 244@ = 55@($race_selection,30f)
244@ /= 1000.0
cset_lvar_int_to_lvar_float 246@ =# 244@
cset_lvar_float_to_lvar_int 47@ =# 246@
set_lvar_float_to_lvar_float 245@ = 244@
sub_float_lvar_from_float_lvar 245@ -= 47@
cset_lvar_int_to_lvar_float 247@ =# 245@
if 
  10 > 247@
goto_if_false @CPRACE_6593
Text.DisplayWith2Numbers($tripskip_s2flag, $6918, 'RACES35', 246@, 247@)
goto @CPRACE_6616

:CPRACE_6593
Text.DisplayWith2Numbers($tripskip_s2flag, $6918, 'RACES34', 246@, 247@)

:CPRACE_6616
goto @CPRACE_6766

:CPRACE_6623
set_lvar_float_to_lvar_float 248@ = 55@($race_selection,30f)
248@ /= 1609.0
cset_lvar_int_to_lvar_float 246@ =# 248@
cset_lvar_float_to_lvar_int 47@ =# 246@
set_lvar_float_to_lvar_float 245@ = 248@
sub_float_lvar_from_float_lvar 245@ -= 47@
245@ *= 100.0
cset_lvar_int_to_lvar_float 247@ =# 245@
if 
  10 > 247@
goto_if_false @CPRACE_6743
Text.DisplayWith2Numbers($tripskip_s2flag, $6918, 'RACES47', 246@, 247@)
goto @CPRACE_6766

:CPRACE_6743
Text.DisplayWith2Numbers($tripskip_s2flag, $6918, 'RACES46', 246@, 247@)

:CPRACE_6766
gosub @CPRACE_47593
Text.SetScale($x_hud_scale, $y_hud_scale)
Text.Display($tripskip_s2flag, $6919, 'RACES38')
gosub @CPRACE_47593
Text.SetColor(180, 180, 180, 255)
Text.SetScale($6932, $6946)
set_var_float_to_var_float $6920 = $6919
add_float_var_to_float_var $6920 += $6923
if 
  $cprace_best_times($race_selection,30i) == 999999999
goto_if_false @CPRACE_6892
Text.Display($tripskip_s2flag, $6920, 'RACES45')
goto @CPRACE_7017

:CPRACE_6892
set_lvar_int_to_var_int 452@ = $cprace_best_times($race_selection,30i)
452@ /= 60
set_lvar_int_to_lvar_int 36@ = 452@
36@ *= 60
set_lvar_int_to_var_int 453@ = $cprace_best_times($race_selection,30i)
sub_int_lvar_from_int_lvar 453@ -= 36@
if 
  10 > 453@
goto_if_false @CPRACE_6994
Text.DisplayWith2Numbers($tripskip_s2flag, $6920, 'RACES40', 452@, 453@)
goto @CPRACE_7017

:CPRACE_6994
Text.DisplayWith2Numbers($tripskip_s2flag, $6920, 'RACES39', 452@, 453@)

:CPRACE_7017
if 
  $menu_mode <> 3
goto_if_false @CPRACE_7331
gosub @CPRACE_47593
Text.SetScale($x_hud_scale, $y_hud_scale)
Text.Display($tripskip_s2flag, $6921, 'RACES37')
gosub @CPRACE_47593
Text.SetColor(180, 180, 180, 255)
Text.SetScale($6932, $6946)
set_var_float_to_var_float $6922 = $6921
add_float_var_to_float_var $6922 += $6923
if 
  $cprace_best_position($race_selection,30i) == 1
goto_if_false @CPRACE_7158
Text.Display($tripskip_s2flag, $6922, 'RACES41')
goto @CPRACE_7331

:CPRACE_7158
if 
  $cprace_best_position($race_selection,30i) == 2
goto_if_false @CPRACE_7204
Text.Display($tripskip_s2flag, $6922, 'RACES42')
goto @CPRACE_7331

:CPRACE_7204
if 
  $cprace_best_position($race_selection,30i) == 3
goto_if_false @CPRACE_7250
Text.Display($tripskip_s2flag, $6922, 'RACES43')
goto @CPRACE_7331

:CPRACE_7250
if and
  $cprace_best_position($race_selection,30i) > 3
  100 > $cprace_best_position($race_selection,30i)
goto_if_false @CPRACE_7314
Text.DisplayWithNumber($tripskip_s2flag, $6922, 'RACES44', $cprace_best_position($race_selection,30i))
goto @CPRACE_7331

:CPRACE_7314
Text.Display($tripskip_s2flag, $6922, 'RACES45')

:CPRACE_7331
set_lvar_int_to_var_int 36@ = $race_selection
36@ += 1
Hud.DrawSprite(36@, 454.98, 268.18, 256.0, 256.0, 180, 180, 180, 255)
goto @CPRACE_20804

:CPRACE_7390
if 
  not Camera.GetFadingStatus
goto_if_false @CPRACE_7569
Text.SetHelpMessageBoxSize(200)
Txd.Remove
Text.ClearHelp
gosub @CPRACE_20811
Hud.DisplayCarNames(False)
Hud.Display(True)
if 
  221@ == 0
goto_if_false @CPRACE_7456
Hud.DisplayRadar(True)
goto @CPRACE_7474

:CPRACE_7456
Game.SetIsInStadium(True)
Hud.DisplayZoneNames(False)
Game.HideAllFrontendBlips(True)
World.SetExtraColors(2, False)

:CPRACE_7474
$flag_car_normal_carmod = 1
if 
  $got_race_made_progress($race_selection,30i) == 0
goto_if_false @CPRACE_7537
if and
  $race_selection == 0
  $show_race_selection == 0
goto_if_false @CPRACE_7535
goto @CPRACE_7537

:CPRACE_7535
Stat.RegisterMissionGiven

:CPRACE_7537
if 
  $race_selection == 23
goto_if_false @CPRACE_7562
CarGenerator.Switch($f1_blood_car_gen[1], 0)

:CPRACE_7562
49@ = 3

:CPRACE_7569
goto @CPRACE_20804

:CPRACE_7576
set_lvar_int_to_lvar_int 249@ = 250@
249@ -= 1
set_lvar_int_to_lvar_int 251@ = 224@
251@ -= 1
252@ = 0
253@ = 0
254@ = 0
255@ = 0

:CPRACE_7634
if 
  is_int_lvar_greater_than_int_lvar 256@ > 253@
goto_if_false @CPRACE_7711
257@(253@,16i) = 0
273@(253@,16i) = 0
289@(253@,16i) = 0
305@(253@,16i) = 0
253@ += 1
goto @CPRACE_7634

:CPRACE_7711
253@ = 0
321@ = -1
49@ = 4
if 
  is_int_lvar_equal_to_constant 205@ == 3
goto_if_false @CPRACE_7876
if or
  $race_selection == 22
  $race_selection == 23
  $race_selection == 24
goto_if_false @CPRACE_7829
322@ = 12.0
323@ = 12.0
324@ = 12.0
325@ = 6.0
goto @CPRACE_7869

:CPRACE_7829
322@ = 25.0
323@ = 25.0
324@ = 25.0
325@ = 12.0

:CPRACE_7869
goto @CPRACE_7916

:CPRACE_7876
322@ = 12.0
323@ = 12.0
324@ = 7.0
325@ = 6.0

:CPRACE_7916
goto @CPRACE_20804

:CPRACE_7923
252@ = 0

:CPRACE_7930
if 
  is_int_lvar_greater_than_int_lvar 256@ > 252@
goto_if_false @CPRACE_8153
if 
  is_int_lvar_equal_to_constant 700@(252@,16i) == 290
goto_if_false @CPRACE_8098
if 
  $race_selection == 0
goto_if_false @CPRACE_8016
Streaming.LoadSpecialCharacter(1, 'CESAR')
Streaming.LoadSpecialCharacter(2, 'KENDL')

:CPRACE_8016
if 
  $race_selection == 7
goto_if_false @CPRACE_8047
Streaming.LoadSpecialCharacter(1, 'WUZIMU')

:CPRACE_8047
if 
  $race_selection == 8
goto_if_false @CPRACE_8091
Streaming.LoadSpecialCharacter(1, 'WUZIMU')
Streaming.LoadSpecialCharacter(2, 'CAT')

:CPRACE_8091
goto @CPRACE_8107

:CPRACE_8098
Streaming.RequestModel(700@(252@,16i))

:CPRACE_8107
if 
  $race_selection == 8
goto_if_false @CPRACE_8130
Streaming.RequestVehicleMod(#WHEEL_OR1)

:CPRACE_8130
Streaming.RequestModel(716@(252@,16i))
252@ += 1
goto @CPRACE_7930

:CPRACE_8153
Streaming.RequestAnimation("CAR")
Streaming.RequestAnimation("RIOT")
Streaming.LoadAllModelsNow
326@ = 0

:CPRACE_8177
if 
  326@ == 0
goto_if_false @CPRACE_8645
wait 0
326@ = 1
252@ = 0

:CPRACE_8213
if 
  is_int_lvar_greater_than_int_lvar 256@ > 252@
goto_if_false @CPRACE_8638
if 
  is_int_lvar_equal_to_constant 700@(252@,16i) == 290
goto_if_false @CPRACE_8497
if 
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @CPRACE_8384
if 
  $race_selection == 0
goto_if_false @CPRACE_8308
Streaming.LoadSpecialCharacter(1, 'CESAR')
326@ = 0

:CPRACE_8308
if 
  $race_selection == 7
goto_if_false @CPRACE_8346
Streaming.LoadSpecialCharacter(1, 'WUZIMU')
326@ = 0

:CPRACE_8346
if 
  $race_selection == 8
goto_if_false @CPRACE_8384
Streaming.LoadSpecialCharacter(1, 'WUZIMU')
326@ = 0

:CPRACE_8384
if 
  $race_selection == 0
goto_if_false @CPRACE_8437
if 
  not Streaming.HasSpecialCharacterLoaded(2)
goto_if_false @CPRACE_8437
Streaming.LoadSpecialCharacter(2, 'KENDL')
326@ = 0

:CPRACE_8437
if 
  $race_selection == 8
goto_if_false @CPRACE_8490
if 
  not Streaming.HasSpecialCharacterLoaded(2)
goto_if_false @CPRACE_8490
Streaming.LoadSpecialCharacter(2, 'CAT')
326@ = 0

:CPRACE_8490
goto @CPRACE_8533

:CPRACE_8497
if 
  not Streaming.HasModelLoaded(700@(252@,16i))
goto_if_false @CPRACE_8533
Streaming.RequestModel(700@(252@,16i))
326@ = 0

:CPRACE_8533
if 
  $race_selection == 8
goto_if_false @CPRACE_8579
if 
  not Streaming.HasVehicleModLoaded(#WHEEL_OR1)
goto_if_false @CPRACE_8579
Streaming.RequestVehicleMod(#WHEEL_OR1)
326@ = 0

:CPRACE_8579
if 
  not Streaming.HasModelLoaded(716@(252@,16i))
goto_if_false @CPRACE_8624
Streaming.RequestModel(700@(252@,16i))
Streaming.RequestModel(716@(252@,16i))
326@ = 0

:CPRACE_8624
252@ += 1
goto @CPRACE_8213

:CPRACE_8638
goto @CPRACE_8177

:CPRACE_8645
49@ = 5
goto @CPRACE_20804

:CPRACE_8659
World.SetCarDensityMultiplier(0.0)
World.ClearArea(454@, 536@, 618@, 30.0, False)
if 
  $show_race_selection == 1
goto_if_false @CPRACE_8707
Char.ClearTasksImmediately($scplayer)

:CPRACE_8707
Char.SetCoordinates($scplayer, 454@, 536@, 618@)
Char.SetAreaVisible($scplayer, 221@)
Streaming.SetAreaVisible(221@)
Streaming.RequestCollision(454@, 536@)
Camera.RestoreJumpcut
Streaming.LoadScene(454@, 536@, 618@)
Weather.SetToAppropriateTypeNow
49@ = 6
goto @CPRACE_20804

:CPRACE_8771
if and
  Streaming.HasAnimationLoaded("CAR")
  Streaming.HasAnimationLoaded("RIOT")
goto_if_false @CPRACE_11197
443@ = Car.Create(716@, 454@, 536@, 618@)
Car.TurnToFaceCoord(443@, 455@, 537@)
set_lvar_int_to_lvar_int 36@ = 256@
36@ -= 1
253@ = 0

:CPRACE_8847
if 
  is_int_lvar_greater_than_int_lvar 256@ > 253@
goto_if_false @CPRACE_11172
if 
  256@ > 1
goto_if_false @CPRACE_9264
329@, 330@, $z, 327@, 328@, $z = Streaming.GetModelDimensions(716@)
329@ *= -1.0
add_float_lvar_to_float_lvar 327@ += 329@
if 
  2.0 > 327@
goto_if_false @CPRACE_8956
327@ = 2.0

:CPRACE_8956
set_lvar_float_to_lvar_float 329@ = 327@
329@ *= -1.0
330@ *= -1.0
add_float_lvar_to_float_lvar 328@ += 330@
set_lvar_int_to_lvar_int 254@ = 253@
254@ /= 2
254@ *= 2
if 
  is_int_lvar_equal_to_int_lvar 254@ == 253@
goto_if_false @CPRACE_9082
set_var_float_to_lvar_float $x = 327@
cset_lvar_float_to_lvar_int 47@ =# 253@
mult_float_lvar_by_float_lvar 47@ *= 328@
47@ *= -1.0
set_var_float_to_lvar_float $y = 47@
goto @CPRACE_9139

:CPRACE_9082
set_var_float_to_lvar_float $x = 329@
set_lvar_int_to_lvar_int 255@ = 253@
255@ -= 1
cset_lvar_float_to_lvar_int 47@ =# 255@
mult_float_lvar_by_float_lvar 47@ *= 328@
47@ *= -1.0
set_var_float_to_lvar_float $y = 47@

:CPRACE_9139
if 
  Car.IsDead(443@)
goto_if_false @CPRACE_9200
if 
  $show_race_selection == 0
goto_if_false @CPRACE_9198
if 
  $race_selection == 0
goto_if_false @CPRACE_9198
$failed_cesar_race = 1

:CPRACE_9198
return 

:CPRACE_9200
$x, $y, $z = Car.GetOffsetInWorldCoords(443@, $x, $y, 0.0)
$heading = Car.GetHeading(443@)
set_lvar_float_to_var_float 331@(253@,16f) = $x
set_lvar_float_to_var_float 347@(253@,16f) = $y
goto @CPRACE_9328

:CPRACE_9264
$heading = Car.GetHeading(443@)
set_var_float_to_lvar_float $x = 331@(253@,16f)
set_var_float_to_lvar_float $y = 347@(253@,16f)
set_lvar_float_to_lvar_float 331@(253@,16f) = 454@
set_lvar_float_to_lvar_float 347@(253@,16f) = 536@
set_var_float_to_lvar_float $z = 618@

:CPRACE_9328
if 
  not Streaming.IsThisModelABoat(716@(253@,16i))
goto_if_false @CPRACE_9402
if 
  not Streaming.IsThisModelAPlane(716@(253@,16i))
goto_if_false @CPRACE_9402
if 
  not Streaming.IsThisModelAHeli(716@(253@,16i))
goto_if_false @CPRACE_9402
$z = World.GetGroundZFor3DCoord($x, $y, $z)

:CPRACE_9402
set_lvar_float_to_var_float 363@(253@,16f) = $z
if 
  is_int_lvar_greater_than_int_lvar 36@ > 253@
goto_if_false @CPRACE_9755
gosub @CPRACE_488
395@(253@,16i) = Char.CreateInsideCar(379@(253@,16i), PedType.CivMale, 700@(253@,16i))
if 
  is_int_lvar_equal_to_constant 700@(253@,16i) == 290
goto_if_false @CPRACE_9551
if or
  $race_selection == 0
  $race_selection == 8
goto_if_false @CPRACE_9532
411@ = Char.CreateAsPassenger(379@(253@,16i), PedType.CivFemale, 291, 0)

:CPRACE_9532
Car.SetProofs(379@(253@,16i), True, True, True, False, True)

:CPRACE_9551
if 
  221@ > 0
goto_if_false @CPRACE_9613
if 
  321@ == -1
goto_if_false @CPRACE_9601
321@ = DecisionMakerChar.Copy(-1)
DecisionMakerChar.ClearEventResponse(321@, 79)

:CPRACE_9601
Char.SetDecisionMaker(395@(253@,16i), 321@)

:CPRACE_9613
Char.SetAreaVisible(395@(253@,16i), 221@)
Char.SetCanBeShotInVehicle(395@(253@,16i), False)
Char.SetSuffersCriticalHits(395@(253@,16i), False)
Char.SetNeverTargeted(395@(253@,16i), True)
Char.SetOnlyDamagedByPlayer(395@(253@,16i), True)
Char.SetCantBeDraggedOut(395@(253@,16i), False)
Char.SetDrownsInWater(395@(253@,16i), False)
Char.SetHealth(395@(253@,16i), 500)
if 
  221@ == 0
goto_if_false @CPRACE_9737
412@(253@,16i) = Blip.AddForChar(395@(253@,16i))

:CPRACE_9737
Blip.ChangeDisplay(412@(253@,16i), BlipDisplay.MarkerOnly)
goto @CPRACE_11158

:CPRACE_9755
if 
  not Streaming.IsThisModelABoat(716@(253@,16i))
goto_if_false @CPRACE_10753
if 
  not Streaming.IsThisModelAPlane(716@(253@,16i))
goto_if_false @CPRACE_10753
if 
  not Streaming.IsThisModelAHeli(716@(253@,16i))
goto_if_false @CPRACE_10753
if 
  221@ == 0
goto_if_false @CPRACE_10753
428@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
$x, $y, $z = Car.GetOffsetInWorldCoords(443@, -4.0435, 6.5755, -0.8)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
429@ = Char.CreateRandom($x, $y, $z)
Char.SetKeepTask(429@, True)
Char.SetDecisionMaker(429@, 428@)
Task.TurnCharToFaceCoord(429@, 454@, 536@, 618@)
430@ = Object.CreateNoOffset(#KMB_GOFLAG, $x, $y, $z)
Task.PickUpObject(429@, 430@, 0.062, 0.027, -0.15, 5, 16, "FLAG_DROP", "CAR", 0)
$x, $y, $z = Car.GetOffsetInWorldCoords(443@, -5.6392, 2.9435, -0.8)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
431@ = Char.CreateRandom($x, $y, $z)
$x, $y, $z = Car.GetOffsetInWorldCoords(443@, -6.0071, -2.0778, 2.5)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
432@ = Char.CreateRandom($x, $y, $z)
$x, $y, $z = Car.GetOffsetInWorldCoords(443@, -7.6039, -5.0807, 2.5)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
433@ = Char.CreateRandom($x, $y, $z)
$x, $y, $z = Car.GetOffsetInWorldCoords(443@, -7.0724, -6.4057, 2.5)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
434@ = Char.CreateRandom($x, $y, $z)
$x, $y, $z = Car.GetOffsetInWorldCoords(443@, -5.9988, -13.553, 2.5)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
435@ = Char.CreateRandom($x, $y, $z)
$x, $y, $z = Car.GetOffsetInWorldCoords(443@, 6.073, -15.2059, 2.5)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
436@ = Char.CreateRandom($x, $y, $z)
$x, $y, $z = Car.GetOffsetInWorldCoords(443@, 7.2639, -12.9933, 2.5)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
437@ = Char.CreateRandom($x, $y, $z)
$x, $y, $z = Car.GetOffsetInWorldCoords(443@, 5.8429, -7.7069, 2.5)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
438@ = Char.CreateRandom($x, $y, $z)
$x, $y, $z = Car.GetOffsetInWorldCoords(443@, 8.4135, -3.7971, 2.5)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
439@ = Char.CreateRandom($x, $y, $z)
$x, $y, $z = Car.GetOffsetInWorldCoords(443@, 6.2507, 0.3634, 2.5)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
440@ = Char.CreateRandom($x, $y, $z)
$x, $y, $z = Car.GetOffsetInWorldCoords(443@, 8.6397, 2.419, 2.5)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
441@ = Char.CreateRandom($x, $y, $z)
252@ = 0

:CPRACE_10622
if 
  11 > 252@
goto_if_false @CPRACE_10753
Char.SetDecisionMaker(431@(252@,11i), 428@)
Char.SetKeepTask(431@(252@,11i), True)
38@ = Sequence.Open()
gosub @CPRACE_50647
Sequence.SetToRepeat(38@, True)
Sequence.Close(38@)
37@ = Sequence.Open()
Task.TurnCharToFaceCoord(-1, 454@, 536@, 618@)
Char.PerformSequence(-1, 38@)
Sequence.Close(37@)
Char.PerformSequence(431@(252@,11i), 37@)
Sequence.Clear(38@)
Sequence.Clear(37@)
252@ += 1
goto @CPRACE_10622

:CPRACE_10753
Car.Delete(443@)
set_lvar_int_to_var_int 395@(253@,16i) = $scplayer
set_lvar_int_to_lvar_int 442@ = 253@
363@(442@,16f) += 3.0
363@(442@,16f) = World.GetGroundZFor3DCoord(331@(442@,16f), 347@(442@,16f), 363@(442@,16f))
if 
  0.0 > 363@(442@,16f)
goto_if_false @CPRACE_10881
if 
  Streaming.IsThisModelABoat(716@(442@,16i))
goto_if_false @CPRACE_10881
363@(442@,16f) = 0.0

:CPRACE_10881
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CPRACE_10946
379@(442@,16i) = Char.GetCarIsUsing($scplayer)
Car.SetCoordinates(379@(442@,16i), 331@(442@,16f), 347@(442@,16f), 363@(442@,16f))
goto @CPRACE_11069

:CPRACE_10946
379@(442@,16i) = Car.Create(716@(442@,16i), 331@(442@,16f), 347@(442@,16f), 363@(442@,16f))
if 
  $race_selection == 8
goto_if_false @CPRACE_11016
36@ = Car.AddMod(379@(442@,16i), #WHEEL_OR1)

:CPRACE_11016
if 
  209@ <> -1
goto_if_false @CPRACE_11057
Car.ChangeColor(379@(442@,16i), 209@(442@,6i), 215@(442@,6i))

:CPRACE_11057
Char.WarpIntoCar($scplayer, 379@(442@,16i))

:CPRACE_11069
Car.SetAreaVisible(379@(442@,16i), 221@)
Car.SetHeading(379@(442@,16i), $heading)
if or
  Streaming.IsThisModelAPlane(716@(442@,16i))
  Streaming.IsThisModelAHeli(716@(442@,16i))
goto_if_false @CPRACE_11147
Car.FreezePosition(379@(442@,16i), True)
Car.SetForwardSpeed(379@(442@,16i), 10.0)

:CPRACE_11147
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(500, Fade.In)

:CPRACE_11158
253@ += 1
goto @CPRACE_8847

:CPRACE_11172
Player.SetControl($player1, False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
49@ = 7
goto @CPRACE_11212

:CPRACE_11197
Streaming.RequestAnimation("CAR")
Streaming.RequestAnimation("RIOT")

:CPRACE_11212
goto @CPRACE_20804

:CPRACE_11219
Game.SetEveryoneIgnorePlayer($player1, True)
Game.SetAllCarsCanBeDamaged(False)
Text.PrintBig('RACES_4', 1100, TextStyle.MiddleSmaller)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1056)
set_var_int_to_var_int $coords = $game_timer
$coords += 999
49@ = 8
goto @CPRACE_20804

:CPRACE_11296
if 
  is_int_var_greater_than_int_var $game_timer > $coords
goto_if_false @CPRACE_11374
Text.PrintBig('RACES_5', 1100, TextStyle.MiddleSmaller)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1056)
set_var_int_to_var_int $coords = $game_timer
$coords += 999
49@ = 9

:CPRACE_11374
goto @CPRACE_20804

:CPRACE_11381
if 
  is_int_var_greater_than_int_var $game_timer > $coords
goto_if_false @CPRACE_11459
Text.PrintBig('RACES_6', 1100, TextStyle.MiddleSmaller)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1056)
set_var_int_to_var_int $coords = $game_timer
$coords += 999
49@ = 10

:CPRACE_11459
goto @CPRACE_20804

:CPRACE_11466
if 
  is_int_var_greater_than_int_var $game_timer > $coords
goto_if_false @CPRACE_12343
Text.PrintBig('RACES_7', 800, TextStyle.MiddleSmaller)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1057)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Game.SetAllCarsCanBeDamaged(True)
253@ = 0

:CPRACE_11546
if 
  11 > 253@
goto_if_false @CPRACE_11587
Char.MarkAsNoLongerNeeded(431@(253@,11i))
253@ += 1
goto @CPRACE_11546

:CPRACE_11587
Char.MarkAsNoLongerNeeded(429@)
Streaming.RemoveAnimation("CAR")
253@ = 0

:CPRACE_11606
if 
  is_int_lvar_greater_than_int_lvar 256@ > 253@
goto_if_false @CPRACE_11828
if 
  not Car.IsDead(379@(253@,16i))
goto_if_false @CPRACE_11814
Car.SetOnlyDamagedByPlayer(379@(253@,16i), False)
if 
  not Streaming.IsThisModelABoat(716@(253@,16i))
goto_if_false @CPRACE_11814
if 
  not Streaming.IsThisModelAPlane(716@(253@,16i))
goto_if_false @CPRACE_11803
if 
  not Streaming.IsThisModelAHeli(716@(253@,16i))
goto_if_false @CPRACE_11785
if 
  not is_int_lvar_equal_to_int_lvar 253@ == 442@
goto_if_false @CPRACE_11778
if 
  221@ == 0
goto_if_false @CPRACE_11778
StuckCarCheck.AddWithWarp(379@(253@,16i), 3.0, 4000, True, True, True, -1)

:CPRACE_11778
goto @CPRACE_11796

:CPRACE_11785
Car.FreezePosition(379@(253@,16i), False)

:CPRACE_11796
goto @CPRACE_11814

:CPRACE_11803
Car.FreezePosition(379@(253@,16i), False)

:CPRACE_11814
253@ += 1
goto @CPRACE_11606

:CPRACE_11828
World.SetCarDensityMultiplier(1.0)
$tripskip_s2flag = 582.7242
$6916 = 356.2812
$6930 = 52.2072
$6944 = 52.2072
$x_hud_pos = 584.0833
$y_hud_pos = 329.3647
$x_hud_scale = 0.4943
$y_hud_scale = 2.097
$6904 = 570.6411
$6918 = 323.5937
$6932 = 0.9127
$6946 = 4.8106
$6905 = 585.941
$6919 = 345.6341
$6933 = 0.4197
$6947 = 1.8511
$6906 = 582.7242
$6920 = 359.0323
$6934 = 0.4993
$6948 = 2.637
$6907 = 582.7242
$6921 = 356.2812
$6935 = 56.2072
$6949 = 56.2072
$6908 = 582.7242
$6922 = 356.2812
$6936 = 58.2072
$6950 = 58.2072
$6909 = 582.7242
$6923 = 400.7518
$6937 = 58.2072
$6951 = 32.7789
$6910 = 582.7242
$6924 = 400.2518
$6938 = 56.2072
$6952 = 31.7789
$6911 = 582.7242
$6925 = 399.2518
$6939 = 52.2072
$6953 = 29.7789
$6912 = 560.4862
$6926 = 384.5027
$6940 = 0.5
$6954 = 1.5393
set_var_int_to_var_int $coords = $game_timer
set_lvar_int_to_var_int 206@ = $game_timer
if 
  256@ == 1
goto_if_false @CPRACE_12332
$coords = 0
Hud.DisplayTimerWithString($coords, TimerDirection.Up, 'TIMER')

:CPRACE_12332
Text.ClearThisPrintBigNow(TextStyle.BottomRight)
49@ = 11

:CPRACE_12343
goto @CPRACE_20804

:CPRACE_12350
if 
  is_int_lvar_greater_than_int_lvar 256@ > 253@
goto_if_false @CPRACE_18589
if 
  not Char.IsDead(395@(253@,16i))
goto_if_false @CPRACE_18122
if 
  13 > 49@
goto_if_false @CPRACE_12731
if 
  not is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_12731
if 
  is_int_lvar_greater_than_int_lvar 273@(253@,16i) > 273@(442@,16i)
goto_if_false @CPRACE_12471
229@ += 1
goto @CPRACE_12731

:CPRACE_12471
if 
  is_int_lvar_equal_to_int_lvar 273@(442@,16i) == 273@(253@,16i)
goto_if_false @CPRACE_12731
if 
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 257@(442@,16i)
goto_if_false @CPRACE_12539
229@ += 1
goto @CPRACE_12731

:CPRACE_12539
if 
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 249@
goto_if_false @CPRACE_12576
229@ += 1
goto @CPRACE_12731

:CPRACE_12576
if 
  is_int_lvar_equal_to_int_lvar 257@(442@,16i) == 257@(253@,16i)
goto_if_false @CPRACE_12731
$x, $y, $z = Char.GetCoordinates(395@(253@,16i))
444@ = Math.GetDistanceBetweenCoords3D($x, $y, $z, 331@(253@,16f), 347@(253@,16f), 363@(253@,16f))
$x, $y, $z = Char.GetCoordinates($scplayer)
445@ = Math.GetDistanceBetweenCoords3D($x, $y, $z, 331@(253@,16f), 347@(253@,16f), 363@(253@,16f))
if 
  is_float_lvar_greater_than_float_lvar 445@ > 444@
goto_if_false @CPRACE_12731
229@ += 1

:CPRACE_12731
if 
  49@ == 12
goto_if_false @CPRACE_15497
if 
  is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_14120
if 
  not Car.IsDead(379@(442@,16i))
goto_if_false @CPRACE_13747
if 
  Char.IsInCar($scplayer, 379@(442@,16i))
goto_if_false @CPRACE_13358
if 
  207@ == 1
goto_if_false @CPRACE_13351
Text.ClearThisPrint('RACES21')
Blip.Remove(54@)
363@(253@,16f) -= 1000.0
if 
  221@ == 0
goto_if_false @CPRACE_13344
254@ = 0
set_lvar_int_to_lvar_int 36@ = 256@
36@ -= 1

:CPRACE_12903
if 
  is_int_lvar_greater_than_int_lvar 36@ > 254@
goto_if_false @CPRACE_12983
if 
  not Char.IsDead(395@(254@,16i))
goto_if_false @CPRACE_12969
412@(254@,16i) = Blip.AddForChar(395@(254@,16i))
Blip.ChangeDisplay(412@(254@,16i), BlipDisplay.MarkerOnly)

:CPRACE_12969
254@ += 1
goto @CPRACE_12903

:CPRACE_12983
54@ = Blip.AddForCoord(331@(253@,16f), 347@(253@,16f), 363@(253@,16f))
Blip.ChangeColor(54@, BlipColor.Red)
Blip.ChangeDisplay(54@, BlipDisplay.BlipOnly)
Blip.ChangeScale(54@, 3)
if and
  is_int_lvar_equal_to_int_lvar 257@(253@,16i) == 249@
  is_int_lvar_equal_to_int_lvar 273@(253@,16i) == 251@
goto_if_false @CPRACE_13242
if 
  is_int_lvar_equal_to_constant 205@ == 3
goto_if_false @CPRACE_13187
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ -= 1
if 
  0 > 36@
goto_if_false @CPRACE_13127
36@ = 0

:CPRACE_13127
449@ = Checkpoint.Create(205@, 331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 454@(36@,82f), 536@(36@,82f), 618@(36@,82f), 325@)
goto @CPRACE_13235

:CPRACE_13187
449@ = Checkpoint.Create(CheckpointType.TubeEnd, 331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 0.0, 0.0, 0.0, 6.0)

:CPRACE_13235
goto @CPRACE_13344

:CPRACE_13242
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ += 1
if 
  is_int_lvar_equal_to_int_lvar 257@(253@,16i) == 249@
goto_if_false @CPRACE_13291
36@ = 1

:CPRACE_13291
449@ = Checkpoint.Create(205@, 331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 454@(36@,82f), 536@(36@,82f), 618@(36@,82f), 325@)

:CPRACE_13344
207@ = 0

:CPRACE_13351
goto @CPRACE_13740

:CPRACE_13358
if 
  207@ == 0
goto_if_false @CPRACE_13506
Checkpoint.Delete(449@)
Blip.Remove(54@)
254@ = 0
set_lvar_int_to_lvar_int 36@ = 256@
36@ -= 1

:CPRACE_13408
if 
  is_int_lvar_greater_than_int_lvar 36@ > 254@
goto_if_false @CPRACE_13450
Blip.Remove(412@(254@,16i))
254@ += 1
goto @CPRACE_13408

:CPRACE_13450
54@ = Blip.AddForCar(379@(442@,16i))
Blip.SetAsFriendly(54@, True)
363@(253@,16f) += 1000.0
set_lvar_int_to_var_int 446@ = $game_timer
446@ += 25400
207@ = 1

:CPRACE_13506
set_lvar_int_to_lvar_int 453@ = 446@
sub_int_var_from_int_lvar 453@ -= $game_timer
453@ /= 1000
if 
  1 > 453@
goto_if_false @CPRACE_13555
453@ = 0

:CPRACE_13555
if 
  is_int_var_greater_than_int_lvar $game_timer > 446@
goto_if_false @CPRACE_13669
Text.PrintNow('RACES20', 5000, 1)
if 
  $show_race_selection == 0
goto_if_false @CPRACE_13624
Text.PrintBig('M_FAIL', 3000, TextStyle.Middle)

:CPRACE_13624
if 
  $show_race_selection == 0
goto_if_false @CPRACE_13667
if 
  $race_selection == 0
goto_if_false @CPRACE_13667
$failed_cesar_race = 1

:CPRACE_13667
return 

:CPRACE_13669
if 
  453@ == 1
goto_if_false @CPRACE_13717
Text.AddNextMessageToPreviousBriefs(False)
Text.PrintWithNumberNow('RACE_21', 453@, 200, 1)
goto @CPRACE_13740

:CPRACE_13717
Text.AddNextMessageToPreviousBriefs(False)
Text.PrintWithNumberNow('RACES21', 453@, 200, 1)

:CPRACE_13740
goto @CPRACE_14113

:CPRACE_13747
if 
  Car.IsInWater(379@(442@,16i))
goto_if_false @CPRACE_14018
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CPRACE_13916
443@ = Char.StoreCarIsInNoSave($scplayer)
if 
  not is_int_lvar_equal_to_int_lvar 443@ == 379@(442@,16i)
goto_if_false @CPRACE_13909
Text.PrintNow('RACES24', 5000, 1)
if 
  $show_race_selection == 0
goto_if_false @CPRACE_13864
Text.PrintBig('M_FAIL', 3000, TextStyle.Middle)

:CPRACE_13864
if 
  $show_race_selection == 0
goto_if_false @CPRACE_13907
if 
  $race_selection == 0
goto_if_false @CPRACE_13907
$failed_cesar_race = 1

:CPRACE_13907
return 

:CPRACE_13909
goto @CPRACE_14011

:CPRACE_13916
Text.PrintNow('RACES24', 5000, 1)
if 
  $show_race_selection == 0
goto_if_false @CPRACE_13966
Text.PrintBig('M_FAIL', 3000, TextStyle.Middle)

:CPRACE_13966
if 
  $show_race_selection == 0
goto_if_false @CPRACE_14009
if 
  $race_selection == 0
goto_if_false @CPRACE_14009
$failed_cesar_race = 1

:CPRACE_14009
return 

:CPRACE_14011
goto @CPRACE_14113

:CPRACE_14018
Text.PrintNow('RACES24', 5000, 1)
if 
  $show_race_selection == 0
goto_if_false @CPRACE_14068
Text.PrintBig('M_FAIL', 3000, TextStyle.Middle)

:CPRACE_14068
if 
  $show_race_selection == 0
goto_if_false @CPRACE_14111
if 
  $race_selection == 0
goto_if_false @CPRACE_14111
$failed_cesar_race = 1

:CPRACE_14111
return 

:CPRACE_14113
goto @CPRACE_15497

:CPRACE_14120
if 
  is_int_lvar_greater_than_int_lvar 250@ > 257@(253@,16i)
goto_if_false @CPRACE_15497
if 
  Char.IsInAnyCar(395@(253@,16i))
goto_if_false @CPRACE_14411
if 
  221@ == 0
goto_if_false @CPRACE_14404
set_lvar_int_to_lvar_int 36@ = 257@(442@,16i)
36@ += 4
443@ = Char.StoreCarIsInNoSave(395@(253@,16i))
if 
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 36@
goto_if_false @CPRACE_14252
Car.SetCruiseSpeed(443@, 25.0)
goto @CPRACE_14311

:CPRACE_14252
if or
  $race_selection == 7
  $race_selection == 8
  $race_selection == 0
goto_if_false @CPRACE_14301
Car.SetCruiseSpeed(443@, 35.0)
goto @CPRACE_14311

:CPRACE_14301
Car.SetCruiseSpeed(443@, 50.0)

:CPRACE_14311
if 
  $race_selection == 8
goto_if_false @CPRACE_14404
if or
  Car.Locate2D(443@, -882.9833, -47.9468, 24.61, 25.64, False)
  Car.Locate2D(443@, -843.0954, -141.9169, 24.59, -29.24, False)
goto_if_false @CPRACE_14404
Car.SetCruiseSpeed(443@, 30.0)

:CPRACE_14404
goto @CPRACE_14932

:CPRACE_14411
if 
  $race_selection == 25
goto_if_false @CPRACE_14443
goto @CPRACE_18140
goto @CPRACE_14932

:CPRACE_14443
if 
  305@(253@,16i) == 0
goto_if_false @CPRACE_14489
set_lvar_int_to_var_int 305@(253@,16i) = $game_timer
305@(253@,16i) += 8000

:CPRACE_14489
if 
  is_int_var_greater_than_int_lvar $game_timer > 305@(253@,16i)
goto_if_false @CPRACE_14932
if 
  not is_int_lvar_equal_to_int_lvar 257@(253@,16i) == 257@(442@,16i)
goto_if_false @CPRACE_14932
if 
  not Char.LocateAnyMeansChar2D($scplayer, 395@(253@,16i), 30.0, 30.0, False)
goto_if_false @CPRACE_14921
if 
  not Char.LocateAnyMeans2D($scplayer, 331@(253@,16f), 347@(253@,16f), 30.0, 30.0, False)
goto_if_false @CPRACE_14903
if 
  not World.IsPointObscuredByAMissionEntity(331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 4.0, 4.0, 3.0)
goto_if_false @CPRACE_14885
if 
  not Char.IsOnScreen(395@(253@,16i))
goto_if_false @CPRACE_14867
if 
  not Camera.IsPointOnScreen(331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 4.0)
goto_if_false @CPRACE_14849
Car.MarkAsNoLongerNeeded(379@(253@,16i))
gosub @CPRACE_488
Char.WarpIntoCar(395@(253@,16i), 379@(253@,16i))
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ += 1
if 
  is_int_lvar_greater_than_int_lvar 250@ > 36@
goto_if_false @CPRACE_14831
Car.TurnToFaceCoord(379@(253@,16i), 454@(36@,82f), 536@(36@,82f))
Car.SetForwardSpeed(379@(253@,16i), 20.0)

:CPRACE_14831
305@(253@,16i) = 0
goto @CPRACE_14860

:CPRACE_14849
305@(253@,16i) = 0

:CPRACE_14860
goto @CPRACE_14878

:CPRACE_14867
305@(253@,16i) = 0

:CPRACE_14878
goto @CPRACE_14896

:CPRACE_14885
305@(253@,16i) = 0

:CPRACE_14896
goto @CPRACE_14914

:CPRACE_14903
305@(253@,16i) = 0

:CPRACE_14914
goto @CPRACE_14932

:CPRACE_14921
305@(253@,16i) = 0

:CPRACE_14932
if 
  221@ == 0
goto_if_false @CPRACE_15497
252@ = 0
255@ = 0

:CPRACE_14964
if 
  is_int_lvar_greater_than_int_lvar 256@ > 252@
goto_if_false @CPRACE_15046
set_lvar_int_to_lvar_int 447@ = 257@(252@,16i)
447@ -= 4
if 
  is_int_lvar_greater_than_int_lvar 447@ > 257@(253@,16i)
goto_if_false @CPRACE_15032
255@ += 1

:CPRACE_15032
252@ += 1
goto @CPRACE_14964

:CPRACE_15046
if 
  255@ > 0
goto_if_false @CPRACE_15497
if 
  not Char.LocateAnyMeansChar2D($scplayer, 395@(253@,16i), 150.0, 150.0, False)
goto_if_false @CPRACE_15497
if 
  not Char.LocateAnyMeans2D($scplayer, 331@(253@,16f), 347@(253@,16f), 150.0, 150.0, False)
goto_if_false @CPRACE_15497
if 
  not Char.LocateAnyMeans2D(395@(253@,16i), 331@(253@,16f), 347@(253@,16f), 40.0, 40.0, False)
goto_if_false @CPRACE_15497
if 
  not World.IsPointObscuredByAMissionEntity(331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 4.0, 4.0, 3.0)
goto_if_false @CPRACE_15497
if 
  not Char.IsOnScreen(395@(253@,16i))
goto_if_false @CPRACE_15497
if 
  not Camera.IsPointOnScreen(331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 4.0)
goto_if_false @CPRACE_15497
if 
  Char.IsSittingInAnyCar(395@(253@,16i))
goto_if_false @CPRACE_15390
Char.SetCoordinates(395@(253@,16i), 331@(253@,16f), 347@(253@,16f), 363@(253@,16f))
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ += 1
Car.TurnToFaceCoord(443@, 454@(36@,82f), 536@(36@,82f))
goto @CPRACE_15497

:CPRACE_15390
Car.MarkAsNoLongerNeeded(379@(253@,16i))
gosub @CPRACE_488
Char.WarpIntoCar(395@(253@,16i), 379@(253@,16i))
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ += 1
if 
  is_int_lvar_greater_than_int_lvar 250@ > 36@
goto_if_false @CPRACE_15497
Car.TurnToFaceCoord(379@(253@,16i), 454@(36@,82f), 536@(36@,82f))
Car.SetForwardSpeed(379@(253@,16i), 20.0)

:CPRACE_15497
36@ = 0
if 
  Char.LocateInCar3D(395@(253@,16i), 331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 322@, 323@, 324@, False)
goto_if_false @CPRACE_15570
36@ = 1
goto @CPRACE_15699

:CPRACE_15570
if 
  is_int_lvar_equal_to_int_var 395@(253@,16i) == $scplayer
goto_if_false @CPRACE_15699
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CPRACE_15699
Streaming.RequestCollision(331@(253@,16f), 347@(253@,16f))
Streaming.LoadScene(331@(253@,16f), 347@(253@,16f), 363@(253@,16f))
set_var_float_to_lvar_float $x = 363@(253@,16f)
$x += 1.0
Char.SetCoordinates(395@(253@,16i), 331@(253@,16f), 347@(253@,16f), 363@(253@,16f))

:CPRACE_15699
if 
  36@ == 1
goto_if_false @CPRACE_18115
if 
  49@ == 11
goto_if_false @CPRACE_15742
49@ = 12

:CPRACE_15742
if 
  is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_15808
if 
  221@ == 0
goto_if_false @CPRACE_15808
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
Blip.Remove(54@)

:CPRACE_15808
257@(253@,16i) += 1
if 
  is_int_lvar_greater_than_int_lvar 250@ > 257@(253@,16i)
goto_if_false @CPRACE_15909
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
set_lvar_float_to_lvar_float 331@(253@,16f) = 454@(36@,82f)
set_lvar_float_to_lvar_float 347@(253@,16f) = 536@(36@,82f)
set_lvar_float_to_lvar_float 363@(253@,16f) = 618@(36@,82f)
goto @CPRACE_16947

:CPRACE_15909
if 
  is_int_lvar_greater_than_int_lvar 224@ > 273@(253@,16i)
goto_if_false @CPRACE_15943
273@(253@,16i) += 1

:CPRACE_15943
if 
  is_int_lvar_equal_to_int_lvar 273@(253@,16i) == 224@
goto_if_false @CPRACE_16619
if 
  is_int_lvar_equal_to_int_var 395@(253@,16i) == $scplayer
goto_if_false @CPRACE_16208
if 
  224@ > 1
goto_if_false @CPRACE_16118
set_lvar_int_to_var_int 448@ = $game_timer
sub_int_lvar_from_int_lvar 448@ -= 206@
448@ /= 1000
if 
  is_int_var_greater_than_int_lvar $cprace_best_lap_times($race_selection,30i) > 448@
goto_if_false @CPRACE_16118
set_var_int_to_lvar_int $cprace_best_lap_times($race_selection,30i) = 448@
if 
  $race_selection == 25
goto_if_false @CPRACE_16092
Stat.RegisterFastestTime(StatId.BestLapTimeHotring, 448@)

:CPRACE_16092
if 
  $race_selection == 26
goto_if_false @CPRACE_16118
Stat.RegisterFastestTime(StatId.BestLapTimeDirttrack, 448@)

:CPRACE_16118
Checkpoint.Delete(449@)
Blip.Remove(54@)
49@ = 13
if 
  $show_race_selection == 0
goto_if_false @CPRACE_16187
if 
  229@ > 0
goto_if_false @CPRACE_16187
Text.PrintBig('M_FAIL', 3000, TextStyle.Middle)

:CPRACE_16187
363@(253@,16f) = 99999.0
goto @CPRACE_16612

:CPRACE_16208
if 
  not Car.IsDead(379@(253@,16i))
goto_if_false @CPRACE_16237
StuckCarCheck.Remove(379@(253@,16i))

:CPRACE_16237
if 
  221@ == 0
goto_if_false @CPRACE_16547
$task_status = Char.GetScriptTaskStatus(395@(253@,16i), 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CPRACE_16540
37@ = Sequence.Open()
47@ = Char.GetSpeed(395@(253@,16i))
cset_lvar_int_to_lvar_float 36@ =# 47@
36@ *= -100
36@ += 4000
if 
  10 > 36@
goto_if_false @CPRACE_16353
36@ = 10

:CPRACE_16353
Task.CarTempAction(-1, -1, TempAction.GoForward, 36@)
36@ = Math.RandomIntInRange(0, 5)
if or
  36@ == 0
  36@ == 1
goto_if_false @CPRACE_16429
Task.CarTempAction(-1, -1, TempAction.TurnLeft, 200)
Task.CarTempAction(-1, -1, TempAction.HandbrakeTurnLeft, 250000)
goto @CPRACE_16453

:CPRACE_16429
Task.CarTempAction(-1, -1, TempAction.TurnRight, 200)
Task.CarTempAction(-1, -1, TempAction.HandbrakeTurnRight, 250000)

:CPRACE_16453
Task.CarTempAction(-1, -1, TempAction.HandbrakeStraight, 250000)
Task.CarTempAction(-1, -1, TempAction.HandbrakeStraight, 250000)
Task.CarTempAction(-1, -1, TempAction.HandbrakeStraight, 250000)
Task.CarTempAction(-1, -1, TempAction.HandbrakeStraight, 250000)
Task.CarDriveWander(-1, -1, 100.0, DrivingMode.AvoidCars)
Sequence.Close(37@)
Char.PerformSequence(395@(253@,16i), 37@)
Sequence.Clear(37@)

:CPRACE_16540
goto @CPRACE_16598

:CPRACE_16547
$task_status = Char.GetScriptTaskStatus(395@(253@,16i), 1490)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CPRACE_16598
Task.CarDriveWander(395@(253@,16i), -1, 100.0, DrivingMode.AvoidCars)

:CPRACE_16598
363@(253@,16f) = 99999.0

:CPRACE_16612
goto @CPRACE_16947

:CPRACE_16619
if 
  is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_16876
set_lvar_int_to_var_int 448@ = $game_timer
sub_int_lvar_from_int_lvar 448@ -= 206@
448@ /= 1000
if 
  is_int_var_greater_than_int_lvar $cprace_best_lap_times($race_selection,30i) > 448@
goto_if_false @CPRACE_16868
set_var_int_to_lvar_int $cprace_best_lap_times($race_selection,30i) = 448@
if 
  $race_selection == 25
goto_if_false @CPRACE_16727
Stat.RegisterFastestTime(StatId.BestLapTimeHotring, 448@)

:CPRACE_16727
if 
  $race_selection == 26
goto_if_false @CPRACE_16753
Stat.RegisterFastestTime(StatId.BestLapTimeDirttrack, 448@)

:CPRACE_16753
set_lvar_int_to_lvar_int 452@ = 448@
452@ /= 60
set_lvar_int_to_lvar_int 36@ = 452@
36@ *= 60
set_lvar_int_to_lvar_int 453@ = 448@
sub_int_lvar_from_int_lvar 453@ -= 36@
if 
  10 > 453@
goto_if_false @CPRACE_16846
Text.PrintWith2NumbersNow('LAPTIM0', 452@, 453@, 5000, TextStyle.Middle)
goto @CPRACE_16868

:CPRACE_16846
Text.PrintWith2NumbersNow('LAPTIME', 452@, 453@, 5000, TextStyle.Middle)

:CPRACE_16868
set_lvar_int_to_var_int 206@ = $game_timer

:CPRACE_16876
257@(253@,16i) = 0
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
set_lvar_float_to_lvar_float 331@(253@,16f) = 454@(36@,82f)
set_lvar_float_to_lvar_float 347@(253@,16f) = 536@(36@,82f)
set_lvar_float_to_lvar_float 363@(253@,16f) = 618@(36@,82f)

:CPRACE_16947
if 
  is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_17404
if 
  363@(253@,16f) <> 99999.0
goto_if_false @CPRACE_17397
if 
  221@ == 0
goto_if_false @CPRACE_17065
54@ = Blip.AddForCoord(331@(253@,16f), 347@(253@,16f), 363@(253@,16f))
Blip.ChangeColor(54@, BlipColor.Red)
Blip.ChangeDisplay(54@, BlipDisplay.BlipOnly)
Blip.ChangeScale(54@, 3)
Checkpoint.Delete(449@)

:CPRACE_17065
if and
  is_int_lvar_equal_to_int_lvar 257@(253@,16i) == 249@
  is_int_lvar_equal_to_int_lvar 273@(253@,16i) == 251@
goto_if_false @CPRACE_17277
if 
  is_int_lvar_equal_to_constant 205@ == 3
goto_if_false @CPRACE_17222
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ -= 1
if 
  0 > 36@
goto_if_false @CPRACE_17162
36@ = 0

:CPRACE_17162
449@ = Checkpoint.Create(205@, 331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 454@(36@,82f), 536@(36@,82f), 618@(36@,82f), 325@)
goto @CPRACE_17270

:CPRACE_17222
449@ = Checkpoint.Create(CheckpointType.TubeEnd, 331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 0.0, 0.0, 0.0, 6.0)

:CPRACE_17270
goto @CPRACE_17397

:CPRACE_17277
if 
  221@ == 0
goto_if_false @CPRACE_17397
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ += 1
if 
  is_int_lvar_equal_to_int_lvar 257@(253@,16i) == 249@
goto_if_false @CPRACE_17344
36@ = 1

:CPRACE_17344
449@ = Checkpoint.Create(205@, 331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 454@(36@,82f), 536@(36@,82f), 618@(36@,82f), 325@)

:CPRACE_17397
goto @CPRACE_18115

:CPRACE_17404
if 
  363@(253@,16f) <> 99999.0
goto_if_false @CPRACE_18115
if 
  Char.IsInAnyHeli(395@(253@,16i))
goto_if_false @CPRACE_17659
if 
  not Car.IsDead(379@(253@,16i))
goto_if_false @CPRACE_17602
if 
  Char.IsInCar(395@(253@,16i), 379@(253@,16i))
goto_if_false @CPRACE_17545
Heli.GotoCoords(379@(253@,16i), 331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 0.0, 363@(253@,16f))
goto @CPRACE_17595

:CPRACE_17545
443@ = Char.StoreCarIsInNoSave(395@(253@,16i))
Heli.GotoCoords(443@, 331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 0.0, 363@(253@,16f))

:CPRACE_17595
goto @CPRACE_17652

:CPRACE_17602
443@ = Char.StoreCarIsInNoSave(395@(253@,16i))
Heli.GotoCoords(443@, 331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 0.0, 363@(253@,16f))

:CPRACE_17652
goto @CPRACE_18115

:CPRACE_17659
if 
  Char.IsInAnyPlane(395@(253@,16i))
goto_if_false @CPRACE_17889
if 
  not Car.IsDead(379@(253@,16i))
goto_if_false @CPRACE_17832
if 
  Char.IsInCar(395@(253@,16i), 379@(253@,16i))
goto_if_false @CPRACE_17775
Plane.GotoCoords(379@(253@,16i), 331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 0.0, 363@(253@,16f))
goto @CPRACE_17825

:CPRACE_17775
443@ = Char.StoreCarIsInNoSave(395@(253@,16i))
Plane.GotoCoords(443@, 331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 0.0, 363@(253@,16f))

:CPRACE_17825
goto @CPRACE_17882

:CPRACE_17832
443@ = Char.StoreCarIsInNoSave(395@(253@,16i))
Plane.GotoCoords(443@, 331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 0.0, 363@(253@,16f))

:CPRACE_17882
goto @CPRACE_18115

:CPRACE_17889
$task_status = Char.GetScriptTaskStatus(395@(253@,16i), 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CPRACE_18115
$task_status = Char.GetScriptTaskStatus(395@(253@,16i), 1490)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CPRACE_18115
if 
  not Car.IsDead(379@(253@,16i))
goto_if_false @CPRACE_18067
Task.CarDriveToCoord(395@(253@,16i), 379@(253@,16i), 331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 50.0, DriveMode.Racing, 716@(253@,16i), DrivingMode.AvoidCars)
if 
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 250@
goto_if_false @CPRACE_18060
StuckCarCheck.Remove(379@(253@,16i))

:CPRACE_18060
goto @CPRACE_18115

:CPRACE_18067
Task.CarDriveToCoord(395@(253@,16i), -1, 331@(253@,16f), 347@(253@,16f), 363@(253@,16f), 50.0, DriveMode.Racing, 716@(253@,16i), DrivingMode.AvoidCars)

:CPRACE_18115
goto @CPRACE_18575

:CPRACE_18122
if 
  221@ > 0
goto_if_false @CPRACE_18425

:CPRACE_18140
if 
  not is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_18418
if 
  not World.IsPointObscuredByAMissionEntity(732@, 733@, 734@, 2.5, 2.5, 2.5)
goto_if_false @CPRACE_18418
257@(253@,16i) = 1
Blip.Remove(412@(253@,16i))
Car.MarkAsNoLongerNeeded(379@(253@,16i))
Char.MarkAsNoLongerNeeded(395@(253@,16i))
set_lvar_float_to_lvar_float 331@(253@,16f) = 732@
set_lvar_float_to_lvar_float 347@(253@,16f) = 733@
set_lvar_float_to_lvar_float 363@(253@,16f) = 734@
set_var_float_to_lvar_float $heading = 735@
gosub @CPRACE_488
395@(253@,16i) = Char.CreateInsideCar(379@(253@,16i), PedType.CivMale, 700@(253@,16i))
Char.SetAreaVisible(395@(253@,16i), 221@)
Char.SetCanBeShotInVehicle(395@(253@,16i), False)
Char.SetSuffersCriticalHits(395@(253@,16i), False)
Char.SetNeverTargeted(395@(253@,16i), True)
Char.SetOnlyDamagedByPlayer(395@(253@,16i), True)
Char.SetCantBeDraggedOut(395@(253@,16i), False)
Char.SetDrownsInWater(395@(253@,16i), False)
Char.SetHealth(395@(253@,16i), 500)
Car.SetForwardSpeed(379@(253@,16i), 25.0)

:CPRACE_18418
goto @CPRACE_18575

:CPRACE_18425
if 
  not is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_18575
if 
  13 > 49@
goto_if_false @CPRACE_18528
if or
  is_int_lvar_equal_to_int_lvar 257@(442@,16i) == 257@(253@,16i)
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 257@(442@,16i)
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 249@
goto_if_false @CPRACE_18528
229@ += 1

:CPRACE_18528
if 
  not Char.IsInWater(395@(253@,16i))
goto_if_false @CPRACE_18575
Blip.Remove(412@(253@,16i))
Char.MarkAsNoLongerNeeded(395@(253@,16i))
Car.MarkAsNoLongerNeeded(379@(253@,16i))

:CPRACE_18575
253@ += 1
goto @CPRACE_12350

:CPRACE_18589
if 
  256@ > 1
goto_if_false @CPRACE_19516
Hud.DrawRect($6908, $6922, $6936, $6950, 0, 0, 0, 255)
Hud.DrawRect($6907, $6921, $6935, $6949, 134, 155, 184, 255)
Hud.DrawRect($tripskip_s2flag, $6916, $6930, $6944, 0, 0, 0, 255)
if 
  224@ > 1
goto_if_false @CPRACE_18949
Hud.DrawRect($6909, $6923, $6937, $6951, 0, 0, 0, 255)
Hud.DrawRect($6910, $6924, $6938, $6952, 134, 155, 184, 255)
Hud.DrawRect($6911, $6925, $6939, $6953, 0, 0, 0, 255)
set_lvar_int_to_lvar_int 36@ = 273@(442@,16i)
36@ += 1
if 
  is_int_lvar_greater_than_int_lvar 36@ > 224@
goto_if_false @CPRACE_18815
set_lvar_int_to_lvar_int 36@ = 224@

:CPRACE_18815
gosub @CPRACE_47593
$current_Language = Game.GetCurrentLanguage()
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CPRACE_18862
$6940 = 0.4235
goto @CPRACE_18907

:CPRACE_18862
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CPRACE_18897
$6940 = 0.3786
goto @CPRACE_18907

:CPRACE_18897
$6940 = 0.5

:CPRACE_18907
Text.SetScale($6940, $6954)
Text.SetJustify(True)
Text.SetWrapX(600.0)
Text.DisplayWith2Numbers($6912, $6926, 'RACES32', 36@, 224@)

:CPRACE_18949
set_lvar_int_to_lvar_int 450@ = 229@
450@ += 1
gosub @CPRACE_47593
if 
  223@ == 1
goto_if_false @CPRACE_19001
Text.SetColor(180, 25, 29, 255)

:CPRACE_19001
Text.SetScale($x_hud_scale, $y_hud_scale)
if 
  450@ == 1
goto_if_false @CPRACE_19044
Text.Display($x_hud_pos, $y_hud_pos, 'ST')

:CPRACE_19044
if 
  450@ == 2
goto_if_false @CPRACE_19079
Text.Display($x_hud_pos, $y_hud_pos, 'ND')

:CPRACE_19079
if 
  450@ == 3
goto_if_false @CPRACE_19114
Text.Display($x_hud_pos, $y_hud_pos, 'RD')

:CPRACE_19114
if 
  450@ > 3
goto_if_false @CPRACE_19149
Text.Display($x_hud_pos, $y_hud_pos, 'TH')

:CPRACE_19149
gosub @CPRACE_47593
if 
  223@ == 1
goto_if_false @CPRACE_19186
Text.SetColor(180, 25, 29, 255)

:CPRACE_19186
Text.SetScale($6932, $6946)
Text.SetCenter(True)
Text.DisplayWithNumber($6904, $6918, 'NUMBER', 450@)
gosub @CPRACE_47593
if 
  223@ == 1
goto_if_false @CPRACE_19255
Text.SetColor(180, 25, 29, 255)

:CPRACE_19255
Text.SetScale($6933, $6947)
Text.DisplayWithNumber($6905, $6919, 'OUT_OF', 256@)
if 
  13 > 49@
goto_if_false @CPRACE_19325
set_lvar_int_to_var_int 451@ = $game_timer
sub_int_var_from_int_lvar 451@ -= $coords
451@ /= 1000

:CPRACE_19325
set_lvar_int_to_lvar_int 452@ = 451@
452@ /= 60
if 
  452@ > 99
goto_if_false @CPRACE_19365
452@ = 99

:CPRACE_19365
set_lvar_int_to_lvar_int 36@ = 452@
36@ *= 60
set_lvar_int_to_lvar_int 453@ = 451@
sub_int_lvar_from_int_lvar 453@ -= 36@
gosub @CPRACE_47593
if 
  222@ == 1
goto_if_false @CPRACE_19433
Text.SetColor(180, 25, 29, 255)

:CPRACE_19433
Text.SetCenter(True)
Text.SetScale($6934, $6948)
if 
  453@ > 9
goto_if_false @CPRACE_19493
Text.DisplayWith2Numbers($6906, $6920, 'TIME', 452@, 453@)
goto @CPRACE_19516

:CPRACE_19493
Text.DisplayWith2Numbers($6906, $6920, 'TIME_0', 452@, 453@)

:CPRACE_19516
if 
  $race_selection == 7
goto_if_false @CPRACE_19541
gosub @CPRACE_46263

:CPRACE_19541
if or
  $race_selection == 25
  $race_selection == 26
goto_if_false @CPRACE_19573
gosub @CPRACE_50979

:CPRACE_19573
goto @CPRACE_20804

:CPRACE_19580
if 
  $show_race_selection == 0
goto_if_false @CPRACE_19765
if 
  450@ == 1
goto_if_false @CPRACE_19717
if or
  $race_selection == 7
  $race_selection == 8
goto_if_false @CPRACE_19648
$flag_bcesar_mission_counter += 1

:CPRACE_19648
if 
  $race_selection == 0
goto_if_false @CPRACE_19705
Text.PrintWithNumberBig('M_PASS', 1000, 5000, TextStyle.Middle)
Player.AddScore($player1, 1000)
Blip.Remove($cesar_contact_blip)
$flag_cesar_mission_counter += 1

:CPRACE_19705
Player.ClearWantedLevel($player1)
goto @CPRACE_19765

:CPRACE_19717
if or
  $race_selection == 0
  $race_selection == 7
  $race_selection == 8
goto_if_false @CPRACE_19765
Text.PrintBig('M_FAIL', 3000, TextStyle.Middle)

:CPRACE_19765
Hud.ClearTimer($coords)
if 
  is_int_var_greater_than_int_lvar $cprace_best_times($race_selection,30i) > 451@
goto_if_false @CPRACE_19858
if 
  256@ == 1
goto_if_false @CPRACE_19827
set_lvar_int_to_var_int 451@ = $coords
451@ /= 1000

:CPRACE_19827
set_var_int_to_lvar_int $cprace_best_times($race_selection,30i) = 451@
Stat.RegisterFastestTime(145@($race_selection,30i), 451@)
222@ = 1

:CPRACE_19858
if 
  256@ > 1
goto_if_false @CPRACE_19930
if 
  is_int_var_greater_than_int_lvar $cprace_best_position($race_selection,30i) > 450@
goto_if_false @CPRACE_19930
set_var_int_to_lvar_int $cprace_best_position($race_selection,30i) = 450@
Stat.RegisterBestPosition(175@($race_selection,30i), 450@)
223@ = 1

:CPRACE_19930
$tripskip_s2flag = 208.0665
$6916 = 297.9241
$6930 = 474.2788
$6944 = 383.4714
$x_hud_pos = 229.648
$y_hud_pos = 313.8785
$x_hud_scale = 0.5858
$y_hud_scale = 2.5296
$6904 = 455.3051
$6932 = 0.4116
$6919 = 339.1096
$6933 = 0.5858
gosub @CPRACE_48584
set_var_int_to_var_int $coords = $game_timer
$coords += 8000
49@ = 14
goto @CPRACE_20804

:CPRACE_20087
$current_Language = Game.GetCurrentLanguage()
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CPRACE_20125
set_var_float_to_var_float $x_hud_scale = $6933
goto @CPRACE_20133

:CPRACE_20125
set_var_float_to_var_float $x_hud_scale = $6932

:CPRACE_20133
if 
  256@ == 1
goto_if_false @CPRACE_20201
set_var_float_to_var_float $y = $6916
$y += 25.0
Hud.DrawWindow($tripskip_s2flag, $y, $6930, $6944, 'DUMMY', 3)
goto @CPRACE_20276

:CPRACE_20201
if 
  450@ == 1
goto_if_false @CPRACE_20251
Hud.DrawWindow($tripskip_s2flag, $6916, $6930, $6944, 'RACES18', 3)
goto @CPRACE_20276

:CPRACE_20251
Hud.DrawWindow($tripskip_s2flag, $6916, $6930, $6944, 'RACES_8', 3)

:CPRACE_20276
if 
  256@ > 1
goto_if_false @CPRACE_20548
gosub @CPRACE_47593
Text.SetJustify(True)
Text.SetScale($x_hud_scale, $y_hud_scale)
if 
  223@ == 1
goto_if_false @CPRACE_20355
Text.Display($x_hud_pos, $y_hud_pos, 'TOP_POS')
goto @CPRACE_20372

:CPRACE_20355
Text.Display($x_hud_pos, $y_hud_pos, 'RACES30')

:CPRACE_20372
gosub @CPRACE_47593
Text.SetRightJustify(True)
Text.SetScale($x_hud_scale, $y_hud_scale)
Text.SetColor(180, 180, 180, 255)
if 
  450@ == 1
goto_if_false @CPRACE_20440
Text.Display($6904, $y_hud_pos, 'RACES26')

:CPRACE_20440
if 
  450@ == 2
goto_if_false @CPRACE_20475
Text.Display($6904, $y_hud_pos, 'RACES27')

:CPRACE_20475
if 
  450@ == 3
goto_if_false @CPRACE_20510
Text.Display($6904, $y_hud_pos, 'RACES28')

:CPRACE_20510
if 
  450@ > 3
goto_if_false @CPRACE_20548
Text.DisplayWithNumber($6904, $y_hud_pos, 'RACES29', 450@)

:CPRACE_20548
gosub @CPRACE_47593
Text.SetJustify(True)
Text.SetScale($x_hud_scale, $y_hud_scale)
if 
  222@ == 1
goto_if_false @CPRACE_20609
Text.Display($x_hud_pos, $6919, 'TOPTIME')
goto @CPRACE_20626

:CPRACE_20609
Text.Display($x_hud_pos, $6919, 'RACES31')

:CPRACE_20626
set_lvar_int_to_lvar_int 452@ = 451@
452@ /= 60
set_lvar_int_to_lvar_int 36@ = 452@
36@ *= 60
set_lvar_int_to_lvar_int 453@ = 451@
sub_int_lvar_from_int_lvar 453@ -= 36@
gosub @CPRACE_47593
Text.SetRightJustify(True)
Text.SetScale($x_hud_scale, $y_hud_scale)
Text.SetColor(180, 180, 180, 255)
if 
  453@ > 9
goto_if_false @CPRACE_20753
Text.DisplayWith2Numbers($6904, $6919, 'TIME', 452@, 453@)
goto @CPRACE_20776

:CPRACE_20753
Text.DisplayWith2Numbers($6904, $6919, 'TIME_0', 452@, 453@)

:CPRACE_20776
if 
  is_int_var_greater_than_int_var $game_timer > $coords
goto_if_false @CPRACE_20797
return 

:CPRACE_20797
goto @CPRACE_20804

:CPRACE_20804
goto @CPRACE_2634

:CPRACE_20811
switch_start $race_selection {numCases} 27 {hasDefaultCase} 0 {defaultLabel} @CPRACE_46261 {caseNum1} 0 {caseLabel1} @CPRACE_21069 {caseNum2} 1 {caseLabel2} @CPRACE_21615 {caseNum3} 2 {caseLabel3} @CPRACE_22057 {caseNum4} 3 {caseLabel4} @CPRACE_22739 {caseNum5} 4 {caseLabel5} @CPRACE_23421 {caseNum6} 5 {caseLabel6} @CPRACE_24163 {caseNum7} 6 {caseLabel7} @CPRACE_25115
switch_continued 7 {caseLabel1} @CPRACE_26037 {caseNum2} 8 {caseLabel2} @CPRACE_27091 {caseNum3} 9 {caseLabel3} @CPRACE_28205 {caseNum4} 10 {caseLabel4} @CPRACE_28893 {caseNum5} 11 {caseLabel5} @CPRACE_29611 {caseNum6} 12 {caseLabel6} @CPRACE_30203 {caseNum7} 13 {caseLabel7} @CPRACE_30801 {caseNum8} 14 {caseLabel8} @CPRACE_32149 {caseNum9} 15 {caseLabel9} @CPRACE_33527
switch_continued 16 {caseLabel1} @CPRACE_34455 {caseNum2} 17 {caseLabel2} @CPRACE_35317 {caseNum3} 18 {caseLabel3} @CPRACE_36239 {caseNum4} 19 {caseLabel4} @CPRACE_36981 {caseNum5} 20 {caseLabel5} @CPRACE_38119 {caseNum6} 21 {caseLabel6} @CPRACE_40067 {caseNum7} 22 {caseLabel7} @CPRACE_42255 {caseNum8} 23 {caseLabel8} @CPRACE_43153 {caseNum9} 24 {caseLabel9} @CPRACE_44051
switch_continued 25 {caseLabel1} @CPRACE_44979 {caseNum2} 26 {caseLabel2} @CPRACE_45528 {caseNum3} -1 {caseLabel3} @CPRACE_46261 {caseNum4} -1 {caseLabel4} @CPRACE_46261 {caseNum5} -1 {caseLabel5} @CPRACE_46261 {caseNum6} -1 {caseLabel6} @CPRACE_46261 {caseNum7} -1 {caseLabel7} @CPRACE_46261 {caseNum8} -1 {caseLabel8} @CPRACE_46261 {caseNum9} -1 {caseLabel9} @CPRACE_46261

:CPRACE_21069
454@ = 1492.407
536@ = -1872.365
618@ = 15.8
455@ = 1384.263
537@ = -1872.015
619@ = 12.3828
456@ = 1075.442
538@ = -1851.978
620@ = 12.391
457@ = 647.3663
539@ = -1734.185
621@ = 12.4844
458@ = 627.2474
540@ = -1228.55
622@ = 16.9893
459@ = 497.0043
541@ = -1282.818
623@ = 14.6513
460@ = 500.412
542@ = -1326.649
624@ = 14.8178
461@ = 401.0033
543@ = -1404.457
625@ = 32.8973
462@ = 420.3067
544@ = -1450.714
626@ = 29.5842
463@ = 329.1244
545@ = -1631.112
627@ = 32.1247
464@ = 366.4376
546@ = -1647.349
628@ = 31.7176
465@ = 369.98
547@ = -2030.34
629@ = 5.55
250@ = 12
256@ = 6
set_lvar_int_to_constant 700@ = 133
set_lvar_int_to_constant 701@ = 217
set_lvar_int_to_constant 702@ = 157
set_lvar_int_to_constant 703@ = 248
set_lvar_int_to_constant 704@ = 290
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 517
set_lvar_int_to_constant 717@ = 534
set_lvar_int_to_constant 718@ = 517
set_lvar_int_to_constant 719@ = 536
set_lvar_int_to_constant 720@ = 567
set_lvar_int_to_constant 721@ = 536
209@ = 6
215@ = 0
210@ = 8
216@ = 0
211@ = 2
217@ = 1
212@ = 0
218@ = 0
213@ = 3
219@ = 3
goto @CPRACE_46261

:CPRACE_21615
454@ = 2875.192
536@ = -1458.85
618@ = 10.5892
455@ = 2875.362
537@ = -1404.768
619@ = 10.7143
456@ = 2797.037
538@ = -1291.152
620@ = 41.389
457@ = 2609.984
539@ = -1256.458
621@ = 47.9322
458@ = 2371.282
540@ = -1280.477
622@ = 23.6341
459@ = 2450.557
541@ = -1444.24
623@ = 23.6318
460@ = 2618.436
542@ = -1444.826
624@ = 31.6234
461@ = 2657.3
543@ = -1404.327
625@ = 30.0795
462@ = 2680.506
544@ = -1489.556
626@ = 30.2098
463@ = 2755.952
545@ = -1488.515
627@ = 29.3812
set_lvar_float_to_lvar_float 464@ = 454@
set_lvar_float_to_lvar_float 546@ = 536@
set_lvar_float_to_lvar_float 628@ = 618@
250@ = 11
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 461
set_lvar_int_to_constant 717@ = 521
set_lvar_int_to_constant 718@ = 522
set_lvar_int_to_constant 719@ = 461
set_lvar_int_to_constant 720@ = 521
set_lvar_int_to_constant 721@ = 522
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_22057
454@ = 261.7816
536@ = -1243.111
618@ = 71.8851
455@ = 312.9973
537@ = -1206.853
619@ = 74.9057
456@ = 440.3485
538@ = -1186.672
620@ = 67.2076
457@ = 623.8817
539@ = -1109.967
621@ = 45.6186
458@ = 745.0934
540@ = -951.0351
622@ = 53.766
459@ = 873.6384
541@ = -860.0975
623@ = 76.5242
460@ = 1053.818
542@ = -777.5837
624@ = 104.7803
461@ = 1248.368
543@ = -731.3474
625@ = 93.7346
462@ = 1372.402
544@ = -675.6946
626@ = 92.6217
463@ = 1328.011
545@ = -583.8703
627@ = 93.4113
464@ = 1167.315
546@ = -633.0795
628@ = 102.7501
465@ = 968.4116
547@ = -646.252
629@ = 120.7201
466@ = 791.077
548@ = -800.4396
630@ = 65.0537
467@ = 620.9355
549@ = -905.8031
631@ = 62.1261
468@ = 454.9853
550@ = -1013.546
632@ = 92.0091
469@ = 276.8912
551@ = -1104.159
633@ = 80.0612
470@ = 141.6012
552@ = -1247.267
634@ = 43.792
471@ = 192.4688
553@ = -1380.597
635@ = 47.6608
set_lvar_float_to_lvar_float 472@ = 454@
set_lvar_float_to_lvar_float 554@ = 536@
set_lvar_float_to_lvar_float 636@ = 618@
250@ = 19
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 461
set_lvar_int_to_constant 717@ = 521
set_lvar_int_to_constant 718@ = 522
set_lvar_int_to_constant 719@ = 461
set_lvar_int_to_constant 720@ = 521
set_lvar_int_to_constant 721@ = 521
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_22739
454@ = 1927.48
536@ = -1515.516
618@ = 2.2978
455@ = 2018.401
537@ = -1515.405
619@ = 2.4054
456@ = 2179.006
538@ = -1559.661
620@ = 1.1797
457@ = 2370.138
539@ = -1619.553
621@ = 7.3323
458@ = 2570.841
540@ = -1619.056
622@ = 17.6841
459@ = 2756.846
541@ = -1657.173
623@ = 11.5191
460@ = 2915.178
542@ = -1534.362
624@ = 9.875
461@ = 2916.228
543@ = -1333.491
625@ = 9.875
462@ = 2819.331
544@ = -1142.638
626@ = 15.7018
463@ = 2622.646
545@ = -1152.872
627@ = 50.4181
464@ = 2423.186
546@ = -1154.169
628@ = 30.5642
465@ = 2167.046
547@ = -1101.915
629@ = 24.3864
466@ = 2006.077
548@ = -1027.839
630@ = 34.3152
467@ = 1835.824
549@ = -991.5906
631@ = 35.8824
468@ = 1636.313
550@ = -1005.15
632@ = 49.8831
469@ = 1617.024
551@ = -1215.833
633@ = 51.0566
470@ = 1577.972
552@ = -1417.831
634@ = 27.6154
471@ = 1722.823
553@ = -1525.932
635@ = 18.3927
set_lvar_float_to_lvar_float 472@ = 454@
set_lvar_float_to_lvar_float 554@ = 536@
set_lvar_float_to_lvar_float 636@ = 618@
250@ = 19
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 461
set_lvar_int_to_constant 717@ = 521
set_lvar_int_to_constant 718@ = 522
set_lvar_int_to_constant 719@ = 461
set_lvar_int_to_constant 720@ = 521
set_lvar_int_to_constant 721@ = 521
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_23421
454@ = 1357.656
536@ = -1361.671
618@ = 12.3828
455@ = 1357.689
537@ = -1186.404
619@ = 20.2744
456@ = 1369.741
538@ = -1000.526
620@ = 27.02
457@ = 1505.818
539@ = -868.7814
621@ = 61.0462
458@ = 1452.794
540@ = -711.5325
622@ = 89.8766
459@ = 1253.572
541@ = -729.2587
623@ = 93.4292
460@ = 1059.306
542@ = -775.9847
624@ = 105.3241
461@ = 878.665
543@ = -858.1913
625@ = 76.8826
462@ = 721.7916
544@ = -980.4561
626@ = 51.9555
463@ = 571.0251
545@ = -1045.203
627@ = 72.2876
464@ = 373.2952
546@ = -1075.644
628@ = 72.8049
465@ = 288.4963
547@ = -1249.747
629@ = 72.721
466@ = 481.2224
548@ = -1240.976
630@ = 19.3512
467@ = 518.334
549@ = -1377.603
631@ = 14.9457
468@ = 448.0064
550@ = -1540.832
632@ = 27.8796
469@ = 487.4595
551@ = -1661.575
633@ = 20.74
470@ = 687.2253
552@ = -1673.48
634@ = 10.7959
471@ = 866.4786
553@ = -1584.698
635@ = 12.3828
472@ = 1066.729
554@ = -1572.305
636@ = 12.375
473@ = 1261.214
555@ = -1572.243
637@ = 12.3906
set_lvar_float_to_lvar_float 474@ = 454@
set_lvar_float_to_lvar_float 556@ = 536@
set_lvar_float_to_lvar_float 638@ = 618@
250@ = 21
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 558
set_lvar_int_to_constant 717@ = 555
set_lvar_int_to_constant 718@ = 496
set_lvar_int_to_constant 719@ = 555
set_lvar_int_to_constant 720@ = 405
set_lvar_int_to_constant 721@ = 550
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_24163
454@ = 852.0544
536@ = -1405.622
618@ = 12.217
455@ = 1102.789
537@ = -1405.766
619@ = 12.428
456@ = 1353.038
538@ = -1405.544
620@ = 12.3251
457@ = 1600.965
539@ = -1440.852
621@ = 12.3828
458@ = 1850.622
540@ = -1461.777
622@ = 12.3984
454@ = 831.7679
536@ = -1405.588
618@ = 12.3849
455@ = 1031.822
537@ = -1405.615
619@ = 12.0966
456@ = 1232.144
538@ = -1405.732
620@ = 12.0633
457@ = 1429.508
539@ = -1439.091
621@ = 12.3828
458@ = 1630.18
540@ = -1440.858
622@ = 12.3828
459@ = 1829.527
541@ = -1460.804
623@ = 12.3448
460@ = 2029.979
542@ = -1463.381
624@ = 14.4553
461@ = 2175.823
543@ = -1384.403
625@ = 22.8281
462@ = 2342.427
544@ = -1442.324
626@ = 22.8281
463@ = 2191.875
545@ = -1545.934
627@ = 1.1724
464@ = 1997.078
546@ = -1499.951
628@ = 2.3804
465@ = 1797.065
547@ = -1500.874
629@ = 6.8307
466@ = 1641.002
548@ = -1439.345
630@ = 27.0747
467@ = 1627.555
549@ = -1280.703
631@ = 41.885
468@ = 1683.507
550@ = -1089.012
632@ = 55.7917
469@ = 1566.054
551@ = -927.5945
633@ = 42.7541
470@ = 1366.105
552@ = -933.6759
634@ = 33.1953
471@ = 1166.087
553@ = -941.9011
635@ = 41.8697
472@ = 966.715
554@ = -962.2038
636@ = 38.1905
473@ = 784.2582
555@ = -1043.979
637@ = 23.6177
474@ = 677.2552
556@ = -1164.128
638@ = 14.164
475@ = 627.7037
557@ = -1337.904
639@ = 12.4227
set_lvar_float_to_lvar_float 476@ = 454@
set_lvar_float_to_lvar_float 558@ = 536@
set_lvar_float_to_lvar_float 640@ = 618@
250@ = 23
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 429
set_lvar_int_to_constant 717@ = 541
set_lvar_int_to_constant 718@ = 402
set_lvar_int_to_constant 719@ = 429
set_lvar_int_to_constant 720@ = 541
set_lvar_int_to_constant 721@ = 506
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_25115
454@ = 1331.926
536@ = -2280.51
618@ = 13.1732
455@ = 1331.775
537@ = -2541.682
619@ = 13.1765
456@ = 1544.309
538@ = -2684.983
620@ = 7.5074
457@ = 1945.947
539@ = -2685.131
621@ = 6.5549
458@ = 2175.141
540@ = -2557.994
622@ = 13.173
459@ = 2352.719
541@ = -2222.223
623@ = 13.1737
460@ = 2740.522
542@ = -2168.782
624@ = 10.7349
461@ = 2844.832
543@ = -1812.965
625@ = 10.6737
462@ = 2926.094
544@ = -1421.263
626@ = 10.657
463@ = 2888.946
545@ = -1022.685
627@ = 10.6607
464@ = 2896.483
546@ = -621.0989
628@ = 10.63
465@ = 2718.623
547@ = -273.2495
629@ = 27.6705
466@ = 2774.299
548@ = 119.9424
630@ = 22.8712
467@ = 2612.82
549@ = 327.3945
631@ = 25.6764
468@ = 2213.983
550@ = 324.9601
632@ = 32.5307
469@ = 1817.184
551@ = 278.3323
633@ = 21.5314
470@ = 1621.185
552@ = 312.8743
634@ = 20.8534
471@ = 1608.029
553@ = 372.27
635@ = 26.4284
472@ = 1658.672
554@ = 317.3336
636@ = 30.0474
473@ = 1651.536
555@ = -68.8376
637@ = 35.9156
474@ = 1668.653
556@ = -369.1116
638@ = 34.3923
475@ = 1699.785
557@ = -665.8258
639@ = 43.3311
476@ = 1640.03
558@ = -1062.329
640@ = 60.8035
477@ = 1594.408
559@ = -1457.834
641@ = 28.3679
478@ = 1622.355
560@ = -1856.505
642@ = 25.4707
479@ = 1452.159
561@ = -2117.271
643@ = 13.1726
set_lvar_float_to_lvar_float 480@ = 454@
set_lvar_float_to_lvar_float 562@ = 536@
set_lvar_float_to_lvar_float 644@ = 618@
250@ = 27
256@ = 4
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 451
set_lvar_int_to_constant 717@ = 429
set_lvar_int_to_constant 718@ = 415
set_lvar_int_to_constant 719@ = 541
set_lvar_int_to_constant 720@ = 451
set_lvar_int_to_constant 721@ = 411
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_26037
454@ = 1559.983
536@ = 17.468
618@ = 26.1563
455@ = 1556.426
537@ = -94.0345
619@ = 19.4957
456@ = 1434.738
538@ = -214.9645
620@ = 7.3527
457@ = 1321.254
539@ = -195.8984
621@ = 15.7447
458@ = 1211.007
540@ = -102.6927
622@ = 39.3603
459@ = 892.2923
541@ = -88.1123
623@ = 22.4405
460@ = 789.9247
542@ = -124.3171
624@ = 21.3365
461@ = 659.6545
543@ = -196.7497
625@ = 11.7663
462@ = 419.4744
544@ = -302.5507
626@ = 6.446
463@ = 289.8085
545@ = -380.3828
627@ = 7.8753
464@ = 207.4451
546@ = -298.923
628@ = 0.4375
465@ = 182.497
547@ = -217.8004
629@ = 0.4216
466@ = 22.0727
548@ = -207.7681
630@ = 0.5827
467@ = -114.231
549@ = -132.3417
631@ = 2.1236
468@ = -38.4818
550@ = 140.8613
632@ = 2.1234
469@ = -141.4718
551@ = 187.6611
633@ = 6.2406
470@ = -329.7878
552@ = 173.921
634@ = 5.403
471@ = -507.6872
553@ = 221.0444
635@ = 8.7633
472@ = -661.1096
554@ = 226.3879
636@ = 16.7064
473@ = -618.4406
555@ = -67.8995
637@ = 62.3489
474@ = -507.8417
556@ = -45.9077
638@ = 59.2556
475@ = -520.6511
557@ = 79.6011
639@ = 32.2117
476@ = -715.4454
558@ = 225.1288
640@ = 0.2899
477@ = -770.0811
559@ = 130.1324
641@ = 9.4651
478@ = -738.1151
560@ = 25.555
642@ = 32.2336
479@ = -885.785
561@ = -41.3927
643@ = 33.2347
480@ = -716.4521
562@ = 5.1206
644@ = 59.1055
481@ = -759.2693
563@ = -92.0455
645@ = 64.8686
482@ = -826.881
564@ = -167.7603
646@ = 64.99
483@ = -728.9467
565@ = -173.5218
647@ = 65.1248
484@ = -544.8638
566@ = -189.4458
648@ = 77.8383
250@ = 31
256@ = 4
set_lvar_int_to_constant 700@ = 101
set_lvar_int_to_constant 701@ = 23
set_lvar_int_to_constant 702@ = 290
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 439
set_lvar_int_to_constant 717@ = 475
set_lvar_int_to_constant 718@ = 526
set_lvar_int_to_constant 719@ = 475
209@ = 4
215@ = 80
210@ = 3
216@ = 80
211@ = 5
217@ = 80
goto @CPRACE_46261

:CPRACE_27091
454@ = -544.8638
536@ = -189.4458
618@ = 81.8383
455@ = -728.9467
537@ = -173.5218
619@ = 65.1248
456@ = -826.881
538@ = -167.7603
620@ = 64.99
457@ = -759.2693
539@ = -92.0455
621@ = 64.8686
458@ = -716.4521
540@ = 5.1206
622@ = 59.1055
459@ = -885.785
541@ = -41.3927
623@ = 33.2347
460@ = -738.1151
542@ = 25.555
624@ = 32.2336
461@ = -770.0811
543@ = 130.1324
625@ = 9.4651
462@ = -715.4454
544@ = 225.1288
626@ = 0.2899
463@ = -624.6024
545@ = 187.2405
627@ = 15.4381
464@ = -520.6511
546@ = 79.6011
628@ = 32.2117
465@ = -507.8417
547@ = -45.9077
629@ = 59.2556
466@ = -618.4406
548@ = -67.8995
630@ = 62.3489
467@ = -658.3503
549@ = 146.4855
631@ = 28.2693
468@ = -507.6872
550@ = 221.0444
632@ = 8.7633
469@ = -329.7878
551@ = 173.921
633@ = 5.5
470@ = -149.4881
552@ = 189.6471
634@ = 7.2644
471@ = -38.4818
553@ = 140.8613
635@ = 2.1234
472@ = -114.231
554@ = -132.3417
636@ = 2.1236
473@ = 22.0727
555@ = -207.7681
637@ = 0.5827
474@ = 182.497
556@ = -217.8004
638@ = 0.4216
475@ = 207.4451
557@ = -298.923
639@ = 0.4375
476@ = 279.6441
558@ = -378.3416
640@ = 7.9003
477@ = 419.4744
559@ = -302.5507
641@ = 6.446
478@ = 573.52
560@ = -202.8494
642@ = 13.7118
479@ = 748.4567
561@ = -150.8298
643@ = 18.3722
480@ = 820.4231
562@ = -111.5991
644@ = 23.2476
481@ = 1000.325
563@ = -80.3516
645@ = 21.0326
482@ = 1187.393
564@ = -83.879
646@ = 35.2576
483@ = 1265.847
565@ = -153.0857
647@ = 36.8097
484@ = 1434.738
566@ = -214.9645
648@ = 7.3527
485@ = 1548.963
567@ = -146.2702
649@ = 16.4932
486@ = 1559.983
568@ = 17.468
650@ = 23.1563
250@ = 33
256@ = 4
set_lvar_int_to_constant 700@ = 101
set_lvar_int_to_constant 701@ = 23
set_lvar_int_to_constant 702@ = 290
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 477
set_lvar_int_to_constant 717@ = 560
set_lvar_int_to_constant 718@ = 562
set_lvar_int_to_constant 719@ = 477
209@ = 4
215@ = 80
210@ = 3
216@ = 80
211@ = 5
217@ = 80
goto @CPRACE_46261

:CPRACE_28205
454@ = -796.8273
536@ = -2468.529
618@ = 83.6549
455@ = -938.5198
537@ = -2364.511
619@ = 57.0608
456@ = -1065.656
538@ = -2379.436
620@ = 46.5486
457@ = -1247.823
539@ = -2313.528
621@ = 19.8007
458@ = -1356.137
540@ = -2180.365
622@ = 21.3467
459@ = -1541.303
541@ = -2154.782
623@ = 5.8607
460@ = -1674.876
542@ = -2235.132
624@ = 33.8691
461@ = -1839.937
543@ = -2349.368
625@ = 31.9587
462@ = -1841.037
544@ = -2454.4
626@ = 27.4044
463@ = -1702.044
545@ = -2587.976
627@ = 26.1706
464@ = -1508.332
546@ = -2634.733
628@ = 46.8766
465@ = -1310.905
547@ = -2637.832
629@ = 12.808
466@ = -1122.617
548@ = -2652.592
630@ = 15.4117
467@ = -934.2363
549@ = -2668.473
631@ = 80.3479
468@ = -753.5882
550@ = -2672.785
632@ = 84.0788
469@ = -668.018
551@ = -2496.988
633@ = 37.5787
470@ = -550.4019
552@ = -2334.539
634@ = 26.8502
471@ = -366.3848
553@ = -2257.25
635@ = 41.7144
472@ = -276.1146
554@ = -2189.364
636@ = 27.7264
250@ = 19
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 468
set_lvar_int_to_constant 717@ = 468
set_lvar_int_to_constant 718@ = 468
set_lvar_int_to_constant 719@ = 468
set_lvar_int_to_constant 720@ = 468
set_lvar_int_to_constant 721@ = 468
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_28893
454@ = -1936.791
536@ = -2452.235
618@ = 29.6377
455@ = -1862.54
537@ = -2379.437
619@ = 30.1425
456@ = -1690.144
538@ = -2303.846
620@ = 43.3626
457@ = -1676.317
539@ = -2132.699
621@ = 35.2082
458@ = -1855.421
540@ = -2087.117
622@ = 58.3697
459@ = -1919.802
541@ = -1937.457
623@ = 78.5313
460@ = -1749.334
542@ = -1899.519
624@ = 95.8199
461@ = -1571.292
543@ = -1904.166
625@ = 84.3076
462@ = -1483.784
544@ = -1783.286
626@ = 49.8768
463@ = -1429.878
545@ = -1915.641
627@ = 25.1751
464@ = -1301.801
546@ = -2084.054
628@ = 22.9116
465@ = -1269.913
547@ = -2248.736
629@ = 21.3152
466@ = -1146.514
548@ = -2371.508
630@ = 27.0467
467@ = -959.5773
549@ = -2306.27
631@ = 56.1859
468@ = -867.9595
550@ = -2180.891
632@ = 25.6567
469@ = -843.4177
551@ = -2018.734
633@ = 20.9828
470@ = -767.7295
552@ = -1865.533
634@ = 11.4149
471@ = -666.3682
553@ = -1996.276
635@ = 23.9143
472@ = -486.6196
554@ = -2025.765
636@ = 48.245
473@ = -323.4612
555@ = -1914.206
637@ = 11.1951
250@ = 20
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 568
set_lvar_int_to_constant 717@ = 568
set_lvar_int_to_constant 718@ = 568
set_lvar_int_to_constant 719@ = 568
set_lvar_int_to_constant 720@ = 568
set_lvar_int_to_constant 721@ = 568
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_29611
454@ = -2728.309
536@ = -310.8731
618@ = 6.0391
455@ = -2668.671
537@ = -251.6207
619@ = 5.4984
456@ = -2655.978
538@ = -104.6751
620@ = 2.9982
457@ = -2460.835
539@ = -69.9766
621@ = 31.2
458@ = -2421.263
540@ = 55.6089
622@ = 34.0156
459@ = -2545.26
541@ = 137.9111
623@ = 15.2177
460@ = -2604.136
542@ = 136.8579
624@ = 3.1797
461@ = -2558.661
543@ = 245.625
625@ = 10.7931
462@ = -2578.504
544@ = 345.8331
626@ = 7.2168
463@ = -2706.282
545@ = 317.6024
627@ = 3.1797
464@ = -2809.244
546@ = 232.3965
628@ = 6.0313
465@ = -2757.749
547@ = 138.2248
629@ = 5.9033
466@ = -2758.39
548@ = -43.991
630@ = 6.1263
467@ = -2756.892
549@ = -184.0135
631@ = 5.8843
468@ = -2812.464
550@ = -299.5974
632@ = 6.039
set_lvar_float_to_lvar_float 469@ = 454@
set_lvar_float_to_lvar_float 551@ = 536@
set_lvar_float_to_lvar_float 633@ = 618@
250@ = 16
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 571
set_lvar_int_to_constant 717@ = 571
set_lvar_int_to_constant 718@ = 571
set_lvar_int_to_constant 719@ = 571
set_lvar_int_to_constant 720@ = 571
set_lvar_int_to_constant 721@ = 571
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_30203
454@ = -2657.164
536@ = 1153.872
618@ = 34.7396
455@ = -2593.221
537@ = 1217.854
619@ = 34.7402
456@ = -2312.288
538@ = 1176.387
620@ = 49.608
457@ = -2157.193
539@ = 1268.197
621@ = 26.0127
458@ = -1959.526
540@ = 1287.205
622@ = 6.7514
459@ = -1741.076
541@ = 1325.298
623@ = 6.083
460@ = -1759.865
542@ = 1269.147
624@ = 8.8598
461@ = -1884.242
543@ = 1160.691
625@ = 45.0107
462@ = -1897.101
544@ = 960.1686
626@ = 34.7366
463@ = -1998.178
545@ = 841.1865
627@ = 45.0219
464@ = -2189.259
546@ = 808.5273
628@ = 56.0602
465@ = -2389.186
547@ = 808.6409
629@ = 34.7495
466@ = -2589.692
548@ = 808.5219
630@ = 49.5411
467@ = -2711.488
549@ = 812.8809
631@ = 48.9309
468@ = -2750.894
550@ = 890.6993
632@ = 65.8952
469@ = -2653.912
551@ = 1157.345
633@ = 34.7386
250@ = 16
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 559
set_lvar_int_to_constant 717@ = 589
set_lvar_int_to_constant 718@ = 559
set_lvar_int_to_constant 719@ = 565
set_lvar_int_to_constant 720@ = 558
set_lvar_int_to_constant 721@ = 602
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_30801
454@ = -1584.141
536@ = 1053.439
618@ = 6.8392
455@ = -1584.128
537@ = 1150.261
619@ = 6.8387
456@ = -1699.077
538@ = 1312.02
620@ = 6.8293
457@ = -1875.891
539@ = 1352.059
621@ = 6.8322
458@ = -2060.741
540@ = 1274.452
622@ = 8.0659
459@ = -2258.306
541@ = 1257.682
623@ = 42.6038
460@ = -2143.281
542@ = 1075.652
624@ = 79.1249
461@ = -2143.141
543@ = 896.6196
625@ = 79.6432
462@ = -2143.084
544@ = 696.6971
626@ = 67.6451
463@ = -2146.737
545@ = 532.8465
627@ = 34.8181
464@ = -2055.564
546@ = 504.0781
628@ = 34.8168
465@ = -1968.175
547@ = 605.5881
629@ = 34.8199
466@ = -1820.393
548@ = 475.0548
630@ = 23.4295
467@ = -1876.903
549@ = 288.4981
631@ = 32.6699
468@ = -1897.585
550@ = 87.7896
632@ = 37.9384
469@ = -1911.151
551@ = -214.2394
633@ = 38.032
470@ = -1910.974
552@ = -515.5727
634@ = 38.0323
471@ = -1910.675
553@ = -816.3037
635@ = 44.7432
472@ = -1910.658
554@ = -1117.409
636@ = 38.0214
473@ = -1907.276
555@ = -1317.626
637@ = 39.3164
474@ = -1996.896
556@ = -1289.264
638@ = 37.3518
475@ = -2153.53
557@ = -1031.597
639@ = 32.3638
476@ = -2205.567
558@ = -859.1885
640@ = 54.6872
477@ = -2202.666
559@ = -759.2505
641@ = 62.3413
478@ = -2352.255
560@ = -775.5399
642@ = 95.1597
479@ = -2421.544
561@ = -610.6656
643@ = 132.3493
480@ = -2627.138
562@ = -496.4363
644@ = 70.09
481@ = -2351.247
563@ = -460.0875
645@ = 79.9485
482@ = -2599.996
564@ = -372.7368
646@ = 43.7794
483@ = -2702.314
565@ = -530.1367
647@ = 12.4366
484@ = -2699.197
566@ = -401.205
648@ = 7.7008
485@ = -2210.255
567@ = -348.0724
649@ = 36.8384
486@ = -1897.734
568@ = -314.4976
650@ = 48.9384
487@ = -1890.36
569@ = -45.4288
651@ = 38.0312
488@ = -1886.557
570@ = 55.293
652@ = 38.0326
489@ = -1848.039
571@ = 242.5393
653@ = 30.825
490@ = -1736.635
572@ = 316.5836
654@ = 6.039
491@ = -1682.981
573@ = 367.1342
655@ = 6.028
492@ = -1559.293
574@ = 528.332
656@ = 6.8409
493@ = -1535.552
575@ = 827.4427
657@ = 6.8401
494@ = -1584.129
576@ = 1115.601
658@ = 6.8376
250@ = 41
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 402
set_lvar_int_to_constant 717@ = 560
set_lvar_int_to_constant 718@ = 506
set_lvar_int_to_constant 719@ = 506
set_lvar_int_to_constant 720@ = 477
set_lvar_int_to_constant 721@ = 603
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_32149
454@ = -1761.655
536@ = -606.3881
618@ = 15.8961
455@ = -1760.54
537@ = -686.4133
619@ = 24.2389
456@ = -1502.876
538@ = -820.2545
620@ = 61.3357
457@ = -1219.332
539@ = -759.4814
621@ = 62.0285
458@ = -1096.152
540@ = -489.1358
622@ = 32.7156
459@ = -911.5416
541@ = -455.9558
623@ = 26.7166
460@ = -621.3364
542@ = -393.158
624@ = 22.1878
461@ = -395.5605
543@ = -533.522
625@ = 17.6561
462@ = -372.2669
544@ = -819.4839
626@ = 28.1926
463@ = -584.5377
545@ = -1160.572
627@ = 21.8153
464@ = -659.3533
546@ = -1548.814
628@ = 22.1495
465@ = -717.1517
547@ = -1697.205
629@ = 48.2586
466@ = -714.6181
548@ = -1395.094
630@ = 60.5799
467@ = -764.046
549@ = -1385.027
631@ = 82.2146
468@ = -762.7014
550@ = -1685.041
632@ = 96.9103
469@ = -945.4141
551@ = -1903.227
633@ = 81.3436
470@ = -1104.541
552@ = -2155.325
634@ = 34.6761
471@ = -1186.201
553@ = -2444.541
635@ = 54.4532
472@ = -982.3237
554@ = -2611.624
636@ = 86.253
473@ = -713.2529
555@ = -2336.617
637@ = 36.4201
474@ = -512.3461
556@ = -2166.417
638@ = 53.5212
475@ = -258.5978
557@ = -2074.872
639@ = 36.648
476@ = -260.1367
558@ = -1777.191
640@ = 7.5735
477@ = -57.3444
559@ = -1601.375
641@ = 1.3776
478@ = -124.296
560@ = -1466.575
642@ = 2.4045
479@ = -143.4815
561@ = -1270.317
643@ = 2.404
480@ = -113.7683
562@ = -998.821
644@ = 23.9178
481@ = -377.3843
563@ = -838.2166
645@ = 47.1444
482@ = -626.0056
564@ = -989.012
646@ = 66.0268
483@ = -877.4561
565@ = -1097.426
647@ = 96.1699
484@ = -925.9376
566@ = -1391.353
648@ = 126.2905
485@ = -1219.141
567@ = -1347.249
649@ = 122.5235
486@ = -1407.723
568@ = -1414.45
650@ = 104.9232
487@ = -1577.013
569@ = -1168.802
651@ = 102.3586
488@ = -1626.067
570@ = -882.9627
652@ = 97.5243
489@ = -1744.303
571@ = -853.2858
653@ = 77.1834
490@ = -1684.612
572@ = -1143.291
654@ = 72.4364
491@ = -1549.538
573@ = -1286.347
655@ = 57.1135
492@ = -1525.757
574@ = -1383.531
656@ = 45.1796
493@ = -1626.142
575@ = -1375.587
657@ = 45.2062
494@ = -1800.174
576@ = -1016.79
658@ = 51.6322
495@ = -1817.478
577@ = -617.6195
659@ = 15.9507
250@ = 42
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 451
set_lvar_int_to_constant 717@ = 415
set_lvar_int_to_constant 718@ = 411
set_lvar_int_to_constant 719@ = 451
set_lvar_int_to_constant 720@ = 429
set_lvar_int_to_constant 721@ = 541
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_33527
454@ = -2001.856
536@ = 1076.302
618@ = 54.5637
455@ = -2302.386
537@ = 1076.754
619@ = 54.5859
456@ = -2596.785
538@ = 1136.728
620@ = 54.4297
457@ = -2673.767
539@ = 1427.293
621@ = 54.4271
458@ = -2673.775
540@ = 1728.239
622@ = 66.8937
459@ = -2673.807
541@ = 2028.896
623@ = 57.2377
460@ = -2731.742
542@ = 2323.183
624@ = 67.5411
461@ = -2622.094
543@ = 2602.597
625@ = 68.7
462@ = -2322.772
544@ = 2637.1
626@ = 53.2135
463@ = -2027.122
545@ = 2585.865
627@ = 53.9804
464@ = -1885.621
546@ = 2321.522
628@ = 38.5395
465@ = -1675.296
547@ = 2107.697
629@ = 17.3995
466@ = -1629.976
548@ = 1810.828
630@ = 11.059
467@ = -1347.988
549@ = 1705.67
631@ = 4.8179
468@ = -1125.87
550@ = 1504.095
632@ = 22.1877
469@ = -1010.766
551@ = 1227.044
633@ = 31.1773
470@ = -908.7908
552@ = 944.9431
634@ = 17.337
471@ = -744.0402
553@ = 694.0286
635@ = 16.9982
472@ = -469.1425
554@ = 573.061
636@ = 16.0649
473@ = -168.3162
555@ = 562.0268
637@ = 14.9046
474@ = 110.1296
556@ = 673.4105
638@ = 4.6336
475@ = 400.681
557@ = 749.8367
639@ = 5.0607
476@ = 686.3097
558@ = 656.6995
640@ = 7.8963
477@ = 975.3585
559@ = 738.1249
641@ = 9.6719
478@ = 1242.045
560@ = 876.267
642@ = 13.1519
479@ = 1226.81
561@ = 1169.877
643@ = 5.8125
480@ = 1226.664
562@ = 1469.936
644@ = 5.742
250@ = 27
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 451
set_lvar_int_to_constant 717@ = 415
set_lvar_int_to_constant 718@ = 411
set_lvar_int_to_constant 719@ = 451
set_lvar_int_to_constant 720@ = 429
set_lvar_int_to_constant 721@ = 429
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_34455
454@ = -878.0113
536@ = 1947.484
618@ = 59.1845
455@ = -857.6418
537@ = 1873.25
619@ = 59.183
456@ = -1030.689
538@ = 1853.546
620@ = 58.8558
457@ = -1093.182
539@ = 1748.023
621@ = 31.6318
458@ = -902.488
540@ = 1687.666
622@ = 26.267
459@ = -847.1951
541@ = 1495.581
623@ = 17.5443
460@ = -782.4052
542@ = 1305.811
624@ = 12.6016
461@ = -616.3677
543@ = 1193.645
625@ = 9.2126
462@ = -474.1805
544@ = 1052.086
626@ = 10.0313
463@ = -319.1918
545@ = 925.6066
627@ = 10.3099
464@ = -267.4492
546@ = 825.0159
628@ = 13.2739
465@ = -188.4539
547@ = 1007.19
629@ = 18.5885
466@ = -164.8873
548@ = 1198.263
630@ = 18.5938
467@ = -142.1028
549@ = 1250.022
631@ = 18.5869
468@ = -341.5205
550@ = 1265.695
632@ = 22.1515
469@ = -440.031
551@ = 1439.669
633@ = 32.334
470@ = -438.1716
552@ = 1639.673
634@ = 34.6319
471@ = -381.6811
553@ = 1831.026
635@ = 49.8567
472@ = -433.4627
554@ = 1883.992
636@ = 59.8611
473@ = -465.4392
555@ = 1768.532
637@ = 71.9576
474@ = -464.5399
556@ = 1968.423
638@ = 81.2536
475@ = -411.0666
557@ = 2074.596
639@ = 60.6433
476@ = -610.1716
558@ = 2050.887
640@ = 59.1798
477@ = -790.69
559@ = 2053.91
641@ = 59.1798
set_lvar_float_to_lvar_float 478@ = 454@
set_lvar_float_to_lvar_float 560@ = 536@
set_lvar_float_to_lvar_float 642@ = 618@
250@ = 25
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 461
set_lvar_int_to_constant 717@ = 521
set_lvar_int_to_constant 718@ = 522
set_lvar_int_to_constant 719@ = 461
set_lvar_int_to_constant 720@ = 521
set_lvar_int_to_constant 721@ = 522
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_35317
454@ = -375.6397
536@ = 2204.217
618@ = 41.0938
455@ = -388.8497
537@ = 2258.056
619@ = 40.9952
456@ = -410.6823
538@ = 2455.747
620@ = 42.9124
457@ = -608.4162
539@ = 2447.19
621@ = 71.7551
458@ = -715.864
540@ = 2536.594
622@ = 72.7592
459@ = -713.7043
541@ = 2697.466
623@ = 53.2852
460@ = -912.5499
542@ = 2721.987
624@ = 44.8627
461@ = -1112.755
543@ = 2698.651
625@ = 44.875
462@ = -1238.171
544@ = 2679.861
626@ = 45.9321
463@ = -1359.55
545@ = 2659.557
627@ = 50.4683
464@ = -1545.773
546@ = 2732.354
628@ = 61.3062
465@ = -1746.036
547@ = 2727.448
629@ = 59.0648
466@ = -1860.247
548@ = 2563.043
630@ = 48.8929
467@ = -2002.133
549@ = 2422.603
631@ = 32.9752
468@ = -1961.463
550@ = 2227.891
632@ = 10.7077
469@ = -1807.124
551@ = 2100.1
633@ = 7.4268
470@ = -1782.09
552@ = 1901.775
634@ = 14.7248
471@ = -1591.908
553@ = 1837.29
635@ = 24.8515
472@ = -1392.057
554@ = 1852.968
636@ = 35.4945
473@ = -1199.365
555@ = 1799.638
637@ = 40.4346
474@ = -1008.306
556@ = 1855.604
638@ = 61.6784
475@ = -857.7028
557@ = 1874.014
639@ = 59.1758
476@ = -758.5721
558@ = 2048.232
640@ = 59.1866
477@ = -563.1158
559@ = 2005.574
641@ = 59.2474
478@ = -468.9791
560@ = 2056.811
642@ = 59.875
479@ = -392.3245
561@ = 2154.448
643@ = 42.1847
set_lvar_float_to_lvar_float 480@ = 454@
set_lvar_float_to_lvar_float 562@ = 536@
set_lvar_float_to_lvar_float 644@ = 618@
250@ = 27
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 461
set_lvar_int_to_constant 717@ = 521
set_lvar_int_to_constant 718@ = 522
set_lvar_int_to_constant 719@ = 461
set_lvar_int_to_constant 720@ = 521
set_lvar_int_to_constant 721@ = 521
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_36239
454@ = 1446.426
536@ = 834.0658
618@ = 5.8125
455@ = 1747.259
537@ = 834.025
619@ = 8.6815
456@ = 2047.335
538@ = 834.1916
620@ = 5.7422
457@ = 2348.722
539@ = 834.1481
621@ = 5.7422
458@ = 2637.92
540@ = 915.6277
622@ = 5.7498
459@ = 2726.824
541@ = 1202.266
623@ = 5.7422
460@ = 2726.698
542@ = 1502.967
624@ = 5.7422
461@ = 2726.958
543@ = 1804.343
625@ = 5.7393
462@ = 2726.579
544@ = 2125.796
626@ = 5.7269
463@ = 2705.172
545@ = 2405.567
627@ = 5.7277
464@ = 2489.267
546@ = 2614.273
628@ = 4.1679
465@ = 2188.479
547@ = 2609.629
629@ = 5.8164
466@ = 1898.309
548@ = 2529.155
630@ = 5.8125
467@ = 1603.524
549@ = 2473.083
631@ = 5.8516
468@ = 1305.181
550@ = 2439.19
632@ = 5.7422
469@ = 1208.232
551@ = 2154.514
633@ = 5.7422
470@ = 1208.38
552@ = 1853.837
634@ = 5.7422
471@ = 1208.322
553@ = 1553.025
635@ = 5.7422
472@ = 1208.126
554@ = 1252.557
636@ = 5.7498
473@ = 1229.187
555@ = 952.9079
637@ = 5.8125
set_lvar_float_to_lvar_float 474@ = 454@
set_lvar_float_to_lvar_float 556@ = 536@
set_lvar_float_to_lvar_float 638@ = 618@
250@ = 21
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 451
set_lvar_int_to_constant 717@ = 562
set_lvar_int_to_constant 718@ = 415
set_lvar_int_to_constant 719@ = 411
set_lvar_int_to_constant 720@ = 562
set_lvar_int_to_constant 721@ = 451
gosub @CPRACE_47661
goto @CPRACE_46261

:CPRACE_36981
454@ = 1796.901
536@ = -2593.329
618@ = 12.5982
455@ = 1596.915
537@ = -2592.123
619@ = 25.9969
456@ = 1425.429
538@ = -2549.107
620@ = 37.8234
457@ = 1280.556
539@ = -2394.586
621@ = 52.2127
458@ = 1296.165
540@ = -2194.131
622@ = 72.3519
459@ = 1317.012
541@ = -1995.026
623@ = 77.657
460@ = 1385.216
542@ = -1807.25
624@ = 64.6153
461@ = 1501.202
543@ = -1642.892
625@ = 78.2774
462@ = 1597.783
544@ = -1466.853
626@ = 87.9007
463@ = 1621.693
545@ = -1267.59
627@ = 84.5704
464@ = 1592.626
546@ = -1069.313
628@ = 87.8825
465@ = 1477.096
547@ = -905.3071
629@ = 103.4455
466@ = 1388.884
548@ = -725.4239
630@ = 125.9394
467@ = 1320.715
549@ = -536.3066
631@ = 127.73
468@ = 1233.948
550@ = -356.5205
632@ = 103.7008
469@ = 1235.221
551@ = -155.8231
633@ = 83.5
470@ = 1362.454
552@ = -2.0532
634@ = 70.1118
471@ = 1562.073
553@ = -27.0897
635@ = 64.6716
472@ = 1670.313
554@ = -196.5335
636@ = 77.4671
473@ = 1698.697
555@ = -394.7666
637@ = 84.513
474@ = 1841.239
556@ = -535.4985
638@ = 105.1396
475@ = 1999.777
557@ = -658.853
639@ = 125.3019
476@ = 2117.771
558@ = -819.4944
640@ = 144.8639
477@ = 2200.181
559@ = -1001.27
641@ = 129.4889
478@ = 2265.805
560@ = -1184.584
642@ = 83.0669
479@ = 2296.145
561@ = -1383.394
643@ = 62.1655
480@ = 2321.608
562@ = -1582.03
644@ = 63.1144
481@ = 2400.442
563@ = -1766.227
645@ = 56.7954
482@ = 2525.256
564@ = -1922.68
646@ = 52.2529
483@ = 2593.726
565@ = -2111.734
647@ = 53.1139
484@ = 2575.049
566@ = -2313.631
648@ = 53.9683
485@ = 2455.397
567@ = -2476.633
649@ = 54.8922
486@ = 2264.071
568@ = -2548.592
650@ = 55.7578
487@ = 2065.285
569@ = -2571.635
651@ = 56.5966
488@ = 1862.502
570@ = -2582.099
652@ = 54.6357
250@ = 35
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 476
set_lvar_int_to_constant 717@ = 476
set_lvar_int_to_constant 718@ = 476
set_lvar_int_to_constant 719@ = 476
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46261

:CPRACE_38119
454@ = -1582.67
536@ = -89.9953
618@ = 13.1683
455@ = -1439.187
537@ = 53.2109
619@ = 30.0
456@ = -1286.686
538@ = 185.0573
620@ = 32.9885
457@ = -1091.876
539@ = 137.3885
621@ = 46.7629
458@ = -1042.169
540@ = -59.4087
622@ = 43.603
459@ = -1047.567
541@ = -259.0437
623@ = 23.8409
460@ = -1126.559
542@ = -445.5607
624@ = 28.0502
461@ = -1261.24
543@ = -598.8228
625@ = 37.4576
462@ = -1444.803
544@ = -690.5997
626@ = 52.7263
463@ = -1649.008
545@ = -681.264
627@ = 60.8852
464@ = -1845.585
546@ = -636.4395
628@ = 61.1217
465@ = -2044.818
547@ = -658.4432
629@ = 71.2804
466@ = -2206.165
548@ = -778.5996
630@ = 85.9739
467@ = -2240.928
549@ = -976.7443
631@ = 75.2422
468@ = -2139.48
550@ = -1148.617
632@ = 61.3795
469@ = -2028.634
551@ = -1315.712
633@ = 40.653
470@ = -1884.623
552@ = -1459.337
634@ = 37.0927
471@ = -1725.283
553@ = -1581.193
635@ = 51.3609
472@ = -1548.501
554@ = -1676.223
636@ = 63.2502
473@ = -1368.613
555@ = -1769.197
637@ = 52.099
474@ = -1327.042
556@ = -1980.883
638@ = 35.4768
475@ = -1462.659
557@ = -2110.34
639@ = 22.6174
476@ = -1551.068
558@ = -2287.276
640@ = 56.7071
477@ = -1624.645
559@ = -2464.302
641@ = 115.5442
478@ = -1735.012
560@ = -2633.092
642@ = 101.7228
479@ = -1673.618
561@ = -2817.32
643@ = 50.492
480@ = -1529.398
562@ = -2958.864
644@ = 35.2493
481@ = -1331.87
563@ = -3016.815
645@ = 36.5563
482@ = -1140.517
564@ = -2957.838
646@ = 35.4633
483@ = -1133.483
565@ = -2757.115
647@ = 30.2641
484@ = -1219.593
566@ = -2575.6
648@ = 35.8018
485@ = -1227.193
567@ = -2375.099
649@ = 31.7209
486@ = -1172.746
568@ = -2182.804
650@ = 45.2393
487@ = -1144.312
569@ = -1988.018
651@ = 83.1497
488@ = -1021.386
570@ = -1832.821
652@ = 115.2484
489@ = -943.5054
571@ = -1647.992
653@ = 133.3276
490@ = -900.7032
572@ = -1450.585
654@ = 142.0757
491@ = -884.4996
573@ = -1249.642
655@ = 148.1781
492@ = -880.2889
574@ = -1048.99
656@ = 158.8745
493@ = -936.6008
575@ = -855.3414
657@ = 160.157
494@ = -972.9082
576@ = -660.9503
658@ = 116.3043
495@ = -980.3859
577@ = -464.2646
659@ = 79.1644
496@ = -818.388
578@ = -348.3954
660@ = 51.4388
497@ = -617.8265
579@ = -330.2328
661@ = 37.1987
498@ = -415.4925
580@ = -339.8519
662@ = 28.2761
499@ = -248.3391
581@ = -451.8987
663@ = 18.5819
500@ = -192.9961
582@ = -643.989
664@ = 8.889
501@ = -128.7125
583@ = -835.6478
665@ = 24.9195
502@ = 63.3296
584@ = -892.0873
666@ = 40.4431
503@ = 236.1952
585@ = -791.0125
667@ = 46.7307
504@ = 298.5167
586@ = -600.2706
668@ = 53.5437
505@ = 326.4258
587@ = -400.9587
669@ = 50.4641
506@ = 308.5928
588@ = -201.9229
670@ = 40.3219
507@ = 244.4628
589@ = -8.211
671@ = 31.0744
508@ = 129.2121
590@ = 155.3022
672@ = 27.6231
509@ = -37.7018
591@ = 268.3331
673@ = 26.3544
510@ = -224.3873
592@ = 341.0904
674@ = 28.1078
511@ = -420.1607
593@ = 382.1896
675@ = 29.8681
512@ = -622.4773
594@ = 381.915
676@ = 31.6354
513@ = -822.824
595@ = 370.0051
677@ = 33.4142
514@ = -1012.349
596@ = 300.3856
678@ = 35.7468
515@ = -1193.1
597@ = 214.7394
679@ = 38.0629
250@ = 62
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 513
set_lvar_int_to_constant 717@ = 513
set_lvar_int_to_constant 718@ = 513
set_lvar_int_to_constant 719@ = 513
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46261

:CPRACE_40067
454@ = 366.982
536@ = 2502.595
618@ = 15.5571
455@ = 116.652
537@ = 2502.902
619@ = 47.5682
456@ = -133.6242
538@ = 2524.392
620@ = 55.1281
457@ = -377.8474
539@ = 2588.068
621@ = 67.6866
458@ = -604.1302
540@ = 2694.639
622@ = 84.7931
459@ = -838.685
541@ = 2779.901
623@ = 69.2036
460@ = -1045.629
542@ = 2639.279
624@ = 69.0984
461@ = -984.3267
543@ = 2395.508
625@ = 64.5187
462@ = -873.4733
544@ = 2171.186
626@ = 64.5549
463@ = -770.134
545@ = 1943.248
627@ = 70.927
464@ = -653.4092
546@ = 1720.47
628@ = 47.6015
465@ = -578.5898
547@ = 1481.972
629@ = 21.5084
466@ = -521.8337
548@ = 1238.437
630@ = 11.6736
467@ = -469.9443
549@ = 995.721
631@ = 51.4066
468@ = -525.42
550@ = 750.7462
632@ = 44.2215
469@ = -664.0441
551@ = 541.0659
633@ = 15.9243
470@ = -914.7918
552@ = 536.2426
634@ = 11.804
471@ = -1131.918
553@ = 661.8135
635@ = 13.6564
472@ = -1309.833
554@ = 839.316
636@ = 10.7039
473@ = -1449.372
555@ = 1045.777
637@ = 31.9947
474@ = -1603.122
556@ = 1243.21
638@ = 38.6648
475@ = -1813.101
557@ = 1379.44
639@ = 28.4044
476@ = -2061.489
558@ = 1418.549
640@ = 22.0099
477@ = -2312.469
559@ = 1430.699
641@ = 42.3744
478@ = -2522.745
560@ = 1564.194
642@ = 75.9034
479@ = -2689.238
561@ = 1753.745
643@ = 99.5865
480@ = -2759.371
562@ = 1994.265
644@ = 110.8744
481@ = -2682.772
563@ = 2233.097
645@ = 113.4608
482@ = -2493.907
564@ = 2397.506
646@ = 102.0156
483@ = -2245.109
565@ = 2418.773
647@ = 83.5877
484@ = -1994.605
566@ = 2407.942
648@ = 87.4376
485@ = -1751.471
567@ = 2349.74
649@ = 90.2881
486@ = -1535.099
568@ = 2217.656
650@ = 75.7349
487@ = -1305.302
569@ = 2118.716
651@ = 74.7752
488@ = -1064.807
570@ = 2187.768
652@ = 66.2415
489@ = -814.3556
571@ = 2195.872
653@ = 56.1521
490@ = -563.2742
572@ = 2203.33
654@ = 60.9129
491@ = -313.3741
573@ = 2229.26
655@ = 73.2015
492@ = -66.3647
574@ = 2178.082
656@ = 71.9294
493@ = 186.4198
575@ = 2211.213
657@ = 71.6732
494@ = 390.8383
576@ = 2356.514
658@ = 65.1402
495@ = 639.1594
577@ = 2385.26
659@ = 47.4816
496@ = 857.994
578@ = 2510.157
660@ = 50.2583
497@ = 929.9869
579@ = 2748.352
661@ = 77.8011
498@ = 760.5828
580@ = 2935.73
662@ = 91.5673
499@ = 512.0109
581@ = 2901.74
663@ = 93.8596
500@ = 309.843
582@ = 2752.892
664@ = 93.5908
501@ = 153.0242
583@ = 2560.321
665@ = 64.3547
502@ = 18.2657
584@ = 2347.904
666@ = 66.4087
503@ = -99.4455
585@ = 2126.343
667@ = 75.4819
504@ = -257.6325
586@ = 1931.184
668@ = 75.4922
505@ = -392.7389
587@ = 1720.594
669@ = 94.1061
506@ = -499.7809
588@ = 1492.545
670@ = 58.172
507@ = -687.7847
589@ = 1327.026
671@ = 45.0028
508@ = -881.8704
590@ = 1169.769
672@ = 68.6343
509@ = -1075.92
591@ = 1008.155
673@ = 61.9286
510@ = -1272.957
592@ = 852.6403
674@ = 61.1137
511@ = -1457.539
593@ = 680.1183
675@ = 69.2464
512@ = -1634.648
594@ = 496.5454
676@ = 79.7593
513@ = -1839.814
595@ = 342.0907
677@ = 77.0974
514@ = -2063.729
596@ = 218.3637
678@ = 74.2748
515@ = -2305.257
597@ = 145.857
679@ = 72.5908
516@ = -2554.304
598@ = 126.6046
680@ = 96.9355
517@ = -2745.509
599@ = -33.5993
681@ = 80.174
518@ = -2863.942
600@ = -255.546
682@ = 62.7643
519@ = -2912.281
601@ = -500.7706
683@ = 51.8291
520@ = -2947.388
602@ = -759.2774
684@ = 44.0041
521@ = -2962.423
603@ = -1011.333
685@ = 42.2517
522@ = -2955.506
604@ = -1276.023
686@ = 45.302
523@ = -3000.904
605@ = -1528.563
687@ = 51.004
250@ = 70
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 520
set_lvar_int_to_constant 717@ = 520
set_lvar_int_to_constant 718@ = 520
set_lvar_int_to_constant 719@ = 520
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46261

:CPRACE_42255
454@ = 381.9952
536@ = 2542.088
618@ = 15.6876
455@ = 304.6997
537@ = 2547.057
619@ = 37.975
456@ = -97.4654
538@ = 2554.841
620@ = 32.4746
457@ = -102.6455
539@ = 2699.236
621@ = 63.5945
458@ = -221.948
540@ = 2718.08
622@ = 82.385
459@ = -418.3279
541@ = 2691.081
623@ = 78.5077
460@ = -392.2611
542@ = 2492.193
624@ = 84.257
461@ = -360.1944
543@ = 2294.638
625@ = 79.344
462@ = -238.1485
544@ = 2230.007
626@ = 81.9684
463@ = -287.1143
545@ = 2091.03
627@ = 70.2663
464@ = -481.0875
546@ = 2051.74
628@ = 76.2466
465@ = -665.1192
547@ = 2131.252
629@ = 77.2696
466@ = -845.4529
548@ = 2218.861
630@ = 80.0327
467@ = -1044.866
549@ = 2207.615
631@ = 67.0078
468@ = -1234.234
550@ = 2142.393
632@ = 66.1648
469@ = -1424.931
551@ = 2205.699
633@ = 70.8862
470@ = -1571.237
552@ = 2247.766
634@ = 65.1073
471@ = -1745.637
553@ = 2292.511
635@ = 49.3695
472@ = -1945.602
554@ = 2285.913
636@ = 44.2433
473@ = -1953.881
555@ = 2484.877
637@ = 63.2602
474@ = -1895.095
556@ = 2633.034
638@ = 74.4549
475@ = -1706.873
557@ = 2703.232
639@ = 72.8798
476@ = -1505.724
558@ = 2721.034
640@ = 69.9706
477@ = -1305.595
559@ = 2708.321
641@ = 66.4619
478@ = -1105.89
560@ = 2731.611
642@ = 62.9933
479@ = -905.1519
561@ = 2728.83
643@ = 64.0124
480@ = -704.1036
562@ = 2733.898
644@ = 66.2347
250@ = 27
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 487
set_lvar_int_to_constant 717@ = 487
set_lvar_int_to_constant 718@ = 487
set_lvar_int_to_constant 719@ = 487
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46261

:CPRACE_43153
454@ = -1962.871
536@ = 628.0812
618@ = 150.2844
455@ = -1848.341
537@ = 531.9294
619@ = 86.1743
456@ = -1827.913
538@ = 399.3668
620@ = 29.91
457@ = -1751.361
539@ = 326.9781
621@ = 25.4958
458@ = -1647.958
540@ = 412.8291
622@ = 26.6578
459@ = -1560.513
541@ = 532.7433
623@ = 18.6913
460@ = -1572.197
542@ = 638.3369
624@ = 25.3806
461@ = -1700.555
543@ = 706.7762
625@ = 53.3757
462@ = -1715.507
544@ = 777.6501
626@ = 45.9312
463@ = -1715.978
545@ = 978.3165
627@ = 51.989
464@ = -1714.958
546@ = 1178.562
628@ = 54.9734
465@ = -1912.922
547@ = 1146.255
629@ = 56.3473
466@ = -2003.248
548@ = 982.3228
630@ = 58.819
467@ = -2006.168
549@ = 810.2207
631@ = 54.1756
468@ = -1959.234
550@ = 713.3063
632@ = 75.2571
469@ = -1793.007
551@ = 730.7606
633@ = 44.6388
470@ = -1593.731
552@ = 732.4928
634@ = 20.5721
471@ = -1533.424
553@ = 923.6081
635@ = 29.4493
472@ = -1489.172
554@ = 1118.737
636@ = 17.2211
473@ = -1605.045
555@ = 1284.044
637@ = 27.5543
474@ = -1787.921
556@ = 1365.81
638@ = 32.2595
475@ = -1986.429
557@ = 1319.338
639@ = 23.0384
476@ = -2185.997
558@ = 1345.112
640@ = 19.4206
477@ = -2384.599
559@ = 1380.588
641@ = 17.9485
478@ = -2537.759
560@ = 1369.641
642@ = 23.8562
479@ = -2719.315
561@ = 1345.675
643@ = 32.2039
480@ = -2875.142
562@ = 1245.782
644@ = 20.7763
250@ = 27
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 488
set_lvar_int_to_constant 717@ = 488
set_lvar_int_to_constant 718@ = 488
set_lvar_int_to_constant 719@ = 488
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46261

:CPRACE_44051
454@ = 1765.609
536@ = -2285.911
618@ = 25.9621
455@ = 1764.294
537@ = -2084.371
619@ = 26.0431
456@ = 1649.402
538@ = -1920.231
620@ = 40.6173
457@ = 1552.024
539@ = -1745.273
621@ = 30.0462
458@ = 1419.031
540@ = -1595.618
622@ = 25.4285
459@ = 1402.089
541@ = -1441.622
623@ = 18.2271
460@ = 1545.335
542@ = -1431.194
624@ = 36.437
461@ = 1653.446
543@ = -1305.841
625@ = 49.6078
462@ = 1786.094
544@ = -1276.766
626@ = 22.6321
463@ = 1901.04
545@ = -1221.949
627@ = 34.699
464@ = 1848.224
546@ = -1097.652
628@ = 46.0898
465@ = 1649.377
547@ = -1085.296
629@ = 36.7768
466@ = 1487.205
548@ = -970.0334
630@ = 60.1281
467@ = 1304.22
549@ = -1038.929
631@ = 39.8547
468@ = 1215.798
550@ = -1218.862
632@ = 27.923
469@ = 1302.613
551@ = -1399.127
633@ = 26.3812
470@ = 1437.015
552@ = -1321.431
634@ = 45.396
471@ = 1609.09
553@ = -1299.497
635@ = 25.0714
472@ = 1791.421
554@ = -1381.364
636@ = 35.17
473@ = 1827.021
555@ = -1567.279
637@ = 22.9243
474@ = 1628.196
556@ = -1600.6
638@ = 38.8226
475@ = 1450.909
557@ = -1694.839
639@ = 25.2192
476@ = 1389.812
558@ = -1852.984
640@ = 24.997
477@ = 1206.609
559@ = -1933.723
641@ = 57.1028
478@ = 1053.461
560@ = -2063.933
642@ = 70.7254
479@ = 1048.698
561@ = -2265.503
643@ = 47.2394
480@ = 1224.402
562@ = -2359.494
644@ = 28.5888
481@ = 1425.61
563@ = -2360.047
645@ = 28.3338
250@ = 28
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 425
set_lvar_int_to_constant 717@ = 425
set_lvar_int_to_constant 718@ = 425
set_lvar_int_to_constant 719@ = 425
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46261

:CPRACE_44979
454@ = -1398.355
536@ = -197.2079
618@ = 1043.119
455@ = -1398.988
537@ = -188.7892
619@ = 1043.202
456@ = -1465.939
538@ = -134.0836
620@ = 1046.011
457@ = -1530.138
539@ = -193.3988
621@ = 1050.756
458@ = -1415.686
540@ = -274.1765
622@ = 1051.149
459@ = -1305.178
541@ = -143.5283
623@ = 1050.125
460@ = -1302.774
542@ = -268.6358
624@ = 1048.487
set_lvar_float_to_lvar_float 461@ = 454@
set_lvar_float_to_lvar_float 543@ = 536@
set_lvar_float_to_lvar_float 625@ = 618@
732@ = -1406.327
733@ = -265.7914
734@ = 1042.656
735@ = 346.3297
250@ = 8
221@ = 7
224@ = 12
256@ = 12
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 706@ = 7
set_lvar_int_to_constant 707@ = 7
set_lvar_int_to_constant 708@ = 7
set_lvar_int_to_constant 709@ = 7
set_lvar_int_to_constant 710@ = 7
set_lvar_int_to_constant 711@ = 7
set_lvar_int_to_constant 712@ = 7
set_lvar_int_to_constant 713@ = 7
set_lvar_int_to_constant 714@ = 7
set_lvar_int_to_constant 715@ = 7
set_lvar_int_to_constant 716@ = 503
set_lvar_int_to_constant 717@ = 502
set_lvar_int_to_constant 718@ = 494
set_lvar_int_to_constant 719@ = 503
set_lvar_int_to_constant 720@ = 502
set_lvar_int_to_constant 721@ = 494
set_lvar_int_to_constant 722@ = 502
set_lvar_int_to_constant 723@ = 494
set_lvar_int_to_constant 724@ = 503
set_lvar_int_to_constant 725@ = 494
set_lvar_int_to_constant 726@ = 503
set_lvar_int_to_constant 727@ = 503
set_lvar_int_to_constant 728@ = 494
set_lvar_int_to_constant 729@ = 502
set_lvar_int_to_constant 730@ = 494
set_lvar_int_to_constant 731@ = 502
goto @CPRACE_46261

:CPRACE_45528
454@ = -1354.358
536@ = -590.5628
618@ = 1055.453
455@ = -1431.177
537@ = -588.3124
619@ = 1054.512
456@ = -1516.874
538@ = -635.0942
620@ = 1050.275
457@ = -1500.678
539@ = -719.0175
621@ = 1051.643
458@ = -1387.502
540@ = -743.1501
622@ = 1051.016
459@ = -1295.54
541@ = -705.3506
623@ = 1055.255
460@ = -1365.312
542@ = -666.0998
624@ = 1055.058
461@ = -1486.5
543@ = -636.4586
625@ = 1052.225
462@ = -1447.86
544@ = -690.3426
626@ = 1052.834
463@ = -1389.908
545@ = -720.9943
627@ = 1055.119
464@ = -1370.685
546@ = -687.8977
628@ = 1053.783
465@ = -1399.136
547@ = -635.8359
629@ = 1051.043
466@ = -1308.639
548@ = -649.4201
630@ = 1054.972
set_lvar_float_to_lvar_float 467@ = 454@
set_lvar_float_to_lvar_float 549@ = 536@
set_lvar_float_to_lvar_float 631@ = 618@
732@ = -1344.163
733@ = -598.8836
734@ = 1051.829
735@ = 103.3822
250@ = 14
221@ = 4
224@ = 6
256@ = 12
set_lvar_int_to_constant 700@ = 100
set_lvar_int_to_constant 701@ = 133
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 181
set_lvar_int_to_constant 704@ = 60
set_lvar_int_to_constant 705@ = 34
set_lvar_int_to_constant 706@ = 198
set_lvar_int_to_constant 707@ = 250
set_lvar_int_to_constant 708@ = 7
set_lvar_int_to_constant 709@ = 100
set_lvar_int_to_constant 710@ = 34
set_lvar_int_to_constant 711@ = 7
set_lvar_int_to_constant 712@ = 7
set_lvar_int_to_constant 713@ = 7
set_lvar_int_to_constant 714@ = 7
set_lvar_int_to_constant 715@ = 7
set_lvar_int_to_constant 716@ = 468
set_lvar_int_to_constant 717@ = 468
set_lvar_int_to_constant 718@ = 468
set_lvar_int_to_constant 719@ = 468
set_lvar_int_to_constant 720@ = 468
set_lvar_int_to_constant 721@ = 468
set_lvar_int_to_constant 722@ = 468
set_lvar_int_to_constant 723@ = 468
set_lvar_int_to_constant 724@ = 468
set_lvar_int_to_constant 725@ = 468
set_lvar_int_to_constant 726@ = 468
set_lvar_int_to_constant 727@ = 468
set_lvar_int_to_constant 728@ = 468
set_lvar_int_to_constant 729@ = 468
set_lvar_int_to_constant 730@ = 468
set_lvar_int_to_constant 731@ = 468
goto @CPRACE_46261

:CPRACE_46261
return 

:CPRACE_46263
if 
  736@ == 0
goto_if_false @CPRACE_46336
if 
  Char.LocateAnyMeans3D($scplayer, -148.2144, 87.3396, 2.1234, 280.0, 280.0, 30.0, False)
goto_if_false @CPRACE_46336
736@ = 1

:CPRACE_46336
if 
  736@ == 1
goto_if_false @CPRACE_46370
736@ = 2
Streaming.RequestModel(532)
Streaming.RequestModel(82)

:CPRACE_46370
if 
  736@ == 2
goto_if_false @CPRACE_46524
if and
  Streaming.HasModelLoaded(532)
  Streaming.HasModelLoaded(82)
goto_if_false @CPRACE_46524
736@ = 3
738@ = Car.Create(532, -128.2144, 80.3396, 2.1234)
Car.SetHeading(738@, 250.5799)
740@ = Char.CreateInsideCar(738@, PedType.CivMale, 82)
Streaming.MarkModelAsNoLongerNeeded(532)
Streaming.MarkModelAsNoLongerNeeded(82)
Path.FlushRoute
Path.ExtendRoute(-95.8304, 68.27, 3.4764)
Path.ExtendRoute(-77.3806, 70.3096, 3.5478)
Task.DrivePointRouteAdvanced(740@, 738@, 7.5, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:CPRACE_46524
if 
  736@ == 3
goto_if_false @CPRACE_46620
if 
  not Char.IsDead(740@)
goto_if_false @CPRACE_46620
742@ = Char.GetScriptTaskStatus(740@, 2023)
if 
  is_int_lvar_equal_to_constant 742@ == 7
goto_if_false @CPRACE_46620
736@ = 4
if 
  not Car.IsDead(738@)
goto_if_false @CPRACE_46615
Car.MarkAsNoLongerNeeded(738@)

:CPRACE_46615
Char.MarkAsNoLongerNeeded(740@)

:CPRACE_46620
if 
  737@ == 0
goto_if_false @CPRACE_46693
if 
  Char.LocateAnyMeans3D($scplayer, -542.1076, 230.7356, 11.6475, 320.0, 320.0, 30.0, False)
goto_if_false @CPRACE_46693
737@ = 1

:CPRACE_46693
if 
  737@ == 1
goto_if_false @CPRACE_46727
737@ = 2
Streaming.RequestModel(478)
Streaming.RequestModel(82)

:CPRACE_46727
if 
  737@ == 2
goto_if_false @CPRACE_46860
if and
  Streaming.HasModelLoaded(478)
  Streaming.HasModelLoaded(82)
goto_if_false @CPRACE_46860
737@ = 3
739@ = Car.Create(478, -542.1076, 230.7356, 11.6475)
Car.SetHeading(739@, 262.8685)
741@ = Char.CreateInsideCar(739@, PedType.CivMale, 82)
Streaming.MarkModelAsNoLongerNeeded(478)
Streaming.MarkModelAsNoLongerNeeded(82)
Task.CarDriveToCoord(741@, 739@, -270.5629, 199.0073, 6.99, 11.5, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:CPRACE_46860
if 
  737@ == 3
goto_if_false @CPRACE_46971
if 
  not Char.IsDead(741@)
goto_if_false @CPRACE_46971
742@ = Char.GetScriptTaskStatus(741@, 1489)
if 
  is_int_lvar_equal_to_constant 742@ == 7
goto_if_false @CPRACE_46971
737@ = 4
if 
  not Car.IsDead(739@)
goto_if_false @CPRACE_46966
Task.CarDriveWander(741@, 739@, 11.5, DrivingMode.AvoidCars)
Car.MarkAsNoLongerNeeded(739@)

:CPRACE_46966
Char.MarkAsNoLongerNeeded(741@)

:CPRACE_46971
return 

:CPRACE_46973
if 
  6 > $race_selection
goto_if_false @CPRACE_47103
if 
  52@ <> 1
goto_if_false @CPRACE_47103
Txd.Remove
Txd.LoadDictionary('LD_RCE1')
Txd.LoadSprite(1, "RACE00")
Txd.LoadSprite(2, "RACE01")
Txd.LoadSprite(3, "RACE02")
Txd.LoadSprite(4, "RACE03")
Txd.LoadSprite(5, "RACE04")
Txd.LoadSprite(6, "RACE05")
52@ = 1
return 

:CPRACE_47103
if and
  $race_selection > 5
  12 > $race_selection
goto_if_false @CPRACE_47240
if 
  52@ <> 2
goto_if_false @CPRACE_47240
Txd.Remove
Txd.LoadDictionary('LD_RCE2')
Txd.LoadSprite(7, "RACE06")
Txd.LoadSprite(8, "RACE07")
Txd.LoadSprite(9, "RACE08")
Txd.LoadSprite(10, "RACE09")
Txd.LoadSprite(11, "RACE10")
Txd.LoadSprite(12, "RACE11")
52@ = 2
return 

:CPRACE_47240
if and
  $race_selection > 11
  18 > $race_selection
goto_if_false @CPRACE_47377
if 
  52@ <> 3
goto_if_false @CPRACE_47377
Txd.Remove
Txd.LoadDictionary('LD_RCE3')
Txd.LoadSprite(13, "RACE12")
Txd.LoadSprite(14, "RACE13")
Txd.LoadSprite(15, "RACE14")
Txd.LoadSprite(16, "RACE15")
Txd.LoadSprite(17, "RACE16")
Txd.LoadSprite(18, "RACE17")
52@ = 3
return 

:CPRACE_47377
if and
  $race_selection > 17
  24 > $race_selection
goto_if_false @CPRACE_47514
if 
  52@ <> 4
goto_if_false @CPRACE_47514
Txd.Remove
Txd.LoadDictionary('LD_RCE4')
Txd.LoadSprite(19, "RACE18")
Txd.LoadSprite(20, "RACE19")
Txd.LoadSprite(21, "RACE20")
Txd.LoadSprite(22, "RACE21")
Txd.LoadSprite(23, "RACE22")
Txd.LoadSprite(24, "RACE23")
52@ = 4
return 

:CPRACE_47514
if and
  $race_selection > 23
  30 > $race_selection
goto_if_false @CPRACE_47591
if 
  52@ <> 5
goto_if_false @CPRACE_47591
Txd.Remove
Txd.LoadDictionary('LD_RCE5')
Txd.LoadSprite(25, "RACE24")
52@ = 5
return 

:CPRACE_47591
return 

:CPRACE_47593
Text.SetColor(134, 155, 184, 255)
Text.SetScale(0.6146, 2.4961)
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(False)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
Text.SetDropshadow(2, 0, 0, 0, 255)
return 

:CPRACE_47661
254@ = 0
set_lvar_int_to_lvar_int 255@ = 256@
255@ -= 1

:CPRACE_47683
if 
  is_int_lvar_greater_than_int_lvar 255@ > 254@
goto_if_false @CPRACE_48582
253@ = Math.RandomIntInRange(0, 32)
switch_start 253@ {numCases} 32 {hasDefaultCase} 0 {defaultLabel} @CPRACE_48568 {caseNum1} 0 {caseLabel1} @CPRACE_47969 {caseNum2} 1 {caseLabel2} @CPRACE_47987 {caseNum3} 2 {caseLabel3} @CPRACE_48005 {caseNum4} 3 {caseLabel4} @CPRACE_48023 {caseNum5} 4 {caseLabel5} @CPRACE_48041 {caseNum6} 5 {caseLabel6} @CPRACE_48059 {caseNum7} 6 {caseLabel7} @CPRACE_48077
switch_continued 7 {caseLabel1} @CPRACE_48095 {caseNum2} 8 {caseLabel2} @CPRACE_48113 {caseNum3} 9 {caseLabel3} @CPRACE_48131 {caseNum4} 10 {caseLabel4} @CPRACE_48150 {caseNum5} 11 {caseLabel5} @CPRACE_48169 {caseNum6} 12 {caseLabel6} @CPRACE_48188 {caseNum7} 13 {caseLabel7} @CPRACE_48207 {caseNum8} 14 {caseLabel8} @CPRACE_48226 {caseNum9} 15 {caseLabel9} @CPRACE_48245
switch_continued 16 {caseLabel1} @CPRACE_48264 {caseNum2} 17 {caseLabel2} @CPRACE_48283 {caseNum3} 18 {caseLabel3} @CPRACE_48302 {caseNum4} 19 {caseLabel4} @CPRACE_48321 {caseNum5} 20 {caseLabel5} @CPRACE_48340 {caseNum6} 21 {caseLabel6} @CPRACE_48359 {caseNum7} 22 {caseLabel7} @CPRACE_48378 {caseNum8} 23 {caseLabel8} @CPRACE_48397 {caseNum9} 24 {caseLabel9} @CPRACE_48416
switch_continued 25 {caseLabel1} @CPRACE_48435 {caseNum2} 26 {caseLabel2} @CPRACE_48454 {caseNum3} 27 {caseLabel3} @CPRACE_48473 {caseNum4} 28 {caseLabel4} @CPRACE_48492 {caseNum5} 29 {caseLabel5} @CPRACE_48511 {caseNum6} 30 {caseLabel6} @CPRACE_48530 {caseNum7} 31 {caseLabel7} @CPRACE_48549 {caseNum8} -1 {caseLabel8} @CPRACE_48568 {caseNum9} -1 {caseLabel9} @CPRACE_48568

:CPRACE_47969
set_lvar_int_to_constant 700@(254@,16i) = 34
goto @CPRACE_48568

:CPRACE_47987
set_lvar_int_to_constant 700@(254@,16i) = 60
goto @CPRACE_48568

:CPRACE_48005
set_lvar_int_to_constant 700@(254@,16i) = 69
goto @CPRACE_48568

:CPRACE_48023
set_lvar_int_to_constant 700@(254@,16i) = 96
goto @CPRACE_48568

:CPRACE_48041
set_lvar_int_to_constant 700@(254@,16i) = 100
goto @CPRACE_48568

:CPRACE_48059
set_lvar_int_to_constant 700@(254@,16i) = 101
goto @CPRACE_48568

:CPRACE_48077
set_lvar_int_to_constant 700@(254@,16i) = 112
goto @CPRACE_48568

:CPRACE_48095
set_lvar_int_to_constant 700@(254@,16i) = 122
goto @CPRACE_48568

:CPRACE_48113
set_lvar_int_to_constant 700@(254@,16i) = 125
goto @CPRACE_48568

:CPRACE_48131
set_lvar_int_to_constant 700@(254@,16i) = 128
goto @CPRACE_48568

:CPRACE_48150
set_lvar_int_to_constant 700@(254@,16i) = 131
goto @CPRACE_48568

:CPRACE_48169
set_lvar_int_to_constant 700@(254@,16i) = 133
goto @CPRACE_48568

:CPRACE_48188
set_lvar_int_to_constant 700@(254@,16i) = 140
goto @CPRACE_48568

:CPRACE_48207
set_lvar_int_to_constant 700@(254@,16i) = 142
goto @CPRACE_48568

:CPRACE_48226
set_lvar_int_to_constant 700@(254@,16i) = 151
goto @CPRACE_48568

:CPRACE_48245
set_lvar_int_to_constant 700@(254@,16i) = 157
goto @CPRACE_48568

:CPRACE_48264
set_lvar_int_to_constant 700@(254@,16i) = 170
goto @CPRACE_48568

:CPRACE_48283
set_lvar_int_to_constant 700@(254@,16i) = 181
goto @CPRACE_48568

:CPRACE_48302
set_lvar_int_to_constant 700@(254@,16i) = 183
goto @CPRACE_48568

:CPRACE_48321
set_lvar_int_to_constant 700@(254@,16i) = 186
goto @CPRACE_48568

:CPRACE_48340
set_lvar_int_to_constant 700@(254@,16i) = 192
goto @CPRACE_48568

:CPRACE_48359
set_lvar_int_to_constant 700@(254@,16i) = 198
goto @CPRACE_48568

:CPRACE_48378
set_lvar_int_to_constant 700@(254@,16i) = 201
goto @CPRACE_48568

:CPRACE_48397
set_lvar_int_to_constant 700@(254@,16i) = 206
goto @CPRACE_48568

:CPRACE_48416
set_lvar_int_to_constant 700@(254@,16i) = 211
goto @CPRACE_48568

:CPRACE_48435
set_lvar_int_to_constant 700@(254@,16i) = 217
goto @CPRACE_48568

:CPRACE_48454
set_lvar_int_to_constant 700@(254@,16i) = 220
goto @CPRACE_48568

:CPRACE_48473
set_lvar_int_to_constant 700@(254@,16i) = 223
goto @CPRACE_48568

:CPRACE_48492
set_lvar_int_to_constant 700@(254@,16i) = 233
goto @CPRACE_48568

:CPRACE_48511
set_lvar_int_to_constant 700@(254@,16i) = 246
goto @CPRACE_48568

:CPRACE_48530
set_lvar_int_to_constant 700@(254@,16i) = 248
goto @CPRACE_48568

:CPRACE_48549
set_lvar_int_to_constant 700@(254@,16i) = 250
goto @CPRACE_48568

:CPRACE_48568
254@ += 1
goto @CPRACE_47683

:CPRACE_48582
return 

:CPRACE_48584
if or
  450@ == 1
  256@ == 1
goto_if_false @CPRACE_50542
Audio.PlayMissionPassedTune(1)
switch_start $race_selection {numCases} 27 {hasDefaultCase} 0 {defaultLabel} @CPRACE_50542 {caseNum1} 0 {caseLabel1} @CPRACE_48871 {caseNum2} 1 {caseLabel2} @CPRACE_48959 {caseNum3} 2 {caseLabel3} @CPRACE_49018 {caseNum4} 3 {caseLabel4} @CPRACE_49077 {caseNum5} 4 {caseLabel5} @CPRACE_49136 {caseNum6} 5 {caseLabel6} @CPRACE_49195 {caseNum7} 6 {caseLabel7} @CPRACE_49254
switch_continued 7 {caseLabel1} @CPRACE_49313 {caseNum2} 8 {caseLabel2} @CPRACE_49387 {caseNum3} 9 {caseLabel3} @CPRACE_49439 {caseNum4} 10 {caseLabel4} @CPRACE_49498 {caseNum5} 11 {caseLabel5} @CPRACE_49557 {caseNum6} 12 {caseLabel6} @CPRACE_49616 {caseNum7} 13 {caseLabel7} @CPRACE_49675 {caseNum8} 14 {caseLabel8} @CPRACE_49734 {caseNum9} 15 {caseLabel9} @CPRACE_49793
switch_continued 16 {caseLabel1} @CPRACE_49852 {caseNum2} 17 {caseLabel2} @CPRACE_49911 {caseNum3} 18 {caseLabel3} @CPRACE_49970 {caseNum4} 19 {caseLabel4} @CPRACE_50029 {caseNum5} 20 {caseLabel5} @CPRACE_50088 {caseNum6} 21 {caseLabel6} @CPRACE_50147 {caseNum7} 22 {caseLabel7} @CPRACE_50206 {caseNum8} 23 {caseLabel8} @CPRACE_50265 {caseNum9} 24 {caseLabel9} @CPRACE_50324
switch_continued 25 {caseLabel1} @CPRACE_50383 {caseNum2} 26 {caseLabel2} @CPRACE_50466 {caseNum3} -1 {caseLabel3} @CPRACE_50542 {caseNum4} -1 {caseLabel4} @CPRACE_50542 {caseNum5} -1 {caseLabel5} @CPRACE_50542 {caseNum6} -1 {caseLabel6} @CPRACE_50542 {caseNum7} -1 {caseLabel7} @CPRACE_50542 {caseNum8} -1 {caseLabel8} @CPRACE_50542 {caseNum9} -1 {caseLabel9} @CPRACE_50542

:CPRACE_48871
if 
  $got_race_made_progress[0] == 0
goto_if_false @CPRACE_48952
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
if 
  $show_race_selection == 0
goto_if_false @CPRACE_48936
Stat.RegisterMissionPassed('CESAR_1')
goto @CPRACE_48945

:CPRACE_48936
Stat.RegisterMissionPassed(85@($race_selection,30s))

:CPRACE_48945
$got_race_made_progress[0] = 1

:CPRACE_48952
goto @CPRACE_50542

:CPRACE_48959
if 
  $got_race_made_progress[1] == 0
goto_if_false @CPRACE_49011
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[1] = 1

:CPRACE_49011
goto @CPRACE_50542

:CPRACE_49018
if 
  $got_race_made_progress[2] == 0
goto_if_false @CPRACE_49070
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[2] = 1

:CPRACE_49070
goto @CPRACE_50542

:CPRACE_49077
if 
  $got_race_made_progress[3] == 0
goto_if_false @CPRACE_49129
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[3] = 1

:CPRACE_49129
goto @CPRACE_50542

:CPRACE_49136
if 
  $got_race_made_progress[4] == 0
goto_if_false @CPRACE_49188
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[4] = 1

:CPRACE_49188
goto @CPRACE_50542

:CPRACE_49195
if 
  $got_race_made_progress[5] == 0
goto_if_false @CPRACE_49247
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[5] = 1

:CPRACE_49247
goto @CPRACE_50542

:CPRACE_49254
if 
  $got_race_made_progress[6] == 0
goto_if_false @CPRACE_49306
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[6] = 1

:CPRACE_49306
goto @CPRACE_50542

:CPRACE_49313
if 
  $got_race_made_progress[7] == 0
goto_if_false @CPRACE_49380
Stat.PlayerMadeProgress(1)
start_new_script @CASHWIN 5000 5000 
Player.AddScore($player1, 5000)
$total_races_completed += 1
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[7] = 1

:CPRACE_49380
goto @CPRACE_50542

:CPRACE_49387
if 
  $got_race_made_progress[8] == 0
goto_if_false @CPRACE_49432
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[8] = 1

:CPRACE_49432
goto @CPRACE_50542

:CPRACE_49439
if 
  $got_race_made_progress[9] == 0
goto_if_false @CPRACE_49491
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[9] = 1

:CPRACE_49491
goto @CPRACE_50542

:CPRACE_49498
if 
  $got_race_made_progress[10] == 0
goto_if_false @CPRACE_49550
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[10] = 1

:CPRACE_49550
goto @CPRACE_50542

:CPRACE_49557
if 
  $got_race_made_progress[11] == 0
goto_if_false @CPRACE_49609
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[11] = 1

:CPRACE_49609
goto @CPRACE_50542

:CPRACE_49616
if 
  $got_race_made_progress[12] == 0
goto_if_false @CPRACE_49668
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[12] = 1

:CPRACE_49668
goto @CPRACE_50542

:CPRACE_49675
if 
  $got_race_made_progress[13] == 0
goto_if_false @CPRACE_49727
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[13] = 1

:CPRACE_49727
goto @CPRACE_50542

:CPRACE_49734
if 
  $got_race_made_progress[14] == 0
goto_if_false @CPRACE_49786
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[14] = 1

:CPRACE_49786
goto @CPRACE_50542

:CPRACE_49793
if 
  $got_race_made_progress[15] == 0
goto_if_false @CPRACE_49845
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[15] = 1

:CPRACE_49845
goto @CPRACE_50542

:CPRACE_49852
if 
  $got_race_made_progress[16] == 0
goto_if_false @CPRACE_49904
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[16] = 1

:CPRACE_49904
goto @CPRACE_50542

:CPRACE_49911
if 
  $got_race_made_progress[17] == 0
goto_if_false @CPRACE_49963
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[17] = 1

:CPRACE_49963
goto @CPRACE_50542

:CPRACE_49970
if 
  $got_race_made_progress[18] == 0
goto_if_false @CPRACE_50022
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[18] = 1

:CPRACE_50022
goto @CPRACE_50542

:CPRACE_50029
if 
  $got_race_made_progress[19] == 0
goto_if_false @CPRACE_50081
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[19] = 1

:CPRACE_50081
goto @CPRACE_50542

:CPRACE_50088
if 
  $got_race_made_progress[20] == 0
goto_if_false @CPRACE_50140
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[20] = 1

:CPRACE_50140
goto @CPRACE_50542

:CPRACE_50147
if 
  $got_race_made_progress[21] == 0
goto_if_false @CPRACE_50199
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[21] = 1

:CPRACE_50199
goto @CPRACE_50542

:CPRACE_50206
if 
  $got_race_made_progress[22] == 0
goto_if_false @CPRACE_50258
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[22] = 1

:CPRACE_50258
goto @CPRACE_50542

:CPRACE_50265
if 
  $got_race_made_progress[23] == 0
goto_if_false @CPRACE_50317
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[23] = 1

:CPRACE_50317
goto @CPRACE_50542

:CPRACE_50324
if 
  $got_race_made_progress[24] == 0
goto_if_false @CPRACE_50376
Stat.PlayerMadeProgress(1)
$total_races_completed += 1
gosub @CPRACE_50544
Stat.RegisterMissionPassed(85@($race_selection,30s))
$got_race_made_progress[24] = 1

:CPRACE_50376
goto @CPRACE_50542

:CPRACE_50383
if 
  $got_race_made_progress[25] == 0
goto_if_false @CPRACE_50459
start_new_script @CASHWIN 10000 5000 
Player.AddScore($player1, 10000)
Stat.PlayerMadeProgress(1)
Stat.RegisterMissionPassed('STAD_03')
CarGenerator.Switch($farm_gen3, 101)
CarGenerator.Switch($nascar_reward_cargen1, 101)
$got_race_made_progress[25] = 1

:CPRACE_50459
goto @CPRACE_50542

:CPRACE_50466
if 
  $got_race_made_progress[26] == 0
goto_if_false @CPRACE_50535
start_new_script @CASHWIN 25000 5000 
Player.AddScore($player1, 25000)
Stat.PlayerMadeProgress(1)
Stat.RegisterMissionPassed('STAD_01')
CarGenerator.Switch($nascar_reward_cargen2, 101)
$got_race_made_progress[26] = 1

:CPRACE_50535
goto @CPRACE_50542

:CPRACE_50542
return 

:CPRACE_50544
if 
  is_int_var_equal_to_int_lvar $total_races_completed == 208@
goto_if_false @CPRACE_50623
if 
  $got_race_mission_complete == 0
goto_if_false @CPRACE_50616
start_new_script @CASHWIN 1000000 5000 45 
Player.AddScore($player1, 1000000)
$got_race_mission_complete = 1

:CPRACE_50616
goto @CPRACE_50645

:CPRACE_50623
start_new_script @CASHWIN 10000 5000 
Player.AddScore($player1, 10000)

:CPRACE_50645
return 

:CPRACE_50647
254@ = 0

:CPRACE_50654
255@ = Math.RandomIntInRange(0, 5)
switch_start 255@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CPRACE_50956 {caseNum1} 0 {caseLabel1} @CPRACE_50726 {caseNum2} 1 {caseLabel2} @CPRACE_50771 {caseNum3} 2 {caseLabel3} @CPRACE_50820 {caseNum4} 3 {caseLabel4} @CPRACE_50865 {caseNum5} 4 {caseLabel5} @CPRACE_50909 {caseNum6} -1 {caseLabel6} @CPRACE_50956 {caseNum7} -1 {caseLabel7} @CPRACE_50956

:CPRACE_50726
Task.PlayAnim(-1, "RIOT_CHANT", "RIOT", 4.0, True, False, False, False, 2700)
goto @CPRACE_50956

:CPRACE_50771
Task.PlayAnim(-1, "RIOT_CHALLENGE", "RIOT", 4.0, True, False, False, False, 2000)
goto @CPRACE_50956

:CPRACE_50820
Task.PlayAnim(-1, "RIOT_SHOUT", "RIOT", 4.0, True, False, False, False, 2000)
goto @CPRACE_50956

:CPRACE_50865
Task.PlayAnim(-1, "RIOT_FUKU", "RIOT", 4.0, True, False, False, False, 3000)
goto @CPRACE_50956

:CPRACE_50909
Task.PlayAnim(-1, "RIOT_PUNCHES", "RIOT", 4.0, True, False, False, False, 2200)
goto @CPRACE_50956

:CPRACE_50956
254@ += 1
  254@ >= 7
goto_if_false @CPRACE_50654
return 

:CPRACE_50979
if 
  225@ == 0
goto_if_false @CPRACE_51161
if 
  is_int_var_greater_than_int_lvar $game_timer > 226@
goto_if_false @CPRACE_51161
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
227@ = Math.RandomIntInRange(0, 4)
switch_start 227@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CPRACE_51154 {caseNum1} 0 {caseLabel1} @CPRACE_51092 {caseNum2} 1 {caseLabel2} @CPRACE_51108 {caseNum3} 2 {caseLabel3} @CPRACE_51124 {caseNum4} 3 {caseLabel4} @CPRACE_51140 {caseNum5} -1 {caseLabel5} @CPRACE_51154 {caseNum6} -1 {caseLabel6} @CPRACE_51154 {caseNum7} -1 {caseLabel7} @CPRACE_51154

:CPRACE_51092
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 33200)
goto @CPRACE_51154

:CPRACE_51108
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 33202)
goto @CPRACE_51154

:CPRACE_51124
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 33205)
goto @CPRACE_51154

:CPRACE_51140
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1827)
goto @CPRACE_51154

:CPRACE_51154
225@ += 1

:CPRACE_51161
if 
  225@ == 1
goto_if_false @CPRACE_51269
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @CPRACE_51269
if 
  227@ == 3
goto_if_false @CPRACE_51239
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1164)
goto @CPRACE_51243

:CPRACE_51239
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)

:CPRACE_51243
226@ = Math.RandomIntInRange(2000, 10000)
add_int_var_to_int_lvar 226@ += $game_timer
225@ = 0

:CPRACE_51269
return 

:CPRACE_51271
if or
  53@ == 0
  53@ == 1
  53@ == 3
goto_if_false @CPRACE_51850
if 
  Player.IsPlaying($player1)
goto_if_false @CPRACE_51850
if 
  53@ == 3
goto_if_false @CPRACE_51460
if 
  $race_selection == 25
goto_if_false @CPRACE_51395
$x = 2693.184
$y = -1699.655
$z = 9.3891
$heading = 34.2987

:CPRACE_51395
if 
  $race_selection == 26
goto_if_false @CPRACE_51453
$x = 1101.781
$y = 1604.578
$z = 11.5506
$heading = 353.1771

:CPRACE_51453
goto @CPRACE_51762

:CPRACE_51460
if 
  $menu_mode == 0
goto_if_false @CPRACE_51522
set_var_float_to_var_float $x = $traceX($menu_mode,4f)
set_var_float_to_var_float $y = $traceY($menu_mode,4f)
$y += 4.0
$heading = 180.0

:CPRACE_51522
if 
  $menu_mode == 1
goto_if_false @CPRACE_51584
set_var_float_to_var_float $x = $traceX($menu_mode,4f)
$x += 4.0
set_var_float_to_var_float $y = $traceY($menu_mode,4f)
$heading = 90.0

:CPRACE_51584
if 
  $menu_mode == 2
goto_if_false @CPRACE_51646
set_var_float_to_var_float $x = $traceX($menu_mode,4f)
$x += 4.0
set_var_float_to_var_float $y = $traceY($menu_mode,4f)
$heading = 90.0

:CPRACE_51646
if 
  $menu_mode == 3
goto_if_false @CPRACE_51708
set_var_float_to_var_float $x = $traceX($menu_mode,4f)
$x += 4.0
set_var_float_to_var_float $y = $traceY($menu_mode,4f)
$heading = 90.0

:CPRACE_51708
if 
  53@ <> 1
goto_if_false @CPRACE_51750
set_var_float_to_var_float $x = $traceX($menu_mode,4f)
set_var_float_to_var_float $y = $traceY($menu_mode,4f)

:CPRACE_51750
set_var_float_to_var_float $z = $traceZ($menu_mode,4f)

:CPRACE_51762
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, $x, $y, $z)
Char.SetHeading($scplayer, $heading)
World.ClearArea($x, $y, $z, 0.5, False)
Streaming.RequestCollision($x, $y)
Streaming.LoadScene($x, $y, $z)
Weather.SetToAppropriateTypeNow
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(2000, Fade.In)
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($scplayer, 0)

:CPRACE_51850
253@ = 0

:CPRACE_51857
if 
  is_int_lvar_greater_than_int_lvar 256@ > 253@
goto_if_false @CPRACE_51977
if 
  not is_int_lvar_equal_to_int_lvar 253@ == 442@
goto_if_false @CPRACE_51936
if 
  not is_int_lvar_equal_to_int_var 395@(253@,16i) == $scplayer
goto_if_false @CPRACE_51936
Car.MarkAsNoLongerNeeded(379@(253@,16i))
Char.MarkAsNoLongerNeeded(395@(253@,16i))

:CPRACE_51936
Streaming.MarkModelAsNoLongerNeeded(700@(253@,16i))
Streaming.MarkModelAsNoLongerNeeded(716@(253@,16i))
Blip.Remove(412@(253@,16i))
253@ += 1
goto @CPRACE_51857

:CPRACE_51977
Char.RemoveElegantly(411@)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
if 
  $player_fall_state > 0
goto_if_false @CPRACE_52015
$player_fall_state = 6

:CPRACE_52015
Char.MarkAsNoLongerNeeded(411@)
Char.MarkAsNoLongerNeeded(429@)
253@ = 0

:CPRACE_52032
if 
  11 > 253@
goto_if_false @CPRACE_52069
Char.MarkAsNoLongerNeeded(441@)
253@ += 1
goto @CPRACE_52032

:CPRACE_52069
if 
  $race_selection == 23
goto_if_false @CPRACE_52112
if 
  $d5_pilot_licence_obtained == 1
goto_if_false @CPRACE_52112
CarGenerator.Switch($f1_blood_car_gen[1], 101)

:CPRACE_52112
Blip.Remove(54@)
Checkpoint.Delete(449@)
Object.Delete(430@)
Hud.ClearTimer($coords)
Streaming.RemoveAnimation("RIOT")
Streaming.RemoveAnimation("CAR")
Text.UseCommands(False)
Text.SetMessageFormatting(False, 380, 464)
World.SetCarDensityMultiplier(1.0)
World.DisableAllEntryExits(False)
Hud.DisplayRadar(True)
Hud.DisplayCarNames(True)
Hud.DisplayZoneNames(True)
Game.HideAllFrontendBlips(False)
Game.SetIsInStadium(False)
Hud.Display(True)
World.ClearExtraColors(False)
Text.SetHelpMessageBoxSize(200)
if 
  Player.IsPlaying($player1)
goto_if_false @CPRACE_52228
Char.SetAreaVisible($scplayer, 0)

:CPRACE_52228
$flag_car_normal_carmod = 0
$disable_mod_garage = 0
$onmission = 0
Mission.Finish
return 

//-------------Mission 36---------------
// Originally: Lowrider (High Stakes)

:CESAR1
script_name 'CESAR1'
gosub @CESAR1_1165
if 
  has_deatharrest_been_executed 
goto_if_false @CESAR1_38
gosub @CESAR1_4957

:CESAR1_38
gosub @CESAR1_5008
terminate_this_script 

:CESAR1_47
Streaming.RequestModel(114)
Streaming.RequestModel(534)
Streaming.RequestModel(517)
Streaming.RequestModel(567)
Streaming.RequestModel(536)
Streaming.LoadAllModelsNow

:CESAR1_73
if or
  not Streaming.HasModelLoaded(114)
  not Streaming.HasModelLoaded(534)
  not Streaming.HasModelLoaded(517)
  not Streaming.HasModelLoaded(567)
  not Streaming.HasModelLoaded(536)
goto_if_false @CESAR1_119
wait 0
goto @CESAR1_73

:CESAR1_119
Streaming.LoadSpecialCharacter(1, 'CESAR')
Streaming.LoadSpecialCharacter(2, 'KENDL')
Streaming.LoadAllModelsNow

:CESAR1_147
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasSpecialCharacterLoaded(2)
goto_if_false @CESAR1_177
wait 0
goto @CESAR1_147

:CESAR1_177
return 
116@ = Blip.AddForCar($cs1_player_car)
return 
42@ = Blip.AddForCoord($cesarX, $cesarY, $cesarZ)

:CESAR1_203
Streaming.RequestCarRecording(172)

:CESAR1_208
if 
  not Streaming.HasCarRecordingBeenLoaded(172)
goto_if_false @CESAR1_235
wait 0
goto @CESAR1_208

:CESAR1_235
128@ = 1793.687
129@ = -2138.686
130@ = 12.5547
131@ = 0.1899
World.ClearArea(128@, 129@, 130@, 20.5, True)
Car.CustomPlateForNextCar(567, "_LVA4L__")
125@ = Car.Create(567, 128@, 129@, 130@)
Car.SetLoadCollisionFlag(125@, False)
CarGenerator.SuppressCarModel(567)
Car.ChangeColor(125@, 3, 3)
123@ = Char.CreateInsideCar(125@, PedType.CivMale, 290)
127@ = Char.CreateAsPassenger(125@, PedType.CivFemale, 291, 0)
Car.SetHeading(125@, 131@)
Car.SetCruiseSpeed(125@, 35.0)
Car.SetDrivingStyle(125@, DrivingMode.PloughThrough)
Car.SetHeavy(125@, True)
Car.LockDoors(125@, CarLock.LockoutPlayerOnly)
Car.SetProofs(125@, True, True, True, True, True)
Car.SetCanBurstTires(125@, False)
Char.SetProofs(123@, True, True, True, True, True)
Char.SetProofs(127@, True, True, True, True, True)
Char.SetCanBeShotInVehicle(123@, False)
Char.SetCanBeShotInVehicle(127@, False)
return 
126@ = Blip.AddForCar(125@)

:CESAR1_489
142@ = 1492.304
146@ = -1869.023
150@ = 12.3828
154@ = 90.0
World.ClearArea(142@, 146@, 150@, 2.5, True)
138@ = Car.Create(517, 142@, 146@, 150@)
Car.SetLoadCollisionFlag(138@, False)
Car.ChangeColor(138@, 6, 0)
Car.SetHeading(138@, 154@)
134@ = Char.CreateInsideCar(138@, PedType.Gang8, 114)
Char.SetProofs(134@, True, True, True, True, True)
Car.SetCruiseSpeed(138@, 35.0)
Car.SetDrivingStyle(138@, DrivingMode.PloughThrough)
Car.LockDoors(138@, CarLock.LockoutPlayerOnly)
Car.SetProofs(138@, True, True, True, False, True)
Car.SetCanBurstTires(138@, False)
143@ = 1492.304
147@ = -1875.023
151@ = 12.3828
155@ = 90.0
World.ClearArea(143@, 147@, 151@, 2.5, True)
139@ = Car.Create(534, 143@, 147@, 151@)
Car.SetLoadCollisionFlag(139@, False)
CarGenerator.SuppressCarModel(534)
Car.ChangeColor(139@, 8, 0)
Car.SetHeading(139@, 155@)
135@ = Char.CreateInsideCar(139@, PedType.Gang8, 114)
Char.SetProofs(135@, True, True, True, True, True)
Car.SetCruiseSpeed(139@, 35.0)
Car.SetDrivingStyle(139@, DrivingMode.PloughThrough)
Car.LockDoors(139@, CarLock.LockoutPlayerOnly)
Car.SetProofs(139@, True, True, True, True, True)
Car.SetCanBurstTires(139@, False)
144@ = 1504.304
148@ = -1869.023
152@ = 12.3828
156@ = 90.0
World.ClearArea(144@, 148@, 152@, 2.5, True)
140@ = Car.Create(517, 144@, 148@, 152@)
Car.SetLoadCollisionFlag(140@, False)
CarGenerator.SuppressCarModel(517)
Car.ChangeColor(140@, 2, 1)
Car.SetHeading(140@, 156@)
136@ = Char.CreateInsideCar(140@, PedType.Gang8, 114)
Char.SetProofs(136@, True, True, True, True, True)
Car.SetCruiseSpeed(140@, 35.0)
Car.SetDrivingStyle(140@, DrivingMode.PloughThrough)
Car.LockDoors(140@, CarLock.LockoutPlayerOnly)
Car.SetProofs(140@, True, True, True, True, True)
Car.SetCanBurstTires(140@, False)
145@ = 1504.304
149@ = -1875.023
153@ = 12.3828
157@ = 90.0
World.ClearArea(145@, 149@, 153@, 2.5, True)
141@ = Car.Create(536, 145@, 149@, 153@)
Car.SetLoadCollisionFlag(141@, False)
Car.SetHeading(141@, 157@)
137@ = Char.CreateInsideCar(141@, PedType.Gang8, 114)
Car.SetCruiseSpeed(141@, 35.0)
Car.SetDrivingStyle(141@, DrivingMode.PloughThrough)
Car.LockDoors(141@, CarLock.LockoutPlayerOnly)
Car.SetProofs(141@, True, True, True, True, True)
Car.SetCanBurstTires(141@, False)
return 

:CESAR1_1165
Stat.RegisterMissionGiven
$onmission = 1
wait 0
Text.LoadMissionText('CESAR1')
Player.SetGroupRecruitment($player1, False)
34@ = 0
35@ = 0
36@ = -1
$cs1_race_is_go = 0
39@ = 2
38@ = 0
111@ = 0
115@ = 1
113@ = 1
114@ = 2
112@ = 0
40@ = 0
41@ = 4
50@ = 1820.44
51@ = -2117.32
52@ = 13.09
56@ = 1518.304
57@ = -1875.023
58@ = 12.3828
53@ = 1518.304
54@ = -1869.023
55@ = 12.3828
set_lvar_text_label 61@s = 'CES1_AA'
set_lvar_text_label 63@s = 'CES1_AB'
set_lvar_text_label 65@s = 'CES1_AC'
set_lvar_text_label 67@s = 'CES1_AD'
set_lvar_text_label 69@s = 'CES1_BA'
set_lvar_text_label 71@s = 'CES1_BB'
set_lvar_text_label 73@s = 'CES1_BC'
set_lvar_text_label 75@s = 'CES1_BD'
set_lvar_text_label 77@s = 'CES1_CA'
set_lvar_text_label 79@s = 'CES1_CB'
set_lvar_text_label 81@s = 'CES1_CC'
set_lvar_text_label 83@s = 'CES1_CD'
set_lvar_text_label 85@s = 'CES1_CE'
set_lvar_text_label 87@s = 'CES1_CF'
set_lvar_int_to_constant 95@ = 3200
set_lvar_int_to_constant 96@ = 3201
set_lvar_int_to_constant 97@ = 3206
set_lvar_int_to_constant 98@ = 3207
set_lvar_int_to_constant 99@ = 3202
set_lvar_int_to_constant 100@ = 3203
set_lvar_int_to_constant 101@ = 3208
set_lvar_int_to_constant 102@ = 3209
set_lvar_int_to_constant 103@ = 3210
set_lvar_int_to_constant 104@ = 3211
set_lvar_int_to_constant 105@ = 3212
set_lvar_int_to_constant 106@ = 3213
set_lvar_int_to_constant 107@ = 3214
set_lvar_int_to_constant 108@ = 3215
World.SetCarDensityMultiplier(0.0)
$cs1_player_car = Char.StoreCarIsIn($scplayer)
Car.SetCoordinates($cs1_player_car, $cesarX, $cesarY, $cesarZ)
Car.SetHeading($cs1_player_car, 270.0)
World.ClearArea(1796.0, -2118.0, 14.0, 25.0, True)
Cutscene.Load('CESAR1A')

:CESAR1_1759
if 
  not Cutscene.HasLoaded
goto_if_false @CESAR1_1783
wait 0
goto @CESAR1_1759

:CESAR1_1783
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CESAR1_1792
if 
  not Cutscene.HasFinished
goto_if_false @CESAR1_1816
wait 0
goto @CESAR1_1792

:CESAR1_1816
Camera.DoFade(0, Fade.Out)

:CESAR1_1822
if 
  Camera.GetFadingStatus
goto_if_false @CESAR1_1846
wait 0
goto @CESAR1_1822

:CESAR1_1846
Cutscene.Clear
World.ClearArea(1796.0, -2118.0, 14.0, 15.0, True)
World.SetCarDensityMultiplier(0.5)
gosub @CESAR1_47
Camera.SetFadingColor(0, 0, 0)
46@ = Clock.GetGameTimer()
Camera.SetBehindPlayer
Player.SetControl($player1, False)

:CESAR1_1908
wait 0
if 
  111@ <> 0
goto_if_false @CESAR1_2251
if 
  112@ == 0
goto_if_false @CESAR1_1976
if 
  Audio.HasMissionAudioLoaded(114@)
goto_if_false @CESAR1_1969
Audio.ClearMissionAudio(114@)

:CESAR1_1969
112@ = 1

:CESAR1_1976
if 
  112@ == 1
goto_if_false @CESAR1_2013
Audio.LoadMissionAudio(113@, 94@(111@,17i))
112@ = 2

:CESAR1_2013
if 
  112@ == 2
goto_if_false @CESAR1_2073
if 
  Audio.HasMissionAudioLoaded(113@)
goto_if_false @CESAR1_2073
Audio.PlayMissionAudio(113@)
Text.PrintNow(59@(111@,17s), 10000, 1)
112@ = 3

:CESAR1_2073
if 
  112@ == 3
goto_if_false @CESAR1_2251
if 
  Audio.HasMissionAudioFinished(113@)
goto_if_false @CESAR1_2190
Text.ClearThisPrint(59@(111@,17s))
if 
  113@ == 1
goto_if_false @CESAR1_2155
113@ = 2
114@ = 1
goto @CESAR1_2169

:CESAR1_2155
113@ = 1
114@ = 2

:CESAR1_2169
111@ = 0
112@ = 0
goto @CESAR1_2251

:CESAR1_2190
if 
  not Audio.HasMissionAudioLoaded(114@)
goto_if_false @CESAR1_2251
if 
  60 > 111@
goto_if_false @CESAR1_2251
set_lvar_int_to_lvar_int 115@ = 111@
115@ += 1
Audio.LoadMissionAudio(114@, 94@(115@,17i))

:CESAR1_2251
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CESAR1_2280
$flag_cesar_mission_counter += 1
goto @CESAR1_4999

:CESAR1_2280
if 
  34@ > 0
goto_if_false @CESAR1_2305
gosub @CESAR1_5106

:CESAR1_2305
if and
  34@ > 0
  666 > 34@
goto_if_false @CESAR1_2370
if 
  Car.IsDead(125@)
goto_if_false @CESAR1_2370
Text.PrintNow('CES1_09', 7000, 1)
goto @CESAR1_4957

:CESAR1_2370
if 
  34@ == 0
goto_if_false @CESAR1_3200
if 
  36@ == -1
goto_if_false @CESAR1_2481
if and
  not Car.IsDead($cs1_player_car)
  not Char.IsDead($scplayer)
goto_if_false @CESAR1_2481
Char.WarpIntoCar($scplayer, $cs1_player_car)
Text.ClearPrints
43@ = Clock.GetGameTimer()
gosub @CESAR1_203
Hud.SwitchWidescreen(True)
Camera.DoFade(500, Fade.In)
Camera.DoFade(500, Fade.In)
Camera.DoFade(500, Fade.In)
36@ = 0

:CESAR1_2481
if 
  36@ == 0
goto_if_false @CESAR1_2736
if and
  not Char.IsDead($scplayer)
  not Car.IsDead($cs1_player_car)
goto_if_false @CESAR1_2736
if 
  Char.IsInCar($scplayer, $cs1_player_car)
goto_if_false @CESAR1_2736
if and
  not Char.IsDead(123@)
  not Car.IsDead(125@)
goto_if_false @CESAR1_2736
44@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 45@ = 44@
sub_int_lvar_from_int_lvar 45@ -= 43@
if and
  not Char.IsDead(123@)
  not Char.IsDead(127@)
goto_if_false @CESAR1_2736
Char.SetProofs(123@, True, True, True, True, True)
Char.SetProofs(127@, True, True, True, True, True)
Char.SetCanBeShotInVehicle(123@, False)
Char.SetCanBeShotInVehicle(127@, False)
if 
  not Car.IsDead(125@)
goto_if_false @CESAR1_2670
Car.StartPlayback(125@, 172)

:CESAR1_2670
Camera.SetFixedPosition(1786.331, -2120.066, 12.8592, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1787.309, -2120.129, 13.0548, SwitchType.JumpCut)
117@ = Car.GetHealth($cs1_player_car)
36@ = 2

:CESAR1_2736
if and
  not Char.IsDead(123@)
  not Car.IsDead(125@)
goto_if_false @CESAR1_3200
if 
  36@ == 1
goto_if_false @CESAR1_2881
if 
  Char.LocateInCar3D(123@, 1802.126, -2110.103, 12.3902, 4.0, 4.0, 4.0, False)
goto_if_false @CESAR1_2881
Camera.SetFixedPosition(1825.202, -2100.55, 18.3156, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1824.693, -2101.373, 18.0676, SwitchType.JumpCut)
36@ = 2

:CESAR1_2881
if 
  36@ == 2
goto_if_false @CESAR1_3168
if 
  not Car.IsDead(125@)
goto_if_false @CESAR1_3168
if 
  Char.IsInCar(123@, 125@)
goto_if_false @CESAR1_3168
if 
  Char.LocateInCar3D(123@, 50@, 51@, 52@, 25.0, 25.0, 25.0, False)
goto_if_false @CESAR1_3168
if 
  not Car.IsPlaybackGoingOn(125@)
goto_if_false @CESAR1_3168
49@ = Sequence.Open()
Task.CarDriveToCoord(-1, 125@, 1533.008, -1877.243, 12.3828, 20.0, DriveMode.Accurate, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 125@, 53@, 54@, 55@, 12.0, DriveMode.Accurate, 0, DrivingMode.AvoidCars)
Sequence.Close(49@)
Char.PerformSequence(123@, 49@)
StuckCarCheck.AddWithWarp(125@, 1.0, 2000, True, True, True, 2)
Blip.Remove(126@)
126@ = Blip.AddForCar(125@)
Blip.SetAsFriendly(126@, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
35@ = 1
Text.PrintNow('CES1_04', 5000, 2)
39@ = 2
46@ = Clock.GetGameTimer()
36@ = 3

:CESAR1_3168
if 
  36@ == 3
goto_if_false @CESAR1_3200
gosub @CESAR1_489
34@ = 1

:CESAR1_3200
if 
  34@ == 1
goto_if_false @CESAR1_4924
if 
  36@ == 3
goto_if_false @CESAR1_3340
46@ = Clock.GetGameTimer()
if 
  not Char.IsDead(134@)
goto_if_false @CESAR1_3264
Char.SetCanBeShotInVehicle(134@, False)

:CESAR1_3264
if 
  not Char.IsDead(135@)
goto_if_false @CESAR1_3287
Char.SetCanBeShotInVehicle(135@, False)

:CESAR1_3287
if 
  not Char.IsDead(136@)
goto_if_false @CESAR1_3310
Char.SetCanBeShotInVehicle(136@, False)

:CESAR1_3310
if 
  not Char.IsDead(137@)
goto_if_false @CESAR1_3333
Char.SetCanBeShotInVehicle(137@, False)

:CESAR1_3333
36@ = 4

:CESAR1_3340
if 
  36@ == 4
goto_if_false @CESAR1_4776
if 
  not Car.IsDead($cs1_player_car)
goto_if_false @CESAR1_4776
if and
  not Char.IsDead(123@)
  not Car.IsDead(125@)
goto_if_false @CESAR1_3883
37@ = Char.GetScriptTaskStatus(123@, 1489)
if 
  is_int_lvar_equal_to_constant 37@ == 7
goto_if_false @CESAR1_3445
if 
  Car.DoesHaveStuckCarCheck(125@)
goto_if_false @CESAR1_3445
StuckCarCheck.Remove(125@)

:CESAR1_3445
if 
  not Char.LocateInCar3D(123@, 53@, 54@, 55@, 20.0, 20.0, 20.0, False)
goto_if_false @CESAR1_3627
119@, 120@, 121@ = Car.GetCoordinates($cs1_player_car)
128@, 129@, 130@ = Car.GetCoordinates(125@)
132@ = Math.GetDistanceBetweenCoords2D(119@, 120@, 128@, 129@)
133@ = 1000.0
div_float_lvar_by_float_lvar 133@ /= 132@
if 
  133@ > 30.0
goto_if_false @CESAR1_3581
133@ = 30.0

:CESAR1_3581
if 
  12.0 > 133@
goto_if_false @CESAR1_3612
133@ = 12.0

:CESAR1_3612
Car.SetCruiseSpeed(125@, 133@)
goto @CESAR1_3637

:CESAR1_3627
Car.SetCruiseSpeed(125@, 12.0)

:CESAR1_3637
if 
  38@ == 0
goto_if_false @CESAR1_3746
if 
  Char.LocateInCar3D(123@, 53@, 54@, 55@, 10.0, 10.0, 10.0, False)
goto_if_false @CESAR1_3746
Blip.Remove(126@)
124@ = Blip.AddForCoord(56@, 57@, 58@)
Text.PrintNow('CES1_05', 10000, 1)
39@ = 5
38@ = 1

:CESAR1_3746
if 
  Char.LocateAnyMeansChar3D($scplayer, 123@, 15.0, 15.0, 15.0, False)
goto_if_false @CESAR1_3883
if 
  not Char.LocateAnyMeansChar3D($scplayer, 123@, 10.0, 10.0, 10.0, False)
goto_if_false @CESAR1_3883
if 
  39@ == 0
goto_if_false @CESAR1_3883
if 
  4 > 40@
goto_if_false @CESAR1_3883
46@ = Clock.GetGameTimer()
39@ = 1
Text.ClearPrints
set_var_int_to_lvar_int $races_timer = 40@
40@ += 1

:CESAR1_3883
118@ = Car.GetHealth($cs1_player_car)
if 
  is_int_lvar_greater_than_int_lvar 117@ > 118@
goto_if_false @CESAR1_4053
if 
  Char.LocateAnyMeansChar3D($scplayer, 123@, 15.0, 15.0, 15.0, False)
goto_if_false @CESAR1_4053
if 
  not Char.LocateAnyMeansChar3D($scplayer, 123@, 10.0, 10.0, 10.0, False)
goto_if_false @CESAR1_4053
if 
  39@ == 0
goto_if_false @CESAR1_4053
if 
  8 > 41@
goto_if_false @CESAR1_4053
set_lvar_int_to_lvar_int 117@ = 118@
46@ = Clock.GetGameTimer()
39@ = 1
set_var_int_to_lvar_int $races_timer = 41@
41@ += 1

:CESAR1_4053
if 
  39@ == 1
goto_if_false @CESAR1_4652
if 
  $races_timer == 0
goto_if_false @CESAR1_4133
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4133
111@ = 1
46@ = Clock.GetGameTimer()
39@ = 2

:CESAR1_4133
if 
  $races_timer == 1
goto_if_false @CESAR1_4195
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4195
111@ = 2
46@ = Clock.GetGameTimer()
39@ = 2

:CESAR1_4195
if 
  $races_timer == 2
goto_if_false @CESAR1_4257
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4257
111@ = 3
46@ = Clock.GetGameTimer()
39@ = 2

:CESAR1_4257
if 
  $races_timer == 3
goto_if_false @CESAR1_4319
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4319
111@ = 4
46@ = Clock.GetGameTimer()
39@ = 2

:CESAR1_4319
if 
  $races_timer == 4
goto_if_false @CESAR1_4381
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4381
111@ = 5
46@ = Clock.GetGameTimer()
39@ = 2

:CESAR1_4381
if 
  $races_timer == 5
goto_if_false @CESAR1_4443
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4443
111@ = 6
46@ = Clock.GetGameTimer()
39@ = 2

:CESAR1_4443
if 
  $races_timer == 6
goto_if_false @CESAR1_4505
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4505
111@ = 7
46@ = Clock.GetGameTimer()
39@ = 2

:CESAR1_4505
if 
  $races_timer == 7
goto_if_false @CESAR1_4567
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4567
111@ = 8
46@ = Clock.GetGameTimer()
39@ = 2

:CESAR1_4567
if 
  $races_timer == 8
goto_if_false @CESAR1_4652
Text.PrintNow('CES1_04', 100, 1)
47@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 48@ = 47@
sub_int_lvar_from_int_lvar 48@ -= 46@
if 
  48@ > 5000
goto_if_false @CESAR1_4652
46@ = Clock.GetGameTimer()
39@ = 2

:CESAR1_4652
if 
  39@ == 2
goto_if_false @CESAR1_4776
47@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 48@ = 47@
sub_int_lvar_from_int_lvar 48@ -= 46@
if 
  48@ > 6000
goto_if_false @CESAR1_4776
if and
  not Car.IsDead(138@)
  not Car.IsDead(139@)
  not Car.IsDead(140@)
  not Car.IsDead(141@)
goto_if_false @CESAR1_4769
Car.FreezePosition(138@, True)
Car.FreezePosition(139@, True)
Car.FreezePosition(140@, True)
Car.FreezePosition(141@, True)

:CESAR1_4769
39@ = 0

:CESAR1_4776
if and
  not Car.IsDead(125@)
  not Char.IsDead(123@)
goto_if_false @CESAR1_4924
if and
  not Car.IsDead($cs1_player_car)
  not Char.IsDead($scplayer)
goto_if_false @CESAR1_4924
if 
  Char.IsInCar($scplayer, $cs1_player_car)
goto_if_false @CESAR1_4924
if 
  Char.LocateInCar3D($scplayer, 56@, 57@, 58@, 4.0, 4.0, 4.0, True)
goto_if_false @CESAR1_4924
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)

:CESAR1_4893
if 
  Camera.GetFadingStatus
goto_if_false @CESAR1_4917
wait 0
goto @CESAR1_4893

:CESAR1_4917
goto @CESAR1_4999

:CESAR1_4924
if 
  34@ == 666
goto_if_false @CESAR1_4950
goto @CESAR1_4957

:CESAR1_4950
goto @CESAR1_1908

:CESAR1_4957
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Streaming.MarkModelAsNoLongerNeeded(567)
Streaming.MarkModelAsNoLongerNeeded(114)
Streaming.MarkModelAsNoLongerNeeded(517)
Streaming.MarkModelAsNoLongerNeeded(534)
Streaming.MarkModelAsNoLongerNeeded(536)
return 

:CESAR1_4999
$cs1_race_is_go = 1
return 

:CESAR1_5008
Blip.Remove(116@)
Blip.Remove(126@)
Blip.Remove(124@)
Blip.Remove(42@)
Streaming.MarkModelAsNoLongerNeeded(114)
Car.Delete(125@)
Car.Delete(138@)
Car.Delete(139@)
Car.Delete(140@)
Car.Delete(141@)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
if 
  34@ <> 666
goto_if_false @CESAR1_5104
Camera.DoFade(0, Fade.Out)

:CESAR1_5104
return 

:CESAR1_5106
if 
  Car.IsDead($cs1_player_car)
goto_if_false @CESAR1_5146
Text.PrintNow('CES1_08', 5000, 1)
34@ = 666

:CESAR1_5146
if and
  not Char.IsDead($scplayer)
  not Car.IsDead($cs1_player_car)
goto_if_false @CESAR1_5518
if 
  35@ == 1
goto_if_false @CESAR1_5302
if 
  not Char.IsInCar($scplayer, $cs1_player_car)
goto_if_false @CESAR1_5302
if 
  34@ == 1
goto_if_false @CESAR1_5302
if 
  38@ == 0
goto_if_false @CESAR1_5245
Blip.Remove(126@)

:CESAR1_5245
if 
  38@ == 1
goto_if_false @CESAR1_5268
Blip.Remove(124@)

:CESAR1_5268
39@ = 10
Blip.Remove(116@)
116@ = Blip.AddForCar($cs1_player_car)
Blip.SetAsFriendly(116@, True)
35@ = 0

:CESAR1_5302
if 
  35@ == 0
goto_if_false @CESAR1_5518
if 
  34@ == 1
goto_if_false @CESAR1_5353
Text.PrintNow('CES1_06', 100, 1)

:CESAR1_5353
if 
  Char.IsInCar($scplayer, $cs1_player_car)
goto_if_false @CESAR1_5518
Text.ClearPrints
if 
  34@ == 1
goto_if_false @CESAR1_5518
if 
  38@ == 0
goto_if_false @CESAR1_5446
if 
  not Car.IsDead(125@)
goto_if_false @CESAR1_5446
Blip.Remove(126@)
126@ = Blip.AddForCar(125@)
Blip.SetAsFriendly(126@, True)

:CESAR1_5446
if 
  38@ == 1
goto_if_false @CESAR1_5499
Blip.Remove(124@)
124@ = Blip.AddForCoord(56@, 57@, 58@)
Text.PrintNow('CES1_05', 10000, 1)

:CESAR1_5499
Blip.Remove(116@)
39@ = 0
35@ = 1

:CESAR1_5518
return 

//-------------Mission 37---------------
// Originally: Reuniting The Families

:DRUGS4
script_name 'DRUGS4'
gosub @DRUGS4_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRUGS4_38
gosub @DRUGS4_67703

:DRUGS4_38
gosub @DRUGS4_67825
terminate_this_script 

:DRUGS4_47
Stat.RegisterMissionGiven
Text.LoadMissionText('LAFIN1')
$onmission = 1
wait 0
Streaming.SetAreaVisible(1)
Cutscene.Load('FINAL1A')

:DRUGS4_86
if 
  not Cutscene.HasLoaded
goto_if_false @DRUGS4_110
wait 0
goto @DRUGS4_86

:DRUGS4_110
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:DRUGS4_119
if 
  not Cutscene.HasFinished
goto_if_false @DRUGS4_143
wait 0
goto @DRUGS4_119

:DRUGS4_143
Cutscene.Clear
Camera.DoFade(0, Fade.Out)

:DRUGS4_151
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS4_175
wait 0
goto @DRUGS4_151

:DRUGS4_175
Streaming.SetAreaVisible(0)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetFadingColor(0, 0, 0)
wait 0
Streaming.LoadScene(2517.237, -1671.341, 12.9)
Weather.ForceNow(WeatherType.SunnyLa)
Streaming.RequestModel(492)
Streaming.RequestModel(107)
Streaming.RequestModel(106)
Streaming.RequestModel(349)
Streaming.LoadSpecialCharacter(1, 'SWEET')
Streaming.LoadSpecialCharacter(2, 'SMOKE')
Streaming.LoadSpecialCharacter(3, 'RYDER2')
Streaming.RequestCarRecording(350)
Streaming.RequestModel(353)
Streaming.RequestModel(346)
Streaming.RequestModel(285)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 25803)
Streaming.RequestCarRecording(352)
Streaming.RequestCarRecording(353)
Streaming.LoadAllModelsNow

:DRUGS4_319
if or
  not Streaming.HasModelLoaded(492)
  not Streaming.HasModelLoaded(107)
  not Streaming.HasModelLoaded(106)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_358
wait 0
goto @DRUGS4_319

:DRUGS4_358
if or
  not Streaming.HasModelLoaded(349)
  not Streaming.HasCarRecordingBeenLoaded(350)
  not Streaming.HasModelLoaded(353)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(285)
goto_if_false @DRUGS4_405
wait 0
goto @DRUGS4_358

:DRUGS4_405
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasSpecialCharacterLoaded(3)
  not Streaming.HasCarRecordingBeenLoaded(352)
  not Streaming.HasCarRecordingBeenLoaded(353)
goto_if_false @DRUGS4_449
wait 0
goto @DRUGS4_405

:DRUGS4_449
Game.SetScriptLimitToGangSize(0)
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
156@ = 0
157@ = 0
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
151@ = 0
294@ = 0
295@ = 0
296@ = 0
297@ = 0
298@ = 0
299@ = 0
300@ = 0
301@ = 0
302@ = 0
303@ = 0
304@ = 0
305@ = 0
306@ = 0
307@ = 0
308@ = 0
309@ = 0
310@ = 0
311@ = 0
312@ = 0
313@ = 0
314@ = 0
315@ = 0
316@ = 0
317@ = 0
318@ = 0
319@ = 0
320@ = 0
321@ = 0
322@ = 0
323@ = 0
324@ = 0
325@ = 0
326@ = 0
327@ = 0
328@ = 0
329@ = 0
330@ = 0
331@ = 0
55@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.ClearEventResponse(55@, 12)
56@ = DecisionMakerChar.Load(DecisionMakerType.Weak)
57@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
World.ClearArea(2514.316, -1673.395, 150.0, 150.0, True)
Clock.SetTimeOfDay(19, 30)
Char.SetCoordinates($scplayer, 2517.237, -1671.341, 12.9)
Char.SetHeading($scplayer, 63.048)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Car.CustomPlateForNextCar(492, "GROVE4L_")
$sweet_car = Car.Create(492, 2508.07, -1672.114, 12.0957)
Car.SetCanBeVisiblyDamaged($sweet_car, False)
Car.SetHeading($sweet_car, 167.195)
Car.SetOnlyDamagedByPlayer($sweet_car, True)
183@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(183@, True)
Car.ChangeColor($sweet_car, 59, 34)
$sweet = Char.Create(PedType.Special, 290, 2511.005, -1672.268, 12.493)
Char.SetHeading($sweet, 62.083)
Char.SetNeverTargeted($sweet, True)
Char.SetOnlyDamagedByPlayer($sweet, True)
Task.EnterCarAsPassenger($sweet, $sweet_car, 5000, 1)
Char.SetCantBeDraggedOut($sweet, True)
Char.SetStayInCarWhenJacked($sweet, True)
Char.SetDecisionMaker($sweet, 55@)
Char.SetNeverTargeted($sweet, True)
Char.SetSuffersCriticalHits($sweet, False)
Char.SetGetOutUpsideDownCar($sweet, False)
$big_smoke = Char.Create(PedType.Special, 291, 2505.318, -1674.747, 12.376)
Char.SetHeading($big_smoke, 356.374)
Char.SetNeverTargeted($big_smoke, True)
Char.SetOnlyDamagedByPlayer($big_smoke, True)
Task.EnterCarAsPassenger($big_smoke, $sweet_car, 5000, 0)
Char.SetCantBeDraggedOut($big_smoke, True)
Char.SetStayInCarWhenJacked($big_smoke, True)
Char.SetDecisionMaker($big_smoke, 55@)
Char.SetNeverTargeted($big_smoke, True)
Char.SetSuffersCriticalHits($big_smoke, False)
Char.SetGetOutUpsideDownCar($big_smoke, False)
$ryder = Char.Create(PedType.Special, 292, 2506.57, -1667.753, 12.376)
Char.SetHeading($ryder, 171.457)
Char.SetNeverTargeted($ryder, True)
Char.SetOnlyDamagedByPlayer($ryder, True)
Task.EnterCarAsPassenger($ryder, $sweet_car, 5000, 2)
Char.SetCantBeDraggedOut($ryder, True)
Char.SetStayInCarWhenJacked($ryder, True)
Char.SetDecisionMaker($ryder, 55@)
Char.SetNeverTargeted($ryder, True)
Char.SetSuffersCriticalHits($ryder, False)
Char.SetGetOutUpsideDownCar($ryder, False)
Text.PrintNow('LAF1_1', 10000, 1)
Char.ShutUp($scplayer, True)
Game.SetWantedMultiplier(0.0)
Game.SetMaxFireGenerations(1)
Path.SwitchRoadsOff(2180.18, -1130.28, 21.2, 2276.82, -1151.26, 28.0)
Path.SwitchPedRoadsOff(2180.18, -1130.28, 21.2, 2276.82, -1151.26, 28.0)
Game.SwitchEmergencyServices(False)
Camera.DoFade(500, Fade.In)

:DRUGS4_1706
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DRUGS4_1732
goto @DRUGS4_67763

:DRUGS4_1732
if 
  129@ == 0
goto_if_false @DRUGS4_1976
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_1976
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_1976
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_1976
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_1976
if 
  Char.IsSittingInCar($sweet, $sweet_car)
goto_if_false @DRUGS4_1976
if 
  Char.IsSittingInCar($ryder, $sweet_car)
goto_if_false @DRUGS4_1976
if 
  Char.IsSittingInCar($big_smoke, $sweet_car)
goto_if_false @DRUGS4_1976
if 
  Char.IsSittingInCar($scplayer, $sweet_car)
goto_if_false @DRUGS4_1976
Blip.Remove(183@)
184@ = Blip.AddForCoord(2256.239, -1146.909, 25.121)
Audio.SetRadioChannel(RadioChannel.CSR)
Text.PrintNow('LAF1_3', 7000, 1)
World.SwitchEntryExit('MOTEL2', False)
TIMERA = 0
130@ = 1
128@ = 1
129@ = 1

:DRUGS4_1976
if 
  128@ == 1
goto_if_false @DRUGS4_3125
gosub @DRUGS4_66552
if 
  178@ == 0
goto_if_false @DRUGS4_2085
if 
  179@ == 0
goto_if_false @DRUGS4_2085
if 
  TIMERA > 7000
goto_if_false @DRUGS4_2085
set_lvar_int_to_constant 106@ = 8234
set_lvar_text_label 107@s = 'FIN1_GA'
gosub @DRUGS4_66510

:DRUGS4_2085
if 
  178@ == 1
goto_if_false @DRUGS4_2150
if 
  179@ == 0
goto_if_false @DRUGS4_2150
set_lvar_int_to_constant 106@ = 8205
set_lvar_text_label 107@s = 'FIN1_GB'
gosub @DRUGS4_66510

:DRUGS4_2150
if 
  178@ == 2
goto_if_false @DRUGS4_2215
if 
  179@ == 0
goto_if_false @DRUGS4_2215
set_lvar_int_to_constant 106@ = 8262
set_lvar_text_label 107@s = 'FIN1_GC'
gosub @DRUGS4_66510

:DRUGS4_2215
if 
  178@ == 3
goto_if_false @DRUGS4_2280
if 
  179@ == 0
goto_if_false @DRUGS4_2280
set_lvar_int_to_constant 106@ = 8235
set_lvar_text_label 107@s = 'FIN1_GD'
gosub @DRUGS4_66510

:DRUGS4_2280
if 
  178@ == 4
goto_if_false @DRUGS4_2345
if 
  179@ == 0
goto_if_false @DRUGS4_2345
set_lvar_int_to_constant 106@ = 8206
set_lvar_text_label 107@s = 'FIN1_GE'
gosub @DRUGS4_66510

:DRUGS4_2345
if 
  178@ == 5
goto_if_false @DRUGS4_2410
if 
  179@ == 0
goto_if_false @DRUGS4_2410
set_lvar_int_to_constant 106@ = 8236
set_lvar_text_label 107@s = 'FIN1_GG'
gosub @DRUGS4_66510

:DRUGS4_2410
if 
  178@ == 6
goto_if_false @DRUGS4_2475
if 
  179@ == 0
goto_if_false @DRUGS4_2475
set_lvar_int_to_constant 106@ = 8305
set_lvar_text_label 107@s = 'FIN1_GI'
gosub @DRUGS4_66510

:DRUGS4_2475
if 
  178@ == 7
goto_if_false @DRUGS4_2540
if 
  179@ == 0
goto_if_false @DRUGS4_2540
set_lvar_int_to_constant 106@ = 8264
set_lvar_text_label 107@s = 'FIN1_GJ'
gosub @DRUGS4_66510

:DRUGS4_2540
if 
  178@ == 8
goto_if_false @DRUGS4_2605
if 
  179@ == 0
goto_if_false @DRUGS4_2605
set_lvar_int_to_constant 106@ = 8265
set_lvar_text_label 107@s = 'FIN1_GK'
gosub @DRUGS4_66510

:DRUGS4_2605
if 
  178@ == 9
goto_if_false @DRUGS4_2670
if 
  179@ == 0
goto_if_false @DRUGS4_2670
set_lvar_int_to_constant 106@ = 8238
set_lvar_text_label 107@s = 'FIN1_GL'
gosub @DRUGS4_66510

:DRUGS4_2670
if 
  178@ == 10
goto_if_false @DRUGS4_2735
if 
  179@ == 0
goto_if_false @DRUGS4_2735
set_lvar_int_to_constant 106@ = 8266
set_lvar_text_label 107@s = 'FIN1_GM'
gosub @DRUGS4_66510

:DRUGS4_2735
if 
  178@ == 11
goto_if_false @DRUGS4_2800
if 
  179@ == 0
goto_if_false @DRUGS4_2800
set_lvar_int_to_constant 106@ = 8239
set_lvar_text_label 107@s = 'FIN1_GN'
gosub @DRUGS4_66510

:DRUGS4_2800
if 
  178@ == 12
goto_if_false @DRUGS4_2865
if 
  179@ == 0
goto_if_false @DRUGS4_2865
set_lvar_int_to_constant 106@ = 8306
set_lvar_text_label 107@s = 'FIN1_GO'
gosub @DRUGS4_66510

:DRUGS4_2865
if 
  178@ == 13
goto_if_false @DRUGS4_2930
if 
  179@ == 0
goto_if_false @DRUGS4_2930
set_lvar_int_to_constant 106@ = 8307
set_lvar_text_label 107@s = 'FIN1_GP'
gosub @DRUGS4_66510

:DRUGS4_2930
if 
  178@ == 14
goto_if_false @DRUGS4_2995
if 
  179@ == 0
goto_if_false @DRUGS4_2995
set_lvar_int_to_constant 106@ = 8240
set_lvar_text_label 107@s = 'FIN1_GQ'
gosub @DRUGS4_66510

:DRUGS4_2995
if 
  178@ == 15
goto_if_false @DRUGS4_3060
if 
  179@ == 0
goto_if_false @DRUGS4_3060
set_lvar_int_to_constant 106@ = 8241
set_lvar_text_label 107@s = 'FIN1_GR'
gosub @DRUGS4_66510

:DRUGS4_3060
if 
  178@ == 16
goto_if_false @DRUGS4_3125
if 
  179@ == 0
goto_if_false @DRUGS4_3125
set_lvar_int_to_constant 106@ = 8308
set_lvar_text_label 107@s = 'FIN1_GS'
gosub @DRUGS4_66510

:DRUGS4_3125
if or
  128@ == 1
  128@ == 100
goto_if_false @DRUGS4_3373
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_3373
if 
  130@ == 1
goto_if_false @DRUGS4_3257
if 
  not Char.IsInCar($scplayer, $sweet_car)
goto_if_false @DRUGS4_3257
Blip.Remove(184@)
183@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(183@, True)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SMOX_AD', 2000, 1)
128@ = 100
130@ = 0

:DRUGS4_3257
if 
  130@ == 0
goto_if_false @DRUGS4_3373
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @DRUGS4_3373
Blip.Remove(183@)
184@ = Blip.AddForCoord(2256.239, -1146.909, 25.121)
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  178@ > 16
goto_if_false @DRUGS4_3359
Text.PrintNow('LAF1_3', 5000, 1)

:DRUGS4_3359
128@ = 1
130@ = 1

:DRUGS4_3373
if or
  128@ == 0
  128@ == 1
  128@ == 100
goto_if_false @DRUGS4_3493
if or
  Char.IsDead($sweet)
  Char.IsDead($big_smoke)
  Char.IsDead($ryder)
goto_if_false @DRUGS4_3454
Text.PrintNow('LAF1_71', 5000, 1)
goto @DRUGS4_67703

:DRUGS4_3454
if 
  Car.IsDead($sweet_car)
goto_if_false @DRUGS4_3493
Text.PrintNow('LAF1_72', 5000, 1)
goto @DRUGS4_67703

:DRUGS4_3493
if 
  128@ == 1
goto_if_false @DRUGS4_3710
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_3710
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_3710
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_3710
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_3710
if 
  Char.IsSittingInCar($scplayer, $sweet_car)
goto_if_false @DRUGS4_3710
if 
  Car.Locate2D($sweet_car, 2256.239, -1146.909, 4.4, 4.4, True)
goto_if_false @DRUGS4_3710
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Player.SetControl($player1, False)
Game.SetMaxWantedLevel(0)
Player.ClearWantedLevel($player1)
World.ClearArea(2223.769, -1141.832, 200.0, 200.0, True)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
Game.SetWantedMultiplier(0.0)
Text.ClearPrints
128@ = 2

:DRUGS4_3710
if 
  128@ == 2
goto_if_false @DRUGS4_4460
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_4460
World.ClearArea(2223.971, -1149.75, 200.0, 200.0, False)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:DRUGS4_3786
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS4_3810
wait 0
goto @DRUGS4_3786

:DRUGS4_3810
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8268)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8207)
Streaming.RequestModel(497)
Streaming.RequestModel(427)
Streaming.RequestAnimation("CAR_CHAT")
Streaming.LoadAllModelsNow

:DRUGS4_3856
if or
  not Streaming.HasModelLoaded(497)
  not Streaming.HasModelLoaded(427)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
  not Streaming.HasAnimationLoaded("CAR_CHAT")
goto_if_false @DRUGS4_3908
wait 0
goto @DRUGS4_3856

:DRUGS4_3908
34@ = Char.Create(PedType.Mission3, 107, 2220.37, -1160.318, 24.7265)
Char.SetHeading(34@, 272.7973)
Task.PlayAnim(34@, "IDLE_CHAT", "PED", 8.0, True, False, False, False, -1)
Char.SetDecisionMaker(34@, 55@)
Char.SetNeverTargeted(34@, True)
wait 250
35@ = Char.Create(PedType.Mission3, 106, 2221.564, -1160.359, 24.7265)
Char.SetHeading(35@, 85.7682)
Task.PlayAnim(35@, "IDLE_CHAT", "PED", 8.0, True, False, False, False, -1)
Char.SetDecisionMaker(35@, 55@)
Char.SetNeverTargeted(35@, True)
36@ = Char.Create(PedType.Mission3, 106, 2227.224, -1172.07, 24.7265)
Char.SetHeading(36@, 359.1032)
Char.SetDecisionMaker(36@, 55@)
Char.SetNeverTargeted(36@, True)
37@ = Char.Create(PedType.Mission3, 107, 2226.389, -1171.688, 24.7265)
Char.SetHeading(37@, 278.7767)
Task.PlayAnim(37@, "IDLE_CHAT", "PED", 8.0, True, False, False, False, -1)
Char.SetDecisionMaker(37@, 55@)
Char.SetNeverTargeted(37@, True)
Streaming.LoadSceneInDirection(2236.146, -1146.359, 25.4346, 34.0)
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_4324
Car.SetIdle($sweet_car)
Car.SetCoordinates($sweet_car, 2278.411, -1147.018, 25.5)
Car.SetHeading($sweet_car, 80.53)
Camera.ResetNewScriptables
Camera.SetFixedPosition(2236.146, -1146.359, 25.4346, 0.0, 0.0, 0.0)

:DRUGS4_4324
Streaming.LoadScene(2226.389, -1171.688, 24.7265)
Camera.DoFade(250, Fade.In)
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_4372
Car.StartPlayback($sweet_car, 350)

:DRUGS4_4372
Camera.SetVectorMove(2236.146, -1146.359, 25.4346, 2236.146, -1146.359, 25.4346, 2500, True)
Camera.SetVectorTrack(2235.937, -1145.381, 25.444, 2235.365, -1145.735, 25.444, 2500, True)
TIMERA = 0
128@ = 3

:DRUGS4_4460
if 
  128@ == 3
goto_if_false @DRUGS4_4601
if 
  TIMERA > 2500
goto_if_false @DRUGS4_4601
142@ = 0
skip_cutscene_start_internal @DRUGS4_11247
Camera.SetFixedPosition(2220.675, -1161.401, 26.4187, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2220.948, -1160.44, 26.3852, SwitchType.JumpCut)
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_4587
Car.PopPanel($sweet_car, 4, False)

:DRUGS4_4587
TIMERA = 0
128@ = 4

:DRUGS4_4601
if 
  128@ == 4
goto_if_false @DRUGS4_5169
if 
  TIMERA > 2750
goto_if_false @DRUGS4_5169
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_5169
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_5169
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_5169
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_5169
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_5169
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_5169
if 
  Car.IsPlaybackGoingOn($sweet_car)
goto_if_false @DRUGS4_4753
Car.StopPlayback($sweet_car)

:DRUGS4_4753
Camera.SetNearClip(0.1)
Car.SetCoordinates($sweet_car, 2224.357, -1149.741, 24.8342)
Car.SetHeading($sweet_car, 180.1644)
Camera.SetFixedPosition(2224.384, -1150.745, 26.0663, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2224.389, -1149.749, 25.9763, SwitchType.JumpCut)
Task.PlayAnim($scplayer, "CAR_SC1_FL", "CAR_CHAT", 6.0, False, False, False, False, -1)
Task.PlayAnim($sweet, "CAR_SC1_BL", "CAR_CHAT", 6.0, False, False, False, False, -1)
Task.PlayAnim($big_smoke, "CAR_SC1_FR", "CAR_CHAT", 6.0, False, False, False, False, -1)
Task.PlayAnim($ryder, "CAR_SC1_BR", "CAR_CHAT", 6.0, False, False, False, False, -1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('FIN1_HA', 5000, 1)
Char.StartFacialTalk($sweet, 10000)

:DRUGS4_5037
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_5063
wait 0
goto @DRUGS4_5037

:DRUGS4_5063
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_5090
Char.StopFacialTalk($sweet)

:DRUGS4_5090
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8269)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('FIN1_HB', 5000, 1)
Char.StartFacialTalk($scplayer, 10000)

:DRUGS4_5125
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_5151
wait 0
goto @DRUGS4_5125

:DRUGS4_5151
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Char.StopFacialTalk($scplayer)
128@ = 5

:DRUGS4_5169
if 
  128@ == 5
goto_if_false @DRUGS4_5320
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_5320
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_5320
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('FIN1_HC', 5000, 1)
Char.StartFacialTalk($sweet, 10000)

:DRUGS4_5246
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_5272
wait 0
goto @DRUGS4_5246

:DRUGS4_5272
Text.ClearPrints
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_5295
Char.StopFacialTalk($sweet)

:DRUGS4_5295
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8243)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8208)
128@ = 6

:DRUGS4_5320
if 
  128@ == 6
goto_if_false @DRUGS4_5436
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_5436
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_5436
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_5436
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_5436
if 
  Char.IsInCar($sweet, $sweet_car)
goto_if_false @DRUGS4_5436
Task.LeaveCar($sweet, $sweet_car)
128@ = 7

:DRUGS4_5436
if 
  128@ == 7
goto_if_false @DRUGS4_5696
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_5696
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_5696
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_5696
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_5696
if 
  not Char.IsSittingInCar($sweet, $sweet_car)
goto_if_false @DRUGS4_5696
Camera.SetNearClip(0.2)
Camera.SetFixedPosition(2223.625, -1146.995, 26.1711, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2224.356, -1147.677, 26.2099, SwitchType.JumpCut)
Path.FlushRoute
Path.ExtendRoute(2230.81, -1159.59, 24.4)
Path.ExtendRoute(2233.75, -1159.83, 25.29)
Task.FollowPointRoute($sweet, 6, RouteMode.Once)
Task.PlayAnim($scplayer, "CAR_SC2_FL", "CAR_CHAT", 8.0, False, False, False, True, -1)
TIMERA = 0
128@ = 8

:DRUGS4_5696
if 
  128@ == 8
goto_if_false @DRUGS4_5853
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_5853
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_5853
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_5853
if 
  Char.LocateOnFoot2D($sweet, 2233.75, -1159.83, 2.8, 2.8, False)
goto_if_false @DRUGS4_5814
128@ = 9
goto @DRUGS4_5853

:DRUGS4_5814
if 
  TIMERA > 10000
goto_if_false @DRUGS4_5853
Char.SetCoordinates($sweet, 2233.75, -1159.83, 25.29)

:DRUGS4_5853
if 
  128@ == 9
goto_if_false @DRUGS4_6225
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_6225
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_6225
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_6225
Camera.SetNearClip(0.1)
Camera.SetFixedPosition(2225.06, -1148.192, 26.0902, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2224.447, -1148.98, 26.0466, SwitchType.JumpCut)
Char.Delete($sweet)
Task.PlayAnim($scplayer, "CAR_SC3_FL", "CAR_CHAT", 4.0, False, False, False, False, -1)
Task.PlayAnim($big_smoke, "CAR_SC3_FR", "CAR_CHAT", 4.0, False, False, False, False, -1)
Task.PlayAnim($ryder, "CAR_SC3_BR", "CAR_CHAT", 4.0, False, False, False, False, -1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('FIN1_HD', 5000, 1)
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_6151
Char.StartFacialTalk($ryder, 10000)

:DRUGS4_6151
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_6177
wait 0
goto @DRUGS4_6151

:DRUGS4_6177
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_6198
Char.StopFacialTalk($ryder)

:DRUGS4_6198
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8310)
TIMERA = 0
128@ = 10

:DRUGS4_6225
if 
  128@ == 10
goto_if_false @DRUGS4_6416
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_6416
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_6416
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_6416
Camera.SetFixedPosition(2224.392, -1148.606, 25.9857, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2224.396, -1149.605, 25.955, SwitchType.JumpCut)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('FIN1_HE', 5000, 1)
Char.StartFacialTalk($scplayer, 10000)

:DRUGS4_6369
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_6395
wait 0
goto @DRUGS4_6369

:DRUGS4_6395
Text.ClearPrints
Char.StopFacialTalk($scplayer)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8349)
128@ = 11

:DRUGS4_6416
if 
  128@ == 11
goto_if_false @DRUGS4_6691
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_6691
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_6691
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_6691
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('FIN1_HG', 5000, 1)
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_6525
Char.StartFacialTalk($big_smoke, 10000)

:DRUGS4_6525
40@ = Car.Create(497, 2227.03, -1130.199, 25.305)
Car.StartPlayback(40@, 352)
if 
  Car.IsPlaybackGoingOn(40@)
goto_if_false @DRUGS4_6577
Car.PausePlayback(40@)

:DRUGS4_6577
44@ = Char.CreateInsideCar(40@, PedType.Mission4, 285)
Char.SetCanBeShotInVehicle(44@, False)
Car.LockDoors(40@, CarLock.Locked)
Char.SetCantBeDraggedOut(44@, True)
Char.SetDecisionMaker(44@, 55@)
Heli.SetBladesFullSpeed(40@)

:DRUGS4_6624
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_6650
wait 0
goto @DRUGS4_6624

:DRUGS4_6650
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_6671
Char.StopFacialTalk($big_smoke)

:DRUGS4_6671
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8303)
128@ = 12

:DRUGS4_6691
if 
  128@ == 12
goto_if_false @DRUGS4_6833
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_6833
if 
  Car.IsPlaybackGoingOn(40@)
goto_if_false @DRUGS4_6833
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_6833
Camera.SetNearClip(0.2)
Car.UnpausePlayback(40@)
Camera.SetFixedPosition(2182.522, -1083.687, 61.5308, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2182.996, -1084.463, 61.115, SwitchType.JumpCut)
TIMERA = 0
128@ = 13

:DRUGS4_6833
if 
  128@ == 13
goto_if_false @DRUGS4_7096
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_7096
if 
  TIMERA > 3000
goto_if_false @DRUGS4_7096
TIMERA = 0
Camera.SetFixedPosition(2232.178, -1149.902, 33.2809, 0.0, 0.0, 0.0)
Camera.PointAtCar(40@, CameraMode.Fixed, SwitchType.JumpCut)
58@ = Searchlight.CreateOnVehicle(40@, 0.0, 1.0, -0.5, 2228.36, -1171.48, 25.82, 5.0, 0.4)
Searchlight.MoveBetweenCoords(58@, 2228.36, -1171.48, 25.82, 2215.41, -1142.51, 25.5, 0.5)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('FIN1_HH', 5000, 1)

:DRUGS4_7042
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_7068
wait 0
goto @DRUGS4_7042

:DRUGS4_7068
Text.ClearPrints
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8341)
Streaming.RemoveAnimation("CAR_CHAT")
128@ = 14

:DRUGS4_7096
if 
  128@ == 14
goto_if_false @DRUGS4_7323
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_7323
if 
  Car.IsPlaybackGoingOn(40@)
goto_if_false @DRUGS4_7323
if 
  TIMERA > 3000
goto_if_false @DRUGS4_7323
Car.StopPlayback(40@)
Camera.SetFixedPosition(2226.998, -1144.541, 25.3493, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2226.594, -1145.45, 25.4594, SwitchType.JumpCut)
Car.StartPlayback(40@, 353)
if 
  not Char.IsDead(36@)
goto_if_false @DRUGS4_7269
Task.GoStraightToCoord(36@, 2219.71, -1178.52, 25.34, MoveState.Run, -1)

:DRUGS4_7269
if 
  not Char.IsDead(37@)
goto_if_false @DRUGS4_7309
Task.GoStraightToCoord(37@, 2206.65, -1172.63, 25.08, MoveState.Run, -1)

:DRUGS4_7309
TIMERA = 0
128@ = 15

:DRUGS4_7323
if 
  128@ == 15
goto_if_false @DRUGS4_7526
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_7526
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_7526
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRUGS4_7526
if 
  TIMERA > 2000
goto_if_false @DRUGS4_7526
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_7526
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('FIN1_HI', 5000, 1)
Task.LeaveAnyCar($scplayer)
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_7512
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_7512
Char.ClearLookAt($big_smoke)
Char.ClearLookAt($ryder)
Task.LookAtChar($big_smoke, $scplayer, 15000)
Task.LookAtChar($ryder, $scplayer, 15000)

:DRUGS4_7512
TIMERA = 0
128@ = 16

:DRUGS4_7526
if 
  128@ == 16
goto_if_false @DRUGS4_8138
if 
  TIMERA > 2000
goto_if_false @DRUGS4_8138
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_8138
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_8138
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
if 
  not Char.IsDead(36@)
goto_if_false @DRUGS4_7639
Task.GoStraightToCoord(36@, 2203.25, -1178.87, 25.44, MoveState.Run, -1)

:DRUGS4_7639
if 
  not Char.IsDead(37@)
goto_if_false @DRUGS4_7679
Task.GoStraightToCoord(37@, 2204.15, -1153.74, 25.58, MoveState.Run, -1)

:DRUGS4_7679
Camera.SetFixedPosition(2224.067, -1162.707, 40.9275, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2223.842, -1163.226, 40.103, SwitchType.JumpCut)
Clock.SetTimeScale(0.5)
47@ = Char.CreateSwatRope(PedType.Mission4, 285, 2223.56, -1168.05, 32.28)
Char.GiveWeapon(47@, WeaponType.Mp5, 9999)
Char.SetAccuracy(47@, 30)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('FIN1_CI', 3000, 1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8244)
wait 100
48@ = Char.CreateSwatRope(PedType.Mission4, 285, 2222.63, -1166.01, 32.25)
Char.GiveWeapon(48@, WeaponType.Mp5, 9999)
Char.SetAccuracy(48@, 30)
wait 50
49@ = Char.CreateSwatRope(PedType.Mission4, 285, 2221.58, -1168.9, 32.27)
Char.GiveWeapon(49@, WeaponType.Mp5, 9999)
Char.SetAccuracy(49@, 30)
wait 100
50@ = Char.CreateSwatRope(PedType.Mission4, 285, 2220.74, -1167.28, 32.22)
Char.GiveWeapon(50@, WeaponType.Mp5, 9999)
Char.SetAccuracy(50@, 30)
wait 500
if 
  not Char.IsDead(36@)
goto_if_false @DRUGS4_7983
Char.GiveWeapon(36@, WeaponType.Pistol, 9999)
Task.Duck(36@, 10000)

:DRUGS4_7983
if 
  not Char.IsDead(37@)
goto_if_false @DRUGS4_8034
Char.GiveWeapon(37@, WeaponType.Pistol, 9999)
Task.GoStraightToCoord(37@, 2221.179, -1177.662, 25.767, MoveState.Run, 5000)

:DRUGS4_8034
Camera.SetFixedPosition(2222.396, -1165.563, 24.9959, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2222.316, -1165.83, 25.9562, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 2226.144, -1149.997, 24.8496)
Char.SetHeading($scplayer, 102.7208)
Char.GiveWeapon($scplayer, WeaponType.Shotgun, 60)
TIMERA = 0
128@ = 17

:DRUGS4_8138
if 
  128@ == 17
goto_if_false @DRUGS4_8535
if 
  TIMERA > 1500
goto_if_false @DRUGS4_8535
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_8535
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_8535
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8311)
Clock.SetTimeScale(1.0)
Camera.SetFixedPosition(2222.594, -1150.71, 26.1976, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2223.403, -1150.139, 26.0591, SwitchType.JumpCut)
TIMERA = 0
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('FIN1_HJ', 5000, 1)
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_8327
Char.StartFacialTalk($ryder, 10000)

:DRUGS4_8327
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_8353
wait 0
goto @DRUGS4_8327

:DRUGS4_8353
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_8385
Char.StopFacialTalk($ryder)
Task.LookAtChar($scplayer, $ryder, 3000)

:DRUGS4_8385
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8210)

:DRUGS4_8398
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_8424
wait 0
goto @DRUGS4_8398

:DRUGS4_8424
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('FIN1_HK', 5000, 1)
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_8468
Char.StartFacialTalk($big_smoke, 10000)

:DRUGS4_8468
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_8494
wait 0
goto @DRUGS4_8468

:DRUGS4_8494
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_8515
Char.StopFacialTalk($big_smoke)

:DRUGS4_8515
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8245)
128@ = 18

:DRUGS4_8535
if 
  128@ == 18
goto_if_false @DRUGS4_9138
if 
  not Char.IsDead(47@)
goto_if_false @DRUGS4_9138
if 
  not Char.IsDead(48@)
goto_if_false @DRUGS4_9138
if 
  not Char.IsDead(49@)
goto_if_false @DRUGS4_9138
if 
  not Char.IsDead(50@)
goto_if_false @DRUGS4_9138
if 
  138@ == 0
goto_if_false @DRUGS4_8696
59@ = Char.GetScriptTaskStatus(47@, 1283)
if 
  is_int_lvar_equal_to_constant 59@ == 7
goto_if_false @DRUGS4_8696
Task.GoStraightToCoord(47@, 2226.43, -1155.37, 25.33, MoveState.Run, 5000)
138@ = 1

:DRUGS4_8696
if 
  139@ == 0
goto_if_false @DRUGS4_8775
60@ = Char.GetScriptTaskStatus(48@, 1283)
if 
  is_int_lvar_equal_to_constant 60@ == 7
goto_if_false @DRUGS4_8775
Task.GoStraightToCoord(48@, 2230.52, -1165.15, 25.63, MoveState.Run, 5000)
139@ = 1

:DRUGS4_8775
if 
  140@ == 0
goto_if_false @DRUGS4_8854
61@ = Char.GetScriptTaskStatus(49@, 1283)
if 
  is_int_lvar_equal_to_constant 61@ == 7
goto_if_false @DRUGS4_8854
Task.GoStraightToCoord(49@, 2217.53, -1163.18, 25.27, MoveState.Run, 5000)
140@ = 1

:DRUGS4_8854
if 
  141@ == 0
goto_if_false @DRUGS4_8933
62@ = Char.GetScriptTaskStatus(50@, 1283)
if 
  is_int_lvar_equal_to_constant 62@ == 7
goto_if_false @DRUGS4_8933
Task.GoStraightToCoord(50@, 2226.25, -1167.0, 25.04, MoveState.Run, 5000)
141@ = 1

:DRUGS4_8933
if 
  is_int_lvar_equal_to_constant 59@ == 7
goto_if_false @DRUGS4_9012
if 
  is_int_lvar_equal_to_constant 60@ == 7
goto_if_false @DRUGS4_9012
if 
  is_int_lvar_equal_to_constant 61@ == 7
goto_if_false @DRUGS4_9012
if 
  is_int_lvar_equal_to_constant 62@ == 7
goto_if_false @DRUGS4_9012
128@ = 21

:DRUGS4_9012
if 
  TIMERA > 3000
goto_if_false @DRUGS4_9138
Task.GoStraightToCoord(47@, 2226.43, -1155.37, 25.33, MoveState.Run, 5000)
Task.GoStraightToCoord(48@, 2230.52, -1165.15, 25.63, MoveState.Run, 5000)
Task.GoStraightToCoord(49@, 2217.53, -1163.18, 25.27, MoveState.Run, 5000)
Task.GoStraightToCoord(50@, 2226.25, -1167.0, 25.04, MoveState.Run, 5000)
128@ = 19

:DRUGS4_9138
if 
  128@ == 19
goto_if_false @DRUGS4_9559
if 
  TIMERA > 3000
goto_if_false @DRUGS4_9559
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_9559
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_9559
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_9559
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_9559
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_9559
Streaming.RequestCarRecording(354)
Streaming.RequestCarRecording(355)
Streaming.RequestCarRecording(356)
Task.ShuffleToNextCarSeat($big_smoke, $sweet_car)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('FIN1_HL', 5000, 1)
if 
  not Char.IsDead($scplayer)
goto_if_false @DRUGS4_9320
Char.StartFacialTalk($scplayer, 10000)

:DRUGS4_9320
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_9346
wait 0
goto @DRUGS4_9320

:DRUGS4_9346
if 
  not Char.IsDead($scplayer)
goto_if_false @DRUGS4_9367
Char.StopFacialTalk($scplayer)

:DRUGS4_9367
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:DRUGS4_9373
if or
  not Streaming.HasCarRecordingBeenLoaded(354)
  not Streaming.HasCarRecordingBeenLoaded(355)
  not Streaming.HasCarRecordingBeenLoaded(356)
goto_if_false @DRUGS4_9410
wait 0
goto @DRUGS4_9373

:DRUGS4_9410
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_9434
Car.StartPlayback($sweet_car, 356)

:DRUGS4_9434
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('FIN1_HM', 3000, 1)
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_9478
Char.StartFacialTalk($ryder, 10000)

:DRUGS4_9478
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_9545
if 
  Car.IsPlaybackGoingOn(40@)
goto_if_false @DRUGS4_9515
Car.StopPlayback(40@)

:DRUGS4_9515
Heli.GotoCoords(40@, 2217.58, -1167.67, 34.61, 10.0, 10.0)

:DRUGS4_9545
TIMERA = 0
128@ = 20

:DRUGS4_9559
if 
  128@ == 20
goto_if_false @DRUGS4_10305
if 
  TIMERA > 2000
goto_if_false @DRUGS4_10305
42@ = Car.Create(427, 2217.236, -1019.97, 30.7)
Car.SetHeading(42@, 176.5)
Car.SwitchSiren(42@, True)
Car.StartPlayback(42@, 354)
45@ = Char.CreateInsideCar(42@, PedType.Mission4, 285)
Char.GiveWeapon(45@, WeaponType.Mp5, 3000)
Char.SetAccuracy(45@, 30)
51@ = Char.CreateAsPassenger(42@, PedType.Mission4, 285, 1)
Char.GiveWeapon(51@, WeaponType.Mp5, 3000)
Char.SetAccuracy(51@, 30)
43@ = Car.Create(427, 2253.89, -1144.77, 26.47)
Car.SetHeading(43@, 89.947)
Car.SwitchSiren(43@, True)
Car.StartPlayback(43@, 355)
46@ = Char.CreateInsideCar(43@, PedType.Mission4, 285)
Char.SetAccuracy(46@, 30)
Char.GiveWeapon(46@, WeaponType.Mp5, 3000)
53@ = Char.CreateAsPassenger(43@, PedType.Mission4, 285, 1)
Char.SetAccuracy(53@, 30)
Char.GiveWeapon(53@, WeaponType.Mp5, 3000)
if 
  not Char.IsDead(34@)
goto_if_false @DRUGS4_9849
Char.SetRelationship(34@, RelationshipType.Hate, PedType.Mission4)
Char.SetDecisionMaker(34@, 57@)

:DRUGS4_9849
if 
  not Char.IsDead(35@)
goto_if_false @DRUGS4_9882
Char.SetRelationship(35@, RelationshipType.Hate, PedType.Mission4)
Char.SetDecisionMaker(35@, 57@)

:DRUGS4_9882
if 
  not Char.IsDead(36@)
goto_if_false @DRUGS4_9915
Char.SetRelationship(36@, RelationshipType.Hate, PedType.Mission4)
Char.SetDecisionMaker(36@, 57@)

:DRUGS4_9915
if 
  not Char.IsDead(37@)
goto_if_false @DRUGS4_9948
Char.SetRelationship(37@, RelationshipType.Hate, PedType.Mission4)
Char.SetDecisionMaker(37@, 57@)

:DRUGS4_9948
if 
  not Char.IsDead(47@)
goto_if_false @DRUGS4_9990
Char.SetRelationship(47@, RelationshipType.Hate, PedType.Mission3)
Char.SetRelationship(47@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(47@, 57@)

:DRUGS4_9990
if 
  not Char.IsDead(48@)
goto_if_false @DRUGS4_10032
Char.SetRelationship(48@, RelationshipType.Hate, PedType.Mission3)
Char.SetRelationship(48@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(48@, 57@)

:DRUGS4_10032
if 
  not Char.IsDead(49@)
goto_if_false @DRUGS4_10074
Char.SetRelationship(49@, RelationshipType.Hate, PedType.Mission3)
Char.SetRelationship(49@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(49@, 57@)

:DRUGS4_10074
if 
  not Char.IsDead(50@)
goto_if_false @DRUGS4_10107
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Mission3)
Char.SetDecisionMaker(50@, 57@)

:DRUGS4_10107
Camera.SetFixedPosition(2203.163, -1178.891, 31.8778, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2203.897, -1178.225, 31.7493, SwitchType.JumpCut)
Task.ToggleDuck($scplayer, True)
Task.GoStraightToCoord($scplayer, 2231.569, -1155.75, 25.85, MoveState.Walk, -1)
if 
  not Char.IsDead(34@)
goto_if_false @DRUGS4_10240
Char.GiveWeapon(34@, WeaponType.Pistol, 9999)
Task.GoStraightToCoord(34@, 2228.421, -1164.66, 25.766, MoveState.Run, 5000)

:DRUGS4_10240
if 
  not Char.IsDead(35@)
goto_if_false @DRUGS4_10291
Char.GiveWeapon(35@, WeaponType.Pistol, 9999)
Task.GoStraightToCoord(35@, 2221.47, -1164.66, 25.766, MoveState.Run, 5000)

:DRUGS4_10291
TIMERB = 0
128@ = 21

:DRUGS4_10305
if 
  128@ == 21
goto_if_false @DRUGS4_10448
if 
  not Car.IsDead(42@)
goto_if_false @DRUGS4_10448
if 
  not Car.IsPlaybackGoingOn(42@)
goto_if_false @DRUGS4_10448
if 
  not Char.IsDead(51@)
goto_if_false @DRUGS4_10398
if 
  Char.IsInCar(51@, 42@)
goto_if_false @DRUGS4_10398
Task.LeaveCar(51@, 42@)

:DRUGS4_10398
if 
  not Char.IsDead(45@)
goto_if_false @DRUGS4_10441
if 
  Char.IsInCar(45@, 42@)
goto_if_false @DRUGS4_10441
Task.LeaveCar(45@, 42@)

:DRUGS4_10441
128@ = 22

:DRUGS4_10448
if 
  128@ == 22
goto_if_false @DRUGS4_10749
if 
  not Car.IsDead(43@)
goto_if_false @DRUGS4_10749
if 
  not Car.IsPlaybackGoingOn(43@)
goto_if_false @DRUGS4_10749
if 
  not Char.IsDead(53@)
goto_if_false @DRUGS4_10541
if 
  Char.IsInCar(53@, 43@)
goto_if_false @DRUGS4_10541
Task.LeaveCar(53@, 43@)

:DRUGS4_10541
if 
  not Char.IsDead(46@)
goto_if_false @DRUGS4_10584
if 
  Char.IsInCar(46@, 43@)
goto_if_false @DRUGS4_10584
Task.LeaveCar(46@, 43@)

:DRUGS4_10584
if 
  not Char.IsDead(45@)
goto_if_false @DRUGS4_10626
Char.SetRelationship(45@, RelationshipType.Hate, PedType.Mission3)
Char.SetRelationship(45@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(45@, 57@)

:DRUGS4_10626
if 
  not Char.IsDead(46@)
goto_if_false @DRUGS4_10659
Char.SetRelationship(46@, RelationshipType.Hate, PedType.Mission3)
Char.SetDecisionMaker(46@, 57@)

:DRUGS4_10659
if 
  not Char.IsDead(51@)
goto_if_false @DRUGS4_10692
Char.SetRelationship(51@, RelationshipType.Hate, PedType.Mission3)
Char.SetDecisionMaker(51@, 57@)

:DRUGS4_10692
if 
  not Char.IsDead(53@)
goto_if_false @DRUGS4_10725
Char.SetRelationship(53@, RelationshipType.Hate, PedType.Mission3)
Char.SetDecisionMaker(53@, 57@)

:DRUGS4_10725
Char.SetHeading($scplayer, 150.0)
TIMERA = 0
128@ = 23

:DRUGS4_10749
if 
  128@ == 23
goto_if_false @DRUGS4_11203
if 
  131@ == 0
goto_if_false @DRUGS4_10832
if 
  not Char.IsDead(45@)
goto_if_false @DRUGS4_10832
if 
  not Char.IsInAnyCar(45@)
goto_if_false @DRUGS4_10832
Task.Duck(45@, 5000)
131@ = 1

:DRUGS4_10832
if 
  132@ == 0
goto_if_false @DRUGS4_10914
if 
  not Char.IsDead(51@)
goto_if_false @DRUGS4_10914
if 
  not Char.IsInAnyCar(51@)
goto_if_false @DRUGS4_10914
Task.GoStraightToCoord(51@, 2203.77, -1156.44, 25.31, MoveState.Run, 5000)
132@ = 1

:DRUGS4_10914
if 
  134@ == 0
goto_if_false @DRUGS4_11050
if 
  not Char.IsDead(46@)
goto_if_false @DRUGS4_11050
if 
  not Char.IsInAnyCar(46@)
goto_if_false @DRUGS4_11050
Path.FlushRoute
Path.ExtendRoute(2215.4, -1146.19, 25.85)
Path.ExtendRoute(2214.67, -1149.71, 25.47)
Path.ExtendRoute(2204.83, -1157.04, 25.88)
Path.ExtendRoute(2209.01, -1166.46, 25.89)
Task.FollowPointRoute(46@, 6, RouteMode.Once)
134@ = 1

:DRUGS4_11050
if 
  135@ == 0
goto_if_false @DRUGS4_11203
if 
  not Char.IsDead(53@)
goto_if_false @DRUGS4_11203
if 
  not Char.IsInAnyCar(53@)
goto_if_false @DRUGS4_11203
Path.FlushRoute
Path.ExtendRoute(2222.47, -1146.52, 25.43)
Path.ExtendRoute(2215.4, -1146.19, 25.85)
Path.ExtendRoute(2204.83, -1157.04, 25.88)
Path.ExtendRoute(2206.61, -1168.51, 25.89)
Path.ExtendRoute(2211.0, -1171.72, 25.55)
Task.FollowPointRoute(53@, 6, RouteMode.Once)
135@ = 1

:DRUGS4_11203
if 
  128@ == 23
goto_if_false @DRUGS4_13311
if 
  TIMERA > 1000
goto_if_false @DRUGS4_13311
142@ = 1

:DRUGS4_11247
skip_cutscene_end 
if 
  142@ == 0
goto_if_false @DRUGS4_13177
Camera.DoFade(500, Fade.Out)

:DRUGS4_11274
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS4_11298
wait 0
goto @DRUGS4_11274

:DRUGS4_11298
Camera.ResetNewScriptables
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRUGS4_11353
Char.WarpFromCarToCoord($scplayer, 2231.569, -1155.75, 24.85)
Char.SetHeading($scplayer, 150.0)
goto @DRUGS4_11383

:DRUGS4_11353
Char.SetCoordinates($scplayer, 2231.569, -1155.75, 24.85)
Char.SetHeading($scplayer, 150.0)

:DRUGS4_11383
Char.Delete($sweet)
Char.Delete($big_smoke)
Char.Delete($ryder)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Streaming.RequestModel(492)
Streaming.RequestModel(107)
Streaming.RequestModel(106)
Streaming.RequestModel(353)
Streaming.RequestModel(346)
Streaming.RequestModel(285)
Streaming.RequestModel(497)
Streaming.RequestModel(427)
Streaming.LoadAllModelsNow

:DRUGS4_11446
if or
  not Streaming.HasModelLoaded(492)
  not Streaming.HasModelLoaded(107)
  not Streaming.HasModelLoaded(106)
goto_if_false @DRUGS4_11481
wait 0
goto @DRUGS4_11446

:DRUGS4_11481
if or
  not Streaming.HasModelLoaded(353)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(285)
  not Streaming.HasModelLoaded(497)
  not Streaming.HasModelLoaded(427)
goto_if_false @DRUGS4_11528
wait 0
goto @DRUGS4_11481

:DRUGS4_11528
Char.Delete(44@)
Char.Delete(45@)
Char.Delete(46@)
Char.Delete(47@)
Char.Delete(48@)
Char.Delete(49@)
Char.Delete(50@)
Char.Delete(51@)
Char.Delete(53@)
Char.Delete(34@)
Char.Delete(35@)
Char.Delete(36@)
Char.Delete(37@)
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_11630
if 
  Car.IsPlaybackGoingOn(40@)
goto_if_false @DRUGS4_11630
Car.StopPlayback(40@)

:DRUGS4_11630
if 
  not Car.IsDead(42@)
goto_if_false @DRUGS4_11667
if 
  Car.IsPlaybackGoingOn(42@)
goto_if_false @DRUGS4_11667
Car.StopPlayback(42@)

:DRUGS4_11667
if 
  not Car.IsDead(43@)
goto_if_false @DRUGS4_11704
if 
  Car.IsPlaybackGoingOn(43@)
goto_if_false @DRUGS4_11704
Car.StopPlayback(43@)

:DRUGS4_11704
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_11741
if 
  Car.IsPlaybackGoingOn($sweet_car)
goto_if_false @DRUGS4_11741
Car.StopPlayback($sweet_car)

:DRUGS4_11741
Car.Delete(40@)
Car.Delete(42@)
Car.Delete(43@)
Car.Delete($sweet_car)
Searchlight.Delete(58@)
42@ = Car.Create(427, 2210.24, -1159.976, 24.7265)
Car.SetHeading(42@, 191.9611)
Car.SwitchSiren(42@, True)
43@ = Car.Create(427, 2218.788, -1140.993, 24.7814)
Car.SetHeading(43@, 78.1047)
Car.SwitchSiren(43@, True)
40@ = Car.Create(497, 2276.22, -1140.87, 60.0)
44@ = Char.CreateInsideCar(40@, PedType.Mission4, 285)
Char.SetCanBeShotInVehicle(44@, False)
Char.SetCanBeShotInVehicle(44@, False)
Car.LockDoors(40@, CarLock.Locked)
Char.SetCantBeDraggedOut(44@, True)
Heli.SetBladesFullSpeed(40@)
Car.SetForwardSpeed(40@, 10.0)
Heli.GotoCoords(40@, 2217.58, -1167.67, 34.61, 10.0, 10.0)
Car.SetCoordinates(40@, 2217.58, -1167.67, 34.61)
58@ = Searchlight.CreateOnVehicle(40@, 0.0, 1.0, -0.5, 2228.36, -1171.48, 25.82, 5.0, 0.4)
Searchlight.MoveBetweenCoords(58@, 2228.36, -1171.48, 25.82, 2215.41, -1142.51, 25.5, 0.5)
46@ = Char.Create(PedType.Mission4, 285, 2209.01, -1166.46, 24.89)
Char.GiveWeapon(46@, WeaponType.Mp5, 3000)
Task.TurnCharToFaceCoord(46@, 2217.87, -1162.6, 25.33)
Char.SetAccuracy(46@, 30)
45@ = Char.Create(PedType.Mission4, 285, 2213.52, -1161.97, 24.77)
Char.GiveWeapon(45@, WeaponType.Mp5, 3000)
Task.TurnCharToFaceCoord(45@, 2217.87, -1162.6, 25.33)
Char.SetAccuracy(45@, 30)
51@ = Char.Create(PedType.Mission4, 285, 2203.77, -1156.44, 24.31)
Char.GiveWeapon(51@, WeaponType.Mp5, 3000)
Task.TurnCharToFaceCoord(51@, 2217.87, -1162.6, 25.33)
Char.SetAccuracy(51@, 30)
53@ = Char.Create(PedType.Mission4, 285, 2212.95, -1179.16, 24.31)
Char.GiveWeapon(53@, WeaponType.Mp5, 3000)
Task.TurnCharToFaceCoord(53@, 2217.87, -1162.6, 25.33)
Char.SetAccuracy(53@, 30)
47@ = Char.Create(PedType.Mission4, 285, 2226.43, -1155.37, 24.33)
Char.GiveWeapon(47@, WeaponType.Mp5, 3000)
Task.TurnCharToFaceCoord(47@, 2217.87, -1162.6, 25.33)
Char.SetAccuracy(47@, 30)
48@ = Char.Create(PedType.Mission4, 285, 2230.52, -1165.15, 24.63)
Char.GiveWeapon(48@, WeaponType.Mp5, 3000)
Task.TurnCharToFaceCoord(48@, 2217.87, -1162.6, 25.33)
Char.SetAccuracy(48@, 30)
49@ = Char.Create(PedType.Mission4, 285, 2217.53, -1163.18, 24.27)
Char.GiveWeapon(49@, WeaponType.Mp5, 3000)
Task.TurnCharToFaceCoord(49@, 2217.87, -1162.6, 25.33)
Char.SetAccuracy(49@, 30)
50@ = Char.Create(PedType.Mission4, 285, 2226.25, -1167.0, 24.04)
Char.GiveWeapon(50@, WeaponType.Mp5, 3000)
Task.TurnCharToFaceCoord(50@, 2217.87, -1162.6, 25.33)
Char.SetAccuracy(50@, 30)
34@ = Char.Create(PedType.Mission3, 107, 2228.421, -1164.66, 24.766)
Task.TurnCharToFaceCoord(34@, 2217.87, -1162.6, 25.33)
Char.SetDecisionMaker(34@, 57@)
Char.GiveWeapon(34@, WeaponType.Pistol, 9999)
Char.SetAccuracy(34@, 30)
Char.SetNeverTargeted(34@, True)
35@ = Char.Create(PedType.Mission3, 107, 2221.47, -1164.66, 24.766)
Task.TurnCharToFaceCoord(35@, 2217.87, -1162.6, 25.33)
Char.SetDecisionMaker(35@, 57@)
Char.GiveWeapon(35@, WeaponType.Pistol, 9999)
Char.SetAccuracy(35@, 40)
Char.SetNeverTargeted(35@, True)
36@ = Char.Create(PedType.Mission3, 106, 2227.224, -1172.07, 24.7265)
Task.TurnCharToFaceCoord(36@, 2217.87, -1162.6, 25.33)
Char.SetDecisionMaker(36@, 57@)
Char.GiveWeapon(36@, WeaponType.Pistol, 9999)
Char.SetAccuracy(36@, 30)
Char.SetNeverTargeted(36@, True)
37@ = Char.Create(PedType.Mission3, 106, 2221.179, -1177.662, 24.767)
Task.TurnCharToFaceCoord(37@, 2217.87, -1162.6, 25.33)
Char.SetDecisionMaker(37@, 57@)
Char.GiveWeapon(37@, WeaponType.Pistol, 9999)
Char.SetAccuracy(37@, 40)
Char.SetNeverTargeted(37@, True)
Char.SetRelationship(34@, RelationshipType.Hate, PedType.Mission4)
Char.SetDecisionMaker(34@, 57@)
Char.SetRelationship(35@, RelationshipType.Hate, PedType.Mission4)
Char.SetDecisionMaker(35@, 57@)
Char.SetRelationship(36@, RelationshipType.Hate, PedType.Mission4)
Char.SetDecisionMaker(36@, 57@)
Char.SetRelationship(37@, RelationshipType.Hate, PedType.Mission4)
Char.SetDecisionMaker(37@, 57@)
Char.SetRelationship(45@, RelationshipType.Hate, PedType.Mission3)
Char.SetRelationship(45@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(45@, 57@)
Char.SetRelationship(46@, RelationshipType.Hate, PedType.Mission3)
Char.SetRelationship(46@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(46@, 57@)
Char.SetRelationship(47@, RelationshipType.Hate, PedType.Mission3)
Char.SetRelationship(47@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(47@, 57@)
Char.SetRelationship(48@, RelationshipType.Hate, PedType.Mission3)
Char.SetRelationship(48@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(48@, 57@)
Char.SetRelationship(49@, RelationshipType.Hate, PedType.Mission3)
Char.SetRelationship(49@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(49@, 57@)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Mission3)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(50@, 57@)
Char.SetRelationship(51@, RelationshipType.Hate, PedType.Mission3)
Char.SetDecisionMaker(51@, 57@)
Char.SetRelationship(53@, RelationshipType.Hate, PedType.Mission3)
Char.SetDecisionMaker(53@, 57@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Clock.SetTimeScale(1.0)
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Char.GiveWeapon($scplayer, WeaponType.Shotgun, 60)
Char.SetHeading($scplayer, 192.0)
Player.SetControl($player1, True)
Camera.DoFade(1500, Fade.In)

:DRUGS4_13177
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_13201
Car.SetHealth(40@, 700)

:DRUGS4_13201
Char.Delete($big_smoke)
Char.Delete($ryder)
Car.Delete($sweet_car)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Streaming.RemoveAnimation("CAR_CHAT")
Text.ClearPrints
Camera.RestoreJumpcut
Blip.Remove(184@)
Blip.Remove(183@)
184@ = Blip.AddForCoord(2235.3, -1159.67, 25.94)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Text.PrintNow('LAF1_17', 10000, 1)
128@ = 24

:DRUGS4_13311
if 
  128@ == 24
goto_if_false @DRUGS4_15334
if 
  143@ == 0
goto_if_false @DRUGS4_13380
if 
  Car.IsDead(40@)
goto_if_false @DRUGS4_13380
Streaming.MarkModelAsNoLongerNeeded(497)
Searchlight.Delete(58@)
143@ = 1

:DRUGS4_13380
if 
  144@ == 0
goto_if_false @DRUGS4_13426
if 
  Car.IsDead(42@)
goto_if_false @DRUGS4_13426
Car.MarkAsNoLongerNeeded(42@)
144@ = 1

:DRUGS4_13426
if 
  145@ == 0
goto_if_false @DRUGS4_13472
if 
  Car.IsDead(43@)
goto_if_false @DRUGS4_13472
Car.MarkAsNoLongerNeeded(43@)
145@ = 1

:DRUGS4_13472
if 
  144@ == 1
goto_if_false @DRUGS4_13527
if 
  145@ == 1
goto_if_false @DRUGS4_13527
Streaming.MarkModelAsNoLongerNeeded(427)
144@ = 2
145@ = 2

:DRUGS4_13527
64@ = Char.GetAreaVisible($scplayer)
if 
  64@ == 15
goto_if_false @DRUGS4_15334
Char.Delete(44@)
Char.Delete(45@)
Char.Delete(46@)
Char.Delete(47@)
Char.Delete(48@)
Char.Delete(49@)
Char.Delete(50@)
Char.Delete(51@)
Char.Delete(53@)
Char.Delete(34@)
Char.Delete(35@)
Char.Delete(36@)
Char.Delete(37@)
Car.Delete(40@)
Car.Delete(42@)
Car.Delete(43@)
Searchlight.Delete(58@)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(497)
Streaming.MarkModelAsNoLongerNeeded(427)
132@ = 0
133@ = 0
135@ = 0
136@ = 0
138@ = 0
138@ = 0
Player.SetControl($player1, False)
Blip.Remove(184@)
Streaming.RemoveAnimation("CAR_CHAT")
34@ = Char.Create(PedType.Mission1, 106, 2229.566, -1150.495, 1029.0)
Char.SetHasUsedEntryExit(34@, 2232.41, -1160.04, 20.0)
Char.SetHeading(34@, 86.6836)
Char.SetNeverTargeted(34@, True)
Char.SetDecisionMaker(34@, 55@)
Char.SetOnlyDamagedByPlayer(34@, 55@)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8212)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8331)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 29001)
Streaming.RequestAnimation("SWAT")
Streaming.RequestModel(63)
Streaming.RequestModel(#IMY_SKYLIGHT)
Streaming.RequestModel(#KMB_TROLLEY)
Streaming.RequestAnimation("KISSING")
Streaming.LoadAllModelsNow

:DRUGS4_13852
if or
  not Streaming.HasAnimationLoaded("SWAT")
  not Streaming.HasModelLoaded(63)
  not Streaming.HasModelLoaded(#IMY_SKYLIGHT)
  not Streaming.HasAnimationLoaded("KISSING")
  not Streaming.HasModelLoaded(#KMB_TROLLEY)
goto_if_false @DRUGS4_13907
wait 0
goto @DRUGS4_13852

:DRUGS4_13907
if or
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @DRUGS4_13941
wait 0
goto @DRUGS4_13907

:DRUGS4_13941
127@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2240.686, -1187.269, 1033.836)
93@ = Object.CreateNoOffset(#IMY_SKYLIGHT, 2246.07, -1191.242, 1037.234)
84@ = Object.CreateNoOffset(#LXR_MOTEL_DOORSIM, 2239.432, -1170.749, 1029.997)
Object.SetHeading(84@, 270.0)
85@ = Object.CreateNoOffset(#LXR_MOTELVENT, 2217.072, -1188.664, 1032.276)
Object.SetHeading(85@, 180.0)
86@ = Object.Create(#LXR_MOTELVENT, 2193.188, -1164.511, 1032.276)
Object.SetHeading(86@, 90.0)
Object.FreezePosition(85@, True)
Object.FreezePosition(86@, True)
82@ = Char.Create(PedType.Mission1, 63, 2227.16, -1148.02, 1029.0)
Char.SetHasUsedEntryExit(82@, 2232.41, -1160.04, 20.0)
Char.SetNeverTargeted(82@, True)
Char.SetDecisionMaker(82@, 55@)
Char.SetOnlyDamagedByPlayer(82@, True)
$sweet = Char.Create(PedType.Special, 290, 2202.23, -1156.914, 1029.852)
Char.SetHasUsedEntryExit($sweet, 2232.41, -1160.04, 3.0)
Char.SetAreaVisible($sweet, 15)
Char.SetSuffersCriticalHits($sweet, False)
Char.SetHeading($sweet, 62.083)
Char.SetNeverTargeted($sweet, True)
Char.SetOnlyDamagedByPlayer($sweet, True)
Char.SetDecisionMaker($sweet, 55@)
183@ = Blip.AddForChar($sweet)
Blip.SetAsFriendly(183@, True)
Char.SetHealth($sweet, 1000)
Char.GiveWeapon($sweet, WeaponType.Mp5, 9999)
Char.SetProofs($sweet, False, True, True, True, True)
66@ = Char.Create(PedType.Mission1, 106, 2220.524, -1137.826, 1026.798)
Char.SetHasUsedEntryExit(66@, 2232.41, -1160.04, 20.0)
Char.SetHeading(66@, 181.8677)
Task.PlayAnimNonInterruptable(66@, "GNSTWALL_INJURD", "SWAT", 8.0, True, False, False, False, -1)
Char.SetProofs(66@, True, True, True, True, True)
Char.SetNeverTargeted(66@, True)
Char.SetDecisionMaker(66@, 55@)
Char.SetBleeding(66@, True)
Char.SetOnlyDamagedByPlayer(66@, True)
35@ = Char.Create(PedType.Mission1, 106, 2234.92, -1149.63, 1029.0)
Char.SetDecisionMaker(35@, 55@)
Char.SetHasUsedEntryExit(35@, 2232.41, -1160.04, 20.0)
52@ = Char.Create(PedType.Mission2, 285, 2239.309, -1151.724, 1028.779)
Char.SetHeading(52@, 177.9528)
Char.GiveWeapon(52@, WeaponType.Mp5, 9999)
Char.SetDecisionMaker(52@, 55@)
Char.SetOnlyDamagedByPlayer(52@, True)
Char.SetHealth(52@, 100)
Char.SetHasUsedEntryExit(52@, 2232.41, -1160.04, 20.0)
83@ = Char.Create(PedType.Mission1, 63, 2234.99, -1159.55, 1029.84)
Char.SetHeading(83@, 267.0618)
Char.SetNeverTargeted(83@, True)
Char.SetDecisionMaker(83@, 55@)
Char.SetOnlyDamagedByPlayer(83@, True)
Char.SetHasUsedEntryExit(83@, 2232.41, -1160.04, 20.0)
Char.SetProofs(83@, False, True, False, False, False)
53@ = Char.Create(PedType.Mission2, 285, 2238.817, -1170.598, 1028.813)
Char.SetHeading(53@, 272.0738)
Char.GiveWeapon(53@, WeaponType.Mp5, 9999)
Char.SetDecisionMaker(53@, 55@)
Char.SetOnlyDamagedByPlayer(53@, True)
Char.SetHealth(53@, 150)
Char.SetShootRate(53@, 80)
Char.SetHasUsedEntryExit(53@, 2232.41, -1160.04, 20.0)
36@ = Char.Create(PedType.Mission3, 106, 2244.5, -1189.627, 1028.8)
Char.SetHeading(36@, 88.196)
Char.SetOnlyDamagedByPlayer(36@, True)
Char.GiveWeapon(36@, WeaponType.Pistol, 9999)
Char.SetNeverTargeted(36@, True)
Char.SetAccuracy(36@, 10)
Char.SetRelationship(36@, RelationshipType.Hate, PedType.Mission4)
Char.SetDecisionMaker(36@, 55@)
Char.SetHasUsedEntryExit(36@, 2232.41, -1160.04, 20.0)
37@ = Char.Create(PedType.Mission3, 107, 2241.05, -1192.373, 1028.798)
Char.SetHeading(37@, 358.2577)
Char.SetOnlyDamagedByPlayer(37@, True)
Char.GiveWeapon(37@, WeaponType.Pistol, 9999)
Char.SetAccuracy(37@, 10)
Char.SetNeverTargeted(37@, True)
Char.SetDecisionMaker(37@, 55@)
Char.SetHasUsedEntryExit(37@, 2232.41, -1160.04, 20.0)
38@ = Char.Create(PedType.Mission1, 106, 2240.156, -1186.704, 1028.798)
Char.SetHeading(38@, 90.1792)
Char.SetOnlyDamagedByPlayer(38@, True)
Char.GiveWeapon(38@, WeaponType.Mp5, 9999)
Char.SetNeverTargeted(38@, True)
Char.SetDecisionMaker(38@, 55@)
Char.SetHasUsedEntryExit(38@, 2232.41, -1160.04, 20.0)
67@ = Char.Create(PedType.Mission1, 107, 2234.84, -1191.202, 1029.845)
Char.SetHeading(67@, 272.171)
Char.SetOnlyDamagedByPlayer(67@, True)
Char.SetNeverTargeted(67@, True)
Task.PlayAnimNonInterruptable(67@, "GNSTWALL_INJURD", "SWAT", 8.0, True, False, False, False, -1)
Char.SetBleeding(67@, True)
Char.SetDecisionMaker(67@, 55@)
Char.SetHasUsedEntryExit(67@, 2232.41, -1160.04, 20.0)
65@ = Particle.Create("EXPLOSION_DOOR", 2239.51, -1170.77, 1029.84, 1)
Char.SetHasUsedEntryExit($scplayer, 2232.41, -1160.04, 20.0)
Char.SetCoordinates($scplayer, 2216.34, -1150.509, 1024.85)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
World.SwitchEntryExit('MOTEL1', False)
Text.PrintHelp('LAF1_7')
Text.PrintNow('LAF1_6', 5000, 1)
178@ = 0
179@ = 0
128@ = 25
146@ = 1

:DRUGS4_15334
if 
  172@ == 0
goto_if_false @DRUGS4_29396
if 
  146@ == 1
goto_if_false @DRUGS4_29396
if 
  147@ == 0
goto_if_false @DRUGS4_15978
Text.ClearPrints
97@ = Object.CreateNoOffset(#KMB_TROLLEY, 2242.433, -1166.712, 1029.304)
Object.SetHealth(97@, 150)
Object.SetOnlyDamagedByPlayer(97@, True)
98@ = Object.CreateNoOffset(#KMB_TROLLEY, 2240.11, -1174.919, 1029.304)
Object.SetHealth(98@, 250)
99@ = Object.CreateNoOffset(#KMB_TROLLEY, 2229.87, -1189.845, 1029.304)
Object.SetHeading(99@, 90.0)
Object.SetHealth(99@, 150)
Object.SetOnlyDamagedByPlayer(99@, True)
100@ = Object.CreateNoOffset(#KMB_TROLLEY, 2217.569, -1187.528, 1029.304)
Object.SetHeading(100@, 90.0)
Object.SetHealth(100@, 250)
Object.SetOnlyDamagedByPlayer(100@, True)
101@ = Object.CreateNoOffset(#KMB_TROLLEY, 2204.649, -1187.544, 1029.304)
Object.SetHeading(101@, 90.0)
Object.SetHealth(101@, 150)
Object.SetOnlyDamagedByPlayer(101@, True)
102@ = Object.CreateNoOffset(#KMB_TROLLEY, 2194.345, -1171.269, 1029.304)
Object.SetHealth(102@, 250)
103@ = Object.CreateNoOffset(#KMB_TROLLEY, 2192.079, -1166.364, 1029.304)
Object.SetHealth(103@, 150)
Object.SetOnlyDamagedByPlayer(103@, True)
if 
  not Char.IsDead(82@)
goto_if_false @DRUGS4_15851
Char.SetHealth(82@, 1)
109@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2227.25, -1139.12, 1029.84)
Path.ExtendRoute(2221.17, -1139.09, 1027.84)
Path.ExtendRoute(2221.64, -1145.11, 1025.84)
Path.ExtendRoute(2224.556, -1145.901, 1025.85)
Path.ExtendRoute(2224.465, -1142.276, 1025.85)
Task.FollowPointRoute(-1, 7, RouteMode.Once)
Task.PlayAnim(-1, "COWER", "PED", 8.0, True, False, False, False, -1)
Task.SetCharDecisionMaker(-1, 56@)
Sequence.Close(109@)
Char.PerformSequence(82@, 109@)
Sequence.Clear(109@)

:DRUGS4_15851
if 
  not Char.IsDead(34@)
goto_if_false @DRUGS4_15908
Task.PlayAnimWithFlags(34@, "RAIL_FALL", "SWAT", 8.0, False, False, False, True, -1, False, True)

:DRUGS4_15908
if 
  not Char.IsDead(34@)
goto_if_false @DRUGS4_15971
if 
  not Char.IsDead(52@)
goto_if_false @DRUGS4_15971
set_lvar_int_to_lvar_int 118@ = 52@
set_lvar_int_to_lvar_int 119@ = 34@
set_lvar_int_to_var_int 120@ = $scplayer
gosub @DRUGS4_67003

:DRUGS4_15971
147@ = 1

:DRUGS4_15978
if 
  147@ == 1
goto_if_false @DRUGS4_16129
if 
  not Char.IsDead(34@)
goto_if_false @DRUGS4_16129
if 
  Char.IsPlayingAnim(34@, "RAIL_FALL")
goto_if_false @DRUGS4_16129
96@ = Char.GetAnimCurrentTime(34@, "RAIL_FALL")
if 
  96@ == 1.0
goto_if_false @DRUGS4_16129
Task.PlayAnimNonInterruptable(34@, "RAIL_FALL_CRAWL", "SWAT", 1000.0, False, False, False, True, -1)
147@ = 2

:DRUGS4_16129
if 
  149@ == 0
goto_if_false @DRUGS4_16525
if 
  not Char.IsDead(66@)
goto_if_false @DRUGS4_16525
if 
  Char.LocateAnyMeansChar3D(66@, $scplayer, 4.5, 4.5, 3.5, False)
goto_if_false @DRUGS4_16525
51@ = Char.Create(PedType.Mission2, 285, 2229.462, -1150.524, 1028.845)
Char.SetHasUsedEntryExit(51@, 2232.41, -1160.04, 20.0)
Char.SetHeading(51@, 358.795)
Char.GiveWeapon(51@, WeaponType.Mp5, 9999)
Char.SetDecisionMaker(51@, 55@)
Char.SetAccuracy(51@, 50)
Char.SetOnlyDamagedByPlayer(51@, True)
Char.SetHealth(51@, 150)
Char.SetMaxHealth(51@, 150)
Char.Delete(52@)
52@ = Char.Create(PedType.Mission2, 285, 2239.309, -1151.724, 1029.279)
Char.SetHasUsedEntryExit(52@, 2232.41, -1160.04, 20.0)
Char.SetHeading(52@, 177.9528)
Char.GiveWeapon(52@, WeaponType.Mp5, 9999)
Char.SetDecisionMaker(52@, 55@)
Char.SetOnlyDamagedByPlayer(52@, True)
Char.SetAccuracy(52@, 80)
if 
  133@ == 0
goto_if_false @DRUGS4_16518
if 
  not Char.IsDead(52@)
goto_if_false @DRUGS4_16518
set_lvar_int_to_lvar_int 118@ = 52@
if 
  not Char.IsDead(38@)
goto_if_false @DRUGS4_16518
set_lvar_int_to_lvar_int 119@ = 38@
161@ = 1
122@ = 2241.78
123@ = -1194.52
124@ = 1031.38
gosub @DRUGS4_67214
161@ = 0
133@ = 1

:DRUGS4_16518
149@ = 1

:DRUGS4_16525
if 
  148@ == 0
goto_if_false @DRUGS4_19412
if 
  150@ == 0
goto_if_false @DRUGS4_16589
if 
  not Char.IsDead(35@)
goto_if_false @DRUGS4_16589
Char.ExplodeHead(35@)
150@ = 1

:DRUGS4_16589
if 
  132@ == 0
goto_if_false @DRUGS4_16701
if 
  not Char.IsDead(51@)
goto_if_false @DRUGS4_16701
if or
  Char.LocateAnyMeans3D($scplayer, 2229.591, -1150.647, 1028.798, 7.2, 7.2, 1.5, False)
  Char.HasBeenDamagedByChar(51@, $scplayer)
goto_if_false @DRUGS4_16701
set_lvar_int_to_lvar_int 118@ = 51@
gosub @DRUGS4_67131
132@ = 1

:DRUGS4_16701
if 
  133@ == 1
goto_if_false @DRUGS4_16801
if 
  not Char.IsDead(52@)
goto_if_false @DRUGS4_16801
if or
  Char.HasBeenDamagedByChar(52@, $scplayer)
  Char.LocateAnyMeansChar3D(52@, $scplayer, 4.0, 4.0, 3.0, False)
goto_if_false @DRUGS4_16801
Char.SetAccuracy(52@, 50)
Task.KillCharOnFoot(52@, $scplayer)
133@ = 2

:DRUGS4_16801
if 
  137@ == 0
goto_if_false @DRUGS4_17205
if 
  Char.IsInArea3D($scplayer, 2243.8, -1147.93, 1025.16, 2238.74, -1162.62, 1033.79, False)
goto_if_false @DRUGS4_17205
152@ = 1
if 
  180@ == 0
goto_if_false @DRUGS4_16985
if 
  not Char.IsDead(83@)
goto_if_false @DRUGS4_16985
Char.SetHealth(83@, 150)
126@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2249.355, -1159.683, 1029.797, MoveState.Sprint, 10000)
Task.AchieveHeading(-1, 87.888)
Task.StayInSamePlace(-1, True)
Sequence.Close(126@)
Char.PerformSequence(83@, 126@)
Sequence.Clear(126@)
180@ = 1

:DRUGS4_16985
69@ = Char.Create(PedType.Mission1, 285, 2228.607, -1189.721, 1028.798)
Char.SetHasUsedEntryExit(69@, 2232.41, -1160.04, 20.0)
Char.SetHeading(69@, 266.5963)
Char.GiveWeapon(69@, WeaponType.Mp5, 9999)
Char.SetDecisionMaker(69@, 55@)
Char.SetOnlyDamagedByPlayer(69@, True)
Char.SetHealth(69@, 150)
Char.SetMaxHealth(69@, 150)
Char.SetUsesUpperbodyDamageAnimsOnly(69@, True)
70@ = Char.Create(PedType.Mission1, 285, 2225.796, -1186.783, 1028.798)
Char.SetHasUsedEntryExit(70@, 2232.41, -1160.04, 20.0)
Char.SetHeading(70@, 273.6395)
Char.GiveWeapon(70@, WeaponType.Mp5, 9999)
Char.SetDecisionMaker(70@, 55@)
Char.SetOnlyDamagedByPlayer(70@, True)
Char.SetAccuracy(70@, 80)
Char.SetHealth(70@, 150)
Char.SetMaxHealth(70@, 150)
TIMERB = 0
137@ = 1

:DRUGS4_17205
if 
  137@ == 1
goto_if_false @DRUGS4_17278
if 
  Char.IsInArea3D($scplayer, 2243.0, -1154.3, 1025.16, 2238.74, -1170.62, 1033.79, False)
goto_if_false @DRUGS4_17278
137@ = 2

:DRUGS4_17278
if 
  137@ == 2
goto_if_false @DRUGS4_17708
71@ = Char.Create(PedType.Mission1, 285, 2187.48, -1186.9, 1033.3)
Char.SetHasUsedEntryExit(71@, 2232.41, -1160.04, 20.0)
Char.SetHeading(71@, 274.247)
Char.GiveWeapon(71@, WeaponType.Mp5, 99999)
Char.SetDecisionMaker(71@, 55@)
Char.SetOnlyDamagedByPlayer(71@, True)
Char.SetAccuracy(71@, 80)
Char.SetHealth(71@, 150)
Char.SetMaxHealth(71@, 150)
72@ = Char.Create(PedType.Mission1, 285, 2186.611, -1183.962, 1033.837)
Char.SetHasUsedEntryExit(72@, 2232.41, -1160.04, 20.0)
Char.SetHeading(72@, 286.2857)
Char.GiveWeapon(72@, WeaponType.Mp5, 99999)
Char.SetDecisionMaker(72@, 55@)
Char.SetOnlyDamagedByPlayer(72@, True)
Char.SetHealth(72@, 150)
Char.SetMaxHealth(72@, 150)
Char.SetUsesUpperbodyDamageAnimsOnly(72@, True)
73@ = Char.Create(PedType.Mission1, 285, 2190.157, -1182.068, 1033.829)
Char.SetHasUsedEntryExit(73@, 2232.41, -1160.04, 20.0)
Char.SetHeading(73@, 183.8877)
Char.GiveWeapon(73@, WeaponType.Mp5, 99999)
Char.SetDecisionMaker(73@, 55@)
Char.SetOnlyDamagedByPlayer(73@, True)
Char.SetHealth(73@, 150)
Char.SetMaxHealth(73@, 150)
74@ = Char.Create(PedType.Mission1, 285, 2188.579, -1184.78, 1028.798)
Char.SetHasUsedEntryExit(74@, 2232.41, -1160.04, 20.0)
Char.SetHeading(74@, 246.3679)
Char.GiveWeapon(74@, WeaponType.Mp5, 99999)
Char.SetDecisionMaker(74@, 55@)
Char.SetOnlyDamagedByPlayer(74@, True)
Char.SetHealth(74@, 150)
Char.SetUsesUpperbodyDamageAnimsOnly(74@, True)
137@ = 3

:DRUGS4_17708
if 
  137@ == 3
goto_if_false @DRUGS4_17886
if 
  135@ == 0
goto_if_false @DRUGS4_17886
if 
  not Char.IsDead(53@)
goto_if_false @DRUGS4_17886
if 
  Object.DoesExist(84@)
goto_if_false @DRUGS4_17790
Object.SetCollision(84@, False)
Object.Break(84@, 1)

:DRUGS4_17790
if 
  181@ == 0
goto_if_false @DRUGS4_17819
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
181@ = 1

:DRUGS4_17819
Particle.PlayAndKill(65@)
Task.PlayAnim(53@, "SWT_BREACH_01", "SWAT", 1000.0, False, True, True, False, -1)
135@ = 1
TIMERB = 0
137@ = 4

:DRUGS4_17886
if 
  137@ == 4
goto_if_false @DRUGS4_18098
if 
  136@ == 0
goto_if_false @DRUGS4_18098
if 
  TIMERB > 667
goto_if_false @DRUGS4_18098
54@ = Char.Create(PedType.Mission2, 285, 2238.317, -1170.598, 1028.813)
Char.SetHeading(54@, 272.0738)
Char.GiveWeapon(54@, WeaponType.Mp5, 9999)
Char.SetDecisionMaker(54@, 55@)
Char.SetOnlyDamagedByPlayer(54@, True)
Char.SetHealth(54@, 150)
Char.SetShootRate(54@, 80)
Char.SetHasUsedEntryExit(54@, 2232.41, -1160.04, 20.0)
Task.PlayAnim(54@, "SWT_BREACH_02", "SWAT", 1000.0, False, True, True, False, -1)
TIMERB = 0
136@ = 1
137@ = 5

:DRUGS4_18098
if 
  137@ == 5
goto_if_false @DRUGS4_18303
if 
  154@ == 0
goto_if_false @DRUGS4_18303
if 
  TIMERB > 333
goto_if_false @DRUGS4_18303
68@ = Char.Create(PedType.Mission2, 285, 2237.818, -1170.598, 1028.813)
Char.SetHeading(68@, 272.0738)
Char.GiveWeapon(68@, WeaponType.Mp5, 9999)
Char.SetDecisionMaker(68@, 55@)
Char.SetOnlyDamagedByPlayer(68@, True)
Char.SetHealth(68@, 150)
Char.SetShootRate(68@, 80)
Char.SetHasUsedEntryExit(68@, 2232.41, -1160.04, 20.0)
Task.PlayAnim(68@, "SWT_BREACH_03", "SWAT", 1000.0, False, True, True, False, -1)
154@ = 1
137@ = 6

:DRUGS4_18303
if 
  135@ == 1
goto_if_false @DRUGS4_18423
if 
  not Char.IsDead(53@)
goto_if_false @DRUGS4_18423
87@ = Char.GetScriptTaskStatus(53@, 1541)
if or
  is_int_lvar_equal_to_constant 87@ == 7
  Char.LocateAnyMeansChar2D(53@, $scplayer, 6.0, 6.0, False)
goto_if_false @DRUGS4_18423
Char.SetUsesUpperbodyDamageAnimsOnly(53@, True)
set_lvar_int_to_lvar_int 118@ = 53@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66914
135@ = 2

:DRUGS4_18423
if 
  136@ == 1
goto_if_false @DRUGS4_18552
if 
  not Char.IsDead(54@)
goto_if_false @DRUGS4_18552
88@ = Char.GetScriptTaskStatus(54@, 1541)
if or
  is_int_lvar_equal_to_constant 88@ == 7
  Char.LocateAnyMeansChar2D(54@, $scplayer, 4.5, 4.5, False)
goto_if_false @DRUGS4_18552
if 
  not Char.IsDead(37@)
goto_if_false @DRUGS4_18545
set_lvar_int_to_lvar_int 118@ = 54@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66914

:DRUGS4_18545
136@ = 2

:DRUGS4_18552
if 
  154@ == 1
goto_if_false @DRUGS4_18665
if 
  not Char.IsDead(68@)
goto_if_false @DRUGS4_18665
89@ = Char.GetScriptTaskStatus(68@, 1541)
if or
  is_int_lvar_equal_to_constant 89@ == 7
  Char.LocateAnyMeansChar2D(68@, $scplayer, 3.5, 3.5, False)
goto_if_false @DRUGS4_18665
set_lvar_int_to_lvar_int 118@ = 68@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66914
154@ = 2

:DRUGS4_18665
if 
  180@ == 1
goto_if_false @DRUGS4_19180
if 
  not Char.IsDead(83@)
goto_if_false @DRUGS4_19180
if 
  Char.LocateStoppedOnFoot3D(83@, 2249.35, -1159.683, 1028.79, 3.0, 3.0, 3.0, False)
goto_if_false @DRUGS4_19180
if 
  not Char.HasBeenDamagedByChar(83@, $scplayer)
goto_if_false @DRUGS4_19180
if 
  Char.LocateOnFoot3D($scplayer, 2248.35, -1159.683, 1028.79, 3.0, 3.0, 3.0, False)
goto_if_false @DRUGS4_19180
World.ClearArea(2248.35, -1159.683, 20.0, 20.0, False)
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2247.047, -1157.281, 1030.581, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2247.618, -1158.029, 1030.244, SwitchType.JumpCut)
Char.ClearTasksImmediately(83@)
Char.SetCoordinates(83@, 2249.35, -1159.683, 1028.79)
Char.SetHeading(83@, 87.888)
Char.SetCoordinates($scplayer, 2248.35, -1159.683, 1028.79)
Char.SetHeading($scplayer, 267.888)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
if 
  179@ <> 0
goto_if_false @DRUGS4_19008
179@ = 0
178@ += 1

:DRUGS4_19008
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8348)

:DRUGS4_19015
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_19041
wait 0
goto @DRUGS4_19015

:DRUGS4_19041
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('FIN1_DC', 3000, 1)
Task.PlayAnimNonInterruptable($scplayer, "PLAYA_KISS_03", "KISSING", 4.0, False, False, False, False, -1)
if 
  not Char.IsDead(83@)
goto_if_false @DRUGS4_19166
Task.PlayAnimNonInterruptable(83@, "GRLFRD_KISS_03", "KISSING", 4.0, False, False, False, False, -1)

:DRUGS4_19166
Char.SetHealth($scplayer, 100)
180@ = 2

:DRUGS4_19180
if 
  180@ == 2
goto_if_false @DRUGS4_19284
if 
  not Char.IsDead(83@)
goto_if_false @DRUGS4_19284
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_03")
goto_if_false @DRUGS4_19284
if 
  Char.IsPlayingAnim(83@, "GRLFRD_KISS_03")
goto_if_false @DRUGS4_19284
180@ = 3

:DRUGS4_19284
if 
  180@ == 3
goto_if_false @DRUGS4_19412
if 
  not Char.IsDead(83@)
goto_if_false @DRUGS4_19412
if 
  not Char.IsPlayingAnim($scplayer, "PLAYA_KISS_03")
goto_if_false @DRUGS4_19412
if 
  not Char.IsPlayingAnim(83@, "GRLFRD_KISS_03")
goto_if_false @DRUGS4_19412
Char.SetHealth(83@, 5)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Text.ClearPrints
180@ = 4

:DRUGS4_19412
if 
  152@ == 1
goto_if_false @DRUGS4_19697
if 
  not Char.IsDead(36@)
goto_if_false @DRUGS4_19491
set_lvar_int_to_lvar_int 118@ = 36@
122@ = 2232.41
123@ = -1188.66
124@ = 1030.26
gosub @DRUGS4_66786

:DRUGS4_19491
if 
  not Char.IsDead(37@)
goto_if_false @DRUGS4_19552
set_lvar_int_to_lvar_int 118@ = 37@
122@ = 2233.35
123@ = -1187.99
124@ = 1030.4
gosub @DRUGS4_66786

:DRUGS4_19552
if 
  not Char.IsDead(38@)
goto_if_false @DRUGS4_19651
set_lvar_int_to_lvar_int 118@ = 38@
if 
  not Char.IsDead(69@)
goto_if_false @DRUGS4_19651
set_lvar_int_to_lvar_int 119@ = 69@
122@ = 2186.49
123@ = -1189.18
124@ = 1030.97
161@ = 1
gosub @DRUGS4_67214
161@ = 0

:DRUGS4_19651
if 
  not Char.IsDead(69@)
goto_if_false @DRUGS4_19690
set_lvar_int_to_lvar_int 118@ = 69@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66914

:DRUGS4_19690
152@ = 2

:DRUGS4_19697
if 
  152@ == 2
goto_if_false @DRUGS4_20605
if 
  Char.LocateAnyMeans2D($scplayer, 2235.48, -1188.77, 10.0, 10.0, False)
goto_if_false @DRUGS4_20605
if 
  not Char.IsDead(70@)
goto_if_false @DRUGS4_19784
set_lvar_int_to_lvar_int 118@ = 70@
gosub @DRUGS4_67479

:DRUGS4_19784
Char.MarkAsNoLongerNeeded(66@)
Char.MarkAsNoLongerNeeded(82@)
Char.MarkAsNoLongerNeeded(34@)
Char.MarkAsNoLongerNeeded(51@)
Char.MarkAsNoLongerNeeded(35@)
Char.MarkAsNoLongerNeeded(52@)
Char.RemoveElegantly(83@)
if 
  Char.IsDead(53@)
goto_if_false @DRUGS4_19840
Char.MarkAsNoLongerNeeded(53@)

:DRUGS4_19840
if 
  Char.IsDead(54@)
goto_if_false @DRUGS4_19861
Char.MarkAsNoLongerNeeded(54@)

:DRUGS4_19861
if 
  Char.IsDead(68@)
goto_if_false @DRUGS4_19882
Char.MarkAsNoLongerNeeded(68@)

:DRUGS4_19882
75@ = Char.Create(PedType.Mission1, 285, 2216.605, -1188.611, 1032.27)
Char.SetHasUsedEntryExit(75@, 2232.41, -1160.04, 20.0)
Char.SetHeading(75@, 264.4329)
Char.GiveWeapon(75@, WeaponType.Mp5, 9999)
Char.SetDecisionMaker(75@, 55@)
Char.SetOnlyDamagedByPlayer(75@, True)
Char.SetHealth(75@, 150)
Char.SetAccuracy(75@, 80)
76@ = Char.Create(PedType.Mission1, 285, 2216.131, -1188.611, 1032.27)
Char.SetHasUsedEntryExit(76@, 2232.41, -1160.04, 20.0)
Char.SetHeading(76@, 264.4329)
Char.GiveWeapon(76@, WeaponType.Mp5, 9999)
Char.SetDecisionMaker(76@, 55@)
Char.SetOnlyDamagedByPlayer(76@, True)
Char.SetHealth(76@, 150)
Char.SetAccuracy(76@, 80)
77@ = Char.Create(PedType.Mission1, 285, 2193.129, -1164.661, 1032.269)
Char.SetHasUsedEntryExit(77@, 2232.41, -1160.04, 20.0)
Char.SetHeading(77@, 4.98)
Char.GiveWeapon(77@, WeaponType.Mp5, 9999)
Char.SetDecisionMaker(77@, 55@)
Char.SetOnlyDamagedByPlayer(77@, True)
Char.SetNeverTargeted(77@, True)
Char.SetHealth(77@, 1000)
78@ = Char.Create(PedType.Mission1, 285, 2195.489, -1172.941, 1029.859)
Char.SetHasUsedEntryExit(78@, 2232.41, -1160.04, 20.0)
Char.SetHeading(78@, 181.323)
Char.GiveWeapon(78@, WeaponType.Mp5, 9999)
Char.SetDecisionMaker(78@, 55@)
Char.SetOnlyDamagedByPlayer(78@, True)
Char.SetHealth(78@, 120)
79@ = Char.Create(PedType.Mission1, 285, 2191.987, -1165.214, 1029.852)
Char.SetHasUsedEntryExit(79@, 2232.41, -1160.04, 20.0)
Char.SetHeading(79@, 181.323)
Char.GiveWeapon(79@, WeaponType.Mp5, 9999)
Char.SetDecisionMaker(79@, 55@)
Char.SetOnlyDamagedByPlayer(79@, True)
Char.SetHealth(79@, 150)
Char.SetMaxHealth(79@, 150)
80@ = Char.Create(PedType.Mission1, 285, 2190.698, -1156.633, 1029.859)
Char.SetHasUsedEntryExit(80@, 2232.41, -1160.04, 20.0)
Char.SetHeading(80@, 189.575)
Char.GiveWeapon(80@, WeaponType.Mp5, 9999)
Char.SetDecisionMaker(80@, 55@)
Char.SetOnlyDamagedByPlayer(80@, True)
Char.SetAccuracy(80@, 30)
81@ = Char.Create(PedType.Mission1, 285, 2194.593, -1156.995, 1029.852)
Char.SetHasUsedEntryExit(81@, 2232.41, -1160.04, 20.0)
Char.SetHeading(81@, 275.754)
Char.GiveWeapon(81@, WeaponType.Mp5, 9999)
Char.SetDecisionMaker(81@, 55@)
Char.SetOnlyDamagedByPlayer(81@, True)
82@ = Char.Create(PedType.Mission1, 63, 2192.91, -1182.15, 1029.35)
Char.SetHasUsedEntryExit(82@, 2232.41, -1160.04, 20.0)
Char.SetNeverTargeted(82@, True)
Char.SetDecisionMaker(82@, 55@)
Char.SetProofs(82@, False, True, False, False, False)
152@ = 3
153@ = 1

:DRUGS4_20605
if 
  173@ == 0
goto_if_false @DRUGS4_20708
if 
  Char.LocateOnFoot3D($scplayer, 2241.34, -1186.11, 1029.76, 6.6, 6.6, 3.0, False)
goto_if_false @DRUGS4_20708
if 
  Object.DoesExist(93@)
goto_if_false @DRUGS4_20694
Object.Break(93@, 1)

:DRUGS4_20694
Char.ShutUp($scplayer, True)
173@ = 1

:DRUGS4_20708
if 
  173@ == 1
goto_if_false @DRUGS4_20926
47@ = Char.CreateSwatRope(PedType.Mission4, 285, 2246.42, -1192.88, 1039.5)
Char.GiveWeapon(47@, WeaponType.Mp5, 9999)
Char.SetRelationship(47@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(47@, RelationshipType.Hate, PedType.Mission3)
Char.SetDecisionMaker(47@, 57@)
Char.SetOnlyDamagedByPlayer(47@, True)
Char.SetHealth(47@, 150)
Char.SetMaxHealth(47@, 150)
Char.SetAccuracy(47@, 80)
if 
  not Char.IsDead(37@)
goto_if_false @DRUGS4_20857
if 
  not Char.IsDead(47@)
goto_if_false @DRUGS4_20857
Task.KillCharOnFoot(37@, 47@)

:DRUGS4_20857
if 
  not Char.IsDead(36@)
goto_if_false @DRUGS4_20912
if 
  not Char.IsDead(47@)
goto_if_false @DRUGS4_20912
set_lvar_int_to_lvar_int 118@ = 36@
set_lvar_int_to_lvar_int 119@ = 47@
gosub @DRUGS4_66914

:DRUGS4_20912
TIMERA = 0
173@ = 2

:DRUGS4_20926
if 
  173@ == 2
goto_if_false @DRUGS4_21210
if 
  TIMERA > 1000
goto_if_false @DRUGS4_21210
48@ = Char.CreateSwatRope(PedType.Mission4, 285, 2246.11, -1189.55, 1038.09)
Char.GiveWeapon(48@, WeaponType.Mp5, 9999)
Char.SetRelationship(48@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(48@, RelationshipType.Hate, PedType.Mission3)
Char.SetDecisionMaker(48@, 57@)
Char.SetOnlyDamagedByPlayer(48@, True)
Char.SetHealth(48@, 125)
Char.SetMaxHealth(48@, 125)
Char.SetAccuracy(48@, 80)
if 
  not Char.IsDead(36@)
goto_if_false @DRUGS4_21177
if 
  not Char.IsDead(47@)
goto_if_false @DRUGS4_21138
if 
  not Char.IsDead(48@)
goto_if_false @DRUGS4_21131
set_lvar_int_to_lvar_int 118@ = 36@
set_lvar_int_to_lvar_int 119@ = 47@
set_lvar_int_to_lvar_int 120@ = 48@
gosub @DRUGS4_67003

:DRUGS4_21131
goto @DRUGS4_21177

:DRUGS4_21138
if 
  not Char.IsDead(48@)
goto_if_false @DRUGS4_21177
set_lvar_int_to_lvar_int 118@ = 36@
set_lvar_int_to_lvar_int 119@ = 48@
gosub @DRUGS4_66914

:DRUGS4_21177
if 
  not Char.IsDead(37@)
goto_if_false @DRUGS4_21198
Task.Die(37@)

:DRUGS4_21198
Streaming.MarkModelAsNoLongerNeeded(#IMY_SKYLIGHT)
173@ = 3

:DRUGS4_21210
if 
  173@ > 2
goto_if_false @DRUGS4_21428
if 
  138@ == 0
goto_if_false @DRUGS4_21335
if 
  not Char.IsDead(47@)
goto_if_false @DRUGS4_21335
59@ = Char.GetScriptTaskStatus(47@, 1283)
if or
  is_int_lvar_equal_to_constant 59@ == 7
  Char.HasBeenDamagedByChar(47@, $scplayer)
goto_if_false @DRUGS4_21335
Task.KillCharOnFoot(47@, $scplayer)
if 
  not Char.IsDead(37@)
goto_if_false @DRUGS4_21328
Char.ExplodeHead(37@)

:DRUGS4_21328
138@ = 1

:DRUGS4_21335
if 
  139@ == 0
goto_if_false @DRUGS4_21428
if 
  not Char.IsDead(48@)
goto_if_false @DRUGS4_21428
60@ = Char.GetScriptTaskStatus(48@, 1283)
if or
  is_int_lvar_equal_to_constant 60@ == 7
  Char.HasBeenDamagedByChar(48@, $scplayer)
goto_if_false @DRUGS4_21428
Task.KillCharOnFoot(48@, $scplayer)
Char.SetOnlyDamagedByPlayer(48@, False)
139@ = 1

:DRUGS4_21428
if 
  153@ == 1
goto_if_false @DRUGS4_28754
if 
  163@ == 0
goto_if_false @DRUGS4_21633
if or
  Char.LocateAnyMeans3D($scplayer, 2232.7, -1188.84, 1029.4, 5.0, 5.0, 3.5, False)
  Char.IsDead(69@)
  Char.IsDead(70@)
goto_if_false @DRUGS4_21633
Char.ShutUp($scplayer, False)
if 
  Object.DoesExist(85@)
goto_if_false @DRUGS4_21583
Object.FreezePosition(85@, False)
Object.SetRotationVelocity(85@, 0.0, 0.6, 0.0)
Audio.AttachMissionAudioToObject(MissionAudioSlot.Slot3, 85@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:DRUGS4_21583
if 
  not Char.IsDead(36@)
goto_if_false @DRUGS4_21604
Char.ClearTasks(36@)

:DRUGS4_21604
if 
  181@ == 3
goto_if_false @DRUGS4_21626
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)

:DRUGS4_21626
163@ = 1

:DRUGS4_21633
if 
  163@ == 1
goto_if_false @DRUGS4_21727
if 
  not Char.IsDead(75@)
goto_if_false @DRUGS4_21727
Task.PlayAnimNonInterruptable(75@, "SWT_VENT_01", "SWAT", 1000.0, False, False, False, False, -1)
TIMERB = 0
163@ = 2
164@ = 1

:DRUGS4_21727
if 
  163@ == 2
goto_if_false @DRUGS4_21912
if 
  not Char.IsDead(75@)
goto_if_false @DRUGS4_21912
if 
  Char.IsPlayingAnim(75@, "SWT_VENT_01")
goto_if_false @DRUGS4_21912
90@ = Char.GetAnimCurrentTime(75@, "SWT_VENT_01")
if 
  90@ == 1.0
goto_if_false @DRUGS4_21912
Char.SetCoordinates(75@, 2217.85, -1188.86, 1028.93)
set_lvar_int_to_lvar_int 118@ = 75@
122@ = 2220.538
123@ = -1189.594
124@ = 1029.845
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66846
163@ = 3

:DRUGS4_21912
if 
  164@ == 1
goto_if_false @DRUGS4_22011
if 
  TIMERB > 3166
goto_if_false @DRUGS4_22011
if 
  not Char.IsDead(76@)
goto_if_false @DRUGS4_22011
Task.PlayAnimNonInterruptable(76@, "SWT_VENT_02", "SWAT", 1000.0, False, False, False, False, -1)
164@ = 2

:DRUGS4_22011
if 
  164@ == 2
goto_if_false @DRUGS4_22151
if 
  not Char.IsDead(76@)
goto_if_false @DRUGS4_22151
if 
  Char.IsPlayingAnim(76@, "SWT_VENT_02")
goto_if_false @DRUGS4_22151
91@ = Char.GetAnimCurrentTime(76@, "SWT_VENT_02")
if 
  91@ == 1.0
goto_if_false @DRUGS4_22151
Char.SetCoordinates(76@, 2217.85, -1188.86, 1028.93)
Task.KillCharOnFoot(76@, $scplayer)
164@ = 3

:DRUGS4_22151
if 
  174@ == 1
goto_if_false @DRUGS4_22334
if 
  not Char.IsDead(82@)
goto_if_false @DRUGS4_22334
Char.SetHealth(82@, 150)
121@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2193.064, -1188.77, 1029.845, MoveState.Sprint, 10000)
Task.GoStraightToCoord(-1, 2206.833, -1188.83, 1029.845, MoveState.Sprint, 10000)
Task.GoStraightToCoord(-1, 2209.588, -1190.2, 1029.845, MoveState.Sprint, 10000)
Task.GoStraightToCoord(-1, 2209.7, -1197.323, 1029.845, MoveState.Sprint, 10000)
Task.AchieveHeading(-1, 358.428)
Task.StayInSamePlace(-1, True)
Sequence.Close(121@)
Char.PerformSequence(82@, 121@)
Sequence.Clear(121@)
174@ = 2

:DRUGS4_22334
if 
  174@ == 2
goto_if_false @DRUGS4_22882
if 
  not Char.IsDead(82@)
goto_if_false @DRUGS4_22882
if 
  Char.LocateStoppedOnFoot3D(82@, 2209.7, -1197.323, 1029.845, 3.0, 3.0, 3.0, False)
goto_if_false @DRUGS4_22882
if 
  not Char.HasBeenDamagedByChar(82@, $scplayer)
goto_if_false @DRUGS4_22882
if 
  Char.LocateOnFoot3D($scplayer, 2209.7, -1197.323, 1029.845, 3.0, 3.0, 3.0, False)
goto_if_false @DRUGS4_22882
World.ClearArea(2209.7, -1197.323, 10.0, 10.0, False)
if 
  not Char.IsDead(36@)
goto_if_false @DRUGS4_22535
Char.RemoveElegantly(36@)
goto @DRUGS4_22540

:DRUGS4_22535
Char.MarkAsNoLongerNeeded(36@)

:DRUGS4_22540
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2207.529, -1195.725, 1031.273, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2208.273, -1196.114, 1030.731, SwitchType.JumpCut)
Char.ClearTasksImmediately(82@)
Char.SetCoordinates(82@, 2209.8, -1197.338, 1028.845)
Char.SetHeading(82@, 359.354)
Char.SetCoordinates($scplayer, 2209.8, -1196.338, 1028.845)
Char.SetHeading($scplayer, 178.62)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
if 
  179@ <> 0
goto_if_false @DRUGS4_22710
179@ = 0
178@ += 1

:DRUGS4_22710
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8346)

:DRUGS4_22717
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_22743
wait 0
goto @DRUGS4_22717

:DRUGS4_22743
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('FIN1_DA', 3000, 1)
Task.PlayAnim($scplayer, "PLAYA_KISS_03", "KISSING", 4.0, False, False, False, False, -1)
if 
  not Char.IsDead(82@)
goto_if_false @DRUGS4_22868
Task.PlayAnim(82@, "GRLFRD_KISS_03", "KISSING", 4.0, False, False, False, False, -1)

:DRUGS4_22868
Char.SetHealth($scplayer, 100)
174@ = 3

:DRUGS4_22882
if 
  174@ == 3
goto_if_false @DRUGS4_22986
if 
  not Char.IsDead(82@)
goto_if_false @DRUGS4_22986
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_03")
goto_if_false @DRUGS4_22986
if 
  Char.IsPlayingAnim(82@, "GRLFRD_KISS_03")
goto_if_false @DRUGS4_22986
174@ = 4

:DRUGS4_22986
if 
  174@ == 4
goto_if_false @DRUGS4_23114
if 
  not Char.IsDead(82@)
goto_if_false @DRUGS4_23114
if 
  not Char.IsPlayingAnim($scplayer, "PLAYA_KISS_03")
goto_if_false @DRUGS4_23114
if 
  not Char.IsPlayingAnim(82@, "GRLFRD_KISS_03")
goto_if_false @DRUGS4_23114
Char.SetHealth(82@, 5)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Text.ClearPrints
174@ = 5

:DRUGS4_23114
if 
  162@ == 0
goto_if_false @DRUGS4_23215
if 
  Char.LocateAnyMeans3D($scplayer, 2240.8, -1182.4, 1029.41, 4.0, 4.0, 2.5, False)
goto_if_false @DRUGS4_23215
if 
  not Char.IsDead(38@)
goto_if_false @DRUGS4_23208
Char.SetOnlyDamagedByPlayer(38@, False)
Char.ExplodeHead(38@)

:DRUGS4_23208
162@ = 1

:DRUGS4_23215
if 
  156@ == 0
goto_if_false @DRUGS4_23315
if 
  not Char.IsDead(70@)
goto_if_false @DRUGS4_23315
if or
  Char.HasBeenDamagedByChar(70@, $scplayer)
  Char.LocateAnyMeansChar3D(70@, $scplayer, 2.5, 2.5, 3.0, False)
goto_if_false @DRUGS4_23315
Char.SetAccuracy(70@, 30)
Task.KillCharOnFoot(70@, $scplayer)
156@ = 1

:DRUGS4_23315
if 
  157@ == 0
goto_if_false @DRUGS4_23420
if 
  158@ == 0
goto_if_false @DRUGS4_23420
if 
  Char.LocateAnyMeans3D($scplayer, 2204.65, -1188.62, 1029.44, 5.0, 5.0, 3.5, False)
goto_if_false @DRUGS4_23420
157@ = 1
158@ = 1
174@ = 1

:DRUGS4_23420
if 
  157@ == 1
goto_if_false @DRUGS4_23484
if 
  not Char.IsDead(71@)
goto_if_false @DRUGS4_23484
set_lvar_int_to_lvar_int 118@ = 71@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
157@ = 2

:DRUGS4_23484
if 
  158@ == 1
goto_if_false @DRUGS4_23604
if 
  not Char.IsDead(72@)
goto_if_false @DRUGS4_23604
Path.FlushRoute
Path.ExtendRoute(2186.67, -1192.4, 1031.867)
Path.ExtendRoute(2188.44, -1193.95, 1031.27)
Path.ExtendRoute(2193.31, -1193.57, 1030.34)
Path.ExtendRoute(2196.239, -1191.459, 1029.85)
Task.FollowPointRoute(72@, 6, RouteMode.Once)
158@ = 2

:DRUGS4_23604
if 
  158@ == 2
goto_if_false @DRUGS4_23714
if 
  not Char.IsDead(72@)
goto_if_false @DRUGS4_23714
if or
  Char.LocateStoppedAnyMeans2D(72@, 2196.239, -1191.459, 2.0, 2.0, False)
  Char.HasBeenDamagedByChar(72@, $scplayer)
goto_if_false @DRUGS4_23714
set_lvar_int_to_lvar_int 118@ = 72@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
158@ = 3

:DRUGS4_23714
if 
  159@ == 0
goto_if_false @DRUGS4_23778
if 
  not Char.IsDead(73@)
goto_if_false @DRUGS4_23778
set_lvar_int_to_lvar_int 118@ = 73@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
159@ = 1

:DRUGS4_23778
if 
  160@ == 0
goto_if_false @DRUGS4_23842
if 
  not Char.IsDead(74@)
goto_if_false @DRUGS4_23842
set_lvar_int_to_lvar_int 118@ = 74@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
160@ = 1

:DRUGS4_23842
if 
  166@ == 0
goto_if_false @DRUGS4_23946
if 
  not Char.IsDead(78@)
goto_if_false @DRUGS4_23946
if 
  Char.LocateAnyMeans3D($scplayer, 2193.41, -1176.12, 1029.42, 4.0, 4.0, 3.5, False)
goto_if_false @DRUGS4_23946
set_lvar_int_to_lvar_int 118@ = 78@
gosub @DRUGS4_67048
166@ = 1

:DRUGS4_23946
if 
  167@ == 0
goto_if_false @DRUGS4_24010
if 
  not Char.IsDead(79@)
goto_if_false @DRUGS4_24010
set_lvar_int_to_lvar_int 118@ = 79@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66914
167@ = 1

:DRUGS4_24010
if 
  165@ == 0
goto_if_false @DRUGS4_24172
if or
  Char.LocateAnyMeans3D($scplayer, 2193.4, -1173.53, 1029.69, 3.0, 3.0, 3.0, False)
  Char.IsDead(79@)
goto_if_false @DRUGS4_24172
Char.RemoveElegantly(36@)
Char.RemoveElegantly(37@)
Char.RemoveElegantly(38@)
Char.RemoveElegantly(67@)
Char.RemoveElegantly(47@)
Char.RemoveElegantly(48@)
if 
  Object.DoesExist(86@)
goto_if_false @DRUGS4_24165
Object.FreezePosition(86@, False)
Object.SetRotationVelocity(86@, 0.0, 0.8, 0.0)
Audio.AttachMissionAudioToObject(MissionAudioSlot.Slot3, 86@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:DRUGS4_24165
165@ = 1

:DRUGS4_24172
if 
  165@ == 1
goto_if_false @DRUGS4_24255
if 
  not Char.IsDead(77@)
goto_if_false @DRUGS4_24255
Task.PlayAnimNonInterruptable(77@, "SWT_VNT_SHT_IN", "SWAT", 1000.0, False, False, False, True, -1)
165@ = 2

:DRUGS4_24255
if 
  165@ == 2
goto_if_false @DRUGS4_24515
if 
  not Char.IsDead(77@)
goto_if_false @DRUGS4_24515
if 
  Char.IsPlayingAnim(77@, "SWT_VNT_SHT_IN")
goto_if_false @DRUGS4_24515
92@ = Char.GetAnimCurrentTime(77@, "SWT_VNT_SHT_IN")
if 
  92@ == 1.0
goto_if_false @DRUGS4_24515
Task.PlayAnimNonInterruptable(77@, "SWT_VNT_SHT_LOOP", "SWAT", 1000.0, False, False, False, True, -1)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
World.FireSingleBullet(2193.268, -1165.441, 1031.124, $player_x, $player_y, $player_z, 1)
Audio.ReportMissionAudioEventAtChar(77@, 1157)
Fx.AddBigGunFlash(2193.268, -1165.441, 1031.124, $player_x, $player_y, $player_z)
Char.SetNeverTargeted(77@, False)
Char.SetIsTargetPriority(77@, True)
TIMERB = 1000
165@ = 3

:DRUGS4_24515
if 
  165@ == 3
goto_if_false @DRUGS4_24786
if 
  TIMERB > 1000
goto_if_false @DRUGS4_24786
if 
  not Char.IsDead(77@)
goto_if_false @DRUGS4_24786
if 
  Char.IsPlayingAnim(77@, "SWT_VNT_SHT_LOOP")
goto_if_false @DRUGS4_24786
92@ = Char.GetAnimCurrentTime(77@, "SWT_VNT_SHT_LOOP")
if 
  92@ == 1.0
goto_if_false @DRUGS4_24786
Task.PlayAnimNonInterruptable(77@, "SWT_VNT_SHT_LOOP", "SWAT", 1000.0, False, False, False, True, -1)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
$player_z += 0.5
World.FireSingleBullet(2193.46, -1165.83, 1031.55, $player_x, $player_y, $player_z, 3)
Audio.ReportMissionAudioEventAtChar(77@, 1157)
Fx.AddBigGunFlash(2193.268, -1165.441, 1031.124, $player_x, $player_y, $player_z)
TIMERB = 0

:DRUGS4_24786
if 
  4 > 165@
goto_if_false @DRUGS4_24976
if 
  not Char.IsDead(77@)
goto_if_false @DRUGS4_24976
if or
  Char.LocateAnyMeans3D($scplayer, 2193.12, -1161.86, 1029.61, 2.8, 2.8, 3.0, False)
  Char.HasBeenDamagedByChar(77@, $scplayer)
goto_if_false @DRUGS4_24976
if 
  Char.DoesExist(77@)
goto_if_false @DRUGS4_24969
Char.SetCollision(77@, False)
Char.SetCoordinates(77@, 2193.129, -1164.661, 1032.269)
Task.PlayAnimNonInterruptable(77@, "SWT_VNT_SHT_DIE", "SWAT", 1000.0, False, False, False, True, -1)
Char.SetNeverTargeted(77@, True)

:DRUGS4_24969
165@ = 4

:DRUGS4_24976
if 
  165@ == 4
goto_if_false @DRUGS4_25096
if 
  not Char.IsDead(77@)
goto_if_false @DRUGS4_25096
if 
  Char.IsPlayingAnim(77@, "SWT_VNT_SHT_DIE")
goto_if_false @DRUGS4_25096
92@ = Char.GetAnimCurrentTime(77@, "SWT_VNT_SHT_DIE")
if 
  92@ == 1.0
goto_if_false @DRUGS4_25096
165@ = 5

:DRUGS4_25096
if 
  165@ == 5
goto_if_false @DRUGS4_25178
if 
  not Char.IsDead(77@)
goto_if_false @DRUGS4_25178
if or
  not Char.IsOnScreen(77@)
  Char.LocateAnyMeansChar2D(77@, $scplayer, 5.0, 5.0, False)
goto_if_false @DRUGS4_25178
Char.RemoveElegantly(77@)
165@ = 6

:DRUGS4_25178
if 
  168@ == 0
goto_if_false @DRUGS4_25282
if 
  not Char.IsDead(80@)
goto_if_false @DRUGS4_25282
if 
  Char.LocateAnyMeans3D($scplayer, 2193.19, -1160.67, 1029.54, 4.0, 4.0, 3.5, False)
goto_if_false @DRUGS4_25282
set_lvar_int_to_lvar_int 118@ = 80@
gosub @DRUGS4_67131
168@ = 1

:DRUGS4_25282
if 
  169@ == 0
goto_if_false @DRUGS4_25362
if 
  not Char.IsDead(81@)
goto_if_false @DRUGS4_25362
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_25362
set_lvar_int_to_lvar_int 118@ = 81@
set_lvar_int_to_var_int 119@ = $sweet
gosub @DRUGS4_66914
169@ = 1

:DRUGS4_25362
if 
  170@ == 0
goto_if_false @DRUGS4_25442
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_25442
if 
  not Char.IsDead(81@)
goto_if_false @DRUGS4_25442
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 81@
gosub @DRUGS4_66965
170@ = 1

:DRUGS4_25442
if 
  163@ == 3
goto_if_false @DRUGS4_25488
if 
  Char.IsDead(75@)
goto_if_false @DRUGS4_25488
Char.MarkAsNoLongerNeeded(75@)
163@ = 4

:DRUGS4_25488
if 
  164@ == 3
goto_if_false @DRUGS4_25534
if 
  Char.IsDead(76@)
goto_if_false @DRUGS4_25534
Char.MarkAsNoLongerNeeded(76@)
163@ = 4

:DRUGS4_25534
if 
  162@ == 1
goto_if_false @DRUGS4_25580
if 
  Char.IsDead(38@)
goto_if_false @DRUGS4_25580
Char.MarkAsNoLongerNeeded(38@)
162@ = 2

:DRUGS4_25580
if 
  156@ == 1
goto_if_false @DRUGS4_25626
if 
  Char.IsDead(70@)
goto_if_false @DRUGS4_25626
Char.MarkAsNoLongerNeeded(70@)
156@ = 2

:DRUGS4_25626
if 
  157@ == 2
goto_if_false @DRUGS4_25672
if 
  Char.IsDead(71@)
goto_if_false @DRUGS4_25672
Char.MarkAsNoLongerNeeded(71@)
157@ = 3

:DRUGS4_25672
if 
  158@ == 2
goto_if_false @DRUGS4_25718
if 
  Char.IsDead(72@)
goto_if_false @DRUGS4_25718
Char.MarkAsNoLongerNeeded(72@)
158@ = 4

:DRUGS4_25718
if 
  159@ == 1
goto_if_false @DRUGS4_25764
if 
  Char.IsDead(73@)
goto_if_false @DRUGS4_25764
Char.MarkAsNoLongerNeeded(73@)
159@ = 2

:DRUGS4_25764
if 
  160@ == 1
goto_if_false @DRUGS4_25810
if 
  Char.IsDead(74@)
goto_if_false @DRUGS4_25810
Char.MarkAsNoLongerNeeded(74@)
160@ = 2

:DRUGS4_25810
if 
  166@ == 1
goto_if_false @DRUGS4_25856
if 
  Char.IsDead(78@)
goto_if_false @DRUGS4_25856
Char.MarkAsNoLongerNeeded(78@)
166@ = 2

:DRUGS4_25856
if 
  167@ == 1
goto_if_false @DRUGS4_25902
if 
  Char.IsDead(79@)
goto_if_false @DRUGS4_25902
Char.MarkAsNoLongerNeeded(79@)
167@ = 2

:DRUGS4_25902
if 
  165@ == 4
goto_if_false @DRUGS4_25948
if 
  Char.IsDead(77@)
goto_if_false @DRUGS4_25948
Char.MarkAsNoLongerNeeded(77@)
165@ = 5

:DRUGS4_25948
if 
  168@ == 1
goto_if_false @DRUGS4_25994
if 
  Char.IsDead(80@)
goto_if_false @DRUGS4_25994
Char.MarkAsNoLongerNeeded(80@)
168@ = 2

:DRUGS4_25994
if 
  169@ == 1
goto_if_false @DRUGS4_26040
if 
  Char.IsDead(81@)
goto_if_false @DRUGS4_26040
Char.MarkAsNoLongerNeeded(81@)
169@ = 2

:DRUGS4_26040
if 
  174@ > 5
goto_if_false @DRUGS4_26097
if 
  not Char.IsDead(82@)
goto_if_false @DRUGS4_26097
Char.MarkAsNoLongerNeeded(82@)
Streaming.RemoveAnimation("KISSING")
174@ = 6

:DRUGS4_26097
if 
  171@ == 0
goto_if_false @DRUGS4_26566
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_26566
if 
  Char.LocateAnyMeansChar3D($sweet, $scplayer, 3.5, 3.5, 3.5, False)
goto_if_false @DRUGS4_26566
if 
  Char.IsDead(80@)
goto_if_false @DRUGS4_26550
if 
  Char.IsDead(81@)
goto_if_false @DRUGS4_26527
63@ = Char.GetCurrentWeapon($scplayer)
Camera.DoFade(250, Fade.Out)
Player.SetControl($player1, False)
Char.SetOnlyDamagedByPlayer($sweet, False)
Streaming.RemoveAnimation("KISSING")
Streaming.MarkModelAsNoLongerNeeded(107)
Streaming.MarkModelAsNoLongerNeeded(106)
Streaming.MarkModelAsNoLongerNeeded(#LXR_MOTEL_DOORSIM)
Streaming.MarkModelAsNoLongerNeeded(#LXR_MOTELVENT)
Streaming.MarkModelAsNoLongerNeeded(#IMY_SKYLIGHT)
Streaming.MarkModelAsNoLongerNeeded(#KMB_TROLLEY)
Streaming.MarkModelAsNoLongerNeeded(63)
Streaming.MarkModelAsNoLongerNeeded(346)
Char.RemoveElegantly(34@)
Char.RemoveElegantly(35@)
Char.RemoveElegantly(36@)
Char.RemoveElegantly(37@)
Char.RemoveElegantly(38@)
Char.RemoveElegantly(47@)
Char.RemoveElegantly(48@)
Char.RemoveElegantly(51@)
Char.RemoveElegantly(52@)
Char.RemoveElegantly(53@)
Char.RemoveElegantly(54@)
Char.RemoveElegantly(66@)
Char.RemoveElegantly(67@)
Char.RemoveElegantly(68@)
Char.RemoveElegantly(69@)
Char.RemoveElegantly(70@)
Char.RemoveElegantly(71@)
Char.RemoveElegantly(72@)
Char.RemoveElegantly(73@)
Char.RemoveElegantly(74@)
Char.RemoveElegantly(75@)
Char.RemoveElegantly(76@)
Char.RemoveElegantly(77@)
Char.RemoveElegantly(78@)
Char.RemoveElegantly(79@)
Char.RemoveElegantly(80@)
Char.RemoveElegantly(81@)
Char.RemoveElegantly(82@)
Char.RemoveElegantly(83@)
Object.Delete(84@)
Object.Delete(85@)
Object.Delete(86@)
Particle.Kill(65@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8270)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8215)
Streaming.RequestAnimation("GANGS")
Streaming.LoadAllModelsNow

:DRUGS4_26474
if or
  not Streaming.HasAnimationLoaded("GANGS")
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_26513
wait 0
goto @DRUGS4_26474

:DRUGS4_26513
171@ = 2
goto @DRUGS4_26543

:DRUGS4_26527
Text.PrintNow('LAF1_21', 1000, 1)

:DRUGS4_26543
goto @DRUGS4_26566

:DRUGS4_26550
Text.PrintNow('LAF1_21', 1000, 1)

:DRUGS4_26566
if 
  171@ == 2
goto_if_false @DRUGS4_27173
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_27173
Hud.SwitchWidescreen(True)
World.ClearArea(2223.971, -1149.75, 200.0, 200.0, False)
Camera.SetNearClip(0.1)
Camera.DoFade(500, Fade.In)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($sweet)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.SetCurrentWeapon($sweet, WeaponType.Unarmed)
Char.RemoveWeapon($sweet, WeaponType.Pistol)
Camera.SetFixedPosition(2197.487, -1157.675, 1030.356, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2198.383, -1157.24, 1030.261, SwitchType.JumpCut)
Char.SetCoordinates($sweet, 2202.188, -1156.93, 1028.844)
Char.SetHeading($sweet, 85.6456)
Task.PlayAnim($sweet, "PRTIAL_GNGTLKH", "GANGS", 8.0, False, False, False, False, -1)
Char.SetCoordinates($scplayer, 2197.2, -1156.929, 1028.844)
Char.SetHeading($scplayer, 269.764)
Task.GoStraightToCoord($scplayer, 2201.188, -1156.93, 1028.844, MoveState.Walk, -1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('FIN1_JH', 5000, 1)
Char.StartFacialTalk($sweet, 10000)

:DRUGS4_26879
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_26905
wait 0
goto @DRUGS4_26879

:DRUGS4_26905
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_26932
Char.StopFacialTalk($sweet)

:DRUGS4_26932
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8272)
Camera.SetFixedPosition(2201.234, -1157.545, 1030.373, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2201.804, -1156.723, 1030.406, SwitchType.JumpCut)
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_27131
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($sweet)
Char.SetCoordinates($scplayer, 2201.188, -1156.93, 1028.844)
Char.SetHeading($scplayer, 270.0)
Task.PlayAnim($sweet, "HNDSHKFA_SWT", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim($scplayer, "HNDSHKFA", "GANGS", 4.0, False, False, False, False, -1)
TIMERA = 0

:DRUGS4_27131
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('FIN1_JI', 2000, 1)
Char.StartFacialTalk($scplayer, 2000)
skip_cutscene_start_internal @DRUGS4_27694
171@ = 3

:DRUGS4_27173
if 
  171@ > 2
goto_if_false @DRUGS4_27315
if 
  6 > 171@
goto_if_false @DRUGS4_27315
if 
  182@ == 0
goto_if_false @DRUGS4_27315
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_27315
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_27315
Text.ClearPrints
Char.StopFacialTalk($scplayer)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_27292
Char.StartFacialTalk($sweet, 10000)

:DRUGS4_27292
Text.PrintNow('FIN1_JK', 2000, 1)
182@ = 1

:DRUGS4_27315
if 
  182@ == 1
goto_if_false @DRUGS4_27376
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_27376
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_27376
Char.StopFacialTalk($sweet)
182@ = 2

:DRUGS4_27376
if 
  171@ == 3
goto_if_false @DRUGS4_27617
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_27617
94@ = Char.GetScriptTaskStatus($sweet, 1541)
if 
  is_int_lvar_equal_to_constant 94@ == 7
goto_if_false @DRUGS4_27617
95@ = Char.GetScriptTaskStatus($scplayer, 1541)
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @DRUGS4_27617
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_27617
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_27617
TIMERA = 0
Camera.SetFixedPosition(2202.409, -1157.19, 1030.515, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2201.414, -1157.129, 1030.438, SwitchType.JumpCut)
Path.FlushRoute
Path.ExtendRoute(2193.09, -1157.16, 1029.84)
Path.ExtendRoute(2193.379, -1145.899, 1029.84)
Task.FollowPointRoute($scplayer, 4, RouteMode.Once)
Task.FollowPointRoute($sweet, 4, RouteMode.Once)
171@ = 4

:DRUGS4_27617
if 
  171@ == 4
goto_if_false @DRUGS4_27642
171@ = 5

:DRUGS4_27642
if 
  171@ == 5
goto_if_false @DRUGS4_28754
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_28754
if 
  TIMERA > 1500
goto_if_false @DRUGS4_28754

:DRUGS4_27694
skip_cutscene_end 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_27725
Char.StopFacialTalk($sweet)

:DRUGS4_27725
Camera.DoFade(250, Fade.Out)

:DRUGS4_27732
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS4_27756
wait 0
goto @DRUGS4_27732

:DRUGS4_27756
Char.SetCurrentWeapon($scplayer, 63@)
World.ClearArea(2192.194, -1153.241, 100.0, 100.0, True)
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_28054
Char.StopFacialTalk($sweet)
Char.StopFacialTalk($scplayer)
World.SwitchEntryExit('MOTEL1', True)
Char.SetHasUsedEntryExit($sweet, 2214.41, -1150.48, 3.0)
Char.SetProofs($sweet, True, True, True, True, True)
Char.ClearTasksImmediately($sweet)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($sweet, 2192.194, -1153.241, 32.56)
Char.SetHeading($sweet, 180.359)
Char.SetCoordinates($scplayer, 2193.99, -1153.14, 33.56)
Char.SetHeading($scplayer, 180.359)
Char.SetAreaVisible($scplayer, 0)
Char.SetAreaVisible($sweet, 0)
Char.SetHasUsedEntryExit($scplayer, 2214.38, -1150.45, 1.0)
Char.SetHasUsedEntryExit($sweet, 2214.38, -1150.45, 1.0)
Streaming.SetAreaVisible(0)
Camera.SetFixedPosition(2201.644, -1164.351, 38.3367, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2201.008, -1163.641, 38.0327, SwitchType.JumpCut)
World.SwitchEntryExit('MOTEL1', False)

:DRUGS4_28054
Streaming.RemoveAnimation("GANGS")
Streaming.RequestModel(497)
Streaming.RequestCarRecording(349)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8326)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8273)
Streaming.LoadAllModelsNow

:DRUGS4_28089
if or
  not Streaming.HasModelLoaded(497)
  not Streaming.HasCarRecordingBeenLoaded(349)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_28129
wait 0
goto @DRUGS4_28089

:DRUGS4_28129
Task.GoStraightToCoord($scplayer, 2193.86, -1157.682, 33.563, MoveState.Walk, -1)
wait 500
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_28198
Task.GoStraightToCoord($sweet, 2192.25, -1158.078, 33.56, MoveState.Walk, -1)

:DRUGS4_28198
40@ = Car.Create(497, 2249.51, -1111.52, 56.1)
Car.SetPetrolTankWeakpoint(40@, False)
Car.SetOnlyDamagedByPlayer(40@, True)
Car.SetHealth(40@, 2000)
44@ = Char.CreateInsideCar(40@, PedType.Mission2, 285)
Char.SetCanBeShotInVehicle(44@, False)
Car.LockDoors(40@, CarLock.Locked)
Char.SetCantBeDraggedOut(44@, True)
Car.SetForwardSpeed(40@, 30.0)
Char.SetDecisionMaker(44@, 55@)
Heli.SetBladesFullSpeed(40@)
51@ = Char.Create(PedType.Mission4, 285, 2161.84, -1154.26, 25.09)
Char.SetRelationship(51@, RelationshipType.Hate, PedType.Special)
Char.SetRelationship(51@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(51@, 57@)
52@ = Char.Create(PedType.Mission4, 285, 2159.84, -1154.26, 25.09)
Char.SetRelationship(52@, RelationshipType.Hate, PedType.Special)
Char.SetDecisionMaker(52@, 57@)
53@ = Char.Create(PedType.Mission4, 285, 2159.84, -1154.26, -5.09)
Char.SetRelationship(53@, RelationshipType.Hate, PedType.Special)
Char.SetRelationship(53@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(53@, 57@)
54@ = Char.Create(PedType.Mission4, 285, 2159.84, -1154.26, -8.09)
Char.SetRelationship(54@, RelationshipType.Hate, PedType.Special)
Char.SetDecisionMaker(54@, 57@)
132@ = 0
133@ = 0
135@ = 0
136@ = 0
Char.AttachToCar(51@, 40@, 1.4, 1.3, -0.1, 3, 190.0, WeaponType.Mp5)
Char.SetHealth(51@, 150)
Char.SetShootRate(51@, 70)
Char.AttachToCar(52@, 40@, 1.4, -0.8, -0.1, 3, 190.0, WeaponType.Mp5)
Char.SetHealth(52@, 150)
Char.SetShootRate(52@, 70)
Char.AttachToCar(53@, 40@, -1.4, 1.3, -0.1, 1, 190.0, WeaponType.Mp5)
Char.SetHealth(53@, 150)
Char.SetShootRate(53@, 70)
Char.AttachToCar(54@, 40@, -1.4, -0.8, -0.1, 1, 190.0, WeaponType.Mp5)
Char.SetHealth(54@, 150)
Streaming.SetAreaVisible(0)
Streaming.LoadScene(2193.86, -1157.682, 33.563)
Clock.SetTimeOfDay(2, 30)
World.ClearExtraColors(False)
Camera.DoFade(500, Fade.In)
TIMERB = 0
171@ = 6
172@ = 1

:DRUGS4_28754
if 
  Char.IsDead($sweet)
goto_if_false @DRUGS4_28793
Text.PrintNow('LAF1_70', 5000, 1)
goto @DRUGS4_67703

:DRUGS4_28793
if 
  171@ == 0
goto_if_false @DRUGS4_29396
gosub @DRUGS4_66552
if 
  178@ == 0
goto_if_false @DRUGS4_28901
if 
  179@ == 0
goto_if_false @DRUGS4_28901
if 
  149@ == 1
goto_if_false @DRUGS4_28901
set_lvar_int_to_constant 106@ = 8212
set_lvar_text_label 107@s = 'FIN1_JC'
gosub @DRUGS4_66510

:DRUGS4_28901
if 
  178@ == 1
goto_if_false @DRUGS4_28991
if 
  179@ == 0
goto_if_false @DRUGS4_28991
if 
  149@ == 1
goto_if_false @DRUGS4_28991
151@ = 1
set_lvar_int_to_constant 106@ = 8203
set_lvar_text_label 107@s = 'FIN1_JD'
gosub @DRUGS4_66510

:DRUGS4_28991
if 
  173@ > 0
goto_if_false @DRUGS4_29074
if 
  178@ == 2
goto_if_false @DRUGS4_29074
if 
  179@ == 0
goto_if_false @DRUGS4_29074
set_lvar_int_to_constant 106@ = 8214
set_lvar_text_label 107@s = 'FIN1_JF'
gosub @DRUGS4_66510

:DRUGS4_29074
if 
  157@ > 0
goto_if_false @DRUGS4_29157
if 
  178@ == 3
goto_if_false @DRUGS4_29157
if 
  179@ == 0
goto_if_false @DRUGS4_29157
set_lvar_int_to_constant 106@ = 8333
set_lvar_text_label 107@s = 'FIN1_BD'
gosub @DRUGS4_66510

:DRUGS4_29157
if 
  165@ > 0
goto_if_false @DRUGS4_29240
if 
  178@ == 4
goto_if_false @DRUGS4_29240
if 
  179@ == 0
goto_if_false @DRUGS4_29240
set_lvar_int_to_constant 106@ = 8343
set_lvar_text_label 107@s = 'FIN1_CK'
gosub @DRUGS4_66510

:DRUGS4_29240
if 
  178@ == 5
goto_if_false @DRUGS4_29305
if 
  179@ == 0
goto_if_false @DRUGS4_29305
set_lvar_int_to_constant 106@ = 8334
set_lvar_text_label 107@s = 'FIN1_BE'
gosub @DRUGS4_66510

:DRUGS4_29305
if 
  181@ == 1
goto_if_false @DRUGS4_29356
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_29356
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8329)
181@ = 2

:DRUGS4_29356
if 
  181@ == 2
goto_if_false @DRUGS4_29396
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_29396
181@ = 3

:DRUGS4_29396
if 
  172@ == 1
goto_if_false @DRUGS4_32113
if 
  171@ == 6
goto_if_false @DRUGS4_29671
if 
  TIMERB > 2000
goto_if_false @DRUGS4_29671
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_29475
Car.StartPlayback(40@, 349)

:DRUGS4_29475
Camera.SetFixedPosition(2195.099, -1157.921, 34.0291, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2194.103, -1157.979, 33.9628, SwitchType.JumpCut)
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_29671
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS4_29671
wait 200
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS4_29590
Task.LookAtChar($scplayer, 44@, 3000)

:DRUGS4_29590
wait 100
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS4_29637
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_29637
Task.LookAtChar($sweet, 44@, 3000)

:DRUGS4_29637
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('FIN1_AA', 3000, 1)
TIMERB = 0
171@ = 7

:DRUGS4_29671
if 
  171@ == 7
goto_if_false @DRUGS4_30157
if 
  TIMERB > 2500
goto_if_false @DRUGS4_30157
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_30157
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_30157
175@ = 0
skip_cutscene_start_internal @DRUGS4_30858
Camera.SetFixedPosition(2176.641, -1179.425, 38.9175, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2177.136, -1178.588, 38.6847, SwitchType.JumpCut)
if 
  not Char.IsDead(51@)
goto_if_false @DRUGS4_29869
if 
  132@ == 0
goto_if_false @DRUGS4_29869
set_lvar_int_to_lvar_int 118@ = 51@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66914
132@ = 1

:DRUGS4_29869
if 
  not Char.IsDead(52@)
goto_if_false @DRUGS4_29949
if 
  133@ == 0
goto_if_false @DRUGS4_29949
set_lvar_int_to_lvar_int 118@ = 52@
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_29935
set_lvar_int_to_var_int 119@ = $sweet

:DRUGS4_29935
gosub @DRUGS4_66965
133@ = 1

:DRUGS4_29949
if 
  not Char.IsDead(53@)
goto_if_false @DRUGS4_30029
if 
  135@ == 0
goto_if_false @DRUGS4_30029
set_lvar_int_to_lvar_int 118@ = 53@
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_30015
set_lvar_int_to_var_int 119@ = $sweet

:DRUGS4_30015
gosub @DRUGS4_66965
135@ = 1

:DRUGS4_30029
if 
  not Char.IsDead(54@)
goto_if_false @DRUGS4_30093
if 
  136@ == 0
goto_if_false @DRUGS4_30093
set_lvar_int_to_lvar_int 118@ = 54@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
136@ = 1

:DRUGS4_30093
Task.GoStraightToCoord($sweet, 2192.683, -1168.586, 33.56, MoveState.Run, 5000)
Task.GoStraightToCoord($scplayer, 2198.424, -1158.32, 33.56, MoveState.Run, 5000)
TIMERB = 0
171@ = 8

:DRUGS4_30157
if 
  171@ == 8
goto_if_false @DRUGS4_30456
if 
  TIMERB > 1500
goto_if_false @DRUGS4_30456
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_30456
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_30456
if 
  Car.IsPlaybackGoingOn(40@)
goto_if_false @DRUGS4_30247
Car.StopPlayback(40@)

:DRUGS4_30247
Camera.SetFixedPosition(2196.338, -1157.223, 32.9594, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2195.762, -1158.032, 33.0705, SwitchType.JumpCut)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 2195.914, -1159.764, 32.563)
Char.SetHeading($scplayer, 181.0915)
Task.PlayAnim($scplayer, "SWT_WLLPK_L", "SWAT", 8.0, False, False, False, True, -1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('FIN1_JL', 3000, 1)
Car.SetCoordinates(40@, 2185.43, -1172.69, 37.05)
Heli.GotoCoords(40@, 2194.97, -1182.27, 37.0, 7.0, 7.0)
TIMERB = 0
171@ = 9

:DRUGS4_30456
if 
  171@ == 9
goto_if_false @DRUGS4_30652
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_30652
if 
  Char.IsPlayingAnim($scplayer, "SWT_WLLPK_L")
goto_if_false @DRUGS4_30652
96@ = Char.GetAnimCurrentTime($scplayer, "SWT_WLLPK_L")
if 
  96@ == 1.0
goto_if_false @DRUGS4_30652
Task.PlayAnim($scplayer, "SWT_WLLSHOOT_IN_L", "SWAT", 8.0, False, True, True, False, -1)
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS4_30645
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66965

:DRUGS4_30645
171@ = 10

:DRUGS4_30652
if 
  171@ == 10
goto_if_false @DRUGS4_32056
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_32056
if 
  Char.IsPlayingAnim($scplayer, "SWT_WLLSHOOT_IN_L")
goto_if_false @DRUGS4_32056
96@ = Char.GetAnimCurrentTime($scplayer, "SWT_WLLSHOOT_IN_L")
if 
  96@ == 1.0
goto_if_false @DRUGS4_32056
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_30846
58@ = Searchlight.CreateOnVehicle(40@, 0.0, 1.0, -0.5, 2193.73, -1166.85, 34.06, 4.0, 0.4)
Searchlight.PointAtChar(58@, $sweet, 0.2)

:DRUGS4_30846
Char.ClearTasksImmediately($scplayer)
175@ = 1

:DRUGS4_30858
skip_cutscene_end 
if 
  175@ == 0
goto_if_false @DRUGS4_31751
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:DRUGS4_30887
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS4_30911
wait 0
goto @DRUGS4_30887

:DRUGS4_30911
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_30956
if 
  Car.IsPlaybackGoingOn(40@)
goto_if_false @DRUGS4_30956
Car.StopPlayback(40@)

:DRUGS4_30956
Car.Delete(40@)
Char.Delete(51@)
Char.Delete(52@)
Char.Delete(53@)
Char.Delete(54@)
Streaming.RequestModel(497)
Streaming.RequestModel(285)
Streaming.RequestModel(353)
Streaming.LoadAllModelsNow

:DRUGS4_30998
if or
  not Streaming.HasModelLoaded(497)
  not Streaming.HasModelLoaded(285)
  not Streaming.HasModelLoaded(353)
goto_if_false @DRUGS4_31035
wait 0
goto @DRUGS4_30998

:DRUGS4_31035
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_31068
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($sweet)
Char.SetOnlyDamagedByPlayer($sweet, False)

:DRUGS4_31068
40@ = Car.Create(497, 2249.51, -1111.52, 56.1)
Car.SetPetrolTankWeakpoint(40@, False)
Car.SetOnlyDamagedByPlayer(40@, True)
Car.SetForwardSpeed(40@, 30.0)
Car.SetHealth(40@, 2000)
58@ = Searchlight.CreateOnVehicle(40@, 0.0, 1.0, -0.5, 2193.73, -1166.85, 34.06, 3.0, 0.4)
Searchlight.PointAtChar(58@, $sweet, 0.2)
44@ = Char.CreateInsideCar(40@, PedType.Mission2, 285)
Char.SetCanBeShotInVehicle(44@, False)
Car.LockDoors(40@, CarLock.Locked)
Char.SetCantBeDraggedOut(44@, True)
Char.SetCanBeShotInVehicle(44@, False)
Char.SetDecisionMaker(44@, 55@)
Heli.SetBladesFullSpeed(40@)
Car.SetCoordinates(40@, 2188.28, -1176.54, 39.54)
Car.SetHeading(40@, 210.0)
51@ = Char.Create(PedType.Mission4, 285, 2161.84, -1154.26, 25.09)
Char.SetRelationship(51@, RelationshipType.Hate, PedType.Special)
Char.SetRelationship(51@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(51@, 57@)
52@ = Char.Create(PedType.Mission4, 285, 2159.84, -1154.26, 25.09)
Char.SetRelationship(52@, RelationshipType.Hate, PedType.Special)
Char.SetDecisionMaker(52@, 57@)
53@ = Char.Create(PedType.Mission4, 285, 2159.84, -1154.26, -5.09)
Char.SetRelationship(53@, RelationshipType.Hate, PedType.Special)
Char.SetRelationship(53@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(53@, 57@)
54@ = Char.Create(PedType.Mission4, 285, 2159.84, -1154.26, -8.09)
Char.SetRelationship(54@, RelationshipType.Hate, PedType.Special)
Char.SetDecisionMaker(54@, 57@)
132@ = 0
133@ = 0
135@ = 0
136@ = 0
Char.AttachToCar(51@, 40@, 1.4, 1.3, -0.1, 3, 190.0, WeaponType.Mp5)
Char.SetHealth(51@, 150)
Char.SetShootRate(51@, 70)
Char.AttachToCar(52@, 40@, 1.4, -0.8, -0.1, 3, 190.0, WeaponType.Mp5)
Char.SetHealth(52@, 150)
Char.SetShootRate(52@, 70)
Char.AttachToCar(53@, 40@, -1.4, 1.3, -0.1, 1, 190.0, WeaponType.Mp5)
Char.SetHealth(53@, 150)
Char.SetShootRate(53@, 70)
Char.AttachToCar(54@, 40@, -1.4, -0.8, -0.1, 1, 190.0, WeaponType.Mp5)
Char.SetHealth(54@, 150)
Streaming.LoadScene(2193.86, -1157.682, 33.563)
Char.SetCoordinates($scplayer, 2194.53, -1159.24, 32.563)
Char.SetHeading($scplayer, 173.208)
Char.SetCoordinates($sweet, 2192.638, -1169.202, 32.563)
Char.SetHeading($sweet, 180.668)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Camera.DoFade(750, Fade.In)

:DRUGS4_31751
132@ = 0
133@ = 0
135@ = 0
136@ = 0
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_31861
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS4_31861
Char.SetProofs($sweet, False, True, True, True, False)
Char.GiveWeapon($sweet, WeaponType.Mp5, 99999)
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66965

:DRUGS4_31861
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_31892
Heli.SetReachedTargetDistance(40@, 3)
185@ = Blip.AddForCar(40@)

:DRUGS4_31892
Char.SetHealth($scplayer, 100)
DecisionMaker.Remove(56@)
TIMERA = 0
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_31960
Char.SetOnlyDamagedByPlayer($sweet, False)
Char.SetHealth($sweet, 500)
$cs1_random_dialogue = 100

:DRUGS4_31960
Streaming.RemoveAnimation("SWAT")
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.DisplayCounterWithString($cs1_random_dialogue, CounterDisplay.Bar, 'LAF1_20')
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8274)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8344)
178@ = 0
179@ = 0
Text.PrintNow('LAF1_5', 5000, 1)
172@ = 2
171@ = 11

:DRUGS4_32056
if 
  11 > 171@
goto_if_false @DRUGS4_32113
if 
  Char.IsDead($sweet)
goto_if_false @DRUGS4_32113
Text.PrintNow('LAF1_70', 5000, 1)
goto @DRUGS4_67703

:DRUGS4_32113
if 
  172@ == 2
goto_if_false @DRUGS4_33684
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_32169
$cs1_random_dialogue = Char.GetHealth($sweet)
$cs1_random_dialogue /= 5
goto @DRUGS4_32192

:DRUGS4_32169
Text.PrintNow('LAF1_70', 5000, 1)
goto @DRUGS4_67703

:DRUGS4_32192
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_33684
if 
  171@ == 11
goto_if_false @DRUGS4_32276
if 
  TIMERA > 4000
goto_if_false @DRUGS4_32276
Task.GoStraightToCoord($sweet, 2193.199, -1179.67, 33.56, MoveState.Run, -1)
171@ = 12

:DRUGS4_32276
if 
  171@ == 12
goto_if_false @DRUGS4_32470
if 
  Char.LocateAnyMeans3D($sweet, 2193.199, -1179.67, 33.56, 1.5, 1.5, 2.5, False)
goto_if_false @DRUGS4_32470
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS4_32381
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66965

:DRUGS4_32381
TIMERA = 0
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_32463
Heli.GotoCoords(40@, 2193.199, -1179.67, 40.5, 10.0, 10.0)
if 
  Searchlight.DoesExist(58@)
goto_if_false @DRUGS4_32463
Searchlight.PointAtChar(58@, $scplayer, 0.2)

:DRUGS4_32463
171@ = 13

:DRUGS4_32470
if 
  171@ == 13
goto_if_false @DRUGS4_32590
if 
  TIMERA > 10000
goto_if_false @DRUGS4_32590
Task.GoStraightToCoord($sweet, 2200.652, -1188.776, 32.563, MoveState.Run, -1)
if 
  Searchlight.DoesExist(58@)
goto_if_false @DRUGS4_32560
Searchlight.PointAtChar(58@, $sweet, 0.2)

:DRUGS4_32560
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_32583
Car.SetOnlyDamagedByPlayer(40@, False)

:DRUGS4_32583
171@ = 14

:DRUGS4_32590
if 
  171@ == 14
goto_if_false @DRUGS4_32755
if 
  Char.LocateAnyMeans3D($sweet, 2200.652, -1188.776, 32.563, 1.5, 1.5, 3.5, False)
goto_if_false @DRUGS4_32755
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS4_32695
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66965

:DRUGS4_32695
TIMERA = 0
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_32748
Heli.GotoCoords(40@, 2212.41, -1168.54, 42.0, 20.0, 20.0)

:DRUGS4_32748
171@ = 15

:DRUGS4_32755
if 
  171@ == 15
goto_if_false @DRUGS4_32852
if 
  TIMERA > 12000
goto_if_false @DRUGS4_32852
Task.GoStraightToCoord($sweet, 2209.474, -1185.644, 33.56, MoveState.Run, -1)
if 
  Searchlight.DoesExist(58@)
goto_if_false @DRUGS4_32845
Searchlight.PointAtChar(58@, $scplayer, 0.2)

:DRUGS4_32845
171@ = 16

:DRUGS4_32852
if 
  171@ == 16
goto_if_false @DRUGS4_33017
if 
  Char.LocateAnyMeans3D($sweet, 2209.474, -1185.644, 33.56, 1.5, 1.5, 3.5, False)
goto_if_false @DRUGS4_33017
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS4_32957
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66965

:DRUGS4_32957
TIMERA = 0
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_33010
Heli.GotoCoords(40@, 2223.66, -1169.4, 42.83, 20.0, 20.0)

:DRUGS4_33010
171@ = 17

:DRUGS4_33017
if 
  171@ == 17
goto_if_false @DRUGS4_33114
if 
  TIMERA > 5000
goto_if_false @DRUGS4_33114
Task.GoStraightToCoord($sweet, 2219.186, -1188.8, 33.563, MoveState.Run, -1)
if 
  Searchlight.DoesExist(58@)
goto_if_false @DRUGS4_33107
Searchlight.PointAtChar(58@, $sweet, 0.2)

:DRUGS4_33107
171@ = 18

:DRUGS4_33114
if 
  171@ == 18
goto_if_false @DRUGS4_33279
if 
  Char.LocateAnyMeans3D($sweet, 2219.186, -1188.8, 33.563, 1.5, 1.5, 3.5, False)
goto_if_false @DRUGS4_33279
if 
  not Char.IsDead(44@)
goto_if_false @DRUGS4_33219
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66965

:DRUGS4_33219
TIMERA = 0
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_33272
Heli.GotoCoords(40@, 2242.91, -1178.87, 42.0, 10.0, 10.0)

:DRUGS4_33272
171@ = 19

:DRUGS4_33279
if 
  132@ == 0
goto_if_false @DRUGS4_33325
if 
  Char.IsDead(51@)
goto_if_false @DRUGS4_33325
Char.DetachFromCar(51@)
132@ = 1

:DRUGS4_33325
if 
  133@ == 0
goto_if_false @DRUGS4_33371
if 
  Char.IsDead(52@)
goto_if_false @DRUGS4_33371
Char.DetachFromCar(52@)
133@ = 1

:DRUGS4_33371
if 
  135@ == 0
goto_if_false @DRUGS4_33417
if 
  Char.IsDead(53@)
goto_if_false @DRUGS4_33417
Char.DetachFromCar(53@)
135@ = 1

:DRUGS4_33417
if 
  136@ == 0
goto_if_false @DRUGS4_33463
if 
  Char.IsDead(54@)
goto_if_false @DRUGS4_33463
Char.DetachFromCar(54@)
136@ = 1

:DRUGS4_33463
if 
  171@ > 10
goto_if_false @DRUGS4_33684
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_33649
41@ = Car.GetHealth(40@)
if 
  1250 > 41@
goto_if_false @DRUGS4_33642
Char.SetProofs($scplayer, False, False, True, False, False)
Blip.Remove(185@)
Heli.GotoCoords(40@, 2220.44, -1128.29, 43.31, 30.0, 30.0)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_33593
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)

:DRUGS4_33593
Searchlight.Delete(58@)
TIMERA = 0
176@ = 1
Text.PrintNow('LAF1_69', 5000, 1)
172@ = 3
171@ = 20

:DRUGS4_33642
goto @DRUGS4_33684

:DRUGS4_33649
Text.PrintNow('LAF1_69', 1000, 1)
Searchlight.Delete(58@)
172@ = 3
171@ = 20

:DRUGS4_33684
if 
  172@ == 3
goto_if_false @DRUGS4_34634
if 
  23 > 171@
goto_if_false @DRUGS4_34634
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_33758
$cs1_random_dialogue = Char.GetHealth($sweet)
$cs1_random_dialogue /= 5
goto @DRUGS4_33781

:DRUGS4_33758
Text.PrintNow('LAF1_70', 5000, 1)
goto @DRUGS4_67703

:DRUGS4_33781
if 
  171@ == 20
goto_if_false @DRUGS4_33898
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_33898
Task.FollowPathNodesToCoord($sweet, 2235.36, -1188.68, 33.82, 6, 35000)
TIMERB = 0
178@ = 0
179@ = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
World.ClearArea(2197.78, -1194.0, 30.0, 30.0, True)
171@ = 21

:DRUGS4_33898
if 
  171@ == 21
goto_if_false @DRUGS4_34123
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_34123
if 
  Char.LocateAnyMeansChar3D($sweet, $scplayer, 4.0, 4.0, 3.5, False)
goto_if_false @DRUGS4_34064
if 
  Char.IsOnScreen($sweet)
goto_if_false @DRUGS4_34057
Char.SetProofs($scplayer, False, False, False, False, False)
Task.FollowPathNodesToCoord($sweet, 2197.78, -1194.0, 26.17, 6, 35000)
World.ClearArea(2197.78, -1194.0, 100.0, 100.0, False)
171@ = 22

:DRUGS4_34057
goto @DRUGS4_34123

:DRUGS4_34064
if 
  TIMERB > 3500
goto_if_false @DRUGS4_34123
Text.PrintNow('LAF1_69', 1000, 1)
World.ClearArea(2197.78, -1194.0, 100.0, 100.0, False)

:DRUGS4_34123
if 
  176@ == 1
goto_if_false @DRUGS4_34229
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_34229
if 
  Car.Locate3D(40@, 2220.44, -1128.29, 43.31, 15.0, 15.0, 15.0, False)
goto_if_false @DRUGS4_34229
Car.Explode(40@)
Car.Explode(40@)
TIMERA = 0
176@ = 2

:DRUGS4_34229
if 
  176@ == 2
goto_if_false @DRUGS4_34283
if 
  TIMERA > 3000
goto_if_false @DRUGS4_34283
Car.MarkAsNoLongerNeeded(40@)
Car.Delete(40@)
176@ = 3

:DRUGS4_34283
if 
  171@ == 22
goto_if_false @DRUGS4_34634
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_34634
if 
  Char.LocateOnFoot3D($scplayer, 2197.78, -1194.0, 26.17, 5.0, 5.0, 3.5, False)
goto_if_false @DRUGS4_34497
Camera.DoFade(250, Fade.Out)
Player.SetControl($player1, False)
Char.SetProofs($sweet, True, True, True, True, True)

:DRUGS4_34394
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS4_34418
wait 0
goto @DRUGS4_34394

:DRUGS4_34418
Car.MarkAsNoLongerNeeded(40@)
World.ClearArea(2197.78, -1194.0, 100.0, 100.0, True)
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_34483
Char.SetCoordinates($sweet, 2197.78, -1194.0, 25.0)

:DRUGS4_34483
171@ = 23
goto @DRUGS4_34634

:DRUGS4_34497
if 
  Char.LocateOnFoot3D($sweet, 2197.78, -1194.0, 26.17, 5.0, 5.0, 3.5, False)
goto_if_false @DRUGS4_34634
Car.MarkAsNoLongerNeeded(40@)
World.ClearArea(2197.78, -1194.0, 100.0, 100.0, True)
Camera.DoFade(250, Fade.Out)
Player.SetControl($player1, False)
Char.SetProofs($sweet, True, True, True, True, True)

:DRUGS4_34603
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS4_34627
wait 0
goto @DRUGS4_34603

:DRUGS4_34627
171@ = 23

:DRUGS4_34634
if 
  172@ > 1
goto_if_false @DRUGS4_35061
if 
  4 > 172@
goto_if_false @DRUGS4_35061
if 
  23 > 171@
goto_if_false @DRUGS4_35061
gosub @DRUGS4_66552
if 
  172@ == 2
goto_if_false @DRUGS4_34960
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_34960
if 
  178@ == 0
goto_if_false @DRUGS4_34812
if 
  179@ == 0
goto_if_false @DRUGS4_34812
if 
  171@ > 11
goto_if_false @DRUGS4_34812
set_lvar_int_to_constant 106@ = 8274
set_lvar_text_label 107@s = 'FIN1_JM'
gosub @DRUGS4_66510

:DRUGS4_34812
if 
  178@ == 1
goto_if_false @DRUGS4_34877
if 
  179@ == 0
goto_if_false @DRUGS4_34877
set_lvar_int_to_constant 106@ = 8350
set_lvar_text_label 107@s = 'FIN1_BY'
gosub @DRUGS4_66510

:DRUGS4_34877
if 
  178@ == 2
goto_if_false @DRUGS4_34960
if 
  179@ == 0
goto_if_false @DRUGS4_34960
if 
  171@ > 14
goto_if_false @DRUGS4_34960
set_lvar_int_to_constant 106@ = 8273
set_lvar_text_label 107@s = 'FIN1_JL'
gosub @DRUGS4_66510

:DRUGS4_34960
if 
  172@ == 3
goto_if_false @DRUGS4_35061
if 
  171@ > 21
goto_if_false @DRUGS4_35061
if 
  178@ == 0
goto_if_false @DRUGS4_35061
if 
  179@ == 0
goto_if_false @DRUGS4_35061
set_lvar_int_to_constant 106@ = 8275
set_lvar_text_label 107@s = 'FIN1_JN'
gosub @DRUGS4_66510

:DRUGS4_35061
if 
  171@ == 23
goto_if_false @DRUGS4_36770
if 
  294@ == 0
goto_if_false @DRUGS4_36770
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_36770
Clock.SetTimeOfDay(3, 15)
Char.SetCurrentWeapon($sweet, WeaponType.Unarmed)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(346)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Hud.SwitchWidescreen(True)
World.ClearArea(2223.971, -1149.75, 200.0, 200.0, False)
Player.SetControl($player1, False)
Camera.SetNearClip(0.1)
Camera.SetFixedPosition(2190.325, -1194.562, 25.4553, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2189.376, -1194.54, 25.1403, SwitchType.JumpCut)
Char.ClearTasksImmediately($sweet)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($sweet, 2192.65, -1194.78, 24.2)
Char.SetHeading($sweet, 78.5405)
Char.SetCoordinates($scplayer, 2192.0, -1193.78, 24.2)
Char.SetHeading($scplayer, 85.0874)
143@ = 0
DecisionMaker.Remove(57@)
Streaming.MarkModelAsNoLongerNeeded(285)
Hud.ClearCounter($cs1_random_dialogue)
Streaming.RequestModel(596)
Streaming.RequestModel(280)
Streaming.RequestModel(355)
Streaming.RequestModel(538)
Streaming.RequestModel(492)
Streaming.RequestModel(497)
Streaming.RequestAnimation("GANGS")
Streaming.RequestAnimation("CAR_CHAT")
Streaming.LoadSpecialCharacter(2, 'SMOKE')
Streaming.LoadSpecialCharacter(3, 'RYDER2')
Streaming.RequestCarRecording(330)
Streaming.RequestCarRecording(332)
Streaming.RequestCarRecording(333)
Streaming.RequestCarRecording(334)
Streaming.RequestCarRecording(335)
Streaming.RequestCarRecording(336)
Streaming.RequestCarRecording(337)
Streaming.RequestCarRecording(338)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8277)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8216)
Streaming.LoadAllModelsNow

:DRUGS4_35461
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasSpecialCharacterLoaded(3)
  not Streaming.HasAnimationLoaded("GANGS")
  not Streaming.HasAnimationLoaded("CAR_CHAT")
goto_if_false @DRUGS4_35516
wait 0
goto @DRUGS4_35461

:DRUGS4_35516
if or
  not Streaming.HasModelLoaded(596)
  not Streaming.HasModelLoaded(280)
  not Streaming.HasModelLoaded(355)
goto_if_false @DRUGS4_35553
wait 0
goto @DRUGS4_35516

:DRUGS4_35553
if or
  not Streaming.HasModelLoaded(538)
  not Streaming.HasModelLoaded(492)
  not Streaming.HasModelLoaded(497)
goto_if_false @DRUGS4_35590
wait 0
goto @DRUGS4_35553

:DRUGS4_35590
if or
  not Streaming.HasCarRecordingBeenLoaded(330)
  not Streaming.HasCarRecordingBeenLoaded(332)
  not Streaming.HasCarRecordingBeenLoaded(333)
  not Streaming.HasCarRecordingBeenLoaded(334)
  not Streaming.HasCarRecordingBeenLoaded(335)
goto_if_false @DRUGS4_35637
wait 0
goto @DRUGS4_35590

:DRUGS4_35637
if or
  not Streaming.HasCarRecordingBeenLoaded(336)
  not Streaming.HasCarRecordingBeenLoaded(337)
  not Streaming.HasCarRecordingBeenLoaded(338)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_35682
wait 0
goto @DRUGS4_35637

:DRUGS4_35682
Car.Delete(40@)
Char.Delete(44@)
Char.Delete(51@)
Char.Delete(52@)
Char.Delete(53@)
Char.Delete(54@)
World.ClearArea(2192.65, -1194.78, 100.0, 100.0, True)
40@ = Car.Create(497, 2130.004, -1196.324, 28.198)
Car.SetPetrolTankWeakpoint(40@, False)
Car.SetHeading(40@, 336.905)
44@ = Char.CreateInsideCar(40@, PedType.Mission1, 280)
Char.SetDecisionMaker(44@, 55@)
Char.SetSuffersCriticalHits(44@, False)
Char.SetCanBeShotInVehicle(44@, False)
Char.SetOnlyDamagedByPlayer(44@, True)
Car.SetOnlyDamagedByPlayer(40@, True)
Car.SetProofs(40@, False, True, True, False, False)
Heli.SetBladesFullSpeed(40@)
Car.SetVisible(40@, False)
$sweet_car = Car.Create(492, 2203.498, -1217.624, 23.579)
Audio.SetRadioChannel(RadioChannel.RadioLosSantos)
Car.SetCanBeVisiblyDamaged($sweet_car, False)
Car.SetHeading($sweet_car, 90.386)
$big_smoke = Char.CreateInsideCar($sweet_car, PedType.Special, 291)
Char.SetDecisionMaker($big_smoke, 55@)
$ryder = Char.CreateAsPassenger($sweet_car, PedType.Special, 292, 0)
Char.SetDecisionMaker($ryder, 55@)
Car.ChangeColor($sweet_car, 59, 34)
Car.SetProofs($sweet_car, False, True, True, True, True)
Car.SetHealth($sweet_car, 6000)
Car.SetCanBurstTires($sweet_car, False)
186@ = Car.Create(596, 2169.194, -1270.059, 22.8203)
Car.SetPetrolTankWeakpoint(186@, False)
Car.SetHeading(186@, 357.0326)
Car.SetOnlyDamagedByPlayer(186@, True)
Car.SetHealth(186@, 750)
195@ = Char.CreateInsideCar(186@, PedType.Mission1, 280)
Char.SetDecisionMaker(195@, 55@)
Char.SetHealth(195@, 100)
Char.SetSuffersCriticalHits(195@, False)
Char.SetOnlyDamagedByPlayer(195@, True)
196@ = Char.CreateAsPassenger(186@, PedType.Mission1, 280, 0)
Char.SetDecisionMaker(196@, 55@)
Char.SetHealth(196@, 200)
Char.SetOnlyDamagedByPlayer(196@, True)
Char.GiveWeapon(196@, WeaponType.Mp5, 99999)
Char.SetSuffersCriticalHits(196@, False)
Car.SetIdle(186@)
Car.SetVisible(186@, False)
187@ = Car.Create(596, 2172.526, -1280.734, 22.9766)
Car.SetPetrolTankWeakpoint(187@, False)
Car.SetHeading(187@, 0.9448)
Car.SetOnlyDamagedByPlayer(187@, True)
Car.SetHealth(187@, 500)
197@ = Char.CreateInsideCar(187@, PedType.Mission1, 280)
Car.SetProofs(187@, False, True, True, True, True)
Char.SetOnlyDamagedByPlayer(197@, True)
Char.SetHealth(197@, 100)
Char.SetDecisionMaker(197@, 55@)
198@ = Char.CreateAsPassenger(187@, PedType.Mission1, 280, 0)
Char.SetOnlyDamagedByPlayer(198@, True)
Char.SetDecisionMaker(198@, 55@)
Char.SetHealth(198@, 200)
Char.SetSuffersCriticalHits(198@, False)
Char.GiveWeapon(198@, WeaponType.Mp5, 99999)
Car.SetIdle(187@)
Car.SetVisible(187@, False)
188@ = Car.Create(596, 2223.11, -1150.118, 24.92)
Car.SetPetrolTankWeakpoint(188@, False)
199@ = Char.CreateInsideCar(188@, PedType.Mission1, 280)
Char.SetCanBeShotInVehicle(199@, False)
Car.SetOnlyDamagedByPlayer(188@, True)
Car.SetHealth(188@, 1000)
Char.SetDecisionMaker(199@, 55@)
Char.SetOnlyDamagedByPlayer(199@, True)
Char.SetSuffersCriticalHits(199@, False)
200@ = Char.CreateAsPassenger(188@, PedType.Mission1, 280, 0)
Char.SetDecisionMaker(200@, 55@)
Char.SetOnlyDamagedByPlayer(200@, True)
Char.SetHealth(200@, 200)
Char.SetSuffersCriticalHits(200@, False)
Char.GiveWeapon(200@, WeaponType.Mp5, 99999)
Car.SetIdle(188@)
189@ = Car.Create(596, 2388.808, -1259.431, 22.94)
Car.SetHeading(189@, 89.36)
Car.SetPetrolTankWeakpoint(189@, False)
Car.SetOnlyDamagedByPlayer(189@, True)
Car.SetHealth(189@, 900)
201@ = Char.CreateInsideCar(189@, PedType.Mission1, 280)
Char.SetOnlyDamagedByPlayer(201@, True)
Char.SetDecisionMaker(201@, 55@)
Char.SetSuffersCriticalHits(201@, False)
Char.SetHealth(201@, 100)
202@ = Char.CreateAsPassenger(189@, PedType.Mission1, 280, 0)
Char.SetOnlyDamagedByPlayer(202@, True)
Char.SetHealth(202@, 150)
Char.SetDecisionMaker(202@, 55@)
Char.GiveWeapon(202@, WeaponType.Mp5, 9999)
Char.SetSuffersCriticalHits(202@, False)
Car.SetIdle(189@)
Game.SwitchRandomTrains(False)
World.DeleteAllTrains
211@ = Train.Create(15, 2284.991, -1186.053, 24.756, False)
Train.SetSpeed(211@, 0.0)
Train.SetCruiseSpeed(211@, 0.0)
Car.SetProofs(211@, True, True, True, True, True)
Task.GoStraightToCoord($scplayer, 2183.567, -1193.851, 23.2419, MoveState.Run, 5000)
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_36756
Task.GoStraightToCoord($sweet, 2183.531, -1195.074, 23.2266, MoveState.Run, 5000)

:DRUGS4_36756
Camera.DoFade(250, Fade.In)
294@ = 1

:DRUGS4_36770
if 
  294@ == 1
goto_if_false @DRUGS4_36945
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_36945
if 
  Char.LocateAnyMeans2D($sweet, 2183.531, -1195.074, 1.5, 1.5, False)
goto_if_false @DRUGS4_36945
if 
  Char.LocateAnyMeans2D($scplayer, 2183.567, -1193.851, 2.0, 2.0, False)
goto_if_false @DRUGS4_36945
Camera.SetFixedPosition(2183.617, -1193.088, 24.8301, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2183.54, -1194.085, 24.8217, SwitchType.JumpCut)
TIMERA = 0
294@ = 2

:DRUGS4_36945
if 
  294@ == 2
goto_if_false @DRUGS4_37134
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_37134
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_37134
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_37134
if 
  TIMERA > 1500
goto_if_false @DRUGS4_37134
Task.LookAtChar($scplayer, $big_smoke, 3000)
Car.StartPlayback($sweet_car, 330)
Task.PlayAnim($sweet, "PRTIAL_GNGTLKE", "GANGS", 1000.0, False, True, True, True, -1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('FIN1_KA', 2500, 1)
Char.StartFacialTalk($sweet, 2000)
TIMERA = 0
294@ = 3

:DRUGS4_37134
if 
  294@ == 3
goto_if_false @DRUGS4_37269
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_37269
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_37269
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_37269
if 
  TIMERA > 500
goto_if_false @DRUGS4_37269
Task.PlayAnim($scplayer, "PRTIAL_GNGTLKH", "GANGS", 4.0, False, True, True, False, -1)
294@ = 4

:DRUGS4_37269
if 
  294@ == 4
goto_if_false @DRUGS4_37515
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_37515
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_37515
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_37515
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_37515
Task.LookAtChar($sweet, $big_smoke, 5000)
Text.ClearPrints
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Char.StartFacialTalk($scplayer, 2000)
Text.PrintNow('FIN1_KB', 3000, 1)
Char.StopFacialTalk($sweet)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8312)
Task.GoStraightToCoord($scplayer, 2181.53, -1193.81, 23.67, MoveState.Walk, 5000)
Task.GoStraightToCoord($sweet, 2181.41, -1195.67, 23.74, MoveState.Walk, 5000)
Camera.SetFixedPosition(2177.919, -1190.952, 24.4917, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2178.372, -1191.815, 24.2692, SwitchType.JumpCut)
294@ = 5

:DRUGS4_37515
if 
  294@ == 5
goto_if_false @DRUGS4_37938
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_37938
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_37938
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_37938
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_37938
if 
  not Car.IsPlaybackGoingOn($sweet_car)
goto_if_false @DRUGS4_37938
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_37938
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_37938
Char.StopFacialTalk($scplayer)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8217)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Char.StartFacialTalk($big_smoke, 1000)
Text.PrintNow('FIN1_KC', 2000, 1)
Camera.SetFixedPosition(2177.919, -1190.952, 24.4917, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2178.372, -1191.815, 24.2692, SwitchType.JumpCut)
Task.LookAtChar($scplayer, $big_smoke, 5000)
Car.SetIdle($sweet_car)
Task.PlayAnim($big_smoke, "CAR_SC4_FL", "CAR_CHAT", 1000.0, False, False, False, False, -1)
Task.PlayAnim($ryder, "CAR_SC4_FR", "CAR_CHAT", 1000.0, False, False, False, False, -1)
Task.EnterCarAsPassenger($scplayer, $sweet_car, 5000, 2)
Task.GoStraightToCoord($sweet, 2181.51, -1201.97, 24.0, MoveState.Run, 5000)
if 
  not Car.IsDead(186@)
goto_if_false @DRUGS4_37901
Car.SwitchSiren(186@, True)

:DRUGS4_37901
if 
  not Car.IsDead(187@)
goto_if_false @DRUGS4_37924
Car.SwitchSiren(187@, True)

:DRUGS4_37924
TIMERA = 0
294@ = 6

:DRUGS4_37938
if 
  294@ == 6
goto_if_false @DRUGS4_38144
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_38144
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_38144
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_38144
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_38144
if 
  TIMERA > 2000
goto_if_false @DRUGS4_38144
Char.SetCoordinates($sweet, 2176.78, -1196.64, 23.18)
Task.EnterCarAsPassenger($sweet, $sweet_car, 6000, 1)
Char.StopFacialTalk($big_smoke)
Car.PopPanel($sweet_car, 4, False)
Camera.SetFixedPosition(2178.881, -1194.196, 24.3172, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2178.866, -1195.196, 24.2959, SwitchType.JumpCut)
294@ = 7

:DRUGS4_38144
if 
  294@ == 7
goto_if_false @DRUGS4_38250
if 
  not Char.IsDead($scplayer)
goto_if_false @DRUGS4_38250
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @DRUGS4_38250
Task.PlayAnim($scplayer, "CAR_SC4_BR", "CAR_CHAT", 6.0, False, False, False, False, -1)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
294@ = 8

:DRUGS4_38250
if 
  294@ == 8
goto_if_false @DRUGS4_38685
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_38685
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_38685
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_38685
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_38685
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_38685
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_38685
if 
  Char.IsSittingInCar($sweet, $sweet_car)
goto_if_false @DRUGS4_38656
Task.PlayAnim($sweet, "CAR_SC4_BL", "CAR_CHAT", 8.0, False, False, False, False, -1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Char.StartFacialTalk($sweet, 1000)
Text.PrintNow('FIN1_KE', 2000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8218)
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_38500
Car.SetVisible(40@, True)
Heli.FollowEntity(40@, $scplayer, -1, 20.0)

:DRUGS4_38500
if 
  not Car.IsDead(186@)
goto_if_false @DRUGS4_38568
Car.SetVisible(186@, True)
Car.StartPlayback(186@, 333)
285@ = Blip.AddForCar(186@)
Blip.ChangeDisplay(285@, BlipDisplay.BlipOnly)
Car.SetHealth(186@, 1000)
297@ = 1
313@ = 1

:DRUGS4_38568
if 
  not Car.IsDead(187@)
goto_if_false @DRUGS4_38628
Car.SetVisible(187@, True)
Car.StartPlayback(187@, 334)
286@ = Blip.AddForCar(187@)
Blip.ChangeDisplay(286@, BlipDisplay.BlipOnly)
298@ = 1
314@ = 1

:DRUGS4_38628
TIMERA = 0
TIMERB = 0
294@ = 9
goto @DRUGS4_38685

:DRUGS4_38656
if 
  TIMERA > 5000
goto_if_false @DRUGS4_38685
Char.WarpIntoCarAsPassenger($sweet, $sweet_car, 1)

:DRUGS4_38685
if 
  294@ == 9
goto_if_false @DRUGS4_38800
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_38800
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_38800
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_38800
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_38800
if 
  TIMERA > 500
goto_if_false @DRUGS4_38800
TIMERA = 0
294@ = 10

:DRUGS4_38800
if 
  294@ == 10
goto_if_false @DRUGS4_38952
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_38952
if 
  TIMERB > 2800
goto_if_false @DRUGS4_38952
Car.StartPlayback($sweet_car, 332)
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_38938
58@ = Searchlight.CreateOnVehicle(40@, 0.0, 1.0, -0.5, 2193.73, -1166.85, 34.06, 3.0, 0.5)
Searchlight.PointAtChar(58@, $scplayer, 0.8)

:DRUGS4_38938
TIMERB = 0
294@ = 11

:DRUGS4_38952
if 
  294@ == 11
goto_if_false @DRUGS4_39091
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_39091
if 
  TIMERB > 3500
goto_if_false @DRUGS4_39091
Camera.SetFixedPosition(2178.987, -1140.643, 25.902, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2178.951, -1141.642, 25.8765, SwitchType.JumpCut)
326@ = 1
178@ = 0
179@ = 0
TIMERB = 0
294@ = 12

:DRUGS4_39091
if 
  294@ == 12
goto_if_false @DRUGS4_39622
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_39622
if or
  Char.LocateAnyMeans2D($scplayer, 2178.987, -1140.643, 1.3, 1.3, False)
  TIMERB > 2250
goto_if_false @DRUGS4_39622
Char.WarpFromCarToCoord($scplayer, 2178.8, -1161.187, 10.0)
Char.AttachToCar($scplayer, $sweet_car, 0.0, -0.5, 0.8, 2, 360.0, WeaponType.Ak47)
Player.SetHeadingForAttached($player1, 90.0, 180.0)
Camera.Restore
Char.SetProofs($scplayer, False, True, True, False, False)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
TIMERA = 0
TIMERB = 0
Char.Delete($sweet)
Char.Delete($big_smoke)
Char.Delete($ryder)
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("CAR_CHAT")
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
293@ += 1
if 
  not Char.IsDead(196@)
goto_if_false @DRUGS4_39448
if 
  293@ > 1
goto_if_false @DRUGS4_39412
Task.DriveBy(196@, -1, $sweet_car, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 40)
goto @DRUGS4_39448

:DRUGS4_39412
Task.DriveBy(196@, -1, $sweet_car, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 75)

:DRUGS4_39448
if 
  not Char.IsDead(198@)
goto_if_false @DRUGS4_39500
Task.DriveBy(198@, -1, $sweet_car, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 60)

:DRUGS4_39500
Car.SetHealth($sweet_car, 6000)
$sweethealth_f1 = Car.GetHealth($sweet_car)
$sweethealth_f1 /= 60
Hud.DisplayCounterWithString($sweethealth_f1, CounterDisplay.Bar, 'LAF1_38')
Pad.SetPlayerDuckButton($player1, False)
Text.PrintHelp('LAF1_50')
Car.SetProofs($sweet_car, False, True, True, True, True)
Char.SetProofs($scplayer, True, True, True, True, True)
331@ = 1
312@ = 1
295@ = 1
296@ = 1
294@ = 13

:DRUGS4_39622
if 
  295@ > 0
goto_if_false @DRUGS4_39787
if 
  5 > 325@
goto_if_false @DRUGS4_39787
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_39787
$sweethealth_f1 = Car.GetHealth($sweet_car)
$sweethealth_f1 -= 1000
if 
  0 >= $sweethealth_f1
goto_if_false @DRUGS4_39780
$sweethealth_f1 = 0
Car.SetProofs($sweet_car, False, False, False, False, False)
Char.SetProofs($scplayer, False, False, False, False, False)
Car.Explode($sweet_car)
Text.PrintNow('LAF1_4', 5000, 1)
goto @DRUGS4_67703
goto @DRUGS4_39787

:DRUGS4_39780
$sweethealth_f1 /= 50

:DRUGS4_39787
if 
  295@ == 1
goto_if_false @DRUGS4_43438
if 
  331@ == 1
goto_if_false @DRUGS4_39843
if 
  Text.IsHelpMessageBeingDisplayed
goto_if_false @DRUGS4_39843
331@ = 2

:DRUGS4_39843
if 
  331@ == 2
goto_if_false @DRUGS4_39892
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @DRUGS4_39892
Text.PrintHelp('LAF1_51')
331@ = 3

:DRUGS4_39892
if 
  294@ == 13
goto_if_false @DRUGS4_40007
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_40007
if 
  Car.Locate2D($sweet_car, 2261.95, -1142.2, 5.0, 5.0, False)
goto_if_false @DRUGS4_40007
if 
  not Car.IsDead(211@)
goto_if_false @DRUGS4_40007
Train.SetSpeed(211@, 10.0)
Train.SetCruiseSpeed(211@, 10.0)
294@ = 14

:DRUGS4_40007
if 
  294@ == 14
goto_if_false @DRUGS4_40108
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS4_40108
if 
  Car.Locate2D(188@, 2284.98, -1146.61, 3.0, 3.0, False)
goto_if_false @DRUGS4_40108
TIMERB = 0
327@ = 1
Car.SetHealth(188@, 750)
294@ = 15

:DRUGS4_40108
if 
  294@ == 15
goto_if_false @DRUGS4_40173
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS4_40173
if 
  TIMERB > 1100
goto_if_false @DRUGS4_40173
Car.Explode(188@)
294@ = 16

:DRUGS4_40173
if 
  296@ == 1
goto_if_false @DRUGS4_40357
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_40357
if 
  Car.Locate2D($sweet_car, 2223.11, -1150.118, 20.0, 20.0, False)
goto_if_false @DRUGS4_40357
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS4_40350
Car.StartPlayback(188@, 335)
287@ = Blip.AddForCar(188@)
Blip.ChangeDisplay(287@, BlipDisplay.BlipOnly)
315@ = 1
299@ = 1
if 
  not Char.IsDead(200@)
goto_if_false @DRUGS4_40350
Task.DriveBy(200@, -1, $sweet_car, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 40)

:DRUGS4_40350
296@ = 2

:DRUGS4_40357
if 
  296@ == 2
goto_if_false @DRUGS4_40843
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_40843
if 
  Car.Locate2D($sweet_car, 2352.54, -1271.86, 10.1, 10.1, False)
goto_if_false @DRUGS4_40843
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS4_40836
Car.StartPlayback(189@, 336)
288@ = Blip.AddForCar(189@)
Blip.ChangeDisplay(288@, BlipDisplay.BlipOnly)
300@ = 1
316@ = 1
if 
  not Char.IsDead(202@)
goto_if_false @DRUGS4_40534
Task.DriveBy(202@, -1, $sweet_car, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 75)

:DRUGS4_40534
Train.Delete(211@)
World.DeleteMissionTrains
Streaming.MarkModelAsNoLongerNeeded(538)
190@ = Car.Create(596, 2500.697, -1443.776, 28.28)
Car.SetPetrolTankWeakpoint(190@, False)
Car.SetHeading(190@, 90.4588)
Car.SetOnlyDamagedByPlayer(190@, True)
Car.SetHealth(190@, 750)
203@ = Char.CreateInsideCar(190@, PedType.Mission1, 280)
Char.SetOnlyDamagedByPlayer(203@, True)
Char.SetDecisionMaker(203@, 55@)
Char.SetSuffersCriticalHits(203@, False)
Char.SetHealth(203@, 200)
204@ = Char.CreateAsPassenger(190@, PedType.Mission1, 280, 0)
Char.SetDecisionMaker(204@, 55@)
Char.SetOnlyDamagedByPlayer(204@, True)
Char.SetHealth(204@, 100)
Char.GiveWeapon(204@, WeaponType.Mp5, 9999)
Char.SetSuffersCriticalHits(204@, False)
Car.SetIdle(190@)
192@ = Car.Create(596, 2478.223, -1321.966, 28.252)
Car.SetHeading(192@, 356.585)
Car.SetOnlyDamagedByPlayer(192@, True)
Car.SetHealth(192@, 280)
Car.SetIdle(192@)
205@ = Char.CreateInsideCar(192@, PedType.Mission1, 280)
Char.SetOnlyDamagedByPlayer(205@, True)
Char.SetDecisionMaker(205@, 55@)
206@ = Char.CreateAsPassenger(192@, PedType.Mission1, 280, 0)
Char.SetOnlyDamagedByPlayer(206@, True)
Char.SetDecisionMaker(206@, 55@)
Char.SetSuffersCriticalHits(206@, False)
Char.GiveWeapon(206@, WeaponType.Mp5, 9999)
Car.SetIdle(192@)

:DRUGS4_40836
296@ = 3

:DRUGS4_40843
if 
  296@ == 3
goto_if_false @DRUGS4_41304
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_41304
if 
  Car.Locate2D($sweet_car, 2394.67, -1442.43, 10.1, 10.1, False)
goto_if_false @DRUGS4_41304
if 
  not Car.IsDead(190@)
goto_if_false @DRUGS4_41297
301@ = 1
317@ = 1
Car.StartPlayback(190@, 337)
289@ = Blip.AddForCar(190@)
Blip.ChangeDisplay(289@, BlipDisplay.BlipOnly)
Car.SwitchSiren(190@, True)
if 
  not Char.IsDead(204@)
goto_if_false @DRUGS4_41088
if 
  293@ > 1
goto_if_false @DRUGS4_41052
Task.DriveBy(204@, -1, $sweet_car, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 30)
goto @DRUGS4_41088

:DRUGS4_41052
Task.DriveBy(204@, -1, $sweet_car, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 75)

:DRUGS4_41088
World.DeleteAllTrains
191@ = Car.Create(596, 2447.036, -1370.772, 22.64)
Car.SetHeading(191@, 270.267)
Car.SetIdle(191@)
Car.SetHealth(191@, 250)
Car.SetOnlyDamagedByPlayer(191@, True)
290@ = Blip.AddForCar(191@)
Blip.ChangeDisplay(290@, BlipDisplay.BlipOnly)
207@ = Char.Create(PedType.Mission1, 280, 2448.77, -1368.898, 23.6)
Char.SetDecisionMaker(207@, 55@)
Char.GiveWeapon(207@, WeaponType.Mp5, 999)
set_lvar_int_to_lvar_int 118@ = 207@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
208@ = Char.Create(PedType.Mission1, 280, 2444.387, -1369.356, 24.02)
Char.SetDecisionMaker(208@, 55@)
Char.GiveWeapon(208@, WeaponType.Mp5, 999)
set_lvar_int_to_lvar_int 118@ = 208@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
302@ = 1

:DRUGS4_41297
296@ = 4

:DRUGS4_41304
if 
  296@ == 4
goto_if_false @DRUGS4_41495
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_41495
if 
  Car.Locate2D($sweet_car, 2448.94, -1311.15, 30.1, 30.1, False)
goto_if_false @DRUGS4_41495
if 
  not Car.IsDead(192@)
goto_if_false @DRUGS4_41488
Car.StartPlayback(192@, 338)
Car.SwitchSiren(192@, True)
303@ = 1
319@ = 1
if 
  not Char.IsDead(205@)
goto_if_false @DRUGS4_41473
Task.DriveBy(205@, -1, $sweet_car, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 60)

:DRUGS4_41473
291@ = Blip.AddForCar(192@)
Blip.ChangeDisplay(291@, BlipDisplay.BlipOnly)

:DRUGS4_41488
296@ = 5

:DRUGS4_41495
if 
  313@ == 1
goto_if_false @DRUGS4_41647
if 
  not Car.IsDead(186@)
goto_if_false @DRUGS4_41647
if 
  not Char.IsDead(195@)
goto_if_false @DRUGS4_41552
goto @DRUGS4_41647

:DRUGS4_41552
if 
  not Char.IsDead(196@)
goto_if_false @DRUGS4_41635
if 
  Char.IsInCar(196@, 186@)
goto_if_false @DRUGS4_41628
284@ = Car.GetDriver(186@)
if 
  284@ == -1
goto_if_false @DRUGS4_41628
Task.ShuffleToNextCarSeat(196@, 186@)
313@ = 2

:DRUGS4_41628
goto @DRUGS4_41647

:DRUGS4_41635
Car.StopPlayback(186@)
313@ = 2

:DRUGS4_41647
if 
  313@ == 2
goto_if_false @DRUGS4_41693
if 
  Char.IsDead(196@)
goto_if_false @DRUGS4_41693
Car.StopPlayback(186@)
313@ = 3

:DRUGS4_41693
if 
  297@ == 1
goto_if_false @DRUGS4_41809
if 
  not Car.IsDead(186@)
goto_if_false @DRUGS4_41777
if 
  not Car.IsPlaybackGoingOn(186@)
goto_if_false @DRUGS4_41770
Car.MarkAsNoLongerNeeded(186@)
Char.MarkAsNoLongerNeeded(195@)
Char.MarkAsNoLongerNeeded(196@)
Blip.Remove(285@)
297@ = 2

:DRUGS4_41770
goto @DRUGS4_41809

:DRUGS4_41777
Car.StopPlayback(186@)
Char.MarkAsNoLongerNeeded(195@)
Char.MarkAsNoLongerNeeded(196@)
Car.MarkAsNoLongerNeeded(186@)
Blip.Remove(285@)
297@ = 2

:DRUGS4_41809
if 
  314@ == 1
goto_if_false @DRUGS4_41961
if 
  not Car.IsDead(187@)
goto_if_false @DRUGS4_41961
if 
  not Char.IsDead(197@)
goto_if_false @DRUGS4_41866
goto @DRUGS4_41961

:DRUGS4_41866
if 
  not Char.IsDead(198@)
goto_if_false @DRUGS4_41949
if 
  Char.IsInCar(198@, 187@)
goto_if_false @DRUGS4_41942
284@ = Car.GetDriver(187@)
if 
  284@ == -1
goto_if_false @DRUGS4_41942
Task.ShuffleToNextCarSeat(198@, 187@)
314@ = 2

:DRUGS4_41942
goto @DRUGS4_41961

:DRUGS4_41949
Car.StopPlayback(187@)
314@ = 2

:DRUGS4_41961
if 
  314@ == 2
goto_if_false @DRUGS4_42007
if 
  Char.IsDead(198@)
goto_if_false @DRUGS4_42007
Car.StopPlayback(187@)
314@ = 3

:DRUGS4_42007
if 
  298@ == 1
goto_if_false @DRUGS4_42123
if 
  not Car.IsDead(187@)
goto_if_false @DRUGS4_42091
if 
  not Car.IsPlaybackGoingOn(187@)
goto_if_false @DRUGS4_42084
Car.MarkAsNoLongerNeeded(187@)
Char.MarkAsNoLongerNeeded(197@)
Char.MarkAsNoLongerNeeded(198@)
Blip.Remove(286@)
298@ = 2

:DRUGS4_42084
goto @DRUGS4_42123

:DRUGS4_42091
Car.StopPlayback(187@)
Char.MarkAsNoLongerNeeded(197@)
Char.MarkAsNoLongerNeeded(198@)
Car.MarkAsNoLongerNeeded(187@)
Blip.Remove(286@)
298@ = 2

:DRUGS4_42123
if 
  299@ == 1
goto_if_false @DRUGS4_42259
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS4_42217
if 
  not Car.IsPlaybackGoingOn(188@)
goto_if_false @DRUGS4_42210
Car.MarkAsNoLongerNeeded(188@)
Char.MarkAsNoLongerNeeded(199@)
Char.MarkAsNoLongerNeeded(200@)
Blip.Remove(287@)
Car.MarkAsNoLongerNeeded(211@)
Streaming.MarkModelAsNoLongerNeeded(538)
299@ = 2

:DRUGS4_42210
goto @DRUGS4_42259

:DRUGS4_42217
Car.StopPlayback(188@)
Char.MarkAsNoLongerNeeded(199@)
Char.MarkAsNoLongerNeeded(200@)
Car.MarkAsNoLongerNeeded(188@)
Car.MarkAsNoLongerNeeded(211@)
Streaming.MarkModelAsNoLongerNeeded(538)
Blip.Remove(287@)
299@ = 2

:DRUGS4_42259
if 
  316@ == 1
goto_if_false @DRUGS4_42411
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS4_42411
if 
  not Char.IsDead(201@)
goto_if_false @DRUGS4_42316
goto @DRUGS4_42411

:DRUGS4_42316
if 
  not Char.IsDead(202@)
goto_if_false @DRUGS4_42399
if 
  Char.IsInCar(202@, 189@)
goto_if_false @DRUGS4_42392
284@ = Car.GetDriver(189@)
if 
  284@ == -1
goto_if_false @DRUGS4_42392
Task.ShuffleToNextCarSeat(202@, 189@)
316@ = 2

:DRUGS4_42392
goto @DRUGS4_42411

:DRUGS4_42399
Car.StopPlayback(189@)
316@ = 2

:DRUGS4_42411
if 
  316@ == 2
goto_if_false @DRUGS4_42457
if 
  Char.IsDead(202@)
goto_if_false @DRUGS4_42457
Car.StopPlayback(189@)
316@ = 3

:DRUGS4_42457
if 
  300@ == 1
goto_if_false @DRUGS4_42573
if 
  not Car.IsDead(189@)
goto_if_false @DRUGS4_42541
if 
  not Car.IsPlaybackGoingOn(189@)
goto_if_false @DRUGS4_42534
Car.MarkAsNoLongerNeeded(189@)
Char.MarkAsNoLongerNeeded(201@)
Char.MarkAsNoLongerNeeded(202@)
Blip.Remove(288@)
300@ = 2

:DRUGS4_42534
goto @DRUGS4_42573

:DRUGS4_42541
Car.StopPlayback(189@)
Char.MarkAsNoLongerNeeded(201@)
Char.MarkAsNoLongerNeeded(202@)
Car.MarkAsNoLongerNeeded(189@)
Blip.Remove(288@)
300@ = 2

:DRUGS4_42573
if 
  317@ == 1
goto_if_false @DRUGS4_42725
if 
  not Car.IsDead(190@)
goto_if_false @DRUGS4_42725
if 
  not Char.IsDead(203@)
goto_if_false @DRUGS4_42630
goto @DRUGS4_42725

:DRUGS4_42630
if 
  not Char.IsDead(204@)
goto_if_false @DRUGS4_42713
if 
  Char.IsInCar(204@, 190@)
goto_if_false @DRUGS4_42706
284@ = Car.GetDriver(190@)
if 
  284@ == -1
goto_if_false @DRUGS4_42706
Task.ShuffleToNextCarSeat(204@, 190@)
317@ = 2

:DRUGS4_42706
goto @DRUGS4_42725

:DRUGS4_42713
Car.StopPlayback(190@)
317@ = 2

:DRUGS4_42725
if 
  317@ == 2
goto_if_false @DRUGS4_42771
if 
  Char.IsDead(204@)
goto_if_false @DRUGS4_42771
Car.StopPlayback(190@)
317@ = 3

:DRUGS4_42771
if 
  301@ == 1
goto_if_false @DRUGS4_42887
if 
  not Car.IsDead(190@)
goto_if_false @DRUGS4_42855
if 
  not Car.IsPlaybackGoingOn(190@)
goto_if_false @DRUGS4_42848
Car.MarkAsNoLongerNeeded(190@)
Char.MarkAsNoLongerNeeded(203@)
Char.MarkAsNoLongerNeeded(204@)
Blip.Remove(289@)
301@ = 2

:DRUGS4_42848
goto @DRUGS4_42887

:DRUGS4_42855
Car.StopPlayback(190@)
Char.MarkAsNoLongerNeeded(203@)
Char.MarkAsNoLongerNeeded(204@)
Car.MarkAsNoLongerNeeded(190@)
Blip.Remove(289@)
301@ = 2

:DRUGS4_42887
if 
  302@ == 1
goto_if_false @DRUGS4_42948
if 
  Car.IsDead(191@)
goto_if_false @DRUGS4_42948
Char.MarkAsNoLongerNeeded(207@)
Char.MarkAsNoLongerNeeded(208@)
Car.MarkAsNoLongerNeeded(191@)
Blip.Remove(290@)
302@ = 2

:DRUGS4_42948
if 
  319@ == 1
goto_if_false @DRUGS4_43100
if 
  not Car.IsDead(192@)
goto_if_false @DRUGS4_43100
if 
  not Char.IsDead(205@)
goto_if_false @DRUGS4_43005
goto @DRUGS4_43100

:DRUGS4_43005
if 
  not Char.IsDead(206@)
goto_if_false @DRUGS4_43088
if 
  Char.IsInCar(206@, 192@)
goto_if_false @DRUGS4_43081
284@ = Car.GetDriver(192@)
if 
  284@ == -1
goto_if_false @DRUGS4_43081
Task.ShuffleToNextCarSeat(206@, 192@)
319@ = 2

:DRUGS4_43081
goto @DRUGS4_43100

:DRUGS4_43088
Car.StopPlayback(192@)
319@ = 2

:DRUGS4_43100
if 
  319@ == 2
goto_if_false @DRUGS4_43146
if 
  Char.IsDead(206@)
goto_if_false @DRUGS4_43146
Car.StopPlayback(192@)
319@ = 3

:DRUGS4_43146
if 
  303@ == 1
goto_if_false @DRUGS4_43262
if 
  not Car.IsDead(192@)
goto_if_false @DRUGS4_43230
if 
  not Car.IsPlaybackGoingOn(192@)
goto_if_false @DRUGS4_43223
Car.MarkAsNoLongerNeeded(192@)
Char.MarkAsNoLongerNeeded(205@)
Char.MarkAsNoLongerNeeded(206@)
Blip.Remove(291@)
303@ = 2

:DRUGS4_43223
goto @DRUGS4_43262

:DRUGS4_43230
Car.StopPlayback(192@)
Char.MarkAsNoLongerNeeded(205@)
Char.MarkAsNoLongerNeeded(206@)
Car.MarkAsNoLongerNeeded(192@)
Blip.Remove(291@)
303@ = 2

:DRUGS4_43262
if 
  143@ == 0
goto_if_false @DRUGS4_43318
if 
  Car.IsDead(40@)
goto_if_false @DRUGS4_43318
Car.MarkAsNoLongerNeeded(40@)
Char.MarkAsNoLongerNeeded(44@)
Searchlight.Delete(58@)
143@ = 1

:DRUGS4_43318
if 
  Char.LocateAnyMeans2D($scplayer, 2555.85, -1257.43, 5.0, 5.0, False)
goto_if_false @DRUGS4_43438
326@ = 2
Camera.DoFade(100, Fade.Out)

:DRUGS4_43369
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS4_43393
wait 0
goto @DRUGS4_43369

:DRUGS4_43393
Player.SetControl($player1, False)
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_43431
Car.SetProofs($sweet_car, True, True, True, True, True)

:DRUGS4_43431
295@ = 2

:DRUGS4_43438
if 
  326@ == 1
goto_if_false @DRUGS4_44956
gosub @DRUGS4_66552
if 
  178@ == 0
goto_if_false @DRUGS4_43528
if 
  179@ == 0
goto_if_false @DRUGS4_43528
set_lvar_int_to_constant 106@ = 8218
set_lvar_text_label 107@s = 'FIN1_KF'
gosub @DRUGS4_66510

:DRUGS4_43528
if 
  178@ == 1
goto_if_false @DRUGS4_43593
if 
  179@ == 0
goto_if_false @DRUGS4_43593
set_lvar_int_to_constant 106@ = 8246
set_lvar_text_label 107@s = 'FIN1_KG'
gosub @DRUGS4_66510

:DRUGS4_43593
if 
  178@ == 2
goto_if_false @DRUGS4_43658
if 
  179@ == 0
goto_if_false @DRUGS4_43658
set_lvar_int_to_constant 106@ = 8219
set_lvar_text_label 107@s = 'FIN1_KH'
gosub @DRUGS4_66510

:DRUGS4_43658
if 
  178@ == 3
goto_if_false @DRUGS4_43723
if 
  179@ == 0
goto_if_false @DRUGS4_43723
set_lvar_int_to_constant 106@ = 8247
set_lvar_text_label 107@s = 'FIN1_KI'
gosub @DRUGS4_66510

:DRUGS4_43723
if 
  178@ == 4
goto_if_false @DRUGS4_43788
if 
  179@ == 0
goto_if_false @DRUGS4_43788
set_lvar_int_to_constant 106@ = 8220
set_lvar_text_label 107@s = 'FIN1_KJ'
gosub @DRUGS4_66510

:DRUGS4_43788
if 
  178@ == 5
goto_if_false @DRUGS4_43853
if 
  179@ == 0
goto_if_false @DRUGS4_43853
set_lvar_int_to_constant 106@ = 8301
set_lvar_text_label 107@s = 'FIN1_ZC'
gosub @DRUGS4_66510

:DRUGS4_43853
if 
  178@ == 6
goto_if_false @DRUGS4_43936
if 
  179@ == 0
goto_if_false @DRUGS4_43936
if 
  327@ == 1
goto_if_false @DRUGS4_43936
set_lvar_int_to_constant 106@ = 8278
set_lvar_text_label 107@s = 'FIN1_KM'
gosub @DRUGS4_66510

:DRUGS4_43936
if 
  178@ == 7
goto_if_false @DRUGS4_44001
if 
  179@ == 0
goto_if_false @DRUGS4_44001
set_lvar_int_to_constant 106@ = 8222
set_lvar_text_label 107@s = 'FIN1_KL'
gosub @DRUGS4_66510

:DRUGS4_44001
if 
  178@ == 8
goto_if_false @DRUGS4_44089
if 
  179@ == 0
goto_if_false @DRUGS4_44089
if 
  Searchlight.DoesExist(58@)
goto_if_false @DRUGS4_44060
Searchlight.SetClipIfColliding(58@, True)

:DRUGS4_44060
set_lvar_int_to_constant 106@ = 8248
set_lvar_text_label 107@s = 'FIN1_KO'
gosub @DRUGS4_66510

:DRUGS4_44089
if 
  178@ == 9
goto_if_false @DRUGS4_44154
if 
  179@ == 0
goto_if_false @DRUGS4_44154
set_lvar_int_to_constant 106@ = 8249
set_lvar_text_label 107@s = 'FIN1_KP'
gosub @DRUGS4_66510

:DRUGS4_44154
if 
  327@ == 1
goto_if_false @DRUGS4_44217
if 
  Char.LocateAnyMeans2D($scplayer, 2372.35, -1283.33, 15.0, 15.0, False)
goto_if_false @DRUGS4_44217
327@ = 2

:DRUGS4_44217
if 
  178@ == 10
goto_if_false @DRUGS4_44300
if 
  327@ == 2
goto_if_false @DRUGS4_44300
if 
  179@ == 0
goto_if_false @DRUGS4_44300
set_lvar_int_to_constant 106@ = 8250
set_lvar_text_label 107@s = 'FIN1_KS'
gosub @DRUGS4_66510

:DRUGS4_44300
if 
  178@ == 11
goto_if_false @DRUGS4_44388
if 
  179@ == 0
goto_if_false @DRUGS4_44388
if 
  Searchlight.DoesExist(58@)
goto_if_false @DRUGS4_44359
Searchlight.SetClipIfColliding(58@, False)

:DRUGS4_44359
set_lvar_int_to_constant 106@ = 8304
set_lvar_text_label 107@s = 'FIN1_KT'
gosub @DRUGS4_66510

:DRUGS4_44388
if 
  178@ == 12
goto_if_false @DRUGS4_44453
if 
  179@ == 0
goto_if_false @DRUGS4_44453
set_lvar_int_to_constant 106@ = 8251
set_lvar_text_label 107@s = 'FIN1_KU'
gosub @DRUGS4_66510

:DRUGS4_44453
if 
  178@ == 13
goto_if_false @DRUGS4_44518
if 
  179@ == 0
goto_if_false @DRUGS4_44518
set_lvar_int_to_constant 106@ = 8337
set_lvar_text_label 107@s = 'FIN1_CB'
gosub @DRUGS4_66510

:DRUGS4_44518
if 
  327@ == 2
goto_if_false @DRUGS4_44581
if 
  Char.LocateAnyMeans2D($scplayer, 2424.42, -1446.57, 15.0, 15.0, False)
goto_if_false @DRUGS4_44581
327@ = 3

:DRUGS4_44581
if 
  178@ == 14
goto_if_false @DRUGS4_44664
if 
  327@ == 3
goto_if_false @DRUGS4_44664
if 
  179@ == 0
goto_if_false @DRUGS4_44664
set_lvar_int_to_constant 106@ = 8318
set_lvar_text_label 107@s = 'FIN1_LD'
gosub @DRUGS4_66510

:DRUGS4_44664
if 
  327@ == 3
goto_if_false @DRUGS4_44727
if 
  Char.LocateAnyMeans2D($scplayer, 2453.78, -1333.3, 10.0, 10.0, False)
goto_if_false @DRUGS4_44727
327@ = 4

:DRUGS4_44727
if 
  178@ == 15
goto_if_false @DRUGS4_44810
if 
  327@ == 3
goto_if_false @DRUGS4_44810
if 
  179@ == 0
goto_if_false @DRUGS4_44810
set_lvar_int_to_constant 106@ = 8302
set_lvar_text_label 107@s = 'FIN1_ZD'
gosub @DRUGS4_66510

:DRUGS4_44810
if 
  327@ == 4
goto_if_false @DRUGS4_44873
if 
  Char.LocateAnyMeans2D($scplayer, 2454.1, -1313.02, 10.0, 10.0, False)
goto_if_false @DRUGS4_44873
327@ = 5

:DRUGS4_44873
if 
  178@ == 16
goto_if_false @DRUGS4_44956
if 
  179@ == 0
goto_if_false @DRUGS4_44956
if 
  327@ == 5
goto_if_false @DRUGS4_44956
set_lvar_int_to_constant 106@ = 8280
set_lvar_text_label 107@s = 'FIN1_KX'
gosub @DRUGS4_66510

:DRUGS4_44956
if 
  295@ == 2
goto_if_false @DRUGS4_47214
Player.SetControl($player1, False)
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_45012
Car.SetProofs($sweet_car, True, True, True, True, True)

:DRUGS4_45012
Hud.SwitchWidescreen(True)
Camera.SetNearClip(0.1)
Car.StopPlayback(186@)
Car.Delete(186@)
Blip.Remove(285@)
Car.StopPlayback(187@)
Car.Delete(187@)
Blip.Remove(286@)
Car.StopPlayback(188@)
Car.Delete(188@)
Blip.Remove(287@)
Car.StopPlayback(189@)
Car.Delete(189@)
Blip.Remove(288@)
Car.StopPlayback(190@)
Car.Delete(190@)
Blip.Remove(289@)
Car.Delete(191@)
Blip.Remove(290@)
Car.StopPlayback(192@)
Car.Delete(192@)
Blip.Remove(291@)
Char.Delete(195@)
Char.Delete(196@)
Char.Delete(197@)
Char.Delete(198@)
Char.Delete(199@)
Char.Delete(200@)
Char.Delete(201@)
Char.Delete(202@)
Char.Delete(203@)
Char.Delete(204@)
Char.Delete(205@)
Char.Delete(206@)
Char.Delete(207@)
Char.Delete(208@)
296@ = 0
297@ = 0
298@ = 0
299@ = 0
300@ = 0
301@ = 0
302@ = 0
303@ = 0
304@ = 0
313@ = 0
314@ = 0
315@ = 0
316@ = 0
317@ = 0
318@ = 0
319@ = 0
320@ = 0
Streaming.RequestCarRecording(331)
Streaming.RequestModel(#DYN_SCAFFOLD_4B)
Streaming.RequestCarRecording(339)
Streaming.RequestAnimation("MD_CHASE")
Streaming.RequestCarRecording(373)
Streaming.RequestCarRecording(374)
Streaming.RequestCarRecording(375)
Streaming.RequestCarRecording(376)
Streaming.RequestCarRecording(377)
Streaming.RequestCarRecording(371)
Streaming.RequestCarRecording(372)
Streaming.RequestCarRecording(378)
Streaming.RequestCarRecording(380)
Streaming.RequestCarRecording(381)
Streaming.RequestModel(#MUNCH_DONUT)
Streaming.LoadSpecialCharacter(2, 'SMOKE')
Streaming.LoadSpecialCharacter(3, 'RYDER2')
Streaming.RequestModel(#CHOPCOP_ARMR)
Streaming.RequestModel(#CHOPCOP_LEGR)
Streaming.RequestModel(#CHOPCOP_HEAD)
Streaming.RequestModel(#CHOPCOP_TORSO)
Streaming.RequestModel(#WD_FENCE_ANIM)
Streaming.RequestModel(284)
Streaming.RequestModel(523)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8319)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8320)
Streaming.RequestModel(#MD_POSTER)
Streaming.LoadAllModelsNow

:DRUGS4_45475
if or
  not Streaming.HasCarRecordingBeenLoaded(331)
  not Streaming.HasModelLoaded(#DYN_SCAFFOLD_4B)
  not Streaming.HasCarRecordingBeenLoaded(339)
  not Streaming.HasAnimationLoaded("MD_CHASE")
  not Streaming.HasModelLoaded(284)
  not Streaming.HasModelLoaded(523)
goto_if_false @DRUGS4_45534
wait 0
goto @DRUGS4_45475

:DRUGS4_45534
if or
  not Streaming.HasCarRecordingBeenLoaded(373)
  not Streaming.HasCarRecordingBeenLoaded(374)
  not Streaming.HasCarRecordingBeenLoaded(375)
  not Streaming.HasCarRecordingBeenLoaded(376)
  not Streaming.HasCarRecordingBeenLoaded(377)
goto_if_false @DRUGS4_45581
wait 0
goto @DRUGS4_45534

:DRUGS4_45581
if or
  not Streaming.HasCarRecordingBeenLoaded(371)
  not Streaming.HasCarRecordingBeenLoaded(372)
  not Streaming.HasCarRecordingBeenLoaded(378)
  not Streaming.HasCarRecordingBeenLoaded(380)
goto_if_false @DRUGS4_45623
wait 0
goto @DRUGS4_45581

:DRUGS4_45623
if or
  not Streaming.HasModelLoaded(#MUNCH_DONUT)
  not Streaming.HasCarRecordingBeenLoaded(381)
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasSpecialCharacterLoaded(3)
goto_if_false @DRUGS4_45663
wait 0
goto @DRUGS4_45623

:DRUGS4_45663
if or
  not Streaming.HasModelLoaded(#CHOPCOP_ARMR)
  not Streaming.HasModelLoaded(#CHOPCOP_LEGR)
  not Streaming.HasModelLoaded(#CHOPCOP_HEAD)
  not Streaming.HasModelLoaded(#WD_FENCE_ANIM)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_45713
wait 0
goto @DRUGS4_45663

:DRUGS4_45713
212@ = Car.Create(523, 2571.39, -1248.083, 45.2)
Car.SetPetrolTankWeakpoint(212@, False)
Car.SetHeading(212@, 181.089)
213@ = Car.Create(523, 2569.95, -1248.083, 45.2)
Car.SetPetrolTankWeakpoint(213@, False)
Car.SetHeading(213@, 181.089)
214@ = Car.Create(523, 2586.339, -1351.697, 35.174)
Car.SetPetrolTankWeakpoint(214@, False)
Car.SetHeading(214@, 87.221)
Car.ForceLights(214@, CarLights.ForceOn)
Car.ForceLights(212@, CarLights.ForceOff)
Car.ForceLights(213@, CarLights.ForceOff)
216@ = Char.CreateInsideCar(212@, PedType.Mission1, 284)
Char.SetDecisionMaker(216@, 55@)
217@ = Char.CreateInsideCar(213@, PedType.Mission1, 284)
Char.SetDecisionMaker(217@, 55@)
186@ = Car.Create(596, 2505.736, -1256.742, 33.64)
Car.SetPetrolTankWeakpoint(186@, False)
Car.SetHeading(186@, 268.42)
195@ = Char.CreateInsideCar(186@, PedType.Mission1, 280)
Char.SetDecisionMaker(195@, 55@)
Char.SetSuffersCriticalHits(195@, False)
Char.SetCanBeShotInVehicle(195@, False)
Char.SetOnlyDamagedByPlayer(195@, True)
230@ = Object.Create(#MUNCH_DONUT, 2570.59, -1247.66, 44.88)
Camera.SetFixedPosition(2570.636, -1245.94, 45.3765, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2570.625, -1246.931, 45.2422, SwitchType.JumpCut)
Camera.DoFade(250, Fade.In)
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_46127
if 
  Car.IsPlaybackGoingOn($sweet_car)
goto_if_false @DRUGS4_46115
Car.StopPlayback($sweet_car)
Car.SetIdle($sweet_car)
Car.FreezePosition($sweet_car, True)
goto @DRUGS4_46127

:DRUGS4_46115
Car.SetIdle($sweet_car)
Car.FreezePosition($sweet_car, True)

:DRUGS4_46127
237@ = Particle.Create("CARWASHSPRAY", 2451.04, -1460.79, 23.0, 1)
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_46248
Char.DetachFromCar($scplayer)
Char.SetCoordinates($scplayer, 2585.74, -1264.16, 46.2)
$big_smoke = Char.CreateInsideCar($sweet_car, PedType.Special, 291)
Char.SetDecisionMaker($big_smoke, 55@)
$ryder = Char.CreateAsPassenger($sweet_car, PedType.Special, 292, 0)
Char.SetDecisionMaker($ryder, 55@)

:DRUGS4_46248
218@ = Char.Create(PedType.Mission1, 284, 0.0, 0.0, 0.0)
Char.SetDecisionMaker(218@, 55@)
Char.SetSuffersCriticalHits(218@, False)
Char.SetOnlyDamagedByPlayer(218@, True)
Car.SetProofs(214@, True, True, True, True, True)
Task.PlayAnimNonInterruptable(218@, "MD_BIKE_JMP_F", "MD_CHASE", 4.0, False, False, False, True, -1)
Char.AttachToCar(218@, 214@, 0.0, -0.401, 0.47, 0, 360.0, WeaponType.Unarmed)
Char.SetHealth(218@, 1000)
308@ = 1
222@ = Object.Create(#DYN_SCAFFOLD_4B, 2563.232, -1322.392, 40.3)
Object.SetHeading(222@, 170.0)
223@ = Object.Create(#DYN_SCAFFOLD_4B, 2563.232, -1322.392, 42.5)
Object.SetHeading(223@, 170.0)
224@ = Object.Create(#DYN_SCAFFOLD_4B, 2563.232, -1322.392, 44.7)
Object.SetHeading(224@, 170.0)
225@ = Object.Create(#DYN_SCAFFOLD_4B, 2565.882, -1322.392, 40.3)
Object.SetHeading(225@, 170.0)
226@ = Object.Create(#DYN_SCAFFOLD_4B, 2565.882, -1322.392, 42.5)
Object.SetHeading(226@, 170.0)
227@ = Object.Create(#DYN_SCAFFOLD_4B, 2565.882, -1322.392, 44.7)
Object.SetHeading(227@, 170.0)
305@ = 1
187@ = Car.Create(596, 2520.49, -1485.04, 22.84)
Car.SetPetrolTankWeakpoint(187@, False)
Car.SetHeading(187@, 1.33)
Car.SetHealth(187@, 750)
Car.SetOnlyDamagedByPlayer(187@, True)
196@ = Char.CreateInsideCar(187@, PedType.Mission1, 280)
Char.SetDecisionMaker(196@, 55@)
Char.SetHealth(196@, 100)
Char.SetOnlyDamagedByPlayer(196@, True)
197@ = Char.CreateAsPassenger(187@, PedType.Mission1, 280, 0)
Char.SetDecisionMaker(197@, 55@)
Char.SetHealth(197@, 100)
Char.SetOnlyDamagedByPlayer(197@, True)
Char.GiveWeapon(197@, WeaponType.Mp5, 9999)
Char.SetSuffersCriticalHits(197@, False)
Car.SetIdle(187@)
188@ = Car.Create(596, 2532.98, -1502.372, 23.67)
Car.SetPetrolTankWeakpoint(188@, False)
Car.SetHeading(188@, 266.9)
Car.SetHealth(188@, 600)
Car.SetOnlyDamagedByPlayer(188@, True)
198@ = Char.CreateInsideCar(188@, PedType.Mission1, 280)
Char.SetDecisionMaker(198@, 55@)
Char.SetSuffersCriticalHits(198@, False)
Char.SetHealth(198@, 100)
Char.SetOnlyDamagedByPlayer(198@, True)
199@ = Char.CreateAsPassenger(188@, PedType.Mission1, 280, 0)
Char.SetDecisionMaker(199@, 55@)
Char.SetHealth(199@, 100)
Char.SetOnlyDamagedByPlayer(199@, True)
Char.GiveWeapon(199@, WeaponType.Mp5, 9999)
Char.SetSuffersCriticalHits(199@, False)
Car.SetIdle(188@)
193@ = Car.Create(596, 2510.967, -1448.138, 28.398)
Car.SetPetrolTankWeakpoint(193@, False)
Car.SetHeading(193@, 72.49)
Car.SetHealth(193@, 325)
Car.SetOnlyDamagedByPlayer(193@, True)
201@ = Char.CreateInsideCar(193@, PedType.Mission1, 280)
Char.SetDecisionMaker(201@, 55@)
Char.SetSuffersCriticalHits(201@, False)
Char.SetOnlyDamagedByPlayer(201@, True)
202@ = Char.CreateAsPassenger(193@, PedType.Mission1, 280, 0)
Char.SetDecisionMaker(202@, 55@)
Char.SetOnlyDamagedByPlayer(202@, True)
Char.GiveWeapon(202@, WeaponType.Mp5, 9999)
Char.SetSuffersCriticalHits(202@, False)
Car.SetIdle(193@)
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_47207
if 
  not Car.IsDead(186@)
goto_if_false @DRUGS4_47207
if 
  not Car.IsDead(213@)
goto_if_false @DRUGS4_47207
if 
  not Car.IsDead(214@)
goto_if_false @DRUGS4_47207
Car.FreezePosition($sweet_car, False)
Car.StartPlayback($sweet_car, 331)
Car.StartPlayback(186@, 339)
Car.StartPlayback(213@, 371)
Car.StartPlayback(214@, 372)
Car.SwitchSiren(214@, True)
308@ = 2
285@ = Blip.AddForCar(186@)
Blip.ChangeDisplay(285@, BlipDisplay.BlipOnly)
297@ = 1
Car.SwitchSiren(186@, True)
TIMERA = 0

:DRUGS4_47207
295@ = 3

:DRUGS4_47214
if 
  295@ == 3
goto_if_false @DRUGS4_47329
if 
  TIMERA > 1100
goto_if_false @DRUGS4_47329
if 
  Object.DoesExist(230@)
goto_if_false @DRUGS4_47302
Object.PlayAnim(230@, "DONUTDROP", "MD_CHASE", 4.0, False, True)

:DRUGS4_47302
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('FIN1_LE', 2250, 1)
295@ = 4

:DRUGS4_47329
if 
  295@ == 4
goto_if_false @DRUGS4_47506
if 
  TIMERA > 3800
goto_if_false @DRUGS4_47506
if 
  not Car.IsDead(212@)
goto_if_false @DRUGS4_47506
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('FIN1_LF', 2000, 1)
Car.GotoCoordinates(212@, 2604.02, -1256.38, 48.84)
Car.SetCruiseSpeed(212@, 25.0)
Car.SetDrivingStyle(212@, DrivingMode.AvoidCars)
if 
  not Car.IsDead(212@)
goto_if_false @DRUGS4_47469
Car.ForceLights(212@, CarLights.ForceOn)
Car.SwitchSiren(212@, True)

:DRUGS4_47469
if 
  not Car.IsDead(213@)
goto_if_false @DRUGS4_47499
Car.ForceLights(213@, CarLights.ForceOn)
Car.SwitchSiren(213@, True)

:DRUGS4_47499
295@ = 5

:DRUGS4_47506
if 
  295@ == 5
goto_if_false @DRUGS4_47611
if 
  TIMERA > 4500
goto_if_false @DRUGS4_47611
Camera.SetFixedPosition(2569.743, -1287.646, 46.8949, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2569.825, -1286.652, 46.8238, SwitchType.JumpCut)
Char.SetHeading($scplayer, 180.0)
295@ = 6

:DRUGS4_47611
if 
  295@ == 6
goto_if_false @DRUGS4_47912
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_47912
if or
  Car.Locate2D($sweet_car, 2569.743, -1287.646, 1.2, 1.2, False)
  TIMERB > 50800
goto_if_false @DRUGS4_47912
Car.Delete(212@)
Char.Delete(216@)
Object.Delete(230@)
Char.Delete($big_smoke)
Char.Delete($ryder)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_47789
Char.AttachToCar($scplayer, $sweet_car, 0.0, -0.5, 0.8, 2, 360.0, WeaponType.Ak47)
Player.SetHeadingForAttached($player1, 75.0, 75.0)

:DRUGS4_47789
Camera.Restore
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Car.SetProofs($sweet_car, False, True, True, True, True)
Char.SetProofs($scplayer, False, True, True, False, False)
Char.SetProofs($scplayer, True, True, True, True, True)
if 
  not Char.IsDead(217@)
goto_if_false @DRUGS4_47870
Char.SetCanBeKnockedOffBike(217@, 3)

:DRUGS4_47870
328@ = 3
327@ = 0
178@ = 0
179@ = 0
296@ = 1
295@ = 7

:DRUGS4_47912
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_49998
if 
  295@ > 2
goto_if_false @DRUGS4_49998
if 
  308@ == 2
goto_if_false @DRUGS4_48087
if 
  not Char.IsDead(218@)
goto_if_false @DRUGS4_48087
if 
  Char.IsPlayingAnim(218@, "MD_BIKE_JMP_F")
goto_if_false @DRUGS4_48087
228@ = Char.GetAnimCurrentTime(218@, "MD_BIKE_JMP_F")
if 
  228@ > 0.0
goto_if_false @DRUGS4_48087
Char.SetAnimSpeed(218@, "MD_BIKE_JMP_F", 0.0)
308@ = 3

:DRUGS4_48087
if 
  308@ == 3
goto_if_false @DRUGS4_48224
if 
  TIMERA > 12600
goto_if_false @DRUGS4_48224
if 
  not Char.IsDead(218@)
goto_if_false @DRUGS4_48224
Task.PlayAnimNonInterruptable(218@, "MD_BIKE_JMP_F", "MD_CHASE", 1000.0, False, False, False, True, -1)
Char.SetAnimSpeed(218@, "MD_BIKE_JMP_F", 1.0)
327@ = 1
308@ = 4

:DRUGS4_48224
if 
  308@ == 4
goto_if_false @DRUGS4_48618
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_48618
if 
  not Char.IsDead(218@)
goto_if_false @DRUGS4_48618
if 
  Char.IsPlayingAnim(218@, "MD_BIKE_JMP_F")
goto_if_false @DRUGS4_48618
228@ = Char.GetAnimCurrentTime(218@, "MD_BIKE_JMP_F")
if 
  228@ == 1.0
goto_if_false @DRUGS4_48618
if 
  309@ == 1
goto_if_false @DRUGS4_48430
Task.PlayAnim(218@, "MD_BIKE_LND_DIE_F", "MD_CHASE", 1000.0, False, False, False, True, -1)
308@ = 100
goto @DRUGS4_48489

:DRUGS4_48430
Task.PlayAnimNonInterruptable(218@, "MD_BIKE_LND_F", "MD_CHASE", 1000.0, False, False, False, True, -1)
TIMERA = 0
308@ = 5

:DRUGS4_48489
wait 0
if 
  not Char.IsDead(218@)
goto_if_false @DRUGS4_48562
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_48562
Char.DetachFromCar(218@)
Char.AttachToCar(218@, $sweet_car, 0.0, 3.0, 0.3, 2, 360.0, WeaponType.Unarmed)

:DRUGS4_48562
if 
  not Car.IsDead(214@)
goto_if_false @DRUGS4_48618
Car.StopPlayback(214@)
Car.SetRotationVelocity(214@, -3.0, -2.0, 0.2003)
Car.MarkAsNoLongerNeeded(214@)
Car.MarkAsNoLongerNeeded(213@)
Char.MarkAsNoLongerNeeded(217@)

:DRUGS4_48618
if 
  308@ == 5
goto_if_false @DRUGS4_48797
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_48797
if 
  not Char.IsDead(218@)
goto_if_false @DRUGS4_48797
if 
  Char.IsPlayingAnim(218@, "MD_BIKE_LND_F")
goto_if_false @DRUGS4_48797
228@ = Char.GetAnimCurrentTime(218@, "MD_BIKE_LND_F")
if 
  228@ == 1.0
goto_if_false @DRUGS4_48797
Task.PlayAnimNonInterruptable(218@, "MD_BIKE_PUNCH_F", "MD_CHASE", 8.0, True, False, False, False, -1)
308@ = 6

:DRUGS4_48797
if 
  308@ > 0
goto_if_false @DRUGS4_48881
if 
  5 > 308@
goto_if_false @DRUGS4_48881
if 
  not Car.IsDead(214@)
goto_if_false @DRUGS4_48881
if 
  not Char.IsDead(218@)
goto_if_false @DRUGS4_48881
221@ = Car.GetHeading(214@)
Char.SetHeading(218@, 221@)

:DRUGS4_48881
if 
  308@ > 4
goto_if_false @DRUGS4_48949
if 
  101 > 308@
goto_if_false @DRUGS4_48949
if 
  not Char.IsDead(218@)
goto_if_false @DRUGS4_48949
221@ = Car.GetHeading($sweet_car)
Char.SetHeading(218@, 221@)

:DRUGS4_48949
if 
  not Char.IsDead(218@)
goto_if_false @DRUGS4_49104
if 
  Char.IsPlayingAnim(218@, "MD_BIKE_PUNCH_F")
goto_if_false @DRUGS4_49104
229@ = Char.GetAnimCurrentTime(218@, "MD_BIKE_PUNCH_F")
if 
  229@ > 0.2
goto_if_false @DRUGS4_49097
if 
  308@ == 6
goto_if_false @DRUGS4_49090
Camera.DoBump(-2.2, 1.7)
Char.Damage($scplayer, 10, True)
308@ = 7

:DRUGS4_49090
goto @DRUGS4_49104

:DRUGS4_49097
308@ = 6

:DRUGS4_49104
if 
  not Char.IsDead(218@)
goto_if_false @DRUGS4_49169
232@ = Char.GetHealth(218@)
if 
  901 > 232@
goto_if_false @DRUGS4_49169
Char.SetProofs(218@, True, True, True, True, True)
309@ = 1

:DRUGS4_49169
if 
  308@ == 100
goto_if_false @DRUGS4_49390
if 
  Char.IsPlayingAnim(218@, "MD_BIKE_LND_DIE_F")
goto_if_false @DRUGS4_49390
228@ = Char.GetAnimCurrentTime(218@, "MD_BIKE_LND_DIE_F")
if 
  228@ == 1.0
goto_if_false @DRUGS4_49390
Char.DetachFromCar(218@)
$player_x, $player_y, $player_z = Car.GetCoordinates($sweet_car)
$player_x += 1.433
$player_y += 1.763
$player_z += 0.0
Char.SetCoordinates(218@, $player_x, $player_y, $player_z)
Task.PlayAnimNonInterruptable(218@, "MD_BIKE_LND_ROLL_F", "MD_CHASE", 1000.0, False, False, False, True, -1)
308@ = 101

:DRUGS4_49390
if 
  308@ == 101
goto_if_false @DRUGS4_49505
if 
  Char.IsPlayingAnim(218@, "MD_BIKE_LND_ROLL_F")
goto_if_false @DRUGS4_49505
228@ = Char.GetAnimCurrentTime(218@, "MD_BIKE_LND_ROLL_F")
if 
  228@ == 1.0
goto_if_false @DRUGS4_49505
Char.RemoveElegantly(218@)
308@ = 102

:DRUGS4_49505
if 
  308@ > 4
goto_if_false @DRUGS4_49575
if 
  8 > 308@
goto_if_false @DRUGS4_49575
if or
  309@ == 1
  TIMERA > 15000
goto_if_false @DRUGS4_49575
308@ = 200

:DRUGS4_49575
if 
  308@ == 200
goto_if_false @DRUGS4_49664
if 
  not Char.IsDead(218@)
goto_if_false @DRUGS4_49664
Task.PlayAnimNonInterruptable(218@, "MD_BIKE_SHOT_F", "MD_CHASE", 1000.0, False, False, False, True, -1)
308@ = 201

:DRUGS4_49664
if 
  308@ == 201
goto_if_false @DRUGS4_49881
if 
  Char.IsPlayingAnim(218@, "MD_BIKE_SHOT_F")
goto_if_false @DRUGS4_49881
228@ = Char.GetAnimCurrentTime(218@, "MD_BIKE_SHOT_F")
if 
  228@ == 1.0
goto_if_false @DRUGS4_49881
Char.DetachFromCar(218@)
$player_x, $player_y, $player_z = Car.GetCoordinates($sweet_car)
$player_x += 1.433
$player_y += 1.763
$player_z += 0.0
Char.SetCoordinates(218@, $player_x, $player_y, $player_z)
Task.PlayAnimNonInterruptable(218@, "MD_BIKE_LND_ROLL_F", "MD_CHASE", 1000.0, False, False, False, True, -1)
308@ = 202

:DRUGS4_49881
if 
  308@ == 201
goto_if_false @DRUGS4_49998
if 
  Char.IsPlayingAnim(218@, "MD_BIKE_LND_ROLL_F")
goto_if_false @DRUGS4_49998
228@ = Char.GetAnimCurrentTime(218@, "MD_BIKE_LND_ROLL_F")
if 
  228@ == 1.0
goto_if_false @DRUGS4_49998
Char.Delete(218@)
308@ = 202

:DRUGS4_49998
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_61915
if 
  295@ == 7
goto_if_false @DRUGS4_61915
gosub @DRUGS4_66552
if 
  178@ == 0
goto_if_false @DRUGS4_50104
if 
  179@ == 0
goto_if_false @DRUGS4_50104
set_lvar_int_to_constant 106@ = 8315
set_lvar_text_label 107@s = 'FIN1_LA'
gosub @DRUGS4_66510

:DRUGS4_50104
if 
  328@ == 0
goto_if_false @DRUGS4_50185
if 
  TIMERB > 53000
goto_if_false @DRUGS4_50185
if 
  not Char.IsDead(217@)
goto_if_false @DRUGS4_50178
Task.Die(217@)
328@ = 1
goto @DRUGS4_50185

:DRUGS4_50178
328@ = 1

:DRUGS4_50185
if 
  328@ == 3
goto_if_false @DRUGS4_50266
if 
  TIMERB > 58900
goto_if_false @DRUGS4_50266
if 
  not Car.IsDead(186@)
goto_if_false @DRUGS4_50259
Car.Explode(186@)
328@ = 4
goto @DRUGS4_50266

:DRUGS4_50259
328@ = 4

:DRUGS4_50266
if 
  328@ == 4
goto_if_false @DRUGS4_50347
if 
  TIMERB > 85200
goto_if_false @DRUGS4_50347
if 
  not Car.IsDead(187@)
goto_if_false @DRUGS4_50340
Car.Explode(187@)
328@ = 5
goto @DRUGS4_50347

:DRUGS4_50340
328@ = 5

:DRUGS4_50347
if 
  327@ == 1
goto_if_false @DRUGS4_50430
if 
  178@ == 1
goto_if_false @DRUGS4_50430
if 
  179@ == 0
goto_if_false @DRUGS4_50430
set_lvar_int_to_constant 106@ = 8335
set_lvar_text_label 107@s = 'FIN1_BK'
gosub @DRUGS4_66510

:DRUGS4_50430
if 
  178@ == 2
goto_if_false @DRUGS4_50495
if 
  179@ == 0
goto_if_false @DRUGS4_50495
set_lvar_int_to_constant 106@ = 8221
set_lvar_text_label 107@s = 'FIN1_KK'
gosub @DRUGS4_66510

:DRUGS4_50495
if 
  178@ == 3
goto_if_false @DRUGS4_50560
if 
  179@ == 0
goto_if_false @DRUGS4_50560
set_lvar_int_to_constant 106@ = 8314
set_lvar_text_label 107@s = 'FIN1_KR'
gosub @DRUGS4_66510

:DRUGS4_50560
if 
  327@ == 1
goto_if_false @DRUGS4_50623
if 
  Char.LocateAnyMeans2D($scplayer, 2545.15, -1460.3, 15.0, 15.0, False)
goto_if_false @DRUGS4_50623
327@ = 2

:DRUGS4_50623
if 
  327@ == 2
goto_if_false @DRUGS4_50706
if 
  178@ == 4
goto_if_false @DRUGS4_50706
if 
  179@ == 0
goto_if_false @DRUGS4_50706
set_lvar_int_to_constant 106@ = 8300
set_lvar_text_label 107@s = 'FIN1_ZB'
gosub @DRUGS4_66510

:DRUGS4_50706
if 
  178@ == 5
goto_if_false @DRUGS4_50771
if 
  179@ == 0
goto_if_false @DRUGS4_50771
set_lvar_int_to_constant 106@ = 8289
set_lvar_text_label 107@s = 'FIN1_LL'
gosub @DRUGS4_66510

:DRUGS4_50771
if 
  178@ == 6
goto_if_false @DRUGS4_50836
if 
  179@ == 0
goto_if_false @DRUGS4_50836
set_lvar_int_to_constant 106@ = 8282
set_lvar_text_label 107@s = 'FIN1_LI'
gosub @DRUGS4_66510

:DRUGS4_50836
if 
  327@ == 2
goto_if_false @DRUGS4_50899
if 
  Char.LocateAnyMeans2D($scplayer, 2451.92, -1461.5, 12.0, 12.0, False)
goto_if_false @DRUGS4_50899
327@ = 4

:DRUGS4_50899
if 
  327@ == 4
goto_if_false @DRUGS4_50982
if 
  178@ == 7
goto_if_false @DRUGS4_50982
if 
  179@ == 0
goto_if_false @DRUGS4_50982
set_lvar_int_to_constant 106@ = 8224
set_lvar_text_label 107@s = 'FIN1_LP'
gosub @DRUGS4_66510

:DRUGS4_50982
if 
  178@ == 8
goto_if_false @DRUGS4_51047
if 
  179@ == 0
goto_if_false @DRUGS4_51047
set_lvar_int_to_constant 106@ = 8230
set_lvar_text_label 107@s = 'FIN1_MK'
gosub @DRUGS4_66510

:DRUGS4_51047
if 
  178@ == 9
goto_if_false @DRUGS4_51112
if 
  179@ == 0
goto_if_false @DRUGS4_51112
set_lvar_int_to_constant 106@ = 8288
set_lvar_text_label 107@s = 'FIN1_LJ'
gosub @DRUGS4_66510

:DRUGS4_51112
if 
  327@ == 4
goto_if_false @DRUGS4_51175
if 
  Char.LocateAnyMeans2D($scplayer, 2344.98, -1382.22, 18.0, 18.0, False)
goto_if_false @DRUGS4_51175
327@ = 5

:DRUGS4_51175
if 
  327@ == 5
goto_if_false @DRUGS4_51258
if 
  178@ == 10
goto_if_false @DRUGS4_51258
if 
  179@ == 0
goto_if_false @DRUGS4_51258
set_lvar_int_to_constant 106@ = 8250
set_lvar_text_label 107@s = 'FIN1_KS'
gosub @DRUGS4_66510

:DRUGS4_51258
if 
  327@ == 5
goto_if_false @DRUGS4_51321
if 
  Char.LocateAnyMeans2D($scplayer, 2305.51, -1370.01, 18.0, 18.0, False)
goto_if_false @DRUGS4_51321
327@ = 6

:DRUGS4_51321
if 
  178@ == 11
goto_if_false @DRUGS4_51386
if 
  179@ == 0
goto_if_false @DRUGS4_51386
set_lvar_int_to_constant 106@ = 8225
set_lvar_text_label 107@s = 'FIN1_LQ'
gosub @DRUGS4_66510

:DRUGS4_51386
if 
  178@ == 12
goto_if_false @DRUGS4_51451
if 
  179@ == 0
goto_if_false @DRUGS4_51451
set_lvar_int_to_constant 106@ = 8290
set_lvar_text_label 107@s = 'FIN1_LT'
gosub @DRUGS4_66510

:DRUGS4_51451
if 
  178@ == 13
goto_if_false @DRUGS4_51516
if 
  179@ == 0
goto_if_false @DRUGS4_51516
set_lvar_int_to_constant 106@ = 8292
set_lvar_text_label 107@s = 'FIN1_LV'
gosub @DRUGS4_66510

:DRUGS4_51516
if 
  327@ == 7
goto_if_false @DRUGS4_51599
if 
  178@ == 14
goto_if_false @DRUGS4_51599
if 
  179@ == 0
goto_if_false @DRUGS4_51599
set_lvar_int_to_constant 106@ = 8336
set_lvar_text_label 107@s = 'FIN1_BL'
gosub @DRUGS4_66510

:DRUGS4_51599
if 
  178@ == 15
goto_if_false @DRUGS4_51664
if 
  179@ == 0
goto_if_false @DRUGS4_51664
set_lvar_int_to_constant 106@ = 8254
set_lvar_text_label 107@s = 'FIN1_LW'
gosub @DRUGS4_66510

:DRUGS4_51664
if 
  178@ == 16
goto_if_false @DRUGS4_51729
if 
  179@ == 0
goto_if_false @DRUGS4_51729
set_lvar_int_to_constant 106@ = 8255
set_lvar_text_label 107@s = 'FIN1_LX'
gosub @DRUGS4_66510

:DRUGS4_51729
if 
  178@ == 17
goto_if_false @DRUGS4_51794
if 
  179@ == 0
goto_if_false @DRUGS4_51794
set_lvar_int_to_constant 106@ = 8299
set_lvar_text_label 107@s = 'FIN1_ZA'
gosub @DRUGS4_66510

:DRUGS4_51794
if 
  178@ == 18
goto_if_false @DRUGS4_51859
if 
  179@ == 0
goto_if_false @DRUGS4_51859
set_lvar_int_to_constant 106@ = 8301
set_lvar_text_label 107@s = 'FIN1_ZC'
gosub @DRUGS4_66510

:DRUGS4_51859
if 
  327@ == 8
goto_if_false @DRUGS4_51942
if 
  179@ == 0
goto_if_false @DRUGS4_51942
if 
  178@ == 20
goto_if_false @DRUGS4_51942
set_lvar_int_to_constant 106@ = 8293
set_lvar_text_label 107@s = 'FIN1_MA'
gosub @DRUGS4_66510

:DRUGS4_51942
if 
  179@ == 0
goto_if_false @DRUGS4_52007
if 
  178@ == 21
goto_if_false @DRUGS4_52007
set_lvar_int_to_constant 106@ = 8228
set_lvar_text_label 107@s = 'FIN1_MB'
gosub @DRUGS4_66510

:DRUGS4_52007
if 
  179@ == 0
goto_if_false @DRUGS4_52072
if 
  178@ == 22
goto_if_false @DRUGS4_52072
set_lvar_int_to_constant 106@ = 8294
set_lvar_text_label 107@s = 'FIN1_MD'
gosub @DRUGS4_66510

:DRUGS4_52072
if 
  179@ == 0
goto_if_false @DRUGS4_52137
if 
  178@ == 23
goto_if_false @DRUGS4_52137
set_lvar_int_to_constant 106@ = 8283
set_lvar_text_label 107@s = 'FIN1_ME'
gosub @DRUGS4_66510

:DRUGS4_52137
if 
  179@ == 0
goto_if_false @DRUGS4_52202
if 
  178@ == 24
goto_if_false @DRUGS4_52202
set_lvar_int_to_constant 106@ = 8200
set_lvar_text_label 107@s = 'FIN1_EA'
gosub @DRUGS4_66510

:DRUGS4_52202
if 
  179@ == 0
goto_if_false @DRUGS4_52267
if 
  178@ == 25
goto_if_false @DRUGS4_52267
set_lvar_int_to_constant 106@ = 8284
set_lvar_text_label 107@s = 'FIN1_MH'
gosub @DRUGS4_66510

:DRUGS4_52267
if 
  179@ == 0
goto_if_false @DRUGS4_52332
if 
  178@ == 26
goto_if_false @DRUGS4_52332
set_lvar_int_to_constant 106@ = 8295
set_lvar_text_label 107@s = 'FIN1_MI'
gosub @DRUGS4_66510

:DRUGS4_52332
if 
  179@ == 0
goto_if_false @DRUGS4_52397
if 
  178@ == 27
goto_if_false @DRUGS4_52397
set_lvar_int_to_constant 106@ = 8260
set_lvar_text_label 107@s = 'FIN1_MT'
gosub @DRUGS4_66510

:DRUGS4_52397
if 
  179@ == 0
goto_if_false @DRUGS4_52462
if 
  178@ == 28
goto_if_false @DRUGS4_52462
set_lvar_int_to_constant 106@ = 8231
set_lvar_text_label 107@s = 'FIN1_ML'
gosub @DRUGS4_66510

:DRUGS4_52462
if 
  179@ == 0
goto_if_false @DRUGS4_52527
if 
  178@ == 29
goto_if_false @DRUGS4_52527
set_lvar_int_to_constant 106@ = 8285
set_lvar_text_label 107@s = 'FIN1_MR'
gosub @DRUGS4_66510

:DRUGS4_52527
if 
  179@ == 0
goto_if_false @DRUGS4_52592
if 
  178@ == 30
goto_if_false @DRUGS4_52592
set_lvar_int_to_constant 106@ = 8297
set_lvar_text_label 107@s = 'FIN1_MS'
gosub @DRUGS4_66510

:DRUGS4_52592
if 
  305@ == 1
goto_if_false @DRUGS4_52717
if 
  not Car.IsDead(186@)
goto_if_false @DRUGS4_52717
if 
  Car.Locate2D(186@, 2566.12, -1322.35, 1.5, 1.5, False)
goto_if_false @DRUGS4_52717
if 
  Object.DoesExist(223@)
goto_if_false @DRUGS4_52687
Object.Break(223@, 1)

:DRUGS4_52687
if 
  Object.DoesExist(224@)
goto_if_false @DRUGS4_52710
Object.Break(224@, 1)

:DRUGS4_52710
305@ = 2

:DRUGS4_52717
if 
  296@ == 1
goto_if_false @DRUGS4_53222
if 
  Car.Locate2D($sweet_car, 2564.68, -1442.47, 15.0, 15.0, False)
goto_if_false @DRUGS4_53222
if 
  not Car.IsDead(187@)
goto_if_false @DRUGS4_52833
Car.StartPlayback(187@, 373)
286@ = Blip.AddForCar(187@)
Blip.ChangeDisplay(286@, BlipDisplay.BlipOnly)
Car.SwitchSiren(187@, True)
298@ = 1
314@ = 1

:DRUGS4_52833
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS4_52893
Car.StartPlayback(188@, 374)
287@ = Blip.AddForCar(188@)
Blip.ChangeDisplay(287@, BlipDisplay.BlipOnly)
Car.SwitchSiren(188@, True)
299@ = 1
315@ = 1

:DRUGS4_52893
if 
  not Car.IsDead(193@)
goto_if_false @DRUGS4_52953
Car.StartPlayback(193@, 380)
292@ = Blip.AddForCar(193@)
Blip.ChangeDisplay(292@, BlipDisplay.BlipOnly)
Car.SwitchSiren(193@, True)
304@ = 1
320@ = 1

:DRUGS4_52953
if 
  not Char.IsDead(197@)
goto_if_false @DRUGS4_53005
Task.DriveBy(197@, $scplayer, -1, 0.0, 0.0, 0.0, 500.0, DriveByType.Ai, True, 40)

:DRUGS4_53005
if 
  not Char.IsDead(199@)
goto_if_false @DRUGS4_53118
if 
  293@ > 1
goto_if_false @DRUGS4_53082
Task.DriveBy(199@, -1, $sweet_car, 0.0, 0.0, 0.0, 500.0, DriveByType.Ai, True, 30)
goto @DRUGS4_53118

:DRUGS4_53082
Task.DriveBy(199@, -1, $sweet_car, 0.0, 0.0, 0.0, 500.0, DriveByType.Ai, True, 75)

:DRUGS4_53118
if 
  not Char.IsDead(202@)
goto_if_false @DRUGS4_53170
Task.DriveBy(202@, -1, $sweet_car, 0.0, 0.0, 0.0, 500.0, DriveByType.Ai, True, 40)

:DRUGS4_53170
Particle.Play(237@)
Object.Delete(222@)
Object.Delete(223@)
Object.Delete(224@)
Object.Delete(225@)
Object.Delete(226@)
Object.Delete(227@)
Streaming.MarkModelAsNoLongerNeeded(#DYN_SCAFFOLD_4B)
Streaming.MarkModelAsNoLongerNeeded(#MUNCH_DONUT)
296@ = 2

:DRUGS4_53222
if 
  296@ == 2
goto_if_false @DRUGS4_53829
if 
  Car.Locate2D($sweet_car, 2344.12, -1384.48, 12.0, 12.0, False)
goto_if_false @DRUGS4_53829
215@ = Car.Create(523, 2254.042, -1308.15, 23.02)
Car.SetPetrolTankWeakpoint(215@, False)
Car.SetHeading(215@, 261.999)
Car.ForceLights(215@, CarLights.ForceOn)
Car.SwitchSiren(215@, True)
310@ = 0
219@ = Char.Create(PedType.Mission1, 284, 0.0, 0.0, 0.0)
Task.PlayAnimNonInterruptable(219@, "MD_BIKE_JMP_BL", "MD_CHASE", 4.0, False, False, False, True, -1)
Char.AttachToCar(219@, 215@, 0.0, -0.401, 0.47, 0, 360.0, WeaponType.Unarmed)
Char.SetHealth(219@, 1000)
307@ = 1
Char.SetDecisionMaker(219@, 55@)
Char.SetSuffersCriticalHits(219@, False)
Char.SetOnlyDamagedByPlayer(219@, True)
Car.SetOnlyDamagedByPlayer(215@, True)
Car.SetProofs(215@, True, True, True, True, True)
190@ = Car.Create(596, 2222.98, -1303.52, 22.654)
Car.SetPetrolTankWeakpoint(190@, False)
Car.SetHeading(190@, 269.409)
Car.SetHealth(190@, 850)
Car.SetOnlyDamagedByPlayer(190@, True)
203@ = Char.CreateInsideCar(190@, PedType.Mission1, 280)
Char.SetDecisionMaker(203@, 55@)
Char.SetSuffersCriticalHits(203@, False)
Char.SetHealth(203@, 100)
Char.SetOnlyDamagedByPlayer(203@, True)
204@ = Char.CreateAsPassenger(190@, PedType.Mission1, 280, 0)
Char.SetDecisionMaker(204@, 55@)
Char.SetHealth(204@, 100)
Char.SetOnlyDamagedByPlayer(204@, True)
Char.GiveWeapon(204@, WeaponType.Mp5, 9999)
Char.SetSuffersCriticalHits(204@, False)
Car.SetIdle(190@)
191@ = Car.Create(596, 2250.63, -1380.995, 22.65)
Car.SetPetrolTankWeakpoint(191@, False)
Car.SetHeading(191@, 268.1)
Car.SetHealth(191@, 800)
Car.SetProofs(191@, False, False, True, False, False)
Car.SetOnlyDamagedByPlayer(191@, True)
206@ = Char.CreateInsideCar(191@, PedType.Mission1, 280)
Char.SetDecisionMaker(206@, 55@)
Char.SetSuffersCriticalHits(206@, False)
Char.SetOnlyDamagedByPlayer(206@, True)
207@ = Char.CreateAsPassenger(191@, PedType.Mission1, 280, 0)
Char.SetDecisionMaker(207@, 55@)
Char.SetHealth(207@, 200)
Char.SetOnlyDamagedByPlayer(207@, True)
Char.GiveWeapon(207@, WeaponType.Mp5, 9999)
Char.SetSuffersCriticalHits(207@, False)
Car.SetIdle(191@)
296@ = 3

:DRUGS4_53829
if 
  296@ == 3
goto_if_false @DRUGS4_54009
if 
  Car.Locate2D($sweet_car, 2304.185, -1364.711, 20.0, 20.0, False)
goto_if_false @DRUGS4_54009
if 
  not Car.IsDead(191@)
goto_if_false @DRUGS4_53945
Car.StartPlayback(191@, 377)
290@ = Blip.AddForCar(191@)
Blip.ChangeDisplay(290@, BlipDisplay.BlipOnly)
Car.SwitchSiren(191@, True)
302@ = 1
318@ = 1

:DRUGS4_53945
if 
  not Char.IsDead(207@)
goto_if_false @DRUGS4_53997
Task.DriveBy(207@, -1, $sweet_car, 0.0, 0.0, 0.0, 500.0, DriveByType.Ai, True, 30)

:DRUGS4_53997
Particle.Kill(237@)
296@ = 4

:DRUGS4_54009
if 
  296@ == 4
goto_if_false @DRUGS4_54243
if 
  Car.Locate2D($sweet_car, 2289.817, -1319.51, 25.0, 25.0, False)
goto_if_false @DRUGS4_54243
if 
  not Car.IsDead(215@)
goto_if_false @DRUGS4_54119
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_54119
Car.StartPlayback(215@, 375)
TIMERA = 0
307@ = 3

:DRUGS4_54119
if 
  not Car.IsDead(190@)
goto_if_false @DRUGS4_54179
Car.StartPlayback(190@, 376)
289@ = Blip.AddForCar(190@)
Blip.ChangeDisplay(289@, BlipDisplay.BlipOnly)
Car.SwitchSiren(190@, True)
301@ = 1
317@ = 1

:DRUGS4_54179
if 
  not Char.IsDead(204@)
goto_if_false @DRUGS4_54231
Task.DriveBy(204@, -1, $sweet_car, 0.0, 0.0, 0.0, 500.0, DriveByType.Ai, True, 40)

:DRUGS4_54231
Char.Delete(218@)
296@ = 5

:DRUGS4_54243
if 
  296@ == 5
goto_if_false @DRUGS4_54839
if 
  Car.Locate2D($sweet_car, 2221.81, -1260.26, 5.5, 5.5, False)
goto_if_false @DRUGS4_54839
234@ = Char.Create(PedType.Mission1, 280, 2127.116, -1381.61, 23.88)
Char.SetHeading(234@, 84.93)
Char.SetDecisionMaker(234@, 55@)
Char.SetProofs(234@, True, True, True, True, True)
Char.SetOnlyDamagedByPlayer(234@, True)
Char.GiveWeapon(234@, WeaponType.Mp5, 9999)
Char.SetSuffersCriticalHits(234@, False)
Char.SetAccuracy(234@, 5)
set_lvar_int_to_lvar_int 118@ = 234@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
233@ = Char.Create(PedType.Mission1, 284, 2127.09, -1382.81, 23.32)
Char.SetDecisionMaker(233@, 55@)
Char.SetProofs(233@, True, True, True, True, True)
Char.SetOnlyDamagedByPlayer(233@, True)
Char.GiveWeapon(233@, WeaponType.Mp5, 9999)
Char.SetSuffersCriticalHits(233@, False)
Char.SetAccuracy(233@, 5)
set_lvar_int_to_lvar_int 118@ = 233@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66965
235@ = Car.Create(596, 2129.865, -1386.89, 22.65)
Car.SetHeading(235@, 7.63)
Car.SetIdle(235@)
Car.SetIdle(235@)
TIMERB = 0
if 
  311@ == 0
goto_if_false @DRUGS4_54634
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_54634
Heli.GotoCoords(40@, 2168.0, -1508.0, 33.29, 30.0, 30.0)
311@ = 1

:DRUGS4_54634
249@ = Object.CreateNoOffset(#WD_FENCE_ANIM, 2167.763, -1470.354, 25.328)
Object.SetHeading(249@, 90.0)
250@ = Object.CreateNoOffset(#WD_FENCE_ANIM, 2167.763, -1465.688, 25.328)
Object.SetHeading(250@, 90.0)
251@ = Object.CreateNoOffset(#WD_FENCE_ANIM, 2167.763, -1461.021, 25.328)
Object.SetHeading(251@, 90.0)
261@ = Object.CreateNoOffset(#WD_FENCE_ANIM, 2174.328, -1470.354, 25.328)
Object.SetHeading(261@, 270.0)
262@ = Object.CreateNoOffset(#WD_FENCE_ANIM, 2174.328, -1465.688, 25.328)
Object.SetHeading(262@, 270.0)
263@ = Object.CreateNoOffset(#WD_FENCE_ANIM, 2174.328, -1461.021, 25.328)
Object.SetHeading(263@, 270.0)
296@ = 6

:DRUGS4_54839
if 
  296@ == 6
goto_if_false @DRUGS4_54926
if 
  Car.Locate2D($sweet_car, 2081.93, -1261.68, 6.0, 6.0, False)
goto_if_false @DRUGS4_54926
if 
  not Car.IsDead(191@)
goto_if_false @DRUGS4_54919
Car.SetHealth(191@, 249)

:DRUGS4_54919
296@ = 7

:DRUGS4_54926
if 
  296@ == 7
goto_if_false @DRUGS4_55016
if 
  TIMERB > 3000
goto_if_false @DRUGS4_55016
if 
  not Char.IsDead(234@)
goto_if_false @DRUGS4_55016
if 
  not Char.IsDead(233@)
goto_if_false @DRUGS4_55016
Char.FreezePosition(234@, True)
Char.FreezePosition(233@, True)
296@ = 8

:DRUGS4_55016
if 
  323@ == 0
goto_if_false @DRUGS4_55143
if 
  Char.LocateAnyMeans2D($scplayer, 2074.18, -1372.28, 7.0, 7.0, False)
goto_if_false @DRUGS4_55143
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 29002)
Player.SetHeadingForAttached($player1, 174.0, 8.0)
Car.Delete(215@)
Streaming.MarkModelAsNoLongerNeeded(523)
Pad.SetPlayerFireButton($player1, False)
327@ = 8
179@ = 0
178@ = 20
323@ = 1

:DRUGS4_55143
if 
  323@ == 1
goto_if_false @DRUGS4_55293
if 
  Player.IsAttachedHeadingAchieved($player1)
goto_if_false @DRUGS4_55293
Char.SetHeadingLimitForAttached($scplayer, 0, 60.0)
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_55220
Car.SetProofs($sweet_car, True, True, True, True, True)

:DRUGS4_55220
Char.SetProofs($scplayer, True, True, True, True, True)
Object.Delete($fourdragons_door)
$fourdragons_door = Object.CreateNoOffset(#MD_POSTER, 2167.82, -1518.193, 20.237)
Object.SetHeading($fourdragons_door, 0.0)
Object.SetCollisionDamageEffect($fourdragons_door, False)
Object.FreezePosition($fourdragons_door, True)
323@ = 2

:DRUGS4_55293
if 
  296@ == 8
goto_if_false @DRUGS4_55622
if 
  not Char.IsDead(234@)
goto_if_false @DRUGS4_55622
if 
  not Char.IsDead(233@)
goto_if_false @DRUGS4_55622
if or
  Char.IsTouchingVehicle(234@, $sweet_car)
  Char.IsTouchingVehicle(233@, $sweet_car)
goto_if_false @DRUGS4_55622
322@ = 1
321@ = 1
296@ = 9
Car.Delete(40@)
Char.MarkAsNoLongerNeeded(44@)
Searchlight.Delete(58@)
40@ = Car.Create(497, 2170.27, -1523.73, 24.76)
44@ = Char.CreateInsideCar(40@, PedType.Mission1, 280)
Heli.SetBladesFullSpeed(40@)
Car.StartPlayback(40@, 381)
TIMERA = 0
TIMERB = 0
Char.SetDecisionMaker(44@, 55@)
Char.SetSuffersCriticalHits(44@, False)
Char.SetCanBeShotInVehicle(44@, False)
Char.SetOnlyDamagedByPlayer(44@, True)
Car.SetOnlyDamagedByPlayer(40@, True)
Car.SetProofs(40@, True, True, True, True, True)
240@ = Particle.Create("BLOOD_HELI", 2170.74, -1445.63, 25.12, 1)
241@ = Particle.Create("BLOOD_HELI", 2170.92, -1450.5, 25.0, 1)
242@ = Particle.Create("BLOOD_HELI", 2171.11, -1447.04, 25.13, 1)

:DRUGS4_55622
if 
  296@ == 9
goto_if_false @DRUGS4_57659
if 
  324@ == 0
goto_if_false @DRUGS4_55762
if 
  TIMERA > 14099
goto_if_false @DRUGS4_55762
Object.PlayAnim(249@, "FEN_CHOPPA_R1", "MD_CHASE", 1000.0, False, True)
Object.PlayAnim(261@, "FEN_CHOPPA_L2", "MD_CHASE", 1000.0, False, True)
324@ = 1

:DRUGS4_55762
if 
  324@ == 1
goto_if_false @DRUGS4_55884
if 
  TIMERA > 14899
goto_if_false @DRUGS4_55884
Object.PlayAnim(250@, "FEN_CHOPPA_R2", "MD_CHASE", 1000.0, False, True)
Object.PlayAnim(262@, "FEN_CHOPPA_L3", "MD_CHASE", 1000.0, False, True)
324@ = 2

:DRUGS4_55884
if 
  324@ == 2
goto_if_false @DRUGS4_56006
if 
  TIMERA > 15532
goto_if_false @DRUGS4_56006
Object.PlayAnim(251@, "FEN_CHOPPA_R3", "MD_CHASE", 1000.0, False, True)
Object.PlayAnim(263@, "FEN_CHOPPA_L1", "MD_CHASE", 1000.0, False, True)
324@ = 3

:DRUGS4_56006
if 
  322@ == 1
goto_if_false @DRUGS4_56131
if 
  not Char.IsDead(234@)
goto_if_false @DRUGS4_56131
Char.FreezePosition(234@, False)
Char.AttachToCar(234@, $sweet_car, -0.5, 3.0, 0.3, 0, 360.0, WeaponType.Unarmed)
Task.PlayAnimNonInterruptable(234@, "CARHIT_TUMBLE", "MD_CHASE", 1000.0, False, False, False, True, -1)
322@ = 2

:DRUGS4_56131
if 
  322@ == 2
goto_if_false @DRUGS4_56331
if 
  not Char.IsDead(234@)
goto_if_false @DRUGS4_56331
if 
  Char.IsPlayingAnim(234@, "CARHIT_TUMBLE")
goto_if_false @DRUGS4_56331
228@ = Char.GetAnimCurrentTime(234@, "CARHIT_TUMBLE")
if 
  228@ > 0.7
goto_if_false @DRUGS4_56331
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_56331
Char.DetachFromCar(234@)
$player_x, $player_y, $player_z = Car.GetCoordinates($sweet_car)
$player_x += 0.0
$player_y += -1.763
$player_z += -0.05
Char.SetCoordinates(234@, $player_x, $player_y, $player_z)
Char.RemoveElegantly(234@)
322@ = 3

:DRUGS4_56331
if 
  not Char.IsDead(234@)
goto_if_false @DRUGS4_56363
239@ = Car.GetHeading($sweet_car)
Char.SetHeading(234@, 239@)

:DRUGS4_56363
if 
  321@ == 1
goto_if_false @DRUGS4_56488
if 
  not Char.IsDead(233@)
goto_if_false @DRUGS4_56488
Char.FreezePosition(233@, False)
Char.AttachToCar(233@, $sweet_car, 0.5, 3.0, 0.3, 0, 360.0, WeaponType.Unarmed)
Task.PlayAnimNonInterruptable(233@, "CARHIT_HANGON", "MD_CHASE", 1000.0, False, False, False, True, -1)
321@ = 2

:DRUGS4_56488
if 
  321@ == 2
goto_if_false @DRUGS4_56652
if 
  not Char.IsDead(233@)
goto_if_false @DRUGS4_56652
if 
  Char.IsPlayingAnim(233@, "CARHIT_HANGON")
goto_if_false @DRUGS4_56652
228@ = Char.GetAnimCurrentTime(233@, "CARHIT_HANGON")
if 
  228@ == 1.0
goto_if_false @DRUGS4_56652
Task.PlayAnimNonInterruptable(233@, "HANGON_STUN_LOOP", "MD_CHASE", 1000.0, True, False, False, False, -1)
321@ = 3

:DRUGS4_56652
if 
  not Char.IsDead(233@)
goto_if_false @DRUGS4_56684
238@ = Car.GetHeading($sweet_car)
Char.SetHeading(233@, 238@)

:DRUGS4_56684
if 
  325@ == 0
goto_if_false @DRUGS4_56772
if 
  TIMERB > 10499
goto_if_false @DRUGS4_56772
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_56772
if 
  Car.IsPlaybackGoingOn($sweet_car)
goto_if_false @DRUGS4_56772
Car.PausePlayback($sweet_car)
TIMERB = 0
325@ = 1

:DRUGS4_56772
if 
  325@ == 1
goto_if_false @DRUGS4_56912
if 
  TIMERB > 3000
goto_if_false @DRUGS4_56912
if 
  321@ == 3
goto_if_false @DRUGS4_56905
if 
  not Char.IsDead(233@)
goto_if_false @DRUGS4_56905
Task.PlayAnimNonInterruptable(233@, "HANGON_STUN_TURN", "MD_CHASE", 1000.0, False, False, False, True, -1)
TIMERB = 0
321@ = 4

:DRUGS4_56905
325@ = 2

:DRUGS4_56912
if 
  325@ == 2
goto_if_false @DRUGS4_57017
if 
  TIMERB > 2000
goto_if_false @DRUGS4_57017
if 
  Car.IsPlaybackGoingOn($sweet_car)
goto_if_false @DRUGS4_57017
Car.UnpausePlayback($sweet_car)
Car.Delete(235@)
Streaming.MarkModelAsNoLongerNeeded(596)
Streaming.MarkModelAsNoLongerNeeded(280)
Streaming.MarkModelAsNoLongerNeeded(284)
Streaming.MarkModelAsNoLongerNeeded(523)
Streaming.MarkModelAsNoLongerNeeded(497)
Streaming.MarkModelAsNoLongerNeeded(353)
Char.Delete(234@)
325@ = 3

:DRUGS4_57017
if 
  325@ == 3
goto_if_false @DRUGS4_57192
if 
  TIMERB > 4300
goto_if_false @DRUGS4_57192
Camera.DoBump(0.0, -1.0)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @DRUGS4_57085
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:DRUGS4_57085
Particle.PlayAndKill(240@)
243@ = Object.Create(#CHOPCOP_TORSO, 2170.35, -1445.99, 25.49)
Object.SetDynamic(243@, True)
244@ = Object.Create(#CHOPCOP_LEGR, 2170.5, -1447.65, 25.06)
Object.SetDynamic(244@, True)
Char.Delete(233@)
Object.Delete(249@)
Object.Delete(262@)
Object.Delete(263@)
Object.Delete(261@)
Object.Delete(262@)
Object.Delete(263@)
325@ = 4

:DRUGS4_57192
if 
  325@ == 4
goto_if_false @DRUGS4_57454
if 
  TIMERB > 4800
goto_if_false @DRUGS4_57454
327@ = 9
Particle.PlayAndKill(241@)
245@ = Object.Create(#CHOPCOP_LEGR, 2170.99, -1448.51, 25.08)
Object.SetDynamic(245@, True)
246@ = Object.Create(#CHOPCOP_ARMR, 2170.96, -1450.36, 25.2)
Object.SetDynamic(246@, True)
Object.SetRotation(246@, 0.2, 0.2, 0.2)
247@ = Object.Create(#CHOPCOP_ARMR, 2171.16, -1451.11, 25.12)
Object.SetDynamic(247@, True)
Object.SetRotation(247@, -0.1, 0.05, 0.1)
248@ = Object.Create(#CHOPCOP_HEAD, 2171.1, -1453.09, 25.4)
Object.SetDynamic(248@, True)
Object.SetRotation(248@, 0.5, 0.2, -0.1)
Particle.PlayAndKill(242@)
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_57447
Car.StopPlayback(40@)

:DRUGS4_57447
325@ = 5

:DRUGS4_57454
if 
  325@ == 5
goto_if_false @DRUGS4_57659
if 
  TIMERB > 5800
goto_if_false @DRUGS4_57659
Camera.SetFixedPosition(2169.899, -1543.497, 38.744, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2169.894, -1542.551, 38.4204, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Char.DetachFromCar($scplayer)
Char.SetCoordinates($scplayer, 2184.87, -1500.83, 23.55)
Player.SetControl($player1, False)
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_57645
Car.SetCoordinates(40@, 2172.56, -1420.69, 30.0)
Car.Explode(40@)
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_57640
Car.Explode(40@)

:DRUGS4_57640
Char.Delete(44@)

:DRUGS4_57645
TIMERB = 0
325@ = 6

:DRUGS4_57659
if 
  311@ == 1
goto_if_false @DRUGS4_57715
if 
  not Car.IsDead(40@)
goto_if_false @DRUGS4_57715
Car.MarkAsNoLongerNeeded(40@)
Char.MarkAsNoLongerNeeded(44@)
Searchlight.Delete(58@)
311@ = 2

:DRUGS4_57715
if 
  297@ == 1
goto_if_false @DRUGS4_57821
if 
  not Car.IsDead(186@)
goto_if_false @DRUGS4_57794
if 
  not Car.IsPlaybackGoingOn(186@)
goto_if_false @DRUGS4_57787
Car.MarkAsNoLongerNeeded(186@)
Char.MarkAsNoLongerNeeded(195@)
Blip.Remove(285@)
297@ = 2

:DRUGS4_57787
goto @DRUGS4_57821

:DRUGS4_57794
Car.StopPlayback(186@)
Char.MarkAsNoLongerNeeded(195@)
Car.MarkAsNoLongerNeeded(186@)
Blip.Remove(285@)
297@ = 2

:DRUGS4_57821
if 
  314@ == 1
goto_if_false @DRUGS4_57973
if 
  not Car.IsDead(187@)
goto_if_false @DRUGS4_57973
if 
  not Char.IsDead(196@)
goto_if_false @DRUGS4_57878
goto @DRUGS4_57973

:DRUGS4_57878
if 
  not Char.IsDead(197@)
goto_if_false @DRUGS4_57961
if 
  Char.IsInCar(197@, 187@)
goto_if_false @DRUGS4_57954
284@ = Car.GetDriver(187@)
if 
  284@ == -1
goto_if_false @DRUGS4_57954
Task.ShuffleToNextCarSeat(197@, 187@)
314@ = 2

:DRUGS4_57954
goto @DRUGS4_57973

:DRUGS4_57961
Car.StopPlayback(187@)
314@ = 2

:DRUGS4_57973
if 
  314@ == 2
goto_if_false @DRUGS4_58019
if 
  Char.IsDead(197@)
goto_if_false @DRUGS4_58019
Car.StopPlayback(187@)
314@ = 3

:DRUGS4_58019
if 
  298@ == 1
goto_if_false @DRUGS4_58135
if 
  not Car.IsDead(187@)
goto_if_false @DRUGS4_58103
if 
  not Car.IsPlaybackGoingOn(187@)
goto_if_false @DRUGS4_58096
Car.MarkAsNoLongerNeeded(187@)
Char.MarkAsNoLongerNeeded(196@)
Char.MarkAsNoLongerNeeded(197@)
Blip.Remove(286@)
298@ = 2

:DRUGS4_58096
goto @DRUGS4_58135

:DRUGS4_58103
Car.StopPlayback(187@)
Char.MarkAsNoLongerNeeded(196@)
Char.MarkAsNoLongerNeeded(197@)
Car.MarkAsNoLongerNeeded(187@)
Blip.Remove(286@)
298@ = 2

:DRUGS4_58135
if 
  315@ == 1
goto_if_false @DRUGS4_58287
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS4_58287
if 
  not Char.IsDead(198@)
goto_if_false @DRUGS4_58192
goto @DRUGS4_58287

:DRUGS4_58192
if 
  not Char.IsDead(199@)
goto_if_false @DRUGS4_58275
if 
  Char.IsInCar(199@, 188@)
goto_if_false @DRUGS4_58268
284@ = Car.GetDriver(188@)
if 
  284@ == -1
goto_if_false @DRUGS4_58268
Task.ShuffleToNextCarSeat(199@, 188@)
315@ = 2

:DRUGS4_58268
goto @DRUGS4_58287

:DRUGS4_58275
Car.StopPlayback(188@)
315@ = 2

:DRUGS4_58287
if 
  315@ == 2
goto_if_false @DRUGS4_58333
if 
  Char.IsDead(199@)
goto_if_false @DRUGS4_58333
Car.StopPlayback(188@)
315@ = 3

:DRUGS4_58333
if 
  299@ == 1
goto_if_false @DRUGS4_58449
if 
  not Car.IsDead(188@)
goto_if_false @DRUGS4_58417
if 
  not Car.IsPlaybackGoingOn(188@)
goto_if_false @DRUGS4_58410
Car.MarkAsNoLongerNeeded(188@)
Char.MarkAsNoLongerNeeded(198@)
Char.MarkAsNoLongerNeeded(199@)
Blip.Remove(287@)
299@ = 2

:DRUGS4_58410
goto @DRUGS4_58449

:DRUGS4_58417
Car.StopPlayback(188@)
Char.MarkAsNoLongerNeeded(198@)
Char.MarkAsNoLongerNeeded(199@)
Car.MarkAsNoLongerNeeded(188@)
Blip.Remove(287@)
299@ = 2

:DRUGS4_58449
if 
  300@ == 1
goto_if_false @DRUGS4_58505
if 
  Car.IsDead(189@)
goto_if_false @DRUGS4_58505
Blip.Remove(288@)
Char.MarkAsNoLongerNeeded(200@)
Car.MarkAsNoLongerNeeded(189@)
300@ = 2

:DRUGS4_58505
if 
  317@ == 1
goto_if_false @DRUGS4_58657
if 
  not Car.IsDead(190@)
goto_if_false @DRUGS4_58657
if 
  not Char.IsDead(203@)
goto_if_false @DRUGS4_58562
goto @DRUGS4_58657

:DRUGS4_58562
if 
  not Char.IsDead(204@)
goto_if_false @DRUGS4_58645
if 
  Char.IsInCar(204@, 190@)
goto_if_false @DRUGS4_58638
284@ = Car.GetDriver(190@)
if 
  284@ == -1
goto_if_false @DRUGS4_58638
Task.ShuffleToNextCarSeat(204@, 190@)
317@ = 2

:DRUGS4_58638
goto @DRUGS4_58657

:DRUGS4_58645
Car.StopPlayback(190@)
317@ = 2

:DRUGS4_58657
if 
  317@ == 2
goto_if_false @DRUGS4_58703
if 
  Char.IsDead(204@)
goto_if_false @DRUGS4_58703
Car.StopPlayback(190@)
317@ = 3

:DRUGS4_58703
if 
  301@ == 1
goto_if_false @DRUGS4_58819
if 
  not Car.IsDead(190@)
goto_if_false @DRUGS4_58787
if 
  not Car.IsPlaybackGoingOn(190@)
goto_if_false @DRUGS4_58780
Car.MarkAsNoLongerNeeded(190@)
Char.MarkAsNoLongerNeeded(203@)
Char.MarkAsNoLongerNeeded(204@)
Blip.Remove(289@)
301@ = 2

:DRUGS4_58780
goto @DRUGS4_58819

:DRUGS4_58787
Car.StopPlayback(190@)
Char.MarkAsNoLongerNeeded(203@)
Char.MarkAsNoLongerNeeded(204@)
Car.MarkAsNoLongerNeeded(190@)
Blip.Remove(289@)
301@ = 2

:DRUGS4_58819
if 
  318@ == 1
goto_if_false @DRUGS4_58971
if 
  not Car.IsDead(191@)
goto_if_false @DRUGS4_58971
if 
  not Char.IsDead(206@)
goto_if_false @DRUGS4_58876
goto @DRUGS4_58971

:DRUGS4_58876
if 
  not Char.IsDead(207@)
goto_if_false @DRUGS4_58959
if 
  Char.IsInCar(207@, 191@)
goto_if_false @DRUGS4_58952
284@ = Car.GetDriver(191@)
if 
  284@ == -1
goto_if_false @DRUGS4_58952
Task.ShuffleToNextCarSeat(207@, 191@)
318@ = 2

:DRUGS4_58952
goto @DRUGS4_58971

:DRUGS4_58959
Car.StopPlayback(191@)
318@ = 2

:DRUGS4_58971
if 
  318@ == 2
goto_if_false @DRUGS4_59017
if 
  Char.IsDead(207@)
goto_if_false @DRUGS4_59017
Car.StopPlayback(191@)
318@ = 3

:DRUGS4_59017
if 
  302@ == 1
goto_if_false @DRUGS4_59133
if 
  not Car.IsDead(191@)
goto_if_false @DRUGS4_59101
if 
  not Car.IsPlaybackGoingOn(191@)
goto_if_false @DRUGS4_59094
Car.MarkAsNoLongerNeeded(191@)
Char.MarkAsNoLongerNeeded(206@)
Char.MarkAsNoLongerNeeded(207@)
Blip.Remove(290@)
302@ = 2

:DRUGS4_59094
goto @DRUGS4_59133

:DRUGS4_59101
Car.StopPlayback(191@)
Char.MarkAsNoLongerNeeded(206@)
Char.MarkAsNoLongerNeeded(207@)
Car.MarkAsNoLongerNeeded(191@)
Blip.Remove(290@)
302@ = 2

:DRUGS4_59133
if 
  320@ == 1
goto_if_false @DRUGS4_59285
if 
  not Car.IsDead(193@)
goto_if_false @DRUGS4_59285
if 
  not Char.IsDead(201@)
goto_if_false @DRUGS4_59190
goto @DRUGS4_59285

:DRUGS4_59190
if 
  not Char.IsDead(202@)
goto_if_false @DRUGS4_59273
if 
  Char.IsInCar(202@, 193@)
goto_if_false @DRUGS4_59266
284@ = Car.GetDriver(193@)
if 
  284@ == -1
goto_if_false @DRUGS4_59266
Task.ShuffleToNextCarSeat(202@, 193@)
320@ = 2

:DRUGS4_59266
goto @DRUGS4_59285

:DRUGS4_59273
Car.StopPlayback(193@)
320@ = 2

:DRUGS4_59285
if 
  320@ == 2
goto_if_false @DRUGS4_59331
if 
  Char.IsDead(202@)
goto_if_false @DRUGS4_59331
Car.StopPlayback(193@)
320@ = 3

:DRUGS4_59331
if 
  304@ == 1
goto_if_false @DRUGS4_59559
if 
  not Car.IsDead(193@)
goto_if_false @DRUGS4_59471
if 
  not Car.IsPlaybackGoingOn(193@)
goto_if_false @DRUGS4_59464
Car.MarkAsNoLongerNeeded(193@)
Char.MarkAsNoLongerNeeded(201@)
Char.MarkAsNoLongerNeeded(202@)
Blip.Remove(292@)
if 
  300@ == 1
goto_if_false @DRUGS4_59457
if 
  Car.IsDead(189@)
goto_if_false @DRUGS4_59457
Blip.Remove(288@)
Char.MarkAsNoLongerNeeded(200@)
Car.MarkAsNoLongerNeeded(193@)
300@ = 2

:DRUGS4_59457
304@ = 2

:DRUGS4_59464
goto @DRUGS4_59559

:DRUGS4_59471
Car.StopPlayback(193@)
Char.MarkAsNoLongerNeeded(201@)
Char.MarkAsNoLongerNeeded(202@)
Car.MarkAsNoLongerNeeded(193@)
Blip.Remove(292@)
if 
  300@ == 1
goto_if_false @DRUGS4_59552
if 
  Car.IsDead(189@)
goto_if_false @DRUGS4_59552
Blip.Remove(288@)
Char.MarkAsNoLongerNeeded(200@)
Car.MarkAsNoLongerNeeded(193@)
300@ = 2

:DRUGS4_59552
304@ = 2

:DRUGS4_59559
if 
  307@ == 1
goto_if_false @DRUGS4_59719
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_59719
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_59719
if 
  Char.IsPlayingAnim(219@, "MD_BIKE_JMP_BL")
goto_if_false @DRUGS4_59719
228@ = Char.GetAnimCurrentTime(219@, "MD_BIKE_JMP_BL")
if 
  228@ == 0.0
goto_if_false @DRUGS4_59719
Char.SetAnimSpeed(219@, "MD_BIKE_JMP_BL", 0.0)
307@ = 2

:DRUGS4_59719
if 
  307@ == 3
goto_if_false @DRUGS4_59858
if 
  TIMERA > 3200
goto_if_false @DRUGS4_59858
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_59858
Task.PlayAnimNonInterruptable(219@, "MD_BIKE_JMP_BL", "MD_CHASE", 1.0, False, False, False, True, -1)
Char.SetAnimSpeed(219@, "MD_BIKE_JMP_BL", 1.0)
327@ = 7
307@ = 4

:DRUGS4_59858
if 
  307@ == 4
goto_if_false @DRUGS4_60237
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_60237
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_60237
if 
  Char.IsPlayingAnim(219@, "MD_BIKE_JMP_BL")
goto_if_false @DRUGS4_60237
228@ = Char.GetAnimCurrentTime(219@, "MD_BIKE_JMP_BL")
if 
  228@ == 1.0
goto_if_false @DRUGS4_60237
Char.DetachFromCar(219@)
if 
  310@ == 1
goto_if_false @DRUGS4_60104
Char.AttachToCar(219@, $sweet_car, -0.23, -4.0, 0.3, 2, 360.0, WeaponType.Unarmed)
Task.PlayAnim(219@, "MD_BIKE_LND_DIE_BL", "MD_CHASE", 8.0, False, False, False, True, -1)
307@ = 100
goto @DRUGS4_60196

:DRUGS4_60104
Task.PlayAnimNonInterruptable(219@, "MD_BIKE_LND_BL", "MD_CHASE", 1000.0, False, False, False, True, -1)
Char.AttachToCar(219@, $sweet_car, -0.23, -4.0, 0.3, 0, 360.0, WeaponType.Unarmed)
TIMERA = 0
307@ = 5

:DRUGS4_60196
if 
  not Car.IsDead(215@)
goto_if_false @DRUGS4_60237
Car.StopPlayback(215@)
Car.SetRotationVelocity(215@, -2.0, 3.0, 0.2003)

:DRUGS4_60237
if 
  307@ == 5
goto_if_false @DRUGS4_60416
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_60416
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_60416
if 
  Char.IsPlayingAnim(219@, "MD_BIKE_LND_BL")
goto_if_false @DRUGS4_60416
228@ = Char.GetAnimCurrentTime(219@, "MD_BIKE_LND_BL")
if 
  228@ > 0.037
goto_if_false @DRUGS4_60416
Task.PlayAnimNonInterruptable(219@, "MD_BIKE_PUNCH", "MD_CHASE", 8.0, True, False, False, False, -1)
307@ = 6

:DRUGS4_60416
if 
  307@ > 0
goto_if_false @DRUGS4_60500
if 
  4 > 307@
goto_if_false @DRUGS4_60500
if 
  not Car.IsDead(215@)
goto_if_false @DRUGS4_60500
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_60500
220@ = Car.GetHeading(215@)
Char.SetHeading(219@, 220@)

:DRUGS4_60500
if 
  307@ == 4
goto_if_false @DRUGS4_60682
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_60682
if 
  Char.IsPlayingAnim(219@, "MD_BIKE_JMP_BL")
goto_if_false @DRUGS4_60682
228@ = Char.GetAnimCurrentTime(219@, "MD_BIKE_JMP_BL")
if 
  228@ > 0.66
goto_if_false @DRUGS4_60650
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_60643
220@ = Car.GetHeading($sweet_car)
Char.SetHeading(219@, 220@)

:DRUGS4_60643
goto @DRUGS4_60682

:DRUGS4_60650
if 
  not Car.IsDead(215@)
goto_if_false @DRUGS4_60682
220@ = Car.GetHeading(215@)
Char.SetHeading(219@, 220@)

:DRUGS4_60682
if 
  307@ > 4
goto_if_false @DRUGS4_60748
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_60748
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_60748
220@ = Car.GetHeading($sweet_car)
Char.SetHeading(219@, 220@)

:DRUGS4_60748
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_60899
if 
  Char.IsPlayingAnim(219@, "MD_BIKE_PUNCH")
goto_if_false @DRUGS4_60899
229@ = Char.GetAnimCurrentTime(219@, "MD_BIKE_PUNCH")
if 
  229@ > 0.2
goto_if_false @DRUGS4_60892
if 
  307@ == 6
goto_if_false @DRUGS4_60885
Camera.DoBump(-2.2, 1.7)
Char.Damage($scplayer, 10, True)
307@ = 7

:DRUGS4_60885
goto @DRUGS4_60899

:DRUGS4_60892
307@ = 6

:DRUGS4_60899
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_60964
231@ = Char.GetHealth(219@)
if 
  901 > 231@
goto_if_false @DRUGS4_60964
Char.SetProofs(219@, True, True, True, True, True)
310@ = 1

:DRUGS4_60964
if 
  307@ == 100
goto_if_false @DRUGS4_61127
if 
  Char.IsPlayingAnim(219@, "MD_BIKE_LND_DIE_BL")
goto_if_false @DRUGS4_61127
228@ = Char.GetAnimCurrentTime(219@, "MD_BIKE_LND_DIE_BL")
if 
  228@ == 1.0
goto_if_false @DRUGS4_61127
Char.DetachFromCar(219@)
Task.PlayAnimNonInterruptable(219@, "MD_BIKE_LND_ROLL", "MD_CHASE", 8.0, False, False, False, True, -1)
307@ = 101

:DRUGS4_61127
if 
  307@ == 101
goto_if_false @DRUGS4_61238
if 
  Char.IsPlayingAnim(219@, "MD_BIKE_LND_ROLL")
goto_if_false @DRUGS4_61238
228@ = Char.GetAnimCurrentTime(219@, "MD_BIKE_LND_ROLL")
if 
  228@ == 1.0
goto_if_false @DRUGS4_61238
Char.RemoveElegantly(219@)
307@ = 102

:DRUGS4_61238
if 
  307@ > 4
goto_if_false @DRUGS4_61308
if 
  8 > 307@
goto_if_false @DRUGS4_61308
if or
  310@ == 1
  TIMERA > 12000
goto_if_false @DRUGS4_61308
307@ = 200

:DRUGS4_61308
if 
  307@ == 200
goto_if_false @DRUGS4_61404
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_61404
Task.PlayAnimNonInterruptable(219@, "MD_BIKE_2_HANG", "MD_CHASE", 8.0, False, False, False, True, -1)
TIMERA = 0
307@ = 201

:DRUGS4_61404
if 
  307@ == 201
goto_if_false @DRUGS4_61568
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_61568
if 
  Char.IsPlayingAnim(219@, "MD_BIKE_2_HANG")
goto_if_false @DRUGS4_61568
228@ = Char.GetAnimCurrentTime(219@, "MD_BIKE_2_HANG")
if 
  228@ == 1.0
goto_if_false @DRUGS4_61568
Task.PlayAnimNonInterruptable(219@, "MD_HANG_LOOP", "MD_CHASE", 8.0, True, False, False, False, -1)
307@ = 202

:DRUGS4_61568
if 
  307@ == 202
goto_if_false @DRUGS4_61663
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_61663
if 
  Char.IsPlayingAnim(219@, "MD_BIKE_2_HANG")
goto_if_false @DRUGS4_61663
Char.SetProofs(219@, False, False, False, False, False)
Char.ClearLastDamageEntity(219@)
307@ = 203

:DRUGS4_61663
if 
  307@ == 203
goto_if_false @DRUGS4_61786
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_61786
if or
  Char.HasBeenDamagedByChar(219@, $scplayer)
  TIMERA > 5000
goto_if_false @DRUGS4_61786
Char.DetachFromCar(219@)
Task.PlayAnimNonInterruptable(219@, "MD_HANG_LND_ROLL", "MD_CHASE", 8.0, False, False, False, True, -1)
307@ = 204

:DRUGS4_61786
if 
  307@ == 204
goto_if_false @DRUGS4_61915
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_61915
if 
  Char.IsPlayingAnim(219@, "MD_HANG_LND_ROLL")
goto_if_false @DRUGS4_61915
228@ = Char.GetAnimCurrentTime(219@, "MD_HANG_LND_ROLL")
if 
  228@ == 1.0
goto_if_false @DRUGS4_61915
Char.Delete(219@)
307@ = 205

:DRUGS4_61915
if 
  325@ == 6
goto_if_false @DRUGS4_62685
if 
  TIMERB > 3000
goto_if_false @DRUGS4_62685
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_62685
Car.Delete(40@)
Streaming.MarkModelAsNoLongerNeeded(596)
Streaming.MarkModelAsNoLongerNeeded(280)
Streaming.MarkModelAsNoLongerNeeded(284)
Streaming.MarkModelAsNoLongerNeeded(523)
Streaming.MarkModelAsNoLongerNeeded(497)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(#CHOPCOP_ARML)
Streaming.MarkModelAsNoLongerNeeded(#CHOPCOP_ARMR)
Streaming.MarkModelAsNoLongerNeeded(#CHOPCOP_LEGL)
Streaming.MarkModelAsNoLongerNeeded(#CHOPCOP_LEGR)
Streaming.MarkModelAsNoLongerNeeded(#CHOPCOP_HEAD)
Streaming.MarkModelAsNoLongerNeeded(#CHOPCOP_TORSO)
Object.Delete(243@)
Object.Delete(244@)
Object.Delete(245@)
Object.Delete(246@)
Object.Delete(247@)
Object.Delete(248@)
Object.Delete(249@)
Object.Delete(262@)
Object.Delete(263@)
Object.Delete(261@)
Object.Delete(262@)
Object.Delete(263@)
Car.Delete(40@)
Particle.Kill(237@)
Particle.Kill(240@)
Particle.Kill(241@)
Particle.Kill(242@)
Char.RemoveWeapon($scplayer, WeaponType.Ak47)
Streaming.MarkModelAsNoLongerNeeded(355)
Streaming.RemoveAnimation("MD_CHASE")
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Text.ClearPrints
Streaming.RequestCarRecording(351)
Streaming.RequestCarRecording(382)
Streaming.RequestCarRecording(383)
Streaming.RequestCarRecording(384)
Streaming.RequestModel(514)
Streaming.RequestModel(584)
Streaming.LoadSpecialCharacter(1, 'SWEET')
Streaming.LoadSpecialCharacter(2, 'SMOKE')
Streaming.LoadSpecialCharacter(3, 'RYDER2')
Streaming.RequestAnimation("MD_END")
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8298)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8286)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 29000)
Streaming.LoadAllModelsNow
Camera.SetFixedPosition(2177.307, -1535.901, 17.7635, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2176.855, -1535.143, 18.2324, SwitchType.JumpCut)

:DRUGS4_62309
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasSpecialCharacterLoaded(3)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_62351
wait 0
goto @DRUGS4_62309

:DRUGS4_62351
if or
  not Streaming.HasModelLoaded(514)
  not Streaming.HasModelLoaded(584)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @DRUGS4_62387
wait 0
goto @DRUGS4_62351

:DRUGS4_62387
if or
  not Streaming.HasCarRecordingBeenLoaded(351)
  not Streaming.HasCarRecordingBeenLoaded(382)
  not Streaming.HasCarRecordingBeenLoaded(383)
  not Streaming.HasCarRecordingBeenLoaded(384)
  not Streaming.HasAnimationLoaded("MD_END")
goto_if_false @DRUGS4_62439
wait 0
goto @DRUGS4_62387

:DRUGS4_62439
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_62460
Car.StopPlayback($sweet_car)

:DRUGS4_62460
274@ = Car.Create(514, 2078.002, -1524.349, 2.49)
Car.SetHeading(274@, 254.103)
Car.SetHealth(274@, 5000)
Car.SetProofs(274@, True, True, True, True, True)
273@ = Car.Create(584, 2070.05, -1522.059, 3.668)
Car.SetHeading(273@, 254.0)
Car.SetHealth(273@, 5000)
Car.SetProofs(273@, True, True, True, True, True)
275@ = Car.Create(492, 2060.05, -1520.059, 3.668)
Car.SetHealth(275@, 5000)
Car.SetProofs(275@, True, True, True, True, True)
Car.ChangeColor(275@, 5, 5)
Path.SwitchPedRoadsOff(2184.44, -1557.18, -5.481, 2169.22, -1560.63, 5.91)
World.SetCarDensityMultiplier(1.0)
Hud.ClearCounter($sweethealth_f1)
TIMERB = 0
325@ = 7

:DRUGS4_62685
if 
  325@ > 6
goto_if_false @DRUGS4_62788
if 
  329@ == 0
goto_if_false @DRUGS4_62788
if 
  TIMERB > 1989
goto_if_false @DRUGS4_62788
if 
  Object.DoesExist($fourdragons_door)
goto_if_false @DRUGS4_62781
Object.FreezePosition($fourdragons_door, False)
Object.SetCollisionDamageEffect($fourdragons_door, True)
Object.Break($fourdragons_door, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:DRUGS4_62781
329@ = 1

:DRUGS4_62788
if 
  325@ == 7
goto_if_false @DRUGS4_62909
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_62909
if 
  not Car.IsDead(274@)
goto_if_false @DRUGS4_62909
if 
  not Car.IsDead(273@)
goto_if_false @DRUGS4_62909
Car.StartPlayback($sweet_car, 351)
Car.StartPlayback(274@, 382)
Car.StartPlayback(273@, 383)
if 
  not Car.IsDead(275@)
goto_if_false @DRUGS4_62902
Car.StartPlayback(275@, 384)

:DRUGS4_62902
325@ = 8

:DRUGS4_62909
if 
  325@ == 8
goto_if_false @DRUGS4_63039
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_63039
if 
  Car.Locate2D($sweet_car, 2170.2, -1518.04, 5.0, 5.0, False)
goto_if_false @DRUGS4_63039
Clock.SetTimeScale(0.3)
Camera.PointAtCar($sweet_car, CameraMode.Fixed, SwitchType.Interpolation)
Car.OpenDoor($sweet_car, CarDoor.LeftFrontDoor)
Car.OpenDoor($sweet_car, CarDoor.LeftRearDoor)
Car.OpenDoor($sweet_car, CarDoor.RightRearDoor)
Car.OpenDoor($sweet_car, CarDoor.Hood)
TIMERA = 0
325@ = 9

:DRUGS4_63039
if 
  325@ == 9
goto_if_false @DRUGS4_63192
if 
  TIMERA > 500
goto_if_false @DRUGS4_63192
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_63192
Car.PopPanel($sweet_car, 6, True)
Car.SetProofs($sweet_car, True, True, True, True, True)
if 
  not Car.IsDead(273@)
goto_if_false @DRUGS4_63147
Car.SetProofs(273@, True, True, True, True, True)

:DRUGS4_63147
if 
  not Car.IsDead(274@)
goto_if_false @DRUGS4_63178
Car.SetProofs(274@, True, True, True, True, True)

:DRUGS4_63178
TIMERA = 0
325@ = 10

:DRUGS4_63192
if 
  325@ == 10
goto_if_false @DRUGS4_63588
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_63588
if or
  Car.Locate3D($sweet_car, 2169.24, -1553.91, 2.5, 10.0, 10.0, 6.0, False)
  TIMERA > 4000
goto_if_false @DRUGS4_63588
Car.SetHealth($sweet_car, 300)
Clock.SetTimeScale(0.7)
Car.PopPanel($sweet_car, 5, True)
Clock.SetTimeOfDay(7, 15)
Camera.SetFixedPosition(2204.804, -1568.276, 1.9452, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2203.861, -1567.951, 1.8744, SwitchType.JumpCut)
Camera.SetNearClip(0.1)
$sweet = Char.Create(PedType.Special, 290, 2168.479, -1506.067, 24.0)
Char.SetHeading($sweet, 135.0)
Char.SetDecisionMaker($sweet, 55@)
Char.SetProofs($sweet, True, True, True, True, True)
$big_smoke = Char.Create(PedType.Special, 291, 2168.992, -1508.601, 24.0)
Char.SetHeading($big_smoke, 45.0)
Char.SetDecisionMaker($big_smoke, 55@)
Char.SetProofs($big_smoke, True, True, True, True, True)
$ryder = Char.Create(PedType.Special, 292, 2167.054, -1507.7, 24.0)
Char.SetHeading($ryder, 290.0)
Char.SetDecisionMaker($ryder, 55@)
Char.SetProofs($ryder, True, True, True, True, True)
Char.SetCoordinates($scplayer, 2166.952, -1506.237, 24.0)
Char.SetHeading($scplayer, 225.0)
TIMERA = 0
325@ = 11

:DRUGS4_63588
if 
  325@ == 11
goto_if_false @DRUGS4_63861
if 
  not Car.IsDead(273@)
goto_if_false @DRUGS4_63861
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_63861
if 
  not Car.IsDead(274@)
goto_if_false @DRUGS4_63861
if or
  Car.IsTouchingCar($sweet_car, 274@)
  TIMERB > 4350
goto_if_false @DRUGS4_63861
$player_x, $player_y, $player_z = Car.GetCoordinates($sweet_car)
Fx.AddExplosion($player_x, $player_y, $player_z, ExplosionType.Grenade)
Car.Explode($sweet_car)
Car.Explode(273@)
Car.SetProofs(274@, True, True, True, True, True)
Fx.AddExplosion(2180.27, -1564.66, 3.23, ExplosionType.Car)
Fx.AddExplosion(2182.25, -1565.23, 2.88, ExplosionType.Grenade)
Fx.AddExplosion(2166.34, -1559.97, 6.28, ExplosionType.Rocket)
Fx.AddExplosion(2173.52, -1560.03, 5.0, ExplosionType.Car)
Fx.AddExplosion(2182.65, -1565.14, 4.01, ExplosionType.Rocket)
Fx.AddExplosion(2183.8, -1564.48, 4.05, ExplosionType.Grenade)
TIMERA = 0
325@ = 12

:DRUGS4_63861
if 
  325@ == 12
goto_if_false @DRUGS4_63962
if 
  TIMERA > 250
goto_if_false @DRUGS4_63962
Fx.AddExplosion(2187.94, -1562.73, 2.85, ExplosionType.Grenade)
Fx.AddExplosion(2172.99, -1561.51, 4.88, ExplosionType.Grenade)
Fx.AddExplosion(2172.9, -1561.64, 2.7, ExplosionType.Car)
325@ = 13

:DRUGS4_63962
if 
  325@ == 13
goto_if_false @DRUGS4_64378
if 
  TIMERA > 750
goto_if_false @DRUGS4_64378
281@ = ScriptFire.Start(2180.27, -1564.66, 1.93, 1, 3)
282@ = ScriptFire.Start(2182.25, -1565.23, 1.88, 1, 3)
283@ = ScriptFire.Start(2187.94, -1562.73, 1.36, 1, 3)
278@ = ScriptFire.Start(2204.804, -1568.476, 1.95, 1, 1)
279@ = ScriptFire.Start(2201.11, -1565.77, 1.36, 1, 1)
280@ = ScriptFire.Start(2202.82, -1565.01, 1.35, 1, 3)
Fx.AddExplosion(2175.12, -1562.63, 5.93, ExplosionType.Car)
Fx.AddExplosion(2179.24, -1563.66, 6.42, ExplosionType.Grenade)
Fx.AddExplosion(2170.39, -1560.61, 5.91, ExplosionType.Car)
Fx.AddExplosion(2187.94, -1562.73, 2.85, ExplosionType.Car)
Fx.AddExplosion(2180.27, -1564.66, 3.23, ExplosionType.Car)
Fx.AddExplosion(2172.9, -1561.64, 2.7, ExplosionType.Car)
Fx.AddExplosion(2171.73, -1562.22, 5.92, ExplosionType.Car)
Fx.AddExplosion(2179.3, -1563.32, 6.12, ExplosionType.Rocket)
Fx.AddExplosion(2177.35, -1562.66, 5.73, ExplosionType.Grenade)
Fx.AddExplosion(2174.04, -1562.21, 6.56, ExplosionType.Grenade)
Fx.AddExplosion(2178.27, -1564.89, 6.58, ExplosionType.Rocket)
Fx.AddExplosion(2177.53, -1564.16, 6.96, ExplosionType.Car)
325@ = 14

:DRUGS4_64378
if 
  325@ == 14
goto_if_false @DRUGS4_64498
if 
  TIMERA > 1250
goto_if_false @DRUGS4_64498
Fx.AddExplosion(2166.34, -1559.97, 6.28, ExplosionType.Rocket)
Fx.AddExplosion(2173.52, -1560.03, 5.0, ExplosionType.Car)
Fx.AddExplosion(2182.65, -1565.14, 4.01, ExplosionType.Rocket)
Fx.AddExplosion(2183.8, -1564.48, 4.05, ExplosionType.Grenade)
325@ = 15

:DRUGS4_64498
if 
  325@ == 15
goto_if_false @DRUGS4_64781
if 
  TIMERA > 1750
goto_if_false @DRUGS4_64781
Fx.AddExplosion(2175.12, -1562.63, 5.93, ExplosionType.Car)
Fx.AddExplosion(2179.24, -1563.66, 6.42, ExplosionType.Grenade)
Fx.AddExplosion(2170.39, -1560.61, 5.91, ExplosionType.Car)
if 
  not Car.IsDead(273@)
goto_if_false @DRUGS4_64628
Car.SetProofs(273@, False, False, False, False, False)
Car.Explode(273@)

:DRUGS4_64628
if 
  not Car.IsDead(274@)
goto_if_false @DRUGS4_64669
Car.SetProofs(274@, False, False, False, False, False)
Car.StopPlayback(274@)
Car.Explode(274@)

:DRUGS4_64669
if 
  not Car.IsDead($sweet_car)
goto_if_false @DRUGS4_64717
Car.SetProofs($sweet_car, False, False, False, False, False)
Car.StopPlayback($sweet_car)
Car.SetHealth($sweet_car, 100)
Car.Explode($sweet_car)

:DRUGS4_64717
Fx.AddExplosion(2187.94, -1562.73, 2.85, ExplosionType.Car)
Fx.AddExplosion(2180.27, -1564.66, 3.23, ExplosionType.Car)
Fx.AddExplosion(2172.9, -1561.64, 2.7, ExplosionType.Car)
325@ = 16

:DRUGS4_64781
if 
  325@ == 16
goto_if_false @DRUGS4_65225
if 
  TIMERA > 4500
goto_if_false @DRUGS4_65225
279@ = ScriptFire.Start(2201.11, -1565.77, 1.36, 1, 1)
Streaming.RemoveAnimation("MD_CHASE")
Streaming.MarkModelAsNoLongerNeeded(514)
Streaming.MarkModelAsNoLongerNeeded(584)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(497)
Clock.SetTimeScale(1.0)
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_64938
Task.PlayAnimNonInterruptable($sweet, "END_SC1_SWE", "MD_END", 1000.0, False, False, False, True, -1)

:DRUGS4_64938
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_64995
Task.PlayAnimNonInterruptable($ryder, "END_SC1_RYD", "MD_END", 1000.0, False, False, False, True, -1)

:DRUGS4_64995
Task.PlayAnim($scplayer, "END_SC1_PLY", "MD_END", 1000.0, False, False, False, True, -1)
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_65101
Task.PlayAnim($big_smoke, "END_SC1_SMO", "MD_END", 1000.0, False, False, False, True, -1)
Char.StartFacialTalk($big_smoke, 5000)

:DRUGS4_65101
wait 100
Camera.SetFixedPosition(2171.519, -1521.437, 23.7949, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2171.287, -1520.465, 23.8322, SwitchType.JumpCut)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('FIN1_MU', 5000, 1)
Car.Delete(275@)
Car.StopPlayback(273@)
Car.StopPlayback(275@)
Car.Delete(273@)
Car.Delete($sweet_car)
Car.Delete(274@)
Car.Delete(40@)
330@ = 1
325@ = 17

:DRUGS4_65225
if 
  325@ > 16
goto_if_false @DRUGS4_65412
if 
  330@ == 1
goto_if_false @DRUGS4_65412
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_65412
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_65412
Camera.SetFixedPosition(2171.519, -1521.437, 23.7949, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2171.287, -1520.465, 23.8322, SwitchType.JumpCut)
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Char.StopFacialTalk($big_smoke)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8261)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('FIN1_MV', 4000, 1)
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_65405
Char.StartFacialTalk($sweet, 5000)

:DRUGS4_65405
330@ = 2

:DRUGS4_65412
if 
  330@ == 2
goto_if_false @DRUGS4_65545
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_65545
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_65545
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_65545
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_65545
Text.ClearPrints
Char.StopFacialTalk($sweet)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('FIN1_MW', 5000, 1)
Char.StartFacialTalk($ryder, 5000)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8287)
330@ = 3

:DRUGS4_65545
if 
  330@ == 3
goto_if_false @DRUGS4_65665
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_65665
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_65665
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_65665
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_65665
Char.StopFacialTalk($ryder)
Char.StartFacialTalk($sweet, 5000)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('FIN1_MX', 5000, 1)
330@ = 4

:DRUGS4_65665
if 
  330@ == 4
goto_if_false @DRUGS4_65728
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DRUGS4_65728
Text.ClearPrints
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_65721
Char.StopFacialTalk($sweet)

:DRUGS4_65721
330@ = 5

:DRUGS4_65728
if 
  325@ == 17
goto_if_false @DRUGS4_66087
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_66087
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_66087
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_66087
if 
  Char.IsPlayingAnim($big_smoke, "END_SC1_SMO")
goto_if_false @DRUGS4_66087
277@ = Char.GetAnimCurrentTime($big_smoke, "END_SC1_SMO")
if 
  277@ == 1.0
goto_if_false @DRUGS4_66087
Task.PlayAnimNonInterruptable($sweet, "END_SC2_SWE", "MD_END", 1000.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable($big_smoke, "END_SC2_SMO", "MD_END", 1000.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable($ryder, "END_SC2_RYD", "MD_END", 1000.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable($scplayer, "END_SC2_PLY", "MD_END", 1000.0, False, False, False, False, -1)
Camera.SetFixedPosition(2168.117, -1510.165, 24.3268, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2168.124, -1509.166, 24.294, SwitchType.JumpCut)
325@ = 18

:DRUGS4_66087
if 
  325@ == 18
goto_if_false @DRUGS4_66376
if 
  not Char.IsDead($big_smoke)
goto_if_false @DRUGS4_66376
if 
  330@ == 5
goto_if_false @DRUGS4_66376
Camera.SetFixedPosition(2175.271, -1537.773, 24.5856, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2175.078, -1536.796, 24.6842, SwitchType.JumpCut)
Task.GoStraightToCoord($big_smoke, 2172.19, -1498.48, 23.55, MoveState.Walk, -1)
Char.SetFollowNodeThresholdDistance($big_smoke, 100.0)
wait 150
if 
  not Char.IsDead($sweet)
goto_if_false @DRUGS4_66279
Task.GoStraightToCoord($sweet, 2170.77, -1492.05, 23.65, MoveState.Walk, -1)
Char.SetFollowNodeThresholdDistance($sweet, 100.0)

:DRUGS4_66279
wait 100
if 
  not Char.IsDead($ryder)
goto_if_false @DRUGS4_66333
Task.GoStraightToCoord($ryder, 2163.65, -1506.92, 23.01, MoveState.Walk, -1)
Char.SetFollowNodeThresholdDistance($ryder, 100.0)

:DRUGS4_66333
Camera.DoFade(4000, Fade.Out)

:DRUGS4_66340
if 
  Camera.GetFadingStatus
goto_if_false @DRUGS4_66364
wait 0
goto @DRUGS4_66340

:DRUGS4_66364
Car.Delete(40@)
325@ = 19

:DRUGS4_66376
if 
  325@ == 19
goto_if_false @DRUGS4_66503
Char.Delete($big_smoke)
Char.Delete($ryder)
Char.Delete($sweet)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 2170.935, -1500.675, 22.9)
Char.SetHeading($scplayer, 355.56)
Char.SetCoordinates($scplayer, 2170.596, -1515.468, 22.89)
Char.SetHeading($scplayer, 356.495)
Camera.RestoreJumpcut
Camera.SetInFrontOfPlayer
Hud.SwitchWidescreen(False)
Camera.DoFade(2000, Fade.In)
goto @DRUGS4_67763
325@ = 20

:DRUGS4_66503
goto @DRUGS4_1706

:DRUGS4_66510
if 
  179@ == 0
goto_if_false @DRUGS4_66550
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 106@)
set_lvar_text_label 104@s = 107@s
179@ = 1

:DRUGS4_66550
return 

:DRUGS4_66552
if 
  179@ == 1
goto_if_false @DRUGS4_66731
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_66731
Text.PrintNow(104@s, 4000, 1)
Text.ClearThisPrint('FIN1_BD')
Text.ClearThisPrint('FIN1_CK')
Text.ClearThisPrint('FIN1_BE')
Text.ClearThisPrint('FIN1_BY')
Text.ClearThisPrint('FIN1_CB')
Text.ClearThisPrint('FIN1_BK')
Text.ClearThisPrint('FIN1_BL')
if 
  151@ == 1
goto_if_false @DRUGS4_66720
if 
  not Char.IsDead(66@)
goto_if_false @DRUGS4_66720
Audio.AttachMissionAudioToChar(MissionAudioSlot.Slot1, 66@)
151@ = 2

:DRUGS4_66720
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
179@ = 2

:DRUGS4_66731
if 
  179@ == 2
goto_if_false @DRUGS4_66784
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRUGS4_66784
178@ += 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
179@ = 0

:DRUGS4_66784
return 

:DRUGS4_66786
125@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
Task.ShootAtCoord(-1, 122@, 123@, 124@, 15000)
Sequence.SetToRepeat(125@, True)
Sequence.Close(125@)
Char.PerformSequence(118@, 125@)
Sequence.Clear(125@)
return 

:DRUGS4_66846
110@ = Sequence.Open()
Task.GoStraightToCoord(-1, 122@, 123@, 124@, MoveState.Run, -1)
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
Task.KillCharOnFootWhileDucking(-1, 119@, 4, 5000, 80)
Sequence.Close(110@)
Char.PerformSequence(118@, 110@)
Sequence.Clear(110@)
return 

:DRUGS4_66914
111@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootWhileDucking(-1, 119@, 1, 5000, 50)
Sequence.Close(111@)
Char.PerformSequence(118@, 111@)
Sequence.Clear(111@)
return 

:DRUGS4_66965
112@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 119@)
Sequence.Close(112@)
Char.PerformSequence(118@, 112@)
Sequence.Clear(112@)
return 

:DRUGS4_67003
113@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 119@)
Task.KillCharOnFoot(-1, 120@)
Sequence.Close(113@)
Char.PerformSequence(118@, 113@)
Sequence.Clear(113@)
return 

:DRUGS4_67048
114@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.PlayAnim(-1, "CROUCH_ROLL_R", "PED", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(114@)
Char.PerformSequence(118@, 114@)
Sequence.Clear(114@)
return 

:DRUGS4_67131
115@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.PlayAnim(-1, "CROUCH_ROLL_L", "PED", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(115@)
Char.PerformSequence(118@, 115@)
Sequence.Clear(115@)
return 

:DRUGS4_67214
116@ = Sequence.Open()
Task.PlayAnim(-1, "SWT_WLLPK_R", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SWT_WLLSHOOT_IN_R", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
if 
  161@ == 0
goto_if_false @DRUGS4_67342
Task.KillCharOnFootTimed(-1, 119@, 1500)
goto @DRUGS4_67358

:DRUGS4_67342
Task.ShootAtCoord(-1, 122@, 123@, 124@, 1500)

:DRUGS4_67358
Task.StayInSamePlace(-1, False)
Task.PlayAnim(-1, "SWT_WLLSHOOT_OUT_R", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnim(-1, "SWT_WLLPK_R_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(116@, True)
Sequence.Close(116@)
Char.PerformSequence(118@, 116@)
Sequence.Clear(116@)
return 

:DRUGS4_67479
117@ = Sequence.Open()
Task.PlayAnim(-1, "SWT_WLLPK_L", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SWT_WLLSHOOT_IN_L", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootTimed(-1, $scplayer, 1500)
Task.StayInSamePlace(-1, False)
Task.PlayAnim(-1, "SWT_WLLSHOOT_OUT_L", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnim(-1, "SWT_WLLPK_L_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(117@, True)
Sequence.Close(117@)
Char.PerformSequence(118@, 117@)
Sequence.Clear(117@)
return 

:DRUGS4_67703
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Object.Delete($fourdragons_door)
$fourdragons_door = Object.CreateNoOffset(#MD_POSTER, 2167.82, -1518.193, 20.237)
Object.SetHeading($fourdragons_door, 0.0)
Object.DontRemove($fourdragons_door)
return 

:DRUGS4_67763
Stat.RegisterMissionPassed('LA1FIN1')
Stat.SetInt(StatId.PassedLafin1, 1)
Text.PrintWithNumberBig('M_PASSR', 15, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(15)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Stat.PlayerMadeProgress(1)
$flag_la1fin1_mission_counter += 1
return 

:DRUGS4_67825
$onmission = 0
Hud.ClearCounter($sweethealth_f1)
Game.SetScriptLimitToGangSize(99)
Path.SwitchRoadsOn(2180.18, -1130.28, 21.2, 2276.82, -1151.26, 28.0)
Path.SwitchPedRoadsOn(2180.18, -1130.28, 21.2, 2276.82, -1151.26, 28.0)
Path.SwitchPedRoadsOn(2184.44, -1557.18, -5.481, 2169.22, -1560.63, 5.91)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Char.RemoveElegantly($sweet)
Char.RemoveElegantly($ryder)
Char.RemoveElegantly($big_smoke)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(107)
Streaming.MarkModelAsNoLongerNeeded(106)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(285)
Streaming.MarkModelAsNoLongerNeeded(497)
Streaming.MarkModelAsNoLongerNeeded(427)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.RemoveAnimation("SWAT")
Streaming.MarkModelAsNoLongerNeeded(63)
Streaming.MarkModelAsNoLongerNeeded(#IMY_SKYLIGHT)
Streaming.MarkModelAsNoLongerNeeded(#KMB_TROLLEY)
Streaming.RemoveAnimation("KISSING")
Streaming.RemoveAnimation("GANGS")
Blip.Remove(185@)
Blip.Remove(183@)
Blip.Remove(184@)
Hud.ClearCounter($cs1_random_dialogue)
Particle.Kill(65@)
Pickup.Remove(127@)
Path.FlushRoute
Streaming.MarkModelAsNoLongerNeeded(#MD_POSTER)
Streaming.MarkModelAsNoLongerNeeded(596)
Streaming.MarkModelAsNoLongerNeeded(280)
Streaming.MarkModelAsNoLongerNeeded(284)
Streaming.MarkModelAsNoLongerNeeded(523)
Streaming.MarkModelAsNoLongerNeeded(355)
Streaming.MarkModelAsNoLongerNeeded(538)
Streaming.RemoveAnimation("GANGS")
Streaming.MarkModelAsNoLongerNeeded(#DYN_SCAFFOLD_3B)
Streaming.MarkModelAsNoLongerNeeded(#DYN_SCAFFOLD_4B)
Streaming.RemoveAnimation("MD_CHASE")
Streaming.MarkModelAsNoLongerNeeded(#MUNCH_DONUT)
Streaming.MarkModelAsNoLongerNeeded(#CHOPCOP_ARML)
Streaming.MarkModelAsNoLongerNeeded(#CHOPCOP_ARMR)
Streaming.MarkModelAsNoLongerNeeded(#CHOPCOP_LEGL)
Streaming.MarkModelAsNoLongerNeeded(#CHOPCOP_LEGR)
Streaming.MarkModelAsNoLongerNeeded(#CHOPCOP_HEAD)
Streaming.MarkModelAsNoLongerNeeded(#CHOPCOP_TORSO)
Streaming.MarkModelAsNoLongerNeeded(#WD_FENCE_ANIM)
Streaming.RemoveAnimation("CAR_CHAT")
Streaming.RemoveAnimation("MD_END")
Streaming.MarkModelAsNoLongerNeeded(514)
Streaming.MarkModelAsNoLongerNeeded(584)
Game.SetMaxWantedLevel(4)
Car.Delete(40@)
Blip.Remove(285@)
Blip.Remove(286@)
Blip.Remove(287@)
Blip.Remove(288@)
Blip.Remove(289@)
Blip.Remove(290@)
Blip.Remove(291@)
Blip.Remove(292@)
if 
  Player.IsPlaying($player1)
goto_if_false @DRUGS4_68304
Pad.SetPlayerDuckButton($player1, True)
Pad.SetPlayerFireButton($player1, True)
Char.ShutUp($scplayer, False)

:DRUGS4_68304
if 
  not Char.IsDead(218@)
goto_if_false @DRUGS4_68325
Char.RemoveElegantly(218@)

:DRUGS4_68325
if 
  not Char.IsDead(219@)
goto_if_false @DRUGS4_68346
Char.RemoveElegantly(219@)

:DRUGS4_68346
Char.DetachFromCar($scplayer)
Char.SetProofs($scplayer, False, False, False, False, False)
World.RemoveAllScriptFires
Particle.Kill(237@)
Particle.Kill(240@)
Particle.Kill(241@)
Particle.Kill(242@)
World.SwitchEntryExit('MOTEL1', True)
Game.SetWantedMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SwitchEmergencyServices(True)
Weather.Release
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

//-------------Mission 38---------------
// Originally: The Green Sabre

:LA1FIN2
script_name 'LA1FIN2'
gosub @LA1FIN2_339
if 
  has_deatharrest_been_executed 
goto_if_false @LA1FIN2_38
gosub @LA1FIN2_19500

:LA1FIN2_38
gosub @LA1FIN2_22024
terminate_this_script 
if 
  100@ == 99
goto_if_false @LA1FIN2_339
36@ = Char.Create(PedType.Gang2, 290, 2752.341, -1948.867, 16.3125)
238@ = Char.Create(PedType.Gang2, 290, 2752.341, -1948.867, 16.3125)
243@ = Char.Create(PedType.Gang2, 290, 2752.341, -1948.867, 16.3125)
235@ = Car.Create(401, 1650.115, -1055.243, 22.8984)
233@ = Car.Create(475, 1643.983, -1069.01, 22.8984)
280@ = Car.Create(475, 1643.983, -1069.01, 22.8984)
41@ = Car.Create(475, 1643.983, -1069.01, 22.8984)
231@ = DecisionMakerChar.Copy(65539)
232@ = DecisionMakerChar.Copy(65539)
51@ = Blip.AddForChar(36@)
50@ = Blip.AddForCoord(1648.714, -1050.094, 22.9141)
122@ = Car.Create(475, 1643.983, -1069.01, 22.8984)
124@ = Car.Create(596, 0.0, 0.0, 0.0)
125@ = Char.CreateInsideCar(122@, PedType.CivMale, 280)

:LA1FIN2_339
Stat.RegisterMissionGiven
$onmission = 1
84@ = 1
494@ = 1
Game.SetScriptLimitToGangSize(0)

:LA1FIN2_366
wait 0
if 
is_ps2_keyboard_key_pressed 11
goto_if_false @LA1FIN2_390
save_int_to_debug_file 100@

:LA1FIN2_390
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @LA1FIN2_412
goto @LA1FIN2_19517

:LA1FIN2_412
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @LA1FIN2_461
Char.SetCoordinates($scplayer, 1650.456, -1039.614, 22.8984)
100@ = 4
101@ = 0

:LA1FIN2_461
if 
is_ps2_keyboard_key_just_pressed 10
goto_if_false @LA1FIN2_625
100@ = 7
267@ = 0

:LA1FIN2_490
if 
  6 > 267@
goto_if_false @LA1FIN2_551
if 
  not Char.IsDead(243@(267@,6i))
goto_if_false @LA1FIN2_537
Task.Die(243@(267@,6i))

:LA1FIN2_537
267@ += 1
goto @LA1FIN2_490

:LA1FIN2_551
if 
  not Car.IsDead(122@)
goto_if_false @LA1FIN2_572
Car.Delete(122@)

:LA1FIN2_572
if 
  not Car.IsDead(123@)
goto_if_false @LA1FIN2_593
Car.Delete(123@)

:LA1FIN2_593
if 
  not Car.IsDead(124@)
goto_if_false @LA1FIN2_614
Car.Delete(124@)

:LA1FIN2_614
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)

:LA1FIN2_625
if 
is_ps2_keyboard_key_pressed 7
goto_if_false @LA1FIN2_660
Char.SetCoordinates($scplayer, 1624.537, -1863.438, 12.5549)

:LA1FIN2_660
switch_start 100@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @LA1FIN2_928 {caseNum1} 0 {caseLabel1} @LA1FIN2_788 {caseNum2} 1 {caseLabel2} @LA1FIN2_809 {caseNum3} 2 {caseLabel3} @LA1FIN2_830 {caseNum4} 3 {caseLabel4} @LA1FIN2_844 {caseNum5} 4 {caseLabel5} @LA1FIN2_858 {caseNum6} 5 {caseLabel6} @LA1FIN2_872 {caseNum7} 6 {caseLabel7} @LA1FIN2_886
switch_continued 7 {caseLabel1} @LA1FIN2_900 {caseNum2} 8 {caseLabel2} @LA1FIN2_914 {caseNum3} -1 {caseLabel3} @LA1FIN2_928 {caseNum4} -1 {caseLabel4} @LA1FIN2_928 {caseNum5} -1 {caseLabel5} @LA1FIN2_928 {caseNum6} -1 {caseLabel6} @LA1FIN2_928 {caseNum7} -1 {caseLabel7} @LA1FIN2_928 {caseNum8} -1 {caseLabel8} @LA1FIN2_928 {caseNum9} -1 {caseLabel9} @LA1FIN2_928

:LA1FIN2_788
gosub @LA1FIN2_1257
100@ = 1
goto @LA1FIN2_928

:LA1FIN2_809
gosub @LA1FIN2_1314
100@ = 2
goto @LA1FIN2_928

:LA1FIN2_830
gosub @LA1FIN2_1795
goto @LA1FIN2_928

:LA1FIN2_844
gosub @LA1FIN2_2441
goto @LA1FIN2_928

:LA1FIN2_858
gosub @LA1FIN2_2993
goto @LA1FIN2_928

:LA1FIN2_872
gosub @LA1FIN2_3931
goto @LA1FIN2_928

:LA1FIN2_886
gosub @LA1FIN2_6195
goto @LA1FIN2_928

:LA1FIN2_900
gosub @LA1FIN2_9533
goto @LA1FIN2_928

:LA1FIN2_914
goto @LA1FIN2_19517
goto @LA1FIN2_928

:LA1FIN2_928
gosub @LA1FIN2_983
gosub @LA1FIN2_1044
gosub @LA1FIN2_17176
if 
  34@ == 1
goto_if_false @LA1FIN2_974
goto @LA1FIN2_19500

:LA1FIN2_974
goto @LA1FIN2_366
return 

:LA1FIN2_983
if 
  35@ == 1
goto_if_false @LA1FIN2_1040
if 
  Char.IsDead(36@)
goto_if_false @LA1FIN2_1040
34@ = 1
Text.Print('LA1_16', 4000, 1)

:LA1FIN2_1040
return 
return 

:LA1FIN2_1044
if 
  100@ > 1
goto_if_false @LA1FIN2_1255
if 
  Char.LocateAnyMeans3D($scplayer, 1650.645, -1059.435, 25.4852, 100.0, 100.0, 100.0, False)
goto_if_false @LA1FIN2_1131
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
goto @LA1FIN2_1145

:LA1FIN2_1131
World.SetPedDensityMultiplier(0.6)
World.SetCarDensityMultiplier(0.6)

:LA1FIN2_1145
set_lvar_int_to_lvar_int 280@ = 233@
85@ = 0
gosub @LA1FIN2_16307
set_lvar_int_to_lvar_int 280@ = 234@
85@ = 1
gosub @LA1FIN2_16307
set_lvar_int_to_lvar_int 280@ = 237@
85@ = 2
gosub @LA1FIN2_16307
set_lvar_int_to_lvar_int 280@ = 235@
85@ = 3
gosub @LA1FIN2_16307
set_lvar_int_to_lvar_int 280@ = 236@
85@ = 4
gosub @LA1FIN2_16307

:LA1FIN2_1255
return 

:LA1FIN2_1257
103@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
104@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.ClearEventResponse(104@, 36)
DecisionMakerChar.AddEventResponse(104@, 36, 1022, 0.0, 100.0, 0.0, 0.0, True, False)
return 

:LA1FIN2_1314
Text.LoadMissionText('LAFIN2')
Streaming.SetAreaVisible(1)
Cutscene.Load('FINAL2A')

:LA1FIN2_1340
if 
  not Cutscene.HasLoaded
goto_if_false @LA1FIN2_1364
wait 0
goto @LA1FIN2_1340

:LA1FIN2_1364
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:LA1FIN2_1373
if 
  not Cutscene.HasFinished
goto_if_false @LA1FIN2_1397
wait 0
goto @LA1FIN2_1373

:LA1FIN2_1397
Camera.DoFade(0, Fade.Out)

:LA1FIN2_1403
if 
  Camera.GetFadingStatus
goto_if_false @LA1FIN2_1427
wait 0
goto @LA1FIN2_1403

:LA1FIN2_1427
Cutscene.Clear
Streaming.SetAreaVisible(0)
Streaming.LoadScene(2518.789, -1677.22, 13.5079)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Char.SetCoordinates($scplayer, 2519.825, -1677.714, 13.7425)
Char.SetHeading($scplayer, 67.0)
Streaming.RequestModel(401)
Streaming.RequestModel(330)

:LA1FIN2_1494
if or
  not Streaming.HasModelLoaded(401)
  not Streaming.HasModelLoaded(330)
goto_if_false @LA1FIN2_1526
wait 0
goto @LA1FIN2_1494

:LA1FIN2_1526
40@ = Car.Create(401, 1625.087, -1857.438, 12.5549)
Car.ChangeColor(40@, 32, 1)
Car.FreezePosition(40@, True)
Car.SetProofs(40@, True, True, True, True, True)
Car.SetHeading(40@, 180.0)
wait 500
if 
  $range_cuts_watched == 1
goto_if_false @LA1FIN2_1635
Skip.SetUp(1642.299, -1869.643, 12.3906, 90.0)

:LA1FIN2_1635
Camera.DoFade(500, Fade.In)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2513.498, -1671.741, 13.2117, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2513.943, -1672.628, 13.3312, SwitchType.JumpCut)
Player.SetControl($player1, False)
131@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2514.989, -1674.08, 12.7225, MoveState.Walk, -1)
Task.Pause(-1, 1000)
Task.UseMobilePhone(-1, True)
Sequence.Close(131@)
Char.PerformSequence($scplayer, 131@)
Sequence.Clear(131@)
437@ = 17
set_lvar_int_to_lvar_int 120@ = TIMERA
120@ += 3500
113@ = 1
return 

:LA1FIN2_1795
if 
  113@ == 1
goto_if_false @LA1FIN2_1880
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 120@
goto_if_false @LA1FIN2_1880
if 
  437@ == 0
goto_if_false @LA1FIN2_1880
437@ = 18
set_lvar_int_to_lvar_int 120@ = TIMERA
120@ += 2500
113@ = 2

:LA1FIN2_1880
if 
  113@ == 2
goto_if_false @LA1FIN2_1968
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 120@
goto_if_false @LA1FIN2_1968
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
436@ = 1
437@ = 19
438@ = 11
113@ = 3

:LA1FIN2_1968
if 
  113@ == 3
goto_if_false @LA1FIN2_2131
if 
  437@ <> 0
goto_if_false @LA1FIN2_2035
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @LA1FIN2_2035
437@ = 0
436@ = 5

:LA1FIN2_2035
if 
  437@ == 0
goto_if_false @LA1FIN2_2131
if 
  436@ == 1
goto_if_false @LA1FIN2_2131
Task.UseMobilePhone($scplayer, False)
Streaming.MarkModelAsNoLongerNeeded(330)
113@ = 0
Text.Print('LA1_33', 7000, 1)
Blip.Remove(50@)
50@ = Blip.AddForCoord(1631.791, -1867.288, 12.5381)

:LA1FIN2_2131
if 
  101@ == 0
goto_if_false @LA1FIN2_2316
if 
  Char.LocateAnyMeans3D($scplayer, 1631.791, -1867.288, 12.5381, 4.0, 4.0, 4.0, True)
goto_if_false @LA1FIN2_2316
Skip.Clear
$range_cuts_watched = 1
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @LA1FIN2_2252
Player.SetControl($player1, False)
114@ = 1
set_lvar_int_to_lvar_int 115@ = TIMERA
115@ += 1500

:LA1FIN2_2252
Blip.Remove(50@)
if 
  not Car.IsDead(40@)
goto_if_false @LA1FIN2_2293
Blip.Remove(50@)
50@ = Blip.AddForCar(40@)
Blip.SetAsFriendly(50@, True)

:LA1FIN2_2293
Text.Print('LA1_35', 4000, 1)
101@ = 1

:LA1FIN2_2316
if 
  114@ == 1
goto_if_false @LA1FIN2_2372
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 115@
goto_if_false @LA1FIN2_2372
Task.LeaveAnyCar($scplayer)
Player.SetControl($player1, True)
114@ = 2

:LA1FIN2_2372
if 
  101@ == 1
goto_if_false @LA1FIN2_2439
if 
  not Car.IsDead(40@)
goto_if_false @LA1FIN2_2439
if 
  Char.IsInCar($scplayer, 40@)
goto_if_false @LA1FIN2_2439
Blip.Remove(50@)
Text.ClearPrints
100@ = 3

:LA1FIN2_2439
return 

:LA1FIN2_2441
Streaming.MarkModelAsNoLongerNeeded(401)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:LA1FIN2_2461
if 
  Camera.GetFadingStatus
goto_if_false @LA1FIN2_2485
wait 0
goto @LA1FIN2_2461

:LA1FIN2_2485
if 
  not Car.IsDead(40@)
goto_if_false @LA1FIN2_2508
Car.SetVisible(40@, False)

:LA1FIN2_2508
World.ClearAreaOfCars(1626.633, -1876.4, 16.8284, 1601.112, -1902.103, 10.6931)
World.ClearAreaOfChars(1626.633, -1876.4, 16.8284, 1601.112, -1902.103, 10.6931)
Blip.Remove(50@)
Player.MakeSafeForCutscene($player1)
Streaming.Switch(False)
Cutscene.Load('FINAL2B')

:LA1FIN2_2597
if 
  not Cutscene.HasLoaded
goto_if_false @LA1FIN2_2621
wait 0
goto @LA1FIN2_2597

:LA1FIN2_2621
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:LA1FIN2_2630
if 
  not Cutscene.HasFinished
goto_if_false @LA1FIN2_2654
wait 0
goto @LA1FIN2_2630

:LA1FIN2_2654
Camera.DoFade(0, Fade.Out)

:LA1FIN2_2660
if 
  Camera.GetFadingStatus
goto_if_false @LA1FIN2_2684
wait 0
goto @LA1FIN2_2660

:LA1FIN2_2684
Cutscene.Clear
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
if 
  not Car.IsDead(40@)
goto_if_false @LA1FIN2_2747
Car.SetVisible(40@, True)
Car.FreezePosition(40@, False)
Car.SetProofs(40@, False, False, False, False, False)
Car.MarkAsNoLongerNeeded(40@)

:LA1FIN2_2747
Blip.Remove(50@)
50@ = Blip.AddForCoord(1648.714, -1050.094, 22.9141)
Text.Print('LA1_8', 5000, 1)
$carhealth_f1 = 100
116@ = 1
117@ = Math.RandomIntInRange(4000, 8000)
add_int_lvar_to_int_lvar 117@ += TIMERA
Hud.DisplayCounterWithString($carhealth_f1, CounterDisplay.Bar, 'LA1_4')
117@ = Math.RandomIntInRange(4000, 8000)
add_int_lvar_to_int_lvar 117@ += TIMERA
Camera.DoFade(500, Fade.In)
if 
  not Car.IsDead(40@)
goto_if_false @LA1FIN2_2964
if 
  not Char.IsInCar($scplayer, 40@)
goto_if_false @LA1FIN2_2964
118@ = Car.GetDriver(40@)
if 
  not is_int_lvar_equal_to_int_var 118@ == $scplayer
goto_if_false @LA1FIN2_2946
if 
  not Char.IsDead(118@)
goto_if_false @LA1FIN2_2946
Char.Delete(118@)

:LA1FIN2_2946
Char.WarpIntoCar($scplayer, 40@)
Car.MarkAsNoLongerNeeded(40@)
Streaming.MarkModelAsNoLongerNeeded(401)

:LA1FIN2_2964
Task.LeaveAnyCar($scplayer)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
100@ = 4
101@ = 0
Game.SwitchEmergencyServices(False)
return 

:LA1FIN2_2993
gosub @LA1FIN2_13791
gosub @LA1FIN2_15316
if 
  119@ == 0
goto_if_false @LA1FIN2_3113
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if 
  $player_y > -1800.0
goto_if_false @LA1FIN2_3113
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @LA1FIN2_3113
437@ = 10
438@ = 2
119@ = 1
set_lvar_int_to_lvar_int 120@ = TIMERA
120@ += 6000

:LA1FIN2_3113
if 
  119@ == 1
goto_if_false @LA1FIN2_3187
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @LA1FIN2_3187
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 120@
goto_if_false @LA1FIN2_3187
437@ = 12
438@ = 5
119@ = 2

:LA1FIN2_3187
if and
  119@ > 0
  3 > 119@
goto_if_false @LA1FIN2_3256
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @LA1FIN2_3256
494@ = 0
437@ = 0
438@ = 0
119@ = 3

:LA1FIN2_3256
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 117@
goto_if_false @LA1FIN2_3440
if 
  not Char.IsDead(238@)
goto_if_false @LA1FIN2_3332
if 
  84@ == 1
goto_if_false @LA1FIN2_3324
Char.SetHealth(238@, $carhealth_f1)
84@ = 0

:LA1FIN2_3324
$carhealth_f1 = Char.GetHealth(238@)

:LA1FIN2_3332
117@ = Math.RandomIntInRange(4000, 8000)
add_int_lvar_to_int_lvar 117@ += TIMERA
121@ = Math.RandomIntInRange(4, 8)
sub_int_lvar_from_int_var $carhealth_f1 -= 121@
if 
  0 >= $carhealth_f1
goto_if_false @LA1FIN2_3416
$carhealth_f1 = 0
Text.Print('LA1_16', 4000, 1)
34@ = 1

:LA1FIN2_3416
if 
  not Char.IsDead(238@)
goto_if_false @LA1FIN2_3440
Char.SetHealth(238@, $carhealth_f1)

:LA1FIN2_3440
if 
  101@ == 0
goto_if_false @LA1FIN2_3664
if 
  255@ == 2
goto_if_false @LA1FIN2_3664
if 
  Char.LocateAnyMeans3D($scplayer, 1648.714, -1050.094, 22.9141, 4.0, 4.0, 4.0, True)
goto_if_false @LA1FIN2_3577
if 
  not Char.IsDead(238@)
goto_if_false @LA1FIN2_3570
Char.SetProofs(238@, True, True, True, True, True)
Char.SetProofs($scplayer, True, True, True, True, True)

:LA1FIN2_3570
101@ = 1

:LA1FIN2_3577
if 
  99@ == 6
goto_if_false @LA1FIN2_3664
if 
  not Char.IsDead(238@)
goto_if_false @LA1FIN2_3641
Char.SetProofs(238@, True, True, True, True, True)
Char.SetProofs($scplayer, True, True, True, True, True)

:LA1FIN2_3641
101@ = 1
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 2000

:LA1FIN2_3664
if 
  101@ == 1
goto_if_false @LA1FIN2_3727
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_3727
Blip.Remove(50@)
Player.SetControl($player1, False)
Camera.DoFade(800, Fade.Out)
101@ = 2

:LA1FIN2_3727
if 
  101@ == 2
goto_if_false @LA1FIN2_3929
if 
  not Camera.GetFadingStatus
goto_if_false @LA1FIN2_3929
100@ = 5
101@ = 0
set_lvar_int_to_lvar_int 481@ = 238@
286@ = 1
310@ = 9
290@ = 2440
291@ = 5629
292@ = 7974
293@ = 10516
294@ = 13463
295@ = 16047
296@ = 19236
297@ = 21747
298@ = 24483
300@ = 1
301@ = 2
302@ = 3
303@ = 4
304@ = 5
305@ = 6
306@ = 7
307@ = 8
308@ = 9

:LA1FIN2_3929
return 

:LA1FIN2_3931
gosub @LA1FIN2_15316
if 
  101@ > 2
goto_if_false @LA1FIN2_4010
if 
  not Camera.GetFadingStatus
goto_if_false @LA1FIN2_4010
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @LA1FIN2_4010
gosub @LA1FIN2_11408
101@ = 10
102@ = 0
436@ = 5

:LA1FIN2_4010
if 
  101@ == 0
goto_if_false @LA1FIN2_5066
101@ = 1
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1646.703, -1046.744, 25.6308, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1646.621, -1047.711, 25.3892, SwitchType.JumpCut)
Streaming.RequestAnimation("SWEET")
Camera.SetNearClip(0.1)
if 
  not Car.IsDead(235@)
goto_if_false @LA1FIN2_4214
if 
  Car.Locate3D(235@, 1647.249, -1053.482, 23.8804, 10.0, 10.0, 10.0, False)
goto_if_false @LA1FIN2_4214
Car.SetCoordinates(235@, 1649.555, -1055.767, 22.8984)
Car.SetHeading(235@, 329.5791)
Car.FreezePosition(235@, True)

:LA1FIN2_4214
if 
  not Car.IsDead(236@)
goto_if_false @LA1FIN2_4315
if 
  Car.Locate3D(236@, 1647.249, -1053.482, 23.8804, 10.0, 10.0, 10.0, False)
goto_if_false @LA1FIN2_4315
Car.SetCoordinates(236@, 1644.42, -1057.843, 22.9062)
Car.SetHeading(236@, 227.8)
Car.FreezePosition(236@, True)

:LA1FIN2_4315
if 
  not Car.IsDead(237@)
goto_if_false @LA1FIN2_4416
if 
  Car.Locate3D(237@, 1647.249, -1053.482, 23.8804, 10.0, 10.0, 10.0, False)
goto_if_false @LA1FIN2_4416
Car.SetCoordinates(237@, 1643.845, -1051.736, 22.9219)
Car.SetHeading(237@, 149.9008)
Car.FreezePosition(237@, True)

:LA1FIN2_4416
if 
  not Car.IsDead(233@)
goto_if_false @LA1FIN2_4510
if 
  Car.Locate3D(233@, 1647.249, -1053.482, 23.8804, 10.0, 10.0, 10.0, False)
goto_if_false @LA1FIN2_4510
Car.SetCoordinates(233@, 1640.603, -1071.537, 22.9141)
Car.SetHeading(233@, 61.7966)

:LA1FIN2_4510
if 
  not Car.IsDead(234@)
goto_if_false @LA1FIN2_4604
if 
  Car.Locate3D(234@, 1647.249, -1053.482, 23.8804, 10.0, 10.0, 10.0, False)
goto_if_false @LA1FIN2_4604
Car.SetCoordinates(234@, 1660.943, -1059.201, 22.9141)
Car.SetHeading(234@, 148.6633)

:LA1FIN2_4604
if 
  not Char.IsDead(238@)
goto_if_false @LA1FIN2_4628
Char.SetDecisionMaker(238@, 103@)

:LA1FIN2_4628
if 
  not Char.IsDead(239@)
goto_if_false @LA1FIN2_4703
Char.SetDecisionMaker(239@, 231@)
Char.SetCoordinates(239@, 1646.283, -1057.209, 22.8984)
Char.SetHeading(239@, 147.187)
Char.SetKindaStayInSamePlace(239@, False)
Char.SetStayInSamePlace(239@, True)
Task.ToggleDuck(239@, True)

:LA1FIN2_4703
if 
  not Char.IsDead(240@)
goto_if_false @LA1FIN2_4778
Char.SetDecisionMaker(240@, 231@)
Char.SetCoordinates(240@, 1644.102, -1055.319, 22.9062)
Char.SetHeading(240@, 117.4901)
Char.SetKindaStayInSamePlace(240@, False)
Char.SetStayInSamePlace(240@, True)
Task.ToggleDuck(240@, True)

:LA1FIN2_4778
if 
  not Char.IsDead(241@)
goto_if_false @LA1FIN2_4846
Char.SetDecisionMaker(241@, 231@)
Char.SetCoordinates(241@, 1646.229, -1051.182, 23.9257)
Char.SetHeading(241@, 90.0187)
Char.SetKindaStayInSamePlace(241@, False)
Char.SetStayInSamePlace(241@, True)

:LA1FIN2_4846
if 
  not Char.IsDead(243@)
goto_if_false @LA1FIN2_4890
Char.SetCoordinates(243@, 1622.276, -1044.679, 22.8984)
Task.TurnCharToFaceChar(243@, $scplayer)

:LA1FIN2_4890
if 
  not Char.IsDead(244@)
goto_if_false @LA1FIN2_4934
Char.SetCoordinates(244@, 1631.523, -1060.417, 23.011)
Task.TurnCharToFaceChar(244@, $scplayer)

:LA1FIN2_4934
if 
  not Char.IsDead(245@)
goto_if_false @LA1FIN2_4978
Char.SetCoordinates(245@, 1638.76, -1072.36, 22.8984)
Task.TurnCharToFaceChar(245@, $scplayer)

:LA1FIN2_4978
if 
  not Char.IsDead(246@)
goto_if_false @LA1FIN2_5022
Char.SetCoordinates(246@, 1649.349, -1077.868, 22.9062)
Task.TurnCharToFaceChar(246@, $scplayer)

:LA1FIN2_5022
if 
  not Char.IsDead(247@)
goto_if_false @LA1FIN2_5066
Char.SetCoordinates(247@, 1663.619, -1058.419, 22.8984)
Task.TurnCharToFaceChar(247@, $scplayer)

:LA1FIN2_5066
if 
  101@ == 1
goto_if_false @LA1FIN2_5118
if 
  Streaming.HasAnimationLoaded("SWEET")
goto_if_false @LA1FIN2_5118
Camera.DoFade(1000, Fade.In)
101@ = 2

:LA1FIN2_5118
if 
  101@ == 2
goto_if_false @LA1FIN2_5456
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @LA1FIN2_5179
Char.WarpFromCarToCoord($scplayer, 1648.034, -1053.956, 22.9)
goto @LA1FIN2_5199

:LA1FIN2_5179
Char.SetCoordinates($scplayer, 1648.034, -1053.956, 22.9)

:LA1FIN2_5199
Char.SetHeading($scplayer, 150.0)
Char.SetCollision($scplayer, False)
87@ = Char.GetCurrentWeapon($scplayer)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
if 
  not Char.IsDead(238@)
goto_if_false @LA1FIN2_5341
Char.SetCoordinates(238@, 1647.71, -1054.517, 22.9)
Char.SetHeading(238@, -30.0)
Char.RemoveAllWeapons(238@)
Char.SetCurrentWeapon(238@, WeaponType.Unarmed)
Char.SetCollision(238@, False)
Char.ClearTasksImmediately(238@)
Task.PlayAnimNonInterruptable(238@, "LAFIN_SWEET", "SWEET", 4.0, False, False, False, True, -2)

:LA1FIN2_5341
Task.PlayAnimNonInterruptable($scplayer, "LAFIN_PLAYER", "SWEET", 4.0, False, False, False, True, -2)
Camera.SetFixedPosition(1647.577, -1048.104, 25.4666, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1647.281, -1048.998, 25.1312, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 2500
101@ = 4

:LA1FIN2_5456
if 
  101@ == 4
goto_if_false @LA1FIN2_5590
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_5590
if 
  not Char.IsDead(238@)
goto_if_false @LA1FIN2_5516
Char.SetBleeding(238@, True)

:LA1FIN2_5516
Camera.SetFixedPosition(1649.2, -1053.592, 23.6475, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1648.279, -1053.97, 23.7426, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 3700
101@ = 5

:LA1FIN2_5590
if 
  101@ == 5
goto_if_false @LA1FIN2_5650
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_5650
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 7800
101@ = 6

:LA1FIN2_5650
if 
  101@ == 6
goto_if_false @LA1FIN2_5710
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_5710
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 5000
101@ = 7

:LA1FIN2_5710
if 
  101@ == 7
goto_if_false @LA1FIN2_5770
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_5770
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 2000
101@ = 8

:LA1FIN2_5770
if 
  101@ == 8
goto_if_false @LA1FIN2_5795
gosub @LA1FIN2_11408

:LA1FIN2_5795
if 
  101@ == 9
goto_if_false @LA1FIN2_5924
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_5924
Camera.SetFixedPosition(1651.996, -1051.222, 26.061, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1651.089, -1051.534, 25.778, SwitchType.JumpCut)
Char.SetCurrentWeapon($scplayer, 87@)
Char.SetHeading($scplayer, 90.0)
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 6500
101@ = 10

:LA1FIN2_5924
if 
  101@ == 10
goto_if_false @LA1FIN2_6193
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_6193
Char.SetCurrentWeapon($scplayer, 87@)
Char.SetProofs($scplayer, False, False, False, False, False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Char.SetCollision($scplayer, True)
Char.ClearTasksImmediately($scplayer)
Hud.ClearCounter($carhealth_f1)
if 
  not Char.IsDead(238@)
goto_if_false @LA1FIN2_6092
Task.PlayAnimNonInterruptable(238@, "SWEET_INJUREDLOOP", "SWEET", 1000.0, True, False, False, False, -2)
Char.SetCollision(238@, True)
Char.FreezePosition(238@, True)

:LA1FIN2_6092
if 
  not Car.IsDead(235@)
goto_if_false @LA1FIN2_6115
Car.FreezePosition(235@, False)

:LA1FIN2_6115
if 
  not Car.IsDead(236@)
goto_if_false @LA1FIN2_6138
Car.FreezePosition(236@, False)

:LA1FIN2_6138
if 
  not Car.IsDead(237@)
goto_if_false @LA1FIN2_6161
Car.FreezePosition(237@, False)

:LA1FIN2_6161
100@ = 6
101@ = 0
Text.ClearPrints
Text.Print('LA1_31', 5000, 1)

:LA1FIN2_6193
return 

:LA1FIN2_6195
gosub @LA1FIN2_13791
gosub @LA1FIN2_15316
if 
  101@ == 0
goto_if_false @LA1FIN2_6257
if 
  99@ == 4
goto_if_false @LA1FIN2_6257
Streaming.RequestModel(413)
101@ = 1

:LA1FIN2_6257
if 
  101@ == 1
goto_if_false @LA1FIN2_6737
if 
  Streaming.HasModelLoaded(413)
goto_if_false @LA1FIN2_6737
46@ = Car.Create(413, 1553.697, -1046.83, 22.7992)
Text.ClearPrints
Text.Print('LA1_36', 5000, 1)
269@ = 0

:LA1FIN2_6339
if 
  not Char.IsDead(243@(269@,6i))
goto_if_false @LA1FIN2_6373
269@ += 1
goto @LA1FIN2_6339

:LA1FIN2_6373
243@(269@,6i) = Char.CreateInsideCar(46@, PedType.Mission2, 102)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 37@ = 269@
gosub @LA1FIN2_15215
Char.SetOnlyDamagedByPlayer(243@(269@,6i), True)
Car.SetHeading(46@, 270.0)
105@ = Sequence.Open()
Task.CarDriveToCoord(-1, 46@, 1614.755, -1050.441, 22.9141, 25.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(-1, 46@, 1630.534, -1067.925, 22.9141, 25.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Sequence.Close(105@)
Char.PerformSequence(243@(269@,6i), 105@)
Sequence.Clear(105@)
Car.SetForwardSpeed(46@, 20.0)
269@ += 1

:LA1FIN2_6547
if 
  not Char.IsDead(243@(269@,6i))
goto_if_false @LA1FIN2_6581
269@ += 1
goto @LA1FIN2_6547

:LA1FIN2_6581
243@(269@,6i) = Char.CreateAsPassenger(46@, PedType.Mission2, 102, 0)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 38@ = 269@
gosub @LA1FIN2_15215
Char.SetOnlyDamagedByPlayer(243@(269@,6i), True)
269@ += 1

:LA1FIN2_6644
if 
  not Char.IsDead(243@(269@,6i))
goto_if_false @LA1FIN2_6678
269@ += 1
goto @LA1FIN2_6644

:LA1FIN2_6678
243@(269@,6i) = Char.CreateAsPassenger(46@, PedType.Mission2, 102, 1)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 39@ = 269@
gosub @LA1FIN2_15215
101@ = 2
99@ -= 3

:LA1FIN2_6737
if 
  101@ == 2
goto_if_false @LA1FIN2_7627
if 
  97@ == 0
goto_if_false @LA1FIN2_6842
if 
  not Car.IsDead(46@)
goto_if_false @LA1FIN2_6842
81@ = Car.GetHealth(46@)
if 
  980 > 81@
goto_if_false @LA1FIN2_6842
if 
  Car.HasBeenDamagedByChar(46@, $scplayer)
goto_if_false @LA1FIN2_6842
97@ = 1

:LA1FIN2_6842
if 
  97@ == 1
goto_if_false @LA1FIN2_7045
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 95@
goto_if_false @LA1FIN2_7045
if and
  not Car.IsDead(46@)
  not Char.IsDead(243@(37@,6i))
goto_if_false @LA1FIN2_7045
270@, 271@, 272@ = Car.GetCoordinates(46@)
276@ = Car.GetHeading(46@)
set_lvar_float_to_lvar_float 277@ = 276@
277@ -= 20.0
276@ -= 90.0
111@ = Math.Cos(276@)
112@ = Math.Sin(276@)
111@ *= 20.0
112@ *= 20.0
sub_float_lvar_from_float_lvar 270@ -= 112@
add_float_lvar_to_float_lvar 271@ += 111@
Task.CarDriveToCoord(243@(37@,6i), 46@, 270@, 271@, 272@, 30.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
97@ = 2

:LA1FIN2_7045
if 
  97@ == 2
goto_if_false @LA1FIN2_7129
if 
  not Car.IsDead(46@)
goto_if_false @LA1FIN2_7129
276@ = Car.GetHeading(46@)
if 
  is_float_lvar_greater_than_float_lvar 277@ > 276@
goto_if_false @LA1FIN2_7129
97@ = 3
set_lvar_int_to_lvar_int 95@ = TIMERA
95@ += 800

:LA1FIN2_7129
if 
  97@ == 3
goto_if_false @LA1FIN2_7225
if 
  not Car.IsDead(46@)
goto_if_false @LA1FIN2_7183
Car.AddToRotationVelocity(46@, 0.0, -0.35, 0.2)

:LA1FIN2_7183
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 95@
goto_if_false @LA1FIN2_7225
97@ = 4
set_lvar_int_to_lvar_int 95@ = TIMERA
95@ += 1000

:LA1FIN2_7225
if 
  97@ == 4
goto_if_false @LA1FIN2_7307
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 95@
goto_if_false @LA1FIN2_7307
if 
  not Char.IsDead(243@(37@,6i))
goto_if_false @LA1FIN2_7307
Char.ClearTasks(243@(37@,6i))
Task.LeaveAnyCar(243@(37@,6i))
97@ = 5

:LA1FIN2_7307
if 
  94@ == 0
goto_if_false @LA1FIN2_7377
if 
  not Car.IsDead(46@)
goto_if_false @LA1FIN2_7377
276@ = Car.GetSpeed(46@)
if 
  0.5 > 276@
goto_if_false @LA1FIN2_7377
94@ = 1

:LA1FIN2_7377
if 
  94@ == 1
goto_if_false @LA1FIN2_7604
if 
  not Car.IsDead(46@)
goto_if_false @LA1FIN2_7604
if 
  not Char.IsDead(243@(37@,6i))
goto_if_false @LA1FIN2_7473
Char.SetStayInSamePlace(243@(37@,6i), False)
Char.SetKindaStayInSamePlace(243@(37@,6i), False)
Task.LeaveAnyCar(243@(37@,6i))
75@(37@,6i) = 0

:LA1FIN2_7473
if 
  not Char.IsDead(243@(38@,6i))
goto_if_false @LA1FIN2_7535
Char.SetStayInSamePlace(243@(38@,6i), False)
Char.SetKindaStayInSamePlace(243@(38@,6i), False)
Task.LeaveAnyCar(243@(38@,6i))
75@(38@,6i) = 0

:LA1FIN2_7535
if 
  not Char.IsDead(243@(39@,6i))
goto_if_false @LA1FIN2_7597
Char.SetStayInSamePlace(243@(39@,6i), False)
Char.SetKindaStayInSamePlace(243@(39@,6i), False)
Task.LeaveAnyCar(243@(39@,6i))
75@(39@,6i) = 0

:LA1FIN2_7597
101@ = 3

:LA1FIN2_7604
if 
  Car.IsDead(46@)
goto_if_false @LA1FIN2_7627
101@ = 3

:LA1FIN2_7627
if 
  101@ == 3
goto_if_false @LA1FIN2_7987
if 
  75@(37@,6i) == 1
goto_if_false @LA1FIN2_7742
if 
  not Char.IsDead(243@(37@,6i))
goto_if_false @LA1FIN2_7742
85@ = Char.GetScriptTaskStatus(243@(37@,6i), 1491)
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_7742
75@(37@,6i) = 0
Char.SetKindaStayInSamePlace(243@(37@,6i), True)

:LA1FIN2_7742
if 
  75@(38@,6i) == 1
goto_if_false @LA1FIN2_7839
if 
  not Char.IsDead(243@(38@,6i))
goto_if_false @LA1FIN2_7839
85@ = Char.GetScriptTaskStatus(243@(38@,6i), 1491)
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_7839
75@(38@,6i) = 0
Char.SetKindaStayInSamePlace(243@(38@,6i), True)

:LA1FIN2_7839
if 
  75@(39@,6i) == 1
goto_if_false @LA1FIN2_7936
if 
  not Char.IsDead(243@(39@,6i))
goto_if_false @LA1FIN2_7936
85@ = Char.GetScriptTaskStatus(243@(39@,6i), 1491)
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_7936
75@(39@,6i) = 0
Char.SetKindaStayInSamePlace(243@(39@,6i), True)

:LA1FIN2_7936
if and
  75@(38@,6i) == 0
  75@(39@,6i) == 0
  75@(37@,6i) == 0
goto_if_false @LA1FIN2_7987
101@ = 4

:LA1FIN2_7987
if 
  101@ == 4
goto_if_false @LA1FIN2_8476
if 
  99@ >= 4
goto_if_false @LA1FIN2_8476
47@ = Car.Create(413, 1525.366, -1022.267, 22.9105)
Text.ClearPrints
Text.Print('LA1_37', 5000, 1)
269@ = 0

:LA1FIN2_8071
if 
  not Char.IsDead(243@(269@,6i))
goto_if_false @LA1FIN2_8105
269@ += 1
goto @LA1FIN2_8071

:LA1FIN2_8105
243@(269@,6i) = Char.CreateInsideCar(47@, PedType.Mission2, 102)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 37@ = 269@
gosub @LA1FIN2_15215
Car.SetHeading(47@, 270.0)
105@ = Sequence.Open()
Task.CarDriveToCoord(-1, 47@, 1637.666, -1021.644, 22.9141, 25.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(-1, 47@, 1651.127, -1028.523, 22.9141, 25.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Sequence.Close(105@)
Char.PerformSequence(243@(269@,6i), 105@)
Sequence.Clear(105@)
Car.SetForwardSpeed(47@, 20.0)
269@ += 1

:LA1FIN2_8268
if 
  not Char.IsDead(243@(269@,6i))
goto_if_false @LA1FIN2_8302
269@ += 1
goto @LA1FIN2_8268

:LA1FIN2_8302
243@(269@,6i) = Char.CreateAsPassenger(47@, PedType.Mission2, 102, 0)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 38@ = 269@
gosub @LA1FIN2_15215
Char.SetOnlyDamagedByPlayer(243@(269@,6i), True)
269@ += 1

:LA1FIN2_8365
if 
  not Char.IsDead(243@(269@,6i))
goto_if_false @LA1FIN2_8399
269@ += 1
goto @LA1FIN2_8365

:LA1FIN2_8399
243@(269@,6i) = Char.CreateAsPassenger(47@, PedType.Mission2, 102, 1)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 39@ = 269@
gosub @LA1FIN2_15215
Char.SetOnlyDamagedByPlayer(243@(269@,6i), True)
94@ = 0
101@ = 5
99@ -= 3

:LA1FIN2_8476
if 
  101@ == 5
goto_if_false @LA1FIN2_8871
if 
  94@ == 0
goto_if_false @LA1FIN2_8564
if 
  not Car.IsDead(47@)
goto_if_false @LA1FIN2_8564
276@ = Car.GetSpeed(47@)
if 
  0.5 > 276@
goto_if_false @LA1FIN2_8564
94@ = 1

:LA1FIN2_8564
if 
  94@ == 1
goto_if_false @LA1FIN2_8848
if 
  not Car.IsDead(47@)
goto_if_false @LA1FIN2_8848
if 
  not Char.IsDead(243@(37@,6i))
goto_if_false @LA1FIN2_8679
Task.GoStraightToCoord(243@(37@,6i), 1654.968, -1041.372, 22.8984, MoveState.Run, -2)
Char.SetStayInSamePlace(243@(37@,6i), False)
Char.SetKindaStayInSamePlace(243@(37@,6i), False)
75@(37@,6i) = 1

:LA1FIN2_8679
if 
  not Char.IsDead(243@(38@,6i))
goto_if_false @LA1FIN2_8760
Task.GoStraightToCoord(243@(38@,6i), 1650.469, -1041.517, 22.8984, MoveState.Run, -2)
Char.SetStayInSamePlace(243@(38@,6i), False)
Char.SetKindaStayInSamePlace(243@(38@,6i), False)
75@(38@,6i) = 1

:LA1FIN2_8760
if 
  not Char.IsDead(243@(39@,6i))
goto_if_false @LA1FIN2_8841
Task.GoStraightToCoord(243@(39@,6i), 1640.806, -1041.555, 22.8984, MoveState.Run, -2)
Char.SetStayInSamePlace(243@(39@,6i), False)
Char.SetKindaStayInSamePlace(243@(39@,6i), False)
75@(39@,6i) = 1

:LA1FIN2_8841
101@ = 6

:LA1FIN2_8848
if 
  Car.IsDead(47@)
goto_if_false @LA1FIN2_8871
101@ = 6

:LA1FIN2_8871
if 
  101@ == 6
goto_if_false @LA1FIN2_9231
if 
  75@(37@,6i) == 1
goto_if_false @LA1FIN2_8986
if 
  not Char.IsDead(243@(37@,6i))
goto_if_false @LA1FIN2_8986
85@ = Char.GetScriptTaskStatus(243@(37@,6i), 1491)
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_8986
75@(37@,6i) = 0
Char.SetKindaStayInSamePlace(243@(37@,6i), True)

:LA1FIN2_8986
if 
  75@(38@,6i) == 1
goto_if_false @LA1FIN2_9083
if 
  not Char.IsDead(243@(38@,6i))
goto_if_false @LA1FIN2_9083
85@ = Char.GetScriptTaskStatus(243@(38@,6i), 1491)
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_9083
75@(38@,6i) = 0
Char.SetKindaStayInSamePlace(243@(38@,6i), True)

:LA1FIN2_9083
if 
  75@(39@,6i) == 1
goto_if_false @LA1FIN2_9180
if 
  not Char.IsDead(243@(39@,6i))
goto_if_false @LA1FIN2_9180
85@ = Char.GetScriptTaskStatus(243@(39@,6i), 1491)
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_9180
75@(39@,6i) = 0
Char.SetKindaStayInSamePlace(243@(39@,6i), True)

:LA1FIN2_9180
if and
  75@(38@,6i) == 0
  75@(39@,6i) == 0
  75@(37@,6i) == 0
goto_if_false @LA1FIN2_9231
101@ = 8

:LA1FIN2_9231
if 
  101@ == 8
goto_if_false @LA1FIN2_9339
if 
  99@ >= 3
goto_if_false @LA1FIN2_9339
Text.ClearPrints
Text.Print('LA1_38', 5000, 1)
gosub @LA1FIN2_12007
99@ -= 3
101@ = 9
75@(38@,6i) = 1
75@(39@,6i) = 1
75@(37@,6i) = 1

:LA1FIN2_9339
if 
  101@ == 9
goto_if_false @LA1FIN2_9478
gosub @LA1FIN2_13115
269@ = 0
99@ = 0

:LA1FIN2_9378
if 
  6 > 269@
goto_if_false @LA1FIN2_9437
if 
  Char.IsDead(243@(269@,6i))
goto_if_false @LA1FIN2_9423
99@ += 1

:LA1FIN2_9423
269@ += 1
goto @LA1FIN2_9378

:LA1FIN2_9437
if 
  99@ >= 6
goto_if_false @LA1FIN2_9478
101@ = 10
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 1500

:LA1FIN2_9478
if 
  101@ == 10
goto_if_false @LA1FIN2_9531
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_9531
101@ = 0
100@ = 7
Text.ClearHelp

:LA1FIN2_9531
return 

:LA1FIN2_9533
267@ = 0

:LA1FIN2_9540
if 
  3 > 267@
goto_if_false @LA1FIN2_9755
if 
  128@(267@,3i) == 1
goto_if_false @LA1FIN2_9741
if 
  not Car.IsDead(122@(267@,3i))
goto_if_false @LA1FIN2_9741
if 
  not Car.IsPlaybackGoingOn(122@(267@,3i))
goto_if_false @LA1FIN2_9741
if 
  not Char.IsDead(125@(267@,3i))
goto_if_false @LA1FIN2_9741
131@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.AimGunAtCoord(-1, 1646.332, -1053.721, 23.385, 10000)
Sequence.Close(131@)
Char.PerformSequence(125@(267@,3i), 131@)
Sequence.Clear(131@)
128@(267@,3i) = 2
132@ = Char.GetScriptTaskStatus($scplayer, 1476)
if 
  is_int_lvar_equal_to_constant 132@ == 7
goto_if_false @LA1FIN2_9741
Task.HandsUp($scplayer, 15000)

:LA1FIN2_9741
267@ += 1
goto @LA1FIN2_9540

:LA1FIN2_9755
if 
  101@ == 0
goto_if_false @LA1FIN2_9874
Game.SetRelationship(RelationshipType.Like, PedType.Mission1, PedType.Mission2)
Game.SetRelationship(RelationshipType.Like, PedType.Mission3, PedType.Mission1)
Game.SetRelationship(RelationshipType.Like, PedType.Mission3, PedType.Player1)
Camera.DoFade(500, Fade.Out)
Streaming.RequestCarRecording(162)
Streaming.RequestCarRecording(163)
Streaming.RequestCarRecording(650)
Streaming.RequestModel(596)
Streaming.RequestModel(280)
Streaming.RequestModel(346)
Streaming.RequestAnimation("POLICE")
101@ = 1
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 2000
35@ = 0

:LA1FIN2_9874
if 
  101@ == 1
goto_if_false @LA1FIN2_9996
if 
  not Camera.GetFadingStatus
goto_if_false @LA1FIN2_9996
if and
  Streaming.HasCarRecordingBeenLoaded(162)
  Streaming.HasCarRecordingBeenLoaded(163)
  Streaming.HasCarRecordingBeenLoaded(650)
goto_if_false @LA1FIN2_9996
if and
  Streaming.HasModelLoaded(596)
  Streaming.HasModelLoaded(280)
  Streaming.HasModelLoaded(346)
  Streaming.HasAnimationLoaded("POLICE")
goto_if_false @LA1FIN2_9996
Streaming.LoadSceneInDirection(1584.291, -1143.877, 23.8226, 180.0)
101@ = 2

:LA1FIN2_9996
if 
  101@ == 2
goto_if_false @LA1FIN2_10040
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_10040
101@ = 3

:LA1FIN2_10040
if 
  101@ == 3
goto_if_false @LA1FIN2_10369
122@ = Car.Create(596, 0.0, 0.0, 0.0)
123@ = Car.Create(596, 0.0, 0.0, 0.0)
124@ = Car.Create(596, 0.0, 0.0, 0.0)
125@ = Char.CreateInsideCar(122@, PedType.CivMale, 280)
126@ = Char.CreateInsideCar(123@, PedType.CivMale, 280)
127@ = Char.CreateInsideCar(124@, PedType.CivMale, 280)
Char.GiveWeapon(125@, WeaponType.Pistol, 99999)
Char.GiveWeapon(126@, WeaponType.Pistol, 99999)
Char.GiveWeapon(127@, WeaponType.Pistol, 99999)
Car.SwitchSiren(122@, True)
Car.SwitchSiren(123@, True)
Car.SwitchSiren(124@, True)
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(1584.291, -1143.877, 23.8226, 1584.291, -1143.877, 23.8226, 3000, True)
Camera.SetVectorTrack(1583.904, -1144.799, 23.802, 1585.228, -1144.223, 23.802, 3000, True)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Char.SetCoordinates($scplayer, 1647.222, -1053.363, 22.9815)
Car.StartPlayback(122@, 162)
101@ = 4
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 300

:LA1FIN2_10369
if 
  101@ == 4
goto_if_false @LA1FIN2_10542
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_10542
Camera.DoFade(600, Fade.In)
if and
  not Car.IsDead(123@)
  not Car.IsDead(124@)
goto_if_false @LA1FIN2_10519
if and
  Streaming.HasCarRecordingBeenLoaded(162)
  Streaming.HasCarRecordingBeenLoaded(163)
  Streaming.HasCarRecordingBeenLoaded(650)
goto_if_false @LA1FIN2_10504
Car.StartPlayback(123@, 163)
Car.StartPlayback(124@, 650)
128@ = 1
129@ = 1
130@ = 1
goto @LA1FIN2_10519

:LA1FIN2_10504
Streaming.RequestCarRecording(162)
Streaming.RequestCarRecording(163)
Streaming.RequestCarRecording(650)

:LA1FIN2_10519
101@ = 5
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 2700

:LA1FIN2_10542
if 
  101@ == 5
goto_if_false @LA1FIN2_11058
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_11058
133@ = Char.Create(PedType.Mission3, 102, 1648.907, -1063.17, 22.99)
134@ = Char.Create(PedType.Mission3, 102, 1639.755, -1067.994, 22.9478)
135@ = Char.Create(PedType.Mission3, 102, 1632.445, -1058.078, 23.0987)
136@ = Char.Create(PedType.Mission3, 102, 1640.3, -1069.299, 22.9448)
Task.FleePoint(133@, 1646.332, -1053.721, 23.385, 100.0, 15000)
Task.FleePoint(134@, 1646.332, -1053.721, 23.385, 100.0, 15000)
Task.FleePoint(135@, 1646.332, -1053.721, 23.385, 100.0, 15000)
Task.FleePoint(136@, 1646.332, -1053.721, 23.385, 100.0, 15000)
if 
  not Char.IsDead(239@)
goto_if_false @LA1FIN2_10870
Char.ClearTasksImmediately(239@)
Char.SetStayInSamePlace(239@, False)
Char.SetKindaStayInSamePlace(239@, False)
Char.SetCoordinates(239@, 1649.465, -1059.308, 22.8984)
Task.FleePoint(239@, 1646.332, -1053.721, 23.385, 100.0, 15000)

:LA1FIN2_10870
if 
  not Char.IsDead(240@)
goto_if_false @LA1FIN2_10953
Char.ClearTasksImmediately(240@)
Char.SetStayInSamePlace(240@, False)
Char.SetKindaStayInSamePlace(240@, False)
Char.SetCoordinates(240@, 1642.081, -1057.882, 22.9062)
Task.FleePoint(240@, 1646.332, -1053.721, 23.385, 100.0, 15000)

:LA1FIN2_10953
if 
  not Char.IsDead(241@)
goto_if_false @LA1FIN2_11036
Char.ClearTasksImmediately(241@)
Char.SetStayInSamePlace(241@, False)
Char.SetKindaStayInSamePlace(241@, False)
Char.SetCoordinates(241@, 1640.84, -1051.631, 22.9062)
Task.FleePoint(241@, 1646.332, -1053.721, 23.385, 100.0, 15000)

:LA1FIN2_11036
101@ = 6
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 100

:LA1FIN2_11058
if 
  101@ == 6
goto_if_false @LA1FIN2_11171
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_11171
Camera.ResetNewScriptables
Camera.SetFixedPosition(1648.645, -1049.357, 26.0388, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1648.533, -1050.337, 25.8716, SwitchType.JumpCut)
101@ = 8
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 6500

:LA1FIN2_11171
if 
  101@ == 8
goto_if_false @LA1FIN2_11315
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_11315
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(1648.645, -1049.357, 26.0388, 1662.257, -1029.206, 46.3953, 7500, True)
Camera.SetVectorTrack(1648.533, -1050.337, 25.8716, 1661.88, -1029.896, 45.7777, 7500, True)
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 6000
101@ = 9

:LA1FIN2_11315
if 
  101@ == 9
goto_if_false @LA1FIN2_11366
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_11366
Camera.DoFade(1500, Fade.Out)
101@ = 10

:LA1FIN2_11366
if 
  101@ == 10
goto_if_false @LA1FIN2_11406
if 
  not Camera.GetFadingStatus
goto_if_false @LA1FIN2_11406
100@ = 8
Camera.ResetNewScriptables

:LA1FIN2_11406
return 

:LA1FIN2_11408
Char.Delete(243@)
243@ = Char.Create(PedType.Mission2, 102, 1613.231, -1053.684, 22.8984)
Char.SetHeading(243@, 271.724)
set_lvar_int_to_lvar_int 86@ = 243@
269@ = 0
gosub @LA1FIN2_15215
Char.SetOnlyDamagedByPlayer(243@, True)
Task.ToggleDuck(243@, True)
Task.GoStraightToCoord(243@, 1622.541, -1045.008, 22.8984, MoveState.Run, -2)
Char.Delete(244@)
244@ = Char.Create(PedType.Mission2, 102, 1612.707, -1054.2, 22.8984)
Char.SetHeading(244@, 285.7294)
set_lvar_int_to_lvar_int 86@ = 244@
269@ = 1
gosub @LA1FIN2_15215
Char.SetOnlyDamagedByPlayer(244@, True)
Task.ToggleDuck(244@, True)
Task.GoStraightToCoord(244@, 1631.471, -1059.379, 22.9623, MoveState.Run, -2)
Char.Delete(245@)
245@ = Char.Create(PedType.Mission2, 102, 1617.219, -1057.973, 22.8984)
Char.SetHeading(245@, 265.7294)
set_lvar_int_to_lvar_int 86@ = 245@
269@ = 2
gosub @LA1FIN2_15215
Char.SetOnlyDamagedByPlayer(245@, True)
Task.ToggleDuck(245@, True)
Task.GoStraightToCoord(245@, 1633.035, -1064.716, 22.9162, MoveState.Run, -2)
if 
  Char.IsDead(246@)
goto_if_false @LA1FIN2_11815
246@ = Char.Create(PedType.Mission2, 102, 1670.707, -1082.179, 22.9062)
Char.SetHeading(246@, 25.7294)
set_lvar_int_to_lvar_int 86@ = 246@
269@ = 3
gosub @LA1FIN2_15215
Char.SetOnlyDamagedByPlayer(246@, True)
Task.ToggleDuck(246@, True)
Task.GoStraightToCoord(246@, 1659.903, -1067.094, 23.0077, MoveState.Run, -2)

:LA1FIN2_11815
if 
  Char.IsDead(247@)
goto_if_false @LA1FIN2_11925
247@ = Char.Create(PedType.Mission2, 102, 1665.267, -1090.467, 22.9062)
Char.SetHeading(247@, 25.7294)
set_lvar_int_to_lvar_int 86@ = 247@
269@ = 4
gosub @LA1FIN2_15215
Char.SetOnlyDamagedByPlayer(247@, True)
Task.ToggleDuck(247@, True)
Task.GoStraightToCoord(247@, 1649.499, -1077.795, 22.9062, MoveState.Run, -2)

:LA1FIN2_11925
101@ = 9
269@ = 0
99@ = 0

:LA1FIN2_11946
if 
  6 > 269@
goto_if_false @LA1FIN2_12005
if 
  Char.IsDead(243@(269@,6i))
goto_if_false @LA1FIN2_11991
99@ += 1

:LA1FIN2_11991
269@ += 1
goto @LA1FIN2_11946

:LA1FIN2_12005
return 

:LA1FIN2_12007
182@ = 1609.194
183@ = 1619.722
184@ = 1633.494
185@ = 1656.44
186@ = 1665.51
187@ = 1667.756
188@ = 1665.79
189@ = 1654.977
190@ = 1651.206
191@ = 1640.057
192@ = 1623.256
193@ = 1662.567
194@ = 1643.706
195@ = 1627.394
196@ = 1627.083
197@ = 1634.311
198@ = 1650.963
199@ = 1664.305
200@ = 1670.273
201@ = 1625.144
202@ = 1639.764
203@ = 1657.49
204@ = 1672.007
205@ = -1047.464
206@ = -1036.524
207@ = -1031.437
208@ = -1034.01
209@ = -1043.593
210@ = -1045.496
211@ = -1049.248
212@ = -1058.438
213@ = -1068.169
214@ = -1079.37
215@ = -1071.975
216@ = -1048.286
217@ = -1046.566
218@ = -1052.399
219@ = -1051.446
220@ = -1057.18
221@ = -1067.062
222@ = -1071.117
223@ = -1061.623
224@ = -1063.712
225@ = -1066.03
226@ = -1071.223
227@ = -1063.609
137@ = 0
147@ = 5
138@ = 6
148@ = 10
139@ = 11
149@ = 13
140@ = 14
150@ = 18
141@ = 19
151@ = 22
142@ = 5
152@ = 0
143@ = 10
153@ = 6
144@ = 13
154@ = 11
145@ = 18
155@ = 14
146@ = 22
156@ = 19
157@ = 1
167@ = 9
158@ = 0
168@ = 7
159@ = 6
169@ = 4
160@ = 5
170@ = 2
161@ = 2
171@ = 5
162@ = 6
172@ = 3
163@ = 8
173@ = 5
164@ = 5
174@ = 9
165@ = 0
175@ = 6
166@ = 7
176@ = 0
48@ = Car.Create(405, 1582.131, -1043.669, 22.9141)
Car.SetHeading(48@, 270.0)
Car.SetHeavy(48@, True)
Car.SetForwardSpeed(48@, 20.0)
269@ = 0

:LA1FIN2_12804
if 
  not Char.IsDead(243@(269@,6i))
goto_if_false @LA1FIN2_12838
269@ += 1
goto @LA1FIN2_12804

:LA1FIN2_12838
243@(269@,6i) = Char.CreateInsideCar(48@, PedType.Mission3, 102)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 37@ = 269@
gosub @LA1FIN2_15215
Char.SetOnlyDamagedByPlayer(243@(269@,6i), True)
269@ += 1

:LA1FIN2_12899
if 
  not Char.IsDead(243@(269@,6i))
goto_if_false @LA1FIN2_12933
269@ += 1
goto @LA1FIN2_12899

:LA1FIN2_12933
243@(269@,6i) = Char.CreateAsPassenger(48@, PedType.Mission3, 102, 0)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 38@ = 269@
gosub @LA1FIN2_15215
Char.SetOnlyDamagedByPlayer(243@(269@,6i), True)
269@ += 1

:LA1FIN2_12996
if 
  not Char.IsDead(243@(269@,6i))
goto_if_false @LA1FIN2_13030
269@ += 1
goto @LA1FIN2_12996

:LA1FIN2_13030
243@(269@,6i) = Char.CreateAsPassenger(48@, PedType.Mission3, 102, 1)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 39@ = 269@
gosub @LA1FIN2_15215
Char.SetDecisionMaker(243@(38@,6i), 104@)
Char.SetDecisionMaker(243@(39@,6i), 104@)
178@ = 1
179@ = 1
return 

:LA1FIN2_13115
if and
  not Car.IsDead(48@)
  not Char.IsDead(243@(37@,6i))
goto_if_false @LA1FIN2_13789
276@ = Car.GetSpeed(48@)
if 
  0.5 > 276@
goto_if_false @LA1FIN2_13210
if 
  82@ == 0
goto_if_false @LA1FIN2_13210
82@ = 1
set_lvar_int_to_lvar_int 83@ = TIMERA
83@ += 1500

:LA1FIN2_13210
if 
  82@ == 1
goto_if_false @LA1FIN2_13334
if 
  0.5 > 276@
goto_if_false @LA1FIN2_13327
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 83@
goto_if_false @LA1FIN2_13320
179@ = 2
82@ = 2
Car.TaskEveryoneLeave(48@)
75@(38@,6i) = 0
75@(39@,6i) = 0
75@(37@,6i) = 0

:LA1FIN2_13320
goto @LA1FIN2_13334

:LA1FIN2_13327
82@ = 0

:LA1FIN2_13334
if 
  179@ == 0
goto_if_false @LA1FIN2_13403
if 
  Car.Locate3D(48@, 180@, 181@, 22.0, 3.0, 3.0, 4.0, False)
goto_if_false @LA1FIN2_13403
179@ = 1

:LA1FIN2_13403
if 
  179@ == 1
goto_if_false @LA1FIN2_13771
177@ = Math.RandomIntInRange(0, 2)
if 
  177@ == 0
goto_if_false @LA1FIN2_13467
set_lvar_int_to_lvar_int 178@ = 157@(178@,10i)
goto @LA1FIN2_13479

:LA1FIN2_13467
set_lvar_int_to_lvar_int 178@ = 167@(178@,10i)

:LA1FIN2_13479
set_lvar_int_to_lvar_int 85@ = 137@(178@,10i)
Path.FlushRoute
228@, 229@, 230@ = Car.GetCoordinates(48@)
if 
  is_int_lvar_greater_than_int_lvar 147@(178@,10i) > 137@(178@,10i)
goto_if_false @LA1FIN2_13623

:LA1FIN2_13534
if 
  is_int_lvar_greater_or_equal_to_int_lvar 147@(178@,10i) >= 85@
goto_if_false @LA1FIN2_13616
Path.ExtendRoute(182@(85@,23f), 205@(85@,23f), 22.0)
set_lvar_float_to_lvar_float 228@ = 182@(85@,23f)
set_lvar_float_to_lvar_float 229@ = 205@(85@,23f)
85@ += 1
goto @LA1FIN2_13534

:LA1FIN2_13616
goto @LA1FIN2_13705

:LA1FIN2_13623
if 
  is_int_lvar_greater_or_equal_to_int_lvar 85@ >= 147@(178@,10i)
goto_if_false @LA1FIN2_13705
Path.ExtendRoute(182@(85@,23f), 205@(85@,23f), 22.0)
set_lvar_float_to_lvar_float 228@ = 182@(85@,23f)
set_lvar_float_to_lvar_float 229@ = 205@(85@,23f)
85@ -= 1
goto @LA1FIN2_13623

:LA1FIN2_13705
Task.DrivePointRouteAdvanced(243@(37@,6i), 48@, 20.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
179@ = 0
set_lvar_int_to_lvar_int 85@ = 147@(178@,10i)
set_lvar_float_to_lvar_float 180@ = 182@(85@,23f)
set_lvar_float_to_lvar_float 181@ = 205@(85@,23f)

:LA1FIN2_13771
if 
  179@ == 2
goto_if_false @LA1FIN2_13789

:LA1FIN2_13789
return 

:LA1FIN2_13791
if 
  255@ == 0
goto_if_false @LA1FIN2_14171
if 
  Char.LocateAnyMeans3D($scplayer, 1650.645, -1059.435, 25.4852, 250.0, 250.0, 70.0, False)
goto_if_false @LA1FIN2_14171
255@ = 1
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Mission2)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission3, PedType.Mission1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission3, PedType.Player1)
231@ = DecisionMakerChar.Copy(65539)
232@ = DecisionMakerChar.Copy(65539)
DecisionMakerChar.ClearEventResponse(231@, 15)
DecisionMakerChar.ClearEventResponse(231@, 49)
DecisionMakerChar.ClearEventResponse(231@, 9)
DecisionMakerChar.ClearEventResponse(231@, 36)
DecisionMakerChar.ClearEventResponse(231@, 65)
DecisionMakerChar.ClearEventResponse(231@, 11)
DecisionMakerChar.ClearEventResponse(232@, 15)
DecisionMakerChar.ClearEventResponse(232@, 49)
DecisionMakerChar.ClearEventResponse(232@, 9)
DecisionMakerChar.ClearEventResponse(232@, 36)
DecisionMakerChar.ClearEventResponse(232@, 31)
DecisionMakerChar.ClearEventResponse(232@, 11)
DecisionMakerChar.ClearEventResponse(232@, 41)
DecisionMakerChar.AddEventResponse(231@, 15, 1000, 0.0, 100.0, 0.0, 100.0, True, True)
DecisionMakerChar.AddEventResponse(231@, 36, 1000, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse(231@, 9, 1000, 0.0, 75.0, 0.0, 75.0, True, True)
DecisionMakerChar.AddEventResponse(231@, 9, 415, 0.0, 25.0, 0.0, 25.0, True, True)
Streaming.RequestModel(475)
Streaming.RequestModel(405)
Streaming.RequestModel(105)
Streaming.RequestModel(102)
Streaming.RequestModel(353)
Streaming.LoadSpecialCharacter(1, 'SWEET')

:LA1FIN2_14171
if 
  255@ == 1
goto_if_false @LA1FIN2_15213
if and
  Streaming.HasModelLoaded(475)
  Streaming.HasModelLoaded(105)
  Streaming.HasModelLoaded(102)
  Streaming.HasModelLoaded(353)
  Streaming.HasModelLoaded(405)
goto_if_false @LA1FIN2_15213
if and
  Char.LocateAnyMeans3D($scplayer, 1650.645, -1059.435, 25.4852, 150.0, 150.0, 70.0, False)
  Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @LA1FIN2_15213
235@ = Car.Create(405, 1649.555, -1055.767, 22.8984)
236@ = Car.Create(405, 1644.42, -1057.843, 22.9062)
237@ = Car.Create(405, 1643.845, -1051.736, 22.9219)
233@ = Car.Create(475, 1640.603, -1071.537, 22.9141)
234@ = Car.Create(475, 1660.943, -1059.201, 22.9141)
Car.SetHeading(235@, 329.5791)
Car.SetHeading(236@, 227.8)
Car.SetHeading(237@, 149.9008)
Car.SetHeading(233@, 61.7966)
Car.SetHeading(234@, 148.6633)
Car.SetStrong(235@, True)
Car.SetStrong(236@, True)
Car.SetStrong(237@, True)
Car.SetStrong(233@, True)
Car.SetStrong(234@, True)
Car.OpenDoor(233@, CarDoor.RightFrontDoor)
Car.OpenDoor(234@, CarDoor.RightFrontDoor)
Car.OpenDoor(234@, CarDoor.LeftFrontDoor)
238@ = Char.Create(PedType.Mission1, 290, 1648.556, -1054.473, 22.8984)
239@ = Char.Create(PedType.Mission1, 105, 1648.556, -1054.473, 22.8984)
240@ = Char.Create(PedType.Mission1, 105, 1646.474, -1057.642, 22.8984)
241@ = Char.Create(PedType.Mission1, 105, 1644.61, -1053.395, 22.8984)
243@ = Char.Create(PedType.Mission2, 102, 1622.276, -1044.679, 22.8984)
set_lvar_int_to_lvar_int 86@ = 243@
269@ = 0
gosub @LA1FIN2_15215
244@ = Char.Create(PedType.Mission2, 102, 1631.523, -1060.417, 23.011)
set_lvar_int_to_lvar_int 86@ = 244@
269@ = 1
gosub @LA1FIN2_15215
245@ = Char.Create(PedType.Mission2, 102, 1638.76, -1072.36, 22.8984)
set_lvar_int_to_lvar_int 86@ = 245@
269@ = 2
gosub @LA1FIN2_15215
246@ = Char.Create(PedType.Mission2, 102, 1649.349, -1077.868, 22.9062)
set_lvar_int_to_lvar_int 86@ = 246@
269@ = 3
gosub @LA1FIN2_15215
247@ = Char.Create(PedType.Mission2, 102, 1663.619, -1058.419, 22.8984)
set_lvar_int_to_lvar_int 86@ = 247@
269@ = 4
gosub @LA1FIN2_15215
set_lvar_int_to_var_int 242@ = $scplayer
Char.SetHeading(238@, 216.2367)
Char.SetHeading(239@, 149.4687)
Char.SetHeading(240@, 100.9368)
Char.SetHeading(241@, 270.9368)
Char.SetAccuracy(238@, 40)
Char.SetAccuracy(239@, 40)
Char.SetAccuracy(240@, 40)
Char.SetAccuracy(241@, 40)
Char.SetNeverTargeted(238@, True)
Char.SetNeverTargeted(239@, True)
Char.SetNeverTargeted(240@, True)
Char.SetNeverTargeted(241@, True)
Char.SetSenseRange(238@, 60.0)
Char.SetSenseRange(239@, 60.0)
Char.SetSenseRange(240@, 60.0)
Char.SetSenseRange(241@, 60.0)
Char.SetKindaStayInSamePlace(238@, True)
Char.SetKindaStayInSamePlace(239@, True)
Char.SetKindaStayInSamePlace(240@, True)
Char.SetKindaStayInSamePlace(241@, True)
Char.SetDecisionMaker(238@, 231@)
Char.SetDecisionMaker(239@, 231@)
Char.SetDecisionMaker(240@, 231@)
Char.SetDecisionMaker(241@, 231@)
Char.SetSuffersCriticalHits(238@, False)
Char.SetSuffersCriticalHits(239@, False)
Char.SetSuffersCriticalHits(240@, False)
Char.SetSuffersCriticalHits(241@, False)
Char.GiveWeapon(238@, WeaponType.Mp5, 99999)
Char.GiveWeapon(239@, WeaponType.Mp5, 99999)
Char.GiveWeapon(240@, WeaponType.Mp5, 99999)
Char.GiveWeapon(241@, WeaponType.Mp5, 99999)
Char.SetHealth(238@, 100)
Char.SetHealth(239@, 100)
Char.SetHealth(240@, 100)
Char.SetHealth(241@, 100)
Char.SetMaxHealth(238@, 100)
Char.SetMaxHealth(239@, 100)
Char.SetMaxHealth(240@, 100)
Char.SetMaxHealth(241@, 100)
Char.SetOnlyDamagedByPlayer(238@, True)
269@ = Math.RandomIntInRange(0, 5)
Char.SetOnlyDamagedByPlayer(243@(269@,6i), True)
269@ = Math.RandomIntInRange(0, 5)
Char.SetOnlyDamagedByPlayer(243@(269@,6i), True)
255@ = 2

:LA1FIN2_15213
return 

:LA1FIN2_15215
Char.SetAccuracy(86@, 40)
Char.SetKindaStayInSamePlace(86@, True)
Char.SetDecisionMaker(86@, 232@)
Char.GiveWeapon(86@, WeaponType.Mp5, 99999)
249@(269@,6i) = 0
88@(269@,6i) = 0
Blip.Remove(51@(269@,6i))
if 
  100@ > 3
goto_if_false @LA1FIN2_15314
51@(269@,6i) = Blip.AddForChar(243@(269@,6i))

:LA1FIN2_15314
return 

:LA1FIN2_15316
if 
  255@ == 2
goto_if_false @LA1FIN2_16305
266@ += 1
if 
  266@ > 5
goto_if_false @LA1FIN2_15366
266@ = 0

:LA1FIN2_15366
if 
  not Char.IsDead(243@(266@,6i))
goto_if_false @LA1FIN2_15860
if 
  75@(266@,6i) <> 1
goto_if_false @LA1FIN2_15853
if 
  not Char.IsInAnyCar(243@(266@,6i))
goto_if_false @LA1FIN2_15853
269@ = Char.GetScriptTaskStatus(243@(266@,6i), 1491)
if 
  is_int_lvar_equal_to_constant 269@ == 7
goto_if_false @LA1FIN2_15853
if 
  249@(266@,6i) == 0
goto_if_false @LA1FIN2_15579
if 
  Char.LocateAnyMeans3D(243@(266@,6i), 1646.777, -1054.257, 24.8043, 15.0, 15.0, 15.0, False)
goto_if_false @LA1FIN2_15579
Task.ToggleDuck(243@(266@,6i), True)
Char.SetStayInSamePlace(243@(266@,6i), True)
Char.SetKindaStayInSamePlace(243@(266@,6i), False)
249@(266@,6i) = 1

:LA1FIN2_15579
$x, $y, $z = Char.GetCoordinates(243@(266@,6i))
267@ = 0
274@ = 40.0

:LA1FIN2_15614
if 
  5 > 267@
goto_if_false @LA1FIN2_15740
if 
  not Char.IsDead(238@(267@,5i))
goto_if_false @LA1FIN2_15726
270@, 271@, 272@ = Char.GetCoordinates(238@(267@,5i))
273@ = Math.GetDistanceBetweenCoords2D(270@, 271@, $x, $y)
if 
  is_float_lvar_greater_than_float_lvar 274@ > 273@
goto_if_false @LA1FIN2_15726
set_lvar_float_to_lvar_float 274@ = 273@
set_lvar_int_to_lvar_int 268@ = 238@(267@,5i)

:LA1FIN2_15726
267@ += 1
goto @LA1FIN2_15614

:LA1FIN2_15740
if 
  not is_int_lvar_equal_to_int_lvar 268@ == 259@(266@,6i)
goto_if_false @LA1FIN2_15784
Char.ClearTasks(243@(266@,6i))
set_lvar_int_to_lvar_int 259@(266@,6i) = 268@

:LA1FIN2_15784
269@ = Char.GetScriptTaskStatus(243@(266@,6i), 1506)
if 
  is_int_lvar_equal_to_constant 269@ == 7
goto_if_false @LA1FIN2_15853
if 
  not Char.IsDead(259@(266@,6i))
goto_if_false @LA1FIN2_15853
Task.KillCharOnFoot(243@(266@,6i), 259@(266@,6i))

:LA1FIN2_15853
goto @LA1FIN2_15929

:LA1FIN2_15860
if 
  88@(266@,6i) == 0
goto_if_false @LA1FIN2_15929
Char.MarkAsNoLongerNeeded(243@(266@,6i))
99@ += 1
88@(266@,6i) = 1
75@(266@,6i) = 0
Blip.Remove(51@(266@,6i))

:LA1FIN2_15929
265@ += 1
if 
  265@ > 3
goto_if_false @LA1FIN2_15961
265@ = 0

:LA1FIN2_15961
if 
  not Char.IsDead(238@(265@,5i))
goto_if_false @LA1FIN2_16305
if 
  57@(265@,5i) == 0
goto_if_false @LA1FIN2_16208
if 
  not Char.LocateAnyMeans3D(238@(265@,5i), 1647.249, -1053.482, 23.8804, 5.0, 5.0, 5.0, False)
goto_if_false @LA1FIN2_16201
269@ = Char.GetScriptTaskStatus(238@(265@,5i), 1491)
if 
  is_int_lvar_equal_to_constant 269@ == 7
goto_if_false @LA1FIN2_16201
Char.SetDecisionMaker(238@(265@,5i), 103@)
276@ = Math.RandomFloatInRange(-1.5, 1.5)
$x = 1647.249
add_float_lvar_to_float_var $x += 276@
276@ = Math.RandomFloatInRange(-1.5, 1.5)
$y = -1053.482
add_float_lvar_to_float_var $y += 276@
Task.GoStraightToCoord(238@(265@,5i), $x, $y, 23.8804, MoveState.Run, -1)
57@(265@,5i) = 1

:LA1FIN2_16201
goto @LA1FIN2_16305

:LA1FIN2_16208
269@ = Char.GetScriptTaskStatus(238@(265@,5i), 1491)
if or
  is_int_lvar_equal_to_constant 269@ == 7
  Char.LocateAnyMeans3D(238@(265@,5i), 1647.249, -1053.482, 23.8804, 3.0, 3.0, 3.0, False)
goto_if_false @LA1FIN2_16305
57@(265@,5i) = 0
Char.SetDecisionMaker(238@(265@,5i), 231@)

:LA1FIN2_16305
return 

:LA1FIN2_16307
if 
  26 > 281@(85@,5i)
goto_if_false @LA1FIN2_16540
if 
  not Car.IsDead(280@)
goto_if_false @LA1FIN2_16540
if 
  68@(85@,5i) == 0
goto_if_false @LA1FIN2_16540
if 
  not Char.IsInCar($scplayer, 280@)
goto_if_false @LA1FIN2_16514
106@(85@,5i) = Car.GetHealth(280@)
if 
  not Car.IsHealthGreater(280@, 550)
goto_if_false @LA1FIN2_16507
set_lvar_int_to_lvar_int 279@ = 281@(85@,5i)
if 
  281@(85@,5i) >= 25
goto_if_false @LA1FIN2_16481
Car.SetHealth(280@, 350)
Car.SetProofs(280@, True, True, True, True, True)
goto @LA1FIN2_16489

:LA1FIN2_16481
Car.SetHealth(280@, 900)

:LA1FIN2_16489
gosub @LA1FIN2_16542
281@(85@,5i) += 1

:LA1FIN2_16507
goto @LA1FIN2_16540

:LA1FIN2_16514
68@(85@,5i) = 1
Car.SetProofs(280@, False, False, False, False, False)

:LA1FIN2_16540
return 

:LA1FIN2_16542
switch_start 279@ {numCases} 26 {hasDefaultCase} 0 {defaultLabel} @LA1FIN2_17174 {caseNum1} 0 {caseLabel1} @LA1FIN2_16800 {caseNum2} 1 {caseLabel2} @LA1FIN2_16814 {caseNum3} 2 {caseLabel3} @LA1FIN2_16828 {caseNum4} 3 {caseLabel4} @LA1FIN2_16842 {caseNum5} 4 {caseLabel5} @LA1FIN2_16856 {caseNum6} 5 {caseLabel6} @LA1FIN2_16870 {caseNum7} 6 {caseLabel7} @LA1FIN2_16884
switch_continued 7 {caseLabel1} @LA1FIN2_16898 {caseNum2} 8 {caseLabel2} @LA1FIN2_16912 {caseNum3} 9 {caseLabel3} @LA1FIN2_16926 {caseNum4} 10 {caseLabel4} @LA1FIN2_16940 {caseNum5} 11 {caseLabel5} @LA1FIN2_16954 {caseNum6} 12 {caseLabel6} @LA1FIN2_16968 {caseNum7} 13 {caseLabel7} @LA1FIN2_16982 {caseNum8} 14 {caseLabel8} @LA1FIN2_16996 {caseNum9} 15 {caseLabel9} @LA1FIN2_17010
switch_continued 16 {caseLabel1} @LA1FIN2_17024 {caseNum2} 17 {caseLabel2} @LA1FIN2_17040 {caseNum3} 18 {caseLabel3} @LA1FIN2_17054 {caseNum4} 19 {caseLabel4} @LA1FIN2_17070 {caseNum5} 20 {caseLabel5} @LA1FIN2_17086 {caseNum6} 21 {caseLabel6} @LA1FIN2_17100 {caseNum7} 22 {caseLabel7} @LA1FIN2_17116 {caseNum8} 23 {caseLabel8} @LA1FIN2_17130 {caseNum9} 24 {caseLabel9} @LA1FIN2_17144
switch_continued 25 {caseLabel1} @LA1FIN2_17158 {caseNum2} -1 {caseLabel2} @LA1FIN2_17174 {caseNum3} -1 {caseLabel3} @LA1FIN2_17174 {caseNum4} -1 {caseLabel4} @LA1FIN2_17174 {caseNum5} -1 {caseLabel5} @LA1FIN2_17174 {caseNum6} -1 {caseLabel6} @LA1FIN2_17174 {caseNum7} -1 {caseLabel7} @LA1FIN2_17174 {caseNum8} -1 {caseLabel8} @LA1FIN2_17174 {caseNum9} -1 {caseLabel9} @LA1FIN2_17174

:LA1FIN2_16800
Car.DamageDoor(280@, CarDoor.Hood)
goto @LA1FIN2_17174

:LA1FIN2_16814
Car.DamagePanel(280@, 1)
goto @LA1FIN2_17174

:LA1FIN2_16828
Car.DamageDoor(280@, CarDoor.RightFrontDoor)
goto @LA1FIN2_17174

:LA1FIN2_16842
Car.DamageDoor(280@, CarDoor.RightFrontDoor)
goto @LA1FIN2_17174

:LA1FIN2_16856
Car.DamageDoor(280@, CarDoor.RightRearDoor)
goto @LA1FIN2_17174

:LA1FIN2_16870
Car.BurstTire(280@, 2)
goto @LA1FIN2_17174

:LA1FIN2_16884
Car.DamagePanel(280@, 5)
goto @LA1FIN2_17174

:LA1FIN2_16898
Car.DamageDoor(280@, CarDoor.RightRearDoor)
goto @LA1FIN2_17174

:LA1FIN2_16912
Car.DamagePanel(280@, 1)
goto @LA1FIN2_17174

:LA1FIN2_16926
Car.DamageDoor(280@, CarDoor.Trunk)
goto @LA1FIN2_17174

:LA1FIN2_16940
Car.BurstTire(280@, 3)
goto @LA1FIN2_17174

:LA1FIN2_16954
Car.DamagePanel(280@, 6)
goto @LA1FIN2_17174

:LA1FIN2_16968
Car.DamageDoor(280@, CarDoor.RightRearDoor)
goto @LA1FIN2_17174

:LA1FIN2_16982
Car.DamageDoor(280@, CarDoor.Hood)
goto @LA1FIN2_17174

:LA1FIN2_16996
Car.DamageDoor(280@, CarDoor.RightRearDoor)
goto @LA1FIN2_17174

:LA1FIN2_17010
Car.DamagePanel(280@, 1)
goto @LA1FIN2_17174

:LA1FIN2_17024
Car.PopDoor(280@, CarDoor.Trunk, True)
goto @LA1FIN2_17174

:LA1FIN2_17040
Car.DamageDoor(280@, CarDoor.RightFrontDoor)
goto @LA1FIN2_17174

:LA1FIN2_17054
Car.PopDoor(280@, CarDoor.Hood, True)
goto @LA1FIN2_17174

:LA1FIN2_17070
Car.PopDoor(280@, CarDoor.RightFrontDoor, True)
goto @LA1FIN2_17174

:LA1FIN2_17086
Car.DamagePanel(280@, 5)
goto @LA1FIN2_17174

:LA1FIN2_17100
Car.PopDoor(280@, CarDoor.Hood, True)
goto @LA1FIN2_17174

:LA1FIN2_17116
Car.DamageDoor(280@, CarDoor.RightFrontDoor)
goto @LA1FIN2_17174

:LA1FIN2_17130
Car.DamageDoor(280@, CarDoor.RightFrontDoor)
goto @LA1FIN2_17174

:LA1FIN2_17144
Car.DamageDoor(280@, CarDoor.RightRearDoor)
goto @LA1FIN2_17174

:LA1FIN2_17158
Car.PopDoor(280@, CarDoor.RightRearDoor, True)
goto @LA1FIN2_17174

:LA1FIN2_17174
return 

:LA1FIN2_17176
if 
  286@ <> 0
goto_if_false @LA1FIN2_17394
if 
  287@ == 0
goto_if_false @LA1FIN2_17254
287@ = 1
set_lvar_int_to_lvar_int 288@ = TIMERA
289@ = 0
set_lvar_int_to_lvar_int 490@ = 288@
add_int_lvar_to_int_lvar 490@ += 290@(289@,10i)

:LA1FIN2_17254
if 
  287@ == 1
goto_if_false @LA1FIN2_17394
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 490@
goto_if_false @LA1FIN2_17394
if 
  437@ == 0
goto_if_false @LA1FIN2_17394
set_lvar_int_to_lvar_int 437@ = 300@(289@,10i)
289@ += 1
310@ -= 1
if 
  310@ == 0
goto_if_false @LA1FIN2_17374
286@ = 0
287@ = 0
goto @LA1FIN2_17394

:LA1FIN2_17374
set_lvar_int_to_lvar_int 490@ = 288@
add_int_lvar_to_int_lvar 490@ += 290@(289@,10i)

:LA1FIN2_17394
switch_start 436@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @LA1FIN2_19498 {caseNum1} 0 {caseLabel1} @LA1FIN2_17457 {caseNum2} 1 {caseLabel2} @LA1FIN2_18396 {caseNum3} 2 {caseLabel3} @LA1FIN2_19153 {caseNum4} 3 {caseLabel4} @LA1FIN2_19245 {caseNum5} 4 {caseLabel5} @LA1FIN2_19303 {caseNum6} 5 {caseLabel6} @LA1FIN2_19417 {caseNum7} -1 {caseLabel7} @LA1FIN2_19498

:LA1FIN2_17457
if 
  436@ == 1
goto_if_false @LA1FIN2_17525
488@ = Char.Create(PedType.Gang2, 290, 2752.341, -1948.867, 16.3125)
492@ = Char.Create(PedType.Gang2, 290, 2752.341, -1948.867, 16.3125)

:LA1FIN2_17525
set_lvar_text_label 313@s = 'FIN2_BA'
set_lvar_int_to_constant 392@ = 14017
set_lvar_text_label 315@s = 'FIN2_BB'
set_lvar_int_to_constant 393@ = 14001
set_lvar_text_label 317@s = 'FIN2_BC'
set_lvar_int_to_constant 394@ = 14008
set_lvar_text_label 319@s = 'FIN2_BD'
set_lvar_int_to_constant 395@ = 14009
set_lvar_text_label 321@s = 'FIN2_BE'
set_lvar_int_to_constant 396@ = 14010
set_lvar_text_label 323@s = 'FIN2_BF'
set_lvar_int_to_constant 397@ = 14002
set_lvar_text_label 325@s = 'FIN2_BG'
set_lvar_int_to_constant 398@ = 14011
set_lvar_text_label 327@s = 'FIN2_BH'
set_lvar_int_to_constant 399@ = 14012
set_lvar_text_label 329@s = 'FIN2_BJ'
set_lvar_int_to_constant 400@ = 14013
set_lvar_text_label 331@s = 'FIN2_AA'
set_lvar_int_to_constant 401@ = 14005
set_lvar_text_label 333@s = 'FIN2_AB'
set_lvar_int_to_constant 402@ = 14015
set_lvar_text_label 335@s = 'FIN2_AB'
set_lvar_int_to_constant 403@ = 14015
set_lvar_text_label 337@s = 'FIN2_AC'
set_lvar_int_to_constant 404@ = 14006
set_lvar_text_label 339@s = 'FIN2_AD'
set_lvar_int_to_constant 405@ = 14016
set_lvar_text_label 341@s = 'FIN2_AE'
set_lvar_int_to_constant 406@ = 14000
set_lvar_text_label 343@s = 'FIN2_AF'
set_lvar_int_to_constant 407@ = 14007
set_lvar_int_to_constant 408@ = 28200
set_lvar_int_to_constant 409@ = 28200
set_lvar_text_label 349@s = 'MCES03A'
set_lvar_int_to_constant 410@ = 4695
set_lvar_text_label 351@s = 'MCES03B'
set_lvar_int_to_constant 411@ = 4614
set_lvar_text_label 353@s = 'MCES03C'
set_lvar_int_to_constant 412@ = 4696
set_lvar_text_label 355@s = 'MCES03D'
set_lvar_int_to_constant 413@ = 4615
set_lvar_text_label 357@s = 'MCES03E'
set_lvar_int_to_constant 414@ = 4697
set_lvar_text_label 359@s = 'MCES03F'
set_lvar_int_to_constant 415@ = 4616
set_lvar_text_label 361@s = 'MCES03G'
set_lvar_int_to_constant 416@ = 4617
set_lvar_text_label 363@s = 'MCES03H'
set_lvar_int_to_constant 417@ = 4698
set_lvar_text_label 365@s = 'MCES03J'
set_lvar_int_to_constant 418@ = 4618
set_lvar_text_label 367@s = 'MCES03L'
set_lvar_int_to_constant 419@ = 4699
set_lvar_text_label 369@s = 'MCES03M'
set_lvar_int_to_constant 420@ = 4620
440@ = 1
441@ = 1
442@ = 1
443@ = 1
444@ = 1
445@ = 1
446@ = 1
447@ = 1
448@ = 1
449@ = 0
450@ = 0
451@ = 0
452@ = 0
453@ = 0
454@ = 0
455@ = 0
456@ = 0
457@ = 0
458@ = 0
459@ = 0
460@ = 0
461@ = 0
462@ = 0
463@ = 0
464@ = 0
465@ = 0
466@ = 0
467@ = 0
468@ = 0
set_lvar_int_to_var_int 480@ = $scplayer
set_lvar_int_to_lvar_int 481@ = 238@
436@ = 1
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 392@)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 393@)
432@ = 1
433@ = 2
goto @LA1FIN2_19498

:LA1FIN2_18396
if 
  437@ <> 0
goto_if_false @LA1FIN2_19146
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @LA1FIN2_19146
if 
  is_int_lvar_equal_to_int_lvar 432@ == 437@
goto_if_false @LA1FIN2_18466
434@ = 1
goto @LA1FIN2_18529

:LA1FIN2_18466
if 
  is_int_lvar_equal_to_int_lvar 433@ == 437@
goto_if_false @LA1FIN2_18499
434@ = 2
goto @LA1FIN2_18529

:LA1FIN2_18499
434@ = 1
set_lvar_int_to_lvar_int 432@ = 437@
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 391@(437@,40i))

:LA1FIN2_18529
if 
  Audio.HasMissionAudioLoaded(434@)
goto_if_false @LA1FIN2_19134
set_lvar_int_to_lvar_int 487@ = 439@(437@,40i)
set_lvar_int_to_lvar_int 488@ = 479@(487@,7i)
if 
  494@ <> 1
goto_if_false @LA1FIN2_18757
491@ = 1
493@ = 0

:LA1FIN2_18601
if 
  7 > 491@
goto_if_false @LA1FIN2_18757
set_lvar_int_to_lvar_int 492@ = 479@(491@,7i)
if 
  492@ <> 0
goto_if_false @LA1FIN2_18743
if 
  not is_int_lvar_equal_to_int_lvar 492@ == 488@
goto_if_false @LA1FIN2_18743
if 
  not Char.IsDead(488@)
goto_if_false @LA1FIN2_18743
if 
  not Char.IsDead(492@)
goto_if_false @LA1FIN2_18743
if 
  Char.LocateAnyMeansChar3D(488@, 492@, 10.0, 10.0, 10.0, False)
goto_if_false @LA1FIN2_18743
493@ += 1

:LA1FIN2_18743
491@ += 1
goto @LA1FIN2_18601

:LA1FIN2_18757
if or
  494@ == 1
  493@ > 0
  439@(437@,40i) == 0
goto_if_false @LA1FIN2_19127
if 
  439@(437@,40i) <> 0
goto_if_false @LA1FIN2_18884
if 
  not Char.IsDead(488@)
goto_if_false @LA1FIN2_18884
Audio.AttachMissionAudioToChar(434@, 488@)
if 
  not Char.IsTalking(488@)
goto_if_false @LA1FIN2_18877
486@ = 1
Char.StartFacialTalk(488@, 15000)
goto @LA1FIN2_18884

:LA1FIN2_18877
Char.DisableSpeech(488@, False)

:LA1FIN2_18884
if 
  439@(437@,40i) == 0
goto_if_false @LA1FIN2_18913
486@ = 1

:LA1FIN2_18913
if 
  486@ == 1
goto_if_false @LA1FIN2_19127
Audio.PlayMissionAudio(434@)
Text.ClearPrints
if 
  not is_int_lvar_equal_to_constant 391@(437@,40i) == 28200
goto_if_false @LA1FIN2_18975
Text.Print(311@(437@,40s), 10000, 1)

:LA1FIN2_18975
436@ += 1
486@ = 0
437@ += 1
set_lvar_int_to_lvar_int 435@ = 437@
if 
  391@(437@,40i) <> 0
goto_if_false @LA1FIN2_19127
if 
  434@ == 1
goto_if_false @LA1FIN2_19089
if 
  not is_int_lvar_equal_to_int_lvar 433@ == 437@
goto_if_false @LA1FIN2_19082
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 391@(437@,40i))
set_lvar_int_to_lvar_int 433@ = 437@

:LA1FIN2_19082
goto @LA1FIN2_19127

:LA1FIN2_19089
if 
  not is_int_lvar_equal_to_int_lvar 432@ == 437@
goto_if_false @LA1FIN2_19127
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 391@(437@,40i))
set_lvar_int_to_lvar_int 432@ = 437@

:LA1FIN2_19127
goto @LA1FIN2_19146

:LA1FIN2_19134
Audio.LoadMissionAudio(434@, 391@(437@,40i))

:LA1FIN2_19146
goto @LA1FIN2_19498

:LA1FIN2_19153
if 
  Audio.HasMissionAudioFinished(434@)
goto_if_false @LA1FIN2_19183
436@ += 1
goto @LA1FIN2_19238

:LA1FIN2_19183
if 
  Char.DoesExist(488@)
goto_if_false @LA1FIN2_19222
if 
  Char.IsDead(488@)
goto_if_false @LA1FIN2_19222
436@ += 1

:LA1FIN2_19222
if 
  not Char.IsDead(488@)
goto_if_false @LA1FIN2_19238

:LA1FIN2_19238
goto @LA1FIN2_19498

:LA1FIN2_19245
Audio.ClearMissionAudio(434@)
431@(434@,3i) = 0
Text.ClearPrints
if 
  not Char.IsDead(488@)
goto_if_false @LA1FIN2_19289
Char.StopFacialTalk(488@)
Char.EnableSpeech(488@)

:LA1FIN2_19289
436@ += 1
goto @LA1FIN2_19498

:LA1FIN2_19303
437@ += 1
if 
  391@(437@,40i) <> 0
goto_if_false @LA1FIN2_19356
Audio.LoadMissionAudio(434@, 391@(437@,40i))
set_lvar_int_to_lvar_int 431@(434@,3i) = 437@

:LA1FIN2_19356
438@ -= 1
if 
  438@ <= 0
goto_if_false @LA1FIN2_19395
437@ = 0
goto @LA1FIN2_19403

:LA1FIN2_19395
set_lvar_int_to_lvar_int 437@ = 435@

:LA1FIN2_19403
436@ = 1
goto @LA1FIN2_19498

:LA1FIN2_19417
436@ = 1
437@ = 0
438@ = 0
286@ = 0
310@ = 0
Audio.ClearMissionAudio(434@)
431@(434@,3i) = 0
Text.ClearPrints
if 
  not Char.IsDead(488@)
goto_if_false @LA1FIN2_19491
Char.EnableSpeech(488@)

:LA1FIN2_19491
goto @LA1FIN2_19498

:LA1FIN2_19498
return 

:LA1FIN2_19500
Text.PrintBig('M_FAIL', 50, TextStyle.Middle)
return 

:LA1FIN2_19517
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @LA1FIN2_19560
Char.WarpFromCarToCoord($scplayer, -2007.5, -2542.4, 35.7)
goto @LA1FIN2_19590

:LA1FIN2_19560
Char.SetCoordinates($scplayer, -2007.5, -2542.4, 35.7)
Char.SetHeading($scplayer, 80.0)

:LA1FIN2_19590
Car.Delete(47@)
Car.Delete(122@)
Car.Delete(123@)
Car.Delete(124@)
Car.Delete(48@)
Car.Delete(235@)
Car.Delete(236@)
Car.Delete(237@)
Car.Delete(233@)
Car.Delete(234@)
Char.Delete(243@)
Char.Delete(244@)
Char.Delete(245@)
Char.Delete(246@)
Char.Delete(247@)
Char.Delete(248@)
Char.Delete(125@)
Char.Delete(126@)
Char.Delete(127@)
Char.Delete(238@)
Char.Delete(239@)
Char.Delete(240@)
Char.Delete(241@)
Streaming.MarkModelAsNoLongerNeeded(401)
Streaming.MarkModelAsNoLongerNeeded(475)
Streaming.MarkModelAsNoLongerNeeded(105)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(405)
Streaming.MarkModelAsNoLongerNeeded(413)
Streaming.RemoveAnimation("SWEET")
Streaming.UnloadSpecialCharacter(1)
DecisionMaker.Remove(103@)
DecisionMaker.Remove(104@)
Player.ClearWantedLevel($player1)
Stat.SetInt(StatId.CitiesPassed, 1)
Cutscene.Load('BCRAS1')
Char.SetCoordinates($scplayer, -2011.438, -2501.287, 34.0624)
Player.SetControl($player1, False)
Streaming.LoadScene(-2011.438, -2501.287, 34.0624)
World.ClearArea(-2011.438, -2501.287, 34.0624, 100.0, True)
Text.ClearHelp
Char.RemoveAllWeapons($scplayer)
Text.LoadMissionText('BCRASH1')

:LA1FIN2_19870
if 
  not Cutscene.HasLoaded
goto_if_false @LA1FIN2_19894
wait 0
goto @LA1FIN2_19870

:LA1FIN2_19894
wait 1000
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:LA1FIN2_19908
if 
  not Cutscene.HasFinished
goto_if_false @LA1FIN2_19932
wait 0
goto @LA1FIN2_19908

:LA1FIN2_19932
Camera.DoFade(0, Fade.Out)

:LA1FIN2_19938
if 
  Camera.GetFadingStatus
goto_if_false @LA1FIN2_19962
wait 0
goto @LA1FIN2_19938

:LA1FIN2_19962
Cutscene.Clear
Cutscene.Load('BCRAS2')

:LA1FIN2_19975
if 
  not Cutscene.HasLoaded
goto_if_false @LA1FIN2_19999
wait 0
goto @LA1FIN2_19975

:LA1FIN2_19999
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:LA1FIN2_20008
if 
  not Cutscene.HasFinished
goto_if_false @LA1FIN2_20032
wait 0
goto @LA1FIN2_20008

:LA1FIN2_20032
Streaming.RequestModel(367)
Camera.DoFade(0, Fade.Out)

:LA1FIN2_20043
if and
  Camera.GetFadingStatus
  not Streaming.HasModelLoaded(367)
goto_if_false @LA1FIN2_20072
wait 0
goto @LA1FIN2_20043

:LA1FIN2_20072
Cutscene.Clear
Camera.DoFade(1000, Fade.In)
Char.GiveWeapon($scplayer, WeaponType.Camera, 30000)
Streaming.MarkModelAsNoLongerNeeded(367)
Player.SetControl($player1, True)
Blip.Remove($bcrash_contact_blip)
Blip.Remove($sweet_contact_blip)
$bcrash_contact_blip = Blip.AddSpriteForContactPoint($bcrashX, $bcrashY, $bcrashZ, $crash_blip_icon)
Blip.Remove($1730)
$1730 = Blip.AddShortRangeSpriteForContactPoint($save_pickupX[13], $save_pickupY[13], $save_pickupZ[13], RadarSprite.SaveGame)
Blip.ChangeDisplay($1730, BlipDisplay.BlipOnly)
Player.ClearWantedLevel($player1)
Stat.SetInt(StatId.PassedLafin2, 1)
Stat.SetInt(StatId.StartedBadlands, 1)
terminate_all_scripts_with_this_name 'MOB_CAT'
start_new_script @MOB_CAT 
$flag_la1fin1_mission_counter += 1
$terminted_territory_pickup = 1
Stat.RegisterMissionPassed('LA1FIN2')
Stat.PlayerMadeProgress(1)
Pickup.Remove($grove_save_pickup[13])
$grove_save_pickup[13] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[13], $save_pickupY[13], $save_pickupZ[13])
$number_of_save_icons = 14
Zone.SetGangStrength('SUN1', GangType.Ballas, 30)
Zone.SetGangStrength('SUN1', GangType.Ballas, 30)
Zone.SetGangStrength('SUN3A', GangType.Ballas, 30)
Zone.SetGangStrength('SUN3B', GangType.Ballas, 30)
Zone.SetGangStrength('SUN3C', GangType.Ballas, 30)
Zone.SetGangStrength('SUN4', GangType.Ballas, 30)
Zone.SetGangStrength('CHC1A', GangType.Vagos, 40)
Zone.SetGangStrength('CHC1B', GangType.Vagos, 40)
Zone.SetGangStrength('CHC2A', GangType.Vagos, 40)
Zone.SetGangStrength('CHC2B', GangType.Vagos, 40)
Zone.SetGangStrength('CHC3', GangType.Vagos, 40)
Zone.SetGangStrength('CHC4A', GangType.Vagos, 40)
Zone.SetGangStrength('CHC4B', GangType.Vagos, 40)
Zone.SetGangStrength('EBE1', GangType.Vagos, 30)
Zone.SetGangStrength('EBE2A', GangType.Vagos, 30)
Zone.SetGangStrength('EBE2B', GangType.Vagos, 30)
Zone.SetGangStrength('EBE3C', GangType.Vagos, 30)
Zone.SetGangStrength('ELCO1', GangType.Aztecas, 40)
Zone.SetGangStrength('ELCO2', GangType.Aztecas, 40)
Zone.SetGangStrength('GAN1', GangType.Ballas, 10)
Zone.SetGangStrength('GAN2', GangType.Ballas, 25)
Zone.SetGangStrength('GLN1', GangType.Ballas, 40)
Zone.SetGangStrength('GLN2A', GangType.Ballas, 40)
Zone.SetGangStrength('LIND1A', GangType.Ballas, 20)
Zone.SetGangStrength('LIND1B', GangType.Ballas, 20)
Zone.SetGangStrength('LIND2A', GangType.Ballas, 20)
Zone.SetGangStrength('LIND2B', GangType.Ballas, 20)
Zone.SetGangStrength('LIND3', GangType.Ballas, 20)
Zone.SetGangStrength('IWD1', GangType.Ballas, 20)
Zone.SetGangStrength('IWD2', GangType.Ballas, 20)
Zone.SetGangStrength('IWD3A', GangType.Ballas, 20)
Zone.SetGangStrength('IWD3B', GangType.Ballas, 20)
Zone.SetGangStrength('IWD4', GangType.Ballas, 10)
Zone.SetGangStrength('IWD5', GangType.Ballas, 20)
Zone.SetGangStrength('JEF1A', GangType.Ballas, 40)
Zone.SetGangStrength('JEF1B', GangType.Ballas, 40)
Zone.SetGangStrength('JEF2', GangType.Ballas, 40)
Zone.SetGangStrength('JEF3B', GangType.Ballas, 40)
Zone.SetGangStrength('JEF3C', GangType.Ballas, 40)
Zone.SetGangStrength('LFL1A', GangType.Vagos, 40)
Zone.SetGangStrength('LFL1B', GangType.Vagos, 40)
Zone.SetGangStrength('LMEX1A', GangType.Aztecas, 30)
Zone.SetGangStrength('LMEX1B', GangType.Aztecas, 30)
Zone.SetGangStrength('ELS1A', GangType.Ballas, 30)
Zone.SetGangStrength('ELS1B', GangType.Ballas, 30)
Zone.SetGangStrength('ELS2', GangType.Ballas, 30)
Zone.SetGangStrength('ELS3A', GangType.Ballas, 30)
Zone.SetGangStrength('ELS3B', GangType.Ballas, 30)
Zone.SetGangStrength('ELS4', GangType.Ballas, 30)
Zone.SetGangStrength('PLS', GangType.Ballas, 10)
Zone.SetGangStrength('SMB1', GangType.Ballas, 10)
Zone.SetGangStrength('SMB2', GangType.Ballas, 10)
Zone.SetGangStrength('VIN2', GangType.Ballas, 10)
Zone.SetGangStrength('VERO1', GangType.Ballas, 10)
Zone.SetGangStrength('VERO2', GangType.Ballas, 10)
Zone.SetGangStrength('VERO3', GangType.Ballas, 10)
Zone.SetGangStrength('VERO4A', GangType.Ballas, 10)
Zone.SetGangStrength('VERO4B', GangType.Ballas, 10)
Zone.SetGangStrength('SUN1', GangType.Grove, 0)
Zone.SetGangStrength('SUN1', GangType.Grove, 0)
Zone.SetGangStrength('SUN3A', GangType.Grove, 0)
Zone.SetGangStrength('SUN3B', GangType.Grove, 0)
Zone.SetGangStrength('SUN3C', GangType.Grove, 0)
Zone.SetGangStrength('SUN4', GangType.Grove, 0)
Zone.SetGangStrength('CHC1A', GangType.Grove, 0)
Zone.SetGangStrength('CHC1B', GangType.Grove, 0)
Zone.SetGangStrength('CHC2A', GangType.Grove, 0)
Zone.SetGangStrength('CHC2B', GangType.Grove, 0)
Zone.SetGangStrength('CHC3', GangType.Grove, 0)
Zone.SetGangStrength('CHC4A', GangType.Grove, 0)
Zone.SetGangStrength('CHC4B', GangType.Grove, 0)
Zone.SetGangStrength('EBE1', GangType.Grove, 0)
Zone.SetGangStrength('EBE2A', GangType.Grove, 0)
Zone.SetGangStrength('EBE2B', GangType.Grove, 0)
Zone.SetGangStrength('EBE3C', GangType.Grove, 0)
Zone.SetGangStrength('ELCO1', GangType.Grove, 0)
Zone.SetGangStrength('ELCO2', GangType.Grove, 0)
Zone.SetGangStrength('GAN1', GangType.Grove, 0)
Zone.SetGangStrength('GAN2', GangType.Grove, 0)
Zone.SetGangStrength('GLN1', GangType.Grove, 0)
Zone.SetGangStrength('GLN2A', GangType.Grove, 0)
Zone.SetGangStrength('LIND1A', GangType.Grove, 0)
Zone.SetGangStrength('LIND1B', GangType.Grove, 0)
Zone.SetGangStrength('LIND2A', GangType.Grove, 0)
Zone.SetGangStrength('LIND2B', GangType.Grove, 0)
Zone.SetGangStrength('LIND3', GangType.Grove, 0)
Zone.SetGangStrength('IWD1', GangType.Grove, 0)
Zone.SetGangStrength('IWD2', GangType.Grove, 0)
Zone.SetGangStrength('IWD3A', GangType.Grove, 0)
Zone.SetGangStrength('IWD3B', GangType.Grove, 0)
Zone.SetGangStrength('IWD4', GangType.Grove, 0)
Zone.SetGangStrength('IWD5', GangType.Grove, 0)
Zone.SetGangStrength('JEF1A', GangType.Grove, 0)
Zone.SetGangStrength('JEF1B', GangType.Grove, 0)
Zone.SetGangStrength('JEF2', GangType.Grove, 0)
Zone.SetGangStrength('JEF3A', GangType.Grove, 0)
Zone.SetGangStrength('JEF3B', GangType.Grove, 0)
Zone.SetGangStrength('JEF3C', GangType.Grove, 0)
Zone.SetGangStrength('LFL1A', GangType.Grove, 0)
Zone.SetGangStrength('LFL1B', GangType.Grove, 0)
Zone.SetGangStrength('LMEX1A', GangType.Grove, 0)
Zone.SetGangStrength('LMEX1B', GangType.Grove, 0)
Zone.SetGangStrength('ELS1A', GangType.Grove, 0)
Zone.SetGangStrength('ELS1B', GangType.Grove, 0)
Zone.SetGangStrength('ELS2', GangType.Grove, 0)
Zone.SetGangStrength('ELS3A', GangType.Grove, 0)
Zone.SetGangStrength('ELS3B', GangType.Grove, 0)
Zone.SetGangStrength('ELS4', GangType.Grove, 0)
Zone.SetGangStrength('PLS', GangType.Grove, 0)
Zone.SetGangStrength('SMB1', GangType.Grove, 0)
Zone.SetGangStrength('SMB2', GangType.Grove, 0)
Zone.SetGangStrength('VIN2', GangType.Grove, 0)
Zone.SetGangStrength('VERO1', GangType.Grove, 0)
Zone.SetGangStrength('VERO2', GangType.Grove, 0)
Zone.SetGangStrength('VERO3', GangType.Grove, 0)
Zone.SetGangStrength('VERO4A', GangType.Grove, 0)
Zone.SetGangStrength('VERO4B', GangType.Grove, 0)
Game.SetGangWarsActive(False)
start_new_script @BCRASH 
return 

:LA1FIN2_22024
$onmission = 0
Skip.Clear
if 
  not Char.IsDead($scplayer)
goto_if_false @LA1FIN2_22056
Task.UseMobilePhone($scplayer, False)

:LA1FIN2_22056
Streaming.MarkModelAsNoLongerNeeded(401)
Streaming.MarkModelAsNoLongerNeeded(475)
Streaming.MarkModelAsNoLongerNeeded(105)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(405)
Streaming.MarkModelAsNoLongerNeeded(413)
Streaming.RemoveAnimation("SWEET")
Streaming.RemoveCarRecording(162)
Streaming.RemoveCarRecording(163)
Streaming.RemoveCarRecording(650)
Streaming.MarkModelAsNoLongerNeeded(596)
Streaming.MarkModelAsNoLongerNeeded(280)
Streaming.RemoveAnimation("POLICE")
Player.SetControl($player1, True)
Streaming.UnloadSpecialCharacter(1)
DecisionMaker.Remove(103@)
DecisionMaker.Remove(104@)
if 
  not Car.IsDead(40@)
goto_if_false @LA1FIN2_22175
Car.MarkAsNoLongerNeeded(40@)

:LA1FIN2_22175
Blip.Remove(50@)
267@ = 0

:LA1FIN2_22187
if 
  6 > 267@
goto_if_false @LA1FIN2_22228
Blip.Remove(51@(267@,6i))
267@ += 1
goto @LA1FIN2_22187

:LA1FIN2_22228
Hud.ClearCounter($carhealth_f1)
Streaming.RemoveIpl("BARRIERS1")
Game.SetWantedMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SwitchEmergencyServices(True)
DecisionMaker.Remove(231@)
Game.SetCreateRandomGangMembers(True)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
Game.SetScriptLimitToGangSize(99)
return 

//-------------Mission 39---------------
// Originally: Badlands

:BCRASH1
script_name 'BCRASH1'
gosub @BCRASH1_922
if 
  has_deatharrest_been_executed 
goto_if_false @BCRASH1_38
gosub @BCRASH1_13511

:BCRASH1_38
gosub @BCRASH1_13680
terminate_this_script 

:BCRASH1_47
Streaming.RequestModel(147)
Streaming.RequestModel(286)
Streaming.RequestModel(421)
Streaming.RequestModel(468)
Streaming.RequestModel(352)
Streaming.RequestModel(367)
Streaming.LoadAllModelsNow

:BCRASH1_79
if or
  not Streaming.HasModelLoaded(147)
  not Streaming.HasModelLoaded(286)
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(421)
  not Streaming.HasModelLoaded(468)
  not Streaming.HasModelLoaded(367)
goto_if_false @BCRASH1_131
wait 0
goto @BCRASH1_79

:BCRASH1_131
return 
270@ = Pickup.CreateWithAmmo(367, PickupType.Once, 24, -2044.1, -2523.86, 31.11)
271@ = Blip.AddForPickup(270@)

:BCRASH1_168
287@ = -2814.84
288@ = -1522.0
289@ = 139.33
284@ = Char.Create(PedType.CivMale, 147, 287@, 288@, 289@)
Char.SetCanBeShotInVehicle(284@, False)
286@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Char.SetDecisionMaker(284@, 286@)
return 

:BCRASH1_241
Streaming.MarkModelAsNoLongerNeeded(147)
return 

:BCRASH1_248
302@ = -2800.11
307@ = -1521.49
312@ = 137.37
317@ = 305.1252
303@ = -2799.34
308@ = -1524.66
313@ = 137.38
318@ = 356.2755
304@ = -2789.047
309@ = -1533.317
314@ = 138.4778
319@ = 317.5168
305@ = -2801.7
310@ = -1515.16
315@ = 137.33
320@ = 270.3571
300@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
291@ = Char.Create(PedType.Mission1, 286, 81@, 87@, 93@)
Char.SetHeading(291@, 317@)
Char.GiveWeapon(291@, WeaponType.MicroUzi, 30000)
Char.SetRelationship(291@, RelationshipType.Hate, PedType.Player1)
Char.SetKeepTask(291@, True)
Char.SetDecisionMaker(291@, 300@)
292@ = Char.Create(PedType.Mission1, 286, 82@, 88@, 94@)
Char.SetHeading(292@, 318@)
Char.GiveWeapon(292@, WeaponType.MicroUzi, 30000)
Char.SetRelationship(292@, RelationshipType.Hate, PedType.Player1)
Char.SetKeepTask(292@, True)
Char.SetDecisionMaker(292@, 300@)
293@ = Char.Create(PedType.Mission1, 286, 80@, 86@, 92@)
Char.SetHeading(293@, 319@)
Char.GiveWeapon(293@, WeaponType.MicroUzi, 30000)
Char.SetRelationship(293@, RelationshipType.Hate, PedType.Player1)
Char.SetKeepTask(293@, True)
Char.SetDecisionMaker(293@, 300@)
294@ = Char.Create(PedType.Mission1, 286, 79@, 85@, 91@)
Char.SetHeading(294@, 320@)
Char.GiveWeapon(294@, WeaponType.MicroUzi, 30000)
Char.SetRelationship(294@, RelationshipType.Hate, PedType.Player1)
Char.SetKeepTask(294@, True)
Char.SetDecisionMaker(294@, 300@)
Char.SetRelationship($scplayer, RelationshipType.Hate, PedType.Mission1)
return 

:BCRASH1_670
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(286)
return 

:BCRASH1_682
324@ = -2815.16
325@ = -1512.03
326@ = 138.08
327@ = 272.57
Car.CustomPlateForNextCar(421, "_ASSMAN_")
322@ = Car.Create(421, 324@, 325@, 326@)
Car.SetLoadCollisionFlag(322@, False)
Car.SetHeading(322@, 327@)
Car.LockDoors(322@, CarLock.LockoutPlayerOnly)
Car.SetCanBurstTires(322@, False)
return 

:BCRASH1_785
Streaming.MarkModelAsNoLongerNeeded(421)
return 
return 

:BCRASH1_794
Streaming.RequestModel(468)

:BCRASH1_799
if 
  not Streaming.HasModelLoaded(468)
goto_if_false @BCRASH1_826
wait 0
goto @BCRASH1_799

:BCRASH1_826
330@ = -2803.156
331@ = -1519.46
332@ = 138.2818
333@ = 189.4269
328@ = Car.Create(468, 330@, 331@, 332@)
Car.SetLoadCollisionFlag(328@, False)
Car.SetHeading(328@, 333@)
Car.SetProofs(328@, True, True, True, True, True)
return 
Streaming.MarkModelAsNoLongerNeeded(468)
return 

:BCRASH1_922
Stat.RegisterMissionGiven
$onmission = 1
wait 0
Text.LoadMissionText('BCRASH1')
107@ = -2815.382
147@ = -1511.204
187@ = 139.1089
108@ = -2766.912
148@ = -1599.013
188@ = 141.1248
109@ = -2778.611
149@ = -1698.438
189@ = 141.3879
110@ = -2770.779
150@ = -1798.475
190@ = 141.5863
111@ = -2705.242
151@ = -1874.129
191@ = 137.9205
112@ = -2651.399
152@ = -1958.48
192@ = 127.1876
113@ = -2624.508
153@ = -2055.077
193@ = 129.1295
114@ = -2525.173
154@ = -2071.438
194@ = 126.7572
115@ = -2426.958
155@ = -2090.192
195@ = 122.5222
116@ = -2393.0
156@ = -2096.0
196@ = 118.0
117@ = -2326.898
157@ = -2098.732
197@ = 114.4895
118@ = -2257.158
158@ = -2073.11
198@ = 119.2503
119@ = -2215.638
159@ = -2044.962
199@ = 118.7853
120@ = -2143.491
160@ = -1955.622
200@ = 117.0468
121@ = -2123.148
161@ = -1897.05
201@ = 113.449
122@ = -2137.857
162@ = -1994.849
202@ = 96.0566
123@ = -2165.01
163@ = -2044.655
203@ = 90.2613
124@ = -2266.458
164@ = -2142.735
204@ = 55.9682
125@ = -2345.696
165@ = -2199.511
205@ = 33.1272
126@ = -2245.354
166@ = -2201.111
206@ = 35.0159
127@ = -2164.646
167@ = -2143.817
207@ = 51.5793
128@ = -2094.473
168@ = -2072.822
208@ = 63.6193
129@ = -2063.865
169@ = -1977.4
209@ = 57.6244
130@ = -2014.453
170@ = -1890.356
210@ = 45.5302
131@ = -1949.741
171@ = -1814.233
211@ = 33.7562
132@ = -1872.931
172@ = -1750.007
212@ = 29.084
133@ = -1783.883
173@ = -1701.444
213@ = 29.5583
134@ = -1697.56
174@ = -1651.167
214@ = 36.0764
135@ = -1604.938
175@ = -1613.388
215@ = 36.1148
136@ = -1587.864
176@ = -1514.849
216@ = 37.5464
137@ = -1685.724
177@ = -1494.043
217@ = 34.7867
138@ = -1777.044
178@ = -1452.411
218@ = 34.6646
139@ = -1862.846
179@ = -1400.225
219@ = 38.3508
140@ = -1947.106
180@ = -1346.296
220@ = 40.5623
141@ = -2005.107
181@ = -1264.516
221@ = 36.3458
142@ = -2055.837
182@ = -1177.761
222@ = 32.1425
143@ = -2106.079
183@ = -1091.077
223@ = 29.978
144@ = -2168.372
184@ = -1012.418
224@ = 33.7818
145@ = -2210.523
185@ = -974.889
225@ = 38.5044
77@ = -2797.75
83@ = -1531.63
89@ = 138.5
78@ = -2803.09
84@ = -1503.01
90@ = 138.83
79@ = -2804.69
85@ = -1506.7
91@ = 137.83
80@ = -2818.89
86@ = -1505.72
92@ = 139.34
81@ = -2826.68
87@ = -1522.23
93@ = 138.78
82@ = -2822.9
88@ = -1536.94
94@ = 138.86
70@ = -2814.84
71@ = -1522.0
72@ = 139.33
95@ = -2777.05
96@ = -1568.29
97@ = 140.04
98@ = -2346.7
101@ = -2240.18
104@ = 17.29
99@ = -2103.0
102@ = -1885.0
105@ = 109.0
100@ = -2602.0
103@ = -2084.0
106@ = 131.0
236@ = -2767.98
246@ = -1597.9
256@ = 141.46
237@ = -2787.39
247@ = -1568.11
257@ = 147.27
238@ = -2796.35
248@ = -1537.58
258@ = 143.82
239@ = -2800.19
249@ = -1505.59
259@ = 143.89
240@ = -2801.43
250@ = -1541.87
260@ = 140.29
321@ = 30.0
$l1f2_sweet_health = -1
34@ = 0
51@ = 1
278@ = 1
279@ = 3
36@ = 0
$bc1_in_water = 0
53@ = 0
54@ = 1
56@ = 0
37@ = 0
57@ = 0
59@ = 1
$bc1_stage = 0
55@ = 0
$bc1_cut = 0
$bc1_route = 1
$bc1_route_nx = 38
45@ = 0
46@ = 0
47@ = 0
48@ = 0
49@ = 0
40@ = 0
41@ = 0
42@ = 0
43@ = 0
44@ = 0
278@ = Sequence.Open()
Task.GoStraightToCoord(-1, 81@, 87@, 93@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 82@, 88@, 94@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 77@, 83@, 89@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 78@, 84@, 90@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 79@, 85@, 91@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 80@, 86@, 92@, MoveState.Walk, -1)
Sequence.SetToRepeat(278@, True)
Sequence.Close(278@)
279@ = Sequence.Open()
Task.GoStraightToCoord(-1, 82@, 88@, 94@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 81@, 87@, 93@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 80@, 86@, 92@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 79@, 85@, 91@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 78@, 84@, 90@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 77@, 83@, 89@, MoveState.Walk, -1)
Sequence.SetToRepeat(279@, True)
Sequence.Close(279@)
280@ = Sequence.Open()
Task.GoStraightToCoord(-1, 80@, 86@, 92@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 81@, 87@, 93@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 82@, 88@, 94@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 77@, 83@, 89@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 78@, 84@, 90@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 79@, 85@, 91@, MoveState.Walk, -1)
Sequence.SetToRepeat(280@, True)
Sequence.Close(280@)
281@ = Sequence.Open()
Task.GoStraightToCoord(-1, 79@, 85@, 91@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 78@, 84@, 90@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 77@, 83@, 89@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 82@, 88@, 94@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 81@, 87@, 93@, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 80@, 86@, 92@, MoveState.Walk, -1)
Sequence.SetToRepeat(281@, True)
Sequence.Close(281@)
273@ = Object.CreateNoOffset(#ROADWORKBARRIER1, -2450.083, -2079.953, 125.711)
Object.SetRotation(273@, 9.209, 7.675, -43.371)
274@ = Object.CreateNoOffset(#ROADWORKBARRIER1, -2449.15, -2078.21, 125.917)
Object.SetRotation(274@, 4.992, 7.247, -15.069)
275@ = Object.CreateNoOffset(#ROADWORKBARRIER1, -2447.868, -2076.578, 125.975)
Object.SetRotation(275@, -1.869, 8.724, -44.611)
gosub @BCRASH1_47
Player.SetGroupRecruitment($player1, False)
Char.GiveWeapon($scplayer, WeaponType.Camera, 30000)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Char.SetHeading($scplayer, 54.0)
Camera.SetFixedPosition(-2041.009, -2527.207, 33.9116, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2041.785, -2526.603, 34.0884, SwitchType.JumpCut)
Camera.DoFade(300, Fade.In)

:BCRASH1_3510
if 
  Camera.GetFadingStatus
goto_if_false @BCRASH1_3534
wait 0
goto @BCRASH1_3510

:BCRASH1_3534
wait 3000
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Text.PrintNow('BCR1_03', 5000, 1)
65@ = Blip.AddForCoord(98@, 101@, 104@)

:BCRASH1_3584
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @BCRASH1_3610
goto @BCRASH1_13609

:BCRASH1_3610
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @BCRASH1_3632
$flag_bcr1_skip = 1

:BCRASH1_3632
if 
  $main_visible_area == 0
goto_if_false @BCRASH1_3846
if 
  55@ == 3
goto_if_false @BCRASH1_3699
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @BCRASH1_3699
Text.PrintHelp('BCR1_23')
55@ = 4

:BCRASH1_3699
if 
  55@ == 2
goto_if_false @BCRASH1_3748
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @BCRASH1_3748
Text.PrintHelp('FEG_HOW')
55@ = 3

:BCRASH1_3748
if 
  55@ == 1
goto_if_false @BCRASH1_3797
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @BCRASH1_3797
Text.PrintHelp('BCR1_21')
55@ = 2

:BCRASH1_3797
if 
  55@ == 0
goto_if_false @BCRASH1_3846
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @BCRASH1_3846
Text.PrintHelp('BCR1_22')
55@ = 1

:BCRASH1_3846
if 
  4 > $l1f2_sweet_health
goto_if_false @BCRASH1_3954
if 
  35@ == 0
goto_if_false @BCRASH1_3913
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BCRASH1_3913
272@ = Char.StoreCarIsIn($scplayer)
35@ = 1

:BCRASH1_3913
if 
  35@ == 1
goto_if_false @BCRASH1_3954
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @BCRASH1_3954
35@ = 0

:BCRASH1_3954
if 
  $l1f2_sweet_health == -1
goto_if_false @BCRASH1_4142
if 
  not Char.IsDead($scplayer)
goto_if_false @BCRASH1_4142
if 
  Char.LocateAnyMeans3D($scplayer, 98@, 101@, 104@, 4.0, 4.0, 4.0, True)
goto_if_false @BCRASH1_4142
Blip.Remove(65@)
95@ = -2774.981
96@ = -1591.26
97@ = 140.388
64@ = Blip.AddForCoord(95@, 96@, 97@)
Text.PrintNow('BCR1_18', 5000, 1)
if 
  $flag_bcr1_skip == 1
goto_if_false @BCRASH1_4135
Skip.SetUp(-2767.883, -1634.114, 140.3939, 0.0569)

:BCRASH1_4135
$l1f2_sweet_health = 0

:BCRASH1_4142
if 
  $l1f2_sweet_health == 0
goto_if_false @BCRASH1_4299
if 
  not Char.IsDead($scplayer)
goto_if_false @BCRASH1_4299
if 
  53@ == 0
goto_if_false @BCRASH1_4299
if 
  Char.LocateAnyMeans3D($scplayer, 95@, 96@, 97@, 150.0, 150.0, 150.0, False)
goto_if_false @BCRASH1_4299
Blip.Remove(64@)
95@ = -2774.981
96@ = -1591.26
97@ = 140.388
64@ = Blip.AddForCoord(95@, 96@, 97@)
$bc1_in_water = 0
53@ = 1

:BCRASH1_4299
if 
  $l1f2_sweet_health == 0
goto_if_false @BCRASH1_5490
if 
  not Char.IsDead($scplayer)
goto_if_false @BCRASH1_5490
if 
  $bc1_in_water > 1
goto_if_false @BCRASH1_4427
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BCRASH1_4375
38@ = 0

:BCRASH1_4375
if 
  38@ == 0
goto_if_false @BCRASH1_4427
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BCRASH1_4427
Text.ClearPrints
266@ -= 1000
$bc1_in_water = 6

:BCRASH1_4427
if 
  $bc1_in_water == 0
goto_if_false @BCRASH1_4617
if 
  Char.LocateAnyMeans3D($scplayer, 95@, 96@, 97@, 100.0, 100.0, 100.0, False)
goto_if_false @BCRASH1_4617
38@ = 1
Player.SetControl($player1, False)
Camera.DoFade(300, Fade.Out)

:BCRASH1_4508
if 
  Camera.GetFadingStatus
goto_if_false @BCRASH1_4532
wait 0
goto @BCRASH1_4508

:BCRASH1_4532
gosub @BCRASH1_168
gosub @BCRASH1_248
gosub @BCRASH1_682
gosub @BCRASH1_794
266@ = Clock.GetGameTimer()
if 
  $flag_bcr1_skip == 1
goto_if_false @BCRASH1_4585
Skip.Clear

:BCRASH1_4585
if 
  $flag_bcr1_skip == 0
goto_if_false @BCRASH1_4610
$flag_bcr1_skip = 1

:BCRASH1_4610
$bc1_in_water = 1

:BCRASH1_4617
if 
  $bc1_in_water == 1
goto_if_false @BCRASH1_4927
267@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 250
goto_if_false @BCRASH1_4927
Streaming.LoadScene(70@, 71@, 72@)
Camera.SetFixedPosition(-2795.861, -1536.975, 139.3093, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2796.553, -1536.282, 139.5107, SwitchType.JumpCut)
World.ClearArea(70@, 71@, 72@, 75.0, True)
Hud.SwitchWidescreen(True)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(300, Fade.In)

:BCRASH1_4774
if 
  Camera.GetFadingStatus
goto_if_false @BCRASH1_4798
wait 0
goto @BCRASH1_4774

:BCRASH1_4798
Text.PrintNow('BCR1_04', 3000, 1)
Blip.Remove(64@)
if 
  not Char.IsDead(291@)
goto_if_false @BCRASH1_4843
Char.PerformSequence(291@, 278@)

:BCRASH1_4843
if 
  not Char.IsDead(292@)
goto_if_false @BCRASH1_4867
Char.PerformSequence(292@, 279@)

:BCRASH1_4867
if 
  not Char.IsDead(293@)
goto_if_false @BCRASH1_4891
Char.PerformSequence(293@, 280@)

:BCRASH1_4891
if 
  not Char.IsDead(294@)
goto_if_false @BCRASH1_4915
Char.PerformSequence(294@, 281@)

:BCRASH1_4915
266@ = Clock.GetGameTimer()
$bc1_in_water = 2

:BCRASH1_4927
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_5490
if 
  $bc1_in_water == 2
goto_if_false @BCRASH1_5029
267@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 3000
goto_if_false @BCRASH1_5029
Text.PrintNow('BCR1_19', 3000, 1)
266@ = Clock.GetGameTimer()
$bc1_in_water = 3

:BCRASH1_5029
if 
  $bc1_in_water == 3
goto_if_false @BCRASH1_5166
267@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 3000
goto_if_false @BCRASH1_5166
Text.PrintNow('BCR1_20', 4000, 1)
Camera.SetFixedPosition(-2793.092, -1510.473, 139.2297, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2793.947, -1510.945, 139.4455, SwitchType.JumpCut)
266@ = Clock.GetGameTimer()
$bc1_in_water = 4

:BCRASH1_5166
if 
  $bc1_in_water == 4
goto_if_false @BCRASH1_5236
267@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 2000
goto_if_false @BCRASH1_5236
266@ = Clock.GetGameTimer()
$bc1_in_water = 5

:BCRASH1_5236
if 
  $bc1_in_water == 5
goto_if_false @BCRASH1_5306
267@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 1500
goto_if_false @BCRASH1_5306
266@ = Clock.GetGameTimer()
$bc1_in_water = 6

:BCRASH1_5306
if 
  $bc1_in_water == 6
goto_if_false @BCRASH1_5490
267@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 500
goto_if_false @BCRASH1_5490
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
if and
  not Char.IsDead(284@)
  not Car.IsDead(322@)
goto_if_false @BCRASH1_5490
285@ = Blip.AddForChar(284@)
$l1f2_sweet_health = 1
$bc1_in_water = 7
282@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, -2822.47, -1518.595, 139.7656, 4, -2)
Task.FollowPathNodesToCoord(-1, -2822.97, -1514.244, 138.2893, 4, -2)
Task.EnterCarAsDriver(-1, 322@, -727379969)
Sequence.Close(282@)

:BCRASH1_5490
if 
  $l1f2_sweet_health == 1
goto_if_false @BCRASH1_8165
if 
  Char.IsOnFoot($scplayer)
goto_if_false @BCRASH1_5908
if 
  Char.IsDead(284@)
goto_if_false @BCRASH1_5681
if 
  not Char.IsDead(291@)
goto_if_false @BCRASH1_5564
Task.KillCharOnFoot(291@, $scplayer)

:BCRASH1_5564
if 
  not Char.IsDead(292@)
goto_if_false @BCRASH1_5588
Task.KillCharOnFoot(292@, $scplayer)

:BCRASH1_5588
if 
  not Char.IsDead(293@)
goto_if_false @BCRASH1_5612
Task.KillCharOnFoot(293@, $scplayer)

:BCRASH1_5612
if 
  not Char.IsDead(294@)
goto_if_false @BCRASH1_5636
Task.KillCharOnFoot(294@, $scplayer)

:BCRASH1_5636
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_5681
Car.SetProofs(322@, False, False, False, False, False)
Car.LockDoors(322@, CarLock.Unlocked)
Car.FreezePosition(322@, False)

:BCRASH1_5681
if or
  Char.IsDead(291@)
  Char.IsDead(292@)
  Char.IsDead(293@)
  Char.IsDead(294@)
goto_if_false @BCRASH1_5908
if 
  46@ == 0
goto_if_false @BCRASH1_5761
if 
  not Char.IsDead(291@)
goto_if_false @BCRASH1_5761
Task.KillCharOnFoot(291@, $scplayer)
46@ = 1

:BCRASH1_5761
if 
  47@ == 0
goto_if_false @BCRASH1_5810
if 
  not Char.IsDead(292@)
goto_if_false @BCRASH1_5810
Task.KillCharOnFoot(292@, $scplayer)
47@ = 1

:BCRASH1_5810
if 
  48@ == 0
goto_if_false @BCRASH1_5859
if 
  not Char.IsDead(293@)
goto_if_false @BCRASH1_5859
Task.KillCharOnFoot(293@, $scplayer)
48@ = 1

:BCRASH1_5859
if 
  49@ == 0
goto_if_false @BCRASH1_5908
if 
  not Char.IsDead(294@)
goto_if_false @BCRASH1_5908
Task.KillCharOnFoot(294@, $scplayer)
49@ = 1

:BCRASH1_5908
if 
  not Char.IsDead($scplayer)
goto_if_false @BCRASH1_8165
if 
  not Char.IsDead(291@)
goto_if_false @BCRASH1_6413
50@ = 1
gosub @BCRASH1_13861
set_lvar_float_to_lvar_float 302@ = 73@
set_lvar_float_to_lvar_float 307@ = 74@
set_lvar_float_to_lvar_float 312@ = 75@
if 
  41@ == 0
goto_if_false @BCRASH1_6141
if 
  Char.LocateInCar3D($scplayer, 302@, 307@, 312@, 30.0, 30.0, 30.0, False)
goto_if_false @BCRASH1_6141
if 
  not Car.IsDead(272@)
goto_if_false @BCRASH1_6141
Task.DestroyCar(291@, 272@)
41@ = 1
46@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6141
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_6141
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_6141
Char.PerformSequence(284@, 282@)
56@ = 1

:BCRASH1_6141
if 
  46@ == 0
goto_if_false @BCRASH1_6413
if 
  Char.LocateOnFoot3D($scplayer, 302@, 307@, 312@, 5.0, 5.0, 5.0, False)
goto_if_false @BCRASH1_6288
Task.KillCharOnFoot(291@, $scplayer)
46@ = 1
41@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6288
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_6288
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_6288
Char.PerformSequence(284@, 282@)
56@ = 1

:BCRASH1_6288
if 
  Char.IsShootingInArea($scplayer, -2774.03, -1572.78, -2837.13, -1468.24, False)
goto_if_false @BCRASH1_6413
Task.KillCharOnFoot(291@, $scplayer)
46@ = 1
41@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6413
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_6413
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_6413
Char.PerformSequence(284@, 282@)
56@ = 1

:BCRASH1_6413
if 
  not Char.IsDead(292@)
goto_if_false @BCRASH1_6902
50@ = 2
gosub @BCRASH1_13861
set_lvar_float_to_lvar_float 303@ = 73@
set_lvar_float_to_lvar_float 308@ = 74@
set_lvar_float_to_lvar_float 313@ = 75@
if 
  42@ == 0
goto_if_false @BCRASH1_6630
if 
  Char.LocateInCar3D($scplayer, 303@, 308@, 313@, 30.0, 30.0, 30.0, False)
goto_if_false @BCRASH1_6630
if 
  not Car.IsDead(272@)
goto_if_false @BCRASH1_6630
Task.DestroyCar(292@, 272@)
42@ = 1
47@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6630
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_6630
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_6630
Char.PerformSequence(284@, 282@)
56@ = 1

:BCRASH1_6630
if 
  47@ == 0
goto_if_false @BCRASH1_6902
if 
  Char.LocateOnFoot3D($scplayer, 303@, 308@, 313@, 5.0, 5.0, 5.0, False)
goto_if_false @BCRASH1_6777
Task.KillCharOnFoot(292@, $scplayer)
47@ = 1
42@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6777
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_6777
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_6777
Char.PerformSequence(284@, 282@)
56@ = 1

:BCRASH1_6777
if 
  Char.IsShootingInArea($scplayer, -2774.03, -1572.78, -2837.13, -1468.24, False)
goto_if_false @BCRASH1_6902
Task.KillCharOnFoot(292@, $scplayer)
47@ = 1
42@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6902
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_6902
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_6902
Char.PerformSequence(284@, 282@)
56@ = 1

:BCRASH1_6902
if 
  not Char.IsDead(293@)
goto_if_false @BCRASH1_7391
50@ = 3
gosub @BCRASH1_13861
set_lvar_float_to_lvar_float 304@ = 73@
set_lvar_float_to_lvar_float 309@ = 74@
set_lvar_float_to_lvar_float 314@ = 75@
if 
  43@ == 0
goto_if_false @BCRASH1_7119
if 
  Char.LocateInCar3D($scplayer, 304@, 309@, 314@, 30.0, 30.0, 30.0, False)
goto_if_false @BCRASH1_7119
if 
  not Car.IsDead(272@)
goto_if_false @BCRASH1_7119
Task.DestroyCar(293@, 272@)
43@ = 1
48@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7119
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_7119
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_7119
Char.PerformSequence(284@, 282@)
56@ = 1

:BCRASH1_7119
if 
  48@ == 0
goto_if_false @BCRASH1_7391
if 
  Char.LocateOnFoot3D($scplayer, 304@, 309@, 314@, 5.0, 5.0, 5.0, False)
goto_if_false @BCRASH1_7266
Task.KillCharOnFoot(293@, $scplayer)
48@ = 1
43@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7266
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_7266
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_7266
Char.PerformSequence(284@, 282@)
56@ = 1

:BCRASH1_7266
if 
  Char.IsShootingInArea($scplayer, -2774.03, -1572.78, -2837.13, -1468.24, False)
goto_if_false @BCRASH1_7391
Task.KillCharOnFoot(293@, $scplayer)
48@ = 1
43@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7391
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_7391
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_7391
Char.PerformSequence(284@, 282@)
56@ = 1

:BCRASH1_7391
if 
  not Char.IsDead(294@)
goto_if_false @BCRASH1_7880
50@ = 4
gosub @BCRASH1_13861
set_lvar_float_to_lvar_float 305@ = 73@
set_lvar_float_to_lvar_float 310@ = 74@
set_lvar_float_to_lvar_float 315@ = 75@
if 
  44@ == 0
goto_if_false @BCRASH1_7608
if 
  Char.LocateInCar3D($scplayer, 305@, 310@, 315@, 30.0, 30.0, 30.0, False)
goto_if_false @BCRASH1_7608
if 
  not Car.IsDead(272@)
goto_if_false @BCRASH1_7608
Task.DestroyCar(294@, 272@)
44@ = 1
49@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7608
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_7608
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_7608
Char.PerformSequence(284@, 282@)
56@ = 1

:BCRASH1_7608
if 
  49@ == 0
goto_if_false @BCRASH1_7880
if 
  Char.LocateOnFoot3D($scplayer, 305@, 310@, 315@, 5.0, 5.0, 5.0, False)
goto_if_false @BCRASH1_7755
Task.KillCharOnFoot(294@, $scplayer)
49@ = 1
44@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7755
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_7755
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_7755
Char.PerformSequence(284@, 282@)
56@ = 1

:BCRASH1_7755
if 
  Char.IsShootingInArea($scplayer, -2774.03, -1572.78, -2837.13, -1468.24, False)
goto_if_false @BCRASH1_7880
Task.KillCharOnFoot(294@, $scplayer)
49@ = 1
44@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7880
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_7880
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_7880
Char.PerformSequence(284@, 282@)
56@ = 1

:BCRASH1_7880
if 
  56@ == 1
goto_if_false @BCRASH1_7963
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_7963
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_7963
if 
  Char.IsSittingInCar(284@, 322@)
goto_if_false @BCRASH1_7963
$bc1_in_water = 0
$l1f2_sweet_health = 3

:BCRASH1_7963
if 
  Char.IsDead(284@)
goto_if_false @BCRASH1_8120
if 
  not Char.IsDead(291@)
goto_if_false @BCRASH1_8003
Task.KillCharOnFoot(291@, $scplayer)

:BCRASH1_8003
if 
  not Char.IsDead(292@)
goto_if_false @BCRASH1_8027
Task.KillCharOnFoot(292@, $scplayer)

:BCRASH1_8027
if 
  not Char.IsDead(293@)
goto_if_false @BCRASH1_8051
Task.KillCharOnFoot(293@, $scplayer)

:BCRASH1_8051
if 
  not Char.IsDead(294@)
goto_if_false @BCRASH1_8075
Task.KillCharOnFoot(294@, $scplayer)

:BCRASH1_8075
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_8120
Car.SetProofs(322@, False, False, False, False, False)
Car.LockDoors(322@, CarLock.Unlocked)
Car.FreezePosition(322@, False)

:BCRASH1_8120
if and
  Char.IsDead(291@)
  Char.IsDead(292@)
  Char.IsDead(293@)
  Char.IsDead(294@)
goto_if_false @BCRASH1_8165
$bc1_in_water = 0
$l1f2_sweet_health = 2

:BCRASH1_8165
if 
  $l1f2_sweet_health == 2
goto_if_false @BCRASH1_8313
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_8313
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_8290
if 
  56@ == 0
goto_if_false @BCRASH1_8269
Char.PerformSequence(284@, 282@)
56@ = 1
$bc1_in_water = 0
$l1f2_sweet_health = 3
goto @BCRASH1_8283

:BCRASH1_8269
$bc1_in_water = 0
$l1f2_sweet_health = 3

:BCRASH1_8283
goto @BCRASH1_8313

:BCRASH1_8290
Text.PrintNow('BCR1_10', 5000, 1)
$l1f2_sweet_health = 7

:BCRASH1_8313
if 
  $l1f2_sweet_health == 3
goto_if_false @BCRASH1_9346
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_9324
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_9279
if 
  Char.IsInCar(284@, 322@)
goto_if_false @BCRASH1_9193
if 
  $bc1_in_water > 2
goto_if_false @BCRASH1_8407
$bc1_in_water = 0

:BCRASH1_8407
if 
  Car.IsPlaybackGoingOn(322@)
goto_if_false @BCRASH1_8606
233@, 234@, 235@ = Car.GetOffsetInWorldCoords(322@, 0.0, 4.0, 0.0)
set_lvar_float_to_lvar_float 227@ = 233@
227@ -= 1.5
set_lvar_float_to_lvar_float 228@ = 234@
228@ -= 1.5
set_lvar_float_to_lvar_float 229@ = 235@
229@ -= 1.5
set_lvar_float_to_lvar_float 230@ = 233@
230@ += 1.5
set_lvar_float_to_lvar_float 231@ = 234@
231@ += 1.5
set_lvar_float_to_lvar_float 232@ = 235@
232@ += 1.5
if 
  World.IsAreaOccupied(227@, 228@, 229@, 230@, 231@, 232@, False, False, True, False, False)
goto_if_false @BCRASH1_8606
Car.StopPlayback(322@)

:BCRASH1_8606
if 
  Car.IsPlaybackGoingOn(322@)
goto_if_false @BCRASH1_8690
if 
  Char.LocateInCar3D(284@, 107@($bc1_cut,40f), 147@($bc1_cut,40f), 187@($bc1_cut,40f), 20.0, 20.0, 20.0, False)
goto_if_false @BCRASH1_8690
$bc1_cut += 1
$bc1_route += 1

:BCRASH1_8690
if 
  $bc1_in_water == 0
goto_if_false @BCRASH1_9016
Car.SetHealth(322@, 1000)
Car.SetCruiseSpeed(322@, 40.0)
Car.SetDrivingStyle(322@, DrivingMode.PloughThrough)
Car.SetOnlyDamagedByPlayer(322@, True)
Car.SetProofs(322@, False, False, False, False, False)
Streaming.RequestCarRecording(170)

:BCRASH1_8760
if 
  not Streaming.HasCarRecordingBeenLoaded(170)
goto_if_false @BCRASH1_8787
wait 0
goto @BCRASH1_8760

:BCRASH1_8787
if and
  not Car.IsDead(322@)
  not Char.IsDead(284@)
goto_if_false @BCRASH1_8873
if 
  Char.IsSittingInCar(284@, 322@)
goto_if_false @BCRASH1_8873
Car.FreezePosition(322@, False)
Car.StartPlayback(322@, 170)
Car.SetPlaybackSpeed(322@, 0.65)
StuckCarCheck.AddWithWarp(322@, 1.0, 2000, True, True, True, 1)

:BCRASH1_8873
Text.PrintNow('BCR1_07', 4000, 1)
if 
  not Car.IsDead(328@)
goto_if_false @BCRASH1_8942
if and
  not Char.IsOnAnyBike($scplayer)
  not Char.IsInAnyCar($scplayer)
goto_if_false @BCRASH1_8942
Text.Print('BCR1_14', 4000, 1)

:BCRASH1_8942
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2795.252, -1505.949, 138.8073, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2796.0, -1506.586, 138.9953, SwitchType.JumpCut)
266@ = Clock.GetGameTimer()
$bc1_in_water = 1

:BCRASH1_9016
if 
  $bc1_in_water == 1
goto_if_false @BCRASH1_9193
if 
  Char.IsOnScreen($scplayer)
goto_if_false @BCRASH1_9141
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BCRASH1_9111
272@ = Char.StoreCarIsInNoSave($scplayer)
Car.SetCoordinates(272@, -2789.672, -1491.142, 137.1726)
Car.SetHeading(272@, 227.9636)
goto @BCRASH1_9141

:BCRASH1_9111
Char.SetCoordinates($scplayer, -2789.672, -1491.142, 137.1726)
Char.SetHeading($scplayer, 227.9636)

:BCRASH1_9141
267@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 4000
goto_if_false @BCRASH1_9193
266@ = Clock.GetGameTimer()
$bc1_in_water = 2

:BCRASH1_9193
if 
  $bc1_in_water == 2
goto_if_false @BCRASH1_9272
267@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 1
goto_if_false @BCRASH1_9272
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
$l1f2_sweet_health = 4

:BCRASH1_9272
goto @BCRASH1_9317

:BCRASH1_9279
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Text.PrintNow('BCR1_10', 5000, 1)
$l1f2_sweet_health = 7

:BCRASH1_9317
goto @BCRASH1_9346

:BCRASH1_9324
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
$l1f2_sweet_health = 4

:BCRASH1_9346
if 
  $l1f2_sweet_health == 4
goto_if_false @BCRASH1_10974
if 
  Car.IsDead(322@)
goto_if_false @BCRASH1_9454
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_9454
if 
  not Char.IsOnFoot(284@)
goto_if_false @BCRASH1_9447
Char.Delete(284@)
Text.PrintNow('BCR1_09', 5000, 1)
goto @BCRASH1_13511
goto @BCRASH1_9454

:BCRASH1_9447
$l1f2_sweet_health = 7

:BCRASH1_9454
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_10974
if and
  not Char.IsDead(284@)
  not Char.IsDead($scplayer)
goto_if_false @BCRASH1_10974
if 
  Char.IsSittingInCar(284@, 322@)
goto_if_false @BCRASH1_10937
if 
  Car.IsPlaybackGoingOn(322@)
goto_if_false @BCRASH1_9594
if 
  Char.LocateInCar3D(284@, 107@($bc1_cut,40f), 147@($bc1_cut,40f), 187@($bc1_cut,40f), 15.0, 15.0, 15.0, False)
goto_if_false @BCRASH1_9594
$bc1_cut += 1
$bc1_route += 1

:BCRASH1_9594
if 
  not Car.IsPlaybackGoingOn(322@)
goto_if_false @BCRASH1_10134
if 
  34@ == 0
goto_if_false @BCRASH1_9673
Task.CarDriveToCoord(284@, 322@, 107@($bc1_cut,40f), 147@($bc1_cut,40f), 187@($bc1_cut,40f), 321@, DriveMode.Racing, 0, DrivingMode.AvoidCars)
34@ = 1

:BCRASH1_9673
if or
  Car.IsOnFire(322@)
  Car.IsUpsidedown(322@)
goto_if_false @BCRASH1_9746
Car.SetCruiseSpeed(322@, 0.0)
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_9739
Char.SetRelationship(284@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(284@, 65540)

:BCRASH1_9739
$l1f2_sweet_health = 5

:BCRASH1_9746
if 
  34@ == 1
goto_if_false @BCRASH1_10041
if 
  is_int_var_greater_than_int_var $bc1_route_nx > $bc1_cut
goto_if_false @BCRASH1_9955
gosub @BCRASH1_13881
if 
  Char.LocateInCar3D(284@, 107@($bc1_cut,40f), 147@($bc1_cut,40f), 187@($bc1_cut,40f), 5.0, 5.0, 5.0, False)
goto_if_false @BCRASH1_9948
if and
  $bc1_cut > 7
  19 > $bc1_cut
goto_if_false @BCRASH1_9886
321@ = 20.0
goto @BCRASH1_9896

:BCRASH1_9886
321@ = 30.0

:BCRASH1_9896
$bc1_cut += 1
$bc1_route += 1
Task.CarDriveToCoord(284@, 322@, 107@($bc1_cut,40f), 147@($bc1_cut,40f), 187@($bc1_cut,40f), 321@, DriveMode.Racing, 0, DrivingMode.AvoidCars)

:BCRASH1_9948
goto @BCRASH1_10041

:BCRASH1_9955
if 
  Char.LocateInCar3D(284@, 107@($bc1_cut,40f), 147@($bc1_cut,40f), 187@($bc1_cut,40f), 8.0, 8.0, 8.0, False)
goto_if_false @BCRASH1_10041
Task.CarDriveWander(284@, 322@, 50.0, DrivingMode.AvoidCars)
Car.SetCruiseSpeed(322@, 50.0)
34@ = 2

:BCRASH1_10041
if 
  34@ == 2
goto_if_false @BCRASH1_10134
if 
  not Char.IsOnScreen(284@)
goto_if_false @BCRASH1_10134
if 
  not Char.LocateAnyMeansChar3D($scplayer, 284@, 100.0, 100.0, 100.0, False)
goto_if_false @BCRASH1_10134
Text.PrintNow('BCR1_12', 6000, 1)
goto @BCRASH1_13511

:BCRASH1_10134
if 
  57@ == 0
goto_if_false @BCRASH1_10293
267@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 6000
goto_if_false @BCRASH1_10293
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BCRASH1_10293
if 
  Car.IsPlaybackGoingOn(322@)
goto_if_false @BCRASH1_10293
if 
  Char.LocateAnyMeansCar3D($scplayer, 322@, 30.0, 30.0, 30.0, False)
goto_if_false @BCRASH1_10293
Car.SetPlaybackSpeed(322@, 0.8)
Text.PrintNow('BCR1_15', 6000, 1)
57@ = 1

:BCRASH1_10293
if 
  Car.IsPlaybackGoingOn(322@)
goto_if_false @BCRASH1_10562
233@, 234@, 235@ = Car.GetOffsetInWorldCoords(322@, 0.0, 4.0, 0.0)
set_lvar_float_to_lvar_float 227@ = 233@
227@ -= 1.5
set_lvar_float_to_lvar_float 228@ = 234@
228@ -= 1.5
set_lvar_float_to_lvar_float 229@ = 235@
229@ -= 1.5
set_lvar_float_to_lvar_float 230@ = 233@
230@ += 1.5
set_lvar_float_to_lvar_float 231@ = 234@
231@ += 1.5
set_lvar_float_to_lvar_float 232@ = 235@
232@ += 1.5
if 
  World.IsAreaOccupied(227@, 228@, 229@, 230@, 231@, 232@, False, True, False, False, False)
goto_if_false @BCRASH1_10492
Car.StopPlayback(322@)

:BCRASH1_10492
if 
  Car.IsOnFire(322@)
goto_if_false @BCRASH1_10530
Car.StopPlayback(322@)
Car.SetCruiseSpeed(322@, 0.0)
$l1f2_sweet_health = 5

:BCRASH1_10530
269@ = Car.GetHealth(322@)
if 
  900 > 269@
goto_if_false @BCRASH1_10562
Car.StopPlayback(322@)

:BCRASH1_10562
if 
  51@ == 1
goto_if_false @BCRASH1_10661
67@, 68@, 69@ = Char.GetCoordinates($scplayer)
287@, 288@, 289@ = Char.GetCoordinates(284@)
if 
  not World.IsLineOfSightClear(67@, 68@, 69@, 287@, 288@, 289@, True, False, False, False, False)
goto_if_false @BCRASH1_10661
266@ = Clock.GetGameTimer()
51@ = 0

:BCRASH1_10661
if 
  51@ == 0
goto_if_false @BCRASH1_10937
67@, 68@, 69@ = Char.GetCoordinates($scplayer)
287@, 288@, 289@ = Char.GetCoordinates(284@)
if 
  not World.IsLineOfSightClear(67@, 68@, 69@, 287@, 288@, 289@, True, False, False, False, False)
goto_if_false @BCRASH1_10889
267@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if and
  268@ > 1000
  6000 > 268@
goto_if_false @BCRASH1_10811
Text.PrintNow('BCR1_07', 100, 1)

:BCRASH1_10811
if 
  268@ > 30000
goto_if_false @BCRASH1_10889
if 
  not Char.LocateAnyMeansChar3D($scplayer, 284@, 25.0, 25.0, 25.0, False)
goto_if_false @BCRASH1_10889
Text.PrintNow('BCR1_12', 5000, 1)
goto @BCRASH1_13511

:BCRASH1_10889
if 
  World.IsLineOfSightClear(67@, 68@, 69@, 287@, 288@, 289@, True, False, False, False, False)
goto_if_false @BCRASH1_10937
51@ = 1

:BCRASH1_10937
if 
  Car.IsInWater(322@)
goto_if_false @BCRASH1_10974
if 
  Car.DoesHaveStuckCarCheck(322@)
goto_if_false @BCRASH1_10974
StuckCarCheck.Remove(322@)

:BCRASH1_10974
if 
  $l1f2_sweet_health == 5
goto_if_false @BCRASH1_11258
if 
  Car.IsDead(322@)
goto_if_false @BCRASH1_11082
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_11082
if 
  not Char.IsOnFoot(284@)
goto_if_false @BCRASH1_11075
Char.Delete(284@)
Text.PrintNow('BCR1_09', 5000, 1)
goto @BCRASH1_13511
goto @BCRASH1_11082

:BCRASH1_11075
$l1f2_sweet_health = 6

:BCRASH1_11082
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_11194
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_11187
if 
  Car.IsStopped(322@)
goto_if_false @BCRASH1_11187
if 
  Char.IsSittingInCar(284@, 322@)
goto_if_false @BCRASH1_11187
324@, 325@, 326@ = Car.GetCoordinates(322@)
Task.LeaveCarAndFlee(284@, 322@, 324@, 325@, 326@)
$l1f2_sweet_health = 6

:BCRASH1_11187
goto @BCRASH1_11258

:BCRASH1_11194
if and
  not Char.IsDead(284@)
  not Car.IsDead(322@)
goto_if_false @BCRASH1_11258
if 
  Char.IsSittingInCar(284@, 322@)
goto_if_false @BCRASH1_11258
Task.LeaveCarAndFlee(284@, 322@, 324@, 325@, 326@)
$l1f2_sweet_health = 6

:BCRASH1_11258
if and
  $l1f2_sweet_health > 0
  7 > $l1f2_sweet_health
goto_if_false @BCRASH1_11595
if 
  Char.DoesExist(284@)
goto_if_false @BCRASH1_11595
if 
  Char.IsHeadMissing(284@)
goto_if_false @BCRASH1_11361
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_11338
Car.LockDoors(322@, CarLock.Unlocked)

:BCRASH1_11338
Text.PrintNow('BCR1_09', 5000, 1)
goto @BCRASH1_13511

:BCRASH1_11361
if 
  Char.IsDead(284@)
goto_if_false @BCRASH1_11407
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_11400
Car.LockDoors(322@, CarLock.Unlocked)

:BCRASH1_11400
$l1f2_sweet_health = 7

:BCRASH1_11407
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_11439
if 
  Char.HasBeenPhotographed(284@)
goto_if_false @BCRASH1_11439

:BCRASH1_11439
if 
  56@ == 1
goto_if_false @BCRASH1_11595
if 
  37@ <> 2
goto_if_false @BCRASH1_11595
if 
  Car.IsDead(322@)
goto_if_false @BCRASH1_11595
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_11595
283@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, -2822.47, -1518.595, 139.7656, 4, -2)
Task.FollowPathNodesToCoord(-1, -2822.97, -1514.244, 138.2893, 6, -2)
Task.FleeChar(-1, $scplayer, 1000.0, 5000000)
Sequence.Close(283@)
Char.PerformSequence(284@, 283@)
37@ = 2

:BCRASH1_11595
if 
  $l1f2_sweet_health == 6
goto_if_false @BCRASH1_11700
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_11700
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_11700
if 
  not Char.IsSittingInCar(284@, 322@)
goto_if_false @BCRASH1_11700
Blip.Remove(285@)
285@ = Blip.AddForChar(284@)
Text.PrintNow('BCR1_08', 5000, 1)
$l1f2_sweet_health = 7

:BCRASH1_11700
if 
  $l1f2_sweet_health > 3
goto_if_false @BCRASH1_11775
if 
  52@ == 0
goto_if_false @BCRASH1_11775
if 
  not Char.DoesExist(284@)
goto_if_false @BCRASH1_11775
Text.PrintNow('BCR1_09', 5000, 1)
goto @BCRASH1_13511

:BCRASH1_11775
if 
  $l1f2_sweet_health == 7
goto_if_false @BCRASH1_12538
if 
  Char.DoesExist(284@)
goto_if_false @BCRASH1_11848
if 
  Char.IsHeadMissing(284@)
goto_if_false @BCRASH1_11848
Text.PrintNow('BCR1_09', 5000, 1)
goto @BCRASH1_13511

:BCRASH1_11848
if 
  52@ == 0
goto_if_false @BCRASH1_12477
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_12401
if 
  37@ == 0
goto_if_false @BCRASH1_12005
287@, 288@, 289@ = Char.GetCoordinates(284@)
if 
  not Car.IsDead(322@)
goto_if_false @BCRASH1_11948
36@ = Char.GetScriptTaskStatus(284@, 1487)
goto @BCRASH1_11955

:BCRASH1_11948
set_lvar_int_to_constant 36@ = 7

:BCRASH1_11955
if 
  is_int_lvar_equal_to_constant 36@ == 7
goto_if_false @BCRASH1_12005
Task.FleeChar(284@, $scplayer, 50.0, 100000000)
37@ = 1
36@ = 5

:BCRASH1_12005
if 
  37@ == 1
goto_if_false @BCRASH1_12070
36@ = Char.GetScriptTaskStatus(284@, 1499)
if 
  is_int_lvar_equal_to_constant 36@ == 7
goto_if_false @BCRASH1_12070
Task.FleeChar(284@, $scplayer, 50.0, 100000000)

:BCRASH1_12070
if 
  51@ == 1
goto_if_false @BCRASH1_12169
67@, 68@, 69@ = Char.GetCoordinates($scplayer)
287@, 288@, 289@ = Char.GetCoordinates(284@)
if 
  not World.IsLineOfSightClear(67@, 68@, 69@, 287@, 288@, 289@, True, False, False, False, False)
goto_if_false @BCRASH1_12169
266@ = Clock.GetGameTimer()
51@ = 0

:BCRASH1_12169
if 
  51@ == 0
goto_if_false @BCRASH1_12401
67@, 68@, 69@ = Char.GetCoordinates($scplayer)
287@, 288@, 289@ = Char.GetCoordinates(284@)
if 
  not World.IsLineOfSightClear(67@, 68@, 69@, 287@, 288@, 289@, True, False, False, False, False)
goto_if_false @BCRASH1_12353
267@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 1000
goto_if_false @BCRASH1_12311
Text.PrintNow('BCR1_07', 100, 1)

:BCRASH1_12311
if 
  268@ > 15000
goto_if_false @BCRASH1_12353
Text.PrintNow('BCR1_12', 5000, 1)
goto @BCRASH1_13511

:BCRASH1_12353
if 
  World.IsLineOfSightClear(67@, 68@, 69@, 287@, 288@, 289@, True, False, False, False, False)
goto_if_false @BCRASH1_12401
51@ = 1

:BCRASH1_12401
if 
  not Char.IsDead($scplayer)
goto_if_false @BCRASH1_12477
if 
  Char.DoesExist(284@)
goto_if_false @BCRASH1_12477
if 
  Char.HasBeenPhotographed(284@)
goto_if_false @BCRASH1_12477
if 
  Char.IsDead(284@)
goto_if_false @BCRASH1_12477
Blip.Remove(285@)
52@ = 1

:BCRASH1_12477
if 
  52@ == 1
goto_if_false @BCRASH1_12538
66@ = Blip.AddForCoord(-2044.1, -2523.86, 31.11)
Text.PrintNow('BCR1_17', 5000, 1)
$l1f2_sweet_health = 8

:BCRASH1_12538
if 
  $l1f2_sweet_health == 8
goto_if_false @BCRASH1_12636
if 
  not Char.IsDead($scplayer)
goto_if_false @BCRASH1_12636
if 
  Char.LocateOnFoot3D($scplayer, -2044.1, -2523.86, 31.11, 1.2, 1.2, 2.0, True)
goto_if_false @BCRASH1_12636
Char.SetAmmo($scplayer, WeaponType.Camera, 0)
goto @BCRASH1_13609

:BCRASH1_12636
if 
  $l1f2_sweet_health == 7
goto_if_false @BCRASH1_13301
if 
  52@ == 0
goto_if_false @BCRASH1_13192
276@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Camera)
if 
  276@ > 0
goto_if_false @BCRASH1_13052
if 
  59@ == 2
goto_if_false @BCRASH1_12738
285@ = Blip.AddForDeadChar(284@)
Blip.Remove(271@)
59@ = 1

:BCRASH1_12738
if 
  59@ == 1
goto_if_false @BCRASH1_13045
if 
  Char.IsInWater(284@)
goto_if_false @BCRASH1_12779
$bc1_stage = 1

:BCRASH1_12779
if and
  not Char.IsDead($scplayer)
  Char.IsDead(284@)
goto_if_false @BCRASH1_13045
Text.PrintNow('BCR1_10', 100, 1)
if 
  Char.DoesExist(284@)
goto_if_false @BCRASH1_13045
if 
  Char.IsDead(284@)
goto_if_false @BCRASH1_13045
if 
  58@ == 0
goto_if_false @BCRASH1_12914
if 
  Char.LocateAnyMeans3D($scplayer, 287@, 288@, 289@, 5.0, 5.0, 5.0, False)
goto_if_false @BCRASH1_12914
58@ = 1

:BCRASH1_12914
if 
  58@ == 1
goto_if_false @BCRASH1_13045
if 
  not Char.LocateAnyMeans3D($scplayer, 287@, 288@, 289@, 100.0, 100.0, 30.0, False)
goto_if_false @BCRASH1_13045
if 
  $bc1_stage == 1
goto_if_false @BCRASH1_13022
Text.PrintNow('BCR1_16', 5000, 1)
goto @BCRASH1_13511
goto @BCRASH1_13045

:BCRASH1_13022
Text.PrintNow('BCR1_16', 5000, 1)
goto @BCRASH1_13511

:BCRASH1_13045
goto @BCRASH1_13192

:BCRASH1_13052
if 
  Char.IsDead(284@)
goto_if_false @BCRASH1_13192
if 
  59@ == 1
goto_if_false @BCRASH1_13111
if 
  276@ == 0
goto_if_false @BCRASH1_13111
59@ = 0

:BCRASH1_13111
if 
  59@ == 0
goto_if_false @BCRASH1_13192
Text.PrintNow('BCR1_11', 5000, 1)
Blip.Remove(285@)
270@ = Pickup.CreateWithAmmo(367, PickupType.Once, 24, -2044.1, -2523.86, 31.11)
271@ = Blip.AddForPickup(270@)
59@ = 2

:BCRASH1_13192
if and
  37@ == 0
  $l1f2_sweet_health <> 4
  $l1f2_sweet_health <> 5
goto_if_false @BCRASH1_13301
if and
  not Char.IsDead(284@)
  not Char.IsDead($scplayer)
goto_if_false @BCRASH1_13301
if 
  Char.LocateAnyMeansChar2D($scplayer, 284@, 10.0, 10.0, False)
goto_if_false @BCRASH1_13301
Task.FleeChar(284@, $scplayer, 50.0, 100000000)
37@ = 1

:BCRASH1_13301
if 
  $l1f2_sweet_health > 3
goto_if_false @BCRASH1_13483
if 
  54@ == 1
goto_if_false @BCRASH1_13483
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(328@)
  not Char.IsDead(284@)
goto_if_false @BCRASH1_13483
if or
  Char.IsInCar($scplayer, 328@)
  not Char.LocateAnyMeansCar2D($scplayer, 328@, 50.0, 50.0, False)
goto_if_false @BCRASH1_13425
Text.Print('BCR1_13', 5000, 1)
54@ = 0

:BCRASH1_13425
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BCRASH1_13483
if 
  not Char.IsInCar($scplayer, 328@)
goto_if_false @BCRASH1_13483
Text.Print('BCR1_13', 5000, 1)
54@ = 0

:BCRASH1_13483
goto @BCRASH1_3584
wait 1500
Camera.RestoreJumpcut
Player.SetControl($player1, True)
goto @BCRASH1_13609

:BCRASH1_13511
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if 
  Player.IsPlaying($player1)
goto_if_false @BCRASH1_13586
if 
  not Char.IsDead($scplayer)
goto_if_false @BCRASH1_13586
if 
  Char.HasGotWeapon($scplayer, WeaponType.Camera)
goto_if_false @BCRASH1_13586
Char.SetAmmo($scplayer, WeaponType.Camera, 0)

:BCRASH1_13586
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_13607
Char.Delete(284@)

:BCRASH1_13607
return 

:BCRASH1_13609
Stat.RegisterMissionPassed('BCRASH1')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSD', 0, 5000, TextStyle.Middle)
Player.ClearWantedLevel($player1)
Stat.SetInt(StatId.PassedBcrash1, 1)
Audio.PlayMissionPassedTune(1)
$flag_bcrash_mission_counter += 1
Blip.Remove($bcrash_contact_blip)
$call_delay = 15000
return 

:BCRASH1_13680
gosub @BCRASH1_241
gosub @BCRASH1_670
gosub @BCRASH1_785
if 
  Player.IsPlaying($player1)
goto_if_false @BCRASH1_13760
if 
  not Char.IsDead($scplayer)
goto_if_false @BCRASH1_13760
if 
  Char.HasGotWeapon($scplayer, WeaponType.Camera)
goto_if_false @BCRASH1_13760
Char.SetAmmo($scplayer, WeaponType.Camera, 36)

:BCRASH1_13760
if 
  not Car.IsDead(328@)
goto_if_false @BCRASH1_13791
Car.SetProofs(328@, False, False, False, False, False)

:BCRASH1_13791
Char.ClearRelationship($scplayer, RelationshipType.Hate, PedType.Mission1)
Streaming.MarkModelAsNoLongerNeeded(367)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(468)
Blip.Remove(285@)
Blip.Remove(64@)
Blip.Remove(65@)
Blip.Remove(66@)
Blip.Remove(271@)
Pickup.Remove(270@)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

:BCRASH1_13861
73@, 74@, 75@ = Char.GetCoordinates(290@(50@,5i))
return 

:BCRASH1_13881
62@ = -1
60@ = 1E07
63@ = 38

:BCRASH1_13905
if 
  38 > 63@
goto_if_false @BCRASH1_14093
if 
  not Char.IsDead(284@)
goto_if_false @BCRASH1_14079
61@ = Math.GetDistanceBetweenCoords2D(287@, 288@, 107@($bc1_cut,40f), 147@($bc1_cut,40f))
if 
  is_float_lvar_greater_than_float_lvar 60@ > 61@
goto_if_false @BCRASH1_14079
set_lvar_float_to_lvar_float 60@ = 61@
set_lvar_int_to_lvar_int 62@ = 63@
if 
  is_float_lvar_greater_than_float_lvar 187@($bc1_cut,40f) > 187@(62@,40f)
goto_if_false @BCRASH1_14079
set_lvar_float_to_lvar_float 61@ = 187@($bc1_cut,40f)
sub_float_lvar_from_float_lvar 61@ -= 187@(62@,40f)
if 
  61@ > 3.0
goto_if_false @BCRASH1_14079
set_var_int_to_lvar_int $bc1_cut = 62@

:BCRASH1_14079
63@ += 1
goto @BCRASH1_13905

:BCRASH1_14093
return 

//-------------Mission 40---------------
// Originally: First Date

:CATALIN
gosub @CATALIN_36
if 
  has_deatharrest_been_executed 
goto_if_false @CATALIN_27
gosub @CATALIN_7507

:CATALIN_27
gosub @CATALIN_7530
terminate_this_script 

:CATALIN_36
$onmission = 1
Stat.RegisterMissionGiven
script_name 'CATALIN'
wait 0
Text.LoadMissionText('CAT')
52@ = 0
53@ = 0
54@ = 0
set_lvar_int_to_var_int 55@ = $scplayer
Player.MakeGangDisappear
if 
  $cat_counter == 0
goto_if_false @CATALIN_1203
Streaming.SetAreaVisible(1)
Cutscene.Load('CAT_1')

:CATALIN_135
if 
  not Cutscene.HasLoaded
goto_if_false @CATALIN_159
wait 0
goto @CATALIN_135

:CATALIN_159
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CATALIN_168
if 
  not Cutscene.HasFinished
goto_if_false @CATALIN_192
wait 0
goto @CATALIN_168

:CATALIN_192
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CATALIN_207
if 
  Camera.GetFadingStatus
goto_if_false @CATALIN_231
wait 0
goto @CATALIN_207

:CATALIN_231
Streaming.SetAreaVisible(0)
Streaming.LoadSpecialCharacter(5, 'CAT')

:CATALIN_248
if 
  not Streaming.HasSpecialCharacterLoaded(5)
goto_if_false @CATALIN_287
wait 0
Streaming.LoadSpecialCharacter(5, 'CAT')
goto @CATALIN_248

:CATALIN_287
World.ClearArea(681.1634, -478.1859, 15.3281, 0.5, False)
Streaming.LoadScene(681.1634, -478.1859, 15.3281)
Char.SetCoordinates($scplayer, 681.1634, -478.1859, 15.3281)
Char.SetHeading($scplayer, 177.0008)
Camera.SetBehindPlayer
$catalina = Char.Create(PedType.Special, 294, 682.8292, -477.8332, 15.3359)
Char.SetHeading($catalina, 149.5317)
set_lvar_text_label 56@s = 'CAT_AA'
set_lvar_text_label 58@s = 'CAT_AB'
set_lvar_text_label 60@s = 'CAT_AC'
set_lvar_text_label 62@s = 'CAT_AD'
set_lvar_int_to_constant 96@ = 2200
set_lvar_int_to_constant 97@ = 2291
set_lvar_int_to_constant 98@ = 2201
set_lvar_int_to_constant 99@ = 2292
set_lvar_int_to_var_int 116@ = $catalina
set_lvar_int_to_lvar_int 117@ = 55@
set_lvar_int_to_var_int 118@ = $catalina
set_lvar_int_to_lvar_int 119@ = 55@
52@ = 4
set_lvar_text_label 136@s = 'CAT_BA'
set_lvar_text_label 138@s = 'CAT_BB'
set_lvar_text_label 140@s = 'CAT_BC'
set_lvar_text_label 142@s = 'CAT_BD'
set_lvar_text_label 144@s = 'CAT_BE'
set_lvar_text_label 146@s = 'CAT_BH'
set_lvar_text_label 148@s = 'CAT_BG'
set_lvar_text_label 150@s = 'CAT_BF'
set_lvar_text_label 152@s = 'CAT_BI'
set_lvar_text_label 154@s = 'CAT_BJ'
set_lvar_text_label 156@s = 'CAT_BK'
set_lvar_int_to_constant 160@ = 2293
set_lvar_int_to_constant 161@ = 2202
set_lvar_int_to_constant 162@ = 2294
set_lvar_int_to_constant 163@ = 2203
set_lvar_int_to_constant 164@ = 2204
set_lvar_int_to_constant 165@ = 2207
set_lvar_int_to_constant 166@ = 2206
set_lvar_int_to_constant 167@ = 2205
set_lvar_int_to_constant 168@ = 2208
set_lvar_int_to_constant 169@ = 2295
set_lvar_int_to_constant 170@ = 2209
set_lvar_int_to_lvar_int 172@ = 55@
set_lvar_int_to_var_int 173@ = $catalina
set_lvar_int_to_lvar_int 174@ = 55@
set_lvar_int_to_var_int 175@ = $catalina
set_lvar_int_to_var_int 176@ = $catalina
set_lvar_int_to_var_int 177@ = $catalina
set_lvar_int_to_var_int 178@ = $catalina
set_lvar_int_to_var_int 179@ = $catalina
set_lvar_int_to_var_int 180@ = $catalina
set_lvar_int_to_lvar_int 181@ = 55@
set_lvar_int_to_var_int 182@ = $catalina
53@ = 11
set_lvar_text_label 184@s = 'CAT_CA'
set_lvar_text_label 186@s = 'CAT_CB'
set_lvar_text_label 188@s = 'CAT_CC'
set_lvar_text_label 190@s = 'CAT_CD'
set_lvar_text_label 192@s = 'CAT_CE'
set_lvar_text_label 194@s = 'CAT_CF'
set_lvar_text_label 196@s = 'CAT_CG'
set_lvar_text_label 198@s = 'CAT_CH'
set_lvar_text_label 200@s = 'CAT_CI'
set_lvar_text_label 202@s = 'CAT_CJ'
set_lvar_text_label 204@s = 'CAT_CK'
set_lvar_int_to_constant 208@ = 2296
set_lvar_int_to_constant 209@ = 2210
set_lvar_int_to_constant 210@ = 2211
set_lvar_int_to_constant 211@ = 2297
set_lvar_int_to_constant 212@ = 2212
set_lvar_int_to_constant 213@ = 2213
set_lvar_int_to_constant 214@ = 2214
set_lvar_int_to_constant 215@ = 2298
set_lvar_int_to_constant 216@ = 2215
set_lvar_int_to_constant 217@ = 2216
set_lvar_int_to_constant 218@ = 2299
set_lvar_int_to_lvar_int 220@ = 55@
set_lvar_int_to_var_int 221@ = $catalina
set_lvar_int_to_var_int 222@ = $catalina
set_lvar_int_to_lvar_int 223@ = 55@
set_lvar_int_to_var_int 224@ = $catalina
set_lvar_int_to_var_int 225@ = $catalina
set_lvar_int_to_var_int 226@ = $catalina
set_lvar_int_to_lvar_int 227@ = 55@
set_lvar_int_to_var_int 228@ = $catalina
set_lvar_int_to_var_int 229@ = $catalina
set_lvar_int_to_lvar_int 230@ = 55@
54@ = 11
goto @CATALIN_3878

:CATALIN_1203
Weather.ForceNow(WeatherType.ExtraSunnyCountryside)
if 
  $cat_counter == 1
goto_if_false @CATALIN_2211
Cutscene.Load('CAT_2')

:CATALIN_1236
if 
  not Cutscene.HasLoaded
goto_if_false @CATALIN_1260
wait 0
goto @CATALIN_1236

:CATALIN_1260
World.ClearArea(868.521, -30.0862, 63.1875, 5.8, False)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CATALIN_1293
if 
  not Cutscene.HasFinished
goto_if_false @CATALIN_1317
wait 0
goto @CATALIN_1293

:CATALIN_1317
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CATALIN_1332
if 
  Camera.GetFadingStatus
goto_if_false @CATALIN_1356
wait 0
goto @CATALIN_1332

:CATALIN_1356
Streaming.SetAreaVisible(0)
Stat.SetInt(StatId.StartedCat2, 1)
Streaming.LoadSpecialCharacter(5, 'CAT')

:CATALIN_1380
if 
  not Streaming.HasSpecialCharacterLoaded(5)
goto_if_false @CATALIN_1419
wait 0
Streaming.LoadSpecialCharacter(5, 'CAT')
goto @CATALIN_1380

:CATALIN_1419
World.ClearArea(868.4825, -29.6753, 62.1875, 0.5, False)
Streaming.LoadScene(868.4825, -29.6753, 62.1875)
Char.SetCoordinates($scplayer, 868.4825, -29.6753, 62.1875)
Char.SetHeading($scplayer, 157.9281)
Camera.SetBehindPlayer
$catalina = Char.Create(PedType.Special, 294, 867.7455, -29.0865, 62.1875)
Char.SetHeading($catalina, 225.9654)
set_lvar_text_label 56@s = 'CAT_FA'
set_lvar_int_to_constant 96@ = 2309
set_lvar_int_to_lvar_int 116@ = 55@
set_lvar_text_label 58@s = 'CAT_FB'
set_lvar_int_to_constant 97@ = 2236
set_lvar_int_to_var_int 117@ = $catalina
37@ = 2
if 
  $flag_cat_mission3_passed == 0
goto_if_false @CATALIN_1661
set_lvar_text_label 56@(37@,20s) = 'CAT_FC'
set_lvar_int_to_constant 96@(37@,20i) = 2237
set_lvar_int_to_var_int 116@(37@,20i) = $catalina
37@ += 1

:CATALIN_1661
if 
  $flag_cat_mission2_passed == 0
goto_if_false @CATALIN_1728
set_lvar_text_label 56@(37@,20s) = 'CAT_FD'
set_lvar_int_to_constant 96@(37@,20i) = 2238
set_lvar_int_to_var_int 116@(37@,20i) = $catalina
37@ += 1

:CATALIN_1728
if 
  $flag_cat_mission1_passed == 0
goto_if_false @CATALIN_1862
if 
  $flag_cat_mission4_passed == 0
goto_if_false @CATALIN_1813
set_lvar_text_label 56@(37@,20s) = 'CAT_FE'
set_lvar_int_to_constant 96@(37@,20i) = 2239
set_lvar_int_to_var_int 116@(37@,20i) = $catalina
goto @CATALIN_1855

:CATALIN_1813
set_lvar_text_label 56@(37@,20s) = 'CAT_FG'
set_lvar_int_to_constant 96@(37@,20i) = 2241
set_lvar_int_to_var_int 116@(37@,20i) = $catalina

:CATALIN_1855
37@ += 1

:CATALIN_1862
if 
  $flag_cat_mission4_passed == 0
goto_if_false @CATALIN_1929
set_lvar_text_label 56@(37@,20s) = 'CAT_FH'
set_lvar_int_to_constant 96@(37@,20i) = 2242
set_lvar_int_to_var_int 116@(37@,20i) = $catalina
37@ += 1

:CATALIN_1929
set_lvar_text_label 56@(37@,20s) = 'CAT_FI'
set_lvar_int_to_constant 96@(37@,20i) = 2310
set_lvar_int_to_lvar_int 116@(37@,20i) = 55@
37@ += 1
set_lvar_text_label 56@(37@,20s) = 'CAT_FJ'
set_lvar_int_to_constant 96@(37@,20i) = 2311
set_lvar_int_to_lvar_int 116@(37@,20i) = 55@
37@ += 1
set_lvar_text_label 56@(37@,20s) = 'CAT_FK'
set_lvar_int_to_constant 96@(37@,20i) = 2243
set_lvar_int_to_var_int 116@(37@,20i) = $catalina
37@ += 1
set_lvar_int_to_lvar_int 52@ = 37@
set_lvar_text_label 136@s = 'CAT_FL'
set_lvar_text_label 138@s = 'CAT_FM'
set_lvar_text_label 140@s = 'CAT_FN'
set_lvar_text_label 142@s = 'CAT_FO'
set_lvar_int_to_constant 160@ = 2244
set_lvar_int_to_constant 161@ = 2312
set_lvar_int_to_constant 162@ = 2245
set_lvar_int_to_constant 163@ = 2246
set_lvar_int_to_var_int 172@ = $catalina
set_lvar_int_to_lvar_int 173@ = 55@
set_lvar_int_to_var_int 174@ = $catalina
set_lvar_int_to_var_int 175@ = $catalina
53@ = 4

:CATALIN_2211
if 
  $cat_counter == 2
goto_if_false @CATALIN_3101
Cutscene.Load('CAT_3')

:CATALIN_2240
if 
  not Cutscene.HasLoaded
goto_if_false @CATALIN_2264
wait 0
goto @CATALIN_2240

:CATALIN_2264
World.ClearArea(868.521, -30.0862, 63.1875, 5.8, False)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CATALIN_2297
if 
  not Cutscene.HasFinished
goto_if_false @CATALIN_2321
wait 0
goto @CATALIN_2297

:CATALIN_2321
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CATALIN_2336
if 
  Camera.GetFadingStatus
goto_if_false @CATALIN_2360
wait 0
goto @CATALIN_2336

:CATALIN_2360
Streaming.SetAreaVisible(0)
Streaming.LoadSpecialCharacter(5, 'CAT')

:CATALIN_2377
if 
  not Streaming.HasSpecialCharacterLoaded(5)
goto_if_false @CATALIN_2416
wait 0
Streaming.LoadSpecialCharacter(5, 'CAT')
goto @CATALIN_2377

:CATALIN_2416
World.ClearArea(868.4825, -29.6753, 62.1875, 0.5, False)
Streaming.LoadScene(868.4825, -29.6753, 62.1875)
Char.SetCoordinates($scplayer, 868.4825, -29.6753, 62.1875)
Char.SetHeading($scplayer, 157.9281)
Camera.SetBehindPlayer
$catalina = Char.Create(PedType.Special, 294, 867.7455, -29.0865, 62.1875)
Char.SetHeading($catalina, 225.9654)
set_lvar_text_label 56@s = 'CAT_KA'
set_lvar_text_label 58@s = 'CAT_KB'
set_lvar_text_label 60@s = 'CAT_KC'
set_lvar_text_label 62@s = 'CAT_KD'
set_lvar_text_label 64@s = 'CAT_KE'
set_lvar_text_label 66@s = 'CAT_KF'
set_lvar_text_label 68@s = 'CAT_KG'
set_lvar_text_label 70@s = 'CAT_KH'
set_lvar_text_label 72@s = 'CAT_KI'
set_lvar_text_label 74@s = 'CAT_KJ'
set_lvar_text_label 76@s = 'CAT_KK'
set_lvar_text_label 78@s = 'CAT_KL'
set_lvar_text_label 80@s = 'CAT_KM'
set_lvar_text_label 82@s = 'CAT_KN'
set_lvar_text_label 84@s = 'CAT_KO'
set_lvar_text_label 86@s = 'CAT_KP'
set_lvar_text_label 88@s = 'CAT_KQ'
set_lvar_text_label 90@s = 'CAT_KR'
set_lvar_text_label 92@s = 'CAT_KS'
set_lvar_int_to_constant 96@ = 2258
set_lvar_int_to_constant 97@ = 2322
set_lvar_int_to_constant 98@ = 2259
set_lvar_int_to_constant 99@ = 2323
set_lvar_int_to_constant 100@ = 2260
set_lvar_int_to_constant 101@ = 2324
set_lvar_int_to_constant 102@ = 2261
set_lvar_int_to_constant 103@ = 2262
set_lvar_int_to_constant 104@ = 2325
set_lvar_int_to_constant 105@ = 2263
set_lvar_int_to_constant 106@ = 2264
set_lvar_int_to_constant 107@ = 2265
set_lvar_int_to_constant 108@ = 2266
set_lvar_int_to_constant 109@ = 2267
set_lvar_int_to_constant 110@ = 2268
set_lvar_int_to_constant 111@ = 2326
set_lvar_int_to_constant 112@ = 2269
set_lvar_int_to_constant 113@ = 2327
set_lvar_int_to_constant 114@ = 2270
set_lvar_int_to_var_int 116@ = $catalina
set_lvar_int_to_lvar_int 117@ = 55@
set_lvar_int_to_var_int 118@ = $catalina
set_lvar_int_to_lvar_int 119@ = 55@
set_lvar_int_to_var_int 120@ = $catalina
set_lvar_int_to_lvar_int 121@ = 55@
set_lvar_int_to_var_int 122@ = $catalina
set_lvar_int_to_var_int 123@ = $catalina
set_lvar_int_to_lvar_int 124@ = 55@
set_lvar_int_to_var_int 125@ = $catalina
set_lvar_int_to_var_int 126@ = $catalina
set_lvar_int_to_var_int 127@ = $catalina
set_lvar_int_to_var_int 128@ = $catalina
set_lvar_int_to_var_int 129@ = $catalina
set_lvar_int_to_var_int 130@ = $catalina
set_lvar_int_to_lvar_int 131@ = 55@
set_lvar_int_to_var_int 132@ = $catalina
set_lvar_int_to_lvar_int 133@ = 55@
set_lvar_int_to_var_int 134@ = $catalina
52@ = 19

:CATALIN_3101
if 
  $cat_counter == 3
goto_if_false @CATALIN_3878
Cutscene.Load('CAT_4')

:CATALIN_3130
if 
  not Cutscene.HasLoaded
goto_if_false @CATALIN_3154
wait 0
goto @CATALIN_3130

:CATALIN_3154
World.ClearArea(868.521, -30.0862, 63.1875, 5.8, False)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CATALIN_3187
if 
  not Cutscene.HasFinished
goto_if_false @CATALIN_3211
wait 0
goto @CATALIN_3187

:CATALIN_3211
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CATALIN_3226
if 
  Camera.GetFadingStatus
goto_if_false @CATALIN_3250
wait 0
goto @CATALIN_3226

:CATALIN_3250
Streaming.SetAreaVisible(0)
Streaming.LoadSpecialCharacter(5, 'CAT')

:CATALIN_3267
if 
  not Streaming.HasSpecialCharacterLoaded(5)
goto_if_false @CATALIN_3306
wait 0
Streaming.LoadSpecialCharacter(5, 'CAT')
goto @CATALIN_3267

:CATALIN_3306
World.ClearArea(868.4825, -29.6753, 62.1875, 0.5, False)
Streaming.LoadScene(868.4825, -29.6753, 62.1875)
Char.SetCoordinates($scplayer, 868.4825, -29.6753, 62.1875)
Char.SetHeading($scplayer, 157.9281)
Camera.SetBehindPlayer
$catalina = Char.Create(PedType.Special, 294, 867.7455, -29.0865, 62.1875)
Char.SetHeading($catalina, 225.9654)
set_lvar_text_label 56@s = 'CAT4_LA'
set_lvar_text_label 58@s = 'CAT4_LB'
set_lvar_text_label 60@s = 'CAT4_LC'
set_lvar_text_label 62@s = 'CAT4_LD'
set_lvar_text_label 64@s = 'CAT4_LE'
set_lvar_text_label 66@s = 'CAT4_LF'
set_lvar_int_to_constant 96@ = 3032
set_lvar_int_to_constant 97@ = 3052
set_lvar_int_to_constant 98@ = 3033
set_lvar_int_to_constant 99@ = 3053
set_lvar_int_to_constant 100@ = 3034
set_lvar_int_to_constant 101@ = 3054
set_lvar_int_to_var_int 116@ = $catalina
set_lvar_int_to_lvar_int 117@ = 55@
set_lvar_int_to_var_int 118@ = $catalina
set_lvar_int_to_lvar_int 119@ = 55@
set_lvar_int_to_var_int 120@ = $catalina
set_lvar_int_to_lvar_int 121@ = 55@
52@ = 6
set_lvar_text_label 136@s = 'CAT_NA'
set_lvar_text_label 138@s = 'CAT_NB'
set_lvar_text_label 140@s = 'CAT_NC'
set_lvar_text_label 142@s = 'CAT_ND'
set_lvar_text_label 144@s = 'CAT_NE'
set_lvar_text_label 146@s = 'CAT_NF'
set_lvar_text_label 148@s = 'CAT_NG'
set_lvar_text_label 150@s = 'CAT_NH'
set_lvar_text_label 152@s = 'CAT_KT'
set_lvar_int_to_constant 160@ = 2276
set_lvar_int_to_constant 161@ = 2329
set_lvar_int_to_constant 162@ = 2277
set_lvar_int_to_constant 163@ = 2330
set_lvar_int_to_constant 164@ = 2278
set_lvar_int_to_constant 165@ = 2279
set_lvar_int_to_constant 166@ = 2331
set_lvar_int_to_constant 167@ = 2280
set_lvar_int_to_constant 168@ = 2271
set_lvar_int_to_var_int 172@ = $catalina
set_lvar_int_to_lvar_int 173@ = 55@
set_lvar_int_to_var_int 174@ = $catalina
set_lvar_int_to_lvar_int 175@ = 55@
set_lvar_int_to_var_int 176@ = $catalina
set_lvar_int_to_var_int 177@ = $catalina
set_lvar_int_to_lvar_int 178@ = 55@
set_lvar_int_to_var_int 179@ = $catalina
set_lvar_int_to_var_int 180@ = $catalina
53@ = 9

:CATALIN_3878
Char.SetAnimGroup($catalina, "WOMAN")
Char.SetOnlyDamagedByPlayer($catalina, True)
Char.SetNeverTargeted($catalina, True)
Char.SetRelationship($catalina, RelationshipType.Respect, PedType.Player1)
Char.SetHealth($catalina, 100)
Char.SetSuffersCriticalHits($catalina, False)
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CATALIN_3972
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $catalina)
Player.SetGroupToFollowAlways($player1, True)
Char.ListenToPlayerGroupCommands($catalina, False)

:CATALIN_3972
Weather.Release
Player.MakeGangReappear
Camera.DoFade(1000, Fade.In)
Player.SetControl($player1, True)

:CATALIN_3990
if 
  Camera.GetFadingStatus
goto_if_false @CATALIN_4014
wait 0
goto @CATALIN_3990

:CATALIN_4014
if 
  $cat_liquor_banter == 1
goto_if_false @CATALIN_4039
$cat_liquor_banter = 0

:CATALIN_4039
if 
  $cat_otb_banter == 1
goto_if_false @CATALIN_4064
$cat_otb_banter = 0

:CATALIN_4064
if and
  $flag_cat_mission1_passed == 1
  $cat_liquor_banter == 0
goto_if_false @CATALIN_4290
set_lvar_text_label 184@s = 'CAT1_IA'
set_lvar_text_label 186@s = 'CAT1_IB'
set_lvar_text_label 188@s = 'CAT1_IC'
set_lvar_text_label 190@s = 'CAT1_IE'
set_lvar_text_label 192@s = 'CAT1_IF'
set_lvar_text_label 194@s = 'CAT1_IG'
set_lvar_int_to_constant 208@ = 2426
set_lvar_int_to_constant 209@ = 2437
set_lvar_int_to_constant 210@ = 2438
set_lvar_int_to_constant 211@ = 2427
set_lvar_int_to_constant 212@ = 2428
set_lvar_int_to_constant 213@ = 2439
set_lvar_int_to_var_int 220@ = $catalina
set_lvar_int_to_lvar_int 221@ = 55@
set_lvar_int_to_lvar_int 222@ = 55@
set_lvar_int_to_var_int 223@ = $catalina
set_lvar_int_to_var_int 224@ = $catalina
set_lvar_int_to_lvar_int 225@ = 55@
54@ = 6
$cat_liquor_banter = 1
goto @CATALIN_4569

:CATALIN_4290
if and
  $flag_cat_mission4_passed == 1
  $cat_otb_banter == 0
goto_if_false @CATALIN_4569
set_lvar_text_label 184@s = 'CAT2_HA'
set_lvar_text_label 186@s = 'CAT2_HB'
set_lvar_text_label 188@s = 'CAT2_HC'
set_lvar_text_label 190@s = 'CAT2_HE'
set_lvar_text_label 192@s = 'CAT2_HF'
set_lvar_text_label 194@s = 'CAT2_HG'
set_lvar_text_label 196@s = 'CAT2_HH'
set_lvar_text_label 198@s = 'CAT2_HI'
set_lvar_int_to_constant 208@ = 2617
set_lvar_int_to_constant 209@ = 2618
set_lvar_int_to_constant 210@ = 2628
set_lvar_int_to_constant 211@ = 2619
set_lvar_int_to_constant 212@ = 2620
set_lvar_int_to_constant 213@ = 2621
set_lvar_int_to_constant 214@ = 2629
set_lvar_int_to_constant 215@ = 2622
set_lvar_int_to_var_int 220@ = $catalina
set_lvar_int_to_var_int 221@ = $catalina
set_lvar_int_to_lvar_int 222@ = 55@
set_lvar_int_to_var_int 223@ = $catalina
set_lvar_int_to_var_int 224@ = $catalina
set_lvar_int_to_var_int 225@ = $catalina
set_lvar_int_to_lvar_int 226@ = 55@
set_lvar_int_to_var_int 227@ = $catalina
54@ = 8
$cat_otb_banter = 1

:CATALIN_4569
232@ = 0
233@ = 0
234@ = 0
235@ = 1
236@ = 0
237@ = 1
238@ = 0
239@ = 0
240@ = 0
241@ = 0
if 
  $cat_counter > 0
goto_if_false @CATALIN_4821
if 
  $flag_cat_mission1_passed == 0
goto_if_false @CATALIN_4698
242@ = Blip.AddSpriteForCoord($507, $513, $519, RadarSprite.Cash)
238@ = 1

:CATALIN_4698
if 
  $flag_cat_mission2_passed == 0
goto_if_false @CATALIN_4739
243@ = Blip.AddSpriteForCoord($508, $514, $520, RadarSprite.Cash)
239@ = 1

:CATALIN_4739
if 
  $flag_cat_mission3_passed == 0
goto_if_false @CATALIN_4780
244@ = Blip.AddSpriteForCoord($509, $515, $521, RadarSprite.Cash)
240@ = 1

:CATALIN_4780
if 
  $flag_cat_mission4_passed == 0
goto_if_false @CATALIN_4821
245@ = Blip.AddSpriteForCoord($510, $516, $522, RadarSprite.Cash)
241@ = 1

:CATALIN_4821
246@ = 0

:CATALIN_4828
wait 0
$game_timer = Clock.GetGameTimer()
if 
  not Char.IsDead($catalina)
goto_if_false @CATALIN_7185
if 
  Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CATALIN_6878
if 
  Char.LocateAnyMeansChar2D($scplayer, $catalina, 20.0, 20.0, False)
goto_if_false @CATALIN_5620
if 
  3 > 233@
goto_if_false @CATALIN_5620
if 
  52@(233@,3i) == 0
goto_if_false @CATALIN_4957
233@ += 1
goto @CATALIN_5620

:CATALIN_4957
if 
  233@ == 1
goto_if_false @CATALIN_5063
if 
  not Char.IsInAnyCar($catalina)
goto_if_false @CATALIN_5030
if or
  $cat_counter == 1
  $cat_counter == 3
goto_if_false @CATALIN_5023
goto @CATALIN_5620

:CATALIN_5023
goto @CATALIN_5063

:CATALIN_5030
if 
  232@ == 0
goto_if_false @CATALIN_5063
set_lvar_int_to_var_int 234@ = $game_timer
234@ -= 10

:CATALIN_5063
if 
  is_int_var_greater_than_int_lvar $game_timer > 234@
goto_if_false @CATALIN_5620
if 
  $audio_line_is_active == 0
goto_if_false @CATALIN_5620
if 
  233@ == 0
goto_if_false @CATALIN_5201
set_var_text_label s$audio_string = 56@(232@,20s)
set_var_int_to_lvar_int $audio_sound_file = 96@(232@,20i)
start_new_script @AUDIOL 116@(232@,20i) 0 1 235@ 232@ 
if 
  is_int_lvar_equal_to_int_var 116@(232@,20i) == $catalina
goto_if_false @CATALIN_5201
Task.LookAtChar($catalina, 55@, 3000)

:CATALIN_5201
if 
  233@ == 1
goto_if_false @CATALIN_5302
set_var_text_label s$audio_string = 136@(232@,12s)
set_var_int_to_lvar_int $audio_sound_file = 160@(232@,12i)
start_new_script @AUDIOL 172@(232@,12i) 0 1 235@ 232@ 
if 
  is_int_lvar_equal_to_int_var 172@(232@,12i) == $catalina
goto_if_false @CATALIN_5302
Task.LookAtChar($catalina, 55@, 3000)

:CATALIN_5302
if 
  233@ == 2
goto_if_false @CATALIN_5403
set_var_text_label s$audio_string = 184@(232@,12s)
set_var_int_to_lvar_int $audio_sound_file = 208@(232@,12i)
start_new_script @AUDIOL 220@(232@,12i) 0 1 235@ 232@ 
if 
  is_int_lvar_equal_to_int_var 220@(232@,12i) == $catalina
goto_if_false @CATALIN_5403
Task.LookAtChar($catalina, 55@, 3000)

:CATALIN_5403
if 
  235@ == 1
goto_if_false @CATALIN_5435
235@ = 2
goto @CATALIN_5442

:CATALIN_5435
235@ = 1

:CATALIN_5442
set_lvar_int_to_var_int 234@ = $game_timer
234@ += 500
232@ += 1
if 
  is_int_lvar_greater_than_int_lvar 52@(233@,3i) > 232@
goto_if_false @CATALIN_5590
Audio.ClearMissionAudio(235@)
if 
  233@ == 0
goto_if_false @CATALIN_5523
Audio.LoadMissionAudio(235@, 96@(232@,20i))

:CATALIN_5523
if 
  233@ == 1
goto_if_false @CATALIN_5553
Audio.LoadMissionAudio(235@, 160@(232@,12i))

:CATALIN_5553
if 
  233@ == 2
goto_if_false @CATALIN_5583
Audio.LoadMissionAudio(235@, 208@(232@,12i))

:CATALIN_5583
goto @CATALIN_5620

:CATALIN_5590
232@ = 0
set_lvar_int_to_var_int 234@ = $game_timer
234@ += 10000
233@ += 1

:CATALIN_5620
if 
  $cat_counter == 0
goto_if_false @CATALIN_5920
if 
  233@ == 1
goto_if_false @CATALIN_5920
if 
  236@ == 0
goto_if_false @CATALIN_5722
if 
  232@ > 6
goto_if_false @CATALIN_5722
242@ = Blip.AddSpriteForCoord($507, $513, $519, RadarSprite.Cash)
238@ = 1
236@ += 1

:CATALIN_5722
if 
  236@ == 1
goto_if_false @CATALIN_5788
if 
  232@ > 7
goto_if_false @CATALIN_5788
243@ = Blip.AddSpriteForCoord($508, $514, $520, RadarSprite.Cash)
239@ = 1
236@ += 1

:CATALIN_5788
if 
  236@ == 2
goto_if_false @CATALIN_5854
if 
  232@ > 8
goto_if_false @CATALIN_5854
244@ = Blip.AddSpriteForCoord($509, $515, $521, RadarSprite.Cash)
240@ = 1
236@ += 1

:CATALIN_5854
if 
  236@ == 3
goto_if_false @CATALIN_5920
if 
  232@ > 9
goto_if_false @CATALIN_5920
245@ = Blip.AddSpriteForCoord($510, $516, $522, RadarSprite.Cash)
241@ = 1
236@ += 1

:CATALIN_5920
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CATALIN_6307
if 
  $flag_cat_mission_counter == 0
goto_if_false @CATALIN_6028
World.ClearArea($507, $513, $519, 0.5, False)
Char.SetCoordinates($scplayer, $507, $513, $519)
set_var_float_to_var_float $x = $507
$x -= 1.0
Char.SetCoordinates($catalina, $x, $513, $519)
Streaming.LoadScene($507, $513, $519)

:CATALIN_6028
if 
  $flag_cat_mission_counter == 1
goto_if_false @CATALIN_6121
World.ClearArea($508, $514, $520, 0.5, False)
Char.SetCoordinates($scplayer, $508, $514, $520)
set_var_float_to_var_float $x = $508
$x -= 1.0
Char.SetCoordinates($catalina, $x, $514, $520)
Streaming.LoadScene($508, $514, $520)

:CATALIN_6121
if 
  $flag_cat_mission_counter == 2
goto_if_false @CATALIN_6214
World.ClearArea($509, $515, $521, 0.5, False)
Char.SetCoordinates($scplayer, $509, $515, $521)
set_var_float_to_var_float $x = $509
$x -= 1.0
Char.SetCoordinates($catalina, $x, $515, $521)
Streaming.LoadScene($509, $515, $521)

:CATALIN_6214
if 
  $flag_cat_mission_counter == 3
goto_if_false @CATALIN_6307
World.ClearArea($510, $516, $522, 0.5, False)
Char.SetCoordinates($scplayer, $510, $516, $522)
set_var_float_to_var_float $x = $510
$x -= 1.0
Char.SetCoordinates($catalina, $x, $516, $522)
Streaming.LoadScene($510, $516, $522)

:CATALIN_6307
if 
  $flag_cat_mission1_passed == 0
goto_if_false @CATALIN_6448
if 
  238@ == 1
goto_if_false @CATALIN_6448
if 
  Char.LocateAnyMeans3D($scplayer, $507, $513, $519, 3.0, 3.0, 3.0, True)
goto_if_false @CATALIN_6448
Player.SetControl($player1, False)
Text.PrintBig('CAT_1', 1000, TextStyle.BottomRight)
Camera.DoFade(500, Fade.Out)

:CATALIN_6415
if 
  Camera.GetFadingStatus
goto_if_false @CATALIN_6439
wait 0
goto @CATALIN_6415

:CATALIN_6439
$load_and_launch_catalina_mission = 0
return 

:CATALIN_6448
if 
  $flag_cat_mission2_passed == 0
goto_if_false @CATALIN_6589
if 
  239@ == 1
goto_if_false @CATALIN_6589
if 
  Char.LocateAnyMeans3D($scplayer, $508, $514, $520, 3.0, 3.0, 3.0, True)
goto_if_false @CATALIN_6589
Player.SetControl($player1, False)
Text.PrintBig('CAT_2', 1000, TextStyle.BottomRight)
Camera.DoFade(500, Fade.Out)

:CATALIN_6556
if 
  Camera.GetFadingStatus
goto_if_false @CATALIN_6580
wait 0
goto @CATALIN_6556

:CATALIN_6580
$load_and_launch_catalina_mission = 1
return 

:CATALIN_6589
if 
  $flag_cat_mission3_passed == 0
goto_if_false @CATALIN_6730
if 
  240@ == 1
goto_if_false @CATALIN_6730
if 
  Char.LocateAnyMeans3D($scplayer, $509, $515, $521, 3.0, 3.0, 3.0, True)
goto_if_false @CATALIN_6730
Player.SetControl($player1, False)
Text.PrintBig('CAT_3', 1000, TextStyle.BottomRight)
Camera.DoFade(500, Fade.Out)

:CATALIN_6697
if 
  Camera.GetFadingStatus
goto_if_false @CATALIN_6721
wait 0
goto @CATALIN_6697

:CATALIN_6721
$load_and_launch_catalina_mission = 2
return 

:CATALIN_6730
if 
  $flag_cat_mission4_passed == 0
goto_if_false @CATALIN_6871
if 
  241@ == 1
goto_if_false @CATALIN_6871
if 
  Char.LocateAnyMeans3D($scplayer, $510, $516, $522, 3.0, 3.0, 3.0, True)
goto_if_false @CATALIN_6871
Player.SetControl($player1, False)
Text.PrintBig('CAT_4', 1000, TextStyle.BottomRight)
Camera.DoFade(500, Fade.Out)

:CATALIN_6838
if 
  Camera.GetFadingStatus
goto_if_false @CATALIN_6862
wait 0
goto @CATALIN_6838

:CATALIN_6862
$load_and_launch_catalina_mission = 3
return 

:CATALIN_6871
goto @CATALIN_7178

:CATALIN_6878
if 
  237@ == 1
goto_if_false @CATALIN_6954
Text.PrintNow('CATLEFT', 5000, 1)
Blip.Remove(242@)
Blip.Remove(243@)
Blip.Remove(244@)
Blip.Remove(245@)
34@ = Blip.AddForChar($catalina)
Blip.SetAsFriendly(34@, True)
237@ += 1

:CATALIN_6954
if 
  237@ == 2
goto_if_false @CATALIN_7178
if 
  Char.LocateAnyMeansChar2D($scplayer, $catalina, 10.0, 10.0, False)
goto_if_false @CATALIN_7178
Blip.Remove(34@)
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CATALIN_7035
Group.SetMember($Players_Group, $catalina)

:CATALIN_7035
if 
  238@ == 1
goto_if_false @CATALIN_7069
242@ = Blip.AddSpriteForCoord($507, $513, $519, RadarSprite.Cash)

:CATALIN_7069
if 
  239@ == 1
goto_if_false @CATALIN_7103
243@ = Blip.AddSpriteForCoord($508, $514, $520, RadarSprite.Cash)

:CATALIN_7103
if 
  240@ == 1
goto_if_false @CATALIN_7137
244@ = Blip.AddSpriteForCoord($509, $515, $521, RadarSprite.Cash)

:CATALIN_7137
if 
  241@ == 1
goto_if_false @CATALIN_7171
245@ = Blip.AddSpriteForCoord($510, $516, $522, RadarSprite.Cash)

:CATALIN_7171
237@ = 1

:CATALIN_7178
goto @CATALIN_7208

:CATALIN_7185
Text.PrintNow('CATDEAD', 5000, 1)
goto @CATALIN_7507

:CATALIN_7208
if 
  Char.LocateAnyMeans2D($scplayer, 660.0, -585.0, 200.0, 200.0, False)
goto_if_false @CATALIN_7455
if 
  246@ == 0
goto_if_false @CATALIN_7448
Streaming.RequestModel(514)
Streaming.RequestModel(584)
if and
  Streaming.HasModelLoaded(514)
  Streaming.HasModelLoaded(584)
goto_if_false @CATALIN_7448
247@ = Car.Create(514, 657.49, -585.13, 16.36)
Car.SetHeading(247@, 170.66)
Car.SetCanBurstTires(247@, False)
Car.SetProofs(247@, True, False, False, False, False)
Car.SetLoadCollisionFlag(247@, False)
Car.LockDoors(247@, CarLock.Locked)
248@ = Car.Create(584, 667.49, -583.13, 16.36)
Car.SetHeading(248@, 184.66)
Car.SetHealth(248@, 1250)
Car.SetProofs(248@, True, True, True, True, True)
Car.SetCanBurstTires(248@, False)
Car.SetLoadCollisionFlag(248@, False)
Car.LockDoors(248@, CarLock.Locked)
246@ = 1

:CATALIN_7448
goto @CATALIN_7500

:CATALIN_7455
if 
  246@ == 1
goto_if_false @CATALIN_7500
Car.Delete(247@)
Car.Delete(248@)
Streaming.MarkModelAsNoLongerNeeded(514)
Streaming.MarkModelAsNoLongerNeeded(584)
246@ = 0

:CATALIN_7500
goto @CATALIN_4828

:CATALIN_7507
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Char.RemoveElegantly($catalina)
return 

:CATALIN_7530
Blip.Remove(34@)
Blip.Remove(242@)
Blip.Remove(243@)
Blip.Remove(244@)
Blip.Remove(245@)
Streaming.UnloadSpecialCharacter(5)
Streaming.MarkModelAsNoLongerNeeded(514)
Streaming.MarkModelAsNoLongerNeeded(584)
$onmission = 0
Mission.Finish
if 
  $load_and_launch_catalina_mission > -1
goto_if_false @CATALIN_7602
Camera.DoFade(0, Fade.Out)

:CATALIN_7602
return 

//-------------Mission 41---------------
// Originally: Local Liquor Store

:CAT1
script_name 'CAT1'
gosub @CAT1_47
if 
  has_deatharrest_been_executed 
goto_if_false @CAT1_38
gosub @CAT1_32486

:CAT1_38
gosub @CAT1_32635
terminate_this_script 

:CAT1_47
$onmission = 1
Camera.DoFade(0, Fade.Out)
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
$audio_line_is_active = 0
64@ = 0
62@ = 0
63@ = 0
65@ = 0
66@ = 0
TIMERA = 0
TIMERB = 0
67@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
68@ = DecisionMakerChar.Load(DecisionMakerType.Tough)

:CAT1_165
wait 0
if 
is_ps2_keyboard_key_just_pressed 27
goto_if_false @CAT1_260
if 
  69@ == 0
goto_if_false @CAT1_234
69@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @CAT1_260

:CAT1_234
69@ = 0
write_debug "LEVEL_DEBUG_OFF"

:CAT1_260
39@ += 1
if 
  39@ > 9
goto_if_false @CAT1_292
39@ = 0

:CAT1_292
40@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 66@ += 42@
add_int_lvar_to_int_lvar 147@ += 42@
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @CAT1_367
36@ = 1

:CAT1_367
if 
  69@ == 1
goto_if_false @CAT1_392
gosub @CAT1_634

:CAT1_392
switch_start 34@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CAT1_525 {caseNum1} 0 {caseLabel1} @CAT1_455 {caseNum2} 1 {caseLabel2} @CAT1_469 {caseNum3} 2 {caseLabel3} @CAT1_483 {caseNum4} 3 {caseLabel4} @CAT1_497 {caseNum5} 4 {caseLabel5} @CAT1_511 {caseNum6} -1 {caseLabel6} @CAT1_525 {caseNum7} -1 {caseLabel7} @CAT1_525

:CAT1_455
gosub @CAT1_2097
goto @CAT1_525

:CAT1_469
gosub @CAT1_2716
goto @CAT1_525

:CAT1_483
gosub @CAT1_14068
goto @CAT1_525

:CAT1_497
gosub @CAT1_17125
goto @CAT1_525

:CAT1_511
gosub @CAT1_18131
goto @CAT1_525

:CAT1_525
gosub @CAT1_25316

:CAT1_532
if 
  38@ == 0
goto_if_false @CAT1_632
if 
  37@ == 0
goto_if_false @CAT1_616
if 
  36@ == 0
goto_if_false @CAT1_600
goto @CAT1_165
goto @CAT1_609

:CAT1_600
gosub @CAT1_32504
return 

:CAT1_609
goto @CAT1_625

:CAT1_616
gosub @CAT1_32486
return 

:CAT1_625
goto @CAT1_634

:CAT1_632
return 

:CAT1_634
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @CAT1_683
70@ += 1
if 
  70@ > 5
goto_if_false @CAT1_681
70@ = 0

:CAT1_681
clear_all_view_variables 

:CAT1_683
if 
  70@ == 1
goto_if_false @CAT1_893
set_var_int_to_lvar_int $bc1_final_dest = 34@
set_var_int_to_lvar_int $CAT1_view_debug = 35@
set_var_int_to_lvar_int $6972 = 62@
set_var_int_to_lvar_int $6973 = 65@
set_var_int_to_lvar_int $6974 = 63@
set_var_int_to_lvar_int $6975 = 66@
set_var_int_to_lvar_int $6976 = TIMERA
set_var_int_to_lvar_int $6977 = TIMERB
view_integer_variable $bc1_final_dest {_p2} "M_STAGE"
view_integer_variable $CAT1_view_debug {_p2} "M_GOALS"
view_integer_variable $6972 {_p2} "DIALOGUE_FLAG"
view_integer_variable $6973 {_p2} "DIALOGUE_TIMER"
view_integer_variable $6974 {_p2} "HELP_FLAG"
view_integer_variable $6975 {_p2} "HELP_TIMER"
view_integer_variable $6976 {_p2} "TIMERA"
view_integer_variable $6977 {_p2} "TIMERB"

:CAT1_893
if 
  70@ == 2
goto_if_false @CAT1_1126
set_var_int_to_lvar_int $bc1_final_dest = 98@
set_var_int_to_lvar_int $CAT1_view_debug = 99@
set_var_int_to_var_int $6972 = $6986
set_var_int_to_lvar_int $6973 = 100@
set_var_int_to_lvar_int $6974 = 101@
set_var_int_to_lvar_int $6975 = 102@
set_var_int_to_lvar_int $6976 = 103@
set_var_int_to_lvar_int $6977 = 108@
view_integer_variable $bc1_final_dest {_p2} "DISABLE_GROUP"
view_integer_variable $CAT1_view_debug {_p2} "IN_GROUP"
view_integer_variable $6972 {_p2} "CAT1_PICKUPS_COLLECTED"
view_integer_variable $6973 {_p2} "PAUSED[0]"
view_integer_variable $6974 {_p2} "PAUSED[1]"
view_integer_variable $6975 {_p2} "PAUSED[2]"
view_integer_variable $6976 {_p2} "PAUSED[3]"
view_integer_variable $6977 {_p2} "SKIPPED_CUTSCENE"

:CAT1_1126
if 
  70@ == 3
goto_if_false @CAT1_1374
set_var_int_to_lvar_int $bc1_final_dest = 104@
set_var_int_to_lvar_int $CAT1_view_debug = 105@
set_var_int_to_lvar_int $6972 = 106@
set_var_int_to_lvar_int $6973 = 107@
set_var_int_to_lvar_int $6974 = 109@
set_var_int_to_lvar_int $6975 = 110@
set_var_int_to_lvar_int $6976 = 111@
set_var_int_to_lvar_int $6977 = 115@
view_integer_variable $bc1_final_dest {_p2} "ROBBER_FLAG[0]"
view_integer_variable $CAT1_view_debug {_p2} "ROBBER_FLAG[1]"
view_integer_variable $6972 {_p2} "ROBBER_FLAG[2]"
view_integer_variable $6973 {_p2} "ROBBER_FLAG[3]"
view_integer_variable $6974 {_p2} "CHASE_FLAG[0]"
view_integer_variable $6975 {_p2} "CHASE_FLAG[1]"
view_integer_variable $6976 {_p2} "CHASE_FLAG[2]"
view_integer_variable $6977 {_p2} "PLAYER_PROGRESS"

:CAT1_1374
if 
  70@ == 4
goto_if_false @CAT1_1652
set_var_int_to_lvar_int $bc1_final_dest = 112@
set_var_int_to_lvar_int $CAT1_view_debug = 113@
set_var_int_to_lvar_int $6972 = 114@
set_var_float_to_lvar_float $6981 = 127@
set_var_float_to_lvar_float $6982 = 128@
set_var_float_to_lvar_float $6983 = 129@
set_var_float_to_lvar_float $6984 = 133@
set_var_int_to_lvar_int $6977 = 116@
view_integer_variable $bc1_final_dest {_p2} "PLAYBACK_PAUSED[0]"
view_integer_variable $CAT1_view_debug {_p2} "PLAYBACK_PAUSED[1]"
view_integer_variable $6972 {_p2} "PLAYBACK_PAUSED[2]"
view_float_variable $6981 {_p2} "QUAD_PLAYBACK_SPEED[0]"
view_float_variable $6982 {_p2} "QUAD_PLAYBACK_SPEED[1]"
view_float_variable $6983 {_p2} "QUAD_PLAYBACK_SPEED[2]"
view_float_variable $6984 {_p2} "MASTER_SPEED"
view_integer_variable $6977 {_p2} "SHOW_GUN"

:CAT1_1652
if 
  70@ == 5
goto_if_false @CAT1_1850
set_var_float_to_lvar_float $6978 = 137@
set_var_float_to_lvar_float $CAT1_view_debug_f = 138@
set_var_float_to_lvar_float $6980 = 139@
set_var_float_to_lvar_float $6981 = 130@
set_var_float_to_lvar_float $6982 = 131@
set_var_float_to_lvar_float $6983 = 132@
view_float_variable $6978 {_p2} "LOOK_X"
view_float_variable $CAT1_view_debug_f {_p2} "LOOK_Y"
view_float_variable $6980 {_p2} "LOOK_Z"
view_float_variable $6981 {_p2} "QUAD_DIST_FROM_PLAYER[0]"
view_float_variable $6982 {_p2} "QUAD_DIST_FROM_PLAYER[1]"
view_float_variable $6983 {_p2} "QUAD_DIST_FROM_PLAYER[2]"

:CAT1_1850
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @CAT1_1872
38@ = 1

:CAT1_1872
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @CAT1_1960
if 
  71@ == 0
goto_if_false @CAT1_1935
71@ = 1
write_debug "LEVEL_PAUSED"
goto @CAT1_1960

:CAT1_1935
71@ = 0
write_debug "LEVEL_UNPAUSED"

:CAT1_1960
if 
  71@ == 1
goto_if_false @CAT1_1985
goto @CAT1_532

:CAT1_1985
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @CAT1_2007
35@ += 1

:CAT1_2007
if 
is_ps2_keyboard_key_just_pressed 86
goto_if_false @CAT1_2029
35@ -= 1

:CAT1_2029
if 
is_ps2_keyboard_key_just_pressed 85
goto_if_false @CAT1_2051
34@ += 1

:CAT1_2051
if 
is_ps2_keyboard_key_just_pressed 84
goto_if_false @CAT1_2073
34@ -= 1

:CAT1_2073
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @CAT1_2095
35@ = 99

:CAT1_2095
return 

:CAT1_2097
if 
  35@ == -1
goto_if_false @CAT1_2254
78@ = Car.Create(413, 0.0, 0.0, 0.0)
79@ = Car.Create(413, 0.0, 0.0, 0.0)
72@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
87@ = Blip.AddForCoord(0.0, 0.0, 0.0)
$catalina = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
95@ = Pickup.Create(#BRIEFCASE, PickupType.Once, 0.0, 0.0, 0.0)

:CAT1_2254
98@ = 0
99@ = 0
$6986 = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
143@ = 0.0
144@ = 0.0
119@ = 0
120@ = 0
155@ = 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
72@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
79@ = 0
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
95@ = -1
96@ = -1
97@ = -1
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
Player.SetGroupRecruitment($player1, False)
Player.SetGroupToFollowAlways($player1, True)
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.LoadMissionText('CAT')
gosub @CAT1_32428
return 

:CAT1_2716
switch_start 35@ {numCases} 26 {hasDefaultCase} 0 {defaultLabel} @CAT1_9952 {caseNum1} 0 {caseLabel1} @CAT1_2974 {caseNum2} 1 {caseLabel2} @CAT1_3298 {caseNum3} 2 {caseLabel3} @CAT1_5475 {caseNum4} 3 {caseLabel4} @CAT1_5489 {caseNum5} 4 {caseLabel5} @CAT1_5748 {caseNum6} 5 {caseLabel6} @CAT1_6021 {caseNum7} 6 {caseLabel7} @CAT1_6199
switch_continued 7 {caseLabel1} @CAT1_6309 {caseNum2} 8 {caseLabel2} @CAT1_6419 {caseNum3} 9 {caseLabel3} @CAT1_6527 {caseNum4} 10 {caseLabel4} @CAT1_7115 {caseNum5} 11 {caseLabel5} @CAT1_7697 {caseNum6} 12 {caseLabel6} @CAT1_7748 {caseNum7} 13 {caseLabel7} @CAT1_7839 {caseNum8} 14 {caseLabel8} @CAT1_7949 {caseNum9} 15 {caseLabel9} @CAT1_8059
switch_continued 16 {caseLabel1} @CAT1_8164 {caseNum2} 17 {caseLabel2} @CAT1_8197 {caseNum3} 18 {caseLabel3} @CAT1_8967 {caseNum4} 19 {caseLabel4} @CAT1_9086 {caseNum5} 20 {caseLabel5} @CAT1_9177 {caseNum6} 21 {caseLabel6} @CAT1_9518 {caseNum7} 22 {caseLabel7} @CAT1_9551 {caseNum8} 23 {caseLabel8} @CAT1_9646 {caseNum9} 24 {caseLabel9} @CAT1_9858
switch_continued 25 {caseLabel1} @CAT1_9872 {caseNum2} -1 {caseLabel2} @CAT1_9952 {caseNum3} -1 {caseLabel3} @CAT1_9952 {caseNum4} -1 {caseLabel4} @CAT1_9952 {caseNum5} -1 {caseLabel5} @CAT1_9952 {caseNum6} -1 {caseLabel6} @CAT1_9952 {caseNum7} -1 {caseLabel7} @CAT1_9952 {caseNum8} -1 {caseLabel8} @CAT1_9952 {caseNum9} -1 {caseLabel9} @CAT1_9952

:CAT1_2974
Streaming.RequestModel(471)
Streaming.RequestModel(161)
Streaming.RequestModel(162)
Streaming.RequestModel(346)
Streaming.RequestModel(44)
Streaming.RequestModel(77)
Streaming.LoadAllModelsNow

:CAT1_3004
if or
  not Streaming.HasModelLoaded(471)
  not Streaming.HasModelLoaded(161)
  not Streaming.HasModelLoaded(162)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(44)
  not Streaming.HasModelLoaded(77)
goto_if_false @CAT1_3054
wait 0
goto @CAT1_3004

:CAT1_3054
Streaming.RequestCarRecording(501)
Streaming.RequestCarRecording(502)
Streaming.RequestCarRecording(503)
Streaming.RequestCarRecording(504)

:CAT1_3074
if or
  not Streaming.HasCarRecordingBeenLoaded(501)
  not Streaming.HasCarRecordingBeenLoaded(502)
  not Streaming.HasCarRecordingBeenLoaded(503)
  not Streaming.HasCarRecordingBeenLoaded(504)
goto_if_false @CAT1_3116
wait 0
goto @CAT1_3074

:CAT1_3116
Streaming.RequestCarRecording(505)
Streaming.RequestCarRecording(506)
Streaming.RequestCarRecording(507)
Streaming.RequestCarRecording(509)

:CAT1_3136
if or
  not Streaming.HasCarRecordingBeenLoaded(505)
  not Streaming.HasCarRecordingBeenLoaded(506)
  not Streaming.HasCarRecordingBeenLoaded(507)
  not Streaming.HasCarRecordingBeenLoaded(509)
goto_if_false @CAT1_3178
wait 0
goto @CAT1_3136

:CAT1_3178
TIMERA = 0
TIMERB = 0
Streaming.LoadSpecialCharacter(5, 'CAT')

:CAT1_3205
if 
  not Streaming.HasSpecialCharacterLoaded(5)
goto_if_false @CAT1_3244
wait 0
Streaming.LoadSpecialCharacter(5, 'CAT')
goto @CAT1_3205

:CAT1_3244
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 29400)

:CAT1_3251
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @CAT1_3277
wait 0
goto @CAT1_3251

:CAT1_3277
35@ += 1
goto @CAT1_25316
goto @CAT1_9952

:CAT1_3298
if 
  Char.DoesExist($catalina)
goto_if_false @CAT1_3319
Char.Delete($catalina)

:CAT1_3319
$catalina = Char.Create(PedType.Special, 294, 261.1952, -79.2717, 0.4697)
Char.SetHeading($catalina, 41.0763)
Char.SetDrownsInWater($catalina, False)
146@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
145@ = DecisionMakerGroup.Load(0)
Text.ClearPrints
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
World.ClearArea(257.5389, -77.23, 1.3678, 300.0, True)
Streaming.LoadScene(261.1952, -79.2717, 0.4697)
98@ = 1
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_3497
if 
  Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT1_3497
Char.RemoveFromGroup($catalina)
99@ = 0

:CAT1_3497
if 
  not Car.IsDead(78@)
goto_if_false @CAT1_3632
43@ = Car.GetModel(78@)
$x, $y, $z, 56@, 57@, 58@ = Streaming.GetModelDimensions(43@)
set_lvar_float_to_lvar_float 46@ = 57@
sub_float_var_from_float_lvar 46@ -= $y
46@ /= 1.8
$x = 259.7206
$y = -77.2067
$z = 0.5781
sub_float_lvar_from_float_var $x -= 46@
Car.SetCoordinates(78@, $x, $y, $z)
Car.SetHeading(78@, 265.6523)

:CAT1_3632
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_3866
Char.ClearTasksImmediately($catalina)
if 
  not Char.IsInAnyCar($catalina)
goto_if_false @CAT1_3714
Char.SetCoordinates($catalina, 261.1952, -79.2717, 0.4697)
Char.SetHeading($catalina, 41.0763)
Char.SetDecisionMaker($catalina, 67@)
goto @CAT1_3752

:CAT1_3714
Char.WarpFromCarToCoord($catalina, 261.1952, -79.2717, 0.4697)
Char.SetHeading($catalina, 41.0763)
Char.SetDecisionMaker($catalina, 67@)

:CAT1_3752
43@ = Char.GetCurrentWeapon($catalina)
if 
  not is_int_lvar_equal_to_constant 43@ == 28
goto_if_false @CAT1_3866
if 
  not Streaming.HasModelLoaded(352)
goto_if_false @CAT1_3826
Streaming.RequestModel(352)

:CAT1_3799
if 
  not Streaming.HasModelLoaded(352)
goto_if_false @CAT1_3826
wait 0
goto @CAT1_3799

:CAT1_3826
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_3866
Char.GiveWeapon($catalina, WeaponType.MicroUzi, 99999)
Char.SetCurrentWeapon($catalina, WeaponType.MicroUzi)
Streaming.MarkModelAsNoLongerNeeded(352)

:CAT1_3866
Char.ClearTasksImmediately($scplayer)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @CAT1_3924
Char.SetCoordinates($scplayer, 259.9737, -78.3268, 0.6181)
Char.SetHeading($scplayer, 38.3173)
goto @CAT1_3954

:CAT1_3924
Char.WarpFromCarToCoord($scplayer, 259.9737, -78.3268, 0.6181)
Char.SetHeading($scplayer, 38.3173)

:CAT1_3954
79@ = Car.Create(471, 230.6799, -85.1536, 0.4296)
Car.SetHeading(79@, 17.5494)
Car.SetCruiseSpeed(79@, 20.0)
Car.SetDrivingStyle(79@, DrivingMode.AvoidCars)
Car.SetUpsidedownNotDamaged(79@, True)
Car.SetOnlyDamagedByPlayer(79@, True)
80@ = Car.Create(471, 232.2597, -90.1452, 0.4297)
Car.SetHeading(80@, 17.5685)
Car.SetCruiseSpeed(80@, 20.0)
Car.SetDrivingStyle(80@, DrivingMode.AvoidCars)
Car.SetUpsidedownNotDamaged(80@, True)
Car.SetOnlyDamagedByPlayer(80@, True)
81@ = Car.Create(471, 234.0826, -95.9093, 0.4375)
Car.SetHeading(81@, 17.5565)
Car.SetCruiseSpeed(81@, 20.0)
Car.SetDrivingStyle(81@, DrivingMode.AvoidCars)
Car.SetUpsidedownNotDamaged(81@, True)
Car.SetOnlyDamagedByPlayer(81@, True)
82@ = Car.Create(471, 235.3937, -100.0505, 0.4375)
Car.SetHeading(82@, 17.5591)
Car.SetCruiseSpeed(82@, 20.0)
Car.SetDrivingStyle(82@, DrivingMode.AvoidCars)
Car.SetUpsidedownNotDamaged(82@, True)
Car.SetOnlyDamagedByPlayer(82@, True)
43@ = 0

:CAT1_4217
if 
  4 > 43@
goto_if_false @CAT1_4512
if 
  not Car.IsDead(79@(43@,4i))
goto_if_false @CAT1_4498
if 
  43@ == 0
goto_if_false @CAT1_4294
72@(43@,4i) = Char.CreateInsideCar(79@(43@,4i), PedType.Mission1, 161)

:CAT1_4294
if 
  43@ == 1
goto_if_false @CAT1_4333
72@(43@,4i) = Char.CreateInsideCar(79@(43@,4i), PedType.Mission1, 162)

:CAT1_4333
if 
  43@ == 2
goto_if_false @CAT1_4372
72@(43@,4i) = Char.CreateInsideCar(79@(43@,4i), PedType.Mission1, 161)

:CAT1_4372
if 
  43@ == 3
goto_if_false @CAT1_4411
72@(43@,4i) = Char.CreateInsideCar(79@(43@,4i), PedType.Mission1, 162)

:CAT1_4411
Char.SetAccuracy(72@(43@,4i), 60)
Char.GiveWeapon(72@(43@,4i), WeaponType.Pistol, 99999)
Task.TogglePedThreatScanner(72@(43@,4i), False, False, False)
Char.SetDecisionMaker(72@(43@,4i), 67@)
Char.SetProofs(72@(43@,4i), True, True, True, True, True)
Char.SetAnimGroup(72@(43@,4i), "MAN")

:CAT1_4498
43@ += 1
goto @CAT1_4217

:CAT1_4512
Car.StartPlayback(79@, 501)
Car.StartPlayback(80@, 502)
Car.StartPlayback(81@, 503)
Car.StartPlayback(82@, 504)
43@ = 0

:CAT1_4551
if 
  4 > 43@
goto_if_false @CAT1_4674
if 
  43@ <> 0
goto_if_false @CAT1_4640
if 
  43@ <> 3
goto_if_false @CAT1_4626
Car.SkipInPlayback(79@(43@,4i), 5.0)
goto @CAT1_4640

:CAT1_4626
Car.SkipInPlayback(79@(43@,4i), 7.0)

:CAT1_4640
Car.PausePlayback(79@(43@,4i))
100@(43@,4i) = 1
43@ += 1
goto @CAT1_4551

:CAT1_4674
76@ = Char.Create(PedType.CivMale, 44, 251.6866, -54.9554, 0.6181)
Char.SetHeading(76@, 174.9027)
Char.SetDecisionMaker(76@, 67@)
77@ = Char.Create(PedType.CivFemale, 77, 251.6549, -56.4859, 0.6255)
Char.SetHeading(77@, 354.6266)
Char.SetDecisionMaker(77@, 67@)
Task.ChatWithChar(76@, 77@, True, 1)
Task.ChatWithChar(77@, 76@, False, 1)
134@ = 261.814
135@ = -79.2233
136@ = 3.2479
137@ = 261.3385
138@ = -78.3447
139@ = 3.2922
set_var_float_to_lvar_float $x = 137@
sub_float_lvar_from_float_var $x -= 134@
set_var_float_to_lvar_float $y = 138@
sub_float_lvar_from_float_var $y -= 135@
set_var_float_to_lvar_float $z = 139@
sub_float_lvar_from_float_var $z -= 136@
46@ = Math.GetDistanceBetweenCoords3D(137@, 138@, 139@, 134@, 135@, 136@)
div_float_var_by_float_lvar $x /= 46@
div_float_var_by_float_lvar $y /= 46@
div_float_var_by_float_lvar $z /= 46@
$x *= 15.0
$y *= 15.0
$z *= 15.0
set_lvar_float_to_lvar_float 137@ = 134@
add_float_var_to_float_lvar 137@ += $x
set_lvar_float_to_lvar_float 138@ = 135@
add_float_var_to_float_lvar 138@ += $y
set_lvar_float_to_lvar_float 139@ = 136@
add_float_var_to_float_lvar 139@ += $z
$x = 260.876
$x -= 261.4119
$y = -77.7132
$y += 78.5511
$z = 2.2067
$z -= 2.3102
46@ = Math.GetDistanceBetweenCoords3D(261.4119, -78.5511, 2.3102, 260.876, -77.7132, 2.2067)
div_float_var_by_float_lvar $x /= 46@
div_float_var_by_float_lvar $y /= 46@
div_float_var_by_float_lvar $z /= 46@
$x *= 15.0
$y *= 15.0
$z *= 15.0
140@ = 261.4119
add_float_var_to_float_lvar 140@ += $x
141@ = -78.5511
add_float_var_to_float_lvar 141@ += $y
142@ = 2.3102
add_float_var_to_float_lvar 142@ += $z
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("DEST_LOOK_XYZ = ")
save_float_to_debug_file 140@
save_float_to_debug_file 141@
save_float_to_debug_file 142@
Camera.SetFixedPosition(134@, 135@, 136@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(137@, 138@, 139@, SwitchType.JumpCut)
Camera.SetNearClip(0.1)
wait 500
Camera.DoFade(500, Fade.In)

:CAT1_5423
if 
  Camera.GetFadingStatus
goto_if_false @CAT1_5447
wait 0
goto @CAT1_5423

:CAT1_5447
TIMERA = 0
TIMERB = 0
35@ += 1
goto @CAT1_9952

:CAT1_5475
35@ += 1
goto @CAT1_9952

:CAT1_5489
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_5601
Char.ClearTasksImmediately($catalina)
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, 261.2168, -77.1227, 0.6181, MoveState.Walk, 3000)
Task.AchieveHeading(-1, 41.0763)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence($catalina, 49@)
Sequence.Clear(49@)

:CAT1_5601
Char.ClearTasksImmediately($scplayer)
49@ = Sequence.Open()
Task.Pause(-1, 2000)
Task.GoStraightToCoord(-1, 260.7615, -77.7368, 0.6181, MoveState.Walk, 8000)
Task.AchieveHeading(-1, 5.0)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_5677
Task.LookAtChar(-1, $catalina, 8000)

:CAT1_5677
Task.Pause(-1, 3000)
Sequence.Close(49@)
Char.PerformSequence($scplayer, 49@)
Sequence.Clear(49@)
TIMERA = 0
TIMERB = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2400)
148@ = 0
35@ += 1
goto @CAT1_9952

:CAT1_5748
if 
  TIMERA > 1500
goto_if_false @CAT1_5879
set_var_text_label s$audio_string = 'CAT1_AA'
set_var_int_to_constant $audio_sound_file = 2400
start_new_script @AUDIOL $catalina 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  $cat_counter == 0
goto_if_false @CAT1_5844
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2430)
goto @CAT1_5851

:CAT1_5844
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2429)

:CAT1_5851
TIMERA = 0
35@ += 1
TIMERA = 0
goto @CAT1_6007

:CAT1_5879
if 
  TIMERA > 1000
goto_if_false @CAT1_6007
if 
  148@ == 0
goto_if_false @CAT1_6007
Camera.ResetNewScriptables
Camera.SetVectorMove(261.814, -79.2233, 3.2479, 261.4119, -78.5511, 2.3102, 3000, True)
Camera.SetVectorTrack(261.3385, -78.3447, 3.2922, 253.3734, -65.9824, 0.7577, 3000, True)
Camera.PersistTrack(True)
Camera.PersistPos(True)
148@ += 1

:CAT1_6007
TIMERB = 0
goto @CAT1_9952

:CAT1_6021
if 
  TIMERA > 1000
goto_if_false @CAT1_6192
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_6192
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_6079
Char.ClearTasks($catalina)

:CAT1_6079
if 
  $cat_counter == 0
goto_if_false @CAT1_6126
set_var_text_label s$audio_string = 'CAT1_AC'
set_var_int_to_constant $audio_sound_file = 2430
goto @CAT1_6148

:CAT1_6126
set_var_text_label s$audio_string = 'CAT1_AB'
set_var_int_to_constant $audio_sound_file = 2429

:CAT1_6148
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2401)
TIMERA = 0
35@ += 1

:CAT1_6192
goto @CAT1_9952

:CAT1_6199
if 
  TIMERA > 1000
goto_if_false @CAT1_6302
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_6302
set_var_text_label s$audio_string = 'CAT1_AD'
set_var_int_to_constant $audio_sound_file = 2401
start_new_script @AUDIOL $catalina 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2431)
TIMERA = 0
35@ += 1

:CAT1_6302
goto @CAT1_9952

:CAT1_6309
if 
  TIMERA > 1000
goto_if_false @CAT1_6412
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_6412
set_var_text_label s$audio_string = 'CAT1_AE'
set_var_int_to_constant $audio_sound_file = 2431
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2440)
TIMERA = 0
35@ += 1

:CAT1_6412
goto @CAT1_9952

:CAT1_6419
if 
  104@ == 2
goto_if_false @CAT1_6520
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_6520
Camera.ResetNewScriptables
Camera.SetFixedPosition(260.045, -63.3693, 2.4676, 0.0, 0.0, 0.0)
Camera.PointAtPoint(259.1025, -63.6456, 2.2799, SwitchType.JumpCut)
35@ += 1
TIMERA = 0

:CAT1_6520
goto @CAT1_9952

:CAT1_6527
if 
  TIMERA > 2500
goto_if_false @CAT1_7108
Camera.SetFixedPosition(250.2375, -53.7657, 2.328, 0.0, 0.0, 0.0)
Camera.PointAtPoint(250.8728, -54.5222, 2.1726, SwitchType.JumpCut)
if 
  not Char.IsDead(72@)
goto_if_false @CAT1_6705
Char.ClearTasksImmediately(72@)
Char.SetCoordinates(72@, 252.6819, -56.3618, 0.6181)
Char.SetHeading(72@, 20.1267)
if 
  not Char.IsDead(76@)
goto_if_false @CAT1_6705
49@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.AimGunAtChar(-1, 76@, 999999)
Sequence.Close(49@)
Char.PerformSequence(72@, 49@)
Sequence.Clear(49@)

:CAT1_6705
if 
  not Char.IsDead(73@)
goto_if_false @CAT1_6835
Char.ClearTasksImmediately(73@)
Char.SetCoordinates(73@, 252.1074, -57.8084, 0.6181)
Char.SetHeading(73@, 21.3066)
if 
  not Char.IsDead(77@)
goto_if_false @CAT1_6835
Char.SetHealth(77@, 1)
49@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.LookAtChar(-1, 77@, 5000)
Task.AimGunAtChar(-1, 77@, 2300)
Task.KillCharOnFoot(-1, 77@)
Sequence.Close(49@)
Char.PerformSequence(73@, 49@)
Sequence.Clear(49@)

:CAT1_6835
if 
  not Char.IsDead(74@)
goto_if_false @CAT1_6886
Char.ClearTasksImmediately(74@)
Char.SetCoordinates(74@, 254.4398, -57.6653, 0.6473)
Char.SetHeading(74@, 48.9264)

:CAT1_6886
if 
  not Char.IsDead(75@)
goto_if_false @CAT1_6937
Char.ClearTasksImmediately(75@)
Char.SetCoordinates(75@, 255.1348, -61.2211, 0.6181)
Char.SetHeading(75@, 170.608)

:CAT1_6937
if 
  not Char.IsDead(77@)
goto_if_false @CAT1_7068
Char.ClearTasksImmediately(77@)
49@ = Sequence.Open()
if 
  not Char.IsDead(72@)
goto_if_false @CAT1_6989
Task.LookAtChar(-1, 72@, 5000)

:CAT1_6989
Task.CharSlideToCoordAndPlayAnim(-1, 251.1549, -56.4655, 0.6255, 293.7874, 0.02, "HANDSCOWER", "PED", 4.0, False, False, False, True, -1)
Sequence.Close(49@)
Char.PerformSequence(77@, 49@)
Sequence.Clear(49@)

:CAT1_7068
if 
  not Char.IsDead(76@)
goto_if_false @CAT1_7094
Task.HandsUp(76@, 999999)

:CAT1_7094
35@ += 1
TIMERA = 0

:CAT1_7108
goto @CAT1_9952

:CAT1_7115
if 
  TIMERA > 3000
goto_if_false @CAT1_7690
World.SetPedDensityMultiplier(0.0)
World.ClearArea(242.0291, -62.9491, 2.3886, 50.0, True)
Camera.SetFixedPosition(242.0291, -62.9491, 2.3886, 0.0, 0.0, 0.0)
Camera.PointAtPoint(242.9384, -63.3287, 2.2181, SwitchType.JumpCut)
83@ = Object.Create(#BRIEFCASE, 254.2335, -56.954, 0.6181)
84@ = Object.Create(#BRIEFCASE, 254.2335, -56.954, 0.6181)
85@ = Object.Create(#BRIEFCASE, 254.2335, -56.954, 0.6181)
86@ = Object.Create(#BRIEFCASE, 254.2335, -56.954, 0.6181)
if 
  not Char.IsDead(72@)
goto_if_false @CAT1_7400
Char.ClearTasksImmediately(72@)
Task.PickUpObject(72@, 83@, 0.0, 0.15, 0.0, 5, 16, "NULL", "NULL", 0)
Char.SetCoordinates(72@, 254.2335, -56.954, 0.6181)
Char.SetHeading(72@, 190.0)

:CAT1_7400
if 
  not Char.IsDead(75@)
goto_if_false @CAT1_7492
Char.ClearTasksImmediately(75@)
Task.PickUpObject(75@, 86@, 0.0, 0.15, 0.0, 5, 16, "NULL", "NULL", 0)
Char.SetCoordinates(75@, 254.2521, -58.7186, 0.6181)
Char.SetHeading(75@, 190.0)

:CAT1_7492
if 
  not Char.IsDead(74@)
goto_if_false @CAT1_7584
Char.ClearTasksImmediately(74@)
Task.PickUpObject(74@, 85@, 0.0, 0.15, 0.0, 5, 16, "NULL", "NULL", 0)
Char.SetCoordinates(74@, 254.2762, -60.0254, 0.6255)
Char.SetHeading(74@, 190.0)

:CAT1_7584
if 
  not Char.IsDead(73@)
goto_if_false @CAT1_7676
Char.ClearTasksImmediately(73@)
Task.PickUpObject(73@, 84@, 0.0, 0.15, 0.0, 5, 16, "NULL", "NULL", 0)
Char.SetCoordinates(73@, 255.1927, -54.9104, 0.6181)
Char.SetHeading(73@, 190.0)

:CAT1_7676
TIMERA = 0
35@ += 1

:CAT1_7690
goto @CAT1_9952

:CAT1_7697
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot3, 251.5757, -62.9454, 3.3786)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
124@ = 1
35@ += 1
TIMERA = 0
goto @CAT1_9952

:CAT1_7748
43@ = 0

:CAT1_7755
if 
  4 > 43@
goto_if_false @CAT1_7818
if 
  not Char.IsDead(72@(43@,4i))
goto_if_false @CAT1_7804
104@(43@,4i) += 1

:CAT1_7804
43@ += 1
goto @CAT1_7755

:CAT1_7818
TIMERA = 0
35@ += 1
goto @CAT1_9952

:CAT1_7839
if 
  TIMERA > 1000
goto_if_false @CAT1_7942
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_7942
set_var_text_label s$audio_string = 'CAT1_AF'
set_var_int_to_constant $audio_sound_file = 2440
start_new_script @AUDIOL 75@ 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2402)
TIMERA = 0
35@ += 1

:CAT1_7942
goto @CAT1_9952

:CAT1_7949
if 
  TIMERA > 1000
goto_if_false @CAT1_8052
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_8052
set_var_text_label s$audio_string = 'CAT1_AG'
set_var_int_to_constant $audio_sound_file = 2402
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2403)
TIMERA = 0
35@ += 1

:CAT1_8052
goto @CAT1_9952

:CAT1_8059
if 
  10000 > TIMERA
goto_if_false @CAT1_8150
if 
  not Char.IsDead(75@)
goto_if_false @CAT1_8143
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_8143
if 
  Char.IsInCar(75@, 82@)
goto_if_false @CAT1_8143
35@ += 1
TIMERA = 0

:CAT1_8143
goto @CAT1_8157

:CAT1_8150
35@ += 1

:CAT1_8157
goto @CAT1_9952

:CAT1_8164
if 
  TIMERA > 500
goto_if_false @CAT1_8190
35@ += 1

:CAT1_8190
goto @CAT1_9952

:CAT1_8197
43@ = 0

:CAT1_8204
if 
  4 > 43@
goto_if_false @CAT1_8265
if 
  Object.DoesExist(83@(43@,4i))
goto_if_false @CAT1_8251
Object.Delete(83@(43@,4i))

:CAT1_8251
43@ += 1
goto @CAT1_8204

:CAT1_8265
43@ = 0

:CAT1_8272
if 
  4 > 43@
goto_if_false @CAT1_8398
if 
  not Char.IsDead(72@(43@,4i))
goto_if_false @CAT1_8373
if 
  not Car.IsDead(79@(43@,4i))
goto_if_false @CAT1_8373
if 
  not Char.IsInCar(72@(43@,4i), 79@(43@,4i))
goto_if_false @CAT1_8373
Char.WarpIntoCar(72@(43@,4i), 79@(43@,4i))

:CAT1_8373
104@(43@,4i) = 6
43@ += 1
goto @CAT1_8272

:CAT1_8398
if 
  not Car.IsDead(79@)
goto_if_false @CAT1_8512
if 
  not Car.IsPlaybackGoingOn(79@)
goto_if_false @CAT1_8512
if 
  not Streaming.HasCarRecordingBeenLoaded(509)
goto_if_false @CAT1_8478
Streaming.RequestCarRecording(509)

:CAT1_8451
if 
  not Streaming.HasCarRecordingBeenLoaded(509)
goto_if_false @CAT1_8478
wait 0
goto @CAT1_8451

:CAT1_8478
if 
  not Car.IsDead(79@)
goto_if_false @CAT1_8512
Car.StartPlayback(79@, 509)
Car.SkipInPlayback(79@, 2.0)

:CAT1_8512
if 
  not Car.IsDead(80@)
goto_if_false @CAT1_8626
if 
  not Car.IsPlaybackGoingOn(80@)
goto_if_false @CAT1_8626
if 
  not Streaming.HasCarRecordingBeenLoaded(505)
goto_if_false @CAT1_8592
Streaming.RequestCarRecording(505)

:CAT1_8565
if 
  not Streaming.HasCarRecordingBeenLoaded(505)
goto_if_false @CAT1_8592
wait 0
goto @CAT1_8565

:CAT1_8592
if 
  not Car.IsDead(80@)
goto_if_false @CAT1_8626
Car.StartPlayback(80@, 505)
Car.SkipInPlayback(80@, 0.0)

:CAT1_8626
if 
  not Car.IsDead(81@)
goto_if_false @CAT1_8740
if 
  not Car.IsPlaybackGoingOn(81@)
goto_if_false @CAT1_8740
if 
  not Streaming.HasCarRecordingBeenLoaded(506)
goto_if_false @CAT1_8706
Streaming.RequestCarRecording(506)

:CAT1_8679
if 
  not Streaming.HasCarRecordingBeenLoaded(506)
goto_if_false @CAT1_8706
wait 0
goto @CAT1_8679

:CAT1_8706
if 
  not Car.IsDead(81@)
goto_if_false @CAT1_8740
Car.StartPlayback(81@, 506)
Car.SkipInPlayback(81@, 6.0)

:CAT1_8740
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_8854
if 
  not Car.IsPlaybackGoingOn(82@)
goto_if_false @CAT1_8854
if 
  not Streaming.HasCarRecordingBeenLoaded(507)
goto_if_false @CAT1_8820
Streaming.RequestCarRecording(507)

:CAT1_8793
if 
  not Streaming.HasCarRecordingBeenLoaded(507)
goto_if_false @CAT1_8820
wait 0
goto @CAT1_8793

:CAT1_8820
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_8854
Car.StartPlayback(82@, 507)
Car.SkipInPlayback(82@, 3.0)

:CAT1_8854
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_8895
Char.ClearTasksImmediately($catalina)
Char.SetCoordinates($catalina, 260.2472, -75.3335, 0.4697)

:CAT1_8895
TIMERA = 0
Camera.SetFixedPosition(261.735, -75.3817, 2.127, 0.0, 0.0, 0.0)
Camera.PointAtPoint(260.836, -74.9604, 2.0068, SwitchType.JumpCut)
35@ += 1
goto @CAT1_9952

:CAT1_8967
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_9065
Char.SetHeading($catalina, 53.9394)
Char.SetShootRate($catalina, 100)
if 
  not Char.IsDead(75@)
goto_if_false @CAT1_9065
49@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.LookAtChar(-1, 75@, 1000)
Task.AimGunAtChar(-1, 75@, 5000)
Sequence.Close(49@)
Char.PerformSequence($catalina, 49@)
Sequence.Clear(49@)

:CAT1_9065
TIMERA = 0
35@ += 1
goto @CAT1_9952

:CAT1_9086
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_9170
set_var_text_label s$audio_string = 'CAT1_AH'
set_var_int_to_constant $audio_sound_file = 2403
start_new_script @AUDIOL $catalina 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 12672)
TIMERA = 0
35@ += 1

:CAT1_9170
goto @CAT1_9952

:CAT1_9177
if 
  TIMERA > 2000
goto_if_false @CAT1_9258
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_9258
if 
  not Char.IsDead(75@)
goto_if_false @CAT1_9258
Char.SetShootRate($catalina, 100)
Task.KillCharOnFoot($catalina, 75@)
Char.SetProofs(75@, True, True, True, True, True)

:CAT1_9258
if 
  TIMERA > 2500
goto_if_false @CAT1_9328
Camera.SetFixedPosition(252.0826, -71.4979, 1.3761, 0.0, 0.0, 0.0)
Camera.PointAtPoint(253.0449, -71.7658, 1.4225, SwitchType.JumpCut)

:CAT1_9328
if 
  TIMERA > 2800
goto_if_false @CAT1_9511
if 
  not Char.IsDead(75@)
goto_if_false @CAT1_9511
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_9511
Char.ClearTasksImmediately(75@)
49@ = Sequence.Open()
Task.DieNamedAnim(-1, "BIKE_FALL_OFF", "PED", 4.0, 1)
Sequence.Close(49@)
Char.PerformSequence(75@, 49@)
Sequence.Clear(49@)
set_var_text_label s$audio_string = 'CATX_TD'
set_var_int_to_constant $audio_sound_file = 12672
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2404)
TIMERA = 0
35@ += 1
TIMERA = 0

:CAT1_9511
goto @CAT1_9952

:CAT1_9518
if 
  TIMERA > 1000
goto_if_false @CAT1_9544
35@ += 1

:CAT1_9544
goto @CAT1_9952

:CAT1_9551
if 
  Char.IsDead(75@)
goto_if_false @CAT1_9639
$x, $y, $z = Char.GetCoordinatesOfDied(75@)
Camera.SetFixedPosition(259.2034, -75.5284, 2.0793, 0.0, 0.0, 0.0)
Camera.PointAtPoint(260.1396, -75.2342, 1.8871, SwitchType.JumpCut)
35@ += 1

:CAT1_9639
goto @CAT1_9952

:CAT1_9646
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_9851
Char.ClearTasks($catalina)
49@ = Sequence.Open()
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_9700
Task.EnterCarAsPassenger(-1, 82@, 5000, 0)

:CAT1_9700
Sequence.Close(49@)
Char.PerformSequence($catalina, 49@)
Sequence.Clear(49@)
Char.ClearTasks($scplayer)
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, 263.4937, -75.2639, 0.4697, MoveState.Run, 5000)
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_9778
Task.EnterCarAsDriver(-1, 82@, 10000)

:CAT1_9778
Sequence.Close(49@)
Char.PerformSequence($scplayer, 49@)
Sequence.Clear(49@)
set_var_text_label s$audio_string = 'CAT1_BA'
set_var_int_to_constant $audio_sound_file = 2404
start_new_script @AUDIOL $catalina 0 1 1 1 
TIMERA = 0
35@ += 1

:CAT1_9851
goto @CAT1_9952

:CAT1_9858
35@ += 1
goto @CAT1_9952

:CAT1_9872
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_9945
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_9945
if and
  Char.IsInCar($catalina, 82@)
  Char.IsInCar($scplayer, 82@)
goto_if_false @CAT1_9945
35@ = 99
TIMERA = 0

:CAT1_9945
goto @CAT1_9952

:CAT1_9952
if 
  35@ > 1
goto_if_false @CAT1_10001
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CAT1_10001
35@ = 99
108@ = 1

:CAT1_10001
if 
  104@ == 0
goto_if_false @CAT1_10107
if 
  100@ == 1
goto_if_false @CAT1_10107
if 
  TIMERB > 1000
goto_if_false @CAT1_10107
if 
  not Car.IsDead(79@)
goto_if_false @CAT1_10107
if 
  Car.IsPlaybackGoingOn(79@)
goto_if_false @CAT1_10107
Car.UnpausePlayback(79@)
100@ = 0
104@ += 1

:CAT1_10107
if 
  105@ == 0
goto_if_false @CAT1_10213
if 
  101@ == 1
goto_if_false @CAT1_10213
if 
  TIMERB > 2000
goto_if_false @CAT1_10213
if 
  not Car.IsDead(80@)
goto_if_false @CAT1_10213
if 
  Car.IsPlaybackGoingOn(80@)
goto_if_false @CAT1_10213
Car.UnpausePlayback(80@)
101@ = 0
105@ += 1

:CAT1_10213
if 
  106@ == 0
goto_if_false @CAT1_10319
if 
  102@ == 1
goto_if_false @CAT1_10319
if 
  TIMERB > 2000
goto_if_false @CAT1_10319
if 
  not Car.IsDead(81@)
goto_if_false @CAT1_10319
if 
  Car.IsPlaybackGoingOn(81@)
goto_if_false @CAT1_10319
Car.UnpausePlayback(81@)
102@ = 0
106@ += 1

:CAT1_10319
if 
  107@ == 0
goto_if_false @CAT1_10425
if 
  103@ == 1
goto_if_false @CAT1_10425
if 
  TIMERB > 3000
goto_if_false @CAT1_10425
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_10425
if 
  Car.IsPlaybackGoingOn(82@)
goto_if_false @CAT1_10425
Car.UnpausePlayback(82@)
103@ = 0
107@ += 1

:CAT1_10425
if 
  104@ == 1
goto_if_false @CAT1_10572
if 
  not Car.IsDead(79@)
goto_if_false @CAT1_10572
if 
  not Car.IsPlaybackGoingOn(79@)
goto_if_false @CAT1_10572
if 
  not Char.IsDead(72@)
goto_if_false @CAT1_10572
Path.FlushRoute
Path.ExtendRoute(254.5467, -62.6116, 0.5625)
Path.ExtendRoute(254.0845, -57.0229, 0.5781)
49@ = Sequence.Open()
Task.LeaveCar(-1, 79@)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Sequence.Close(49@)
Char.PerformSequence(72@, 49@)
Sequence.Clear(49@)
104@ += 1

:CAT1_10572
if 
  105@ == 1
goto_if_false @CAT1_10719
if 
  not Car.IsDead(80@)
goto_if_false @CAT1_10719
if 
  not Car.IsPlaybackGoingOn(80@)
goto_if_false @CAT1_10719
if 
  not Char.IsDead(73@)
goto_if_false @CAT1_10719
Path.FlushRoute
Path.ExtendRoute(254.5467, -62.6116, 0.5625)
Path.ExtendRoute(254.0845, -57.0229, 0.5781)
49@ = Sequence.Open()
Task.LeaveCar(-1, 80@)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Sequence.Close(49@)
Char.PerformSequence(73@, 49@)
Sequence.Clear(49@)
105@ += 1

:CAT1_10719
if 
  106@ == 1
goto_if_false @CAT1_10866
if 
  not Car.IsDead(81@)
goto_if_false @CAT1_10866
if 
  not Car.IsPlaybackGoingOn(81@)
goto_if_false @CAT1_10866
if 
  not Char.IsDead(74@)
goto_if_false @CAT1_10866
Path.FlushRoute
Path.ExtendRoute(254.5467, -62.6116, 0.5625)
Path.ExtendRoute(254.0845, -57.0229, 0.5781)
49@ = Sequence.Open()
Task.LeaveCar(-1, 81@)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Sequence.Close(49@)
Char.PerformSequence(74@, 49@)
Sequence.Clear(49@)
106@ += 1

:CAT1_10866
if 
  107@ == 1
goto_if_false @CAT1_11013
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_11013
if 
  not Car.IsPlaybackGoingOn(82@)
goto_if_false @CAT1_11013
if 
  not Char.IsDead(75@)
goto_if_false @CAT1_11013
Path.FlushRoute
Path.ExtendRoute(254.5467, -62.6116, 0.5625)
Path.ExtendRoute(254.0845, -57.0229, 0.5781)
49@ = Sequence.Open()
Task.LeaveCar(-1, 82@)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Sequence.Close(49@)
Char.PerformSequence(75@, 49@)
Sequence.Clear(49@)
107@ += 1

:CAT1_11013
if 
  104@ == 3
goto_if_false @CAT1_11158
if 
  not Char.IsDead(72@)
goto_if_false @CAT1_11158
if 
  not Car.IsDead(79@)
goto_if_false @CAT1_11158
Path.FlushRoute
Path.ExtendRoute(254.6638, -62.4099, 0.6181)
Path.ExtendRoute(252.9, -64.95, 0.6181)
49@ = Sequence.Open()
Task.Pause(-1, 2000)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Task.EnterCarAsDriver(-1, 79@, 20000)
Sequence.Close(49@)
Char.SetNextDesiredMoveState(MoveState.Run)
Char.PerformSequence(72@, 49@)
Sequence.Clear(49@)
104@ += 1

:CAT1_11158
if 
  105@ == 3
goto_if_false @CAT1_11359
if 
  not Char.IsDead(73@)
goto_if_false @CAT1_11359
if 
  not Car.IsDead(80@)
goto_if_false @CAT1_11359
if 
  not Car.IsDead(80@)
goto_if_false @CAT1_11253
$x, $y, $z = Car.GetOffsetInWorldCoords(80@, 1.0, 0.5, 0.0)

:CAT1_11253
Path.FlushRoute
Path.ExtendRoute(255.0126, -62.5672, 0.6181)
Path.ExtendRoute(255.9082, -64.7079, 0.5781)
Path.ExtendRoute($x, $y, $z)
49@ = Sequence.Open()
Task.Pause(-1, 3000)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Task.EnterCarAsDriver(-1, 80@, 20000)
Sequence.Close(49@)
Char.SetNextDesiredMoveState(MoveState.Run)
Char.PerformSequence(73@, 49@)
Sequence.Clear(49@)
105@ += 1

:CAT1_11359
if 
  106@ == 3
goto_if_false @CAT1_11503
if 
  not Char.IsDead(74@)
goto_if_false @CAT1_11503
if 
  not Car.IsDead(81@)
goto_if_false @CAT1_11503
Path.FlushRoute
Path.ExtendRoute(254.3236, -62.2213, 0.6181)
Path.ExtendRoute(250.654, -65.0175, 0.6181)
49@ = Sequence.Open()
Task.Pause(-1, 0)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Task.EnterCarAsDriver(-1, 81@, 20000)
Sequence.Close(49@)
Char.SetNextDesiredMoveState(MoveState.Run)
Char.PerformSequence(74@, 49@)
Sequence.Clear(49@)
106@ += 1

:CAT1_11503
if 
  107@ == 3
goto_if_false @CAT1_11704
if 
  not Char.IsDead(75@)
goto_if_false @CAT1_11704
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_11704
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_11598
$x, $y, $z = Car.GetOffsetInWorldCoords(82@, 1.0, 0.5, 0.0)

:CAT1_11598
Path.FlushRoute
Path.ExtendRoute(254.0475, -62.7343, 0.6181)
Path.ExtendRoute(247.6622, -64.1287, 0.5781)
Path.ExtendRoute($x, $y, $z)
49@ = Sequence.Open()
Task.Pause(-1, 1000)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Task.EnterCarAsDriver(-1, 82@, 20000)
Sequence.Close(49@)
Char.SetNextDesiredMoveState(MoveState.Run)
Char.PerformSequence(75@, 49@)
Sequence.Clear(49@)
107@ += 1

:CAT1_11704
if 
  104@ == 4
goto_if_false @CAT1_11812
if 
  not Char.IsDead(72@)
goto_if_false @CAT1_11812
if 
  not Car.IsDead(79@)
goto_if_false @CAT1_11812
if 
  Char.LocateOnFootCar3D(72@, 79@, 2.5, 2.5, 2.5, False)
goto_if_false @CAT1_11812
Char.SetNextDesiredMoveState(MoveState.Run)
Task.EnterCarAsDriver(72@, 79@, 5000)
104@ += 1

:CAT1_11812
if 
  105@ == 4
goto_if_false @CAT1_11837
105@ += 1

:CAT1_11837
if 
  106@ == 4
goto_if_false @CAT1_11945
if 
  not Char.IsDead(74@)
goto_if_false @CAT1_11945
if 
  not Car.IsDead(81@)
goto_if_false @CAT1_11945
if 
  Char.LocateOnFootCar3D(74@, 81@, 2.5, 2.5, 2.5, False)
goto_if_false @CAT1_11945
Char.SetNextDesiredMoveState(MoveState.Run)
Task.EnterCarAsDriver(74@, 81@, 5000)
106@ += 1

:CAT1_11945
if 
  107@ == 4
goto_if_false @CAT1_11970
107@ += 1

:CAT1_11970
if 
  104@ == 5
goto_if_false @CAT1_12118
if 
  not Char.IsDead(72@)
goto_if_false @CAT1_12118
if 
  not Car.IsDead(79@)
goto_if_false @CAT1_12118
if 
  Char.IsInCar(72@, 79@)
goto_if_false @CAT1_12118
if 
  not Streaming.HasCarRecordingBeenLoaded(509)
goto_if_false @CAT1_12087
Streaming.RequestCarRecording(509)

:CAT1_12060
if 
  not Streaming.HasCarRecordingBeenLoaded(509)
goto_if_false @CAT1_12087
wait 0
goto @CAT1_12060

:CAT1_12087
if 
  not Car.IsDead(79@)
goto_if_false @CAT1_12111
Car.StartPlayback(79@, 509)

:CAT1_12111
104@ += 1

:CAT1_12118
if 
  105@ == 5
goto_if_false @CAT1_12266
if 
  not Char.IsDead(73@)
goto_if_false @CAT1_12266
if 
  not Car.IsDead(80@)
goto_if_false @CAT1_12266
if 
  Char.IsInCar(73@, 80@)
goto_if_false @CAT1_12266
if 
  not Streaming.HasCarRecordingBeenLoaded(505)
goto_if_false @CAT1_12235
Streaming.RequestCarRecording(505)

:CAT1_12208
if 
  not Streaming.HasCarRecordingBeenLoaded(505)
goto_if_false @CAT1_12235
wait 0
goto @CAT1_12208

:CAT1_12235
if 
  not Car.IsDead(80@)
goto_if_false @CAT1_12259
Car.StartPlayback(80@, 505)

:CAT1_12259
105@ += 1

:CAT1_12266
if 
  106@ == 5
goto_if_false @CAT1_12414
if 
  not Char.IsDead(74@)
goto_if_false @CAT1_12414
if 
  not Car.IsDead(81@)
goto_if_false @CAT1_12414
if 
  Char.IsInCar(74@, 81@)
goto_if_false @CAT1_12414
if 
  not Streaming.HasCarRecordingBeenLoaded(506)
goto_if_false @CAT1_12383
Streaming.RequestCarRecording(506)

:CAT1_12356
if 
  not Streaming.HasCarRecordingBeenLoaded(506)
goto_if_false @CAT1_12383
wait 0
goto @CAT1_12356

:CAT1_12383
if 
  not Car.IsDead(81@)
goto_if_false @CAT1_12407
Car.StartPlayback(81@, 506)

:CAT1_12407
106@ += 1

:CAT1_12414
if 
  107@ == 5
goto_if_false @CAT1_12562
if 
  not Char.IsDead(75@)
goto_if_false @CAT1_12562
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_12562
if 
  Char.IsInCar(75@, 82@)
goto_if_false @CAT1_12562
if 
  not Streaming.HasCarRecordingBeenLoaded(507)
goto_if_false @CAT1_12531
Streaming.RequestCarRecording(507)

:CAT1_12504
if 
  not Streaming.HasCarRecordingBeenLoaded(507)
goto_if_false @CAT1_12531
wait 0
goto @CAT1_12504

:CAT1_12531
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_12555
Car.StartPlayback(82@, 507)

:CAT1_12555
107@ += 1

:CAT1_12562
if 
  104@ == 7
goto_if_false @CAT1_12649
if 
  not Car.IsDead(79@)
goto_if_false @CAT1_12649
if 
  not Car.IsPlaybackGoingOn(79@)
goto_if_false @CAT1_12649
Car.SetCoordinates(79@, 376.1397, -94.8354, 1.8378)
Car.SetHeading(79@, 285.1002)
104@ += 1

:CAT1_12649
if 
  105@ == 7
goto_if_false @CAT1_12736
if 
  not Car.IsDead(80@)
goto_if_false @CAT1_12736
if 
  not Car.IsPlaybackGoingOn(80@)
goto_if_false @CAT1_12736
Car.SetCoordinates(80@, 370.2741, -95.2991, 1.3107)
Car.SetHeading(80@, 273.2807)
105@ += 1

:CAT1_12736
if 
  106@ == 7
goto_if_false @CAT1_12823
if 
  not Car.IsDead(81@)
goto_if_false @CAT1_12823
if 
  not Car.IsPlaybackGoingOn(81@)
goto_if_false @CAT1_12823
Car.SetCoordinates(81@, 363.1674, -95.3071, 0.7736)
Car.SetHeading(81@, 273.2807)
106@ += 1

:CAT1_12823
if 
  35@ == 99
goto_if_false @CAT1_14066
Camera.ResetNewScriptables
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
98@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
if 
  not Car.IsDead(79@)
goto_if_false @CAT1_12956
if 
  Car.IsPlaybackGoingOn(79@)
goto_if_false @CAT1_12926
Car.StopPlayback(79@)

:CAT1_12926
Car.SetCoordinates(79@, 376.1397, -94.8354, 1.8378)
Car.SetHeading(79@, 285.1002)

:CAT1_12956
if 
  not Car.IsDead(80@)
goto_if_false @CAT1_13023
if 
  Car.IsPlaybackGoingOn(80@)
goto_if_false @CAT1_12993
Car.StopPlayback(80@)

:CAT1_12993
Car.SetCoordinates(80@, 370.2741, -95.2991, 1.3107)
Car.SetHeading(80@, 273.2807)

:CAT1_13023
if 
  not Car.IsDead(81@)
goto_if_false @CAT1_13090
if 
  Car.IsPlaybackGoingOn(81@)
goto_if_false @CAT1_13060
Car.StopPlayback(81@)

:CAT1_13060
Car.SetCoordinates(81@, 363.1674, -95.3071, 0.7736)
Car.SetHeading(81@, 273.2807)

:CAT1_13090
if 
  108@ == 1
goto_if_false @CAT1_13183
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_13183
if 
  Car.IsPlaybackGoingOn(82@)
goto_if_false @CAT1_13145
Car.StopPlayback(82@)

:CAT1_13145
Car.SetCoordinates(82@, 263.8679, -73.6352, 0.4297)
Car.SetHeading(82@, 272.3554)
Car.SetHealth(82@, 1500)

:CAT1_13183
Char.Delete(72@)
Char.Delete(73@)
Char.Delete(74@)
Char.Delete(75@)
Object.Delete(83@)
Object.Delete(84@)
Object.Delete(85@)
Object.Delete(86@)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_13278
Char.SetDecisionMaker($catalina, 68@)
Char.ClearTasksImmediately($catalina)
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_13278
Char.WarpIntoCarAsPassenger($catalina, 82@, 0)

:CAT1_13278
Char.ClearTasksImmediately($scplayer)
if 
  not Car.IsDead(82@)
goto_if_false @CAT1_13307
Char.WarpIntoCar($scplayer, 82@)

:CAT1_13307
43@ = 0

:CAT1_13314
if 
  4 > 43@
goto_if_false @CAT1_13674
if 
  not Car.IsDead(79@(43@,4i))
goto_if_false @CAT1_13660
if 
  43@ == 0
goto_if_false @CAT1_13399
72@(43@,4i) = Char.Create(PedType.Mission1, 161, 0.0, 0.0, 0.0)

:CAT1_13399
if 
  43@ == 1
goto_if_false @CAT1_13446
72@(43@,4i) = Char.Create(PedType.Mission1, 162, 0.0, 0.0, 0.0)

:CAT1_13446
if 
  43@ == 2
goto_if_false @CAT1_13493
72@(43@,4i) = Char.Create(PedType.Mission1, 161, 0.0, 0.0, 0.0)

:CAT1_13493
if 
  43@ == 3
goto_if_false @CAT1_13540
72@(43@,4i) = Char.Create(PedType.Mission1, 162, 0.0, 0.0, 0.0)

:CAT1_13540
Char.SetAccuracy(72@(43@,4i), 60)
Char.GiveWeapon(72@(43@,4i), WeaponType.Pistol, 99999)
Task.TogglePedThreatScanner(72@(43@,4i), False, False, False)
Char.SetDecisionMaker(72@(43@,4i), 68@)
Char.SetProofs(72@(43@,4i), False, False, False, False, False)
Char.SetAnimGroup(72@(43@,4i), "MAN")
Char.SetSuffersCriticalHits(72@(43@,4i), False)
Char.SetMaxHealth(72@(43@,4i), 100)
Char.SetHealth(72@(43@,4i), 100)

:CAT1_13660
43@ += 1
goto @CAT1_13314

:CAT1_13674
if 
  not Car.IsDead(79@)
goto_if_false @CAT1_13698
Char.WarpIntoCar(72@, 79@)

:CAT1_13698
if 
  not Car.IsDead(80@)
goto_if_false @CAT1_13722
Char.WarpIntoCar(73@, 80@)

:CAT1_13722
if 
  not Car.IsDead(81@)
goto_if_false @CAT1_13746
Char.WarpIntoCar(74@, 81@)

:CAT1_13746
43@ = 0

:CAT1_13753
if 
  3 > 43@
goto_if_false @CAT1_13832
Car.SetCruiseSpeed(79@(43@,4i), 20.0)
Car.SetDrivingStyle(79@(43@,4i), DrivingMode.AvoidCars)
Car.SetUpsidedownNotDamaged(79@(43@,4i), True)
Car.SetOnlyDamagedByPlayer(79@(43@,4i), True)
43@ += 1
goto @CAT1_13753

:CAT1_13832
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Char.SetCoordinates(75@, 257.1983, -72.641, 1.4697)
Task.Dead(75@)
Char.MarkAsNoLongerNeeded(76@)
Char.MarkAsNoLongerNeeded(77@)
Streaming.MarkModelAsNoLongerNeeded(471)
Streaming.MarkModelAsNoLongerNeeded(161)
Streaming.MarkModelAsNoLongerNeeded(162)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(44)
Streaming.MarkModelAsNoLongerNeeded(77)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
if 
  124@ <> 1
goto_if_false @CAT1_13961
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot3, 251.5757, -62.9454, 3.3786)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
124@ = 1

:CAT1_13961
98@ = 1
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT1_14048
if 
  Blip.DoesExist(87@)
goto_if_false @CAT1_14008
Blip.Remove(87@)

:CAT1_14008
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $catalina)
Char.SetDrownsInWater($catalina, False)
99@ = 1
64@ = 0
goto @CAT1_14055

:CAT1_14048
99@ = 1

:CAT1_14055
Audio.SetRadioChannel(RadioChannel.KRose)
gosub @CAT1_32428

:CAT1_14066
return 

:CAT1_14068
if 
  35@ == 0
goto_if_false @CAT1_14944
Game.SetCreateRandomGangMembers(False)
166@ = Math.RandomIntInRange(0, 8)
43@ = 0

:CAT1_14106
if 
  3 > 43@
goto_if_false @CAT1_14309
if 
  not Char.IsDead(72@(43@,4i))
goto_if_false @CAT1_14236
88@(43@,3i) = Blip.AddForChar(72@(43@,4i))
Char.SetMaxHealth(72@(43@,4i), 200)
Char.SetHealth(72@(43@,4i), 200)
Char.SetRelationship(72@(43@,4i), RelationshipType.Hate, PedType.Special)
Char.SetRelationship(72@(43@,4i), RelationshipType.Hate, PedType.Player1)
Task.TogglePedThreatScanner(72@(43@,4i), True, False, False)
Char.SetCanBeKnockedOffBike(72@(43@,4i), False)

:CAT1_14236
if 
  not Car.IsDead(79@(43@,4i))
goto_if_false @CAT1_14295
Car.SetDrivingStyle(79@(43@,4i), DrivingMode.AvoidCars)
Car.SetCruiseSpeed(79@(43@,4i), 25.0)
Car.SetForwardSpeed(79@(43@,4i), 5.0)

:CAT1_14295
43@ += 1
goto @CAT1_14106

:CAT1_14309
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
133@ = 1.05
Streaming.RequestCarRecording(553)
Streaming.RequestCarRecording(554)
Streaming.RequestCarRecording(555)

:CAT1_14376
if or
  not Streaming.HasCarRecordingBeenLoaded(553)
  not Streaming.HasCarRecordingBeenLoaded(554)
  not Streaming.HasCarRecordingBeenLoaded(555)
goto_if_false @CAT1_14413
wait 0
goto @CAT1_14376

:CAT1_14413
if 
  not Car.IsDead(79@)
goto_if_false @CAT1_14460
Car.StartPlaybackUsingAi(79@, 553)
Car.SkipInPlayback(79@, 1.0)
StuckCarCheck.Add(79@, 2.0, 2000)

:CAT1_14460
if 
  not Car.IsDead(80@)
goto_if_false @CAT1_14507
Car.StartPlaybackUsingAi(80@, 554)
Car.SkipInPlayback(80@, 1.0)
StuckCarCheck.Add(80@, 2.0, 2000)

:CAT1_14507
if 
  not Car.IsDead(81@)
goto_if_false @CAT1_14554
Car.StartPlaybackUsingAi(81@, 555)
Car.SkipInPlayback(81@, 1.0)
StuckCarCheck.Add(81@, 2.0, 2000)

:CAT1_14554
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_14702
DecisionMakerGroup.ClearEventResponse(145@, 36)
Group.SetDecisionMaker($Players_Group, 145@)
Char.SetRelationship($catalina, RelationshipType.Hate, PedType.Mission1)
Char.SetDecisionMaker($catalina, 146@)
Task.TogglePedThreatScanner($catalina, True, False, False)
DecisionMakerGroup.AddEventResponse(145@, 36, 1510, 0.0, 100.0, 0.0, 0.0, True, False)
DecisionMakerChar.AddEventResponse(146@, 36, 1022, 0.0, 100.0, 0.0, 0.0, True, False)
Char.SetAccuracy($catalina, 35)
Char.SetShootRate($catalina, 100)
Char.SetDrownsInWater($catalina, False)

:CAT1_14702
$6986 = 1
104@ = 0
105@ = 0
106@ = 0
98@ = 0
43@ = Math.RandomIntInRange(1, 3)
if 
  43@ == 0
goto_if_false @CAT1_14805
set_var_text_label s$audio_string = 'CAT1_BA'
set_var_int_to_constant $audio_sound_file = 2404
start_new_script @AUDIOL $scplayer 0 1 1 0 

:CAT1_14805
if 
  43@ == 1
goto_if_false @CAT1_14864
set_var_text_label s$audio_string = 'CAT1_BB'
set_var_int_to_constant $audio_sound_file = 2405
start_new_script @AUDIOL $scplayer 0 1 1 0 

:CAT1_14864
if 
  43@ == 2
goto_if_false @CAT1_14923
set_var_text_label s$audio_string = 'CAT1_BC'
set_var_int_to_constant $audio_sound_file = 2406
start_new_script @AUDIOL $scplayer 0 1 1 0 

:CAT1_14923
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
35@ += 1

:CAT1_14944
if 
  35@ == 1
goto_if_false @CAT1_17123
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @CAT1_14987
133@ += 0.1

:CAT1_14987
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @CAT1_15043
133@ += -0.1
if 
  0.0 > 133@
goto_if_false @CAT1_15043
133@ = 0.0

:CAT1_15043
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_15154
if 
  not Car.IsDead(78@)
goto_if_false @CAT1_15147
if 
  Char.IsInCar($catalina, 78@)
goto_if_false @CAT1_15133
if 
  116@ == 0
goto_if_false @CAT1_15126
Char.SetCurrentWeapon($catalina, WeaponType.MicroUzi)
116@ = 1

:CAT1_15126
goto @CAT1_15140

:CAT1_15133
116@ = 0

:CAT1_15140
goto @CAT1_15154

:CAT1_15147
116@ = 0

:CAT1_15154
43@ = 0

:CAT1_15161
if 
  3 > 43@
goto_if_false @CAT1_15220
set_lvar_int_to_lvar_int 163@ = 43@
gosub @CAT1_27428
set_lvar_float_to_lvar_float 127@(43@,3f) = 165@
43@ += 1
goto @CAT1_15161

:CAT1_15220
43@ = 0

:CAT1_15227
if 
  3 > 43@
goto_if_false @CAT1_15624
if 
  not Char.IsDead(72@(43@,4i))
goto_if_false @CAT1_15610
if 
  104@(43@,4i) == 0
goto_if_false @CAT1_15509
if 
  not Car.IsDead(79@(43@,4i))
goto_if_false @CAT1_15509
if 
  not Car.IsPlaybackGoingOn(79@(43@,4i))
goto_if_false @CAT1_15509
104@(43@,4i) += 1
Path.FlushRoute
Path.ExtendRoute(2346.271, -1044.447, 52.6699)
Path.ExtendRoute(2349.337, -1043.622, 52.9884)
Path.ExtendRoute(2354.353, -1041.798, 53.136)
Path.ExtendRoute(2355.844, -1039.797, 53.1562)
Path.ExtendRoute(2355.559, -1038.575, 53.3358)
49@ = Sequence.Open()
if 
  Char.IsInCar(72@(43@,4i), 79@(43@,4i))
goto_if_false @CAT1_15468
Task.LeaveCar(-1, 79@(43@,4i))

:CAT1_15468
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Sequence.Close(49@)
Char.PerformSequence(72@(43@,4i), 49@)
Sequence.Clear(49@)
Char.SetAccuracy(72@(43@,4i), 90)

:CAT1_15509
if 
  104@(43@,4i) == 1
goto_if_false @CAT1_15610
if 
  Char.LocateOnFoot3D(72@(43@,4i), 2355.559, -1038.575, 53.3358, 1.0, 1.0, 2.0, False)
goto_if_false @CAT1_15610
Char.RemoveElegantly(72@(43@,4i))
104@(43@,4i) += 1
gosub @CAT1_32428

:CAT1_15610
43@ += 1
goto @CAT1_15227

:CAT1_15624
43@ = 0

:CAT1_15631
if 
  3 > 43@
goto_if_false @CAT1_16011
if 
  not Char.IsDead(72@(43@,4i))
goto_if_false @CAT1_15997
if 
  104@(43@,4i) == 0
goto_if_false @CAT1_15997
if 
  not Char.IsInAnyCar(72@(43@,4i))
goto_if_false @CAT1_15997
44@ = Char.GetScriptTaskStatus(72@(43@,4i), 1560)
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @CAT1_15842
if 
  not Car.IsDead(79@(43@,4i))
goto_if_false @CAT1_15835
49@ = Sequence.Open()
Task.GotoCar(-1, 79@(43@,4i), 60000, 5.0)
Task.EnterCarAsDriver(-1, 79@(43@,4i), 60000)
Sequence.Close(49@)
Char.PerformSequence(72@(43@,4i), 49@)
Sequence.Clear(49@)
goto @CAT1_15835

:CAT1_15835
goto @CAT1_15997

:CAT1_15842
if 
  not Car.IsDead(79@(43@,4i))
goto_if_false @CAT1_15997
if 
  not Car.IsOnScreen(79@(43@,4i))
goto_if_false @CAT1_15997
if 
  not Char.IsOnScreen(72@(43@,4i))
goto_if_false @CAT1_15997
if 
  not Char.LocateAnyMeansChar3D($scplayer, 72@(43@,4i), 20.0, 20.0, 5.0, False)
goto_if_false @CAT1_15997
44@ = Car.GetDriver(79@(43@,4i))
if 
  44@ == -1
goto_if_false @CAT1_15997
Char.ClearTasksImmediately(72@(43@,4i))
Char.WarpIntoCar(72@(43@,4i), 79@(43@,4i))

:CAT1_15997
43@ += 1
goto @CAT1_15631

:CAT1_16011
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @CAT1_16085
if 
  not Char.IsDead(73@)
goto_if_false @CAT1_16085
if 
  not Car.IsDead(80@)
goto_if_false @CAT1_16085
if 
  Char.IsInCar(73@, 80@)
goto_if_false @CAT1_16085
Task.LeaveCarImmediately(73@, 80@)

:CAT1_16085
if 
  Char.LocateAnyMeans2D($scplayer, 1397.24, 216.0877, 50.0, 50.0, False)
goto_if_false @CAT1_16181
if 
  115@ <> 1
goto_if_false @CAT1_16181
133@ += -0.05
115@ = 1
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_16181
Char.SetAccuracy($catalina, 50)

:CAT1_16181
if 
  Char.LocateAnyMeans2D($scplayer, 2711.119, -53.5082, 50.0, 50.0, False)
goto_if_false @CAT1_16277
if 
  115@ <> 2
goto_if_false @CAT1_16277
133@ += 0.25
115@ = 2
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_16277
Char.SetAccuracy($catalina, 70)

:CAT1_16277
43@ = 0

:CAT1_16284
if 
  3 > 43@
goto_if_false @CAT1_16489
if 
  Char.IsDead(72@(43@,4i))
goto_if_false @CAT1_16475
if 
  121@(43@,3i) == 0
goto_if_false @CAT1_16475
if 
  95@(43@,3i) == -1
goto_if_false @CAT1_16475
Blip.Remove(88@(43@,3i))
88@(43@,3i) = 0
$x, $y, $z = World.GetDeadCharPickupCoords(72@(43@,4i))
95@(43@,3i) = Pickup.Create(#BRIEFCASE, PickupType.Once, $x, $y, $z)
91@(43@,3i) = Blip.AddForCoord($x, $y, $z)
Blip.ChangeColor(91@(43@,3i), BlipColor.Green)
147@ = 29000
121@(43@,3i) = 1

:CAT1_16475
43@ += 1
goto @CAT1_16284

:CAT1_16489
43@ = 0

:CAT1_16496
if 
  3 > 43@
goto_if_false @CAT1_16793
if 
  Pickup.DoesExist(95@(43@,3i))
goto_if_false @CAT1_16779
if 
  147@ > 30000
goto_if_false @CAT1_16576
Text.PrintNow('CAT108', 7000, 1)
147@ = 0

:CAT1_16576
$x, $y, $z = Pickup.GetCoordinates(95@(43@,3i))
if 
  Char.LocateAnyMeans3D($scplayer, $x, $y, $z, 1.0, 1.0, 2.0, False)
goto_if_false @CAT1_16701
Blip.Remove(91@(43@,3i))
Pickup.Remove(95@(43@,3i))
95@(43@,3i) = -1
Text.ClearPrints
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
$6986 += 1
goto @CAT1_16779

:CAT1_16701
if 
  Pickup.HasBeenCollected(95@(43@,3i))
goto_if_false @CAT1_16779
Blip.Remove(91@(43@,3i))
Pickup.Remove(95@(43@,3i))
95@(43@,3i) = -1
Text.ClearPrints
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
$6986 += 1

:CAT1_16779
43@ += 1
goto @CAT1_16496

:CAT1_16793
if 
  Char.IsDead($catalina)
goto_if_false @CAT1_16832
Text.PrintNow('LOSE2', 5000, 1)
37@ = 1

:CAT1_16832
43@ = 0
if 
  not Char.IsDead(72@)
goto_if_false @CAT1_16888
if or
  300.0 > 130@
  Char.IsOnScreen(72@)
goto_if_false @CAT1_16888
43@ = 1

:CAT1_16888
if 
  not Char.IsDead(73@)
goto_if_false @CAT1_16937
if or
  300.0 > 131@
  Char.IsOnScreen(73@)
goto_if_false @CAT1_16937
43@ = 1

:CAT1_16937
if 
  not Char.IsDead(74@)
goto_if_false @CAT1_16986
if or
  300.0 > 132@
  Char.IsOnScreen(74@)
goto_if_false @CAT1_16986
43@ = 1

:CAT1_16986
if and
  Char.IsDead(72@)
  Char.IsDead(73@)
  Char.IsDead(74@)
goto_if_false @CAT1_17019
43@ = 1

:CAT1_17019
if 
  43@ == 0
goto_if_false @CAT1_17062
if 
  125@ == 0
goto_if_false @CAT1_17062
gosub @CAT1_32428

:CAT1_17062
gosub @CAT1_28492
if 
is_ps2_keyboard_key_just_pressed 13
goto_if_false @CAT1_17091
$6986 = 4

:CAT1_17091
if 
  $6986 == 4
goto_if_false @CAT1_17123
gosub @CAT1_32428
gosub @CAT1_32428

:CAT1_17123
return 

:CAT1_17125
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
149@ = Streaming.GetAreaVisible()
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
if 
  149@ <> 0
goto_if_false @CAT1_17278
Camera.DoFade(250, Fade.Out)

:CAT1_17180
if 
  Camera.GetFadingStatus
goto_if_false @CAT1_17204
wait 0
goto @CAT1_17180

:CAT1_17204
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_17278
Streaming.SetAreaVisible(0)
Char.FreezePosition($scplayer, True)
$x, $y, $z = Char.GetCoordinates($catalina)
Char.SetProofs($catalina, True, True, True, True, True)
Streaming.LoadScene($x, $y, $z)
Camera.DoFade(250, Fade.In)

:CAT1_17278
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_17338
Camera.SetInFrontOfChar($catalina)
Task.WanderStandard($catalina)
$x, $y, $z = Char.GetCoordinates($catalina)
World.ClearArea($x, $y, 100.0, 100.0, False)

:CAT1_17338
43@ = Math.RandomIntInRange(0, 10)
switch_start 43@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @CAT1_17955 {caseNum1} 0 {caseLabel1} @CAT1_17475 {caseNum2} 1 {caseLabel2} @CAT1_17523 {caseNum3} 2 {caseLabel3} @CAT1_17571 {caseNum4} 3 {caseLabel4} @CAT1_17619 {caseNum5} 4 {caseLabel5} @CAT1_17667 {caseNum6} 5 {caseLabel6} @CAT1_17715 {caseNum7} 6 {caseLabel7} @CAT1_17763
switch_continued 7 {caseLabel1} @CAT1_17811 {caseNum2} 8 {caseLabel2} @CAT1_17859 {caseNum3} 9 {caseLabel3} @CAT1_17907 {caseNum4} -1 {caseLabel4} @CAT1_17955 {caseNum5} -1 {caseLabel5} @CAT1_17955 {caseNum6} -1 {caseLabel6} @CAT1_17955 {caseNum7} -1 {caseLabel7} @CAT1_17955 {caseNum8} -1 {caseLabel8} @CAT1_17955 {caseNum9} -1 {caseLabel9} @CAT1_17955

:CAT1_17475
set_var_text_label s$audio_string = 'CATX_UA'
set_var_int_to_constant $audio_sound_file = 12689
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17523
set_var_text_label s$audio_string = 'CATX_UB'
set_var_int_to_constant $audio_sound_file = 12690
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17571
set_var_text_label s$audio_string = 'CATX_UC'
set_var_int_to_constant $audio_sound_file = 12691
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17619
set_var_text_label s$audio_string = 'CATX_UD'
set_var_int_to_constant $audio_sound_file = 12692
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17667
set_var_text_label s$audio_string = 'CATX_UE'
set_var_int_to_constant $audio_sound_file = 12693
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17715
set_var_text_label s$audio_string = 'CATX_UF'
set_var_int_to_constant $audio_sound_file = 12694
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17763
set_var_text_label s$audio_string = 'CATX_UG'
set_var_int_to_constant $audio_sound_file = 12695
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17811
set_var_text_label s$audio_string = 'CATX_UH'
set_var_int_to_constant $audio_sound_file = 12696
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17859
set_var_text_label s$audio_string = 'CATX_UJ'
set_var_int_to_constant $audio_sound_file = 12697
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17907
set_var_text_label s$audio_string = 'CATX_UK'
set_var_int_to_constant $audio_sound_file = 12698
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17955

:CAT1_17955
wait 100

:CAT1_17959
if 
  $audio_line_is_active <> 0
goto_if_false @CAT1_17988
wait 0
goto @CAT1_17959

:CAT1_17988
wait 500
if 
  149@ <> 0
goto_if_false @CAT1_18086
Camera.DoFade(500, Fade.Out)

:CAT1_18018
if 
  Camera.GetFadingStatus
goto_if_false @CAT1_18042
wait 0
goto @CAT1_18018

:CAT1_18042
Streaming.SetAreaVisible(149@)
Char.FreezePosition($scplayer, False)
$x, $y, $z = Char.GetCoordinates($scplayer)
Streaming.LoadScene($x, $y, $z)
Camera.DoFade(250, Fade.In)

:CAT1_18086
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Char.Delete($catalina)
Text.PrintNow('LOSE', 5000, 1)
37@ = 1
return 

:CAT1_18131
if 
  35@ == 0
goto_if_false @CAT1_18218
Game.SetCreateRandomGangMembers(True)
94@ = Blip.AddForCoord($catX, $catY, $catZ)
Text.PrintNow('CAT112', 7000, 1)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
150@ = 0
120@ = 0
35@ += 1

:CAT1_18218
if 
  35@ == 1
goto_if_false @CAT1_22350
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @CAT1_18414
if 
  120@ == 0
goto_if_false @CAT1_18414
43@ = Math.RandomIntInRange(0, 2)
if 
  43@ == 0
goto_if_false @CAT1_18344
set_var_text_label s$audio_string = 'CAT1_FA'
set_var_int_to_constant $audio_sound_file = 2420
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_18385

:CAT1_18344
set_var_text_label s$audio_string = 'CAT1_FB'
set_var_int_to_constant $audio_sound_file = 2421
start_new_script @AUDIOL $catalina 0 0 1 0 

:CAT1_18385
62@ = 0
150@ = 1
120@ += 1
TIMERA = -5000

:CAT1_18414
if 
  150@ == 1
goto_if_false @CAT1_21422
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  TIMERA > 1000
goto_if_false @CAT1_21422
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_21422
if 
  Char.LocateAnyMeansChar3D($scplayer, $catalina, 10.0, 10.0, 5.0, False)
goto_if_false @CAT1_21422
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_21422
if 
  $cat_getaway_dialogue == 0
goto_if_false @CAT1_19798
switch_start 62@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @CAT1_19784 {caseNum1} 0 {caseLabel1} @CAT1_18671 {caseNum2} 1 {caseLabel2} @CAT1_18737 {caseNum3} 2 {caseLabel3} @CAT1_19055 {caseNum4} 3 {caseLabel4} @CAT1_19132 {caseNum5} 4 {caseLabel5} @CAT1_19191 {caseNum6} 5 {caseLabel6} @CAT1_19250 {caseNum7} 6 {caseLabel7} @CAT1_19309
switch_continued 8 {caseLabel1} @CAT1_19368 {caseNum2} 9 {caseLabel2} @CAT1_19427 {caseNum3} 10 {caseLabel3} @CAT1_19486 {caseNum4} 11 {caseLabel4} @CAT1_19545 {caseNum5} 12 {caseLabel5} @CAT1_19604 {caseNum6} 13 {caseLabel6} @CAT1_19663 {caseNum7} 14 {caseLabel7} @CAT1_19722 {caseNum8} 15 {caseLabel8} @CAT1_19770 {caseNum9} -1 {caseLabel9} @CAT1_19784

:CAT1_18671
if 
  $cat_counter == 0
goto_if_false @CAT1_18730
set_var_text_label s$audio_string = 'CAT_DA'
set_var_int_to_constant $audio_sound_file = 2217
start_new_script @AUDIOL $catalina 0 1 1 0 

:CAT1_18730
goto @CAT1_19784

:CAT1_18737
if 
  $cat_counter == 0
goto_if_false @CAT1_19048
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_18785
$x, $y, $z = Char.GetCoordinates($catalina)

:CAT1_18785
set_lvar_float_to_var_float 46@ = $catY
sub_float_var_from_float_lvar 46@ -= $y
set_lvar_float_to_var_float 47@ = $catX
sub_float_var_from_float_lvar 47@ -= $x
if 
  0.0 > 47@
goto_if_false @CAT1_18863
48@ = -1.0
mult_float_lvar_by_float_lvar 48@ *= 47@
goto @CAT1_18871

:CAT1_18863
set_lvar_float_to_lvar_float 48@ = 47@

:CAT1_18871
if 
  is_float_lvar_greater_than_float_lvar 46@ > 48@
goto_if_false @CAT1_18938
set_var_text_label s$audio_string = 'CAT_DD'
set_var_int_to_constant $audio_sound_file = 2220
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_19048

:CAT1_18938
if 
  47@ > 0.0
goto_if_false @CAT1_19007
set_var_text_label s$audio_string = 'CAT_DC'
set_var_int_to_constant $audio_sound_file = 2219
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_19048

:CAT1_19007
set_var_text_label s$audio_string = 'CAT_DB'
set_var_int_to_constant $audio_sound_file = 2218
start_new_script @AUDIOL $catalina 0 1 1 0 

:CAT1_19048
goto @CAT1_19784

:CAT1_19055
if 
  $cat_counter == 0
goto_if_false @CAT1_19125
set_var_text_label s$audio_string = 'CAT_DE'
set_var_int_to_constant $audio_sound_file = 2221
start_new_script @AUDIOL $catalina 0 1 2 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2300)

:CAT1_19125
goto @CAT1_19784

:CAT1_19132
set_var_text_label s$audio_string = 'CAT_DF'
set_var_int_to_constant $audio_sound_file = 2300
start_new_script @AUDIOL $scplayer 0 1 1 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2222)
goto @CAT1_19784

:CAT1_19191
set_var_text_label s$audio_string = 'CAT_DG'
set_var_int_to_constant $audio_sound_file = 2222
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2223)
goto @CAT1_19784

:CAT1_19250
set_var_text_label s$audio_string = 'CAT_DH'
set_var_int_to_constant $audio_sound_file = 2223
start_new_script @AUDIOL $catalina 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2224)
goto @CAT1_19784

:CAT1_19309
set_var_text_label s$audio_string = 'CAT_DI'
set_var_int_to_constant $audio_sound_file = 2224
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2225)
goto @CAT1_19784

:CAT1_19368
set_var_text_label s$audio_string = 'CAT_DJ'
set_var_int_to_constant $audio_sound_file = 2225
start_new_script @AUDIOL $catalina 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2226)
goto @CAT1_19784

:CAT1_19427
set_var_text_label s$audio_string = 'CAT_DK'
set_var_int_to_constant $audio_sound_file = 2226
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2301)
goto @CAT1_19784

:CAT1_19486
set_var_text_label s$audio_string = 'CAT_DL'
set_var_int_to_constant $audio_sound_file = 2301
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2227)
goto @CAT1_19784

:CAT1_19545
set_var_text_label s$audio_string = 'CAT_DM'
set_var_int_to_constant $audio_sound_file = 2227
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2228)
goto @CAT1_19784

:CAT1_19604
set_var_text_label s$audio_string = 'CAT_DN'
set_var_int_to_constant $audio_sound_file = 2228
start_new_script @AUDIOL $catalina 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2302)
goto @CAT1_19784

:CAT1_19663
set_var_text_label s$audio_string = 'CAT_DO'
set_var_int_to_constant $audio_sound_file = 2302
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2229)
goto @CAT1_19784

:CAT1_19722
set_var_text_label s$audio_string = 'CAT_DP'
set_var_int_to_constant $audio_sound_file = 2229
start_new_script @AUDIOL $catalina 0 1 1 1 
goto @CAT1_19784

:CAT1_19770
150@ = 0
goto @CAT1_19784

:CAT1_19784
62@ += 1
TIMERA = 0

:CAT1_19798
if 
  $cat_getaway_dialogue == 1
goto_if_false @CAT1_20787
switch_start 62@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @CAT1_20773 {caseNum1} 0 {caseLabel1} @CAT1_19944 {caseNum2} 1 {caseLabel2} @CAT1_20003 {caseNum3} 2 {caseLabel3} @CAT1_20062 {caseNum4} 3 {caseLabel4} @CAT1_20121 {caseNum5} 4 {caseLabel5} @CAT1_20180 {caseNum6} 5 {caseLabel6} @CAT1_20239 {caseNum7} 6 {caseLabel7} @CAT1_20298
switch_continued 7 {caseLabel1} @CAT1_20357 {caseNum2} 8 {caseLabel2} @CAT1_20416 {caseNum3} 9 {caseLabel3} @CAT1_20475 {caseNum4} 10 {caseLabel4} @CAT1_20534 {caseNum5} 11 {caseLabel5} @CAT1_20593 {caseNum6} 12 {caseLabel6} @CAT1_20652 {caseNum7} 13 {caseLabel7} @CAT1_20711 {caseNum8} 14 {caseLabel8} @CAT1_20759 {caseNum9} -1 {caseLabel9} @CAT1_20773

:CAT1_19944
set_var_text_label s$audio_string = 'CAT_GA'
set_var_int_to_constant $audio_sound_file = 2247
start_new_script @AUDIOL $catalina 0 1 2 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2313)
goto @CAT1_20773

:CAT1_20003
set_var_text_label s$audio_string = 'CAT_GB'
set_var_int_to_constant $audio_sound_file = 2313
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2248)
goto @CAT1_20773

:CAT1_20062
set_var_text_label s$audio_string = 'CAT_GC'
set_var_int_to_constant $audio_sound_file = 2248
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2314)
goto @CAT1_20773

:CAT1_20121
set_var_text_label s$audio_string = 'CAT_GD'
set_var_int_to_constant $audio_sound_file = 2314
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2315)
goto @CAT1_20773

:CAT1_20180
set_var_text_label s$audio_string = 'CAT_GE'
set_var_int_to_constant $audio_sound_file = 2315
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2249)
goto @CAT1_20773

:CAT1_20239
set_var_text_label s$audio_string = 'CAT_GF'
set_var_int_to_constant $audio_sound_file = 2249
start_new_script @AUDIOL $catalina 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2316)
goto @CAT1_20773

:CAT1_20298
set_var_text_label s$audio_string = 'CAT_GG'
set_var_int_to_constant $audio_sound_file = 2316
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2250)
goto @CAT1_20773

:CAT1_20357
set_var_text_label s$audio_string = 'CAT_GH'
set_var_int_to_constant $audio_sound_file = 2250
start_new_script @AUDIOL $catalina 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2317)
goto @CAT1_20773

:CAT1_20416
set_var_text_label s$audio_string = 'CAT_GI'
set_var_int_to_constant $audio_sound_file = 2317
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2251)
goto @CAT1_20773

:CAT1_20475
set_var_text_label s$audio_string = 'CAT_GJ'
set_var_int_to_constant $audio_sound_file = 2251
start_new_script @AUDIOL $catalina 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2252)
goto @CAT1_20773

:CAT1_20534
set_var_text_label s$audio_string = 'CAT_GK'
set_var_int_to_constant $audio_sound_file = 2252
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2253)
goto @CAT1_20773

:CAT1_20593
set_var_text_label s$audio_string = 'CAT_GL'
set_var_int_to_constant $audio_sound_file = 2253
start_new_script @AUDIOL $catalina 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2254)
goto @CAT1_20773

:CAT1_20652
set_var_text_label s$audio_string = 'CAT_GM'
set_var_int_to_constant $audio_sound_file = 2254
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2318)
goto @CAT1_20773

:CAT1_20711
set_var_text_label s$audio_string = 'CAT_GN'
set_var_int_to_constant $audio_sound_file = 2318
start_new_script @AUDIOL $scplayer 0 1 1 1 
goto @CAT1_20773

:CAT1_20759
150@ = 0
goto @CAT1_20773

:CAT1_20773
62@ += 1
TIMERA = 0

:CAT1_20787
if 
  $cat_getaway_dialogue == 2
goto_if_false @CAT1_21422
switch_start 62@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CAT1_21408 {caseNum1} 0 {caseLabel1} @CAT1_20933 {caseNum2} 1 {caseLabel2} @CAT1_20992 {caseNum3} 2 {caseLabel3} @CAT1_21051 {caseNum4} 3 {caseLabel4} @CAT1_21110 {caseNum5} 4 {caseLabel5} @CAT1_21169 {caseNum6} 5 {caseLabel6} @CAT1_21228 {caseNum7} 6 {caseLabel7} @CAT1_21287
switch_continued 7 {caseLabel1} @CAT1_21346 {caseNum2} 14 {caseLabel2} @CAT1_21394 {caseNum3} -1 {caseLabel3} @CAT1_21408 {caseNum4} -1 {caseLabel4} @CAT1_21408 {caseNum5} -1 {caseLabel5} @CAT1_21408 {caseNum6} -1 {caseLabel6} @CAT1_21408 {caseNum7} -1 {caseLabel7} @CAT1_21408 {caseNum8} -1 {caseLabel8} @CAT1_21408 {caseNum9} -1 {caseLabel9} @CAT1_21408

:CAT1_20933
set_var_text_label s$audio_string = 'CAT_OA'
set_var_int_to_constant $audio_sound_file = 2281
start_new_script @AUDIOL $catalina 0 1 2 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2332)
goto @CAT1_21408

:CAT1_20992
set_var_text_label s$audio_string = 'CAT_OB'
set_var_int_to_constant $audio_sound_file = 2332
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2282)
goto @CAT1_21408

:CAT1_21051
set_var_text_label s$audio_string = 'CAT_OC'
set_var_int_to_constant $audio_sound_file = 2282
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2333)
goto @CAT1_21408

:CAT1_21110
set_var_text_label s$audio_string = 'CAT_OD'
set_var_int_to_constant $audio_sound_file = 2333
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2283)
goto @CAT1_21408

:CAT1_21169
set_var_text_label s$audio_string = 'CAT_OE'
set_var_int_to_constant $audio_sound_file = 2283
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2334)
goto @CAT1_21408

:CAT1_21228
set_var_text_label s$audio_string = 'CAT_OF'
set_var_int_to_constant $audio_sound_file = 2334
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2284)
goto @CAT1_21408

:CAT1_21287
set_var_text_label s$audio_string = 'CAT_OG'
set_var_int_to_constant $audio_sound_file = 2284
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2285)
goto @CAT1_21408

:CAT1_21346
set_var_text_label s$audio_string = 'CAT_OH'
set_var_int_to_constant $audio_sound_file = 2285
start_new_script @AUDIOL $catalina 0 1 1 1 
goto @CAT1_21408

:CAT1_21394
150@ = 0
goto @CAT1_21408

:CAT1_21408
62@ += 1
TIMERA = 0

:CAT1_21422
if 
  150@ == 0
goto_if_false @CAT1_22180
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  TIMERA > 30000
goto_if_false @CAT1_22180
43@ = Math.RandomIntInRange(0, 16)
switch_start 43@ {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @CAT1_22154 {caseNum1} 0 {caseLabel1} @CAT1_21600 {caseNum2} 1 {caseLabel2} @CAT1_21629 {caseNum3} 2 {caseLabel3} @CAT1_21658 {caseNum4} 3 {caseLabel4} @CAT1_21687 {caseNum5} 4 {caseLabel5} @CAT1_21716 {caseNum6} 5 {caseLabel6} @CAT1_21745 {caseNum7} 6 {caseLabel7} @CAT1_21774
switch_continued 7 {caseLabel1} @CAT1_21803 {caseNum2} 8 {caseLabel2} @CAT1_21832 {caseNum3} 9 {caseLabel3} @CAT1_21861 {caseNum4} 10 {caseLabel4} @CAT1_21890 {caseNum5} 11 {caseLabel5} @CAT1_21964 {caseNum6} 12 {caseLabel6} @CAT1_21993 {caseNum7} 13 {caseLabel7} @CAT1_22022 {caseNum8} 14 {caseLabel8} @CAT1_22051 {caseNum9} 15 {caseLabel9} @CAT1_22125

:CAT1_21600
set_var_text_label s$audio_string = 'CATX_VA'
set_var_int_to_constant $audio_sound_file = 12699
goto @CAT1_22154

:CAT1_21629
set_var_text_label s$audio_string = 'CATX_VB'
set_var_int_to_constant $audio_sound_file = 12700
goto @CAT1_22154

:CAT1_21658
set_var_text_label s$audio_string = 'CATX_VC'
set_var_int_to_constant $audio_sound_file = 12701
goto @CAT1_22154

:CAT1_21687
set_var_text_label s$audio_string = 'CATX_VD'
set_var_int_to_constant $audio_sound_file = 12702
goto @CAT1_22154

:CAT1_21716
set_var_text_label s$audio_string = 'CATX_VE'
set_var_int_to_constant $audio_sound_file = 12703
goto @CAT1_22154

:CAT1_21745
set_var_text_label s$audio_string = 'CATX_VF'
set_var_int_to_constant $audio_sound_file = 12704
goto @CAT1_22154

:CAT1_21774
set_var_text_label s$audio_string = 'CATX_VG'
set_var_int_to_constant $audio_sound_file = 12705
goto @CAT1_22154

:CAT1_21803
set_var_text_label s$audio_string = 'CATX_VH'
set_var_int_to_constant $audio_sound_file = 12706
goto @CAT1_22154

:CAT1_21832
set_var_text_label s$audio_string = 'CATX_VJ'
set_var_int_to_constant $audio_sound_file = 12707
goto @CAT1_22154

:CAT1_21861
set_var_text_label s$audio_string = 'CATX_VK'
set_var_int_to_constant $audio_sound_file = 12708
goto @CAT1_22154

:CAT1_21890
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @CAT1_21935
set_var_text_label s$audio_string = 'CATX_VK'
set_var_int_to_constant $audio_sound_file = 12708
goto @CAT1_21957

:CAT1_21935
set_var_text_label s$audio_string = 'CATX_VL'
set_var_int_to_constant $audio_sound_file = 12709

:CAT1_21957
goto @CAT1_22154

:CAT1_21964
set_var_text_label s$audio_string = 'CATX_VM'
set_var_int_to_constant $audio_sound_file = 12710
goto @CAT1_22154

:CAT1_21993
set_var_text_label s$audio_string = 'CATX_VN'
set_var_int_to_constant $audio_sound_file = 12711
goto @CAT1_22154

:CAT1_22022
set_var_text_label s$audio_string = 'CATX_VO'
set_var_int_to_constant $audio_sound_file = 12712
goto @CAT1_22154

:CAT1_22051
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @CAT1_22096
set_var_text_label s$audio_string = 'CATX_VO'
set_var_int_to_constant $audio_sound_file = 12712
goto @CAT1_22118

:CAT1_22096
set_var_text_label s$audio_string = 'CATX_VP'
set_var_int_to_constant $audio_sound_file = 12713

:CAT1_22118
goto @CAT1_22154

:CAT1_22125
set_var_text_label s$audio_string = 'CATX_VQ'
set_var_int_to_constant $audio_sound_file = 12714
goto @CAT1_22154

:CAT1_22154
start_new_script @AUDIOL $catalina 0 0 1 0 
TIMERA = 0

:CAT1_22180
if 
  99@ == 1
goto_if_false @CAT1_22345
if 
  not Blip.DoesExist(94@)
goto_if_false @CAT1_22228
35@ = 0
goto @CAT1_22338

:CAT1_22228
if 
  Char.LocateAnyMeans3D($scplayer, $catX, $catY, $catZ, 3.0, 3.0, 3.0, True)
goto_if_false @CAT1_22338
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT1_22331
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.IsOnAllWheels($car)
goto_if_false @CAT1_22324
Player.SetControl($player1, False)
35@ += 1

:CAT1_22324
goto @CAT1_22338

:CAT1_22331
35@ += 1

:CAT1_22338
goto @CAT1_22350

:CAT1_22345
Blip.Remove(94@)

:CAT1_22350
if 
  35@ == 2
goto_if_false @CAT1_22429
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT1_22422
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.IsStopped($car)
goto_if_false @CAT1_22415
35@ += 1

:CAT1_22415
goto @CAT1_22429

:CAT1_22422
35@ += 1

:CAT1_22429
if 
  35@ == 3
goto_if_false @CAT1_22762
Player.SetControl($player1, False)
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
Hud.SwitchWidescreen(True)
World.ClearArea($catX, $catY, $catZ, 20.0, True)
Camera.SetFixedPosition(856.0245, -29.9962, 63.9179, 0.0, 0.0, 0.0)
Camera.PointAtPoint(856.9926, -29.7496, 63.8739, SwitchType.JumpCut)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_22718
if 
  not Char.IsInAnyCar($catalina)
goto_if_false @CAT1_22645
if 
  not Char.LocateAnyMeans3D($catalina, $catX, $catY, $catZ, 5.0, 5.0, 5.0, False)
goto_if_false @CAT1_22645
Char.SetCoordinates($catalina, 868.838, -28.2257, 62.1875)
Char.SetHeading($catalina, 161.446)

:CAT1_22645
49@ = Sequence.Open()
if 
  Char.IsInAnyCar($catalina)
goto_if_false @CAT1_22681
$car = Char.StoreCarIsInNoSave($catalina)
Task.LeaveCar(-1, $car)

:CAT1_22681
Task.TurnCharToFaceChar(-1, $scplayer)
Task.LookAtChar(-1, $scplayer, 99999)
Sequence.Close(49@)
Char.PerformSequence($catalina, 49@)
Sequence.Clear(49@)

:CAT1_22718
43@ = Math.RandomIntInRange(0, 10)
TIMERA = 0
151@ = 0
62@ = 0
152@ = 0
35@ += 1

:CAT1_22762
if 
  35@ == 4
goto_if_false @CAT1_25143
if 
  151@ == 0
goto_if_false @CAT1_25026
if and
  $audio_line_is_active == 0
  TIMERA > 1000
goto_if_false @CAT1_25019
if 
  $cat_counter == 0
goto_if_false @CAT1_23840
switch_start 62@ {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @CAT1_23826 {caseNum1} 0 {caseLabel1} @CAT1_22970 {caseNum2} 1 {caseLabel2} @CAT1_23029 {caseNum3} 2 {caseLabel3} @CAT1_23088 {caseNum4} 3 {caseLabel4} @CAT1_23147 {caseNum5} 4 {caseLabel5} @CAT1_23206 {caseNum6} 5 {caseLabel6} @CAT1_23265 {caseNum7} 6 {caseLabel7} @CAT1_23324
switch_continued 7 {caseLabel1} @CAT1_23383 {caseNum2} 8 {caseLabel2} @CAT1_23442 {caseNum3} 9 {caseLabel3} @CAT1_23501 {caseNum4} 10 {caseLabel4} @CAT1_23560 {caseNum5} 11 {caseLabel5} @CAT1_23619 {caseNum6} 12 {caseLabel6} @CAT1_23777 {caseNum7} 13 {caseLabel7} @CAT1_23798 {caseNum8} 14 {caseLabel8} @CAT1_23805 {caseNum9} 15 {caseLabel9} @CAT1_23812

:CAT1_22970
set_var_text_label s$audio_string = 'CAT_EA'
set_var_int_to_constant $audio_sound_file = 2230
start_new_script @AUDIOL $catalina 0 1 2 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2231)
goto @CAT1_23826

:CAT1_23029
set_var_text_label s$audio_string = 'CAT_EB'
set_var_int_to_constant $audio_sound_file = 2231
start_new_script @AUDIOL $catalina 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2232)
goto @CAT1_23826

:CAT1_23088
set_var_text_label s$audio_string = 'CAT_EC'
set_var_int_to_constant $audio_sound_file = 2232
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2303)
goto @CAT1_23826

:CAT1_23147
set_var_text_label s$audio_string = 'CAT_ED'
set_var_int_to_constant $audio_sound_file = 2303
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2304)
goto @CAT1_23826

:CAT1_23206
set_var_text_label s$audio_string = 'CAT_EE'
set_var_int_to_constant $audio_sound_file = 2304
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2233)
goto @CAT1_23826

:CAT1_23265
set_var_text_label s$audio_string = 'CAT_EF'
set_var_int_to_constant $audio_sound_file = 2233
start_new_script @AUDIOL $catalina 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2234)
goto @CAT1_23826

:CAT1_23324
set_var_text_label s$audio_string = 'CAT_EG'
set_var_int_to_constant $audio_sound_file = 2234
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2235)
goto @CAT1_23826

:CAT1_23383
set_var_text_label s$audio_string = 'CAT_EH'
set_var_int_to_constant $audio_sound_file = 2235
start_new_script @AUDIOL $catalina 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2305)
goto @CAT1_23826

:CAT1_23442
set_var_text_label s$audio_string = 'CAT_EI'
set_var_int_to_constant $audio_sound_file = 2305
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2306)
goto @CAT1_23826

:CAT1_23501
set_var_text_label s$audio_string = 'CAT_EJ'
set_var_int_to_constant $audio_sound_file = 2306
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2307)
goto @CAT1_23826

:CAT1_23560
set_var_text_label s$audio_string = 'CAT_EK'
set_var_int_to_constant $audio_sound_file = 2307
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2308)
goto @CAT1_23826

:CAT1_23619
set_var_text_label s$audio_string = 'CAT_EL'
set_var_int_to_constant $audio_sound_file = 2308
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2336)
152@ = 1
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_23770
Char.ClearLookAt($catalina)
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, 869.0271, -28.2591, 62.1893, MoveState.Walk, 20000)
Task.GoStraightToCoord(-1, 870.2891, -25.0424, 62.9858, MoveState.Walk, 5000)
Sequence.Close(49@)
Char.PerformSequence($catalina, 49@)
Sequence.Clear(49@)

:CAT1_23770
goto @CAT1_23826

:CAT1_23777
62@ = 16
151@ = 1
goto @CAT1_23826

:CAT1_23798
goto @CAT1_23826

:CAT1_23805
goto @CAT1_23826

:CAT1_23812
151@ = 1
goto @CAT1_23826

:CAT1_23826
62@ += 1
TIMERA = 0

:CAT1_23840
if 
  $cat_counter == 1
goto_if_false @CAT1_24292
switch_start 62@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CAT1_24278 {caseNum1} 0 {caseLabel1} @CAT1_23921 {caseNum2} 1 {caseLabel2} @CAT1_23980 {caseNum3} 2 {caseLabel3} @CAT1_24039 {caseNum4} 3 {caseLabel4} @CAT1_24098 {caseNum5} 4 {caseLabel5} @CAT1_24157 {caseNum6} 5 {caseLabel6} @CAT1_24216 {caseNum7} 6 {caseLabel7} @CAT1_24264

:CAT1_23921
set_var_text_label s$audio_string = 'CAT_HA'
set_var_int_to_constant $audio_sound_file = 2255
start_new_script @AUDIOL $catalina 0 1 2 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2319)
goto @CAT1_24278

:CAT1_23980
set_var_text_label s$audio_string = 'CAT_HB'
set_var_int_to_constant $audio_sound_file = 2319
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2320)
goto @CAT1_24278

:CAT1_24039
set_var_text_label s$audio_string = 'CAT_HC'
set_var_int_to_constant $audio_sound_file = 2320
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2321)
goto @CAT1_24278

:CAT1_24098
set_var_text_label s$audio_string = 'CAT_HD'
set_var_int_to_constant $audio_sound_file = 2321
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2256)
goto @CAT1_24278

:CAT1_24157
set_var_text_label s$audio_string = 'CAT_HE'
set_var_int_to_constant $audio_sound_file = 2256
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2257)
goto @CAT1_24278

:CAT1_24216
set_var_text_label s$audio_string = 'CAT_HF'
set_var_int_to_constant $audio_sound_file = 2257
start_new_script @AUDIOL $catalina 0 1 1 1 
goto @CAT1_24278

:CAT1_24264
151@ = 1
goto @CAT1_24278

:CAT1_24278
62@ += 1
TIMERA = 0

:CAT1_24292
if 
  $cat_counter == 2
goto_if_false @CAT1_24567
switch_start 62@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CAT1_24553 {caseNum1} 0 {caseLabel1} @CAT1_24373 {caseNum2} 1 {caseLabel2} @CAT1_24432 {caseNum3} 2 {caseLabel3} @CAT1_24491 {caseNum4} 3 {caseLabel4} @CAT1_24539 {caseNum5} -1 {caseLabel5} @CAT1_24553 {caseNum6} -1 {caseLabel6} @CAT1_24553 {caseNum7} -1 {caseLabel7} @CAT1_24553

:CAT1_24373
set_var_text_label s$audio_string = 'CAT_MA'
set_var_int_to_constant $audio_sound_file = 2273
start_new_script @AUDIOL $catalina 0 1 2 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2274)
goto @CAT1_24553

:CAT1_24432
set_var_text_label s$audio_string = 'CAT_MB'
set_var_int_to_constant $audio_sound_file = 2274
start_new_script @AUDIOL $catalina 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2275)
goto @CAT1_24553

:CAT1_24491
set_var_text_label s$audio_string = 'CAT_MC'
set_var_int_to_constant $audio_sound_file = 2275
start_new_script @AUDIOL $catalina 0 1 2 1 
goto @CAT1_24553

:CAT1_24539
151@ = 1
goto @CAT1_24553

:CAT1_24553
62@ += 1
TIMERA = 0

:CAT1_24567
if 
  $cat_counter == 3
goto_if_false @CAT1_25019
switch_start 62@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CAT1_25005 {caseNum1} 0 {caseLabel1} @CAT1_24648 {caseNum2} 1 {caseLabel2} @CAT1_24707 {caseNum3} 2 {caseLabel3} @CAT1_24766 {caseNum4} 3 {caseLabel4} @CAT1_24825 {caseNum5} 4 {caseLabel5} @CAT1_24884 {caseNum6} 5 {caseLabel6} @CAT1_24943 {caseNum7} 6 {caseLabel7} @CAT1_24991

:CAT1_24648
set_var_text_label s$audio_string = 'CAT_PA'
set_var_int_to_constant $audio_sound_file = 2286
start_new_script @AUDIOL $catalina 0 1 2 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2335)
goto @CAT1_25005

:CAT1_24707
set_var_text_label s$audio_string = 'CAT_PB'
set_var_int_to_constant $audio_sound_file = 2335
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2287)
goto @CAT1_25005

:CAT1_24766
set_var_text_label s$audio_string = 'CAT_PC'
set_var_int_to_constant $audio_sound_file = 2287
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2288)
goto @CAT1_25005

:CAT1_24825
set_var_text_label s$audio_string = 'CAT_PD'
set_var_int_to_constant $audio_sound_file = 2288
start_new_script @AUDIOL $catalina 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 2289)
goto @CAT1_25005

:CAT1_24884
set_var_text_label s$audio_string = 'CAT_PE'
set_var_int_to_constant $audio_sound_file = 2289
start_new_script @AUDIOL $catalina 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2290)
goto @CAT1_25005

:CAT1_24943
set_var_text_label s$audio_string = 'CAT_PF'
set_var_int_to_constant $audio_sound_file = 2290
start_new_script @AUDIOL $catalina 0 1 1 1 
goto @CAT1_25005

:CAT1_24991
151@ = 1
goto @CAT1_25005

:CAT1_25005
62@ += 1
TIMERA = 0

:CAT1_25019
goto @CAT1_25143

:CAT1_25026
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_25136
if 
  152@ == 0
goto_if_false @CAT1_25136
Char.ClearLookAt($catalina)
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, 869.0271, -28.2591, 62.1893, MoveState.Walk, 20000)
Task.GoStraightToCoord(-1, 870.2891, -25.0424, 62.9858, MoveState.Walk, 5000)
Sequence.Close(49@)
Char.PerformSequence($catalina, 49@)
Sequence.Clear(49@)

:CAT1_25136
35@ += 1

:CAT1_25143
if 
  35@ == 5
goto_if_false @CAT1_25314
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_25227
43@ = Char.GetScriptTaskStatus($catalina, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @CAT1_25220
43@ = 1
goto @CAT1_25227

:CAT1_25220
43@ = 0

:CAT1_25227
if 
  TIMERA > 10000
goto_if_false @CAT1_25253
43@ = 1

:CAT1_25253
if 
  43@ == 1
goto_if_false @CAT1_25314
Camera.SetBehindPlayer
Camera.RestoreJumpcut
if 
  Char.DoesExist($catalina)
goto_if_false @CAT1_25296
Char.Delete($catalina)

:CAT1_25296
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
36@ = 1

:CAT1_25314
return 

:CAT1_25316
43@ = Streaming.GetAreaVisible()
if 
  43@ <> 0
goto_if_false @CAT1_25389
if 
  125@ == 0
goto_if_false @CAT1_25382
set_lvar_float_to_lvar_float 126@ = 133@
133@ = 0.0
125@ = 1

:CAT1_25382
goto @CAT1_25422

:CAT1_25389
if 
  125@ == 1
goto_if_false @CAT1_25422
set_lvar_float_to_lvar_float 133@ = 126@
125@ = 0

:CAT1_25422
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT1_25609
if 
  not Car.IsDead(78@)
goto_if_false @CAT1_25594
if 
  not Char.IsInCar($scplayer, 78@)
goto_if_false @CAT1_25587
43@ = 0
44@ = 0

:CAT1_25487
if 
  4 > 43@
goto_if_false @CAT1_25556
if 
  is_int_lvar_equal_to_int_lvar 78@ == 79@(43@,4i)
goto_if_false @CAT1_25542
44@ = 1
43@ = 4

:CAT1_25542
43@ += 1
goto @CAT1_25487

:CAT1_25556
if 
  44@ == 1
goto_if_false @CAT1_25579
Car.MarkAsNoLongerNeeded(78@)

:CAT1_25579
78@ = Char.StoreCarIsIn($scplayer)

:CAT1_25587
goto @CAT1_25602

:CAT1_25594
78@ = Char.StoreCarIsIn($scplayer)

:CAT1_25602
goto @CAT1_25609

:CAT1_25609
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_25900
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  125@ == 0
goto_if_false @CAT1_25900
if 
  98@ == 0
goto_if_false @CAT1_25900
if 
  99@ == 1
goto_if_false @CAT1_25777
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT1_25770
Text.Print('LEFTC', 4000, 1)
if 
  not Blip.DoesExist(87@)
goto_if_false @CAT1_25749
87@ = Blip.AddForChar($catalina)
Blip.SetAsFriendly(87@, True)

:CAT1_25749
64@ = 1
65@ = 0
99@ = 0

:CAT1_25770
goto @CAT1_25900

:CAT1_25777
if 
  Char.LocateAnyMeansChar3D($catalina, $scplayer, 10.0, 10.0, 10.0, False)
goto_if_false @CAT1_25900
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT1_25893
if 
  Blip.DoesExist(87@)
goto_if_false @CAT1_25853
Blip.Remove(87@)

:CAT1_25853
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $catalina)
Char.SetDrownsInWater($catalina, False)
99@ = 1
64@ = 0
goto @CAT1_25900

:CAT1_25893
99@ = 1

:CAT1_25900
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_26018
if 
  not Char.IsInAnyCar($catalina)
goto_if_false @CAT1_25970
if 
  not Blip.DoesExist(87@)
goto_if_false @CAT1_25963
87@ = Blip.AddForChar($catalina)
Blip.SetAsFriendly(87@, True)

:CAT1_25963
goto @CAT1_26018

:CAT1_25970
if 
  Blip.DoesExist(87@)
goto_if_false @CAT1_26018
$car = Char.StoreCarIsInNoSave($catalina)
if 
  Char.IsInCar($scplayer, $car)
goto_if_false @CAT1_26018
Blip.Remove(87@)

:CAT1_26018
if 
  Char.DoesExist($catalina)
goto_if_false @CAT1_26073
if 
  Char.IsDead($catalina)
goto_if_false @CAT1_26073
Text.PrintNow('LOSE2', 5000, 1)
37@ = 1

:CAT1_26073
if 
  125@ == 0
goto_if_false @CAT1_26607
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_26607
if and
  Char.HasBeenDamagedByChar($catalina, $scplayer)
  $audio_line_is_active == 0
goto_if_false @CAT1_26607
153@ += 1
if 
  153@ > 9
goto_if_false @CAT1_26165
153@ = 0

:CAT1_26165
switch_start 153@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @CAT1_26583 {caseNum1} 0 {caseLabel1} @CAT1_26293 {caseNum2} 1 {caseLabel2} @CAT1_26322 {caseNum3} 2 {caseLabel3} @CAT1_26351 {caseNum4} 3 {caseLabel4} @CAT1_26380 {caseNum5} 4 {caseLabel5} @CAT1_26409 {caseNum6} 5 {caseLabel6} @CAT1_26438 {caseNum7} 6 {caseLabel7} @CAT1_26467
switch_continued 7 {caseLabel1} @CAT1_26496 {caseNum2} 8 {caseLabel2} @CAT1_26525 {caseNum3} 9 {caseLabel3} @CAT1_26554 {caseNum4} -1 {caseLabel4} @CAT1_26583 {caseNum5} -1 {caseLabel5} @CAT1_26583 {caseNum6} -1 {caseLabel6} @CAT1_26583 {caseNum7} -1 {caseLabel7} @CAT1_26583 {caseNum8} -1 {caseLabel8} @CAT1_26583 {caseNum9} -1 {caseLabel9} @CAT1_26583

:CAT1_26293
set_var_text_label s$audio_string = 'CATX_UA'
set_var_int_to_constant $audio_sound_file = 12689
goto @CAT1_26583

:CAT1_26322
set_var_text_label s$audio_string = 'CATX_UB'
set_var_int_to_constant $audio_sound_file = 12690
goto @CAT1_26583

:CAT1_26351
set_var_text_label s$audio_string = 'CATX_UC'
set_var_int_to_constant $audio_sound_file = 12691
goto @CAT1_26583

:CAT1_26380
set_var_text_label s$audio_string = 'CATX_UD'
set_var_int_to_constant $audio_sound_file = 12692
goto @CAT1_26583

:CAT1_26409
set_var_text_label s$audio_string = 'CATX_UE'
set_var_int_to_constant $audio_sound_file = 12693
goto @CAT1_26583

:CAT1_26438
set_var_text_label s$audio_string = 'CATX_UF'
set_var_int_to_constant $audio_sound_file = 12694
goto @CAT1_26583

:CAT1_26467
set_var_text_label s$audio_string = 'CATX_UG'
set_var_int_to_constant $audio_sound_file = 12695
goto @CAT1_26583

:CAT1_26496
set_var_text_label s$audio_string = 'CATX_UH'
set_var_int_to_constant $audio_sound_file = 12696
goto @CAT1_26583

:CAT1_26525
set_var_text_label s$audio_string = 'CATX_UJ'
set_var_int_to_constant $audio_sound_file = 12697
goto @CAT1_26583

:CAT1_26554
set_var_text_label s$audio_string = 'CATX_UK'
set_var_int_to_constant $audio_sound_file = 12698
goto @CAT1_26583

:CAT1_26583
start_new_script @AUDIOL $catalina 0 0 1 0 
Char.ClearLastDamageEntity($catalina)

:CAT1_26607
return 
if 
  117@ == 0
goto_if_false @CAT1_26675
143@ += 0.001
if 
  143@ > 0.03
goto_if_false @CAT1_26668
143@ = 0.03

:CAT1_26668
goto @CAT1_26716

:CAT1_26675
143@ += -0.001
if 
  0.0 > 143@
goto_if_false @CAT1_26716
143@ = 0.0

:CAT1_26716
144@ += 0.005
if 
  144@ > 0.1
goto_if_false @CAT1_26757
144@ = 0.1

:CAT1_26757
156@ = 261.4119
157@ = -78.5511
158@ = 2.3102
set_lvar_float_to_lvar_float 159@ = 134@
set_lvar_float_to_lvar_float 160@ = 135@
set_lvar_float_to_lvar_float 161@ = 136@
set_lvar_float_to_lvar_float 162@ = 143@
gosub @CAT1_27217
if 
  47@ == 99.9
goto_if_false @CAT1_26872
if 
  117@ == 0
goto_if_false @CAT1_26872
117@ = 1

:CAT1_26872
set_lvar_float_to_lvar_float 134@ = 159@
set_lvar_float_to_lvar_float 135@ = 160@
set_lvar_float_to_lvar_float 136@ = 161@
set_lvar_float_to_lvar_float 156@ = 140@
set_lvar_float_to_lvar_float 157@ = 141@
set_lvar_float_to_lvar_float 158@ = 142@
set_lvar_float_to_lvar_float 159@ = 137@
set_lvar_float_to_lvar_float 160@ = 138@
set_lvar_float_to_lvar_float 161@ = 139@
set_lvar_float_to_lvar_float 162@ = 144@
gosub @CAT1_27217
if 
  47@ == 99.9
goto_if_false @CAT1_27005
if 
  118@ == 0
goto_if_false @CAT1_27005
118@ = 1

:CAT1_27005
set_lvar_float_to_lvar_float 137@ = 159@
set_lvar_float_to_lvar_float 138@ = 160@
set_lvar_float_to_lvar_float 139@ = 161@
if 
  69@ == 1
goto_if_false @CAT1_27215
set_lvar_float_to_lvar_float 56@ = 137@
56@ -= 0.5
set_lvar_float_to_lvar_float 59@ = 137@
59@ += 0.5
set_lvar_float_to_lvar_float 57@ = 138@
57@ -= 0.5
set_lvar_float_to_lvar_float 60@ = 138@
60@ += 0.5
set_lvar_float_to_lvar_float 58@ = 139@
58@ -= 0.5
set_lvar_float_to_lvar_float 61@ = 139@
61@ += 0.5
Debugger.Line(56@, 138@, 139@, 59@, 138@, 139@)
Debugger.Line(137@, 57@, 139@, 137@, 60@, 139@)
Debugger.Line(137@, 138@, 58@, 137@, 138@, 61@)

:CAT1_27215
return 

:CAT1_27217
set_var_float_to_lvar_float $x = 156@
sub_float_lvar_from_float_var $x -= 159@
set_var_float_to_lvar_float $y = 157@
sub_float_lvar_from_float_var $y -= 160@
set_var_float_to_lvar_float $z = 158@
sub_float_lvar_from_float_var $z -= 161@
46@ = Math.GetDistanceBetweenCoords3D(159@, 160@, 161@, 156@, 157@, 158@)
set_lvar_float_to_lvar_float 47@ = 162@
47@ *= 20.0
if 
  is_float_lvar_greater_than_float_lvar 47@ > 46@
goto_if_false @CAT1_27335
47@ = 99.9

:CAT1_27335
if 
  is_float_lvar_greater_than_float_lvar 46@ > 162@
goto_if_false @CAT1_27426
div_float_var_by_float_lvar $x /= 46@
div_float_var_by_float_lvar $y /= 46@
div_float_var_by_float_lvar $z /= 46@
mult_float_var_by_float_lvar $x *= 162@
mult_float_var_by_float_lvar $y *= 162@
mult_float_var_by_float_lvar $z *= 162@
add_float_var_to_float_lvar 159@ += $x
add_float_var_to_float_lvar 160@ += $y
add_float_var_to_float_lvar 161@ += $z

:CAT1_27426
return 

:CAT1_27428
if 
  not Car.IsDead(79@(163@,4i))
goto_if_false @CAT1_28490
if 
  not Char.IsDead(72@(163@,4i))
goto_if_false @CAT1_28447
if 
  Char.IsInCar(72@(163@,4i), 79@(163@,4i))
goto_if_false @CAT1_28378
if 
  112@(163@,3i) == 1
goto_if_false @CAT1_27557
if 
  Car.IsPlaybackGoingOn(79@(163@,4i))
goto_if_false @CAT1_27557
Car.UnpausePlayback(79@(163@,4i))
112@(163@,3i) = 0

:CAT1_27557
165@ = 0.0
$x, $y, $z = Car.GetCoordinates(79@(163@,4i))
56@, 57@, 58@ = Char.GetCoordinates($scplayer)
if 
  109@(163@,3i) == 0
goto_if_false @CAT1_27684
if 
  Car.Locate3D(79@(163@,4i), 2711.119, -53.5082, 39.4695, 20.0, 20.0, 5.0, False)
goto_if_false @CAT1_27684
109@(163@,3i) = 1

:CAT1_27684
130@(163@,3f) = Math.GetDistanceBetweenCoords2D($x, $y, 56@, 57@)
if 
  109@(163@,3i) == 0
goto_if_false @CAT1_27842
if 
  is_float_lvar_greater_than_float_var 56@ > $x
goto_if_false @CAT1_27835
165@ = 1.5
if 
  130@(163@,3f) > 100.0
goto_if_false @CAT1_27835
if 
  not Car.IsOnScreen(79@(163@,4i))
goto_if_false @CAT1_27835
if 
  Car.IsPlaybackGoingOn(79@(163@,4i))
goto_if_false @CAT1_27835
Car.SkipInPlayback(79@(163@,4i), 1.0)

:CAT1_27835
goto @CAT1_27950

:CAT1_27842
if 
  is_float_var_greater_than_float_lvar $y > 57@
goto_if_false @CAT1_27950
165@ = 1.5
if 
  130@(163@,3f) > 100.0
goto_if_false @CAT1_27950
if 
  not Car.IsOnScreen(79@(163@,4i))
goto_if_false @CAT1_27950
if 
  Car.IsPlaybackGoingOn(79@(163@,4i))
goto_if_false @CAT1_27950
Car.SkipInPlayback(79@(163@,4i), 1.0)

:CAT1_27950
if 
  165@ == 0.0
goto_if_false @CAT1_28114
if 
  30.0 > 130@(163@,3f)
goto_if_false @CAT1_28013
165@ = 1.0
goto @CAT1_28114

:CAT1_28013
set_lvar_float_to_lvar_float 46@ = 130@(163@,3f)
if 
  46@ > 200.0
goto_if_false @CAT1_28056
46@ = 200.0

:CAT1_28056
46@ -= 30.0
46@ /= 170.0
165@ = 1.0
sub_float_lvar_from_float_lvar 165@ -= 46@
165@ *= 0.8
165@ += 0.2

:CAT1_28114
mult_float_lvar_by_float_lvar 165@ *= 133@
if 
  Car.IsInArea2D(79@(163@,4i), 1940.82, 72.1365, 2145.438, 140.5141, False)
goto_if_false @CAT1_28174
165@ = 2.5

:CAT1_28174
if 
  0.1 > 165@
goto_if_false @CAT1_28205
165@ = 0.1

:CAT1_28205
if 
  Car.IsPlaybackGoingOn(79@(163@,4i))
goto_if_false @CAT1_28237
Car.SetPlaybackSpeed(79@(163@,4i), 165@)

:CAT1_28237
if 
  Car.IsPlaybackGoingOn(79@(163@,4i))
goto_if_false @CAT1_28371
if 
  Car.DoesHaveStuckCarCheck(79@(163@,4i))
goto_if_false @CAT1_28371
if 
  StuckCarCheck.IsCarStuck(79@(163@,4i))
goto_if_false @CAT1_28371
if 
  not Car.IsOnScreen(79@(163@,4i))
goto_if_false @CAT1_28371
if 
  not Char.LocateAnyMeansCar3D($scplayer, 79@(163@,4i), 40.0, 40.0, 5.0, False)
goto_if_false @CAT1_28371
Car.SkipInPlayback(79@(163@,4i), 0.1)

:CAT1_28371
goto @CAT1_28440

:CAT1_28378
if 
  Car.IsPlaybackGoingOn(79@(163@,4i))
goto_if_false @CAT1_28440
if 
  112@(163@,3i) == 0
goto_if_false @CAT1_28440
Car.PausePlayback(79@(163@,4i))
112@(163@,3i) = 1

:CAT1_28440
goto @CAT1_28490

:CAT1_28447
if 
  Car.IsPlaybackGoingOn(79@(163@,4i))
goto_if_false @CAT1_28476
Car.StopPlayback(79@(163@,4i))

:CAT1_28476
130@(163@,3f) = 0.0

:CAT1_28490
return 

:CAT1_28492
if 
  65@ > 10000
goto_if_false @CAT1_32078
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  125@ == 0
goto_if_false @CAT1_29770
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_29770
if 
  not Char.IsShooting($catalina)
goto_if_false @CAT1_29770
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT1_29770
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  Char.IsInCar($catalina, $car)
goto_if_false @CAT1_29770
43@ = 0
44@ = 0

:CAT1_28622
if 
  3 > 43@
goto_if_false @CAT1_28681
if 
  not Char.IsDead(72@(43@,4i))
goto_if_false @CAT1_28667
44@ += 1

:CAT1_28667
43@ += 1
goto @CAT1_28622

:CAT1_28681
43@ = 0
if 
  not Char.IsDead(72@)
goto_if_false @CAT1_28732
if 
  50.0 > 130@
goto_if_false @CAT1_28732
43@ += 1

:CAT1_28732
if 
  not Char.IsDead(73@)
goto_if_false @CAT1_28776
if 
  50.0 > 131@
goto_if_false @CAT1_28776
43@ += 1

:CAT1_28776
if 
  not Char.IsDead(74@)
goto_if_false @CAT1_28820
if 
  50.0 > 132@
goto_if_false @CAT1_28820
43@ += 1

:CAT1_28820
if and
  Char.IsDead(72@)
  Char.IsDead(73@)
  Char.IsDead(74@)
goto_if_false @CAT1_28853
43@ += 1

:CAT1_28853
if 
  43@ == 0
goto_if_false @CAT1_29770
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_29770
166@ += 1
if 
  166@ > 8
goto_if_false @CAT1_28921
166@ = 0

:CAT1_28921
switch_start 166@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CAT1_29763 {caseNum1} 0 {caseLabel1} @CAT1_29049 {caseNum2} 1 {caseLabel2} @CAT1_29144 {caseNum3} 2 {caseLabel3} @CAT1_29192 {caseNum4} 3 {caseLabel4} @CAT1_29240 {caseNum5} 4 {caseLabel5} @CAT1_29335 {caseNum6} 5 {caseLabel6} @CAT1_29430 {caseNum7} 6 {caseLabel7} @CAT1_29525
switch_continued 7 {caseLabel1} @CAT1_29620 {caseNum2} 8 {caseLabel2} @CAT1_29715 {caseNum3} -1 {caseLabel3} @CAT1_29763 {caseNum4} -1 {caseLabel4} @CAT1_29763 {caseNum5} -1 {caseLabel5} @CAT1_29763 {caseNum6} -1 {caseLabel6} @CAT1_29763 {caseNum7} -1 {caseLabel7} @CAT1_29763 {caseNum8} -1 {caseLabel8} @CAT1_29763 {caseNum9} -1 {caseLabel9} @CAT1_29763

:CAT1_29049
if 
  44@ > 1
goto_if_false @CAT1_29096
set_var_text_label s$audio_string = 'CAT1_CA'
set_var_int_to_constant $audio_sound_file = 2407
goto @CAT1_29118

:CAT1_29096
set_var_text_label s$audio_string = 'CATX_AA'
set_var_int_to_constant $audio_sound_file = 12600

:CAT1_29118
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29144
set_var_text_label s$audio_string = 'CAT1_CB'
set_var_int_to_constant $audio_sound_file = 2408
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29192
set_var_text_label s$audio_string = 'CAT1_CC'
set_var_int_to_constant $audio_sound_file = 2409
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29240
if 
  44@ > 1
goto_if_false @CAT1_29287
set_var_text_label s$audio_string = 'CAT1_CD'
set_var_int_to_constant $audio_sound_file = 2410
goto @CAT1_29309

:CAT1_29287
set_var_text_label s$audio_string = 'CATX_AD'
set_var_int_to_constant $audio_sound_file = 12603

:CAT1_29309
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29335
if 
  44@ > 1
goto_if_false @CAT1_29382
set_var_text_label s$audio_string = 'CAT1_CE'
set_var_int_to_constant $audio_sound_file = 2411
goto @CAT1_29404

:CAT1_29382
set_var_text_label s$audio_string = 'CATX_AG'
set_var_int_to_constant $audio_sound_file = 12606

:CAT1_29404
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29430
if 
  44@ > 1
goto_if_false @CAT1_29477
set_var_text_label s$audio_string = 'CAT1_DA'
set_var_int_to_constant $audio_sound_file = 2412
goto @CAT1_29499

:CAT1_29477
set_var_text_label s$audio_string = 'CATX_AH'
set_var_int_to_constant $audio_sound_file = 12607

:CAT1_29499
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29525
if 
  44@ > 1
goto_if_false @CAT1_29572
set_var_text_label s$audio_string = 'CAT1_DB'
set_var_int_to_constant $audio_sound_file = 2413
goto @CAT1_29594

:CAT1_29572
set_var_text_label s$audio_string = 'CATX_AC'
set_var_int_to_constant $audio_sound_file = 12602

:CAT1_29594
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29620
if 
  44@ > 1
goto_if_false @CAT1_29667
set_var_text_label s$audio_string = 'CAT1_DC'
set_var_int_to_constant $audio_sound_file = 2414
goto @CAT1_29689

:CAT1_29667
set_var_text_label s$audio_string = 'CATX_AB'
set_var_int_to_constant $audio_sound_file = 12601

:CAT1_29689
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29715
set_var_text_label s$audio_string = 'CAT1_DD'
set_var_int_to_constant $audio_sound_file = 2415
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29763

:CAT1_29763
65@ = 0

:CAT1_29770
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  125@ == 0
goto_if_false @CAT1_30486
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_30486
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_30486
if 
  not Char.IsShooting($catalina)
goto_if_false @CAT1_30486
if or
  not Char.IsInAnyCar($scplayer)
  not Char.IsInAnyCar($catalina)
goto_if_false @CAT1_30486
if 
  not Char.LocateAnyMeansChar3D($catalina, $scplayer, 15.0, 15.0, 5.0, False)
goto_if_false @CAT1_30486
43@ = Math.RandomIntInRange(0, 8)
if 
  is_int_lvar_equal_to_int_lvar 43@ == 169@
goto_if_false @CAT1_29959
43@ += 1
if 
  43@ > 7
goto_if_false @CAT1_29959
43@ = 0

:CAT1_29959
set_lvar_int_to_lvar_int 169@ = 43@
switch_start 43@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @CAT1_30479 {caseNum1} 0 {caseLabel1} @CAT1_30095 {caseNum2} 1 {caseLabel2} @CAT1_30143 {caseNum3} 2 {caseLabel3} @CAT1_30191 {caseNum4} 3 {caseLabel4} @CAT1_30239 {caseNum5} 4 {caseLabel5} @CAT1_30287 {caseNum6} 5 {caseLabel6} @CAT1_30335 {caseNum7} 6 {caseLabel7} @CAT1_30383
switch_continued 7 {caseLabel1} @CAT1_30431 {caseNum2} -1 {caseLabel2} @CAT1_30479 {caseNum3} -1 {caseLabel3} @CAT1_30479 {caseNum4} -1 {caseLabel4} @CAT1_30479 {caseNum5} -1 {caseLabel5} @CAT1_30479 {caseNum6} -1 {caseLabel6} @CAT1_30479 {caseNum7} -1 {caseLabel7} @CAT1_30479 {caseNum8} -1 {caseLabel8} @CAT1_30479 {caseNum9} -1 {caseLabel9} @CAT1_30479

:CAT1_30095
set_var_text_label s$audio_string = 'CATX_JA'
set_var_int_to_constant $audio_sound_file = 12626
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30143
set_var_text_label s$audio_string = 'CATX_JB'
set_var_int_to_constant $audio_sound_file = 12627
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30191
set_var_text_label s$audio_string = 'CATX_JC'
set_var_int_to_constant $audio_sound_file = 12628
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30239
set_var_text_label s$audio_string = 'CATX_JD'
set_var_int_to_constant $audio_sound_file = 12629
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30287
set_var_text_label s$audio_string = 'CATX_JE'
set_var_int_to_constant $audio_sound_file = 12630
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30335
set_var_text_label s$audio_string = 'CATX_JF'
set_var_int_to_constant $audio_sound_file = 12631
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30383
set_var_text_label s$audio_string = 'CATX_JG'
set_var_int_to_constant $audio_sound_file = 12632
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30431
set_var_text_label s$audio_string = 'CATX_JH'
set_var_int_to_constant $audio_sound_file = 12633
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30479

:CAT1_30479
65@ = 0

:CAT1_30486
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  125@ == 0
goto_if_false @CAT1_32078
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_32078
if 
  not Char.IsDead($catalina)
goto_if_false @CAT1_32078
if 
  Char.IsShooting($catalina)
goto_if_false @CAT1_32078
if 
  Char.LocateAnyMeansChar3D($catalina, $scplayer, 2.0, 2.0, 2.0, False)
goto_if_false @CAT1_32078
43@ = 0

:CAT1_30601
if 
  4 > 43@
goto_if_false @CAT1_30667
170@ = Math.RandomIntInRange(0, 25)
if 
  5 > 170@
goto_if_false @CAT1_30653
43@ = 4

:CAT1_30653
43@ += 1
goto @CAT1_30601

:CAT1_30667
if 
  is_int_lvar_equal_to_int_lvar 170@ == 171@
goto_if_false @CAT1_30718
170@ += 1
if 
  170@ > 24
goto_if_false @CAT1_30718
170@ = 0

:CAT1_30718
set_lvar_int_to_lvar_int 171@ = 170@
switch_start 170@ {numCases} 25 {hasDefaultCase} 0 {defaultLabel} @CAT1_32071 {caseNum1} 0 {caseLabel1} @CAT1_30919 {caseNum2} 1 {caseLabel2} @CAT1_30919 {caseNum3} 2 {caseLabel3} @CAT1_30967 {caseNum4} 3 {caseLabel4} @CAT1_31015 {caseNum5} 4 {caseLabel5} @CAT1_31063 {caseNum6} 5 {caseLabel6} @CAT1_31111 {caseNum7} 6 {caseLabel7} @CAT1_31159
switch_continued 7 {caseLabel1} @CAT1_31207 {caseNum2} 8 {caseLabel2} @CAT1_31255 {caseNum3} 9 {caseLabel3} @CAT1_31303 {caseNum4} 10 {caseLabel4} @CAT1_31351 {caseNum5} 11 {caseLabel5} @CAT1_31399 {caseNum6} 12 {caseLabel6} @CAT1_31447 {caseNum7} 13 {caseLabel7} @CAT1_31495 {caseNum8} 14 {caseLabel8} @CAT1_31543 {caseNum9} 15 {caseLabel9} @CAT1_31591
switch_continued 16 {caseLabel1} @CAT1_31639 {caseNum2} 17 {caseLabel2} @CAT1_31687 {caseNum3} 18 {caseLabel3} @CAT1_31735 {caseNum4} 19 {caseLabel4} @CAT1_31783 {caseNum5} 20 {caseLabel5} @CAT1_31831 {caseNum6} 21 {caseLabel6} @CAT1_31879 {caseNum7} 22 {caseLabel7} @CAT1_31927 {caseNum8} 23 {caseLabel8} @CAT1_31975 {caseNum9} 24 {caseLabel9} @CAT1_32023

:CAT1_30919
set_var_text_label s$audio_string = 'CAT1_HA'
set_var_int_to_constant $audio_sound_file = 2432
start_new_script @AUDIOL $scplayer 0 0 1 0 
goto @CAT1_32071

:CAT1_30967
set_var_text_label s$audio_string = 'CAT1_HC'
set_var_int_to_constant $audio_sound_file = 2434
start_new_script @AUDIOL $scplayer 0 0 1 0 
goto @CAT1_32071

:CAT1_31015
set_var_text_label s$audio_string = 'CAT1_HD'
set_var_int_to_constant $audio_sound_file = 2435
start_new_script @AUDIOL $scplayer 0 0 1 0 
goto @CAT1_32071

:CAT1_31063
set_var_text_label s$audio_string = 'CAT1_HE'
set_var_int_to_constant $audio_sound_file = 2436
start_new_script @AUDIOL $scplayer 0 0 1 0 
goto @CAT1_32071

:CAT1_31111
set_var_text_label s$audio_string = 'CATX_TA'
set_var_int_to_constant $audio_sound_file = 12669
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31159
set_var_text_label s$audio_string = 'CATX_TB'
set_var_int_to_constant $audio_sound_file = 12670
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31207
set_var_text_label s$audio_string = 'CATX_TC'
set_var_int_to_constant $audio_sound_file = 12671
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31255
set_var_text_label s$audio_string = 'CATX_TD'
set_var_int_to_constant $audio_sound_file = 12672
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31303
set_var_text_label s$audio_string = 'CATX_TE'
set_var_int_to_constant $audio_sound_file = 12673
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31351
set_var_text_label s$audio_string = 'CATX_TF'
set_var_int_to_constant $audio_sound_file = 12674
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31399
set_var_text_label s$audio_string = 'CATX_TG'
set_var_int_to_constant $audio_sound_file = 12675
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31447
set_var_text_label s$audio_string = 'CATX_TH'
set_var_int_to_constant $audio_sound_file = 12676
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31495
set_var_text_label s$audio_string = 'CATX_TJ'
set_var_int_to_constant $audio_sound_file = 12677
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31543
set_var_text_label s$audio_string = 'CATX_TK'
set_var_int_to_constant $audio_sound_file = 12678
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31591
set_var_text_label s$audio_string = 'CATX_TL'
set_var_int_to_constant $audio_sound_file = 12679
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31639
set_var_text_label s$audio_string = 'CATX_TM'
set_var_int_to_constant $audio_sound_file = 12680
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31687
set_var_text_label s$audio_string = 'CATX_TN'
set_var_int_to_constant $audio_sound_file = 12681
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31735
set_var_text_label s$audio_string = 'CATX_TO'
set_var_int_to_constant $audio_sound_file = 12682
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31783
set_var_text_label s$audio_string = 'CATX_TP'
set_var_int_to_constant $audio_sound_file = 12683
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31831
set_var_text_label s$audio_string = 'CATX_TQ'
set_var_int_to_constant $audio_sound_file = 12684
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31879
set_var_text_label s$audio_string = 'CATX_TR'
set_var_int_to_constant $audio_sound_file = 12685
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31927
set_var_text_label s$audio_string = 'CATX_TS'
set_var_int_to_constant $audio_sound_file = 12686
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_31975
set_var_text_label s$audio_string = 'CATX_TT'
set_var_int_to_constant $audio_sound_file = 12687
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_32023
set_var_text_label s$audio_string = 'CATX_TU'
set_var_int_to_constant $audio_sound_file = 12688
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32071

:CAT1_32071
65@ = 0

:CAT1_32078
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  125@ == 0
goto_if_false @CAT1_32426
if 
  64@ == 1
goto_if_false @CAT1_32426
if 
  65@ > 4000
goto_if_false @CAT1_32426
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_32426
43@ = Math.RandomIntInRange(0, 4)
switch_start 43@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CAT1_32419 {caseNum1} 0 {caseLabel1} @CAT1_32227 {caseNum2} 1 {caseLabel2} @CAT1_32275 {caseNum3} 2 {caseLabel3} @CAT1_32323 {caseNum4} 3 {caseLabel4} @CAT1_32371 {caseNum5} -1 {caseLabel5} @CAT1_32419 {caseNum6} -1 {caseLabel6} @CAT1_32419 {caseNum7} -1 {caseLabel7} @CAT1_32419

:CAT1_32227
set_var_text_label s$audio_string = 'CAT1_GA'
set_var_int_to_constant $audio_sound_file = 2422
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32419

:CAT1_32275
set_var_text_label s$audio_string = 'CAT1_GB'
set_var_int_to_constant $audio_sound_file = 2423
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32419

:CAT1_32323
set_var_text_label s$audio_string = 'CAT1_GC'
set_var_int_to_constant $audio_sound_file = 2424
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32419

:CAT1_32371
set_var_text_label s$audio_string = 'CAT1_GD'
set_var_int_to_constant $audio_sound_file = 2425
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32419

:CAT1_32419
64@ = 2

:CAT1_32426
return 

:CAT1_32428
34@ += 1
35@ = 0
62@ = 0
63@ = 0
65@ = 0
66@ = 0
TIMERA = 0
TIMERB = 0
return 

:CAT1_32486
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:CAT1_32504
$flag_cat_mission1_passed = 1
Text.PrintWithNumberBig('M_PASS', 1000, 5000, TextStyle.Middle)
Player.AddScore($player1, 1000)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Stat.RegisterMissionPassed('CAT_1')
Stat.PlayerMadeProgress(1)
if 
  $cat_otb_banter == 1
goto_if_false @CAT1_32587
$cat_otb_banter = 2

:CAT1_32587
if 
  $cat_liquor_banter == 1
goto_if_false @CAT1_32612
$cat_liquor_banter = 2

:CAT1_32612
$cat_getaway_dialogue += 1
Stat.SetInt(StatId.PassedCat1, 1)
$cat_counter += 1
return 

:CAT1_32635
Hud.SwitchWidescreen(False)
if 
  Player.IsPlaying($player1)
goto_if_false @CAT1_32669
Player.SetGroupRecruitment($player1, True)
Player.SetGroupToFollowAlways($player1, False)

:CAT1_32669
Game.SetCreateRandomGangMembers(True)
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Blip.Remove(87@)
Blip.Remove(88@)
Blip.Remove(89@)
Blip.Remove(90@)
Blip.Remove(91@)
Blip.Remove(92@)
Blip.Remove(93@)
Blip.Remove(94@)
Pickup.Remove(95@)
Pickup.Remove(96@)
Pickup.Remove(97@)
DecisionMaker.Remove(67@)
DecisionMaker.Remove(68@)
DecisionMaker.Remove(146@)
DecisionMaker.Remove(145@)
Streaming.UnloadSpecialCharacter(5)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 42---------------
// Originally: Small Town Bank

:CAT2
gosub @CAT2_36
if 
  has_deatharrest_been_executed 
goto_if_false @CAT2_27
gosub @CAT2_30119

:CAT2_27
gosub @CAT2_30482
terminate_this_script 

:CAT2_36
638@ = 1
37@ = DecisionMakerGroup.Load(0)
DecisionMakerGroup.ClearEventResponse(37@, 9)
DecisionMakerGroup.ClearEventResponse(37@, 41)
DecisionMakerGroup.ClearEventResponse(37@, 31)
DecisionMakerGroup.ClearEventResponse(37@, 73)
DecisionMakerGroup.ClearEventResponse(37@, 72)
DecisionMakerGroup.ClearEventResponse(37@, 36)
DecisionMakerGroup.AddEventResponse(37@, 36, 1516, 0.0, 100.0, 0.0, 0.0, True, False)
38@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.AddEventResponse(38@, 36, 1000, 0.0, 100.0, 0.0, 0.0, True, True)
36@ = 32
$onmission = 1
Player.AlterWantedLevel($player1, 0)
if 
  $onmission == 69
goto_if_false @CAT2_256
add_continuous_sound 2320.043 {_p2} -8.5501 {_p3} 27.2047 {_p4} 65535 {_p5} 82@
298@ = Char.Create(PedType.Special, 294, 682.8292, -477.8332, 15.3359)

:CAT2_256
script_name 'CAT2'
Camera.DoFade(800, Fade.Out)

:CAT2_274
if 
  Camera.GetFadingStatus
goto_if_false @CAT2_298
wait 0
goto @CAT2_274

:CAT2_298
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
if 
  Char.DoesExist($catalina)
goto_if_false @CAT2_333
Char.Delete($catalina)

:CAT2_333
Streaming.LoadSpecialCharacter(5, 'CAT')

:CAT2_346
if 
  not Streaming.HasSpecialCharacterLoaded(5)
goto_if_false @CAT2_385
wait 0
Streaming.LoadSpecialCharacter(5, 'CAT')
goto @CAT2_346

:CAT2_385
$catalina = Char.Create(PedType.Special, 294, 682.8292, -477.8332, 15.3359)
Streaming.UnloadSpecialCharacter(5)
Char.SetAnimGroup($catalina, "WOMAN")
Char.SetOnlyDamagedByPlayer($catalina, True)
Char.SetNeverTargeted($catalina, True)
Char.SetRelationship($catalina, RelationshipType.Respect, PedType.Player1)
Char.SetHealth($catalina, 100)
Char.SetSuffersCriticalHits($catalina, False)
World.ClearArea(2297.786, -16.8313, 26.2964, 20.0, True)
if 
  not Char.IsDead($scplayer)
goto_if_false @CAT2_739
if 
  Char.IsInAnyCar($catalina)
goto_if_false @CAT2_636
39@ = Char.StoreCarIsInNoSave($catalina)
if 
  Char.IsInCar($scplayer, 39@)
goto_if_false @CAT2_583
Car.SetCoordinates(39@, 2297.986, -14.0735, 25.3495)
Car.SetHeading(39@, 180.0)
goto @CAT2_629

:CAT2_583
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT2_629
Char.SetCoordinates($scplayer, 2297.786, -15.5166, 26.2964)
Char.SetHeading($scplayer, 180.0)

:CAT2_629
goto @CAT2_739

:CAT2_636
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT2_739
39@ = Char.StoreCarIsInNoSave($scplayer)
if 
  Char.IsInCar($scplayer, 39@)
goto_if_false @CAT2_709
Car.SetCoordinates(39@, 2297.986, -14.0735, 25.3495)
Car.SetHeading(39@, 180.0)

:CAT2_709
Char.SetCoordinates($scplayer, 2297.786, -15.5166, 26.2964)
Char.SetHeading($scplayer, 180.0)

:CAT2_739
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT2_782
Char.WarpFromCarToCoord($scplayer, 2297.786, -15.5166, 26.2964)
goto @CAT2_802

:CAT2_782
Char.SetCoordinates($scplayer, 2297.786, -15.5166, 26.2964)

:CAT2_802
Char.SetHeading($scplayer, 162.229)
Streaming.RequestModel(283)
Streaming.RequestModel(346)
Streaming.RequestModel(349)
Streaming.RequestCarRecording(123)
Streaming.RequestCarRecording(124)
Streaming.RequestModel(#KMB_ATM1)
Streaming.RequestModel(#KMB_ATM2)
Streaming.RequestModel(#KMB_ATM3)
Streaming.RequestModel(#MTSAFE)
Streaming.RequestModel(#CR_DOOR_01)
Streaming.RequestModel(#CR_DOOR_03)

:CAT2_863
if or
  not Streaming.HasModelLoaded(283)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(349)
  not Streaming.HasModelLoaded(#KMB_ATM1)
  not Streaming.HasModelLoaded(#KMB_ATM2)
  not Streaming.HasModelLoaded(#KMB_ATM3)
goto_if_false @CAT2_915
wait 0
goto @CAT2_863

:CAT2_915
if or
  not Streaming.HasCarRecordingBeenLoaded(124)
  not Streaming.HasCarRecordingBeenLoaded(123)
  not Streaming.HasModelLoaded(#MTSAFE)
  not Streaming.HasModelLoaded(#CR_DOOR_01)
  not Streaming.HasModelLoaded(#CR_DOOR_03)
goto_if_false @CAT2_958
wait 0
goto @CAT2_915

:CAT2_958
Text.LoadMissionText('CAT')
Streaming.RequestModel(71)
Streaming.RequestModel(240)
Streaming.RequestModel(76)
Streaming.RequestAnimation("ROB_BANK")
Streaming.LoadAllModelsNow

:CAT2_996
if or
  not Streaming.HasModelLoaded(71)
  not Streaming.HasModelLoaded(240)
  not Streaming.HasModelLoaded(76)
goto_if_false @CAT2_1031
wait 0
goto @CAT2_996

:CAT2_1031
if 
  not Streaming.HasAnimationLoaded("ROB_BANK")
goto_if_false @CAT2_1065
wait 0
goto @CAT2_1031

:CAT2_1065
if 
  not Player.IsPlaying($player1)
goto_if_false @CAT2_1092
wait 0
goto @CAT2_1065

:CAT2_1092
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 1826)
56@ = 0
57@ = 85.0
58@ = 100.0
59@ = 90.0
60@ = 95.0
61@ = Sequence.Open()
Task.ScratchHead(-1)
Task.ScratchHead(-1)
Sequence.Close(61@)
62@ = DecisionMakerChar.Copy(-1)
DecisionMakerChar.ClearEventResponse(62@, 31)
63@ = Char.Create(PedType.CivFemale, 76, 2318.492, -15.5635, 25.6913)
Char.SetHeading(63@, 95.2069)
Char.SetDecisionMaker(63@, 62@)
64@ = Char.Create(PedType.CivFemale, 76, 2318.473, -7.4565, 25.6913)
Streaming.MarkModelAsNoLongerNeeded(76)
Char.SetHeading(64@, 95.2069)
Char.SetDecisionMaker(64@, 62@)
65@ = Char.Create(PedType.CivMale, 240, 2311.509, -11.1779, 25.6987)
Char.SetHeading(65@, 176.6813)
Char.SetDecisionMaker(65@, 62@)
66@ = Char.Create(PedType.CivMale, 71, 2316.618, -12.83, 25.75)
Streaming.MarkModelAsNoLongerNeeded(71)
Char.SetHeading(66@, 90.0)
Char.SetDecisionMaker(66@, 62@)
Char.GiveWeapon(66@, WeaponType.Pistol, 9999)
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2299.895, -7.9983, 26.6055, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2299.998, -8.993, 26.6023, SwitchType.JumpCut)
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 3000
113@ = Object.CreateNoOffset(#KMB_ATM2, 2310.367, -17.0, 20.414)
114@ = Object.CreateNoOffset(#KMB_ATM2, 2313.689, -17.0, 20.414)
115@ = Object.CreateNoOffset(#KMB_ATM2, 2313.318, -0.1206, 20.414)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_1751
Char.RemoveFromGroup($catalina)
if 
  Char.IsInAnyCar($catalina)
goto_if_false @CAT2_1583
Char.WarpFromCarToCoord($catalina, 2300.743, -15.5274, 25.4844)
goto @CAT2_1603

:CAT2_1583
Char.SetCoordinates($catalina, 2301.743, -17.1274, 25.4844)

:CAT2_1603
71@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Shotgun)
if 
  71@ == 0
goto_if_false @CAT2_1647
Char.GiveWeapon($scplayer, WeaponType.Shotgun, 48)
goto @CAT2_1674

:CAT2_1647
if 
  48 > 71@
goto_if_false @CAT2_1674
Char.SetAmmo($scplayer, WeaponType.Shotgun, 48)

:CAT2_1674
Char.SetCurrentWeapon($scplayer, WeaponType.Shotgun)
Char.GiveWeapon($catalina, WeaponType.Shotgun, 9999)
Char.SetHeading($catalina, 329.4303)
Task.GoStraightToCoord($scplayer, 2307.802, -17.221, 25.7574, MoveState.Walk, 10000)
Task.GoStraightToCoord($catalina, 2312.426, -15.4762, 25.75, MoveState.Walk, 10000)

:CAT2_1751
Camera.DoFade(500, Fade.In)
Object.Delete($2661)
Object.Delete($2662)
560@ = 1
$game_timer = Clock.GetGameTimer()
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 3500
41@ = 1
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
68@ = -1
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)

:CAT2_1838
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CAT2_1860
goto @CAT2_30343

:CAT2_1860
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @CAT2_2049
$cat_counter = 2
56@ = 9
34@ = 1
41@ = 462
Char.SetCoordinates($scplayer, 857.4263, -29.5418, 62.1858)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_1960
Char.SetCoordinates($catalina, 858.4263, -29.5418, 62.1858)

:CAT2_1960
Streaming.RequestModel(402)

:CAT2_1965
if 
  not Streaming.HasModelLoaded(402)
goto_if_false @CAT2_1992
wait 0
goto @CAT2_1965

:CAT2_1992
69@ = Car.Create(402, 857.4263, -29.5418, 62.1858)
Char.WarpIntoCar($scplayer, 69@)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_2049
Char.WarpIntoCarAsPassenger($catalina, 69@, 0)

:CAT2_2049
wait 0
if 
  Char.IsDead($catalina)
goto_if_false @CAT2_2094
Text.ClearPrints
Text.Print('CAT2_A1', 5000, 1)
goto @CAT2_30119

:CAT2_2094
gosub @CAT2_31345
gosub @CAT2_31946
$game_timer = Clock.GetGameTimer()
if 
  not Player.IsPlaying($player1)
goto_if_false @CAT2_2136
goto @CAT2_30119

:CAT2_2136
if 
  Char.IsDead($catalina)
goto_if_false @CAT2_2159
goto @CAT2_30119

:CAT2_2159
if and
  9 > 41@
  41@ > -1
goto_if_false @CAT2_3231
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @CAT2_2243
if 
  68@ == 0
goto_if_false @CAT2_2236
Camera.DoFade(500, Fade.Out)
41@ = 0
68@ += 1

:CAT2_2236
goto @CAT2_2268

:CAT2_2243
if 
  68@ == -1
goto_if_false @CAT2_2268
68@ += 1

:CAT2_2268
if 
  68@ == 1
goto_if_false @CAT2_3231
if 
  not Camera.GetFadingStatus
goto_if_false @CAT2_3231
if and
  2 > 41@
  55@ == 0
goto_if_false @CAT2_2675
72@ = Object.CreateNoOffset(#KMB_ATM1, 2310.367, -17.0, 26.414)
Object.SetHeading(72@, 180.0)
Object.SetCollisionDamageEffect(72@, False)
73@ = Object.CreateNoOffset(#KMB_ATM1, 2313.689, -17.0, 26.414)
Object.SetHeading(73@, 180.0)
Object.SetCollisionDamageEffect(73@, False)
74@ = Object.CreateNoOffset(#KMB_ATM1, 2313.318, -0.1206, 26.414)
Object.SetCollisionDamageEffect(74@, False)
75@ = Object.CreateNoOffset(#MTSAFE, 2305.666, -4.7944, 25.65)
Object.SetHeading(75@, 90.0)
Object.SetCollisionDamageEffect(75@, False)
76@ = Object.CreateNoOffset(#KMB_ATM3, 2310.367, -17.0, 26.414)
Object.SetCollisionDamageEffect(76@, False)
Object.SetHeading(72@, 180.0)
77@ = Object.CreateNoOffset(#KMB_ATM3, 2313.689, -17.0, 26.414)
Object.SetCollisionDamageEffect(77@, False)
Object.SetHeading(73@, 180.0)
78@ = Object.CreateNoOffset(#KMB_ATM3, 2313.318, -0.1206, 26.414)
Object.SetCollisionDamageEffect(78@, False)
70@ = Object.CreateNoOffset(#CAT2_SAFE_COL, 2305.666, -4.7944, 25.65)
Object.SetHeading(70@, 90.0)
Object.SetHeading(75@, 90.0)
Object.SetHeading(76@, 180.0)
Object.SetHeading(77@, 180.0)
Object.SetCollision(72@, False)
Object.SetCollision(73@, False)
Object.SetCollision(74@, False)
55@ = 1

:CAT2_2675
71@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Shotgun)
if 
  71@ == 0
goto_if_false @CAT2_2719
Char.GiveWeapon($scplayer, WeaponType.Shotgun, 48)
goto @CAT2_2746

:CAT2_2719
if 
  48 > 71@
goto_if_false @CAT2_2746
Char.SetAmmo($scplayer, WeaponType.Shotgun, 48)

:CAT2_2746
Char.SetCurrentWeapon($scplayer, WeaponType.Shotgun)
Char.GiveWeapon($catalina, WeaponType.Shotgun, 9999)
Char.ClearTasks($scplayer)
Char.SetCoordinates($scplayer, 2312.578, -7.4347, 25.75)
Char.SetHeading($scplayer, 126.7479)
Char.SetCoordinates($catalina, 2306.666, -4.7944, 25.75)
Char.SetHeading($catalina, 90.0)
Char.ClearTasks($catalina)
Char.ClearTasksImmediately($catalina)
Task.PlayAnim($catalina, "CAT_SAFE_ROB", "ROB_BANK", 1000.0, True, False, False, False, -2)
Object.PlayAnim(75@, "CAT_SAFE_OPEN_O", "ROB_BANK", 1000.0, False, True)
if 
  not Char.IsDead(66@)
goto_if_false @CAT2_2989
Char.ClearTasksImmediately(66@)
Char.SetCoordinates(66@, 2310.546, -7.7439, 25.7422)
Char.SetHeading(66@, 281.4267)
Task.TurnCharToFaceChar(66@, $scplayer)
Char.FreezePosition(66@, True)

:CAT2_2989
if 
  not Char.IsDead(63@)
goto_if_false @CAT2_3055
Char.ClearTasksImmediately(63@)
Char.SetCoordinates(63@, 2311.597, -9.1847, 25.7422)
Char.SetHeading(63@, 314.501)
Task.TurnCharToFaceChar(63@, $scplayer)
Char.FreezePosition(63@, True)

:CAT2_3055
if 
  not Char.IsDead(64@)
goto_if_false @CAT2_3121
Char.ClearTasksImmediately(64@)
Char.SetCoordinates(64@, 2310.591, -9.3749, 25.7422)
Char.SetHeading(64@, 323.1424)
Task.TurnCharToFaceChar(64@, $scplayer)
Char.FreezePosition(64@, True)

:CAT2_3121
if 
  not Char.IsDead(65@)
goto_if_false @CAT2_3187
Char.ClearTasksImmediately(65@)
Char.SetCoordinates(65@, 2309.61, -8.5556, 25.7422)
Char.SetHeading(65@, 309.2547)
Task.TurnCharToFaceChar(65@, $scplayer)
Char.FreezePosition(65@, True)

:CAT2_3187
Camera.DoFade(500, Fade.In)
set_lvar_int_to_var_int 42@ = $game_timer
42@ -= 555
41@ = 9
559@ = 5
68@ += 1

:CAT2_3231
if 
  41@ == 1
goto_if_false @CAT2_4115
if and
  is_int_var_greater_than_int_lvar $game_timer > 42@
  55@ == 0
  560@ == 0
goto_if_false @CAT2_4115
560@ = 2
Text.ClearSmallPrints
World.ClearArea(2307.802, -17.221, 25.7574, 100.0, True)
Camera.SetFixedPosition(2308.396, -15.824, 27.666, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2309.273, -15.36, 27.5448, SwitchType.JumpCut)
72@ = Object.CreateNoOffset(#KMB_ATM1, 2310.367, -17.0, 26.414)
Object.SetHeading(72@, 180.0)
Object.SetCollisionDamageEffect(72@, False)
73@ = Object.CreateNoOffset(#KMB_ATM1, 2313.689, -17.0, 26.414)
Object.SetHeading(73@, 180.0)
Object.SetCollisionDamageEffect(73@, False)
74@ = Object.CreateNoOffset(#KMB_ATM1, 2313.318, -0.1206, 26.414)
Object.SetCollisionDamageEffect(74@, False)
75@ = Object.CreateNoOffset(#MTSAFE, 2305.765, -4.7944, 25.75)
Object.SetHeading(75@, 90.0)
70@ = Object.CreateNoOffset(#CAT2_SAFE_COL, 2305.765, -4.7944, 25.75)
Object.SetHeading(70@, 90.0)
Object.SetCollisionDamageEffect(75@, False)
if 
  not Object.DoesExist($advert_f1)
goto_if_false @CAT2_3606
$advert_f1 = Object.CreateNoOffset(#CR_DOOR_01, 2322.845, 8.304, 25.483)
Object.DontRemove($advert_f1)
Object.SetCollisionDamageEffect($advert_f1, False)
Object.FreezePosition($advert_f1, True)

:CAT2_3606
if 
  not Object.DoesExist($pc_door)
goto_if_false @CAT2_3673
$pc_door = Object.CreateNoOffset(#CR_DOOR_01, 2316.233, 0.712, 25.742)
Object.DontRemove($pc_door)
Object.SetHeading($pc_door, 270.0)
Object.FreezePosition($pc_door, True)
Object.SetCollisionDamageEffect($pc_door, False)

:CAT2_3673
if 
  not Object.DoesExist($2661)
goto_if_false @CAT2_3730
$2661 = Object.CreateNoOffset(#CR_DOOR_03, 2304.257, -17.744, 25.742)
Object.DontRemove($2661)
Object.FreezePosition($2661, True)
Object.SetCollisionDamageEffect($2661, False)

:CAT2_3730
if 
  not Object.DoesExist($2662)
goto_if_false @CAT2_3797
$2662 = Object.CreateNoOffset(#CR_DOOR_03, 2304.257, -14.583, 25.742)
Object.DontRemove($2662)
Object.FreezePosition($2662, True)
Object.SetHeading($2662, 180.0)
Object.SetCollisionDamageEffect($2662, False)

:CAT2_3797
76@ = Object.CreateNoOffset(#KMB_ATM3, 2310.367, -17.0, 26.414)
Object.SetCollisionDamageEffect(76@, False)
Object.SetHeading(72@, 180.0)
77@ = Object.CreateNoOffset(#KMB_ATM3, 2313.689, -17.0, 26.414)
Object.SetCollisionDamageEffect(77@, False)
Object.SetHeading(73@, 180.0)
78@ = Object.CreateNoOffset(#KMB_ATM3, 2313.318, -0.1206, 26.414)
Object.SetCollisionDamageEffect(78@, False)
Object.SetHeading(75@, 90.0)
Object.SetHeading(76@, 180.0)
Object.SetHeading(77@, 180.0)
Object.SetCollision(72@, False)
Object.SetCollision(73@, False)
Object.SetCollision(74@, False)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 2309.289, -14.3987, 25.75)
Char.SetHeading($scplayer, 287.3674)
Char.ClearTasksImmediately($catalina)
Char.SetCoordinates($catalina, 2310.206, -15.8887, 25.7574)
Char.SetHeading($catalina, 287.3674)
Task.GoStraightToCoord($scplayer, 2315.412, -13.1812, 25.75, MoveState.Walk, 10000)
Task.GoStraightToCoord($catalina, 2316.619, -15.1198, 25.75, MoveState.Walk, 10000)
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 3000
55@ = 1
Game.SetWantedMultiplier(0.2)
41@ += 1

:CAT2_4115
if 
  41@ == 2
goto_if_false @CAT2_4469
if and
  is_int_var_greater_than_int_lvar $game_timer > 42@
  560@ == 0
goto_if_false @CAT2_4469
Text.ClearSmallPrints
Camera.SetFixedPosition(2315.312, -13.8451, 27.6696, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2315.771, -12.9906, 27.427, SwitchType.JumpCut)
Char.ClearTasks($scplayer)
Char.SetCoordinates($scplayer, 2315.412, -12.1812, 25.75)
Char.SetHeading($scplayer, 236.5262)
Char.FreezePosition($scplayer, True)
Char.ClearTasks($catalina)
Char.SetCoordinates($catalina, 2316.619, -15.1198, 25.75)
Char.SetHeading($catalina, 242.0258)
Char.FreezePosition($catalina, True)
if 
  not Char.IsDead(66@)
goto_if_false @CAT2_4439
$x, $y, $z = Char.GetCoordinates(66@)
$x += 2.7
71@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Shotgun)
if 
  71@ == 0
goto_if_false @CAT2_4380
Char.GiveWeapon($scplayer, WeaponType.Shotgun, 48)
goto @CAT2_4407

:CAT2_4380
if 
  48 > 71@
goto_if_false @CAT2_4407
Char.SetAmmo($scplayer, WeaponType.Shotgun, 48)

:CAT2_4407
Task.AimGunAtCoord($scplayer, $x, $y, $z, 10000)
Task.HandsUp(66@, 8000)
Char.FreezePosition(66@, True)

:CAT2_4439
560@ = 3
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2000
41@ += 1

:CAT2_4469
if 
  41@ == 3
goto_if_false @CAT2_4680
if 
  560@ == 0
goto_if_false @CAT2_4680
if 
  not Char.IsDead(63@)
goto_if_false @CAT2_4597
$x, $y, $z = Char.GetCoordinates(63@)
$x += 2.7
$z += 0.5
Char.GiveWeapon($catalina, WeaponType.Shotgun, 9999)
Task.AimGunAtCoord($catalina, $x, $y, $z, 10000)
Char.FreezePosition(63@, True)
Task.HandsUp(63@, 8000)

:CAT2_4597
Text.ClearSmallPrints
Camera.SetFixedPosition(2317.011, -17.3945, 27.4246, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2317.248, -16.4244, 27.3736, SwitchType.JumpCut)
560@ = 4
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2500
41@ += 1

:CAT2_4680
if 
  41@ == 4
goto_if_false @CAT2_4749
if 
  1 > 68@
goto_if_false @CAT2_4749
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_4749
Camera.DoFade(500, Fade.Out)
41@ += 1

:CAT2_4749
if 
  41@ == 5
goto_if_false @CAT2_5253
if 
  1 > 68@
goto_if_false @CAT2_5253
if 
  not Camera.GetFadingStatus
goto_if_false @CAT2_5253
Text.ClearSmallPrints
Camera.SetFixedPosition(2316.377, -11.0151, 28.6019, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2315.613, -10.6059, 28.1029, SwitchType.JumpCut)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 2312.578, -7.4347, 25.75)
Char.SetHeading($scplayer, 126.7479)
Char.ClearTasksImmediately($catalina)
Char.SetCoordinates($catalina, 2308.502, -3.912, 25.7422)
Char.SetHeading($catalina, 81.0)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_4968
Char.FreezePosition($catalina, False)
Task.GoStraightToCoord($catalina, 2306.768, -4.5085, 25.7422, MoveState.Walk, -2)

:CAT2_4968
if 
  not Char.IsDead(66@)
goto_if_false @CAT2_5034
Char.ClearTasks(66@)
Char.SetCoordinates(66@, 2310.546, -7.7439, 25.7422)
Char.SetHeading(66@, 281.4267)
Task.TurnCharToFaceChar(66@, $scplayer)
Char.FreezePosition(66@, True)

:CAT2_5034
if 
  not Char.IsDead(63@)
goto_if_false @CAT2_5100
Char.ClearTasks(63@)
Char.SetCoordinates(63@, 2311.597, -9.1847, 25.7422)
Char.SetHeading(63@, 314.501)
Task.TurnCharToFaceChar(63@, $scplayer)
Char.FreezePosition(63@, True)

:CAT2_5100
if 
  not Char.IsDead(64@)
goto_if_false @CAT2_5166
Char.ClearTasks(64@)
Char.SetCoordinates(64@, 2310.591, -9.3749, 25.7422)
Char.SetHeading(64@, 323.1424)
Task.TurnCharToFaceChar(64@, $scplayer)
Char.FreezePosition(64@, True)

:CAT2_5166
if 
  not Char.IsDead(65@)
goto_if_false @CAT2_5232
Char.ClearTasks(65@)
Char.SetCoordinates(65@, 2309.61, -8.5556, 25.7422)
Char.SetHeading(65@, 309.2547)
Task.TurnCharToFaceChar(65@, $scplayer)
Char.FreezePosition(65@, True)

:CAT2_5232
Streaming.RequestAnimation("OTB")
Camera.DoFade(500, Fade.In)
41@ += 1

:CAT2_5253
if 
  41@ == 6
goto_if_false @CAT2_5375
if 
  not Camera.GetFadingStatus
goto_if_false @CAT2_5375
World.SetUsesCollisionOfClosestObjectOfType(2312.578, -7.4347, 25.75, 4.5, #MAN_SAFENEW, False)
World.SetUsesCollisionOfClosestObjectOfType(2312.578, -7.4347, 25.75, 4.5, #KEV_SAFE, False)
560@ = 5
561@ = 3
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 800
41@ += 1

:CAT2_5375
if 
  41@ == 7
goto_if_false @CAT2_5482
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_5482
if 
  not Char.IsDead(63@)
goto_if_false @CAT2_5452
$x, $y, $z = Char.GetCoordinates(63@)
$z += 0.7

:CAT2_5452
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 800
41@ += 1
80@ = 0

:CAT2_5482
if 
  41@ == 8
goto_if_false @CAT2_6092
if 
  80@ == 0
goto_if_false @CAT2_5849
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_5849
Camera.SetFixedPosition(2314.602, -4.9551, 28.3779, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2313.779, -5.363, 27.9827, SwitchType.JumpCut)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_5792
Char.SetCoordinates($catalina, 2306.666, -4.7944, 25.75)
Char.SetHeading($catalina, 90.0)
Char.SetCurrentWeapon($catalina, WeaponType.Unarmed)
84@ = Sequence.Open()
Task.PlayAnim(-1, "CAT_SAFE_OPEN", "ROB_BANK", 1000.0, False, False, False, False, -2)
Task.PlayAnim(-1, "CAT_SAFE_ROB", "ROB_BANK", 1000.0, False, False, False, False, -2)
Sequence.Close(84@)
Char.PerformSequence($catalina, 84@)
Sequence.Clear(84@)
Object.PlayAnim(75@, "CAT_SAFE_OPEN_O", "ROB_BANK", 1000.0, False, True)

:CAT2_5792
80@ = 1
Char.FreezePosition($scplayer, False)
if 
  not Char.IsDead(63@)
goto_if_false @CAT2_5833
Task.AimGunAtChar($scplayer, 63@, 5500)

:CAT2_5833
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 800

:CAT2_5849
if 
  80@ == 1
goto_if_false @CAT2_6092
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_6092
if 
  not Char.IsDead(66@)
goto_if_false @CAT2_5910
Task.HandsUp(66@, 8000)

:CAT2_5910
if 
  not Char.IsDead(63@)
goto_if_false @CAT2_5963
84@ = Sequence.Open()
Task.Pause(-1, 250)
Task.HandsUp(-1, 8000)
Sequence.Close(84@)
Char.PerformSequence(63@, 84@)
Sequence.Clear(84@)

:CAT2_5963
if 
  not Char.IsDead(64@)
goto_if_false @CAT2_6016
84@ = Sequence.Open()
Task.Pause(-1, 350)
Task.HandsUp(-1, 8000)
Sequence.Close(84@)
Char.PerformSequence(64@, 84@)
Sequence.Clear(84@)

:CAT2_6016
if 
  not Char.IsDead(65@)
goto_if_false @CAT2_6069
84@ = Sequence.Open()
Task.Pause(-1, 850)
Task.HandsUp(-1, 8000)
Sequence.Close(84@)
Char.PerformSequence(65@, 84@)
Sequence.Clear(84@)

:CAT2_6069
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2000
41@ += 1

:CAT2_6092
if 
  41@ == 9
goto_if_false @CAT2_6615
if and
  is_int_var_greater_than_int_lvar $game_timer > 42@
  560@ == 0
  559@ == 1
goto_if_false @CAT2_6615
if 
  not Object.DoesExist($advert_f1)
goto_if_false @CAT2_6200
$advert_f1 = Object.CreateNoOffset(#CR_DOOR_01, 2322.845, 8.304, 25.483)
Object.DontRemove($advert_f1)
Object.SetCollisionDamageEffect($advert_f1, False)
Object.FreezePosition($advert_f1, True)

:CAT2_6200
if 
  not Object.DoesExist($pc_door)
goto_if_false @CAT2_6267
$pc_door = Object.CreateNoOffset(#CR_DOOR_01, 2316.233, 0.712, 25.742)
Object.DontRemove($pc_door)
Object.SetHeading($pc_door, 270.0)
Object.FreezePosition($pc_door, True)
Object.SetCollisionDamageEffect($pc_door, False)

:CAT2_6267
if 
  not Object.DoesExist($2661)
goto_if_false @CAT2_6324
$2661 = Object.CreateNoOffset(#CR_DOOR_03, 2304.257, -17.744, 25.742)
Object.DontRemove($2661)
Object.FreezePosition($2661, True)
Object.SetCollisionDamageEffect($2661, False)

:CAT2_6324
if 
  not Object.DoesExist($2662)
goto_if_false @CAT2_6391
$2662 = Object.CreateNoOffset(#CR_DOOR_03, 2304.257, -14.583, 25.742)
Object.DontRemove($2662)
Object.FreezePosition($2662, True)
Object.SetHeading($2662, 180.0)
Object.SetCollisionDamageEffect($2662, False)

:CAT2_6391
Char.FreezePosition($scplayer, False)
Char.FreezePosition($catalina, False)
Player.SetControl($player1, True)
Text.ClearPrints
Text.Print('CAT2_05', 4000, 1)
Text.Print('CAT2_06', 8000, 1)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Char.ClearTasksImmediately($catalina)
Char.SetCurrentWeapon($catalina, WeaponType.Unarmed)
Task.PlayAnim($catalina, "CAT_SAFE_ROB", "ROB_BANK", 1000.0, True, False, False, False, -2)
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2000
41@ += 1
81@ = 0.0015
World.SetUsesCollisionOfClosestObjectOfType(2312.578, -7.4347, 25.75, 4.5, #MAN_SAFENEW, True)
World.SetUsesCollisionOfClosestObjectOfType(2312.578, -7.4347, 25.75, 4.5, #KEV_SAFE, True)

:CAT2_6615
if 
  41@ > 9
goto_if_false @CAT2_8421
81@ += 2.5E-05
if 
  not Char.IsDead(66@)
goto_if_false @CAT2_7045
if 
  41@ > 10
goto_if_false @CAT2_6728
$task_status = Char.GetScriptTaskStatus(66@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_6721
Char.FreezePosition(66@, False)
Task.KillCharOnFoot(66@, $scplayer)

:CAT2_6721
goto @CAT2_7038

:CAT2_6728
if and
  Player.IsTargetingChar($player1, 66@)
  not Char.IsCurrentWeapon($scplayer, WeaponType.Unarmed)
goto_if_false @CAT2_6771
add_timed_val_to_float_lvar 57@ +=@ 0.02
goto @CAT2_6779

:CAT2_6771
sub_timed_float_lvar_from_float_lvar 57@ -=@ 81@

:CAT2_6779
if 
  57@ > 1.0
goto_if_false @CAT2_6810
57@ = 1.0

:CAT2_6810
if 
  0.0 > 57@
goto_if_false @CAT2_6873
57@ = 0.0
if 
  41@ == 10
goto_if_false @CAT2_6873
gosub @CAT2_30052
41@ = 11

:CAT2_6873
$task_status = Char.GetScriptTaskStatus(66@, 1541)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_6956
Task.PlayAnim(66@, "SHP_HANDSUP_SCR", "ROB_BANK", 4.0, False, False, False, False, 0)
goto @CAT2_7038

:CAT2_6956
if 
  Char.IsPlayingAnim(66@, "SHP_HANDSUP_SCR")
goto_if_false @CAT2_7038
Char.SetAnimPlayingFlag(66@, "SHP_HANDSUP_SCR", False)
Char.SetAnimCurrentTime(66@, "SHP_HANDSUP_SCR", 57@)

:CAT2_7038
goto @CAT2_7082

:CAT2_7045
if 
  41@ == 10
goto_if_false @CAT2_7077
gosub @CAT2_30052
41@ = 11

:CAT2_7077
Char.MarkAsNoLongerNeeded(66@)

:CAT2_7082
if 
  not Char.IsDead(63@)
goto_if_false @CAT2_7486
if 
  41@ > 10
goto_if_false @CAT2_7169
$task_status = Char.GetScriptTaskStatus(63@, 1477)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_7162
Char.FreezePosition(63@, False)
Task.Duck(63@, 1410065407)

:CAT2_7162
goto @CAT2_7479

:CAT2_7169
if and
  Player.IsTargetingChar($player1, 63@)
  not Char.IsCurrentWeapon($scplayer, WeaponType.Unarmed)
goto_if_false @CAT2_7212
add_timed_val_to_float_lvar 58@ +=@ 0.023
goto @CAT2_7220

:CAT2_7212
sub_timed_float_lvar_from_float_lvar 58@ -=@ 81@

:CAT2_7220
if 
  58@ > 1.0
goto_if_false @CAT2_7251
58@ = 1.0

:CAT2_7251
if 
  0.0 > 58@
goto_if_false @CAT2_7314
58@ = 0.0
if 
  41@ == 10
goto_if_false @CAT2_7314
gosub @CAT2_30052
41@ = 11

:CAT2_7314
$task_status = Char.GetScriptTaskStatus(63@, 1541)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_7397
Task.PlayAnim(63@, "SHP_HANDSUP_SCR", "ROB_BANK", 4.0, False, False, False, False, 0)
goto @CAT2_7479

:CAT2_7397
if 
  Char.IsPlayingAnim(63@, "SHP_HANDSUP_SCR")
goto_if_false @CAT2_7479
Char.SetAnimPlayingFlag(63@, "SHP_HANDSUP_SCR", False)
Char.SetAnimCurrentTime(63@, "SHP_HANDSUP_SCR", 58@)

:CAT2_7479
goto @CAT2_7523

:CAT2_7486
if 
  41@ == 10
goto_if_false @CAT2_7518
gosub @CAT2_30052
41@ = 11

:CAT2_7518
Char.MarkAsNoLongerNeeded(63@)

:CAT2_7523
if 
  not Char.IsDead(64@)
goto_if_false @CAT2_7927
if 
  41@ > 10
goto_if_false @CAT2_7610
$task_status = Char.GetScriptTaskStatus(64@, 1477)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_7603
Char.FreezePosition(64@, False)
Task.Duck(64@, 1410065407)

:CAT2_7603
goto @CAT2_7920

:CAT2_7610
if and
  Player.IsTargetingChar($player1, 64@)
  not Char.IsCurrentWeapon($scplayer, WeaponType.Unarmed)
goto_if_false @CAT2_7653
add_timed_val_to_float_lvar 59@ +=@ 0.026
goto @CAT2_7661

:CAT2_7653
sub_timed_float_lvar_from_float_lvar 59@ -=@ 81@

:CAT2_7661
if 
  59@ > 1.0
goto_if_false @CAT2_7692
59@ = 1.0

:CAT2_7692
if 
  0.0 > 59@
goto_if_false @CAT2_7755
59@ = 0.0
if 
  41@ == 10
goto_if_false @CAT2_7755
gosub @CAT2_30052
41@ = 11

:CAT2_7755
$task_status = Char.GetScriptTaskStatus(64@, 1541)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_7838
Task.PlayAnim(64@, "SHP_HANDSUP_SCR", "ROB_BANK", 4.0, False, False, False, False, 0)
goto @CAT2_7920

:CAT2_7838
if 
  Char.IsPlayingAnim(64@, "SHP_HANDSUP_SCR")
goto_if_false @CAT2_7920
Char.SetAnimPlayingFlag(64@, "SHP_HANDSUP_SCR", False)
Char.SetAnimCurrentTime(64@, "SHP_HANDSUP_SCR", 59@)

:CAT2_7920
goto @CAT2_7964

:CAT2_7927
if 
  41@ == 10
goto_if_false @CAT2_7959
gosub @CAT2_30052
41@ = 11

:CAT2_7959
Char.MarkAsNoLongerNeeded(64@)

:CAT2_7964
if 
  not Char.IsDead(65@)
goto_if_false @CAT2_8368
if 
  41@ > 10
goto_if_false @CAT2_8051
$task_status = Char.GetScriptTaskStatus(65@, 1477)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_8044
Char.FreezePosition(65@, False)
Task.Duck(65@, 1410065407)

:CAT2_8044
goto @CAT2_8361

:CAT2_8051
if and
  Player.IsTargetingChar($player1, 65@)
  not Char.IsCurrentWeapon($scplayer, WeaponType.Unarmed)
goto_if_false @CAT2_8094
add_timed_val_to_float_lvar 60@ +=@ 0.025
goto @CAT2_8102

:CAT2_8094
sub_timed_float_lvar_from_float_lvar 60@ -=@ 81@

:CAT2_8102
if 
  60@ > 1.0
goto_if_false @CAT2_8133
60@ = 1.0

:CAT2_8133
if 
  0.0 > 60@
goto_if_false @CAT2_8196
60@ = 0.0
if 
  41@ == 10
goto_if_false @CAT2_8196
gosub @CAT2_30052
41@ = 11

:CAT2_8196
$task_status = Char.GetScriptTaskStatus(65@, 1541)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_8279
Task.PlayAnim(65@, "SHP_HANDSUP_SCR", "ROB_BANK", 4.0, False, False, False, False, 0)
goto @CAT2_8361

:CAT2_8279
if 
  Char.IsPlayingAnim(65@, "SHP_HANDSUP_SCR")
goto_if_false @CAT2_8361
Char.SetAnimPlayingFlag(65@, "SHP_HANDSUP_SCR", False)
Char.SetAnimCurrentTime(65@, "SHP_HANDSUP_SCR", 60@)

:CAT2_8361
goto @CAT2_8421

:CAT2_8368
if 
  41@ == 10
goto_if_false @CAT2_8416
gosub @CAT2_30052
set_lvar_int_to_lvar_int 83@ = TIMERA
83@ += 500
41@ = 11

:CAT2_8416
Char.MarkAsNoLongerNeeded(65@)

:CAT2_8421
if 
  560@ == 9
goto_if_false @CAT2_8635
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_8635
if 
  Streaming.HasAnimationLoaded("OTB")
goto_if_false @CAT2_8628
$task_status = Char.GetScriptTaskStatus($catalina, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_8621
Char.ClearTasks($catalina)
84@ = Sequence.Open()
Task.ToggleDuck(-1, False)
Task.TurnCharToFaceChar(-1, $scplayer)
Task.PlayAnim(-1, "WTCHRACE_CMON", "OTB", 4.0, False, False, False, False, 0)
Task.PlayAnim(-1, "WTCHRACE_LOSE", "OTB", 4.0, False, False, False, False, 0)
Sequence.Close(84@)
Char.PerformSequence($catalina, 84@)
Sequence.Clear(84@)

:CAT2_8621
goto @CAT2_8635

:CAT2_8628
Streaming.RequestAnimation("OTB")

:CAT2_8635
if 
  41@ == 11
goto_if_false @CAT2_8722
Streaming.RemoveAnimation("ROB_BANK")
if 
  56@ == 4
goto_if_false @CAT2_8722
if 
  Char.IsDead(66@)
goto_if_false @CAT2_8722
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2000
41@ += 1

:CAT2_8722
if and
  41@ == 12
  560@ == 0
goto_if_false @CAT2_8790
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_8790
Camera.DoFade(500, Fade.Out)
Streaming.RequestModel(599)
Streaming.RequestModel(523)
41@ += 1

:CAT2_8790
if 
  41@ == 13
goto_if_false @CAT2_9720
if and
  Streaming.HasCarRecordingBeenLoaded(116)
  Streaming.HasCarRecordingBeenLoaded(117)
  Streaming.HasCarRecordingBeenLoaded(118)
  Streaming.HasCarRecordingBeenLoaded(119)
  Streaming.HasAnimationLoaded("MISC")
goto_if_false @CAT2_9689
if and
  not Camera.GetFadingStatus
  Streaming.HasModelLoaded(599)
  Streaming.HasModelLoaded(523)
goto_if_false @CAT2_9672
Streaming.RemoveAnimation("OTB")
Streaming.RemoveAnimation("SHOP")
Text.ClearSmallPrints
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
Camera.SetNearClip(0.1)
Sound.Remove(82@)
85@ = Car.Create(599, 2302.181, 6.6, 25.4766)
Car.SetHeading(85@, 90.0)
Car.LockDoors(85@, CarLock.LockoutPlayerOnly)
Car.StartPlayback(85@, 116)
Car.SetPlaybackSpeed(85@, 0.0)
86@ = Car.Create(523, 2348.658, 5.906, 25.3359)
Car.SetHeading(86@, 359.5453)
Car.StartPlayback(86@, 117)
Car.SetPlaybackSpeed(86@, 0.0)
87@ = Char.CreateInsideCar(86@, PedType.CivMale, 283)
Char.SetDecisionMaker(87@, 62@)
88@ = Car.Create(523, 2264.918, 37.519, 25.3359)
Car.SetHeading(88@, 268.8078)
Car.StartPlayback(88@, 118)
Car.SetPlaybackSpeed(88@, 0.0)
89@ = Char.CreateInsideCar(88@, PedType.CivMale, 283)
Char.SetDecisionMaker(89@, 62@)
90@ = Car.Create(599, 2278.477, 89.2844, 25.3378)
Car.SetHeading(90@, 269.8063)
Car.StartPlayback(90@, 119)
Car.SetPlaybackSpeed(90@, 0.0)
91@ = Char.CreateInsideCar(90@, PedType.CivMale, 283)
Char.SetDecisionMaker(91@, 62@)
Car.SwitchSiren(90@, True)
92@ = Char.Create(PedType.CivMale, 283, 2328.564, 1.8673, 25.5693)
Char.SetHeading(92@, 0.0)
43@ = Sequence.Open()
Task.PlayAnim(-1, "SEAT_IDLE", "PED", 1000.0, True, False, False, True, 5000)
Task.PlayAnim(-1, "SEAT_TALK_01", "MISC", 4.0, False, False, False, False, 0)
Task.PlayAnim(-1, "SEAT_IDLE", "PED", 4.0, True, False, False, False, 10000)
Sequence.Close(43@)
Char.PerformSequence(92@, 43@)
Sequence.Clear(43@)
94@ = Char.Create(PedType.CivMale, 240, 2336.679, -8.2464, 25.4766)
Streaming.MarkModelAsNoLongerNeeded(240)
Task.SmartFleePoint(94@, 2336.399, -18.3093, 25.4766, 30.0, 8000)
93@ = Char.Create(PedType.CivMale, 283, 2328.476, 2.3077, 25.5693)
Char.SetDecisionMaker(93@, 62@)
Char.SetHeading(93@, 180.0)
43@ = Sequence.Open()
Task.PlayAnim(-1, "SEAT_IDLE", "PED", 4.0, True, False, False, True, 9200)
Task.PlayAnim(-1, "SEAT_TALK_02", "MISC", 1000.0, False, False, False, True, 0)
Task.PlayAnim(-1, "SEAT_WATCH", "MISC", 4.0, False, False, False, False, 0)
Task.PlayAnim(-1, "SEAT_IDLE", "PED", 4.0, True, False, False, False, 10000)
Sequence.Close(43@)
Char.PerformSequence(93@, 43@)
Sequence.Clear(43@)
set_lvar_int_to_lvar_int 42@ = TIMERA
42@ += 1000
41@ += 1
goto @CAT2_9682

:CAT2_9672
Streaming.RequestModel(599)
Streaming.RequestModel(523)

:CAT2_9682
goto @CAT2_9713

:CAT2_9689
Streaming.RequestCarRecording(116)
Streaming.RequestCarRecording(117)
Streaming.RequestCarRecording(118)
Streaming.RequestCarRecording(119)
Streaming.RequestAnimation("MISC")

:CAT2_9713
goto @CAT2_9876

:CAT2_9720
if 
  41@ == 15
goto_if_false @CAT2_9851
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 42@
goto_if_false @CAT2_9851
Camera.SetFixedPosition(2327.583, 1.796, 26.5414, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2328.538, 2.0688, 26.6612, SwitchType.JumpCut)
Streaming.LoadSceneInDirection(2328.538, 2.0688, 26.6612, 270.0)
Camera.DoFade(500, Fade.In)
68@ = -1
41@ += 1

:CAT2_9851
if 
  41@ == 14
goto_if_false @CAT2_9876
41@ += 1

:CAT2_9876
if 
  25 > 41@
goto_if_false @CAT2_10654
if or
  41@ > 15
  41@ == -1
goto_if_false @CAT2_10654
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @CAT2_9978
if 
  68@ == 0
goto_if_false @CAT2_9971
Camera.DoFade(500, Fade.Out)
41@ = -1
68@ += 1

:CAT2_9971
goto @CAT2_10003

:CAT2_9978
if 
  68@ == -1
goto_if_false @CAT2_10003
68@ += 1

:CAT2_10003
if 
  68@ == 1
goto_if_false @CAT2_10654
if 
  not Camera.GetFadingStatus
goto_if_false @CAT2_10654
559@ = 5
if 
  not Char.IsDead(92@)
goto_if_false @CAT2_10158
Char.ClearTasks(92@)
Char.GiveWeapon(92@, WeaponType.Shotgun, 9999)
if 
  Char.IsInAnyCar(92@)
goto_if_false @CAT2_10115
Char.WarpFromCarToCoord(92@, 2292.531, -19.1915, 25.3437)
goto @CAT2_10135

:CAT2_10115
Char.SetCoordinates(92@, 2292.531, -19.1915, 25.3437)

:CAT2_10135
Task.AimGunAtCoord(92@, 2304.137, -16.591, 27.276, 15000)

:CAT2_10158
if 
  not Char.IsDead(93@)
goto_if_false @CAT2_10275
Char.ClearTasks(93@)
Char.GiveWeapon(93@, WeaponType.Shotgun, 9999)
if 
  Char.IsInAnyCar(93@)
goto_if_false @CAT2_10232
Char.WarpFromCarToCoord(93@, 2297.022, -19.6483, 25.3359)
goto @CAT2_10252

:CAT2_10232
Char.SetCoordinates(93@, 2297.022, -19.6483, 25.3359)

:CAT2_10252
Task.AimGunAtCoord(93@, 2304.137, -16.591, 27.276, 15000)

:CAT2_10275
if 
  not Char.IsDead(87@)
goto_if_false @CAT2_10379
Char.ClearTasks(87@)
Char.GiveWeapon(87@, WeaponType.Shotgun, 9999)
if 
  Char.IsInAnyCar(87@)
goto_if_false @CAT2_10349
Char.WarpFromCarToCoord(87@, 2303.119, -13.7964, 25.4766)
goto @CAT2_10369

:CAT2_10349
Char.SetCoordinates(87@, 2303.119, -13.7964, 25.4766)

:CAT2_10369
Char.SetHeading(87@, 119.4845)

:CAT2_10379
if 
  not Char.IsDead(89@)
goto_if_false @CAT2_10496
Char.ClearTasks(89@)
Char.GiveWeapon(89@, WeaponType.Shotgun, 9999)
if 
  Char.IsInAnyCar(89@)
goto_if_false @CAT2_10453
Char.WarpFromCarToCoord(89@, 2297.244, -16.8148, 25.3328)
goto @CAT2_10473

:CAT2_10453
Char.SetCoordinates(89@, 2297.244, -16.8148, 25.3328)

:CAT2_10473
Task.AimGunAtCoord(89@, 2304.137, -16.591, 27.276, 15000)

:CAT2_10496
if 
  not Car.IsDead(85@)
goto_if_false @CAT2_10517
Car.SkipToEndAndStopPlayback(85@)

:CAT2_10517
if 
  not Car.IsDead(86@)
goto_if_false @CAT2_10538
Car.SkipToEndAndStopPlayback(86@)

:CAT2_10538
if 
  not Car.IsDead(88@)
goto_if_false @CAT2_10559
Car.SkipToEndAndStopPlayback(88@)

:CAT2_10559
if 
  not Car.IsDead(90@)
goto_if_false @CAT2_10640
Car.SkipToEndAndStopPlayback(90@)
Car.SetCoordinates(90@, 2288.757, -11.9521, 25.4766)
Car.SetHeading(90@, 142.4622)
Car.SetForwardSpeed(90@, 0.0)
Car.SetRotationVelocity(90@, 0.0, 0.0, 0.0)

:CAT2_10640
68@ += 1
41@ = 25

:CAT2_10654
if 
  41@ == 16
goto_if_false @CAT2_10728
if and
  is_int_var_greater_than_int_lvar $game_timer > 42@
  560@ == 0
goto_if_false @CAT2_10728
560@ = 39
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 4000
41@ += 1

:CAT2_10728
if 
  41@ == 17
goto_if_false @CAT2_10836
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_10836
if 
  560@ == 0
goto_if_false @CAT2_10836
set_lvar_int_to_lvar_int 626@ = 92@
set_lvar_int_to_lvar_int 627@ = 93@
$wz1_health_bar = 1
560@ = 11
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2800
41@ += 1

:CAT2_10836
if and
  41@ == 18
  560@ == 0
goto_if_false @CAT2_10910
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_10910
560@ = 12
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 3500
41@ += 1

:CAT2_10910
if and
  41@ == 19
  560@ == 0
goto_if_false @CAT2_11193
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_11193
if 
  not Car.IsDead(85@)
goto_if_false @CAT2_11032
if 
  not Char.IsDead(92@)
goto_if_false @CAT2_11032
Char.ClearTasks(92@)
Char.SetCoordinates(92@, 2345.99, 5.6379, 25.3359)
Char.SetHeading(92@, 276.5795)
Task.EnterCarAsDriver(92@, 85@, 5000)

:CAT2_11032
if 
  not Car.IsDead(85@)
goto_if_false @CAT2_11112
if 
  not Char.IsDead(93@)
goto_if_false @CAT2_11112
Char.ClearTasks(93@)
Char.SetCoordinates(93@, 2349.073, 9.3357, 25.4766)
Char.SetHeading(93@, 282.9661)
Task.EnterCarAsPassenger(93@, 85@, 5000, 0)

:CAT2_11112
Text.ClearSmallPrints
Camera.SetFixedPosition(2353.494, 10.2912, 29.0217, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2352.723, 9.7997, 28.6169, SwitchType.JumpCut)
Char.Delete(94@)
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 1000
41@ += 1

:CAT2_11193
if 
  41@ == 20
goto_if_false @CAT2_11305
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_11305
if 
  not Car.IsDead(86@)
goto_if_false @CAT2_11256
Car.SetPlaybackSpeed(86@, 1.0)

:CAT2_11256
if 
  not Car.IsDead(88@)
goto_if_false @CAT2_11282
Car.SetPlaybackSpeed(88@, 1.0)

:CAT2_11282
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2500
41@ += 1

:CAT2_11305
if 
  41@ == 21
goto_if_false @CAT2_11479
if 
  not Car.IsDead(85@)
goto_if_false @CAT2_11456
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_11449
Car.SetPlaybackSpeed(85@, 1.0)
Camera.SetInterpolationParameters(0.0, 5500)
Camera.SetFixedPosition(2353.054, 12.14, 28.0091, 0.0, 0.0, 0.0)
Camera.PointAtCar(85@, CameraMode.Fixed, SwitchType.Interpolation)
Car.SwitchSiren(85@, True)
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 5500
41@ = 23

:CAT2_11449
goto @CAT2_11479

:CAT2_11456
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 5500
41@ = 23

:CAT2_11479
if 
  41@ == 22
goto_if_false @CAT2_11622
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_11622
Camera.SetFixedPosition(2297.562, 11.3784, 29.2857, 0.0, 0.0, 0.0)
if 
  not Car.IsDead(90@)
goto_if_false @CAT2_11580
Camera.PointAtCar(90@, CameraMode.Fixed, SwitchType.JumpCut)
goto @CAT2_11599

:CAT2_11580
Camera.PointAtPoint(2297.377, 12.3375, 29.071, SwitchType.JumpCut)

:CAT2_11599
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 6500
41@ += 1

:CAT2_11622
if 
  41@ == 23
goto_if_false @CAT2_12535
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_12535
560@ = 13
561@ = 3
if 
  not Car.IsDead(85@)
goto_if_false @CAT2_11894
if 
  Car.IsPlaybackGoingOn(85@)
goto_if_false @CAT2_11894
Car.StopPlayback(85@)
Car.SetCoordinates(85@, 2297.266, -27.4791, 25.3359)
Car.SetHeading(85@, 23.0)
Car.SetForwardSpeed(85@, 17.0)
if 
  not Char.IsDead(92@)
goto_if_false @CAT2_11894
Char.GiveWeapon(92@, WeaponType.Pistol, 9999)
43@ = Sequence.Open()
Task.CarDriveToCoord(-1, 85@, 2295.612, -23.6996, 25.3437, 17.0, DriveMode.Accurate, 0, DrivingMode.PloughThrough)
Task.CarTempAction(-1, 85@, TempAction.HandbrakeStraight, 1000)
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 2292.531, -19.1915, 25.3437, MoveState.Run, 10000)
Task.AimGunAtCoord(-1, 2304.137, -16.591, 27.276, 5000)
Sequence.Close(43@)
Char.PerformSequence(92@, 43@)
Sequence.Clear(43@)

:CAT2_11894
if 
  not Char.IsDead(93@)
goto_if_false @CAT2_12006
Char.GiveWeapon(93@, WeaponType.Pistol, 9999)
43@ = Sequence.Open()
Task.Pause(-1, 1000)
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 2296.707, -15.3321, 25.3279, MoveState.Run, 10000)
Task.ToggleDuck(-1, True)
Task.AimGunAtCoord(-1, 2304.137, -16.591, 27.276, 5000)
Sequence.Close(43@)
Char.PerformSequence(93@, 43@)
Sequence.Clear(43@)

:CAT2_12006
if 
  not Car.IsDead(86@)
goto_if_false @CAT2_12214
if 
  Car.IsPlaybackGoingOn(86@)
goto_if_false @CAT2_12214
Car.StopPlayback(86@)
Car.SetCoordinates(86@, 2305.835, -30.7209, 25.3382)
Car.SetHeading(86@, 33.0)
Car.SetForwardSpeed(86@, 17.0)
if 
  not Char.IsDead(87@)
goto_if_false @CAT2_12214
Char.GiveWeapon(87@, WeaponType.Pistol, 9999)
43@ = Sequence.Open()
Task.CarDriveToCoord(-1, 86@, 2302.19, -21.2635, 25.4844, 17.0, DriveMode.Accurate, 0, DrivingMode.PloughThrough)
Task.CarTempAction(-1, 86@, TempAction.HandbrakeStraight, 1000)
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 2297.244, -16.8148, 25.3328, MoveState.Run, 10000)
Task.AchieveHeading(-1, 291.4845)
Sequence.Close(43@)
Char.PerformSequence(87@, 43@)
Sequence.Clear(43@)

:CAT2_12214
if 
  not Car.IsDead(88@)
goto_if_false @CAT2_12435
if 
  Car.IsPlaybackGoingOn(88@)
goto_if_false @CAT2_12435
Car.StopPlayback(88@)
Car.SetCoordinates(88@, 2294.491, -2.6373, 25.3359)
Car.SetHeading(88@, 186.0)
Car.SetForwardSpeed(88@, 17.0)
if 
  not Char.IsDead(89@)
goto_if_false @CAT2_12435
Char.GiveWeapon(89@, WeaponType.Pistol, 9999)
43@ = Sequence.Open()
Task.CarDriveToCoord(-1, 88@, 2298.094, -10.0818, 25.3285, 17.0, DriveMode.Accurate, 0, DrivingMode.PloughThrough)
Task.CarTempAction(-1, 88@, TempAction.HandbrakeStraight, 1000)
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 2303.119, -13.7964, 25.4766, MoveState.Run, 10000)
Task.AimGunAtCoord(-1, 2304.137, -16.591, 27.276, 5000)
Sequence.Close(43@)
Char.PerformSequence(89@, 43@)
Sequence.Clear(43@)

:CAT2_12435
if 
  not Car.IsDead(90@)
goto_if_false @CAT2_12461
Car.SetPlaybackSpeed(90@, 1.0)

:CAT2_12461
Camera.SetFixedPosition(2288.577, -15.1784, 27.8832, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2289.553, -15.2742, 27.6869, SwitchType.JumpCut)
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 6000
41@ += 1

:CAT2_12535
if and
  41@ == 24
  560@ == 0
goto_if_false @CAT2_12598
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_12598
Camera.DoFade(500, Fade.Out)
Streaming.RequestModel(427)
41@ += 1

:CAT2_12598
if 
  41@ == 25
goto_if_false @CAT2_13093
if and
  not Camera.GetFadingStatus
  Streaming.HasModelLoaded(427)
goto_if_false @CAT2_13088
Path.SwitchRoadsOff(2344.518, 36.1468, 36.0359, 2269.718, -44.376, 23.0569)
Streaming.RemoveAnimation("MISC")
Streaming.RequestAnimation("GANGS")
95@ = Car.Create(427, 2302.181, 6.6, 25.4766)
Car.SetHeading(95@, 90.0)
Car.FreezePosition(95@, True)
96@ = Car.Create(427, 2337.9, 23.4, 25.4766)
Car.SetHeading(96@, 270.0)
Car.FreezePosition(96@, True)
101@ = 0

:CAT2_12770
if 
  3 > 101@
goto_if_false @CAT2_12872
97@(101@,4i) = 0
if 
  Object.DoesExist(72@(101@,4i))
goto_if_false @CAT2_12858
102@(101@,4i) = Blip.AddForObject(72@(101@,4i))
Object.MakeTargetable(76@(101@,4i), True)
Object.SetHealth(76@(101@,4i), 1000)

:CAT2_12858
101@ += 1
goto @CAT2_12770

:CAT2_12872
if 
  not Char.IsDead(94@)
goto_if_false @CAT2_12893
Char.MarkAsNoLongerNeeded(94@)

:CAT2_12893
Player.SetControl($player1, True)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(500, Fade.In)
if 
  not Char.IsDead(92@)
goto_if_false @CAT2_12954
Char.Delete(92@)

:CAT2_12954
if 
  not Char.IsDead(93@)
goto_if_false @CAT2_12975
Char.Delete(93@)

:CAT2_12975
if 
  not Char.IsDead(87@)
goto_if_false @CAT2_12996
Char.Delete(87@)

:CAT2_12996
if 
  not Char.IsDead(89@)
goto_if_false @CAT2_13017
Char.Delete(89@)

:CAT2_13017
Car.Delete(85@)
Car.Delete(86@)
Car.Delete(88@)
Car.Delete(90@)
Char.SetCurrentWeapon($catalina, WeaponType.Shotgun)
Char.SetCoordinates($catalina, 2312.208, -1.9564, 25.7422)
Char.SetHeading($catalina, 199.0)
41@ += 1
goto @CAT2_13093

:CAT2_13088
Streaming.RequestModel(427)

:CAT2_13093
if 
  41@ == 26
goto_if_false @CAT2_13241
if and
  not Camera.GetFadingStatus
  559@ == 1
  Streaming.HasAnimationLoaded("GANGS")
goto_if_false @CAT2_13241
560@ = 16
561@ = 3
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_13213
Task.PlayAnim($catalina, "PRTIAL_GNGTLKB", "GANGS", 4.0, False, False, False, False, 0)

:CAT2_13213
Object.SetCollisionDamageEffect(76@, False)
Object.SetCollisionDamageEffect(77@, True)
Object.SetCollisionDamageEffect(78@, True)
41@ += 1

:CAT2_13241
if 
  41@ == 27
goto_if_false @CAT2_14339
106@ = Char.GetScriptTaskStatus($catalina, 1541)
if 
  is_int_lvar_equal_to_constant 106@ == 7
goto_if_false @CAT2_13317
if 
  Streaming.HasAnimationLoaded("GANGS")
goto_if_false @CAT2_13317
Streaming.RemoveAnimation("GANGS")

:CAT2_13317
101@ = 0

:CAT2_13324
if 
  3 > 101@
goto_if_false @CAT2_14153
if 
  Object.DoesExist(72@(101@,4i))
goto_if_false @CAT2_13690
if 
  97@(101@,4i) == 0
goto_if_false @CAT2_13690
44@ = Object.GetHealth(76@(101@,4i))
$x, $y, $z = Object.GetCoordinates(72@(101@,4i))
set_lvar_float_to_var_float 107@ = $x
107@ -= 1.0
set_lvar_float_to_var_float 110@ = $x
110@ += 1.0
set_lvar_float_to_var_float 108@ = $y
108@ -= 1.0
set_lvar_float_to_var_float 111@ = $y
111@ += 1.0
set_lvar_float_to_var_float 109@ = $z
109@ -= 1.0
set_lvar_float_to_var_float 112@ = $z
112@ += 1.0
if 
  World.IsExplosionInArea(-1, 107@, 108@, 109@, 110@, 111@, 112@)
goto_if_false @CAT2_13573
Object.SetHealth(113@(101@,4i), 0)
44@ = 0

:CAT2_13573
if 
  500 > 44@
goto_if_false @CAT2_13690
46@ = Object.GetHeading(72@(101@,4i))
Object.Break(72@(101@,4i), 1)
Object.SetCoordinates(113@(101@,4i), $x, $y, $z)
Object.SetVisible(113@(101@,4i), True)
Object.SetHeading(113@(101@,4i), 46@)
Object.SetCollision(113@(101@,4i), False)
Object.SetHealth(113@(101@,4i), 150)
97@(101@,4i) += 1

:CAT2_13690
if 
  Object.DoesExist(113@(101@,4i))
goto_if_false @CAT2_14068
if 
  97@(101@,4i) == 1
goto_if_false @CAT2_14068
44@ = Object.GetHealth(76@(101@,4i))
if 
  1 > 44@
goto_if_false @CAT2_14068
Blip.Remove(102@(101@,4i))
Object.Delete(76@(101@,4i))
if 
  101@ == 0
goto_if_false @CAT2_13838
76@ = Object.CreateNoOffset(#KMB_ATM3, 2310.367, -17.0, 26.414)
Object.SetCollisionDamageEffect(76@, False)
Object.SetHeading(76@, 180.0)

:CAT2_13838
if 
  101@ == 1
goto_if_false @CAT2_13896
77@ = Object.CreateNoOffset(#KMB_ATM3, 2313.689, -17.0, 26.414)
Object.SetCollisionDamageEffect(77@, False)
Object.SetHeading(77@, 180.0)

:CAT2_13896
if 
  101@ == 2
goto_if_false @CAT2_13944
78@ = Object.CreateNoOffset(#KMB_ATM3, 2313.318, -0.1206, 26.414)
Object.SetCollisionDamageEffect(78@, False)

:CAT2_13944
Object.MarkAsNoLongerNeeded(72@(101@,4i))
$x, $y, $z = Object.GetOffsetInWorldCoords(113@(101@,4i), 0.0, -1.0, 0.0)
Object.MakeTargetable(76@(101@,4i), False)
Object.SetVisible(76@(101@,4i), True)
Object.Break(113@(101@,4i), 0)
117@(101@,4i) = Pickup.CreateMoney($x, $y, $z, 0, True)
102@(101@,4i) = Blip.AddForPickup(117@(101@,4i))
97@(101@,4i) += 1

:CAT2_14068
if 
  97@(101@,4i) == 2
goto_if_false @CAT2_14139
if 
  Pickup.HasBeenCollected(117@(101@,4i))
goto_if_false @CAT2_14139
Object.MarkAsNoLongerNeeded(113@(101@,4i))
Blip.Remove(102@(101@,4i))
97@(101@,4i) += 1

:CAT2_14139
101@ += 1
goto @CAT2_13324

:CAT2_14153
if and
  97@ == 3
  98@ == 3
  99@ == 3
goto_if_false @CAT2_14339
Object.SetCollisionDamageEffect($pc_door, True)
41@ += 1
if 
  not Char.IsDead(92@)
goto_if_false @CAT2_14224
Char.SetRelationship(92@, RelationshipType.Hate, PedType.Player1)

:CAT2_14224
if 
  not Char.IsDead(93@)
goto_if_false @CAT2_14249
Char.SetRelationship(93@, RelationshipType.Hate, PedType.Player1)

:CAT2_14249
if 
  not Char.IsDead(87@)
goto_if_false @CAT2_14274
Char.SetRelationship(87@, RelationshipType.Hate, PedType.Player1)

:CAT2_14274
if 
  not Char.IsDead(89@)
goto_if_false @CAT2_14299
Char.SetRelationship(89@, RelationshipType.Hate, PedType.Player1)

:CAT2_14299
Path.SwitchRoadsOn(2344.518, 36.1468, 36.0359, 2269.718, -44.376, 23.0569)
Char.SetDecisionMaker($catalina, 38@)

:CAT2_14339
if 
  41@ == 28
goto_if_false @CAT2_14392
Streaming.MarkModelAsNoLongerNeeded(#KMB_ATM1)
Streaming.MarkModelAsNoLongerNeeded(#KMB_ATM2)
Streaming.MarkModelAsNoLongerNeeded(#KMB_ATM3)
Streaming.MarkModelAsNoLongerNeeded(#MTSAFE)
Streaming.MarkModelAsNoLongerNeeded(#CR_DOOR_01)
Streaming.MarkModelAsNoLongerNeeded(#CR_DOOR_03)
41@ = 29

:CAT2_14392
if 
  41@ == 31
goto_if_false @CAT2_14967
if and
  Streaming.HasCarRecordingBeenLoaded(123)
  Streaming.HasCarRecordingBeenLoaded(124)
goto_if_false @CAT2_14959
if 
  344@ == 10
goto_if_false @CAT2_14952
if 
  not Char.IsDead($scplayer)
goto_if_false @CAT2_14952
if 
  Char.LocateAnyMeans3D($scplayer, 2315.558, 70.7181, 31.4998, 11.4, 8.4, 6.0, False)
goto_if_false @CAT2_14952
DecisionMakerChar.ClearEventResponse(38@, 36)
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
World.ClearArea(2321.218, 69.1035, 26.7314, 25.0, True)
Camera.SetFixedPosition(2324.899, 66.4572, 25.8911, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2324.192, 67.157, 25.9911, SwitchType.JumpCut)
Car.Delete(86@)
Car.Delete(88@)
Char.Delete(87@)
Char.Delete(89@)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT2_14685
Char.WarpFromCarToCoord($scplayer, 2319.793, 61.6571, 25.4769)
goto @CAT2_14705

:CAT2_14685
Char.SetCoordinates($scplayer, 2319.793, 61.6571, 25.4769)

:CAT2_14705
Char.SetHeading($scplayer, 5.0)
Char.RemoveFromGroup($catalina)
if 
  Char.IsInAnyCar($catalina)
goto_if_false @CAT2_14763
Char.WarpFromCarToCoord($catalina, 2318.242, 61.3145, 25.4759)
goto @CAT2_14783

:CAT2_14763
Char.SetCoordinates($catalina, 2318.242, 61.3145, 25.4759)

:CAT2_14783
Char.SetHeading($catalina, 350.0)
86@ = Car.Create(523, 2287.156, 61.9821, 25.4766)
Car.SetHeading(86@, 322.7361)
87@ = Char.CreateInsideCar(86@, PedType.CivMale, 283)
Char.SetDecisionMaker(87@, 62@)
Car.StartPlayback(86@, 123)
Car.SetProofs(86@, True, True, True, True, True)
88@ = Car.Create(523, 2289.629, 58.0551, 25.3359)
Car.SetHeading(88@, 330.5475)
Car.SetProofs(88@, True, True, True, True, True)
89@ = Char.CreateInsideCar(88@, PedType.CivMale, 283)
Char.SetDecisionMaker(89@, 62@)
Car.StartPlayback(88@, 124)
41@ += 1

:CAT2_14952
goto @CAT2_14967

:CAT2_14959
Streaming.RequestCarRecording(123)
Streaming.RequestCarRecording(124)

:CAT2_14967
if 
  41@ == 32
goto_if_false @CAT2_15059
if 
  not Car.IsDead(86@)
goto_if_false @CAT2_15059
if 
  not Car.IsPlaybackGoingOn(86@)
goto_if_false @CAT2_15059
if 
  not Char.IsDead(87@)
goto_if_false @CAT2_15059
Car.SetEngineOn(86@, False)
Task.LeaveAnyCar(87@)
Car.FreezePosition(86@, True)
41@ += 1

:CAT2_15059
if and
  41@ == 33
  560@ == 0
goto_if_false @CAT2_15165
if 
  not Car.IsDead(88@)
goto_if_false @CAT2_15165
if 
  not Car.IsPlaybackGoingOn(88@)
goto_if_false @CAT2_15165
if 
  not Char.IsDead(89@)
goto_if_false @CAT2_15165
Task.LeaveAnyCar(89@)
Car.SetEngineOn(88@, False)
Car.FreezePosition(88@, True)
Camera.DoFade(500, Fade.Out)
41@ += 1

:CAT2_15165
if 
  41@ == 34
goto_if_false @CAT2_15250
if 
  not Camera.GetFadingStatus
goto_if_false @CAT2_15250
560@ = 29
Player.SetControl($player1, True)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(500, Fade.In)
41@ += 1

:CAT2_15250
if 
  41@ == 35
goto_if_false @CAT2_15408
if 
  not Camera.GetFadingStatus
goto_if_false @CAT2_15408
if 
  not Char.IsDead(87@)
goto_if_false @CAT2_15322
Char.GiveWeapon(87@, WeaponType.Pistol, 9999)
Task.KillCharOnFoot(87@, $scplayer)
Char.SetOnlyDamagedByPlayer(87@, True)

:CAT2_15322
if 
  not Char.IsDead(89@)
goto_if_false @CAT2_15363
Char.GiveWeapon(89@, WeaponType.Shotgun, 9999)
Task.KillCharOnFoot(89@, $scplayer)
Char.SetOnlyDamagedByPlayer(89@, True)

:CAT2_15363
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_15401
Task.ShootAtCoord($catalina, 2322.183, 71.2342, 26.549, -2)

:CAT2_15401
41@ += 1

:CAT2_15408
if and
  41@ == 36
  560@ == 0
goto_if_false @CAT2_15490
if 
  not Camera.GetFadingStatus
goto_if_false @CAT2_15490
if and
  Char.IsDead(87@)
  Char.IsDead(89@)
goto_if_false @CAT2_15490
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 750
41@ += 1

:CAT2_15490
if 
  41@ == 37
goto_if_false @CAT2_15541
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_15541
Camera.DoFade(500, Fade.Out)
41@ += 1

:CAT2_15541
if 
  38 > 41@
goto_if_false @CAT2_15559

:CAT2_15559
if 
  41@ == 38
goto_if_false @CAT2_16307
if 
  not Camera.GetFadingStatus
goto_if_false @CAT2_16307
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
World.ClearArea(2321.218, 69.1035, 26.7314, 25.0, True)
Camera.SetFixedPosition(2325.291, 70.4759, 26.8236, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2324.353, 70.7834, 26.6641, SwitchType.JumpCut)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($catalina)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT2_15747
Char.WarpFromCarToCoord($scplayer, 2322.075, 69.6739, 25.4784)
goto @CAT2_15767

:CAT2_15747
Char.SetCoordinates($scplayer, 2322.075, 69.6739, 25.4784)

:CAT2_15767
Char.SetHeading($scplayer, 325.1885)
Char.RemoveFromGroup($catalina)
if 
  Char.IsInAnyCar($catalina)
goto_if_false @CAT2_15825
Char.WarpFromCarToCoord($catalina, 2321.63, 71.6478, 25.4724)
goto @CAT2_15845

:CAT2_15825
Char.SetCoordinates($catalina, 2321.63, 71.6478, 25.4724)

:CAT2_15845
Char.SetHeading($catalina, 295.8968)
Car.Delete(86@)
Car.Delete(88@)
Char.Delete(87@)
Char.Delete(89@)
if 
  not Car.IsDead(95@)
goto_if_false @CAT2_15896
Car.MarkAsNoLongerNeeded(95@)

:CAT2_15896
if 
  not Car.IsDead(96@)
goto_if_false @CAT2_15917
Car.MarkAsNoLongerNeeded(96@)

:CAT2_15917
if 
  not Car.IsDead(85@)
goto_if_false @CAT2_15938
Car.MarkAsNoLongerNeeded(85@)

:CAT2_15938
if 
  not Car.IsDead(86@)
goto_if_false @CAT2_15959
Car.MarkAsNoLongerNeeded(86@)

:CAT2_15959
World.ClearArea(2320.634, 79.9329, 27.9897, 100.0, True)
86@ = Car.Create(523, 2322.863, 73.0477, 26.0378)
Car.SetHeading(86@, 34.6853)
88@ = Car.Create(523, 2323.166, 70.1374, 26.0405)
Car.SetHeading(88@, 345.7562)
43@ = Sequence.Open()
Task.StandStill(-1, 750)
Task.EnterCarAsDriver(-1, 86@, -2)
Sequence.Close(43@)
Char.PerformSequence($catalina, 43@)
Sequence.Clear(43@)
43@ = Sequence.Open()
Task.StandStill(-1, 500)
Task.EnterCarAsDriver(-1, 88@, -2)
Sequence.Close(43@)
Char.PerformSequence($scplayer, 43@)
Sequence.Clear(43@)
Object.MarkAsNoLongerNeeded(113@)
Object.MarkAsNoLongerNeeded(114@)
Object.MarkAsNoLongerNeeded(115@)
Object.MarkAsNoLongerNeeded(72@)
Object.MarkAsNoLongerNeeded(73@)
Object.MarkAsNoLongerNeeded(74@)
Object.MarkAsNoLongerNeeded(75@)
Object.MarkAsNoLongerNeeded(76@)
Object.MarkAsNoLongerNeeded(77@)
Object.MarkAsNoLongerNeeded(78@)
Object.MarkAsNoLongerNeeded(70@)
Char.MarkAsNoLongerNeeded(63@)
Char.MarkAsNoLongerNeeded(64@)
Char.MarkAsNoLongerNeeded(65@)
Char.MarkAsNoLongerNeeded(66@)
Char.MarkAsNoLongerNeeded(298@)
Char.MarkAsNoLongerNeeded(299@)
Char.MarkAsNoLongerNeeded(300@)
Char.MarkAsNoLongerNeeded(301@)
Char.MarkAsNoLongerNeeded(302@)
Char.MarkAsNoLongerNeeded(303@)
Char.MarkAsNoLongerNeeded(304@)
Char.MarkAsNoLongerNeeded(305@)
Char.MarkAsNoLongerNeeded(306@)
Camera.DoFade(500, Fade.In)
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2500
41@ += 1
560@ = 30
561@ = 2
set_lvar_int_to_lvar_int 634@ = TIMERA
634@ += 400

:CAT2_16307
if 
  41@ == 39
goto_if_false @CAT2_16421
if 
  not Car.IsDead(86@)
goto_if_false @CAT2_16407
if 
  Char.IsSittingInCar($catalina, 86@)
goto_if_false @CAT2_16400
if and
  is_int_var_greater_than_int_lvar $game_timer > 42@
  560@ == 0
goto_if_false @CAT2_16400
Camera.DoFade(500, Fade.Out)
41@ += 1

:CAT2_16400
goto @CAT2_16421

:CAT2_16407
Camera.DoFade(500, Fade.Out)
41@ += 1

:CAT2_16421
if 
  41@ == 40
goto_if_false @CAT2_17517
if and
  Streaming.HasCarRecordingBeenLoaded(156)
  Streaming.HasCarRecordingBeenLoaded(157)
  Streaming.HasCarRecordingBeenLoaded(158)
  Streaming.HasCarRecordingBeenLoaded(159)
goto_if_false @CAT2_17497
if and
  Streaming.HasCarRecordingBeenLoaded(160)
  Streaming.HasCarRecordingBeenLoaded(161)
goto_if_false @CAT2_17480
if 
  not Camera.GetFadingStatus
goto_if_false @CAT2_17473
Player.SetControl($player1, True)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
122@ = Car.Create(599, 1307.095, 280.2934, 18.4062)
123@ = Car.Create(599, 1307.095, 290.2934, 18.4062)
124@ = Car.Create(599, 1307.095, 300.2934, 18.4062)
Car.FreezePosition(122@, True)
Car.FreezePosition(123@, True)
Car.FreezePosition(124@, True)
146@ = Car.Create(523, 2346.523, 62.9803, 25.3359)
147@ = Car.Create(523, 2346.682, 45.9405, 25.3359)
129@ = Char.CreateInsideCar(122@, PedType.Mission1, 283)
130@ = Char.CreateAsPassenger(122@, PedType.Mission1, 283, 0)
131@ = Char.CreateInsideCar(123@, PedType.Mission1, 283)
132@ = Char.CreateAsPassenger(123@, PedType.Mission1, 283, 0)
133@ = Char.CreateInsideCar(124@, PedType.Mission1, 283)
134@ = Char.CreateAsPassenger(124@, PedType.Mission1, 283, 0)
135@ = Char.CreateInsideCar(146@, PedType.Mission2, 283)
136@ = Char.CreateInsideCar(147@, PedType.Mission2, 283)
Char.SetRelationship(135@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(136@, RelationshipType.Hate, PedType.Player1)
166@ = DecisionMakerChar.Copy(65539)
363@ = DecisionMakerChar.Copy(65542)
DecisionMakerChar.ClearEventResponse(166@, 15)
DecisionMakerChar.ClearEventResponse(166@, 49)
DecisionMakerChar.ClearEventResponse(166@, 9)
DecisionMakerChar.ClearEventResponse(166@, 36)
DecisionMakerChar.ClearEventResponse(166@, 31)
DecisionMakerChar.ClearEventResponse(166@, 11)
DecisionMakerChar.ClearEventResponse(166@, 41)
DecisionMakerChar.AddEventResponse(166@, 15, 1000, 0.0, 100.0, 0.0, 100.0, True, True)
DecisionMakerChar.AddEventResponse(166@, 36, 1000, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse(166@, 9, 1000, 0.0, 75.0, 0.0, 75.0, True, True)
DecisionMakerChar.AddEventResponse(166@, 9, 415, 0.0, 25.0, 0.0, 25.0, True, True)
DecisionMakerChar.AddEventResponse(166@, 31, 1000, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse(166@, 36, 1000, 0.0, 100.0, 0.0, 0.0, True, True)
Char.SetDecisionMaker(129@, 363@)
Char.SetDecisionMaker(130@, 363@)
Char.SetDecisionMaker(131@, 363@)
Char.SetDecisionMaker(132@, 363@)
Char.SetDecisionMaker(133@, 363@)
Char.SetDecisionMaker(134@, 363@)
Char.SetDecisionMaker(135@, 363@)
Char.SetDecisionMaker(136@, 363@)
Char.SetCanBeKnockedOffBike(135@, 2)
Char.SetCanBeKnockedOffBike(136@, 2)
Char.GiveWeapon(129@, WeaponType.Pistol, 9999)
Char.GiveWeapon(130@, WeaponType.Pistol, 9999)
Char.GiveWeapon(131@, WeaponType.Pistol, 9999)
Char.GiveWeapon(132@, WeaponType.Pistol, 9999)
Char.GiveWeapon(133@, WeaponType.Pistol, 9999)
Char.GiveWeapon(134@, WeaponType.Pistol, 9999)
Char.GiveWeapon(135@, WeaponType.Pistol, 9999)
Char.GiveWeapon(136@, WeaponType.Pistol, 9999)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_17258
Char.GiveWeapon($catalina, WeaponType.Shotgun, 9999)

:CAT2_17258
148@ = 1290.025
149@ = 1294.242
150@ = 1282.681
151@ = 1285.585
152@ = 1289.389
153@ = 1285.593
154@ = 252.8313
155@ = 249.3508
156@ = 250.9628
157@ = 253.8959
158@ = 241.5564
159@ = 240.6378
160@ = 18.4062
161@ = 18.4062
162@ = 18.4062
163@ = 18.4062
164@ = 18.4062
165@ = 18.4062
121@ = 0
125@ = 0
126@ = 0
Camera.DoFade(500, Fade.In)
41@ += 1

:CAT2_17473
goto @CAT2_17490

:CAT2_17480
Streaming.RequestCarRecording(160)
Streaming.RequestCarRecording(161)

:CAT2_17490
goto @CAT2_17517

:CAT2_17497
Streaming.RequestCarRecording(156)
Streaming.RequestCarRecording(157)
Streaming.RequestCarRecording(158)
Streaming.RequestCarRecording(159)

:CAT2_17517
if 
  41@ == 41
goto_if_false @CAT2_17571
if 
  not Camera.GetFadingStatus
goto_if_false @CAT2_17571
56@ = 8
Char.SetRelationship($catalina, RelationshipType.Hate, PedType.Cop)
41@ += 1

:CAT2_17571
if 
  41@ > 9
goto_if_false @CAT2_17633
if 
  56@ == 0
goto_if_false @CAT2_17633
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_17633
56@ += 1

:CAT2_17633
if 
  56@ == 1
goto_if_false @CAT2_17687
$task_status = Char.GetScriptTaskStatus($catalina, 1491)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_17687
56@ += 1

:CAT2_17687
if 
  56@ == 2
goto_if_false @CAT2_17757
$task_status = Char.GetScriptTaskStatus($catalina, 1492)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_17757
set_lvar_int_to_var_int 167@ = $game_timer
167@ += 20000
56@ += 1

:CAT2_17757
if 
  56@ == 3
goto_if_false @CAT2_17867
168@ += 15
if or
  is_int_var_greater_than_int_lvar $game_timer > 167@
  41@ > 10
goto_if_false @CAT2_17867
if 
  41@ == 10
goto_if_false @CAT2_17860
Audio.ReportMissionAudioEventAtPosition(2312.094, -9.6433, 28.679, 1155)
gosub @CAT2_30052
41@ = 11

:CAT2_17860
56@ += 1

:CAT2_17867
if 
  56@ == 4
goto_if_false @CAT2_18239
if 
  41@ > 27
goto_if_false @CAT2_18239
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_18239
if and
  169@ == 0
  560@ == 0
goto_if_false @CAT2_18004
560@ = 19
561@ = 2
372@ = Blip.AddForChar($catalina)
Blip.SetAsFriendly(372@, True)
Task.GoStraightToCoord($catalina, 2315.391, -1.6768, 25.75, MoveState.Run, -2)
169@ = 1

:CAT2_18004
if 
  169@ == 1
goto_if_false @CAT2_18117
$task_status = Char.GetScriptTaskStatus($catalina, -1)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_18117
if 
  not Object.HasBeenDamaged($pc_door)
goto_if_false @CAT2_18110
169@ = 2
Task.ShootAtCoord($catalina, 2315.475, 1.0941, 26.8796, 1000)
170@ += 1
goto @CAT2_18117

:CAT2_18110
169@ = 2

:CAT2_18117
if 
  169@ == 2
goto_if_false @CAT2_18239
$task_status = Char.GetScriptTaskStatus($catalina, 1640)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_18239
if or
  Object.HasBeenDamaged($pc_door)
  170@ > 2
goto_if_false @CAT2_18232
Task.FollowPathNodesToCoord($catalina, 2315.551, 3.731, 25.4766, 6, -2)
169@ = 3
56@ += 1
goto @CAT2_18239

:CAT2_18232
169@ = 1

:CAT2_18239
if 
  34@ == 0
goto_if_false @CAT2_18376
if 
  56@ > 4
goto_if_false @CAT2_18376
if and
  35@ == 0
  560@ == 0
goto_if_false @CAT2_18323
Text.Print('CAT2_19', 4000, 1)
35@ = 1

:CAT2_18323
if 
  Object.HasBeenDamaged($pc_door)
goto_if_false @CAT2_18376
34@ = 1
560@ = 21
set_lvar_int_to_lvar_int 639@ = TIMERA
639@ += 2500
561@ = 3

:CAT2_18376
if 
  56@ == 5
goto_if_false @CAT2_20195
171@ = 2328.638
189@ = 9.9046
207@ = 25.4766
225@ = 82.0
251@ = 1
172@ = 2328.63
190@ = 12.0793
208@ = 26.4366
226@ = 102.156
252@ = 1
173@ = 2323.539
191@ = 8.1573
209@ = 30.1564
227@ = 119.8251
253@ = 0
174@ = 2313.919
192@ = 5.5612
210@ = 25.4766
228@ = 179.0108
254@ = 3
175@ = 2319.28
193@ = 10.1457
211@ = 25.4766
229@ = 173.7026
255@ = 1
176@ = 2322.422
194@ = 14.3559
212@ = 33.4834
230@ = 131.5315
256@ = 0
177@ = 2322.567
195@ = 22.3196
213@ = 25.4766
231@ = 191.9916
257@ = 5
178@ = 2317.422
196@ = 31.4408
214@ = 25.4688
232@ = 170.5408
258@ = 1
179@ = 2323.347
197@ = 32.5086
215@ = 30.3438
233@ = 167.5312
259@ = 2
180@ = 2314.06
198@ = 27.4771
216@ = 28.4834
234@ = 211.9221
260@ = 0
181@ = 2314.146
199@ = 32.6897
217@ = 30.3072
235@ = 218.8303
261@ = 0
182@ = 2324.323
200@ = 25.9529
218@ = 30.4834
236@ = 146.7435
262@ = 0
183@ = 2315.235
201@ = 44.7149
219@ = 27.6529
237@ = 177.4772
263@ = 1
184@ = 2322.142
202@ = 38.0272
220@ = 25.4698
238@ = 165.042
264@ = 5
185@ = 2316.281
203@ = 53.245
221@ = 25.4745
239@ = 211.6924
265@ = 3
186@ = 2316.977
204@ = 60.9693
222@ = 26.9906
240@ = 217.9312
266@ = 0
187@ = 2322.69
205@ = 57.5449
223@ = 31.9884
241@ = 174.0596
267@ = 0
188@ = 2313.39
206@ = 51.5349
224@ = 29.4834
242@ = 196.6579
268@ = 0
278@ = 0

:CAT2_19247
if 
  9 > 278@
goto_if_false @CAT2_20165
if 
  3 > 278@
goto_if_false @CAT2_19353
279@ = Math.RandomIntInRange(0, 6)

:CAT2_19292
if 
  280@(279@,18i) == 1
goto_if_false @CAT2_19353
279@ += 1
if 
  279@ == 6
goto_if_false @CAT2_19346
279@ = 0

:CAT2_19346
goto @CAT2_19292

:CAT2_19353
if and
  278@ > 2
  6 > 278@
goto_if_false @CAT2_19448
279@ = Math.RandomIntInRange(6, 12)

:CAT2_19387
if 
  280@(279@,18i) == 1
goto_if_false @CAT2_19448
279@ += 1
if 
  279@ == 12
goto_if_false @CAT2_19441
279@ = 6

:CAT2_19441
goto @CAT2_19387

:CAT2_19448
if and
  278@ > 5
  9 > 278@
goto_if_false @CAT2_19543
279@ = Math.RandomIntInRange(12, 18)

:CAT2_19482
if 
  280@(279@,18i) == 1
goto_if_false @CAT2_19543
279@ += 1
if 
  279@ == 18
goto_if_false @CAT2_19536
279@ = 12

:CAT2_19536
goto @CAT2_19482

:CAT2_19543
280@(279@,18i) = 1
set_lvar_int_to_lvar_int 316@(279@,18i) = 278@
298@(278@,9i) = Char.Create(PedType.CivMale, 283, 171@(279@,18f), 189@(279@,18f), 207@(279@,18f))
Char.SetShootRate(298@(278@,9i), 40)
Char.SetAccuracy(298@(278@,9i), 60)
set_lvar_int_to_lvar_int 307@(278@,9i) = 251@(279@,18i)
set_lvar_int_to_lvar_int 334@(278@,9i) = 279@
Char.SetHeading(298@(278@,9i), 225@(279@,18f))
279@ = Math.RandomIntInRange(0, 3)
if or
  3 > 279@
  343@ > 0
goto_if_false @CAT2_19722
Char.GiveWeapon(298@(278@,9i), WeaponType.Pistol, 9999)
goto @CAT2_19797

:CAT2_19722
if 
  6 > 334@(278@,9i)
goto_if_false @CAT2_19765
Char.GiveWeapon(298@(278@,9i), WeaponType.Pistol, 9999)
goto @CAT2_19797

:CAT2_19765
Char.GiveWeapon(298@(278@,9i), WeaponType.Shotgun, 9999)
Char.SetShootRate(298@(278@,9i), 10)
343@ = 1

:CAT2_19797
Char.SetRelationship(298@(278@,9i), RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(298@(278@,9i), RelationshipType.Hate, PedType.Special)
if 
  251@(279@,18i) == 0
goto_if_false @CAT2_19902
43@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(43@)
Char.PerformSequence(298@(278@,9i), 43@)
Sequence.Clear(43@)
Char.SetStayInSamePlace(298@(278@,9i), True)

:CAT2_19902
if 
  251@(279@,18i) == 1
goto_if_false @CAT2_19974
43@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Sequence.Close(43@)
Char.PerformSequence(298@(278@,9i), 43@)
Sequence.Clear(43@)
Char.SetStayInSamePlace(298@(278@,9i), True)

:CAT2_19974
if 
  251@(279@,18i) == 2
goto_if_false @CAT2_20029
43@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Sequence.Close(43@)
Char.PerformSequence(298@(278@,9i), 43@)
Sequence.Clear(43@)

:CAT2_20029
if 
  251@(279@,18i) == 3
goto_if_false @CAT2_20090
43@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Sequence.Close(43@)
Char.PerformSequence(298@(278@,9i), 43@)
Sequence.Clear(43@)

:CAT2_20090
if 
  251@(279@,18i) == 5
goto_if_false @CAT2_20151
43@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Sequence.Close(43@)
Char.PerformSequence(298@(278@,9i), 43@)
Sequence.Clear(43@)

:CAT2_20151
278@ += 1
goto @CAT2_19247

:CAT2_20165
346@ = 99
set_lvar_int_to_lvar_int 350@ = TIMERA
350@ += 30000
56@ = 6

:CAT2_20195
if 
  56@ == 6
goto_if_false @CAT2_23402
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_23402
if 
  346@ <> 99
goto_if_false @CAT2_20387
if 
  Char.IsDead(298@(346@,9i))
goto_if_false @CAT2_20297
set_lvar_int_to_lvar_int 278@ = 334@(346@,9i)
280@(278@,18i) = 0
346@ = 99

:CAT2_20297
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 350@
goto_if_false @CAT2_20387
if 
  346@ <> 99
goto_if_false @CAT2_20387
set_lvar_int_to_lvar_int 350@ = TIMERA
350@ += 30000
347@ = 1
set_lvar_int_to_lvar_int 278@ = 334@(346@,9i)
280@(278@,18i) = 0
346@ = 99

:CAT2_20387
if 
  346@ == 99
goto_if_false @CAT2_22520
if and
  344@ > 0
  10 > 344@
goto_if_false @CAT2_20518
349@ = Char.GetScriptTaskStatus($catalina, -1)
if 
  is_int_lvar_equal_to_constant 349@ == 1
goto_if_false @CAT2_20474
set_lvar_int_to_lvar_int 348@ = TIMERA
348@ += 8000

:CAT2_20474
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_20518
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 348@
goto_if_false @CAT2_20518
347@ = 1

:CAT2_20518
if 
  344@ == 0
goto_if_false @CAT2_20571
349@ = Char.GetScriptTaskStatus($catalina, -1)
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_20571
344@ = 1

:CAT2_20571
if 
  344@ == 1
goto_if_false @CAT2_20822
if 
  283@ == 1
goto_if_false @CAT2_20622
set_lvar_int_to_lvar_int 346@ = 319@
goto @CAT2_20759

:CAT2_20622
if 
  282@ == 1
goto_if_false @CAT2_20655
set_lvar_int_to_lvar_int 346@ = 318@
goto @CAT2_20759

:CAT2_20655
if 
  284@ == 1
goto_if_false @CAT2_20688
set_lvar_int_to_lvar_int 346@ = 320@
goto @CAT2_20759

:CAT2_20688
if 
  285@ == 1
goto_if_false @CAT2_20721
set_lvar_int_to_lvar_int 346@ = 321@
goto @CAT2_20759

:CAT2_20721
344@ = 2
560@ = 24
Task.FollowPathNodesToCoord($catalina, 2321.74, 10.5486, 25.4688, 6, -2)

:CAT2_20759
if 
  347@ == 1
goto_if_false @CAT2_20822
347@ = 0
344@ = 2
560@ = 24
Task.FollowPathNodesToCoord($catalina, 2321.74, 10.5486, 25.4688, 6, -2)

:CAT2_20822
if 
  344@ == 2
goto_if_false @CAT2_20971
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_20971
349@ = Char.GetScriptTaskStatus($catalina, 1525)
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_20971
if 
  Char.LocateAnyMeans3D($catalina, 2321.74, 10.5486, 25.4688, 3.0, 3.0, 3.0, False)
goto_if_false @CAT2_20947
344@ = 3
goto @CAT2_20971

:CAT2_20947
Task.FollowPathNodesToCoord($catalina, 2321.74, 10.5486, 25.4688, 6, -2)

:CAT2_20971
if and
  344@ == 3
  560@ == 0
goto_if_false @CAT2_21163
if 
  280@ == 1
goto_if_false @CAT2_21029
set_lvar_int_to_lvar_int 346@ = 316@
goto @CAT2_21100

:CAT2_21029
if 
  281@ == 1
goto_if_false @CAT2_21062
set_lvar_int_to_lvar_int 346@ = 317@
goto @CAT2_21100

:CAT2_21062
344@ = 4
560@ = 25
Task.FollowPathNodesToCoord($catalina, 2318.281, 18.5403, 25.4766, 6, -2)

:CAT2_21100
if 
  347@ == 1
goto_if_false @CAT2_21163
347@ = 0
344@ = 4
560@ = 25
Task.FollowPathNodesToCoord($catalina, 2318.281, 18.5403, 25.4766, 6, -2)

:CAT2_21163
if 
  344@ == 4
goto_if_false @CAT2_21312
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_21312
349@ = Char.GetScriptTaskStatus($catalina, 1525)
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_21312
if 
  Char.LocateAnyMeans3D($catalina, 2318.281, 18.5403, 25.4766, 3.0, 3.0, 3.0, False)
goto_if_false @CAT2_21288
344@ = 5
goto @CAT2_21312

:CAT2_21288
Task.FollowPathNodesToCoord($catalina, 2318.281, 18.5403, 25.4766, 6, -2)

:CAT2_21312
if 
  344@ == 5
goto_if_false @CAT2_21629
if 
  286@ == 1
goto_if_false @CAT2_21363
set_lvar_int_to_lvar_int 346@ = 322@
goto @CAT2_21566

:CAT2_21363
if 
  287@ == 1
goto_if_false @CAT2_21396
set_lvar_int_to_lvar_int 346@ = 323@
goto @CAT2_21566

:CAT2_21396
if 
  288@ == 1
goto_if_false @CAT2_21429
set_lvar_int_to_lvar_int 346@ = 324@
goto @CAT2_21566

:CAT2_21429
if 
  289@ == 1
goto_if_false @CAT2_21462
set_lvar_int_to_lvar_int 346@ = 325@
goto @CAT2_21566

:CAT2_21462
if 
  290@ == 1
goto_if_false @CAT2_21495
set_lvar_int_to_lvar_int 346@ = 326@
goto @CAT2_21566

:CAT2_21495
if 
  291@ == 1
goto_if_false @CAT2_21528
set_lvar_int_to_lvar_int 346@ = 327@
goto @CAT2_21566

:CAT2_21528
344@ = 6
560@ = 26
Task.FollowPathNodesToCoord($catalina, 2319.228, 34.565, 25.468, 6, -2)

:CAT2_21566
if 
  347@ == 1
goto_if_false @CAT2_21629
347@ = 0
344@ = 6
560@ = 26
Task.FollowPathNodesToCoord($catalina, 2319.228, 34.565, 25.468, 6, -2)

:CAT2_21629
if 
  344@ == 6
goto_if_false @CAT2_21778
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_21778
349@ = Char.GetScriptTaskStatus($catalina, 1525)
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_21778
if 
  Char.LocateAnyMeans3D($catalina, 2319.228, 34.565, 25.468, 3.0, 3.0, 3.0, False)
goto_if_false @CAT2_21754
344@ = 7
goto @CAT2_21778

:CAT2_21754
Task.FollowPathNodesToCoord($catalina, 2319.228, 34.565, 25.468, 6, -2)

:CAT2_21778
if and
  344@ == 7
  560@ == 0
goto_if_false @CAT2_21956
if 
  292@ == 1
goto_if_false @CAT2_21836
set_lvar_int_to_lvar_int 346@ = 328@
goto @CAT2_21900

:CAT2_21836
if 
  293@ == 1
goto_if_false @CAT2_21869
set_lvar_int_to_lvar_int 346@ = 329@
goto @CAT2_21900

:CAT2_21869
344@ = 8
Task.FollowPathNodesToCoord($catalina, 2318.622, 45.0292, 25.4762, 6, -2)

:CAT2_21900
if 
  347@ == 1
goto_if_false @CAT2_21956
347@ = 0
344@ = 8
Task.FollowPathNodesToCoord($catalina, 2318.622, 45.0292, 25.4762, 6, -2)

:CAT2_21956
if 
  344@ == 8
goto_if_false @CAT2_22025
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_22025
349@ = Char.GetScriptTaskStatus($catalina, -1)
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_22025
344@ = 9

:CAT2_22025
if and
  344@ == 9
  560@ == 0
goto_if_false @CAT2_22283
if 
  294@ == 1
goto_if_false @CAT2_22083
set_lvar_int_to_lvar_int 346@ = 330@
goto @CAT2_22220

:CAT2_22083
if 
  295@ == 1
goto_if_false @CAT2_22116
set_lvar_int_to_lvar_int 346@ = 331@
goto @CAT2_22220

:CAT2_22116
if 
  296@ == 1
goto_if_false @CAT2_22149
set_lvar_int_to_lvar_int 346@ = 332@
goto @CAT2_22220

:CAT2_22149
if 
  297@ == 1
goto_if_false @CAT2_22182
set_lvar_int_to_lvar_int 346@ = 333@
goto @CAT2_22220

:CAT2_22182
344@ = 10
560@ = 28
Task.FollowPathNodesToCoord($catalina, 2319.237, 64.4156, 25.4766, 6, -2)

:CAT2_22220
if 
  347@ == 1
goto_if_false @CAT2_22283
347@ = 0
344@ = 10
560@ = 28
Task.FollowPathNodesToCoord($catalina, 2319.237, 64.4156, 25.4766, 6, -2)

:CAT2_22283
if 
  344@ == 10
goto_if_false @CAT2_22438
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_22438
349@ = Char.GetScriptTaskStatus($catalina, -1)
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_22438
if 
  Char.LocateAnyMeans3D($catalina, 2319.237, 64.4156, 25.4766, 4.0, 4.0, 4.0, False)
goto_if_false @CAT2_22414
56@ = 7
41@ = 31
goto @CAT2_22438

:CAT2_22414
Task.FollowPathNodesToCoord($catalina, 2319.237, 64.4156, 25.4766, 6, -2)

:CAT2_22438
if 
  346@ <> 99
goto_if_false @CAT2_22520
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_22520
if 
  not Char.IsDead(298@(346@,9i))
goto_if_false @CAT2_22520
Task.KillCharOnFoot($catalina, 298@(346@,9i))
set_lvar_int_to_lvar_int 350@ = TIMERA
350@ += 15000

:CAT2_22520
278@ = 0

:CAT2_22527
if 
  9 > 278@
goto_if_false @CAT2_23402
if 
  not Char.IsDead(298@(278@,9i))
goto_if_false @CAT2_23388
if 
  307@(278@,9i) == 1
goto_if_false @CAT2_22727
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 269@(278@,9i)
goto_if_false @CAT2_22727
345@ = Char.GetScriptTaskStatus(298@(278@,9i), 1259)
if 
  is_int_lvar_equal_to_constant 345@ == 7
goto_if_false @CAT2_22727
279@ = Math.RandomIntInRange(4000, 8000)
set_lvar_int_to_lvar_int 269@(278@,9i) = TIMERA
add_int_lvar_to_int_lvar 269@(278@,9i) += 279@
if 
  Char.IsDucking(298@(278@,9i))
goto_if_false @CAT2_22716
Task.ToggleDuck(298@(278@,9i), False)
goto @CAT2_22727

:CAT2_22716
Task.ToggleDuck(298@(278@,9i), True)

:CAT2_22727
if 
  307@(278@,9i) == 2
goto_if_false @CAT2_22805
if 
  not Char.IsRespondingToEvent(298@(278@,9i), 36)
goto_if_false @CAT2_22805
Task.StayInSamePlace(298@(278@,9i), False)
Task.KillCharOnFoot(298@(278@,9i), $scplayer)
307@(278@,9i) = 4

:CAT2_22805
if 
  307@(278@,9i) == 3
goto_if_false @CAT2_23084
243@ = Char.GetHeading(298@(278@,9i))
244@, 245@, 246@ = Char.GetCoordinates(298@(278@,9i))
249@ = Math.Sin(243@)
250@ = Math.Cos(243@)
set_lvar_float_to_lvar_float 247@ = 249@
247@ *= -2.5
add_float_lvar_to_float_lvar 247@ += 244@
set_lvar_float_to_lvar_float 248@ = 250@
248@ *= 2.5
add_float_lvar_to_float_lvar 248@ += 245@
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_23084
if or
  Char.LocateAnyMeans3D($scplayer, 247@, 248@, 25.7, 5.0, 5.0, 3.0, False)
  Char.LocateAnyMeans3D($catalina, 247@, 248@, 25.7, 5.0, 5.0, 3.0, False)
goto_if_false @CAT2_23084
Task.StayInSamePlace(298@(278@,9i), False)
Task.PlayAnimNonInterruptable(298@(278@,9i), "CROUCH_ROLL_L", "PED", 8.0, False, True, True, False, -1)
307@(278@,9i) = 0

:CAT2_23084
if 
  307@(278@,9i) == 5
goto_if_false @CAT2_23388
243@ = Char.GetHeading(298@(278@,9i))
244@, 245@, 246@ = Char.GetCoordinates(298@(278@,9i))
249@ = Math.Sin(243@)
250@ = Math.Cos(243@)
set_lvar_float_to_lvar_float 247@ = 249@
247@ *= -2.5
add_float_lvar_to_float_lvar 247@ += 244@
set_lvar_float_to_lvar_float 248@ = 250@
248@ *= 2.5
add_float_lvar_to_float_lvar 248@ += 245@
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_23388
if or
  Char.LocateAnyMeans3D($scplayer, 247@, 248@, 25.7, 5.0, 5.0, 3.0, False)
  Char.LocateAnyMeans3D($catalina, 247@, 248@, 25.7, 5.0, 5.0, 3.0, False)
goto_if_false @CAT2_23388
if 
  560@ == 0
goto_if_false @CAT2_23322
560@ = 27

:CAT2_23322
Task.StayInSamePlace(298@(278@,9i), False)
Task.PlayAnimNonInterruptable(298@(278@,9i), "CROUCH_ROLL_R", "PED", 8.0, False, True, True, False, -1)
307@(278@,9i) = 0

:CAT2_23388
278@ += 1
goto @CAT2_22527

:CAT2_23402
if 
  56@ == 8
goto_if_false @CAT2_28299
if 
  41@ > 40
goto_if_false @CAT2_28299
if 
  351@ == 0
goto_if_false @CAT2_23694
if 
  Char.LocateAnyMeans3D($scplayer, 2130.689, 149.1074, 0.3268, 30.0, 30.0, 30.0, False)
goto_if_false @CAT2_23694
Streaming.RequestModel(523)
Streaming.RequestModel(283)
Streaming.RequestModel(346)
if and
  Streaming.HasModelLoaded(523)
  Streaming.HasModelLoaded(283)
  Streaming.HasModelLoaded(346)
goto_if_false @CAT2_23694
351@ = 1
353@ = Car.Create(523, 2048.156, 195.1577, 15.8884)
Car.SwitchSiren(353@, True)
Car.SetHeading(353@, 270.0)
354@ = Char.CreateInsideCar(353@, PedType.Mission1, 283)
Char.GiveWeapon(354@, WeaponType.Pistol, 9999)
355@ = Sequence.Open()
Task.CarDriveToCoord(-1, 353@, 2105.236, 179.1932, 0.5812, 15.0, DriveMode.Straightline, 0, DrivingMode.StopForCars)
Task.CarTempAction(-1, 353@, TempAction.HandbrakeTurnRight, 1000)
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(355@)
Char.PerformSequence(354@, 355@)
Sequence.Clear(355@)

:CAT2_23694
if 
  126@ == 0
goto_if_false @CAT2_23843
if and
  not Car.IsDead(88@)
  not Car.IsDead(86@)
  not Char.IsDead($catalina)
  not Car.IsDead(146@)
  not Car.IsDead(147@)
goto_if_false @CAT2_23843
if 
  Char.IsInCar($catalina, 86@)
goto_if_false @CAT2_23843
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_23790
Char.SetCanBeKnockedOffBike($catalina, 2)

:CAT2_23790
126@ = 1
Car.StartPlayback(86@, 157)
Car.StartPlayback(146@, 160)
Car.StartPlayback(147@, 161)
Car.SwitchSiren(146@, True)
Car.SwitchSiren(147@, True)
143@ = Char.GetCarIsUsing($scplayer)

:CAT2_23843
if 
  126@ > 0
goto_if_false @CAT2_24094
if 
  not Car.IsDead(146@)
goto_if_false @CAT2_23924
if 
  Car.IsPlaybackGoingOn(146@)
goto_if_false @CAT2_23924
356@ = Car.GetDriver(146@)
if 
  356@ == -1
goto_if_false @CAT2_23924
Car.StopPlayback(146@)

:CAT2_23924
if 
  not Car.IsDead(147@)
goto_if_false @CAT2_24094
if 
  Car.IsPlaybackGoingOn(147@)
goto_if_false @CAT2_24094
356@ = Car.GetDriver(147@)
if 
  356@ == -1
goto_if_false @CAT2_23994
Car.StopPlayback(147@)
goto @CAT2_24094

:CAT2_23994
if 
  358@ == 0
goto_if_false @CAT2_24094
$x, $y, $z = Car.GetCoordinates(147@)
if 
  1570.0 > $x
goto_if_false @CAT2_24094
if 
  Car.IsInAirProper(147@)
goto_if_false @CAT2_24094
if 
  not Char.IsDead(356@)
goto_if_false @CAT2_24094
Task.LeaveCarImmediately(356@, 147@)
358@ = 1

:CAT2_24094
if 
  126@ == 1
goto_if_false @CAT2_24867
if and
  not Char.IsDead($catalina)
  not Car.IsDead(86@)
goto_if_false @CAT2_24867
if 
  121@ == 0
goto_if_false @CAT2_24710
$x, $y, $z = Char.GetCoordinates($catalina)
47@, 48@, 49@ = Char.GetCoordinates($scplayer)
set_var_float_to_lvar_float $distance = 47@
sub_float_var_from_float_var $distance -= $x
if 
  0.0 > $distance
goto_if_false @CAT2_24226
$distance = 0.0

:CAT2_24226
53@ = 2000.0
div_float_lvar_by_float_var 53@ /= $distance
53@ /= 100.0
if 
  53@ > 1.5
goto_if_false @CAT2_24285
53@ = 1.5

:CAT2_24285
if 
  0.3 > 53@
goto_if_false @CAT2_24316
53@ = 0.3

:CAT2_24316
if and
  is_int_lvar_greater_than_int_lvar TIMERA > 359@
  37 > 36@
goto_if_false @CAT2_24429
if and
  $distance > 10.0
  50.0 > $distance
goto_if_false @CAT2_24429
if 
  560@ == 0
goto_if_false @CAT2_24429
set_lvar_int_to_lvar_int 560@ = 36@
$wz1_health_bar = 1
set_lvar_int_to_lvar_int 359@ = TIMERA
359@ += 8000
36@ += 1

:CAT2_24429
if 
  not Car.IsDead(146@)
goto_if_false @CAT2_24471
if 
  Car.IsInAirProper(146@)
goto_if_false @CAT2_24471
53@ = 1.0

:CAT2_24471
if 
  not Car.IsDead(147@)
goto_if_false @CAT2_24605
if 
  Car.IsInAirProper(147@)
goto_if_false @CAT2_24513
53@ = 1.0

:CAT2_24513
if 
  not Char.IsDead(136@)
goto_if_false @CAT2_24605
if 
  not Char.IsInAnyCar(136@)
goto_if_false @CAT2_24605
if 
  360@ == 0
goto_if_false @CAT2_24605
Char.GiveWeapon(136@, WeaponType.Pistol, 9999)
Task.KillCharOnFoot(136@, $scplayer)
Char.SetRelationship(136@, RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(136@, 166@)
360@ = 1

:CAT2_24605
if 
  not Car.IsDead(86@)
goto_if_false @CAT2_24647
if 
  Car.IsInAirProper(86@)
goto_if_false @CAT2_24647
53@ = 1.0

:CAT2_24647
Car.SetPlaybackSpeed(86@, 53@)
if 
  not Car.IsDead(146@)
goto_if_false @CAT2_24679
Car.SetPlaybackSpeed(146@, 53@)

:CAT2_24679
if 
  not Car.IsDead(147@)
goto_if_false @CAT2_24703
Car.SetPlaybackSpeed(147@, 53@)

:CAT2_24703
goto @CAT2_24772

:CAT2_24710
Car.SetPlaybackSpeed(86@, 1.0)
if 
  not Car.IsDead(146@)
goto_if_false @CAT2_24746
Car.SetPlaybackSpeed(146@, 1.0)

:CAT2_24746
if 
  not Car.IsDead(147@)
goto_if_false @CAT2_24772
Car.SetPlaybackSpeed(147@, 1.0)

:CAT2_24772
if 
  Char.IsInArea2D($catalina, 1304.957, 252.9172, 1275.84, 241.8114, False)
goto_if_false @CAT2_24867
126@ = 2
DecisionMakerChar.AddEventResponse(38@, 36, 1000, 0.0, 100.0, 0.0, 0.0, True, True)
set_lvar_int_to_lvar_int 127@ = TIMERA
127@ += 900

:CAT2_24867
if 
  126@ == 2
goto_if_false @CAT2_25010
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 127@
goto_if_false @CAT2_25010
if and
  not Car.IsDead(86@)
  not Char.IsDead($catalina)
goto_if_false @CAT2_25010
set_lvar_int_to_lvar_int 361@ = TIMERA
361@ += 1000
128@ = Sequence.Open()
Task.LeaveCarImmediately(-1, 86@)
Task.GoStraightToCoord(-1, 1286.969, 247.1966, 18.4062, MoveState.Run, -2)
Task.HandsUp(-1, 40000)
Sequence.Close(128@)
Char.PerformSequence($catalina, 128@)
Sequence.Clear(128@)
126@ = 3

:CAT2_25010
if 
  361@ > 0
goto_if_false @CAT2_25099
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 361@
goto_if_false @CAT2_25099
Text.ClearPrints
Text.Print('CAT2_16', 6000, 1)
40@ = Blip.AddForCoord(867.6723, -30.3543, 62.1893)
361@ = 0
126@ = 4

:CAT2_25099
if 
  126@ == 4
goto_if_false @CAT2_25670
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_25670
if or
  Char.LocateAnyMeansChar3D($scplayer, $catalina, 15.0, 15.0, 15.0, False)
  Char.IsShootingInArea($scplayer, 1389.021, 67.2039, 1232.628, 407.097, False)
goto_if_false @CAT2_25670
Char.MarkAsNoLongerNeeded(135@)
Char.MarkAsNoLongerNeeded(136@)
Car.MarkAsNoLongerNeeded(122@)
Car.MarkAsNoLongerNeeded(123@)
Car.MarkAsNoLongerNeeded(124@)
if 
  Char.DoesExist(354@)
goto_if_false @CAT2_25242
Char.MarkAsNoLongerNeeded(354@)

:CAT2_25242
if 
  not Car.IsDead(353@)
goto_if_false @CAT2_25289
if 
  not Char.IsInCar($scplayer, 353@)
goto_if_false @CAT2_25282
Car.MarkAsNoLongerNeeded(353@)

:CAT2_25282
goto @CAT2_25294

:CAT2_25289
Car.MarkAsNoLongerNeeded(147@)

:CAT2_25294
if 
  not Car.IsDead(146@)
goto_if_false @CAT2_25341
if 
  not Char.IsInCar($scplayer, 146@)
goto_if_false @CAT2_25334
Car.MarkAsNoLongerNeeded(146@)

:CAT2_25334
goto @CAT2_25346

:CAT2_25341
Car.MarkAsNoLongerNeeded(146@)

:CAT2_25346
if 
  not Car.IsDead(147@)
goto_if_false @CAT2_25393
if 
  not Char.IsInCar($scplayer, 147@)
goto_if_false @CAT2_25386
Car.MarkAsNoLongerNeeded(147@)

:CAT2_25386
goto @CAT2_25398

:CAT2_25393
Car.MarkAsNoLongerNeeded(147@)

:CAT2_25398
if 
  not Car.IsDead(88@)
goto_if_false @CAT2_25445
if 
  not Char.IsInCar($scplayer, 88@)
goto_if_false @CAT2_25438
Car.MarkAsNoLongerNeeded(88@)

:CAT2_25438
goto @CAT2_25450

:CAT2_25445
Car.MarkAsNoLongerNeeded(88@)

:CAT2_25450
if 
  not Car.IsDead(86@)
goto_if_false @CAT2_25497
if 
  not Char.IsInCar($scplayer, 86@)
goto_if_false @CAT2_25490
Car.MarkAsNoLongerNeeded(86@)

:CAT2_25490
goto @CAT2_25502

:CAT2_25497
Car.MarkAsNoLongerNeeded(86@)

:CAT2_25502
362@ = 0

:CAT2_25509
if 
  8 > 362@
goto_if_false @CAT2_25605
if 
  not Char.IsDead(129@(362@,8i))
goto_if_false @CAT2_25591
Char.ClearTasks(129@(362@,8i))
Char.MarkAsNoLongerNeeded(129@(362@,8i))
Char.SetRelationship(129@(362@,8i), RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(129@(362@,8i), RelationshipType.Hate, PedType.Special)

:CAT2_25591
362@ += 1
goto @CAT2_25509

:CAT2_25605
35@ = 0
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT2_25651
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $catalina)
Group.SetDecisionMaker($Players_Group, 37@)

:CAT2_25651
364@ = 1
Blip.Remove(372@)
126@ = 5

:CAT2_25670
if 
  126@ == 5
goto_if_false @CAT2_27481
if 
  365@ == 0
goto_if_false @CAT2_25803
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 144@
goto_if_false @CAT2_25803
362@ = 0

:CAT2_25732
if 
  8 > 362@
goto_if_false @CAT2_25796
if 
  not Char.IsDead(129@(362@,8i))
goto_if_false @CAT2_25782
Task.SetCharDecisionMaker(129@(362@,8i), 166@)

:CAT2_25782
362@ += 1
goto @CAT2_25732

:CAT2_25796
365@ = 1

:CAT2_25803
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_27481
if 
  Char.IsInAnyCar($catalina)
goto_if_false @CAT2_27314
if 
  366@ == 0
goto_if_false @CAT2_27314
366@ = 1
562@ = 1
$wz1_health_bar = 1
if 
  $cat_getaway_dialogue == 0
goto_if_false @CAT2_26612
if 
  $cat_counter == 0
goto_if_false @CAT2_26250
603@ = 2
604@ = 1
605@ = 1
606@ = 1
607@ = 1
608@ = 1
609@ = 2
610@ = 1
611@ = 1
612@ = 2
613@ = 1
set_lvar_text_label 454@s = 'CAT_DF'
set_lvar_text_label 456@s = 'CAT_DG'
set_lvar_text_label 458@s = 'CAT_DH'
set_lvar_text_label 460@s = 'CAT_DI'
set_lvar_text_label 462@s = 'CAT_DJ'
set_lvar_text_label 464@s = 'CAT_DK'
set_lvar_text_label 466@s = 'CAT_DL'
set_lvar_text_label 468@s = 'CAT_DM'
set_lvar_text_label 470@s = 'CAT_DN'
set_lvar_text_label 472@s = 'CAT_DO'
set_lvar_text_label 474@s = 'CAT_DP'
set_lvar_int_to_constant 534@ = 2300
set_lvar_int_to_constant 535@ = 2222
set_lvar_int_to_constant 536@ = 2223
set_lvar_int_to_constant 537@ = 2224
set_lvar_int_to_constant 538@ = 2225
set_lvar_int_to_constant 539@ = 2226
set_lvar_int_to_constant 540@ = 2301
set_lvar_int_to_constant 541@ = 2227
set_lvar_int_to_constant 542@ = 2228
set_lvar_int_to_constant 543@ = 2302
set_lvar_int_to_constant 544@ = 2229
560@ = 40
561@ = 11
goto @CAT2_26612

:CAT2_26250
603@ = 1
604@ = 2
605@ = 1
606@ = 1
607@ = 1
608@ = 1
609@ = 1
610@ = 2
611@ = 1
612@ = 1
613@ = 2
614@ = 1
set_lvar_text_label 454@s = 'CAT_DA'
set_lvar_text_label 456@s = 'CAT_DF'
set_lvar_text_label 458@s = 'CAT_DG'
set_lvar_text_label 460@s = 'CAT_DH'
set_lvar_text_label 462@s = 'CAT_DI'
set_lvar_text_label 464@s = 'CAT_DJ'
set_lvar_text_label 466@s = 'CAT_DK'
set_lvar_text_label 468@s = 'CAT_DL'
set_lvar_text_label 470@s = 'CAT_DM'
set_lvar_text_label 472@s = 'CAT_DN'
set_lvar_text_label 474@s = 'CAT_DO'
set_lvar_text_label 476@s = 'CAT_DP'
set_lvar_int_to_constant 534@ = 2217
set_lvar_int_to_constant 535@ = 2300
set_lvar_int_to_constant 536@ = 2222
set_lvar_int_to_constant 537@ = 2223
set_lvar_int_to_constant 538@ = 2224
set_lvar_int_to_constant 539@ = 2225
set_lvar_int_to_constant 540@ = 2226
set_lvar_int_to_constant 541@ = 2301
set_lvar_int_to_constant 542@ = 2227
set_lvar_int_to_constant 543@ = 2228
set_lvar_int_to_constant 544@ = 2302
set_lvar_int_to_constant 545@ = 2229
560@ = 40
561@ = 12

:CAT2_26612
if 
  $cat_getaway_dialogue == 1
goto_if_false @CAT2_27050
603@ = 1
604@ = 2
605@ = 1
606@ = 2
607@ = 2
608@ = 1
609@ = 2
610@ = 1
611@ = 2
612@ = 1
613@ = 1
614@ = 1
615@ = 1
616@ = 2
set_lvar_text_label 454@s = 'CAT_GA'
set_lvar_text_label 456@s = 'CAT_GB'
set_lvar_text_label 458@s = 'CAT_GC'
set_lvar_text_label 460@s = 'CAT_GD'
set_lvar_text_label 462@s = 'CAT_GE'
set_lvar_text_label 464@s = 'CAT_GF'
set_lvar_text_label 466@s = 'CAT_GG'
set_lvar_text_label 468@s = 'CAT_GH'
set_lvar_text_label 470@s = 'CAT_GI'
set_lvar_text_label 472@s = 'CAT_GJ'
set_lvar_text_label 474@s = 'CAT_GK'
set_lvar_text_label 476@s = 'CAT_GL'
set_lvar_text_label 478@s = 'CAT_GM'
set_lvar_text_label 480@s = 'CAT_GN'
set_lvar_int_to_constant 534@ = 2247
set_lvar_int_to_constant 535@ = 2313
set_lvar_int_to_constant 536@ = 2248
set_lvar_int_to_constant 537@ = 2314
set_lvar_int_to_constant 538@ = 2315
set_lvar_int_to_constant 539@ = 2249
set_lvar_int_to_constant 540@ = 2316
set_lvar_int_to_constant 541@ = 2250
set_lvar_int_to_constant 542@ = 2317
set_lvar_int_to_constant 543@ = 2251
set_lvar_int_to_constant 544@ = 2252
set_lvar_int_to_constant 545@ = 2253
set_lvar_int_to_constant 546@ = 2254
set_lvar_int_to_constant 547@ = 2318
560@ = 40
561@ = 14

:CAT2_27050
if 
  $cat_getaway_dialogue == 2
goto_if_false @CAT2_27314
603@ = 1
604@ = 2
605@ = 1
606@ = 2
607@ = 1
608@ = 2
609@ = 1
610@ = 1
set_lvar_text_label 454@s = 'CAT_OA'
set_lvar_text_label 456@s = 'CAT_OB'
set_lvar_text_label 458@s = 'CAT_OC'
set_lvar_text_label 460@s = 'CAT_OD'
set_lvar_text_label 462@s = 'CAT_OE'
set_lvar_text_label 464@s = 'CAT_OF'
set_lvar_text_label 466@s = 'CAT_OG'
set_lvar_text_label 468@s = 'CAT_OH'
set_lvar_int_to_constant 534@ = 2281
set_lvar_int_to_constant 535@ = 2332
set_lvar_int_to_constant 536@ = 2282
set_lvar_int_to_constant 537@ = 2333
set_lvar_int_to_constant 538@ = 2283
set_lvar_int_to_constant 539@ = 2334
set_lvar_int_to_constant 540@ = 2284
set_lvar_int_to_constant 541@ = 2285
560@ = 40
561@ = 8

:CAT2_27314
if and
  Char.LocateAnyMeans3D($scplayer, 863.6693, -30.852, 62.1615, 4.0, 4.0, 4.0, True)
  Char.LocateAnyMeans3D($catalina, 863.6693, -30.852, 62.1615, 4.0, 4.0, 4.0, False)
goto_if_false @CAT2_27418
Blip.Remove(40@)
Player.SetControl($player1, False)
56@ = 9

:CAT2_27418
if 
  35@ == 0
goto_if_false @CAT2_27481
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CAT2_27481
if 
  560@ == 0
goto_if_false @CAT2_27481
560@ = 37
35@ = 1

:CAT2_27481
if 
  145@ == 2
goto_if_false @CAT2_27681
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_27681
if 
  not Char.LocateAnyMeans3D($catalina, 1287.5, 249.2, 19.22, 60.0, 60.0, 60.0, False)
goto_if_false @CAT2_27681
145@ = 3
if 
  not Car.IsDead(122@)
goto_if_false @CAT2_27591
Car.MarkAsNoLongerNeeded(122@)

:CAT2_27591
if 
  not Car.IsDead(123@)
goto_if_false @CAT2_27612
Car.MarkAsNoLongerNeeded(123@)

:CAT2_27612
if 
  not Car.IsDead(124@)
goto_if_false @CAT2_27633
Car.MarkAsNoLongerNeeded(124@)

:CAT2_27633
137@ = 0

:CAT2_27640
if 
  6 > 137@
goto_if_false @CAT2_27681
Char.MarkAsNoLongerNeeded(129@(137@,8i))
137@ += 1
goto @CAT2_27640

:CAT2_27681
if 
  121@ == 0
goto_if_false @CAT2_27900
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_27900
if 
  Char.IsInArea2D($catalina, 1393.246, 233.1637, 1325.073, 190.1405, False)
goto_if_false @CAT2_27900
121@ = 1
if and
  not Car.IsDead(122@)
  not Car.IsDead(123@)
  not Car.IsDead(124@)
goto_if_false @CAT2_27900
Car.StartPlayback(122@, 156)
Car.StartPlayback(123@, 158)
Car.StartPlayback(124@, 159)
Car.FreezePosition(122@, False)
Car.FreezePosition(123@, False)
Car.FreezePosition(124@, False)
Car.SwitchSiren(122@, True)
Car.SwitchSiren(123@, True)
Car.SwitchSiren(124@, True)
set_lvar_int_to_lvar_int 138@ = TIMERA
138@ += 4000
set_lvar_int_to_lvar_int 139@ = TIMERA
139@ += 4000
set_lvar_int_to_lvar_int 140@ = TIMERA
140@ += 4000

:CAT2_27900
if 
  121@ == 1
goto_if_false @CAT2_28299
if and
  not Car.IsDead(122@)
  not Car.IsDead(123@)
  not Car.IsDead(124@)
  not Char.IsDead($catalina)
goto_if_false @CAT2_28299
137@ = 0

:CAT2_27956
if 
  6 > 137@
goto_if_false @CAT2_28299
141@ = 0
if 
  not Char.IsDead(129@(137@,8i))
goto_if_false @CAT2_28285
if 
  Char.IsSittingInAnyCar(129@(137@,8i))
goto_if_false @CAT2_28285
if 
  2 > 137@
goto_if_false @CAT2_28065
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 138@
goto_if_false @CAT2_28065
141@ = 1

:CAT2_28065
if and
  4 > 137@
  137@ > 1
goto_if_false @CAT2_28116
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 139@
goto_if_false @CAT2_28116
141@ = 1

:CAT2_28116
if 
  137@ > 3
goto_if_false @CAT2_28160
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 140@
goto_if_false @CAT2_28160
141@ = 1

:CAT2_28160
if 
  141@ == 1
goto_if_false @CAT2_28285
128@ = Sequence.Open()
if or
  137@ == 0
  137@ == 3
  137@ == 4
goto_if_false @CAT2_28221
Task.ToggleDuck(-1, True)

:CAT2_28221
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 148@(137@,6f), 154@(137@,6f), 160@(137@,6f), MoveState.Run, -2)
Task.AimGunAtChar(-1, $catalina, -2)
Sequence.Close(128@)
Char.PerformSequence(129@(137@,8i), 128@)
Sequence.Clear(128@)

:CAT2_28285
137@ += 1
goto @CAT2_27956

:CAT2_28299
if 
  56@ == 9
goto_if_false @CAT2_30045
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @CAT2_28344
367@ = 3
559@ = 5

:CAT2_28344
if 
  367@ == 0
goto_if_false @CAT2_28404
Player.AlterWantedLevel($player1, 0)
559@ = 5
555@ = 0
556@ = 0
$wz1_health_bar = 1
367@ = 1

:CAT2_28404
if 
  367@ == 1
goto_if_false @CAT2_29734
if 
  560@ == 0
goto_if_false @CAT2_29734
if 
  559@ == 1
goto_if_false @CAT2_29734
562@ = 0
if 
  $cat_counter == 0
goto_if_false @CAT2_28845
564@ = 1
565@ = 1
566@ = 1
567@ = 2
568@ = 2
569@ = 1
570@ = 1
571@ = 1
572@ = 2
573@ = 2
574@ = 2
575@ = 2
set_lvar_int_to_constant 495@ = 2230
set_lvar_int_to_constant 496@ = 2231
set_lvar_int_to_constant 497@ = 2232
set_lvar_int_to_constant 498@ = 2303
set_lvar_int_to_constant 499@ = 2304
set_lvar_int_to_constant 500@ = 2233
set_lvar_int_to_constant 501@ = 2234
set_lvar_int_to_constant 502@ = 2235
set_lvar_int_to_constant 503@ = 2305
set_lvar_int_to_constant 504@ = 2306
set_lvar_int_to_constant 505@ = 2307
set_lvar_int_to_constant 506@ = 2308
set_lvar_text_label 376@s = 'CAT_EA'
set_lvar_text_label 378@s = 'CAT_EB'
set_lvar_text_label 380@s = 'CAT_EC'
set_lvar_text_label 382@s = 'CAT_ED'
set_lvar_text_label 384@s = 'CAT_EE'
set_lvar_text_label 386@s = 'CAT_EF'
set_lvar_text_label 388@s = 'CAT_EG'
set_lvar_text_label 390@s = 'CAT_EH'
set_lvar_text_label 392@s = 'CAT_EI'
set_lvar_text_label 394@s = 'CAT_EJ'
set_lvar_text_label 396@s = 'CAT_EK'
set_lvar_text_label 398@s = 'CAT_EL'
560@ = 1
561@ = 12

:CAT2_28845
if 
  $cat_counter == 1
goto_if_false @CAT2_29051
564@ = 1
565@ = 2
566@ = 2
567@ = 2
568@ = 1
569@ = 1
set_lvar_int_to_constant 495@ = 2255
set_lvar_int_to_constant 496@ = 2319
set_lvar_int_to_constant 497@ = 2320
set_lvar_int_to_constant 498@ = 2321
set_lvar_int_to_constant 499@ = 2256
set_lvar_int_to_constant 500@ = 2257
set_lvar_text_label 376@s = 'CAT_HA'
set_lvar_text_label 378@s = 'CAT_HB'
set_lvar_text_label 380@s = 'CAT_HC'
set_lvar_text_label 382@s = 'CAT_HD'
set_lvar_text_label 384@s = 'CAT_HE'
set_lvar_text_label 386@s = 'CAT_HF'
560@ = 1
561@ = 6

:CAT2_29051
if 
  $cat_counter == 2
goto_if_false @CAT2_29170
564@ = 1
565@ = 1
566@ = 1
set_lvar_int_to_constant 495@ = 2273
set_lvar_int_to_constant 496@ = 2274
set_lvar_int_to_constant 497@ = 2275
set_lvar_text_label 376@s = 'CAT_MA'
set_lvar_text_label 378@s = 'CAT_MB'
set_lvar_text_label 380@s = 'CAT_MC'
560@ = 1
561@ = 3

:CAT2_29170
if 
  $cat_counter == 3
goto_if_false @CAT2_29376
564@ = 1
565@ = 2
566@ = 1
567@ = 1
568@ = 1
569@ = 1
set_lvar_int_to_constant 495@ = 2286
set_lvar_int_to_constant 496@ = 2335
set_lvar_int_to_constant 497@ = 2287
set_lvar_int_to_constant 498@ = 2288
set_lvar_int_to_constant 499@ = 2289
set_lvar_int_to_constant 500@ = 2290
set_lvar_text_label 376@s = 'CAT_PA'
set_lvar_text_label 378@s = 'CAT_PB'
set_lvar_text_label 380@s = 'CAT_PC'
set_lvar_text_label 382@s = 'CAT_PD'
set_lvar_text_label 384@s = 'CAT_PE'
set_lvar_text_label 386@s = 'CAT_PF'
560@ = 1
561@ = 6

:CAT2_29376
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_29406
$x, $y, $z = Char.GetCoordinates($catalina)

:CAT2_29406
World.ClearArea($x, $y, $z, 20.0, True)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.SetFixedPosition(854.5403, -22.1425, 64.3802, 0.0, 0.0, 0.0)
Camera.PointAtPoint(855.2749, -22.7951, 64.1942, SwitchType.JumpCut)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT2_29550
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_29550
if 
  not Char.IsInAnyCar($catalina)
goto_if_false @CAT2_29550
$car = Char.StoreCarIsInNoSave($scplayer)
Char.WarpIntoCar($catalina, $car)

:CAT2_29550
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_29727
if 
  not Char.IsInAnyCar($catalina)
goto_if_false @CAT2_29654
Char.SetCoordinates($scplayer, 857.4263, -29.5418, 62.1858)
Char.SetCoordinates($catalina, 858.4263, -29.5418, 62.1858)
Char.SetHeading($catalina, 161.446)
Char.SetHeading($catalina, 340.446)
364@ = 0
Char.RemoveFromGroup($catalina)

:CAT2_29654
368@ = Sequence.Open()
if 
  Char.IsInAnyCar($catalina)
goto_if_false @CAT2_29690
$car = Char.StoreCarIsInNoSave($catalina)
Task.LeaveCar(-1, $car)

:CAT2_29690
Task.TurnCharToFaceChar(-1, $scplayer)
Task.LookAtChar(-1, $scplayer, 99999)
Sequence.Close(368@)
Char.PerformSequence($catalina, 368@)
Sequence.Clear(368@)

:CAT2_29727
367@ = 2

:CAT2_29734
if 
  367@ == 2
goto_if_false @CAT2_29929
if 
  560@ == 0
goto_if_false @CAT2_29929
if 
  559@ == 1
goto_if_false @CAT2_29929
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_29906
369@ = Sequence.Open()
if 
  Char.IsInAnyCar($catalina)
goto_if_false @CAT2_29840
$car = Char.StoreCarIsInNoSave($catalina)
Task.LeaveCar(-1, $car)

:CAT2_29840
Task.GoStraightToCoord(-1, 869.0271, -28.2591, 62.1893, MoveState.Walk, 20000)
Task.GoStraightToCoord(-1, 870.2891, -25.0424, 62.9858, MoveState.Walk, 5000)
Sequence.Close(369@)
Char.PerformSequence($catalina, 369@)
Sequence.Clear(369@)

:CAT2_29906
367@ = 3
set_lvar_int_to_lvar_int 370@ = TIMERA
370@ += 5000

:CAT2_29929
if 
  367@ == 3
goto_if_false @CAT2_30045
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_30045
$task_status = Char.GetScriptTaskStatus($catalina, 1560)
if or
  is_int_var_equal_to_constant $task_status == 7
  is_int_lvar_greater_than_int_lvar TIMERA > 370@
goto_if_false @CAT2_30045
Camera.SetBehindPlayer
Camera.RestoreJumpcut
if 
  Char.DoesExist($catalina)
goto_if_false @CAT2_30025
Char.Delete($catalina)

:CAT2_30025
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Text.ClearPrints
goto @CAT2_30343

:CAT2_30045
goto @CAT2_1838

:CAT2_30052
Player.AlterWantedLevelNoDrop($player1, 3)
Audio.ReportMissionAudioEventAtPosition(2312.094, -9.6433, 28.679, 1155)
560@ = 8
561@ = 3
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_30117
Task.TurnCharToFaceChar($catalina, $scplayer)

:CAT2_30117
return 

:CAT2_30119
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
wait 2000
if 
  not Char.IsDead($scplayer)
goto_if_false @CAT2_30341
if 
  Char.IsInArea3D($scplayer, 2303.903, -18.2879, 25.5416, 2321.147, 0.7716, 30.8122, False)
goto_if_false @CAT2_30341
if 
  not Char.IsDead($scplayer)
goto_if_false @CAT2_30341
Camera.DoFade(800, Fade.Out)

:CAT2_30227
if 
  Camera.GetFadingStatus
goto_if_false @CAT2_30251
wait 0
goto @CAT2_30227

:CAT2_30251
wait 700
if 
  Char.IsInArea3D($scplayer, 2303.903, -18.2879, 25.5416, 2321.147, 0.7716, 30.8122, False)
goto_if_false @CAT2_30334
Char.SetCoordinates($scplayer, 2300.112, -16.5618, 25.4844)
Char.SetHeading($scplayer, 90.0)

:CAT2_30334
Camera.DoFade(600, Fade.In)

:CAT2_30341
return 

:CAT2_30343
$cat_counter += 1
$cat_getaway_dialogue += 1
Stat.SetInt(StatId.PassedCat2, 1)
168@ += 10000
Text.PrintWithNumberBig('M_PASS', 10000, 5000, TextStyle.Middle)
Player.AddScore($player1, 10000)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.PlayerMadeProgress(1)
Stat.RegisterMissionPassed('CAT_2')
$flag_cat_mission2_passed = 1
if 
  $cat_otb_banter == 1
goto_if_false @CAT2_30455
$cat_otb_banter = 2

:CAT2_30455
if 
  $cat_liquor_banter == 1
goto_if_false @CAT2_30480
$cat_liquor_banter = 2

:CAT2_30480
return 

:CAT2_30482
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
if 
  Object.DoesExist($advert_f1)
goto_if_false @CAT2_30507
Object.Delete($advert_f1)

:CAT2_30507
$advert_f1 = Object.CreateNoOffset(#CR_DOOR_01, 2322.845, 8.304, 25.483)
Object.DontRemove($advert_f1)
Object.SetCollisionDamageEffect($advert_f1, False)
Object.FreezePosition($advert_f1, True)
if 
  Object.DoesExist($pc_door)
goto_if_false @CAT2_30569
Object.Delete($pc_door)

:CAT2_30569
$pc_door = Object.CreateNoOffset(#CR_DOOR_01, 2316.233, 0.712, 25.742)
Object.DontRemove($pc_door)
Object.SetHeading($pc_door, 270.0)
Object.FreezePosition($pc_door, True)
Object.SetCollisionDamageEffect($pc_door, False)
if 
  Object.DoesExist($2661)
goto_if_false @CAT2_30641
Object.Delete($2661)

:CAT2_30641
$2661 = Object.CreateNoOffset(#CR_DOOR_03, 2304.257, -17.744, 25.742)
Object.DontRemove($2661)
Object.FreezePosition($2661, True)
Object.SetCollisionDamageEffect($2661, False)
if 
  Object.DoesExist($2662)
goto_if_false @CAT2_30703
Object.Delete($2662)

:CAT2_30703
$2662 = Object.CreateNoOffset(#CR_DOOR_03, 2304.257, -14.583, 25.742)
Object.DontRemove($2662)
Object.FreezePosition($2662, True)
Object.SetHeading($2662, 180.0)
Object.SetCollisionDamageEffect($2662, False)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Streaming.MarkModelAsNoLongerNeeded(599)
Streaming.MarkModelAsNoLongerNeeded(523)
Streaming.MarkModelAsNoLongerNeeded(283)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(283)
Streaming.MarkModelAsNoLongerNeeded(599)
Streaming.MarkModelAsNoLongerNeeded(71)
Streaming.MarkModelAsNoLongerNeeded(240)
Streaming.MarkModelAsNoLongerNeeded(76)
Streaming.MarkModelAsNoLongerNeeded(427)
Streaming.MarkModelAsNoLongerNeeded(523)
Streaming.MarkModelAsNoLongerNeeded(#KMB_ATM1)
Streaming.MarkModelAsNoLongerNeeded(#KMB_ATM2)
Streaming.MarkModelAsNoLongerNeeded(#KMB_ATM3)
Streaming.MarkModelAsNoLongerNeeded(#MTSAFE)
Streaming.MarkModelAsNoLongerNeeded(#CR_DOOR_01)
Streaming.MarkModelAsNoLongerNeeded(#CR_DOOR_03)
Streaming.RemoveCarRecording(156)
Streaming.RemoveCarRecording(157)
Streaming.RemoveCarRecording(123)
Streaming.RemoveCarRecording(124)
Streaming.RemoveCarRecording(158)
Streaming.RemoveCarRecording(159)
Streaming.RemoveCarRecording(160)
Streaming.RemoveCarRecording(161)
Streaming.RemoveCarRecording(116)
Streaming.RemoveCarRecording(117)
Streaming.RemoveCarRecording(118)
Streaming.RemoveCarRecording(119)
Streaming.RemoveCarRecording(123)
Streaming.RemoveCarRecording(124)
Streaming.RemoveCarRecording(160)
Streaming.RemoveCarRecording(161)
Streaming.RemoveCarRecording(156)
Streaming.RemoveCarRecording(157)
Streaming.RemoveCarRecording(158)
Streaming.RemoveCarRecording(159)
Streaming.RemoveAnimation("SHOP")
Streaming.RemoveAnimation("MISC")
Streaming.RemoveAnimation("OTB")
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("ROB_BANK")
Path.SwitchRoadsOn(2344.518, 36.1468, 36.0359, 2269.718, -44.376, 23.0569)
Blip.Remove(372@)
Blip.Remove(40@)
Blip.Remove(102@)
Blip.Remove(103@)
Blip.Remove(104@)
Blip.Remove(105@)
Object.MarkAsNoLongerNeeded(76@)
Object.MarkAsNoLongerNeeded(77@)
Object.MarkAsNoLongerNeeded(78@)
if 
  not Car.IsDead(85@)
goto_if_false @CAT2_31093
Car.MarkAsNoLongerNeeded(85@)

:CAT2_31093
if 
  not Car.IsDead(86@)
goto_if_false @CAT2_31114
Car.MarkAsNoLongerNeeded(86@)

:CAT2_31114
if 
  not Car.IsDead(88@)
goto_if_false @CAT2_31135
Car.MarkAsNoLongerNeeded(88@)

:CAT2_31135
if 
  not Car.IsDead(90@)
goto_if_false @CAT2_31156
Car.MarkAsNoLongerNeeded(90@)

:CAT2_31156
if 
  not Char.IsDead(92@)
goto_if_false @CAT2_31184
Char.FreezePosition(92@, False)
Char.MarkAsNoLongerNeeded(92@)

:CAT2_31184
if 
  not Char.IsDead(93@)
goto_if_false @CAT2_31212
Char.FreezePosition(93@, False)
Char.MarkAsNoLongerNeeded(93@)

:CAT2_31212
if 
  not Char.IsDead(87@)
goto_if_false @CAT2_31240
Char.FreezePosition(87@, False)
Char.MarkAsNoLongerNeeded(87@)

:CAT2_31240
if 
  not Char.IsDead(89@)
goto_if_false @CAT2_31268
Char.FreezePosition(89@, False)
Char.MarkAsNoLongerNeeded(89@)

:CAT2_31268
if 
  not Char.IsDead(91@)
goto_if_false @CAT2_31296
Char.FreezePosition(91@, False)
Char.MarkAsNoLongerNeeded(91@)

:CAT2_31296
if 
  not Char.IsDead(94@)
goto_if_false @CAT2_31317
Char.MarkAsNoLongerNeeded(94@)

:CAT2_31317
Sound.Remove(82@)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Game.SetWantedMultiplier(1.0)
Mission.Finish
return 

:CAT2_31345
if 
  364@ == 1
goto_if_false @CAT2_31944
if 
  371@ == 1
goto_if_false @CAT2_31463
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_31463
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT2_31463
371@ = 0
372@ = Blip.AddForChar($catalina)
Blip.SetAsFriendly(372@, True)
Blip.ChangeDisplay(40@, BlipDisplay.Neither)
Text.ClearPrints
Text.Print('CAT2_14', 4000, 1)

:CAT2_31463
if 
  371@ == 0
goto_if_false @CAT2_31592
if 
  not Char.IsDead($catalina)
goto_if_false @CAT2_31592
if 
  Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT2_31530
371@ = 1
goto @CAT2_31592

:CAT2_31530
if 
  Char.LocateAnyMeansChar2D($scplayer, $catalina, 10.0, 10.0, False)
goto_if_false @CAT2_31592
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $catalina)
Blip.Remove(372@)
Blip.ChangeDisplay(40@, BlipDisplay.Both)
371@ = 1

:CAT2_31592
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT2_31725
if 
  373@ == 0
goto_if_false @CAT2_31718
DecisionMakerGroup.ClearEventResponse(37@, 36)
DecisionMakerGroup.ClearEventResponse(37@, 9)
DecisionMakerGroup.ClearEventResponse(37@, 41)
DecisionMakerGroup.ClearEventResponse(37@, 31)
DecisionMakerGroup.ClearEventResponse(37@, 73)
DecisionMakerGroup.ClearEventResponse(37@, 72)
DecisionMakerGroup.AddEventResponse(37@, 36, 1516, 0.0, 100.0, 0.0, 0.0, True, False)
Char.SetRelationship($catalina, RelationshipType.Hate, PedType.Mission1)
373@ = 1

:CAT2_31718
goto @CAT2_31944

:CAT2_31725
if 
  373@ == 1
goto_if_false @CAT2_31944
DecisionMakerGroup.ClearEventResponse(37@, 36)
DecisionMakerGroup.ClearEventResponse(37@, 9)
DecisionMakerGroup.ClearEventResponse(37@, 41)
DecisionMakerGroup.ClearEventResponse(37@, 31)
DecisionMakerGroup.ClearEventResponse(37@, 73)
DecisionMakerGroup.ClearEventResponse(37@, 72)
DecisionMakerGroup.ClearEventResponse(37@, 36)
DecisionMakerGroup.AddEventResponse(37@, 36, 1502, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerGroup.AddEventResponse(37@, 9, 1502, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerGroup.AddEventResponse(37@, 31, 1502, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerGroup.AddEventResponse(37@, 72, 1502, 0.0, 100.0, 0.0, 0.0, False, True)
Char.SetRelationship($catalina, RelationshipType.Hate, PedType.Mission1)
373@ = 0

:CAT2_31944
return 

:CAT2_31946
switch_start 559@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CAT2_34497 {caseNum1} 0 {caseLabel1} @CAT2_32009 {caseNum2} 1 {caseLabel2} @CAT2_33228 {caseNum3} 2 {caseLabel3} @CAT2_34095 {caseNum4} 3 {caseLabel4} @CAT2_34194 {caseNum5} 4 {caseLabel5} @CAT2_34270 {caseNum6} 5 {caseLabel6} @CAT2_34407 {caseNum7} -1 {caseLabel7} @CAT2_34497

:CAT2_32009
set_lvar_text_label 374@s = 'CAT4_BI'
set_lvar_text_label 376@s = 'CAT4_CA'
set_lvar_int_to_constant 495@ = 3000
set_lvar_text_label 378@s = 'CAT4_CB'
set_lvar_int_to_constant 496@ = 3001
set_lvar_text_label 380@s = 'CAT4_CD'
set_lvar_int_to_constant 497@ = 3036
set_lvar_text_label 382@s = 'CAT4_CE'
set_lvar_int_to_constant 498@ = 3002
set_lvar_text_label 384@s = 'CAT4_CF'
set_lvar_int_to_constant 499@ = 3003
set_lvar_text_label 386@s = 'CAT4_CG'
set_lvar_int_to_constant 500@ = 3004
set_lvar_text_label 388@s = 'CAT4_CH'
set_lvar_int_to_constant 501@ = 3037
set_lvar_text_label 390@s = 'CAT4_EA'
set_lvar_int_to_constant 502@ = 3051
set_lvar_text_label 392@s = 'CAT4_EC'
set_lvar_int_to_constant 503@ = 3005
set_lvar_text_label 394@s = 'CAT4_ED'
set_lvar_int_to_constant 504@ = 3006
set_lvar_text_label 396@s = 'CAT4_BA'
set_lvar_int_to_constant 505@ = 3067
set_lvar_text_label 398@s = 'CAT4_AB'
set_lvar_int_to_constant 506@ = 3058
set_lvar_text_label 400@s = 'CAT4_AC'
set_lvar_int_to_constant 507@ = 3059
set_lvar_text_label 402@s = 'CAT4_AD'
set_lvar_int_to_constant 508@ = 3060
set_lvar_text_label 404@s = 'CAT4_AE'
set_lvar_int_to_constant 509@ = 3061
set_lvar_text_label 406@s = 'CAT4_FB'
set_lvar_int_to_constant 510@ = 3008
set_lvar_text_label 408@s = 'CAT4_AF'
set_lvar_int_to_constant 511@ = 3062
set_lvar_text_label 410@s = 'CAT4_FD'
set_lvar_int_to_constant 512@ = 3010
set_lvar_text_label 412@s = 'CAT4_GB'
set_lvar_int_to_constant 513@ = 3012
set_lvar_text_label 414@s = 'CAT4_HH'
set_lvar_int_to_constant 514@ = 3020
set_lvar_text_label 416@s = 'CAT4_HF'
set_lvar_int_to_constant 515@ = 3018
set_lvar_text_label 418@s = 'CAT4_AG'
set_lvar_int_to_constant 516@ = 3063
set_lvar_text_label 420@s = 'CAT4_AH'
set_lvar_int_to_constant 517@ = 3064
set_lvar_text_label 422@s = 'CAT4_HI'
set_lvar_int_to_constant 518@ = 3021
set_lvar_text_label 424@s = 'CAT4_BF'
set_lvar_int_to_constant 519@ = 3072
set_lvar_text_label 426@s = 'CAT4_KF'
set_lvar_int_to_constant 520@ = 3030
set_lvar_text_label 428@s = 'CAT4_HB'
set_lvar_int_to_constant 521@ = 3014
set_lvar_text_label 430@s = 'CAT4_HG'
set_lvar_int_to_constant 522@ = 3019
set_lvar_text_label 432@s = 'CAT4_AJ'
set_lvar_int_to_constant 523@ = 3066
set_lvar_text_label 434@s = 'CAT4_JA'
set_lvar_int_to_constant 524@ = 3023
set_lvar_text_label 436@s = 'CAT4_JB'
set_lvar_int_to_constant 525@ = 3024
set_lvar_text_label 438@s = 'CAT4_KA'
set_lvar_int_to_constant 526@ = 3025
set_lvar_text_label 440@s = 'CAT4_KB'
set_lvar_int_to_constant 527@ = 3026
set_lvar_text_label 442@s = 'CAT4_KC'
set_lvar_int_to_constant 528@ = 3027
set_lvar_text_label 444@s = 'CAT4_KD'
set_lvar_int_to_constant 529@ = 3028
set_lvar_text_label 446@s = 'CAT4_KE'
set_lvar_int_to_constant 530@ = 3029
set_lvar_text_label 448@s = 'CAT3_EC'
set_lvar_int_to_constant 531@ = 2809
set_lvar_text_label 450@s = 'CAT_GJ'
set_lvar_int_to_constant 532@ = 2251
set_lvar_text_label 452@s = 'CAT4_BK'
set_lvar_int_to_constant 533@ = 3056
564@ = 1
565@ = 2
566@ = 2
567@ = 1
568@ = 1
569@ = 1
570@ = 2
571@ = 2
572@ = 1
573@ = 1
574@ = 3
575@ = 4
576@ = 3
577@ = 4
578@ = 3
579@ = 1
580@ = 0
581@ = 1
582@ = 1
583@ = 1
584@ = 5
585@ = 5
586@ = 1
587@ = 1
588@ = 6
589@ = 1
590@ = 1
591@ = 1
592@ = 6
593@ = 1
594@ = 1
595@ = 0
596@ = 0
597@ = 0
598@ = 0
599@ = 0
600@ = 1
601@ = 1
602@ = 0
set_lvar_int_to_var_int 624@ = $catalina
set_lvar_int_to_var_int 625@ = $scplayer
set_lvar_int_to_var_int 628@ = $scplayer
set_lvar_int_to_var_int 629@ = $scplayer
559@ = 1
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 495@)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 496@)
555@ = 1
556@ = 2
goto @CAT2_34497

:CAT2_33228
if 
  560@ <> 0
goto_if_false @CAT2_34088
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 639@
goto_if_false @CAT2_34088
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @CAT2_34088
if 
  is_int_lvar_equal_to_int_lvar 555@ == 560@
goto_if_false @CAT2_33317
557@ = 1
goto @CAT2_33380

:CAT2_33317
if 
  is_int_lvar_equal_to_int_lvar 556@ == 560@
goto_if_false @CAT2_33350
557@ = 2
goto @CAT2_33380

:CAT2_33350
557@ = 1
set_lvar_int_to_lvar_int 555@ = 560@
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 494@(560@,60i))

:CAT2_33380
if 
  Audio.HasMissionAudioLoaded(557@)
goto_if_false @CAT2_34076
set_lvar_int_to_lvar_int 631@ = 563@(560@,60i)
set_lvar_int_to_lvar_int 632@ = 623@(631@,7i)
if 
  638@ <> 1
goto_if_false @CAT2_33608
635@ = 1
637@ = 0

:CAT2_33452
if 
  7 > 635@
goto_if_false @CAT2_33608
set_lvar_int_to_lvar_int 636@ = 623@(635@,7i)
if 
  636@ <> 0
goto_if_false @CAT2_33594
if 
  not is_int_lvar_equal_to_int_lvar 636@ == 632@
goto_if_false @CAT2_33594
if 
  not Char.IsDead(632@)
goto_if_false @CAT2_33594
if 
  not Char.IsDead(636@)
goto_if_false @CAT2_33594
if 
  Char.LocateAnyMeansChar3D(632@, 636@, 10.0, 10.0, 10.0, False)
goto_if_false @CAT2_33594
637@ += 1

:CAT2_33594
635@ += 1
goto @CAT2_33452

:CAT2_33608
if or
  638@ == 1
  637@ > 0
  563@(560@,60i) == 0
goto_if_false @CAT2_34062
if 
  563@(560@,60i) <> 0
goto_if_false @CAT2_33794
if 
  not Char.IsDead(632@)
goto_if_false @CAT2_33794
if 
  $wz1_health_bar == 0
goto_if_false @CAT2_33708
Audio.AttachMissionAudioToChar(557@, 632@)

:CAT2_33708
if 
  not Char.IsTalking(632@)
goto_if_false @CAT2_33746
630@ = 1
Char.StartFacialTalk(632@, 15000)
goto @CAT2_33753

:CAT2_33746
Char.DisableSpeech(632@, False)

:CAT2_33753
if 
  632@ <> 0
goto_if_false @CAT2_33794
if 
  not Char.IsDead(632@)
goto_if_false @CAT2_33794
Char.ShutUpForScriptedSpeech(632@, True)

:CAT2_33794
if 
  563@(560@,60i) == 0
goto_if_false @CAT2_33823
630@ = 1

:CAT2_33823
if 
  562@ == 1
goto_if_false @CAT2_33864
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @CAT2_33864
630@ = 0

:CAT2_33864
if 
  630@ == 1
goto_if_false @CAT2_34055
Audio.PlayMissionAudio(557@)
Text.ClearPrints
Text.Print(374@(560@,60s), 10000, 1)
559@ += 1
630@ = 0
560@ += 1
set_lvar_int_to_lvar_int 558@ = 560@
if 
  494@(560@,60i) <> 0
goto_if_false @CAT2_34055
if 
  557@ == 1
goto_if_false @CAT2_34017
if 
  not is_int_lvar_equal_to_int_lvar 556@ == 560@
goto_if_false @CAT2_34010
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 494@(560@,60i))
set_lvar_int_to_lvar_int 556@ = 560@

:CAT2_34010
goto @CAT2_34055

:CAT2_34017
if 
  not is_int_lvar_equal_to_int_lvar 555@ == 560@
goto_if_false @CAT2_34055
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 494@(560@,60i))
set_lvar_int_to_lvar_int 555@ = 560@

:CAT2_34055
goto @CAT2_34069

:CAT2_34062
559@ = 6

:CAT2_34069
goto @CAT2_34088

:CAT2_34076
Audio.LoadMissionAudio(557@, 494@(560@,60i))

:CAT2_34088
goto @CAT2_34497

:CAT2_34095
if 
  Audio.HasMissionAudioFinished(557@)
goto_if_false @CAT2_34148
if 
  not Char.IsDead(632@)
goto_if_false @CAT2_34134
Char.ShutUpForScriptedSpeech(632@, False)

:CAT2_34134
559@ += 1
goto @CAT2_34187

:CAT2_34148
if 
  Char.DoesExist(632@)
goto_if_false @CAT2_34187
if 
  Char.IsDead(632@)
goto_if_false @CAT2_34187
559@ += 1

:CAT2_34187
goto @CAT2_34497

:CAT2_34194
if 
  not Char.IsDead(632@)
goto_if_false @CAT2_34217
Char.ShutUpForScriptedSpeech(632@, False)

:CAT2_34217
Audio.ClearMissionAudio(557@)
554@(557@,3i) = 0
Text.ClearPrints
if 
  not Char.IsDead(632@)
goto_if_false @CAT2_34256
Char.EnableSpeech(632@)

:CAT2_34256
559@ += 1
goto @CAT2_34497

:CAT2_34270
if 
  not Char.IsDead(632@)
goto_if_false @CAT2_34293
Char.ShutUpForScriptedSpeech(632@, False)

:CAT2_34293
560@ += 1
if 
  494@(560@,60i) <> 0
goto_if_false @CAT2_34346
Audio.LoadMissionAudio(557@, 494@(560@,60i))
set_lvar_int_to_lvar_int 554@(557@,3i) = 560@

:CAT2_34346
561@ -= 1
if 
  561@ <= 0
goto_if_false @CAT2_34385
560@ = 0
goto @CAT2_34393

:CAT2_34385
set_lvar_int_to_lvar_int 560@ = 558@

:CAT2_34393
559@ = 1
goto @CAT2_34497

:CAT2_34407
if 
  not Char.IsDead(632@)
goto_if_false @CAT2_34430
Char.ShutUpForScriptedSpeech(632@, False)

:CAT2_34430
559@ = 1
560@ = 0
561@ = 0
Audio.ClearMissionAudio(557@)
554@(557@,3i) = 0
Text.ClearPrints
if 
  not Char.IsDead(632@)
goto_if_false @CAT2_34490
Char.EnableSpeech(632@)

:CAT2_34490
goto @CAT2_34497

:CAT2_34497
return 

//-------------Mission 43---------------
// Originally: Tanker Commander

:CAT3
script_name 'CAT3'
gosub @CAT3_1435
if 
  has_deatharrest_been_executed 
goto_if_false @CAT3_38
gosub @CAT3_16983

:CAT3_38
gosub @CAT3_17185
terminate_this_script 

:CAT3_47
Streaming.RequestModel(67)
Streaming.RequestModel(95)
Streaming.RequestModel(514)
Streaming.RequestModel(584)
Streaming.RequestModel(475)
Streaming.LoadAllModelsNow

:CAT3_72
if or
  not Streaming.HasModelLoaded(67)
  not Streaming.HasModelLoaded(95)
  not Streaming.HasModelLoaded(514)
  not Streaming.HasModelLoaded(584)
  not Streaming.HasModelLoaded(475)
goto_if_false @CAT3_117
wait 0
goto @CAT3_72

:CAT3_117
return 

:CAT3_119
Streaming.RequestAnimation("MISC")
Streaming.RequestModel(352)
Streaming.RequestModel(349)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 24000)
Streaming.LoadSpecialCharacter(1, 'CAT')
Streaming.LoadAllModelsNow

:CAT3_159
if or
  not Streaming.HasAnimationLoaded("MISC")
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(349)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @CAT3_207
wait 0
goto @CAT3_159

:CAT3_207
if 
  not Char.DoesExist($catalina)
goto_if_false @CAT3_249
$catalina = Char.Create(PedType.CivFemale, 290, 53@, 54@, 55@)
goto @CAT3_273

:CAT3_249
Char.Delete($catalina)
$catalina = Char.Create(PedType.CivFemale, 290, 53@, 54@, 55@)

:CAT3_273
if 
  not Char.IsDead($catalina)
goto_if_false @CAT3_299
Char.GiveWeapon($catalina, WeaponType.Shotgun, 30000)

:CAT3_299
return 
309@ = Blip.AddForChar($catalina)
41@ = Blip.AddForCoord(50@, 51@, 52@)
Streaming.MarkModelAsNoLongerNeeded(348)
return 

:CAT3_330
313@ = 664.21
315@ = -569.54
317@ = 15.37
319@ = 165.23
World.ClearArea(313@, 315@, 317@, 3.0, True)
310@ = Char.Create(PedType.CivMale, 67, 313@, 315@, 317@)
Char.GiveWeapon(310@, WeaponType.MicroUzi, 30000)
Char.SetHeading(310@, 319@)
Char.SetHealth(310@, 2000)
Char.SetCanBeShotInVehicle(310@, False)
Char.SetProofs(310@, False, True, True, False, True)
314@ = 664.9634
316@ = -566.7849
318@ = 15.3359
320@ = 139.1057
World.ClearArea(314@, 316@, 318@, 3.0, True)
311@ = Char.Create(PedType.CivMale, 95, 314@, 316@, 318@)
Char.SetHeading(311@, 320@)
Char.SetHealth(311@, 2000)
Char.SetCanBeShotInVehicle(311@, False)
Char.SetProofs(311@, False, True, True, False, True)
return 
Streaming.MarkModelAsNoLongerNeeded(67)
return 

:CAT3_576
Streaming.RequestModel(15)

:CAT3_580
if 
  not Streaming.HasModelLoaded(15)
goto_if_false @CAT3_606
wait 0
goto @CAT3_580

:CAT3_606
323@ = -78.4672
324@ = -1134.739
325@ = 0.0733
326@ = 326.2953
World.ClearArea(323@, 324@, 325@, 3.0, True)
322@ = Char.Create(PedType.CivMale, 15, 323@, 324@, 325@)
Char.SetHeading(322@, 326@)
return 
244@ = Char.Create(PedType.CivMale, 15, 323@, 324@, 325@)

:CAT3_710
329@ = 657.49
330@ = -585.13
331@ = 16.36
332@ = 170.66
World.ClearArea(329@, 330@, 331@, 15.0, True)
327@ = Car.Create(514, 329@, 330@, 331@)
Car.SetHeading(327@, 332@)
Car.SetCanBurstTires(327@, False)
Car.SetProofs(327@, True, False, False, False, False)
Car.SetLoadCollisionFlag(327@, False)
return 
308@ = Car.Create(403, 329@, 330@, 331@)

:CAT3_841
336@ = 667.49
337@ = -583.13
338@ = 16.36
339@ = 184.66
World.ClearArea(336@, 337@, 338@, 15.0, True)
334@ = Car.Create(584, 336@, 337@, 338@)
Car.SetHeading(334@, 339@)
Car.SetHealth(334@, 1250)
Car.SetProofs(334@, True, True, True, True, True)
Car.SetCanBurstTires(334@, False)
Car.SetLoadCollisionFlag(334@, False)
return 
335@ = Blip.AddForCar(334@)

:CAT3_971
342@ = 667.54
343@ = -545.97
344@ = 15.09
345@ = 96.19
World.ClearArea(342@, 343@, 344@, 3.0, True)
340@ = Car.Create(475, 342@, 343@, 344@)
Car.SetHeading(340@, 345@)
Car.SetCruiseSpeed(340@, 50.0)
Car.SetProofs(340@, True, True, True, True, True)
Car.LockDoors(340@, CarLock.Locked)
Car.SetCanBurstTires(340@, False)
Car.SetLoadCollisionFlag(340@, False)
return 

:CAT3_1102
Streaming.RequestModel(543)

:CAT3_1107
if 
  not Streaming.HasModelLoaded(543)
goto_if_false @CAT3_1134
wait 0
goto @CAT3_1107

:CAT3_1134
348@ = -87.9239
349@ = -1160.597
350@ = 1.1091
351@ = 170.4884
World.ClearArea(348@, 349@, 350@, 3.0, True)
346@ = Car.Create(543, 348@, 349@, 350@)
Car.SetHeading(346@, 351@)
Car.SetProofs(346@, True, True, True, True, True)
return 

:CAT3_1234
Streaming.RequestModel(468)
Streaming.RequestCarRecording(189)

:CAT3_1244
if or
  not Streaming.HasModelLoaded(468)
  not Streaming.HasCarRecordingBeenLoaded(189)
goto_if_false @CAT3_1276
wait 0
goto @CAT3_1244

:CAT3_1276
353@ = -88.1347
354@ = -1127.397
355@ = 0.0847
356@ = 348.4666
World.ClearArea(353@, 354@, 355@, 3.0, True)
352@ = Car.Create(468, 353@, 354@, 355@)
Car.SetHeading(352@, 356@)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT3_1433
Char.WarpIntoCar($catalina, 352@)
Task.LookAtChar($catalina, $scplayer, -1)
Char.SetCoordinates($scplayer, -86.3344, -1127.316, 0.0781)
Char.SetHeading($scplayer, 6.874)
Task.LookAtChar($scplayer, $catalina, -1)

:CAT3_1433
return 

:CAT3_1435
$onmission = 1
wait 0
Text.LoadMissionText('CAT')
34@ = 5000
35@ = 0
36@ = 1
37@ = 0
38@ = 0
39@ = 0
307@ = 1500
40@ = 0
301@ = 0
305@ = 1
303@ = 1
304@ = 2
302@ = 0
set_lvar_text_label 134@s = 'CAT3_AA'
set_lvar_text_label 136@s = 'CAT3_AB'
set_lvar_text_label 138@s = 'CAT3_AC'
set_lvar_text_label 140@s = 'CAT3_AD'
set_lvar_text_label 142@s = 'CAT3_AE'
set_lvar_text_label 144@s = 'CAT3_AF'
set_lvar_text_label 146@s = 'CAT3_AG'
set_lvar_text_label 148@s = 'CAT3_BA'
set_lvar_text_label 150@s = 'CAT3_BB'
set_lvar_text_label 152@s = 'CAT3_BC'
set_lvar_text_label 154@s = 'CAT3_BD'
set_lvar_text_label 156@s = 'CAT3_CA'
set_lvar_text_label 158@s = 'CAT3_CB'
set_lvar_text_label 160@s = 'CAT3_CC'
set_lvar_text_label 162@s = 'CAT3_CD'
set_lvar_text_label 164@s = 'CAT3_DA'
set_lvar_text_label 166@s = 'CAT3_DB'
set_lvar_text_label 168@s = 'CAT3_DC'
set_lvar_text_label 170@s = 'CAT3_DD'
set_lvar_text_label 172@s = 'CAT3_EA'
set_lvar_text_label 174@s = 'CAT3_EB'
set_lvar_text_label 176@s = 'CAT3_EC'
set_lvar_text_label 178@s = 'CAT3_ED'
set_lvar_text_label 180@s = 'CAT3_EE'
set_lvar_text_label 182@s = 'CAT3_EF'
set_lvar_text_label 184@s = 'CAT3_EG'
set_lvar_text_label 186@s = 'CAT3_FA'
set_lvar_text_label 188@s = 'CAT3_FB'
set_lvar_text_label 190@s = 'CAT3_FC'
set_lvar_text_label 192@s = 'CAT3_FD'
set_lvar_text_label 194@s = 'CAT3_FE'
set_lvar_text_label 196@s = 'CAT3_FF'
set_lvar_text_label 198@s = 'CAT3_GA'
set_lvar_text_label 200@s = 'CAT3_GB'
set_lvar_text_label 202@s = 'CAT3_GC'
set_lvar_text_label 204@s = 'CAT3_GD'
set_lvar_text_label 206@s = 'CAT3_GE'
set_lvar_text_label 208@s = 'CAT3_GF'
set_lvar_text_label 210@s = 'CAT3_GG'
set_lvar_text_label 212@s = 'CAT3_HA'
set_lvar_text_label 214@s = 'CAT3_HB'
set_lvar_text_label 216@s = 'CAT3_HC'
set_lvar_text_label 218@s = 'CAT3_JA'
set_lvar_text_label 220@s = 'CAT3_JB'
set_lvar_text_label 222@s = 'CAT3_JC'
set_lvar_text_label 224@s = 'CAT3_JD'
set_lvar_text_label 226@s = 'CAT3_JE'
set_lvar_text_label 228@s = 'CAT3_JF'
set_lvar_text_label 230@s = 'CAT3_JG'
set_lvar_text_label 232@s = 'CAT3_JH'
set_lvar_text_label 234@s = 'CAT3_JJ'
set_lvar_text_label 236@s = 'CAT3_JK'
set_lvar_text_label 238@s = 'CATX_UJ'
set_lvar_text_label 240@s = 'CATX_UK'
set_lvar_text_label 242@s = 'CAT_PF'
set_lvar_int_to_constant 246@ = 2800
set_lvar_int_to_constant 247@ = 2821
set_lvar_int_to_constant 248@ = 2822
set_lvar_int_to_constant 249@ = 2823
set_lvar_int_to_constant 250@ = 2801
set_lvar_int_to_constant 251@ = 2802
set_lvar_int_to_constant 252@ = 2824
set_lvar_int_to_constant 253@ = 2803
set_lvar_int_to_constant 254@ = 2820
set_lvar_int_to_constant 255@ = 2841
set_lvar_int_to_constant 256@ = 2804
set_lvar_int_to_constant 257@ = 2805
set_lvar_int_to_constant 258@ = 2825
set_lvar_int_to_constant 259@ = 2826
set_lvar_int_to_constant 260@ = 2827
set_lvar_int_to_constant 261@ = 2806
set_lvar_int_to_constant 262@ = 2842
set_lvar_int_to_constant 263@ = 2843
set_lvar_int_to_constant 264@ = 2844
set_lvar_int_to_constant 265@ = 2807
set_lvar_int_to_constant 266@ = 2808
set_lvar_int_to_constant 267@ = 2809
set_lvar_int_to_constant 268@ = 2810
set_lvar_int_to_constant 269@ = 2811
set_lvar_int_to_constant 270@ = 2812
set_lvar_int_to_constant 271@ = 2813
set_lvar_int_to_constant 272@ = 2828
set_lvar_int_to_constant 273@ = 2829
set_lvar_int_to_constant 274@ = 2830
set_lvar_int_to_constant 275@ = 2831
set_lvar_int_to_constant 276@ = 2832
set_lvar_int_to_constant 277@ = 2833
set_lvar_int_to_constant 278@ = 2834
set_lvar_int_to_constant 279@ = 2835
set_lvar_int_to_constant 280@ = 2836
set_lvar_int_to_constant 281@ = 2837
set_lvar_int_to_constant 282@ = 2838
set_lvar_int_to_constant 283@ = 2839
set_lvar_int_to_constant 284@ = 2840
set_lvar_int_to_constant 285@ = 2814
set_lvar_int_to_constant 286@ = 2815
set_lvar_int_to_constant 287@ = 2816
set_lvar_int_to_constant 288@ = 2817
set_lvar_int_to_constant 289@ = 2845
set_lvar_int_to_constant 290@ = 2818
set_lvar_int_to_constant 291@ = 2846
set_lvar_int_to_constant 292@ = 2819
set_lvar_int_to_constant 293@ = 2847
set_lvar_int_to_constant 294@ = 2848
set_lvar_int_to_constant 295@ = 2849
set_lvar_int_to_constant 296@ = 2850
set_lvar_int_to_constant 297@ = 2851
set_lvar_int_to_constant 298@ = 12697
set_lvar_int_to_constant 299@ = 12698
set_lvar_int_to_constant 300@ = 2290
50@ = -43.7625
51@ = -1141.805
52@ = 0.0781
53@ = 660.3846
54@ = -571.9213
55@ = 15.3465
65@ = 659.5142
75@ = -571.65
85@ = 17.0104
95@ = 660.4576
105@ = -571.3304
115@ = 16.9229
66@ = 661.7569
76@ = -570.6351
86@ = 17.1184
96@ = 662.4741
106@ = -569.9394
116@ = 17.0783
67@ = 658.7903
77@ = -568.8011
87@ = 17.1657
97@ = 659.5721
107@ = -569.3959
117@ = 16.9783
68@ = 659.4771
78@ = -568.5789
88@ = 17.0879
98@ = 660.1776
108@ = -569.2756
118@ = 16.9335
69@ = 655.2368
79@ = -601.8433
89@ = 16.4703
99@ = 654.2847
109@ = -601.6681
119@ = 16.2199
70@ = -73.4246
80@ = -1132.716
90@ = 1.4933
100@ = -74.3653
110@ = -1133.049
120@ = 1.5579
71@ = -80.0272
81@ = -1133.954
91@ = 1.2517
101@ = -79.0308
111@ = -1133.956
121@ = 1.3367
72@ = -76.5131
82@ = -1135.434
92@ = 1.6855
102@ = -75.8151
112@ = -1134.719
122@ = 1.711
321@ = 35.0
gosub @CAT3_119
gosub @CAT3_47
gosub @CAT3_330
gosub @CAT3_710
gosub @CAT3_841
gosub @CAT3_971
Player.SetGroupRecruitment($player1, False)
Streaming.LoadSceneInDirection(53@, 54@, 55@, 295.0)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT3_3429
Char.WarpFromCarToCoord($scplayer, 659.6722, -569.272, 15.3465)
goto @CAT3_3449

:CAT3_3429
Char.SetCoordinates($scplayer, 659.6722, -569.272, 15.3465)

:CAT3_3449
if and
  not Char.IsDead($catalina)
  not Char.IsDead(310@)
goto_if_false @CAT3_3642
if 
  Char.IsInAnyCar($catalina)
goto_if_false @CAT3_3507
Char.WarpFromCarToCoord($catalina, 53@, 54@, 55@)
goto @CAT3_3521

:CAT3_3507
Char.SetCoordinates($catalina, 53@, 54@, 55@)

:CAT3_3521
Task.TurnCharToFaceChar($scplayer, 310@)
Task.TurnCharToFaceChar(310@, $catalina)
Char.SetHeading($scplayer, 177.1965)
Char.HideWeaponForScriptedCutscene(310@, True)
Camera.SetFixedPosition(65@, 75@, 85@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(95@, 105@, 115@, SwitchType.JumpCut)
44@ = Clock.GetGameTimer()
Char.RemoveFromGroup($catalina)
37@ = 1
Task.AimGunAtChar($catalina, 310@, 20000)
Task.StayInSamePlace($catalina, True)
Task.StayInSamePlace(310@, True)
301@ = 1

:CAT3_3642
Camera.SetFadingColor(0, 0, 0)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.In)
Camera.DoFade(500, Fade.In)
World.SetCarDensityMultiplier(0.5)

:CAT3_3679
wait 0
if 
  301@ <> 0
goto_if_false @CAT3_4124
if 
  302@ == 0
goto_if_false @CAT3_3747
if 
  Audio.HasMissionAudioLoaded(304@)
goto_if_false @CAT3_3740
Audio.ClearMissionAudio(304@)

:CAT3_3740
302@ = 1

:CAT3_3747
if 
  302@ == 1
goto_if_false @CAT3_3791
Audio.LoadMissionAudio(303@, 245@(301@,56i))
gosub @CAT3_17387
302@ = 2

:CAT3_3791
if 
  302@ == 2
goto_if_false @CAT3_3900
if 
  Audio.HasMissionAudioLoaded(303@)
goto_if_false @CAT3_3900
if 
  244@ <> 0
goto_if_false @CAT3_3874
if 
  not Char.IsDead(244@)
goto_if_false @CAT3_3874
Char.StartFacialTalk(244@, 10000)
Char.ShutUpForScriptedSpeech(244@, True)

:CAT3_3874
Audio.PlayMissionAudio(303@)
Text.PrintNow(132@(301@,56s), 10000, 1)
302@ = 3

:CAT3_3900
if 
  302@ == 3
goto_if_false @CAT3_4124
if 
  Audio.HasMissionAudioFinished(303@)
goto_if_false @CAT3_4063
Text.ClearThisPrint(132@(301@,56s))
if 
  244@ <> 0
goto_if_false @CAT3_3989
if 
  not Char.IsDead(244@)
goto_if_false @CAT3_3989
Char.StopFacialTalk(244@)
Char.ShutUpForScriptedSpeech(244@, False)

:CAT3_3989
if 
  303@ == 1
goto_if_false @CAT3_4028
303@ = 2
304@ = 1
goto @CAT3_4042

:CAT3_4028
303@ = 1
304@ = 2

:CAT3_4042
301@ = 0
302@ = 0
goto @CAT3_4124

:CAT3_4063
if 
  not Audio.HasMissionAudioLoaded(304@)
goto_if_false @CAT3_4124
if 
  60 > 301@
goto_if_false @CAT3_4124
set_lvar_int_to_lvar_int 305@ = 301@
305@ += 1
Audio.LoadMissionAudio(304@, 245@(305@,56i))

:CAT3_4124
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CAT3_4146
goto @CAT3_17001

:CAT3_4146
if 
  35@ == 0
goto_if_false @CAT3_5682
if 
  6 > 37@
goto_if_false @CAT3_4214
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CAT3_4214
44@ -= 10000
37@ = 7

:CAT3_4214
if 
  37@ == 1
goto_if_false @CAT3_4388
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_4388
if 
  302@ == 0
goto_if_false @CAT3_4388
if and
  not Char.IsDead($catalina)
  not Char.IsDead(310@)
goto_if_false @CAT3_4388
45@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 662.828, -570.1751, 15.3359, 4, -2)
Task.LookAtChar(-1, $catalina, 30000)
Task.TurnCharToFaceChar(-1, $catalina)
Sequence.Close(45@)
Char.PerformSequence(310@, 45@)
44@ = Clock.GetGameTimer()
301@ = 2
37@ = 2

:CAT3_4388
if 
  37@ == 2
goto_if_false @CAT3_4656
if 
  not Char.IsDead(310@)
goto_if_false @CAT3_4519
if 
  not Char.IsPlayingAnim(310@, "BNG_WNDW_02")
goto_if_false @CAT3_4519
312@ = Char.GetScriptTaskStatus(310@, 1560)
if 
  is_int_lvar_equal_to_constant 312@ == 7
goto_if_false @CAT3_4519
Task.PlayAnim(310@, "BNG_WNDW_02", "MISC", 4.0, False, False, False, False, -1)

:CAT3_4519
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_4656
if 
  302@ == 0
goto_if_false @CAT3_4656
if and
  not Char.IsDead($catalina)
  not Char.IsDead(310@)
goto_if_false @CAT3_4656
Camera.SetFixedPosition(66@, 76@, 86@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(96@, 106@, 116@, SwitchType.JumpCut)
44@ = Clock.GetGameTimer()
301@ = 3
37@ = 3

:CAT3_4656
if 
  37@ == 3
goto_if_false @CAT3_4782
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_4782
if 
  302@ == 0
goto_if_false @CAT3_4782
if and
  not Char.IsDead($catalina)
  not Char.IsDead(310@)
  not Char.IsDead(311@)
goto_if_false @CAT3_4782
Task.ShakeFist(311@)
44@ = Clock.GetGameTimer()
301@ = 4
37@ = 4

:CAT3_4782
if 
  37@ == 4
goto_if_false @CAT3_4932
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_4932
if 
  302@ == 0
goto_if_false @CAT3_4932
if 
  not Car.IsDead(327@)
goto_if_false @CAT3_4932
Camera.SetFixedPosition(67@, 77@, 87@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(97@, 107@, 117@, SwitchType.JumpCut)
44@ = Clock.GetGameTimer()
301@ = 5
37@ = 5

:CAT3_4932
if 
  37@ == 5
goto_if_false @CAT3_5159
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_5159
if 
  302@ == 0
goto_if_false @CAT3_5159
if and
  not Car.IsDead(327@)
  not Char.IsDead($catalina)
  not Char.IsDead($scplayer)
goto_if_false @CAT3_5159
Camera.PointAtCar(327@, CameraMode.Fixed, SwitchType.JumpCut)
44@ = Clock.GetGameTimer()
Task.LookAtChar($scplayer, $catalina, 8000)
46@ = Sequence.Open()
Task.LookAtChar(-1, $scplayer, 1000)
Task.GoStraightToCoord(-1, 657.7125, -576.2346, 15.3359, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 654.6555, -585.0117, 15.3359, MoveState.Run, -1)
Task.EnterCarAsPassenger(-1, 327@, 30000, 0)
Sequence.Close(46@)
Char.PerformSequence($catalina, 46@)
301@ = 6
37@ = 6

:CAT3_5159
if 
  37@ == 6
goto_if_false @CAT3_5338
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_5338
if 
  302@ == 0
goto_if_false @CAT3_5338
if and
  not Char.IsDead($catalina)
  not Char.IsDead(310@)
goto_if_false @CAT3_5338
Camera.SetFixedPosition(68@, 78@, 88@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(98@, 108@, 118@, SwitchType.JumpCut)
Task.FollowPathNodesToCoord($scplayer, 659.8791, -573.4293, 15.3465, 4, -2)
301@ = 7
44@ = Clock.GetGameTimer()
37@ = 7

:CAT3_5338
if 
  37@ == 7
goto_if_false @CAT3_5682
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2500
goto_if_false @CAT3_5682
if 
  302@ == 0
goto_if_false @CAT3_5682
if and
  not Char.IsDead($catalina)
  not Char.IsDead(310@)
  not Car.IsDead(327@)
goto_if_false @CAT3_5682
Camera.DoFade(500, Fade.Out)

:CAT3_5447
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_5471
wait 0
goto @CAT3_5447

:CAT3_5471
if 
  not Car.IsDead(327@)
goto_if_false @CAT3_5573
328@ = Blip.AddForCar(327@)
Blip.SetAsFriendly(328@, True)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT3_5550
if 
  not Char.IsInCar($catalina, 327@)
goto_if_false @CAT3_5550
Task.EnterCarAsPassenger($catalina, 327@, 30000, 0)

:CAT3_5550
if 
  not Car.IsDead(334@)
goto_if_false @CAT3_5573
Car.FreezePosition(334@, True)

:CAT3_5573
Streaming.RemoveAnimation("MISC")
World.ClearArea($509, $515, $521, 200.0, True)
Char.SetHeading($scplayer, 332@)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.In)
Camera.DoFade(500, Fade.In)
Camera.DoFade(500, Fade.In)

:CAT3_5651
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_5675
wait 0
goto @CAT3_5651

:CAT3_5675
35@ = 1

:CAT3_5682
if 
  35@ == 1
goto_if_false @CAT3_5830
if and
  not Car.IsDead(327@)
  not Char.IsDead($scplayer)
  not Car.IsDead(334@)
goto_if_false @CAT3_5830
Text.PrintNow('CAT3_02', 5000, 1)
if 
  Char.IsInCar($scplayer, 327@)
goto_if_false @CAT3_5830
Blip.Remove(328@)
Text.PrintHelp('CAT3_03')
Streaming.RequestAnimation("CAR_CHAT")

:CAT3_5789
if 
  not Streaming.HasAnimationLoaded("CAR_CHAT")
goto_if_false @CAT3_5823
wait 0
goto @CAT3_5789

:CAT3_5823
35@ = 2

:CAT3_5830
if 
  35@ == 2
goto_if_false @CAT3_6651
if and
  not Car.IsDead(327@)
  not Car.IsDead(334@)
  not Char.IsDead($catalina)
goto_if_false @CAT3_6651
if 
  Char.LocateInCarCar3D($scplayer, 334@, 15.0, 15.0, 15.0, False)
goto_if_false @CAT3_5951
if 
  38@ == 0
goto_if_false @CAT3_5951
Text.PrintHelp('CAT3_12')
44@ = Clock.GetGameTimer()
38@ = 1

:CAT3_5951
if 
  38@ == 1
goto_if_false @CAT3_6027
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 8000
goto_if_false @CAT3_6027
Text.PrintHelp('CAT3_13')
38@ = 2

:CAT3_6027
if 
  39@ == 0
goto_if_false @CAT3_6110
if 
  Trailer.IsAttachedToCab(334@, 327@)
goto_if_false @CAT3_6110
if 
  not Car.IsDead(334@)
goto_if_false @CAT3_6087
Car.FreezePosition(334@, False)

:CAT3_6087
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
44@ = Clock.GetGameTimer()
Blip.Remove(335@)
Text.ClearHelp
39@ = 1

:CAT3_6110
if 
  39@ == 1
goto_if_false @CAT3_6651
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 1500
goto_if_false @CAT3_6651
Text.ClearPrints
Car.LockDoors(327@, CarLock.LockedPlayerInside)
Camera.DoFade(150, Fade.Out)

:CAT3_6184
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_6208
wait 0
goto @CAT3_6184

:CAT3_6208
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Text.ClearPrints
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @CAT3_6240
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:CAT3_6240
if 
  not Car.IsDead(327@)
goto_if_false @CAT3_6263
Car.LockDoors(327@, CarLock.Unlocked)

:CAT3_6263
if and
  not Char.IsDead($catalina)
  not Car.IsDead(327@)
goto_if_false @CAT3_6410
if 
  not Char.IsInCar($catalina, 327@)
goto_if_false @CAT3_6370
Char.RemoveFromGroup($catalina)
Blip.Remove(309@)
Blip.Remove(41@)
41@ = Blip.AddForCoord(50@, 51@, 52@)
Hud.ClearCounter($cat1_pickups_collected)
Hud.DisplayCounterWithString($cat1_pickups_collected, CounterDisplay.Bar, 'CAT3_11')
Char.WarpIntoCarAsPassenger($catalina, 327@, 0)
goto @CAT3_6410

:CAT3_6370
Blip.Remove(41@)
41@ = Blip.AddForCoord(50@, 51@, 52@)
Hud.ClearCounter($cat1_pickups_collected)
Hud.DisplayCounterWithString($cat1_pickups_collected, CounterDisplay.Bar, 'CAT3_11')

:CAT3_6410
if 
  not Car.IsDead(334@)
goto_if_false @CAT3_6441
Car.SetProofs(334@, False, False, False, False, False)

:CAT3_6441
Streaming.RequestCarRecording(188)

:CAT3_6446
if 
  not Streaming.HasCarRecordingBeenLoaded(188)
goto_if_false @CAT3_6473
wait 0
goto @CAT3_6446

:CAT3_6473
if and
  not Car.IsDead(340@)
  not Char.IsDead(310@)
  not Char.IsDead(311@)
  not Char.IsDead($catalina)
  not Car.IsDead(327@)
goto_if_false @CAT3_6651
World.ClearArea(658.6589, -567.5756, 15.3465, 25.0, True)
Car.SetCoordinates(340@, 658.6589, -567.5756, 15.3465)
Car.SetHeading(340@, 180.0)
Char.WarpIntoCar(311@, 340@)
Char.WarpIntoCarAsPassenger(310@, 340@, 0)
Camera.SetFixedPosition(651.9285, -575.1257, 16.2766, 0.0, 0.0, 0.0)
Camera.PointAtPoint(652.3163, -576.027, 16.4698, SwitchType.JumpCut)
44@ = Clock.GetGameTimer()
37@ = 1
35@ = 3

:CAT3_6651
if 
  35@ == 3
goto_if_false @CAT3_7803
if and
  not Char.IsDead(310@)
  not Char.IsDead(311@)
  not Car.IsDead(340@)
  not Car.IsDead(327@)
goto_if_false @CAT3_7803
if 
  4 > 37@
goto_if_false @CAT3_6790
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 1000
goto_if_false @CAT3_6790
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CAT3_6790
44@ -= 5000
37@ = 4

:CAT3_6790
if 
  37@ == 1
goto_if_false @CAT3_6916
if 
  not Car.IsDead(340@)
goto_if_false @CAT3_6916
Camera.DoFade(150, Fade.In)

:CAT3_6831
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_6855
wait 0
goto @CAT3_6831

:CAT3_6855
if 
  not Car.IsDead(340@)
goto_if_false @CAT3_6879
Car.StartPlayback(340@, 188)

:CAT3_6879
if 
  302@ == 0
goto_if_false @CAT3_6904
301@ = 13

:CAT3_6904
44@ = Clock.GetGameTimer()
37@ = 2

:CAT3_6916
if 
  37@ == 2
goto_if_false @CAT3_7388
if 
  not Car.IsDead(340@)
goto_if_false @CAT3_7149
if 
  Car.IsPlaybackGoingOn(340@)
goto_if_false @CAT3_7149
62@, 63@, 64@ = Car.GetOffsetInWorldCoords(340@, 0.0, 5.5, 0.0)
set_lvar_float_to_lvar_float 56@ = 62@
56@ -= 0.25
set_lvar_float_to_lvar_float 57@ = 63@
57@ -= 0.25
set_lvar_float_to_lvar_float 58@ = 64@
58@ -= 0.25
set_lvar_float_to_lvar_float 59@ = 62@
59@ += 0.25
set_lvar_float_to_lvar_float 60@ = 63@
60@ += 0.25
set_lvar_float_to_lvar_float 61@ = 64@
61@ += 0.25
if 
  World.IsAreaOccupied(56@, 57@, 58@, 59@, 60@, 61@, False, True, False, False, False)
goto_if_false @CAT3_7149
Car.StopPlayback(340@)

:CAT3_7149
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_7388
if 
  302@ == 0
goto_if_false @CAT3_7388
if 
  not Char.IsDead(310@)
goto_if_false @CAT3_7265
Task.PlayAnim(310@, "CAR_SC3_BR", "CAR_CHAT", 4.0, False, False, False, False, -1)

:CAT3_7265
69@, 79@, 89@ = Car.GetOffsetInWorldCoords(340@, 0.9, 1.0, 0.5)
99@, 109@, 119@ = Car.GetOffsetInWorldCoords(340@, 0.15, 0.0, 0.3)
Camera.SetFixedPosition(69@, 79@, 89@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(99@, 109@, 119@, SwitchType.JumpCut)
Camera.SetNearClip(0.1)
301@ = 14
44@ = Clock.GetGameTimer()
37@ = 3

:CAT3_7388
if 
  37@ == 3
goto_if_false @CAT3_7526
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_7526
if 
  302@ == 0
goto_if_false @CAT3_7526
301@ = 15
Task.PlayAnim(311@, "CAR_SC4_BL", "CAR_CHAT", 2.0, True, False, False, False, 3500)
44@ = Clock.GetGameTimer()
37@ = 4

:CAT3_7526
if 
  37@ == 4
goto_if_false @CAT3_7803
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_7803
Text.ClearPrints
Camera.DoFade(150, Fade.In)

:CAT3_7599
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_7623
wait 0
goto @CAT3_7599

:CAT3_7623
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
if and
  not Car.IsDead(340@)
  not Char.IsDead(310@)
goto_if_false @CAT3_7803
if 
  Char.IsInCar(310@, 340@)
goto_if_false @CAT3_7803
if 
  not Car.IsDead(334@)
goto_if_false @CAT3_7699
Car.FreezePosition(334@, False)

:CAT3_7699
Car.SetProofs(340@, False, False, False, False, False)
Streaming.RemoveAnimation("CAR_CHAT")
StuckCarCheck.AddWithWarp(340@, 1.0, 2000, True, True, True, 2)
341@ = Blip.AddForCarOld(340@, BlipColor.Red, BlipDisplay.MarkerOnly)
128@ = 4
131@ = Clock.GetGameTimer()
if 
  302@ == 0
goto_if_false @CAT3_7796
301@ = 12

:CAT3_7796
35@ = 4

:CAT3_7803
if 
  35@ == 4
goto_if_false @CAT3_12148
if and
  not Car.IsDead(327@)
  not Car.IsDead(334@)
  not Char.IsDead($catalina)
goto_if_false @CAT3_12148
if 
  302@ == 0
goto_if_false @CAT3_7924
if 
  301@ == 0
goto_if_false @CAT3_7924
if 
  37@ == 4
goto_if_false @CAT3_7924
Text.Print('CAT3_05', 5000, 1)
37@ = -4

:CAT3_7924
$cat1_pickups_collected = Car.GetHealth(334@)
if 
  $cat1_pickups_collected > 250
goto_if_false @CAT3_7980
$cat1_pickups_collected -= 250
$cat1_pickups_collected /= 100
$cat1_pickups_collected *= 10
goto @CAT3_7985

:CAT3_7980
Hud.ClearCounter($cat1_pickups_collected)

:CAT3_7985
if 
  36@ == 1
goto_if_false @CAT3_10209
if and
  not Car.IsDead(340@)
  not Char.IsDead(310@)
  not Char.IsDead(311@)
goto_if_false @CAT3_10202
if 
  128@ == 0
goto_if_false @CAT3_8144
125@ = Math.RandomIntInRange(0, 6)
131@ = Clock.GetGameTimer()
128@ = 1
if 
  is_int_lvar_equal_to_int_lvar 125@ == 126@
goto_if_false @CAT3_8144
if 
  5 > 125@
goto_if_false @CAT3_8119
125@ += 1
goto @CAT3_8144

:CAT3_8119
if 
  125@ > 0
goto_if_false @CAT3_8144
125@ -= 1

:CAT3_8144
if 
  128@ == 1
goto_if_false @CAT3_9549
if 
  125@ == 0
goto_if_false @CAT3_8394
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_8394
301@ = 27
if 
  Char.IsInCar($scplayer, 327@)
goto_if_false @CAT3_8331
Char.SetAccuracy(310@, 20)
Task.DriveBy(310@, $catalina, -1, 0.0, -5.0, 0.0, 30.0, DriveByType.Ai, True, 50)
Char.SetCurrentWeapon(310@, WeaponType.MicroUzi)
Task.DriveBy($catalina, 310@, -1, 0.0, 0.0, 0.0, 30.0, DriveByType.FixedRight, True, 90)
Char.SetCurrentWeapon($catalina, WeaponType.Shotgun)
goto @CAT3_8374

:CAT3_8331
Char.SetAccuracy(310@, 50)
Task.DriveBy(310@, $scplayer, -1, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 15)

:CAT3_8374
set_lvar_int_to_lvar_int 126@ = 125@
131@ = Clock.GetGameTimer()
128@ = 2

:CAT3_8394
if 
  125@ == 1
goto_if_false @CAT3_8626
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_8626
301@ = 28
if 
  Char.IsInCar($scplayer, 327@)
goto_if_false @CAT3_8563
Char.SetAccuracy(310@, 20)
Task.DriveBy(310@, $catalina, -1, 0.0, -5.0, 0.0, 30.0, DriveByType.Ai, True, 50)
Char.SetCurrentWeapon(310@, WeaponType.MicroUzi)
Task.DriveBy($catalina, 310@, -1, 0.0, 0.0, 0.0, 30.0, DriveByType.FixedRight, True, 90)
Char.SetCurrentWeapon($catalina, WeaponType.Shotgun)
goto @CAT3_8606

:CAT3_8563
Char.SetAccuracy(310@, 50)
Task.DriveBy(310@, $scplayer, -1, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 15)

:CAT3_8606
set_lvar_int_to_lvar_int 126@ = 125@
131@ = Clock.GetGameTimer()
128@ = 2

:CAT3_8626
if 
  125@ == 2
goto_if_false @CAT3_8858
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_8858
301@ = 29
if 
  Char.IsInCar($scplayer, 327@)
goto_if_false @CAT3_8795
Char.SetAccuracy(310@, 20)
Task.DriveBy(310@, $catalina, -1, 0.0, -5.0, 0.0, 30.0, DriveByType.Ai, True, 50)
Char.SetCurrentWeapon(310@, WeaponType.MicroUzi)
Task.DriveBy($catalina, 310@, -1, 0.0, 0.0, 0.0, 30.0, DriveByType.FixedRight, True, 90)
Char.SetCurrentWeapon($catalina, WeaponType.Shotgun)
goto @CAT3_8838

:CAT3_8795
Char.SetAccuracy(310@, 50)
Task.DriveBy(310@, $scplayer, -1, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 15)

:CAT3_8838
set_lvar_int_to_lvar_int 126@ = 125@
131@ = Clock.GetGameTimer()
128@ = 2

:CAT3_8858
if 
  125@ == 3
goto_if_false @CAT3_9090
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9090
301@ = 30
if 
  Char.IsInCar($scplayer, 327@)
goto_if_false @CAT3_9027
Char.SetAccuracy(310@, 20)
Task.DriveBy(310@, $catalina, -1, 0.0, -5.0, 0.0, 30.0, DriveByType.Ai, True, 50)
Char.SetCurrentWeapon(310@, WeaponType.MicroUzi)
Task.DriveBy($catalina, 310@, -1, 0.0, 0.0, 0.0, 30.0, DriveByType.FixedRight, True, 90)
Char.SetCurrentWeapon($catalina, WeaponType.Shotgun)
goto @CAT3_9070

:CAT3_9027
Char.SetAccuracy(310@, 50)
Task.DriveBy(310@, $scplayer, -1, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 15)

:CAT3_9070
set_lvar_int_to_lvar_int 126@ = 125@
131@ = Clock.GetGameTimer()
128@ = 2

:CAT3_9090
if 
  125@ == 4
goto_if_false @CAT3_9317
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9317
301@ = 31
if 
  Char.IsInCar($scplayer, 327@)
goto_if_false @CAT3_9259
Char.SetAccuracy(310@, 20)
Task.DriveBy(310@, $catalina, -1, 0.0, -5.0, 0.0, 30.0, DriveByType.Ai, True, 50)
Char.SetCurrentWeapon(310@, WeaponType.MicroUzi)
Task.DriveBy($catalina, 310@, -1, 0.0, 0.0, 0.0, 30.0, DriveByType.FixedRight, True, 90)
Char.SetCurrentWeapon($catalina, WeaponType.Shotgun)
goto @CAT3_9302

:CAT3_9259
Char.SetAccuracy(310@, 50)
Task.DriveBy(310@, $scplayer, -1, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 15)

:CAT3_9302
set_lvar_int_to_lvar_int 126@ = 125@
128@ = 2

:CAT3_9317
if 
  125@ == 5
goto_if_false @CAT3_9549
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9549
301@ = 32
if 
  Char.IsInCar($scplayer, 327@)
goto_if_false @CAT3_9486
Char.SetAccuracy(310@, 20)
Task.DriveBy(310@, $catalina, -1, 0.0, -5.0, 0.0, 30.0, DriveByType.Ai, True, 50)
Char.SetCurrentWeapon(310@, WeaponType.MicroUzi)
Task.DriveBy($catalina, 310@, -1, 0.0, 0.0, 0.0, 30.0, DriveByType.FixedRight, True, 90)
Char.SetCurrentWeapon($catalina, WeaponType.Shotgun)
goto @CAT3_9529

:CAT3_9486
Char.SetAccuracy(310@, 50)
Task.DriveBy(310@, $scplayer, -1, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 15)

:CAT3_9529
set_lvar_int_to_lvar_int 126@ = 125@
131@ = Clock.GetGameTimer()
128@ = 2

:CAT3_9549
if 
  128@ == 2
goto_if_false @CAT3_9664
125@ = Math.RandomIntInRange(6, 13)
131@ = Clock.GetGameTimer()
128@ = 3
if 
  is_int_lvar_equal_to_int_lvar 125@ == 127@
goto_if_false @CAT3_9664
if 
  12 > 125@
goto_if_false @CAT3_9639
125@ += 1
goto @CAT3_9664

:CAT3_9639
if 
  125@ > 6
goto_if_false @CAT3_9664
125@ -= 1

:CAT3_9664
if 
  128@ == 3
goto_if_false @CAT3_10137
if 
  125@ == 6
goto_if_false @CAT3_9747
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9747
301@ = 33
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_9747
if 
  125@ == 7
goto_if_false @CAT3_9812
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9812
301@ = 34
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_9812
if 
  125@ == 8
goto_if_false @CAT3_9877
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9877
301@ = 35
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_9877
if 
  125@ == 9
goto_if_false @CAT3_9942
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9942
301@ = 36
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_9942
if 
  125@ == 10
goto_if_false @CAT3_10007
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_10007
301@ = 37
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_10007
if 
  125@ == 11
goto_if_false @CAT3_10072
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_10072
301@ = 38
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_10072
if 
  125@ == 12
goto_if_false @CAT3_10137
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_10137
301@ = 39
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_10137
if 
  128@ == 4
goto_if_false @CAT3_10202
130@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 129@ = 130@
sub_int_lvar_from_int_lvar 129@ -= 131@
if 
  129@ > 12000
goto_if_false @CAT3_10202
128@ = 5

:CAT3_10202
goto @CAT3_10302

:CAT3_10209
if and
  not Car.IsDead(340@)
  not Char.IsDead(310@)
goto_if_false @CAT3_10302
312@ = Char.GetScriptTaskStatus(310@, 1811)
if 
  is_int_lvar_equal_to_constant 312@ == 7
goto_if_false @CAT3_10302
Char.SetAccuracy(310@, 50)
Task.DriveBy(310@, $scplayer, -1, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 60)

:CAT3_10302
if 
  Car.IsDead(340@)
goto_if_false @CAT3_10397
if 
  not Char.IsDead(310@)
goto_if_false @CAT3_10355
if 
  not Char.IsOnScreen(310@)
goto_if_false @CAT3_10355
Char.RemoveElegantly(310@)

:CAT3_10355
if 
  not Char.IsDead(311@)
goto_if_false @CAT3_10392
if 
  not Char.IsOnScreen(311@)
goto_if_false @CAT3_10392
Char.RemoveElegantly(311@)

:CAT3_10392
Blip.Remove(341@)

:CAT3_10397
if and
  not Char.IsDead(310@)
  not Car.IsDead(340@)
goto_if_false @CAT3_10736
if 
  not Char.LocateAnyMeansChar3D($scplayer, 310@, 15.0, 15.0, 15.0, False)
goto_if_false @CAT3_10492
if 
  60.0 > 321@
goto_if_false @CAT3_10485
321@ += 0.2

:CAT3_10485
goto @CAT3_10523

:CAT3_10492
if 
  321@ > 40.0
goto_if_false @CAT3_10523
321@ -= 0.1

:CAT3_10523
if 
  not Char.LocateAnyMeans3D($scplayer, 50@, 51@, 52@, 120.0, 120.0, 120.0, False)
goto_if_false @CAT3_10736
if 
  not Char.LocateAnyMeansChar3D($scplayer, 310@, 100.0, 100.0, 100.0, False)
goto_if_false @CAT3_10711
62@, 63@, 64@ = Car.GetOffsetInWorldCoords(334@, 0.0, -40.0, 0.0)
342@, 343@, 344@, 345@ = Path.GetNthClosestCarNodeWithHeading(62@, 63@, 64@, 1)
if 
  not Camera.IsPointOnScreen(342@, 343@, 344@, 15.0)
goto_if_false @CAT3_10704
Car.SetCoordinates(340@, 342@, 343@, 344@)
Car.SetHeading(340@, 345@)

:CAT3_10704
goto @CAT3_10736

:CAT3_10711
if 
  128@ == 5
goto_if_false @CAT3_10736
128@ = 0

:CAT3_10736
306@ = Car.GetHealth(334@)
if 
  40@ == 0
goto_if_false @CAT3_11292
if 
  not Char.IsDead(310@)
goto_if_false @CAT3_11292
if 
  not Char.LocateAnyMeans3D($scplayer, 50@, 51@, 52@, 120.0, 120.0, 120.0, False)
goto_if_false @CAT3_10922
if 
  not Char.IsDead(311@)
goto_if_false @CAT3_10915
if 
  not Car.IsDead(334@)
goto_if_false @CAT3_10915
if 
  not Car.IsDead(340@)
goto_if_false @CAT3_10915
47@ = Char.GetScriptTaskStatus(311@, 1761)
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @CAT3_10915
Task.CarMission(311@, 340@, 327@, CarMission.BlockCarFaraway, 321@, DrivingMode.AvoidCars)

:CAT3_10915
goto @CAT3_11000

:CAT3_10922
if 
  not Car.IsDead(340@)
goto_if_false @CAT3_11000
if 
  not Char.IsDead(311@)
goto_if_false @CAT3_11000
Task.CarTempAction(311@, 340@, TempAction.HandbrakeStraight, 2000)
44@ = Clock.GetGameTimer()
if 
  Car.DoesHaveStuckCarCheck(340@)
goto_if_false @CAT3_10993
StuckCarCheck.Remove(340@)

:CAT3_10993
40@ = 1

:CAT3_11000
if 
  Char.LocateAnyMeansChar3D($scplayer, 310@, 30.0, 30.0, 30.0, False)
goto_if_false @CAT3_11292
if 
  not Char.IsDead(311@)
goto_if_false @CAT3_11292
if 
  not Car.IsDead(334@)
goto_if_false @CAT3_11292
if 
  not Car.IsDead(340@)
goto_if_false @CAT3_11292
$c3_trailer_health_display = Math.RandomIntInRange(0, 4)
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ == 5000
goto_if_false @CAT3_11292
if 
  $c3_trailer_health_display == 0
goto_if_false @CAT3_11169
Task.CarMission(311@, 340@, 327@, CarMission.EscortLeft, 321@, DrivingMode.AvoidCars)
44@ = Clock.GetGameTimer()

:CAT3_11169
if 
  $c3_trailer_health_display == 1
goto_if_false @CAT3_11210
Task.CarMission(311@, 340@, 327@, CarMission.EscortRight, 321@, DrivingMode.AvoidCars)
44@ = Clock.GetGameTimer()

:CAT3_11210
if 
  $c3_trailer_health_display == 2
goto_if_false @CAT3_11251
Task.CarMission(311@, 340@, 327@, CarMission.EscortRear, 321@, DrivingMode.AvoidCars)
44@ = Clock.GetGameTimer()

:CAT3_11251
if 
  $c3_trailer_health_display == 3
goto_if_false @CAT3_11292
Task.CarMission(311@, 340@, 327@, CarMission.EscortFront, 321@, DrivingMode.AvoidCars)
44@ = Clock.GetGameTimer()

:CAT3_11292
if and
  not Car.IsDead(327@)
  not Char.IsDead(310@)
goto_if_false @CAT3_11421
333@ = Car.GetSpeed(327@)
if 
  3.0 > 333@
goto_if_false @CAT3_11421
47@ = Char.GetScriptTaskStatus(310@, 1811)
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @CAT3_11421
Char.SetAccuracy(310@, 40)
Task.DriveBy(310@, $catalina, -1, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 100)
Char.SetCurrentWeapon(310@, WeaponType.MicroUzi)

:CAT3_11421
if 
  not Trailer.IsAttachedToCab(334@, 327@)
goto_if_false @CAT3_11764
if 
  Char.IsInCar($catalina, 327@)
goto_if_false @CAT3_11741
if 
  not Car.IsUpsidedown(327@)
goto_if_false @CAT3_11702
Camera.DoFade(50, Fade.Out)

:CAT3_11481
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_11505
wait 0
goto @CAT3_11481

:CAT3_11505
if 
  not Car.IsDead(327@)
goto_if_false @CAT3_11695
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Car.SetTempAction(327@, TempAction.HandbrakeStraight, 2000)
73@, 83@, 93@ = Car.GetOffsetInWorldCoords(327@, 2.5, 4.0, 0.0)
103@, 113@, 123@ = Car.GetOffsetInWorldCoords(327@, 2.2, 3.0, 0.0)
Camera.SetFixedPosition(73@, 83@, 93@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(103@, 113@, 123@, SwitchType.JumpCut)
if 
  not Car.IsDead(340@)
goto_if_false @CAT3_11676
if 
  not Car.IsOnScreen(340@)
goto_if_false @CAT3_11676
Car.Delete(340@)

:CAT3_11676
44@ = Clock.GetGameTimer()
37@ = 0
goto @CAT3_15882

:CAT3_11695
goto @CAT3_11734

:CAT3_11702
Camera.DoFade(300, Fade.In)
Text.ClearPrints
Text.PrintNow('CAT3_08', 5000, 1)
goto @CAT3_16983

:CAT3_11734
goto @CAT3_11764

:CAT3_11741
Text.PrintNow('CAT3_08', 5000, 1)
goto @CAT3_16983

:CAT3_11764
if and
  Char.IsInCar($catalina, 327@)
  Char.IsInCar($scplayer, 327@)
goto_if_false @CAT3_12148
if or
  Car.Locate3D(327@, 50@, 51@, 52@, 5.0, 5.0, 5.0, True)
  Car.Locate3D(334@, 50@, 51@, 52@, 5.0, 5.0, 5.0, False)
goto_if_false @CAT3_12148
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:CAT3_11878
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_11902
wait 0
goto @CAT3_11878

:CAT3_11902
gosub @CAT3_1102
Streaming.LoadScene(-76.1314, -1131.417, 0.0782)
Hud.SwitchWidescreen(True)
Blip.Remove(41@)
Text.ClearPrints
Streaming.RequestCarRecording(199)

:CAT3_11942
if 
  not Streaming.HasCarRecordingBeenLoaded(199)
goto_if_false @CAT3_11969
wait 0
goto @CAT3_11942

:CAT3_11969
Camera.SetFixedPosition(-81.2678, -1141.735, 3.899, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-81.7168, -1140.842, 3.8854, SwitchType.JumpCut)
if and
  not Char.IsDead($catalina)
  not Char.IsDead($scplayer)
  not Car.IsDead(327@)
goto_if_false @CAT3_12120
Car.FreezePosition(327@, True)
Car.LockDoors(327@, CarLock.LockoutPlayerOnly)
Char.WarpFromCarToCoord($catalina, -71.5991, -1134.952, 0.0781)
Char.SetHeading($catalina, 63.1513)
Char.WarpFromCarToCoord($scplayer, -74.2582, -1130.526, 0.0781)
Char.SetHeading($scplayer, 135.9294)

:CAT3_12120
gosub @CAT3_576
Text.ClearPrints
44@ = Clock.GetGameTimer()
37@ = -4
35@ = 5

:CAT3_12148
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @CAT3_12449
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:CAT3_12177
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_12201
wait 0
goto @CAT3_12177

:CAT3_12201
gosub @CAT3_1102
Streaming.LoadScene(-76.1314, -1131.417, 0.0782)
Hud.SwitchWidescreen(True)
Blip.Remove(41@)
Text.ClearPrints
Streaming.RequestCarRecording(199)

:CAT3_12241
if 
  not Streaming.HasCarRecordingBeenLoaded(199)
goto_if_false @CAT3_12268
wait 0
goto @CAT3_12241

:CAT3_12268
Camera.SetFixedPosition(-81.2678, -1141.735, 3.899, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-81.7168, -1140.842, 3.8854, SwitchType.JumpCut)
if and
  not Char.IsDead($catalina)
  not Char.IsDead($scplayer)
  not Car.IsDead(327@)
goto_if_false @CAT3_12419
Car.SetCoordinates(327@, 50@, 51@, 52@)
Char.WarpFromCarToCoord($catalina, -71.5991, -1134.952, 0.0781)
Char.SetHeading($catalina, 63.1513)
Char.WarpFromCarToCoord($scplayer, -74.2582, -1130.526, 0.0781)
Char.SetHeading($scplayer, 135.9294)

:CAT3_12419
gosub @CAT3_576
Text.ClearHelp
Text.ClearPrints
44@ = Clock.GetGameTimer()
37@ = -4
35@ = 5

:CAT3_12449
if 
  35@ == 5
goto_if_false @CAT3_15166
if and
  not Char.IsDead($catalina)
  not Char.IsDead(322@)
  not Car.IsDead(327@)
goto_if_false @CAT3_15166
if 
  Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT3_12517
Char.RemoveFromGroup($catalina)

:CAT3_12517
if 
  37@ == -4
goto_if_false @CAT3_12631
if 
  not Car.IsDead(340@)
goto_if_false @CAT3_12624
Car.SetProofs(340@, False, False, False, False, False)
Car.StartPlayback(340@, 199)
44@ = Clock.GetGameTimer()
Camera.DoFade(250, Fade.In)

:CAT3_12586
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_12610
wait 0
goto @CAT3_12586

:CAT3_12610
37@ = -3
goto @CAT3_12631

:CAT3_12624
37@ = -1

:CAT3_12631
if 
  37@ == -3
goto_if_false @CAT3_12770
if 
  not Car.IsDead(340@)
goto_if_false @CAT3_12770
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_12770
Camera.SetFixedPosition(-107.3115, -1128.808, 2.6543, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-106.788, -1129.652, 2.7731, SwitchType.JumpCut)
Car.SetHealth(340@, 5)
37@ = -21

:CAT3_12770
if 
  37@ == -21
goto_if_false @CAT3_12907
if 
  not Car.IsDead(340@)
goto_if_false @CAT3_12907
if 
  not Car.IsPlaybackGoingOn(340@)
goto_if_false @CAT3_12907
Camera.SetFixedPosition(-108.8537, -1168.342, 3.0287, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-108.0611, -1167.736, 3.0908, SwitchType.JumpCut)
Fx.AddExplosion(-92.24, -1161.46, 2.5, ExplosionType.Car)
Car.ExplodeInCutscene(340@)
44@ = Clock.GetGameTimer()
37@ = -22

:CAT3_12907
if 
  37@ == -22
goto_if_false @CAT3_12987
if 
  42@ > 1000
goto_if_false @CAT3_12987
if 
  not Car.IsDead(346@)
goto_if_false @CAT3_12987
Car.SetProofs(346@, False, False, False, False, False)
Car.ExplodeInCutscene(346@)
37@ = -2

:CAT3_12987
if 
  37@ == -2
goto_if_false @CAT3_13083
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 3000
goto_if_false @CAT3_13083
Camera.DoFade(500, Fade.Out)

:CAT3_13052
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_13076
wait 0
goto @CAT3_13052

:CAT3_13076
37@ = -1

:CAT3_13083
if 
  37@ == -1
goto_if_false @CAT3_13242
Camera.SetFixedPosition(70@, 80@, 90@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(100@, 110@, 120@, SwitchType.JumpCut)
if and
  not Char.IsDead(310@)
  not Char.IsDead(311@)
  not Car.IsDead(340@)
goto_if_false @CAT3_13181
Char.Delete(310@)
Char.Delete(311@)
Car.Delete(340@)

:CAT3_13181
Streaming.LoadSceneInDirection(70@, 80@, 90@, 100.0)
Text.ClearPrints
44@ = Clock.GetGameTimer()
Camera.DoFade(500, Fade.In)

:CAT3_13211
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_13235
wait 0
goto @CAT3_13211

:CAT3_13235
37@ = 0

:CAT3_13242
if 
  37@ == 0
goto_if_false @CAT3_13415
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 300
goto_if_false @CAT3_13415
if 
  302@ == 0
goto_if_false @CAT3_13415
if and
  not Char.IsDead($catalina)
  not Char.IsDead(322@)
goto_if_false @CAT3_13415
48@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, 322@)
Task.GoStraightToCoord(-1, -74.8954, -1133.779, 0.0781, MoveState.Walk, -1)
Task.LookAtChar(-1, 322@, -2)
Sequence.Close(48@)
Char.PerformSequence($catalina, 48@)
301@ = 43
44@ = Clock.GetGameTimer()
37@ = 1

:CAT3_13415
if 
  37@ == 1
goto_if_false @CAT3_13661
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_13661
if 
  302@ == 0
goto_if_false @CAT3_13661
Camera.DoFade(50, Fade.Out)

:CAT3_13497
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_13521
wait 0
goto @CAT3_13497

:CAT3_13521
if and
  not Char.IsDead(322@)
  not Char.IsDead($catalina)
goto_if_false @CAT3_13557
Task.LookAtChar(322@, $catalina, -2)
Task.ScratchHead(322@)

:CAT3_13557
301@ = 44
44@ = Clock.GetGameTimer()
Streaming.LoadSceneInDirection(71@, 81@, 91@, 270.0)
Camera.SetFixedPosition(71@, 81@, 91@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(101@, 111@, 121@, SwitchType.JumpCut)
Camera.DoFade(50, Fade.In)

:CAT3_13630
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_13654
wait 0
goto @CAT3_13630

:CAT3_13654
37@ = 2

:CAT3_13661
if 
  37@ == 2
goto_if_false @CAT3_13859
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_13859
if 
  302@ == 0
goto_if_false @CAT3_13859
if and
  not Car.IsDead(327@)
  not Char.IsDead(322@)
  not Char.IsDead($catalina)
goto_if_false @CAT3_13859
Char.ClearLookAt(322@)
Task.TurnCharToFaceCoord($catalina, 50@, 51@, 52@)
Task.TurnCharToFaceCoord(322@, 50@, 51@, 52@)
Task.LookAtVehicle($catalina, 327@, -2)
Task.LookAtVehicle(322@, 327@, -2)
Task.GoStraightToCoord(322@, -75.1023, -1134.871, 0.0781, MoveState.Walk, -1)
301@ = 45
44@ = Clock.GetGameTimer()
37@ = 3

:CAT3_13859
if 
  37@ == 3
goto_if_false @CAT3_14050
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_14050
if 
  302@ == 0
goto_if_false @CAT3_14050
if 
  not Char.IsDead(322@)
goto_if_false @CAT3_14031
Camera.SetFixedPosition(72@, 82@, 92@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(102@, 112@, 122@, SwitchType.JumpCut)
Task.TurnCharToFaceChar(322@, $catalina)
Task.LookAtChar(322@, $catalina, -2)
Task.ScratchHead(322@)
Task.TurnCharToFaceChar($catalina, 322@)
Task.LookAtChar($catalina, 322@, -2)

:CAT3_14031
301@ = 46
44@ = Clock.GetGameTimer()
37@ = 4

:CAT3_14050
if 
  37@ == 4
goto_if_false @CAT3_14145
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_14145
if 
  302@ == 0
goto_if_false @CAT3_14145
301@ = 47
44@ = Clock.GetGameTimer()
37@ = 5

:CAT3_14145
if 
  37@ == 5
goto_if_false @CAT3_14285
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_14285
if 
  302@ == 0
goto_if_false @CAT3_14285
if 
  not Char.IsDead($catalina)
goto_if_false @CAT3_14285
Char.ClearLookAt($catalina)
Task.GoStraightToCoord($catalina, -83.1314, -1129.417, 0.0782, MoveState.Walk, -1)
301@ = 48
44@ = Clock.GetGameTimer()
37@ = 6

:CAT3_14285
if 
  37@ == 6
goto_if_false @CAT3_14437
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_14437
if 
  302@ == 0
goto_if_false @CAT3_14437
if 
  not Char.IsDead(322@)
goto_if_false @CAT3_14437
Char.ClearLookAt(322@)
Task.TurnCharToFaceChar(322@, $scplayer)
wait 100
Task.GoStraightToCoord($scplayer, -84.1314, -1128.417, 0.0782, MoveState.Walk, -1)
301@ = 51
44@ = Clock.GetGameTimer()
37@ = 7

:CAT3_14437
if 
  37@ == 7
goto_if_false @CAT3_14532
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_14532
if 
  302@ == 0
goto_if_false @CAT3_14532
301@ = 52
44@ = Clock.GetGameTimer()
37@ = 8

:CAT3_14532
if 
  37@ == 8
goto_if_false @CAT3_14735
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 3000
goto_if_false @CAT3_14735
Camera.DoFade(100, Fade.Out)

:CAT3_14596
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_14620
wait 0
goto @CAT3_14596

:CAT3_14620
44@ = Clock.GetGameTimer()
if 
  not Char.IsDead($catalina)
goto_if_false @CAT3_14665
if 
  Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT3_14665
Char.RemoveFromGroup($catalina)

:CAT3_14665
gosub @CAT3_1234
Char.ClearTasks($scplayer)
Camera.SetFixedPosition(-86.1477, -1130.445, 0.9157, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-86.5058, -1129.52, 1.0417, SwitchType.JumpCut)
37@ = 9

:CAT3_14735
if 
  37@ == 9
goto_if_false @CAT3_14815
Camera.DoFade(100, Fade.In)

:CAT3_14759
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_14783
wait 0
goto @CAT3_14759

:CAT3_14783
if 
  302@ == 0
goto_if_false @CAT3_14815
301@ = 55
37@ = 10

:CAT3_14815
if 
  37@ == 10
goto_if_false @CAT3_14908
if 
  301@ == 0
goto_if_false @CAT3_14908
if and
  not Car.IsDead(352@)
  not Char.IsDead($catalina)
goto_if_false @CAT3_14908
if 
  not Car.IsPlaybackGoingOn(352@)
goto_if_false @CAT3_14908
Char.ClearLookAt($catalina)
Car.StartPlayback(352@, 189)
37@ = 11

:CAT3_14908
if 
  37@ == 11
goto_if_false @CAT3_15021
if 
  not Car.IsDead(352@)
goto_if_false @CAT3_15021
if 
  not Car.IsPlaybackGoingOn(352@)
goto_if_false @CAT3_15021
Camera.DoFade(500, Fade.Out)

:CAT3_14965
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_14989
wait 0
goto @CAT3_14965

:CAT3_14989
Char.ClearTasks($scplayer)
Char.Delete($catalina)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
goto @CAT3_17001

:CAT3_15021
if 
  37@ > 0
goto_if_false @CAT3_15166
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CAT3_15166
Camera.DoFade(500, Fade.Out)

:CAT3_15063
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_15087
wait 0
goto @CAT3_15063

:CAT3_15087
if 
  not Char.IsDead($catalina)
goto_if_false @CAT3_15134
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT3_15134
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $catalina)

:CAT3_15134
Char.ClearTasks($scplayer)
Char.Delete($catalina)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
goto @CAT3_17001

:CAT3_15166
if and
  35@ > 0
  5 > 35@
goto_if_false @CAT3_15198
gosub @CAT3_18123

:CAT3_15198
if and
  35@ > 1
  5 > 35@
goto_if_false @CAT3_15711
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(327@)
goto_if_false @CAT3_15711
if 
  36@ == 0
goto_if_false @CAT3_15499
if 
  49@ == 1
goto_if_false @CAT3_15499
if and
  35@ <> 1
  35@ <> 3
goto_if_false @CAT3_15320
Text.PrintNow('CAT3_10', 100, 1)

:CAT3_15320
if 
  Char.IsInCar($scplayer, 327@)
goto_if_false @CAT3_15499
if and
  35@ <> 1
  35@ <> 3
goto_if_false @CAT3_15366
Text.ClearPrints

:CAT3_15366
Blip.Remove(328@)
if 
  35@ == 2
goto_if_false @CAT3_15420
if 
  not Car.IsDead(334@)
goto_if_false @CAT3_15420
335@ = Blip.AddForCar(334@)
Blip.SetAsFriendly(335@, True)

:CAT3_15420
if or
  35@ == 3
  35@ == 4
goto_if_false @CAT3_15492
Blip.Remove(41@)
41@ = Blip.AddForCoord(50@, 51@, 52@)
Blip.SetAsFriendly(41@, True)
Hud.ClearCounter($cat1_pickups_collected)
Hud.DisplayCounterWithString($cat1_pickups_collected, CounterDisplay.Bar, 'CAT3_11')

:CAT3_15492
36@ = 1

:CAT3_15499
if 
  36@ == 1
goto_if_false @CAT3_15711
if 
  not Char.IsInCar($scplayer, 327@)
goto_if_false @CAT3_15711
if 
  49@ == 1
goto_if_false @CAT3_15569
328@ = Blip.AddForCar(327@)
Blip.SetAsFriendly(328@, True)

:CAT3_15569
if 
  35@ == 2
goto_if_false @CAT3_15592
Blip.Remove(335@)

:CAT3_15592
if or
  35@ == 3
  35@ == 4
goto_if_false @CAT3_15627
Blip.Remove(41@)
Hud.ClearCounter($cat1_pickups_collected)

:CAT3_15627
if 
  35@ == 4
goto_if_false @CAT3_15704
if 
  not Char.IsDead(310@)
goto_if_false @CAT3_15704
Char.SetAccuracy(310@, 50)
Task.DriveBy(310@, $scplayer, -1, 0.0, 0.0, 0.0, 150.0, DriveByType.Ai, True, 60)

:CAT3_15704
36@ = 0

:CAT3_15711
if or
  Char.IsDead($catalina)
  Char.IsInWater($catalina)
goto_if_false @CAT3_15757
Text.ClearPrints
Text.PrintNow('CAT3_06', 10000, 1)
goto @CAT3_16983

:CAT3_15757
if 
  5 > 35@
goto_if_false @CAT3_15816
if 
  Car.IsDead(334@)
goto_if_false @CAT3_15816
Text.ClearPrints
Text.PrintNow('CAT3_07', 5000, 1)
goto @CAT3_16983

:CAT3_15816
if 
  5 > 35@
goto_if_false @CAT3_15875
if 
  Car.IsDead(327@)
goto_if_false @CAT3_15875
Text.ClearPrints
Text.PrintNow('CAT3_09', 5000, 1)
goto @CAT3_16983

:CAT3_15875
goto @CAT3_3679

:CAT3_15882
wait 0
if 
  301@ <> 0
goto_if_false @CAT3_16313
if 
  302@ == 0
goto_if_false @CAT3_15950
if 
  Audio.HasMissionAudioLoaded(304@)
goto_if_false @CAT3_15943
Audio.ClearMissionAudio(304@)

:CAT3_15943
302@ = 1

:CAT3_15950
if 
  302@ == 1
goto_if_false @CAT3_15994
Audio.LoadMissionAudio(303@, 245@(301@,56i))
gosub @CAT3_17387
302@ = 2

:CAT3_15994
if 
  302@ == 2
goto_if_false @CAT3_16096
if 
  Audio.HasMissionAudioLoaded(303@)
goto_if_false @CAT3_16096
if 
  244@ <> 0
goto_if_false @CAT3_16070
if 
  not Char.IsDead(244@)
goto_if_false @CAT3_16070
Char.StartFacialTalk(244@, 10000)

:CAT3_16070
Audio.PlayMissionAudio(303@)
Text.PrintNow(132@(301@,56s), 10000, 1)
302@ = 3

:CAT3_16096
if 
  302@ == 3
goto_if_false @CAT3_16313
if 
  Audio.HasMissionAudioFinished(303@)
goto_if_false @CAT3_16252
Text.ClearThisPrint(132@(301@,56s))
if 
  244@ <> 0
goto_if_false @CAT3_16178
if 
  not Char.IsDead(244@)
goto_if_false @CAT3_16178
Char.StopFacialTalk(244@)

:CAT3_16178
if 
  303@ == 1
goto_if_false @CAT3_16217
303@ = 2
304@ = 1
goto @CAT3_16231

:CAT3_16217
303@ = 1
304@ = 2

:CAT3_16231
301@ = 0
302@ = 0
goto @CAT3_16313

:CAT3_16252
if 
  not Audio.HasMissionAudioLoaded(304@)
goto_if_false @CAT3_16313
if 
  54 > 301@
goto_if_false @CAT3_16313
set_lvar_int_to_lvar_int 305@ = 301@
305@ += 1
Audio.LoadMissionAudio(304@, 245@(305@,56i))

:CAT3_16313
if 
  37@ == 0
goto_if_false @CAT3_16448
Camera.DoFade(50, Fade.In)

:CAT3_16337
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_16361
wait 0
goto @CAT3_16337

:CAT3_16361
301@ = 53
44@ = Clock.GetGameTimer()
if and
  not Car.IsDead(327@)
  not Char.IsDead($catalina)
goto_if_false @CAT3_16448
Camera.AttachToVehicle(327@, 1.0, 8.0, 1.5, 0.0, 0.0, 1.0, 0.0, SwitchType.JumpCut)
Hud.ClearCounter($cat1_pickups_collected)
37@ = 1

:CAT3_16448
if 
  37@ == 1
goto_if_false @CAT3_16643
if and
  not Car.IsDead(327@)
  not Char.IsDead($catalina)
goto_if_false @CAT3_16643
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 1000
goto_if_false @CAT3_16643
if 
  302@ == 0
goto_if_false @CAT3_16643
301@ = 54
Camera.AttachToVehicle(327@, 1.0, 8.0, 1.5, 0.0, 0.0, 1.0, 0.0, SwitchType.JumpCut)
73@, 83@, 93@ = Car.GetOffsetInWorldCoords(327@, 4.5, 10.0, 0.0)
Task.LeaveCar($catalina, 327@)
44@ = Clock.GetGameTimer()
37@ = 2

:CAT3_16643
if 
  37@ == 2
goto_if_false @CAT3_16890
if 
  302@ == 0
goto_if_false @CAT3_16890
43@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 1000
goto_if_false @CAT3_16890
if 
  not Char.IsDead($catalina)
goto_if_false @CAT3_16890
if 
  not Car.IsDead(327@)
goto_if_false @CAT3_16890
if 
  not Char.IsInCar($catalina, 327@)
goto_if_false @CAT3_16890
Task.GoStraightToCoord($catalina, 73@, 83@, 93@, MoveState.Walk, -1)
if 
  302@ == 0
goto_if_false @CAT3_16890
Camera.DoFade(50, Fade.Out)

:CAT3_16812
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_16836
wait 0
goto @CAT3_16812

:CAT3_16836
if 
  not Char.IsDead($catalina)
goto_if_false @CAT3_16890
if 
  Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT3_16890
Char.RemoveFromGroup($catalina)
Char.Delete($catalina)
Text.ClearPrints
37@ = 3

:CAT3_16890
if 
  37@ == 3
goto_if_false @CAT3_16976
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Camera.DoFade(50, Fade.In)

:CAT3_16922
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_16946
wait 0
goto @CAT3_16922

:CAT3_16946
Text.PrintNow('CAT3_08', 5000, 1)
Player.SetControl($player1, True)
goto @CAT3_16983

:CAT3_16976
goto @CAT3_15882

:CAT3_16983
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:CAT3_17001
$cat_counter += 1
if and
  not Car.IsDead(327@)
  not Car.IsDead(334@)
goto_if_false @CAT3_17046
Car.FreezePosition(327@, False)
Car.Delete(327@)
Car.Delete(334@)

:CAT3_17046
start_new_script @TRUCKS 
if 
  $cat_otb_banter == 1
goto_if_false @CAT3_17079
$cat_otb_banter = 2

:CAT3_17079
if 
  $cat_liquor_banter == 1
goto_if_false @CAT3_17104
$cat_liquor_banter = 2

:CAT3_17104
Blip.Remove($tucking_contact_blip)
$tucking_contact_blip = Blip.AddShortRangeSpriteForContactPoint($truckX, $truckY, $truckZ, RadarSprite.Truck)
Audio.PlayMissionPassedTune(1)
Stat.RegisterMissionPassed('CAT_3')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASS', 34@, 5000, TextStyle.Middle)
Player.AddScore($player1, 34@)
Player.ClearWantedLevel($player1)
$flag_cat_mission3_passed = 1
return 

:CAT3_17185
Blip.Remove(328@)
Blip.Remove(335@)
Blip.Remove(341@)
Blip.Remove(41@)
Blip.Remove(309@)
Hud.ClearCounter($cat1_pickups_collected)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Char.Delete(322@)
Car.Delete(352@)
Streaming.MarkModelAsNoLongerNeeded(41)
Streaming.MarkModelAsNoLongerNeeded(95)
Streaming.MarkModelAsNoLongerNeeded(67)
Streaming.MarkModelAsNoLongerNeeded(514)
Streaming.MarkModelAsNoLongerNeeded(584)
Streaming.MarkModelAsNoLongerNeeded(475)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(15)
Streaming.MarkModelAsNoLongerNeeded(543)
Streaming.MarkModelAsNoLongerNeeded(468)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT3_17301
Char.RemoveElegantly($catalina)

:CAT3_17301
Streaming.UnloadSpecialCharacter(1)
Streaming.RemoveAnimation("CAR_CHAT")
Streaming.RemoveAnimation("MISC")
Streaming.RemoveCarRecording(188)
Streaming.RemoveCarRecording(189)
Streaming.RemoveCarRecording(199)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Camera.DoFade(500, Fade.In)

:CAT3_17359
if 
  Camera.GetFadingStatus
goto_if_false @CAT3_17383
wait 0
goto @CAT3_17359

:CAT3_17383
Mission.Finish
return 

:CAT3_17387
if or
  301@ == 1
  301@ == 5
  301@ == 6
  301@ == 8
  301@ == 11
  301@ == 12
goto_if_false @CAT3_17448
set_lvar_int_to_var_int 244@ = $catalina

:CAT3_17448
if or
  301@ == 16
  301@ == 20
  301@ == 21
  301@ == 22
  301@ == 23
  301@ == 24
goto_if_false @CAT3_17509
set_lvar_int_to_var_int 244@ = $catalina

:CAT3_17509
if or
  301@ == 25
  301@ == 26
  301@ == 40
  301@ == 41
  301@ == 42
  301@ == 43
goto_if_false @CAT3_17570
set_lvar_int_to_var_int 244@ = $catalina

:CAT3_17570
if or
  301@ == 45
  301@ == 47
goto_if_false @CAT3_17603
set_lvar_int_to_var_int 244@ = $catalina

:CAT3_17603
if or
  301@ == 2
  301@ == 3
  301@ == 7
  301@ == 10
  301@ == 13
  301@ == 14
goto_if_false @CAT3_17664
set_lvar_int_to_lvar_int 244@ = 310@

:CAT3_17664
if or
  301@ == 17
  301@ == 18
goto_if_false @CAT3_17697
set_lvar_int_to_lvar_int 244@ = 310@

:CAT3_17697
if or
  301@ == 27
  301@ == 28
  301@ == 29
  301@ == 30
goto_if_false @CAT3_17743
244@ = 0

:CAT3_17743
if or
  301@ == 31
  301@ == 32
  301@ == 15
goto_if_false @CAT3_17782
244@ = 0

:CAT3_17782
if or
  301@ == 4
  301@ == 19
goto_if_false @CAT3_17815
set_lvar_int_to_lvar_int 244@ = 311@

:CAT3_17815
if or
  301@ == 33
  301@ == 34
  301@ == 35
goto_if_false @CAT3_17854
244@ = 0

:CAT3_17854
if or
  301@ == 36
  301@ == 37
  301@ == 38
  301@ == 39
goto_if_false @CAT3_17900
244@ = 0

:CAT3_17900
if or
  301@ == 44
  301@ == 46
  301@ == 48
  301@ == 49
  301@ == 50
  301@ == 51
goto_if_false @CAT3_17961
set_lvar_int_to_lvar_int 244@ = 322@

:CAT3_17961
if 
  301@ == 52
goto_if_false @CAT3_17987
set_lvar_int_to_lvar_int 244@ = 322@

:CAT3_17987
if 
  301@ == 9
goto_if_false @CAT3_18013
set_lvar_int_to_var_int 244@ = $scplayer

:CAT3_18013
return 
if 
  not Char.IsDead($scplayer)
goto_if_false @CAT3_18121
if 
  36@ == 0
goto_if_false @CAT3_18080
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT3_18080
308@ = Char.StoreCarIsIn($scplayer)
36@ = 1

:CAT3_18080
if 
  36@ == 1
goto_if_false @CAT3_18121
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @CAT3_18121
36@ = 0

:CAT3_18121
return 

:CAT3_18123
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($catalina)
goto_if_false @CAT3_18760
if 
  49@ == 0
goto_if_false @CAT3_18563
if and
  35@ > 1
  5 > 35@
goto_if_false @CAT3_18563
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT3_18563
if 
  Char.LocateAnyMeansChar3D($scplayer, $catalina, 8.0, 8.0, 8.0, False)
goto_if_false @CAT3_18563
if 
  35@ == 2
goto_if_false @CAT3_18368
if 
  36@ == 1
goto_if_false @CAT3_18314
if 
  not Car.IsDead(334@)
goto_if_false @CAT3_18314
Blip.Remove(335@)
335@ = Blip.AddForCar(334@)
Blip.SetAsFriendly(335@, True)

:CAT3_18314
if 
  36@ == 0
goto_if_false @CAT3_18368
if 
  not Car.IsDead(327@)
goto_if_false @CAT3_18368
Blip.Remove(328@)
328@ = Blip.AddForCar(327@)
Blip.SetAsFriendly(328@, True)

:CAT3_18368
if 
  35@ == 4
goto_if_false @CAT3_18512
if 
  36@ == 1
goto_if_false @CAT3_18451
128@ = 4
Blip.Remove(41@)
41@ = Blip.AddForCoord(50@, 51@, 52@)
Hud.ClearCounter($cat1_pickups_collected)
Hud.DisplayCounterWithString($cat1_pickups_collected, CounterDisplay.Bar, 'CAT3_11')

:CAT3_18451
if 
  36@ == 0
goto_if_false @CAT3_18512
if 
  not Car.IsDead(327@)
goto_if_false @CAT3_18512
128@ = 4
Blip.Remove(328@)
328@ = Blip.AddForCar(327@)
Blip.SetAsFriendly(328@, True)

:CAT3_18512
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $catalina)
Blip.Remove(309@)
if and
  35@ <> 1
  35@ <> 3
goto_if_false @CAT3_18556
Text.ClearPrints

:CAT3_18556
49@ = 1

:CAT3_18563
if 
  49@ == 1
goto_if_false @CAT3_18760
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT3_18760
if 
  35@ == 2
goto_if_false @CAT3_18646
Blip.Remove(335@)
if 
  36@ == 0
goto_if_false @CAT3_18646
Blip.Remove(328@)

:CAT3_18646
if 
  35@ == 4
goto_if_false @CAT3_18704
Hud.ClearCounter($cat1_pickups_collected)
Blip.Remove(41@)
128@ = 10
if 
  36@ == 0
goto_if_false @CAT3_18704
Blip.Remove(328@)

:CAT3_18704
309@ = Blip.AddForChar($catalina)
Blip.SetAsFriendly(309@, True)
if 
  35@ <> 3
goto_if_false @CAT3_18753
Text.PrintNow('CAT3_01', 5000, 1)

:CAT3_18753
49@ = 0

:CAT3_18760
return 

//-------------Mission 44---------------
// Originally: Against All Odds

:CAT4
script_name 'CAT4'
gosub @CAT4_47
if 
  has_deatharrest_been_executed 
goto_if_false @CAT4_38
gosub @CAT4_18296

:CAT4_38
gosub @CAT4_18425
terminate_this_script 

:CAT4_47
$onmission = 1
World.SwitchEntryExit('GENOTB', False)
if 
  Player.IsPlaying($player1)
goto_if_false @CAT4_90
Player.SetControl($player1, False)

:CAT4_90
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)
Hud.SwitchWidescreen(True)

:CAT4_109
if 
  Camera.GetFadingStatus
goto_if_false @CAT4_133
wait 0
goto @CAT4_109

:CAT4_133
if 
  Player.IsPlaying($player1)
goto_if_false @CAT4_161
Char.SetHeading($scplayer, 64.0)
Camera.SetBehindPlayer

:CAT4_161
111@ = Game.FindMaxNumberOfGroupMembers()
111@ -= 1
if 
  0 >= 111@
goto_if_false @CAT4_202
Game.SetScriptLimitToGangSize(1)
goto @CAT4_207

:CAT4_202
Game.SetScriptLimitToGangSize(111@)

:CAT4_207
Game.MakeRoomInPlayerGangForMissionPeds(1)
Streaming.RequestModel(348)
Streaming.RequestModel(364)
Streaming.RequestModel(363)
Streaming.RequestModel(#RIDER1_DOOR)
Streaming.RequestModel(#KEV_SAFE)
Streaming.RequestModel(#MAN_SAFENEW)
Streaming.RequestAnimation("MISC")

:CAT4_249
if or
  not Streaming.HasModelLoaded(363)
  not Streaming.HasModelLoaded(364)
goto_if_false @CAT4_281
wait 0
goto @CAT4_249

:CAT4_281
Text.LoadMissionText('CAT')
107@ = 1
88@ = 1
89@ = 0
90@ = 0
91@ = 0
96@ = 0
$c3_rand_escort = 0
99@ = 0
$flag_otb_robbing_peds_panic = 0
92@ = 0
98@ = 0
100@ = 0
275@ = 0
104@ = 0
109@ = 0
107@ = 0
102@ = 0
108@ = 0
106@ = 1
94@ = 0
95@ = 0
103@ = 0
38@ = 0
97@ = 0
93@ = 0
101@ = 0
117@ = 0
$counter_robbery_cat4 = 0
274@ = 0
105@ = 0
61@ = 1289.851
62@ = 269.8778
63@ = 19.5888
64@ = 820.2197
65@ = 4.2019
66@ = 1004.661
67@ = 719.17
68@ = -457.68
69@ = 16.92
70@ = 822.4665
76@ = 1.7837
82@ = 1003.1
71@ = 822.0091
77@ = 6.0787
83@ = 1003.17
72@ = 832.8624
78@ = 0.7513
84@ = 1003.18
73@ = 830.9443
79@ = 0.3996
85@ = 1003.17
74@ = 827.839
80@ = -0.2443
86@ = 1003.1
75@ = 829.2125
81@ = 2.0354
87@ = 1003.17
if 
  $cat_getaway_dialogue == 0
goto_if_false @CAT4_1357
if 
  $cat_counter == 0
goto_if_false @CAT4_1108
set_lvar_text_label 118@s = 'CAT_DA'
set_lvar_text_label 120@s = 'CAT_DE'
set_lvar_text_label 122@s = 'CAT_DF'
set_lvar_text_label 124@s = 'CAT_DG'
set_lvar_text_label 126@s = 'CAT_DH'
set_lvar_text_label 128@s = 'CAT_DI'
set_lvar_text_label 130@s = 'CAT_DJ'
set_lvar_text_label 132@s = 'CAT_DK'
set_lvar_text_label 134@s = 'CAT_DL'
set_lvar_text_label 136@s = 'CAT_DM'
set_lvar_text_label 138@s = 'CAT_DN'
set_lvar_text_label 140@s = 'CAT_DO'
set_lvar_text_label 142@s = 'CAT_DP'
set_lvar_int_to_constant 222@ = 2217
set_lvar_int_to_constant 223@ = 2221
set_lvar_int_to_constant 224@ = 2300
set_lvar_int_to_constant 225@ = 2222
set_lvar_int_to_constant 226@ = 2223
set_lvar_int_to_constant 227@ = 2224
set_lvar_int_to_constant 228@ = 2225
set_lvar_int_to_constant 229@ = 2226
set_lvar_int_to_constant 230@ = 2301
set_lvar_int_to_constant 231@ = 2227
set_lvar_int_to_constant 232@ = 2228
set_lvar_int_to_constant 233@ = 2302
set_lvar_int_to_constant 234@ = 2229
110@ = 16
goto @CAT4_1357

:CAT4_1108
set_lvar_text_label 118@s = 'CAT_DF'
set_lvar_text_label 120@s = 'CAT_DG'
set_lvar_text_label 122@s = 'CAT_DH'
set_lvar_text_label 124@s = 'CAT_DI'
set_lvar_text_label 126@s = 'CAT_DJ'
set_lvar_text_label 128@s = 'CAT_DK'
set_lvar_text_label 130@s = 'CAT_DL'
set_lvar_text_label 132@s = 'CAT_DM'
set_lvar_text_label 134@s = 'CAT_DN'
set_lvar_text_label 136@s = 'CAT_DO'
set_lvar_text_label 138@s = 'CAT_DP'
set_lvar_int_to_constant 222@ = 2300
set_lvar_int_to_constant 223@ = 2222
set_lvar_int_to_constant 224@ = 2223
set_lvar_int_to_constant 225@ = 2224
set_lvar_int_to_constant 226@ = 2225
set_lvar_int_to_constant 227@ = 2226
set_lvar_int_to_constant 228@ = 2301
set_lvar_int_to_constant 229@ = 2227
set_lvar_int_to_constant 230@ = 2228
set_lvar_int_to_constant 231@ = 2302
set_lvar_int_to_constant 232@ = 2229
110@ = 14

:CAT4_1357
if 
  $cat_getaway_dialogue == 1
goto_if_false @CAT4_1690
set_lvar_text_label 118@s = 'CAT_GA'
set_lvar_text_label 120@s = 'CAT_GB'
set_lvar_text_label 122@s = 'CAT_GC'
set_lvar_text_label 124@s = 'CAT_GD'
set_lvar_text_label 126@s = 'CAT_GE'
set_lvar_text_label 128@s = 'CAT_GF'
set_lvar_text_label 130@s = 'CAT_GG'
set_lvar_text_label 132@s = 'CAT_GH'
set_lvar_text_label 134@s = 'CAT_GI'
set_lvar_text_label 136@s = 'CAT_GJ'
set_lvar_text_label 138@s = 'CAT_GK'
set_lvar_text_label 140@s = 'CAT_GL'
set_lvar_text_label 142@s = 'CAT_GM'
set_lvar_text_label 144@s = 'CAT_GN'
set_lvar_int_to_constant 222@ = 2247
set_lvar_int_to_constant 223@ = 2313
set_lvar_int_to_constant 224@ = 2248
set_lvar_int_to_constant 225@ = 2314
set_lvar_int_to_constant 226@ = 2315
set_lvar_int_to_constant 227@ = 2249
set_lvar_int_to_constant 228@ = 2316
set_lvar_int_to_constant 229@ = 2250
set_lvar_int_to_constant 230@ = 2317
set_lvar_int_to_constant 231@ = 2251
set_lvar_int_to_constant 232@ = 2252
set_lvar_int_to_constant 233@ = 2253
set_lvar_int_to_constant 234@ = 2254
set_lvar_int_to_constant 235@ = 2318
110@ = 17

:CAT4_1690
if 
  $cat_getaway_dialogue == 2
goto_if_false @CAT4_1891
set_lvar_text_label 118@s = 'CAT_OA'
set_lvar_text_label 120@s = 'CAT_OB'
set_lvar_text_label 122@s = 'CAT_OC'
set_lvar_text_label 124@s = 'CAT_OD'
set_lvar_text_label 126@s = 'CAT_OE'
set_lvar_text_label 128@s = 'CAT_OF'
set_lvar_text_label 130@s = 'CAT_OG'
set_lvar_text_label 132@s = 'CAT_OH'
set_lvar_int_to_constant 222@ = 2281
set_lvar_int_to_constant 223@ = 2332
set_lvar_int_to_constant 224@ = 2282
set_lvar_int_to_constant 225@ = 2333
set_lvar_int_to_constant 226@ = 2283
set_lvar_int_to_constant 227@ = 2334
set_lvar_int_to_constant 228@ = 2284
set_lvar_int_to_constant 229@ = 2285
110@ = 11

:CAT4_1891
52@ = 0
112@ = Blip.AddForCoord(61@, 62@, 63@)
115@ = Blip.AddForCoord(277@, 278@, 279@)
116@ = Blip.AddForCoord(277@, 278@, 279@)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_1969
113@ = Blip.AddForChar($catalina)
Blip.Remove(113@)

:CAT4_1969
Blip.Remove(112@)
Blip.Remove(115@)
Blip.Remove(116@)
Blip.Remove(113@)
Blip.Remove($spray_shop4)
54@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
Game.EnableEntryExitPlayerGroupWarping(833.0, 9.0, 10.0, False)
Game.EnableEntryExitPlayerGroupWarping(1291.0, 271.0, 10.0, True)
wait 0
if 
  88@ == 1
goto_if_false @CAT4_2068
gosub @CAT4_4355

:CAT4_2068
if 
  89@ == 1
goto_if_false @CAT4_2093
gosub @CAT4_13682

:CAT4_2093
if 
  90@ == 1
goto_if_false @CAT4_2118
goto @CAT4_18326

:CAT4_2118
if 
  91@ == 1
goto_if_false @CAT4_2143
goto @CAT4_18296

:CAT4_2143
return 

:CAT4_2145
if 
  89@ == 1
goto_if_false @CAT4_3613
if 
  93@ == 0
goto_if_false @CAT4_2849
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_2842
if 
  Player.IsWantedLevelGreater($player1, 0)
goto_if_false @CAT4_2842
93@ = 1
if 
  101@ == 1
goto_if_false @CAT4_2248
94@ = 1000

:CAT4_2248
if 
  not Blip.DoesExist(116@)
goto_if_false @CAT4_2280
116@ = Blip.AddSpriteForCoord(67@, 68@, 69@, RadarSprite.Spray)

:CAT4_2280
if 
  106@ == 0
goto_if_false @CAT4_2821
if 
  281@ == 1
goto_if_false @CAT4_2686
if 
  102@ > 2
goto_if_false @CAT4_2341
102@ = 0

:CAT4_2341
if 
  102@ == 2
goto_if_false @CAT4_2456
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12689)

:CAT4_2366
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_2392
wait 0
goto @CAT4_2366

:CAT4_2392
Text.PrintNow('CATX_UA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_2412
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_2438
wait 0
goto @CAT4_2412

:CAT4_2438
Text.ClearThisPrint('CATX_UA')
102@ += 1

:CAT4_2456
if 
  102@ == 1
goto_if_false @CAT4_2571
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12690)

:CAT4_2481
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_2507
wait 0
goto @CAT4_2481

:CAT4_2507
Text.PrintNow('CATX_UB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_2527
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_2553
wait 0
goto @CAT4_2527

:CAT4_2553
Text.ClearThisPrint('CATX_UB')
102@ += 1

:CAT4_2571
if 
  102@ == 0
goto_if_false @CAT4_2686
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12694)

:CAT4_2596
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_2622
wait 0
goto @CAT4_2596

:CAT4_2622
Text.PrintNow('CATX_UF', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_2642
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_2668
wait 0
goto @CAT4_2642

:CAT4_2668
Text.ClearThisPrint('CATX_UF')
102@ += 1

:CAT4_2686
if 
  106@ == 0
goto_if_false @CAT4_2805
if 
  99@ == 0
goto_if_false @CAT4_2805
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_2805
if 
  not Char.LocateAnyMeans3D($catalina, 67@, 68@, 69@, 30.0, 30.0, 30.0, False)
goto_if_false @CAT4_2805
Char.ClearRelationship($catalina, RelationshipType.Like, PedType.Cop)
99@ = 1
Char.SetRelationship($catalina, RelationshipType.Hate, PedType.Cop)

:CAT4_2805
Text.Print('CAT4_32', 5000, 1)

:CAT4_2821
if 
  Blip.DoesExist(115@)
goto_if_false @CAT4_2842
Blip.Remove(115@)

:CAT4_2842
goto @CAT4_3613

:CAT4_2849
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_3306
if 
  100@ == 0
goto_if_false @CAT4_3094
if 
  Char.LocateAnyMeans3D($catalina, 720.5, -466.73, 15.72, 4.0, 4.0, 4.0, True)
goto_if_false @CAT4_3094
if 
  100@ == 0
goto_if_false @CAT4_3094
Text.PrintNow('CAT4_37', 5000, 1)
if 
  99@ == 1
goto_if_false @CAT4_3087
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_3087
Char.ClearRelationship($catalina, RelationshipType.Hate, PedType.Cop)
if 
  Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT4_3032
Char.RemoveFromGroup($catalina)

:CAT4_3032
Char.ClearTasks($catalina)
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT4_3071
Group.SetMember($Players_Group, $catalina)
Group.SetFollowStatus($Players_Group, True)

:CAT4_3071
Char.SetRelationship($catalina, RelationshipType.Like, PedType.Cop)
99@ = 0

:CAT4_3087
100@ = 1

:CAT4_3094
if 
  100@ == 1
goto_if_false @CAT4_3185
if 
  not Char.LocateAnyMeans3D($catalina, 720.5, -460.73, 15.72, 15.0, 15.0, 15.0, False)
goto_if_false @CAT4_3185
if 
  100@ == 1
goto_if_false @CAT4_3185
100@ = 0

:CAT4_3185
if 
  106@ == 0
goto_if_false @CAT4_3306
if 
  99@ == 0
goto_if_false @CAT4_3306
if 
  Player.IsWantedLevelGreater($player1, 0)
goto_if_false @CAT4_3306
if 
  not Char.LocateAnyMeans3D($catalina, 67@, 68@, 69@, 30.0, 30.0, 30.0, False)
goto_if_false @CAT4_3306
Char.ClearRelationship($catalina, RelationshipType.Like, PedType.Cop)
Char.SetRelationship($catalina, RelationshipType.Hate, PedType.Cop)
99@ = 1

:CAT4_3306
if 
  not Player.IsWantedLevelGreater($player1, 0)
goto_if_false @CAT4_3613
93@ = 0
$game_timer1_cat4 = Clock.GetGameTimer()
if 
  not Blip.DoesExist(115@)
goto_if_false @CAT4_3463
115@ = Blip.AddForCoord(277@, 278@, 279@)
Blip.ChangeColor(115@, BlipColor.Yellow)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12624)

:CAT4_3380
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_3406
wait 0
goto @CAT4_3380

:CAT4_3406
Text.PrintNow('CATX_DE', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_3426
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_3452
wait 0
goto @CAT4_3426

:CAT4_3452
Text.ClearThisPrint('CATX_DE')

:CAT4_3463
if 
  Blip.DoesExist(116@)
goto_if_false @CAT4_3484
Blip.Remove(116@)

:CAT4_3484
if 
  99@ == 1
goto_if_false @CAT4_3606
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_3606
Char.ClearRelationship($catalina, RelationshipType.Hate, PedType.Cop)
if 
  Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT4_3551
Char.RemoveFromGroup($catalina)

:CAT4_3551
Char.ClearTasks($catalina)
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT4_3590
Group.SetMember($Players_Group, $catalina)
Group.SetFollowStatus($Players_Group, True)

:CAT4_3590
Char.SetRelationship($catalina, RelationshipType.Like, PedType.Cop)
99@ = 0

:CAT4_3606
TIMERA = 0

:CAT4_3613
if 
  Player.IsPlaying($player1)
goto_if_false @CAT4_4353
if 
  Char.LocateAnyMeans3D($scplayer, 64@, 65@, 66@, 50.0, 50.0, 50.0, False)
goto_if_false @CAT4_4168
if 
  38@ == 0
goto_if_false @CAT4_4150
Text.ClearThisPrint('CAT4_01')
if 
  103@ == 0
goto_if_false @CAT4_3765
39@ = Object.Create(#RIDER1_DOOR, 824.4123, 10.85, 1003.2)
Object.SetHeading(39@, 175.0)
Object.FreezePosition(39@, True)
Object.SetCollisionDamageEffect(39@, False)

:CAT4_3765
if 
  103@ == 1
goto_if_false @CAT4_3783

:CAT4_3783
if 
  $c3_rand_escort == 0
goto_if_false @CAT4_3831
40@ = Object.Create(#KEV_SAFE, 820.5, 9.7, 1003.216)
goto @CAT4_3854

:CAT4_3831
40@ = Object.Create(#MAN_SAFENEW, 820.5, 9.7, 1003.216)

:CAT4_3854
Object.SetHeading(40@, 90.0)
if 
  89@ == 1
goto_if_false @CAT4_3903
if 
  Blip.DoesExist(115@)
goto_if_false @CAT4_3903
Blip.Remove(115@)

:CAT4_3903
if 
  96@ <> 0
goto_if_false @CAT4_4150
if 
  88@ == 1
goto_if_false @CAT4_4150
if 
  Blip.DoesExist(112@)
goto_if_false @CAT4_3962
Blip.Remove(112@)
Text.ClearPrints

:CAT4_3962
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_4150
Char.ClearTasks($catalina)
Char.SetCoordinates($catalina, 823.13, 2.2, 1003.18)
Char.SetHeading($catalina, 107.0)
Char.SetAreaVisible($catalina, 3)
Task.AimGunAtCoord($catalina, 64@, 65@, 66@, 900000)
Char.FreezePositionAndDontLoadCollision($catalina, False)
Audio.ReportMissionAudioEventAtPosition(64@, 65@, 66@, 1155)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12630)

:CAT4_4067
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_4093
wait 0
goto @CAT4_4067

:CAT4_4093
Text.PrintNow('CATX_JE', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_4113
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_4139
wait 0
goto @CAT4_4113

:CAT4_4139
Text.ClearThisPrint('CATX_JE')

:CAT4_4150
Hud.DisplayRadar(False)
38@ = 1
goto @CAT4_4353

:CAT4_4168
if 
  38@ == 1
goto_if_false @CAT4_4353
if 
  Object.DoesExist(39@)
goto_if_false @CAT4_4207
Object.Delete(39@)

:CAT4_4207
if 
  Object.DoesExist(40@)
goto_if_false @CAT4_4228
Object.Delete(40@)

:CAT4_4228
World.ClearArea(61@, 62@, 63@, 1000.0, True)
if 
  88@ == 1
goto_if_false @CAT4_4342
if 
  not Blip.DoesExist(112@)
goto_if_false @CAT4_4342
112@ = Blip.AddForCoord(61@, 62@, 63@)
Blip.SetCoordAppearance(112@, 1)
Text.PrintNow('CAT4_16', 10000, 1)
Text.ClearHelp
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_4342
Char.FreezePositionAndDontLoadCollision($catalina, True)

:CAT4_4342
Hud.DisplayRadar(True)
38@ = 0

:CAT4_4353
return 

:CAT4_4355
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT4_4406
41@ = Char.StoreCarIsIn($scplayer)
Char.WarpFromCarToCoord($scplayer, 1291.575, 269.5648, 18.5469)
goto @CAT4_4426

:CAT4_4406
Char.SetCoordinates($scplayer, 1291.575, 269.5648, 18.5469)

:CAT4_4426
Char.SetHeading($scplayer, 60.0)
57@ = Object.Create(363, 1288.141, 267.9079, 18.5469)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_4480
Char.Delete($catalina)

:CAT4_4480
Streaming.LoadSpecialCharacter(5, 'CAT')

:CAT4_4493
if 
  not Streaming.HasSpecialCharacterLoaded(5)
goto_if_false @CAT4_4519
wait 0
goto @CAT4_4493

:CAT4_4519
$catalina = Char.Create(PedType.Special, 294, 1288.277, 268.9509, 18.9469)
Char.SetGetOutUpsideDownCar($catalina, False)
Char.SetHeading($catalina, 321.0)
Char.SetOnlyDamagedByPlayer($catalina, True)
Char.SetNeverTargeted($catalina, True)
Char.ShutUpForScriptedSpeech($catalina, True)
if 
  Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT4_4606
Char.RemoveFromGroup($catalina)

:CAT4_4606
if 
  not Car.IsDead(41@)
goto_if_false @CAT4_4652
Car.SetCoordinates(41@, 1297.0, 278.0, 18.0)
Car.SetHeading(41@, 150.0)

:CAT4_4652
276@ = DecisionMakerGroup.Load(0)
Group.SetDecisionMaker($Players_Group, 276@)
DecisionMakerGroup.ClearEventResponse(276@, 9)
DecisionMakerGroup.ClearEventResponse(276@, 41)
55@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Char.SetRelationship($catalina, RelationshipType.Hate, PedType.Mission1)
Char.SetDecisionMaker($catalina, 55@)
Task.TogglePedThreatScanner($catalina, True, True, True)
DecisionMakerChar.ClearEventResponse(55@, 36)
DecisionMakerChar.AddEventResponse(55@, 36, 1022, 0.0, 100.0, 0.0, 0.0, True, False)
Char.SetShootRate($catalina, 100)
if 
  Object.DoesExist(57@)
goto_if_false @CAT4_4821
Task.PickUpObject($catalina, 57@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)

:CAT4_4821
if 
  not Streaming.HasAnimationLoaded("MISC")
goto_if_false @CAT4_4851
wait 0
goto @CAT4_4821

:CAT4_4851
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Camera.SetFixedPosition(1284.625, 257.5731, 23.8334, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1284.508, 258.5662, 23.824, SwitchType.JumpCut)
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(1284.625, 257.5731, 23.8334, 1287.068, 258.5688, 22.872, 4500, True)
Camera.SetVectorTrack(1284.508, 258.5662, 23.824, 1287.18, 259.5328, 22.6311, 4500, True)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_5039
Char.SetCoordinates($catalina, 1288.277, 268.9509, 18.546)
Char.SetHeading($catalina, 321.0)

:CAT4_5039
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
Streaming.LoadSceneInDirection(1284.625, 257.5731, 23.8334, 45.0)
World.ClearArea(1287.363, 257.5327, 23.0934, 1000.0, True)
Camera.DoFade(1000, Fade.In)

:CAT4_5106
if 
  Camera.GetFadingStatus
goto_if_false @CAT4_5130
wait 0
goto @CAT4_5106

:CAT4_5130
TIMERA = 0
TIMERB = 0
97@ = 0

:CAT4_5151
if 
  97@ <> 10
goto_if_false @CAT4_6251
wait 0
if 
  97@ == 0
goto_if_false @CAT4_5301
Char.StartFacialTalk($scplayer, 10000)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2623)

:CAT4_5206
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_5232
wait 0
goto @CAT4_5206

:CAT4_5232
Text.PrintNow('CAT2_AB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_5252
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_5278
wait 0
goto @CAT4_5252

:CAT4_5278
Text.ClearThisPrint('CAT2_AB')
Char.StopFacialTalk($scplayer)
97@ = 1

:CAT4_5301
if 
  97@ == 1
goto_if_false @CAT4_5367
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_5360
Task.GoStraightToCoord($catalina, 1290.93, 269.75, 18.5469, MoveState.Walk, 3000)

:CAT4_5360
97@ = 2

:CAT4_5367
if 
  TIMERB > 3000
goto_if_false @CAT4_5599
if 
  97@ == 2
goto_if_false @CAT4_5599
Camera.ResetNewScriptables
Camera.SetFixedPosition(1292.445, 266.8836, 19.0157, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1291.756, 267.5977, 19.1396, SwitchType.JumpCut)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2601)

:CAT4_5464
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_5490
wait 0
goto @CAT4_5464

:CAT4_5490
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_5534
Text.PrintNow('CAT2_AC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Char.StartFacialTalk($scplayer, 10000)

:CAT4_5534
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_5560
wait 0
goto @CAT4_5534

:CAT4_5560
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_5581
Char.StopFacialTalk($catalina)

:CAT4_5581
Text.ClearThisPrint('CAT2_AC')
97@ = 3

:CAT4_5599
if 
  97@ == 3
goto_if_false @CAT4_5995
Camera.SetFixedPosition(1300.118, 272.2002, 20.6733, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1299.156, 271.9637, 20.5352, SwitchType.JumpCut)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_5726
Task.PlayAnim($catalina, "PASS_RIFLE_PED", "MISC", 4.0, False, False, False, False, -1)

:CAT4_5726
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12659)

:CAT4_5733
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_5759
wait 0
goto @CAT4_5733

:CAT4_5759
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_5780
Char.ClearTasks($catalina)

:CAT4_5780
Task.PlayAnim($scplayer, "PASS_RIFLE_PLY", "MISC", 4.0, False, False, False, False, -1)
if 
  Object.DoesExist(57@)
goto_if_false @CAT4_5879
Task.PickUpObject($scplayer, 57@, 0.0, 0.0, 0.0, 5, 16, "NULL", "NULL", 0)

:CAT4_5879
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_5903
Char.StartFacialTalk($catalina, 10000)

:CAT4_5903
Text.PrintNow('CATX_RB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_5923
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_5949
wait 0
goto @CAT4_5923

:CAT4_5949
Text.ClearThisPrint('CATX_RB')
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_5981
Char.StopFacialTalk($catalina)

:CAT4_5981
97@ = 4
TIMERA = 0

:CAT4_5995
if 
  97@ == 4
goto_if_false @CAT4_6150
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_6053
Task.GoStraightToCoord($catalina, 1292.81, 269.01, 18.5469, MoveState.Walk, -1)

:CAT4_6053
97@ = 5
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2631)

:CAT4_6067
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_6093
wait 0
goto @CAT4_6067

:CAT4_6093
Text.PrintNow('CAT2_JA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_6113
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_6139
wait 0
goto @CAT4_6113

:CAT4_6139
Text.ClearThisPrint('CAT2_JA')

:CAT4_6150
if 
  97@ == 5
goto_if_false @CAT4_6194
if 
  TIMERA > 1500
goto_if_false @CAT4_6194
97@ = 10

:CAT4_6194
if 
  TIMERB > 10000
goto_if_false @CAT4_6220
97@ = 10

:CAT4_6220
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @CAT4_6244
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
97@ = 10

:CAT4_6244
goto @CAT4_5151

:CAT4_6251
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
if 
  Object.DoesExist(57@)
goto_if_false @CAT4_6287
Object.Delete(57@)

:CAT4_6287
Camera.ResetNewScriptables
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
World.SwitchEntryExit('GENOTB', True)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_6337
Char.StopFacialTalk($catalina)

:CAT4_6337
Char.StopFacialTalk($scplayer)
if 
  not Car.IsDead(41@)
goto_if_false @CAT4_6373
Car.SetHealth(41@, 1000)
Car.SetCanBurstTires(41@, False)

:CAT4_6373
Char.GiveWeapon($scplayer, WeaponType.Satchel, 10)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_6432
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT4_6432
Group.SetMember($Players_Group, $catalina)
Group.SetFollowStatus($Players_Group, False)

:CAT4_6432
112@ = Blip.AddSpriteForCoord(61@, 62@, 63@, RadarSprite.CatalinaPink)
Text.PrintNow('CAT4_01', 10000, 1)

:CAT4_6464
if 
  not Streaming.HasModelLoaded(#KEV_SAFE)
goto_if_false @CAT4_6491
wait 0
goto @CAT4_6464

:CAT4_6491
if 
  not Streaming.HasModelLoaded(#MAN_SAFENEW)
goto_if_false @CAT4_6518
wait 0
goto @CAT4_6491

:CAT4_6518
if or
  not Streaming.HasModelLoaded(348)
  not Streaming.HasModelLoaded(#RIDER1_DOOR)
goto_if_false @CAT4_6550
wait 0
goto @CAT4_6518

:CAT4_6550
if 
  38@ <> 1
goto_if_false @CAT4_6833
wait 0
gosub @CAT4_2145
if 
  not Char.LocateAnyMeans3D($scplayer, 64@, 65@, 66@, 50.0, 50.0, 50.0, False)
goto_if_false @CAT4_6628
gosub @CAT4_16165

:CAT4_6628
if 
  91@ == 1
goto_if_false @CAT4_6648
return 

:CAT4_6648
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CAT4_6686
88@ = 0
89@ = 0
90@ = 1
return 

:CAT4_6686
58@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Satchel)
59@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Detonator)
if and
  0 >= 58@
  0 >= 59@
goto_if_false @CAT4_6826
if 
  275@ <> 1
goto_if_false @CAT4_6826
if 
  not World.IsExplosionInArea(ExplosionType.Grenade, 819.55, 8.09, 1003.4, 822.27, 10.98, 1005.72)
goto_if_false @CAT4_6826
88@ = 0
91@ = 1
Text.PrintNow('CAT4_2', 10000, 1)
return 

:CAT4_6826
goto @CAT4_6550

:CAT4_6833
Blip.Remove(112@)
if 
  96@ == 0
goto_if_false @CAT4_9015
if 
  38@ == 1
goto_if_false @CAT4_9015
Streaming.RemoveAnimation("MISC")
Text.ClearSmallPrints
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Text.ClearPrints
Camera.SetFixedPosition(833.5528, 9.9425, 1003.91, 0.0, 0.0, 0.0)
Camera.PointAtPoint(832.7419, 9.3669, 1004.01, SwitchType.JumpCut)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 1826)
53@ = 0

:CAT4_6962
if 
  6 > 53@
goto_if_false @CAT4_7024
46@(53@,6i) = Char.CreateRandom(70@(53@,6f), 76@(53@,6f), 82@(53@,6f))
53@ += 1
goto @CAT4_6962

:CAT4_7024
Hud.DisplayRadar(False)
96@ = 1
TIMERA = 0
TIMERB = 0
97@ = 0

:CAT4_7056
if 
  97@ <> 10
goto_if_false @CAT4_8896
wait 0
if 
  97@ >= 2
goto_if_false @CAT4_7115
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @CAT4_7115
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:CAT4_7115
if 
  97@ == 0
goto_if_false @CAT4_7434
Char.SetCoordinates($scplayer, 832.4548, 7.0794, 1003.187)
Task.GoStraightToCoord($scplayer, 828.2866, 8.2237, 1003.187, MoveState.Walk, 5000)
World.ClearArea(828.2866, 8.2237, 1003.187, 2.0, True)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_7427
Char.SetProofs($catalina, False, False, True, False, False)
Char.SetAccuracy($catalina, 90)
Char.ClearTasks($catalina)
Char.SetAreaVisible($catalina, 3)
if 
  Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT4_7276
Char.RemoveFromGroup($catalina)

:CAT4_7276
if 
  Char.IsInAnyCar($catalina)
goto_if_false @CAT4_7319
Char.WarpFromCarToCoord($catalina, 833.5104, 4.3569, 1003.587)
goto @CAT4_7339

:CAT4_7319
Char.SetCoordinates($catalina, 833.5104, 4.3569, 1003.187)

:CAT4_7339
Char.SetHasUsedEntryExit($catalina, 1290.0, 270.0, 10.0)
Char.SetHeading($catalina, 107.0)
Char.GiveWeapon($catalina, WeaponType.DesertEagle, 10000)
Task.GoStraightToCoord($catalina, 824.3764, 3.4945, 1003.18, MoveState.Run, -1)
World.ClearArea(824.3764, 3.4945, 1003.18, 2.0, True)

:CAT4_7427
97@ = 1

:CAT4_7434
if 
  97@ == 1
goto_if_false @CAT4_8114
if 
  TIMERA > 2000
goto_if_false @CAT4_8114
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_8107
Char.ClearTasks($catalina)
56@ = Sequence.Open()
Task.GoStraightToCoord(-1, 824.3764, 3.4945, 1003.18, MoveState.Run, 3000)
Task.AimGunAtCoord(-1, 64@, 65@, 66@, 5000)
Sequence.Close(56@)
Char.PerformSequence($catalina, 56@)
Sequence.Clear(56@)
$played_ryder1_before = 1
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2607)

:CAT4_7569
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_7595
wait 0
goto @CAT4_7569

:CAT4_7595
Text.PrintNow('CAT2_DA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_7639
Char.StartFacialTalk($catalina, 10000)

:CAT4_7639
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_7665
wait 0
goto @CAT4_7639

:CAT4_7665
Text.ClearThisPrint('CAT2_DA')
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_7697
Char.StopFacialTalk($catalina)

:CAT4_7697
Camera.SetFixedPosition(829.9543, 8.6043, 1004.892, 0.0, 0.0, 0.0)
Camera.PointAtPoint(829.2075, 7.9448, 1004.806, SwitchType.JumpCut)
Task.LookAtCoord($scplayer, 824.17, 3.95, 1007.0, 3000)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_7839
Char.ClearTasks($catalina)
Char.SetCoordinates($catalina, 824.3764, 3.4945, 1003.18)
Char.SetHeading($catalina, 107.0)
Task.AimGunAtCoord($catalina, 64@, 65@, 66@, 5000)

:CAT4_7839
53@ = 0

:CAT4_7846
if 
  6 > 53@
goto_if_false @CAT4_7965
if 
  not Char.IsDead(46@(53@,6i))
goto_if_false @CAT4_7951
if or
  53@ == 0
  53@ == 3
  53@ == 5
goto_if_false @CAT4_7937
Task.HandsUp(46@(53@,6i), 900000)
goto @CAT4_7951

:CAT4_7937
Task.Duck(46@(53@,6i), 900000)

:CAT4_7951
53@ += 1
goto @CAT4_7846

:CAT4_7965
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2608)

:CAT4_7972
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_7998
wait 0
goto @CAT4_7972

:CAT4_7998
Text.PrintNow('CAT2_DB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_8042
Char.StartFacialTalk($catalina, 10000)

:CAT4_8042
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_8068
wait 0
goto @CAT4_8042

:CAT4_8068
Text.ClearThisPrint('CAT2_DB')
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_8100
Char.StopFacialTalk($catalina)

:CAT4_8100
TIMERA = 0

:CAT4_8107
97@ = 2

:CAT4_8114
if 
  97@ == 2
goto_if_false @CAT4_8346
if 
  TIMERA > 500
goto_if_false @CAT4_8346
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_8339
Char.ClearTasks($catalina)
Task.StandStill($catalina, 900000)
Camera.SetFixedPosition(821.8057, 3.2657, 1005.09, 0.0, 0.0, 0.0)
Camera.PointAtPoint(822.7056, 3.6678, 1004.921, SwitchType.JumpCut)
Task.LookAtCoord($scplayer, 824.17, 3.95, 1007.0, 3000)
Task.LookAtCoord($catalina, 824.17, 3.95, 1007.0, 2000)
Task.AimGunAtCoord($catalina, 819.55, 5.55, 1005.59, 5000)
Audio.ReportMissionAudioEventAtPosition(64@, 65@, 66@, 1155)
Text.PrintNow('CAT4_3', 5000, 1)
TIMERA = 0

:CAT4_8339
97@ = 3

:CAT4_8346
if 
  97@ == 3
goto_if_false @CAT4_8609
if 
  TIMERA > 2000
goto_if_false @CAT4_8609
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_8416
Task.AimGunAtCoord($catalina, 64@, 65@, 66@, 5000)

:CAT4_8416
Text.ClearThisPrint('CAT4_3')
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2613)

:CAT4_8434
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_8460
wait 0
goto @CAT4_8434

:CAT4_8460
Text.PrintNow('CAT2_FA', 10000, 1)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_8500
Char.StartFacialTalk($catalina, 10000)

:CAT4_8500
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_8504
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_8530
wait 0
goto @CAT4_8504

:CAT4_8530
Text.ClearThisPrint('CAT2_FA')
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_8562
Char.StopFacialTalk($catalina)

:CAT4_8562
if 
  Player.IsPlaying($player1)
goto_if_false @CAT4_8588
Task.AchieveHeading($scplayer, 112.0)

:CAT4_8588
$flag_otb_robbing_peds_panic = 1
97@ = 4
TIMERA = 0

:CAT4_8609
if 
  97@ == 4
goto_if_false @CAT4_8863
if 
  TIMERA > 1000
goto_if_false @CAT4_8863
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_8856
Char.ClearTasks($catalina)
Camera.SetFixedPosition(829.9543, 8.6043, 1004.892, 0.0, 0.0, 0.0)
Camera.PointAtPoint(829.2075, 7.9448, 1004.806, SwitchType.JumpCut)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_8766
if 
  not Char.IsDead(46@(52@,6i))
goto_if_false @CAT4_8766
Task.KillCharOnFoot($catalina, 46@(52@,6i))

:CAT4_8766
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2614)

:CAT4_8773
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_8799
wait 0
goto @CAT4_8773

:CAT4_8799
Text.Print('CAT2_FB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_8819
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_8845
wait 0
goto @CAT4_8819

:CAT4_8845
Text.ClearThisPrint('CAT2_FB')

:CAT4_8856
97@ = 5

:CAT4_8863
if 
  TIMERB > 17000
goto_if_false @CAT4_8889
97@ = 10

:CAT4_8889
goto @CAT4_7056

:CAT4_8896
if 
  Player.IsPlaying($player1)
goto_if_false @CAT4_9015
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_8962
Task.AimGunAtCoord($catalina, 64@, 65@, 66@, 900000)

:CAT4_8962
59@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Satchel)
60@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Satchel)
96@ = 1
$flag_otb_robbing_peds_panic = 1
TIMERA = 0
TIMERB = 0
$game_timer1_cat4 = Clock.GetGameTimer()

:CAT4_9015
TIMERB = 0

:CAT4_9022
if 
  117@ <> 1
goto_if_false @CAT4_13666
wait 0
58@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Satchel)
59@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Detonator)
if and
  0 >= 58@
  0 >= 59@
goto_if_false @CAT4_9184
if 
  275@ <> 1
goto_if_false @CAT4_9184
if 
  not World.IsExplosionInArea(ExplosionType.Grenade, 819.55, 8.09, 1003.4, 822.27, 10.98, 1005.72)
goto_if_false @CAT4_9184
88@ = 0
91@ = 1
Text.PrintNow('CAT4_2', 5000, 1)
return 

:CAT4_9184
if 
  Char.IsDead($catalina)
goto_if_false @CAT4_9232
88@ = 0
91@ = 1
Text.PrintNow('CAT4_15', 5000, 1)
return 

:CAT4_9232
if 
  108@ == 0
goto_if_false @CAT4_9275
Text.PrintHelp('CAT4_43')
108@ = 1
TIMERB = 0

:CAT4_9275
if 
  108@ == 1
goto_if_false @CAT4_9342
if 
  TIMERB > 6000
goto_if_false @CAT4_9342
Text.PrintNow('CAT4_42', 6000, 1)
108@ = 2
TIMERB = 0

:CAT4_9342
if 
  2 >= 108@
goto_if_false @CAT4_9413
if 
  Char.IsCurrentWeapon($scplayer, WeaponType.Satchel)
goto_if_false @CAT4_9413
if 
  is_int_lvar_greater_than_int_lvar 60@ > 58@
goto_if_false @CAT4_9413
Text.ClearHelp
108@ = 3
TIMERB = 0

:CAT4_9413
if 
  108@ == 3
goto_if_false @CAT4_9491
if 
  TIMERB > 1500
goto_if_false @CAT4_9491
Text.PrintNow('CAT4_44', 6000, 1)
Text.PrintHelp('CAT4_45')
108@ = 4
TIMERB = 0

:CAT4_9491
if 
  4 >= 108@
goto_if_false @CAT4_9598
if 
  Object.DoesExist(39@)
goto_if_false @CAT4_9598
if 
  World.HasObjectOfTypeBeenSmashed(824.4123, 10.8, 1003.2, 10.0, #RIDER1_DOOR)
goto_if_false @CAT4_9598
if 
  TIMERB > 500
goto_if_false @CAT4_9598
Text.ClearSmallPrints
Text.ClearHelp
108@ = 5
TIMERB = 0

:CAT4_9598
if 
  108@ == 5
goto_if_false @CAT4_9783
Text.ClearHelp
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2609)

:CAT4_9625
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_9651
wait 0
goto @CAT4_9625

:CAT4_9651
Text.Print('CAT2_DC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_9695
Char.StartFacialTalk($catalina, 10000)

:CAT4_9695
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_9721
wait 0
goto @CAT4_9695

:CAT4_9721
Text.ClearThisPrint('CAT2_DC')
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_9753
Char.StopFacialTalk($catalina)

:CAT4_9753
Text.PrintNow('CAT4_46', 10000, 1)
108@ = 6
TIMERB = 0

:CAT4_9783
if 
  38@ == 1
goto_if_false @CAT4_10867
$flag_has_safe_been_robbed_cat4 = Clock.GetGameTimer()
sub_int_var_from_int_var $flag_has_safe_been_robbed_cat4 -= $game_timer1_cat4
if 
  94@ == 0
goto_if_false @CAT4_9844
94@ = 1
$game_timer1_cat4 = Clock.GetGameTimer()

:CAT4_9844
$flag_has_safe_been_robbed_cat4 = Clock.GetGameTimer()
sub_int_var_from_int_var $flag_has_safe_been_robbed_cat4 -= $game_timer1_cat4
if 
  94@ == 1
goto_if_false @CAT4_10003
94@ = 2
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2615)

:CAT4_9889
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_9915
wait 0
goto @CAT4_9889

:CAT4_9915
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_9919
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_9945
wait 0
goto @CAT4_9919

:CAT4_9945
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_9998
Char.ClearTasks($catalina)
if 
  not Char.IsDead(46@(52@,6i))
goto_if_false @CAT4_9998
Task.KillCharOnFoot($catalina, 46@(52@,6i))

:CAT4_9998
$game_timer1_cat4 = Clock.GetGameTimer()

:CAT4_10003
$flag_has_safe_been_robbed_cat4 = Clock.GetGameTimer()
sub_int_var_from_int_var $flag_has_safe_been_robbed_cat4 -= $game_timer1_cat4
if 
  94@ == 2
goto_if_false @CAT4_10109
94@ = 3
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12677)

:CAT4_10048
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_10074
wait 0
goto @CAT4_10048

:CAT4_10074
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_10078
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_10104
wait 0
goto @CAT4_10078

:CAT4_10104
$game_timer1_cat4 = Clock.GetGameTimer()

:CAT4_10109
$flag_has_safe_been_robbed_cat4 = Clock.GetGameTimer()
sub_int_var_from_int_var $flag_has_safe_been_robbed_cat4 -= $game_timer1_cat4
if 
  94@ == 3
goto_if_false @CAT4_10234
if 
  $flag_has_safe_been_robbed_cat4 > 5000
goto_if_false @CAT4_10234
94@ = 4
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2611)

:CAT4_10173
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_10199
wait 0
goto @CAT4_10173

:CAT4_10199
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_10203
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_10229
wait 0
goto @CAT4_10203

:CAT4_10229
$game_timer1_cat4 = Clock.GetGameTimer()

:CAT4_10234
$flag_has_safe_been_robbed_cat4 = Clock.GetGameTimer()
sub_int_var_from_int_var $flag_has_safe_been_robbed_cat4 -= $game_timer1_cat4
if 
  94@ == 4
goto_if_false @CAT4_10359
if 
  $flag_has_safe_been_robbed_cat4 > 10000
goto_if_false @CAT4_10359
94@ = 5
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2610)

:CAT4_10298
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_10324
wait 0
goto @CAT4_10298

:CAT4_10324
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_10328
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_10354
wait 0
goto @CAT4_10328

:CAT4_10354
$game_timer1_cat4 = Clock.GetGameTimer()

:CAT4_10359
$flag_has_safe_been_robbed_cat4 = Clock.GetGameTimer()
sub_int_var_from_int_var $flag_has_safe_been_robbed_cat4 -= $game_timer1_cat4
if 
  94@ == 5
goto_if_false @CAT4_10421
if 
  $flag_has_safe_been_robbed_cat4 > 10000
goto_if_false @CAT4_10421
94@ = 6
$game_timer1_cat4 = Clock.GetGameTimer()

:CAT4_10421
$flag_has_safe_been_robbed_cat4 = Clock.GetGameTimer()
sub_int_var_from_int_var $flag_has_safe_been_robbed_cat4 -= $game_timer1_cat4
if 
  94@ > 1
goto_if_false @CAT4_10867
if 
  2 > 52@
goto_if_false @CAT4_10867
if 
  Char.IsDead(46@(52@,6i))
goto_if_false @CAT4_10867
Char.MarkAsNoLongerNeeded(46@(52@,6i))
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_10867
if 
  not Char.IsShooting($catalina)
goto_if_false @CAT4_10867
52@ += 1
if 
  2 > 52@
goto_if_false @CAT4_10843
Char.ClearTasks($catalina)
if 
  not Char.IsDead(46@(52@,6i))
goto_if_false @CAT4_10593
Task.KillCharOnFoot($catalina, 46@(52@,6i))

:CAT4_10593
if 
  52@ == 2
goto_if_false @CAT4_10674
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12672)

:CAT4_10618
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_10644
wait 0
goto @CAT4_10618

:CAT4_10644
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_10648
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_10674
wait 0
goto @CAT4_10648

:CAT4_10674
if 
  52@ == 4
goto_if_false @CAT4_10755
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12677)

:CAT4_10699
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_10725
wait 0
goto @CAT4_10699

:CAT4_10725
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_10729
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_10755
wait 0
goto @CAT4_10729

:CAT4_10755
if 
  52@ == 5
goto_if_false @CAT4_10836
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12684)

:CAT4_10780
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_10806
wait 0
goto @CAT4_10780

:CAT4_10806
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_10810
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_10836
wait 0
goto @CAT4_10810

:CAT4_10836
goto @CAT4_10867

:CAT4_10843
Char.ClearTasks($catalina)
Task.AimGunAtCoord($catalina, 64@, 65@, 66@, 900000)

:CAT4_10867
gosub @CAT4_2145
if 
  World.IsExplosionInArea(ExplosionType.Grenade, 820.3084, -1.6925, 1003.278, 828.8, 4.7199, 1008.079)
goto_if_false @CAT4_10942
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_10942
Char.SetHealth($catalina, 0)

:CAT4_10942
if 
  103@ == 0
goto_if_false @CAT4_11192
if 
  World.IsExplosionInArea(ExplosionType.Grenade, 823.89, 8.99, 1000.4, 826.18, 11.98, 1009.72)
goto_if_false @CAT4_11059
Object.SetCollisionDamageEffect(39@, True)
Object.FreezePosition(39@, False)
Object.Break(39@, 1)
Object.SetHealth(39@, 0)
103@ = 1
Fx.AddExplosion(820.5, 9.7, 1003.216, ExplosionType.Grenade)

:CAT4_11059
if 
  Object.DoesExist(39@)
goto_if_false @CAT4_11192
if 
  Char.IsCurrentWeapon($scplayer, WeaponType.Satchel)
goto_if_false @CAT4_11192
if 
  World.IsExplosionInArea(ExplosionType.Grenade, 823.89, 8.99, 1000.4, 826.18, 11.98, 1009.72)
goto_if_false @CAT4_11192
Object.SetCollisionDamageEffect(39@, True)
Object.FreezePosition(39@, False)
Object.Break(39@, 1)
Object.SetHealth(39@, 0)
103@ = 1
Fx.AddExplosion(820.5, 9.7, 1003.216, ExplosionType.Grenade)

:CAT4_11192
if 
  103@ == 1
goto_if_false @CAT4_11377
if 
  World.IsExplosionInArea(ExplosionType.Grenade, 819.55, 8.09, 1003.4, 822.27, 10.98, 1005.72)
goto_if_false @CAT4_11377
Text.ClearHelp
Text.ClearPrints
$c3_rand_escort = 1
Streaming.MarkModelAsNoLongerNeeded(#RIDER1_DOOR)
World.SwitchEntryExit('GENOTB', False)
if 
  275@ == 0
goto_if_false @CAT4_11316
275@ = 1
TIMERA = 0

:CAT4_11316
Object.Delete(40@)
40@ = Object.Create(#MAN_SAFENEW, 820.5, 9.7, 1003.216)
Object.SetHeading(40@, 90.0)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_11377
Char.FreezePositionAndDontLoadCollision($catalina, False)

:CAT4_11377
if 
  275@ == 1
goto_if_false @CAT4_13659
if 
  TIMERA > 500
goto_if_false @CAT4_13659
Fx.AddExplosion(820.5, 9.7, 1003.216, ExplosionType.Grenade)
53@ = 4

:CAT4_11440
if 
  6 > 53@
goto_if_false @CAT4_11481
Char.MarkAsNoLongerNeeded(46@(53@,6i))
53@ += 1
goto @CAT4_11440

:CAT4_11481
if 
  Object.DoesExist(39@)
goto_if_false @CAT4_11502
Object.Delete(39@)

:CAT4_11502
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
World.SetPedDensityMultiplier(0.0)
Camera.SetFixedPosition(823.9662, 11.5153, 1005.81, 0.0, 0.0, 0.0)
Camera.PointAtPoint(823.2487, 11.0891, 1005.26, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 824.8268, 10.0672, 1003.187)
Char.SetHeading($scplayer, 100.0)
Char.SetAreaVisible($scplayer, 3)
Streaming.SetAreaVisible(3)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_11684
Char.ClearTasks($catalina)
Char.SetCoordinates($catalina, 827.95, 9.21, 1003.13)
Char.SetHeading($catalina, 93.0)
Char.SetRelationship($catalina, RelationshipType.Like, PedType.Cop)
Char.ClearRelationship($catalina, RelationshipType.Hate, PedType.Cop)
99@ = 0

:CAT4_11684
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
World.ClearArea(824.8268, 10.0672, 1003.187, 1000.0, True)
Streaming.RequestAnimation("BOMBER")

:CAT4_11731
if 
  not Streaming.HasAnimationLoaded("BOMBER")
goto_if_false @CAT4_11763
wait 0
goto @CAT4_11731

:CAT4_11763
Task.Duck($scplayer, 3000)
TIMERA = 0
TIMERB = 0
97@ = 0

:CAT4_11792
if 
  97@ <> 10
goto_if_false @CAT4_13153
wait 0
if 
  97@ == 0
goto_if_false @CAT4_11858
if 
  TIMERA > 2000
goto_if_false @CAT4_11858
97@ = 1

:CAT4_11858
if 
  97@ == 1
goto_if_false @CAT4_12236
if 
  TIMERA > 2000
goto_if_false @CAT4_12236
97@ = 2
Task.GoStraightToCoord($scplayer, 821.3832, 9.7296, 1003.195, MoveState.Walk, -1)
if 
  not Car.IsDead(41@)
goto_if_false @CAT4_12009
Car.FreezePosition(41@, True)
Car.SetVisible(41@, True)
Car.SetProofs(41@, False, False, False, False, False)
Car.SetHealth(41@, 1500)
Car.SetCoordinates(41@, 1297.0, 278.0, 18.0)
Car.SetHeading(41@, 150.0)

:CAT4_12009
Streaming.RequestModel(599)
Streaming.RequestModel(283)
Streaming.RequestModel(346)

:CAT4_12024
if or
  not Streaming.HasModelLoaded(599)
  not Streaming.HasModelLoaded(283)
  not Streaming.HasModelLoaded(346)
goto_if_false @CAT4_12061
wait 0
goto @CAT4_12024

:CAT4_12061
34@ = Car.Create(599, 1296.038, 251.8959, 18.4002)
35@ = Car.Create(599, 1301.326, 265.0127, 18.4007)
36@ = Car.Create(599, 1308.398, 278.7967, 18.546)
Car.SetHeading(34@, 11.7173)
Car.SetHeading(35@, 70.3422)
Car.SetHeading(36@, 119.5617)
43@ = Char.CreateInsideCar(34@, PedType.Cop, 283)
Char.GiveWeapon(43@, WeaponType.Pistol, 1000)
44@ = Char.CreateInsideCar(35@, PedType.Cop, 283)
Char.GiveWeapon(44@, WeaponType.Pistol, 1000)
45@ = Char.CreateInsideCar(36@, PedType.Cop, 283)
Char.GiveWeapon(45@, WeaponType.Pistol, 1000)
TIMERA = 0

:CAT4_12236
if 
  97@ == 2
goto_if_false @CAT4_12718
if 
  TIMERA > 2000
goto_if_false @CAT4_12718
Camera.SetFixedPosition(819.5102, 10.5367, 1004.439, 0.0, 0.0, 0.0)
Camera.PointAtPoint(820.4842, 10.324, 1004.362, SwitchType.JumpCut)
56@ = Sequence.Open()
Task.PlayAnim(-1, "BOM_PLANT_IN", "BOMBER", 4.0, False, False, False, False, 0)
Task.PlayAnim(-1, "BOM_PLANT_LOOP", "BOMBER", 4.0, False, False, False, False, 5000)
Sequence.Close(56@)
Char.PerformSequence($scplayer, 56@)
Sequence.Clear(56@)
if 
  not Char.IsDead($scplayer)
goto_if_false @CAT4_12458
Char.StartFacialTalk($scplayer, 100000)

:CAT4_12458
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2626)

:CAT4_12465
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_12491
wait 0
goto @CAT4_12465

:CAT4_12491
Text.PrintNow('CAT2_GA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_12511
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_12537
wait 0
goto @CAT4_12511

:CAT4_12537
Text.ClearThisPrint('CAT2_GA')
if 
  not Char.IsDead($scplayer)
goto_if_false @CAT4_12569
Char.StopFacialTalk($scplayer)

:CAT4_12569
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2616)

:CAT4_12576
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_12602
wait 0
goto @CAT4_12576

:CAT4_12602
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_12626
Char.StartFacialTalk($catalina, 10000)

:CAT4_12626
Text.PrintNow('CAT2_GB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_12646
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_12672
wait 0
goto @CAT4_12646

:CAT4_12672
Text.ClearThisPrint('CAT2_GB')
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_12704
Char.StopFacialTalk($catalina)

:CAT4_12704
TIMERA = 0
97@ = 3

:CAT4_12718
if 
  97@ == 3
goto_if_false @CAT4_13055
if 
  TIMERA > 1000
goto_if_false @CAT4_13055
Camera.SetFixedPosition(832.2155, 11.3956, 1003.388, 0.0, 0.0, 0.0)
Camera.PointAtPoint(831.3511, 10.9217, 1003.557, SwitchType.JumpCut)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2627)

:CAT4_12813
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_12839
wait 0
goto @CAT4_12813

:CAT4_12839
56@ = Sequence.Open()
Task.AchieveHeading(-1, 10.0)
Task.GoStraightToCoord(-1, 833.0, 10.0, 1003.0, MoveState.Run, -1)
Sequence.Close(56@)
Char.PerformSequence($scplayer, 56@)
Sequence.Clear(56@)
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_12939
Char.ClearTasks($catalina)
Task.GoStraightToCoord($catalina, 834.0, 7.0, 1003.0, MoveState.Run, -1)

:CAT4_12939
if 
  not Char.IsDead($scplayer)
goto_if_false @CAT4_12963
Char.StartFacialTalk($scplayer, 10000)

:CAT4_12963
Text.PrintNow('CAT2_GC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_12983
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_13009
wait 0
goto @CAT4_12983

:CAT4_13009
if 
  not Char.IsDead($scplayer)
goto_if_false @CAT4_13030
Char.StopFacialTalk($scplayer)

:CAT4_13030
Text.ClearThisPrint('CAT2_GC')
TIMERA = 0
97@ = 4

:CAT4_13055
if 
  97@ == 4
goto_if_false @CAT4_13120
Camera.DoFade(1000, Fade.Out)

:CAT4_13080
if 
  Camera.GetFadingStatus
goto_if_false @CAT4_13104
wait 0
goto @CAT4_13080

:CAT4_13104
Player.MakeGangReappear
TIMERA = 0
97@ = 5

:CAT4_13120
if 
  TIMERB > 14800
goto_if_false @CAT4_13146
97@ = 10

:CAT4_13146
goto @CAT4_11792

:CAT4_13153
Streaming.SetAreaVisible(0)
Char.SetCoordinates($scplayer, 1292.721, 271.0581, 18.5469)
Char.SetHasUsedEntryExit($scplayer, 833.0, 9.0, 10.0)
Streaming.LoadScene(1292.721, 271.0581, 18.5469)
Char.SetHeading($scplayer, 333.0)
if 
  Char.HasGotWeapon($scplayer, WeaponType.Detonator)
goto_if_false @CAT4_13249
Char.SetCurrentWeapon($scplayer, WeaponType.Detonator)

:CAT4_13249
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_13351
Char.SetCoordinates($catalina, 1292.66, 275.2182, 18.5547)
Char.SetHeading($catalina, 340.1134)
Char.SetCantBeDraggedOut($catalina, True)
Char.SetStayInCarWhenJacked($catalina, True)
Char.SetProofs($catalina, False, False, False, False, False)
Char.SetHasUsedEntryExit($catalina, 833.0, 9.0, 10.0)
Char.SetAreaVisible($catalina, 0)

:CAT4_13351
World.ClearArea(1292.721, 271.0581, 18.5469, 1000.0, True)
Camera.DoFade(1000, Fade.In)
if 
  not Car.IsDead(41@)
goto_if_false @CAT4_13532
if 
  Car.IsPassengerSeatFree(41@, SeatIndex.TandemRear)
goto_if_false @CAT4_13484
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_13477
Task.EnterCarAsPassenger($catalina, 41@, -1, 0)
if 
  Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT4_13470
Group.SetFollowStatus($Players_Group, False)

:CAT4_13470
106@ = 1

:CAT4_13477
goto @CAT4_13525

:CAT4_13484
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT4_13518
Group.SetMember($Players_Group, $catalina)
Group.SetFollowStatus($Players_Group, True)

:CAT4_13518
106@ = 0

:CAT4_13525
goto @CAT4_13566

:CAT4_13532
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT4_13566
Group.SetMember($Players_Group, $catalina)
Group.SetFollowStatus($Players_Group, True)

:CAT4_13566
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Streaming.RemoveAnimation("BOMBER")
Hud.DisplayRadar(True)
Object.Delete(39@)
Object.Delete(40@)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Streaming.MarkModelAsNoLongerNeeded(#MAN_SAFENEW)
Streaming.MarkModelAsNoLongerNeeded(#KEV_SAFE)
Audio.SetRadioChannel(RadioChannel.KRose)
117@ = 1
Blip.Remove(112@)
88@ = 0
89@ = 1

:CAT4_13659
goto @CAT4_9022

:CAT4_13666
88@ = 0
89@ = 1
return 

:CAT4_13682
281@ = 0
277@ = 872.9051
278@ = -30.3161
279@ = 62.1893
World.SetCarDensityMultiplier(0.0)
gosub @CAT4_2145

:CAT4_13733
if 
  90@ <> 1
goto_if_false @CAT4_16144
wait 0
gosub @CAT4_2145
if 
  98@ == 0
goto_if_false @CAT4_14479
if 
  38@ == 0
goto_if_false @CAT4_14479
Player.AlterWantedLevel($player1, 4)
94@ = 4
Hud.DisplayRadar(True)
Char.SetHeading($scplayer, 333.0)
Camera.SetBehindPlayer
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_14211
Char.SetAccuracy($catalina, 100)
if 
  not Car.IsDead(41@)
goto_if_false @CAT4_14121
42@ = Car.GetModel(41@)
if and
  Car.IsPassengerSeatFree(41@, SeatIndex.TandemRear)
  Streaming.IsThisModelACar(42@)
goto_if_false @CAT4_14024
Char.SetCantBeDraggedOut($catalina, True)
Char.SetStayInCarWhenJacked($catalina, True)
114@ = Blip.AddForCar(41@)
Blip.SetAsFriendly(114@, True)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12613)

:CAT4_13934
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_13960
wait 0
goto @CAT4_13934

:CAT4_13960
Text.PrintNow('CATX_BF', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_13980
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_14006
wait 0
goto @CAT4_13980

:CAT4_14006
Text.ClearThisPrint('CATX_BF')
goto @CAT4_14114

:CAT4_14024
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12647)

:CAT4_14031
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_14057
wait 0
goto @CAT4_14031

:CAT4_14057
Text.PrintNow('CATX_NA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_14077
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_14103
wait 0
goto @CAT4_14077

:CAT4_14103
Text.ClearThisPrint('CATX_NA')

:CAT4_14114
goto @CAT4_14211

:CAT4_14121
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12647)

:CAT4_14128
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_14154
wait 0
goto @CAT4_14128

:CAT4_14154
Text.PrintNow('CATX_NA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_14174
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_14200
wait 0
goto @CAT4_14174

:CAT4_14200
Text.ClearThisPrint('CATX_NA')

:CAT4_14211
if 
  not Char.IsDead(43@)
goto_if_false @CAT4_14298
if 
  not Car.IsDead(34@)
goto_if_false @CAT4_14298
56@ = Sequence.Open()
Task.LeaveCar(-1, 34@)
Task.AimGunAtChar(-1, $scplayer, 20000)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(56@)
Char.PerformSequence(43@, 56@)
Sequence.Clear(56@)
Char.SetDecisionMaker(43@, 54@)

:CAT4_14298
if 
  not Char.IsDead(44@)
goto_if_false @CAT4_14385
if 
  not Car.IsDead(35@)
goto_if_false @CAT4_14385
56@ = Sequence.Open()
Task.LeaveCar(-1, 35@)
Task.AimGunAtChar(-1, $scplayer, 20000)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(56@)
Char.PerformSequence(44@, 56@)
Sequence.Clear(56@)
Char.SetDecisionMaker(44@, 54@)

:CAT4_14385
if 
  not Char.IsDead(45@)
goto_if_false @CAT4_14472
if 
  not Car.IsDead(36@)
goto_if_false @CAT4_14472
56@ = Sequence.Open()
Task.LeaveCar(-1, 36@)
Task.AimGunAtChar(-1, $scplayer, 20000)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(56@)
Char.PerformSequence(45@, 56@)
Sequence.Clear(56@)
Char.SetDecisionMaker(45@, 54@)

:CAT4_14472
98@ = 1

:CAT4_14479
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_15083
if 
  98@ == 1
goto_if_false @CAT4_14618
Car.MarkAsNoLongerNeeded(34@)
Car.MarkAsNoLongerNeeded(35@)
Car.MarkAsNoLongerNeeded(36@)
Char.MarkAsNoLongerNeeded(43@)
Char.MarkAsNoLongerNeeded(44@)
Char.MarkAsNoLongerNeeded(45@)
Car.MarkAsNoLongerNeeded(41@)
98@ = 2
if 
  Blip.DoesExist(115@)
goto_if_false @CAT4_14576
Blip.Remove(115@)

:CAT4_14576
if 
  Blip.DoesExist(116@)
goto_if_false @CAT4_14597
Blip.Remove(116@)

:CAT4_14597
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
98@ = 2

:CAT4_14618
if 
  98@ == 2
goto_if_false @CAT4_14915
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT4_14915
98@ = 3
281@ = 1
if 
  Blip.DoesExist(114@)
goto_if_false @CAT4_14687
Blip.Remove(114@)

:CAT4_14687
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT4_14721
Group.SetMember($Players_Group, $catalina)
Group.SetFollowStatus($Players_Group, True)

:CAT4_14721
if 
  not Car.IsDead(41@)
goto_if_false @CAT4_14759
Car.FreezePosition(41@, False)
Car.SetProofs(41@, False, False, False, False, False)

:CAT4_14759
if 
  93@ == 0
goto_if_false @CAT4_14814
if 
  not Blip.DoesExist(115@)
goto_if_false @CAT4_14814
115@ = Blip.AddForCoord(277@, 278@, 279@)
Blip.ChangeColor(115@, BlipColor.Yellow)

:CAT4_14814
if 
  93@ == 1
goto_if_false @CAT4_14915
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_14915
if 
  Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT4_14915
if 
  not Blip.DoesExist(116@)
goto_if_false @CAT4_14915
116@ = Blip.AddSpriteForCoord(67@, 68@, 69@, RadarSprite.Spray)
Text.PrintNow('CAT4_32', 5000, 1)

:CAT4_14915
if 
  98@ == 3
goto_if_false @CAT4_15031
gosub @CAT4_16165
if 
  91@ == 1
goto_if_false @CAT4_14960
return 

:CAT4_14960
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_15031
if 
  Char.IsInAnyCar($catalina)
goto_if_false @CAT4_15031
Char.ClearRelationship($catalina, RelationshipType.Like, PedType.Cop)
99@ = 1
Char.SetRelationship($catalina, RelationshipType.Hate, PedType.Cop)
106@ = 0
98@ = 4

:CAT4_15031
if 
  98@ == 4
goto_if_false @CAT4_15076
gosub @CAT4_16165
if 
  91@ == 1
goto_if_false @CAT4_15076
return 

:CAT4_15076
goto @CAT4_15115

:CAT4_15083
89@ = 0
91@ = 1
Text.PrintNow('CAT4_15', 5000, 1)
return 

:CAT4_15115
if 
  93@ == 0
goto_if_false @CAT4_16137
if 
  Char.LocateAnyMeans3D($scplayer, 277@, 278@, 279@, 4.0, 4.0, 4.0, True)
goto_if_false @CAT4_15175

:CAT4_15175
if 
  Char.IsDead($catalina)
goto_if_false @CAT4_15230
89@ = 0
91@ = 1
90@ = 0
Text.PrintNow('CAT4_15', 5000, 1)
return 

:CAT4_15230
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_15369
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CAT4_15369
if 
  Char.IsInAnyCar($catalina)
goto_if_false @CAT4_15369
if and
  94@ >= 4
  is_int_lvar_greater_or_equal_to_int_lvar 110@ >= 94@
goto_if_false @CAT4_15369
if 
  94@ == 4
goto_if_false @CAT4_15362
shut_player_up $player1 {_p2} 1
if 
  TIMERA > 10000
goto_if_false @CAT4_15355
gosub @CAT4_16800

:CAT4_15355
goto @CAT4_15369

:CAT4_15362
gosub @CAT4_16800

:CAT4_15369
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_16137
if and
  Char.LocateAnyMeans3D($scplayer, 277@, 278@, 279@, 4.0, 4.0, 4.0, False)
  Char.LocateAnyMeans3D($catalina, 277@, 278@, 279@, 10.0, 10.0, 10.0, False)
goto_if_false @CAT4_16137
90@ = 1
91@ = 0
if 
  Char.LocateInCar3D($scplayer, 277@, 278@, 279@, 10.0, 10.0, 10.0, True)
goto_if_false @CAT4_15544
Player.SetControl($player1, False)
$car = Char.StoreCarIsInNoSave($scplayer)
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 2000000)

:CAT4_15544
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
TIMERA = 0
TIMERB = 0
97@ = 0

:CAT4_15576
if 
  97@ <> 10
goto_if_false @CAT4_16117
wait 0
World.ClearArea(866.7373, -24.0333, 64.9955, 1000.0, True)
if 
  97@ == 0
goto_if_false @CAT4_15792
97@ = 1
Camera.SetFixedPosition(866.3945, -23.1135, 65.1866, 0.0, 0.0, 0.0)
Camera.PointAtPoint(866.7373, -24.0333, 64.9955, SwitchType.JumpCut)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 2605)

:CAT4_15709
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_15735
wait 0
goto @CAT4_15709

:CAT4_15735
Text.PrintNow('CAT2_CA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_15755
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_15781
wait 0
goto @CAT4_15755

:CAT4_15781
Text.ClearThisPrint('CAT2_CA')

:CAT4_15792
if 
  97@ == 1
goto_if_false @CAT4_15907
97@ = 2
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12660)

:CAT4_15824
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_15850
wait 0
goto @CAT4_15824

:CAT4_15850
Text.PrintNow('CATX_RC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_15870
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_15896
wait 0
goto @CAT4_15870

:CAT4_15896
Text.ClearThisPrint('CATX_RC')

:CAT4_15907
if 
  97@ == 2
goto_if_false @CAT4_16000
97@ = 3
TIMERA = 0
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_16000
if 
  Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT4_15979
Char.RemoveFromGroup($catalina)

:CAT4_15979
if 
  Char.IsInAnyCar($catalina)
goto_if_false @CAT4_16000
Task.LeaveAnyCar($catalina)

:CAT4_16000
if 
  97@ == 3
goto_if_false @CAT4_16084
if 
  1500 > TIMERA
goto_if_false @CAT4_16084
97@ = 4
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_16084
Task.GoStraightToCoord($catalina, 869.84, -26.24, 63.1797, MoveState.Walk, -1)

:CAT4_16084
if 
  TIMERB > 7000
goto_if_false @CAT4_16110
97@ = 10

:CAT4_16110
goto @CAT4_15576

:CAT4_16117
Char.Delete($catalina)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer

:CAT4_16137
goto @CAT4_13733

:CAT4_16144
Blip.Remove(115@)
90@ = 1
89@ = 0
return 

:CAT4_16165
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_16754
if 
  93@ == 1
goto_if_false @CAT4_16222
if 
  Char.IsShooting($catalina)
goto_if_false @CAT4_16222
gosub @CAT4_17009

:CAT4_16222
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT4_16747
Text.PrintNow('CAT4_16', 4000, 1)
if 
  89@ == 1
goto_if_false @CAT4_16317
if 
  Blip.DoesExist(116@)
goto_if_false @CAT4_16296
Blip.Remove(116@)

:CAT4_16296
if 
  Blip.DoesExist(115@)
goto_if_false @CAT4_16317
Blip.Remove(115@)

:CAT4_16317
if 
  not Blip.DoesExist(113@)
goto_if_false @CAT4_16364
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_16364
113@ = Blip.AddForChar($catalina)
Blip.SetAsFriendly(113@, True)

:CAT4_16364
if 
  not Char.IsGroupMember($catalina, $Players_Group)
goto_if_false @CAT4_16747
wait 0
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_16696
if 
  not Char.LocateAnyMeansChar3D($scplayer, $catalina, 200.0, 200.0, 200.0, False)
goto_if_false @CAT4_16478
88@ = 0
89@ = 0
91@ = 1
Text.PrintNow('CAT4_14', 5000, 1)
return 

:CAT4_16478
if 
  Char.LocateAnyMeansChar3D($scplayer, $catalina, 8.0, 8.0, 8.0, False)
goto_if_false @CAT4_16689
Group.SetMember($Players_Group, $catalina)
Group.SetFollowStatus($Players_Group, True)
Blip.Remove(113@)
if 
  89@ == 1
goto_if_false @CAT4_16689
if 
  93@ == 0
goto_if_false @CAT4_16623
if 
  not Blip.DoesExist(115@)
goto_if_false @CAT4_16623
115@ = Blip.AddForCoord(277@, 278@, 279@)
Blip.ChangeColor(115@, BlipColor.Yellow)
Text.PrintNow('CAT4_13', 10000, 1)

:CAT4_16623
if 
  93@ == 1
goto_if_false @CAT4_16689
if 
  not Blip.DoesExist(116@)
goto_if_false @CAT4_16689
116@ = Blip.AddSpriteForCoord(67@, 68@, 69@, RadarSprite.Spray)
Text.PrintNow('CAT4_32', 5000, 1)

:CAT4_16689
goto @CAT4_16740

:CAT4_16696
Blip.Remove(112@)
88@ = 0
89@ = 0
91@ = 1
Text.PrintNow('CAT4_15', 5000, 1)
return 

:CAT4_16740
goto @CAT4_16364

:CAT4_16747
goto @CAT4_16798

:CAT4_16754
Blip.Remove(112@)
88@ = 0
89@ = 0
91@ = 1
Text.PrintNow('CAT4_15', 5000, 1)
return 

:CAT4_16798
return 

:CAT4_16800
if 
  107@ == 0
goto_if_false @CAT4_16863
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_16841
Char.ShutUpForScriptedSpeech($catalina, True)

:CAT4_16841
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 222@(274@,52i))
107@ = 1

:CAT4_16863
if 
  107@ == 1
goto_if_false @CAT4_16921
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_16921
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(118@(274@,52s), 10000, 1)
107@ = 2

:CAT4_16921
if 
  107@ == 2
goto_if_false @CAT4_17007
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17007
107@ = 0
Text.ClearThisPrint(118@(274@,52s))
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_16993
Char.ShutUpForScriptedSpeech($catalina, False)

:CAT4_16993
274@ += 1
94@ += 1

:CAT4_17007
return 

:CAT4_17009
if 
  95@ == 0
goto_if_false @CAT4_17126
95@ = 1
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12661)

:CAT4_17041
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17067
wait 0
goto @CAT4_17041

:CAT4_17067
Text.PrintNow('CATX_SA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_17087
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17113
wait 0
goto @CAT4_17087

:CAT4_17113
Text.ClearThisPrint('CATX_SA')
return 

:CAT4_17126
if 
  95@ == 1
goto_if_false @CAT4_17243
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12662)

:CAT4_17151
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17177
wait 0
goto @CAT4_17151

:CAT4_17177
Text.PrintNow('CATX_SB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_17197
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17223
wait 0
goto @CAT4_17197

:CAT4_17223
Text.ClearThisPrint('CATX_SB')
95@ = 2
return 

:CAT4_17243
if 
  95@ == 2
goto_if_false @CAT4_17360
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12663)

:CAT4_17268
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17294
wait 0
goto @CAT4_17268

:CAT4_17294
Text.PrintNow('CATX_SC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_17314
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17340
wait 0
goto @CAT4_17314

:CAT4_17340
Text.ClearThisPrint('CATX_SC')
95@ = 3
return 

:CAT4_17360
if 
  95@ == 3
goto_if_false @CAT4_17477
95@ = 4
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12664)

:CAT4_17392
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17418
wait 0
goto @CAT4_17392

:CAT4_17418
Text.PrintNow('CATX_SD', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_17438
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17464
wait 0
goto @CAT4_17438

:CAT4_17464
Text.ClearThisPrint('CATX_SD')
return 

:CAT4_17477
if 
  95@ == 4
goto_if_false @CAT4_17594
95@ = 5
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12665)

:CAT4_17509
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17535
wait 0
goto @CAT4_17509

:CAT4_17535
Text.PrintNow('CATX_SE', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_17555
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17581
wait 0
goto @CAT4_17555

:CAT4_17581
Text.ClearThisPrint('CATX_SE')
return 

:CAT4_17594
if 
  95@ == 5
goto_if_false @CAT4_17711
95@ = 6
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12666)

:CAT4_17626
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17652
wait 0
goto @CAT4_17626

:CAT4_17652
Text.PrintNow('CATX_SF', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_17672
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17698
wait 0
goto @CAT4_17672

:CAT4_17698
Text.ClearThisPrint('CATX_SF')
return 

:CAT4_17711
if 
  95@ == 6
goto_if_false @CAT4_17828
95@ = 7
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12667)

:CAT4_17743
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17769
wait 0
goto @CAT4_17743

:CAT4_17769
Text.PrintNow('CATX_SG', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_17789
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17815
wait 0
goto @CAT4_17789

:CAT4_17815
Text.ClearThisPrint('CATX_SG')
return 

:CAT4_17828
if 
  95@ == 7
goto_if_false @CAT4_17945
95@ = 8
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12668)

:CAT4_17860
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17886
wait 0
goto @CAT4_17860

:CAT4_17886
Text.PrintNow('CATX_SH', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_17906
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_17932
wait 0
goto @CAT4_17906

:CAT4_17932
Text.ClearThisPrint('CATX_SH')
return 

:CAT4_17945
if 
  95@ == 8
goto_if_false @CAT4_18062
95@ = 9
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12672)

:CAT4_17977
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_18003
wait 0
goto @CAT4_17977

:CAT4_18003
Text.PrintNow('CATX_TD', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_18023
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_18049
wait 0
goto @CAT4_18023

:CAT4_18049
Text.ClearThisPrint('CATX_TD')
return 

:CAT4_18062
if 
  95@ == 9
goto_if_false @CAT4_18179
95@ = 10
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12677)

:CAT4_18094
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_18120
wait 0
goto @CAT4_18094

:CAT4_18120
Text.PrintNow('CATX_TJ', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_18140
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_18166
wait 0
goto @CAT4_18140

:CAT4_18166
Text.ClearThisPrint('CATX_TJ')
return 

:CAT4_18179
if 
  95@ == 10
goto_if_false @CAT4_18296
95@ = 0
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12684)

:CAT4_18211
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CAT4_18237
wait 0
goto @CAT4_18211

:CAT4_18237
Text.PrintNow('CATX_TQ', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:CAT4_18257
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CAT4_18283
wait 0
goto @CAT4_18257

:CAT4_18283
Text.ClearThisPrint('CATX_TQ')
return 

:CAT4_18296
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Char.Delete($catalina)
103@ = 0
return 

:CAT4_18326
Text.PrintWithNumberBig('M_PASS', 2000, 5000, TextStyle.Middle)
Player.AddScore($player1, 2000)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
$cat_counter += 1
$cat_getaway_dialogue += 1
Stat.RegisterMissionPassed('CAT_4')
Stat.PlayerMadeProgress(1)
if 
  $cat_liquor_banter == 1
goto_if_false @CAT4_18416
$cat_liquor_banter = 2

:CAT4_18416
$flag_cat_mission4_passed = 1
return 

:CAT4_18425
Text.ClearHelp
$onmission = 0
Hud.DisplayRadar(True)
World.SwitchEntryExit('GENOTB', True)
if 
  Player.IsPlaying($player1)
goto_if_false @CAT4_18474
shut_player_up $player1 {_p2} 0

:CAT4_18474
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_18505
Char.SetProofs($catalina, False, False, False, False, False)

:CAT4_18505
if 
  not Car.IsDead(41@)
goto_if_false @CAT4_18550
Car.FreezePosition(41@, False)
Car.SetProofs(41@, False, False, False, False, False)
Car.SetCanBurstTires(41@, True)

:CAT4_18550
Char.RemoveElegantly($catalina)
53@ = 4

:CAT4_18562
if 
  6 > 53@
goto_if_false @CAT4_18603
Char.MarkAsNoLongerNeeded(46@(53@,6i))
53@ += 1
goto @CAT4_18562

:CAT4_18603
Streaming.RemoveAnimation("MISC")
Streaming.MarkModelAsNoLongerNeeded(283)
Streaming.MarkModelAsNoLongerNeeded(407)
Streaming.MarkModelAsNoLongerNeeded(596)
Streaming.MarkModelAsNoLongerNeeded(416)
Streaming.MarkModelAsNoLongerNeeded(277)
Streaming.MarkModelAsNoLongerNeeded(#ROADWORKBARRIER1)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(599)
Streaming.MarkModelAsNoLongerNeeded(348)
Streaming.MarkModelAsNoLongerNeeded(364)
Streaming.MarkModelAsNoLongerNeeded(363)
Car.MarkAsNoLongerNeeded(34@)
Car.MarkAsNoLongerNeeded(35@)
Car.MarkAsNoLongerNeeded(36@)
Car.MarkAsNoLongerNeeded(41@)
Char.MarkAsNoLongerNeeded(43@)
Char.MarkAsNoLongerNeeded(44@)
Char.MarkAsNoLongerNeeded(45@)
Object.MarkAsNoLongerNeeded(39@)
Object.MarkAsNoLongerNeeded(40@)
Streaming.MarkModelAsNoLongerNeeded(#RIDER1_DOOR)
Streaming.MarkModelAsNoLongerNeeded(#KEV_SAFE)
Streaming.MarkModelAsNoLongerNeeded(#MAN_SAFENEW)
Car.MarkAsNoLongerNeeded(41@)
$played_ryder1_before = 0
if 
  not Char.IsDead($catalina)
goto_if_false @CAT4_18777
Char.ClearRelationship($catalina, RelationshipType.Hate, PedType.Cop)
Char.ClearRelationship($catalina, RelationshipType.Like, PedType.Cop)

:CAT4_18777
Streaming.RemoveAnimation("BOMBER")
$flag_otb_robbing_peds_panic = 0
$timer_mobile_start = Clock.GetGameTimer()
Blip.Remove(112@)
Blip.Remove(113@)
Blip.Remove(114@)
Blip.Remove(115@)
Blip.Remove(116@)
$spray_shop4 = Blip.AddShortRangeSpriteForCoord(720.016, -454.625, 15.328, RadarSprite.Spray)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
DecisionMaker.Remove(54@)
DecisionMaker.Remove(55@)
World.RemoveAllScriptFires
Mission.Finish
Game.SetEveryoneIgnorePlayer($player1, False)
Group.SetSeparationRange($Players_Group, 30.0)
88@ = 1
89@ = 0
90@ = 0
91@ = 0
96@ = 0
$c3_rand_escort = 0
99@ = 0
$flag_otb_robbing_peds_panic = 0
92@ = 0
98@ = 0
100@ = 0
104@ = 0
102@ = 0
94@ = 0
95@ = 0
103@ = 0
38@ = 0
97@ = 0
93@ = 0
101@ = 0
117@ = 0
$counter_robbery_cat4 = 0
return 

//-------------Mission 45---------------
// Originally: King in Exile

:CATCUT
script_name 'CATCUT'
gosub @CATCUT_302
if 
  has_deatharrest_been_executed 
goto_if_false @CATCUT_38
gosub @CATCUT_795

:CATCUT_38
gosub @CATCUT_912
terminate_this_script 

:CATCUT_47
switch_start 34@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @CATCUT_300 {caseNum1} 0 {caseLabel1} @CATCUT_110 {caseNum2} -1 {caseLabel2} @CATCUT_300 {caseNum3} -1 {caseLabel3} @CATCUT_300 {caseNum4} -1 {caseLabel4} @CATCUT_300 {caseNum5} -1 {caseLabel5} @CATCUT_300 {caseNum6} -1 {caseLabel6} @CATCUT_300 {caseNum7} -1 {caseLabel7} @CATCUT_300

:CATCUT_110
set_var_text_label s$game_timer2_cat4[0] = 'MCAT01A'
set_var_text_label s$game_timer2_cat4[1] = 'MCAT01B'
set_var_text_label s$game_timer2_cat4[2] = 'MCAT01C'
set_var_text_label s$game_timer2_cat4[3] = 'MCAT01D'
set_var_text_label s$game_timer2_cat4[4] = 'MCAT01E'
set_var_text_label s$game_timer2_cat4[5] = 'MCAT01F'
set_var_text_label s$game_timer2_cat4[6] = 'MCAT01G'
set_var_text_label s$game_timer2_cat4[7] = 'MCAT01H'
set_lvar_int_to_constant 39@ = 3625
set_lvar_int_to_constant 40@ = 3600
set_lvar_int_to_constant 41@ = 3601
set_lvar_int_to_constant 42@ = 3626
set_lvar_int_to_constant 43@ = 3602
set_lvar_int_to_constant 44@ = 3627
set_lvar_int_to_constant 45@ = 3603
set_lvar_int_to_constant 46@ = 3628
38@ = 7
goto @CATCUT_300

:CATCUT_300
return 

:CATCUT_302
Stat.RegisterMissionGiven
$onmission = 1
Text.LoadMissionText('BCESAR2')
wait 0
Streaming.SetAreaVisible(2)
Cutscene.Load('BCESAR2')

:CATCUT_341
if 
  not Cutscene.HasLoaded
goto_if_false @CATCUT_365
wait 0
goto @CATCUT_341

:CATCUT_365
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CATCUT_374
if 
  not Cutscene.HasFinished
goto_if_false @CATCUT_398
wait 0
goto @CATCUT_374

:CATCUT_398
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CATCUT_411
if 
  Camera.GetFadingStatus
goto_if_false @CATCUT_435
wait 0
goto @CATCUT_411

:CATCUT_435
Cutscene.Clear
Streaming.SetAreaVisible(0)
Streaming.RequestModel(330)

:CATCUT_446
if 
  not Streaming.HasModelLoaded(330)
goto_if_false @CATCUT_473
wait 0
goto @CATCUT_446

:CATCUT_473
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 28200)
35@ = 0
36@ = 0
37@ = 0
34@ = 0
gosub @CATCUT_47
Char.SetCoordinates($scplayer, -2042.129, -2528.791, 29.625)
Char.SetHeading($scplayer, 284.27)
Streaming.LoadScene(-2042.129, -2528.791, 29.625)
Camera.RestoreJumpcut
Camera.DoFade(1000, Fade.In)

:CATCUT_571
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @CATCUT_597
wait 0
goto @CATCUT_571

:CATCUT_597
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
TIMERA = 0

:CATCUT_608
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @CATCUT_660
wait 0
if 
  1500 > TIMERA
goto_if_false @CATCUT_653
goto @CATCUT_660

:CATCUT_653
goto @CATCUT_608

:CATCUT_660
Task.UseMobilePhone($scplayer, True)
TIMERA = 0

:CATCUT_674
if 
  1500 > TIMERA
goto_if_false @CATCUT_704
wait 0
goto @CATCUT_674

:CATCUT_704
Player.SetControl($player1, True)

:CATCUT_711
if 
  35@ <> 8
goto_if_false @CATCUT_771
wait 0
gosub @CATCUT_933
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CATCUT_764
goto @CATCUT_771

:CATCUT_764
goto @CATCUT_711

:CATCUT_771
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Task.UseMobilePhone($scplayer, False)
goto @CATCUT_813

:CATCUT_795
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:CATCUT_813
Blip.Remove($bcrash_contact_blip)
Player.ClearWantedLevel($player1)
$flag_trailor_cutscene = 1
Blip.Remove($cat_contact_blip)
$cat_contact_blip = Blip.AddSpriteForContactPoint($catX, $catY, $catZ, $cat_blip_icon)
Blip.Remove($1731)
$1731 = Blip.AddShortRangeSpriteForContactPoint($save_pickupX[14], $save_pickupY[14], $save_pickupZ[14], RadarSprite.SaveGame)
Blip.ChangeDisplay($1731, BlipDisplay.BlipOnly)
Pickup.Remove($grove_save_pickup[14])
$grove_save_pickup[14] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[14], $save_pickupY[14], $save_pickupZ[14])
$number_of_save_icons = 15
return 

:CATCUT_912
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
Streaming.MarkModelAsNoLongerNeeded(330)
return 

:CATCUT_933
if or
  36@ == 0
  36@ == 1
goto_if_false @CATCUT_984
if 
  is_int_lvar_greater_or_equal_to_int_lvar 38@ >= 35@
goto_if_false @CATCUT_984
gosub @CATCUT_1042

:CATCUT_984
if 
  36@ == 2
goto_if_false @CATCUT_1040
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CATCUT_1040
36@ = 0
35@ += 1
37@ = 0
Text.ClearPrints

:CATCUT_1040
return 

:CATCUT_1042
if 
  36@ == 0
goto_if_false @CATCUT_1078
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 39@(35@,8i))
36@ = 1

:CATCUT_1078
if 
  36@ == 1
goto_if_false @CATCUT_1136
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CATCUT_1136
Text.PrintNow($game_timer2_cat4(35@,8s), 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
36@ = 2

:CATCUT_1136
return 

//-------------Mission 46---------------
// Originally: Body Harvest

:TRUTH1
script_name 'TRUTH1'
gosub @TRUTH1_47
if 
  has_deatharrest_been_executed 
goto_if_false @TRUTH1_38
gosub @TRUTH1_16357

:TRUTH1_38
gosub @TRUTH1_16513
terminate_this_script 

:TRUTH1_47
Stat.RegisterMissionGiven
Text.LoadMissionText('TRU1')
$onmission = 1
wait 0
Streaming.SetAreaVisible(12)
Cutscene.Load('TRUTH_1')

:TRUTH1_86
if 
  not Cutscene.HasLoaded
goto_if_false @TRUTH1_110
wait 0
goto @TRUTH1_86

:TRUTH1_110
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:TRUTH1_119
if 
  not Cutscene.HasFinished
goto_if_false @TRUTH1_143
wait 0
goto @TRUTH1_119

:TRUTH1_143
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:TRUTH1_158
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH1_182
wait 0
goto @TRUTH1_158

:TRUTH1_182
Streaming.SetAreaVisible(0)
Camera.SetFadingColor(0, 0, 0)
Streaming.RequestModel(532)
Streaming.RequestModel(531)
Streaming.RequestModel(#KMB_MARIJUANA)
Streaming.RequestCarRecording(348)
Streaming.RequestModel(#SW_HAYBREAK02)
Streaming.RequestModel(357)
Streaming.RequestModel(478)
Streaming.RequestModel(337)
Streaming.RequestModel(157)
Streaming.RequestModel(160)
Streaming.RequestModel(162)
Streaming.LoadAllModelsNow

:TRUTH1_251
if or
  not Streaming.HasModelLoaded(532)
  not Streaming.HasModelLoaded(531)
  not Streaming.HasModelLoaded(#KMB_MARIJUANA)
  not Streaming.HasModelLoaded(157)
  not Streaming.HasModelLoaded(160)
goto_if_false @TRUTH1_298
wait 0
goto @TRUTH1_251

:TRUTH1_298
if or
  not Streaming.HasCarRecordingBeenLoaded(348)
  not Streaming.HasModelLoaded(#SW_HAYBREAK02)
  not Streaming.HasModelLoaded(357)
  not Streaming.HasModelLoaded(162)
goto_if_false @TRUTH1_340
wait 0
goto @TRUTH1_298

:TRUTH1_340
if or
  not Streaming.HasModelLoaded(478)
  not Streaming.HasModelLoaded(337)
goto_if_false @TRUTH1_372
wait 0
goto @TRUTH1_340

:TRUTH1_372
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
116@ = Blip.AddForCoord(-1047.593, -1347.254, 129.216)
97@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.ClearEventResponse(97@, 7)
DecisionMakerChar.AddEventResponse(97@, 7, 1000, 50.0, 50.0, 50.0, 50.0, True, True)
98@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Mission1)
Char.SetCoordinates($scplayer, -2195.9, -2258.029, 30.0)
Char.SetHeading($scplayer, 141.0)
Streaming.LoadSceneInDirection(-2196.46, -2256.96, 31.43, 141.0)
Camera.DoFade(500, Fade.In)
117@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
118@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
Text.PrintNow('TRU1_1', 10000, 1)
if 
  122@ == 100
goto_if_false @TRUTH1_888
43@ = Object.Create(#KMB_MARIJUANA, 40@, 41@, 42@)
44@ = Object.Create(#KMB_MARIJUANA, 40@, 41@, 42@)
45@ = Object.Create(#KMB_MARIJUANA, 40@, 41@, 42@)
46@ = Object.Create(#KMB_MARIJUANA, 40@, 41@, 42@)
47@ = Object.Create(#KMB_MARIJUANA, 40@, 41@, 42@)
48@ = Object.Create(#KMB_MARIJUANA, 40@, 41@, 42@)
122@ = 101

:TRUTH1_888
Game.SetWantedMultiplier(0.3)
if 
  $7008 > 0
goto_if_false @TRUTH1_935
Skip.SetUp(-1084.219, -1341.156, 128.365, 257.771)

:TRUTH1_935
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @TRUTH1_961
goto @TRUTH1_16375

:TRUTH1_961
if 
  118@ == 0
goto_if_false @TRUTH1_4518
if 
  117@ == 0
goto_if_false @TRUTH1_2275
if 
  Char.LocateAnyMeans3D($scplayer, -1047.593, -1347.254, 129.39, 4.0, 4.0, 4.0, True)
goto_if_false @TRUTH1_2275
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Blip.Remove(116@)
Camera.DoFade(500, Fade.Out)

:TRUTH1_1068
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH1_1092
wait 0
goto @TRUTH1_1068

:TRUTH1_1092
if 
  $7008 == 0
goto_if_false @TRUTH1_1117
$7008 = 1

:TRUTH1_1117
Skip.Clear
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @TRUTH1_1143
$car = Char.StoreCarIsInNoSave($scplayer)

:TRUTH1_1143
34@ = Car.Create(532, -1060.25, -1044.209, 128.2188)
Car.SetHeading(34@, 84.2638)
Car.SetStraightLineDistance(34@, 100)
Car.GotoCoordinates(34@, -1136.78, -1044.209, 128.2188)
Car.SetCruiseSpeed(34@, 7.0)
38@ = Char.CreateInsideCar(34@, PedType.Mission1, 160)
wait 500
Camera.DoFade(1000, Fade.In)
Camera.SetFixedPosition(-1073.802, -1038.203, 128.492, 0.0, 0.0, 0.0)
if 
  not Car.IsDead(34@)
goto_if_false @TRUTH1_1295
Camera.PointAtCar(34@, CameraMode.Fixed, SwitchType.JumpCut)

:TRUTH1_1295
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @TRUTH1_1336
$car = Char.StoreCarIsInNoSave($scplayer)
Car.SetHeading($car, 355.69)
goto @TRUTH1_1346

:TRUTH1_1336
Char.SetHeading($scplayer, 355.73)

:TRUTH1_1346
90@ = Car.Create(531, -1043.989, -1312.677, 128.772)
Car.SetHeading(90@, 1.243)
Car.SetCanBurstTires(90@, False)
Car.SetHealth(90@, 2000)
60@ = Object.CreateNoOffset(#SW_HAYBREAK02, -1053.792, -1187.624, 129.396)
61@ = Object.CreateNoOffset(#SW_HAYBREAK02, -1038.506, -1154.722, 129.699)
62@ = Object.CreateNoOffset(#SW_HAYBREAK02, -1105.419, -1112.451, 128.864)
63@ = Object.CreateNoOffset(#SW_HAYBREAK02, -1182.346, -1043.797, 129.699)
64@ = Object.CreateNoOffset(#SW_HAYBREAK02, -1141.389, -1008.254, 129.735)
65@ = Object.CreateNoOffset(#SW_HAYBREAK02, -1197.385, -1084.951, 129.743)
66@ = Object.CreateNoOffset(#SW_HAYBREAK02, -1161.353, -1117.198, 129.049)
35@ = Car.Create(531, -1115.569, -1115.231, 128.366)
39@ = Char.CreateInsideCar(35@, PedType.Mission1, 160)
Car.SetHeading(35@, 274.604)
49@ = Char.Create(PedType.Mission1, 160, -1064.341, -1283.63, 128.247)
Char.SetHeading(49@, 116.09)
Task.PlayAnim(49@, "ATM", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(49@, 97@)
Char.SetHealth(49@, 50)
Char.SetFollowNodeThresholdDistance(49@, 100.0)
Char.GiveWeapon(49@, WeaponType.Rifle, 99999)
50@ = Char.Create(PedType.Mission1, 157, -1074.646, -1095.812, 128.245)
Char.SetHeading(50@, 96.069)
Task.PlayAnim(50@, "ATM", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(50@, 97@)
Char.SetHealth(50@, 50)
Char.SetFollowNodeThresholdDistance(50@, 100.0)
52@ = Char.Create(PedType.Mission1, 157, -1135.339, -1134.299, 128.259)
Char.SetHeading(52@, 90.157)
Task.PlayAnim(52@, "ATM", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(52@, 97@)
Char.SetHealth(52@, 50)
Char.SetFollowNodeThresholdDistance(52@, 100.0)
53@ = Char.Create(PedType.Mission1, 162, -1121.739, -1095.64, 128.247)
Char.SetHeading(53@, 94.64)
Task.PlayAnim(53@, "ATM", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(53@, 97@)
Char.SetHealth(53@, 50)
54@ = Char.Create(PedType.Mission1, 157, -1121.713, -1084.165, 128.247)
Char.SetHeading(54@, 79.746)
Task.PlayAnim(54@, "ATM", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(54@, 97@)
Char.SetHealth(54@, 50)
Char.SetFollowNodeThresholdDistance(54@, 100.0)
55@ = Char.Create(PedType.Mission1, 162, -1159.367, -1134.375, 128.259)
Char.SetHeading(55@, 270.749)
Task.PlayAnim(55@, "ATM", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(55@, 97@)
Char.SetHealth(55@, 50)
Char.SetFollowNodeThresholdDistance(55@, 100.0)
Text.PrintNow('TRU1_2', 7000, 1)
wait 200
51@ = Char.Create(PedType.Mission1, 162, -1074.332, -1084.388, 128.244)
Char.SetHeading(51@, 60.659)
Task.PlayAnim(51@, "ATM", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(51@, 97@)
Char.SetHealth(51@, 50)
Char.SetFollowNodeThresholdDistance(51@, 30.0)
TIMERA = 0
TIMERB = 0
117@ = 1

:TRUTH1_2275
if 
  TIMERB > 1800
goto_if_false @TRUTH1_2393
if 
  117@ == 1
goto_if_false @TRUTH1_2393
121@ = 0
skip_cutscene_start_internal @TRUTH1_2749
if 
  not Car.IsDead(35@)
goto_if_false @TRUTH1_2379
Car.SetStraightLineDistance(35@, 100)
Car.GotoCoordinates(35@, -1061.059, -1116.129, 128.366)
Car.SetCruiseSpeed(35@, 10.0)

:TRUTH1_2379
TIMERB = 0
117@ = 2

:TRUTH1_2393
if 
  117@ == 2
goto_if_false @TRUTH1_2587
if 
  TIMERB > 5000
goto_if_false @TRUTH1_2587
Camera.SetFixedPosition(-1057.875, -1120.592, 136.4117, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1058.704, -1120.089, 136.1667, SwitchType.JumpCut)
if 
  not Car.IsDead(34@)
goto_if_false @TRUTH1_2557
Car.SetCoordinates(34@, -1082.138, -1046.893, 129.29)
Car.SetHeading(34@, 84.2638)
Car.GotoCoordinates(34@, -1195.58, -1045.87, 129.1)
Car.SetCruiseSpeed(34@, 7.0)

:TRUTH1_2557
Text.PrintNow('TRU1_3', 7000, 1)
TIMERB = 0
117@ = 3

:TRUTH1_2587
if 
  117@ == 3
goto_if_false @TRUTH1_2705
if 
  TIMERB > 7000
goto_if_false @TRUTH1_2705
Camera.SetFixedPosition(-1035.782, -1331.041, 134.0494, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1036.184, -1330.134, 133.9223, SwitchType.JumpCut)
Text.PrintNow('TRU1_4', 10000, 1)
TIMERB = 0
117@ = 4

:TRUTH1_2705
if 
  117@ == 4
goto_if_false @TRUTH1_4518
if 
  TIMERB > 5000
goto_if_false @TRUTH1_4518
121@ = 1

:TRUTH1_2749
skip_cutscene_end 
if 
  121@ == 0
goto_if_false @TRUTH1_3570
Camera.DoFade(500, Fade.Out)

:TRUTH1_2776
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH1_2800
wait 0
goto @TRUTH1_2776

:TRUTH1_2800
Car.Delete(34@)
Car.Delete(35@)
Object.Delete(43@)
Object.Delete(44@)
Object.Delete(45@)
Object.Delete(46@)
Object.Delete(47@)
Object.Delete(48@)
Char.Delete(38@)
Char.Delete(49@)
Char.Delete(50@)
Char.Delete(51@)
Char.Delete(52@)
Char.Delete(53@)
Char.Delete(54@)
Char.Delete(55@)
49@ = Char.Create(PedType.Mission1, 160, -1064.341, -1283.63, 128.247)
Char.SetHeading(49@, 116.09)
Task.PlayAnim(49@, "ATM", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(49@, 97@)
Char.SetHealth(49@, 50)
Char.SetFollowNodeThresholdDistance(49@, 100.0)
Char.GiveWeapon(49@, WeaponType.Rifle, 99999)
50@ = Char.Create(PedType.Mission1, 157, -1074.646, -1095.812, 128.245)
Char.SetHeading(50@, 96.069)
Task.PlayAnim(50@, "ATM", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(50@, 97@)
Char.SetHealth(50@, 50)
Char.SetFollowNodeThresholdDistance(50@, 100.0)
51@ = Char.Create(PedType.Mission1, 162, -1074.332, -1084.388, 128.244)
Char.SetHeading(51@, 60.659)
Task.PlayAnim(51@, "ATM", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(51@, 97@)
Char.SetHealth(51@, 50)
Char.SetFollowNodeThresholdDistance(51@, 100.0)
52@ = Char.Create(PedType.Mission1, 157, -1135.339, -1134.299, 128.259)
Char.SetHeading(52@, 90.157)
Task.PlayAnim(52@, "ATM", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(52@, 97@)
Char.SetHealth(52@, 50)
Char.SetFollowNodeThresholdDistance(52@, 100.0)
53@ = Char.Create(PedType.Mission1, 162, -1121.739, -1095.64, 128.247)
Char.SetHeading(53@, 94.64)
Task.PlayAnim(53@, "ATM", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(53@, 97@)
Char.SetHealth(53@, 50)
54@ = Char.Create(PedType.Mission1, 157, -1121.713, -1084.165, 128.247)
Char.SetHeading(54@, 79.746)
Task.PlayAnim(54@, "ATM", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(54@, 97@)
Char.SetHealth(54@, 50)
Char.SetFollowNodeThresholdDistance(54@, 100.0)
55@ = Char.Create(PedType.Mission1, 162, -1159.367, -1134.375, 128.259)
Char.SetHeading(55@, 270.749)
Task.PlayAnim(55@, "ATM", "PED", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(55@, 97@)
Char.SetHealth(55@, 50)
Char.SetFollowNodeThresholdDistance(55@, 100.0)
Streaming.LoadScene(-1049.08, -1268.08, 127.81)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Text.ClearPrints
Camera.DoFade(500, Fade.In)

:TRUTH1_3546
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH1_3570
wait 0
goto @TRUTH1_3546

:TRUTH1_3570
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Text.PrintNow('TRU1_4', 7000, 1)
Car.Delete(34@)
Char.Delete(38@)
Char.Delete(39@)
Car.Delete(35@)
34@ = Car.Create(532, -1023.706, -933.357, 129.292)
Car.SetHeading(34@, 177.348)
Car.SetStraightLineDistance(34@, 20)
38@ = Char.CreateInsideCar(34@, PedType.Mission1, 160)
Char.SetDecisionMaker(38@, 97@)
Char.SetAccuracy(38@, 30)
Car.SetHealth(34@, 9000)
116@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(116@, True)
Car.SetCanBurstTires(34@, False)
56@ = Car.Create(531, -1029.287, -1183.826, 128.184)
Car.SetHeading(56@, 90.725)
57@ = Char.CreateInsideCar(56@, PedType.Mission1, 162)
Char.SetDecisionMaker(57@, 97@)
Char.GiveWeapon(57@, WeaponType.Shovel, 1)
Char.SetAccuracy(57@, 50)
58@ = Car.Create(531, -1067.128, -1153.574, 128.2188)
Car.SetHeading(58@, 272.1696)
59@ = Char.CreateInsideCar(58@, PedType.Mission1, 157)
Char.SetDecisionMaker(59@, 97@)
Char.GiveWeapon(59@, WeaponType.Shovel, 1)
Char.SetAccuracy(59@, 50)
118@ = 1
if 
  not Char.IsDead(50@)
goto_if_false @TRUTH1_3894
Char.GiveWeapon(50@, WeaponType.Rifle, 99999)

:TRUTH1_3894
if 
  not Char.IsDead(52@)
goto_if_false @TRUTH1_3919
Char.GiveWeapon(52@, WeaponType.Shovel, 1)

:TRUTH1_3919
if 
  not Char.IsDead(53@)
goto_if_false @TRUTH1_3944
Char.GiveWeapon(53@, WeaponType.Shovel, 1)

:TRUTH1_3944
if 
  not Char.IsDead(51@)
goto_if_false @TRUTH1_4002
Char.SetCoordinates(51@, -1070.71, -1126.36, 128.23)
Char.SetHeading(51@, 345.592)
Char.GiveWeapon(51@, WeaponType.Rifle, 99999)

:TRUTH1_4002
if 
  not Char.IsDead(54@)
goto_if_false @TRUTH1_4060
Char.SetCoordinates(54@, -1111.92, -1107.797, 127.892)
Char.SetHeading(54@, 212.87)
Char.GiveWeapon(54@, WeaponType.Rifle, 99999)

:TRUTH1_4060
if 
  not Char.IsDead(55@)
goto_if_false @TRUTH1_4118
Char.SetCoordinates(55@, -1154.72, -1116.097, 127.27)
Char.SetHeading(55@, 238.5)
Char.GiveWeapon(55@, WeaponType.Rifle, 99999)

:TRUTH1_4118
91@ = Char.Create(PedType.Mission1, 162, -1043.28, -1055.5, 128.22)
Char.SetHeading(91@, 175.56)
Char.GiveWeapon(91@, WeaponType.Rifle, 99999)
Char.SetDecisionMaker(91@, 98@)
Char.SetSenseRange(91@, 80.0)
92@ = Char.Create(PedType.Mission1, 157, -1147.91, -1023.34, 128.22)
Char.GiveWeapon(92@, WeaponType.Shovel, 1)
Char.SetDecisionMaker(92@, 98@)
Char.SetSenseRange(92@, 80.0)
93@ = Char.Create(PedType.Mission1, 160, -1094.89, -999.528, 128.21)
Char.SetHeading(93@, 175.56)
Char.GiveWeapon(93@, WeaponType.Shovel, 1)
Char.SetAccuracy(93@, 50)
Char.SetDecisionMaker(93@, 98@)
Char.SetSenseRange(93@, 150.0)
94@ = Char.Create(PedType.Mission1, 160, -1181.37, -992.4972, 128.2188)
Char.SetHeading(94@, 170.5759)
Char.GiveWeapon(94@, WeaponType.Rifle, 1)
Char.SetAccuracy(94@, 50)
Char.SetDecisionMaker(94@, 98@)
Char.SetSenseRange(94@, 150.0)
95@ = Char.Create(PedType.Mission1, 160, -1008.989, -998.692, 128.2188)
Char.SetHeading(95@, 170.5759)
Char.GiveWeapon(95@, WeaponType.Shovel, 1)
Char.SetAccuracy(95@, 50)
Char.SetDecisionMaker(95@, 98@)
Char.SetSenseRange(95@, 150.0)
96@ = Char.Create(PedType.Mission1, 160, -1151.001, -1011.517, 128.2188)
Char.SetHeading(96@, 170.5759)
Char.GiveWeapon(96@, WeaponType.Rifle, 1)
Char.SetAccuracy(96@, 50)
Char.SetDecisionMaker(96@, 98@)
Char.SetSenseRange(96@, 150.0)
117@ = 5

:TRUTH1_4518
if 
  118@ == 1
goto_if_false @TRUTH1_15937
if 
  123@ == 0
goto_if_false @TRUTH1_4658
if 
  not Char.IsDead(49@)
goto_if_false @TRUTH1_4658
if or
  Char.LocateAnyMeansChar2D(49@, $scplayer, 15.0, 15.0, False)
  Char.HasBeenDamagedByChar(49@, $scplayer)
  Char.IsInArea2D($scplayer, -1074.33, -1321.1, -1022.5, -1271.43, False)
goto_if_false @TRUTH1_4658
143@ = 1
Task.KillCharOnFoot(49@, $scplayer)
123@ = 1

:TRUTH1_4658
if 
  Char.IsInArea2D($scplayer, -1096.488, -1170.56, -1032.682, -1249.599, False)
goto_if_false @TRUTH1_4900
if 
  124@ == 0
goto_if_false @TRUTH1_4780
if 
  not Car.IsDead(56@)
goto_if_false @TRUTH1_4780
if 
  not Char.IsDead(57@)
goto_if_false @TRUTH1_4780
if 
  Char.IsSittingInCar(57@, 56@)
goto_if_false @TRUTH1_4780
Car.StartPlayback(56@, 348)
124@ = 1

:TRUTH1_4780
if 
  125@ == 0
goto_if_false @TRUTH1_4900
if 
  not Car.IsDead(58@)
goto_if_false @TRUTH1_4900
if 
  not Char.IsDead(59@)
goto_if_false @TRUTH1_4900
if 
  Char.IsSittingInCar(59@, 58@)
goto_if_false @TRUTH1_4900
Car.SetForwardSpeed(58@, 12.0)
Task.CarDriveToCoord(59@, 58@, -1045.147, -1152.724, 127.5258, 20.0, DriveMode.Normal, 0, DrivingMode.StopForCars)
125@ = 1

:TRUTH1_4900
if 
  124@ == 1
goto_if_false @TRUTH1_5022
if 
  not Car.IsDead(56@)
goto_if_false @TRUTH1_5022
if 
  not Char.IsDead(57@)
goto_if_false @TRUTH1_5022
if 
  Char.IsSittingInCar(57@, 56@)
goto_if_false @TRUTH1_5022
if 
  not Car.IsPlaybackGoingOn(56@)
goto_if_false @TRUTH1_5022
143@ = 8
set_lvar_int_to_lvar_int 102@ = 57@
set_lvar_int_to_lvar_int 101@ = 56@
gosub @TRUTH1_16313
124@ = 2

:TRUTH1_5022
if 
  125@ == 1
goto_if_false @TRUTH1_5159
if 
  not Car.IsDead(58@)
goto_if_false @TRUTH1_5159
if 
  not Char.IsDead(59@)
goto_if_false @TRUTH1_5159
if 
  Char.IsSittingInCar(59@, 58@)
goto_if_false @TRUTH1_5159
if 
  Car.Locate2D(58@, -1045.147, -1152.724, 6.0, 6.0, False)
goto_if_false @TRUTH1_5159
set_lvar_int_to_lvar_int 102@ = 59@
set_lvar_int_to_lvar_int 101@ = 58@
gosub @TRUTH1_16313
125@ = 2

:TRUTH1_5159
if 
  124@ == 2
goto_if_false @TRUTH1_5267
if 
  not Car.IsDead(56@)
goto_if_false @TRUTH1_5267
if 
  not Char.IsDead(57@)
goto_if_false @TRUTH1_5267
if 
  Char.IsSittingInCar(57@, 56@)
goto_if_false @TRUTH1_5267
if 
  Char.IsTouchingChar(57@, $scplayer)
goto_if_false @TRUTH1_5267
Task.CarTempAction(57@, 56@, TempAction.Reverse, 3000)
124@ = 3

:TRUTH1_5267
if 
  124@ == 3
goto_if_false @TRUTH1_5395
if 
  not Car.IsDead(56@)
goto_if_false @TRUTH1_5395
if 
  not Char.IsDead(57@)
goto_if_false @TRUTH1_5395
if 
  Char.IsSittingInCar(57@, 56@)
goto_if_false @TRUTH1_5395
110@ = Char.GetScriptTaskStatus(57@, 1735)
if 
  is_int_lvar_equal_to_constant 110@ == 7
goto_if_false @TRUTH1_5395
set_lvar_int_to_lvar_int 102@ = 57@
set_lvar_int_to_lvar_int 101@ = 56@
gosub @TRUTH1_16313
124@ = 2

:TRUTH1_5395
if 
  125@ == 2
goto_if_false @TRUTH1_5503
if 
  not Car.IsDead(58@)
goto_if_false @TRUTH1_5503
if 
  not Char.IsDead(59@)
goto_if_false @TRUTH1_5503
if 
  Char.IsSittingInCar(59@, 58@)
goto_if_false @TRUTH1_5503
if 
  Char.IsTouchingChar(59@, $scplayer)
goto_if_false @TRUTH1_5503
Task.CarTempAction(59@, 58@, TempAction.Reverse, 3000)
125@ = 3

:TRUTH1_5503
if 
  125@ == 3
goto_if_false @TRUTH1_5631
if 
  not Car.IsDead(58@)
goto_if_false @TRUTH1_5631
if 
  not Char.IsDead(59@)
goto_if_false @TRUTH1_5631
if 
  Char.IsSittingInCar(59@, 58@)
goto_if_false @TRUTH1_5631
110@ = Char.GetScriptTaskStatus(59@, 1735)
if 
  is_int_lvar_equal_to_constant 110@ == 7
goto_if_false @TRUTH1_5631
set_lvar_int_to_lvar_int 102@ = 59@
set_lvar_int_to_lvar_int 101@ = 58@
gosub @TRUTH1_16313
125@ = 2

:TRUTH1_5631
if 
  126@ == 0
goto_if_false @TRUTH1_6072
if 
  Char.IsInArea2D($scplayer, -1033.47, -1067.18, -1202.46, -1149.65, False)
goto_if_false @TRUTH1_5733
if 
  Char.IsShooting($scplayer)
goto_if_false @TRUTH1_5710
126@ = 1

:TRUTH1_5710
if 
  Player.IsTargetingAnything($player1)
goto_if_false @TRUTH1_5733
126@ = 1

:TRUTH1_5733
if 
  Char.IsInArea2D($scplayer, -1033.47, -1067.18, -1202.46, -1149.65, False)
goto_if_false @TRUTH1_5778
126@ = 1

:TRUTH1_5778
if 
  Char.DoesExist(50@)
goto_if_false @TRUTH1_5820
if 
  Char.HasBeenDamagedByChar(50@, $scplayer)
goto_if_false @TRUTH1_5820
126@ = 1

:TRUTH1_5820
if 
  Char.DoesExist(50@)
goto_if_false @TRUTH1_5862
if 
  Char.HasBeenDamagedByChar(50@, $scplayer)
goto_if_false @TRUTH1_5862
126@ = 1

:TRUTH1_5862
if 
  Char.DoesExist(51@)
goto_if_false @TRUTH1_5904
if 
  Char.HasBeenDamagedByChar(51@, $scplayer)
goto_if_false @TRUTH1_5904
126@ = 1

:TRUTH1_5904
if 
  Char.DoesExist(52@)
goto_if_false @TRUTH1_5946
if 
  Char.HasBeenDamagedByChar(52@, $scplayer)
goto_if_false @TRUTH1_5946
126@ = 1

:TRUTH1_5946
if 
  Char.DoesExist(53@)
goto_if_false @TRUTH1_5988
if 
  Char.HasBeenDamagedByChar(53@, $scplayer)
goto_if_false @TRUTH1_5988
126@ = 1

:TRUTH1_5988
if 
  Char.DoesExist(54@)
goto_if_false @TRUTH1_6030
if 
  Char.HasBeenDamagedByChar(54@, $scplayer)
goto_if_false @TRUTH1_6030
126@ = 1

:TRUTH1_6030
if 
  Char.DoesExist(55@)
goto_if_false @TRUTH1_6072
if 
  Char.HasBeenDamagedByChar(55@, $scplayer)
goto_if_false @TRUTH1_6072
126@ = 1

:TRUTH1_6072
if 
  126@ == 1
goto_if_false @TRUTH1_6269
143@ = 12
if 
  not Char.IsDead(50@)
goto_if_false @TRUTH1_6121
Task.KillCharOnFoot(50@, $scplayer)

:TRUTH1_6121
if 
  not Char.IsDead(51@)
goto_if_false @TRUTH1_6152
Task.KillCharOnFoot(51@, $scplayer)
Char.SetAccuracy(51@, 50)

:TRUTH1_6152
if 
  not Char.IsDead(52@)
goto_if_false @TRUTH1_6176
Task.KillCharOnFoot(52@, $scplayer)

:TRUTH1_6176
if 
  not Char.IsDead(53@)
goto_if_false @TRUTH1_6200
Task.KillCharOnFoot(53@, $scplayer)

:TRUTH1_6200
if 
  not Char.IsDead(54@)
goto_if_false @TRUTH1_6231
Task.KillCharOnFoot(54@, $scplayer)
Char.SetAccuracy(54@, 60)

:TRUTH1_6231
if 
  not Char.IsDead(55@)
goto_if_false @TRUTH1_6262
Task.KillCharOnFoot(55@, $scplayer)
Char.SetAccuracy(55@, 70)

:TRUTH1_6262
126@ = 2

:TRUTH1_6269
if 
  128@ == 0
goto_if_false @TRUTH1_6462
if 
  not Char.IsDead(38@)
goto_if_false @TRUTH1_6462
if 
  not Car.IsDead(34@)
goto_if_false @TRUTH1_6462
if 
  Char.IsSittingInCar(38@, 34@)
goto_if_false @TRUTH1_6462
$player_x, $player_y, $player_z = Char.GetOffsetInWorldCoords(38@, 0.0, 10.0, 0.0)
if or
  Char.LocateStoppedAnyMeans2D($scplayer, $player_x, $player_y, 12.0, 12.0, False)
  Char.LocateAnyMeans2D($scplayer, $player_x, $player_y, 12.0, 12.0, False)
goto_if_false @TRUTH1_6462
Char.GiveWeapon(38@, WeaponType.Rifle, 50)
Char.SetAccuracy(38@, 20)
Task.KillCharOnFoot(38@, $scplayer)
143@ = 23
128@ = 1

:TRUTH1_6462
if 
  117@ > 4
goto_if_false @TRUTH1_6695
if 
  119@ == 0
goto_if_false @TRUTH1_6581
if 
  128@ == 0
goto_if_false @TRUTH1_6581
if 
  not Char.IsDead(38@)
goto_if_false @TRUTH1_6581
if 
  not Car.IsDead(34@)
goto_if_false @TRUTH1_6581
if 
  Char.IsSittingInCar(38@, 34@)
goto_if_false @TRUTH1_6581
gosub @TRUTH1_16156
119@ = 1

:TRUTH1_6581
if 
  119@ == 1
goto_if_false @TRUTH1_6695
if 
  not Char.IsDead(38@)
goto_if_false @TRUTH1_6695
if 
  not Car.IsDead(34@)
goto_if_false @TRUTH1_6695
if 
  Char.IsSittingInCar(38@, 34@)
goto_if_false @TRUTH1_6695
if 
  Car.Locate2D(34@, -1031.46, -935.51, 10.0, 10.0, False)
goto_if_false @TRUTH1_6695
119@ = 0

:TRUTH1_6695
if 
  119@ >= 0
goto_if_false @TRUTH1_7941
if 
  not Car.IsDead(34@)
goto_if_false @TRUTH1_7941
if 
  Car.IsInArea2D(34@, -1201.518, -926.777, -1016.98, -1052.652, False)
goto_if_false @TRUTH1_7941
106@ = Car.GetDriver(34@)
if 
  106@ <> -1
goto_if_false @TRUTH1_7941
if 
  120@ == 100
goto_if_false @TRUTH1_6949
43@ = Object.Create(#KMB_MARIJUANA, 1.1, 2.2, 3.3)
44@ = Object.Create(#KMB_MARIJUANA, 1.1, 2.2, 3.3)
45@ = Object.Create(#KMB_MARIJUANA, 1.1, 2.2, 3.3)
46@ = Object.Create(#KMB_MARIJUANA, 1.1, 2.2, 3.3)
47@ = Object.Create(#KMB_MARIJUANA, 1.1, 2.2, 3.3)
48@ = Object.Create(#KMB_MARIJUANA, 1.1, 2.2, 3.3)

:TRUTH1_6949
if 
  120@ == 0
goto_if_false @TRUTH1_7119
if 
  TIMERA > 1250
goto_if_false @TRUTH1_7119
if 
  Object.DoesExist(43@)
goto_if_false @TRUTH1_7007
Object.Delete(43@)

:TRUTH1_7007
40@, 41@, 42@ = Car.GetOffsetInWorldCoords(34@, -1.3, -3.3, 1.3)
43@ = Object.Create(#KMB_MARIJUANA, 40@, 41@, 42@)
Object.SetDynamic(43@, True)
Object.SetVelocity(43@, 0.0, 0.0, -1.0)
  Object.Rotate(43@, 68.0, 10.0, False)
Object.SortOutCollisionWithCar(43@, 34@)
TIMERA = 0
120@ = 1

:TRUTH1_7119
if 
  120@ == 1
goto_if_false @TRUTH1_7282
if 
  TIMERA > 2250
goto_if_false @TRUTH1_7282
if 
  Object.DoesExist(44@)
goto_if_false @TRUTH1_7177
Object.Delete(44@)

:TRUTH1_7177
40@, 41@, 42@ = Car.GetOffsetInWorldCoords(34@, -1.3, -3.3, 1.3)
44@ = Object.Create(#KMB_MARIJUANA, 40@, 41@, 42@)
Object.SetDynamic(44@, True)
Object.SetVelocity(44@, 0.0, 0.0, -1.0)
  Object.Rotate(44@, 73.0, 10.0, False)
Object.SortOutCollisionWithCar(44@, 34@)
120@ = 2

:TRUTH1_7282
if 
  120@ == 2
goto_if_false @TRUTH1_7445
if 
  TIMERA > 4250
goto_if_false @TRUTH1_7445
if 
  Object.DoesExist(45@)
goto_if_false @TRUTH1_7340
Object.Delete(45@)

:TRUTH1_7340
40@, 41@, 42@ = Car.GetOffsetInWorldCoords(34@, -1.3, -3.3, 1.3)
45@ = Object.Create(#KMB_MARIJUANA, 40@, 41@, 42@)
Object.SetDynamic(45@, True)
Object.SetVelocity(45@, 0.0, 0.0, -1.0)
  Object.Rotate(45@, 90.0, 10.0, False)
Object.SortOutCollisionWithCar(45@, 34@)
120@ = 3

:TRUTH1_7445
if 
  120@ == 3
goto_if_false @TRUTH1_7608
if 
  TIMERA > 6250
goto_if_false @TRUTH1_7608
if 
  Object.DoesExist(46@)
goto_if_false @TRUTH1_7503
Object.Delete(46@)

:TRUTH1_7503
40@, 41@, 42@ = Car.GetOffsetInWorldCoords(34@, -1.3, -3.3, 1.3)
46@ = Object.Create(#KMB_MARIJUANA, 40@, 41@, 42@)
Object.SetDynamic(46@, True)
Object.SetVelocity(46@, 0.0, 0.0, -1.0)
  Object.Rotate(46@, 180.0, 10.0, False)
Object.SortOutCollisionWithCar(46@, 34@)
120@ = 4

:TRUTH1_7608
if 
  120@ == 4
goto_if_false @TRUTH1_7771
if 
  TIMERA > 8250
goto_if_false @TRUTH1_7771
if 
  Object.DoesExist(47@)
goto_if_false @TRUTH1_7666
Object.Delete(47@)

:TRUTH1_7666
40@, 41@, 42@ = Car.GetOffsetInWorldCoords(34@, -1.3, -3.3, 1.3)
47@ = Object.Create(#KMB_MARIJUANA, 40@, 41@, 42@)
Object.SetDynamic(47@, True)
Object.SetVelocity(47@, 0.0, 0.0, -1.0)
  Object.Rotate(47@, 80.0, 10.0, False)
Object.SortOutCollisionWithCar(47@, 34@)
120@ = 5

:TRUTH1_7771
if 
  120@ == 5
goto_if_false @TRUTH1_7941
if 
  TIMERA > 10250
goto_if_false @TRUTH1_7941
if 
  Object.DoesExist(48@)
goto_if_false @TRUTH1_7829
Object.Delete(48@)

:TRUTH1_7829
40@, 41@, 42@ = Car.GetOffsetInWorldCoords(34@, -1.3, -3.3, 1.3)
48@ = Object.Create(#KMB_MARIJUANA, 40@, 41@, 42@)
Object.SetDynamic(48@, True)
Object.SetVelocity(48@, 0.0, 0.0, -1.0)
  Object.Rotate(48@, 180.0, 10.0, False)
Object.SortOutCollisionWithCar(48@, 34@)
TIMERA = 0
120@ = 0

:TRUTH1_7941
if 
  131@ == 0
goto_if_false @TRUTH1_8921
if 
  129@ == 1
goto_if_false @TRUTH1_8921
Char.Delete(49@)
Char.Delete(50@)
Char.Delete(51@)
Char.Delete(52@)
Char.Delete(53@)
109@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(109@)
67@ = Char.Create(PedType.Mission1, 160, -1205.812, -1092.725, 127.2578)
Char.SetHeading(67@, 359.4852)
Char.GiveWeapon(67@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(67@, 97@)
Char.SetHealth(67@, 50)
Char.PerformSequence(67@, 109@)
68@ = Char.Create(PedType.Mission1, 162, -1205.812, -1090.725, 127.2578)
Char.SetHeading(68@, 359.4852)
Char.GiveWeapon(68@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(68@, 97@)
Char.SetHealth(68@, 50)
Char.PerformSequence(68@, 109@)
69@ = Char.Create(PedType.Mission1, 157, -1181.8, -1116.735, 127.2578)
Char.SetHeading(69@, 79.3899)
Char.GiveWeapon(69@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(69@, 97@)
Char.SetHealth(69@, 50)
Char.PerformSequence(69@, 109@)
70@ = Char.Create(PedType.Mission1, 160, -1211.422, -1090.977, 127.2578)
Char.SetHeading(70@, 2.4516)
Char.GiveWeapon(70@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(70@, 97@)
Char.SetHealth(70@, 50)
Char.PerformSequence(70@, 109@)
71@ = Char.Create(PedType.Mission1, 162, -1179.283, -1113.823, 127.2578)
Char.SetHeading(71@, 74.1823)
Char.GiveWeapon(71@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(71@, 97@)
Char.SetHealth(71@, 50)
Char.PerformSequence(71@, 109@)
72@ = Char.Create(PedType.Mission1, 157, -1145.651, -1111.67, 127.2595)
Char.SetHeading(72@, 90.0989)
Char.GiveWeapon(72@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(72@, 97@)
Char.SetHealth(72@, 50)
Char.PerformSequence(72@, 109@)
73@ = Char.Create(PedType.Mission1, 162, -1146.601, -1114.956, 127.2595)
Char.SetHeading(73@, 102.0699)
Char.GiveWeapon(73@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(73@, 97@)
Char.SetHealth(73@, 50)
Char.PerformSequence(73@, 109@)
74@ = Char.Create(PedType.Mission1, 160, -1051.497, -1133.651, 127.2669)
Char.SetHeading(74@, 10.9064)
Char.GiveWeapon(74@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(74@, 97@)
Char.SetHealth(74@, 50)
Char.PerformSequence(74@, 109@)
75@ = Char.Create(PedType.Mission1, 157, -1048.588, -1131.942, 127.2595)
Char.SetHeading(75@, 57.544)
Char.GiveWeapon(75@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(75@, 97@)
Char.SetHealth(75@, 50)
Char.PerformSequence(75@, 109@)
76@ = Char.Create(PedType.Mission1, 162, -1118.818, -1116.196, 127.2595)
Char.SetHeading(76@, 90.5502)
Char.GiveWeapon(76@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(76@, 97@)
Char.SetHealth(76@, 50)
Char.PerformSequence(76@, 109@)
77@ = Char.Create(PedType.Mission1, 162, -1120.998, -1112.729, 127.2595)
Char.SetHeading(77@, 57.544)
Char.GiveWeapon(77@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(77@, 97@)
Char.SetHealth(77@, 50)
Char.PerformSequence(77@, 109@)
78@ = Char.Create(PedType.Mission1, 160, -1115.596, -1115.524, 127.2595)
Char.SetHeading(78@, 57.544)
Char.GiveWeapon(78@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(78@, 97@)
Char.SetHealth(78@, 50)
Char.PerformSequence(78@, 109@)
79@ = Char.Create(PedType.Mission1, 160, -1117.895, -1111.266, 127.2595)
Char.SetHeading(79@, 57.544)
Char.GiveWeapon(79@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(79@, 97@)
Char.SetHealth(79@, 50)
Char.PerformSequence(79@, 109@)
Sequence.Clear(109@)
131@ = 1

:TRUTH1_8921
if 
  131@ == 1
goto_if_false @TRUTH1_9766
if 
  not Car.IsDead(34@)
goto_if_false @TRUTH1_9766
if 
  132@ == 0
goto_if_false @TRUTH1_9109
if 
  Car.Locate2D(34@, -1205.812, -1090.725, 20.0, 20.0, False)
goto_if_false @TRUTH1_9109
107@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.SmartFleeChar(-1, $scplayer, 30.0, 30000)
Sequence.Close(107@)
if 
  not Char.IsDead(67@)
goto_if_false @TRUTH1_9066
Char.PerformSequence(67@, 107@)

:TRUTH1_9066
if 
  not Char.IsDead(68@)
goto_if_false @TRUTH1_9090
Char.PerformSequence(68@, 107@)

:TRUTH1_9090
143@ = 28
Sequence.Clear(107@)
132@ = 1

:TRUTH1_9109
if 
  133@ == 0
goto_if_false @TRUTH1_9256
if 
  Car.Locate2D(34@, -1181.8, -1116.735, 20.0, 20.0, False)
goto_if_false @TRUTH1_9256
107@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.SmartFleeChar(-1, $scplayer, 30.0, 30000)
Sequence.Close(107@)
if 
  not Char.IsDead(69@)
goto_if_false @TRUTH1_9220
Char.PerformSequence(69@, 107@)

:TRUTH1_9220
if 
  not Char.IsDead(71@)
goto_if_false @TRUTH1_9244
Char.PerformSequence(71@, 107@)

:TRUTH1_9244
Sequence.Clear(107@)
133@ = 1

:TRUTH1_9256
if 
  134@ == 0
goto_if_false @TRUTH1_9379
if 
  Car.Locate2D(34@, -1211.422, -1090.977, 25.0, 25.0, False)
goto_if_false @TRUTH1_9379
107@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.SmartFleeChar(-1, $scplayer, 30.0, 30000)
Sequence.Close(107@)
if 
  not Char.IsDead(70@)
goto_if_false @TRUTH1_9367
Char.PerformSequence(70@, 107@)

:TRUTH1_9367
Sequence.Clear(107@)
134@ = 1

:TRUTH1_9379
if 
  135@ == 0
goto_if_false @TRUTH1_9564
if 
  Car.Locate2D(34@, -1145.651, -1111.67, 20.0, 20.0, False)
goto_if_false @TRUTH1_9564
if 
  not Char.IsDead(72@)
goto_if_false @TRUTH1_9496
set_lvar_int_to_lvar_int 102@ = 72@
103@ = -1113.777
104@ = 1128.22
105@ = 128.22
gosub @TRUTH1_16095

:TRUTH1_9496
if 
  not Char.IsDead(73@)
goto_if_false @TRUTH1_9557
set_lvar_int_to_lvar_int 102@ = 73@
103@ = -1055.94
104@ = -1120.62
105@ = 128.56
gosub @TRUTH1_16095

:TRUTH1_9557
135@ = 1

:TRUTH1_9564
if 
  136@ == 0
goto_if_false @TRUTH1_9766
if 
  Car.IsInArea2D(34@, -1224.06, -1135.61, -999.06, -1063.3, False)
goto_if_false @TRUTH1_9766
107@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.SmartFleeChar(-1, $scplayer, 30.0, 30000)
Sequence.Close(107@)
if 
  not Char.IsDead(76@)
goto_if_false @TRUTH1_9675
Char.PerformSequence(76@, 107@)

:TRUTH1_9675
if 
  not Char.IsDead(77@)
goto_if_false @TRUTH1_9699
Char.PerformSequence(77@, 107@)

:TRUTH1_9699
if 
  not Char.IsDead(78@)
goto_if_false @TRUTH1_9723
Char.PerformSequence(78@, 107@)

:TRUTH1_9723
if 
  not Char.IsDead(79@)
goto_if_false @TRUTH1_9747
Char.PerformSequence(79@, 107@)

:TRUTH1_9747
Sequence.Clear(107@)
141@ = 1
136@ = 1

:TRUTH1_9766
if 
  141@ == 1
goto_if_false @TRUTH1_10560
if 
  not Char.IsDead(54@)
goto_if_false @TRUTH1_9821
if 
  not Char.IsOnScreen(54@)
goto_if_false @TRUTH1_9821
Char.Delete(54@)

:TRUTH1_9821
if 
  not Char.IsDead(55@)
goto_if_false @TRUTH1_9858
if 
  not Char.IsOnScreen(55@)
goto_if_false @TRUTH1_9858
Char.Delete(55@)

:TRUTH1_9858
if 
  not Char.IsDead(49@)
goto_if_false @TRUTH1_9895
if 
  not Char.IsOnScreen(49@)
goto_if_false @TRUTH1_9895
Char.Delete(67@)

:TRUTH1_9895
if 
  not Char.IsDead(50@)
goto_if_false @TRUTH1_9932
if 
  not Char.IsOnScreen(50@)
goto_if_false @TRUTH1_9932
Char.Delete(68@)

:TRUTH1_9932
if 
  not Char.IsDead(51@)
goto_if_false @TRUTH1_9969
if 
  not Char.IsOnScreen(51@)
goto_if_false @TRUTH1_9969
Char.Delete(69@)

:TRUTH1_9969
if 
  not Char.IsDead(52@)
goto_if_false @TRUTH1_10006
if 
  not Char.IsOnScreen(52@)
goto_if_false @TRUTH1_10006
Char.Delete(70@)

:TRUTH1_10006
109@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(109@)
80@ = Char.Create(PedType.Mission1, 162, -1050.942, -1171.55, 127.4132)
Char.SetHeading(80@, 57.544)
Char.GiveWeapon(80@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(80@, 97@)
Char.SetHealth(80@, 50)
Char.PerformSequence(80@, 109@)
81@ = Char.Create(PedType.Mission1, 160, -1048.379, -1172.351, 127.4308)
Char.SetHeading(81@, 57.544)
Char.GiveWeapon(81@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(81@, 97@)
Char.SetHealth(81@, 50)
Char.PerformSequence(81@, 109@)
82@ = Char.Create(PedType.Mission1, 162, -1047.927, -1177.559, 127.507)
Char.SetHeading(82@, 57.544)
Char.GiveWeapon(82@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(82@, 97@)
Char.SetHealth(82@, 50)
Char.PerformSequence(82@, 109@)
83@ = Char.Create(PedType.Mission1, 157, -1051.159, -1180.129, 127.5367)
Char.SetHeading(83@, 57.544)
Char.GiveWeapon(83@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(83@, 97@)
Char.SetHealth(83@, 50)
Char.PerformSequence(83@, 109@)
Car.CustomPlateForNextCar(478, "__HOM__")
87@ = Car.Create(478, -1049.0, -1296.0, 128.3)
Car.SetHeading(87@, 277.382)
84@ = Char.Create(PedType.Mission1, 162, -1049.19, -1291.94, 127.7206)
Char.SetHeading(84@, 57.544)
Char.GiveWeapon(84@, WeaponType.Rifle, 9999)
Char.SetDecisionMaker(84@, 97@)
Char.SetHealth(84@, 50)
Char.PerformSequence(84@, 109@)
Car.CustomPlateForNextCar(478, "__HOM__")
88@ = Car.Create(478, -1154.086, -1339.716, 126.61)
Car.SetHeading(88@, 272.428)
86@ = Char.CreateInsideCar(88@, PedType.Mission1, 157)
85@ = Char.Create(PedType.Mission1, 162, -1049.19, -1295.94, 0.0)
Char.SetDecisionMaker(85@, 97@)
Char.AttachToCar(85@, 88@, 0.0, -1.0, 0.9, 0, 360.0, WeaponType.Rifle)
Task.StayInSamePlace(85@, True)
Sequence.Clear(109@)
141@ = 2

:TRUTH1_10560
if 
  141@ == 2
goto_if_false @TRUTH1_10771
if 
  not Car.IsDead(34@)
goto_if_false @TRUTH1_10771
if 
  Car.Locate2D(34@, -1050.942, -1171.55, 15.0, 15.0, False)
goto_if_false @TRUTH1_10771
107@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.SmartFleeChar(-1, $scplayer, 30.0, 30000)
Sequence.Close(107@)
if 
  not Char.IsDead(80@)
goto_if_false @TRUTH1_10687
Char.PerformSequence(80@, 107@)

:TRUTH1_10687
if 
  not Char.IsDead(81@)
goto_if_false @TRUTH1_10711
Char.PerformSequence(81@, 107@)

:TRUTH1_10711
if 
  not Char.IsDead(82@)
goto_if_false @TRUTH1_10735
Char.PerformSequence(82@, 107@)

:TRUTH1_10735
if 
  not Char.IsDead(83@)
goto_if_false @TRUTH1_10759
Char.PerformSequence(83@, 107@)

:TRUTH1_10759
Sequence.Clear(107@)
141@ = 3

:TRUTH1_10771
if 
  141@ > 1
goto_if_false @TRUTH1_11120
if 
  142@ == 0
goto_if_false @TRUTH1_11120
if 
  Char.IsInArea2D($scplayer, -974.32, -1287.37, -1129.14, -1330.41, False)
goto_if_false @TRUTH1_11120
if 
  not Car.IsDead(88@)
goto_if_false @TRUTH1_10931
if 
  not Char.IsDead(86@)
goto_if_false @TRUTH1_10931
Car.SetForwardSpeed(88@, 30.0)
if 
  not Char.IsDead(85@)
goto_if_false @TRUTH1_10911
Task.KillCharOnFoot(85@, $scplayer)

:TRUTH1_10911
Task.CarMission(86@, 88@, 88@, CarMission.BlockPlayerFaraway, 30.0, DrivingMode.PloughThrough)

:TRUTH1_10931
143@ = 100
Streaming.MarkModelAsNoLongerNeeded(#KMB_MARIJUANA)
Streaming.MarkModelAsNoLongerNeeded(#SW_HAYBREAK02)
Object.MarkAsNoLongerNeeded(60@)
Object.MarkAsNoLongerNeeded(61@)
Object.MarkAsNoLongerNeeded(62@)
Object.MarkAsNoLongerNeeded(63@)
Object.MarkAsNoLongerNeeded(64@)
Object.MarkAsNoLongerNeeded(65@)
Object.MarkAsNoLongerNeeded(66@)
Object.MarkAsNoLongerNeeded(43@)
Object.MarkAsNoLongerNeeded(44@)
Object.MarkAsNoLongerNeeded(45@)
Object.MarkAsNoLongerNeeded(46@)
Object.MarkAsNoLongerNeeded(47@)
Object.MarkAsNoLongerNeeded(48@)
Char.MarkAsNoLongerNeeded(67@)
Char.MarkAsNoLongerNeeded(68@)
Char.MarkAsNoLongerNeeded(69@)
Char.MarkAsNoLongerNeeded(70@)
Char.MarkAsNoLongerNeeded(71@)
Char.MarkAsNoLongerNeeded(72@)
Char.MarkAsNoLongerNeeded(73@)
Char.MarkAsNoLongerNeeded(74@)
Char.MarkAsNoLongerNeeded(75@)
Char.MarkAsNoLongerNeeded(76@)
Char.MarkAsNoLongerNeeded(77@)
Char.MarkAsNoLongerNeeded(78@)
Char.MarkAsNoLongerNeeded(79@)
Car.MarkAsNoLongerNeeded(90@)
Char.MarkAsNoLongerNeeded(91@)
Char.MarkAsNoLongerNeeded(92@)
Char.MarkAsNoLongerNeeded(93@)
Char.MarkAsNoLongerNeeded(94@)
Char.MarkAsNoLongerNeeded(95@)
Char.MarkAsNoLongerNeeded(96@)
142@ = 1

:TRUTH1_11120
if 
  not Car.IsDead(34@)
goto_if_false @TRUTH1_11233
if 
  130@ == 0
goto_if_false @TRUTH1_11233
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @TRUTH1_11233
Car.MarkAsNoLongerNeeded(90@)
129@ = 1
Text.PrintNow('TRU1_5', 5000, 1)
Blip.Remove(116@)
116@ = Blip.AddForCoord(-1114.25, -1619.96, 76.68)
130@ = 1

:TRUTH1_11233
if 
  not Car.IsDead(34@)
goto_if_false @TRUTH1_11347
if 
  130@ == 1
goto_if_false @TRUTH1_11347
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @TRUTH1_11347
if 
  129@ <= 1
goto_if_false @TRUTH1_11347
Text.PrintNow('TRU1_7', 5000, 1)
Blip.Remove(116@)
116@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(116@, True)
130@ = 0

:TRUTH1_11347
if 
  129@ == 1
goto_if_false @TRUTH1_11539
if 
  130@ == 1
goto_if_false @TRUTH1_11539
if 
  not Car.IsDead(34@)
goto_if_false @TRUTH1_11539
if 
  Car.Locate3D(34@, -1100.007, -1620.949, 75.375, 5.0, 5.0, 5.0, True)
goto_if_false @TRUTH1_11539
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @TRUTH1_11539
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @TRUTH1_11490
$car = Char.StoreCarIsInNoSave($scplayer)

:TRUTH1_11490
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)

:TRUTH1_11504
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH1_11528
wait 0
goto @TRUTH1_11504

:TRUTH1_11528
Hud.SwitchWidescreen(True)
129@ = 2

:TRUTH1_11539
if 
  129@ == 2
goto_if_false @TRUTH1_12167
if 
  not Car.IsDead(34@)
goto_if_false @TRUTH1_12167
Car.MarkAsNoLongerNeeded(56@)
Car.Delete(56@)
Char.MarkAsNoLongerNeeded(57@)
Car.MarkAsNoLongerNeeded(58@)
Car.Delete(58@)
Char.MarkAsNoLongerNeeded(59@)
Car.MarkAsNoLongerNeeded(88@)
Char.MarkAsNoLongerNeeded(85@)
Char.MarkAsNoLongerNeeded(86@)
Streaming.MarkModelAsNoLongerNeeded(531)
Streaming.MarkModelAsNoLongerNeeded(#KMB_MARIJUANA)
Streaming.MarkModelAsNoLongerNeeded(#SW_HAYBREAK02)
Streaming.MarkModelAsNoLongerNeeded(357)
Streaming.MarkModelAsNoLongerNeeded(478)
Streaming.MarkModelAsNoLongerNeeded(337)
Streaming.LoadSpecialCharacter(1, 'TRUTH')
Streaming.RequestModel(424)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13816)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 13817)
Streaming.LoadAllModelsNow

:TRUTH1_11690
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
  not Streaming.HasModelLoaded(424)
goto_if_false @TRUTH1_11729
wait 0
goto @TRUTH1_11690

:TRUTH1_11729
TIMERA = 0
TIMERB = 0
World.ClearArea(-1100.007, -1620.949, 200.0, 200.0, True)
if 
  not Car.IsDead(34@)
goto_if_false @TRUTH1_11813
Car.SetCoordinates(34@, -1102.21, -1620.017, 77.345)
Car.SetHeading(34@, 90.738)

:TRUTH1_11813
if or
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @TRUTH1_11843
wait 0
goto @TRUTH1_11813

:TRUTH1_11843
56@ = Car.Create(424, -1074.53, -1643.624, 75.066)
Car.SetHeading(56@, 84.918)
89@ = Char.Create(PedType.Mission2, 290, -1088.84, -1623.997, 75.375)
Char.SetHeading(89@, 91.269)
Char.ShutUp(89@, True)
Char.SetProofs(89@, True, True, True, True, True)
Char.SetDecisionMaker(89@, 97@)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @TRUTH1_11994
Char.WarpFromCarToCoord($scplayer, -1098.84, -1623.997, 75.375)
Char.SetHeading($scplayer, 264.123)
goto @TRUTH1_12024

:TRUTH1_11994
Char.SetCoordinates($scplayer, -1098.84, -1623.997, 75.375)
Char.SetHeading($scplayer, 264.123)

:TRUTH1_12024
Camera.SetFixedPosition(-1087.733, -1625.124, 76.7194, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1088.662, -1624.758, 76.6608, SwitchType.JumpCut)
Blip.Remove(116@)
Camera.DoFade(1000, Fade.In)
if 
  not Char.IsDead(89@)
goto_if_false @TRUTH1_12128
Task.GoStraightToCoord(89@, -1093.189, -1624.021, 75.375, MoveState.Walk, 5000)

:TRUTH1_12128
Task.GoStraightToCoord($scplayer, -1094.931, -1623.946, 75.375, MoveState.Walk, 5000)
TIMERA = 0
129@ = 3

:TRUTH1_12167
if 
  129@ == 3
goto_if_false @TRUTH1_12406
if 
  not Char.IsDead(89@)
goto_if_false @TRUTH1_12406
if or
  TIMERA > 2500
  Char.LocateStoppedOnFoot2D(89@, -1093.189, -1624.021, 1.5, 1.5, False)
goto_if_false @TRUTH1_12406
Camera.SetFixedPosition(-1092.296, -1624.917, 76.9985, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1093.117, -1624.372, 76.8283, SwitchType.JumpCut)
Char.ClearTasksImmediately(89@)
Char.SetCoordinates(89@, -1093.189, -1624.021, 75.375)
Char.SetHeading(89@, 88.0345)
Char.SetCoordinates($scplayer, -1094.931, -1623.946, 75.375)
Char.SetHeading($scplayer, 264.123)
Task.PlayAnim(89@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
129@ = 4

:TRUTH1_12406
if 
  129@ == 4
goto_if_false @TRUTH1_12451
Text.PrintNow('TRU1_ZA', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
129@ = 5

:TRUTH1_12451
if 
  129@ == 5
goto_if_false @TRUTH1_12524
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_12524
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13818)
Text.PrintNow('TRU1_ZB', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
129@ = 6

:TRUTH1_12524
if 
  129@ == 6
goto_if_false @TRUTH1_12599
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @TRUTH1_12599
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_12599
Text.PrintNow('TRU1_ZC', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
129@ = 7

:TRUTH1_12599
if 
  129@ == 7
goto_if_false @TRUTH1_12719
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_12719
Text.ClearPrints
Task.GoStraightToCoord($scplayer, -1092.25, -1629.82, 76.0, MoveState.Walk, 5000)
wait 250
if 
  not Char.IsDead(89@)
goto_if_false @TRUTH1_12705
Task.GoStraightToCoord(89@, -1099.96, -1623.7, 76.4, MoveState.Walk, 5000)

:TRUTH1_12705
TIMERA = 0
129@ = 8

:TRUTH1_12719
if 
  129@ == 8
goto_if_false @TRUTH1_12912
if 
  TIMERA > 1000
goto_if_false @TRUTH1_12912
Camera.DoFade(1000, Fade.Out)

:TRUTH1_12763
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH1_12787
wait 0
goto @TRUTH1_12763

:TRUTH1_12787
Streaming.RequestModel(330)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 28200)
Streaming.LoadAllModelsNow

:TRUTH1_12801
if or
  not Streaming.HasModelLoaded(330)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @TRUTH1_12832
wait 0
goto @TRUTH1_12801

:TRUTH1_12832
Car.Delete(34@)
Char.Delete(89@)
Hud.SwitchWidescreen(False)
Char.SetCoordinates($scplayer, -1092.561, -1633.628, 75.37)
Char.SetHeading($scplayer, 273.438)
Camera.DoFade(1000, Fade.In)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
Player.SetControl($player1, True)
TIMERA = 0
129@ = 9

:TRUTH1_12912
if 
  129@ == 9
goto_if_false @TRUTH1_12974
if 
  TIMERA > 1000
goto_if_false @TRUTH1_12974
Task.UseMobilePhone($scplayer, True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
TIMERA = 0
129@ = 10

:TRUTH1_12974
if 
  129@ == 10
goto_if_false @TRUTH1_13032
if 
  TIMERA > 2000
goto_if_false @TRUTH1_13032
144@ = 1
145@ = 0
129@ = 11

:TRUTH1_13032
if 
  129@ == 11
goto_if_false @TRUTH1_14312
gosub @TRUTH1_15986
if 
  144@ == 1
goto_if_false @TRUTH1_13122
if 
  145@ == 0
goto_if_false @TRUTH1_13122
set_lvar_int_to_constant 113@ = 4705
set_lvar_text_label 114@s = 'MCES05A'
gosub @TRUTH1_15944

:TRUTH1_13122
if 
  144@ == 2
goto_if_false @TRUTH1_13187
if 
  145@ == 0
goto_if_false @TRUTH1_13187
set_lvar_int_to_constant 113@ = 4633
set_lvar_text_label 114@s = 'MCES05B'
gosub @TRUTH1_15944

:TRUTH1_13187
if 
  144@ == 3
goto_if_false @TRUTH1_13252
if 
  145@ == 0
goto_if_false @TRUTH1_13252
set_lvar_int_to_constant 113@ = 4706
set_lvar_text_label 114@s = 'MCES05C'
gosub @TRUTH1_15944

:TRUTH1_13252
if 
  144@ == 4
goto_if_false @TRUTH1_13317
if 
  145@ == 0
goto_if_false @TRUTH1_13317
set_lvar_int_to_constant 113@ = 4634
set_lvar_text_label 114@s = 'MCES05D'
gosub @TRUTH1_15944

:TRUTH1_13317
if 
  144@ == 5
goto_if_false @TRUTH1_13382
if 
  145@ == 0
goto_if_false @TRUTH1_13382
set_lvar_int_to_constant 113@ = 4707
set_lvar_text_label 114@s = 'MCES05E'
gosub @TRUTH1_15944

:TRUTH1_13382
if 
  144@ == 6
goto_if_false @TRUTH1_13447
if 
  145@ == 0
goto_if_false @TRUTH1_13447
set_lvar_int_to_constant 113@ = 4635
set_lvar_text_label 114@s = 'MCES05F'
gosub @TRUTH1_15944

:TRUTH1_13447
if 
  144@ == 7
goto_if_false @TRUTH1_13512
if 
  145@ == 0
goto_if_false @TRUTH1_13512
set_lvar_int_to_constant 113@ = 4636
set_lvar_text_label 114@s = 'MCES05G'
gosub @TRUTH1_15944

:TRUTH1_13512
if 
  144@ == 8
goto_if_false @TRUTH1_13577
if 
  145@ == 0
goto_if_false @TRUTH1_13577
set_lvar_int_to_constant 113@ = 4637
set_lvar_text_label 114@s = 'MCES05H'
gosub @TRUTH1_15944

:TRUTH1_13577
if 
  144@ == 9
goto_if_false @TRUTH1_13642
if 
  145@ == 0
goto_if_false @TRUTH1_13642
set_lvar_int_to_constant 113@ = 4708
set_lvar_text_label 114@s = 'MCES05J'
gosub @TRUTH1_15944

:TRUTH1_13642
if 
  144@ == 10
goto_if_false @TRUTH1_13707
if 
  145@ == 0
goto_if_false @TRUTH1_13707
set_lvar_int_to_constant 113@ = 4638
set_lvar_text_label 114@s = 'MCES05K'
gosub @TRUTH1_15944

:TRUTH1_13707
if 
  144@ == 11
goto_if_false @TRUTH1_13772
if 
  145@ == 0
goto_if_false @TRUTH1_13772
set_lvar_int_to_constant 113@ = 4639
set_lvar_text_label 114@s = 'MCES05L'
gosub @TRUTH1_15944

:TRUTH1_13772
if 
  144@ == 12
goto_if_false @TRUTH1_13837
if 
  145@ == 0
goto_if_false @TRUTH1_13837
set_lvar_int_to_constant 113@ = 4709
set_lvar_text_label 114@s = 'MCES05M'
gosub @TRUTH1_15944

:TRUTH1_13837
if 
  144@ == 13
goto_if_false @TRUTH1_13902
if 
  145@ == 0
goto_if_false @TRUTH1_13902
set_lvar_int_to_constant 113@ = 4710
set_lvar_text_label 114@s = 'MCES05N'
gosub @TRUTH1_15944

:TRUTH1_13902
if 
  144@ == 14
goto_if_false @TRUTH1_13967
if 
  145@ == 0
goto_if_false @TRUTH1_13967
set_lvar_int_to_constant 113@ = 4640
set_lvar_text_label 114@s = 'MCES05O'
gosub @TRUTH1_15944

:TRUTH1_13967
if 
  144@ == 15
goto_if_false @TRUTH1_14032
if 
  145@ == 0
goto_if_false @TRUTH1_14032
set_lvar_int_to_constant 113@ = 4711
set_lvar_text_label 114@s = 'MCES05P'
gosub @TRUTH1_15944

:TRUTH1_14032
if 
  144@ == 16
goto_if_false @TRUTH1_14097
if 
  145@ == 0
goto_if_false @TRUTH1_14097
set_lvar_int_to_constant 113@ = 4712
set_lvar_text_label 114@s = 'MCES05Q'
gosub @TRUTH1_15944

:TRUTH1_14097
if 
  144@ == 17
goto_if_false @TRUTH1_14162
if 
  145@ == 0
goto_if_false @TRUTH1_14162
set_lvar_int_to_constant 113@ = 4641
set_lvar_text_label 114@s = 'MCES05R'
gosub @TRUTH1_15944

:TRUTH1_14162
if 
  144@ == 18
goto_if_false @TRUTH1_14201
Task.UseMobilePhone($scplayer, False)
TIMERA = 0
144@ = 19

:TRUTH1_14201
if 
  144@ == 19
goto_if_false @TRUTH1_14252
if 
  TIMERA > 2000
goto_if_false @TRUTH1_14252
goto @TRUTH1_16375
144@ = 20

:TRUTH1_14252
if 
  146@ == 0
goto_if_false @TRUTH1_14312
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @TRUTH1_14312
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
145@ = 0
144@ = 18
146@ = 1

:TRUTH1_14312
if 
  117@ > 4
goto_if_false @TRUTH1_14387
if 
  Car.IsDead(34@)
goto_if_false @TRUTH1_14387
if 
  8 > 129@
goto_if_false @TRUTH1_14387
Text.PrintNow('TRU1_16', 5000, 1)
goto @TRUTH1_16357

:TRUTH1_14387
if 
  100 > 143@
goto_if_false @TRUTH1_15937
if 
  143@ == 1
goto_if_false @TRUTH1_14457
if 
  not Char.IsDead(49@)
goto_if_false @TRUTH1_14457
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13813)
143@ = 2

:TRUTH1_14457
if 
  143@ == 2
goto_if_false @TRUTH1_14540
if 
  not Char.IsDead(49@)
goto_if_false @TRUTH1_14540
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_14540
Char.ShutUp(49@, True)
Text.PrintNow('TRU1_DF', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
143@ = 3

:TRUTH1_14540
if 
  143@ == 3
goto_if_false @TRUTH1_14582
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_14582
Text.ClearPrints
143@ = 4

:TRUTH1_14582
if 
  143@ == 4
goto_if_false @TRUTH1_14634
if 
  not Char.IsDead(49@)
goto_if_false @TRUTH1_14634
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13814)
143@ = 5

:TRUTH1_14634
if 
  143@ == 5
goto_if_false @TRUTH1_14717
if 
  not Char.IsDead(49@)
goto_if_false @TRUTH1_14717
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_14717
Text.PrintNow('TRU1_DG', 4000, 1)
Audio.AttachMissionAudioToChar(MissionAudioSlot.Slot1, 49@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
143@ = 6

:TRUTH1_14717
if 
  143@ == 6
goto_if_false @TRUTH1_14782
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_14782
Text.ClearPrints
if 
  not Char.IsDead(49@)
goto_if_false @TRUTH1_14775
Char.ShutUp(49@, False)

:TRUTH1_14775
143@ = 7

:TRUTH1_14782
if 
  143@ == 8
goto_if_false @TRUTH1_14834
if 
  not Char.IsDead(59@)
goto_if_false @TRUTH1_14834
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13822)
143@ = 9

:TRUTH1_14834
if 
  143@ == 9
goto_if_false @TRUTH1_14917
if 
  not Char.IsDead(59@)
goto_if_false @TRUTH1_14917
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_14917
Text.PrintNow('TRU1_FD', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Char.ShutUp(59@, True)
143@ = 10

:TRUTH1_14917
if 
  143@ == 10
goto_if_false @TRUTH1_14982
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_14982
Text.ClearPrints
if 
  not Char.IsDead(59@)
goto_if_false @TRUTH1_14975
Char.ShutUp(59@, False)

:TRUTH1_14975
143@ = 11

:TRUTH1_14982
if 
  143@ == 12
goto_if_false @TRUTH1_15049
if 
  not Char.IsDead(52@)
goto_if_false @TRUTH1_15049
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_15049
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13819)
143@ = 13

:TRUTH1_15049
if 
  143@ == 13
goto_if_false @TRUTH1_15125
if 
  not Char.IsDead(52@)
goto_if_false @TRUTH1_15125
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_15125
Text.PrintNow('TRU1_FA', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
143@ = 14

:TRUTH1_15125
if 
  143@ == 14
goto_if_false @TRUTH1_15167
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_15167
Text.ClearPrints
143@ = 15

:TRUTH1_15167
if 
  143@ == 15
goto_if_false @TRUTH1_15226
if 
  not Char.IsDead(53@)
goto_if_false @TRUTH1_15226
Char.ShutUp(53@, True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13836)
143@ = 16

:TRUTH1_15226
if 
  143@ == 16
goto_if_false @TRUTH1_15302
if 
  not Char.IsDead(53@)
goto_if_false @TRUTH1_15302
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_15302
Text.PrintNow('TRU1_AB', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
143@ = 17

:TRUTH1_15302
if 
  143@ == 17
goto_if_false @TRUTH1_15344
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_15344
Text.ClearPrints
143@ = 18

:TRUTH1_15344
if 
  143@ == 18
goto_if_false @TRUTH1_15396
if 
  not Char.IsDead(53@)
goto_if_false @TRUTH1_15396
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13838)
143@ = 19

:TRUTH1_15396
if 
  143@ == 19
goto_if_false @TRUTH1_15472
if 
  not Char.IsDead(53@)
goto_if_false @TRUTH1_15472
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_15472
Text.PrintNow('TRU1_AD', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
143@ = 20

:TRUTH1_15472
if 
  143@ == 21
goto_if_false @TRUTH1_15537
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_15537
Text.ClearPrints
if 
  not Char.IsDead(53@)
goto_if_false @TRUTH1_15530
Char.ShutUp(53@, False)

:TRUTH1_15530
143@ = 22

:TRUTH1_15537
if 
  143@ == 23
goto_if_false @TRUTH1_15589
if 
  not Char.IsDead(38@)
goto_if_false @TRUTH1_15589
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13812)
143@ = 24

:TRUTH1_15589
if 
  143@ == 24
goto_if_false @TRUTH1_15672
if 
  not Char.IsDead(38@)
goto_if_false @TRUTH1_15672
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_15672
Char.ShutUp(38@, True)
Text.PrintNow('TRU1_DE', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
143@ = 25

:TRUTH1_15672
if 
  143@ == 26
goto_if_false @TRUTH1_15737
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_15737
Text.ClearPrints
if 
  not Char.IsDead(38@)
goto_if_false @TRUTH1_15730
Char.ShutUp(38@, False)

:TRUTH1_15730
143@ = 27

:TRUTH1_15737
if 
  143@ == 28
goto_if_false @TRUTH1_15789
if 
  not Char.IsDead(68@)
goto_if_false @TRUTH1_15789
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13837)
143@ = 29

:TRUTH1_15789
if 
  143@ == 29
goto_if_false @TRUTH1_15872
if 
  not Char.IsDead(68@)
goto_if_false @TRUTH1_15872
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_15872
Char.ShutUp(68@, True)
Text.PrintNow('TRU1_AC', 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
143@ = 30

:TRUTH1_15872
if 
  143@ == 30
goto_if_false @TRUTH1_15937
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_15937
Text.ClearPrints
if 
  not Char.IsDead(68@)
goto_if_false @TRUTH1_15930
Char.ShutUp(68@, False)

:TRUTH1_15930
143@ = 31

:TRUTH1_15937
goto @TRUTH1_935

:TRUTH1_15944
if 
  145@ == 0
goto_if_false @TRUTH1_15984
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 113@)
set_lvar_text_label 111@s = 114@s
145@ = 1

:TRUTH1_15984
return 

:TRUTH1_15986
if 
  145@ == 1
goto_if_false @TRUTH1_16040
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_16040
Text.PrintNow(111@s, 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
145@ = 2

:TRUTH1_16040
if 
  145@ == 2
goto_if_false @TRUTH1_16093
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @TRUTH1_16093
144@ += 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
145@ = 0

:TRUTH1_16093
return 

:TRUTH1_16095
108@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.GoStraightToCoord(-1, 103@, 104@, 105@, MoveState.Run, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(108@)
Char.PerformSequence(102@, 108@)
Sequence.Clear(108@)
return 

:TRUTH1_16156
99@ = Sequence.Open()
Task.CarDriveToCoord(-1, 34@, -1025.67, -1029.39, 130.5, 6.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(-1, 34@, -1154.06, -1041.32, 130.5, 6.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(-1, 34@, -1166.82, -941.32, 130.21, 6.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(-1, 34@, -1031.46, -935.51, 130.19, 6.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Sequence.Close(99@)
Char.PerformSequence(38@, 99@)
Sequence.Clear(99@)
return 

:TRUTH1_16313
100@ = Sequence.Open()
Task.CarMission(-1, 101@, 101@, CarMission.RamPlayerFaraway, 20.0, DrivingMode.PloughThrough)
Sequence.Close(100@)
Char.PerformSequence(102@, 100@)
Sequence.Clear(100@)
return 

:TRUTH1_16357
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:TRUTH1_16375
Blip.Remove($bcrash_contact_blip)
$bcrash_contact_blip = Blip.AddSpriteForContactPoint($bcrashX, $bcrashY, $bcrashZ, $cesar_blip_icon)
CarGenerator.Switch($2864, 101)
CarGenerator.Switch($iFieldHarvester, 101)
CarGenerator.Switch($2866, 101)
CarGenerator.Switch($2867, 101)
CarGenerator.Switch($2868, 101)
CarGenerator.Switch($2869, 101)
CarGenerator.Switch($2870, 101)
CarGenerator.Switch($2871, 101)
Stat.RegisterMissionPassed('TRUTH_1')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSR', 5, 5000, TextStyle.Middle)
Audio.PlayMissionPassedTune(1)
Stat.AwardPlayerMissionRespect(5)
Player.ClearWantedLevel($player1)
$flag_truth_mission_counter += 1
Blip.Remove($truth_contact_blip)
return 

:TRUTH1_16513
$onmission = 0
Streaming.MarkModelAsNoLongerNeeded(532)
Streaming.MarkModelAsNoLongerNeeded(531)
Streaming.MarkModelAsNoLongerNeeded(#KMB_MARIJUANA)
Streaming.MarkModelAsNoLongerNeeded(#SW_HAYBREAK02)
Streaming.MarkModelAsNoLongerNeeded(357)
Streaming.MarkModelAsNoLongerNeeded(478)
Streaming.MarkModelAsNoLongerNeeded(157)
Streaming.MarkModelAsNoLongerNeeded(160)
Streaming.MarkModelAsNoLongerNeeded(162)
Streaming.MarkModelAsNoLongerNeeded(424)
Streaming.MarkModelAsNoLongerNeeded(337)
Streaming.UnloadSpecialCharacter(1)
Blip.Remove(116@)
Car.MarkAsNoLongerNeeded(56@)
Game.SetWantedMultiplier(1.0)
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

//-------------Mission 47---------------
// Originally: Are you going to San Fierro?

:TRUTH2
script_name 'TRUTH2'
gosub @TRUTH2_47
if 
  has_deatharrest_been_executed 
goto_if_false @TRUTH2_38
gosub @TRUTH2_11910

:TRUTH2_38
gosub @TRUTH2_12153
terminate_this_script 

:TRUTH2_47
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('TRU2')
if 
  $onmission == 0
goto_if_false @TRUTH2_159
42@ = Blip.AddForCoord(-1111.7, -1622.7, 76.4)
41@ = Pickup.CreateWithAmmo(359, PickupType.Once, 10, -1100.3, -1640.4, 76.4)
40@ = Pickup.CreateWithAmmo(359, PickupType.Once, 10, -1100.3, -1640.4, 76.4)

:TRUTH2_159
Text.ClearPrints
wait 0
$t2_total_weed_burnt = 331000
87@ = 0
88@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
$recordflag = 44
135@ = 0
136@ = 0
148@ = 0
149@ = 0
137@ = 0
138@ = 0.0
139@ = 0.0
140@ = 0.0
141@ = 0.0
142@ = 0.0
143@ = 0.0
144@ = 0
145@ = 0
146@ = 0
147@ = 44
151@ = 0
152@ = 0
153@ = 0
202@ = 0
203@ = 0
204@ = 0
205@ = 0
206@ = 0
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0
150@ = 0
213@ = 0
214@ = 0
212@ = 0
Player.MakeGangDisappear
World.ClearArea(-1110.2, -1638.5, 76.0, 20.0, True)
Cutscene.Load('TRUTH_2')

:TRUTH2_797
if 
  not Cutscene.HasLoaded
goto_if_false @TRUTH2_821
wait 0
goto @TRUTH2_797

:TRUTH2_821
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:TRUTH2_830
if 
  not Cutscene.HasFinished
goto_if_false @TRUTH2_854
wait 0
goto @TRUTH2_830

:TRUTH2_854
Camera.DoFade(0, Fade.Out)

:TRUTH2_860
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH2_884
wait 0
goto @TRUTH2_860

:TRUTH2_884
Cutscene.Clear
Player.SetControl($player1, False)
Player.MakeGangReappear
Camera.SetFadingColor(0, 0, 0)
wait 0
Streaming.RequestModel(483)
Streaming.RequestModel(543)
Streaming.RequestModel(497)
Streaming.RequestModel(283)
Streaming.RequestModel(361)
Streaming.RequestModel(346)
Streaming.LoadSpecialCharacter(1, 'TRUTH')
Streaming.RemoveIpl("TRUTHSFARM")
Streaming.RequestIpl("TRUTHSFARM")
Streaming.LoadAllModelsNow
Game.SetMaxFireGenerations(2)
World.ClearArea(-913.3, -1720.5, 76.6, 300.0, True)
216@ = DecisionMakerChar.Copy(65542)
World.ClearArea(-913.3, -1720.5, 76.6, 1.0, True)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -913.3, -1720.5, 76.6)
Char.GiveWeapon($scplayer, WeaponType.Flamethrower, 3000)
World.ClearArea(-1079.404, -1640.694, 75.375, 20.0, True)
$truth = Char.Create(PedType.Mission1, 290, -1079.404, -1640.694, 75.375)
Char.SetDropsWeaponsWhenDead($truth, False)
Char.SetGetOutUpsideDownCar($truth, False)
Char.SetDecisionMaker($truth, 216@)
Char.SetHeading($truth, 299.7411)
Char.GiveWeapon($truth, WeaponType.Flamethrower, 3000)
Char.SetNeverTargeted($truth, True)
Char.SetCantBeDraggedOut($truth, True)
215@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1070.1, -1636.5, 75.4, MoveState.Run, -1)
Task.ShootAtCoord(-1, -1062.2, -1631.1, 75.3, -1)
Sequence.Close(215@)
Char.PerformSequence($truth, 215@)
Sequence.Clear(215@)
World.ClearArea(-1077.6, -1650.2, 75.3, 20.0, True)
Car.CustomPlateForNextCar(483, "OUTTHERE")
34@ = Car.Create(483, -1077.6, -1650.2, 75.3)
Car.ChangeColor(34@, 1, 1)
Car.GivePaintjob(34@, 0)
Car.SetCanRespray(34@, False)
Car.LockDoors(34@, CarLock.LockoutPlayerOnly)
Car.SetTraction(34@, 2.0)
Car.SetHeading(34@, 256.4)
Car.FreezePosition(34@, True)
Car.SetProofs(34@, False, False, True, False, False)
World.ClearArea(-946.6, -1735.0, 76.9, 5.0, True)
39@ = Car.Create(543, -946.6, -1735.0, 76.9)
Car.SetHeading(39@, 1.4)
Car.SetProofs(39@, False, False, True, False, False)
World.ClearArea(-918.5, -1751.1, 97.3, 5.0, True)
35@ = Car.Create(497, -918.5, -1751.1, 97.3)
Heli.SetBladesFullSpeed(35@)
36@ = Char.CreateInsideCar(35@, PedType.Mission1, 283)
38@ = Searchlight.CreateOnVehicle(35@, 0.0, 0.0, -1.0, -936.6, -1723.2, 76.8, 6.0, 1.0)
Searchlight.PointAtChar(38@, $truth, 10.0)
Heli.FollowEntity(35@, $truth, -1, 20.0)
Car.LockDoors(35@, CarLock.Locked)
Char.SetCanBeShotInVehicle(36@, False)
Char.SetDecisionMaker(36@, 216@)
43@ = Blip.AddForCoord(-1062.1, -1631.7, 75.3)
Blip.ChangeScale(43@, 1)
Blip.SetCoordAppearance(43@, 2)
44@ = Blip.AddForCoord(-1052.3, -1631.7, 75.3)
Blip.ChangeScale(44@, 1)
Blip.SetCoordAppearance(44@, 2)
45@ = Blip.AddForCoord(-1042.4, -1631.7, 75.3)
Blip.ChangeScale(45@, 1)
Blip.SetCoordAppearance(45@, 2)
46@ = Blip.AddForCoord(-1032.6, -1631.7, 75.3)
Blip.ChangeScale(46@, 1)
Blip.SetCoordAppearance(46@, 2)
47@ = Blip.AddForCoord(-1023.1, -1631.7, 75.3)
Blip.ChangeScale(47@, 1)
Blip.SetCoordAppearance(47@, 2)
48@ = Blip.AddForCoord(-1062.1, -1622.2, 75.3)
Blip.ChangeScale(48@, 1)
Blip.SetCoordAppearance(48@, 2)
49@ = Blip.AddForCoord(-1052.3, -1622.2, 75.3)
Blip.ChangeScale(49@, 1)
Blip.SetCoordAppearance(49@, 2)
50@ = Blip.AddForCoord(-1042.4, -1622.2, 75.3)
Blip.ChangeScale(50@, 1)
Blip.SetCoordAppearance(50@, 2)
51@ = Blip.AddForCoord(-1032.6, -1622.2, 75.3)
Blip.ChangeScale(51@, 1)
Blip.SetCoordAppearance(51@, 2)
52@ = Blip.AddForCoord(-1023.1, -1622.2, 75.3)
Blip.ChangeScale(52@, 1)
Blip.SetCoordAppearance(52@, 2)
53@ = Blip.AddForCoord(-991.92, -1703.1, 75.3)
Blip.ChangeScale(53@, 1)
Blip.SetCoordAppearance(53@, 2)
54@ = Blip.AddForCoord(-982.38, -1703.1, 75.3)
Blip.ChangeScale(54@, 1)
Blip.SetCoordAppearance(54@, 2)
55@ = Blip.AddForCoord(-991.92, -1693.6, 75.3)
Blip.ChangeScale(55@, 1)
Blip.SetCoordAppearance(55@, 2)
56@ = Blip.AddForCoord(-982.38, -1693.6, 75.3)
Blip.ChangeScale(56@, 1)
Blip.SetCoordAppearance(56@, 2)
57@ = Blip.AddForCoord(-991.92, -1684.1, 75.3)
Blip.ChangeScale(57@, 1)
Blip.SetCoordAppearance(57@, 2)
58@ = Blip.AddForCoord(-982.38, -1684.1, 75.3)
Blip.ChangeScale(58@, 1)
Blip.SetCoordAppearance(58@, 2)
59@ = Blip.AddForCoord(-1011.8, -1667.6, 75.3)
Blip.ChangeScale(59@, 1)
Blip.SetCoordAppearance(59@, 2)
60@ = Blip.AddForCoord(-1011.8, -1658.1, 75.3)
Blip.ChangeScale(60@, 1)
Blip.SetCoordAppearance(60@, 2)
61@ = Blip.AddForCoord(-1011.8, -1648.7, 75.3)
Blip.ChangeScale(61@, 1)
Blip.SetCoordAppearance(61@, 2)
62@ = Blip.AddForCoord(-1000.7, -1667.6, 75.3)
Blip.ChangeScale(62@, 1)
Blip.SetCoordAppearance(62@, 2)
63@ = Blip.AddForCoord(-1000.7, -1658.1, 75.3)
Blip.ChangeScale(63@, 1)
Blip.SetCoordAppearance(63@, 2)
64@ = Blip.AddForCoord(-1000.7, -1648.7, 75.3)
Blip.ChangeScale(64@, 1)
Blip.SetCoordAppearance(64@, 2)
65@ = Blip.AddForCoord(-1011.8, -1672.3, 75.3)
Blip.ChangeScale(65@, 1)
Blip.SetCoordAppearance(65@, 2)
66@ = Blip.AddForCoord(-991.92, -1688.8, 75.3)
Blip.ChangeScale(66@, 1)
Blip.SetCoordAppearance(66@, 2)
67@ = Blip.AddForCoord(-982.38, -1688.8, 75.3)
Blip.ChangeScale(67@, 1)
Blip.SetCoordAppearance(67@, 2)
68@ = Blip.AddForCoord(-982.38, -1698.2, 75.3)
Blip.ChangeScale(68@, 1)
Blip.SetCoordAppearance(68@, 2)
69@ = Blip.AddForCoord(-991.92, -1698.2, 75.3)
Blip.ChangeScale(69@, 1)
Blip.SetCoordAppearance(69@, 2)
70@ = Blip.AddForCoord(-982.38, -1707.7, 75.3)
Blip.ChangeScale(70@, 1)
Blip.SetCoordAppearance(70@, 2)
71@ = Blip.AddForCoord(-1011.8, -1662.8, 75.3)
Blip.ChangeScale(71@, 1)
Blip.SetCoordAppearance(71@, 2)
72@ = Blip.AddForCoord(-1000.7, -1672.3, 75.3)
Blip.ChangeScale(72@, 1)
Blip.SetCoordAppearance(72@, 2)
73@ = Blip.AddForCoord(-1011.8, -1653.4, 75.3)
Blip.ChangeScale(73@, 1)
Blip.SetCoordAppearance(73@, 2)
74@ = Blip.AddForCoord(-1032.6, -1636.3, 75.3)
Blip.ChangeScale(74@, 1)
Blip.SetCoordAppearance(74@, 2)
75@ = Blip.AddForCoord(-1052.3, -1636.3, 75.3)
Blip.ChangeScale(75@, 1)
Blip.SetCoordAppearance(75@, 2)
76@ = Blip.AddForCoord(-1042.4, -1636.3, 75.3)
Blip.ChangeScale(76@, 1)
Blip.SetCoordAppearance(76@, 2)
77@ = Blip.AddForCoord(-1062.1, -1626.8, 75.3)
Blip.ChangeScale(77@, 1)
Blip.SetCoordAppearance(77@, 2)
78@ = Blip.AddForCoord(-991.92, -1707.7, 75.3)
Blip.ChangeScale(78@, 1)
Blip.SetCoordAppearance(78@, 2)
79@ = Blip.AddForCoord(-1023.1, -1626.8, 75.3)
Blip.ChangeScale(79@, 1)
Blip.SetCoordAppearance(79@, 2)
80@ = Blip.AddForCoord(-1000.7, -1662.8, 75.3)
Blip.ChangeScale(80@, 1)
Blip.SetCoordAppearance(80@, 2)
81@ = Blip.AddForCoord(-1000.7, -1653.4, 75.3)
Blip.ChangeScale(81@, 1)
Blip.SetCoordAppearance(81@, 2)
82@ = Blip.AddForCoord(-1032.6, -1626.8, 75.3)
Blip.ChangeScale(82@, 1)
Blip.SetCoordAppearance(82@, 2)
83@ = Blip.AddForCoord(-1042.4, -1626.8, 75.3)
Blip.ChangeScale(83@, 1)
Blip.SetCoordAppearance(83@, 2)
84@ = Blip.AddForCoord(-1052.3, -1626.8, 75.3)
Blip.ChangeScale(84@, 1)
Blip.SetCoordAppearance(84@, 2)
85@ = Blip.AddForCoord(-1062.1, -1636.3, 75.3)
Blip.ChangeScale(85@, 1)
Blip.SetCoordAppearance(85@, 2)
86@ = Blip.AddForCoord(-1023.1, -1636.3, 75.3)
Blip.ChangeScale(86@, 1)
Blip.SetCoordAppearance(86@, 2)
Hud.DisplayTimerWithString($t2_total_weed_burnt, TimerDirection.Down, 'TRU2_06')
Char.SetCoordinates($scplayer, -1089.9, -1644.1, 75.4)
Char.SetHeading($scplayer, 283.3)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Camera.DoFade(500, Fade.In)
Text.Print('TRU2_01', 7000, 1)
Text.Print('TRU2_02', 7000, 1)
TIMERA = 0
TIMERB = 0

:TRUTH2_3224
wait 0
gosub @TRUTH2_14570
Player.ClearWantedLevel($player1)
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @TRUTH2_3262
goto @TRUTH2_11942

:TRUTH2_3262
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_3294
goto @TRUTH2_11910

:TRUTH2_3294
if 
  87@ == 0
goto_if_false @TRUTH2_7881
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @TRUTH2_3388
151@ = 0
if 
  88@ == 0
goto_if_false @TRUTH2_3361
Text.ClearPrints
88@ = 1

:TRUTH2_3361
Char.SetCoordinates($scplayer, -1104.7, -1648.0, 75.4)
$recordflag = 0

:TRUTH2_3388
if 
  88@ == 0
goto_if_false @TRUTH2_3461
if 
  20 > $recordflag
goto_if_false @TRUTH2_3461
Text.ClearPrints
151@ = 1
152@ = 0
gosub @TRUTH2_14975
88@ = 1
TIMERA = 0

:TRUTH2_3461
if 
  88@ == 1
goto_if_false @TRUTH2_3514
if 
  151@ == 0
goto_if_false @TRUTH2_3514
Task.EnterCarAsDriver($truth, 34@, -1)
88@ = 2

:TRUTH2_3514
gosub @TRUTH2_12789
if 
  91@ == 0
goto_if_false @TRUTH2_3618
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1062.1, -1631.7, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_3618
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(43@)
$recordflag -= 1
91@ = 1

:TRUTH2_3618
if 
  92@ == 0
goto_if_false @TRUTH2_3715
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1052.3, -1631.7, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_3715
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(44@)
$recordflag -= 1
92@ = 1

:TRUTH2_3715
if 
  93@ == 0
goto_if_false @TRUTH2_3812
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1042.4, -1631.7, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_3812
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(45@)
$recordflag -= 1
93@ = 1

:TRUTH2_3812
if 
  94@ == 0
goto_if_false @TRUTH2_3909
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1032.6, -1631.7, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_3909
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(46@)
$recordflag -= 1
94@ = 1

:TRUTH2_3909
if 
  95@ == 0
goto_if_false @TRUTH2_4006
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1023.1, -1631.7, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_4006
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(47@)
$recordflag -= 1
95@ = 1

:TRUTH2_4006
if 
  96@ == 0
goto_if_false @TRUTH2_4103
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1062.1, -1622.2, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_4103
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(48@)
$recordflag -= 1
96@ = 1

:TRUTH2_4103
if 
  97@ == 0
goto_if_false @TRUTH2_4200
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1052.3, -1622.2, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_4200
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(49@)
$recordflag -= 1
97@ = 1

:TRUTH2_4200
if 
  98@ == 0
goto_if_false @TRUTH2_4297
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1042.4, -1622.2, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_4297
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(50@)
$recordflag -= 1
98@ = 1

:TRUTH2_4297
if 
  99@ == 0
goto_if_false @TRUTH2_4394
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1032.6, -1622.2, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_4394
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(51@)
$recordflag -= 1
99@ = 1

:TRUTH2_4394
if 
  100@ == 0
goto_if_false @TRUTH2_4491
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1023.1, -1622.2, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_4491
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(52@)
$recordflag -= 1
100@ = 1

:TRUTH2_4491
if 
  101@ == 0
goto_if_false @TRUTH2_4588
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-991.92, -1703.1, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_4588
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(53@)
$recordflag -= 1
101@ = 1

:TRUTH2_4588
if 
  102@ == 0
goto_if_false @TRUTH2_4685
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-982.38, -1703.1, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_4685
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(54@)
$recordflag -= 1
102@ = 1

:TRUTH2_4685
if 
  103@ == 0
goto_if_false @TRUTH2_4782
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-991.92, -1693.6, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_4782
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(55@)
$recordflag -= 1
103@ = 1

:TRUTH2_4782
if 
  104@ == 0
goto_if_false @TRUTH2_4879
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-982.38, -1693.6, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_4879
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(56@)
$recordflag -= 1
104@ = 1

:TRUTH2_4879
if 
  105@ == 0
goto_if_false @TRUTH2_4976
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-991.92, -1684.1, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_4976
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(57@)
$recordflag -= 1
105@ = 1

:TRUTH2_4976
if 
  106@ == 0
goto_if_false @TRUTH2_5073
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-982.38, -1684.1, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_5073
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(58@)
$recordflag -= 1
106@ = 1

:TRUTH2_5073
if 
  107@ == 0
goto_if_false @TRUTH2_5170
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1011.8, -1667.6, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_5170
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(59@)
$recordflag -= 1
107@ = 1

:TRUTH2_5170
if 
  108@ == 0
goto_if_false @TRUTH2_5267
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1011.8, -1658.1, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_5267
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(60@)
$recordflag -= 1
108@ = 1

:TRUTH2_5267
if 
  109@ == 0
goto_if_false @TRUTH2_5364
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1011.8, -1648.7, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_5364
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(61@)
$recordflag -= 1
109@ = 1

:TRUTH2_5364
if 
  110@ == 0
goto_if_false @TRUTH2_5461
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1000.7, -1667.6, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_5461
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(62@)
$recordflag -= 1
110@ = 1

:TRUTH2_5461
if 
  111@ == 0
goto_if_false @TRUTH2_5558
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1000.7, -1658.1, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_5558
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(63@)
$recordflag -= 1
111@ = 1

:TRUTH2_5558
if 
  112@ == 0
goto_if_false @TRUTH2_5655
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1000.7, -1648.7, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_5655
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(64@)
$recordflag -= 1
112@ = 1

:TRUTH2_5655
if 
  113@ == 0
goto_if_false @TRUTH2_5752
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1011.8, -1672.3, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_5752
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(65@)
$recordflag -= 1
113@ = 1

:TRUTH2_5752
if 
  114@ == 0
goto_if_false @TRUTH2_5849
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-991.92, -1688.8, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_5849
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(66@)
$recordflag -= 1
114@ = 1

:TRUTH2_5849
if 
  115@ == 0
goto_if_false @TRUTH2_5946
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-982.38, -1688.8, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_5946
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(67@)
$recordflag -= 1
115@ = 1

:TRUTH2_5946
if 
  116@ == 0
goto_if_false @TRUTH2_6043
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-982.38, -1698.2, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_6043
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(68@)
$recordflag -= 1
116@ = 1

:TRUTH2_6043
if 
  117@ == 0
goto_if_false @TRUTH2_6140
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-991.92, -1698.2, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_6140
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(69@)
$recordflag -= 1
117@ = 1

:TRUTH2_6140
if 
  118@ == 0
goto_if_false @TRUTH2_6237
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-982.38, -1707.7, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_6237
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(70@)
$recordflag -= 1
118@ = 1

:TRUTH2_6237
if 
  119@ == 0
goto_if_false @TRUTH2_6334
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1011.8, -1662.8, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_6334
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(71@)
$recordflag -= 1
119@ = 1

:TRUTH2_6334
if 
  120@ == 0
goto_if_false @TRUTH2_6431
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1000.7, -1672.3, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_6431
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(72@)
$recordflag -= 1
120@ = 1

:TRUTH2_6431
if 
  121@ == 0
goto_if_false @TRUTH2_6528
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1011.8, -1653.4, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_6528
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(73@)
$recordflag -= 1
121@ = 1

:TRUTH2_6528
if 
  122@ == 0
goto_if_false @TRUTH2_6625
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1032.6, -1636.3, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_6625
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(74@)
$recordflag -= 1
122@ = 1

:TRUTH2_6625
if 
  123@ == 0
goto_if_false @TRUTH2_6722
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1052.3, -1636.3, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_6722
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(75@)
$recordflag -= 1
123@ = 1

:TRUTH2_6722
if 
  124@ == 0
goto_if_false @TRUTH2_6819
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1042.4, -1636.3, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_6819
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(76@)
$recordflag -= 1
124@ = 1

:TRUTH2_6819
if 
  125@ == 0
goto_if_false @TRUTH2_6916
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1062.1, -1626.8, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_6916
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(77@)
$recordflag -= 1
125@ = 1

:TRUTH2_6916
if 
  126@ == 0
goto_if_false @TRUTH2_7013
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-991.92, -1707.7, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_7013
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(78@)
$recordflag -= 1
126@ = 1

:TRUTH2_7013
if 
  127@ == 0
goto_if_false @TRUTH2_7110
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1023.1, -1626.8, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_7110
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(79@)
$recordflag -= 1
127@ = 1

:TRUTH2_7110
if 
  128@ == 0
goto_if_false @TRUTH2_7207
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1000.7, -1662.8, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_7207
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(80@)
$recordflag -= 1
128@ = 1

:TRUTH2_7207
if 
  129@ == 0
goto_if_false @TRUTH2_7304
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1000.7, -1653.4, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_7304
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(81@)
$recordflag -= 1
129@ = 1

:TRUTH2_7304
if 
  130@ == 0
goto_if_false @TRUTH2_7401
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1032.6, -1626.8, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_7401
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(82@)
$recordflag -= 1
130@ = 1

:TRUTH2_7401
if 
  131@ == 0
goto_if_false @TRUTH2_7498
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1042.4, -1626.8, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_7498
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(83@)
$recordflag -= 1
131@ = 1

:TRUTH2_7498
if 
  132@ == 0
goto_if_false @TRUTH2_7595
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1052.3, -1626.8, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_7595
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(84@)
$recordflag -= 1
132@ = 1

:TRUTH2_7595
if 
  133@ == 0
goto_if_false @TRUTH2_7692
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1062.1, -1636.3, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_7692
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(85@)
$recordflag -= 1
133@ = 1

:TRUTH2_7692
if 
  134@ == 0
goto_if_false @TRUTH2_7789
if 
  World.IsClosestObjectOfTypeSmashedOrDamaged(-1023.1, -1636.3, 75.3, 1.0, #GRASSPLANT, False, True)
goto_if_false @TRUTH2_7789
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(86@)
$recordflag -= 1
134@ = 1

:TRUTH2_7789
if 
  $recordflag == 0
goto_if_false @TRUTH2_7881
Streaming.MarkModelAsNoLongerNeeded(361)
Blip.Remove(42@)
42@ = Blip.AddForCoord(-1075.5, -1648.5, 75.1)
Blip.SetCoordAppearance(42@, 1)
Text.Print('TRU2_14', 11000, 1)
144@ = 0
88@ = 0
87@ = 1

:TRUTH2_7881
if 
  87@ == 1
goto_if_false @TRUTH2_9383
if 
  88@ == 0
goto_if_false @TRUTH2_8279
if 
  not Car.IsDead(35@)
goto_if_false @TRUTH2_8231
if 
  Char.LocateStoppedOnFoot3D($scplayer, -1075.5, -1648.0, 75.1, 1.2, 1.2, 2.0, True)
goto_if_false @TRUTH2_8224
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
151@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Game.ShutAllCharsUp(True)
Player.SetDrunkenness($player1, 0)
Pickup.Remove(40@)
Hud.FreezeTimer(True)
Streaming.RequestModel(359)
Streaming.LoadAllModelsNow
World.ClearArea(-1075.5, -1648.0, 75.1, 5.0, True)
Char.SetCoordinates($scplayer, -1075.5, -1648.0, 75.1)
Char.SetHeading($scplayer, 157.1)
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 6.0, True, False, False, False, 4000)
Camera.SetFixedPosition(-1071.3, -1647.8, 75.4, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1078.8, -1648.8, 76.3, SwitchType.JumpCut)
Text.ClearPrints
89@ = 1
skip_cutscene_start_internal @TRUTH2_8545
151@ = 8
152@ = 0
gosub @TRUTH2_14975
88@ = 1

:TRUTH2_8224
goto @TRUTH2_8279

:TRUTH2_8231
Car.FreezePosition(34@, False)
Task.CarDriveToCoord($truth, 34@, -939.5, -1718.8, 76.7, 10.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
88@ = 5

:TRUTH2_8279
if 
  88@ == 1
goto_if_false @TRUTH2_8351
if 
  151@ == 0
goto_if_false @TRUTH2_8351
Char.ClearTasks($scplayer)
Task.GoStraightToCoord($scplayer, -1081.4, -1650.3, 75.4, MoveState.Walk, -1)
88@ = 2

:TRUTH2_8351
if 
  88@ == 2
goto_if_false @TRUTH2_8435
$task_status = Char.GetScriptTaskStatus($scplayer, 1491)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TRUTH2_8435
Char.GiveWeapon($scplayer, WeaponType.RocketLauncher, 10)
151@ = 9
152@ = 0
gosub @TRUTH2_14975
88@ = 3

:TRUTH2_8435
if 
  88@ == 3
goto_if_false @TRUTH2_8502
if 
  152@ == 1
goto_if_false @TRUTH2_8502
Task.GoStraightToCoord($scplayer, -1075.5, -1648.0, 75.1, MoveState.Walk, -1)
88@ = 4

:TRUTH2_8502
if 
  88@ == 4
goto_if_false @TRUTH2_8967
if 
  151@ == 0
goto_if_false @TRUTH2_8967
89@ = 0

:TRUTH2_8545
skip_cutscene_end 
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_8579
goto @TRUTH2_11910

:TRUTH2_8579
if 
  89@ == 1
goto_if_false @TRUTH2_8745
Char.ClearTasksImmediately($scplayer)
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
151@ = 0
Camera.DoFade(500, Fade.Out)

:TRUTH2_8626
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH2_8650
wait 0
goto @TRUTH2_8626

:TRUTH2_8650
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_8682
goto @TRUTH2_11910

:TRUTH2_8682
Char.GiveWeapon($scplayer, WeaponType.RocketLauncher, 10)
World.ClearArea(-1075.5, -1648.0, 75.1, 1.0, True)
Char.SetCoordinates($scplayer, -1075.5, -1648.0, 75.1)
Char.SetHeading($scplayer, 268.0)

:TRUTH2_8745
Game.ShutAllCharsUp(False)
Hud.FreezeTimer(False)
Car.FreezePosition(34@, False)
Pad.SetDrunkInputDelay($player1, 145@)
Player.SetDrunkenness($player1, 146@)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Task.CarDriveToCoord($truth, 34@, -939.5, -1718.8, 76.7, 10.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Blip.Remove(42@)
42@ = Blip.AddForCar(35@)
if 
  not Car.IsDead(35@)
goto_if_false @TRUTH2_8872
Text.PrintNow('TRU2_15', 7000, 1)

:TRUTH2_8872
if 
  89@ == 1
goto_if_false @TRUTH2_8953
Camera.DoFade(500, Fade.In)

:TRUTH2_8897
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH2_8921
wait 0
goto @TRUTH2_8897

:TRUTH2_8921
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_8953
goto @TRUTH2_11910

:TRUTH2_8953
TIMERB = 0
88@ = 5

:TRUTH2_8967
if 
  88@ == 5
goto_if_false @TRUTH2_9383
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @TRUTH2_9041
if 
  not Car.IsDead(35@)
goto_if_false @TRUTH2_9021
Car.Explode(35@)

:TRUTH2_9021
Char.SetCoordinates($scplayer, -946.8, -1733.5, 76.8)

:TRUTH2_9041
if 
  153@ == 0
goto_if_false @TRUTH2_9096
if 
  TIMERB > 7000
goto_if_false @TRUTH2_9096
Text.PrintHelp('SYN3_22')
153@ = 1

:TRUTH2_9096
if 
  153@ == 1
goto_if_false @TRUTH2_9154
if 
  not Text.IsThisHelpMessageBeingDisplayed('SYN3_22')
goto_if_false @TRUTH2_9154
Text.PrintHelp('SYN3_23')
153@ = 2

:TRUTH2_9154
if 
  153@ == 2
goto_if_false @TRUTH2_9212
if 
  not Text.IsThisHelpMessageBeingDisplayed('SYN3_23')
goto_if_false @TRUTH2_9212
Text.PrintHelp('SYN3_24')
153@ = 3

:TRUTH2_9212
if 
  Car.IsDead(35@)
goto_if_false @TRUTH2_9376
Hud.ClearTimer($t2_total_weed_burnt)
Text.ClearPrints
Audio.SetRadioChannel(RadioChannel.KDST)
Text.Print('TRU2_17', 11000, 1)
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetCruiseSpeed(34@, 0.0)
Car.SetTempAction(34@, TempAction.HandbrakeStraight, 1000)
if 
  Char.IsInAnyCar($truth)
goto_if_false @TRUTH2_9318
Char.WarpFromCarToCoord($truth, -1516.4, -1596.9, 41.0)

:TRUTH2_9318
Char.WarpIntoCarAsPassenger($truth, 34@, -1)
Car.LockDoors(34@, CarLock.Unlocked)
Blip.Remove(42@)
42@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(42@, True)
88@ = 0
87@ = 2
goto @TRUTH2_9383

:TRUTH2_9376
gosub @TRUTH2_14224

:TRUTH2_9383
if 
  87@ == 2
goto_if_false @TRUTH2_9591
if 
  88@ == 0
goto_if_false @TRUTH2_9546
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @TRUTH2_9546
Car.SetStatus(34@, EntityStatus.Player)
Text.ClearThisPrint('TRU2_17')
Text.PrintNow('TRU2_12', 7000, 1)
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($truth, True)
Blip.Remove(42@)
42@ = Blip.AddForCoord(-2031.3, 178.5, 27.9)
Blip.SetAsFriendly(42@, False)
TIMERB = 0
136@ = 1
88@ = 0
87@ = 3

:TRUTH2_9546
if 
  not Char.LocateAnyMeansCar2D($scplayer, 34@, 200.0, 200.0, False)
goto_if_false @TRUTH2_9591
88@ = 0
87@ = 4

:TRUTH2_9591
if 
  87@ == 3
goto_if_false @TRUTH2_10299
if 
  151@ == 3
goto_if_false @TRUTH2_9679
if 
  152@ == 6
goto_if_false @TRUTH2_9679
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @TRUTH2_9679
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
151@ = 0

:TRUTH2_9679
if 
  88@ == 0
goto_if_false @TRUTH2_9769
if 
  TIMERB > 7000
goto_if_false @TRUTH2_9769
if 
  151@ == 0
goto_if_false @TRUTH2_9769
151@ = 3
152@ = 0
gosub @TRUTH2_14975
TIMERB = 0
88@ = 1

:TRUTH2_9769
if 
  88@ == 1
goto_if_false @TRUTH2_10105
if 
  151@ == 0
goto_if_false @TRUTH2_10105
if 
  TIMERB > 7000
goto_if_false @TRUTH2_10105
151@ = Math.RandomIntInRange(4, 8)
if 
  151@ == 4
goto_if_false @TRUTH2_9883
if 
  202@ == 1
goto_if_false @TRUTH2_9876
151@ = 0

:TRUTH2_9876
202@ = 1

:TRUTH2_9883
if 
  151@ == 5
goto_if_false @TRUTH2_9933
if 
  203@ == 1
goto_if_false @TRUTH2_9926
151@ = 0

:TRUTH2_9926
203@ = 1

:TRUTH2_9933
if 
  151@ == 6
goto_if_false @TRUTH2_9983
if 
  204@ == 1
goto_if_false @TRUTH2_9976
151@ = 0

:TRUTH2_9976
204@ = 1

:TRUTH2_9983
if 
  151@ == 7
goto_if_false @TRUTH2_10033
if 
  205@ == 1
goto_if_false @TRUTH2_10026
151@ = 0

:TRUTH2_10026
205@ = 1

:TRUTH2_10033
if 
  206@ == 0
goto_if_false @TRUTH2_10091
137@ = Player.GetCityIsIn($player1)
if 
  is_int_lvar_equal_to_constant 137@ == 2
goto_if_false @TRUTH2_10091
206@ = 1
151@ = 10

:TRUTH2_10091
152@ = 0
gosub @TRUTH2_14975

:TRUTH2_10105
if 
  2 > 88@
goto_if_false @TRUTH2_10292
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @TRUTH2_10292
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @TRUTH2_10187
Car.SetCoordinates(34@, -2009.3, 145.2, 26.7)
Car.SetHeading(34@, 359.8)

:TRUTH2_10187
if 
  Char.LocateInCar3D($scplayer, -2031.3, 178.5, 27.9, 4.0, 4.0, 4.0, True)
goto_if_false @TRUTH2_10292
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
151@ = 0
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($truth, False)
Player.SetControl($player1, False)
Streaming.MarkModelAsNoLongerNeeded(283)
88@ = 0
87@ = 5

:TRUTH2_10292
gosub @TRUTH2_14428

:TRUTH2_10299
if 
  87@ == 4
goto_if_false @TRUTH2_10975
ENTEXT_63()
if 
  $player_is_completely_safe == 1
goto_if_false @TRUTH2_10780
if 
  88@ == 0
goto_if_false @TRUTH2_10780
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:TRUTH2_10369
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH2_10393
wait 0
goto @TRUTH2_10369

:TRUTH2_10393
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_10425
goto @TRUTH2_11910

:TRUTH2_10425
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
151@ = 0
Player.SetDrunkenness($player1, 0)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.SetOnlyDamagedByPlayer($truth, True)
138@, 139@, 140@ = Char.GetOffsetInWorldCoords($truth, 0.0, -10.0, 5.0)
Streaming.RequestModel(334)
Streaming.LoadScene(138@, 139@, 140@)
World.ClearArea(138@, 139@, 140@, 30.0, True)
Camera.SetFixedPosition(138@, 139@, 140@, 0.0, 0.0, 0.0)
Camera.PointAtChar($truth, CameraMode.Fixed, SwitchType.JumpCut)
Char.ClearTasks($truth)
if 
  Char.IsInCar($truth, 34@)
goto_if_false @TRUTH2_10613
Task.CarTempAction($truth, 34@, TempAction.HandbrakeStraight, 2000000)

:TRUTH2_10613
141@, 142@, 143@ = Path.GetNthClosestCarNode(138@, 139@, 140@, 1)
37@ = Char.Create(PedType.Mission1, 283, 141@, 142@, 143@)
if 
  Char.IsInAnyCar($truth)
goto_if_false @TRUTH2_10679
Char.GiveWeapon(37@, WeaponType.NightStick, 1)

:TRUTH2_10679
Task.CharArrestChar(37@, $truth)
Text.PrintNow('TRU2_10', 7000, 1)
Camera.DoFade(500, Fade.In)

:TRUTH2_10710
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH2_10734
wait 0
goto @TRUTH2_10710

:TRUTH2_10734
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_10766
goto @TRUTH2_11910

:TRUTH2_10766
TIMERA = 0
88@ = 1

:TRUTH2_10780
if 
  88@ == 1
goto_if_false @TRUTH2_10975
if 
  TIMERA > 7000
goto_if_false @TRUTH2_10975
Camera.DoFade(500, Fade.Out)

:TRUTH2_10824
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH2_10848
wait 0
goto @TRUTH2_10824

:TRUTH2_10848
if 
  Searchlight.DoesExist(38@)
goto_if_false @TRUTH2_10869
Searchlight.Delete(38@)

:TRUTH2_10869
Char.Delete($truth)
Streaming.UnloadSpecialCharacter(1)
Car.Delete(34@)
Char.Delete(37@)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Text.PrintNow('TRU2_10', 5500, 1)
Camera.DoFade(500, Fade.In)

:TRUTH2_10944
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH2_10968
wait 0
goto @TRUTH2_10944

:TRUTH2_10968
goto @TRUTH2_11910

:TRUTH2_10975
if 
  87@ == 5
goto_if_false @TRUTH2_11839
if 
  88@ == 0
goto_if_false @TRUTH2_11037
if 
  TIMERA > 1500
goto_if_false @TRUTH2_11037
88@ = 1

:TRUTH2_11037
if 
  88@ == 1
goto_if_false @TRUTH2_11617
Camera.DoFade(500, Fade.Out)

:TRUTH2_11062
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH2_11086
wait 0
goto @TRUTH2_11062

:TRUTH2_11086
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_11118
goto @TRUTH2_11910

:TRUTH2_11118
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Player.SetDrunkenness($player1, 0)
Camera.SetFixedPosition(-2025.0, 172.3, 28.0, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2032.9, 163.0, 30.88, SwitchType.JumpCut)
Game.ShutAllCharsUp(True)
World.ClearArea(-2028.9, 172.3, 27.8, 30.0, True)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -2028.9, 172.3, 27.8)
Char.SetHeading($scplayer, 167.6)
215@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2029.9, 167.7, 27.8, MoveState.Walk, -1)
Task.Pause(-1, 2000)
Task.PlayAnim(-1, "IDLE_TIRED", "PED", 4.0, False, False, False, False, 4000)
Task.GoStraightToCoord(-1, -2033.0, 161.4, 28.0, MoveState.Walk, -1)
Sequence.Close(215@)
Char.PerformSequence($scplayer, 215@)
Sequence.Clear(215@)
Player.SetDrunkenness($player1, 0)
World.ClearArea(-2030.9, 172.3, 27.8, 30.0, True)
Char.ClearTasksImmediately($truth)
Char.SetCoordinates($truth, -2030.9, 172.3, 27.8)
Char.SetHeading($truth, 167.6)
215@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2030.9, 167.7, 27.8, MoveState.Walk, -1)
Task.Pause(-1, 1000)
Task.GoStraightToCoord(-1, -2033.0, 161.4, 28.0, MoveState.Walk, -1)
Task.AchieveHeading(-1, 115.2)
Sequence.Close(215@)
Char.PerformSequence($truth, 215@)
Sequence.Clear(215@)
Camera.DoFade(500, Fade.In)

:TRUTH2_11523
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH2_11547
wait 0
goto @TRUTH2_11523

:TRUTH2_11547
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_11579
goto @TRUTH2_11910

:TRUTH2_11579
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
151@ = 11
152@ = 0
gosub @TRUTH2_14975
88@ = 2

:TRUTH2_11617
if 
  88@ == 2
goto_if_false @TRUTH2_11667
if 
  151@ == 0
goto_if_false @TRUTH2_11667
88@ = 3
TIMERA = 0

:TRUTH2_11667
if 
  88@ == 3
goto_if_false @TRUTH2_11839
if 
  TIMERA > 1000
goto_if_false @TRUTH2_11839
Camera.DoFade(500, Fade.Out)

:TRUTH2_11711
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH2_11735
wait 0
goto @TRUTH2_11711

:TRUTH2_11735
if 
  Searchlight.DoesExist(38@)
goto_if_false @TRUTH2_11756
Searchlight.Delete(38@)

:TRUTH2_11756
Char.Delete($truth)
Streaming.UnloadSpecialCharacter(1)
Car.Delete(34@)
Char.Delete(37@)
Char.ClearTasksImmediately($scplayer)
Game.ShutAllCharsUp(False)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(500, Fade.In)

:TRUTH2_11808
if 
  Camera.GetFadingStatus
goto_if_false @TRUTH2_11832
wait 0
goto @TRUTH2_11808

:TRUTH2_11832
goto @TRUTH2_11942

:TRUTH2_11839
if 
  2 > 87@
goto_if_false @TRUTH2_11896
if 
  $t2_total_weed_burnt == 0
goto_if_false @TRUTH2_11896
87@ = 4
88@ = 0
Char.SetHealth($truth, 10)

:TRUTH2_11896
gosub @TRUTH2_16979
goto @TRUTH2_3224

:TRUTH2_11910
Char.RemoveWeapon($scplayer, WeaponType.Flamethrower)
Char.RemoveWeapon($scplayer, WeaponType.RocketLauncher)
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:TRUTH2_11942
Stat.SetInt(StatId.PassedTruth2, 1)
Text.PrintWithNumberBig('M_PASSR', 15, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(15)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Stat.RegisterMissionPassed('TRUTH_2')
Stat.PlayerMadeProgress(1)
$flag_truth_mission_counter += 1
Blip.Remove($truth_contact_blip)
terminate_all_scripts_with_this_name 'MOB_SF'
start_new_script @MOB_SF 
Blip.Remove($1732)
$1732 = Blip.AddShortRangeSpriteForContactPoint($save_pickupX[15], $save_pickupY[15], $save_pickupZ[15], RadarSprite.SaveGame)
Blip.ChangeDisplay($1732, BlipDisplay.BlipOnly)
start_new_script @GARAGE 
Blip.Remove($garage_contact_blip)
$garage_contact_blip = Blip.AddSpriteForContactPoint($garageX, $garageY, $garageZ, RadarSprite.CJ)
Pickup.Remove($grove_save_pickup[15])
$grove_save_pickup[15] = Pickup.Create(#PICKUPSAVE, PickupType.Once, $save_pickupX[15], $save_pickupY[15], $save_pickupZ[15])
$number_of_save_icons = 16
Garage.Activate('MDSSFSE')
Blip.Remove($2589)
$2589 = Blip.AddShortRangeSpriteForCoord(-1941.0, 251.7, 33.4, RadarSprite.ModGarage)
return 

:TRUTH2_12153
if 
  Player.IsPlaying($player1)
goto_if_false @TRUTH2_12183
Pad.SetDrunkInputDelay($player1, 0)
Player.SetDrunkenness($player1, 0)

:TRUTH2_12183
if 
  is_var_text_label_empty s$shop_name
goto_if_false @TRUTH2_12201
Camera.RestoreJumpcut

:TRUTH2_12201
Streaming.RemoveIplDiscreetly("TRUTHSFARM")
Blip.Remove(42@)
if 
  not Car.IsDead(35@)
goto_if_false @TRUTH2_12266
Heli.GotoCoords(35@, 0.0, 0.0, 200.0, 0.0, 200.0)

:TRUTH2_12266
if 
  not Char.IsDead($truth)
goto_if_false @TRUTH2_12287
Char.DetachFromCar($truth)

:TRUTH2_12287
if 
  not Car.IsDead(39@)
goto_if_false @TRUTH2_12318
Car.SetProofs(39@, False, False, False, False, False)

:TRUTH2_12318
if 
  not Car.IsDead(34@)
goto_if_false @TRUTH2_12341
Car.LockDoors(34@, CarLock.Unlocked)

:TRUTH2_12341
Pickup.Remove(40@)
Pickup.Remove(41@)
Streaming.MarkModelAsNoLongerNeeded(483)
Streaming.MarkModelAsNoLongerNeeded(543)
Streaming.MarkModelAsNoLongerNeeded(497)
Streaming.MarkModelAsNoLongerNeeded(283)
Streaming.MarkModelAsNoLongerNeeded(361)
Streaming.MarkModelAsNoLongerNeeded(359)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(334)
Char.RemoveElegantly($truth)
Streaming.UnloadSpecialCharacter(1)
Hud.ClearTimer($t2_total_weed_burnt)
if 
  not Char.IsDead($scplayer)
goto_if_false @TRUTH2_12428
Char.ShutUpForScriptedSpeech($scplayer, False)

:TRUTH2_12428
Game.ShutAllCharsUp(False)
Blip.Remove(43@)
Blip.Remove(44@)
Blip.Remove(45@)
Blip.Remove(46@)
Blip.Remove(47@)
Blip.Remove(48@)
Blip.Remove(49@)
Blip.Remove(50@)
Blip.Remove(51@)
Blip.Remove(52@)
Blip.Remove(53@)
Blip.Remove(54@)
Blip.Remove(55@)
Blip.Remove(56@)
Blip.Remove(57@)
Blip.Remove(58@)
Blip.Remove(59@)
Blip.Remove(60@)
Blip.Remove(61@)
Blip.Remove(62@)
Blip.Remove(63@)
Blip.Remove(64@)
Blip.Remove(65@)
Blip.Remove(66@)
Blip.Remove(67@)
Blip.Remove(68@)
Blip.Remove(69@)
Blip.Remove(70@)
Blip.Remove(71@)
Blip.Remove(72@)
Blip.Remove(73@)
Blip.Remove(74@)
Blip.Remove(75@)
Blip.Remove(76@)
Blip.Remove(77@)
Blip.Remove(78@)
Blip.Remove(79@)
Blip.Remove(80@)
Blip.Remove(81@)
Blip.Remove(82@)
Blip.Remove(83@)
Blip.Remove(84@)
Blip.Remove(85@)
Blip.Remove(86@)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

:TRUTH2_12668
if 
  Char.IsDead($truth)
goto_if_false @TRUTH2_12709
Text.ClearPrints
Text.PrintNow('TRU2_08', 7000, 1)
90@ = 1

:TRUTH2_12709
if 
  Car.IsDead(34@)
goto_if_false @TRUTH2_12750
Text.ClearPrints
Text.PrintNow('TRU2_09', 7000, 1)
90@ = 1

:TRUTH2_12750
if 
  Car.IsDead(35@)
goto_if_false @TRUTH2_12787
if 
  Searchlight.DoesExist(38@)
goto_if_false @TRUTH2_12787
Searchlight.Delete(38@)

:TRUTH2_12787
return 

:TRUTH2_12789
if 
  148@ == 0
goto_if_false @TRUTH2_13016
149@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Flamethrower)
if 
  149@ == 0
goto_if_false @TRUTH2_13016
Blip.Remove(43@)
Blip.Remove(44@)
Blip.Remove(45@)
Blip.Remove(46@)
Blip.Remove(47@)
Blip.Remove(48@)
Blip.Remove(49@)
Blip.Remove(50@)
Blip.Remove(51@)
Blip.Remove(52@)
Blip.Remove(53@)
Blip.Remove(54@)
Blip.Remove(55@)
Blip.Remove(56@)
Blip.Remove(57@)
Blip.Remove(58@)
Blip.Remove(59@)
Blip.Remove(60@)
Blip.Remove(61@)
Blip.Remove(62@)
Blip.Remove(63@)
Blip.Remove(64@)
Blip.Remove(42@)
40@ = Pickup.CreateWithAmmo(361, PickupType.Once, 3000, -1100.3, -1640.4, 76.4)
42@ = Blip.AddForPickup(40@)
Blip.SetAsFriendly(42@, False)
Text.PrintNow('TRU2_13', 7000, 1)
148@ = 1

:TRUTH2_13016
if 
  148@ == 1
goto_if_false @TRUTH2_14222
if 
  Pickup.HasBeenCollected(40@)
goto_if_false @TRUTH2_14222
Blip.Remove(42@)
if 
  91@ == 0
goto_if_false @TRUTH2_13107
43@ = Blip.AddForCoord(-1061.9, -1630.7, 75.3)
Blip.ChangeScale(43@, 1)
Blip.SetCoordAppearance(43@, 2)

:TRUTH2_13107
if 
  92@ == 0
goto_if_false @TRUTH2_13159
44@ = Blip.AddForCoord(-1062.3, -1621.4, 75.3)
Blip.ChangeScale(44@, 1)
Blip.SetCoordAppearance(44@, 2)

:TRUTH2_13159
if 
  93@ == 0
goto_if_false @TRUTH2_13211
45@ = Blip.AddForCoord(-1052.8, -1630.8, 75.3)
Blip.ChangeScale(45@, 1)
Blip.SetCoordAppearance(45@, 2)

:TRUTH2_13211
if 
  94@ == 0
goto_if_false @TRUTH2_13263
46@ = Blip.AddForCoord(-1052.8, -1621.4, 75.3)
Blip.ChangeScale(46@, 1)
Blip.SetCoordAppearance(46@, 2)

:TRUTH2_13263
if 
  95@ == 0
goto_if_false @TRUTH2_13315
47@ = Blip.AddForCoord(-1042.8, -1630.8, 75.3)
Blip.ChangeScale(47@, 1)
Blip.SetCoordAppearance(47@, 2)

:TRUTH2_13315
if 
  96@ == 0
goto_if_false @TRUTH2_13367
48@ = Blip.AddForCoord(-1042.8, -1621.4, 75.3)
Blip.ChangeScale(48@, 1)
Blip.SetCoordAppearance(48@, 2)

:TRUTH2_13367
if 
  97@ == 0
goto_if_false @TRUTH2_13419
49@ = Blip.AddForCoord(-1032.8, -1630.8, 75.3)
Blip.ChangeScale(49@, 1)
Blip.SetCoordAppearance(49@, 2)

:TRUTH2_13419
if 
  98@ == 0
goto_if_false @TRUTH2_13471
50@ = Blip.AddForCoord(-1032.8, -1621.4, 75.3)
Blip.ChangeScale(50@, 1)
Blip.SetCoordAppearance(50@, 2)

:TRUTH2_13471
if 
  99@ == 0
goto_if_false @TRUTH2_13523
51@ = Blip.AddForCoord(-1022.8, -1630.8, 75.3)
Blip.ChangeScale(51@, 1)
Blip.SetCoordAppearance(51@, 2)

:TRUTH2_13523
if 
  100@ == 0
goto_if_false @TRUTH2_13575
52@ = Blip.AddForCoord(-1022.8, -1621.4, 75.3)
Blip.ChangeScale(52@, 1)
Blip.SetCoordAppearance(52@, 2)

:TRUTH2_13575
if 
  101@ == 0
goto_if_false @TRUTH2_13627
53@ = Blip.AddForCoord(-1012.1, -1666.8, 75.3)
Blip.ChangeScale(53@, 1)
Blip.SetCoordAppearance(53@, 2)

:TRUTH2_13627
if 
  102@ == 0
goto_if_false @TRUTH2_13679
54@ = Blip.AddForCoord(-1012.8, -1657.4, 75.3)
Blip.ChangeScale(54@, 1)
Blip.SetCoordAppearance(54@, 2)

:TRUTH2_13679
if 
  103@ == 0
goto_if_false @TRUTH2_13731
55@ = Blip.AddForCoord(-1012.8, -1648.4, 75.3)
Blip.ChangeScale(55@, 1)
Blip.SetCoordAppearance(55@, 2)

:TRUTH2_13731
if 
  104@ == 0
goto_if_false @TRUTH2_13783
56@ = Blip.AddForCoord(-1000.1, -1666.8, 75.3)
Blip.ChangeScale(56@, 1)
Blip.SetCoordAppearance(56@, 2)

:TRUTH2_13783
if 
  105@ == 0
goto_if_false @TRUTH2_13835
57@ = Blip.AddForCoord(-1000.8, -1657.4, 75.3)
Blip.ChangeScale(57@, 1)
Blip.SetCoordAppearance(57@, 2)

:TRUTH2_13835
if 
  106@ == 0
goto_if_false @TRUTH2_13887
58@ = Blip.AddForCoord(-1000.8, -1648.4, 75.3)
Blip.ChangeScale(58@, 1)
Blip.SetCoordAppearance(58@, 2)

:TRUTH2_13887
if 
  107@ == 0
goto_if_false @TRUTH2_13939
59@ = Blip.AddForCoord(-992.1, -1702.8, 75.3)
Blip.ChangeScale(59@, 1)
Blip.SetCoordAppearance(59@, 2)

:TRUTH2_13939
if 
  108@ == 0
goto_if_false @TRUTH2_13991
60@ = Blip.AddForCoord(-992.8, -1693.4, 75.3)
Blip.ChangeScale(60@, 1)
Blip.SetCoordAppearance(60@, 2)

:TRUTH2_13991
if 
  109@ == 0
goto_if_false @TRUTH2_14043
61@ = Blip.AddForCoord(-992.8, -1684.4, 75.3)
Blip.ChangeScale(61@, 1)
Blip.SetCoordAppearance(61@, 2)

:TRUTH2_14043
if 
  110@ == 0
goto_if_false @TRUTH2_14095
62@ = Blip.AddForCoord(-982.1, -1702.8, 75.3)
Blip.ChangeScale(62@, 1)
Blip.SetCoordAppearance(62@, 2)

:TRUTH2_14095
if 
  111@ == 0
goto_if_false @TRUTH2_14147
63@ = Blip.AddForCoord(-982.8, -1693.4, 75.3)
Blip.ChangeScale(63@, 1)
Blip.SetCoordAppearance(63@, 2)

:TRUTH2_14147
if 
  112@ == 0
goto_if_false @TRUTH2_14199
64@ = Blip.AddForCoord(-982.8, -1684.4, 75.3)
Blip.ChangeScale(64@, 1)
Blip.SetCoordAppearance(64@, 2)

:TRUTH2_14199
Text.PrintNow('TRU2_01', 11000, 1)
148@ = 0

:TRUTH2_14222
return 

:TRUTH2_14224
if 
  150@ == 0
goto_if_false @TRUTH2_14340
149@ = Char.GetAmmoInWeapon($scplayer, WeaponType.RocketLauncher)
if 
  149@ == 0
goto_if_false @TRUTH2_14340
Blip.Remove(42@)
41@ = Pickup.CreateWithAmmo(359, PickupType.Once, 10, -1100.3, -1640.4, 76.4)
42@ = Blip.AddForPickup(41@)
Blip.SetAsFriendly(42@, False)
Text.PrintNow('TRU2_13', 7000, 1)
150@ = 1

:TRUTH2_14340
if 
  150@ == 1
goto_if_false @TRUTH2_14426
if 
  Pickup.HasBeenCollected(41@)
goto_if_false @TRUTH2_14426
Blip.Remove(42@)
if 
  not Car.IsDead(35@)
goto_if_false @TRUTH2_14419
42@ = Blip.AddForCar(35@)
Text.PrintNow('TRU2_15', 11000, 1)

:TRUTH2_14419
150@ = 0

:TRUTH2_14426
return 

:TRUTH2_14428
if 
  136@ == 0
goto_if_false @TRUTH2_14504
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @TRUTH2_14504
Blip.Remove(42@)
42@ = Blip.AddForCoord(-2031.3, 178.5, 27.9)
Blip.SetAsFriendly(42@, False)
136@ = 1

:TRUTH2_14504
if 
  136@ == 1
goto_if_false @TRUTH2_14568
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @TRUTH2_14568
Blip.Remove(42@)
42@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(42@, True)
136@ = 0

:TRUTH2_14568
return 

:TRUTH2_14570
if 
  87@ == 0
goto_if_false @TRUTH2_14881
if 
  $recordflag > 0
goto_if_false @TRUTH2_14665
if 
  is_int_lvar_greater_than_int_var 147@ > $recordflag
goto_if_false @TRUTH2_14665
if 
  200 > 146@
goto_if_false @TRUTH2_14658
146@ += 1
146@ += 1

:TRUTH2_14658
147@ -= 1

:TRUTH2_14665
if 
  144@ == 0
goto_if_false @TRUTH2_14715
if 
  40 > $recordflag
goto_if_false @TRUTH2_14715
145@ += 1
144@ = 1

:TRUTH2_14715
if 
  144@ == 1
goto_if_false @TRUTH2_14765
if 
  30 > $recordflag
goto_if_false @TRUTH2_14765
145@ += 1
144@ = 2

:TRUTH2_14765
if 
  144@ == 2
goto_if_false @TRUTH2_14815
if 
  20 > $recordflag
goto_if_false @TRUTH2_14815
145@ += 1
144@ = 3

:TRUTH2_14815
if 
  144@ == 3
goto_if_false @TRUTH2_14865
if 
  10 > $recordflag
goto_if_false @TRUTH2_14865
145@ += 1
144@ = 4

:TRUTH2_14865
Pad.SetDrunkInputDelay($player1, 145@)
Player.SetDrunkenness($player1, 146@)

:TRUTH2_14881
if or
  87@ == 2
  87@ == 3
goto_if_false @TRUTH2_14973
if 
  TIMERA > 660
goto_if_false @TRUTH2_14973
if 
  146@ > 1
goto_if_false @TRUTH2_14950
146@ -= 1

:TRUTH2_14950
Pad.SetDrunkInputDelay($player1, 145@)
Player.SetDrunkenness($player1, 146@)
TIMERA = 0

:TRUTH2_14973
return 

:TRUTH2_14975
if 
  151@ == 1
goto_if_false @TRUTH2_15176
set_lvar_text_label 154@s = 'TRU2_AA'
set_lvar_text_label 156@s = 'TRU2_AB'
set_lvar_text_label 158@s = 'TRU2_AC'
set_lvar_text_label 160@s = 'TRU2_AD'
set_lvar_text_label 162@s = 'TRU2_AE'
set_lvar_text_label 164@s = 'TRU2_BA'
set_lvar_text_label 166@s = 'TRU2_BB'
set_lvar_text_label 168@s = 'TRU2_BC'
set_lvar_int_to_constant 186@ = 7800
set_lvar_int_to_constant 187@ = 7838
set_lvar_int_to_constant 188@ = 7801
set_lvar_int_to_constant 189@ = 7839
set_lvar_int_to_constant 190@ = 7802
set_lvar_int_to_constant 191@ = 7803
set_lvar_int_to_constant 192@ = 7840
set_lvar_int_to_constant 193@ = 7841
207@ = 8

:TRUTH2_15176
if 
  151@ == 2
goto_if_false @TRUTH2_15245
set_lvar_text_label 154@s = 'TRU2_CA'
set_lvar_text_label 156@s = 'TRU2_CB'
set_lvar_int_to_constant 186@ = 7842
set_lvar_int_to_constant 187@ = 7804
207@ = 2

:TRUTH2_15245
if 
  151@ == 3
goto_if_false @TRUTH2_15512
set_lvar_text_label 154@s = 'TRU2_DA'
set_lvar_text_label 156@s = 'TRU2_DB'
set_lvar_text_label 158@s = 'TRU2_DC'
set_lvar_text_label 160@s = 'TRU2_DD'
set_lvar_text_label 162@s = 'TRU2_DE'
set_lvar_text_label 164@s = 'TRU2_OA'
set_lvar_text_label 166@s = 'TRU2_OB'
set_lvar_text_label 168@s = 'TRU2_OC'
set_lvar_text_label 170@s = 'TRU2_OD'
set_lvar_text_label 172@s = 'TRU2_OE'
set_lvar_text_label 174@s = 'TRU2_OF'
set_lvar_int_to_constant 186@ = 7843
set_lvar_int_to_constant 187@ = 7805
set_lvar_int_to_constant 188@ = 7844
set_lvar_int_to_constant 189@ = 7806
set_lvar_int_to_constant 190@ = 7807
set_lvar_int_to_constant 191@ = 7868
set_lvar_int_to_constant 192@ = 31200
set_lvar_int_to_constant 193@ = 7869
set_lvar_int_to_constant 194@ = 7870
set_lvar_int_to_constant 195@ = 7871
set_lvar_int_to_constant 196@ = 7872
207@ = 11

:TRUTH2_15512
if 
  151@ == 4
goto_if_false @TRUTH2_15669
set_lvar_text_label 154@s = 'TRU2_EA'
set_lvar_text_label 156@s = 'TRU2_EB'
set_lvar_text_label 158@s = 'TRU2_EC'
set_lvar_text_label 160@s = 'TRU2_ED'
set_lvar_text_label 162@s = 'TRU2_EF'
set_lvar_text_label 164@s = 'TRU2_EG'
set_lvar_int_to_constant 186@ = 7846
set_lvar_int_to_constant 187@ = 7808
set_lvar_int_to_constant 188@ = 7847
set_lvar_int_to_constant 189@ = 7809
set_lvar_int_to_constant 190@ = 7810
set_lvar_int_to_constant 191@ = 7848
207@ = 6

:TRUTH2_15669
if 
  151@ == 5
goto_if_false @TRUTH2_15914
set_lvar_text_label 154@s = 'TRU2_FA'
set_lvar_text_label 156@s = 'TRU2_FB'
set_lvar_text_label 158@s = 'TRU2_FC'
set_lvar_text_label 160@s = 'TRU2_FD'
set_lvar_text_label 162@s = 'TRU2_FE'
set_lvar_text_label 164@s = 'TRU2_FF'
set_lvar_text_label 166@s = 'TRU2_FG'
set_lvar_text_label 168@s = 'TRU2_FH'
set_lvar_text_label 170@s = 'TRU2_FJ'
set_lvar_text_label 172@s = 'TRU2_FK'
set_lvar_int_to_constant 186@ = 7865
set_lvar_int_to_constant 187@ = 7811
set_lvar_int_to_constant 188@ = 7849
set_lvar_int_to_constant 189@ = 7812
set_lvar_int_to_constant 190@ = 7850
set_lvar_int_to_constant 191@ = 7813
set_lvar_int_to_constant 192@ = 7814
set_lvar_int_to_constant 193@ = 7815
set_lvar_int_to_constant 194@ = 7816
set_lvar_int_to_constant 195@ = 7851
207@ = 10

:TRUTH2_15914
if 
  151@ == 6
goto_if_false @TRUTH2_16115
set_lvar_text_label 154@s = 'TRU2_GA'
set_lvar_text_label 156@s = 'TRU2_GB'
set_lvar_text_label 158@s = 'TRU2_GC'
set_lvar_text_label 160@s = 'TRU2_GE'
set_lvar_text_label 162@s = 'TRU2_GF'
set_lvar_text_label 164@s = 'TRU2_GG'
set_lvar_text_label 166@s = 'TRU2_GH'
set_lvar_text_label 168@s = 'TRU2_GJ'
set_lvar_int_to_constant 186@ = 7852
set_lvar_int_to_constant 187@ = 7817
set_lvar_int_to_constant 188@ = 7818
set_lvar_int_to_constant 189@ = 7853
set_lvar_int_to_constant 190@ = 7819
set_lvar_int_to_constant 191@ = 7820
set_lvar_int_to_constant 192@ = 7821
set_lvar_int_to_constant 193@ = 7822
207@ = 8

:TRUTH2_16115
if 
  151@ == 7
goto_if_false @TRUTH2_16448
set_lvar_text_label 154@s = 'TRU2_HA'
set_lvar_text_label 156@s = 'TRU2_HB'
set_lvar_text_label 158@s = 'TRU2_HC'
set_lvar_text_label 160@s = 'TRU2_HD'
set_lvar_text_label 162@s = 'TRU2_HE'
set_lvar_text_label 164@s = 'TRU2_HF'
set_lvar_text_label 166@s = 'TRU2_HG'
set_lvar_text_label 168@s = 'TRU2_HH'
set_lvar_text_label 170@s = 'TRU2_HJ'
set_lvar_text_label 172@s = 'TRU2_HK'
set_lvar_text_label 174@s = 'TRU2_HL'
set_lvar_text_label 176@s = 'TRU2_HM'
set_lvar_text_label 178@s = 'TRU2_HN'
set_lvar_text_label 180@s = 'TRU2_HO'
set_lvar_int_to_constant 186@ = 7854
set_lvar_int_to_constant 187@ = 7823
set_lvar_int_to_constant 188@ = 7855
set_lvar_int_to_constant 189@ = 7824
set_lvar_int_to_constant 190@ = 7825
set_lvar_int_to_constant 191@ = 7866
set_lvar_int_to_constant 192@ = 7856
set_lvar_int_to_constant 193@ = 7826
set_lvar_int_to_constant 194@ = 7827
set_lvar_int_to_constant 195@ = 7857
set_lvar_int_to_constant 196@ = 7828
set_lvar_int_to_constant 197@ = 7829
set_lvar_int_to_constant 198@ = 7858
set_lvar_int_to_constant 199@ = 7859
207@ = 14

:TRUTH2_16448
if 
  151@ == 8
goto_if_false @TRUTH2_16517
set_lvar_text_label 154@s = 'TRU2_JA'
set_lvar_text_label 156@s = 'TRU2_JB'
set_lvar_int_to_constant 186@ = 7860
set_lvar_int_to_constant 187@ = 7830
207@ = 2

:TRUTH2_16517
if 
  151@ == 9
goto_if_false @TRUTH2_16630
set_lvar_text_label 154@s = 'TRU2_KA'
set_lvar_text_label 156@s = 'TRU2_KB'
set_lvar_text_label 158@s = 'TRU2_KC'
set_lvar_text_label 160@s = 'TRU2_KD'
set_lvar_int_to_constant 186@ = 7861
set_lvar_int_to_constant 187@ = 7862
set_lvar_int_to_constant 188@ = 7831
set_lvar_int_to_constant 189@ = 7832
207@ = 4

:TRUTH2_16630
if 
  151@ == 10
goto_if_false @TRUTH2_16787
set_lvar_text_label 154@s = 'TRU2_LA'
set_lvar_text_label 156@s = 'TRU2_LB'
set_lvar_text_label 158@s = 'TRU2_LC'
set_lvar_text_label 160@s = 'TRU2_MA'
set_lvar_text_label 162@s = 'TRU2_MB'
set_lvar_text_label 164@s = 'TRU2_MC'
set_lvar_int_to_constant 186@ = 7833
set_lvar_int_to_constant 187@ = 7863
set_lvar_int_to_constant 188@ = 7834
set_lvar_int_to_constant 189@ = 7864
set_lvar_int_to_constant 190@ = 7835
set_lvar_int_to_constant 191@ = 7867
207@ = 6

:TRUTH2_16787
if 
  151@ == 11
goto_if_false @TRUTH2_16856
set_lvar_text_label 154@s = 'TRU2_NA'
set_lvar_text_label 156@s = 'TRU2_NB'
set_lvar_int_to_constant 186@ = 7836
set_lvar_int_to_constant 187@ = 7837
207@ = 2

:TRUTH2_16856
if 
  151@ == 12
goto_if_false @TRUTH2_16948
set_lvar_text_label 154@s = 'TRUX_AA'
set_lvar_text_label 156@s = 'TRUX_AB'
set_lvar_text_label 158@s = 'TRUX_AC'
set_lvar_int_to_constant 186@ = 26600
set_lvar_int_to_constant 187@ = 26601
set_lvar_int_to_constant 188@ = 26602
set_lvar_int_to_lvar_int 207@ = 212@

:TRUTH2_16948
set_lvar_int_to_lvar_int 210@ = 152@
208@ = 0
209@ = 0
211@ = 1
return 

:TRUTH2_16979
if or
  151@ == 1
  151@ == 2
  151@ == 8
  151@ == 9
  151@ == 11
goto_if_false @TRUTH2_17133
if 
  is_int_lvar_greater_than_int_lvar 207@ > 152@
goto_if_false @TRUTH2_17126
gosub @TRUTH2_18093
gosub @TRUTH2_18200
if 
  not Char.IsDead($truth)
goto_if_false @TRUTH2_17088
gosub @TRUTH2_18354
goto @TRUTH2_17119

:TRUTH2_17088
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(154@(152@,16s))
208@ = 0
209@ = 0

:TRUTH2_17119
goto @TRUTH2_17133

:TRUTH2_17126
151@ = 0

:TRUTH2_17133
if or
  87@ == 3
  87@ == 4
goto_if_false @TRUTH2_17632
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @TRUTH2_17496
if 
  151@ == 3
goto_if_false @TRUTH2_17310
if 
  is_int_lvar_greater_than_int_lvar 207@ > 152@
goto_if_false @TRUTH2_17296
gosub @TRUTH2_18093
gosub @TRUTH2_18200
if 
  not Char.IsDead($truth)
goto_if_false @TRUTH2_17258
gosub @TRUTH2_18354
goto @TRUTH2_17289

:TRUTH2_17258
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(154@(152@,16s))
208@ = 0
209@ = 0

:TRUTH2_17289
goto @TRUTH2_17310

:TRUTH2_17296
TIMERB = 0
151@ = 0

:TRUTH2_17310
if or
  151@ == 4
  151@ == 5
  151@ == 6
  151@ == 7
  151@ == 10
goto_if_false @TRUTH2_17496
if 
  is_int_lvar_greater_than_int_lvar 207@ > 152@
goto_if_false @TRUTH2_17457
gosub @TRUTH2_18093
gosub @TRUTH2_18200
if 
  not Char.IsDead($truth)
goto_if_false @TRUTH2_17419
gosub @TRUTH2_18354
goto @TRUTH2_17450

:TRUTH2_17419
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(154@(152@,16s))
208@ = 0
209@ = 0

:TRUTH2_17450
goto @TRUTH2_17496

:TRUTH2_17457
if 
  145@ > 0
goto_if_false @TRUTH2_17482
145@ -= 1

:TRUTH2_17482
TIMERB = 0
151@ = 0

:TRUTH2_17496
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @TRUTH2_17632
if 
  12 > 151@
goto_if_false @TRUTH2_17632
if 
  is_int_lvar_greater_than_int_lvar 207@ > 152@
goto_if_false @TRUTH2_17559
152@ += 1

:TRUTH2_17559
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(154@(152@,16s))
Text.ClearPrints
set_lvar_int_to_lvar_int 214@ = 151@
set_lvar_int_to_lvar_int 213@ = 152@
151@ = 12
152@ = Math.RandomIntInRange(0, 3)
set_lvar_int_to_lvar_int 212@ = 152@
212@ += 1
gosub @TRUTH2_14975

:TRUTH2_17632
if 
  4 > 87@
goto_if_false @TRUTH2_18091
if 
  151@ == 12
goto_if_false @TRUTH2_17863
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @TRUTH2_17811
if 
  is_int_lvar_greater_than_int_lvar 207@ > 152@
goto_if_false @TRUTH2_17788
gosub @TRUTH2_18093
gosub @TRUTH2_18200
if 
  not Char.IsDead($truth)
goto_if_false @TRUTH2_17750
gosub @TRUTH2_18354
goto @TRUTH2_17781

:TRUTH2_17750
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(154@(152@,16s))
208@ = 0
209@ = 0

:TRUTH2_17781
goto @TRUTH2_17811

:TRUTH2_17788
Text.Print('TRU2_17', 11000, 1)
151@ = 13

:TRUTH2_17811
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @TRUTH2_17863
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(154@(152@,16s))
151@ = 14
152@ = 0
Text.ClearPrints

:TRUTH2_17863
if 
  151@ == 13
goto_if_false @TRUTH2_17916
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @TRUTH2_17916
151@ = 14
152@ = 0
Text.ClearPrints

:TRUTH2_17916
if 
  151@ == 14
goto_if_false @TRUTH2_18091
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @TRUTH2_18017
TIMERB = 0
set_lvar_int_to_lvar_int 151@ = 214@
set_lvar_int_to_lvar_int 152@ = 213@
gosub @TRUTH2_14975
if 
  214@ == 0
goto_if_false @TRUTH2_18017
Text.Print('TRU2_12', 7000, 1)

:TRUTH2_18017
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @TRUTH2_18091
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(154@(152@,16s))
151@ = 12
152@ = Math.RandomIntInRange(0, 3)
set_lvar_int_to_lvar_int 212@ = 152@
212@ += 1
gosub @TRUTH2_14975

:TRUTH2_18091
return 

:TRUTH2_18093
if 
  is_int_lvar_greater_than_int_lvar 207@ > 210@
goto_if_false @TRUTH2_18198
if 
  208@ == 0
goto_if_false @TRUTH2_18155
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 186@(210@,16i))
210@ += 1
208@ = 1

:TRUTH2_18155
if 
  209@ == 0
goto_if_false @TRUTH2_18198
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 186@(210@,16i))
210@ += 1
209@ = 1

:TRUTH2_18198
return 

:TRUTH2_18200
if 
  211@ == 1
goto_if_false @TRUTH2_18276
if 
  208@ == 1
goto_if_false @TRUTH2_18276
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @TRUTH2_18276
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(154@(152@,16s), 4500, 1)
208@ = 2

:TRUTH2_18276
if 
  211@ == 2
goto_if_false @TRUTH2_18352
if 
  209@ == 1
goto_if_false @TRUTH2_18352
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @TRUTH2_18352
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow(154@(152@,16s), 4500, 1)
209@ = 2

:TRUTH2_18352
return 

:TRUTH2_18354
if 
  208@ == 2
goto_if_false @TRUTH2_18417
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @TRUTH2_18417
Text.ClearThisPrint(154@(152@,16s))
152@ += 1
211@ = 2
208@ = 0

:TRUTH2_18417
if 
  209@ == 2
goto_if_false @TRUTH2_18480
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @TRUTH2_18480
Text.ClearThisPrint(154@(152@,16s))
152@ += 1
211@ = 1
209@ = 0

:TRUTH2_18480
return 

//-------------Mission 48---------------
// Originally: Wu Zi Mu / Farewell, My Love...

:BCESAR4
script_name 'BCESAR4'
gosub @BCESAR4_47
if 
  has_deatharrest_been_executed 
goto_if_false @BCESAR4_38
gosub @BCESAR4_2683

:BCESAR4_38
gosub @BCESAR4_2736
terminate_this_script 

:BCESAR4_47
$onmission = 1

:BCESAR4_54
wait 0
if 
  $flag_bcesar_mission_counter == 0
goto_if_false @BCESAR4_401
Text.LoadMissionText('BCESAR4')
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BCESAR4_168
34@ = Char.GetCarIsUsing($scplayer)
Car.SetAsMissionCar(34@)
$x, $y, $z = Car.GetCoordinates(34@)
$z += 1000.0
Car.SetCoordinates(34@, $x, $y, $z)
Car.FreezePosition(34@, True)
goto @BCESAR4_175

:BCESAR4_168
34@ = -1

:BCESAR4_175
World.ClearArea(1557.162, 24.305, 22.7313, 100.0, True)
Player.MakeSafeForCutscene($player1)
Streaming.Switch(False)
Cutscene.Load('BCESAR4')

:BCESAR4_219
if 
  not Cutscene.HasLoaded
goto_if_false @BCESAR4_243
wait 0
goto @BCESAR4_219

:BCESAR4_243
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:BCESAR4_252
if 
  not Cutscene.HasFinished
goto_if_false @BCESAR4_276
wait 0
goto @BCESAR4_252

:BCESAR4_276
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:BCESAR4_289
if 
  Camera.GetFadingStatus
goto_if_false @BCESAR4_313
wait 0
goto @BCESAR4_289

:BCESAR4_313
Cutscene.Clear
$flag_stage_of_bcesar_race = 1
$start_the_bcesar_race = 1
if 
  34@ <> -1
goto_if_false @BCESAR4_394
if 
  not Car.IsDead(34@)
goto_if_false @BCESAR4_394
Car.FreezePosition(34@, False)
$z -= 1000.0
Car.SetCoordinates(34@, $x, $y, $z)

:BCESAR4_394
goto @BCESAR4_2685

:BCESAR4_401
if 
  $flag_bcesar_mission_counter == 2
goto_if_false @BCESAR4_1629
if 
  Char.IsInArea3D($scplayer, -782.3699, -147.948, 19.5518, -405.0757, -237.5195, 91.1306, False)
goto_if_false @BCESAR4_1601
$onmission = 1
Camera.DoFade(1000, Fade.Out)

:BCESAR4_481
if 
  Camera.GetFadingStatus
goto_if_false @BCESAR4_505
wait 0
goto @BCESAR4_481

:BCESAR4_505
Streaming.RequestModel(439)
Streaming.RequestModel(475)
Streaming.RequestModel(526)
Streaming.RequestModel(101)
Streaming.RequestModel(23)
Streaming.RequestModel(290)
Streaming.RequestAnimation("KISSING")
World.ClearArea(-518.049, -189.3775, 79.3468, 100.0, False)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-535.8186, -198.0116, 80.8647, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-535.5711, -197.1029, 80.5285, SwitchType.JumpCut)
if 
  not Char.IsDead($scplayer)
goto_if_false @BCESAR4_732
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BCESAR4_732
$car = Char.GetCarIsUsing($scplayer)
if 
  $car > 0
goto_if_false @BCESAR4_732
if 
  not Car.IsDead($car)
goto_if_false @BCESAR4_732
Car.SetVisible($car, False)
Car.FreezePosition($car, True)
Car.SetCollision($car, False)
Char.SetVisible($scplayer, False)

:BCESAR4_732
wait 1000

:BCESAR4_737
if and
  not Streaming.HasModelLoaded(439)
  not Streaming.HasModelLoaded(475)
  not Streaming.HasModelLoaded(526)
  not Streaming.HasModelLoaded(101)
  not Streaming.HasModelLoaded(23)
  not Streaming.HasModelLoaded(290)
goto_if_false @BCESAR4_787
wait 0
goto @BCESAR4_737

:BCESAR4_787
if 
  not Streaming.HasAnimationLoaded("KISSING")
goto_if_false @BCESAR4_820
wait 0
goto @BCESAR4_787

:BCESAR4_820
35@ = Car.Create(439, -536.7188, -192.5453, 77.404)
38@ = Char.Create(PedType.Mission1, 101, -530.4067, -188.8082, 77.3986)
Car.SetHeading(35@, 287.0)
41@ = Sequence.Open()
Task.PlayAnim(-1, "GIFT_GIVE", "KISSING", 1000.0, False, False, False, False, -2)
Task.EnterCarAsDriver(-1, 35@, -2)
Task.CarDriveToCoord(-1, 35@, -507.5502, -99.2875, 61.825, 10.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Sequence.Close(41@)
Char.PerformSequence(38@, 41@)
Sequence.Clear(41@)
36@ = Car.Create(475, -536.158, -185.2865, 77.398)
39@ = Char.Create(PedType.Mission1, 23, -530.4067, -187.8082, 77.3986)
Char.SetHeading(39@, 180.0)
Car.SetHeading(36@, 243.0)
41@ = Sequence.Open()
Task.PlayAnim(-1, "GIFT_GET", "KISSING", 1000.0, False, False, False, False, -2)
Task.EnterCarAsDriver(-1, 36@, -2)
Task.CarDriveToCoord(-1, 36@, -507.5502, -99.2875, 61.825, 10.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Sequence.Close(41@)
Char.PerformSequence(39@, 41@)
Sequence.Clear(41@)
37@ = Car.Create(526, -524.9425, -184.208, 77.2766)
40@ = Char.CreateInsideCar(37@, PedType.Mission1, 290)
Car.SetHeading(37@, 239.0)
41@ = Sequence.Open()
Task.Pause(-1, 7000)
Task.CarDriveToCoord(-1, 37@, -507.5502, -99.2875, 61.825, 10.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Sequence.Close(41@)
Char.PerformSequence(40@, 41@)
Sequence.Clear(41@)
Camera.DoFade(800, Fade.In)
skip_cutscene_start_internal @BCESAR4_1310
wait 10000
Camera.DoFade(1000, Fade.Out)

:BCESAR4_1286
if 
  Camera.GetFadingStatus
goto_if_false @BCESAR4_1310
wait 0
goto @BCESAR4_1286

:BCESAR4_1310
skip_cutscene_end 
if 
  not Car.IsDead(35@)
goto_if_false @BCESAR4_1333
Car.Delete(35@)

:BCESAR4_1333
if 
  not Car.IsDead(36@)
goto_if_false @BCESAR4_1354
Car.Delete(36@)

:BCESAR4_1354
if 
  not Car.IsDead(37@)
goto_if_false @BCESAR4_1375
Car.Delete(37@)

:BCESAR4_1375
if 
  not Char.IsDead(38@)
goto_if_false @BCESAR4_1396
Char.Delete(38@)

:BCESAR4_1396
if 
  not Char.IsDead(39@)
goto_if_false @BCESAR4_1417
Char.Delete(39@)

:BCESAR4_1417
if 
  not Char.IsDead(40@)
goto_if_false @BCESAR4_1438
Char.Delete(40@)

:BCESAR4_1438
Streaming.MarkModelAsNoLongerNeeded(439)
Streaming.MarkModelAsNoLongerNeeded(475)
Streaming.MarkModelAsNoLongerNeeded(526)
Streaming.MarkModelAsNoLongerNeeded(101)
Streaming.MarkModelAsNoLongerNeeded(23)
Streaming.MarkModelAsNoLongerNeeded(290)
Streaming.RemoveAnimation("KISSING")
if 
  not Char.IsDead($scplayer)
goto_if_false @BCESAR4_1579
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BCESAR4_1579
$car = Char.GetCarIsUsing($scplayer)
if 
  $car > 0
goto_if_false @BCESAR4_1579
if 
  not Car.IsDead($car)
goto_if_false @BCESAR4_1579
Car.SetVisible($car, True)
Car.FreezePosition($car, False)
Car.SetCollision($car, True)
Char.SetVisible($scplayer, True)

:BCESAR4_1579
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(800, Fade.In)

:BCESAR4_1601
$flag_bcesar_mission_counter = -1
$onmission = 0
34@ = 0
goto @BCESAR4_2685

:BCESAR4_1629
if 
  $flag_bcesar_mission_counter == 4
goto_if_false @BCESAR4_2019
Text.LoadMissionText('BCESAR4')
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BCESAR4_1710
34@ = Char.GetCarIsUsing($scplayer)
Car.FreezePosition(34@, True)
Car.SetVisible(34@, False)
Car.SetCollision(34@, False)
goto @BCESAR4_1717

:BCESAR4_1710
34@ = -1

:BCESAR4_1717
World.ClearArea(-526.7778, -189.0571, 76.9917, 100.0, True)
Player.MakeSafeForCutscene($player1)
Streaming.Switch(False)
Cutscene.Load('BCESA4W')

:BCESAR4_1761
if 
  not Cutscene.HasLoaded
goto_if_false @BCESAR4_1785
wait 0
goto @BCESAR4_1761

:BCESAR4_1785
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:BCESAR4_1794
if 
  not Cutscene.HasFinished
goto_if_false @BCESAR4_1818
wait 0
goto @BCESAR4_1794

:BCESAR4_1818
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:BCESAR4_1831
if 
  Camera.GetFadingStatus
goto_if_false @BCESAR4_1855
wait 0
goto @BCESAR4_1831

:BCESAR4_1855
Cutscene.Clear
if 
  34@ <> -1
goto_if_false @BCESAR4_1923
if 
  not Car.IsDead(34@)
goto_if_false @BCESAR4_1916
Car.FreezePosition(34@, False)
Car.SetVisible(34@, True)
Car.SetCollision(34@, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:BCESAR4_1916
goto @BCESAR4_1957

:BCESAR4_1923
Char.SetCoordinates($scplayer, -503.3945, -186.0599, 76.6103)
Char.SetHeading($scplayer, 53.0)
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:BCESAR4_1957
Camera.DoFade(1000, Fade.In)
Blip.Remove($bcesar_contact_blip)
Stat.RegisterMissionPassed('BCESAR4')
Text.PrintWithNumberBig('M_PASSD', 3, 5000, TextStyle.Middle)
$flag_stage_of_bcesar_race = 0
$start_the_bcesar_race = 0
goto @BCESAR4_2685

:BCESAR4_2019
if 
  $flag_bcesar_mission_counter == 5
goto_if_false @BCESAR4_2222
Text.LoadMissionText('BCESAR4')
World.ClearArea(-526.7778, -189.0571, 76.9917, 100.0, True)
Char.SetCoordinates($scplayer, -495.9034, -196.2218, 77.3986)
Player.MakeSafeForCutscene($player1)
Streaming.Switch(False)
Cutscene.Load('BCESAR5')

:BCESAR4_2112
if 
  not Cutscene.HasLoaded
goto_if_false @BCESAR4_2136
wait 0
goto @BCESAR4_2112

:BCESAR4_2136
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:BCESAR4_2145
if 
  not Cutscene.HasFinished
goto_if_false @BCESAR4_2169
wait 0
goto @BCESAR4_2145

:BCESAR4_2169
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:BCESAR4_2182
if 
  Camera.GetFadingStatus
goto_if_false @BCESAR4_2206
wait 0
goto @BCESAR4_2182

:BCESAR4_2206
Cutscene.Clear
$start_the_bcesar_race = 1
goto @BCESAR4_2685

:BCESAR4_2222
if 
  $flag_bcesar_mission_counter == 9
goto_if_false @BCESAR4_2676
Text.LoadMissionText('BCESAR4')
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BCESAR4_2332
34@ = Char.GetCarIsUsing($scplayer)
Car.SetAsMissionCar(34@)
$x, $y, $z = Car.GetCoordinates(34@)
$z += 1000.0
Car.SetCoordinates(34@, $x, $y, $z)
Car.FreezePosition(34@, True)
goto @BCESAR4_2339

:BCESAR4_2332
34@ = -1

:BCESAR4_2339
World.ClearArea(1557.162, 24.305, 22.7313, 100.0, True)
Player.MakeSafeForCutscene($player1)
Streaming.Switch(False)
Cutscene.Load('BCESA5W')

:BCESAR4_2383
if 
  not Cutscene.HasLoaded
goto_if_false @BCESAR4_2407
wait 0
goto @BCESAR4_2383

:BCESAR4_2407
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:BCESAR4_2416
if 
  not Cutscene.HasFinished
goto_if_false @BCESAR4_2440
wait 0
goto @BCESAR4_2416

:BCESAR4_2440
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:BCESAR4_2453
if 
  Camera.GetFadingStatus
goto_if_false @BCESAR4_2477
wait 0
goto @BCESAR4_2453

:BCESAR4_2477
Cutscene.Clear
if 
  34@ <> -1
goto_if_false @BCESAR4_2583
if 
  not Car.IsDead(34@)
goto_if_false @BCESAR4_2576
Car.FreezePosition(34@, False)
Car.SetVisible(34@, True)
Car.SetCollision(34@, True)
Car.SetCoordinates(34@, 1557.694, 17.4472, 23.1641)
Car.SetHeading(34@, 9.0)
Char.WarpIntoCar($scplayer, 34@)
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:BCESAR4_2576
goto @BCESAR4_2617

:BCESAR4_2583
Char.SetCoordinates($scplayer, 1559.768, 14.4176, 23.1641)
Char.SetHeading($scplayer, 10.0)
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:BCESAR4_2617
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(1000, Fade.In)
Blip.Remove($bcesar_contact_blip)
Stat.RegisterMissionPassed('BCES4_2')
Text.PrintWithNumberBig('M_PASSD', 3, 5000, TextStyle.Middle)
$start_the_bcesar_race = 0
goto @BCESAR4_2685

:BCESAR4_2676
goto @BCESAR4_54

:BCESAR4_2683
return 

:BCESAR4_2685
if 
  5 > $flag_bcesar_mission_counter
goto_if_false @BCESAR4_2734
if 
  not Car.IsDead(34@)
goto_if_false @BCESAR4_2734
Char.WarpIntoCar($scplayer, 34@)
Car.FreezePosition(34@, False)

:BCESAR4_2734
return 

:BCESAR4_2736
$flag_bcesar_mission_counter += 1
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
if 
  $flag_bcesar_mission_counter == 1
goto_if_false @BCESAR4_2781
Camera.DoFade(0, Fade.Out)

:BCESAR4_2781
if 
  $flag_bcesar_mission_counter == 6
goto_if_false @BCESAR4_2805
Camera.DoFade(0, Fade.Out)

:BCESAR4_2805
return 

//-------------Mission 49---------------
// Originally: Wear Flowers In Your Hair

:GARAG1
script_name 'GARAG1'
gosub @GARAG1_47
if 
  has_deatharrest_been_executed 
goto_if_false @GARAG1_38
gosub @GARAG1_24492

:GARAG1_38
gosub @GARAG1_24510
terminate_this_script 

:GARAG1_47
$onmission = 1
Weather.ForceNow(WeatherType.SunnySf)
Stat.RegisterMissionGiven
Text.LoadMissionText('GARAGE1')
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)

:GARAG1_85
if 
  Camera.GetFadingStatus
goto_if_false @GARAG1_109
wait 0
goto @GARAG1_85

:GARAG1_109
Streaming.SetAreaVisible(1)
Cutscene.Load('GARAG1B')

:GARAG1_124
if 
  not Cutscene.HasLoaded
goto_if_false @GARAG1_148
wait 0
goto @GARAG1_124

:GARAG1_148
Cutscene.Start
Camera.DoFade(1000, Fade.In)
wait 1000

:GARAG1_162
if 
  not Cutscene.HasFinished
goto_if_false @GARAG1_186
wait 0
goto @GARAG1_162

:GARAG1_186
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:GARAG1_201
if 
  Camera.GetFadingStatus
goto_if_false @GARAG1_225
wait 0
goto @GARAG1_201

:GARAG1_225
Streaming.SetAreaVisible(0)
Streaming.LoadSpecialCharacter(3, 'JETHRO')

:GARAG1_242
if 
  not Streaming.HasSpecialCharacterLoaded(3)
goto_if_false @GARAG1_268
wait 0
goto @GARAG1_242

:GARAG1_268
135@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.ClearEventResponse(135@, 12)
DecisionMakerChar.ClearEventResponse(135@, 13)
DecisionMakerChar.ClearEventResponse(135@, 56)
Game.SetScriptLimitToGangSize(3)
Game.MakeRoomInPlayerGangForMissionPeds(3)
54@ = -1669.0
59@ = 439.773
64@ = 6.219
43@ = 80.0
55@ = -2230.168
60@ = 544.7148
65@ = 34.2219
56@ = -2248.101
61@ = 132.8547
66@ = 35.3302
57@ = -2052.101
62@ = -147.8547
67@ = 28.3302
58@ = -2059.553
63@ = -22.1661
68@ = 34.305
45@ = -2584.0
46@ = 585.0
47@ = 14.0
48@ = -1624.41
49@ = 725.25
50@ = 14.11
69@ = -2042.03
70@ = 178.11
71@ = 28.15
101@ = 1
102@ = 0
103@ = 0
104@ = 0
107@ = 0
105@ = 0
106@ = 0
114@ = 0
120@ = 0
121@ = 0
113@ = 0
109@ = 0
110@ = 0
112@ = 0
108@ = 0
111@ = 0
$t2_cop_timer = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
72@ = -1674.21
77@ = 438.5
82@ = 6.2
73@ = -2237.0
78@ = 542.0782
83@ = 33.901
74@ = -2243.101
79@ = 128.8547
84@ = 34.3302
75@ = -2052.101
80@ = -147.8547
85@ = 28.3302
119@ = 0
348@ = 0
134@ = 0
349@ = 0
if 
  349@ == 1
goto_if_false @GARAG1_947
242@ = Char.Create(PedType.CivMale, 0, 0.0, 0.0, 0.0)
93@ = Char.Create(PedType.CivMale, 291, -2031.252, 164.0169, 27.8429)
94@ = Char.Create(PedType.CivMale, 292, 72@(134@,5f), 77@(134@,5f), 82@(134@,5f))

:GARAG1_947
set_var_text_label s$flag_is_zero_on_bike[0] = 'GAR1_AA'
set_var_text_label s$flag_is_zero_on_bike[1] = 'GAR1_AB'
set_var_text_label s$flag_is_zero_on_bike[2] = 'GAR1_AC'
set_var_text_label s$flag_is_zero_on_bike[3] = 'GAR1_AD'
set_var_text_label s$flag_is_zero_on_bike[4] = 'GAR1_AE'
set_var_text_label s$flag_is_zero_on_bike[5] = 'GAR1_AF'
set_var_text_label s$flag_is_zero_on_bike[6] = 'GAR1_AG'
set_var_text_label s$flag_is_zero_on_bike[7] = 'GAR1_AH'
set_var_text_label s$flag_is_zero_on_bike[8] = 'GAR1_AJ'
set_var_text_label s$flag_is_zero_on_bike[9] = 'GAR1_BA'
set_var_text_label s$flag_is_zero_on_bike[10] = 'GAR1_BB'
set_var_text_label s$flag_is_zero_on_bike[11] = 'GAR1_BC'
set_var_text_label s$flag_is_zero_on_bike[12] = 'GAR1_BD'
set_var_text_label s$flag_is_zero_on_bike[13] = 'GAR1_BE'
set_var_text_label s$flag_is_zero_on_bike[14] = 'GAR1_BF'
set_var_text_label s$flag_is_zero_on_bike[15] = 'GAR1_BG'
set_var_text_label s$flag_is_zero_on_bike[16] = 'GAR1_BH'
set_var_text_label s$flag_is_zero_on_bike[17] = 'GAR1_CA'
set_var_text_label s$flag_is_zero_on_bike[18] = 'GAR1_CB'
set_var_text_label s$flag_is_zero_on_bike[19] = 'GAR1_CC'
set_var_text_label s$flag_is_zero_on_bike[20] = 'GAR1_DA'
set_var_text_label s$flag_is_zero_on_bike[21] = 'GAR1_DF'
set_var_text_label s$flag_is_zero_on_bike[22] = 'GAR1_DB'
set_var_text_label s$flag_is_zero_on_bike[23] = 'GAR1_DC'
set_var_text_label s$flag_is_zero_on_bike[24] = 'GAR1_DD'
set_var_text_label s$flag_is_zero_on_bike[25] = 'GAR1_DE'
set_var_text_label s$flag_is_zero_on_bike[26] = 'GAR1_EA'
set_var_text_label s$flag_is_zero_on_bike[27] = 'GAR1_EB'
set_var_text_label s$flag_is_zero_on_bike[28] = 'GAR1_EC'
set_var_text_label s$flag_is_zero_on_bike[29] = 'GAR1_ED'
set_var_text_label s$flag_is_zero_on_bike[30] = 'GAR1_EE'
set_var_text_label s$flag_is_zero_on_bike[31] = 'GAR1_FA'
set_var_text_label s$flag_is_zero_on_bike[32] = 'GAR1_FB'
set_var_text_label s$flag_is_zero_on_bike[33] = 'GAR1_FC'
set_var_text_label s$flag_is_zero_on_bike[34] = 'GAR1_FD'
set_var_text_label s$flag_is_zero_on_bike[35] = 'GAR1_FE'
set_var_text_label s$flag_is_zero_on_bike[36] = 'GAR1_FF'
set_var_text_label s$flag_is_zero_on_bike[37] = 'GAR1_FG'
set_var_text_label s$flag_is_zero_on_bike[38] = 'GAR1_GA'
set_var_text_label s$flag_is_zero_on_bike[39] = 'GAR1_GB'
set_var_text_label s$flag_is_zero_on_bike[40] = 'GAR1_GC'
set_var_text_label s$flag_is_zero_on_bike[41] = 'GAR1_GD'
set_var_text_label s$flag_is_zero_on_bike[42] = 'GAR1_GE'
set_var_text_label s$flag_is_zero_on_bike[43] = 'GAR1_GF'
set_var_text_label s$flag_is_zero_on_bike[44] = 'GAR1_GG'
set_var_text_label s$flag_is_zero_on_bike[45] = 'GAR1_GH'
set_var_text_label s$flag_is_zero_on_bike[46] = 'GAR1_GI'
set_var_text_label s$flag_is_zero_on_bike[47] = 'GAR1_GJ'
set_var_text_label s$flag_is_zero_on_bike[48] = 'GAR1_HA'
set_var_text_label s$flag_is_zero_on_bike[49] = 'GAR1_HB'
set_var_text_label s$flag_is_zero_on_bike[50] = 'GAR1_HC'
set_var_text_label s$flag_is_zero_on_bike[51] = 'GAR1_HD'
set_var_text_label s$flag_is_zero_on_bike[52] = 'GAR1_HE'
set_var_text_label s$flag_is_zero_on_bike[53] = 'GAR1_HF'
set_var_text_label s$flag_is_zero_on_bike[54] = 'GAR1_HG'
set_var_text_label s$flag_is_zero_on_bike[55] = 'GAR1_JA'
set_var_text_label s$flag_is_zero_on_bike[56] = 'GAR1_JB'
set_var_text_label s$flag_is_zero_on_bike[57] = 'GAR1_JC'
set_var_text_label s$flag_is_zero_on_bike[58] = 'GAR1_JD'
set_var_text_label s$flag_is_zero_on_bike[59] = 'GAR1_JE'
set_var_text_label s$flag_is_zero_on_bike[60] = 'GAR1_JF'
set_var_text_label s$flag_is_zero_on_bike[61] = 'GAR1_JG'
set_var_text_label s$flag_is_zero_on_bike[62] = 'GAR1_JH'
set_var_text_label s$flag_is_zero_on_bike[63] = 'GAR1_JJ'
set_var_text_label s$flag_is_zero_on_bike[64] = 'GAR1_KA'
set_var_text_label s$flag_is_zero_on_bike[65] = 'GAR1_KB'
set_var_text_label s$flag_is_zero_on_bike[66] = 'GAR1_KC'
set_var_text_label s$flag_is_zero_on_bike[67] = 'GAR1_KD'
set_var_text_label s$flag_is_zero_on_bike[68] = 'GAR1_KE'
set_var_text_label s$flag_is_zero_on_bike[69] = 'GAR1_LA'
set_var_text_label s$flag_is_zero_on_bike[70] = 'GAR1_LB'
set_var_text_label s$flag_is_zero_on_bike[71] = 'GAR1_LC'
set_var_text_label s$flag_is_zero_on_bike[72] = 'GAR1_LD'
set_var_text_label s$flag_is_zero_on_bike[73] = 'GAR1_MA'
set_var_text_label s$flag_is_zero_on_bike[74] = 'GAR1_MB'
set_var_text_label s$flag_is_zero_on_bike[75] = 'GAR1_MC'
set_var_text_label s$flag_is_zero_on_bike[76] = 'GAR1_MD'
set_var_text_label s$flag_is_zero_on_bike[77] = 'GAR1_ME'
set_var_text_label s$flag_is_zero_on_bike[78] = 'GAR1_MF'
set_var_text_label s$flag_is_zero_on_bike[79] = 'GAR1_MG'
set_var_text_label s$flag_is_zero_on_bike[80] = 'GAR1_NA'
set_var_text_label s$flag_is_zero_on_bike[81] = 'GAR1_NB'
set_var_text_label s$flag_is_zero_on_bike[82] = 'GAR1_NC'
set_var_text_label s$flag_is_zero_on_bike[83] = 'GAR1_ND'
set_var_text_label s$flag_is_zero_on_bike[84] = 'GAR1_NE'
set_var_text_label s$flag_is_zero_on_bike[85] = 'GAR1_NF'
set_var_text_label s$flag_is_zero_on_bike[86] = 'GAR1_NG'
set_var_text_label s$flag_is_zero_on_bike[87] = 'GAR1_NH'
set_var_text_label s$flag_is_zero_on_bike[88] = 'GAR1_NJ'
set_var_text_label s$flag_is_zero_on_bike[89] = 'GAR1_NK'
set_var_text_label s$flag_is_zero_on_bike[91] = 'GAR1_OA'
set_var_text_label s$flag_is_zero_on_bike[92] = 'GAR1_OB'
set_var_text_label s$flag_is_zero_on_bike[93] = 'GAR1_OC'
set_var_text_label s$flag_is_zero_on_bike[94] = 'GAR1_OD'
set_var_text_label s$flag_is_zero_on_bike[95] = 'GAR1_OE'
set_var_text_label s$flag_is_zero_on_bike[96] = 'GAR1_OF'
set_var_text_label s$flag_is_zero_on_bike[97] = 'GAR1_PA'
set_var_text_label s$flag_is_zero_on_bike[98] = 'GAR1_PB'
set_var_text_label s$flag_is_zero_on_bike[99] = 'GAR1_PC'
set_var_text_label s$flag_is_zero_on_bike[100] = 'GAR1_PD'
set_var_text_label s$flag_is_zero_on_bike[101] = 'GAR1_PE'
set_var_text_label s$flag_is_zero_on_bike[102] = 'GAR1_PJ'
set_var_text_label s$flag_is_zero_on_bike[103] = 'GAR1_PF'
set_var_text_label s$flag_is_zero_on_bike[104] = 'GAR1_PG'
set_var_text_label s$flag_is_zero_on_bike[105] = 'GAR1_PH'
set_lvar_int_to_constant 136@ = 6600
set_lvar_int_to_constant 137@ = 6601
set_lvar_int_to_constant 138@ = 6602
set_lvar_int_to_constant 139@ = 6603
set_lvar_int_to_constant 140@ = 6604
set_lvar_int_to_constant 141@ = 6605
set_lvar_int_to_constant 142@ = 6606
set_lvar_int_to_constant 143@ = 6607
set_lvar_int_to_constant 144@ = 6608
set_lvar_int_to_constant 145@ = 6704
set_lvar_int_to_constant 146@ = 6609
set_lvar_int_to_constant 147@ = 6661
set_lvar_int_to_constant 148@ = 6610
set_lvar_int_to_constant 149@ = 6611
set_lvar_int_to_constant 150@ = 6612
set_lvar_int_to_constant 151@ = 6662
set_lvar_int_to_constant 152@ = 6613
set_lvar_int_to_constant 153@ = 6614
set_lvar_int_to_constant 154@ = 6615
set_lvar_int_to_constant 155@ = 6616
set_lvar_int_to_constant 156@ = 6617
set_lvar_int_to_constant 157@ = 6619
set_lvar_int_to_constant 158@ = 6685
set_lvar_int_to_constant 159@ = 6686
set_lvar_int_to_constant 160@ = 6687
set_lvar_int_to_constant 161@ = 6618
set_lvar_int_to_constant 162@ = 6620
set_lvar_int_to_constant 163@ = 6663
set_lvar_int_to_constant 164@ = 6621
set_lvar_int_to_constant 165@ = 6664
set_lvar_int_to_constant 166@ = 6622
set_lvar_int_to_constant 167@ = 6688
set_lvar_int_to_constant 168@ = 6665
set_lvar_int_to_constant 169@ = 6666
set_lvar_int_to_constant 170@ = 6667
set_lvar_int_to_constant 171@ = 6689
set_lvar_int_to_constant 172@ = 6623
set_lvar_int_to_constant 173@ = 6690
set_lvar_int_to_constant 174@ = 6668
set_lvar_int_to_constant 175@ = 6624
set_lvar_int_to_constant 176@ = 6625
set_lvar_int_to_constant 177@ = 6626
set_lvar_int_to_constant 178@ = 6627
set_lvar_int_to_constant 179@ = 6669
set_lvar_int_to_constant 180@ = 6628
set_lvar_int_to_constant 181@ = 6629
set_lvar_int_to_constant 182@ = 6630
set_lvar_int_to_constant 183@ = 6691
set_lvar_int_to_constant 184@ = 6670
set_lvar_int_to_constant 185@ = 6631
set_lvar_int_to_constant 186@ = 6671
set_lvar_int_to_constant 187@ = 6632
set_lvar_int_to_constant 188@ = 6672
set_lvar_int_to_constant 189@ = 6633
set_lvar_int_to_constant 190@ = 6634
set_lvar_int_to_constant 191@ = 6635
set_lvar_int_to_constant 192@ = 6700
set_lvar_int_to_constant 193@ = 6636
set_lvar_int_to_constant 194@ = 6637
set_lvar_int_to_constant 195@ = 6701
set_lvar_int_to_constant 196@ = 6702
set_lvar_int_to_constant 197@ = 6703
set_lvar_int_to_constant 198@ = 6673
set_lvar_int_to_constant 199@ = 6674
set_lvar_int_to_constant 200@ = 6638
set_lvar_int_to_constant 201@ = 6675
set_lvar_int_to_constant 202@ = 6639
set_lvar_int_to_constant 203@ = 6692
set_lvar_int_to_constant 204@ = 6676
set_lvar_int_to_constant 205@ = 6640
set_lvar_int_to_constant 206@ = 6641
set_lvar_int_to_constant 207@ = 6642
set_lvar_int_to_constant 208@ = 6643
set_lvar_int_to_constant 209@ = 6677
set_lvar_int_to_constant 210@ = 6644
set_lvar_int_to_constant 211@ = 6645
set_lvar_int_to_constant 212@ = 6646
set_lvar_int_to_constant 213@ = 6647
set_lvar_int_to_constant 214@ = 6648
set_lvar_int_to_constant 215@ = 6649
set_lvar_int_to_constant 216@ = 6678
set_lvar_int_to_constant 217@ = 6679
set_lvar_int_to_constant 218@ = 6693
set_lvar_int_to_constant 219@ = 6650
set_lvar_int_to_constant 220@ = 6651
set_lvar_int_to_constant 221@ = 6652
set_lvar_int_to_constant 222@ = 6653
set_lvar_int_to_constant 223@ = 6684
set_lvar_int_to_constant 224@ = 6680
set_lvar_int_to_constant 225@ = 6654
set_lvar_int_to_constant 227@ = 6655
set_lvar_int_to_constant 228@ = 6694
set_lvar_int_to_constant 229@ = 6695
set_lvar_int_to_constant 230@ = 6696
set_lvar_int_to_constant 231@ = 6656
set_lvar_int_to_constant 232@ = 6657
set_lvar_int_to_constant 233@ = 6658
set_lvar_int_to_constant 234@ = 6681
set_lvar_int_to_constant 235@ = 6659
set_lvar_int_to_constant 236@ = 6660
set_lvar_int_to_constant 237@ = 6697
set_lvar_int_to_constant 238@ = 6699
set_lvar_int_to_constant 239@ = 6698
set_lvar_int_to_constant 240@ = 6682
set_lvar_int_to_constant 241@ = 6683
TIMERA = 0
World.ClearArea(-2028.773, 154.0429, 27.2416, 10000.0, True)
World.DisableAllEntryExits(True)
Streaming.RequestModel(585)

:GARAG1_3297
if 
  not Streaming.HasModelLoaded(585)
goto_if_false @GARAG1_3324
wait 0
goto @GARAG1_3297

:GARAG1_3324
34@ = Car.Create(585, -2030.628, 170.7956, 27.8359)
Car.SetHealth(34@, 3000)
Char.SetCoordinates($scplayer, -2031.0, 162.0, 27.83)
Car.SetHeading(34@, 270.0)
Streaming.LoadSpecialCharacter(2, 'TRUTH')

:GARAG1_3398
if 
  not Streaming.HasSpecialCharacterLoaded(2)
goto_if_false @GARAG1_3424
wait 0
goto @GARAG1_3398

:GARAG1_3424
93@ = Char.Create(PedType.CivMale, 291, -2031.252, 164.0169, 27.8429)
Char.SetNeverTargeted(93@, True)
Char.SetGetOutUpsideDownCar(93@, False)
Char.SetRelationship(93@, RelationshipType.Like, PedType.Player1)
Char.SetDecisionMaker(93@, 135@)
Char.SetHeading(93@, 180.0)
Char.SetProofs(93@, False, False, False, True, False)
Char.SetHealth(93@, 200)
Char.SetSuffersCriticalHits(93@, False)
Char.SetHeading($scplayer, 0.0)
Camera.SetBehindPlayer

:GARAG1_3532
wait 0
if 
  101@ == 1
goto_if_false @GARAG1_3561
gosub @GARAG1_3743

:GARAG1_3561
if 
  102@ == 1
goto_if_false @GARAG1_3586
gosub @GARAG1_9738

:GARAG1_3586
if 
  103@ == 1
goto_if_false @GARAG1_3611
gosub @GARAG1_15129

:GARAG1_3611
if 
  105@ == 1
goto_if_false @GARAG1_3636
gosub @GARAG1_7692

:GARAG1_3636
if 
  106@ == 1
goto_if_false @GARAG1_3661
gosub @GARAG1_13409

:GARAG1_3661
if 
  107@ == 1
goto_if_false @GARAG1_3686
gosub @GARAG1_17180

:GARAG1_3686
if 
  109@ == 1
goto_if_false @GARAG1_3711
goto @GARAG1_24426

:GARAG1_3711
if 
  110@ == 1
goto_if_false @GARAG1_3736
goto @GARAG1_24492

:GARAG1_3736
goto @GARAG1_3532

:GARAG1_3743
set_lvar_int_to_lvar_int 242@ = 93@
set_lvar_int_to_lvar_int 243@ = 93@
set_lvar_int_to_lvar_int 244@ = 93@
set_lvar_int_to_lvar_int 245@ = 93@
set_lvar_int_to_lvar_int 246@ = 93@
set_lvar_int_to_lvar_int 247@ = 93@
set_lvar_int_to_lvar_int 248@ = 93@
set_lvar_int_to_var_int 251@ = $scplayer
set_lvar_int_to_lvar_int 252@ = 93@
set_lvar_int_to_var_int 253@ = $scplayer
set_lvar_int_to_lvar_int 254@ = 93@
set_lvar_int_to_lvar_int 255@ = 93@
set_lvar_int_to_lvar_int 256@ = 93@
set_lvar_int_to_var_int 257@ = $scplayer
set_lvar_int_to_lvar_int 258@ = 93@
set_lvar_int_to_lvar_int 259@ = 93@
set_lvar_int_to_lvar_int 260@ = 93@
set_lvar_int_to_lvar_int 261@ = 93@
Streaming.RequestAnimation("GANGS")

:GARAG1_3896
if 
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @GARAG1_3927
wait 0
goto @GARAG1_3896

:GARAG1_3927
Camera.SetFixedPosition(-2021.483, 159.1135, 30.588, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2022.153, 159.8494, 30.4897, SwitchType.JumpCut)
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(-2019.916, 157.5772, 33.449, -2019.951, 157.5985, 31.8268, 4500, True)
Camera.SetVectorTrack(-2020.77, 158.0734, 33.2929, -2020.787, 158.0842, 31.5706, 4500, True)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
World.ClearArea(-2031.77, 161.21, 29.42, 1000.0, True)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Camera.DoFade(1000, Fade.In)
Hud.SwitchWidescreen(True)

:GARAG1_4118
if 
  Camera.GetFadingStatus
goto_if_false @GARAG1_4142
wait 0
goto @GARAG1_4118

:GARAG1_4142
114@ = 0
TIMERA = 0
TIMERB = 0

:GARAG1_4163
if 
  114@ <> 10
goto_if_false @GARAG1_4729
wait 0
if 
  114@ == 0
goto_if_false @GARAG1_4217
skip_cutscene_start_internal @GARAG1_4729
gosub @GARAG1_24089

:GARAG1_4217
if 
  114@ == 1
goto_if_false @GARAG1_4498
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_4484
130@ = Sequence.Open()
Task.PlayAnim(-1, "PRTIAL_GNGTLKH", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKA", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKD", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKH", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKD", "GANGS", 4.0, False, False, False, False, -1)
Sequence.Close(130@)
Char.PerformSequence(93@, 130@)
Sequence.Clear(130@)

:GARAG1_4484
gosub @GARAG1_24089
TIMERA = 0

:GARAG1_4498
if and
  114@ >= 2
  3 >= 114@
goto_if_false @GARAG1_4530
gosub @GARAG1_24089

:GARAG1_4530
if 
  114@ == 4
goto_if_false @GARAG1_4608
Camera.ResetNewScriptables
Camera.SetFixedPosition(-2030.073, 161.3698, 28.8915, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2030.593, 162.2026, 29.0817, SwitchType.JumpCut)
gosub @GARAG1_24089

:GARAG1_4608
if or
  114@ >= 5
  6 >= 114@
goto_if_false @GARAG1_4640
gosub @GARAG1_24089

:GARAG1_4640
if 
  114@ == 7
goto_if_false @GARAG1_4672
gosub @GARAG1_24089
114@ = 10

:GARAG1_4672
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GARAG1_4696
114@ = 10
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:GARAG1_4696
if 
  TIMERB > 23500
goto_if_false @GARAG1_4722
114@ = 10

:GARAG1_4722
goto @GARAG1_4163

:GARAG1_4729
skip_cutscene_end 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Player.SetControl($player1, True)
Camera.ResetNewScriptables
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Text.ClearPrints
if 
  Player.IsPlaying($player1)
goto_if_false @GARAG1_4775
Char.ShutUpForScriptedSpeech($scplayer, True)

:GARAG1_4775
Audio.SetRadioChannel(RadioChannel.KDST)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
348@ = 9
349@ = 0
114@ = 0
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_4872
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_4872
Task.EnterCarAsPassenger(93@, 34@, -2, 0)
Char.SetCantBeDraggedOut(93@, True)
Char.SetStayInCarWhenJacked(93@, True)

:GARAG1_4872
Streaming.RemoveAnimation("GANGS")
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_5345
127@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(127@, True)
Text.PrintNow('GAR1_22', 5000, 1)

:GARAG1_4928
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @GARAG1_5292
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @GARAG1_5024
101@ = 0
102@ = 0
103@ = 0
105@ = 0
106@ = 0
107@ = 0
109@ = 1
110@ = 0
return 

:GARAG1_5024
if 
  Car.IsDead(34@)
goto_if_false @GARAG1_5114
Text.PrintNow('GAR1_07', 5000, 1)
101@ = 0
102@ = 0
103@ = 0
105@ = 0
106@ = 0
107@ = 0
109@ = 0
110@ = 1
return 

:GARAG1_5114
if 
  Char.IsDead(93@)
goto_if_false @GARAG1_5204
Text.PrintNow('GAR1_17', 5000, 1)
101@ = 0
102@ = 0
103@ = 0
105@ = 0
106@ = 0
107@ = 0
109@ = 0
110@ = 1
return 

:GARAG1_5204
if 
  Car.IsOnFire(34@)
goto_if_false @GARAG1_5285
Car.Explode(34@)
Text.PrintNow('GAR1_07', 5000, 1)
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
return 

:GARAG1_5285
goto @GARAG1_4928

:GARAG1_5292
Blip.Remove(127@)
122@(134@,5i) = Blip.AddForCoord(54@(134@,5f), 59@(134@,5f), 64@(134@,5f))
Blip.SetCoordAppearance(122@(134@,5i), 1)
goto @GARAG1_5377

:GARAG1_5345
Text.PrintNow('GAR1_07', 5000, 1)
101@ = 0
110@ = 1
return 

:GARAG1_5377
Streaming.RequestModel(525)
Streaming.RequestAnimation("CAR")

:GARAG1_5389
if or
  not Streaming.HasModelLoaded(525)
  not Streaming.HasAnimationLoaded("CAR")
goto_if_false @GARAG1_5423
wait 0
goto @GARAG1_5389

:GARAG1_5423
94@(134@,4i) = Char.Create(PedType.CivMale, 292, 72@(134@,5f), 77@(134@,5f), 82@(134@,5f))
Char.SetNeverTargeted(94@(134@,4i), True)
Char.SetHeading(94@(134@,4i), 120.0)
Char.SetProofs(94@(134@,4i), False, False, False, True, False)
36@ = Car.Create(525, -1676.0, 440.0, 6.7)
Car.SetHeading(36@, 229.0)
Char.SetRelationship(94@(134@,4i), RelationshipType.Like, PedType.Player1)
Char.SetDecisionMaker(94@(134@,4i), 135@)
Car.Delete(36@)
Char.Delete(94@(134@,4i))
gosub @GARAG1_18471
if 
  110@ == 1
goto_if_false @GARAG1_5601
return 

:GARAG1_5601
TIMERA = 0
Streaming.RequestAnimation("CAR_CHAT")

:GARAG1_5620
if 
  not Streaming.HasAnimationLoaded("CAR_CHAT")
goto_if_false @GARAG1_5654
wait 0
goto @GARAG1_5620

:GARAG1_5654
set_lvar_int_to_lvar_int 262@ = 93@
set_lvar_int_to_lvar_int 263@ = 93@
set_lvar_int_to_lvar_int 264@ = 94@
set_lvar_int_to_lvar_int 265@ = 94@
set_lvar_int_to_lvar_int 266@ = 93@
set_lvar_int_to_lvar_int 267@ = 93@
set_lvar_int_to_lvar_int 268@ = 93@
set_lvar_int_to_var_int 269@ = $scplayer
set_lvar_int_to_lvar_int 270@ = 93@
set_lvar_int_to_lvar_int 271@ = 93@
set_lvar_int_to_lvar_int 272@ = 93@
set_lvar_int_to_lvar_int 273@ = 94@
set_lvar_int_to_var_int 274@ = $scplayer
set_lvar_int_to_var_int 275@ = $scplayer
set_lvar_int_to_var_int 276@ = $scplayer
set_lvar_int_to_lvar_int 277@ = 94@
set_lvar_int_to_lvar_int 278@ = 93@
set_lvar_int_to_lvar_int 279@ = 94@
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
World.ClearArea(-2031.77, 161.21, 29.42, 1000.0, True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
114@ = 0
TIMERA = 0
TIMERB = 0
World.ClearArea(54@(134@,5f), 59@(134@,5f), 64@(134@,5f), 1000.0, True)
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_5951
if 
  not Car.IsPassengerSeatFree(34@, SeatIndex.RearRight)
goto_if_false @GARAG1_5951
100@ = Car.GetCharInPassengerSeat(34@, 2)
Char.Delete(100@)

:GARAG1_5951
if 
  114@ <> 20
goto_if_false @GARAG1_7286
wait 0
if 
  114@ == 0
goto_if_false @GARAG1_6228
skip_cutscene_start_internal @GARAG1_7286
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_6196
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_6173
Camera.SetFixedPosition(-1674.263, 438.2627, 11.0956, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1674.246, 438.3686, 10.1014, SwitchType.JumpCut)
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @GARAG1_6108
Char.WarpIntoCar($scplayer, 34@)

:GARAG1_6108
Car.SetCoordinates(34@, 54@(134@,5f), 59@(134@,5f), 64@(134@,5f))
Car.SetHeading(34@, 43@)
Car.SetCruiseSpeed(34@, 0.0)
348@ = 20
gosub @GARAG1_24320
goto @GARAG1_6189

:GARAG1_6173
101@ = 0
110@ = 1
return 

:GARAG1_6189
goto @GARAG1_6228

:GARAG1_6196
Text.PrintNow('GAR1_07', 5000, 1)
101@ = 0
110@ = 1
return 

:GARAG1_6228
if 
  114@ == 1
goto_if_false @GARAG1_6526
if 
  TIMERA > 2000
goto_if_false @GARAG1_6526
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_6526
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_6526
Camera.SetFixedPosition(-1672.658, 431.5702, 7.2947, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1672.72, 432.5628, 7.3989, SwitchType.JumpCut)
130@ = Sequence.Open()
Task.PlayAnim(-1, "FIXN_CAR_OUT", "CAR", 4.0, False, False, False, False, 0)
Task.TurnCharToFaceChar(-1, $scplayer)
Task.GoStraightToCoord(-1, -1668.853, 442.619, 6.219, MoveState.Run, -1)
Task.AchieveHeading(-1, 193.0)
Task.EnterCarAsPassenger(-1, 34@, -1, 2)
Sequence.Close(130@)
Char.PerformSequence(94@(134@,4i), 130@)
Sequence.Clear(130@)
114@ = 2
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 1825)

:GARAG1_6481
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @GARAG1_6507
wait 0
goto @GARAG1_6481

:GARAG1_6507
Audio.ReportMissionAudioEventAtChar(94@(134@,4i), 1151)
TIMERA = 0

:GARAG1_6526
if 
  114@ == 2
goto_if_false @GARAG1_6709
if 
  TIMERA > 2000
goto_if_false @GARAG1_6709
Camera.SetFixedPosition(-1665.523, 443.0056, 7.5433, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1666.462, 442.6743, 7.4596, SwitchType.JumpCut)
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_6650
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_6650

:GARAG1_6650
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_6695
Char.SetHeading(94@(134@,4i), 228.0)
Char.SetCollision(94@(134@,4i), True)

:GARAG1_6695
gosub @GARAG1_24320
TIMERA = 0

:GARAG1_6709
if 
  114@ == 3
goto_if_false @GARAG1_6734
gosub @GARAG1_24320

:GARAG1_6734
if 
  114@ == 4
goto_if_false @GARAG1_6759
gosub @GARAG1_24320

:GARAG1_6759
if 
  114@ == 5
goto_if_false @GARAG1_6862
if 
  TIMERA > 1500
goto_if_false @GARAG1_6862
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_6855
Task.PlayAnim(93@, "CAR_SC4_FR", "CAR_CHAT", 4.0, True, False, False, False, 9000)

:GARAG1_6855
gosub @GARAG1_24320

:GARAG1_6862
if 
  114@ == 6
goto_if_false @GARAG1_6996
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_6947
Camera.SetFixedPosition(-1670.605, 442.2138, 7.3642, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1669.891, 441.5237, 7.2424, SwitchType.JumpCut)

:GARAG1_6947
Task.PlayAnim($scplayer, "CAR_SC1_FL", "CAR_CHAT", 4.0, False, False, False, False, -1)
gosub @GARAG1_24320

:GARAG1_6996
if 
  114@ == 7
goto_if_false @GARAG1_7021
gosub @GARAG1_24320

:GARAG1_7021
if 
  114@ == 8
goto_if_false @GARAG1_7046
gosub @GARAG1_24320

:GARAG1_7046
if 
  114@ == 9
goto_if_false @GARAG1_7141
if 
  TIMERA > 1500
goto_if_false @GARAG1_7141
Camera.SetFixedPosition(-1648.684, 411.5628, 18.7936, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1649.09, 412.4462, 18.5605, SwitchType.JumpCut)
gosub @GARAG1_24320

:GARAG1_7141
if 
  114@ == 10
goto_if_false @GARAG1_7185
if 
  TIMERA > 1500
goto_if_false @GARAG1_7185
gosub @GARAG1_24320

:GARAG1_7185
if 
  114@ == 11
goto_if_false @GARAG1_7229
if 
  TIMERA > 1500
goto_if_false @GARAG1_7229
gosub @GARAG1_24320

:GARAG1_7229
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GARAG1_7253
114@ = 20
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:GARAG1_7253
if 
  TIMERB > 21500
goto_if_false @GARAG1_7279
114@ = 20

:GARAG1_7279
goto @GARAG1_5951

:GARAG1_7286
skip_cutscene_end 
gosub @GARAG1_22024
if 
  110@ == 1
goto_if_false @GARAG1_7315
return 

:GARAG1_7315
Streaming.RemoveAnimation("CAR")
Streaming.MarkModelAsNoLongerNeeded(525)
if 
  not Car.IsDead(36@)
goto_if_false @GARAG1_7350
Car.FreezePosition(36@, False)

:GARAG1_7350
Car.MarkAsNoLongerNeeded(36@)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Streaming.RemoveAnimation("CAR_CHAT")
if 
  Player.IsPlaying($player1)
goto_if_false @GARAG1_7403
Char.ShutUpForScriptedSpeech($scplayer, True)

:GARAG1_7403
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Text.ClearPrints
114@ = 0
348@ = 31
349@ = 0
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_7669
Car.SetStatus(34@, EntityStatus.Player)
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_7558
if 
  not Char.IsInCar(93@, 34@)
goto_if_false @GARAG1_7558
if 
  Car.IsPassengerSeatFree(34@, SeatIndex.TandemRear)
goto_if_false @GARAG1_7533
Char.WarpIntoCarAsPassenger(93@, 34@, 0)
goto @GARAG1_7558

:GARAG1_7533
100@ = Car.GetCharInPassengerSeat(34@, 0)
Char.Delete(100@)
Char.WarpIntoCarAsPassenger(93@, 34@, 0)

:GARAG1_7558
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_7669
if 
  not Char.IsInCar(94@(134@,4i), 34@)
goto_if_false @GARAG1_7669
if 
  Car.IsPassengerSeatFree(34@, SeatIndex.RearRight)
goto_if_false @GARAG1_7640
Char.WarpIntoCarAsPassenger(94@(134@,4i), 34@, 2)
goto @GARAG1_7669

:GARAG1_7640
100@ = Car.GetCharInPassengerSeat(34@, 2)
Char.Delete(100@)
Char.WarpIntoCarAsPassenger(94@(134@,4i), 34@, 2)

:GARAG1_7669
134@ = 1
101@ = 0
105@ = 1
return 

:GARAG1_7692
Streaming.RequestModel(413)

:GARAG1_7697
if 
  not Streaming.HasModelLoaded(413)
goto_if_false @GARAG1_7724
wait 0
goto @GARAG1_7697

:GARAG1_7724
38@ = Car.Create(413, -2607.11, 623.91, 14.66)
Streaming.MarkModelAsNoLongerNeeded(413)
Car.SetHeading(38@, 277.0)
Car.Delete(38@)
128@ = Blip.AddSpriteForCoord(45@, 46@, 47@, RadarSprite.Hospital)
gosub @GARAG1_18471
if 
  110@ == 1
goto_if_false @GARAG1_7810
return 

:GARAG1_7810
set_lvar_int_to_var_int 280@ = $scplayer
set_lvar_int_to_lvar_int 281@ = 93@
set_lvar_int_to_lvar_int 282@ = 93@
set_lvar_int_to_lvar_int 283@ = 93@
set_lvar_int_to_lvar_int 284@ = 93@
set_lvar_int_to_var_int 285@ = $scplayer
set_lvar_int_to_lvar_int 286@ = 93@
set_lvar_int_to_lvar_int 287@ = 93@
set_lvar_int_to_lvar_int 288@ = 93@
set_lvar_int_to_lvar_int 289@ = 93@
set_lvar_int_to_var_int 290@ = $scplayer
set_lvar_int_to_lvar_int 291@ = 93@
set_lvar_int_to_var_int 292@ = $scplayer
set_lvar_int_to_lvar_int 293@ = 93@
set_lvar_int_to_var_int 294@ = $scplayer
set_lvar_int_to_lvar_int 295@ = 93@
set_lvar_int_to_lvar_int 296@ = 93@
Blip.Remove(128@)
Streaming.RequestModel(413)

:GARAG1_7956
if 
  not Streaming.HasModelLoaded(413)
goto_if_false @GARAG1_7983
wait 0
goto @GARAG1_7956

:GARAG1_7983
Streaming.RequestAnimation("CAR_CHAT")

:GARAG1_7995
if 
  not Streaming.HasAnimationLoaded("CAR_CHAT")
goto_if_false @GARAG1_8029
wait 0
goto @GARAG1_7995

:GARAG1_8029
38@ = Car.Create(413, -2607.11, 623.91, 14.66)
Streaming.MarkModelAsNoLongerNeeded(413)
Car.LockDoors(38@, CarLock.Locked)
Car.SetHeading(38@, 180.0)
Car.FreezePosition(38@, True)
348@ = 38
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
114@ = 0
TIMERA = 0
TIMERB = 0
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_8394
Car.SetCoordinates(34@, 45@, 46@, 47@)
40@ = Car.GetHeading(34@)
if and
  40@ > 0.0
  180.0 > 40@
goto_if_false @GARAG1_8224
Car.SetHeading(34@, 90.0)
goto @GARAG1_8234

:GARAG1_8224
Car.SetHeading(34@, 270.0)

:GARAG1_8234
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @GARAG1_8261
Char.WarpIntoCar($scplayer, 34@)

:GARAG1_8261
Camera.SetFixedPosition(-2581.94, 580.42, 17.8189, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2582.491, 581.153, 18.2173, SwitchType.JumpCut)
87@, 88@, 89@ = Car.GetOffsetInWorldCoords(34@, 0.8, 2.2, 0.8)
90@, 91@, 92@ = Car.GetOffsetInWorldCoords(34@, 0.0, -1.5, 0.5)
World.ClearArea(-2607.11, 623.91, 14.66, 1000.0, True)

:GARAG1_8394
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_8453
Task.PlayAnim(93@, "CAR_SC3_FR", "CAR_CHAT", 4.0, True, False, False, False, 9000)

:GARAG1_8453
gosub @GARAG1_24320
World.ClearArea(45@, 46@, 47@, 1000.0, True)
114@ = 0

:GARAG1_8485
if 
  114@ <> 10
goto_if_false @GARAG1_9623
wait 0
gosub @GARAG1_22024
if 
  110@ == 1
goto_if_false @GARAG1_8534
return 

:GARAG1_8534
if 
  114@ == 0
goto_if_false @GARAG1_8777
if 
  TIMERA > 1500
goto_if_false @GARAG1_8777
skip_cutscene_start_internal @GARAG1_9623
if 
  not Char.IsDead(94@)
goto_if_false @GARAG1_8637
Task.PlayAnim(94@, "CAR_SC3_BR", "CAR_CHAT", 4.0, True, False, False, False, 9000)

:GARAG1_8637
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(-2581.94, 580.42, 17.8189, -2583.32, 581.73, 15.39, 5000, True)
Camera.SetVectorTrack(-2582.491, 581.153, 18.2173, -2607.11, 623.91, 14.66, 5000, True)
Task.PlayAnim($scplayer, "CAR_SC1_FL", "CAR_CHAT", 4.0, False, False, False, False, -1)
gosub @GARAG1_24320
TIMERA = 0

:GARAG1_8777
if 
  114@ == 1
goto_if_false @GARAG1_8849
if 
  TIMERA > 1500
goto_if_false @GARAG1_8849
gosub @GARAG1_24320
if 
  not Car.IsDead(38@)
goto_if_false @GARAG1_8849
99@ = Char.CreateInsideCar(38@, PedType.CivMale, 7)

:GARAG1_8849
if 
  114@ == 2
goto_if_false @GARAG1_8946
if 
  TIMERA > 1500
goto_if_false @GARAG1_8946
gosub @GARAG1_24320
Camera.ResetNewScriptables
Camera.SetFixedPosition(-2583.32, 581.73, 15.39, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2607.11, 623.91, 14.66, SwitchType.JumpCut)

:GARAG1_8946
if 
  114@ == 3
goto_if_false @GARAG1_8990
if 
  TIMERA > 1500
goto_if_false @GARAG1_8990
gosub @GARAG1_24320

:GARAG1_8990
if 
  114@ == 4
goto_if_false @GARAG1_9126
if 
  TIMERA > 1500
goto_if_false @GARAG1_9126
if 
  not Car.IsDead(38@)
goto_if_false @GARAG1_9119
Car.FreezePosition(38@, False)
if 
  not Char.IsDead(99@)
goto_if_false @GARAG1_9119
if 
  Char.IsInCar(99@, 38@)
goto_if_false @GARAG1_9119
Task.CarDriveToCoord(99@, 38@, -2607.95, 528.47, 13.98, 25.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)

:GARAG1_9119
gosub @GARAG1_24320

:GARAG1_9126
if 
  114@ == 5
goto_if_false @GARAG1_9228
if 
  TIMERA > 1500
goto_if_false @GARAG1_9228
gosub @GARAG1_24320
Camera.SetFixedPosition(-2614.461, 573.477, 16.9766, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2613.8, 574.224, 16.911, SwitchType.JumpCut)
TIMERA = 0

:GARAG1_9228
if 
  114@ == 6
goto_if_false @GARAG1_9471
if 
  TIMERA > 2500
goto_if_false @GARAG1_9471
gosub @GARAG1_24320
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_9331
Task.PlayAnim(93@, "CAR_SC3_FR", "CAR_CHAT", 4.0, True, False, False, False, 9000)

:GARAG1_9331
if 
  not Char.IsDead(94@)
goto_if_false @GARAG1_9390
Task.PlayAnim(94@, "CAR_SC3_BR", "CAR_CHAT", 4.0, True, False, False, False, 9000)

:GARAG1_9390
Task.PlayAnim($scplayer, "CAR_SC1_FL", "CAR_CHAT", 4.0, False, False, False, False, -1)
Camera.SetFixedPosition(87@, 88@, 89@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(90@, 91@, 92@, SwitchType.JumpCut)

:GARAG1_9471
if 
  114@ == 7
goto_if_false @GARAG1_9515
if 
  TIMERA > 1500
goto_if_false @GARAG1_9515
gosub @GARAG1_24320

:GARAG1_9515
if 
  114@ == 8
goto_if_false @GARAG1_9566
if 
  TIMERA > 1500
goto_if_false @GARAG1_9566
gosub @GARAG1_24320
114@ = 10

:GARAG1_9566
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GARAG1_9590
114@ = 10
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:GARAG1_9590
if 
  TIMERB > 20500
goto_if_false @GARAG1_9616
114@ = 10

:GARAG1_9616
goto @GARAG1_8485

:GARAG1_9623
skip_cutscene_end 
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Text.ClearPrints
Camera.ResetNewScriptables
Streaming.RemoveAnimation("CAR_CHAT")
if 
  Player.IsPlaying($player1)
goto_if_false @GARAG1_9677
Char.ShutUpForScriptedSpeech($scplayer, True)

:GARAG1_9677
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
114@ = 0
348@ = 48
349@ = 0
Char.Delete(99@)
Car.Delete(38@)
105@ = 0
102@ = 1
return 

:GARAG1_9738
Streaming.RequestModel(588)

:GARAG1_9743
if 
  not Streaming.HasModelLoaded(588)
goto_if_false @GARAG1_9770
wait 0
goto @GARAG1_9743

:GARAG1_9770
Streaming.RequestAnimation("SMOKING")

:GARAG1_9781
if 
  not Streaming.HasAnimationLoaded("SMOKING")
goto_if_false @GARAG1_9814
wait 0
goto @GARAG1_9781

:GARAG1_9814
Streaming.LoadSpecialCharacter(4, 'DWAYNE')

:GARAG1_9827
if 
  not Streaming.HasSpecialCharacterLoaded(4)
goto_if_false @GARAG1_9853
wait 0
goto @GARAG1_9827

:GARAG1_9853
Streaming.RequestModel(#CIGAR)

:GARAG1_9857
if 
  not Streaming.HasModelLoaded(#CIGAR)
goto_if_false @GARAG1_9883
wait 0
goto @GARAG1_9857

:GARAG1_9883
122@(134@,5i) = Blip.AddForCoord(54@(134@,5f), 59@(134@,5f), 64@(134@,5f))
Blip.SetCoordAppearance(122@(134@,5i), 1)
if 
  110@ == 14
goto_if_false @GARAG1_10047
94@(134@,4i) = Char.Create(PedType.CivMale, 293, 72@(134@,5f), 77@(134@,5f), 82@(134@,5f))
35@ = Car.Create(588, -2238.888, 541.5267, 34.375)
42@ = Object.Create(#CIGAR, 72@(134@,5f), 77@(134@,5f), 82@(134@,5f))
Car.Delete(35@)
Char.Delete(94@(134@,4i))
Object.Delete(42@)

:GARAG1_10047
gosub @GARAG1_18471
if 
  110@ == 1
goto_if_false @GARAG1_10074
return 

:GARAG1_10074
if 
  Object.DoesExist(42@)
goto_if_false @GARAG1_10095
Object.Delete(42@)

:GARAG1_10095
Streaming.RequestAnimation("CAR_CHAT")

:GARAG1_10107
if 
  not Streaming.HasAnimationLoaded("CAR_CHAT")
goto_if_false @GARAG1_10141
wait 0
goto @GARAG1_10107

:GARAG1_10141
set_lvar_int_to_lvar_int 297@ = 93@
set_lvar_int_to_lvar_int 298@ = 95@
set_lvar_int_to_lvar_int 299@ = 93@
set_lvar_int_to_lvar_int 300@ = 93@
set_lvar_int_to_lvar_int 301@ = 95@
set_lvar_int_to_lvar_int 302@ = 95@
set_lvar_int_to_lvar_int 303@ = 95@
set_lvar_int_to_var_int 304@ = $scplayer
set_lvar_int_to_lvar_int 305@ = 95@
set_lvar_int_to_lvar_int 306@ = 93@
set_lvar_int_to_var_int 307@ = $scplayer
set_lvar_int_to_lvar_int 308@ = 93@
set_lvar_int_to_lvar_int 309@ = 94@
set_lvar_int_to_var_int 310@ = $scplayer
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_10413
if 
  not Object.DoesExist(42@)
goto_if_false @GARAG1_10413
42@ = Object.Create(#CIGAR, 72@(134@,5f), 77@(134@,5f), 82@(134@,5f))
Task.PickUpObject(94@(134@,4i), 42@, 0.04, 0.1, 0.05, 6, 16, "NULL", "NULL", 0)
350@ = Particle.CreateOnChar("EXHALE", 94@(134@,4i), 0.05, 0.12, 0.0, 1)
Particle.AttachToCharBone(350@, 94@(134@,4i), 5)

:GARAG1_10413
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_10882
40@ = Car.GetHeading(34@)
Car.SetCoordinates(34@, 55@, 60@, 65@)
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @GARAG1_10478
Char.WarpIntoCar($scplayer, 34@)

:GARAG1_10478
Camera.SetFixedPosition(-2235.815, 541.4094, 35.7451, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2236.521, 542.1174, 35.7312, SwitchType.JumpCut)
World.ClearArea(54@(134@,5f), 59@(134@,5f), 64@(134@,5f), 1000.0, True)
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_10623
Task.PlayAnimNonInterruptable(94@(134@,4i), "M_SMK_OUT", "SMOKING", 4.0, False, False, False, False, 0)

:GARAG1_10623
if and
  40@ > 90.0
  270.0 > 40@
goto_if_false @GARAG1_10771
Car.SetHeading(34@, 180.0)
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_10722
Task.PlayAnim(93@, "CAR_SC4_FR", "CAR_CHAT", 4.0, True, False, False, False, -1)

:GARAG1_10722
Task.PlayAnim($scplayer, "CAR_SC4_FL", "CAR_CHAT", 4.0, False, False, False, False, -1)
goto @GARAG1_10882

:GARAG1_10771
Car.SetHeading(34@, 0.0)
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_10840
Task.PlayAnim(93@, "CAR_SC3_FR", "CAR_CHAT", 4.0, True, False, False, False, 9000)

:GARAG1_10840
Task.PlayAnim($scplayer, "CAR_SC2_FL", "CAR_CHAT", 4.0, False, False, False, False, -1)

:GARAG1_10882
348@ = 55
gosub @GARAG1_24320
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
114@ = 0
TIMERA = 0
TIMERB = 0

:GARAG1_10946
if 
  114@ <> 20
goto_if_false @GARAG1_13033
wait 0
gosub @GARAG1_22024
if 
  110@ == 1
goto_if_false @GARAG1_10995
return 

:GARAG1_10995
if 
  114@ == 0
goto_if_false @GARAG1_11397
skip_cutscene_start_internal @GARAG1_13033
if 
  TIMERA > 2000
goto_if_false @GARAG1_11397
Particle.Play(350@)
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_11076
Char.StartFacialTalk(94@(134@,4i), 4000)

:GARAG1_11076
gosub @GARAG1_24320
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_11158
Task.PlayAnimNonInterruptable(94@(134@,4i), "M_SMK_OUT", "SMOKING", 4.0, False, False, False, False, 0)
Char.FreezePosition(94@(134@,4i), False)

:GARAG1_11158
if and
  40@ > 90.0
  270.0 > 40@
goto_if_false @GARAG1_11296
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_11247
Task.PlayAnim(93@, "CAR_SC4_FR", "CAR_CHAT", 4.0, True, False, False, False, -1)

:GARAG1_11247
Task.PlayAnim($scplayer, "CAR_SC4_FL", "CAR_CHAT", 4.0, False, False, False, False, -1)
goto @GARAG1_11397

:GARAG1_11296
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_11355
Task.PlayAnim(93@, "CAR_SC3_FR", "CAR_CHAT", 4.0, True, False, False, False, 9000)

:GARAG1_11355
Task.PlayAnim($scplayer, "CAR_SC2_FL", "CAR_CHAT", 4.0, False, False, False, False, -1)

:GARAG1_11397
if 
  114@ == 1
goto_if_false @GARAG1_11783
if 
  TIMERA > 2000
goto_if_false @GARAG1_11783
if 
  not Car.IsDead(35@)
goto_if_false @GARAG1_11751
Car.LockDoors(35@, CarLock.Unlocked)
if 
  not Char.IsDead(95@)
goto_if_false @GARAG1_11655
Task.GoStraightToCoord(95@, -2232.07, 545.04, 34.39, MoveState.Walk, -1)
Streaming.RemoveAnimation("SMOKING")
if and
  40@ > 90.0
  270.0 > 40@
goto_if_false @GARAG1_11597
Camera.SetFixedPosition(-2233.689, 541.4159, 35.2249, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2233.139, 542.2441, 35.1142, SwitchType.JumpCut)
goto @GARAG1_11648

:GARAG1_11597
Camera.SetFixedPosition(-2228.62, 540.7846, 35.5936, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2229.199, 541.5954, 35.5075, SwitchType.JumpCut)

:GARAG1_11648
goto @GARAG1_11687

:GARAG1_11655
Text.PrintNow('GAR1_07', 5000, 1)
102@ = 0
110@ = 1
return 

:GARAG1_11687
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_11728
Car.FreezePosition(35@, False)
gosub @GARAG1_24320
goto @GARAG1_11744

:GARAG1_11728
102@ = 0
110@ = 1
return 

:GARAG1_11744
goto @GARAG1_11783

:GARAG1_11751
Text.PrintNow('GAR1_07', 5000, 1)
102@ = 0
110@ = 1
return 

:GARAG1_11783
if 
  TIMERA > 1500
goto_if_false @GARAG1_12039
if 
  114@ == 2
goto_if_false @GARAG1_12039
gosub @GARAG1_24320
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_12039
Char.SetHeading(94@(134@,4i), 270.0)
130@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2232.07, 545.04, 34.39, MoveState.Walk, -1)
Task.PlayAnim(-1, "CAR_TALKM_IN", "CAR_CHAT", 4.0, False, False, False, False, 0)
Task.PlayAnim(-1, "CAR_TALKM_LOOP", "CAR_CHAT", 4.0, False, False, False, False, 0)
Task.PlayAnim(-1, "CAR_TALKM_OUT", "CAR_CHAT", 4.0, False, False, False, False, 0)
Sequence.Close(130@)
Char.PerformSequence(95@, 130@)
Sequence.Clear(130@)

:GARAG1_12039
if 
  114@ == 3
goto_if_false @GARAG1_12064
gosub @GARAG1_24320

:GARAG1_12064
if 
  114@ == 4
goto_if_false @GARAG1_12089
gosub @GARAG1_24320

:GARAG1_12089
if 
  114@ == 5
goto_if_false @GARAG1_12114
gosub @GARAG1_24320

:GARAG1_12114
if 
  114@ == 6
goto_if_false @GARAG1_12233
gosub @GARAG1_24320
TIMERA = 0
if 
  not Car.IsDead(35@)
goto_if_false @GARAG1_12233
if 
  not Char.IsDead(95@)
goto_if_false @GARAG1_12233
130@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2241.66, 547.19, 34.49, MoveState.Run, -1)
Task.EnterCarAsDriver(-1, 35@, -1)
Sequence.Close(130@)
Char.PerformSequence(95@, 130@)
Sequence.Clear(130@)

:GARAG1_12233
if 
  114@ == 7
goto_if_false @GARAG1_12469
gosub @GARAG1_24320
Camera.SetFixedPosition(-2229.155, 533.4247, 41.4992, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2229.659, 534.123, 40.9914, SwitchType.JumpCut)
if 
  not Car.IsDead(35@)
goto_if_false @GARAG1_12469
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_12469
Char.WarpIntoCar(94@(134@,4i), 35@)
if 
  Char.IsInCar(94@(134@,4i), 35@)
goto_if_false @GARAG1_12469
130@ = Sequence.Open()
Task.CarDriveToCoord(-1, 35@, -2240.43, 557.96, 34.0, 10.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(-1, 35@, -2185.43, 567.96, 34.0, 50.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Sequence.Close(130@)
Char.PerformSequence(95@, 130@)
Sequence.Clear(130@)

:GARAG1_12469
if 
  TIMERA > 4000
goto_if_false @GARAG1_12715
if 
  114@ == 8
goto_if_false @GARAG1_12715
gosub @GARAG1_24320
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_12639
Camera.SetFixedPosition(-2235.01, 538.8505, 34.3478, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2234.183, 539.4094, 34.3942, SwitchType.JumpCut)
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_12639
Task.PlayAnim(93@, "CAR_SC3_FR", "CAR_CHAT", 4.0, True, False, False, False, 9000)

:GARAG1_12639
Particle.Stop(350@)
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_12673
Char.Delete(94@(134@,4i))

:GARAG1_12673
if 
  not Car.IsDead(35@)
goto_if_false @GARAG1_12694
Car.Delete(35@)

:GARAG1_12694
if 
  Object.DoesExist(42@)
goto_if_false @GARAG1_12715
Object.Delete(42@)

:GARAG1_12715
if 
  TIMERA > 1500
goto_if_false @GARAG1_12759
if 
  114@ == 9
goto_if_false @GARAG1_12759
gosub @GARAG1_24320

:GARAG1_12759
if 
  TIMERA > 1500
goto_if_false @GARAG1_12803
if 
  114@ == 10
goto_if_false @GARAG1_12803
gosub @GARAG1_24320

:GARAG1_12803
if 
  TIMERA > 1500
goto_if_false @GARAG1_12847
if 
  114@ == 11
goto_if_false @GARAG1_12847
gosub @GARAG1_24320

:GARAG1_12847
if 
  TIMERA > 1500
goto_if_false @GARAG1_12898
if 
  114@ == 12
goto_if_false @GARAG1_12898
gosub @GARAG1_24320
114@ = 20

:GARAG1_12898
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GARAG1_12998
114@ = 20
Particle.Stop(350@)
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_12952
Char.Delete(94@(134@,4i))

:GARAG1_12952
if 
  not Car.IsDead(35@)
goto_if_false @GARAG1_12973
Car.Delete(35@)

:GARAG1_12973
if 
  Object.DoesExist(42@)
goto_if_false @GARAG1_12994
Object.Delete(42@)

:GARAG1_12994
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:GARAG1_12998
if 
  TIMERB > 40000
goto_if_false @GARAG1_13026
114@ = 20

:GARAG1_13026
goto @GARAG1_10946

:GARAG1_13033
skip_cutscene_end 
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Streaming.RemoveAnimation("CAR_CHAT")
if 
  Player.IsPlaying($player1)
goto_if_false @GARAG1_13083
Char.ShutUpForScriptedSpeech($scplayer, True)

:GARAG1_13083
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
114@ = 0
349@ = 0
Text.ClearPrints
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_13302
Car.SetStatus(34@, EntityStatus.Player)
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_13231
if 
  not Char.IsInCar(93@, 34@)
goto_if_false @GARAG1_13231
if 
  Car.IsPassengerSeatFree(34@, SeatIndex.TandemRear)
goto_if_false @GARAG1_13206
Char.WarpIntoCarAsPassenger(93@, 34@, 0)
goto @GARAG1_13231

:GARAG1_13206
100@ = Car.GetCharInPassengerSeat(34@, 0)
Char.Delete(100@)
Char.WarpIntoCarAsPassenger(93@, 34@, 0)

:GARAG1_13231
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_13302
if 
  not Car.IsDead(35@)
goto_if_false @GARAG1_13302
if 
  not Char.IsInCar(94@(134@,4i), 35@)
goto_if_false @GARAG1_13302
Char.WarpIntoCar(94@(134@,4i), 35@)

:GARAG1_13302
Streaming.MarkModelAsNoLongerNeeded(588)
Streaming.MarkModelAsNoLongerNeeded(#CIGAR)
Streaming.UnloadSpecialCharacter(4)
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_13344
Char.Delete(94@(134@,4i))

:GARAG1_13344
if 
  not Car.IsDead(35@)
goto_if_false @GARAG1_13365
Car.Delete(35@)

:GARAG1_13365
if 
  Object.DoesExist(42@)
goto_if_false @GARAG1_13386
Object.Delete(42@)

:GARAG1_13386
134@ = 2
102@ = 0
106@ = 1
return 

:GARAG1_13409
129@ = Blip.AddSpriteForCoord(48@, 49@, 50@, RadarSprite.Police)
gosub @GARAG1_18471
if 
  110@ == 1
goto_if_false @GARAG1_13452
return 

:GARAG1_13452
Streaming.RequestModel(413)
Streaming.RequestAnimation("CAR_CHAT")

:GARAG1_13469
if or
  not Streaming.HasModelLoaded(413)
  not Streaming.HasAnimationLoaded("CAR_CHAT")
goto_if_false @GARAG1_13508
wait 0
goto @GARAG1_13469

:GARAG1_13508
38@ = Car.Create(413, -1659.92, 751.31, 17.29)
Car.LockDoors(38@, CarLock.Locked)
Car.SetHeading(38@, 180.0)
Car.FreezePosition(38@, True)
if 
  not Car.IsDead(38@)
goto_if_false @GARAG1_13600
99@ = Char.CreateInsideCar(38@, PedType.CivMale, 7)
Car.FreezePosition(38@, False)
Car.SetCruiseSpeed(38@, 30.0)

:GARAG1_13600
set_lvar_int_to_lvar_int 311@ = 93@
set_lvar_int_to_lvar_int 312@ = 93@
set_lvar_int_to_lvar_int 313@ = 93@
set_lvar_int_to_lvar_int 314@ = 93@
set_lvar_int_to_var_int 315@ = $scplayer
set_lvar_int_to_lvar_int 316@ = 93@
set_lvar_int_to_lvar_int 317@ = 93@
set_lvar_int_to_lvar_int 318@ = 93@
set_lvar_int_to_lvar_int 319@ = 93@
set_lvar_int_to_lvar_int 320@ = 93@
set_lvar_int_to_lvar_int 321@ = 93@
set_lvar_int_to_var_int 322@ = $scplayer
set_lvar_int_to_var_int 323@ = $scplayer
set_lvar_int_to_lvar_int 324@ = 94@
set_lvar_int_to_lvar_int 325@ = 93@
set_lvar_int_to_lvar_int 326@ = 93@
set_lvar_int_to_lvar_int 327@ = 93@
set_lvar_int_to_lvar_int 328@ = 93@
set_lvar_int_to_lvar_int 329@ = 93@
set_lvar_int_to_var_int 330@ = $scplayer
set_lvar_int_to_lvar_int 331@ = 93@
set_lvar_int_to_lvar_int 333@ = 93@
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_14055
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @GARAG1_13848
Char.WarpIntoCar($scplayer, 34@)

:GARAG1_13848
40@ = Car.GetHeading(34@)
Car.SetCoordinates(34@, -1626.167, 725.0057, 13.4609)
if and
  40@ > 0.0
  180.0 > 40@
goto_if_false @GARAG1_13924
Car.SetHeading(34@, 90.0)
goto @GARAG1_13934

:GARAG1_13924
Car.SetHeading(34@, 270.0)

:GARAG1_13934
87@, 88@, 89@ = Car.GetOffsetInWorldCoords(34@, 1.0, 1.5, 0.8)
90@, 91@, 92@ = Car.GetOffsetInWorldCoords(34@, 0.0, -1.5, 0.5)
Camera.SetFixedPosition(87@, 88@, 89@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(90@, 91@, 92@, SwitchType.JumpCut)
World.ClearArea(-1659.92, 751.31, 17.29, 1000.0, True)

:GARAG1_14055
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_14114
Task.PlayAnim(93@, "CAR_SC1_FR", "CAR_CHAT", 4.0, True, False, False, False, 9000)

:GARAG1_14114
114@ = 0
348@ = 69
TIMERA = 0
TIMERB = 0

:GARAG1_14142
if 
  114@ <> 20
goto_if_false @GARAG1_14973
wait 0
gosub @GARAG1_22024
if 
  110@ == 1
goto_if_false @GARAG1_14191
return 

:GARAG1_14191
if 
  114@ == 0
goto_if_false @GARAG1_14266
skip_cutscene_start_internal @GARAG1_14973
if 
  TIMERA > 1500
goto_if_false @GARAG1_14266
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_14259
Char.StartFacialTalk(93@, 29000)

:GARAG1_14259
gosub @GARAG1_24320

:GARAG1_14266
if 
  114@ == 1
goto_if_false @GARAG1_14453
if 
  TIMERA > 2000
goto_if_false @GARAG1_14453
gosub @GARAG1_24320
if 
  not Car.IsDead(38@)
goto_if_false @GARAG1_14395
if 
  not Char.IsDead(99@)
goto_if_false @GARAG1_14395
if 
  Char.IsInCar(99@, 38@)
goto_if_false @GARAG1_14395
Task.CarDriveToCoord(99@, 38@, -1716.03, 732.96, 24.9, 15.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:GARAG1_14395
Camera.SetFixedPosition(-1671.547, 729.851, 18.6107, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1670.621, 730.2037, 18.7409, SwitchType.JumpCut)
TIMERA = 0

:GARAG1_14453
if 
  114@ == 2
goto_if_false @GARAG1_14497
if 
  TIMERA > 2000
goto_if_false @GARAG1_14497
gosub @GARAG1_24320

:GARAG1_14497
if 
  114@ == 3
goto_if_false @GARAG1_14725
if 
  TIMERA > 6000
goto_if_false @GARAG1_14725
Camera.SetFixedPosition(-1624.639, 723.3417, 14.5936, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1625.473, 723.8466, 14.8151, SwitchType.JumpCut)
Task.PlayAnim($scplayer, "CAR_SC1_FL", "CAR_CHAT", 4.0, False, False, False, False, -1)
Char.StartFacialTalk($scplayer, 3000)
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_14694
Task.PlayAnim(93@, "CAR_SC1_FR", "CAR_CHAT", 4.0, True, False, False, False, 9000)

:GARAG1_14694
gosub @GARAG1_24320
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_14725
Char.StartFacialTalk(93@, 20000)

:GARAG1_14725
if and
  114@ >= 4
  7 >= 114@
goto_if_false @GARAG1_14757
gosub @GARAG1_24320

:GARAG1_14757
if 
  114@ == 8
goto_if_false @GARAG1_14859
if 
  TIMERA > 2000
goto_if_false @GARAG1_14859
Camera.SetFixedPosition(-1628.8, 727.3613, 14.7421, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1627.844, 727.0695, 14.7728, SwitchType.JumpCut)
gosub @GARAG1_24320
TIMERA = 0

:GARAG1_14859
if and
  114@ >= 9
  11 >= 114@
goto_if_false @GARAG1_14891
gosub @GARAG1_24320

:GARAG1_14891
if 
  114@ >= 12
goto_if_false @GARAG1_14916
114@ = 20

:GARAG1_14916
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GARAG1_14940
114@ = 20
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:GARAG1_14940
if 
  TIMERB > 29000
goto_if_false @GARAG1_14966
114@ = 20

:GARAG1_14966
goto @GARAG1_14142

:GARAG1_14973
skip_cutscene_end 
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_14996
Char.StopFacialTalk(93@)

:GARAG1_14996
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
if 
  Player.IsPlaying($player1)
goto_if_false @GARAG1_15032
Char.ShutUpForScriptedSpeech($scplayer, True)

:GARAG1_15032
Streaming.RemoveAnimation("CAR_CHAT")
Streaming.MarkModelAsNoLongerNeeded(413)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
114@ = 0
348@ = 80
349@ = 0
Text.ClearPrints
Blip.Remove(129@)
Char.Delete(99@)
Car.Delete(38@)
106@ = 0
103@ = 1
Streaming.RemoveAnimation("CAR_CHAT")
return 

:GARAG1_15129
122@(134@,5i) = Blip.AddForCoord(54@(134@,5f), 59@(134@,5f), 64@(134@,5f))
Blip.SetCoordAppearance(122@(134@,5i), 1)
Streaming.RequestAnimation("CRIB")
Streaming.RequestModel(465)

:GARAG1_15183
if or
  not Streaming.HasAnimationLoaded("CRIB")
  not Streaming.HasModelLoaded(465)
goto_if_false @GARAG1_15218
wait 0
goto @GARAG1_15183

:GARAG1_15218
41@ = Object.Create(#PARKBENCH1, -2242.6, 136.91, 34.65)
Object.Delete(41@)
37@ = Car.Create(465, -2250.33, 139.91, 44.66)
Car.Delete(37@)
Streaming.LoadSpecialCharacter(1, 'ZERO')

:GARAG1_15287
if 
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @GARAG1_15313
wait 0
goto @GARAG1_15287

:GARAG1_15313
Streaming.RequestModel(364)
Streaming.RequestModel(363)

:GARAG1_15323
if or
  not Streaming.HasModelLoaded(364)
  not Streaming.HasModelLoaded(363)
goto_if_false @GARAG1_15355
wait 0
goto @GARAG1_15323

:GARAG1_15355
96@ = Char.Create(PedType.CivMale, 290, 74@, 79@, 84@)
Char.SetOnlyDamagedByPlayer(96@, True)
Char.GiveWeapon(96@, WeaponType.Satchel, 10)
Char.SetNeverTargeted(96@, True)
Char.GiveWeapon(96@, WeaponType.Detonator, 1)
Char.SetRelationship(96@, RelationshipType.Like, PedType.Player1)
Char.SetDecisionMaker(96@, 135@)
Char.SetCurrentWeapon(96@, WeaponType.Detonator)
Char.Delete(96@)
gosub @GARAG1_18471
Streaming.RequestAnimation("CAR_CHAT")

:GARAG1_15454
if 
  not Streaming.HasAnimationLoaded("CAR_CHAT")
goto_if_false @GARAG1_15488
wait 0
goto @GARAG1_15454

:GARAG1_15488
if 
  110@ == 1
goto_if_false @GARAG1_15508
return 

:GARAG1_15508
set_lvar_int_to_lvar_int 334@ = 96@
set_lvar_int_to_lvar_int 335@ = 96@
set_lvar_int_to_lvar_int 336@ = 96@
set_lvar_int_to_lvar_int 337@ = 93@
set_lvar_int_to_lvar_int 338@ = 93@
set_lvar_int_to_lvar_int 339@ = 93@
set_lvar_int_to_var_int 340@ = $scplayer
set_lvar_int_to_lvar_int 341@ = 93@
set_lvar_int_to_lvar_int 342@ = 93@
set_lvar_int_to_lvar_int 343@ = 96@
set_lvar_int_to_lvar_int 344@ = 96@
set_lvar_int_to_lvar_int 345@ = 96@
set_lvar_int_to_var_int 346@ = $scplayer
set_lvar_int_to_var_int 347@ = $scplayer
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
Game.SwitchRandomTrains(False)
if 
  not Car.IsDead(37@)
goto_if_false @GARAG1_15729
Car.SetCoordinates(37@, -2244.56, 127.11, 40.0)
Heli.LandAtCoords(37@, -2244.48, 129.14, 34.56, 0.0, 0.0)
Car.SetCruiseSpeed(37@, 21.0)

:GARAG1_15729
Camera.SetFixedPosition(-2250.306, 140.9439, 41.7533, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2249.804, 140.343, 41.1311, SwitchType.JumpCut)
World.ClearArea(54@(134@,5f), 59@(134@,5f), 64@(134@,5f), 1000.0, True)
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_15952
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @GARAG1_15853
Char.WarpIntoCar($scplayer, 34@)

:GARAG1_15853
40@ = Car.GetHeading(34@)
if and
  40@ > 90.0
  270.0 > 40@
goto_if_false @GARAG1_15909
Car.SetHeading(34@, 180.0)
goto @GARAG1_15919

:GARAG1_15909
Car.SetHeading(34@, 0.0)

:GARAG1_15919
if 
  not Car.IsPassengerSeatFree(34@, SeatIndex.RearLeft)
goto_if_false @GARAG1_15952
100@ = Car.GetCharInPassengerSeat(34@, 1)
Char.Delete(100@)

:GARAG1_15952
if 
  not Char.IsDead(96@)
goto_if_false @GARAG1_15998
Char.SetHealth(96@, 200)
Char.SetSuffersCriticalHits(96@, False)
Char.SetProofs(96@, True, True, True, True, True)

:GARAG1_15998
348@ = 92
114@ = 0
TIMERA = 0
TIMERB = 0

:GARAG1_16026
if 
  114@ <> 10
goto_if_false @GARAG1_16806
wait 0
if 
  114@ == 0
goto_if_false @GARAG1_16099
if 
  TIMERA > 1500
goto_if_false @GARAG1_16099
skip_cutscene_start_internal @GARAG1_16806
gosub @GARAG1_24320

:GARAG1_16099
if 
  114@ == 1
goto_if_false @GARAG1_16194
if 
  TIMERA > 2000
goto_if_false @GARAG1_16194
gosub @GARAG1_24320
Camera.SetFixedPosition(-2244.449, 135.8613, 34.9713, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2244.844, 134.9551, 35.1198, SwitchType.JumpCut)

:GARAG1_16194
if 
  114@ == 2
goto_if_false @GARAG1_16552
if 
  TIMERA > 3000
goto_if_false @GARAG1_16552
gosub @GARAG1_24320
if 
  not Char.IsDead(96@)
goto_if_false @GARAG1_16552
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_16469
if 
  not Char.IsInAnyCar(96@)
goto_if_false @GARAG1_16293
Char.SetCollision(96@, True)

:GARAG1_16293
Char.SetCoordinates(96@, -2245.34, 134.11, 34.5)
if and
  40@ > 90.0
  270.0 > 40@
goto_if_false @GARAG1_16395
130@ = Sequence.Open()
Task.AchieveHeading(-1, 93.0)
Task.EnterCarAsPassenger(-1, 34@, 6000, 1)
Sequence.Close(130@)
Char.PerformSequence(96@, 130@)
Sequence.Clear(130@)
goto @GARAG1_16462

:GARAG1_16395
130@ = Sequence.Open()
Task.AchieveHeading(-1, 93.0)
Task.GoStraightToCoord(-1, -2252.853, 138.619, 34.219, MoveState.Run, -1)
Task.EnterCarAsPassenger(-1, 34@, 6000, 1)
Sequence.Close(130@)
Char.PerformSequence(96@, 130@)
Sequence.Clear(130@)

:GARAG1_16462
goto @GARAG1_16501

:GARAG1_16469
Text.PrintNow('GAR1_07', 5000, 1)
103@ = 0
110@ = 1
return 

:GARAG1_16501
Camera.SetFixedPosition(-2251.421, 130.1502, 35.5076, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2250.745, 130.8858, 35.4549, SwitchType.JumpCut)

:GARAG1_16552
if 
  114@ == 3
goto_if_false @GARAG1_16647
if 
  TIMERA > 3000
goto_if_false @GARAG1_16647
Camera.SetFixedPosition(-2253.451, 139.6341, 38.4909, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2252.702, 139.074, 38.1371, SwitchType.JumpCut)
gosub @GARAG1_24320

:GARAG1_16647
if 
  114@ == 4
goto_if_false @GARAG1_16705
if 
  TIMERA > 3000
goto_if_false @GARAG1_16705
gosub @GARAG1_24320
114@ = 5
TIMERA = 0

:GARAG1_16705
if 
  114@ == 5
goto_if_false @GARAG1_16749
if 
  TIMERA > 2000
goto_if_false @GARAG1_16749
114@ = 10

:GARAG1_16749
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GARAG1_16773
114@ = 10
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:GARAG1_16773
if 
  TIMERB > 13500
goto_if_false @GARAG1_16799
114@ = 10

:GARAG1_16799
goto @GARAG1_16026

:GARAG1_16806
skip_cutscene_end 
if 
  not Char.IsDead(96@)
goto_if_false @GARAG1_16959
Char.SetCurrentWeapon(96@, WeaponType.Unarmed)
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_16944
if 
  not Char.IsInCar(96@, 34@)
goto_if_false @GARAG1_16944
if 
  Car.IsPassengerSeatFree(34@, SeatIndex.RearLeft)
goto_if_false @GARAG1_16901
Char.WarpIntoCarAsPassenger(96@, 34@, 1)
goto @GARAG1_16930

:GARAG1_16901
100@ = Car.GetCharInPassengerSeat(34@, 1)
Char.Delete(100@)
Char.WarpIntoCarAsPassenger(94@(134@,4i), 34@, 1)

:GARAG1_16930
Char.SetCurrentWeapon(96@, WeaponType.Unarmed)
Char.SetOnlyDamagedByPlayer(96@, False)

:GARAG1_16944
Char.SetProofs(96@, False, False, False, False, False)

:GARAG1_16959
if 
  not Car.IsDead(37@)
goto_if_false @GARAG1_17035
Car.SetCoordinates(37@, -2242.34, 128.0, 34.2)
Car.SetProofs(37@, False, False, False, False, False)
Car.SetCruiseSpeed(37@, 0.0)
Car.SetHealth(37@, 400)
Car.FreezePosition(37@, True)

:GARAG1_17035
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
if 
  Player.IsPlaying($player1)
goto_if_false @GARAG1_17071
Char.ShutUpForScriptedSpeech($scplayer, True)

:GARAG1_17071
Game.SwitchRandomTrains(True)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
348@ = 97
114@ = 0
349@ = 0
Text.ClearPrints
Object.MarkAsNoLongerNeeded(41@)
Streaming.MarkModelAsNoLongerNeeded(364)
Streaming.MarkModelAsNoLongerNeeded(363)
Streaming.RemoveAnimation("CRIB")
Car.MarkAsNoLongerNeeded(37@)
Streaming.RemoveAnimation("CAR_CHAT")
134@ = 3
103@ = 0
107@ = 1
Streaming.MarkModelAsNoLongerNeeded(465)
return 

:GARAG1_17180
122@(134@,5i) = Blip.AddForCoord(69@, 70@, 71@)
Streaming.RequestModel(588)

:GARAG1_17203
if 
  not Streaming.HasModelLoaded(588)
goto_if_false @GARAG1_17230
wait 0
goto @GARAG1_17203

:GARAG1_17230
gosub @GARAG1_18471
if 
  110@ == 1
goto_if_false @GARAG1_17257
return 

:GARAG1_17257
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
TIMERA = 0
Camera.SetFixedPosition(-2040.63, 180.9374, 29.2617, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2039.8, 180.3834, 29.3231, SwitchType.JumpCut)
World.ClearArea(54@(134@,5f), 59@(134@,5f), 64@(134@,5f), 1000.0, True)
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_17481
Car.SetCoordinates(34@, -2033.932, 178.5836, 27.6359)
Car.SetHeading(34@, 86.5989)
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @GARAG1_17447
Char.WarpIntoCar($scplayer, 34@)

:GARAG1_17447
Task.CarDriveToCoord($scplayer, 34@, -2039.97, 179.98, 28.08, 20.0, DriveMode.Straightline, 1, DrivingMode.PloughThrough)

:GARAG1_17481
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6683)

:GARAG1_17488
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GARAG1_17514
wait 0
goto @GARAG1_17488

:GARAG1_17514
Text.PrintNow('GAR1_PH', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:GARAG1_17534
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GARAG1_17560
wait 0
goto @GARAG1_17534

:GARAG1_17560
Text.ClearThisPrint('GAR1_PH')
114@ = 0

:GARAG1_17578
if 
  4000 > TIMERA
goto_if_false @GARAG1_18065
wait 0
if 
  114@ == 0
goto_if_false @GARAG1_17979
if 
  TIMERA > 1000
goto_if_false @GARAG1_17979
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_17746
if 
  not Char.IsDead(94@)
goto_if_false @GARAG1_17746
51@, 52@, 53@ = Char.GetOffsetInWorldCoords(94@, 1.0, 5.0, 0.0)
130@ = Sequence.Open()
Task.LeaveCar(-1, 34@)
Task.GoStraightToCoord(-1, 51@, 52@, 53@, MoveState.Walk, -1)
Sequence.Close(130@)
Char.PerformSequence(94@, 130@)
Sequence.Clear(130@)

:GARAG1_17746
wait 1000
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_17859
if 
  not Char.IsDead(96@)
goto_if_false @GARAG1_17859
51@, 52@, 53@ = Char.GetOffsetInWorldCoords(96@, -5.0, 0.0, 0.0)
130@ = Sequence.Open()
Task.LeaveCar(-1, 34@)
Task.GoStraightToCoord(-1, 51@, 52@, 53@, MoveState.Walk, -1)
Sequence.Close(130@)
Char.PerformSequence(96@, 130@)
Sequence.Clear(130@)

:GARAG1_17859
wait 500
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_17972
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_17972
51@, 52@, 53@ = Char.GetOffsetInWorldCoords(93@, 1.0, 5.0, 0.0)
130@ = Sequence.Open()
Task.LeaveCar(-1, 34@)
Task.GoStraightToCoord(-1, 51@, 52@, 53@, MoveState.Walk, -1)
Sequence.Close(130@)
Char.PerformSequence(93@, 130@)
Sequence.Clear(130@)

:GARAG1_17972
114@ = 1

:GARAG1_17979
if 
  114@ == 1
goto_if_false @GARAG1_18038
if 
  TIMERA > 2500
goto_if_false @GARAG1_18038
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)
114@ = 2

:GARAG1_18038
if 
  110@ == 1
goto_if_false @GARAG1_18058
return 

:GARAG1_18058
goto @GARAG1_17578

:GARAG1_18065
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @GARAG1_18101
Char.WarpFromCarToCoord($scplayer, -2028.0, 177.0, 28.2)

:GARAG1_18101
Streaming.RemoveAnimation("SMOKING")
Streaming.RemoveAnimation("PARK")
Streaming.RemoveAnimation("CAR")
Streaming.RemoveAnimation("CRIB")
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("CAR_CHAT")
Streaming.MarkModelAsNoLongerNeeded(364)
Streaming.MarkModelAsNoLongerNeeded(363)
Streaming.MarkModelAsNoLongerNeeded(585)
Streaming.MarkModelAsNoLongerNeeded(588)
Streaming.MarkModelAsNoLongerNeeded(413)
Streaming.MarkModelAsNoLongerNeeded(465)
Streaming.MarkModelAsNoLongerNeeded(525)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)

:GARAG1_18203
if 
  Camera.GetFadingStatus
goto_if_false @GARAG1_18227
wait 0
goto @GARAG1_18203

:GARAG1_18227
Char.SetCoordinates($scplayer, -2028.0, 177.0, 28.2)
Char.SetHeading($scplayer, 267.0)
Char.Delete(93@)
Char.Delete(94@)
Char.Delete(95@)
Char.Delete(96@)
Char.Delete(97@)
Char.Delete(99@)
Car.Delete(35@)
Car.Delete(34@)
Cutscene.Load('GARAG1C')
Streaming.SetAreaVisible(1)

:GARAG1_18312
if 
  not Cutscene.HasLoaded
goto_if_false @GARAG1_18336
wait 0
goto @GARAG1_18312

:GARAG1_18336
wait 1500
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:GARAG1_18350
if 
  not Cutscene.HasFinished
goto_if_false @GARAG1_18374
wait 0
goto @GARAG1_18350

:GARAG1_18374
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:GARAG1_18389
if 
  Camera.GetFadingStatus
goto_if_false @GARAG1_18413
wait 0
goto @GARAG1_18389

:GARAG1_18413
Streaming.SetAreaVisible(0)
Camera.DoFade(1000, Fade.In)

:GARAG1_18424
if 
  Camera.GetFadingStatus
goto_if_false @GARAG1_18448
wait 0
goto @GARAG1_18424

:GARAG1_18448
349@ = 0
107@ = 0
109@ = 1
return 

:GARAG1_18471
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_21930

:GARAG1_18487
if 
  119@ <> 1
goto_if_false @GARAG1_21923
wait 0
gosub @GARAG1_22024
if 
  110@ == 1
goto_if_false @GARAG1_18536
return 

:GARAG1_18536
if 
  101@ == 1
goto_if_false @GARAG1_18974
if 
  Char.LocateAnyMeans3D($scplayer, 54@(134@,5f), 59@(134@,5f), 64@(134@,5f), 200.0, 200.0, 200.0, False)
goto_if_false @GARAG1_18899
if 
  120@ == 0
goto_if_false @GARAG1_18892
94@(134@,4i) = Char.Create(PedType.CivMale, 292, 72@(134@,5f), 77@(134@,5f), 82@(134@,5f))
Char.SetNeverTargeted(94@(134@,4i), True)
Char.SetCollision(94@(134@,4i), False)
Char.SetHeading(94@(134@,4i), 228.0)
Char.SetProofs(94@(134@,4i), False, False, False, True, False)
Char.SetGetOutUpsideDownCar(94@(134@,4i), False)
Char.SetRelationship(94@(134@,4i), RelationshipType.Like, PedType.Player1)
Char.SetDecisionMaker(94@(134@,4i), 135@)
Char.SetNeverTargeted(94@(134@,4i), True)
36@ = Car.Create(525, -1676.0, 440.0, 6.7)
Car.LockDoors(36@, CarLock.Locked)
Car.SetEngineOn(36@, True)
Car.SetLightsOn(36@, True)
Car.SetHeading(36@, 313.0)
Car.SetHealth(36@, 500)
Car.FreezePosition(36@, True)
Car.PopDoor(36@, CarDoor.Hood, False)
Task.PlayAnimNonInterruptable(94@(134@,4i), "FIXN_CAR_LOOP", "CAR", 4.0, True, False, False, True, 0)
120@ = 1

:GARAG1_18892
goto @GARAG1_18974

:GARAG1_18899
if 
  120@ == 1
goto_if_false @GARAG1_18974
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_18946
Char.Delete(94@(134@,4i))

:GARAG1_18946
if 
  not Car.IsDead(36@)
goto_if_false @GARAG1_18967
Car.Delete(36@)

:GARAG1_18967
120@ = 0

:GARAG1_18974
if 
  102@ == 1
goto_if_false @GARAG1_19464
if 
  Char.LocateAnyMeans3D($scplayer, 54@(134@,5f), 59@(134@,5f), 64@(134@,5f), 200.0, 200.0, 200.0, False)
goto_if_false @GARAG1_19368
if 
  120@ == 0
goto_if_false @GARAG1_19361
35@ = Car.Create(588, -2238.888, 541.5267, 34.375)
Car.LockDoors(35@, CarLock.Locked)
Car.SetEngineOn(35@, True)
Car.SetLightsOn(35@, True)
Car.SetHeading(35@, 0.0)
Car.FreezePosition(35@, True)
94@(134@,4i) = Char.Create(PedType.CivMale, 293, 72@(134@,5f), 77@(134@,5f), 82@(134@,5f))
Char.SetNeverTargeted(94@(134@,4i), True)
Char.SetHeading(94@(134@,4i), 270.0)
42@ = Object.Create(#CIGAR, 72@(134@,5f), 77@(134@,5f), 82@(134@,5f))
Task.PickUpObject(94@(134@,4i), 42@, 0.04, 0.1, 0.05, 5, 16, "NULL", "NULL", 0)
Char.FreezePosition(94@(134@,4i), True)
Char.SetRelationship(94@(134@,4i), RelationshipType.Like, PedType.Player1)
Char.SetDecisionMaker(94@(134@,4i), 135@)
Char.SetGetOutUpsideDownCar(94@(134@,4i), False)
Task.PlayAnim(94@(134@,4i), "M_SMKLEAN_LOOP", "SMOKING", 4.0, True, False, False, True, 0)
120@ = 1

:GARAG1_19361
goto @GARAG1_19464

:GARAG1_19368
if 
  120@ == 1
goto_if_false @GARAG1_19464
if 
  not Char.IsDead(94@(134@,4i))
goto_if_false @GARAG1_19415
Char.Delete(94@(134@,4i))

:GARAG1_19415
if 
  not Car.IsDead(35@)
goto_if_false @GARAG1_19436
Car.Delete(35@)

:GARAG1_19436
if 
  Object.DoesExist(42@)
goto_if_false @GARAG1_19457
Object.Delete(42@)

:GARAG1_19457
120@ = 0

:GARAG1_19464
if 
  103@ == 1
goto_if_false @GARAG1_19953
if 
  Char.LocateAnyMeans3D($scplayer, 54@(134@,5f), 59@(134@,5f), 64@(134@,5f), 200.0, 200.0, 200.0, False)
goto_if_false @GARAG1_19865
if 
  120@ == 0
goto_if_false @GARAG1_19858
41@ = Object.Create(#PARKBENCH1, -2244.55, 133.91, 34.4)
Object.SetHeading(41@, 0.0)
Object.FreezePosition(41@, True)
96@ = Char.Create(PedType.CivMale, 290, -2244.7, 133.91, 33.82)
Char.SetGetOutUpsideDownCar(96@, False)
Char.SetNeverTargeted(96@, True)
Task.PlayAnimNonInterruptable(96@, "CRIB_CONSOLE_LOOP", "CRIB", 4.0, True, False, False, True, 0)
Char.SetCollision(96@, False)
Char.SetRelationship(96@, RelationshipType.Like, PedType.Player1)
Char.SetDecisionMaker(96@, 135@)
Char.SetHeading(96@, 280.0)
Char.SetOnlyDamagedByPlayer(96@, True)
Char.GiveWeapon(96@, WeaponType.Satchel, 10)
Char.SetNeverTargeted(96@, True)
Char.GiveWeapon(96@, WeaponType.Detonator, 1)
Char.SetRelationship(96@, RelationshipType.Like, PedType.Player1)
Char.SetDecisionMaker(96@, 135@)
Char.SetCurrentWeapon(96@, WeaponType.Detonator)
37@ = Car.Create(465, -2250.33, 139.91, 44.66)
Car.SetProofs(37@, True, True, True, True, True)
Car.SetCruiseSpeed(37@, 30.0)
Heli.SetBladesFullSpeed(37@)
Heli.GotoCoords(37@, -2258.7, 132.54, 37.72, 5.0, 35.0)
120@ = 1

:GARAG1_19858
goto @GARAG1_19953

:GARAG1_19865
if 
  120@ == 1
goto_if_false @GARAG1_19953
if 
  Object.DoesExist(41@)
goto_if_false @GARAG1_19904
Object.Delete(41@)

:GARAG1_19904
if 
  not Char.IsDead(96@)
goto_if_false @GARAG1_19925
Char.Delete(96@)

:GARAG1_19925
if 
  not Car.IsDead(37@)
goto_if_false @GARAG1_19946
Car.Delete(37@)

:GARAG1_19946
120@ = 0

:GARAG1_19953
if 
  107@ == 1
goto_if_false @GARAG1_20131
if 
  Char.LocateAnyMeans3D($scplayer, 69@, 70@, 71@, 300.0, 300.0, 300.0, False)
goto_if_false @GARAG1_20085
if 
  120@ == 0
goto_if_false @GARAG1_20078
35@ = Car.Create(588, -2026.0, 169.0, 28.2)
Car.LockDoors(35@, CarLock.Locked)
Car.SetHeading(35@, 120.0)
120@ = 1

:GARAG1_20078
goto @GARAG1_20131

:GARAG1_20085
if 
  120@ == 1
goto_if_false @GARAG1_20131
if 
  not Car.IsDead(35@)
goto_if_false @GARAG1_20124
Car.Delete(35@)

:GARAG1_20124
120@ = 0

:GARAG1_20131
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_21856
if or
  101@ == 1
  102@ == 1
  103@ == 1
goto_if_false @GARAG1_20515
if 
  Car.LocateStopped3D(34@, 54@(134@,5f), 59@(134@,5f), 64@(134@,5f), 4.0, 4.0, 4.0, True)
goto_if_false @GARAG1_20515
if 
  Car.LocateStopped3D(34@, 54@(134@,5f), 59@(134@,5f), 64@(134@,5f), 2.5, 2.5, 2.5, False)
goto_if_false @GARAG1_20506
if 
  118@ == 0
goto_if_false @GARAG1_20323
Text.PrintHelp('GAR1_23')
118@ = 1

:GARAG1_20323
if 
  Player.IsPressingHorn($player1)
goto_if_false @GARAG1_20499
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @GARAG1_20499
Char.SetCantBeDraggedOut($scplayer, True)
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_20385
Car.LockDoors(34@, CarLock.LockedPlayerInside)

:GARAG1_20385
wait 500
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearHelp
wait 1000
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_20469
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @GARAG1_20469
Char.WarpIntoCar($scplayer, 34@)

:GARAG1_20469
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_20492
Car.LockDoors(34@, CarLock.Unlocked)

:GARAG1_20492
119@ = 1

:GARAG1_20499
goto @GARAG1_20515

:GARAG1_20506
Text.ClearHelp
118@ = 0

:GARAG1_20515
if 
  105@ == 1
goto_if_false @GARAG1_20612
if 
  Char.LocateInCar3D($scplayer, 45@, 46@, 47@, 4.0, 4.0, 4.0, True)
goto_if_false @GARAG1_20612
119@ = 1
Player.SetControl($player1, False)
$car = Char.StoreCarIsInNoSave($scplayer)
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 2000000)

:GARAG1_20612
if 
  106@ == 1
goto_if_false @GARAG1_20709
if 
  Char.LocateInCar3D($scplayer, 48@, 49@, 50@, 4.0, 4.0, 4.0, True)
goto_if_false @GARAG1_20709
119@ = 1
Player.SetControl($player1, False)
$car = Char.StoreCarIsInNoSave($scplayer)
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 2000000)

:GARAG1_20709
if 
  107@ == 1
goto_if_false @GARAG1_20903
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_20903
if 
  113@ == 0
goto_if_false @GARAG1_20903
40@ = Car.GetHeading(34@)
if 
  Car.Locate3D(34@, -2034.59, 180.23, 28.43, 4.0, 4.0, 4.0, True)
goto_if_false @GARAG1_20903
if and
  40@ > 0.0
  180.0 > 40@
goto_if_false @GARAG1_20903
Garage.Open('HBGDSFS')
113@ = 1
Player.SetControl($player1, False)
$car = Char.StoreCarIsInNoSave($scplayer)
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 2000000)
119@ = 1

:GARAG1_20903
if 
  101@ == 1
goto_if_false @GARAG1_21035
if and
  114@ >= 0
  7 >= 114@
goto_if_false @GARAG1_20953
gosub @GARAG1_24089

:GARAG1_20953
if 
  Char.IsInZone($scplayer, 'EASB')
goto_if_false @GARAG1_21003
if 
  114@ == 8
goto_if_false @GARAG1_21003
gosub @GARAG1_24089

:GARAG1_21003
if or
  114@ == 9
  114@ == 10
goto_if_false @GARAG1_21035
gosub @GARAG1_24089

:GARAG1_21035
if 
  105@ == 1
goto_if_false @GARAG1_21085
if and
  114@ >= 0
  6 >= 114@
goto_if_false @GARAG1_21085
gosub @GARAG1_24089

:GARAG1_21085
if 
  102@ == 1
goto_if_false @GARAG1_21135
if and
  114@ >= 0
  6 >= 114@
goto_if_false @GARAG1_21135
gosub @GARAG1_24089

:GARAG1_21135
if 
  103@ == 1
goto_if_false @GARAG1_21185
if and
  114@ >= 0
  9 >= 114@
goto_if_false @GARAG1_21185
gosub @GARAG1_24089

:GARAG1_21185
if 
  107@ == 1
goto_if_false @GARAG1_21235
if and
  114@ >= 0
  7 >= 114@
goto_if_false @GARAG1_21235
gosub @GARAG1_24089

:GARAG1_21235
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_21849
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @GARAG1_21849
Blip.Remove(122@(134@,5i))
Blip.Remove(128@)
Blip.Remove(129@)
127@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(127@, True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 26602)

:GARAG1_21315
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GARAG1_21341
wait 0
goto @GARAG1_21315

:GARAG1_21341
Text.PrintNow('TRUX_AC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:GARAG1_21361
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GARAG1_21387
wait 0
goto @GARAG1_21361

:GARAG1_21387
Text.ClearThisPrint('TRUX_AC')
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_21660

:GARAG1_21414
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @GARAG1_21660
wait 0
if 
  112@ == 0
goto_if_false @GARAG1_21462
112@ = 1

:GARAG1_21462
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_21485
goto @GARAG1_21545

:GARAG1_21485
Text.PrintNow('GAR1_07', 5000, 1)
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
return 

:GARAG1_21545
if 
  Car.IsOnFire(34@)
goto_if_false @GARAG1_21626
Car.Explode(34@)
Text.PrintNow('GAR1_07', 5000, 1)
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
return 

:GARAG1_21626
gosub @GARAG1_22024
if 
  110@ == 1
goto_if_false @GARAG1_21653
return 

:GARAG1_21653
goto @GARAG1_21414

:GARAG1_21660
112@ = 0
Blip.Remove(127@)
if or
  101@ == 1
  102@ == 1
  103@ == 1
goto_if_false @GARAG1_21745
122@(134@,5i) = Blip.AddForCoord(54@(134@,5f), 59@(134@,5f), 64@(134@,5f))
Blip.SetCoordAppearance(122@(134@,5i), 1)

:GARAG1_21745
if 
  105@ == 1
goto_if_false @GARAG1_21779
128@ = Blip.AddSpriteForCoord(45@, 46@, 47@, RadarSprite.Hospital)

:GARAG1_21779
if 
  106@ == 1
goto_if_false @GARAG1_21813
129@ = Blip.AddSpriteForCoord(48@, 49@, 50@, RadarSprite.Police)

:GARAG1_21813
if 
  107@ == 1
goto_if_false @GARAG1_21849
122@(134@,5i) = Blip.AddForCoord(69@, 70@, 71@)

:GARAG1_21849
goto @GARAG1_21916

:GARAG1_21856
Text.PrintNow('GAR1_07', 5000, 1)
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
return 

:GARAG1_21916
goto @GARAG1_18487

:GARAG1_21923
goto @GARAG1_21983

:GARAG1_21930
Text.PrintNow('GAR1_07', 5000, 1)
101@ = 0
102@ = 0
103@ = 0
104@ = 0
110@ = 1
return 

:GARAG1_21983
119@ = 0
Blip.Remove(122@(134@,5i))
118@ = 0
120@ = 0
114@ = 0
Text.ClearHelp
return 

:GARAG1_22024
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_22846
if 
  not Char.LocateAnyMeansCar3D($scplayer, 34@, 300.0, 300.0, 300.0, False)
goto_if_false @GARAG1_22141
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
Text.PrintNow('GAR1_18', 5000, 1)

:GARAG1_22141
if 
  not Char.IsDead(93@)
goto_if_false @GARAG1_22364
if 
  not Char.IsInCar(93@, 34@)
goto_if_false @GARAG1_22339
if 
  115@ == 0
goto_if_false @GARAG1_22213
Task.EnterCarAsPassenger(93@, 34@, -1, 0)
115@ = 1

:GARAG1_22213
if 
  115@ == 1
goto_if_false @GARAG1_22332
if 
  not Char.LocateOnFootChar3D(93@, $scplayer, 300.0, 300.0, 300.0, False)
goto_if_false @GARAG1_22332
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
Text.PrintNow('GAR1_19', 5000, 1)

:GARAG1_22332
goto @GARAG1_22364

:GARAG1_22339
if 
  115@ == 1
goto_if_false @GARAG1_22364
115@ = 0

:GARAG1_22364
if 
  101@ <> 1
goto_if_false @GARAG1_22605
if 
  not Char.IsDead(94@)
goto_if_false @GARAG1_22605
if 
  not Char.IsInCar(94@, 34@)
goto_if_false @GARAG1_22580
if 
  117@ == 0
goto_if_false @GARAG1_22454
Task.EnterCarAsPassenger(94@, 34@, -1, 2)
117@ = 1

:GARAG1_22454
if 
  117@ == 1
goto_if_false @GARAG1_22573
if 
  not Char.LocateOnFootChar3D(94@, $scplayer, 300.0, 300.0, 300.0, False)
goto_if_false @GARAG1_22573
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
Text.PrintNow('GAR1_20', 5000, 1)

:GARAG1_22573
goto @GARAG1_22605

:GARAG1_22580
if 
  117@ == 1
goto_if_false @GARAG1_22605
117@ = 0

:GARAG1_22605
if 
  102@ <> 1
goto_if_false @GARAG1_22846
if 
  not Char.IsDead(95@)
goto_if_false @GARAG1_22846
if 
  not Char.IsInCar(95@, 34@)
goto_if_false @GARAG1_22821
if 
  116@ == 0
goto_if_false @GARAG1_22695
Task.EnterCarAsPassenger(95@, 34@, -1, 0)
116@ = 1

:GARAG1_22695
if 
  116@ <> 1
goto_if_false @GARAG1_22814
if 
  not Char.LocateOnFootChar3D(95@, $scplayer, 300.0, 300.0, 300.0, False)
goto_if_false @GARAG1_22814
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
Text.PrintNow('GAR1_21', 5000, 1)

:GARAG1_22814
goto @GARAG1_22846

:GARAG1_22821
if 
  116@ == 1
goto_if_false @GARAG1_22846
116@ = 0

:GARAG1_22846
if 
  Char.IsDead(93@)
goto_if_false @GARAG1_22929
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
Text.PrintNow('GAR1_17', 5000, 1)
return 

:GARAG1_22929
if 
  101@ == 1
goto_if_false @GARAG1_23131
if 
  120@ == 1
goto_if_false @GARAG1_23131
if 
  Car.IsDead(36@)
goto_if_false @GARAG1_23048
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
Text.PrintNow('GAR1_14', 5000, 1)
return 

:GARAG1_23048
if 
  Char.IsDead(94@)
goto_if_false @GARAG1_23131
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
Text.PrintNow('GAR1_14', 5000, 1)
return 

:GARAG1_23131
if 
  102@ == 1
goto_if_false @GARAG1_23416
if 
  Char.IsDead(94@)
goto_if_false @GARAG1_23232
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
Text.PrintNow('GAR1_14', 5000, 1)
return 

:GARAG1_23232
if 
  120@ == 1
goto_if_false @GARAG1_23416
if 
  Char.IsDead(95@)
goto_if_false @GARAG1_23333
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
Text.PrintNow('GAR1_15', 5000, 1)
return 

:GARAG1_23333
if 
  Car.IsDead(35@)
goto_if_false @GARAG1_23416
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
Text.PrintNow('GAR1_15', 5000, 1)
return 

:GARAG1_23416
if 
  103@ == 1
goto_if_false @GARAG1_23795
if 
  Char.IsDead(94@)
goto_if_false @GARAG1_23517
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
Text.PrintNow('GAR1_14', 5000, 1)
return 

:GARAG1_23517
if 
  120@ == 1
goto_if_false @GARAG1_23795
if 
  Char.IsDead(96@)
goto_if_false @GARAG1_23618
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
Text.PrintNow('GAR1_16', 5000, 1)
return 

:GARAG1_23618
if 
  not Char.IsDead(96@)
goto_if_false @GARAG1_23795
if 
  Char.HasBeenDamagedByChar(96@, $scplayer)
goto_if_false @GARAG1_23708
if 
  not Char.IsInAnyCar(96@)
goto_if_false @GARAG1_23676
Char.SetCollision(96@, True)

:GARAG1_23676
Char.SetHealth(96@, 0)
110@ = 1
Text.PrintNow('GAR1_16', 5000, 1)
return 

:GARAG1_23708
if 
  Object.DoesExist(41@)
goto_if_false @GARAG1_23795
if 
  Object.HasBeenDamaged(41@)
goto_if_false @GARAG1_23795
if 
  not Char.IsInAnyCar(96@)
goto_if_false @GARAG1_23763
Char.SetCollision(96@, True)

:GARAG1_23763
Char.SetHealth(96@, 0)
110@ = 1
Text.PrintNow('GAR1_16', 5000, 1)
return 

:GARAG1_23795
if 
  107@ == 1
goto_if_false @GARAG1_23979
if 
  Char.IsDead(94@)
goto_if_false @GARAG1_23896
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
Text.PrintNow('GAR1_14', 5000, 1)
return 

:GARAG1_23896
if 
  Char.IsDead(96@)
goto_if_false @GARAG1_23979
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
Text.PrintNow('GAR1_16', 5000, 1)
return 

:GARAG1_23979
if or
  105@ == 1
  106@ == 1
goto_if_false @GARAG1_24087
if 
  Char.IsDead(94@)
goto_if_false @GARAG1_24087
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
Text.PrintNow('GAR1_14', 5000, 1)
return 

:GARAG1_24087
return 

:GARAG1_24089
if 
  349@ == 0
goto_if_false @GARAG1_24129
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 136@(348@,106i))
349@ = 1

:GARAG1_24129
if 
  349@ == 1
goto_if_false @GARAG1_24219
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GARAG1_24219
if 
  not Char.IsDead(242@(348@,106i))
goto_if_false @GARAG1_24194
Char.StartFacialTalk(242@(348@,106i), 10000)

:GARAG1_24194
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow($flag_is_zero_on_bike(348@,106s), 10000, 1)
349@ = 2

:GARAG1_24219
if 
  349@ == 2
goto_if_false @GARAG1_24318
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GARAG1_24318
if 
  not Char.IsDead(242@(348@,106i))
goto_if_false @GARAG1_24281
Char.StopFacialTalk(242@(348@,106i))

:GARAG1_24281
TIMERA = 0
349@ = 0
Text.ClearThisPrint($flag_is_zero_on_bike(348@,106s))
348@ += 1
114@ += 1

:GARAG1_24318
return 

:GARAG1_24320
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 136@(348@,106i))

:GARAG1_24331
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GARAG1_24357
wait 0
goto @GARAG1_24331

:GARAG1_24357
Text.PrintNow($flag_is_zero_on_bike(348@,106s), 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:GARAG1_24375
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GARAG1_24401
wait 0
goto @GARAG1_24375

:GARAG1_24401
Text.ClearThisPrint($flag_is_zero_on_bike(348@,106s))
348@ += 1
114@ += 1
return 

:GARAG1_24426
Text.PrintWithNumberBig('M_PASSD', 0, 5000, TextStyle.Middle)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.RegisterMissionPassed('GAR_1')
Stat.PlayerMadeProgress(1)
Stat.SetInt(StatId.PassedGarage1, 1)
start_new_script @SCRASH 
$flag_garage_mission_counter += 1
return 

:GARAG1_24492
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:GARAG1_24510
Camera.ResetNewScriptables
World.DisableAllEntryExits(False)
if 
  Player.IsPlaying($player1)
goto_if_false @GARAG1_24539
Char.ShutUpForScriptedSpeech($scplayer, False)

:GARAG1_24539
Game.SwitchRandomTrains(True)
Text.ClearHelp
134@ = 0

:GARAG1_24552
if 
  5 > 134@
goto_if_false @GARAG1_24593
Blip.Remove(122@(134@,5i))
134@ += 1
goto @GARAG1_24552

:GARAG1_24593
Streaming.RemoveAnimation("PARK")
Streaming.RemoveAnimation("CAR")
Streaming.RemoveAnimation("CRIB")
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("CAR_CHAT")
Streaming.RemoveAnimation("SMOKING")
Blip.Remove(127@)
Blip.Remove(128@)
Blip.Remove(129@)
if 
  not Car.IsDead(34@)
goto_if_false @GARAG1_24687
Car.SetHealth(34@, 600)

:GARAG1_24687
Car.MarkAsNoLongerNeeded(34@)
Car.MarkAsNoLongerNeeded(35@)
Car.MarkAsNoLongerNeeded(36@)
Car.MarkAsNoLongerNeeded(35@)
Car.Delete(37@)
Char.RemoveElegantly(93@)
Char.RemoveElegantly(94@)
Char.RemoveElegantly(95@)
Char.RemoveElegantly(96@)
Char.RemoveElegantly(97@)
Char.RemoveElegantly(99@)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Object.Delete(41@)
Streaming.MarkModelAsNoLongerNeeded(364)
Streaming.MarkModelAsNoLongerNeeded(363)
Streaming.MarkModelAsNoLongerNeeded(585)
Streaming.MarkModelAsNoLongerNeeded(588)
Streaming.MarkModelAsNoLongerNeeded(413)
Streaming.MarkModelAsNoLongerNeeded(465)
Streaming.MarkModelAsNoLongerNeeded(525)
Streaming.MarkModelAsNoLongerNeeded(588)
Streaming.MarkModelAsNoLongerNeeded(#CIGAR)
Object.Delete(42@)
Game.SetScriptLimitToGangSize(99)
Weather.Release
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Streaming.UnloadSpecialCharacter(4)
$timer_mobile_start = Clock.GetGameTimer()
if 
  Garage.IsOpen('HBGDSFS')
goto_if_false @GARAG1_24870
Garage.Close('HBGDSFS')

:GARAG1_24870
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
105@ = 0
106@ = 0
114@ = 0
120@ = 0
121@ = 0
113@ = 0
109@ = 0
110@ = 0
112@ = 0
108@ = 0
111@ = 0
$t2_cop_timer = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
Particle.Stop(350@)
$onmission = 0
Mission.Finish
return 

//-------------Mission 50---------------
// Originally: Deconstruction

:DECON
script_name 'DECON'
gosub @DECON_47
if 
  has_deatharrest_been_executed 
goto_if_false @DECON_38
gosub @DECON_20888

:DECON_38
gosub @DECON_21163
terminate_this_script 

:DECON_47
Stat.RegisterMissionGiven
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0

:DECON_133
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @DECON_159
36@ = 1

:DECON_159
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @DECON_181
37@ = 1

:DECON_181
39@ += 1
if 
  39@ > 9
goto_if_false @DECON_213
39@ = 0

:DECON_213
40@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 64@ += 42@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 171@ += 42@
add_int_lvar_to_int_lvar 172@ += 42@
if 
  68@ == 1
goto_if_false @DECON_299
goto @DECON_460

:DECON_299
gosub @DECON_562
switch_start 34@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @DECON_453 {caseNum1} 0 {caseLabel1} @DECON_369 {caseNum2} 1 {caseLabel2} @DECON_383 {caseNum3} 2 {caseLabel3} @DECON_397 {caseNum4} 3 {caseLabel4} @DECON_411 {caseNum5} 4 {caseLabel5} @DECON_425 {caseNum6} 5 {caseLabel6} @DECON_439 {caseNum7} -1 {caseLabel7} @DECON_453

:DECON_369
gosub @DECON_1610
goto @DECON_453

:DECON_383
gosub @DECON_2071
goto @DECON_453

:DECON_397
gosub @DECON_5645
goto @DECON_453

:DECON_411
gosub @DECON_6775
goto @DECON_453

:DECON_425
gosub @DECON_9684
goto @DECON_453

:DECON_439
gosub @DECON_12359
goto @DECON_453

:DECON_453
gosub @DECON_13626

:DECON_460
if 
  38@ == 0
goto_if_false @DECON_560
if 
  37@ == 0
goto_if_false @DECON_544
if 
  36@ == 0
goto_if_false @DECON_528
goto @DECON_133
goto @DECON_537

:DECON_528
gosub @DECON_21028
return 

:DECON_537
goto @DECON_553

:DECON_544
gosub @DECON_20888
return 

:DECON_553
goto @DECON_562

:DECON_560
return 

:DECON_562
if 
is_ps2_keyboard_key_just_pressed 27
goto_if_false @DECON_653
if 
  66@ == 0
goto_if_false @DECON_627
66@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @DECON_653

:DECON_627
66@ = 0
write_debug "LEVEL_DEBUG_OFF"

:DECON_653
if 
  66@ == 1
goto_if_false @DECON_1608
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @DECON_720
67@ += 1
if 
  67@ > 4
goto_if_false @DECON_718
67@ = 0

:DECON_718
clear_all_view_variables 

:DECON_720
if 
  67@ == 1
goto_if_false @DECON_939
43@ = 0

:DECON_745
if 
  6 > 43@
goto_if_false @DECON_813
if 
  Object.DoesExist($launchdoor_a51(43@,6i))
goto_if_false @DECON_799
$7225(43@,8i) = Object.GetHealth($launchdoor_a51(43@,6i))

:DECON_799
43@ += 1
goto @DECON_745

:DECON_813
view_integer_variable $7225[0] {_p2} "CABIN_0_HEALTH"
view_integer_variable $7225[1] {_p2} "CABIN_1_HEALTH"
view_integer_variable $7225[2] {_p2} "CABIN_2_HEALTH"
view_integer_variable $7225[3] {_p2} "CABIN_3_HEALTH"
view_integer_variable $7225[4] {_p2} "CABIN_4_HEALTH"
view_integer_variable $7225[5] {_p2} "CABIN_5_HEALTH"

:DECON_939
if 
  67@ == 2
goto_if_false @DECON_1149
set_var_int_to_lvar_int $7225[0] = 34@
set_var_int_to_lvar_int $7225[1] = 35@
set_var_int_to_lvar_int $7225[2] = 62@
set_var_int_to_lvar_int $7225[3] = 64@
set_var_int_to_lvar_int $7225[4] = 63@
set_var_int_to_lvar_int $7225[5] = 65@
set_var_int_to_lvar_int $7225[6] = TIMERA
set_var_int_to_lvar_int $7225[7] = TIMERB
view_integer_variable $7225[0] {_p2} "M_STAGE"
view_integer_variable $7225[1] {_p2} "M_GOALS"
view_integer_variable $7225[2] {_p2} "DIALOGUE_FLAG"
view_integer_variable $7225[3] {_p2} "DIALOGUE_TIMER"
view_integer_variable $7225[4] {_p2} "HELP_FLAG"
view_integer_variable $7225[5] {_p2} "HELP_TIMER"
view_integer_variable $7225[6] {_p2} "TIMERA"
view_integer_variable $7225[7] {_p2} "TIMERB"

:DECON_1149
if 
  67@ == 3
goto_if_false @DECON_1447
set_var_int_to_lvar_int $7225[0] = 158@
set_var_int_to_lvar_int $7225[1] = 152@
set_var_int_to_lvar_int $7225[2] = 159@
set_var_int_to_lvar_int $7225[3] = 153@
set_var_int_to_lvar_int $7225[4] = 160@
set_var_int_to_lvar_int $7225[5] = 154@
set_var_int_to_lvar_int $7225[6] = 161@
set_var_int_to_lvar_int $7225[7] = 155@
view_integer_variable $7225[0] {_p2} "CABIN_THIS_HEALTH[0]"
view_integer_variable $7225[1] {_p2} "CABIN_LAST_HEALTH[0]"
view_integer_variable $7225[2] {_p2} "CABIN_THIS_HEALTH[1]"
view_integer_variable $7225[3] {_p2} "CABIN_LAST_HEALTH[1]"
view_integer_variable $7225[4] {_p2} "CABIN_THIS_HEALTH[2]"
view_integer_variable $7225[5] {_p2} "CABIN_LAST_HEALTH[2]"
view_integer_variable $7225[6] {_p2} "CABIN_THIS_HEALTH[3]"
view_integer_variable $7225[7] {_p2} "CABIN_LAST_HEALTH[3]"

:DECON_1447
if 
  67@ == 4
goto_if_false @DECON_1498
set_var_int_to_var_int $7225[0] = $player_is_in_crane
view_integer_variable $7225[0] {_p2} "PLAYER_IS_IN_CRANE"

:DECON_1498
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @DECON_1520
38@ = 1

:DECON_1520
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @DECON_1608
if 
  68@ == 0
goto_if_false @DECON_1583
68@ = 1
write_debug "LEVEL_PAUSED"
goto @DECON_1608

:DECON_1583
68@ = 0
write_debug "LEVEL_UNPAUSED"

:DECON_1608
return 

:DECON_1610
if 
  35@ == -1
goto_if_false @DECON_1806
90@ = Car.Create(413, 0.0, 0.0, 0.0)
89@ = Car.Create(413, 0.0, 0.0, 0.0)
103@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
184@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
115@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
125@ = Blip.AddForCoord(0.0, 0.0, 0.0)
126@ = Blip.AddForCoord(0.0, 0.0, 0.0)
123@ = Blip.AddForCoord(0.0, 0.0, 0.0)

:DECON_1806
Player.SetControl($player1, False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:DECON_1828
if 
  Camera.GetFadingStatus
goto_if_false @DECON_1852
wait 0
goto @DECON_1828

:DECON_1852
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
151@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
gosub @DECON_20830
return 

:DECON_2071
Text.ClearHelp
if 
  35@ == 0
goto_if_false @DECON_2255
Text.LoadMissionText('GARAGE2')
Cutscene.Load('GARAG3A')

:DECON_2113
if 
  not Cutscene.HasLoaded
goto_if_false @DECON_2137
wait 0
goto @DECON_2113

:DECON_2137
Streaming.SetAreaVisible(1)
Char.SetAreaVisible($scplayer, 1)
Streaming.LoadScene(-2031.0, 149.0, 29.0)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:DECON_2174
if 
  not Cutscene.HasFinished
goto_if_false @DECON_2198
wait 0
goto @DECON_2174

:DECON_2198
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:DECON_2213
if 
  Camera.GetFadingStatus
goto_if_false @DECON_2237
wait 0
goto @DECON_2213

:DECON_2237
Char.SetAreaVisible($scplayer, 0)
Streaming.SetAreaVisible(0)
35@ += 1

:DECON_2255
if 
  35@ == 1
goto_if_false @DECON_4356
Streaming.RequestModel(#PORTALOO)
Streaming.RequestModel(#PORTAKABIN)
Streaming.RequestModel(#BARREL4)
Streaming.RequestModel(486)
Streaming.RequestModel(524)
Streaming.RequestModel(406)
Streaming.RequestModel(422)
Streaming.RequestModel(27)
Streaming.RequestModel(337)
Streaming.RequestModel(346)
Streaming.RequestModel(16)
Streaming.LoadAllModelsNow

:DECON_2327
if or
  not Streaming.HasModelLoaded(#PORTALOO)
  not Streaming.HasModelLoaded(#PORTAKABIN)
  not Streaming.HasModelLoaded(#BARREL4)
  not Streaming.HasModelLoaded(486)
  not Streaming.HasModelLoaded(524)
  not Streaming.HasModelLoaded(16)
goto_if_false @DECON_2377
wait 0
goto @DECON_2327

:DECON_2377
if or
  not Streaming.HasModelLoaded(406)
  not Streaming.HasModelLoaded(422)
  not Streaming.HasModelLoaded(27)
  not Streaming.HasModelLoaded(337)
  not Streaming.HasModelLoaded(346)
goto_if_false @DECON_2423
wait 0
goto @DECON_2377

:DECON_2423
World.SwapNearestBuildingModel(-2049.171, 250.3193, 34.477, 20.0, #HUBHOLE1_SFSE, #HUBHOLE2_SFSE)
43@ = 0

:DECON_2458
if 
  6 > 43@
goto_if_false @DECON_2603
if 
  Object.DoesExist($launchdoor_a51(43@,6i))
goto_if_false @DECON_2505
Object.Delete($launchdoor_a51(43@,6i))

:DECON_2505
$launchdoor_a51(43@,6i) = Object.Create(#PORTAKABIN, $2676(43@,6f), $2682(43@,6f), $2688(43@,6f))
Object.SetHeading($launchdoor_a51(43@,6i), $2694(43@,6f))
Object.SetDynamic($launchdoor_a51(43@,6i), False)
Object.DontRemove($launchdoor_a51(43@,6i))
117@(43@,6i) = Blip.AddForObject($launchdoor_a51(43@,6i))
43@ += 1
goto @DECON_2458

:DECON_2603
69@ = Object.CreateNoOffset(#PORTALOO, -2087.861, 178.2922, 35.3947)
Object.SetHeading(69@, 3.3302)
70@ = Object.CreateNoOffset(#PORTALOO, -2114.903, 156.9329, 35.4667)
Object.SetHeading(70@, 271.6719)
71@ = Object.CreateNoOffset(#PORTALOO, -2116.425, 157.4618, 35.7225)
Object.SetHeading(71@, 269.1095)
72@ = Object.CreateNoOffset(#PORTALOO, -2054.474, 222.6438, 35.8767)
Object.SetHeading(72@, 0.0)
Object.FreezePosition(72@, True)
73@ = Object.CreateNoOffset(#PORTALOO, -2069.262, 285.8519, 35.8543)
Object.SetHeading(73@, 51.0305)
74@ = Object.CreateNoOffset(#PORTALOO, -2134.873, 293.1065, 35.4117)
Object.SetHeading(74@, 175.9489)
75@ = Object.CreateNoOffset(#BARREL4, -2109.397, 157.8976, 34.4311)
76@ = Object.CreateNoOffset(#BARREL4, -2108.493, 157.8779, 34.4523)
77@ = Object.CreateNoOffset(#BARREL4, -2091.683, 172.1051, 34.443)
78@ = Object.CreateNoOffset(#BARREL4, -2128.95, 303.401, 33.888)
79@ = Object.CreateNoOffset(#BARREL4, -2129.923, 303.447, 33.8842)
43@ = 0

:DECON_2930
if 
  5 > 43@
goto_if_false @DECON_2973
Object.MakeTargetable(75@(43@,5i), True)
43@ += 1
goto @DECON_2930

:DECON_2973
if 
  Object.DoesExist($sf_crane1_arm)
goto_if_false @DECON_2999
Object.SetRopeHeight($sf_crane1_arm, 0.3)

:DECON_2999
if 
  Object.DoesExist($sf_crane1_base)
goto_if_false @DECON_3120
Object.SetHeading($sf_crane1_base, 78.0)
if 
  Object.DoesExist($sf_crane1_base_LOD)
goto_if_false @DECON_3051
Object.SetHeading($sf_crane1_base_LOD, 78.0)

:DECON_3051
if 
  Object.DoesExist($sf_crane1_arm)
goto_if_false @DECON_3120
$x, $y, $z = Object.GetOffsetInWorldCoords($sf_crane1_base, 0.0, 15.0, 3.453)
Object.SetCoordinatesAndVelocity($sf_crane1_arm, $x, $y, $z)
Object.SetHeading($sf_crane1_arm, 78.0)

:DECON_3120
82@ = Car.Create(486, -2098.726, 278.5271, 34.8743)
Car.SetHeading(82@, 15.4537)
Car.SetHealth(82@, 5000)
Car.SetCanBurstTires(82@, False)
83@ = Car.Create(486, -2088.802, 188.5362, 34.0469)
Car.SetHeading(83@, 182.8425)
Car.SetHealth(83@, 5000)
Car.SetCanBurstTires(83@, False)
Streaming.RequestCarRecording(551)

:DECON_3221
if 
  not Streaming.HasCarRecordingBeenLoaded(551)
goto_if_false @DECON_3248
wait 0
goto @DECON_3221

:DECON_3248
if 
  not Car.IsDead(82@)
goto_if_false @DECON_3272
Car.StartPlaybackLooped(82@, 551)

:DECON_3272
84@ = Car.Create(524, -2112.603, 193.7894, 33.6684)
Car.SetHeading(84@, 276.2221)
85@ = Car.Create(422, -2102.461, 160.2542, 34.8444)
Car.SetHeading(85@, 66.4396)
86@ = Car.Create(422, -2121.669, 302.741, 34.459)
Car.SetHeading(86@, 160.6221)
set_lvar_int_to_lvar_int 90@ = 82@
set_lvar_int_to_lvar_int 91@ = 83@
set_lvar_int_to_lvar_int 92@ = 84@
set_lvar_int_to_lvar_int 94@ = 85@
set_lvar_int_to_lvar_int 95@ = 86@
43@ = 0

:DECON_3418
if 
  6 > 43@
goto_if_false @DECON_3481
if 
  not Car.IsDead(90@(43@,7i))
goto_if_false @DECON_3467
Car.SetStraightLineDistance(90@(43@,7i), 50)

:DECON_3467
43@ += 1
goto @DECON_3418

:DECON_3481
173@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
97@ = Char.Create(PedType.Mission1, 27, -2098.758, 168.5889, 34.0869)
98@ = Char.Create(PedType.Mission1, 27, -2099.974, 169.3999, 34.0947)
99@ = Char.Create(PedType.Mission1, 27, -2090.955, 265.4674, 34.6686)
100@ = Char.Create(PedType.Mission1, 27, -2089.761, 264.5739, 34.6557)
101@ = Char.Create(PedType.Mission1, 27, -2085.753, 269.4974, 34.5456)
102@ = Char.Create(PedType.Mission1, 27, -2125.748, 303.8916, 33.5532)
Char.SetHeading(97@, 47.9799)
Char.SetHeading(98@, 229.2811)
Char.SetHeading(99@, 229.2811)
Char.SetHeading(100@, 51.1609)
Char.SetHeading(101@, 177.1601)
Char.SetHeading(102@, 177.1601)
Char.GiveWeapon(101@, WeaponType.Shovel, 9999)
Char.GiveWeapon(102@, WeaponType.Shovel, 9999)
43@ = 0

:DECON_3719
if 
  6 > 43@
goto_if_false @DECON_3801
Char.SetDecisionMaker(97@(43@,6i), 173@)
Char.SetOnlyDamagedByPlayer(97@(43@,6i), True)
Char.SetHealth(97@(43@,6i), 50)
set_lvar_int_to_lvar_int 103@(43@,10i) = 97@(43@,6i)
43@ += 1
goto @DECON_3719

:DECON_3801
Task.ChatWithChar(97@, 98@, True, 1)
Task.ChatWithChar(98@, 97@, False, 1)
Task.ChatWithChar(99@, 100@, True, 1)
Task.ChatWithChar(100@, 99@, False, 1)
if 
  not Car.IsDead(82@)
goto_if_false @DECON_3907
114@ = Char.CreateInsideCar(82@, PedType.Mission1, 27)
Char.SetDecisionMaker(114@, 173@)
Char.SetOnlyDamagedByPlayer(114@, True)
Char.SetHealth(114@, 50)
set_lvar_int_to_lvar_int 109@ = 114@

:DECON_3907
116@ = Char.Create(PedType.Mission1, 16, -2089.709, 266.1128, 34.6455)
Char.SetHeading(116@, 170.2217)
Char.SetHealth(116@, 40)
174@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Char.SetDecisionMaker(116@, 174@)
set_lvar_int_to_lvar_int 110@ = 116@
World.ClearArea(-2036.18, 179.2597, 27.8359, 5.0, True)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Player.ClearWantedLevel($player1)
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.SetFixedPosition(-2010.461, 171.3564, 41.8495, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2011.302, 171.8702, 41.6786, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, -2030.987, 148.5787, 27.8359)
Char.SetHeading($scplayer, 359.4339)
50@ = -2011.302
50@ += 2010.461
51@ = 171.8702
51@ -= 171.3564
52@ = 41.6786
52@ -= 41.8495
50@ *= 10.0
51@ *= 10.0
52@ *= 10.0
$x = -2010.461
add_float_lvar_to_float_var $x += 50@
$y = 171.3564
add_float_lvar_to_float_var $y += 51@
$z = 41.8495
add_float_lvar_to_float_var $z += 52@
$heading = Math.GetHeadingFromVector2D(50@, 51@)
Streaming.LoadSceneInDirection($x, $y, $z, $heading)
Streaming.LoadAllModelsNow
Camera.DoFade(1000, Fade.In)

:DECON_4302
if 
  Camera.GetFadingStatus
goto_if_false @DECON_4326
wait 0
goto @DECON_4302

:DECON_4326
Text.PrintNow('GAR2_01', 5000, 1)
TIMERA = 0
35@ += 1

:DECON_4356
if 
  35@ == 2
goto_if_false @DECON_4843
if 
  TIMERA > 5000
goto_if_false @DECON_4843
Camera.SetFixedPosition(-2076.394, 263.7876, 35.7185, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2077.287, 264.2365, 35.6941, SwitchType.JumpCut)
50@ = -2077.287
50@ += 2076.394
51@ = 264.2365
51@ -= 263.7876
52@ = 35.6941
52@ -= 35.7185
50@ *= 10.0
51@ *= 10.0
52@ *= 10.0
$x = -2076.394
add_float_lvar_to_float_var $x += 50@
$y = 263.7876
add_float_lvar_to_float_var $y += 51@
$z = 35.7185
add_float_lvar_to_float_var $z += 52@
$heading = Math.GetHeadingFromVector2D(50@, 51@)
Streaming.LoadSceneInDirection($x, $y, $z, $heading)
Streaming.LoadAllModelsNow
if 
  not Char.IsDead(101@)
goto_if_false @DECON_4721
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2099.162, 171.1465, 34.0869, MoveState.Walk, 60000)
Task.ScratchHead(-1)
Task.GoStraightToCoord(-1, -2090.801, 263.5923, 34.7131, MoveState.Walk, 60000)
Task.ScratchHead(-1)
Sequence.SetToRepeat(49@, True)
Sequence.Close(49@)
Char.PerformSequence(101@, 49@)
Sequence.Clear(49@)

:DECON_4721
if 
  not Char.IsDead(116@)
goto_if_false @DECON_4813
49@ = Sequence.Open()
Task.ScratchHead(-1)
Task.LookAbout(-1, 5000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Sequence.SetToRepeat(49@, True)
Sequence.Close(49@)
Char.PerformSequence(116@, 49@)
Sequence.Clear(49@)

:DECON_4813
Text.PrintNow('GAR2_02', 5000, 1)
TIMERA = 0
35@ += 1

:DECON_4843
if 
  35@ == 3
goto_if_false @DECON_5240
if 
  TIMERA > 5500
goto_if_false @DECON_5240
Camera.DoFade(150, Fade.Out)

:DECON_4887
if 
  Camera.GetFadingStatus
goto_if_false @DECON_4911
wait 0
goto @DECON_4887

:DECON_4911
if 
  not Char.IsDead(101@)
goto_if_false @DECON_4957
Char.SetCoordinates(101@, -2098.833, 191.043, 34.2113)
Char.SetHeading(101@, 150.0)

:DECON_4957
Camera.SetFixedPosition(-2084.993, 195.2235, 39.2186, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2085.466, 194.3752, 38.9801, SwitchType.JumpCut)
50@ = -2085.466
50@ += 2084.993
51@ = 194.3752
51@ -= 195.2235
52@ = 38.9801
52@ -= 39.2186
50@ *= 10.0
51@ *= 10.0
52@ *= 10.0
$x = -2084.993
add_float_lvar_to_float_var $x += 50@
$y = 195.2235
add_float_lvar_to_float_var $y += 51@
$z = 39.2186
add_float_lvar_to_float_var $z += 52@
$heading = Math.GetHeadingFromVector2D(50@, 51@)
Streaming.LoadSceneInDirection($x, $y, $z, $heading)
Streaming.LoadAllModelsNow
Camera.DoFade(150, Fade.In)

:DECON_5186
if 
  Camera.GetFadingStatus
goto_if_false @DECON_5210
wait 0
goto @DECON_5186

:DECON_5210
Text.Print('GAR2_05', 5000, 1)
35@ += 1
TIMERA = 0

:DECON_5240
if 
  35@ == 4
goto_if_false @DECON_5284
if 
  TIMERA > 5000
goto_if_false @DECON_5284
35@ = 99

:DECON_5284
if 
  35@ > 0
goto_if_false @DECON_5326
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DECON_5326
35@ = 99

:DECON_5326
if 
  35@ == 99
goto_if_false @DECON_5643
if 
  not Char.IsDead(101@)
goto_if_false @DECON_5475
Char.SetCoordinates(101@, -2092.252, 252.5526, 34.4575)
Char.ClearTasks(101@)
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2099.162, 171.1465, 34.0869, MoveState.Walk, 60000)
Task.ScratchHead(-1)
Task.GoStraightToCoord(-1, -2090.801, 263.5923, 34.7131, MoveState.Walk, 60000)
Task.ScratchHead(-1)
Sequence.SetToRepeat(49@, True)
Sequence.Close(49@)
Char.PerformSequence(101@, 49@)
Sequence.Clear(49@)

:DECON_5475
if 
  not Char.IsDead(116@)
goto_if_false @DECON_5567
49@ = Sequence.Open()
Task.ScratchHead(-1)
Task.LookAbout(-1, 5000)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Sequence.SetToRepeat(49@, True)
Sequence.Close(49@)
Char.PerformSequence(116@, 49@)
Sequence.Clear(49@)

:DECON_5567
if 
  Object.DoesExist($launchdoor_a51[3])
goto_if_false @DECON_5613
Object.SetCoordinates($launchdoor_a51[3], -2077.04, 280.395, 35.817)
Object.SetHeading($launchdoor_a51[3], 0.0)

:DECON_5613
Text.ClearPrints
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(0, Fade.In)
gosub @DECON_20830

:DECON_5643
return 

:DECON_5645
if 
  Player.IsPlaying($player1)
goto_if_false @DECON_5720
if 
  Char.IsInArea2D($scplayer, -2053.226, 139.1389, -2135.449, 309.5472, False)
goto_if_false @DECON_5713
Game.SetWantedMultiplier(0.0)
goto @DECON_5720

:DECON_5713
Game.SetWantedMultiplier(1.0)

:DECON_5720
if 
  35@ == 0
goto_if_false @DECON_5843
if 
  TIMERA > 0
goto_if_false @DECON_5843
Text.PrintNow('GAR2_19', 10000, 1)
35@ += 1
TIMERB = 30000
62@ = 0
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 32401)

:DECON_5817
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @DECON_5843
wait 0
goto @DECON_5817

:DECON_5843
if 
  35@ == 1
goto_if_false @DECON_6165
if 
  TIMERB > 30000
goto_if_false @DECON_6133
if 
  Object.DoesExist(72@)
goto_if_false @DECON_6133
if 
  Char.IsTouchingObject($scplayer, 72@)
goto_if_false @DECON_6133
if 
  $audio_line_is_active == 0
goto_if_false @DECON_6133
switch_start 62@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @DECON_6094 {caseNum1} 0 {caseLabel1} @DECON_5996 {caseNum2} 1 {caseLabel2} @DECON_6045 {caseNum3} -1 {caseLabel3} @DECON_6094 {caseNum4} -1 {caseLabel4} @DECON_6094 {caseNum5} -1 {caseLabel5} @DECON_6094 {caseNum6} -1 {caseLabel6} @DECON_6094 {caseNum7} -1 {caseLabel7} @DECON_6094

:DECON_5996
set_var_text_label s$audio_string = 'GAR2_AK'
set_var_int_to_constant $audio_sound_file = 42209
start_new_script @AUDIOL -1 0 0 1 0 
goto @DECON_6094

:DECON_6045
set_var_text_label s$audio_string = 'GAR2_AF'
set_var_int_to_constant $audio_sound_file = 42205
start_new_script @AUDIOL -1 0 0 1 0 
goto @DECON_6094

:DECON_6094
62@ += 1
if 
  62@ > 1
goto_if_false @DECON_6126
62@ = 0

:DECON_6126
TIMERB = 0

:DECON_6133
if 
  139@ == 6
goto_if_false @DECON_6165
TIMERA = 0
35@ += 1

:DECON_6165
if 
  35@ == 2
goto_if_false @DECON_6209
if 
  TIMERA > 1000
goto_if_false @DECON_6209
35@ = 99

:DECON_6209
if and
  140@ == 1
  0 >= $7233
  6 > 139@
goto_if_false @DECON_6329
if 
  not Player.IsWantedLevelGreater($player1, 1)
goto_if_false @DECON_6266
Player.AlterWantedLevel($player1, 2)

:DECON_6266
World.CreateEmergencyServicesCar(597, -2039.255, 232.481, 33.9528)
World.CreateEmergencyServicesCar(597, -2038.185, 254.2709, 34.0893)
37@ = 1
Text.PrintNow('GAR2_40', 5000, 1)

:DECON_6329
if 
  35@ == 99
goto_if_false @DECON_6363
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Hud.ClearTimer($7233)
gosub @DECON_20830

:DECON_6363
43@ = 0

:DECON_6370
if 
  6 > 43@
goto_if_false @DECON_6668
if 
  Object.DoesExist($launchdoor_a51(43@,6i))
goto_if_false @DECON_6654
if 
  Object.HasBeenDamaged($launchdoor_a51(43@,6i))
goto_if_false @DECON_6654
if 
  127@(43@,6i) == 0
goto_if_false @DECON_6654
Blip.Remove(117@(43@,6i))
139@ += 1
127@(43@,6i) = 1
if 
  139@ == 1
goto_if_false @DECON_6511
Text.PrintNow('GAR2_29', 7000, 1)

:DECON_6511
if 
  139@ == 2
goto_if_false @DECON_6545
Text.PrintNow('GAR2_30', 7000, 1)

:DECON_6545
if 
  139@ == 3
goto_if_false @DECON_6579
Text.PrintNow('GAR2_31', 7000, 1)

:DECON_6579
if 
  139@ == 4
goto_if_false @DECON_6613
Text.PrintNow('GAR2_32', 7000, 1)

:DECON_6613
if 
  139@ == 5
goto_if_false @DECON_6647
Text.PrintNow('GAR2_33', 7000, 1)

:DECON_6647
TIMERA = 0

:DECON_6654
43@ += 1
goto @DECON_6370

:DECON_6668
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @DECON_6773
43@ = 0

:DECON_6690
if 
  6 > 43@
goto_if_false @DECON_6773
if 
  Object.DoesExist($launchdoor_a51(43@,6i))
goto_if_false @DECON_6759
if 
  not Object.HasBeenDamaged($launchdoor_a51(43@,6i))
goto_if_false @DECON_6759
Object.Break($launchdoor_a51(43@,6i), 0)

:DECON_6759
43@ += 1
goto @DECON_6690

:DECON_6773
return 

:DECON_6775
Text.ClearHelp
if 
  35@ == 0
goto_if_false @DECON_8054
Text.ClearPrints
Player.SetControl($player1, False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.Out)

:DECON_6819
if 
  Camera.GetFadingStatus
goto_if_false @DECON_6843
wait 0
goto @DECON_6819

:DECON_6843
Hud.SwitchWidescreen(True)
if 
  $player_is_in_crane <> 1
goto_if_false @DECON_6950
if 
  Char.IsInArea3D($scplayer, -2066.839, 209.6444, 28.403, -2040.101, 262.7024, 34.9146, False)
goto_if_false @DECON_6943
Char.SetCoordinates($scplayer, -2090.044, 209.4996, 33.9509)
Char.SetHeading($scplayer, 250.813)

:DECON_6943
goto @DECON_6957

:DECON_6950
$flag_car_lowrider_carmod = 1

:DECON_6957
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 32405)

:DECON_6964
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @DECON_6990
wait 0
goto @DECON_6964

:DECON_6990
World.ClearArea(-2054.474, 222.6438, 35.8767, 3.0, True)
43@ = 0

:DECON_7021
if 
  10 > 43@
goto_if_false @DECON_7170
if 
  Char.DoesExist(103@(43@,10i))
goto_if_false @DECON_7156
if 
  not Char.IsDead(103@(43@,10i))
goto_if_false @DECON_7147
if 
  Char.LocateAnyMeans3D(103@(43@,10i), -2054.474, 222.6438, 35.8767, 5.0, 5.0, 3.0, False)
goto_if_false @DECON_7140
Char.Delete(103@(43@,10i))

:DECON_7140
goto @DECON_7156

:DECON_7147
Char.Delete(103@(43@,10i))

:DECON_7156
43@ += 1
goto @DECON_7021

:DECON_7170
43@ = 0

:DECON_7177
if 
  7 > 43@
goto_if_false @DECON_7331
if 
  Car.DoesExist(90@(43@,7i))
goto_if_false @DECON_7317
if 
  not Car.IsDead(90@(43@,7i))
goto_if_false @DECON_7308
if 
  Car.Locate3D(90@(43@,7i), -2054.474, 222.6438, 35.8767, 6.0, 6.0, 3.0, 90@(43@,7i))
goto_if_false @DECON_7301
Car.Delete(90@(43@,7i))

:DECON_7301
goto @DECON_7317

:DECON_7308
Car.Delete(90@(43@,7i))

:DECON_7317
43@ += 1
goto @DECON_7177

:DECON_7331
43@ = 0

:DECON_7338
if 
  6 > 43@
goto_if_false @DECON_7456
if 
  Object.DoesExist(69@(43@,6i))
goto_if_false @DECON_7442
if 
  Object.Locate3D(69@(43@,6i), -2054.474, 222.6438, 35.8767, 3.0, 3.0, 3.0, 69@(43@,6i))
goto_if_false @DECON_7442
Object.Delete(69@(43@,6i))

:DECON_7442
43@ += 1
goto @DECON_7338

:DECON_7456
43@ = 0

:DECON_7463
if 
  5 > 43@
goto_if_false @DECON_7581
if 
  Object.DoesExist(75@(43@,5i))
goto_if_false @DECON_7567
if 
  Object.Locate3D(75@(43@,5i), -2054.474, 222.6438, 35.8767, 3.0, 3.0, 3.0, 75@(43@,5i))
goto_if_false @DECON_7567
Object.Delete(75@(43@,5i))

:DECON_7567
43@ += 1
goto @DECON_7463

:DECON_7581
if 
  Object.DoesExist($sf_crane1_arm)
goto_if_false @DECON_7607
Object.SetRopeHeight($sf_crane1_arm, 0.5)

:DECON_7607
if 
  Object.DoesExist(72@)
goto_if_false @DECON_7628
Object.Delete(72@)

:DECON_7628
72@ = Object.CreateNoOffset(#PORTALOO, -2054.474, 222.6438, 35.8767)
Object.SetHeading(72@, 0.0)
Object.SetCollision(72@, False)
Camera.SetFixedPosition(-2058.05, 218.8743, 35.7489, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2057.423, 219.653, 35.7245, SwitchType.JumpCut)
if 
  Object.DoesExist($launchdoor_a51[2])
goto_if_false @DECON_7740
Object.Delete($launchdoor_a51[2])

:DECON_7740
$launchdoor_a51[2] = Object.Create(#PORTAKABIN, $2676[2], $2682[2], $2688[2])
Object.SetHeading($launchdoor_a51[2], $2694[2])
Object.SetDynamic($launchdoor_a51[2], False)
Object.DontRemove($launchdoor_a51[2])
113@ = Char.Create(PedType.CivMale, 16, -2054.474, 222.6438, 34.8767)
Char.SetHeading(113@, 90.0)
88@ = Car.Create(524, -2037.176, 269.7917, 34.9191)
Car.SetHeading(88@, 179.5245)
set_lvar_int_to_lvar_int 96@ = 88@
43@ = 0

:DECON_7858
if 
  10 > 43@
goto_if_false @DECON_8016
if 
  Char.DoesExist(103@(43@,10i))
goto_if_false @DECON_8002
if 
  not Char.IsDead(103@(43@,10i))
goto_if_false @DECON_8002
if 
  not Char.IsInAnyCar(103@(43@,10i))
goto_if_false @DECON_7976
Char.FreezePosition(103@(43@,10i), True)
Char.SetCollision(103@(43@,10i), False)
Char.SetVisible(103@(43@,10i), False)
goto @DECON_8002

:DECON_7976
$car = Char.StoreCarIsInNoSave(103@(43@,10i))
Car.FreezePosition($car, True)
Car.SetVisible($car, False)

:DECON_8002
43@ += 1
goto @DECON_7858

:DECON_8016
Camera.DoFade(500, Fade.In)

:DECON_8023
if 
  Camera.GetFadingStatus
goto_if_false @DECON_8047
wait 0
goto @DECON_8023

:DECON_8047
35@ += 1

:DECON_8054
if 
  35@ > 0
goto_if_false @DECON_8096
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DECON_8096
35@ = 99

:DECON_8096
if 
  35@ == 1
goto_if_false @DECON_8155
if 
  Object.DoesExist(72@)
goto_if_false @DECON_8141
Audio.AttachMissionAudioToObject(MissionAudioSlot.Slot3, 72@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:DECON_8141
TIMERA = 0
35@ += 1

:DECON_8155
if 
  35@ == 2
goto_if_false @DECON_8222
if 
  TIMERA > 3000
goto_if_false @DECON_8222
if 
  Object.DoesExist($launchdoor_a51[2])
goto_if_false @DECON_8222
Object.Break($launchdoor_a51[2], 0)
35@ += 1

:DECON_8222
if 
  35@ == 3
goto_if_false @DECON_8455
if 
  TIMERA > 4000
goto_if_false @DECON_8455
if 
  not Char.IsDead(113@)
goto_if_false @DECON_8455
Camera.SetFixedPosition(-2051.721, 225.4406, 36.5865, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2052.561, 224.9327, 36.3922, SwitchType.JumpCut)
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2057.137, 223.541, 34.582, MoveState.Walk, 5000)
if 
  Object.DoesExist($launchdoor_a51[2])
goto_if_false @DECON_8380
Task.LookAtObject(-1, $launchdoor_a51[2], 100)

:DECON_8380
Sequence.Close(49@)
Char.PerformSequence(113@, 49@)
Sequence.Clear(49@)
set_var_text_label s$audio_string = 'GAR2_AA'
set_var_int_to_constant $audio_sound_file = 42200
start_new_script @AUDIOL 113@ 0 1 1 0 
35@ += 1
TIMERA = 0

:DECON_8455
if 
  35@ == 4
goto_if_false @DECON_8506
if and
  TIMERA > 3000
  $audio_line_is_active == 0
goto_if_false @DECON_8506
35@ += 1

:DECON_8506
if 
  35@ == 5
goto_if_false @DECON_8687
if 
  not Char.IsDead(113@)
goto_if_false @DECON_8687
43@ = Char.GetScriptTaskStatus(113@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @DECON_8687
Char.SetCoordinates(113@, -2057.137, 223.541, 34.582)
Char.SetHeading(113@, 97.4598)
Camera.SetFixedPosition(-2056.056, 222.2135, 36.2036, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2056.939, 222.6817, 36.1606, SwitchType.JumpCut)
Task.LookAtCoord(113@, -2069.0, 229.0, 36.0, 2000)
TIMERA = 0
35@ += 1

:DECON_8687
if 
  35@ == 6
goto_if_false @DECON_8789
if 
  TIMERA > 2000
goto_if_false @DECON_8789
TIMERA = 0
Camera.SetFixedPosition(-2051.721, 225.4406, 36.5865, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2052.561, 224.9327, 36.3922, SwitchType.JumpCut)
35@ += 1

:DECON_8789
if 
  35@ == 7
goto_if_false @DECON_8905
if 
  not Char.IsDead(113@)
goto_if_false @DECON_8905
set_var_text_label s$audio_string = 'GAR2_AB'
set_var_int_to_constant $audio_sound_file = 42201
start_new_script @AUDIOL 113@ 0 1 1 0 
Task.GoStraightToCoord(113@, -2054.474, 222.6438, 35.8767, MoveState.Run, 5000)
TIMERA = 0
35@ += 1

:DECON_8905
if 
  35@ == 8
goto_if_false @DECON_8949
if 
  TIMERA > 1500
goto_if_false @DECON_8949
35@ += 1

:DECON_8949
if 
  35@ == 9
goto_if_false @DECON_9031
if 
  not Char.IsDead(113@)
goto_if_false @DECON_9031
43@ = Char.GetScriptTaskStatus(113@, 1491)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @DECON_9031
Char.Delete(113@)
TIMERA = 0
35@ += 1

:DECON_9031
if 
  35@ == 10
goto_if_false @DECON_9144
if 
  TIMERA > 2000
goto_if_false @DECON_9144
Text.ClearPrints
Camera.SetFixedPosition(-2037.439, 244.0506, 43.8289, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2038.147, 244.4092, 43.2209, SwitchType.JumpCut)
Text.Print('GAR2_11', 5000, 1)
35@ += 1

:DECON_9144
if 
  35@ == 11
goto_if_false @DECON_9188
if 
  TIMERA > 5000
goto_if_false @DECON_9188
35@ += 1

:DECON_9188
if 
  35@ == 12
goto_if_false @DECON_9289
Text.ClearPrints
Camera.SetFixedPosition(-2031.781, 262.1947, 36.3181, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2032.476, 262.9132, 36.3398, SwitchType.JumpCut)
Text.Print('GAR2_12', 5000, 1)
TIMERA = 0
35@ += 1

:DECON_9289
if 
  35@ == 13
goto_if_false @DECON_9333
if 
  TIMERA > 5000
goto_if_false @DECON_9333
35@ = 99

:DECON_9333
if 
  35@ == 99
goto_if_false @DECON_9682
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  Object.DoesExist(72@)
goto_if_false @DECON_9390
Object.SetCollision(72@, True)

:DECON_9390
Text.ClearPrints
if 
  $player_is_in_crane == 0
goto_if_false @DECON_9424
Player.SetControl($player1, True)
goto @DECON_9431

:DECON_9424
$flag_car_lowrider_carmod = 0

:DECON_9431
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
if 
  Object.DoesExist($launchdoor_a51[2])
goto_if_false @DECON_9460
Object.Delete($launchdoor_a51[2])

:DECON_9460
if 
  Char.DoesExist(113@)
goto_if_false @DECON_9481
Char.Delete(113@)

:DECON_9481
43@ = 0

:DECON_9488
if 
  10 > 43@
goto_if_false @DECON_9646
if 
  Char.DoesExist(103@(43@,10i))
goto_if_false @DECON_9632
if 
  not Char.IsDead(103@(43@,10i))
goto_if_false @DECON_9632
if 
  not Char.IsInAnyCar(103@(43@,10i))
goto_if_false @DECON_9606
Char.FreezePosition(103@(43@,10i), False)
Char.SetCollision(103@(43@,10i), True)
Char.SetVisible(103@(43@,10i), True)
goto @DECON_9632

:DECON_9606
$car = Char.StoreCarIsInNoSave(103@(43@,10i))
Car.FreezePosition($car, False)
Car.SetVisible($car, True)

:DECON_9632
43@ += 1
goto @DECON_9488

:DECON_9646
if 
  $player_is_in_crane == 1
goto_if_false @DECON_9671
$reset_crane_camera = 1

:DECON_9671
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
gosub @DECON_20830

:DECON_9682
return 

:DECON_9684
if 
  Player.IsPlaying($player1)
goto_if_false @DECON_9759
if 
  Char.IsInArea2D($scplayer, -2053.226, 139.1389, -2135.449, 309.5472, False)
goto_if_false @DECON_9752
Game.SetWantedMultiplier(0.0)
goto @DECON_9759

:DECON_9752
Game.SetWantedMultiplier(1.0)

:DECON_9759
if 
  35@ == 0
goto_if_false @DECON_9903
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  Object.DoesExist(72@)
goto_if_false @DECON_9824
124@ = Blip.AddForObject(72@)
Blip.ChangeColor(124@, BlipColor.Red)

:DECON_9824
123@ = Blip.AddForCoord(-2048.644, 250.1341, 35.54)
Text.Print('GAR2_10', 7000, 1)
TIMERA = 0
62@ = 0
64@ = 4000
172@ = 0
167@ = -1
35@ += 1

:DECON_9903
if 
  35@ == 1
goto_if_false @DECON_10854
if 
  64@ > 5000
goto_if_false @DECON_10523
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @DECON_10523
if 
  Object.DoesExist(72@)
goto_if_false @DECON_10523
46@ = Object.GetSpeed(72@)
if or
  46@ > 2.0
  Char.IsTouchingObject($scplayer, 72@)
goto_if_false @DECON_10523
if 
  $audio_line_is_active == 0
goto_if_false @DECON_10523
switch_start 62@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @DECON_10462 {caseNum1} 0 {caseLabel1} @DECON_10152 {caseNum2} 1 {caseLabel2} @DECON_10183 {caseNum3} 2 {caseLabel3} @DECON_10214 {caseNum4} 3 {caseLabel4} @DECON_10245 {caseNum5} 4 {caseLabel5} @DECON_10276 {caseNum6} 5 {caseLabel6} @DECON_10307 {caseNum7} 6 {caseLabel7} @DECON_10338
switch_continued 7 {caseLabel1} @DECON_10369 {caseNum2} 8 {caseLabel2} @DECON_10400 {caseNum3} 9 {caseLabel3} @DECON_10431 {caseNum4} -1 {caseLabel4} @DECON_10462 {caseNum5} -1 {caseLabel5} @DECON_10462 {caseNum6} -1 {caseLabel6} @DECON_10462 {caseNum7} -1 {caseLabel7} @DECON_10462 {caseNum8} -1 {caseLabel8} @DECON_10462 {caseNum9} -1 {caseLabel9} @DECON_10462

:DECON_10152
set_var_text_label s$audio_string = 'GAR2_AC'
set_var_int_to_constant $audio_sound_file = 42202
goto @DECON_10462

:DECON_10183
set_var_text_label s$audio_string = 'GAR2_AD'
set_var_int_to_constant $audio_sound_file = 42203
goto @DECON_10462

:DECON_10214
set_var_text_label s$audio_string = 'GAR2_AE'
set_var_int_to_constant $audio_sound_file = 42204
goto @DECON_10462

:DECON_10245
set_var_text_label s$audio_string = 'GAR2_AF'
set_var_int_to_constant $audio_sound_file = 42205
goto @DECON_10462

:DECON_10276
set_var_text_label s$audio_string = 'GAR2_AG'
set_var_int_to_constant $audio_sound_file = 42206
goto @DECON_10462

:DECON_10307
set_var_text_label s$audio_string = 'GAR2_AH'
set_var_int_to_constant $audio_sound_file = 42207
goto @DECON_10462

:DECON_10338
set_var_text_label s$audio_string = 'GAR2_AJ'
set_var_int_to_constant $audio_sound_file = 42208
goto @DECON_10462

:DECON_10369
set_var_text_label s$audio_string = 'GAR2_AK'
set_var_int_to_constant $audio_sound_file = 42209
goto @DECON_10462

:DECON_10400
set_var_text_label s$audio_string = 'GAR2_AL'
set_var_int_to_constant $audio_sound_file = 42210
goto @DECON_10462

:DECON_10431
set_var_text_label s$audio_string = 'GAR2_AM'
set_var_int_to_constant $audio_sound_file = 42211
goto @DECON_10462

:DECON_10462
start_new_script @AUDIOL -1 0 0 1 0 
62@ += 1
if 
  62@ > 7
goto_if_false @DECON_10512
62@ = 0

:DECON_10512
64@ = 0
wait 1

:DECON_10523
if and
  172@ > 150000
  151000 > 172@
goto_if_false @DECON_10589
Text.ClearPrints
Text.PrintNow('GAR2_34', 7000, 1)
172@ = 151001
64@ = 0

:DECON_10589
if 
  172@ > 200000
goto_if_false @DECON_10698
if 
  not Player.IsWantedLevelGreater($player1, 1)
goto_if_false @DECON_10635
Player.AlterWantedLevel($player1, 2)

:DECON_10635
World.CreateEmergencyServicesCar(597, -2039.255, 232.481, 33.9528)
World.CreateEmergencyServicesCar(597, -2038.185, 254.2709, 34.0893)
37@ = 1
Text.PrintNow('GAR2_35', 5000, 1)

:DECON_10698
if 
  Object.DoesExist(72@)
goto_if_false @DECON_10847
if 
  Object.Locate3D(72@, -2048.886, 250.6607, 32.5177, 2.898, 5.05, 2.0, False)
goto_if_false @DECON_10847
if and
  not Text.IsMessageBeingDisplayed
  $audio_line_is_active == 0
goto_if_false @DECON_10847
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Text.PrintNow('GAR2_36', 7000, 1)
Blip.Remove(123@)
Blip.Remove(124@)
35@ += 1
TIMERA = 0
TIMERB = 0

:DECON_10847
gosub @DECON_11807

:DECON_10854
if and
  35@ > 1
  4 > 35@
goto_if_false @DECON_11131
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DECON_11092
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.IsModel($car, 524)
goto_if_false @DECON_11053
if 
  167@ <> 1
goto_if_false @DECON_11046
Text.PrintNow('GAR2_37', 7000, 1)
if 
  Blip.DoesExist(125@)
goto_if_false @DECON_10977
Blip.Remove(125@)

:DECON_10977
if 
  Blip.DoesExist(126@)
goto_if_false @DECON_10998
Blip.Remove(126@)

:DECON_10998
if 
  Blip.DoesExist(123@)
goto_if_false @DECON_11019
Blip.Remove(123@)

:DECON_11019
123@ = Blip.AddForCoord(-2049.707, 240.5694, 34.762)
167@ = 1

:DECON_11046
goto @DECON_11085

:DECON_11053
if 
  167@ <> 0
goto_if_false @DECON_11085
gosub @DECON_11658
167@ = 0

:DECON_11085
goto @DECON_11124

:DECON_11092
if 
  167@ <> 0
goto_if_false @DECON_11124
gosub @DECON_11658
167@ = 0

:DECON_11124
gosub @DECON_11807

:DECON_11131
if 
  35@ == 2
goto_if_false @DECON_11277
TIMERA = 0
TIMERB = 0
35@ += 1
if 
  164@ == 0
goto_if_false @DECON_11277
if 
  Object.DoesExist(72@)
goto_if_false @DECON_11277
if 
  not Object.IsOnScreen(72@)
goto_if_false @DECON_11277
Object.SetCoordinates(72@, -2048.957, 250.2059, 32.6542)
Object.SetHeading(72@, 158.56)
Object.SetRotation(72@, -170.1394, -88.8094, -21.44)
164@ = 1

:DECON_11277
if 
  35@ == 3
goto_if_false @DECON_11631
if 
  164@ == 0
goto_if_false @DECON_11402
if 
  Object.DoesExist(72@)
goto_if_false @DECON_11402
if 
  not Object.IsOnScreen(72@)
goto_if_false @DECON_11402
Object.SetCoordinates(72@, -2048.957, 250.2059, 32.6542)
Object.SetHeading(72@, 158.56)
Object.SetRotation(72@, -170.1394, -88.8094, -21.44)
164@ = 1

:DECON_11402
if 
  Char.LocateAnyMeans3D($scplayer, -2049.707, 240.5694, 34.762, 3.0, 3.0, 3.0, True)
goto_if_false @DECON_11631
if 
  Char.IsInModel($scplayer, 524)
goto_if_false @DECON_11582
if 
  Car.IsStopped(89@)
goto_if_false @DECON_11575
if 
  not Car.IsDead(89@)
goto_if_false @DECON_11575
$heading = Car.GetHeading(89@)
if and
  190.0 > $heading
  $heading > 170.0
goto_if_false @DECON_11559
Blip.Remove(123@)
35@ = 99
goto @DECON_11575

:DECON_11559
Text.PrintNow('GAR2_14', 1000, 1)

:DECON_11575
goto @DECON_11624

:DECON_11582
if 
  TIMERA > 30000
goto_if_false @DECON_11624
Text.PrintNow('GAR2_20', 7000, 1)
TIMERA = 0

:DECON_11624
goto @DECON_11631

:DECON_11631
if 
  35@ == 99
goto_if_false @DECON_11656
gosub @DECON_20830

:DECON_11656
return 

:DECON_11658
if 
  Blip.DoesExist(123@)
goto_if_false @DECON_11679
Blip.Remove(123@)

:DECON_11679
if 
  not Car.IsDead(84@)
goto_if_false @DECON_11742
if 
  not Blip.DoesExist(125@)
goto_if_false @DECON_11742
125@ = Blip.AddForCar(84@)
Blip.SetAsFriendly(125@, True)
Text.PrintNow('GAR2_36', 7000, 1)

:DECON_11742
if 
  not Car.IsDead(88@)
goto_if_false @DECON_11805
if 
  not Blip.DoesExist(126@)
goto_if_false @DECON_11805
126@ = Blip.AddForCar(88@)
Blip.SetAsFriendly(126@, True)
Text.PrintNow('GAR2_36', 7000, 1)

:DECON_11805
return 

:DECON_11807
if 
  Car.DoesExist(84@)
goto_if_false @DECON_11937
if 
  not Car.IsDead(84@)
goto_if_false @DECON_11920
if 
  Car.Locate3D(84@, -2049.199, 250.3882, 32.9084, 2.454, 5.042, 2.3, False)
goto_if_false @DECON_11913
if 
  not Car.IsOnScreen(84@)
goto_if_false @DECON_11913
Car.Delete(84@)
Blip.Remove(125@)

:DECON_11913
goto @DECON_11930

:DECON_11920
Car.MarkAsNoLongerNeeded(84@)
Blip.Remove(125@)

:DECON_11930
goto @DECON_12082

:DECON_11937
if 
  not Camera.IsPointOnScreen(-2112.603, 193.7894, 33.6684, 5.0)
goto_if_false @DECON_12082
if 
  not World.IsPointObscuredByAMissionEntity(-2112.603, 193.7894, 33.6684, 3.0, 3.0, 3.0)
goto_if_false @DECON_12082
84@ = Car.Create(524, -2112.603, 193.7894, 33.6684)
Car.SetHeading(84@, 276.2221)
if 
  Blip.DoesExist(125@)
goto_if_false @DECON_12067
Blip.Remove(125@)

:DECON_12067
125@ = Blip.AddForCar(84@)
Blip.SetAsFriendly(125@, True)

:DECON_12082
if 
  Car.DoesExist(88@)
goto_if_false @DECON_12212
if 
  not Car.IsDead(88@)
goto_if_false @DECON_12195
if 
  Car.Locate3D(88@, -2049.199, 250.3882, 32.9084, 2.454, 5.042, 2.3, False)
goto_if_false @DECON_12188
if 
  not Car.IsOnScreen(88@)
goto_if_false @DECON_12188
Car.Delete(88@)
Blip.Remove(126@)

:DECON_12188
goto @DECON_12205

:DECON_12195
Car.MarkAsNoLongerNeeded(88@)
Blip.Remove(126@)

:DECON_12205
goto @DECON_12357

:DECON_12212
if 
  not Camera.IsPointOnScreen(-2037.176, 269.7917, 34.9191, 5.0)
goto_if_false @DECON_12357
if 
  not World.IsPointObscuredByAMissionEntity(-2037.176, 269.7917, 34.9191, 3.0, 3.0, 3.0)
goto_if_false @DECON_12357
88@ = Car.Create(524, -2037.176, 269.7917, 34.9191)
Car.SetHeading(88@, 179.5245)
if 
  Blip.DoesExist(126@)
goto_if_false @DECON_12342
Blip.Remove(126@)

:DECON_12342
126@ = Blip.AddForCar(88@)
Blip.SetAsFriendly(126@, True)

:DECON_12357
return 

:DECON_12359
if 
  35@ == 0
goto_if_false @DECON_13168
Text.ClearPrints
Player.SetControl($player1, False)
Camera.DoFade(250, Fade.Out)

:DECON_12393
if 
  Camera.GetFadingStatus
goto_if_false @DECON_12417
wait 0
goto @DECON_12393

:DECON_12417
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 32400)

:DECON_12424
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @DECON_12450
wait 0
goto @DECON_12424

:DECON_12450
if 
  Object.DoesExist(72@)
goto_if_false @DECON_12532
if 
  not Object.IsOnScreen(72@)
goto_if_false @DECON_12532
Object.SetCoordinates(72@, -2048.957, 250.2059, 32.6542)
Object.SetHeading(72@, 158.56)
Object.SetRotation(72@, -170.1394, -88.8094, -21.44)

:DECON_12532
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2046.33, 255.5639, 35.1158, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2046.688, 254.6398, 34.9808, SwitchType.JumpCut)
43@ = 0

:DECON_12594
if 
  10 > 43@
goto_if_false @DECON_12666
if 
  Char.DoesExist(103@(43@,10i))
goto_if_false @DECON_12652
Char.Delete(103@(43@,10i))
103@(43@,10i) = 0

:DECON_12652
43@ += 1
goto @DECON_12594

:DECON_12666
Char.SetCoordinates($scplayer, -2049.734, 241.7195, 70.7037)
Char.SetHeading($scplayer, 176.835)
43@ = 0

:DECON_12703
if 
  7 > 43@
goto_if_false @DECON_12816
if 
  not Car.IsDead(90@(43@,7i))
goto_if_false @DECON_12802
if 
  Car.Locate3D(90@(43@,7i), -2049.734, 241.7195, 34.7037, 7.0, 7.0, 5.0, False)
goto_if_false @DECON_12802
Car.Delete(90@(43@,7i))

:DECON_12802
43@ += 1
goto @DECON_12703

:DECON_12816
43@ = 0

:DECON_12823
if 
  7 > 43@
goto_if_false @DECON_12952
if 
  not Car.IsDead(90@(43@,7i))
goto_if_false @DECON_12929
if 
  Car.Locate3D(90@(43@,7i), -2048.886, 250.6607, 32.5177, 2.898, 5.05, 2.0, False)
goto_if_false @DECON_12922
Car.Delete(90@(43@,7i))

:DECON_12922
goto @DECON_12938

:DECON_12929
Car.Delete(90@(43@,7i))

:DECON_12938
43@ += 1
goto @DECON_12823

:DECON_12952
World.ClearArea(-2049.734, 241.7195, 34.7037, 10.0, True)
Char.SetCoordinates($scplayer, -2049.734, 241.7195, 34.7037)
Char.SetHeading($scplayer, 176.835)
if 
  not Car.IsDead(89@)
goto_if_false @DECON_13118
Car.SetQuaternion(89@, -0.0448, 0.0178, 1.003, -0.0611)
80@ = Object.CreateNoOffset(#HUBHOLE3_SFSE, -2049.171, 250.3193, 30.8784)
178@ = Particle.CreateOnCarWithDirection("CEMENT", 89@, 0.0, -4.4, 0.0, 0.0, -1.0, 0.0, 1)

:DECON_13118
wait 500
Camera.DoFade(250, Fade.In)

:DECON_13130
if 
  Camera.GetFadingStatus
goto_if_false @DECON_13154
wait 0
goto @DECON_13130

:DECON_13154
TIMERA = 0
35@ += 1

:DECON_13168
if 
  35@ == 1
goto_if_false @DECON_13269
46@ = 0.0

:DECON_13196
if 
  1.0 > 46@
goto_if_false @DECON_13262
wait 0
if 
  not Car.IsDead(89@)
goto_if_false @DECON_13245
Car.ControlMovablePart(89@, 46@)

:DECON_13245
add_timed_val_to_float_lvar 46@ +=@ 0.01
goto @DECON_13196

:DECON_13262
35@ += 1

:DECON_13269
if 
  35@ == 2
goto_if_false @DECON_13387
if 
  TIMERA > 2000
goto_if_false @DECON_13387
Particle.Play(178@)
if 
  not Car.IsDead(89@)
goto_if_false @DECON_13373
$x, $y, $z = Car.GetOffsetInWorldCoords(89@, 0.0, -4.4, 0.0)
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot3, $x, $y, $z)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:DECON_13373
TIMERA = 0
35@ += 1

:DECON_13387
if 
  35@ == 3
goto_if_false @DECON_13431
if 
  TIMERA > 1000
goto_if_false @DECON_13431
35@ += 1

:DECON_13431
if 
  35@ == 4
goto_if_false @DECON_13520
if 
  Object.Slide(80@, -2049.171, 250.3193, 34.177, 0.01, 0.01, 0.009, False)
goto_if_false @DECON_13520
TIMERA = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Particle.Stop(178@)
35@ += 1

:DECON_13520
if 
  35@ == 5
goto_if_false @DECON_13564
if 
  TIMERA > 2000
goto_if_false @DECON_13564
35@ = 99

:DECON_13564
if 
  35@ == 99
goto_if_false @DECON_13624
if 
  not Car.IsDead(89@)
goto_if_false @DECON_13598

:DECON_13598
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
36@ = 1

:DECON_13624
return 

:DECON_13626
if and
  39@ == 1
  140@ == 0
goto_if_false @DECON_14223
43@ = 0

:DECON_13658
if 
  6 > 43@
goto_if_false @DECON_13749
if 
  Char.DoesExist(97@(43@,6i))
goto_if_false @DECON_13735
if or
  Char.HasBeenDamagedByChar(97@(43@,6i), $scplayer)
  Char.IsDead(97@(43@,6i))
goto_if_false @DECON_13735
140@ = 1

:DECON_13735
43@ += 1
goto @DECON_13658

:DECON_13749
if 
  Char.DoesExist(116@)
goto_if_false @DECON_13796
if or
  Char.HasBeenDamagedByChar(116@, $scplayer)
  Char.IsDead(116@)
goto_if_false @DECON_13796
140@ = 1

:DECON_13796
if 
  Char.DoesExist(114@)
goto_if_false @DECON_13843
if or
  Char.HasBeenDamagedByChar(114@, $scplayer)
  Char.IsDead(114@)
goto_if_false @DECON_13843
140@ = 1

:DECON_13843
43@ = 0

:DECON_13850
if 
  6 > 43@
goto_if_false @DECON_13940
if 
  Object.DoesExist($launchdoor_a51(43@,6i))
goto_if_false @DECON_13926
44@ = Object.GetHealth($launchdoor_a51(43@,6i))
if 
  900 > 44@
goto_if_false @DECON_13926
140@ = 1

:DECON_13926
43@ += 1
goto @DECON_13850

:DECON_13940
43@ = 0

:DECON_13947
if 
  7 > 43@
goto_if_false @DECON_14079
if 
  Car.DoesExist(90@(43@,7i))
goto_if_false @DECON_14065
if 
  not Car.IsDead(90@(43@,7i))
goto_if_false @DECON_14065
if 
  Char.IsInCar($scplayer, 90@(43@,7i))
goto_if_false @DECON_14035
140@ = 1

:DECON_14035
if 
  Car.HasBeenDamagedByChar(90@(43@,7i), $scplayer)
goto_if_false @DECON_14065
140@ = 1

:DECON_14065
43@ += 1
goto @DECON_13947

:DECON_14079
if 
  140@ == 1
goto_if_false @DECON_14165
43@ = 0

:DECON_14104
if 
  10 > 43@
goto_if_false @DECON_14165
if 
  not Char.IsDead(103@(43@,10i))
goto_if_false @DECON_14151
Char.ClearTasks(103@(43@,10i))

:DECON_14151
43@ += 1
goto @DECON_14104

:DECON_14165
if 
  140@ == 1
goto_if_false @DECON_14216
$7233 = 180000
Hud.DisplayTimer($7233, TimerDirection.Down)
Text.Print('GAR2_41', 7000, 1)

:DECON_14216
goto @DECON_14317

:DECON_14223
if 
  168@ == 0
goto_if_false @DECON_14317
if and
  not Text.IsHelpMessageBeingDisplayed
  not Text.IsMessageBeingDisplayed
goto_if_false @DECON_14317
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DECON_14317
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.IsModel($car, 486)
goto_if_false @DECON_14317
Text.PrintHelp('GAR2_42')
168@ += 1

:DECON_14317
if and
  166@ == 0
  2 >= 34@
goto_if_false @DECON_14399
if and
  Car.IsDead(82@)
  Car.IsDead(83@)
goto_if_false @DECON_14399
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @DECON_14399
Text.PrintNow('GAR2_39', 7000, 1)
166@ += 1

:DECON_14399
if 
  140@ == 1
goto_if_false @DECON_16020
if 
  not Char.IsDead(116@)
goto_if_false @DECON_14531
43@ = Char.GetScriptTaskStatus(116@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @DECON_14531
49@ = Sequence.Open()
Task.GotoChar(-1, $scplayer, 60000, 20.0)
Task.SmartFleeChar(-1, $scplayer, 300.0, 60000)
Sequence.Close(49@)
Char.PerformSequence(116@, 49@)
Sequence.Clear(49@)
Char.MarkAsNoLongerNeeded(116@)
110@ = 0

:DECON_14531
175@ = Sequence.Open()
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @DECON_14576
Task.GotoChar(-1, $scplayer, 60000, 5.0)
goto @DECON_14593

:DECON_14576
Task.GotoChar(-1, $scplayer, 60000, 15.0)

:DECON_14593
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @DECON_14651
Task.PlayAnim(-1, "FIGHTIDLE", "PED", 4.0, False, False, False, True, -1)
goto @DECON_14651

:DECON_14651
Sequence.Close(175@)
176@ = Sequence.Open()
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @DECON_14701
Task.GotoChar(-1, $scplayer, 60000, 7.5)
goto @DECON_14718

:DECON_14701
Task.GotoChar(-1, $scplayer, 60000, 10.0)

:DECON_14718
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @DECON_14776
Task.PlayAnim(-1, "FIGHTIDLE", "PED", 4.0, False, False, False, True, -1)
goto @DECON_14776

:DECON_14776
Sequence.Close(176@)
177@ = Sequence.Open()
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @DECON_14826
Task.GotoChar(-1, $scplayer, 60000, 10.0)
goto @DECON_14843

:DECON_14826
Task.GotoChar(-1, $scplayer, 60000, 20.0)

:DECON_14843
Task.FleeChar(-1, $scplayer, 20.0, 3000)
Sequence.Close(177@)
43@ = 0

:DECON_14870
if 
  2 > 43@
goto_if_false @DECON_14927
179@(43@,2i) = -1
181@(43@,2f) = 9999.0
43@ += 1
goto @DECON_14870

:DECON_14927
43@ = 0

:DECON_14934
if 
  10 > 43@
goto_if_false @DECON_15178
if 
  not Char.IsDead(103@(43@,10i))
goto_if_false @DECON_15164
$x, $y, $z = Char.GetCoordinates(103@(43@,10i))
56@, 57@, 58@ = Char.GetCoordinates($scplayer)
$distance = Math.GetDistanceBetweenCoords2D($x, $y, 56@, 57@)
if 
  is_float_lvar_greater_than_float_var 181@ > $distance
goto_if_false @DECON_15079
set_lvar_float_to_lvar_float 182@ = 181@
set_lvar_float_to_var_float 181@ = $distance
set_lvar_int_to_lvar_int 180@ = 179@
set_lvar_int_to_lvar_int 179@ = 43@
goto @DECON_15114

:DECON_15079
if 
  is_float_lvar_greater_than_float_var 182@ > $distance
goto_if_false @DECON_15114
set_lvar_float_to_var_float 182@ = $distance
set_lvar_int_to_lvar_int 180@ = 43@

:DECON_15114
if and
  $distance > 500.0
  not Char.IsOnScreen(103@(43@,10i))
goto_if_false @DECON_15164
Char.Delete(103@(43@,10i))
103@(43@,10i) = 0

:DECON_15164
43@ += 1
goto @DECON_14934

:DECON_15178
43@ = 0

:DECON_15185
if 
  10 > 43@
goto_if_false @DECON_16005
if 
  not Char.IsDead(103@(43@,10i))
goto_if_false @DECON_15991
if 
  not Char.IsInAnyCar(103@(43@,10i))
goto_if_false @DECON_15725
if 
  Char.IsCurrentWeapon(103@(43@,10i), WeaponType.Pistol)
goto_if_false @DECON_15326
44@ = Char.GetScriptTaskStatus(103@(43@,10i), 1506)
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DECON_15319
Char.ClearTasks(103@(43@,10i))
Task.KillCharOnFoot(103@(43@,10i), $scplayer)

:DECON_15319
goto @DECON_15718

:DECON_15326
if or
  is_int_lvar_equal_to_int_lvar 43@ == 179@
  is_int_lvar_equal_to_int_lvar 43@ == 180@
goto_if_false @DECON_15414
44@ = Char.GetScriptTaskStatus(103@(43@,10i), 1506)
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DECON_15407
Char.ClearTasks(103@(43@,10i))
Task.KillCharOnFoot(103@(43@,10i), $scplayer)

:DECON_15407
goto @DECON_15718

:DECON_15414
44@ = Char.GetScriptTaskStatus(103@(43@,10i), 1560)
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DECON_15576
44@ = Math.RandomIntInRange(0, 9)
if 
  4 > 44@
goto_if_false @DECON_15502
Char.ClearTasks(103@(43@,10i))
Char.PerformSequence(103@(43@,10i), 175@)
goto @DECON_15569

:DECON_15502
if 
  8 > 44@
goto_if_false @DECON_15548
Char.ClearTasks(103@(43@,10i))
Char.PerformSequence(103@(43@,10i), 176@)
goto @DECON_15569

:DECON_15548
Char.ClearTasks(103@(43@,10i))
Char.PerformSequence(103@(43@,10i), 177@)

:DECON_15569
goto @DECON_15718

:DECON_15576
if or
  Char.IsPlayingAnim(103@(43@,10i), "PANIC_POINT")
  Char.IsPlayingAnim(103@(43@,10i), "PANIC_SHOUT")
goto_if_false @DECON_15718
$x, $y, $z = Char.GetCoordinates(103@(43@,10i))
56@, 57@, 58@ = Char.GetCoordinates($scplayer)
set_lvar_float_to_lvar_float 50@ = 56@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 57@
sub_float_var_from_float_lvar 51@ -= $y
$heading = Math.GetHeadingFromVector2D(50@, 51@)
Char.SetHeading(103@(43@,10i), $heading)

:DECON_15718
goto @DECON_15991

:DECON_15725
$car = Char.StoreCarIsInNoSave(103@(43@,10i))
Car.SetStraightLineDistance($car, 255)
if 
  not Car.IsDead($car)
goto_if_false @DECON_15782
if 
  Car.IsPlaybackGoingOn($car)
goto_if_false @DECON_15782
Car.StopPlayback($car)

:DECON_15782
44@ = Char.GetScriptTaskStatus(103@(43@,10i), 1560)
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DECON_15892
49@ = Sequence.Open()
Task.CarMission(-1, $car, -1, CarMission.RamPlayerClose, 40.0, DrivingMode.PloughThrough)
Sequence.Close(49@)
Char.PerformSequence(103@(43@,10i), 49@)
Sequence.Clear(49@)
if 
  183@ <> 0
goto_if_false @DECON_15885
183@ = 0

:DECON_15885
goto @DECON_15991

:DECON_15892
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @DECON_15991
if 
  Char.IsTouchingVehicle($scplayer, $car)
goto_if_false @DECON_15991
if 
  183@ == 0
goto_if_false @DECON_15991
49@ = Sequence.Open()
Task.CarTempAction(-1, $car, TempAction.Reverse, 2500)
Sequence.Close(49@)
Char.PerformSequence(103@(43@,10i), 49@)
Sequence.Clear(49@)
183@ = 1

:DECON_15991
43@ += 1
goto @DECON_15185

:DECON_16005
Sequence.Clear(175@)
Sequence.Clear(176@)
Sequence.Clear(177@)

:DECON_16020
if 
  140@ == 0
goto_if_false @DECON_16770
if 
  not Char.IsDead(101@)
goto_if_false @DECON_16770
if 
  145@ == 0
goto_if_false @DECON_16183
if 
  Char.LocateAnyMeans3D($scplayer, -2074.264, 222.39, 34.7395, 30.0, 30.0, 4.0, False)
goto_if_false @DECON_16183
Char.ClearTasks(101@)
49@ = Sequence.Open()
Task.GotoChar(-1, $scplayer, 50000, 3.0)
Task.TurnCharToFaceChar(-1, $scplayer)
Task.ScratchHead(-1)
Sequence.Close(49@)
Char.PerformSequence(101@, 49@)
Sequence.Clear(49@)
145@ += 1

:DECON_16183
if 
  145@ == 1
goto_if_false @DECON_16626
if 
  Char.LocateAnyMeans3D($scplayer, -2074.264, 222.39, 34.7395, 30.0, 30.0, 4.0, False)
goto_if_false @DECON_16529
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @DECON_16522
if 
  $audio_line_is_active == 0
goto_if_false @DECON_16522
if 
  Char.LocateOnFootChar3D(101@, $scplayer, 3.0, 3.0, 2.0, False)
goto_if_false @DECON_16515
43@ = Math.RandomIntInRange(0, 3)
if 
  43@ == 0
goto_if_false @DECON_16386
set_var_text_label s$audio_string = 'GAR2_BA'
set_var_int_to_constant $audio_sound_file = 42212
start_new_script @AUDIOL 101@ 1 0 1 0 

:DECON_16386
if 
  43@ == 1
goto_if_false @DECON_16447
set_var_text_label s$audio_string = 'GAR2_BB'
set_var_int_to_constant $audio_sound_file = 42213
start_new_script @AUDIOL 101@ 1 0 1 0 

:DECON_16447
if 
  43@ == 2
goto_if_false @DECON_16508
set_var_text_label s$audio_string = 'GAR2_BC'
set_var_int_to_constant $audio_sound_file = 42214
start_new_script @AUDIOL 101@ 1 0 1 0 

:DECON_16508
145@ += 1

:DECON_16515
TIMERB = 0

:DECON_16522
goto @DECON_16626

:DECON_16529
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2099.162, 171.1465, 34.0869, MoveState.Walk, 60000)
Task.ScratchHead(-1)
Task.GoStraightToCoord(-1, -2090.801, 263.5923, 34.7131, MoveState.Walk, 60000)
Task.ScratchHead(-1)
Sequence.SetToRepeat(49@, True)
Sequence.Close(49@)
Char.PerformSequence(101@, 49@)
Sequence.Clear(49@)
145@ = 0

:DECON_16626
if 
  145@ == 2
goto_if_false @DECON_16770
43@ = Char.GetScriptTaskStatus(101@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @DECON_16770
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2099.162, 171.1465, 34.0869, MoveState.Walk, 60000)
Task.ScratchHead(-1)
Task.GoStraightToCoord(-1, -2090.801, 263.5923, 34.7131, MoveState.Walk, 60000)
Task.ScratchHead(-1)
Sequence.SetToRepeat(49@, True)
Sequence.Close(49@)
Char.PerformSequence(101@, 49@)
Sequence.Clear(49@)
145@ += 1

:DECON_16770
if 
  not Char.IsDead(114@)
goto_if_false @DECON_16849
if 
  not Car.IsDead(82@)
goto_if_false @DECON_16842
if 
  Car.IsPlaybackGoingOn(82@)
goto_if_false @DECON_16842
if 
  not Char.IsInCar(114@, 82@)
goto_if_false @DECON_16842
Car.StopPlayback(82@)

:DECON_16842
goto @DECON_16886

:DECON_16849
if 
  not Car.IsDead(82@)
goto_if_false @DECON_16886
if 
  Car.IsPlaybackGoingOn(82@)
goto_if_false @DECON_16886
Car.StopPlayback(82@)

:DECON_16886
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DECON_16974
if 
  not Car.IsDead(89@)
goto_if_false @DECON_16959
if 
  not Char.IsInCar($scplayer, 89@)
goto_if_false @DECON_16952
89@ = 0
89@ = Char.StoreCarIsIn($scplayer)

:DECON_16952
goto @DECON_16974

:DECON_16959
89@ = 0
89@ = Char.StoreCarIsIn($scplayer)

:DECON_16974
43@ = 0

:DECON_16981
if 
  6 > 43@
goto_if_false @DECON_18437
if 
  66@ == 1
goto_if_false @DECON_17167
if 
  Object.DoesExist($launchdoor_a51(43@,6i))
goto_if_false @DECON_17167
if or
  Object.HasBeenDamagedByWeapon($launchdoor_a51(43@,6i), WeaponType.Explosion)
  Object.HasBeenDamagedByWeapon($launchdoor_a51(43@,6i), WeaponType.RocketLauncher)
  Object.HasBeenDamagedByWeapon($launchdoor_a51(43@,6i), WeaponType.Grenade)
  Object.HasBeenDamagedByWeapon($launchdoor_a51(43@,6i), WeaponType.RocketHs)
  Object.HasBeenDamagedByWeapon($launchdoor_a51(43@,6i), WeaponType.Satchel)
goto_if_false @DECON_17127
write_debug "DAMAGED_BY_EXPLOSION"

:DECON_17127
if 
  Object.HasBeenDamagedByWeapon($launchdoor_a51(43@,6i), WeaponType.AnyWeapon)
goto_if_false @DECON_17167
write_debug "DAMAGED_BY_ANY"

:DECON_17167
if 
  Object.DoesExist($launchdoor_a51(43@,6i))
goto_if_false @DECON_17356
if or
  Object.HasBeenDamagedByWeapon($launchdoor_a51(43@,6i), WeaponType.Explosion)
  Object.HasBeenDamagedByWeapon($launchdoor_a51(43@,6i), WeaponType.RocketLauncher)
  Object.HasBeenDamagedByWeapon($launchdoor_a51(43@,6i), WeaponType.Grenade)
  Object.HasBeenDamagedByWeapon($launchdoor_a51(43@,6i), WeaponType.RocketHs)
  Object.HasBeenDamagedByWeapon($launchdoor_a51(43@,6i), WeaponType.Satchel)
goto_if_false @DECON_17356
Object.ClearLastWeaponDamage($launchdoor_a51(43@,6i))
44@ = Object.GetHealth($launchdoor_a51(43@,6i))
44@ += -500
if 
  1 > 44@
goto_if_false @DECON_17344
Object.SetHealth($launchdoor_a51(43@,6i), 0)
Audio.AttachMissionAudioToObject(MissionAudioSlot.Slot3, $launchdoor_a51(43@,6i))
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
Object.Break($launchdoor_a51(43@,6i), 0)
goto @DECON_17356

:DECON_17344
Object.SetHealth($launchdoor_a51(43@,6i), 44@)

:DECON_17356
if 
  Object.DoesExist($launchdoor_a51(43@,6i))
goto_if_false @DECON_17555
if 
  not Object.HasBeenDamaged($launchdoor_a51(43@,6i))
goto_if_false @DECON_17555
if 
  not Car.IsDead(89@)
goto_if_false @DECON_17555
if 
  Char.IsInCar($scplayer, 89@)
goto_if_false @DECON_17555
if 
  Car.IsTouchingObject(89@, $launchdoor_a51(43@,6i))
goto_if_false @DECON_17555
if 
  170@ > 65000.0
goto_if_false @DECON_17555
Object.SetHealth($launchdoor_a51(43@,6i), 0)
Audio.AttachMissionAudioToObject(MissionAudioSlot.Slot3, $launchdoor_a51(43@,6i))
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
Object.Break($launchdoor_a51(43@,6i), 0)
if 
  not Car.IsDead(89@)
goto_if_false @DECON_17555
if 
  Char.IsInCar($scplayer, 89@)
goto_if_false @DECON_17555
Car.SetForwardSpeed(89@, 169@)

:DECON_17555
if 
  Object.DoesExist($launchdoor_a51(43@,6i))
goto_if_false @DECON_18196
if 
  not Object.HasBeenDamaged($launchdoor_a51(43@,6i))
goto_if_false @DECON_18196
158@(43@,6i) = Object.GetHealth($launchdoor_a51(43@,6i))
if 
  is_int_lvar_greater_than_int_lvar 152@(43@,6i) > 158@(43@,6i)
goto_if_false @DECON_18180
if 
  158@(43@,6i) > 0
goto_if_false @DECON_18180
if 
  not Car.IsDead(89@)
goto_if_false @DECON_18034
if 
  Char.IsInCar($scplayer, 89@)
goto_if_false @DECON_18034
if 
  Car.IsTouchingObject(89@, $launchdoor_a51(43@,6i))
goto_if_false @DECON_18034
if 
  169@ > 5.0
goto_if_false @DECON_18018
if 
  not Car.IsModel(89@, 486)
goto_if_false @DECON_17843
set_lvar_int_to_lvar_int 44@ = 152@(43@,6i)
sub_int_lvar_from_int_lvar 44@ -= 158@(43@,6i)
cset_lvar_float_to_lvar_int 46@ =# 44@
46@ *= 0.5
cset_lvar_int_to_lvar_float 44@ =# 46@
add_int_lvar_to_int_lvar 158@(43@,6i) += 44@
Object.SetHealth($launchdoor_a51(43@,6i), 158@(43@,6i))
goto @DECON_18011

:DECON_17843
set_lvar_int_to_lvar_int 44@ = 152@(43@,6i)
sub_int_lvar_from_int_lvar 44@ -= 158@(43@,6i)
44@ *= -30
add_int_lvar_to_int_lvar 158@(43@,6i) += 44@
if 
  0 > 158@(43@,6i)
goto_if_false @DECON_17919
158@(43@,6i) = 0

:DECON_17919
if 
  165@ == 0
goto_if_false @DECON_17995
if 
  158@(43@,6i) > 10
goto_if_false @DECON_17995
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @DECON_17995
Text.PrintNow('GAR2_38', 5000, 1)
165@ = 1

:DECON_17995
Object.SetHealth($launchdoor_a51(43@,6i), 158@(43@,6i))

:DECON_18011
goto @DECON_18034

:DECON_18018
Object.SetHealth($launchdoor_a51(43@,6i), 152@(43@,6i))

:DECON_18034
if 
  $player_is_in_crane == 1
goto_if_false @DECON_18089
Object.SetHealth($launchdoor_a51(43@,6i), 0)
Audio.AttachMissionAudioToObject(MissionAudioSlot.Slot3, $launchdoor_a51(43@,6i))
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
Object.Break($launchdoor_a51(43@,6i), 0)

:DECON_18089
if 
  158@(43@,6i) == 0
goto_if_false @DECON_18180
Audio.AttachMissionAudioToObject(MissionAudioSlot.Slot3, $launchdoor_a51(43@,6i))
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
Object.Break($launchdoor_a51(43@,6i), 0)
if 
  not Car.IsDead(89@)
goto_if_false @DECON_18180
if 
  Char.IsInCar($scplayer, 89@)
goto_if_false @DECON_18180
Car.SetForwardSpeed(89@, 169@)

:DECON_18180
set_lvar_int_to_lvar_int 152@(43@,6i) = 158@(43@,6i)

:DECON_18196
if 
  Object.DoesExist($launchdoor_a51(43@,6i))
goto_if_false @DECON_18423
if 
  not Object.HasBeenDamaged($launchdoor_a51(43@,6i))
goto_if_false @DECON_18423
if 
  not Car.IsDead(89@)
goto_if_false @DECON_18423
if 
  Char.IsInCar($scplayer, 89@)
goto_if_false @DECON_18423
if 
  Car.IsModel(89@, 486)
goto_if_false @DECON_18423
if 
  Car.IsTouchingObject(89@, $launchdoor_a51(43@,6i))
goto_if_false @DECON_18423
44@ = Object.GetHealth($launchdoor_a51(43@,6i))
if 
  10 > 44@
goto_if_false @DECON_18423
Object.SetHealth($launchdoor_a51(43@,6i), 0)
Audio.AttachMissionAudioToObject(MissionAudioSlot.Slot3, $launchdoor_a51(43@,6i))
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
Object.Break($launchdoor_a51(43@,6i), 0)
if 
  not Car.IsDead(89@)
goto_if_false @DECON_18423
if 
  Char.IsInCar($scplayer, 89@)
goto_if_false @DECON_18423
Car.SetForwardSpeed(89@, 169@)

:DECON_18423
43@ += 1
goto @DECON_16981

:DECON_18437
43@ = 0

:DECON_18444
if 
  6 > 43@
goto_if_false @DECON_19180
if 
  151@ > 0
goto_if_false @DECON_19016
if 
  Object.DoesExist($launchdoor_a51(43@,6i))
goto_if_false @DECON_19016
44@ = Object.GetHealth($launchdoor_a51(43@,6i))
if 
  995 > 44@
goto_if_false @DECON_19016
if 
  44@ > 500
goto_if_false @DECON_18724
if 
  133@(43@,6i) == 0
goto_if_false @DECON_18717
$x, $y, $z = Object.GetOffsetInWorldCoords($launchdoor_a51(43@,6i), 3.252, -2.1084, 0.0)
gosub @DECON_20709
if 
  189@ == 0
goto_if_false @DECON_18717
$z = World.GetGroundZFor3DCoord($x, $y, $z)
$heading = Object.GetHeading($launchdoor_a51(43@,6i))
$heading += 180.0
115@ = Char.Create(PedType.Mission1, 27, $x, $y, $z)
Char.SetHeading(115@, $heading)
Char.SetHealth(115@, 50)
133@(43@,6i) += 1
43@ = 6

:DECON_18717
goto @DECON_19016

:DECON_18724
if 
  not Object.HasBeenDamaged($launchdoor_a51(43@,6i))
goto_if_false @DECON_18751
goto @DECON_19016

:DECON_18751
if 
  133@(43@,6i) <> 99
goto_if_false @DECON_19016
$x, $y, $z = Object.GetOffsetInWorldCoords($launchdoor_a51(43@,6i), 0.0, 0.0, 0.0)
$heading = Object.GetHeading($launchdoor_a51(43@,6i))
$z = World.GetGroundZFor3DCoord($x, $y, $z)
$heading += 180.0
115@ = Char.Create(PedType.Mission1, 27, $x, $y, $z)
Char.SetHeading(115@, $heading)
Char.SetHealth(115@, 50)
133@(43@,6i) = 99
43@ = 6
56@, 57@, 58@ = Char.GetCoordinates($scplayer)
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
44@ = Math.RandomIntInRange(0, 2)
if 
  44@ <> 0
goto_if_false @DECON_18976
51@ *= -1.0

:DECON_18976
set_lvar_float_to_lvar_float 53@ = 51@
set_lvar_float_to_lvar_float 54@ = 50@
54@ *= -1.0
Task.DiveAndGetUp(115@, 53@, 54@, 1000)

:DECON_19016
if 
  Char.DoesExist(115@)
goto_if_false @DECON_19159
if 
  not Char.IsDead(115@)
goto_if_false @DECON_19159
if 
  139@ > 0
goto_if_false @DECON_19115
if 
  2 > 139@
goto_if_false @DECON_19103
Char.GiveWeapon(115@, WeaponType.Shovel, 99999)
goto @DECON_19115

:DECON_19103
Char.GiveWeapon(115@, WeaponType.Pistol, 99999)

:DECON_19115
Char.SetShootRate(115@, 30)
Char.SetAccuracy(115@, 30)
Char.SetDecisionMaker(115@, 173@)
set_lvar_int_to_lvar_int 184@ = 115@
gosub @DECON_19944
171@ = 0

:DECON_19159
115@ = 0
43@ += 1
goto @DECON_18444

:DECON_19180
if 
  140@ == 1
goto_if_false @DECON_19703
if 
  4 >= 151@
goto_if_false @DECON_19223
171@ = 0

:DECON_19223
if 
  171@ > 20000
goto_if_false @DECON_19703
if 
  151@ > 4
goto_if_false @DECON_19703
47@ = 200.0
44@ = -1
43@ = 0

:DECON_19284
if 
  6 > 43@
goto_if_false @DECON_19440
if 
  Object.DoesExist($launchdoor_a51(43@,6i))
goto_if_false @DECON_19426
if 
  not Object.HasBeenDamaged($launchdoor_a51(43@,6i))
goto_if_false @DECON_19426
$x, $y, $z = Object.GetCoordinates($launchdoor_a51(43@,6i))
56@, 57@, 58@ = Char.GetCoordinates($scplayer)
46@ = Math.GetDistanceBetweenCoords2D($x, $y, 56@, 57@)
if 
  is_float_lvar_greater_than_float_lvar 47@ > 46@
goto_if_false @DECON_19426
set_lvar_float_to_lvar_float 47@ = 46@
set_lvar_int_to_lvar_int 44@ = 43@

:DECON_19426
43@ += 1
goto @DECON_19284

:DECON_19440
if 
  44@ <> -1
goto_if_false @DECON_19703
$x, $y, $z = Object.GetOffsetInWorldCoords($launchdoor_a51(44@,6i), 3.252, -2.1084, 0.0)
gosub @DECON_20709
if 
  189@ == 0
goto_if_false @DECON_19703
$z = World.GetGroundZFor3DCoord($x, $y, $z)
$heading = Object.GetHeading($launchdoor_a51(44@,6i))
$heading += 180.0
115@ = Char.Create(PedType.Mission1, 27, $x, $y, $z)
Char.SetHeading(115@, $heading)
Char.SetHealth(115@, 50)
if 
  139@ > 2
goto_if_false @DECON_19652
if 
  5 > 139@
goto_if_false @DECON_19640
Char.GiveWeapon(115@, WeaponType.Shovel, 99999)
goto @DECON_19652

:DECON_19640
Char.GiveWeapon(115@, WeaponType.Pistol, 99999)

:DECON_19652
Char.SetShootRate(115@, 30)
Char.SetAccuracy(115@, 30)
Char.SetDecisionMaker(115@, 173@)
set_lvar_int_to_lvar_int 184@ = 115@
115@ = 0
171@ = 0
gosub @DECON_19944

:DECON_19703
43@ = 0

:DECON_19710
if 
  10 > 43@
goto_if_false @DECON_19813
if 
  Char.DoesExist(103@(43@,10i))
goto_if_false @DECON_19799
if 
  Char.IsDead(103@(43@,10i))
goto_if_false @DECON_19799
Char.MarkAsNoLongerNeeded(103@(43@,10i))
103@(43@,10i) = 0
141@(43@,10i) = 0

:DECON_19799
43@ += 1
goto @DECON_19710

:DECON_19813
gosub @DECON_20044
if 
  not Car.IsDead(89@)
goto_if_false @DECON_19868
169@ = Car.GetSpeed(89@)
46@ = Car.GetMass(89@)
set_lvar_float_to_lvar_float 170@ = 169@
mult_float_lvar_by_float_lvar 170@ *= 46@

:DECON_19868
if 
  Blip.DoesExist(125@)
goto_if_false @DECON_19905
if 
  Car.IsDead(84@)
goto_if_false @DECON_19905
Blip.Remove(125@)

:DECON_19905
if 
  Blip.DoesExist(126@)
goto_if_false @DECON_19942
if 
  Car.IsDead(88@)
goto_if_false @DECON_19942
Blip.Remove(126@)

:DECON_19942
return 

:DECON_19944
185@ = 0

:DECON_19951
if 
  4 > 185@
goto_if_false @DECON_20035
if 
  103@(185@,10i) == 0
goto_if_false @DECON_20021
set_lvar_int_to_lvar_int 103@(185@,10i) = 184@
141@(185@,10i) = 0
185@ = 6

:DECON_20021
185@ += 1
goto @DECON_19951

:DECON_20035
gosub @DECON_20044
return 

:DECON_20044
151@ = 4
186@ = 0

:DECON_20058
if 
  4 > 186@
goto_if_false @DECON_20117
if 
  Char.DoesExist(103@(186@,10i))
goto_if_false @DECON_20103
151@ -= 1

:DECON_20103
186@ += 1
goto @DECON_20058

:DECON_20117
return 
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("AVAILABLE PEDS")
save_newline_to_debug_file 
187@ = 0

:DECON_20260
if 
  10 > 187@
goto_if_false @DECON_20568
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("MISSION PED ")
save_int_to_debug_file 187@
Debugger.SaveStringToDebugFile(" = ")
save_int_to_debug_file 103@(187@,10i)
187@ += 1
goto @DECON_20260

:DECON_20568
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("AVAILABLE_MISSION_PEDS = ")
save_int_to_debug_file 151@
save_newline_to_debug_file 
return 

:DECON_20709
189@ = 0
188@ = 0

:DECON_20723
if 
  10 > 188@
goto_if_false @DECON_20828
if 
  not Char.IsDead(103@(188@,10i))
goto_if_false @DECON_20814
if 
  Char.LocateOnFoot3D(103@(188@,10i), $x, $y, $z, 1.5, 1.5, 3.0, False)
goto_if_false @DECON_20814
189@ = 1

:DECON_20814
188@ += 1
goto @DECON_20723

:DECON_20828
return 

:DECON_20830
34@ += 1
35@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
return 

:DECON_20888
if 
  Player.IsPlaying($player1)
goto_if_false @DECON_20982
if 
  Char.LocateAnyMeans3D($scplayer, -2049.199, 250.3882, 32.9084, 2.454, 5.042, 2.3, False)
goto_if_false @DECON_20982
Char.SetCoordinates($scplayer, -2045.189, 241.7544, 34.9462)
Char.SetHeading($scplayer, 186.3532)

:DECON_20982
World.SwapNearestBuildingModel(-2049.171, 250.3193, 34.477, 20.0, #HUBHOLE2_SFSE, #HUBHOLE1_SFSE)
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:DECON_21028
if 
  Object.DoesExist(80@)
goto_if_false @DECON_21049
Object.Delete(80@)

:DECON_21049
World.SwapNearestBuildingModel(-2049.171, 250.3193, 34.477, 20.0, #HUBHOLE2_SFSE, #HUBHOLE4_SFSE)
Stat.RegisterMissionPassed('GAR_2')
start_new_script @SYND 
Blip.Remove($garage_contact_blip)
$garage_contact_blip = Blip.AddSpriteForContactPoint($garageX, $garageY, $garageZ, $garage_blip_icon)
Stat.PlayerMadeProgress(1)
Stat.SetInt(StatId.PassedGarage2, 1)
Text.PrintBig('M_PASSD', 5000, TextStyle.Middle)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
$flag_garage_mission_counter += 1
return 

:DECON_21163
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
$flag_car_lowrider_carmod = 0
Streaming.MarkModelAsNoLongerNeeded(#PORTALOO)
Streaming.MarkModelAsNoLongerNeeded(#PORTAKABIN)
Streaming.MarkModelAsNoLongerNeeded(#BARREL4)
Streaming.MarkModelAsNoLongerNeeded(486)
Streaming.MarkModelAsNoLongerNeeded(524)
Streaming.MarkModelAsNoLongerNeeded(406)
Streaming.MarkModelAsNoLongerNeeded(422)
Streaming.MarkModelAsNoLongerNeeded(16)
Streaming.MarkModelAsNoLongerNeeded(27)
Streaming.MarkModelAsNoLongerNeeded(337)
Streaming.MarkModelAsNoLongerNeeded(346)
Blip.Remove(117@)
Blip.Remove(118@)
Blip.Remove(119@)
Blip.Remove(120@)
Blip.Remove(121@)
Blip.Remove(122@)
Blip.Remove(123@)
Blip.Remove(124@)
Blip.Remove(125@)
Blip.Remove(126@)
Hud.ClearTimer($7233)
Game.SetWantedMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 51---------------
// Originally: 555 WE TIP

:SCRASH3
script_name 'SCRASH3'
gosub @SCRASH3_47
if 
  has_deatharrest_been_executed 
goto_if_false @SCRASH3_38
gosub @SCRASH3_18100

:SCRASH3_38
gosub @SCRASH3_18244
terminate_this_script 

:SCRASH3_47
Text.ClearThisPrint('M_FAIL')
$onmission = 1
$playing_scrash1 = 1
Stat.RegisterMissionGiven
80@ = 1
81@ = 0
82@ = 0
65@ = 0
66@ = 0
84@ = 0
85@ = 0
Game.SetScriptLimitToGangSize(0)
Text.LoadMissionText('VALET1')
Camera.SetFadingColor(0, 0, 0)
terminate_all_scripts_with_this_name 'VALET'
if 
  Player.IsWearing($player1, 17, "VALET")
goto_if_false @SCRASH3_198
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)

:SCRASH3_198
Streaming.SetAreaVisible(1)
Cutscene.Load('SCRASH1')

:SCRASH3_213
if 
  not Cutscene.HasLoaded
goto_if_false @SCRASH3_237
wait 0
goto @SCRASH3_213

:SCRASH3_237
Cutscene.Start
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:SCRASH3_254
if 
  not Cutscene.HasFinished
goto_if_false @SCRASH3_278
wait 0
goto @SCRASH3_254

:SCRASH3_278
Camera.DoFade(0, Fade.Out)

:SCRASH3_284
if 
  Camera.GetFadingStatus
goto_if_false @SCRASH3_308
wait 0
goto @SCRASH3_284

:SCRASH3_308
Cutscene.Clear
Streaming.SetAreaVisible(0)
Char.SetHeading($scplayer, 270.0)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Streaming.RequestModel(415)
Streaming.RequestModel(240)

:SCRASH3_338
if or
  not Streaming.HasModelLoaded(415)
  not Streaming.HasModelLoaded(240)
goto_if_false @SCRASH3_370
wait 0
goto @SCRASH3_338

:SCRASH3_370
World.SetCarDensityMultiplier(1.0)
65@ = 0
if 
  65@ == 20
goto_if_false @SCRASH3_581
57@ = Blip.AddForCoord(-1748.402, 909.7514, 23.8906)
60@ = Blip.AddForCoord(-1748.402, 909.7514, 23.8906)
59@ = Blip.AddForCoord(-1748.402, 909.7514, 23.8906)
37@ = Char.Create(PedType.Mission1, 189, 0.0, 0.0, 0.0)
$valet[0] = Char.Create(PedType.CivMale, 189, 0.0, 0.0, 0.0)
$valet_pickup_car = Car.Create(415, 0.0, 0.0, 0.0)
$drop_off_car = Car.Create(415, 0.0, 0.0, 0.0)
$sc3_missioncar = Car.Create(415, 0.0, 0.0, 0.0)

:SCRASH3_581
57@ = Blip.AddForCoord(-1748.402, 909.7514, 23.8906)
wait 500
Camera.DoFade(1000, Fade.In)
281@ = 0
Text.Print('VAL_5', 10000, 1)

:SCRASH3_636
wait 0
if 
  Player.IsWantedLevelGreater($player1, 0)
goto_if_false @SCRASH3_672
94@ = 1
goto @SCRASH3_679

:SCRASH3_672
94@ = 0

:SCRASH3_679
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SCRASH3_708
gosub @SCRASH3_17346
goto @SCRASH3_18132

:SCRASH3_708
if 
is_ps2_keyboard_key_pressed 7
goto_if_false @SCRASH3_743
Char.SetCoordinates($scplayer, -1755.088, 910.0911, 23.8906)

:SCRASH3_743
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @SCRASH3_821
Char.SetCoordinates($scplayer, -1712.653, 985.0446, 16.5859)
if 
  not Char.IsDead($valet[2])
goto_if_false @SCRASH3_821
Char.SetCoordinates($valet[2], -1700.77, 984.3545, 16.5936)
Char.SetSuffersCriticalHits($valet[2], False)

:SCRASH3_821
if 
is_ps2_keyboard_key_pressed 10
goto_if_false @SCRASH3_856
Char.SetCoordinates($scplayer, -1753.841, 960.2274, 23.8828)

:SCRASH3_856
if 
is_ps2_keyboard_key_pressed 11
goto_if_false @SCRASH3_1057
if 
  Char.IsDead(37@)
goto_if_false @SCRASH3_912
37@ = Char.Create(PedType.CivMale, 240, -1611.454, 714.3873, 12.4715)

:SCRASH3_912
Streaming.RequestModel(551)

:SCRASH3_917
if 
  not Streaming.HasModelLoaded(551)
goto_if_false @SCRASH3_944
wait 0
goto @SCRASH3_917

:SCRASH3_944
if 
  Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_983
$sc3_missioncar = Car.Create(551, -1753.961, 951.9568, 23.7422)

:SCRASH3_983
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_1029
Car.SetCoordinates($sc3_missioncar, -1753.961, 951.9568, 23.7422)
Car.SetHeading($sc3_missioncar, 90.0)

:SCRASH3_1029
if 
  not Char.IsDead(37@)
goto_if_false @SCRASH3_1057
Task.LeaveAnyCar(37@)
106@ = 1

:SCRASH3_1057
if 
is_ps2_keyboard_key_pressed 13
goto_if_false @SCRASH3_1118
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_1118
Car.SetCoordinates($sc3_missioncar, -2031.828, 179.5876, 27.8359)
Car.SetHeading($sc3_missioncar, 90.0)

:SCRASH3_1118
if 
is_ps2_keyboard_key_pressed 14
goto_if_false @SCRASH3_1169
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_1169
Car.SetCoordinates($sc3_missioncar, -1779.759, 971.5197, 23.7344)

:SCRASH3_1169
if 
is_ps2_keyboard_key_pressed 21
goto_if_false @SCRASH3_1198
65@ = 10
72@ = 90

:SCRASH3_1198
if 
  73@ == 1
goto_if_false @SCRASH3_1264
if 
  not Player.IsWearing($player1, 17, "VALET")
goto_if_false @SCRASH3_1264
Text.Print('VAL_B1', 4000, 1)
goto @SCRASH3_18100

:SCRASH3_1264
gosub @SCRASH3_15223
89@ = 0
if 
  65@ > 1
goto_if_false @SCRASH3_1496

:SCRASH3_1296
if 
  2 > 89@
goto_if_false @SCRASH3_1496
if 
  is_int_var_equal_to_constant $valet_task(89@,3i) == 6
goto_if_false @SCRASH3_1482
if 
  Char.DoesExist($valet(89@,3i))
goto_if_false @SCRASH3_1482
$x, $y, $z = World.GetDeadCharPickupCoords($valet(89@,3i))
if and
  $x > -1760.178
  $y > 972.2405
  $z > 16.1633
  -1679.605 > $x
  1064.293 > $y
  24.8629 > $z
goto_if_false @SCRASH3_1452
goto @SCRASH3_1482

:SCRASH3_1452
gosub @SCRASH3_17346
Text.Print('VAL_9', 3000, 1)
goto @SCRASH3_18100

:SCRASH3_1482
89@ += 1
goto @SCRASH3_1296

:SCRASH3_1496
if 
  $sc3_missioncar_alive == 1
goto_if_false @SCRASH3_1648
if 
  68@ == 1
goto_if_false @SCRASH3_1564
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_1564
$10741 = Car.GetBlockingCar($sc3_missioncar)
set_var_int_to_var_int $last_player_y = $10741

:SCRASH3_1564
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_1648
90@, 91@ = Car.GetColors($sc3_missioncar)
if or
  not is_int_lvar_equal_to_constant 90@ == 4
  not is_int_lvar_equal_to_constant 91@ == 4
goto_if_false @SCRASH3_1648
Text.ClearPrints
gosub @SCRASH3_17346
Text.Print('VAL_A35', 4000, 1)
goto @SCRASH3_18100

:SCRASH3_1648
if 
  65@ == 0
goto_if_false @SCRASH3_1692
65@ = 1
70@ = 0
$force_valet_on_mission = 1
CarGenerator.SuppressCarModel(551)

:SCRASH3_1692
if 
  65@ == 1
goto_if_false @SCRASH3_2999
if 
  70@ == 0
goto_if_false @SCRASH3_1790
if 
  Char.LocateAnyMeans3D($scplayer, -1748.402, 909.7514, 23.8906, 3.0, 3.0, 3.0, True)
goto_if_false @SCRASH3_1790
Player.SetControl($player1, False)
70@ = 1

:SCRASH3_1790
if 
  70@ == 1
goto_if_false @SCRASH3_1827
Camera.DoFade(1000, Fade.Out)
Streaming.RequestModel(477)
70@ = 2

:SCRASH3_1827
if 
  70@ == 2
goto_if_false @SCRASH3_2333
if and
  not Camera.GetFadingStatus
  Streaming.HasModelLoaded(477)
goto_if_false @SCRASH3_2333
Char.Delete($valet[0])
Char.Delete($valet[1])
Char.Delete($valet[2])
$valet_unlocked = 1
StreamedScript.Stream(72)
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(72)
if 
  $number_of_instances_of_streamed_script > 0
goto_if_false @SCRASH3_1964
$force_valet_cleanup = 1

:SCRASH3_1921
if 
  $number_of_instances_of_streamed_script > 0
goto_if_false @SCRASH3_1957
wait 0
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(72)
goto @SCRASH3_1921

:SCRASH3_1957
$force_valet_cleanup = 0

:SCRASH3_1964
if 
  not StreamedScript.HasLoaded(72)
goto_if_false @SCRASH3_1990
wait 0
goto @SCRASH3_1964

:SCRASH3_1990
StreamedScript.StartNew(72)
$force_valet_on_mission = 2
$freeze_creating_drop_off_cars = 1
Path.SwitchPedRoadsOff(-1729.549, 942.886, 40.3585, -1742.773, 937.7814, 10.1928)
Path.SwitchPedRoadsOff(-1768.524, 938.887, 40.7496, -1780.765, 943.4574, 10.0929)
World.ClearArea(-1722.675, 935.279, 23.75, 55.0, False)
92@ = Car.Create(477, -1736.961, 946.0503, 23.7487)
Car.SetCanGoAgainstTraffic(92@, False)
Car.SetHeading(92@, 19.0)
93@ = Char.CreateRandomAsDriver(92@)
Char.MarkAsNoLongerNeeded(93@)
Car.MarkAsNoLongerNeeded(92@)
Streaming.MarkModelAsNoLongerNeeded(477)
if 
  not Car.IsDead(92@)
goto_if_false @SCRASH3_2250
86@ = Sequence.Open()
Task.CarDriveToCoord(-1, 92@, -1753.968, 952.9821, 23.75, 15.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Task.LeaveCar(-1, 92@)
Task.Say(-1, 229)
Task.WanderStandard(-1)
Sequence.Close(86@)
Char.PerformSequence(93@, 86@)
Sequence.Clear(86@)

:SCRASH3_2250
Blip.Remove(57@)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-1763.482, 959.9526, 25.8866, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1762.601, 959.5414, 25.6518, SwitchType.JumpCut)
70@ = 3
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 3000

:SCRASH3_2333
if 
  70@ == 3
goto_if_false @SCRASH3_2476
if and
  is_int_var_equal_to_constant $valet_task[0] == 2
  is_int_var_equal_to_constant $valet_task[1] == 2
  is_int_var_equal_to_constant $valet_task[2] == 2
goto_if_false @SCRASH3_2420
set_var_int_to_constant $valet_task[0] = 11
set_var_int_to_constant $valet_task[1] = 11
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 700
70@ = 4

:SCRASH3_2420
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_2476
set_var_int_to_constant $valet_task[0] = 11
set_var_int_to_constant $valet_task[1] = 11
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 700
70@ = 4

:SCRASH3_2476
if 
  70@ == 4
goto_if_false @SCRASH3_2527
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_2527
Camera.DoFade(700, Fade.In)
70@ = 5

:SCRASH3_2527
if 
  70@ == 5
goto_if_false @SCRASH3_2597
if 
  not Camera.GetFadingStatus
goto_if_false @SCRASH3_2597
Text.PrintNow('VAL_6', 6000, 1)
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 6000
70@ = 6

:SCRASH3_2597
if 
  70@ == 6
goto_if_false @SCRASH3_2661
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @SCRASH3_2635
70@ = 7

:SCRASH3_2635
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_2661
70@ = 7

:SCRASH3_2661
if 
  70@ == 7
goto_if_false @SCRASH3_2999
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SCRASH3_2732
Char.SetCoordinates($scplayer, -1747.198, 909.9226, 23.8906)
Char.SetHeading($scplayer, 5.6727)
goto @SCRASH3_2766

:SCRASH3_2732
$10741 = Char.GetCarIsUsing($scplayer)
if 
  not Car.IsDead($10741)
goto_if_false @SCRASH3_2766
Car.SetHeading($10741, 0.0)

:SCRASH3_2766
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Text.PrintNow('VAL_A25', 6000, 1)
65@ = 2
$10922 = 1
if 
  not Char.IsDead($valet[2])
goto_if_false @SCRASH3_2999
63@ = Blip.AddForChar($valet[2])
if 
  not Car.IsDead(92@)
goto_if_false @SCRASH3_2999
if 
  not Char.IsInCar($valet[2], 92@)
goto_if_false @SCRASH3_2999
if 
  not Char.IsDead(93@)
goto_if_false @SCRASH3_2999
Char.Delete(93@)
Char.WarpIntoCar($valet[2], 92@)
$x, $y, $z = World.GetParkingNodeInArea(-1760.178, 972.2405, 16.1633, -1679.605, 1064.293, 24.8629)
set_var_float_to_var_float $dont_clear_valets = $x
set_var_float_to_var_float $valet_cars_to_park = $y
set_var_float_to_var_float $valet_mission_car = $z
Task.CarDriveToCoord($valet[2], 92@, $x, $y, $z, 15.0, DriveMode.Accurate, 0, DrivingMode.StopForCars)
set_var_int_to_constant $valet_task[2] = 8

:SCRASH3_2999
if 
  65@ == 2
goto_if_false @SCRASH3_3761
if and
  95@ == 0
  94@ == 1
goto_if_false @SCRASH3_3058
Text.Print('VAL_B3', 5000, 1)

:SCRASH3_3058
if 
  94@ == 1
goto_if_false @SCRASH3_3186
$x, $y, $z = Char.GetCoordinates($scplayer)
if and
  $x > -1760.178
  $y > 972.2405
  $z > 16.1633
  -1679.605 > $x
  1064.293 > $y
  24.8629 > $z
goto_if_false @SCRASH3_3186
Text.ClearPrints
Text.Print('VAL_B4', 5000, 1)
goto @SCRASH3_18100

:SCRASH3_3186
set_lvar_int_to_lvar_int 95@ = 94@
if 
  Char.DoesExist($valet[2])
goto_if_false @SCRASH3_3761
if 
  not Char.IsDead($valet[2])
goto_if_false @SCRASH3_3544
$x, $y, $z = Char.GetCoordinates($valet[2])
if 
  is_int_var_equal_to_constant $valet_task[2] == 2
goto_if_false @SCRASH3_3283
if 
  $drop_off_car == 0
goto_if_false @SCRASH3_3283
$imp_seq2 = 1

:SCRASH3_3283
if 
  $stored_shop_time == 0
goto_if_false @SCRASH3_3427
if 
  94@ == 0
goto_if_false @SCRASH3_3420
if and
  $x > -1760.178
  $y > 972.2405
  $z > 16.1633
  -1679.605 > $x
  1064.293 > $y
  24.8629 > $z
goto_if_false @SCRASH3_3420
Text.Print('VAL_A22', 5000, 1)
$stored_shop_time = 1
Game.SetWantedMultiplier(-1.0)

:SCRASH3_3420
goto @SCRASH3_3544

:SCRASH3_3427
if or
  -1760.178 > $x
  972.2405 > $y
  16.1633 > $z
  $x > -1679.605
  $y > 1064.293
  $z > 24.8629
goto_if_false @SCRASH3_3544
Text.Print('VAL_A23', 4000, 1)
Text.Print('VAL_A24', 5000, 1)
$stored_shop_time = 0
Game.SetWantedMultiplier(1.0)

:SCRASH3_3544
if 
  Char.IsDead($valet[2])
goto_if_false @SCRASH3_3761
Blip.Remove(63@)
96@, 97@, 98@ = World.GetDeadCharPickupCoords($valet[2])
Game.SetWantedMultiplier(1.0)
if and
  96@ > -1760.178
  97@ > 972.2405
  98@ > 16.1633
  -1679.605 > 96@
  1064.293 > 97@
  24.8629 > 98@
goto_if_false @SCRASH3_3714
74@ = Pickup.Create(#CLOTHESP, PickupType.Once, 96@, 97@, 98@)
64@ = Blip.AddForPickup(74@)
Text.PrintNow('VAL_8', 5000, 1)
65@ = 3
goto @SCRASH3_3761

:SCRASH3_3714
Blip.Remove(61@)
Blip.Remove(62@)
Blip.Remove(63@)
Text.ClearPrints
gosub @SCRASH3_17346
Text.PrintNow('VAL_9', 5000, 1)
goto @SCRASH3_18100

:SCRASH3_3761
if 
  65@ == 3
goto_if_false @SCRASH3_3858
if 
  Pickup.HasBeenCollected(74@)
goto_if_false @SCRASH3_3858
100@ = 1
Audio.SetMusicDoesFade(False)
Camera.DoFade(1000, Fade.Out)
Pickup.Remove(74@)
Blip.Remove(64@)
Streaming.RequestModel(252)
65@ = 41
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 2000
99@ = 0

:SCRASH3_3858
if 
  65@ == 41
goto_if_false @SCRASH3_4169
if 
  not Camera.GetFadingStatus
goto_if_false @SCRASH3_4169
if 
  99@ == 0
goto_if_false @SCRASH3_3938
set_lvar_int_to_constant 151@ = 23801
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 500
99@ = 1

:SCRASH3_3938
if 
  Streaming.HasModelLoaded(252)
goto_if_false @SCRASH3_4169
if 
  Char.DoesExist($valet[2])
goto_if_false @SCRASH3_4026
96@, 97@, 98@ = Char.GetCoordinatesOfDied($valet[2])
96@, 97@, 98@ = World.GetDeadCharPickupCoords($valet[2])
if 
  Char.IsHeadMissing($valet[2])
goto_if_false @SCRASH3_4021
100@ = 1

:SCRASH3_4021
Char.Delete($valet[2])

:SCRASH3_4026
101@ = Char.Create(PedType.CivMale, 252, 96@, 97@, 98@)
Char.SetCoordinates(101@, 96@, 97@, 98@)
Char.MarkAsNoLongerNeeded(101@)
Char.ShutUp(101@, True)
if 
  100@ == 1
goto_if_false @SCRASH3_4094
Char.ExplodeHead(101@)

:SCRASH3_4094
Task.Die(101@)
Player.SetControl($player1, False)
Player.GiveClothesOutsideShop($player1, "VALET", "VALET", BodyPart.SpecialCostume)
73@ = 1
Player.BuildModel($player1)
Player.SetControl($player1, True)
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 700
65@ = 40

:SCRASH3_4169
if 
  73@ == 1
goto_if_false @SCRASH3_4237
if 
  94@ == 1
goto_if_false @SCRASH3_4237
Text.ClearPrints
gosub @SCRASH3_17346
Text.PrintNow('VAL_B5', 5000, 1)
goto @SCRASH3_18100

:SCRASH3_4237
if 
  65@ == 40
goto_if_false @SCRASH3_4306
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_4306
if 
  151@ == 0
goto_if_false @SCRASH3_4306
Camera.DoFade(600, Fade.In)
65@ = 42

:SCRASH3_4306
if 
  65@ == 42
goto_if_false @SCRASH3_4391
if 
  not Camera.GetFadingStatus
goto_if_false @SCRASH3_4391
Audio.SetMusicDoesFade(True)
Text.ClearPrints
Text.PrintNow('VAL_A32', 5000, 1)
Blip.Remove(57@)
57@ = Blip.AddForCoord(-1759.026, 960.4122, 23.8905)
65@ = 4

:SCRASH3_4391
if 
  65@ == 4
goto_if_false @SCRASH3_4551
if 
  102@ == 0
goto_if_false @SCRASH3_4489
if 
  Char.LocateOnFoot3D($scplayer, -1759.026, 960.4122, 23.8905, 10.0, 10.0, 10.0, False)
goto_if_false @SCRASH3_4489
102@ = 1
281@ = 13

:SCRASH3_4489
if 
  Char.LocateOnFoot3D($scplayer, -1757.054, 960.1191, 23.8906, 2.0, 2.0, 2.0, True)
goto_if_false @SCRASH3_4551
65@ = 5
72@ = 0

:SCRASH3_4551
if 
  65@ == 5
goto_if_false @SCRASH3_6071
if 
  72@ == 0
goto_if_false @SCRASH3_4616
Camera.DoFade(1000, Fade.Out)
Streaming.RequestModel(551)
Streaming.RequestModel(402)
Streaming.RequestCarRecording(155)
72@ = 1

:SCRASH3_4616
if 
  72@ == 1
goto_if_false @SCRASH3_4766
if 
  not Camera.GetFadingStatus
goto_if_false @SCRASH3_4766
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-1584.371, 727.5854, 28.9622, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1585.114, 727.2239, 28.3981, SwitchType.JumpCut)
Streaming.RequestCollision(-1585.114, 727.2239)
Streaming.LoadSceneInDirection(-1584.371, 727.5854, 28.9622, 270.0)
72@ = 2
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 1000

:SCRASH3_4766
if 
  72@ == 2
goto_if_false @SCRASH3_4817
if and
  Streaming.HasModelLoaded(551)
  Streaming.HasCarRecordingBeenLoaded(155)
goto_if_false @SCRASH3_4817
Blip.Remove(57@)
72@ = 3

:SCRASH3_4817
if 
  72@ == 3
goto_if_false @SCRASH3_5292
if and
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
  Streaming.HasModelLoaded(402)
  Streaming.HasModelLoaded(551)
goto_if_false @SCRASH3_5282
Camera.SetFixedPosition(-1621.481, 738.7783, 14.293, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1620.638, 738.2501, 14.3895, SwitchType.JumpCut)
$sc3_missioncar = Car.Create(551, -1611.379, 725.24, 11.8774)
Car.ChangeColor($sc3_missioncar, 4, 4)
Car.StartPlayback($sc3_missioncar, 155)
Car.SetCanGoAgainstTraffic($sc3_missioncar, False)
37@ = Char.Create(PedType.CivMale, 240, -1611.454, 714.3873, 12.4715)
Char.SetHealth(37@, 200)
Char.SetMaxHealth(37@, 200)
Char.SetHeading(37@, 0.0)
86@ = Sequence.Open()
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_5066
Task.GoStraightToCoord(-1, -1611.596, 723.0802, 12.2361, MoveState.Walk, -2)
Task.EnterCarAsDriver(-1, $sc3_missioncar, -2)

:SCRASH3_5066
Sequence.Close(86@)
Char.PerformSequence(37@, 86@)
Sequence.Clear(86@)
World.ClearArea(-1779.804, 915.7557, 23.7487, 25.0, False)
92@ = Car.Create(402, -1779.804, 915.7557, 23.7487)
Car.SetCanGoAgainstTraffic(92@, False)
Car.SetHeading(92@, 270.0)
93@ = Char.CreateRandomAsDriver(92@)
Char.MarkAsNoLongerNeeded(93@)
Car.MarkAsNoLongerNeeded(92@)
Streaming.MarkModelAsNoLongerNeeded(402)
if 
  not Car.IsDead(92@)
goto_if_false @SCRASH3_5261
86@ = Sequence.Open()
Task.CarDriveToCoord(-1, 92@, -1753.968, 952.9821, 23.75, 15.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Task.LeaveCar(-1, 92@)
Task.Say(-1, 229)
Task.WanderStandard(-1)
Sequence.Close(86@)
Char.PerformSequence(93@, 86@)
Sequence.Clear(86@)

:SCRASH3_5261
Camera.DoFade(1000, Fade.In)
72@ = 4
goto @SCRASH3_5292

:SCRASH3_5282
Streaming.RequestModel(402)
Streaming.RequestModel(551)

:SCRASH3_5292
if 
  72@ == 4
goto_if_false @SCRASH3_5385
if 
  not Camera.GetFadingStatus
goto_if_false @SCRASH3_5385
skip_cutscene_start_internal @SCRASH3_5739
Text.PrintNow('VAL_12', 4000, 1)
Text.Print('VAL_13', 4000, 1)
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 3500
72@ = 5

:SCRASH3_5385
if 
  72@ == 5
goto_if_false @SCRASH3_5429
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_5429
72@ = 6

:SCRASH3_5429
if 
  72@ == 6
goto_if_false @SCRASH3_5591
if 
  not Char.IsDead(37@)
goto_if_false @SCRASH3_5591
if 
  Char.IsInAnyCar(37@)
goto_if_false @SCRASH3_5591
Car.StopPlayback($sc3_missioncar)
if and
  not Char.IsDead(37@)
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_5568
86@ = Sequence.Open()
Task.Pause(-1, 800)
Task.CarDriveToCoord(-1, $sc3_missioncar, -1571.425, 725.7955, 6.0391, 7.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Sequence.Close(86@)
Char.PerformSequence(37@, 86@)
Sequence.Clear(86@)

:SCRASH3_5568
72@ = 7
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 2000

:SCRASH3_5591
if 
  72@ == 7
goto_if_false @SCRASH3_5702
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_5702
Camera.SetFixedPosition(-1587.974, 725.1835, 7.7383, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1588.891, 725.1658, 8.1361, SwitchType.JumpCut)
72@ = 8
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 3000

:SCRASH3_5702
if 
  72@ == 8
goto_if_false @SCRASH3_5755
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_5755

:SCRASH3_5739
skip_cutscene_end 
Camera.DoFade(900, Fade.Out)
72@ = 9

:SCRASH3_5755
if 
  72@ == 9
goto_if_false @SCRASH3_5957
if 
  not Camera.GetFadingStatus
goto_if_false @SCRASH3_5957
Streaming.RemoveCarRecording(155)
Path.SwitchRoadsOn(2793.814, -1987.935, 15.3045, 2754.324, -1900.369, 9.8752)
if and
  not Car.IsDead($sc3_missioncar)
  not Char.IsDead(37@)
goto_if_false @SCRASH3_5875
if 
  Car.IsPlaybackGoingOn($sc3_missioncar)
goto_if_false @SCRASH3_5875
Car.StopPlayback($sc3_missioncar)
Car.Delete($sc3_missioncar)
Char.Delete(37@)

:SCRASH3_5875
Char.SetCoordinates($scplayer, -1759.631, 960.4594, 23.8905)
Char.SetHeading($scplayer, 194.1832)
Streaming.RequestCollision(-1748.402, 909.7514)
Streaming.LoadScene(-1748.402, 909.7514, 23.8906)
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 1000
72@ = 10

:SCRASH3_5957
if 
  72@ == 10
goto_if_false @SCRASH3_6071
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_6071
Camera.DoFade(900, Fade.In)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Text.ClearPrints
Text.Print('VAL_A27', 7000, 1)
set_var_int_to_constant $valet_task[0] = 2
set_var_int_to_constant $valet_task[1] = 2
$imp_seq2 = Math.RandomIntInRange(1, 3)
56@ = 1
65@ = 6

:SCRASH3_6071
if 
  $sc3_missioncar_alive == 1
goto_if_false @SCRASH3_6137
if 
  Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_6137
Text.ClearPrints
gosub @SCRASH3_17346
Text.Print('VAL_40', 4000, 1)
goto @SCRASH3_18100

:SCRASH3_6137
if 
  56@ == 1
goto_if_false @SCRASH3_7004
if 
  107@ <> 2
goto_if_false @SCRASH3_7004
if and
  not is_int_var_equal_to_constant $valet_task[0] == 2
  not is_int_var_equal_to_constant $valet_task[1] == 2
goto_if_false @SCRASH3_6205
$imp_seq2 = 0

:SCRASH3_6205
if 
  56@ == 1
goto_if_false @SCRASH3_7004
if 
  $imp_seq2 == 0
goto_if_false @SCRASH3_6766
if 
  $create_drop_off_car_now == 0
goto_if_false @SCRASH3_6766
if 
  $drop_off_car == 0
goto_if_false @SCRASH3_6766
if 
  107@ == 0
goto_if_false @SCRASH3_6440
if 
  not Camera.IsPointOnScreen(-1709.886, 899.3372, 23.7422, 5.0)
goto_if_false @SCRASH3_6440
if 
  not Char.IsInArea3D($scplayer, -1709.886, 899.3372, 23.7422, 20.0, 20.0, 20.0, False)
goto_if_false @SCRASH3_6440
World.ClearArea(-1709.886, 899.3372, 23.7422, 5.0, False)
$sc3_missioncar = Car.Create(551, -1611.379, 725.24, 11.8774)
Car.SetHeading($sc3_missioncar, 0.0)
107@ = 1

:SCRASH3_6440
if 
  107@ == 0
goto_if_false @SCRASH3_6603
if 
  not Camera.IsPointOnScreen(-1674.725, 933.5232, 23.7365, 5.0)
goto_if_false @SCRASH3_6603
if 
  not Char.IsInArea3D($scplayer, -1674.725, 933.5232, 23.7365, 20.0, 20.0, 20.0, False)
goto_if_false @SCRASH3_6603
World.ClearArea(-1674.725, 933.5232, 23.7365, 5.0, False)
$sc3_missioncar = Car.Create(551, -1674.725, 933.5232, 23.7365)
Car.SetHeading($sc3_missioncar, 90.0)
107@ = 1

:SCRASH3_6603
if 
  107@ == 0
goto_if_false @SCRASH3_6766
if 
  not Camera.IsPointOnScreen(-1791.158, 877.27, 23.75, 5.0)
goto_if_false @SCRASH3_6766
if 
  not Char.IsInArea3D($scplayer, -1791.158, 877.27, 23.75, 20.0, 20.0, 20.0, False)
goto_if_false @SCRASH3_6766
World.ClearArea(-1791.158, 877.27, 23.75, 5.0, False)
$sc3_missioncar = Car.Create(551, -1791.158, 877.27, 23.75)
Car.SetHeading($sc3_missioncar, 0.0)
107@ = 1

:SCRASH3_6766
if 
  107@ == 1
goto_if_false @SCRASH3_7004
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_7004
Car.ChangeColor($sc3_missioncar, 4, 4)
Car.SetCanGoAgainstTraffic($sc3_missioncar, False)
37@ = Char.Create(PedType.CivMale, 240, -1611.454, 714.3873, 12.4715)
Char.SetHealth(37@, 200)
Char.SetMaxHealth(37@, 200)
if 
  not Char.IsInAnyCar(37@)
goto_if_false @SCRASH3_6886
Char.ClearTasksImmediately(37@)
Char.WarpIntoCar(37@, $sc3_missioncar)

:SCRASH3_6886
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_6983
86@ = Sequence.Open()
Task.Pause(-1, 10000)
Task.CarDriveToCoord(-1, $sc3_missioncar, -1758.877, 952.744, 23.7487, 15.0, DriveMode.Normal, 0, DrivingMode.StopForCars)
Task.LeaveCar(-1, $sc3_missioncar)
Task.Say(-1, 229)
Task.WanderStandard(-1)
Sequence.Close(86@)
Char.PerformSequence(37@, 86@)
Sequence.Clear(86@)

:SCRASH3_6983
68@ = 1
$sc3_missioncar_alive = 1
107@ = 2

:SCRASH3_7004
if 
  68@ == 1
goto_if_false @SCRASH3_7222
if 
  not Char.IsDead(37@)
goto_if_false @SCRASH3_7174
if 
  Char.IsInCar(37@, $sc3_missioncar)
goto_if_false @SCRASH3_7126
105@ = Char.GetScriptTaskStatus(37@, 1560)
if 
  is_int_lvar_equal_to_constant 105@ == 1
goto_if_false @SCRASH3_7119
105@ = Char.GetSequenceProgress(37@)
if 
  105@ == 2
goto_if_false @SCRASH3_7119
106@ = 1

:SCRASH3_7119
goto @SCRASH3_7174

:SCRASH3_7126
if 
  106@ <> 1
goto_if_false @SCRASH3_7174
gosub @SCRASH3_17346
Text.Print('VAL_A1', 4000, 1)
goto @SCRASH3_18100

:SCRASH3_7174
if 
  Char.IsDead(37@)
goto_if_false @SCRASH3_7222
Text.ClearPrints
gosub @SCRASH3_17346
Text.Print('VAL_34', 4000, 1)
goto @SCRASH3_18100

:SCRASH3_7222
if 
  65@ > 6
goto_if_false @SCRASH3_7299
if 
  not Char.IsDead(37@)
goto_if_false @SCRASH3_7299
if 
  not Char.LocateAnyMeansChar2D($scplayer, 37@, 80.0, 80.0, False)
goto_if_false @SCRASH3_7299
Char.Delete(37@)
68@ = 0

:SCRASH3_7299
if 
  65@ > 5
goto_if_false @SCRASH3_7472
if and
  108@ == 0
  112@ == 0
goto_if_false @SCRASH3_7472
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_7472
79@ = Car.GetDriver($sc3_missioncar)
if and
  not is_int_lvar_equal_to_int_lvar 79@ == 37@
  not is_int_lvar_equal_to_int_var 79@ == $scplayer
  79@ <> -1
goto_if_false @SCRASH3_7472
Text.Print('VAL_A28', 4000, 1)
Blip.Remove(60@)
60@ = Blip.AddForCar($sc3_missioncar)
Blip.Remove(57@)
56@ = 0
108@ = 1
set_lvar_float_to_var_float 109@ = $dont_clear_valets
set_lvar_float_to_var_float 110@ = $valet_cars_to_park
set_lvar_float_to_var_float 111@ = $valet_mission_car

:SCRASH3_7472
if 
  108@ == 1
goto_if_false @SCRASH3_7609
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_7609
if 
  Car.Locate3D($sc3_missioncar, 109@, 110@, 111@, 4.0, 4.0, 4.0, False)
goto_if_false @SCRASH3_7578
gosub @SCRASH3_17346
Text.Print('VAL_A29', 4000, 1)
goto @SCRASH3_18100

:SCRASH3_7578
if 
  Char.IsInCar($scplayer, $sc3_missioncar)
goto_if_false @SCRASH3_7609
108@ = 2
Blip.Remove(60@)

:SCRASH3_7609
if 
  65@ == 6
goto_if_false @SCRASH3_8406
if 
  56@ == 1
goto_if_false @SCRASH3_7860
if 
  69@ == 0
goto_if_false @SCRASH3_7782
if 
  not Char.LocateAnyMeans3D($scplayer, -1759.026, 960.4122, 23.8905, 15.0, 15.0, 15.0, False)
goto_if_false @SCRASH3_7782
Text.ClearPrints
if or
  not Char.IsDead($valet[1])
  not Char.IsDead($valet[0])
goto_if_false @SCRASH3_7750
Text.PrintNow('VAL_49', 5000, 1)

:SCRASH3_7750
Blip.Remove(57@)
57@ = Blip.AddForCoord(-1759.026, 960.4122, 23.8905)
69@ = 1

:SCRASH3_7782
if 
  69@ == 1
goto_if_false @SCRASH3_7860
if 
  Char.LocateOnFoot3D($scplayer, -1759.026, 960.4122, 23.8905, 2.0, 2.0, 2.0, True)
goto_if_false @SCRASH3_7860
Blip.Remove(57@)
69@ = 0

:SCRASH3_7860
if 
  56@ == 1
goto_if_false @SCRASH3_8172
if 
  Char.LocateAnyMeans3D($scplayer, -1759.026, 960.4122, 23.8905, 15.0, 15.0, 15.0, False)
goto_if_false @SCRASH3_8172
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_8172
if 
  Car.Locate3D($sc3_missioncar, -1757.907, 952.8868, 25.9104, 20.0, 20.0, 15.0, False)
goto_if_false @SCRASH3_8172
if 
  not Char.IsDead(37@)
goto_if_false @SCRASH3_8172
if 
  Char.IsInCar(37@, $sc3_missioncar)
goto_if_false @SCRASH3_8172
if 
  not Char.IsDead($valet[1])
goto_if_false @SCRASH3_8096
if 
  Char.LocateAnyMeans3D($valet[1], -1759.026, 960.4122, 23.8905, 10.0, 10.0, 10.0, False)
goto_if_false @SCRASH3_8096
56@ = 2

:SCRASH3_8096
if 
  not Char.IsDead($valet[0])
goto_if_false @SCRASH3_8167
if 
  Char.LocateAnyMeans3D($valet[0], -1759.026, 960.4122, 23.8905, 10.0, 10.0, 10.0, False)
goto_if_false @SCRASH3_8167
56@ = 2

:SCRASH3_8167
Blip.Remove(57@)

:SCRASH3_8172
if 
  56@ == 2
goto_if_false @SCRASH3_8206
56@ = 3
Text.ClearPrints
281@ = 14

:SCRASH3_8206
if 
  106@ == 1
goto_if_false @SCRASH3_8406
77@ = Char.GetCarIsUsing($scplayer)
if 
  not Char.IsDead(37@)
goto_if_false @SCRASH3_8406
78@ = Char.GetCarIsUsing(37@)
if 
  not is_int_lvar_equal_to_int_lvar 77@ == 78@
goto_if_false @SCRASH3_8406
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_8406
if 
  Char.IsInCar($scplayer, $sc3_missioncar)
goto_if_false @SCRASH3_8406
Text.ClearPrints
Text.Print('VAL_15', 7000, 1)
65@ = 7
Blip.Remove(57@)
Blip.Remove(59@)
59@ = Blip.AddForCoord(-2045.252, 178.7994, 27.8359)
Car.SetHealth($sc3_missioncar, 1000)
$portacabin_timer = 150000
Hud.DisplayTimerWithString($portacabin_timer, TimerDirection.Down, 'VAL_21')
67@ = 1

:SCRASH3_8406
if 
  65@ > 6
goto_if_false @SCRASH3_8635
if or
  10 > 65@
  65@ == 13
  65@ == 20
goto_if_false @SCRASH3_8635
if 
  112@ <> 1
goto_if_false @SCRASH3_8635
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_8635
if 
  not Char.IsInCar($scplayer, $sc3_missioncar)
goto_if_false @SCRASH3_8579
if 
  85@ == 1
goto_if_false @SCRASH3_8579
85@ = 0
Blip.Remove(60@)
60@ = Blip.AddForCar($sc3_missioncar)
Blip.SetAsFriendly(60@, True)
Blip.ChangeDisplay(59@, BlipDisplay.Neither)
Text.ClearPrints
Text.Print('VAL_29', 5000, 1)

:SCRASH3_8579
if 
  Char.IsInCar($scplayer, $sc3_missioncar)
goto_if_false @SCRASH3_8635
if 
  85@ == 0
goto_if_false @SCRASH3_8635
85@ = 1
Blip.Remove(60@)
Blip.ChangeDisplay(59@, BlipDisplay.BlipOnly)

:SCRASH3_8635
if 
  65@ == 7
goto_if_false @SCRASH3_8788
if 
  Char.LocateInCar3D($scplayer, -2033.626, 178.856, 27.8359, 3.0, 3.0, 3.0, True)
goto_if_false @SCRASH3_8788
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_8788
if 
  Char.IsInCar($scplayer, $sc3_missioncar)
goto_if_false @SCRASH3_8788
Blip.Remove(59@)
59@ = Blip.AddForCoord(-2045.947, 178.5964, 28.1397)
Blip.ChangeDisplay(59@, BlipDisplay.BlipOnly)
Text.ClearPrints
Garage.Open('HBGDSFS')
65@ = 80

:SCRASH3_8788
if 
  65@ == 80
goto_if_false @SCRASH3_8988
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_8988
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2038.055, 186.7164, 31.0085, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2037.704, 185.8301, 30.7068, SwitchType.JumpCut)
Car.SetCoordinates($sc3_missioncar, -2033.626, 178.856, 27.8359)
Car.SetHeading($sc3_missioncar, 90.0)
114@ = Sequence.Open()
Task.Pause(-1, 1000)
Task.CarDriveToCoord(-1, $sc3_missioncar, -2047.517, 178.5924, 27.8359, 7.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Task.LeaveAnyCar(-1)
Sequence.Close(114@)
Char.PerformSequence($scplayer, 114@)
Sequence.Clear(114@)
65@ = 81

:SCRASH3_8988
if 
  65@ == 81
goto_if_false @SCRASH3_9049
105@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 105@ == 7
goto_if_false @SCRASH3_9049
Camera.DoFade(700, Fade.Out)
65@ = 82

:SCRASH3_9049
if 
  65@ == 82
goto_if_false @SCRASH3_9114
if 
  not Camera.GetFadingStatus
goto_if_false @SCRASH3_9114
Garage.Close('HBGDSFS')
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 1000
65@ = 83

:SCRASH3_9114
if 
  65@ == 83
goto_if_false @SCRASH3_9427
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_9427
if 
  Garage.IsClosed('HBGDSFS')
goto_if_false @SCRASH3_9427
Char.ClearTasksImmediately($scplayer)
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_9232
41@, 42@, 43@ = Car.GetCoordinates($sc3_missioncar)
50@ = Car.GetHeading($sc3_missioncar)
75@, 76@ = Car.GetColors($sc3_missioncar)
Car.Delete($sc3_missioncar)

:SCRASH3_9232
Streaming.RequestModel(551)

:SCRASH3_9237
if 
  not Streaming.HasModelLoaded(551)
goto_if_false @SCRASH3_9264
wait 0
goto @SCRASH3_9237

:SCRASH3_9264
$sc3_missioncar = Car.Create(551, -2031.502, 178.6435, 27.8516)
Car.ChangeColor($sc3_missioncar, 75@, 76@)
Car.SetHeading($sc3_missioncar, 270.0)
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_9332
Char.WarpIntoCar($scplayer, $sc3_missioncar)

:SCRASH3_9332
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Camera.DoFade(500, Fade.In)
Blip.Remove(59@)
59@ = Blip.AddForCoord(-1780.069, 970.9553, 23.75)
Blip.ChangeDisplay(59@, BlipDisplay.BlipOnly)
65@ = 8
Text.ClearPrints
Text.Print('VAL_20', 5000, 1)
Text.Print('VAL_A31', 5000, 1)
Player.SetControl($player1, True)

:SCRASH3_9427
if 
  65@ == 20
goto_if_false @SCRASH3_10007
if 
  not Char.LocateAnyMeans3D($scplayer, -2037.239, 179.5294, 28.316, 10.0, 10.0, 10.0, False)
goto_if_false @SCRASH3_9543
65@ = 7
Blip.Remove(59@)
59@ = Blip.AddForCoord(-2033.626, 178.856, 27.8359)
Text.ClearPrints
Text.Print('VAL_51', 5000, 1)

:SCRASH3_9543
if 
  Char.LocateInCar3D($scplayer, -2045.947, 178.5964, 28.1397, 4.0, 4.0, 4.0, True)
goto_if_false @SCRASH3_10007
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_10007
if 
  Char.IsInCar($scplayer, $sc3_missioncar)
goto_if_false @SCRASH3_10007
Player.SetControl($player1, False)
Task.CarTempAction($scplayer, $sc3_missioncar, TempAction.HandbrakeStraight, 2000000)
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_10007
if 
  Char.IsInCar($scplayer, $sc3_missioncar)
goto_if_false @SCRASH3_10007
Camera.DoFade(1000, Fade.Out)

:SCRASH3_9690
if 
  Camera.GetFadingStatus
goto_if_false @SCRASH3_9714
wait 0
goto @SCRASH3_9690

:SCRASH3_9714
Char.ClearTasksImmediately($scplayer)
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_9773
41@, 42@, 43@ = Car.GetCoordinates($sc3_missioncar)
50@ = Car.GetHeading($sc3_missioncar)
75@, 76@ = Car.GetColors($sc3_missioncar)
Car.Delete($sc3_missioncar)

:SCRASH3_9773
Streaming.RequestModel(551)

:SCRASH3_9778
if 
  not Streaming.HasModelLoaded(551)
goto_if_false @SCRASH3_9805
wait 0
goto @SCRASH3_9778

:SCRASH3_9805
$sc3_missioncar = Car.Create(551, -2031.502, 178.6435, 27.8516)
Car.ChangeColor($sc3_missioncar, 75@, 76@)
Car.SetHeading($sc3_missioncar, 270.0)
Garage.SetTargetCarForMission('HBGDSFS', $sc3_missioncar)
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_9887
Char.WarpIntoCar($scplayer, $sc3_missioncar)

:SCRASH3_9887
Camera.SetBehindPlayer
Camera.RestoreJumpcut
wait 1000
Camera.DoFade(500, Fade.In)

:SCRASH3_9903
if 
  Camera.GetFadingStatus
goto_if_false @SCRASH3_9927
wait 0
goto @SCRASH3_9903

:SCRASH3_9927
Blip.Remove(59@)
59@ = Blip.AddForCoord(-1780.069, 970.9553, 23.75)
Blip.ChangeDisplay(59@, BlipDisplay.BlipOnly)
65@ = 8
Text.ClearPrints
Text.Print('VAL_20', 5000, 1)
Text.Print('VAL_A31', 5000, 1)
Player.SetControl($player1, True)

:SCRASH3_10007
if 
  65@ == 8
goto_if_false @SCRASH3_10137
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_10137
if 
  Car.Locate3D($sc3_missioncar, -1780.069, 970.9553, 23.75, 3.0, 3.0, 3.0, True)
goto_if_false @SCRASH3_10137
Text.Print('VAL_32', 5000, 1)
Blip.Remove(59@)
59@ = Blip.AddForCoord(-1688.214, 987.1218, 16.5855)
65@ = 9

:SCRASH3_10137
if 
  67@ == 1
goto_if_false @SCRASH3_10205
if 
  $portacabin_timer == 0
goto_if_false @SCRASH3_10205
Text.ClearPrints
gosub @SCRASH3_17346
Text.Print('VAL_47', 5000, 1)
goto @SCRASH3_18100

:SCRASH3_10205
if 
  65@ == 9
goto_if_false @SCRASH3_10641
if 
  85@ == 1
goto_if_false @SCRASH3_10641
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_10641
if 
  Car.LocateStopped3D($sc3_missioncar, -1688.214, 987.1218, 16.5855, 3.0, 3.0, 3.0, True)
goto_if_false @SCRASH3_10641
Player.SetControl($player1, False)
Task.LeaveAnyCar($scplayer)
Car.LockDoors($sc3_missioncar, CarLock.LockoutPlayerOnly)
Blip.Remove(59@)
Blip.Remove(60@)
59@ = Blip.AddForCoord(-1742.3, 940.8106, 23.8972)
Blip.ChangeDisplay(59@, BlipDisplay.BlipOnly)
Hud.ClearTimer($portacabin_timer)
67@ = 0
Text.ClearPrints
Text.Print('VAL_A30', 6000, 1)
65@ = 30
113@ = Char.Create(PedType.Mission1, 189, -1772.809, 977.8892, 22.6614)
Char.SetOnlyDamagedByPlayer(113@, True)
114@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, -1710.667, 985.5689, 16.5936, 6, -2)
Task.EnterCarAsDriver(-1, $sc3_missioncar, -2)
Task.CarTempAction(-1, $sc3_missioncar, TempAction.ReverseRight, 1400)
Task.CarDriveToCoord(-1, $sc3_missioncar, -1764.082, 982.5382, 21.1042, 15.0, DriveMode.Normal, 0, DrivingMode.StopForCars)
Task.CarDriveToCoord(-1, $sc3_missioncar, -1754.889, 952.3113, 23.7422, 15.0, DriveMode.Normal, 0, DrivingMode.StopForCars)
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, -1754.117, 959.0662, 23.8828, MoveState.Walk, -2)
Task.AchieveHeading(-1, 147.0)
Sequence.Close(114@)
Car.SetCanGoAgainstTraffic($sc3_missioncar, False)
37@ = Char.Create(PedType.Mission1, 240, -1755.392, 946.9804, 23.8906)
Char.SetHeading(37@, 0.0)
Char.PerformSequence(113@, 114@)
Sequence.Clear(114@)

:SCRASH3_10641
if 
  65@ == 30
goto_if_false @SCRASH3_11109
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_11109
if 
  not Char.IsInCar($scplayer, $sc3_missioncar)
goto_if_false @SCRASH3_10741
if 
  112@ == 0
goto_if_false @SCRASH3_10741
Player.SetControl($player1, True)
112@ = 1
Car.SetProofs($sc3_missioncar, True, True, True, True, True)

:SCRASH3_10741
if 
  Car.IsInArea3D($sc3_missioncar, -1764.199, 946.595, 28.3546, -1744.086, 957.879, 22.6221, False)
goto_if_false @SCRASH3_10880
if 
  not Char.IsDead(37@)
goto_if_false @SCRASH3_10880
105@ = Char.GetScriptTaskStatus(37@, 1560)
if 
  is_int_lvar_equal_to_constant 105@ == 7
goto_if_false @SCRASH3_10880
114@ = Sequence.Open()
Task.EnterCarAsDriver(-1, $sc3_missioncar, -2)
Task.CarDriveWander(-1, $sc3_missioncar, 15.0, DrivingMode.StopForCars)
Sequence.Close(114@)
Char.PerformSequence(37@, 114@)
Sequence.Clear(114@)

:SCRASH3_10880
if 
  not Char.IsDead(37@)
goto_if_false @SCRASH3_10947
if 
  Char.IsInCar(37@, $sc3_missioncar)
goto_if_false @SCRASH3_10947
Text.ClearPrints
gosub @SCRASH3_17346
Text.Print('VAL_A34', 5000, 1)
goto @SCRASH3_18100

:SCRASH3_10947
if 
  Char.LocateOnFoot3D($scplayer, -1742.3, 940.8106, 23.8972, 2.0, 2.0, 3.0, True)
goto_if_false @SCRASH3_11028
67@ = 0
Player.SetControl($player1, False)
Blip.Remove(59@)
65@ = 10
72@ = 90

:SCRASH3_11028
if 
  Car.IsVisiblyDamaged($sc3_missioncar)
goto_if_false @SCRASH3_11109
if 
  not Char.IsDead(113@)
goto_if_false @SCRASH3_11109
if 
  not Char.IsInCar(113@, $sc3_missioncar)
goto_if_false @SCRASH3_11109
gosub @SCRASH3_17346
Text.Print('VAL_B2', 4000, 1)
goto @SCRASH3_18100

:SCRASH3_11109
if 
  65@ > 7
goto_if_false @SCRASH3_11225
if 
  10 > 65@
goto_if_false @SCRASH3_11225
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_11225
if 
  Car.IsVisiblyDamaged($sc3_missioncar)
goto_if_false @SCRASH3_11225
65@ = 7
Text.Print('VAL_31', 5000, 1)
Blip.Remove(59@)
59@ = Blip.AddForCoord(-2045.252, 178.7994, 27.8359)

:SCRASH3_11225
if 
  65@ == 10
goto_if_false @SCRASH3_14734
World.SetUsesCollisionOfClosestObjectOfType(-1741.792, 939.731, 23.8906, 2.5, #LAMPPOST3, False)
if 
  72@ == 90
goto_if_false @SCRASH3_11307
Streaming.RequestModel(330)
338@ = 1
72@ = 91

:SCRASH3_11307
if 
  72@ == 91
goto_if_false @SCRASH3_11523
if 
  Streaming.HasModelLoaded(330)
goto_if_false @SCRASH3_11523
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-1738.083, 938.6749, 25.0378, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1738.96, 939.1542, 25.0127, SwitchType.JumpCut)
World.ClearArea(-1741.792, 939.731, 23.8906, 20.0, False)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SCRASH3_11463
Char.WarpFromCarToCoord($scplayer, -1741.792, 939.731, 23.8906)
goto @SCRASH3_11483

:SCRASH3_11463
Char.SetCoordinates($scplayer, -1741.792, 939.731, 23.8906)

:SCRASH3_11483
Char.SetHeading($scplayer, 270.0)
Task.UseMobilePhone($scplayer, True)
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 2500
72@ = 89

:SCRASH3_11523
if 
  72@ == 89
goto_if_false @SCRASH3_11581
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_11581
281@ = 1
282@ = 2
72@ = 88

:SCRASH3_11581
if 
  72@ == 88
goto_if_false @SCRASH3_11652
if and
  281@ == 0
  282@ == 0
goto_if_false @SCRASH3_11652
Task.UseMobilePhone($scplayer, False)
Camera.DoFade(1000, Fade.Out)
$sc3_missioncar_alive = 0
72@ = 87

:SCRASH3_11652
if 
  72@ == 87
goto_if_false @SCRASH3_11784
if 
  not Camera.GetFadingStatus
goto_if_false @SCRASH3_11784
if 
  not Char.IsDead(37@)
goto_if_false @SCRASH3_11704
Char.Delete(37@)

:SCRASH3_11704
72@ = 99
$freeze_creating_drop_off_cars = 1
if 
  not Car.IsDead($drop_off_car)
goto_if_false @SCRASH3_11739
Car.Delete($drop_off_car)

:SCRASH3_11739
if 
  not Car.IsDead($valet_pickup_car)
goto_if_false @SCRASH3_11760
Car.Delete($valet_pickup_car)

:SCRASH3_11760
World.ClearArea(-1741.792, 939.731, 23.0, 80.0, False)

:SCRASH3_11784
if 
  72@ == 99
goto_if_false @SCRASH3_12015
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
$last_player_x = 1
Streaming.RequestCollision(-1759.449, 954.4333)
Streaming.LoadScene(-1759.449, 954.4333, 23.72)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SCRASH3_11895
Char.WarpFromCarToCoord($scplayer, -1741.792, 939.731, 23.8906)
goto @SCRASH3_11915

:SCRASH3_11895
Char.SetCoordinates($scplayer, -1741.792, 939.731, 23.8906)

:SCRASH3_11915
Char.SetHeading($scplayer, 40.0)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-1738.083, 938.6749, 25.0378, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1738.96, 939.1542, 25.0127, SwitchType.JumpCut)
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_12008
Car.Delete($sc3_missioncar)

:SCRASH3_12008
72@ = 98

:SCRASH3_12015
if 
  72@ == 98
goto_if_false @SCRASH3_12182
if and
  Streaming.HasModelLoaded(551)
  Streaming.HasModelLoaded(346)
  Streaming.HasModelLoaded(240)
  Streaming.HasAnimationLoaded("POLICE")
  Streaming.HasAnimationLoaded("MISC")
goto_if_false @SCRASH3_12149
if and
  Streaming.HasModelLoaded(281)
  Streaming.HasCarRecordingBeenLoaded(165)
  Streaming.HasCarRecordingBeenLoaded(166)
  Streaming.HasModelLoaded(597)
goto_if_false @SCRASH3_12122
72@ = 0
goto @SCRASH3_12142

:SCRASH3_12122
Streaming.RequestModel(597)
Streaming.RequestCarRecording(166)
Streaming.RequestCarRecording(165)
Streaming.RequestModel(281)

:SCRASH3_12142
goto @SCRASH3_12182

:SCRASH3_12149
Streaming.RequestAnimation("MISC")
Streaming.RequestAnimation("POLICE")
Streaming.RequestModel(240)
Streaming.RequestModel(346)
Streaming.RequestModel(551)

:SCRASH3_12182
if 
  72@ == 0
goto_if_false @SCRASH3_12645
Camera.DoFade(800, Fade.In)
Char.HideWeaponForScriptedCutscene($scplayer, True)
World.ClearArea(-1759.449, 954.4333, 23.72, 50.0, False)
World.SetCarDensityMultiplier(0.0)
$sc3_missioncar = Car.Create(551, -1759.449, 954.4333, 23.72)
Car.ChangeColor($sc3_missioncar, 4, 4)
115@ = Car.Create(597, -1711.399, 903.0281, 24.1296)
116@ = Car.Create(597, -1711.016, 893.7642, 24.0975)
Car.SwitchSiren(115@, True)
Car.SwitchSiren(116@, True)
121@ = Char.CreateInsideCar(115@, PedType.CivMale, 281)
122@ = Char.CreateInsideCar(116@, PedType.CivMale, 281)
Char.GiveWeapon(121@, WeaponType.Pistol, 99999)
Char.GiveWeapon(122@, WeaponType.Pistol, 99999)
37@ = Char.Create(PedType.CivMale, 240, -1763.276, 946.1676, 23.8905)
if 
  not Char.IsDead(37@)
goto_if_false @SCRASH3_12436
Char.WarpIntoCar(37@, $sc3_missioncar)

:SCRASH3_12436
117@ = Sequence.Open()
Task.Pause(-1, 6500)
Task.LeaveAnyCar(-1)
Task.HandsUp(-1, 3000)
Sequence.Close(117@)
Char.PerformSequence(37@, 117@)
Sequence.Clear(117@)
Car.SetHeading($sc3_missioncar, 90.0)
Char.ClearTasksImmediately($scplayer)
Task.PlayAnimNonInterruptable($scplayer, "PLYRLEAN_LOOP", "MISC", 1.0, True, False, False, False, -2)
$sc3_countdown, $cunt_x, $player_z = Char.GetCoordinates($scplayer)
Camera.SetFixedPosition(-1740.345, 939.6078, 25.3651, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1741.223, 940.0797, 25.2814, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 325@ = 37@
set_lvar_int_to_lvar_int 326@ = 121@
set_lvar_int_to_lvar_int 327@ = 122@
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 1000
72@ = 1

:SCRASH3_12645
if 
  72@ == 1
goto_if_false @SCRASH3_12689
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_12689
72@ = 2

:SCRASH3_12689
if 
  72@ == 2
goto_if_false @SCRASH3_12825
if and
  not Car.IsDead(115@)
  not Car.IsDead(116@)
goto_if_false @SCRASH3_12802
if and
  Streaming.HasCarRecordingBeenLoaded(165)
  Streaming.HasCarRecordingBeenLoaded(166)
goto_if_false @SCRASH3_12792
Car.StartPlayback(115@, 165)
Car.StartPlayback(116@, 166)
Car.SetPlaybackSpeed(115@, 0.8)
Car.SetPlaybackSpeed(116@, 0.8)
goto @SCRASH3_12802

:SCRASH3_12792
Streaming.RequestCarRecording(165)
Streaming.RequestCarRecording(166)

:SCRASH3_12802
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 3000
72@ = 3

:SCRASH3_12825
if 
  72@ == 3
goto_if_false @SCRASH3_12869
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_12869
72@ = 4

:SCRASH3_12869
if 
  72@ == 4
goto_if_false @SCRASH3_13087
Text.ClearPrints
281@ = 3
282@ = 2
if 
  not Char.IsDead(37@)
goto_if_false @SCRASH3_13064
if 
  not Char.IsDead(121@)
goto_if_false @SCRASH3_12972
117@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.AimGunAtChar(-1, 37@, 3000)
Sequence.Close(117@)
Char.PerformSequence(121@, 117@)
Sequence.Clear(117@)

:SCRASH3_12972
if 
  not Char.IsDead(122@)
goto_if_false @SCRASH3_13064
117@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoToCoordWhileAiming(-1, -1762.369, 951.1278, 23.7487, 4, 1.0, 1.0, 37@, 0.0, 0.0, 0.0)
Sequence.Close(117@)
Char.PerformSequence(122@, 117@)
Sequence.Clear(117@)

:SCRASH3_13064
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 6200
72@ = 5

:SCRASH3_13087
if 
  72@ == 5
goto_if_false @SCRASH3_13149
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_13149
if 
  281@ == 0
goto_if_false @SCRASH3_13149
72@ = 6

:SCRASH3_13149
if 
  72@ == 6
goto_if_false @SCRASH3_13566
281@ = 5
282@ = 3
set_lvar_int_to_lvar_int 120@ = TIMERA
120@ += 17333
set_lvar_int_to_lvar_int 119@ = TIMERA
119@ += 17633
set_lvar_int_to_lvar_int 118@ = TIMERA
118@ += 4313
if and
  not Char.IsDead(121@)
  not Char.IsDead(122@)
goto_if_false @SCRASH3_13274
Char.SetCurrentWeapon(121@, WeaponType.Unarmed)
Char.SetCurrentWeapon(122@, WeaponType.Unarmed)
Char.SetHeading(121@, 0.0)

:SCRASH3_13274
Camera.SetFixedPosition(-1768.048, 955.8058, 25.1327, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1767.238, 955.2321, 25.0132, SwitchType.JumpCut)
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_13346
Car.PopBoot($sc3_missioncar)

:SCRASH3_13346
if 
  not Char.IsDead(37@)
goto_if_false @SCRASH3_13454
Char.ClearTasksImmediately(37@)
Char.SetCollision(37@, False)
Char.SetCoordinates(37@, -1761.71, 952.9333, 23.79)
Char.SetHeading(37@, 0.0)
Char.FreezePosition(37@, True)
Task.PlayAnimNonInterruptable(37@, "CRM_DRGBST_01", "POLICE", 1.0, False, False, False, True, -1)

:SCRASH3_13454
Char.SetCoordinates(121@, -1761.724, 952.4515, 23.72)
Char.ClearTasksImmediately(122@)
Char.SetCoordinates(122@, -1755.75, 953.9333, 23.72)
Task.PlayAnimNonInterruptable(121@, "PLC_DRGBST_01", "POLICE", 1.0, True, False, False, False, 25000)
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 7606
72@ = 7

:SCRASH3_13566
if 
  72@ == 7
goto_if_false @SCRASH3_13680
if 
  118@ <> 0
goto_if_false @SCRASH3_13636
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 118@
goto_if_false @SCRASH3_13636
Audio.ReportMissionAudioEventAtChar(37@, 1009)
118@ = 0

:SCRASH3_13636
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_13680
if 
  281@ == 0
goto_if_false @SCRASH3_13680
72@ = 8

:SCRASH3_13680
if 
  72@ == 8
goto_if_false @SCRASH3_13855
281@ = 8
282@ = 2
Camera.SetFixedPosition(-1757.747, 952.7751, 24.8666, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1756.909, 953.301, 25.0154, SwitchType.JumpCut)
if 
  not Char.IsDead(122@)
goto_if_false @SCRASH3_13832
Char.SetHeading(122@, 90.0)
Task.PlayAnimNonInterruptable(122@, "PLC_DRGBST_02", "POLICE", 1.0, False, False, False, False, -1)

:SCRASH3_13832
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 3267
72@ = 9

:SCRASH3_13855
if 
  72@ == 9
goto_if_false @SCRASH3_13917
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_13917
if 
  281@ == 0
goto_if_false @SCRASH3_13917
72@ = 10

:SCRASH3_13917
if 
  72@ == 10
goto_if_false @SCRASH3_14023
281@ = 10
282@ = 2
Camera.SetFixedPosition(-1768.048, 955.8058, 25.1327, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1767.238, 955.2321, 25.0132, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 750
72@ = 80

:SCRASH3_14023
if 
  72@ == 80
goto_if_false @SCRASH3_14091
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 120@
goto_if_false @SCRASH3_14091
Audio.ReportMissionAudioEventAtChar(37@, 1130)
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 500
72@ = 81

:SCRASH3_14091
if 
  72@ == 81
goto_if_false @SCRASH3_14159
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 119@
goto_if_false @SCRASH3_14159
Audio.ReportMissionAudioEventAtChar(37@, 1009)
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 1900
72@ = 11

:SCRASH3_14159
if and
  72@ == 11
  281@ == 0
goto_if_false @SCRASH3_14448
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_14448
Camera.SetFixedPosition(-1738.083, 938.6749, 25.0378, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1738.96, 939.1542, 25.0127, SwitchType.JumpCut)
if and
  not Char.IsDead(121@)
  not Char.IsDead(122@)
  not Car.IsDead(115@)
  not Car.IsDead(116@)
  not Char.IsDead(37@)
goto_if_false @SCRASH3_14425
Char.WarpIntoCar(121@, 115@)
Char.WarpIntoCar(122@, 116@)
Char.FreezePosition(37@, False)
Char.WarpIntoCarAsPassenger(37@, 116@, 1)
Task.CarDriveToCoord(122@, 116@, -1790.405, 905.0311, 25.0203, 20.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
117@ = Sequence.Open()
Task.CarTempAction(-1, 115@, TempAction.ReverseRight, 800)
Task.CarDriveToCoord(-1, 115@, -1790.405, 905.0311, 25.0203, 20.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Sequence.Close(117@)
Char.PerformSequence(121@, 117@)
Sequence.Clear(117@)

:SCRASH3_14425
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 4000
72@ = 12

:SCRASH3_14448
if 
  72@ == 12
goto_if_false @SCRASH3_14734
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_14734
72@ = 13
Camera.DoFade(1000, Fade.Out)

:SCRASH3_14499
if 
  Camera.GetFadingStatus
goto_if_false @SCRASH3_14523
wait 0
goto @SCRASH3_14499

:SCRASH3_14523
if 
  Char.DoesExist(113@)
goto_if_false @SCRASH3_14544
Char.Delete(113@)

:SCRASH3_14544
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_14565
Car.MarkAsNoLongerNeeded($sc3_missioncar)

:SCRASH3_14565
if and
  not Char.IsDead(121@)
  not Char.IsDead(122@)
  not Car.IsDead(115@)
  not Car.IsDead(116@)
  not Char.IsDead(37@)
goto_if_false @SCRASH3_14626
Char.Delete(121@)
Char.Delete(122@)
Car.Delete(115@)
Car.Delete(116@)
Char.Delete(37@)

:SCRASH3_14626
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_14647
Car.Delete($sc3_missioncar)

:SCRASH3_14647
if 
  Player.IsWearing($player1, 17, "VALET")
goto_if_false @SCRASH3_14688
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)

:SCRASH3_14688
wait 1000
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Char.ClearTasksImmediately($scplayer)
Player.SetControl($player1, True)
Camera.DoFade(1000, Fade.In)
Char.HideWeaponForScriptedCutscene($scplayer, False)
goto @SCRASH3_18132

:SCRASH3_14734
if 
  65@ == 13
goto_if_false @SCRASH3_15198
if 
  Char.LocateStoppedInCar3D($scplayer, -2045.252, 178.7994, 27.8359, 3.0, 3.0, 3.0, True)
goto_if_false @SCRASH3_14800

:SCRASH3_14800
if 
  Char.IsInAreaInCar3D($scplayer, -2042.943, 167.5841, 26.759, -2055.202, 180.1328, 32.3919, False)
goto_if_false @SCRASH3_15198
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_15198
if 
  Char.IsInCar($scplayer, $sc3_missioncar)
goto_if_false @SCRASH3_15198
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)

:SCRASH3_14897
if 
  Camera.GetFadingStatus
goto_if_false @SCRASH3_14921
wait 0
goto @SCRASH3_14897

:SCRASH3_14921
Char.ClearTasksImmediately($scplayer)
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_14980
41@, 42@, 43@ = Car.GetCoordinates($sc3_missioncar)
50@ = Car.GetHeading($sc3_missioncar)
75@, 76@ = Car.GetColors($sc3_missioncar)
Car.Delete($sc3_missioncar)

:SCRASH3_14980
Streaming.RequestModel(551)

:SCRASH3_14985
if 
  not Streaming.HasModelLoaded(551)
goto_if_false @SCRASH3_15012
wait 0
goto @SCRASH3_14985

:SCRASH3_15012
$sc3_missioncar = Car.Create(551, -2031.502, 178.6435, 27.8516)
Car.ChangeColor($sc3_missioncar, 75@, 76@)
Car.SetHeading($sc3_missioncar, 270.0)
Garage.SetTargetCarForMission('HBGDSFS', $sc3_missioncar)
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_15094
Char.WarpIntoCar($scplayer, $sc3_missioncar)

:SCRASH3_15094
wait 1000
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(500, Fade.In)

:SCRASH3_15117
if 
  Camera.GetFadingStatus
goto_if_false @SCRASH3_15141
wait 0
goto @SCRASH3_15117

:SCRASH3_15141
Blip.Remove(59@)
59@ = Blip.AddForCoord(-1780.069, 970.9553, 23.75)
Blip.ChangeDisplay(59@, BlipDisplay.BlipOnly)
65@ = 8
Text.ClearPrints
Text.Print('VAL_33', 5000, 1)

:SCRASH3_15198
if 
  65@ == 11
goto_if_false @SCRASH3_15216

:SCRASH3_15216
goto @SCRASH3_636

:SCRASH3_15223
if 
  151@ <> 0
goto_if_false @SCRASH3_15414
if 
  150@ == 0
goto_if_false @SCRASH3_15277
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 151@)
150@ = 1

:SCRASH3_15277
if 
  150@ == 1
goto_if_false @SCRASH3_15340
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @SCRASH3_15340
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 153@
goto_if_false @SCRASH3_15340
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
150@ = 2

:SCRASH3_15340
if 
  150@ == 2
goto_if_false @SCRASH3_15414
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @SCRASH3_15414
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
set_lvar_int_to_lvar_int 151@ = 152@
152@ = 0
set_lvar_int_to_lvar_int 153@ = 154@
154@ = 0
150@ = 0

:SCRASH3_15414
if 
  124@ <> 0
goto_if_false @SCRASH3_15614
if 
  125@ == 0
goto_if_false @SCRASH3_15492
125@ = 1
set_lvar_int_to_lvar_int 126@ = TIMERA
127@ = 0
set_lvar_int_to_lvar_int 334@ = 126@
add_int_lvar_to_int_lvar 334@ += 128@(127@,10i)

:SCRASH3_15492
if 
  125@ == 1
goto_if_false @SCRASH3_15614
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 334@
goto_if_false @SCRASH3_15614
set_lvar_int_to_lvar_int 281@ = 138@(127@,10i)
127@ += 1
148@ -= 1
if 
  148@ == 0
goto_if_false @SCRASH3_15594
124@ = 0
125@ = 0
goto @SCRASH3_15614

:SCRASH3_15594
set_lvar_int_to_lvar_int 334@ = 126@
add_int_lvar_to_int_lvar 334@ += 128@(127@,10i)

:SCRASH3_15614
if 
  149@ == 1
goto_if_false @SCRASH3_15678
if 
  not Camera.GetFadingStatus
goto_if_false @SCRASH3_15678
if or
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SCRASH3_15678
149@ = 0
280@ = 5

:SCRASH3_15678
switch_start 280@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SCRASH3_17344 {caseNum1} 0 {caseLabel1} @SCRASH3_15741 {caseNum2} 1 {caseLabel2} @SCRASH3_16265 {caseNum3} 2 {caseLabel3} @SCRASH3_16999 {caseNum4} 3 {caseLabel4} @SCRASH3_17091 {caseNum5} 4 {caseLabel5} @SCRASH3_17149 {caseNum6} 5 {caseLabel6} @SCRASH3_17263 {caseNum7} -1 {caseLabel7} @SCRASH3_17344

:SCRASH3_15741
if 
  280@ == 1
goto_if_false @SCRASH3_15809
332@ = Char.Create(PedType.Gang2, 290, 2752.341, -1948.867, 16.3125)
336@ = Char.Create(PedType.Gang2, 290, 2752.341, -1948.867, 16.3125)

:SCRASH3_15809
set_lvar_text_label 157@s = 'SCR1_AA'
set_lvar_text_label 159@s = 'SCR1_AB'
set_lvar_text_label 161@s = 'SCR1_AC'
set_lvar_text_label 163@s = 'SCR1_AD'
set_lvar_text_label 165@s = 'SCR1_AE'
set_lvar_text_label 167@s = 'SCR1_AF'
set_lvar_text_label 169@s = 'SCR1_AG'
set_lvar_text_label 171@s = 'SCR1_AH'
set_lvar_text_label 173@s = 'SCR1_AJ'
set_lvar_text_label 175@s = 'SCR1_AK'
set_lvar_text_label 177@s = 'SCR1_AL'
set_lvar_text_label 179@s = 'SCR1_AM'
set_lvar_text_label 181@s = 'SCR1_BB'
set_lvar_text_label 183@s = 'SCR1_BA'
set_lvar_int_to_constant 236@ = 20400
set_lvar_int_to_constant 237@ = 20401
set_lvar_int_to_constant 238@ = 20406
set_lvar_int_to_constant 239@ = 20407
set_lvar_int_to_constant 240@ = 20408
set_lvar_int_to_constant 241@ = 20409
set_lvar_int_to_constant 242@ = 20410
set_lvar_int_to_constant 243@ = 20411
set_lvar_int_to_constant 244@ = 20412
set_lvar_int_to_constant 245@ = 20413
set_lvar_int_to_constant 246@ = 20414
set_lvar_int_to_constant 247@ = 20415
set_lvar_int_to_constant 248@ = 20403
set_lvar_int_to_constant 249@ = 20402
284@ = 1
285@ = 1
286@ = 3
287@ = 3
288@ = 2
289@ = 2
290@ = 3
291@ = 4
292@ = 4
293@ = 2
294@ = 3
295@ = 3
296@ = 0
297@ = 0
set_lvar_int_to_var_int 324@ = $scplayer
280@ = 1
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 236@)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 237@)
276@ = 1
277@ = 2
goto @SCRASH3_17344

:SCRASH3_16265
if 
  281@ <> 0
goto_if_false @SCRASH3_16992
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SCRASH3_16992
if 
  is_int_lvar_equal_to_int_lvar 276@ == 281@
goto_if_false @SCRASH3_16335
278@ = 1
goto @SCRASH3_16398

:SCRASH3_16335
if 
  is_int_lvar_equal_to_int_lvar 277@ == 281@
goto_if_false @SCRASH3_16368
278@ = 2
goto @SCRASH3_16398

:SCRASH3_16368
278@ = 1
set_lvar_int_to_lvar_int 276@ = 281@
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 235@(281@,40i))

:SCRASH3_16398
if 
  Audio.HasMissionAudioLoaded(278@)
goto_if_false @SCRASH3_16980
set_lvar_int_to_lvar_int 331@ = 283@(281@,40i)
set_lvar_int_to_lvar_int 332@ = 323@(331@,7i)
if 
  338@ <> 1
goto_if_false @SCRASH3_16626
335@ = 1
337@ = 0

:SCRASH3_16470
if 
  7 > 335@
goto_if_false @SCRASH3_16626
set_lvar_int_to_lvar_int 336@ = 323@(335@,7i)
if 
  336@ <> 0
goto_if_false @SCRASH3_16612
if 
  not is_int_lvar_equal_to_int_lvar 336@ == 332@
goto_if_false @SCRASH3_16612
if 
  not Char.IsDead(332@)
goto_if_false @SCRASH3_16612
if 
  not Char.IsDead(336@)
goto_if_false @SCRASH3_16612
if 
  Char.LocateAnyMeansChar3D(332@, 336@, 10.0, 10.0, 10.0, False)
goto_if_false @SCRASH3_16612
337@ += 1

:SCRASH3_16612
335@ += 1
goto @SCRASH3_16470

:SCRASH3_16626
if or
  338@ == 1
  337@ > 0
  283@(281@,40i) == 0
goto_if_false @SCRASH3_16973
if 
  283@(281@,40i) <> 0
goto_if_false @SCRASH3_16753
if 
  not Char.IsDead(332@)
goto_if_false @SCRASH3_16753
Audio.AttachMissionAudioToChar(278@, 332@)
if 
  not Char.IsTalking(332@)
goto_if_false @SCRASH3_16746
330@ = 1
Char.StartFacialTalk(332@, 15000)
goto @SCRASH3_16753

:SCRASH3_16746
Char.DisableSpeech(332@, False)

:SCRASH3_16753
if 
  283@(281@,40i) == 0
goto_if_false @SCRASH3_16782
330@ = 1

:SCRASH3_16782
if 
  330@ == 1
goto_if_false @SCRASH3_16973
Audio.PlayMissionAudio(278@)
Text.ClearPrints
Text.Print(155@(281@,40s), 10000, 1)
280@ += 1
330@ = 0
281@ += 1
set_lvar_int_to_lvar_int 279@ = 281@
if 
  235@(281@,40i) <> 0
goto_if_false @SCRASH3_16973
if 
  278@ == 1
goto_if_false @SCRASH3_16935
if 
  not is_int_lvar_equal_to_int_lvar 277@ == 281@
goto_if_false @SCRASH3_16928
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 235@(281@,40i))
set_lvar_int_to_lvar_int 277@ = 281@

:SCRASH3_16928
goto @SCRASH3_16973

:SCRASH3_16935
if 
  not is_int_lvar_equal_to_int_lvar 276@ == 281@
goto_if_false @SCRASH3_16973
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 235@(281@,40i))
set_lvar_int_to_lvar_int 276@ = 281@

:SCRASH3_16973
goto @SCRASH3_16992

:SCRASH3_16980
Audio.LoadMissionAudio(278@, 235@(281@,40i))

:SCRASH3_16992
goto @SCRASH3_17344

:SCRASH3_16999
if 
  Audio.HasMissionAudioFinished(278@)
goto_if_false @SCRASH3_17029
280@ += 1
goto @SCRASH3_17084

:SCRASH3_17029
if 
  Char.DoesExist(332@)
goto_if_false @SCRASH3_17068
if 
  Char.IsDead(332@)
goto_if_false @SCRASH3_17068
280@ += 1

:SCRASH3_17068
if 
  not Char.IsDead(332@)
goto_if_false @SCRASH3_17084

:SCRASH3_17084
goto @SCRASH3_17344

:SCRASH3_17091
Audio.ClearMissionAudio(278@)
275@(278@,3i) = 0
Text.ClearPrints
if 
  not Char.IsDead(332@)
goto_if_false @SCRASH3_17135
Char.StopFacialTalk(332@)
Char.EnableSpeech(332@)

:SCRASH3_17135
280@ += 1
goto @SCRASH3_17344

:SCRASH3_17149
281@ += 1
if 
  235@(281@,40i) <> 0
goto_if_false @SCRASH3_17202
Audio.LoadMissionAudio(278@, 235@(281@,40i))
set_lvar_int_to_lvar_int 275@(278@,3i) = 281@

:SCRASH3_17202
282@ -= 1
if 
  282@ <= 0
goto_if_false @SCRASH3_17241
281@ = 0
goto @SCRASH3_17249

:SCRASH3_17241
set_lvar_int_to_lvar_int 281@ = 279@

:SCRASH3_17249
280@ = 1
goto @SCRASH3_17344

:SCRASH3_17263
280@ = 1
281@ = 0
282@ = 0
124@ = 0
148@ = 0
Audio.ClearMissionAudio(278@)
275@(278@,3i) = 0
Text.ClearPrints
if 
  not Char.IsDead(332@)
goto_if_false @SCRASH3_17337
Char.EnableSpeech(332@)

:SCRASH3_17337
goto @SCRASH3_17344

:SCRASH3_17344
return 

:SCRASH3_17346
Text.ClearPrints
if 
  not Game.IsMinigameInProgress
goto_if_false @SCRASH3_17368
Player.SetControl($player1, False)

:SCRASH3_17368
if 
  Char.IsInArea3D($scplayer, -2039.153, 182.7238, 20.8154, -2057.087, 150.6935, 34.1252, False)
goto_if_false @SCRASH3_17764
if 
  Player.IsWearing($player1, 17, "VALET")
goto_if_false @SCRASH3_17757
Camera.DoFade(1000, Fade.Out)

:SCRASH3_17448
if 
  Camera.GetFadingStatus
goto_if_false @SCRASH3_17472
wait 0
goto @SCRASH3_17448

:SCRASH3_17472
$car = 0
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SCRASH3_17523
$car = Char.GetCarIsUsing($scplayer)
Char.WarpFromCarToCoord($scplayer, 0.0, 0.0, 0.0)

:SCRASH3_17523
World.ClearAreaOfCars(-2039.056, 182.7439, 32.4018, -2057.341, 150.5405, 27.7805)
World.ClearAreaOfChars(-2039.056, 182.7439, 32.4018, -2057.341, 150.5405, 27.7805)
Char.SetCoordinatesNoOffset($scplayer, -2037.886, 178.9478, 27.8359)
Char.SetHeading($scplayer, 270.0)
if 
  not Char.IsDead(37@)
goto_if_false @SCRASH3_17654
if 
  not Char.IsInAnyCar(37@)
goto_if_false @SCRASH3_17654
Char.Delete(37@)

:SCRASH3_17654
Player.SetControl($player1, False)
Char.SetProofs($scplayer, True, True, True, True, True)
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
$valet_mission_terminate = 1
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:SCRASH3_17733
if 
  Camera.GetFadingStatus
goto_if_false @SCRASH3_17757
wait 0
goto @SCRASH3_17733

:SCRASH3_17757
goto @SCRASH3_18098

:SCRASH3_17764
if 
  Player.IsWearing($player1, 17, "VALET")
goto_if_false @SCRASH3_18098
Camera.DoFade(1000, Fade.Out)

:SCRASH3_17796
if 
  Camera.GetFadingStatus
goto_if_false @SCRASH3_17820
wait 0
goto @SCRASH3_17796

:SCRASH3_17820
$car = 0
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SCRASH3_17871
$car = Char.GetCarIsUsing($scplayer)
Char.WarpFromCarToCoord($scplayer, 0.0, 0.0, 0.0)

:SCRASH3_17871
World.ClearAreaOfCars(-2039.056, 182.7439, 32.4018, -2057.341, 150.5405, 27.7805)
World.ClearAreaOfChars(-2039.056, 182.7439, 32.4018, -2057.341, 150.5405, 27.7805)
if 
  not Car.IsDead($car)
goto_if_false @SCRASH3_17966
Char.WarpIntoCar($scplayer, $car)
goto @SCRASH3_18014

:SCRASH3_17966
if 
  $car <> 0
goto_if_false @SCRASH3_18014
Char.SetCoordinatesNoOffset($scplayer, -2037.886, 178.9478, 27.8359)
Char.SetHeading($scplayer, 270.0)

:SCRASH3_18014
if 
  not Char.IsDead(37@)
goto_if_false @SCRASH3_18051
if 
  not Char.IsInAnyCar(37@)
goto_if_false @SCRASH3_18051
Char.Delete(37@)

:SCRASH3_18051
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:SCRASH3_18074
if 
  Camera.GetFadingStatus
goto_if_false @SCRASH3_18098
wait 0
goto @SCRASH3_18074

:SCRASH3_18098
return 

:SCRASH3_18100
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
$valet_mission_terminate = 1
$valet_unlocked = 0
return 

:SCRASH3_18132
Stat.SetInt(StatId.PassedZero1, 1)
$valet_unlocked = 1
$valet_oddjob_opened = 1
Text.PrintWithNumberBig('M_PASSD', 0, 5000, TextStyle.Middle)
Stat.SetInt(StatId.PassedScrash1, 1)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.PlayerMadeProgress(1)
$flag_scrash_mission_counter += 1
$flag_player_got_valet_uniform = 1
Stat.RegisterMissionPassed('SCRA_1')
Blip.Remove($garage_contact_blip)
$garage_contact_blip = Blip.AddSpriteForContactPoint($garageX, $garageY, $garageZ, RadarSprite.CJ)
Blip.Remove($scrash_contact_blip)
return 

:SCRASH3_18244
Game.SetScriptLimitToGangSize(99)
$playing_scrash1 = 0
$freeze_creating_drop_off_cars = 0
$force_valet_on_mission = 0
Game.SetWantedMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Path.SwitchRoadsOn(2793.814, -1987.935, 15.3045, 2754.324, -1900.369, 9.8752)
Hud.ClearTimer($portacabin_timer)
Blip.Remove(59@)
Blip.Remove(60@)
Blip.Remove(57@)
Blip.Remove(61@)
Blip.Remove(62@)
Blip.Remove(63@)
Blip.Remove(64@)
World.SetUsesCollisionOfClosestObjectOfType(-1741.792, 939.731, 23.8906, 2.5, #LAMPPOST3, True)
CarGenerator.DontSuppressCarModel(551)
Path.SwitchPedRoadsBackToOriginal(-1729.549, 942.886, 40.3585, -1742.773, 937.7814, 10.1928)
Path.SwitchPedRoadsBackToOriginal(-1768.524, 938.887, 40.7496, -1780.765, 943.4574, 10.0929)
Streaming.MarkModelAsNoLongerNeeded(510)
Streaming.MarkModelAsNoLongerNeeded(429)
Streaming.MarkModelAsNoLongerNeeded(415)
Streaming.MarkModelAsNoLongerNeeded(551)
Streaming.MarkModelAsNoLongerNeeded(240)
Streaming.MarkModelAsNoLongerNeeded(252)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.RemoveCarRecording(155)
Streaming.MarkModelAsNoLongerNeeded(597)
Streaming.MarkModelAsNoLongerNeeded(240)
Streaming.MarkModelAsNoLongerNeeded(281)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.RemoveAnimation("POLICE")
Streaming.RemoveAnimation("MISC")
Streaming.RemoveCarRecording(165)
Streaming.RemoveCarRecording(166)
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @SCRASH3_18577
Car.SetProofs($sc3_missioncar, False, False, False, False, False)

:SCRASH3_18577
$timer_mobile_start = Clock.GetGameTimer()
$last_player_x = 0
$onmission = 0
$freeze_creating_drop_off_cars = 0
$sc3_missioncar_alive = 0
$10922 = 0
$stored_shop_time = 0
Mission.Finish
return 

//-------------Mission 52---------------
// Originally: Snail Trail

:SCRASH2
script_name 'SCRASH2'
$cunt_y = 0
gosub @SCRASH2_54
if 
  has_deatharrest_been_executed 
goto_if_false @SCRASH2_45
gosub @SCRASH2_20955

:SCRASH2_45
gosub @SCRASH2_21293
terminate_this_script 

:SCRASH2_54
Stat.RegisterMissionGiven
$onmission = 1
75@ = 0
76@ = 0
77@ = 0
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
45@ = 0
46@ = 0
47@ = 0
TIMERA = 0
TIMERB = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
144@ = 0
145@ = 0
146@ = 0
149@ = 0
153@ = 0
155@ = 1
161@ = 0
164@ = 0
165@ = 0
if 
  34@ == -99
goto_if_false @SCRASH2_605
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
81@ = Train.Create(11, 0.0, 0.0, 0.0, False)
87@ = Car.Create(420, 0.0, 0.0, 0.0)
89@ = Car.Create(468, 0.0, 0.0, 0.0)
48@ = 0

:SCRASH2_404
84@(48@,3i) = Train.Create(10, 0.0, 0.0, 0.0, False)
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_404
78@ = Char.Create(PedType.CivMale, 147, 0.0, 0.0, 0.0)
79@ = Char.Create(PedType.CivMale, 18, 0.0, 0.0, 0.0)
80@ = Char.Create(PedType.CivMale, 46, 0.0, 0.0, 0.0)
95@ = Pickup.CreateWithAmmo(358, PickupType.Once, 0, 0.0, 0.0, 0.0)
90@ = Blip.AddForCoord(0.0, 0.0, 0.0)
91@ = Blip.AddForCar(81@)
92@ = Blip.AddForChar(78@)
93@ = Blip.AddForChar(80@)
94@ = Blip.AddForPickup(95@)

:SCRASH2_605
Text.LoadMissionText('SCRASH2')
gosub @SCRASH2_20312
96@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
97@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
gosub @SCRASH2_20489
131@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Sniper)
155@ = 1

:SCRASH2_661
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SCRASH2_694
36@ = 1
goto @SCRASH2_1017

:SCRASH2_694
gosub @SCRASH2_18834
gosub @SCRASH2_19245
if or
  38@ == 1
  39@ == 1
goto_if_false @SCRASH2_740
goto @SCRASH2_1017

:SCRASH2_740
gosub @SCRASH2_20209
gosub @SCRASH2_20243
if 
  Char.IsDead($scplayer)
goto_if_false @SCRASH2_784
37@ = 1
goto @SCRASH2_1017

:SCRASH2_784
if 
  34@ == 0
goto_if_false @SCRASH2_842
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:SCRASH2_842
if 
  34@ == 1
goto_if_false @SCRASH2_867
gosub @SCRASH2_1165

:SCRASH2_867
if 
  34@ == 2
goto_if_false @SCRASH2_892
gosub @SCRASH2_1286

:SCRASH2_892
if 
  34@ == 3
goto_if_false @SCRASH2_917
gosub @SCRASH2_2139

:SCRASH2_917
if 
  34@ == 4
goto_if_false @SCRASH2_942
gosub @SCRASH2_3032

:SCRASH2_942
if 
  34@ == 5
goto_if_false @SCRASH2_967
gosub @SCRASH2_5855

:SCRASH2_967
if 
  34@ == 6
goto_if_false @SCRASH2_992
gosub @SCRASH2_6907

:SCRASH2_992
if 
  34@ == 7
goto_if_false @SCRASH2_1017
36@ = 1

:SCRASH2_1017
if 
  38@ == 0
goto_if_false @SCRASH2_1117
if 
  37@ == 0
goto_if_false @SCRASH2_1101
if 
  36@ == 0
goto_if_false @SCRASH2_1085
goto @SCRASH2_661
goto @SCRASH2_1094

:SCRASH2_1085
gosub @SCRASH2_21206
return 

:SCRASH2_1094
goto @SCRASH2_1110

:SCRASH2_1101
gosub @SCRASH2_20955
return 

:SCRASH2_1110
goto @SCRASH2_1119

:SCRASH2_1117
return 

:SCRASH2_1119
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:SCRASH2_1165
if 
  35@ == 0
goto_if_false @SCRASH2_1213
gosub @SCRASH2_10051
Text.PrintNow('SCR2_21', 7000, 1)
35@ += 1

:SCRASH2_1213
if 
  35@ == 1
goto_if_false @SCRASH2_1259
if 
  Pickup.HasBeenCollected(95@)
goto_if_false @SCRASH2_1259
Blip.Remove(94@)
35@ = 99

:SCRASH2_1259
if 
  35@ == 99
goto_if_false @SCRASH2_1284
gosub @SCRASH2_20282

:SCRASH2_1284
return 

:SCRASH2_1286
if and
  35@ > 0
  Char.IsDead(78@)
goto_if_false @SCRASH2_1318
37@ = 1
return 

:SCRASH2_1318
if and
  35@ > 1
  Car.IsDead(81@)
goto_if_false @SCRASH2_1350
37@ = 1
return 

:SCRASH2_1350
if 
  35@ == 0
goto_if_false @SCRASH2_1465
gosub @SCRASH2_10187
132@ = -1952.791
133@ = 136.5608
134@ = 25.2734
90@ = Blip.AddForCoord(132@, 133@, 134@)
Blip.ChangeDisplay(90@, BlipDisplay.BlipOnly)
Text.PrintNow('SCR2_00', 8000, 1)
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 6000
35@ += 1

:SCRASH2_1465
if 
  35@ == 1
goto_if_false @SCRASH2_1552
if 
  is_int_lvar_greater_than_int_lvar 46@ > 103@
goto_if_false @SCRASH2_1552
gosub @SCRASH2_10112
Train.SetSpeed(81@, 20.0)
Train.SetCruiseSpeed(81@, 20.0)
Text.Print('SCR2_01', 10000, 1)
35@ += 1

:SCRASH2_1552
if 
  35@ == 2
goto_if_false @SCRASH2_1635
if 
  Car.Locate2D(81@, -1944.545, 130.8166, 5.0, 5.0, False)
goto_if_false @SCRASH2_1635
Train.SetSpeed(81@, 4.0)
Train.SetCruiseSpeed(81@, 0.0)
35@ += 1

:SCRASH2_1635
if 
  35@ == 3
goto_if_false @SCRASH2_1717
if 
  Car.IsStopped(81@)
goto_if_false @SCRASH2_1717
82@ = Train.GetCarriage(81@, 1)
Task.EnterCarAsPassenger(78@, 82@, 500, -1)
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 60000
35@ += 1

:SCRASH2_1717
if 
  35@ == 4
goto_if_false @SCRASH2_1938
64@ = -1978.101
65@ = 78.224
67@ = -1922.002
68@ = 203.4028
if 
  Char.IsInArea2D($scplayer, 64@, 65@, 67@, 68@, False)
goto_if_false @SCRASH2_1877
Car.LockDoors(81@, CarLock.LockoutPlayerOnly)
Train.SetCruiseSpeed(81@, 40.0)
Blip.Remove(90@)
91@ = Blip.AddForCar(81@)
Char.RemoveElegantly(78@)
167@ = 0
Text.PrintNow('SCR2_02', 10000, 1)
35@ = 99
goto @SCRASH2_1938

:SCRASH2_1877
if 
  is_int_lvar_greater_than_int_lvar 46@ > 103@
goto_if_false @SCRASH2_1938
Car.LockDoors(81@, CarLock.LockoutPlayerOnly)
Train.SetCruiseSpeed(81@, 5.0)
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 60000
35@ += 1

:SCRASH2_1938
if 
  35@ == 5
goto_if_false @SCRASH2_2112
64@ = -1978.101
65@ = 78.224
67@ = -1922.002
68@ = 203.4028
if 
  Char.IsInArea2D($scplayer, 64@, 65@, 67@, 68@, False)
goto_if_false @SCRASH2_2079
Blip.Remove(90@)
91@ = Blip.AddForCar(81@)
Text.PrintNow('SCR2_02', 10000, 1)
Train.SetCruiseSpeed(81@, 10.0)
35@ = 99
goto @SCRASH2_2112

:SCRASH2_2079
if 
  is_int_lvar_greater_than_int_lvar 46@ > 103@
goto_if_false @SCRASH2_2112
37@ = 1
45@ = 1

:SCRASH2_2112
if 
  35@ == 99
goto_if_false @SCRASH2_2137
gosub @SCRASH2_20282

:SCRASH2_2137
return 

:SCRASH2_2139
if 
  Car.IsDead(81@)
goto_if_false @SCRASH2_2164
37@ = 1
return 

:SCRASH2_2164
if 
  35@ == 0
goto_if_false @SCRASH2_2314
119@ = 0
120@ = 0
121@ = 0
122@ = 0
138@ = 0
139@ = 0
140@ = 0
132@ = 833.7101
133@ = -1383.643
134@ = -2.6352
48@ = 0

:SCRASH2_2268
123@(48@,3i) = -1
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_2268
Game.SetWantedMultiplier(0.3)
35@ += 1

:SCRASH2_2314
if 
  35@ == 1
goto_if_false @SCRASH2_2432
if 
  Car.Locate2D(81@, 132@, 133@, 5.0, 5.0, False)
goto_if_false @SCRASH2_2432
Train.SetSpeed(81@, 16.0)
Train.SetCruiseSpeed(81@, 0.0)
Text.PrintNow('SCR2_03', 11000, 1)
set_lvar_int_to_lvar_int 111@ = 46@
111@ += 10000
138@ = 1
35@ += 1

:SCRASH2_2432
if 
  35@ == 2
goto_if_false @SCRASH2_2515
if 
  is_int_lvar_greater_than_int_lvar 46@ > 111@
goto_if_false @SCRASH2_2515
gosub @SCRASH2_18816
Text.PrintNow('SCR2_09', 9000, 1)
set_lvar_int_to_lvar_int 111@ = 46@
111@ += 8000
35@ += 1

:SCRASH2_2515
if 
  35@ == 3
goto_if_false @SCRASH2_2559
if 
  is_int_lvar_greater_than_int_lvar 46@ > 111@
goto_if_false @SCRASH2_2559
35@ += 1

:SCRASH2_2559
if 
  35@ == 4
goto_if_false @SCRASH2_2630
if 
  Car.IsStopped(81@)
goto_if_false @SCRASH2_2630
140@ = 1
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 120000
Blip.Remove(91@)
35@ += 1

:SCRASH2_2630
if 
  35@ == 5
goto_if_false @SCRASH2_2673
if 
  139@ == 1
goto_if_false @SCRASH2_2673
35@ = 99

:SCRASH2_2673
gosub @SCRASH2_10288
gosub @SCRASH2_10454
gosub @SCRASH2_10613
gosub @SCRASH2_10745
gosub @SCRASH2_10963
gosub @SCRASH2_11038
if and
  139@ == 0
  140@ == 1
goto_if_false @SCRASH2_2766
if 
  is_int_lvar_greater_than_int_lvar 46@ > 103@
goto_if_false @SCRASH2_2766
139@ = 1

:SCRASH2_2766
if and
  139@ == 0
  140@ == 1
goto_if_false @SCRASH2_2817
if 
  300 > 121@
goto_if_false @SCRASH2_2817
139@ = 1

:SCRASH2_2817
if 
  161@ == 1
goto_if_false @SCRASH2_3005
if 
  not Char.IsInZone($scplayer, 'SF')
goto_if_false @SCRASH2_3005
if 
  Car.IsDead(89@)
goto_if_false @SCRASH2_2883
161@ = 0

:SCRASH2_2883
if 
  2800 > 121@
goto_if_false @SCRASH2_3005
57@, 58@, 59@ = Char.GetCoordinates($scplayer)
60@, 61@, 62@ = Car.GetCoordinates(89@)
72@ = Math.GetDistanceBetweenCoords3D(57@, 58@, 59@, 60@, 61@, 62@)
if 
  100.0 > 72@
goto_if_false @SCRASH2_2988
161@ = 0
goto @SCRASH2_3005

:SCRASH2_2988
161@ = 0
Car.MarkAsNoLongerNeeded(89@)
Streaming.MarkModelAsNoLongerNeeded(468)

:SCRASH2_3005
if 
  35@ == 99
goto_if_false @SCRASH2_3030
gosub @SCRASH2_20282

:SCRASH2_3030
return 

:SCRASH2_3032
if 
  35@ == 0
goto_if_false @SCRASH2_3284
Text.Print('SCR2_04', 5000, 1)
gosub @SCRASH2_15982
gosub @SCRASH2_12265
92@ = Blip.AddForChar(78@)
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 10000
109@ = 0
118@ = 0
143@ = 0
142@ = 0
141@ = 0
154@ = 0
157@ = 0
160@ = 0
163@ = 0
Path.SwitchRoadsOff(789.595, -1387.97, 11.5469, 807.2843, -1334.546, 13.725)
Path.SwitchRoadsOff(804.9978, -1414.032, 11.3801, 908.0844, -1386.618, 13.5524)
Path.SwitchRoadsOff(802.1913, -1335.066, 11.1828, 911.4662, -1313.045, 13.7469)
101@ = 0
102@ = 0
35@ += 1

:SCRASH2_3284
if 
  167@ == 1
goto_if_false @SCRASH2_3385
if 
  Char.IsDead(78@)
goto_if_false @SCRASH2_3334
37@ = 1
45@ = 2
return 

:SCRASH2_3334
if 
  Char.HasBeenDamagedByChar(78@, $scplayer)
goto_if_false @SCRASH2_3385
37@ = 1
45@ = 7
Task.SmartFleeChar(78@, $scplayer, 9999.0, 10000)
return 

:SCRASH2_3385
if 
  156@ == 1
goto_if_false @SCRASH2_3438
if 
  is_int_lvar_greater_than_int_lvar 46@ > 118@
goto_if_false @SCRASH2_3436
37@ = 1
45@ = 7

:SCRASH2_3436
return 

:SCRASH2_3438
if 
  157@ == 1
goto_if_false @SCRASH2_3491
if 
  is_int_lvar_greater_than_int_lvar 46@ > 118@
goto_if_false @SCRASH2_3489
37@ = 1
45@ = 7

:SCRASH2_3489
return 

:SCRASH2_3491
if and
  168@ == 1
  141@ == 1
goto_if_false @SCRASH2_3830
if 
  not Car.IsDead(87@)
goto_if_false @SCRASH2_3773
if 
  Char.IsDead(79@)
goto_if_false @SCRASH2_3555
157@ = 1

:SCRASH2_3555
if 
  not Char.IsInCar(79@, 87@)
goto_if_false @SCRASH2_3581
157@ = 1

:SCRASH2_3581
if 
  Car.HasBeenDamagedByChar(87@, $scplayer)
goto_if_false @SCRASH2_3672
73@ = 1
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SCRASH2_3664
70@ = Char.GetSpeed($scplayer)
if 
  13.0 > 70@
goto_if_false @SCRASH2_3664
73@ = 0
Car.ClearLastDamageEntity(87@)

:SCRASH2_3664
set_lvar_int_to_lvar_int 157@ = 73@

:SCRASH2_3672
if 
  Char.IsInCar($scplayer, 87@)
goto_if_false @SCRASH2_3698
157@ = 1

:SCRASH2_3698
if 
  157@ == 1
goto_if_false @SCRASH2_3766
if 
  not Char.IsInAnyCar(78@)
goto_if_false @SCRASH2_3748
Task.SmartFleeChar(78@, $scplayer, 9999.0, 10000)

:SCRASH2_3748
set_lvar_int_to_lvar_int 118@ = 46@
118@ += 1000
return 

:SCRASH2_3766
goto @SCRASH2_3830

:SCRASH2_3773
157@ = 1
if 
  not Char.IsInAnyCar(78@)
goto_if_false @SCRASH2_3812
Task.SmartFleeChar(78@, $scplayer, 9999.0, 10000)

:SCRASH2_3812
set_lvar_int_to_lvar_int 118@ = 46@
118@ += 1000
return 

:SCRASH2_3830
if and
  168@ == 1
  141@ == 0
goto_if_false @SCRASH2_4066
if 
  not Car.IsDead(87@)
goto_if_false @SCRASH2_4035
73@ = 0
if 
  Char.IsDead(79@)
goto_if_false @SCRASH2_3901
73@ = 1

:SCRASH2_3901
if 
  not Char.IsInCar(79@, 87@)
goto_if_false @SCRASH2_3927
73@ = 1

:SCRASH2_3927
if 
  Car.HasBeenDamagedByChar(87@, $scplayer)
goto_if_false @SCRASH2_3953
73@ = 1

:SCRASH2_3953
if 
  Char.IsInCar($scplayer, 87@)
goto_if_false @SCRASH2_3979
73@ = 1

:SCRASH2_3979
if 
  73@ == 1
goto_if_false @SCRASH2_4028
Car.MarkAsNoLongerNeeded(87@)
Char.MarkAsNoLongerNeeded(79@)
168@ = 0
158@ = 0
gosub @SCRASH2_12377

:SCRASH2_4028
goto @SCRASH2_4066

:SCRASH2_4035
Car.MarkAsNoLongerNeeded(87@)
Char.MarkAsNoLongerNeeded(79@)
168@ = 0
158@ = 0
gosub @SCRASH2_12377

:SCRASH2_4066
if 
  35@ == 1
goto_if_false @SCRASH2_4115
Task.GoStraightToCoord(78@, 833.4493, -1374.261, -1.5078, MoveState.Walk, -1)
35@ += 1

:SCRASH2_4115
if 
  35@ == 2
goto_if_false @SCRASH2_4221
40@ = Char.GetScriptTaskStatus(78@, 1491)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_4221
Task.PlayAnim(78@, "ROADCROSS", "PED", 4.0, False, False, False, False, -1)
set_lvar_int_to_lvar_int 104@ = 46@
104@ += 250
35@ += 1

:SCRASH2_4221
if 
  35@ == 3
goto_if_false @SCRASH2_4292
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_4292
if 
  not Char.IsPlayingAnim(78@, "ROADCROSS")
goto_if_false @SCRASH2_4292
35@ += 1

:SCRASH2_4292
if 
  35@ == 4
goto_if_false @SCRASH2_4342
gosub @SCRASH2_12646
if 
  101@ == 7
goto_if_false @SCRASH2_4342
35@ += 1

:SCRASH2_4342
if 
  35@ == 5
goto_if_false @SCRASH2_4419
Task.PlayAnim(78@, "ROADCROSS", "PED", 4.0, False, False, False, False, -1)
set_lvar_int_to_lvar_int 104@ = 46@
104@ += 250
35@ += 1

:SCRASH2_4419
if 
  35@ == 6
goto_if_false @SCRASH2_4504
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_4504
if 
  not Char.IsPlayingAnim(78@, "ROADCROSS")
goto_if_false @SCRASH2_4504
101@ = 8
102@ = 8
35@ += 1

:SCRASH2_4504
if 
  35@ == 7
goto_if_false @SCRASH2_4641
gosub @SCRASH2_12646
if 
  101@ == 10
goto_if_false @SCRASH2_4641
143@ = 1
set_lvar_int_to_lvar_int 105@ = 46@
105@ += 60000
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SCRASH2_4611
Text.PrintNow('SCR2_20', 10000, 1)
goto @SCRASH2_4627

:SCRASH2_4611
Text.PrintNow('SCR2_06', 10000, 1)

:SCRASH2_4627
163@ = 1
35@ += 1

:SCRASH2_4641
if 
  35@ == 8
goto_if_false @SCRASH2_4774
gosub @SCRASH2_12646
if 
  153@ == 0
goto_if_false @SCRASH2_4774
56@ = Sequence.Open()
Task.AchieveHeading(-1, 90.0)
Task.PlayAnim(-1, "ROADCROSS", "PED", 4.0, False, False, False, False, -1)
Sequence.Close(56@)
Char.PerformSequence(78@, 56@)
Sequence.Clear(56@)
set_lvar_int_to_lvar_int 104@ = 46@
104@ += 250
35@ += 1

:SCRASH2_4774
if 
  35@ == 9
goto_if_false @SCRASH2_4903
gosub @SCRASH2_12646
if 
  153@ == 0
goto_if_false @SCRASH2_4903
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_4903
40@ = Char.GetScriptTaskStatus(78@, -1)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_4903
if 
  141@ == 1
goto_if_false @SCRASH2_4896
35@ += 1
goto @SCRASH2_4903

:SCRASH2_4896
35@ -= 1

:SCRASH2_4903
if 
  35@ == 10
goto_if_false @SCRASH2_5046
if 
  158@ == 1
goto_if_false @SCRASH2_5015
56@ = Sequence.Open()
Task.AchieveHeading(-1, 180.0)
Task.PlayAnim(-1, "HIKER_POSE", "MISC", 4.0, False, False, False, True, -1)
Sequence.Close(56@)
Char.PerformSequence(78@, 56@)
Sequence.Clear(56@)
goto @SCRASH2_5039

:SCRASH2_5015
Task.GoStraightToCoord(78@, 821.7603, -1334.683, 12.5391, MoveState.Run, -2)

:SCRASH2_5039
35@ += 1

:SCRASH2_5046
if 
  35@ == 11
goto_if_false @SCRASH2_5375
gosub @SCRASH2_12646
if 
  153@ == 0
goto_if_false @SCRASH2_5276
73@ = 0
if and
  158@ == 1
  Car.Locate3D(87@, 803.7784, -1342.926, 12.5469, 7.0, 7.0, 2.0, False)
goto_if_false @SCRASH2_5158
73@ = 1

:SCRASH2_5158
if and
  158@ == 0
  Car.Locate3D(87@, 824.4391, -1330.707, 12.4174, 7.0, 7.0, 2.0, False)
goto_if_false @SCRASH2_5220
73@ = 1

:SCRASH2_5220
if and
  73@ == 1
  Car.IsStopped(87@)
goto_if_false @SCRASH2_5269
Task.EnterCarAsPassenger(78@, 87@, -2, 2)
154@ = 1
35@ += 1

:SCRASH2_5269
goto @SCRASH2_5375

:SCRASH2_5276
if 
  Char.IsPlayingAnim(78@, "HIKER_POSE")
goto_if_false @SCRASH2_5375
if 
  is_int_lvar_greater_than_int_lvar 46@ > 109@
goto_if_false @SCRASH2_5375
Task.PlayAnim(78@, "ROADCROSS", "PED", 4.0, False, False, False, False, 100)
set_lvar_int_to_lvar_int 109@ = 46@
109@ += 250

:SCRASH2_5375
if 
  35@ == 12
goto_if_false @SCRASH2_5451
40@ = Char.GetScriptTaskStatus(78@, 1482)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_5451
Car.SetTaxiLights(87@, False)
126@ = 0
set_lvar_int_to_lvar_int 88@ = 87@
35@ = 99

:SCRASH2_5451
if 
  170@ == 0
goto_if_false @SCRASH2_5499
Streaming.RequestModel(420)
Streaming.LoadAllModelsNow
if 
  Streaming.HasModelLoaded(420)
goto_if_false @SCRASH2_5499
170@ = 1

:SCRASH2_5499
if 
  166@ == 1
goto_if_false @SCRASH2_5571
if 
  is_int_lvar_greater_than_int_lvar 46@ > 103@
goto_if_false @SCRASH2_5571
if 
  not Car.IsDead(81@)
goto_if_false @SCRASH2_5562
Train.SetCruiseSpeed(81@, 30.0)

:SCRASH2_5562
Streaming.MarkMissionTrainsAsNoLongerNeeded
166@ = 0

:SCRASH2_5571
if and
  143@ == 1
  142@ == 0
goto_if_false @SCRASH2_5714
if 
  Char.LocateAnyMeans3D($scplayer, 812.4495, -1343.488, 12.532, 80.0, 80.0, 20.0, False)
goto_if_false @SCRASH2_5679
142@ = 1
gosub @SCRASH2_12313
gosub @SCRASH2_12377
Car.SetTaxiLights(87@, True)
goto @SCRASH2_5714

:SCRASH2_5679
if 
  is_int_lvar_greater_than_int_lvar 46@ > 105@
goto_if_false @SCRASH2_5714
37@ = 1
45@ = 3
return 

:SCRASH2_5714
if and
  141@ == 0
  168@ == 1
goto_if_false @SCRASH2_5794
if 
  Car.Locate3D(87@, 796.9285, -1374.867, 12.3949, 10.0, 10.0, 2.0, False)
goto_if_false @SCRASH2_5794
141@ = 1

:SCRASH2_5794
gosub @SCRASH2_16005
gosub @SCRASH2_16193
if 
  37@ == 1
goto_if_false @SCRASH2_5828
return 

:SCRASH2_5828
if 
  35@ == 99
goto_if_false @SCRASH2_5853
gosub @SCRASH2_20282

:SCRASH2_5853
return 

:SCRASH2_5855
if 
  35@ == 0
goto_if_false @SCRASH2_6033
132@ = 366.4698
133@ = -2030.643
134@ = 6.6582
128@ = 0
129@ = 0
127@ = 0
gosub @SCRASH2_13627
Car.SetCanGoAgainstTraffic(87@, False)
set_lvar_int_to_lvar_int 116@ = 46@
116@ += 3000
152@ = 1
149@ = 0
150@ = 0
159@ = 0
160@ = 0
StuckCarCheck.AddWithWarp(87@, 2.0, 30000, True, True, True, 20)
Text.PrintNow('SCR2_07', 5000, 1)
35@ += 1

:SCRASH2_6033
if 
  Char.IsDead(78@)
goto_if_false @SCRASH2_6065
37@ = 1
45@ = 2
return 

:SCRASH2_6065
if 
  Char.HasBeenDamagedByChar(78@, $scplayer)
goto_if_false @SCRASH2_6100
37@ = 1
45@ = 7
return 

:SCRASH2_6100
if 
  157@ == 1
goto_if_false @SCRASH2_6153
if 
  is_int_lvar_greater_than_int_lvar 46@ > 118@
goto_if_false @SCRASH2_6151
37@ = 1
45@ = 7

:SCRASH2_6151
return 

:SCRASH2_6153
if 
  not Car.IsDead(87@)
goto_if_false @SCRASH2_6431
if 
  Char.IsDead(79@)
goto_if_false @SCRASH2_6192
157@ = 1

:SCRASH2_6192
if 
  not Char.IsInCar(79@, 87@)
goto_if_false @SCRASH2_6218
157@ = 1

:SCRASH2_6218
if 
  Car.HasBeenDamagedByChar(87@, $scplayer)
goto_if_false @SCRASH2_6309
73@ = 1
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SCRASH2_6301
70@ = Char.GetSpeed($scplayer)
if 
  13.0 > 70@
goto_if_false @SCRASH2_6301
73@ = 0
Car.ClearLastDamageEntity(87@)

:SCRASH2_6301
set_lvar_int_to_lvar_int 157@ = 73@

:SCRASH2_6309
if 
  Char.IsInCar($scplayer, 87@)
goto_if_false @SCRASH2_6335
157@ = 1

:SCRASH2_6335
if 
  157@ == 1
goto_if_false @SCRASH2_6424
if 
  Char.IsInAnyCar(78@)
goto_if_false @SCRASH2_6390
37@ = 1
45@ = 7
goto @SCRASH2_6422

:SCRASH2_6390
set_lvar_int_to_lvar_int 118@ = 46@
118@ += 1000
Task.SmartFleeChar(78@, $scplayer, 9999.0, 10000)

:SCRASH2_6422
return 

:SCRASH2_6424
goto @SCRASH2_6472

:SCRASH2_6431
157@ = 1
set_lvar_int_to_lvar_int 118@ = 46@
118@ += 1000
Task.SmartFleeChar(78@, $scplayer, 9999.0, 10000)
return 

:SCRASH2_6472
if 
  35@ == 1
goto_if_false @SCRASH2_6569
if and
  100@ <> 1
  100@ <> 3
goto_if_false @SCRASH2_6569
if 
  Char.LocateAnyMeans3D(78@, 132@, 133@, 134@, 4.0, 4.0, 4.0, False)
goto_if_false @SCRASH2_6569
Hud.ClearCounter($cunt_y)
35@ = 99

:SCRASH2_6569
if 
  149@ == 0
goto_if_false @SCRASH2_6656
if 
  Char.LocateAnyMeans3D(78@, 369.3609, -1671.889, 31.811, 14.0, 6.0, 4.0, False)
goto_if_false @SCRASH2_6656
149@ = 1
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)

:SCRASH2_6656
if 
  150@ == 0
goto_if_false @SCRASH2_6736
if 
  Char.LocateAnyMeans3D($scplayer, 369.3609, -1671.889, 31.811, 14.0, 4.0, 4.0, False)
goto_if_false @SCRASH2_6729
150@ = 1

:SCRASH2_6729
goto @SCRASH2_6791

:SCRASH2_6736
if 
  Char.LocateAnyMeans3D($scplayer, 370.2572, -1656.79, 31.7201, 14.0, 4.0, 4.0, False)
goto_if_false @SCRASH2_6791
150@ = 0

:SCRASH2_6791
gosub @SCRASH2_17369
if 
  37@ == 1
goto_if_false @SCRASH2_6818
return 

:SCRASH2_6818
if and
  151@ == 0
  149@ == 1
  150@ == 1
goto_if_false @SCRASH2_6873
151@ = 1
Text.PrintNow('SCR2_18', 10000, 1)

:SCRASH2_6873
gosub @SCRASH2_15210
if 
  35@ == 99
goto_if_false @SCRASH2_6905
gosub @SCRASH2_20282

:SCRASH2_6905
return 

:SCRASH2_6907
if 
  Char.IsDead(78@)
goto_if_false @SCRASH2_6935
144@ = 1
Blip.Remove(92@)

:SCRASH2_6935
if 
  169@ == 1
goto_if_false @SCRASH2_6981
if 
  Char.IsDead(80@)
goto_if_false @SCRASH2_6981
145@ = 1
Blip.Remove(93@)

:SCRASH2_6981
if and
  144@ == 1
  145@ == 1
goto_if_false @SCRASH2_7013
35@ = 99

:SCRASH2_7013
if 
  35@ == 0
goto_if_false @SCRASH2_7345
gosub @SCRASH2_15427
93@ = Blip.AddForChar(80@)
56@ = Sequence.Open()
Task.GoStraightToCoord(-1, 359.4136, -2036.943, 6.836, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, 362.2674, -2035.844, 6.836, MoveState.Walk, -2)
Task.AchieveHeading(-1, 270.0)
Sequence.Close(56@)
Char.PerformSequence(80@, 56@)
Sequence.Clear(56@)
56@ = Sequence.Open()
Task.GoStraightToCoord(-1, 363.1874, -2035.844, 6.836, MoveState.Walk, -2)
Task.AchieveHeading(-1, 90.0)
Sequence.Close(56@)
Char.PerformSequence(78@, 56@)
Sequence.Clear(56@)
set_lvar_int_to_lvar_int 106@ = 46@
106@ += 180000
146@ = 0
147@ = 0
98@ = 0
99@ = 0
107@ = 0
148@ = 0
Text.PrintNow('SCR2_19', 10000, 1)
if 
  $lf2_skip_allowed == 0
goto_if_false @SCRASH2_7317
164@ = 0
165@ = 0
set_lvar_int_to_lvar_int 112@ = 46@
112@ += 10000
$lf2_skip_allowed = 1
goto @SCRASH2_7338

:SCRASH2_7317
164@ = 1
165@ = 1
112@ = 0

:SCRASH2_7338
35@ += 1

:SCRASH2_7345
if 
  35@ == 1
goto_if_false @SCRASH2_7447
if and
  not Char.IsDead(78@)
  not Char.IsDead(80@)
goto_if_false @SCRASH2_7447
40@ = Char.GetScriptTaskStatus(78@, -1)
if 
  is_int_lvar_equal_to_constant 40@ == 1
goto_if_false @SCRASH2_7447
40@ = Char.GetScriptTaskStatus(80@, -1)
if 
  is_int_lvar_equal_to_constant 40@ == 1
goto_if_false @SCRASH2_7447
35@ += 1

:SCRASH2_7447
if 
  35@ == 2
goto_if_false @SCRASH2_7625
if and
  not Char.IsDead(78@)
  not Char.IsDead(80@)
goto_if_false @SCRASH2_7625
40@ = Char.GetScriptTaskStatus(78@, -1)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_7625
40@ = Char.GetScriptTaskStatus(80@, -1)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_7625
Task.CharSlideToCoord(80@, 362.2674, -2035.844, 6.836, 270.0, 4.0)
Task.CharSlideToCoord(78@, 363.1874, -2035.844, 6.836, 90.0, 4.0)
set_lvar_int_to_lvar_int 104@ = 46@
104@ += 250
35@ += 1

:SCRASH2_7625
if 
  35@ == 3
goto_if_false @SCRASH2_7814
if and
  not Char.IsDead(78@)
  not Char.IsDead(80@)
goto_if_false @SCRASH2_7814
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_7814
Task.PlayAnim(78@, "PRTIAL_HNDSHK_BIZ_01", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim(80@, "PRTIAL_HNDSHK_BIZ_01", "GANGS", 4.0, False, False, False, False, -1)
set_lvar_int_to_lvar_int 104@ = 46@
104@ += 250
Char.MarkAsNoLongerNeeded(79@)
Car.MarkAsNoLongerNeeded(87@)
35@ += 1

:SCRASH2_7814
if 
  35@ == 4
goto_if_false @SCRASH2_7944
if and
  not Char.IsDead(78@)
  not Char.IsDead(80@)
goto_if_false @SCRASH2_7944
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_7944
if and
  not Char.IsPlayingAnim(78@, "PRTIAL_HNDSHK_BIZ_01")
  not Char.IsPlayingAnim(80@, "PRTIAL_HNDSHK_BIZ_01")
goto_if_false @SCRASH2_7944
35@ += 1

:SCRASH2_7944
if 
  35@ == 5
goto_if_false @SCRASH2_8053
if and
  not Char.IsDead(78@)
  not Char.IsDead(80@)
goto_if_false @SCRASH2_8053
Task.PlayAnim(78@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
50@ = Math.RandomIntInRange(2000, 5000)
set_lvar_int_to_lvar_int 104@ = 46@
add_int_lvar_to_int_lvar 104@ += 50@
35@ += 1

:SCRASH2_8053
if 
  35@ == 6
goto_if_false @SCRASH2_8123
if and
  not Char.IsDead(78@)
  not Char.IsDead(80@)
goto_if_false @SCRASH2_8123
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_8123
Char.ClearTasks(78@)
35@ += 1

:SCRASH2_8123
if 
  35@ == 7
goto_if_false @SCRASH2_8232
if and
  not Char.IsDead(78@)
  not Char.IsDead(80@)
goto_if_false @SCRASH2_8232
Task.PlayAnim(80@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
50@ = Math.RandomIntInRange(5000, 10000)
set_lvar_int_to_lvar_int 104@ = 46@
add_int_lvar_to_int_lvar 104@ += 50@
35@ += 1

:SCRASH2_8232
if 
  35@ == 8
goto_if_false @SCRASH2_8302
if and
  not Char.IsDead(78@)
  not Char.IsDead(80@)
goto_if_false @SCRASH2_8302
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_8302
Char.ClearTasks(80@)
35@ = 5

:SCRASH2_8302
if 
  35@ == 20
goto_if_false @SCRASH2_8559
if 
  not Char.IsDead(80@)
goto_if_false @SCRASH2_8428
56@ = Sequence.Open()
Task.GoStraightToCoord(-1, 361.2376, -2047.841, 6.836, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, 354.2802, -2049.696, 6.836, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, 354.8605, -2057.588, 6.836, MoveState.Walk, -2)
Sequence.Close(56@)
Char.PerformSequence(80@, 56@)
Sequence.Clear(56@)

:SCRASH2_8428
if 
  not Char.IsDead(78@)
goto_if_false @SCRASH2_8536
56@ = Sequence.Open()
Task.GoStraightToCoord(-1, 361.2376, -2047.841, 6.836, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, 354.2802, -2049.696, 6.836, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, 354.863, -2060.05, 6.836, MoveState.Walk, -2)
Sequence.Close(56@)
Char.PerformSequence(78@, 56@)
Sequence.Clear(56@)

:SCRASH2_8536
Text.PrintNow('SCR2_05', 10000, 1)
35@ += 1

:SCRASH2_8559
if 
  35@ == 21
goto_if_false @SCRASH2_8661
if and
  not Char.IsDead(78@)
  not Char.IsDead(80@)
goto_if_false @SCRASH2_8661
40@ = Char.GetScriptTaskStatus(78@, -1)
if 
  is_int_lvar_equal_to_constant 40@ == 1
goto_if_false @SCRASH2_8661
40@ = Char.GetScriptTaskStatus(80@, -1)
if 
  is_int_lvar_equal_to_constant 40@ == 1
goto_if_false @SCRASH2_8661
35@ += 1

:SCRASH2_8661
if 
  35@ == 22
goto_if_false @SCRASH2_8782
if and
  not Char.IsDead(78@)
  not Char.IsDead(80@)
goto_if_false @SCRASH2_8782
40@ = Char.GetScriptTaskStatus(78@, -1)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_8782
40@ = Char.GetScriptTaskStatus(80@, -1)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_8782
37@ = 1
45@ = 4
Char.RemoveElegantly(78@)
Char.RemoveElegantly(80@)
return 

:SCRASH2_8782
if 
  35@ == 30
goto_if_false @SCRASH2_8873
98@ = 3
99@ = 3
if 
  not Char.IsDead(78@)
goto_if_false @SCRASH2_8835
Char.ClearTasks(78@)

:SCRASH2_8835
if 
  not Char.IsDead(80@)
goto_if_false @SCRASH2_8856
Char.ClearTasks(80@)

:SCRASH2_8856
Char.MarkAsNoLongerNeeded(79@)
Car.MarkAsNoLongerNeeded(87@)
35@ += 1

:SCRASH2_8873
if 
  35@ == 31
goto_if_false @SCRASH2_8905
gosub @SCRASH2_15527
gosub @SCRASH2_15749

:SCRASH2_8905
if 
  146@ == 0
goto_if_false @SCRASH2_9434
if 
  144@ == 1
goto_if_false @SCRASH2_8964
146@ = 1
Text.PrintNow('SCR2_10', 10000, 1)

:SCRASH2_8964
if 
  146@ == 0
goto_if_false @SCRASH2_9023
if 
  145@ == 1
goto_if_false @SCRASH2_9023
146@ = 1
Text.PrintNow('SCR2_11', 10000, 1)

:SCRASH2_9023
if 
  146@ == 0
goto_if_false @SCRASH2_9083
if 
  Char.HasBeenDamagedByChar(78@, $scplayer)
goto_if_false @SCRASH2_9083
146@ = 1
Text.PrintNow('SCR2_14', 10000, 1)

:SCRASH2_9083
if 
  146@ == 0
goto_if_false @SCRASH2_9143
if 
  Char.HasBeenDamagedByChar(80@, $scplayer)
goto_if_false @SCRASH2_9143
146@ = 1
Text.PrintNow('SCR2_15', 10000, 1)

:SCRASH2_9143
if and
  146@ == 0
  148@ == 0
goto_if_false @SCRASH2_9229
if 
  Char.IsShootingInArea($scplayer, 349.8409, -2088.798, 409.7505, -1869.887, False)
goto_if_false @SCRASH2_9229
148@ = 1
set_lvar_int_to_lvar_int 107@ = 46@
107@ += 1000

:SCRASH2_9229
if and
  146@ == 0
  148@ == 1
goto_if_false @SCRASH2_9296
if 
  is_int_lvar_greater_than_int_lvar 46@ > 107@
goto_if_false @SCRASH2_9296
146@ = 1
Text.PrintNow('SCR2_12', 10000, 1)

:SCRASH2_9296
if 
  146@ == 0
goto_if_false @SCRASH2_9409
57@, 58@, 59@ = Char.GetCoordinates(80@)
60@, 61@, 62@ = Char.GetCoordinates($scplayer)
70@ = Math.GetDistanceBetweenCoords3D(57@, 58@, 59@, 60@, 61@, 62@)
if 
  30.0 > 70@
goto_if_false @SCRASH2_9409
146@ = 1
Text.PrintNow('SCR2_13', 10000, 1)

:SCRASH2_9409
if 
  146@ == 1
goto_if_false @SCRASH2_9434
35@ = 30

:SCRASH2_9434
if and
  146@ == 0
  147@ == 0
goto_if_false @SCRASH2_9492
if 
  is_int_lvar_greater_than_int_lvar 46@ > 106@
goto_if_false @SCRASH2_9492
147@ = 1
35@ = 20

:SCRASH2_9492
if 
  146@ == 1
goto_if_false @SCRASH2_9798
if 
  144@ == 0
goto_if_false @SCRASH2_9654
if 
  not Char.IsInArea2D(78@, 349.8409, -2088.798, 409.7505, -1869.887, False)
goto_if_false @SCRASH2_9654
57@, 58@, 59@ = Char.GetCoordinates(78@)
60@, 61@, 62@ = Char.GetCoordinates($scplayer)
70@ = Math.GetDistanceBetweenCoords3D(57@, 58@, 59@, 60@, 61@, 62@)
if 
  70@ > 200.0
goto_if_false @SCRASH2_9654
37@ = 1
45@ = 5
return 

:SCRASH2_9654
if 
  145@ == 0
goto_if_false @SCRASH2_9798
if 
  not Char.IsInArea2D(80@, 349.8409, -2088.798, 409.7505, -1869.887, False)
goto_if_false @SCRASH2_9798
57@, 58@, 59@ = Char.GetCoordinates(80@)
60@, 61@, 62@ = Char.GetCoordinates($scplayer)
70@ = Math.GetDistanceBetweenCoords3D(57@, 58@, 59@, 60@, 61@, 62@)
if 
  70@ > 200.0
goto_if_false @SCRASH2_9798
37@ = 1
45@ = 6
return 

:SCRASH2_9798
if 
  164@ == 0
goto_if_false @SCRASH2_9869
if 
  is_int_lvar_greater_than_int_lvar 46@ > 112@
goto_if_false @SCRASH2_9869
Text.PrintHelpForever('SNIPER1')
164@ = 1
set_lvar_int_to_lvar_int 112@ = 46@
112@ += 15000

:SCRASH2_9869
if 
  164@ == 1
goto_if_false @SCRASH2_9960
if 
  165@ == 0
goto_if_false @SCRASH2_9960
if 
  is_int_lvar_greater_than_int_lvar 46@ > 112@
goto_if_false @SCRASH2_9960
Text.ClearHelp
Text.PrintHelpForever('SNIPER2')
165@ = 1
set_lvar_int_to_lvar_int 112@ = 46@
112@ += 10000

:SCRASH2_9960
if 
  165@ == 1
goto_if_false @SCRASH2_10024
if 
  112@ > 0
goto_if_false @SCRASH2_10024
if 
  is_int_lvar_greater_than_int_lvar 46@ > 112@
goto_if_false @SCRASH2_10024
Text.ClearHelp
112@ = 0

:SCRASH2_10024
if 
  35@ == 99
goto_if_false @SCRASH2_10049
gosub @SCRASH2_20282

:SCRASH2_10049
return 

:SCRASH2_10051
57@ = -2063.225
58@ = 258.3273
59@ = 35.3958
95@ = Pickup.CreateWithAmmo(358, PickupType.Once, 5, 57@, 58@, 59@)
94@ = Blip.AddForPickup(95@)
return 

:SCRASH2_10112
57@ = -1937.312
58@ = 221.1162
59@ = 23.8414
World.ClearArea(57@, 58@, 59@, 60.0, True)
81@ = Train.Create(11, 57@, 58@, 59@, False)
166@ = 1
return 

:SCRASH2_10187
57@ = -1939.52
58@ = 132.8362
59@ = 25.2734
63@ = 90.4279
World.ClearArea(57@, 58@, 59@, 1.0, True)
78@ = Char.Create(PedType.CivMale, 147, 57@, 58@, 59@)
Char.SetHeading(78@, 63@)
Char.SetIsTargetPriority(78@, True)
167@ = 1
return 

:SCRASH2_10288
if 
  138@ == 1
goto_if_false @SCRASH2_10308
return 

:SCRASH2_10308
if 
  41@ <> 5
goto_if_false @SCRASH2_10328
return 

:SCRASH2_10328
57@, 58@, 59@ = Car.GetCoordinates(81@)
60@, 61@, 62@ = Char.GetCoordinates($scplayer)
set_lvar_float_to_lvar_float 64@ = 57@
sub_float_lvar_from_float_lvar 64@ -= 60@
set_lvar_float_to_lvar_float 65@ = 58@
sub_float_lvar_from_float_lvar 65@ -= 61@
set_lvar_float_to_lvar_float 67@ = 64@
mult_float_lvar_by_float_lvar 67@ *= 64@
set_lvar_float_to_lvar_float 68@ = 65@
mult_float_lvar_by_float_lvar 68@ *= 65@
set_lvar_float_to_lvar_float 70@ = 67@
add_float_lvar_to_float_lvar 70@ += 68@
71@ = Math.Sqrt(70@)
cset_lvar_int_to_lvar_float 119@ =# 71@
return 

:SCRASH2_10454
if 
  138@ == 1
goto_if_false @SCRASH2_10481
120@ = 0
return 

:SCRASH2_10481
if 
  41@ <> 3
goto_if_false @SCRASH2_10501
return 

:SCRASH2_10501
57@, 58@, 59@ = Car.GetCoordinates(81@)
set_lvar_float_to_lvar_float 64@ = 57@
sub_float_lvar_from_float_lvar 64@ -= 132@
set_lvar_float_to_lvar_float 65@ = 58@
sub_float_lvar_from_float_lvar 65@ -= 133@
set_lvar_float_to_lvar_float 67@ = 64@
mult_float_lvar_by_float_lvar 67@ *= 64@
set_lvar_float_to_lvar_float 68@ = 65@
mult_float_lvar_by_float_lvar 68@ *= 65@
set_lvar_float_to_lvar_float 70@ = 67@
add_float_lvar_to_float_lvar 70@ += 68@
71@ = Math.Sqrt(70@)
cset_lvar_int_to_lvar_float 120@ =# 71@
return 

:SCRASH2_10613
if 
  41@ <> 1
goto_if_false @SCRASH2_10633
return 

:SCRASH2_10633
57@, 58@, 59@ = Char.GetCoordinates($scplayer)
set_lvar_float_to_lvar_float 64@ = 57@
sub_float_lvar_from_float_lvar 64@ -= 132@
set_lvar_float_to_lvar_float 65@ = 58@
sub_float_lvar_from_float_lvar 65@ -= 133@
set_lvar_float_to_lvar_float 67@ = 64@
mult_float_lvar_by_float_lvar 67@ *= 64@
set_lvar_float_to_lvar_float 68@ = 65@
mult_float_lvar_by_float_lvar 68@ *= 65@
set_lvar_float_to_lvar_float 70@ = 67@
add_float_lvar_to_float_lvar 70@ += 68@
71@ = Math.Sqrt(70@)
cset_lvar_int_to_lvar_float 121@ =# 71@
return 

:SCRASH2_10745
if 
  138@ == 1
goto_if_false @SCRASH2_10765
return 

:SCRASH2_10765
if 
  41@ <> 7
goto_if_false @SCRASH2_10785
return 

:SCRASH2_10785
70@ = 25.0
if 
  is_int_lvar_greater_or_equal_to_int_lvar 121@ >= 120@
goto_if_false @SCRASH2_10896
if 
  80 > 119@
goto_if_false @SCRASH2_10889
71@ = Car.GetSpeed(81@)
71@ += 2.0
if 
  71@ > 25.0
goto_if_false @SCRASH2_10881
71@ = 25.0

:SCRASH2_10881
Train.SetSpeed(81@, 71@)

:SCRASH2_10889
goto @SCRASH2_10953

:SCRASH2_10896
71@ = Car.GetSpeed(81@)
71@ += 2.0
if 
  71@ > 25.0
goto_if_false @SCRASH2_10945
71@ = 25.0

:SCRASH2_10945
Train.SetSpeed(81@, 71@)

:SCRASH2_10953
Train.SetCruiseSpeed(81@, 70@)
return 

:SCRASH2_10963
if 
  122@ == 0
goto_if_false @SCRASH2_11016
if 
  120@ == 0
goto_if_false @SCRASH2_11006
goto @SCRASH2_11014

:SCRASH2_11006
set_lvar_int_to_lvar_int 122@ = 120@

:SCRASH2_11014
return 

:SCRASH2_11016
if 
  5 > 120@
goto_if_false @SCRASH2_11036
return 

:SCRASH2_11036
return 

:SCRASH2_11038
73@ = 1
48@ = 0

:SCRASH2_11052
if 
  123@(48@,3i) <> -2
goto_if_false @SCRASH2_11081
73@ = 0

:SCRASH2_11081
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_11052
if 
  73@ == 1
goto_if_false @SCRASH2_11122
return 

:SCRASH2_11122
48@ = 0

:SCRASH2_11129
if 
  123@(48@,3i) == -1
goto_if_false @SCRASH2_11288

:SCRASH2_11151
123@(48@,3i) = Math.RandomIntInRange(0, 5)
73@ = 0
49@ = 0

:SCRASH2_11178
if 
  is_int_lvar_greater_than_int_lvar 48@ > 49@
goto_if_false @SCRASH2_11263
if 
  73@ == 0
goto_if_false @SCRASH2_11249
if 
  is_int_lvar_equal_to_int_lvar 123@(48@,3i) == 123@(49@,3i)
goto_if_false @SCRASH2_11249
73@ = 1

:SCRASH2_11249
49@ += 1
goto @SCRASH2_11178

:SCRASH2_11263
if 
  73@ == 1
goto_if_false @SCRASH2_11288
goto @SCRASH2_11151

:SCRASH2_11288
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_11129
48@ = 0

:SCRASH2_11316
73@ = 0
switch_start 123@(48@,3i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_11700 {caseNum1} 0 {caseLabel1} @SCRASH2_11390 {caseNum2} 1 {caseLabel2} @SCRASH2_11452 {caseNum3} 2 {caseLabel3} @SCRASH2_11514 {caseNum4} 3 {caseLabel4} @SCRASH2_11576 {caseNum5} 4 {caseLabel5} @SCRASH2_11638 {caseNum6} -1 {caseLabel6} @SCRASH2_11700 {caseNum7} -1 {caseLabel7} @SCRASH2_11700

:SCRASH2_11390
if 
  Char.LocateAnyMeans3D($scplayer, -1982.442, -598.0178, 24.7266, 8.0, 8.0, 2.0, False)
goto_if_false @SCRASH2_11445
73@ = 1

:SCRASH2_11445
goto @SCRASH2_11700

:SCRASH2_11452
if 
  Char.LocateAnyMeans3D($scplayer, -1827.173, -1332.306, 12.9453, 8.0, 8.0, 2.0, False)
goto_if_false @SCRASH2_11507
73@ = 1

:SCRASH2_11507
goto @SCRASH2_11700

:SCRASH2_11514
if 
  Char.LocateAnyMeans3D($scplayer, -946.4463, -1497.618, 89.28716, 8.0, 8.0, 2.0, False)
goto_if_false @SCRASH2_11569
73@ = 1

:SCRASH2_11569
goto @SCRASH2_11700

:SCRASH2_11576
if 
  Char.LocateAnyMeans3D($scplayer, -620.5595, -1144.573, 42.0616, 8.0, 8.0, 2.0, False)
goto_if_false @SCRASH2_11631
73@ = 1

:SCRASH2_11631
goto @SCRASH2_11700

:SCRASH2_11638
if 
  Char.LocateAnyMeans3D($scplayer, 98.3887, -1021.795, 21.2188, 8.0, 8.0, 2.0, False)
goto_if_false @SCRASH2_11693
73@ = 1

:SCRASH2_11693
goto @SCRASH2_11700

:SCRASH2_11700
if 
  73@ == 1
goto_if_false @SCRASH2_12242
50@ = Math.RandomIntInRange(10, 14)
51@ = Math.RandomIntInRange(10, 20)
cset_lvar_float_to_lvar_int 70@ =# 51@
switch_start 123@(48@,3i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_12231 {caseNum1} 0 {caseLabel1} @SCRASH2_11811 {caseNum2} 1 {caseLabel2} @SCRASH2_11895 {caseNum3} 2 {caseLabel3} @SCRASH2_11979 {caseNum4} 3 {caseLabel4} @SCRASH2_12063 {caseNum5} 4 {caseLabel5} @SCRASH2_12147 {caseNum6} -1 {caseLabel6} @SCRASH2_12231 {caseNum7} -1 {caseLabel7} @SCRASH2_12231

:SCRASH2_11811
World.ClearArea(-1875.72, -1267.059, 12.9511, 100.0, True)
84@(48@,3i) = Train.Create(50@, -1875.72, -1267.059, 12.9511, True)
Train.SetSpeed(84@(48@,3i), 70@)
Train.SetCruiseSpeed(84@(48@,3i), 70@)
goto @SCRASH2_12231

:SCRASH2_11895
World.ClearArea(-1332.721, -1514.888, 22.7265, 100.0, True)
84@(48@,3i) = Train.Create(50@, -1332.721, -1514.888, 22.7265, True)
Train.SetSpeed(84@(48@,3i), 70@)
Train.SetCruiseSpeed(84@(48@,3i), 70@)
goto @SCRASH2_12231

:SCRASH2_11979
World.ClearArea(-673.6719, -1127.875, 48.8875, 100.0, True)
84@(48@,3i) = Train.Create(50@, -673.6719, -1127.875, 48.8875, True)
Train.SetSpeed(84@(48@,3i), 70@)
Train.SetCruiseSpeed(84@(48@,3i), 70@)
goto @SCRASH2_12231

:SCRASH2_12063
World.ClearArea(-321.8627, -1191.647, 35.5265, 100.0, True)
84@(48@,3i) = Train.Create(50@, -321.8627, -1191.647, 35.5265, True)
Train.SetSpeed(84@(48@,3i), 70@)
Train.SetCruiseSpeed(84@(48@,3i), 70@)
goto @SCRASH2_12231

:SCRASH2_12147
World.ClearArea(802.302, -1362.661, -2.6302, 100.0, True)
84@(48@,3i) = Train.Create(50@, 802.302, -1362.661, -2.6302, True)
Train.SetSpeed(84@(48@,3i), 70@)
Train.SetCruiseSpeed(84@(48@,3i), 70@)
goto @SCRASH2_12231

:SCRASH2_12231
123@(48@,3i) = -2

:SCRASH2_12242
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_11316
return 

:SCRASH2_12265
83@ = Train.GetCarriage(81@, 2)
78@ = Char.CreateInsideCar(83@, PedType.CivMale, 147)
Char.SetDecisionMaker(78@, 96@)
Task.LeaveCar(78@, 83@)
167@ = 1
return 

:SCRASH2_12313
158@ = 1
if 
  Char.IsInArea3D($scplayer, 685.9716, -1433.523, 11.0857, 965.9512, -1379.386, 14.9731, False)
goto_if_false @SCRASH2_12375
158@ = 0

:SCRASH2_12375
return 

:SCRASH2_12377
if 
  158@ == 1
goto_if_false @SCRASH2_12442
57@ = 850.1132
58@ = -1391.708
59@ = 12.4161
63@ = 101.528
goto @SCRASH2_12482

:SCRASH2_12442
57@ = 847.1364
58@ = -1331.128
59@ = 12.5097
63@ = 91.6504

:SCRASH2_12482
World.ClearArea(57@, 58@, 59@, 10.0, True)
87@ = Car.Create(420, 57@, 58@, 59@)
Car.SetHeading(87@, 63@)
79@ = Char.CreateInsideCar(87@, PedType.CivMale, 18)
if 
  158@ == 1
goto_if_false @SCRASH2_12596
Task.CarDriveToCoord(79@, 87@, 801.0299, -1337.929, 12.3906, 12.0, DriveMode.Normal, 0, DrivingMode.StopForCarsIgnoreLights)
goto @SCRASH2_12637

:SCRASH2_12596
Task.CarDriveToCoord(79@, 87@, 824.4391, -1330.707, 12.4174, 12.0, DriveMode.Normal, 0, DrivingMode.StopForCarsIgnoreLights)
141@ = 1

:SCRASH2_12637
168@ = 1
return 

:SCRASH2_12646
if 
  153@ == 1
goto_if_false @SCRASH2_12930
if 
  163@ == 1
goto_if_false @SCRASH2_12700
40@ = Char.GetScriptTaskStatus(78@, 1492)
goto @SCRASH2_12711

:SCRASH2_12700
40@ = Char.GetScriptTaskStatus(78@, 1471)

:SCRASH2_12711
if 
  is_int_lvar_greater_than_int_lvar 46@ > 117@
goto_if_false @SCRASH2_12928
if and
  not is_int_lvar_equal_to_constant 40@ == 1
  not is_int_lvar_equal_to_constant 40@ == 0
goto_if_false @SCRASH2_12928
if 
  163@ == 1
goto_if_false @SCRASH2_12876
57@, 58@, 59@ = Char.GetCoordinates($scplayer)
set_lvar_float_to_lvar_float 64@ = 57@
set_lvar_float_to_lvar_float 65@ = 58@
57@, 58@, 59@ = Char.GetCoordinates(78@)
set_lvar_float_to_lvar_float 67@ = 57@
set_lvar_float_to_lvar_float 68@ = 58@
set_lvar_float_to_lvar_float 57@ = 64@
sub_float_lvar_from_float_lvar 57@ -= 67@
set_lvar_float_to_lvar_float 58@ = 65@
sub_float_lvar_from_float_lvar 58@ -= 68@
63@ = Math.GetHeadingFromVector2D(57@, 58@)

:SCRASH2_12876
Task.LookAtChar(78@, $scplayer, -2)
if 
  163@ == 1
goto_if_false @SCRASH2_12928
Task.AchieveHeading(78@, 63@)
set_lvar_int_to_lvar_int 117@ = 46@
117@ += 250

:SCRASH2_12928
return 

:SCRASH2_12930
switch_start 101@ {numCases} 11 {hasDefaultCase} 1 {defaultLabel} @SCRASH2_13594 {caseNum1} 0 {caseLabel1} @SCRASH2_13058 {caseNum2} 1 {caseLabel2} @SCRASH2_13352 {caseNum3} 2 {caseLabel3} @SCRASH2_13390 {caseNum4} 3 {caseLabel4} @SCRASH2_13193 {caseNum5} 4 {caseLabel5} @SCRASH2_13276 {caseNum6} 5 {caseLabel6} @SCRASH2_13079 {caseNum7} 6 {caseLabel7} @SCRASH2_13117
switch_continued 7 {caseLabel1} @SCRASH2_13466 {caseNum2} 8 {caseLabel2} @SCRASH2_13473 {caseNum3} 9 {caseLabel3} @SCRASH2_13511 {caseNum4} 10 {caseLabel4} @SCRASH2_13587 {caseNum5} -1 {caseLabel5} @SCRASH2_13625 {caseNum6} -1 {caseLabel6} @SCRASH2_13625 {caseNum7} -1 {caseLabel7} @SCRASH2_13625 {caseNum8} -1 {caseLabel8} @SCRASH2_13625 {caseNum9} -1 {caseLabel9} @SCRASH2_13625

:SCRASH2_13058
101@ = 5
102@ = 5
goto @SCRASH2_13625

:SCRASH2_13079
Task.GoStraightToCoord(78@, 828.2594, -1358.995, -1.5078, MoveState.Walk, -2)
101@ = 6
goto @SCRASH2_13625

:SCRASH2_13117
if 
  Char.LocateAnyMeans3D(78@, 828.2594, -1358.995, -1.5078, 1.2, 1.2, 1.2, False)
goto_if_false @SCRASH2_13186
101@ = 3
102@ = 3
126@ = 2

:SCRASH2_13186
goto @SCRASH2_13625

:SCRASH2_13193
56@ = Sequence.Open()
Task.GoStraightToCoord(-1, 837.388, -1346.233, 6.1719, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, 836.6295, -1342.926, 6.1719, MoveState.Walk, -2)
Sequence.Close(56@)
Char.PerformSequence(78@, 56@)
Sequence.Clear(56@)
101@ = 4
goto @SCRASH2_13625

:SCRASH2_13276
if 
  Char.LocateAnyMeans3D(78@, 836.6295, -1342.926, 6.1719, 1.2, 1.2, 1.2, False)
goto_if_false @SCRASH2_13345
101@ = 1
102@ = 1
126@ = 3

:SCRASH2_13345
goto @SCRASH2_13625

:SCRASH2_13352
Task.GoStraightToCoord(78@, 822.0569, -1342.302, 12.519, MoveState.Walk, -2)
101@ = 2
goto @SCRASH2_13625

:SCRASH2_13390
if 
  Char.LocateAnyMeans3D(78@, 822.0569, -1342.302, 12.519, 1.2, 1.2, 1.2, False)
goto_if_false @SCRASH2_13459
101@ = 7
102@ = 7
126@ = 4

:SCRASH2_13459
goto @SCRASH2_13625

:SCRASH2_13466
goto @SCRASH2_13625

:SCRASH2_13473
Task.GoStraightToCoord(78@, 803.7784, -1340.535, 12.5469, MoveState.Walk, -2)
101@ = 9
goto @SCRASH2_13625

:SCRASH2_13511
if 
  Char.LocateAnyMeans3D(78@, 803.7784, -1340.535, 12.5469, 1.2, 1.2, 1.2, False)
goto_if_false @SCRASH2_13580
101@ = 10
102@ = 10
126@ = 5

:SCRASH2_13580
goto @SCRASH2_13625

:SCRASH2_13587
goto @SCRASH2_13625

:SCRASH2_13594
write_debug "UNKNOWN_STATION_WALK_STATUS"

:SCRASH2_13625
return 

:SCRASH2_13627
73@ = 1
74@ = 1
if 
  127@ == 0
goto_if_false @SCRASH2_13666
73@ = 0

:SCRASH2_13666
switch_start 127@ {numCases} 14 {hasDefaultCase} 1 {defaultLabel} @SCRASH2_14144 {caseNum1} 0 {caseLabel1} @SCRASH2_13794 {caseNum2} 1 {caseLabel2} @SCRASH2_13885 {caseNum3} 2 {caseLabel3} @SCRASH2_13899 {caseNum4} 3 {caseLabel4} @SCRASH2_13913 {caseNum5} 4 {caseLabel5} @SCRASH2_13927 {caseNum6} 5 {caseLabel6} @SCRASH2_13941 {caseNum7} 6 {caseLabel7} @SCRASH2_13955
switch_continued 7 {caseLabel1} @SCRASH2_13969 {caseNum2} 8 {caseLabel2} @SCRASH2_13983 {caseNum3} 9 {caseLabel3} @SCRASH2_13997 {caseNum4} 10 {caseLabel4} @SCRASH2_14011 {caseNum5} 11 {caseLabel5} @SCRASH2_14025 {caseNum6} 12 {caseLabel6} @SCRASH2_14039 {caseNum7} 13 {caseLabel7} @SCRASH2_14053 {caseNum8} -1 {caseLabel8} @SCRASH2_14177 {caseNum9} -1 {caseLabel9} @SCRASH2_14177

:SCRASH2_13794
50@ = Math.RandomIntInRange(0, 3)
if 
  50@ == 0
goto_if_false @SCRASH2_13828
127@ = 1

:SCRASH2_13828
if 
  50@ == 1
goto_if_false @SCRASH2_13853
127@ = 2

:SCRASH2_13853
if 
  50@ == 2
goto_if_false @SCRASH2_13878
127@ = 3

:SCRASH2_13878
goto @SCRASH2_14177

:SCRASH2_13885
127@ = 4
goto @SCRASH2_14177

:SCRASH2_13899
127@ = 6
goto @SCRASH2_14177

:SCRASH2_13913
127@ = 7
goto @SCRASH2_14177

:SCRASH2_13927
127@ = 9
goto @SCRASH2_14177

:SCRASH2_13941
127@ = 10
goto @SCRASH2_14177

:SCRASH2_13955
127@ = 5
goto @SCRASH2_14177

:SCRASH2_13969
127@ = 12
goto @SCRASH2_14177

:SCRASH2_13983
127@ = 13
goto @SCRASH2_14177

:SCRASH2_13997
127@ = 8
goto @SCRASH2_14177

:SCRASH2_14011
127@ = 13
goto @SCRASH2_14177

:SCRASH2_14025
127@ = 13
goto @SCRASH2_14177

:SCRASH2_14039
127@ = 11
goto @SCRASH2_14177

:SCRASH2_14053
50@ = Math.RandomIntInRange(0, 3)
if 
  50@ == 0
goto_if_false @SCRASH2_14087
127@ = 9

:SCRASH2_14087
if 
  50@ == 1
goto_if_false @SCRASH2_14112
127@ = 5

:SCRASH2_14112
if 
  50@ == 2
goto_if_false @SCRASH2_14137
127@ = 12

:SCRASH2_14137
goto @SCRASH2_14177

:SCRASH2_14144
write_debug "UNKNOWN_CURRENT_TAXI_WAYPOINT"

:SCRASH2_14177
if 
  127@ == 13
goto_if_false @SCRASH2_14209
73@ = 0
74@ = 0

:SCRASH2_14209
switch_start 127@ {numCases} 14 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_14847 {caseNum1} 0 {caseLabel1} @SCRASH2_14337 {caseNum2} 1 {caseLabel2} @SCRASH2_14372 {caseNum3} 2 {caseLabel3} @SCRASH2_14409 {caseNum4} 3 {caseLabel4} @SCRASH2_14446 {caseNum5} 4 {caseLabel5} @SCRASH2_14483 {caseNum6} 5 {caseLabel6} @SCRASH2_14520 {caseNum7} 6 {caseLabel7} @SCRASH2_14557
switch_continued 7 {caseLabel1} @SCRASH2_14594 {caseNum2} 8 {caseLabel2} @SCRASH2_14631 {caseNum3} 9 {caseLabel3} @SCRASH2_14668 {caseNum4} 10 {caseLabel4} @SCRASH2_14705 {caseNum5} 11 {caseLabel5} @SCRASH2_14742 {caseNum6} 12 {caseLabel6} @SCRASH2_14779 {caseNum7} 13 {caseLabel7} @SCRASH2_14816 {caseNum8} -1 {caseLabel8} @SCRASH2_14847 {caseNum9} -1 {caseLabel9} @SCRASH2_14847

:SCRASH2_14337
write_debug "TAXI_WAYPOINT_STILL_NONE"
goto @SCRASH2_14847

:SCRASH2_14372
135@ = 728.2346
136@ = -1068.529
137@ = 21.3149
goto @SCRASH2_14847

:SCRASH2_14409
135@ = 885.8015
136@ = -1152.047
137@ = 22.7156
goto @SCRASH2_14847

:SCRASH2_14446
135@ = 623.9262
136@ = -1356.336
137@ = 12.4009
goto @SCRASH2_14847

:SCRASH2_14483
135@ = 554.1271
136@ = -1327.217
137@ = 12.3984
goto @SCRASH2_14847

:SCRASH2_14520
135@ = 552.7402
136@ = -1401.848
137@ = 14.0907
goto @SCRASH2_14847

:SCRASH2_14557
135@ = 913.4064
136@ = -1381.039
137@ = 12.3208
goto @SCRASH2_14847

:SCRASH2_14594
135@ = 807.6411
136@ = -1737.392
137@ = 12.3906
goto @SCRASH2_14847

:SCRASH2_14631
135@ = 318.3799
136@ = -1464.926
137@ = 33.003
goto @SCRASH2_14847

:SCRASH2_14668
135@ = 461.6126
136@ = -1433.671
137@ = 23.2117
goto @SCRASH2_14847

:SCRASH2_14705
135@ = 484.8509
136@ = -1579.22
137@ = 20.2086
goto @SCRASH2_14847

:SCRASH2_14742
135@ = 570.8074
136@ = -1580.052
137@ = 15.0078
goto @SCRASH2_14847

:SCRASH2_14779
135@ = 673.4271
136@ = -1737.34
137@ = 12.4441
goto @SCRASH2_14847

:SCRASH2_14816
set_lvar_float_to_lvar_float 135@ = 132@
set_lvar_float_to_lvar_float 136@ = 133@
set_lvar_float_to_lvar_float 137@ = 134@
goto @SCRASH2_14847

:SCRASH2_14847
if 
  73@ == 1
goto_if_false @SCRASH2_14932
if 
  128@ == 0
goto_if_false @SCRASH2_14897
73@ = 0
goto @SCRASH2_14932

:SCRASH2_14897
50@ = Math.RandomIntInRange(0, 3)
if 
  is_int_lvar_greater_than_int_lvar 50@ > 128@
goto_if_false @SCRASH2_14932
73@ = 0

:SCRASH2_14932
if 
  73@ == 1
goto_if_false @SCRASH2_14964
128@ = 0
goto @SCRASH2_14971

:SCRASH2_14964
128@ += 1

:SCRASH2_14971
if 
  not Char.IsDead(79@)
goto_if_false @SCRASH2_15201
if 
  73@ == 1
goto_if_false @SCRASH2_15039
Task.CarDriveToCoord(79@, -1, 135@, 136@, 137@, 25.0, DriveMode.Accurate, 0, DrivingMode.AvoidCars)
goto @SCRASH2_15201

:SCRASH2_15039
if 
  127@ == 13
goto_if_false @SCRASH2_15071
50@ = 15
goto @SCRASH2_15118

:SCRASH2_15071
set_lvar_int_to_lvar_int 50@ = 129@
50@ *= 3
50@ += 18
if 
  50@ > 25
goto_if_false @SCRASH2_15118
50@ = 25

:SCRASH2_15118
cset_lvar_float_to_lvar_int 70@ =# 50@
if 
  2 > 129@
goto_if_false @SCRASH2_15176
Task.CarDriveToCoord(79@, -1, 135@, 136@, 137@, 70@, DriveMode.Accurate, 0, DrivingMode.AvoidCarsObeyLights)
goto @SCRASH2_15201

:SCRASH2_15176
Task.CarDriveToCoord(79@, -1, 135@, 136@, 137@, 70@, DriveMode.Accurate, 0, DrivingMode.AvoidCars)

:SCRASH2_15201
129@ += 1
return 

:SCRASH2_15210
if 
  Char.IsDead(78@)
goto_if_false @SCRASH2_15228
return 

:SCRASH2_15228
if 
  not Char.IsInCar(78@, 87@)
goto_if_false @SCRASH2_15249
return 

:SCRASH2_15249
if 
  Car.IsDead(87@)
goto_if_false @SCRASH2_15267
return 

:SCRASH2_15267
if 
  127@ <> 13
goto_if_false @SCRASH2_15334
if 
  Car.Locate3D(87@, 135@, 136@, 137@, 18.0, 18.0, 4.0, False)
goto_if_false @SCRASH2_15334
gosub @SCRASH2_13627

:SCRASH2_15334
if 
  127@ == 13
goto_if_false @SCRASH2_15425
if 
  Car.Locate3D(87@, 370.0204, -1647.647, 31.7173, 14.0, 14.0, 4.0, False)
goto_if_false @SCRASH2_15425
if 
  150@ == 1
goto_if_false @SCRASH2_15425
gosub @SCRASH2_13627

:SCRASH2_15425
return 

:SCRASH2_15427
57@ = 355.618
58@ = -2037.007
59@ = 6.836
63@ = 271.1917
World.ClearArea(57@, 58@, 59@, 10.0, True)
80@ = Char.Create(PedType.CivMale, 46, 57@, 58@, 59@)
Char.SetHeading(80@, 63@)
Char.SetIsTargetPriority(80@, True)
169@ = 1
return 

:SCRASH2_15527
if 
  144@ == 1
goto_if_false @SCRASH2_15547
return 

:SCRASH2_15547
switch_start 98@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_15747 {caseNum1} 3 {caseLabel1} @SCRASH2_15610 {caseNum2} 4 {caseLabel2} @SCRASH2_15658 {caseNum3} -1 {caseLabel3} @SCRASH2_15747 {caseNum4} -1 {caseLabel4} @SCRASH2_15747 {caseNum5} -1 {caseLabel5} @SCRASH2_15747 {caseNum6} -1 {caseLabel6} @SCRASH2_15747 {caseNum7} -1 {caseLabel7} @SCRASH2_15747

:SCRASH2_15610
Task.SmartFleeChar(78@, $scplayer, 4000.0, 3600000)
98@ = 4
set_lvar_int_to_lvar_int 108@ = 46@
108@ += 250
goto @SCRASH2_15747

:SCRASH2_15658
if 
  is_int_lvar_greater_than_int_lvar 46@ > 108@
goto_if_false @SCRASH2_15740
40@ = Char.GetScriptTaskStatus(78@, 1501)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_15740
Task.SmartFleeChar(78@, $scplayer, 4000.0, 3600000)
set_lvar_int_to_lvar_int 108@ = 46@
108@ += 250

:SCRASH2_15740
goto @SCRASH2_15747

:SCRASH2_15747
return 

:SCRASH2_15749
if 
  145@ == 1
goto_if_false @SCRASH2_15769
return 

:SCRASH2_15769
switch_start 99@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_15980 {caseNum1} 3 {caseLabel1} @SCRASH2_15832 {caseNum2} 4 {caseLabel2} @SCRASH2_15894 {caseNum3} -1 {caseLabel3} @SCRASH2_15980 {caseNum4} -1 {caseLabel4} @SCRASH2_15980 {caseNum5} -1 {caseLabel5} @SCRASH2_15980 {caseNum6} -1 {caseLabel6} @SCRASH2_15980 {caseNum7} -1 {caseLabel7} @SCRASH2_15980

:SCRASH2_15832
Char.GiveWeapon(80@, WeaponType.Pistol, 99)
Char.SetDecisionMaker(80@, 97@)
Task.KillCharOnFootWhileDucking(80@, $scplayer, 4, 4000, 34)
99@ = 4
set_lvar_int_to_lvar_int 110@ = 46@
110@ += 250
goto @SCRASH2_15980

:SCRASH2_15894
if 
  is_int_lvar_greater_than_int_lvar 46@ > 110@
goto_if_false @SCRASH2_15973
40@ = Char.GetScriptTaskStatus(80@, 1588)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_15973
Task.KillCharOnFootWhileDucking(80@, $scplayer, 4, 4000, 34)
set_lvar_int_to_lvar_int 110@ = 46@
110@ += 250

:SCRASH2_15973
goto @SCRASH2_15980

:SCRASH2_15980
return 

:SCRASH2_15982
126@ = 0
100@ = 0
153@ = 0
return 

:SCRASH2_16005
switch_start 126@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @SCRASH2_16165 {caseNum1} 0 {caseLabel1} @SCRASH2_16068 {caseNum2} 1 {caseLabel2} @SCRASH2_16130 {caseNum3} 2 {caseLabel3} @SCRASH2_16137 {caseNum4} 3 {caseLabel4} @SCRASH2_16144 {caseNum5} 4 {caseLabel5} @SCRASH2_16151 {caseNum6} 5 {caseLabel6} @SCRASH2_16158 {caseNum7} -1 {caseLabel7} @SCRASH2_16191

:SCRASH2_16068
if 
  Char.LocateAnyMeans3D(78@, 833.4493, -1374.261, -1.5078, 1.2, 1.2, 1.2, False)
goto_if_false @SCRASH2_16123
126@ = 1

:SCRASH2_16123
goto @SCRASH2_16191

:SCRASH2_16130
goto @SCRASH2_16191

:SCRASH2_16137
goto @SCRASH2_16191

:SCRASH2_16144
goto @SCRASH2_16191

:SCRASH2_16151
goto @SCRASH2_16191

:SCRASH2_16158
goto @SCRASH2_16191

:SCRASH2_16165
write_debug "UNKNOWN_SUSPICION_AREA"

:SCRASH2_16191
return 

:SCRASH2_16193
if 
  156@ == 1
goto_if_false @SCRASH2_16213
return 

:SCRASH2_16213
if 
  Char.IsShooting($scplayer)
goto_if_false @SCRASH2_16236
156@ = 1

:SCRASH2_16236
73@ = 0
switch_start 126@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @SCRASH2_16752 {caseNum1} 0 {caseLabel1} @SCRASH2_16306 {caseNum2} 1 {caseLabel2} @SCRASH2_16313 {caseNum3} 2 {caseLabel3} @SCRASH2_16375 {caseNum4} 3 {caseLabel4} @SCRASH2_16474 {caseNum5} 4 {caseLabel5} @SCRASH2_16573 {caseNum6} 5 {caseLabel6} @SCRASH2_16672 {caseNum7} -1 {caseLabel7} @SCRASH2_16778

:SCRASH2_16306
goto @SCRASH2_16778

:SCRASH2_16313
if 
  Char.IsInArea3D($scplayer, 783.9064, -1393.156, -2.7078, 858.4905, -1322.64, -0.3006, False)
goto_if_false @SCRASH2_16368
73@ = 1

:SCRASH2_16368
goto @SCRASH2_16778

:SCRASH2_16375
if or
  Char.IsInArea3D($scplayer, 825.3654, -1359.666, -2.7078, 842.8153, -1338.893, 7.3875, False)
  Char.IsInArea3D($scplayer, 820.1507, -1365.766, -2.7078, 831.27, -1354.908, -0.3078, False)
goto_if_false @SCRASH2_16467
73@ = 1

:SCRASH2_16467
goto @SCRASH2_16778

:SCRASH2_16474
if or
  Char.IsInArea3D($scplayer, 819.6318, -1344.258, 4.9875, 842.2764, -1338.742, 13.7162, False)
  Char.IsInArea3D($scplayer, 816.749, -1345.116, 8.8156, 829.4735, -1338.895, 13.7281, False)
goto_if_false @SCRASH2_16566
73@ = 1

:SCRASH2_16566
goto @SCRASH2_16778

:SCRASH2_16573
if or
  Char.IsInArea3D($scplayer, 787.7994, -1357.323, 11.3391, 827.1069, -1309.406, 13.7625, False)
  Char.IsInArea3D($scplayer, 816.749, -1345.116, 8.8156, 829.4735, -1338.895, 13.7281, False)
goto_if_false @SCRASH2_16665
73@ = 1

:SCRASH2_16665
goto @SCRASH2_16778

:SCRASH2_16672
if 
  154@ == 0
goto_if_false @SCRASH2_16745
if 
  Char.IsInArea3D($scplayer, 787.0083, -1376.24, 11.3391, 809.962, -1310.506, 13.8144, False)
goto_if_false @SCRASH2_16745
73@ = 1

:SCRASH2_16745
goto @SCRASH2_16778

:SCRASH2_16752
write_debug "UNKNOWN_SUSPICION_AREA"

:SCRASH2_16778
if 
  156@ == 1
goto_if_false @SCRASH2_16804
set_lvar_int_to_lvar_int 156@ = 73@

:SCRASH2_16804
if 
  156@ == 1
goto_if_false @SCRASH2_16854
set_lvar_int_to_lvar_int 118@ = 46@
118@ += 1000
Task.SmartFleeChar(78@, $scplayer, 9999.0, 10000)

:SCRASH2_16854
if 
  73@ == 1
goto_if_false @SCRASH2_17004
57@, 58@, 59@ = Char.GetCoordinates(78@)
60@, 61@, 62@ = Char.GetCoordinates($scplayer)
72@ = Math.GetDistanceBetweenCoords3D(57@, 58@, 59@, 60@, 61@, 62@)
if 
  100@ == 1
goto_if_false @SCRASH2_16976
if 
  72@ > 10.0
goto_if_false @SCRASH2_16969
73@ = 0

:SCRASH2_16969
goto @SCRASH2_17004

:SCRASH2_16976
if 
  72@ > 8.0
goto_if_false @SCRASH2_17004
73@ = 0

:SCRASH2_17004
if 
  73@ == 1
goto_if_false @SCRASH2_17215
if 
  100@ == 0
goto_if_false @SCRASH2_17117
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60
if 
  160@ == 0
goto_if_false @SCRASH2_17096
Text.PrintNow('SCR2_08', 30000, 1)
160@ = 1

:SCRASH2_17096
153@ = 1
100@ = 1
goto @SCRASH2_17208

:SCRASH2_17117
if 
  is_int_lvar_greater_than_int_lvar 46@ > 114@
goto_if_false @SCRASH2_17208
$cunt_y += 1
if 
  $cunt_y > 100
goto_if_false @SCRASH2_17193
$cunt_y = 100
37@ = 1
45@ = 7
Text.ClearSmallPrints
return 
goto @SCRASH2_17208

:SCRASH2_17193
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60

:SCRASH2_17208
goto @SCRASH2_17367

:SCRASH2_17215
if 
  100@ == 1
goto_if_false @SCRASH2_17284
Text.ClearSmallPrints
100@ = 0
153@ = 0
set_lvar_int_to_lvar_int 101@ = 102@
Char.ClearLookAt(78@)
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 40
goto @SCRASH2_17367

:SCRASH2_17284
if 
  $cunt_y > 0
goto_if_false @SCRASH2_17367
if and
  114@ > 0
  is_int_lvar_greater_than_int_lvar 46@ > 114@
goto_if_false @SCRASH2_17367
$cunt_y -= 1
if 
  0 > $cunt_y
goto_if_false @SCRASH2_17367
$cunt_y = 0
114@ = 0

:SCRASH2_17367
return 

:SCRASH2_17369
if 
  152@ == 1
goto_if_false @SCRASH2_17420
if 
  is_int_lvar_greater_than_int_lvar 46@ > 116@
goto_if_false @SCRASH2_17420
152@ = 0
116@ = 0

:SCRASH2_17420
162@ = 0
if or
  100@ == 3
  100@ == 1
goto_if_false @SCRASH2_17459
162@ = 1

:SCRASH2_17459
73@ = 0
74@ = 0
159@ = 0
if and
  150@ == 1
  149@ == 1
goto_if_false @SCRASH2_17617
57@, 58@, 59@ = Char.GetCoordinates(78@)
72@ = Math.GetDistanceBetweenCoords3D(57@, 58@, 59@, 372.661, -2088.79, 6.836)
60@, 61@, 62@ = Char.GetCoordinates($scplayer)
70@ = Math.GetDistanceBetweenCoords3D(60@, 61@, 62@, 372.661, -2088.79, 6.836)
if 
  is_float_lvar_greater_than_float_lvar 72@ > 70@
goto_if_false @SCRASH2_17617
159@ = 1

:SCRASH2_17617
if 
  159@ == 1
goto_if_false @SCRASH2_17809
if 
  100@ <> 3
goto_if_false @SCRASH2_17716
if 
  100@ <> 1
goto_if_false @SCRASH2_17686
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60

:SCRASH2_17686
100@ = 3
Text.PrintNow('SCR2_23', 30000, 1)
goto @SCRASH2_17807

:SCRASH2_17716
if 
  is_int_lvar_greater_than_int_lvar 46@ > 114@
goto_if_false @SCRASH2_17807
$cunt_y += 1
if 
  $cunt_y > 100
goto_if_false @SCRASH2_17792
$cunt_y = 100
37@ = 1
45@ = 7
Text.ClearSmallPrints
return 
goto @SCRASH2_17807

:SCRASH2_17792
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60

:SCRASH2_17807
return 

:SCRASH2_17809
if 
  159@ == 0
goto_if_false @SCRASH2_17959
57@, 58@, 59@ = Char.GetCoordinates(78@)
60@, 61@, 62@ = Char.GetCoordinates($scplayer)
72@ = Math.GetDistanceBetweenCoords3D(57@, 58@, 59@, 60@, 61@, 62@)
if 
  40.0 >= 72@
goto_if_false @SCRASH2_17931
if 
  152@ == 0
goto_if_false @SCRASH2_17924
73@ = 1

:SCRASH2_17924
goto @SCRASH2_17959

:SCRASH2_17931
if 
  72@ >= 100.0
goto_if_false @SCRASH2_17959
74@ = 1

:SCRASH2_17959
if 
  159@ == 0
goto_if_false @SCRASH2_18029
if 
  100@ == 3
goto_if_false @SCRASH2_18029
if and
  73@ == 0
  74@ == 0
goto_if_false @SCRASH2_18029
Text.ClearSmallPrints
100@ = 0

:SCRASH2_18029
if 
  73@ == 1
goto_if_false @SCRASH2_18288
if 
  100@ <> 1
goto_if_false @SCRASH2_18190
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60
if 
  100@ <> 3
goto_if_false @SCRASH2_18146
if 
  160@ == 0
goto_if_false @SCRASH2_18139
Text.PrintNow('SCR2_08', 30000, 1)
160@ = 1

:SCRASH2_18139
goto @SCRASH2_18169

:SCRASH2_18146
Text.PrintNow('SCR2_08', 30000, 1)
160@ = 1

:SCRASH2_18169
153@ = 1
100@ = 1
goto @SCRASH2_18281

:SCRASH2_18190
if 
  is_int_lvar_greater_than_int_lvar 46@ > 114@
goto_if_false @SCRASH2_18281
$cunt_y += 1
if 
  $cunt_y > 100
goto_if_false @SCRASH2_18266
$cunt_y = 100
37@ = 1
45@ = 7
Text.ClearSmallPrints
return 
goto @SCRASH2_18281

:SCRASH2_18266
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60

:SCRASH2_18281
goto @SCRASH2_18315

:SCRASH2_18288
if 
  100@ == 1
goto_if_false @SCRASH2_18315
Text.ClearSmallPrints
100@ = 0

:SCRASH2_18315
if 
  74@ == 1
goto_if_false @SCRASH2_18365
if and
  149@ == 1
  150@ == 1
goto_if_false @SCRASH2_18365
74@ = 0

:SCRASH2_18365
if 
  74@ == 1
goto_if_false @SCRASH2_18615
if 
  100@ == 0
goto_if_false @SCRASH2_18438
130@ = 21
set_lvar_int_to_lvar_int 113@ = 46@
113@ += 1000
100@ = 2
goto @SCRASH2_18608

:SCRASH2_18438
if 
  is_int_lvar_greater_than_int_lvar 46@ > 113@
goto_if_false @SCRASH2_18530
130@ -= 1
if 
  0 > 130@
goto_if_false @SCRASH2_18514
130@ = 0
37@ = 1
45@ = 3
Text.ClearSmallPrints
return 
goto @SCRASH2_18530

:SCRASH2_18514
set_lvar_int_to_lvar_int 113@ = 46@
113@ += 1000

:SCRASH2_18530
if and
  130@ > 10
  72@ >= 140.0
goto_if_false @SCRASH2_18574
Text.PrintNow('SCR2_16', 30000, 1)

:SCRASH2_18574
if 
  130@ == 10
goto_if_false @SCRASH2_18608
Text.PrintNow('SCR2_16', 30000, 1)

:SCRASH2_18608
goto @SCRASH2_18651

:SCRASH2_18615
if 
  100@ == 2
goto_if_false @SCRASH2_18651
Text.ClearThisPrint('SCR2_16')
100@ = 0

:SCRASH2_18651
if and
  100@ <> 1
  100@ <> 3
goto_if_false @SCRASH2_18814
if 
  162@ == 1
goto_if_false @SCRASH2_18716
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 40
goto @SCRASH2_18814

:SCRASH2_18716
if 
  $cunt_y > 0
goto_if_false @SCRASH2_18814
if 
  is_int_lvar_greater_than_int_lvar 46@ > 114@
goto_if_false @SCRASH2_18814
$cunt_y -= 1
if 
  0 > $cunt_y
goto_if_false @SCRASH2_18799
$cunt_y = 0
114@ = 0
goto @SCRASH2_18814

:SCRASH2_18799
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 40

:SCRASH2_18814
return 

:SCRASH2_18816
Hud.DisplayCounterWithString($cunt_y, CounterDisplay.Bar, 'SCR2_52')
return 

:SCRASH2_18834
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @SCRASH2_18883
47@ += 1
if 
  47@ > 2
goto_if_false @SCRASH2_18881
47@ = 0

:SCRASH2_18881
clear_all_view_variables 

:SCRASH2_18883
if 
  47@ == 1
goto_if_false @SCRASH2_19115
if 
  not Car.IsDead(81@)
goto_if_false @SCRASH2_18933
70@ = Car.GetSpeed(81@)
cset_var_int_to_lvar_float $7244 =# 70@

:SCRASH2_18933
set_var_int_to_lvar_int $g_SCrash2_spookKM = 34@
set_var_int_to_lvar_int $SCrash2_view_debug = 35@
set_var_int_to_lvar_int $7240 = TIMERA
set_var_int_to_lvar_int $7241 = TIMERB
set_var_int_to_lvar_int $7242 = 46@
set_var_int_to_lvar_int $7243 = 119@
set_var_int_to_lvar_int $7245 = 121@
view_integer_variable $g_SCrash2_spookKM {_p2} "M_STAGE"
view_integer_variable $SCrash2_view_debug {_p2} "M_GOALS"
view_integer_variable $7242 {_p2} "M_MISSION_TIMER"
view_integer_variable $7243 {_p2} "TRAIN_DISTANCE"
if 
  not Car.IsDead(81@)
goto_if_false @SCRASH2_19094
view_integer_variable $7244 {_p2} "TRAIN_SPEED"

:SCRASH2_19094
view_integer_variable $7245 {_p2} "PLAYER_FROM_LS"

:SCRASH2_19115
if 
  47@ == 2
goto_if_false @SCRASH2_19133

:SCRASH2_19133
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @SCRASH2_19155
38@ = 1

:SCRASH2_19155
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @SCRASH2_19243
if 
  39@ == 0
goto_if_false @SCRASH2_19218
39@ = 1
write_debug "LEVEL_PAUSED"
goto @SCRASH2_19243

:SCRASH2_19218
39@ = 0
write_debug "LEVEL_UNPAUSED"

:SCRASH2_19243
return 

:SCRASH2_19245
if 
  not is_ps2_keyboard_key_just_pressed 13
goto_if_false @SCRASH2_19262
return 

:SCRASH2_19262
if 
  34@ == 1
goto_if_false @SCRASH2_19334
World.ClearArea(-2063.547, 253.2754, 34.3043, 0.5, True)
Char.SetCoordinates($scplayer, -2063.547, 253.2754, 34.3043)
Char.SetHeading($scplayer, 0.0)

:SCRASH2_19334
if and
  34@ == 2
  4 > 35@
goto_if_false @SCRASH2_19585
if 
  166@ == 0
goto_if_false @SCRASH2_19452
World.ClearArea(-1944.025, 135.5236, 24.7109, 100.0, True)
81@ = Train.Create(11, -1944.025, 135.5236, 24.7109, False)
Train.SetSpeed(81@, 0.0)
Train.SetCruiseSpeed(81@, 0.0)
166@ = 1

:SCRASH2_19452
if 
  not Car.IsDead(81@)
goto_if_false @SCRASH2_19478
82@ = Train.GetCarriage(81@, 1)

:SCRASH2_19478
if 
  not Char.IsDead(78@)
goto_if_false @SCRASH2_19506
Task.EnterCarAsPassenger(78@, 82@, 100, -1)

:SCRASH2_19506
World.ClearArea(-1989.161, 208.5921, 26.6797, 0.5, True)
Char.SetCoordinates($scplayer, -1989.161, 208.5921, 26.6797)
Char.SetHeading($scplayer, 221.8946)
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 60000
35@ = 4

:SCRASH2_19585
if and
  34@ == 3
  4 > 35@
goto_if_false @SCRASH2_19732
if 
  35@ == 1
goto_if_false @SCRASH2_19671
if 
  not Car.IsDead(81@)
goto_if_false @SCRASH2_19664
Train.SetCoordinates(81@, 779.9327, -1334.155, -2.534)

:SCRASH2_19664
goto @SCRASH2_19678

:SCRASH2_19671
35@ = 4

:SCRASH2_19678
World.ClearArea(815.0453, -1323.097, 12.5036, 5.0, True)
Char.SetCoordinates($scplayer, 815.0453, -1323.097, 12.5036)
Char.SetHeading($scplayer, 187.142)

:SCRASH2_19732
if and
  34@ == 4
  11 > 35@
goto_if_false @SCRASH2_20028
if 
  not Char.IsDead(78@)
goto_if_false @SCRASH2_19803
Char.SetCoordinates(78@, 803.7784, -1342.926, 12.5469)
Char.SetHeading(78@, 92.3748)

:SCRASH2_19803
if 
  168@ == 1
goto_if_false @SCRASH2_19874
if 
  not Car.IsDead(87@)
goto_if_false @SCRASH2_19867
Car.SetCoordinates(87@, 799.7784, -1342.926, 12.5469)
Car.SetHeading(87@, 7.9128)

:SCRASH2_19867
goto @SCRASH2_19950

:SCRASH2_19874
World.ClearArea(799.7784, -1342.926, 12.5469, 10.0, True)
87@ = Car.Create(420, 799.7784, -1342.926, 12.5469)
Car.SetHeading(87@, 7.9128)
79@ = Char.CreateInsideCar(87@, PedType.CivMale, 18)
168@ = 1

:SCRASH2_19950
if and
  not Car.IsDead(81@)
  166@ == 1
goto_if_false @SCRASH2_19995
Train.SetCruiseSpeed(81@, 30.0)
Train.MarkAsNoLongerNeeded(81@)
166@ = 0

:SCRASH2_19995
156@ = 0
157@ = 0
158@ = 1
Blip.Remove(90@)
35@ = 11

:SCRASH2_20028
if 
  34@ == 5
goto_if_false @SCRASH2_20207
132@ = 366.4698
133@ = -2030.643
134@ = 6.6582
if 
  not Char.IsDead(78@)
goto_if_false @SCRASH2_20146
World.ClearArea(366.4698, -2030.643, 6.6582, 5.0, True)
Char.SetCoordinates(78@, 366.4698, -2030.643, 6.6582)
Char.SetHeading(78@, 179.2269)

:SCRASH2_20146
World.ClearArea(383.3648, -1930.448, 6.8301, 5.0, True)
Char.SetCoordinates($scplayer, 383.3648, -1930.448, 6.8301)
Char.SetHeading($scplayer, 88.4042)
35@ = 1

:SCRASH2_20207
return 

:SCRASH2_20209
41@ += 1
if 
  41@ > 9
goto_if_false @SCRASH2_20241
41@ = 0

:SCRASH2_20241
return 

:SCRASH2_20243
42@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 44@ = 42@
sub_int_lvar_from_int_lvar 44@ -= 43@
set_lvar_int_to_lvar_int 43@ = 42@
add_int_lvar_to_int_lvar 46@ += 44@
return 

:SCRASH2_20282
34@ += 1
35@ = 0
TIMERA = 0
TIMERB = 0
return 

:SCRASH2_20312
Player.SetControl($player1, False)
Cutscene.Load('SCRASH2')

:SCRASH2_20330
if 
  not Cutscene.HasLoaded
goto_if_false @SCRASH2_20354
wait 0
goto @SCRASH2_20330

:SCRASH2_20354
Streaming.SetAreaVisible(1)
Char.SetAreaVisible($scplayer, 1)
Streaming.LoadScene(-2031.0, 149.0, 29.0)
Cutscene.Start
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:SCRASH2_20399
if 
  not Cutscene.HasFinished
goto_if_false @SCRASH2_20423
wait 0
goto @SCRASH2_20399

:SCRASH2_20423
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)

:SCRASH2_20437
if 
  Camera.GetFadingStatus
goto_if_false @SCRASH2_20461
wait 0
goto @SCRASH2_20437

:SCRASH2_20461
Cutscene.Clear
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($scplayer, 0)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
return 

:SCRASH2_20489
if 
  not Player.IsPlaying($player1)
goto_if_false @SCRASH2_20516
wait 0
goto @SCRASH2_20489

:SCRASH2_20516
gosub @SCRASH2_20731
gosub @SCRASH2_20897
World.ClearArea(-1978.85, 169.6607, 26.6953, 3.0, False)
89@ = Car.Create(468, -1978.85, 169.6607, 26.6953)
Car.SetHeading(89@, 90.1127)
161@ = 1
World.ClearArea(-2033.339, 148.6139, 27.8359, 0.5, False)
Streaming.LoadScene(-2033.339, 148.6139, 27.8359)
Char.SetCoordinates($scplayer, -2033.339, 148.6139, 27.8359)
Char.SetHeading($scplayer, 270.0)
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Game.SwitchRandomTrains(False)
Restart.SetRespawnPointForDurationOfMission(-2026.061, 148.828, 27.8359)
World.SetRailtrackResistanceMult(0.4)
wait 1000
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)
gosub @SCRASH2_20282
return 

:SCRASH2_20731
Streaming.RequestModel(538)
Streaming.RequestModel(570)
Streaming.RequestModel(537)
Streaming.RequestModel(569)
Streaming.RequestModel(468)
Streaming.RequestModel(147)
Streaming.RequestModel(18)
Streaming.RequestModel(46)
Streaming.RequestModel(358)
Streaming.RequestModel(346)
Streaming.LoadAllModelsNow

:SCRASH2_20781
if or
  not Streaming.HasModelLoaded(538)
  not Streaming.HasModelLoaded(570)
  not Streaming.HasModelLoaded(537)
  not Streaming.HasModelLoaded(569)
  not Streaming.HasModelLoaded(468)
goto_if_false @SCRASH2_20828
wait 0
goto @SCRASH2_20781

:SCRASH2_20828
if or
  not Streaming.HasModelLoaded(147)
  not Streaming.HasModelLoaded(18)
  not Streaming.HasModelLoaded(46)
goto_if_false @SCRASH2_20863
wait 0
goto @SCRASH2_20828

:SCRASH2_20863
if or
  not Streaming.HasModelLoaded(358)
  not Streaming.HasModelLoaded(346)
goto_if_false @SCRASH2_20895
wait 0
goto @SCRASH2_20863

:SCRASH2_20895
return 

:SCRASH2_20897
Streaming.RequestAnimation("MISC")
Streaming.RequestAnimation("GANGS")

:SCRASH2_20914
if or
  not Streaming.HasAnimationLoaded("MISC")
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @SCRASH2_20953
wait 0
goto @SCRASH2_20914

:SCRASH2_20953
return 

:SCRASH2_20955
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Text.ClearSmallPrints
switch_start 45@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_21197 {caseNum1} 1 {caseLabel1} @SCRASH2_21036 {caseNum2} 2 {caseLabel2} @SCRASH2_21059 {caseNum3} 3 {caseLabel3} @SCRASH2_21082 {caseNum4} 4 {caseLabel4} @SCRASH2_21105 {caseNum5} 5 {caseLabel5} @SCRASH2_21128 {caseNum6} 6 {caseLabel6} @SCRASH2_21151 {caseNum7} 7 {caseLabel7} @SCRASH2_21174

:SCRASH2_21036
Text.PrintNow('SCR2_80', 5000, 1)
goto @SCRASH2_21197

:SCRASH2_21059
Text.PrintNow('SCR2_81', 5000, 1)
goto @SCRASH2_21197

:SCRASH2_21082
Text.PrintNow('SCR2_82', 5000, 1)
goto @SCRASH2_21197

:SCRASH2_21105
Text.PrintNow('SCR2_83', 5000, 1)
goto @SCRASH2_21197

:SCRASH2_21128
Text.PrintNow('SCR2_84', 5000, 1)
goto @SCRASH2_21197

:SCRASH2_21151
Text.PrintNow('SCR2_85', 5000, 1)
goto @SCRASH2_21197

:SCRASH2_21174
Text.PrintNow('SCR2_86', 5000, 1)
goto @SCRASH2_21197

:SCRASH2_21197
155@ = 1
return 

:SCRASH2_21206
Text.ClearSmallPrints
Text.PrintWithNumberBig('M_PASSD', 0, 5000, TextStyle.Middle)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.RegisterMissionPassed('SCRA_2')
Stat.PlayerMadeProgress(1)
$flag_scrash_mission_counter += 1
Blip.Remove($scrash_contact_blip)
Blip.Remove($garage_contact_blip)
$garage_contact_blip = Blip.AddSpriteForContactPoint($garageX, $garageY, $garageZ, $garage_blip_icon)
155@ = 0
return 

:SCRASH2_21293
if 
  Player.IsPlaying($player1)
goto_if_false @SCRASH2_21398
if 
  155@ == 1
goto_if_false @SCRASH2_21398
if 
  131@ == 0
goto_if_false @SCRASH2_21359
Char.RemoveWeapon($scplayer, WeaponType.Sniper)
goto @SCRASH2_21398

:SCRASH2_21359
50@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Sniper)
if 
  is_int_lvar_greater_than_int_lvar 50@ > 131@
goto_if_false @SCRASH2_21398
Char.SetAmmo($scplayer, WeaponType.Sniper, 131@)

:SCRASH2_21398
if and
  168@ == 1
  not Car.IsDead(87@)
goto_if_false @SCRASH2_21428
Car.SetTaxiLights(87@, False)

:SCRASH2_21428
if 
  not Char.IsDead(79@)
goto_if_false @SCRASH2_21449
Char.ClearTasks(79@)

:SCRASH2_21449
if 
  not Char.IsDead(78@)
goto_if_false @SCRASH2_21470
Char.ClearLookAt(78@)

:SCRASH2_21470
Pickup.Remove(95@)
Char.MarkAsNoLongerNeeded(78@)
Car.MarkAsNoLongerNeeded(87@)
Char.MarkAsNoLongerNeeded(79@)
Char.MarkAsNoLongerNeeded(80@)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(358)
48@ = 0

:SCRASH2_21512
Train.MarkAsNoLongerNeeded(84@(48@,3i))
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_21512
if 
  166@ == 1
goto_if_false @SCRASH2_21591
if 
  not Car.IsDead(81@)
goto_if_false @SCRASH2_21591
Train.SetCruiseSpeed(81@, 30.0)
Train.MarkAsNoLongerNeeded(81@)

:SCRASH2_21591
Blip.Remove(90@)
Blip.Remove(91@)
Blip.Remove(92@)
Blip.Remove(93@)
Blip.Remove(94@)
Hud.ClearCounter($cunt_y)
Streaming.RemoveAnimation("MISC")
Streaming.RemoveAnimation("GANGS")
Text.ClearHelp
Streaming.MarkModelAsNoLongerNeeded(538)
Streaming.MarkModelAsNoLongerNeeded(570)
Streaming.MarkModelAsNoLongerNeeded(537)
Streaming.MarkModelAsNoLongerNeeded(569)
Streaming.MarkModelAsNoLongerNeeded(420)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.MarkModelAsNoLongerNeeded(147)
Streaming.MarkModelAsNoLongerNeeded(18)
Streaming.MarkModelAsNoLongerNeeded(46)
Streaming.MarkModelAsNoLongerNeeded(358)
Streaming.MarkModelAsNoLongerNeeded(346)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SetWantedMultiplier(1.0)
Game.SwitchEmergencyServices(True)
Game.SwitchRandomTrains(True)
$timer_mobile_start = Clock.GetGameTimer()
Path.SwitchRoadsBackToOriginal(789.595, -1387.97, 11.5469, 807.2843, -1334.546, 13.725)
Path.SwitchRoadsBackToOriginal(804.9978, -1414.032, 11.3801, 908.0844, -1386.618, 13.5524)
Path.SwitchRoadsBackToOriginal(802.1913, -1335.066, 11.1828, 911.4662, -1313.045, 13.7469)
World.SetRailtrackResistanceMult(-1.0)
$onmission = 0
Mission.Finish
return 

//-------------Mission 53---------------
// Originally: Mountain Cloud Boys

:WUZI1
script_name 'WUZI1'
gosub @WUZI1_47
if 
  has_deatharrest_been_executed 
goto_if_false @WUZI1_38
gosub @WUZI1_27783

:WUZI1_38
gosub @WUZI1_27865
terminate_this_script 

:WUZI1_47
231@ = 15
232@ = 33
233@ = 38
234@ = 39
235@ = 40
236@ = 41
237@ = 42
265@ = 0
Text.LoadMissionText('WUZI1')
Text.ClearThisPrint('M_FAIL')
$onmission = 1
Stat.RegisterMissionGiven
if 
  71@ == 99
goto_if_false @WUZI1_231
35@ = Char.Create(PedType.Gang2, 290, 2752.341, -1948.867, 16.3125)
104@ = Car.Create(419, 0.0, 0.0, 0.0)
157@ = Group.Create(DefaultTaskAllocator.StandStill)
107@ = Blip.AddForChar(35@)
109@ = Blip.AddForChar(35@)
108@ = Blip.AddForChar(35@)

:WUZI1_231
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @WUZI1_257
goto @WUZI1_27801

:WUZI1_257
if 
is_ps2_keyboard_key_pressed 27
goto_if_false @WUZI1_328
Char.SetCoordinates($scplayer, -2175.735, 653.6188, 48.4453)
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_328
Char.SetCoordinates(35@, -2176.735, 653.6188, 48.4453)

:WUZI1_328
if 
is_ps2_keyboard_key_pressed 29
goto_if_false @WUZI1_399
Char.SetCoordinates($scplayer, -2247.749, 649.4075, 48.4375)
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_399
Char.SetCoordinates(35@, -2246.749, 649.4075, 48.4375)

:WUZI1_399
switch_start 71@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @WUZI1_695 {caseNum1} 0 {caseLabel1} @WUZI1_527 {caseNum2} 1 {caseLabel2} @WUZI1_548 {caseNum3} 2 {caseLabel3} @WUZI1_569 {caseNum4} 3 {caseLabel4} @WUZI1_583 {caseNum5} 4 {caseLabel5} @WUZI1_597 {caseNum6} 5 {caseLabel6} @WUZI1_611 {caseNum7} 6 {caseLabel7} @WUZI1_625
switch_continued 7 {caseLabel1} @WUZI1_639 {caseNum2} 8 {caseLabel2} @WUZI1_653 {caseNum3} 9 {caseLabel3} @WUZI1_667 {caseNum4} 10 {caseLabel4} @WUZI1_681 {caseNum5} -1 {caseLabel5} @WUZI1_695 {caseNum6} -1 {caseLabel6} @WUZI1_695 {caseNum7} -1 {caseLabel7} @WUZI1_695 {caseNum8} -1 {caseLabel8} @WUZI1_695 {caseNum9} -1 {caseLabel9} @WUZI1_695

:WUZI1_527
gosub @WUZI1_2353
71@ = 1
goto @WUZI1_695

:WUZI1_548
gosub @WUZI1_1167
71@ = 2
goto @WUZI1_695

:WUZI1_569
gosub @WUZI1_2631
goto @WUZI1_695

:WUZI1_583
gosub @WUZI1_7076
goto @WUZI1_695

:WUZI1_597
gosub @WUZI1_13135
goto @WUZI1_695

:WUZI1_611
gosub @WUZI1_13771
goto @WUZI1_695

:WUZI1_625
gosub @WUZI1_16455
goto @WUZI1_695

:WUZI1_639
gosub @WUZI1_17108
goto @WUZI1_695

:WUZI1_653
gosub @WUZI1_18970
goto @WUZI1_695

:WUZI1_667
gosub @WUZI1_19863
goto @WUZI1_695

:WUZI1_681
goto @WUZI1_27801
goto @WUZI1_695

:WUZI1_695
gosub @WUZI1_838
gosub @WUZI1_906
gosub @WUZI1_23150
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
228@, 229@, 230@ = Char.GetCoordinates($scplayer)
if or
  71@ == 2
  71@ == 4
  71@ == 6
goto_if_false @WUZI1_804
gosub @WUZI1_20338
gosub @WUZI1_22825
gosub @WUZI1_23039
gosub @WUZI1_23148

:WUZI1_804
if 
  36@ == 1
goto_if_false @WUZI1_829
goto @WUZI1_27783

:WUZI1_829
goto @WUZI1_231
return 

:WUZI1_838
if 
  37@ == 1
goto_if_false @WUZI1_904
if 
  Char.IsDead(35@)
goto_if_false @WUZI1_904
Text.ClearPrints
Text.Print('WZ1_40', 5000, 1)
36@ = 1
goto @WUZI1_27783

:WUZI1_904
return 

:WUZI1_906
if 
  73@ == 1
goto_if_false @WUZI1_1165
if 
  72@ == 1
goto_if_false @WUZI1_1029
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_1029
if 
  not Char.IsGroupMember(35@, $Players_Group)
goto_if_false @WUZI1_1029
72@ = 0
Blip.Remove(108@)
108@ = Blip.AddForChar(35@)
Blip.SetAsFriendly(108@, True)
Blip.ChangeDisplay(107@, BlipDisplay.Neither)
Text.ClearPrints
Text.Print('WZ1_41', 4000, 1)

:WUZI1_1029
if 
  72@ == 0
goto_if_false @WUZI1_1165
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_1165
if 
  Char.IsGroupMember(35@, $Players_Group)
goto_if_false @WUZI1_1096
72@ = 1
goto @WUZI1_1165

:WUZI1_1096
if 
  Char.LocateAnyMeansChar2D($scplayer, 35@, 6.0, 6.0, False)
goto_if_false @WUZI1_1165
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, 35@)
Char.ListenToPlayerGroupCommands(35@, False)
Blip.Remove(108@)
Blip.ChangeDisplay(107@, BlipDisplay.Both)
72@ = 1

:WUZI1_1165
return 

:WUZI1_1167
191@ = 4
Streaming.LoadSpecialCharacter(1, 'WUZIMU')
Streaming.RequestModel(352)
Streaming.RequestModel(121)
Streaming.RequestModel(122)
Streaming.RequestModel(123)
Streaming.RequestModel(117)
Streaming.RequestModel(118)
Streaming.RequestModel(358)
Streaming.RequestModel(405)
Streaming.RequestModel(468)
Streaming.RequestModel(58)
Streaming.RequestAnimation("WUZI")
Streaming.RequestCarRecording(169)
Streaming.RequestCarRecording(139)

:WUZI1_1249
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(358)
  not Streaming.HasModelLoaded(121)
  not Streaming.HasModelLoaded(122)
  not Streaming.HasModelLoaded(123)
goto_if_false @WUZI1_1297
wait 0
goto @WUZI1_1249

:WUZI1_1297
if or
  not Streaming.HasModelLoaded(405)
  not Streaming.HasModelLoaded(468)
  not Streaming.HasModelLoaded(117)
  not Streaming.HasModelLoaded(118)
  not Streaming.HasModelLoaded(58)
goto_if_false @WUZI1_1341
wait 0
goto @WUZI1_1297

:WUZI1_1341
if or
  not Streaming.HasCarRecordingBeenLoaded(169)
  not Streaming.HasCarRecordingBeenLoaded(139)
goto_if_false @WUZI1_1373
wait 0
goto @WUZI1_1341

:WUZI1_1373
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Like, PedType.Mission2, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Mission2)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Mission1)
34@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
DecisionMakerChar.ClearEventResponse(34@, 31)
DecisionMakerChar.ClearEventResponse(34@, 9)
DecisionMakerChar.ClearEventResponse(34@, 49)
DecisionMakerChar.ClearEventResponse(34@, 15)
DecisionMakerChar.AddEventResponse(34@, 31, 1000, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse(34@, 9, 1000, 0.0, 100.0, 0.0, 0.0, False, True)
if 
  Object.DoesExist($g_BD_DOOR)
goto_if_false @WUZI1_1529
Object.Delete($g_BD_DOOR)

:WUZI1_1529
$g_BD_DOOR = Object.CreateNoOffset(#CT_GATEXR, -2179.353, 661.232, 50.214)
Object.SetCollisionDamageEffect($g_BD_DOOR, False)
Streaming.MarkModelAsNoLongerNeeded(#CT_GATEXR)
68@ = Object.CreateNoOffset(#CT_STALL1, -2213.413, 640.908, 48.43)
Object.SetHeading(68@, 90.0)
58@ = Object.CreateNoOffset(#CT_TABLE, -2201.436, 647.109, 48.413)
49@ = Object.CreateNoOffset(#CHINATGARAGEDOOR, -2184.415, 711.556, 54.523)
50@ = Object.CreateNoOffset(#CHINATGARAGEDOOR, -2178.87, 711.556, 54.523)
45@ = Object.CreateNoOffset(#TMP_BIN, -2183.968, 647.055, 49.185)
46@ = Object.CreateNoOffset(#TMP_BIN, -2172.813, 654.019, 49.185)
47@ = Object.CreateNoOffset(#TMP_BIN, -2172.813, 649.293, 49.185)
Object.SetHeading(46@, 270.0)
Object.SetHeading(47@, 270.0)
Object.SetHeading($g_BD_DOOR, 0.0)
Game.SetWantedMultiplier(0.2)
Player.AlterWantedLevel($player1, 0)
73@ = 1
Game.SwitchEmergencyServices(False)
77@ = 99
201@ = -2199.0
205@ = 645.4869
209@ = 48.4453
213@ = -2194.68
217@ = 646.1572
221@ = 48.4453
202@ = -2199.0
206@ = 640.8279
210@ = 48.4453
214@ = -2194.043
218@ = 638.7194
222@ = 48.4453
203@ = -2195.839
207@ = 635.439
211@ = 48.4453
215@ = -2189.367
219@ = 636.7801
223@ = 48.4453
204@ = -2213.005
208@ = 638.9453
212@ = 48.4459
216@ = -2204.778
220@ = 639.4221
224@ = 48.4453
35@ = Char.Create(PedType.Mission2, 290, -2155.462, 645.8904, 51.3516)
set_lvar_int_to_lvar_int 741@ = 35@
37@ = 1
Char.GiveWeapon(35@, WeaponType.MicroUzi, 5000)
Char.SetCurrentWeapon(35@, WeaponType.Unarmed)
Char.SetHeading(35@, 180.0)
Char.SetHealth(35@, 250)
Char.SetMaxHealth(35@, 250)
161@ = 250
Char.SetSuffersCriticalHits(35@, False)
Streaming.UnloadSpecialCharacter(1)
107@ = Blip.AddForCoord(-2244.995, 642.8972, 48.4077)
if 
  not Char.IsDead($scplayer)
goto_if_false @WUZI1_2203
Char.SetCoordinates($scplayer, -2155.266, 645.0895, 51.3516)
Char.SetHeading($scplayer, 270.0)

:WUZI1_2203
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_2268
Char.SetAnimGroup(35@, "BLINDMAN")
Char.SetDecisionMaker(35@, 34@)
Char.SetNeverTargeted(35@, True)
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, 35@)
72@ = 1

:WUZI1_2268
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Streaming.LoadSceneInDirection(-2155.266, 645.0895, 51.3516, 270.0)
Streaming.RequestCollision(-2155.0, 645.0)
Camera.DoFade(1000, Fade.In)
Streaming.LoadScene(-2155.266, 645.0895, 51.3)
71@ = 2
42@ = 0
return 

:WUZI1_2353
Text.LoadMissionText('WUZI1')
Player.SetControl($player1, False)
Streaming.SetAreaVisible(1)
Cutscene.Load('WOOZI1A')

:WUZI1_2386
if 
  not Cutscene.HasLoaded
goto_if_false @WUZI1_2410
wait 0
goto @WUZI1_2386

:WUZI1_2410
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:WUZI1_2419
if 
  not Cutscene.HasFinished
goto_if_false @WUZI1_2443
wait 0
goto @WUZI1_2419

:WUZI1_2443
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @WUZI1_2463
238@ = 1

:WUZI1_2463
Camera.DoFade(0, Fade.Out)

:WUZI1_2469
if 
  Camera.GetFadingStatus
goto_if_false @WUZI1_2493
wait 0
goto @WUZI1_2469

:WUZI1_2493
Cutscene.Clear
if 
  238@ == 0
goto_if_false @WUZI1_2613
Cutscene.Load('WOOZI1B')

:WUZI1_2524
if 
  not Cutscene.HasLoaded
goto_if_false @WUZI1_2548
wait 0
goto @WUZI1_2524

:WUZI1_2548
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:WUZI1_2557
if 
  not Cutscene.HasFinished
goto_if_false @WUZI1_2581
wait 0
goto @WUZI1_2557

:WUZI1_2581
Camera.DoFade(0, Fade.Out)

:WUZI1_2587
if 
  Camera.GetFadingStatus
goto_if_false @WUZI1_2611
wait 0
goto @WUZI1_2587

:WUZI1_2611
Cutscene.Clear

:WUZI1_2613
Streaming.SetAreaVisible(0)
Camera.SetFadingColor(0, 0, 0)
wait 0
return 

:WUZI1_2631
if 
  38@ == 0
goto_if_false @WUZI1_3754
if 
  75@ == 0
goto_if_false @WUZI1_2724
637@ = 1
638@ = 2
75@ = 1
if 
  Object.DoesExist($g_BD_DOOR)
goto_if_false @WUZI1_2724
Object.SetRotation($g_BD_DOOR, 0.0, 0.0, 330.0)

:WUZI1_2724
if 
  75@ == 1
goto_if_false @WUZI1_2783
if 
  637@ == 0
goto_if_false @WUZI1_2783
Text.Print('WZ1_1', 8000, 1)
75@ = 2

:WUZI1_2783
if 
  75@ == 2
goto_if_false @WUZI1_3754
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if 
  43@ == 0
goto_if_false @WUZI1_2871
if or
  627.0 > $player_y
  $player_y > 657.0
goto_if_false @WUZI1_2871
43@ = 1

:WUZI1_2871
if 
  43@ == 1
goto_if_false @WUZI1_2928
if 
  637@ == 0
goto_if_false @WUZI1_2928
637@ = 3
638@ = 2
43@ = 2

:WUZI1_2928
if 
  43@ == 2
goto_if_false @WUZI1_2974
if 
  -2164.0 > $player_x
goto_if_false @WUZI1_2974
43@ = 3

:WUZI1_2974
if 
  43@ == 3
goto_if_false @WUZI1_3031
if 
  637@ == 0
goto_if_false @WUZI1_3031
637@ = 5
638@ = 3
43@ = 4

:WUZI1_3031
if 
  43@ == 4
goto_if_false @WUZI1_3087
if and
  707.0 > $player_y
  $player_y > 587.0
goto_if_false @WUZI1_3087
43@ = 5

:WUZI1_3087
if 
  43@ == 5
goto_if_false @WUZI1_3144
if 
  637@ == 0
goto_if_false @WUZI1_3144
637@ = 9
638@ = 2
43@ = 6

:WUZI1_3144
if 
  43@ == 7
goto_if_false @WUZI1_3193
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_3193
Task.LeaveAnyCar($scplayer)
43@ = 8

:WUZI1_3193
if 
  43@ == 8
goto_if_false @WUZI1_3303
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @WUZI1_3269
Player.SetControl($player1, True)
43@ = 11
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_3262
Char.RemoveFromGroup(35@)

:WUZI1_3262
goto @WUZI1_3303

:WUZI1_3269
195@ = Char.GetScriptTaskStatus($scplayer, 1587)
if 
  is_int_lvar_equal_to_constant 195@ == 7
goto_if_false @WUZI1_3303
Task.LeaveAnyCar($scplayer)

:WUZI1_3303
if 
  239@ == 1
goto_if_false @WUZI1_3367
if and
  636@ == 1
  637@ == 0
goto_if_false @WUZI1_3367
637@ = 11
638@ = 2
239@ = 2

:WUZI1_3367
if 
  239@ == 2
goto_if_false @WUZI1_3440
if and
  636@ == 1
  637@ == 0
goto_if_false @WUZI1_3440
Text.Print('WZ1_B4', 5000, 1)
38@ = 1
239@ = 3

:WUZI1_3440
if 
  7 > 43@
goto_if_false @WUZI1_3754
if 
  72@ == 1
goto_if_false @WUZI1_3754
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_3754
if 
  Char.LocateAnyMeans3D($scplayer, -2248.077, 651.3163, 48.3815, 4.0, 4.0, 4.0, True)
goto_if_false @WUZI1_3754
if 
  not Char.LocateAnyMeans3D(35@, -2248.077, 651.3163, 48.3815, 6.0, 6.0, 6.0, False)
goto_if_false @WUZI1_3611
Text.PrintNow('WZ1_2', 1000, 1)
goto @WUZI1_3754

:WUZI1_3611
239@ = 1
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @WUZI1_3728
$car = Char.GetCarIsUsing($scplayer)
Player.SetControl($player1, False)
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 600)
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 600
if 
  Char.IsInAnyCar(35@)
goto_if_false @WUZI1_3728
132@ = Sequence.Open()
Task.Pause(-1, 1000)
Task.LeaveAnyCar(-1)
Sequence.Close(132@)
Char.PerformSequence(35@, 132@)
Sequence.Clear(132@)

:WUZI1_3728
636@ = 6
Blip.Remove(107@)
43@ = 7
73@ = 0

:WUZI1_3754
if 
  38@ == 1
goto_if_false @WUZI1_3878
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @WUZI1_3878
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_3878
132@ = Sequence.Open()
Task.Pause(-1, 300)
Task.FollowPathNodesToCoord(-1, -2244.439, 643.4277, 48.4375, 4, -2)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(132@)
Char.PerformSequence(35@, 132@)
Sequence.Clear(132@)
253@ = 20
38@ = 2

:WUZI1_3878
if 
  38@ == 2
goto_if_false @WUZI1_7074
if 
  240@ == 0
goto_if_false @WUZI1_4389
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if 
  646.0 > $player_y
goto_if_false @WUZI1_4389
243@ = Char.CreateRandom(-2182.969, 645.0695, 48.4453)
244@ = Char.CreateRandom(-2183.643, 642.2832, 48.4453)
245@ = Char.CreateRandom(-2190.507, 636.5036, 48.4429)
246@ = Char.CreateRandom(-2200.647, 641.6252, 48.4429)
247@ = Char.CreateRandom(-2200.622, 642.8997, 48.4429)
248@ = Char.CreateRandom(-2223.243, 644.5712, 48.4448)
249@ = Char.CreateRandom(-2235.814, 642.5659, 48.4472)
set_lvar_int_to_lvar_int 250@ = TIMERA
132@ = Sequence.Open()
Task.Pause(-1, 2000)
Task.SmartFleePoint(-1, -2181.969, 645.0695, 48.4453, 80.0, 30000)
Sequence.Close(132@)
Char.PerformSequence(243@, 132@)
Sequence.Clear(132@)
Task.GoStraightToCoord(244@, -2190.978, 646.0287, 48.4453, MoveState.Walk, -2)
Task.GoStraightToCoord(245@, -2192.964, 644.2189, 48.4453, MoveState.Walk, -2)
132@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, 247@)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 8.0, False, False, False, False, 6000)
Sequence.Close(132@)
Char.PerformSequence(246@, 132@)
Sequence.Clear(132@)
132@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, 246@)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 8.0, False, False, False, False, 6000)
Sequence.Close(132@)
Char.PerformSequence(247@, 132@)
Sequence.Clear(132@)
Task.GoStraightToCoord(248@, -2200.941, 644.4352, 48.4429, MoveState.Walk, -2)
Task.GoStraightToCoord(249@, -2213.171, 638.7413, 48.4496, MoveState.Walk, -2)
240@ = 1

:WUZI1_4389
if 
  240@ > 0
goto_if_false @WUZI1_5233
set_lvar_int_to_lvar_int 251@ = TIMERA
sub_int_lvar_from_int_lvar 251@ -= 250@
if 
  252@ == 0
goto_if_false @WUZI1_4511
if 
  251@ > 3500
goto_if_false @WUZI1_4511
if 
  not Char.IsDead(244@)
goto_if_false @WUZI1_4504
Task.SmartFleePoint(244@, -2181.969, 645.0695, 48.4453, 80.0, 30000)

:WUZI1_4504
252@ = 1

:WUZI1_4511
if 
  252@ == 1
goto_if_false @WUZI1_4657
if 
  251@ > 6000
goto_if_false @WUZI1_4657
if 
  not Char.IsDead(245@)
goto_if_false @WUZI1_4650
132@ = Sequence.Open()
Task.SmartFleePoint(-1, -2181.969, 645.0695, 48.4453, 80.0, 5000)
Task.FallAndGetUp(-1, False, 500)
Task.SmartFleePoint(-1, -2181.969, 645.0695, 48.4453, 80.0, 30000)
Sequence.Close(132@)
Char.PerformSequence(245@, 132@)
Sequence.Clear(132@)

:WUZI1_4650
252@ = 2

:WUZI1_4657
if 
  252@ == 2
goto_if_false @WUZI1_4745
if 
  251@ > 9000
goto_if_false @WUZI1_4745
if 
  not Char.IsDead(246@)
goto_if_false @WUZI1_4738
Task.SmartFleePoint(246@, -2181.969, 645.0695, 48.4453, 80.0, 30000)

:WUZI1_4738
252@ = 3

:WUZI1_4745
if 
  252@ == 3
goto_if_false @WUZI1_4891
if 
  251@ > 8000
goto_if_false @WUZI1_4891
if 
  not Char.IsDead(247@)
goto_if_false @WUZI1_4884
132@ = Sequence.Open()
Task.SmartFleePoint(-1, -2181.969, 645.0695, 48.4453, 80.0, 3000)
Task.FallAndGetUp(-1, False, 500)
Task.SmartFleePoint(-1, -2181.969, 645.0695, 48.4453, 80.0, 30000)
Sequence.Close(132@)
Char.PerformSequence(247@, 132@)
Sequence.Clear(132@)

:WUZI1_4884
252@ = 4

:WUZI1_4891
if 
  252@ == 4
goto_if_false @WUZI1_4979
if 
  251@ > 10000
goto_if_false @WUZI1_4979
if 
  not Char.IsDead(248@)
goto_if_false @WUZI1_4972
Task.SmartFleePoint(248@, -2181.969, 645.0695, 48.4453, 80.0, 30000)

:WUZI1_4972
252@ = 5

:WUZI1_4979
if 
  252@ == 5
goto_if_false @WUZI1_5067
if 
  251@ > 12000
goto_if_false @WUZI1_5067
if 
  not Char.IsDead(249@)
goto_if_false @WUZI1_5060
Task.SmartFleePoint(249@, -2181.969, 645.0695, 48.4453, 80.0, 30000)

:WUZI1_5060
252@ = 6

:WUZI1_5067
if 
  252@ == 6
goto_if_false @WUZI1_5233
if 
  251@ > 52000
goto_if_false @WUZI1_5233
130@ = 0

:WUZI1_5113
if 
  7 > 130@
goto_if_false @WUZI1_5226
if 
  not Char.IsDead(243@(130@,7i))
goto_if_false @WUZI1_5212
Task.Pause(243@(130@,7i), 1)
Char.MarkAsNoLongerNeeded(243@(130@,7i))
Task.WanderStandard(243@(130@,7i))
Path.SwitchPedRoadsOff(-2239.251, 636.6675, 53.1933, -2165.047, 720.0577, 49.5456)

:WUZI1_5212
130@ += 1
goto @WUZI1_5113

:WUZI1_5226
252@ = 7

:WUZI1_5233
if 
  240@ == 1
goto_if_false @WUZI1_5535
if and
  251@ > 12000
  22000 > 251@
goto_if_false @WUZI1_5535
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_5535
$x, $y, $z = Char.GetCoordinates(35@)
if and
  $x > -2240.276
  -2227.0 > $x
goto_if_false @WUZI1_5535
if 
  Char.LocateAnyMeansChar3D(35@, $scplayer, 8.0, 8.0, 8.0, False)
goto_if_false @WUZI1_5535
Char.ClearTasks(35@)
Task.Pause(35@, 1)
Path.FlushRoute
Path.ExtendRoute(-2232.999, 643.0717, 48.4466)
Path.ExtendRoute(-2213.888, 643.3788, 48.4462)
Path.ExtendRoute(-2172.958, 644.4861, 48.4453)
132@ = Sequence.Open()
Task.ScratchHead(-1)
Task.LookAtChar(-1, $scplayer, 5000)
Task.Pause(-1, 1000)
Task.Pause(-1, 0)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Task.FallAndGetUp(-1, False, 500)
Sequence.Close(132@)
Char.PerformSequence(35@, 132@)
Sequence.Clear(132@)
637@ = 69
638@ = 4
240@ = 2
253@ = 21

:WUZI1_5535
if 
  253@ == 1
goto_if_false @WUZI1_5786
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_5786
158@ = Char.GetScriptTaskStatus(35@, -1)
if 
  is_int_lvar_equal_to_constant 158@ == 7
goto_if_false @WUZI1_5786
if and
  637@ == 0
  636@ == 1
goto_if_false @WUZI1_5786
132@ = Sequence.Open()
Task.PlayAnim(-1, "WUZI_GRND_CHK", "WUZI", 4.0, False, False, False, False, -1)
Task.Pause(-1, 1000)
Task.TurnCharToFaceChar(-1, $scplayer)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, 4000)
Task.GoStraightToCoord(-1, -2214.083, 641.1605, 48.4489, MoveState.Walk, -2)
Sequence.Close(132@)
Char.PerformSequence(35@, 132@)
Sequence.Clear(132@)
DecisionMakerChar.ClearEventResponse(34@, 44)
637@ = 73
638@ = 3
253@ = 20

:WUZI1_5786
if 
  253@ == 20
goto_if_false @WUZI1_6150
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_6150
158@ = Char.GetScriptTaskStatus(35@, -1)
if 
  is_int_lvar_equal_to_constant 158@ == 7
goto_if_false @WUZI1_6150
if and
  637@ == 0
  636@ == 1
goto_if_false @WUZI1_6150
Path.FlushRoute
Path.ExtendRoute(-2232.999, 643.0717, 48.4466)
Path.ExtendRoute(-2213.888, 643.3788, 48.4462)
Path.ExtendRoute(-2172.958, 644.4861, 48.4453)
if 
  Char.LocateAnyMeansChar3D(35@, $scplayer, 13.0, 13.0, 10.0, False)
goto_if_false @WUZI1_5976
254@ = 1
goto @WUZI1_5983

:WUZI1_5976
254@ = 0

:WUZI1_5983
132@ = Sequence.Open()
Task.PlayAnim(-1, "WUZI_GRND_CHK", "WUZI", 4.0, False, False, False, False, -1)
Task.Pause(-1, 1000)
if 
  254@ == 1
goto_if_false @WUZI1_6096
Task.TurnCharToFaceChar(-1, $scplayer)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, 3500)

:WUZI1_6096
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Sequence.Close(132@)
Char.PerformSequence(35@, 132@)
Sequence.Clear(132@)
DecisionMakerChar.ClearEventResponse(34@, 44)
637@ = 73
638@ = 3
253@ = 21

:WUZI1_6150
if 
  253@ == 21
goto_if_false @WUZI1_6488
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_6488
158@ = Char.GetScriptTaskStatus(35@, 1560)
$x, $y, $z = Char.GetCoordinates(35@)
if 
  $x > -2181.276
goto_if_false @WUZI1_6292
132@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2172.958, 644.4861, 48.4453, MoveState.Run, -2)
Task.FallAndGetUp(-1, False, 500)
Sequence.Close(132@)
Char.PerformSequence(35@, 132@)
Sequence.Clear(132@)
253@ = 22

:WUZI1_6292
if and
  -2243.0 > $x
  257@ == 1
goto_if_false @WUZI1_6435
257@ = 2
Path.FlushRoute
Path.ExtendRoute(-2244.831, 643.3638, 48.439)
Path.ExtendRoute(-2232.999, 643.0717, 48.4466)
Path.ExtendRoute(-2213.888, 643.3788, 48.4462)
Path.ExtendRoute(-2172.958, 644.4861, 48.4453)
132@ = Sequence.Open()
Task.Pause(-1, 1000)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Sequence.Close(132@)
Char.PerformSequence(35@, 132@)
Sequence.Clear(132@)

:WUZI1_6435
if 
  $x > -2240.0
goto_if_false @WUZI1_6488
if or
  257@ == 0
  257@ == 2
goto_if_false @WUZI1_6488
257@ = 1

:WUZI1_6488
if 
  253@ == 22
goto_if_false @WUZI1_6633
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_6633
158@ = Char.GetScriptTaskStatus(35@, 1560)
if 
  is_int_lvar_equal_to_constant 158@ == 1
goto_if_false @WUZI1_6633
if 
  255@ == 0
goto_if_false @WUZI1_6633
132@ = Char.GetSequenceProgress(35@)
if or
  132@ == 1
  is_int_lvar_equal_to_constant 158@ == 7
goto_if_false @WUZI1_6633
256@ = Char.SetSayContextImportant(35@, 340, True, False, False)
253@ = 23
255@ = 1

:WUZI1_6633
if 
  253@ == 23
goto_if_false @WUZI1_6784
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_6784
158@ = Char.GetScriptTaskStatus(35@, 1560)
if 
  is_int_lvar_equal_to_constant 158@ == 7
goto_if_false @WUZI1_6784
132@ = Sequence.Open()
Task.ScratchHead(-1)
Task.LookAtChar(-1, $scplayer, 5000)
Task.Pause(-1, 4000)
Task.GoStraightToCoord(-1, -2176.184, 653.9911, 48.4453, MoveState.Walk, -2)
Sequence.Close(132@)
Char.PerformSequence(35@, 132@)
Sequence.Clear(132@)
637@ = 78
638@ = 4
253@ = 10

:WUZI1_6784
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_7074
if 
  78@ == 0
goto_if_false @WUZI1_6856
if 
  not Char.IsInAnyCar(35@)
goto_if_false @WUZI1_6856
108@ = Blip.AddForChar(35@)
Blip.SetAsFriendly(108@, True)
78@ = 1

:WUZI1_6856
if and
  637@ == 0
  636@ == 1
goto_if_false @WUZI1_7074
if or
  Char.LocateAnyMeans3D($scplayer, -2175.872, 659.7667, 49.4793, 6.0, 6.0, 6.0, False)
  Char.IsInArea3D($scplayer, -2191.513, 711.8201, 63.4591, -2171.859, 648.7307, 48.1132, False)
goto_if_false @WUZI1_7074
71@ = 3
42@ = 0
set_lvar_int_to_lvar_int 266@ = TIMERA
266@ += 1500
Char.RemoveFromGroup(35@)
Blip.Remove(108@)
130@ = 0

:WUZI1_7013
if 
  7 > 130@
goto_if_false @WUZI1_7074
if 
  Char.DoesExist(243@(130@,7i))
goto_if_false @WUZI1_7060
Char.Delete(243@(130@,7i))

:WUZI1_7060
130@ += 1
goto @WUZI1_7013

:WUZI1_7074
return 

:WUZI1_7076
Game.SetWantedMultiplier(0.1)
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
Game.SetPoliceIgnorePlayer($player1, True)
if 
  92@ == 1
goto_if_false @WUZI1_7122

:WUZI1_7122
if 
  39@ == 0
goto_if_false @WUZI1_7171
39@ = 1
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @WUZI1_7171
40@ = 1

:WUZI1_7171
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @WUZI1_7253
if 
  40@ == 0
goto_if_false @WUZI1_7246
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 266@
goto_if_false @WUZI1_7246
42@ = 13
159@ = 0
636@ = 6

:WUZI1_7246
goto @WUZI1_7278

:WUZI1_7253
if 
  40@ == 1
goto_if_false @WUZI1_7278
40@ = 0

:WUZI1_7278
if 
  42@ == 0
goto_if_false @WUZI1_8405
Camera.SetNearClip(0.1)
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
World.SetUsesCollisionOfClosestObjectOfType(-2175.213, 662.718, 50.8582, 10.5, #CT_GATEXR, False)
196@ = Char.GetCurrentWeapon($scplayer)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.SetFixedPosition(-2172.251, 660.9875, 48.5695, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2173.039, 660.4017, 48.7593, SwitchType.JumpCut)
Object.SetCollisionDamageEffect($g_BD_DOOR, True)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Streaming.RequestCarRecording(169)
100@ = Car.Create(405, -2183.575, 705.0761, 52.8984)
99@ = Car.Create(405, -2174.429, 703.2332, 52.8918)
Car.SetHeading(99@, 218.7637)
Car.SetHeading(100@, 347.2325)
Car.FreezePosition(99@, True)
Car.FreezePosition(100@, True)
Car.DamageDoor(99@, CarDoor.Hood)
Car.DamageDoor(99@, CarDoor.Hood)
Car.DamageDoor(99@, CarDoor.Hood)
Car.DamageDoor(99@, CarDoor.RightFrontDoor)
Car.DamageDoor(99@, CarDoor.RightFrontDoor)
Car.DamageDoor(99@, CarDoor.RightFrontDoor)
Car.DamageDoor(99@, CarDoor.RightRearDoor)
Car.DamageDoor(99@, CarDoor.Trunk)
Car.DamageDoor(99@, CarDoor.Trunk)
Car.DamageDoor(99@, CarDoor.Trunk)
Car.DamageDoor(99@, CarDoor.LeftFrontDoor)
Car.DamageDoor(99@, CarDoor.LeftFrontDoor)
Car.DamagePanel(99@, 1)
Car.DamagePanel(99@, 1)
Car.DamagePanel(99@, 5)
Car.DamagePanel(99@, 4)
Car.DamagePanel(99@, 4)
Car.DamagePanel(99@, 1)
Car.DamagePanel(99@, 1)
Car.DamagePanel(99@, 5)
Car.DamageDoor(100@, CarDoor.Hood)
Car.DamageDoor(100@, CarDoor.Hood)
Car.DamageDoor(100@, CarDoor.RightFrontDoor)
Car.DamageDoor(100@, CarDoor.RightFrontDoor)
Car.DamageDoor(100@, CarDoor.RightRearDoor)
Car.DamagePanel(100@, 1)
Car.DamagePanel(100@, 1)
Car.DamagePanel(100@, 5)
Car.DamageDoor(100@, CarDoor.Trunk)
Car.DamageDoor(100@, CarDoor.Trunk)
Car.DamageDoor(100@, CarDoor.Hood)
Car.DamageDoor(100@, CarDoor.Hood)
Car.DamageDoor(100@, CarDoor.LeftFrontDoor)
Car.DamageDoor(100@, CarDoor.LeftFrontDoor)
Car.DamagePanel(100@, 1)
Car.DamagePanel(100@, 1)
Car.DamagePanel(100@, 5)
Car.OpenDoor(99@, CarDoor.RightFrontDoor)
Car.OpenDoor(99@, CarDoor.RightRearDoor)
Car.OpenDoor(100@, CarDoor.RightFrontDoor)
Car.BurstTire(100@, 1)
Car.PopBoot(100@)
Car.ForceLights(99@, CarLights.ForceOn)
Car.ExplodeInCutsceneShakeAndBits(99@, False, False, False)
Car.ExplodeInCutsceneShakeAndBits(100@, False, False, False)
World.ClearArea(-2180.443, 703.3992, 55.7186, 20.0, False)
World.ClearArea(-2175.947, 660.2386, 49.7032, 10.0, False)
258@ = ScriptFire.Start(-2183.575, 705.0761, 52.8984, 3, 2)
259@ = ScriptFire.Start(-2174.429, 703.2332, 52.8918, 5, 2)
Game.SetMaxFireGenerations(0)
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_8350
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately(35@)
Char.SetCoordinates(35@, -2176.33, 654.2678, 48.4453)
Char.SetCoordinates($scplayer, -2175.33, 653.2678, 48.4453)
Char.SetHeading($scplayer, 280.0)
Char.SetHeading(35@, 270.0)
Task.GoStraightToCoord($scplayer, -2173.952, 657.6135, 49.8762, MoveState.Walk, -2)
132@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2174.469, 658.379, 48.4453, MoveState.Walk, -2)
Task.AchieveHeading(-1, 72.0)
Task.PlayAnim(-1, "WUZI_GREET_WUZI", "WUZI", 4.0, False, True, True, False, -1)
Sequence.Close(132@)
Char.PerformSequence(35@, 132@)
Sequence.Clear(132@)
754@ = 1
$wz1_health_bar = 1
285@ = 15
329@ = 12
289@ = 395
290@ = 4202
291@ = 7380
292@ = 13000
293@ = 14516
294@ = 17352
295@ = 19617
296@ = 21861
297@ = 23540
298@ = 26894
299@ = 28934
300@ = 33619
309@ = 15
310@ = 16
311@ = 17
312@ = 18
313@ = 19
314@ = 20
315@ = 21
316@ = 22
317@ = 23
318@ = 24
319@ = 25
320@ = 26

:WUZI1_8350
World.ClearAreaOfCars(-2168.531, 717.8694, 68.3455, -2254.379, 608.9255, 44.7364)
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 7880
42@ = 1

:WUZI1_8405
if 
  42@ == 1
goto_if_false @WUZI1_8629
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_8629
Path.FlushRoute
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_8525
Path.ExtendRoute(-2175.939, 662.5935, 48.7831)
Path.ExtendRoute(-2175.389, 658.0797, 48.4453)
132@ = Sequence.Open()
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Sequence.Close(132@)
Char.PerformSequence(35@, 132@)
Sequence.Clear(132@)

:WUZI1_8525
Path.FlushRoute
Path.ExtendRoute(-2174.71, 658.746, 48.4453)
Path.ExtendRoute(-2175.939, 662.5935, 48.7831)
132@ = Sequence.Open()
Task.Pause(-1, 1200)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Sequence.Close(132@)
Char.PerformSequence($scplayer, 132@)
Sequence.Clear(132@)
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3000
42@ = 2
92@ = 1

:WUZI1_8629
if 
  42@ == 2
goto_if_false @WUZI1_8673
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_8673
42@ = 3

:WUZI1_8673
if 
  42@ == 3
goto_if_false @WUZI1_9104
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_9104
Camera.SetFixedPosition(-2176.838, 696.095, 53.828, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2178.171, 693.774, 54.725, SwitchType.JumpCut)
134@ = Char.Create(PedType.CivMale, 117, -2177.462, 698.151, 52.923)
135@ = Char.Create(PedType.CivMale, 118, -2182.442, 704.3199, 52.8984)
136@ = Char.Create(PedType.CivMale, 117, -2176.552, 702.9572, 52.8984)
137@ = Char.Create(PedType.CivMale, 118, -2178.468, 707.6988, 52.8971)
Char.SetHeading(134@, 77.5)
Char.SetHeading(135@, 229.921)
Char.SetHeading(136@, 148.6859)
Char.SetHeading(137@, 12.4516)
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(118)
Task.Die(135@)
Task.Die(136@)
Task.Die(137@)
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_9081
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately(35@)
Char.SetCoordinates($scplayer, -2177.034, 690.892, 52.9)
Char.SetCoordinates(35@, -2177.995, 690.775, 52.9)
Char.SetHeading(35@, 0.0)
Char.SetHeading($scplayer, 0.0)
Task.PlayAnim($scplayer, "CS_PLYR_PT1", "WUZI", 1000.0, False, True, True, False, -2)
Task.PlayAnim(35@, "CS_WUZI_PT1", "WUZI", 1000.0, False, True, True, False, -2)

:WUZI1_9081
42@ = 4
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3000

:WUZI1_9104
if 
  42@ == 4
goto_if_false @WUZI1_9263
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_9263
if 
  not Char.IsDead(134@)
goto_if_false @WUZI1_9263
Char.SetCoordinates(134@, -2177.602, 698.151, 53.0)
Char.SetHeading(134@, 77.5)
Task.PlayAnimNonInterruptable(134@, "CS_DEAD_GUY", "WUZI", 1000.0, False, False, False, True, -2)
Char.FreezePosition(134@, True)
Char.SetCollision(134@, False)
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 766
42@ = 5

:WUZI1_9263
if 
  42@ == 5
goto_if_false @WUZI1_9528
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_9528
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_9528
42@ = 6
Camera.SetFixedPosition(-2178.133, 693.2726, 54.0799, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2178.13, 694.2693, 54.0, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, -2177.034, 694.913, 52.87)
Char.SetCoordinates(35@, -2177.994, 696.476, 52.87)
Char.SetHeading(35@, 0.0)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately(35@)
Task.PlayAnimNonInterruptable($scplayer, "CS_PLYR_PT2", "WUZI", 1000.0, False, True, True, False, -2)
Task.PlayAnimNonInterruptable(35@, "CS_WUZI_PT2", "WUZI", 1000.0, False, True, True, False, -2)
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2234

:WUZI1_9528
if 
  42@ == 6
goto_if_false @WUZI1_9677
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_9677
if 
  not Char.IsDead(134@)
goto_if_false @WUZI1_9677
Char.SetCoordinates(134@, -2177.602, 698.151, 53.0)
Task.PlayAnimNonInterruptable(134@, "CS_DEAD_GUY", "WUZI", 1000.0, False, False, False, True, -2)
Char.FreezePosition(134@, True)
Char.SetCollision(134@, False)
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3833
42@ = 7

:WUZI1_9677
if 
  42@ == 7
goto_if_false @WUZI1_10092
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_10092
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_10092
Camera.SetFixedPosition(-2177.798, 695.7769, 54.2318, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2177.627, 696.7596, 54.3015, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3000
42@ = 8
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_9830
Char.GiveWeapon(35@, WeaponType.MicroUzi, 5000)

:WUZI1_9830
101@ = Car.Create(405, -2177.524, 642.8537, 48.4453)
92@ = 0
Object.SetHeading($g_BD_DOOR, 0.0)
138@ = Char.CreateInsideCar(101@, PedType.Mission1, 121)
139@ = Char.CreateAsPassenger(101@, PedType.Mission1, 122, 0)
140@ = Char.CreateAsPassenger(101@, PedType.Mission1, 123, 1)
141@ = Char.CreateAsPassenger(101@, PedType.Mission1, 122, 2)
Char.GiveWeapon(138@, WeaponType.MicroUzi, 500)
Char.GiveWeapon(139@, WeaponType.MicroUzi, 500)
Char.GiveWeapon(140@, WeaponType.MicroUzi, 500)
Char.GiveWeapon(141@, WeaponType.MicroUzi, 500)
Char.SetAccuracy(138@, 60)
Char.SetAccuracy(139@, 60)
Char.SetAccuracy(140@, 60)
Char.SetAccuracy(141@, 60)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Mission2)
Car.SetForwardSpeed(101@, 20.0)
Char.SetDecisionMaker(138@, 34@)
Char.SetDecisionMaker(139@, 34@)
Char.SetDecisionMaker(140@, 34@)
Char.SetDecisionMaker(141@, 34@)
156@ = Char.Create(PedType.CivMale, 117, -2180.265, 712.9368, 52.905)
set_lvar_int_to_lvar_int 742@ = 156@
Char.SetHeading(156@, 180.0)

:WUZI1_10092
if 
  42@ == 8
goto_if_false @WUZI1_10220
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_10220
if 
  not Char.IsDead(156@)
goto_if_false @WUZI1_10220
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_10179
Char.SetCurrentWeapon(35@, WeaponType.MicroUzi)
Task.AimGunAtChar(35@, 156@, 4000)

:WUZI1_10179
Task.AimGunAtChar($scplayer, 156@, 4000)
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2000
42@ = 9
260@ = 1

:WUZI1_10220
if 
  42@ == 9
goto_if_false @WUZI1_10432
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_10432
if 
  not Char.IsDead(156@)
goto_if_false @WUZI1_10406
Task.HandsUp(156@, 5000)
132@ = Sequence.Open()
Task.Pause(-1, 6000)
Task.PlayAnim(-1, "FLEE_LKAROUND_01", "PED", 8.0, False, False, False, False, -1)
Sequence.Close(132@)
Char.PerformSequence($scplayer, 132@)
Sequence.Clear(132@)
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 8000
42@ = 10
263@ = 3
set_lvar_int_to_lvar_int 262@ = TIMERA
262@ += 8500
261@ = 1

:WUZI1_10406
set_lvar_int_to_constant 281@ = 35800
set_lvar_int_to_lvar_int 283@ = TIMERA
283@ += 6000

:WUZI1_10432
if 
  260@ == 1
goto_if_false @WUZI1_10595
if 
  263@ == 0
goto_if_false @WUZI1_10495
Audio.ReportMissionAudioEventAtPosition(-2178.554, 704.7785, 54.2349, 1153)
263@ = 1

:WUZI1_10495
if 
  Object.Slide(50@, -2178.87, 711.556, 57.523, 0.0, 0.0, 0.08, False)
goto_if_false @WUZI1_10595
if 
  263@ == 1
goto_if_false @WUZI1_10595
Audio.ReportMissionAudioEventAtPosition(-2178.554, 704.7785, 54.2349, 1154)
263@ = 2
260@ = 2

:WUZI1_10595
if 
  261@ == 1
goto_if_false @WUZI1_10639
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 262@
goto_if_false @WUZI1_10639
261@ = 2

:WUZI1_10639
if 
  261@ == 2
goto_if_false @WUZI1_10795
if 
  263@ == 3
goto_if_false @WUZI1_10702
Audio.ReportMissionAudioEventAtPosition(-2178.554, 704.7785, 54.2349, 1153)
263@ = 4

:WUZI1_10702
if 
  Object.Slide(50@, -2178.87, 711.556, 54.523, 0.0, 0.0, 0.08, False)
goto_if_false @WUZI1_10795
if 
  263@ == 4
goto_if_false @WUZI1_10795
Audio.ReportMissionAudioEventAtPosition(-2178.554, 704.7785, 54.2349, 1154)
263@ = 5

:WUZI1_10795
if 
  42@ == 10
goto_if_false @WUZI1_10855
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_10855
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 1000
42@ = 11

:WUZI1_10855
if 
  42@ == 11
goto_if_false @WUZI1_11025
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_11025
Camera.SetFixedPosition(-2172.674, 674.1689, 53.0772, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2173.268, 673.4052, 52.8255, SwitchType.JumpCut)
if 
  not Char.IsDead(134@)
goto_if_false @WUZI1_10966
Char.SetHealth(134@, 0)

:WUZI1_10966
if and
  not Car.IsDead(101@)
  not Char.IsDead(138@)
goto_if_false @WUZI1_10995
Car.StartPlayback(101@, 169)

:WUZI1_10995
Object.SetCollisionDamageEffect($g_BD_DOOR, True)
42@ = 14
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 600

:WUZI1_11025
if 
  42@ == 14
goto_if_false @WUZI1_11112
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_11112
Object.Break($g_BD_DOOR, 0)
Audio.ReportMissionAudioEventAtPosition(-2177.422, 662.1031, 51.0185, 1141)
42@ = 12
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2800

:WUZI1_11112
if 
  42@ == 12
goto_if_false @WUZI1_11245
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_11245
if 
  not Char.IsDead(138@)
goto_if_false @WUZI1_11245
if 
  not Car.IsDead(101@)
goto_if_false @WUZI1_11245
Car.TaskEveryoneLeave(101@)
42@ = 13
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2000
Path.FlushRoute
Path.ExtendRoute(-2178.472, 676.4617, 48.8898)
Path.ExtendRoute(-2178.472, 695.4617, 52.8898)

:WUZI1_11245
if 
  42@ == 13
goto_if_false @WUZI1_11410
if 
  not Char.IsDead(138@)
goto_if_false @WUZI1_11361
if 
  not Char.IsInAnyCar(138@)
goto_if_false @WUZI1_11361
158@ = Char.GetScriptTaskStatus(138@, 1560)
if 
  is_int_lvar_equal_to_constant 158@ == 7
goto_if_false @WUZI1_11361
132@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Sequence.Close(132@)
Char.PerformSequence(138@, 132@)
Sequence.Clear(132@)

:WUZI1_11361
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_11410
42@ = 15
Camera.DoFade(1000, Fade.Out)
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 1000

:WUZI1_11410
if 
  42@ == 15
goto_if_false @WUZI1_13133
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_13133
92@ = 0
if 
  Object.DoesExist($g_BD_DOOR)
goto_if_false @WUZI1_11475
Object.Delete($g_BD_DOOR)

:WUZI1_11475
if 
  not Car.IsDead(101@)
goto_if_false @WUZI1_11521
Car.SetCoordinates(101@, -2174.727, 673.9934, 51.8769)
Car.SetHeading(101@, 337.6978)

:WUZI1_11521
Streaming.RequestModel(117)
Streaming.RequestModel(118)
Streaming.RequestCarRecording(169)

:WUZI1_11534
if or
  not Streaming.HasModelLoaded(117)
  not Streaming.HasModelLoaded(118)
  not Streaming.HasCarRecordingBeenLoaded(169)
goto_if_false @WUZI1_11569
wait 0
goto @WUZI1_11534

:WUZI1_11569
if 
  Car.IsDead(101@)
goto_if_false @WUZI1_11608
101@ = Car.Create(405, -2174.727, 673.9934, 51.8769)

:WUZI1_11608
if 
  not Car.IsDead(101@)
goto_if_false @WUZI1_11653
if 
  not Car.IsPlaybackGoingOn(101@)
goto_if_false @WUZI1_11648
Car.StartPlayback(101@, 169)

:WUZI1_11648
Car.SkipToEndAndStopPlayback(101@)

:WUZI1_11653
Char.Delete(138@)
Char.Delete(139@)
Char.Delete(140@)
Char.Delete(141@)
if 
  not Char.IsDead(138@)
goto_if_false @WUZI1_11759
if 
  Char.IsInAnyCar(138@)
goto_if_false @WUZI1_11732
Char.WarpFromCarToCoord(138@, -2176.649, 669.7497, 50.7274)
goto @WUZI1_11752

:WUZI1_11732
Char.SetCoordinates(138@, -2176.649, 669.7497, 50.7274)

:WUZI1_11752
goto @WUZI1_11783

:WUZI1_11759
138@ = Char.Create(PedType.Mission1, 121, -2176.649, 669.7497, 50.7274)

:WUZI1_11783
Char.SetHeading(138@, 34.4985)
if 
  not Char.IsDead(139@)
goto_if_false @WUZI1_11879
if 
  Char.IsInAnyCar(139@)
goto_if_false @WUZI1_11852
Char.WarpFromCarToCoord(139@, -2172.771, 671.1902, 51.1101)
goto @WUZI1_11872

:WUZI1_11852
Char.SetCoordinates(139@, -2172.771, 671.1902, 51.1101)

:WUZI1_11872
goto @WUZI1_11903

:WUZI1_11879
139@ = Char.Create(PedType.Mission1, 122, -2172.771, 671.1902, 51.1101)

:WUZI1_11903
Char.SetHeading(139@, 28.6454)
if 
  not Char.IsDead(140@)
goto_if_false @WUZI1_11999
if 
  Char.IsInAnyCar(140@)
goto_if_false @WUZI1_11972
Char.WarpFromCarToCoord(140@, -2176.143, 676.2279, 52.4792)
goto @WUZI1_11992

:WUZI1_11972
Char.SetCoordinates(140@, -2176.143, 676.2279, 52.4792)

:WUZI1_11992
goto @WUZI1_12023

:WUZI1_11999
140@ = Char.Create(PedType.Mission1, 123, -2176.143, 676.2279, 52.4792)

:WUZI1_12023
Char.SetHeading(140@, 6.8518)
if 
  not Char.IsDead(141@)
goto_if_false @WUZI1_12119
if 
  Char.IsInAnyCar(141@)
goto_if_false @WUZI1_12092
Char.WarpFromCarToCoord(141@, -2177.82, 675.736, 52.3458)
goto @WUZI1_12112

:WUZI1_12092
Char.SetCoordinates(141@, -2177.82, 675.736, 52.3458)

:WUZI1_12112
goto @WUZI1_12143

:WUZI1_12119
141@ = Char.Create(PedType.Mission1, 122, -2177.82, 675.736, 52.3458)

:WUZI1_12143
Char.SetHeading(141@, 6.2257)
Char.GiveWeapon(138@, WeaponType.MicroUzi, 5000)
Char.GiveWeapon(139@, WeaponType.MicroUzi, 5000)
Char.GiveWeapon(140@, WeaponType.MicroUzi, 5000)
Char.GiveWeapon(141@, WeaponType.MicroUzi, 5000)
Char.SetAccuracy(138@, 60)
Char.SetAccuracy(139@, 60)
Char.SetAccuracy(140@, 60)
Char.SetAccuracy(141@, 60)
Char.SetInformRespectedFriends(138@, 30.0, 8)
Char.SetInformRespectedFriends(139@, 30.0, 8)
Char.SetInformRespectedFriends(140@, 30.0, 8)
Char.SetInformRespectedFriends(141@, 30.0, 8)
Path.FlushRoute
Path.ExtendRoute(-2178.004, 685.6806, 52.8942)
Task.FollowPointRoute(141@, 6, RouteMode.Once)
Path.FlushRoute
Path.ExtendRoute(-2176.004, 685.6806, 52.8942)
Task.FollowPointRoute(140@, 6, RouteMode.Once)
Char.SetSenseRange(138@, 40.0)
Char.SetSenseRange(139@, 40.0)
Char.SetSenseRange(140@, 40.0)
Char.SetSenseRange(141@, 40.0)
Char.Delete(134@)
Char.Delete(135@)
Char.Delete(136@)
Char.Delete(137@)
111@ = Blip.AddForChar(138@)
112@ = Blip.AddForChar(139@)
113@ = Blip.AddForChar(140@)
114@ = Blip.AddForChar(141@)
134@ = Char.Create(PedType.CivMale, 117, -2177.946, 670.3361, 50.8814)
135@ = Char.Create(PedType.CivMale, 118, -2182.442, 704.3199, 52.8984)
136@ = Char.Create(PedType.CivMale, 117, -2176.552, 702.9572, 52.8984)
137@ = Char.Create(PedType.CivMale, 118, -2178.468, 707.6988, 52.8971)
Char.SetHeading(134@, 77.5)
Char.SetHeading(135@, 229.921)
Char.SetHeading(136@, 148.6859)
Char.SetHeading(137@, 12.4516)
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(118)
Task.Die(134@)
Task.Die(135@)
Task.Die(136@)
Task.Die(137@)
Char.SetDecisionMaker(138@, 34@)
Char.SetDecisionMaker(139@, 34@)
Char.SetDecisionMaker(140@, 34@)
Char.SetDecisionMaker(141@, 34@)
Char.SetAllowedToDuck(138@, False)
Char.SetAllowedToDuck(139@, False)
Char.SetStayInSamePlace(138@, True)
Char.SetStayInSamePlace(139@, True)
if 
  not Car.IsDead(99@)
goto_if_false @WUZI1_12695
99@ = Car.Create(405, -2174.429, 703.2332, 52.8918)
Car.SetHeading(99@, 218.7637)
Car.ExplodeInCutscene(99@)

:WUZI1_12695
if 
  not Car.IsDead(100@)
goto_if_false @WUZI1_12749
100@ = Car.Create(405, -2183.575, 705.0761, 52.8984)
Car.SetHeading(100@, 347.2325)
Car.ExplodeInCutscene(100@)

:WUZI1_12749
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(121)
Streaming.MarkModelAsNoLongerNeeded(123)
if 
  Object.DoesExist(50@)
goto_if_false @WUZI1_12798
Object.SetCoordinates(50@, -2178.87, 711.556, 54.523)

:WUZI1_12798
wait 1000
Text.ClearPrints
World.SetUsesCollisionOfClosestObjectOfType(-2175.213, 662.718, 50.8582, 10.5, #CT_GATEXR, True)
World.SetUsesCollisionOfClosestObjectOfType(-2175.213, 662.718, 50.8582, 10.5, #CHINA_TOWN_GATEB, True)
71@ = 4
38@ = 0
200@ = 1
77@ = 0
96@ = 1
$wz1_health_bar = 0
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_13016
Char.ClearTasksImmediately(35@)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -2178.972, 704.3181, 52.8971)
Char.SetCoordinates(35@, -2180.423, 703.6827, 52.8971)
Char.SetHeading($scplayer, 190.0)
Char.SetHeading(35@, 196.0)
Char.SetHealth(35@, 250)
Char.SetCurrentWeapon(35@, WeaponType.MicroUzi)

:WUZI1_13016
$7246 = 100
Hud.DisplayCounterWithString($7246, CounterDisplay.Bar, 'WZ1_19')
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_13082
108@ = Blip.AddForChar(35@)
Blip.SetAsFriendly(108@, True)
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, 35@)

:WUZI1_13082
Char.SetCurrentWeapon($scplayer, 196@)
set_lvar_int_to_lvar_int 277@ = TIMERA
277@ += 3000
754@ = 0
Streaming.RemoveAnimation("WUZI")
Camera.DoFade(1000, Fade.In)
wait 1000

:WUZI1_13133
return 

:WUZI1_13135
if 
  264@ == 0
goto_if_false @WUZI1_13192
if 
  637@ == 0
goto_if_false @WUZI1_13192
637@ = 30
264@ = 1
73@ = 1

:WUZI1_13192
if 
  264@ == 1
goto_if_false @WUZI1_13251
if 
  637@ == 0
goto_if_false @WUZI1_13251
Text.Print('WZ1_B1', 4000, 1)
264@ = 2

:WUZI1_13251
if 
  72@ == 1
goto_if_false @WUZI1_13647
if 
  636@ == 1
goto_if_false @WUZI1_13647
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_13647
if 
  265@ == 0
goto_if_false @WUZI1_13429
if and
  not Char.IsInArea3D($scplayer, -2170.185, 719.1667, 63.8637, -2239.236, 594.3701, 37.2048, False)
  not Char.IsInArea3D(35@, -2170.185, 719.1667, 63.8637, -2239.236, 594.3701, 37.2048, False)
goto_if_false @WUZI1_13429
Text.Print('WZ1_B3', 5000, 1)
265@ = 1

:WUZI1_13429
if 
  265@ == 1
goto_if_false @WUZI1_13647
if and
  Char.IsInArea3D($scplayer, -2170.185, 719.1667, 63.8637, -2239.236, 594.3701, 37.2048, False)
  Char.IsInArea3D(35@, -2170.185, 719.1667, 63.8637, -2239.236, 594.3701, 37.2048, False)
goto_if_false @WUZI1_13539
265@ = 0

:WUZI1_13539
if and
  not Char.IsInArea3D($scplayer, -2100.185, 779.1667, 93.8637, -2279.236, 534.3701, 7.2048, False)
  not Char.IsInArea3D(35@, -2100.185, 779.1667, 93.8637, -2279.236, 534.3701, 7.2048, False)
goto_if_false @WUZI1_13647
Text.Print('VAL_A9', 4000, 1)
36@ = 1

:WUZI1_13647
if 
  Char.IsInArea3D($scplayer, -2179.776, 654.5721, 51.7195, -2172.287, 632.6477, 48.3312, False)
goto_if_false @WUZI1_13769
71@ = 5
42@ = 8
77@ = 7
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 2000
39@ = 0
40@ = 0
754@ = 1
set_lvar_int_to_lvar_int 266@ = TIMERA
266@ += 2500

:WUZI1_13769
return 

:WUZI1_13771
if 
  39@ == 0
goto_if_false @WUZI1_13816
39@ = 1
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @WUZI1_13816
40@ = 1

:WUZI1_13816
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @WUZI1_13894
if 
  40@ == 0
goto_if_false @WUZI1_13887
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 266@
goto_if_false @WUZI1_13887
42@ = 8
159@ = 0
636@ = 6

:WUZI1_13887
goto @WUZI1_13919

:WUZI1_13894
if 
  40@ == 1
goto_if_false @WUZI1_13919
40@ = 0

:WUZI1_13919
if 
  42@ == 0
goto_if_false @WUZI1_14440
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_14440
42@ = 1
637@ = 47
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2176.937, 641.8041, 49.2832, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2177.295, 642.7374, 49.3052, SwitchType.JumpCut)
World.ClearAreaOfCars(-2179.249, 659.2075, 50.1335, -2172.263, 641.8954, 50.377)
if 
  not Car.IsDead(101@)
goto_if_false @WUZI1_14158
if 
  Car.IsInArea3D(101@, -2182.094, 653.1942, 50.6565, -2173.951, 636.2528, 47.0812, False)
goto_if_false @WUZI1_14158
Car.SetCoordinates(101@, -2175.715, 636.0, 48.445)
Car.SetHeading(101@, 306.9228)

:WUZI1_14158
146@ = Char.Create(PedType.Mission1, 121, -2218.225, 636.991, 53.9509)
Char.SetInformRespectedFriends(146@, 30.0, 8)
Char.SetStayInSamePlace(146@, True)
Char.SetAccuracy(146@, 100)
Char.SetDecisionMaker(146@, 34@)
Char.GiveWeapon(146@, WeaponType.Sniper, 9999)
Char.SetShootRate(146@, 20)
Task.AimGunAtCoord(146@, -2182.917, 645.9363, 48.9215, -2)
Char.SetHeading(146@, 289.0)
Task.ToggleDuck(146@, True)
if 
  not Car.IsDead(102@)
goto_if_false @WUZI1_14356
if 
  Car.IsInArea2D(102@, -2187.034, 633.111, -2172.262, 660.5647, False)
goto_if_false @WUZI1_14356
Car.SetCoordinates(102@, -2176.387, 641.4572, 50.5019)
Car.SetHeading(102@, 320.0)

:WUZI1_14356
if 
  not Car.IsDead(103@)
goto_if_false @WUZI1_14440
if 
  Car.IsInArea2D(103@, -2187.034, 633.111, -2172.262, 660.5647, False)
goto_if_false @WUZI1_14440
Car.SetCoordinates(103@, -2175.383, 640.9232, 50.5734)
Car.SetHeading(103@, 320.0)

:WUZI1_14440
if 
  42@ == 1
goto_if_false @WUZI1_14646
Char.ClearTasksImmediately($scplayer)
Camera.SetFixedPosition(-2176.937, 641.8041, 49.2832, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2177.295, 642.7374, 49.3052, SwitchType.JumpCut)
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_14579
Char.ClearTasksImmediately(35@)
Char.SetCoordinates(35@, -2175.697, 650.9794, 48.4429)
Task.GoStraightToCoord(35@, -2179.958, 641.7931, 48.4453, MoveState.Walk, -2)

:WUZI1_14579
Char.SetCoordinates($scplayer, -2176.897, 650.9794, 48.4429)
Task.GoStraightToCoord($scplayer, -2180.958, 641.7931, 48.4453, MoveState.Walk, -2)
42@ = 2
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 2500

:WUZI1_14646
if 
  42@ == 2
goto_if_false @WUZI1_14752
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_14752
if 
  not Char.IsDead(146@)
goto_if_false @WUZI1_14722
Task.ShootAtCoord(146@, -2179.925, 646.69, 48.4548, 200)

:WUZI1_14722
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 300
42@ = 3
75@ = 0

:WUZI1_14752
if 
  42@ == 3
goto_if_false @WUZI1_14936
if 
  75@ == 0
goto_if_false @WUZI1_14869
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_14869
Task.DiveAndGetUp($scplayer, -1.0, -1.0, 1000)
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_14846
Task.Cower(35@)

:WUZI1_14846
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 400
75@ = 1

:WUZI1_14869
if 
  75@ == 1
goto_if_false @WUZI1_14936
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_14936
42@ = 4
637@ = 36
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 1000

:WUZI1_14936
if 
  42@ == 4
goto_if_false @WUZI1_15115
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_15115
Camera.SetFixedPosition(-2220.552, 639.9709, 53.7095, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2219.638, 639.5733, 53.7963, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, -2178.298, 648.3584, 48.4429)
Char.SetHeading($scplayer, 133.2868)
if 
  not Char.IsDead(146@)
goto_if_false @WUZI1_15092
Task.AimGunAtCoord(146@, -2184.709, 635.0774, 49.4781, -2)

:WUZI1_15092
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 2500
42@ = 5

:WUZI1_15115
if 
  42@ == 5
goto_if_false @WUZI1_15595
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_15595
147@ = Char.Create(PedType.Mission1, 122, -2219.587, 643.4511, 48.4472)
148@ = Char.Create(PedType.Mission1, 123, -2223.587, 642.4511, 48.4472)
149@ = Char.Create(PedType.Mission1, 122, -2227.587, 644.4511, 48.4472)
150@ = Char.Create(PedType.Mission1, 123, -2230.587, 643.4511, 48.4472)
Char.SetInformRespectedFriends(147@, 30.0, 8)
Char.SetInformRespectedFriends(148@, 30.0, 8)
Char.SetInformRespectedFriends(149@, 30.0, 8)
Char.SetInformRespectedFriends(150@, 30.0, 8)
Char.SetAccuracy(147@, 80)
Char.SetAccuracy(148@, 80)
Char.SetAccuracy(149@, 80)
Char.SetAccuracy(150@, 85)
Char.SetDecisionMaker(147@, 34@)
Char.SetDecisionMaker(148@, 34@)
Char.SetDecisionMaker(149@, 34@)
Char.SetDecisionMaker(150@, 34@)
Task.GoStraightToCoord(147@, -2194.902, 645.9846, 48.4453, MoveState.Run, -2)
Path.FlushRoute
Path.ExtendRoute(-2200.209, 644.2397, 48.4429)
Path.ExtendRoute(-2199.939, 641.5246, 48.4429)
Char.SetStayInSamePlace(147@, True)
Char.SetStayInSamePlace(148@, True)
Char.SetStayInSamePlace(149@, True)
Char.SetStayInSamePlace(150@, True)
Char.GiveWeapon(147@, WeaponType.MicroUzi, 5000)
Char.GiveWeapon(148@, WeaponType.MicroUzi, 5000)
Char.GiveWeapon(149@, WeaponType.MicroUzi, 5000)
Char.GiveWeapon(150@, WeaponType.MicroUzi, 5000)
132@ = Sequence.Open()
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Task.AchieveHeading(-1, 270.0)
Sequence.Close(132@)
Char.PerformSequence(148@, 132@)
Sequence.Clear(132@)
Task.GoStraightToCoord(149@, -2204.851, 641.7612, 48.4429, MoveState.Run, -2)
Task.GoStraightToCoord(150@, -2214.371, 641.3669, 48.4515, MoveState.Run, -2)
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 500
42@ = 6

:WUZI1_15595
if 
  42@ == 6
goto_if_false @WUZI1_15713
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_15713
Camera.SetFixedPosition(-2229.436, 644.2267, 48.4907, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2228.487, 643.9835, 48.6883, SwitchType.JumpCut)
637@ = 46
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 3000
42@ = 7

:WUZI1_15713
if 
  42@ == 7
goto_if_false @WUZI1_15757
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_15757
42@ = 8

:WUZI1_15757
if 
  42@ == 8
goto_if_false @WUZI1_16453
if 
  not Char.DoesExist(146@)
goto_if_false @WUZI1_15864
146@ = Char.Create(PedType.Mission1, 123, -2218.225, 636.991, 53.9509)
Char.SetStayInSamePlace(146@, True)
Char.SetDecisionMaker(146@, 34@)
Char.GiveWeapon(146@, WeaponType.Sniper, 9999)
Char.SetShootRate(146@, 20)
Char.SetHeading(146@, 289.0)
Task.ToggleDuck(146@, True)

:WUZI1_15864
if 
  not Char.IsDead(146@)
goto_if_false @WUZI1_15887
Char.SetAccuracy(146@, 50)

:WUZI1_15887
Char.Delete(147@)
Char.Delete(148@)
Char.Delete(149@)
Char.Delete(150@)
147@ = Char.Create(PedType.Mission1, 121, -2203.491, 647.0372, 48.4453)
148@ = Char.Create(PedType.Mission1, 122, -2200.695, 637.1932, 48.4429)
149@ = Char.Create(PedType.Mission1, 123, -2196.943, 635.1917, 48.4429)
150@ = Char.Create(PedType.Mission1, 121, -2214.378, 641.6099, 48.4484)
Char.SetHeading(147@, 255.1494)
Char.SetHeading(148@, 285.6451)
Char.SetHeading(149@, 295.4749)
Char.SetHeading(150@, 277.3081)
Char.SetAccuracy(147@, 60)
Char.SetAccuracy(148@, 60)
Char.SetAccuracy(149@, 60)
Char.SetAccuracy(150@, 60)
Char.SetShootRate(147@, 85)
Char.SetShootRate(148@, 85)
Char.SetShootRate(149@, 85)
Char.SetShootRate(150@, 85)
Task.Duck(147@, 1000)
Task.Duck(149@, 3000)
Char.SetStayInSamePlace(147@, True)
Char.SetStayInSamePlace(148@, True)
Char.SetStayInSamePlace(149@, True)
Char.SetStayInSamePlace(150@, True)
Char.SetSenseRange(147@, 40.0)
Char.SetSenseRange(148@, 40.0)
Char.SetSenseRange(149@, 40.0)
Char.SetSenseRange(150@, 40.0)
Char.GiveWeapon(147@, WeaponType.MicroUzi, 5000)
Char.GiveWeapon(148@, WeaponType.MicroUzi, 5000)
Char.GiveWeapon(149@, WeaponType.MicroUzi, 5000)
Char.GiveWeapon(150@, WeaponType.MicroUzi, 5000)
151@ = Char.Create(PedType.Mission1, 121, -2205.344, 648.4099, 48.4429)
Char.SetInformRespectedFriends(151@, 30.0, 8)
Char.GiveWeapon(151@, WeaponType.MicroUzi, 500)
Char.SetHeading(151@, 270.0)
Char.SetStayInSamePlace(151@, True)
120@ = Blip.AddForChar(147@)
121@ = Blip.AddForChar(148@)
122@ = Blip.AddForChar(149@)
123@ = Blip.AddForChar(150@)
124@ = Blip.AddForChar(151@)
if 
  not Char.IsDead(146@)
goto_if_false @WUZI1_16355
Blip.Remove(119@)
119@ = Blip.AddForChar(146@)

:WUZI1_16355
Char.SetDecisionMaker(147@, 34@)
Char.SetDecisionMaker(148@, 34@)
Char.SetDecisionMaker(149@, 34@)
Char.SetDecisionMaker(150@, 34@)
Char.SetDecisionMaker(151@, 34@)
71@ = 6
200@ = 4
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4000
77@ = 8
38@ = 0
265@ = 0
754@ = 0

:WUZI1_16453
return 

:WUZI1_16455
if 
  72@ == 1
goto_if_false @WUZI1_16851
if 
  636@ == 1
goto_if_false @WUZI1_16851
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_16851
if 
  265@ == 0
goto_if_false @WUZI1_16633
if and
  not Char.IsInArea3D($scplayer, -2170.185, 719.1667, 63.8637, -2239.236, 594.3701, 37.2048, False)
  not Char.IsInArea3D(35@, -2170.185, 719.1667, 63.8637, -2239.236, 594.3701, 37.2048, False)
goto_if_false @WUZI1_16633
Text.Print('WZ1_B3', 5000, 1)
265@ = 1

:WUZI1_16633
if 
  265@ == 1
goto_if_false @WUZI1_16851
if and
  Char.IsInArea3D($scplayer, -2170.185, 719.1667, 63.8637, -2239.236, 594.3701, 37.2048, False)
  Char.IsInArea3D(35@, -2170.185, 719.1667, 63.8637, -2239.236, 594.3701, 37.2048, False)
goto_if_false @WUZI1_16743
265@ = 0

:WUZI1_16743
if and
  not Char.IsInArea3D($scplayer, -2100.185, 779.1667, 93.8637, -2279.236, 534.3701, 7.2048, False)
  not Char.IsInArea3D(35@, -2100.185, 779.1667, 93.8637, -2279.236, 534.3701, 7.2048, False)
goto_if_false @WUZI1_16851
Text.Print('VAL_A9', 4000, 1)
36@ = 1

:WUZI1_16851
if 
  267@ == 0
goto_if_false @WUZI1_16933
if 
  not Char.IsDead(146@)
goto_if_false @WUZI1_16933
if 
  Char.IsShooting(146@)
goto_if_false @WUZI1_16933
if 
  637@ == 0
goto_if_false @WUZI1_16933
637@ = 36
267@ = 1

:WUZI1_16933
if 
  267@ == 1
goto_if_false @WUZI1_17015
if 
  not Char.IsDead(146@)
goto_if_false @WUZI1_17015
if 
  Char.IsShooting(146@)
goto_if_false @WUZI1_17015
if 
  637@ == 0
goto_if_false @WUZI1_17015
637@ = 43
267@ = 2

:WUZI1_17015
if 
  95@ == 10
goto_if_false @WUZI1_17106
71@ = 7
42@ = 0
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2500
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(118)
Streaming.MarkModelAsNoLongerNeeded(358)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.RemoveAnimation("WUZI")
Streaming.RemoveCarRecording(169)
Streaming.RemoveCarRecording(139)
265@ = 0

:WUZI1_17106
return 

:WUZI1_17108
if 
  42@ == 0
goto_if_false @WUZI1_17259
if 
  636@ == 1
goto_if_false @WUZI1_17259
if 
  637@ == 0
goto_if_false @WUZI1_17259
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_17183
Char.RemoveFromGroup(35@)

:WUZI1_17183
Hud.ClearCounter($7246)
Streaming.RequestAnimation("GANGS")
Streaming.RequestAnimation("CAR_CHAT")
Streaming.RequestCarRecording(136)
Streaming.RequestCarRecording(137)
Streaming.RequestCarRecording(138)
637@ = 55
$wz1_health_bar = 1
754@ = 1
42@ = 6
72@ = 0

:WUZI1_17259
if 
  42@ == 6
goto_if_false @WUZI1_17997
if 
  636@ == 1
goto_if_false @WUZI1_17997
if 
  637@ == 0
goto_if_false @WUZI1_17997
if and
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
  Streaming.HasCarRecordingBeenLoaded(136)
  Streaming.HasCarRecordingBeenLoaded(137)
  Streaming.HasCarRecordingBeenLoaded(138)
goto_if_false @WUZI1_17997
754@ = 0
if 
  not Car.IsDead(104@)
goto_if_false @WUZI1_17414
Car.LockDoors(104@, CarLock.Unlocked)
Car.FreezePosition(104@, False)
Car.SetCoordinates(104@, -2218.93, 642.3626, 48.4475)
Car.SetHeading(104@, 267.1711)

:WUZI1_17414
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @WUZI1_17449
$car = Char.GetCarIsUsing($scplayer)

:WUZI1_17449
Char.ClearTasksImmediately($scplayer)
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_17482
Char.ClearTasksImmediately(35@)
Task.ToggleDuck(35@, False)

:WUZI1_17482
if 
  not Car.IsDead($car)
goto_if_false @WUZI1_17503
Car.Delete($car)

:WUZI1_17503
Camera.SetFixedPosition(-2212.125, 644.6052, 51.6509, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2213.062, 644.5379, 51.3082, SwitchType.JumpCut)
if 
  not Car.IsDead(104@)
goto_if_false @WUZI1_17700
Char.SetCoordinates($scplayer, -2212.38, 643.0919, 48.4466)
Char.SetHeading($scplayer, 180.0)
Task.EnterCarAsDriver($scplayer, 104@, -2)
Car.SetProofs(104@, True, True, True, True, True)
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_17700
Char.SetShootRate(35@, 80)
Char.SetRelationship(35@, RelationshipType.Hate, PedType.Mission1)
Char.SetCoordinates(35@, -2217.781, 640.998, 48.4549)
Char.SetHeading(35@, 77.0)
Task.EnterCarAsPassenger(35@, 104@, 2600, 0)

:WUZI1_17700
130@ = 0

:WUZI1_17707
if 
  18 > 130@
goto_if_false @WUZI1_17748
Char.MarkAsNoLongerNeeded(138@(130@,18i))
130@ += 1
goto @WUZI1_17707

:WUZI1_17748
105@ = Car.Create(405, -2245.343, 715.4953, 48.4375)
Car.SetHeading(105@, 180.0)
138@ = Char.CreateInsideCar(105@, PedType.Mission1, 122)
139@ = Char.CreateAsPassenger(105@, PedType.Mission1, 123, 0)
Char.GiveWeapon(139@, WeaponType.MicroUzi, 5000)
Car.StartPlayback(105@, 136)
106@ = Car.Create(405, -2251.676, 612.6026, 42.259)
Car.SetHeading(106@, 0.0)
140@ = Char.CreateInsideCar(106@, PedType.Mission1, 121)
141@ = Char.CreateAsPassenger(106@, PedType.Mission1, 122, 0)
Char.GiveWeapon(141@, WeaponType.MicroUzi, 5000)
Char.SetDecisionMaker(138@, 34@)
Char.SetDecisionMaker(139@, 34@)
Char.SetDecisionMaker(140@, 34@)
Char.SetDecisionMaker(141@, 34@)
DecisionMakerChar.ClearEventResponse(34@, 36)
DecisionMakerChar.ClearEventResponse(34@, 79)
DecisionMakerChar.AddEventResponse(34@, 36, 1022, 0.0, 100.0, 0.0, 0.0, True, False)
42@ = 7
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2600

:WUZI1_17997
if 
  42@ == 7
goto_if_false @WUZI1_18092
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_18092
Camera.SetFixedPosition(-2217.869, 642.181, 49.7208, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2218.82, 642.4485, 49.5654, SwitchType.JumpCut)
42@ = 8

:WUZI1_18092
if 
  42@ == 8
goto_if_false @WUZI1_18173
if and
  not Car.IsDead(105@)
  not Char.IsDead(138@)
goto_if_false @WUZI1_18173
$x, $y, $z = Car.GetCoordinates(105@)
if 
  653.8901 > $y
goto_if_false @WUZI1_18173
42@ = 9

:WUZI1_18173
if 
  42@ == 9
goto_if_false @WUZI1_18296
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @WUZI1_18296
if 
  not Car.IsDead(104@)
goto_if_false @WUZI1_18223

:WUZI1_18223
Task.PlayAnim($scplayer, "CAR_SC1_FL", "CAR_CHAT", 4.0, False, False, False, False, 3000)
637@ = 60
42@ = 10
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3200

:WUZI1_18296
if 
  42@ == 10
goto_if_false @WUZI1_18416
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_18416
if 
  not Car.IsDead(104@)
goto_if_false @WUZI1_18416
Car.SetHeavy(104@, True)
Car.StartPlayback(104@, 138)
if 
  not Car.IsDead(105@)
goto_if_false @WUZI1_18393
Car.StopPlayback(105@)
Car.StartPlayback(105@, 137)

:WUZI1_18393
42@ = 11
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2000

:WUZI1_18416
if 
  42@ == 11
goto_if_false @WUZI1_18571
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_18571
Camera.SetFixedPosition(-2251.02, 649.9792, 52.244, 0.0, 0.0, 0.0)
if 
  not Car.IsDead(105@)
goto_if_false @WUZI1_18528
$x, $y, $z = Car.GetCoordinates(105@)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:WUZI1_18528
Audio.ReportMissionAudioEventAtPosition(-2243.918, 642.959, 49.6897, 1140)
42@ = 12
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 800

:WUZI1_18571
if 
  42@ == 12
goto_if_false @WUZI1_18639
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_18639
set_lvar_int_to_lvar_int 270@ = TIMERA
42@ = 13
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2500

:WUZI1_18639
if 
  42@ == 13
goto_if_false @WUZI1_18871
set_lvar_int_to_lvar_int 271@ = TIMERA
sub_int_lvar_from_int_lvar 271@ -= 270@
cset_lvar_float_to_lvar_int 225@ =# 271@
set_lvar_float_to_lvar_float 226@ = 225@
226@ /= 2500.0
if and
  not Car.IsDead(104@)
  not Car.IsDead(105@)
goto_if_false @WUZI1_18845
$x, $y, $z = Car.GetCoordinates(105@)
228@, 229@, 230@ = Car.GetCoordinates(104@)
set_lvar_float_to_lvar_float 268@ = 228@
sub_float_var_from_float_lvar 268@ -= $x
set_lvar_float_to_lvar_float 269@ = 229@
sub_float_var_from_float_lvar 269@ -= $y
mult_float_lvar_by_float_lvar 268@ *= 226@
mult_float_lvar_by_float_lvar 269@ *= 226@
268@ /= 2.0
269@ /= 2.0
add_float_var_to_float_lvar 268@ += $x
add_float_var_to_float_lvar 269@ += $y
Camera.PointAtPoint(268@, 269@, $z, SwitchType.JumpCut)

:WUZI1_18845
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_18871
42@ = 14

:WUZI1_18871
if 
  42@ == 14
goto_if_false @WUZI1_18968
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
if 
  not Car.IsDead(104@)
goto_if_false @WUZI1_18942
Car.SetHeavy(104@, False)
Car.SetProofs(104@, False, False, False, False, False)

:WUZI1_18942
71@ = 8
38@ = 0
637@ = 63
Blip.Remove(108@)

:WUZI1_18968
return 

:WUZI1_18970
if 
  38@ == 0
goto_if_false @WUZI1_19263
Game.SetPoliceIgnorePlayer($player1, False)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_19053
Char.SetRelationship(35@, RelationshipType.Hate, PedType.Mission1)
Char.SetShootRate(35@, 80)
Char.GiveWeapon(35@, WeaponType.MicroUzi, 99999)

:WUZI1_19053
if 
  not Car.IsDead(104@)
goto_if_false @WUZI1_19183
if and
  not Car.IsDead(105@)
  not Char.IsDead(138@)
goto_if_false @WUZI1_19126
Task.CarMission(138@, 105@, 104@, CarMission.RamPlayerFaraway, 20.0, DrivingMode.PloughThrough)
Car.SetHealth(105@, 800)
109@ = Blip.AddForChar(138@)

:WUZI1_19126
if and
  not Car.IsDead(106@)
  not Char.IsDead(140@)
goto_if_false @WUZI1_19183
Task.CarMission(140@, 106@, 104@, CarMission.RamPlayerFaraway, 20.0, DrivingMode.PloughThrough)
Car.SetHealth(106@, 800)
110@ = Blip.AddForChar(140@)

:WUZI1_19183
if 
  not Car.IsDead(104@)
goto_if_false @WUZI1_19214
Car.SetHealth(104@, 3000)
Car.SetCanBurstTires(104@, False)

:WUZI1_19214
81@ = 1
82@ = 1
73@ = 1
72@ = 0
38@ = 1
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)

:WUZI1_19263
if 
  38@ == 1
goto_if_false @WUZI1_19633
if 
  272@ == 0
goto_if_false @WUZI1_19340
if 
  637@ == 0
goto_if_false @WUZI1_19340
272@ = 1
Text.Print('WZ1_37', 4000, 1)

:WUZI1_19340
if 
  81@ == 1
goto_if_false @WUZI1_19418
if 
  Char.IsDead(138@)
goto_if_false @WUZI1_19418
if 
  273@ == 0
goto_if_false @WUZI1_19406
273@ = 1
637@ = 64

:WUZI1_19406
Blip.Remove(109@)
81@ = 0

:WUZI1_19418
if 
  82@ == 1
goto_if_false @WUZI1_19496
if 
  Char.IsDead(140@)
goto_if_false @WUZI1_19496
if 
  273@ == 0
goto_if_false @WUZI1_19484
273@ = 1
637@ = 64

:WUZI1_19484
Blip.Remove(110@)
82@ = 0

:WUZI1_19496
if and
  81@ == 0
  82@ == 0
goto_if_false @WUZI1_19633
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_19633
if 
  Char.LocateAnyMeansChar3D($scplayer, 35@, 5.0, 5.0, 5.0, False)
goto_if_false @WUZI1_19633
637@ = 65
638@ = 3
38@ = 2
Blip.Remove(107@)
107@ = Blip.AddForCoord(-2151.589, 639.5962, 51.218)
73@ = 1
72@ = 0

:WUZI1_19633
if 
  38@ == 2
goto_if_false @WUZI1_19861
if 
  637@ == 0
goto_if_false @WUZI1_19710
if 
  274@ == 0
goto_if_false @WUZI1_19710
274@ = 1
Text.Print('WZ1_39', 4000, 1)

:WUZI1_19710
if 
  72@ == 1
goto_if_false @WUZI1_19861
if 
  Char.LocateAnyMeans3D($scplayer, -2150.165, 642.3364, 51.2188, 4.0, 4.0, 4.0, True)
goto_if_false @WUZI1_19861
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_19861
if 
  Char.LocateAnyMeans3D(35@, -2150.165, 642.3364, 51.2188, 8.0, 8.0, 8.0, False)
goto_if_false @WUZI1_19861
71@ = 9
42@ = 0
637@ = 68

:WUZI1_19861
return 

:WUZI1_19863
if 
  42@ == 0
goto_if_false @WUZI1_19957
73@ = 0
Player.SetControl($player1, False)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @WUZI1_19934
$car = Char.GetCarIsUsing($scplayer)
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 2000000)

:WUZI1_19934
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3000
42@ = 1

:WUZI1_19957
if 
  42@ == 1
goto_if_false @WUZI1_20249
if 
  637@ == 0
goto_if_false @WUZI1_20249
Camera.SetFixedPosition(-2156.872, 649.7653, 51.6094, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2156.362, 648.9217, 51.7758, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @WUZI1_20102
$car = Char.GetCarIsUsing($scplayer)
Car.SetCoordinates($car, -2150.165, 642.3364, 51.2188)
Car.SetHeading($car, 0.0)

:WUZI1_20102
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_20226
Path.FlushRoute
Path.ExtendRoute(-2155.15, 645.1982, 51.2293)
Path.ExtendRoute(-2162.023, 645.1555, 51.7499)
if 
  Char.IsInAnyCar(35@)
goto_if_false @WUZI1_20217
Char.RemoveFromGroup(35@)
132@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Sequence.Close(132@)
Char.PerformSequence(35@, 132@)
Sequence.Clear(132@)
goto @WUZI1_20226

:WUZI1_20217
Task.FollowPointRoute(35@, 6, RouteMode.Once)

:WUZI1_20226
42@ = 2
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 5000

:WUZI1_20249
if 
  42@ == 2
goto_if_false @WUZI1_20336
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_20336
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_20315
Char.Delete(35@)

:WUZI1_20315
37@ = 0
Player.SetControl($player1, True)
71@ = 10

:WUZI1_20336
return 

:WUZI1_20338
if 
  200@ > 0
goto_if_false @WUZI1_20476
130@ = 0
95@ = 0

:WUZI1_20370
if 
  18 > 130@
goto_if_false @WUZI1_20476
if 
  Char.DoesExist(138@(130@,18i))
goto_if_false @WUZI1_20462
if 
  Char.IsDead(138@(130@,18i))
goto_if_false @WUZI1_20462
Blip.Remove(111@(130@,18i))
if 
  130@ > 7
goto_if_false @WUZI1_20462
95@ += 1

:WUZI1_20462
130@ += 1
goto @WUZI1_20370

:WUZI1_20476
if 
  200@ == 1
goto_if_false @WUZI1_21168
if or
  676.0 > $player_y
  676.0 > 229@
goto_if_false @WUZI1_21168
102@ = Car.Create(468, -2191.274, 644.4189, 48.4453)
103@ = Car.Create(468, -2200.205, 644.3219, 48.4429)
Car.SetHeading(102@, 270.0)
Car.SetHeading(103@, 270.0)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.RequestCarRecording(139)
142@ = Char.CreateInsideCar(102@, PedType.Mission1, 123)
143@ = Char.CreateAsPassenger(102@, PedType.Mission1, 121, 0)
144@ = Char.CreateInsideCar(103@, PedType.Mission1, 122)
145@ = Char.CreateAsPassenger(103@, PedType.Mission1, 123, 0)
Streaming.MarkModelAsNoLongerNeeded(121)
Streaming.MarkModelAsNoLongerNeeded(122)
Char.GiveWeapon(142@, WeaponType.MicroUzi, 500)
Char.GiveWeapon(143@, WeaponType.MicroUzi, 500)
Char.GiveWeapon(144@, WeaponType.MicroUzi, 500)
Char.GiveWeapon(145@, WeaponType.MicroUzi, 500)
Char.SetAccuracy(142@, 80)
Char.SetAccuracy(143@, 85)
Char.SetAccuracy(144@, 90)
Char.SetAccuracy(145@, 85)
115@ = Blip.AddForChar(142@)
116@ = Blip.AddForChar(143@)
117@ = Blip.AddForChar(144@)
118@ = Blip.AddForChar(145@)
Char.SetDropsWeaponsWhenDead(142@, False)
Char.SetDropsWeaponsWhenDead(143@, False)
Char.SetDropsWeaponsWhenDead(144@, False)
Char.SetDropsWeaponsWhenDead(145@, False)
Car.SetForwardSpeed(102@, 20.0)
Car.SetForwardSpeed(103@, 20.0)
Char.SetDecisionMaker(142@, 34@)
Char.SetDecisionMaker(143@, 34@)
Char.SetDecisionMaker(144@, 34@)
Char.SetDecisionMaker(145@, 34@)
Char.SetSenseRange(142@, 40.0)
Char.SetSenseRange(143@, 40.0)
Char.SetSenseRange(144@, 40.0)
Char.SetSenseRange(145@, 40.0)
Char.SetInformRespectedFriends(142@, 30.0, 8)
Char.SetInformRespectedFriends(143@, 30.0, 8)
Char.SetInformRespectedFriends(144@, 30.0, 8)
Char.SetInformRespectedFriends(145@, 30.0, 8)
Task.KindaStayInSamePlace(142@, True)
Task.KindaStayInSamePlace(143@, True)
Task.KindaStayInSamePlace(144@, True)
Task.KindaStayInSamePlace(145@, True)
132@ = Sequence.Open()
Task.CarDriveToCoord(-1, 102@, -2177.165, 645.6417, 48.4453, 15.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.CarTempAction(-1, 102@, TempAction.HandbrakeTurnLeft, 2000)
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, -2172.865, 652.5621, 48.4429, MoveState.Run, 4000)
Task.StayInSamePlace(-1, True)
Sequence.Close(132@)
Char.PerformSequence(142@, 132@)
Sequence.Clear(132@)
132@ = Sequence.Open()
Task.CarDriveToCoord(-1, 103@, -2174.811, 644.3727, 48.4453, 15.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.CarTempAction(-1, 103@, TempAction.HandbrakeTurnLeft, 2000)
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, -2176.99, 650.9326, 48.4429, MoveState.Run, 3000)
Task.ToggleDuck(-1, True)
Sequence.Close(132@)
Char.PerformSequence(144@, 132@)
Sequence.Clear(132@)
200@ = 2

:WUZI1_21168
if 
  200@ == 2
goto_if_false @WUZI1_21358
129@ = 0
if 
  not Char.IsDead(142@)
goto_if_false @WUZI1_21217
129@ = Char.GetCarIsUsing(142@)

:WUZI1_21217
if or
  129@ == -1
  Char.IsDead(142@)
goto_if_false @WUZI1_21358
if 
  not Char.IsDead(143@)
goto_if_false @WUZI1_21277
if 
  Char.IsInAnyCar(143@)
goto_if_false @WUZI1_21277
Task.LeaveAnyCar(143@)

:WUZI1_21277
if 
  not Char.IsDead(144@)
goto_if_false @WUZI1_21314
if 
  Char.IsInAnyCar(144@)
goto_if_false @WUZI1_21314
Task.LeaveAnyCar(144@)

:WUZI1_21314
if 
  not Char.IsDead(145@)
goto_if_false @WUZI1_21351
if 
  Char.IsInAnyCar(145@)
goto_if_false @WUZI1_21351
Task.LeaveAnyCar(145@)

:WUZI1_21351
200@ = 3

:WUZI1_21358
if 
  200@ == 4
goto_if_false @WUZI1_22823
if 
  93@ == 0
goto_if_false @WUZI1_21522
if 
  not Char.IsDead(151@)
goto_if_false @WUZI1_21522
if or
  -2193.0 > $player_x
  -2193.0 > 228@
goto_if_false @WUZI1_21522
93@ = 1
132@ = Sequence.Open()
Task.PlayAnim(-1, "CROUCH_ROLL_R", "PED", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
Sequence.Close(132@)
Char.PerformSequence(151@, 132@)
Sequence.Clear(132@)

:WUZI1_21522
if 
  Char.IsInArea3D($scplayer, -2171.857, 658.2869, 52.1667, -2240.303, 631.7034, 48.0251, False)
goto_if_false @WUZI1_21806
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @WUZI1_21702
if 
  84@ == 0
goto_if_false @WUZI1_21695
84@ = 1
130@ = 9

:WUZI1_21618
if 
  13 > 130@
goto_if_false @WUZI1_21695
if 
  not Char.IsDead(138@(130@,18i))
goto_if_false @WUZI1_21681
Char.SetAccuracy(138@(130@,18i), 100)
Task.ShootAtChar(138@(130@,18i), $scplayer, -2)

:WUZI1_21681
130@ += 1
goto @WUZI1_21618

:WUZI1_21695
goto @WUZI1_21806

:WUZI1_21702
if 
  84@ == 1
goto_if_false @WUZI1_21806
84@ = 0
130@ = 9

:WUZI1_21734
if 
  13 > 130@
goto_if_false @WUZI1_21806
if 
  not Char.IsDead(138@(130@,18i))
goto_if_false @WUZI1_21792
Char.SetAccuracy(138@(130@,18i), 80)
Char.ClearTasks(138@(130@,18i))

:WUZI1_21792
130@ += 1
goto @WUZI1_21734

:WUZI1_21806
if 
  85@ == 0
goto_if_false @WUZI1_22071
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @WUZI1_22071
130@ = Math.RandomIntInRange(9, 13)
91@ = 0

:WUZI1_21859
if 
  4 > 91@
goto_if_false @WUZI1_22055
set_lvar_int_to_lvar_int 131@ = 130@
131@ -= 9
if and
  not Char.IsDead(138@(130@,18i))
  87@(131@,4i) == 0
goto_if_false @WUZI1_22009
87@(131@,4i) = 1
Path.FlushRoute
Path.ExtendRoute(201@(131@,4f), 205@(131@,4f), 209@(131@,4f))
Path.ExtendRoute(213@(131@,4f), 217@(131@,4f), 221@(131@,4f))
Task.FollowPointRoute(138@(130@,18i), 6, RouteMode.Once)
91@ = 4
goto @WUZI1_22041

:WUZI1_22009
130@ += 1
if 
  130@ > 12
goto_if_false @WUZI1_22041
130@ = 9

:WUZI1_22041
91@ += 1
goto @WUZI1_21859

:WUZI1_22055
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 10000

:WUZI1_22071
if 
  94@ == 0
goto_if_false @WUZI1_22543
if or
  -2197.0 > $player_x
  95@ > 1
goto_if_false @WUZI1_22543
94@ = 1
152@ = Char.Create(PedType.Mission1, 123, -2205.861, 625.282, 48.4396)
153@ = Char.Create(PedType.Mission1, 121, -2207.076, 627.3953, 48.4384)
Char.GiveWeapon(152@, WeaponType.MicroUzi, 500)
Char.GiveWeapon(153@, WeaponType.MicroUzi, 500)
Path.FlushRoute
Path.ExtendRoute(-2205.808, 626.6268, 48.4429)
Path.ExtendRoute(-2205.849, 635.5339, 48.4453)
Task.FollowPointRoute(152@, 6, RouteMode.Once)
Path.FlushRoute
Path.ExtendRoute(-2205.808, 626.6268, 48.4429)
Path.ExtendRoute(-2204.58, 634.2507, 48.4453)
Task.FollowPointRoute(153@, 6, RouteMode.Once)
104@ = Car.Create(405, -2267.322, 659.5334, 48.2969)
Car.SetProofs(104@, True, True, True, True, True)
Car.SetHeading(104@, 344.0)
Car.LockDoors(104@, CarLock.LockoutPlayerOnly)
154@ = Char.CreateInsideCar(104@, PedType.Mission1, 121)
155@ = Char.CreateAsPassenger(104@, PedType.Mission1, 122, 0)
Char.GiveWeapon(154@, WeaponType.MicroUzi, 500)
Char.GiveWeapon(155@, WeaponType.MicroUzi, 500)
Char.SetDecisionMaker(152@, 34@)
Char.SetDecisionMaker(153@, 34@)
Char.SetDecisionMaker(154@, 34@)
Char.SetDecisionMaker(155@, 34@)
125@ = Blip.AddForChar(152@)
126@ = Blip.AddForChar(153@)
127@ = Blip.AddForChar(154@)
128@ = Blip.AddForChar(155@)
Char.SetSenseRange(152@, 40.0)
Char.SetSenseRange(153@, 40.0)
Char.SetSenseRange(154@, 40.0)
Char.SetSenseRange(155@, 40.0)
Char.SetInformRespectedFriends(152@, 30.0, 8)
Char.SetInformRespectedFriends(153@, 30.0, 8)
Char.SetInformRespectedFriends(154@, 30.0, 8)
Char.SetInformRespectedFriends(155@, 30.0, 8)
Car.StartPlayback(104@, 139)

:WUZI1_22543
if 
  94@ == 1
goto_if_false @WUZI1_22759
if 
  not Car.IsDead(104@)
goto_if_false @WUZI1_22759
$x, $y, $z = Car.GetCoordinates(104@)
if 
  $x > -2227.0
goto_if_false @WUZI1_22759
94@ = 2
if 
  not Char.IsDead(154@)
goto_if_false @WUZI1_22689
Path.FlushRoute
Path.ExtendRoute(-2214.633, 642.2872, 48.447)
132@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Sequence.Close(132@)
Char.PerformSequence(154@, 132@)
Sequence.Clear(132@)

:WUZI1_22689
if 
  not Char.IsDead(154@)
goto_if_false @WUZI1_22759
Path.FlushRoute
Path.ExtendRoute(-2214.373, 639.3536, 48.4511)
132@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Sequence.Close(132@)
Char.PerformSequence(155@, 132@)
Sequence.Clear(132@)

:WUZI1_22759
if 
  94@ == 2
goto_if_false @WUZI1_22823
if 
  not Car.IsDead(104@)
goto_if_false @WUZI1_22823
if 
  not Car.IsPlaybackGoingOn(104@)
goto_if_false @WUZI1_22823
94@ = 3
Car.FreezePosition(104@, True)

:WUZI1_22823
return 

:WUZI1_22825
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_23035
if 
  Char.IsShooting(35@)
goto_if_false @WUZI1_23035
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 277@
goto_if_false @WUZI1_23035
if 
  637@ == 0
goto_if_false @WUZI1_23035
if 
  6 > 275@
goto_if_false @WUZI1_23035
276@ = Math.RandomIntInRange(0, 6)

:WUZI1_22921
if 
  232@(276@,6i) == 0
goto_if_false @WUZI1_22982
276@ += 1
if 
  276@ > 5
goto_if_false @WUZI1_22975
276@ = 0

:WUZI1_22975
goto @WUZI1_22921

:WUZI1_22982
275@ += 1
set_lvar_int_to_lvar_int 637@ = 232@(276@,6i)
232@(276@,6i) = 0
279@ = 0
set_lvar_int_to_lvar_int 277@ = TIMERA
277@ += 8000

:WUZI1_23035
return 
return 

:WUZI1_23039
if 
  96@ == 1
goto_if_false @WUZI1_23146
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_23146
set_lvar_int_to_lvar_int 278@ = 161@
161@ = Char.GetHealth(35@)
if 
  not is_int_lvar_equal_to_int_lvar 161@ == 278@
goto_if_false @WUZI1_23123
set_lvar_int_to_lvar_int 278@ = 161@
279@ = 1

:WUZI1_23123
set_var_int_to_lvar_int $7246 = 161@
$7246 *= 100
$7246 /= 250

:WUZI1_23146
return 

:WUZI1_23148
return 

:WUZI1_23150
if 
  281@ <> 0
goto_if_false @WUZI1_23343
if 
  280@ == 0
goto_if_false @WUZI1_23204
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 281@)
280@ = 1

:WUZI1_23204
if 
  280@ == 1
goto_if_false @WUZI1_23267
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @WUZI1_23267
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 283@
goto_if_false @WUZI1_23267
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
280@ = 2

:WUZI1_23267
if or
  280@ == 2
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @WUZI1_23343
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @WUZI1_23343
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
set_lvar_int_to_lvar_int 281@ = 282@
282@ = 0
set_lvar_int_to_lvar_int 283@ = 284@
284@ = 0
280@ = 0

:WUZI1_23343
if 
  285@ <> 0
goto_if_false @WUZI1_23550
if 
  286@ == 0
goto_if_false @WUZI1_23421
286@ = 1
set_lvar_int_to_lvar_int 287@ = TIMERA
288@ = 0
set_lvar_int_to_lvar_int 750@ = 287@
add_int_lvar_to_int_lvar 750@ += 289@(288@,20i)

:WUZI1_23421
if 
  286@ == 1
goto_if_false @WUZI1_23550
if and
  is_int_lvar_greater_than_int_lvar TIMERA > 750@
  637@ == 0
goto_if_false @WUZI1_23550
set_lvar_int_to_lvar_int 637@ = 309@(288@,20i)
288@ += 1
329@ -= 1
if 
  329@ == 0
goto_if_false @WUZI1_23530
285@ = 0
286@ = 0
goto @WUZI1_23550

:WUZI1_23530
set_lvar_int_to_lvar_int 750@ = 287@
add_int_lvar_to_int_lvar 750@ += 289@(288@,20i)

:WUZI1_23550
switch_start 636@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @WUZI1_27781 {caseNum1} 0 {caseLabel1} @WUZI1_23613 {caseNum2} 1 {caseLabel2} @WUZI1_26396 {caseNum3} 2 {caseLabel3} @WUZI1_27240 {caseNum4} 3 {caseLabel4} @WUZI1_27339 {caseNum5} 4 {caseLabel5} @WUZI1_27420 {caseNum6} 5 {caseLabel6} @WUZI1_27564 {caseNum7} 6 {caseLabel7} @WUZI1_27675

:WUZI1_23613
if 
  636@ == 1
goto_if_false @WUZI1_23681
748@ = Char.Create(PedType.Gang2, 290, 2752.341, -1948.867, 16.3125)
752@ = Char.Create(PedType.Gang2, 290, 2752.341, -1948.867, 16.3125)

:WUZI1_23681
set_lvar_int_to_constant 532@ = 12400
set_lvar_int_to_constant 533@ = 12469
set_lvar_int_to_constant 534@ = 12402
set_lvar_int_to_constant 535@ = 12403
set_lvar_int_to_constant 536@ = 12471
set_lvar_int_to_constant 537@ = 12404
set_lvar_int_to_constant 538@ = 12405
set_lvar_int_to_constant 539@ = 65535
set_lvar_int_to_constant 540@ = 12472
set_lvar_int_to_constant 541@ = 12406
set_lvar_int_to_constant 542@ = 12407
set_lvar_int_to_constant 543@ = 12409
set_lvar_int_to_constant 544@ = 12473
set_lvar_int_to_constant 545@ = 12408
set_lvar_int_to_constant 546@ = 12434
set_lvar_int_to_constant 547@ = 12436
set_lvar_int_to_constant 548@ = 12433
set_lvar_int_to_constant 549@ = 12480
set_lvar_int_to_constant 550@ = 12438
set_lvar_int_to_constant 551@ = 12439
set_lvar_int_to_constant 552@ = 12481
set_lvar_int_to_constant 553@ = 12440
set_lvar_int_to_constant 554@ = 12503
set_lvar_int_to_constant 555@ = 12441
set_lvar_int_to_constant 556@ = 12504
set_lvar_int_to_constant 557@ = 12505
set_lvar_int_to_constant 558@ = 65535
set_lvar_int_to_constant 559@ = 65535
set_lvar_int_to_constant 560@ = 65535
set_lvar_int_to_constant 561@ = 12442
set_lvar_int_to_constant 562@ = 12443
set_lvar_int_to_constant 563@ = 12444
set_lvar_int_to_constant 564@ = 12445
set_lvar_int_to_constant 565@ = 12446
set_lvar_int_to_constant 566@ = 12447
set_lvar_int_to_constant 567@ = 12448
set_lvar_int_to_constant 568@ = 12449
set_lvar_int_to_constant 569@ = 12450
set_lvar_int_to_constant 570@ = 12451
set_lvar_int_to_constant 571@ = 12452
set_lvar_int_to_constant 572@ = 12453
set_lvar_int_to_constant 573@ = 12454
set_lvar_int_to_constant 574@ = 12455
set_lvar_int_to_constant 575@ = 12456
set_lvar_int_to_constant 576@ = 12457
set_lvar_int_to_constant 577@ = 12482
set_lvar_int_to_constant 578@ = 12483
set_lvar_int_to_constant 579@ = 12484
set_lvar_int_to_constant 580@ = 12485
set_lvar_int_to_constant 581@ = 12486
set_lvar_int_to_constant 582@ = 12487
set_lvar_int_to_constant 583@ = 12488
set_lvar_int_to_constant 584@ = 12489
set_lvar_int_to_constant 585@ = 12490
set_lvar_int_to_constant 586@ = 12491
set_lvar_int_to_constant 587@ = 12492
set_lvar_int_to_constant 588@ = 12493
set_lvar_int_to_constant 589@ = 12494
set_lvar_int_to_constant 590@ = 12495
set_lvar_int_to_constant 591@ = 12496
set_lvar_int_to_constant 592@ = 12497
set_lvar_int_to_constant 593@ = 12498
set_lvar_int_to_constant 594@ = 12458
set_lvar_int_to_constant 595@ = 12459
set_lvar_int_to_constant 596@ = 12500
set_lvar_int_to_constant 597@ = 12466
set_lvar_int_to_constant 598@ = 12460
set_lvar_int_to_constant 599@ = 12468
set_lvar_int_to_constant 600@ = 12474
set_lvar_int_to_constant 601@ = 12475
set_lvar_int_to_constant 602@ = 12410
set_lvar_int_to_constant 603@ = 12411
set_lvar_int_to_constant 604@ = 12424
set_lvar_int_to_constant 605@ = 12478
set_lvar_int_to_constant 606@ = 12430
set_lvar_int_to_constant 607@ = 65535
set_lvar_int_to_constant 608@ = 12418
set_lvar_int_to_constant 609@ = 12479
set_lvar_int_to_constant 610@ = 12431
set_lvar_int_to_constant 611@ = 12432
set_lvar_int_to_constant 612@ = 12433
set_lvar_int_to_constant 613@ = 12420
set_lvar_int_to_constant 614@ = 12421
set_lvar_int_to_constant 615@ = 12412
set_lvar_int_to_constant 616@ = 12476
set_lvar_int_to_constant 617@ = 12413
set_lvar_int_to_constant 618@ = 12414
set_lvar_int_to_constant 619@ = 12415
set_lvar_int_to_constant 620@ = 12428
set_lvar_int_to_constant 621@ = 12477
set_lvar_int_to_constant 622@ = 12429
set_lvar_int_to_constant 623@ = 12493
set_lvar_int_to_constant 624@ = 12491
set_lvar_text_label 333@s = 'WUZ1_AA'
set_lvar_text_label 335@s = 'WUZ1_AB'
set_lvar_text_label 337@s = 'WUZ1_CA'
set_lvar_text_label 339@s = 'WUZ1_CB'
set_lvar_text_label 341@s = 'WUZ1_CC'
set_lvar_text_label 343@s = 'WUZ1_CD'
set_lvar_text_label 345@s = 'WUZ1_CE'
set_lvar_text_label 349@s = 'WUZ1_CG'
set_lvar_text_label 351@s = 'WUZ1_CH'
set_lvar_text_label 353@s = 'WUZ1_DA'
set_lvar_text_label 355@s = 'WUZ1_DD'
set_lvar_text_label 357@s = 'WUZ1_DB'
set_lvar_text_label 359@s = 'WUZ1_DC'
set_lvar_text_label 361@s = 'WUZ1_LA'
set_lvar_text_label 363@s = 'WUZ1_LC'
set_lvar_text_label 365@s = 'WUZ1_KD'
set_lvar_text_label 367@s = 'WUZ1_MA'
set_lvar_text_label 369@s = 'WUZ1_MB'
set_lvar_text_label 371@s = 'WUZ1_MC'
set_lvar_text_label 373@s = 'WUZ1_MD'
set_lvar_text_label 375@s = 'WUZ1_ME'
set_lvar_text_label 377@s = 'WUZ1_MF'
set_lvar_text_label 379@s = 'WUZ1_MG'
set_lvar_text_label 381@s = 'WUZ1_MH'
set_lvar_text_label 383@s = 'WUZ1_MJ'
set_lvar_text_label 387@s = 'WUZ1_MH'
set_lvar_text_label 389@s = 'WUZ1_MJ'
set_lvar_text_label 391@s = 'WUZ1_NA'
set_lvar_text_label 393@s = 'WUZ1_NB'
set_lvar_text_label 395@s = 'WUZ1_NC'
set_lvar_text_label 397@s = 'WUZ1_ND'
set_lvar_text_label 399@s = 'WUZ1_NE'
set_lvar_text_label 401@s = 'WUZ1_NF'
set_lvar_text_label 403@s = 'WUZ1_NG'
set_lvar_text_label 405@s = 'WUZ1_NH'
set_lvar_text_label 407@s = 'WUZ1_NJ'
set_lvar_text_label 409@s = 'WUZ1_NK'
set_lvar_text_label 411@s = 'WUZ1_NL'
set_lvar_text_label 413@s = 'WUZ1_NM'
set_lvar_text_label 415@s = 'WUZ1_NN'
set_lvar_text_label 417@s = 'WUZ1_NO'
set_lvar_text_label 419@s = 'WUZ1_NP'
set_lvar_text_label 421@s = 'WUZ1_NQ'
set_lvar_text_label 423@s = 'WUZ1_OA'
set_lvar_text_label 425@s = 'WUZ1_OB'
set_lvar_text_label 427@s = 'WUZ1_OC'
set_lvar_text_label 429@s = 'WUZ1_OD'
set_lvar_text_label 431@s = 'WUZ1_OE'
set_lvar_text_label 433@s = 'WUZ1_OF'
set_lvar_text_label 435@s = 'WUZ1_OG'
set_lvar_text_label 437@s = 'WUZ1_OH'
set_lvar_text_label 439@s = 'WUZ1_OJ'
set_lvar_text_label 441@s = 'WUZ1_OK'
set_lvar_text_label 443@s = 'WUZ1_OL'
set_lvar_text_label 445@s = 'WUZ1_OM'
set_lvar_text_label 447@s = 'WUZ1_ON'
set_lvar_text_label 449@s = 'WUZ1_OO'
set_lvar_text_label 451@s = 'WUZ1_OP'
set_lvar_text_label 453@s = 'WUZ1_OQ'
set_lvar_text_label 455@s = 'WUZ1_OR'
set_lvar_text_label 457@s = 'WUZ1_PA'
set_lvar_text_label 459@s = 'WUZ1_PB'
set_lvar_text_label 461@s = 'WUZ1_QA'
set_lvar_text_label 463@s = 'WUZ1_RA'
set_lvar_text_label 465@s = 'WUZ1_QB'
set_lvar_text_label 467@s = 'WUZ1_RD'
set_lvar_text_label 469@s = 'WUZ1_EA'
set_lvar_text_label 471@s = 'WUZ1_EB'
set_lvar_text_label 473@s = 'WUZ1_EC'
set_lvar_text_label 475@s = 'WUZ1_EE'
set_lvar_text_label 477@s = 'WUZ1_GJ'
set_lvar_text_label 479@s = 'WUZ1_JA'
set_lvar_text_label 481@s = 'WUZ1_JB'
set_lvar_text_label 485@s = 'WUZ1_GC'
set_lvar_text_label 487@s = 'WUZ1_KA'
set_lvar_text_label 489@s = 'WUZ1_KB'
set_lvar_text_label 491@s = 'WUZ1_KC'
set_lvar_text_label 493@s = 'WUZ1_KD'
set_lvar_text_label 495@s = 'WUZ1_GE'
set_lvar_text_label 497@s = 'WUZ1_GF'
set_lvar_text_label 499@s = 'WUZ1_FA'
set_lvar_text_label 501@s = 'WUZ1_FB'
set_lvar_text_label 503@s = 'WUZ1_FC'
set_lvar_text_label 505@s = 'WUZ1_FD'
set_lvar_text_label 507@s = 'WUZ1_FE'
set_lvar_text_label 509@s = 'WUZ1_HA'
set_lvar_text_label 511@s = 'WUZ1_HB'
set_lvar_text_label 513@s = 'WUZ1_HC'
set_lvar_text_label 515@s = 'WUZ1_OM'
set_lvar_text_label 517@s = 'WUZ1_OK'
640@ = 2
641@ = 1
642@ = 2
643@ = 2
644@ = 1
645@ = 2
646@ = 2
647@ = 2
648@ = 1
649@ = 2
650@ = 2
651@ = 2
652@ = 1
653@ = 2
654@ = 2
655@ = 2
656@ = 2
657@ = 1
658@ = 2
659@ = 2
660@ = 1
661@ = 2
662@ = 3
663@ = 2
664@ = 3
665@ = 3
666@ = 2
667@ = 2
668@ = 2
669@ = 2
670@ = 2
671@ = 2
672@ = 1
673@ = 2
674@ = 2
675@ = 0
676@ = 2
677@ = 1
678@ = 2
679@ = 2
680@ = 2
681@ = 2
682@ = 2
683@ = 2
684@ = 2
685@ = 0
686@ = 2
687@ = 2
688@ = 2
689@ = 2
690@ = 2
691@ = 2
692@ = 1
693@ = 2
694@ = 2
695@ = 1
696@ = 1
697@ = 1
698@ = 2
699@ = 1
700@ = 2
701@ = 2
702@ = 1
703@ = 2
704@ = 2
705@ = 1
706@ = 1
707@ = 1
708@ = 2
709@ = 1
710@ = 2
711@ = 2
712@ = 2
713@ = 1
714@ = 2
715@ = 2
716@ = 2
717@ = 1
718@ = 2
719@ = 2
720@ = 2
721@ = 2
722@ = 2
723@ = 2
724@ = 1
725@ = 2
726@ = 2
727@ = 2
728@ = 2
729@ = 1
730@ = 2
731@ = 1
732@ = 1
set_lvar_int_to_var_int 740@ = $scplayer
636@ = 1
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 532@)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 533@)
632@ = 1
633@ = 2
goto @WUZI1_27781

:WUZI1_26396
if 
  637@ <> 0
goto_if_false @WUZI1_27233
if 
  265@ == 0
goto_if_false @WUZI1_27233
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 755@
goto_if_false @WUZI1_27233
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @WUZI1_27233
if 
  is_int_lvar_equal_to_int_lvar 632@ == 637@
goto_if_false @WUZI1_26503
634@ = 1
goto @WUZI1_26566

:WUZI1_26503
if 
  is_int_lvar_equal_to_int_lvar 633@ == 637@
goto_if_false @WUZI1_26536
634@ = 2
goto @WUZI1_26566

:WUZI1_26536
634@ = 1
set_lvar_int_to_lvar_int 632@ = 637@
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 531@(637@,100i))

:WUZI1_26566
if 
  Audio.HasMissionAudioLoaded(634@)
goto_if_false @WUZI1_27221
set_lvar_int_to_lvar_int 747@ = 639@(637@,100i)
set_lvar_int_to_lvar_int 748@ = 739@(747@,7i)
if 
  754@ <> 1
goto_if_false @WUZI1_26794
751@ = 1
753@ = 0

:WUZI1_26638
if 
  7 > 751@
goto_if_false @WUZI1_26794
set_lvar_int_to_lvar_int 752@ = 739@(751@,7i)
if 
  752@ <> 0
goto_if_false @WUZI1_26780
if 
  not is_int_lvar_equal_to_int_lvar 752@ == 748@
goto_if_false @WUZI1_26780
if 
  not Char.IsDead(748@)
goto_if_false @WUZI1_26780
if 
  not Char.IsDead(752@)
goto_if_false @WUZI1_26780
if 
  Char.LocateAnyMeansChar3D(748@, 752@, 10.0, 10.0, 10.0, False)
goto_if_false @WUZI1_26780
753@ += 1

:WUZI1_26780
751@ += 1
goto @WUZI1_26638

:WUZI1_26794
if or
  754@ == 1
  753@ > 0
  639@(637@,100i) == 0
goto_if_false @WUZI1_27207
if 
  639@(637@,100i) <> 0
goto_if_false @WUZI1_26939
if 
  not Char.IsDead(748@)
goto_if_false @WUZI1_26939
if 
  $wz1_health_bar == 0
goto_if_false @WUZI1_26894
Audio.AttachMissionAudioToChar(634@, 748@)

:WUZI1_26894
if 
  not Char.IsTalking(748@)
goto_if_false @WUZI1_26932
746@ = 1
Char.StartFacialTalk(748@, 15000)
goto @WUZI1_26939

:WUZI1_26932
Char.DisableSpeech(748@, False)

:WUZI1_26939
if 
  639@(637@,100i) == 0
goto_if_false @WUZI1_26968
746@ = 1

:WUZI1_26968
if 
  746@ == 1
goto_if_false @WUZI1_27200
if 
  748@ <> 0
goto_if_false @WUZI1_27027
if 
  not Char.IsDead(748@)
goto_if_false @WUZI1_27027
Char.ShutUpForScriptedSpeech(748@, True)

:WUZI1_27027
Audio.PlayMissionAudio(634@)
Text.ClearPrints
Text.Print(331@(637@,100s), 10000, 1)
636@ += 1
746@ = 0
637@ += 1
set_lvar_int_to_lvar_int 635@ = 637@
if 
  531@(637@,100i) <> 0
goto_if_false @WUZI1_27200
if 
  634@ == 1
goto_if_false @WUZI1_27162
if 
  not is_int_lvar_equal_to_int_lvar 633@ == 637@
goto_if_false @WUZI1_27155
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 531@(637@,100i))
set_lvar_int_to_lvar_int 633@ = 637@

:WUZI1_27155
goto @WUZI1_27200

:WUZI1_27162
if 
  not is_int_lvar_equal_to_int_lvar 632@ == 637@
goto_if_false @WUZI1_27200
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 531@(637@,100i))
set_lvar_int_to_lvar_int 632@ = 637@

:WUZI1_27200
goto @WUZI1_27214

:WUZI1_27207
636@ = 6

:WUZI1_27214
goto @WUZI1_27233

:WUZI1_27221
Audio.LoadMissionAudio(634@, 531@(637@,100i))

:WUZI1_27233
goto @WUZI1_27781

:WUZI1_27240
if 
  Audio.HasMissionAudioFinished(634@)
goto_if_false @WUZI1_27293
if 
  not Char.IsDead(748@)
goto_if_false @WUZI1_27279
Char.ShutUpForScriptedSpeech(748@, False)

:WUZI1_27279
636@ += 1
goto @WUZI1_27332

:WUZI1_27293
if 
  Char.DoesExist(748@)
goto_if_false @WUZI1_27332
if 
  Char.IsDead(748@)
goto_if_false @WUZI1_27332
636@ += 1

:WUZI1_27332
goto @WUZI1_27781

:WUZI1_27339
if 
  not Char.IsDead(748@)
goto_if_false @WUZI1_27362
Char.ShutUpForScriptedSpeech(748@, False)

:WUZI1_27362
Audio.ClearMissionAudio(634@)
631@(634@,3i) = 0
Text.ClearPrints
if 
  not Char.IsDead(748@)
goto_if_false @WUZI1_27406
Char.StopFacialTalk(748@)
Char.EnableSpeech(748@)

:WUZI1_27406
636@ += 1
goto @WUZI1_27781

:WUZI1_27420
if 
  not Char.IsDead(748@)
goto_if_false @WUZI1_27443
Char.ShutUpForScriptedSpeech(748@, False)

:WUZI1_27443
637@ += 1
if 
  531@(637@,100i) <> 0
goto_if_false @WUZI1_27496
Audio.LoadMissionAudio(634@, 531@(637@,100i))
set_lvar_int_to_lvar_int 631@(634@,3i) = 637@

:WUZI1_27496
638@ -= 1
if 
  638@ <= 0
goto_if_false @WUZI1_27542
637@ = 0
638@ = 0
goto @WUZI1_27550

:WUZI1_27542
set_lvar_int_to_lvar_int 637@ = 635@

:WUZI1_27550
636@ = 1
goto @WUZI1_27781

:WUZI1_27564
if 
  not Char.IsDead(748@)
goto_if_false @WUZI1_27587
Char.ShutUpForScriptedSpeech(748@, False)

:WUZI1_27587
636@ = 1
637@ = 0
638@ = 0
285@ = 0
329@ = 0
$wz1_health_bar = 0
Audio.ClearMissionAudio(634@)
631@(634@,3i) = 0
Text.ClearPrints
if 
  not Char.IsDead(748@)
goto_if_false @WUZI1_27668
Char.EnableSpeech(748@)

:WUZI1_27668
goto @WUZI1_27781

:WUZI1_27675
if 
  not Char.IsDead(748@)
goto_if_false @WUZI1_27698
Char.ShutUpForScriptedSpeech(748@, False)

:WUZI1_27698
636@ = 2
637@ = 0
638@ = 0
285@ = 0
329@ = 0
$wz1_health_bar = 0
631@(634@,3i) = 0
Text.ClearPrints
if 
  not Char.IsDead(748@)
goto_if_false @WUZI1_27774
Char.EnableSpeech(748@)

:WUZI1_27774
goto @WUZI1_27781

:WUZI1_27781
return 

:WUZI1_27783
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:WUZI1_27801
Text.PrintWithNumberBig('M_PASSS', 5000, 5000, TextStyle.Middle)
Player.AddScore($player1, 5000)
Stat.AwardPlayerMissionRespect(10)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.PlayerMadeProgress(1)
Stat.RegisterMissionPassed('WUZI_1')
$flag_wuzi_mission_counter += 1
return 

:WUZI1_27865
130@ = 0

:WUZI1_27872
if 
  18 > 130@
goto_if_false @WUZI1_27965
Blip.Remove(111@(130@,18i))
if 
  not Char.IsDead(138@(130@,18i))
goto_if_false @WUZI1_27951
Task.KillCharOnFoot(138@(130@,18i), $scplayer)
Char.SetKeepTask(138@(130@,18i), True)
Char.MarkAsNoLongerNeeded(138@(130@,18i))

:WUZI1_27951
130@ += 1
goto @WUZI1_27872

:WUZI1_27965
Text.ClearHelp
if 
  not Car.IsDead(104@)
goto_if_false @WUZI1_28012
Car.SetHeavy(104@, False)
Car.SetProofs(104@, False, False, False, False, False)
Car.LockDoors(104@, CarLock.Unlocked)

:WUZI1_28012
if 
  Player.IsPlaying($player1)
goto_if_false @WUZI1_28035
Player.SetControl($player1, True)

:WUZI1_28035
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Streaming.UnloadSpecialCharacter(1)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(121)
Streaming.MarkModelAsNoLongerNeeded(122)
Streaming.MarkModelAsNoLongerNeeded(123)
Streaming.MarkModelAsNoLongerNeeded(358)
Streaming.MarkModelAsNoLongerNeeded(405)
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(118)
Streaming.MarkModelAsNoLongerNeeded(58)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.RemoveAnimation("SWAT")
Streaming.RemoveAnimation("WUZI")
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("CAR_CHAT")
Streaming.RemoveCarRecording(136)
Streaming.RemoveCarRecording(137)
Streaming.RemoveCarRecording(138)
Streaming.RemoveCarRecording(139)
Streaming.RemoveCarRecording(169)
Path.SwitchPedRoadsBackToOriginal(-2239.251, 636.6675, 53.1933, -2165.047, 720.0577, 49.5456)
Hud.ClearCounter($7246)
Game.SwitchRandomTrains(True)
Game.SetWantedMultiplier(1.0)
if 
  not Char.IsDead($scplayer)
goto_if_false @WUZI1_28230
Char.ShutUpForScriptedSpeech($scplayer, False)

:WUZI1_28230
if 
  not Char.IsDead(35@)
goto_if_false @WUZI1_28251
Char.RemoveElegantly(35@)

:WUZI1_28251
Blip.Remove(107@)
Blip.Remove(108@)
Blip.Remove(109@)
Blip.Remove(110@)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
ScriptFire.Remove(258@)
ScriptFire.Remove(259@)
DecisionMaker.Remove(34@)
Game.SwitchEmergencyServices(True)
$onmission = 0
World.SetUsesCollisionOfClosestObjectOfType(-2175.213, 662.718, 50.8582, 10.5, #CT_GATEXR, True)
World.SetUsesCollisionOfClosestObjectOfType(-2175.213, 662.718, 50.8582, 10.5, #CHINA_TOWN_GATEB, True)
Mission.Finish
return 

//-------------Mission 54---------------
// Originally: Ran Fa Li

:FARLIE4
script_name 'FARLIE4'
gosub @FARLIE4_47
if 
  has_deatharrest_been_executed 
goto_if_false @FARLIE4_38
gosub @FARLIE4_7853

:FARLIE4_38
gosub @FARLIE4_8354
terminate_this_script 

:FARLIE4_47
Text.LoadMissionText('FARLIE4')
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:FARLIE4_73
if 
  Camera.GetFadingStatus
goto_if_false @FARLIE4_97
wait 0
goto @FARLIE4_73

:FARLIE4_97
Streaming.SetAreaVisible(1)
Cutscene.Load('FARL_4A')

:FARLIE4_112
if 
  not Cutscene.HasLoaded
goto_if_false @FARLIE4_136
wait 0
goto @FARLIE4_112

:FARLIE4_136
Cutscene.Start
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:FARLIE4_153
if 
  not Cutscene.HasFinished
goto_if_false @FARLIE4_177
wait 0
goto @FARLIE4_153

:FARLIE4_177
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)

:FARLIE4_191
if 
  Camera.GetFadingStatus
goto_if_false @FARLIE4_215
wait 0
goto @FARLIE4_191

:FARLIE4_215
Cutscene.Clear
Streaming.SetAreaVisible(0)
if 
  not Char.IsDead($scplayer)
goto_if_false @FARLIE4_286
Streaming.LoadScene(-2154.998, 645.5436, 51.3516)
Char.SetCoordinates($scplayer, -2154.998, 645.5436, 51.3516)
Char.SetHeading($scplayer, 271.113)
Camera.SetBehindPlayer

:FARLIE4_286
Hud.SwitchWidescreen(False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)
Stat.RegisterMissionGiven
$onmission = 1
Path.SwitchRoadsOff(-1478.294, -65.4014, 0.0, -1395.423, 2.7054, 10.0)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Like, PedType.Mission1, PedType.Mission1)
46@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
146@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.AddEventResponse(146@, 17, 704, 0.0, 0.0, 100.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse(46@, 17, 704, 0.0, 0.0, 100.0, 0.0, True, True)
37@ = Blip.AddForCoord(-1742.273, 1422.631, 6.1842)
Blip.ChangeDisplay(37@, BlipDisplay.Neither)
41@ = Blip.AddForCoord(-1409.9, -303.4, 4.5)
Garage.ChangeType('FDORSFE', GarageType.ForScriptToOpenAndClose)
Streaming.RequestModel(352)

:FARLIE4_509
if 
  not Streaming.HasModelLoaded(352)
goto_if_false @FARLIE4_536
wait 0
goto @FARLIE4_509

:FARLIE4_536
if and
  not Char.HasGotWeapon($scplayer, WeaponType.MicroUzi)
  not Char.HasGotWeapon($scplayer, WeaponType.Mp5)
goto_if_false @FARLIE4_578
Char.GiveWeapon($scplayer, WeaponType.MicroUzi, 150)
Char.SetCurrentWeapon($scplayer, WeaponType.MicroUzi)

:FARLIE4_578
TIMERA = 0
140@ = 2
Text.PrintNow('F4_T0', 9000, 1)

:FARLIE4_608
if 
  not Char.IsDead($scplayer)
goto_if_false @FARLIE4_875
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @FARLIE4_650
goto @FARLIE4_8015

:FARLIE4_650
gosub @FARLIE4_8746
gosub @FARLIE4_9552
if 
  Char.LocateAnyMeans3D($scplayer, -1409.9, -303.4, 4.5, 4.0, 4.0, 4.0, True)
goto_if_false @FARLIE4_868
Streaming.RequestModel(475)
Streaming.RequestModel(410)

:FARLIE4_722
if or
  not Streaming.HasModelLoaded(475)
  not Streaming.HasModelLoaded(410)
goto_if_false @FARLIE4_754
wait 0
goto @FARLIE4_722

:FARLIE4_754
141@ = 1
Blip.Remove(41@)
34@ = Car.Create(410, -1425.512, -21.2813, 5.0078)
Car.SetHeading(34@, 88.7848)
Car.FreezePosition(34@, True)
35@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(35@, True)
Car.SetCanBurstTires(34@, False)
Car.SetHealth(34@, 3000)
Car.ChangeColor(34@, 3, 3)
Text.PrintNow('F4_T7', 4000, 1)
goto @FARLIE4_882

:FARLIE4_868
goto @FARLIE4_608

:FARLIE4_875
goto @FARLIE4_7853

:FARLIE4_882
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(34@)
goto_if_false @FARLIE4_1039
wait 0
gosub @FARLIE4_8746
gosub @FARLIE4_9552
if and
  Char.IsInAnyCar($scplayer)
  not Car.IsDead(34@)
goto_if_false @FARLIE4_969
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @FARLIE4_969
$car = Char.StoreCarIsIn($scplayer)

:FARLIE4_969
if 
  not Car.IsDead(34@)
goto_if_false @FARLIE4_1032
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @FARLIE4_1032
Blip.ChangeDisplay(35@, BlipDisplay.Neither)
Blip.ChangeDisplay(37@, BlipDisplay.Both)
Car.FreezePosition(34@, False)
goto @FARLIE4_1046

:FARLIE4_1032
goto @FARLIE4_882

:FARLIE4_1039
goto @FARLIE4_7853

:FARLIE4_1046
Player.SetControl($player1, False)
Streaming.RequestModel(121)
Streaming.RequestModel(122)
Streaming.RequestModel(521)
Streaming.RequestModel(352)
Streaming.RequestModel(414)
Streaming.RequestModel(330)
Streaming.RequestModel(475)
Streaming.RequestModel(543)

:FARLIE4_1091
if or
  not Streaming.HasModelLoaded(121)
  not Streaming.HasModelLoaded(122)
  not Streaming.HasModelLoaded(521)
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(414)
  not Streaming.HasModelLoaded(330)
goto_if_false @FARLIE4_1141
wait 0
goto @FARLIE4_1091

:FARLIE4_1141
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 35800)

:FARLIE4_1154
if or
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
  not Streaming.HasModelLoaded(475)
  not Streaming.HasModelLoaded(543)
goto_if_false @FARLIE4_1190
wait 0
goto @FARLIE4_1154

:FARLIE4_1190
World.SetCarDensityMultiplier(0.0)

:FARLIE4_1197
gosub @FARLIE4_8288
if 
  not Car.IsDead($car)
goto_if_false @FARLIE4_1308
if 
  Car.Locate3D($car, -1429.619, -21.2788, 5.0078, 10.0, 10.0, 10.0, False)
goto_if_false @FARLIE4_1303
Car.SetAsMissionCar($car)
Car.SetCoordinates($car, -1425.615, -16.4956, 5.0078)
Car.SetHeading($car, 271.5388)

:FARLIE4_1303
wait 500

:FARLIE4_1308
World.ClearArea(-1412.56, -138.0878, 5.0, 200.0, True)
gosub @FARLIE4_8254
Camera.SetFixedPosition(-1430.361, -18.6971, 6.191, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1429.655, -19.4032, 6.1376, SwitchType.JumpCut)
49@ = Car.Create(414, -1414.173, -50.4918, 5.0)
Car.SetHeading(49@, 0.0)
59@ = Char.CreateInsideCar(49@, PedType.Mission1, 121)
Char.GiveWeapon(59@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(59@, WeaponType.MicroUzi)
if and
  not Car.IsDead(49@)
  not Char.IsDead(59@)
  not Char.IsDead($scplayer)
goto_if_false @FARLIE4_1543
142@ = Sequence.Open()
Task.CarDriveToCoord(-1, 49@, -1414.428, -32.5711, 5.0069, 15.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
Task.LeaveCar(-1, 49@)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(142@)
Char.PerformSequence(59@, 142@)

:FARLIE4_1543
if 
  not Car.IsDead(34@)
goto_if_false @FARLIE4_1567
43@ = Car.GetHealth(34@)

:FARLIE4_1567
set_var_int_to_lvar_int $f4_rnd = 43@
$f4_rnd /= 30
Hud.DisplayCounterWithString($f4_rnd, CounterDisplay.Bar, 'F4_D')
gosub @FARLIE4_8321
Text.PrintNow('F4_T5', 5000, 1)
TIMERB = 0

:FARLIE4_1628
if 
  2000 > TIMERB
goto_if_false @FARLIE4_1682
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @FARLIE4_1675
goto @FARLIE4_1762

:FARLIE4_1675
goto @FARLIE4_1628

:FARLIE4_1682
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @FARLIE4_1701
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:FARLIE4_1701
TIMERB = 0

:FARLIE4_1708
if 
  2000 > TIMERB
goto_if_false @FARLIE4_1762
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @FARLIE4_1755
goto @FARLIE4_1762

:FARLIE4_1755
goto @FARLIE4_1708

:FARLIE4_1762
gosub @FARLIE4_8269
Text.PrintNow('F4_T8', 4000, 1)
if 
  not Car.IsDead(34@)
goto_if_false @FARLIE4_1808
Car.FreezePosition(34@, False)

:FARLIE4_1808
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(34@)
goto_if_false @FARLIE4_7846
wait 0
gosub @FARLIE4_8746
gosub @FARLIE4_9552
if 
  not Car.IsDead(34@)
goto_if_false @FARLIE4_1887
if 
  Car.HasBeenResprayed(34@)
goto_if_false @FARLIE4_1887
Car.SetHealth(34@, 3000)

:FARLIE4_1887
if 
  not Car.IsDead(34@)
goto_if_false @FARLIE4_2046
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @FARLIE4_1968
if 
  40@ == 0
goto_if_false @FARLIE4_1961
Blip.ChangeDisplay(35@, BlipDisplay.Neither)
Blip.ChangeDisplay(37@, BlipDisplay.Both)
40@ = 1

:FARLIE4_1961
goto @FARLIE4_2023

:FARLIE4_1968
if 
  40@ == 1
goto_if_false @FARLIE4_2023
Blip.ChangeDisplay(35@, BlipDisplay.Both)
Blip.ChangeDisplay(37@, BlipDisplay.Neither)
Text.PrintNow('F4_T4', 4000, 1)
40@ = 0

:FARLIE4_2023
43@ = Car.GetHealth(34@)
set_var_int_to_lvar_int $f4_rnd = 43@
$f4_rnd /= 30

:FARLIE4_2046
if or
  Char.LocateAnyMeans3D($scplayer, -1467.032, -133.7941, 5.0078, 60.0, 60.0, 10.0, False)
  Char.LocateAnyMeans3D($scplayer, -1347.11, -49.7249, 5.0078, 20.0, 20.0, 10.0, False)
  Char.LocateAnyMeans3D($scplayer, -1421.344, -238.9247, 5.0, 20.0, 20.0, 10.0, False)
goto_if_false @FARLIE4_2370
if 
  79@ == 0
goto_if_false @FARLIE4_2370
World.ClearArea(-1474.466, -162.8309, 5.0234, 10.0, True)
51@ = Car.Create(414, -1474.466, -162.8309, 5.0234)
Car.SetHeading(51@, 272.5542)
61@ = Char.CreateInsideCar(51@, PedType.Mission1, 121)
Char.GiveWeapon(61@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(61@, WeaponType.MicroUzi)
if and
  not Car.IsDead(51@)
  not Char.IsDead(61@)
  not Char.IsDead($scplayer)
goto_if_false @FARLIE4_2363
144@ = Sequence.Open()
Task.CarDriveToCoord(-1, 51@, -1464.862, -162.4026, 5.0226, 25.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
Task.LeaveCar(-1, 51@)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(144@)
Char.PerformSequence(61@, 144@)

:FARLIE4_2363
79@ = 1

:FARLIE4_2370
if or
  Char.LocateAnyMeans3D($scplayer, -1423.849, -135.7411, 5.0078, 20.0, 20.0, 10.0, False)
  Char.LocateAnyMeans3D($scplayer, -1347.11, -49.7249, 5.0078, 20.0, 20.0, 10.0, False)
  Char.LocateAnyMeans3D($scplayer, -1421.344, -238.9247, 5.0, 20.0, 20.0, 10.0, False)
goto_if_false @FARLIE4_2694
if 
  80@ == 0
goto_if_false @FARLIE4_2694
World.ClearArea(-1387.268, -126.9234, 5.0078, 10.0, True)
50@ = Car.Create(414, -1387.268, -126.9234, 5.0078)
Car.SetHeading(50@, 180.2388)
60@ = Char.CreateInsideCar(50@, PedType.Mission1, 121)
Char.GiveWeapon(60@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(60@, WeaponType.MicroUzi)
if and
  not Car.IsDead(50@)
  not Char.IsDead(60@)
  not Char.IsDead($scplayer)
goto_if_false @FARLIE4_2687
143@ = Sequence.Open()
Task.CarDriveToCoord(-1, 50@, -1387.225, -135.6199, 5.0078, 25.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
Task.LeaveCar(-1, 50@)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(143@)
Char.PerformSequence(60@, 143@)

:FARLIE4_2687
80@ = 1

:FARLIE4_2694
if or
  Char.LocateAnyMeans3D($scplayer, -1427.269, -238.5722, 5.0234, 20.0, 20.0, 10.0, False)
  Char.LocateAnyMeans3D($scplayer, -1347.11, -49.7249, 5.0078, 20.0, 20.0, 10.0, False)
  Char.LocateAnyMeans3D($scplayer, -1421.344, -238.9247, 5.0, 20.0, 20.0, 10.0, False)
goto_if_false @FARLIE4_3013
if 
  89@ == 0
goto_if_false @FARLIE4_3013
World.ClearArea(-1387.792, -230.1776, 5.0078, 10.0, True)
52@ = Car.Create(414, -1387.792, -230.1776, 5.0078)
Car.SetHeading(52@, 179.5878)
62@ = Char.CreateInsideCar(52@, PedType.Mission1, 121)
Char.GiveWeapon(62@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(62@, WeaponType.MicroUzi)
if and
  not Car.IsDead(52@)
  not Char.IsDead($scplayer)
goto_if_false @FARLIE4_3006
145@ = Sequence.Open()
Task.CarDriveToCoord(-1, 52@, -1387.862, -240.3811, 5.0078, 25.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
Task.LeaveCar(-1, 52@)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(145@)
Char.PerformSequence(62@, 145@)

:FARLIE4_3006
89@ = 1

:FARLIE4_3013
if and
  Char.LocateAnyMeans3D($scplayer, -1399.686, -184.757, 5.3047, 5.0, 5.0, 10.0, False)
  81@ == 0
goto_if_false @FARLIE4_3148
44@ = Char.Create(PedType.Mission1, 122, -1404.049, -234.7071, 5.3047)
Char.SetHeading(44@, 353.8535)
Char.GiveWeapon(44@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(44@, WeaponType.MicroUzi)
Char.SetAccuracy(44@, 80)
Char.SetDecisionMaker(44@, 46@)
Task.WeaponRoll(44@, True)
81@ = 1

:FARLIE4_3148
if and
  Char.LocateAnyMeans3D($scplayer, -1400.184, -205.7361, 5.3047, 5.0, 5.0, 10.0, False)
  82@ == 0
goto_if_false @FARLIE4_3283
45@ = Char.Create(PedType.Mission1, 121, -1394.235, -234.735, 5.3047)
Char.SetHeading(45@, 1.5813)
Char.GiveWeapon(45@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(45@, WeaponType.MicroUzi)
Char.SetAccuracy(45@, 80)
Char.SetDecisionMaker(45@, 46@)
Task.WeaponRoll(45@, False)
82@ = 1

:FARLIE4_3283
if and
  Char.LocateAnyMeans3D($scplayer, -1407.187, -239.4782, 5.3047, 20.0, 20.0, 10.0, False)
  83@ == 0
goto_if_false @FARLIE4_3824
69@ = Char.Create(PedType.Mission1, 122, -1407.076, -358.3559, 8.3099)
Char.SetHeading(69@, 9.5994)
70@ = Char.Create(PedType.Mission1, 121, -1476.887, -291.53, 8.7087)
Char.SetHeading(70@, 258.9856)
36@ = 0

:FARLIE4_3413
Char.GiveWeapon(69@(36@,10i), WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(69@(36@,10i), WeaponType.MicroUzi)
Char.SetAccuracy(69@(36@,10i), 80)
Char.SetDecisionMaker(69@(36@,10i), 46@)
Task.StayInSamePlace(69@(36@,10i), True)
Task.KillCharOnFoot(69@(36@,10i), $scplayer)
Task.ToggleDuck(69@(36@,10i), True)
36@ += 1
  36@ >= 2
goto_if_false @FARLIE4_3413
52@ = Car.Create(414, -1478.896, -470.3535, 10.9926)
Car.SetHeading(52@, 11.1921)
99@ = Char.Create(PedType.Mission1, 122, -1478.188, -476.1086, 11.1411)
Char.SetHeading(99@, 277.8792)
100@ = Char.Create(PedType.Mission1, 122, -1479.535, -466.4356, 11.0)
Char.SetHeading(100@, 263.3237)
53@ = Car.Create(414, -1586.023, -359.7679, 10.9926)
Car.SetHeading(53@, 248.7342)
101@ = Char.Create(PedType.Mission1, 122, -1582.225, -362.0264, 11.0)
Char.SetHeading(101@, 356.2877)
102@ = Char.Create(PedType.Mission1, 122, -1590.694, -357.4667, 11.1411)
Char.SetHeading(102@, 323.3828)
36@ = 0

:FARLIE4_3725
Char.GiveWeapon(99@(36@,10i), WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(99@(36@,10i), WeaponType.MicroUzi)
Char.SetAccuracy(99@(36@,10i), 80)
Char.SetDecisionMaker(99@(36@,10i), 46@)
Task.StayInSamePlace(99@(36@,10i), True)
Task.KillCharOnFoot(99@(36@,10i), $scplayer)
36@ += 1
  36@ >= 4
goto_if_false @FARLIE4_3725
83@ = 1

:FARLIE4_3824
if and
  Char.LocateAnyMeans3D($scplayer, -1570.888, -455.6748, 5.0, 25.0, 25.0, 10.0, False)
  84@ == 0
goto_if_false @FARLIE4_4001
World.SetCarDensityMultiplier(1.0)
Char.Delete(44@)
Char.Delete(45@)
36@ = 0

:FARLIE4_3903
Char.Delete(59@(36@,10i))
if 
  not Car.IsDead(49@(36@,10i))
goto_if_false @FARLIE4_3964
if 
  not Char.IsInCar($scplayer, 49@(36@,10i))
goto_if_false @FARLIE4_3964
Car.Delete(49@(36@,10i))

:FARLIE4_3964
Char.Delete(69@(36@,10i))
36@ += 1
  36@ >= 3
goto_if_false @FARLIE4_3903
84@ = 1

:FARLIE4_4001
if and
  Char.LocateAnyMeans3D($scplayer, -2258.519, 124.3485, 34.3125, 150.0, 150.0, 10.0, False)
  85@ == 0
goto_if_false @FARLIE4_4311
World.ClearArea(-2258.519, 124.3485, 34.3125, 10.0, True)
109@ = Car.Create(521, -2258.519, 124.3485, 34.3125)
129@ = Blip.AddForCar(109@)
Car.SetDrivingStyle(109@, DrivingMode.AvoidCars)
Car.SetHeading(109@, 179.5562)
119@ = Char.CreateInsideCar(109@, PedType.Mission1, 121)
120@ = Char.CreateAsPassenger(109@, PedType.Mission1, 122, 0)
Char.SetCanBeKnockedOffBike(119@, False)
Char.SetCanBeKnockedOffBike(120@, False)
Char.GiveWeapon(119@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(119@, WeaponType.MicroUzi)
Char.SetAccuracy(119@, 30)
Char.GiveWeapon(120@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(120@, WeaponType.MicroUzi)
Char.SetAccuracy(120@, 30)
Char.SetDecisionMaker(119@, 46@)
Char.SetDecisionMaker(120@, 46@)
Task.DriveBy(120@, $scplayer, -1, 0.0, 0.0, 0.0, 999.0, DriveByType.Ai, False, 50)
if 
  not Car.IsDead(34@)
goto_if_false @FARLIE4_4304
Task.CarMission(119@, 109@, 34@, CarMission.EscortLeft, 100.0, DrivingMode.AvoidCars)

:FARLIE4_4304
85@ = 1

:FARLIE4_4311
if and
  Char.LocateAnyMeans3D($scplayer, -1817.805, -552.1889, 15.0039, 150.0, 150.0, 10.0, False)
  86@ == 0
goto_if_false @FARLIE4_4650
World.ClearArea(-1817.805, -552.1889, 15.0039, 10.0, True)
110@ = Car.Create(521, -1817.805, -552.1889, 15.0039)
130@ = Blip.AddForCar(110@)
Car.SetHeading(110@, 174.0251)
Car.SetDrivingStyle(110@, DrivingMode.AvoidCars)
121@ = Char.CreateInsideCar(110@, PedType.Mission1, 121)
122@ = Char.CreateAsPassenger(110@, PedType.Mission1, 122, 0)
Char.SetCanBeKnockedOffBike(121@, False)
Char.SetCanBeKnockedOffBike(122@, False)
Char.GiveWeapon(121@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(121@, WeaponType.MicroUzi)
Char.SetAccuracy(121@, 30)
Char.GiveWeapon(122@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(122@, WeaponType.MicroUzi)
Char.SetAccuracy(122@, 30)
Task.DriveBy(122@, $scplayer, -1, 0.0, 0.0, 0.0, 999.0, DriveByType.Ai, False, 50)
Char.SetDecisionMaker(122@, 46@)
Char.SetDecisionMaker(121@, 46@)
if 
  not Car.IsDead(34@)
goto_if_false @FARLIE4_4643
38@ = Sequence.Open()
Task.Pause(-1, 5000)
Task.CarMission(-1, 110@, 34@, CarMission.EscortRight, 100.0, DrivingMode.AvoidCars)
Sequence.Close(38@)
Char.PerformSequence(121@, 38@)
Sequence.Clear(38@)

:FARLIE4_4643
86@ = 1

:FARLIE4_4650
if and
  Char.LocateAnyMeans3D($scplayer, -1818.385, -621.8912, 15.312, 150.0, 150.0, 10.0, False)
  87@ == 0
goto_if_false @FARLIE4_4989
World.ClearArea(-1818.385, -621.8912, 15.312, 10.0, True)
111@ = Car.Create(521, -1818.385, -621.8912, 15.312)
131@ = Blip.AddForCar(111@)
Car.SetHeading(111@, 1.701)
Car.SetDrivingStyle(111@, DrivingMode.AvoidCars)
123@ = Char.CreateInsideCar(111@, PedType.Mission1, 121)
124@ = Char.CreateAsPassenger(111@, PedType.Mission1, 122, 0)
Char.SetCanBeKnockedOffBike(123@, False)
Char.SetCanBeKnockedOffBike(124@, False)
Char.GiveWeapon(123@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(123@, WeaponType.MicroUzi)
Char.SetAccuracy(123@, 30)
Char.GiveWeapon(124@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(124@, WeaponType.MicroUzi)
Char.SetAccuracy(124@, 30)
Task.DriveBy(124@, $scplayer, -1, 0.0, 0.0, 0.0, 999.0, DriveByType.Ai, False, 50)
Char.SetDecisionMaker(124@, 46@)
Char.SetDecisionMaker(123@, 46@)
if 
  not Car.IsDead(34@)
goto_if_false @FARLIE4_4982
38@ = Sequence.Open()
Task.Pause(-1, 5000)
Task.CarMission(-1, 111@, 34@, CarMission.EscortLeft, 100.0, DrivingMode.AvoidCars)
Sequence.Close(38@)
Char.PerformSequence(123@, 38@)
Sequence.Clear(38@)

:FARLIE4_4982
87@ = 1

:FARLIE4_4989
if and
  Char.LocateAnyMeans3D($scplayer, -2211.62, 580.9911, 34.1691, 300.0, 300.0, 10.0, False)
  157@ == 0
goto_if_false @FARLIE4_5292
World.ClearArea(-2211.62, 580.9911, 34.1691, 10.0, True)
162@ = Car.Create(410, -2211.62, 580.9911, 34.1691)
167@ = Blip.AddForCar(162@)
Car.SetHeading(162@, 176.7102)
Car.SetDrivingStyle(162@, DrivingMode.AvoidCars)
147@ = Char.CreateInsideCar(162@, PedType.Mission1, 121)
148@ = Char.CreateAsPassenger(162@, PedType.Mission1, 122, 0)
Char.SetCanBeKnockedOffBike(148@, 2)
Char.GiveWeapon(147@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(147@, WeaponType.MicroUzi)
Char.SetAccuracy(147@, 30)
Char.GiveWeapon(148@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(148@, WeaponType.MicroUzi)
Char.SetAccuracy(148@, 30)
Task.DriveBy(148@, $scplayer, -1, 0.0, 0.0, 0.0, 999.0, DriveByType.Ai, False, 50)
Char.SetDecisionMaker(148@, 46@)
Char.SetDecisionMaker(147@, 46@)
if 
  not Car.IsDead(34@)
goto_if_false @FARLIE4_5285
Task.CarMission(147@, 162@, 34@, CarMission.EscortRight, 100.0, DrivingMode.AvoidCars)

:FARLIE4_5285
157@ = 1

:FARLIE4_5292
if and
  Char.LocateAnyMeans3D($scplayer, -1850.127, 1096.324, 44.2969, 300.0, 300.0, 10.0, False)
  158@ == 0
goto_if_false @FARLIE4_5588
World.ClearArea(-1850.127, 1096.324, 44.2969, 10.0, True)
163@ = Car.Create(475, -1850.127, 1096.324, 44.2969)
168@ = Blip.AddForCar(163@)
Car.SetHeading(163@, 81.5282)
Car.SetDrivingStyle(163@, DrivingMode.AvoidCars)
149@ = Char.CreateInsideCar(163@, PedType.Mission1, 121)
150@ = Char.CreateAsPassenger(163@, PedType.Mission1, 122, 0)
Char.GiveWeapon(149@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(149@, WeaponType.MicroUzi)
Char.SetAccuracy(149@, 30)
Char.GiveWeapon(150@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(150@, WeaponType.MicroUzi)
Char.SetAccuracy(150@, 30)
Task.DriveBy(150@, $scplayer, -1, 0.0, 0.0, 0.0, 999.0, DriveByType.Ai, False, 50)
Char.SetDecisionMaker(150@, 46@)
Char.SetDecisionMaker(149@, 46@)
if 
  not Car.IsDead(34@)
goto_if_false @FARLIE4_5581
Task.CarMission(149@, 163@, 34@, CarMission.EscortLeft, 100.0, DrivingMode.AvoidCars)

:FARLIE4_5581
158@ = 1

:FARLIE4_5588
if and
  Char.LocateAnyMeans3D($scplayer, -1740.369, 1404.461, 6.1875, 300.0, 300.0, 10.0, False)
  159@ == 0
goto_if_false @FARLIE4_5884
World.ClearArea(-1740.369, 1404.461, 6.1875, 10.0, True)
164@ = Car.Create(543, -1740.369, 1404.461, 6.1875)
169@ = Blip.AddForCar(164@)
Car.SetHeading(164@, 172.1585)
Car.SetDrivingStyle(164@, DrivingMode.AvoidCars)
151@ = Char.CreateInsideCar(164@, PedType.Mission1, 121)
152@ = Char.CreateAsPassenger(164@, PedType.Mission1, 122, 0)
Char.GiveWeapon(151@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(151@, WeaponType.MicroUzi)
Char.SetAccuracy(151@, 30)
Char.GiveWeapon(152@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(152@, WeaponType.MicroUzi)
Char.SetAccuracy(152@, 30)
Task.DriveBy(152@, $scplayer, -1, 0.0, 0.0, 0.0, 999.0, DriveByType.Ai, False, 50)
Char.SetDecisionMaker(152@, 46@)
Char.SetDecisionMaker(151@, 46@)
if 
  not Car.IsDead(34@)
goto_if_false @FARLIE4_5877
Task.CarMission(151@, 164@, 34@, CarMission.EscortRight, 100.0, DrivingMode.AvoidCars)

:FARLIE4_5877
159@ = 1

:FARLIE4_5884
if and
  Char.LocateAnyMeans3D($scplayer, -1892.652, 745.0367, 44.2969, 300.0, 300.0, 10.0, False)
  160@ == 0
goto_if_false @FARLIE4_6187
World.ClearArea(-1892.652, 745.0367, 44.2969, 10.0, True)
165@ = Car.Create(475, -1892.652, 745.0367, 44.2969)
170@ = Blip.AddForCar(165@)
Car.SetHeading(165@, 167.9494)
Car.SetDrivingStyle(165@, DrivingMode.AvoidCars)
Car.SetMission(165@, CarMission.BlockPlayerClose)
153@ = Char.CreateInsideCar(165@, PedType.Mission1, 121)
154@ = Char.CreateAsPassenger(165@, PedType.Mission1, 122, 0)
Char.GiveWeapon(153@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(153@, WeaponType.MicroUzi)
Char.SetAccuracy(153@, 30)
Char.GiveWeapon(154@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(154@, WeaponType.MicroUzi)
Char.SetAccuracy(154@, 30)
Task.DriveBy(153@, $scplayer, -1, 0.0, 0.0, 0.0, 999.0, DriveByType.Ai, False, 50)
Char.SetDecisionMaker(154@, 46@)
Char.SetDecisionMaker(153@, 46@)
if 
  not Car.IsDead(34@)
goto_if_false @FARLIE4_6180
Task.CarMission(154@, 165@, 34@, CarMission.EscortLeft, 100.0, DrivingMode.AvoidCars)

:FARLIE4_6180
160@ = 1

:FARLIE4_6187
if and
  Char.LocateAnyMeans3D($scplayer, -2154.207, 576.4759, 34.1719, 150.0, 150.0, 10.0, False)
  88@ == 0
goto_if_false @FARLIE4_6379
World.ClearArea(-1818.385, -621.8912, 15.312, 10.0, True)
183@ = Char.Create(PedType.Mission1, 121, -2154.207, 576.4759, 34.1719)
182@ = Car.Create(521, -2154.382, 577.5017, 34.1719)
Car.SetHeading(182@, 114.1029)
Char.SetHeading(183@, 211.0992)
Char.GiveWeapon(183@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(183@, WeaponType.MicroUzi)
Char.SetAccuracy(183@, 90)
Char.SetDecisionMaker(183@, 46@)
Task.StayInSamePlace(183@, True)
88@ = 1

:FARLIE4_6379
if and
  Char.LocateAnyMeans3D($scplayer, -2245.675, 303.3215, 34.3203, 150.0, 150.0, 10.0, False)
  88@ == 0
goto_if_false @FARLIE4_6571
World.ClearArea(-2245.675, 303.3215, 34.3203, 10.0, True)
185@ = Char.Create(PedType.Mission1, 121, -2245.675, 303.3215, 34.3203)
184@ = Car.Create(521, -2244.782, 304.8253, 34.3203)
Car.SetHeading(184@, 191.9683)
Char.SetHeading(185@, 165.1429)
Char.GiveWeapon(185@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(185@, WeaponType.MicroUzi)
Char.SetAccuracy(185@, 90)
Char.SetDecisionMaker(185@, 46@)
Task.StayInSamePlace(185@, True)
88@ = 1

:FARLIE4_6571
if 
  not Char.IsDead(119@)
goto_if_false @FARLIE4_6636
if 
  not Char.IsInAnyCar(119@)
goto_if_false @FARLIE4_6629
Task.Die(119@)
if 
  Blip.DoesExist(129@)
goto_if_false @FARLIE4_6629
Blip.Remove(129@)

:FARLIE4_6629
goto @FARLIE4_6657

:FARLIE4_6636
if 
  Blip.DoesExist(129@)
goto_if_false @FARLIE4_6657
Blip.Remove(129@)

:FARLIE4_6657
if 
  not Char.IsDead(121@)
goto_if_false @FARLIE4_6717
if 
  not Char.IsInAnyCar(121@)
goto_if_false @FARLIE4_6710
if 
  Blip.DoesExist(130@)
goto_if_false @FARLIE4_6710
Blip.Remove(130@)

:FARLIE4_6710
goto @FARLIE4_6738

:FARLIE4_6717
if 
  Blip.DoesExist(130@)
goto_if_false @FARLIE4_6738
Blip.Remove(130@)

:FARLIE4_6738
if 
  not Char.IsDead(123@)
goto_if_false @FARLIE4_6798
if 
  not Char.IsInAnyCar(123@)
goto_if_false @FARLIE4_6791
if 
  Blip.DoesExist(131@)
goto_if_false @FARLIE4_6791
Blip.Remove(131@)

:FARLIE4_6791
goto @FARLIE4_6819

:FARLIE4_6798
if 
  Blip.DoesExist(131@)
goto_if_false @FARLIE4_6819
Blip.Remove(131@)

:FARLIE4_6819
if 
  not Char.IsDead(147@)
goto_if_false @FARLIE4_6879
if 
  not Char.IsInAnyCar(147@)
goto_if_false @FARLIE4_6872
if 
  Blip.DoesExist(167@)
goto_if_false @FARLIE4_6872
Blip.Remove(167@)

:FARLIE4_6872
goto @FARLIE4_6900

:FARLIE4_6879
if 
  Blip.DoesExist(167@)
goto_if_false @FARLIE4_6900
Blip.Remove(167@)

:FARLIE4_6900
if 
  not Char.IsDead(149@)
goto_if_false @FARLIE4_6960
if 
  not Char.IsInAnyCar(149@)
goto_if_false @FARLIE4_6953
if 
  Blip.DoesExist(168@)
goto_if_false @FARLIE4_6953
Blip.Remove(168@)

:FARLIE4_6953
goto @FARLIE4_6981

:FARLIE4_6960
if 
  Blip.DoesExist(168@)
goto_if_false @FARLIE4_6981
Blip.Remove(168@)

:FARLIE4_6981
if 
  not Char.IsDead(151@)
goto_if_false @FARLIE4_7041
if 
  not Char.IsInAnyCar(151@)
goto_if_false @FARLIE4_7034
if 
  Blip.DoesExist(169@)
goto_if_false @FARLIE4_7034
Blip.Remove(169@)

:FARLIE4_7034
goto @FARLIE4_7062

:FARLIE4_7041
if 
  Blip.DoesExist(169@)
goto_if_false @FARLIE4_7062
Blip.Remove(169@)

:FARLIE4_7062
if 
  not Char.IsDead(153@)
goto_if_false @FARLIE4_7122
if 
  not Char.IsInAnyCar(153@)
goto_if_false @FARLIE4_7115
if 
  Blip.DoesExist(170@)
goto_if_false @FARLIE4_7115
Blip.Remove(170@)

:FARLIE4_7115
goto @FARLIE4_7143

:FARLIE4_7122
if 
  Blip.DoesExist(170@)
goto_if_false @FARLIE4_7143
Blip.Remove(170@)

:FARLIE4_7143
if 
  not Char.IsDead($scplayer)
goto_if_false @FARLIE4_7509
36@ = 0

:FARLIE4_7166
if 
  not Char.IsDead(119@(36@,10i))
goto_if_false @FARLIE4_7228
if 
  Char.LocateAnyMeansChar2D($scplayer, 119@(36@,10i), 10.0, 10.0, False)
goto_if_false @FARLIE4_7228
gosub @FARLIE4_8978

:FARLIE4_7228
if 
  not Char.IsDead(99@(36@,10i))
goto_if_false @FARLIE4_7290
if 
  Char.LocateAnyMeansChar2D($scplayer, 99@(36@,10i), 10.0, 10.0, False)
goto_if_false @FARLIE4_7290
gosub @FARLIE4_8978

:FARLIE4_7290
36@ += 1
  36@ >= 4
goto_if_false @FARLIE4_7166
36@ = 0

:FARLIE4_7318
if 
  not Char.IsDead(69@(36@,10i))
goto_if_false @FARLIE4_7380
if 
  Char.LocateAnyMeansChar2D($scplayer, 69@(36@,10i), 10.0, 10.0, False)
goto_if_false @FARLIE4_7380
gosub @FARLIE4_8978

:FARLIE4_7380
36@ += 1
  36@ >= 2
goto_if_false @FARLIE4_7318
if 
  not Char.IsDead(44@)
goto_if_false @FARLIE4_7455
if 
  Char.LocateAnyMeansChar2D($scplayer, 44@, 10.0, 10.0, False)
goto_if_false @FARLIE4_7455
gosub @FARLIE4_8978

:FARLIE4_7455
if 
  not Char.IsDead(45@)
goto_if_false @FARLIE4_7509
if 
  Char.LocateAnyMeansChar2D($scplayer, 45@, 10.0, 10.0, False)
goto_if_false @FARLIE4_7509
gosub @FARLIE4_8978

:FARLIE4_7509
if 
  not Car.IsDead(34@)
goto_if_false @FARLIE4_7839
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @FARLIE4_7839
if 
  Char.LocateAnyMeans3D($scplayer, -1742.273, 1422.631, 6.1842, 4.0, 4.0, 4.0, True)
goto_if_false @FARLIE4_7839
Player.SetControl($player1, False)
gosub @FARLIE4_8288
if 
  not Car.IsDead(109@)
goto_if_false @FARLIE4_7627
Car.Delete(109@)

:FARLIE4_7627
if 
  not Car.IsDead(110@)
goto_if_false @FARLIE4_7648
Car.Delete(110@)

:FARLIE4_7648
if 
  not Car.IsDead(111@)
goto_if_false @FARLIE4_7669
Car.Delete(111@)

:FARLIE4_7669
if 
  not Car.IsDead(162@)
goto_if_false @FARLIE4_7690
Car.Delete(162@)

:FARLIE4_7690
if 
  not Car.IsDead(163@)
goto_if_false @FARLIE4_7711
Car.Delete(163@)

:FARLIE4_7711
if 
  not Car.IsDead(164@)
goto_if_false @FARLIE4_7732
Car.Delete(164@)

:FARLIE4_7732
if 
  not Car.IsDead(165@)
goto_if_false @FARLIE4_7753
Car.Delete(165@)

:FARLIE4_7753
if 
  not Char.IsDead($scplayer)
goto_if_false @FARLIE4_7799
Char.WarpFromCarToCoord($scplayer, -1741.706, 1425.384, 6.1842)
Char.SetHeading($scplayer, 179.2136)

:FARLIE4_7799
Hud.ClearCounter($f4_rnd)
Car.Delete(34@)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
wait 2000
gosub @FARLIE4_8321
goto @FARLIE4_8015

:FARLIE4_7839
goto @FARLIE4_1808

:FARLIE4_7846
goto @FARLIE4_7853

:FARLIE4_7853
if 
  Blip.DoesExist(37@)
goto_if_false @FARLIE4_7874
Blip.Remove(37@)

:FARLIE4_7874
if 
  Blip.DoesExist(35@)
goto_if_false @FARLIE4_7895
Blip.Remove(35@)

:FARLIE4_7895
if 
  Blip.DoesExist(129@)
goto_if_false @FARLIE4_7916
Blip.Remove(129@)

:FARLIE4_7916
if 
  Blip.DoesExist(130@)
goto_if_false @FARLIE4_7937
Blip.Remove(130@)

:FARLIE4_7937
if 
  Blip.DoesExist(131@)
goto_if_false @FARLIE4_7958
Blip.Remove(131@)

:FARLIE4_7958
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if and
  Car.IsDead(34@)
  141@ == 1
goto_if_false @FARLIE4_8013
Text.PrintNow('F4_F', 4000, 1)

:FARLIE4_8013
return 

:FARLIE4_8015
$flag_wuzi_mission_counter += 1
if 
  Blip.DoesExist(37@)
goto_if_false @FARLIE4_8043
Blip.Remove(37@)

:FARLIE4_8043
if 
  Blip.DoesExist(35@)
goto_if_false @FARLIE4_8064
Blip.Remove(35@)

:FARLIE4_8064
Stat.RegisterMissionPassed('FAR_4')
Stat.PlayerMadeProgress(1)
Audio.PlayMissionPassedTune(1)
Text.PrintWithNumberBig('M_PASSS', 6000, 5000, TextStyle.Middle)
Player.AddScore($player1, 6000)
Stat.AwardPlayerMissionRespect(15)
Player.ClearWantedLevel($player1)
if 
  Blip.DoesExist(129@)
goto_if_false @FARLIE4_8140
Blip.Remove(129@)

:FARLIE4_8140
if 
  Blip.DoesExist(130@)
goto_if_false @FARLIE4_8161
Blip.Remove(130@)

:FARLIE4_8161
if 
  Blip.DoesExist(131@)
goto_if_false @FARLIE4_8182
Blip.Remove(131@)

:FARLIE4_8182
if 
  not Car.IsDead(109@)
goto_if_false @FARLIE4_8203
Car.Delete(109@)

:FARLIE4_8203
if 
  not Car.IsDead(110@)
goto_if_false @FARLIE4_8224
Car.Delete(110@)

:FARLIE4_8224
if 
  not Car.IsDead(111@)
goto_if_false @FARLIE4_8245
Car.Delete(111@)

:FARLIE4_8245
gosub @FARLIE4_8321
return 

:FARLIE4_8254
Text.ClearPrints
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
return 

:FARLIE4_8269
Text.ClearPrints
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
return 

:FARLIE4_8288
Camera.DoFade(500, Fade.Out)

:FARLIE4_8295
if 
  Camera.GetFadingStatus
goto_if_false @FARLIE4_8319
wait 0
goto @FARLIE4_8295

:FARLIE4_8319
return 

:FARLIE4_8321
Camera.DoFade(500, Fade.In)

:FARLIE4_8328
if 
  Camera.GetFadingStatus
goto_if_false @FARLIE4_8352
wait 0
goto @FARLIE4_8328

:FARLIE4_8352
return 

:FARLIE4_8354
$onmission = 0
Hud.ClearCounter($f4_rnd)
Path.SwitchRoadsBackToOriginal(-1478.294, -65.4014, 0.0, -1395.423, 2.7054, 10.0)
Streaming.MarkModelAsNoLongerNeeded(121)
Streaming.MarkModelAsNoLongerNeeded(122)
Streaming.MarkModelAsNoLongerNeeded(521)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(414)
Streaming.MarkModelAsNoLongerNeeded(475)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(410)
Streaming.MarkModelAsNoLongerNeeded(543)
$timer_mobile_start = Clock.GetGameTimer()
if 
  Blip.DoesExist(37@)
goto_if_false @FARLIE4_8467
Blip.Remove(37@)

:FARLIE4_8467
if 
  Blip.DoesExist(35@)
goto_if_false @FARLIE4_8488
Blip.Remove(35@)

:FARLIE4_8488
if 
  Blip.DoesExist(41@)
goto_if_false @FARLIE4_8509
Blip.Remove(41@)

:FARLIE4_8509
if 
  Blip.DoesExist(129@)
goto_if_false @FARLIE4_8530
Blip.Remove(129@)

:FARLIE4_8530
if 
  Blip.DoesExist(130@)
goto_if_false @FARLIE4_8551
Blip.Remove(130@)

:FARLIE4_8551
if 
  Blip.DoesExist(131@)
goto_if_false @FARLIE4_8572
Blip.Remove(131@)

:FARLIE4_8572
if 
  Blip.DoesExist(167@)
goto_if_false @FARLIE4_8593
Blip.Remove(167@)

:FARLIE4_8593
if 
  Blip.DoesExist(168@)
goto_if_false @FARLIE4_8614
Blip.Remove(168@)

:FARLIE4_8614
if 
  Blip.DoesExist(169@)
goto_if_false @FARLIE4_8635
Blip.Remove(169@)

:FARLIE4_8635
if 
  Blip.DoesExist(170@)
goto_if_false @FARLIE4_8656
Blip.Remove(170@)

:FARLIE4_8656
if 
  not Char.IsDead($scplayer)
goto_if_false @FARLIE4_8742
if and
  Garage.IsOpen('FDORSFE')
  not Char.LocateAnyMeans3D($scplayer, -2161.628, 654.652, 51.3706, 10.0, 10.0, 10.0, False)
goto_if_false @FARLIE4_8742
Garage.Close('FDORSFE')

:FARLIE4_8742
Mission.Finish
return 

:FARLIE4_8746
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @FARLIE4_8807
if 
  not Char.IsDead($scplayer)
goto_if_false @FARLIE4_8807
Char.SetCoordinates($scplayer, -1403.283, -395.7443, 11.0)
Char.SetHeading($scplayer, 343.9661)

:FARLIE4_8807
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @FARLIE4_8851
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @FARLIE4_8851
186@ = Char.StoreCarIsIn($scplayer)
Car.PopBoot(186@)

:FARLIE4_8851
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @FARLIE4_8873
goto @FARLIE4_1046

:FARLIE4_8873
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @FARLIE4_8909
if 
  not Char.IsDead($scplayer)
goto_if_false @FARLIE4_8909
Task.Die($scplayer)

:FARLIE4_8909
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @FARLIE4_8954
if 
  not Char.IsDead($scplayer)
goto_if_false @FARLIE4_8954
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:FARLIE4_8954
if 
is_ps2_keyboard_key_just_pressed 29
goto_if_false @FARLIE4_8976
goto @FARLIE4_1197

:FARLIE4_8976
return 

:FARLIE4_8978
if 
  TIMERB > 15000
goto_if_false @FARLIE4_9530
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @FARLIE4_9530
switch_start $play_audio_global {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @FARLIE4_9498 {caseNum1} 0 {caseLabel1} @FARLIE4_9138 {caseNum2} 1 {caseLabel2} @FARLIE4_9183 {caseNum3} 2 {caseLabel3} @FARLIE4_9228 {caseNum4} 3 {caseLabel4} @FARLIE4_9273 {caseNum5} 4 {caseLabel5} @FARLIE4_9318 {caseNum6} 5 {caseLabel6} @FARLIE4_9363 {caseNum7} 6 {caseLabel7} @FARLIE4_9408
switch_continued 7 {caseLabel1} @FARLIE4_9453 {caseNum2} -1 {caseLabel2} @FARLIE4_9498 {caseNum3} -1 {caseLabel3} @FARLIE4_9498 {caseNum4} -1 {caseLabel4} @FARLIE4_9498 {caseNum5} -1 {caseLabel5} @FARLIE4_9498 {caseNum6} -1 {caseLabel6} @FARLIE4_9498 {caseNum7} -1 {caseLabel7} @FARLIE4_9498 {caseNum8} -1 {caseLabel8} @FARLIE4_9498 {caseNum9} -1 {caseLabel9} @FARLIE4_9498

:FARLIE4_9138
set_lvar_text_label 177@s = 'FAR4_AA'
set_lvar_int_to_constant 139@ = 38800
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9183
set_lvar_text_label 177@s = 'FAR4_AB'
set_lvar_int_to_constant 139@ = 38801
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9228
set_lvar_text_label 177@s = 'FAR4_AC'
set_lvar_int_to_constant 139@ = 38802
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9273
set_lvar_text_label 177@s = 'FAR4_AD'
set_lvar_int_to_constant 139@ = 38803
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9318
set_lvar_text_label 177@s = 'FAR4_AE'
set_lvar_int_to_constant 139@ = 38804
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9363
set_lvar_text_label 177@s = 'FAR4_AG'
set_lvar_int_to_constant 139@ = 38806
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9408
set_lvar_text_label 177@s = 'FAR4_AH'
set_lvar_int_to_constant 139@ = 38807
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9453
set_lvar_text_label 177@s = 'FAR4_AJ'
set_lvar_int_to_constant 139@ = 38808
gosub @FARLIE4_9532
TIMERB = 0
goto @FARLIE4_9498

:FARLIE4_9498
$play_audio_global += 1
if 
  $play_audio_global == 8
goto_if_false @FARLIE4_9530
$play_audio_global = 0

:FARLIE4_9530
return 

:FARLIE4_9532
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 139@)
140@ = 0
return 

:FARLIE4_9552
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  140@ == 0
goto_if_false @FARLIE4_9595
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(177@s, 10000, 1)
140@ = 1

:FARLIE4_9595
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  140@ == 1
goto_if_false @FARLIE4_9633
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint(177@s)
140@ = 2

:FARLIE4_9633
return 

//-------------Mission 55---------------
// Originally: Lure

:DRIV6
script_name 'DRIV6'
gosub @DRIV6_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRIV6_38
gosub @DRIV6_12763

:DRIV6_38
gosub @DRIV6_12845
terminate_this_script 

:DRIV6_47
Stat.RegisterMissionGiven
Text.LoadMissionText('FARLIE5')
$onmission = 1
wait 0
35@ = -1957.67
36@ = -2443.7
37@ = 30.83
38@ = -1571.4
39@ = -2742.09
40@ = 47.57
49@ = 0
50@ = 14
104@ = 0

:DRIV6_152
if 
  is_int_lvar_greater_than_int_lvar 50@ > 104@
goto_if_false @DRIV6_273
140@(104@,14i) = 0
154@(104@,14i) = 0
168@(104@,14i) = 0
182@(104@,14i) = 0
196@(104@,14i) = 0
210@(104@,14i) = 0
224@(104@,14i) = 0
238@(104@,14i) = 0
104@ += 1
goto @DRIV6_152

:DRIV6_273
137@ = 0
138@ = 0
139@ = 0
$f4_car_damage = 0
$d6_player_in_ravine = 0
253@ = 0
$d6_player_in_tunnel = 0
$d6_player_reached_first_creation_pt = 0
254@ = 0
255@ = 0
$d6_player_reached_second_creation_pt = 0
$d6_player_reached_fifth_creation_pt = 0
98@ = 0
252@ = 0
256@ = 0
257@ = 0
260@ = 0
261@ = 0
131@ = 0
132@ = 0
134@ = 0
136@ = 0
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:DRIV6_442
if 
  Camera.GetFadingStatus
goto_if_false @DRIV6_466
wait 0
goto @DRIV6_442

:DRIV6_466
Streaming.SetAreaVisible(1)
Cutscene.Load('FARL_5A')

:DRIV6_481
if 
  not Cutscene.HasLoaded
goto_if_false @DRIV6_505
wait 0
goto @DRIV6_481

:DRIV6_505
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:DRIV6_514
if 
  not Cutscene.HasFinished
goto_if_false @DRIV6_538
wait 0
goto @DRIV6_514

:DRIV6_538
Camera.DoFade(0, Fade.Out)

:DRIV6_544
if 
  Camera.GetFadingStatus
goto_if_false @DRIV6_568
wait 0
goto @DRIV6_544

:DRIV6_568
Cutscene.Clear
Player.SetControl($player1, False)
Streaming.SetAreaVisible(0)
if 
  136@ == 1
goto_if_false @DRIV6_727
34@ = Car.Create(489, 0.0, 0.0, -100.0)
104@ = 0

:DRIV6_629
if 
  is_int_lvar_greater_than_int_lvar 50@ > 104@
goto_if_false @DRIV6_727
52@(104@,14i) = Car.Create(468, 94@, 95@, -100.0)
66@(104@,14i) = Char.CreateInsideCar(52@(104@,14i), PedType.Mission1, 123)
80@(104@,14i) = Char.CreateAsPassenger(52@(104@,14i), PedType.Mission1, 122, 0)
104@ += 1
goto @DRIV6_629

:DRIV6_727
Streaming.RequestModel(468)
Streaming.RequestModel(123)
Streaming.RequestModel(122)
Streaming.RequestModel(353)

:DRIV6_745
if or
  not Streaming.HasModelLoaded(468)
  not Streaming.HasModelLoaded(123)
  not Streaming.HasModelLoaded(122)
  not Streaming.HasModelLoaded(353)
goto_if_false @DRIV6_785
wait 0
goto @DRIV6_745

:DRIV6_785
CarGenerator.Switch($5279, 0)
CarGenerator.Switch($5280, 0)
CarGenerator.Switch($5281, 0)
Char.SetCoordinates($scplayer, -2154.2, 645.31, 51.39)
Char.SetHeading($scplayer, 270.0)
gosub @DRIV6_4442
262@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(262@, True)
Camera.SetFadingColor(0, 0, 0)
wait 500
Camera.DoFade(1500, Fade.In)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Text.PrintNow('DRV6_8', 10000, 0)

:DRIV6_905
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DRIV6_931
goto @DRIV6_12781

:DRIV6_931
if 
  137@ <> 1
goto_if_false @DRIV6_1088
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_1088
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @DRIV6_1088
Blip.Remove(262@)
137@ = 1
263@ = Blip.AddForCoord(-1963.84, -2441.49, 30.78)
Text.PrintNow('DRV6_19', 10000, 0)
Text.Print('DRV6_17', 7000, 0)
if 
  $burglary_player_stealth == 1
goto_if_false @DRIV6_1088
Skip.SetUp(-1990.65, -2428.65, 30.77, 225.0)

:DRIV6_1088
if and
  137@ == 1
  139@ <> 1
goto_if_false @DRIV6_1498
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_1498
if and
  138@ <> 1
  Char.LocateAnyMeans2D($scplayer, -1990.65, -2428.65, 50.0, 50.0, False)
goto_if_false @DRIV6_1192
Text.ClearThisPrint('DRV6_19')
138@ = 1

:DRIV6_1192
if and
  $burglary_player_stealth <> 1
  Char.LocateAnyMeans2D($scplayer, -1963.84, -2441.49, 25.0, 25.0, False)
goto_if_false @DRIV6_1244
$burglary_player_stealth = 1

:DRIV6_1244
if 
  Char.LocateInCar3D($scplayer, -1963.84, -2441.49, 30.78, 4.0, 4.0, 2.0, True)
goto_if_false @DRIV6_1498
Player.SetControl($player1, False)
Skip.Clear
Blip.Remove(263@)
gosub @DRIV6_4788
264@ = Blip.AddForCoord(-1867.14, -2442.39, 31.24)
Blip.ChangeColor(264@, BlipColor.Red)
41@ = Checkpoint.Create(CheckpointType.TubeArrow, -1867.14, -2442.39, 31.24, -1178.32, -2638.85, 10.8, 4.0)
Hud.DisplayCounterWithString($d6_door_health, CounterDisplay.Bar, 'DRV6_18')
100@ = 0
$d6_door_health = 100
Car.SetHealth(34@, 9000)
Text.PrintNow('DRV6_2', 10000, 0)
Text.Print('DRV6_17', 7000, 0)
Text.Print('DRV6_4', 10000, 0)
Text.Print('DRV6_15', 10000, 0)
139@ = 1
TIMERB = 0

:DRIV6_1498
if 
  139@ == 1
goto_if_false @DRIV6_3767
if 
  Player.IsWantedLevelGreater($player1, 0)
goto_if_false @DRIV6_1539
Player.ClearWantedLevel($player1)

:DRIV6_1539
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_3767
if and
  261@ <> 1
  TIMERB > 2000
goto_if_false @DRIV6_1681
if and
  not Char.IsDead(80@)
  not Char.IsDead(81@)
goto_if_false @DRIV6_1681
Task.DriveBy(80@, $scplayer, -1, 0.0, 0.0, 0.0, 1000.0, DriveByType.Ai, False, 60)
Task.DriveBy(81@, $scplayer, -1, 0.0, 0.0, 0.0, 1000.0, DriveByType.Ai, False, 60)
261@ = 1

:DRIV6_1681
if 
  Car.IsUpsidedown(34@)
goto_if_false @DRIV6_1744
if 
  252@ == 1
goto_if_false @DRIV6_1737
Car.SetProofs(34@, False, False, False, False, False)
252@ = 0

:DRIV6_1737
goto @DRIV6_1784

:DRIV6_1744
if 
  252@ <> 1
goto_if_false @DRIV6_1784
Car.SetProofs(34@, False, True, True, True, True)
252@ = 1

:DRIV6_1784
gosub @DRIV6_7450
if 
  $d6_player_reached_first_creation_pt <> 1
goto_if_false @DRIV6_1945
if 
  $f4_car_damage <> 1
goto_if_false @DRIV6_1886
if 
  Car.Locate2D(34@, -1181.93, -2642.33, 300.0, 300.0, False)
goto_if_false @DRIV6_1879
gosub @DRIV6_8721
$f4_car_damage = 1

:DRIV6_1879
goto @DRIV6_1938

:DRIV6_1886
if 
  not Car.Locate2D(34@, -1181.93, -2642.33, 300.0, 300.0, False)
goto_if_false @DRIV6_1938
gosub @DRIV6_8888
$f4_car_damage = 0

:DRIV6_1938
goto @DRIV6_1970

:DRIV6_1945
if 
  $f4_car_damage == 1
goto_if_false @DRIV6_1970
$f4_car_damage = 0

:DRIV6_1970
if 
  $d6_player_reached_second_creation_pt == 1
goto_if_false @DRIV6_2124
if 
  $d6_player_in_ravine <> 1
goto_if_false @DRIV6_2065
if 
  Car.Locate2D(34@, -519.74, -2782.11, 214.0, 214.0, False)
goto_if_false @DRIV6_2058
gosub @DRIV6_8721
$d6_player_in_ravine = 1

:DRIV6_2058
goto @DRIV6_2117

:DRIV6_2065
if 
  not Car.Locate2D(34@, -519.74, -2782.11, 214.0, 214.0, False)
goto_if_false @DRIV6_2117
gosub @DRIV6_8888
$d6_player_in_ravine = 0

:DRIV6_2117
goto @DRIV6_2149

:DRIV6_2124
if 
  $d6_player_in_ravine == 1
goto_if_false @DRIV6_2149
$d6_player_in_ravine = 0

:DRIV6_2149
if 
  253@ <> 1
goto_if_false @DRIV6_2301
if 
  Car.Locate3D(34@, -1867.14, -2442.39, 31.24, 6.0, 6.0, 3.0, False)
goto_if_false @DRIV6_2301
Blip.Remove(264@)
Checkpoint.Delete(41@)
253@ = 1
264@ = Blip.AddForCoord(-1178.32, -2638.85, 10.8)
Blip.ChangeColor(264@, BlipColor.Red)
41@ = Checkpoint.Create(CheckpointType.TubeArrow, -1178.32, -2638.85, 10.8, -654.95, -2469.35, 33.3, 4.0)

:DRIV6_2301
if and
  253@ == 1
  $d6_player_in_tunnel <> 1
goto_if_false @DRIV6_2467
if 
  Car.Locate3D(34@, -1178.32, -2638.85, 10.8, 6.0, 6.0, 3.0, False)
goto_if_false @DRIV6_2467
Blip.Remove(264@)
Checkpoint.Delete(41@)
gosub @DRIV6_5926
$d6_player_in_tunnel = 1
264@ = Blip.AddForCoord(-654.95, -2469.35, 33.3)
Blip.ChangeColor(264@, BlipColor.Red)
41@ = Checkpoint.Create(CheckpointType.TubeArrow, -654.95, -2469.35, 33.3, -309.54, -2248.81, 29.59, 4.0)

:DRIV6_2467
if and
  $d6_player_in_tunnel == 1
  $d6_player_reached_first_creation_pt <> 1
goto_if_false @DRIV6_2633
if 
  Car.Locate3D(34@, -654.95, -2469.35, 33.3, 6.0, 6.0, 3.0, False)
goto_if_false @DRIV6_2633
Blip.Remove(264@)
Checkpoint.Delete(41@)
gosub @DRIV6_5926
$d6_player_reached_first_creation_pt = 1
264@ = Blip.AddForCoord(-309.54, -2248.81, 29.59)
Blip.ChangeColor(264@, BlipColor.Red)
41@ = Checkpoint.Create(CheckpointType.TubeArrow, -309.54, -2248.81, 29.59, -165.7, -2421.71, 35.1, 4.0)

:DRIV6_2633
if and
  $d6_player_reached_first_creation_pt == 1
  254@ <> 1
goto_if_false @DRIV6_2799
if 
  Car.Locate3D(34@, -309.54, -2248.81, 29.59, 6.0, 6.0, 3.0, False)
goto_if_false @DRIV6_2799
Blip.Remove(264@)
Checkpoint.Delete(41@)
gosub @DRIV6_5926
254@ = 1
264@ = Blip.AddForCoord(-165.7, -2421.71, 35.1)
Blip.ChangeColor(264@, BlipColor.Red)
41@ = Checkpoint.Create(CheckpointType.TubeArrow, -165.7, -2421.71, 35.1, -191.26, -2822.52, 42.09, 4.0)

:DRIV6_2799
if and
  254@ == 1
  255@ <> 1
goto_if_false @DRIV6_2965
if 
  Car.Locate3D(34@, -165.7, -2421.71, 35.1, 6.0, 6.0, 3.0, False)
goto_if_false @DRIV6_2965
Blip.Remove(264@)
Checkpoint.Delete(41@)
gosub @DRIV6_5926
255@ = 1
264@ = Blip.AddForCoord(-191.26, -2822.52, 42.09)
Blip.ChangeColor(264@, BlipColor.Red)
41@ = Checkpoint.Create(CheckpointType.TubeArrow, -191.26, -2822.52, 42.09, -946.91, -2844.84, 67.36, 4.0)

:DRIV6_2965
if and
  255@ == 1
  $d6_player_reached_second_creation_pt <> 1
goto_if_false @DRIV6_3125
if 
  Car.Locate3D(34@, -191.26, -2822.52, 42.09, 6.0, 6.0, 3.0, False)
goto_if_false @DRIV6_3125
Blip.Remove(264@)
Checkpoint.Delete(41@)
gosub @DRIV6_5926
$d6_player_reached_second_creation_pt = 1
264@ = Blip.AddForCoord(-946.91, -2844.84, 67.36)
Blip.ChangeColor(264@, BlipColor.Red)
41@ = Checkpoint.Create(CheckpointType.TubeArrow, -946.91, -2844.84, 67.36, 38@, 39@, 40@, 4.0)

:DRIV6_3125
if and
  $d6_player_reached_second_creation_pt == 1
  $d6_player_reached_fifth_creation_pt <> 1
goto_if_false @DRIV6_3279
if 
  Car.Locate3D(34@, -946.91, -2844.84, 67.36, 6.0, 6.0, 3.0, False)
goto_if_false @DRIV6_3279
Blip.Remove(264@)
Checkpoint.Delete(41@)
gosub @DRIV6_5926
$d6_player_reached_fifth_creation_pt = 1
265@ = Blip.AddForCoord(38@, 39@, 40@)
Blip.ChangeColor(265@, BlipColor.Red)
41@ = Checkpoint.Create(CheckpointType.Tube, 38@, 39@, 40@, 0.0, 0.0, 0.0, 4.0)

:DRIV6_3279
if 
  100 > 100@
goto_if_false @DRIV6_3350
99@ = Car.GetHealth(34@)
set_lvar_int_to_lvar_int 100@ = 99@
100@ -= 3000
100@ /= 60
set_var_int_to_lvar_int $d6_door_health = 100@
100@ *= -1
100@ += 100

:DRIV6_3350
if 
  45 >= 100@
goto_if_false @DRIV6_3439
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @DRIV6_3411
Car.OpenDoorABit(34@, CarDoor.LeftFrontDoor, 0.0)
Car.OpenDoorABit(34@, CarDoor.RightFrontDoor, 0.0)

:DRIV6_3411
Car.ControlDoor(34@, CarDoor.LeftFrontDoor, 0, 0.0)
Car.ControlDoor(34@, CarDoor.RightFrontDoor, 0, 0.0)

:DRIV6_3439
if and
  100@ > 45
  80 >= 100@
goto_if_false @DRIV6_3535
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @DRIV6_3507
Car.OpenDoorABit(34@, CarDoor.LeftFrontDoor, 0.0)
Car.OpenDoorABit(34@, CarDoor.RightFrontDoor, 0.0)

:DRIV6_3507
Car.ControlDoor(34@, CarDoor.LeftFrontDoor, 2, 0.0)
Car.ControlDoor(34@, CarDoor.RightFrontDoor, 2, 0.0)

:DRIV6_3535
if and
  100@ > 80
  100 > 100@
goto_if_false @DRIV6_3588
Car.ControlDoor(34@, CarDoor.LeftFrontDoor, 3, -1.0)
Car.ControlDoor(34@, CarDoor.RightFrontDoor, 3, -1.0)

:DRIV6_3588
if 
  100@ >= 100
goto_if_false @DRIV6_3634
Car.ControlDoor(34@, CarDoor.LeftFrontDoor, 4, -1.0)
Car.ControlDoor(34@, CarDoor.RightFrontDoor, 4, -1.0)

:DRIV6_3634
if and
  100@ > 80
  256@ <> 1
goto_if_false @DRIV6_3682
Text.PrintNow('DRV6_6', 7000, 0)
256@ = 1

:DRIV6_3682
if and
  100@ >= 100
  257@ <> 1
goto_if_false @DRIV6_3742
Hud.ClearCounter($d6_door_health)
Text.PrintNow('DRV6_16', 5000, 0)
TIMERA = 0
257@ = 1

:DRIV6_3742
if 
  257@ == 1
goto_if_false @DRIV6_3767
gosub @DRIV6_9159

:DRIV6_3767
if 
  137@ <> 1
goto_if_false @DRIV6_3826
if 
  Car.IsDead(34@)
goto_if_false @DRIV6_3826
Text.ClearPrints
Text.PrintNow('DRV6_11', 5000, 0)
goto @DRIV6_12763

:DRIV6_3826
if 
  137@ == 1
goto_if_false @DRIV6_4181
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @DRIV6_4181
if 
  139@ == 1
goto_if_false @DRIV6_4156
gosub @DRIV6_9768
266@ = 0
104@ = 0

:DRIV6_3899
if and
  is_int_lvar_greater_than_int_lvar 49@ > 104@
  266@ <> 1
goto_if_false @DRIV6_4073
if 
  not Char.IsDead(66@(104@,14i))
goto_if_false @DRIV6_3992
if 
  Char.LocateAnyMeansChar3D($scplayer, 66@(104@,14i), 20.0, 20.0, 20.0, False)
goto_if_false @DRIV6_3992
266@ = 1

:DRIV6_3992
if 
  not Char.IsDead(80@(104@,14i))
goto_if_false @DRIV6_4059
if 
  Char.LocateAnyMeansChar3D($scplayer, 80@(104@,14i), 20.0, 20.0, 20.0, False)
goto_if_false @DRIV6_4059
266@ = 1

:DRIV6_4059
104@ += 1
goto @DRIV6_3899

:DRIV6_4073
if 
  266@ == 1
goto_if_false @DRIV6_4149
135@ = 0
gosub @DRIV6_12213
132@ = 1

:DRIV6_4112
if 
  is_int_lvar_greater_than_int_lvar 133@ > 132@
goto_if_false @DRIV6_4149
wait 0
gosub @DRIV6_12532
goto @DRIV6_4112

:DRIV6_4149
gosub @DRIV6_9452

:DRIV6_4156
Text.ClearPrints
Text.PrintNow('DRV6_7', 5000, 0)
goto @DRIV6_12763

:DRIV6_4181
if 
  139@ == 1
goto_if_false @DRIV6_4435
if and
  257@ == 1
  TIMERA > 10000
goto_if_false @DRIV6_4344
135@ = 0
gosub @DRIV6_12213

:DRIV6_4239
if 
  1 > 132@
goto_if_false @DRIV6_4275
wait 0
gosub @DRIV6_12532
goto @DRIV6_4239

:DRIV6_4275
if 
  is_int_lvar_greater_than_int_lvar 133@ > 132@
goto_if_false @DRIV6_4312
wait 0
gosub @DRIV6_12532
goto @DRIV6_4275

:DRIV6_4312
gosub @DRIV6_9452
Text.ClearPrints
Text.PrintNow('DRV6_7', 5000, 0)
goto @DRIV6_12763

:DRIV6_4344
if 
  $d6_player_reached_fifth_creation_pt == 1
goto_if_false @DRIV6_4435
if 
  Char.LocateInCar3D($scplayer, 38@, 39@, 40@, 6.0, 6.0, 3.0, True)
goto_if_false @DRIV6_4435
Player.SetControl($player1, False)
Blip.Remove(265@)
Checkpoint.Delete(41@)
gosub @DRIV6_10195
goto @DRIV6_12781

:DRIV6_4435
goto @DRIV6_905

:DRIV6_4442
Streaming.RequestModel(489)

:DRIV6_4447
if 
  not Streaming.HasModelLoaded(489)
goto_if_false @DRIV6_4474
wait 0
goto @DRIV6_4447

:DRIV6_4474
World.ClearArea(-2149.95, 644.31, 52.35, 100.0, False)
34@ = Car.Create(489, -2149.95, 644.31, 52.35)
Car.SetHeading(34@, 180.0)
Car.SetStrong(34@, True)
Car.SetCanBurstTires(34@, False)
Car.SetHealth(34@, 9000)
Car.SetCanBeVisiblyDamaged(34@, False)
return 

:DRIV6_4562
52@ = Car.Create(468, -2015.66, -2408.82, 30.28)
Car.SetHeading(52@, 229.35)
53@ = Car.Create(468, -2017.07, -2410.37, 30.3)
Car.SetHeading(53@, 225.81)
104@ = 0

:DRIV6_4635
if 
  2 > 104@
goto_if_false @DRIV6_4779
66@(104@,14i) = Char.CreateInsideCar(52@(104@,14i), PedType.Mission1, 123)
80@(104@,14i) = Char.CreateAsPassenger(52@(104@,14i), PedType.Mission1, 122, 0)
Char.GiveWeapon(80@(104@,14i), WeaponType.Mp5, 99999)
Car.SetOnlyDamagedByPlayer(52@(104@,14i), True)
Car.SetTraction(52@(104@,14i), 2.0)
Char.SetCanBeKnockedOffBike(66@(104@,14i), 2)
Char.SetCanBeKnockedOffBike(80@(104@,14i), 2)
49@ += 1
104@ += 1
goto @DRIV6_4635

:DRIV6_4779
98@ += 1
return 

:DRIV6_4788
Camera.DoFade(1000, Fade.Out)

:DRIV6_4795
if 
  Camera.GetFadingStatus
goto_if_false @DRIV6_4819
wait 0
goto @DRIV6_4795

:DRIV6_4819
World.ClearArea(35@, 36@, 37@, 300.0, False)
Text.ClearPrints
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_4890
Car.SetCoordinates(34@, 35@, 36@, 37@)
Car.SetHeading(34@, 241.85)

:DRIV6_4890
gosub @DRIV6_4562
Camera.SetFixedPosition(-1955.92, -2447.69, 30.78, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1962.83, -2441.79, 30.44, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)

:DRIV6_4955
if 
  Camera.GetFadingStatus
goto_if_false @DRIV6_4979
wait 0
goto @DRIV6_4955

:DRIV6_4979
259@ = 1
skip_cutscene_start_internal @DRIV6_5561
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_5119
if and
  not Char.IsDead(66@)
  not Car.IsDead(52@)
goto_if_false @DRIV6_5064
Task.CarDriveToCoord(66@, 52@, -1977.97, -2435.05, 30.3, 30.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)

:DRIV6_5064
if and
  not Char.IsDead(67@)
  not Car.IsDead(53@)
goto_if_false @DRIV6_5119
Task.CarDriveToCoord(67@, 53@, -1979.45, -2437.47, 30.3, 30.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)

:DRIV6_5119
TIMERB = 0

:DRIV6_5126
if 
  2500 > TIMERB
goto_if_false @DRIV6_5156
wait 0
goto @DRIV6_5126

:DRIV6_5156
if 
  not Car.IsDead(52@)
goto_if_false @DRIV6_5223
Camera.SetFixedPosition(-1989.91, -2435.33, 30.68, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1987.22, -2436.07, 30.82, SwitchType.JumpCut)

:DRIV6_5223
if 
  not Car.IsDead(52@)
goto_if_false @DRIV6_5269
Car.SetCoordinates(52@, -1985.6, -2435.14, 30.3)
Car.SetHeading(52@, 254.67)

:DRIV6_5269
if 
  not Car.IsDead(53@)
goto_if_false @DRIV6_5315
Car.SetCoordinates(53@, -1986.37, -2437.8, 30.3)
Car.SetHeading(53@, 250.82)

:DRIV6_5315
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_5439
if and
  not Char.IsDead(66@)
  not Char.IsDead(80@)
  not Car.IsDead(52@)
goto_if_false @DRIV6_5385
Car.SetStraightLineDistance(52@, 250)
Task.CarMission(66@, 52@, 34@, CarMission.EscortLeft, 10.0, DrivingMode.AvoidCars)

:DRIV6_5385
if and
  not Char.IsDead(67@)
  not Char.IsDead(81@)
  not Car.IsDead(53@)
goto_if_false @DRIV6_5439
Car.SetStraightLineDistance(53@, 250)
Task.CarMission(67@, 53@, 34@, CarMission.EscortRight, 10.0, DrivingMode.AvoidCars)

:DRIV6_5439
if and
  260@ <> 1
  not Char.IsDead(66@)
  not Car.IsDead(52@)
  not Car.IsDead(34@)
goto_if_false @DRIV6_5554
if 
  Char.IsInCar(66@, 52@)
goto_if_false @DRIV6_5536
if 
  Char.LocateInCarCar2D(66@, 34@, 15.0, 15.0, False)
goto_if_false @DRIV6_5529
260@ = 1

:DRIV6_5529
goto @DRIV6_5543

:DRIV6_5536
260@ = 1

:DRIV6_5543
wait 0
goto @DRIV6_5439

:DRIV6_5554
259@ = 0

:DRIV6_5561
skip_cutscene_end 
if 
  259@ == 1
goto_if_false @DRIV6_5755
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_5755
if and
  not Char.IsDead(66@)
  not Char.IsDead(80@)
  not Car.IsDead(52@)
goto_if_false @DRIV6_5676
94@, 95@, 96@ = Char.GetOffsetInWorldCoords($scplayer, -1.0, -14.0, 0.0)
96@ = -100.0
Car.SetCoordinates(52@, 94@, 95@, 96@)

:DRIV6_5676
if and
  not Char.IsDead(67@)
  not Char.IsDead(81@)
  not Car.IsDead(53@)
goto_if_false @DRIV6_5755
94@, 95@, 96@ = Char.GetOffsetInWorldCoords($scplayer, 1.0, -14.0, 0.0)
96@ = -100.0
Car.SetCoordinates(53@, 94@, 95@, 96@)

:DRIV6_5755
if 
  not Car.IsDead(52@)
goto_if_false @DRIV6_5778
Car.SetStraightLineDistance(52@, 20)

:DRIV6_5778
if 
  not Car.IsDead(53@)
goto_if_false @DRIV6_5801
Car.SetStraightLineDistance(53@, 20)

:DRIV6_5801
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_5909
if and
  not Char.IsDead(66@)
  not Char.IsDead(80@)
  not Car.IsDead(52@)
goto_if_false @DRIV6_5863
Task.CarMission(66@, 52@, 34@, CarMission.EscortLeft, 30.0, DrivingMode.AvoidCars)

:DRIV6_5863
if and
  not Char.IsDead(67@)
  not Char.IsDead(81@)
  not Car.IsDead(53@)
goto_if_false @DRIV6_5909
Task.CarMission(67@, 53@, 34@, CarMission.EscortRight, 30.0, DrivingMode.AvoidCars)

:DRIV6_5909
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
return 

:DRIV6_5926
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_7448
51@ = 0
104@ = 0

:DRIV6_5956
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_6085
if 
  not Car.IsDead(52@(104@,14i))
goto_if_false @DRIV6_6071
if 
  Char.LocateAnyMeansCar2D($scplayer, 52@(104@,14i), 100.0, 100.0, False)
goto_if_false @DRIV6_6044
51@ += 1
goto @DRIV6_6071

:DRIV6_6044
Car.Delete(52@(104@,14i))
Char.Delete(66@(104@,14i))
Char.Delete(80@(104@,14i))

:DRIV6_6071
104@ += 1
goto @DRIV6_5956

:DRIV6_6085
if 
  51@ <= 2
goto_if_false @DRIV6_7448
set_lvar_int_to_lvar_int 104@ = 98@
104@ *= 2
set_lvar_int_to_lvar_int 105@ = 104@
105@ += 2
106@ = 0

:DRIV6_6140
if 
  is_int_lvar_greater_than_int_lvar 105@ > 104@
goto_if_false @DRIV6_7441
if and
  253@ == 1
  $d6_player_in_tunnel <> 1
goto_if_false @DRIV6_6300
if 
  106@ == 0
goto_if_false @DRIV6_6242
94@ = -1342.94
95@ = -2624.45
96@ = 19.58
97@ = 261.04

:DRIV6_6242
if 
  106@ == 1
goto_if_false @DRIV6_6300
94@ = -1344.02
95@ = -2628.07
96@ = 19.82
97@ = 260.5

:DRIV6_6300
if and
  $d6_player_in_tunnel == 1
  $d6_player_reached_first_creation_pt <> 1
goto_if_false @DRIV6_6441
if 
  106@ == 0
goto_if_false @DRIV6_6383
94@ = -708.68
95@ = -2601.46
96@ = 69.83
97@ = 338.56

:DRIV6_6383
if 
  106@ == 1
goto_if_false @DRIV6_6441
94@ = -704.89
95@ = -2602.92
96@ = 69.9
97@ = 340.64

:DRIV6_6441
if and
  $d6_player_reached_first_creation_pt == 1
  254@ <> 1
goto_if_false @DRIV6_6582
if 
  106@ == 0
goto_if_false @DRIV6_6524
94@ = -420.89
95@ = -2258.87
96@ = 47.37
97@ = 278.1

:DRIV6_6524
if 
  106@ == 1
goto_if_false @DRIV6_6582
94@ = -420.64
95@ = -2261.39
96@ = 47.79
97@ = 279.7

:DRIV6_6582
if and
  254@ == 1
  255@ <> 1
goto_if_false @DRIV6_6723
if 
  106@ == 0
goto_if_false @DRIV6_6665
94@ = -260.22
95@ = -2323.12
96@ = 30.42
97@ = 222.63

:DRIV6_6665
if 
  106@ == 1
goto_if_false @DRIV6_6723
94@ = -262.81
95@ = -2326.8
96@ = 30.43
97@ = 220.93

:DRIV6_6723
if and
  255@ == 1
  $d6_player_reached_second_creation_pt <> 1
goto_if_false @DRIV6_6864
if 
  106@ == 0
goto_if_false @DRIV6_6806
94@ = -179.45
95@ = -2708.91
96@ = 35.82
97@ = 177.36

:DRIV6_6806
if 
  106@ == 1
goto_if_false @DRIV6_6864
94@ = -182.07
95@ = -2709.06
96@ = 35.77
97@ = 176.56

:DRIV6_6864
if and
  $d6_player_reached_second_creation_pt == 1
  $d6_player_reached_fifth_creation_pt <> 1
goto_if_false @DRIV6_7005
if 
  106@ == 0
goto_if_false @DRIV6_6947
94@ = -846.18
95@ = -2809.6
96@ = 70.32
97@ = 112.41

:DRIV6_6947
if 
  106@ == 1
goto_if_false @DRIV6_7005
94@ = -848.6
95@ = -2806.3
96@ = 70.29
97@ = 111.76

:DRIV6_7005
World.ClearArea(94@, 95@, 96@, 5.0, True)
52@(104@,14i) = Car.Create(468, 94@, 95@, 96@)
66@(104@,14i) = Char.CreateInsideCar(52@(104@,14i), PedType.Mission1, 123)
80@(104@,14i) = Char.CreateAsPassenger(52@(104@,14i), PedType.Mission1, 122, 0)
Car.SetHeading(52@(104@,14i), 97@)
Car.SetOnlyDamagedByPlayer(52@(104@,14i), True)
Car.SetTraction(52@(104@,14i), 2.0)
Char.SetCanBeKnockedOffBike(66@(104@,14i), 2)
Char.SetCanBeKnockedOffBike(80@(104@,14i), 2)
if or
  $f4_car_damage == 1
  $d6_player_in_ravine == 1
goto_if_false @DRIV6_7205
Task.CarMission(66@(104@,14i), 52@(104@,14i), 34@, CarMission.EscortRear, 30.0, DrivingMode.AvoidCars)
goto @DRIV6_7297

:DRIV6_7205
if 
  106@ == 0
goto_if_false @DRIV6_7251
Task.CarMission(66@(104@,14i), 52@(104@,14i), 34@, CarMission.EscortLeft, 30.0, DrivingMode.AvoidCars)

:DRIV6_7251
if 
  106@ == 1
goto_if_false @DRIV6_7297
Task.CarMission(66@(104@,14i), 52@(104@,14i), 34@, CarMission.EscortRight, 30.0, DrivingMode.AvoidCars)

:DRIV6_7297
Char.GiveWeapon(80@(104@,14i), WeaponType.Mp5, 99999)
Task.DriveBy(80@(104@,14i), $scplayer, -1, 0.0, 0.0, 0.0, 1000.0, DriveByType.Ai, False, 60)
if and
  $d6_player_reached_first_creation_pt == 1
  254@ <> 1
goto_if_false @DRIV6_7399
Car.SetForwardSpeed(52@(104@,14i), 30.0)
goto @DRIV6_7413

:DRIV6_7399
Car.SetForwardSpeed(52@(104@,14i), 70.0)

:DRIV6_7413
49@ += 1
104@ += 1
106@ += 1
goto @DRIV6_6140

:DRIV6_7441
98@ += 1

:DRIV6_7448
return 

:DRIV6_7450
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_8719
104@ = 0

:DRIV6_7473
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_8719
if 
  not Car.IsDead(52@(104@,14i))
goto_if_false @DRIV6_8705
if and
  Char.IsDead(66@(104@,14i))
  168@(104@,14i) <> 1
goto_if_false @DRIV6_7554
168@(104@,14i) = 1

:DRIV6_7554
if and
  Char.IsDead(80@(104@,14i))
  182@(104@,14i) <> 1
goto_if_false @DRIV6_7596
182@(104@,14i) = 1

:DRIV6_7596
if and
  not Char.IsDead(66@(104@,14i))
  182@(104@,14i) == 1
  196@(104@,14i) <> 1
goto_if_false @DRIV6_7688
Task.CarMission(66@(104@,14i), 52@(104@,14i), 34@, CarMission.BlockCarFaraway, 30.0, DrivingMode.AvoidCars)
224@(104@,14i) = 1
196@(104@,14i) = 1

:DRIV6_7688
if and
  not Char.IsDead(80@(104@,14i))
  168@(104@,14i) == 1
  210@(104@,14i) <> 1
goto_if_false @DRIV6_7850
if 
  Char.IsInCar(80@(104@,14i), 52@(104@,14i))
goto_if_false @DRIV6_7839
94@, 95@, 96@ = Car.GetCoordinates(52@(104@,14i))
Char.WarpFromCarToCoord(80@(104@,14i), 94@, 95@, -10.0)
Char.WarpIntoCar(80@(104@,14i), 52@(104@,14i))
Task.CarMission(80@(104@,14i), 52@(104@,14i), 34@, CarMission.BlockCarFaraway, 30.0, DrivingMode.AvoidCars)

:DRIV6_7839
210@(104@,14i) = 1

:DRIV6_7850
if and
  not Char.IsDead(66@(104@,14i))
  196@(104@,14i) == 1
goto_if_false @DRIV6_8009
if 
  not Char.IsInCar(66@(104@,14i), 52@(104@,14i))
goto_if_false @DRIV6_7976
if 
  224@(104@,14i) == 0
goto_if_false @DRIV6_7969
Task.CarMission(66@(104@,14i), 52@(104@,14i), 34@, CarMission.BlockCarFaraway, 30.0, DrivingMode.AvoidCars)
224@(104@,14i) = 1

:DRIV6_7969
goto @DRIV6_8009

:DRIV6_7976
if 
  224@(104@,14i) == 1
goto_if_false @DRIV6_8009
224@(104@,14i) = 0

:DRIV6_8009
if and
  not Char.IsDead(80@(104@,14i))
  210@(104@,14i) == 1
goto_if_false @DRIV6_8168
if 
  not Char.IsInCar(80@(104@,14i), 52@(104@,14i))
goto_if_false @DRIV6_8135
if 
  238@(104@,14i) == 0
goto_if_false @DRIV6_8128
Task.CarMission(80@(104@,14i), 52@(104@,14i), 34@, CarMission.BlockCarFaraway, 30.0, DrivingMode.AvoidCars)
238@(104@,14i) = 1

:DRIV6_8128
goto @DRIV6_8168

:DRIV6_8135
if 
  238@(104@,14i) == 1
goto_if_false @DRIV6_8168
238@(104@,14i) = 0

:DRIV6_8168
if and
  not Char.IsDead(66@(104@,14i))
  not Char.IsDead(80@(104@,14i))
goto_if_false @DRIV6_8665
if and
  not Char.IsInCar(66@(104@,14i), 52@(104@,14i))
  140@(104@,14i) == 0
goto_if_false @DRIV6_8265
Task.EnterCarAsDriver(66@(104@,14i), 52@(104@,14i), 10000)
140@(104@,14i) = 1

:DRIV6_8265
if and
  not Char.IsInCar(80@(104@,14i), 52@(104@,14i))
  154@(104@,14i) == 0
goto_if_false @DRIV6_8335
Task.EnterCarAsPassenger(80@(104@,14i), 52@(104@,14i), 10000, 0)
154@(104@,14i) = 1

:DRIV6_8335
if and
  Char.IsInCar(66@(104@,14i), 52@(104@,14i))
  Char.IsInCar(80@(104@,14i), 52@(104@,14i))
goto_if_false @DRIV6_8665
if or
  140@(104@,14i) == 1
  154@(104@,14i) == 1
goto_if_false @DRIV6_8665
if or
  $f4_car_damage == 1
  $d6_player_in_ravine == 1
goto_if_false @DRIV6_8471
Task.CarMission(66@(104@,14i), 52@(104@,14i), 34@, CarMission.EscortRear, 30.0, DrivingMode.AvoidCars)
goto @DRIV6_8603

:DRIV6_8471
set_lvar_int_to_lvar_int 106@ = 104@

:DRIV6_8479
if 
  106@ >= 2
goto_if_false @DRIV6_8511
106@ -= 2
goto @DRIV6_8479

:DRIV6_8511
if 
  106@ == 0
goto_if_false @DRIV6_8557
Task.CarMission(66@(104@,14i), 52@(104@,14i), 34@, CarMission.EscortLeft, 30.0, DrivingMode.AvoidCars)

:DRIV6_8557
if 
  106@ == 1
goto_if_false @DRIV6_8603
Task.CarMission(66@(104@,14i), 52@(104@,14i), 34@, CarMission.EscortRight, 30.0, DrivingMode.AvoidCars)

:DRIV6_8603
Task.DriveBy(80@(104@,14i), $scplayer, -1, 0.0, 0.0, 0.0, 1000.0, DriveByType.Ai, False, 60)
140@(104@,14i) = 0
154@(104@,14i) = 0

:DRIV6_8665
if and
  Char.IsDead(66@(104@,14i))
  Char.IsDead(80@(104@,14i))
goto_if_false @DRIV6_8705
Car.SetMission(52@(104@,14i), CarMission.None)

:DRIV6_8705
104@ += 1
goto @DRIV6_7473

:DRIV6_8719
return 

:DRIV6_8721
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_8886
104@ = 0

:DRIV6_8744
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_8886
if and
  not Car.IsDead(52@(104@,14i))
  not Char.IsDead(66@(104@,14i))
  not Char.IsDead(80@(104@,14i))
goto_if_false @DRIV6_8872
if and
  Char.IsInCar(66@(104@,14i), 52@(104@,14i))
  Char.IsInCar(80@(104@,14i), 52@(104@,14i))
goto_if_false @DRIV6_8872
Task.CarMission(66@(104@,14i), 52@(104@,14i), 34@, CarMission.EscortRear, 30.0, DrivingMode.AvoidCars)

:DRIV6_8872
104@ += 1
goto @DRIV6_8744

:DRIV6_8886
return 

:DRIV6_8888
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_9157
104@ = 0

:DRIV6_8911
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_9157
if and
  not Car.IsDead(52@(104@,14i))
  not Char.IsDead(66@(104@,14i))
  not Char.IsDead(80@(104@,14i))
goto_if_false @DRIV6_9143
if and
  Char.IsInCar(66@(104@,14i), 52@(104@,14i))
  Char.IsInCar(80@(104@,14i), 52@(104@,14i))
goto_if_false @DRIV6_9143
set_lvar_int_to_lvar_int 106@ = 104@

:DRIV6_9019
if 
  106@ >= 2
goto_if_false @DRIV6_9051
106@ -= 2
goto @DRIV6_9019

:DRIV6_9051
if 
  106@ == 0
goto_if_false @DRIV6_9097
Task.CarMission(66@(104@,14i), 52@(104@,14i), 34@, CarMission.EscortLeft, 30.0, DrivingMode.AvoidCars)

:DRIV6_9097
if 
  106@ == 1
goto_if_false @DRIV6_9143
Task.CarMission(66@(104@,14i), 52@(104@,14i), 34@, CarMission.EscortRight, 30.0, DrivingMode.AvoidCars)

:DRIV6_9143
104@ += 1
goto @DRIV6_8911

:DRIV6_9157
return 

:DRIV6_9159
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_9450
258@ = 1
42@, 43@, 44@ = Car.GetOffsetInWorldCoords(34@, -1.0, 0.0, 0.0)
45@, 46@, 47@ = Car.GetOffsetInWorldCoords(34@, 1.0, 0.0, 0.0)
104@ = 0

:DRIV6_9247
if and
  is_int_lvar_greater_than_int_lvar 49@ > 104@
  258@ == 1
goto_if_false @DRIV6_9425
if 
  not Car.IsDead(52@(104@,14i))
goto_if_false @DRIV6_9411
48@ = Car.GetDriver(52@(104@,14i))
if 
  48@ <> -1
goto_if_false @DRIV6_9411
if or
  Car.Locate3D(52@(104@,14i), 42@, 43@, 44@, 5.0, 5.0, 5.0, False)
  Car.Locate3D(52@(104@,14i), 45@, 46@, 47@, 5.0, 5.0, 5.0, False)
goto_if_false @DRIV6_9411
258@ = 0

:DRIV6_9411
104@ += 1
goto @DRIV6_9247

:DRIV6_9425
if 
  258@ == 1
goto_if_false @DRIV6_9450
TIMERA = 0

:DRIV6_9450
return 

:DRIV6_9452
104@ = 0

:DRIV6_9459
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_9766
if 
  not Car.IsDead(52@(104@,14i))
goto_if_false @DRIV6_9752
if 
  not Char.IsDead(66@(104@,14i))
goto_if_false @DRIV6_9578
Task.CarDriveToCoord(66@(104@,14i), 52@(104@,14i), -2148.62, 1063.98, 79.73, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Char.SetKeepTask(66@(104@,14i), True)
goto @DRIV6_9721

:DRIV6_9578
if 
  not Char.IsDead(80@(104@,14i))
goto_if_false @DRIV6_9721
if 
  Char.IsInCar(80@(104@,14i), 52@(104@,14i))
goto_if_false @DRIV6_9679
94@, 95@, 96@ = Car.GetCoordinates(52@(104@,14i))
Char.WarpFromCarToCoord(80@(104@,14i), 94@, 95@, -10.0)
Char.WarpIntoCar(80@(104@,14i), 52@(104@,14i))

:DRIV6_9679
Task.CarDriveToCoord(80@(104@,14i), 52@(104@,14i), -2148.62, 1063.98, 79.73, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:DRIV6_9721
if 
  not Char.IsDead(80@(104@,14i))
goto_if_false @DRIV6_9752
Char.SetKeepTask(80@(104@,14i), True)

:DRIV6_9752
104@ += 1
goto @DRIV6_9459

:DRIV6_9766
return 

:DRIV6_9768
104@ = 0

:DRIV6_9775
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_10124
if 
  not Car.IsDead(52@(104@,14i))
goto_if_false @DRIV6_10110
if 
  not Char.IsDead(66@(104@,14i))
goto_if_false @DRIV6_9924
Task.LookAtChar(66@(104@,14i), $scplayer, 5000)
if 
  Char.IsInCar(66@(104@,14i), 52@(104@,14i))
goto_if_false @DRIV6_9906
Task.CarTempAction(66@(104@,14i), 52@(104@,14i), TempAction.HandbrakeStraight, 2000000)
goto @DRIV6_9924

:DRIV6_9906
Task.EnterCarAsDriver(66@(104@,14i), 52@(104@,14i), -1)

:DRIV6_9924
if 
  not Char.IsDead(80@(104@,14i))
goto_if_false @DRIV6_10110
Task.LookAtChar(80@(104@,14i), $scplayer, 5000)
if 
  210@(104@,14i) == 1
goto_if_false @DRIV6_10063
if 
  Char.IsInCar(80@(104@,14i), 52@(104@,14i))
goto_if_false @DRIV6_10038
Task.CarTempAction(80@(104@,14i), 52@(104@,14i), TempAction.HandbrakeStraight, 2000000)
goto @DRIV6_10056

:DRIV6_10038
Task.EnterCarAsDriver(80@(104@,14i), 52@(104@,14i), -1)

:DRIV6_10056
goto @DRIV6_10110

:DRIV6_10063
if 
  not Char.IsInCar(80@(104@,14i), 52@(104@,14i))
goto_if_false @DRIV6_10110
Task.EnterCarAsPassenger(80@(104@,14i), 52@(104@,14i), -1, 0)

:DRIV6_10110
104@ += 1
goto @DRIV6_9775

:DRIV6_10124
return 

:DRIV6_10126
104@ = 0

:DRIV6_10133
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_10193
Char.Delete(66@(104@,14i))
Char.Delete(80@(104@,14i))
Car.Delete(52@(104@,14i))
104@ += 1
goto @DRIV6_10133

:DRIV6_10193
return 

:DRIV6_10195
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_10218
Car.LockDoors(34@, CarLock.Locked)

:DRIV6_10218
Camera.DoFade(1000, Fade.Out)

:DRIV6_10225
if 
  Camera.GetFadingStatus
goto_if_false @DRIV6_10249
wait 0
goto @DRIV6_10225

:DRIV6_10249
World.ClearArea(38@, 39@, 40@, 100.0, False)
gosub @DRIV6_10126
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Streaming.RequestModel(330)

:DRIV6_10297
if 
  not Streaming.HasModelLoaded(330)
goto_if_false @DRIV6_10324
wait 0
goto @DRIV6_10297

:DRIV6_10324
267@ = Object.CreateNoOffset(330, -1561.4, -2721.1, 47.57)
Object.SetVisible(267@, False)
Task.PickUpObject($scplayer, 267@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_10466
Car.SetIdle(34@)
Car.SetCoordinates(34@, 38@, 39@, -100.0)
Car.SetHeading(34@, 55.5)
Car.OpenDoorABit(34@, CarDoor.LeftFrontDoor, 0.0)
Car.OpenDoorABit(34@, CarDoor.RightFrontDoor, 0.0)

:DRIV6_10466
Streaming.RequestAnimation("CAR_CHAT")
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 28200)

:DRIV6_10485
if or
  not Streaming.HasAnimationLoaded("CAR_CHAT")
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @DRIV6_10523
wait 0
goto @DRIV6_10485

:DRIV6_10523
Camera.SetFixedPosition(-1573.6, -2743.74, 49.12, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1573.0, -2743.39, 49.05, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)

:DRIV6_10581
if 
  Camera.GetFadingStatus
goto_if_false @DRIV6_10628
if 
  Object.DoesExist(267@)
goto_if_false @DRIV6_10617
Object.SetVisible(267@, False)

:DRIV6_10617
wait 0
goto @DRIV6_10581

:DRIV6_10628
259@ = 1
skip_cutscene_start_internal @DRIV6_12111
101@ = Sequence.Open()
Task.PlayAnim(-1, "CARFONE_IN", "CAR_CHAT", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "CARFONE_LOOPA_TO_B", "CAR_CHAT", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "CARFONE_LOOPB", "CAR_CHAT", 4.0, True, False, False, False, -1)
Sequence.Close(101@)
Char.PerformSequence($scplayer, 101@)
Sequence.Clear(101@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
TIMERA = 0

:DRIV6_10810
if 
  3000 > TIMERA
goto_if_false @DRIV6_10863
if 
  Object.DoesExist(267@)
goto_if_false @DRIV6_10852
Object.SetVisible(267@, False)

:DRIV6_10852
wait 0
goto @DRIV6_10810

:DRIV6_10863
Object.SetVisible(267@, True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
135@ = 1
gosub @DRIV6_12213
TIMERA = 0
102@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  not is_int_lvar_equal_to_constant 102@ == 7
goto_if_false @DRIV6_10939
103@ = Char.GetSequenceProgress($scplayer)
goto @DRIV6_10946

:DRIV6_10939
103@ = 2

:DRIV6_10946
if or
  2 > 103@
  132@ == 0
goto_if_false @DRIV6_11059
wait 0
if 
  TIMERA > 1000
goto_if_false @DRIV6_11001
gosub @DRIV6_12532

:DRIV6_11001
102@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  not is_int_lvar_equal_to_constant 102@ == 7
goto_if_false @DRIV6_11045
103@ = Char.GetSequenceProgress($scplayer)
goto @DRIV6_11052

:DRIV6_11045
103@ = 2

:DRIV6_11052
goto @DRIV6_10946

:DRIV6_11059
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_11172
107@, 108@, 109@ = Car.GetOffsetInWorldCoords(34@, 0.4, 0.51, 0.65)
Camera.SetFixedPosition(107@, 108@, 109@, 0.0, 0.0, 0.0)
107@, 108@, 109@ = Car.GetOffsetInWorldCoords(34@, -0.13, 0.22, 0.54)
Camera.PointAtPoint(107@, 108@, 109@, SwitchType.JumpCut)

:DRIV6_11172
Task.PlayAnim($scplayer, "CARFONE_LOOPB", "CAR_CHAT", 4.0, True, False, False, False, -1)

:DRIV6_11217
if 
  1 >= 132@
goto_if_false @DRIV6_11253
wait 0
gosub @DRIV6_12532
goto @DRIV6_11217

:DRIV6_11253
101@ = Sequence.Open()
Task.PlayAnim(-1, "CARFONE_LOOPB_TO_A", "CAR_CHAT", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "CARFONE_LOOPA", "CAR_CHAT", 4.0, True, False, False, False, -1)
Sequence.Close(101@)
Char.PerformSequence($scplayer, 101@)
Sequence.Clear(101@)

:DRIV6_11369
if 
  4 >= 132@
goto_if_false @DRIV6_11405
wait 0
gosub @DRIV6_12532
goto @DRIV6_11369

:DRIV6_11405
101@ = Sequence.Open()
Task.PlayAnim(-1, "CARFONE_LOOPA_TO_B", "CAR_CHAT", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "CARFONE_LOOPB", "CAR_CHAT", 4.0, True, False, False, False, -1)
Sequence.Close(101@)
Char.PerformSequence($scplayer, 101@)
Sequence.Clear(101@)

:DRIV6_11521
if 
  5 >= 132@
goto_if_false @DRIV6_11597
wait 0
gosub @DRIV6_12532
if and
  131@ == 2
  134@ <> 1
goto_if_false @DRIV6_11590
Char.StartFacialTalk($scplayer, 4000)
134@ = 1

:DRIV6_11590
goto @DRIV6_11521

:DRIV6_11597
268@ = Car.Create(468, -1565.89, -2748.32, 48.21)
Car.SetHeading(268@, 58.42)
269@ = Char.CreateInsideCar(268@, PedType.Mission1, 123)
wait 1000
if and
  not Char.IsDead(269@)
  not Car.IsDead(268@)
goto_if_false @DRIV6_11702
Task.CarDriveToCoord(269@, 268@, -1574.23, -2742.62, 48.2, 20.0, DriveMode.Accurate, 0, DrivingMode.PloughThrough)

:DRIV6_11702
Camera.SetFixedPosition(-1570.65, -2748.39, 48.35, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1571.99, -2745.26, 48.29, SwitchType.JumpCut)
if 
  not Char.IsDead(269@)
goto_if_false @DRIV6_11850
102@ = Char.GetScriptTaskStatus(269@, 1489)

:DRIV6_11780
if 
  not is_int_lvar_equal_to_constant 102@ == 7
goto_if_false @DRIV6_11850
wait 0
if 
  not Char.IsDead(269@)
goto_if_false @DRIV6_11836
102@ = Char.GetScriptTaskStatus(269@, 1489)
goto @DRIV6_11843

:DRIV6_11836
set_lvar_int_to_constant 102@ = 7

:DRIV6_11843
goto @DRIV6_11780

:DRIV6_11850
if 
  not Char.IsDead(269@)
goto_if_false @DRIV6_11882
Task.LookAtChar(269@, $scplayer, 3000)
wait 3000

:DRIV6_11882
if 
  not Char.IsDead(269@)
goto_if_false @DRIV6_11920
Task.LookAtCoord(269@, -1572.73, -2747.12, 48.2, -2)

:DRIV6_11920
if 
  is_int_lvar_greater_than_int_lvar 133@ > 132@
goto_if_false @DRIV6_12034
wait 0
if 
  not Char.IsDead(269@)
goto_if_false @DRIV6_12013
gosub @DRIV6_12532
if and
  131@ == 2
  134@ <> 1
goto_if_false @DRIV6_12006
Char.StartFacialTalk(269@, 10000)
134@ = 1

:DRIV6_12006
goto @DRIV6_12027

:DRIV6_12013
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
set_lvar_int_to_lvar_int 132@ = 133@

:DRIV6_12027
goto @DRIV6_11920

:DRIV6_12034
if and
  not Char.IsDead(269@)
  not Car.IsDead(268@)
goto_if_false @DRIV6_12099
Char.StopFacialTalk(269@)
Char.ClearLookAt(269@)
Task.CarDriveToCoord(269@, 268@, -1630.35, -2721.17, 48.62, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:DRIV6_12099
wait 3000
259@ = 0

:DRIV6_12111
skip_cutscene_end 
if 
  259@ == 1
goto_if_false @DRIV6_12131

:DRIV6_12131
Char.ClearTasks($scplayer)
Char.StopFacialTalk($scplayer)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
Char.Delete(269@)
Car.Delete(268@)
Object.Delete(267@)
Char.HideWeaponForScriptedCutscene($scplayer, False)
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_12196
Car.LockDoors(34@, CarLock.Unlocked)

:DRIV6_12196
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
return 

:DRIV6_12213
switch_start 135@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @DRIV6_12502 {caseNum1} 0 {caseLabel1} @DRIV6_12276 {caseNum2} 1 {caseLabel2} @DRIV6_12334 {caseNum3} -1 {caseLabel3} @DRIV6_12509 {caseNum4} -1 {caseLabel4} @DRIV6_12509 {caseNum5} -1 {caseLabel5} @DRIV6_12509 {caseNum6} -1 {caseLabel6} @DRIV6_12509 {caseNum7} -1 {caseLabel7} @DRIV6_12509

:DRIV6_12276
set_lvar_text_label 110@s = 'FAR5_AB'
set_lvar_text_label 112@s = 'FAR5_AA'
set_lvar_int_to_constant 124@ = 30603
set_lvar_int_to_constant 125@ = 30602
133@ = 2
goto @DRIV6_12509

:DRIV6_12334
set_lvar_text_label 110@s = 'MTG02A'
set_lvar_text_label 112@s = 'MTG02B'
set_lvar_text_label 114@s = 'MTG02C'
set_lvar_text_label 116@s = 'MTG02D'
set_lvar_text_label 118@s = 'MTG02E'
set_lvar_text_label 120@s = 'MTG02F'
set_lvar_text_label 122@s = 'FAR5_AA'
set_lvar_int_to_constant 124@ = 20008
set_lvar_int_to_constant 125@ = 20012
set_lvar_int_to_constant 126@ = 20009
set_lvar_int_to_constant 127@ = 20010
set_lvar_int_to_constant 128@ = 20013
set_lvar_int_to_constant 129@ = 20011
set_lvar_int_to_constant 130@ = 30602
133@ = 7
goto @DRIV6_12509

:DRIV6_12502
goto @DRIV6_12509

:DRIV6_12509
131@ = 0
132@ = 0
134@ = 0
return 

:DRIV6_12532
if or
  131@ == 0
  131@ == 1
goto_if_false @DRIV6_12602
if 
  is_int_lvar_greater_than_int_lvar 133@ > 132@
goto_if_false @DRIV6_12602
if 
  TIMERB > 1000
goto_if_false @DRIV6_12602
gosub @DRIV6_12667

:DRIV6_12602
if 
  131@ == 2
goto_if_false @DRIV6_12665
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV6_12665
131@ = 0
132@ += 1
134@ = 0
Text.ClearPrints
TIMERB = 0

:DRIV6_12665
return 

:DRIV6_12667
if 
  131@ == 0
goto_if_false @DRIV6_12703
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 124@(132@,7i))
131@ = 1

:DRIV6_12703
if 
  131@ == 1
goto_if_false @DRIV6_12761
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV6_12761
Text.PrintNow(110@(132@,7s), 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
131@ = 2

:DRIV6_12761
return 

:DRIV6_12763
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:DRIV6_12781
$flag_wuzi_mission_counter += 1
Stat.RegisterMissionPassed('FAR_5')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSS', 8000, 5000, TextStyle.Middle)
Player.AddScore($player1, 8000)
Stat.AwardPlayerMissionRespect(20)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
return 

:DRIV6_12845
if 
  not Car.IsDead(34@)
goto_if_false @DRIV6_12883
Car.SetProofs(34@, False, False, False, False, False)
Car.SetCanBeVisiblyDamaged(34@, True)

:DRIV6_12883
Streaming.MarkModelAsNoLongerNeeded(489)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.MarkModelAsNoLongerNeeded(123)
Streaming.MarkModelAsNoLongerNeeded(122)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.RemoveAnimation("CAR_CHAT")
Blip.Remove(262@)
Blip.Remove(263@)
Blip.Remove(264@)
Blip.Remove(265@)
gosub @DRIV6_9452
Checkpoint.Delete(41@)
Hud.ClearCounter($d6_door_health)
Sequence.Clear(101@)
CarGenerator.Switch($5279, 101)
CarGenerator.Switch($5280, 101)
CarGenerator.Switch($5281, 101)
$timer_mobile_start = Clock.GetGameTimer()
World.SetCarDensityMultiplier(1.0)
$onmission = 0
Mission.Finish
return 

//-------------Mission 56---------------
// Originally: Amphibious Assault

:WUZI2
script_name 'WUZI2'
gosub @WUZI2_47
if 
  has_deatharrest_been_executed 
goto_if_false @WUZI2_38
gosub @WUZI2_26542

:WUZI2_38
gosub @WUZI2_26652
terminate_this_script 

:WUZI2_47
Stat.RegisterMissionGiven
$onmission = 1
257@ = Game.GetMaxWantedLevel()
Text.LoadMissionText('WUZI2')
$guard_limit_W2 = Stat.GetInt(StatId.UnderwaterBreathStamina)
if 
  not is_ps2_keyboard_key_pressed 20
goto_if_false @WUZI2_242
if 
  50 >= $guard_limit_W2
goto_if_false @WUZI2_242
$guard_limit_W2 = 1
Streaming.SetAreaVisible(1)
Cutscene.Load('W2_ALT')

:WUZI2_135
if 
  not Cutscene.HasLoaded
goto_if_false @WUZI2_159
wait 0
goto @WUZI2_135

:WUZI2_159
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:WUZI2_168
if 
  not Cutscene.HasFinished
goto_if_false @WUZI2_192
wait 0
goto @WUZI2_168

:WUZI2_192
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:WUZI2_205
if 
  Camera.GetFadingStatus
goto_if_false @WUZI2_229
wait 0
goto @WUZI2_205

:WUZI2_229
Cutscene.Clear
Streaming.SetAreaVisible(0)
goto @WUZI2_26652

:WUZI2_242
$guard_limit_W2 = 0
Player.SetGroupRecruitment($player1, False)
Game.SetScriptLimitToGangSize(0)
Streaming.SetAreaVisible(1)
Cutscene.Load('WOOZIE2')

:WUZI2_275
if 
  not Cutscene.HasLoaded
goto_if_false @WUZI2_299
wait 0
goto @WUZI2_275

:WUZI2_299
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:WUZI2_308
if 
  not Cutscene.HasFinished
goto_if_false @WUZI2_332
wait 0
goto @WUZI2_308

:WUZI2_332
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:WUZI2_345
if 
  Camera.GetFadingStatus
goto_if_false @WUZI2_369
wait 0
goto @WUZI2_345

:WUZI2_369
Cutscene.Clear
Streaming.SetAreaVisible(0)
Game.SetScriptLimitToGangSize(99)
start_new_script @A_CONT 
Streaming.RequestModel(121)
Streaming.RequestModel(122)
Streaming.RequestModel(123)
Streaming.RequestModel(454)
Streaming.RequestModel(355)
Streaming.RequestModel(335)
Streaming.RequestModel(#A51_SPOTBASE)
Streaming.RequestModel(#A51_SPOTHOUSING)
Streaming.RequestModel(#A51_SPOTBULB)
Streaming.RequestAnimation("DAM_JUMP")

:WUZI2_441
if or
  not Streaming.HasModelLoaded(121)
  not Streaming.HasModelLoaded(122)
  not Streaming.HasModelLoaded(123)
  not Streaming.HasModelLoaded(454)
  not Streaming.HasModelLoaded(355)
  not Streaming.HasModelLoaded(335)
goto_if_false @WUZI2_490
wait 0
goto @WUZI2_441

:WUZI2_490
if or
  not Streaming.HasModelLoaded(#A51_SPOTBASE)
  not Streaming.HasModelLoaded(#A51_SPOTHOUSING)
  not Streaming.HasModelLoaded(#A51_SPOTBULB)
  not Streaming.HasAnimationLoaded("DAM_JUMP")
goto_if_false @WUZI2_539
wait 0
goto @WUZI2_490

:WUZI2_539
34@ = DecisionMakerChar.Load(DecisionMakerType.Steal)
35@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission2, PedType.Player1)
Weather.ForceNow(WeatherType.FoggySf)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Char.SetCoordinates($scplayer, -2153.611, 645.31, 51.3516)
Char.SetHeading($scplayer, 270.0)
Camera.DoFade(1500, Fade.In)
36@ = Blip.AddForCoord(-1641.995, 1309.217, 6.1764)
Text.PrintNow('WZI2_1', 8000, 1)
40@ = 0
253@ = 0
if 
  253@ == 1
goto_if_false @WUZI2_910
290@($d6_player_reached_sixth_creation_pt,2i) = Car.Create(454, 0.0, 0.0, 0.0)
436@($d6_player_reached_sixth_creation_pt,7i) = Char.Create(PedType.CivMale, 121, 0.0, 0.0, 0.0)
443@($d6_player_reached_sixth_creation_pt,8i) = Blip.AddForChar(436@($d6_player_reached_sixth_creation_pt,7i))
413@($d6_player_reached_sixth_creation_pt,2i) = Car.Create(454, 0.0, 0.0, 0.0)
417@($d6_player_reached_sixth_creation_pt,6i) = Char.Create(PedType.CivMale, 121, 0.0, 0.0, 0.0)
259@ = Blip.AddForChar(417@($d6_player_reached_sixth_creation_pt,6i))
383@($d6_player_reached_sixth_creation_pt,6i) = Searchlight.Create(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
276@ = Checkpoint.Create(CheckpointType.Torus, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)

:WUZI2_910
set_lvar_text_label 127@s = 'WUZ2_AA'
set_lvar_int_to_constant 58@ = 39200
set_lvar_text_label 129@s = 'WUZ2_NA'
set_lvar_int_to_constant 59@ = 39236
set_lvar_text_label 131@s = 'WUZ2_ZA'
set_lvar_int_to_constant 60@ = 39283
set_lvar_text_label 133@s = 'WUZ2_AB'
set_lvar_int_to_constant 61@ = 39201
set_lvar_text_label 135@s = 'WUZ2_NB'
set_lvar_int_to_constant 62@ = 39237
set_lvar_text_label 137@s = 'WUZ2_ZB'
set_lvar_int_to_constant 63@ = 39284
set_lvar_text_label 139@s = 'WUZ2_AC'
set_lvar_int_to_constant 64@ = 39202
set_lvar_text_label 141@s = 'WUZ2_NC'
set_lvar_int_to_constant 65@ = 39238
set_lvar_text_label 143@s = 'WUZ2_ZC'
set_lvar_int_to_constant 66@ = 39285
set_lvar_text_label 145@s = 'WUZ2_BA'
set_lvar_int_to_constant 67@ = 39203
set_lvar_text_label 147@s = 'WUZ2_OA'
set_lvar_int_to_constant 68@ = 39239
set_lvar_text_label 149@s = 'WUZ2_ZD'
set_lvar_int_to_constant 69@ = 39286
set_lvar_text_label 151@s = 'WUZ2_BB'
set_lvar_int_to_constant 70@ = 39204
set_lvar_text_label 153@s = 'WUZ2_OB'
set_lvar_int_to_constant 71@ = 39240
set_lvar_text_label 155@s = 'WUZ2_ZE'
set_lvar_int_to_constant 72@ = 39287
set_lvar_text_label 157@s = 'WUZ2_BC'
set_lvar_int_to_constant 73@ = 39205
set_lvar_text_label 159@s = 'WUZ2_OC'
set_lvar_int_to_constant 74@ = 39241
set_lvar_text_label 161@s = 'WUZ2_ZF'
set_lvar_int_to_constant 75@ = 39288
set_lvar_text_label 163@s = 'WUZ2_CA'
set_lvar_int_to_constant 76@ = 39206
set_lvar_text_label 165@s = 'WUZ2_PA'
set_lvar_int_to_constant 77@ = 39242
set_lvar_text_label 167@s = 'WUZ2_ZG'
set_lvar_int_to_constant 78@ = 39289
set_lvar_text_label 169@s = 'WUZ2_CB'
set_lvar_int_to_constant 79@ = 39207
set_lvar_text_label 171@s = 'WUZ2_PB'
set_lvar_int_to_constant 80@ = 39243
set_lvar_text_label 173@s = 'WUZ2_ZH'
set_lvar_int_to_constant 81@ = 39290
set_lvar_text_label 175@s = 'WUZ2_CC'
set_lvar_int_to_constant 82@ = 39208
set_lvar_text_label 177@s = 'WUZ2_PC'
set_lvar_int_to_constant 83@ = 39244
set_lvar_text_label 179@s = 'WUZ2_ZJ'
set_lvar_int_to_constant 84@ = 39291
set_lvar_text_label 181@s = 'WUZ2_DA'
set_lvar_int_to_constant 85@ = 39209
set_lvar_text_label 183@s = 'WUZ2_QA'
set_lvar_int_to_constant 86@ = 39245
set_lvar_text_label 185@s = 'WUZ2_ZK'
set_lvar_int_to_constant 87@ = 39292
set_lvar_text_label 187@s = 'WUZ2_DB'
set_lvar_int_to_constant 88@ = 39210
set_lvar_text_label 189@s = 'WUZ2_QB'
set_lvar_int_to_constant 89@ = 39246
set_lvar_text_label 191@s = 'WUZ2_ZL'
set_lvar_int_to_constant 90@ = 39293
set_lvar_text_label 193@s = 'WUZ2_DC'
set_lvar_int_to_constant 91@ = 39211
set_lvar_text_label 195@s = 'WUZ2_QC'
set_lvar_int_to_constant 92@ = 39247
set_lvar_text_label 197@s = 'WUZ2_ZM'
set_lvar_int_to_constant 93@ = 39294
set_lvar_text_label 199@s = 'WUZ2_EA'
set_lvar_int_to_constant 94@ = 39212
set_lvar_text_label 201@s = 'WUZ2_RA'
set_lvar_int_to_constant 95@ = 39248
set_lvar_text_label 203@s = 'WUZ2_ZN'
set_lvar_int_to_constant 96@ = 39295
set_lvar_text_label 205@s = 'WUZ2_EB'
set_lvar_int_to_constant 97@ = 39213
set_lvar_text_label 207@s = 'WUZ2_RB'
set_lvar_int_to_constant 98@ = 39249
set_lvar_text_label 209@s = 'WUZ2_ZO'
set_lvar_int_to_constant 99@ = 39296
set_lvar_text_label 211@s = 'WUZ2_EC'
set_lvar_int_to_constant 100@ = 39214
set_lvar_text_label 213@s = 'WUZ2_RC'
set_lvar_int_to_constant 101@ = 39250
set_lvar_text_label 215@s = 'WUZ2_ZP'
set_lvar_int_to_constant 102@ = 39297
set_lvar_text_label 217@s = 'WUZ2_FA'
set_lvar_int_to_constant 103@ = 39215
set_lvar_text_label 219@s = 'WUZ2_SA'
set_lvar_int_to_constant 104@ = 39251
set_lvar_text_label 221@s = 'WUZ2_ZQ'
set_lvar_int_to_constant 105@ = 39298
set_lvar_text_label 223@s = 'WUZ2_FB'
set_lvar_int_to_constant 106@ = 39216
set_lvar_text_label 225@s = 'WUZ2_SB'
set_lvar_int_to_constant 107@ = 39252
set_lvar_text_label 227@s = 'WUZ2_ZR'
set_lvar_int_to_constant 108@ = 39299
set_lvar_text_label 229@s = 'WUZ2_FC'
set_lvar_int_to_constant 109@ = 39217
set_lvar_text_label 231@s = 'WUZ2_SC'
set_lvar_int_to_constant 110@ = 39253
set_lvar_text_label 233@s = 'WUZ2_ZS'
set_lvar_int_to_constant 111@ = 39300
set_lvar_text_label 235@s = 'WUZ2_GA'
set_lvar_int_to_constant 112@ = 39218
set_lvar_text_label 237@s = 'WUZ2_TA'
set_lvar_int_to_constant 113@ = 39254
set_lvar_text_label 239@s = 'WUZ2_ZT'
set_lvar_int_to_constant 114@ = 39301
set_lvar_text_label 241@s = 'WUZ2_GB'
set_lvar_int_to_constant 115@ = 39219
set_lvar_text_label 243@s = 'WUZ2_TB'
set_lvar_int_to_constant 116@ = 39255
set_lvar_text_label 245@s = 'WUZ2_ZU'
set_lvar_int_to_constant 117@ = 39302
set_lvar_text_label 247@s = 'WUZ2_GC'
set_lvar_int_to_constant 118@ = 39220
set_lvar_text_label 249@s = 'WUZ2_TC'
set_lvar_int_to_constant 119@ = 39256
set_lvar_text_label 251@s = 'WUZ2_ZV'
set_lvar_int_to_constant 120@ = 39303
121@ = Math.RandomIntInRange(0, 3)
122@ = Math.RandomIntInRange(0, 3)
123@ = 0
124@ = 10

:WUZI2_2454
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @WUZI2_2480
goto @WUZI2_26588

:WUZI2_2480
if 
  Char.LocateStoppedOnFoot3D($scplayer, -1641.995, 1309.217, 6.1764, 1.2, 1.2, 2.0, True)
goto_if_false @WUZI2_2547
Player.SetControl($player1, False)
Blip.Remove(36@)
goto @WUZI2_2554

:WUZI2_2547
goto @WUZI2_2454

:WUZI2_2554
Camera.DoFade(500, Fade.Out)

:WUZI2_2561
if 
  Camera.GetFadingStatus
goto_if_false @WUZI2_2585
wait 0
goto @WUZI2_2561

:WUZI2_2585
Player.ClearWantedLevel($player1)
Game.SetMaxWantedLevel(0)
World.ClearAreaOfCars(-1648.875, 1319.242, 6.0, -1636.367, 1297.54, 9.0)
World.ClearAreaOfChars(-1648.875, 1319.242, 6.0, -1636.367, 1297.54, 9.0)
gosub @WUZI2_8379
gosub @WUZI2_18697
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @WUZI2_2715
Char.WarpFromCarToCoord($scplayer, -1640.9, 1310.6, 6.1797)
goto @WUZI2_2735

:WUZI2_2715
Char.SetCoordinates($scplayer, -1640.9, 1310.6, 6.1797)

:WUZI2_2735
Char.SetHeading($scplayer, 315.0)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
47@ = 0
Streaming.LoadScene(-1455.999, 1529.144, 19.179)
Camera.SetFixedPosition(-1358.484, 1468.994, 18.4397, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1359.312, 1469.54, 18.3092, SwitchType.JumpCut)
gosub @WUZI2_18118
Char.HideWeaponForScriptedCutscene($scplayer, True)
Camera.DoFade(500, Fade.In)

:WUZI2_2852
if 
  Camera.GetFadingStatus
goto_if_false @WUZI2_2876
wait 0
goto @WUZI2_2852

:WUZI2_2876
skip_cutscene_start_internal @WUZI2_3040
Text.PrintNow('WZI2_2', 6500, 1)
TIMERA = 0

:WUZI2_2906
if 
  6500 > TIMERA
goto_if_false @WUZI2_2936
wait 0
goto @WUZI2_2906

:WUZI2_2936
Camera.SetFixedPosition(-1511.427, 1374.075, 5.9802, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1511.29, 1373.103, 5.7898, SwitchType.JumpCut)
Text.PrintNow('WZI2_3', 6500, 1)
TIMERA = 0

:WUZI2_3010
if 
  6500 > TIMERA
goto_if_false @WUZI2_3040
wait 0
goto @WUZI2_3010

:WUZI2_3040
skip_cutscene_end 
Text.ClearPrints
skip_cutscene_start_internal @WUZI2_3877
Camera.SetFixedPosition(-1642.439, 1308.882, 11.1649, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1641.914, 1309.402, 10.4912, SwitchType.JumpCut)
TIMERA = 0

:WUZI2_3109
if 
  500 > TIMERA
goto_if_false @WUZI2_3139
wait 0
goto @WUZI2_3109

:WUZI2_3139
Task.PlayAnim($scplayer, "SF_JUMPWALL", "DAM_JUMP", 1000.0, False, False, False, False, 0)
TIMERA = 0

:WUZI2_3189
if 
  1000 > TIMERA
goto_if_false @WUZI2_3219
wait 0
goto @WUZI2_3189

:WUZI2_3219
Clock.SetTimeScale(0.2)
Camera.SetFixedPosition(-1636.664, 1316.354, -3.7183, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1636.729, 1315.749, -2.925, SwitchType.JumpCut)
$z = -2.925
TIMERA = 0
254@ = 0

:WUZI2_3301
if 
  $z > -3.2406
goto_if_false @WUZI2_3570
wait 0
$z -= 0.003
if 
  -3.2406 > $z
goto_if_false @WUZI2_3367
$z = -3.2406

:WUZI2_3367
Camera.PointAtPoint(-1636.729, 1315.749, $z, SwitchType.JumpCut)
if and
  TIMERA > 200
  2 > 254@
goto_if_false @WUZI2_3563
if 
  254@ == 0
goto_if_false @WUZI2_3546
$x = World.GetWaterHeightAtCoords(-1637.354, 1314.11, True)
255@ = Particle.Create("WATER_SPLASH", -1637.354, 1314.11, $x, 1)
256@ = Particle.Create("WATER_RIPPLES", -1637.354, 1314.11, $x, 1)
Audio.ReportMissionAudioEventAtPosition(-1637.354, 1314.11, $x, 1144)
254@ += 1
goto @WUZI2_3563

:WUZI2_3546
Particle.Play(255@)
Particle.Play(256@)
254@ += 1

:WUZI2_3563
goto @WUZI2_3301

:WUZI2_3570
$z = 0.2

:WUZI2_3580
if 
  0.5 > $z
goto_if_false @WUZI2_3658
wait 0
$z += 0.014
if 
  $z > 0.5
goto_if_false @WUZI2_3646
$z = 0.5

:WUZI2_3646
Clock.SetTimeScale($z)
goto @WUZI2_3580

:WUZI2_3658
Particle.Kill(255@)
Particle.Kill(256@)

:WUZI2_3668
if 
  Char.IsPlayingAnim($scplayer, "SF_JUMPWALL")
goto_if_false @WUZI2_3708
wait 0
goto @WUZI2_3668

:WUZI2_3708
Char.SetCoordinates($scplayer, -1636.33, 1315.36, -1.0)
Char.SetHeading($scplayer, 285.0)
TIMERA = 0

:WUZI2_3745
if 
  500 > TIMERA
goto_if_false @WUZI2_3775
wait 0
goto @WUZI2_3745

:WUZI2_3775
Clock.SetTimeScale(1.0)
Camera.SetFixedPosition(-1641.399, 1314.413, 1.3246, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1640.422, 1314.574, 1.1792, SwitchType.JumpCut)
47@ = 1
TIMERA = 0

:WUZI2_3847
if 
  1500 > TIMERA
goto_if_false @WUZI2_3877
wait 0
goto @WUZI2_3847

:WUZI2_3877
skip_cutscene_end 
Char.HideWeaponForScriptedCutscene($scplayer, False)
Particle.Kill(255@)
Particle.Kill(256@)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Game.SetAlwaysDraw3DMarkers(True)
277@ = 0
278@ = 0
280@ = -1625.651
281@ = 1317.92
279@ = 1
if 
  47@ == 0
goto_if_false @WUZI2_4018
Char.SetCoordinates($scplayer, -1636.33, 1315.36, -1.0)
Char.SetHeading($scplayer, 285.0)
Clock.SetTimeScale(1.0)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
goto @WUZI2_4020

:WUZI2_4018
Camera.Restore

:WUZI2_4020
Streaming.RemoveAnimation("DAM_JUMP")
47@ = 0
Text.ClearPrints
Text.PrintNow('WZI2_8', 8000, 1)
36@ = Blip.AddForCoord(-1449.642, 1501.135, 0.7366)
$swim_stamina_check = 0
$help_text_switch_W2 = 0
set_lvar_text_label 260@s = 'WZI2_A0'
set_lvar_text_label 262@s = 'WZI2_A1'
set_lvar_text_label 264@s = 'WZI2_A2'
set_lvar_text_label 266@s = 'WZI2_A3'
set_lvar_text_label 268@s = 'WZI2_A4'
set_lvar_text_label 270@s = 'WZI2_A5'
set_lvar_text_label 272@s = 'WZI2_A6'
set_lvar_text_label 274@s = 'WZI2_A7'
if 
  379@ == 0
goto_if_false @WUZI2_4248
258@ = Pickup.CreateWithAmmo(335, PickupType.Once, 1, -1595.0, 1345.0, -7.5)

:WUZI2_4248
TIMERB = 0

:WUZI2_4255
wait 0
gosub @WUZI2_16055
if 
  373@ == 2
goto_if_false @WUZI2_4296
Blip.Remove(259@)
goto @WUZI2_7278

:WUZI2_4296
gosub @WUZI2_8017
if 
  289@ == 2
goto_if_false @WUZI2_4328
goto @WUZI2_6224

:WUZI2_4328
switch_start $swim_stamina_check {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @WUZI2_5276 {caseNum1} 0 {caseLabel1} @WUZI2_4391 {caseNum2} 1 {caseLabel2} @WUZI2_4880 {caseNum3} 2 {caseLabel3} @WUZI2_5040 {caseNum4} 3 {caseLabel4} @WUZI2_5217 {caseNum5} -1 {caseLabel5} @WUZI2_5276 {caseNum6} -1 {caseLabel6} @WUZI2_5276 {caseNum7} -1 {caseLabel7} @WUZI2_5276

:WUZI2_4391
if and
  Char.IsInArea3D($scplayer, -1602.782, 1320.688, -8.0, -1606.119, 1331.51, 1.0, False)
  287@ == 0
goto_if_false @WUZI2_4759
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Text.ClearHelp
Text.ClearPrints
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorTrack(-1600.998, 1323.041, 1.9093, -1600.315, 1322.414, -2.0672, 6000, True)
Camera.SetVectorMove(-1598.525, 1318.594, 2.3701, -1598.525, 1318.594, -2.3701, 6000, True)
Text.PrintNow('WZI2_5', 8000, 1)
TIMERA = 0

:WUZI2_4568
if 
  800 > TIMERA
goto_if_false @WUZI2_4598
wait 0
goto @WUZI2_4568

:WUZI2_4598
skip_cutscene_start_internal @WUZI2_4717

:WUZI2_4605
if 
  Camera.IsVectorTrackRunning
goto_if_false @WUZI2_4629
wait 0
goto @WUZI2_4605

:WUZI2_4629
TIMERA = 0

:WUZI2_4636
if 
  1500 > TIMERA
goto_if_false @WUZI2_4666
wait 0
goto @WUZI2_4636

:WUZI2_4666
Camera.SetFixedPosition(-1598.525, 1318.594, 1.3701, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1599.181, 1319.288, 1.0744, SwitchType.JumpCut)

:WUZI2_4717
skip_cutscene_end 
Text.ClearPrints
Camera.ResetNewScriptables
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
$swim_stamina_check += 1
TIMERB = 0
goto @WUZI2_4873

:WUZI2_4759
if 
  Char.IsInArea3D($scplayer, -1611.833, 1334.313, 0.8012, -1615.812, 1329.394, -7.9862, False)
goto_if_false @WUZI2_4821
$swim_stamina_check = 3
goto @WUZI2_4873

:WUZI2_4821
if 
  Char.LocateOnFoot2D($scplayer, -1549.125, 1339.961, 3.5, 3.5, False)
goto_if_false @WUZI2_4873
282@ = 0
goto @WUZI2_5983

:WUZI2_4873
goto @WUZI2_5276

:WUZI2_4880
if 
  Char.IsInAngledAreaOnFoot3D($scplayer, -1611.833, 1334.313, 0.8012, -1615.812, 1329.394, -7.9862, 2.0, False)
goto_if_false @WUZI2_4981
if 
  287@ == 1
goto_if_false @WUZI2_4967
Text.PrintNow('WZI2_6', 5000, 1)

:WUZI2_4967
$swim_stamina_check += 1
goto @WUZI2_5033

:WUZI2_4981
if 
  Char.LocateOnFoot2D($scplayer, -1549.125, 1339.961, 3.5, 3.5, False)
goto_if_false @WUZI2_5033
282@ = 0
goto @WUZI2_5983

:WUZI2_5033
goto @WUZI2_5276

:WUZI2_5040
if 
  Char.LocateOnFoot2D($scplayer, -1612.208, 1349.552, 3.5, 3.5, False)
goto_if_false @WUZI2_5158
Text.ClearHelp
if 
  379@ == 0
goto_if_false @WUZI2_5136
Text.PrintNow('WZI2_7', 6000, 1)
259@ = Blip.AddForPickup(258@)
TIMERB = 0
goto @WUZI2_5144

:WUZI2_5136
TIMERB = 6001

:WUZI2_5144
$swim_stamina_check += 1
goto @WUZI2_5210

:WUZI2_5158
if 
  Char.LocateOnFoot2D($scplayer, -1549.125, 1339.961, 3.5, 3.5, False)
goto_if_false @WUZI2_5210
282@ = 0
goto @WUZI2_5983

:WUZI2_5210
goto @WUZI2_5276

:WUZI2_5217
if 
  Char.LocateOnFoot2D($scplayer, -1549.125, 1339.961, 3.5, 3.5, False)
goto_if_false @WUZI2_5269
282@ = 0
goto @WUZI2_5983

:WUZI2_5269
goto @WUZI2_5276

:WUZI2_5276
gosub @WUZI2_5297
gosub @WUZI2_18290
goto @WUZI2_4255

:WUZI2_5297
switch_start 278@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @WUZI2_5487 {caseNum1} 0 {caseLabel1} @WUZI2_5360 {caseNum2} 1 {caseLabel2} @WUZI2_5466 {caseNum3} -1 {caseLabel3} @WUZI2_5487 {caseNum4} -1 {caseLabel4} @WUZI2_5487 {caseNum5} -1 {caseLabel5} @WUZI2_5487 {caseNum6} -1 {caseLabel6} @WUZI2_5487 {caseNum7} -1 {caseLabel7} @WUZI2_5487

:WUZI2_5360
if 
  Char.LocateOnFoot2D($scplayer, 280@, 281@, 4.0, 4.0, 279@)
goto_if_false @WUZI2_5459
Checkpoint.Delete(276@)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
if 
  6 > 277@
goto_if_false @WUZI2_5452
278@ += 1
goto @WUZI2_5459

:WUZI2_5452
278@ = -1

:WUZI2_5459
goto @WUZI2_5487

:WUZI2_5466
gosub @WUZI2_5489
278@ -= 1
goto @WUZI2_5487

:WUZI2_5487
return 

:WUZI2_5489
277@ += 1
switch_start 277@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @WUZI2_5981 {caseNum1} 1 {caseLabel1} @WUZI2_5559 {caseNum2} 2 {caseLabel2} @WUZI2_5593 {caseNum3} 3 {caseLabel3} @WUZI2_5665 {caseNum4} 4 {caseLabel4} @WUZI2_5699 {caseNum5} 5 {caseLabel5} @WUZI2_5803 {caseNum6} 6 {caseLabel6} @WUZI2_5837 {caseNum7} 7 {caseLabel7} @WUZI2_5909

:WUZI2_5559
280@ = -1604.522
281@ = 1312.674
279@ = 1
goto @WUZI2_5981

:WUZI2_5593
280@ = -1611.557
281@ = 1330.789
276@ = Checkpoint.Create(CheckpointType.Torus, 280@, 281@, -2.2294, -1610.672, 1330.325, -2.2294, 0.8)
279@ = 0
goto @WUZI2_5981

:WUZI2_5665
280@ = -1626.098
281@ = 1343.811
279@ = 1
goto @WUZI2_5981

:WUZI2_5699
if 
  379@ > 0
goto_if_false @WUZI2_5796
280@ = -1596.333
281@ = 1345.053
276@ = Checkpoint.Create(CheckpointType.Torus, 280@, 281@, -6.2933, -1597.273, 1345.396, -6.2933, 0.8)
279@ = 0
goto @WUZI2_5981
goto @WUZI2_5803

:WUZI2_5796
277@ += 1

:WUZI2_5803
280@ = -1576.722
281@ = 1338.477
279@ = 1
goto @WUZI2_5981

:WUZI2_5837
280@ = -1559.138
281@ = 1333.954
276@ = Checkpoint.Create(CheckpointType.Torus, 280@, 281@, -5.3882, -1560.119, 1334.147, -5.3819, 1.2)
279@ = 0
goto @WUZI2_5981

:WUZI2_5909
280@ = -1548.216
281@ = 1342.198
276@ = Checkpoint.Create(CheckpointType.Torus, 280@, 281@, -7.0752, -1548.608, 1341.277, -7.0752, 1.2)
279@ = 0
goto @WUZI2_5981

:WUZI2_5981
return 

:WUZI2_5983
wait 0
gosub @WUZI2_8017
if 
  289@ == 2
goto_if_false @WUZI2_6019
goto @WUZI2_6224

:WUZI2_6019
if 
  287@ == 0
goto_if_false @WUZI2_6154
if 
  282@ == 0
goto_if_false @WUZI2_6147
if 
  not Char.IsInAngledAreaOnFoot3D($scplayer, -1558.932, 1338.285, -5.0, -1563.078, 1329.29, 5.0, 10.0, False)
goto_if_false @WUZI2_6140
if 
  289@ == 0
goto_if_false @WUZI2_6133
goto @WUZI2_6224

:WUZI2_6133
goto @WUZI2_6147

:WUZI2_6140
282@ = 1

:WUZI2_6147
goto @WUZI2_6217

:WUZI2_6154
if 
  282@ == 1
goto_if_false @WUZI2_6217
if 
  Char.LocateOnFoot2D($scplayer, -1549.125, 1339.961, 3.5, 3.5, False)
goto_if_false @WUZI2_6217
282@ = 0

:WUZI2_6217
goto @WUZI2_5983

:WUZI2_6224
$y_grid_pos_W2 = -2
Text.ClearHelp
Text.ClearPrints
Blip.Remove(259@)
Checkpoint.Delete(276@)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
if 
  289@ <> 2
goto_if_false @WUZI2_6823
Camera.SetBehindPlayer
TIMERA = 0

:WUZI2_6283
if 
  500 > TIMERA
goto_if_false @WUZI2_6313
wait 0
goto @WUZI2_6283

:WUZI2_6313
51@, 52@, 53@ = Camera.GetActiveCoordinates()
54@, 55@, 56@ = Camera.GetActivePointAt()
if 
  not Car.IsDead(291@)
goto_if_false @WUZI2_6365
$x, $y, $z = Car.GetCoordinates(291@)

:WUZI2_6365
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorTrack(54@, 55@, 56@, $x, $y, $z, 3500, True)
Camera.SetVectorMove(51@, 52@, 53@, 51@, 52@, 53@, 3500, True)
Text.PrintNow('WZI2_40', 8000, 1)
TIMERA = 0

:WUZI2_6448
if 
  1000 > TIMERA
goto_if_false @WUZI2_6478
wait 0
goto @WUZI2_6448

:WUZI2_6478
skip_cutscene_start_internal @WUZI2_6814
wait 0

:WUZI2_6489
if 
  Camera.IsVectorTrackRunning
goto_if_false @WUZI2_6513
wait 0
goto @WUZI2_6489

:WUZI2_6513
if 
  not Car.IsDead(290@)
goto_if_false @WUZI2_6543
$player_x, $player_y, $player_z = Car.GetCoordinates(290@)

:WUZI2_6543
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorTrack($x, $y, $z, $player_x, $player_y, $player_z, 3000, False)
Camera.SetVectorMove(51@, 52@, 53@, 51@, 52@, 53@, 3000, False)
wait 0

:WUZI2_6607
if 
  Camera.IsVectorTrackRunning
goto_if_false @WUZI2_6645
wait 0
gosub @WUZI2_9364
gosub @WUZI2_12194
goto @WUZI2_6607

:WUZI2_6645
Text.PrintNow('WZI2_41', 8000, 1)
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorTrack($player_x, $player_y, $player_z, 54@, 55@, 56@, 4500, True)
Camera.SetVectorMove(51@, 52@, 53@, 51@, 52@, 53@, 4500, True)
wait 0

:WUZI2_6725
if 
  Camera.IsVectorTrackRunning
goto_if_false @WUZI2_6763
wait 0
gosub @WUZI2_9364
gosub @WUZI2_12194
goto @WUZI2_6725

:WUZI2_6763
TIMERA = 0

:WUZI2_6770
if 
  1000 > TIMERA
goto_if_false @WUZI2_6814
wait 0
gosub @WUZI2_9364
gosub @WUZI2_12194
goto @WUZI2_6770

:WUZI2_6814
skip_cutscene_end 
goto @WUZI2_7040

:WUZI2_6823
skip_cutscene_start_internal @WUZI2_7038
Camera.SetFixedPosition(-1568.742, 1385.366, 5.9871, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1569.707, 1385.126, 5.8767, SwitchType.JumpCut)
Text.PrintNow('WZI2_40', 6000, 1)
TIMERA = 0

:WUZI2_6904
if 
  6000 > TIMERA
goto_if_false @WUZI2_6934
wait 0
goto @WUZI2_6904

:WUZI2_6934
Camera.SetFixedPosition(-1494.649, 1350.358, 6.0727, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1495.164, 1349.516, 5.9146, SwitchType.JumpCut)
Text.PrintNow('WZI2_41', 6000, 1)
TIMERA = 0

:WUZI2_7008
if 
  6000 > TIMERA
goto_if_false @WUZI2_7038
wait 0
goto @WUZI2_7008

:WUZI2_7038
skip_cutscene_end 

:WUZI2_7040
Text.PrintNow('WZI2_8', 6000, 1)
if 
  not Car.IsDead(290@)
goto_if_false @WUZI2_7087
292@ = Blip.AddForCar(290@)
Blip.ChangeDisplay(292@, BlipDisplay.BlipOnly)

:WUZI2_7087
if 
  not Car.IsDead(291@)
goto_if_false @WUZI2_7118
293@ = Blip.AddForCar(291@)
Blip.ChangeDisplay(293@, BlipDisplay.BlipOnly)

:WUZI2_7118
407@ = Blip.AddForSearchlight(383@)
408@ = Blip.AddForSearchlight(384@)
409@ = Blip.AddForSearchlight(385@)
410@ = Blip.AddForSearchlight(386@)
if 
  not Car.IsDead(413@)
goto_if_false @WUZI2_7181
415@ = Blip.AddForCar(413@)
Blip.ChangeDisplay(415@, BlipDisplay.BlipOnly)

:WUZI2_7181
if 
  not Car.IsDead(414@)
goto_if_false @WUZI2_7212
416@ = Blip.AddForCar(414@)
Blip.ChangeDisplay(416@, BlipDisplay.BlipOnly)

:WUZI2_7212
Text.PrintNow('WZI2_8', 6000, 1)
$player_status_W2 = 1
288@ = 0
$player_breath_W2 = 0
Camera.ResetNewScriptables
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Char.ClearTasks($scplayer)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
283@ = 0

:WUZI2_7278
wait 0
37@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 38@ = 37@
sub_int_lvar_from_int_lvar 38@ -= 39@
set_lvar_int_to_lvar_int 39@ = 37@
add_int_lvar_to_int_lvar 288@ += 38@
add_int_lvar_to_int_var $7267[0] += 38@
add_int_lvar_to_int_var $7267[1] += 38@
if 
  373@ <> 2
goto_if_false @WUZI2_7459
gosub @WUZI2_8017
gosub @WUZI2_9364
gosub @WUZI2_12194
gosub @WUZI2_13003
gosub @WUZI2_14422
if 
  $attack_status_W2 > 35
goto_if_false @WUZI2_7438
if 
  284@ == 0
goto_if_false @WUZI2_7431
284@ = 1

:WUZI2_7431
gosub @WUZI2_20108

:WUZI2_7438
gosub @WUZI2_18290
gosub @WUZI2_16055
goto @WUZI2_7466

:WUZI2_7459
gosub @WUZI2_16700

:WUZI2_7466
gosub @WUZI2_20987
if 
  283@ == 0
goto_if_false @WUZI2_7597
if 
  Char.IsInWater($scplayer)
goto_if_false @WUZI2_7590
if 
  287@ == 0
goto_if_false @WUZI2_7590
if 
  Char.LocateOnFoot2D($scplayer, -1447.128, 1501.241, 6.0, 6.0, False)
goto_if_false @WUZI2_7590
Text.ClearHelp
Text.PrintHelpForever('WZI2_C0')
TIMERB = 0
283@ += 1

:WUZI2_7590
goto @WUZI2_8003

:WUZI2_7597
if 
  283@ == 1
goto_if_false @WUZI2_7723
if 
  TIMERB > 8000
goto_if_false @WUZI2_7636
Text.ClearHelp

:WUZI2_7636
if 
  not Char.IsInWater($scplayer)
goto_if_false @WUZI2_7716
if 
  Char.LocateOnFoot3D($scplayer, -1449.642, 1501.135, 0.7366, 2.0, 2.0, 2.0, False)
goto_if_false @WUZI2_7716
Text.ClearHelp
gosub @WUZI2_22319
283@ += 1

:WUZI2_7716
goto @WUZI2_8003

:WUZI2_7723
gosub @WUZI2_23872
gosub @WUZI2_24874
gosub @WUZI2_25427
if 
  48@ == 0
goto_if_false @WUZI2_7948
if 
  Char.LocateOnFoot3D($scplayer, -1372.733, 1495.55, 0.8578, 1.2, 1.2, 2.0, True)
goto_if_false @WUZI2_7941
if 
  522@ <> 2
goto_if_false @WUZI2_7925
Text.PrintNow('WZI2_30', 1000, 1)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @WUZI2_7918
Text.ClearPrints
Text.PrintNow('WZI2_32', 6000, 1)
Blip.Remove(36@)
36@ = Blip.AddForCoord(-1508.558, 1296.067, 0.397)
48@ = 1
gosub @WUZI2_18207

:WUZI2_7918
goto @WUZI2_7941

:WUZI2_7925
Text.PrintNow('WZI2_31', 3000, 1)

:WUZI2_7941
goto @WUZI2_8003

:WUZI2_7948
if 
  Char.LocateOnFoot3D($scplayer, -1508.558, 1296.067, 0.397, 1.2, 1.2, 2.0, True)
goto_if_false @WUZI2_8003
goto @WUZI2_26588

:WUZI2_8003
gosub @WUZI2_21524
goto @WUZI2_7278

:WUZI2_8017
287@ = 0
286@ = 0
if 
  Char.IsSwimming($scplayer)
goto_if_false @WUZI2_8329
285@ = Char.GetSwimState($scplayer)
if 
  is_int_lvar_equal_to_constant 285@ == 4
goto_if_false @WUZI2_8119
287@ = 1
if 
  0 >= $y_grid_pos_W2
goto_if_false @WUZI2_8112
$player_status_W2 = 1
$y_grid_pos_W2 = -2

:WUZI2_8112
goto @WUZI2_8144

:WUZI2_8119
if 
  is_int_lvar_equal_to_constant 285@ == 2
goto_if_false @WUZI2_8144
286@ = 1

:WUZI2_8144
if 
  289@ == 1
goto_if_false @WUZI2_8322
if or
  Char.IsInAngledArea2D($scplayer, -1559.287, 1337.199, -1562.583, 1327.257, -62.9096, False)
  Char.IsInAngledArea2D($scplayer, -1590.327, 1336.881, -1607.206, 1307.565, -37.0915, False)
  Char.IsInAngledArea2D($scplayer, -1616.574, 1319.336, -1632.86, 1303.452, -23.9075, False)
  Char.IsInAngledArea2D($scplayer, -1595.184, 1316.681, -1603.483, 1308.894, -8.3514, False)
goto_if_false @WUZI2_8315
289@ = 0
goto @WUZI2_8322

:WUZI2_8315
289@ = 2

:WUZI2_8322
goto @WUZI2_8377

:WUZI2_8329
if 
  289@ == 0
goto_if_false @WUZI2_8354
289@ = 1

:WUZI2_8354
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @WUZI2_8377
286@ = 1

:WUZI2_8377
return 

:WUZI2_8379
Path.SwitchRoadsOff(-1328.999, 1239.997, -5.0, -1655.868, 1638.755, 10.0)
World.ClearAreaOfCars(-1328.999, 1239.997, -5.0, -1655.868, 1638.755, 10.0)
331@ = -1605.0
332@ = -1565.0
333@ = -1525.0
334@ = -1485.0
335@ = -1445.0
336@ = -1405.0
337@ = -1365.0
338@ = 1315.0
339@ = 1355.0
340@ = 1395.0
341@ = 1435.0
342@ = 1475.0
343@ = -1585.0
344@ = -1545.0
345@ = -1505.0
346@ = -1465.0
347@ = -1425.0
348@ = -1385.0
349@ = 1335.0
350@ = 1375.0
351@ = 1415.0
352@ = 1455.0
$attack_status_W2 = 0
$p_current_square = -1
359@ = 40.0
357@ = 3.0
358@ = 0.1
290@ = Car.Create(454, -1585.0, 1375.0, 1.0)
Boat.Anchor(290@, True)
300@ = Char.CreateInsideCar(290@, PedType.Mission1, 121)
308@ = Char.Create(PedType.Mission1, 121, -1585.0, 1375.0, 4.0)
Char.AttachToCar(308@, 290@, 0.0, 9.0, 2.1, 0, 360.0, WeaponType.Ak47)
Task.StayInSamePlace(308@, True)
Char.SetAccuracy(308@, 80)
Char.SetShootRate(308@, 20)
322@ = 0.0
309@ = Char.Create(PedType.Mission1, 122, -1585.0, 1375.0, 4.0)
Char.AttachToCar(309@, 290@, -1.0, -1.0, 3.7, 0, 360.0, WeaponType.Ak47)
Task.StayInSamePlace(309@, True)
Char.SetAccuracy(309@, 80)
Char.SetShootRate(309@, 20)
323@ = -90.0
310@ = Char.Create(PedType.Mission1, 123, -1585.0, 1375.0, 4.0)
Char.AttachToCar(310@, 290@, 1.0, -4.0, 1.15, 0, 360.0, WeaponType.Ak47)
Task.StayInSamePlace(310@, True)
Char.SetAccuracy(310@, 80)
Char.SetShootRate(310@, 20)
324@ = 140.0
294@ = 0
296@ = 17
$help_text_flag_W2[0] = 0
291@ = Car.Create(454, -1505.0, 1335.0, 1.0)
Boat.Anchor(291@, True)
301@ = Char.CreateInsideCar(291@, PedType.Mission1, 121)
311@ = Char.Create(PedType.Mission1, 121, -1585.0, 1375.0, 4.0)
Char.AttachToCar(311@, 291@, 0.0, 9.0, 2.1, 0, 360.0, WeaponType.Ak47)
Task.StayInSamePlace(311@, True)
Char.SetAccuracy(311@, 80)
Char.SetShootRate(311@, 20)
325@ = 0.0
312@ = Char.Create(PedType.Mission1, 122, -1585.0, 1375.0, 4.0)
Char.AttachToCar(312@, 291@, -1.0, -1.0, 3.7, 0, 360.0, WeaponType.Ak47)
Task.StayInSamePlace(312@, True)
Char.SetAccuracy(312@, 80)
Char.SetShootRate(312@, 20)
326@ = -90.0
313@ = Char.Create(PedType.Mission1, 123, -1585.0, 1375.0, 4.0)
Char.AttachToCar(313@, 291@, 1.0, -4.0, 1.15, 0, 360.0, WeaponType.Ak47)
Task.StayInSamePlace(313@, True)
Char.SetAccuracy(313@, 80)
Char.SetShootRate(313@, 20)
327@ = 140.0
295@ = 0
297@ = 11
$help_text_flag_W2[1] = 0
$square_attack_status_W2 = 0
return 

:WUZI2_9364
$x, $y, $z = Char.GetCoordinates($scplayer)
$p_last_square = -1
$x_grid_pos_W2 = -1
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_9399
if 
  7 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_9469
if 
  is_float_lvar_greater_than_float_var 331@($d6_player_reached_sixth_creation_pt,7f) > $x
goto_if_false @WUZI2_9455
set_var_int_to_var_int $p_last_square = $d6_player_reached_sixth_creation_pt
$d6_player_reached_sixth_creation_pt = 7

:WUZI2_9455
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_9399

:WUZI2_9469
if 
  $p_last_square == -1
goto_if_false @WUZI2_9494
$p_last_square = 7

:WUZI2_9494
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_9501
if 
  5 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_9571
if 
  is_float_lvar_greater_than_float_var 338@($d6_player_reached_sixth_creation_pt,5f) > $y
goto_if_false @WUZI2_9557
set_var_int_to_var_int $x_grid_pos_W2 = $d6_player_reached_sixth_creation_pt
$d6_player_reached_sixth_creation_pt = 5

:WUZI2_9557
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_9501

:WUZI2_9571
if 
  $x_grid_pos_W2 == -1
goto_if_false @WUZI2_9596
$x_grid_pos_W2 = 5

:WUZI2_9596
$x_grid_pos_W2 *= 8
set_var_int_to_var_int $attack_status_W2 = $p_last_square
add_int_var_to_int_var $attack_status_W2 += $x_grid_pos_W2
if 
  not is_int_var_equal_to_int_var $attack_status_W2 == $p_current_square
goto_if_false @WUZI2_9653
gosub @WUZI2_9655
set_var_int_to_var_int $p_current_square = $attack_status_W2

:WUZI2_9653
return 

:WUZI2_9655
switch_start $attack_status_W2 {numCases} 48 {hasDefaultCase} 0 {defaultLabel} @WUZI2_12067 {caseNum1} 0 {caseLabel1} @WUZI2_10043 {caseNum2} 1 {caseLabel2} @WUZI2_10043 {caseNum3} 2 {caseLabel3} @WUZI2_10099 {caseNum4} 3 {caseLabel4} @WUZI2_10099 {caseNum5} 4 {caseLabel5} @WUZI2_10155 {caseNum6} 5 {caseLabel6} @WUZI2_10211 {caseNum7} 6 {caseLabel7} @WUZI2_10267
switch_continued 7 {caseLabel1} @WUZI2_10267 {caseNum2} 8 {caseLabel2} @WUZI2_10323 {caseNum3} 9 {caseLabel3} @WUZI2_10379 {caseNum4} 10 {caseLabel4} @WUZI2_10379 {caseNum5} 11 {caseLabel5} @WUZI2_10435 {caseNum6} 12 {caseLabel6} @WUZI2_10491 {caseNum7} 13 {caseLabel7} @WUZI2_10547 {caseNum8} 14 {caseLabel8} @WUZI2_10603 {caseNum9} 15 {caseLabel9} @WUZI2_10267
switch_continued 16 {caseLabel1} @WUZI2_10659 {caseNum2} 17 {caseLabel2} @WUZI2_10715 {caseNum3} 18 {caseLabel3} @WUZI2_10771 {caseNum4} 19 {caseLabel4} @WUZI2_10827 {caseNum5} 20 {caseLabel5} @WUZI2_10883 {caseNum6} 21 {caseLabel6} @WUZI2_10939 {caseNum7} 22 {caseLabel7} @WUZI2_11041 {caseNum8} 23 {caseLabel8} @WUZI2_11143 {caseNum9} 24 {caseLabel9} @WUZI2_11199
switch_continued 25 {caseLabel1} @WUZI2_11255 {caseNum2} 26 {caseLabel2} @WUZI2_11311 {caseNum3} 27 {caseLabel3} @WUZI2_11413 {caseNum4} 28 {caseLabel4} @WUZI2_11547 {caseNum5} 29 {caseLabel5} @WUZI2_11041 {caseNum6} 30 {caseLabel6} @WUZI2_10939 {caseNum7} 31 {caseLabel7} @WUZI2_11603 {caseNum8} 32 {caseLabel8} @WUZI2_11659 {caseNum9} 33 {caseLabel9} @WUZI2_11715
switch_continued 34 {caseLabel1} @WUZI2_11413 {caseNum2} 35 {caseLabel2} @WUZI2_11311 {caseNum3} 36 {caseLabel3} @WUZI2_11803 {caseNum4} 37 {caseLabel4} @WUZI2_11891 {caseNum5} 38 {caseLabel5} @WUZI2_11979 {caseNum6} 39 {caseLabel6} @WUZI2_11979 {caseNum7} 40 {caseLabel7} @WUZI2_11659 {caseNum8} 41 {caseLabel8} @WUZI2_11659 {caseNum9} 42 {caseLabel9} @WUZI2_11715
switch_continued 43 {caseLabel1} @WUZI2_11803 {caseNum2} 44 {caseLabel2} @WUZI2_11803 {caseNum3} 45 {caseLabel3} @WUZI2_11891 {caseNum4} 46 {caseLabel4} @WUZI2_11979 {caseNum5} 47 {caseLabel5} @WUZI2_11979 {caseNum6} -1 {caseLabel6} @WUZI2_12067 {caseNum7} -1 {caseLabel7} @WUZI2_12067 {caseNum8} -1 {caseLabel8} @WUZI2_12067 {caseNum9} -1 {caseLabel9} @WUZI2_12067

:WUZI2_10043
360@ = 17
362@ = 0
364@ = 1
361@ = 11
363@ = 2
365@ = 0
$7269 = -1
goto @WUZI2_12067

:WUZI2_10099
360@ = 18
362@ = 1
364@ = 1
361@ = 11
363@ = 2
365@ = 0
$7269 = 4
goto @WUZI2_12067

:WUZI2_10155
360@ = 18
362@ = 1
364@ = 1
361@ = 12
363@ = 3
365@ = 0
$7269 = 4
goto @WUZI2_12067

:WUZI2_10211
360@ = 18
362@ = 1
364@ = 1
361@ = 13
363@ = 4
365@ = 0
$7269 = 4
goto @WUZI2_12067

:WUZI2_10267
360@ = 18
362@ = 1
364@ = 1
361@ = 14
363@ = 5
365@ = 0
$7269 = 4
goto @WUZI2_12067

:WUZI2_10323
360@ = 17
362@ = 0
364@ = 1
361@ = 11
363@ = 2
365@ = 0
$7269 = 3
goto @WUZI2_12067

:WUZI2_10379
360@ = 18
362@ = 1
364@ = 1
361@ = 11
363@ = 2
365@ = 0
$7269 = 5
goto @WUZI2_12067

:WUZI2_10435
360@ = 18
362@ = 1
364@ = 1
361@ = 12
363@ = 3
365@ = 0
$7269 = 2
goto @WUZI2_12067

:WUZI2_10491
360@ = 18
362@ = 1
364@ = 1
361@ = 20
363@ = 3
365@ = 1
$7269 = 1
goto @WUZI2_12067

:WUZI2_10547
360@ = 18
362@ = 1
364@ = 1
361@ = 21
363@ = 4
365@ = 1
$7269 = 1
goto @WUZI2_12067

:WUZI2_10603
360@ = 18
362@ = 1
364@ = 1
361@ = 22
363@ = 5
365@ = 1
$7269 = 1
goto @WUZI2_12067

:WUZI2_10659
360@ = 17
362@ = 0
364@ = 1
361@ = 20
363@ = 3
365@ = 1
$7269 = 3
goto @WUZI2_12067

:WUZI2_10715
360@ = 25
362@ = 0
364@ = 2
361@ = 20
363@ = 3
365@ = 1
$7269 = 0
goto @WUZI2_12067

:WUZI2_10771
360@ = 26
362@ = 1
364@ = 2
361@ = 20
363@ = 3
365@ = 1
$7269 = 0
goto @WUZI2_12067

:WUZI2_10827
360@ = 27
362@ = 2
364@ = 2
361@ = 20
363@ = 3
365@ = 1
$7269 = 2
goto @WUZI2_12067

:WUZI2_10883
360@ = 27
362@ = 2
364@ = 2
361@ = 28
363@ = 3
365@ = 2
$7269 = 1
goto @WUZI2_12067

:WUZI2_10939
360@ = 27
362@ = 2
364@ = 2
if 
  $p_current_square == 29
goto_if_false @WUZI2_11006
361@ = 22
363@ = 5
365@ = 1
goto @WUZI2_11027

:WUZI2_11006
361@ = 29
363@ = 4
365@ = 2

:WUZI2_11027
$7269 = 1
goto @WUZI2_12067

:WUZI2_11041
360@ = 27
362@ = 2
364@ = 2
if 
  $p_current_square == 30
goto_if_false @WUZI2_11108
361@ = 21
363@ = 4
365@ = 1
goto @WUZI2_11129

:WUZI2_11108
361@ = 30
363@ = 5
365@ = 2

:WUZI2_11129
$7269 = 1
goto @WUZI2_12067

:WUZI2_11143
360@ = 27
362@ = 2
364@ = 2
361@ = 22
363@ = 5
365@ = 1
$7269 = 4
goto @WUZI2_12067

:WUZI2_11199
360@ = 25
362@ = 0
364@ = 2
361@ = 28
363@ = 3
365@ = 2
$7269 = 3
goto @WUZI2_12067

:WUZI2_11255
360@ = 33
362@ = 0
364@ = 3
361@ = 28
363@ = 3
365@ = 2
$7269 = 0
goto @WUZI2_12067

:WUZI2_11311
if 
  $p_current_square == 34
goto_if_false @WUZI2_11357
360@ = 27
362@ = 2
364@ = 2
goto @WUZI2_11378

:WUZI2_11357
360@ = 34
362@ = 1
364@ = 3

:WUZI2_11378
361@ = 28
363@ = 3
365@ = 2
$7269 = 0
goto @WUZI2_12067

:WUZI2_11413
if 
  $p_current_square == 35
goto_if_false @WUZI2_11459
360@ = 26
362@ = 1
364@ = 2
goto @WUZI2_11480

:WUZI2_11459
360@ = 35
362@ = 2
364@ = 3

:WUZI2_11480
361@ = 28
363@ = 3
365@ = 2
if 
  $attack_status_W2 == 27
goto_if_false @WUZI2_11533
$7269 = 2
goto @WUZI2_11540

:WUZI2_11533
$7269 = 0

:WUZI2_11540
goto @WUZI2_12067

:WUZI2_11547
360@ = 27
362@ = 2
364@ = 2
361@ = 29
363@ = 4
365@ = 2
$7269 = 2
goto @WUZI2_12067

:WUZI2_11603
360@ = 27
362@ = 2
364@ = 2
361@ = 30
363@ = 5
365@ = 2
$7269 = 4
goto @WUZI2_12067

:WUZI2_11659
360@ = 33
362@ = 0
364@ = 3
361@ = 28
363@ = 3
365@ = 2
$7269 = 3
goto @WUZI2_12067

:WUZI2_11715
360@ = 34
362@ = 1
364@ = 3
361@ = 28
363@ = 3
365@ = 2
if 
  $7269 == 33
goto_if_false @WUZI2_11789
$7269 = 0
goto @WUZI2_11796

:WUZI2_11789
$7269 = 3

:WUZI2_11796
goto @WUZI2_12067

:WUZI2_11803
360@ = 35
362@ = 2
364@ = 3
361@ = 28
363@ = 3
365@ = 2
if 
  $7269 == 36
goto_if_false @WUZI2_11877
$7269 = 5
goto @WUZI2_11884

:WUZI2_11877
$7269 = 3

:WUZI2_11884
goto @WUZI2_12067

:WUZI2_11891
360@ = 35
362@ = 2
364@ = 3
361@ = 29
363@ = 4
365@ = 2
if 
  $7269 == 37
goto_if_false @WUZI2_11965
$7269 = 4
goto @WUZI2_11972

:WUZI2_11965
$7269 = -1

:WUZI2_11972
goto @WUZI2_12067

:WUZI2_11979
360@ = 35
362@ = 2
364@ = 3
361@ = 30
363@ = 5
365@ = 2
if 
  40 > $7269
goto_if_false @WUZI2_12053
$7269 = 4
goto @WUZI2_12060

:WUZI2_12053
$7269 = -1

:WUZI2_12060
goto @WUZI2_12067

:WUZI2_12067
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_12074
if 
  2 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_12192
if 
  not is_int_lvar_equal_to_int_lvar 296@($d6_player_reached_sixth_creation_pt,2i) == 360@($d6_player_reached_sixth_creation_pt,2i)
goto_if_false @WUZI2_12178
set_lvar_int_to_lvar_int 353@($d6_player_reached_sixth_creation_pt,2i) = 362@($d6_player_reached_sixth_creation_pt,2i)
set_lvar_int_to_lvar_int 355@($d6_player_reached_sixth_creation_pt,2i) = 364@($d6_player_reached_sixth_creation_pt,2i)
294@($d6_player_reached_sixth_creation_pt,2i) = 1
set_lvar_int_to_lvar_int 296@($d6_player_reached_sixth_creation_pt,2i) = 360@($d6_player_reached_sixth_creation_pt,2i)

:WUZI2_12178
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_12074

:WUZI2_12192
return 

:WUZI2_12194
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_12201
if 
  2 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_13001
if 
  not Car.IsDead(290@($d6_player_reached_sixth_creation_pt,2i))
goto_if_false @WUZI2_12987
switch_start 294@($d6_player_reached_sixth_creation_pt,2i) {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WUZI2_12987 {caseNum1} 1 {caseLabel1} @WUZI2_12306 {caseNum2} 2 {caseLabel2} @WUZI2_12417 {caseNum3} 3 {caseLabel3} @WUZI2_12882 {caseNum4} -1 {caseLabel4} @WUZI2_12987 {caseNum5} -1 {caseLabel5} @WUZI2_12987 {caseNum6} -1 {caseLabel6} @WUZI2_12987 {caseNum7} -1 {caseLabel7} @WUZI2_12987

:WUZI2_12306
set_lvar_int_to_lvar_int 366@ = 353@($d6_player_reached_sixth_creation_pt,2i)
set_lvar_int_to_lvar_int 367@ = 355@($d6_player_reached_sixth_creation_pt,2i)
Boat.Anchor(290@($d6_player_reached_sixth_creation_pt,2i), False)
Boat.Goto(290@($d6_player_reached_sixth_creation_pt,2i), 343@(366@,6f), 349@(367@,4f), 0.0)
Boat.SetCruiseSpeed(290@($d6_player_reached_sixth_creation_pt,2i), 7.0)
314@($d6_player_reached_sixth_creation_pt,2f) = Car.GetSpeed(290@($d6_player_reached_sixth_creation_pt,2i))
294@($d6_player_reached_sixth_creation_pt,2i) += 1
goto @WUZI2_12987

:WUZI2_12417
set_lvar_int_to_lvar_int 366@ = 353@($d6_player_reached_sixth_creation_pt,2i)
set_lvar_int_to_lvar_int 367@ = 355@($d6_player_reached_sixth_creation_pt,2i)
if 
  Car.Locate2D(290@($d6_player_reached_sixth_creation_pt,2i), 343@(366@,6f), 349@(367@,4f), 8.0, 8.0, False)
goto_if_false @WUZI2_12521
314@($d6_player_reached_sixth_creation_pt,2f) = Car.GetSpeed(290@($d6_player_reached_sixth_creation_pt,2i))
294@($d6_player_reached_sixth_creation_pt,2i) += 1
goto @WUZI2_12875

:WUZI2_12521
if 
  is_float_lvar_greater_than_float_lvar 357@ > 314@($d6_player_reached_sixth_creation_pt,2f)
goto_if_false @WUZI2_12572
add_float_lvar_to_float_lvar 314@($d6_player_reached_sixth_creation_pt,2f) += 358@
Car.SetForwardSpeed(290@($d6_player_reached_sixth_creation_pt,2i), 314@($d6_player_reached_sixth_creation_pt,2f))

:WUZI2_12572
316@($d6_player_reached_sixth_creation_pt,2f), 318@($d6_player_reached_sixth_creation_pt,2f), $z = Car.GetCoordinates(290@($d6_player_reached_sixth_creation_pt,2i))
320@($d6_player_reached_sixth_creation_pt,2f) = Car.GetHeading(290@($d6_player_reached_sixth_creation_pt,2i))
set_var_float_to_lvar_float $x = 343@(366@,6f)
sub_float_lvar_from_float_var $x -= 316@($d6_player_reached_sixth_creation_pt,2f)
set_var_float_to_lvar_float $y = 349@(367@,4f)
sub_float_lvar_from_float_var $y -= 318@($d6_player_reached_sixth_creation_pt,2f)

:WUZI2_12662
if 
  320@($d6_player_reached_sixth_creation_pt,2f) >= 180.0
goto_if_false @WUZI2_12708
320@($d6_player_reached_sixth_creation_pt,2f) += -360.0
goto @WUZI2_12662

:WUZI2_12708
$heading = Math.GetHeadingFromVector2D($x, $y)

:WUZI2_12719
if 
  $heading >= 180.0
goto_if_false @WUZI2_12757
$heading += -360.0
goto @WUZI2_12719

:WUZI2_12757
set_var_float_to_var_float $z = $heading
sub_float_lvar_from_float_var $z -= 320@($d6_player_reached_sixth_creation_pt,2f)
if 
  -180.0 >= $z
goto_if_false @WUZI2_12808
$z += 360.0

:WUZI2_12808
if 
  $z >= 180.0
goto_if_false @WUZI2_12839
$z += -360.0

:WUZI2_12839
div_float_var_by_float_lvar $z /= 359@
add_float_var_to_float_lvar 320@($d6_player_reached_sixth_creation_pt,2f) += $z
Car.SetHeading(290@($d6_player_reached_sixth_creation_pt,2i), 320@($d6_player_reached_sixth_creation_pt,2f))

:WUZI2_12875
goto @WUZI2_12987

:WUZI2_12882
sub_float_lvar_from_float_lvar 314@($d6_player_reached_sixth_creation_pt,2f) -= 358@
Car.SetForwardSpeed(290@($d6_player_reached_sixth_creation_pt,2i), 314@($d6_player_reached_sixth_creation_pt,2f))
if 
  2.5 > 314@($d6_player_reached_sixth_creation_pt,2f)
goto_if_false @WUZI2_12980
Car.SetForwardSpeed(290@($d6_player_reached_sixth_creation_pt,2i), 1.0)
Boat.Stop(290@($d6_player_reached_sixth_creation_pt,2i))
Boat.Anchor(290@($d6_player_reached_sixth_creation_pt,2i), True)
294@($d6_player_reached_sixth_creation_pt,2i) = 0

:WUZI2_12980
goto @WUZI2_12987

:WUZI2_12987
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_12201

:WUZI2_13001
return 

:WUZI2_13003
$d6_player_reached_sixth_creation_pt = 0
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)

:WUZI2_13024
if 
  2 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_14314
if 
  not Car.IsDead(290@($d6_player_reached_sixth_creation_pt,2i))
goto_if_false @WUZI2_14238
368@($d6_player_reached_sixth_creation_pt,2i) = 0
switch_start $d6_player_reached_sixth_creation_pt {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @WUZI2_13399 {caseNum1} 0 {caseLabel1} @WUZI2_13136 {caseNum2} 1 {caseLabel2} @WUZI2_13278 {caseNum3} -1 {caseLabel3} @WUZI2_13399 {caseNum4} -1 {caseLabel4} @WUZI2_13399 {caseNum5} -1 {caseLabel5} @WUZI2_13399 {caseNum6} -1 {caseLabel6} @WUZI2_13399 {caseNum7} -1 {caseLabel7} @WUZI2_13399

:WUZI2_13136
if or
  $7269 == 0
  $7269 == 2
goto_if_false @WUZI2_13179
368@($d6_player_reached_sixth_creation_pt,2i) = 1
goto @WUZI2_13271

:WUZI2_13179
if or
  $7269 == 3
  $7269 == 5
goto_if_false @WUZI2_13271
$x, $y, $z = Car.GetCoordinates(290@($d6_player_reached_sixth_creation_pt,2i))
$distance = Math.GetDistanceBetweenCoords2D($player_x, $player_y, $x, $y)
if 
  29.0 > $distance
goto_if_false @WUZI2_13271
368@($d6_player_reached_sixth_creation_pt,2i) = 1

:WUZI2_13271
goto @WUZI2_13399

:WUZI2_13278
if or
  $7269 == 1
  $7269 == 2
goto_if_false @WUZI2_13321
368@($d6_player_reached_sixth_creation_pt,2i) = 1
goto @WUZI2_13392

:WUZI2_13321
if or
  $7269 == 4
  $7269 == 5
goto_if_false @WUZI2_13392
if 
  Char.LocateAnyMeansCar2D($scplayer, 290@($d6_player_reached_sixth_creation_pt,2i), 30.0, 30.0, False)
goto_if_false @WUZI2_13392
368@($d6_player_reached_sixth_creation_pt,2i) = 1

:WUZI2_13392
goto @WUZI2_13399

:WUZI2_13399
switch_start $help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @WUZI2_14231 {caseNum1} 0 {caseLabel1} @WUZI2_13466 {caseNum2} 1 {caseLabel2} @WUZI2_13732 {caseNum3} 2 {caseLabel3} @WUZI2_13841 {caseNum4} 3 {caseLabel4} @WUZI2_13986 {caseNum5} 4 {caseLabel5} @WUZI2_14136 {caseNum6} -1 {caseLabel6} @WUZI2_14231 {caseNum7} -1 {caseLabel7} @WUZI2_14231

:WUZI2_13466
if 
  $player_status_W2 == 0
goto_if_false @WUZI2_13725
if or
  368@($d6_player_reached_sixth_creation_pt,2i) == 0
  287@ == 1
goto_if_false @WUZI2_13639
set_var_int_to_var_int $pointer4_W2 = $d6_player_reached_sixth_creation_pt
$pointer4_W2 *= 3
set_var_int_to_var_int $guard_pointer_W2 = $pointer4_W2
$guard_pointer_W2 += 3

:WUZI2_13543
if 
  is_int_var_greater_than_int_var $guard_pointer_W2 > $pointer4_W2
goto_if_false @WUZI2_13632
if 
  not Char.IsDead(308@($pointer4_W2,6i))
goto_if_false @WUZI2_13618
set_var_float_to_lvar_float $heading = 320@($d6_player_reached_sixth_creation_pt,2f)
sub_float_lvar_from_float_var $heading -= 322@($pointer4_W2,6f)
Char.SetHeading(308@($pointer4_W2,6i), $heading)

:WUZI2_13618
$pointer4_W2 += 1
goto @WUZI2_13543

:WUZI2_13632
goto @WUZI2_13725

:WUZI2_13639
if or
  286@ == 1
  $y_grid_pos_W2 >= 3
goto_if_false @WUZI2_13689
gosub @WUZI2_14316
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) = 3
goto @WUZI2_13725

:WUZI2_13689
if 
  0 >= $y_grid_pos_W2
goto_if_false @WUZI2_13714
288@ = 0

:WUZI2_13714
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) += 1

:WUZI2_13725
goto @WUZI2_14231

:WUZI2_13732
if or
  368@($d6_player_reached_sixth_creation_pt,2i) == 0
  287@ == 1
goto_if_false @WUZI2_13790
$7267($d6_player_reached_sixth_creation_pt,2i) = 0
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) += 1
goto @WUZI2_13834

:WUZI2_13790
if or
  288@ > 6000
  286@ == 1
goto_if_false @WUZI2_13834
gosub @WUZI2_14316
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) = 3

:WUZI2_13834
goto @WUZI2_14231

:WUZI2_13841
if or
  368@($d6_player_reached_sixth_creation_pt,2i) == 0
  287@ == 1
goto_if_false @WUZI2_13911
if 
  $7267($d6_player_reached_sixth_creation_pt,2i) > 3000
goto_if_false @WUZI2_13904
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) = 0

:WUZI2_13904
goto @WUZI2_13979

:WUZI2_13911
if and
  3 > $y_grid_pos_W2
  286@ == 0
goto_if_false @WUZI2_13961
288@ = 0
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) -= 1
goto @WUZI2_13979

:WUZI2_13961
gosub @WUZI2_14316
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) = 3

:WUZI2_13979
goto @WUZI2_14231

:WUZI2_13986
if or
  368@($d6_player_reached_sixth_creation_pt,2i) == 0
  287@ == 1
goto_if_false @WUZI2_14129
set_var_int_to_var_int $pointer4_W2 = $d6_player_reached_sixth_creation_pt
$pointer4_W2 *= 3
set_var_int_to_var_int $guard_pointer_W2 = $pointer4_W2
$guard_pointer_W2 += 3

:WUZI2_14045
if 
  is_int_var_greater_than_int_var $guard_pointer_W2 > $pointer4_W2
goto_if_false @WUZI2_14107
if 
  not Char.IsDead(308@($pointer4_W2,6i))
goto_if_false @WUZI2_14093
Char.ClearTasks(308@($pointer4_W2,6i))

:WUZI2_14093
$pointer4_W2 += 1
goto @WUZI2_14045

:WUZI2_14107
$7267($d6_player_reached_sixth_creation_pt,2i) = 0
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) += 1

:WUZI2_14129
goto @WUZI2_14231

:WUZI2_14136
if or
  368@($d6_player_reached_sixth_creation_pt,2i) == 0
  287@ == 1
goto_if_false @WUZI2_14206
if 
  $7267($d6_player_reached_sixth_creation_pt,2i) > 5000
goto_if_false @WUZI2_14199
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) = 0

:WUZI2_14199
goto @WUZI2_14224

:WUZI2_14206
gosub @WUZI2_14316
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) = 3

:WUZI2_14224
goto @WUZI2_14231

:WUZI2_14231
goto @WUZI2_14300

:WUZI2_14238
if 
  Blip.DoesExist(292@($d6_player_reached_sixth_creation_pt,2i))
goto_if_false @WUZI2_14267
Blip.Remove(292@($d6_player_reached_sixth_creation_pt,2i))

:WUZI2_14267
if 
  $help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) <> 0
goto_if_false @WUZI2_14300
$help_text_flag_W2($d6_player_reached_sixth_creation_pt,2i) = 0

:WUZI2_14300
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_13024

:WUZI2_14314
return 

:WUZI2_14316
set_var_int_to_var_int $pointer4_W2 = $d6_player_reached_sixth_creation_pt
$pointer4_W2 *= 3
set_var_int_to_var_int $guard_pointer_W2 = $pointer4_W2
$guard_pointer_W2 += 3

:WUZI2_14346
if 
  is_int_var_greater_than_int_var $guard_pointer_W2 > $pointer4_W2
goto_if_false @WUZI2_14420
if 
  not Char.IsDead(308@($pointer4_W2,6i))
goto_if_false @WUZI2_14406
Char.ClearTasks(308@($pointer4_W2,6i))
Task.KillCharOnFoot(308@($pointer4_W2,6i), $scplayer)

:WUZI2_14406
$pointer4_W2 += 1
goto @WUZI2_14346

:WUZI2_14420
return 

:WUZI2_14422
switch_start $y_grid_pos_W2 {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @WUZI2_15489 {caseNum1} -2 {caseLabel1} @WUZI2_14485 {caseNum2} -1 {caseLabel2} @WUZI2_14531 {caseNum3} 0 {caseLabel3} @WUZI2_14586 {caseNum4} 1 {caseLabel4} @WUZI2_14742 {caseNum5} 2 {caseLabel5} @WUZI2_14919 {caseNum6} 3 {caseLabel6} @WUZI2_15124 {caseNum7} 4 {caseLabel7} @WUZI2_15248

:WUZI2_14485
if 
  287@ == 0
goto_if_false @WUZI2_14524
370@, 371@, $z = Char.GetCoordinates($scplayer)
$y_grid_pos_W2 = -1

:WUZI2_14524
goto @WUZI2_15489

:WUZI2_14531
if 
  not Char.LocateOnFoot2D($scplayer, 370@, 371@, 2.5, 2.5, False)
goto_if_false @WUZI2_14579
$player_status_W2 = 0
$y_grid_pos_W2 = 0

:WUZI2_14579
goto @WUZI2_15489

:WUZI2_14586
if or
  $help_text_flag_W2[0] > 0
  $help_text_flag_W2[1] > 0
goto_if_false @WUZI2_14735
if and
  3 > $help_text_flag_W2[0]
  3 > $help_text_flag_W2[1]
goto_if_false @WUZI2_14689
123@ = 0
gosub @WUZI2_17920
$y_grid_pos_W2 = 1
if 
  $player_breath_W2 == 0
goto_if_false @WUZI2_14682
$player_breath_W2 = 1

:WUZI2_14682
goto @WUZI2_14735

:WUZI2_14689
123@ = 18
gosub @WUZI2_17920
$y_grid_pos_W2 = 3
if 
  $player_breath_W2 == 0
goto_if_false @WUZI2_14735
$player_breath_W2 = 1

:WUZI2_14735
goto @WUZI2_15489

:WUZI2_14742
if or
  $help_text_flag_W2[0] >= 3
  $help_text_flag_W2[1] >= 3
goto_if_false @WUZI2_14795
123@ = 18
gosub @WUZI2_17920
$y_grid_pos_W2 = 3
goto @WUZI2_14912

:WUZI2_14795
if and
  $help_text_flag_W2[0] <> 1
  $help_text_flag_W2[1] <> 1
goto_if_false @WUZI2_14912
if or
  $help_text_flag_W2[0] == 2
  $help_text_flag_W2[1] == 2
goto_if_false @WUZI2_14859
$y_grid_pos_W2 = 2
goto @WUZI2_14912

:WUZI2_14859
if or
  $help_text_flag_W2[0] == 0
  $help_text_flag_W2[1] == 0
goto_if_false @WUZI2_14912
123@ = 9
gosub @WUZI2_17920
$player_status_W2 = 1
$y_grid_pos_W2 = -2

:WUZI2_14912
goto @WUZI2_15489

:WUZI2_14919
if or
  $help_text_flag_W2[0] >= 3
  $help_text_flag_W2[1] >= 3
goto_if_false @WUZI2_14972
123@ = 18
gosub @WUZI2_17920
$y_grid_pos_W2 = 3
goto @WUZI2_15117

:WUZI2_14972
if and
  $help_text_flag_W2[0] <> 2
  $help_text_flag_W2[1] <> 2
goto_if_false @WUZI2_15117
if or
  $help_text_flag_W2[0] == 1
  $help_text_flag_W2[1] == 1
goto_if_false @WUZI2_15057
123@ = 0
gosub @WUZI2_18052
gosub @WUZI2_17920
$y_grid_pos_W2 = 1
goto @WUZI2_15117

:WUZI2_15057
if or
  $help_text_flag_W2[0] == 0
  $help_text_flag_W2[1] == 0
goto_if_false @WUZI2_15117
123@ = 9
gosub @WUZI2_17920
gosub @WUZI2_18052
$player_status_W2 = 1
$y_grid_pos_W2 = -2

:WUZI2_15117
goto @WUZI2_15489

:WUZI2_15124
if and
  $help_text_flag_W2[0] <> 3
  $help_text_flag_W2[1] <> 3
goto_if_false @WUZI2_15241
if or
  $help_text_flag_W2[0] == 4
  $help_text_flag_W2[1] == 4
goto_if_false @WUZI2_15241
123@ = 27
if 
  $help_text_flag_W2[0] == 4
goto_if_false @WUZI2_15213
125@ = 0
goto @WUZI2_15220

:WUZI2_15213
125@ = 1

:WUZI2_15220
gosub @WUZI2_17920
$y_grid_pos_W2 = 4
gosub @WUZI2_18052

:WUZI2_15241
goto @WUZI2_15489

:WUZI2_15248
if and
  $help_text_flag_W2[0] <> 4
  $help_text_flag_W2[1] <> 4
goto_if_false @WUZI2_15482
if or
  $help_text_flag_W2[0] == 3
  $help_text_flag_W2[1] == 3
goto_if_false @WUZI2_15429
if 
  $help_text_flag_W2[0] == 3
goto_if_false @WUZI2_15362
if 
  125@ == 0
goto_if_false @WUZI2_15348
123@ = 45
goto @WUZI2_15355

:WUZI2_15348
123@ = 45

:WUZI2_15355
goto @WUZI2_15401

:WUZI2_15362
if 
  125@ == 1
goto_if_false @WUZI2_15394
123@ = 45
goto @WUZI2_15401

:WUZI2_15394
123@ = 45

:WUZI2_15401
gosub @WUZI2_18052
gosub @WUZI2_17920
$y_grid_pos_W2 = 3
goto @WUZI2_15482

:WUZI2_15429
if and
  $help_text_flag_W2[0] == 0
  $help_text_flag_W2[1] == 0
goto_if_false @WUZI2_15482
123@ = 36
gosub @WUZI2_17920
$player_status_W2 = 1
$y_grid_pos_W2 = -2

:WUZI2_15482
goto @WUZI2_15489

:WUZI2_15489
switch_start $player_breath_W2 {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @WUZI2_16053 {caseNum1} 0 {caseLabel1} @WUZI2_15552 {caseNum2} 1 {caseLabel2} @WUZI2_15602 {caseNum3} 2 {caseLabel3} @WUZI2_15634 {caseNum4} 3 {caseLabel4} @WUZI2_15737 {caseNum5} 4 {caseLabel5} @WUZI2_15840 {caseNum6} 5 {caseLabel6} @WUZI2_15943 {caseNum7} -1 {caseLabel7} @WUZI2_16053

:WUZI2_15552
if 
  284@ == 1
goto_if_false @WUZI2_15595
Text.PrintHelpForever('WZI2_42')
TIMERB = 0
284@ += 1

:WUZI2_15595
goto @WUZI2_16053

:WUZI2_15602
Text.PrintHelpForever('WZI2_36')
TIMERB = 0
$player_breath_W2 += 1
goto @WUZI2_16053

:WUZI2_15634
if 
  TIMERB > 6000
goto_if_false @WUZI2_15730
Text.ClearHelp
if 
  284@ == 1
goto_if_false @WUZI2_15705
Text.PrintHelpForever('WZI2_42')
TIMERB = 0
284@ += 1
goto @WUZI2_15730

:WUZI2_15705
Text.PrintHelpForever('WZI2_37')
TIMERB = 0
$player_breath_W2 += 1

:WUZI2_15730
goto @WUZI2_16053

:WUZI2_15737
if 
  TIMERB > 6000
goto_if_false @WUZI2_15833
Text.ClearHelp
if 
  284@ == 1
goto_if_false @WUZI2_15808
Text.PrintHelpForever('WZI2_42')
TIMERB = 0
284@ += 1
goto @WUZI2_15833

:WUZI2_15808
Text.PrintHelpForever('WZI2_38')
TIMERB = 0
$player_breath_W2 += 1

:WUZI2_15833
goto @WUZI2_16053

:WUZI2_15840
if 
  TIMERB > 6000
goto_if_false @WUZI2_15936
Text.ClearHelp
if 
  284@ == 1
goto_if_false @WUZI2_15911
Text.PrintHelpForever('WZI2_42')
TIMERB = 0
284@ += 1
goto @WUZI2_15936

:WUZI2_15911
Text.PrintHelpForever('WZI2_39')
TIMERB = 0
$player_breath_W2 += 1

:WUZI2_15936
goto @WUZI2_16053

:WUZI2_15943
if 
  TIMERB > 6000
goto_if_false @WUZI2_16046
Text.ClearHelp
if 
  284@ == 1
goto_if_false @WUZI2_16021
Text.PrintHelpForever('WZI2_42')
TIMERB = 0
284@ += 1
$player_breath_W2 += 1
goto @WUZI2_16046

:WUZI2_16021
if 
  284@ == 2
goto_if_false @WUZI2_16046
$player_breath_W2 += 1

:WUZI2_16046
goto @WUZI2_16053

:WUZI2_16053
return 

:WUZI2_16055
372@ = 0

:WUZI2_16062
if 
  6 > 372@
goto_if_false @WUZI2_16179
if 
  not Char.IsDead(308@(372@,6i))
goto_if_false @WUZI2_16158
if 
  Char.HasBeenDamagedByChar(308@(372@,6i), $scplayer)
goto_if_false @WUZI2_16144
373@ = 1
372@ = 6
goto @WUZI2_16151

:WUZI2_16144
372@ += 1

:WUZI2_16151
goto @WUZI2_16172

:WUZI2_16158
373@ = 1
372@ = 6

:WUZI2_16172
goto @WUZI2_16062

:WUZI2_16179
if 
  373@ == 0
goto_if_false @WUZI2_16321
372@ = 0

:WUZI2_16204
if 
  6 > 372@
goto_if_false @WUZI2_16321
if 
  not Char.IsDead(417@(372@,6i))
goto_if_false @WUZI2_16300
if 
  Char.HasBeenDamagedByChar(417@(372@,6i), $scplayer)
goto_if_false @WUZI2_16286
373@ = 1
372@ = 6
goto @WUZI2_16293

:WUZI2_16286
372@ += 1

:WUZI2_16293
goto @WUZI2_16314

:WUZI2_16300
373@ = 1
372@ = 6

:WUZI2_16314
goto @WUZI2_16204

:WUZI2_16321
if 
  373@ == 1
goto_if_false @WUZI2_16353
gosub @WUZI2_16355
373@ = 2

:WUZI2_16353
return 

:WUZI2_16355
Text.ClearHelp
Text.ClearPrints
if 
  not Car.IsDead(290@)
goto_if_false @WUZI2_16406
if 
  not Blip.DoesExist(292@)
goto_if_false @WUZI2_16406
292@ = Blip.AddForCar(290@)
Blip.ChangeDisplay(292@, BlipDisplay.BlipOnly)

:WUZI2_16406
if 
  not Car.IsDead(291@)
goto_if_false @WUZI2_16453
if 
  not Blip.DoesExist(293@)
goto_if_false @WUZI2_16453
293@ = Blip.AddForCar(291@)
Blip.ChangeDisplay(293@, BlipDisplay.BlipOnly)

:WUZI2_16453
if 
  not Car.IsDead(413@)
goto_if_false @WUZI2_16500
if 
  not Blip.DoesExist(415@)
goto_if_false @WUZI2_16500
415@ = Blip.AddForCar(413@)
Blip.ChangeDisplay(415@, BlipDisplay.BlipOnly)

:WUZI2_16500
if 
  not Car.IsDead(414@)
goto_if_false @WUZI2_16547
if 
  not Blip.DoesExist(416@)
goto_if_false @WUZI2_16547
416@ = Blip.AddForCar(414@)
Blip.ChangeDisplay(416@, BlipDisplay.BlipOnly)

:WUZI2_16547
372@ = 0

:WUZI2_16554
if 
  6 > 372@
goto_if_false @WUZI2_16670
if 
  not Char.IsDead(308@(372@,6i))
goto_if_false @WUZI2_16614
Char.SetAccuracy(308@(372@,6i), 80)
Char.SetShootRate(308@(372@,6i), 50)

:WUZI2_16614
if 
  not Char.IsDead(417@(372@,6i))
goto_if_false @WUZI2_16656
Char.SetAccuracy(417@(372@,6i), 80)
Char.SetShootRate(417@(372@,6i), 50)

:WUZI2_16656
372@ += 1
goto @WUZI2_16554

:WUZI2_16670
374@ = 0
375@ = 0
376@ = 0
377@ = 0
return 

:WUZI2_16700
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if 
  not Car.IsDead(290@)
goto_if_false @WUZI2_16994
if 
  374@ == 0
goto_if_false @WUZI2_16883
if 
  Car.Locate2D(290@, $player_x, $player_y, 75.0, 75.0, False)
goto_if_false @WUZI2_16876
if 
  not Char.IsDead(308@)
goto_if_false @WUZI2_16811
Char.ClearTasks(308@)
Task.KillCharOnFoot(308@, $scplayer)

:WUZI2_16811
if 
  not Char.IsDead(309@)
goto_if_false @WUZI2_16840
Char.ClearTasks(309@)
Task.KillCharOnFoot(309@, $scplayer)

:WUZI2_16840
if 
  not Char.IsDead(310@)
goto_if_false @WUZI2_16869
Char.ClearTasks(310@)
Task.KillCharOnFoot(310@, $scplayer)

:WUZI2_16869
374@ = 1

:WUZI2_16876
goto @WUZI2_16987

:WUZI2_16883
if 
  not Car.Locate2D(290@, $player_x, $player_y, 85.0, 85.0, False)
goto_if_false @WUZI2_16987
if 
  not Char.IsDead(308@)
goto_if_false @WUZI2_16938
Char.ClearTasks(308@)

:WUZI2_16938
if 
  not Char.IsDead(309@)
goto_if_false @WUZI2_16959
Char.ClearTasks(309@)

:WUZI2_16959
if 
  not Char.IsDead(310@)
goto_if_false @WUZI2_16980
Char.ClearTasks(310@)

:WUZI2_16980
374@ = 0

:WUZI2_16987
goto @WUZI2_17015

:WUZI2_16994
if 
  Blip.DoesExist(292@)
goto_if_false @WUZI2_17015
Blip.Remove(292@)

:WUZI2_17015
if 
  not Car.IsDead(291@)
goto_if_false @WUZI2_17295
if 
  375@ == 0
goto_if_false @WUZI2_17184
if 
  Car.Locate2D(291@, $player_x, $player_y, 75.0, 75.0, False)
goto_if_false @WUZI2_17177
if 
  not Char.IsDead(311@)
goto_if_false @WUZI2_17112
Char.ClearTasks(311@)
Task.KillCharOnFoot(311@, $scplayer)

:WUZI2_17112
if 
  not Char.IsDead(312@)
goto_if_false @WUZI2_17141
Char.ClearTasks(312@)
Task.KillCharOnFoot(312@, $scplayer)

:WUZI2_17141
if 
  not Char.IsDead(313@)
goto_if_false @WUZI2_17170
Char.ClearTasks(313@)
Task.KillCharOnFoot(313@, $scplayer)

:WUZI2_17170
375@ = 1

:WUZI2_17177
goto @WUZI2_17288

:WUZI2_17184
if 
  not Car.Locate2D(291@, $player_x, $player_y, 85.0, 85.0, False)
goto_if_false @WUZI2_17288
if 
  not Char.IsDead(311@)
goto_if_false @WUZI2_17239
Char.ClearTasks(311@)

:WUZI2_17239
if 
  not Char.IsDead(312@)
goto_if_false @WUZI2_17260
Char.ClearTasks(312@)

:WUZI2_17260
if 
  not Char.IsDead(313@)
goto_if_false @WUZI2_17281
Char.ClearTasks(313@)

:WUZI2_17281
375@ = 0

:WUZI2_17288
goto @WUZI2_17316

:WUZI2_17295
if 
  Blip.DoesExist(293@)
goto_if_false @WUZI2_17316
Blip.Remove(293@)

:WUZI2_17316
if 
  not Car.IsDead(413@)
goto_if_false @WUZI2_17596
if 
  376@ == 0
goto_if_false @WUZI2_17485
if 
  Car.Locate2D(413@, $player_x, $player_y, 75.0, 75.0, False)
goto_if_false @WUZI2_17478
if 
  not Char.IsDead(417@)
goto_if_false @WUZI2_17413
Char.ClearTasks(417@)
Task.KillCharOnFoot(417@, $scplayer)

:WUZI2_17413
if 
  not Char.IsDead(418@)
goto_if_false @WUZI2_17442
Char.ClearTasks(418@)
Task.KillCharOnFoot(418@, $scplayer)

:WUZI2_17442
if 
  not Char.IsDead(419@)
goto_if_false @WUZI2_17471
Char.ClearTasks(419@)
Task.KillCharOnFoot(419@, $scplayer)

:WUZI2_17471
376@ = 1

:WUZI2_17478
goto @WUZI2_17589

:WUZI2_17485
if 
  not Car.Locate2D(413@, $player_x, $player_y, 85.0, 85.0, False)
goto_if_false @WUZI2_17589
if 
  not Char.IsDead(417@)
goto_if_false @WUZI2_17540
Char.ClearTasks(417@)

:WUZI2_17540
if 
  not Char.IsDead(418@)
goto_if_false @WUZI2_17561
Char.ClearTasks(418@)

:WUZI2_17561
if 
  not Char.IsDead(419@)
goto_if_false @WUZI2_17582
Char.ClearTasks(419@)

:WUZI2_17582
376@ = 0

:WUZI2_17589
goto @WUZI2_17617

:WUZI2_17596
if 
  Blip.DoesExist(415@)
goto_if_false @WUZI2_17617
Blip.Remove(415@)

:WUZI2_17617
if 
  not Car.IsDead(414@)
goto_if_false @WUZI2_17897
if 
  377@ == 0
goto_if_false @WUZI2_17786
if 
  Car.Locate2D(414@, $player_x, $player_y, 75.0, 75.0, False)
goto_if_false @WUZI2_17779
if 
  not Char.IsDead(420@)
goto_if_false @WUZI2_17714
Char.ClearTasks(420@)
Task.KillCharOnFoot(420@, $scplayer)

:WUZI2_17714
if 
  not Char.IsDead(421@)
goto_if_false @WUZI2_17743
Char.ClearTasks(421@)
Task.KillCharOnFoot(421@, $scplayer)

:WUZI2_17743
if 
  not Char.IsDead(422@)
goto_if_false @WUZI2_17772
Char.ClearTasks(422@)
Task.KillCharOnFoot(422@, $scplayer)

:WUZI2_17772
377@ = 1

:WUZI2_17779
goto @WUZI2_17890

:WUZI2_17786
if 
  not Car.Locate2D(414@, $player_x, $player_y, 85.0, 85.0, False)
goto_if_false @WUZI2_17890
if 
  not Char.IsDead(420@)
goto_if_false @WUZI2_17841
Char.ClearTasks(420@)

:WUZI2_17841
if 
  not Char.IsDead(421@)
goto_if_false @WUZI2_17862
Char.ClearTasks(421@)

:WUZI2_17862
if 
  not Char.IsDead(422@)
goto_if_false @WUZI2_17883
Char.ClearTasks(422@)

:WUZI2_17883
377@ = 0

:WUZI2_17890
goto @WUZI2_17918

:WUZI2_17897
if 
  Blip.DoesExist(416@)
goto_if_false @WUZI2_17918
Blip.Remove(416@)

:WUZI2_17918
return 

:WUZI2_17920
set_lvar_int_to_lvar_int 57@ = 122@
57@ *= 3
add_int_lvar_to_int_lvar 57@ += 121@
add_int_lvar_to_int_lvar 57@ += 123@
if 
  368@ == 1
goto_if_false @WUZI2_17984
set_lvar_int_to_lvar_int 378@ = 121@
goto @WUZI2_17999

:WUZI2_17984
set_lvar_int_to_lvar_int 378@ = 121@
378@ += 3

:WUZI2_17999
set_var_int_to_lvar_int $load_sample = 58@(57@,63i)
set_var_text_label s$load_text = 127@(57@,63s)
start_new_script @A_ALAP 2 124@ 308@(378@,6i) 
124@ += 1
return 

:WUZI2_18052
121@ += 1
if 
  121@ == 3
goto_if_false @WUZI2_18116
121@ = 0
122@ += 1
if 
  122@ == 3
goto_if_false @WUZI2_18116
122@ = 0

:WUZI2_18116
return 

:WUZI2_18118
380@, 381@, 381@ = Char.GetWeaponInSlot($scplayer, WeaponSlot.Melee)
if 
  is_int_lvar_equal_to_constant 380@ == 0
goto_if_false @WUZI2_18166
379@ = 0
goto @WUZI2_18205

:WUZI2_18166
if 
  is_int_lvar_equal_to_constant 380@ == 4
goto_if_false @WUZI2_18198
379@ = 1
goto @WUZI2_18205

:WUZI2_18198
379@ = 2

:WUZI2_18205
return 

:WUZI2_18207
$pointer4_W2 = 0

:WUZI2_18214
if 
  6 > $pointer4_W2
goto_if_false @WUZI2_18288
if 
  not Char.IsDead(308@($pointer4_W2,6i))
goto_if_false @WUZI2_18274
Char.SetAccuracy(308@($pointer4_W2,6i), 30)
Char.SetShootRate(308@($pointer4_W2,6i), 30)

:WUZI2_18274
$pointer4_W2 += 1
goto @WUZI2_18214

:WUZI2_18288
return 

:WUZI2_18290
if 
  382@ == 1
goto_if_false @WUZI2_18640
if and
is_ps2_keyboard_key_pressed 10
  TIMERB > 200
goto_if_false @WUZI2_18345
TIMERB = 0
382@ = 0

:WUZI2_18345
Debugger.Line(331@, 338@, 2.0, 337@, 338@, 2.0)
Debugger.Line(331@, 339@, 2.0, 337@, 339@, 2.0)
Debugger.Line(331@, 340@, 2.0, 337@, 340@, 2.0)
Debugger.Line(331@, 341@, 2.0, 337@, 341@, 2.0)
Debugger.Line(331@, 342@, 2.0, 337@, 342@, 2.0)
Debugger.Line(331@, 338@, 2.0, 331@, 342@, 2.0)
Debugger.Line(332@, 338@, 2.0, 332@, 342@, 2.0)
Debugger.Line(333@, 338@, 2.0, 333@, 342@, 2.0)
Debugger.Line(334@, 338@, 2.0, 334@, 342@, 2.0)
Debugger.Line(335@, 338@, 2.0, 335@, 342@, 2.0)
Debugger.Line(336@, 338@, 2.0, 336@, 342@, 2.0)
Debugger.Line(337@, 338@, 2.0, 337@, 342@, 2.0)
goto @WUZI2_18695

:WUZI2_18640
if 
  382@ == 0
goto_if_false @WUZI2_18695
if and
is_ps2_keyboard_key_pressed 10
  TIMERB > 200
goto_if_false @WUZI2_18695
TIMERB = 0
382@ = 1

:WUZI2_18695
return 

:WUZI2_18697
383@ = Searchlight.Create(-1474.145, 1484.038, 11.3824, -1465.154, 1463.004, -0.5, 25.0, 1.0)
389@ = Object.CreateNoOffset(#A51_SPOTBASE, -1474.145, 1484.038, 10.8824)
Object.SetHeading(389@, 326.1907)
395@ = Object.CreateNoOffset(#A51_SPOTHOUSING, -1474.145, 1484.038, 10.8824)
401@ = Object.CreateNoOffset(#A51_SPOTBULB, -1474.145, 1484.038, 10.8824)
Searchlight.AttachToObject(383@, 389@, 395@, 401@, 0.0, 1.181, 0.768)
Object.SetHealth(401@, 1000)
Searchlight.MoveBetweenCoords(383@, -1465.154, 1463.004, -0.5, -1489.672, 1472.111, -0.5, 0.1)
Searchlight.SetClipIfColliding(383@, False)
428@ = 0
384@ = Searchlight.Create(-1474.198, 1494.927, 11.6265, -1459.363, 1514.413, -0.5, 25.0, 1.0)
390@ = Object.CreateNoOffset(#A51_SPOTBASE, -1474.198, 1494.927, 10.8824)
Object.SetHeading(390@, 34.4591)
396@ = Object.CreateNoOffset(#A51_SPOTHOUSING, -1474.198, 1494.927, 10.8824)
402@ = Object.CreateNoOffset(#A51_SPOTBULB, -1474.198, 1494.927, 10.8824)
Searchlight.AttachToObject(384@, 390@, 396@, 402@, 0.0, 1.181, 0.768)
Object.SetHealth(402@, 1000)
Searchlight.MoveBetweenCoords(384@, -1459.363, 1514.413, -0.5, -1491.379, 1501.309, -0.5, 0.08)
Searchlight.SetClipIfColliding(384@, False)
429@ = 0
385@ = Searchlight.Create(-1369.279, 1484.219, 14.3425, -1351.937, 1504.435, -0.5, 25.0, 1.0)
391@ = Object.CreateNoOffset(#A51_SPOTBASE, -1369.279, 1484.219, 13.8425)
Object.SetHeading(391@, 32.5701)
397@ = Object.CreateNoOffset(#A51_SPOTHOUSING, -1369.279, 1484.219, 13.8425)
403@ = Object.CreateNoOffset(#A51_SPOTBULB, -1369.279, 1484.219, 13.8425)
Searchlight.AttachToObject(385@, 391@, 397@, 403@, 0.0, 1.181, 0.768)
Object.SetHealth(403@, 1000)
Searchlight.MoveBetweenCoords(385@, -1347.143, 1476.63, -0.5, -1370.499, 1465.479, -0.5, 0.08)
Searchlight.SetClipIfColliding(385@, False)
430@ = 0
386@ = Searchlight.Create(-1368.467, 1494.225, 14.3425, -1347.143, 1476.63, -0.5, 25.0, 1.0)
392@ = Object.CreateNoOffset(#A51_SPOTBASE, -1368.467, 1494.225, 13.8425)
Object.SetHeading(392@, 327.3304)
398@ = Object.CreateNoOffset(#A51_SPOTHOUSING, -1368.467, 1494.225, 13.8425)
404@ = Object.CreateNoOffset(#A51_SPOTBULB, -1368.467, 1494.225, 13.8425)
Searchlight.AttachToObject(386@, 392@, 398@, 404@, 0.0, 1.181, 0.768)
Object.SetHealth(404@, 1000)
Searchlight.MoveBetweenCoords(386@, -1351.937, 1504.435, -0.5, -1377.028, 1515.729, -0.5, 0.1)
Searchlight.SetClipIfColliding(386@, False)
431@ = 0
413@ = Car.Create(454, -1491.662, 1488.5, 1.0)
Car.SetHeading(413@, 180.0)
Boat.Anchor(413@, True)
417@ = Char.Create(PedType.Mission1, 123, -1521.0, 1492.0, 5.0)
Char.AttachToCar(417@, 413@, 0.0, 9.0, 2.1, 0, 360.0, WeaponType.Ak47)
Task.StayInSamePlace(417@, True)
Char.SetAccuracy(417@, 80)
Char.SetShootRate(417@, 20)
418@ = Char.Create(PedType.Mission1, 122, -1521.0, 1492.0, 5.0)
Char.AttachToCar(418@, 413@, -1.0, -1.0, 3.7, 0, 360.0, WeaponType.Ak47)
Task.StayInSamePlace(418@, True)
Char.SetAccuracy(418@, 80)
Char.SetShootRate(418@, 20)
419@ = Char.Create(PedType.Mission1, 121, -1521.0, 1492.0, 5.0)
Char.AttachToCar(419@, 413@, 1.0, -4.0, 1.15, 0, 360.0, WeaponType.Ak47)
Task.StayInSamePlace(419@, True)
Char.SetAccuracy(419@, 80)
Char.SetShootRate(419@, 20)
414@ = Car.Create(454, -1350.12, 1488.5, 1.0)
Car.SetHeading(414@, 0.0)
Boat.Anchor(414@, True)
420@ = Char.Create(PedType.Mission1, 123, -1322.0, 1489.5, 5.0)
Char.AttachToCar(420@, 414@, 0.0, 9.0, 2.1, 0, 360.0, WeaponType.Ak47)
Task.StayInSamePlace(420@, True)
Char.SetAccuracy(420@, 80)
Char.SetShootRate(420@, 20)
421@ = Char.Create(PedType.Mission1, 122, -1322.0, 1489.5, 5.0)
Char.AttachToCar(421@, 414@, -1.0, -1.0, 3.7, 0, 360.0, WeaponType.Ak47)
Task.StayInSamePlace(421@, True)
Char.SetAccuracy(421@, 80)
Char.SetShootRate(421@, 20)
422@ = Char.Create(PedType.Mission1, 121, -1322.0, 1489.5, 5.0)
Char.AttachToCar(422@, 414@, 1.0, -4.0, 1.15, 0, 360.0, WeaponType.Ak47)
Task.StayInSamePlace(422@, True)
Char.SetAccuracy(422@, 80)
Char.SetShootRate(422@, 20)
423@ = 0
return 

:WUZI2_20108
switch_start 423@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @WUZI2_20689 {caseNum1} 0 {caseLabel1} @WUZI2_20171 {caseNum2} 1 {caseLabel2} @WUZI2_20483 {caseNum3} -1 {caseLabel3} @WUZI2_20689 {caseNum4} -1 {caseLabel4} @WUZI2_20689 {caseNum5} -1 {caseLabel5} @WUZI2_20689 {caseNum6} -1 {caseLabel6} @WUZI2_20689 {caseNum7} -1 {caseLabel7} @WUZI2_20689

:WUZI2_20171
if 
  287@ == 0
goto_if_false @WUZI2_20476
if 
  not 424@ = Char.IsInAnySearchlight($scplayer)
goto_if_false @WUZI2_20392
if 
  not Char.IsInWater($scplayer)
goto_if_false @WUZI2_20378
if 
  not Car.IsDead(413@)
goto_if_false @WUZI2_20301
if 
  Char.IsTouchingVehicle($scplayer, 413@)
goto_if_false @WUZI2_20301
123@ = 18
gosub @WUZI2_17920
425@ = 0
gosub @WUZI2_20691
423@ = 1
goto @WUZI2_20689

:WUZI2_20301
if 
  not Car.IsDead(414@)
goto_if_false @WUZI2_20371
if 
  Char.IsTouchingVehicle($scplayer, 414@)
goto_if_false @WUZI2_20371
123@ = 18
gosub @WUZI2_17920
425@ = 1
gosub @WUZI2_20691
423@ = 1

:WUZI2_20371
goto @WUZI2_20385

:WUZI2_20378
goto @WUZI2_20689

:WUZI2_20385
goto @WUZI2_20476

:WUZI2_20392
123@ = 18
gosub @WUZI2_17920
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if 
  -1430.0 > $player_x
goto_if_false @WUZI2_20455
425@ = 0
goto @WUZI2_20462

:WUZI2_20455
425@ = 1

:WUZI2_20462
gosub @WUZI2_20691
423@ = 1

:WUZI2_20476
goto @WUZI2_20689

:WUZI2_20483
if 
  not Car.IsDead(413@(425@,2i))
goto_if_false @WUZI2_20661
if 
  287@ == 0
goto_if_false @WUZI2_20612
$x, $y, $z = Car.GetCoordinates(413@(425@,2i))
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
$distance = Math.GetDistanceBetweenCoords2D($x, $y, $player_x, $player_y)
if 
  55.0 > $distance
goto_if_false @WUZI2_20598
goto @WUZI2_20689

:WUZI2_20598
123@ = 36
goto @WUZI2_20619

:WUZI2_20612
123@ = 27

:WUZI2_20619
gosub @WUZI2_17920
425@ += 2
gosub @WUZI2_20691
gosub @WUZI2_18052
423@ = 0
goto @WUZI2_20682

:WUZI2_20661
425@ += 2
gosub @WUZI2_20691
423@ = 0

:WUZI2_20682
goto @WUZI2_20689

:WUZI2_20689
return 

:WUZI2_20691
427@ = 0
switch_start 425@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @WUZI2_20985 {caseNum1} 0 {caseLabel1} @WUZI2_20761 {caseNum2} 1 {caseLabel2} @WUZI2_20873 {caseNum3} 2 {caseLabel3} @WUZI2_20761 {caseNum4} 3 {caseLabel4} @WUZI2_20873 {caseNum5} -1 {caseLabel5} @WUZI2_20985 {caseNum6} -1 {caseLabel6} @WUZI2_20985 {caseNum7} -1 {caseLabel7} @WUZI2_20985

:WUZI2_20761
426@ = 0

:WUZI2_20768
if 
  3 > 426@
goto_if_false @WUZI2_20866
if 
  not Char.IsDead(417@(426@,6i))
goto_if_false @WUZI2_20852
Char.ClearTasks(417@(426@,6i))
if 
  425@ == 0
goto_if_false @WUZI2_20845
Task.KillCharOnFoot(417@(426@,6i), $scplayer)

:WUZI2_20845
427@ += 1

:WUZI2_20852
426@ += 1
goto @WUZI2_20768

:WUZI2_20866
goto @WUZI2_20985

:WUZI2_20873
426@ = 3

:WUZI2_20880
if 
  6 > 426@
goto_if_false @WUZI2_20978
if 
  not Char.IsDead(417@(426@,6i))
goto_if_false @WUZI2_20964
Char.ClearTasks(417@(426@,6i))
if 
  425@ == 1
goto_if_false @WUZI2_20957
Task.KillCharOnFoot(417@(426@,6i), $scplayer)

:WUZI2_20957
427@ += 1

:WUZI2_20964
426@ += 1
goto @WUZI2_20880

:WUZI2_20978
goto @WUZI2_20985

:WUZI2_20985
return 

:WUZI2_20987
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_20994
if 
  4 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_21117
if and
  428@($d6_player_reached_sixth_creation_pt,6i) == 0
  Object.DoesExist(401@($d6_player_reached_sixth_creation_pt,6i))
goto_if_false @WUZI2_21103
434@ = Object.GetHealth(401@($d6_player_reached_sixth_creation_pt,6i))
if 
  1000 > 434@
goto_if_false @WUZI2_21103
Searchlight.Delete(383@($d6_player_reached_sixth_creation_pt,6i))
Blip.Remove(407@($d6_player_reached_sixth_creation_pt,6i))
428@($d6_player_reached_sixth_creation_pt,6i) += 1

:WUZI2_21103
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_20994

:WUZI2_21117
return 
if 
  $help_text_switch_W2 > 0
goto_if_false @WUZI2_21497
if and
  $help_text_switch_W2 == 1
  $y_grid_pos_W2 > 0
goto_if_false @WUZI2_21229
if and
  TIMERB > 6500
  4 > $swim_stamina_check
goto_if_false @WUZI2_21195
$swim_stamina_check += 1

:WUZI2_21195
Text.ClearHelp
Text.PrintHelpForever('WZI2_B4')
TIMERB = 0
$help_text_switch_W2 += 1
goto @WUZI2_21490

:WUZI2_21229
if 
  5 > $swim_stamina_check
goto_if_false @WUZI2_21490
switch_start $swim_stamina_check {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @WUZI2_21439 {caseNum1} -2 {caseLabel1} @WUZI2_21310 {caseNum2} -1 {caseLabel2} @WUZI2_21347 {caseNum3} 4 {caseLabel3} @WUZI2_21404 {caseNum4} -1 {caseLabel4} @WUZI2_21490 {caseNum5} -1 {caseLabel5} @WUZI2_21490 {caseNum6} -1 {caseLabel6} @WUZI2_21490 {caseNum7} -1 {caseLabel7} @WUZI2_21490

:WUZI2_21310
Text.PrintNow('WZI2_8', 7000, 1)
TIMERB = 0
$swim_stamina_check += 1
goto @WUZI2_21490

:WUZI2_21347
if 
  TIMERB > 7000
goto_if_false @WUZI2_21397
Text.PrintNow('WZI2_9', 8000, 1)
TIMERB = 6500
$swim_stamina_check += 1

:WUZI2_21397
goto @WUZI2_21490

:WUZI2_21404
if 
  TIMERB > 8000
goto_if_false @WUZI2_21432
Text.ClearHelp
$swim_stamina_check += 1

:WUZI2_21432
goto @WUZI2_21490

:WUZI2_21439
if 
  TIMERB > 8000
goto_if_false @WUZI2_21483
Text.ClearHelp
Text.PrintHelpForever(260@($swim_stamina_check,8s))
TIMERB = 0
$swim_stamina_check += 1

:WUZI2_21483
goto @WUZI2_21490

:WUZI2_21490
goto @WUZI2_21522

:WUZI2_21497
if 
  287@ == 0
goto_if_false @WUZI2_21522
$help_text_switch_W2 = 1

:WUZI2_21522
return 

:WUZI2_21524
switch_start 435@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @WUZI2_21723 {caseNum1} 0 {caseLabel1} @WUZI2_21587 {caseNum2} 1 {caseLabel2} @WUZI2_21679 {caseNum3} -1 {caseLabel3} @WUZI2_21723 {caseNum4} -1 {caseLabel4} @WUZI2_21723 {caseNum5} -1 {caseLabel5} @WUZI2_21723 {caseNum6} -1 {caseLabel6} @WUZI2_21723 {caseNum7} -1 {caseLabel7} @WUZI2_21723

:WUZI2_21587
if 
  not Char.IsInWater($scplayer)
goto_if_false @WUZI2_21672
if 
  Char.IsInArea3D($scplayer, -1491.319, 1505.334, 0.0, -1352.436, 1475.738, 15.0, False)
goto_if_false @WUZI2_21672
gosub @WUZI2_22064
435@ += 1
goto @WUZI2_21723

:WUZI2_21672
goto @WUZI2_21723

:WUZI2_21679
if 
  Char.IsInWater($scplayer)
goto_if_false @WUZI2_21716
gosub @WUZI2_21725
435@ -= 1
goto @WUZI2_21723

:WUZI2_21716
goto @WUZI2_21723

:WUZI2_21723
return 

:WUZI2_21725
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_21732
if 
  5 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_21773
Blip.Remove(443@($d6_player_reached_sixth_creation_pt,8i))
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_21732

:WUZI2_21773
Hud.SetRadarZoom(0)
if 
  not Car.IsDead(290@)
goto_if_false @WUZI2_21824
if 
  not Blip.DoesExist(292@)
goto_if_false @WUZI2_21824
292@ = Blip.AddForCar(290@)
Blip.ChangeDisplay(292@, BlipDisplay.BlipOnly)

:WUZI2_21824
if 
  not Car.IsDead(291@)
goto_if_false @WUZI2_21871
if 
  not Blip.DoesExist(293@)
goto_if_false @WUZI2_21871
293@ = Blip.AddForCar(291@)
Blip.ChangeDisplay(293@, BlipDisplay.BlipOnly)

:WUZI2_21871
if 
  not Car.IsDead(413@)
goto_if_false @WUZI2_21918
if 
  not Blip.DoesExist(415@)
goto_if_false @WUZI2_21918
415@ = Blip.AddForCar(413@)
Blip.ChangeDisplay(415@, BlipDisplay.BlipOnly)

:WUZI2_21918
if 
  not Car.IsDead(414@)
goto_if_false @WUZI2_21965
if 
  not Blip.DoesExist(416@)
goto_if_false @WUZI2_21965
416@ = Blip.AddForCar(414@)
Blip.ChangeDisplay(416@, BlipDisplay.BlipOnly)

:WUZI2_21965
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_21972
if 
  4 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_22062
if 
  428@($d6_player_reached_sixth_creation_pt,6i) == 0
goto_if_false @WUZI2_22048
if 
  not Blip.DoesExist(407@($d6_player_reached_sixth_creation_pt,6i))
goto_if_false @WUZI2_22048
407@($d6_player_reached_sixth_creation_pt,6i) = Blip.AddForSearchlight(383@($d6_player_reached_sixth_creation_pt,6i))

:WUZI2_22048
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_21972

:WUZI2_22062
return 

:WUZI2_22064
if 
  not Car.IsDead(290@)
goto_if_false @WUZI2_22085
Blip.Remove(292@)

:WUZI2_22085
if 
  not Car.IsDead(291@)
goto_if_false @WUZI2_22106
Blip.Remove(293@)

:WUZI2_22106
if 
  not Car.IsDead(413@)
goto_if_false @WUZI2_22127
Blip.Remove(415@)

:WUZI2_22127
if 
  not Car.IsDead(414@)
goto_if_false @WUZI2_22148
Blip.Remove(416@)

:WUZI2_22148
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_22155
if 
  4 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_22196
Blip.Remove(407@($d6_player_reached_sixth_creation_pt,6i))
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_22155

:WUZI2_22196
Hud.SetRadarZoom(90)
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_22207
if 
  5 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_22317
if 
  not Char.IsDead(436@($d6_player_reached_sixth_creation_pt,7i))
goto_if_false @WUZI2_22303
if 
  not Blip.DoesExist(443@($d6_player_reached_sixth_creation_pt,8i))
goto_if_false @WUZI2_22303
443@($d6_player_reached_sixth_creation_pt,8i) = Blip.AddForChar(436@($d6_player_reached_sixth_creation_pt,7i))
Blip.ChangeDisplay(443@($d6_player_reached_sixth_creation_pt,8i), BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(443@($d6_player_reached_sixth_creation_pt,8i), True)

:WUZI2_22303
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_22207

:WUZI2_22317
return 

:WUZI2_22319
Text.ClearHelp
Text.ClearPrints
if 
  379@ == 0
goto_if_false @WUZI2_22346
Pickup.Remove(258@)

:WUZI2_22346
gosub @WUZI2_18118
if 
  379@ <> 1
goto_if_false @WUZI2_22398
258@ = Pickup.CreateWithAmmo(335, PickupType.Once, 1, -1456.289, 1497.905, 6.7)

:WUZI2_22398
Blip.Remove(36@)
36@ = Blip.AddForCoord(-1372.733, 1495.55, 0.8578)
466@ = -1442.207
470@ = 1489.462
474@ = 6.1016
478@ = 270.0
467@ = -1402.308
471@ = 1486.719
475@ = 6.0938
479@ = 301.3607
468@ = -1382.657
472@ = 1480.446
476@ = 7.5625
480@ = 180.0
469@ = -1370.584
473@ = 1486.74
477@ = 10.0313
481@ = 347.1257
436@ = Char.Create(PedType.Mission2, 121, 466@, 470@, 474@)
Char.SetHeading(436@, 478@)
Char.GiveWeapon(436@, WeaponType.Knife, 1)
Char.SetCurrentWeapon(436@, WeaponType.Knife)
Char.SetDecisionMaker(436@, 34@)
443@ = Blip.AddForChar(436@)
Blip.ChangeDisplay(443@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(443@, True)
Char.SetShootRate(436@, 80)
Char.SetSenseRange(436@, 80.0)
451@ = 0
437@ = Char.Create(PedType.Mission2, 122, 467@, 471@, 475@)
Char.SetHeading(437@, 479@)
Char.GiveWeapon(437@, WeaponType.Knife, 1)
Char.SetCurrentWeapon(437@, WeaponType.Knife)
Char.SetDecisionMaker(437@, 34@)
444@ = Blip.AddForChar(437@)
Blip.ChangeDisplay(444@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(444@, True)
Char.SetShootRate(437@, 80)
Char.SetSenseRange(437@, 80.0)
452@ = 0
438@ = Char.Create(PedType.Mission2, 123, 468@, 472@, 476@)
Char.SetHeading(438@, 480@)
Char.GiveWeapon(438@, WeaponType.Knife, 1)
Char.SetCurrentWeapon(438@, WeaponType.Knife)
Char.SetDecisionMaker(438@, 34@)
445@ = Blip.AddForChar(438@)
Blip.ChangeDisplay(445@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(445@, True)
Char.SetShootRate(438@, 80)
Char.SetSenseRange(438@, 80.0)
453@ = 0
439@ = Char.Create(PedType.Mission2, 121, 469@, 473@, 477@)
Char.SetHeading(439@, 481@)
Char.GiveWeapon(439@, WeaponType.Knife, 1)
Char.SetCurrentWeapon(439@, WeaponType.Knife)
Char.SetDecisionMaker(439@, 34@)
446@ = Blip.AddForChar(439@)
Blip.ChangeDisplay(446@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(446@, True)
Char.SetShootRate(439@, 80)
Char.SetSenseRange(439@, 80.0)
454@ = 0
482@ = -1415.15
492@ = 1489.33
502@ = 6.1092
512@ = 274.6376
483@ = -1393.05
493@ = 1490.035
503@ = 6.1016
513@ = 273.1324
484@ = -1377.694
494@ = 1494.01
504@ = 0.8594
514@ = 268.1749
485@ = -1384.855
495@ = 1493.904
505@ = 0.8594
515@ = 86.0142
486@ = -1433.38
496@ = 1483.448
506@ = 0.625
516@ = 272.9424
487@ = -1393.022
497@ = 1483.625
507@ = 0.625
517@ = 266.08
488@ = -1392.567
498@ = 1496.273
508@ = 0.6312
518@ = 163.775
489@ = -1423.06
499@ = 1496.289
509@ = 0.625
519@ = 134.281
490@ = -1423.291
500@ = 1491.614
510@ = 0.625
520@ = 172.1411
491@ = -1433.231
501@ = 1488.718
511@ = 0.625
521@ = 106.1638
458@ = 0
462@ = 1
set_var_int_to_lvar_int $pointer_W2 = 458@
440@ = Char.Create(PedType.Mission2, 123, 482@($pointer_W2,10f), 492@($pointer_W2,10f), 502@($pointer_W2,10f))
Char.SetHeading(440@, 512@($pointer_W2,10f))
Char.GiveWeapon(440@, WeaponType.Knife, 1)
Char.SetCurrentWeapon(440@, WeaponType.Knife)
Char.SetDecisionMaker(440@, 34@)
447@ = Blip.AddForChar(440@)
Blip.ChangeDisplay(447@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(447@, True)
Char.SetShootRate(440@, 80)
Char.SetSenseRange(440@, 80.0)
455@ = 0
459@ = 2
463@ = 3
set_var_int_to_lvar_int $pointer_W2 = 459@
441@ = Char.Create(PedType.Mission2, 122, 482@($pointer_W2,10f), 492@($pointer_W2,10f), 502@($pointer_W2,10f))
Char.SetHeading(441@, 512@($pointer_W2,10f))
Char.GiveWeapon(441@, WeaponType.Knife, 1)
Char.SetCurrentWeapon(441@, WeaponType.Knife)
Char.SetDecisionMaker(441@, 34@)
448@ = Blip.AddForChar(441@)
Blip.ChangeDisplay(448@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(448@, True)
Char.SetShootRate(441@, 80)
Char.SetSenseRange(441@, 80.0)
456@ = 0
460@ = 4
464@ = 9
set_var_int_to_lvar_int $pointer_W2 = 460@
442@ = Char.Create(PedType.Mission2, 121, 482@($pointer_W2,10f), 492@($pointer_W2,10f), 502@($pointer_W2,10f))
Char.SetHeading(442@, 512@($pointer_W2,10f))
Char.GiveWeapon(442@, WeaponType.Knife, 1)
Char.SetCurrentWeapon(442@, WeaponType.Knife)
Char.SetDecisionMaker(442@, 34@)
449@ = Blip.AddForChar(442@)
Blip.ChangeDisplay(449@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(449@, True)
Char.SetShootRate(442@, 80)
Char.SetSenseRange(442@, 80.0)
457@ = 0
Text.PrintNow('WZI2_35', 7000, 1)
522@ = 0
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_23799
if 
  4 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_23863
if 
  not Char.IsDead(436@($d6_player_reached_sixth_creation_pt,7i))
goto_if_false @WUZI2_23849
Char.SetDecisionMaker(436@($d6_player_reached_sixth_creation_pt,7i), 34@)

:WUZI2_23849
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_23799

:WUZI2_23863
283@ = 1
return 

:WUZI2_23872
$d6_player_reached_sixth_creation_pt = 0
530@ = 0
531@ = 0
531@ = 0

:WUZI2_23900
if 
  7 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_24617
if 
  not Char.IsDead(436@($d6_player_reached_sixth_creation_pt,7i))
goto_if_false @WUZI2_24561
switch_start 523@($d6_player_reached_sixth_creation_pt,7i) {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WUZI2_24554 {caseNum1} 0 {caseLabel1} @WUZI2_24005 {caseNum2} 1 {caseLabel2} @WUZI2_24237 {caseNum3} 2 {caseLabel3} @WUZI2_24419 {caseNum4} -1 {caseLabel4} @WUZI2_24554 {caseNum5} -1 {caseLabel5} @WUZI2_24554 {caseNum6} -1 {caseLabel6} @WUZI2_24554 {caseNum7} -1 {caseLabel7} @WUZI2_24554

:WUZI2_24005
if or
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 62)
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 63)
goto_if_false @WUZI2_24132
if 
  not Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 36)
goto_if_false @WUZI2_24096
523@($d6_player_reached_sixth_creation_pt,7i) = 1
451@($d6_player_reached_sixth_creation_pt,7i) = -1
531@ += 1
goto @WUZI2_24125

:WUZI2_24096
523@($d6_player_reached_sixth_creation_pt,7i) = 2
451@($d6_player_reached_sixth_creation_pt,7i) = -1
531@ += 1

:WUZI2_24125
goto @WUZI2_24230

:WUZI2_24132
if or
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 36)
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 15)
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 9)
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 31)
goto_if_false @WUZI2_24223
523@($d6_player_reached_sixth_creation_pt,7i) = 2
451@($d6_player_reached_sixth_creation_pt,7i) = -1
531@ += 1
goto @WUZI2_24230

:WUZI2_24223
530@ += 1

:WUZI2_24230
goto @WUZI2_24554

:WUZI2_24237
if or
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 36)
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 15)
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 9)
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 31)
goto_if_false @WUZI2_24336
523@($d6_player_reached_sixth_creation_pt,7i) = 2
451@($d6_player_reached_sixth_creation_pt,7i) = -1
set_lvar_int_to_var_int 532@ = $d6_player_reached_sixth_creation_pt
531@ += 1
goto @WUZI2_24412

:WUZI2_24336
if or
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 63)
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 62)
goto_if_false @WUZI2_24383
531@ += 1
goto @WUZI2_24412

:WUZI2_24383
523@($d6_player_reached_sixth_creation_pt,7i) = 0
451@($d6_player_reached_sixth_creation_pt,7i) = 0
530@ += 1

:WUZI2_24412
goto @WUZI2_24554

:WUZI2_24419
if or
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 36)
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 63)
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 15)
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 9)
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 31)
  Char.IsRespondingToEvent(436@($d6_player_reached_sixth_creation_pt,7i), 62)
goto_if_false @WUZI2_24518
set_lvar_int_to_var_int 532@ = $d6_player_reached_sixth_creation_pt
531@ += 1
goto @WUZI2_24547

:WUZI2_24518
523@($d6_player_reached_sixth_creation_pt,7i) = 0
451@($d6_player_reached_sixth_creation_pt,7i) = 0
530@ += 1

:WUZI2_24547
goto @WUZI2_24554

:WUZI2_24554
goto @WUZI2_24603

:WUZI2_24561
if 
  523@($d6_player_reached_sixth_creation_pt,7i) <> -1
goto_if_false @WUZI2_24603
Blip.Remove(443@($d6_player_reached_sixth_creation_pt,8i))
523@($d6_player_reached_sixth_creation_pt,7i) = -1

:WUZI2_24603
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_23900

:WUZI2_24617
switch_start 522@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WUZI2_24872 {caseNum1} 0 {caseLabel1} @WUZI2_24680 {caseNum2} 1 {caseLabel2} @WUZI2_24744 {caseNum3} 2 {caseLabel3} @WUZI2_24808 {caseNum4} -1 {caseLabel4} @WUZI2_24872 {caseNum5} -1 {caseLabel5} @WUZI2_24872 {caseNum6} -1 {caseLabel6} @WUZI2_24872 {caseNum7} -1 {caseLabel7} @WUZI2_24872

:WUZI2_24680
if 
  531@ > 0
goto_if_false @WUZI2_24712
522@ = 2
goto @WUZI2_24737

:WUZI2_24712
if 
  531@ > 0
goto_if_false @WUZI2_24737
522@ = 1

:WUZI2_24737
goto @WUZI2_24872

:WUZI2_24744
if 
  531@ > 0
goto_if_false @WUZI2_24776
522@ = 2
goto @WUZI2_24801

:WUZI2_24776
if 
  531@ == 0
goto_if_false @WUZI2_24801
522@ = 0

:WUZI2_24801
goto @WUZI2_24872

:WUZI2_24808
if and
  531@ == 0
  531@ == 0
goto_if_false @WUZI2_24865
522@ = 0
if and
  not Char.IsDead(436@(532@,7i))
  not Char.IsDead($scplayer)
goto_if_false @WUZI2_24865

:WUZI2_24865
goto @WUZI2_24872

:WUZI2_24872
return 

:WUZI2_24874
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_24881
if 
  4 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_25425
if 
  451@($d6_player_reached_sixth_creation_pt,7i) <> -1
goto_if_false @WUZI2_25411
if 
  not Char.IsDead(436@($d6_player_reached_sixth_creation_pt,7i))
goto_if_false @WUZI2_25411
switch_start 451@($d6_player_reached_sixth_creation_pt,7i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @WUZI2_25411 {caseNum1} 0 {caseLabel1} @WUZI2_25008 {caseNum2} 1 {caseLabel2} @WUZI2_25100 {caseNum3} 2 {caseLabel3} @WUZI2_25221 {caseNum4} 3 {caseLabel4} @WUZI2_25347 {caseNum5} 4 {caseLabel5} @WUZI2_25404 {caseNum6} -1 {caseLabel6} @WUZI2_25411 {caseNum7} -1 {caseLabel7} @WUZI2_25411

:WUZI2_25008
43@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 466@($d6_player_reached_sixth_creation_pt,4f), 470@($d6_player_reached_sixth_creation_pt,4f), 474@($d6_player_reached_sixth_creation_pt,4f), 4, -2)
Task.AchieveHeading(-1, 478@($d6_player_reached_sixth_creation_pt,4f))
Task.StandStill(-1, 5000)
Sequence.Close(43@)
Char.PerformSequence(436@($d6_player_reached_sixth_creation_pt,7i), 43@)
Sequence.Clear(43@)
451@($d6_player_reached_sixth_creation_pt,7i) += 1
goto @WUZI2_25411

:WUZI2_25100
44@ = Char.GetSequenceProgress(436@($d6_player_reached_sixth_creation_pt,7i))
if 
  44@ == 2
goto_if_false @WUZI2_25214
if 
  Char.LocateOnFoot2D(436@($d6_player_reached_sixth_creation_pt,7i), 466@($d6_player_reached_sixth_creation_pt,4f), 470@($d6_player_reached_sixth_creation_pt,4f), 2.0, 2.0, False)
goto_if_false @WUZI2_25194
451@($d6_player_reached_sixth_creation_pt,7i) += 1
goto @WUZI2_25214

:WUZI2_25194
Char.ClearTasks(436@($d6_player_reached_sixth_creation_pt,7i))
451@($d6_player_reached_sixth_creation_pt,7i) -= 1

:WUZI2_25214
goto @WUZI2_25411

:WUZI2_25221
45@ = Math.RandomIntInRange(7000, 15000)
46@ = Math.RandomIntInRange(0, 500)
Char.ClearTasks(436@($d6_player_reached_sixth_creation_pt,7i))
43@ = Sequence.Open()
Task.StandStill(-1, 45@)
if 
  250 > 46@
goto_if_false @WUZI2_25296
Task.LookAbout(-1, 8000)
goto @WUZI2_25300

:WUZI2_25296
Task.ScratchHead(-1)

:WUZI2_25300
Task.StandStill(-1, 5000)
Sequence.Close(43@)
Char.PerformSequence(436@($d6_player_reached_sixth_creation_pt,7i), 43@)
Sequence.Clear(43@)
451@($d6_player_reached_sixth_creation_pt,7i) += 1
goto @WUZI2_25411

:WUZI2_25347
44@ = Char.GetSequenceProgress(436@($d6_player_reached_sixth_creation_pt,7i))
if 
  44@ == 2
goto_if_false @WUZI2_25397
Char.ClearTasks(436@($d6_player_reached_sixth_creation_pt,7i))
451@($d6_player_reached_sixth_creation_pt,7i) -= 1

:WUZI2_25397
goto @WUZI2_25411

:WUZI2_25404
goto @WUZI2_25411

:WUZI2_25411
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_24881

:WUZI2_25425
return 

:WUZI2_25427
$d6_player_reached_sixth_creation_pt = 4
$pointer_W2 = 0

:WUZI2_25441
if 
  7 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26089
if 
  451@($d6_player_reached_sixth_creation_pt,7i) <> -1
goto_if_false @WUZI2_26068
if 
  not Char.IsDead(436@($d6_player_reached_sixth_creation_pt,7i))
goto_if_false @WUZI2_26068
set_var_int_to_lvar_int $pointer2_W2 = 458@($pointer_W2,4i)
set_var_int_to_lvar_int $pointer3_W2 = 462@($pointer_W2,4i)
switch_start 451@($d6_player_reached_sixth_creation_pt,7i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @WUZI2_26068 {caseNum1} 0 {caseLabel1} @WUZI2_25592 {caseNum2} 1 {caseLabel2} @WUZI2_25767 {caseNum3} 2 {caseLabel3} @WUZI2_25857 {caseNum4} 3 {caseLabel4} @WUZI2_25989 {caseNum5} 4 {caseLabel5} @WUZI2_26061 {caseNum6} -1 {caseLabel6} @WUZI2_26068 {caseNum7} -1 {caseLabel7} @WUZI2_26068

:WUZI2_25592
43@ = Sequence.Open()

:WUZI2_25597
if 
  is_int_var_greater_or_equal_to_int_var $pointer3_W2 >= $pointer2_W2
goto_if_false @WUZI2_25659
Task.GoToCoordAnyMeans(-1, 482@($pointer2_W2,10f), 492@($pointer2_W2,10f), 502@($pointer2_W2,10f), 4, -2)
$pointer2_W2 += 1
goto @WUZI2_25597

:WUZI2_25659
if 
  $d6_player_reached_sixth_creation_pt == 6
goto_if_false @WUZI2_25702
Sequence.SetToRepeat(43@, True)
451@($d6_player_reached_sixth_creation_pt,7i) = 90
goto @WUZI2_25738

:WUZI2_25702
Task.AchieveHeading(-1, 512@($pointer3_W2,10f))
Task.StandStill(-1, 5000)
Task.StandStill(-1, 5000)
451@($d6_player_reached_sixth_creation_pt,7i) += 1

:WUZI2_25738
Sequence.Close(43@)
Char.PerformSequence(436@($d6_player_reached_sixth_creation_pt,7i), 43@)
Sequence.Clear(43@)
goto @WUZI2_26068

:WUZI2_25767
set_lvar_int_to_var_int 533@ = $pointer3_W2
sub_int_var_from_int_lvar 533@ -= $pointer2_W2
533@ += 3
44@ = Char.GetSequenceProgress(436@($d6_player_reached_sixth_creation_pt,7i))
if 
  is_int_lvar_equal_to_int_lvar 44@ == 533@
goto_if_false @WUZI2_25850
if 
  $d6_player_reached_sixth_creation_pt == 4
goto_if_false @WUZI2_25839

:WUZI2_25839
451@($d6_player_reached_sixth_creation_pt,7i) += 1

:WUZI2_25850
goto @WUZI2_26068

:WUZI2_25857
43@ = Sequence.Open()

:WUZI2_25862
if 
  is_int_var_greater_or_equal_to_int_var $pointer3_W2 >= $pointer2_W2
goto_if_false @WUZI2_25924
Task.GoToCoordAnyMeans(-1, 482@($pointer3_W2,10f), 492@($pointer3_W2,10f), 502@($pointer3_W2,10f), 4, -2)
$pointer3_W2 -= 1
goto @WUZI2_25862

:WUZI2_25924
Task.AchieveHeading(-1, 512@($pointer2_W2,10f))
Task.StandStill(-1, 5000)
Task.StandStill(-1, 5000)
451@($d6_player_reached_sixth_creation_pt,7i) += 1
Sequence.Close(43@)
Char.PerformSequence(436@($d6_player_reached_sixth_creation_pt,7i), 43@)
Sequence.Clear(43@)
goto @WUZI2_26068

:WUZI2_25989
set_lvar_int_to_var_int 533@ = $pointer3_W2
sub_int_var_from_int_lvar 533@ -= $pointer2_W2
533@ += 3
44@ = Char.GetSequenceProgress(436@($d6_player_reached_sixth_creation_pt,7i))
if 
  is_int_lvar_equal_to_int_lvar 44@ == 533@
goto_if_false @WUZI2_26054
451@($d6_player_reached_sixth_creation_pt,7i) = 0

:WUZI2_26054
goto @WUZI2_26068

:WUZI2_26061
goto @WUZI2_26068

:WUZI2_26068
$d6_player_reached_sixth_creation_pt += 1
$pointer_W2 += 1
goto @WUZI2_25441

:WUZI2_26089
return 
$d6_player_reached_sixth_creation_pt = 0
574@ = 1
573@ = Char.GetCurrentWeapon($scplayer)

:WUZI2_26113
if 
  13 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26181
534@($d6_player_reached_sixth_creation_pt,13i), 547@($d6_player_reached_sixth_creation_pt,13i), 560@($d6_player_reached_sixth_creation_pt,13i) = Char.GetWeaponInSlot($scplayer, 574@)
$d6_player_reached_sixth_creation_pt += 1
574@ += 1
goto @WUZI2_26113

:WUZI2_26181
return 
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_26190
if 
  13 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26260
if 
  534@($d6_player_reached_sixth_creation_pt,13i) <> 0
goto_if_false @WUZI2_26246
Streaming.RequestModel(560@($d6_player_reached_sixth_creation_pt,13i))
575@ += 1

:WUZI2_26246
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_26190

:WUZI2_26260
if 
  not is_int_lvar_equal_to_int_lvar 576@ == 575@
goto_if_false @WUZI2_26385
wait 0
576@ = 0
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_26297
if 
  13 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26378
if 
  534@($d6_player_reached_sixth_creation_pt,13i) <> 0
goto_if_false @WUZI2_26364
if 
  Streaming.HasModelLoaded(560@($d6_player_reached_sixth_creation_pt,13i))
goto_if_false @WUZI2_26364
576@ += 1

:WUZI2_26364
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_26297

:WUZI2_26378
goto @WUZI2_26260

:WUZI2_26385
Char.RemoveAllWeapons($scplayer)
$d6_player_reached_sixth_creation_pt = 0
574@ = 1

:WUZI2_26404
if 
  13 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26462
Char.GiveWeapon($scplayer, 534@($d6_player_reached_sixth_creation_pt,13i), 547@($d6_player_reached_sixth_creation_pt,13i))
$d6_player_reached_sixth_creation_pt += 1
574@ += 1
goto @WUZI2_26404

:WUZI2_26462
Char.SetCurrentWeapon($scplayer, 573@)
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_26477
if 
  13 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26540
if 
  534@($d6_player_reached_sixth_creation_pt,13i) <> 0
goto_if_false @WUZI2_26526
Streaming.MarkModelAsNoLongerNeeded(560@($d6_player_reached_sixth_creation_pt,13i))

:WUZI2_26526
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_26477

:WUZI2_26540
return 

:WUZI2_26542
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if 
  40@ == 1
goto_if_false @WUZI2_26586
Text.PrintNow(41@s, 5000, 1)

:WUZI2_26586
return 

:WUZI2_26588
$flag_wuzi_mission_counter += 1
Stat.RegisterMissionPassed('WUZI_2')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSS', 11000, 5000, TextStyle.Middle)
Player.AddScore($player1, 11000)
Stat.AwardPlayerMissionRespect(25)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
return 

:WUZI2_26652
if 
  $guard_limit_W2 == 0
goto_if_false @WUZI2_27103
Game.SetMaxWantedLevel(257@)
if 
  Player.IsPlaying($player1)
goto_if_false @WUZI2_26702
Player.SetGroupRecruitment($player1, True)
Game.SetScriptLimitToGangSize(99)

:WUZI2_26702
start_new_script @A_TERM 
Blip.Remove(259@)
Pickup.Remove(258@)
$timer_mobile_start = Clock.GetGameTimer()
Path.SwitchRoadsBackToOriginal(-1328.999, 1239.997, -5.0, -1655.868, 1638.755, 10.0)
Streaming.MarkModelAsNoLongerNeeded(121)
Streaming.MarkModelAsNoLongerNeeded(122)
Streaming.MarkModelAsNoLongerNeeded(123)
Streaming.MarkModelAsNoLongerNeeded(454)
Streaming.MarkModelAsNoLongerNeeded(355)
Streaming.MarkModelAsNoLongerNeeded(335)
Streaming.MarkModelAsNoLongerNeeded(#A51_SPOTBASE)
Streaming.MarkModelAsNoLongerNeeded(#A51_SPOTHOUSING)
Streaming.MarkModelAsNoLongerNeeded(#A51_SPOTBULB)
Streaming.RemoveAnimation("DAM_JUMP")
Blip.Remove(36@)
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_26823
if 
  5 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26873
Blip.Remove(443@($d6_player_reached_sixth_creation_pt,8i))
Char.MarkAsNoLongerNeeded(436@($d6_player_reached_sixth_creation_pt,7i))
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_26823

:WUZI2_26873
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_26880
if 
  4 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_26948
Blip.Remove(407@($d6_player_reached_sixth_creation_pt,6i))
Object.MarkAsNoLongerNeeded(389@($d6_player_reached_sixth_creation_pt,6i))
Object.MarkAsNoLongerNeeded(395@($d6_player_reached_sixth_creation_pt,6i))
Object.MarkAsNoLongerNeeded(401@($d6_player_reached_sixth_creation_pt,6i))
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_26880

:WUZI2_26948
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_26955
if 
  6 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_27005
Char.MarkAsNoLongerNeeded(308@($d6_player_reached_sixth_creation_pt,6i))
Char.MarkAsNoLongerNeeded(417@($d6_player_reached_sixth_creation_pt,6i))
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_26955

:WUZI2_27005
$d6_player_reached_sixth_creation_pt = 0

:WUZI2_27012
if 
  2 > $d6_player_reached_sixth_creation_pt
goto_if_false @WUZI2_27094
Blip.Remove(292@($d6_player_reached_sixth_creation_pt,2i))
Char.MarkAsNoLongerNeeded(300@($d6_player_reached_sixth_creation_pt,2i))
Car.MarkAsNoLongerNeeded(290@($d6_player_reached_sixth_creation_pt,2i))
Blip.Remove(415@)
Char.MarkAsNoLongerNeeded(417@($d6_player_reached_sixth_creation_pt,6i))
Car.MarkAsNoLongerNeeded(413@($d6_player_reached_sixth_creation_pt,2i))
$d6_player_reached_sixth_creation_pt += 1
goto @WUZI2_27012

:WUZI2_27094
Weather.Release
goto @WUZI2_27255

:WUZI2_27103
if 
  Player.IsPlaying($player1)
goto_if_false @WUZI2_27126
Player.SetControl($player1, False)

:WUZI2_27126
Char.SetCoordinates($scplayer, -2154.815, 641.3157, 51.3594)
Char.SetHeading($scplayer, 268.4865)
Streaming.LoadScene(-2154.815, 641.3157, 51.3594)
TIMERA = 0

:WUZI2_27180
if 
  500 > TIMERA
goto_if_false @WUZI2_27210
wait 0
goto @WUZI2_27180

:WUZI2_27210
Camera.DoFade(0, Fade.In)
if 
  Player.IsPlaying($player1)
goto_if_false @WUZI2_27239
Player.SetControl($player1, True)

:WUZI2_27239
Text.PrintNow('WZI2_60', 8000, 1)

:WUZI2_27255
$onmission = 0
Mission.Finish
return 

//-------------Mission 57---------------
// Originally: The Da Nang Thang

:WUZI5
script_name 'WUZI5'
gosub @WUZI5_47
if 
  has_deatharrest_been_executed 
goto_if_false @WUZI5_38
gosub @WUZI5_20666

:WUZI5_38
gosub @WUZI5_20753
terminate_this_script 

:WUZI5_47
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('WUZI4')
if 
  $onmission == 0
goto_if_false @WUZI5_302
36@(94@,17i) = Char.Create(PedType.Mission5, 118, -2433.5, 1536.3, 16.4)
58@ = Char.Create(PedType.Mission5, 118, -2433.5, 1536.3, 16.4)
59@(96@,4i) = Char.Create(PedType.Mission5, 118, -2389.2, 1537.1, 1.1)
63@ = Pickup.CreateWithAmmo(342, PickupType.OnStreetSlow, 6, -2412.4, 1547.9, 25.0)
64@ = Pickup.Create(#HEALTH, PickupType.OnStreetSlow, -2427.8, 1547.6, 22.1)
81@(94@,9i) = Blip.AddForChar(36@(94@,17i))
53@ = Car.Create(473, -2430.7, 1563.6, 0.0)
54@ = Car.Create(473, -2442.4, 1564.6, 0.0)
55@ = Car.Create(473, -2426.9, 1570.6, 0.0)

:WUZI5_302
Text.ClearPrints
wait 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
114@ = 0
94@ = 0
95@ = 0
96@ = 0
set_lvar_int_to_constant 97@ = 121
set_lvar_int_to_constant 98@ = 122
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
144@ = 0.0
145@ = 0.0
146@ = 0.0
147@ = 0.0
148@ = 0.0
149@ = 0.0
150@ = 0.0
151@ = 0.0
152@ = 0.0
153@ = 0.0
154@ = 0.0
155@ = 0.0
Player.MakeGangDisappear
Streaming.SetAreaVisible(1)
Cutscene.Load('WOOZIE4')

:WUZI5_613
if 
  not Cutscene.HasLoaded
goto_if_false @WUZI5_637
wait 0
goto @WUZI5_613

:WUZI5_637
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:WUZI5_646
if 
  not Cutscene.HasFinished
goto_if_false @WUZI5_670
wait 0
goto @WUZI5_646

:WUZI5_670
Camera.DoFade(0, Fade.Out)

:WUZI5_676
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_700
wait 0
goto @WUZI5_676

:WUZI5_700
Streaming.SetAreaVisible(0)
Cutscene.Clear
Player.SetControl($player1, False)
Player.MakeGangReappear
Camera.SetFadingColor(0, 0, 0)
Weather.ForceNow(WeatherType.ExtraSunnySf)
wait 0
Streaming.RequestModel(118)
Streaming.RequestModel(487)
Streaming.RequestAnimation("CAR_CHAT")
Streaming.LoadAllModelsNow
Group.Remove($Players_Group)
Player.SetGroupRecruitment($player1, False)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission2, PedType.Player1)
158@ = DecisionMakerChar.Copy(65542)
157@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
159@ = DecisionMakerChar.Load(DecisionMakerType.Steal)
World.ClearArea(-2167.8, 634.9, 69.7, 5.0, True)
34@ = Car.Create(487, -2167.8, 634.9, 69.7)
Car.SetHeading(34@, 92.3)
Car.SetProofs(34@, True, True, True, True, True)
35@ = Char.CreateInsideCar(34@, PedType.Mission5, 118)
Char.SetNeverTargeted(35@, True)
Char.SetLoadCollisionFlag(35@, True)
Char.SetDecisionMaker(35@, 158@)
World.ClearArea(-2168.4, 639.0, 69.9, 1.0, True)
Char.SetCoordinates($scplayer, -2168.4, 639.0, 69.9)
Char.SetHeading($scplayer, 189.4)
Streaming.LoadScene(-2168.4, 639.0, 69.9)

:WUZI5_975
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @WUZI5_1001
goto @WUZI5_20684

:WUZI5_1001
Player.AlterWantedLevel($player1, 0)
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_1040
goto @WUZI5_20666

:WUZI5_1040
if 
  90@ == 0
goto_if_false @WUZI5_2013
if 
  91@ == 0
goto_if_false @WUZI5_1311
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
113@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Camera.SetFixedPosition(-2172.7, 636.0, 71.2, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2161.7, 631.4, 72.4, SwitchType.JumpCut)
Char.ShutUpForScriptedSpeech($scplayer, True)
156@ = Sequence.Open()
Task.EnterCarAsPassenger(-1, 34@, -1, 0)
Sequence.Close(156@)
Char.PerformSequence($scplayer, 156@)
Sequence.Clear(156@)
Streaming.LoadSceneInDirection(-2168.7, 634.9, 70.3, 248.0)
Camera.DoFade(500, Fade.In)

:WUZI5_1234
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_1258
wait 0
goto @WUZI5_1234

:WUZI5_1258
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_1290
goto @WUZI5_20666

:WUZI5_1290
92@ = 1
skip_cutscene_start_internal @WUZI5_1590
91@ = 1

:WUZI5_1311
if 
  91@ == 1
goto_if_false @WUZI5_1466
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @WUZI5_1466
Task.PlayAnim(35@, "CAR_SC1_FL", "CAR_CHAT", 8.0, False, False, False, False, 8000)
Task.PlayAnim($scplayer, "CAR_SC1_FR", "CAR_CHAT", 6.0, False, False, False, False, 8500)
113@ = 1
115@ = 0
gosub @WUZI5_26535
TIMERA = 0
91@ = 2

:WUZI5_1466
if 
  91@ == 2
goto_if_false @WUZI5_1547
if 
  TIMERA > 9000
goto_if_false @WUZI5_1547
Heli.GotoCoords(34@, -2167.8, 634.9, 80.7, 0.0, 80.7)
TIMERA = 0
91@ = 3

:WUZI5_1547
if 
  91@ == 3
goto_if_false @WUZI5_2013
if 
  113@ == 0
goto_if_false @WUZI5_2013
92@ = 0

:WUZI5_1590
skip_cutscene_end 
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_1624
goto @WUZI5_20666

:WUZI5_1624
if 
  92@ == 1
goto_if_false @WUZI5_1659
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
113@ = 0

:WUZI5_1659
Camera.DoFade(1000, Fade.Out)

:WUZI5_1666
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_1694
wait 0
Streaming.RequestCarRecording(25)
goto @WUZI5_1666

:WUZI5_1694
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_1726
goto @WUZI5_20666

:WUZI5_1726
Streaming.RequestModel(362)
Streaming.RequestModel(359)
Streaming.RequestModel(372)
Streaming.RequestModel(121)
Streaming.RequestModel(122)
Streaming.RequestCarRecording(25)
Streaming.LoadAllModelsNow
Text.ClearPrints
Char.ClearTasks($scplayer)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.ClearTasksImmediately($scplayer)
Char.AttachToCar($scplayer, 34@, -1.4, 1.0, -0.1, 1, 90.0, WeaponType.Minigun)
Car.StartPlayback(34@, 25)
Car.SkipInPlayback(34@, 750.0)
Heli.SetBladesFullSpeed(34@)
Streaming.RemoveAnimation("CAR_CHAT")
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Char.SetProofs($scplayer, True, True, True, True, True)
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_1903
Car.SetProofs(34@, True, True, True, True, True)

:WUZI5_1903
Streaming.LoadSceneInDirection(-1735.7, 1303.5, 7.1, 120.8)
Camera.DoFade(2000, Fade.In)

:WUZI5_1932
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_1960
wait 0
Streaming.RequestCarRecording(25)
goto @WUZI5_1932

:WUZI5_1960
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_1992
goto @WUZI5_20666

:WUZI5_1992
TIMERA = 0
91@ = 0
90@ = 1

:WUZI5_2013
if 
  90@ == 1
goto_if_false @WUZI5_4184
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @WUZI5_2127
if 
  2 > 95@
goto_if_false @WUZI5_2078
gosub @WUZI5_21147
goto @WUZI5_2127

:WUZI5_2078
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_2127
if 
  Car.IsPlaybackGoingOn(34@)
goto_if_false @WUZI5_2120
Car.StopPlayback(34@)
Heli.MakeComeCrashingDown(34@)

:WUZI5_2120
91@ = 3

:WUZI5_2127
if 
  114@ == 0
goto_if_false @WUZI5_2192
if 
  TIMERA > 6000
goto_if_false @WUZI5_2192
113@ = 2
115@ = 0
gosub @WUZI5_26535
114@ = 1

:WUZI5_2192
if 
  2 > 95@
goto_if_false @WUZI5_2262
if 
  Char.LocateAnyMeans2D($scplayer, -2409.1, 1541.0, 200.0, 200.0, False)
goto_if_false @WUZI5_2255
gosub @WUZI5_21147

:WUZI5_2255
goto @WUZI5_2276

:WUZI5_2262
gosub @WUZI5_22151
gosub @WUZI5_24641

:WUZI5_2276
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_3356
if 
  91@ == 0
goto_if_false @WUZI5_2386
if 
  Char.LocateAnyMeans2D($scplayer, -2287.1, 1582.8, 3.0, 3.0, False)
goto_if_false @WUZI5_2386
113@ = 3
115@ = 0
gosub @WUZI5_26535
Car.SetPlaybackSpeed(34@, 0.6)
91@ = 1

:WUZI5_2386
if 
  91@ == 1
goto_if_false @WUZI5_2602
if 
  Char.LocateAnyMeans2D($scplayer, -2483.3, 1509.6, 3.0, 3.0, False)
goto_if_false @WUZI5_2602
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2429.5, 1536.8, 30.8, 1.0, True)
58@ = Char.Create(PedType.Mission5, 97@(99@,2i), -2429.5, 1536.8, 30.8)
Char.GiveWeapon(58@, WeaponType.RocketLauncher, 12)
Char.SetStayInSamePlace(58@, True)
Char.SetProofs(58@, True, True, True, True, True)
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2431.0, 1530.4, 30.8, MoveState.Run, -1)
Task.DestroyCar(-1, 34@)
Sequence.Close(156@)
Char.PerformSequence(58@, 156@)
Sequence.Clear(156@)
TIMERA = 0
91@ = 2

:WUZI5_2602
if 
  91@ == 2
goto_if_false @WUZI5_2674
if 
  TIMERA > 1800
goto_if_false @WUZI5_2674
113@ = 4
115@ = 0
116@ = 2
gosub @WUZI5_26535
91@ = 3

:WUZI5_2674
if 
  91@ == 3
goto_if_false @WUZI5_2797
if 
  Char.LocateAnyMeans2D($scplayer, -2401.0, 1499.1, 3.0, 3.0, False)
goto_if_false @WUZI5_2797
Pad.Shake(PadId.Pad1, 10000, 200)
140@, 141@, 142@ = Car.GetOffsetInWorldCoords(34@, 0.0, 4.0, 0.0)
Fx.AddExplosion(140@, 141@, 142@, ExplosionType.Aircraft)
Car.SetHealth(34@, 300)
91@ = 4

:WUZI5_2797
if 
  91@ > 3
goto_if_false @WUZI5_3041
140@, 141@, 142@ = Car.GetOffsetInWorldCoords(34@, 0.0, 0.0, 0.0)
144@ = Math.RandomFloatInRange(-2.0, 2.0)
add_float_lvar_to_float_lvar 144@ += 140@
145@ = Math.RandomFloatInRange(-2.0, 2.0)
add_float_lvar_to_float_lvar 145@ += 141@
set_lvar_float_to_lvar_float 146@ = 142@
147@ = Math.RandomFloatInRange(-1.5, 1.5)
148@ = Math.RandomFloatInRange(-1.5, 1.5)
149@ = Math.RandomFloatInRange(0.0, 1.0)
150@ = 0.0
151@ = 0.0
152@ = 0.0
153@ = 0.2
154@ = 1.0
155@ = 1.0
Fx.AddSmokeParticle(144@, 145@, 146@, 147@, 148@, 149@, 150@, 151@, 152@, 153@, 154@, 155@)

:WUZI5_3041
if 
  91@ == 4
goto_if_false @WUZI5_3293
if 
  Char.LocateAnyMeans2D($scplayer, -2381.0, 1489.0, 3.0, 3.0, False)
goto_if_false @WUZI5_3293
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
113@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.DetachFromCar($scplayer)
World.ClearArea(-2351.7, 1487.4, 1.0, 1.0, True)
Char.SetCoordinates($scplayer, -2351.7, 1487.4, 1.0)
113@ = 4
115@ = 2
116@ = 5
gosub @WUZI5_26535
Car.SetPlaybackSpeed(34@, 1.0)
Camera.SetFixedPosition(-2353.5, 1450.2, 82.3, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2365.3, 1471.5, 64.7, SwitchType.JumpCut)
92@ = 1
skip_cutscene_start_internal @WUZI5_3397
91@ = 5

:WUZI5_3293
if 
  91@ == 5
goto_if_false @WUZI5_3356
if 
  Car.Locate2D(34@, -2360.0, 1481.5, 5.0, 5.0, False)
goto_if_false @WUZI5_3356
91@ = 6

:WUZI5_3356
if 
  7 > 91@
goto_if_false @WUZI5_4184
if 
  Car.IsInWater(34@)
goto_if_false @WUZI5_4184
92@ = 0

:WUZI5_3397
skip_cutscene_end 
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_3431
goto @WUZI5_20666

:WUZI5_3431
if 
  92@ == 1
goto_if_false @WUZI5_3518
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
113@ = 0
Camera.DoFade(500, Fade.Out)

:WUZI5_3473
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_3497
wait 0
goto @WUZI5_3473

:WUZI5_3497
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_3518
Car.SkipToEndAndStopPlayback(34@)

:WUZI5_3518
Pad.Shake(PadId.Pad1, 0, 0)
Camera.DoFade(1000, Fade.Out)

:WUZI5_3533
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_3557
wait 0
goto @WUZI5_3533

:WUZI5_3557
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
113@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Game.ShutAllCharsUp(True)
Char.DetachFromCar($scplayer)
Char.MarkAsNoLongerNeeded(35@)
Streaming.MarkModelAsNoLongerNeeded(362)
Streaming.MarkModelAsNoLongerNeeded(359)
Streaming.MarkModelAsNoLongerNeeded(487)
Streaming.MarkModelAsNoLongerNeeded(118)
Streaming.RequestModel(342)
Streaming.RequestModel(335)
Streaming.RequestModel(349)
Streaming.LoadAllModelsNow
Char.RemoveAllWeapons($scplayer)
Char.GiveWeapon($scplayer, WeaponType.Knife, 1)
Char.SetCurrentWeapon($scplayer, WeaponType.Knife)
Char.ClearTasksImmediately($scplayer)
World.ClearArea(-2351.7, 1487.4, 0.0, 1.0, True)
Char.SetCoordinates($scplayer, -2351.7, 1487.4, -1.0)
Char.SetHeading($scplayer, 318.0)
if 
  not Char.IsDead(36@)
goto_if_false @WUZI5_3738
Char.ClearTasks(36@)

:WUZI5_3738
if 
  not Char.IsDead(37@)
goto_if_false @WUZI5_3759
Char.ClearTasks(37@)

:WUZI5_3759
if 
  not Char.IsDead(38@)
goto_if_false @WUZI5_3780
Char.ClearTasks(38@)

:WUZI5_3780
if 
  not Char.IsDead(39@)
goto_if_false @WUZI5_3801
Char.ClearTasks(39@)

:WUZI5_3801
if 
  not Char.IsDead(40@)
goto_if_false @WUZI5_3822
Char.ClearTasks(40@)

:WUZI5_3822
if 
  not Char.IsDead(41@)
goto_if_false @WUZI5_3850
Char.ClearTasks(41@)
Task.ToggleDuck(41@, True)

:WUZI5_3850
if 
  not Char.IsDead(43@)
goto_if_false @WUZI5_3871
Char.ClearTasks(43@)

:WUZI5_3871
Blip.Remove(81@)
Blip.Remove(82@)
Blip.Remove(83@)
Blip.Remove(84@)
Blip.Remove(85@)
Blip.Remove(86@)
Blip.Remove(87@)
Blip.Remove(88@)
Blip.Remove(89@)
80@ = Blip.AddForCoord(-2329.1, 1528.7, 0.0)
Char.Delete(58@)
100@ = Char.GetHealth($scplayer)
if 
  100@ > 25
goto_if_false @WUZI5_4014
100@ /= 4
100@ *= 3
if 
  25 > 100@
goto_if_false @WUZI5_4006
100@ = 25

:WUZI5_4006
Char.SetHealth($scplayer, 100@)

:WUZI5_4014
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Char.ClearTasks($scplayer)
Text.ClearPrints
Sphere.Draw(-2329.1, 1528.7, 0.0, 4.0)
Camera.DoFade(2000, Fade.In)

:WUZI5_4074
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_4142
Sphere.Draw(-2329.1, 1528.7, 0.0, 4.0)
wait 0
Sphere.Draw(-2329.1, 1528.7, 0.0, 4.0)
goto @WUZI5_4074

:WUZI5_4142
113@ = 12
115@ = 0
gosub @WUZI5_26535
114@ = 0
91@ = 0
90@ = 2

:WUZI5_4184
if 
  90@ == 2
goto_if_false @WUZI5_7182
if 
  91@ == 0
goto_if_false @WUZI5_4355
if 
  Char.LocateAnyMeans3D($scplayer, -2329.1, 1528.7, 0.0, 4.0, 4.0, 4.0, True)
goto_if_false @WUZI5_4296
Camera.DoFade(500, Fade.Out)
TIMERA = 0
91@ = 1
goto @WUZI5_4355

:WUZI5_4296
if 
  114@ == 0
goto_if_false @WUZI5_4355
if 
  113@ == 0
goto_if_false @WUZI5_4355
Text.PrintNow('WUZ4_02', 7000, 1)
114@ = 1

:WUZI5_4355
if 
  91@ == 1
goto_if_false @WUZI5_6385
if 
  TIMERA > 500
goto_if_false @WUZI5_6385
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
113@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Streaming.RequestModel(#KMB_CONTAINER_RED)
Streaming.LoadAllModelsNow
Streaming.RequestAnimation("SWAT")

:WUZI5_4437
if 
  not Streaming.HasAnimationLoaded("SWAT")
goto_if_false @WUZI5_4467
wait 0
goto @WUZI5_4437

:WUZI5_4467
71@ = Object.Create(#KMB_CONTAINER_RED, -2323.9, 1527.3, 14.0)
Object.SetCollision(71@, True)
Object.SetDynamic(71@, False)
Object.SetVisible(71@, False)
wait 0
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_4547
goto @WUZI5_20666

:WUZI5_4547
Char.ClearTasksImmediately($scplayer)
World.ClearArea(-2323.2, 1530.2, 16.9, 1.0, True)
Char.SetCoordinates($scplayer, -2323.2, 1530.2, 16.9)
Char.SetHeading($scplayer, 3.3)
Char.ClearTasksImmediately($scplayer)
if 
  not Char.IsDead(36@)
goto_if_false @WUZI5_4721
World.ClearArea(-2350.6, 1561.2, 22.1, 1.0, True)
Char.SetCoordinates(36@, -2350.6, 1561.2, 22.1)
Char.SetHeading(36@, 4.7)
Task.PlayAnim(36@, "WEAPON_CROUCH", "PED", 4.0, True, False, False, False, -1)

:WUZI5_4721
if 
  not Char.IsDead(37@)
goto_if_false @WUZI5_4798
World.ClearArea(-2357.1, 1529.2, 25.0, 1.0, True)
Char.SetCoordinates(37@, -2357.1, 1529.2, 25.0)
Char.SetHeading(37@, 180.9)
Task.LookAbout(37@, -2)

:WUZI5_4798
Char.Delete(38@)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2388.3, 1553.1, 25.0, 1.0, True)
38@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2388.3, 1553.1, 25.0)
Char.SetHeading(38@, 0.0)
Char.SetDecisionMaker(38@, 157@)
Char.GiveWeapon(38@, WeaponType.Tec9, 30000)
Char.Delete(39@)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2390.9, 1552.6, 25.0, 1.0, True)
39@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2390.9, 1552.6, 25.0)
Char.SetHeading(39@, 0.0)
Char.SetDecisionMaker(39@, 157@)
Char.GiveWeapon(39@, WeaponType.Tec9, 30000)
Char.Delete(40@)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2389.8, 1554.9, 25.0, 1.0, True)
40@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2389.8, 1554.9, 25.0)
Char.SetHeading(40@, 220.6)
Char.SetDecisionMaker(40@, 157@)
Char.GiveWeapon(40@, WeaponType.Tec9, 30000)
if 
  not Char.IsDead(39@)
goto_if_false @WUZI5_5139
if 
  not Char.IsDead(40@)
goto_if_false @WUZI5_5139
Task.ChatWithChar(40@, 39@, True, 1)
Task.ChatWithChar(39@, 40@, False, 1)

:WUZI5_5139
Char.Delete(41@)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2407.3, 1547.6, 25.0, 1.0, True)
41@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2407.3, 1547.6, 25.0)
Char.SetHeading(41@, 319.2)
Char.SetDecisionMaker(41@, 157@)
Char.GiveWeapon(41@, WeaponType.Tec9, 30000)
Char.Delete(42@)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2420.4, 1553.4, 25.0, 1.0, True)
42@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2420.4, 1553.4, 25.0)
Char.SetHeading(42@, 180.0)
Char.SetDecisionMaker(42@, 158@)
Char.GiveWeapon(42@, WeaponType.Tec9, 30000)
Char.Delete(43@)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2427.6, 1532.3, 25.0, 1.0, True)
43@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2427.6, 1532.3, 25.0)
Char.SetHeading(43@, 275.0)
Char.SetDecisionMaker(43@, 157@)
Char.GiveWeapon(43@, WeaponType.Tec9, 30000)
Char.Delete(44@)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2427.9, 1553.9, 25.0, 1.0, True)
44@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2427.9, 1553.9, 25.0)
Char.SetHeading(44@, 183.8)
Char.SetDecisionMaker(44@, 157@)
Char.GiveWeapon(44@, WeaponType.Tec9, 30000)
World.ClearArea(-2334.5, 1533.3, 16.3, 1.0, True)
46@ = Char.Create(PedType.Mission2, 121, -2334.5, 1533.3, 16.3)
Char.SetHeading(46@, 116.3)
Char.GiveWeapon(46@, WeaponType.Shotgun, 3000)
Char.SetKindaStayInSamePlace(46@, True)
Char.SetDecisionMaker(46@, 157@)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2401.8, 1530.3, 30.8, 1.0, True)
47@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2401.8, 1530.3, 30.8)
Char.SetHeading(47@, 0.0)
Char.SetDecisionMaker(47@, 157@)
Char.GiveWeapon(47@, WeaponType.Tec9, 30000)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2405.5, 1530.3, 30.8, 1.0, True)
48@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2405.5, 1530.3, 30.8)
Char.SetHeading(48@, 0.0)
Char.SetDecisionMaker(48@, 158@)
Task.PlayAnim(48@, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Char.GiveWeapon(48@, WeaponType.Tec9, 30000)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2426.5, 1548.8, 22.2, 1.0, True)
49@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2426.5, 1548.8, 22.2)
Char.SetHeading(49@, 180.0)
Char.SetDecisionMaker(49@, 158@)
Char.SetStayInSamePlace(49@, True)
Char.GiveWeapon(49@, WeaponType.Tec9, 30000)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2422.5, 1548.8, 22.2, 1.0, True)
50@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2422.5, 1548.8, 22.2)
Char.SetHeading(50@, 180.0)
Char.SetDecisionMaker(50@, 158@)
Char.SetStayInSamePlace(50@, True)
Char.GiveWeapon(50@, WeaponType.Tec9, 30000)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2339.2, 1555.5, 24.7, 1.0, True)
51@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2339.2, 1555.5, 24.7)
Char.SetHeading(51@, 348.3)
Char.SetDecisionMaker(51@, 157@)
Char.SetKindaStayInSamePlace(51@, True)
Char.GiveWeapon(51@, WeaponType.Tec9, 30000)
Task.LookAbout(51@, -2)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2360.0, 1560.3, 25.0, 1.0, True)
52@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2360.0, 1560.3, 25.0)
Char.SetHeading(52@, 26.4)
Char.SetDecisionMaker(52@, 157@)
Char.SetKindaStayInSamePlace(52@, True)
Char.GiveWeapon(52@, WeaponType.Tec9, 30000)
Task.LookAbout(52@, -2)
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2334.7, 1529.8, 16.3, MoveState.Walk, -1)
Task.AchieveHeading(-1, 126.8)
Task.LookAbout(-1, -2)
Sequence.Close(156@)
Char.PerformSequence(46@, 156@)
Sequence.Clear(156@)
Camera.SetFixedPosition(-2332.5, 1534.4, 18.1, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2342.5, 1513.7, 15.33, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)
113@ = 5
115@ = 0
116@ = 1
gosub @WUZI5_26535
TIMERA = 0
91@ = 2

:WUZI5_6385
if 
  91@ == 2
goto_if_false @WUZI5_6443
if 
  TIMERA > 2000
goto_if_false @WUZI5_6443
92@ = 1
skip_cutscene_start_internal @WUZI5_6715
91@ = 3

:WUZI5_6443
if 
  91@ == 3
goto_if_false @WUZI5_6533
if 
  113@ == 0
goto_if_false @WUZI5_6533
if 
  TIMERA > 3200
goto_if_false @WUZI5_6533
113@ = 5
115@ = 1
116@ = 2
gosub @WUZI5_26535
91@ = 4

:WUZI5_6533
if 
  91@ == 4
goto_if_false @WUZI5_6671
if 
  TIMERA > 6000
goto_if_false @WUZI5_6671
Char.ClearTasksImmediately($scplayer)
156@ = Sequence.Open()
Task.Climb(-1, True)
Task.AchieveHeading(-1, 85.1)
Sequence.Close(156@)
Char.PerformSequence($scplayer, 156@)
Sequence.Clear(156@)
Camera.SetFixedPosition(-2320.4, 1535.2, 18.8, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2354.4, 1508.1, 18.9, SwitchType.JumpCut)
91@ = 5

:WUZI5_6671
if 
  91@ == 5
goto_if_false @WUZI5_7182
if 
  TIMERA > 8500
goto_if_false @WUZI5_7182
92@ = 0

:WUZI5_6715
skip_cutscene_end 
if 
  92@ == 1
goto_if_false @WUZI5_6815
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
113@ = 0
Camera.DoFade(500, Fade.Out)

:WUZI5_6759
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_6783
wait 0
goto @WUZI5_6759

:WUZI5_6783
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_6815
goto @WUZI5_20666

:WUZI5_6815
if 
  not Char.IsDead(46@)
goto_if_false @WUZI5_6839
Char.SetDecisionMaker(46@, 159@)

:WUZI5_6839
if 
  not Char.IsDead(51@)
goto_if_false @WUZI5_6863
Char.SetDecisionMaker(51@, 159@)

:WUZI5_6863
if 
  not Char.IsDead(52@)
goto_if_false @WUZI5_6887
Char.SetDecisionMaker(52@, 159@)

:WUZI5_6887
if 
  not Char.IsDead(36@)
goto_if_false @WUZI5_6911
Char.SetDecisionMaker(36@, 159@)

:WUZI5_6911
if 
  not Char.IsDead(37@)
goto_if_false @WUZI5_6935
Char.SetDecisionMaker(37@, 159@)

:WUZI5_6935
Char.ClearTasks($scplayer)
Object.Delete(71@)
Streaming.MarkModelAsNoLongerNeeded(#KMB_CONTAINER_RED)
World.ClearArea(-2323.1, 1531.7, 16.3, 1.0, True)
Char.SetCoordinates($scplayer, -2323.1, 1531.7, 16.3)
Char.SetHeading($scplayer, 85.2)
Text.ClearPrints
Text.PrintNow('WUZ4_10', 7000, 1)
Blip.Remove(80@)
80@ = Blip.AddForCoord(-2437.6, 1541.5, 6.4)
Car.MarkAsNoLongerNeeded(34@)
Game.ShutAllCharsUp(False)
Char.ShutUpForScriptedSpeech($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
if 
  92@ == 1
goto_if_false @WUZI5_7161
Camera.DoFade(500, Fade.In)

:WUZI5_7105
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_7129
wait 0
goto @WUZI5_7105

:WUZI5_7129
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_7161
goto @WUZI5_20666

:WUZI5_7161
114@ = 0
91@ = 0
90@ = 3

:WUZI5_7182
if 
  90@ == 3
goto_if_false @WUZI5_10888
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @WUZI5_7235
Char.SetCoordinates($scplayer, -2437.5, 1538.4, 10.7)

:WUZI5_7235
if 
  91@ == 0
goto_if_false @WUZI5_7441
if 
  Char.IsInArea3D($scplayer, -2428.6, 1532.6, 12.2, -2441.3, 1549.9, 8.0, False)
goto_if_false @WUZI5_7386
if 
  Char.LocateAnyMeans3D($scplayer, -2437.6, 1541.5, 6.4, 1.2, 1.2, 1.2, True)
goto_if_false @WUZI5_7349

:WUZI5_7349
if 
  not Player.IsClimbing($player1)
goto_if_false @WUZI5_7379
Player.SetControl($player1, False)
91@ = 1

:WUZI5_7379
goto @WUZI5_7441

:WUZI5_7386
gosub @WUZI5_24954
if 
  Char.LocateAnyMeans3D($scplayer, -2437.6, 1541.5, 6.4, 1.2, 1.2, 1.2, True)
goto_if_false @WUZI5_7441

:WUZI5_7441
if 
  91@ == 1
goto_if_false @WUZI5_8954
if 
  Char.LocateAnyMeans3D($scplayer, -2437.6, 1541.5, 6.4, 1.2, 1.2, 1.2, True)
goto_if_false @WUZI5_7507

:WUZI5_7507
if 
  Char.IsStopped($scplayer)
goto_if_false @WUZI5_8954
Camera.DoFade(500, Fade.Out)

:WUZI5_7530
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_7554
wait 0
goto @WUZI5_7530

:WUZI5_7554
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_7586
goto @WUZI5_20666

:WUZI5_7586
Game.ShutAllCharsUp(True)
World.ClearArea(-2374.4, 1548.5, 1.1, 1.0, True)
45@ = Char.Create(PedType.Mission2, 122, -2374.4, 1548.5, 1.1)
Char.SetHeading(45@, 299.2)
Char.SetDecisionMaker(45@, 158@)
Char.GiveWeapon(45@, WeaponType.Grenade, 1)
Char.AddArmor(45@, 100)
Streaming.RemoveAnimation("SWAT")
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(335)
Object.Delete(71@)
Streaming.MarkModelAsNoLongerNeeded(#KMB_CONTAINER_RED)
Streaming.RequestAnimation("PARK")

:WUZI5_7708
if 
  not Streaming.HasAnimationLoaded("PARK")
goto_if_false @WUZI5_7738
wait 0
goto @WUZI5_7708

:WUZI5_7738
73@ = Pickup.CreateWithAmmo(372, PickupType.OnStreetSlow, 48, -2428.4, 1536.3, 2.1)
72@ = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, -2425.3, 1536.4, 2.1)
94@ = 0

:WUZI5_7796
wait 0
if 
  15 > 94@
goto_if_false @WUZI5_7859
if 
  94@ <> 9
goto_if_false @WUZI5_7845
Char.Delete(36@(94@,17i))

:WUZI5_7845
94@ += 1
goto @WUZI5_7796

:WUZI5_7859
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
113@ = 0
Streaming.RequestModel(#CJ_CHRIS_CRATE)
Streaming.RequestModel(#CJ_CHRIS_CRATE_LD)
Streaming.RequestModel(#CJ_CHRIS_CRATE_RD)
Streaming.RequestModel(#CJ_PADLOCK)
Streaming.RequestModel(210)
Streaming.LoadAllModelsNow
World.ClearArea(-2368.9, 1551.9, 1.1, 10.0, True)
76@ = Object.Create(#CJ_CHRIS_CRATE, -2368.9, 1551.9, 1.1)
Object.SetHeading(76@, 270.0)
77@ = Object.Create(#CJ_CHRIS_CRATE_LD, -2371.55, 1552.66, 1.245)
Object.SetHeading(77@, 270.0)
78@ = Object.Create(#CJ_CHRIS_CRATE_RD, -2371.55, 1551.14, 1.245)
Object.SetHeading(78@, 270.0)
79@ = Object.Create(#CJ_PADLOCK, -2371.75, 1551.9, 2.1)
Object.SetHeading(79@, 270.0)
World.ClearArea(-2408.4, 1553.1, 1.1, 1.0, True)
36@ = Char.Create(PedType.Mission2, 121, -2408.4, 1553.1, 1.1)
Char.SetHeading(36@, 151.3)
Char.SetDecisionMaker(36@, 158@)
Task.SetIgnoreWeaponRangeFlag(36@, True)
Char.GiveWeapon(36@, WeaponType.Tec9, 30000)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2404.8, 1555.1, 1.1, 1.0, True)
37@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2404.8, 1555.1, 1.1)
Char.SetAnimGroup(37@, "GANG2")
Char.SetHeading(37@, 102.0)
Char.SetDecisionMaker(37@, 158@)
Char.GiveWeapon(37@, WeaponType.Tec9, 30000)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2401.3, 1555.1, 1.1, 1.0, True)
38@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2401.3, 1555.1, 1.1)
Char.SetAnimGroup(38@, "GANG1")
Char.SetHeading(38@, 90.0)
Char.SetDecisionMaker(38@, 158@)
Char.GiveWeapon(38@, WeaponType.Tec9, 30000)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2389.4, 1553.4, 1.1, 1.0, True)
39@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2389.4, 1553.4, 1.1)
Char.SetHeading(39@, 180.0)
Char.SetDecisionMaker(39@, 158@)
Char.GiveWeapon(39@, WeaponType.Tec9, 30000)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2404.7, 1545.5, 1.1, 1.0, True)
40@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2404.7, 1545.5, 1.1)
Char.SetHeading(40@, 266.2)
Char.SetDecisionMaker(40@, 158@)
Char.GiveWeapon(40@, WeaponType.Tec9, 30000)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2406.4, 1544.7, 1.1, 1.0, True)
41@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2406.4, 1544.7, 1.1)
Char.SetHeading(41@, 256.3)
Char.SetDecisionMaker(41@, 158@)
Char.GiveWeapon(41@, WeaponType.Tec9, 30000)
if 
  not Char.IsDead(45@)
goto_if_false @WUZI5_8691
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2372.5, 1551.0, 1.1, MoveState.Walk, -1)
Sequence.Close(156@)
Char.PerformSequence(45@, 156@)
Sequence.Clear(156@)
Blip.Remove(80@)
80@ = Blip.AddForChar(45@)

:WUZI5_8691
World.ClearArea(-2370.3, 1551.9, 1.2, 30.0, True)
62@ = Char.Create(PedType.Mission5, 210, -2370.3, 1551.9, 1.2)
Char.SetHeading(62@, 96.2)
Char.SetDecisionMaker(62@, 158@)
Char.SetOnlyDamagedByPlayer(62@, True)
Char.SetNeverTargeted(62@, True)
Camera.SetFixedPosition(-2375.2, 1555.9, 1.6, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2368.9, 1547.7, 3.8, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.ClearTasksImmediately($scplayer)
World.ClearArea(-2435.6, 1551.1, 4.0, 1.0, True)
Char.SetCoordinates($scplayer, -2435.6, 1551.1, 4.0)
Char.SetHeading($scplayer, 280.8)
Camera.DoFade(500, Fade.In)

:WUZI5_8902
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_8926
wait 0
goto @WUZI5_8902

:WUZI5_8926
92@ = 1
skip_cutscene_start_internal @WUZI5_10101
TIMERA = 0
91@ = 2

:WUZI5_8954
if 
  91@ == 2
goto_if_false @WUZI5_9054
if 
  not Char.IsDead(45@)
goto_if_false @WUZI5_9054
if 
  Char.LocateAnyMeans2D(45@, -2372.5, 1551.0, 1.0, 1.0, False)
goto_if_false @WUZI5_9054
113@ = 6
115@ = 0
gosub @WUZI5_26535
91@ = 3

:WUZI5_9054
if 
  91@ == 3
goto_if_false @WUZI5_9159
if 
  113@ == 0
goto_if_false @WUZI5_9159
if 
  not Char.IsDead(45@)
goto_if_false @WUZI5_9159
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2376.8, 1546.7, 1.1, MoveState.Walk, -1)
Sequence.Close(156@)
Char.PerformSequence(45@, 156@)
Sequence.Clear(156@)
91@ = 4

:WUZI5_9159
if 
  91@ == 4
goto_if_false @WUZI5_9654
if 
  TIMERA > 6000
goto_if_false @WUZI5_9654
Camera.DoFade(500, Fade.Out)

:WUZI5_9203
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_9227
wait 0
goto @WUZI5_9203

:WUZI5_9227
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_9259
goto @WUZI5_20666

:WUZI5_9259
if 
  not Char.IsDead(36@)
goto_if_false @WUZI5_9330
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2410.7, 1548.2, 1.1, MoveState.Walk, -1)
Task.AchieveHeading(-1, 90.0)
Sequence.Close(156@)
Char.PerformSequence(36@, 156@)
Sequence.Clear(156@)

:WUZI5_9330
if 
  not Char.IsDead(37@)
goto_if_false @WUZI5_9407
156@ = Sequence.Open()
Task.Pause(-1, 10)
Task.GoStraightToCoord(-1, -2409.9, 1551.0, 1.1, MoveState.Walk, -1)
Task.AchieveHeading(-1, 181.1)
Sequence.Close(156@)
Char.PerformSequence(37@, 156@)
Sequence.Clear(156@)

:WUZI5_9407
if 
  not Char.IsDead(38@)
goto_if_false @WUZI5_9498
156@ = Sequence.Open()
Task.Pause(-1, 15)
Task.GoStraightToCoord(-1, -2406.3, 1554.0, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2406.7, 1553.8, 1.1, MoveState.Walk, -1)
Sequence.Close(156@)
Char.PerformSequence(38@, 156@)
Sequence.Clear(156@)

:WUZI5_9498
Camera.SetFixedPosition(-2414.9, 1547.8, 2.3, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2409.7, 1549.5, 1.9, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:WUZI5_9556
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_9580
wait 0
goto @WUZI5_9556

:WUZI5_9580
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_9612
goto @WUZI5_20666

:WUZI5_9612
113@ = 7
115@ = 0
116@ = 1
gosub @WUZI5_26535
TIMERA = 0
91@ = 5

:WUZI5_9654
if 
  91@ == 5
goto_if_false @WUZI5_10007
if 
  not Char.IsDead(36@)
goto_if_false @WUZI5_10007
$task_status = Char.GetScriptTaskStatus(36@, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_10007
if 
  not Char.IsDead(36@)
goto_if_false @WUZI5_9785
156@ = Sequence.Open()
Task.AimGunAtCoord(-1, -2417.5, 1548.2, 2.1, 5000)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(156@)
Char.PerformSequence(36@, 156@)
Sequence.Clear(156@)

:WUZI5_9785
if 
  not Char.IsDead(37@)
goto_if_false @WUZI5_9878
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2405.0, 1551.0, 1.1, MoveState.Run, -1)
Task.AchieveHeading(-1, 261.2)
Task.Climb(-1, True)
Task.AchieveHeading(-1, 90.0)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(156@)
Char.PerformSequence(37@, 156@)
Sequence.Clear(156@)

:WUZI5_9878
if 
  not Char.IsDead(38@)
goto_if_false @WUZI5_9972
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2394.0, 1554.4, 1.1, MoveState.Sprint, -1)
Task.GoStraightToCoord(-1, -2393.5, 1545.1, 1.1, MoveState.Sprint, -1)
Task.AchieveHeading(-1, 0.0)
Sequence.Close(156@)
Char.PerformSequence(38@, 156@)
Sequence.Clear(156@)

:WUZI5_9972
113@ = 7
115@ = 1
116@ = 2
gosub @WUZI5_26535
91@ = 6

:WUZI5_10007
if 
  91@ == 6
goto_if_false @WUZI5_10057
if 
  113@ == 0
goto_if_false @WUZI5_10057
TIMERA = 0
91@ = 7

:WUZI5_10057
if 
  91@ == 7
goto_if_false @WUZI5_10888
if 
  TIMERA > 800
goto_if_false @WUZI5_10888
92@ = 0

:WUZI5_10101
skip_cutscene_end 
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_10135
goto @WUZI5_20666

:WUZI5_10135
if 
  92@ == 1
goto_if_false @WUZI5_10458
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
113@ = 0
Camera.DoFade(500, Fade.Out)

:WUZI5_10177
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_10201
wait 0
goto @WUZI5_10177

:WUZI5_10201
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_10233
goto @WUZI5_20666

:WUZI5_10233
if 
  not Char.IsDead(36@)
goto_if_false @WUZI5_10308
Char.ClearTasksImmediately(36@)
World.ClearArea(-2410.7, 1548.2, 1.1, 1.0, True)
Char.SetCoordinates(36@, -2410.7, 1548.2, 1.1)
Char.SetHeading(36@, 90.0)

:WUZI5_10308
if 
  not Char.IsDead(37@)
goto_if_false @WUZI5_10383
Char.ClearTasksImmediately(37@)
World.ClearArea(-2405.0, 1551.0, 1.1, 1.0, True)
Char.SetCoordinates(37@, -2405.0, 1551.0, 1.1)
Char.SetHeading(37@, 90.0)

:WUZI5_10383
if 
  not Char.IsDead(38@)
goto_if_false @WUZI5_10458
Char.ClearTasksImmediately(38@)
World.ClearArea(-2393.5, 1545.1, 1.1, 1.0, True)
Char.SetCoordinates(38@, -2393.5, 1545.1, 1.1)
Char.SetHeading(38@, 0.0)

:WUZI5_10458
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
if 
  not Char.IsDead(36@)
goto_if_false @WUZI5_10486
Char.SetDecisionMaker(36@, 157@)

:WUZI5_10486
if 
  not Char.IsDead(37@)
goto_if_false @WUZI5_10510
Char.SetDecisionMaker(37@, 157@)

:WUZI5_10510
if 
  not Char.IsDead(38@)
goto_if_false @WUZI5_10534
Char.SetDecisionMaker(38@, 157@)

:WUZI5_10534
if 
  not Char.IsDead(39@)
goto_if_false @WUZI5_10558
Char.SetDecisionMaker(39@, 157@)

:WUZI5_10558
if 
  not Char.IsDead(40@)
goto_if_false @WUZI5_10582
Char.SetDecisionMaker(40@, 157@)

:WUZI5_10582
if 
  not Char.IsDead(41@)
goto_if_false @WUZI5_10606
Char.SetDecisionMaker(41@, 157@)

:WUZI5_10606
if 
  not Char.IsDead(45@)
goto_if_false @WUZI5_10681
Char.ClearTasks(45@)
World.ClearArea(-2377.0, 1535.6, 1.1, 1.0, True)
Char.SetCoordinates(45@, -2377.0, 1535.6, 1.1)
Char.SetHeading(45@, 90.0)

:WUZI5_10681
Char.ClearTasksImmediately($scplayer)
World.ClearArea(-2435.6, 1551.1, 4.0, 1.0, True)
Char.SetCoordinates($scplayer, -2435.6, 1551.1, 4.0)
Char.SetHeading($scplayer, 280.8)
Game.ShutAllCharsUp(False)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Text.ClearPrints
Text.PrintNow('WUZ4_05', 4000, 1)
if 
  92@ == 1
goto_if_false @WUZI5_10867
Camera.DoFade(500, Fade.In)

:WUZI5_10811
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_10835
wait 0
goto @WUZI5_10811

:WUZI5_10835
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_10867
goto @WUZI5_20666

:WUZI5_10867
114@ = 0
91@ = 0
90@ = 4

:WUZI5_10888
if 
  90@ == 4
goto_if_false @WUZI5_16191
if 
  5 > 91@
goto_if_false @WUZI5_11114
if 
  Char.IsInArea3D($scplayer, -2381.7, 1546.2, 0.0, -2365.1, 1556.1, 6.5, False)
goto_if_false @WUZI5_11114
if 
  113@ == 0
goto_if_false @WUZI5_11043
if 
  114@ == 0
goto_if_false @WUZI5_11043
113@ = 9
115@ = 0
116@ = 1
gosub @WUZI5_26535
114@ = 1

:WUZI5_11043
if 
  113@ == 0
goto_if_false @WUZI5_11114
if 
  114@ == 1
goto_if_false @WUZI5_11114
113@ = 9
115@ = 1
116@ = 2
gosub @WUZI5_26535
114@ = 2

:WUZI5_11114
if 
  Char.IsDead(62@)
goto_if_false @WUZI5_11155
Text.ClearPrints
Text.PrintNow('WUZ4_03', 4000, 1)
goto @WUZI5_20666

:WUZI5_11155
if 
  91@ == 0
goto_if_false @WUZI5_11611
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @WUZI5_11229
if 
  not Char.IsDead(45@)
goto_if_false @WUZI5_11209
Char.ExplodeHead(45@)

:WUZI5_11209
Char.SetCoordinates($scplayer, -2374.0, 1551.0, 2.0)

:WUZI5_11229
if 
  not Char.IsDead(45@)
goto_if_false @WUZI5_11604
if 
  Char.IsInArea3D($scplayer, -2370.4, 1533.6, 1.1, -2408.5, 1537.4, 5.2, False)
goto_if_false @WUZI5_11344
Task.ShootAtCoord(45@, -2400.1, 1535.3, 1.1, 500)
113@ = 8
115@ = 0
gosub @WUZI5_26535
91@ = 1

:WUZI5_11344
if 
  Char.IsInArea3D($scplayer, -2375.1, 1556.2, 1.1, -2379.2, 1537.3, 5.2, False)
goto_if_false @WUZI5_11443
Task.ShootAtCoord(45@, -2377.0, 1552.4, 1.1, 500)
113@ = 8
115@ = 0
gosub @WUZI5_26535
91@ = 1

:WUZI5_11443
if 
  not Char.IsInArea3D($scplayer, -2375.1, 1556.2, 1.1, -2379.2, 1537.3, 5.2, False)
goto_if_false @WUZI5_11597
if 
  not Char.IsInArea3D($scplayer, -2370.4, 1533.6, 1.1, -2408.5, 1537.4, 5.2, False)
goto_if_false @WUZI5_11597
if 
  Char.HasBeenDamagedByChar(45@, $scplayer)
goto_if_false @WUZI5_11597
Char.RemoveWeapon(45@, WeaponType.Grenade)
Char.GiveWeapon(45@, WeaponType.Tec9, 30000)
Char.SetCurrentWeapon(45@, WeaponType.Tec9)
Task.KillCharOnFoot(45@, $scplayer)
91@ = 3

:WUZI5_11597
goto @WUZI5_11611

:WUZI5_11604
91@ = 3

:WUZI5_11611
if 
  91@ == 1
goto_if_false @WUZI5_11760
if 
  not Char.IsDead(45@)
goto_if_false @WUZI5_11753
$task_status = Char.GetScriptTaskStatus(45@, 1640)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_11746
Char.GiveWeapon(45@, WeaponType.Tec9, 30000)
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2377.4, 1539.1, 1.1, MoveState.Run, -1)
Task.AchieveHeading(-1, 90.0)
Sequence.Close(156@)
Char.PerformSequence(45@, 156@)
Sequence.Clear(156@)
91@ = 2

:WUZI5_11746
goto @WUZI5_11760

:WUZI5_11753
91@ = 3

:WUZI5_11760
if 
  91@ == 2
goto_if_false @WUZI5_12021
if 
  not Char.IsDead(45@)
goto_if_false @WUZI5_12014
$task_status = Char.GetScriptTaskStatus(45@, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_12007
if or
  Char.IsInArea3D($scplayer, -2370.4, 1533.6, 0.0, -2408.5, 1537.4, 4.0, False)
  Char.HasBeenDamagedByChar($scplayer, 45@)
goto_if_false @WUZI5_11922
156@ = Sequence.Open()
Task.WeaponRoll(-1, False)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(156@)
Char.PerformSequence(45@, 156@)
Sequence.Clear(156@)
91@ = 3

:WUZI5_11922
if 
  Char.IsInArea3D($scplayer, -2375.1, 1556.2, 1.1, -2379.2, 1537.3, 5.2, False)
goto_if_false @WUZI5_12007
156@ = Sequence.Open()
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(156@)
Char.PerformSequence(45@, 156@)
Sequence.Clear(156@)
91@ = 3

:WUZI5_12007
goto @WUZI5_12021

:WUZI5_12014
91@ = 3

:WUZI5_12021
if 
  91@ == 3
goto_if_false @WUZI5_12141
if 
  Char.IsDead(45@)
goto_if_false @WUZI5_12141
Object.MakeTargetable(79@, True)
Blip.Remove(80@)
80@ = Blip.AddForObject(79@)
if 
  Object.DoesExist(79@)
goto_if_false @WUZI5_12134
160@ = Object.GetHealth(79@)
if 
  999 <= 160@
goto_if_false @WUZI5_12134
Text.PrintNow('WUZ4_09', 11000, 1)

:WUZI5_12134
91@ = 4

:WUZI5_12141
if 
  91@ == 4
goto_if_false @WUZI5_12244
if 
  Object.DoesExist(79@)
goto_if_false @WUZI5_12230
160@ = Object.GetHealth(79@)
if 
  999 > 160@
goto_if_false @WUZI5_12223
Object.Break(79@, 0)
TIMERA = 0
91@ = 5

:WUZI5_12223
goto @WUZI5_12244

:WUZI5_12230
TIMERA = 0
91@ = 5

:WUZI5_12244
if 
  91@ == 5
goto_if_false @WUZI5_12996
if 
  TIMERA > 1000
goto_if_false @WUZI5_12996
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
113@ = 0
Text.ClearPrints
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Game.ShutAllCharsUp(True)
Object.Delete(79@)
DecisionMakerChar.ClearEventResponse(158@, 13)
DecisionMakerChar.ClearEventResponse(158@, 44)
Streaming.MarkModelAsNoLongerNeeded(342)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 1819)

:WUZI5_12348
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @WUZI5_12374
wait 0
goto @WUZI5_12348

:WUZI5_12374
Streaming.RequestModel(339)
Streaming.RequestModel(49)
Streaming.RequestModel(58)
Streaming.RequestAnimation("GANGS")
Streaming.LoadAllModelsNow
gosub @WUZI5_24711
Char.ClearTasksImmediately($scplayer)
World.ClearArea(-2373.9, 1552.1, 1.1, 1.0, True)
Char.SetCoordinates($scplayer, -2373.9, 1552.1, 1.1)
Char.SetHeading($scplayer, 267.0)
Camera.SetFixedPosition(-2375.0, 1547.2, 2.0, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2370.9, 1555.3, 2.7, SwitchType.JumpCut)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2473.3, 1536.3, 27.8, 1.0, True)
68@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2473.3, 1536.3, 27.8)
Char.SetHeading(68@, 12.6)
Char.SetDecisionMaker(68@, 157@)
Char.GiveWeapon(68@, WeaponType.Tec9, 3000)
Char.SetKindaStayInSamePlace(68@, True)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2476.3, 1536.3, 27.8, 1.0, True)
69@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2476.3, 1536.3, 27.8)
Char.SetHeading(69@, 321.5)
Char.SetDecisionMaker(69@, 157@)
Char.GiveWeapon(69@, WeaponType.Tec9, 3000)
Char.SetKindaStayInSamePlace(69@, True)
99@ = Math.RandomIntInRange(0, 2)
World.ClearArea(-2470.3, 1546.9, 22.6, 1.0, True)
70@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2470.3, 1546.9, 22.6)
Char.SetHeading(70@, 265.4)
Char.SetDecisionMaker(70@, 157@)
Char.GiveWeapon(70@, WeaponType.Tec9, 3000)
Char.SetKindaStayInSamePlace(70@, True)
World.ClearArea(-2471.5, 1548.2, 32.2, 1.0, True)
65@ = Char.Create(PedType.Mission2, 49, -2471.5, 1548.2, 32.2)
Char.SetHeading(65@, 130.0)
Char.GiveWeapon(65@, WeaponType.Katana, 1)
Char.SetShootRate(65@, 70)
Blip.Remove(80@)
80@ = Blip.AddForChar(65@)
Blip.ChangeScale(80@, 1)
Char.SetDecisionMaker(65@, 158@)
Task.PlayAnimNonInterruptable(65@, "TAI_CHI_LOOP", "PARK", 4.0, True, False, False, False, -1)
92@ = 1
skip_cutscene_start_internal @WUZI5_14511
Audio.ReportMissionAudioEventAtPosition(-2371.55, 1552.66, 1.245, 1110)
TIMERA = 0
91@ = 6

:WUZI5_12996
if 
  91@ == 6
goto_if_false @WUZI5_13630
if 
  Object.DoesExist(77@)
goto_if_false @WUZI5_13047
  Object.Rotate(77@, 180.0, 2.0, False)

:WUZI5_13047
if 
  Object.DoesExist(78@)
goto_if_false @WUZI5_13080
  Object.Rotate(78@, 360.0, 2.0, False)

:WUZI5_13080
if 
  not Char.IsDead(62@)
goto_if_false @WUZI5_13179
156@ = Sequence.Open()
Task.Pause(-1, 1000)
Task.GoStraightToCoord(-1, -2372.8, 1551.8, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2374.4, 1551.9, 1.1, MoveState.Walk, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(156@)
Char.PerformSequence(62@, 156@)
Sequence.Clear(156@)

:WUZI5_13179
if 
  TIMERA > 2000
goto_if_false @WUZI5_13630
if 
  not Char.IsDead(59@)
goto_if_false @WUZI5_13327
156@ = Sequence.Open()
Task.Pause(-1, 900)
Task.GoStraightToCoord(-1, -2372.8, 1552.1, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2373.4, 1553.3, 1.1, MoveState.Walk, -1)
Task.PlayAnim(-1, "IDLE_TIRED", "PED", 4.0, False, False, False, False, 4000)
Sequence.Close(156@)
Char.PerformSequence(59@, 156@)
Sequence.Clear(156@)

:WUZI5_13327
if 
  not Char.IsDead(60@)
goto_if_false @WUZI5_13426
156@ = Sequence.Open()
Task.Pause(-1, 2000)
Task.GoStraightToCoord(-1, -2372.8, 1552.1, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2374.1, 1550.6, 1.1, MoveState.Walk, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(156@)
Char.PerformSequence(60@, 156@)
Sequence.Clear(156@)

:WUZI5_13426
if 
  not Char.IsDead(61@)
goto_if_false @WUZI5_13504
156@ = Sequence.Open()
Task.Pause(-1, 2500)
Task.GoStraightToCoord(-1, -2372.8, 1552.1, 1.1, MoveState.Walk, -1)
Task.AchieveHeading(-1, 6.7)
Sequence.Close(156@)
Char.PerformSequence(61@, 156@)
Sequence.Clear(156@)

:WUZI5_13504
World.ClearArea(-2376.1, 1552.5, 1.1, 1.0, True)
Char.SetCoordinates($scplayer, -2376.1, 1552.5, 1.1)
Char.SetHeading($scplayer, 264.4)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Camera.SetFixedPosition(-2376.9, 1554.3, 2.0, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2370.6, 1549.7, 2.7, SwitchType.JumpCut)
TIMERA = 0
91@ = 7

:WUZI5_13630
if 
  91@ == 7
goto_if_false @WUZI5_13793
if 
  not Char.IsDead(62@)
goto_if_false @WUZI5_13793
$task_status = Char.GetScriptTaskStatus(62@, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_13793
156@ = Sequence.Open()
Task.PlayAnim(-1, "PRTIAL_GNGTLKE", "GANGS", 4.0, False, False, False, False, -1)
Sequence.Close(156@)
Char.PerformSequence(62@, 156@)
Sequence.Clear(156@)
113@ = 10
115@ = 0
116@ = 2
gosub @WUZI5_26535
91@ = 8

:WUZI5_13793
if 
  91@ == 8
goto_if_false @WUZI5_14161
if 
  TIMERA > 6000
goto_if_false @WUZI5_14161
if 
  113@ == 0
goto_if_false @WUZI5_14161
Camera.DoFade(500, Fade.Out)

:WUZI5_13855
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_13879
wait 0
goto @WUZI5_13855

:WUZI5_13879
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_13911
goto @WUZI5_20666

:WUZI5_13911
Streaming.LoadScene(-2465.5, 1547.1, 22.7)
if 
  not Char.IsDead(70@)
goto_if_false @WUZI5_14013
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2468.9, 1547.2, 22.7, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2465.5, 1547.1, 22.7, MoveState.Walk, -1)
Sequence.Close(156@)
Char.PerformSequence(70@, 156@)
Sequence.Clear(156@)

:WUZI5_14013
Camera.SetFixedPosition(-2460.0, 1552.1, 22.9, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2468.1, 1543.8, 25.9, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:WUZI5_14071
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_14095
wait 0
goto @WUZI5_14071

:WUZI5_14095
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_14127
goto @WUZI5_20666

:WUZI5_14127
Audio.ReportMissionAudioEventAtPosition(-2468.0, 1547.3, 22.8, 1111)
TIMERA = 0
91@ = 9

:WUZI5_14161
if 
  91@ == 9
goto_if_false @WUZI5_14467
if 
  Object.DoesExist($portakabin_num)
goto_if_false @WUZI5_14212
  Object.Rotate($portakabin_num, 90.0, 2.0, False)

:WUZI5_14212
if 
  TIMERA > 6000
goto_if_false @WUZI5_14467
Camera.DoFade(500, Fade.Out)

:WUZI5_14238
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_14262
wait 0
goto @WUZI5_14238

:WUZI5_14262
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_14294
goto @WUZI5_20666

:WUZI5_14294
Streaming.LoadScene(-2471.5, 1548.2, 32.2)
Camera.SetFixedPosition(-2476.5, 1546.5, 33.8, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2462.6, 1546.8, 32.7, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:WUZI5_14369
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_14393
wait 0
goto @WUZI5_14369

:WUZI5_14393
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_14425
goto @WUZI5_20666

:WUZI5_14425
113@ = 10
115@ = 2
116@ = 3
gosub @WUZI5_26535
TIMERA = 0
91@ = 10

:WUZI5_14467
if 
  91@ == 10
goto_if_false @WUZI5_16191
if 
  TIMERA > 7000
goto_if_false @WUZI5_16191
92@ = 0

:WUZI5_14511
skip_cutscene_end 
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_14545
goto @WUZI5_20666

:WUZI5_14545
if 
  92@ == 1
goto_if_false @WUZI5_14643
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
113@ = 0
Camera.DoFade(500, Fade.Out)

:WUZI5_14587
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_14611
wait 0
goto @WUZI5_14587

:WUZI5_14611
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_14643
goto @WUZI5_20666

:WUZI5_14643
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
if 
  not Char.IsDead(59@)
goto_if_false @WUZI5_14929
Char.ClearTasksImmediately(59@)
World.ClearArea(-2373.4, 1553.3, 1.1, 1.0, True)
Char.SetCoordinates(59@, -2373.4, 1553.3, 1.1)
Char.SetHeading(59@, 120.0)
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2377.1, 1546.4, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2377.2, 1535.3, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2404.0, 1534.8, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2407.6, 1544.3, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2393.1, 1546.5, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2393.4, 1554.2, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2405.2, 1554.5, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2432.3, 1544.7, 1.1, MoveState.Walk, -1)
Sequence.Close(156@)
Char.PerformSequence(59@, 156@)
Sequence.Clear(156@)

:WUZI5_14929
if 
  not Char.IsDead(60@)
goto_if_false @WUZI5_15211
Char.ClearTasksImmediately(60@)
World.ClearArea(-2374.1, 1550.6, 1.1, 1.0, True)
Char.SetCoordinates(60@, -2374.1, 1550.6, 1.1)
Char.SetHeading(60@, 63.1)
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2377.1, 1546.4, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2377.2, 1535.3, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2404.0, 1534.8, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2407.6, 1544.3, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2393.1, 1546.5, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2393.4, 1554.2, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2405.2, 1554.5, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2430.6, 1543.7, 1.1, MoveState.Walk, -1)
Sequence.Close(156@)
Char.PerformSequence(60@, 156@)
Sequence.Clear(156@)

:WUZI5_15211
if 
  not Char.IsDead(61@)
goto_if_false @WUZI5_15493
Char.ClearTasksImmediately(61@)
World.ClearArea(-2372.8, 1552.1, 1.1, 1.0, True)
Char.SetCoordinates(61@, -2372.8, 1552.1, 1.1)
Char.SetHeading(61@, 90.0)
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2377.1, 1546.4, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2377.2, 1535.3, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2404.0, 1534.8, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2407.6, 1544.3, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2393.1, 1546.5, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2393.4, 1554.2, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2405.2, 1554.5, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2430.4, 1545.8, 1.1, MoveState.Walk, -1)
Sequence.Close(156@)
Char.PerformSequence(61@, 156@)
Sequence.Clear(156@)

:WUZI5_15493
if 
  not Char.IsDead(62@)
goto_if_false @WUZI5_15775
Char.ClearTasksImmediately(62@)
World.ClearArea(-2374.4, 1551.9, 1.1, 1.0, True)
Char.SetCoordinates(62@, -2374.4, 1551.9, 1.1)
Char.SetHeading(62@, 90.0)
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2377.1, 1546.4, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2377.2, 1535.3, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2404.0, 1534.8, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2407.6, 1544.3, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2393.1, 1546.5, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2393.4, 1554.2, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2405.2, 1554.5, 1.1, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -2428.4, 1544.6, 1.1, MoveState.Walk, -1)
Sequence.Close(156@)
Char.PerformSequence(62@, 156@)
Sequence.Clear(156@)

:WUZI5_15775
if 
  Object.DoesExist(77@)
goto_if_false @WUZI5_15808
  Object.Rotate(77@, 180.0, 360.0, False)

:WUZI5_15808
if 
  Object.DoesExist(78@)
goto_if_false @WUZI5_15841
  Object.Rotate(78@, 360.0, 360.0, False)

:WUZI5_15841
if 
  Object.DoesExist($portakabin_num)
goto_if_false @WUZI5_15874
  Object.Rotate($portakabin_num, 90.0, 100.0, False)

:WUZI5_15874
if 
  not Char.IsDead(70@)
goto_if_false @WUZI5_15934
World.ClearArea(-2466.9, 1546.9, 22.7, 30.0, True)
Char.SetCoordinates(70@, -2466.9, 1546.9, 22.7)

:WUZI5_15934
if 
  not Char.IsDead(65@)
goto_if_false @WUZI5_15955
Char.ClearTasks(65@)

:WUZI5_15955
Streaming.MarkModelAsNoLongerNeeded(#CJ_PADLOCK)
DecisionMakerChar.AddEventResponse(158@, 44, 510, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse(158@, 13, 917, 0.0, 100.0, 0.0, 0.0, False, True)
Game.ShutAllCharsUp(False)
Char.SetHealth($scplayer, 100)
Streaming.RemoveAnimation("PARK")
Streaming.RemoveAnimation("GANGS")
Text.ClearPrints
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Text.PrintNow('BRIDGE', 7000, 1)
if 
  92@ == 1
goto_if_false @WUZI5_16177
Camera.DoFade(500, Fade.In)

:WUZI5_16121
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_16145
wait 0
goto @WUZI5_16121

:WUZI5_16145
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_16177
goto @WUZI5_20666

:WUZI5_16177
91@ = 0
90@ = 5

:WUZI5_16191
if 
  90@ == 5
goto_if_false @WUZI5_18809
if 
  90@ == 5
goto_if_false @WUZI5_16311
if 
  4 > 96@
goto_if_false @WUZI5_16304
if 
  Char.IsDead(59@(96@,4i))
goto_if_false @WUZI5_16290
Text.ClearPrints
Text.PrintNow('WUZ4_03', 4000, 1)
goto @WUZI5_20666

:WUZI5_16290
96@ += 1
goto @WUZI5_16311

:WUZI5_16304
96@ = 0

:WUZI5_16311
if 
  91@ == 0
goto_if_false @WUZI5_17136
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @WUZI5_16364
Char.SetCoordinates($scplayer, -2477.4, 1537.0, 27.8)

:WUZI5_16364
if 
  Char.IsInArea3D($scplayer, -2476.4, 1538.0, 29.8, -2479.2, 1550.5, 35.2, False)
goto_if_false @WUZI5_17136
Camera.DoFade(1000, Fade.Out)

:WUZI5_16419
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_16443
wait 0
goto @WUZI5_16419

:WUZI5_16443
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_16475
goto @WUZI5_20666

:WUZI5_16475
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
113@ = 0
World.ClearArea(-2466.9, 1546.9, 22.7, 30.0, True)
World.ClearArea(-2478.4, 1539.0, 29.5, 1.0, True)
Char.SetCoordinates($scplayer, -2478.4, 1539.0, 29.5)
Char.SetHeading($scplayer, 0.0)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.ShutAllCharsUp(True)
Streaming.RequestModel(#KATANA_ANIM)
Streaming.RequestModel(#KATANA_LHAND)
Streaming.RequestAnimation("MISC")
Streaming.LoadAllModelsNow
74@ = Object.Create(#KATANA_ANIM, -2472.6, 1538.5, 32.3)
if 
  not Char.IsDead(65@)
goto_if_false @WUZI5_16776
Char.ClearTasksImmediately(65@)
World.ClearArea(-2472.3, 1551.5, 32.2, 1.0, True)
Char.SetCoordinates(65@, -2472.3, 1551.5, 32.2)
Char.SetHeading(65@, 135.0)
75@ = Object.Create(#KATANA_LHAND, -2117.0, 654.0, 59.7)
Task.PickUpObject(65@, 75@, 0.0, 0.0, 0.0, 5, 16, "NULL", "NULL", 0)

:WUZI5_16776
if 
  not Char.IsDead(68@)
goto_if_false @WUZI5_16805
Char.SetDecisionMaker(68@, 158@)
Char.ClearTasksImmediately(68@)

:WUZI5_16805
if 
  not Char.IsDead(69@)
goto_if_false @WUZI5_16834
Char.SetDecisionMaker(69@, 158@)
Char.ClearTasksImmediately(69@)

:WUZI5_16834
if 
  not Char.IsDead(70@)
goto_if_false @WUZI5_16863
Char.SetDecisionMaker(70@, 158@)
Char.ClearTasksImmediately(70@)

:WUZI5_16863
if 
  not Char.IsDead(65@)
goto_if_false @WUZI5_16908
140@, 141@, 142@ = Char.GetOffsetInWorldCoords(65@, 0.0, 4.0, -1.0)

:WUZI5_16908
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2477.9, 1543.7, 31.7, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 140@, 141@, 142@, MoveState.Walk, -1)
if 
  not Char.IsDead(65@)
goto_if_false @WUZI5_16976
Task.TurnCharToFaceChar(-1, 65@)

:WUZI5_16976
Sequence.Close(156@)
Char.PerformSequence($scplayer, 156@)
Sequence.Clear(156@)
Camera.SetFixedPosition(-2472.8, 1554.0, 33.5, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2474.5, 1542.2, 33.2, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)

:WUZI5_17052
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_17076
wait 0
goto @WUZI5_17052

:WUZI5_17076
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_17108
goto @WUZI5_20666

:WUZI5_17108
TIMERA = 0
92@ = 1
skip_cutscene_start_internal @WUZI5_17880
91@ = 1

:WUZI5_17136
if 
  91@ == 1
goto_if_false @WUZI5_17511
$task_status = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_17511
113@ = 13
115@ = 0
gosub @WUZI5_26535
World.ClearArea(140@, 141@, 142@, 1.0, True)
Char.SetCoordinates($scplayer, 140@, 141@, 142@)
Char.SetHeading($scplayer, 315.0)
if 
  not Char.IsDead(65@)
goto_if_false @WUZI5_17511
if 
  Object.DoesExist(75@)
goto_if_false @WUZI5_17511
Object.Delete(75@)
140@, 141@, 142@ = Char.GetOffsetInWorldCoords(65@, 0.0, 2.0, -1.0)
Object.SetCoordinates(74@, 140@, 141@, 142@)
Object.SetHeading(74@, 315.0)
140@, 141@, 142@ = Char.GetOffsetInWorldCoords(65@, 0.0, 4.0, 0.0)
Char.ClearTasksImmediately(65@)
Task.PlayAnim(65@, "KAT_THROW_K", "MISC", 1000.0, False, False, False, False, -1)
Char.ClearTasksImmediately($scplayer)
Task.PlayAnim($scplayer, "KAT_THROW_P", "MISC", 1000.0, False, False, False, False, -1)
Camera.SetFixedPosition(-2475.1, 1547.1, 33.3, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2472.2, 1553.0, 33.7, SwitchType.JumpCut)
91@ = 3

:WUZI5_17511
if 
  91@ == 3
goto_if_false @WUZI5_17818
if 
  Object.DoesExist(74@)
goto_if_false @WUZI5_17818
if 
  not Char.IsDead(65@)
goto_if_false @WUZI5_17818
if 
  Char.IsPlayingAnim($scplayer, "KAT_THROW_P")
goto_if_false @WUZI5_17735
143@ = Char.GetAnimCurrentTime($scplayer, "KAT_THROW_P")
if 
  Object.IsPlayingAnim(74@, "KAT_THROW_O")
goto_if_false @WUZI5_17668
Object.SetAnimCurrentTime(74@, "KAT_THROW_O", 143@)
goto @WUZI5_17735

:WUZI5_17668
if 
Object.PlayAnim(74@, "KAT_THROW_O", "MISC", 10000.0, False, False)
goto_if_false @WUZI5_17735
Object.SetAnimSpeed(74@, "KAT_THROW_O", 0.0)

:WUZI5_17735
if 
  Char.IsPlayingAnim($scplayer, "KAT_THROW_P")
goto_if_false @WUZI5_17818
143@ = Char.GetAnimCurrentTime($scplayer, "KAT_THROW_P")
if 
  143@ == 1.0
goto_if_false @WUZI5_17818
Object.Delete(74@)
91@ = 4

:WUZI5_17818
if 
  91@ == 4
goto_if_false @WUZI5_18697
if 
  113@ == 0
goto_if_false @WUZI5_18697
if 
  TIMERA > 8000
goto_if_false @WUZI5_18697
92@ = 0

:WUZI5_17880
skip_cutscene_end 
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_17914
goto @WUZI5_20666

:WUZI5_17914
if 
  92@ == 1
goto_if_false @WUZI5_18102
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
113@ = 0
Camera.DoFade(500, Fade.Out)

:WUZI5_17956
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_17980
wait 0
goto @WUZI5_17956

:WUZI5_17980
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_18012
goto @WUZI5_20666

:WUZI5_18012
Object.Delete(75@)
Object.Delete(74@)
if 
  not Char.IsDead(65@)
goto_if_false @WUZI5_18043
Char.ClearTasksImmediately(65@)

:WUZI5_18043
Char.ClearTasksImmediately($scplayer)
World.ClearArea(-2475.5, 1546.7, 32.2, 1.0, True)
Char.SetCoordinates($scplayer, -2475.5, 1546.7, 32.2)
Char.SetHeading($scplayer, 315.0)

:WUZI5_18102
if 
  not Char.IsDead(59@)
goto_if_false @WUZI5_18177
Char.ClearTasksImmediately(59@)
World.ClearArea(-2439.5, 1561.3, 16.3, 1.0, True)
Char.SetCoordinates(59@, -2439.5, 1561.3, 16.3)
Char.SetHeading(59@, 11.0)

:WUZI5_18177
if 
  not Char.IsDead(60@)
goto_if_false @WUZI5_18252
Char.ClearTasksImmediately(60@)
World.ClearArea(-2437.7, 1561.5, 16.3, 1.0, True)
Char.SetCoordinates(60@, -2437.7, 1561.5, 16.3)
Char.SetHeading(60@, 177.5)

:WUZI5_18252
if 
  not Char.IsDead(61@)
goto_if_false @WUZI5_18327
Char.ClearTasksImmediately(61@)
World.ClearArea(-2438.8, 1560.0, 16.3, 1.0, True)
Char.SetCoordinates(61@, -2438.8, 1560.0, 16.3)
Char.SetHeading(61@, 183.9)

:WUZI5_18327
if 
  not Char.IsDead(62@)
goto_if_false @WUZI5_18402
Char.ClearTasksImmediately(62@)
World.ClearArea(-2436.6, 1561.8, 16.3, 1.0, True)
Char.SetCoordinates(62@, -2436.6, 1561.8, 16.3)
Char.SetHeading(62@, 9.5)

:WUZI5_18402
if 
  not Char.IsDead(65@)
goto_if_false @WUZI5_18478
World.ClearArea(-2472.7, 1551.4, 32.2, 1.0, True)
Char.SetCoordinates(65@, -2472.7, 1551.4, 32.2)
Task.KillCharOnFoot(65@, $scplayer)
Char.SetDecisionMaker(65@, 157@)

:WUZI5_18478
if 
  not Char.IsDead(68@)
goto_if_false @WUZI5_18507
Char.SetDecisionMaker(68@, 157@)
Char.ClearTasksImmediately(68@)

:WUZI5_18507
if 
  not Char.IsDead(69@)
goto_if_false @WUZI5_18536
Char.SetDecisionMaker(69@, 157@)
Char.ClearTasksImmediately(69@)

:WUZI5_18536
if 
  not Char.IsDead(70@)
goto_if_false @WUZI5_18565
Char.SetDecisionMaker(70@, 157@)
Char.ClearTasksImmediately(70@)

:WUZI5_18565
Game.ShutAllCharsUp(False)
Char.GiveWeapon($scplayer, WeaponType.Katana, 1)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Char.SetCurrentWeapon($scplayer, WeaponType.Katana)
if 
  92@ == 1
goto_if_false @WUZI5_18690
Camera.DoFade(500, Fade.In)

:WUZI5_18634
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_18658
wait 0
goto @WUZI5_18634

:WUZI5_18658
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_18690
goto @WUZI5_20666

:WUZI5_18690
91@ = 5

:WUZI5_18697
if 
  Char.IsDead(65@)
goto_if_false @WUZI5_18718
Blip.Remove(80@)

:WUZI5_18718
if 
  Char.IsDead(65@)
goto_if_false @WUZI5_18809
Text.ClearPrints
Blip.Remove(80@)
if 
  not Char.IsDead(62@)
goto_if_false @WUZI5_18772
80@ = Blip.AddForChar(62@)
Blip.SetAsFriendly(80@, True)

:WUZI5_18772
Text.PrintNow('WUZ4_11', 4000, 1)
91@ = 0
TIMERA = 0
90@ = 6

:WUZI5_18809
if 
  90@ == 6
goto_if_false @WUZI5_19695
if 
  91@ == 0
goto_if_false @WUZI5_19000
if 
  4 > 96@
goto_if_false @WUZI5_18922
if 
  Char.IsDead(59@(96@,4i))
goto_if_false @WUZI5_18908
Text.ClearPrints
Text.PrintNow('WUZ4_03', 4000, 1)
goto @WUZI5_20666

:WUZI5_18908
96@ += 1
goto @WUZI5_18929

:WUZI5_18922
96@ = 0

:WUZI5_18929
if 
  not Char.IsDead(62@)
goto_if_false @WUZI5_19000
if 
  Char.LocateAnyMeansChar3D($scplayer, 62@, 4.0, 4.0, 4.0, False)
goto_if_false @WUZI5_19000
Blip.Remove(80@)
Player.SetControl($player1, False)
91@ = 1

:WUZI5_19000
if 
  91@ == 1
goto_if_false @WUZI5_19056
Camera.DoFade(2000, Fade.Out)

:WUZI5_19025
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_19049
wait 0
goto @WUZI5_19025

:WUZI5_19049
91@ = 2

:WUZI5_19056
if 
  91@ == 2
goto_if_false @WUZI5_19525
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
113@ = 0
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.ShutAllCharsUp(True)
Camera.SetFixedPosition(-2425.8, 1562.4, 1.3, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2451.2, 1582.3, 3.4, SwitchType.JumpCut)
Streaming.RequestModel(473)
Streaming.LoadAllModelsNow
World.ClearArea(-2430.7, 1563.6, 0.0, 5.0, True)
53@ = Car.Create(473, -2430.7, 1563.6, 0.0)
World.ClearArea(-2442.4, 1564.6, 0.0, 5.0, True)
54@ = Car.Create(473, -2442.4, 1564.6, 0.0)
World.ClearArea(-2426.9, 1570.6, 0.0, 5.0, True)
55@ = Car.Create(473, -2426.9, 1570.6, 0.0)
if 
  not Char.IsDead(59@)
goto_if_false @WUZI5_19355
Char.AttachToCar(59@, 54@, 0.5, -1.0, 1.0, 0, 360.0, WeaponType.Unarmed)

:WUZI5_19355
if 
  not Char.IsDead(60@)
goto_if_false @WUZI5_19403
Char.AttachToCar(60@, 54@, -0.5, -1.0, 1.0, 0, 360.0, WeaponType.Unarmed)

:WUZI5_19403
if 
  not Char.IsDead(61@)
goto_if_false @WUZI5_19427
Char.WarpIntoCar(61@, 54@)

:WUZI5_19427
if 
  not Char.IsDead(62@)
goto_if_false @WUZI5_19451
Char.WarpIntoCar(62@, 55@)

:WUZI5_19451
Char.WarpIntoCar($scplayer, 53@)
113@ = 11
115@ = 0
gosub @WUZI5_26535
Camera.DoFade(2000, Fade.In)

:WUZI5_19487
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_19511
wait 0
goto @WUZI5_19487

:WUZI5_19511
TIMERA = 0
91@ = 3

:WUZI5_19525
if 
  91@ == 3
goto_if_false @WUZI5_19621
if 
  TIMERA > 2000
goto_if_false @WUZI5_19621
if 
  not Car.IsDead(54@)
goto_if_false @WUZI5_19588
Car.SetTempAction(54@, TempAction.GoForward, 5000)

:WUZI5_19588
if 
  not Car.IsDead(55@)
goto_if_false @WUZI5_19614
Car.SetTempAction(55@, TempAction.GoForward, 5000)

:WUZI5_19614
91@ = 4

:WUZI5_19621
if 
  91@ == 4
goto_if_false @WUZI5_19695
if 
  TIMERA > 6000
goto_if_false @WUZI5_19695
Car.Delete(54@)
Car.Delete(55@)
Char.Delete(59@)
Char.Delete(60@)
Char.Delete(61@)
Char.Delete(62@)
goto @WUZI5_20684

:WUZI5_19695
if 
  90@ > 2
goto_if_false @WUZI5_20652
if 
  103@ == 0
goto_if_false @WUZI5_19797
if 
  Char.IsInWater($scplayer)
goto_if_false @WUZI5_19797
Blip.Remove(80@)
80@ = Blip.AddForCoord(-2329.1, 1528.7, 0.0)
Text.ClearPrints
Text.PrintNow('WUZ4_02', 7000, 1)
103@ = 1

:WUZI5_19797
if 
  103@ == 1
goto_if_false @WUZI5_20180
if 
  Char.LocateAnyMeans3D($scplayer, -2329.1, 1528.7, 0.0, 4.0, 4.0, 4.0, True)
goto_if_false @WUZI5_20180
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:WUZI5_19872
if 
  Camera.GetFadingStatus
goto_if_false @WUZI5_19896
wait 0
goto @WUZI5_19872

:WUZI5_19896
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
113@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
71@ = Object.Create(#KMB_CONTAINER_RED, -2323.9, 1527.3, 14.0)
Object.SetCollision(71@, True)
Object.SetDynamic(71@, False)
Object.SetVisible(71@, False)
wait 0
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_20013
goto @WUZI5_20666

:WUZI5_20013
Char.ClearTasksImmediately($scplayer)
World.ClearArea(-2323.2, 1530.2, 16.9, 1.0, True)
Char.SetCoordinates($scplayer, -2323.2, 1530.2, 16.9)
Char.SetHeading($scplayer, 3.3)
Char.ClearTasksImmediately($scplayer)
156@ = Sequence.Open()
Task.Climb(-1, True)
Task.AchieveHeading(-1, 90.0)
Sequence.Close(156@)
Char.PerformSequence($scplayer, 156@)
Sequence.Clear(156@)
Camera.SetFixedPosition(-2320.7, 1529.8, 17.6, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2339.6, 1537.4, 22.5, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)
103@ = 2

:WUZI5_20180
if 
  103@ == 2
goto_if_false @WUZI5_20652
$task_status = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_20652
World.ClearArea(-2323.6, 1531.9, 16.3, 1.0, True)
Char.SetCoordinates($scplayer, -2323.6, 1531.9, 16.3)
Char.SetHeading($scplayer, 95.3)
Object.Delete(71@)
Blip.Remove(80@)
if 
  90@ == 3
goto_if_false @WUZI5_20363
if 
  91@ == 0
goto_if_false @WUZI5_20363
80@ = Blip.AddForCoord(-2437.9, 1551.9, 16.3)
Text.PrintNow('WUZ4_01', 7000, 1)

:WUZI5_20363
if 
  90@ == 4
goto_if_false @WUZI5_20486
if 
  4 > 91@
goto_if_false @WUZI5_20446
if 
  not Char.IsDead(45@)
goto_if_false @WUZI5_20439
80@ = Blip.AddForChar(45@)
Text.PrintNow('WUZ4_05', 4000, 1)

:WUZI5_20439
goto @WUZI5_20486

:WUZI5_20446
if 
  Object.DoesExist(79@)
goto_if_false @WUZI5_20486
80@ = Blip.AddForObject(79@)
Text.PrintNow('WUZ4_09', 11000, 1)

:WUZI5_20486
if 
  90@ == 5
goto_if_false @WUZI5_20551
if 
  not Char.IsDead(65@)
goto_if_false @WUZI5_20535
80@ = Blip.AddForChar(65@)
Blip.ChangeScale(80@, 1)

:WUZI5_20535
Text.PrintNow('BRIDGE', 7000, 1)

:WUZI5_20551
if 
  90@ == 6
goto_if_false @WUZI5_20616
if 
  not Char.IsDead(62@)
goto_if_false @WUZI5_20600
80@ = Blip.AddForChar(62@)
Blip.SetAsFriendly(80@, True)

:WUZI5_20600
Text.PrintNow('WUZ4_11', 4000, 1)

:WUZI5_20616
Streaming.MarkModelAsNoLongerNeeded(#KMB_CONTAINER_RED)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
103@ = 0

:WUZI5_20652
gosub @WUZI5_27666
goto @WUZI5_975

:WUZI5_20666
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:WUZI5_20684
$flag_wuzi_mission_counter += 1
Blip.Remove($wuzi_contact_blip)
Text.PrintWithNumberBig('M_PASSS', 15000, 5000, TextStyle.Middle)
Player.AddScore($player1, 15000)
Stat.AwardPlayerMissionRespect(30)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Stat.RegisterMissionPassed('WUZI_4')
Stat.PlayerMadeProgress(1)
return 

:WUZI5_20753
if 
  is_var_text_label_empty s$shop_name
goto_if_false @WUZI5_20771
Camera.RestoreJumpcut

:WUZI5_20771
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Blip.Remove(80@)
Blip.Remove(81@)
Blip.Remove(82@)
Blip.Remove(83@)
Blip.Remove(84@)
Blip.Remove(85@)
Blip.Remove(86@)
Blip.Remove(87@)
Blip.Remove(88@)
Blip.Remove(89@)
Streaming.MarkModelAsNoLongerNeeded(362)
Streaming.MarkModelAsNoLongerNeeded(372)
Streaming.MarkModelAsNoLongerNeeded(359)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(335)
Streaming.MarkModelAsNoLongerNeeded(339)
Streaming.MarkModelAsNoLongerNeeded(342)
Streaming.MarkModelAsNoLongerNeeded(487)
Streaming.MarkModelAsNoLongerNeeded(473)
Streaming.MarkModelAsNoLongerNeeded(118)
Streaming.MarkModelAsNoLongerNeeded(58)
Streaming.MarkModelAsNoLongerNeeded(49)
Streaming.MarkModelAsNoLongerNeeded(210)
Streaming.MarkModelAsNoLongerNeeded(121)
Streaming.MarkModelAsNoLongerNeeded(122)
Streaming.MarkModelAsNoLongerNeeded(#KMB_CONTAINER_RED)
Streaming.MarkModelAsNoLongerNeeded(#KATANA_ANIM)
Streaming.MarkModelAsNoLongerNeeded(#KATANA_LHAND)
Streaming.MarkModelAsNoLongerNeeded(#CJ_CHRIS_CRATE)
Streaming.MarkModelAsNoLongerNeeded(#CJ_CHRIS_CRATE_LD)
Streaming.MarkModelAsNoLongerNeeded(#CJ_CHRIS_CRATE_RD)
Streaming.MarkModelAsNoLongerNeeded(#CJ_PADLOCK)
Weather.Release
if 
  not Char.IsDead($scplayer)
goto_if_false @WUZI5_20955
Char.ShutUpForScriptedSpeech($scplayer, False)

:WUZI5_20955
Game.ShutAllCharsUp(False)
Streaming.RemoveAnimation("CAR_CHAT")
Streaming.RemoveAnimation("SWAT")
Streaming.RemoveAnimation("PARK")
Streaming.RemoveAnimation("MISC")
Streaming.RemoveAnimation("GANGS")
Char.DetachFromCar($scplayer)
Pickup.Remove(63@)
Pickup.Remove(64@)
Pickup.Remove(72@)
Pickup.Remove(73@)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

:WUZI5_21045
if 
  90@ == 0
goto_if_false @WUZI5_21145
if 
  Char.IsDead(35@)
goto_if_false @WUZI5_21104
Text.ClearPrints
Text.PrintNow('WUZ4_07', 7000, 1)
93@ = 1

:WUZI5_21104
if 
  Car.IsDead(34@)
goto_if_false @WUZI5_21145
Text.ClearPrints
Text.PrintNow('WUZ4_08', 7000, 1)
93@ = 1

:WUZI5_21145
return 

:WUZI5_21147
if 
  95@ == 0
goto_if_false @WUZI5_22031
63@ = Pickup.CreateWithAmmo(372, PickupType.OnStreetSlow, 48, -2414.9, 1538.7, 26.0)
64@ = Pickup.Create(#HEALTH, PickupType.OnStreetSlow, -2412.4, 1547.9, 26.0)
World.ClearArea(-2355.2, 1547.0, 25.0, 1.0, True)
99@ = Math.RandomIntInRange(0, 2)
36@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2355.2, 1547.0, 25.0)
Char.SetHeading(36@, 198.7)
Char.SetDecisionMaker(36@, 157@)
Char.SetStayInSamePlace(36@, True)
World.ClearArea(-2355.1, 1545.0, 25.0, 1.0, True)
99@ = Math.RandomIntInRange(0, 2)
37@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2355.1, 1545.0, 25.0)
Char.SetHeading(37@, 0.6)
Char.SetDecisionMaker(37@, 157@)
Char.SetStayInSamePlace(37@, True)
Task.ChatWithChar(36@, 37@, True, 1)
Task.ChatWithChar(37@, 36@, False, 1)
World.ClearArea(-2373.0, 1549.3, 30.8, 1.0, True)
99@ = Math.RandomIntInRange(0, 2)
38@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2373.0, 1549.3, 30.8)
Char.SetHeading(38@, 355.7)
Char.SetDecisionMaker(38@, 157@)
Char.SetStayInSamePlace(38@, True)
World.ClearArea(-2396.3, 1560.26, 30.8, 1.0, True)
99@ = Math.RandomIntInRange(0, 2)
39@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2396.3, 1560.26, 30.8)
Char.SetHeading(39@, 356.2)
Char.SetDecisionMaker(39@, 157@)
Char.SetStayInSamePlace(39@, True)
World.ClearArea(-2478.2, 1560.9, 16.3, 1.0, True)
99@ = Math.RandomIntInRange(0, 2)
40@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2478.2, 1560.9, 16.3)
Char.SetHeading(40@, 11.0)
Char.SetDecisionMaker(40@, 157@)
Char.SetStayInSamePlace(40@, True)
World.ClearArea(-2500.5, 1551.0, 23.2, 1.0, True)
99@ = Math.RandomIntInRange(0, 2)
41@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2500.5, 1551.0, 23.2)
Char.SetHeading(41@, 339.2)
Char.SetDecisionMaker(41@, 157@)
Char.SetStayInSamePlace(41@, True)
World.ClearArea(-2493.7, 1537.4, 23.2, 1.0, True)
99@ = Math.RandomIntInRange(0, 2)
42@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2493.7, 1537.4, 23.2)
Char.SetHeading(42@, 82.5)
Char.SetDecisionMaker(42@, 158@)
Char.SetStayInSamePlace(42@, True)
World.ClearArea(-2492.2, 1537.3, 23.2, 1.0, True)
99@ = Math.RandomIntInRange(0, 2)
43@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2492.2, 1537.3, 23.2)
Char.SetHeading(43@, 78.2)
Char.SetDecisionMaker(43@, 157@)
Char.SetStayInSamePlace(43@, True)
World.ClearArea(-2453.8, 1529.6, 27.9, 1.0, True)
99@ = Math.RandomIntInRange(0, 2)
44@ = Char.Create(PedType.Mission2, 97@(99@,2i), -2453.8, 1529.6, 27.9)
Char.SetHeading(44@, 174.6)
Char.SetDecisionMaker(44@, 157@)
Char.SetStayInSamePlace(44@, True)
95@ = 1

:WUZI5_22031
if 
  95@ == 1
goto_if_false @WUZI5_22149
if 
  9 > 94@
goto_if_false @WUZI5_22142
if 
  not Char.IsDead(36@(94@,17i))
goto_if_false @WUZI5_22128
Char.GiveWeapon(36@(94@,17i), WeaponType.Tec9, 3000)
81@(94@,9i) = Blip.AddForChar(36@(94@,17i))
Blip.ChangeScale(81@(94@,9i), 1)

:WUZI5_22128
94@ += 1
goto @WUZI5_22149

:WUZI5_22142
95@ = 2

:WUZI5_22149
return 

:WUZI5_22151
if 
  not Char.IsDead(36@)
goto_if_false @WUZI5_22559
if 
  104@ == 0
goto_if_false @WUZI5_22325
if 
  Char.LocateAnyMeans2D($scplayer, -2283.6, 1582.6, 3.0, 3.0, False)
goto_if_false @WUZI5_22325
156@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
Task.GoToCoordWhileShooting(-1, -2355.1, 1560.0, 25.0, 6, 0.5, 1.0, $scplayer)
Task.AchieveHeading(-1, 360.0)
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_22300
Task.DestroyCar(-1, 34@)

:WUZI5_22300
Sequence.Close(156@)
Char.PerformSequence(36@, 156@)
Sequence.Clear(156@)
104@ = 1

:WUZI5_22325
if 
  104@ == 1
goto_if_false @WUZI5_22450
if 
  Char.LocateAnyMeans2D($scplayer, -2392.0, 1588.0, 3.0, 3.0, False)
goto_if_false @WUZI5_22450
156@ = Sequence.Open()
Task.Pause(-1, 500)
Task.GoStraightToCoord(-1, -2357.6, 1529.6, 25.0, MoveState.Run, -1)
Task.AchieveHeading(-1, 183.9)
Sequence.Close(156@)
Char.PerformSequence(36@, 156@)
Sequence.Clear(156@)
104@ = 2

:WUZI5_22450
if 
  104@ == 2
goto_if_false @WUZI5_22559
if 
  Char.LocateAnyMeans2D($scplayer, -2402.6, 1499.2, 3.0, 3.0, False)
goto_if_false @WUZI5_22559
156@ = Sequence.Open()
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_22534
Task.DestroyCar(-1, 34@)

:WUZI5_22534
Sequence.Close(156@)
Char.PerformSequence(36@, 156@)
Sequence.Clear(156@)
104@ = 3

:WUZI5_22559
if 
  not Char.IsDead(37@)
goto_if_false @WUZI5_22994
if 
  105@ == 0
goto_if_false @WUZI5_22767
if 
  Char.LocateAnyMeans2D($scplayer, -2283.6, 1582.6, 3.0, 3.0, False)
goto_if_false @WUZI5_22767
156@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
Task.GoToCoordWhileShooting(-1, -2348.2, 1546.4, 25.0, 6, 0.5, 1.0, $scplayer)
Task.GoToCoordWhileShooting(-1, -2344.1, 1555.8, 25.0, 6, 0.5, 1.0, $scplayer)
Task.AchieveHeading(-1, 360.0)
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_22742
Task.DestroyCar(-1, 34@)

:WUZI5_22742
Sequence.Close(156@)
Char.PerformSequence(37@, 156@)
Sequence.Clear(156@)
105@ = 1

:WUZI5_22767
if 
  105@ == 1
goto_if_false @WUZI5_22885
if 
  Char.LocateAnyMeans2D($scplayer, -2392.0, 1588.0, 3.0, 3.0, False)
goto_if_false @WUZI5_22885
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2350.5, 1531.5, 25.0, MoveState.Run, -1)
Task.AchieveHeading(-1, 155.6)
Sequence.Close(156@)
Char.PerformSequence(37@, 156@)
Sequence.Clear(156@)
105@ = 2

:WUZI5_22885
if 
  105@ == 2
goto_if_false @WUZI5_22994
if 
  Char.LocateAnyMeans2D($scplayer, -2402.6, 1499.2, 3.0, 3.0, False)
goto_if_false @WUZI5_22994
156@ = Sequence.Open()
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_22969
Task.DestroyCar(-1, 34@)

:WUZI5_22969
Sequence.Close(156@)
Char.PerformSequence(37@, 156@)
Sequence.Clear(156@)
105@ = 3

:WUZI5_22994
if 
  not Char.IsDead(38@)
goto_if_false @WUZI5_23461
if 
  106@ == 0
goto_if_false @WUZI5_23168
if 
  Char.LocateAnyMeans2D($scplayer, -2283.6, 1582.6, 3.0, 3.0, False)
goto_if_false @WUZI5_23168
156@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
Task.GoToCoordWhileShooting(-1, -2372.1, 1557.4, 31.8, 6, 0.5, 1.0, $scplayer)
Task.AchieveHeading(-1, 360.0)
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_23143
Task.DestroyCar(-1, 34@)

:WUZI5_23143
Sequence.Close(156@)
Char.PerformSequence(38@, 156@)
Sequence.Clear(156@)
106@ = 1

:WUZI5_23168
if 
  106@ == 1
goto_if_false @WUZI5_23337
if 
  Char.LocateAnyMeans2D($scplayer, -2365.4, 1586.9, 3.0, 3.0, False)
goto_if_false @WUZI5_23337
156@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, -2394.4, 1558.4, 31.8, 6, 0.5, 1.0, $scplayer)
Task.AchieveHeading(-1, 66.2)
Task.Jump(-1, True)
Task.GoToCoordWhileShooting(-1, -2423.0, 1561.0, 31.8, 6, 0.5, 1.0, $scplayer)
Sequence.Close(156@)
Char.PerformSequence(38@, 156@)
Sequence.Clear(156@)
106@ = 2

:WUZI5_23337
if 
  106@ == 2
goto_if_false @WUZI5_23461
if 
  Char.LocateAnyMeans2D($scplayer, -2473.8, 1585.5, 3.0, 3.0, False)
goto_if_false @WUZI5_23461
156@ = Sequence.Open()
Task.AchieveHeading(-1, 177.3)
Task.Jump(-1, True)
Task.GoStraightToCoord(-1, -2422.1, 1547.9, 22.1, MoveState.Run, -1)
Sequence.Close(156@)
Char.PerformSequence(38@, 156@)
Sequence.Clear(156@)
106@ = 3

:WUZI5_23461
if 
  not Char.IsDead(39@)
goto_if_false @WUZI5_23836
if 
  107@ == 0
goto_if_false @WUZI5_23626
if 
  Char.LocateAnyMeans2D($scplayer, -2351.3, 1586.2, 3.0, 3.0, False)
goto_if_false @WUZI5_23626
156@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
Task.GoToCoordWhileShooting(-1, -2426.7, 1560.3, 31.8, 6, 0.5, 1.0, $scplayer)
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_23601
Task.DestroyCar(-1, 34@)

:WUZI5_23601
Sequence.Close(156@)
Char.PerformSequence(39@, 156@)
Sequence.Clear(156@)
107@ = 1

:WUZI5_23626
if 
  107@ == 1
goto_if_false @WUZI5_23836
if 
  Char.LocateAnyMeans2D($scplayer, -2504.6, 0.8, 3.0, 3.0, False)
goto_if_false @WUZI5_23836
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2437.7, 1560.7, 16.3, MoveState.Run, -1)
Task.GoStraightToCoord(-1, -2435.9, 1550.9, 16.3, MoveState.Run, -1)
Task.AchieveHeading(-1, 180.0)
Task.GoStraightToCoord(-1, -2435.9, 1532.3, 16.3, MoveState.Run, -1)
Task.GoStraightToCoord(-1, -2437.5, 1528.7, 16.3, MoveState.Run, -1)
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_23811
Task.DestroyCar(-1, 34@)

:WUZI5_23811
Sequence.Close(156@)
Char.PerformSequence(39@, 156@)
Sequence.Clear(156@)
107@ = 2

:WUZI5_23836
if 
  not Char.IsDead(40@)
goto_if_false @WUZI5_24069
if 
  108@ == 0
goto_if_false @WUZI5_24069
if 
  Char.LocateAnyMeans2D($scplayer, -2448.6, 1590.3, 3.0, 3.0, False)
goto_if_false @WUZI5_24069
156@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
Task.GoToCoordWhileShooting(-1, -2494.1, 1560.7, 16.3, 6, 0.5, 1.0, $scplayer)
Task.GoToCoordWhileShooting(-1, -2505.2, 1557.4, 16.3, 6, 0.5, 1.0, $scplayer)
Task.GoToCoordWhileShooting(-1, -2505.5, 1532.1, 16.3, 6, 0.5, 1.0, $scplayer)
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_24044
Task.DestroyCar(-1, 34@)

:WUZI5_24044
Sequence.Close(156@)
Char.PerformSequence(40@, 156@)
Sequence.Clear(156@)
108@ = 1

:WUZI5_24069
if 
  not Char.IsDead(41@)
goto_if_false @WUZI5_24200
if 
  109@ == 0
goto_if_false @WUZI5_24200
if 
  Char.LocateAnyMeans2D($scplayer, -2448.6, 1590.3, 3.0, 3.0, False)
goto_if_false @WUZI5_24200
156@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_24175
Task.DestroyCar(-1, 34@)

:WUZI5_24175
Sequence.Close(156@)
Char.PerformSequence(41@, 156@)
Sequence.Clear(156@)
109@ = 1

:WUZI5_24200
if 
  not Char.IsDead(42@)
goto_if_false @WUZI5_24354
if 
  110@ == 0
goto_if_false @WUZI5_24354
if 
  Char.LocateAnyMeans2D($scplayer, -2493.5, 1571.8, 3.0, 3.0, False)
goto_if_false @WUZI5_24354
156@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
Task.GoStraightToCoord(-1, -2501.4, 1539.5, 23.2, MoveState.Run, -1)
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_24329
Task.DestroyCar(-1, 34@)

:WUZI5_24329
Sequence.Close(156@)
Char.PerformSequence(42@, 156@)
Sequence.Clear(156@)
110@ = 1

:WUZI5_24354
if 
  not Char.IsDead(43@)
goto_if_false @WUZI5_24508
if 
  111@ == 0
goto_if_false @WUZI5_24508
if 
  Char.LocateAnyMeans2D($scplayer, -2493.5, 1571.8, 3.0, 3.0, False)
goto_if_false @WUZI5_24508
156@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
Task.GoStraightToCoord(-1, -2500.9, 1535.4, 23.2, MoveState.Run, -1)
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_24483
Task.DestroyCar(-1, 34@)

:WUZI5_24483
Sequence.Close(156@)
Char.PerformSequence(43@, 156@)
Sequence.Clear(156@)
111@ = 1

:WUZI5_24508
if 
  not Char.IsDead(44@)
goto_if_false @WUZI5_24639
if 
  112@ == 0
goto_if_false @WUZI5_24639
if 
  Char.LocateAnyMeans2D($scplayer, -2493.5, 1571.8, 3.0, 3.0, False)
goto_if_false @WUZI5_24639
156@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
if 
  not Car.IsDead(34@)
goto_if_false @WUZI5_24614
Task.DestroyCar(-1, 34@)

:WUZI5_24614
Sequence.Close(156@)
Char.PerformSequence(44@, 156@)
Sequence.Clear(156@)
112@ = 1

:WUZI5_24639
return 

:WUZI5_24641
if 
  9 > 94@
goto_if_false @WUZI5_24702
if 
  Char.IsDead(36@(94@,17i))
goto_if_false @WUZI5_24688
Blip.Remove(81@(94@,9i))

:WUZI5_24688
94@ += 1
goto @WUZI5_24709

:WUZI5_24702
94@ = 0

:WUZI5_24709
return 

:WUZI5_24711
World.ClearArea(-2369.3, 1551.9, 1.2, 1.0, True)
59@ = Char.Create(PedType.Mission5, 58, -2369.3, 1551.9, 1.2)
Char.SetHeading(59@, 96.2)
Char.SetStayInSamePlace(59@, True)
Char.SetNeverTargeted(59@, True)
Char.SetDecisionMaker(59@, 158@)
World.ClearArea(-2368.3, 1551.9, 1.2, 1.0, True)
60@ = Char.Create(PedType.Mission5, 58, -2368.3, 1551.9, 1.2)
Char.SetHeading(60@, 96.2)
Char.SetStayInSamePlace(60@, True)
Char.SetNeverTargeted(60@, True)
Char.SetDecisionMaker(60@, 158@)
World.ClearArea(-2367.3, 1551.9, 1.2, 1.0, True)
61@ = Char.Create(PedType.Mission5, 210, -2367.3, 1551.9, 1.2)
Char.SetHeading(61@, 96.2)
Char.SetStayInSamePlace(61@, True)
Char.SetNeverTargeted(61@, True)
Char.SetDecisionMaker(61@, 158@)
return 

:WUZI5_24954
if 
  101@ == 0
goto_if_false @WUZI5_25301
if 
  Char.IsInArea3D($scplayer, -2282.4, 1510.9, 50.0, -2534.6, 1578.5, 15.0, False)
goto_if_false @WUZI5_25061
if 
  Char.IsShooting($scplayer)
goto_if_false @WUZI5_25061
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.PistolSilenced)
goto_if_false @WUZI5_25061
101@ = 1

:WUZI5_25061
if 
  Char.IsInArea2D($scplayer, -2385.2, 1539.7, -2393.0, 1558.9, False)
goto_if_false @WUZI5_25106
101@ = 1

:WUZI5_25106
if 
  not Char.IsDead(46@)
goto_if_false @WUZI5_25145
if 
  Char.IsShooting(46@)
goto_if_false @WUZI5_25145
101@ = 1

:WUZI5_25145
if 
  not Char.IsDead(51@)
goto_if_false @WUZI5_25184
if 
  Char.IsShooting(51@)
goto_if_false @WUZI5_25184
101@ = 1

:WUZI5_25184
if 
  not Char.IsDead(52@)
goto_if_false @WUZI5_25223
if 
  Char.IsShooting(52@)
goto_if_false @WUZI5_25223
101@ = 1

:WUZI5_25223
if 
  not Char.IsDead(36@)
goto_if_false @WUZI5_25262
if 
  Char.IsShooting(36@)
goto_if_false @WUZI5_25262
101@ = 1

:WUZI5_25262
if 
  not Char.IsDead(37@)
goto_if_false @WUZI5_25301
if 
  Char.IsShooting(37@)
goto_if_false @WUZI5_25301
101@ = 1

:WUZI5_25301
if 
  101@ == 1
goto_if_false @WUZI5_25750
if 
  not Char.IsDead(46@)
goto_if_false @WUZI5_25343
Task.TurnCharToFaceChar(46@, $scplayer)

:WUZI5_25343
if 
  not Char.IsDead(51@)
goto_if_false @WUZI5_25367
Task.TurnCharToFaceChar(51@, $scplayer)

:WUZI5_25367
if 
  not Char.IsDead(52@)
goto_if_false @WUZI5_25391
Task.TurnCharToFaceChar(52@, $scplayer)

:WUZI5_25391
if 
  not Char.IsDead(36@)
goto_if_false @WUZI5_25512
156@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 158@)
Task.GoStraightToCoord(-1, -2351.0, 1549.4, 22.2, MoveState.Run, -1)
Task.AchieveHeading(-1, 180.0)
Task.Climb(-1, True)
Task.GoStraightToCoord(-1, -2351.2, 1547.1, 25.0, MoveState.Run, -1)
Task.SetCharDecisionMaker(-1, 157@)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(156@)
Char.PerformSequence(36@, 156@)
Sequence.Clear(156@)

:WUZI5_25512
if 
  not Char.IsDead(37@)
goto_if_false @WUZI5_25536
Task.TurnCharToFaceChar(37@, $scplayer)

:WUZI5_25536
if 
  not Char.IsDead(38@)
goto_if_false @WUZI5_25605
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2385.5, 1543.1, 25.0, MoveState.Run, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(156@)
Char.PerformSequence(38@, 156@)
Sequence.Clear(156@)

:WUZI5_25605
if 
  not Char.IsDead(39@)
goto_if_false @WUZI5_25674
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2385.8, 1540.6, 25.0, MoveState.Run, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(156@)
Char.PerformSequence(39@, 156@)
Sequence.Clear(156@)

:WUZI5_25674
if 
  not Char.IsDead(40@)
goto_if_false @WUZI5_25743
156@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2392.1, 1556.0, 25.0, MoveState.Run, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(156@)
Char.PerformSequence(40@, 156@)
Sequence.Clear(156@)

:WUZI5_25743
101@ = 2

:WUZI5_25750
if 
  101@ == 2
goto_if_false @WUZI5_25869
if 
  not Char.IsDead(48@)
goto_if_false @WUZI5_25817
if 
  Char.HasBeenDamagedByChar(48@, $scplayer)
goto_if_false @WUZI5_25810
101@ = 3

:WUZI5_25810
goto @WUZI5_25824

:WUZI5_25817
101@ = 3

:WUZI5_25824
if 
  Char.IsInArea2D($scplayer, -2400.0, 1561.0, -2409.8, 1540.0, False)
goto_if_false @WUZI5_25869
101@ = 3

:WUZI5_25869
if 
  101@ == 3
goto_if_false @WUZI5_25976
if 
  not Char.IsDead(48@)
goto_if_false @WUZI5_25969
156@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.Pause(-1, 500)
Task.GoStraightToCoord(-1, -2401.1, 1539.8, 25.0, MoveState.Run, -1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(156@)
Char.PerformSequence(48@, 156@)
Sequence.Clear(156@)

:WUZI5_25969
101@ = 4

:WUZI5_25976
if 
  101@ == 4
goto_if_false @WUZI5_26438
if 
  Char.IsInArea2D($scplayer, -2416.4, 1535.3, -2431.6, 1542.1, False)
goto_if_false @WUZI5_26438
if 
  not Char.IsDead(42@)
goto_if_false @WUZI5_26306
156@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_L", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
102@ = Math.RandomIntInRange(1500, 4000)
Task.KillCharOnFootTimed(-1, $scplayer, 102@)
Task.StayInSamePlace(-1, False)
Task.CharSlideToCoordAndPlayAnim(-1, -2420.4, 1553.4, 25.0, 180.0, -0.1, "SWT_WLLSHOOT_OUT_L", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(156@, True)
Sequence.Close(156@)
Char.PerformSequence(42@, 156@)
Sequence.Clear(156@)

:WUZI5_26306
if 
  not Char.IsDead(49@)
goto_if_false @WUZI5_26365
156@ = Sequence.Open()
Task.Climb(-1, True)
Task.SetCharDecisionMaker(-1, 157@)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(156@)
Char.PerformSequence(49@, 156@)
Sequence.Clear(156@)

:WUZI5_26365
if 
  not Char.IsDead(50@)
goto_if_false @WUZI5_26431
156@ = Sequence.Open()
Task.Pause(-1, 1500)
Task.Climb(-1, True)
Task.SetCharDecisionMaker(-1, 157@)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(156@)
Char.PerformSequence(50@, 156@)
Sequence.Clear(156@)

:WUZI5_26431
101@ = 5

:WUZI5_26438
if 
  101@ == 5
goto_if_false @WUZI5_26533
if or
  Char.IsInArea2D($scplayer, -2418.9, 1546.4, -2435.6, 1559.0, False)
  Char.HasBeenDamagedByChar(42@, $scplayer)
goto_if_false @WUZI5_26533
if 
  not Char.IsDead(42@)
goto_if_false @WUZI5_26533
Task.KillCharOnFoot(42@, $scplayer)
101@ = 6

:WUZI5_26533
return 

:WUZI5_26535
if 
  113@ == 1
goto_if_false @WUZI5_26670
set_lvar_text_label 117@s = 'WUZ4_KA'
set_lvar_text_label 119@s = 'WUZ4_KB'
set_lvar_text_label 121@s = 'WUZ4_KC'
set_lvar_text_label 123@s = 'WUZ4_KD'
set_lvar_text_label 125@s = 'WUZ4_KE'
set_lvar_int_to_constant 129@ = 21209
set_lvar_int_to_constant 130@ = 21201
set_lvar_int_to_constant 131@ = 21202
set_lvar_int_to_constant 132@ = 21210
set_lvar_int_to_constant 133@ = 21211
135@ = 5

:WUZI5_26670
if 
  113@ == 2
goto_if_false @WUZI5_26805
set_lvar_text_label 117@s = 'WUZ4_LA'
set_lvar_text_label 119@s = 'WUZ4_LB'
set_lvar_text_label 121@s = 'WUZ4_LC'
set_lvar_text_label 123@s = 'WUZ4_LD'
set_lvar_text_label 125@s = 'WUZ4_LE'
set_lvar_int_to_constant 129@ = 21203
set_lvar_int_to_constant 130@ = 21212
set_lvar_int_to_constant 131@ = 21204
set_lvar_int_to_constant 132@ = 21213
set_lvar_int_to_constant 133@ = 21205
135@ = 5

:WUZI5_26805
if 
  113@ == 3
goto_if_false @WUZI5_26940
set_lvar_text_label 117@s = 'WUZ4_MA'
set_lvar_text_label 119@s = 'WUZ4_MB'
set_lvar_text_label 121@s = 'WUZ4_MC'
set_lvar_text_label 123@s = 'WUZ4_MD'
set_lvar_text_label 125@s = 'WUZ4_ME'
set_lvar_int_to_constant 129@ = 21214
set_lvar_int_to_constant 130@ = 21206
set_lvar_int_to_constant 131@ = 21215
set_lvar_int_to_constant 132@ = 21207
set_lvar_int_to_constant 133@ = 21216
135@ = 5

:WUZI5_26940
if 
  113@ == 4
goto_if_false @WUZI5_27076
set_lvar_text_label 117@s = 'WUZ4_NA'
set_lvar_text_label 119@s = 'WUZ4_NB'
set_lvar_text_label 121@s = 'WUZ4_NC'
set_lvar_text_label 123@s = 'WUZ4_NE'
set_lvar_text_label 125@s = 'WUZ4_NF'
set_lvar_int_to_constant 129@ = 21220
set_lvar_int_to_constant 130@ = 21208
set_lvar_int_to_constant 131@ = 21221
set_lvar_int_to_constant 132@ = 21222
set_lvar_int_to_constant 133@ = 21223
set_lvar_int_to_lvar_int 135@ = 116@

:WUZI5_27076
if 
  113@ == 5
goto_if_false @WUZI5_27146
set_lvar_text_label 117@s = 'WUZ4_AA'
set_lvar_text_label 119@s = 'WUZ4_AB'
set_lvar_int_to_constant 129@ = 21227
set_lvar_int_to_constant 130@ = 21228
set_lvar_int_to_lvar_int 135@ = 116@

:WUZI5_27146
if 
  113@ == 6
goto_if_false @WUZI5_27193
set_lvar_text_label 117@s = 'WUZ4_FA'
set_lvar_int_to_constant 129@ = 21236
135@ = 1

:WUZI5_27193
if 
  113@ == 7
goto_if_false @WUZI5_27263
set_lvar_text_label 117@s = 'WUZ4_CA'
set_lvar_text_label 119@s = 'WUZ4_CB'
set_lvar_int_to_constant 129@ = 21230
set_lvar_int_to_constant 130@ = 21231
set_lvar_int_to_lvar_int 135@ = 116@

:WUZI5_27263
if 
  113@ == 8
goto_if_false @WUZI5_27310
set_lvar_text_label 117@s = 'WUZ4_HA'
set_lvar_int_to_constant 129@ = 21240
135@ = 1

:WUZI5_27310
if 
  113@ == 9
goto_if_false @WUZI5_27380
set_lvar_text_label 117@s = 'WUZ4_JA'
set_lvar_text_label 119@s = 'WUZ4_JB'
set_lvar_int_to_constant 129@ = 21241
set_lvar_int_to_constant 130@ = 21242
set_lvar_int_to_lvar_int 135@ = 116@

:WUZI5_27380
if 
  113@ == 10
goto_if_false @WUZI5_27472
set_lvar_text_label 117@s = 'WUZ4_JC'
set_lvar_text_label 119@s = 'WUZ4_JD'
set_lvar_text_label 121@s = 'WUZ4_JE'
set_lvar_int_to_constant 129@ = 21243
set_lvar_int_to_constant 130@ = 21244
set_lvar_int_to_constant 131@ = 21245
set_lvar_int_to_lvar_int 135@ = 116@

:WUZI5_27472
if 
  113@ == 11
goto_if_false @WUZI5_27519
set_lvar_text_label 117@s = 'WUZ4_JF'
set_lvar_int_to_constant 129@ = 21246
135@ = 1

:WUZI5_27519
if 
  113@ == 12
goto_if_false @WUZI5_27588
set_lvar_text_label 117@s = 'WUZ4_OA'
set_lvar_text_label 119@s = 'WUZ4_ZA'
set_lvar_int_to_constant 129@ = 21224
set_lvar_int_to_constant 130@ = 21247
135@ = 2

:WUZI5_27588
if 
  113@ == 13
goto_if_false @WUZI5_27635
set_lvar_text_label 117@s = 'WUZ4_PA'
set_lvar_int_to_constant 129@ = 21226
135@ = 1

:WUZI5_27635
set_lvar_int_to_lvar_int 138@ = 115@
136@ = 0
137@ = 0
139@ = 1
return 

:WUZI5_27666
if or
  113@ == 1
  113@ == 2
  113@ == 3
  113@ == 4
  113@ == 5
goto_if_false @WUZI5_27766
if 
  is_int_lvar_greater_than_int_lvar 135@ > 115@
goto_if_false @WUZI5_27759
gosub @WUZI5_28246
gosub @WUZI5_28353
gosub @WUZI5_28507
goto @WUZI5_27766

:WUZI5_27759
113@ = 0

:WUZI5_27766
if or
  113@ == 6
  113@ == 7
  113@ == 10
  113@ == 11
  113@ == 12
goto_if_false @WUZI5_27866
if 
  is_int_lvar_greater_than_int_lvar 135@ > 115@
goto_if_false @WUZI5_27859
gosub @WUZI5_28246
gosub @WUZI5_28353
gosub @WUZI5_28507
goto @WUZI5_27866

:WUZI5_27859
113@ = 0

:WUZI5_27866
if 
  113@ == 8
goto_if_false @WUZI5_27992
if 
  is_int_lvar_greater_than_int_lvar 135@ > 115@
goto_if_false @WUZI5_27985
gosub @WUZI5_28246
gosub @WUZI5_28353
if 
  not Char.IsDead(45@)
goto_if_false @WUZI5_27947
gosub @WUZI5_28507
goto @WUZI5_27978

:WUZI5_27947
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(117@(115@,6s))
136@ = 0
137@ = 0

:WUZI5_27978
goto @WUZI5_27992

:WUZI5_27985
113@ = 0

:WUZI5_27992
if 
  113@ == 9
goto_if_false @WUZI5_28118
if 
  is_int_lvar_greater_than_int_lvar 135@ > 115@
goto_if_false @WUZI5_28111
gosub @WUZI5_28246
gosub @WUZI5_28353
if 
  not Char.IsDead(62@)
goto_if_false @WUZI5_28073
gosub @WUZI5_28507
goto @WUZI5_28104

:WUZI5_28073
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(117@(115@,6s))
136@ = 0
137@ = 0

:WUZI5_28104
goto @WUZI5_28118

:WUZI5_28111
113@ = 0

:WUZI5_28118
if 
  113@ == 13
goto_if_false @WUZI5_28244
if 
  is_int_lvar_greater_than_int_lvar 135@ > 115@
goto_if_false @WUZI5_28237
gosub @WUZI5_28246
gosub @WUZI5_28353
if 
  not Char.IsDead(65@)
goto_if_false @WUZI5_28199
gosub @WUZI5_28507
goto @WUZI5_28230

:WUZI5_28199
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(117@(115@,6s))
136@ = 0
137@ = 0

:WUZI5_28230
goto @WUZI5_28244

:WUZI5_28237
113@ = 0

:WUZI5_28244
return 

:WUZI5_28246
if 
  is_int_lvar_greater_than_int_lvar 135@ > 138@
goto_if_false @WUZI5_28351
if 
  136@ == 0
goto_if_false @WUZI5_28308
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 129@(138@,6i))
138@ += 1
136@ = 1

:WUZI5_28308
if 
  137@ == 0
goto_if_false @WUZI5_28351
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 129@(138@,6i))
138@ += 1
137@ = 1

:WUZI5_28351
return 

:WUZI5_28353
if 
  139@ == 1
goto_if_false @WUZI5_28429
if 
  136@ == 1
goto_if_false @WUZI5_28429
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @WUZI5_28429
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(117@(115@,6s), 4500, 1)
136@ = 2

:WUZI5_28429
if 
  139@ == 2
goto_if_false @WUZI5_28505
if 
  137@ == 1
goto_if_false @WUZI5_28505
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @WUZI5_28505
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow(117@(115@,6s), 4500, 1)
137@ = 2

:WUZI5_28505
return 

:WUZI5_28507
if 
  136@ == 2
goto_if_false @WUZI5_28570
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @WUZI5_28570
Text.ClearThisPrint(117@(115@,6s))
115@ += 1
139@ = 2
136@ = 0

:WUZI5_28570
if 
  137@ == 2
goto_if_false @WUZI5_28633
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @WUZI5_28633
Text.ClearThisPrint(117@(115@,6s))
115@ += 1
139@ = 1
137@ = 0

:WUZI5_28633
return 

//-------------Mission 58---------------
// Originally: Photo Opportunity

:SYN1
script_name 'SYN1'
gosub @SYN1_1424
if 
  has_deatharrest_been_executed 
goto_if_false @SYN1_38
gosub @SYN1_14491

:SYN1_38
gosub @SYN1_14610
terminate_this_script 

:SYN1_47
Streaming.RequestModel(567)
Streaming.LoadSpecialCharacter(1, 'CESAR')
Streaming.RequestAnimation("BOMBER")
Streaming.LoadAllModelsNow

:SYN1_77
if or
  not Streaming.HasModelLoaded(567)
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasAnimationLoaded("BOMBER")
goto_if_false @SYN1_118
wait 0
goto @SYN1_77

:SYN1_118
return 
379@ = Blip.AddForCoord($player_first_spot_W2, $sy1_cesar_car_x, $sy1_cesar_car_y)
51@ = Blip.AddForCoord(48@, 49@, 50@)

:SYN1_148
$player_first_spot_W2 = -54.0
$sy1_cesar_car_x = -432.0
$sy1_cesar_car_y = 1.0
$sy1_cesar_car_z = 259.0
World.ClearArea($player_first_spot_W2, $sy1_cesar_car_x, $sy1_cesar_car_y, 100.0, True)
Car.CustomPlateForNextCar(567, "_LVA4L__")
377@ = Car.Create(567, $player_first_spot_W2, $sy1_cesar_car_x, $sy1_cesar_car_y)
376@ = Char.Create(PedType.CivMale, 290, -51.6293, -430.562, 0.5721)
Car.SetHeading(377@, $sy1_cesar_car_z)
Char.SetHeading(376@, 154.672)
Char.SetNeverTargeted(376@, True)
CarGenerator.SuppressCarModel(567)
Car.ChangeColor(377@, 3, 3)
Blip.Remove(379@)
379@ = Blip.AddForChar(376@)
Blip.SetAsFriendly(379@, True)
return 
148@ = Char.CreateInsideCar(377@, PedType.CivMale, 290)
381@ = Blip.AddForCar(377@)

:SYN1_345
Streaming.RequestModel(510)
Streaming.LoadAllModelsNow

:SYN1_352
if 
  not Streaming.HasModelLoaded(510)
goto_if_false @SYN1_379
wait 0
goto @SYN1_352

:SYN1_379
386@ = Car.Create(510, 387@, 388@, 389@)
Car.SetHeading(386@, 390@)
Car.FreezePosition(386@, True)
Car.SetVisible(386@, False)
Player.SetHeadingForAttached($player1, 135.0, 135.0)
Char.AttachToBike($scplayer, 386@, -0.2, 0.5, 0.0, 1, 110.0, 70.0, WeaponType.Camera)
Player.SetHeadingForAttached($player1, 135.0, 135.0)
Audio.SetRadioChannel(RadioChannel.UserTracks)
Car.SetEngineOn(386@, False)
return 

:SYN1_498
Streaming.RequestModel(600)
Streaming.RequestCarRecording(190)
Streaming.LoadSpecialCharacter(2, 'RYDER2')
Streaming.RequestModel(102)
Streaming.LoadAllModelsNow

:SYN1_527
if or
  not Streaming.HasModelLoaded(600)
  not Streaming.HasModelLoaded(102)
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasCarRecordingBeenLoaded(190)
goto_if_false @SYN1_567
wait 0
goto @SYN1_527

:SYN1_567
402@ = -2120.4
403@ = -2448.458
404@ = 29.4688
405@ = 137.4828
Car.CustomPlateForNextCar(600, "_SHERM__")
World.ClearArea(402@, 403@, 404@, 5.0, True)
392@ = Car.Create(600, 402@, 403@, 404@)
Car.ChangeColor(392@, 84, 84)
Car.SetProofs(392@, True, True, True, True, True)
Car.SetHeading(392@, 405@)
391@ = Char.CreateInsideCar(392@, PedType.CivMale, 291)
394@ = Char.CreateAsPassenger(392@, PedType.CivMale, 102, 0)
343@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Char.SetDecisionMaker(391@, 343@)
return 

:SYN1_733
Streaming.RequestModel(477)
Streaming.RequestCarRecording(191)
Streaming.LoadSpecialCharacter(3, 'TBONE')
Streaming.LoadAllModelsNow

:SYN1_758
if or
  not Streaming.HasModelLoaded(477)
  not Streaming.HasSpecialCharacterLoaded(3)
  not Streaming.HasCarRecordingBeenLoaded(191)
goto_if_false @SYN1_794
wait 0
goto @SYN1_758

:SYN1_794
416@ = -2141.401
417@ = -2481.575
418@ = 29.4688
419@ = 317.093
World.ClearArea(416@, 417@, 418@, 5.0, True)
407@ = Car.Create(477, 416@, 417@, 418@)
Car.ChangeColor(407@, 84, 84)
Car.SetProofs(407@, True, True, True, True, True)
Car.SetHeading(407@, 419@)
406@ = Char.CreateInsideCar(407@, PedType.CivMale, 292)
Car.StartPlayback(407@, 191)
Car.SetPlaybackSpeed(407@, 0.6)
return 

:SYN1_934
Streaming.RequestModel(575)
Streaming.RequestModel(478)
Streaming.RequestCarRecording(193)
Streaming.RequestCarRecording(194)
Streaming.LoadSpecialCharacter(5, 'JIZZY')
Streaming.RequestModel(237)
Streaming.LoadAllModelsNow

:SYN1_974
if or
  not Streaming.HasModelLoaded(575)
  not Streaming.HasModelLoaded(237)
  not Streaming.HasModelLoaded(478)
  not Streaming.HasSpecialCharacterLoaded(5)
  not Streaming.HasCarRecordingBeenLoaded(193)
  not Streaming.HasCarRecordingBeenLoaded(194)
goto_if_false @SYN1_1025
wait 0
goto @SYN1_974

:SYN1_1025
432@ = -2141.401
433@ = -2481.575
434@ = 29.4688
435@ = 317.093
World.ClearArea(432@, 433@, 434@, 5.0, True)
Car.CustomPlateForNextCar(575, "HO_2_HO_")
421@ = Car.Create(575, 432@, 433@, 434@)
424@ = Car.Create(478, -2235.727, -2572.873, 30.9296)
Car.SetProofs(421@, True, True, True, True, True)
Car.SetHeading(424@, 44.9335)
Car.ChangeColor(421@, 123, 5)
Car.SetHeading(421@, 435@)
423@ = Char.CreateInsideCar(421@, PedType.CivFemale, 237)
420@ = Char.CreateAsPassenger(421@, PedType.CivMale, 294, 0)
Car.StartPlayback(421@, 193)
return 

:SYN1_1218
Streaming.RequestModel(421)
Streaming.RequestCarRecording(192)
Streaming.LoadSpecialCharacter(4, 'TORINO')
Streaming.LoadAllModelsNow

:SYN1_1243
if or
  not Streaming.HasModelLoaded(421)
  not Streaming.HasSpecialCharacterLoaded(4)
  not Streaming.HasCarRecordingBeenLoaded(192)
goto_if_false @SYN1_1279
wait 0
goto @SYN1_1243

:SYN1_1279
446@ = -2214.275
447@ = -2475.113
448@ = 29.4688
449@ = 232.2762
Car.CustomPlateForNextCar(421, "_OMEGA__")
World.ClearArea(446@, 447@, 448@, 5.0, True)
437@ = Car.Create(421, 446@, 447@, 448@)
Car.ChangeColor(437@, 84, 84)
Car.SetProofs(437@, True, True, True, True, True)
Car.SetHeading(437@, 449@)
436@ = Char.CreateInsideCar(437@, PedType.CivMale, 293)
Car.StartPlayback(437@, 192)
return 

:SYN1_1424
Text.LoadMissionText('SYN1')
Stat.RegisterMissionGiven
$onmission = 1
wait 0
34@ = 0
35@ = 0
36@ = 0
147@ = 0
367@ = 0
37@ = 0
41@ = 0
38@ = 0
368@ = 0
42@ = 0
40@ = 0
332@ = 1
333@ = 2
334@ = 0
335@ = 1
336@ = 0
341@ = 1
347@ = -2413.0
350@ = -580.0
353@ = 133.0
348@ = -2410.0
351@ = -582.0
354@ = 133.0
349@ = -2406.0
352@ = -584.0
355@ = 133.0
402@ = -2141.153
403@ = -2448.871
404@ = 29.625
405@ = 107.1964
338@ = 120.0
339@ = 240.0
372@ = -2407.0
373@ = -586.0
374@ = 131.0
375@ = 4.0
48@ = -2163.489
49@ = -2404.159
50@ = 29.6172
$player_first_spot_W2 = -54.0
$sy1_cesar_car_x = -432.0
$sy1_cesar_car_y = 1.0
$sy1_cesar_car_z = 259.0
387@ = -2171.173
388@ = -2422.821
389@ = 33.2969
390@ = 141.2754
53@ = -2408.437
68@ = -585.082
83@ = 133.2022
98@ = -2408.337
113@ = -584.0877
128@ = 133.1662
54@ = -60.0461
69@ = -433.1644
84@ = 1.4904
99@ = -59.0698
114@ = -432.9484
129@ = 1.5005
55@ = -58.7976
70@ = -433.3285
85@ = 3.0796
100@ = -57.885
115@ = -432.994
130@ = 2.8444
56@ = -46.1629
71@ = -427.8859
86@ = 1.5902
101@ = -45.8006
116@ = -428.818
131@ = 1.3937
57@ = -2407.17
72@ = -583.5895
87@ = 133.355
102@ = -2407.766
117@ = -582.7864
132@ = 133.3749
58@ = -2407.17
73@ = -583.5895
88@ = 133.355
103@ = -2407.967
118@ = -584.1938
133@ = 133.3749
59@ = -2172.552
74@ = -2427.487
89@ = 30.5334
104@ = -2171.986
119@ = -2428.304
134@ = 30.64
60@ = -2139.569
75@ = -2452.239
90@ = 31.2226
105@ = -2140.292
120@ = -2451.549
135@ = 31.1829
61@ = -2175.672
76@ = -2437.23
91@ = 30.7446
106@ = -2174.684
121@ = -2437.133
136@ = 30.8619
62@ = -2170.412
77@ = -2429.43
92@ = 31.758
107@ = -2170.5
122@ = -2430.423
137@ = 31.8365
63@ = -2246.851
78@ = -2571.031
93@ = 32.7468
108@ = -2246.16
123@ = -2570.311
138@ = 32.6781
64@ = -2241.519
79@ = -2568.281
94@ = 32.2372
109@ = -2242.286
124@ = -2567.642
139@ = 32.2906
set_lvar_text_label 154@s = 'MCES10A'
set_lvar_text_label 156@s = 'MCES10B'
set_lvar_text_label 158@s = 'MCES10C'
set_lvar_text_label 160@s = 'MCES10D'
set_lvar_text_label 162@s = 'MCES10E'
set_lvar_text_label 164@s = 'MCES10F'
set_lvar_text_label 166@s = 'MCES10G'
set_lvar_text_label 168@s = 'MCES10H'
set_lvar_text_label 170@s = 'MCES10J'
set_lvar_text_label 172@s = 'CESX_AB'
set_lvar_text_label 182@s = 'SYN1_FC'
set_lvar_text_label 184@s = 'SYN1_FD'
set_lvar_text_label 186@s = 'SYN1_IA'
set_lvar_text_label 188@s = 'SYN1_ZA'
set_lvar_text_label 192@s = 'SYN1_ZC'
set_lvar_text_label 194@s = 'SYN1_ZD'
set_lvar_text_label 196@s = 'SYN1_ZE'
set_lvar_text_label 200@s = 'SYN1_ZG'
set_lvar_text_label 206@s = 'SYN1_ZK'
set_lvar_text_label 208@s = 'SYN1_ZL'
set_lvar_text_label 210@s = 'SYN1_ZM'
set_lvar_text_label 212@s = 'SYN1_ZN'
set_lvar_text_label 216@s = 'SYN1_ZP'
set_lvar_text_label 218@s = 'SYN1_ZQ'
set_lvar_text_label 220@s = 'SYN1_ZR'
set_lvar_text_label 224@s = 'SYN1_ZT'
set_lvar_text_label 226@s = 'SYN1_ZU'
set_lvar_text_label 230@s = 'SYN1_ZW'
set_lvar_text_label 232@s = 'SYN1_ZX'
set_lvar_text_label 234@s = 'SYN1_ZY'
set_lvar_text_label 236@s = 'SYN1_ZZ'
set_lvar_text_label 238@s = 'SYN1_YA'
set_lvar_text_label 240@s = 'SYN1_YB'
set_lvar_text_label 246@s = 'SYN1_YE'
set_lvar_text_label 248@s = 'SYN1_YF'
set_lvar_text_label 252@s = 'SYN1_YH'
set_lvar_text_label 254@s = 'SYN1_YJ'
set_lvar_text_label 256@s = 'SYN1_YK'
set_lvar_int_to_constant 273@ = 4659
set_lvar_int_to_constant 274@ = 4667
set_lvar_int_to_constant 275@ = 4660
set_lvar_int_to_constant 276@ = 4661
set_lvar_int_to_constant 277@ = 4668
set_lvar_int_to_constant 278@ = 4662
set_lvar_int_to_constant 279@ = 4663
set_lvar_int_to_constant 280@ = 4669
set_lvar_int_to_constant 281@ = 4664
set_lvar_int_to_constant 282@ = 42401
set_lvar_int_to_constant 287@ = 11609
set_lvar_int_to_constant 288@ = 11649
set_lvar_int_to_constant 289@ = 11600
set_lvar_int_to_constant 292@ = 11636
set_lvar_int_to_constant 293@ = 11637
set_lvar_int_to_constant 294@ = 11651
set_lvar_int_to_constant 296@ = 11638
set_lvar_int_to_constant 299@ = 11639
set_lvar_int_to_constant 300@ = 11640
set_lvar_int_to_constant 301@ = 11641
set_lvar_int_to_constant 302@ = 11642
set_lvar_int_to_constant 304@ = 11643
set_lvar_int_to_constant 305@ = 11652
set_lvar_int_to_constant 306@ = 11644
set_lvar_int_to_constant 308@ = 11645
set_lvar_int_to_constant 309@ = 11646
set_lvar_int_to_constant 311@ = 11647
set_lvar_int_to_constant 312@ = 11653
set_lvar_int_to_constant 313@ = 11648
set_lvar_int_to_constant 314@ = 11654
set_lvar_int_to_constant 315@ = 11630
set_lvar_int_to_constant 316@ = 11631
set_lvar_int_to_constant 319@ = 11632
set_lvar_int_to_constant 320@ = 11633
set_lvar_int_to_constant 322@ = 11634
set_lvar_int_to_constant 323@ = 11650
set_lvar_int_to_constant 324@ = 11635
if 
  $flag_syn1_passed_1stime == 0
goto_if_false @SYN1_3442
$flag_syn1_passed_1stime = 1

:SYN1_3442
Streaming.RequestModel(330)
Streaming.RequestModel(367)
Streaming.LoadAllModelsNow

:SYN1_3454
if or
  not Streaming.HasModelLoaded(367)
  not Streaming.HasModelLoaded(330)
goto_if_false @SYN1_3486
wait 0
goto @SYN1_3454

:SYN1_3486
Char.SetCoordinates($scplayer, -2030.312, 148.0136, 27.8359)
Char.SetHeading($scplayer, 293.7756)
Player.SetControl($player1, False)
Task.UseMobilePhone($scplayer, True)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2024.469, 136.6788, 39.4814, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2025.135, 137.4221, 39.5473, SwitchType.JumpCut)
CarGenerator.Switch($car_gen_low_rider_near_cesars, 0)
CarGenerator.Switch($car_gen_pine, 0)
CarGenerator.Switch($5278, 0)
gosub @SYN1_47
Camera.DoFade(300, Fade.In)

:SYN1_3620
if 
  Camera.GetFadingStatus
goto_if_false @SYN1_3644
wait 0
goto @SYN1_3620

:SYN1_3644
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(-2024.469, 136.6788, 39.4814, -2030.399, 144.5236, 29.1601, 3500, True)
Camera.SetVectorTrack(-2025.135, 137.4221, 39.5473, -2030.797, 145.4357, 29.0639, 3500, True)

:SYN1_3728
wait 0
if 
  334@ <> 0
goto_if_false @SYN1_4159
if 
  336@ == 0
goto_if_false @SYN1_3796
if 
  Audio.HasMissionAudioLoaded(333@)
goto_if_false @SYN1_3789
Audio.ClearMissionAudio(333@)

:SYN1_3789
336@ = 1

:SYN1_3796
if 
  336@ == 1
goto_if_false @SYN1_3840
Audio.LoadMissionAudio(332@, 272@(334@,60i))
gosub @SYN1_15742
336@ = 2

:SYN1_3840
if 
  336@ == 2
goto_if_false @SYN1_3942
if 
  Audio.HasMissionAudioLoaded(332@)
goto_if_false @SYN1_3942
if 
  148@ <> 0
goto_if_false @SYN1_3916
if 
  not Char.IsDead(148@)
goto_if_false @SYN1_3916
Char.StartFacialTalk(148@, 10000)

:SYN1_3916
Audio.PlayMissionAudio(332@)
Text.PrintNow(152@(334@,60s), 10000, 1)
336@ = 3

:SYN1_3942
if 
  336@ == 3
goto_if_false @SYN1_4159
if 
  Audio.HasMissionAudioFinished(332@)
goto_if_false @SYN1_4098
Text.ClearThisPrint(152@(334@,60s))
if 
  148@ <> 0
goto_if_false @SYN1_4024
if 
  not Char.IsDead(148@)
goto_if_false @SYN1_4024
Char.StopFacialTalk(148@)

:SYN1_4024
if 
  332@ == 1
goto_if_false @SYN1_4063
332@ = 2
333@ = 1
goto @SYN1_4077

:SYN1_4063
332@ = 1
333@ = 2

:SYN1_4077
334@ = 0
336@ = 0
goto @SYN1_4159

:SYN1_4098
if 
  not Audio.HasMissionAudioLoaded(333@)
goto_if_false @SYN1_4159
if 
  60 > 334@
goto_if_false @SYN1_4159
set_lvar_int_to_lvar_int 335@ = 334@
335@ += 1
Audio.LoadMissionAudio(333@, 272@(335@,60i))

:SYN1_4159
if 
  39@ == 0
goto_if_false @SYN1_4214
if 
  336@ == 0
goto_if_false @SYN1_4214
334@ = 1
39@ = 1
151@ = Clock.GetGameTimer()

:SYN1_4214
if 
  39@ == 1
goto_if_false @SYN1_4309
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4309
if 
  336@ == 0
goto_if_false @SYN1_4309
334@ = 2
39@ = 2
151@ = Clock.GetGameTimer()

:SYN1_4309
if 
  39@ == 2
goto_if_false @SYN1_4404
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4404
if 
  336@ == 0
goto_if_false @SYN1_4404
334@ = 3
39@ = 3
151@ = Clock.GetGameTimer()

:SYN1_4404
if 
  39@ == 3
goto_if_false @SYN1_4499
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4499
if 
  336@ == 0
goto_if_false @SYN1_4499
334@ = 4
39@ = 4
151@ = Clock.GetGameTimer()

:SYN1_4499
if 
  39@ == 4
goto_if_false @SYN1_4611
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4611
if 
  336@ == 0
goto_if_false @SYN1_4611
Camera.ResetNewScriptables
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
334@ = 5
39@ = 5
151@ = Clock.GetGameTimer()

:SYN1_4611
if 
  39@ == 5
goto_if_false @SYN1_4706
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4706
if 
  336@ == 0
goto_if_false @SYN1_4706
334@ = 6
39@ = 6
151@ = Clock.GetGameTimer()

:SYN1_4706
if 
  39@ == 6
goto_if_false @SYN1_4801
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4801
if 
  336@ == 0
goto_if_false @SYN1_4801
334@ = 7
39@ = 7
151@ = Clock.GetGameTimer()

:SYN1_4801
if 
  39@ == 7
goto_if_false @SYN1_4896
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4896
if 
  336@ == 0
goto_if_false @SYN1_4896
334@ = 8
39@ = 8
151@ = Clock.GetGameTimer()

:SYN1_4896
if 
  39@ == 8
goto_if_false @SYN1_4991
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4991
if 
  336@ == 0
goto_if_false @SYN1_4991
334@ = 9
39@ = 9
151@ = Clock.GetGameTimer()

:SYN1_4991
if or
  39@ == 9
  39@ == 10
goto_if_false @SYN1_5124
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_5124
if 
  336@ == 0
goto_if_false @SYN1_5124
Player.SetControl($player1, True)
365@ = Char.GetScriptTaskStatus($scplayer, 1833)
if 
  not is_int_lvar_equal_to_constant 365@ == 7
goto_if_false @SYN1_5117
Task.UseMobilePhone($scplayer, False)

:SYN1_5117
goto @SYN1_5178

:SYN1_5124
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN1_5171
Camera.ResetNewScriptables
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
39@ = 10

:SYN1_5171
goto @SYN1_3728

:SYN1_5178
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SYN1_5204
goto @SYN1_14516

:SYN1_5204
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @SYN1_5233
$flag_syn1_skip1 = 1
$flag_syn1_skip2 = 1

:SYN1_5233
if 
  34@ == 0
goto_if_false @SYN1_5400
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @SYN1_5400
Camera.DoFade(100, Fade.Out)

:SYN1_5272
if 
  Camera.GetFadingStatus
goto_if_false @SYN1_5296
wait 0
goto @SYN1_5272

:SYN1_5296
Char.SetCoordinates($scplayer, 387@, 388@, 389@)
Char.GiveWeapon($scplayer, WeaponType.Camera, 30000)
Streaming.LoadScene(387@, 388@, 389@)
Streaming.LoadScene(402@, 403@, 404@)
gosub @SYN1_345
gosub @SYN1_498
Camera.DoFade(100, Fade.In)

:SYN1_5362
if 
  Camera.GetFadingStatus
goto_if_false @SYN1_5386
wait 0
goto @SYN1_5362

:SYN1_5386
34@ = 5
35@ = 1

:SYN1_5400
if 
  334@ <> 0
goto_if_false @SYN1_5973
if 
  336@ == 0
goto_if_false @SYN1_5464
if 
  Audio.HasMissionAudioLoaded(333@)
goto_if_false @SYN1_5457
Audio.ClearMissionAudio(333@)

:SYN1_5457
336@ = 1

:SYN1_5464
if 
  336@ == 1
goto_if_false @SYN1_5508
Audio.LoadMissionAudio(332@, 272@(334@,60i))
gosub @SYN1_15742
336@ = 2

:SYN1_5508
if 
  336@ == 2
goto_if_false @SYN1_5610
if 
  Audio.HasMissionAudioLoaded(332@)
goto_if_false @SYN1_5610
if 
  148@ <> 0
goto_if_false @SYN1_5584
if 
  not Char.IsDead(148@)
goto_if_false @SYN1_5584
Char.StartFacialTalk(148@, 10000)

:SYN1_5584
Audio.PlayMissionAudio(332@)
Text.PrintNow(152@(334@,60s), 10000, 1)
336@ = 3

:SYN1_5610
if 
  336@ == 3
goto_if_false @SYN1_5973
if 
  Audio.HasMissionAudioFinished(332@)
goto_if_false @SYN1_5912
Text.ClearThisPrint(152@(334@,60s))
if 
  148@ <> 0
goto_if_false @SYN1_5692
if 
  not Char.IsDead(148@)
goto_if_false @SYN1_5692
Char.StopFacialTalk(148@)

:SYN1_5692
if 
  332@ == 1
goto_if_false @SYN1_5731
332@ = 2
333@ = 1
goto @SYN1_5745

:SYN1_5731
332@ = 1
333@ = 2

:SYN1_5745
if and
  334@ == 10
  36@ == 2
goto_if_false @SYN1_5798
334@ = 0
336@ = 0
36@ = 3
goto @SYN1_5812

:SYN1_5798
334@ = 0
336@ = 0

:SYN1_5812
if 
  337@ == 1
goto_if_false @SYN1_5837
337@ = 2

:SYN1_5837
if 
  337@ == 0
goto_if_false @SYN1_5862
337@ = 1

:SYN1_5862
if 
  34@ == 6
goto_if_false @SYN1_5905
if 
  35@ == 13
goto_if_false @SYN1_5905
35@ = 0

:SYN1_5905
goto @SYN1_5973

:SYN1_5912
if 
  not Audio.HasMissionAudioLoaded(333@)
goto_if_false @SYN1_5973
if 
  60 > 334@
goto_if_false @SYN1_5973
set_lvar_int_to_lvar_int 335@ = 334@
335@ += 1
Audio.LoadMissionAudio(333@, 272@(335@,60i))

:SYN1_5973
if 
  34@ == 0
goto_if_false @SYN1_6047
379@ = Blip.AddForCoord($player_first_spot_W2, $sy1_cesar_car_x, $sy1_cesar_car_y)
Blip.SetCoordAppearance(379@, 1)
151@ = Clock.GetGameTimer()
Text.Print('SYN1_02', 10000, 1)
147@ = 11
34@ = 1

:SYN1_6047
if 
  34@ == 2
goto_if_false @SYN1_6121
if 
  not Char.LocateInCar3D($scplayer, 48@, 49@, 50@, 4.0, 4.0, 4.0, False)
goto_if_false @SYN1_6121
gosub @SYN1_14934
gosub @SYN1_15405

:SYN1_6121
if 
  34@ == 1
goto_if_false @SYN1_7089
if 
  35@ == 0
goto_if_false @SYN1_6344
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SYN1_6344
366@ = Char.StoreCarIsInNoSave($scplayer)
if 
  336@ == 0
goto_if_false @SYN1_6344
if 
  147@ == 11
goto_if_false @SYN1_6344
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1
goto_if_false @SYN1_6344
if 
  $flag_syn1_skip1 == 1
goto_if_false @SYN1_6296
Skip.SetUp(-85.518, -413.1554, 0.4297, 240.0212)

:SYN1_6296
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @SYN1_6325
Text.Print('SYN1_02', 10000, 1)

:SYN1_6325
151@ = Clock.GetGameTimer()
147@ = 12
35@ = 1

:SYN1_6344
if 
  36@ == 0
goto_if_false @SYN1_6497
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @SYN1_6497
Task.UseMobilePhone($scplayer, False)
if 
  not Car.IsDead(366@)
goto_if_false @SYN1_6409
Car.LockDoors(366@, CarLock.Unlocked)

:SYN1_6409
147@ = 12
35@ = 1
gosub @SYN1_148
if 
  not Char.IsDead(376@)
goto_if_false @SYN1_6490
Task.PlayAnim(376@, "BOM_PLANT_LOOP", "BOMBER", 4.0, True, False, False, False, -1)

:SYN1_6490
36@ = 1

:SYN1_6497
if 
  36@ == 0
goto_if_false @SYN1_6668
if 
  Char.LocateAnyMeans3D($scplayer, $player_first_spot_W2, $sy1_cesar_car_x, $sy1_cesar_car_y, 150.0, 150.0, 150.0, True)
goto_if_false @SYN1_6668
Task.UseMobilePhone($scplayer, False)
if 
  not Car.IsDead(366@)
goto_if_false @SYN1_6587
Car.LockDoors(366@, CarLock.Unlocked)

:SYN1_6587
gosub @SYN1_148
if 
  not Char.IsDead(376@)
goto_if_false @SYN1_6654
Task.PlayAnim(376@, "BOM_PLANT_LOOP", "BOMBER", 4.0, True, False, False, False, -1)

:SYN1_6654
147@ = 12
36@ = 1

:SYN1_6668
if 
  36@ == 1
goto_if_false @SYN1_7089
if and
  not Char.IsDead(376@)
  not Car.IsDead(377@)
goto_if_false @SYN1_7089
if and
  Char.LocateAnyMeansChar3D($scplayer, 376@, 30.0, 30.0, 30.0, False)
  not Char.LocateAnyMeansChar3D($scplayer, 376@, 8.0, 8.0, 8.0, False)
goto_if_false @SYN1_6890
Text.PrintNow('SYN1_15', 100, 1)
if 
  41@ == 0
goto_if_false @SYN1_6890
if 
  not Char.IsDead(376@)
goto_if_false @SYN1_6890
380@ = Char.GetScriptTaskStatus(376@, 1541)
if 
  is_int_lvar_equal_to_constant 380@ == 7
goto_if_false @SYN1_6890
Task.PlayAnim(376@, "BOM_PLANT_LOOP", "BOMBER", 4.0, True, False, False, False, -1)

:SYN1_6890
if 
  Char.LocateAnyMeansChar3D($scplayer, 376@, 8.0, 8.0, 8.0, False)
goto_if_false @SYN1_7089
Char.ClearTasks(376@)
if 
  41@ == 0
goto_if_false @SYN1_6956
41@ = 1

:SYN1_6956
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SYN1_7089
if 
  not Char.IsGroupMember(376@, $Players_Group)
goto_if_false @SYN1_7089
if 
  $flag_syn1_skip1 == 0
goto_if_false @SYN1_7016
$flag_syn1_skip1 = 1

:SYN1_7016
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, 376@)
Blip.Remove(379@)
381@ = Blip.AddForCar(377@)
Blip.SetAsFriendly(381@, True)
151@ = Clock.GetGameTimer()
151@ -= 3000
34@ = 2
35@ = 4
42@ = 1
367@ = 0

:SYN1_7089
if 
  34@ == 1
goto_if_false @SYN1_7166
if 
  36@ == 1
goto_if_false @SYN1_7166
if 
  Char.IsDead(376@)
goto_if_false @SYN1_7166
Text.ClearPrints
Text.Print('SYN1_06', 5000, 1)
goto @SYN1_14491

:SYN1_7166
if or
  34@ == 2
  34@ == 3
goto_if_false @SYN1_7273
if 
  Char.IsDead(376@)
goto_if_false @SYN1_7232
Text.ClearPrints
Text.Print('SYN1_06', 5000, 1)
goto @SYN1_14491

:SYN1_7232
if 
  Car.IsDead(377@)
goto_if_false @SYN1_7273
Text.ClearPrints
Text.Print('SYN1_08', 5000, 1)
goto @SYN1_14491

:SYN1_7273
if 
  34@ == 2
goto_if_false @SYN1_8310
if and
  367@ == 1
  368@ == 1
  147@ == 12
goto_if_false @SYN1_7337
147@ = 2
goto @SYN1_7568

:SYN1_7337
if 
  147@ > 5
goto_if_false @SYN1_7568
if 
  368@ == 1
goto_if_false @SYN1_7430
if 
  36@ == 1
goto_if_false @SYN1_7430
if and
  336@ == 0
  334@ == 0
goto_if_false @SYN1_7430
334@ = 10
36@ = 2

:SYN1_7430
if 
  36@ == 1
goto_if_false @SYN1_7499
if and
  368@ == 0
  334@ == 0
  336@ == 0
goto_if_false @SYN1_7499
Text.PrintNow('SYN1_15', 100, 1)
Audio.SetRadioChannel(RadioChannel.PlaybackFM)

:SYN1_7499
if 
  36@ == 3
goto_if_false @SYN1_7568
if and
  368@ == 1
  334@ == 0
  336@ == 0
goto_if_false @SYN1_7568
Text.PrintNow('SYN1_07', 100, 1)
Audio.SetRadioChannel(RadioChannel.PlaybackFM)

:SYN1_7568
if and
  not Char.IsDead(376@)
  not Car.IsDead(377@)
goto_if_false @SYN1_7902
if 
  Char.IsInCar(376@, 377@)
goto_if_false @SYN1_7902
if 
  147@ == 2
goto_if_false @SYN1_7703
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 3500
goto_if_false @SYN1_7703
if 
  336@ == 0
goto_if_false @SYN1_7703
334@ = 15
151@ = Clock.GetGameTimer()
147@ = 3

:SYN1_7703
if 
  147@ == 3
goto_if_false @SYN1_7798
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_7798
if 
  336@ == 0
goto_if_false @SYN1_7798
334@ = 16
151@ = Clock.GetGameTimer()
147@ = 4

:SYN1_7798
if 
  147@ == 4
goto_if_false @SYN1_7902
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_7902
if 
  336@ == 0
goto_if_false @SYN1_7902
Text.Print('SYN1_13', 10000, 1)
151@ = Clock.GetGameTimer()
147@ = 5

:SYN1_7902
if 
  35@ == 4
goto_if_false @SYN1_8310
if and
  not Char.IsDead(376@)
  not Car.IsDead(377@)
goto_if_false @SYN1_8310
if 
  Char.IsInCar(376@, 377@)
goto_if_false @SYN1_8310
if 
  Char.IsInCar($scplayer, 377@)
goto_if_false @SYN1_8310
if 
  Char.LocateInCar3D($scplayer, 48@, 49@, 50@, 4.0, 4.0, 4.0, True)
goto_if_false @SYN1_8310
if 
  $flag_syn1_skip2 == 0
goto_if_false @SYN1_8046
$flag_syn1_skip2 = 1

:SYN1_8046
Player.SetControl($player1, False)
151@ = Clock.GetGameTimer()
Blip.Remove(51@)
52@ = Blip.AddForCoord(387@, 388@, 389@)
Text.PrintNow('SYN1_14', 5000, 1)
34@ = 3
if 
  Char.IsGroupMember(376@, $Players_Group)
goto_if_false @SYN1_8310
Char.RemoveFromGroup(376@)
385@ = Sequence.Open()
Task.LeaveCar(-1, 377@)
Task.GoStraightToCoord(-1, -2160.515, -2413.449, 29.625, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2162.452, -2414.229, 29.6328, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2165.884, -2411.885, 31.625, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2168.957, -2409.118, 33.618, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2170.84, -2414.24, 33.2969, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2167.741, -2416.953, 33.2969, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2168.362, -2419.44, 33.2969, MoveState.Walk, -2)
Sequence.Close(385@)
Char.PerformSequence(376@, 385@)

:SYN1_8310
if 
  34@ == 3
goto_if_false @SYN1_8709
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 500
goto_if_false @SYN1_8375
Player.SetControl($player1, True)

:SYN1_8375
if 
  Char.LocateOnFoot3D($scplayer, 387@, 388@, 389@, 1.2, 1.2, 2.0, True)
goto_if_false @SYN1_8709
Camera.DoFade(100, Fade.Out)

:SYN1_8423
if 
  Camera.GetFadingStatus
goto_if_false @SYN1_8447
wait 0
goto @SYN1_8423

:SYN1_8447
if 
  not Car.IsDead(377@)
goto_if_false @SYN1_8530
Car.SetProofs(377@, True, True, True, True, True)
Car.SetHealth(377@, 1000)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
Car.SetCoordinates(377@, -2160.06, -2409.631, 29.6172)
Car.SetHeading(377@, 191.1948)

:SYN1_8530
if 
  not Char.IsDead(376@)
goto_if_false @SYN1_8561
Char.SetProofs(376@, True, True, True, True, True)

:SYN1_8561
Player.AlterWantedLevel($player1, 0)
Blip.Remove(52@)
Char.SetCoordinates($scplayer, 387@, 388@, 389@)
Char.GiveWeapon($scplayer, WeaponType.Camera, 30000)
Streaming.LoadScene(387@, 388@, 389@)
Streaming.LoadScene(402@, 403@, 404@)
Text.PrintHelpForever('SYN1_44')
gosub @SYN1_345
gosub @SYN1_498
Camera.DoFade(100, Fade.In)

:SYN1_8650
if 
  Camera.GetFadingStatus
goto_if_false @SYN1_8674
wait 0
goto @SYN1_8650

:SYN1_8674
34@ = 5
35@ = 0
151@ = Clock.GetGameTimer()
Text.PrintNow('SYN1_12', 10000, 1)

:SYN1_8709
if 
  34@ == 5
goto_if_false @SYN1_12631
146@ = Camera.GetFov()
if 
  35@ == 0
goto_if_false @SYN1_8881
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 8000
goto_if_false @SYN1_8830
if 
  not Car.IsDead(392@)
goto_if_false @SYN1_8830
if 
  not Car.IsPlaybackGoingOn(392@)
goto_if_false @SYN1_8830
Car.StartPlayback(392@, 190)

:SYN1_8830
if 
  149@ > 10000
goto_if_false @SYN1_8881
if 
  336@ == 0
goto_if_false @SYN1_8881
334@ = 17
35@ = 1

:SYN1_8881
if 
  35@ == 1
goto_if_false @SYN1_9106
if and
  not Car.IsDead(392@)
  not Char.IsDead(391@)
goto_if_false @SYN1_9106
if 
  not Car.IsPlaybackGoingOn(392@)
goto_if_false @SYN1_9106
397@ = Sequence.Open()
Task.LeaveCar(-1, 392@)
Task.GoStraightToCoord(-1, -2151.475, -2442.065, 29.6328, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2157.388, -2441.616, 29.625, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2162.471, -2444.574, 29.625, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2167.309, -2451.878, 29.625, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2166.517, -2456.966, 29.625, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2160.42, -2461.468, 29.6328, MoveState.Walk, -2)
Sequence.Close(397@)
Char.PerformSequence(391@, 397@)
35@ = 2

:SYN1_9106
if 
  35@ == 2
goto_if_false @SYN1_9211
if and
  not Car.IsDead(392@)
  not Char.IsDead(391@)
goto_if_false @SYN1_9211
if 
  not Char.IsInCar(391@, 392@)
goto_if_false @SYN1_9211
393@ = Blip.AddForChar(391@)
if 
  Char.HasBeenPhotographed(391@)
goto_if_false @SYN1_9188

:SYN1_9188
Text.PrintNow('SYN1_04', 5000, 1)
35@ = 3

:SYN1_9211
if 
  35@ == 3
goto_if_false @SYN1_9378
if 
  not Char.IsDead(391@)
goto_if_false @SYN1_9378
395@ = Char.GetScriptTaskStatus(391@, 1560)
if 
  is_int_lvar_equal_to_constant 395@ == 7
goto_if_false @SYN1_9378
Camera.DoFade(500, Fade.Out)

:SYN1_9281
if 
  Camera.GetFadingStatus
goto_if_false @SYN1_9305
wait 0
goto @SYN1_9281

:SYN1_9305
if 
  not Car.IsDead(386@)
goto_if_false @SYN1_9378
Char.DetachFromCar($scplayer)
Car.Delete(386@)
Char.SetCoordinates($scplayer, 387@, 388@, 389@)
Char.SetHeading($scplayer, 210.0)
Text.PrintNow('SYN1_09', 7500, 1)
goto @SYN1_14491

:SYN1_9378
if 
  35@ == 3
goto_if_false @SYN1_9626
if 
  40@ == 0
goto_if_false @SYN1_9626
if 
  not Char.IsDead(391@)
goto_if_false @SYN1_9626
if 
  Char.HasBeenPhotographed(391@)
goto_if_false @SYN1_9626
if 
  20.0 > 146@
goto_if_false @SYN1_9594
401@ = Char.GetHeading(391@)
if or
  is_float_lvar_greater_than_float_lvar 401@ > 339@
  is_float_lvar_greater_than_float_lvar 338@ > 401@
goto_if_false @SYN1_9555
if 
  336@ == 0
goto_if_false @SYN1_9548
Text.ClearPrints
Blip.Remove(393@)
gosub @SYN1_733
337@ = 0
35@ = 4

:SYN1_9548
goto @SYN1_9587

:SYN1_9555
Text.Print('SYN1_10', 3000, 1)
if 
  Char.HasBeenPhotographed(391@)
goto_if_false @SYN1_9587

:SYN1_9587
goto @SYN1_9626

:SYN1_9594
Text.Print('SYN1_05', 3000, 1)
if 
  Char.HasBeenPhotographed(391@)
goto_if_false @SYN1_9626

:SYN1_9626
if and
  35@ > 3
  7 > 35@
goto_if_false @SYN1_9769
if 
  40@ == 0
goto_if_false @SYN1_9769
if 
  336@ == 0
goto_if_false @SYN1_9769
if 
  337@ == 0
goto_if_false @SYN1_9712
334@ = 20

:SYN1_9712
if 
  337@ == 1
goto_if_false @SYN1_9737
334@ = 22

:SYN1_9737
if 
  337@ == 2
goto_if_false @SYN1_9769
334@ = 27
40@ = 1

:SYN1_9769
if 
  35@ == 4
goto_if_false @SYN1_9994
if and
  not Car.IsDead(407@)
  not Char.IsDead(406@)
goto_if_false @SYN1_9994
if 
  not Car.IsPlaybackGoingOn(407@)
goto_if_false @SYN1_9994
411@ = Sequence.Open()
Task.LeaveCar(-1, 407@)
Task.GoStraightToCoord(-1, -2156.689, -2441.712, 29.625, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2161.142, -2444.187, 29.625, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2165.83, -2449.476, 29.625, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2167.138, -2454.51, 29.6328, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2164.094, -2458.863, 29.625, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2161.336, -2460.522, 29.6328, MoveState.Walk, -2)
Sequence.Close(411@)
Char.PerformSequence(406@, 411@)
35@ = 5

:SYN1_9994
if 
  35@ == 5
goto_if_false @SYN1_10099
if and
  not Car.IsDead(407@)
  not Char.IsDead(406@)
goto_if_false @SYN1_10099
if 
  not Char.IsInCar(406@, 407@)
goto_if_false @SYN1_10099
408@ = Blip.AddForChar(406@)
if 
  Char.HasBeenPhotographed(406@)
goto_if_false @SYN1_10076

:SYN1_10076
Text.PrintNow('SYN1_04', 5000, 1)
35@ = 6

:SYN1_10099
if 
  35@ == 6
goto_if_false @SYN1_10266
if 
  not Char.IsDead(406@)
goto_if_false @SYN1_10266
409@ = Char.GetScriptTaskStatus(406@, 1560)
if 
  is_int_lvar_equal_to_constant 409@ == 7
goto_if_false @SYN1_10266
Camera.DoFade(500, Fade.Out)

:SYN1_10169
if 
  Camera.GetFadingStatus
goto_if_false @SYN1_10193
wait 0
goto @SYN1_10169

:SYN1_10193
if 
  not Car.IsDead(386@)
goto_if_false @SYN1_10266
Char.DetachFromCar($scplayer)
Car.Delete(386@)
Char.SetCoordinates($scplayer, 387@, 388@, 389@)
Char.SetHeading($scplayer, 210.0)
Text.PrintNow('SYN1_09', 7500, 1)
goto @SYN1_14491

:SYN1_10266
if 
  35@ == 6
goto_if_false @SYN1_10514
if 
  40@ == 1
goto_if_false @SYN1_10514
if 
  not Char.IsDead(406@)
goto_if_false @SYN1_10514
if 
  Char.HasBeenPhotographed(406@)
goto_if_false @SYN1_10514
if 
  20.0 > 146@
goto_if_false @SYN1_10482
415@ = Char.GetHeading(406@)
if or
  is_float_lvar_greater_than_float_lvar 415@ > 339@
  is_float_lvar_greater_than_float_lvar 338@ > 415@
goto_if_false @SYN1_10443
if 
  336@ == 0
goto_if_false @SYN1_10436
Text.ClearPrints
Blip.Remove(408@)
gosub @SYN1_1218
337@ = 0
35@ = 7

:SYN1_10436
goto @SYN1_10475

:SYN1_10443
Text.Print('SYN1_10', 3000, 1)
if 
  Char.HasBeenPhotographed(406@)
goto_if_false @SYN1_10475

:SYN1_10475
goto @SYN1_10514

:SYN1_10482
Text.Print('SYN1_05', 3000, 1)
if 
  Char.HasBeenPhotographed(406@)
goto_if_false @SYN1_10514

:SYN1_10514
if and
  35@ > 6
  10 > 35@
goto_if_false @SYN1_10657
if 
  40@ == 1
goto_if_false @SYN1_10657
if 
  336@ == 0
goto_if_false @SYN1_10657
if 
  337@ == 0
goto_if_false @SYN1_10600
334@ = 32

:SYN1_10600
if 
  337@ == 1
goto_if_false @SYN1_10625
334@ = 33

:SYN1_10625
if 
  337@ == 2
goto_if_false @SYN1_10657
334@ = 30
40@ = 2

:SYN1_10657
if 
  35@ == 7
goto_if_false @SYN1_11035
if and
  not Car.IsDead(437@)
  not Char.IsDead(436@)
goto_if_false @SYN1_11035
if 
  Car.IsPlaybackGoingOn(437@)
goto_if_false @SYN1_10895
359@, 360@, 361@ = Car.GetOffsetInWorldCoords(437@, 0.0, 4.0, 0.0)
set_lvar_float_to_lvar_float 356@ = 359@
356@ -= 1.0
set_lvar_float_to_lvar_float 357@ = 360@
357@ -= 1.0
set_lvar_float_to_lvar_float 358@ = 361@
358@ -= 1.0
set_lvar_float_to_lvar_float 362@ = 359@
362@ += 1.0
set_lvar_float_to_lvar_float 363@ = 360@
363@ += 1.0
set_lvar_float_to_lvar_float 364@ = 361@
364@ += 1.0
if 
  World.IsAreaOccupied(356@, 357@, 358@, 362@, 363@, 364@, False, False, True, False, False)
goto_if_false @SYN1_10895
Car.StopPlayback(437@)

:SYN1_10895
if 
  not Car.IsPlaybackGoingOn(437@)
goto_if_false @SYN1_11035
441@ = Sequence.Open()
Task.LeaveCar(-1, 437@)
Task.GoStraightToCoord(-1, -2176.855, -2453.54, 29.4688, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2172.517, -2453.834, 29.625, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2169.383, -2456.08, 29.625, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2162.812, -2459.839, 29.6328, MoveState.Walk, -2)
Sequence.Close(441@)
Char.PerformSequence(436@, 441@)
35@ = 8

:SYN1_11035
if 
  35@ == 8
goto_if_false @SYN1_11140
if and
  not Car.IsDead(437@)
  not Char.IsDead(436@)
goto_if_false @SYN1_11140
if 
  not Char.IsInCar(436@, 437@)
goto_if_false @SYN1_11140
438@ = Blip.AddForChar(436@)
if 
  Char.HasBeenPhotographed(436@)
goto_if_false @SYN1_11117

:SYN1_11117
Text.PrintNow('SYN1_04', 5000, 1)
35@ = 9

:SYN1_11140
if 
  35@ == 9
goto_if_false @SYN1_11307
if 
  not Char.IsDead(436@)
goto_if_false @SYN1_11307
439@ = Char.GetScriptTaskStatus(436@, 1560)
if 
  is_int_lvar_equal_to_constant 439@ == 7
goto_if_false @SYN1_11307
Camera.DoFade(500, Fade.Out)

:SYN1_11210
if 
  Camera.GetFadingStatus
goto_if_false @SYN1_11234
wait 0
goto @SYN1_11210

:SYN1_11234
if 
  not Car.IsDead(386@)
goto_if_false @SYN1_11307
Char.DetachFromCar($scplayer)
Car.Delete(386@)
Char.SetCoordinates($scplayer, 387@, 388@, 389@)
Char.SetHeading($scplayer, 210.0)
Text.PrintNow('SYN1_09', 7500, 1)
goto @SYN1_14491

:SYN1_11307
if 
  35@ == 9
goto_if_false @SYN1_11555
if 
  40@ == 2
goto_if_false @SYN1_11555
if 
  not Char.IsDead(436@)
goto_if_false @SYN1_11555
if 
  Char.HasBeenPhotographed(436@)
goto_if_false @SYN1_11555
if 
  20.0 > 146@
goto_if_false @SYN1_11523
445@ = Char.GetHeading(436@)
if or
  is_float_lvar_greater_than_float_lvar 445@ > 339@
  is_float_lvar_greater_than_float_lvar 338@ > 445@
goto_if_false @SYN1_11484
if 
  336@ == 0
goto_if_false @SYN1_11477
Text.ClearPrints
Blip.Remove(438@)
gosub @SYN1_934
337@ = 0
35@ = 10

:SYN1_11477
goto @SYN1_11516

:SYN1_11484
Text.Print('SYN1_10', 3000, 1)
if 
  Char.HasBeenPhotographed(436@)
goto_if_false @SYN1_11516

:SYN1_11516
goto @SYN1_11555

:SYN1_11523
Text.Print('SYN1_05', 3000, 1)
if 
  Char.HasBeenPhotographed(436@)
goto_if_false @SYN1_11555

:SYN1_11555
if and
  35@ > 9
  13 > 35@
goto_if_false @SYN1_11698
if 
  40@ == 2
goto_if_false @SYN1_11698
if 
  336@ == 0
goto_if_false @SYN1_11698
if 
  337@ == 0
goto_if_false @SYN1_11641
334@ = 42

:SYN1_11641
if 
  337@ == 1
goto_if_false @SYN1_11666
334@ = 43

:SYN1_11666
if 
  337@ == 2
goto_if_false @SYN1_11698
334@ = 39
40@ = 3

:SYN1_11698
if 
  35@ == 10
goto_if_false @SYN1_11884
if and
  not Car.IsDead(421@)
  not Char.IsDead(420@)
goto_if_false @SYN1_11884
if 
  not Car.IsPlaybackGoingOn(421@)
goto_if_false @SYN1_11884
427@ = Sequence.Open()
Task.LeaveCar(-1, 421@)
Task.GoStraightToCoord(-1, -2173.391, -2445.985, 29.4688, MoveState.Walk, -2)
Task.StandStill(-1, 1500)
Task.GoStraightToCoord(-1, -2170.468, -2449.187, 29.4688, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2167.974, -2454.974, 29.625, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2163.539, -2458.753, 29.625, MoveState.Walk, -2)
Sequence.Close(427@)
Char.PerformSequence(420@, 427@)
35@ = 11

:SYN1_11884
if 
  35@ == 11
goto_if_false @SYN1_11989
if and
  not Car.IsDead(421@)
  not Char.IsDead(420@)
goto_if_false @SYN1_11989
if 
  not Char.IsInCar(420@, 421@)
goto_if_false @SYN1_11989
422@ = Blip.AddForChar(420@)
if 
  Char.HasBeenPhotographed(420@)
goto_if_false @SYN1_11966

:SYN1_11966
Text.PrintNow('SYN1_04', 5000, 1)
35@ = 12

:SYN1_11989
if 
  35@ == 12
goto_if_false @SYN1_12240
if 
  not Char.IsDead(420@)
goto_if_false @SYN1_12240
425@ = Char.GetScriptTaskStatus(420@, 1560)
if 
  not is_int_lvar_equal_to_constant 425@ == 7
goto_if_false @SYN1_12118
426@ = Char.GetSequenceProgress(420@)
if 
  426@ == 1
goto_if_false @SYN1_12118
if 
  not Car.IsDead(421@)
goto_if_false @SYN1_12118
if 
  not Car.IsPlaybackGoingOn(421@)
goto_if_false @SYN1_12118
Car.StartPlayback(421@, 194)

:SYN1_12118
if 
  is_int_lvar_equal_to_constant 425@ == 7
goto_if_false @SYN1_12240
Camera.DoFade(500, Fade.Out)

:SYN1_12143
if 
  Camera.GetFadingStatus
goto_if_false @SYN1_12167
wait 0
goto @SYN1_12143

:SYN1_12167
if 
  not Car.IsDead(386@)
goto_if_false @SYN1_12240
Char.DetachFromCar($scplayer)
Car.Delete(386@)
Char.SetCoordinates($scplayer, 387@, 388@, 389@)
Char.SetHeading($scplayer, 210.0)
Text.PrintNow('SYN1_09', 7500, 1)
goto @SYN1_14491

:SYN1_12240
if 
  35@ == 12
goto_if_false @SYN1_12481
if 
  40@ == 3
goto_if_false @SYN1_12481
if 
  not Char.IsDead(420@)
goto_if_false @SYN1_12481
if 
  Char.HasBeenPhotographed(420@)
goto_if_false @SYN1_12481
if 
  20.0 > 146@
goto_if_false @SYN1_12449
431@ = Char.GetHeading(420@)
if or
  is_float_lvar_greater_than_float_lvar 431@ > 339@
  is_float_lvar_greater_than_float_lvar 338@ > 431@
goto_if_false @SYN1_12410
if 
  336@ == 0
goto_if_false @SYN1_12403
Text.ClearPrints
Blip.Remove(422@)
337@ = 0
35@ = 13

:SYN1_12403
goto @SYN1_12442

:SYN1_12410
Text.Print('SYN1_10', 3000, 1)
if 
  Char.HasBeenPhotographed(420@)
goto_if_false @SYN1_12442

:SYN1_12442
goto @SYN1_12481

:SYN1_12449
Text.Print('SYN1_05', 3000, 1)
if 
  Char.HasBeenPhotographed(420@)
goto_if_false @SYN1_12481

:SYN1_12481
if 
  35@ == 13
goto_if_false @SYN1_12631
if 
  40@ == 3
goto_if_false @SYN1_12631
if 
  336@ == 0
goto_if_false @SYN1_12631
if 
  337@ == 0
goto_if_false @SYN1_12560
334@ = 40

:SYN1_12560
if 
  337@ == 1
goto_if_false @SYN1_12585
334@ = 41

:SYN1_12585
if 
  337@ == 2
goto_if_false @SYN1_12631
334@ = 29
40@ = 4
34@ = 6
35@ = -3

:SYN1_12631
if 
  34@ == 6
goto_if_false @SYN1_14484
if 
  35@ == -3
goto_if_false @SYN1_12968
if 
  334@ == 0
goto_if_false @SYN1_12968
Camera.DoFade(150, Fade.Out)

:SYN1_12692
if 
  Camera.GetFadingStatus
goto_if_false @SYN1_12716
wait 0
goto @SYN1_12692

:SYN1_12716
Text.ClearHelp
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
if 
  not Char.IsDead(376@)
goto_if_false @SYN1_12968
Char.DetachFromCar($scplayer)
if 
  not Car.IsDead(386@)
goto_if_false @SYN1_12771
Car.Delete(386@)

:SYN1_12771
Camera.SetFixedPosition(-2161.72, -2411.582, 31.9003, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2162.657, -2411.396, 32.193, SwitchType.JumpCut)
Char.SetCoordinates(376@, -2169.03, -2409.327, 33.618)
Char.SetHeading(376@, 232.4401)
Char.SetCoordinates($scplayer, -2170.245, -2410.956, 33.2969)
Char.SetHeading($scplayer, 322.3848)
340@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2169.03, -2409.327, 33.618, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2165.388, -2411.746, 31.625, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -2161.814, -2414.811, 29.625, MoveState.Run, -2)
Sequence.Close(340@)
35@ = -2

:SYN1_12968
if 
  35@ == -2
goto_if_false @SYN1_13061
if 
  not Char.IsDead(376@)
goto_if_false @SYN1_13061
Char.PerformSequence(376@, 340@)
Char.PerformSequence($scplayer, 340@)
Camera.DoFade(150, Fade.In)

:SYN1_13025
if 
  Camera.GetFadingStatus
goto_if_false @SYN1_13049
wait 0
goto @SYN1_13025

:SYN1_13049
151@ = Clock.GetGameTimer()
35@ = -1

:SYN1_13061
if 
  35@ == -1
goto_if_false @SYN1_13126
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 4500
goto_if_false @SYN1_13126
35@ = 0

:SYN1_13126
if 
  35@ == 0
goto_if_false @SYN1_13425
Camera.DoFade(250, Fade.Out)

:SYN1_13151
if 
  Camera.GetFadingStatus
goto_if_false @SYN1_13175
wait 0
goto @SYN1_13151

:SYN1_13175
if and
  not Car.IsDead(377@)
  not Char.IsDead(376@)
goto_if_false @SYN1_13425
Text.ClearPrints
Char.WarpIntoCar($scplayer, 377@)
Char.WarpIntoCarAsPassenger(376@, 377@, 0)
Streaming.MarkModelAsNoLongerNeeded(575)
Streaming.UnloadSpecialCharacter(4)
Streaming.UnloadSpecialCharacter(5)
Camera.SetFixedPosition(-2152.255, -2416.049, 30.2724, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2153.174, -2415.701, 30.4581, SwitchType.JumpCut)
Streaming.RequestCarRecording(197)

:SYN1_13285
if 
  not Streaming.HasCarRecordingBeenLoaded(197)
goto_if_false @SYN1_13312
wait 0
goto @SYN1_13285

:SYN1_13312
if 
  not Car.IsDead(377@)
goto_if_false @SYN1_13341
Car.StartPlayback(377@, 197)
151@ = Clock.GetGameTimer()

:SYN1_13341
Camera.DoFade(100, Fade.In)

:SYN1_13347
if 
  Camera.GetFadingStatus
goto_if_false @SYN1_13371
wait 0
goto @SYN1_13347

:SYN1_13371
if 
  not Char.IsDead(376@)
goto_if_false @SYN1_13411
if 
  Char.IsGroupMember(376@, $Players_Group)
goto_if_false @SYN1_13411
Char.RemoveFromGroup(376@)

:SYN1_13411
35@ = 1
36@ = 1

:SYN1_13425
if 
  35@ == 1
goto_if_false @SYN1_13755
if 
  not Car.IsDead(377@)
goto_if_false @SYN1_13755
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  36@ == 1
goto_if_false @SYN1_13543
if 
  149@ > 1000
goto_if_false @SYN1_13543
Camera.PointAtPoint(-2152.869, -2416.838, 30.285, SwitchType.Interpolation)
36@ = 2

:SYN1_13543
if 
  36@ == 2
goto_if_false @SYN1_13638
if 
  149@ > 6000
goto_if_false @SYN1_13638
Camera.SetFixedPosition(-2267.294, -2565.402, 31.7381, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2266.411, -2564.99, 31.9617, SwitchType.JumpCut)
36@ = 3

:SYN1_13638
if 
  not Car.IsPlaybackGoingOn(377@)
goto_if_false @SYN1_13755
if and
  not Car.IsDead(377@)
  not Char.IsDead(376@)
goto_if_false @SYN1_13755
Task.LeaveCar($scplayer, 377@)
Task.LookAtChar(376@, $scplayer, -2)
World.ClearArea(63@, 78@, 93@, 50.0, True)
Streaming.RequestCarRecording(198)

:SYN1_13716
if 
  not Streaming.HasCarRecordingBeenLoaded(198)
goto_if_false @SYN1_13743
wait 0
goto @SYN1_13716

:SYN1_13743
151@ = Clock.GetGameTimer()
35@ = 2

:SYN1_13755
if 
  35@ == 2
goto_if_false @SYN1_13941
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 2000
goto_if_false @SYN1_13941
if and
  not Char.IsDead($scplayer)
  not Char.IsDead(376@)
  not Car.IsDead(377@)
goto_if_false @SYN1_13941
if 
  336@ == 0
goto_if_false @SYN1_13941
Task.ShuffleToNextCarSeat(376@, 377@)
334@ = 50
Task.LookAtChar($scplayer, 376@, -2)
Task.TurnCharToFaceChar($scplayer, 376@)
Camera.SetFixedPosition(64@, 79@, 94@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(109@, 124@, 139@, SwitchType.JumpCut)
151@ = Clock.GetGameTimer()
35@ = 3

:SYN1_13941
if 
  35@ == 3
goto_if_false @SYN1_14067
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_14067
if and
  not Char.IsDead(376@)
  not Car.IsDead(377@)
goto_if_false @SYN1_14067
if 
  336@ == 0
goto_if_false @SYN1_14067
334@ = 51
Task.LookAtChar(376@, $scplayer, -2)
35@ = 4
151@ = Clock.GetGameTimer()

:SYN1_14067
if 
  35@ == 4
goto_if_false @SYN1_14136
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1
goto_if_false @SYN1_14136
35@ = 5
151@ = Clock.GetGameTimer()

:SYN1_14136
if 
  35@ == 5
goto_if_false @SYN1_14345
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_14345
if and
  not Char.IsDead(376@)
  not Car.IsDead(377@)
goto_if_false @SYN1_14345
if 
  336@ == 0
goto_if_false @SYN1_14345
334@ = 52
Char.ClearLookAt($scplayer)
Char.ClearLookAt(376@)
Camera.SetFixedPosition(-2243.208, -2568.731, 32.6032, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2243.945, -2568.056, 32.605, SwitchType.JumpCut)
Car.StartPlayback(377@, 198)
Task.GoStraightToCoord($scplayer, -2249.509, -2562.956, 30.9255, MoveState.Walk, -2)
35@ = 6
151@ = Clock.GetGameTimer()

:SYN1_14345
if 
  35@ == 6
goto_if_false @SYN1_14484
150@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 3000
goto_if_false @SYN1_14484
if and
  not Char.IsDead(376@)
  not Car.IsDead(377@)
goto_if_false @SYN1_14484
if 
  not Car.IsPlaybackGoingOn(377@)
goto_if_false @SYN1_14484
Char.ClearTasks($scplayer)
Car.Delete(377@)
Char.Delete(376@)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
goto @SYN1_14516
35@ = 7

:SYN1_14484
goto @SYN1_5178

:SYN1_14491
Camera.DoFade(500, Fade.In)
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:SYN1_14516
Camera.DoFade(500, Fade.In)
$flag_synd_mission_counter += 1
Stat.RegisterMissionPassed('SYND_1')
Stat.PlayerMadeProgress(1)
if 
  Player.IsPlaying($player1)
goto_if_false @SYN1_14570
Char.GiveWeapon($scplayer, WeaponType.Camera, 24)

:SYN1_14570
Audio.PlayMissionPassedTune(1)
Text.PrintWithNumberBig('M_PASSR', 15, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(15)
Player.ClearWantedLevel($player1)
Stat.SetInt(StatId.PassedSyndicate1, 1)
return 

:SYN1_14610
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN1_14641
Char.SetProofs($scplayer, False, False, False, False, False)

:SYN1_14641
if 
  not Char.IsDead(376@)
goto_if_false @SYN1_14672
Char.SetProofs(376@, False, False, False, False, False)

:SYN1_14672
Text.ClearHelp
Blip.Remove(393@)
Blip.Remove(408@)
Blip.Remove(438@)
Blip.Remove(422@)
Blip.Remove(51@)
Blip.Remove(52@)
Blip.Remove(381@)
Blip.Remove(379@)
Char.Delete(391@)
Char.Delete(406@)
Char.Delete(436@)
Char.Delete(420@)
Car.Delete(392@)
Car.Delete(407@)
Car.Delete(437@)
Car.Delete(421@)
if 
  not Car.IsDead(377@)
goto_if_false @SYN1_14794
if 
  not Char.IsInCar($scplayer, 377@)
goto_if_false @SYN1_14794
Car.Delete(377@)

:SYN1_14794
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Streaming.UnloadSpecialCharacter(4)
Streaming.UnloadSpecialCharacter(5)
Char.RemoveElegantly(376@)
Streaming.RemoveAnimation("BOMBER")
Streaming.MarkModelAsNoLongerNeeded(600)
Streaming.MarkModelAsNoLongerNeeded(477)
Streaming.MarkModelAsNoLongerNeeded(421)
Streaming.MarkModelAsNoLongerNeeded(575)
Streaming.MarkModelAsNoLongerNeeded(237)
Streaming.MarkModelAsNoLongerNeeded(367)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(567)
Streaming.MarkModelAsNoLongerNeeded(510)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(478)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
CarGenerator.Switch($car_gen_low_rider_near_cesars, 101)
CarGenerator.Switch($car_gen_pine, 101)
CarGenerator.Switch($5278, 101)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

:SYN1_14934
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN1_15403
if 
  367@ == 0
goto_if_false @SYN1_15165
if 
  368@ == 1
goto_if_false @SYN1_15044
if 
  42@ == 1
goto_if_false @SYN1_15044
if and
  334@ == 0
  336@ == 0
goto_if_false @SYN1_15044
Text.PrintNow('SYN1_07', 100, 1)

:SYN1_15044
if 
  not Car.IsDead(377@)
goto_if_false @SYN1_15165
if 
  Char.IsInCar($scplayer, 377@)
goto_if_false @SYN1_15165
Blip.Remove(381@)
366@ = Char.StoreCarIsIn($scplayer)
if 
  368@ == 1
goto_if_false @SYN1_15124
51@ = Blip.AddForCoord(48@, 49@, 50@)

:SYN1_15124
if 
  147@ == 5
goto_if_false @SYN1_15158
Text.Print('SYN1_13', 10000, 1)

:SYN1_15158
367@ = 1

:SYN1_15165
if 
  367@ == 1
goto_if_false @SYN1_15403
if and
  not Car.IsDead(377@)
  not Char.IsDead(376@)
goto_if_false @SYN1_15403
if 
  368@ == 1
goto_if_false @SYN1_15325
if 
  38@ == 0
goto_if_false @SYN1_15318
if 
  Char.IsInCar(376@, 377@)
goto_if_false @SYN1_15316
if 
  $flag_syn1_skip2 == 1
goto_if_false @SYN1_15302
Skip.SetUpForSpecificVehicle(-2201.912, -2279.036, 29.4688, 230.5228, 377@)

:SYN1_15302
38@ = 1
goto @SYN1_15318

:SYN1_15316
Skip.Clear

:SYN1_15318
goto @SYN1_15334

:SYN1_15325
38@ = 0
Skip.Clear

:SYN1_15334
if 
  not Char.IsInCar($scplayer, 377@)
goto_if_false @SYN1_15403
if 
  368@ == 1
goto_if_false @SYN1_15396
Blip.Remove(51@)
Blip.Remove(381@)
381@ = Blip.AddForCar(377@)
Blip.SetAsFriendly(381@, True)

:SYN1_15396
367@ = 0

:SYN1_15403
return 

:SYN1_15405
if and
  not Char.IsDead($scplayer)
  not Char.IsDead(376@)
goto_if_false @SYN1_15740
if 
  368@ == 0
goto_if_false @SYN1_15608
if 
  not Char.IsGroupMember(376@, $Players_Group)
goto_if_false @SYN1_15601
if 
  Char.LocateAnyMeansChar3D($scplayer, 376@, 8.0, 8.0, 8.0, False)
goto_if_false @SYN1_15594
if 
  367@ == 1
goto_if_false @SYN1_15543
Blip.Remove(51@)
51@ = Blip.AddForCoord(48@, 49@, 50@)
goto @SYN1_15563

:SYN1_15543
Blip.Remove(381@)
381@ = Blip.AddForCar(377@)
Blip.SetAsFriendly(381@, True)

:SYN1_15563
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, 376@)
Blip.Remove(379@)
42@ = 1
368@ = 1

:SYN1_15594
goto @SYN1_15608

:SYN1_15601
368@ = 1

:SYN1_15608
if 
  368@ == 1
goto_if_false @SYN1_15740
if 
  not Char.IsGroupMember(376@, $Players_Group)
goto_if_false @SYN1_15740
if 
  367@ == 1
goto_if_false @SYN1_15675
Blip.Remove(51@)
goto @SYN1_15680

:SYN1_15675
Blip.Remove(381@)

:SYN1_15680
Skip.Clear
Text.ClearPrints
379@ = Blip.AddForChar(376@)
Blip.SetAsFriendly(379@, True)
if 
  42@ == 1
goto_if_false @SYN1_15733
Text.PrintNow('SYN1_02', 10000, 1)

:SYN1_15733
368@ = 0

:SYN1_15740
return 

:SYN1_15742
if or
  334@ == 1
  334@ == 3
  334@ == 4
  334@ == 6
  334@ == 7
  334@ == 9
goto_if_false @SYN1_15802
148@ = 0

:SYN1_15802
if or
  334@ == 2
  334@ == 5
  334@ == 8
  334@ == 10
goto_if_false @SYN1_15849
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_15849
if or
  334@ == 11
  334@ == 14
goto_if_false @SYN1_15882
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_15882
if or
  334@ == 12
  334@ == 13
goto_if_false @SYN1_15914
148@ = 0

:SYN1_15914
if 
  334@ == 15
goto_if_false @SYN1_15940
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_15940
if 
  334@ == 16
goto_if_false @SYN1_15966
set_lvar_int_to_lvar_int 148@ = 376@

:SYN1_15966
if or
  334@ == 17
  334@ == 19
  334@ == 22
  334@ == 23
  334@ == 25
  334@ == 26
goto_if_false @SYN1_16027
set_lvar_int_to_lvar_int 148@ = 376@

:SYN1_16027
if or
  334@ == 18
  334@ == 20
  334@ == 21
  334@ == 24
  334@ == 27
  334@ == 28
goto_if_false @SYN1_16088
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_16088
if or
  334@ == 29
  334@ == 30
  334@ == 32
  334@ == 34
goto_if_false @SYN1_16135
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_16135
if or
  334@ == 31
  334@ == 33
  334@ == 35
goto_if_false @SYN1_16175
set_lvar_int_to_lvar_int 148@ = 376@

:SYN1_16175
if or
  334@ == 36
  334@ == 37
  334@ == 38
  334@ == 39
  334@ == 40
  334@ == 41
goto_if_false @SYN1_16235
148@ = 0

:SYN1_16235
if or
  334@ == 42
  334@ == 43
  334@ == 44
  334@ == 45
  334@ == 46
goto_if_false @SYN1_16288
148@ = 0

:SYN1_16288
if or
  334@ == 47
  334@ == 48
  334@ == 50
  334@ == 52
goto_if_false @SYN1_16335
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_16335
if or
  334@ == 49
  334@ == 51
goto_if_false @SYN1_16368
set_lvar_int_to_lvar_int 148@ = 376@

:SYN1_16368
return 

//-------------Mission 59---------------
// Originally: Jizzy

:SYN2
script_name 'SYN2'
gosub @SYN2_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYN2_38
gosub @SYN2_30978

:SYN2_38
gosub @SYN2_31149
terminate_this_script 

:SYN2_47
Stat.RegisterMissionGiven
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0

:SYN2_84
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @SYN2_106
36@ = 1

:SYN2_106
38@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 40@ = 38@
sub_int_lvar_from_int_lvar 40@ -= 39@
set_lvar_int_to_lvar_int 39@ = 38@
add_int_lvar_to_int_lvar 73@ += 40@
add_int_lvar_to_int_lvar 80@ += 40@
add_int_lvar_to_int_lvar 81@ += 40@
add_int_lvar_to_int_lvar 54@ += 40@
add_int_lvar_to_int_lvar 87@ += 40@
add_int_lvar_to_int_lvar 89@ += 40@
add_int_lvar_to_int_lvar 55@ += 40@
add_int_lvar_to_int_lvar 278@ += 40@
wait 0
gosub @SYN2_546
switch_start 34@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @SYN2_464 {caseNum1} 0 {caseLabel1} @SYN2_338 {caseNum2} 1 {caseLabel2} @SYN2_352 {caseNum3} 2 {caseLabel3} @SYN2_366 {caseNum4} 3 {caseLabel4} @SYN2_380 {caseNum5} 4 {caseLabel5} @SYN2_394 {caseNum6} 5 {caseLabel6} @SYN2_408 {caseNum7} 6 {caseLabel7} @SYN2_422
switch_continued 7 {caseLabel1} @SYN2_436 {caseNum2} 8 {caseLabel2} @SYN2_450 {caseNum3} -1 {caseLabel3} @SYN2_464 {caseNum4} -1 {caseLabel4} @SYN2_464 {caseNum5} -1 {caseLabel5} @SYN2_464 {caseNum6} -1 {caseLabel6} @SYN2_464 {caseNum7} -1 {caseLabel7} @SYN2_464 {caseNum8} -1 {caseLabel8} @SYN2_464 {caseNum9} -1 {caseLabel9} @SYN2_464

:SYN2_338
gosub @SYN2_1239
goto @SYN2_464

:SYN2_352
gosub @SYN2_2839
goto @SYN2_464

:SYN2_366
gosub @SYN2_3180
goto @SYN2_464

:SYN2_380
gosub @SYN2_5395
goto @SYN2_464

:SYN2_394
gosub @SYN2_8551
goto @SYN2_464

:SYN2_408
gosub @SYN2_13818
goto @SYN2_464

:SYN2_422
gosub @SYN2_17635
goto @SYN2_464

:SYN2_436
gosub @SYN2_22473
goto @SYN2_464

:SYN2_450
gosub @SYN2_27112
goto @SYN2_464

:SYN2_464
gosub @SYN2_28399
if 
  37@ == 0
goto_if_false @SYN2_537
if 
  36@ == 0
goto_if_false @SYN2_521
goto @SYN2_84
goto @SYN2_530

:SYN2_521
gosub @SYN2_30996
return 

:SYN2_530
goto @SYN2_546

:SYN2_537
gosub @SYN2_30978
return 

:SYN2_546
if 
is_ps2_keyboard_key_just_pressed 27
goto_if_false @SYN2_637
if 
  56@ == 0
goto_if_false @SYN2_611
56@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @SYN2_637

:SYN2_611
56@ = 0
write_debug "LEVEL_DEBUG_OFF"

:SYN2_637
if 
  56@ == 1
goto_if_false @SYN2_1237
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @SYN2_704
clear_all_view_variables 
57@ += 1
if 
  57@ > 3
goto_if_false @SYN2_704
57@ = 0

:SYN2_704
if 
  57@ == 1
goto_if_false @SYN2_940
set_var_int_to_lvar_int $7290 = 34@
set_var_int_to_lvar_int $syn2_view_debug = 35@
set_var_int_to_lvar_int $7292 = 205@
set_var_int_to_lvar_int $7293 = TIMERA
set_var_int_to_lvar_int $7294 = 280@
set_var_int_to_var_int $7295 = $audio_line_is_active
set_var_int_to_lvar_int $7296 = 54@
set_var_int_to_lvar_int $7297 = 247@
view_integer_variable $7290 {_p2} "M_STAGE"
view_integer_variable $syn2_view_debug {_p2} "M_GOALS"
view_integer_variable $7292 {_p2} "CONVOY_PROGRESS"
view_integer_variable $7293 {_p2} "TIMERA"
view_integer_variable $7294 {_p2} "ON_CUTSCENE_DUTY"
view_integer_variable $7295 {_p2} "AUDIO_LINE_IS_ACTIVE"
view_integer_variable $7296 {_p2} "DIALOGUE_TIMER"
view_integer_variable $7297 {_p2} "DIALOGUE_FLAG"

:SYN2_940
if 
  57@ == 2
goto_if_false @SYN2_1153
set_var_int_to_var_int $7290 = $syn2_mission_attempts
set_var_int_to_lvar_int $syn2_view_debug = 254@
set_var_int_to_lvar_int $7292 = 253@
set_var_int_to_lvar_int $7293 = 250@
set_var_int_to_var_int $7294 = $syn2_timer
set_var_int_to_lvar_int $7295 = TIMERB
view_integer_variable $7290 {_p2} "SYN2_MISSION_ATTEMPTS"
view_integer_variable $syn2_view_debug {_p2} "THIS_CAR_HEALTH"
view_integer_variable $7292 {_p2} "LAST_CAR_HEALTH"
view_integer_variable $7293 {_p2} "PLAYER_HAS_ATTACKED_CONVOY"
view_integer_variable $7294 {_p2} "SYN2_TIME_UNTIL_BACKUP"
view_integer_variable $7295 {_p2} "TIMERB"

:SYN2_1153
if 
  57@ == 3
goto_if_false @SYN2_1237
set_var_int_to_lvar_int $7290 = 81@
set_var_float_to_lvar_float $7287 = 266@
view_integer_variable $7290 {_p2} "RICH_BACKUP_TIMER"
view_float_variable $7287 {_p2} "LIMO_PLAYBACK_SPEED"

:SYN2_1237
return 

:SYN2_1239
if 
  35@ == -1
goto_if_false @SYN2_1257

:SYN2_1257
if 
  35@ == 0
goto_if_false @SYN2_2711
205@ = 0
91@ = -1863.88
129@ = 727.851
167@ = 44.0619
92@ = -1816.793
130@ = 727.1199
168@ = 36.4934
93@ = -1717.459
131@ = 729.5344
169@ = 24.6517
94@ = -1709.842
132@ = 829.3579
170@ = 24.6505
95@ = -1663.017
133@ = 917.9272
171@ = 24.5226
96@ = -1563.886
134@ = 916.7482
172@ = 6.9176
97@ = -1573.613
135@ = 1016.918
173@ = 6.9562
98@ = -1585.455
136@ = 1116.871
174@ = 6.9488
99@ = -1608.572
137@ = 1214.641
175@ = 6.9488
100@ = -1678.017
138@ = 1287.117
176@ = 6.9487
101@ = -1752.399
139@ = 1354.989
177@ = 6.9473
102@ = -1852.138
140@ = 1364.54
178@ = 6.9488
103@ = -1938.24
141@ = 1312.347
179@ = 6.9538
104@ = -2037.692
142@ = 1298.774
180@ = 7.1712
105@ = -2135.241
143@ = 1279.317
181@ = 22.4081
106@ = -2234.502
144@ = 1276.24
182@ = 39.3992
107@ = -2265.743
145@ = 1182.441
183@ = 55.4933
108@ = -2266.289
146@ = 1085.145
184@ = 79.748
109@ = -2267.604
147@ = 984.6959
185@ = 73.0856
110@ = -2268.995
148@ = 884.5173
186@ = 66.4014
111@ = -2333.293
149@ = 811.5989
187@ = 42.8954
112@ = -2390.365
150@ = 729.2283
188@ = 34.9301
113@ = -2489.359
151@ = 711.0146
189@ = 34.9302
114@ = -2589.507
152@ = 712.4084
190@ = 27.7727
115@ = -2689.858
153@ = 710.8961
191@ = 32.4395
116@ = -2753.054
154@ = 633.015
192@ = 27.6617
117@ = -2744.792
155@ = 534.2344
193@ = 11.9062
118@ = -2707.741
156@ = 441.3501
194@ = 4.0892
119@ = -2751.387
157@ = 351.2291
195@ = 4.0969
120@ = -2707.9
158@ = 261.1717
196@ = 4.0968
121@ = -2711.886
159@ = 161.0435
197@ = 4.0971
122@ = -2809.189
160@ = 137.7394
198@ = 6.9555
123@ = -2811.909
161@ = 36.8614
199@ = 6.9488
124@ = -2811.403
162@ = -63.2554
200@ = 6.9488
125@ = -2811.279
163@ = -164.2748
201@ = 6.9381
126@ = -2811.601
164@ = -264.5668
202@ = 6.9488
127@ = -2820.204
165@ = -364.2359
203@ = 6.9488
128@ = -2818.267
166@ = -465.0786
204@ = 6.9941
206@ = -2428.232
214@ = -164.7728
222@ = 34.3085
207@ = -2433.56
215@ = -164.504
223@ = 34.3446
208@ = -2452.753
216@ = -165.8061
224@ = 34.3047
209@ = -2469.136
217@ = -165.8884
225@ = 24.9573
210@ = -2469.616
218@ = -162.4438
226@ = 24.6236
211@ = -2463.006
219@ = -162.4879
227@ = 24.9077
212@ = -2460.374
220@ = -134.7403
228@ = 24.8394
213@ = -2478.115
221@ = -129.3914
229@ = 24.625
78@ = 0
79@ = 0
80@ = 0
84@ = 0
86@ = 0
90@ = 0
35@ += 1

:SYN2_2711
if 
  35@ == 1
goto_if_false @SYN2_2763
Text.LoadMissionText('SYN2')
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
35@ += 1

:SYN2_2763
if 
  35@ == 2
goto_if_false @SYN2_2805
Game.SetWantedMultiplier(0.5)
CarGenerator.SuppressCarModel(575)
CarGenerator.SuppressCarModel(545)
35@ = 99

:SYN2_2805
if 
  35@ == 99
goto_if_false @SYN2_2837
34@ += 1
35@ = 0

:SYN2_2837
return 

:SYN2_2839
if 
  35@ == 0
goto_if_false @SYN2_2903
if 
  $syn2_mission_attempts <> 0
goto_if_false @SYN2_2896
34@ += 1
35@ = 0
goto @SYN2_2903

:SYN2_2896
35@ += 1

:SYN2_2903
if 
  35@ == 1
goto_if_false @SYN2_3153
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:SYN2_2935
if 
  Camera.GetFadingStatus
goto_if_false @SYN2_2959
wait 0
goto @SYN2_2935

:SYN2_2959
Streaming.SetAreaVisible(1)
Cutscene.Load('SYND_2A')

:SYN2_2974
if 
  not Cutscene.HasLoaded
goto_if_false @SYN2_2998
wait 0
goto @SYN2_2974

:SYN2_2998
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SYN2_3007
if 
  not Cutscene.HasFinished
goto_if_false @SYN2_3031
wait 0
goto @SYN2_3007

:SYN2_3031
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:SYN2_3046
if 
  Camera.GetFadingStatus
goto_if_false @SYN2_3070
wait 0
goto @SYN2_3046

:SYN2_3070
Streaming.SetAreaVisible(0)
Char.SetCoordinates($scplayer, -2031.254, 161.408, 28.0391)
Char.SetHeading($scplayer, 270.0)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(500, Fade.In)

:SYN2_3115
if 
  Camera.GetFadingStatus
goto_if_false @SYN2_3139
wait 0
goto @SYN2_3115

:SYN2_3139
Player.SetControl($player1, True)
35@ = 99

:SYN2_3153
if 
  35@ == 99
goto_if_false @SYN2_3178
36@ = 1

:SYN2_3178
return 

:SYN2_3180
if 
  35@ == 0
goto_if_false @SYN2_3376
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:SYN2_3212
if 
  Camera.GetFadingStatus
goto_if_false @SYN2_3236
wait 0
goto @SYN2_3212

:SYN2_3236
Player.SetGroupRecruitment($player1, False)
Game.SetScriptLimitToGangSize(0)
Streaming.SetAreaVisible(3)
Cutscene.Load('SYND_2B')

:SYN2_3262
if 
  not Cutscene.HasLoaded
goto_if_false @SYN2_3286
wait 0
goto @SYN2_3262

:SYN2_3286
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SYN2_3295
if 
  not Cutscene.HasFinished
goto_if_false @SYN2_3319
wait 0
goto @SYN2_3295

:SYN2_3319
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:SYN2_3334
if 
  Camera.GetFadingStatus
goto_if_false @SYN2_3358
wait 0
goto @SYN2_3334

:SYN2_3358
Streaming.SetAreaVisible(0)
Player.SetControl($player1, False)
35@ += 1

:SYN2_3376
if 
  35@ == 1
goto_if_false @SYN2_3907
Streaming.RequestModel(575)
Streaming.RequestModel(64)
Streaming.LoadSpecialCharacter(1, 'JIZZY')
Streaming.RequestAnimation("GANGS")
Streaming.LoadAllModelsNow

:SYN2_3427
if or
  not Streaming.HasModelLoaded(575)
  not Streaming.HasModelLoaded(64)
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @SYN2_3471
wait 0
goto @SYN2_3427

:SYN2_3471
Streaming.RequestModel(330)
Streaming.RequestAnimation("CAR_CHAT")

:SYN2_3488
if or
  not Streaming.HasModelLoaded(330)
  not Streaming.HasAnimationLoaded("CAR_CHAT")
goto_if_false @SYN2_3527
wait 0
goto @SYN2_3488

:SYN2_3527
231@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
232@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
World.ClearArea(-2623.359, 1410.786, 6.1629, 20.0, True)
58@ = Char.Create(PedType.CivMale, 290, -2623.359, 1410.786, 6.1629)
Char.SetHeading(58@, 192.3576)
Char.SetCoordinates($scplayer, -2622.546, 1410.95, 6.1702)
Char.SetHeading($scplayer, 199.6292)
Car.CustomPlateForNextCar(575, "HO_2_HO_")
59@ = Car.Create(575, -2625.449, 1401.681, 6.0877)
Car.SetHeading(59@, 188.0679)
Car.SetHealth(59@, 3000)
Car.ChangeColor(59@, 123, 5)
Car.SetHydraulics(59@, False)
67@ = Char.CreateAsPassenger(59@, PedType.Prostitute, 64, 0)
Char.SetGetOutUpsideDownCar(67@, False)
Char.SetCantBeDraggedOut(67@, True)
Char.SetSuffersCriticalHits(67@, False)
Char.SetNeverTargeted(67@, True)
Char.SetDecisionMaker(67@, 231@)
Streaming.MarkModelAsNoLongerNeeded(64)
Car.SetCanBurstTires(59@, False)
61@ = Blip.AddForCar(59@)
Blip.SetAsFriendly(61@, True)
Camera.SetNearClip(0.1)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2622.918, 1410.891, 7.0207, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2622.921, 1409.891, 6.9998, SwitchType.JumpCut)
Streaming.LoadSceneInDirection(-2618.0, 1396.0, 7.0, 211.0)
Camera.DoFade(1000, Fade.In)

:SYN2_3869
if 
  Camera.GetFadingStatus
goto_if_false @SYN2_3893
wait 0
goto @SYN2_3869

:SYN2_3893
35@ += 1
TIMERB = 0

:SYN2_3907
if and
  35@ > 1
  7 > 35@
goto_if_false @SYN2_3956
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN2_3956
35@ = 7

:SYN2_3956
if 
  35@ == 2
goto_if_false @SYN2_4047
if 
  not Char.IsDead(58@)
goto_if_false @SYN2_4015
Task.GoStraightToCoord(58@, -2623.422, 1404.91, 6.1537, MoveState.Walk, 15000)

:SYN2_4015
Task.GoStraightToCoord($scplayer, -2622.127, 1405.633, 6.1587, MoveState.Walk, 15000)
35@ += 1

:SYN2_4047
if 
  35@ == 3
goto_if_false @SYN2_4124
if 
  not Char.IsDead(58@)
goto_if_false @SYN2_4124
41@ = Char.GetScriptTaskStatus(58@, 1491)
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_4124
TIMERA = 0
35@ += 1

:SYN2_4124
if 
  35@ == 4
goto_if_false @SYN2_4616
Camera.SetFixedPosition(-2621.697, 1403.493, 7.8087, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2622.574, 1403.047, 7.6296, SwitchType.JumpCut)
if 
  not Char.IsDead(58@)
goto_if_false @SYN2_4239
Char.SetCoordinates(58@, -2624.049, 1402.888, 6.1406)
Char.SetHeading(58@, 248.4552)

:SYN2_4239
Char.SetCoordinates($scplayer, -2622.974, 1402.177, 6.1322)
Char.SetHeading($scplayer, 86.0103)
if 
  not Char.IsDead(58@)
goto_if_false @SYN2_4602
53@ = Sequence.Open()
Task.PlayAnim(-1, "PRTIAL_GNGTLKC", "GANGS", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKB", "GANGS", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKA", "GANGS", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKD", "GANGS", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKE", "GANGS", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKG", "GANGS", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKH", "GANGS", 4.0, False, False, False, True, -1)
Sequence.Close(53@)
Char.PerformSequence(58@, 53@)
Sequence.Clear(53@)

:SYN2_4602
TIMERA = 0
35@ += 1

:SYN2_4616
if 
  35@ == 5
goto_if_false @SYN2_4707
if 
  247@ > 6
goto_if_false @SYN2_4707
if 
  not Char.IsDead(58@)
goto_if_false @SYN2_4707
Task.GoStraightToCoord(58@, -2623.359, 1410.786, 6.1629, MoveState.Walk, 15000)
TIMERA = 0
35@ += 1

:SYN2_4707
if 
  35@ == 6
goto_if_false @SYN2_4758
if and
  TIMERA > 1500
  247@ > 6
goto_if_false @SYN2_4758
35@ += 1

:SYN2_4758
if and
  35@ > 1
  7 > 35@
goto_if_false @SYN2_5234
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_5234
if 
  54@ > 1000
goto_if_false @SYN2_5234
switch_start 247@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SYN2_5227 {caseNum1} 0 {caseLabel1} @SYN2_4883 {caseNum2} 1 {caseLabel2} @SYN2_4938 {caseNum3} 2 {caseLabel3} @SYN2_4993 {caseNum4} 3 {caseLabel4} @SYN2_5048 {caseNum5} 4 {caseLabel5} @SYN2_5103 {caseNum6} 5 {caseLabel6} @SYN2_5158 {caseNum7} 6 {caseLabel7} @SYN2_5213

:SYN2_4883
set_var_text_label s$audio_string = 'SYN2_BA'
set_var_int_to_constant $audio_sound_file = 8604
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5227

:SYN2_4938
set_var_text_label s$audio_string = 'SYN2_BB'
set_var_int_to_constant $audio_sound_file = 8605
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5227

:SYN2_4993
set_var_text_label s$audio_string = 'SYN2_BC'
set_var_int_to_constant $audio_sound_file = 8606
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5227

:SYN2_5048
set_var_text_label s$audio_string = 'SYN2_BD'
set_var_int_to_constant $audio_sound_file = 8607
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5227

:SYN2_5103
set_var_text_label s$audio_string = 'SYN2_BE'
set_var_int_to_constant $audio_sound_file = 8608
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5227

:SYN2_5158
set_var_text_label s$audio_string = 'SYN2_BF'
set_var_int_to_constant $audio_sound_file = 8609
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5227

:SYN2_5213
247@ += 1
goto @SYN2_5227

:SYN2_5227
54@ = 0

:SYN2_5234
if 
  35@ == 7
goto_if_false @SYN2_5361
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
if 
  not Char.IsDead(58@)
goto_if_false @SYN2_5291
Char.Delete(58@)

:SYN2_5291
Streaming.RemoveAnimation("GANGS")
Streaming.UnloadSpecialCharacter(1)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -2622.974, 1402.177, 6.1322)
Char.SetHeading($scplayer, 86.0103)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
35@ = 99

:SYN2_5361
if 
  35@ == 99
goto_if_false @SYN2_5393
35@ = 0
34@ += 1

:SYN2_5393
return 

:SYN2_5395
if 
  35@ == -1
goto_if_false @SYN2_5433
60@ = Blip.AddForCoord(0.0, 0.0, 0.0)

:SYN2_5433
if 
  35@ == 0
goto_if_false @SYN2_5505
65@ = 0
66@ = 0
$7298 = 540000
Text.PrintNow('SYN2_37', 7000, 1)
TIMERA = 0
35@ += 1

:SYN2_5505
if 
  35@ == 1
goto_if_false @SYN2_5716
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_5672
if 
  Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_5672
Blip.Remove(61@)
60@ = Blip.AddForCoord(-1929.954, 724.0631, 44.3047)
Text.PrintNow('SYN2_01', 7000, 1)
Streaming.RequestModel(352)

:SYN2_5604
if 
  not Streaming.HasModelLoaded(352)
goto_if_false @SYN2_5631
wait 0
goto @SYN2_5604

:SYN2_5631
Player.EnsureHasDriveByWeapon($player1, 250)
Streaming.MarkModelAsNoLongerNeeded(352)
280@ = -1
TIMERA = 0
65@ = 0
35@ += 1

:SYN2_5672
if 
  TIMERA > 60000
goto_if_false @SYN2_5716
Text.PrintNow('SYN2_37', 7000, 1)
TIMERA = 0

:SYN2_5716
if 
  35@ > 1
goto_if_false @SYN2_5821
if 
  Blip.DoesExist(61@)
goto_if_false @SYN2_5778
if 
  Blip.DoesExist(60@)
goto_if_false @SYN2_5771
Blip.Remove(60@)

:SYN2_5771
goto @SYN2_5821

:SYN2_5778
if 
  not Blip.DoesExist(60@)
goto_if_false @SYN2_5821
60@ = Blip.AddForCoord(-1929.954, 724.0631, 44.3047)
Blip.ChangeColor(60@, BlipColor.Yellow)

:SYN2_5821
if 
  35@ == 2
goto_if_false @SYN2_6979
if 
  Blip.DoesExist(60@)
goto_if_false @SYN2_5996
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_5996
if 
  Car.Locate3D(59@, -1929.954, 724.0631, 44.3047, 4.0, 4.0, 4.0, True)
goto_if_false @SYN2_5996
if 
  Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_5996
if 
  Car.IsOnAllWheels(59@)
goto_if_false @SYN2_5996
$car = Char.StoreCarIsInNoSave($scplayer)
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 2000000)
Player.SetControl($player1, False)
Blip.Remove(60@)
35@ += 1

:SYN2_5996
if 
  56@ == 1
goto_if_false @SYN2_6051
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @SYN2_6051
Char.SetCoordinates($scplayer, -1929.954, 724.0631, 44.3047)

:SYN2_6051
if 
  8 > 65@
goto_if_false @SYN2_6796
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @SYN2_6796
if 
  not Char.IsDead(67@)
goto_if_false @SYN2_6796
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_6796
if 
  Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_6796
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_6796
if 
  54@ > 1000
goto_if_false @SYN2_6796
switch_start 65@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @SYN2_6796 {caseNum1} 0 {caseLabel1} @SYN2_6298 {caseNum2} 1 {caseLabel2} @SYN2_6361 {caseNum3} 2 {caseLabel3} @SYN2_6424 {caseNum4} 3 {caseLabel4} @SYN2_6486 {caseNum5} 4 {caseLabel5} @SYN2_6548 {caseNum6} 5 {caseLabel6} @SYN2_6610 {caseNum7} 6 {caseLabel7} @SYN2_6672
switch_continued 7 {caseLabel1} @SYN2_6734 {caseNum2} -1 {caseLabel2} @SYN2_6796 {caseNum3} -1 {caseLabel3} @SYN2_6796 {caseNum4} -1 {caseLabel4} @SYN2_6796 {caseNum5} -1 {caseLabel5} @SYN2_6796 {caseNum6} -1 {caseLabel6} @SYN2_6796 {caseNum7} -1 {caseLabel7} @SYN2_6796 {caseNum8} -1 {caseLabel8} @SYN2_6796 {caseNum9} -1 {caseLabel9} @SYN2_6796

:SYN2_6298
set_var_text_label s$audio_string = 'SYN2_LM'
set_var_int_to_constant $audio_sound_file = 8651
start_new_script @AUDIOL 67@ 0 1 1 0 
54@ = -4000
65@ += 1
goto @SYN2_6796

:SYN2_6361
set_var_text_label s$audio_string = 'SYN2_LN'
set_var_int_to_constant $audio_sound_file = 8652
start_new_script @AUDIOL 67@ 0 1 1 0 
54@ = -2000
65@ += 1
goto @SYN2_6796

:SYN2_6424
set_var_text_label s$audio_string = 'SYN2_LO'
set_var_int_to_constant $audio_sound_file = 8653
start_new_script @AUDIOL $scplayer 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6796

:SYN2_6486
set_var_text_label s$audio_string = 'SYN2_LP'
set_var_int_to_constant $audio_sound_file = 8654
start_new_script @AUDIOL 67@ 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6796

:SYN2_6548
set_var_text_label s$audio_string = 'SYN2_LQ'
set_var_int_to_constant $audio_sound_file = 8655
start_new_script @AUDIOL $scplayer 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6796

:SYN2_6610
set_var_text_label s$audio_string = 'SYN2_LR'
set_var_int_to_constant $audio_sound_file = 8656
start_new_script @AUDIOL 67@ 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6796

:SYN2_6672
set_var_text_label s$audio_string = 'SYN2_LS'
set_var_int_to_constant $audio_sound_file = 8657
start_new_script @AUDIOL $scplayer 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6796

:SYN2_6734
set_var_text_label s$audio_string = 'SYN2_LT'
set_var_int_to_constant $audio_sound_file = 8658
start_new_script @AUDIOL 67@ 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6796

:SYN2_6796
if 
  280@ == -1
goto_if_false @SYN2_6848
if 
  TIMERA > 7000
goto_if_false @SYN2_6848
280@ = 0
73@ = 30000

:SYN2_6848
if 
  280@ == 0
goto_if_false @SYN2_6979
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_6979
if 
  not Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_6950
if 
  73@ > 30000
goto_if_false @SYN2_6943
Text.PrintNow('SYN_M_1', 5000, 1)
73@ = 0

:SYN2_6943
goto @SYN2_6979

:SYN2_6950
if 
  30000 > 73@
goto_if_false @SYN2_6979
Text.ClearPrints
73@ = 30000

:SYN2_6979
if 
  35@ == 3
goto_if_false @SYN2_7036
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_7036
if 
  Car.IsStopped(59@)
goto_if_false @SYN2_7036
35@ += 1

:SYN2_7036
if 
  35@ == 4
goto_if_false @SYN2_7311
283@ = -1
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Text.ClearPrints
Camera.SetFixedPosition(-1941.845, 731.7922, 45.4219, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1940.973, 731.3325, 45.5894, SwitchType.JumpCut)
World.ClearArea(-1924.954, 724.0631, 44.3047, 20.0, True)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
if 
  not Char.IsDead(67@)
goto_if_false @SYN2_7249
53@ = Sequence.Open()
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_7207
Task.LeaveCar(-1, 59@)

:SYN2_7207
Task.GoStraightToCoord(-1, -1921.505, 719.3201, 44.4375, MoveState.Walk, 20000)
Sequence.Close(53@)
Char.PerformSequence(67@, 53@)
Sequence.Clear(53@)

:SYN2_7249
TIMERA = 0
TIMERB = 0
set_var_text_label s$audio_string = 'SYN2_LU'
set_var_int_to_constant $audio_sound_file = 8659
start_new_script @AUDIOL 67@ 0 1 1 0 
35@ += 1

:SYN2_7311
if 
  35@ == 5
goto_if_false @SYN2_7390
if and
  TIMERA > 1000
  $audio_line_is_active == 0
goto_if_false @SYN2_7390
247@ = 0
54@ = 0
TIMERB = 0
TIMERA = 0
35@ += 1

:SYN2_7390
if and
  35@ > 5
  99 > 35@
goto_if_false @SYN2_8046
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_8046
if 
  54@ > 1000
goto_if_false @SYN2_8046
switch_start 247@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @SYN2_8039 {caseNum1} 0 {caseLabel1} @SYN2_7580 {caseNum2} 1 {caseLabel2} @SYN2_7646 {caseNum3} 2 {caseLabel3} @SYN2_7711 {caseNum4} 3 {caseLabel4} @SYN2_7776 {caseNum5} 4 {caseLabel5} @SYN2_7841 {caseNum6} 5 {caseLabel6} @SYN2_7906 {caseNum7} 6 {caseLabel7} @SYN2_7971
switch_continued 7 {caseLabel1} @SYN2_8025 {caseNum2} -1 {caseLabel2} @SYN2_8039 {caseNum3} -1 {caseLabel3} @SYN2_8039 {caseNum4} -1 {caseLabel4} @SYN2_8039 {caseNum5} -1 {caseLabel5} @SYN2_8039 {caseNum6} -1 {caseLabel6} @SYN2_8039 {caseNum7} -1 {caseLabel7} @SYN2_8039 {caseNum8} -1 {caseLabel8} @SYN2_8039 {caseNum9} -1 {caseLabel9} @SYN2_8039

:SYN2_7580
set_var_text_label s$audio_string = 'SYN2_CA'
set_var_int_to_constant $audio_sound_file = 8632
start_new_script @AUDIOL $scplayer 0 1 1 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8610)
247@ += 1
goto @SYN2_8039

:SYN2_7646
set_var_text_label s$audio_string = 'SYN2_CB'
set_var_int_to_constant $audio_sound_file = 8610
start_new_script @AUDIOL -1 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8611)
247@ += 1
goto @SYN2_8039

:SYN2_7711
set_var_text_label s$audio_string = 'SYN2_CC'
set_var_int_to_constant $audio_sound_file = 8611
start_new_script @AUDIOL -1 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8612)
247@ += 1
goto @SYN2_8039

:SYN2_7776
set_var_text_label s$audio_string = 'SYN2_CD'
set_var_int_to_constant $audio_sound_file = 8612
start_new_script @AUDIOL -1 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8613)
247@ += 1
goto @SYN2_8039

:SYN2_7841
set_var_text_label s$audio_string = 'SYN2_CE'
set_var_int_to_constant $audio_sound_file = 8613
start_new_script @AUDIOL -1 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8614)
247@ += 1
goto @SYN2_8039

:SYN2_7906
set_var_text_label s$audio_string = 'SYN2_CF'
set_var_int_to_constant $audio_sound_file = 8614
start_new_script @AUDIOL -1 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8615)
247@ += 1
goto @SYN2_8039

:SYN2_7971
set_var_text_label s$audio_string = 'SYN2_CG'
set_var_int_to_constant $audio_sound_file = 8615
start_new_script @AUDIOL -1 0 1 1 1 
247@ += 1
goto @SYN2_8039

:SYN2_8025
247@ += 1
goto @SYN2_8039

:SYN2_8039
54@ = 0

:SYN2_8046
if 
  35@ == 6
goto_if_false @SYN2_8149
if 
  TIMERA > 4000
goto_if_false @SYN2_8097
35@ += 1
goto @SYN2_8149

:SYN2_8097
if 
  not Char.IsDead(67@)
goto_if_false @SYN2_8149
41@ = Char.GetScriptTaskStatus(67@, 1560)
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_8149
35@ += 1

:SYN2_8149
if 
  35@ == 7
goto_if_false @SYN2_8315
Camera.SetFixedPosition(-1919.135, 714.1419, 46.9459, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1919.694, 714.9576, 46.7967, SwitchType.JumpCut)
Camera.SetNearClip(0.01)
if 
  not Char.IsDead(67@)
goto_if_false @SYN2_8301
Char.ClearTasksImmediately(67@)
Char.SetCoordinates(67@, -1920.479, 716.6052, 45.6103)
Char.SetHeading(67@, 190.583)
Task.GoStraightToCoord(67@, -1919.606, 712.0557, 45.6103, MoveState.Walk, 20000)

:SYN2_8301
TIMERA = 0
35@ += 1

:SYN2_8315
if and
  35@ > 4
  TIMERB > 3000
goto_if_false @SYN2_8365
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN2_8365
35@ = 99

:SYN2_8365
if 
  35@ == 8
goto_if_false @SYN2_8430
if 
  TIMERA > 3000
goto_if_false @SYN2_8430
279@ = 0
gosub @SYN2_28920
TIMERA = 0
35@ += 1

:SYN2_8430
if 
  35@ == 9
goto_if_false @SYN2_8481
if and
  TIMERA > 4000
  247@ > 7
goto_if_false @SYN2_8481
35@ = 99

:SYN2_8481
if 
  35@ == 99
goto_if_false @SYN2_8549
gosub @SYN2_30815
Blip.Remove(61@)
Blip.Remove(60@)
Char.Delete(67@)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
34@ += 1
35@ = 0

:SYN2_8549
return 

:SYN2_8551
if 
  35@ == 0
goto_if_false @SYN2_9138
$syn2_time_until_backup = 120000
60@ = Blip.AddForCoord(-2427.918, -133.4192, 34.3525)
Blip.ChangeColor(60@, BlipColor.Yellow)
Text.PrintNow('SYN2_06', 10000, 1)
Hud.DisplayTimer($syn2_time_until_backup, TimerDirection.Down)
Streaming.RequestModel(237)
Streaming.RequestModel(249)
Streaming.RequestModel(545)
Streaming.RequestModel(346)

:SYN2_8649
if or
  not Streaming.HasModelLoaded(237)
  not Streaming.HasModelLoaded(249)
  not Streaming.HasModelLoaded(545)
  not Streaming.HasModelLoaded(346)
goto_if_false @SYN2_8691
wait 0
goto @SYN2_8649

:SYN2_8691
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 34400)

:SYN2_8700
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @SYN2_8726
wait 0
goto @SYN2_8700

:SYN2_8726
71@ = Char.Create(PedType.CivMale, 249, -2427.918, -133.4192, 34.3525)
Char.SetHeading(71@, 143.0822)
Char.SetDecisionMaker(71@, 231@)
Char.SetOnlyDamagedByPlayer(71@, True)
Char.SetMaxHealth(71@, 300)
Char.SetHealth(71@, 300)
68@ = Char.Create(PedType.CivFemale, 237, -2428.954, -134.24, 34.3525)
Char.SetHeading(68@, 359.5201)
Char.SetOnlyDamagedByPlayer(68@, True)
Char.SetDecisionMaker(68@, 231@)
Char.SetOnlyDamagedByPlayer(68@, True)
Char.SetNeverTargeted(68@, True)
77@ = Car.Create(545, -2481.059, -126.9303, 24.625)
Car.SetHeading(77@, 102.8779)
Car.SetHealth(77@, 600)
Task.LookAtChar(71@, 68@, -2)
53@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2430.044, -133.1959, 34.3525, MoveState.Walk, 10000)
Task.TurnCharToFaceChar(-1, 68@)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)
Task.GoStraightToCoord(-1, -2429.976, -135.4876, 34.3525, MoveState.Walk, 10000)
Task.GoStraightToCoord(-1, -2428.162, -135.4792, 34.3525, MoveState.Walk, 10000)
Task.GoStraightToCoord(-1, -2427.918, -133.4192, 34.3525, MoveState.Walk, 10000)
Sequence.SetToRepeat(53@, True)
Sequence.Close(53@)
Char.PerformSequence(71@, 53@)
Sequence.Clear(53@)
Path.SwitchPedRoadsOff(-2431.115, -169.4874, 33.0, -2426.513, -117.2969, 36.0)
Task.StayInSamePlace(68@, True)
Task.LookAtChar(68@, 71@, -2)
233@ = 0
35@ += 1

:SYN2_9138
if 
  35@ == 1
goto_if_false @SYN2_10470
if 
  not Char.IsDead(71@)
goto_if_false @SYN2_10054
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_10054
if 
  54@ > 1000
goto_if_false @SYN2_10054
if 
  not Char.LocateAnyMeansChar3D($scplayer, 71@, 15.0, 15.0, 15.0, False)
goto_if_false @SYN2_9653
switch_start 233@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SYN2_9638 {caseNum1} 0 {caseLabel1} @SYN2_9308 {caseNum2} 1 {caseLabel2} @SYN2_9363 {caseNum3} 2 {caseLabel3} @SYN2_9418 {caseNum4} 3 {caseLabel4} @SYN2_9473 {caseNum5} 4 {caseLabel5} @SYN2_9528 {caseNum6} 5 {caseLabel6} @SYN2_9583 {caseNum7} -1 {caseLabel7} @SYN2_9638

:SYN2_9308
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 8644
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_9638

:SYN2_9363
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 8645
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_9638

:SYN2_9418
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 8646
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_9638

:SYN2_9473
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 8647
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_9638

:SYN2_9528
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 8648
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_9638

:SYN2_9583
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 8649
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ = 0
goto @SYN2_9638

:SYN2_9638
54@ = -4000
goto @SYN2_10054

:SYN2_9653
switch_start 233@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SYN2_10046 {caseNum1} 0 {caseLabel1} @SYN2_9716 {caseNum2} 1 {caseLabel2} @SYN2_9771 {caseNum3} 2 {caseLabel3} @SYN2_9826 {caseNum4} 3 {caseLabel4} @SYN2_9881 {caseNum5} 4 {caseLabel5} @SYN2_9936 {caseNum6} 5 {caseLabel6} @SYN2_9991 {caseNum7} -1 {caseLabel7} @SYN2_10046

:SYN2_9716
set_var_text_label s$audio_string = 'SYN2_LF'
set_var_int_to_constant $audio_sound_file = 8644
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_10046

:SYN2_9771
set_var_text_label s$audio_string = 'SYN2_LG'
set_var_int_to_constant $audio_sound_file = 8645
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_10046

:SYN2_9826
set_var_text_label s$audio_string = 'SYN2_LH'
set_var_int_to_constant $audio_sound_file = 8646
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_10046

:SYN2_9881
set_var_text_label s$audio_string = 'SYN2_LI'
set_var_int_to_constant $audio_sound_file = 8647
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_10046

:SYN2_9936
set_var_text_label s$audio_string = 'SYN2_LJ'
set_var_int_to_constant $audio_sound_file = 8648
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_10046

:SYN2_9991
set_var_text_label s$audio_string = 'SYN2_LK'
set_var_int_to_constant $audio_sound_file = 8649
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ = 0
goto @SYN2_10046

:SYN2_10046
54@ = -4000

:SYN2_10054
if 
  56@ == 1
goto_if_false @SYN2_10109
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @SYN2_10109
Char.SetCoordinates($scplayer, -2421.182, -15.8972, 34.1601)

:SYN2_10109
if 
  Char.IsOnFoot($scplayer)
goto_if_false @SYN2_10203
if 
  not Char.IsDead(71@)
goto_if_false @SYN2_10196
if 
  Char.LocateAnyMeansChar3D($scplayer, 71@, 10.0, 10.0, 10.0, False)
goto_if_false @SYN2_10196
35@ += 1
Hud.ClearTimer($syn2_time_until_backup)
goto @SYN2_10470

:SYN2_10196
goto @SYN2_10274

:SYN2_10203
if 
  not Char.IsDead(71@)
goto_if_false @SYN2_10274
if 
  Char.LocateAnyMeansChar3D($scplayer, 71@, 20.0, 20.0, 20.0, False)
goto_if_false @SYN2_10274
35@ += 1
Hud.ClearTimer($syn2_time_until_backup)
goto @SYN2_10470

:SYN2_10274
if 
  not Char.IsDead(71@)
goto_if_false @SYN2_10328
if 
  Char.HasBeenDamagedByChar(71@, $scplayer)
goto_if_false @SYN2_10328
35@ += 1
Hud.ClearTimer($syn2_time_until_backup)
goto @SYN2_10470

:SYN2_10328
if 
  not Char.IsDead(71@)
goto_if_false @SYN2_10382
if 
  Player.IsTargetingChar($player1, 71@)
goto_if_false @SYN2_10382
35@ += 1
Hud.ClearTimer($syn2_time_until_backup)
goto @SYN2_10470

:SYN2_10382
if 
  Char.IsDead(71@)
goto_if_false @SYN2_10417
35@ += 1
Hud.ClearTimer($syn2_time_until_backup)
goto @SYN2_10470

:SYN2_10417
if 
  0 >= $syn2_time_until_backup
goto_if_false @SYN2_10470
Hud.ClearTimer($syn2_time_until_backup)
gosub @SYN2_30815
Text.PrintNow('SYN_F_6', 5000, 1)
37@ = 1

:SYN2_10470
if 
  35@ == 2
goto_if_false @SYN2_10639
if 
  not Char.IsDead(68@)
goto_if_false @SYN2_10545
set_var_text_label s$audio_string = 'SYN2_LA'
set_var_int_to_constant $audio_sound_file = 8639
start_new_script @AUDIOL 68@ 0 1 1 0 

:SYN2_10545
Blip.Remove(60@)
if 
  not Char.IsDead(71@)
goto_if_false @SYN2_10595
Char.GiveWeapon(71@, WeaponType.Pistol, 9999)
64@ = Blip.AddForChar(71@)
Task.LookAtChar(71@, $scplayer, 3000)

:SYN2_10595
if 
  not Char.IsDead(71@)
goto_if_false @SYN2_10632
TIMERA = 0
35@ += 1
goto @SYN2_10639

:SYN2_10632
35@ += 1

:SYN2_10639
if 
  35@ == 3
goto_if_false @SYN2_11136
if 
  not Char.IsDead(71@)
goto_if_false @SYN2_11122
if and
  TIMERA > 1000
  $audio_line_is_active == 0
goto_if_false @SYN2_11115
if 
  not Char.IsDead(68@)
goto_if_false @SYN2_11115
Char.ClearTasks(71@)
Char.ClearTasks(68@)
Char.ClearLookAt(68@)
230@ = 0
41@ = Math.RandomIntInRange(0, 4)
switch_start 41@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SYN2_11001 {caseNum1} 0 {caseLabel1} @SYN2_10809 {caseNum2} 1 {caseLabel2} @SYN2_10857 {caseNum3} 2 {caseLabel3} @SYN2_10905 {caseNum4} 3 {caseLabel4} @SYN2_10953 {caseNum5} -1 {caseLabel5} @SYN2_11001 {caseNum6} -1 {caseLabel6} @SYN2_11001 {caseNum7} -1 {caseLabel7} @SYN2_11001

:SYN2_10809
set_var_text_label s$audio_string = 'SYN2_LB'
set_var_int_to_constant $audio_sound_file = 8640
start_new_script @AUDIOL 71@ 0 1 1 0 
goto @SYN2_11001

:SYN2_10857
set_var_text_label s$audio_string = 'SYN2_LC'
set_var_int_to_constant $audio_sound_file = 8641
start_new_script @AUDIOL 71@ 0 1 1 0 
goto @SYN2_11001

:SYN2_10905
set_var_text_label s$audio_string = 'SYN2_LD'
set_var_int_to_constant $audio_sound_file = 8642
start_new_script @AUDIOL 71@ 0 1 1 0 
goto @SYN2_11001

:SYN2_10953
set_var_text_label s$audio_string = 'SYN2_LE'
set_var_int_to_constant $audio_sound_file = 8643
start_new_script @AUDIOL 71@ 0 1 1 0 
goto @SYN2_11001

:SYN2_11001
Char.SetAccuracy(71@, 90)
Char.SetShootRate(71@, 100)
53@ = Sequence.Open()
Task.ShootAtChar(-1, $scplayer, 3000)
Task.GoStraightToCoord(-1, 206@(230@,8f), 214@(230@,8f), 222@(230@,8f), MoveState.Sprint, 9999999)
Sequence.Close(53@)
Char.PerformSequence(71@, 53@)
Sequence.Clear(53@)
234@ = 0
gosub @SYN2_28816
235@ = 0
TIMERA = 0
35@ += 1

:SYN2_11115
goto @SYN2_11136

:SYN2_11122
gosub @SYN2_28816
35@ += 1

:SYN2_11136
if 
  35@ == 4
goto_if_false @SYN2_11977
if 
  235@ == 0
goto_if_false @SYN2_11232
if 
  TIMERA > 1000
goto_if_false @SYN2_11232
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_11232
Text.Print('SYN2_38', 7000, 1)
235@ += 1

:SYN2_11232
if 
  not Char.IsDead(71@)
goto_if_false @SYN2_11970
if 
  Char.LocateOnFoot3D(71@, 206@(230@,8f), 214@(230@,8f), 222@(230@,8f), 1.5, 1.5, 2.0, False)
goto_if_false @SYN2_11708
230@ += 1
if 
  8 > 230@
goto_if_false @SYN2_11447
if or
  230@ == 1
  230@ == 5
  230@ == 7
goto_if_false @SYN2_11407
Task.GoToCoordWhileShooting(71@, 206@(230@,8f), 214@(230@,8f), 222@(230@,8f), 7, 0.0, 0.0, $scplayer)
goto @SYN2_11440

:SYN2_11407
Task.GoStraightToCoord(71@, 206@(230@,8f), 214@(230@,8f), 222@(230@,8f), MoveState.Sprint, 99999)

:SYN2_11440
goto @SYN2_11701

:SYN2_11447
if 
  not Car.IsDead(77@)
goto_if_false @SYN2_11663
$x, $y, $z = Char.GetCoordinates(71@)
if 
  Car.Locate3D(77@, $x, $y, $z, 10.0, 10.0, 4.0, False)
goto_if_false @SYN2_11618
Char.ClearTasks(71@)
53@ = Sequence.Open()
Task.EnterCarAsDriver(-1, 77@, 20000)
Task.CarDriveToCoord(-1, 77@, -2599.287, -127.2555, 3.1797, 15.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Task.CarDriveWander(-1, 77@, 15.0, DrivingMode.PloughThrough)
Sequence.Close(53@)
Char.PerformSequence(71@, 53@)
Sequence.Clear(53@)
35@ += 1
goto @SYN2_11656

:SYN2_11618
Task.FleeCharAnyMeans(71@, $scplayer, 100000.0, 999999, True, 3000, 5000, 50.0)
35@ += 1

:SYN2_11656
goto @SYN2_11701

:SYN2_11663
Task.FleeCharAnyMeans(71@, $scplayer, 100000.0, 999999, True, 3000, 5000, 50.0)
35@ += 1

:SYN2_11701
goto @SYN2_11963

:SYN2_11708
if 
  230@ == 0
goto_if_false @SYN2_11963
if 
  Char.IsInArea3D($scplayer, -2430.879, -167.3782, 32.3125, -2426.917, -143.2979, 36.3125, False)
goto_if_false @SYN2_11898
$x, $y, $z = Char.GetCoordinates($scplayer)
47@, 48@, 49@ = Char.GetCoordinates(71@)
if 
  is_float_lvar_greater_than_float_var 48@ > $y
goto_if_false @SYN2_11891
53@ = Sequence.Open()
Task.ShootAtChar(-1, $scplayer, 3000)
Task.FleeCharAnyMeans(-1, $scplayer, 100000.0, 999999, True, 3000, 5000, 50.0)
Sequence.Close(53@)
Char.PerformSequence(71@, 53@)
Sequence.Clear(53@)
35@ += 1

:SYN2_11891
goto @SYN2_11963

:SYN2_11898
if 
  234@ == 0
goto_if_false @SYN2_11963
if 
  Char.HasBeenDamagedByChar($scplayer, 71@)
goto_if_false @SYN2_11963
Task.GoStraightToCoord(71@, 206@, 214@, 222@, MoveState.Sprint, 99999)
234@ += 1

:SYN2_11963
goto @SYN2_11977

:SYN2_11970
35@ += 1

:SYN2_11977
if 
  35@ == 5
goto_if_false @SYN2_12398
if 
  79@ == 0
goto_if_false @SYN2_12104
if 
  not Char.IsDead(71@)
goto_if_false @SYN2_12104
if 
  not Car.IsDead(77@)
goto_if_false @SYN2_12104
if 
  Char.IsInCar(71@, 77@)
goto_if_false @SYN2_12104
41@ = Char.GetHealth(71@)
if 
  41@ > 100
goto_if_false @SYN2_12097
Char.SetHealth(71@, 100)

:SYN2_12097
79@ = 1

:SYN2_12104
if 
  Char.IsDead(71@)
goto_if_false @SYN2_12141
TIMERA = 0
35@ += 1
goto @SYN2_12342

:SYN2_12141
if 
  not Car.IsDead(77@)
goto_if_false @SYN2_12239
if 
  Char.IsInCar(71@, 77@)
goto_if_false @SYN2_12239
if 
  Char.LocateInCarChar3D($scplayer, 71@, 15.0, 15.0, 15.0, False)
goto_if_false @SYN2_12229
Car.SetCruiseSpeed(77@, 25.0)
goto @SYN2_12239

:SYN2_12229
Car.SetCruiseSpeed(77@, 15.0)

:SYN2_12239
if 
  not Char.IsInAnyCar(71@)
goto_if_false @SYN2_12342
41@ = Char.GetScriptTaskStatus(71@, 1560)
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_12342
41@ = Char.GetScriptTaskStatus(71@, 1873)
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_12342
Task.FleeCharAnyMeans(71@, $scplayer, 100000.0, 999999, False, 0, 0, 50.0)

:SYN2_12342
if 
  56@ == 1
goto_if_false @SYN2_12398
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @SYN2_12398
if 
  not Char.IsDead(71@)
goto_if_false @SYN2_12398
Task.Die(71@)

:SYN2_12398
if 
  35@ == 6
goto_if_false @SYN2_12656
Text.ClearPrints
Blip.Remove(64@)
if 
  TIMERA > 1000
goto_if_false @SYN2_12589
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_12582
if 
  not Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_12550
if 
  280@ == 0
goto_if_false @SYN2_12529
Text.PrintNow('SYN_M_1', 7000, 1)
Audio.AttachMissionAudioToCar(MissionAudioSlot.Slot3, 59@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
90@ = 1

:SYN2_12529
TIMERA = 0
35@ += 1
goto @SYN2_12582

:SYN2_12550
Audio.AttachMissionAudioToCar(MissionAudioSlot.Slot3, 59@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
90@ = 1
TIMERA = 0
35@ += 1

:SYN2_12582
goto @SYN2_12656

:SYN2_12589
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_12656
if 
  Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_12656
TIMERA = 0
Audio.AttachMissionAudioToCar(MissionAudioSlot.Slot3, 59@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
90@ = 1
35@ += 1

:SYN2_12656
if 
  35@ == 7
goto_if_false @SYN2_12707
if 
  TIMERA > 3000
goto_if_false @SYN2_12707
TIMERA = 0
35@ += 1

:SYN2_12707
if 
  35@ == 8
goto_if_false @SYN2_12800
if 
  TIMERA > 500
goto_if_false @SYN2_12800
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_12800
if 
  Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_12800
Player.SetControl($player1, False)
TIMERA = 0
35@ += 1

:SYN2_12800
if 
  35@ == 9
goto_if_false @SYN2_12873
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_12873
if 
  Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_12873
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
90@ = 0
Text.ClearPrints
35@ += 1

:SYN2_12873
if 
  35@ == 10
goto_if_false @SYN2_12983
283@ = -1
279@ = 1
Text.ClearPrints
Camera.DoFade(150, Fade.Out)

:SYN2_12914
if 
  Camera.GetFadingStatus
goto_if_false @SYN2_12938
wait 0
goto @SYN2_12914

:SYN2_12938
gosub @SYN2_28920
Camera.DoFade(150, Fade.In)

:SYN2_12952
if 
  Camera.GetFadingStatus
goto_if_false @SYN2_12976
wait 0
goto @SYN2_12952

:SYN2_12976
35@ += 1

:SYN2_12983
if 
  35@ == 11
goto_if_false @SYN2_13041
if 
  TIMERA > 1000
goto_if_false @SYN2_13041
247@ = 0
TIMERA = 0
35@ += 1

:SYN2_13041
if and
  35@ > 11
  99 > 35@
goto_if_false @SYN2_13698
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_13698
if 
  54@ > 1000
goto_if_false @SYN2_13698
switch_start 247@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @SYN2_13691 {caseNum1} 0 {caseLabel1} @SYN2_13231 {caseNum2} 1 {caseLabel2} @SYN2_13297 {caseNum3} 2 {caseLabel3} @SYN2_13363 {caseNum4} 3 {caseLabel4} @SYN2_13428 {caseNum5} 4 {caseLabel5} @SYN2_13493 {caseNum6} 5 {caseLabel6} @SYN2_13558 {caseNum7} 6 {caseLabel7} @SYN2_13623
switch_continued 7 {caseLabel1} @SYN2_13677 {caseNum2} -1 {caseLabel2} @SYN2_13691 {caseNum3} -1 {caseLabel3} @SYN2_13691 {caseNum4} -1 {caseLabel4} @SYN2_13691 {caseNum5} -1 {caseLabel5} @SYN2_13691 {caseNum6} -1 {caseLabel6} @SYN2_13691 {caseNum7} -1 {caseLabel7} @SYN2_13691 {caseNum8} -1 {caseLabel8} @SYN2_13691 {caseNum9} -1 {caseLabel9} @SYN2_13691

:SYN2_13231
set_var_text_label s$audio_string = 'SYN2_DA'
set_var_int_to_constant $audio_sound_file = 8633
start_new_script @AUDIOL $scplayer 0 1 1 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8634)
247@ += 1
goto @SYN2_13691

:SYN2_13297
set_var_text_label s$audio_string = 'SYN2_DB'
set_var_int_to_constant $audio_sound_file = 8634
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8616)
247@ += 1
goto @SYN2_13691

:SYN2_13363
set_var_text_label s$audio_string = 'SYN2_DC'
set_var_int_to_constant $audio_sound_file = 8616
start_new_script @AUDIOL -1 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8617)
247@ += 1
goto @SYN2_13691

:SYN2_13428
set_var_text_label s$audio_string = 'SYN2_DD'
set_var_int_to_constant $audio_sound_file = 8617
start_new_script @AUDIOL -1 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8618)
247@ += 1
goto @SYN2_13691

:SYN2_13493
set_var_text_label s$audio_string = 'SYN2_DE'
set_var_int_to_constant $audio_sound_file = 8618
start_new_script @AUDIOL -1 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8619)
247@ += 1
goto @SYN2_13691

:SYN2_13558
set_var_text_label s$audio_string = 'SYN2_DF'
set_var_int_to_constant $audio_sound_file = 8619
start_new_script @AUDIOL -1 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8620)
247@ += 1
goto @SYN2_13691

:SYN2_13623
set_var_text_label s$audio_string = 'SYN2_DG'
set_var_int_to_constant $audio_sound_file = 8620
start_new_script @AUDIOL -1 0 1 1 1 
247@ += 1
goto @SYN2_13691

:SYN2_13677
247@ += 1
goto @SYN2_13691

:SYN2_13691
54@ = 0

:SYN2_13698
if 
  35@ == 12
goto_if_false @SYN2_13747
if or
  247@ > 7
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN2_13747
35@ = 99

:SYN2_13747
if 
  35@ == 99
goto_if_false @SYN2_13816
gosub @SYN2_30815
Car.MarkAsNoLongerNeeded(77@)
Char.MarkAsNoLongerNeeded(71@)
Char.MarkAsNoLongerNeeded(68@)
Streaming.MarkModelAsNoLongerNeeded(237)
Streaming.MarkModelAsNoLongerNeeded(249)
Streaming.MarkModelAsNoLongerNeeded(545)
35@ = 0
34@ += 1

:SYN2_13816
return 

:SYN2_13818
if 
  35@ == 0
goto_if_false @SYN2_13893
60@ = Blip.AddForCoord(-1911.919, -629.912, 23.6093)
Blip.ChangeColor(60@, BlipColor.Yellow)
Text.PrintNow('SYN2_14', 10000, 1)
88@ = 0
35@ += 1

:SYN2_13893
if 
  35@ == 1
goto_if_false @SYN2_14698
Streaming.RequestModel(483)
Streaming.RequestModel(72)
Streaming.RequestModel(73)
Streaming.RequestModel(245)
Streaming.RequestModel(346)

:SYN2_13934
if or
  not Streaming.HasModelLoaded(483)
  not Streaming.HasModelLoaded(72)
  not Streaming.HasModelLoaded(73)
  not Streaming.HasModelLoaded(245)
  not Streaming.HasModelLoaded(346)
goto_if_false @SYN2_13979
wait 0
goto @SYN2_13934

:SYN2_13979
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 34400)

:SYN2_13988
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @SYN2_14014
wait 0
goto @SYN2_13988

:SYN2_14014
75@ = Char.Create(PedType.CivMale, 72, -1911.919, -629.212, 23.6093)
Char.SetHeading(75@, 180.0)
76@ = Char.Create(PedType.CivMale, 72, -1907.644, -623.0884, 23.6093)
Char.SetHeading(76@, 350.5407)
Char.GiveWeapon(76@, WeaponType.Pistol, 99999)
69@ = Char.Create(PedType.Prostitute, 245, -1911.919, -629.912, 23.6093)
Char.SetHeading(69@, 331.492)
Char.SetOnlyDamagedByPlayer(69@, True)
Char.SetNeverTargeted(69@, True)
Char.SetMaxHealth(69@, 120)
Char.SetHealth(69@, 120)
74@ = Car.Create(483, -1911.952, -624.4892, 23.6093)
Car.SetHeading(74@, 304.9144)
Car.ChangeColor(74@, 104, 61)
Car.ForceLights(74@, CarLights.ForceOn)
Car.OpenDoor(74@, CarDoor.RightFrontDoor)
Car.OpenDoor(74@, CarDoor.RightRearDoor)
Char.SetDecisionMaker(75@, 232@)
Char.SetDecisionMaker(76@, 232@)
Char.SetDecisionMaker(69@, 231@)
Char.SetRelationship(76@, RelationshipType.Hate, PedType.Player1)
Char.SetStayInSamePlace(76@, True)
Char.SetStayInSamePlace(69@, True)
$girl2_timer = Char.GetHealth(69@)
Hud.DisplayNthCounterWithString($girl2_timer, CounterDisplay.Bar, 1, 'SYN2_63')
Streaming.RequestAnimation("CRACK")
Streaming.RequestAnimation("MISC")

:SYN2_14310
if or
  not Streaming.HasAnimationLoaded("CRACK")
  not Streaming.HasAnimationLoaded("MISC")
goto_if_false @SYN2_14349
wait 0
goto @SYN2_14310

:SYN2_14349
if 
  not Char.IsDead(69@)
goto_if_false @SYN2_14403
Task.PlayAnimNonInterruptable(69@, "CRCKDETH2", "CRACK", 4.0, True, False, False, False, -1)

:SYN2_14403
if 
  not Char.IsDead(75@)
goto_if_false @SYN2_14691
53@ = Sequence.Open()
Task.PlayAnim(-1, "FIGHTA_G", "PED", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "FIGHTA_G", "PED", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "FIGHTA_G", "PED", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "FIGHTA_G", "PED", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "FIGHTA_G", "PED", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "BITCHSLAP", "MISC", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "BITCHSLAP", "MISC", 4.0, False, False, False, True, -1)
Sequence.SetToRepeat(53@, True)
Sequence.Close(53@)
Char.PerformSequence(75@, 53@)
Sequence.Clear(53@)

:SYN2_14691
35@ += 1

:SYN2_14698
if 
  not Char.IsDead(75@)
goto_if_false @SYN2_14779
41@ = Char.GetScriptTaskStatus(75@, 1560)
if 
  not is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_14779
if 
  55@ > 3000
goto_if_false @SYN2_14779
41@ = Char.SetSayContext(75@, 89)
55@ = 0

:SYN2_14779
if 
  35@ == 2
goto_if_false @SYN2_14976
if 
  56@ == 1
goto_if_false @SYN2_14852
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @SYN2_14852
Char.SetCoordinates($scplayer, -1904.041, -602.5592, 23.6067)

:SYN2_14852
if 
  Char.LocateAnyMeans3D($scplayer, -1911.919, -629.912, 23.6093, 40.0, 40.0, 5.0, False)
goto_if_false @SYN2_14976
Blip.Remove(60@)
Text.PrintNow('SYN2_15', 10000, 1)
if 
  not Char.IsDead(75@)
goto_if_false @SYN2_14945
62@ = Blip.AddForChar(75@)

:SYN2_14945
if 
  not Char.IsDead(76@)
goto_if_false @SYN2_14969
63@ = Blip.AddForChar(76@)

:SYN2_14969
35@ += 1

:SYN2_14976
if 
  35@ == 3
goto_if_false @SYN2_15103
if 
  Char.IsDead(75@)
goto_if_false @SYN2_15031
if 
  Blip.DoesExist(62@)
goto_if_false @SYN2_15031
Blip.Remove(62@)

:SYN2_15031
if 
  Char.IsDead(76@)
goto_if_false @SYN2_15068
if 
  Blip.DoesExist(63@)
goto_if_false @SYN2_15068
Blip.Remove(63@)

:SYN2_15068
if and
  Char.IsDead(75@)
  Char.IsDead(76@)
goto_if_false @SYN2_15103
35@ += 1
TIMERA = 0

:SYN2_15103
if 
  35@ == 4
goto_if_false @SYN2_15656
if 
  TIMERA > 1000
goto_if_false @SYN2_15656
if 
  Char.IsDead(75@)
goto_if_false @SYN2_15362
238@, 239@, 240@ = Char.GetCoordinatesOfDied(75@)
if 
  not Char.IsDead(69@)
goto_if_false @SYN2_15200
$x, $y, $z = Char.GetCoordinates(69@)

:SYN2_15200
set_lvar_float_to_lvar_float 50@ = 238@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 239@
sub_float_var_from_float_lvar 51@ -= $y
set_lvar_float_to_lvar_float 52@ = 240@
sub_float_var_from_float_lvar 52@ -= $z
44@ = Math.GetDistanceBetweenCoords2D(238@, 239@, $x, $y)
if 
  44@ > 0.01
goto_if_false @SYN2_15302
div_float_lvar_by_float_lvar 50@ /= 44@
div_float_lvar_by_float_lvar 51@ /= 44@

:SYN2_15302
50@ *= -0.5
51@ *= -0.5
set_lvar_float_to_lvar_float 241@ = 238@
add_float_lvar_to_float_lvar 241@ += 50@
set_lvar_float_to_lvar_float 242@ = 239@
add_float_lvar_to_float_lvar 242@ += 51@
set_lvar_float_to_lvar_float 243@ = 240@

:SYN2_15362
53@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "GETUP", "PED", 6.0, False, False, False, True, 0)
Task.GoStraightToCoord(-1, 241@, 242@, 243@, MoveState.Run, 99999)
Task.TurnCharToFaceCoord(-1, 238@, 239@, 240@)
Task.PlayAnimNonInterruptable(-1, "FIGHTA_G", "PED", 4.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "FIGHTA_G", "PED", 4.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "FIGHTA_G", "PED", 4.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "FIGHTA_G", "PED", 4.0, False, False, False, False, -1)
Sequence.Close(53@)
if 
  not Char.IsDead(69@)
goto_if_false @SYN2_15617
Char.SetBleeding(69@, False)
Char.SetStayInSamePlace(69@, False)
Char.PerformSequence(69@, 53@)
88@ = 1

:SYN2_15617
Sequence.Clear(53@)
Hud.ClearCounter($girl2_timer)
35@ += 1
247@ = 0
TIMERA = 0
TIMERB = 2000

:SYN2_15656
if 
  35@ > 4
goto_if_false @SYN2_15963
if 
  not Char.IsDead(69@)
goto_if_false @SYN2_15963
if 
  88@ == 1
goto_if_false @SYN2_15780
if 
  TIMERB > 3000
goto_if_false @SYN2_15744
41@ = Char.SetSayContext(69@, 89)
TIMERB = 0

:SYN2_15744
41@ = Char.GetScriptTaskStatus(69@, 1560)
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_15780
88@ += 1

:SYN2_15780
if 
  88@ == 2
goto_if_false @SYN2_15963
if 
  not Car.IsDead(74@)
goto_if_false @SYN2_15929
if 
  Char.LocateAnyMeansCar3D(69@, 74@, 30.0, 30.0, 10.0, False)
goto_if_false @SYN2_15908
53@ = Sequence.Open()
Task.GotoCar(-1, 74@, 20000, 5.0)
Task.EnterCarAsDriver(-1, 74@, 999999)
Task.CarDriveWander(-1, 74@, 40.0, DrivingMode.AvoidCars)
Sequence.Close(53@)
goto @SYN2_15922

:SYN2_15908
53@ = Sequence.Open()
Task.WanderStandard(-1)
Sequence.Close(53@)

:SYN2_15922
goto @SYN2_15943

:SYN2_15929
53@ = Sequence.Open()
Task.WanderStandard(-1)
Sequence.Close(53@)

:SYN2_15943
Char.PerformSequence(69@, 53@)
Sequence.Clear(53@)
88@ += 1

:SYN2_15963
if 
  35@ == 5
goto_if_false @SYN2_16162
if 
  TIMERA > 1000
goto_if_false @SYN2_16113
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_16106
if 
  not Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_16092
if 
  280@ == 0
goto_if_false @SYN2_16071
Text.PrintNow('SYN_M_1', 999999, 1)

:SYN2_16071
TIMERA = 0
35@ += 1
goto @SYN2_16106

:SYN2_16092
TIMERA = 0
35@ += 1

:SYN2_16106
goto @SYN2_16162

:SYN2_16113
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_16162
if 
  Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_16162
TIMERA = 0
35@ += 1

:SYN2_16162
if 
  35@ == 6
goto_if_false @SYN2_16307
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_16226
if 
  Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_16226
Text.ClearThisPrint('SYN_M_1')

:SYN2_16226
if 
  TIMERA > 6000
goto_if_false @SYN2_16307
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_16293
$x, $y, $z = Car.GetCoordinates(59@)
Audio.AttachMissionAudioToCar(MissionAudioSlot.Slot3, 59@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
90@ = 1

:SYN2_16293
TIMERA = 0
35@ += 1

:SYN2_16307
if 
  35@ == 7
goto_if_false @SYN2_16453
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_16371
if 
  Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_16371
Text.ClearThisPrint('SYN_M_1')

:SYN2_16371
if 
  TIMERA > 500
goto_if_false @SYN2_16453
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_16453
if 
  Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_16453
Player.SetControl($player1, False)
283@ = -1
TIMERA = 0
35@ += 1

:SYN2_16453
if 
  35@ == 8
goto_if_false @SYN2_16526
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_16526
if 
  Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_16526
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
90@ = 0
Text.ClearPrints
35@ += 1

:SYN2_16526
if 
  35@ == 9
goto_if_false @SYN2_16636
283@ = -1
279@ = 2
Text.ClearPrints
Camera.DoFade(150, Fade.Out)

:SYN2_16567
if 
  Camera.GetFadingStatus
goto_if_false @SYN2_16591
wait 0
goto @SYN2_16567

:SYN2_16591
gosub @SYN2_28920
Camera.DoFade(150, Fade.In)

:SYN2_16605
if 
  Camera.GetFadingStatus
goto_if_false @SYN2_16629
wait 0
goto @SYN2_16605

:SYN2_16629
35@ += 1

:SYN2_16636
if 
  35@ == 10
goto_if_false @SYN2_16694
if 
  TIMERA > 1000
goto_if_false @SYN2_16694
247@ = 0
TIMERA = 0
35@ += 1

:SYN2_16694
if and
  35@ > 10
  99 > 35@
goto_if_false @SYN2_17220
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_17220
if 
  54@ > 1000
goto_if_false @SYN2_17220
switch_start 247@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SYN2_17213 {caseNum1} 0 {caseLabel1} @SYN2_16819 {caseNum2} 1 {caseLabel2} @SYN2_16885 {caseNum3} 2 {caseLabel3} @SYN2_16950 {caseNum4} 3 {caseLabel4} @SYN2_17015 {caseNum5} 4 {caseLabel5} @SYN2_17080 {caseNum6} 5 {caseLabel6} @SYN2_17145 {caseNum7} 6 {caseLabel7} @SYN2_17199

:SYN2_16819
set_var_text_label s$audio_string = 'SYN2_FA'
set_var_int_to_constant $audio_sound_file = 8636
start_new_script @AUDIOL $scplayer 0 1 1 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8623)
247@ += 1
goto @SYN2_17213

:SYN2_16885
set_var_text_label s$audio_string = 'SYN2_FB'
set_var_int_to_constant $audio_sound_file = 8623
start_new_script @AUDIOL -1 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8624)
247@ += 1
goto @SYN2_17213

:SYN2_16950
set_var_text_label s$audio_string = 'SYN2_FC'
set_var_int_to_constant $audio_sound_file = 8624
start_new_script @AUDIOL -1 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8625)
247@ += 1
goto @SYN2_17213

:SYN2_17015
set_var_text_label s$audio_string = 'SYN2_FD'
set_var_int_to_constant $audio_sound_file = 8625
start_new_script @AUDIOL -1 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8626)
247@ += 1
goto @SYN2_17213

:SYN2_17080
set_var_text_label s$audio_string = 'SYN2_FE'
set_var_int_to_constant $audio_sound_file = 8626
start_new_script @AUDIOL -1 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8627)
247@ += 1
goto @SYN2_17213

:SYN2_17145
set_var_text_label s$audio_string = 'SYN2_FF'
set_var_int_to_constant $audio_sound_file = 8627
start_new_script @AUDIOL -1 0 1 2 1 
247@ += 1
goto @SYN2_17213

:SYN2_17199
247@ += 1
goto @SYN2_17213

:SYN2_17213
54@ = 0

:SYN2_17220
if 
  35@ == 11
goto_if_false @SYN2_17269
if or
  247@ > 6
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN2_17269
35@ = 99

:SYN2_17269
if 
  35@ == 99
goto_if_false @SYN2_17373
gosub @SYN2_30815
Char.MarkAsNoLongerNeeded(75@)
Char.MarkAsNoLongerNeeded(76@)
Char.MarkAsNoLongerNeeded(69@)
Car.MarkAsNoLongerNeeded(74@)
Streaming.MarkModelAsNoLongerNeeded(483)
Streaming.MarkModelAsNoLongerNeeded(72)
Streaming.MarkModelAsNoLongerNeeded(73)
Streaming.MarkModelAsNoLongerNeeded(245)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.RemoveAnimation("CRACK")
Streaming.RemoveAnimation("MISC")
Blip.Remove(61@)
35@ = 0
34@ += 1

:SYN2_17373
if 
  Char.DoesExist(69@)
goto_if_false @SYN2_17549
if 
  not Char.IsDead(69@)
goto_if_false @SYN2_17549
if 
  not Char.IsDead(75@)
goto_if_false @SYN2_17504
if or
  Char.IsPlayingAnim(75@, "FIGHTA_G")
  Char.IsPlayingAnim(75@, "BITCHSLAP")
goto_if_false @SYN2_17504
$girl2_timer = Char.GetHealth(69@)
if 
  TIMERB > 1000
goto_if_false @SYN2_17504
$girl2_timer += -1
TIMERB = 0

:SYN2_17504
if 
  1 >= $girl2_timer
goto_if_false @SYN2_17541
$girl2_timer = 1
Task.Die(69@)
goto @SYN2_17549

:SYN2_17541
Char.SetHealth(69@, $girl2_timer)

:SYN2_17549
if 
  Char.DoesExist(68@)
goto_if_false @SYN2_17633
if 
  not Char.IsDead(68@)
goto_if_false @SYN2_17633
if 
  not Char.LocateAnyMeansChar2D($scplayer, 69@, 50.0, 50.0, False)
goto_if_false @SYN2_17633
if 
  not Char.IsOnScreen(68@)
goto_if_false @SYN2_17633
Char.Delete(68@)

:SYN2_17633
return 

:SYN2_17635
if 
  35@ == -1
goto_if_false @SYN2_17771
255@ = Car.Create(413, 0.0, 0.0, 0.0)
259@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
246@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
244@ = Car.Create(413, 0.0, 0.0, 0.0)
67@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)

:SYN2_17771
if 
  35@ == 0
goto_if_false @SYN2_18001
if 
  not Car.DoesExist(59@)
goto_if_false @SYN2_17951
if 
  not Streaming.HasModelLoaded(575)
goto_if_false @SYN2_17853
Streaming.RequestModel(575)

:SYN2_17826
if 
  not Streaming.HasModelLoaded(575)
goto_if_false @SYN2_17853
wait 0
goto @SYN2_17826

:SYN2_17853
59@ = Car.Create(575, -1894.308, 712.9404, 44.2969)
Car.SetHeading(59@, 0.0)
if 
  Player.IsPlaying($player1)
goto_if_false @SYN2_17910
Char.WarpIntoCar($scplayer, 59@)

:SYN2_17910
231@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Streaming.LoadScene(-1900.754, 645.3122, 35.4401)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.DoFade(0, Fade.In)

:SYN2_17951
60@ = Blip.AddForCoord(-1964.372, 724.4017, 44.2969)
Blip.ChangeColor(60@, BlipColor.Yellow)
Text.PrintNow('SYN2_19', 10000, 1)
35@ += 1

:SYN2_18001
if 
  35@ == 1
goto_if_false @SYN2_18326
if 
  Blip.DoesExist(60@)
goto_if_false @SYN2_18237
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_18230
if 
  Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_18209
if 
  Car.Locate3D(59@, -1964.372, 724.4017, 44.2969, 4.0, 4.0, 4.0, True)
goto_if_false @SYN2_18202
if 
  Car.IsOnAllWheels(59@)
goto_if_false @SYN2_18202
Text.ClearPrints
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:SYN2_18150
if 
  Camera.GetFadingStatus
goto_if_false @SYN2_18174
wait 0
goto @SYN2_18150

:SYN2_18174
Blip.Remove(60@)
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
35@ += 1

:SYN2_18202
goto @SYN2_18230

:SYN2_18209
Blip.Remove(60@)
Text.Print('SYN_M_1', 7000, 1)

:SYN2_18230
goto @SYN2_18326

:SYN2_18237
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_18326
if 
  Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_18326
60@ = Blip.AddForCoord(-1964.372, 724.4017, 44.2969)
Blip.ChangeColor(60@, BlipColor.Yellow)
Text.ClearThisPrint('SYN_M_1')
Text.Print('SYN2_19', 7000, 1)

:SYN2_18326
if 
  35@ == 2
goto_if_false @SYN2_18922
World.SetCarDensityMultiplier(0.0)
World.ClearArea(-1964.372, 724.4017, 44.2969, 100.0, True)
Streaming.RequestModel(409)
Streaming.RequestModel(579)
Streaming.RequestModel(64)
Streaming.RequestModel(166)
Streaming.RequestModel(68)
Streaming.RequestModel(346)
Streaming.RequestModel(353)
Streaming.RequestCarRecording(539)
Streaming.RequestCarRecording(540)
Streaming.RequestCarRecording(541)

:SYN2_18423
if or
  not Streaming.HasModelLoaded(409)
  not Streaming.HasModelLoaded(64)
  not Streaming.HasModelLoaded(579)
  not Streaming.HasModelLoaded(166)
  not Streaming.HasModelLoaded(68)
goto_if_false @SYN2_18468
wait 0
goto @SYN2_18423

:SYN2_18468
if or
  not Streaming.HasCarRecordingBeenLoaded(539)
  not Streaming.HasCarRecordingBeenLoaded(540)
  not Streaming.HasCarRecordingBeenLoaded(541)
goto_if_false @SYN2_18505
wait 0
goto @SYN2_18468

:SYN2_18505
if or
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(353)
goto_if_false @SYN2_18537
wait 0
goto @SYN2_18505

:SYN2_18537
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_18583
Car.SetCoordinates(59@, -1964.372, 724.4017, 44.2969)
Car.SetHeading(59@, 266.5514)

:SYN2_18583
244@ = Car.Create(409, -1973.811, 728.3975, 44.2969)
Car.SetHeading(244@, 269.8438)
245@ = Char.CreateInsideCar(244@, PedType.CivMale, 166)
Char.SetDecisionMaker(245@, 231@)
Car.SetCruiseSpeed(244@, 15.0)
Car.ChangeColor(244@, 1, 0)
Car.StartPlayback(244@, 540)
Car.SkipInPlayback(244@, 3.0)
Car.SetOnlyDamagedByPlayer(244@, True)
255@ = Car.Create(579, -1987.811, 728.3975, 44.2969)
Car.SetHeading(255@, 269.8438)
259@ = Char.CreateInsideCar(255@, PedType.CivMale, 166)
Char.GiveWeapon(259@, WeaponType.Pistol, 99999)
Char.SetDecisionMaker(259@, 231@)
Car.SetCruiseSpeed(255@, 15.0)
Car.ChangeColor(255@, 0, 0)
Car.StartPlayback(255@, 541)
Car.SkipInPlayback(255@, 3.0)
248@ = Char.CreateAsPassenger(255@, PedType.CivMale, 166, 0)
Char.GiveWeapon(248@, WeaponType.Mp5, 99999)
Char.SetDecisionMaker(248@, 231@)
Hud.SwitchWidescreen(True)
Text.ClearHelp
Text.ClearPrints
Camera.SetFixedPosition(-1968.579, 721.6734, 47.3198, 0.0, 0.0, 0.0)
$x, $y, $z = Car.GetOffsetInWorldCoords(244@, -5.0, -2.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)
TIMERA = 0
35@ += 1

:SYN2_18922
if 
  35@ > 2
goto_if_false @SYN2_18964
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN2_18964
35@ = 99

:SYN2_18964
if 
  35@ == 3
goto_if_false @SYN2_19117
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_19040
$x, $y, $z = Car.GetOffsetInWorldCoords(244@, -5.0, -2.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:SYN2_19040
if 
  TIMERA > 4000
goto_if_false @SYN2_19117
Camera.SetFixedPosition(-1929.402, 738.0927, 44.7662, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1929.326, 737.1227, 44.9969, SwitchType.JumpCut)
35@ += 1

:SYN2_19117
if 
  35@ == 4
goto_if_false @SYN2_19214
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_19214
if 
  not Car.IsDead(255@)
goto_if_false @SYN2_19214
if and
  not Car.IsPlaybackGoingOn(244@)
  not Car.IsPlaybackGoingOn(255@)
goto_if_false @SYN2_19214
wait 1500
247@ = 0
TIMERB = 0
35@ += 1

:SYN2_19214
if 
  35@ >= 5
goto_if_false @SYN2_19724
if 
  TIMERB > 1000
goto_if_false @SYN2_19724
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_19724
switch_start 247@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SYN2_19717 {caseNum1} 0 {caseLabel1} @SYN2_19332 {caseNum2} 1 {caseLabel2} @SYN2_19398 {caseNum3} 2 {caseLabel3} @SYN2_19464 {caseNum4} 3 {caseLabel4} @SYN2_19530 {caseNum5} 4 {caseLabel5} @SYN2_19596 {caseNum6} 5 {caseLabel6} @SYN2_19662 {caseNum7} -1 {caseLabel7} @SYN2_19717

:SYN2_19332
set_var_text_label s$audio_string = 'SYN2_HA'
set_var_int_to_constant $audio_sound_file = 8661
start_new_script @AUDIOL 246@ 0 1 1 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8662)
247@ += 1
goto @SYN2_19717

:SYN2_19398
set_var_text_label s$audio_string = 'SYN2_HB'
set_var_int_to_constant $audio_sound_file = 8662
start_new_script @AUDIOL 246@ 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8663)
247@ += 1
goto @SYN2_19717

:SYN2_19464
set_var_text_label s$audio_string = 'SYN2_HC'
set_var_int_to_constant $audio_sound_file = 8663
start_new_script @AUDIOL 246@ 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8664)
247@ += 1
goto @SYN2_19717

:SYN2_19530
set_var_text_label s$audio_string = 'SYN2_HD'
set_var_int_to_constant $audio_sound_file = 8664
start_new_script @AUDIOL 246@ 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8665)
247@ += 1
goto @SYN2_19717

:SYN2_19596
set_var_text_label s$audio_string = 'SYN2_HE'
set_var_int_to_constant $audio_sound_file = 8665
start_new_script @AUDIOL 246@ 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8660)
247@ += 1
goto @SYN2_19717

:SYN2_19662
set_var_text_label s$audio_string = 'SYN2_HF'
set_var_int_to_constant $audio_sound_file = 8660
start_new_script @AUDIOL 245@ 0 1 2 1 
247@ += 1
goto @SYN2_19717

:SYN2_19717
TIMERB = 0

:SYN2_19724
if 
  35@ == 5
goto_if_false @SYN2_20343
World.ClearArea(-1924.487, 724.8195, 45.134, 100.0, True)
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_19840
Car.SetCoordinates(244@, -1924.487, 725.2195, 45.134)
Car.SetHeading(244@, 270.0)
Car.OpenDoor(244@, CarDoor.RightRearDoor)
Car.FreezePosition(244@, True)

:SYN2_19840
if 
  not Car.IsDead(255@)
goto_if_false @SYN2_19893
Car.SetCoordinates(255@, -1932.387, 725.1635, 45.2749)
Car.SetHeading(255@, 270.0)
Car.FreezePosition(255@, True)

:SYN2_19893
if 
  not Char.IsDead(245@)
goto_if_false @SYN2_19944
Char.ClearTasksImmediately(245@)
Char.SetCoordinates(245@, -1924.224, 723.2358, 44.4453)
Char.SetHeading(245@, 159.4748)

:SYN2_19944
67@ = Char.Create(PedType.CivFemale, 64, -1920.884, 718.9793, 44.4453)
Char.SetHeading(67@, 0.0)
Path.FlushRoute
Path.ExtendRoute(-1921.819, 720.555, 44.4453)
Path.ExtendRoute(-1926.29, 722.7397, 44.4453)
53@ = Sequence.Open()
Task.FollowPointRoute(-1, 4, RouteMode.Once)
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_20055
Task.EnterCarAsPassenger(-1, 244@, 20000, 2)

:SYN2_20055
Sequence.Close(53@)
Char.PerformSequence(67@, 53@)
Sequence.Clear(53@)
Char.SetNeverTargeted(67@, True)
Char.SetDecisionMaker(67@, 231@)
246@ = Char.Create(PedType.CivMale, 68, -1923.519, 718.0508, 44.9828)
Char.SetHeading(246@, 0.0)
Char.SetDecisionMaker(246@, 231@)
Path.FlushRoute
Path.ExtendRoute(-1922.707, 719.7217, 45.4453)
Path.ExtendRoute(-1924.669, 720.7556, 45.4453)
Path.ExtendRoute(-1925.027, 720.9464, 45.4453)
Path.ExtendRoute(-1926.188, 721.5566, 45.4453)
Path.ExtendRoute(-1927.006, 722.2399, 45.4453)
53@ = Sequence.Open()
Task.Pause(-1, 500)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
if 
  not Char.IsDead(67@)
goto_if_false @SYN2_20260
Task.TurnCharToFaceChar(-1, 67@)

:SYN2_20260
Sequence.Close(53@)
Char.PerformSequence(246@, 53@)
Sequence.Clear(53@)
TIMERA = 0
Camera.SetFixedPosition(-1918.223, 720.1056, 46.0226, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1919.156, 720.4551, 45.9459, SwitchType.JumpCut)
35@ += 1

:SYN2_20343
if 
  35@ == 6
goto_if_false @SYN2_20629
if 
  TIMERA > 7050
goto_if_false @SYN2_20629
Camera.SetFixedPosition(-1933.54, 728.0091, 46.4366, 0.0, 0.0, 0.0)
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_20629
Camera.PointAtCar(244@, CameraMode.Fixed, SwitchType.JumpCut)
if 
  not Car.IsDead(255@)
goto_if_false @SYN2_20460
Car.FreezePosition(255@, False)

:SYN2_20460
Car.FreezePosition(244@, False)
if 
  not Char.IsDead(67@)
goto_if_false @SYN2_20498
Char.ClearTasksImmediately(67@)
Char.WarpIntoCarAsPassenger(67@, 244@, 1)

:SYN2_20498
Car.OpenDoor(244@, CarDoor.RightRearDoor)
if 
  not Char.IsDead(246@)
goto_if_false @SYN2_20569
Char.ClearTasksImmediately(246@)
Char.SetCoordinates(246@, -1927.08, 723.2823, 44.4453)
Char.SetHeading(246@, 299.9935)
Task.EnterCarAsPassenger(246@, 244@, 20000, 2)

:SYN2_20569
if 
  not Char.IsDead(245@)
goto_if_false @SYN2_20622
Char.ClearTasksImmediately(245@)
Char.ClearLookAt(245@)
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_20622
Task.EnterCarAsDriver(245@, 244@, 5000)

:SYN2_20622
35@ += 1

:SYN2_20629
if 
  35@ == 7
goto_if_false @SYN2_20799
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_20799
if 
  not Char.IsDead(245@)
goto_if_false @SYN2_20799
if 
  Char.IsInCar(245@, 244@)
goto_if_false @SYN2_20799
if 
  not Char.IsDead(246@)
goto_if_false @SYN2_20799
if 
  Char.IsInCar(246@, 244@)
goto_if_false @SYN2_20799
if 
  247@ > 5
goto_if_false @SYN2_20799
Task.CarDriveToCoord(245@, 244@, -1902.027, 726.5126, 45.2216, 20.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
TIMERA = 0
35@ += 1

:SYN2_20799
if 
  35@ == 8
goto_if_false @SYN2_20916
if 
  TIMERA > 500
goto_if_false @SYN2_20916
if 
  not Char.IsDead(259@)
goto_if_false @SYN2_20902
if 
  not Car.IsDead(255@)
goto_if_false @SYN2_20902
Task.CarDriveToCoord(259@, 255@, -1902.027, 726.5126, 45.2216, 18.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:SYN2_20902
TIMERA = 0
35@ += 1

:SYN2_20916
if 
  35@ == 9
goto_if_false @SYN2_20960
if 
  TIMERA > 2000
goto_if_false @SYN2_20960
35@ = 99

:SYN2_20960
if 
is_ps2_keyboard_key_just_pressed 18
goto_if_false @SYN2_21180
if 
  not Char.IsDead(67@)
goto_if_false @SYN2_21180
$x, $y, $z = Char.GetOffsetInWorldCoords(67@, -1.0, 0.0, 0.0)
$heading = Char.GetHeading(67@)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("PREACHER POINT = ")
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z
save_float_to_debug_file $heading

:SYN2_21180
if 
  35@ == 888
goto_if_false @SYN2_21672
if 
  TIMERA > 1000
goto_if_false @SYN2_21672
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_21445
if 
  Car.IsStopped(244@)
goto_if_false @SYN2_21445
if 
is_recording_going_on_for_car 244@
goto_if_false @SYN2_21445
stop_recording_car 244@
$x, $y, $z = Car.GetCoordinates(244@)
$heading = Car.GetHeading(244@)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("RICH CAR STOPPED AT ")
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z
save_float_to_debug_file $heading

:SYN2_21445
if 
  not Car.IsDead(255@)
goto_if_false @SYN2_21672
if 
  Car.IsStopped(255@)
goto_if_false @SYN2_21672
if 
is_recording_going_on_for_car 255@
goto_if_false @SYN2_21672
stop_recording_car 255@
$x, $y, $z = Car.GetCoordinates(255@)
$heading = Car.GetHeading(255@)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("MIB_CAR STOPPED AT ")
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z
save_float_to_debug_file $heading

:SYN2_21672
if 
  35@ == 99
goto_if_false @SYN2_22471
if 
  not Char.DoesExist(246@)
goto_if_false @SYN2_21738
246@ = Char.Create(PedType.CivMale, 68, 0.0, 0.0, 0.0)
Char.SetDecisionMaker(246@, 231@)

:SYN2_21738
if 
  not Char.DoesExist(67@)
goto_if_false @SYN2_21786
67@ = Char.Create(PedType.CivFemale, 64, 0.0, 0.0, 0.0)
Char.SetDecisionMaker(67@, 231@)

:SYN2_21786
Streaming.MarkModelAsNoLongerNeeded(409)
Streaming.MarkModelAsNoLongerNeeded(579)
Streaming.MarkModelAsNoLongerNeeded(64)
Streaming.MarkModelAsNoLongerNeeded(166)
Streaming.MarkModelAsNoLongerNeeded(68)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(353)
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
if 
  not Car.IsDead(255@)
goto_if_false @SYN2_21923
if 
  Car.IsPlaybackGoingOn(255@)
goto_if_false @SYN2_21887
Car.StopPlayback(255@)

:SYN2_21887
Car.FreezePosition(255@, False)
if 
  not Char.IsDead(259@)
goto_if_false @SYN2_21923
Char.ClearTasksImmediately(259@)
Char.WarpIntoCar(259@, 255@)

:SYN2_21923
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_21967
if 
  Car.IsPlaybackGoingOn(244@)
goto_if_false @SYN2_21960
Car.StopPlayback(244@)

:SYN2_21960
Car.FreezePosition(244@, False)

:SYN2_21967
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_22079
if 
  not Char.IsDead(245@)
goto_if_false @SYN2_22012
Char.ClearTasksImmediately(245@)
Char.WarpIntoCar(245@, 244@)

:SYN2_22012
if 
  not Char.IsDead(67@)
goto_if_false @SYN2_22043
Char.ClearTasksImmediately(67@)
Char.WarpIntoCarAsPassenger(67@, 244@, 1)

:SYN2_22043
if 
  not Char.IsDead(246@)
goto_if_false @SYN2_22074
Char.ClearTasksImmediately(246@)
Char.WarpIntoCarAsPassenger(246@, 244@, 2)

:SYN2_22074
Car.CloseAllDoors(244@)

:SYN2_22079
if 
  not Car.IsDead(255@)
goto_if_false @SYN2_22191
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_22191
if 
  not Char.IsDead(259@)
goto_if_false @SYN2_22191
Car.StartPlaybackUsingAi(255@, 539)
Car.SkipInPlayback(255@, 0.0)
Car.SetDrivingStyle(255@, DrivingMode.AvoidCarsObeyLights)
Car.SetProofs(255@, False, False, False, False, False)
Car.LockDoors(255@, CarLock.LockoutPlayerOnly)
Car.SetHeavy(255@, True)
Car.SetTraction(255@, 2.0)

:SYN2_22191
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_22368
World.ClearArea(-1908.786, 726.1257, 45.097, 5.0, True)
Car.SetCoordinates(244@, -1908.786, 726.1257, 45.097)
Car.SetHeading(244@, 273.1095)
Car.FreezePosition(244@, False)
Car.SetForwardSpeed(244@, 10.0)
Car.SetProofs(244@, False, False, False, False, False)
Car.LockDoors(244@, CarLock.LockoutPlayerOnly)
Car.SetHeavy(244@, True)
Car.SetTraction(244@, 2.0)
Car.SetHealth(244@, 1850)
Car.StartPlaybackUsingAi(244@, 539)
Car.SkipInPlayback(244@, 5.0)
Car.SetDrivingStyle(244@, DrivingMode.AvoidCarsObeyLights)
Car.AddUpsidedownCheck(244@)
StuckCarCheck.Add(244@, 2.0, 3000)

:SYN2_22368
Path.SwitchPedRoadsOn(-1950.0, 718.0, 44.0, -1912.0, 731.0, 48.0)
Path.SwitchRoadsOn(-1950.0, 718.0, 44.0, -1912.0, 731.0, 48.0)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
34@ += 1
35@ = 0

:SYN2_22471
return 

:SYN2_22473
if 
  35@ == 0
goto_if_false @SYN2_22739
CarGenerator.SuppressCarModel(409)
CarGenerator.SuppressCarModel(579)
252@ = 15.0
if 
  not Char.IsDead(246@)
goto_if_false @SYN2_22542
249@ = Blip.AddForChar(246@)
Char.SetGetOutUpsideDownCar(246@, False)

:SYN2_22542
if 
  not Char.IsDead(67@)
goto_if_false @SYN2_22565
Char.SetGetOutUpsideDownCar(67@, False)

:SYN2_22565
if 
  not Char.IsDead(245@)
goto_if_false @SYN2_22588
Char.SetGetOutUpsideDownCar(245@, False)

:SYN2_22588
if 
  not Char.IsDead(259@)
goto_if_false @SYN2_22612
263@ = Blip.AddForChar(259@)

:SYN2_22612
if 
  not Char.IsDead(248@)
goto_if_false @SYN2_22636
264@ = Blip.AddForChar(248@)

:SYN2_22636
250@ = 0
251@ = 0
$syn2_timer = 30000
250@ = 0
87@ = 0
Text.PrintNow('SYN2_70', 10000, 1)
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_22711
Car.LockDoors(244@, CarLock.Locked)

:SYN2_22711
World.SetCarDensityMultiplier(0.65)
World.SetPedDensityMultiplier(1.0)
265@ = 0
35@ += 1

:SYN2_22739
if 
  265@ == 0
goto_if_false @SYN2_22803
if 
  Blip.DoesExist(61@)
goto_if_false @SYN2_22796
Text.Print('SYN_M_1', 5000, 1)
265@ = 1

:SYN2_22796
goto @SYN2_22853

:SYN2_22803
if 
  not Blip.DoesExist(61@)
goto_if_false @SYN2_22853
Text.ClearThisPrint('SYN_M_1')
Text.Print('SYN2_70', 5000, 1)
265@ = 0

:SYN2_22853
if 
  35@ == 1
goto_if_false @SYN2_27036
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_23877
if 
  250@ == 0
goto_if_false @SYN2_23001
if 
  Car.IsPlaybackGoingOn(244@)
goto_if_false @SYN2_22938
266@ = 0.3
goto @SYN2_22994

:SYN2_22938
if 
  268@ <> 1
goto_if_false @SYN2_22994
if 
  not Char.IsDead(245@)
goto_if_false @SYN2_22994
Task.CarDriveWander(245@, 244@, 50.0, DrivingMode.AvoidCars)
268@ = 1

:SYN2_22994
goto @SYN2_23415

:SYN2_23001
if 
  Car.IsPlaybackGoingOn(244@)
goto_if_false @SYN2_23359
$x, $y, $z = Car.GetOffsetInWorldCoords(244@, 0.0, 10.0, 0.0)
47@, 48@, 49@ = Char.GetCoordinates($scplayer)
44@ = Math.GetDistanceBetweenCoords2D($x, $y, 47@, 48@)
$x, $y, $z = Car.GetOffsetInWorldCoords(244@, 0.0, -10.0, 0.0)
47@, 48@, 49@ = Char.GetCoordinates($scplayer)
45@ = Math.GetDistanceBetweenCoords2D($x, $y, 47@, 48@)
if 
  is_float_lvar_greater_than_float_lvar 45@ > 44@
goto_if_false @SYN2_23173
add_timed_val_to_float_lvar 266@ +=@ 0.1
goto @SYN2_23352

:SYN2_23173
$x, $y, $z = Car.GetCoordinates(244@)
47@, 48@, 49@ = Char.GetCoordinates($scplayer)
44@ = Math.GetDistanceBetweenCoords3D($x, $y, $z, 47@, 48@, 49@)
if 
  Char.LocateAnyMeansCar2D($scplayer, 244@, 20.0, 20.0, False)
goto_if_false @SYN2_23272
add_timed_val_to_float_lvar 266@ +=@ 0.05
goto @SYN2_23313

:SYN2_23272
if 
  not Char.LocateAnyMeansCar2D($scplayer, 244@, 25.0, 25.0, False)
goto_if_false @SYN2_23313
add_timed_val_to_float_lvar 266@ +=@ -0.01

:SYN2_23313
if 
  0.6 > 266@
goto_if_false @SYN2_23344
266@ = 0.6

:SYN2_23344
set_lvar_float_to_lvar_float 267@ = 44@

:SYN2_23352
goto @SYN2_23415

:SYN2_23359
if 
  268@ <> 1
goto_if_false @SYN2_23415
if 
  not Char.IsDead(245@)
goto_if_false @SYN2_23415
Task.CarDriveWander(245@, 244@, 50.0, DrivingMode.AvoidCars)
268@ = 1

:SYN2_23415
if 
  266@ > 1.5
goto_if_false @SYN2_23446
266@ = 1.5

:SYN2_23446
if 
  Car.IsPlaybackGoingOn(244@)
goto_if_false @SYN2_23470
Car.SetPlaybackSpeed(244@, 266@)

:SYN2_23470
if 
  Car.IsStuckOnRoof(244@)
goto_if_false @SYN2_23556
if 
  not Car.IsOnScreen(244@)
goto_if_false @SYN2_23556
$x, $y, $z = Car.GetCoordinates(244@)
$heading = Car.GetHeading(244@)
$z += 1.0
Car.SetCoordinates(244@, $x, $y, $z)
Car.SetHeading(244@, $heading)

:SYN2_23556
if 
  StuckCarCheck.IsCarStuck(244@)
goto_if_false @SYN2_23877
if 
  not Car.IsOnScreen(244@)
goto_if_false @SYN2_23867
if 
  not Char.LocateAnyMeansCar3D($scplayer, 244@, 20.0, 20.0, 20.0, False)
goto_if_false @SYN2_23831
$x, $y, $z = Car.GetCoordinates(244@)
41@ = 1

:SYN2_23645
if 
  20 > 41@
goto_if_false @SYN2_23792
47@, 48@, 49@ = Path.GetNthClosestCarNode($x, $y, $z, 41@)
if 
  not Camera.IsPointOnScreen(47@, 48@, 49@, 5.0)
goto_if_false @SYN2_23778
if 
  not World.IsPointObscuredByAMissionEntity(47@, 48@, 49@, 5.0, 5.0, 5.0)
goto_if_false @SYN2_23764
41@ = 25
goto @SYN2_23771

:SYN2_23764
41@ += 1

:SYN2_23771
goto @SYN2_23785

:SYN2_23778
41@ += 1

:SYN2_23785
goto @SYN2_23645

:SYN2_23792
if 
  41@ == 25
goto_if_false @SYN2_23824
Car.SetCoordinates(244@, $x, $y, $z)

:SYN2_23824
goto @SYN2_23860

:SYN2_23831
if 
  not Char.IsDead(245@)
goto_if_false @SYN2_23860
Task.CarTempAction(245@, 244@, TempAction.Reverse, 1000)

:SYN2_23860
goto @SYN2_23877

:SYN2_23867
Car.SetForwardSpeed(244@, -10.0)

:SYN2_23877
if 
  not Car.IsDead(255@)
goto_if_false @SYN2_24615
if 
  Car.IsPlaybackGoingOn(255@)
goto_if_false @SYN2_24258
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_24246
$x, $y, $z = Car.GetOffsetInWorldCoords(244@, 0.0, -10.0, 0.0)
47@, 48@, 49@ = Car.GetCoordinates(255@)
44@ = Math.GetDistanceBetweenCoords2D($x, $y, 47@, 48@)
$x, $y, $z = Car.GetOffsetInWorldCoords(244@, 0.0, -20.0, 0.0)
47@, 48@, 49@ = Car.GetCoordinates(255@)
45@ = Math.GetDistanceBetweenCoords2D($x, $y, 47@, 48@)
if 
  is_float_lvar_greater_than_float_lvar 45@ > 44@
goto_if_false @SYN2_24167
$x, $y, $z = Car.GetOffsetInWorldCoords(244@, 0.0, -15.0, 0.0)
if 
  not Car.Locate3D(255@, $x, $y, $z, 5.0, 5.0, 5.0, False)
goto_if_false @SYN2_24152
add_timed_val_to_float_lvar 269@ +=@ -0.2
goto @SYN2_24160

:SYN2_24152
set_lvar_float_to_lvar_float 269@ = 266@

:SYN2_24160
goto @SYN2_24217

:SYN2_24167
if 
  271@ <> 2
goto_if_false @SYN2_24199
Car.SetDrivingStyle(255@, DrivingMode.PloughThrough)
271@ = 2

:SYN2_24199
set_lvar_float_to_lvar_float 269@ = 266@
269@ += 3.0

:SYN2_24217
Car.SetPlaybackSpeed(255@, 269@)
273@, 274@, 275@ = Car.GetCoordinates(244@)
goto @SYN2_24251

:SYN2_24246
Car.StopPlayback(255@)

:SYN2_24251
goto @SYN2_24615

:SYN2_24258
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_24356
if 
  271@ <> 99
goto_if_false @SYN2_24335
if 
  not Char.IsDead(259@)
goto_if_false @SYN2_24335
Task.CarMission(259@, 255@, 244@, CarMission.EscortRear, 100.0, DrivingMode.PloughThrough)
271@ = 99

:SYN2_24335
273@, 274@, 275@ = Car.GetCoordinates(244@)
goto @SYN2_24615

:SYN2_24356
if 
  100 > 271@
goto_if_false @SYN2_24432
if 
  not Char.IsDead(259@)
goto_if_false @SYN2_24425
Task.CarDriveToCoord(259@, 255@, 273@, 274@, 275@, 40.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
271@ = 100

:SYN2_24425
goto @SYN2_24615

:SYN2_24432
if 
  Car.Locate3D(255@, 273@, 274@, 275@, 20.0, 20.0, 10.0, False)
goto_if_false @SYN2_24615
if 
  271@ <> 101
goto_if_false @SYN2_24615
if 
  not Char.IsDead(259@)
goto_if_false @SYN2_24550
53@ = Sequence.Open()
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Task.KindaStayInSamePlace(-1, True)
Sequence.Close(53@)
Char.PerformSequence(259@, 53@)
Sequence.Clear(53@)

:SYN2_24550
if 
  not Char.IsDead(248@)
goto_if_false @SYN2_24608
53@ = Sequence.Open()
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Task.KindaStayInSamePlace(-1, True)
Sequence.Close(53@)
Char.PerformSequence(248@, 53@)
Sequence.Clear(53@)

:SYN2_24608
271@ = 101

:SYN2_24615
if 
  250@ == 0
goto_if_false @SYN2_24924
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_24689
if 
  Car.HasBeenDamagedByChar(244@, $scplayer)
goto_if_false @SYN2_24689
250@ = 1
276@ = 1
TIMERA = 0

:SYN2_24689
if 
  not Car.IsDead(255@)
goto_if_false @SYN2_24738
if 
  Car.HasBeenDamagedByChar(255@, $scplayer)
goto_if_false @SYN2_24738
250@ = 1
276@ = 1

:SYN2_24738
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_24837
if 
  Char.LocateAnyMeansCar3D($scplayer, 244@, 30.0, 30.0, 30.0, False)
goto_if_false @SYN2_24830
if 
  89@ > 5000
goto_if_false @SYN2_24823
276@ = 1
250@ = 1

:SYN2_24823
goto @SYN2_24837

:SYN2_24830
89@ = 0

:SYN2_24837
if 
  250@ == 1
goto_if_false @SYN2_24924
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_24878
Car.SetDrivingStyle(244@, DrivingMode.AvoidCars)

:SYN2_24878
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_24924
82@ = Car.GetHealth(244@)
set_lvar_int_to_lvar_int 83@ = 82@
83@ -= 100
81@ = 0

:SYN2_24924
if and
  276@ > 0
  7 > 276@
goto_if_false @SYN2_25490
if 
  TIMERB > 1000
goto_if_false @SYN2_25490
if 
  not Char.IsDead(246@)
goto_if_false @SYN2_25490
if 
  Char.LocateAnyMeansChar3D($scplayer, 246@, 20.0, 20.0, 20.0, False)
goto_if_false @SYN2_25490
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_25490
switch_start 276@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SYN2_25490 {caseNum1} 1 {caseLabel1} @SYN2_25101 {caseNum2} 2 {caseLabel2} @SYN2_25174 {caseNum3} 3 {caseLabel3} @SYN2_25247 {caseNum4} 4 {caseLabel4} @SYN2_25320 {caseNum5} 5 {caseLabel5} @SYN2_25393 {caseNum6} 6 {caseLabel6} @SYN2_25455 {caseNum7} -1 {caseLabel7} @SYN2_25490

:SYN2_25101
set_var_text_label s$audio_string = 'SYN2_JA'
set_var_int_to_constant $audio_sound_file = 8666
start_new_script @AUDIOL 246@ 0 1 1 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8667)
276@ += 1
TIMERB = 0
goto @SYN2_25490

:SYN2_25174
set_var_text_label s$audio_string = 'SYN2_JB'
set_var_int_to_constant $audio_sound_file = 8667
start_new_script @AUDIOL 246@ 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8670)
276@ += 1
TIMERB = 0
goto @SYN2_25490

:SYN2_25247
set_var_text_label s$audio_string = 'SYN2_JE'
set_var_int_to_constant $audio_sound_file = 8670
start_new_script @AUDIOL 246@ 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8671)
276@ += 1
TIMERB = 0
goto @SYN2_25490

:SYN2_25320
set_var_text_label s$audio_string = 'SYN2_JF'
set_var_int_to_constant $audio_sound_file = 8671
start_new_script @AUDIOL 246@ 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8672)
276@ += 1
TIMERB = 0
goto @SYN2_25490

:SYN2_25393
set_var_text_label s$audio_string = 'SYN2_JG'
set_var_int_to_constant $audio_sound_file = 8672
start_new_script @AUDIOL 246@ 0 1 1 1 
276@ += 1
TIMERB = 0
goto @SYN2_25490

:SYN2_25455
276@ += 1
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_25483
Car.ClearLastDamageEntity(244@)

:SYN2_25483
goto @SYN2_25490

:SYN2_25490
if and
  276@ == 7
  278@ > 10000
goto_if_false @SYN2_25923
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_25923
if 
  Car.HasBeenDamagedByChar(244@, $scplayer)
goto_if_false @SYN2_25923
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @SYN2_25918
277@ += 1
if 
  277@ > 4
goto_if_false @SYN2_25596
277@ = 0

:SYN2_25596
switch_start 277@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SYN2_25899 {caseNum1} 0 {caseLabel1} @SYN2_25659 {caseNum2} 1 {caseLabel2} @SYN2_25707 {caseNum3} 2 {caseLabel3} @SYN2_25755 {caseNum4} 3 {caseLabel4} @SYN2_25803 {caseNum5} 4 {caseLabel5} @SYN2_25851 {caseNum6} -1 {caseLabel6} @SYN2_25899 {caseNum7} -1 {caseLabel7} @SYN2_25899

:SYN2_25659
set_var_text_label s$audio_string = 'SYN2_KA'
set_var_int_to_constant $audio_sound_file = 8674
start_new_script @AUDIOL 246@ 0 1 1 0 
goto @SYN2_25899

:SYN2_25707
set_var_text_label s$audio_string = 'SYN2_KB'
set_var_int_to_constant $audio_sound_file = 8675
start_new_script @AUDIOL 246@ 0 1 1 0 
goto @SYN2_25899

:SYN2_25755
set_var_text_label s$audio_string = 'SYN2_KC'
set_var_int_to_constant $audio_sound_file = 8676
start_new_script @AUDIOL 246@ 0 1 1 0 
goto @SYN2_25899

:SYN2_25803
set_var_text_label s$audio_string = 'SYN2_KD'
set_var_int_to_constant $audio_sound_file = 8677
start_new_script @AUDIOL 246@ 0 1 1 0 
goto @SYN2_25899

:SYN2_25851
set_var_text_label s$audio_string = 'SYN2_KE'
set_var_int_to_constant $audio_sound_file = 8678
start_new_script @AUDIOL 246@ 0 1 1 0 
goto @SYN2_25899

:SYN2_25899
278@ = 0
Car.ClearLastDamageEntity(244@)
goto @SYN2_25923

:SYN2_25918
Car.ClearLastDamageEntity(244@)

:SYN2_25923
if 
  250@ == 1
goto_if_false @SYN2_26164
if 
  not Char.IsDead(248@)
goto_if_false @SYN2_26164
if 
  not Car.IsDead(255@)
goto_if_false @SYN2_26164
if 
  not Char.IsDead(259@)
goto_if_false @SYN2_26093
if 
  Char.IsInCar(248@, 255@)
goto_if_false @SYN2_26015
goto @SYN2_26086

:SYN2_26015
41@ = Char.GetScriptTaskStatus(248@, 1560)
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_26086
53@ = Sequence.Open()
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Task.KindaStayInSamePlace(-1, True)
Sequence.Close(53@)
Char.PerformSequence(248@, 53@)
Sequence.Clear(53@)

:SYN2_26086
goto @SYN2_26164

:SYN2_26093
41@ = Char.GetScriptTaskStatus(248@, 1560)
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_26164
53@ = Sequence.Open()
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Task.KindaStayInSamePlace(-1, True)
Sequence.Close(53@)
Char.PerformSequence(248@, 53@)
Sequence.Clear(53@)

:SYN2_26164
41@ = 0

:SYN2_26171
if 
  2 > 41@
goto_if_false @SYN2_26703
if 
  Car.DoesExist(255@(41@,4i))
goto_if_false @SYN2_26689
if 
  not Car.IsDead(255@(41@,4i))
goto_if_false @SYN2_26689
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_26689
$x, $y, $z = Car.GetCoordinates(244@)
if 
  not Car.Locate3D(255@(41@,4i), $x, $y, $z, 80.0, 80.0, 80.0, False)
goto_if_false @SYN2_26689
$x, $y, $z = Char.GetCoordinates($scplayer)
if 
  not Car.Locate3D(255@(41@,4i), $x, $y, $z, 40.0, 40.0, 40.0, False)
goto_if_false @SYN2_26689
if 
  not Car.IsOnScreen(255@(41@,4i))
goto_if_false @SYN2_26689
$x, $y, $z = Car.GetOffsetInWorldCoords(244@, 0.0, -15.0, 0.0)
42@ = 1

:SYN2_26421
if 
  20 > 42@
goto_if_false @SYN2_26568
47@, 48@, 49@ = Path.GetNthClosestCarNode($x, $y, $z, 42@)
if 
  not Camera.IsPointOnScreen(47@, 48@, 49@, 5.0)
goto_if_false @SYN2_26554
if 
  not World.IsPointObscuredByAMissionEntity(47@, 48@, 49@, 5.0, 5.0, 5.0)
goto_if_false @SYN2_26540
42@ = 25
goto @SYN2_26547

:SYN2_26540
42@ += 1

:SYN2_26547
goto @SYN2_26561

:SYN2_26554
42@ += 1

:SYN2_26561
goto @SYN2_26421

:SYN2_26568
if 
  42@ == 25
goto_if_false @SYN2_26689
Car.SetCoordinates(255@(41@,4i), 47@, 48@, 49@)
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_26634
$x, $y, $z = Car.GetCoordinates(244@)

:SYN2_26634
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 47@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 48@
$heading = Math.GetHeadingFromVector2D(50@, 51@)
Car.SetHeading(255@(41@,4i), $heading)

:SYN2_26689
41@ += 1
goto @SYN2_26171

:SYN2_26703
if 
  56@ == 1
goto_if_false @SYN2_26762
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @SYN2_26762
if 
  not Car.IsDead(244@)
goto_if_false @SYN2_26762
Car.SetHealth(244@, 499)

:SYN2_26762
41@ = 0
if 
  Char.IsDead(246@)
goto_if_false @SYN2_26813
if 
  Blip.DoesExist(249@)
goto_if_false @SYN2_26806
Blip.Remove(249@)

:SYN2_26806
41@ += 1

:SYN2_26813
if 
  Char.IsDead(259@)
goto_if_false @SYN2_26857
if 
  Blip.DoesExist(263@)
goto_if_false @SYN2_26850
Blip.Remove(263@)

:SYN2_26850
41@ += 1

:SYN2_26857
if 
  Char.IsDead(248@)
goto_if_false @SYN2_26901
if 
  Blip.DoesExist(264@)
goto_if_false @SYN2_26894
Blip.Remove(264@)

:SYN2_26894
41@ += 1

:SYN2_26901
if 
  41@ == 3
goto_if_false @SYN2_26926
35@ = 99

:SYN2_26926
if 
  not Char.IsDead(246@)
goto_if_false @SYN2_27036
if 
  not Char.LocateAnyMeansChar2D($scplayer, 246@, 150.0, 150.0, False)
goto_if_false @SYN2_27029
if 
  87@ > 20000
goto_if_false @SYN2_27022
gosub @SYN2_30815
Text.PrintNow('SYN2_71', 5000, 1)
37@ = 1

:SYN2_27022
goto @SYN2_27036

:SYN2_27029
87@ = 0

:SYN2_27036
if 
  35@ == 99
goto_if_false @SYN2_27110
34@ += 1
35@ = 0
TIMERA = 0
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 34400)

:SYN2_27084
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @SYN2_27110
wait 0
goto @SYN2_27084

:SYN2_27110
return 

:SYN2_27112
if 
  35@ == 0
goto_if_false @SYN2_27246
if 
  TIMERA > 3000
goto_if_false @SYN2_27246
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_27232
if 
  not Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_27200
Text.Print('SYN_M_1', 7000, 1)

:SYN2_27200
$x, $y, $z = Car.GetCoordinates(59@)
Audio.AttachMissionAudioToCar(MissionAudioSlot.Slot3, 59@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
90@ = 1

:SYN2_27232
TIMERA = 0
35@ += 1

:SYN2_27246
if 
  35@ == 1
goto_if_false @SYN2_27357
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_27357
if 
  Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_27357
if 
  TIMERA > 2000
goto_if_false @SYN2_27346
Player.SetControl($player1, False)
283@ = -1
TIMERA = 0
35@ += 1

:SYN2_27346
Text.ClearThisPrint('SYN_M_1')

:SYN2_27357
if 
  35@ == 2
goto_if_false @SYN2_27430
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_27430
if 
  Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_27430
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
90@ = 0
35@ += 1

:SYN2_27430
if 
  35@ == 3
goto_if_false @SYN2_27582
279@ = 0
283@ = -1
Text.ClearPrints
Camera.DoFade(150, Fade.Out)

:SYN2_27471
if 
  Camera.GetFadingStatus
goto_if_false @SYN2_27495
wait 0
goto @SYN2_27471

:SYN2_27495
gosub @SYN2_28920
Camera.DoFade(150, Fade.In)

:SYN2_27509
if 
  Camera.GetFadingStatus
goto_if_false @SYN2_27533
wait 0
goto @SYN2_27509

:SYN2_27533
if 
  not Car.IsDead(255@)
goto_if_false @SYN2_27554
Car.Delete(255@)

:SYN2_27554
if 
  not Car.IsDead(256@)
goto_if_false @SYN2_27575
Car.Delete(256@)

:SYN2_27575
35@ += 1

:SYN2_27582
if 
  35@ == 4
goto_if_false @SYN2_27640
if 
  TIMERA > 1000
goto_if_false @SYN2_27640
247@ = 0
TIMERA = 0
35@ += 1

:SYN2_27640
if and
  35@ > 4
  99 > 35@
goto_if_false @SYN2_28167
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_28167
if 
  54@ > 1000
goto_if_false @SYN2_28167
switch_start 247@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SYN2_28160 {caseNum1} 0 {caseLabel1} @SYN2_27765 {caseNum2} 1 {caseLabel2} @SYN2_27831 {caseNum3} 2 {caseLabel3} @SYN2_27896 {caseNum4} 3 {caseLabel4} @SYN2_27961 {caseNum5} 4 {caseLabel5} @SYN2_28026 {caseNum6} 5 {caseLabel6} @SYN2_28091 {caseNum7} 6 {caseLabel7} @SYN2_28146

:SYN2_27765
set_var_text_label s$audio_string = 'SYN2_GA'
set_var_int_to_constant $audio_sound_file = 8637
start_new_script @AUDIOL $scplayer 0 1 1 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8628)
247@ += 1
goto @SYN2_28160

:SYN2_27831
set_var_text_label s$audio_string = 'SYN2_GB'
set_var_int_to_constant $audio_sound_file = 8628
start_new_script @AUDIOL -1 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8629)
247@ += 1
goto @SYN2_28160

:SYN2_27896
set_var_text_label s$audio_string = 'SYN2_GC'
set_var_int_to_constant $audio_sound_file = 8629
start_new_script @AUDIOL -1 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8630)
247@ += 1
goto @SYN2_28160

:SYN2_27961
set_var_text_label s$audio_string = 'SYN2_GD'
set_var_int_to_constant $audio_sound_file = 8630
start_new_script @AUDIOL -1 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 8631)
247@ += 1
goto @SYN2_28160

:SYN2_28026
set_var_text_label s$audio_string = 'SYN2_GF'
set_var_int_to_constant $audio_sound_file = 8631
start_new_script @AUDIOL -1 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 8638)
247@ += 1
goto @SYN2_28160

:SYN2_28091
set_var_text_label s$audio_string = 'SYN2_GE'
set_var_int_to_constant $audio_sound_file = 8638
start_new_script @AUDIOL $scplayer 0 1 2 1 
247@ += 1
goto @SYN2_28160

:SYN2_28146
247@ += 1
goto @SYN2_28160

:SYN2_28160
54@ = 0

:SYN2_28167
if 
  35@ == 5
goto_if_false @SYN2_28216
if or
  247@ > 6
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN2_28216
35@ = 99

:SYN2_28216
if 
  35@ == 99
goto_if_false @SYN2_28397
Camera.DoFade(500, Fade.Out)

:SYN2_28241
if 
  Camera.GetFadingStatus
goto_if_false @SYN2_28265
wait 0
goto @SYN2_28241

:SYN2_28265
gosub @SYN2_30815
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_28320
$x, $y, $z = Car.GetCoordinates(59@)
World.ClearArea($x, $y, $z, 15.0, True)

:SYN2_28320
Camera.DoFade(500, Fade.In)

:SYN2_28327
if 
  Camera.GetFadingStatus
goto_if_false @SYN2_28351
wait 0
goto @SYN2_28327

:SYN2_28351
$audio_line_is_active = 0
if 
  not Player.IsWantedLevelGreater($player1, 1)
goto_if_false @SYN2_28383
Player.AlterWantedLevel($player1, 2)

:SYN2_28383
36@ = 1
34@ += 1

:SYN2_28397
return 

:SYN2_28399
if 
  90@ == 1
goto_if_false @SYN2_28436
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @SYN2_28436
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:SYN2_28436
if 
  7 > 34@
goto_if_false @SYN2_28516
if 
  Char.DoesExist(67@)
goto_if_false @SYN2_28516
if 
  Char.IsDead(67@)
goto_if_false @SYN2_28516
gosub @SYN2_30815
Text.PrintNow('SYN_F_5', 5000, 1)
37@ = 1

:SYN2_28516
if 
  Char.DoesExist(68@)
goto_if_false @SYN2_28578
if 
  Char.IsDead(68@)
goto_if_false @SYN2_28578
gosub @SYN2_30815
Text.PrintNow('SYN_F_5', 5000, 1)
37@ = 1

:SYN2_28578
if 
  Char.DoesExist(69@)
goto_if_false @SYN2_28640
if 
  Char.IsDead(69@)
goto_if_false @SYN2_28640
gosub @SYN2_30815
Text.PrintNow('SYN_F_5', 5000, 1)
37@ = 1

:SYN2_28640
if 
  Car.DoesExist(59@)
goto_if_false @SYN2_28702
if 
  Car.IsDead(59@)
goto_if_false @SYN2_28702
gosub @SYN2_30815
Text.PrintNow('SYN_F_2', 5000, 1)
37@ = 1

:SYN2_28702
if 
  34@ > 2
goto_if_false @SYN2_28814
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_28814
if 
  not Char.IsInCar($scplayer, 59@)
goto_if_false @SYN2_28793
if 
  not Blip.DoesExist(61@)
goto_if_false @SYN2_28786
61@ = Blip.AddForCar(59@)
Blip.SetAsFriendly(61@, True)

:SYN2_28786
goto @SYN2_28814

:SYN2_28793
if 
  Blip.DoesExist(61@)
goto_if_false @SYN2_28814
Blip.Remove(61@)

:SYN2_28814
return 

:SYN2_28816
if 
  not Char.IsDead(68@)
goto_if_false @SYN2_28918
Char.ClearTasks(68@)
53@ = Sequence.Open()
Task.Duck(-1, 2000)
if 
  not Char.IsDead(71@)
goto_if_false @SYN2_28882
Task.SmartFleeChar(-1, 71@, 100.0, 60000)

:SYN2_28882
Task.WanderStandard(-1)
Sequence.Close(53@)
Char.PerformSequence(68@, 53@)
Sequence.Clear(53@)
78@ = 0
86@ = 99

:SYN2_28918
return 

:SYN2_28920
280@ = 1
285@ = Char.GetCurrentWeapon($scplayer)
if 
  Char.HasGotWeapon($scplayer, WeaponType.BrassKnuckles)
goto_if_false @SYN2_29006
Char.RemoveWeapon($scplayer, WeaponType.BrassKnuckles)
284@ = 1
Streaming.RequestModel(331)

:SYN2_28972
if 
  not Streaming.HasModelLoaded(331)
goto_if_false @SYN2_28999
wait 0
goto @SYN2_28972

:SYN2_28999
goto @SYN2_29013

:SYN2_29006
284@ = 0

:SYN2_29013
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
if 
  not Streaming.HasAnimationLoaded("CAR_CHAT")
goto_if_false @SYN2_29089
Streaming.RequestAnimation("CAR_CHAT")

:SYN2_29055
if 
  not Streaming.HasAnimationLoaded("CAR_CHAT")
goto_if_false @SYN2_29089
wait 0
goto @SYN2_29055

:SYN2_29089
if 
  not Streaming.HasModelLoaded(330)
goto_if_false @SYN2_29137
Streaming.RequestModel(330)

:SYN2_29110
if 
  not Streaming.HasModelLoaded(330)
goto_if_false @SYN2_29137
wait 0
goto @SYN2_29110

:SYN2_29137
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_29244
$x, $y, $z = Car.GetOffsetInWorldCoords(59@, -0.49, 0.05, 0.183)
World.ClearArea($x, $y, $z, 2.0, True)
$x, $y, $z = Car.GetCoordinates(59@)
$heading = Car.GetHeading(59@)
Car.SetCoordinates(59@, $x, $y, $z)
Car.SetHeading(59@, $heading)

:SYN2_29244
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_29283
Car.FreezePosition(59@, True)
Car.CloseAllDoors(59@)

:SYN2_29283
$x, $y, $z = Char.GetCoordinates($scplayer)
if 
  279@ == 0
goto_if_false @SYN2_29389
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_29389
$x, $y, $z = Car.GetOffsetInWorldCoords(59@, 0.01, 0.75, 0.77)
50@, 51@, 52@ = Car.GetOffsetInWorldCoords(59@, -0.36, 0.12, 0.66)

:SYN2_29389
if 
  279@ == 1
goto_if_false @SYN2_29481
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_29481
$x, $y, $z = Car.GetOffsetInWorldCoords(59@, -0.04, 0.68, 0.69)
50@, 51@, 52@ = Car.GetOffsetInWorldCoords(59@, -0.55, -0.29, 0.64)

:SYN2_29481
if 
  279@ == 2
goto_if_false @SYN2_29573
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_29573
$x, $y, $z = Car.GetOffsetInWorldCoords(59@, 0.51, -0.9, 0.84)
50@, 51@, 52@ = Car.GetOffsetInWorldCoords(59@, -0.41, -0.14, 0.64)

:SYN2_29573
85@ = Object.Create(330, $x, $y, $z)
Char.ClearTasksImmediately($scplayer)
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_29643
Char.AttachToCar($scplayer, 59@, -0.49, 0.05, 0.183, 0, 0.0, WeaponType.Unarmed)

:SYN2_29643
if 
  279@ == 0
goto_if_false @SYN2_30017
53@ = Sequence.Open()
Task.PickUpObject(-1, 85@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)
Task.PlayAnim(-1, "CARFONE_LOOPA", "CAR_CHAT", 10000.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_LOOPA", "CAR_CHAT", 10000.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_LOOPA", "CAR_CHAT", 10000.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_LOOPA", "CAR_CHAT", 10000.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_LOOPA", "CAR_CHAT", 10000.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_LOOPA", "CAR_CHAT", 10000.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_OUT", "CAR_CHAT", 4.0, False, False, False, True, -1)
Sequence.Close(53@)

:SYN2_30017
if 
  279@ == 1
goto_if_false @SYN2_30359
53@ = Sequence.Open()
Task.PickUpObject(-1, 85@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)
Task.PlayAnim(-1, "CARFONE_LOOPA", "CAR_CHAT", 10000.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_LOOPA", "CAR_CHAT", 10000.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_LOOPA_TO_B", "CAR_CHAT", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_LOOPB", "CAR_CHAT", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_LOOPB_TO_A", "CAR_CHAT", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_LOOPA", "CAR_CHAT", 4.0, True, False, False, True, -1)
Sequence.Close(53@)

:SYN2_30359
if 
  279@ == 2
goto_if_false @SYN2_30743
53@ = Sequence.Open()
Task.PickUpObject(-1, 85@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)
Task.PlayAnim(-1, "CARFONE_LOOPA", "CAR_CHAT", 10000.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_LOOPA_TO_B", "CAR_CHAT", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_LOOPB", "CAR_CHAT", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_LOOPB_TO_A", "CAR_CHAT", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_LOOPA", "CAR_CHAT", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_LOOPA", "CAR_CHAT", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "CARFONE_OUT", "CAR_CHAT", 4.0, False, False, False, True, -1)
Sequence.Close(53@)

:SYN2_30743
Char.PerformSequence($scplayer, 53@)
Sequence.Clear(53@)
wait 0
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
Camera.PointAtPoint(50@, 51@, 52@, SwitchType.JumpCut)
Camera.SetNearClip(0.01)
TIMERA = 0
return 

:SYN2_30815
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  284@ == 1
goto_if_false @SYN2_30870
Char.GiveWeapon($scplayer, WeaponType.BrassKnuckles, 1)
284@ = 0
Streaming.MarkModelAsNoLongerNeeded(331)

:SYN2_30870
Char.SetCurrentWeapon($scplayer, 285@)
Text.ClearPrints
Player.SetControl($player1, True)
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_30951
Car.FreezePosition(59@, False)
if 
  280@ == 1
goto_if_false @SYN2_30951
Char.DetachFromCar($scplayer)
Char.ClearTasksImmediately($scplayer)
Char.WarpIntoCar($scplayer, 59@)
Object.Delete(85@)

:SYN2_30951
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Blip.Remove(263@)
Blip.Remove(264@)
280@ = 0
return 

:SYN2_30978
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:SYN2_30996
if 
  $syn2_mission_attempts == 0
goto_if_false @SYN2_31083
Blip.Remove($synd_contact_blip)
Blip.Remove($garage_contact_blip)
Blip.Remove($scrash_contact_blip)
$synd_contact_blip = Blip.AddSpriteForContactPoint($syndX, $syndY, $syndZ, $synd_blip_icon)
$flag_synd_mission_counter += 1
$syn2_mission_attempts = 1
Text.PrintNow('SYN2_60', 10000, 1)
goto @SYN2_31147

:SYN2_31083
$flag_synd_mission_counter += 1
Stat.RegisterMissionPassed('SYND_2')
Text.PrintWithNumberBig('M_PASSS', 3000, 5000, TextStyle.Middle)
Player.AddScore($player1, 3000)
Stat.AwardPlayerMissionRespect(20)
Audio.PlayMissionPassedTune(1)
Stat.SetInt(StatId.PassedSyndicate2, 1)
Stat.PlayerMadeProgress(1)

:SYN2_31147
return 

:SYN2_31149
if 
  Player.IsPlaying($player1)
goto_if_false @SYN2_31176
Player.SetGroupRecruitment($player1, False)
Game.SetScriptLimitToGangSize(0)

:SYN2_31176
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
if 
  not Car.IsDead(59@)
goto_if_false @SYN2_31219
Car.SetCanBurstTires(59@, True)

:SYN2_31219
if 
  Player.IsPlaying($player1)
goto_if_false @SYN2_31240
Char.ClearTasks($scplayer)

:SYN2_31240
Path.SwitchPedRoadsOn(-2431.115, -169.4874, 33.0, -2426.513, -117.2969, 36.0)
Path.SwitchPedRoadsOn(-1950.0, 718.0, 44.0, -1912.0, 731.0, 48.0)
Path.SwitchRoadsOn(-1950.0, 718.0, 44.0, -1912.0, 731.0, 48.0)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(575)
Streaming.MarkModelAsNoLongerNeeded(64)
Streaming.UnloadSpecialCharacter(1)
Streaming.RemoveAnimation("GANGS")
Streaming.MarkModelAsNoLongerNeeded(237)
Streaming.MarkModelAsNoLongerNeeded(249)
Streaming.MarkModelAsNoLongerNeeded(545)
Streaming.MarkModelAsNoLongerNeeded(483)
Streaming.MarkModelAsNoLongerNeeded(72)
Streaming.MarkModelAsNoLongerNeeded(73)
Streaming.MarkModelAsNoLongerNeeded(245)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.RemoveAnimation("CRACK")
Streaming.RemoveAnimation("FIGHT_D")
Streaming.RemoveAnimation("MISC")
Streaming.MarkModelAsNoLongerNeeded(409)
Streaming.MarkModelAsNoLongerNeeded(579)
Streaming.MarkModelAsNoLongerNeeded(64)
Streaming.MarkModelAsNoLongerNeeded(166)
Streaming.MarkModelAsNoLongerNeeded(68)
Streaming.MarkModelAsNoLongerNeeded(409)
Streaming.MarkModelAsNoLongerNeeded(579)
Streaming.MarkModelAsNoLongerNeeded(64)
Streaming.MarkModelAsNoLongerNeeded(166)
Streaming.MarkModelAsNoLongerNeeded(68)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.RemoveAnimation("CAR_CHAT")
Blip.Remove(60@)
Blip.Remove(61@)
Blip.Remove(62@)
Blip.Remove(63@)
Blip.Remove(64@)
Blip.Remove(249@)
DecisionMaker.Remove(232@)
DecisionMaker.Remove(231@)
Hud.ClearCounter($girl2_timer)
Hud.ClearTimer($syn2_timer)
Hud.ClearTimer($syn2_time_until_backup)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SetWantedMultiplier(1.0)
CarGenerator.DontSuppressCarModel(575)
CarGenerator.DontSuppressCarModel(545)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 60---------------
// Originally: Outrider

:SYN3
script_name 'SYN3'
gosub @SYN3_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYN3_38
gosub @SYN3_19112

:SYN3_38
gosub @SYN3_19206
terminate_this_script 

:SYN3_47
Stat.RegisterMissionGiven
Text.LoadMissionText('SYN3')
$onmission = 1
wait 0
38@ = -1832.33
39@ = -14.59
40@ = 15.39
41@ = 270.0
42@ = -1815.04
43@ = 2.59
44@ = 14.99
45@ = -2127.42
46@ = -100.65
47@ = 34.37
56@ = 9.5
103@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
57@ = 1
142@ = 0
143@ = 0
144@ = 0
145@ = 0
97@ = 0

:SYN3_272
if 
  3 > 97@
goto_if_false @SYN3_337
146@(97@,3i) = 0
149@(97@,3i) = 0
180@(97@,3i) = 0
97@ += 1
goto @SYN3_272

:SYN3_337
97@ = 0

:SYN3_344
if 
  6 > 97@
goto_if_false @SYN3_398
155@(97@,6i) = 0
183@(97@,6i) = 0
97@ += 1
goto @SYN3_344

:SYN3_398
97@ = 0

:SYN3_405
if 
  3 > 97@
goto_if_false @SYN3_448
152@(97@,3i) = 0
97@ += 1
goto @SYN3_405

:SYN3_448
97@ = 0

:SYN3_455
if 
  6 > 97@
goto_if_false @SYN3_509
164@(97@,6i) = 0
189@(97@,6i) = 0
97@ += 1
goto @SYN3_455

:SYN3_509
97@ = 0

:SYN3_516
if 
  3 > 97@
goto_if_false @SYN3_559
161@(97@,3i) = 0
97@ += 1
goto @SYN3_516

:SYN3_559
97@ = 0

:SYN3_566
if 
  3 > 97@
goto_if_false @SYN3_631
170@(97@,3i) = 0
173@(97@,3i) = 0
195@(97@,3i) = 0
97@ += 1
goto @SYN3_566

:SYN3_631
176@ = 0
177@ = 0
178@ = 0
179@ = 0
198@ = -1
97@ = 0

:SYN3_673
if 
  4 > 97@
goto_if_false @SYN3_716
199@(97@,4i) = 0
97@ += 1
goto @SYN3_673

:SYN3_716
205@ = 0
97@ = 0

:SYN3_730
if 
  4 > 97@
goto_if_false @SYN3_773
206@(97@,4i) = 0
97@ += 1
goto @SYN3_730

:SYN3_773
210@ = 0
128@ = 0
129@ = 0
131@ = 0
211@ = 0
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:SYN3_823
if 
  Camera.GetFadingStatus
goto_if_false @SYN3_847
wait 0
goto @SYN3_823

:SYN3_847
Text.ClearThisPrintBigNow(TextStyle.Middle)
if 
  211@ == 1
goto_if_false @SYN3_944
35@ = Car.Create(468, 0.0, 0.0, -100.0)
214@ = Blip.AddForCar(35@)
36@ = Car.Create(440, 0.0, 0.0, -100.0)
37@ = Char.CreateInsideCar(36@, PedType.Mission1, 173)
215@ = Blip.AddForCar(36@)

:SYN3_944
Streaming.RequestModel(421)
Streaming.RequestModel(359)
Streaming.RequestModel(358)
Streaming.RequestModel(468)
Streaming.RequestModel(330)
Streaming.RequestModel(#BODYARMOUR)

:SYN3_973
if or
  not Streaming.HasModelLoaded(421)
  not Streaming.HasModelLoaded(359)
  not Streaming.HasModelLoaded(358)
  not Streaming.HasModelLoaded(468)
  not Streaming.HasModelLoaded(330)
  not Streaming.HasModelLoaded(#BODYARMOUR)
goto_if_false @SYN3_1024
wait 0
goto @SYN3_973

:SYN3_1024
248@ = Game.GetMaxWantedLevel()
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
World.ClearArea(-2030.4, 148.83, 27.84, 100.0, False)
Streaming.LoadScene(-2030.4, 148.83, 27.84)
Char.SetCoordinates($scplayer, -2030.4, 148.83, 27.84)
Char.SetHeading($scplayer, 270.0)
Camera.SetFixedPosition(-2027.45, 150.01, 29.01, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2028.92, 149.37, 29.03, SwitchType.JumpCut)
132@ = 0
gosub @SYN3_17788
Task.UseMobilePhone($scplayer, True)
Camera.DoFade(1000, Fade.In)

:SYN3_1190
if 
  Camera.GetFadingStatus
goto_if_false @SYN3_1214
wait 0
goto @SYN3_1190

:SYN3_1214
wait 1500

:SYN3_1219
if 
  2 > 129@
goto_if_false @SYN3_1346
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @SYN3_1318
gosub @SYN3_18297
if and
  128@ == 2
  129@ == 1
  131@ <> 1
goto_if_false @SYN3_1311
Char.StartFacialTalk($scplayer, 10000)
131@ = 1

:SYN3_1311
goto @SYN3_1339

:SYN3_1318
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
131@ = 0
set_lvar_int_to_lvar_int 129@ = 130@

:SYN3_1339
goto @SYN3_1219

:SYN3_1346
Char.StopFacialTalk($scplayer)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, True)

:SYN3_1373
if 
  is_int_lvar_greater_than_int_lvar 130@ > 129@
goto_if_false @SYN3_1538
wait 0
if and
  Player.IsPlaying($player1)
  not Char.IsInWater($scplayer)
  not Char.IsInAir($scplayer)
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @SYN3_1489
gosub @SYN3_18297
if and
  128@ == 2
  129@ == 7
  131@ <> 1
goto_if_false @SYN3_1482
Char.StartFacialTalk($scplayer, 10000)
131@ = 1

:SYN3_1482
goto @SYN3_1531

:SYN3_1489
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
131@ = 0
if 
  Player.IsPlaying($player1)
goto_if_false @SYN3_1523
Char.StopFacialTalk($scplayer)

:SYN3_1523
set_lvar_int_to_lvar_int 129@ = 130@

:SYN3_1531
goto @SYN3_1373

:SYN3_1538
Char.StopFacialTalk($scplayer)
95@ = Char.GetScriptTaskStatus($scplayer, 1833)
if 
  not is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_1579
Task.UseMobilePhone($scplayer, False)

:SYN3_1579
Streaming.MarkModelAsNoLongerNeeded(330)
Game.SetEveryoneIgnorePlayer($player1, False)
wait 2500
Car.CustomPlateForNextCar(421, "_OMEGA__")
34@ = Car.Create(421, -1665.27, 412.923, 6.192)
Car.SetHeading(34@, 134.44)
Car.ChangeColor(34@, 84, 84)
212@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(212@, True)
Car.FreezePosition(34@, True)
Text.PrintNow('SYN3_18', 10000, 0)

:SYN3_1691
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SYN3_1717
goto @SYN3_19130

:SYN3_1717
if and
  134@ <> 1
  not Car.IsDead(34@)
goto_if_false @SYN3_2669
if 
  Char.LocateAnyMeansCar3D($scplayer, 34@, 10.0, 10.0, 10.0, False)
goto_if_false @SYN3_2669
Blip.Remove(212@)
134@ = 1
Player.SetControl($player1, False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:SYN3_1810
if 
  Camera.GetFadingStatus
goto_if_false @SYN3_1834
wait 0
goto @SYN3_1810

:SYN3_1834
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SYN3_1870
Char.WarpFromCarToCoord($scplayer, -1672.64, 404.17, 6.18)

:SYN3_1870
World.ClearArea(-1665.27, 412.923, 6.192, 50.0, False)
if 
  not Car.IsDead(34@)
goto_if_false @SYN3_1917
Car.SetVisible(34@, False)

:SYN3_1917
Player.MakeSafeForCutscene($player1)
Cutscene.Load('SYND_3A')

:SYN3_1933
if 
  not Cutscene.HasLoaded
goto_if_false @SYN3_1957
wait 0
goto @SYN3_1933

:SYN3_1957
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SYN3_1966
if 
  not Cutscene.HasFinished
goto_if_false @SYN3_1990
wait 0
goto @SYN3_1966

:SYN3_1990
Camera.DoFade(0, Fade.Out)

:SYN3_1996
if 
  Camera.GetFadingStatus
goto_if_false @SYN3_2020
wait 0
goto @SYN3_1996

:SYN3_2020
Cutscene.Clear
Player.SetControl($player1, False)
Streaming.LoadSpecialCharacter(1, 'TORINO')
Streaming.LoadSpecialCharacter(2, 'TBONE')

:SYN3_2055
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasSpecialCharacterLoaded(2)
goto_if_false @SYN3_2085
wait 0
goto @SYN3_2055

:SYN3_2085
if 
  not Car.IsDead(34@)
goto_if_false @SYN3_2356
Car.SetVisible(34@, True)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SYN3_2144
Char.WarpFromCarToCoord($scplayer, -1665.27, 412.923, -4.192)

:SYN3_2144
Char.WarpIntoCar($scplayer, 34@)
137@ = 1
Car.FreezePosition(34@, False)
100@ = Char.CreateAsPassenger(34@, PedType.Mission1, 290, 0)
Char.SetHealth(100@, 500)
Char.SetMaxHealth(100@, 500)
Char.SetNeverTargeted(100@, True)
Char.SetSuffersCriticalHits(100@, False)
Char.SetCantBeDraggedOut(100@, True)
Char.SetStayInCarWhenJacked(100@, True)
Char.SetGetOutUpsideDownCar(100@, False)
101@ = Char.CreateAsPassenger(34@, PedType.Mission1, 291, 1)
Char.SetHealth(101@, 500)
Char.SetMaxHealth(101@, 500)
Char.SetNeverTargeted(101@, True)
Char.SetSuffersCriticalHits(101@, False)
Char.SetCantBeDraggedOut(101@, True)
Char.SetStayInCarWhenJacked(101@, True)
Char.SetGetOutUpsideDownCar(101@, False)
102@ = DecisionMakerChar.Copy(-1)
DecisionMakerChar.ClearEventResponse(102@, 79)
Char.SetDecisionMaker(100@, 102@)
Char.SetDecisionMaker(101@, 102@)
Char.ClearAllRelationships(100@, RelationshipType.Dislike)
Char.ClearAllRelationships(100@, RelationshipType.Hate)
Char.ClearAllRelationships(101@, RelationshipType.Dislike)
Char.ClearAllRelationships(101@, RelationshipType.Hate)

:SYN3_2356
91@ = Char.GetAmmoInWeapon($scplayer, WeaponType.RocketLauncher)
if 
  91@ == 0
goto_if_false @SYN3_2394
91@ = Char.GetAmmoInWeapon($scplayer, WeaponType.RocketLauncherHs)

:SYN3_2394
92@ = 20
sub_int_lvar_from_int_lvar 92@ -= 91@
if 
  92@ > 0
goto_if_false @SYN3_2470
89@ = Pickup.CreateWithAmmo(359, PickupType.Once, 92@, -1831.0, -21.43, 15.16)
247@ = Blip.AddForPickup(89@)
goto @SYN3_2477

:SYN3_2470
135@ = 1

:SYN3_2477
93@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Sniper)
94@ = 40
sub_int_lvar_from_int_lvar 94@ -= 93@
if 
  94@ > 0
goto_if_false @SYN3_2548
90@ = Pickup.CreateWithAmmo(358, PickupType.Once, 94@, -1837.0, -21.43, 15.16)

:SYN3_2548
Streaming.MarkModelAsNoLongerNeeded(359)
Streaming.MarkModelAsNoLongerNeeded(358)
gosub @SYN3_6547
35@ = Car.Create(468, -1830.16, -17.64, 14.79)
Car.SetHeading(35@, 268.78)
wait 500
Camera.DoFade(1500, Fade.In)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
213@ = Blip.AddForCoord(42@, 43@, 44@)
Text.PrintNow('SYN3_1', 10000, 0)
if 
  135@ <> 1
goto_if_false @SYN3_2669

:SYN3_2669
if and
  134@ == 1
  136@ <> 1
  not Car.IsDead(34@)
goto_if_false @SYN3_3214
if and
  137@ == 1
  not Char.IsInCar($scplayer, 34@)
goto_if_false @SYN3_3013
Blip.Remove(213@)
212@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(212@, True)
gosub @SYN3_18528
if 
  Char.IsDead(100@)
goto_if_false @SYN3_2795
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('SYN3_27', 4000, 0)
goto @SYN3_19112

:SYN3_2795
if 
  Char.IsDead(101@)
goto_if_false @SYN3_2834
Text.PrintNow('SYN3_28', 4000, 0)
goto @SYN3_19112

:SYN3_2834
if 
  Car.IsDead(34@)
goto_if_false @SYN3_2873
Text.PrintNow('SYN3_19', 4000, 0)
goto @SYN3_19112

:SYN3_2873
if 
  Car.IsDead(36@)
goto_if_false @SYN3_2912
Text.PrintNow('SYN3_15', 4000, 0)
goto @SYN3_19112

:SYN3_2912
if 
  Char.IsDead(37@)
goto_if_false @SYN3_2951
Text.PrintNow('SYN3_16', 4000, 0)
goto @SYN3_19112

:SYN3_2951
if 
  Car.IsDead(35@)
goto_if_false @SYN3_2990
Text.PrintNow('SYN3_14', 4000, 0)
goto @SYN3_19112

:SYN3_2990
Text.PrintNow('SYN3_26', 7000, 0)
137@ = 0

:SYN3_3013
if and
  137@ == 0
  Char.IsInCar($scplayer, 34@)
goto_if_false @SYN3_3081
Blip.Remove(212@)
213@ = Blip.AddForCoord(42@, 43@, 44@)
Text.PrintNow('SYN3_1', 7000, 0)
137@ = 1

:SYN3_3081
if 
  137@ == 1
goto_if_false @SYN3_3214
if 
  Char.LocateInCar3D($scplayer, 42@, 43@, 44@, 4.0, 4.0, 2.0, True)
goto_if_false @SYN3_3214
Blip.Remove(213@)
136@ = 1
Player.SetControl($player1, False)
gosub @SYN3_16390
if 
  not Car.IsDead(35@)
goto_if_false @SYN3_3198
214@ = Blip.AddForCar(35@)
Blip.SetAsFriendly(214@, True)

:SYN3_3198
Text.PrintNow('SYN3_25', 10000, 0)

:SYN3_3214
if and
  136@ == 1
  138@ <> 1
goto_if_false @SYN3_3579
if 
  not Car.IsDead(35@)
goto_if_false @SYN3_3579
if 
  Char.IsInCar($scplayer, 35@)
goto_if_false @SYN3_3579
Blip.Remove(214@)
gosub @SYN3_6701
138@ = 1
if 
  not Car.IsDead(36@)
goto_if_false @SYN3_3331
215@ = Blip.AddForCar(36@)
Blip.SetAsFriendly(215@, True)
Blip.ChangeDisplay(215@, BlipDisplay.BlipOnly)

:SYN3_3331
216@ = Blip.AddForCoord(-2007.75, 533.24, 33.91)
Blip.SetCoordAppearance(216@, 2)
Text.PrintNow('SYN3_2', 10000, 0)
141@ = 0
TIMERB = 0
gosub @SYN3_6965
gosub @SYN3_8754
142@ = 1
Path.SwitchRoadsOff(-2005.23, 517.16, 33.0, -2002.69, 554.12, 36.0)
Path.SwitchRoadsOff(-2097.8, 319.42, 33.0, -2035.57, 321.05, 36.0)
Path.SwitchRoadsOff(-2150.18, 138.75, 33.0, -2145.71, 160.84, 36.0)
Path.SwitchRoadsOff(-2168.24, 42.13, 33.0, -2165.99, 61.7, 36.0)
Game.SwitchRandomTrains(False)
249@ = Pickup.Create(#BODYARMOUR, PickupType.Once, -2060.03, 304.18, 35.81)
140@ = 0
gosub @SYN3_14963

:SYN3_3579
if 
  139@ <> 1
goto_if_false @SYN3_6540
if 
  134@ == 1
goto_if_false @SYN3_3661
if 
  135@ <> 1
goto_if_false @SYN3_3661
if 
  Pickup.HasBeenCollected(89@)
goto_if_false @SYN3_3661
Blip.Remove(247@)
135@ = 1

:SYN3_3661
if and
  138@ == 1
  not Car.IsDead(36@)
goto_if_false @SYN3_5972
if and
  141@ <> 1
  TIMERB >= 10000
goto_if_false @SYN3_3772
if 
  Blip.DoesExist(247@)
goto_if_false @SYN3_3749
Text.PrintNow('SYN3_3', 7000, 0)
goto @SYN3_3765

:SYN3_3749
Text.PrintNow('SYN3_4', 7000, 0)

:SYN3_3765
141@ = 1

:SYN3_3772
if or
  57@ >= 1
  57@ == -1
goto_if_false @SYN3_3947
if or
  Char.LocateAnyMeans2D($scplayer, -1999.7, 527.27, 150.0, 150.0, False)
  Car.Locate2D(36@, -1999.7, 527.27, 100.0, 100.0, False)
goto_if_false @SYN3_3901
if 
  142@ == 1
goto_if_false @SYN3_3894
gosub @SYN3_9322
142@ = 0

:SYN3_3894
goto @SYN3_3933

:SYN3_3901
if 
  142@ == 0
goto_if_false @SYN3_3933
gosub @SYN3_8754
142@ = 1

:SYN3_3933
198@ = 0
gosub @SYN3_11986

:SYN3_3947
if or
  57@ >= 2
  57@ == -1
goto_if_false @SYN3_4122
if or
  Char.LocateAnyMeans2D($scplayer, -2085.74, 320.74, 150.0, 150.0, False)
  Car.Locate2D(36@, -2085.74, 320.74, 100.0, 100.0, False)
goto_if_false @SYN3_4076
if 
  143@ == 1
goto_if_false @SYN3_4069
gosub @SYN3_9464
143@ = 0

:SYN3_4069
goto @SYN3_4108

:SYN3_4076
if 
  143@ == 0
goto_if_false @SYN3_4108
gosub @SYN3_8896
143@ = 1

:SYN3_4108
198@ = 1
gosub @SYN3_11986

:SYN3_4122
if or
  57@ >= 3
  57@ == -1
goto_if_false @SYN3_4297
if or
  Char.LocateAnyMeans2D($scplayer, -2146.62, 146.06, 150.0, 150.0, False)
  Car.Locate2D(36@, -2146.62, 146.06, 100.0, 100.0, False)
goto_if_false @SYN3_4251
if 
  144@ == 1
goto_if_false @SYN3_4244
gosub @SYN3_9606
144@ = 0

:SYN3_4244
goto @SYN3_4283

:SYN3_4251
if 
  144@ == 0
goto_if_false @SYN3_4283
gosub @SYN3_9038
144@ = 1

:SYN3_4283
198@ = 2
gosub @SYN3_11986

:SYN3_4297
if or
  57@ >= 4
  57@ == -1
goto_if_false @SYN3_4472
if or
  Char.LocateAnyMeans2D($scplayer, -2166.92, 48.75, 150.0, 150.0, False)
  Car.Locate2D(36@, -2166.92, 48.75, 100.0, 100.0, False)
goto_if_false @SYN3_4426
if 
  145@ == 1
goto_if_false @SYN3_4419
gosub @SYN3_9748
145@ = 0

:SYN3_4419
goto @SYN3_4458

:SYN3_4426
if 
  145@ == 0
goto_if_false @SYN3_4458
gosub @SYN3_9180
145@ = 1

:SYN3_4458
198@ = 3
gosub @SYN3_11986

:SYN3_4472
gosub @SYN3_10412
gosub @SYN3_13834
if 
  205@ <> 1
goto_if_false @SYN3_4782
switch_start 57@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @SYN3_4775 {caseNum1} 1 {caseLabel1} @SYN3_4567 {caseNum2} 2 {caseLabel2} @SYN3_4619 {caseNum3} 3 {caseLabel3} @SYN3_4671 {caseNum4} 4 {caseLabel4} @SYN3_4723 {caseNum5} -1 {caseLabel5} @SYN3_4782 {caseNum6} -1 {caseLabel6} @SYN3_4782 {caseNum7} -1 {caseLabel7} @SYN3_4782

:SYN3_4567
if 
  Car.Locate2D(36@, -2007.75, 533.24, 10.0, 10.0, False)
goto_if_false @SYN3_4612
205@ = 1

:SYN3_4612
goto @SYN3_4782

:SYN3_4619
if 
  Car.Locate2D(36@, -2079.24, 323.74, 15.0, 15.0, False)
goto_if_false @SYN3_4664
205@ = 1

:SYN3_4664
goto @SYN3_4782

:SYN3_4671
if 
  Car.Locate2D(36@, -2149.62, 152.06, 10.0, 10.0, False)
goto_if_false @SYN3_4716
205@ = 1

:SYN3_4716
goto @SYN3_4782

:SYN3_4723
if 
  Car.Locate2D(36@, -2169.42, 54.75, 10.0, 10.0, False)
goto_if_false @SYN3_4768
205@ = 1

:SYN3_4768
goto @SYN3_4782

:SYN3_4775
goto @SYN3_4782

:SYN3_4782
if 
  205@ == 1
goto_if_false @SYN3_4810
Car.SetCruiseSpeed(36@, 0.0)

:SYN3_4810
switch_start 57@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @SYN3_5173 {caseNum1} 1 {caseLabel1} @SYN3_4873 {caseNum2} 2 {caseLabel2} @SYN3_4948 {caseNum3} 3 {caseLabel3} @SYN3_5023 {caseNum4} 4 {caseLabel4} @SYN3_5098 {caseNum5} -1 {caseLabel5} @SYN3_5180 {caseNum6} -1 {caseLabel6} @SYN3_5180 {caseNum7} -1 {caseLabel7} @SYN3_5180

:SYN3_4873
if and
  206@ <> 1
  Car.Locate2D(36@, -2007.75, 533.24, 60.0, 60.0, False)
goto_if_false @SYN3_4941
Text.PrintNow('SYN3_9', 10000, 0)
206@ = 1

:SYN3_4941
goto @SYN3_5180

:SYN3_4948
if and
  207@ <> 1
  Car.Locate2D(36@, -2079.24, 323.74, 60.0, 60.0, False)
goto_if_false @SYN3_5016
Text.PrintNow('SYN3_9', 10000, 0)
207@ = 1

:SYN3_5016
goto @SYN3_5180

:SYN3_5023
if and
  208@ <> 1
  Car.Locate2D(36@, -2149.62, 152.06, 60.0, 60.0, False)
goto_if_false @SYN3_5091
Text.PrintNow('SYN3_9', 10000, 0)
208@ = 1

:SYN3_5091
goto @SYN3_5180

:SYN3_5098
if and
  209@ <> 1
  Car.Locate2D(36@, -2169.42, 54.75, 60.0, 60.0, False)
goto_if_false @SYN3_5166
Text.PrintNow('SYN3_9', 10000, 0)
209@ = 1

:SYN3_5166
goto @SYN3_5180

:SYN3_5173
goto @SYN3_5180

:SYN3_5180
if 
  57@ == 1
goto_if_false @SYN3_5348
gosub @SYN3_11056
if or
  176@ == 1
  Car.IsInArea2D(36@, -2016.3, 434.74, -1960.98, 454.11, False)
goto_if_false @SYN3_5348
gosub @SYN3_11584
gosub @SYN3_7439
gosub @SYN3_8896
143@ = 1
gosub @SYN3_9890
57@ = 2
if 
  205@ == 1
goto_if_false @SYN3_5325
Car.SetCruiseSpeed(36@, 56@)
205@ = 0

:SYN3_5325
Text.PrintNow('SYN3_5', 10000, 0)
gosub @SYN3_14963

:SYN3_5348
if and
  57@ == 2
  not Car.IsDead(36@)
goto_if_false @SYN3_5521
gosub @SYN3_11165
if or
  177@ == 1
  Car.IsInArea2D(36@, -2133.87, 308.44, -2124.45, 330.0, False)
goto_if_false @SYN3_5521
gosub @SYN3_11665
gosub @SYN3_7941
gosub @SYN3_9038
144@ = 1
gosub @SYN3_10064
57@ = 3
if 
  205@ == 1
goto_if_false @SYN3_5498
Car.SetCruiseSpeed(36@, 56@)
205@ = 0

:SYN3_5498
Text.PrintNow('SYN3_5', 10000, 0)
gosub @SYN3_14963

:SYN3_5521
if and
  57@ == 3
  not Car.IsDead(36@)
goto_if_false @SYN3_5694
gosub @SYN3_11320
if or
  178@ == 1
  Car.IsInArea2D(36@, -2171.21, 90.96, -2151.63, 92.36, False)
goto_if_false @SYN3_5694
gosub @SYN3_11785
gosub @SYN3_8411
gosub @SYN3_9180
145@ = 1
gosub @SYN3_10238
57@ = 4
if 
  205@ == 1
goto_if_false @SYN3_5671
Car.SetCruiseSpeed(36@, 56@)
205@ = 0

:SYN3_5671
Text.PrintNow('SYN3_7', 10000, 0)
gosub @SYN3_14963

:SYN3_5694
if and
  57@ == 4
  not Car.IsDead(36@)
goto_if_false @SYN3_5839
gosub @SYN3_11475
if or
  179@ == 1
  Car.IsInArea2D(36@, -2177.54, 7.1, -2157.29, 19.76, False)
goto_if_false @SYN3_5839
gosub @SYN3_11905
57@ = -1
if 
  205@ == 1
goto_if_false @SYN3_5816
Car.SetCruiseSpeed(36@, 56@)
205@ = 0

:SYN3_5816
Text.PrintNow('SYN3_8', 10000, 0)
gosub @SYN3_14963

:SYN3_5839
if 
  140@ == 1
goto_if_false @SYN3_5923
if 
  not Car.IsDead(35@)
goto_if_false @SYN3_5911
if 
  Char.IsInCar($scplayer, 35@)
goto_if_false @SYN3_5904
Blip.Remove(214@)
140@ = 0

:SYN3_5904
goto @SYN3_5923

:SYN3_5911
Blip.Remove(214@)
140@ = 0

:SYN3_5923
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SYN3_5972
99@ = Char.StoreCarIsIn($scplayer)
if 
  210@ <> 1
goto_if_false @SYN3_5972
210@ = 1

:SYN3_5972
if 
  136@ <> 1
goto_if_false @SYN3_6125
if 
  134@ == 1
goto_if_false @SYN3_6086
if 
  Char.IsDead(100@)
goto_if_false @SYN3_6047
Text.PrintNow('SYN3_27', 4000, 0)
goto @SYN3_19112

:SYN3_6047
if 
  Char.IsDead(101@)
goto_if_false @SYN3_6086
Text.PrintNow('SYN3_28', 4000, 0)
goto @SYN3_19112

:SYN3_6086
if 
  Car.IsDead(34@)
goto_if_false @SYN3_6125
Text.PrintNow('SYN3_19', 4000, 0)
goto @SYN3_19112

:SYN3_6125
if 
  134@ == 1
goto_if_false @SYN3_6278
if 
  Car.IsDead(36@)
goto_if_false @SYN3_6182
Text.PrintNow('SYN3_15', 4000, 0)
goto @SYN3_19112

:SYN3_6182
if 
  Char.IsDead(37@)
goto_if_false @SYN3_6221
Text.PrintNow('SYN3_16', 4000, 0)
goto @SYN3_19112

:SYN3_6221
if 
  138@ <> 1
goto_if_false @SYN3_6278
if 
  Car.IsDead(35@)
goto_if_false @SYN3_6278
Text.PrintNow('SYN3_14', 4000, 0)
goto @SYN3_19112

:SYN3_6278
if and
  138@ == 1
  not Car.IsDead(36@)
  not Char.IsDead(37@)
goto_if_false @SYN3_6540
95@ = Char.GetScriptTaskStatus(37@, 1560)
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_6428
if and
  Car.Locate3D(36@, 45@, 46@, 47@, 35.0, 35.0, 5.0, False)
  Char.LocateAnyMeans2D($scplayer, 45@, 46@, 20.0, 20.0, False)
goto_if_false @SYN3_6421
139@ = 1
gosub @SYN3_15036
goto @SYN3_19130

:SYN3_6421
goto @SYN3_6540

:SYN3_6428
if and
  Car.Locate3D(36@, 45@, 46@, 47@, 20.0, 20.0, 5.0, False)
  Char.LocateAnyMeans2D($scplayer, 45@, 46@, 20.0, 20.0, False)
goto_if_false @SYN3_6540
Task.CarDriveToCoord(37@, 36@, 45@, 46@, 47@, 56@, DriveMode.Normal, 0, DrivingMode.AvoidCars)
139@ = 1
gosub @SYN3_15036
goto @SYN3_19130

:SYN3_6540
goto @SYN3_1691

:SYN3_6547
Streaming.RequestModel(440)
Streaming.RequestModel(173)

:SYN3_6557
if or
  not Streaming.HasModelLoaded(440)
  not Streaming.HasModelLoaded(173)
goto_if_false @SYN3_6589
wait 0
goto @SYN3_6557

:SYN3_6589
36@ = Car.Create(440, 38@, 39@, 40@)
37@ = Char.CreateInsideCar(36@, PedType.Mission1, 173)
Car.SetHeading(36@, 41@)
Car.SetHeavy(36@, True)
203@ = 1
Car.LockDoors(36@, CarLock.Locked)
Car.SetProofs(36@, False, True, False, True, False)
204@ = 1
Car.SetCanBurstTires(36@, False)
Car.CanBeTargetedByHsMissile(36@, False)
Streaming.MarkModelAsNoLongerNeeded(440)
Streaming.MarkModelAsNoLongerNeeded(173)
Streaming.MarkModelAsNoLongerNeeded(468)
return 

:SYN3_6701
if and
  not Car.IsDead(36@)
  not Char.IsDead(37@)
goto_if_false @SYN3_6963
98@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(-1814.77, -0.45, 15.38)
Task.DrivePointRouteAdvanced(-1, 36@, 56@, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
Path.FlushRoute
Path.ExtendRoute(-1746.57, 306.18, 6.08)
Path.ExtendRoute(-1858.69, 418.9, 16.06)
Path.ExtendRoute(-1899.05, 605.47, 34.06)
Path.ExtendRoute(-2004.31, 605.61, 34.06)
Path.ExtendRoute(-2004.29, 320.22, 34.04)
Path.ExtendRoute(-2146.68, 320.06, 34.2)
Path.ExtendRoute(-2167.13, -70.2, 34.21)
Task.DrivePointRouteAdvanced(-1, 36@, 56@, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Path.FlushRoute
Path.ExtendRoute(45@, -70.33, 34.22)
Path.ExtendRoute(45@, 46@, 47@)
Task.DrivePointRouteAdvanced(-1, 36@, 56@, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Path.FlushRoute
Sequence.Close(98@)
Char.PerformSequence(37@, 98@)
Sequence.Clear(98@)

:SYN3_6963
return 

:SYN3_6965
Streaming.RequestModel(492)
Streaming.RequestModel(123)
Streaming.RequestModel(122)
Streaming.RequestModel(353)

:SYN3_6983
if or
  not Streaming.HasModelLoaded(492)
  not Streaming.HasModelLoaded(123)
  not Streaming.HasModelLoaded(122)
  not Streaming.HasModelLoaded(353)
goto_if_false @SYN3_7023
wait 0
goto @SYN3_6983

:SYN3_7023
Blip.Remove(216@)
61@ = Char.Create(PedType.Mission2, 123, -2000.75, 537.24, 33.91)
62@ = Char.Create(PedType.Mission2, 122, -2007.75, 543.24, 33.91)
63@ = Char.Create(PedType.Mission2, 123, -2012.75, 537.24, 33.91)
88@ = DecisionMakerChar.Copy(-1)
DecisionMakerChar.ClearEventResponse(88@, 31)
97@ = 0

:SYN3_7121
if 
  3 > 97@
goto_if_false @SYN3_7230
Char.SetDecisionMaker(61@(97@,3i), 88@)
Char.SetStayInSamePlace(61@(97@,3i), True)
Char.GiveWeapon(61@(97@,3i), WeaponType.Mp5, 99999)
220@(97@,3i) = Blip.AddForChar(61@(97@,3i))
Char.SetOnlyDamagedByPlayer(61@(97@,3i), True)
149@(97@,3i) = 1
97@ += 1
goto @SYN3_7121

:SYN3_7230
58@ = Car.Create(492, -2000.75, 527.24, 33.91)
59@ = Car.Create(492, -2007.75, 533.24, 33.91)
60@ = Car.Create(492, -2012.75, 527.24, 33.91)
Car.SetHeading(58@, 70.0)
Car.SetHeading(59@, 110.0)
Car.SetHeading(60@, 250.0)
97@ = 0

:SYN3_7336
if 
  3 > 97@
goto_if_false @SYN3_7437
Car.SetIdle(58@(97@,3i))
Car.SetHeavy(58@(97@,3i), True)
Car.LockDoors(58@(97@,3i), CarLock.Locked)
217@(97@,3i) = Blip.AddForCar(58@(97@,3i))
Car.SetOnlyDamagedByPlayer(58@(97@,3i), True)
146@(97@,3i) = 1
97@ += 1
goto @SYN3_7336

:SYN3_7437
return 

:SYN3_7439
Streaming.RequestModel(355)

:SYN3_7444
if 
  not Streaming.HasModelLoaded(355)
goto_if_false @SYN3_7471
wait 0
goto @SYN3_7444

:SYN3_7471
64@ = Car.Create(492, -2085.74, 314.74, 33.97)
65@ = Car.Create(492, -2079.24, 323.74, 33.97)
66@ = Car.Create(492, -2085.74, 326.74, 33.97)
Car.SetHeading(64@, 340.0)
Car.SetHeading(65@, 20.0)
Car.SetHeading(66@, 160.0)
97@ = 0

:SYN3_7577
if 
  3 > 97@
goto_if_false @SYN3_7651
Car.SetIdle(64@(97@,3i))
Car.SetHeavy(64@(97@,3i), True)
Car.LockDoors(64@(97@,3i), CarLock.Locked)
Car.SetOnlyDamagedByPlayer(64@(97@,3i), True)
97@ += 1
goto @SYN3_7577

:SYN3_7651
67@ = Char.Create(PedType.Mission2, 123, -2075.74, 314.74, 33.97)
68@ = Char.Create(PedType.Mission2, 122, -2069.24, 323.74, 33.97)
69@ = Char.Create(PedType.Mission2, 123, -2075.74, 326.74, 33.97)
70@ = Char.Create(PedType.Mission2, 122, -2076.97, 309.56, 40.99)
71@ = Char.Create(PedType.Mission2, 123, -2073.97, 309.56, 40.99)
72@ = Char.Create(PedType.Mission2, 122, -2063.46, 309.56, 40.99)
97@ = 0

:SYN3_7802
if 
  6 > 97@
goto_if_false @SYN3_7939
Char.SetDecisionMaker(67@(97@,6i), 88@)
Char.SetStayInSamePlace(67@(97@,6i), True)
if 
  97@ >= 3
goto_if_false @SYN3_7884
Char.GiveWeapon(67@(97@,6i), WeaponType.Ak47, 99999)
goto @SYN3_7914

:SYN3_7884
Char.GiveWeapon(67@(97@,6i), WeaponType.Mp5, 99999)
Char.SetHeading(67@(97@,6i), 270.0)

:SYN3_7914
Char.SetOnlyDamagedByPlayer(67@(97@,6i), True)
97@ += 1
goto @SYN3_7802

:SYN3_7939
return 

:SYN3_7941
73@ = Car.Create(492, -2141.12, 146.06, 34.07)
74@ = Car.Create(492, -2149.62, 152.06, 34.07)
75@ = Car.Create(492, -2153.12, 146.06, 34.07)
Car.SetHeading(73@, 290.0)
Car.SetHeading(74@, 70.0)
Car.SetHeading(75@, 110.0)
97@ = 0

:SYN3_8047
if 
  3 > 97@
goto_if_false @SYN3_8121
Car.SetIdle(73@(97@,3i))
Car.SetHeavy(73@(97@,3i), True)
Car.LockDoors(73@(97@,3i), CarLock.Locked)
Car.SetOnlyDamagedByPlayer(73@(97@,3i), True)
97@ += 1
goto @SYN3_8047

:SYN3_8121
76@ = Char.Create(PedType.Mission2, 123, -2141.12, 156.06, 34.07)
77@ = Char.Create(PedType.Mission2, 122, -2149.62, 162.06, 34.07)
78@ = Char.Create(PedType.Mission2, 123, -2153.12, 156.06, 34.07)
79@ = Char.Create(PedType.Mission2, 123, -2135.68, 164.2, 41.29)
80@ = Char.Create(PedType.Mission2, 122, -2135.69, 160.93, 41.29)
81@ = Char.Create(PedType.Mission2, 123, -2135.24, 153.77, 40.72)
97@ = 0

:SYN3_8272
if 
  6 > 97@
goto_if_false @SYN3_8409
Char.SetDecisionMaker(76@(97@,6i), 88@)
Char.SetStayInSamePlace(76@(97@,6i), True)
if 
  97@ >= 3
goto_if_false @SYN3_8368
Char.GiveWeapon(76@(97@,6i), WeaponType.Ak47, 99999)
Char.SetHeading(76@(97@,6i), 90.0)
goto @SYN3_8384

:SYN3_8368
Char.GiveWeapon(76@(97@,6i), WeaponType.Mp5, 99999)

:SYN3_8384
Char.SetOnlyDamagedByPlayer(76@(97@,6i), True)
97@ += 1
goto @SYN3_8272

:SYN3_8409
return 

:SYN3_8411
82@ = Car.Create(492, -2161.42, 48.75, 35.04)
83@ = Car.Create(492, -2169.42, 54.75, 35.04)
84@ = Car.Create(492, -2173.42, 48.75, 35.04)
Car.SetHeading(82@, 70.0)
Car.SetHeading(83@, 110.0)
Car.SetHeading(84@, 250.0)
97@ = 0

:SYN3_8517
if 
  3 > 97@
goto_if_false @SYN3_8591
Car.SetIdle(82@(97@,3i))
Car.SetHeavy(82@(97@,3i), True)
Car.LockDoors(82@(97@,3i), CarLock.Locked)
Car.SetOnlyDamagedByPlayer(82@(97@,3i), True)
97@ += 1
goto @SYN3_8517

:SYN3_8591
85@ = Char.Create(PedType.Mission2, 123, -2161.42, 58.75, 35.04)
86@ = Char.Create(PedType.Mission2, 122, -2169.42, 64.75, 35.04)
87@ = Char.Create(PedType.Mission2, 123, -2173.42, 58.75, 35.04)
97@ = 0

:SYN3_8670
if 
  3 > 97@
goto_if_false @SYN3_8752
Char.SetDecisionMaker(85@(97@,3i), 88@)
Char.SetStayInSamePlace(85@(97@,3i), True)
Char.GiveWeapon(85@(97@,3i), WeaponType.Mp5, 99999)
Char.SetOnlyDamagedByPlayer(85@(97@,3i), True)
97@ += 1
goto @SYN3_8670

:SYN3_8752
return 

:SYN3_8754
97@ = 0

:SYN3_8761
if 
  3 > 97@
goto_if_false @SYN3_8824
if 
  not Car.IsDead(58@(97@,3i))
goto_if_false @SYN3_8810
Car.FreezePositionAndDontLoadCollision(58@(97@,3i), True)

:SYN3_8810
97@ += 1
goto @SYN3_8761

:SYN3_8824
97@ = 0

:SYN3_8831
if 
  3 > 97@
goto_if_false @SYN3_8894
if 
  not Char.IsDead(61@(97@,3i))
goto_if_false @SYN3_8880
Char.FreezePositionAndDontLoadCollision(61@(97@,3i), True)

:SYN3_8880
97@ += 1
goto @SYN3_8831

:SYN3_8894
return 

:SYN3_8896
97@ = 0

:SYN3_8903
if 
  3 > 97@
goto_if_false @SYN3_8966
if 
  not Car.IsDead(64@(97@,3i))
goto_if_false @SYN3_8952
Car.FreezePositionAndDontLoadCollision(64@(97@,3i), True)

:SYN3_8952
97@ += 1
goto @SYN3_8903

:SYN3_8966
97@ = 0

:SYN3_8973
if 
  6 > 97@
goto_if_false @SYN3_9036
if 
  not Char.IsDead(67@(97@,6i))
goto_if_false @SYN3_9022
Char.FreezePositionAndDontLoadCollision(67@(97@,6i), True)

:SYN3_9022
97@ += 1
goto @SYN3_8973

:SYN3_9036
return 

:SYN3_9038
97@ = 0

:SYN3_9045
if 
  3 > 97@
goto_if_false @SYN3_9108
if 
  not Car.IsDead(73@(97@,3i))
goto_if_false @SYN3_9094
Car.FreezePositionAndDontLoadCollision(73@(97@,3i), True)

:SYN3_9094
97@ += 1
goto @SYN3_9045

:SYN3_9108
97@ = 0

:SYN3_9115
if 
  6 > 97@
goto_if_false @SYN3_9178
if 
  not Char.IsDead(76@(97@,6i))
goto_if_false @SYN3_9164
Char.FreezePositionAndDontLoadCollision(76@(97@,6i), True)

:SYN3_9164
97@ += 1
goto @SYN3_9115

:SYN3_9178
return 

:SYN3_9180
97@ = 0

:SYN3_9187
if 
  3 > 97@
goto_if_false @SYN3_9250
if 
  not Car.IsDead(82@(97@,3i))
goto_if_false @SYN3_9236
Car.FreezePositionAndDontLoadCollision(82@(97@,3i), True)

:SYN3_9236
97@ += 1
goto @SYN3_9187

:SYN3_9250
97@ = 0

:SYN3_9257
if 
  3 > 97@
goto_if_false @SYN3_9320
if 
  not Char.IsDead(85@(97@,3i))
goto_if_false @SYN3_9306
Char.FreezePositionAndDontLoadCollision(85@(97@,3i), True)

:SYN3_9306
97@ += 1
goto @SYN3_9257

:SYN3_9320
return 

:SYN3_9322
97@ = 0

:SYN3_9329
if 
  3 > 97@
goto_if_false @SYN3_9392
if 
  not Car.IsDead(58@(97@,3i))
goto_if_false @SYN3_9378
Car.FreezePositionAndDontLoadCollision(58@(97@,3i), False)

:SYN3_9378
97@ += 1
goto @SYN3_9329

:SYN3_9392
97@ = 0

:SYN3_9399
if 
  3 > 97@
goto_if_false @SYN3_9462
if 
  not Char.IsDead(61@(97@,3i))
goto_if_false @SYN3_9448
Char.FreezePositionAndDontLoadCollision(61@(97@,3i), False)

:SYN3_9448
97@ += 1
goto @SYN3_9399

:SYN3_9462
return 

:SYN3_9464
97@ = 0

:SYN3_9471
if 
  3 > 97@
goto_if_false @SYN3_9534
if 
  not Car.IsDead(64@(97@,3i))
goto_if_false @SYN3_9520
Car.FreezePositionAndDontLoadCollision(64@(97@,3i), False)

:SYN3_9520
97@ += 1
goto @SYN3_9471

:SYN3_9534
97@ = 0

:SYN3_9541
if 
  6 > 97@
goto_if_false @SYN3_9604
if 
  not Char.IsDead(67@(97@,6i))
goto_if_false @SYN3_9590
Char.FreezePositionAndDontLoadCollision(67@(97@,6i), False)

:SYN3_9590
97@ += 1
goto @SYN3_9541

:SYN3_9604
return 

:SYN3_9606
97@ = 0

:SYN3_9613
if 
  3 > 97@
goto_if_false @SYN3_9676
if 
  not Car.IsDead(73@(97@,3i))
goto_if_false @SYN3_9662
Car.FreezePositionAndDontLoadCollision(73@(97@,3i), False)

:SYN3_9662
97@ += 1
goto @SYN3_9613

:SYN3_9676
97@ = 0

:SYN3_9683
if 
  6 > 97@
goto_if_false @SYN3_9746
if 
  not Char.IsDead(76@(97@,6i))
goto_if_false @SYN3_9732
Char.FreezePositionAndDontLoadCollision(76@(97@,6i), False)

:SYN3_9732
97@ += 1
goto @SYN3_9683

:SYN3_9746
return 

:SYN3_9748
97@ = 0

:SYN3_9755
if 
  3 > 97@
goto_if_false @SYN3_9818
if 
  not Car.IsDead(82@(97@,3i))
goto_if_false @SYN3_9804
Car.FreezePositionAndDontLoadCollision(82@(97@,3i), False)

:SYN3_9804
97@ += 1
goto @SYN3_9755

:SYN3_9818
97@ = 0

:SYN3_9825
if 
  3 > 97@
goto_if_false @SYN3_9888
if 
  not Char.IsDead(85@(97@,3i))
goto_if_false @SYN3_9874
Char.FreezePositionAndDontLoadCollision(85@(97@,3i), False)

:SYN3_9874
97@ += 1
goto @SYN3_9825

:SYN3_9888
return 

:SYN3_9890
97@ = 0

:SYN3_9897
if 
  3 > 97@
goto_if_false @SYN3_9976
if 
  not Car.IsDead(64@(97@,3i))
goto_if_false @SYN3_9962
223@(97@,3i) = Blip.AddForCar(64@(97@,3i))
152@(97@,3i) = 1

:SYN3_9962
97@ += 1
goto @SYN3_9897

:SYN3_9976
97@ = 0

:SYN3_9983
if 
  6 > 97@
goto_if_false @SYN3_10062
if 
  not Char.IsDead(67@(97@,6i))
goto_if_false @SYN3_10048
226@(97@,6i) = Blip.AddForChar(67@(97@,6i))
155@(97@,6i) = 1

:SYN3_10048
97@ += 1
goto @SYN3_9983

:SYN3_10062
return 

:SYN3_10064
97@ = 0

:SYN3_10071
if 
  3 > 97@
goto_if_false @SYN3_10150
if 
  not Car.IsDead(73@(97@,3i))
goto_if_false @SYN3_10136
232@(97@,3i) = Blip.AddForCar(73@(97@,3i))
161@(97@,3i) = 1

:SYN3_10136
97@ += 1
goto @SYN3_10071

:SYN3_10150
97@ = 0

:SYN3_10157
if 
  6 > 97@
goto_if_false @SYN3_10236
if 
  not Char.IsDead(76@(97@,6i))
goto_if_false @SYN3_10222
235@(97@,6i) = Blip.AddForChar(76@(97@,6i))
164@(97@,6i) = 1

:SYN3_10222
97@ += 1
goto @SYN3_10157

:SYN3_10236
return 

:SYN3_10238
97@ = 0

:SYN3_10245
if 
  3 > 97@
goto_if_false @SYN3_10324
if 
  not Car.IsDead(82@(97@,3i))
goto_if_false @SYN3_10310
241@(97@,3i) = Blip.AddForCar(82@(97@,3i))
170@(97@,3i) = 1

:SYN3_10310
97@ += 1
goto @SYN3_10245

:SYN3_10324
97@ = 0

:SYN3_10331
if 
  3 > 97@
goto_if_false @SYN3_10410
if 
  not Char.IsDead(85@(97@,3i))
goto_if_false @SYN3_10396
244@(97@,3i) = Blip.AddForChar(85@(97@,3i))
173@(97@,3i) = 1

:SYN3_10396
97@ += 1
goto @SYN3_10331

:SYN3_10410
return 

:SYN3_10412
97@ = 0

:SYN3_10419
if 
  3 > 97@
goto_if_false @SYN3_10553
if and
  149@(97@,3i) == 1
  Char.IsDead(61@(97@,3i))
goto_if_false @SYN3_10488
Blip.Remove(220@(97@,3i))
149@(97@,3i) = 0

:SYN3_10488
if and
  146@(97@,3i) == 1
  Car.IsDead(58@(97@,3i))
goto_if_false @SYN3_10539
Blip.Remove(217@(97@,3i))
146@(97@,3i) = 0

:SYN3_10539
97@ += 1
goto @SYN3_10419

:SYN3_10553
97@ = 0

:SYN3_10560
if 
  6 > 97@
goto_if_false @SYN3_10643
if and
  155@(97@,6i) == 1
  Char.IsDead(67@(97@,6i))
goto_if_false @SYN3_10629
Blip.Remove(226@(97@,6i))
155@(97@,6i) = 0

:SYN3_10629
97@ += 1
goto @SYN3_10560

:SYN3_10643
97@ = 0

:SYN3_10650
if 
  3 > 97@
goto_if_false @SYN3_10733
if and
  152@(97@,3i) == 1
  Car.IsDead(64@(97@,3i))
goto_if_false @SYN3_10719
Blip.Remove(223@(97@,3i))
152@(97@,3i) = 0

:SYN3_10719
97@ += 1
goto @SYN3_10650

:SYN3_10733
97@ = 0

:SYN3_10740
if 
  6 > 97@
goto_if_false @SYN3_10823
if and
  164@(97@,6i) == 1
  Char.IsDead(76@(97@,6i))
goto_if_false @SYN3_10809
Blip.Remove(235@(97@,6i))
164@(97@,6i) = 0

:SYN3_10809
97@ += 1
goto @SYN3_10740

:SYN3_10823
97@ = 0

:SYN3_10830
if 
  3 > 97@
goto_if_false @SYN3_10913
if and
  161@(97@,3i) == 1
  Car.IsDead(73@(97@,3i))
goto_if_false @SYN3_10899
Blip.Remove(232@(97@,3i))
161@(97@,3i) = 0

:SYN3_10899
97@ += 1
goto @SYN3_10830

:SYN3_10913
97@ = 0

:SYN3_10920
if 
  3 > 97@
goto_if_false @SYN3_11054
if and
  173@(97@,3i) == 1
  Char.IsDead(85@(97@,3i))
goto_if_false @SYN3_10989
Blip.Remove(244@(97@,3i))
173@(97@,3i) = 0

:SYN3_10989
if and
  170@(97@,3i) == 1
  Car.IsDead(82@(97@,3i))
goto_if_false @SYN3_11040
Blip.Remove(241@(97@,3i))
170@(97@,3i) = 0

:SYN3_11040
97@ += 1
goto @SYN3_10920

:SYN3_11054
return 

:SYN3_11056
176@ = 1
97@ = 0

:SYN3_11070
if and
  3 > 97@
  176@ == 1
goto_if_false @SYN3_11163
if 
  not Char.IsDead(61@(97@,3i))
goto_if_false @SYN3_11122
176@ = 0

:SYN3_11122
if 
  not Car.IsDead(58@(97@,3i))
goto_if_false @SYN3_11149
176@ = 0

:SYN3_11149
97@ += 1
goto @SYN3_11070

:SYN3_11163
return 

:SYN3_11165
177@ = 1
97@ = 0

:SYN3_11179
if and
  6 > 97@
  177@ == 1
goto_if_false @SYN3_11245
if 
  not Char.IsDead(67@(97@,6i))
goto_if_false @SYN3_11231
177@ = 0

:SYN3_11231
97@ += 1
goto @SYN3_11179

:SYN3_11245
97@ = 0

:SYN3_11252
if and
  3 > 97@
  177@ == 1
goto_if_false @SYN3_11318
if 
  not Car.IsDead(64@(97@,3i))
goto_if_false @SYN3_11304
177@ = 0

:SYN3_11304
97@ += 1
goto @SYN3_11252

:SYN3_11318
return 

:SYN3_11320
178@ = 1
97@ = 0

:SYN3_11334
if and
  6 > 97@
  178@ == 1
goto_if_false @SYN3_11400
if 
  not Char.IsDead(76@(97@,6i))
goto_if_false @SYN3_11386
178@ = 0

:SYN3_11386
97@ += 1
goto @SYN3_11334

:SYN3_11400
97@ = 0

:SYN3_11407
if and
  3 > 97@
  178@ == 1
goto_if_false @SYN3_11473
if 
  not Car.IsDead(73@(97@,3i))
goto_if_false @SYN3_11459
178@ = 0

:SYN3_11459
97@ += 1
goto @SYN3_11407

:SYN3_11473
return 

:SYN3_11475
179@ = 1
97@ = 0

:SYN3_11489
if and
  3 > 97@
  179@ == 1
goto_if_false @SYN3_11582
if 
  not Char.IsDead(85@(97@,3i))
goto_if_false @SYN3_11541
179@ = 0

:SYN3_11541
if 
  not Car.IsDead(82@(97@,3i))
goto_if_false @SYN3_11568
179@ = 0

:SYN3_11568
97@ += 1
goto @SYN3_11489

:SYN3_11582
return 

:SYN3_11584
97@ = 0

:SYN3_11591
if 
  3 > 97@
goto_if_false @SYN3_11663
Blip.Remove(220@(97@,3i))
Blip.Remove(217@(97@,3i))
149@(97@,3i) = 0
146@(97@,3i) = 0
97@ += 1
goto @SYN3_11591

:SYN3_11663
return 

:SYN3_11665
97@ = 0

:SYN3_11672
if 
  6 > 97@
goto_if_false @SYN3_11724
Blip.Remove(226@(97@,6i))
155@(97@,6i) = 0
97@ += 1
goto @SYN3_11672

:SYN3_11724
97@ = 0

:SYN3_11731
if 
  3 > 97@
goto_if_false @SYN3_11783
Blip.Remove(223@(97@,3i))
152@(97@,3i) = 0
97@ += 1
goto @SYN3_11731

:SYN3_11783
return 

:SYN3_11785
97@ = 0

:SYN3_11792
if 
  6 > 97@
goto_if_false @SYN3_11844
Blip.Remove(235@(97@,6i))
164@(97@,6i) = 0
97@ += 1
goto @SYN3_11792

:SYN3_11844
97@ = 0

:SYN3_11851
if 
  3 > 97@
goto_if_false @SYN3_11903
Blip.Remove(232@(97@,3i))
161@(97@,3i) = 0
97@ += 1
goto @SYN3_11851

:SYN3_11903
return 

:SYN3_11905
97@ = 0

:SYN3_11912
if 
  3 > 97@
goto_if_false @SYN3_11984
Blip.Remove(244@(97@,3i))
Blip.Remove(241@(97@,3i))
173@(97@,3i) = 0
170@(97@,3i) = 0
97@ += 1
goto @SYN3_11912

:SYN3_11984
return 

:SYN3_11986
if 
  not Car.IsDead(36@)
goto_if_false @SYN3_13494
switch_start 198@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @SYN3_12093 {caseNum1} 0 {caseLabel1} @SYN3_12065 {caseNum2} 1 {caseLabel2} @SYN3_12079 {caseNum3} 2 {caseLabel3} @SYN3_12079 {caseNum4} 3 {caseLabel4} @SYN3_12065 {caseNum5} -1 {caseLabel5} @SYN3_12107 {caseNum6} -1 {caseLabel6} @SYN3_12107 {caseNum7} -1 {caseLabel7} @SYN3_12107

:SYN3_12065
250@ = 3
goto @SYN3_12107

:SYN3_12079
250@ = 6
goto @SYN3_12107

:SYN3_12093
198@ = -1
goto @SYN3_12107

:SYN3_12107
if 
  198@ == -1
goto_if_false @SYN3_12127
return 

:SYN3_12127
97@ = 0

:SYN3_12134
if 
  is_int_lvar_greater_than_int_lvar 250@ > 97@
goto_if_false @SYN3_12529
switch_start 198@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @SYN3_12508 {caseNum1} 0 {caseLabel1} @SYN3_12216 {caseNum2} 1 {caseLabel2} @SYN3_12289 {caseNum3} 2 {caseLabel3} @SYN3_12362 {caseNum4} 3 {caseLabel4} @SYN3_12435 {caseNum5} -1 {caseLabel5} @SYN3_12515 {caseNum6} -1 {caseLabel6} @SYN3_12515 {caseNum7} -1 {caseLabel7} @SYN3_12515

:SYN3_12216
set_lvar_int_to_lvar_int 251@(97@,6i) = 61@(97@,3i)
set_lvar_int_to_lvar_int 260@(97@,6i) = 180@(97@,3i)
if 
  3 > 97@
goto_if_false @SYN3_12282
set_lvar_int_to_lvar_int 257@(97@,3i) = 58@(97@,3i)

:SYN3_12282
goto @SYN3_12515

:SYN3_12289
set_lvar_int_to_lvar_int 251@(97@,6i) = 67@(97@,6i)
set_lvar_int_to_lvar_int 260@(97@,6i) = 183@(97@,6i)
if 
  3 > 97@
goto_if_false @SYN3_12355
set_lvar_int_to_lvar_int 257@(97@,3i) = 64@(97@,3i)

:SYN3_12355
goto @SYN3_12515

:SYN3_12362
set_lvar_int_to_lvar_int 251@(97@,6i) = 76@(97@,6i)
set_lvar_int_to_lvar_int 260@(97@,6i) = 189@(97@,6i)
if 
  3 > 97@
goto_if_false @SYN3_12428
set_lvar_int_to_lvar_int 257@(97@,3i) = 73@(97@,3i)

:SYN3_12428
goto @SYN3_12515

:SYN3_12435
set_lvar_int_to_lvar_int 251@(97@,6i) = 85@(97@,3i)
set_lvar_int_to_lvar_int 260@(97@,6i) = 195@(97@,3i)
if 
  3 > 97@
goto_if_false @SYN3_12501
set_lvar_int_to_lvar_int 257@(97@,3i) = 82@(97@,3i)

:SYN3_12501
goto @SYN3_12515

:SYN3_12508
goto @SYN3_12515

:SYN3_12515
97@ += 1
goto @SYN3_12134

:SYN3_12529
if 
  199@(198@,4i) <> 1
goto_if_false @SYN3_12558
gosub @SYN3_13496

:SYN3_12558
38@, 39@, 40@ = Car.GetCoordinates(36@)
48@, 49@, 50@ = Char.GetCoordinates($scplayer)
97@ = 0

:SYN3_12593
if 
  is_int_lvar_greater_than_int_lvar 250@ > 97@
goto_if_false @SYN3_13292
if 
  not Char.IsDead(251@(97@,6i))
goto_if_false @SYN3_13278
51@, 52@, 53@ = Char.GetCoordinates(251@(97@,6i))
54@ = Math.GetDistanceBetweenCoords2D(38@, 39@, 51@, 52@)
if 
  35.0 > 54@
goto_if_false @SYN3_12784
if 
  260@(97@,6i) <> 3
goto_if_false @SYN3_12777
Char.SetAccuracy(251@(97@,6i), 85)
95@ = Char.GetScriptTaskStatus(251@(97@,6i), 1650)
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_12766
Task.DestroyCar(251@(97@,6i), 36@)

:SYN3_12766
260@(97@,6i) = 3

:SYN3_12777
goto @SYN3_13278

:SYN3_12784
55@ = Math.GetDistanceBetweenCoords2D(48@, 49@, 51@, 52@)
if and
  35.0 > 55@
  199@(198@,4i) == 1
goto_if_false @SYN3_12929
if 
  260@(97@,6i) <> 2
goto_if_false @SYN3_12922
Char.SetAccuracy(251@(97@,6i), 60)
95@ = Char.GetScriptTaskStatus(251@(97@,6i), 1506)
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_12911
Task.KillCharOnFoot(251@(97@,6i), $scplayer)

:SYN3_12911
260@(97@,6i) = 2

:SYN3_12922
goto @SYN3_13278

:SYN3_12929
if 
  199@(198@,4i) == 1
goto_if_false @SYN3_13078
if 
  260@(97@,6i) <> 1
goto_if_false @SYN3_12995
Char.SetAccuracy(251@(97@,6i), 60)
260@(97@,6i) = 1

:SYN3_12995
if 
  260@(97@,6i) == 1
goto_if_false @SYN3_13071
95@ = Char.GetScriptTaskStatus(251@(97@,6i), 1640)
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_13071
Task.ShootAtCoord(251@(97@,6i), 48@, 49@, 50@, 10000)

:SYN3_13071
goto @SYN3_13278

:SYN3_13078
if 
  260@(97@,6i) <> 0
goto_if_false @SYN3_13122
Char.SetAccuracy(251@(97@,6i), 60)
260@(97@,6i) = 0

:SYN3_13122
if 
  260@(97@,6i) == 0
goto_if_false @SYN3_13278
if 
  35.0 > 55@
goto_if_false @SYN3_13222
95@ = Char.GetScriptTaskStatus(251@(97@,6i), 1589)
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_13215
Task.AimGunAtChar(251@(97@,6i), $scplayer, 9999999)

:SYN3_13215
goto @SYN3_13278

:SYN3_13222
95@ = Char.GetScriptTaskStatus(251@(97@,6i), 1639)
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_13278
Task.AimGunAtCoord(251@(97@,6i), 48@, 49@, 50@, 9999999)

:SYN3_13278
97@ += 1
goto @SYN3_12593

:SYN3_13292
97@ = 0

:SYN3_13299
if 
  is_int_lvar_greater_than_int_lvar 250@ > 97@
goto_if_false @SYN3_13494
switch_start 198@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @SYN3_13473 {caseNum1} 0 {caseLabel1} @SYN3_13381 {caseNum2} 1 {caseLabel2} @SYN3_13404 {caseNum3} 2 {caseLabel3} @SYN3_13427 {caseNum4} 3 {caseLabel4} @SYN3_13450 {caseNum5} -1 {caseLabel5} @SYN3_13480 {caseNum6} -1 {caseLabel6} @SYN3_13480 {caseNum7} -1 {caseLabel7} @SYN3_13480

:SYN3_13381
set_lvar_int_to_lvar_int 180@(97@,3i) = 260@(97@,6i)
goto @SYN3_13480

:SYN3_13404
set_lvar_int_to_lvar_int 183@(97@,6i) = 260@(97@,6i)
goto @SYN3_13480

:SYN3_13427
set_lvar_int_to_lvar_int 189@(97@,6i) = 260@(97@,6i)
goto @SYN3_13480

:SYN3_13450
set_lvar_int_to_lvar_int 195@(97@,3i) = 260@(97@,6i)
goto @SYN3_13480

:SYN3_13473
goto @SYN3_13480

:SYN3_13480
97@ += 1
goto @SYN3_13299

:SYN3_13494
return 

:SYN3_13496
97@ = 0

:SYN3_13503
if and
  is_int_lvar_greater_than_int_lvar 250@ > 97@
  199@(198@,4i) <> 1
goto_if_false @SYN3_13832
if 
  not Char.IsDead(251@(97@,6i))
goto_if_false @SYN3_13747
96@ = Char.GetHighestPriorityEvent(251@(97@,6i))
$player_x, $player_y, $player_z = Char.GetCoordinates(251@(97@,6i))
set_lvar_float_to_var_float 266@ = $player_x
266@ -= 10.0
set_lvar_float_to_var_float 267@ = $player_y
267@ -= 10.0
set_lvar_float_to_var_float 268@ = $player_z
268@ -= 10.0
set_lvar_float_to_var_float 269@ = $player_x
269@ += 10.0
set_lvar_float_to_var_float 270@ = $player_y
270@ += 10.0
set_lvar_float_to_var_float 271@ = $player_z
271@ += 10.0
if or
  is_int_lvar_equal_to_constant 96@ == 49
  World.IsProjectileInArea(266@, 267@, 268@, 269@, 270@, 271@)
goto_if_false @SYN3_13740
199@(198@,4i) = 1

:SYN3_13740
goto @SYN3_13758

:SYN3_13747
199@(198@,4i) = 1

:SYN3_13758
if 
  3 > 97@
goto_if_false @SYN3_13818
if and
  Car.IsDead(257@(97@,3i))
  199@(198@,4i) <> 1
goto_if_false @SYN3_13818
199@(198@,4i) = 1

:SYN3_13818
97@ += 1
goto @SYN3_13503

:SYN3_13832
return 

:SYN3_13834
if and
  not Car.IsDead(36@)
  not Char.IsDead(37@)
goto_if_false @SYN3_14961
if 
  57@ == 1
goto_if_false @SYN3_14092
gosub @SYN3_11056
if 
  176@ == 1
goto_if_false @SYN3_13937
if 
  203@ <> 1
goto_if_false @SYN3_13930
Car.SetHeavy(36@, True)
203@ = 1

:SYN3_13930
goto @SYN3_14092

:SYN3_13937
if 
  203@ <> 1
goto_if_false @SYN3_13969
Car.SetHeavy(36@, True)
203@ = 1

:SYN3_13969
97@ = 0

:SYN3_13976
if and
  3 > 97@
  203@ <> 0
goto_if_false @SYN3_14092
if 
  not Car.IsDead(58@(97@,3i))
goto_if_false @SYN3_14078
if and
  Char.IsInCar(37@, 36@)
  Char.LocateInCarCar2D(37@, 58@(97@,3i), 50.0, 50.0, False)
goto_if_false @SYN3_14078
Car.SetHeavy(36@, False)
203@ = 0

:SYN3_14078
97@ += 1
goto @SYN3_13976

:SYN3_14092
if 
  57@ == 2
goto_if_false @SYN3_14329
gosub @SYN3_11165
if 
  177@ == 1
goto_if_false @SYN3_14174
if 
  203@ <> 1
goto_if_false @SYN3_14167
Car.SetHeavy(36@, True)
203@ = 1

:SYN3_14167
goto @SYN3_14329

:SYN3_14174
if 
  203@ <> 1
goto_if_false @SYN3_14206
Car.SetHeavy(36@, True)
203@ = 1

:SYN3_14206
97@ = 0

:SYN3_14213
if and
  3 > 97@
  203@ <> 0
goto_if_false @SYN3_14329
if 
  not Car.IsDead(64@(97@,3i))
goto_if_false @SYN3_14315
if and
  Char.IsInCar(37@, 36@)
  Char.LocateInCarCar2D(37@, 64@(97@,3i), 50.0, 50.0, False)
goto_if_false @SYN3_14315
Car.SetHeavy(36@, False)
203@ = 0

:SYN3_14315
97@ += 1
goto @SYN3_14213

:SYN3_14329
if 
  57@ == 3
goto_if_false @SYN3_14566
gosub @SYN3_11320
if 
  178@ == 1
goto_if_false @SYN3_14411
if 
  203@ <> 1
goto_if_false @SYN3_14404
Car.SetHeavy(36@, True)
203@ = 1

:SYN3_14404
goto @SYN3_14566

:SYN3_14411
if 
  203@ <> 1
goto_if_false @SYN3_14443
Car.SetHeavy(36@, True)
203@ = 1

:SYN3_14443
97@ = 0

:SYN3_14450
if and
  3 > 97@
  203@ <> 0
goto_if_false @SYN3_14566
if 
  not Car.IsDead(73@(97@,3i))
goto_if_false @SYN3_14552
if and
  Char.IsInCar(37@, 36@)
  Char.LocateInCarCar2D(37@, 73@(97@,3i), 50.0, 50.0, False)
goto_if_false @SYN3_14552
Car.SetHeavy(36@, False)
203@ = 0

:SYN3_14552
97@ += 1
goto @SYN3_14450

:SYN3_14566
if 
  57@ == 4
goto_if_false @SYN3_14803
gosub @SYN3_11475
if 
  179@ == 1
goto_if_false @SYN3_14648
if 
  203@ <> 1
goto_if_false @SYN3_14641
Car.SetHeavy(36@, True)
203@ = 1

:SYN3_14641
goto @SYN3_14803

:SYN3_14648
if 
  203@ <> 1
goto_if_false @SYN3_14680
Car.SetHeavy(36@, True)
203@ = 1

:SYN3_14680
97@ = 0

:SYN3_14687
if and
  3 > 97@
  203@ <> 0
goto_if_false @SYN3_14803
if 
  not Car.IsDead(82@(97@,3i))
goto_if_false @SYN3_14789
if and
  Char.IsInCar(37@, 36@)
  Char.LocateInCarCar2D(37@, 82@(97@,3i), 50.0, 50.0, False)
goto_if_false @SYN3_14789
Car.SetHeavy(36@, False)
203@ = 0

:SYN3_14789
97@ += 1
goto @SYN3_14687

:SYN3_14803
if and
  57@ == -1
  203@ <> 1
goto_if_false @SYN3_14842
Car.SetHeavy(36@, True)
203@ = 1

:SYN3_14842
if 
  203@ == 1
goto_if_false @SYN3_14914
Car.SetDrivingStyle(36@, DrivingMode.AvoidCars)
if 
  204@ <> 1
goto_if_false @SYN3_14907
Car.SetProofs(36@, False, True, False, True, False)
204@ = 1

:SYN3_14907
goto @SYN3_14961

:SYN3_14914
Car.SetDrivingStyle(36@, DrivingMode.SlowDownForCars)
if 
  204@ == 1
goto_if_false @SYN3_14961
Car.SetProofs(36@, False, True, False, False, False)
204@ = 0

:SYN3_14961
return 

:SYN3_14963
if 
  not Car.IsDead(35@)
goto_if_false @SYN3_15034
if and
  not Char.IsInCar($scplayer, 35@)
  140@ <> 1
goto_if_false @SYN3_15034
214@ = Blip.AddForCar(35@)
Blip.SetAsFriendly(214@, True)
Blip.ChangeDisplay(214@, BlipDisplay.MarkerOnly)
140@ = 1

:SYN3_15034
return 

:SYN3_15036
Camera.DoFade(1000, Fade.Out)

:SYN3_15043
if 
  Camera.GetFadingStatus
goto_if_false @SYN3_15067
wait 0
goto @SYN3_15043

:SYN3_15067
Player.SetControl($player1, False)
World.ClearArea(-2170.58, -206.92, 34.57, 100.0, False)
Streaming.RequestCollision(-2170.58, -206.92)
Streaming.LoadSceneInDirection(-2170.58, -206.92, 34.57, 270.0)
Text.ClearPrints
Char.HideWeaponForScriptedCutscene($scplayer, True)
if 
  not Car.IsDead(36@)
goto_if_false @SYN3_15187
Car.SetCoordinates(36@, -2170.58, -206.92, 34.57)
Car.SetHeading(36@, 91.13)

:SYN3_15187
if 
  not Char.IsDead(37@)
goto_if_false @SYN3_15281
Char.ClearTasksImmediately(37@)
if 
  Char.IsInAnyCar(37@)
goto_if_false @SYN3_15251
Char.WarpFromCarToCoord(37@, -2170.45, -209.19, 34.37)
goto @SYN3_15271

:SYN3_15251
Char.SetCoordinates(37@, -2170.45, -209.19, 34.37)

:SYN3_15271
Char.SetHeading(37@, 207.63)

:SYN3_15281
272@ = 0
if 
  210@ == 1
goto_if_false @SYN3_15391
if 
  not Car.IsDead(99@)
goto_if_false @SYN3_15368
if or
  Char.IsInCar($scplayer, 99@)
  Char.LocateAnyMeansCar2D($scplayer, 99@, 20.0, 20.0, False)
goto_if_false @SYN3_15368
272@ = 1

:SYN3_15368
if 
  272@ == 0
goto_if_false @SYN3_15391
Car.Delete(99@)

:SYN3_15391
Char.ClearTasksImmediately($scplayer)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SYN3_15439
Char.WarpFromCarToCoord($scplayer, -2169.44, -210.34, 34.37)
goto @SYN3_15459

:SYN3_15439
Char.SetCoordinates($scplayer, -2169.44, -210.34, 34.37)

:SYN3_15459
Char.SetHeading($scplayer, 48.2)
if and
  272@ == 1
  not Car.IsDead(99@)
goto_if_false @SYN3_15560
if 
  Car.Locate2D(99@, -2170.45, -209.19, 20.0, 20.0, False)
goto_if_false @SYN3_15560
Car.SetCoordinates(99@, -2154.28, -275.18, -100.0)
Car.SetHeading(99@, 270.0)

:SYN3_15560
wait 1000
Hud.SwitchWidescreen(True)
if 
  not Char.IsDead(37@)
goto_if_false @SYN3_15605
Task.LookAtChar($scplayer, 37@, -2)
Task.LookAtChar(37@, $scplayer, -2)

:SYN3_15605
Camera.SetFixedPosition(-2172.35, -210.03, 35.67, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2170.27, -210.1, 35.4, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)

:SYN3_15663
if 
  Camera.GetFadingStatus
goto_if_false @SYN3_15687
wait 0
goto @SYN3_15663

:SYN3_15687
133@ = 1
skip_cutscene_start_internal @SYN3_15921
132@ = 2
gosub @SYN3_17788
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)

:SYN3_15751
if 
  1 > 129@
goto_if_false @SYN3_15827
wait 0
gosub @SYN3_18297
if and
  128@ == 2
  131@ <> 1
goto_if_false @SYN3_15820
Char.StartFacialTalk($scplayer, 10000)
131@ = 1

:SYN3_15820
goto @SYN3_15751

:SYN3_15827
Char.StopFacialTalk($scplayer)

:SYN3_15832
if 
  is_int_lvar_greater_than_int_lvar 130@ > 129@
goto_if_false @SYN3_15909
wait 0
gosub @SYN3_18297
if and
  128@ == 2
  131@ <> 1
goto_if_false @SYN3_15902
Char.StartFacialTalk($scplayer, 10000)
131@ = 1

:SYN3_15902
goto @SYN3_15832

:SYN3_15909
Char.StopFacialTalk($scplayer)
133@ = 0

:SYN3_15921
skip_cutscene_end 
Camera.DoFade(1000, Fade.Out)

:SYN3_15930
if 
  Camera.GetFadingStatus
goto_if_false @SYN3_15954
wait 0
goto @SYN3_15930

:SYN3_15954
if 
  133@ == 1
goto_if_false @SYN3_15972

:SYN3_15972
Char.StopFacialTalk($scplayer)
Char.ClearLookAt($scplayer)
Char.ClearTasksImmediately($scplayer)
Text.ClearPrints
Car.Delete(36@)
Char.Delete(37@)
World.ClearArea(-2127.08, -87.75, 35.32, 20.0, False)
Streaming.RequestCollision(-2127.08, -87.75)
Streaming.LoadScene(-2127.08, -87.75, 35.32)
if and
  272@ == 1
  not Car.IsDead(99@)
goto_if_false @SYN3_16120
Car.SetCoordinates(99@, -2127.08, -87.75, -100.0)
Car.SetHeading(99@, 0.0)
Char.WarpIntoCar($scplayer, 99@)
goto @SYN3_16150

:SYN3_16120
Char.SetCoordinates($scplayer, -2127.08, -87.75, -100.0)
Char.SetHeading($scplayer, 0.0)

:SYN3_16150
Blip.Remove(214@)
Blip.Remove(247@)
Blip.Remove(215@)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(123)
Streaming.MarkModelAsNoLongerNeeded(122)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(440)
Streaming.MarkModelAsNoLongerNeeded(173)
Streaming.MarkModelAsNoLongerNeeded(355)
Path.SwitchRoadsBackToOriginal(-2005.23, 517.16, 33.0, -2002.69, 554.12, 36.0)
Path.SwitchRoadsBackToOriginal(-2097.8, 319.42, 33.0, -2035.57, 321.05, 36.0)
Path.SwitchRoadsBackToOriginal(-2150.18, 138.75, 33.0, -2145.71, 160.84, 36.0)
Path.SwitchRoadsBackToOriginal(-2168.24, 42.13, 33.0, -2165.99, 61.7, 36.0)
Game.SwitchRandomTrains(True)
Char.HideWeaponForScriptedCutscene($scplayer, False)
wait 1000
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Camera.DoFade(1000, Fade.In)

:SYN3_16364
if 
  Camera.GetFadingStatus
goto_if_false @SYN3_16388
wait 0
goto @SYN3_16364

:SYN3_16388
return 

:SYN3_16390
Camera.DoFade(1000, Fade.Out)

:SYN3_16397
if 
  Camera.GetFadingStatus
goto_if_false @SYN3_16421
wait 0
goto @SYN3_16397

:SYN3_16421
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
World.ClearArea(42@, 43@, 44@, 100.0, False)
Text.ClearHelp
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Char.HideWeaponForScriptedCutscene($scplayer, True)
if 
  not Car.IsDead(36@)
goto_if_false @SYN3_16521
Car.SetCoordinates(36@, 38@, 39@, 40@)
Car.SetHeading(36@, 41@)

:SYN3_16521
if 
  not Car.IsDead(35@)
goto_if_false @SYN3_16567
Car.SetCoordinates(35@, -1830.16, -17.64, 14.79)
Car.SetHeading(35@, 268.78)

:SYN3_16567
if 
  not Car.IsDead(34@)
goto_if_false @SYN3_16636
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @SYN3_16607
Char.WarpIntoCar($scplayer, 34@)

:SYN3_16607
Car.SetCoordinates(34@, 42@, 43@, 44@)
Car.SetHeading(34@, 90.0)
Car.SetIdle(34@)

:SYN3_16636
Streaming.RequestAnimation("CAR_CHAT")

:SYN3_16648
if 
  not Streaming.HasAnimationLoaded("CAR_CHAT")
goto_if_false @SYN3_16682
wait 0
goto @SYN3_16648

:SYN3_16682
132@ = 1
gosub @SYN3_17788
if 
  not Char.IsDead(100@)
goto_if_false @SYN3_16780
Task.PlayAnim(100@, "CAR_SC3_FR", "CAR_CHAT", 4.0, False, False, False, False, -1)
if 
  not Char.IsDead(101@)
goto_if_false @SYN3_16780
Task.LookAtChar(101@, 100@, -2)

:SYN3_16780
Camera.SetFixedPosition(-1815.98, 3.07, 15.31, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1815.5, 2.94, 15.25, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)

:SYN3_16838
if 
  Camera.GetFadingStatus
goto_if_false @SYN3_16862
wait 0
goto @SYN3_16838

:SYN3_16862
133@ = 1
skip_cutscene_start_internal @SYN3_17540

:SYN3_16876
if 
  1 > 129@
goto_if_false @SYN3_16957
wait 0
gosub @SYN3_18297
if and
  128@ == 2
  131@ <> 1
  not Char.IsDead(100@)
goto_if_false @SYN3_16950
Char.StartFacialTalk(100@, 10000)
131@ = 1

:SYN3_16950
goto @SYN3_16876

:SYN3_16957
if 
  not Char.IsDead(100@)
goto_if_false @SYN3_16988
Char.StopFacialTalk(100@)
Task.LookAtChar($scplayer, 100@, -1)

:SYN3_16988
if 
  2 > 129@
goto_if_false @SYN3_17069
wait 0
gosub @SYN3_18297
if and
  128@ == 2
  131@ <> 1
  not Char.IsDead(100@)
goto_if_false @SYN3_17062
Char.StartFacialTalk(100@, 10000)
131@ = 1

:SYN3_17062
goto @SYN3_16988

:SYN3_17069
if 
  not Char.IsDead(100@)
goto_if_false @SYN3_17090
Char.StopFacialTalk(100@)

:SYN3_17090
if 
  3 > 129@
goto_if_false @SYN3_17171
wait 0
gosub @SYN3_18297
if and
  128@ == 2
  131@ <> 1
  not Char.IsDead(100@)
goto_if_false @SYN3_17164
Char.StartFacialTalk(100@, 10000)
131@ = 1

:SYN3_17164
goto @SYN3_17090

:SYN3_17171
if 
  not Char.IsDead(100@)
goto_if_false @SYN3_17192
Char.StopFacialTalk(100@)

:SYN3_17192
Char.ClearLookAt($scplayer)
wait 200
Task.LeaveAnyCar($scplayer)
wait 500
if 
  not Char.IsDead(100@)
goto_if_false @SYN3_17238
Task.LookAtChar(100@, $scplayer, -1)

:SYN3_17238
wait 2000
if 
  not Char.IsDead(101@)
goto_if_false @SYN3_17264
Char.ClearLookAt(101@)

:SYN3_17264
129@ = 5

:SYN3_17271
if 
  6 > 129@
goto_if_false @SYN3_17352
wait 0
gosub @SYN3_18297
if and
  128@ == 2
  131@ <> 1
  not Char.IsDead(100@)
goto_if_false @SYN3_17345
Char.StartFacialTalk(100@, 10000)
131@ = 1

:SYN3_17345
goto @SYN3_17271

:SYN3_17352
if 
  not Char.IsDead(100@)
goto_if_false @SYN3_17373
Char.StopFacialTalk(100@)

:SYN3_17373
if 
  not Char.IsDead(101@)
goto_if_false @SYN3_17399
Task.LookAtChar(101@, $scplayer, -1)

:SYN3_17399
wait 1000

:SYN3_17404
if 
  is_int_lvar_greater_than_int_lvar 130@ > 129@
goto_if_false @SYN3_17486
wait 0
gosub @SYN3_18297
if and
  128@ == 2
  131@ <> 1
  not Char.IsDead(101@)
goto_if_false @SYN3_17479
Char.StartFacialTalk(101@, 10000)
131@ = 1

:SYN3_17479
goto @SYN3_17404

:SYN3_17486
if 
  not Char.IsDead(101@)
goto_if_false @SYN3_17507
Char.StopFacialTalk(101@)

:SYN3_17507
wait 1000
if 
  not Char.IsDead(100@)
goto_if_false @SYN3_17533
Char.ClearLookAt(100@)

:SYN3_17533
133@ = 0

:SYN3_17540
skip_cutscene_end 
Camera.DoFade(700, Fade.Out)

:SYN3_17549
if 
  Camera.GetFadingStatus
goto_if_false @SYN3_17573
wait 0
goto @SYN3_17549

:SYN3_17573
if 
  133@ == 1
goto_if_false @SYN3_17591

:SYN3_17591
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.ClearLookAt($scplayer)
Char.ClearTasks($scplayer)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SYN3_17651
Char.WarpFromCarToCoord($scplayer, -1816.19, -1.19, 14.15)
goto @SYN3_17671

:SYN3_17651
Char.SetCoordinates($scplayer, -1816.19, -1.19, 14.15)

:SYN3_17671
Char.SetHeading($scplayer, 132.83)
Car.Delete(34@)
Char.Delete(100@)
Char.Delete(101@)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
Streaming.RemoveAnimation("CAR_CHAT")
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Game.SetMaxWantedLevel(0)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Camera.DoFade(1000, Fade.In)

:SYN3_17762
if 
  Camera.GetFadingStatus
goto_if_false @SYN3_17786
wait 0
goto @SYN3_17762

:SYN3_17786
return 

:SYN3_17788
switch_start 132@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @SYN3_18267 {caseNum1} 0 {caseLabel1} @SYN3_17851 {caseNum2} 1 {caseLabel2} @SYN3_18041 {caseNum3} 2 {caseLabel3} @SYN3_18209 {caseNum4} -1 {caseLabel4} @SYN3_18274 {caseNum5} -1 {caseLabel5} @SYN3_18274 {caseNum6} -1 {caseLabel6} @SYN3_18274 {caseNum7} -1 {caseLabel7} @SYN3_18274

:SYN3_17851
set_lvar_text_label 104@s = 'MJIZ01A'
set_lvar_text_label 106@s = 'MJIZ01B'
set_lvar_text_label 108@s = 'MJIZ01C'
set_lvar_text_label 110@s = 'MJIZ01D'
set_lvar_text_label 112@s = 'MJIZ01E'
set_lvar_text_label 114@s = 'MJIZ01F'
set_lvar_text_label 116@s = 'MJIZ01G'
set_lvar_text_label 118@s = 'MJIZ01H'
set_lvar_int_to_constant 120@ = 16000
set_lvar_int_to_constant 121@ = 16010
set_lvar_int_to_constant 122@ = 16001
set_lvar_int_to_constant 123@ = 16002
set_lvar_int_to_constant 124@ = 16003
set_lvar_int_to_constant 125@ = 16004
set_lvar_int_to_constant 126@ = 16005
set_lvar_int_to_constant 127@ = 16011
130@ = 8
goto @SYN3_18274

:SYN3_18041
set_lvar_text_label 104@s = 'SYN3_CA'
set_lvar_text_label 106@s = 'SYN3_CB'
set_lvar_text_label 108@s = 'SYN3_CC'
set_lvar_text_label 110@s = 'SYN3_CD'
set_lvar_text_label 112@s = 'SYN3_CE'
set_lvar_text_label 114@s = 'SYN3_CF'
set_lvar_text_label 116@s = 'SYN3_CG'
set_lvar_int_to_constant 120@ = 7604
set_lvar_int_to_constant 121@ = 7605
set_lvar_int_to_constant 122@ = 7606
set_lvar_int_to_constant 123@ = 7607
set_lvar_int_to_constant 124@ = 7608
set_lvar_int_to_constant 125@ = 7609
set_lvar_int_to_constant 126@ = 7618
130@ = 7
goto @SYN3_18274

:SYN3_18209
set_lvar_text_label 104@s = 'SYN3_EA'
set_lvar_text_label 106@s = 'SYN3_EB'
set_lvar_int_to_constant 120@ = 7622
set_lvar_int_to_constant 121@ = 7623
130@ = 2
goto @SYN3_18274

:SYN3_18267
goto @SYN3_18274

:SYN3_18274
128@ = 0
129@ = 0
131@ = 0
return 

:SYN3_18297
if or
  128@ == 0
  128@ == 1
goto_if_false @SYN3_18367
if 
  is_int_lvar_greater_than_int_lvar 130@ > 129@
goto_if_false @SYN3_18367
if 
  TIMERB > 1000
goto_if_false @SYN3_18367
gosub @SYN3_18432

:SYN3_18367
if 
  128@ == 2
goto_if_false @SYN3_18430
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SYN3_18430
128@ = 0
129@ += 1
131@ = 0
Text.ClearPrints
TIMERB = 0

:SYN3_18430
return 

:SYN3_18432
if 
  128@ == 0
goto_if_false @SYN3_18468
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 120@(129@,8i))
128@ = 1

:SYN3_18468
if 
  128@ == 1
goto_if_false @SYN3_18526
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYN3_18526
Text.PrintNow(104@(129@,8s), 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
128@ = 2

:SYN3_18526
return 

:SYN3_18528
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
switch_start 103@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @SYN3_18665 {caseNum1} 0 {caseLabel1} @SYN3_18595 {caseNum2} 1 {caseLabel2} @SYN3_18609 {caseNum3} 2 {caseLabel3} @SYN3_18623 {caseNum4} 3 {caseLabel4} @SYN3_18637 {caseNum5} 4 {caseLabel5} @SYN3_18651 {caseNum6} -1 {caseLabel6} @SYN3_18672 {caseNum7} -1 {caseLabel7} @SYN3_18672

:SYN3_18595
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 26402)
goto @SYN3_18672

:SYN3_18609
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 26401)
goto @SYN3_18672

:SYN3_18623
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 26403)
goto @SYN3_18672

:SYN3_18637
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 26400)
goto @SYN3_18672

:SYN3_18651
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 26404)
goto @SYN3_18672

:SYN3_18665
goto @SYN3_18672

:SYN3_18672
Char.StopFacialTalk($scplayer)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:SYN3_18681
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SYN3_18785
wait 0
if or
  Char.IsDead(100@)
  Char.IsDead(101@)
  Car.IsDead(34@)
  Car.IsDead(36@)
  Char.IsDead(37@)
  Car.IsDead(35@)
goto_if_false @SYN3_18743
return 

:SYN3_18743
if and
  135@ <> 1
  Pickup.HasBeenCollected(89@)
goto_if_false @SYN3_18778
Blip.Remove(247@)
135@ = 1

:SYN3_18778
goto @SYN3_18681

:SYN3_18785
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
switch_start 103@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @SYN3_18967 {caseNum1} 0 {caseLabel1} @SYN3_18852 {caseNum2} 1 {caseLabel2} @SYN3_18875 {caseNum3} 2 {caseLabel3} @SYN3_18898 {caseNum4} 3 {caseLabel4} @SYN3_18921 {caseNum5} 4 {caseLabel5} @SYN3_18944 {caseNum6} -1 {caseLabel6} @SYN3_18974 {caseNum7} -1 {caseLabel7} @SYN3_18974

:SYN3_18852
Text.PrintNow('TORX_AC', 3000, 1)
goto @SYN3_18974

:SYN3_18875
Text.PrintNow('TORX_AB', 3000, 1)
goto @SYN3_18974

:SYN3_18898
Text.PrintNow('TORX_AD', 3000, 1)
goto @SYN3_18974

:SYN3_18921
Text.PrintNow('TORX_AA', 3000, 1)
goto @SYN3_18974

:SYN3_18944
Text.PrintNow('TORX_AE', 3000, 1)
goto @SYN3_18974

:SYN3_18967
goto @SYN3_18974

:SYN3_18974
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SYN3_19078
wait 0
if or
  Char.IsDead(100@)
  Char.IsDead(101@)
  Car.IsDead(34@)
  Car.IsDead(36@)
  Char.IsDead(37@)
  Car.IsDead(35@)
goto_if_false @SYN3_19036
return 

:SYN3_19036
if and
  135@ <> 1
  Pickup.HasBeenCollected(89@)
goto_if_false @SYN3_19071
Blip.Remove(247@)
135@ = 1

:SYN3_19071
goto @SYN3_18974

:SYN3_19078
103@ += 1
if 
  103@ > 4
goto_if_false @SYN3_19110
103@ = 0

:SYN3_19110
return 

:SYN3_19112
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:SYN3_19130
$flag_synd_mission_counter += 1
Stat.RegisterMissionPassed('SYND_3')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSS', 9000, 5000, TextStyle.Middle)
Player.AddScore($player1, 9000)
Stat.AwardPlayerMissionRespect(25)
Game.SetMaxWantedLevel(248@)
Player.AlterWantedLevelNoDrop($player1, 3)
Audio.PlayMissionPassedTune(1)
Blip.Remove($synd_contact_blip)
return 

:SYN3_19206
Streaming.MarkModelAsNoLongerNeeded(421)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.MarkModelAsNoLongerNeeded(440)
Streaming.MarkModelAsNoLongerNeeded(173)
Streaming.MarkModelAsNoLongerNeeded(359)
Streaming.MarkModelAsNoLongerNeeded(358)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(123)
Streaming.MarkModelAsNoLongerNeeded(122)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(355)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(#BODYARMOUR)
Pickup.Remove(89@)
Pickup.Remove(90@)
Pickup.Remove(249@)
Blip.Remove(212@)
Blip.Remove(213@)
Blip.Remove(214@)
Blip.Remove(247@)
Blip.Remove(215@)
Blip.Remove(216@)
gosub @SYN3_11584
gosub @SYN3_11665
gosub @SYN3_11785
gosub @SYN3_11905
Sequence.Clear(98@)
if 
  Player.IsPlaying($player1)
goto_if_false @SYN3_19376
Game.SetEveryoneIgnorePlayer($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, False)

:SYN3_19376
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Char.RemoveElegantly(100@)
Char.RemoveElegantly(101@)
Streaming.RemoveAnimation("CAR_CHAT")
Path.SwitchRoadsBackToOriginal(-2005.23, 517.16, 33.0, -2002.69, 554.12, 36.0)
Path.SwitchRoadsBackToOriginal(-2097.8, 319.42, 33.0, -2035.57, 321.05, 36.0)
Path.SwitchRoadsBackToOriginal(-2150.18, 138.75, 33.0, -2145.71, 160.84, 36.0)
Path.SwitchRoadsBackToOriginal(-2168.24, 42.13, 33.0, -2165.99, 61.7, 36.0)
Game.SwitchRandomTrains(True)
DecisionMaker.Remove(88@)
DecisionMaker.Remove(102@)
if 
  not Car.IsDead(34@)
goto_if_false @SYN3_19571
Car.FreezePosition(34@, False)

:SYN3_19571
Game.SetMaxWantedLevel(248@)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 61---------------
// Originally: Ice Cold Killa

:SYND4
script_name 'SYND4'
gosub @SYND4_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYND4_38
gosub @SYND4_11948

:SYND4_38
gosub @SYND4_12325
terminate_this_script 

:SYND4_47
$girl_health = 0.0
$off1_X = 0.0
$off_X = 0.0
$off1_Y = 0.0
$off_Y = 0.0
$syn4_offsetX = 0.0
$syn4_offsetY = 0
$syn4_rnd = 0
$s4_has_phone = 0
$s4_j_health = 0
117@ = 0
97@ = 2
Text.LoadMissionText('SYN4')
World.SwitchEntryExit('PDOMES', True)
World.SwitchEntryExit('PDOMES2', False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:SYND4_201
if 
  Camera.GetFadingStatus
goto_if_false @SYND4_225
wait 0
goto @SYND4_201

:SYND4_225
Streaming.SetAreaVisible(1)
Char.SetAreaVisible($scplayer, 1)
Streaming.LoadScene(-2031.0, 149.0, 29.0)
Cutscene.Load('SYND_4A')

:SYND4_264
if 
  not Cutscene.HasLoaded
goto_if_false @SYND4_288
wait 0
goto @SYND4_264

:SYND4_288
Cutscene.Start
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:SYND4_305
if 
  not Cutscene.HasFinished
goto_if_false @SYND4_329
wait 0
goto @SYND4_305

:SYND4_329
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)

:SYND4_343
if 
  Camera.GetFadingStatus
goto_if_false @SYND4_367
wait 0
goto @SYND4_343

:SYND4_367
Cutscene.Clear
Char.SetAreaVisible($scplayer, 0)
Streaming.SetAreaVisible(0)
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_428
Char.SetCoordinatesDontWarpGang($scplayer, -2031.197, 161.1839, 27.8516)
Char.SetHeading($scplayer, 268.0468)
Camera.SetBehindPlayer

:SYND4_428
Camera.SetFadingColor(0, 0, 0)
Streaming.RequestModel(347)
Streaming.RequestModel(163)
Streaming.RequestModel(164)
Streaming.RequestModel(409)
Streaming.RequestModel(352)
Streaming.RequestModel(575)
Streaming.RequestModel(409)
Streaming.RequestModel(71)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Dislike, PedType.Mission2, PedType.Player1)
Game.SetRelationship(RelationshipType.Like, PedType.Mission2, PedType.Mission2)
55@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
47@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
88@ = DecisionMakerChar.Load(DecisionMakerType.Tough)

:SYND4_520
if or
  not Streaming.HasModelLoaded(347)
  not Streaming.HasModelLoaded(163)
  not Streaming.HasModelLoaded(164)
  not Streaming.HasModelLoaded(409)
  not Streaming.HasModelLoaded(352)
goto_if_false @SYND4_567
wait 0
goto @SYND4_520

:SYND4_567
if or
  not Streaming.HasModelLoaded(409)
  not Streaming.HasModelLoaded(575)
  not Streaming.HasModelLoaded(71)
goto_if_false @SYND4_603
wait 0
goto @SYND4_567

:SYND4_603
Streaming.LoadSceneInDirection(-2031.197, 161.1839, 27.8359, 268.0468)
World.ClearArea(-2624.549, 1412.131, 6.1094, 10.0, True)
52@ = Group.Create(DefaultTaskAllocator.StandStill)
53@ = DecisionMakerGroup.Load(0)
Group.SetDecisionMaker(52@, 53@)
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_739
58@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(-2643.993, 1405.895, 905.2734)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Task.KillCharOnFoot(-1, $scplayer)
Task.StayInSamePlace(-1, True)
Path.FlushRoute
Sequence.Close(58@)

:SYND4_739
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_915
120@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2664.286, 1420.904, 905.2812, 4, -1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(120@)
121@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2662.241, 1418.222, 905.277, 4, -1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(121@)
122@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2671.858, 1420.603, 905.2812, 4, -1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(122@)
123@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2667.221, 1421.774, 905.2812, 4, -1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(123@)

:SYND4_915
72@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2674.171, 1394.553, 917.3582, 4, -1)
Task.AchieveHeading(-1, 94.4524)
Sequence.SetToRepeat(72@, True)
Sequence.Close(72@)
81@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(-2666.142, 1420.576, 905.277)
Path.ExtendRoute(-2654.33, 1420.092, 905.2812)
Task.FollowPointRoute(-1, 7, RouteMode.Once)
Path.FlushRoute
Sequence.Close(81@)
73@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(-2663.897, 1420.509, 905.2812)
Path.ExtendRoute(-2655.542, 1418.905, 905.2812)
Path.ExtendRoute(-2648.745, 1416.988, 905.2812)
Path.ExtendRoute(-2645.276, 1410.547, 905.2812)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Sequence.Close(73@)
67@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(-2627.831, 1404.959, 905.4609)
Path.ExtendRoute(-2627.514, 1406.607, 905.4609)
Path.ExtendRoute(-2635.924, 1408.306, 905.4609)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Path.FlushRoute
Task.Pause(-1, 4000)
Path.FlushRoute
Path.ExtendRoute(-2629.451, 1406.773, 905.4609)
Path.ExtendRoute(-2626.715, 1403.41, 905.4609)
Path.ExtendRoute(-2629.224, 1402.585, 905.4598)
Path.ExtendRoute(-2639.513, 1399.569, 911.4133)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Path.FlushRoute
Sequence.Close(67@)
57@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(-2663.024, 1430.271, 911.3984)
Path.ExtendRoute(-2677.841, 1429.663, 911.3921)
Path.ExtendRoute(-2688.757, 1426.88, 905.4531)
Path.ExtendRoute(-2686.493, 1422.207, 905.4531)
Path.ExtendRoute(-2677.769, 1421.948, 905.4531)
Path.ExtendRoute(-2664.318, 1423.618, 905.2734)
Path.ExtendRoute(-2651.408, 1423.601, 905.2734)
Path.ExtendRoute(-2642.101, 1416.098, 905.2812)
Task.FollowPointRoute(-1, 7, RouteMode.Once)
Path.FlushRoute
Path.ExtendRoute(-2633.106, 1415.721, 905.4531)
Task.FollowPointRoute(-1, 7, RouteMode.Once)
Path.FlushRoute
Sequence.Close(57@)
42@ = Sequence.Open()
Task.LookAbout(-1, 4000)
Task.Pause(-1, 1000)
Task.ScratchHead(-1)
Sequence.SetToRepeat(42@, True)
Sequence.Close(42@)
68@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.ShootAtChar(-1, $scplayer, -1)
Sequence.SetToRepeat(68@, True)
Sequence.Close(68@)
62@ = Car.Create(409, -2634.061, 1395.498, 6.1186)
Car.SetHeading(62@, 3.5285)
Car.ChangeColor(62@, 0, 0)
Car.SetCanBurstTires(62@, False)
Car.SetHealth(62@, 2000)
63@ = Car.Create(409, -2613.48, 1416.568, 6.1432)
Car.SetHeading(63@, 272.3133)
Car.ChangeColor(63@, 0, 0)
Car.SetCanBurstTires(63@, False)
Car.SetHealth(63@, 2000)
Car.CustomPlateForNextCar(575, "HO_2_HO_")
64@ = Car.Create(575, -2611.471, 1409.036, 6.1335)
Car.SetHeading(64@, 274.4727)
Car.ChangeColor(64@, 4, 4)
Car.SetHealth(64@, 1000)
124@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2622.981, 1413.107, 6.1137, 4, -1)
Task.AchieveHeading(-1, 196.019)
Sequence.SetToRepeat(124@, True)
Sequence.Close(124@)
125@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2626.409, 1411.96, 6.1094, 4, -1)
Task.AchieveHeading(-1, 190.6977)
Sequence.SetToRepeat(125@, True)
Sequence.Close(125@)
49@ = Char.Create(PedType.Mission2, 163, -2622.981, 1413.107, 6.1137)
Char.SetHeading(49@, 196.019)
50@ = Char.Create(PedType.Mission2, 164, -2626.409, 1411.96, 6.1094)
Char.SetHeading(50@, 190.6977)
Char.GiveWeapon(49@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(49@, WeaponType.MicroUzi)
Char.SetAccuracy(49@, 90)
Char.GiveWeapon(50@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(50@, WeaponType.MicroUzi)
Char.SetAccuracy(50@, 90)
Char.SetDecisionMaker(49@, 47@)
Char.SetDecisionMaker(50@, 47@)
Char.PerformSequence(49@, 124@)
Char.PerformSequence(50@, 125@)
59@ = Blip.AddForCoord(-2623.937, 1410.79, 6.1152)
60@ = Blip.AddForCoord(-2636.385, 1402.485, 905.4609)
Blip.SetEntryExit(60@, -2661.74, 1423.483, 100.0)
Blip.ChangeDisplay(60@, BlipDisplay.Neither)
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_2049
Char.GiveWeapon($scplayer, WeaponType.PistolSilenced, 200)
Char.SetCurrentWeapon($scplayer, WeaponType.PistolSilenced)

:SYND4_2049
TIMERA = 0
Camera.SetFadingColor(0, 0, 0)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)
Text.PrintNow('SYN4_20', 9000, 1)

:SYND4_2095
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_3480
wait 0
gosub @SYND4_12831
gosub @SYND4_13645
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SYND4_2151
goto @SYND4_12163

:SYND4_2151
if 
  117@ == 0
goto_if_false @SYND4_2369
if 
  not Char.IsDead(49@)
goto_if_false @SYND4_2269
if 
  Player.IsTargetingChar($player1, 49@)
goto_if_false @SYND4_2269
if 
  not Char.IsDead(49@)
goto_if_false @SYND4_2233
Char.ClearTasksImmediately($scplayer)
Task.KillCharOnFoot(49@, $scplayer)

:SYND4_2233
if 
  not Char.IsDead(50@)
goto_if_false @SYND4_2262
Char.ClearTasksImmediately($scplayer)
Task.KillCharOnFoot(50@, $scplayer)

:SYND4_2262
117@ = 1

:SYND4_2269
if 
  not Char.IsDead(50@)
goto_if_false @SYND4_2369
if 
  Player.IsTargetingChar($player1, 50@)
goto_if_false @SYND4_2369
if 
  not Char.IsDead(49@)
goto_if_false @SYND4_2333
Char.ClearTasksImmediately($scplayer)
Task.KillCharOnFoot(49@, $scplayer)

:SYND4_2333
if 
  not Char.IsDead(50@)
goto_if_false @SYND4_2362
Char.ClearTasksImmediately($scplayer)
Task.KillCharOnFoot(50@, $scplayer)

:SYND4_2362
117@ = 1

:SYND4_2369
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_3418
if 
  Char.LocateOnFoot3D($scplayer, -2623.937, 1410.79, 6.1152, 1.2, 1.2, 1.2, True)
goto_if_false @SYND4_3418
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_2456
Player.SetControl($player1, False)

:SYND4_2456
Player.ApplyBrakesToCar($player1, True)
Char.SetHeading($scplayer, 0.0)
Blip.Remove(59@)
gosub @SYND4_12699
if and
  not Char.IsDead(49@)
  not Char.IsDead(50@)
goto_if_false @SYND4_3179
if and
  not Char.HasBeenDamagedByChar(49@, $scplayer)
  not Char.HasBeenDamagedByChar(50@, $scplayer)
goto_if_false @SYND4_3179
Task.LookAtChar(50@, $scplayer, 6000)
gosub @SYND4_12699
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_2597
Char.SetCoordinatesDontWarpGang($scplayer, -2624.112, 1410.473, 6.1149)
Char.SetHeading($scplayer, 13.4662)

:SYND4_2597
Task.LookAtChar(49@, $scplayer, 6000)
Camera.SetFixedPosition(-2623.715, 1409.642, 7.7873, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2623.871, 1410.628, 7.7269, SwitchType.JumpCut)
wait 1000
$syn4_offsetY = Math.RandomIntInRange(0, 3)
switch_start $syn4_offsetY {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SYND4_3111 {caseNum1} 0 {caseLabel1} @SYND4_2736 {caseNum2} 1 {caseLabel2} @SYND4_2861 {caseNum3} 2 {caseLabel3} @SYND4_2986 {caseNum4} -1 {caseLabel4} @SYND4_3111 {caseNum5} -1 {caseLabel5} @SYND4_3111 {caseNum6} -1 {caseLabel6} @SYND4_3111 {caseNum7} -1 {caseLabel7} @SYND4_3111

:SYND4_2736
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 16611)

:SYND4_2747
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYND4_2773
wait 0
goto @SYND4_2747

:SYND4_2773
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SYN4_BA', 4000, 1)
TIMERB = 0

:SYND4_2800
if 
  4000 > TIMERB
goto_if_false @SYND4_2854
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYND4_2847
goto @SYND4_3343

:SYND4_2847
goto @SYND4_2800

:SYND4_2854
goto @SYND4_3111

:SYND4_2861
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 16612)

:SYND4_2872
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYND4_2898
wait 0
goto @SYND4_2872

:SYND4_2898
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SYN4_BB', 4000, 1)
TIMERB = 0

:SYND4_2925
if 
  4000 > TIMERB
goto_if_false @SYND4_2979
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYND4_2972
goto @SYND4_3343

:SYND4_2972
goto @SYND4_2925

:SYND4_2979
goto @SYND4_3111

:SYND4_2986
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 16613)

:SYND4_2997
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYND4_3023
wait 0
goto @SYND4_2997

:SYND4_3023
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SYN4_BC', 4000, 1)
TIMERB = 0

:SYND4_3050
if 
  4000 > TIMERB
goto_if_false @SYND4_3104
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYND4_3097
goto @SYND4_3343

:SYND4_3097
goto @SYND4_3050

:SYND4_3104
goto @SYND4_3111

:SYND4_3111
TIMERB = 0

:SYND4_3118
if 
  1000 > TIMERB
goto_if_false @SYND4_3179
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYND4_3172
70@ = 1
goto @SYND4_3343

:SYND4_3172
goto @SYND4_3118

:SYND4_3179
Camera.SetFixedPosition(-2671.127, 1432.594, 25.4663, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2670.43, 1431.881, 25.3871, SwitchType.JumpCut)
Text.PrintNow('SYN4_12', 5000, 1)
World.CreateBirds(2682.42, 1420.237, 28.0, -2630.365, 1411.699, 28.0, 3, 0)
TIMERB = 0

:SYND4_3289
if 
  5000 > TIMERB
goto_if_false @SYND4_3343
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYND4_3336
goto @SYND4_3343

:SYND4_3336
goto @SYND4_3289

:SYND4_3343
gosub @SYND4_12730
61@ = Blip.AddForCoord(-2661.924, 1424.278, 22.8906)
if 
  70@ == 1
goto_if_false @SYND4_3404
Text.PrintNow('SYN4_12', 5000, 1)

:SYND4_3404
Player.ApplyBrakesToCar($player1, False)
goto @SYND4_3487

:SYND4_3418
if 
  Char.LocateAnyMeans3D($scplayer, -2660.145, 1419.211, 22.8906, 5.0, 5.0, 5.0, False)
goto_if_false @SYND4_3473
goto @SYND4_3487

:SYND4_3473
goto @SYND4_2095

:SYND4_3480
goto @SYND4_11948

:SYND4_3487
Streaming.RequestModel(28)
Streaming.RequestModel(30)
Streaming.RequestModel(40)
Streaming.RequestModel(63)
Streaming.RequestModel(19)
Streaming.RequestModel(352)
Streaming.RequestModel(214)
Streaming.RequestModel(346)
Streaming.LoadSpecialCharacter(1, 'JIZZY')
Streaming.RequestModel(246)
Streaming.RequestAnimation("SWAT")

:SYND4_3548
if or
  not Streaming.HasModelLoaded(28)
  not Streaming.HasModelLoaded(30)
  not Streaming.HasModelLoaded(40)
  not Streaming.HasModelLoaded(63)
  not Streaming.HasModelLoaded(19)
goto_if_false @SYND4_3590
wait 0
goto @SYND4_3548

:SYND4_3590
if or
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(214)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasAnimationLoaded("SWAT")
  not Streaming.HasModelLoaded(246)
goto_if_false @SYND4_3644
wait 0
goto @SYND4_3590

:SYND4_3644
if 
goto_if_false @SYND4_3666
wait 0
goto @SYND4_3644

:SYND4_3666
39@ = Char.Create(PedType.Special, 290, -2669.127, 1426.919, 905.4609)
Char.SetAreaVisible(39@, 3)
Char.SetAnimGroup(39@, "GANG1")
Game.SetRelationship(RelationshipType.Hate, PedType.Special, PedType.Player1)
Char.SetHeading(39@, 238.0256)
Char.SetSenseRange(39@, 5.0)
Char.SetDecisionMaker(39@, 55@)
44@ = Char.Create(PedType.CivFemale, 63, -2667.656, 1425.854, 905.4609)
Char.SetAreaVisible(44@, 3)
Char.SetHeading(44@, 76.4221)
Char.SetNeverTargeted(44@, True)
Task.ChatWithChar(39@, 44@, True, 1)
Task.ChatWithChar(44@, 39@, False, 1)
43@ = Blip.AddForChar(39@)
Blip.ChangeDisplay(43@, BlipDisplay.Neither)
79@ = Sequence.Open()
Task.SitDown(-1, 200000)
Task.LookAbout(-1, 2000)
Sequence.SetToRepeat(79@, True)
Sequence.Close(79@)
80@ = Sequence.Open()
Task.Pause(-1, 1000)
Char.PerformSequence(-1, 79@)
Sequence.Close(80@)
34@ = Char.Create(PedType.Mission1, 28, -2665.236, 1429.884, 905.4609)
Char.SetHeading(34@, 133.1702)
Char.PerformSequence(34@, 80@)
35@ = Char.Create(PedType.Mission1, 30, -2667.102, 1430.024, 905.4609)
Char.SetHeading(35@, 180.876)
Char.PerformSequence(35@, 79@)
36@ = Char.Create(PedType.Mission1, 28, -2665.064, 1428.402, 905.4609)
Char.SetHeading(36@, 106.0457)
Char.PerformSequence(36@, 79@)
37@ = Char.Create(PedType.Mission1, 63, -2668.117, 1429.933, 905.4609)
Char.SetHeading(37@, 180.876)
Char.PerformSequence(37@, 80@)
112@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2655.508, 1410.566, 905.2734, 4, -1)
Task.AchieveHeading(-1, 263.3926)
Task.Pause(-1, 2000)
Task.GoToCoordAnyMeans(-1, -2655.892, 1406.675, 905.2734, 4, -1)
Task.AchieveHeading(-1, 181.7338)
Task.Pause(-1, 2000)
Sequence.SetToRepeat(112@, True)
Sequence.Close(112@)
113@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2660.268, 1413.959, 905.2734, 4, -1)
Task.AchieveHeading(-1, 348.451)
Task.Pause(-1, 2000)
Task.GoToCoordAnyMeans(-1, -2662.841, 1413.732, 905.2808, 4, -1)
Task.AchieveHeading(-1, 96.5734)
Task.Pause(-1, 2000)
Sequence.SetToRepeat(113@, True)
Sequence.Close(113@)
102@ = Char.Create(PedType.Mission3, 214, -2655.508, 1410.566, 905.2734)
Char.SetHeading(102@, 263.3926)
103@ = Char.Create(PedType.Mission3, 214, -2660.268, 1413.959, 905.2734)
Char.SetHeading(103@, 348.451)
Char.PerformSequence(102@, 112@)
Char.PerformSequence(103@, 113@)
104@ = Char.Create(PedType.Mission3, 28, -2657.269, 1403.575, 905.2812)
Char.SetHeading(104@, 271.0479)
105@ = Char.Create(PedType.Mission3, 63, -2654.617, 1404.656, 905.2812)
Char.SetHeading(105@, 87.3589)
Task.ChatWithChar(104@, 105@, True, 1)
Task.ChatWithChar(105@, 104@, True, 1)
40@ = 0

:SYND4_4433
if 
  not Char.IsDead(34@(40@,5i))
goto_if_false @SYND4_4523
Char.SetAreaVisible(34@(40@,5i), 3)
Char.SetIsTargetPriority(34@(40@,5i), True)
Char.GiveWeapon(34@(40@,5i), WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(34@(40@,5i), WeaponType.MicroUzi)
Char.SetAccuracy(34@(40@,5i), 70)
Char.SetDecisionMaker(34@(40@,5i), 55@)

:SYND4_4523
if 
  not Char.IsDead(102@(40@,10i))
goto_if_false @SYND4_4554
Char.SetAreaVisible(102@(40@,10i), 3)

:SYND4_4554
40@ += 1
  40@ >= 4
goto_if_false @SYND4_4433
$onmission = 1
Stat.RegisterMissionGiven
54@ = Blip.AddForCoord(-2655.075, 1431.789, 912.4016)
Blip.SetEntryExit(54@, -2661.74, 1423.483, 100.0)
Blip.ChangeDisplay(54@, BlipDisplay.Neither)
Camera.SetBehindPlayer
Path.FlushRoute
Path.ExtendRoute(-2653.217, 1424.867, 906.7266)
TIMERA = 0

:SYND4_4659
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_5230
wait 0
if 
  117@ == 0
goto_if_false @SYND4_4897
if 
  not Char.IsDead(49@)
goto_if_false @SYND4_4797
if 
  Player.IsTargetingChar($player1, 49@)
goto_if_false @SYND4_4797
if 
  not Char.IsDead(49@)
goto_if_false @SYND4_4761
Char.ClearTasksImmediately($scplayer)
Task.KillCharOnFoot(49@, $scplayer)

:SYND4_4761
if 
  not Char.IsDead(50@)
goto_if_false @SYND4_4790
Char.ClearTasksImmediately($scplayer)
Task.KillCharOnFoot(50@, $scplayer)

:SYND4_4790
117@ = 1

:SYND4_4797
if 
  not Char.IsDead(50@)
goto_if_false @SYND4_4897
if 
  Player.IsTargetingChar($player1, 50@)
goto_if_false @SYND4_4897
if 
  not Char.IsDead(49@)
goto_if_false @SYND4_4861
Char.ClearTasksImmediately($scplayer)
Task.KillCharOnFoot(49@, $scplayer)

:SYND4_4861
if 
  not Char.IsDead(50@)
goto_if_false @SYND4_4890
Char.ClearTasksImmediately($scplayer)
Task.KillCharOnFoot(50@, $scplayer)

:SYND4_4890
117@ = 1

:SYND4_4897
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @SYND4_4919
goto @SYND4_12163

:SYND4_4919
gosub @SYND4_12831
gosub @SYND4_13645
if and
  Char.LocateAnyMeans3D($scplayer, -2661.01, 1415.384, 921.1953, 20.0, 20.0, 20.0, False)
  48@ == 0
goto_if_false @SYND4_5223
World.SwitchEntryExit('PDOMES', False)
if 
  Blip.DoesExist(59@)
goto_if_false @SYND4_5022
Blip.Remove(59@)

:SYND4_5022
Blip.Remove(61@)
45@ = Blip.AddForCoord(-2667.368, 1427.435, 905.4609)
Blip.SetEntryExit(45@, -2661.74, 1423.483, 100.0)
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_5118
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinatesDontWarpGang($scplayer, -2661.055, 1416.019, 921.1953)
Char.SetHeading($scplayer, 180.0)

:SYND4_5118
48@ = 1
if 
  not Char.IsDead(49@)
goto_if_false @SYND4_5146
Char.Delete(49@)

:SYND4_5146
if 
  not Char.IsDead(50@)
goto_if_false @SYND4_5167
Char.Delete(50@)

:SYND4_5167
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_5193
Char.SetHeading($scplayer, 197.6688)

:SYND4_5193
Text.PrintNow('SYN4_99', 4000, 1)
Game.SetWantedMultiplier(0.0)
goto @SYND4_5237

:SYND4_5223
goto @SYND4_4659

:SYND4_5230
goto @SYND4_11948

:SYND4_5237
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_11941
wait 0
gosub @SYND4_12831
gosub @SYND4_13645
if 
  46@ == 0
goto_if_false @SYND4_7620
if 
  83@ == 1
goto_if_false @SYND4_5321
115@ = 1
goto @SYND4_11948

:SYND4_5321
40@ = 0

:SYND4_5328
if 
  Char.HasBeenDamagedByChar(34@(40@,5i), $scplayer)
goto_if_false @SYND4_5381
Text.PrintNow('SYN4_08', 4000, 1)
83@ = 1
TIMERA = 0

:SYND4_5381
40@ += 1
  40@ >= 4
goto_if_false @SYND4_5328
if 
  Char.HasBeenDamagedByChar(39@, $scplayer)
goto_if_false @SYND4_5451
Text.PrintNow('SYN4_06', 4000, 1)
83@ = 1
TIMERA = 0

:SYND4_5451
if 
  Char.HasBeenDamagedByChar(44@, $scplayer)
goto_if_false @SYND4_5500
Text.PrintNow('SYN4_08', 4000, 1)
83@ = 1
TIMERA = 0

:SYND4_5500
if 
  Char.LocateAnyMeans3D($scplayer, -2668.716, 1421.846, 905.277, 15.0, 15.0, 15.0, False)
goto_if_false @SYND4_7620
World.SwitchEntryExit('PDOMES2', True)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.Out)

:SYND4_5576
if 
  Camera.GetFadingStatus
goto_if_false @SYND4_5600
wait 0
goto @SYND4_5576

:SYND4_5600
40@ = 0

:SYND4_5607
Char.Delete(34@(40@,5i))
40@ += 1
  40@ >= 4
goto_if_false @SYND4_5607
if 
  not Char.IsDead(44@)
goto_if_false @SYND4_5658
Char.Delete(44@)

:SYND4_5658
if 
  Blip.DoesExist(43@)
goto_if_false @SYND4_5679
Blip.Remove(43@)

:SYND4_5679
if 
  not Char.IsDead(39@)
goto_if_false @SYND4_5700
Char.Delete(39@)

:SYND4_5700
Cutscene.Load('SYND_4B')

:SYND4_5711
if 
  not Cutscene.HasLoaded
goto_if_false @SYND4_5735
wait 0
goto @SYND4_5711

:SYND4_5735
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:SYND4_5744
if 
  not Cutscene.HasFinished
goto_if_false @SYND4_5768
wait 0
goto @SYND4_5744

:SYND4_5768
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:SYND4_5783
if 
  Camera.GetFadingStatus
goto_if_false @SYND4_5807
wait 0
goto @SYND4_5783

:SYND4_5807
gosub @SYND4_12699
39@ = Char.Create(PedType.Special, 290, -2669.127, 1426.919, 905.4609)
Char.SetAreaVisible(39@, 3)
Char.SetAnimGroup(39@, "GANG1")
Game.SetRelationship(RelationshipType.Hate, PedType.Special, PedType.Player1)
Char.SetHeading(39@, 238.0256)
Char.SetSenseRange(39@, 5.0)
Char.SetDecisionMaker(39@, 55@)
34@ = Char.Create(PedType.Mission1, 28, -2665.236, 1429.884, 905.4609)
Char.SetHeading(34@, 133.1702)
Char.PerformSequence(34@, 80@)
35@ = Char.Create(PedType.Mission1, 30, -2667.102, 1430.024, 905.4609)
Char.SetHeading(35@, 180.876)
Char.PerformSequence(35@, 79@)
36@ = Char.Create(PedType.Mission1, 28, -2665.064, 1428.402, 905.4609)
Char.SetHeading(36@, 106.0457)
Char.PerformSequence(36@, 79@)
37@ = Char.Create(PedType.Mission1, 63, -2668.117, 1429.933, 905.4609)
Char.SetHeading(37@, 180.876)
Char.PerformSequence(37@, 80@)
43@ = Blip.AddForChar(39@)
Blip.ChangeDisplay(43@, BlipDisplay.Neither)
Streaming.UnloadSpecialCharacter(1)
40@ = 0

:SYND4_6088
Char.SetAreaVisible(34@(40@,5i), 3)
Char.GiveWeapon(34@(40@,5i), WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(34@(40@,5i), WeaponType.MicroUzi)
40@ += 1
  40@ >= 4
goto_if_false @SYND4_6088
if 
  not Char.IsDead(39@)
goto_if_false @SYND4_6202
Camera.SetFixedPosition(-2669.571, 1410.871, 907.8965, 0.0, 0.0, 0.0)
Camera.PointAtChar(39@, CameraMode.Fixed, SwitchType.JumpCut)

:SYND4_6202
87@ = Char.Create(PedType.Mission1, 163, -2667.152, 1421.553, 905.2812)
Char.SetHeading(87@, 275.4244)
Task.TogglePedThreatScanner(87@, False, False, False)
Char.SetAreaVisible(87@, 3)
wait 100
Camera.DoFade(0, Fade.In)

:SYND4_6265
if 
  Camera.GetFadingStatus
goto_if_false @SYND4_6289
wait 0
goto @SYND4_6265

:SYND4_6289
Text.PrintNow('SYN4_05', 4000, 1)
if 
  not Char.IsDead(87@)
goto_if_false @SYND4_6329
Char.PerformSequence(87@, 73@)

:SYND4_6329
40@ = 0

:SYND4_6336
if 
  not Char.IsDead(102@(40@,10i))
goto_if_false @SYND4_6376
Char.ClearTasksImmediately(102@(40@,10i))
Task.Duck(102@(40@,10i), -2)

:SYND4_6376
40@ += 1
  40@ >= 4
goto_if_false @SYND4_6336
if 
  not Char.IsDead(39@)
goto_if_false @SYND4_6487
Char.ClearTasks(39@)
Char.SetCoordinatesDontWarpGang(39@, -2664.462, 1421.766, 905.277)
Char.SetHeading(39@, 249.6271)
Char.PerformSequence(39@, 73@)
Char.AddArmor(39@, 150)
Char.SetHealth(39@, 300)
Char.SetMaxHealth(39@, 300)
Char.SetSuffersCriticalHits(39@, False)

:SYND4_6487
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_6540
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinatesDontWarpGang($scplayer, -2666.638, 1410.305, 905.2812)
Char.SetHeading($scplayer, 0.0)
Camera.SetBehindPlayer

:SYND4_6540
wait 1000
TIMERB = 0

:SYND4_6552
if 
  3000 > TIMERB
goto_if_false @SYND4_6606
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYND4_6599
goto @SYND4_6606

:SYND4_6599
goto @SYND4_6552

:SYND4_6606
gosub @SYND4_12730
128@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2639.277, 1409.022, 905.4646, 4, -1)
Task.AchieveHeading(-1, 63.4408)
Sequence.Close(128@)
126@ = Sequence.Open()
Char.PerformSequence(-1, 128@)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_R", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootTimed(-1, $scplayer, 2000)
Task.StayInSamePlace(-1, False)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_OUT_R", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(126@, True)
Sequence.Close(126@)
127@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2639.352, 1402.766, 905.4646, 4, -1)
Task.AchieveHeading(-1, 73.286)
Sequence.Close(127@)
129@ = Sequence.Open()
Char.PerformSequence(-1, 127@)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_L", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootTimed(-1, $scplayer, 2000)
Task.StayInSamePlace(-1, False)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_OUT_L", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(129@, True)
Sequence.Close(129@)
130@ = Char.Create(PedType.Mission1, 163, -2639.277, 1409.022, 905.4646)
Char.SetAreaVisible(130@, 1)
Char.SetHeading(130@, 63.4408)
Char.SetDecisionMaker(130@, 55@)
Char.PerformSequence(130@, 126@)
131@ = Char.Create(PedType.Mission1, 164, -2639.352, 1402.766, 905.4646)
Char.SetAreaVisible(131@, 1)
Char.SetHeading(131@, 73.286)
Char.SetDecisionMaker(131@, 55@)
Char.PerformSequence(131@, 129@)
Char.GiveWeapon(130@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(130@, WeaponType.MicroUzi)
Char.GiveWeapon(131@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(131@, WeaponType.MicroUzi)
if 
  not Char.IsDead(34@)
goto_if_false @SYND4_7325
Char.SetCoordinatesDontWarpGang(34@, -2671.761, 1420.303, 905.2812)
Char.SetHeading(34@, 214.6866)

:SYND4_7325
if 
  not Char.IsDead(35@)
goto_if_false @SYND4_7371
Char.SetCoordinatesDontWarpGang(35@, -2665.095, 1421.339, 905.2812)
Char.SetHeading(35@, 167.6077)

:SYND4_7371
if 
  not Char.IsDead(39@)
goto_if_false @SYND4_7443
Char.ClearTasksImmediately(39@)
Blip.ChangeDisplay(43@, BlipDisplay.Neither)
Char.SetCoordinatesDontWarpGang(39@, -2621.465, 1411.338, 6.1094)
Char.SetHeading(39@, 277.734)
Char.SetAreaVisible(39@, 0)
74@ = 1

:SYND4_7443
if 
  not Char.IsDead(87@)
goto_if_false @SYND4_7501
Char.ClearTasksImmediately(87@)
Char.SetCoordinatesDontWarpGang(87@, -2625.836, 1404.75, 6.0938)
Char.SetHeading(87@, 279.9147)
Char.SetAreaVisible(87@, 0)

:SYND4_7501
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
40@ = 0

:SYND4_7516
if 
  not Char.IsDead(34@(40@,5i))
goto_if_false @SYND4_7569
Char.ClearTasksImmediately(34@(40@,5i))
Task.KillCharOnFoot(34@(40@,5i), $scplayer)
Char.SetDecisionMaker(34@(40@,5i), 47@)

:SYND4_7569
40@ += 1
  40@ >= 4
goto_if_false @SYND4_7516
Blip.ChangeDisplay(60@, BlipDisplay.Both)
Blip.ChangeDisplay(45@, BlipDisplay.Neither)
Camera.SetBehindPlayer
41@ = 1
46@ = 1

:SYND4_7620
if 
  Char.LocateAnyMeans3D($scplayer, -2640.998, 1406.275, 905.4609, 8.0, 8.0, 8.0, False)
goto_if_false @SYND4_7754
if and
  not Char.IsDead(130@)
  98@ == 0
goto_if_false @SYND4_7711
Char.ClearTasksImmediately(130@)
Task.KillCharOnFoot(130@, $scplayer)
98@ = 1

:SYND4_7711
if and
  not Char.IsDead(131@)
  99@ == 0
goto_if_false @SYND4_7754
Char.ClearTasksImmediately(131@)
Task.KillCharOnFoot(131@, $scplayer)
99@ = 1

:SYND4_7754
if 
  46@ == 1
goto_if_false @SYND4_11322
if 
  41@ == 1
goto_if_false @SYND4_9162
if and
  Char.IsDead(39@)
  85@ == 0
goto_if_false @SYND4_7841
if 
  Blip.DoesExist(60@)
goto_if_false @SYND4_7834
Blip.Remove(60@)

:SYND4_7834
goto @SYND4_12163

:SYND4_7841
if 
  not Char.IsDead(39@)
goto_if_false @SYND4_7984
if and
  Char.LocateAnyMeans3D(39@, -2636.385, 1402.485, 905.4609, 2.0, 2.0, 2.0, False)
  74@ == 0
goto_if_false @SYND4_7984
if 
  not Char.IsDead(39@)
goto_if_false @SYND4_7984
Char.ClearTasks(39@)
Blip.ChangeDisplay(43@, BlipDisplay.Neither)
Char.SetCoordinatesDontWarpGang(39@, -2621.465, 1411.338, 6.1094)
Char.SetHeading(39@, 277.734)
Char.SetAreaVisible(39@, 0)
74@ = 1

:SYND4_7984
if or
  Char.LocateAnyMeans3D($scplayer, -2624.8, 1411.54, 6.1015, 4.0, 4.0, 4.0, False)
  Char.LocateAnyMeans3D($scplayer, -2661.85, 1426.39, 22.8985, 4.0, 4.0, 4.0, False)
goto_if_false @SYND4_9162
gosub @SYND4_12765
World.SwitchEntryExit('PDOMES', False)
World.SwitchEntryExit('PDOMES2', False)
Path.MarkRoadNodeAsDontWander(-2686.415, 1235.572, 54.4297)
Path.MarkRoadNodeAsDontWander(-2671.298, 1236.492, 54.4297)
if 
  Car.IsDead(64@)
goto_if_false @SYND4_8297
Car.Delete(64@)
World.ClearArea(-2611.471, 1409.036, 6.1335, 20.0, True)
Streaming.RequestModel(448)
Streaming.RequestModel(155)

:SYND4_8191
if or
  not Streaming.HasModelLoaded(448)
  not Streaming.HasModelLoaded(155)
goto_if_false @SYND4_8223
wait 0
goto @SYND4_8191

:SYND4_8223
64@ = Car.Create(448, -2611.471, 1409.036, 6.1335)
Car.SetHeading(64@, 274.4727)
132@ = Char.CreateInsideCar(64@, PedType.CivMale, 155)
Char.Delete(87@)
if 
  not Char.IsDead(39@)
goto_if_false @SYND4_8297
Char.SetCanBeKnockedOffBike(39@, 3)

:SYND4_8297
75@ = Sequence.Open()
Task.EnterCarAsDriver(-1, 64@, 5000)
Task.Pause(-1, 1000)
Task.CarDriveWander(-1, 64@, 20.0, DrivingMode.AvoidCars)
Sequence.Close(75@)
76@ = Sequence.Open()
Task.LeaveCar(-1, 64@)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(76@)
Car.ChangeColor(64@, 4, 4)
World.ClearArea(-2621.81, 1398.744, 6.086, 20.0, True)
Blip.Remove(60@)
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_9162
Char.SetAreaVisible($scplayer, 0)
Weather.ForceNow(WeatherType.FoggySf)
Streaming.SetAreaVisible(0)
Camera.SetBehindPlayer
if 
  not Char.IsDead(39@)
goto_if_false @SYND4_8479
Char.SetCoordinatesDontWarpGang(39@, -2624.485, 1411.353, 6.1015)
Char.SetHeading(39@, 267.9166)

:SYND4_8479
if 
  not Char.IsDead(87@)
goto_if_false @SYND4_8569
Char.ClearTasksImmediately(87@)
Char.SetCoordinatesDontWarpGang(87@, -2620.604, 1406.97, 6.1016)
Char.SetHeading(87@, 277.7697)
Char.GiveWeapon(87@, WeaponType.Pistol, 30000)
Char.SetCurrentWeapon(87@, WeaponType.Pistol)
Char.SetDecisionMaker(87@, 88@)
Char.SetAccuracy(87@, 30)
Char.SetShootRate(87@, 30)

:SYND4_8569
Char.Delete(44@)
40@ = 0

:SYND4_8581
Char.Delete(34@(40@,5i))
40@ += 1
  40@ >= 4
goto_if_false @SYND4_8581
gosub @SYND4_12699
if and
  not Char.IsDead(39@)
  not Car.IsDead(64@)
goto_if_false @SYND4_8703
Camera.SetFixedPosition(-2626.019, 1411.502, 9.1763, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2625.059, 1411.35, 8.9421, SwitchType.JumpCut)
Char.ClearTasksImmediately(39@)
Char.PerformSequence(39@, 75@)

:SYND4_8703
if 
  not Char.IsDead(87@)
goto_if_false @SYND4_8737
Char.ClearTasksImmediately(87@)
Task.EnterCarAsPassenger(87@, 64@, 5000, 0)

:SYND4_8737
gosub @SYND4_12798
TIMERB = 0

:SYND4_8751
if 
  4000 > TIMERB
goto_if_false @SYND4_8803
wait 0
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  Char.IsDead(132@)
goto_if_false @SYND4_8796

:SYND4_8796
goto @SYND4_8751

:SYND4_8803
85@ = 1
gosub @SYND4_12730
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_8863
Char.SetCoordinatesDontWarpGang($scplayer, -2627.1, 1410.399, 6.1015)
Char.SetHeading($scplayer, 279.1925)

:SYND4_8863
133@ = Sequence.Open()
Task.Pause(-1, 4000)
Task.DriveBy(-1, $scplayer, -1, 0.0, 0.0, 0.0, 10.0, DriveByType.Ai, False, 30)
Sequence.SetToRepeat(133@, True)
Sequence.Close(133@)
if 
  not Car.IsDead(64@)
goto_if_false @SYND4_9116
if and
  not Char.IsDead(87@)
  not Char.IsDead(39@)
goto_if_false @SYND4_9007
if 
  not Char.IsInCar(87@, 64@)
goto_if_false @SYND4_8988
Char.WarpIntoCarAsPassenger(87@, 64@, 0)

:SYND4_8988
Task.TogglePedThreatScanner(87@, True, True, True)
Char.PerformSequence(87@, 133@)

:SYND4_9007
if and
  not Char.IsDead(39@)
  not Car.IsDead(64@)
goto_if_false @SYND4_9116
Char.GiveWeapon(39@, WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(39@, WeaponType.MicroUzi)
Char.SetAccuracy(39@, 90)
if 
  not Char.IsInCar(39@, 64@)
goto_if_false @SYND4_9116
if 
  not Char.IsDead(132@)
goto_if_false @SYND4_9108
if 
  Char.IsInAnyCar(132@)
goto_if_false @SYND4_9108
Char.Delete(132@)

:SYND4_9108
Char.WarpIntoCar(39@, 64@)

:SYND4_9116
Text.ClearPrints
Blip.ChangeDisplay(43@, BlipDisplay.Both)
Text.PrintNow('SYN4_02', 10000, 1)
TIMERA = 0
Game.SetWantedMultiplier(1.0)
41@ = 2

:SYND4_9162
if 
  not Char.IsDead(39@)
goto_if_false @SYND4_9332
$off1_X, $off1_Y, $girl_health = Char.GetCoordinates(39@)
if 
  Char.IsInAnyCar(39@)
goto_if_false @SYND4_9216
$car = Char.StoreCarIsInNoSave(39@)

:SYND4_9216
$s4_limo_hlth = Char.GetHighestPriorityEvent(39@)
if 
  is_int_var_equal_to_constant $s4_limo_hlth == 7
goto_if_false @SYND4_9278
Char.ClearTasks(39@)
Task.FleeCharAnyMeans(39@, $scplayer, 200.0, 9999999, True, 3000, 1000, 10.0)

:SYND4_9278
if 
  is_int_var_equal_to_constant $s4_limo_hlth == 17
goto_if_false @SYND4_9332
Char.ClearTasks(39@)
Task.FleeCharAnyMeans(39@, $scplayer, 200.0, 9999999, True, 3000, 1000, 10.0)

:SYND4_9332
if 
  not Char.IsDead(87@)
goto_if_false @SYND4_9418
$s4_limo_hlth = Char.GetHighestPriorityEvent(87@)
if 
  is_int_var_equal_to_constant $s4_limo_hlth == 17
goto_if_false @SYND4_9387
Char.ClearTasks(87@)
Task.KillCharOnFoot(87@, $scplayer)

:SYND4_9387
if 
  is_int_var_equal_to_constant $s4_limo_hlth == 7
goto_if_false @SYND4_9418
Char.ClearTasks(87@)
Task.KillCharOnFoot(87@, $scplayer)

:SYND4_9418
if 
  not Car.IsDead($car)
goto_if_false @SYND4_9653
90@ = Car.GetHealth($car)
if 
  200 > 90@
goto_if_false @SYND4_9534
89@ = 1
if and
  not Char.IsDead(87@)
  93@ == 0
goto_if_false @SYND4_9527
134@ = Sequence.Open()
Task.LeaveCarImmediately(-1, $car)
Task.Die(-1)
Sequence.Close(134@)
Char.PerformSequence(87@, 134@)
93@ = 1

:SYND4_9527
goto @SYND4_9541

:SYND4_9534
89@ = 0

:SYND4_9541
if and
  Car.IsOnFire($car)
  94@ == 0
  not Char.IsDead(39@)
goto_if_false @SYND4_9653
135@ = Sequence.Open()
Task.LeaveCarImmediately(-1, $car)
Task.FleeCharAnyMeans(-1, $scplayer, 200.0, 9999999, True, 3000, 1000, 10.0)
Sequence.SetToRepeat(135@, True)
Sequence.Close(135@)
Char.SetDecisionMaker(39@, 55@)
TIMERB = 0
Char.PerformSequence(39@, 135@)
94@ = 1

:SYND4_9653
if 
  41@ == 2
goto_if_false @SYND4_10172
if and
  Car.IsDead(64@)
  77@ == 0
goto_if_false @SYND4_9717
Text.PrintNow('SYN4_32', 5000, 1)
goto @SYND4_11948

:SYND4_9717
if and
  not Car.IsDead(64@)
  not Char.IsDead(39@)
goto_if_false @SYND4_9778
if 
  Char.IsInCar(39@, 64@)
goto_if_false @SYND4_9771
77@ = 0
goto @SYND4_9778

:SYND4_9771
77@ = 1

:SYND4_9778
if 
  not Char.IsDead(39@)
goto_if_false @SYND4_10061
if 
  Char.LocateAnyMeans3D($scplayer, $off1_X, $off1_Y, $girl_health, 20.0, 20.0, 20.0, False)
goto_if_false @SYND4_9952
if and
  not Car.IsDead(64@)
  86@ == 0
goto_if_false @SYND4_9945
if 
  not Car.IsOnFire(64@)
goto_if_false @SYND4_9945
if 
  89@ == 0
goto_if_false @SYND4_9919
Task.CarMission(39@, 64@, -1, CarMission.Cruise, 25.0, DrivingMode.AvoidCars)
goto @SYND4_9938

:SYND4_9919
Task.CarMission(39@, 64@, -1, CarMission.Cruise, 32.0, DrivingMode.AvoidCars)

:SYND4_9938
86@ = 1

:SYND4_9945
goto @SYND4_10061

:SYND4_9952
if and
  not Car.IsDead(64@)
  86@ == 1
goto_if_false @SYND4_10061
if 
  not Car.IsOnFire(64@)
goto_if_false @SYND4_10061
if 
  89@ == 0
goto_if_false @SYND4_10035
Task.CarMission(39@, 64@, -1, CarMission.Cruise, 23.0, DrivingMode.AvoidCars)
goto @SYND4_10054

:SYND4_10035
Task.CarMission(39@, 64@, -1, CarMission.Cruise, 28.0, DrivingMode.AvoidCars)

:SYND4_10054
86@ = 0

:SYND4_10061
if 
  not Char.IsDead(39@)
goto_if_false @SYND4_10172
if 
  not Char.LocateAnyMeans3D($scplayer, $off1_X, $off1_Y, $girl_health, 150.0, 150.0, 150.0, False)
goto_if_false @SYND4_10142
Text.PrintNow('SYN4_29', 4000, 1)
goto @SYND4_11948

:SYND4_10142
if and
  not Char.IsInAnyCar(39@)
  91@ == 0
goto_if_false @SYND4_10172
91@ = 1

:SYND4_10172
if and
  not Char.IsDead(39@)
  not Car.IsDead(64@)
  not Char.IsDead($scplayer)
goto_if_false @SYND4_10865
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SYND4_10865
84@ = Char.StoreCarIsIn($scplayer)
92@ += 1
if 
  92@ > 100
goto_if_false @SYND4_10259
Car.ClearLastDamageEntity(64@)
92@ = 0

:SYND4_10259
if and
  not Car.IsDead(84@)
  TIMERA > 12000
goto_if_false @SYND4_10865
if 
  Car.HasBeenDamagedByCar(64@, 84@)
goto_if_false @SYND4_10865
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @SYND4_10865
100@ += 1
if 
  100@ == 1
goto_if_false @SYND4_10369
set_lvar_text_label 118@s = 'SYN4_AA'
set_lvar_int_to_constant 96@ = 16600
gosub @SYND4_13625

:SYND4_10369
if 
  100@ == 2
goto_if_false @SYND4_10416
set_lvar_text_label 118@s = 'SYN4_AB'
set_lvar_int_to_constant 96@ = 16601
gosub @SYND4_13625

:SYND4_10416
if 
  100@ == 3
goto_if_false @SYND4_10463
set_lvar_text_label 118@s = 'SYN4_AC'
set_lvar_int_to_constant 96@ = 16602
gosub @SYND4_13625

:SYND4_10463
if 
  100@ == 4
goto_if_false @SYND4_10510
set_lvar_text_label 118@s = 'SYN4_AD'
set_lvar_int_to_constant 96@ = 16603
gosub @SYND4_13625

:SYND4_10510
if 
  100@ == 5
goto_if_false @SYND4_10557
set_lvar_text_label 118@s = 'SYN4_AE'
set_lvar_int_to_constant 96@ = 16604
gosub @SYND4_13625

:SYND4_10557
if 
  100@ == 6
goto_if_false @SYND4_10604
set_lvar_text_label 118@s = 'SYN4_AF'
set_lvar_int_to_constant 96@ = 16605
gosub @SYND4_13625

:SYND4_10604
if 
  100@ == 7
goto_if_false @SYND4_10651
set_lvar_text_label 118@s = 'SYN4_AG'
set_lvar_int_to_constant 96@ = 16606
gosub @SYND4_13625

:SYND4_10651
if 
  100@ == 8
goto_if_false @SYND4_10698
set_lvar_text_label 118@s = 'SYN4_AH'
set_lvar_int_to_constant 96@ = 16607
gosub @SYND4_13625

:SYND4_10698
if 
  100@ == 9
goto_if_false @SYND4_10745
set_lvar_text_label 118@s = 'SYN4_AJ'
set_lvar_int_to_constant 96@ = 16608
gosub @SYND4_13625

:SYND4_10745
if 
  100@ == 10
goto_if_false @SYND4_10792
set_lvar_text_label 118@s = 'SYN4_AK'
set_lvar_int_to_constant 96@ = 16609
gosub @SYND4_13625

:SYND4_10792
if 
  100@ == 11
goto_if_false @SYND4_10846
set_lvar_text_label 118@s = 'SYN4_AL'
set_lvar_int_to_constant 96@ = 16610
gosub @SYND4_13625
100@ = 0

:SYND4_10846
TIMERA = 0
92@ = 0
Car.ClearLastDamageEntity(64@)

:SYND4_10865
if and
  Char.IsDead(39@)
  56@ == 0
goto_if_false @SYND4_11013
if 
  Blip.DoesExist(43@)
goto_if_false @SYND4_10909
Blip.Remove(43@)

:SYND4_10909
Streaming.RequestModel(#MOBILE1993B)

:SYND4_10914
if 
  not Streaming.HasModelLoaded(#MOBILE1993B)
goto_if_false @SYND4_10941
wait 0
goto @SYND4_10914

:SYND4_10941
136@ = World.GetGroundZFor3DCoord($off1_X, $off1_Y, $girl_health)
136@ += 0.5
78@ = Object.CreateNoOffset(#MOBILE1993B, $off1_X, $off1_Y, 136@)
69@ = Blip.AddForObject(78@)
Text.PrintNow('SYN4_33', 4000, 1)
56@ = 1

:SYND4_11013
if 
  56@ == 1
goto_if_false @SYND4_11060
Fx.DrawCorona($off1_X, $off1_Y, 136@, 0.2, 9, FlareType.None, 200, 200, 200)

:SYND4_11060
if and
  Char.LocateAnyMeans3D($scplayer, $off1_X, $off1_Y, $girl_health, 1.2, 1.2, 2.0, False)
  56@ == 1
  not Char.IsInAnyCar($scplayer)
goto_if_false @SYND4_11193
Text.ClearPrints
Object.Delete(78@)
if 
  Blip.DoesExist(69@)
goto_if_false @SYND4_11142
Blip.Remove(69@)

:SYND4_11142
if 
  Blip.DoesExist(43@)
goto_if_false @SYND4_11163
Blip.Remove(43@)

:SYND4_11163
Text.PrintNow('SYN4_11', 2000, 1)
TIMERB = 0
56@ = 2

:SYND4_11193
if and
  56@ == 2
  TIMERB > 2000
  not Char.IsStuckUnderCar($scplayer)
goto_if_false @SYND4_11322
gosub @SYND4_12699

:SYND4_11231
Streaming.RequestModel(330)

:SYND4_11236
if 
  not Streaming.HasModelLoaded(330)
goto_if_false @SYND4_11263
wait 0
goto @SYND4_11236

:SYND4_11263
Player.ClearWantedLevel($player1)
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_11296
Char.ClearTasks($scplayer)
Task.UseMobilePhone($scplayer, True)

:SYND4_11296
wait 2000
gosub @SYND4_12730
46@ = 2
TIMERB = 0

:SYND4_11322
if 
  46@ == 2
goto_if_false @SYND4_11934
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @SYND4_11371
95@ = 6
95@ = 6

:SYND4_11371
if and
  97@ == 2
  95@ == 0
goto_if_false @SYND4_11456
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_11420
Char.StartFacialTalk($scplayer, 10000)

:SYND4_11420
set_lvar_text_label 118@s = 'MCES11A'
set_lvar_int_to_constant 96@ = 4716
gosub @SYND4_13625
95@ = 1

:SYND4_11456
if and
  97@ == 2
  95@ == 1
goto_if_false @SYND4_11538
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_11502
Char.StopFacialTalk($scplayer)

:SYND4_11502
set_lvar_text_label 118@s = 'MCES11B'
set_lvar_int_to_constant 96@ = 4665
gosub @SYND4_13625
95@ = 2

:SYND4_11538
if and
  97@ == 2
  95@ == 2
goto_if_false @SYND4_11623
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_11587
Char.StartFacialTalk($scplayer, 10000)

:SYND4_11587
set_lvar_text_label 118@s = 'MCES11C'
set_lvar_int_to_constant 96@ = 4717
gosub @SYND4_13625
95@ = 3

:SYND4_11623
if and
  97@ == 2
  95@ == 3
goto_if_false @SYND4_11705
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_11669
Char.StopFacialTalk($scplayer)

:SYND4_11669
set_lvar_text_label 118@s = 'MCES11D'
set_lvar_int_to_constant 96@ = 4718
gosub @SYND4_13625
95@ = 4

:SYND4_11705
if and
  97@ == 2
  95@ == 4
goto_if_false @SYND4_11766
set_lvar_text_label 118@s = 'MCES11E'
set_lvar_int_to_constant 96@ = 4666
gosub @SYND4_13625
95@ = 5

:SYND4_11766
if and
  97@ == 2
  95@ == 5
goto_if_false @SYND4_11851
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_11815
Char.StartFacialTalk($scplayer, 10000)

:SYND4_11815
set_lvar_text_label 118@s = 'MCES11F'
set_lvar_int_to_constant 96@ = 4719
gosub @SYND4_13625
95@ = 6

:SYND4_11851
if and
  97@ == 2
  95@ == 6
goto_if_false @SYND4_11934
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_11897
Char.StopFacialTalk($scplayer)

:SYND4_11897
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_11920
Task.UseMobilePhone($scplayer, False)

:SYND4_11920
gosub @SYND4_12730
goto @SYND4_12163

:SYND4_11934
goto @SYND4_5237

:SYND4_11941
goto @SYND4_11948

:SYND4_11948
if 
  Blip.DoesExist(43@)
goto_if_false @SYND4_11969
Blip.Remove(43@)

:SYND4_11969
if 
  Blip.DoesExist(45@)
goto_if_false @SYND4_11990
Blip.Remove(45@)

:SYND4_11990
if 
  Blip.DoesExist(54@)
goto_if_false @SYND4_12011
Blip.Remove(54@)

:SYND4_12011
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if or
  41@ == 1
  115@ == 1
goto_if_false @SYND4_12159
gosub @SYND4_12765
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_12152
41@ = 1
Streaming.SetAreaVisible(0)
Streaming.RequestCollision(-2623.805, 1409.816)
Char.SetAreaVisible($scplayer, 0)
Char.SetCoordinatesDontWarpGang($scplayer, -2624.461, 1410.706, 6.1015)
Char.SetHeading($scplayer, 176.884)
Streaming.LoadScene(-2624.461, 1410.706, 6.1015)

:SYND4_12152
gosub @SYND4_12798

:SYND4_12159
Camera.SetBehindPlayer
return 

:SYND4_12163
Text.ClearPrints
if 
  Blip.DoesExist(43@)
goto_if_false @SYND4_12186
Blip.Remove(43@)

:SYND4_12186
if 
  Blip.DoesExist(45@)
goto_if_false @SYND4_12207
Blip.Remove(45@)

:SYND4_12207
if 
  Blip.DoesExist(54@)
goto_if_false @SYND4_12228
Blip.Remove(54@)

:SYND4_12228
$flag_synd_mission_counter += 1
Text.PrintWithNumberBig('M_PASSS', 12000, 5000, TextStyle.Middle)
Player.AddScore($player1, 12000)
Blip.Remove($synd_contact_blip)
Stat.AwardPlayerMissionRespect(30)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Stat.RegisterMissionPassed('SYND_4')
Stat.PlayerMadeProgress(1)
Blip.Remove($garage_contact_blip)
$garage_contact_blip = Blip.AddSpriteForContactPoint(-1717.05, 1280.91, 6.23, $garage_blip_icon)
return 

:SYND4_12325
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_12346
Char.StopFacialTalk($scplayer)

:SYND4_12346
if 
  not Char.IsDead(39@)
goto_if_false @SYND4_12367
Char.RemoveElegantly(39@)

:SYND4_12367
World.SwitchEntryExit('PDOMES', False)
World.SwitchEntryExit('PDOMES2', False)
Game.SetWantedMultiplier(1.0)
Path.UnmarkAllRoadNodesAsDontWander
if 
  Blip.DoesExist(69@)
goto_if_false @SYND4_12423
Blip.Remove(69@)

:SYND4_12423
if 
  Blip.DoesExist(59@)
goto_if_false @SYND4_12444
Blip.Remove(59@)

:SYND4_12444
if 
  Blip.DoesExist(43@)
goto_if_false @SYND4_12465
Blip.Remove(43@)

:SYND4_12465
if 
  Blip.DoesExist(45@)
goto_if_false @SYND4_12486
Blip.Remove(45@)

:SYND4_12486
if 
  Blip.DoesExist(54@)
goto_if_false @SYND4_12507
Blip.Remove(54@)

:SYND4_12507
if 
  Blip.DoesExist(60@)
goto_if_false @SYND4_12528
Blip.Remove(60@)

:SYND4_12528
if 
  Blip.DoesExist(61@)
goto_if_false @SYND4_12549
Blip.Remove(61@)

:SYND4_12549
$timer_mobile_start = Clock.GetGameTimer()
Streaming.MarkModelAsNoLongerNeeded(347)
Streaming.MarkModelAsNoLongerNeeded(28)
Streaming.MarkModelAsNoLongerNeeded(30)
Streaming.MarkModelAsNoLongerNeeded(63)
Streaming.MarkModelAsNoLongerNeeded(40)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(#MOBILE1993B)
Streaming.MarkModelAsNoLongerNeeded(#WAREHOUSE_DOOR2B)
Streaming.MarkModelAsNoLongerNeeded(409)
Streaming.MarkModelAsNoLongerNeeded(19)
Streaming.MarkModelAsNoLongerNeeded(409)
Streaming.MarkModelAsNoLongerNeeded(575)
Streaming.MarkModelAsNoLongerNeeded(163)
Streaming.MarkModelAsNoLongerNeeded(164)
Streaming.MarkModelAsNoLongerNeeded(71)
Streaming.MarkModelAsNoLongerNeeded(214)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(448)
Streaming.MarkModelAsNoLongerNeeded(155)
Streaming.MarkModelAsNoLongerNeeded(246)
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_12674
Player.ClearWantedLevel($player1)

:SYND4_12674
Streaming.RemoveAnimation("SWAT")
Streaming.UnloadSpecialCharacter(1)
$onmission = 0
Weather.Release
Mission.Finish
return 

:SYND4_12699
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_12728
Text.ClearPrints
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)

:SYND4_12728
return 

:SYND4_12730
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_12763
Text.ClearPrints
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut

:SYND4_12763
return 

:SYND4_12765
Camera.DoFade(500, Fade.Out)

:SYND4_12772
if 
  Camera.GetFadingStatus
goto_if_false @SYND4_12796
wait 0
goto @SYND4_12772

:SYND4_12796
return 

:SYND4_12798
Camera.DoFade(500, Fade.In)

:SYND4_12805
if 
  Camera.GetFadingStatus
goto_if_false @SYND4_12829
wait 0
goto @SYND4_12805

:SYND4_12829
return 

:SYND4_12831
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @SYND4_12892
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_12892
Char.SetCoordinatesDontWarpGang($scplayer, -2623.977, 1404.812, 6.111)
Char.SetHeading($scplayer, 352.628)

:SYND4_12892
if 
is_ps2_keyboard_key_just_pressed 20
goto_if_false @SYND4_12930
if 
  not Car.IsDead(64@)
goto_if_false @SYND4_12930
Car.FreezePosition(64@, True)

:SYND4_12930
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @SYND4_12966
$s4_event = Streaming.GetAreaVisible()
view_integer_variable $s4_event {_p2} "AREA_NAME"

:SYND4_12966
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @SYND4_13017
World.CreateBirds(-2616.109, 1408.629, 6.5, -2618.498, 1415.866, 6.5, 3, 0)

:SYND4_13017
if 
is_ps2_keyboard_key_just_pressed 10
goto_if_false @SYND4_13080
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_13080
Char.SetCoordinatesDontWarpGang($scplayer, -2661.192, 1426.128, 22.8906)
Char.SetHeading($scplayer, 188.7666)
Camera.SetBehindPlayer

:SYND4_13080
if 
is_ps2_keyboard_key_just_pressed 8
goto_if_false @SYND4_13143
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_13143
Char.SetCoordinatesDontWarpGang($scplayer, -2661.493, 1403.067, 905.277)
Char.SetHeading($scplayer, 85.1708)
Camera.SetBehindPlayer

:SYND4_13143
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @SYND4_13187
if 
  not Char.IsDead($scplayer)
goto_if_false @SYND4_13187
view_integer_variable $s4_has_phone {_p2} "HEALTH"

:SYND4_13187
if 
is_ps2_keyboard_key_just_pressed 29
goto_if_false @SYND4_13209
goto @SYND4_11231

:SYND4_13209
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @SYND4_13248
if 
  not Car.IsDead(64@)
goto_if_false @SYND4_13248
Car.SetHealth(64@, 200)

:SYND4_13248
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @SYND4_13623
if 
  not Char.IsDead(39@)
goto_if_false @SYND4_13286
Char.SetHealth(39@, 1)

:SYND4_13286
gosub @SYND4_12699
Char.SetCoordinatesDontWarpGang(39@, -2659.382, 1530.248, 53.9453)
Char.SetHeading(39@, 0.0)
Camera.SetFixedPosition(-2655.093, 1543.846, 55.7815, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2655.445, 1542.918, 55.652, SwitchType.JumpCut)
if 
  not Char.IsDead(39@)
goto_if_false @SYND4_13402
Char.ClearTasksImmediately(39@)
Task.Jump(39@, False)

:SYND4_13402
wait 1000
Clock.SetTimeScale(0.4)
if 
  not Char.IsDead(39@)
goto_if_false @SYND4_13471
Camera.SetFixedPosition(-2630.056, 1557.202, 18.3729, 0.0, 0.0, 0.0)
Camera.PointAtChar(39@, CameraMode.Fixed, SwitchType.JumpCut)

:SYND4_13471
TIMERB = 0

:SYND4_13478
if 
  750 > TIMERB
goto_if_false @SYND4_13532
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYND4_13525
goto @SYND4_13600

:SYND4_13525
goto @SYND4_13478

:SYND4_13532
Clock.SetTimeScale(1.0)
TIMERB = 0

:SYND4_13546
if 
  1500 > TIMERB
goto_if_false @SYND4_13600
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYND4_13593
goto @SYND4_13600

:SYND4_13593
goto @SYND4_13546

:SYND4_13600
gosub @SYND4_12730
Text.PrintNow('SYN4_29', 4000, 1)

:SYND4_13623
return 

:SYND4_13625
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 96@)
97@ = 0
return 

:SYND4_13645
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  97@ == 0
goto_if_false @SYND4_13688
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(118@s, 10000, 1)
97@ = 1

:SYND4_13688
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  97@ == 1
goto_if_false @SYND4_13726
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint(118@s)
97@ = 2

:SYND4_13726
return 

//-------------Mission 62---------------
// Originally: Toreno's Last Flight

:SYN6
script_name 'SYN6'
gosub @SYN6_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYN6_38
gosub @SYN6_9151

:SYN6_38
gosub @SYN6_9238
terminate_this_script 

:SYN6_47
$onmission = 1
$tlf_underway = 1
Stat.RegisterMissionGiven
Player.SetControl($player1, False)
Streaming.LoadScene(-2034.255, 176.5, 27.8359)
Camera.DoFade(2000, Fade.Out)

:SYN6_94
if 
  Camera.GetFadingStatus
goto_if_false @SYN6_118
wait 0
goto @SYN6_94

:SYN6_118
Streaming.SetAreaVisible(0)
Text.LoadMissionText('SYN6')
Streaming.RequestModel(487)
Streaming.RequestModel(521)
Streaming.RequestModel(355)
Streaming.RequestModel(346)
Streaming.RequestModel(24)
Streaming.RequestModel(25)
Streaming.RequestModel(359)
Streaming.RequestModel(413)
Streaming.RequestModel(330)
Streaming.RequestModel(348)
Streaming.LoadAllModelsNow

:SYN6_183
if or
  not Streaming.HasModelLoaded(487)
  not Streaming.HasModelLoaded(521)
  not Streaming.HasModelLoaded(355)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(24)
goto_if_false @SYN6_229
wait 0
goto @SYN6_183

:SYN6_229
if or
  not Streaming.HasModelLoaded(359)
  not Streaming.HasModelLoaded(25)
  not Streaming.HasModelLoaded(413)
  not Streaming.HasModelLoaded(330)
  not Streaming.HasModelLoaded(348)
goto_if_false @SYN6_275
wait 0
goto @SYN6_229

:SYN6_275
if 
  not Player.IsPlaying($player1)
goto_if_false @SYN6_302
wait 0
goto @SYN6_275

:SYN6_302
47@ = Char.Create(PedType.CivMale, 24, -1691.72, 703.6754, 29.6065)
48@ = Char.Create(PedType.CivMale, 25, -1701.061, 712.767, 23.8976)
49@ = Char.Create(PedType.CivMale, 25, -1688.372, 687.4631, 20.615)
50@ = Char.Create(PedType.CivMale, 25, -1686.15, 701.9777, 29.6065)
51@ = Char.Create(PedType.CivMale, 24, -1681.696, 680.8264, 18.8009)
52@ = Char.Create(PedType.CivMale, 25, -1690.15, 716.6064, 29.6065)
Char.SetHeading(47@, 82.107)
Char.SetHeading(48@, 224.7688)
Char.SetHeading(49@, 118.1096)
Task.KindaStayInSamePlace(49@, True)
Char.SetHeading(50@, 239.6)
Task.StayInSamePlace(50@, True)
Task.ToggleDuck(50@, True)
Char.SetHeading(51@, 86.9582)
Task.KindaStayInSamePlace(51@, True)
Char.SetHeading(52@, 222.9582)
77@ = 0

:SYN6_541
if 
  5 > 77@
goto_if_false @SYN6_622
Char.GiveWeapon(47@(77@,6i), WeaponType.Pistol, 9999)
Char.SetOnlyDamagedByPlayer(47@(77@,6i), True)
Char.SetRelationship(47@(77@,6i), RelationshipType.Hate, PedType.Player1)
Char.SetIsTargetPriority(47@(77@,6i), True)
77@ += 1
goto @SYN6_541

:SYN6_622
Char.GiveWeapon(52@, WeaponType.RocketLauncher, 9999)
Char.SetOnlyDamagedByPlayer(52@, True)
Char.SetRelationship(52@, RelationshipType.Hate, PedType.Player1)
Char.SetIsTargetPriority(52@, True)
Char.SetDropsWeaponsWhenDead(52@, False)
Task.StayInSamePlace(52@, True)
Char.SetAccuracy(52@, 100)
Char.SetShootRate(52@, 50)
Char.SetWeaponSkill(52@, 0)
63@ = Pickup.CreateWithAmmo(359, PickupType.Once, 60, -1688.86, 695.3077, 30.3452)
64@ = Pickup.CreateWithAmmo(355, PickupType.Once, 120, -1683.497, 716.2739, 30.6452)
53@ = Car.Create(487, -1680.502, 705.6951, 29.6065)
Heli.SetBladesFullSpeed(53@)
Car.SetHeading(53@, 90.0)
Car.OpenDoor(53@, CarDoor.RightRearDoor)
Car.OpenDoor(53@, CarDoor.LeftRearDoor)
Car.SetProofs(53@, True, True, True, True, True)
Car.ChangeColor(53@, 10, 125)
57@ = Car.Create(521, -1705.198, 682.3814, 23.8906)
Streaming.MarkModelAsNoLongerNeeded(521)
Car.SetHeading(57@, 181.5462)
Car.SetCanBurstTires(57@, False)
58@ = Car.Create(413, -1665.8, 682.1571, 13.8891)
Car.SetHeading(58@, 214.5462)
Car.ChangeColor(58@, 7, 1)
Car.OpenDoor(58@, CarDoor.LeftRearDoor)
Streaming.MarkModelAsNoLongerNeeded(413)
60@ = -1
61@ = 0
65@ = 0
72@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
79@ = 0
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
89@ = 0
92@ = 0
91@ = 0
93@ = 0
94@ = 0
140@ = 1
141@ = 2
142@ = 0
143@ = 1
144@ = 0
145@ = 0
set_lvar_text_label 106@s = 'MWUZ01A'
set_lvar_text_label 108@s = 'MWUZ01B'
set_lvar_text_label 110@s = 'MWUZ01C'
set_lvar_text_label 112@s = 'MWUZ01D'
set_lvar_text_label 114@s = 'MWUZ01E'
set_lvar_text_label 116@s = 'MWUZ01F'
set_lvar_text_label 118@s = 'MWUZ01G'
set_lvar_text_label 120@s = 'MWUZ01H'
set_lvar_text_label 122@s = 'MWUZ01J'
set_lvar_text_label 124@s = 'MWUZ01K'
set_lvar_int_to_constant 129@ = 12005
set_lvar_int_to_constant 130@ = 12078
set_lvar_int_to_constant 131@ = 12006
set_lvar_int_to_constant 132@ = 12079
set_lvar_int_to_constant 133@ = 12007
set_lvar_int_to_constant 134@ = 12008
set_lvar_int_to_constant 135@ = 12009
set_lvar_int_to_constant 136@ = 12080
set_lvar_int_to_constant 137@ = 12081
set_lvar_int_to_constant 138@ = 12082
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 23803)
TIMERA = 0
Hud.SwitchWidescreen(True)
Char.SetCoordinates($scplayer, -2030.25, 148.8279, 27.8359)
Char.SetHeading($scplayer, 350.0)
Camera.SetFixedPosition(-2024.214, 147.8178, 28.9808, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2025.159, 148.1366, 29.046, SwitchType.JumpCut)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Streaming.LoadSceneInDirection(-2024.137, 149.9411, 27.8359, 348.3137)
wait 0
Camera.DoFade(2500, Fade.In)
Streaming.LoadSceneInDirection(-2024.137, 149.9411, 27.8359, 348.3137)
wait 0
Task.GoStraightToCoord($scplayer, -2026.675, 148.8807, 27.8359, MoveState.Walk, -2)

:SYN6_1531
if 
  Camera.GetFadingStatus
goto_if_false @SYN6_1555
wait 0
goto @SYN6_1531

:SYN6_1555
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @SYN6_1574
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:SYN6_1574
wait 0
TIMERA = 0
84@ = 4
85@ = 0
86@ = 1

:SYN6_1606
wait 0
if 
  142@ <> 0
goto_if_false @SYN6_1963
if 
  144@ == 0
goto_if_false @SYN6_1681
if 
  Audio.HasMissionAudioLoaded(141@)
goto_if_false @SYN6_1667
Audio.ClearMissionAudio(141@)

:SYN6_1667
144@ = 1
145@ = 1

:SYN6_1681
if 
  144@ == 1
goto_if_false @SYN6_1718
Audio.LoadMissionAudio(140@, 128@(142@,12i))
144@ = 2

:SYN6_1718
if 
  144@ == 2
goto_if_false @SYN6_1778
if 
  Audio.HasMissionAudioLoaded(140@)
goto_if_false @SYN6_1778
Audio.PlayMissionAudio(140@)
Text.PrintNow(104@(142@,12s), 10000, 1)
144@ = 3

:SYN6_1778
if 
  144@ == 3
goto_if_false @SYN6_1963
if 
  Audio.HasMissionAudioFinished(140@)
goto_if_false @SYN6_1902
Text.ClearThisPrint(104@(142@,12s))
if 
  140@ == 1
goto_if_false @SYN6_1860
140@ = 2
141@ = 1
goto @SYN6_1874

:SYN6_1860
140@ = 1
141@ = 2

:SYN6_1874
142@ = 0
144@ = 0
145@ = 0
goto @SYN6_1963

:SYN6_1902
if 
  not Audio.HasMissionAudioLoaded(141@)
goto_if_false @SYN6_1963
if 
  10 > 142@
goto_if_false @SYN6_1963
set_lvar_int_to_lvar_int 143@ = 142@
143@ += 1
Audio.LoadMissionAudio(141@, 128@(143@,12i))

:SYN6_1963
if 
  89@ == 1
goto_if_false @SYN6_1985
Camera.Shake(20)

:SYN6_1985
if 
  84@ <> -13
goto_if_false @SYN6_2796
if 
  84@ > 4
goto_if_false @SYN6_2161
if 
  85@ == 1
goto_if_false @SYN6_2091
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @SYN6_2091

:SYN6_2056
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @SYN6_2084
wait 0
goto @SYN6_2056

:SYN6_2084
84@ = 100

:SYN6_2091
if 
  86@ == 1
goto_if_false @SYN6_2161
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN6_2161

:SYN6_2126
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN6_2154
wait 0
goto @SYN6_2126

:SYN6_2154
84@ = 10

:SYN6_2161
if 
  84@ == 4
goto_if_false @SYN6_2217
if 
  TIMERA > 1000
goto_if_false @SYN6_2217
Char.ClearTasks($scplayer)
Task.UseMobilePhone($scplayer, True)
84@ = 5

:SYN6_2217
if 
  84@ == 5
goto_if_false @SYN6_2275
if 
  TIMERA > 5000
goto_if_false @SYN6_2275
142@ = 1
TIMERA = 0
84@ = 7

:SYN6_2275
if 
  84@ == 7
goto_if_false @SYN6_2326
if 
  TIMERA > 2500
goto_if_false @SYN6_2326
84@ = 10
TIMERA = 0

:SYN6_2326
if 
  84@ == 10
goto_if_false @SYN6_2387
86@ = 0
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
84@ = 15
85@ = 1
TIMERA = 0

:SYN6_2387
if 
  84@ > 10
goto_if_false @SYN6_2796
if 
  145@ == 0
goto_if_false @SYN6_2796
switch_start 84@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @SYN6_2796 {caseNum1} 15 {caseLabel1} @SYN6_2551 {caseNum2} 20 {caseLabel2} @SYN6_2572 {caseNum3} 30 {caseLabel3} @SYN6_2593 {caseNum4} 40 {caseLabel4} @SYN6_2614 {caseNum5} 50 {caseLabel5} @SYN6_2635 {caseNum6} 60 {caseLabel6} @SYN6_2656 {caseNum7} 70 {caseLabel7} @SYN6_2677
switch_continued 80 {caseLabel1} @SYN6_2698 {caseNum2} 90 {caseLabel2} @SYN6_2719 {caseNum3} 100 {caseLabel3} @SYN6_2740 {caseNum4} -1 {caseLabel4} @SYN6_2796 {caseNum5} -1 {caseLabel5} @SYN6_2796 {caseNum6} -1 {caseLabel6} @SYN6_2796 {caseNum7} -1 {caseLabel7} @SYN6_2796 {caseNum8} -1 {caseLabel8} @SYN6_2796 {caseNum9} -1 {caseLabel9} @SYN6_2796

:SYN6_2551
142@ = 2
84@ = 20
goto @SYN6_2796

:SYN6_2572
142@ = 3
84@ = 30
goto @SYN6_2796

:SYN6_2593
142@ = 4
84@ = 40
goto @SYN6_2796

:SYN6_2614
142@ = 5
84@ = 50
goto @SYN6_2796

:SYN6_2635
142@ = 6
84@ = 60
goto @SYN6_2796

:SYN6_2656
142@ = 7
84@ = 70
goto @SYN6_2796

:SYN6_2677
142@ = 8
84@ = 90
goto @SYN6_2796

:SYN6_2698
142@ = 9
84@ = 90
goto @SYN6_2796

:SYN6_2719
142@ = 10
84@ = 100
goto @SYN6_2796

:SYN6_2740
142@ = 0
Task.UseMobilePhone($scplayer, False)
Streaming.MarkModelAsNoLongerNeeded(330)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Text.PrintNow('SYN6_01', 6000, 1)
84@ = 110
goto @SYN6_2796

:SYN6_2796
if 
  84@ == 110
goto_if_false @SYN6_2860
Char.ClearTasks($scplayer)
Char.HideWeaponForScriptedCutscene($scplayer, False)
34@ = Blip.AddForCoord(-1680.377, 705.462, 30.2209)
84@ = -13
85@ = 0

:SYN6_2860
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SYN6_2882
goto @SYN6_9169

:SYN6_2882
if 
is_ps2_keyboard_key_pressed 19
goto_if_false @SYN6_2904
Player.AlterWantedLevel($player1, 2)

:SYN6_2904
if 
is_ps2_keyboard_key_pressed 18
goto_if_false @SYN6_2926
Player.AlterWantedLevel($player1, 0)

:SYN6_2926
$game_timer = Clock.GetGameTimer()
if 
  not Player.IsPlaying($player1)
goto_if_false @SYN6_2954
goto @SYN6_9151

:SYN6_2954
if 
  78@ == 1
goto_if_false @SYN6_3003
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN6_3003
60@ = 6
78@ = 0

:SYN6_3003
if 
  60@ == -99
goto_if_false @SYN6_3044
149@ = Car.Create(487, -1680.502, 705.6951, 29.6065)

:SYN6_3044
if 
  60@ == -1
goto_if_false @SYN6_3838
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @SYN6_3150
World.ClearArea(-1704.324, 637.5129, 23.8959, 0.5, False)
Streaming.LoadScene(-1704.324, 637.5129, 23.8959)
Char.SetCoordinates($scplayer, -1704.324, 637.5129, 23.8959)
Char.SetHeading($scplayer, 0.0)
Camera.SetBehindPlayer

:SYN6_3150
if 
  Char.LocateAnyMeans3D($scplayer, -1699.991, 686.4141, 20.0, 60.0, 60.0, 80.0, False)
goto_if_false @SYN6_3244
84@ = -13
Char.ClearTasks($scplayer)
Blip.Remove(34@)
62@ = Blip.AddForPickup(63@)
Blip.ChangeColor(62@, BlipColor.Green)
72@ = 1
60@ += 1

:SYN6_3244
if 
  60@ == -1
goto_if_false @SYN6_3343
if 
  Char.DoesExist(47@)
goto_if_false @SYN6_3343
if 
  Char.HasBeenDamagedByChar(47@, $scplayer)
goto_if_false @SYN6_3343
84@ = -13
Char.ClearTasks($scplayer)
Blip.Remove(34@)
62@ = Blip.AddForPickup(63@)
Blip.ChangeColor(62@, BlipColor.Green)
72@ = 1
60@ += 1

:SYN6_3343
if 
  60@ == -1
goto_if_false @SYN6_3442
if 
  Char.DoesExist(48@)
goto_if_false @SYN6_3442
if 
  Char.HasBeenDamagedByChar(48@, $scplayer)
goto_if_false @SYN6_3442
84@ = -13
Char.ClearTasks($scplayer)
Blip.Remove(34@)
62@ = Blip.AddForPickup(63@)
Blip.ChangeColor(62@, BlipColor.Green)
72@ = 1
60@ += 1

:SYN6_3442
if 
  60@ == -1
goto_if_false @SYN6_3541
if 
  Char.DoesExist(49@)
goto_if_false @SYN6_3541
if 
  Char.HasBeenDamagedByChar(49@, $scplayer)
goto_if_false @SYN6_3541
84@ = -13
Char.ClearTasks($scplayer)
Blip.Remove(34@)
62@ = Blip.AddForPickup(63@)
Blip.ChangeColor(62@, BlipColor.Green)
72@ = 1
60@ += 1

:SYN6_3541
if 
  60@ == -1
goto_if_false @SYN6_3640
if 
  Char.DoesExist(50@)
goto_if_false @SYN6_3640
if 
  Char.HasBeenDamagedByChar(50@, $scplayer)
goto_if_false @SYN6_3640
84@ = -13
Char.ClearTasks($scplayer)
Blip.Remove(34@)
62@ = Blip.AddForPickup(63@)
Blip.ChangeColor(62@, BlipColor.Green)
72@ = 1
60@ += 1

:SYN6_3640
if 
  60@ == -1
goto_if_false @SYN6_3739
if 
  Char.DoesExist(51@)
goto_if_false @SYN6_3739
if 
  Char.HasBeenDamagedByChar(51@, $scplayer)
goto_if_false @SYN6_3739
84@ = -13
Char.ClearTasks($scplayer)
Blip.Remove(34@)
62@ = Blip.AddForPickup(63@)
Blip.ChangeColor(62@, BlipColor.Green)
72@ = 1
60@ += 1

:SYN6_3739
if 
  60@ == -1
goto_if_false @SYN6_3838
if 
  Char.DoesExist(52@)
goto_if_false @SYN6_3838
if 
  Char.HasBeenDamagedByChar(52@, $scplayer)
goto_if_false @SYN6_3838
84@ = -13
Char.ClearTasks($scplayer)
Blip.Remove(34@)
62@ = Blip.AddForPickup(63@)
Blip.ChangeColor(62@, BlipColor.Green)
72@ = 1
60@ += 1

:SYN6_3838
if 
  72@ == 1
goto_if_false @SYN6_4097
if 
  73@ == 0
goto_if_false @SYN6_3974
if 
  not Char.IsDead(52@)
goto_if_false @SYN6_3974
Char.ClearTasks(52@)
69@, 70@, 71@ = Char.GetCoordinates($scplayer)
69@ += 5.0
70@ += 5.0
71@ += 15.0
Char.ClearTasks(52@)
Task.ShootAtCoord(52@, 69@, 70@, 71@, -1)
73@ = 1
TIMERB = 0

:SYN6_3974
if 
  not Char.IsDead(47@)
goto_if_false @SYN6_4003
Char.ClearTasks(47@)
Task.KillCharOnFoot(47@, $scplayer)

:SYN6_4003
if 
  not Char.IsDead(48@)
goto_if_false @SYN6_4032
Char.ClearTasks(48@)
Task.KillCharOnFoot(48@, $scplayer)

:SYN6_4032
if 
  not Char.IsDead(49@)
goto_if_false @SYN6_4061
Char.ClearTasks(49@)
Task.KillCharOnFoot(49@, $scplayer)

:SYN6_4061
if 
  not Char.IsDead(51@)
goto_if_false @SYN6_4090
Char.ClearTasks(51@)
Task.KillCharOnFoot(51@, $scplayer)

:SYN6_4090
72@ = 2

:SYN6_4097
if 
  73@ == 1
goto_if_false @SYN6_4179
if 
  TIMERB > 4000
goto_if_false @SYN6_4179
if 
  not Char.IsDead(52@)
goto_if_false @SYN6_4179
Char.ClearTasks(52@)
73@ = 99
TIMERB = 0
Char.GiveWeapon(52@, WeaponType.Pistol, 9999)

:SYN6_4179
if 
  73@ == 2
goto_if_false @SYN6_4223
if 
  TIMERB > 6000
goto_if_false @SYN6_4223
73@ = 0

:SYN6_4223
if 
  65@ == 0
goto_if_false @SYN6_4248
65@ = 1

:SYN6_4248
if 
  2 > 65@
goto_if_false @SYN6_4448
if 
  60@ > 4
goto_if_false @SYN6_4448
if 
  80@ == 0
goto_if_false @SYN6_4366
if 
  not Car.IsDead(149@)
goto_if_false @SYN6_4366
if 
  not Char.LocateAnyMeansCar3D($scplayer, 149@, 250.0, 250.0, 100.0, False)
goto_if_false @SYN6_4366
Car.PausePlayback(149@)
80@ = 1

:SYN6_4366
if 
  80@ == 1
goto_if_false @SYN6_4448
if 
  not Car.IsDead(149@)
goto_if_false @SYN6_4448
if 
  Char.LocateAnyMeansCar3D($scplayer, 149@, 250.0, 250.0, 100.0, False)
goto_if_false @SYN6_4448
Car.UnpausePlayback(149@)
80@ = 0

:SYN6_4448
if 
  65@ == 1
goto_if_false @SYN6_4557
if 
  Pickup.HasBeenCollected(63@)
goto_if_false @SYN6_4557
Text.ClearPrints
Text.PrintNow('SYN6_20', 6000, 1)
Blip.Remove(62@)
if 
  not Car.IsDead(149@)
goto_if_false @SYN6_4550
34@ = Blip.AddForCar(149@)
Hud.DisplayCounterWithString($the_area_name, CounterDisplay.Bar, 'SYN6_05')
Car.UnpausePlayback(149@)

:SYN6_4550
65@ = 2

:SYN6_4557
if 
  65@ == 2
goto_if_false @SYN6_4575

:SYN6_4575
if 
  60@ == 0
goto_if_false @SYN6_4855
if 
  60@ == 0
goto_if_false @SYN6_4709
if 
  Char.IsInAngledArea3D($scplayer, -1695.668, 693.7705, 29.5938, -1665.865, 693.7705, 59.5943, 28.0, False)
goto_if_false @SYN6_4709
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SYN6_4695
90@ = Char.StoreCarIsIn($scplayer)
91@ = 1

:SYN6_4695
92@ = 1
60@ += 1

:SYN6_4709
if 
  60@ == 0
goto_if_false @SYN6_4782
if 
  Char.LocateAnyMeans3D($scplayer, -1683.82, 686.5125, 23.9687, 2.0, 2.0, 2.0, False)
goto_if_false @SYN6_4782
60@ += 1

:SYN6_4782
if 
  60@ == 0
goto_if_false @SYN6_4855
if 
  Char.LocateAnyMeans3D($scplayer, -1683.797, 692.3915, 27.586, 5.0, 5.0, 2.0, False)
goto_if_false @SYN6_4855
60@ += 1

:SYN6_4855
if 
  60@ > 1
goto_if_false @SYN6_5160
if 
  61@ == 0
goto_if_false @SYN6_5160
if 
  Char.LocateAnyMeans2D($scplayer, -1448.006, -1533.036, 200.0, 200.0, False)
goto_if_false @SYN6_5160
41@ = Char.Create(PedType.CivMale, 24, -1450.256, -1543.012, 100.7579)
42@ = Char.Create(PedType.CivMale, 24, -1422.854, -1542.103, 100.7514)
43@ = Char.Create(PedType.CivMale, 24, -1431.096, -1506.962, 100.7262)
44@ = Char.Create(PedType.CivMale, 24, -1448.477, -1511.918, 100.7579)
Char.SetHeading(41@, 269.8948)
Char.SetHeading(42@, 26.8258)
Char.SetHeading(43@, 223.7033)
Char.SetHeading(44@, 266.9233)
77@ = 0

:SYN6_5072
if 
  4 > 77@
goto_if_false @SYN6_5153
Char.GiveWeapon(41@(77@,6i), WeaponType.Pistol, 9999)
Char.SetOnlyDamagedByPlayer(41@(77@,6i), True)
Char.SetRelationship(41@(77@,6i), RelationshipType.Hate, PedType.Player1)
Char.SetIsTargetPriority(41@(77@,6i), True)
77@ += 1
goto @SYN6_5072

:SYN6_5153
61@ += 1

:SYN6_5160
if 
  60@ == 1
goto_if_false @SYN6_6028
if 
  Streaming.HasCarRecordingBeenLoaded(110)
goto_if_false @SYN6_6024
if 
  not Camera.GetFadingStatus
goto_if_false @SYN6_6017
Text.ClearThisPrint('SYN6_02')
Car.Delete(53@)
149@ = Car.Create(487, -1680.502, 705.6951, 29.6065)
Heli.SetBladesFullSpeed(149@)
Car.ChangeColor(149@, 10, 125)
56@ = Object.Create(#CARDBOARDBOX2, -1680.931, 705.7776, 30.6065)
Object.SetCollision(56@, False)
Object.FreezePosition(56@, True)
Object.SetCollision(56@, False)
Car.SetHeading(149@, 90.0)
Car.LockDoors(149@, CarLock.LockoutPlayerOnly)
Car.SetCanBeTargeted(149@, True)
Blip.Remove(34@)
Car.SetOnlyDamagedByPlayer(149@, True)
Car.SetHealth(149@, 1500)
150@ = Char.CreateInsideCar(149@, PedType.CivMale, 24)
Char.SetIsTargetPriority(150@, True)
151@ = Char.CreateAsPassenger(149@, PedType.CivMale, 24, 1)
152@ = Char.CreateAsPassenger(149@, PedType.CivMale, 24, 2)
Car.OpenDoor(149@, CarDoor.RightRearDoor)
Car.OpenDoor(149@, CarDoor.LeftRearDoor)
39@ = 0

:SYN6_5415
if 
  2 > 39@
goto_if_false @SYN6_5535
Char.SetStayInSamePlace(151@(39@,2i), True)
Char.GiveWeapon(152@, WeaponType.Ak47, 9999)
Char.GiveWeapon(151@, WeaponType.DesertEagle, 9999)
Char.SetOnlyDamagedByPlayer(151@(39@,2i), True)
Char.SetSuffersCriticalHits(151@(39@,2i), False)
Char.SetHealth(151@(39@,2i), 300)
Char.SetIsTargetPriority(151@(39@,2i), True)
Char.SetHealth(151@(39@,2i), 500)
39@ += 1
goto @SYN6_5415

:SYN6_5535
if 
  Char.IsInCar(151@, 149@)
goto_if_false @SYN6_5636
$x, $y, $z = Car.GetCoordinates(149@)
Char.WarpFromCarToCoord(151@, $x, $y, $z)
Char.DetachFromCar(151@)
Char.SetAllowedToDuck(151@, True)
Char.AttachToCar(151@, 149@, -1.0, -0.3, 0.0, 1, 180.0, WeaponType.Ak47)
Char.SetHeading(151@, 200.0)

:SYN6_5636
if 
  Char.IsInCar(152@, 149@)
goto_if_false @SYN6_5735
$x, $y, $z = Car.GetCoordinates(149@)
Char.WarpFromCarToCoord(152@, $x, $y, $z)
Char.DetachFromCar(152@)
Char.SetAllowedToDuck(152@, True)
Char.AttachToCar(152@, 149@, 1.2, -0.3, 0.0, 3, 180.0, WeaponType.Ak47)
Task.TurnCharToFaceChar(152@, $scplayer)

:SYN6_5735
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
Camera.SetFixedPosition(-1675.195, 699.6955, 36.8409, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1675.773, 700.2547, 36.2466, SwitchType.JumpCut)
89@ = 1
if 
  92@ == 0
goto_if_false @SYN6_5870
Char.SetCoordinates($scplayer, -1683.849, 692.0139, 27.586)
Char.SetHeading($scplayer, 304.0)
goto @SYN6_5955

:SYN6_5870
if 
  91@ == 1
goto_if_false @SYN6_5948
if 
  not Car.IsDead(90@)
goto_if_false @SYN6_5941
Car.SetCoordinates(90@, -1667.77, 728.9113, 49.8973)
Car.SetHeading(90@, 135.4521)
Car.FreezePosition(90@, True)

:SYN6_5941
goto @SYN6_5955

:SYN6_5948
Char.FreezePosition($scplayer, True)

:SYN6_5955
Camera.SetFadingColor(1, 0, 0)
Car.StartPlayback(149@, 110)
Task.ToggleDuck(151@, True)
Task.ToggleDuck(152@, True)
if 
  not Char.IsDead(50@)
goto_if_false @SYN6_6000

:SYN6_6000
Car.SetPlaybackSpeed(149@, 3.0)
60@ += 1

:SYN6_6017
goto @SYN6_6028

:SYN6_6024
Streaming.RequestCarRecording(110)

:SYN6_6028
if 
  not Car.IsDead(149@)
goto_if_false @SYN6_7667
if 
  60@ == 2
goto_if_false @SYN6_6089
if 
  not Camera.GetFadingStatus
goto_if_false @SYN6_6089
60@ += 1
TIMERB = 0

:SYN6_6089
if 
  60@ == 3
goto_if_false @SYN6_6114
60@ += 1

:SYN6_6114
if 
  60@ == 4
goto_if_false @SYN6_6184
if 
  TIMERB > 1100
goto_if_false @SYN6_6184
if 
  not Car.IsDead(149@)
goto_if_false @SYN6_6177
Car.SetPlaybackSpeed(149@, 0.85)

:SYN6_6177
60@ += 1

:SYN6_6184
if 
  60@ == 5
goto_if_false @SYN6_6310
if 
  TIMERB > 3000
goto_if_false @SYN6_6284
Object.Delete(56@)
89@ = 0
Camera.SetFixedPosition(-1681.265, 685.2078, 30.6465, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1681.263, 686.2019, 30.5389, SwitchType.JumpCut)

:SYN6_6284
if 
  TIMERB > 6500
goto_if_false @SYN6_6310
60@ += 1

:SYN6_6310
if 
  60@ == 6
goto_if_false @SYN6_6885
if 
  not Camera.GetFadingStatus
goto_if_false @SYN6_6885
if 
  Car.IsDead(57@)
goto_if_false @SYN6_6402
Car.MarkAsNoLongerNeeded(57@)
57@ = Car.Create(521, -1705.198, 682.3814, 23.8906)
Car.SetHeading(57@, 181.5462)
goto @SYN6_6478

:SYN6_6402
if 
  not Car.Locate2D(57@, -1703.949, 690.2634, 20.0, 20.0, False)
goto_if_false @SYN6_6478
Car.MarkAsNoLongerNeeded(57@)
57@ = Car.Create(521, -1705.198, 682.3814, 23.8906)
Car.SetHeading(57@, 181.5462)

:SYN6_6478
78@ = 0
Text.ClearThisPrint('SYN6_03')
Camera.SetFadingColor(1, 0, 0)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Text.PrintNow('SYN6_03', 8000, 1)
Game.SetAllCarsCanBeDamaged(True)
if 
  not Car.IsDead(149@)
goto_if_false @SYN6_6590
if 
  not Char.IsDead(151@)
goto_if_false @SYN6_6567

:SYN6_6567
if 
  not Car.IsPlaybackGoingOn(149@)
goto_if_false @SYN6_6590
Car.StartPlayback(149@, 110)

:SYN6_6590
Object.Delete(56@)
89@ = 0
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
if 
  92@ == 1
goto_if_false @SYN6_6686
if 
  91@ == 1
goto_if_false @SYN6_6679
if 
  not Car.IsDead(90@)
goto_if_false @SYN6_6672
Car.FreezePosition(90@, False)

:SYN6_6672
goto @SYN6_6686

:SYN6_6679
Char.FreezePosition($scplayer, False)

:SYN6_6686
if 
  not Char.IsDead(52@)
goto_if_false @SYN6_6722
Char.ClearTasks(52@)
Task.KindaStayInSamePlace(52@, True)
Task.KillCharOnFoot(52@, $scplayer)

:SYN6_6722
if 
  not Char.IsDead(50@)
goto_if_false @SYN6_6765
Char.ClearTasks(50@)
Task.ToggleDuck(50@, False)
Task.KindaStayInSamePlace(50@, True)
Task.KillCharOnFoot(50@, $scplayer)

:SYN6_6765
Car.SetPlaybackSpeed(149@, 1.0)
if 
  92@ == 1
goto_if_false @SYN6_6855
if 
  91@ == 1
goto_if_false @SYN6_6855
Car.SetPlaybackSpeed(149@, 1.5)
if 
  not Char.IsDead(151@)
goto_if_false @SYN6_6847
Char.GiveWeapon(151@, WeaponType.RocketLauncher, 9999)

:SYN6_6847
Car.SetHealth(149@, 3000)

:SYN6_6855
$the_area_name = 100
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 5000
60@ = 8

:SYN6_6885
if 
  60@ == 9
goto_if_false @SYN6_6963
if 
  Car.Locate3D(149@, -1437.098, -1527.995, 100.7504, 10.0, 10.0, 4.0, False)
goto_if_false @SYN6_6963
Car.StopPlayback(149@)
60@ += 1

:SYN6_6963
if 
  60@ == 10
goto_if_false @SYN6_7178
if 
  not Car.IsDead(149@)
goto_if_false @SYN6_7178
if 
  Char.LocateAnyMeansCar3D($scplayer, 149@, 40.0, 40.0, 40.0, False)
goto_if_false @SYN6_7178
Text.PrintNow('SYN6_07', 5000, 1)
60@ += 1
if 
  not Char.IsDead(151@)
goto_if_false @SYN6_7097
Task.ToggleDuck(151@, False)
Char.DetachFromCar(151@)
Char.ClearTasks(151@)
Task.KillCharOnFoot(151@, $scplayer)

:SYN6_7097
if 
  not Char.IsDead(152@)
goto_if_false @SYN6_7138
Task.ToggleDuck(152@, False)
Char.ClearTasks(152@)
Char.DetachFromCar(152@)
Task.KillCharOnFoot(152@, $scplayer)

:SYN6_7138
Car.SetCruiseSpeed(149@, 70.0)
Heli.GotoCoords(149@, -23.2666, 1210.669, 100.3528, 70.0, 70.0)

:SYN6_7178
if 
  60@ == 10
goto_if_false @SYN6_7376
if 
  not Car.IsDead(149@)
goto_if_false @SYN6_7376
if 
  Car.HasBeenDamagedByChar(149@, $scplayer)
goto_if_false @SYN6_7376
Text.PrintNow('SYN6_07', 5000, 1)
60@ += 1
if 
  not Char.IsDead(151@)
goto_if_false @SYN6_7295
Task.ToggleDuck(151@, False)
Char.DetachFromCar(151@)
Char.ClearTasks(151@)
Task.KillCharOnFoot(151@, $scplayer)

:SYN6_7295
if 
  not Char.IsDead(152@)
goto_if_false @SYN6_7336
Task.ToggleDuck(152@, False)
Char.ClearTasks(152@)
Char.DetachFromCar(152@)
Task.KillCharOnFoot(152@, $scplayer)

:SYN6_7336
Car.SetCruiseSpeed(149@, 70.0)
Heli.GotoCoords(149@, -23.2666, 1210.669, 100.3528, 70.0, 70.0)

:SYN6_7376
if 
  60@ == 11
goto_if_false @SYN6_7545
if 
  not Char.IsDead(41@)
goto_if_false @SYN6_7430
Char.ClearTasks(41@)
Char.SetKeepTask(41@, True)
Task.KillCharOnFoot(41@, $scplayer)

:SYN6_7430
if 
  not Char.IsDead(42@)
goto_if_false @SYN6_7466
Char.ClearTasks(42@)
Char.SetKeepTask(42@, True)
Task.KillCharOnFoot(42@, $scplayer)

:SYN6_7466
if 
  not Char.IsDead(43@)
goto_if_false @SYN6_7502
Char.ClearTasks(43@)
Char.SetKeepTask(43@, True)
Task.KillCharOnFoot(43@, $scplayer)

:SYN6_7502
if 
  not Char.IsDead(44@)
goto_if_false @SYN6_7538
Char.ClearTasks(44@)
Char.SetKeepTask(44@, True)
Task.KillCharOnFoot(44@, $scplayer)

:SYN6_7538
60@ += 1

:SYN6_7545
if 
  60@ == 8
goto_if_false @SYN6_7667
if 
  Streaming.HasCarRecordingBeenLoaded(111)
goto_if_false @SYN6_7663
if 
  not Car.IsPlaybackGoingOn(149@)
goto_if_false @SYN6_7656
if 
  60@ == 8
goto_if_false @SYN6_7633
Car.StartPlayback(149@, 111)
60@ += 1
goto @SYN6_7656

:SYN6_7633
Text.PrintNow('SYN6_06', 5000, 1)
goto @SYN6_9151

:SYN6_7656
goto @SYN6_7667

:SYN6_7663
Streaming.RequestCarRecording(111)

:SYN6_7667
if 
  60@ > 4
goto_if_false @SYN6_9026
if 
  not Car.IsDead(149@)
goto_if_false @SYN6_8426
79@ = 0
$the_area_name = Car.GetHealth(149@)
$the_area_name -= 250
$the_area_name /= 10
if 
  $the_area_name > 100
goto_if_false @SYN6_7756
$the_area_name = 100

:SYN6_7756
if 
  1 > $the_area_name
goto_if_false @SYN6_7848
if 
  83@ == 0
goto_if_false @SYN6_7841
if 
  60@ <> 99
goto_if_false @SYN6_7841
Car.StopPlayback(149@)
Heli.MakeComeCrashingDown(149@)
60@ = 99
83@ = 1
TIMERA = 0

:SYN6_7841
$the_area_name = 0

:SYN6_7848
if 
  60@ > 7
goto_if_false @SYN6_8058
if 
  92@ <> 1
goto_if_false @SYN6_8058
if 
  91@ <> 1
goto_if_false @SYN6_8058
if 
  79@ == 0
goto_if_false @SYN6_7968
if 
  Char.LocateAnyMeansCar2D($scplayer, 149@, 100.0, 100.0, False)
goto_if_false @SYN6_7968
Car.SetPlaybackSpeed(149@, 0.75)
79@ = 1

:SYN6_7968
if 
  79@ == 0
goto_if_false @SYN6_8058
if 
  Char.LocateAnyMeansCar2D($scplayer, 149@, 200.0, 200.0, False)
goto_if_false @SYN6_8041
Car.SetPlaybackSpeed(149@, 0.5)
79@ = 1
goto @SYN6_8058

:SYN6_8041
Car.SetPlaybackSpeed(149@, 0.3)
79@ = 1

:SYN6_8058
if 
  10 > 60@
goto_if_false @SYN6_8322
if 
  81@ == 0
goto_if_false @SYN6_8171
if 
  not Car.IsDead(149@)
goto_if_false @SYN6_8171
if 
  not Char.LocateAnyMeansCar3D($scplayer, 149@, 560.0, 560.0, 500.0, False)
goto_if_false @SYN6_8171
Text.ClearPrints
Text.PrintNow('SYN6_12', 6000, 1)
81@ = 1

:SYN6_8171
if 
  81@ == 1
goto_if_false @SYN6_8266
if 
  not Car.IsDead(149@)
goto_if_false @SYN6_8266
if 
  Char.LocateAnyMeansCar3D($scplayer, 149@, 400.0, 400.0, 400.0, False)
goto_if_false @SYN6_8266
Text.ClearPrints
Text.PrintNow('SYN6_13', 6000, 1)
81@ = 0

:SYN6_8266
if 
  not Char.LocateAnyMeansCar2D($scplayer, 149@, 700.0, 700.0, False)
goto_if_false @SYN6_8322
Text.ClearPrints
Text.PrintNow('SYN6_08', 6000, 1)
goto @SYN6_9151

:SYN6_8322
if 
  60@ > 10
goto_if_false @SYN6_8419
if 
  60@ <> 99
goto_if_false @SYN6_8419
if 
  not Char.LocateAnyMeansCar3D($scplayer, 149@, 100.0, 100.0, 50.0, False)
goto_if_false @SYN6_8419
Text.ClearPrints
Text.PrintNow('SYN6_10', 6000, 1)
goto @SYN6_9151

:SYN6_8419
goto @SYN6_8477

:SYN6_8426
Text.ClearPrints
if 
  83@ == 0
goto_if_false @SYN6_8477
60@ = 99
Car.StopPlayback(149@)
Heli.MakeComeCrashingDown(149@)
83@ = 1
TIMERA = 0

:SYN6_8477
if 
  10 > 60@
goto_if_false @SYN6_9026
39@ = 0

:SYN6_8502
if 
  2 > 39@
goto_if_false @SYN6_9026
if 
  not Char.IsDead(151@(39@,2i))
goto_if_false @SYN6_9003
38@ = Char.GetHealth(151@(39@,2i))
if 
  93@(39@,3i) == 0
goto_if_false @SYN6_8623
if 
  50 > 38@
goto_if_false @SYN6_8623
Task.ToggleDuck(151@(39@,2i), False)
93@(39@,3i) = 1
Char.DetachFromCar(151@(39@,2i))

:SYN6_8623
if 
  60@ > 6
goto_if_false @SYN6_8996
if 
  not Char.IsDead(152@)
goto_if_false @SYN6_8735
88@ = Char.GetScriptTaskStatus(152@, 1957)
if 
  is_int_lvar_equal_to_constant 88@ == 7
goto_if_false @SYN6_8735
if 
  Char.LocateAnyMeansChar2D(152@, $scplayer, 60.0, 60.0, False)
goto_if_false @SYN6_8735
Char.SetCurrentWeapon(152@, WeaponType.Ak47)
Task.KillCharOnFootTimed(152@, $scplayer, 4000)

:SYN6_8735
if 
  not Char.IsDead(151@)
goto_if_false @SYN6_8996
87@ = Char.GetScriptTaskStatus(151@, 1957)
if 
  is_int_lvar_equal_to_constant 87@ == 7
goto_if_false @SYN6_8996
if 
  92@ == 1
goto_if_false @SYN6_8904
if 
  Char.LocateAnyMeansChar2D(151@, $scplayer, 160.0, 160.0, False)
goto_if_false @SYN6_8897
if 
  92@ <> 1
goto_if_false @SYN6_8854
Char.SetCurrentWeapon(151@, WeaponType.DesertEagle)

:SYN6_8854
if 
  92@ == 1
goto_if_false @SYN6_8886
Char.SetCurrentWeapon(151@, WeaponType.Ak47)
Char.SetAccuracy(151@, 100)

:SYN6_8886
Task.KillCharOnFootTimed(151@, $scplayer, 4000)

:SYN6_8897
goto @SYN6_8996

:SYN6_8904
if 
  Char.LocateAnyMeansChar2D(151@, $scplayer, 60.0, 60.0, False)
goto_if_false @SYN6_8996
if 
  92@ <> 1
goto_if_false @SYN6_8960
Char.SetCurrentWeapon(151@, WeaponType.DesertEagle)

:SYN6_8960
if 
  92@ == 1
goto_if_false @SYN6_8985
Char.SetCurrentWeapon(151@, WeaponType.Ak47)

:SYN6_8985
Task.KillCharOnFootTimed(151@, $scplayer, 4000)

:SYN6_8996
goto @SYN6_9012

:SYN6_9003
Char.DetachFromCar(151@(39@,2i))

:SYN6_9012
39@ += 1
goto @SYN6_8502

:SYN6_9026
if 
  83@ == 1
goto_if_false @SYN6_9144
if 
  TIMERA > 5000
goto_if_false @SYN6_9144
if 
  not Char.IsDead(151@)
goto_if_false @SYN6_9091
Task.ToggleDuck(151@, False)
Char.DetachFromCar(151@)

:SYN6_9091
if 
  not Char.IsDead(152@)
goto_if_false @SYN6_9119
Task.ToggleDuck(152@, False)
Char.DetachFromCar(152@)

:SYN6_9119
Text.ClearPrints
Text.PrintNow('SYN6_09', 6000, 1)
goto @SYN6_9169

:SYN6_9144
goto @SYN6_1606

:SYN6_9151
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:SYN6_9169
Blip.Remove($garage_contact_blip)
$flag_synd_mission_counter += 1
Text.PrintWithNumberBig('M_PASSS', 18000, 5000, TextStyle.Middle)
Player.AddScore($player1, 18000)
Stat.AwardPlayerMissionRespect(50)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.RegisterMissionPassed('SYND_6')
Stat.PlayerMadeProgress(1)
return 

:SYN6_9238
$tlf_underway = 2
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Blip.Remove(34@)
Blip.Remove(62@)
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN6_9282
Char.RemoveWeapon($scplayer, WeaponType.RocketLauncher)

:SYN6_9282
Hud.ClearCounter($the_area_name)
Streaming.MarkModelAsNoLongerNeeded(359)
Streaming.MarkModelAsNoLongerNeeded(487)
Streaming.MarkModelAsNoLongerNeeded(521)
Streaming.MarkModelAsNoLongerNeeded(355)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(24)
Streaming.MarkModelAsNoLongerNeeded(25)
Streaming.MarkModelAsNoLongerNeeded(413)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(348)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 63---------------
// Originally: Yay Ka-Boom-Boom

:SYN7
script_name 'SYN7'
gosub @SYN7_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYN7_38
gosub @SYN7_15882

:SYN7_38
gosub @SYN7_15983
terminate_this_script 

:SYN7_47
Text.LoadMissionText('SYN7')
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:SYN7_73
if 
  Camera.GetFadingStatus
goto_if_false @SYN7_97
wait 0
goto @SYN7_73

:SYN7_97
Streaming.RequestIpl("CRACK")
World.SetVisibilityOfClosestObjectOfType(-2166.86, -236.5, 40.86, 40.0, #CRACKFACT_SFS, True)
World.SetVisibilityOfClosestObjectOfType(-2185.49, -215.55, 34.31, 40.0, #CF_EXT_DEM_SFS, False)
World.SetVisibilityOfClosestObjectOfType(-2166.86, -236.5, 40.86, 40.0, #LODCRACKFACT_SFS, True)
World.SetVisibilityOfClosestObjectOfType(-2185.49, -215.55, 34.31, 40.0, #LODEXT_DEM_SFS, False)
Streaming.SetAreaVisible(1)
Char.SetAreaVisible($scplayer, 1)
Streaming.LoadScene(-2031.0, 149.0, 29.0)
Cutscene.Load('SYND_7')

:SYN7_249
if 
  not Cutscene.HasLoaded
goto_if_false @SYN7_273
wait 0
goto @SYN7_249

:SYN7_273
Cutscene.Start
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:SYN7_290
if 
  not Cutscene.HasFinished
goto_if_false @SYN7_314
wait 0
goto @SYN7_290

:SYN7_314
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)

:SYN7_328
if 
  Camera.GetFadingStatus
goto_if_false @SYN7_352
wait 0
goto @SYN7_328

:SYN7_352
Cutscene.Clear
Char.SetAreaVisible($scplayer, 0)
Streaming.SetAreaVisible(0)
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_420
Char.SetCoordinates($scplayer, -2031.197, 161.1839, 27.8516)
Char.SetHeading($scplayer, 268.0468)
Camera.SetBehindPlayer
Player.SetControl($player1, False)

:SYN7_420
Camera.SetFadingColor(0, 0, 0)
$onmission = 1
48@ = 0
$s7_velocity = 40000
117@ = 2
Stat.RegisterMissionGiven
35@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
34@ = DecisionMakerChar.Load(DecisionMakerType.Weak)
36@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
wait 0
goto @SYN7_1167

:SYN7_493
130@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2160.533, -247.0836, 35.5234, 4, -1)
Task.PlayAnim(-1, "WASH_UP", "INT_HOUSE", 1.0, True, False, False, False, -1)
Sequence.SetToRepeat(130@, True)
Sequence.Close(130@)
131@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2163.767, -249.1202, 35.5234, 4, -1)
Task.Pause(-1, 1000)
Task.PlayAnim(-1, "WASH_UP", "INT_HOUSE", 1.0, True, False, False, False, -1)
Sequence.SetToRepeat(131@, True)
Sequence.Close(131@)
132@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2167.631, -249.1143, 35.5234, 4, -1)
Task.Pause(-1, 500)
Task.PlayAnim(-1, "WASH_UP", "INT_HOUSE", 1.0, True, False, False, False, -1)
Sequence.SetToRepeat(132@, True)
Sequence.Close(132@)
133@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2157.0, -248.9899, 35.5234, 4, -1)
Task.Pause(-1, 250)
Task.PlayAnim(-1, "WASH_UP", "INT_HOUSE", 1.0, True, False, False, False, -1)
Sequence.SetToRepeat(133@, True)
Sequence.Close(133@)
86@ = Char.Create(PedType.Mission1, 144, -2146.045, -242.5144, 35.5234)
Char.SetHeading(86@, 90.433)
Char.SetWeaponSkill(86@, 2)
Char.GiveWeapon(86@, WeaponType.Pistol, 9999)
Char.SetAccuracy(86@, 30)
Char.SetShootRate(86@, 30)
Char.SetDecisionMaker(86@, 36@)
87@ = Char.Create(PedType.CivFemale, 145, -2160.533, -247.0836, 35.5234)
Char.SetHeading(87@, 176.3351)
Char.PerformSequence(87@, 130@)
88@ = Char.Create(PedType.CivFemale, 145, -2163.767, -249.1202, 35.5234)
Char.SetHeading(88@, 11.5708)
Char.PerformSequence(88@, 131@)
89@ = Char.Create(PedType.CivMale, 146, -2167.631, -249.1143, 35.5234)
Char.SetHeading(89@, 1.311)
Char.PerformSequence(89@, 132@)
90@ = Char.Create(PedType.CivMale, 146, -2157.0, -248.9899, 35.5234)
Char.SetHeading(90@, 0.8891)
Char.PerformSequence(90@, 133@)
47@ = 0

:SYN7_1083
if 
  47@ <> 0
goto_if_false @SYN7_1144
if 
  not Char.IsDead(86@(47@,8i))
goto_if_false @SYN7_1144
Char.SetIsTargetPriority(86@(47@,8i), False)
Char.SetDecisionMaker(86@(47@,8i), 34@)

:SYN7_1144
47@ += 1
  47@ >= 5
goto_if_false @SYN7_1083
return 

:SYN7_1167
Group.SetSeparationRange($Players_Group, 100.0)
Path.SwitchPedRoadsOff(-2175.817, -55.8818, 27.0, -2059.205, -99.4399, 37.0)
Path.SwitchRoadsOff(-2175.817, -55.8818, 27.0, -2059.205, -99.4399, 37.0)
Path.SwitchPedRoadsOff(-2107.98, -71.8985, 30.0, -2160.256, -89.7108, 37.0)
TIMERA = 0
Camera.SetBehindPlayer
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_1308
Char.SetHeading($scplayer, 280.0)

:SYN7_1308
40@ = Blip.AddForCoord(-1688.901, 1035.95, 43.7187)
Streaming.RequestModel(549)
Streaming.RequestModel(50)
Streaming.RequestAnimation("CAR")
Streaming.RequestModel(330)
Streaming.RequestModel(#HEALTH)
Streaming.RequestModel(346)

:SYN7_1359
if or
  not Streaming.HasModelLoaded(549)
  not Streaming.HasModelLoaded(50)
  not Streaming.HasAnimationLoaded("CAR")
  not Streaming.HasModelLoaded(330)
  not Streaming.HasModelLoaded(#HEALTH)
goto_if_false @SYN7_1407
wait 0
goto @SYN7_1359

:SYN7_1407
if 
  not Streaming.HasModelLoaded(346)
goto_if_false @SYN7_1434
wait 0
goto @SYN7_1407

:SYN7_1434
121@ = Pickup.Create(#HEALTH, PickupType.Once, -2182.652, -247.3813, 36.4)
Camera.DoFade(1000, Fade.In)
Player.SetControl($player1, True)
45@ = Object.Create(#WONGS_GATE, -2127.0, -80.8, 34.3281)
Object.SetHeading(45@, 180.0)
46@ = Object.Create(#DYN_RAMP, -2175.2, -209.7745, 34.3281)
Object.SetHeading(46@, 85.6854)
Car.CustomPlateForNextCar(549, "TIMEBOMB")
38@ = Car.Create(549, -1688.901, 1035.95, 44.6)
Car.SetDirtLevel(38@, 12.0)
Car.FreezePosition(38@, True)
Car.SetCanBurstTires(38@, False)
Car.SetHeading(38@, 90.0)
Car.SetHealth(38@, 1000)
37@ = Char.Create(PedType.CivMale, 50, -1689.12, 1038.2, 44.2)
Char.SetHealth(37@, 800)
Char.SetMaxHealth(37@, 800)
Char.SetNeverTargeted(37@, True)
Char.SetCollision(37@, False)
Char.SetHeading(37@, 0.0)
Task.PlayAnim(37@, "FIXN_CAR_LOOP", "CAR", 4.0, True, False, False, True, 0)
Char.SetAccuracy(37@, 100)
Char.SetDecisionMaker(37@, 35@)
World.SetPedDensityMultiplier(0.5)
World.SetCarDensityMultiplier(1.0)
Game.SetRelationship(RelationshipType.Like, PedType.Mission1, PedType.Mission1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Player1, PedType.Mission1)
TIMERB = 0
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 28200)

:SYN7_1790
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @SYN7_1816
wait 0
goto @SYN7_1790

:SYN7_1816
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
gosub @SYN7_16516
Camera.SetFixedPosition(-2029.134, 164.0932, 29.0052, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2029.778, 163.3323, 28.9291, SwitchType.JumpCut)
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_1901
Task.UseMobilePhone($scplayer, True)

:SYN7_1901
wait 2000
Text.PrintNow('MTG01A', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 20000)

:SYN7_1933
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYN7_1959
wait 0
goto @SYN7_1933

:SYN7_1959
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:SYN7_1970
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SYN7_1996
wait 0
goto @SYN7_1970

:SYN7_1996
wait 500
gosub @SYN7_16549

:SYN7_2008
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_14615
wait 0
gosub @SYN7_16652
gosub @SYN7_16945
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  113@ <> 8
  113@ <> 0
goto_if_false @SYN7_2080
113@ = 7

:SYN7_2080
if and
  117@ == 2
  113@ == 0
goto_if_false @SYN7_2141
set_lvar_text_label 127@s = 'MTG01B'
set_lvar_int_to_constant 118@ = 20004
gosub @SYN7_16925
113@ = 1

:SYN7_2141
if and
  117@ == 2
  113@ == 1
goto_if_false @SYN7_2226
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_2190
Char.StartFacialTalk($scplayer, 5000)

:SYN7_2190
set_lvar_text_label 127@s = 'MTG01C'
set_lvar_int_to_constant 118@ = 20001
gosub @SYN7_16925
113@ = 2

:SYN7_2226
if and
  117@ == 2
  113@ == 2
goto_if_false @SYN7_2308
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_2272
Char.StopFacialTalk($scplayer)

:SYN7_2272
set_lvar_text_label 127@s = 'MTG01D'
set_lvar_int_to_constant 118@ = 20005
gosub @SYN7_16925
113@ = 3

:SYN7_2308
if and
  117@ == 2
  113@ == 3
goto_if_false @SYN7_2393
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_2357
Char.StartFacialTalk($scplayer, 5000)

:SYN7_2357
set_lvar_text_label 127@s = 'MTG01E'
set_lvar_int_to_constant 118@ = 20002
gosub @SYN7_16925
113@ = 4

:SYN7_2393
if and
  117@ == 2
  113@ == 4
goto_if_false @SYN7_2475
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_2439
Char.StopFacialTalk($scplayer)

:SYN7_2439
set_lvar_text_label 127@s = 'MTG01F'
set_lvar_int_to_constant 118@ = 20006
gosub @SYN7_16925
113@ = 5

:SYN7_2475
if and
  117@ == 2
  113@ == 5
goto_if_false @SYN7_2536
set_lvar_text_label 127@s = 'MTG01G'
set_lvar_int_to_constant 118@ = 20007
gosub @SYN7_16925
113@ = 6

:SYN7_2536
if and
  117@ == 2
  113@ == 6
goto_if_false @SYN7_2621
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_2585
Char.StartFacialTalk($scplayer, 5000)

:SYN7_2585
set_lvar_text_label 127@s = 'MTG01H'
set_lvar_int_to_constant 118@ = 20003
gosub @SYN7_16925
113@ = 7

:SYN7_2621
if and
  117@ == 2
  113@ == 7
goto_if_false @SYN7_2718
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_2667
Char.StopFacialTalk($scplayer)

:SYN7_2667
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_2690
Task.UseMobilePhone($scplayer, False)

:SYN7_2690
Streaming.MarkModelAsNoLongerNeeded(330)
Text.PrintNow('SYN7_01', 9000, 1)
113@ = 8

:SYN7_2718
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @SYN7_2740
goto @SYN7_14698

:SYN7_2740
$s7_rnd = Char.GetSpeed($scplayer)
if or
  Char.LocateAnyMeans3D($scplayer, -2129.308, -129.0417, 34.3203, 50.0, 50.0, 500.0, False)
  Char.LocateAnyMeans3D($scplayer, -2149.624, -244.8758, 35.5234, 98.0, 98.0, 500.0, False)
goto_if_false @SYN7_2854
$s7_timer = 1
Game.SetWantedMultiplier(0.0)
goto @SYN7_2868

:SYN7_2854
$s7_timer = 0
Game.SetWantedMultiplier(1.0)

:SYN7_2868
if and
  48@ == 0
  not Char.IsDead($scplayer)
goto_if_false @SYN7_5815
if 
  Char.LocateAnyMeans3D($scplayer, -1699.484, 1030.651, 44.2187, 4.0, 4.0, 4.0, True)
goto_if_false @SYN7_5815
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_2962
Player.SetControl($player1, False)

:SYN7_2962
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SYN7_3001
$car = Char.StoreCarIsInNoSave($scplayer)
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 2000000)

:SYN7_3001
113@ = 8
gosub @SYN7_16516
Camera.SetFixedPosition(-1721.071, 1024.804, 49.7941, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1720.161, 1025.186, 49.6318, SwitchType.JumpCut)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SYN7_3099
Task.LeaveAnyCar($scplayer)
wait 2000
goto @SYN7_3124

:SYN7_3099
Task.GoStraightToCoord($scplayer, -1696.49, 1034.98, 45.11, MoveState.Walk, 2000)

:SYN7_3124
gosub @SYN7_16586
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 1825)

:SYN7_3138
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @SYN7_3164
wait 0
goto @SYN7_3138

:SYN7_3164
Streaming.RequestModel(145)
Streaming.RequestModel(146)
Streaming.RequestModel(144)
Streaming.RequestModel(48)
Streaming.RequestModel(46)
Streaming.RequestModel(352)
Streaming.RequestModel(412)
Streaming.RequestAnimation("INT_HOUSE")

:SYN7_3210
if or
  not Streaming.HasModelLoaded(145)
  not Streaming.HasModelLoaded(146)
  not Streaming.HasModelLoaded(144)
  not Streaming.HasModelLoaded(48)
  not Streaming.HasModelLoaded(46)
goto_if_false @SYN7_3255
wait 0
goto @SYN7_3210

:SYN7_3255
if or
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(412)
  not Streaming.HasAnimationLoaded("INT_HOUSE")
goto_if_false @SYN7_3300
wait 0
goto @SYN7_3255

:SYN7_3300
Streaming.RequestCarRecording(483)

:SYN7_3305
if 
  not Streaming.HasCarRecordingBeenLoaded(483)
goto_if_false @SYN7_3332
wait 0
goto @SYN7_3305

:SYN7_3332
if 
  not Char.IsDead(37@)
goto_if_false @SYN7_3394
137@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1692.068, 1036.196, 44.2109, MoveState.Walk, -2)
Task.TurnCharToFaceChar(-1, 37@)
Task.ToggleDuck(-1, True)
Sequence.Close(137@)

:SYN7_3394
if 
  not Car.IsDead(38@)
goto_if_false @SYN7_3510
if 
  not Char.IsInCar($scplayer, 38@)
goto_if_false @SYN7_3465
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SYN7_3465
Char.WarpFromCarToCoord($scplayer, -1693.321, 1034.32, 44.2109)

:SYN7_3465
Char.SetCoordinates($scplayer, -1693.321, 1034.32, 44.2109)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.SetHeading($scplayer, 329.4165)
Char.PerformSequence($scplayer, 137@)

:SYN7_3510
wait 1500
Text.ClearPrints
Camera.SetFixedPosition(-1694.216, 1036.72, 45.3716, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1693.236, 1036.801, 45.1866, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)
TIMERA = 0
if 
  not Car.IsDead(38@)
goto_if_false @SYN7_3620
39@ = Blip.AddForCar(38@)
Blip.ChangeDisplay(39@, BlipDisplay.Neither)
Blip.SetAsFriendly(39@, True)

:SYN7_3620
if 
  not Char.IsDead(37@)
goto_if_false @SYN7_3644
Audio.ReportMissionAudioEventAtChar(37@, 1152)

:SYN7_3644
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 20800)

:SYN7_3655
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYN7_3681
wait 0
goto @SYN7_3655

:SYN7_3681
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SYN7_AA', 3000, 1)
TIMERA = 0

:SYN7_3708
if 
  2000 > TIMERA
goto_if_false @SYN7_3762
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN7_3755
goto @SYN7_5260

:SYN7_3755
goto @SYN7_3708

:SYN7_3762
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 20802)

:SYN7_3773
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYN7_3799
wait 0
goto @SYN7_3773

:SYN7_3799
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SYN7_AB', 2000, 1)
TIMERA = 0

:SYN7_3826
if 
  1000 > TIMERA
goto_if_false @SYN7_3880
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN7_3873
goto @SYN7_5260

:SYN7_3873
goto @SYN7_3826

:SYN7_3880
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_3944
138@ = Sequence.Open()
Task.PlayAnim(-1, "FIXN_CAR_OUT", "CAR", 4.0, False, False, False, True, 0)
Sequence.Close(138@)

:SYN7_3944
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(38@)
goto_if_false @SYN7_4007
Task.ToggleDuck($scplayer, False)
Task.GoStraightToCoord($scplayer, -1690.423, 1034.003, 44.2109, MoveState.Walk, 6000)
Task.EnterCarAsDriver($scplayer, 38@, -1)

:SYN7_4007
TIMERA = 0

:SYN7_4014
if 
  500 > TIMERA
goto_if_false @SYN7_4068
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN7_4061
goto @SYN7_5260

:SYN7_4061
goto @SYN7_4014

:SYN7_4068
if 
  not Char.IsDead(37@)
goto_if_false @SYN7_4092
Char.PerformSequence(37@, 138@)

:SYN7_4092
if 
  not Char.IsDead(37@)
goto_if_false @SYN7_4116
Audio.ReportMissionAudioEventAtChar(37@, 1151)

:SYN7_4116
TIMERA = 0

:SYN7_4123
if 
  1500 > TIMERA
goto_if_false @SYN7_4177
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN7_4170
goto @SYN7_5260

:SYN7_4170
goto @SYN7_4123

:SYN7_4177
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 20803)

:SYN7_4188
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYN7_4214
wait 0
goto @SYN7_4188

:SYN7_4214
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SYN7_AC', 3000, 1)
if 
  not Char.IsDead(37@)
goto_if_false @SYN7_4258
Char.StartFacialTalk(37@, 5000)

:SYN7_4258
Camera.SetFixedPosition(-1690.172, 1033.266, 45.4626, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1689.64, 1034.11, 45.3904, SwitchType.JumpCut)
if 
  not Char.IsDead(37@)
goto_if_false @SYN7_4340
Char.SetCollision(37@, True)
Task.TurnCharToFaceChar(37@, $scplayer)

:SYN7_4340
if 
  not Car.IsDead(38@)
goto_if_false @SYN7_4476
Car.SetCoordinates(38@, -1688.901, 1034.95, 43.7187)
if 
  not Char.IsDead(37@)
goto_if_false @SYN7_4469
Task.LookAtChar($scplayer, 37@, 5000)
Task.PlayAnim(37@, "IDLE_CHAT", "PED", 1.0, False, False, False, False, -1)
Char.SetCoordinates(37@, -1689.12, 1036.9, 44.3187)
Char.SetHeading(37@, 180.0)

:SYN7_4469
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)

:SYN7_4476
TIMERB = 0

:SYN7_4483
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SYN7_4533
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN7_4526
goto @SYN7_5260

:SYN7_4526
goto @SYN7_4483

:SYN7_4533
if 
  not Char.IsDead(37@)
goto_if_false @SYN7_4554
Char.StopFacialTalk(37@)

:SYN7_4554
TIMERA = 0

:SYN7_4561
if 
  2500 > TIMERA
goto_if_false @SYN7_4615
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN7_4608
goto @SYN7_5260

:SYN7_4608
goto @SYN7_4561

:SYN7_4615
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 20804)

:SYN7_4626
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYN7_4652
wait 0
goto @SYN7_4626

:SYN7_4652
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SYN7_AD', 4000, 1)
if 
  not Char.IsDead(37@)
goto_if_false @SYN7_4696
Char.StartFacialTalk(37@, 5000)

:SYN7_4696
TIMERB = 0

:SYN7_4703
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SYN7_4753
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN7_4746
goto @SYN7_5260

:SYN7_4746
goto @SYN7_4703

:SYN7_4753
if 
  not Char.IsDead(37@)
goto_if_false @SYN7_4774
Char.StopFacialTalk(37@)

:SYN7_4774
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 20801)

:SYN7_4785
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYN7_4811
wait 0
goto @SYN7_4785

:SYN7_4811
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_4835
Char.StartFacialTalk($scplayer, 5000)

:SYN7_4835
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SYN7_AE', 4000, 1)
TIMERB = 0

:SYN7_4862
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SYN7_4912
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN7_4905
goto @SYN7_5260

:SYN7_4905
goto @SYN7_4862

:SYN7_4912
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_4933
Char.StopFacialTalk($scplayer)

:SYN7_4933
if 
  not Car.IsDead(38@)
goto_if_false @SYN7_4994
if 
  not Char.IsDead(37@)
goto_if_false @SYN7_4994
Char.ClearTasks(37@)
Task.GoToCoordAnyMeans(37@, -1683.17, 1037.342, 45.2173, 4, -1)

:SYN7_4994
TIMERA = 0

:SYN7_5001
if 
  1000 > TIMERA
goto_if_false @SYN7_5055
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN7_5048
goto @SYN7_5260

:SYN7_5048
goto @SYN7_5001

:SYN7_5055
gosub @SYN7_16586
Text.ClearPrints
World.ClearArea(-1704.693, 1027.476, 44.211, 30.0, True)
Streaming.LoadSceneInDirection(-1696.585, 1038.498, 44.2173, 150.0018)
if 
  not Car.IsDead(38@)
goto_if_false @SYN7_5141
Car.FreezePosition(38@, False)
Car.StartPlayback(38@, 483)

:SYN7_5141
Camera.SetFixedPosition(-1696.99, 1045.54, 48.8, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1701.21, 1036.55, 45.7, SwitchType.JumpCut)
gosub @SYN7_16619
TIMERA = 0

:SYN7_5206
if 
  2000 > TIMERA
goto_if_false @SYN7_5260
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @SYN7_5253
goto @SYN7_5260

:SYN7_5253
goto @SYN7_5206

:SYN7_5260
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_5281
Char.StopFacialTalk($scplayer)

:SYN7_5281
Char.Delete(37@)
Streaming.RemoveAnimation("CAR")
if 
  not Car.IsDead(38@)
goto_if_false @SYN7_5343
Car.FreezePosition(38@, False)
if 
  not Char.IsInCar($scplayer, 38@)
goto_if_false @SYN7_5343
Char.WarpIntoCar($scplayer, 38@)

:SYN7_5343
if 
  not Car.IsDead(38@)
goto_if_false @SYN7_5441
if 
  Car.IsPlaybackGoingOn(38@)
goto_if_false @SYN7_5387
Car.SkipToEndAndStopPlayback(38@)
goto @SYN7_5441

:SYN7_5387
World.ClearArea(-1704.615, 1026.202, 44.1953, 20.0, True)
Car.SetCoordinates(38@, -1704.615, 1026.202, 44.1953)
Car.SetHeading(38@, 168.8963)

:SYN7_5441
TIMERA = 0
Blip.Remove(40@)
Blip.ChangeDisplay(39@, BlipDisplay.Neither)
41@ = Blip.AddForCoord(-2128.12, -83.3848, 34.314)
gosub @SYN7_16549
Text.PrintNow('SYN7_03', 7000, 1)
139@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2128.848, -79.3918, 34.2565, 4, -1)
Task.AchieveHeading(-1, 0.0)
Sequence.SetToRepeat(139@, True)
Sequence.Close(139@)
140@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -2128.848, -79.3918, 34.2565, 4, -1)
Task.AchieveHeading(-1, 0.0)
Sequence.SetToRepeat(140@, True)
Sequence.Close(140@)
42@ = Char.Create(PedType.Mission1, 144, -2128.848, -79.3918, 34.2565)
Char.GiveWeapon(42@, WeaponType.MicroUzi, 1000)
Char.SetHeading(42@, 0.0)
43@ = Char.Create(PedType.Mission1, 48, -2128.848, -79.3918, 34.2565)
Char.GiveWeapon(43@, WeaponType.MicroUzi, 1000)
Char.SetHeading(43@, 0.0)
Char.PerformSequence(42@, 139@)
Char.PerformSequence(43@, 140@)
47@ = 0

:SYN7_5713
Char.SetAccuracy(42@(47@,3i), 40)
Char.SetDecisionMaker(42@(47@,3i), 36@)
Char.SetRelationship(42@(47@,3i), RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(42@(47@,3i), RelationshipType.Like, PedType.Mission1)
Char.SetSenseRange(42@(47@,3i), 150.0)
Char.SetIsTargetPriority(42@(47@,3i), True)
47@ += 1
  47@ >= 2
goto_if_false @SYN7_5713
48@ = 1

:SYN7_5815
if 
  48@ == 1
goto_if_false @SYN7_7999
if and
  Char.LocateAnyMeans3D($scplayer, -2124.501, -77.7719, 34.1719, 50.0, 50.0, 50.0, False)
  not Char.IsDead(42@)
  not Char.IsDead(43@)
goto_if_false @SYN7_6010
if 
  83@ == 0
goto_if_false @SYN7_6010
gosub @SYN7_493
Text.PrintNow('SYN7_52', 4000, 1)
83@ = 1
if 
  Blip.DoesExist(41@)
goto_if_false @SYN7_5962
Blip.ChangeDisplay(41@, BlipDisplay.Neither)

:SYN7_5962
if 
  not Char.IsDead(42@)
goto_if_false @SYN7_5986
84@ = Blip.AddForChar(42@)

:SYN7_5986
if 
  not Char.IsDead(43@)
goto_if_false @SYN7_6010
85@ = Blip.AddForChar(43@)

:SYN7_6010
if 
  not Char.IsDead(43@)
goto_if_false @SYN7_6159
if 
  Char.LocateAnyMeans3D(43@, -2126.911, -79.3953, 34.2567, 10.0, 10.0, 10.0, False)
goto_if_false @SYN7_6088
115@ = 1
goto @SYN7_6159

:SYN7_6088
Path.SwitchPedRoadsBackToOriginal(-2175.817, -55.8818, 27.0, -2059.205, -99.4399, 37.0)
Path.SwitchPedRoadsBackToOriginal(-2107.98, -71.8985, 30.0, -2160.256, -89.7108, 37.0)
115@ = 0

:SYN7_6159
if 
  not Char.IsDead(42@)
goto_if_false @SYN7_6308
if 
  Char.LocateAnyMeans3D(42@, -2126.911, -79.3953, 34.2567, 10.0, 10.0, 10.0, False)
goto_if_false @SYN7_6237
114@ = 1
goto @SYN7_6308

:SYN7_6237
Path.SwitchPedRoadsBackToOriginal(-2175.817, -55.8818, 27.0, -2059.205, -99.4399, 37.0)
Path.SwitchPedRoadsBackToOriginal(-2107.98, -71.8985, 30.0, -2160.256, -89.7108, 37.0)
114@ = 0

:SYN7_6308
if 
  83@ == 1
goto_if_false @SYN7_6400
if 
  Char.IsDead(42@)
goto_if_false @SYN7_6363
if 
  Blip.DoesExist(84@)
goto_if_false @SYN7_6363
Blip.Remove(84@)

:SYN7_6363
if 
  Char.IsDead(43@)
goto_if_false @SYN7_6400
if 
  Blip.DoesExist(85@)
goto_if_false @SYN7_6400
Blip.Remove(85@)

:SYN7_6400
120@ = Streaming.GetAreaVisible()
if and
  Char.IsDead(42@)
  Char.IsDead(43@)
  120@ == 0
goto_if_false @SYN7_7999
gosub @SYN7_16586
Streaming.RequestAnimation("ON_LOOKERS")

:SYN7_6454
if 
  not Streaming.HasAnimationLoaded("ON_LOOKERS")
goto_if_false @SYN7_6490
wait 0
goto @SYN7_6454

:SYN7_6490
gosub @SYN7_16516
52@ = Char.Create(PedType.Mission1, 46, -2125.871, -97.1422, 34.3281)
Char.SetWeaponSkill(52@, 2)
Char.GiveWeapon(52@, WeaponType.Pistol, 9999)
Task.PlayAnim(52@, "POINT_LOOP", "ON_LOOKERS", 8.0, True, False, False, True, 3000)
if or
  115@ == 1
  114@ == 1
goto_if_false @SYN7_6666
Camera.SetFixedPosition(-2113.15, -72.3184, 40.9064, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2113.918, -72.8274, 40.5167, SwitchType.JumpCut)
goto @SYN7_6717

:SYN7_6666
Camera.SetFixedPosition(-2125.642, -95.0874, 35.6371, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2125.762, -96.0758, 35.7291, SwitchType.JumpCut)

:SYN7_6717
gosub @SYN7_16619
$s7_in_compound = Math.RandomIntInRange(0, 3)
switch_start $s7_in_compound {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SYN7_6988 {caseNum1} 0 {caseLabel1} @SYN7_6796 {caseNum2} 1 {caseLabel2} @SYN7_6860 {caseNum3} 2 {caseLabel3} @SYN7_6924 {caseNum4} -1 {caseLabel4} @SYN7_6988 {caseNum5} -1 {caseLabel5} @SYN7_6988 {caseNum6} -1 {caseLabel6} @SYN7_6988 {caseNum7} -1 {caseLabel7} @SYN7_6988

:SYN7_6796
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 20805)

:SYN7_6807
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYN7_6833
wait 0
goto @SYN7_6807

:SYN7_6833
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SYN7_BA', 4000, 1)
goto @SYN7_6988

:SYN7_6860
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 20806)

:SYN7_6871
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYN7_6897
wait 0
goto @SYN7_6871

:SYN7_6897
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SYN7_BB', 4000, 1)
goto @SYN7_6988

:SYN7_6924
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 20807)

:SYN7_6935
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYN7_6961
wait 0
goto @SYN7_6935

:SYN7_6961
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SYN7_BC', 4000, 1)
goto @SYN7_6988

:SYN7_6988
wait 4000
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(38@)
goto_if_false @SYN7_7087
if 
  Char.IsInCar($scplayer, 38@)
goto_if_false @SYN7_7087
World.ClearArea(-2127.799, -68.8104, 34.1719, 10.0, True)
Car.SetCoordinates(38@, -2127.799, -68.8104, 34.1719)
Car.SetHeading(38@, 180.0)

:SYN7_7087
World.ClearArea(-2129.256, -74.4958, 34.1719, 100.0, True)
50@ = Char.Create(PedType.Mission1, 144, -2119.011, -99.2082, 34.3281)
Char.GiveWeapon(50@, WeaponType.MicroUzi, 1000)
51@ = Char.Create(PedType.Mission1, 48, -2121.173, -108.9207, 34.3281)
Char.GiveWeapon(51@, WeaponType.MicroUzi, 1000)
53@ = Char.Create(PedType.Mission1, 48, -2104.2, -162.4759, 34.3273)
Char.GiveWeapon(53@, WeaponType.MicroUzi, 1000)
54@ = Char.Create(PedType.Mission1, 46, -2100.096, -157.8681, 34.3273)
Char.SetWeaponSkill(54@, 2)
Char.GiveWeapon(54@, WeaponType.Pistol, 9999)
55@ = Char.Create(PedType.Mission1, 144, -2162.635, -224.1719, 35.5156)
Char.SetHeading(55@, 350.5417)
Char.GiveWeapon(55@, WeaponType.MicroUzi, 1000)
47@ = 0

:SYN7_7307
if 
  not Char.IsDead(50@(47@,10i))
goto_if_false @SYN7_7398
Char.SetShootRate(50@(47@,10i), 30)
Char.SetAccuracy(50@(47@,10i), 30)
Char.SetIsTargetPriority(50@(47@,10i), True)
Char.SetDecisionMaker(50@(47@,10i), 36@)
Char.SetRelationship(50@(47@,10i), RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(50@(47@,10i), RelationshipType.Like, PedType.Mission1)

:SYN7_7398
47@ += 1
  47@ >= 6
goto_if_false @SYN7_7307
141@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2126.144, -82.2896, 34.3203, MoveState.Run, -1)
Task.GotoChar(-1, $scplayer, -1, 5.0)
Sequence.Close(141@)
Char.PerformSequence(50@, 141@)
Char.PerformSequence(51@, 141@)
if 
  not Char.IsDead(52@)
goto_if_false @SYN7_7548
Char.ClearTasksImmediately(52@)
Task.PlayAnim(52@, "POINT_LOOP", "ON_LOOKERS", 8.0, True, False, False, True, 3000)

:SYN7_7548
Task.GotoChar(53@, $scplayer, -1, 5.0)
Task.GotoChar(54@, $scplayer, -1, 5.0)
Camera.SetFixedPosition(-2119.4, -92.22, 34.61, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2170.17, -161.04, 46.68, SwitchType.JumpCut)
$s7_in_compound = Math.RandomIntInRange(0, 3)
switch_start $s7_in_compound {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SYN7_7893 {caseNum1} 0 {caseLabel1} @SYN7_7701 {caseNum2} 1 {caseLabel2} @SYN7_7765 {caseNum3} 2 {caseLabel3} @SYN7_7829 {caseNum4} -1 {caseLabel4} @SYN7_7893 {caseNum5} -1 {caseLabel5} @SYN7_7893 {caseNum6} -1 {caseLabel6} @SYN7_7893 {caseNum7} -1 {caseLabel7} @SYN7_7893

:SYN7_7701
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 20808)

:SYN7_7712
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYN7_7738
wait 0
goto @SYN7_7712

:SYN7_7738
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SYN7_CA', 4000, 1)
goto @SYN7_7893

:SYN7_7765
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 20809)

:SYN7_7776
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYN7_7802
wait 0
goto @SYN7_7776

:SYN7_7802
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SYN7_CB', 4000, 1)
goto @SYN7_7893

:SYN7_7829
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 20810)

:SYN7_7840
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYN7_7866
wait 0
goto @SYN7_7840

:SYN7_7866
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('SYN7_CC', 4000, 1)
goto @SYN7_7893

:SYN7_7893
wait 4000
gosub @SYN7_16549
Blip.Remove(41@)
70@ = Blip.AddForCoord(-2175.243, -209.7745, 34.3281)
if and
  not Car.IsDead(38@)
  not Char.IsDead($scplayer)
goto_if_false @SYN7_7977
if 
  not Char.IsInCar($scplayer, 38@)
goto_if_false @SYN7_7977
Blip.ChangeDisplay(70@, BlipDisplay.Neither)

:SYN7_7977
TIMERB = 0
Audio.ReportMissionAudioEventAtObject(45@, 1100)
48@ = 2

:SYN7_7999
if and
  48@ == 2
  not Car.IsDead(38@)
  not Char.IsDead($scplayer)
goto_if_false @SYN7_8518
if 
  Object.DoesExist(45@)
goto_if_false @SYN7_8155
$x, $y, $z = Object.GetCoordinates(45@)
if 
  -2117.0 > $x
goto_if_false @SYN7_8122
  Object.Slide(45@, -2117.0, -80.8, 34.3281, 0.2, 0.0, 0.0, False)
goto @SYN7_8155

:SYN7_8122
if 
  122@ == 0
goto_if_false @SYN7_8155
Audio.ReportMissionAudioEventAtObject(45@, 1101)
122@ = 1

:SYN7_8155
if and
  Char.LocateAnyMeans3D($scplayer, -2138.212, -201.8113, 34.3281, 20.0, 20.0, 20.0, False)
  72@ == 0
goto_if_false @SYN7_8307
Text.PrintNow('SYN7_35', 4000, 1)
47@ = 0

:SYN7_8233
Char.Delete(50@(47@,10i))
47@ += 1
  47@ >= 6
goto_if_false @SYN7_8233
47@ = 0

:SYN7_8270
Char.Delete(42@(47@,3i))
47@ += 1
  47@ >= 2
goto_if_false @SYN7_8270
72@ = 1

:SYN7_8307
if 
  Char.IsInCar($scplayer, 38@)
goto_if_false @SYN7_8518
if 
  Char.LocateAnyMeans3D($scplayer, -2181.76, -209.4146, 35.5234, 4.0, 4.0, 4.0, False)
goto_if_false @SYN7_8422
Text.PrintNow('SYN7_34', 6000, 1)
Blip.Remove(70@)
71@ = Blip.AddForCoord(-2184.059, -263.4215, 35.5234)
48@ = 3

:SYN7_8422
if 
  Char.LocateAnyMeans3D($scplayer, -2184.983, -218.1104, 35.5234, 4.0, 4.0, 4.0, False)
goto_if_false @SYN7_8518
Text.PrintNow('SYN7_34', 6000, 1)
Blip.Remove(70@)
71@ = Blip.AddForCoord(-2184.059, -263.4215, 35.5234)
48@ = 3

:SYN7_8518
if and
  48@ == 3
  not Car.IsDead(38@)
  not Char.IsDead($scplayer)
goto_if_false @SYN7_10121
if 
  Char.IsInCar($scplayer, 38@)
goto_if_false @SYN7_10119
if and
  Char.LocateAnyMeans3D($scplayer, -2150.527, -241.7461, 35.5234, 4.0, 4.0, 4.0, False)
  not Char.IsDead(86@)
  94@ == 0
goto_if_false @SYN7_8884
$s7_in_compound = Math.RandomIntInRange(0, 5)
switch_start $s7_in_compound {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SYN7_8877 {caseNum1} 0 {caseLabel1} @SYN7_8697 {caseNum2} 1 {caseLabel2} @SYN7_8733 {caseNum3} 2 {caseLabel3} @SYN7_8769 {caseNum4} 3 {caseLabel4} @SYN7_8805 {caseNum5} 4 {caseLabel5} @SYN7_8841 {caseNum6} -1 {caseLabel6} @SYN7_8877 {caseNum7} -1 {caseLabel7} @SYN7_8877

:SYN7_8697
set_lvar_text_label 127@s = 'SYN7_DA'
set_lvar_int_to_constant 118@ = 20811
gosub @SYN7_16925
goto @SYN7_8877

:SYN7_8733
set_lvar_text_label 127@s = 'SYN7_DB'
set_lvar_int_to_constant 118@ = 20812
gosub @SYN7_16925
goto @SYN7_8877

:SYN7_8769
set_lvar_text_label 127@s = 'SYN7_DC'
set_lvar_int_to_constant 118@ = 20813
gosub @SYN7_16925
goto @SYN7_8877

:SYN7_8805
set_lvar_text_label 127@s = 'SYN7_DD'
set_lvar_int_to_constant 118@ = 20814
gosub @SYN7_16925
goto @SYN7_8877

:SYN7_8841
set_lvar_text_label 127@s = 'SYN7_DE'
set_lvar_int_to_constant 118@ = 20815
gosub @SYN7_16925
goto @SYN7_8877

:SYN7_8877
94@ = 1

:SYN7_8884
if 
  Char.LocateAnyMeans3D($scplayer, -2184.059, -263.4215, 35.5234, 4.0, 4.0, 4.0, 73@)
goto_if_false @SYN7_10103
Text.PrintHelpForever('SYN7_20')
73@ = 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @SYN7_10096
48@ = 4
Text.ClearHelp
if 
  not Car.IsDead(38@)
goto_if_false @SYN7_9024
Car.FreezePosition(38@, True)
Car.SetLightsOn(38@, False)
74@ = Sequence.Open()
Task.LeaveCar(-1, 38@)
Sequence.Close(74@)

:SYN7_9024
142@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, -2146.042, -259.7312, 39.7195, 6, -2)
Task.FollowPathNodesToCoord(-1, -2146.229, -267.7039, 39.7195, 6, -2)
Task.FollowPathNodesToCoord(-1, -2156.51, -268.1435, 39.7195, 6, -2)
Sequence.Close(142@)
60@ = Char.Create(PedType.Mission1, 144, -2140.931, -253.9011, 39.7195)
Char.SetHeading(60@, 150.6317)
Char.PerformSequence(60@, 142@)
Sequence.Clear(142@)
142@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(-2157.726, -231.4555, 35.5234)
Path.ExtendRoute(-2153.749, -236.6368, 35.5234)
Path.ExtendRoute(-2153.623, -246.5058, 35.5234)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.FollowPathNodesToCoord(-1, -2162.264, -260.4177, 35.5234, 6, -2)
Task.FollowPathNodesToCoord(-1, -2167.765, -261.495, 35.5234, 6, -2)
Sequence.Close(142@)
61@ = Char.Create(PedType.Mission1, 48, -2162.236, -230.954, 35.522)
Char.SetHeading(61@, 231.2343)
Char.PerformSequence(61@, 142@)
Sequence.Clear(142@)
142@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(-2157.726, -231.4555, 35.5234)
Path.ExtendRoute(-2153.749, -236.6368, 35.5234)
Path.ExtendRoute(-2153.623, -246.5058, 35.5234)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.FollowPathNodesToCoord(-1, -2154.923, -248.2299, 35.5234, 6, -2)
Sequence.Close(142@)
62@ = Char.Create(PedType.Mission1, 46, -2168.337, -228.406, 35.522)
Char.SetHeading(62@, 294.489)
Char.PerformSequence(62@, 142@)
Sequence.Clear(142@)
142@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(-2157.726, -231.4555, 35.5234)
Path.ExtendRoute(-2153.749, -236.6368, 35.5234)
Path.ExtendRoute(-2153.623, -246.5058, 35.5234)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.FollowPathNodesToCoord(-1, -2156.835, -234.232, 35.5234, 6, -2)
Sequence.Close(142@)
63@ = Char.Create(PedType.Mission1, 46, -2168.74, -231.348, 35.5234)
Char.SetHeading(63@, 278.3553)
Char.PerformSequence(63@, 142@)
Sequence.Clear(142@)
64@ = Char.Create(PedType.Mission1, 46, -2162.417, -227.2437, 35.5143)
Char.SetHeading(64@, 196.0546)
Task.StayInSamePlace(64@, True)
47@ = 0

:SYN7_9651
Char.SetShootRate(60@(47@,10i), 30)
Char.SetAccuracy(60@(47@,10i), 30)
Char.SetIsTargetPriority(60@(47@,10i), True)
if 
  47@ == 4
goto_if_false @SYN7_9734
Char.SetWeaponSkill(60@(47@,10i), 2)
Char.GiveWeapon(60@(47@,10i), WeaponType.Pistol, 9999)
goto @SYN7_9759

:SYN7_9734
Char.GiveWeapon(60@(47@,10i), WeaponType.MicroUzi, 30000)
Char.SetCurrentWeapon(60@(47@,10i), WeaponType.MicroUzi)

:SYN7_9759
Char.SetDecisionMaker(60@(47@,10i), 36@)
Char.SetRelationship(60@(47@,10i), RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(60@(47@,10i), RelationshipType.Like, PedType.Mission1)
47@ += 1
  47@ >= 5
goto_if_false @SYN7_9651
gosub @SYN7_16516
Char.Delete(87@)
Char.Delete(88@)
Char.Delete(89@)
Char.Delete(90@)
Streaming.LoadSceneInDirection(-2150.44, -239.1755, 35.5234, 52.2777)
Camera.SetFixedPosition(-2152.86, -236.6111, 37.0321, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2153.623, -235.9684, 36.9637, SwitchType.JumpCut)
if 
  not Char.IsDead(64@)
goto_if_false @SYN7_9979
Task.PlayAnim(64@, "POINT_LOOP", "ON_LOOKERS", 8.0, False, False, False, False, 4000)

:SYN7_9979
Text.PrintNow('SYN7_37', 4000, 1)
Game.SetWantedMultiplier(0.0)
wait 4000
gosub @SYN7_16549
if and
  not Car.IsDead(38@)
  not Char.IsDead($scplayer)
goto_if_false @SYN7_10043
Task.LeaveCar($scplayer, 38@)

:SYN7_10043
Blip.Remove(71@)
Hud.DisplayTimerWithString($s7_velocity, TimerDirection.Down, 'SYN7_18')
75@ = Blip.AddForCoord(-2162.964, -225.5678, 35.5156)
TIMERA = 0
Player.ClearWantedLevel($player1)

:SYN7_10096
goto @SYN7_10112

:SYN7_10103
Text.ClearHelp
73@ = 1

:SYN7_10112
goto @SYN7_10121

:SYN7_10119
Text.ClearHelp

:SYN7_10121
if 
  48@ == 4
goto_if_false @SYN7_12109
if and
  TIMERA > 4000
  78@ == 0
goto_if_false @SYN7_10172
78@ = 1

:SYN7_10172
if 
  $s7_velocity == 0
goto_if_false @SYN7_10204
76@ = 1
goto @SYN7_11853

:SYN7_10204
if or
  Char.LocateAnyMeans3D($scplayer, -2162.964, -225.5678, 35.5156, 1.2, 1.2, 1.2, False)
  Char.LocateAnyMeans3D($scplayer, -2186.166, -216.9555, 35.5143, 6.0, 6.0, 6.0, False)
goto_if_false @SYN7_12109
gosub @SYN7_16586
gosub @SYN7_16516
Streaming.LoadScene(-2187.505, -263.5027, 36.5551)
Streaming.LoadSceneInDirection(-2157.059, -262.1108, 35.5156, 89.9913)
Blip.Remove(75@)
41@ = Blip.AddForCoord(-2127.2, -84.9324, 34.3273)
Hud.ClearTimer($s7_velocity)
Camera.SetFixedPosition(-2168.97, -262.731, 36.3878, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2169.968, -262.7543, 36.453, SwitchType.JumpCut)
gosub @SYN7_16619
if 
  not Car.IsDead(38@)
goto_if_false @SYN7_10457
Car.ExplodeInCutsceneShakeAndBits(38@, True, True, True)

:SYN7_10457
wait 100
Fx.AddExplosion(-2187.505, -263.5027, 36.5551, ExplosionType.Grenade)
wait 500
Fx.AddExplosion(-2187.18, -263.8283, 39.8421, ExplosionType.Grenade)
wait 500
Fx.AddExplosion(-2187.18, -263.8283, 42.8421, ExplosionType.Grenade)
wait 500
Fx.AddExplosion(-2187.432, -259.6525, 42.0391, ExplosionType.Grenade)
Fx.AddExplosion(-2188.399, -266.6203, 42.6058, ExplosionType.Grenade)
wait 500
Fx.AddExplosion(-2185.595, -265.3064, 47.5696, ExplosionType.Grenade)
wait 500
Fx.AddExplosion(-2184.774, -262.4794, 37.4383, ExplosionType.Grenade)
Fx.AddExplosion(-2187.574, -262.5659, 39.7252, ExplosionType.Grenade)
wait 500
if 
  Char.LocateAnyMeans3D($scplayer, -2163.6, -225.62, 36.0, 10.0, 10.0, 10.0, False)
goto_if_false @SYN7_10808
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SYN7_10771
$car = Char.StoreCarIsIn($scplayer)
Char.WarpFromCarToCoord($scplayer, -2162.734, -225.3373, 35.4984)
World.ClearArea(-2162.734, -225.3373, 35.4984, 10.0, True)
Car.Delete($car)
goto @SYN7_10791

:SYN7_10771
Char.SetCoordinates($scplayer, -2162.734, -225.3373, 35.4984)

:SYN7_10791
Char.SetHeading($scplayer, 0.0)
77@ = 0

:SYN7_10808
if 
  Char.LocateAnyMeans3D($scplayer, -2186.166, -216.9555, 35.5143, 10.0, 10.0, 10.0, False)
goto_if_false @SYN7_10993
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SYN7_10936
$car = Char.StoreCarIsIn($scplayer)
Char.WarpFromCarToCoord($scplayer, -2162.734, -225.3373, 35.4984)
World.ClearArea(-2162.734, -225.3373, 35.4984, 10.0, True)
Car.Delete($car)
goto @SYN7_10956

:SYN7_10936
Char.SetCoordinates($scplayer, -2162.734, -225.3373, 35.4984)

:SYN7_10956
Char.SetCoordinates($scplayer, -2181.331, -217.6694, 35.5078)
Char.SetHeading($scplayer, 286.3482)
77@ = 1

:SYN7_10993
gosub @SYN7_16586
Streaming.RemoveIpl("CRACK")
World.SetVisibilityOfClosestObjectOfType(-2166.86, -236.5, 40.86, 40.0, #CRACKFACT_SFS, False)
World.SetVisibilityOfClosestObjectOfType(-2185.49, -215.55, 34.31, 40.0, #CF_EXT_DEM_SFS, True)
World.SetVisibilityOfClosestObjectOfType(-2166.86, -236.5, 40.86, 40.0, #LODCRACKFACT_SFS, False)
World.SetVisibilityOfClosestObjectOfType(-2185.49, -215.55, 34.31, 40.0, #LODEXT_DEM_SFS, True)
wait 1000
if 
  77@ == 0
goto_if_false @SYN7_11182
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_11182
Char.SetCoordinates($scplayer, -2160.729, -220.985, 34.3203)
Char.SetHeading($scplayer, 336.7796)

:SYN7_11182
if 
  77@ == 1
goto_if_false @SYN7_11246
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_11246
Char.SetCoordinates($scplayer, -2175.513, -214.8866, 34.3203)
Char.SetHeading($scplayer, 298.3929)

:SYN7_11246
gosub @SYN7_14622
Streaming.LoadSceneInDirection(-2162.283, -220.5315, 34.3203, 324.4546)
gosub @SYN7_16549
95@ = Char.Create(PedType.Mission1, 144, -2132.044, -168.6656, 34.3273)
Char.SetHeading(95@, 168.3635)
Task.GoStraightToCoord(95@, -2141.766, -206.9254, 34.3203, MoveState.Run, -1)
96@ = Char.Create(PedType.Mission1, 48, -2136.878, -167.5268, 34.3203)
Char.SetHeading(96@, 172.0629)
Task.GoStraightToCoord(96@, -2141.766, -206.9254, 34.3203, MoveState.Run, -1)
105@ = Car.Create(412, -2124.606, -87.9687, 34.3203)
Car.SetCanBurstTires(105@, False)
Car.SetCruiseSpeed(105@, 40.0)
Car.SetHeading(105@, 231.2455)
97@ = Char.CreateInsideCar(105@, PedType.Mission1, 144)
98@ = Char.CreateAsPassenger(105@, PedType.Mission1, 144, 0)
99@ = Char.Create(PedType.Mission1, 144, -2103.291, -133.9342, 34.3273)
Char.SetHeading(99@, 170.6763)
100@ = Char.Create(PedType.Mission1, 48, -2107.37, -146.9669, 34.3273)
Char.SetHeading(100@, 174.6227)
101@ = Char.Create(PedType.Mission1, 48, -2145.116, -181.3902, 37.6913)
Char.SetHeading(101@, 176.688)
Task.StayInSamePlace(101@, True)
Task.ToggleDuck(101@, True)
102@ = Char.Create(PedType.Mission1, 48, -2111.808, -159.8649, 34.3273)
Char.SetHeading(102@, 138.7297)
Task.StayInSamePlace(102@, True)
47@ = 0

:SYN7_11642
Char.GiveWeapon(95@(47@,10i), WeaponType.MicroUzi, 1000)
Char.SetAccuracy(95@(47@,10i), 30)
Char.SetShootRate(95@(47@,10i), 30)
Char.SetDecisionMaker(95@(47@,10i), 36@)
Char.SetRelationship(95@(47@,10i), RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(95@(47@,10i), RelationshipType.Like, PedType.Mission1)
Char.SetSenseRange(95@(47@,10i), 70.0)
Char.SetIsTargetPriority(95@(47@,10i), True)
47@ += 1
  47@ >= 8
goto_if_false @SYN7_11642
Streaming.RequestCarRecording(485)

:SYN7_11767
if 
  not Streaming.HasCarRecordingBeenLoaded(485)
goto_if_false @SYN7_11794
wait 0
goto @SYN7_11767

:SYN7_11794
if 
  not Car.IsDead(105@)
goto_if_false @SYN7_11823
Car.StartPlayback(105@, 485)
Car.PausePlayback(105@)

:SYN7_11823
gosub @SYN7_16619
if and
  76@ == 1
  not Char.IsDead($scplayer)
goto_if_false @SYN7_12086

:SYN7_11853
$x, $y, $z = Char.GetCoordinates($scplayer)
47@ = 0

:SYN7_11874
Task.Die($scplayer)
$x, $y, $z = Char.GetCoordinates($scplayer)
$health_counter = Math.RandomFloatInRange(-3.0, 3.0)
add_float_var_to_float_var $x += $health_counter
add_float_var_to_float_var $y += $health_counter
Fx.AddExplosion($x, $y, $z, ExplosionType.Grenade)
$x, $y, $z = Char.GetCoordinates($scplayer)
$health_counter = Math.RandomFloatInRange(-3.0, 3.0)
add_float_var_to_float_var $x += $health_counter
add_float_var_to_float_var $y += $health_counter
Fx.AddExplosion($x, $y, $z, ExplosionType.Grenade)
$x, $y, $z = Char.GetCoordinates($scplayer)
$health_counter = Math.RandomFloatInRange(-3.0, 3.0)
add_float_var_to_float_var $x += $health_counter
add_float_var_to_float_var $y += $health_counter
Fx.AddExplosion($x, $y, $z, ExplosionType.Grenade)
wait 500
47@ += 1
  47@ >= 4
goto_if_false @SYN7_11874
goto @SYN7_15882

:SYN7_12086
Text.PrintNow('SYN7_23', 4000, 1)
48@ = 5

:SYN7_12109
if 
  48@ == 5
goto_if_false @SYN7_13735
if 
  124@ == 0
goto_if_false @SYN7_12300
if or
  Char.LocateAnyMeans3D($scplayer, -2118.54, -169.3188, 34.3273, 10.0, 10.0, 10.0, False)
  Char.LocateAnyMeans3D($scplayer, -2118.54, -169.3188, 34.3273, 10.0, 10.0, 10.0, False)
goto_if_false @SYN7_12300
if 
  not Char.IsDead(102@)
goto_if_false @SYN7_12293
126@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.ToggleDuck(-1, True)
Task.WeaponRoll(-1, False)
Task.ToggleDuck(-1, True)
Sequence.Close(126@)
Char.PerformSequence(102@, 126@)
Sequence.Clear(126@)

:SYN7_12293
124@ = 1

:SYN7_12300
if 
  123@ == 1
goto_if_false @SYN7_12405
if 
  not Car.IsDead(105@)
goto_if_false @SYN7_12405
if 
  not Car.IsPlaybackGoingOn(105@)
goto_if_false @SYN7_12405
if 
  not Char.IsDead(97@)
goto_if_false @SYN7_12374
Task.LeaveCar(97@, 105@)

:SYN7_12374
if 
  not Char.IsDead(98@)
goto_if_false @SYN7_12398
Task.LeaveCar(98@, 105@)

:SYN7_12398
123@ = 2

:SYN7_12405
if and
  Char.IsInArea3D($scplayer, -2097.723, -109.9725, 30.0, -2155.992, -122.742, 40.0, False)
  123@ == 0
goto_if_false @SYN7_12509
if and
  not Car.IsDead(105@)
  Car.IsPlaybackGoingOn(105@)
goto_if_false @SYN7_12502
if 
  not Car.IsDead(105@)
goto_if_false @SYN7_12502
Car.UnpausePlayback(105@)

:SYN7_12502
123@ = 1

:SYN7_12509
if and
  $s7_timer == 0
  123@ == 0
goto_if_false @SYN7_12597
if and
  not Car.IsDead(105@)
  Car.IsPlaybackGoingOn(105@)
goto_if_false @SYN7_12576
if 
  not Car.IsDead(105@)
goto_if_false @SYN7_12576
Car.UnpausePlayback(105@)

:SYN7_12576
TIMERA = 0
79@ = 1
123@ = 1

:SYN7_12597
if and
  Char.LocateAnyMeans3D($scplayer, -2127.37, -85.497, 35.5234, 20.0, 20.0, 10.0, False)
  79@ == 0
goto_if_false @SYN7_12682
TIMERA = 0
79@ = 1
Text.PrintNow('SYN7_13', 3000, 1)

:SYN7_12682
if and
  TIMERA > 3000
  79@ == 1
goto_if_false @SYN7_13090
if 
  not Car.IsDead(105@)
goto_if_false @SYN7_12757
if 
  125@ == 0
goto_if_false @SYN7_12757
107@ = Blip.AddForCar(105@)
Blip.SetAsFriendly(107@, True)

:SYN7_12757
81@ = Blip.AddForCoord(-2145.963, -117.1968, 38.1988)
Blip.ChangeDisplay(81@, BlipDisplay.Neither)
Blip.Remove(41@)
Text.PrintNow('SYN7_38', 5000, 1)
79@ = 2
108@ = Char.Create(PedType.Mission1, 48, -2107.37, -146.9669, 34.3273)
Char.SetHeading(108@, 174.6227)
109@ = Char.Create(PedType.Mission1, 144, -2107.37, -146.9669, 34.3273)
Char.SetHeading(109@, 174.6227)
110@ = Char.Create(PedType.Mission1, 48, -2136.109, -180.0674, 34.3203)
Char.SetHeading(110@, 297.2213)
111@ = Char.Create(PedType.Mission1, 144, -2140.6, -169.5873, 34.3203)
Char.SetHeading(111@, 258.2443)
112@ = Char.Create(PedType.Mission1, 144, -2143.463, -147.7724, 35.3922)
Char.SetHeading(112@, 209.4012)
47@ = 0

:SYN7_12992
Char.GiveWeapon(108@(47@,5i), WeaponType.MicroUzi, 1000)
Char.SetDecisionMaker(108@(47@,5i), 36@)
Char.SetRelationship(108@(47@,5i), RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(108@(47@,5i), RelationshipType.Like, PedType.Mission1)
Char.SetSenseRange(108@(47@,5i), 70.0)
Char.SetIsTargetPriority(108@(47@,5i), True)
47@ += 1
  47@ >= 5
goto_if_false @SYN7_12992

:SYN7_13090
if and
  TIMERA > 10000
  79@ == 2
goto_if_false @SYN7_13123
79@ = 3

:SYN7_13123
if 
  Car.IsDead(105@)
goto_if_false @SYN7_13167
if 
  Blip.DoesExist(107@)
goto_if_false @SYN7_13160
Blip.Remove(107@)

:SYN7_13160
Blip.ChangeDisplay(81@, BlipDisplay.Both)

:SYN7_13167
if 
  not Car.IsDead(105@)
goto_if_false @SYN7_13276
if and
  not Char.IsInCar($scplayer, 105@)
  79@ > 1
goto_if_false @SYN7_13246
Blip.ChangeDisplay(107@, BlipDisplay.Both)
if 
  Blip.DoesExist(81@)
goto_if_false @SYN7_13239
Blip.ChangeDisplay(81@, BlipDisplay.Neither)

:SYN7_13239
goto @SYN7_13276

:SYN7_13246
Blip.ChangeDisplay(107@, BlipDisplay.Neither)
if 
  Blip.DoesExist(81@)
goto_if_false @SYN7_13276
Blip.ChangeDisplay(81@, BlipDisplay.Both)

:SYN7_13276
if 
  $s7_timer == 0
goto_if_false @SYN7_13400
if 
  Blip.DoesExist(41@)
goto_if_false @SYN7_13315
Blip.Remove(41@)

:SYN7_13315
if 
  Blip.DoesExist(81@)
goto_if_false @SYN7_13336
Blip.Remove(81@)

:SYN7_13336
if 
  Blip.DoesExist(81@)
goto_if_false @SYN7_13357
Blip.Remove(107@)

:SYN7_13357
48@ = 6
82@ = Blip.AddForCoord(-2029.603, 156.7249, 27.8429)
Text.PrintNow('SYN7_39', 6000, 1)

:SYN7_13400
if or
  Char.LocateAnyMeans3D($scplayer, -2149.364, -111.5658, 40.9064, 3.0, 3.0, 3.0, False)
  Char.LocateAnyMeans3D($scplayer, -2143.429, -111.1119, 41.0391, 3.0, 3.0, 3.0, False)
goto_if_false @SYN7_13735
if and
  $s7_rnd > 10.0
  Char.IsInAnyCar($scplayer)
goto_if_false @SYN7_13735
$car = Char.StoreCarIsIn($scplayer)
Car.SetForwardSpeed($car, 25.0)
Hud.SwitchWidescreen(True)
Text.ClearHelp
Text.ClearPrints
Clock.SetTimeScale(0.4)
Char.SetHeading($scplayer, 0.6201)
Camera.SetFixedPosition(-2133.065, -103.294, 37.6357, 0.0, 0.0, 0.0)
Camera.PointAtChar($scplayer, CameraMode.Fixed, SwitchType.JumpCut)
wait 1700
Clock.SetTimeScale(1.0)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
if 
  Char.LocateAnyMeans3D($scplayer, -2146.676, -90.7008, 40.5966, 4.0, 4.0, 6.0, False)
goto_if_false @SYN7_13735
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_13707
Char.SetCoordinates($scplayer, -2152.423, -75.3105, 34.3203)
Char.SetHeading($scplayer, 357.8863)

:SYN7_13707
Camera.SetBehindPlayer
if 
  not Car.IsDead($car)
goto_if_false @SYN7_13735
Car.SetForwardSpeed($car, 0.0)

:SYN7_13735
if 
  Object.DoesExist(45@)
goto_if_false @SYN7_13830
$x, $y, $z = Object.GetCoordinates(45@)
if and
  $x > -2127.0
  79@ == 1
goto_if_false @SYN7_13830
  Object.Slide(45@, -2127.0, -80.8, 34.3281, 0.2, 0.0, 0.0, False)

:SYN7_13830
if 
  48@ == 6
goto_if_false @SYN7_13929
if 
  Blip.DoesExist(107@)
goto_if_false @SYN7_13869
Blip.Remove(107@)

:SYN7_13869
if 
  Char.LocateAnyMeans3D($scplayer, -2029.603, 156.7249, 27.8429, 4.0, 4.0, 4.0, True)
goto_if_false @SYN7_13929
Blip.Remove(82@)
goto @SYN7_14698

:SYN7_13929
if and
  not Car.IsDead(38@)
  48@ <> 0
  48@ <= 3
goto_if_false @SYN7_14214
if 
  not Char.IsInCar($scplayer, 38@)
goto_if_false @SYN7_14107
Text.PrintNow('SYN7_32', 100, 1)
if 
  49@ == 0
goto_if_false @SYN7_14100
Blip.ChangeDisplay(39@, BlipDisplay.Both)
if 
  48@ == 1
goto_if_false @SYN7_14043
Blip.ChangeDisplay(41@, BlipDisplay.Neither)

:SYN7_14043
if 
  48@ == 2
goto_if_false @SYN7_14068
Blip.ChangeDisplay(70@, BlipDisplay.Neither)

:SYN7_14068
if 
  48@ == 3
goto_if_false @SYN7_14093
Blip.ChangeDisplay(71@, BlipDisplay.Neither)

:SYN7_14093
49@ = 1

:SYN7_14100
goto @SYN7_14214

:SYN7_14107
if 
  49@ == 1
goto_if_false @SYN7_14214
Blip.ChangeDisplay(39@, BlipDisplay.Neither)
if 
  48@ == 1
goto_if_false @SYN7_14157
Blip.ChangeDisplay(41@, BlipDisplay.Both)

:SYN7_14157
if 
  48@ == 2
goto_if_false @SYN7_14182
Blip.ChangeDisplay(70@, BlipDisplay.Both)

:SYN7_14182
if 
  48@ == 3
goto_if_false @SYN7_14207
Blip.ChangeDisplay(71@, BlipDisplay.Both)

:SYN7_14207
49@ = 0

:SYN7_14214
if and
  Car.IsDead(38@)
  4 > 48@
goto_if_false @SYN7_14260
Text.PrintNow('SYN7_36', 4000, 1)
goto @SYN7_15882

:SYN7_14260
if and
  Car.IsDead(105@)
  48@ >= 5
  79@ >= 2
goto_if_false @SYN7_14608
if 
  48@ <> 6
goto_if_false @SYN7_14324
Text.PrintNow('SYN7_53', 4000, 1)

:SYN7_14324
if 
  Blip.DoesExist(107@)
goto_if_false @SYN7_14345
Blip.Remove(107@)

:SYN7_14345
if 
  $s7_timer == 1
goto_if_false @SYN7_14608
Car.MarkAsNoLongerNeeded(105@)
125@ = 1
if 
  not Char.LocateAnyMeans3D($scplayer, -2116.264, -200.0631, 34.3273, 30.0, 30.0, 30.0, False)
goto_if_false @SYN7_14519
World.ClearArea(-2116.264, -200.0631, 34.3273, 10.0, True)
105@ = Car.Create(412, -2116.264, -200.0631, 34.3273)
Car.SetCanBurstTires(105@, False)
Car.SetCruiseSpeed(105@, 40.0)
Car.SetHeading(105@, 352.5713)
107@ = Blip.AddForCar(105@)
Blip.SetAsFriendly(107@, True)
goto @SYN7_14608

:SYN7_14519
World.ClearArea(-2116.264, -200.0631, 34.3273, 10.0, True)
105@ = Car.Create(412, -2124.606, -87.9687, 34.3203)
Car.SetCanBurstTires(105@, False)
Car.SetCruiseSpeed(105@, 40.0)
Car.SetHeading(105@, 231.2455)
107@ = Blip.AddForCar(105@)
Blip.SetAsFriendly(107@, True)

:SYN7_14608
goto @SYN7_2008

:SYN7_14615
goto @SYN7_15882

:SYN7_14622
47@ = 0

:SYN7_14629
Char.Delete(86@(47@,8i))
47@ += 1
  47@ >= 5
goto_if_false @SYN7_14629
47@ = 0

:SYN7_14666
Char.Delete(60@(47@,10i))
47@ += 1
  47@ >= 5
goto_if_false @SYN7_14666
return 

:SYN7_14698
Blip.Remove($garage_contact_blip)
Streaming.RemoveIpl("BARRIERS2")
Text.PrintWithNumberBig('M_PASSS', 25000, 5000, TextStyle.Middle)
Player.AddScore($player1, 25000)
Stat.AwardPlayerMissionRespect(60)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.PlayerMadeProgress(1)
Stat.RegisterMissionPassed('SYND_7')
$flag_synd_mission_counter += 1
Stat.SetInt(StatId.CitiesPassed, 2)
Stat.SetInt(StatId.PassedSyndicateAndWoozie, 1)
Path.SwitchRoadsOn(-2696.464, 1239.866, 40.7599, -2665.359, 2190.96, 70.8125)
Path.SwitchRoadsOn(-2740.694, 2233.618, 40.8431, -2720.91, 2338.224, 80.4822)
Path.SwitchRoadsOn(-2695.584, 1237.981, 40.7328, -2664.417, 1454.767, 60.8126)
Path.SwitchRoadsOn(-995.0013, -416.2032, 30.4207, -940.5399, -251.8564, 40.6762)
Path.SwitchRoadsOn(-205.8387, 250.7443, 7.2472, -131.0039, 481.8496, 15.9152)
Path.SwitchRoadsOn(-100.7515, -927.8298, 18.0, -68.3752, -891.9871, 14.0)
Path.SwitchRoadsOn(609.7595, 327.3437, 15.8783, 429.8884, 616.0168, 20.289)
Path.SwitchRoadsOn(317.1688, 707.7672, 7.0, 437.5726, 709.0657, 20.5578)
Path.SwitchRoadsOn(391.1194, 640.015, 7.0, 402.2627, 664.798, 18.5098)
Path.SwitchRoadsOn(289.2904, 636.3991, 7.8675, 409.4943, 702.3849, 20.0345)
Path.SwitchRoadsOn(300.3153, 718.7909, 7.7846, 316.7906, 781.0926, 14.0795)
Path.SwitchRoadsOn(254.9982, 837.029, 10.1731, 270.7453, 929.2404, 30.2553)
Path.SwitchRoadsOn(210.7811, 939.2068, 10.9062, 249.4799, 959.1111, 30.2141)
Path.SwitchRoadsOn(230.4545, 946.0961, 20.6674, 255.9772, 969.2755, 30.4776)
Path.SwitchRoadsOn(249.4279, 899.7975, 10.5871, 268.6826, 933.5995, 30.3975)
Path.SwitchRoadsOn(312.1081, 694.1089, 6.0, 324.0811, 733.0005, 10.0)
Path.SwitchRoadsOn(324.4526, 804.9198, 9.6186, 332.8747, 814.356, 14.3925)
Path.SwitchRoadsOn(1690.819, 376.5103, 28.1103, 1730.223, 445.2955, 30.8414)
Path.SwitchRoadsOn(1643.536, 227.3723, 27.4457, 1673.062, 295.5788, 30.0815)
Path.SwitchRoadsOn(1673.765, 388.1013, 40.2331, 1815.862, 804.9291, 10.0)
Path.SwitchRoadsOn(1705.156, 308.3448, 20.0, 1710.948, 316.4094, 23.5612)
Path.SwitchRoadsOn(-12.7067, -1522.455, 1.0, 80.8463, -1517.111, 5.0)
Path.SwitchRoadsOn(-16.3392, -1532.882, 0.0394, 69.3401, -1523.771, 5.922)
Path.SwitchRoadsOn(618.7253, -1189.606, 18.0, 623.5441, -1161.981, 22.0)
Path.SwitchRoadsOn(-33.4208, -1341.84, 9.0, 35.3764, -1303.948, 13.0)
Path.SwitchRoadsOn(-41.2393, -1385.87, 8.0, -3.5883, -1368.856, 10.5)
Path.SwitchRoadsOn(-1690.705, 539.6102, 30.3278, -1100.567, 1140.569, 50.735)
Path.SwitchRoadsOn(-1799.541, 379.7155, 16.0, -1780.199, 392.2779, 18.0)
Path.SwitchRoadsOn(-1092.429, 1286.505, 30.0, -1077.038, 1319.495, 35.0)
Path.SwitchRoadsOn(-1860.133, 314.7891, 38.0, -1638.563, 557.4354, 40.0)
Path.SwitchRoadsOn(-1737.333, 455.9431, 30.3573, -1710.363, 500.6261, 40.4891)
Path.SwitchRoadsOn(-1689.229, 513.0995, 30.2597, -1679.124, 524.8383, 40.25)
Path.SwitchRoadsOn(-1742.906, 500.7302, 30.4679, -1650.312, 551.8201, 40.7455)
Path.SwitchRoadsOff(-1761.95, 507.8931, 35.0533, -1751.361, 531.5917, 41.3335)
return 

:SYN7_15882
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_15959
if 
  Char.HasBeenArrested($scplayer)
goto_if_false @SYN7_15952
Restart.OverrideNext(-1605.792, 716.8598, 11.0241, 355.2978)

:SYN7_15952
goto @SYN7_15981

:SYN7_15959
Restart.OverrideNext(-2670.285, 616.4364, 13.4531, 183.1042)

:SYN7_15981
return 

:SYN7_15983
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_16004
Char.StopFacialTalk($scplayer)

:SYN7_16004
Streaming.RemoveCarRecording(483)
Streaming.RemoveCarRecording(485)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Hud.ClearTimer($s7_velocity)
Path.SwitchRoadsBackToOriginal(-2175.817, -55.8818, 27.0, -2059.205, -99.4399, 37.0)
Path.SwitchPedRoadsBackToOriginal(-2175.817, -55.8818, 27.0, -2059.205, -99.4399, 37.0)
Path.SwitchPedRoadsBackToOriginal(-2107.98, -71.8985, 30.0, -2160.256, -89.7108, 37.0)
if 
  Blip.DoesExist(40@)
goto_if_false @SYN7_16150
Blip.Remove(40@)

:SYN7_16150
if 
  Blip.DoesExist(39@)
goto_if_false @SYN7_16171
Blip.Remove(39@)

:SYN7_16171
if 
  Blip.DoesExist(41@)
goto_if_false @SYN7_16192
Blip.Remove(41@)

:SYN7_16192
if 
  Blip.DoesExist(70@)
goto_if_false @SYN7_16213
Blip.Remove(70@)

:SYN7_16213
if 
  Blip.DoesExist(71@)
goto_if_false @SYN7_16234
Blip.Remove(71@)

:SYN7_16234
if 
  Blip.DoesExist(75@)
goto_if_false @SYN7_16255
Blip.Remove(75@)

:SYN7_16255
if 
  Blip.DoesExist(81@)
goto_if_false @SYN7_16276
Blip.Remove(81@)

:SYN7_16276
if 
  Blip.DoesExist(107@)
goto_if_false @SYN7_16297
Blip.Remove(107@)

:SYN7_16297
47@ = 0

:SYN7_16304
if 
  Blip.DoesExist(84@(47@,2i))
goto_if_false @SYN7_16333
Blip.Remove(84@(47@,2i))

:SYN7_16333
47@ += 1
  47@ >= 2
goto_if_false @SYN7_16304
if 
  World.IsAnyPickupAtCoords(-2182.652, -247.3813, 36.4)
goto_if_false @SYN7_16387
Pickup.Remove(121@)

:SYN7_16387
$onmission = 0
Group.SetSeparationRange($Players_Group, 30.0)
$timer_mobile_start = Clock.GetGameTimer()
World.RemoveAllScriptFires
Streaming.MarkModelAsNoLongerNeeded(549)
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.RemoveAnimation("CAR")
Streaming.RemoveAnimation("ON_LOOKERS")
Streaming.RemoveAnimation("INT_HOUSE")
Streaming.MarkModelAsNoLongerNeeded(144)
Streaming.MarkModelAsNoLongerNeeded(48)
Streaming.MarkModelAsNoLongerNeeded(46)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(412)
Streaming.MarkModelAsNoLongerNeeded(#DYN_RAMP)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(145)
Streaming.MarkModelAsNoLongerNeeded(146)
Streaming.MarkModelAsNoLongerNeeded(344)
Streaming.MarkModelAsNoLongerNeeded(#HEALTH)
Streaming.MarkModelAsNoLongerNeeded(346)
Mission.Finish
return 

:SYN7_16516
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_16547
Text.ClearPrints
Text.ClearHelp
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)

:SYN7_16547
return 

:SYN7_16549
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_16584
Text.ClearPrints
Text.ClearHelp
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer

:SYN7_16584
return 

:SYN7_16586
Camera.DoFade(500, Fade.Out)

:SYN7_16593
if 
  Camera.GetFadingStatus
goto_if_false @SYN7_16617
wait 0
goto @SYN7_16593

:SYN7_16617
return 

:SYN7_16619
Camera.DoFade(500, Fade.In)

:SYN7_16626
if 
  Camera.GetFadingStatus
goto_if_false @SYN7_16650
wait 0
goto @SYN7_16626

:SYN7_16650
return 

:SYN7_16652
if 
is_ps2_keyboard_key_just_pressed 28
goto_if_false @SYN7_16743
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_16720
Char.SetCoordinates($scplayer, -1705.882, 1028.967, 44.1953)
Char.SetHeading($scplayer, 299.134)
113@ = 8

:SYN7_16720
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_16743
Task.UseMobilePhone($scplayer, False)

:SYN7_16743
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @SYN7_16804
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_16804
Char.SetCoordinates($scplayer, -2064.057, -68.6422, 34.1563)
Char.SetHeading($scplayer, 94.0454)

:SYN7_16804
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @SYN7_16840
Streaming.RemoveIpl("CRACK")
Streaming.RequestIpl("FUKDCRAK")

:SYN7_16840
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @SYN7_16901
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN7_16901
Char.SetCoordinates($scplayer, -2064.057, -68.6422, 34.1563)
Char.SetHeading($scplayer, 94.0454)

:SYN7_16901
if 
is_ps2_keyboard_key_just_pressed 15
goto_if_false @SYN7_16923
48@ = 5

:SYN7_16923
return 

:SYN7_16925
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 118@)
117@ = 0
return 

:SYN7_16945
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  117@ == 0
goto_if_false @SYN7_16988
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(127@s, 10000, 1)
117@ = 1

:SYN7_16988
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  117@ == 1
goto_if_false @SYN7_17026
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint(127@s)
117@ = 2

:SYN7_17026
return 

//-------------Mission 64---------------
// Originally: Pier 69

:SYN5
script_name 'SYN5'
gosub @SYN5_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYN5_38
gosub @SYN5_23151

:SYN5_38
gosub @SYN5_23260
terminate_this_script 

:SYN5_47
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('SYN5')
if 
  $onmission == 0
goto_if_false @SYN5_693
45@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1686.2, 1393.2, 20.5)
46@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1686.2, 1393.2, 20.5)
47@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1686.2, 1393.2, 20.5)
48@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1686.2, 1393.2, 20.5)
49@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1686.2, 1393.2, 20.5)
50@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1686.2, 1393.2, 20.5)
$wuzi = Char.Create(PedType.Mission1, 120, -1674.5, 1337.0, 6.2)
36@ = Char.Create(PedType.Mission1, 108@(107@,7i), -1675.7, 1336.1, 6.2)
37@ = Char.Create(PedType.Mission1, 108@(107@,7i), -1675.7, 1336.1, 6.2)
38@ = Char.Create(PedType.Mission1, 108@(107@,7i), -1675.7, 1336.1, 6.2)
35@ = Char.Create(PedType.Mission2, 293, -1716.0, 1349.8, 6.2)
45@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1716.8, 1351.6, 6.2)
46@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1717.5, 1350.7, 6.2)
55@ = Car.Create(600, -1774.2, 1376.8, 5.7)
$ryder = Char.CreateInsideCar(55@, PedType.Mission2, 291)
39@ = Char.CreateAsPassenger(55@, PedType.Mission2, 108@(107@,7i), -1)
40@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1774.2, 1376.8, 5.7)
56@ = Car.Create(566, -1784.2, 1379.8, 5.7)
41@ = Char.CreateInsideCar(56@, PedType.Mission2, 108@(107@,7i))
42@ = Char.CreateAsPassenger(56@, PedType.Mission2, 108@(107@,7i), 0)
57@ = Car.Create(566, -1795.0, 1383.6, 5.7)
43@ = Char.CreateInsideCar(57@, PedType.Mission2, 108@(107@,7i))
44@ = Char.CreateAsPassenger(57@, PedType.Mission2, 108@(107@,7i), 0)
58@ = Car.Create(487, -1583.3, 1420.2, 25.7)
34@ = Char.CreateAsPassenger(58@, PedType.Mission2, 292, 0)

:SYN5_693
Text.ClearPrints
Text.ClearThisPrintBigNow(TextStyle.Middle)
wait 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0
133@ = 0
91@ = 0
92@ = 0
93@ = 3
94@ = 0
95@ = 0
96@ = 0
98@ = 0
99@ = 6
97@ = 0
106@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
107@ = 0
106@ = 0
set_lvar_int_to_constant 108@ = 173
set_lvar_int_to_constant 109@ = 174
set_lvar_int_to_constant 111@ = 102
set_lvar_int_to_constant 112@ = 103
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
184@ = 0
185@ = 0
186@ = 0
187@ = 0
188@ = 0
189@ = 0
190@ = 0
191@ = 0.0
192@ = 0.0
193@ = 0.0
127@ = 0
128@ = 0
129@ = 0
130@ = 80
Camera.SetFadingColor(0, 0, 0)
wait 0
Weather.Force(WeatherType.SunnySf)
Camera.DoFade(500, Fade.Out)

:SYN5_1136
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_1160
wait 0
goto @SYN5_1136

:SYN5_1160
Player.MakeGangDisappear
Streaming.LoadSpecialCharacter(1, 'CESAR')
Streaming.RequestModel(358)
Streaming.RequestModel(429)
Streaming.RequestModel(#SNIPER_ANIM)
Streaming.RequestAnimation("MISC")
Streaming.RequestModel(173)
Streaming.RequestModel(174)
Streaming.RequestModel(330)
Streaming.RequestModel(372)
Streaming.RequestModel(120)
Streaming.RequestModel(117)
Streaming.RequestModel(567)
Streaming.LoadAllModelsNow
Group.Remove($Players_Group)
Player.SetGroupRecruitment($player1, False)
196@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Mission2)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission2, PedType.Player1)
197@ = DecisionMakerChar.Copy(65542)
World.ClearArea(-1748.3, 1263.0, 7.0, 5.0, True)
Car.CustomPlateForNextCar(567, "_LVA4L__")
77@ = Car.Create(567, -1748.3, 1263.0, 7.0)
Car.SetHeading(77@, 291.3)
Car.ChangeColor(77@, 3, 3)
World.ClearArea(-1720.7, 1277.3, 16.9, 2.0, True)
$cesar = Char.Create(PedType.Mission1, 290, -1720.7, 1277.3, 16.9)
Char.SetHeading($cesar, 317.9)
Char.GiveWeapon($cesar, WeaponType.Sniper, 12)
Char.SetNeverTargeted($cesar, True)
Char.SetDecisionMaker($cesar, 197@)
Char.SetOnlyDamagedByPlayer($cesar, True)
Char.SetStayInSamePlace($cesar, True)
Char.SetHeading($scplayer, 0.0)
Camera.SetBehindPlayer
79@ = Blip.AddForChar($cesar)
Blip.SetAsFriendly(79@, True)
World.ClearArea(-1717.5, 1281.6, 6.2, 1.0, True)
Char.SetCoordinates($scplayer, -1717.5, 1281.6, 6.2)
Char.SetHeading($scplayer, 143.8)
Game.SwitchRandomTrains(False)
Path.SwitchPedRoadsOff(-1755.6, 1256.6, 0.0, -1598.2, 1660.1, 50.0)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
World.ClearArea(-1716.7, 1282.6, 6.5, 2.0, True)
Camera.SetFixedPosition(-1716.7, 1282.6, 6.5, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1722.3, 1276.0, 16.9, SwitchType.JumpCut)
Game.EnableAmbientCrime(False)
TIMERA = 0
Camera.DoFade(500, Fade.In)

:SYN5_1694
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @SYN5_1720
goto @SYN5_23169

:SYN5_1720
Player.AlterWantedLevel($player1, 0)
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_1759
goto @SYN5_8953

:SYN5_1759
if 
  90@ == 1
goto_if_false @SYN5_1784
goto @SYN5_23151

:SYN5_1784
if 
  87@ == 0
goto_if_false @SYN5_2799
if 
  88@ == 0
goto_if_false @SYN5_1906
if 
  TIMERA > 500
goto_if_false @SYN5_1906
if 
  133@ == 0
goto_if_false @SYN5_1906
132@ = 1
134@ = 0
gosub @SYN5_30472
133@ = 1
89@ = 1
skip_cutscene_start_internal @SYN5_2000
88@ = 1

:SYN5_1906
if 
  88@ == 1
goto_if_false @SYN5_1956
if 
  132@ == 0
goto_if_false @SYN5_1956
TIMERA = 0
88@ = 2

:SYN5_1956
if 
  88@ == 2
goto_if_false @SYN5_2197
if 
  TIMERA > 1000
goto_if_false @SYN5_2197
89@ = 0

:SYN5_2000
skip_cutscene_end 
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_2034
goto @SYN5_8953

:SYN5_2034
if 
  90@ == 1
goto_if_false @SYN5_2059
goto @SYN5_23151

:SYN5_2059
if 
  89@ == 1
goto_if_false @SYN5_2094
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
132@ = 0

:SYN5_2094
World.ClearArea(-1721.4, 1276.2, 16.9, 1.0, True)
Char.SetCoordinates($cesar, -1721.4, 1276.2, 16.9)
Char.SetHeading($cesar, 326.3)
Text.PrintNow('SYN5_01', 7000, 1)
Player.MakeGangReappear
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
88@ = 3

:SYN5_2197
if 
  88@ == 3
goto_if_false @SYN5_2799
if 
  Char.LocateAnyMeansChar3D($scplayer, $cesar, 4.0, 4.0, 4.0, False)
goto_if_false @SYN5_2733
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
132@ = 0
Car.MarkAsNoLongerNeeded(77@)
Streaming.MarkModelAsNoLongerNeeded(567)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Game.ShutAllCharsUp(True)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @SYN5_2341
Char.SetCoordinates($scplayer, -1728.0, 1257.4, 16.9)
Char.SetHeading($scplayer, 42.2)

:SYN5_2341
World.ClearArea(-1673.7, 1369.0, 7.0, 150.0, True)
World.ClearArea(-1690.0, 1318.0, 7.0, 5.0, True)
set_lvar_int_to_constant 128@ = 429
gosub @SYN5_29241
75@ = Car.Create(429, -1690.0, 1318.0, 7.0)
Car.SetHeading(75@, 57.0)
Car.FreezePosition(75@, True)
Car.LockDoors(75@, CarLock.Locked)
World.ClearArea(-1721.4, 1276.2, 16.9, 5.0, True)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -1722.8, 1272.5, 16.9)
Char.SetHeading($scplayer, 326.3)
Char.ClearTasksImmediately($cesar)
Char.SetCoordinates($cesar, -1721.4, 1276.2, 16.9)
Char.SetHeading($cesar, 326.3)
if 
  Char.HasGotWeapon($scplayer, WeaponType.Sniper)
goto_if_false @SYN5_2575
Char.RemoveAllWeapons($cesar)
127@ = 1

:SYN5_2575
89@ = 1
skip_cutscene_start_internal @SYN5_5917
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1720.79, 1275.4, 16.9, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence($scplayer, 195@)
Sequence.Clear(195@)
Blip.Remove(79@)
132@ = 2
134@ = 0
135@ = 2
gosub @SYN5_30472
Camera.SetFixedPosition(-1725.2, 1270.5, 18.87, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1702.2, 1316.1, 22.4, SwitchType.JumpCut)
88@ = 0
87@ = 1

:SYN5_2733
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @SYN5_2799
Streaming.LoadScene(-1725.7, 1267.0, 17.3)
Char.SetCoordinates($scplayer, -1725.7, 1267.0, 17.3)
Char.SetHeading($scplayer, 308.8)
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:SYN5_2799
if 
  87@ == 1
goto_if_false @SYN5_7288
if 
  88@ == 0
goto_if_false @SYN5_3023
$task_status = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_3023
Task.TurnCharToFaceChar($scplayer, $cesar)
if 
  127@ == 0
goto_if_false @SYN5_2986
195@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.PlayAnim(-1, "IDLE_ARMED", "PED", 4.0, False, False, False, True, -1)
Sequence.Close(195@)
Char.PerformSequence($cesar, 195@)
Sequence.Clear(195@)
73@ = Object.Create(#SNIPER_ANIM, -1714.2, 1266.5, 18.3)
goto @SYN5_3016

:SYN5_2986
195@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(195@)
Char.PerformSequence($cesar, 195@)
Sequence.Clear(195@)

:SYN5_3016
88@ = 1

:SYN5_3023
if 
  88@ == 1
goto_if_false @SYN5_3243
if 
  132@ == 0
goto_if_false @SYN5_3243
$task_status = Char.GetScriptTaskStatus($cesar, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_3243
191@, 192@, 193@ = Char.GetOffsetInWorldCoords($cesar, 0.0, 1.0, -1.0)
Char.SetCoordinates($scplayer, 191@, 192@, 193@)
191@ = Char.GetHeading($cesar)
191@ += 180.0
Char.SetHeading($scplayer, 191@)
132@ = 2
134@ = 2
135@ = 4
gosub @SYN5_30472
Camera.SetFixedPosition(-1722.04, 1273.2, 18.81, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1708.2, 1299.9, 17.76, SwitchType.JumpCut)
88@ = 2

:SYN5_3243
if 
  88@ == 2
goto_if_false @SYN5_3466
if 
  127@ == 0
goto_if_false @SYN5_3441
191@, 192@, 193@ = Char.GetOffsetInWorldCoords($cesar, 0.0, 0.5, 0.0)
Char.RemoveAllWeapons($cesar)
Object.SetCoordinates(73@, 191@, 192@, 193@)
191@ = Char.GetHeading($scplayer)
Object.SetHeading(73@, 191@)
Task.PlayAnim($cesar, "PASS_RIFLE_PED", "MISC", 1000.0, False, False, False, False, -1)
Task.PlayAnim($scplayer, "PASS_RIFLE_PLY", "MISC", 1000.0, False, False, False, False, -1)
88@ = 3
goto @SYN5_3466

:SYN5_3441
if 
  132@ == 0
goto_if_false @SYN5_3466
88@ = 3

:SYN5_3466
if 
  88@ == 3
goto_if_false @SYN5_3800
if 
  127@ == 0
goto_if_false @SYN5_3793
if 
  Object.DoesExist(73@)
goto_if_false @SYN5_3786
if 
  Char.IsPlayingAnim($scplayer, "PASS_RIFLE_PLY")
goto_if_false @SYN5_3702
131@ = Char.GetAnimCurrentTime($scplayer, "PASS_RIFLE_PLY")
if 
  Object.IsPlayingAnim(73@, "PASS_RIFLE_O")
goto_if_false @SYN5_3633
Object.SetAnimCurrentTime(73@, "PASS_RIFLE_O", 131@)
goto @SYN5_3702

:SYN5_3633
if 
Object.PlayAnim(73@, "PASS_RIFLE_O", "MISC", 10000.0, False, False)
goto_if_false @SYN5_3702
Object.SetAnimSpeed(73@, "PASS_RIFLE_O", 0.0)

:SYN5_3702
if 
  Char.IsPlayingAnim($scplayer, "PASS_RIFLE_PLY")
goto_if_false @SYN5_3786
194@ = Char.GetAnimCurrentTime($scplayer, "PASS_RIFLE_PLY")
if 
  194@ == 1.0
goto_if_false @SYN5_3786
88@ = 4

:SYN5_3786
goto @SYN5_3800

:SYN5_3793
88@ = 4

:SYN5_3800
if 
  88@ == 4
goto_if_false @SYN5_3952
if 
  127@ == 0
goto_if_false @SYN5_3841
Object.Delete(73@)

:SYN5_3841
91@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Sniper)
if 
  24 > 91@
goto_if_false @SYN5_3892
Char.GiveWeapon($scplayer, WeaponType.Sniper, 24)
Char.SetCurrentWeapon($scplayer, WeaponType.Sniper)
goto @SYN5_3899

:SYN5_3892
Char.SetCurrentWeapon($scplayer, WeaponType.Sniper)

:SYN5_3899
Task.AimGunAtCoord($scplayer, -1715.4, 1287.5, 16.5, -1)
Task.AchieveHeading($cesar, 332.1)
gosub @SYN5_23800
TIMERA = 0
88@ = 5

:SYN5_3952
if 
  88@ == 5
goto_if_false @SYN5_4245
if 
  TIMERA > 2000
goto_if_false @SYN5_4245
if 
  132@ == 0
goto_if_false @SYN5_4245
if 
  not Char.IsDead(45@)
goto_if_false @SYN5_4084
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1711.1, 1354.0, 16.0, MoveState.Walk, -1)
Task.AchieveHeading(-1, 200.0)
Task.LookAbout(-1, -1)
Sequence.Close(195@)
Char.PerformSequence(45@, 195@)
Sequence.Clear(195@)

:SYN5_4084
if 
  not Char.IsDead(46@)
goto_if_false @SYN5_4152
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1686.6, 1376.2, 13.8, MoveState.Walk, -1)
Task.LookAbout(-1, -1)
Sequence.Close(195@)
Char.PerformSequence(46@, 195@)
Sequence.Clear(195@)

:SYN5_4152
Camera.SetFixedPosition(-1707.1, 1329.7, 18.0, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1701.8, 1360.3, 9.0, SwitchType.JumpCut)
132@ = 2
134@ = 4
135@ = 5
gosub @SYN5_30472
TIMERA = 0
88@ = 6

:SYN5_4245
if 
  88@ == 6
goto_if_false @SYN5_4490
if 
  TIMERA > 5000
goto_if_false @SYN5_4490
if 
  not Char.IsDead(48@)
goto_if_false @SYN5_4383
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1682.7, 1343.1, 16.2, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1672.7, 1342.6, 16.2, MoveState.Walk, -1)
Char.SetHeading(48@, 4.0)
Task.LookAbout(-1, -1)
Sequence.Close(195@)
Char.PerformSequence(48@, 195@)
Sequence.Clear(195@)

:SYN5_4383
Camera.SetNearClip(0.1)
Camera.SetFixedPosition(-1712.2, 1354.2, 18.1, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1675.7, 1338.4, 9.9, SwitchType.JumpCut)
132@ = 2
134@ = 5
135@ = 6
gosub @SYN5_30472
gosub @SYN5_24432
TIMERA = 0
88@ = 7

:SYN5_4490
if 
  88@ == 7
goto_if_false @SYN5_4675
if 
  TIMERA > 4000
goto_if_false @SYN5_4675
if 
  132@ == 0
goto_if_false @SYN5_4675
if 
  not Char.IsDead($wuzi)
goto_if_false @SYN5_4568
Char.SetVisible($wuzi, True)

:SYN5_4568
Camera.SetNearClip(0.9)
Camera.SetFixedPosition(-1722.2, 1271.7, 20.1, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1709.7, 1305.0, 7.4, SwitchType.JumpCut)
Task.UseMobilePhone($cesar, True)
132@ = 2
134@ = 6
135@ = 7
gosub @SYN5_30472
TIMERA = 0
88@ = 8

:SYN5_4675
if 
  88@ == 8
goto_if_false @SYN5_4772
if 
  TIMERA > 2000
goto_if_false @SYN5_4772
if 
  132@ == 0
goto_if_false @SYN5_4772
132@ = 2
134@ = 7
135@ = 9
gosub @SYN5_30472
TIMERA = 0
88@ = 9

:SYN5_4772
if 
  88@ == 9
goto_if_false @SYN5_4879
if 
  132@ == 0
goto_if_false @SYN5_4879
$task_status = Char.GetScriptTaskStatus($cesar, 1833)
if 
  is_int_var_equal_to_constant $task_status == 1
goto_if_false @SYN5_4844
Task.UseMobilePhone($cesar, False)

:SYN5_4844
132@ = 2
134@ = 9
135@ = 11
gosub @SYN5_30472
88@ = 10

:SYN5_4879
if 
  88@ == 10
goto_if_false @SYN5_5383
if 
  132@ == 0
goto_if_false @SYN5_5383
$task_status = Char.GetScriptTaskStatus($cesar, 1833)
if 
  is_int_var_equal_to_constant $task_status == 1
goto_if_false @SYN5_4951
Task.UseMobilePhone($cesar, False)

:SYN5_4951
if 
  not Char.IsDead(36@)
goto_if_false @SYN5_5042
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1683.4, 1326.9, 6.0, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1673.4, 1335.0, 6.2, MoveState.Walk, -1)
Task.ToggleDuck(-1, False)
Sequence.Close(195@)
Char.PerformSequence(36@, 195@)
Sequence.Clear(195@)

:SYN5_5042
if 
  not Char.IsDead($wuzi)
goto_if_false @SYN5_5134
195@ = Sequence.Open()
Task.Pause(-1, 500)
Task.GoStraightToCoord(-1, -1684.8, 1324.7, 6.0, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1675.7, 1336.1, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence($wuzi, 195@)
Sequence.Clear(195@)

:SYN5_5134
if 
  not Char.IsDead(37@)
goto_if_false @SYN5_5226
195@ = Sequence.Open()
Task.Pause(-1, 700)
Task.GoStraightToCoord(-1, -1687.2, 1323.8, 6.0, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1676.0, 1334.0, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence(37@, 195@)
Sequence.Clear(195@)

:SYN5_5226
if 
  not Char.IsDead(38@)
goto_if_false @SYN5_5318
195@ = Sequence.Open()
Task.Pause(-1, 800)
Task.GoStraightToCoord(-1, -1689.0, 1325.4, 6.0, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1678.0, 1333.7, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence(38@, 195@)
Sequence.Clear(195@)

:SYN5_5318
Camera.SetFixedPosition(-1693.9, 1318.9, 7.7, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1686.1, 1320.8, 6.6, SwitchType.JumpCut)
TIMERA = 0
88@ = 11

:SYN5_5383
if 
  88@ == 11
goto_if_false @SYN5_5874
if 
  TIMERA > 3000
goto_if_false @SYN5_5874
if 
  not Char.IsDead($wuzi)
goto_if_false @SYN5_5512
Char.SetCoordinates($wuzi, -1681.4, 1326.4, 6.2)
Char.SetHeading($wuzi, 300.1)
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1671.6, 1339.0, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence($wuzi, 195@)
Sequence.Clear(195@)

:SYN5_5512
if 
  not Char.IsDead(36@)
goto_if_false @SYN5_5604
Char.SetCoordinates(36@, -1684.1, 1324.1, 6.2)
Char.SetHeading(36@, 311.1)
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1671.6, 1339.0, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence(36@, 195@)
Sequence.Clear(195@)

:SYN5_5604
if 
  not Char.IsDead(37@)
goto_if_false @SYN5_5696
Char.SetCoordinates(37@, -1683.0, 1321.7, 6.2)
Char.SetHeading(37@, 333.4)
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1671.6, 1339.0, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence(37@, 195@)
Sequence.Clear(195@)

:SYN5_5696
if 
  not Char.IsDead(38@)
goto_if_false @SYN5_5788
Char.SetCoordinates(38@, -1685.4, 1323.6, 6.2)
Char.SetHeading(38@, 323.8)
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1671.6, 1339.0, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence(38@, 195@)
Sequence.Clear(195@)

:SYN5_5788
Camera.SetFixedPosition(-1678.4, 1318.3, 7.2, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1680.6, 1330.0, 8.9, SwitchType.JumpCut)
132@ = 2
134@ = 11
135@ = 14
gosub @SYN5_30472
88@ = 12

:SYN5_5874
if 
  88@ == 12
goto_if_false @SYN5_7288
if 
  132@ == 0
goto_if_false @SYN5_7288
89@ = 0

:SYN5_5917
skip_cutscene_end 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
132@ = 0
Camera.DoFade(500, Fade.Out)

:SYN5_5943
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_5967
wait 0
goto @SYN5_5943

:SYN5_5967
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_5999
goto @SYN5_8953

:SYN5_5999
if 
  90@ == 1
goto_if_false @SYN5_6024
goto @SYN5_23151

:SYN5_6024
Camera.SetNearClip(0.9)
if 
  89@ == 1
goto_if_false @SYN5_6334
91@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Sniper)
if 
  24 > 91@
goto_if_false @SYN5_6086
Char.GiveWeapon($scplayer, WeaponType.Sniper, 24)

:SYN5_6086
Object.Delete(73@)
Char.RemoveAllWeapons($cesar)
Text.ClearPrints
$task_status = Char.GetScriptTaskStatus($cesar, 1833)
if 
  is_int_var_equal_to_constant $task_status == 1
goto_if_false @SYN5_6134
Task.UseMobilePhone($cesar, False)

:SYN5_6134
Char.ClearTasksImmediately($cesar)
Char.SetHeading($cesar, 332.1)
Char.SetHeading($scplayer, 332.1)
gosub @SYN5_23800
gosub @SYN5_24432
if 
  not Char.IsDead($wuzi)
goto_if_false @SYN5_6196
Char.SetVisible($wuzi, True)

:SYN5_6196
if 
  not Char.IsDead(45@)
goto_if_false @SYN5_6242
Char.SetCoordinates(45@, -1711.1, 1354.0, 16.0)
Char.SetHeading(45@, 200.0)

:SYN5_6242
if 
  not Char.IsDead(46@)
goto_if_false @SYN5_6288
Char.SetCoordinates(46@, -1686.6, 1376.2, 13.8)
Char.SetHeading(46@, 200.0)

:SYN5_6288
if 
  not Char.IsDead(48@)
goto_if_false @SYN5_6334
Char.SetCoordinates(48@, -1672.7, 1342.6, 16.2)
Char.SetHeading(48@, 4.0)

:SYN5_6334
if 
  not Char.IsDead($wuzi)
goto_if_false @SYN5_6446
Char.ClearTasksImmediately($wuzi)
Char.SetCoordinates($wuzi, -1681.9, 1335.8, 16.2)
Char.SetHeading($wuzi, 337.1)
195@ = Sequence.Open()
Task.ToggleDuck(-1, False)
Task.GoStraightToCoord(-1, -1681.7, 1335.5, 16.2, MoveState.Walk, -1)
Task.AchieveHeading(-1, 331.0)
Sequence.Close(195@)
Char.PerformSequence($wuzi, 195@)
Sequence.Clear(195@)

:SYN5_6446
if 
  not Char.IsDead(36@)
goto_if_false @SYN5_6558
Char.ClearTasksImmediately(36@)
Char.SetCoordinates(36@, -1688.2, 1334.3, 16.2)
Char.SetHeading(36@, 257.0)
195@ = Sequence.Open()
Task.ToggleDuck(-1, False)
Task.GoStraightToCoord(-1, -1686.1, 1334.1, 16.2, MoveState.Walk, -1)
Task.AchieveHeading(-1, 294.0)
Sequence.Close(195@)
Char.PerformSequence(36@, 195@)
Sequence.Clear(195@)

:SYN5_6558
if 
  not Char.IsDead(37@)
goto_if_false @SYN5_6670
Char.ClearTasksImmediately(37@)
Char.SetCoordinates(37@, -1685.8, 1336.4, 16.2)
Char.SetHeading(37@, 320.0)
195@ = Sequence.Open()
Task.ToggleDuck(-1, False)
Task.GoStraightToCoord(-1, -1683.9, 1338.4, 16.2, MoveState.Walk, -1)
Task.AchieveHeading(-1, 316.8)
Sequence.Close(195@)
Char.PerformSequence(37@, 195@)
Sequence.Clear(195@)

:SYN5_6670
if 
  not Char.IsDead(38@)
goto_if_false @SYN5_6782
Char.ClearTasksImmediately(38@)
Char.SetCoordinates(38@, -1688.3, 1335.6, 16.2)
Char.SetHeading(38@, 312.6)
195@ = Sequence.Open()
Task.ToggleDuck(-1, False)
Task.GoStraightToCoord(-1, -1685.2, 1340.5, 16.2, MoveState.Walk, -1)
Task.AchieveHeading(-1, 310.0)
Sequence.Close(195@)
Char.PerformSequence(38@, 195@)
Sequence.Clear(195@)

:SYN5_6782
if 
  not Char.IsDead(45@)
goto_if_false @SYN5_6813
80@ = Blip.AddForChar(45@)
Blip.ChangeScale(80@, 1)

:SYN5_6813
if 
  not Char.IsDead(46@)
goto_if_false @SYN5_6844
81@ = Blip.AddForChar(46@)
Blip.ChangeScale(81@, 1)

:SYN5_6844
if 
  not Char.IsDead(47@)
goto_if_false @SYN5_6875
82@ = Blip.AddForChar(47@)
Blip.ChangeScale(82@, 1)

:SYN5_6875
if 
  not Char.IsDead(48@)
goto_if_false @SYN5_6906
83@ = Blip.AddForChar(48@)
Blip.ChangeScale(83@, 1)

:SYN5_6906
if 
  not Char.IsDead(49@)
goto_if_false @SYN5_6937
84@ = Blip.AddForChar(49@)
Blip.ChangeScale(84@, 1)

:SYN5_6937
if 
  not Char.IsDead(50@)
goto_if_false @SYN5_6968
85@ = Blip.AddForChar(50@)
Blip.ChangeScale(85@, 1)

:SYN5_6968
if 
  not Char.IsDead(49@)
goto_if_false @SYN5_7014
Char.SetCoordinates(49@, -1669.5, 1346.0, 15.2)
Char.SetHeading(49@, 142.0)

:SYN5_7014
if 
  not Char.IsDead(46@)
goto_if_false @SYN5_7060
Char.SetCoordinates(46@, -1694.7, 1369.7, 15.9)
Char.SetHeading(46@, 129.8)

:SYN5_7060
Char.SetCoordinates($scplayer, -1720.4, 1275.5, 16.9)
Char.SetHeading($scplayer, 328.4)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.SetCurrentWeapon($scplayer, WeaponType.Sniper)
Char.ClearTasksImmediately($scplayer)
Object.Delete(73@)
Streaming.MarkModelAsNoLongerNeeded(#SNIPER_ANIM)
Streaming.RemoveAnimation("MISC")
Streaming.MarkModelAsNoLongerNeeded(330)
Car.MarkAsNoLongerNeeded(75@)
Streaming.MarkModelAsNoLongerNeeded(429)
Game.ShutAllCharsUp(False)
Char.ShutUpForScriptedSpeech($cesar, True)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Text.PrintNow('SYN5_02', 7000, 1)
Camera.DoFade(500, Fade.In)

:SYN5_7193
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_7217
wait 0
goto @SYN5_7193

:SYN5_7217
if 
  87@ == 10
goto_if_false @SYN5_7242
goto @SYN5_8953

:SYN5_7242
if 
  90@ == 1
goto_if_false @SYN5_7267
goto @SYN5_23151

:SYN5_7267
TIMERA = 0
88@ = 0
87@ = 3

:SYN5_7288
if 
  87@ == 3
goto_if_false @SYN5_8953
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @SYN5_7489
if 
  not Char.IsDead(45@)
goto_if_false @SYN5_7349
Char.SetOnlyDamagedByPlayer(45@, False)
Char.ExplodeHead(45@)

:SYN5_7349
if 
  not Char.IsDead(46@)
goto_if_false @SYN5_7377
Char.SetOnlyDamagedByPlayer(46@, False)
Char.ExplodeHead(46@)

:SYN5_7377
if 
  not Char.IsDead(47@)
goto_if_false @SYN5_7405
Char.SetOnlyDamagedByPlayer(47@, False)
Char.ExplodeHead(47@)

:SYN5_7405
if 
  not Char.IsDead(48@)
goto_if_false @SYN5_7433
Char.SetOnlyDamagedByPlayer(48@, False)
Char.ExplodeHead(48@)

:SYN5_7433
if 
  not Char.IsDead(49@)
goto_if_false @SYN5_7461
Char.SetOnlyDamagedByPlayer(49@, False)
Char.ExplodeHead(49@)

:SYN5_7461
if 
  not Char.IsDead(50@)
goto_if_false @SYN5_7489
Char.SetOnlyDamagedByPlayer(50@, False)
Char.ExplodeHead(50@)

:SYN5_7489
if 
  88@ == 0
goto_if_false @SYN5_8805
if 
  132@ == 0
goto_if_false @SYN5_8229
if 
  92@ == 0
goto_if_false @SYN5_7597
if 
  TIMERA > 7000
goto_if_false @SYN5_7597
132@ = 3
134@ = 1
135@ = 2
gosub @SYN5_30472
92@ = 1

:SYN5_7597
if 
  92@ == 1
goto_if_false @SYN5_7668
if 
  3 > 93@
goto_if_false @SYN5_7668
132@ = 3
134@ = 3
135@ = 4
gosub @SYN5_30472
92@ = 2

:SYN5_7668
if 
  92@ == 2
goto_if_false @SYN5_7739
if 
  2 > 93@
goto_if_false @SYN5_7739
132@ = 3
134@ = 4
135@ = 5
gosub @SYN5_30472
92@ = 3

:SYN5_7739
if 
  132@ == 0
goto_if_false @SYN5_7810
if 
  92@ == 3
goto_if_false @SYN5_7810
132@ = 3
134@ = 2
135@ = 3
gosub @SYN5_30472
92@ = 4

:SYN5_7810
if 
  92@ == 4
goto_if_false @SYN5_7881
if 
  1 > 93@
goto_if_false @SYN5_7881
132@ = 3
134@ = 5
135@ = 6
gosub @SYN5_30472
92@ = 5

:SYN5_7881
if 
  98@ == 0
goto_if_false @SYN5_7906
98@ = 3

:SYN5_7906
if 
  98@ == 3
goto_if_false @SYN5_8017
if 
  3 > 99@
goto_if_false @SYN5_8017
if or
  not Char.IsDead(48@)
  not Char.IsDead(49@)
  not Char.IsDead(50@)
goto_if_false @SYN5_8010
132@ = 4
134@ = 3
135@ = 4
gosub @SYN5_30472
98@ = 4
goto @SYN5_8017

:SYN5_8010
98@ = 5

:SYN5_8017
if 
  132@ == 0
goto_if_false @SYN5_8114
if 
  98@ == 4
goto_if_false @SYN5_8114
if and
  Char.IsDead(48@)
  Char.IsDead(49@)
  Char.IsDead(50@)
goto_if_false @SYN5_8114
132@ = 4
134@ = 4
135@ = 5
gosub @SYN5_30472
98@ = 6

:SYN5_8114
if 
  132@ == 0
goto_if_false @SYN5_8229
if 
  98@ == 5
goto_if_false @SYN5_8229
if 
  3 > 99@
goto_if_false @SYN5_8229
if or
  not Char.IsDead(45@)
  not Char.IsDead(46@)
  not Char.IsDead(47@)
goto_if_false @SYN5_8229
132@ = 4
134@ = 4
135@ = 5
gosub @SYN5_30472
98@ = 6

:SYN5_8229
if 
  not Char.IsDead(36@)
goto_if_false @SYN5_8276
if 
  TIMERA > 10000
goto_if_false @SYN5_8276
Char.SetOnlyDamagedByPlayer(36@, False)
Char.ExplodeHead(36@)

:SYN5_8276
if 
  not Char.IsDead(37@)
goto_if_false @SYN5_8323
if 
  TIMERA > 20000
goto_if_false @SYN5_8323
Char.SetOnlyDamagedByPlayer(37@, False)
Char.ExplodeHead(37@)

:SYN5_8323
if 
  not Char.IsDead(38@)
goto_if_false @SYN5_8370
if 
  TIMERA > 30000
goto_if_false @SYN5_8370
Char.SetOnlyDamagedByPlayer(38@, False)
Char.ExplodeHead(38@)

:SYN5_8370
if 
  not Char.IsDead($wuzi)
goto_if_false @SYN5_8421
if 
  TIMERA > 40000
goto_if_false @SYN5_8421
Char.SetOnlyDamagedByPlayer($wuzi, False)
87@ = 10

:SYN5_8421
if 
  6 > 106@
goto_if_false @SYN5_8522
if 
  100@(106@,6i) == 0
goto_if_false @SYN5_8508
if 
  Char.IsDead(45@(106@,6i))
goto_if_false @SYN5_8508
Blip.Remove(80@(106@,6i))
99@ -= 1
100@(106@,6i) = 1

:SYN5_8508
106@ += 1
goto @SYN5_8529

:SYN5_8522
106@ = 0

:SYN5_8529
if 
  3 > 97@
goto_if_false @SYN5_8621
if 
  94@(97@,3i) == 0
goto_if_false @SYN5_8607
if 
  Char.IsDead(36@(97@,3i))
goto_if_false @SYN5_8607
93@ -= 1
94@(97@,3i) = 1

:SYN5_8607
97@ += 1
goto @SYN5_8628

:SYN5_8621
97@ = 0

:SYN5_8628
gosub @SYN5_26437
if 
  Char.IsDead(45@)
goto_if_false @SYN5_8805
if 
  Char.IsDead(46@)
goto_if_false @SYN5_8805
if 
  Char.IsDead(47@)
goto_if_false @SYN5_8805
if 
  Char.IsDead(48@)
goto_if_false @SYN5_8805
if 
  Char.IsDead(49@)
goto_if_false @SYN5_8805
if 
  Char.IsDead(50@)
goto_if_false @SYN5_8805
Blip.Remove(80@)
Blip.Remove(81@)
Blip.Remove(82@)
Blip.Remove(83@)
Blip.Remove(84@)
Blip.Remove(85@)
Char.MarkAsNoLongerNeeded(45@)
Char.MarkAsNoLongerNeeded(46@)
Char.MarkAsNoLongerNeeded(47@)
Char.MarkAsNoLongerNeeded(48@)
Char.MarkAsNoLongerNeeded(49@)
Char.MarkAsNoLongerNeeded(50@)
TIMERA = 0
88@ = 1

:SYN5_8805
if 
  88@ == 1
goto_if_false @SYN5_8953
if 
  TIMERA > 2000
goto_if_false @SYN5_8953
Player.SetControl($player1, False)
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:SYN5_8858
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_8882
wait 0
goto @SYN5_8858

:SYN5_8882
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_8914
goto @SYN5_8953

:SYN5_8914
if 
  90@ == 1
goto_if_false @SYN5_8939
goto @SYN5_23151

:SYN5_8939
88@ = 0
87@ = 4

:SYN5_8953
if 
  87@ == 10
goto_if_false @SYN5_9658
ENTEXT_63()
if 
  $player_is_completely_safe == 1
goto_if_false @SYN5_9451
if 
  88@ == 0
goto_if_false @SYN5_9451
Camera.DoFade(500, Fade.Out)

:SYN5_9021
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_9045
wait 0
goto @SYN5_9021

:SYN5_9045
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
132@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.Delete($wuzi)
Char.Delete($cesar)
World.ClearArea(-1673.7, 1369.0, 7.0, 150.0, True)
World.ClearArea(-1677.2, 1347.8, 16.2, 1.0, True)
$wuzi = Char.Create(PedType.Mission1, 120, -1677.2, 1347.8, 16.2)
Char.SetHeading($wuzi, 356.6)
Char.GiveWeapon($wuzi, WeaponType.Tec9, 30000)
Char.SetDecisionMaker($wuzi, 197@)
Streaming.LoadScene(-1677.2, 1347.8, 16.2)
Camera.SetFixedPosition(-1675.3, 1349.0, 17.0, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1684.1, 1343.9, 18.5, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:SYN5_9267
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_9291
wait 0
goto @SYN5_9267

:SYN5_9291
if 
  not Char.IsDead($wuzi)
goto_if_false @SYN5_9346
Task.PlayAnimNonInterruptable($wuzi, "KO_SHOT_STOM", "PED", 4.0, False, False, False, True, -1)

:SYN5_9346
if 
  93@ > 0
goto_if_false @SYN5_9399
132@ = 5
134@ = 3
135@ = 4
gosub @SYN5_30472
goto @SYN5_9437

:SYN5_9399
132@ = 5
134@ = Math.RandomIntInRange(0, 4)
set_lvar_int_to_lvar_int 135@ = 134@
135@ += 1
gosub @SYN5_30472

:SYN5_9437
TIMERB = 0
88@ = 1

:SYN5_9451
if 
  88@ == 1
goto_if_false @SYN5_9658
if 
  132@ == 0
goto_if_false @SYN5_9658
if 
  TIMERB > 4000
goto_if_false @SYN5_9658
Camera.DoFade(500, Fade.Out)

:SYN5_9513
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_9537
wait 0
goto @SYN5_9513

:SYN5_9537
191@, 192@, 193@ = Char.GetCoordinates($scplayer)
Streaming.LoadScene(191@, 192@, 193@)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Text.ClearPrints
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Text.PrintNow('SYN5_05', 5500, 1)
Camera.DoFade(500, Fade.In)

:SYN5_9627
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_9651
wait 0
goto @SYN5_9627

:SYN5_9651
goto @SYN5_23151

:SYN5_9658
if 
  87@ == 4
goto_if_false @SYN5_17454
if 
  88@ == 0
goto_if_false @SYN5_10641
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
132@ = 0
Streaming.RequestCarRecording(27)
Streaming.RequestCarRecording(28)
Streaming.RequestModel(600)
Streaming.RequestModel(566)
Streaming.RequestModel(487)
Streaming.RequestModel(413)
Streaming.RequestModel(102)
Streaming.RequestModel(103)
Streaming.LoadSpecialCharacter(2, 'RYDER2')
Streaming.LoadSpecialCharacter(3, 'TORINO')
Streaming.LoadSpecialCharacter(4, 'TBONE')
Streaming.RequestModel(343)
Streaming.RequestModel(355)
Streaming.LoadAllModelsNow
Game.ShutAllCharsUp(True)
Char.ShutUpForScriptedSpeech($cesar, False)
76@ = Car.Create(413, -1634.3, 1253.4, 6.1)
Car.SetHeading(76@, 44.5)
Car.LockDoors(76@, CarLock.LockoutPlayerOnly)
Car.StartPlayback(76@, 27)
Car.SkipInPlayback(76@, 35.0)
Char.ClearTasksImmediately($wuzi)
Char.SetCoordinates($wuzi, -1678.7, 1347.5, 16.2)
Char.SetHeading($wuzi, 32.6)
Char.SetDecisionMaker($wuzi, 197@)
Task.PlayAnim($wuzi, "WEAPON_CROUCH", "PED", 4.0, True, False, False, False, 30000)
if 
  not Char.IsDead(36@)
goto_if_false @SYN5_10050
Char.ClearTasksImmediately(36@)
Char.SetCoordinates(36@, -1686.1, 1348.7, 16.2)
Char.SetHeading(36@, 33.6)
Char.SetDecisionMaker(36@, 197@)
Task.PlayAnim(36@, "WEAPON_CROUCH", "PED", 4.0, True, False, False, False, 30000)

:SYN5_10050
if 
  not Char.IsDead(37@)
goto_if_false @SYN5_10150
Char.ClearTasksImmediately(37@)
Char.SetCoordinates(37@, -1687.7, 1347.7, 16.2)
Char.SetHeading(37@, 60.6)
Char.SetDecisionMaker(37@, 197@)
Task.PlayAnim(37@, "WEAPON_CROUCH", "PED", 4.0, True, False, False, False, 30000)

:SYN5_10150
if 
  not Char.IsDead(38@)
goto_if_false @SYN5_10250
Char.ClearTasksImmediately(38@)
Char.SetCoordinates(38@, -1688.7, 1346.1, 16.2)
Char.SetHeading(38@, 41.8)
Char.SetDecisionMaker(38@, 197@)
Task.PlayAnim(38@, "WEAPON_CROUCH", "PED", 4.0, True, False, False, False, 30000)

:SYN5_10250
World.ClearArea(-1721.4, 1276.2, 16.9, 5.0, True)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -1720.4, 1275.5, 16.9)
Char.SetHeading($scplayer, 328.4)
Char.ClearTasksImmediately($cesar)
Char.SetCoordinates($cesar, -1721.4, 1276.2, 16.9)
Char.SetHeading($cesar, 326.3)
91@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Sniper)
if 
  24 > 91@
goto_if_false @SYN5_10395
Char.GiveWeapon($scplayer, WeaponType.Sniper, 24)
Char.SetCurrentWeapon($scplayer, WeaponType.Sniper)
goto @SYN5_10402

:SYN5_10395
Char.SetCurrentWeapon($scplayer, WeaponType.Sniper)

:SYN5_10402
World.ClearArea(-1706.4, 1327.1, 6.4, 100.0, True)
World.SetCarDensityMultiplier(0.0)
DecisionMakerChar.ClearEventResponse(196@, 13)
Camera.SetFixedPosition(-1722.2, 1271.7, 20.1, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1709.7, 1305.0, 7.4, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Camera.DoFade(1000, Fade.In)

:SYN5_10504
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_10528
wait 0
goto @SYN5_10504

:SYN5_10528
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_10560
goto @SYN5_8953

:SYN5_10560
if 
  90@ == 1
goto_if_false @SYN5_10585
goto @SYN5_23151

:SYN5_10585
132@ = 7
134@ = 0
135@ = 1
gosub @SYN5_30472
89@ = 1
skip_cutscene_start_internal @SYN5_14729
TIMERA = 0
88@ = 1

:SYN5_10641
if 
  88@ == 1
goto_if_false @SYN5_11744
if 
  132@ == 0
goto_if_false @SYN5_11744
if 
  TIMERA > 4000
goto_if_false @SYN5_11744
Camera.DoFade(500, Fade.Out)

:SYN5_10703
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_10727
wait 0
goto @SYN5_10703

:SYN5_10727
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_10759
goto @SYN5_8953

:SYN5_10759
if 
  90@ == 1
goto_if_false @SYN5_10784
goto @SYN5_23151

:SYN5_10784
if 
  not Car.IsDead(76@)
goto_if_false @SYN5_10814
Car.OpenDoor(76@, CarDoor.LeftRearDoor)
Car.OpenDoor(76@, CarDoor.RightRearDoor)

:SYN5_10814
gosub @SYN5_25123
if 
  not Char.IsDead(35@)
goto_if_false @SYN5_10929
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1709.4, 1345.3, 6.2, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1697.7, 1349.2, 6.2, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1676.1, 1360.3, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence(35@, 195@)
Sequence.Clear(195@)

:SYN5_10929
if 
  not Char.IsDead(45@)
goto_if_false @SYN5_11037
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1709.4, 1346.3, 6.2, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1697.7, 1350.2, 6.2, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1676.1, 1361.3, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence(45@, 195@)
Sequence.Clear(195@)

:SYN5_11037
if 
  not Char.IsDead(46@)
goto_if_false @SYN5_11145
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1709.4, 1343.3, 6.2, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1697.7, 1351.2, 6.2, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1676.1, 1362.3, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence(46@, 195@)
Sequence.Clear(195@)

:SYN5_11145
if 
  not Char.IsDead(47@)
goto_if_false @SYN5_11253
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1709.4, 1342.3, 6.2, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1697.7, 1352.2, 6.2, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1676.1, 1363.3, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence(47@, 195@)
Sequence.Clear(195@)

:SYN5_11253
if 
  not Char.IsDead(48@)
goto_if_false @SYN5_11361
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1709.4, 1341.3, 6.2, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1697.7, 1353.2, 6.2, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1676.1, 1364.3, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence(48@, 195@)
Sequence.Clear(195@)

:SYN5_11361
gosub @SYN5_25613
195@ = Sequence.Open()
Task.CarDriveToCoord(-1, 55@, -1704.0, 1333.5, 5.9, 20.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, -1676.9, 1360.6, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence($ryder, 195@)
Sequence.Clear(195@)
195@ = Sequence.Open()
Task.CarDriveToCoord(-1, 56@, -1706.6, 1340.2, 5.9, 20.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Sequence.Close(195@)
Char.PerformSequence(41@, 195@)
Sequence.Clear(195@)
195@ = Sequence.Open()
Task.CarDriveToCoord(-1, 57@, -1718.4, 1345.7, 6.2, 20.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Sequence.Close(195@)
Char.PerformSequence(43@, 195@)
Sequence.Clear(195@)
Camera.SetFixedPosition(-1711.0, 1343.8, 7.2, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1726.7, 1357.6, 9.9, SwitchType.JumpCut)
Camera.DoFade(2000, Fade.In)

:SYN5_11621
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_11645
wait 0
goto @SYN5_11621

:SYN5_11645
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_11677
goto @SYN5_8953

:SYN5_11677
if 
  90@ == 1
goto_if_false @SYN5_11702
goto @SYN5_23151

:SYN5_11702
132@ = 7
134@ = 2
135@ = 3
gosub @SYN5_30472
TIMERA = 0
88@ = 2

:SYN5_11744
if 
  88@ == 2
goto_if_false @SYN5_11881
if 
  TIMERA > 4000
goto_if_false @SYN5_11881
gosub @SYN5_26264
Camera.SetFixedPosition(-1698.3, 1327.6, 7.3, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1701.2, 1332.3, 7.6, SwitchType.JumpCut)
132@ = 7
134@ = 3
135@ = 5
gosub @SYN5_30472
TIMERA = 0
88@ = 3

:SYN5_11881
if 
  88@ == 3
goto_if_false @SYN5_12029
if 
  132@ == 0
goto_if_false @SYN5_12029
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_12029
if 
  not Char.IsInAnyCar($ryder)
goto_if_false @SYN5_12029
if 
  not Char.IsDead(39@)
goto_if_false @SYN5_12015
195@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, -1665.0, 1370.9, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence(39@, 195@)
Sequence.Clear(195@)

:SYN5_12015
TIMERA = 0
88@ = 4

:SYN5_12029
if 
  88@ == 4
goto_if_false @SYN5_12900
Camera.DoFade(1000, Fade.Out)

:SYN5_12054
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_12078
wait 0
goto @SYN5_12054

:SYN5_12078
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_12110
goto @SYN5_8953

:SYN5_12110
if 
  90@ == 1
goto_if_false @SYN5_12135
goto @SYN5_23151

:SYN5_12135
if 
  not Char.IsDead(35@)
goto_if_false @SYN5_12193
Char.ClearTasksImmediately(35@)
Char.SetCoordinates(35@, -1629.2, 1414.2, 6.2)
Char.SetHeading(35@, 87.6)
Char.HideWeaponForScriptedCutscene(35@, True)

:SYN5_12193
if 
  not Char.IsDead(45@)
goto_if_false @SYN5_12290
Char.ClearTasksImmediately(45@)
Char.SetCoordinates(45@, -1629.3, 1412.4, 6.2)
Char.SetHeading(45@, 76.7)
Task.PlayAnim(45@, "SEAT_IDLE", "PED", 1000.0, False, False, False, True, -1)
Char.GiveWeapon(45@, WeaponType.Tec9, 30000)

:SYN5_12290
if 
  not Char.IsDead(46@)
goto_if_false @SYN5_12351
Char.ClearTasksImmediately(46@)
Char.SetCoordinates(46@, -1626.5, 1414.2, 6.2)
Char.SetHeading(46@, 116.9)
Char.GiveWeapon(46@, WeaponType.Tec9, 30000)

:SYN5_12351
if 
  not Char.IsDead(47@)
goto_if_false @SYN5_12412
Char.ClearTasksImmediately(47@)
Char.SetCoordinates(47@, -1628.5, 1414.9, 6.2)
Char.SetHeading(47@, 50.5)
Char.GiveWeapon(47@, WeaponType.Tec9, 30000)

:SYN5_12412
if 
  not Char.IsDead(48@)
goto_if_false @SYN5_12473
Char.ClearTasksImmediately(48@)
Char.SetCoordinates(48@, -1629.7, 1416.0, 6.2)
Char.SetHeading(48@, 222.8)
Char.GiveWeapon(48@, WeaponType.Tec9, 30000)

:SYN5_12473
Task.ChatWithChar(47@, 48@, True, 1)
Task.ChatWithChar(48@, 47@, False, 1)
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_12555
Char.ClearTasksImmediately($ryder)
Char.SetCoordinates($ryder, -1636.5, 1412.5, 6.2)
Char.SetHeading($ryder, 280.9)
Char.HideWeaponForScriptedCutscene($ryder, True)

:SYN5_12555
if 
  not Char.IsDead(39@)
goto_if_false @SYN5_12687
Char.ClearTasksImmediately(39@)
Char.SetCoordinates(39@, -1634.9, 1408.3, 6.2)
Char.SetHeading(39@, 293.5)
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1629.6, 1411.7, 6.2, MoveState.Walk, -1)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 1000.0, True, False, False, False, -1)
Sequence.Close(195@)
Char.PerformSequence(39@, 195@)
Sequence.Clear(195@)

:SYN5_12687
Task.GreetPartner($ryder, 35@, 0.5, 5)
Streaming.LoadScene(-1629.2, 1414.2, 6.2)
Camera.SetFixedPosition(-1637.6, 1410.8, 8.3, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1626.4, 1414.8, 6.8, SwitchType.JumpCut)
Camera.DoFade(2000, Fade.In)

:SYN5_12777
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_12801
wait 0
goto @SYN5_12777

:SYN5_12801
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_12833
goto @SYN5_8953

:SYN5_12833
if 
  90@ == 1
goto_if_false @SYN5_12858
goto @SYN5_23151

:SYN5_12858
132@ = 7
134@ = 7
135@ = 8
gosub @SYN5_30472
TIMERA = 0
88@ = 5

:SYN5_12900
if 
  88@ == 5
goto_if_false @SYN5_12977
if 
  TIMERA > 3500
goto_if_false @SYN5_12977
if 
  not Car.IsDead(58@)
goto_if_false @SYN5_12977
Car.StartPlayback(58@, 28)
Car.SkipInPlayback(58@, 10.0)
88@ = 6

:SYN5_12977
if 
  88@ == 6
goto_if_false @SYN5_13378
if 
  TIMERA > 6000
goto_if_false @SYN5_13378
Camera.DoFade(500, Fade.Out)

:SYN5_13021
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_13045
wait 0
goto @SYN5_13021

:SYN5_13045
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_13077
goto @SYN5_8953

:SYN5_13077
if 
  90@ == 1
goto_if_false @SYN5_13102
goto @SYN5_23151

:SYN5_13102
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_13128
Char.SetHeading($ryder, 150.0)

:SYN5_13128
if 
  not Char.IsDead(39@)
goto_if_false @SYN5_13154
Char.SetHeading(39@, 150.0)

:SYN5_13154
Camera.ResetNewScriptables
Camera.PersistPos(True)
Camera.PersistTrack(True)
Camera.SetVectorMove(-1657.1, 1666.8, 3.4, -1599.1, 1432.0, 15.1, 11000, True)
Camera.SetVectorTrack(-1676.2, 1618.2, 11.4, -1614.1, 1428.9, 15.4, 11000, True)
Streaming.LoadScene(-1657.1, 1666.8, 3.4)
Camera.DoFade(500, Fade.In)

:SYN5_13262
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_13286
wait 0
goto @SYN5_13262

:SYN5_13286
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_13318
goto @SYN5_8953

:SYN5_13318
if 
  90@ == 1
goto_if_false @SYN5_13343
goto @SYN5_23151

:SYN5_13343
132@ = 7
134@ = 8
135@ = 10
gosub @SYN5_30472
88@ = 7

:SYN5_13378
if 
  88@ == 7
goto_if_false @SYN5_13536
if 
  not Car.IsDead(58@)
goto_if_false @SYN5_13536
if 
  Car.Locate2D(58@, -1629.1, 1429.5, 3.0, 3.0, False)
goto_if_false @SYN5_13536
if 
  Car.IsPlaybackGoingOn(58@)
goto_if_false @SYN5_13471
Car.StopPlayback(58@)

:SYN5_13471
Heli.GotoCoords(58@, -1629.1, 1429.5, 19.3, 0.0, 19.3)
132@ = 7
134@ = 10
135@ = 11
gosub @SYN5_30472
88@ = 8

:SYN5_13536
if 
  88@ == 8
goto_if_false @SYN5_13695
if 
  132@ == 0
goto_if_false @SYN5_13695
Camera.ResetNewScriptables
if 
  not Car.IsDead(58@)
goto_if_false @SYN5_13695
Heli.SetOrientation(58@, 270.0)
Heli.GotoCoords(58@, -615.5, 1513.9, 54.8, 0.0, 25.5)
Camera.SetFixedPosition(-1647.6, 1409.7, 8.0, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1590.8, 1426.7, 13.8, SwitchType.JumpCut)
TIMERA = 0
88@ = 9

:SYN5_13695
if 
  88@ == 9
goto_if_false @SYN5_14226
if 
  TIMERA > 1000
goto_if_false @SYN5_14226
if 
  not Char.IsDead(35@)
goto_if_false @SYN5_13799
Char.ClearTasks(35@)
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1628.8, 1421.7, 6.2, MoveState.Run, -1)
Sequence.Close(195@)
Char.PerformSequence(35@, 195@)
Sequence.Clear(195@)

:SYN5_13799
if 
  not Char.IsDead(45@)
goto_if_false @SYN5_13866
Char.ClearTasks(45@)
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1626.8, 1419.7, 6.2, MoveState.Run, -1)
Sequence.Close(195@)
Char.PerformSequence(45@, 195@)
Sequence.Clear(195@)

:SYN5_13866
if 
  not Char.IsDead(46@)
goto_if_false @SYN5_13933
Char.ClearTasks(46@)
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1630.8, 1423.7, 6.2, MoveState.Run, -1)
Sequence.Close(195@)
Char.PerformSequence(46@, 195@)
Sequence.Clear(195@)

:SYN5_13933
if 
  not Char.IsDead(47@)
goto_if_false @SYN5_14000
Char.ClearTasks(47@)
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1632.8, 1425.7, 6.2, MoveState.Run, -1)
Sequence.Close(195@)
Char.PerformSequence(47@, 195@)
Sequence.Clear(195@)

:SYN5_14000
if 
  not Char.IsDead(48@)
goto_if_false @SYN5_14067
Char.ClearTasks(48@)
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1634.0, 1423.0, 6.2, MoveState.Run, -1)
Sequence.Close(195@)
Char.PerformSequence(48@, 195@)
Sequence.Clear(195@)

:SYN5_14067
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_14122
Char.GiveWeapon($ryder, WeaponType.Teargas, 1)
Char.SetCurrentWeapon($ryder, WeaponType.Teargas)
Task.ShootAtCoord($ryder, -1652.5, 1396.0, 6.2, 500)

:SYN5_14122
if 
  not Char.IsDead(39@)
goto_if_false @SYN5_14184
Char.GiveWeapon(39@, WeaponType.Teargas, 1)
Char.SetCurrentWeapon(39@, WeaponType.Teargas)
195@ = Sequence.Open()
Task.Pause(-1, 500)
Sequence.Close(195@)
Char.PerformSequence(39@, 195@)
Sequence.Clear(195@)

:SYN5_14184
132@ = 7
134@ = 11
135@ = 12
gosub @SYN5_30472
TIMERA = 0
88@ = 10

:SYN5_14226
if 
  88@ == 10
goto_if_false @SYN5_14319
if 
  not Char.IsDead(39@)
goto_if_false @SYN5_14319
$task_status = Char.GetScriptTaskStatus(39@, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_14319
Task.ShootAtCoord(39@, -1653.1, 1400.0, 7.0, 500)
88@ = 11

:SYN5_14319
if 
  88@ == 11
goto_if_false @SYN5_14565
if 
  132@ == 0
goto_if_false @SYN5_14565
if 
  TIMERA > 2000
goto_if_false @SYN5_14565
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_14565
$task_status = Char.GetScriptTaskStatus($ryder, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_14565
195@ = Sequence.Open()
Task.Pause(-1, 500)
Task.GoStraightToCoord(-1, -1649.1, 1395.0, 7.0, MoveState.Run, -1)
Sequence.Close(195@)
Char.PerformSequence($ryder, 195@)
Sequence.Clear(195@)
132@ = 7
134@ = 12
135@ = 14
gosub @SYN5_30472
Camera.SetFixedPosition(-1665.9, 1386.8, 11.0, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1641.2, 1407.9, 9.9, SwitchType.JumpCut)
TIMERA = 0
88@ = 12

:SYN5_14565
if 
  88@ == 12
goto_if_false @SYN5_14685
if 
  TIMERA > 1500
goto_if_false @SYN5_14685
59@ = Particle.Create("TEARGASAD", -1656.5, 1398.0, 6.2, 1)
Particle.Play(59@)
60@ = Particle.Create("TEARGASAD", -1656.0, 1393.0, 7.0, 1)
Particle.Play(60@)
88@ = 13

:SYN5_14685
if 
  88@ == 13
goto_if_false @SYN5_17454
if 
  TIMERA > 5000
goto_if_false @SYN5_17454
89@ = 0

:SYN5_14729
skip_cutscene_end 
if 
  89@ == 1
goto_if_false @SYN5_14766
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
132@ = 0

:SYN5_14766
Camera.DoFade(500, Fade.Out)

:SYN5_14773
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_14797
wait 0
goto @SYN5_14773

:SYN5_14797
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_14829
goto @SYN5_8953

:SYN5_14829
if 
  90@ == 1
goto_if_false @SYN5_14854
goto @SYN5_23151

:SYN5_14854
if 
  89@ == 1
goto_if_false @SYN5_15197
Camera.ResetNewScriptables
gosub @SYN5_25123
gosub @SYN5_25613
if 
  not Car.IsDead(55@)
goto_if_false @SYN5_14934
Car.SetCoordinates(55@, -1702.9, 1335.5, 5.9)
Car.SetHeading(55@, 271.8)

:SYN5_14934
if 
  not Car.IsDead(56@)
goto_if_false @SYN5_14980
Car.SetCoordinates(56@, -1706.6, 1340.2, 5.9)
Car.SetHeading(56@, 271.8)

:SYN5_14980
if 
  not Car.IsDead(57@)
goto_if_false @SYN5_15026
Car.SetCoordinates(57@, -1718.4, 1345.7, 6.2)
Car.SetHeading(57@, 231.8)

:SYN5_15026
if 
  not Car.IsDead(76@)
goto_if_false @SYN5_15107
Car.OpenDoor(76@, CarDoor.LeftRearDoor)
Car.OpenDoor(76@, CarDoor.RightRearDoor)
if 
  Car.IsPlaybackGoingOn(76@)
goto_if_false @SYN5_15077
Car.StopPlayback(76@)

:SYN5_15077
Car.SetCoordinates(76@, -1722.3, 1365.6, 6.2)
Car.SetHeading(76@, 325.6)

:SYN5_15107
Streaming.RemoveCarRecording(27)
Particle.Kill(59@)
Particle.Kill(60@)
59@ = Particle.Create("TEARGASAD", -1656.5, 1398.0, 6.2, 1)
Particle.Play(59@)
60@ = Particle.Create("TEARGASAD", -1656.0, 1393.0, 7.0, 1)
Particle.Play(60@)

:SYN5_15197
Char.ClearTasksImmediately($wuzi)
Char.ClearTasksImmediately($cesar)
Char.ClearTasksImmediately($scplayer)
Char.GiveWeapon($cesar, WeaponType.Tec9, 30000)
Char.SetDecisionMaker($cesar, 196@)
Task.ShootAtCoord($wuzi, -1685.2, 1363.1, 7.8, -1)
if 
  not Char.IsDead(36@)
goto_if_false @SYN5_15290
Task.ShootAtCoord(36@, -1682.2, 1364.1, 7.8, -1)

:SYN5_15290
if 
  not Char.IsDead(37@)
goto_if_false @SYN5_15328
Task.ShootAtCoord(37@, -1694.2, 1355.1, 7.8, -1)

:SYN5_15328
if 
  not Char.IsDead(38@)
goto_if_false @SYN5_15366
Task.ShootAtCoord(38@, -1704.2, 1343.1, 7.8, -1)

:SYN5_15366
if 
  not Char.IsDead(35@)
goto_if_false @SYN5_15665
Char.ClearTasksImmediately(35@)
if 
  not Char.IsInAnyCar(35@)
goto_if_false @SYN5_15430
Char.SetCoordinates(35@, -1618.9, 1401.8, 6.2)
goto @SYN5_15450

:SYN5_15430
Char.WarpFromCarToCoord(35@, -1618.9, 1401.8, 6.2)

:SYN5_15450
Char.SetHeading(35@, 110.5)
Char.HideWeaponForScriptedCutscene(35@, False)
198@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, -1619.3, 1412.1, 6.2, 6, 1.0, 0.5, $scplayer)
Task.TurnCharToFaceChar(-1, $scplayer)
Task.KillCharOnFootTimed(-1, $scplayer, 4000)
Sequence.Close(198@)
199@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, -1635.0, 1430.4, 6.2, 6, 1.0, 0.5, $scplayer)
Task.TurnCharToFaceChar(-1, $scplayer)
Task.KillCharOnFootTimed(-1, $scplayer, 4000)
Sequence.Close(199@)
200@ = Sequence.Open()
Char.PerformSequence(-1, 198@)
Char.PerformSequence(-1, 199@)
Char.PerformSequence(-1, 199@)
Char.PerformSequence(-1, 198@)
Sequence.SetToRepeat(200@, True)
Sequence.Close(200@)
Char.PerformSequence(35@, 200@)
Sequence.Clear(198@)
Sequence.Clear(199@)
Sequence.Clear(200@)
79@ = Blip.AddForChar(35@)

:SYN5_15665
if 
  not Char.IsDead(39@)
goto_if_false @SYN5_15791
Char.ClearTasksImmediately(39@)
Char.SetCoordinates(39@, -1631.2, 1410.3, 6.2)
Char.SetHeading(39@, 137.6)
195@ = Sequence.Open()
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(195@)
Char.PerformSequence(39@, 195@)
Sequence.Clear(195@)

:SYN5_15791
40@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1697.9, 1345.7, 6.1)
Char.SetAccuracy(40@, 130@)
Char.SetOnlyDamagedByPlayer(40@, True)
Char.ClearTasksImmediately(40@)
Char.GiveWeapon(40@, WeaponType.Tec9, 30000)
Char.SetHeading(40@, 146.8)
Char.SetDecisionMaker(40@, 196@)
Char.SetKindaStayInSamePlace(40@, True)
195@ = Sequence.Open()
Task.ShootAtCoord(-1, -1684.9, 1353.3, 13.6, -2)
Sequence.Close(195@)
Char.PerformSequence(40@, 195@)
Sequence.Clear(195@)
if 
  not Char.IsDead(41@)
goto_if_false @SYN5_16030
Char.ClearTasksImmediately(41@)
Char.SetStayInSamePlace(41@, False)
Char.SetKindaStayInSamePlace(41@, True)
195@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, -1690.4, 1367.5, 8.8, 6, -1)
Task.AchieveHeading(-1, 230.5)
Task.ShootAtCoord(-1, -1684.9, 1353.3, 13.6, -2)
Sequence.Close(195@)
Char.PerformSequence(41@, 195@)
Sequence.Clear(195@)

:SYN5_16030
if 
  not Char.IsDead(42@)
goto_if_false @SYN5_16141
Char.ClearTasksImmediately(42@)
Char.SetStayInSamePlace(42@, False)
Char.SetKindaStayInSamePlace(42@, True)
195@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, -1690.9, 1363.8, 8.8, 6, -1)
Task.AchieveHeading(-1, 230.5)
Task.ShootAtCoord(-1, -1684.9, 1353.3, 13.6, -2)
Sequence.Close(195@)
Char.PerformSequence(42@, 195@)
Sequence.Clear(195@)

:SYN5_16141
if 
  not Char.IsDead(43@)
goto_if_false @SYN5_16252
Char.ClearTasksImmediately(43@)
Char.SetStayInSamePlace(43@, False)
Char.SetKindaStayInSamePlace(43@, True)
195@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, -1698.8, 1352.4, 6.5, 6, -1)
Task.AchieveHeading(-1, 251.5)
Task.ShootAtCoord(-1, -1684.9, 1353.3, 13.6, -2)
Sequence.Close(195@)
Char.PerformSequence(43@, 195@)
Sequence.Clear(195@)

:SYN5_16252
if 
  not Char.IsDead(44@)
goto_if_false @SYN5_16363
Char.ClearTasksImmediately(44@)
Char.SetStayInSamePlace(44@, False)
Char.SetKindaStayInSamePlace(44@, True)
195@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, -1682.5, 1364.4, 6.2, 6, -1)
Task.AchieveHeading(-1, 182.5)
Task.ShootAtCoord(-1, -1684.9, 1353.3, 13.6, -2)
Sequence.Close(195@)
Char.PerformSequence(44@, 195@)
Sequence.Clear(195@)

:SYN5_16363
61@ = Particle.Create("TEARGASAD", -1657.8, 1405.0, 7.0, 1)
Particle.Play(61@)
62@ = Particle.Create("TEARGASAD", -1643.3, 1390.7, 7.0, 1)
Particle.Play(62@)
if 
  not Char.IsDead(45@)
goto_if_false @SYN5_16522
Char.ClearTasksImmediately(45@)
Char.SetCoordinates(45@, -1647.7, 1421.8, 6.2)
Char.SetHeading(45@, 186.5)
Char.SetStayInSamePlace(45@, False)
Char.SetKindaStayInSamePlace(45@, True)
Char.GiveWeapon(45@, WeaponType.Tec9, 30000)
Task.KillCharOnFoot(45@, $scplayer)

:SYN5_16522
if 
  not Char.IsDead(46@)
goto_if_false @SYN5_16591
Char.ClearTasksImmediately(46@)
Char.SetCoordinates(46@, -1672.6, 1373.9, 8.8)
Char.SetHeading(46@, 136.4)
Char.GiveWeapon(46@, WeaponType.Tec9, 30000)
Task.KillCharOnFoot(46@, $scplayer)

:SYN5_16591
if 
  not Char.IsDead(47@)
goto_if_false @SYN5_16660
Char.ClearTasksImmediately(47@)
Char.SetCoordinates(47@, -1631.8, 1398.7, 6.2)
Char.SetHeading(47@, 105.9)
Char.GiveWeapon(47@, WeaponType.Tec9, 30000)
Task.KillCharOnFoot(47@, $scplayer)

:SYN5_16660
if 
  not Char.IsDead(48@)
goto_if_false @SYN5_16743
Char.ClearTasksImmediately(48@)
Char.SetCoordinates(48@, -1658.7, 1387.3, 6.2)
Char.SetHeading(48@, 144.5)
Char.GiveWeapon(48@, WeaponType.Tec9, 30000)
Char.SetStayInSamePlace(48@, False)
Char.SetKindaStayInSamePlace(48@, True)
Task.KillCharOnFoot(48@, $scplayer)

:SYN5_16743
107@ = Math.RandomIntInRange(0, 2)
51@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1645.8, 1401.5, 8.8)
Char.SetAccuracy(51@, 130@)
Char.SetHeading(51@, 129.4)
Char.SetDecisionMaker(51@, 196@)
Char.SetKindaStayInSamePlace(51@, True)
Char.SetOnlyDamagedByPlayer(51@, True)
Char.GiveWeapon(51@, WeaponType.Tec9, 30000)
Task.KillCharOnFoot(51@, $scplayer)
107@ = Math.RandomIntInRange(0, 2)
52@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1670.5, 1364.8, 6.2)
Char.SetAccuracy(52@, 130@)
Char.SetHeading(52@, 129.4)
Char.SetDecisionMaker(52@, 196@)
Char.SetKindaStayInSamePlace(52@, True)
Char.SetOnlyDamagedByPlayer(52@, True)
Char.GiveWeapon(52@, WeaponType.Tec9, 30000)
Task.KillCharOnFoot(52@, $scplayer)
107@ = Math.RandomIntInRange(0, 2)
53@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1687.5, 1367.8, 6.2)
Char.SetAccuracy(53@, 130@)
Char.SetHeading(53@, 124.5)
Char.SetDecisionMaker(53@, 196@)
Char.SetKindaStayInSamePlace(53@, True)
Char.SetOnlyDamagedByPlayer(53@, True)
Char.GiveWeapon(53@, WeaponType.Tec9, 30000)
Task.KillCharOnFoot(53@, $scplayer)
107@ = Math.RandomIntInRange(0, 2)
54@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1657.3, 1379.8, 8.8)
Char.SetAccuracy(54@, 130@)
Char.SetHeading(54@, 140.5)
Char.SetDecisionMaker(54@, 196@)
Char.SetKindaStayInSamePlace(54@, True)
Char.SetOnlyDamagedByPlayer(54@, True)
Char.GiveWeapon(54@, WeaponType.Tec9, 30000)
Task.KillCharOnFoot(54@, $scplayer)
Car.Delete(58@)
Char.Delete($ryder)
Streaming.RemoveCarRecording(28)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Streaming.RemoveAnimation("GRENADE")
Car.MarkAsNoLongerNeeded(58@)
Streaming.MarkModelAsNoLongerNeeded(487)
Streaming.MarkModelAsNoLongerNeeded(600)
Streaming.MarkModelAsNoLongerNeeded(566)
Streaming.MarkModelAsNoLongerNeeded(413)
Car.MarkAsNoLongerNeeded(75@)
Streaming.MarkModelAsNoLongerNeeded(429)
World.SetCarDensityMultiplier(1.0)
DecisionMakerChar.AddEventResponse(196@, 13, 917, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse(196@, 11, 600, 100.0, 0.0, 0.0, 0.0, False, True)
Streaming.LoadScene(-1720.4, 1275.5, 16.9)
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $cesar)
Group.SetDefaultTaskAllocator($Players_Group, DefaultTaskAllocator.FollowLimited)
126@ = 1
Game.ShutAllCharsUp(False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Text.ClearPrints
Text.PrintNow('SYN5_06', 4000, 1)
Camera.DoFade(500, Fade.In)

:SYN5_17359
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_17383
wait 0
goto @SYN5_17359

:SYN5_17383
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_17415
goto @SYN5_8953

:SYN5_17415
if 
  90@ == 1
goto_if_false @SYN5_17440
goto @SYN5_23151

:SYN5_17440
88@ = 0
87@ = 5

:SYN5_17454
if 
  87@ == 5
goto_if_false @SYN5_21573
if 
  88@ == 0
goto_if_false @SYN5_17806
if 
  Char.LocateAnyMeans2D($scplayer, -1708.6, 1331.1, 200.0, 200.0, False)
goto_if_false @SYN5_17542
World.SetPedDensityMultiplier(0.0)
goto @SYN5_17549

:SYN5_17542
World.SetPedDensityMultiplier(1.0)

:SYN5_17549
gosub @SYN5_29054
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @SYN5_17599
if 
  not Char.IsDead(35@)
goto_if_false @SYN5_17599
Char.SetOnlyDamagedByPlayer(35@, False)
Char.ExplodeHead(35@)

:SYN5_17599
if 
  Char.IsDead(35@)
goto_if_false @SYN5_17806
ENTEXT_63()
if 
  $player_is_completely_safe == 1
goto_if_false @SYN5_17806
Text.ClearPrints
Blip.Remove(79@)
Camera.DoFade(1000, Fade.Out)

:SYN5_17654
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_17678
wait 0
goto @SYN5_17654

:SYN5_17678
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_17710
goto @SYN5_8953

:SYN5_17710
if 
  90@ == 1
goto_if_false @SYN5_17735
goto @SYN5_23151

:SYN5_17735
Streaming.RequestAnimation("DANCING")
Streaming.RequestAnimation("KISSING")
Streaming.RequestAnimation("MISC")
Streaming.RequestAnimation("RYDER")
Streaming.RequestModel(#DYN_WOODPILE2)
Streaming.RequestModel(452)
Streaming.LoadSpecialCharacter(2, 'RYDER2')
Streaming.LoadAllModelsNow
88@ = 1

:SYN5_17806
if 
  88@ == 1
goto_if_false @SYN5_19605
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
132@ = 0
Player.SetDrunkenness($player1, 0)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Game.ShutAllCharsUp(True)
World.ClearArea(-1629.438, 1422.648, 6.2, 60.0, True)
Streaming.LoadScene(-1629.438, 1422.648, 6.2)
Char.Delete(35@)
35@ = Char.Create(PedType.Mission2, 293, -1629.438, 1422.648, 6.2)
Char.SetHealth(35@, 500)
Char.AddArmor(35@, 100)
Char.SetAccuracy(35@, 130@)
Char.SetHeading(35@, 260.0)
Char.SetProofs(35@, True, True, True, True, True)
Char.SetBleeding(35@, True)
Char.SetDecisionMaker(35@, 197@)
195@ = Sequence.Open()
Task.PlayAnim(-1, "RYD_DIE_PT1", "RYDER", 1000.0, False, True, True, False, -1)
Sequence.Close(195@)
Char.PerformSequence(35@, 195@)
Sequence.Clear(195@)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -1639.9, 1410.3, 6.2)
Char.SetHeading($scplayer, 325.8)
91@ = 0
91@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Mp5)
if 
  91@ > 0
goto_if_false @SYN5_18145
Char.SetCurrentWeapon($scplayer, WeaponType.Mp5)
goto @SYN5_18232

:SYN5_18145
91@ = Char.GetAmmoInWeapon($scplayer, WeaponType.MicroUzi)
if 
  91@ > 0
goto_if_false @SYN5_18187
Char.SetCurrentWeapon($scplayer, WeaponType.MicroUzi)
goto @SYN5_18232

:SYN5_18187
91@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Tec9)
if 
  91@ == 0
goto_if_false @SYN5_18225
Char.GiveWeapon($scplayer, WeaponType.Tec9, 300)

:SYN5_18225
Char.SetCurrentWeapon($scplayer, WeaponType.Tec9)

:SYN5_18232
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1632.2, 1419.3, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence($scplayer, 195@)
Sequence.Clear(195@)
Camera.SetBehindPlayer
Camera.Restore
if 
  Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @SYN5_18306
Char.RemoveFromGroup($cesar)

:SYN5_18306
Char.ClearTasksImmediately($cesar)
Char.SetCoordinates($cesar, -1638.1, 1408.8, 6.2)
Char.SetHeading($cesar, 325.8)
Char.SetDecisionMaker($cesar, 197@)
Char.GiveWeapon($cesar, WeaponType.Tec9, 30000)
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1630.5, 1417.9, 6.2, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence($cesar, 195@)
Sequence.Clear(195@)
Char.ClearTasksImmediately($wuzi)
Char.SetCoordinates($wuzi, -1645.7, 1409.0, 6.2)
Char.SetHeading($wuzi, 328.5)
Char.SetDecisionMaker($wuzi, 197@)
Char.GiveWeapon($wuzi, WeaponType.Tec9, 30000)
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1640.2, 1414.0, 6.2, MoveState.Walk, -1)
Task.TurnCharToFaceChar(-1, 35@)
Sequence.Close(195@)
Char.PerformSequence($wuzi, 195@)
Sequence.Clear(195@)
if 
  not Char.IsDead(39@)
goto_if_false @SYN5_18579
Char.SetDecisionMaker(39@, 197@)
Char.ClearTasksImmediately(39@)
195@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.HandsUp(-1, 50000)
Sequence.Close(195@)
Char.PerformSequence(39@, 195@)
Sequence.Clear(195@)

:SYN5_18579
Char.Delete(40@)
Char.Delete(41@)
Char.Delete(42@)
Char.Delete(43@)
Char.Delete(44@)
if 
  not Char.IsDead(45@)
goto_if_false @SYN5_18672
Char.SetDecisionMaker(45@, 197@)
Char.ClearTasksImmediately(45@)
195@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.HandsUp(-1, 50000)
Sequence.Close(195@)
Char.PerformSequence(45@, 195@)
Sequence.Clear(195@)

:SYN5_18672
Char.Delete(46@)
if 
  not Char.IsDead(47@)
goto_if_false @SYN5_18745
Char.SetDecisionMaker(47@, 197@)
Char.ClearTasksImmediately(47@)
195@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.HandsUp(-1, 50000)
Sequence.Close(195@)
Char.PerformSequence(47@, 195@)
Sequence.Clear(195@)

:SYN5_18745
if 
  not Char.IsDead(48@)
goto_if_false @SYN5_18813
Char.SetDecisionMaker(48@, 197@)
Char.ClearTasksImmediately(48@)
195@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.HandsUp(-1, 50000)
Sequence.Close(195@)
Char.PerformSequence(48@, 195@)
Sequence.Clear(195@)

:SYN5_18813
Char.Delete(36@)
Char.Delete(37@)
Char.Delete(38@)
$ryder = Char.Create(PedType.Mission2, 291, -1633.1, 1394.1, 6.2)
Char.SetAccuracy($ryder, 130@)
Char.SetHeading($ryder, 268.0)
Char.SetDecisionMaker($ryder, 197@)
Char.SetOnlyDamagedByPlayer($ryder, True)
Char.SetSuffersCriticalHits($ryder, False)
Char.AddArmor($ryder, 100)
67@ = Char.CreateRandom(-1502.8, 1379.5, 3.1)
Char.SetHeading(67@, 123.3)
Task.PlayAnim(67@, "DAN_LOOP_A", "DANCING", 4.0, True, False, False, False, -1)
68@ = Char.CreateRandom(-1503.2, 1377.3, 3.1)
Char.SetHeading(68@, 37.1)
Task.PlayAnim(68@, "DAN_LOOP_A", "DANCING", 4.0, True, False, False, False, -1)
69@ = Char.CreateRandom(-1506.0, 1375.2, 3.1)
Char.SetHeading(69@, 291.9)
Task.PlayAnim(69@, "DAN_LOOP_A", "DANCING", 4.0, True, False, False, False, -1)
70@ = Char.CreateRandom(-1509.2, 1379.3, 2.8)
71@ = Char.CreateRandom(-1510.2, 1379.3, 2.8)
Task.TurnCharToFaceChar(70@, 71@)
Task.PlayAnim(70@, "GRLFRD_KISS_03", "KISSING", 4.0, True, False, False, False, -1)
Task.TurnCharToFaceChar(71@, 70@)
Task.PlayAnim(71@, "PLAYA_KISS_03", "KISSING", 4.0, True, False, False, False, -1)
72@ = ScriptFire.Start(-1505.0, 1379.2, 2.1, 0, 1)
78@ = Object.CreateNoOffset(#DYN_WOODPILE2, -1505.0, 1379.2, 2.1)
Object.SetScale(78@, 0.5)
Object.SetCollisionDamageEffect(78@, False)
65@ = Car.Create(452, -1504.0, 1388.7, 0.0)
Car.SetHeading(65@, 282.0)
Boat.Anchor(65@, True)
Car.SetStraightLineDistance(65@, 255)
66@ = Car.Create(452, -1519.9, 1382.3, 0.0)
Car.SetHeading(66@, 314.0)
Boat.Anchor(66@, True)
Camera.SetFixedPosition(-1643.8, 1408.3, 7.6, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1631.1, 1416.7, 7.9, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)

:SYN5_19468
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_19492
wait 0
goto @SYN5_19468

:SYN5_19492
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_19524
goto @SYN5_8953

:SYN5_19524
if 
  90@ == 1
goto_if_false @SYN5_19549
goto @SYN5_23151

:SYN5_19549
89@ = 1
skip_cutscene_start_internal @SYN5_20987
132@ = 8
134@ = 0
135@ = 1
gosub @SYN5_30472
TIMERA = 0
88@ = 2

:SYN5_19605
if 
  88@ == 2
goto_if_false @SYN5_19810
if 
  not Char.IsDead(35@)
goto_if_false @SYN5_19810
if 
  Char.LocateAnyMeans2D(35@, -1626.6, 1421.8, 1.0, 1.0, False)
goto_if_false @SYN5_19810
Char.ClearTasksImmediately(35@)
Char.SetCoordinates(35@, -1624.4, 1423.8, 6.2)
Char.SetHeading(35@, 135.0)
Task.PlayAnimNonInterruptable(35@, "RYD_DIE_PT2", "RYDER", 1000.0, False, False, False, True, -1)
Camera.SetFixedPosition(-1633.2, 1416.9, 7.6, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1624.2, 1424.9, 6.8, SwitchType.JumpCut)
88@ = 3

:SYN5_19810
if 
  88@ == 3
goto_if_false @SYN5_19945
if 
  not Char.IsDead(35@)
goto_if_false @SYN5_19945
if 
  Char.IsPlayingAnim(35@, "RYD_DIE_PT2")
goto_if_false @SYN5_19945
194@ = Char.GetAnimCurrentTime(35@, "RYD_DIE_PT2")
if 
  194@ > 0.783
goto_if_false @SYN5_19945
Char.SetAnimSpeed(35@, "RYD_DIE_PT2", 0.0)
88@ = 4

:SYN5_19945
if 
  88@ == 4
goto_if_false @SYN5_20136
if 
  132@ == 0
goto_if_false @SYN5_20136
if 
  not Char.IsDead(35@)
goto_if_false @SYN5_20136
195@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, 35@)
Task.ShootAtChar(-1, 35@, 1000)
Sequence.Close(195@)
Char.PerformSequence($scplayer, 195@)
Sequence.Clear(195@)
195@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, 35@)
Task.ShootAtChar(-1, 35@, 1000)
Sequence.Close(195@)
Char.PerformSequence($cesar, 195@)
Sequence.Clear(195@)
if 
  Char.IsPlayingAnim(35@, "RYD_DIE_PT2")
goto_if_false @SYN5_20129
Char.SetAnimSpeed(35@, "RYD_DIE_PT2", 1.0)

:SYN5_20129
88@ = 5

:SYN5_20136
if 
  88@ == 5
goto_if_false @SYN5_20275
if 
  not Char.IsDead(35@)
goto_if_false @SYN5_20275
if 
  Char.IsPlayingAnim(35@, "RYD_DIE_PT2")
goto_if_false @SYN5_20275
194@ = Char.GetAnimCurrentTime(35@, "RYD_DIE_PT2")
if 
  194@ > 0.98
goto_if_false @SYN5_20275
Char.SetCoordinates(35@, -1622.1, 1425.5, 6.2)
TIMERA = 0
88@ = 6

:SYN5_20275
if 
  88@ == 6
goto_if_false @SYN5_20425
if 
  TIMERA > 2000
goto_if_false @SYN5_20425
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_20411
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1621.0, 1396.0, 7.4, MoveState.Run, -1)
Sequence.Close(195@)
Char.PerformSequence($ryder, 195@)
Sequence.Clear(195@)
Camera.PointAtChar($ryder, CameraMode.Fixed, SwitchType.JumpCut)
132@ = 8
134@ = 1
135@ = 4
gosub @SYN5_30472

:SYN5_20411
TIMERA = 0
88@ = 7

:SYN5_20425
if 
  88@ == 7
goto_if_false @SYN5_20663
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_20663
$task_status = Char.GetScriptTaskStatus($ryder, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_20663
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1614.82, 1397.204, 7.277, MoveState.Run, -1)
Task.CharSlideToCoord(-1, -1614.82, 1397.204, 7.277, 287.0, 0.9)
Task.PlayAnimNonInterruptable(-1, "RUN_DIVE", "MISC", 4.0, False, False, False, True, -1)
Sequence.Close(195@)
Char.PerformSequence($ryder, 195@)
Sequence.Clear(195@)
Camera.SetFixedPosition(-1617.8, 1398.8, 7.2, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1614.2, 1396.3, 8.0, SwitchType.JumpCut)
TIMERA = 0
88@ = 8

:SYN5_20663
if 
  88@ == 8
goto_if_false @SYN5_20734
if 
  132@ == 0
goto_if_false @SYN5_20734
132@ = 8
134@ = 4
135@ = 6
gosub @SYN5_30472
88@ = 9

:SYN5_20734
if 
  88@ == 9
goto_if_false @SYN5_20847
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_20847
if 
  Char.IsPlayingAnim($ryder, "RUN_DIVE")
goto_if_false @SYN5_20847
194@ = Char.GetAnimCurrentTime($ryder, "RUN_DIVE")
if 
  194@ > 0.98
goto_if_false @SYN5_20847
TIMERA = 0
88@ = 10

:SYN5_20847
if 
  88@ == 10
goto_if_false @SYN5_20918
if 
  TIMERA > 500
goto_if_false @SYN5_20918
Audio.ReportMissionAudioEventAtPosition(-1609.2, 1401.7, 5.8, 1144)
TIMERA = 0
88@ = 11

:SYN5_20918
if 
  88@ == 11
goto_if_false @SYN5_20962
if 
  TIMERA > 1000
goto_if_false @SYN5_20962
88@ = 12

:SYN5_20962
if 
  88@ == 12
goto_if_false @SYN5_21573
89@ = 0

:SYN5_20987
skip_cutscene_end 
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_21021
goto @SYN5_8953

:SYN5_21021
if 
  90@ == 1
goto_if_false @SYN5_21046
goto @SYN5_23151

:SYN5_21046
if 
  89@ == 1
goto_if_false @SYN5_21184
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
132@ = 0
Camera.DoFade(500, Fade.Out)

:SYN5_21088
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_21112
wait 0
goto @SYN5_21088

:SYN5_21112
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_21144
goto @SYN5_8953

:SYN5_21144
if 
  90@ == 1
goto_if_false @SYN5_21169
goto @SYN5_23151

:SYN5_21169
Char.Delete(35@)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($cesar)

:SYN5_21184
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_21309
if 
  not Car.IsDead(65@)
goto_if_false @SYN5_21309
Char.SetDrownsInWater($ryder, False)
Char.ClearTasksImmediately($ryder)
Char.SetCoordinates($ryder, -1543.9, 1401.6, 0.0)
191@, 192@, 193@ = Car.GetOffsetInWorldCoords(65@, -1.0, 2.0, 0.0)
Task.SwimToCoord($ryder, 191@, 192@, 193@)
Char.SetSwimSpeed($ryder, 2.3)
79@ = Blip.AddForChar($ryder)

:SYN5_21309
Car.MarkAsNoLongerNeeded(55@)
Car.MarkAsNoLongerNeeded(56@)
Car.MarkAsNoLongerNeeded(57@)
Streaming.MarkModelAsNoLongerNeeded(600)
Streaming.MarkModelAsNoLongerNeeded(566)
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(103)
Streaming.MarkModelAsNoLongerNeeded(173)
Streaming.MarkModelAsNoLongerNeeded(174)
Task.GoStraightToCoord($cesar, -1616.5, 1402.9, 6.2, MoveState.Walk, -2)
Task.GoStraightToCoord($wuzi, -1615.5, 1398.4, 6.2, MoveState.Walk, -2)
Streaming.UnloadSpecialCharacter(4)
Streaming.RemoveAnimation("MISC")
Streaming.RemoveAnimation("RYDER")
Text.ClearPrints
Text.Print('SYN5_07', 7000, 1)
Game.ShutAllCharsUp(False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Camera.DoFade(500, Fade.In)

:SYN5_21471
if 
  Camera.GetFadingStatus
goto_if_false @SYN5_21495
wait 0
goto @SYN5_21471

:SYN5_21495
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_21527
goto @SYN5_8953

:SYN5_21527
if 
  90@ == 1
goto_if_false @SYN5_21552
goto @SYN5_23151

:SYN5_21552
133@ = 0
88@ = 0
87@ = 6

:SYN5_21573
if 
  87@ == 6
goto_if_false @SYN5_22930
if 
  133@ == 0
goto_if_false @SYN5_21659
if 
  Char.IsInWater($scplayer)
goto_if_false @SYN5_21659
Text.ClearThisPrint('SYN5_07')
Text.PrintNow('SYN5_08', 7000, 1)
133@ = 1

:SYN5_21659
if 
  133@ == 1
goto_if_false @SYN5_21762
if 
  not Car.IsDead(66@)
goto_if_false @SYN5_21762
if 
  Char.LocateAnyMeansCar2D($scplayer, 66@, 10.0, 10.0, False)
goto_if_false @SYN5_21762
86@ = Blip.AddForCar(66@)
Blip.SetAsFriendly(86@, True)
Text.PrintNow('SYN5_11', 7000, 1)
133@ = 2

:SYN5_21762
if 
  133@ == 2
goto_if_false @SYN5_21904
if 
  not Car.IsDead(66@)
goto_if_false @SYN5_21876
if 
  Char.IsInCar($scplayer, 66@)
goto_if_false @SYN5_21876
if 
  not Char.IsDead(67@)
goto_if_false @SYN5_21869
132@ = 9
134@ = Math.RandomIntInRange(0, 3)
set_lvar_int_to_lvar_int 135@ = 134@
135@ += 1
gosub @SYN5_30472

:SYN5_21869
133@ = 3

:SYN5_21876
if 
  Char.IsInAnyBoat($scplayer)
goto_if_false @SYN5_21904
Blip.Remove(86@)
133@ = 3

:SYN5_21904
if 
  133@ == 3
goto_if_false @SYN5_21981
if 
  132@ == 0
goto_if_false @SYN5_21981
if 
  132@ == 0
goto_if_false @SYN5_21981
Text.PrintNow('SYN5_12', 7000, 1)
133@ = 4

:SYN5_21981
if 
  133@ == 4
goto_if_false @SYN5_22178
if 
  132@ == 0
goto_if_false @SYN5_22178
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_22178
if 
  not Car.IsDead(65@)
goto_if_false @SYN5_22178
if 
  Char.IsInCar($ryder, 65@)
goto_if_false @SYN5_22178
if 
  not Car.IsDead(66@)
goto_if_false @SYN5_22178
if 
  Char.IsInCar($scplayer, 66@)
goto_if_false @SYN5_22178
if 
  Char.LocateAnyMeansChar2D($scplayer, $ryder, 15.0, 15.0, False)
goto_if_false @SYN5_22178
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_22178
132@ = 11
134@ = 0
gosub @SYN5_30472
133@ = 5

:SYN5_22178
if 
  88@ == 0
goto_if_false @SYN5_22366
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_22366
if 
  not Car.IsDead(65@)
goto_if_false @SYN5_22366
if 
  not Char.LocateAnyMeans2D($ryder, 191@, 192@, 2.0, 2.0, False)
goto_if_false @SYN5_22351
$task_status = Char.GetScriptTaskStatus($ryder, 2017)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_22344
191@, 192@, 193@ = Car.GetOffsetInWorldCoords(65@, -1.0, 2.0, 0.0)
Task.SwimToCoord($ryder, 191@, 192@, 193@)
Char.SetSwimSpeed($ryder, 2.3)

:SYN5_22344
goto @SYN5_22366

:SYN5_22351
Char.WarpIntoCar($ryder, 65@)
88@ = 1

:SYN5_22366
if 
  88@ == 1
goto_if_false @SYN5_22488
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_22488
if or
  Char.LocateAnyMeansChar2D($scplayer, $ryder, 20.0, 20.0, False)
  Char.HasBeenDamagedByChar($ryder, $scplayer)
goto_if_false @SYN5_22446
88@ = 2

:SYN5_22446
if 
  not Car.IsDead(65@)
goto_if_false @SYN5_22488
if 
  Car.HasBeenDamagedByChar(65@, $scplayer)
goto_if_false @SYN5_22488
88@ = 2

:SYN5_22488
if 
  88@ == 2
goto_if_false @SYN5_22612
if 
  125@ == 4
goto_if_false @SYN5_22612
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_22612
if 
  not Char.LocateAnyMeansChar2D($scplayer, $ryder, 250.0, 250.0, False)
goto_if_false @SYN5_22612
if 
  not Char.IsOnScreen($ryder)
goto_if_false @SYN5_22612
Text.ClearPrints
Text.PrintNow('SYN5_09', 4000, 1)
goto @SYN5_23151

:SYN5_22612
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_22872
if 
  not Car.IsDead(65@)
goto_if_false @SYN5_22695
if 
  Char.IsInCar($ryder, 65@)
goto_if_false @SYN5_22688
if 
  88@ > 1
goto_if_false @SYN5_22688
gosub @SYN5_27551

:SYN5_22688
goto @SYN5_22872

:SYN5_22695
if 
  125@ == 0
goto_if_false @SYN5_22750
Task.SwimToCoord($ryder, -1491.2, 1387.4, 0.0)
Char.SetSwimSpeed($ryder, 2.3)
125@ = 1

:SYN5_22750
if 
  125@ == 1
goto_if_false @SYN5_22872
$task_status = Char.GetScriptTaskStatus($ryder, 2017)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_22872
195@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.GoStraightToCoord(-1, -1497.2, 1383.5, 1.6, MoveState.Run, 1)
Task.AchieveHeading(-1, 64.5)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(195@)
Char.PerformSequence($ryder, 195@)
Sequence.Clear(195@)
125@ = 2

:SYN5_22872
if 
  Car.IsDead(66@)
goto_if_false @SYN5_22893
Blip.Remove(86@)

:SYN5_22893
if 
  Char.IsDead($ryder)
goto_if_false @SYN5_22930
TIMERA = 0
88@ = 0
87@ = 7

:SYN5_22930
if 
  87@ == 7
goto_if_false @SYN5_23137
if 
  TIMERA > 2000
goto_if_false @SYN5_23077
if 
  88@ == 0
goto_if_false @SYN5_23077
if 
  Char.IsInAnyBoat($scplayer)
goto_if_false @SYN5_23070
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
132@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Game.ShutAllCharsUp(True)
132@ = 10
134@ = 0
gosub @SYN5_30472
88@ = 1
goto @SYN5_23077

:SYN5_23070
goto @SYN5_23169

:SYN5_23077
if 
  88@ == 1
goto_if_false @SYN5_23137
if 
  132@ == 0
goto_if_false @SYN5_23137
Game.ShutAllCharsUp(False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Player.SetControl($player1, True)
goto @SYN5_23169

:SYN5_23137
gosub @SYN5_32136
goto @SYN5_1694

:SYN5_23151
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:SYN5_23169
$flag_synd_mission_counter += 1
Text.PrintWithNumberBig('M_PASSS', 15000, 5000, TextStyle.Middle)
Player.AddScore($player1, 15000)
Stat.AwardPlayerMissionRespect(40)
Blip.Remove($synd_contact_blip)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Stat.RegisterMissionPassed('SYND_5')
Stat.PlayerMadeProgress(1)
Blip.Remove($garage_contact_blip)
$garage_contact_blip = Blip.AddSpriteForContactPoint($garageX, $garageY, $garageZ, $garage_blip_icon)
return 

:SYN5_23260
if 
  is_var_text_label_empty s$shop_name
goto_if_false @SYN5_23278
Camera.RestoreJumpcut

:SYN5_23278
Object.Delete(73@)
Blip.Remove(79@)
Streaming.RemoveAnimation("DANCING")
Streaming.RemoveAnimation("KISSING")
Streaming.RemoveAnimation("MISC")
Streaming.RemoveAnimation("RYDER")
Blip.Remove(80@)
Blip.Remove(81@)
Blip.Remove(82@)
Blip.Remove(83@)
Blip.Remove(84@)
Blip.Remove(85@)
Blip.Remove(79@)
Blip.Remove(86@)
Particle.Kill(59@)
Particle.Kill(60@)
Particle.Kill(61@)
Particle.Kill(62@)
Streaming.MarkModelAsNoLongerNeeded(600)
Streaming.MarkModelAsNoLongerNeeded(566)
Streaming.MarkModelAsNoLongerNeeded(487)
Streaming.MarkModelAsNoLongerNeeded(452)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(103)
Streaming.MarkModelAsNoLongerNeeded(120)
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(173)
Streaming.MarkModelAsNoLongerNeeded(174)
Streaming.MarkModelAsNoLongerNeeded(358)
Streaming.MarkModelAsNoLongerNeeded(372)
Streaming.MarkModelAsNoLongerNeeded(413)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(429)
Streaming.MarkModelAsNoLongerNeeded(#SNIPER_ANIM)
Streaming.MarkModelAsNoLongerNeeded(343)
Streaming.MarkModelAsNoLongerNeeded(567)
Streaming.MarkModelAsNoLongerNeeded(#DYN_WOODPILE2)
Streaming.MarkModelAsNoLongerNeeded(355)
ScriptFire.Remove(72@)
if 
  not Char.IsDead($scplayer)
goto_if_false @SYN5_23511
Char.ShutUpForScriptedSpeech($scplayer, False)

:SYN5_23511
Game.ShutAllCharsUp(False)
Weather.Release
Char.RemoveElegantly($cesar)
Char.RemoveElegantly($ryder)
Char.RemoveElegantly(34@)
Char.RemoveElegantly(35@)
Path.SwitchPedRoadsBackToOriginal(-1755.6, 1256.6, 0.0, -1598.2, 1660.1, 50.0)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Streaming.UnloadSpecialCharacter(4)
Game.EnableAmbientCrime(True)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

:SYN5_23605
if 
  10 > 87@
goto_if_false @SYN5_23664
if 
  Char.IsDead($cesar)
goto_if_false @SYN5_23664
Text.ClearPrints
Text.PrintNow('SYN5_04', 7000, 1)
90@ = 1

:SYN5_23664
if 
  87@ == 3
goto_if_false @SYN5_23714
if 
  Char.IsDead($wuzi)
goto_if_false @SYN5_23714
Text.ClearPrints
88@ = 0
87@ = 10

:SYN5_23714
if or
  87@ == 2
  87@ > 3
goto_if_false @SYN5_23798
if 
  87@ <> 10
goto_if_false @SYN5_23798
if 
  Char.IsDead($wuzi)
goto_if_false @SYN5_23798
Text.ClearPrints
Text.PrintNow('SYN5_05', 7000, 1)
90@ = 1

:SYN5_23798
return 

:SYN5_23800
if 
  Char.IsDead(45@)
goto_if_false @SYN5_23905
107@ = Math.RandomIntInRange(0, 2)
45@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1713.16, 1356.57, 16.2)
Char.SetHeading(45@, 44.5)
Char.GiveWeapon(45@, WeaponType.Tec9, 300000)
Task.SetIgnoreWeaponRangeFlag(45@, True)
Char.SetDecisionMaker(45@, 197@)
Char.SetStayInSamePlace(45@, True)
Char.SetOnlyDamagedByPlayer(45@, True)

:SYN5_23905
if 
  Char.IsDead(46@)
goto_if_false @SYN5_24010
107@ = Math.RandomIntInRange(0, 2)
46@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1682.9, 1379.8, 13.8)
Char.SetHeading(46@, 36.8)
Char.GiveWeapon(46@, WeaponType.Tec9, 300000)
Task.SetIgnoreWeaponRangeFlag(46@, True)
Char.SetDecisionMaker(46@, 197@)
Char.SetStayInSamePlace(46@, True)
Char.SetOnlyDamagedByPlayer(46@, True)

:SYN5_24010
if 
  Char.IsDead(47@)
goto_if_false @SYN5_24115
107@ = Math.RandomIntInRange(0, 2)
47@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1686.2, 1393.2, 20.5)
Char.SetHeading(47@, 276.9)
Char.GiveWeapon(47@, WeaponType.Tec9, 300000)
Task.SetIgnoreWeaponRangeFlag(47@, True)
Char.SetDecisionMaker(47@, 197@)
Char.SetStayInSamePlace(47@, True)
Char.SetOnlyDamagedByPlayer(47@, True)

:SYN5_24115
if 
  Char.IsDead(48@)
goto_if_false @SYN5_24220
107@ = Math.RandomIntInRange(0, 2)
48@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1686.4, 1345.6, 16.2)
Char.SetHeading(48@, 4.0)
Char.GiveWeapon(48@, WeaponType.Tec9, 300000)
Task.SetIgnoreWeaponRangeFlag(48@, True)
Char.SetDecisionMaker(48@, 197@)
Char.SetStayInSamePlace(48@, True)
Char.SetOnlyDamagedByPlayer(48@, True)

:SYN5_24220
if 
  Char.IsDead(49@)
goto_if_false @SYN5_24325
107@ = Math.RandomIntInRange(0, 2)
49@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1661.0, 1362.2, 17.4)
Char.SetHeading(49@, 236.8)
Char.GiveWeapon(49@, WeaponType.Tec9, 300000)
Task.SetIgnoreWeaponRangeFlag(49@, True)
Char.SetDecisionMaker(49@, 197@)
Char.SetStayInSamePlace(49@, True)
Char.SetOnlyDamagedByPlayer(49@, True)

:SYN5_24325
if 
  Char.IsDead(50@)
goto_if_false @SYN5_24430
107@ = Math.RandomIntInRange(0, 2)
50@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1641.6, 1369.9, 17.4)
Char.SetHeading(50@, 211.1)
Char.GiveWeapon(50@, WeaponType.Tec9, 300000)
Task.SetIgnoreWeaponRangeFlag(50@, True)
Char.SetDecisionMaker(50@, 197@)
Char.SetStayInSamePlace(50@, True)
Char.SetOnlyDamagedByPlayer(50@, True)

:SYN5_24430
return 

:SYN5_24432
if 
  Char.IsDead($wuzi)
goto_if_false @SYN5_24602
$wuzi = Char.Create(PedType.Mission1, 120, -1687.4, 1321.1, 6.2)
Char.SetHeading($wuzi, 326.8)
Char.SetVisible($wuzi, False)
Char.GiveWeapon($wuzi, WeaponType.Tec9, 30000)
Char.SetNeverTargeted($wuzi, True)
Char.SetDecisionMaker($wuzi, 197@)
Char.SetStayInSamePlace($wuzi, True)
Char.SetOnlyDamagedByPlayer($wuzi, True)
195@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
Task.ToggleDuck(-1, True)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 1000.0, False, False, False, True, -1)
Sequence.Close(195@)
Char.PerformSequence($wuzi, 195@)
Sequence.Clear(195@)

:SYN5_24602
if 
  Char.IsDead(36@)
goto_if_false @SYN5_24775
36@ = Char.Create(PedType.Mission1, 117, -1689.5, 1320.2, 6.2)
Char.SetHeading(36@, 312.1)
Char.GiveWeapon(36@, WeaponType.Tec9, 30000)
Task.Duck(36@, 360000000)
Char.SetNeverTargeted(36@, True)
Char.SetDecisionMaker(36@, 197@)
Char.SetStayInSamePlace(36@, True)
Char.SetOnlyDamagedByPlayer(36@, True)
195@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
Task.ToggleDuck(-1, True)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 1000.0, False, False, False, True, -1)
Sequence.Close(195@)
Char.PerformSequence(36@, 195@)
Sequence.Clear(195@)

:SYN5_24775
if 
  Char.IsDead(37@)
goto_if_false @SYN5_24948
37@ = Char.Create(PedType.Mission1, 117, -1688.1, 1319.3, 6.2)
Char.SetHeading(37@, 327.2)
Char.GiveWeapon(37@, WeaponType.Tec9, 30000)
Task.Duck(37@, 360000000)
Char.SetNeverTargeted(37@, True)
Char.SetDecisionMaker(37@, 197@)
Char.SetStayInSamePlace(37@, True)
Char.SetOnlyDamagedByPlayer(37@, True)
195@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
Task.ToggleDuck(-1, True)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 1000.0, False, False, False, True, -1)
Sequence.Close(195@)
Char.PerformSequence(37@, 195@)
Sequence.Clear(195@)

:SYN5_24948
if 
  Char.IsDead(38@)
goto_if_false @SYN5_25121
38@ = Char.Create(PedType.Mission1, 117, -1686.5, 1318.0, 6.2)
Char.SetHeading(38@, 346.0)
Char.GiveWeapon(38@, WeaponType.Tec9, 30000)
Task.Duck(38@, 360000000)
Char.SetNeverTargeted(38@, True)
Char.SetDecisionMaker(38@, 197@)
Char.SetStayInSamePlace(38@, True)
Char.SetOnlyDamagedByPlayer(38@, True)
195@ = Sequence.Open()
Task.SetIgnoreWeaponRangeFlag(-1, True)
Task.ToggleDuck(-1, True)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 1000.0, False, False, False, True, -1)
Sequence.Close(195@)
Char.PerformSequence(38@, 195@)
Sequence.Clear(195@)

:SYN5_25121
return 

:SYN5_25123
if 
  Char.IsDead(35@)
goto_if_false @SYN5_25219
35@ = Char.Create(PedType.Mission2, 293, -1716.0, 1349.8, 6.2)
Char.SetAccuracy(35@, 130@)
Char.SetAnimGroup(35@, "GANG2")
Char.SetHeading(35@, 229.4)
Char.GiveWeapon(35@, WeaponType.Ak47, 30000)
Char.SetDecisionMaker(35@, 197@)
Char.SetStayInSamePlace(35@, True)

:SYN5_25219
if 
  Char.IsDead(45@)
goto_if_false @SYN5_25306
107@ = Math.RandomIntInRange(0, 2)
45@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1716.8, 1351.6, 6.2)
Char.SetAccuracy(45@, 130@)
Char.SetHeading(45@, 229.4)
Char.SetDecisionMaker(45@, 196@)
Char.SetOnlyDamagedByPlayer(45@, True)

:SYN5_25306
if 
  Char.IsDead(46@)
goto_if_false @SYN5_25405
107@ = Math.RandomIntInRange(0, 2)
46@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1720.5, 1353.7, 6.2)
Char.SetAccuracy(46@, 130@)
Char.SetAnimGroup(46@, "GANG2")
Char.SetHeading(46@, 229.4)
Char.SetDecisionMaker(46@, 196@)
Char.SetOnlyDamagedByPlayer(46@, True)

:SYN5_25405
if 
  Char.IsDead(47@)
goto_if_false @SYN5_25502
107@ = Math.RandomIntInRange(0, 2)
47@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1718.4, 1351.3, 6.2)
Char.SetAccuracy(47@, 130@)
Char.SetHeading(47@, 236.0)
Char.GiveWeapon(47@, WeaponType.Tec9, 30000)
Char.SetDecisionMaker(47@, 196@)
Char.SetOnlyDamagedByPlayer(47@, True)

:SYN5_25502
if 
  Char.IsDead(48@)
goto_if_false @SYN5_25611
107@ = Math.RandomIntInRange(0, 2)
48@ = Char.Create(PedType.Mission2, 108@(107@,7i), -1718.2, 1353.3, 6.2)
Char.SetAccuracy(48@, 130@)
Char.SetAnimGroup(48@, "GANG1")
Char.SetHeading(48@, 301.0)
Char.GiveWeapon(48@, WeaponType.Tec9, 30000)
Char.SetDecisionMaker(48@, 196@)
Char.SetOnlyDamagedByPlayer(48@, True)

:SYN5_25611
return 

:SYN5_25613
if 
  Car.IsDead(55@)
goto_if_false @SYN5_25693
Car.CustomPlateForNextCar(600, "_SHERM__")
55@ = Car.Create(600, -1774.2, 1376.8, 5.7)
Car.ChangeColor(55@, 84, 84)
Car.SetHeading(55@, 251.8)
Car.LockDoors(55@, CarLock.LockoutPlayerOnly)

:SYN5_25693
if 
  Char.IsDead($ryder)
goto_if_false @SYN5_25769
$ryder = Char.CreateInsideCar(55@, PedType.Mission2, 291)
Char.SetAccuracy($ryder, 130@)
Char.GiveWeapon($ryder, WeaponType.Ak47, 30000)
Char.SetDecisionMaker($ryder, 197@)
Char.SetOnlyDamagedByPlayer($ryder, True)
Char.SetSuffersCriticalHits($ryder, False)
Char.AddArmor($ryder, 100)

:SYN5_25769
if 
  Char.IsDead(39@)
goto_if_false @SYN5_25846
107@ = Math.RandomIntInRange(3, 5)
39@ = Char.CreateAsPassenger(55@, PedType.Mission2, 108@(107@,7i), -1)
Char.SetAccuracy(39@, 130@)
Char.GiveWeapon(39@, WeaponType.Tec9, 30000)
Char.SetDecisionMaker(39@, 196@)
Char.SetOnlyDamagedByPlayer(39@, True)

:SYN5_25846
if 
  Car.IsDead(56@)
goto_if_false @SYN5_25902
56@ = Car.Create(566, -1784.2, 1379.8, 5.7)
Car.SetHeading(56@, 251.8)
Car.LockDoors(56@, CarLock.LockoutPlayerOnly)

:SYN5_25902
if 
  Char.IsDead(41@)
goto_if_false @SYN5_25977
107@ = Math.RandomIntInRange(3, 5)
41@ = Char.CreateInsideCar(56@, PedType.Mission2, 108@(107@,7i))
Char.SetAccuracy(41@, 130@)
Char.GiveWeapon(41@, WeaponType.Tec9, 30000)
Char.SetDecisionMaker(41@, 196@)
Char.SetOnlyDamagedByPlayer(41@, True)

:SYN5_25977
if 
  Char.IsDead(42@)
goto_if_false @SYN5_26054
107@ = Math.RandomIntInRange(3, 5)
42@ = Char.CreateAsPassenger(56@, PedType.Mission2, 108@(107@,7i), 0)
Char.SetAccuracy(42@, 130@)
Char.GiveWeapon(42@, WeaponType.Tec9, 30000)
Char.SetDecisionMaker(42@, 196@)
Char.SetOnlyDamagedByPlayer(42@, True)

:SYN5_26054
if 
  Car.IsDead(57@)
goto_if_false @SYN5_26110
57@ = Car.Create(566, -1795.0, 1383.6, 5.7)
Car.SetHeading(57@, 251.8)
Car.LockDoors(57@, CarLock.LockoutPlayerOnly)

:SYN5_26110
if 
  Char.IsDead(43@)
goto_if_false @SYN5_26185
107@ = Math.RandomIntInRange(3, 5)
43@ = Char.CreateInsideCar(57@, PedType.Mission2, 108@(107@,7i))
Char.SetAccuracy(43@, 130@)
Char.GiveWeapon(43@, WeaponType.Tec9, 30000)
Char.SetDecisionMaker(43@, 196@)
Char.SetOnlyDamagedByPlayer(43@, True)

:SYN5_26185
if 
  Char.IsDead(44@)
goto_if_false @SYN5_26262
107@ = Math.RandomIntInRange(3, 5)
44@ = Char.CreateAsPassenger(57@, PedType.Mission2, 108@(107@,7i), 0)
Char.SetAccuracy(44@, 130@)
Char.GiveWeapon(44@, WeaponType.Tec9, 30000)
Char.SetDecisionMaker(44@, 196@)
Char.SetOnlyDamagedByPlayer(44@, True)

:SYN5_26262
return 

:SYN5_26264
if 
  Car.IsDead(58@)
goto_if_false @SYN5_26372
58@ = Car.Create(487, -1600.9, 1424.6, 300.8)
Car.SetHeading(58@, 97.2)
Car.LockDoors(58@, CarLock.LockoutPlayerOnly)
Heli.SetReachedTargetDistance(58@, 3)
Heli.SetBladesFullSpeed(58@)
Car.SetForwardSpeed(58@, 10.0)
Heli.GotoCoords(58@, -1600.9, 1424.6, 300.0, 0.0, 300.0)

:SYN5_26372
if 
  Char.IsDead(34@)
goto_if_false @SYN5_26435
34@ = Char.CreateAsPassenger(58@, PedType.Mission2, 292, 0)
Char.GiveWeapon(34@, WeaponType.Tec9, 30000)
Char.SetDecisionMaker(34@, 197@)
Char.SetSuffersCriticalHits(34@, False)
Char.SetOnlyDamagedByPlayer(34@, True)

:SYN5_26435
return 

:SYN5_26437
if 
  not Char.IsDead(45@)
goto_if_false @SYN5_26586
if 
  115@ == 0
goto_if_false @SYN5_26586
195@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1705.8, 1359.5, 16.2, MoveState.Run, -1)
Task.GoStraightToCoord(-1, -1701.3, 1356.7, 16.2, MoveState.Run, -1)
Task.AchieveHeading(-1, 236.7)
Task.SetCharDecisionMaker(-1, 196@)
if 
  not Char.IsDead($wuzi)
goto_if_false @SYN5_26561
Task.KillCharOnFoot(-1, $wuzi)

:SYN5_26561
Sequence.Close(195@)
Char.PerformSequence(45@, 195@)
Sequence.Clear(195@)
115@ = 1

:SYN5_26586
if 
  not Char.IsDead(46@)
goto_if_false @SYN5_26726
if 
  116@ == 0
goto_if_false @SYN5_26726
195@ = Sequence.Open()
if 
  not Char.IsDead($wuzi)
goto_if_false @SYN5_26701
Task.GoStraightToCoord(-1, -1703.3, 1361.5, 16.2, MoveState.Run, -1)
Task.GoStraightToCoord(-1, -1699.8, 1357.9, 16.2, MoveState.Run, -1)
Task.SetCharDecisionMaker(-1, 196@)
Task.KillCharOnFoot(-1, $wuzi)

:SYN5_26701
Sequence.Close(195@)
Char.PerformSequence(46@, 195@)
Sequence.Clear(195@)
116@ = 1

:SYN5_26726
if 
  not Char.IsDead(47@)
goto_if_false @SYN5_26866
if 
  117@ == 0
goto_if_false @SYN5_26866
195@ = Sequence.Open()
if 
  not Char.IsDead($wuzi)
goto_if_false @SYN5_26841
Task.GoStraightToCoord(-1, -1689.2, 1371.8, 14.0, MoveState.Run, -1)
Task.AchieveHeading(-1, 202.3)
Task.SetCharDecisionMaker(-1, 196@)
Task.ShootAtCoord(-1, -1687.6, 1367.1, 15.0, -2)

:SYN5_26841
Sequence.Close(195@)
Char.PerformSequence(47@, 195@)
Sequence.Clear(195@)
117@ = 1

:SYN5_26866
if 
  not Char.IsDead(48@)
goto_if_false @SYN5_26969
if 
  118@ == 0
goto_if_false @SYN5_26969
195@ = Sequence.Open()
if 
  not Char.IsDead($wuzi)
goto_if_false @SYN5_26944
Task.AchieveHeading(-1, 107.3)
Task.SetCharDecisionMaker(-1, 196@)
Task.KillCharOnFoot(-1, $wuzi)

:SYN5_26944
Sequence.Close(195@)
Char.PerformSequence(48@, 195@)
Sequence.Clear(195@)
118@ = 1

:SYN5_26969
if 
  not Char.IsDead(49@)
goto_if_false @SYN5_27086
if 
  119@ == 0
goto_if_false @SYN5_27086
195@ = Sequence.Open()
if 
  not Char.IsDead($wuzi)
goto_if_false @SYN5_27061
Task.GoStraightToCoord(-1, -1674.2, 1345.9, 16.2, MoveState.Run, -1)
Task.SetCharDecisionMaker(-1, 196@)
Task.KillCharOnFoot(-1, $wuzi)

:SYN5_27061
Sequence.Close(195@)
Char.PerformSequence(49@, 195@)
Sequence.Clear(195@)
119@ = 1

:SYN5_27086
if 
  not Char.IsDead(50@)
goto_if_false @SYN5_27241
if 
  120@ == 0
goto_if_false @SYN5_27241
Task.SetIgnoreWeaponRangeFlag(50@, True)
195@ = Sequence.Open()
if 
  not Char.IsDead($wuzi)
goto_if_false @SYN5_27216
Task.GoStraightToCoord(-1, -1643.6, 1368.7, 17.8, MoveState.Run, -1)
Task.AchieveHeading(-1, 136.5)
Task.Jump(-1, True)
Task.GoStraightToCoord(-1, -1661.5, 1354.3, 15.1, MoveState.Run, -1)
Task.KillCharOnFoot(-1, $wuzi)

:SYN5_27216
Sequence.Close(195@)
Char.PerformSequence(50@, 195@)
Sequence.Clear(195@)
120@ = 1

:SYN5_27241
if 
  not Char.IsDead($wuzi)
goto_if_false @SYN5_27318
if 
  121@ == 0
goto_if_false @SYN5_27318
195@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.SetCharDecisionMaker(-1, 196@)
Sequence.Close(195@)
Char.PerformSequence($wuzi, 195@)
Sequence.Clear(195@)
121@ = 1

:SYN5_27318
if 
  not Char.IsDead(36@)
goto_if_false @SYN5_27395
if 
  122@ == 0
goto_if_false @SYN5_27395
195@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.SetCharDecisionMaker(-1, 196@)
Sequence.Close(195@)
Char.PerformSequence(36@, 195@)
Sequence.Clear(195@)
122@ = 1

:SYN5_27395
if 
  not Char.IsDead(37@)
goto_if_false @SYN5_27472
if 
  123@ == 0
goto_if_false @SYN5_27472
195@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.SetCharDecisionMaker(-1, 196@)
Sequence.Close(195@)
Char.PerformSequence(37@, 195@)
Sequence.Clear(195@)
123@ = 1

:SYN5_27472
if 
  not Char.IsDead(38@)
goto_if_false @SYN5_27549
if 
  124@ == 0
goto_if_false @SYN5_27549
195@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.SetCharDecisionMaker(-1, 196@)
Sequence.Close(195@)
Char.PerformSequence(38@, 195@)
Sequence.Clear(195@)
124@ = 1

:SYN5_27549
return 

:SYN5_27551
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_29052
if 
  not Car.IsDead(65@)
goto_if_false @SYN5_29052
if 
  Char.IsInCar($ryder, 65@)
goto_if_false @SYN5_29052
if 
  125@ == 0
goto_if_false @SYN5_27923
Char.SetDrownsInWater($ryder, True)
195@ = Sequence.Open()
Task.CarDriveToCoord(-1, 65@, -1500.087, 1396.939, -0.7305, 15.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, -1347.703, 1319.215, 0.0282, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, -1250.07, 1178.178, -0.1243, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, -1158.0, 1033.016, -0.1089, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, -1054.175, 920.3442, 0.0405, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, -1005.599, 787.5093, 0.2581, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, -883.1418, 608.1723, -0.1191, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, -735.4338, 521.1882, -0.1478, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Sequence.Close(195@)
Char.PerformSequence($ryder, 195@)
Sequence.Clear(195@)
125@ = 1
return 

:SYN5_27923
if 
  125@ == 1
goto_if_false @SYN5_28266
$task_status = Char.GetScriptTaskStatus($ryder, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_28266
195@ = Sequence.Open()
Task.CarDriveToCoord(-1, 65@, -572.1049, 467.9407, 0.3352, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, -404.1097, 430.3622, 0.3394, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, -233.5327, 424.5564, 0.2022, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, -63.8903, 409.6541, 0.0351, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 106.3031, 423.1877, -0.0997, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 274.607, 452.5373, 0.0679, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 442.7346, 482.1971, 0.239, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 611.5419, 513.3603, 0.1773, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Sequence.Close(195@)
Char.PerformSequence($ryder, 195@)
Sequence.Clear(195@)
125@ = 2
return 

:SYN5_28266
if 
  125@ == 2
goto_if_false @SYN5_28609
$task_status = Char.GetScriptTaskStatus($ryder, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_28609
195@ = Sequence.Open()
Task.CarDriveToCoord(-1, 65@, 779.744, 547.2416, 0.1644, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 945.0496, 589.466, 0.0676, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 1113.117, 620.2682, -0.0797, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 1282.496, 600.009, -0.1302, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 1451.739, 568.6847, -0.1388, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 1620.593, 536.4412, -0.0845, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 1789.897, 510.063, -0.3449, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 1959.206, 491.1599, -0.0624, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Sequence.Close(195@)
Char.PerformSequence($ryder, 195@)
Sequence.Clear(195@)
125@ = 3
return 

:SYN5_28609
if 
  125@ == 3
goto_if_false @SYN5_28898
$task_status = Char.GetScriptTaskStatus($ryder, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_28898
195@ = Sequence.Open()
Task.CarDriveToCoord(-1, 65@, 2130.127, 479.1175, 0.132, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 2301.982, 467.9901, -0.1513, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 2471.664, 456.259, -0.0586, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 2641.982, 442.9174, 0.4767, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 2812.749, 425.1894, 0.0436, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 65@, 2982.472, 401.9557, -0.7104, 100.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarTempAction(-1, 65@, TempAction.GoForward, 860000)
Sequence.Close(195@)
Char.PerformSequence($ryder, 195@)
Sequence.Clear(195@)
125@ = 4

:SYN5_28898
if 
  Char.LocateAnyMeansCar2D($scplayer, 65@, 50.0, 50.0, False)
goto_if_false @SYN5_28946
Boat.SetCruiseSpeed(65@, 40.0)
goto @SYN5_29052

:SYN5_28946
if 
  Char.LocateAnyMeansCar2D($scplayer, 65@, 100.0, 100.0, False)
goto_if_false @SYN5_28994
Boat.SetCruiseSpeed(65@, 30.0)
goto @SYN5_29052

:SYN5_28994
if 
  Char.LocateAnyMeansCar2D($scplayer, 65@, 180.0, 180.0, False)
goto_if_false @SYN5_29042
Boat.SetCruiseSpeed(65@, 20.0)
goto @SYN5_29052

:SYN5_29042
Boat.SetCruiseSpeed(65@, 10.0)

:SYN5_29052
return 

:SYN5_29054
if 
  126@ == 1
goto_if_false @SYN5_29118
if 
  not Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @SYN5_29118
Blip.Remove(79@)
79@ = Blip.AddForChar($cesar)
Blip.SetAsFriendly(79@, True)
126@ = 0

:SYN5_29118
if 
  126@ == 0
goto_if_false @SYN5_29239
if 
  Char.LocateAnyMeansChar3D($scplayer, $cesar, 8.0, 8.0, 8.0, False)
goto_if_false @SYN5_29239
if 
  not Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @SYN5_29203
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $cesar)

:SYN5_29203
Blip.Remove(79@)
if 
  not Char.IsDead(35@)
goto_if_false @SYN5_29232
79@ = Blip.AddForChar(35@)

:SYN5_29232
126@ = 1

:SYN5_29239
return 

:SYN5_29241
129@ = Math.RandomIntInRange(1, 37)
if 
  129@ == 1
goto_if_false @SYN5_29283
Car.CustomPlateForNextCar(128@, "GOT_M00_")

:SYN5_29283
if 
  129@ == 2
goto_if_false @SYN5_29316
Car.CustomPlateForNextCar(128@, "M00TV_4U")

:SYN5_29316
if 
  129@ == 3
goto_if_false @SYN5_29349
Car.CustomPlateForNextCar(128@, "MATHEW_2")

:SYN5_29349
if 
  129@ == 4
goto_if_false @SYN5_29382
Car.CustomPlateForNextCar(128@, "D4_DEW0R")

:SYN5_29382
if 
  129@ == 5
goto_if_false @SYN5_29415
Car.CustomPlateForNextCar(128@, "D0DE_777")

:SYN5_29415
if 
  129@ == 6
goto_if_false @SYN5_29448
Car.CustomPlateForNextCar(128@, "DAM0_666")

:SYN5_29448
if 
  129@ == 7
goto_if_false @SYN5_29481
Car.CustomPlateForNextCar(128@, "C0NEY_88")

:SYN5_29481
if 
  129@ == 8
goto_if_false @SYN5_29514
Car.CustomPlateForNextCar(128@, "PRE4CHER")

:SYN5_29514
if 
  129@ == 9
goto_if_false @SYN5_29547
Car.CustomPlateForNextCar(128@, "DBP_4NDY")

:SYN5_29547
if 
  129@ == 10
goto_if_false @SYN5_29580
Car.CustomPlateForNextCar(128@, "EV1L_SLY")

:SYN5_29580
if 
  129@ == 11
goto_if_false @SYN5_29613
Car.CustomPlateForNextCar(128@, "N1_R4V3N")

:SYN5_29613
if 
  129@ == 12
goto_if_false @SYN5_29646
Car.CustomPlateForNextCar(128@, "D1VX_Z00")

:SYN5_29646
if 
  129@ == 13
goto_if_false @SYN5_29678
Car.CustomPlateForNextCar(128@, "MR_B3NN")

:SYN5_29678
if 
  129@ == 14
goto_if_false @SYN5_29711
Car.CustomPlateForNextCar(128@, "R3D_R4SP")

:SYN5_29711
if 
  129@ == 15
goto_if_false @SYN5_29744
Car.CustomPlateForNextCar(128@, "LA_B0MBA")

:SYN5_29744
if 
  129@ == 16
goto_if_false @SYN5_29777
Car.CustomPlateForNextCar(128@, "L3337_0G")

:SYN5_29777
if 
  129@ == 17
goto_if_false @SYN5_29810
Car.CustomPlateForNextCar(128@, "BUDD4H_X")

:SYN5_29810
if 
  129@ == 18
goto_if_false @SYN5_29843
Car.CustomPlateForNextCar(128@, "T3H_BUCK")

:SYN5_29843
if 
  129@ == 19
goto_if_false @SYN5_29876
Car.CustomPlateForNextCar(128@, "CHUNKY_1")

:SYN5_29876
if 
  129@ == 20
goto_if_false @SYN5_29909
Car.CustomPlateForNextCar(128@, "EV1L_BNZ")

:SYN5_29909
if 
  129@ == 21
goto_if_false @SYN5_29942
Car.CustomPlateForNextCar(128@, "S4ND_M4N")

:SYN5_29942
if 
  129@ == 22
goto_if_false @SYN5_29975
Car.CustomPlateForNextCar(128@, "RKK_DBP1")

:SYN5_29975
if 
  129@ == 23
goto_if_false @SYN5_30008
Car.CustomPlateForNextCar(128@, "RE1_K0KU")

:SYN5_30008
if 
  129@ == 24
goto_if_false @SYN5_30041
Car.CustomPlateForNextCar(128@, "S3XY_JUD")

:SYN5_30041
if 
  129@ == 25
goto_if_false @SYN5_30074
Car.CustomPlateForNextCar(128@, "SUNRA_93")

:SYN5_30074
if 
  129@ == 26
goto_if_false @SYN5_30107
Car.CustomPlateForNextCar(128@, "UG_FUX69")

:SYN5_30107
if 
  129@ == 27
goto_if_false @SYN5_30140
Car.CustomPlateForNextCar(128@, "LI0N_CUM")

:SYN5_30140
if 
  129@ == 28
goto_if_false @SYN5_30173
Car.CustomPlateForNextCar(128@, "RKK_PWND")

:SYN5_30173
if 
  129@ == 29
goto_if_false @SYN5_30206
Car.CustomPlateForNextCar(128@, "HAZE_B0B")

:SYN5_30206
if 
  129@ == 30
goto_if_false @SYN5_30239
Car.CustomPlateForNextCar(128@, "T3H_FLUF")

:SYN5_30239
if 
  129@ == 31
goto_if_false @SYN5_30272
Car.CustomPlateForNextCar(128@, "BM_4NDY_")

:SYN5_30272
if 
  129@ == 32
goto_if_false @SYN5_30305
Car.CustomPlateForNextCar(128@, "BM_D34N_")

:SYN5_30305
if 
  129@ == 33
goto_if_false @SYN5_30338
Car.CustomPlateForNextCar(128@, "BM_L4C3Y")

:SYN5_30338
if 
  129@ == 34
goto_if_false @SYN5_30371
Car.CustomPlateForNextCar(128@, "BM_D3V__")

:SYN5_30371
if 
  129@ == 35
goto_if_false @SYN5_30404
Car.CustomPlateForNextCar(128@, "NU_SK00L")

:SYN5_30404
if 
  129@ == 36
goto_if_false @SYN5_30437
Car.CustomPlateForNextCar(128@, "G4L_AVET")

:SYN5_30437
if 
  129@ == 37
goto_if_false @SYN5_30470
Car.CustomPlateForNextCar(128@, "M0J0_J0J")

:SYN5_30470
return 

:SYN5_30472
if 
  132@ == 1
goto_if_false @SYN5_30519
set_lvar_text_label 136@s = 'SYN5_AA'
set_lvar_int_to_constant 168@ = 4200
184@ = 1

:SYN5_30519
if 
  132@ == 2
goto_if_false @SYN5_30853
set_lvar_text_label 136@s = 'SYN5_BA'
set_lvar_text_label 138@s = 'SYN5_BB'
set_lvar_text_label 140@s = 'SYN5_BC'
set_lvar_text_label 142@s = 'SYN5_BD'
set_lvar_text_label 144@s = 'SYN5_BE'
set_lvar_text_label 146@s = 'SYN5_BF'
set_lvar_text_label 148@s = 'MOBRING'
set_lvar_text_label 150@s = 'SYN5_BG'
set_lvar_text_label 152@s = 'SYN5_BH'
set_lvar_text_label 154@s = 'SYN5_BJ'
set_lvar_text_label 156@s = 'SYN5_BK'
set_lvar_text_label 158@s = 'SYN5_BL'
set_lvar_text_label 160@s = 'SYN5_BM'
set_lvar_text_label 162@s = 'SYN5_BN'
set_lvar_int_to_constant 168@ = 4240
set_lvar_int_to_constant 169@ = 4201
set_lvar_int_to_constant 170@ = 4202
set_lvar_int_to_constant 171@ = 4241
set_lvar_int_to_constant 172@ = 4203
set_lvar_int_to_constant 173@ = 4204
set_lvar_int_to_constant 174@ = 23803
set_lvar_int_to_constant 175@ = 4205
set_lvar_int_to_constant 176@ = 4206
set_lvar_int_to_constant 177@ = 4207
set_lvar_int_to_constant 178@ = 4208
set_lvar_int_to_constant 179@ = 4209
set_lvar_int_to_constant 180@ = 4210
set_lvar_int_to_constant 181@ = 4236
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_30853
if 
  132@ == 3
goto_if_false @SYN5_30989
set_lvar_text_label 138@s = 'SYN5_CB'
set_lvar_text_label 140@s = 'SYN5_CC'
set_lvar_text_label 142@s = 'SYN5_CD'
set_lvar_text_label 144@s = 'SYN5_CE'
set_lvar_text_label 146@s = 'SYN5_CF'
set_lvar_int_to_constant 169@ = 4212
set_lvar_int_to_constant 170@ = 4213
set_lvar_int_to_constant 171@ = 4214
set_lvar_int_to_constant 172@ = 4215
set_lvar_int_to_constant 173@ = 4216
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_30989
if 
  132@ == 4
goto_if_false @SYN5_31125
set_lvar_text_label 136@s = 'SYN5_DA'
set_lvar_text_label 138@s = 'SYN5_DB'
set_lvar_text_label 140@s = 'SYN5_DC'
set_lvar_text_label 142@s = 'SYN5_DD'
set_lvar_text_label 144@s = 'SYN5_DE'
set_lvar_int_to_constant 168@ = 4217
set_lvar_int_to_constant 169@ = 4218
set_lvar_int_to_constant 170@ = 4219
set_lvar_int_to_constant 171@ = 4220
set_lvar_int_to_constant 172@ = 4221
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31125
if 
  132@ == 5
goto_if_false @SYN5_31239
set_lvar_text_label 136@s = 'SYN5_EA'
set_lvar_text_label 138@s = 'SYN5_EB'
set_lvar_text_label 140@s = 'SYN5_EC'
set_lvar_text_label 142@s = 'SYN5_ED'
set_lvar_int_to_constant 168@ = 4222
set_lvar_int_to_constant 169@ = 4223
set_lvar_int_to_constant 170@ = 4224
set_lvar_int_to_constant 171@ = 4225
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31239
if 
  132@ == 7
goto_if_false @SYN5_31507
set_lvar_text_label 136@s = 'SYN5_GZ'
set_lvar_text_label 140@s = 'SYN5_GC'
set_lvar_text_label 142@s = 'SYN5_GD'
set_lvar_text_label 144@s = 'SYN5_GE'
set_lvar_text_label 150@s = 'SYN5_GH'
set_lvar_text_label 152@s = 'SYN5_GJ'
set_lvar_text_label 154@s = 'SYN5_GK'
set_lvar_text_label 156@s = 'SYN5_GL'
set_lvar_text_label 158@s = 'SYN5_GM'
set_lvar_text_label 160@s = 'SYN5_GX'
set_lvar_text_label 162@s = 'SYN5_GW'
set_lvar_int_to_constant 168@ = 4267
set_lvar_int_to_constant 170@ = 4228
set_lvar_int_to_constant 171@ = 4242
set_lvar_int_to_constant 172@ = 4243
set_lvar_int_to_constant 175@ = 4244
set_lvar_int_to_constant 176@ = 4229
set_lvar_int_to_constant 177@ = 4245
set_lvar_int_to_constant 178@ = 4246
set_lvar_int_to_constant 179@ = 4230
set_lvar_int_to_constant 180@ = 4265
set_lvar_int_to_constant 181@ = 4264
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31507
if 
  132@ == 8
goto_if_false @SYN5_31665
set_lvar_text_label 136@s = 'SYN5_HH'
set_lvar_text_label 138@s = 'SYN5_HA'
set_lvar_text_label 140@s = 'SYN5_HB'
set_lvar_text_label 142@s = 'SYN5_HC'
set_lvar_text_label 144@s = 'SYN5_HK'
set_lvar_text_label 146@s = 'SYN5_HL'
set_lvar_int_to_constant 168@ = 4232
set_lvar_int_to_constant 169@ = 4247
set_lvar_int_to_constant 170@ = 4248
set_lvar_int_to_constant 171@ = 4237
set_lvar_int_to_constant 172@ = 4233
set_lvar_int_to_constant 173@ = 4250
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31665
if 
  132@ == 9
goto_if_false @SYN5_31757
set_lvar_text_label 136@s = 'SYN5_JA'
set_lvar_text_label 138@s = 'SYN5_JB'
set_lvar_text_label 140@s = 'SYN5_JC'
set_lvar_int_to_constant 168@ = 4261
set_lvar_int_to_constant 169@ = 4262
set_lvar_int_to_constant 170@ = 4263
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31757
if 
  132@ == 10
goto_if_false @SYN5_31914
set_lvar_text_label 136@s = 'MOBRING'
set_lvar_text_label 138@s = 'SYN5_KA'
set_lvar_text_label 140@s = 'SYN5_KB'
set_lvar_text_label 142@s = 'SYN5_KC'
set_lvar_text_label 144@s = 'SYN5_KD'
set_lvar_text_label 146@s = 'SYN5_KE'
set_lvar_int_to_constant 168@ = 23803
set_lvar_int_to_constant 169@ = 4251
set_lvar_int_to_constant 170@ = 4234
set_lvar_int_to_constant 171@ = 4252
set_lvar_int_to_constant 172@ = 4253
set_lvar_int_to_constant 173@ = 4235
184@ = 6

:SYN5_31914
if 
  132@ == 11
goto_if_false @SYN5_31983
set_lvar_text_label 136@s = 'SYN5_HE'
set_lvar_text_label 138@s = 'SYN5_HF'
set_lvar_int_to_constant 168@ = 4249
set_lvar_int_to_constant 169@ = 4260
184@ = 2

:SYN5_31983
if 
  132@ == 14
goto_if_false @SYN5_32105
set_lvar_text_label 136@s = 'CESX_BA'
set_lvar_text_label 138@s = 'CESX_BB'
set_lvar_text_label 140@s = 'CESX_BC'
set_lvar_text_label 142@s = 'CESX_BD'
set_lvar_int_to_constant 168@ = 42406
set_lvar_int_to_constant 169@ = 42407
set_lvar_int_to_constant 170@ = 42408
set_lvar_int_to_constant 171@ = 42409
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_32105
set_lvar_int_to_lvar_int 187@ = 134@
185@ = 0
186@ = 0
188@ = 1
return 

:SYN5_32136
if or
  132@ == 1
  132@ == 2
  132@ == 5
  132@ == 7
  132@ == 8
  132@ == 10
goto_if_false @SYN5_32243
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32236
gosub @SYN5_33223
gosub @SYN5_33330
gosub @SYN5_33484
goto @SYN5_32243

:SYN5_32236
132@ = 0

:SYN5_32243
if or
  132@ == 3
  132@ == 4
goto_if_false @SYN5_32376
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32369
gosub @SYN5_33223
gosub @SYN5_33330
if 
  not Char.IsDead($cesar)
goto_if_false @SYN5_32331
gosub @SYN5_33484
goto @SYN5_32362

:SYN5_32331
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(136@(134@,16s))
185@ = 0
186@ = 0

:SYN5_32362
goto @SYN5_32376

:SYN5_32369
132@ = 0

:SYN5_32376
if 
  132@ == 9
goto_if_false @SYN5_32502
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32495
gosub @SYN5_33223
gosub @SYN5_33330
if 
  not Char.IsDead(67@)
goto_if_false @SYN5_32457
gosub @SYN5_33484
goto @SYN5_32488

:SYN5_32457
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(136@(134@,16s))
185@ = 0
186@ = 0

:SYN5_32488
goto @SYN5_32502

:SYN5_32495
132@ = 0

:SYN5_32502
if 
  132@ == 11
goto_if_false @SYN5_32628
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32621
gosub @SYN5_33223
gosub @SYN5_33330
if 
  not Char.IsDead($ryder)
goto_if_false @SYN5_32583
gosub @SYN5_33484
goto @SYN5_32614

:SYN5_32583
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(136@(134@,16s))
185@ = 0
186@ = 0

:SYN5_32614
goto @SYN5_32628

:SYN5_32621
132@ = 0

:SYN5_32628
if 
  87@ == 5
goto_if_false @SYN5_33221
if 
  88@ == 0
goto_if_false @SYN5_33221
if 
  Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @SYN5_32690
goto @SYN5_32807

:SYN5_32690
if 
  14 > 132@
goto_if_false @SYN5_32807
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32734
134@ += 1

:SYN5_32734
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(136@(134@,16s))
Text.ClearPrints
set_lvar_int_to_lvar_int 189@ = 132@
set_lvar_int_to_lvar_int 190@ = 134@
132@ = 14
134@ = Math.RandomIntInRange(0, 4)
set_lvar_int_to_lvar_int 135@ = 134@
135@ += 1
gosub @SYN5_30472

:SYN5_32807
if 
  132@ == 14
goto_if_false @SYN5_32998
if 
  not Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @SYN5_32975
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32945
gosub @SYN5_33223
gosub @SYN5_33330
if 
  not Char.IsDead($cesar)
goto_if_false @SYN5_32907
gosub @SYN5_33484
goto @SYN5_32938

:SYN5_32907
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(136@(134@,16s))
185@ = 0
186@ = 0

:SYN5_32938
goto @SYN5_32968

:SYN5_32945
Text.Print('SYN5_10', 7000, 1)
132@ = 15

:SYN5_32968
goto @SYN5_32998

:SYN5_32975
Text.Print('SYN5_10', 7000, 1)
132@ = 15

:SYN5_32998
if 
  132@ == 15
goto_if_false @SYN5_33051
if 
  Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @SYN5_33051
132@ = 16
134@ = 0
Text.ClearPrints

:SYN5_33051
if 
  132@ == 16
goto_if_false @SYN5_33221
if 
  Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @SYN5_33166
TIMERB = 0
set_lvar_int_to_lvar_int 132@ = 189@
set_lvar_int_to_lvar_int 134@ = 190@
gosub @SYN5_30472
if 
  189@ == 0
goto_if_false @SYN5_33159
Text.PrintNow('SYN5_06', 4000, 1)
TIMERB = 0

:SYN5_33159
goto @SYN5_33221

:SYN5_33166
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(136@(134@,16s))
132@ = 14
134@ = Math.RandomIntInRange(0, 4)
set_lvar_int_to_lvar_int 135@ = 134@
135@ += 1
gosub @SYN5_30472

:SYN5_33221
return 

:SYN5_33223
if 
  is_int_lvar_greater_than_int_lvar 184@ > 187@
goto_if_false @SYN5_33328
if 
  185@ == 0
goto_if_false @SYN5_33285
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 168@(187@,16i))
187@ += 1
185@ = 1

:SYN5_33285
if 
  186@ == 0
goto_if_false @SYN5_33328
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 168@(187@,16i))
187@ += 1
186@ = 1

:SYN5_33328
return 

:SYN5_33330
if 
  188@ == 1
goto_if_false @SYN5_33406
if 
  185@ == 1
goto_if_false @SYN5_33406
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @SYN5_33406
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(136@(134@,16s), 4500, 1)
185@ = 2

:SYN5_33406
if 
  188@ == 2
goto_if_false @SYN5_33482
if 
  186@ == 1
goto_if_false @SYN5_33482
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @SYN5_33482
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow(136@(134@,16s), 4500, 1)
186@ = 2

:SYN5_33482
return 

:SYN5_33484
if 
  185@ == 2
goto_if_false @SYN5_33547
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @SYN5_33547
Text.ClearThisPrint(136@(134@,16s))
134@ += 1
188@ = 2
185@ = 0

:SYN5_33547
if 
  186@ == 2
goto_if_false @SYN5_33610
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @SYN5_33610
Text.ClearThisPrint(136@(134@,16s))
134@ += 1
188@ = 1
186@ = 0

:SYN5_33610
return 

//-------------Mission 65---------------
// Originally: T-Bone Mendez

:DRIV2
script_name 'DRIV2'
gosub @DRIV2_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRIV2_38
gosub @DRIV2_12867

:DRIV2_38
gosub @DRIV2_12949
terminate_this_script 

:DRIV2_47
Stat.RegisterMissionGiven
Text.LoadMissionText('FARLIE2')
$onmission = 1
wait 0
37@ = 4
$d2_num_packages_collected = 0
119@ = 0

:DRIV2_92
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_262
123@(119@,4i) = 0
175@(119@,4i) = 0
130@(119@,4i) = 0
139@(119@,4i) = 0
143@(119@,4i) = 0
147@(119@,4i) = 0
151@(119@,4i) = 0
66@(119@,4i) = 1000
70@(119@,4i) = 1000
159@(119@,4i) = 0
62@(119@,4f) = 20.0
115@(119@,4i) = 0
119@ += 1
goto @DRIV2_92

:DRIV2_262
90@ = -2730.14
91@ = 84.24
92@ = 3.04
78@ = -2600.53
82@ = 1337.91
86@ = 5.6
79@ = -2855.52
83@ = 719.95
87@ = 26.84
80@ = -1897.94
84@ = -576.43
88@ = 22.99
81@ = -2811.49
85@ = -326.14
89@ = 5.72
93@ = -2622.49
94@ = 1406.6
95@ = 6.15
122@ = 0
127@ = 0
128@ = 0
129@ = 0
134@ = 0
135@ = 1
136@ = 2
137@ = 3
138@ = 4
163@ = 0
164@ = 1
165@ = 2
155@ = 0
156@ = 0
157@ = 0
158@ = 0
166@ = 0
75@ = -2143.27
76@ = 918.38
77@ = 79.42
167@ = 0
168@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
179@ = 0
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:DRIV2_655
if 
  Camera.GetFadingStatus
goto_if_false @DRIV2_679
wait 0
goto @DRIV2_655

:DRIV2_679
Streaming.SetAreaVisible(3)
Cutscene.Load('FARL_2A')

:DRIV2_694
if 
  not Cutscene.HasLoaded
goto_if_false @DRIV2_718
wait 0
goto @DRIV2_694

:DRIV2_718
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:DRIV2_727
if 
  not Cutscene.HasFinished
goto_if_false @DRIV2_751
wait 0
goto @DRIV2_727

:DRIV2_751
Camera.DoFade(0, Fade.Out)

:DRIV2_757
if 
  Camera.GetFadingStatus
goto_if_false @DRIV2_781
wait 0
goto @DRIV2_757

:DRIV2_781
Cutscene.Clear
Player.SetControl($player1, False)
Streaming.SetAreaVisible(0)
Streaming.RequestModel(521)
Streaming.RequestModel(498)
Streaming.RequestModel(#KMB_PACKET)
Streaming.RequestModel(100)
Streaming.RequestModel(47)
Streaming.RequestModel(352)

:DRIV2_822
if or
  not Streaming.HasModelLoaded(521)
  not Streaming.HasModelLoaded(498)
  not Streaming.HasModelLoaded(#KMB_PACKET)
  not Streaming.HasModelLoaded(100)
  not Streaming.HasModelLoaded(47)
  not Streaming.HasModelLoaded(352)
goto_if_false @DRIV2_872
wait 0
goto @DRIV2_822

:DRIV2_872
Streaming.RequestAnimation("BIKES")
Streaming.RequestAnimation("MISC")

:DRIV2_889
if or
  not Streaming.HasAnimationLoaded("BIKES")
  not Streaming.HasAnimationLoaded("MISC")
goto_if_false @DRIV2_928
wait 0
goto @DRIV2_889

:DRIV2_928
Streaming.LoadScene(-2625.26, 1407.32, 5.62)
Char.SetCoordinates($scplayer, -2625.26, 1407.32, 5.62)
Char.SetHeading($scplayer, 224.0)
Garage.ChangeType('TBON', GarageType.ForScriptToOpenAndClose)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Camera.SetFadingColor(0, 0, 0)
wait 500
Camera.DoFade(1500, Fade.In)
if 
  179@ == 1
goto_if_false @DRIV2_1206
34@ = Car.Create(498, 0.0, 0.0, -100.0)
184@ = Blip.AddForCar(34@)
119@ = 0

:DRIV2_1075
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_1206
38@(119@,4i) = Object.Create(#KMB_PACKET, 0.0, 0.0, -100.0)
180@(119@,4i) = Blip.AddForObject(38@(119@,4i))
54@(119@,4i) = Char.Create(PedType.Mission1, 100, 0.0, 0.0, -100.0)
58@(119@,4i) = Car.Create(521, 0.0, 0.0, -100.0)
119@ += 1
goto @DRIV2_1075

:DRIV2_1206
Path.SwitchRoadsOff(-2014.82, 181.4, -13.0, -1614.82, 581.4, 47.0)
184@ = Blip.AddForCoord(-1814.82, 381.4, 17.09)
Blip.SetCoordAppearance(184@, 1)
Text.PrintNow('DRV3_11', 10000, 0)

:DRIV2_1281
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DRIV2_1307
goto @DRIV2_12885

:DRIV2_1307
if 
  127@ <> 1
goto_if_false @DRIV2_2338
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRIV2_1374
36@ = Char.StoreCarIsIn($scplayer)
if 
  174@ <> 1
goto_if_false @DRIV2_1374
174@ = 1

:DRIV2_1374
if and
  122@ <> 1
  Char.LocateAnyMeans2D($scplayer, -1814.82, 381.4, 200.0, 200.0, False)
goto_if_false @DRIV2_1438
Blip.Remove(184@)
gosub @DRIV2_3466
122@ = 1

:DRIV2_1438
if 
  122@ == 1
goto_if_false @DRIV2_2338
121@ = Streaming.GetAreaVisible()
if 
  121@ == 0
goto_if_false @DRIV2_2249
119@ = 0

:DRIV2_1486
if and
  is_int_lvar_greater_than_int_lvar 37@ > 119@
  128@ <> 1
goto_if_false @DRIV2_1583
if 
  not Char.IsDead(54@(119@,4i))
goto_if_false @DRIV2_1569
110@ = Char.GetHighestPriorityEvent(54@(119@,4i))
if 
  is_int_lvar_equal_to_constant 110@ == 49
goto_if_false @DRIV2_1569
128@ = 1

:DRIV2_1569
119@ += 1
goto @DRIV2_1486

:DRIV2_1583
if 
  128@ <> 1
goto_if_false @DRIV2_2249
if and
  129@ <> 1
  World.IsProjectileInArea(-1824.82, 371.4, 12.09, -1804.82, 391.4, 22.09)
goto_if_false @DRIV2_1665
129@ = 1
TIMERA = 0

:DRIV2_1665
if 
  129@ == 1
goto_if_false @DRIV2_2249
119@ = 0

:DRIV2_1690
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_2223
if 
  not Char.IsDead(54@(119@,4i))
goto_if_false @DRIV2_2209
$player_x, $player_y, $player_z = Char.GetCoordinates(54@(119@,4i))
set_lvar_float_to_var_float 186@ = $player_x
186@ -= 3.0
set_lvar_float_to_var_float 187@ = $player_x
187@ += 3.0
set_lvar_float_to_var_float 188@ = $player_y
188@ -= 3.0
set_lvar_float_to_var_float 189@ = $player_y
189@ += 3.0
set_lvar_float_to_var_float 190@ = $player_z
190@ -= 3.0
set_lvar_float_to_var_float 191@ = $player_z
191@ += 3.0
if or
  World.IsExplosionInArea(ExplosionType.Grenade, 186@, 188@, 190@, 187@, 189@, 191@)
  World.IsExplosionInArea(ExplosionType.Molotov, 186@, 188@, 190@, 187@, 189@, 191@)
  World.IsExplosionInArea(ExplosionType.Rocket, 186@, 188@, 190@, 187@, 189@, 191@)
  World.IsExplosionInArea(ExplosionType.WeakRocket, 186@, 188@, 190@, 187@, 189@, 191@)
  World.IsExplosionInArea(ExplosionType.Small, 186@, 188@, 190@, 187@, 189@, 191@)
  World.IsExplosionInArea(ExplosionType.RcVehicle, 186@, 188@, 190@, 187@, 189@, 191@)
goto_if_false @DRIV2_2209
if 
  not Char.IsDead(54@)
goto_if_false @DRIV2_2019
Task.Die(54@)

:DRIV2_2019
if 
  not Char.IsDead(55@)
goto_if_false @DRIV2_2040
Task.Die(55@)

:DRIV2_2040
if 
  not Char.IsDead(56@)
goto_if_false @DRIV2_2061
Task.Die(56@)

:DRIV2_2061
if 
  not Char.IsDead(57@)
goto_if_false @DRIV2_2082
Task.Die(57@)

:DRIV2_2082
if 
  not Car.IsDead(58@)
goto_if_false @DRIV2_2103
Car.Explode(58@)

:DRIV2_2103
if 
  not Car.IsDead(59@)
goto_if_false @DRIV2_2124
Car.Explode(59@)

:DRIV2_2124
if 
  not Car.IsDead(60@)
goto_if_false @DRIV2_2145
Car.Explode(60@)

:DRIV2_2145
if 
  not Car.IsDead(61@)
goto_if_false @DRIV2_2166
Car.Explode(61@)

:DRIV2_2166
Object.Delete(38@)
Object.Delete(39@)
Object.Delete(40@)
Object.Delete(41@)
Text.PrintNow('DRV3_9', 5000, 0)
goto @DRIV2_12867

:DRIV2_2209
119@ += 1
goto @DRIV2_1690

:DRIV2_2223
if 
  TIMERA > 2000
goto_if_false @DRIV2_2249
128@ = 1

:DRIV2_2249
if or
  Char.LocateAnyMeans2D($scplayer, -1814.82, 381.4, 50.0, 50.0, False)
  128@ == 1
goto_if_false @DRIV2_2338
Blip.Remove(184@)
gosub @DRIV2_9220
127@ = 1
TIMERA = 0
Text.PrintHelpForever('DRV3_H')
TIMERB = 0

:DRIV2_2338
if 
  127@ == 1
goto_if_false @DRIV2_3459
if 
  171@ <> 1
goto_if_false @DRIV2_2402
if 
  TIMERB > 12000
goto_if_false @DRIV2_2402
Text.ClearHelp
171@ = 1

:DRIV2_2402
if 
  173@ <> 1
goto_if_false @DRIV2_2642
if or
  Char.IsOnAnyBike($scplayer)
  Char.IsOnFoot($scplayer)
goto_if_false @DRIV2_2635
119@ = 0

:DRIV2_2448
if and
  is_int_lvar_greater_than_int_lvar 37@ > 119@
  173@ <> 1
goto_if_false @DRIV2_2635
if and
  Object.DoesExist(38@(119@,4i))
  123@(119@,4i) <> 1
goto_if_false @DRIV2_2621
if or
  Object.IsAttached(38@(119@,4i))
  Char.IsHoldingObject(-1, 38@(119@,4i))
goto_if_false @DRIV2_2621
if 
  Char.LocateAnyMeansObject2D($scplayer, 38@(119@,4i), 10.0, 10.0, False)
goto_if_false @DRIV2_2621
Text.PrintHelpForever('DRV3_H')
173@ = 1
if 
  171@ <> 1
goto_if_false @DRIV2_2614
171@ = 1

:DRIV2_2614
TIMERB = 0

:DRIV2_2621
119@ += 1
goto @DRIV2_2448

:DRIV2_2635
goto @DRIV2_2688

:DRIV2_2642
if 
  172@ <> 1
goto_if_false @DRIV2_2688
if 
  TIMERB > 12000
goto_if_false @DRIV2_2688
Text.ClearHelp
172@ = 1

:DRIV2_2688
gosub @DRIV2_4732
gosub @DRIV2_6146
gosub @DRIV2_6715
gosub @DRIV2_6912
gosub @DRIV2_7110
if and
  155@ <> 1
  166@ <> 1
goto_if_false @DRIV2_2899
if 
  TIMERA > 280000
goto_if_false @DRIV2_2899
gosub @DRIV2_8109
155@ = 1
if or
  is_int_lvar_equal_to_int_lvar 130@ == 138@
  is_int_lvar_equal_to_int_lvar 131@ == 138@
  is_int_lvar_equal_to_int_lvar 132@ == 138@
  is_int_lvar_equal_to_int_lvar 133@ == 138@
goto_if_false @DRIV2_2899
set_lvar_int_to_lvar_int 192@ = 37@
sub_int_var_from_int_lvar 192@ -= $d2_num_packages_collected
if 
  192@ > 1
goto_if_false @DRIV2_2883
Text.PrintNow('DRV3_5', 10000, 0)
goto @DRIV2_2899

:DRIV2_2883
Text.PrintNow('DRV3_6', 10000, 0)

:DRIV2_2899
gosub @DRIV2_8280
gosub @DRIV2_7295
gosub @DRIV2_8654
gosub @DRIV2_7865
119@ = 0

:DRIV2_2934
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_3128
if 
  not Char.IsDead(54@(119@,4i))
goto_if_false @DRIV2_3114
111@(119@,4i) = Char.GetScriptTaskStatus(54@(119@,4i), -1)
if and
  115@(119@,4i) == 0
  is_int_lvar_equal_to_constant 111@(119@,4i) == 7
goto_if_false @DRIV2_3048
Char.SetRelationship(54@(119@,4i), RelationshipType.Hate, PedType.Player1)
115@(119@,4i) = 1

:DRIV2_3048
if and
  115@(119@,4i) == 1
  not is_int_lvar_equal_to_constant 111@(119@,4i) == 7
goto_if_false @DRIV2_3114
Char.ClearAllRelationships(54@(119@,4i), RelationshipType.Hate)
Char.ClearAllRelationships(54@(119@,4i), RelationshipType.Dislike)
115@(119@,4i) = 0

:DRIV2_3114
119@ += 1
goto @DRIV2_2934

:DRIV2_3128
if and
  is_int_var_equal_to_int_lvar $d2_num_packages_collected == 37@
  166@ <> 1
goto_if_false @DRIV2_3191
185@ = Blip.AddForCoord(93@, 94@, 95@)
Text.PrintNow('DRV3_10', 7000, 0)
166@ = 1

:DRIV2_3191
if 
  166@ == 1
goto_if_false @DRIV2_3265
if 
  Char.LocateAnyMeans3D($scplayer, 93@, 94@, 95@, 4.0, 4.0, 2.0, True)
goto_if_false @DRIV2_3265
gosub @DRIV2_11200
goto @DRIV2_12885

:DRIV2_3265
if 
  155@ == 1
goto_if_false @DRIV2_3363
gosub @DRIV2_8485
if 
  156@ == 1
goto_if_false @DRIV2_3363
ENTEXT_63()
if 
  $player_is_completely_safe == 1
goto_if_false @DRIV2_3340
gosub @DRIV2_11715

:DRIV2_3340
Text.PrintNow('DRV3_7', 5000, 0)
goto @DRIV2_12867

:DRIV2_3363
gosub @DRIV2_9032
if 
  157@ == 1
goto_if_false @DRIV2_3411
Text.PrintNow('DRV3_8', 5000, 0)
goto @DRIV2_12867

:DRIV2_3411
gosub @DRIV2_9121
if 
  158@ == 1
goto_if_false @DRIV2_3459
Text.PrintNow('DRV3_9', 5000, 0)
goto @DRIV2_12867

:DRIV2_3459
goto @DRIV2_1281

:DRIV2_3466
World.ClearArea(-1814.82, 381.4, 17.09, 100.0, True)
Car.SetModelComponents(498, 0, 0)
34@ = Car.Create(498, -1814.82, 381.4, 9.96)
Car.SetHeading(34@, 33.27)
Car.PopDoor(34@, CarDoor.LeftRearDoor, False)
Car.OpenDoor(34@, CarDoor.RightRearDoor)
Car.SetProofs(34@, True, True, True, True, True)
184@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(184@, True)
58@ = Car.Create(521, -1814.86, 376.0, 15.68)
Car.SetHeading(58@, 26.65)
59@ = Car.Create(521, -1817.44, 380.33, 15.68)
Car.SetHeading(59@, 23.76)
60@ = Car.Create(521, -1818.09, 377.08, 15.68)
Car.SetHeading(60@, 32.17)
61@ = Car.Create(521, -1816.66, 374.73, 15.68)
Car.SetHeading(61@, 30.21)
119@ = 0

:DRIV2_3717
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_3783
Car.SetOnlyDamagedByPlayer(58@(119@,4i), True)
Car.SetCanBurstTires(58@(119@,4i), False)
Car.FreezePosition(58@(119@,4i), True)
119@ += 1
goto @DRIV2_3717

:DRIV2_3783
35@ = Car.Create(521, -1819.01, 386.28, 16.58)
Car.SetHeading(35@, 49.56)
Car.SetOnlyDamagedByPlayer(35@, True)
Car.SetCanBurstTires(35@, False)
54@ = Char.Create(PedType.Mission1, 100, -1811.85, 375.88, 15.68)
Char.SetHeading(54@, 27.32)
55@ = Char.CreateInsideCar(59@, PedType.Mission1, 100)
56@ = Char.CreateInsideCar(60@, PedType.Mission1, 47)
57@ = Char.CreateInsideCar(61@, PedType.Mission1, 47)
193@ = DecisionMakerChar.Copy(-1)
DecisionMakerChar.AddEventResponse(193@, 9, 251, 100.0, 100.0, 100.0, 100.0, True, False)
119@ = 0

:DRIV2_3948
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_4073
if 
  not Char.IsDead(54@(119@,4i))
goto_if_false @DRIV2_4059
Char.SetDecisionMaker(54@(119@,4i), 193@)
Char.GiveWeapon(54@(119@,4i), WeaponType.MicroUzi, 99999)
Char.SetCanBeKnockedOffBike(54@(119@,4i), 2)
Char.SetOnlyDamagedByPlayer(54@(119@,4i), True)
Char.ClearAllRelationships(54@(119@,4i), RelationshipType.Hate)
Char.ClearAllRelationships(54@(119@,4i), RelationshipType.Dislike)

:DRIV2_4059
119@ += 1
goto @DRIV2_3948

:DRIV2_4073
119@ = 0

:DRIV2_4080
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_4246
if 
  not Char.IsDead(54@(119@,4i))
goto_if_false @DRIV2_4193
if 
  119@ == 0
goto_if_false @DRIV2_4174
Char.SetProofs(54@(119@,4i), True, True, True, True, True)
Char.SetVisible(54@(119@,4i), False)
goto @DRIV2_4193

:DRIV2_4174
Char.SetProofs(54@(119@,4i), False, True, True, True, True)

:DRIV2_4193
if 
  not Car.IsDead(58@(119@,4i))
goto_if_false @DRIV2_4232
Car.SetProofs(58@(119@,4i), True, True, True, True, True)

:DRIV2_4232
119@ += 1
goto @DRIV2_4080

:DRIV2_4246
Car.SetProofs(35@, True, True, True, True, True)
38@ = Object.Create(#KMB_PACKET, -1812.3, 377.57, 9.34)
119@ = 0

:DRIV2_4291
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_4558
if 
  119@ <> 0
goto_if_false @DRIV2_4420
38@(119@,4i) = Object.Create(#KMB_PACKET, 0.0, 0.0, -100.0)
Object.AttachToCar(38@(119@,4i), 58@(119@,4i), 0.0, -0.9, 0.5, 0.0, 0.0, 0.0)
set_lvar_int_to_lvar_int 159@(119@,4i) = 164@
goto @DRIV2_4492

:DRIV2_4420
if 
  not Char.IsDead(54@)
goto_if_false @DRIV2_4492
Task.PickUpObject(54@, 38@, 0.0, 0.0, 0.0, 5, 16, "NULL", "NULL", 0)
set_lvar_int_to_lvar_int 159@ = 165@
Object.SetVisible(38@, False)

:DRIV2_4492
Object.SetCollision(38@(119@,4i), True)
Object.SetDynamic(38@(119@,4i), True)
Object.SetProofs(38@(119@,4i), True, True, True, True, True)
Object.SetCollisionDamageEffect(38@(119@,4i), False)
119@ += 1
goto @DRIV2_4291

:DRIV2_4558
return 

:DRIV2_4560
119@ = 0

:DRIV2_4567
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_4730
if and
  not Car.IsDead(58@(119@,4i))
  not Char.IsDead(54@(119@,4i))
goto_if_false @DRIV2_4716
if and
  Char.IsInCar(54@(119@,4i), 58@(119@,4i))
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 134@
goto_if_false @DRIV2_4716
Task.CarDriveToCoord(54@(119@,4i), 58@(119@,4i), 78@(119@,4f), 82@(119@,4f), 86@(119@,4f), 62@(119@,4f), DriveMode.Normal, 0, DrivingMode.AvoidCars)
set_lvar_int_to_lvar_int 130@(119@,4i) = 137@

:DRIV2_4716
119@ += 1
goto @DRIV2_4567

:DRIV2_4730
return 

:DRIV2_4732
119@ = 0

:DRIV2_4739
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_6106
if and
  Object.DoesExist(38@(119@,4i))
  123@(119@,4i) <> 1
goto_if_false @DRIV2_6092
if or
  Object.IsAttached(38@(119@,4i))
  Char.IsHoldingObject(-1, 38@(119@,4i))
goto_if_false @DRIV2_5857
if 
  Char.LocateAnyMeansObject3D($scplayer, 38@(119@,4i), 2.0, 2.0, 2.0, False)
goto_if_false @DRIV2_5666
if or
  Char.IsOnAnyBike($scplayer)
  Char.IsOnFoot($scplayer)
goto_if_false @DRIV2_5666
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
  167@ <> 1
goto_if_false @DRIV2_5584
104@, 105@, 108@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, -3.0, 0.0)
106@, 107@, 108@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 3.0, 0.0)
if 
  Object.IsInAngledArea2D(38@(119@,4i), 104@, 105@, 106@, 107@, 3.0, False)
goto_if_false @DRIV2_5238
if 
  Char.IsOnAnyBike($scplayer)
goto_if_false @DRIV2_5069
Task.PlayAnim($scplayer, "BIKES_SNATCH_L", "BIKES", 4.0, False, False, False, False, 220)
goto @DRIV2_5231

:DRIV2_5069
96@, 97@, 98@ = Char.GetCoordinates($scplayer)
42@(119@,4f), 46@(119@,4f), 50@(119@,4f) = Object.GetCoordinates(38@(119@,4i))
50@(119@,4f) += 0.25
if 
  is_float_lvar_greater_or_equal_to_float_lvar 98@ >= 50@(119@,4f)
goto_if_false @DRIV2_5196
Task.PlayAnim($scplayer, "PICKUP_BOX", "MISC", 4.0, False, False, False, False, 180)
goto @DRIV2_5231

:DRIV2_5196
Task.PlayAnim($scplayer, "GRAB_L", "MISC", 4.0, False, False, False, False, 180)

:DRIV2_5231
goto @DRIV2_5467

:DRIV2_5238
if 
  Char.IsOnAnyBike($scplayer)
goto_if_false @DRIV2_5305
Task.PlayAnim($scplayer, "BIKES_SNATCH_R", "BIKES", 4.0, False, False, False, False, 220)
goto @DRIV2_5467

:DRIV2_5305
96@, 97@, 98@ = Char.GetCoordinates($scplayer)
42@(119@,4f), 46@(119@,4f), 50@(119@,4f) = Object.GetCoordinates(38@(119@,4i))
50@(119@,4f) += 0.25
if 
  is_float_lvar_greater_or_equal_to_float_lvar 98@ >= 50@(119@,4f)
goto_if_false @DRIV2_5432
Task.PlayAnim($scplayer, "PICKUP_BOX", "MISC", 4.0, False, False, False, False, 180)
goto @DRIV2_5467

:DRIV2_5432
Task.PlayAnim($scplayer, "GRAB_R", "MISC", 4.0, False, False, False, False, 180)

:DRIV2_5467
42@(119@,4f), 46@(119@,4f), 50@(119@,4f) = Object.GetCoordinates(38@(119@,4i))
Object.Delete(38@(119@,4i))
Blip.Remove(180@(119@,4i))
Sound.AddOneOffSound(42@(119@,4f), 46@(119@,4f), 50@(119@,4f), 65535)
Text.PrintNow('DRV3_4', 5000, 0)
123@(119@,4i) = 1
$d2_num_packages_collected += 1
goto @DRIV2_5666

:DRIV2_5584
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @DRIV2_5626
Text.PrintNow('DRV3_3', 1, 0)
168@ = 1
goto @DRIV2_5666

:DRIV2_5626
if 
  168@ == 1
goto_if_false @DRIV2_5666
Text.PrintNow('DRV3_3', 1, 0)
168@ = 1

:DRIV2_5666
if 
  123@(119@,4i) <> 1
goto_if_false @DRIV2_5850
if 
  not Car.IsDead(58@(119@,4i))
goto_if_false @DRIV2_5850
if and
  Char.IsInCar($scplayer, 58@(119@,4i))
  Object.IsAttached(38@(119@,4i))
goto_if_false @DRIV2_5850
42@(119@,4f), 46@(119@,4f), 50@(119@,4f) = Object.GetCoordinates(38@(119@,4i))
Object.Delete(38@(119@,4i))
Blip.Remove(180@(119@,4i))
Sound.AddOneOffSound(42@(119@,4f), 46@(119@,4f), 50@(119@,4f), 65535)
Text.PrintNow('DRV3_4', 5000, 0)
123@(119@,4i) = 1
$d2_num_packages_collected += 1

:DRIV2_5850
goto @DRIV2_6011

:DRIV2_5857
if 
  Char.IsTouchingObject($scplayer, 38@(119@,4i))
goto_if_false @DRIV2_6011
if or
  Char.IsOnAnyBike($scplayer)
  Char.IsOnFoot($scplayer)
goto_if_false @DRIV2_6011
42@(119@,4f), 46@(119@,4f), 50@(119@,4f) = Object.GetCoordinates(38@(119@,4i))
Object.Delete(38@(119@,4i))
Blip.Remove(180@(119@,4i))
Sound.AddOneOffSound(42@(119@,4f), 46@(119@,4f), 50@(119@,4f), 65535)
Text.PrintNow('DRV3_4', 5000, 0)
123@(119@,4i) = 1
$d2_num_packages_collected += 1

:DRIV2_6011
if 
  123@(119@,4i) == 1
goto_if_false @DRIV2_6092
if 
  not Char.IsDead(54@(119@,4i))
goto_if_false @DRIV2_6092
Char.GiveWeapon(54@(119@,4i), WeaponType.MicroUzi, 99999)
Task.KillCharOnFoot(54@(119@,4i), $scplayer)
147@(119@,4i) = 1

:DRIV2_6092
119@ += 1
goto @DRIV2_4739

:DRIV2_6106
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
goto_if_false @DRIV2_6137
167@ = 1
goto @DRIV2_6144

:DRIV2_6137
167@ = 0

:DRIV2_6144
return 

:DRIV2_6146
119@ = 0

:DRIV2_6153
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_6713
if and
  not Car.IsDead(58@(119@,4i))
  not is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 134@
  123@(119@,4i) <> 1
goto_if_false @DRIV2_6699
66@(119@,4i) = Car.GetHealth(58@(119@,4i))
if 
  Object.IsAttached(38@(119@,4i))
goto_if_false @DRIV2_6373
if 
  Char.LocateInCarCar2D($scplayer, 58@(119@,4i), 2.0, 2.0, False)
goto_if_false @DRIV2_6366
set_lvar_int_to_lvar_int 74@ = 70@(119@,4i)
sub_int_lvar_from_int_lvar 74@ -= 66@(119@,4i)
if 
  74@ >= 2
goto_if_false @DRIV2_6366
Object.Detach(38@(119@,4i), 0.0, 0.0, 0.0, False)
set_lvar_int_to_lvar_int 159@(119@,4i) = 163@

:DRIV2_6366
goto @DRIV2_6683

:DRIV2_6373
if 
  not Char.IsDead(54@(119@,4i))
goto_if_false @DRIV2_6683
if 
  not Char.IsHoldingObject(54@(119@,4i), -1)
goto_if_false @DRIV2_6683
if 
  143@(119@,4i) <> 1
goto_if_false @DRIV2_6498
if 
  Object.DoesExist(38@(119@,4i))
goto_if_false @DRIV2_6491
Task.GoToObject(54@(119@,4i), 38@(119@,4i), -1, 1.0)
143@(119@,4i) = 1

:DRIV2_6491
goto @DRIV2_6683

:DRIV2_6498
109@ = Char.GetScriptTaskStatus(54@(119@,4i), 1762)
if 
  is_int_lvar_equal_to_constant 109@ == 7
goto_if_false @DRIV2_6641
if 
  Object.DoesExist(38@(119@,4i))
goto_if_false @DRIV2_6612
Task.PickUpObject(54@(119@,4i), 38@(119@,4i), 0.0, 0.0, 0.0, 5, 1, "NULL", "NULL", 0)
set_lvar_int_to_lvar_int 159@(119@,4i) = 165@

:DRIV2_6612
143@(119@,4i) = 0
139@(119@,4i) = 0
goto @DRIV2_6683

:DRIV2_6641
if 
  not Object.DoesExist(38@(119@,4i))
goto_if_false @DRIV2_6683
143@(119@,4i) = 0
139@(119@,4i) = 0

:DRIV2_6683
set_lvar_int_to_lvar_int 70@(119@,4i) = 66@(119@,4i)

:DRIV2_6699
119@ += 1
goto @DRIV2_6153

:DRIV2_6713
return 

:DRIV2_6715
119@ = 0

:DRIV2_6722
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_6910
if 
  Object.DoesExist(38@(119@,4i))
goto_if_false @DRIV2_6896
if and
  not Object.IsAttached(38@(119@,4i))
  not Char.IsHoldingObject(-1, 38@(119@,4i))
  Object.IsStatic(38@(119@,4i))
goto_if_false @DRIV2_6852
if 
  175@(119@,4i) <> 1
goto_if_false @DRIV2_6845
Object.FreezePosition(38@(119@,4i), True)
175@(119@,4i) = 1

:DRIV2_6845
goto @DRIV2_6896

:DRIV2_6852
if 
  175@(119@,4i) == 1
goto_if_false @DRIV2_6896
Object.FreezePosition(38@(119@,4i), False)
175@(119@,4i) = 0

:DRIV2_6896
119@ += 1
goto @DRIV2_6722

:DRIV2_6910
return 

:DRIV2_6912
119@ = 0

:DRIV2_6919
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_7108
if and
  not Car.IsDead(58@(119@,4i))
  not Char.IsDead(54@(119@,4i))
  147@(119@,4i) <> 1
goto_if_false @DRIV2_7094
if and
  Char.IsInCar(54@(119@,4i), 58@(119@,4i))
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 135@
  not Char.LocateInCar2D(54@(119@,4i), 75@, 76@, 400.0, 400.0, False)
goto_if_false @DRIV2_7094
Task.CarDriveToCoord(54@(119@,4i), 58@(119@,4i), 75@, 76@, 77@, 62@(119@,4f), DriveMode.Normal, 0, DrivingMode.AvoidCars)
set_lvar_int_to_lvar_int 130@(119@,4i) = 136@

:DRIV2_7094
119@ += 1
goto @DRIV2_6919

:DRIV2_7108
return 

:DRIV2_7110
119@ = 0

:DRIV2_7117
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_7293
if and
  not Car.IsDead(58@(119@,4i))
  not Char.IsDead(54@(119@,4i))
  147@(119@,4i) <> 1
goto_if_false @DRIV2_7279
if and
  Char.IsInCar(54@(119@,4i), 58@(119@,4i))
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 136@
  Char.LocateInCar2D(54@(119@,4i), 75@, 76@, 200.0, 200.0, False)
goto_if_false @DRIV2_7279
Task.CarDriveWander(54@(119@,4i), 58@(119@,4i), 62@(119@,4f), DrivingMode.AvoidCars)
set_lvar_int_to_lvar_int 130@(119@,4i) = 135@

:DRIV2_7279
119@ += 1
goto @DRIV2_7117

:DRIV2_7293
return 

:DRIV2_7295
119@ = 0

:DRIV2_7302
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_7863
if and
  not Car.IsDead(58@(119@,4i))
  not Char.IsDead(54@(119@,4i))
  143@(119@,4i) <> 1
  147@(119@,4i) <> 1
goto_if_false @DRIV2_7849
if 
  not Char.IsInCar(54@(119@,4i), 58@(119@,4i))
goto_if_false @DRIV2_7457
if 
  139@(119@,4i) == 0
goto_if_false @DRIV2_7450
Task.EnterCarAsDriver(54@(119@,4i), 58@(119@,4i), -1)
139@(119@,4i) = 1

:DRIV2_7450
goto @DRIV2_7849

:DRIV2_7457
if 
  139@(119@,4i) == 1
goto_if_false @DRIV2_7849
if 
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 135@
goto_if_false @DRIV2_7527
Task.CarDriveWander(54@(119@,4i), 58@(119@,4i), 62@(119@,4f), DrivingMode.AvoidCars)

:DRIV2_7527
if 
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 136@
goto_if_false @DRIV2_7588
Task.CarDriveToCoord(54@(119@,4i), 58@(119@,4i), 75@, 76@, 77@, 62@(119@,4f), DriveMode.Normal, 0, DrivingMode.AvoidCars)

:DRIV2_7588
if 
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 137@
goto_if_false @DRIV2_7661
Task.CarDriveToCoord(54@(119@,4i), 58@(119@,4i), 78@(119@,4f), 82@(119@,4f), 86@(119@,4f), 62@(119@,4f), DriveMode.Normal, 0, DrivingMode.AvoidCars)

:DRIV2_7661
if 
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 138@
goto_if_false @DRIV2_7722
Task.CarDriveToCoord(54@(119@,4i), 58@(119@,4i), 90@, 91@, 92@, 62@(119@,4f), DriveMode.Normal, 0, DrivingMode.AvoidCars)

:DRIV2_7722
if 
  Object.DoesExist(38@(119@,4i))
goto_if_false @DRIV2_7838
if 
  Char.IsHoldingObject(54@(119@,4i), 38@(119@,4i))
goto_if_false @DRIV2_7838
Char.DropObject(54@(119@,4i), False)
Object.AttachToCar(38@(119@,4i), 58@(119@,4i), 0.0, -0.9, 0.5, 0.0, 0.0, 0.0)
set_lvar_int_to_lvar_int 159@(119@,4i) = 164@

:DRIV2_7838
139@(119@,4i) = 0

:DRIV2_7849
119@ += 1
goto @DRIV2_7302

:DRIV2_7863
return 

:DRIV2_7865
119@ = 0

:DRIV2_7872
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_8107
if and
  not Car.IsDead(58@(119@,4i))
  not Char.IsDead(54@(119@,4i))
  147@(119@,4i) == 1
goto_if_false @DRIV2_8093
if 
  151@(119@,4i) == 1
goto_if_false @DRIV2_8035
if 
  not Char.LocateAnyMeansChar2D(54@(119@,4i), $scplayer, 40.0, 40.0, False)
goto_if_false @DRIV2_8028
Task.CarMission(54@(119@,4i), 58@(119@,4i), -1, CarMission.RamPlayerFaraway, 62@(119@,4f), DrivingMode.AvoidCars)
151@(119@,4i) = 0

:DRIV2_8028
goto @DRIV2_8093

:DRIV2_8035
if 
  Char.LocateAnyMeansChar2D(54@(119@,4i), $scplayer, 10.0, 10.0, False)
goto_if_false @DRIV2_8093
Task.KillCharOnFoot(54@(119@,4i), $scplayer)
151@(119@,4i) = 1

:DRIV2_8093
119@ += 1
goto @DRIV2_7872

:DRIV2_8107
return 

:DRIV2_8109
119@ = 0

:DRIV2_8116
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_8278
if and
  not Car.IsDead(58@(119@,4i))
  not Char.IsDead(54@(119@,4i))
goto_if_false @DRIV2_8264
if and
  Char.IsInCar(54@(119@,4i), 58@(119@,4i))
  not is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 138@
  147@(119@,4i) <> 1
goto_if_false @DRIV2_8264
Task.CarDriveToCoord(54@(119@,4i), 58@(119@,4i), 90@, 91@, 92@, 62@(119@,4f), DriveMode.Normal, 0, DrivingMode.AvoidCars)
set_lvar_int_to_lvar_int 130@(119@,4i) = 138@

:DRIV2_8264
119@ += 1
goto @DRIV2_8116

:DRIV2_8278
return 

:DRIV2_8280
119@ = 0

:DRIV2_8287
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_8483
if and
  not Car.IsDead(58@(119@,4i))
  not Char.IsDead(54@(119@,4i))
goto_if_false @DRIV2_8469
if and
  Char.IsInCar(54@(119@,4i), 58@(119@,4i))
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 137@
  147@(119@,4i) <> 1
  Char.LocateInCar3D(54@(119@,4i), 78@(119@,4f), 82@(119@,4f), 86@(119@,4f), 3.0, 3.0, 3.0, False)
goto_if_false @DRIV2_8469
Task.CarDriveWander(54@(119@,4i), 58@(119@,4i), 62@(119@,4f), DrivingMode.AvoidCars)
set_lvar_int_to_lvar_int 130@(119@,4i) = 135@

:DRIV2_8469
119@ += 1
goto @DRIV2_8287

:DRIV2_8483
return 

:DRIV2_8485
119@ = 0

:DRIV2_8492
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_8652
if and
  Object.DoesExist(38@(119@,4i))
  not Char.IsDead(54@(119@,4i))
  not Car.IsDead(58@(119@,4i))
goto_if_false @DRIV2_8638
if and
  Object.IsAttached(38@(119@,4i))
  Char.IsInCar(54@(119@,4i), 58@(119@,4i))
goto_if_false @DRIV2_8638
if 
  Object.Locate2D(38@(119@,4i), 90@, 91@, 20.0, 7.0, False)
goto_if_false @DRIV2_8638
156@ = 1
set_lvar_int_to_lvar_int 120@ = 119@

:DRIV2_8638
119@ += 1
goto @DRIV2_8492

:DRIV2_8652
return 

:DRIV2_8654
96@, 97@, 98@ = Char.GetCoordinates($scplayer)
119@ = 0

:DRIV2_8675
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_9030
if and
  not Car.IsDead(58@(119@,4i))
  not Char.IsDead(54@(119@,4i))
goto_if_false @DRIV2_9016
if and
  Char.IsInCar(54@(119@,4i), 58@(119@,4i))
  147@(119@,4i) <> 1
goto_if_false @DRIV2_9016
if and
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 138@
  Car.Locate2D(58@(119@,4i), 90@, 91@, 25.0, 25.0, False)
goto_if_false @DRIV2_8832
62@(119@,4f) = 15.0
goto @DRIV2_9000

:DRIV2_8832
100@, 101@, 102@ = Car.GetCoordinates(58@(119@,4i))
99@ = Math.GetDistanceBetweenCoords3D(96@, 97@, 98@, 100@, 101@, 102@)
if 
  0.0 > 99@
goto_if_false @DRIV2_8904
99@ = 0.0

:DRIV2_8904
if 
  50.0 >= 99@
goto_if_false @DRIV2_8986
set_lvar_float_to_lvar_float 62@(119@,4f) = 99@
62@(119@,4f) *= 0.4
62@(119@,4f) *= -1.0
62@(119@,4f) += 40.0
goto @DRIV2_9000

:DRIV2_8986
62@(119@,4f) = 20.0

:DRIV2_9000
Car.SetCruiseSpeed(58@(119@,4i), 62@(119@,4f))

:DRIV2_9016
119@ += 1
goto @DRIV2_8675

:DRIV2_9030
return 

:DRIV2_9032
119@ = 0

:DRIV2_9039
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_9119
if 
  Object.DoesExist(38@(119@,4i))
goto_if_false @DRIV2_9105
if 
  Object.IsInWater(38@(119@,4i))
goto_if_false @DRIV2_9105
157@ = 1

:DRIV2_9105
119@ += 1
goto @DRIV2_9039

:DRIV2_9119
return 

:DRIV2_9121
119@ = 0

:DRIV2_9128
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_9218
if and
  Car.IsDead(58@(119@,4i))
  Object.DoesExist(38@(119@,4i))
  is_int_lvar_equal_to_int_lvar 159@(119@,4i) == 164@
goto_if_false @DRIV2_9204
Object.Delete(38@(119@,4i))
158@ = 1

:DRIV2_9204
119@ += 1
goto @DRIV2_9128

:DRIV2_9218
return 

:DRIV2_9220
World.ClearArea(-1814.82, 381.4, 17.09, 100.0, False)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @DRIV2_9301
Char.SetCoordinates($scplayer, -1771.94, 336.35, 8.94)
Char.SetHeading($scplayer, 49.66)

:DRIV2_9301
if 
  174@ == 1
goto_if_false @DRIV2_9365
if 
  not Car.IsDead(36@)
goto_if_false @DRIV2_9365
Car.SetCoordinates(36@, -1766.6, 330.71, 8.23)
Car.SetHeading(36@, 45.1)

:DRIV2_9365
if 
  not Char.IsDead(54@)
goto_if_false @DRIV2_9411
Char.SetVisible(54@, True)
if 
  Object.DoesExist(38@)
goto_if_false @DRIV2_9411
Object.SetVisible(38@, True)

:DRIV2_9411
119@ = 0

:DRIV2_9418
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_9482
if 
  not Car.IsDead(58@(119@,4i))
goto_if_false @DRIV2_9468
Car.FreezePosition(58@(119@,4i), False)

:DRIV2_9468
119@ += 1
goto @DRIV2_9418

:DRIV2_9482
169@ = 1
170@ = 0
skip_cutscene_start_internal @DRIV2_10330
Camera.SetFixedPosition(-1808.39, 374.18, 17.98, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1813.41, 376.31, 17.32, SwitchType.JumpCut)
if and
  not Char.IsDead(54@)
  not Car.IsDead(58@)
goto_if_false @DRIV2_9585
Task.EnterCarAsDriver(54@, 58@, -1)

:DRIV2_9585
194@ = 0

:DRIV2_9592
if and
  194@ <> 1
  not Char.IsDead(54@)
goto_if_false @DRIV2_9673
wait 0
if and
  not Char.IsDead(54@)
  not Car.IsDead(58@)
goto_if_false @DRIV2_9666
if 
  Char.IsInCar(54@, 58@)
goto_if_false @DRIV2_9666
194@ = 1

:DRIV2_9666
goto @DRIV2_9592

:DRIV2_9673
wait 1000
Path.SwitchRoadsBackToOriginal(-2014.82, 181.4, -13.0, -1614.82, 581.4, 47.0)
Camera.SetFixedPosition(-1832.36, 380.48, 18.71, 0.0, 0.0, 0.0)
if 
  not Car.IsDead(58@)
goto_if_false @DRIV2_9860
Camera.PointAtCar(58@, CameraMode.Fixed, SwitchType.JumpCut)
if and
  not Char.IsDead(54@)
  Object.DoesExist(38@)
goto_if_false @DRIV2_9860
if 
  Char.IsHoldingObject(54@, 38@)
goto_if_false @DRIV2_9814
Char.DropObject(54@, False)

:DRIV2_9814
Object.AttachToCar(38@, 58@, 0.0, -0.9, 0.5, 0.0, 0.0, 0.0)
set_lvar_int_to_lvar_int 159@ = 164@

:DRIV2_9860
if and
  not Car.IsDead(59@)
  not Char.IsDead(55@)
goto_if_false @DRIV2_9913
Task.CarDriveToCoord(55@, 59@, -1854.74, 533.22, 33.12, 63@, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:DRIV2_9913
wait 150
if and
  not Car.IsDead(60@)
  not Char.IsDead(56@)
goto_if_false @DRIV2_9971
Task.CarDriveToCoord(56@, 60@, -1854.74, 533.22, 33.12, 64@, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:DRIV2_9971
wait 150
if and
  not Car.IsDead(58@)
  not Char.IsDead(54@)
goto_if_false @DRIV2_10029
Task.CarDriveToCoord(54@, 58@, -1854.74, 533.22, 33.12, 62@, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:DRIV2_10029
wait 100
if and
  not Car.IsDead(61@)
  not Char.IsDead(57@)
goto_if_false @DRIV2_10086
Task.CarDriveToCoord(57@, 61@, -1854.74, 533.22, 33.12, 65@, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:DRIV2_10086
wait 7000
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRIV2_10134
Char.WarpFromCarToCoord($scplayer, -1820.72, 382.73, 16.04)
goto @DRIV2_10154

:DRIV2_10134
Char.SetCoordinates($scplayer, -1820.72, 382.73, 16.04)

:DRIV2_10154
Char.SetHeading($scplayer, 326.45)
if 
  not Car.IsDead(35@)
goto_if_false @DRIV2_10190
Task.EnterCarAsDriver($scplayer, 35@, -1)

:DRIV2_10190
Camera.SetFixedPosition(-1818.1, 380.01, 16.8, 0.0, 0.0, 0.0)
Camera.PointAtCar(35@, CameraMode.Fixed, SwitchType.JumpCut)
TIMERB = 0

:DRIV2_10238
if 
  4000 > TIMERB
goto_if_false @DRIV2_10316
wait 0
if and
  TIMERB > 0
  170@ <> 1
goto_if_false @DRIV2_10309
Text.PrintNow('DRV3_2', 10000, 0)
170@ = 1

:DRIV2_10309
goto @DRIV2_10238

:DRIV2_10316
gosub @DRIV2_4560
169@ = 0

:DRIV2_10330
skip_cutscene_end 
if 
  169@ == 1
goto_if_false @DRIV2_10799
Path.SwitchRoadsBackToOriginal(-2014.82, 181.4, -13.0, -1614.82, 581.4, 47.0)
if and
  not Char.IsDead(54@)
  not Car.IsDead(58@)
goto_if_false @DRIV2_10534
if 
  not Char.IsInCar(54@, 58@)
goto_if_false @DRIV2_10430
Char.WarpIntoCar(54@, 58@)

:DRIV2_10430
if 
  Object.DoesExist(38@)
goto_if_false @DRIV2_10534
if 
  not Object.IsAttached(38@)
goto_if_false @DRIV2_10534
if 
  Char.IsHoldingObject(54@, 38@)
goto_if_false @DRIV2_10488
Char.DropObject(54@, False)

:DRIV2_10488
Object.AttachToCar(38@, 58@, 0.0, -0.9, 0.5, 0.0, 0.0, 0.0)
set_lvar_int_to_lvar_int 159@ = 164@

:DRIV2_10534
if and
  not Car.IsDead(58@)
  not Char.IsDead(54@)
goto_if_false @DRIV2_10575
Car.SetCoordinates(58@, -1894.59, 582.43, 34.56)

:DRIV2_10575
if and
  not Car.IsDead(59@)
  not Char.IsDead(55@)
goto_if_false @DRIV2_10616
Car.SetCoordinates(59@, -1893.56, 574.34, 34.55)

:DRIV2_10616
if and
  not Car.IsDead(60@)
  not Char.IsDead(56@)
goto_if_false @DRIV2_10657
Car.SetCoordinates(60@, -1899.96, 581.25, 34.56)

:DRIV2_10657
if and
  not Car.IsDead(61@)
  not Char.IsDead(57@)
goto_if_false @DRIV2_10698
Car.SetCoordinates(61@, -1898.95, 574.08, 34.56)

:DRIV2_10698
if 
  not Car.IsDead(35@)
goto_if_false @DRIV2_10758
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRIV2_10750
Char.WarpFromCarToCoord($scplayer, -1819.01, 386.28, 6.58)

:DRIV2_10750
Char.WarpIntoCar($scplayer, 35@)

:DRIV2_10758
gosub @DRIV2_4560
if 
  170@ <> 1
goto_if_false @DRIV2_10799
Text.PrintNow('DRV3_2', 10000, 0)

:DRIV2_10799
119@ = 0

:DRIV2_10806
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_10886
if 
  Object.DoesExist(38@(119@,4i))
goto_if_false @DRIV2_10872
180@(119@,4i) = Blip.AddForObject(38@(119@,4i))
Blip.ChangeColor(180@(119@,4i), BlipColor.Red)

:DRIV2_10872
119@ += 1
goto @DRIV2_10806

:DRIV2_10886
if 
  not Car.IsDead(34@)
goto_if_false @DRIV2_10917
Car.SetProofs(34@, False, False, False, False, False)

:DRIV2_10917
119@ = 0

:DRIV2_10924
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_11035
if 
  not Char.IsDead(54@(119@,4i))
goto_if_false @DRIV2_10982
Char.SetProofs(54@(119@,4i), False, False, False, False, False)

:DRIV2_10982
if 
  not Car.IsDead(58@(119@,4i))
goto_if_false @DRIV2_11021
Car.SetProofs(58@(119@,4i), False, False, False, False, False)

:DRIV2_11021
119@ += 1
goto @DRIV2_10924

:DRIV2_11035
if 
  not Car.IsDead(35@)
goto_if_false @DRIV2_11066
Car.SetProofs(35@, False, False, False, False, False)

:DRIV2_11066
119@ = 0

:DRIV2_11073
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_11137
if 
  not Car.IsDead(58@(119@,4i))
goto_if_false @DRIV2_11123
Car.SetLoadCollisionFlag(58@(119@,4i), False)

:DRIV2_11123
119@ += 1
goto @DRIV2_11073

:DRIV2_11137
if 
  not Car.IsDead(35@)
goto_if_false @DRIV2_11160
Car.SetLoadCollisionFlag(35@, False)

:DRIV2_11160
if 
  not Car.IsDead(34@)
goto_if_false @DRIV2_11183
Car.SetLoadCollisionFlag(34@, False)

:DRIV2_11183
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
return 

:DRIV2_11200
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)

:DRIV2_11214
if 
  Camera.GetFadingStatus
goto_if_false @DRIV2_11238
wait 0
goto @DRIV2_11214

:DRIV2_11238
World.ClearArea(93@, 94@, 95@, 50.0, False)
Text.ClearPrints
Char.HideWeaponForScriptedCutscene($scplayer, True)
Hud.SwitchWidescreen(True)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRIV2_11377
35@ = Char.StoreCarIsIn($scplayer)
Car.SetCoordinates(35@, 93@, 94@, 95@)
Car.SetHeading(35@, 340.37)
195@ = Sequence.Open()
Task.LeaveCar(-1, 35@)
Task.GoStraightToCoord(-1, -2625.96, 1417.82, 6.15, MoveState.Walk, -1)
Sequence.Close(195@)
Char.PerformSequence($scplayer, 195@)
Sequence.Clear(195@)
goto @DRIV2_11430

:DRIV2_11377
Car.Delete(35@)
Char.SetCoordinates($scplayer, 93@, 94@, 95@)
Char.SetHeading($scplayer, 10.0)
Task.GoStraightToCoord($scplayer, -2625.96, 1417.82, 6.15, MoveState.Walk, -1)

:DRIV2_11430
Camera.SetFixedPosition(-2626.02, 1403.8, 6.95, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2624.56, 1406.19, 7.03, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)

:DRIV2_11488
if 
  Camera.GetFadingStatus
goto_if_false @DRIV2_11512
wait 0
goto @DRIV2_11488

:DRIV2_11512
169@ = 1
skip_cutscene_start_internal @DRIV2_11538
wait 2000
169@ = 0

:DRIV2_11538
skip_cutscene_end 
if 
  169@ == 1
goto_if_false @DRIV2_11558

:DRIV2_11558
if 
  169@ <> 1
goto_if_false @DRIV2_11607
Camera.DoFade(1000, Fade.Out)

:DRIV2_11583
if 
  Camera.GetFadingStatus
goto_if_false @DRIV2_11607
wait 0
goto @DRIV2_11583

:DRIV2_11607
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -2624.28, 1410.93, 6.15)
Char.SetHeading($scplayer, 194.52)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
if 
  169@ <> 1
goto_if_false @DRIV2_11706
Camera.DoFade(1000, Fade.In)

:DRIV2_11682
if 
  Camera.GetFadingStatus
goto_if_false @DRIV2_11706
wait 0
goto @DRIV2_11682

:DRIV2_11706
Player.SetControl($player1, True)
return 

:DRIV2_11715
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)

:DRIV2_11729
if 
  Camera.GetFadingStatus
goto_if_false @DRIV2_11753
wait 0
goto @DRIV2_11729

:DRIV2_11753
Car.MarkAsNoLongerNeeded(35@)
World.ClearArea(90@, 91@, 92@, 100.0, False)
119@ = 0

:DRIV2_11783
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_11921
if 
  not is_int_lvar_equal_to_int_lvar 119@ == 120@
goto_if_false @DRIV2_11907
Char.Delete(54@(119@,4i))
if 
  not Car.IsDead(58@(119@,4i))
goto_if_false @DRIV2_11889
if 
  not Char.IsInCar($scplayer, 58@(119@,4i))
goto_if_false @DRIV2_11882
Car.Delete(58@(119@,4i))

:DRIV2_11882
goto @DRIV2_11898

:DRIV2_11889
Car.Delete(58@(119@,4i))

:DRIV2_11898
Object.Delete(38@(119@,4i))

:DRIV2_11907
119@ += 1
goto @DRIV2_11783

:DRIV2_11921
121@ = Streaming.GetAreaVisible()
96@, 97@, 98@ = Char.GetCoordinates($scplayer)
103@ = Char.GetHeading($scplayer)
197@ = World.GetWaterHeightAtCoords(96@, 97@, False)
196@ = World.GetGroundZFor3DCoord(96@, 97@, 98@)
if 
  is_float_lvar_greater_than_float_lvar 197@ > 196@
goto_if_false @DRIV2_12002
set_lvar_float_to_lvar_float 196@ = 197@

:DRIV2_12002
Char.SetCoordinates($scplayer, -2762.82, 98.13, -100.0)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRIV2_12056
35@ = Char.StoreCarIsIn($scplayer)
Car.SetHeading(35@, 354.04)

:DRIV2_12056
Streaming.SetAreaVisible(0)
Streaming.RequestCollision(90@, 91@)
Streaming.LoadScene(90@, 91@, 92@)
Text.ClearHelp
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2736.43, 87.02, 4.27, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2735.57, 86.18, 4.27, SwitchType.JumpCut)
Garage.Open('TBON')
if and
  not Char.IsDead(54@(120@,4i))
  not Car.IsDead(58@(120@,4i))
goto_if_false @DRIV2_12368
Car.SetCoordinates(58@(120@,4i), -2720.92, 83.65, 3.69)
Car.SetHeading(58@(120@,4i), 85.84)
if 
  not Char.IsInCar(54@(120@,4i), 58@(120@,4i))
goto_if_false @DRIV2_12301
if 
  Char.IsInAnyCar(54@(120@,4i))
goto_if_false @DRIV2_12285
Char.WarpFromCarToCoord(54@(120@,4i), -2720.92, 83.65, -6.31)

:DRIV2_12285
Char.WarpIntoCar(54@(120@,4i), 58@(120@,4i))

:DRIV2_12301
Car.SetStraightLineDistance(58@(120@,4i), 2)
Task.CarDriveToCoord(54@(120@,4i), 58@(120@,4i), -2730.11, 65.22, 3.91, 10.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Car.SetForwardSpeed(58@(120@,4i), 7.0)

:DRIV2_12368
Car.Delete(34@)
Camera.DoFade(500, Fade.In)

:DRIV2_12380
if 
  Camera.GetFadingStatus
goto_if_false @DRIV2_12404
wait 0
goto @DRIV2_12380

:DRIV2_12404
169@ = 1
skip_cutscene_start_internal @DRIV2_12599
if 
  not Char.IsDead(54@(120@,4i))
goto_if_false @DRIV2_12456
100@, 101@, 102@ = Char.GetCoordinates(54@(120@,4i))

:DRIV2_12456
if 
  101@ > 71.36
goto_if_false @DRIV2_12543
wait 0
if 
  not Char.IsDead(54@(120@,4i))
goto_if_false @DRIV2_12526
100@, 101@, 102@ = Char.GetCoordinates(54@(120@,4i))
goto @DRIV2_12536

:DRIV2_12526
101@ = 71.36

:DRIV2_12536
goto @DRIV2_12456

:DRIV2_12543
Garage.Close('TBON')

:DRIV2_12554
if 
  not Garage.IsClosed('TBON')
goto_if_false @DRIV2_12587
wait 0
goto @DRIV2_12554

:DRIV2_12587
wait 1000
169@ = 0

:DRIV2_12599
skip_cutscene_end 
Camera.DoFade(1000, Fade.Out)

:DRIV2_12608
if 
  Camera.GetFadingStatus
goto_if_false @DRIV2_12632
wait 0
goto @DRIV2_12608

:DRIV2_12632
Char.Delete(54@(120@,4i))
Car.Delete(58@(120@,4i))
if 
  169@ == 1
goto_if_false @DRIV2_12734
if 
  not Garage.IsClosed('TBON')
goto_if_false @DRIV2_12734
Garage.Close('TBON')

:DRIV2_12701
if 
  not Garage.IsClosed('TBON')
goto_if_false @DRIV2_12734
wait 0
goto @DRIV2_12701

:DRIV2_12734
Streaming.SetAreaVisible(121@)
Streaming.RequestCollision(96@, 97@)
Streaming.LoadScene(96@, 97@, 196@)
Char.SetCoordinates($scplayer, 96@, 97@, 196@)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRIV2_12811
35@ = Char.StoreCarIsIn($scplayer)
Car.SetHeading(35@, 103@)
goto @DRIV2_12819

:DRIV2_12811
Char.SetHeading($scplayer, 103@)

:DRIV2_12819
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Camera.DoFade(1000, Fade.In)

:DRIV2_12841
if 
  Camera.GetFadingStatus
goto_if_false @DRIV2_12865
wait 0
goto @DRIV2_12841

:DRIV2_12865
return 

:DRIV2_12867
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:DRIV2_12885
$flag_synd_mission_counter += 1
Stat.RegisterMissionPassed('FAR_2')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSS', 5000, 5000, TextStyle.Middle)
Player.AddScore($player1, 5000)
Stat.AwardPlayerMissionRespect(20)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
return 

:DRIV2_12949
Streaming.MarkModelAsNoLongerNeeded(498)
Streaming.MarkModelAsNoLongerNeeded(521)
Streaming.MarkModelAsNoLongerNeeded(#KMB_PACKET)
Streaming.MarkModelAsNoLongerNeeded(100)
Streaming.MarkModelAsNoLongerNeeded(47)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.RemoveAnimation("BIKES")
Streaming.RemoveAnimation("MISC")
119@ = 0

:DRIV2_13001
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_13092
Blip.Remove(180@(119@,4i))
if 
  Object.DoesExist(38@(119@,4i))
goto_if_false @DRIV2_13078
if 
  not Object.IsOnScreen(38@(119@,4i))
goto_if_false @DRIV2_13078
Object.Delete(38@(119@,4i))

:DRIV2_13078
119@ += 1
goto @DRIV2_13001

:DRIV2_13092
Blip.Remove(184@)
Blip.Remove(185@)
if 
  not Car.IsDead(34@)
goto_if_false @DRIV2_13133
Car.SetProofs(34@, False, False, False, False, False)

:DRIV2_13133
119@ = 0

:DRIV2_13140
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_13223
if 
  not Car.IsDead(58@(119@,4i))
goto_if_false @DRIV2_13209
Car.SetProofs(58@(119@,4i), False, False, False, False, False)
Car.FreezePosition(58@(119@,4i), False)

:DRIV2_13209
119@ += 1
goto @DRIV2_13140

:DRIV2_13223
if 
  not Car.IsDead(35@)
goto_if_false @DRIV2_13254
Car.SetProofs(35@, False, False, False, False, False)

:DRIV2_13254
DecisionMaker.Remove(193@)
Sequence.Clear(195@)
Text.ClearHelp
Path.SwitchRoadsBackToOriginal(-2014.82, 181.4, -13.0, -1614.82, 581.4, 47.0)
if 
  Player.IsPlaying($player1)
goto_if_false @DRIV2_13321
Char.HideWeaponForScriptedCutscene($scplayer, False)

:DRIV2_13321
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 66---------------
// Originally: Mike Toreno

:DRIV3
script_name 'DRIV3'
gosub @DRIV3_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRIV3_38
gosub @DRIV3_15991

:DRIV3_38
gosub @DRIV3_16009
terminate_this_script 

:DRIV3_47
$onmission = 1
Stat.RegisterMissionGiven
wait 0
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)
Camera.SetFadingColor(0, 0, 0)

:DRIV3_82
if 
  Camera.GetFadingStatus
goto_if_false @DRIV3_106
wait 0
goto @DRIV3_82

:DRIV3_106
Text.LoadMissionText('FARLIE3')
Streaming.SetAreaVisible(3)
Cutscene.Load('FARL_3A')

:DRIV3_132
if 
  not Cutscene.HasLoaded
goto_if_false @DRIV3_156
wait 0
goto @DRIV3_132

:DRIV3_156
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:DRIV3_165
if 
  not Cutscene.HasFinished
goto_if_false @DRIV3_189
wait 0
goto @DRIV3_165

:DRIV3_189
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:DRIV3_204
if 
  Camera.GetFadingStatus
goto_if_false @DRIV3_228
wait 0
goto @DRIV3_204

:DRIV3_228
Cutscene.Clear
Streaming.SetAreaVisible(0)
127@ = Blip.AddForCoord(-2071.0, 209.0, 35.0)
Blip.Remove(127@)
80@ = -1906.656
81@ = 283.016
82@ = 41.0
104@ = 0
105@ = 0
106@ = 0
132@ = 0
107@ = 0
112@ = 0
108@ = 0
59@ = -2615.0
60@ = 1397.0
61@ = 6.0
101@ = 0
$int_distance_player_girl = 0
$flag_is_farlie3_running = 1
103@ = 0
71@ = -1550.416
72@ = -436.4436
73@ = 6.9871
$timer_countdown_farlie3 = 0
74@ = 0.0
75@ = -20.0
76@ = 0.0
100@ = 0
102@ = 0
109@ = 0
110@ = 0
89@ = 1
90@ = 0
91@ = 0
92@ = 0
93@ = 0
$s7_rnd_1 = 0
94@ = 0
95@ = 0
98@ = 0
111@ = 0
99@ = 0
96@ = 0
97@ = 0
if 
  Blip.DoesExist($2652)
goto_if_false @DRIV3_603
Blip.Remove($2652)

:DRIV3_603
55@ = Pickup.CreateWithAmmo(348, PickupType.OnStreetSlow, 30, -1542.022, -437.7364, 5.9258)
set_var_text_label s$flag_phone_dialog_driv3[0] = 'FAR3_CA'
set_var_text_label s$flag_phone_dialog_driv3[1] = 'FAR3_CB'
set_var_text_label s$flag_phone_dialog_driv3[2] = 'FAR3_DA'
set_var_text_label s$flag_phone_dialog_driv3[3] = 'FAR3_CC'
set_var_text_label s$flag_phone_dialog_driv3[4] = 'FAR3_DB'
set_var_text_label s$flag_phone_dialog_driv3[5] = 'FAR3_EA'
set_lvar_int_to_constant 133@ = 6410
set_lvar_int_to_constant 134@ = 6411
set_lvar_int_to_constant 135@ = 6431
set_lvar_int_to_constant 136@ = 6412
set_lvar_int_to_constant 137@ = 6432
set_lvar_int_to_constant 138@ = 6447
set_var_text_label s$flag_phone_dialog_driv3[6] = 'FAR3_CF'
set_var_text_label s$flag_phone_dialog_driv3[7] = 'FAR3_CD'
set_var_text_label s$flag_phone_dialog_driv3[8] = 'FAR3_DC'
set_var_text_label s$flag_phone_dialog_driv3[9] = 'FAR3_EB'
set_lvar_int_to_constant 139@ = 6415
set_lvar_int_to_constant 140@ = 6413
set_lvar_int_to_constant 141@ = 6433
set_lvar_int_to_constant 142@ = 6448
set_var_text_label s$flag_phone_dialog_driv3[10] = 'FAR3_CJ'
set_var_text_label s$flag_phone_dialog_driv3[11] = 'FAR3_CK'
set_var_text_label s$flag_phone_dialog_driv3[12] = 'FAR3_DD'
set_var_text_label s$flag_phone_dialog_driv3[13] = 'FAR3_DE'
set_var_text_label s$flag_phone_dialog_driv3[14] = 'FAR3_EC'
set_lvar_int_to_constant 143@ = 6445
set_lvar_int_to_constant 144@ = 6446
set_lvar_int_to_constant 145@ = 6434
set_lvar_int_to_constant 146@ = 6435
set_lvar_int_to_constant 147@ = 6449
set_var_text_label s$flag_phone_dialog_driv3[15] = 'FAR3_HA'
set_var_text_label s$flag_phone_dialog_driv3[16] = 'FAR3_HB'
set_var_text_label s$flag_phone_dialog_driv3[17] = 'FAR3_HC'
set_lvar_int_to_constant 148@ = 6457
set_lvar_int_to_constant 149@ = 6436
set_lvar_int_to_constant 150@ = 6458
set_var_text_label s$flag_phone_dialog_driv3[18] = 'FAR3_JA'
set_var_text_label s$flag_phone_dialog_driv3[19] = 'FAR3_JB'
set_var_text_label s$flag_phone_dialog_driv3[20] = 'FAR3_JC'
set_var_text_label s$flag_phone_dialog_driv3[21] = 'FAR3_JD'
set_var_text_label s$flag_phone_dialog_driv3[22] = 'FAR3_JE'
set_var_text_label s$flag_phone_dialog_driv3[23] = 'FAR3_JF'
set_var_text_label s$flag_phone_dialog_driv3[24] = 'FAR3_JG'
set_lvar_int_to_constant 151@ = 6417
set_lvar_int_to_constant 152@ = 6437
set_lvar_int_to_constant 153@ = 6418
set_lvar_int_to_constant 154@ = 6419
set_lvar_int_to_constant 155@ = 6420
set_lvar_int_to_constant 156@ = 6438
set_lvar_int_to_constant 157@ = 6421
set_var_text_label s$flag_phone_dialog_driv3[25] = 'FAR3_MA'
set_var_text_label s$flag_phone_dialog_driv3[26] = 'FAR3_MB'
set_var_text_label s$flag_phone_dialog_driv3[27] = 'FAR3_MC'
set_var_text_label s$flag_phone_dialog_driv3[28] = 'FAR3_MD'
set_var_text_label s$flag_phone_dialog_driv3[29] = 'FAR3_ME'
set_var_text_label s$flag_phone_dialog_driv3[30] = 'FAR3_MF'
set_var_text_label s$flag_phone_dialog_driv3[31] = 'FAR3_MG'
set_var_text_label s$flag_phone_dialog_driv3[32] = 'FAR3_MH'
set_var_text_label s$flag_phone_dialog_driv3[33] = 'FAR3_MJ'
set_var_text_label s$flag_phone_dialog_driv3[34] = 'FAR3_MK'
set_var_text_label s$flag_phone_dialog_driv3[35] = 'FAR3_ML'
set_var_text_label s$flag_phone_dialog_driv3[36] = 'FAR3_MM'
set_var_text_label s$flag_phone_dialog_driv3[37] = 'FAR3_MN'
set_var_text_label s$flag_phone_dialog_driv3[38] = 'FAR3_MO'
set_lvar_int_to_constant 158@ = 6403
set_lvar_int_to_constant 159@ = 6439
set_lvar_int_to_constant 160@ = 6404
set_lvar_int_to_constant 161@ = 6440
set_lvar_int_to_constant 162@ = 6426
set_lvar_int_to_constant 163@ = 6441
set_lvar_int_to_constant 164@ = 6405
set_lvar_int_to_constant 165@ = 6442
set_lvar_int_to_constant 166@ = 6427
set_lvar_int_to_constant 167@ = 6428
set_lvar_int_to_constant 168@ = 6406
set_lvar_int_to_constant 169@ = 6407
set_lvar_int_to_constant 170@ = 6443
set_lvar_int_to_constant 171@ = 6429
86@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
87@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
Streaming.RequestModel(352)
Streaming.RequestModel(482)
Streaming.LoadSpecialCharacter(2, 'TBONE')
Streaming.LoadAllModelsNow

:DRIV3_1527
if or
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(482)
goto_if_false @DRIV3_1563
wait 0
goto @DRIV3_1527

:DRIV3_1563
Char.SetHeading($scplayer, 214.0)
Camera.SetBehindPlayer

:DRIV3_1575
wait 0
if 
  89@ == 1
goto_if_false @DRIV3_1604
gosub @DRIV3_1736

:DRIV3_1604
if 
  90@ == 1
goto_if_false @DRIV3_1629
gosub @DRIV3_6822

:DRIV3_1629
if 
  94@ == 1
goto_if_false @DRIV3_1654
gosub @DRIV3_8237

:DRIV3_1654
if 
  91@ == 1
goto_if_false @DRIV3_1679
gosub @DRIV3_11206

:DRIV3_1679
if 
  92@ == 1
goto_if_false @DRIV3_1704
goto @DRIV3_15893

:DRIV3_1704
if 
  93@ == 1
goto_if_false @DRIV3_1729
goto @DRIV3_15991

:DRIV3_1729
goto @DRIV3_1575

:DRIV3_1736
54@ = Math.RandomIntInRange(1, 4)
if 
  54@ == 1
goto_if_false @DRIV3_1833
56@ = -1303.76
57@ = -615.4308
58@ = 13.1485
62@ = -1271.832
63@ = -180.8179
64@ = 13.1443
84@ = 0.0

:DRIV3_1833
if 
  54@ == 2
goto_if_false @DRIV3_1921
56@ = -1216.233
57@ = 51.366
58@ = 13.0
62@ = -1288.832
63@ = -159.8179
64@ = 13.1443
84@ = 120.0

:DRIV3_1921
if 
  54@ == 3
goto_if_false @DRIV3_2009
56@ = -1125.319
57@ = 368.3488
58@ = 13.1329
62@ = -1319.832
63@ = -96.8179
64@ = 13.8443
84@ = 140.0

:DRIV3_2009
Streaming.RequestModel(426)

:DRIV3_2014
if 
  not Streaming.HasModelLoaded(426)
goto_if_false @DRIV3_2041
wait 0
goto @DRIV3_2014

:DRIV3_2041
38@ = Car.Create(426, -2620.0, 1398.0, 6.5)
Car.SetHeading(38@, 204.0)
114@ = Blip.AddForCar(38@)
Blip.SetAsFriendly(114@, True)
Car.SetHealth(38@, 2500)
113@ = Game.FindMaxNumberOfGroupMembers()
Game.SetScriptLimitToGangSize(113@)
Game.MakeRoomInPlayerGangForMissionPeds(2)
if 
  Player.IsPlaying($player1)
goto_if_false @DRIV3_2134
Char.ShutUpForScriptedSpeech($scplayer, True)

:DRIV3_2134
53@ = Char.Create(PedType.Mission2, 291, -2623.64, 1403.9, 6.2)
Char.SetGetOutUpsideDownCar(53@, False)
DecisionMakerChar.AddEventResponse(87@, 36, 1022, 0.0, 100.0, 0.0, 0.0, True, False)
Char.SetAccuracy(53@, 95)
Player.SetGroupToFollowAlways($player1, True)
Char.ShutUpForScriptedSpeech(53@, True)
Task.EnterCarAsPassenger(53@, 38@, -1, 0)
Char.SetDrownsInWater(53@, True)
Char.SetRelationship(53@, RelationshipType.Like, PedType.Player1)
Char.SetRelationship(53@, RelationshipType.Hate, PedType.Mission1)
Char.SetDecisionMaker(53@, 87@)
Char.GiveWeapon(53@, WeaponType.MicroUzi, 1000)
Char.SetNeverTargeted(53@, True)
Char.SetOnlyDamagedByPlayer(53@, True)
Streaming.LoadSceneInDirection(-2623.64, 1403.9, 6.2, 214.0)
Camera.DoFade(1000, Fade.In)

:DRIV3_2319
if 
  Camera.GetFadingStatus
goto_if_false @DRIV3_2343
wait 0
goto @DRIV3_2319

:DRIV3_2343
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
$timer_countdown_farlie3 += 330000
Hud.DisplayTimerWithString($timer_countdown_farlie3, TimerDirection.Down, 'DRI2_9')
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6450)

:DRIV3_2391
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_2417
wait 0
goto @DRIV3_2391

:DRIV3_2417
Text.PrintNow('FAR3_FA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_2437
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_2463
wait 0
goto @DRIV3_2437

:DRIV3_2463
Text.ClearThisPrint('FAR3_FA')
Text.PrintNow('DRI2_1', 5000, 1)
Streaming.RequestModel(121)
Streaming.RequestModel(122)
Streaming.RequestModel(123)

:DRIV3_2502
if or
  not Streaming.HasModelLoaded(121)
  not Streaming.HasModelLoaded(122)
  not Streaming.HasModelLoaded(123)
goto_if_false @DRIV3_2536
wait 0
goto @DRIV3_2502

:DRIV3_2536
if 
  not Car.IsDead(38@)
goto_if_false @DRIV3_2857

:DRIV3_2552
if 
  not Char.IsInCar($scplayer, 38@)
goto_if_false @DRIV3_2857
wait 0
if 
  Char.IsDead(53@)
goto_if_false @DRIV3_2651
89@ = 0
90@ = 0
94@ = 0
91@ = 0
92@ = 0
93@ = 1
Text.PrintNow('DRI2_31', 5000, 1)
return 

:DRIV3_2651
if 
  Car.IsDead(38@)
goto_if_false @DRIV3_2674
goto @DRIV3_2857

:DRIV3_2674
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DRIV3_2733
89@ = 0
90@ = 0
94@ = 0
91@ = 0
92@ = 1
93@ = 0
return 

:DRIV3_2733
if 
  0 >= $timer_countdown_farlie3
goto_if_false @DRIV3_2850
89@ = 0
93@ = 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6453)

:DRIV3_2776
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_2802
wait 0
goto @DRIV3_2776

:DRIV3_2802
Text.PrintNow('FAR3_FD', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_2822
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_2848
wait 0
goto @DRIV3_2822

:DRIV3_2848
return 

:DRIV3_2850
goto @DRIV3_2552

:DRIV3_2857
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_2911
Text.ClearThisPrint('DRI2_1')
if 
  not Char.IsGroupMember(53@, $Players_Group)
goto_if_false @DRIV3_2911
Group.SetMember($Players_Group, 53@)

:DRIV3_2911
Blip.Remove(114@)
Streaming.MarkModelAsNoLongerNeeded(426)
TIMERB = 0
116@ = Blip.AddShortRangeSpriteForCoord(71@, 72@, 73@, RadarSprite.MapHere)
Blip.Remove(116@)
if 
  not Char.IsDead($scplayer)
goto_if_false @DRIV3_4398

:DRIV3_2965
if 
  not Char.LocateAnyMeans3D($scplayer, 71@, 72@, 73@, 35.0, 35.0, 35.0, False)
goto_if_false @DRIV3_4398
wait 0
gosub @DRIV3_14579
if 
  93@ == 1
goto_if_false @DRIV3_3038
return 

:DRIV3_3038
if 
  109@ == 0
goto_if_false @DRIV3_4391
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRIV3_3080
38@ = Char.StoreCarIsIn($scplayer)

:DRIV3_3080
if and
  $s7_rnd_1 >= 0
  6 > $s7_rnd_1
goto_if_false @DRIV3_3112
gosub @DRIV3_15514

:DRIV3_3112
if 
  $s7_rnd_1 == 6
goto_if_false @DRIV3_3264
if 
  TIMERA > 15000
goto_if_false @DRIV3_3264
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6456)

:DRIV3_3160
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_3186
wait 0
goto @DRIV3_3160

:DRIV3_3186
Text.PrintNow('FAR3_GC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_3206
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_3232
wait 0
goto @DRIV3_3206

:DRIV3_3232
Text.ClearThisPrint('FAR3_GC')
TIMERA = 0
$s7_rnd_1 = 7
102@ = 0

:DRIV3_3264
if 
  $s7_rnd_1 == 7
goto_if_false @DRIV3_3351
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_3351
if and
  Char.IsInZone($scplayer, 'DOH')
  Char.IsInZone(53@, 'DOH')
goto_if_false @DRIV3_3351
$s7_rnd_1 = 8
132@ = 6

:DRIV3_3351
if and
  $s7_rnd_1 >= 8
  12 > $s7_rnd_1
goto_if_false @DRIV3_3383
gosub @DRIV3_15514

:DRIV3_3383
if 
  $s7_rnd_1 == 12
goto_if_false @DRIV3_3535
if 
  TIMERA > 10000
goto_if_false @DRIV3_3535
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6455)

:DRIV3_3431
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_3457
wait 0
goto @DRIV3_3431

:DRIV3_3457
Text.PrintNow('FAR3_GB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_3477
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_3503
wait 0
goto @DRIV3_3477

:DRIV3_3503
Text.ClearThisPrint('FAR3_GB')
TIMERA = 0
$s7_rnd_1 = 13
102@ = 0

:DRIV3_3535
if 
  $s7_rnd_1 == 13
goto_if_false @DRIV3_3629
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_3629
if and
  Char.IsInZone($scplayer, 'EASB')
  Char.IsInZone(53@, 'EASB')
goto_if_false @DRIV3_3629
$s7_rnd_1 = 14
132@ = 10
TIMERA = 0

:DRIV3_3629
if and
  $s7_rnd_1 >= 14
  19 > $s7_rnd_1
goto_if_false @DRIV3_3661
gosub @DRIV3_15514

:DRIV3_3661
if 
  $s7_rnd_1 == 19
goto_if_false @DRIV3_3806
if 
  TIMERA > 8000
goto_if_false @DRIV3_3806
TIMERA = 0
$s7_rnd_1 = 20
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6444)

:DRIV3_3723
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_3749
wait 0
goto @DRIV3_3723

:DRIV3_3749
Text.PrintNow('FAR3_CH', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_3769
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_3795
wait 0
goto @DRIV3_3769

:DRIV3_3795
Text.ClearThisPrint('FAR3_CH')

:DRIV3_3806
if 
  $s7_rnd_1 == 20
goto_if_false @DRIV3_3958
if 
  TIMERA > 8000
goto_if_false @DRIV3_3958
TIMERA = 0
$s7_rnd_1 = 21
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6454)

:DRIV3_3868
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_3894
wait 0
goto @DRIV3_3868

:DRIV3_3894
Text.PrintNow('FAR3_GA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_3914
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_3940
wait 0
goto @DRIV3_3914

:DRIV3_3940
Text.ClearThisPrint('FAR3_GA')
102@ = 0

:DRIV3_3958
if 
  102@ == 0
goto_if_false @DRIV3_4116
if 
  103@ == 0
goto_if_false @DRIV3_4116
if 
  200000 >= $timer_countdown_farlie3
goto_if_false @DRIV3_4116
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6451)

:DRIV3_4026
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_4052
wait 0
goto @DRIV3_4026

:DRIV3_4052
Text.PrintNow('FAR3_FB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_4072
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_4098
wait 0
goto @DRIV3_4072

:DRIV3_4098
Text.ClearThisPrint('FAR3_FB')
103@ = 1

:DRIV3_4116
if 
  102@ == 0
goto_if_false @DRIV3_4274
if 
  103@ == 1
goto_if_false @DRIV3_4274
if 
  100000 >= $timer_countdown_farlie3
goto_if_false @DRIV3_4274
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6452)

:DRIV3_4184
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_4210
wait 0
goto @DRIV3_4184

:DRIV3_4210
Text.PrintNow('FAR3_FC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_4230
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_4256
wait 0
goto @DRIV3_4230

:DRIV3_4256
Text.ClearThisPrint('FAR3_FC')
103@ = 2

:DRIV3_4274
if 
  0 >= $timer_countdown_farlie3
goto_if_false @DRIV3_4391
89@ = 0
93@ = 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6453)

:DRIV3_4317
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_4343
wait 0
goto @DRIV3_4317

:DRIV3_4343
Text.PrintNow('FAR3_FD', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_4363
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_4389
wait 0
goto @DRIV3_4363

:DRIV3_4389
return 

:DRIV3_4391
goto @DRIV3_2965

:DRIV3_4398
Text.ClearHelp
Blip.Remove(116@)
Blip.Remove(127@)
Streaming.RequestModel(463)

:DRIV3_4415
if 
  not Streaming.HasModelLoaded(463)
goto_if_false @DRIV3_4442
wait 0
goto @DRIV3_4415

:DRIV3_4442
Hud.DisplayCounterWithString($int_distance_player_girl, CounterDisplay.Bar, 'DRI2_17')
35@ = Car.Create(482, 56@, 57@, 58@)
Car.ChangeColor(35@, 6, 0)
115@ = Blip.AddForCar(35@)
Blip.ChangeDisplay(115@, BlipDisplay.MarkerOnly)
Car.SetHeading(35@, 84@)
41@ = Char.CreateInsideCar(35@, PedType.Mission1, 123)
Char.SetProofs(41@, True, False, False, False, False)
Char.SetSuffersCriticalHits(41@, False)
Char.SetDecisionMaker(41@, 86@)
Char.SetRelationship(41@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(41@, RelationshipType.Like, PedType.Mission1)
DecisionMakerChar.AddEventResponse(86@, 36, 1022, 0.0, 100.0, 0.0, 0.0, True, False)
Car.SetHealth(35@, 1000)
Car.LockDoors(35@, CarLock.SkipShutDoors)
Car.SetOnlyDamagedByPlayer(35@, True)
131@ = 0

:DRIV3_4630
if 
  3 > 131@
goto_if_false @DRIV3_4812
if or
  131@ == 0
  131@ == 2
goto_if_false @DRIV3_4692
42@(131@,9i) = Char.CreateAsPassenger(35@, PedType.Mission1, 121, 131@)

:DRIV3_4692
if 
  131@ == 1
goto_if_false @DRIV3_4729
42@(131@,9i) = Char.CreateAsPassenger(35@, PedType.Mission1, 122, 131@)

:DRIV3_4729
Char.GiveWeapon(42@(131@,9i), WeaponType.MicroUzi, 1000)
Char.SetCurrentWeapon(42@(131@,9i), WeaponType.MicroUzi)
if 
  131@ == 0
goto_if_false @DRIV3_4798
Char.SetDecisionMaker(42@, 86@)
Char.SetRelationship(42@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(42@, RelationshipType.Like, PedType.Mission1)

:DRIV3_4798
131@ += 1
goto @DRIV3_4630

:DRIV3_4812
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_5062
77@, 78@, 79@ = Car.GetOffsetInWorldCoords(35@, 2.0, -6.0, -0.3)
36@ = Car.Create(463, 77@, 78@, 79@)
Car.SetHeading(36@, 84@)
51@ = Char.CreateInsideCar(36@, PedType.Mission1, 122)
Char.GiveWeapon(51@, WeaponType.MicroUzi, 1000)
Char.SetCurrentWeapon(51@, WeaponType.MicroUzi)
Char.SetDecisionMaker(51@, 86@)
Char.SetRelationship(51@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(51@, RelationshipType.Like, PedType.Mission1)
Car.SetStraightLineDistance(36@, 255)
77@, 78@, 79@ = Car.GetOffsetInWorldCoords(35@, -2.0, -6.0, -0.3)
37@ = Car.Create(463, 77@, 78@, 79@)
Car.SetHeading(37@, 84@)
52@ = Char.CreateInsideCar(37@, PedType.Mission1, 121)
Char.GiveWeapon(52@, WeaponType.MicroUzi, 1000)
Char.SetCurrentWeapon(52@, WeaponType.MicroUzi)
Char.SetDecisionMaker(52@, 86@)
Char.SetRelationship(52@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(52@, RelationshipType.Like, PedType.Mission1)
Car.SetStraightLineDistance(37@, 255)

:DRIV3_5062
if 
  $s7_rnd_1 <> 21
goto_if_false @DRIV3_5094
132@ = 18
$s7_rnd_1 = 24

:DRIV3_5094
if 
  98@ <> 1
goto_if_false @DRIV3_6806
wait 0
gosub @DRIV3_14579
if 
  93@ == 1
goto_if_false @DRIV3_5143
return 

:DRIV3_5143
if and
  $s7_rnd_1 >= 21
  24 > $s7_rnd_1
goto_if_false @DRIV3_5182
102@ = 1
gosub @DRIV3_15514

:DRIV3_5182
if and
  $s7_rnd_1 >= 24
  30 >= $s7_rnd_1
goto_if_false @DRIV3_5221
gosub @DRIV3_15514
102@ = 1

:DRIV3_5221
if 
  95@ == 0
goto_if_false @DRIV3_5294
if 
  $s7_rnd_1 == 31
goto_if_false @DRIV3_5287
Text.PrintNow('DRI2_18', 5000, 1)
$s7_rnd_1 = 32
TIMERA = 0

:DRIV3_5287
goto @DRIV3_5301

:DRIV3_5294
$s7_rnd_1 = 32

:DRIV3_5301
if 
  $s7_rnd_1 == 32
goto_if_false @DRIV3_5352
if 
  TIMERA > 7000
goto_if_false @DRIV3_5352
102@ = 0
$s7_rnd_1 = 33

:DRIV3_5352
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_6767
if and
  Char.LocateAnyMeans3D($scplayer, 65@, 66@, 67@, 30.0, 30.0, 30.0, False)
  Car.Locate3D(35@, 62@, 63@, 64@, 40.0, 40.0, 40.0, False)
goto_if_false @DRIV3_5448
98@ = 1

:DRIV3_5448
if 
  95@ == 0
goto_if_false @DRIV3_5747
if and
  Char.LocateAnyMeans3D($scplayer, 65@, 66@, 67@, 100.0, 100.0, 100.0, False)
  Car.IsOnScreen(35@)
goto_if_false @DRIV3_5747
if 
  not Char.IsDead(41@)
goto_if_false @DRIV3_5557
Task.CarDriveToCoord(41@, 35@, 62@, 63@, 64@, 25.0, DriveMode.Accurate, 0, DrivingMode.PloughThrough)

:DRIV3_5557
if 
  not Car.IsDead(36@)
goto_if_false @DRIV3_5581
Car.SetEscortCarRight(36@, 35@)

:DRIV3_5581
if 
  not Car.IsDead(37@)
goto_if_false @DRIV3_5605
Car.SetEscortCarLeft(37@, 35@)

:DRIV3_5605
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6425)

:DRIV3_5616
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_5642
wait 0
goto @DRIV3_5616

:DRIV3_5642
Text.PrintNow('FAR3_KD', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_5662
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_5688
wait 0
goto @DRIV3_5662

:DRIV3_5688
Text.ClearThisPrint('FAR3_KD')
Blip.ChangeDisplay(115@, BlipDisplay.Both)
Hud.ClearTimer($timer_countdown_farlie3)
Hud.ClearCounter($int_distance_player_girl)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRIV3_5740
38@ = Char.StoreCarIsIn($scplayer)

:DRIV3_5740
95@ = 1

:DRIV3_5747
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_6085
if or
  95@ == 1
  95@ == 2
goto_if_false @DRIV3_5854
if 
  Car.Locate3D(35@, 62@, 63@, 64@, 20.0, 20.0, 20.0, False)
goto_if_false @DRIV3_5854
Car.SetCruiseSpeed(35@, 0.0)
Car.SetMission(35@, CarMission.StopForever)
95@ = 3

:DRIV3_5854
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_5884
65@, 66@, 67@ = Car.GetCoordinates(35@)

:DRIV3_5884
68@, 69@, 70@ = Char.GetCoordinates($scplayer)
88@ = Math.GetDistanceBetweenCoords3D(68@, 69@, 70@, 65@, 66@, 67@)
if or
  54@ == 3
  54@ == 2
goto_if_false @DRIV3_6019
if 
  88@ > 1000.0
goto_if_false @DRIV3_5984
88@ = 1000.0
goto @DRIV3_6012

:DRIV3_5984
129@ = 1000.0
sub_float_lvar_from_float_lvar 129@ -= 88@
129@ /= 10.0

:DRIV3_6012
goto @DRIV3_6085

:DRIV3_6019
if 
  88@ > 500.0
goto_if_false @DRIV3_6057
88@ = 500.0
goto @DRIV3_6085

:DRIV3_6057
129@ = 500.0
sub_float_lvar_from_float_lvar 129@ -= 88@
129@ /= 5.0

:DRIV3_6085
if 
  129@ > 0.0
goto_if_false @DRIV3_6114
cset_var_int_to_lvar_float $int_distance_player_girl =# 129@

:DRIV3_6114
if 
  95@ <> 1
goto_if_false @DRIV3_6651
if 
  109@ == 0
goto_if_false @DRIV3_6583
if 
  102@ == 0
goto_if_false @DRIV3_6308
if 
  103@ == 0
goto_if_false @DRIV3_6308
if 
  200000 >= $timer_countdown_farlie3
goto_if_false @DRIV3_6308
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6451)

:DRIV3_6218
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_6244
wait 0
goto @DRIV3_6218

:DRIV3_6244
Text.PrintNow('FAR3_FB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_6264
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_6290
wait 0
goto @DRIV3_6264

:DRIV3_6290
Text.ClearThisPrint('FAR3_FB')
103@ = 1

:DRIV3_6308
if 
  102@ == 0
goto_if_false @DRIV3_6466
if 
  103@ == 1
goto_if_false @DRIV3_6466
if 
  100000 >= $timer_countdown_farlie3
goto_if_false @DRIV3_6466
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6452)

:DRIV3_6376
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_6402
wait 0
goto @DRIV3_6376

:DRIV3_6402
Text.PrintNow('FAR3_FC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_6422
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_6448
wait 0
goto @DRIV3_6422

:DRIV3_6448
Text.ClearThisPrint('FAR3_FC')
103@ = 2

:DRIV3_6466
if 
  0 >= $timer_countdown_farlie3
goto_if_false @DRIV3_6583
89@ = 0
93@ = 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6453)

:DRIV3_6509
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_6535
wait 0
goto @DRIV3_6509

:DRIV3_6535
Text.PrintNow('FAR3_FD', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_6555
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_6581
wait 0
goto @DRIV3_6555

:DRIV3_6581
return 

:DRIV3_6583
if 
  95@ == 0
goto_if_false @DRIV3_6651
if 
  0 >= $timer_countdown_farlie3
goto_if_false @DRIV3_6651
89@ = 0
93@ = 1
Text.PrintNow('DRI2_5', 5000, 1)
return 

:DRIV3_6651
if 
  95@ == 1
goto_if_false @DRIV3_6760
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_6760
if 
  not Char.LocateAnyMeansCar3D($scplayer, 35@, 400.0, 400.0, 400.0, False)
goto_if_false @DRIV3_6760
90@ = 0
89@ = 0
93@ = 1
Text.PrintNow('DRI2_26', 5000, 1)
return 

:DRIV3_6760
goto @DRIV3_6799

:DRIV3_6767
89@ = 0
93@ = 1
Text.PrintNow('DRI2_5', 5000, 1)
return 

:DRIV3_6799
goto @DRIV3_5094

:DRIV3_6806
89@ = 0
90@ = 1
return 

:DRIV3_6822
173@ = Sequence.Open()
Task.LeaveCar(-1, 35@)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(173@)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRIV3_6870
38@ = Char.StoreCarIsIn($scplayer)

:DRIV3_6870
131@ = 0

:DRIV3_6877
if 
  3 > 131@
goto_if_false @DRIV3_7089
if 
  not Char.IsDead(42@(131@,9i))
goto_if_false @DRIV3_7043
124@(131@,3i) = Blip.AddForChar(42@(131@,9i))
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_7004
Char.PerformSequence(42@(131@,9i), 173@)
Char.SetDecisionMaker(42@(131@,9i), 86@)
Char.SetRelationship(42@(131@,9i), RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(42@(131@,9i), RelationshipType.Like, PedType.Mission1)
goto @DRIV3_7036

:DRIV3_7004
90@ = 0
93@ = 1
Text.PrintNow('DRI2_5', 5000, 1)
return 

:DRIV3_7036
goto @DRIV3_7075

:DRIV3_7043
90@ = 0
93@ = 1
Text.PrintNow('DRI2_5', 5000, 1)
return 

:DRIV3_7075
131@ += 1
goto @DRIV3_6877

:DRIV3_7089
if 
  Blip.DoesExist(115@)
goto_if_false @DRIV3_7112
Blip.ChangeDisplay(115@, BlipDisplay.BlipOnly)

:DRIV3_7112
if 
  not Char.IsDead(41@)
goto_if_false @DRIV3_7166
Char.SetProofs(41@, False, False, False, False, False)
Char.SetSuffersCriticalHits(41@, True)
117@ = Blip.AddForChar(41@)
Char.PerformSequence(41@, 173@)

:DRIV3_7166
Sequence.Clear(173@)
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_7539
Car.FreezePosition(35@, True)
Car.LockDoors(35@, CarLock.Locked)
if 
  not Char.IsDead(51@)
goto_if_false @DRIV3_7370
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_7370
if 
  not Char.LocateAnyMeansCar3D(51@, 35@, 40.0, 40.0, 40.0, False)
goto_if_false @DRIV3_7309
Char.SetHealth(51@, 0)
Char.MarkAsNoLongerNeeded(51@)
if 
  not Car.IsDead(36@)
goto_if_false @DRIV3_7302
Car.MarkAsNoLongerNeeded(36@)

:DRIV3_7302
goto @DRIV3_7370

:DRIV3_7309
if 
  not Car.IsDead(36@)
goto_if_false @DRIV3_7370
173@ = Sequence.Open()
Task.LeaveCar(-1, 36@)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(173@)
Char.PerformSequence(51@, 173@)
Sequence.Clear(173@)
118@ = Blip.AddForChar(51@)

:DRIV3_7370
if 
  not Char.IsDead(52@)
goto_if_false @DRIV3_7539
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_7539
if 
  not Char.LocateAnyMeansCar3D(52@, 35@, 40.0, 40.0, 40.0, False)
goto_if_false @DRIV3_7478
Char.SetHealth(52@, 0)
Char.MarkAsNoLongerNeeded(52@)
if 
  not Car.IsDead(37@)
goto_if_false @DRIV3_7471
Car.MarkAsNoLongerNeeded(37@)

:DRIV3_7471
goto @DRIV3_7539

:DRIV3_7478
if 
  not Car.IsDead(37@)
goto_if_false @DRIV3_7539
173@ = Sequence.Open()
Task.LeaveCar(-1, 37@)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(173@)
Char.PerformSequence(52@, 173@)
Sequence.Clear(173@)
119@ = Blip.AddForChar(52@)

:DRIV3_7539
Text.PrintNow('DRI2_12', 5000, 1)

:DRIV3_7555
if 
  $timer_countdown_farlie3 > 0
goto_if_false @DRIV3_8200
wait 0
gosub @DRIV3_14579
if 
  93@ == 1
goto_if_false @DRIV3_7604
return 

:DRIV3_7604
if 
  109@ == 0
goto_if_false @DRIV3_7816
if 
  not Char.LocateAnyMeans3D($scplayer, 62@, 63@, 64@, 100.0, 100.0, 100.0, False)
goto_if_false @DRIV3_7816
if 
  105@ == 0
goto_if_false @DRIV3_7705
Text.PrintNow('DRI2_47', 5000, 1)
105@ = 1

:DRIV3_7705
if 
  105@ == 1
goto_if_false @DRIV3_7816
if 
  95@ == 1
goto_if_false @DRIV3_7816
if 
  not Char.LocateAnyMeansCar3D($scplayer, 35@, 400.0, 400.0, 400.0, False)
goto_if_false @DRIV3_7816
90@ = 0
89@ = 0
93@ = 1
Text.PrintNow('DRI2_26', 5000, 1)
return 

:DRIV3_7816
131@ = 0

:DRIV3_7823
if 
  3 > 131@
goto_if_false @DRIV3_7904
if 
  Char.IsDead(42@(131@,9i))
goto_if_false @DRIV3_7890
if 
  Blip.DoesExist(124@(131@,3i))
goto_if_false @DRIV3_7890
Blip.Remove(124@(131@,3i))

:DRIV3_7890
131@ += 1
goto @DRIV3_7823

:DRIV3_7904
131@ = 0

:DRIV3_7911
if 
  2 > 131@
goto_if_false @DRIV3_7992
if 
  Char.IsDead(51@(131@,2i))
goto_if_false @DRIV3_7978
if 
  Blip.DoesExist(118@(131@,2i))
goto_if_false @DRIV3_7978
Blip.Remove(118@(131@,2i))

:DRIV3_7978
131@ += 1
goto @DRIV3_7911

:DRIV3_7992
if 
  Char.IsDead(41@)
goto_if_false @DRIV3_8029
if 
  Blip.DoesExist(117@)
goto_if_false @DRIV3_8029
Blip.Remove(117@)

:DRIV3_8029
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_8161
if and
  Char.IsDead(42@)
  Char.IsDead(43@)
  Char.IsDead(44@)
  Char.IsDead(41@)
goto_if_false @DRIV3_8154
Blip.Remove(124@)
Blip.Remove(125@)
Blip.Remove(126@)
Blip.Remove(117@)
if 
  Char.IsDead(51@)
goto_if_false @DRIV3_8154
Blip.Remove(118@)
if 
  Char.IsDead(52@)
goto_if_false @DRIV3_8154
Blip.Remove(119@)
90@ = 0
94@ = 1
return 

:DRIV3_8154
goto @DRIV3_8193

:DRIV3_8161
90@ = 0
93@ = 1
Text.PrintNow('DRI2_5', 5000, 1)
return 

:DRIV3_8193
goto @DRIV3_7555

:DRIV3_8200
90@ = 0
93@ = 1
Car.Explode(35@)
Text.PrintNow('DRI2_5', 5000, 1)
return 

:DRIV3_8237
if 
  99@ == 0
goto_if_false @DRIV3_9948
178@ = 0
wait 2000
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
wait 2000
Camera.DoFade(1000, Fade.Out)

:DRIV3_8290
if 
  Camera.GetFadingStatus
goto_if_false @DRIV3_8314
wait 0
goto @DRIV3_8290

:DRIV3_8314
Streaming.RequestModel(409)

:DRIV3_8319
if 
  not Streaming.HasModelLoaded(409)
goto_if_false @DRIV3_8346
wait 0
goto @DRIV3_8319

:DRIV3_8346
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_8438
Car.SetCoordinates(35@, -1321.8, -189.79, 13.46)
Car.SetHeading(35@, 60.0)
77@, 78@, 79@ = Car.GetOffsetInWorldCoords(35@, 6.0, 10.5, -0.2)
34@ = Car.Create(409, 77@, 78@, 79@)

:DRIV3_8438
Streaming.MarkModelAsNoLongerNeeded(409)
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_9057
if 
  Blip.DoesExist(115@)
goto_if_false @DRIV3_8482
Blip.ChangeDisplay(115@, BlipDisplay.Both)

:DRIV3_8482
77@, 78@, 79@ = Car.GetOffsetInWorldCoords(35@, 6.0, -6.5, -0.5)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRIV3_8548
Char.WarpFromCarToCoord($scplayer, 77@, 78@, 79@)
goto @DRIV3_8562

:DRIV3_8548
Char.SetCoordinates($scplayer, 77@, 78@, 79@)

:DRIV3_8562
77@, 78@, 79@ = Car.GetOffsetInWorldCoords(35@, -1.0, -3.5, -0.2)
if 
  not Car.IsDead(36@)
goto_if_false @DRIV3_8650
77@, 78@, 79@ = Car.GetOffsetInWorldCoords(35@, -8.0, -8.0, -0.9)
Car.SetCoordinates(36@, 77@, 78@, 79@)

:DRIV3_8650
if 
  not Car.IsDead(37@)
goto_if_false @DRIV3_8709
77@, 78@, 79@ = Car.GetOffsetInWorldCoords(35@, 8.0, -8.0, -0.9)
Car.SetCoordinates(37@, 77@, 78@, 79@)

:DRIV3_8709
if 
  not Car.IsDead(38@)
goto_if_false @DRIV3_8768
77@, 78@, 79@ = Car.GetOffsetInWorldCoords(35@, 15.0, -20.0, -0.9)
Car.SetCoordinates(38@, 77@, 78@, 79@)

:DRIV3_8768
77@, 78@, 79@ = Car.GetOffsetInWorldCoords(35@, -2.0, -6.5, -0.5)
Camera.SetFixedPosition(77@, 78@, 79@, 0.0, 0.0, 0.0)
Camera.PointAtCar(35@, CameraMode.Fixed, SwitchType.JumpCut)
Car.LockDoors(35@, CarLock.Unlocked)
Streaming.LoadSpecialCharacter(1, 'TORINO')

:DRIV3_8852
if 
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @DRIV3_8878
wait 0
goto @DRIV3_8852

:DRIV3_8878
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_9050
77@, 78@, 79@ = Car.GetOffsetInWorldCoords(35@, -6.0, -20.0, 0.0)
40@ = Char.Create(PedType.Mission2, 290, 77@, 78@, 79@)
Char.SetDrownsInWater(40@, True)
Char.ShutUpForScriptedSpeech(40@, True)
Char.SetGetOutUpsideDownCar(40@, False)
Char.SetStayInSamePlace(40@, True)
85@ = Char.GetHeading(40@)
Char.SetRelationship(40@, RelationshipType.Like, PedType.Player1)
Char.SetDecisionMaker(40@, 87@)
Char.GiveWeapon(40@, WeaponType.MicroUzi, 1000)
Char.SetProofs(40@, False, False, True, False, False)
Char.SetNeverTargeted(40@, True)
Char.SetOnlyDamagedByPlayer(40@, True)
Task.LeaveCar(40@, 35@)
Car.SetHealth(35@, 1000)

:DRIV3_9050
goto @DRIV3_9089

:DRIV3_9057
94@ = 0
93@ = 1
Text.PrintNow('DRI2_22', 5000, 1)
return 

:DRIV3_9089
Streaming.MarkModelAsNoLongerNeeded(121)
Streaming.MarkModelAsNoLongerNeeded(122)
Streaming.MarkModelAsNoLongerNeeded(123)
Streaming.MarkModelAsNoLongerNeeded(352)
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_9175
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_9175
if 
  not Char.IsDead($scplayer)
goto_if_false @DRIV3_9175
Char.SetVisible($scplayer, False)
Char.SetVisible(53@, False)
Char.SetVisible(40@, False)

:DRIV3_9175
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_9382
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_9375
if 
  Char.IsGroupMember(53@, $Players_Group)
goto_if_false @DRIV3_9231
Char.RemoveFromGroup(53@)

:DRIV3_9231
77@, 78@, 79@ = Car.GetOffsetInWorldCoords(35@, 6.0, -20.0, 0.0)
if 
  Char.IsInAnyCar(53@)
goto_if_false @DRIV3_9297
Char.WarpFromCarToCoord(53@, 77@, 78@, 79@)
goto @DRIV3_9311

:DRIV3_9297
Char.SetCoordinates(53@, 77@, 78@, 79@)

:DRIV3_9311
Char.SetStayInSamePlace(53@, True)
77@, 78@, 79@ = Car.GetOffsetInWorldCoords(35@, 3.0, -20.0, 0.0)
Char.SetCoordinates($scplayer, 77@, 78@, 79@)
Task.TurnCharToFaceCoord($scplayer, 56@, 57@, 58@)

:DRIV3_9375
goto @DRIV3_9414

:DRIV3_9382
94@ = 0
93@ = 1
Text.PrintNow('DRI2_22', 5000, 1)
return 

:DRIV3_9414
Char.Delete(42@)
Char.Delete(43@)
Char.Delete(44@)
Char.Delete(41@)
Char.Delete(51@)
Char.Delete(52@)
Char.Delete(51@)
Char.Delete(52@)
Car.Delete(36@)
Car.Delete(37@)
World.ClearArea(56@, 57@, 58@, 1500.0, True)
Cutscene.Load('FARL_3B')

:DRIV3_9493
if 
  not Cutscene.HasLoaded
goto_if_false @DRIV3_9517
wait 0
goto @DRIV3_9493

:DRIV3_9517
Camera.DoFade(1000, Fade.In)
World.ClearArea(56@, 57@, 58@, 1500.0, True)
Cutscene.Start

:DRIV3_9544
if 
  not Cutscene.HasFinished
goto_if_false @DRIV3_9586
wait 0
World.ClearArea(56@, 57@, 58@, 1500.0, True)
goto @DRIV3_9544

:DRIV3_9586
Cutscene.Clear
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_9611
Char.SetVisible(53@, True)

:DRIV3_9611
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_9634
Char.SetVisible(40@, True)

:DRIV3_9634
if 
  Player.IsPlaying($player1)
goto_if_false @DRIV3_9657
Char.SetVisible($scplayer, True)

:DRIV3_9657
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_9759
Car.FreezePosition(35@, False)
Car.LockDoors(35@, CarLock.Locked)
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_9711
Task.DestroyCar(40@, 35@)

:DRIV3_9711
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_9759
if 
  Char.IsGroupMember(53@, $Players_Group)
goto_if_false @DRIV3_9751
Char.RemoveFromGroup(53@)

:DRIV3_9751
Task.DestroyCar(53@, 35@)

:DRIV3_9759
Camera.DoFade(0, Fade.Out)
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_9849
77@, 78@, 79@ = Car.GetOffsetInWorldCoords(35@, 6.0, -6.5, -0.5)
56@, 57@, 58@ = Car.GetCoordinates(35@)
83@ = Math.GetHeadingFromVector2D(56@, 57@)
Task.TurnCharToFaceCoord($scplayer, 56@, 57@, 58@)

:DRIV3_9849
World.ClearArea(56@, 57@, 58@, 1000.0, True)
wait 2000
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(1000, Fade.In)

:DRIV3_9883
if 
  Camera.GetFadingStatus
goto_if_false @DRIV3_9907
wait 0
goto @DRIV3_9883

:DRIV3_9907
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Game.SetPoliceIgnorePlayer($player1, True)
Text.PrintNow('DRI2_33', 10000, 1)
99@ = 1

:DRIV3_9948
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_9971
goto @DRIV3_10003

:DRIV3_9971
94@ = 0
93@ = 1
Text.PrintNow('DRI2_22', 5000, 1)
return 

:DRIV3_10003
if 
  Char.IsDead(53@)
goto_if_false @DRIV3_10079
89@ = 0
90@ = 0
94@ = 0
91@ = 0
92@ = 0
93@ = 1
Text.PrintNow('DRI2_31', 5000, 1)
return 

:DRIV3_10079
if 
  96@ == 0
goto_if_false @DRIV3_10562
if 
  Car.IsDead(35@)
goto_if_false @DRIV3_10562
96@ = 1
Blip.Remove(115@)
Player.AlterWantedLevelNoDrop($player1, 2)
TIMERB = 0
Group.SetSeparationRange($Players_Group, 30.0)
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_10221
Char.SetStayInSamePlace(40@, False)
if 
  not Char.IsGroupMember(40@, $Players_Group)
goto_if_false @DRIV3_10199
Group.SetMember($Players_Group, 40@)

:DRIV3_10199
Char.SetProofs(40@, False, False, False, False, False)
goto @DRIV3_10253

:DRIV3_10221
94@ = 0
93@ = 1
Text.PrintNow('DRI2_22', 5000, 1)
return 

:DRIV3_10253
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_10303
Char.SetStayInSamePlace(53@, False)
if 
  not Char.IsGroupMember(53@, $Players_Group)
goto_if_false @DRIV3_10303
Group.SetMember($Players_Group, 53@)

:DRIV3_10303
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_10562
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_10562
if 
  Char.LocateAnyMeansChar3D($scplayer, 40@, 30.0, 30.0, 30.0, False)
goto_if_false @DRIV3_10562
if 
  Char.LocateAnyMeansChar3D($scplayer, 53@, 30.0, 30.0, 30.0, False)
goto_if_false @DRIV3_10562
Text.PrintNow('DRI2_4', 5000, 1)
if 
  Car.IsInWater(35@)
goto_if_false @DRIV3_10462
Text.Print('DRI2_34', 10000, 1)
goto @DRIV3_10478

:DRIV3_10462
Text.Print('DRI2_24', 10000, 1)

:DRIV3_10478
if 
  100@ == 0
goto_if_false @DRIV3_10523
123@ = Blip.AddForCoord(-1734.05, -579.94, 15.56)
goto @DRIV3_10562

:DRIV3_10523
120@ = Blip.AddForCoord(59@, 60@, 61@)
if 
  108@ == 0
goto_if_false @DRIV3_10562
108@ = 1

:DRIV3_10562
if 
  107@ == 0
goto_if_false @DRIV3_10674
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_10674
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_10674
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRIV3_10674
if 
  Char.IsInAnyCar(40@)
goto_if_false @DRIV3_10674
if 
  Char.IsInAnyCar(53@)
goto_if_false @DRIV3_10674
Game.SetPoliceIgnorePlayer($player1, False)
107@ = 1

:DRIV3_10674
if 
  96@ == 1
goto_if_false @DRIV3_10746
gosub @DRIV3_14024
if 
  93@ == 1
goto_if_false @DRIV3_10719
return 

:DRIV3_10719
gosub @DRIV3_14579
if 
  93@ == 1
goto_if_false @DRIV3_10746
return 

:DRIV3_10746
if 
  not Char.LocateAnyMeans3D($scplayer, 56@, 57@, 58@, 150.0, 150.0, 150.0, False)
goto_if_false @DRIV3_10820
if 
  97@ == 0
goto_if_false @DRIV3_10813
97@ = 1

:DRIV3_10813
goto @DRIV3_10845

:DRIV3_10820
if 
  97@ == 1
goto_if_false @DRIV3_10845
97@ = 0

:DRIV3_10845
if 
  not Car.IsDead(35@)
goto_if_false @DRIV3_10875
56@, 57@, 58@ = Car.GetCoordinates(35@)

:DRIV3_10875
if 
  96@ == 1
goto_if_false @DRIV3_11204
Blip.Remove(115@)
if 
  Char.LocateAnyMeansChar3D($scplayer, 53@, 30.0, 30.0, 30.0, False)
goto_if_false @DRIV3_11168
if 
  100@ == 0
goto_if_false @DRIV3_11011
if 
  not Blip.DoesExist(123@)
goto_if_false @DRIV3_11004
123@ = Blip.AddForCoord(-1734.05, -579.94, 15.56)
Text.PrintNow('DRI2_34', 5000, 1)

:DRIV3_11004
goto @DRIV3_11082

:DRIV3_11011
if 
  not Blip.DoesExist(120@)
goto_if_false @DRIV3_11082
120@ = Blip.AddForCoord(59@, 60@, 61@)
Text.PrintNow('DRI2_25', 5000, 1)
if 
  108@ == 0
goto_if_false @DRIV3_11082
108@ = 1

:DRIV3_11082
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_11125
if 
  not Char.IsGroupMember(40@, $Players_Group)
goto_if_false @DRIV3_11125
Group.SetMember($Players_Group, 40@)

:DRIV3_11125
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_11168
if 
  not Char.IsGroupMember(53@, $Players_Group)
goto_if_false @DRIV3_11168
Group.SetMember($Players_Group, 53@)

:DRIV3_11168
Car.MarkAsNoLongerNeeded(34@)
Car.MarkAsNoLongerNeeded(38@)
Streaming.MarkModelAsNoLongerNeeded(482)
Streaming.MarkModelAsNoLongerNeeded(409)
91@ = 1
94@ = 0
return 

:DRIV3_11204
return 

:DRIV3_11206
gosub @DRIV3_14024
if 
  93@ == 1
goto_if_false @DRIV3_11233
return 

:DRIV3_11233
gosub @DRIV3_14579
if 
  93@ == 1
goto_if_false @DRIV3_11260
return 

:DRIV3_11260
if 
  100@ == 1
goto_if_false @DRIV3_11285
gosub @DRIV3_13410

:DRIV3_11285
if 
  107@ == 0
goto_if_false @DRIV3_11397
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_11397
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_11397
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRIV3_11397
if 
  Char.IsInAnyCar(40@)
goto_if_false @DRIV3_11397
if 
  Char.IsInAnyCar(53@)
goto_if_false @DRIV3_11397
Game.SetPoliceIgnorePlayer($player1, False)
107@ = 1

:DRIV3_11397
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_11880
if 
  110@ == 0
goto_if_false @DRIV3_11880
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRIV3_11873
if 
  112@ == 0
goto_if_false @DRIV3_11866
38@ = Char.StoreCarIsIn($scplayer)
39@ = Car.GetMaximumNumberOfPassengers(38@)
if 
  2 > 39@
goto_if_false @DRIV3_11859
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
if 
  111@ == 0
goto_if_false @DRIV3_11611
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6402)

:DRIV3_11528
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_11554
wait 0
goto @DRIV3_11528

:DRIV3_11554
Text.PrintNow('FAR3_LC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_11574
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_11600
wait 0
goto @DRIV3_11574

:DRIV3_11600
Text.ClearThisPrint('FAR3_LC')

:DRIV3_11611
if 
  111@ == 1
goto_if_false @DRIV3_11719
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6400)

:DRIV3_11636
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_11662
wait 0
goto @DRIV3_11636

:DRIV3_11662
Text.PrintNow('FAR3_LA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_11682
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_11708
wait 0
goto @DRIV3_11682

:DRIV3_11708
Text.ClearThisPrint('FAR3_LA')

:DRIV3_11719
if 
  111@ == 2
goto_if_false @DRIV3_11827
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6401)

:DRIV3_11744
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_11770
wait 0
goto @DRIV3_11744

:DRIV3_11770
Text.PrintNow('FAR3_LB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_11790
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_11816
wait 0
goto @DRIV3_11790

:DRIV3_11816
Text.ClearThisPrint('FAR3_LB')

:DRIV3_11827
111@ += 1
if 
  111@ >= 3
goto_if_false @DRIV3_11859
111@ = 0

:DRIV3_11859
112@ = 1

:DRIV3_11866
goto @DRIV3_11880

:DRIV3_11873
112@ = 0

:DRIV3_11880
if 
  100@ == 0
goto_if_false @DRIV3_12023
if or
  Char.LocateAnyMeans3D($scplayer, -1734.05, -579.94, 15.56, 20.0, 20.0, 20.0, False)
  not Char.LocateAnyMeans3D($scplayer, 62@, 63@, 64@, 600.0, 600.0, 600.0, False)
goto_if_false @DRIV3_12023
100@ = 1
if 
  not Player.IsWantedLevelGreater($player1, 3)
goto_if_false @DRIV3_12009
Player.AlterWantedLevelNoDrop($player1, 3)

:DRIV3_12009
Game.SetPoliceIgnorePlayer($player1, False)
107@ = 1

:DRIV3_12023
if 
  110@ == 0
goto_if_false @DRIV3_13408
if 
  109@ == 0
goto_if_false @DRIV3_13408
if 
  100@ == 0
goto_if_false @DRIV3_12333
if 
  Char.LocateAnyMeans3D($scplayer, -1734.05, -579.94, 15.56, 20.0, 20.0, 20.0, False)
goto_if_false @DRIV3_12285
if 
  Blip.DoesExist(123@)
goto_if_false @DRIV3_12285
Blip.Remove(123@)
if 
  not Player.IsWantedLevelGreater($player1, 3)
goto_if_false @DRIV3_12171
Player.AlterWantedLevelNoDrop($player1, 3)

:DRIV3_12171
128@ = Blip.AddSpriteForCoord(80@, 81@, 82@, RadarSprite.Spray)
Text.Print('DRI2_46', 5000, 1)
104@ = 1
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_12244
Char.ClearRelationship(40@, RelationshipType.Like, PedType.Cop)
Char.SetRelationship(40@, RelationshipType.Hate, PedType.Cop)

:DRIV3_12244
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_12278
Char.ClearRelationship(53@, RelationshipType.Like, PedType.Cop)
Char.SetRelationship(53@, RelationshipType.Hate, PedType.Cop)

:DRIV3_12278
100@ = 1

:DRIV3_12285
if 
  Char.LocateAnyMeans3D($scplayer, -1734.05, -579.94, 15.56, 4.0, 4.0, 4.0, True)
goto_if_false @DRIV3_12333

:DRIV3_12333
if 
  108@ == 1
goto_if_false @DRIV3_13408
if 
  100@ == 1
goto_if_false @DRIV3_12539
if and
  $s7_rnd_1 >= 33
  47 > $s7_rnd_1
goto_if_false @DRIV3_12539
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DRIV3_12539
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_12539
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_12539
if 
  Char.IsInAnyCar(53@)
goto_if_false @DRIV3_12539
if 
  Char.IsInAnyCar(40@)
goto_if_false @DRIV3_12539
if 
  $s7_rnd_1 == 33
goto_if_false @DRIV3_12532
132@ = 25
if 
  TIMERA > 10000
goto_if_false @DRIV3_12525
gosub @DRIV3_15514

:DRIV3_12525
goto @DRIV3_12539

:DRIV3_12532
gosub @DRIV3_15514

:DRIV3_12539
if 
  Char.LocateAnyMeans3D($scplayer, 59@, 60@, 61@, 4.0, 4.0, 4.0, True)
goto_if_false @DRIV3_13408
91@ = 0
92@ = 1
178@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
TIMERA = 0
TIMERB = 0

:DRIV3_12627
if 
  8000 > TIMERA
goto_if_false @DRIV3_13378
wait 0
if 
  178@ == 0
goto_if_false @DRIV3_12858
77@, 78@, 79@ = Char.GetOffsetInWorldCoords($scplayer, 3.0, 8.0, 0.4)
Camera.SetFixedPosition(77@, 78@, 79@, 0.0, 0.0, 0.0)
Camera.PointAtChar($scplayer, CameraMode.Fixed, SwitchType.JumpCut)
World.ClearArea(59@, 60@, 61@, 100.0, True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6409)

:DRIV3_12761
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_12787
wait 0
goto @DRIV3_12761

:DRIV3_12787
Text.PrintNow('FAR3_NA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_12807
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_12833
wait 0
goto @DRIV3_12807

:DRIV3_12833
Text.ClearThisPrint('FAR3_NA')
178@ = 1
TIMERB = 0

:DRIV3_12858
if 
  178@ == 1
goto_if_false @DRIV3_13128
if 
  TIMERB > 500
goto_if_false @DRIV3_13128
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_13128
77@, 78@, 79@ = Char.GetOffsetInWorldCoords(40@, 3.0, -2.0, 0.5)
Camera.SetFixedPosition(77@, 78@, 79@, 0.0, 0.0, 0.0)
Camera.PointAtChar(40@, CameraMode.Fixed, SwitchType.JumpCut)
if 
  Char.IsGroupMember(40@, $Players_Group)
goto_if_false @DRIV3_12999
Char.RemoveFromGroup(40@)

:DRIV3_12999
if 
  Char.IsInAnyCar(40@)
goto_if_false @DRIV3_13020
Task.LeaveAnyCar(40@)

:DRIV3_13020
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6430)

:DRIV3_13031
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_13057
wait 0
goto @DRIV3_13031

:DRIV3_13057
Text.PrintNow('FAR3_NB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:DRIV3_13077
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_13103
wait 0
goto @DRIV3_13077

:DRIV3_13103
Text.ClearThisPrint('FAR3_NB')
TIMERB = 0
178@ = 2

:DRIV3_13128
if 
  178@ == 2
goto_if_false @DRIV3_13280
if 
  TIMERB > 500
goto_if_false @DRIV3_13280
178@ = 3
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_13212
Task.GoStraightToCoord(40@, -2624.57, 1410.46, 6.5, MoveState.Walk, -1)

:DRIV3_13212
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_13280
if 
  Char.IsGroupMember(53@, $Players_Group)
goto_if_false @DRIV3_13252
Char.RemoveFromGroup(53@)

:DRIV3_13252
if 
  Char.IsInAnyCar(53@)
goto_if_false @DRIV3_13280
Task.LeaveAnyCar(53@)
TIMERB = 0

:DRIV3_13280
if 
  178@ == 3
goto_if_false @DRIV3_13371
if 
  TIMERB > 200
goto_if_false @DRIV3_13371
178@ = 4
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_13364
Task.GoStraightToCoord(53@, -2625.57, 1409.46, 6.5, MoveState.Walk, -1)

:DRIV3_13364
TIMERB = 0

:DRIV3_13371
goto @DRIV3_12627

:DRIV3_13378
Char.Delete(40@)
Char.Delete(53@)
Car.MarkAsNoLongerNeeded(38@)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)

:DRIV3_13408
return 

:DRIV3_13410
if 
  100@ == 1
goto_if_false @DRIV3_14022
if 
  104@ == 0
goto_if_false @DRIV3_13688
if and
  110@ == 0
  109@ == 0
goto_if_false @DRIV3_13688
if 
  Player.IsWantedLevelGreater($player1, 0)
goto_if_false @DRIV3_13688
104@ = 1
if 
  not Blip.DoesExist(128@)
goto_if_false @DRIV3_13544
128@ = Blip.AddSpriteForCoord(80@, 81@, 82@, RadarSprite.Spray)
Text.Print('DRI2_46', 5000, 1)

:DRIV3_13544
if 
  Blip.DoesExist(123@)
goto_if_false @DRIV3_13565
Blip.Remove(123@)

:DRIV3_13565
if 
  Blip.DoesExist(120@)
goto_if_false @DRIV3_13586
Blip.Remove(120@)

:DRIV3_13586
DecisionMakerChar.AddEventResponse(87@, 36, 1022, 0.0, 100.0, 0.0, 0.0, True, False)
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_13654
Char.SetRelationship(40@, RelationshipType.Hate, PedType.Cop)
Char.ClearRelationship(40@, RelationshipType.Like, PedType.Cop)

:DRIV3_13654
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_13688
Char.SetRelationship(53@, RelationshipType.Hate, PedType.Cop)
Char.ClearRelationship(53@, RelationshipType.Like, PedType.Cop)

:DRIV3_13688
if 
  104@ == 1
goto_if_false @DRIV3_14022
if 
  not Player.IsWantedLevelGreater($player1, 0)
goto_if_false @DRIV3_14022
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_13821
Char.ClearRelationship(40@, RelationshipType.Hate, PedType.Cop)
if 
  Char.IsGroupMember(40@, $Players_Group)
goto_if_false @DRIV3_13773
Char.RemoveFromGroup(40@)

:DRIV3_13773
Char.ClearTasks(40@)
if 
  not Char.IsGroupMember(40@, $Players_Group)
goto_if_false @DRIV3_13812
Group.SetMember($Players_Group, 40@)
Group.SetFollowStatus($Players_Group, True)

:DRIV3_13812
Char.SetRelationship(40@, RelationshipType.Like, PedType.Cop)

:DRIV3_13821
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_13909
Char.ClearRelationship(53@, RelationshipType.Hate, PedType.Cop)
if 
  Char.IsGroupMember(53@, $Players_Group)
goto_if_false @DRIV3_13870
Char.RemoveFromGroup(53@)

:DRIV3_13870
Char.ClearTasks(53@)
if 
  not Char.IsGroupMember(53@, $Players_Group)
goto_if_false @DRIV3_13909
Group.SetMember($Players_Group, 53@)
Group.SetFollowStatus($Players_Group, True)

:DRIV3_13909
DecisionMakerChar.ClearEventResponse(87@, 36)
104@ = 0
TIMERA = 0
if 
  not Blip.DoesExist(120@)
goto_if_false @DRIV3_14001
120@ = Blip.AddForCoord(59@, 60@, 61@)
Text.PrintNow('DRI2_25', 5000, 1)
if 
  108@ == 0
goto_if_false @DRIV3_14001
108@ = 1

:DRIV3_14001
if 
  Blip.DoesExist(128@)
goto_if_false @DRIV3_14022
Blip.Remove(128@)

:DRIV3_14022
return 

:DRIV3_14024
if 
  not Char.IsDead(40@)
goto_if_false @DRIV3_14538
if 
  110@ == 0
goto_if_false @DRIV3_14178
if 
  not Char.IsGroupMember(40@, $Players_Group)
goto_if_false @DRIV3_14178
Text.PrintNow('DRI2_3', 5000, 1)
if 
  Blip.DoesExist(120@)
goto_if_false @DRIV3_14114
Blip.Remove(120@)

:DRIV3_14114
if 
  Blip.DoesExist(123@)
goto_if_false @DRIV3_14135
Blip.Remove(123@)

:DRIV3_14135
if 
  Blip.DoesExist(127@)
goto_if_false @DRIV3_14156
Blip.Remove(127@)

:DRIV3_14156
121@ = Blip.AddForChar(40@)
Blip.SetAsFriendly(121@, True)
110@ = 1

:DRIV3_14178
if 
  110@ == 1
goto_if_false @DRIV3_14531
if 
  Char.LocateAnyMeansChar3D($scplayer, 40@, 8.0, 8.0, 8.0, False)
goto_if_false @DRIV3_14531
if 
  not Char.IsGroupMember(40@, $Players_Group)
goto_if_false @DRIV3_14259
Group.SetMember($Players_Group, 40@)

:DRIV3_14259
110@ = 0
Blip.Remove(121@)
if 
  109@ == 0
goto_if_false @DRIV3_14531
if 
  100@ == 1
goto_if_false @DRIV3_14479
if 
  104@ == 0
goto_if_false @DRIV3_14403
if 
  not Blip.DoesExist(120@)
goto_if_false @DRIV3_14396
120@ = Blip.AddForCoord(59@, 60@, 61@)
Text.PrintNow('DRI2_25', 5000, 1)
if 
  108@ == 0
goto_if_false @DRIV3_14396
108@ = 1

:DRIV3_14396
goto @DRIV3_14472

:DRIV3_14403
if 
  not Blip.DoesExist(128@)
goto_if_false @DRIV3_14435
128@ = Blip.AddSpriteForCoord(80@, 81@, 82@, RadarSprite.Spray)

:DRIV3_14435
Text.PrintNow('DRI2_46', 5000, 1)
if 
  Blip.DoesExist(123@)
goto_if_false @DRIV3_14472
Blip.Remove(123@)

:DRIV3_14472
goto @DRIV3_14531

:DRIV3_14479
if 
  not Blip.DoesExist(123@)
goto_if_false @DRIV3_14515
123@ = Blip.AddForCoord(-1734.05, -579.94, 15.56)

:DRIV3_14515
Text.PrintNow('DRI2_34', 5000, 1)

:DRIV3_14531
goto @DRIV3_14577

:DRIV3_14538
94@ = 0
94@ = 0
93@ = 1
Text.PrintNow('DRI2_22', 5000, 1)
return 

:DRIV3_14577
return 

:DRIV3_14579
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_15464
if 
  109@ == 0
goto_if_false @DRIV3_14754
if 
  not Char.IsGroupMember(53@, $Players_Group)
goto_if_false @DRIV3_14754
Text.PrintNow('DRI2_32', 5000, 1)
if 
  Blip.DoesExist(120@)
goto_if_false @DRIV3_14669
Blip.Remove(120@)

:DRIV3_14669
if 
  Blip.DoesExist(127@)
goto_if_false @DRIV3_14690
Blip.Remove(127@)

:DRIV3_14690
if 
  Blip.DoesExist(123@)
goto_if_false @DRIV3_14711
Blip.Remove(123@)

:DRIV3_14711
if 
  Blip.DoesExist(116@)
goto_if_false @DRIV3_14732
Blip.Remove(116@)

:DRIV3_14732
122@ = Blip.AddForChar(53@)
Blip.SetAsFriendly(122@, True)
109@ = 1

:DRIV3_14754
if 
  109@ == 1
goto_if_false @DRIV3_15457
if 
  not Char.IsDead(53@)
goto_if_false @DRIV3_15411
if 
  Char.LocateAnyMeansChar3D($scplayer, 53@, 8.0, 8.0, 8.0, False)
goto_if_false @DRIV3_15404
if 
  not Char.IsGroupMember(53@, $Players_Group)
goto_if_false @DRIV3_14851
Group.SetMember($Players_Group, 53@)

:DRIV3_14851
109@ = 0
Blip.Remove(122@)
if 
  110@ == 0
goto_if_false @DRIV3_15141
if 
  91@ == 1
goto_if_false @DRIV3_15141
if 
  100@ == 1
goto_if_false @DRIV3_15089
if 
  104@ == 0
goto_if_false @DRIV3_15013
if 
  not Blip.DoesExist(120@)
goto_if_false @DRIV3_15006
120@ = Blip.AddForCoord(59@, 60@, 61@)
Text.PrintNow('DRI2_25', 5000, 1)
if 
  108@ == 0
goto_if_false @DRIV3_15006
108@ = 1

:DRIV3_15006
goto @DRIV3_15082

:DRIV3_15013
if 
  not Blip.DoesExist(128@)
goto_if_false @DRIV3_15045
128@ = Blip.AddSpriteForCoord(80@, 81@, 82@, RadarSprite.Spray)

:DRIV3_15045
Text.PrintNow('DRI2_46', 5000, 1)
if 
  Blip.DoesExist(123@)
goto_if_false @DRIV3_15082
Blip.Remove(123@)

:DRIV3_15082
goto @DRIV3_15141

:DRIV3_15089
if 
  not Blip.DoesExist(123@)
goto_if_false @DRIV3_15125
123@ = Blip.AddForCoord(-1734.05, -579.94, 15.56)

:DRIV3_15125
Text.PrintNow('DRI2_34', 5000, 1)

:DRIV3_15141
if 
  89@ == 1
goto_if_false @DRIV3_15404
if and
  $s7_rnd_1 >= 5
  8 > $s7_rnd_1
goto_if_false @DRIV3_15220
if 
  not Blip.DoesExist(127@)
goto_if_false @DRIV3_15220
127@ = Blip.AddForCoord(-2071.0, 209.0, 35.0)

:DRIV3_15220
if and
  $s7_rnd_1 >= 9
  12 > $s7_rnd_1
goto_if_false @DRIV3_15281
if 
  not Blip.DoesExist(127@)
goto_if_false @DRIV3_15281
127@ = Blip.AddForCoord(-2071.0, 209.0, 35.0)

:DRIV3_15281
if and
  $s7_rnd_1 >= 15
  24 > $s7_rnd_1
goto_if_false @DRIV3_15336
if 
  not Blip.DoesExist(127@)
goto_if_false @DRIV3_15336
116@ = Blip.AddForCoord(71@, 72@, 73@)

:DRIV3_15336
if 
  89@ == 1
goto_if_false @DRIV3_15404
if 
  0 >= $timer_countdown_farlie3
goto_if_false @DRIV3_15404
89@ = 0
93@ = 1
Text.PrintNow('FAR3_FD', 5000, 1)
return 

:DRIV3_15404
goto @DRIV3_15457

:DRIV3_15411
90@ = 0
89@ = 0
94@ = 0
93@ = 1
Text.PrintNow('DRI2_31', 5000, 1)
return 

:DRIV3_15457
goto @DRIV3_15512

:DRIV3_15464
90@ = 0
89@ = 0
94@ = 0
93@ = 1
Text.PrintNow('DRI2_31', 5000, 1)
return 
return 

:DRIV3_15512
return 

:DRIV3_15514
if 
  106@ == 0
goto_if_false @DRIV3_15554
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 133@(132@,40i))
106@ = 1

:DRIV3_15554
if 
  106@ == 1
goto_if_false @DRIV3_15821
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_15821
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow($flag_phone_dialog_driv3(132@,40s), 10000, 1)
if 
  $s7_rnd_1 == 0
goto_if_false @DRIV3_15630
102@ = 1

:DRIV3_15630
if 
  $s7_rnd_1 == 5
goto_if_false @DRIV3_15684
if 
  not Blip.DoesExist(127@)
goto_if_false @DRIV3_15684
127@ = Blip.AddForCoord(-2071.0, 209.0, 35.0)

:DRIV3_15684
if 
  $s7_rnd_1 == 8
goto_if_false @DRIV3_15714
Blip.Remove(127@)
102@ = 1

:DRIV3_15714
if 
  $s7_rnd_1 == 11
goto_if_false @DRIV3_15752
127@ = Blip.AddForCoord(-1772.0, 152.0, 152.0)

:DRIV3_15752
if 
  $s7_rnd_1 == 14
goto_if_false @DRIV3_15782
102@ = 1
Blip.Remove(127@)

:DRIV3_15782
if 
  $s7_rnd_1 == 18
goto_if_false @DRIV3_15814
116@ = Blip.AddForCoord(71@, 72@, 73@)

:DRIV3_15814
106@ = 2

:DRIV3_15821
if 
  106@ == 2
goto_if_false @DRIV3_15891
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DRIV3_15891
TIMERA = 0
106@ = 0
Text.ClearThisPrint($flag_phone_dialog_driv3(132@,40s))
132@ += 1
$s7_rnd_1 += 1

:DRIV3_15891
return 

:DRIV3_15893
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Blip.Remove($synd_contact_blip)
Text.PrintWithNumberBig('M_PASSS', 7000, 5000, TextStyle.Middle)
Player.AddScore($player1, 7000)
Stat.AwardPlayerMissionRespect(25)
$flag_synd_mission_counter += 1
Stat.RegisterMissionPassed('FAR_3')
Stat.PlayerMadeProgress(1)
Blip.Remove($synd_contact_blip)
$synd_contact_blip = Blip.AddSpriteForContactPoint($garageX, $garageY, $garageZ, $synd_blip_icon)
Stat.SetInt(StatId.PassedFarlie3, 1)
return 

:DRIV3_15991
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:DRIV3_16009
$onmission = 0
$flag_is_farlie3_running = 0
if 
  Player.IsPlaying($player1)
goto_if_false @DRIV3_16046
Char.ShutUpForScriptedSpeech($scplayer, False)

:DRIV3_16046
Game.SetPoliceIgnorePlayer($player1, False)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(482)
Streaming.MarkModelAsNoLongerNeeded(121)
Streaming.MarkModelAsNoLongerNeeded(122)
Streaming.MarkModelAsNoLongerNeeded(123)
Pickup.Remove(55@)
Streaming.MarkModelAsNoLongerNeeded(409)
131@ = 0

:DRIV3_16092
if 
  3 > 131@
goto_if_false @DRIV3_16133
Char.MarkAsNoLongerNeeded(42@(131@,9i))
131@ += 1
goto @DRIV3_16092

:DRIV3_16133
Char.MarkAsNoLongerNeeded(51@)
Char.MarkAsNoLongerNeeded(52@)
Char.RemoveElegantly(40@)
Char.RemoveElegantly(53@)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Car.MarkAsNoLongerNeeded(35@)
Car.MarkAsNoLongerNeeded(36@)
Car.MarkAsNoLongerNeeded(37@)
Car.MarkAsNoLongerNeeded(34@)
Streaming.MarkModelAsNoLongerNeeded(463)
Car.MarkAsNoLongerNeeded(36@)
Car.MarkAsNoLongerNeeded(37@)
Car.MarkAsNoLongerNeeded(38@)
Blip.Remove(124@)
Blip.Remove(125@)
Blip.Remove(126@)
Blip.Remove(114@)
Blip.Remove(115@)
Blip.Remove(116@)
Blip.Remove(117@)
Blip.Remove(120@)
Blip.Remove(121@)
Blip.Remove(122@)
Blip.Remove(123@)
Blip.Remove(127@)
Blip.Remove(118@)
Blip.Remove(119@)
Blip.Remove(128@)
Car.MarkAsNoLongerNeeded(38@)
Streaming.MarkModelAsNoLongerNeeded(426)
Hud.ClearTimer($timer_countdown_farlie3)
Hud.ClearCounter($int_distance_player_girl)
$2652 = Blip.AddShortRangeSpriteForCoord(-1908.9, 292.3, 40.0, RadarSprite.Spray)
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

//-------------Mission 67---------------
// Originally: Zeroing In

:STEAL1
script_name 'STEAL1'
gosub @STEAL1_581
if 
  has_deatharrest_been_executed 
goto_if_false @STEAL1_38
gosub @STEAL1_7629

:STEAL1_38
gosub @STEAL1_7718
terminate_this_script 

:STEAL1_47
Streaming.RequestModel(558)
Streaming.RequestModel(41)
Streaming.LoadAllModelsNow

:STEAL1_58
if or
  not Streaming.HasModelLoaded(558)
  not Streaming.HasModelLoaded(41)
goto_if_false @STEAL1_89
wait 0
goto @STEAL1_58

:STEAL1_89
CarGenerator.SuppressCarModel(558)
438@ = -2027.335
439@ = 326.0038
440@ = 34.2344
441@ = 88.2674
445@ = -2025.443
446@ = 323.5849
447@ = 34.1015
448@ = 77.8368
World.ClearArea(438@, 439@, 440@, 5.0, True)
435@ = Car.Create(558, 438@, 439@, 440@)
Car.SetHeading(435@, 441@)
Car.LockDoors(435@, CarLock.LockoutPlayerOnly)
Car.SetOnlyDamagedByPlayer(435@, True)
443@ = Char.Create(PedType.CivFemale, 41, 445@, 446@, 447@)
Char.SetHeading(443@, 448@)
Car.SetLoadCollisionFlag(435@, False)
436@ = Blip.AddForCarOld(435@, BlipColor.Yellow, BlipDisplay.MarkerOnly)
Car.ChangeColor(435@, 5, 1)
return 

:STEAL1_287
Streaming.MarkModelAsNoLongerNeeded(558)
return 
$mod_garage_blips = Blip.AddForCoord(0.0, 0.0, 0.0)

:STEAL1_314
Streaming.RequestModel(602)

:STEAL1_319
if 
  not Streaming.HasModelLoaded(602)
goto_if_false @STEAL1_346
wait 0
goto @STEAL1_319

:STEAL1_346
450@ = -2043.911
451@ = 179.1213
452@ = 27.8507
453@ = 270.0
World.ClearArea(450@, 451@, 452@, 5.0, True)
449@ = Car.Create(602, 450@, 451@, 452@)
Car.SetHeading(449@, 453@)
Char.WarpIntoCar($scplayer, 449@)
return 

:STEAL1_439
Streaming.LoadSpecialCharacter(1, 'ZERO')
Streaming.RequestAnimation("CAR_CHAT")

:STEAL1_464
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasAnimationLoaded("CAR_CHAT")
goto_if_false @STEAL1_502
wait 0
goto @STEAL1_464

:STEAL1_502
455@ = -2034.566
456@ = 175.2188
457@ = 27.8516
458@ = 13.516
World.ClearArea(455@, 456@, 457@, 5.0, True)
454@ = Char.Create(PedType.CivMale, 290, 455@, 456@, 457@)
return 

:STEAL1_581
Stat.RegisterMissionGiven
$onmission = 1
wait 0
34@ = 0
36@ = 0
37@ = 0
35@ = 0
38@ = 1
39@ = 1
40@ = 0
50@ = 0
90@ = 500
$st1_route_nx = 57
$7401 = 2
$st1_route = 3
$st1_final_dest = 35.0
51@ = 0
52@ = 0
400@ = 0
404@ = 1
402@ = 1
403@ = 2
401@ = 0
60@ = -16776961
61@ = -8355496
43@ = -16776961
44@ = -12566358
45@ = -8355496
46@ = 0
47@ = 0
62@ = 255
63@ = 0
64@ = 0
65@ = 255
66@ = 0
67@ = 0
68@ = 0
69@ = 0
70@ = 16777216
71@ = 65536
72@ = 256
73@ = 1
119@ = -2711.3
120@ = 118.81
121@ = 3.99
122@ = 2.07
123@ = 178.25
352@ = -2033.175
353@ = 178.6755
354@ = 27.8516
102@ = -2708.79
108@ = -9.59
114@ = 3.98
304@ = -2689.74
310@ = 91.48
316@ = 5.04
305@ = -2692.04
311@ = 91.71
317@ = 4.39
307@ = -2904.51
313@ = 1181.56
319@ = 13.71
308@ = -2916.92
314@ = 1182.06
320@ = 13.59
309@ = -2917.76
315@ = 1176.93
321@ = 13.67
322@ = -2899.05
324@ = 1170.08
326@ = 13.03
323@ = -2898.66
325@ = 1166.74
327@ = 13.21
328@ = 0.0
334@ = 0.0
340@ = 0.0
329@ = 0.0
335@ = 0.0
341@ = 0.0
330@ = 0.0
336@ = 0.0
342@ = 0.0
331@ = 0.0
337@ = 0.0
343@ = 0.0
332@ = 0.0
338@ = 0.0
344@ = 0.0
333@ = 0.0
339@ = 0.0
345@ = 0.0
405@ = -2704.72
415@ = 113.56
425@ = 5.52
406@ = -2701.12
416@ = 100.21
426@ = 5.47
407@ = -2699.84
417@ = 94.03
427@ = 6.41
408@ = -2710.6
418@ = 126.88
428@ = 5.13
409@ = 0.0
419@ = 0.0
429@ = 0.0
set_lvar_text_label 372@s = 'STL1_AA'
set_lvar_text_label 374@s = 'STL1_AB'
set_lvar_text_label 376@s = 'STL1_AC'
set_lvar_text_label 378@s = 'STL1_AD'
set_lvar_text_label 380@s = 'STL1_AE'
set_lvar_int_to_constant 384@ = 20601
set_lvar_int_to_constant 385@ = 20602
set_lvar_int_to_constant 386@ = 20603
set_lvar_int_to_constant 387@ = 20604
set_lvar_int_to_constant 388@ = 20600
Text.LoadMissionText('STEAL1')
85@ = 0
86@ = 1
48@ = 2
Weather.ForceNow(WeatherType.SunnySf)
Streaming.SetAreaVisible(1)
Cutscene.Load('STEAL_1')

:STEAL1_1706
if 
  not Cutscene.HasLoaded
goto_if_false @STEAL1_1730
wait 0
goto @STEAL1_1706

:STEAL1_1730
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:STEAL1_1739
if 
  not Cutscene.HasFinished
goto_if_false @STEAL1_1763
wait 0
goto @STEAL1_1739

:STEAL1_1763
Camera.DoFade(0, Fade.Out)

:STEAL1_1769
if 
  Camera.GetFadingStatus
goto_if_false @STEAL1_1793
wait 0
goto @STEAL1_1769

:STEAL1_1793
Cutscene.Clear
Streaming.SetAreaVisible(0)
Player.SetControl($player1, False)

:STEAL1_1806
wait 0
if 
  400@ <> 0
goto_if_false @STEAL1_2149
if 
  401@ == 0
goto_if_false @STEAL1_1874
if 
  Audio.HasMissionAudioLoaded(403@)
goto_if_false @STEAL1_1867
Audio.ClearMissionAudio(403@)

:STEAL1_1867
401@ = 1

:STEAL1_1874
if 
  401@ == 1
goto_if_false @STEAL1_1911
Audio.LoadMissionAudio(402@, 383@(400@,17i))
401@ = 2

:STEAL1_1911
if 
  401@ == 2
goto_if_false @STEAL1_1971
if 
  Audio.HasMissionAudioLoaded(402@)
goto_if_false @STEAL1_1971
Audio.PlayMissionAudio(402@)
Text.PrintNow(370@(400@,6s), 10000, 1)
401@ = 3

:STEAL1_1971
if 
  401@ == 3
goto_if_false @STEAL1_2149
if 
  Audio.HasMissionAudioFinished(402@)
goto_if_false @STEAL1_2088
Text.ClearThisPrint(370@(400@,6s))
if 
  402@ == 1
goto_if_false @STEAL1_2053
402@ = 2
403@ = 1
goto @STEAL1_2067

:STEAL1_2053
402@ = 1
403@ = 2

:STEAL1_2067
400@ = 0
401@ = 0
goto @STEAL1_2149

:STEAL1_2088
if 
  not Audio.HasMissionAudioLoaded(403@)
goto_if_false @STEAL1_2149
if 
  60 > 400@
goto_if_false @STEAL1_2149
set_lvar_int_to_lvar_int 404@ = 400@
404@ += 1
Audio.LoadMissionAudio(403@, 383@(404@,17i))

:STEAL1_2149
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @STEAL1_2171
goto @STEAL1_7647

:STEAL1_2171
if 
  not Char.IsDead($scplayer)
goto_if_false @STEAL1_2295
if 
  3 > 34@
goto_if_false @STEAL1_2295
if 
  35@ == 0
goto_if_false @STEAL1_2254
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @STEAL1_2254
449@ = Char.StoreCarIsIn($scplayer)
35@ = 1

:STEAL1_2254
if 
  35@ == 1
goto_if_false @STEAL1_2295
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @STEAL1_2295
35@ = 0

:STEAL1_2295
if 
  34@ == 0
goto_if_false @STEAL1_3936
if 
  37@ == 0
goto_if_false @STEAL1_2769
World.ClearArea(352@, 353@, 354@, 25.0, True)
Garage.Open('HBGDSFS')
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2037.601, 183.5734, 30.4011, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2037.017, 182.7901, 30.1884, SwitchType.JumpCut)
gosub @STEAL1_314
gosub @STEAL1_439
gosub @STEAL1_47
gosub @STEAL1_7962
Streaming.LoadSceneInDirection(-2029.904, 179.7978, 29.0075, 130.0)
Camera.DoFade(500, Fade.In)

:STEAL1_2479
if 
  Camera.GetFadingStatus
goto_if_false @STEAL1_2503
wait 0
goto @STEAL1_2479

:STEAL1_2503
if and
  not Car.IsDead(449@)
  not Char.IsDead(454@)
goto_if_false @STEAL1_2769
if 
  401@ == 0
goto_if_false @STEAL1_2769
400@ = 1
366@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2032.55, 176.89, 28.95, MoveState.Walk, -2)
Task.TurnCharToFaceChar(-1, $scplayer)
Task.PlayAnim(-1, "CAR_TALKM_IN", "CAR_CHAT", 4.0, False, False, False, False, 0)
Task.PlayAnim(-1, "CAR_TALKM_LOOP", "CAR_CHAT", 4.0, False, False, False, False, 0)
Task.PlayAnim(-1, "CAR_TALKM_OUT", "CAR_CHAT", 4.0, False, False, False, False, 0)
Sequence.Close(366@)
Char.PerformSequence(454@, 366@)
Task.CarDriveToCoord($scplayer, 449@, 352@, 353@, 354@, 12.0, DriveMode.Accurate, 0, DrivingMode.AvoidCars)
80@ = Clock.GetGameTimer()
37@ = 1

:STEAL1_2769
if 
  37@ > 0
goto_if_false @STEAL1_2859
81@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 1000
goto_if_false @STEAL1_2859
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @STEAL1_2859
80@ -= 10000
37@ = 5

:STEAL1_2859
if 
  37@ == 1
goto_if_false @STEAL1_2954
81@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 1000
goto_if_false @STEAL1_2954
if 
  401@ == 0
goto_if_false @STEAL1_2954
400@ = 2
80@ = Clock.GetGameTimer()
37@ = 2

:STEAL1_2954
if 
  37@ == 2
goto_if_false @STEAL1_3100
81@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 1000
goto_if_false @STEAL1_3100
if 
  401@ == 0
goto_if_false @STEAL1_3100
400@ = 3
80@ = Clock.GetGameTimer()
Camera.SetFixedPosition(-2031.242, 175.4691, 29.0587, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2031.501, 176.4334, 29.007, SwitchType.JumpCut)
37@ = 3

:STEAL1_3100
if 
  37@ == 3
goto_if_false @STEAL1_3382
if and
  not Car.IsDead(435@)
  not Char.IsDead(443@)
goto_if_false @STEAL1_3382
81@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 1000
goto_if_false @STEAL1_3382
if 
  401@ == 0
goto_if_false @STEAL1_3382
Text.ClearPrints
Camera.DoFade(100, Fade.Out)

:STEAL1_3205
if 
  Camera.GetFadingStatus
goto_if_false @STEAL1_3229
wait 0
goto @STEAL1_3205

:STEAL1_3229
Camera.SetFixedPosition(-2022.518, 322.6858, 34.6179, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2023.382, 323.1579, 34.7936, SwitchType.JumpCut)
Streaming.LoadSceneInDirection(-2022.518, 322.6858, 34.6179, 50.0)
Camera.DoFade(100, Fade.In)

:STEAL1_3308
if 
  Camera.GetFadingStatus
goto_if_false @STEAL1_3332
wait 0
goto @STEAL1_3308

:STEAL1_3332
400@ = 4
if and
  not Car.IsDead(435@)
  not Char.IsDead(443@)
goto_if_false @STEAL1_3382
Task.EnterCarAsDriver(443@, 435@, -1)
80@ = Clock.GetGameTimer()
37@ = 4

:STEAL1_3382
if 
  37@ == 4
goto_if_false @STEAL1_3560
if 
  not Car.IsDead(435@)
goto_if_false @STEAL1_3560
if 
  not Char.IsDead(443@)
goto_if_false @STEAL1_3560
if 
  Char.IsSittingInCar(443@, 435@)
goto_if_false @STEAL1_3560
if 
  401@ == 0
goto_if_false @STEAL1_3560
400@ = 5
80@ = Clock.GetGameTimer()
369@ = Sequence.Open()
Task.CarDriveToCoord(-1, 435@, 125@, 185@, 245@, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 435@, 126@, 186@, 246@, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Sequence.Close(369@)
Char.PerformSequence(443@, 369@)
37@ = 5

:STEAL1_3560
if 
  37@ == 5
goto_if_false @STEAL1_3936
81@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 1000
goto_if_false @STEAL1_3936
if 
  401@ == 0
goto_if_false @STEAL1_3936
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:STEAL1_3645
if 
  Camera.GetFadingStatus
goto_if_false @STEAL1_3669
wait 0
goto @STEAL1_3645

:STEAL1_3669
Garage.Close('HBGDSFS')
Char.ClearTasks($scplayer)
if 
  not Car.IsDead(449@)
goto_if_false @STEAL1_3776
Streaming.LoadScene(-2028.827, 178.4434, 27.8516)
Char.WarpFromCarToCoord($scplayer, -2030.672, 179.1596, 28.9611)
Car.SetCoordinates(449@, -2028.827, 178.4434, 27.8516)
Car.SetHeading(449@, 266.8448)
Char.WarpIntoCar($scplayer, 449@)

:STEAL1_3776
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 29800)

:STEAL1_3783
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @STEAL1_3809
wait 0
goto @STEAL1_3783

:STEAL1_3809
if and
  not Car.IsDead(435@)
  not Char.IsDead(443@)
goto_if_false @STEAL1_3857
if 
  not Char.IsInCar(443@, 435@)
goto_if_false @STEAL1_3857
Char.WarpIntoCar(443@, 435@)

:STEAL1_3857
Streaming.RemoveAnimation("CAR_CHAT")
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Char.Delete(454@)
Streaming.UnloadSpecialCharacter(1)
Streaming.MarkModelAsNoLongerNeeded(602)
Hud.SwitchWidescreen(False)
Camera.DoFade(500, Fade.In)

:STEAL1_3898
if 
  Camera.GetFadingStatus
goto_if_false @STEAL1_3922
wait 0
goto @STEAL1_3898

:STEAL1_3922
Player.SetControl($player1, True)
34@ = 1

:STEAL1_3936
if 
  34@ == 1
goto_if_false @STEAL1_4078
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(435@)
  not Char.IsDead(443@)
goto_if_false @STEAL1_4078
if 
  Char.IsInCar(443@, 435@)
goto_if_false @STEAL1_4078
Player.SetControl($player1, True)
Text.Print('STL1_03', 7000, 1)
StuckCarCheck.AddWithWarp(435@, 1.0, 2000, True, True, True, 2)
Task.CarDriveToCoord(443@, 435@, 126@, 186@, 246@, 35.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
34@ = 2

:STEAL1_4078
if 
  Car.IsDead(435@)
goto_if_false @STEAL1_4119
Text.ClearPrints
Text.PrintNow('STL1_07', 5000, 1)
goto @STEAL1_7629

:STEAL1_4119
if 
  34@ == 2
goto_if_false @STEAL1_5945
if and
  not Car.IsDead(435@)
  not Char.IsDead(443@)
  not Char.IsDead($scplayer)
goto_if_false @STEAL1_5922
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @STEAL1_4195
40@ = 3
Car.SetTempAction(435@, TempAction.HandbrakeStraight, 2000)

:STEAL1_4195
if 
  Char.LocateAnyMeansChar3D($scplayer, 443@, 50.0, 50.0, 50.0, False)
goto_if_false @STEAL1_4269
if 
  45.0 > $st1_final_dest
goto_if_false @STEAL1_4262
$st1_final_dest += 0.1

:STEAL1_4262
goto @STEAL1_4300

:STEAL1_4269
if 
  $st1_final_dest > 30.0
goto_if_false @STEAL1_4300
$st1_final_dest -= 0.1

:STEAL1_4300
Car.SetCruiseSpeed(435@, $st1_final_dest)
442@ = Car.GetSpeed(435@)
438@, 439@, 440@ = Car.GetCoordinates(435@)
if 
  is_int_var_greater_than_int_var $st1_route_nx > $7401
goto_if_false @STEAL1_4462
if 
  Char.LocateInCar3D(443@, 124@($7401,60f), 184@($7401,60f), 244@($7401,60f), 10.0, 10.0, 10.0, False)
goto_if_false @STEAL1_4455
$7401 += 1
$st1_route += 1
Task.CarDriveToCoord(443@, 435@, 124@($7401,60f), 184@($7401,60f), 244@($7401,60f), $st1_final_dest, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:STEAL1_4455
goto @STEAL1_4655

:STEAL1_4462
if 
  Char.LocateInCar3D(443@, 124@($7401,60f), 184@($7401,60f), 244@($7401,60f), 8.0, 8.0, 8.0, False)
goto_if_false @STEAL1_4545
Task.CarDriveWander(443@, 435@, 35.0, DrivingMode.AvoidCars)
$7401 += 1
$st1_route += 1

:STEAL1_4545
if 
  is_int_var_greater_than_int_var $7401 > $st1_route_nx
goto_if_false @STEAL1_4655
if 
  not Car.IsOnScreen(435@)
goto_if_false @STEAL1_4655
349@, 350@, 351@ = Char.GetCoordinates($scplayer)
87@ = Math.GetDistanceBetweenCoords2D(438@, 439@, 349@, 350@)
if 
  87@ > 200.0
goto_if_false @STEAL1_4655
Text.PrintNow('STL1_09', 5000, 1)
goto @STEAL1_7629

:STEAL1_4655
if and
  40@ == 2
  49@ == 0
goto_if_false @STEAL1_4748
95@ = Clock.GetGameTimer()
if 
  Char.LocateAnyMeans3D($scplayer, 438@, 439@, 440@, 7.0, 7.0, 7.0, False)
goto_if_false @STEAL1_4741
49@ = 1
goto @STEAL1_4748

:STEAL1_4741
49@ = 0

:STEAL1_4748
if 
  49@ == 1
goto_if_false @STEAL1_5043
if 
  442@ > 10.0
goto_if_false @STEAL1_5043
357@, 358@, 359@ = Car.GetSpeedVector(435@)
set_lvar_float_to_lvar_float 364@ = 357@
mult_float_lvar_by_float_lvar 364@ *= 357@
set_lvar_float_to_lvar_float 365@ = 358@
mult_float_lvar_by_float_lvar 365@ *= 358@
set_lvar_float_to_lvar_float 361@ = 364@
add_float_lvar_to_float_lvar 361@ += 365@
360@ = Math.Sqrt(361@)
355@ = Car.GetForwardX(435@)
356@ = Car.GetForwardY(435@)
set_lvar_float_to_lvar_float 364@ = 357@
mult_float_lvar_by_float_lvar 364@ *= 355@
set_lvar_float_to_lvar_float 365@ = 358@
mult_float_lvar_by_float_lvar 365@ *= 356@
set_lvar_float_to_lvar_float 362@ = 364@
add_float_lvar_to_float_lvar 362@ += 365@
set_lvar_float_to_lvar_float 364@ = 362@
mult_float_lvar_by_float_lvar 364@ *= 362@
set_lvar_float_to_lvar_float 365@ = 361@
sub_float_lvar_from_float_lvar 365@ -= 364@
363@ = Math.Sqrt(365@)
set_lvar_float_to_lvar_float 364@ = 363@
div_float_lvar_by_float_lvar 364@ /= 362@
if 
  364@ > 2.2
goto_if_false @STEAL1_5029
Car.SetTempAction(435@, TempAction.HandbrakeStraight, 2000)
40@ = 3
49@ = 0
goto @STEAL1_5043

:STEAL1_5029
40@ = 2
49@ = 0

:STEAL1_5043
if 
  40@ == 3
goto_if_false @STEAL1_5175
if 
  not Car.IsDead(435@)
goto_if_false @STEAL1_5175
Text.ClearPrints
Char.ClearTasks(443@)
Car.SetCruiseSpeed(435@, 0.0)
Text.PrintNow('STL1_05', 5000, 1)
StuckCarCheck.Remove(435@)
Blip.Remove(436@)
436@ = Blip.AddForCar(435@)
Blip.SetAsFriendly(436@, True)
if 
  Car.IsStopped(435@)
goto_if_false @STEAL1_5175
Task.LeaveCarAndFlee(443@, 435@, 438@, 439@, 440@)
34@ = 3

:STEAL1_5175
if 
  40@ == 0
goto_if_false @STEAL1_5326
Blip.Remove(436@)
445@, 446@, 447@ = Car.GetCoordinates(435@)
436@ = Blip.AddForCoord(445@, 446@, 447@)
if 
  not Char.LocateAnyMeans3D($scplayer, 438@, 439@, 440@, 25.0, 25.0, 25.0, False)
goto_if_false @STEAL1_5272
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:STEAL1_5272
62@ = 255
63@ = 0
64@ = 0
65@ = 255
gosub @STEAL1_7781
80@ = Clock.GetGameTimer()
84@ = Clock.GetGameTimer()
40@ = 1

:STEAL1_5326
if 
  40@ == 1
goto_if_false @STEAL1_5767
81@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
set_lvar_int_to_lvar_int 83@ = 81@
sub_int_lvar_from_int_lvar 83@ -= 84@
if 
  83@ > 1000
goto_if_false @STEAL1_5441
if 
  52@ == 0
goto_if_false @STEAL1_5441
Text.Print('STL1_03', 8000, 1)
52@ = 1

:STEAL1_5441
if 
  82@ > 30
goto_if_false @STEAL1_5471
gosub @STEAL1_7781
80@ = Clock.GetGameTimer()

:STEAL1_5471
if 
  not Char.IsDead(443@)
goto_if_false @STEAL1_5691
if or
  Char.LocateAnyMeans2D($scplayer, 445@, 446@, 20.0, 20.0, False)
  Char.LocateInCarChar3D($scplayer, 443@, 50.0, 50.0, 50.0, False)
goto_if_false @STEAL1_5614
if 
  51@ == 0
goto_if_false @STEAL1_5582
Text.PrintHelp('STL1_04')
51@ = 1

:STEAL1_5582
Blip.Remove(436@)
80@ = Clock.GetGameTimer()
436@ = Blip.AddForCar(435@)
49@ = 0
40@ = 2

:STEAL1_5614
if 
  Char.LocateInCarChar3D($scplayer, 443@, 20.0, 20.0, 20.0, False)
goto_if_false @STEAL1_5691
if 
  51@ == 1
goto_if_false @STEAL1_5691
Text.PrintNow('STL1_02', 12000, 1)
51@ = 2

:STEAL1_5691
if 
  128 > 65@
goto_if_false @STEAL1_5725
Text.PrintNow('STL1_10', 100, 1)

:STEAL1_5725
if 
  is_int_lvar_equal_to_int_lvar 65@ == 69@
goto_if_false @STEAL1_5767
Text.PrintNow('STL1_09', 7000, 1)
goto @STEAL1_7629

:STEAL1_5767
if 
  40@ == 2
goto_if_false @STEAL1_5922
if 
  not Car.IsDead(435@)
goto_if_false @STEAL1_5922
if 
  87@ > 200.0
goto_if_false @STEAL1_5829
40@ = 0

:STEAL1_5829
81@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 2000
goto_if_false @STEAL1_5892
if 
  not Car.IsOnScreen(435@)
goto_if_false @STEAL1_5892
40@ = 0

:STEAL1_5892
if 
  not Car.IsOnScreen(435@)
goto_if_false @STEAL1_5922
40@ = 0
goto @STEAL1_5922

:STEAL1_5922
if 
  Char.IsDead(443@)
goto_if_false @STEAL1_5945
34@ = 3

:STEAL1_5945
if 
  34@ == 3
goto_if_false @STEAL1_7397
if and
  not Car.IsDead(435@)
  not Char.IsDead($scplayer)
goto_if_false @STEAL1_7397
if 
  50@ == 0
goto_if_false @STEAL1_6016
Car.LockDoors(435@, CarLock.Unlocked)
50@ = 1

:STEAL1_6016
if 
  50@ == 1
goto_if_false @STEAL1_6140
if 
  Char.IsInCar($scplayer, 435@)
goto_if_false @STEAL1_6140
Blip.Remove(436@)
Text.PrintNow('STL1_06', 5000, 1)
53@ = Blip.AddForCoord(352@, 353@, 354@)
Garage.ChangeType('HBGDSFS', GarageType.ForScriptToOpenAndClose)
Streaming.RequestCarRecording(171)

:STEAL1_6106
if 
  not Streaming.HasCarRecordingBeenLoaded(171)
goto_if_false @STEAL1_6133
wait 0
goto @STEAL1_6106

:STEAL1_6133
50@ = 2

:STEAL1_6140
if 
  50@ == 2
goto_if_false @STEAL1_6425
if 
  not Car.IsDead(435@)
goto_if_false @STEAL1_6425
if 
  Char.IsInCar($scplayer, 435@)
goto_if_false @STEAL1_6425
if 
  Char.LocateInCar3D($scplayer, 352@, 353@, 354@, 4.0, 4.0, 4.0, True)
goto_if_false @STEAL1_6425
if 
  Char.IsSittingInCar($scplayer, 435@)
goto_if_false @STEAL1_6425
World.ClearArea(352@, 353@, 354@, 25.0, True)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2031.242, 175.4691, 29.0587, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2031.501, 176.4334, 29.007, SwitchType.JumpCut)
Garage.Open('HBGDSFS')
Blip.Remove(53@)
352@ = -2043.911
353@ = 179.1213
354@ = 27.8507
437@ = Car.GetHealth(435@)
437@ /= 10
437@ *= 100
90@ = 2000
add_int_lvar_to_int_lvar 90@ += 437@
50@ = 21

:STEAL1_6425
if 
  50@ == 21
goto_if_false @STEAL1_6565
if 
  not Car.IsDead(435@)
goto_if_false @STEAL1_6565
if 
  Garage.IsOpen('HBGDSFS')
goto_if_false @STEAL1_6565
World.ClearArea(352@, 353@, 354@, 25.0, True)
Car.StartPlayback(435@, 171)
Camera.SetFixedPosition(-2037.601, 183.5734, 30.4011, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2037.017, 182.7901, 30.1884, SwitchType.JumpCut)
50@ = 3

:STEAL1_6565
if 
  50@ == 3
goto_if_false @STEAL1_6680
if 
  not Car.IsDead(435@)
goto_if_false @STEAL1_6680
if 
  Char.IsInCar($scplayer, 435@)
goto_if_false @STEAL1_6680
if 
  Char.LocateStoppedInCar3D($scplayer, 352@, 353@, 354@, 4.0, 4.0, 4.0, False)
goto_if_false @STEAL1_6680
Garage.Close('HBGDSFS')
Text.ClearPrints
50@ = 32

:STEAL1_6680
if 
  50@ == 31
goto_if_false @STEAL1_6769
if 
  not Car.IsDead(435@)
goto_if_false @STEAL1_6769
367@ = Sequence.Open()
Task.LeaveCar(-1, 435@)
Task.GoStraightToCoord(-1, -2035.471, 176.6342, 27.8359, MoveState.Walk, -2)
Sequence.Close(367@)
Char.PerformSequence($scplayer, 367@)
50@ = 32

:STEAL1_6769
if 
  50@ == 32
goto_if_false @STEAL1_6852
if 
  not Car.IsDead(435@)
goto_if_false @STEAL1_6852
Garage.Close('HBGDSFS')
Camera.DoFade(1500, Fade.Out)

:STEAL1_6821
if 
  Camera.GetFadingStatus
goto_if_false @STEAL1_6845
wait 0
goto @STEAL1_6821

:STEAL1_6845
50@ = 41

:STEAL1_6852
if 
  50@ == 41
goto_if_false @STEAL1_7271
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFadingColor(0, 0, 1)
459@, 460@, 461@ = Char.GetCoordinates($scplayer)
462@ = Char.GetHeading($scplayer)
Camera.DoFade(500, Fade.Out)

:STEAL1_6918
if 
  Camera.GetFadingStatus
goto_if_false @STEAL1_6960
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @STEAL1_6953
terminate_this_script 

:STEAL1_6953
goto @STEAL1_6918

:STEAL1_6960
Streaming.LoadSceneInDirection(-2690.908, 206.6429, 7.2879, 88.2793)
Char.SetCoordinates($scplayer, -2691.164, 206.6478, 3.3359)
Camera.SetFixedPosition(-2689.916, 206.5855, 7.399, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2690.908, 206.6429, 7.2879, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)
Text.PrintNow('JAP_MOD', 6000, 1)
wait 6000
Text.PrintNow('WANG_C', 6000, 1)
wait 6000
Camera.DoFade(500, Fade.Out)

:STEAL1_7109
if 
  Camera.GetFadingStatus
goto_if_false @STEAL1_7151
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @STEAL1_7144
terminate_this_script 

:STEAL1_7144
goto @STEAL1_7109

:STEAL1_7151
Streaming.LoadSceneInDirection(459@, 460@, 461@, 462@)
461@ -= 1.0
Char.SetCoordinates($scplayer, 459@, 460@, 461@)
Char.SetHeading($scplayer, 462@)
Camera.DoFade(500, Fade.In)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Garage.Activate('MDS1SFS')
Blip.Remove($mod_garage_blips)
$mod_garage_blips = Blip.AddShortRangeSpriteForCoord(-2728.5, 212.2, 3.4, RadarSprite.ModGarage)
$japcar_mod_garage_open = 1
50@ = 4

:STEAL1_7271
if 
  50@ == 4
goto_if_false @STEAL1_7397
if 
  Garage.IsClosed('HBGDSFS')
goto_if_false @STEAL1_7397
Hud.SwitchWidescreen(False)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -2032.471, 176.6342, 27.8359)
Car.Delete(435@)
Char.SetHeading($scplayer, 267.9)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(500, Fade.In)

:STEAL1_7366
if 
  Camera.GetFadingStatus
goto_if_false @STEAL1_7390
wait 0
goto @STEAL1_7366

:STEAL1_7390
goto @STEAL1_7647

:STEAL1_7397
if 
  not Char.IsDead($scplayer)
goto_if_false @STEAL1_7622
if and
  50@ > 1
  4 > 50@
goto_if_false @STEAL1_7622
if 
  not Car.IsDead(435@)
goto_if_false @STEAL1_7622
if 
  35@ == 0
goto_if_false @STEAL1_7553
Text.PrintNow('STL1_11', 100, 1)
if 
  Char.IsInCar($scplayer, 435@)
goto_if_false @STEAL1_7553
Blip.Remove(436@)
Blip.Remove(53@)
Text.PrintNow('STL1_06', 5000, 1)
53@ = Blip.AddForCoord(352@, 353@, 354@)
35@ = 1

:STEAL1_7553
if 
  35@ == 1
goto_if_false @STEAL1_7622
if 
  not Char.IsInCar($scplayer, 435@)
goto_if_false @STEAL1_7622
Blip.Remove(53@)
Blip.Remove(436@)
436@ = Blip.AddForCar(435@)
Blip.SetAsFriendly(436@, True)
35@ = 0

:STEAL1_7622
goto @STEAL1_1806

:STEAL1_7629
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:STEAL1_7647
$flag_steal_mission_counter += 1
CarGenerator.Switch($sw6_car_gen1, 101)
Stat.RegisterMissionPassed('STEAL_1')
Stat.PlayerMadeProgress(1)
Audio.PlayMissionPassedTune(1)
Text.PrintWithNumberBig('M_PASSS', 5000, 5000, TextStyle.Middle)
Player.AddScore($player1, 5000)
Stat.AwardPlayerMissionRespect(5)
Player.ClearWantedLevel($player1)
return 

:STEAL1_7718
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Blip.Remove(436@)
Blip.Remove(53@)
Blip.Remove(436@)
Weather.Release
Char.Delete(443@)
Car.Delete(435@)
gosub @STEAL1_287
Streaming.MarkModelAsNoLongerNeeded(602)
Streaming.MarkModelAsNoLongerNeeded(41)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

:STEAL1_7781
if 
  255 > 63@
goto_if_false @STEAL1_7814
63@ += 1
64@ += 1

:STEAL1_7814
if 
  63@ == 255
goto_if_false @STEAL1_7840
65@ -= 1

:STEAL1_7840
set_lvar_int_to_lvar_int 74@ = 62@
mult_int_lvar_by_int_lvar 74@ *= 70@
set_lvar_int_to_lvar_int 75@ = 63@
mult_int_lvar_by_int_lvar 75@ *= 71@
set_lvar_int_to_lvar_int 76@ = 64@
mult_int_lvar_by_int_lvar 76@ *= 72@
set_lvar_int_to_lvar_int 77@ = 65@
mult_int_lvar_by_int_lvar 77@ *= 73@
set_lvar_int_to_lvar_int 78@ = 74@
add_int_lvar_to_int_lvar 78@ += 75@
set_lvar_int_to_lvar_int 79@ = 76@
add_int_lvar_to_int_lvar 79@ += 77@
set_lvar_int_to_lvar_int 60@ = 78@
add_int_lvar_to_int_lvar 60@ += 79@
Blip.ChangeColor(436@, 60@)
return 

:STEAL1_7962
124@ = -2017.001
184@ = 322.4644
244@ = 34.7593
125@ = -2036.439
185@ = 322.4642
245@ = 34.0156
126@ = -2148.505
186@ = 227.5995
246@ = 34.8814
127@ = -2244.575
187@ = 211.4546
247@ = 34.884
128@ = -2252.426
188@ = 110.4054
248@ = 34.8813
129@ = -2254.398
189@ = 64.4779
249@ = 34.8865
130@ = -2333.194
190@ = 52.1153
250@ = 34.8895
131@ = -2373.793
191@ = -39.8936
251@ = 34.8887
132@ = -2411.406
192@ = -71.5329
252@ = 34.8695
133@ = -2421.986
193@ = -171.5927
253@ = 34.8702
134@ = -2514.487
194@ = -209.5909
254@ = 24.5432
135@ = -2612.338
195@ = -208.1451
255@ = 3.8877
136@ = -2700.542
196@ = -205.7518
256@ = 3.8928
137@ = -2703.455
197@ = -105.7246
257@ = 3.8899
138@ = -2704.933
198@ = -88.0339
258@ = 3.8934
139@ = -2791.198
199@ = -69.7781
259@ = 6.7409
140@ = -2807.242
200@ = 29.8687
260@ = 6.7487
141@ = -2807.922
201@ = 131.0431
261@ = 6.7324
142@ = -2807.247
202@ = 232.0953
262@ = 6.7535
143@ = -2831.376
203@ = 329.6273
263@ = 4.0742
144@ = -2851.84
204@ = 427.8425
264@ = 4.0745
145@ = -2831.418
205@ = 526.6416
265@ = 4.6276
146@ = -2821.271
206@ = 626.4095
266@ = 7.8679
147@ = -2849.525
207@ = 720.4027
267@ = 28.129
148@ = -2840.613
208@ = 819.4821
268@ = 40.6696
149@ = -2816.873
209@ = 897.241
269@ = 43.6833
150@ = -2776.396
210@ = 809.4246
270@ = 50.6937
151@ = -2676.287
211@ = 810.1769
271@ = 49.5432
152@ = -2575.558
212@ = 807.5107
272@ = 49.5239
153@ = -2528.462
213@ = 809.4405
273@ = 49.5356
154@ = -2526.564
214@ = 908.4559
274@ = 64.537
155@ = -2525.089
215@ = 999.8545
275@ = 77.8166
156@ = -2594.69
216@ = 1006.409
276@ = 77.8242
157@ = -2587.474
217@ = 1092.979
277@ = 56.2406
158@ = -2591.712
218@ = 1135.302
278@ = 55.135
159@ = -2658.549
219@ = 1209.768
279@ = 55.1386
160@ = -2669.474
220@ = 1309.309
280@ = 55.1228
161@ = -2677.539
221@ = 1409.63
281@ = 55.1226
162@ = -2669.294
222@ = 1509.889
282@ = 58.6901
163@ = -2674.542
223@ = 1610.948
283@ = 64.4835
164@ = -2675.343
224@ = 1711.907
284@ = 67.4134
165@ = -2675.344
225@ = 1812.691
285@ = 67.4802
166@ = -2675.333
226@ = 1913.553
286@ = 64.6734
167@ = -2675.791
227@ = 2013.889
287@ = 59.035
168@ = -2670.814
228@ = 2114.105
288@ = 55.1467
169@ = -2679.106
229@ = 2214.438
289@ = 55.1239
170@ = -2720.014
230@ = 2305.998
290@ = 63.1498
171@ = -2720.744
231@ = 2353.887
291@ = 71.5011
172@ = -2677.15
232@ = 2440.762
292@ = 47.2891
173@ = -2593.738
233@ = 2490.081
293@ = 22.1514
174@ = -2513.94
234@ = 2429.612
294@ = 16.4114
175@ = -2413.627
235@ = 2430.877
295@ = 11.8649
176@ = -2339.414
236@ = 2395.623
296@ = 5.5583
177@ = -2422.839
237@ = 2340.198
297@ = 4.5444
178@ = -2462.575
238@ = 2334.265
298@ = 4.5459
179@ = -2467.327
239@ = 2276.376
299@ = 4.5468
180@ = -2560.308
240@ = 2313.566
300@ = 4.5508
181@ = -2560.286
241@ = 2316.442
301@ = 4.5491
return 

//-------------Mission 68---------------
// Originally: Test Drive

:STEAL2
script_name 'STEAL2'
gosub @STEAL2_47
if 
  has_deatharrest_been_executed 
goto_if_false @STEAL2_38
gosub @STEAL2_26013

:STEAL2_38
gosub @STEAL2_26109
terminate_this_script 

:STEAL2_47
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('STEAL2')
Text.ClearPrints
wait 0
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
162@ = 0.0
163@ = 0.0
164@ = 0.0
165@ = 0.0
166@ = 0.0
167@ = 0.0
168@ = 0.0
112@ = 0
113@ = 0
114@ = 0
154@ = 0
155@ = 0
156@ = 0
157@ = 0
158@ = 0
160@ = 0
161@ = 0
108@ = 0
109@ = 0
Player.MakeGangDisappear
Streaming.SetAreaVisible(1)
Char.SetAreaVisible($scplayer, 1)
Streaming.LoadScene(-2031.0, 149.0, 29.0)
Cutscene.Load('STEAL_2')

:STEAL2_331
if 
  not Cutscene.HasLoaded
goto_if_false @STEAL2_355
wait 0
goto @STEAL2_331

:STEAL2_355
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:STEAL2_364
if 
  not Cutscene.HasFinished
goto_if_false @STEAL2_388
wait 0
goto @STEAL2_364

:STEAL2_388
Camera.DoFade(0, Fade.Out)

:STEAL2_394
if 
  Camera.GetFadingStatus
goto_if_false @STEAL2_418
wait 0
goto @STEAL2_394

:STEAL2_418
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($scplayer, 0)
Cutscene.Clear
Player.SetControl($player1, False)
Player.MakeGangReappear
Camera.SetFadingColor(0, 0, 0)
wait 0
Streaming.RequestModel(560)
Streaming.RequestModel(562)
Streaming.RequestModel(147)
Streaming.RequestVehicleMod(#NTO_B_S)
Streaming.LoadSpecialCharacter(1, 'CESAR')
Streaming.LoadAllModelsNow
Group.Remove($Players_Group)
Player.SetGroupRecruitment($player1, False)
Player.SetGroupToFollowAlways($player1, True)
169@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
170@ = DecisionMakerChar.Copy(65542)
Streaming.LoadScene(-2032.4, 171.8, 27.8)
World.ClearArea(-2032.4, 171.8, 27.8, 1.0, True)
Char.SetCoordinates($scplayer, -2032.4, 171.8, 27.8)
Char.SetHeading($scplayer, 308.7)
World.ClearArea(-2032.3, 161.9, 28.0, 1.0, True)
$cesar = Char.Create(PedType.Mission1, 290, -2032.3, 161.9, 28.0)
Char.SetNeverTargeted($cesar, True)
Char.SetDecisionMaker($cesar, 170@)
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $cesar)
Group.SetDefaultTaskAllocator($Players_Group, DefaultTaskAllocator.FollowLimited)
Char.SetDecisionMaker($cesar, 169@)
104@ = 1
World.ClearArea(-1656.2, 1210.2, 12.3, 5.0, True)
set_lvar_int_to_constant 110@ = 562
gosub @STEAL2_27694
34@ = Car.Create(562, -1656.2, 1210.2, 12.3)
Car.SetStrong(34@, True)
Car.SetHeading(34@, 316.1)
Car.LockDoors(34@, CarLock.LockoutPlayerOnly)
Car.SetDrivingStyle(34@, DrivingMode.AvoidCars)
Car.SetHealth(34@, 2000)
Car.SetCanBurstTires(34@, False)
Car.FreezePosition(34@, True)
$car = Car.AddMod(34@, #NTO_B_S)
World.ClearArea(-1662.3, 1211.0, 12.3, 5.0, True)
set_lvar_int_to_constant 110@ = 560
gosub @STEAL2_27694
35@ = Car.Create(560, -1662.3, 1211.0, 12.3)
Car.SetHeading(35@, 316.1)
Car.LockDoors(35@, CarLock.LockoutPlayerOnly)
Car.ChangeColor(35@, 59, 12)
Car.SetHealth(35@, 2000)
Car.FreezePosition(35@, True)
$car = Car.AddMod(35@, #NTO_B_S)
Game.SwitchRandomTrains(False)
98@ = Blip.AddForCoord(-1632.9, 1207.4, 6.1)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Camera.DoFade(500, Fade.In)
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($cesar, True)

:STEAL2_988
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @STEAL2_1014
goto @STEAL2_26031

:STEAL2_1014
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_1046
goto @STEAL2_26013

:STEAL2_1046
if 
  99@ == 0
goto_if_false @STEAL2_6415
if 
  100@ == 0
goto_if_false @STEAL2_1619
gosub @STEAL2_26414
if 
  114@ == 0
goto_if_false @STEAL2_1135
112@ = 1
113@ = 0
gosub @STEAL2_30237
114@ = 1

:STEAL2_1135
if 
  114@ == 1
goto_if_false @STEAL2_1215
if 
  112@ == 0
goto_if_false @STEAL2_1215
Text.Print('STE2_01', 7000, 1)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
TIMERB = 0
114@ = 2

:STEAL2_1215
if 
  114@ == 2
goto_if_false @STEAL2_1319
if 
  TIMERB > 7000
goto_if_false @STEAL2_1319
if 
  112@ == 0
goto_if_false @STEAL2_1319
112@ = 2
113@ = 0
gosub @STEAL2_30237
TIMERB = 0
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($cesar, True)
114@ = 3

:STEAL2_1319
if 
  114@ == 3
goto_if_false @STEAL2_1402
if 
  TIMERB > 7000
goto_if_false @STEAL2_1402
if 
  112@ == 0
goto_if_false @STEAL2_1402
112@ = 3
113@ = 0
gosub @STEAL2_30237
114@ = 4

:STEAL2_1402
if 
  114@ == 4
goto_if_false @STEAL2_1459
if 
  112@ == 0
goto_if_false @STEAL2_1459
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
114@ = 5

:STEAL2_1459
if 
  Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @STEAL2_1619
if 
  Char.LocateAnyMeans3D($scplayer, -1632.9, 1207.4, 6.1, 4.0, 4.0, 4.0, True)
goto_if_false @STEAL2_1619
if 
  Char.LocateAnyMeans3D($cesar, -1632.9, 1207.4, 6.1, 4.0, 4.0, 4.0, True)
goto_if_false @STEAL2_1619
Player.SetControl($player1, False)
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
112@ = 0
100@ = 1

:STEAL2_1619
if 
  100@ == 1
goto_if_false @STEAL2_2108
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.ShutAllCharsUp(True)
World.SetPedDensityMultiplier(0.0)
World.ClearArea(-1662.3, 1211.0, 13.4, 15.0, True)
Car.LockDoors(35@, CarLock.Unlocked)
Blip.Remove(98@)
World.ClearArea(-1656.7, 1213.8, 12.7, 1.0, True)
96@ = Char.Create(PedType.Mission1, 147, -1656.7, 1213.8, 12.7)
Char.SetHeading(96@, 132.3)
if 
  Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @STEAL2_1792
Char.RemoveFromGroup($cesar)
Char.ClearTasks($cesar)

:STEAL2_1792
171@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, -1642.3, 1204.1, 6.2, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1651.2, 1204.0, 6.2, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1663.5, 1204.2, 6.2, MoveState.Walk, -1)
Sequence.Close(171@)
Char.PerformSequence($scplayer, 171@)
Sequence.Clear(171@)
171@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, -1640.3, 1204.4, 6.2, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1651.7, 1205.0, 6.2, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1662.3, 1204.8, 6.2, MoveState.Walk, -1)
Sequence.Close(171@)
Char.PerformSequence($cesar, 171@)
Sequence.Clear(171@)
112@ = 4
113@ = Math.RandomIntInRange(0, 3)
set_lvar_int_to_lvar_int 159@ = 113@
159@ += 1
gosub @STEAL2_30237
Camera.SetFixedPosition(-1624.5, 1201.5, 7.8, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1664.6, 1207.1, 10.9, SwitchType.JumpCut)
101@ = 1
skip_cutscene_start_internal @STEAL2_2979
TIMERA = 0
114@ = 0
100@ = 2

:STEAL2_2108
if 
  100@ == 2
goto_if_false @STEAL2_2684
if 
  114@ == 0
goto_if_false @STEAL2_2207
if 
  112@ == 0
goto_if_false @STEAL2_2207
112@ = 4
113@ = Math.RandomIntInRange(3, 6)
set_lvar_int_to_lvar_int 159@ = 113@
159@ += 1
gosub @STEAL2_30237
114@ = 1

:STEAL2_2207
if 
  114@ == 1
goto_if_false @STEAL2_2288
if 
  112@ == 0
goto_if_false @STEAL2_2288
112@ = 4
113@ = Math.RandomIntInRange(6, 9)
set_lvar_int_to_lvar_int 159@ = 113@
159@ += 1
gosub @STEAL2_30237
114@ = 2

:STEAL2_2288
if 
  TIMERA > 8000
goto_if_false @STEAL2_2684
Char.ClearTasksImmediately($scplayer)
World.ClearArea(-1659.6, 1203.3, 11.4, 400.0, True)
Char.SetCoordinates($scplayer, -1659.6, 1203.3, 11.4)
Char.SetHeading($scplayer, 96.8)
Char.ClearTasksImmediately($cesar)
World.ClearArea(-1659.8, 1205.0, 11.4, 1.0, True)
Char.SetCoordinates($cesar, -1659.8, 1205.0, 11.4)
Char.SetHeading($cesar, 91.3)
171@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, -1662.6, 1202.6, 12.7, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1666.0, 1208.8, 12.7, MoveState.Walk, -1)
Task.EnterCarAsDriver(-1, 35@, -1)
Sequence.Close(171@)
Char.PerformSequence($scplayer, 171@)
Sequence.Clear(171@)
171@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, -1662.7, 1204.8, 12.7, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1662.9, 1206.5, 12.7, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -1660.3, 1208.8, 12.7, MoveState.Walk, -1)
Task.Pause(-1, 1000)
Task.EnterCarAsDriver(-1, 34@, -1)
Sequence.Close(171@)
Char.PerformSequence($cesar, 171@)
Sequence.Clear(171@)
Camera.SetFixedPosition(-1661.1, 1219.7, 15.15, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1658.9, 1204.6, 13.85, SwitchType.JumpCut)
TIMERA = 0
100@ = 3

:STEAL2_2684
if 
  100@ == 3
goto_if_false @STEAL2_2785
$task_status = Char.GetScriptTaskStatus($cesar, 1560)
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL2_2785
107@ = Char.GetSequenceProgress($cesar)
if 
  107@ == 2
goto_if_false @STEAL2_2785
112@ = 5
113@ = 0
gosub @STEAL2_30237
100@ = 4

:STEAL2_2785
if 
  100@ == 4
goto_if_false @STEAL2_2936
if 
  113@ == 2
goto_if_false @STEAL2_2936
if 
  not Char.IsDead(96@)
goto_if_false @STEAL2_2929
171@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1660.6, 1210.1, 12.7, MoveState.Run, -1)
Task.GoStraightToCoord(-1, -1664.0, 1205.3, 12.7, MoveState.Run, -1)
Task.GoStraightToCoord(-1, -1651.3, 1203.2, 6.2, MoveState.Run, -1)
Sequence.Close(171@)
Char.PerformSequence(96@, 171@)
Sequence.Clear(171@)

:STEAL2_2929
100@ = 5

:STEAL2_2936
if 
  100@ == 5
goto_if_false @STEAL2_5670
if 
  112@ == 0
goto_if_false @STEAL2_5670
101@ = 0

:STEAL2_2979
skip_cutscene_end 
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_3013
goto @STEAL2_26013

:STEAL2_3013
if 
  101@ == 1
goto_if_false @STEAL2_3197
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
112@ = 0
Camera.DoFade(500, Fade.Out)

:STEAL2_3055
if 
  Camera.GetFadingStatus
goto_if_false @STEAL2_3079
wait 0
goto @STEAL2_3055

:STEAL2_3079
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_3111
goto @STEAL2_26013

:STEAL2_3111
if 
  not Char.IsDead(96@)
goto_if_false @STEAL2_3171
World.ClearArea(-1651.3, 1203.2, 6.2, 1.0, True)
Char.SetCoordinates(96@, -1651.3, 1203.2, 6.2)

:STEAL2_3171
Char.ClearTasksImmediately($cesar)
Char.WarpIntoCar($cesar, 34@)
Char.ClearTasksImmediately($scplayer)
Char.WarpIntoCar($scplayer, 35@)

:STEAL2_3197
if 
  Char.IsInCar($cesar, 34@)
goto_if_false @STEAL2_5670
if 
  Char.IsInCar($scplayer, 35@)
goto_if_false @STEAL2_5670
Car.FreezePosition(34@, False)
Car.FreezePosition(35@, False)
Char.MarkAsNoLongerNeeded(96@)
Streaming.MarkModelAsNoLongerNeeded(147)
Streaming.RequestModel(414)
Streaming.RequestModel(#CARDBOARDBOX)
Streaming.RequestModel(449)
Streaming.LoadAllModelsNow
Car.SetModelComponents(414, 1, 1)
World.ClearArea(-1580.1, 938.2, 6.8, 5.0, True)
set_lvar_int_to_constant 110@ = 414
gosub @STEAL2_27694
36@ = Car.Create(414, -1580.1, 938.2, 6.8)
Car.SetHeading(36@, 90.0)
Car.SetLoadCollisionFlag(36@, True)
World.ClearArea(-1576.0, 938.9, 6.5, 5.0, True)
58@ = Char.CreateRandom(-1576.0, 938.9, 6.5)
Char.SetHeading(58@, 84.9)
Char.SetDecisionMaker(58@, 170@)
World.ClearArea(-1575.1, 940.7, 6.4, 10.0, True)
80@ = Object.Create(#CARDBOARDBOX, -1575.1, 940.7, 6.4)
Object.SetCollision(80@, True)
Object.SetDynamic(80@, True)
81@ = Object.Create(#CARDBOARDBOX, -1574.9, 941.7, 6.4)
Object.SetCollision(81@, True)
Object.SetDynamic(81@, True)
82@ = Object.Create(#CARDBOARDBOX, -1573.1, 942.7, 6.4)
Object.SetCollision(82@, True)
Object.SetDynamic(82@, True)
83@ = Object.Create(#CARDBOARDBOX, -1575.1, 940.7, 7.0)
Object.SetCollision(83@, True)
Object.SetDynamic(83@, True)
84@ = Object.Create(#CARDBOARDBOX, -1573.1, 942.7, 7.0)
Object.SetCollision(84@, True)
Object.SetDynamic(84@, True)
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_3764
World.ClearArea(-1626.9, 1202.5, 5.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
38@ = Car.Create(108@, -1626.9, 1202.5, 5.7)
Car.SetHeading(38@, 222.7)
Car.LockDoors(38@, CarLock.Locked)
60@ = Char.CreateRandomAsDriver(38@)
Car.SetLoadCollisionFlag(38@, True)
Char.SetCanBeShotInVehicle(60@, False)

:STEAL2_3764
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_3893
World.ClearArea(-1609.2, 1160.4, 5.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
39@ = Car.Create(108@, -1609.2, 1160.4, 5.7)
Car.SetHeading(39@, 184.3)
Car.LockDoors(39@, CarLock.Locked)
61@ = Char.CreateRandomAsDriver(39@)
Car.SetLoadCollisionFlag(39@, True)
Char.SetCanBeShotInVehicle(61@, False)

:STEAL2_3893
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_4022
World.ClearArea(-1600.9, 1111.7, 5.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
40@ = Car.Create(108@, -1600.9, 1111.7, 5.7)
Car.SetHeading(40@, 183.3)
Car.LockDoors(40@, CarLock.Locked)
62@ = Char.CreateRandomAsDriver(40@)
Car.SetLoadCollisionFlag(40@, True)
Char.SetCanBeShotInVehicle(62@, False)

:STEAL2_4022
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_4151
World.ClearArea(-1608.2, 1094.0, 5.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
41@ = Car.Create(108@, -1608.2, 1094.0, 5.7)
Car.SetHeading(41@, 180.0)
Car.LockDoors(41@, CarLock.Locked)
63@ = Char.CreateRandomAsDriver(41@)
Car.SetLoadCollisionFlag(41@, True)
Char.SetCanBeShotInVehicle(63@, False)

:STEAL2_4151
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_4280
World.ClearArea(-1608.2, 1046.5, 5.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
42@ = Car.Create(108@, -1608.2, 1046.5, 5.7)
Car.SetHeading(42@, 183.5)
Car.LockDoors(42@, CarLock.Locked)
64@ = Char.CreateRandomAsDriver(42@)
Car.SetLoadCollisionFlag(42@, True)
Char.SetCanBeShotInVehicle(64@, False)

:STEAL2_4280
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_4409
World.ClearArea(-1595.7, 1012.0, 5.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
43@ = Car.Create(108@, -1595.7, 1012.0, 5.7)
Car.SetHeading(43@, 207.3)
Car.LockDoors(43@, CarLock.Locked)
65@ = Char.CreateRandomAsDriver(43@)
Car.SetLoadCollisionFlag(43@, True)
Char.SetCanBeShotInVehicle(65@, False)

:STEAL2_4409
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_4538
World.ClearArea(-1540.5, 959.8, 5.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
44@ = Car.Create(108@, -1540.5, 959.8, 5.7)
Car.SetHeading(44@, 24.3)
Car.LockDoors(44@, CarLock.Locked)
66@ = Char.CreateRandomAsDriver(44@)
Car.SetLoadCollisionFlag(44@, True)
Char.SetCanBeShotInVehicle(66@, False)

:STEAL2_4538
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_4667
World.ClearArea(-1556.0, 995.6, 5.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
45@ = Car.Create(108@, -1556.0, 995.6, 5.7)
Car.SetHeading(45@, 41.0)
Car.LockDoors(45@, CarLock.Locked)
67@ = Char.CreateRandomAsDriver(45@)
Car.SetLoadCollisionFlag(45@, True)
Char.SetCanBeShotInVehicle(67@, False)

:STEAL2_4667
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_4796
World.ClearArea(-1587.6, 1036.7, 5.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
46@ = Car.Create(108@, -1587.6, 1036.7, 5.7)
Car.SetHeading(46@, 3.3)
Car.LockDoors(46@, CarLock.Locked)
68@ = Char.CreateRandomAsDriver(46@)
Car.SetLoadCollisionFlag(46@, True)
Char.SetCanBeShotInVehicle(68@, False)

:STEAL2_4796
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_4925
World.ClearArea(-1579.6, 1140.1, 5.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
48@ = Car.Create(108@, -1579.6, 1140.1, 5.7)
Car.SetHeading(48@, 2.0)
Car.LockDoors(48@, CarLock.Locked)
70@ = Char.CreateRandomAsDriver(48@)
Car.SetLoadCollisionFlag(48@, True)
Char.SetCanBeShotInVehicle(70@, False)

:STEAL2_4925
World.ClearArea(-1542.9, 974.0, 5.3, 5.0, True)
95@ = Train.Create(9, -1542.9, 974.0, 5.3, False)
Train.SetSpeed(95@, 0.0)
Train.SetCruiseSpeed(95@, 0.0)
Car.LockDoors(95@, CarLock.Locked)
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_5129
World.ClearArea(-1592.8, 934.7, 6.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
49@ = Car.Create(108@, -1592.8, 934.7, 6.2)
Car.SetHeading(49@, 91.3)
Car.LockDoors(49@, CarLock.Locked)
71@ = Char.CreateRandomAsDriver(49@)
Car.SetLoadCollisionFlag(49@, True)
Char.SetCanBeShotInVehicle(71@, False)

:STEAL2_5129
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_5258
World.ClearArea(-1608.8, 934.3, 6.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
50@ = Car.Create(108@, -1608.8, 934.3, 6.2)
Car.SetHeading(50@, 91.3)
Car.LockDoors(50@, CarLock.Locked)
72@ = Char.CreateRandomAsDriver(50@)
Car.SetLoadCollisionFlag(50@, True)
Char.SetCanBeShotInVehicle(72@, False)

:STEAL2_5258
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_5387
World.ClearArea(-1704.4, 916.0, 23.4, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
51@ = Car.Create(108@, -1704.4, 916.0, 23.4)
Car.SetHeading(51@, 269.1)
Car.LockDoors(51@, CarLock.Locked)
73@ = Char.CreateRandomAsDriver(51@)
Car.SetLoadCollisionFlag(51@, True)
Char.SetCanBeShotInVehicle(73@, False)

:STEAL2_5387
World.ClearArea(-1642.2, 1210.5, 6.2, 15.0, True)
97@ = Char.CreateRandom(-1642.2, 1210.5, 6.2)
Char.SetDecisionMaker(97@, 170@)
171@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1645.5, 1214.0, 6.2, MoveState.Walk, -1)
Task.PlayAnim(-1, "COWER", "PED", 4.0, True, False, False, False, 30000)
Sequence.Close(171@)
Char.PerformSequence(97@, 171@)
Sequence.Clear(171@)
World.SetCarDensityMultiplier(0.0)
Camera.SetFixedPosition(-1640.4, 1212.9, 6.6, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1651.3, 1215.3, 10.6, SwitchType.JumpCut)
if 
  101@ == 1
goto_if_false @STEAL2_5656
Camera.DoFade(500, Fade.In)

:STEAL2_5600
if 
  Camera.GetFadingStatus
goto_if_false @STEAL2_5624
wait 0
goto @STEAL2_5600

:STEAL2_5624
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_5656
goto @STEAL2_26013

:STEAL2_5656
TIMERA = 0
100@ = 6

:STEAL2_5670
if 
  100@ == 6
goto_if_false @STEAL2_5924
if 
  not Char.IsDead(97@)
goto_if_false @STEAL2_5924
if 
  Char.LocateAnyMeans2D(97@, -1646.0, 1214.4, 2.0, 2.0, False)
goto_if_false @STEAL2_5924
Car.StartPlayback(34@, 70)
if 
  not Car.IsDead(38@)
goto_if_false @STEAL2_5772
Car.StartPlayback(38@, 71)

:STEAL2_5772
if 
  not Car.IsDead(39@)
goto_if_false @STEAL2_5795
Car.StartPlayback(39@, 72)

:STEAL2_5795
if 
  not Car.IsDead(40@)
goto_if_false @STEAL2_5818
Car.StartPlayback(40@, 73)

:STEAL2_5818
if 
  not Car.IsDead(41@)
goto_if_false @STEAL2_5841
Car.StartPlayback(41@, 74)

:STEAL2_5841
if 
  not Car.IsDead(42@)
goto_if_false @STEAL2_5864
Car.StartPlayback(42@, 75)

:STEAL2_5864
if 
  not Car.IsDead(43@)
goto_if_false @STEAL2_5887
Car.StartPlayback(43@, 76)

:STEAL2_5887
if 
  not Car.IsDead(95@)
goto_if_false @STEAL2_5910
Car.StartPlayback(95@, 77)

:STEAL2_5910
TIMERA = 0
100@ = 7

:STEAL2_5924
if 
  100@ == 7
goto_if_false @STEAL2_5989
if 
  TIMERA > 500
goto_if_false @STEAL2_5989
112@ = 6
113@ = 0
gosub @STEAL2_30237
100@ = 8

:STEAL2_5989
if 
  100@ == 8
goto_if_false @STEAL2_6325
if 
  TIMERA > 2500
goto_if_false @STEAL2_6325
if 
  not Char.IsDead(97@)
goto_if_false @STEAL2_6060
Task.SmartFleeChar(97@, $scplayer, 200.0, 600000)

:STEAL2_6060
Car.PausePlayback(34@)
if 
  not Car.IsDead(38@)
goto_if_false @STEAL2_6086
Car.PausePlayback(38@)

:STEAL2_6086
if 
  not Car.IsDead(39@)
goto_if_false @STEAL2_6107
Car.PausePlayback(39@)

:STEAL2_6107
if 
  not Car.IsDead(40@)
goto_if_false @STEAL2_6128
Car.PausePlayback(40@)

:STEAL2_6128
if 
  not Car.IsDead(41@)
goto_if_false @STEAL2_6149
Car.PausePlayback(41@)

:STEAL2_6149
if 
  not Car.IsDead(42@)
goto_if_false @STEAL2_6170
Car.PausePlayback(42@)

:STEAL2_6170
if 
  not Car.IsDead(43@)
goto_if_false @STEAL2_6191
Car.PausePlayback(43@)

:STEAL2_6191
if 
  not Car.IsDead(95@)
goto_if_false @STEAL2_6212
Car.PausePlayback(95@)

:STEAL2_6212
World.SetPedDensityMultiplier(0.5)
Game.ShutAllCharsUp(False)
98@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(98@, True)
Char.MarkAsNoLongerNeeded(97@)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Text.Print('STE2_02', 7000, 1)
TIMERA = 0
TIMERB = 0
114@ = 0
105@ = 1
100@ = 0
99@ = 1

:STEAL2_6325
if 
  100@ == 0
goto_if_false @STEAL2_6415
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @STEAL2_6415
Streaming.LoadScene(-1638.7, 1199.4, 6.2)
Char.SetCoordinates($scplayer, -1638.7, 1199.4, 6.2)
Char.SetCoordinates($cesar, -1639.7, 1199.4, 6.2)

:STEAL2_6415
if 
  99@ == 1
goto_if_false @STEAL2_7393
if 
  114@ == 0
goto_if_false @STEAL2_6530
if 
  112@ == 0
goto_if_false @STEAL2_6530
if 
  TIMERB > 7000
goto_if_false @STEAL2_6530
112@ = 7
113@ = 0
gosub @STEAL2_30237
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($cesar, True)
114@ = 1

:STEAL2_6530
if 
  114@ == 1
goto_if_false @STEAL2_6587
if 
  112@ == 0
goto_if_false @STEAL2_6587
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
114@ = 2

:STEAL2_6587
if 
  103@ == 0
goto_if_false @STEAL2_6605

:STEAL2_6605
if 
  100@ == 0
goto_if_false @STEAL2_6678
if 
  not Char.LocateAnyMeans3D($scplayer, -1656.2, 1210.2, 12.3, 7.0, 7.0, 7.0, False)
goto_if_false @STEAL2_6678
100@ = 1

:STEAL2_6678
if 
  100@ == 1
goto_if_false @STEAL2_6989
Car.UnpausePlayback(34@)
if 
  not Car.IsDead(38@)
goto_if_false @STEAL2_6722
Car.UnpausePlayback(38@)

:STEAL2_6722
if 
  not Car.IsDead(39@)
goto_if_false @STEAL2_6743
Car.UnpausePlayback(39@)

:STEAL2_6743
if 
  not Car.IsDead(40@)
goto_if_false @STEAL2_6764
Car.UnpausePlayback(40@)

:STEAL2_6764
if 
  not Car.IsDead(41@)
goto_if_false @STEAL2_6785
Car.UnpausePlayback(41@)

:STEAL2_6785
if 
  not Car.IsDead(42@)
goto_if_false @STEAL2_6806
Car.UnpausePlayback(42@)

:STEAL2_6806
if 
  not Car.IsDead(43@)
goto_if_false @STEAL2_6827
Car.UnpausePlayback(43@)

:STEAL2_6827
if 
  not Car.IsDead(95@)
goto_if_false @STEAL2_6848
Car.UnpausePlayback(95@)

:STEAL2_6848
if 
  not Car.IsDead(44@)
goto_if_false @STEAL2_6879
Car.SetCruiseSpeed(44@, 15.0)
Car.WanderRandomly(44@)

:STEAL2_6879
if 
  not Car.IsDead(45@)
goto_if_false @STEAL2_6910
Car.SetCruiseSpeed(45@, 15.0)
Car.WanderRandomly(45@)

:STEAL2_6910
if 
  not Car.IsDead(46@)
goto_if_false @STEAL2_6941
Car.SetCruiseSpeed(46@, 15.0)
Car.WanderRandomly(46@)

:STEAL2_6941
if 
  not Car.IsDead(48@)
goto_if_false @STEAL2_6972
Car.SetCruiseSpeed(48@, 15.0)
Car.WanderRandomly(48@)

:STEAL2_6972
Streaming.RequestModel(597)
Streaming.RequestModel(281)
100@ = 2

:STEAL2_6989
if 
  100@ == 2
goto_if_false @STEAL2_7393
gosub @STEAL2_26853
if 
  not Car.IsPlaybackGoingOn(34@)
goto_if_false @STEAL2_7393
Car.StartPlayback(34@, 79)
if 
  not Car.IsDead(95@)
goto_if_false @STEAL2_7060
Car.StartPlayback(95@, 78)

:STEAL2_7060
if 
  not Car.IsDead(49@)
goto_if_false @STEAL2_7116
Car.SetForwardSpeed(49@, 15.0)
Car.SetCruiseSpeed(49@, 15.0)
Car.GotoCoordinates(49@, -1881.4, 1038.7, 44.8)

:STEAL2_7116
if 
  not Car.IsDead(50@)
goto_if_false @STEAL2_7172
Car.SetForwardSpeed(50@, 15.0)
Car.SetCruiseSpeed(50@, 15.0)
Car.GotoCoordinates(50@, -1880.1, 1029.8, 44.8)

:STEAL2_7172
if 
  not Car.IsDead(51@)
goto_if_false @STEAL2_7213
Car.SetForwardSpeed(51@, 15.0)
Car.SetCruiseSpeed(51@, 15.0)
Car.WanderRandomly(51@)

:STEAL2_7213
Char.MarkAsNoLongerNeeded(58@)
Char.MarkAsNoLongerNeeded(60@)
Char.MarkAsNoLongerNeeded(61@)
Char.MarkAsNoLongerNeeded(62@)
Char.MarkAsNoLongerNeeded(63@)
Char.MarkAsNoLongerNeeded(64@)
Char.MarkAsNoLongerNeeded(65@)
Char.MarkAsNoLongerNeeded(66@)
Char.MarkAsNoLongerNeeded(67@)
Char.MarkAsNoLongerNeeded(68@)
Char.MarkAsNoLongerNeeded(70@)
Car.MarkAsNoLongerNeeded(36@)
Car.MarkAsNoLongerNeeded(38@)
Car.MarkAsNoLongerNeeded(39@)
Car.MarkAsNoLongerNeeded(40@)
Car.MarkAsNoLongerNeeded(41@)
Car.MarkAsNoLongerNeeded(42@)
Car.MarkAsNoLongerNeeded(43@)
Car.MarkAsNoLongerNeeded(44@)
Car.MarkAsNoLongerNeeded(45@)
Car.MarkAsNoLongerNeeded(46@)
Car.MarkAsNoLongerNeeded(48@)
Object.MarkAsNoLongerNeeded(80@)
Object.MarkAsNoLongerNeeded(81@)
Object.MarkAsNoLongerNeeded(82@)
Object.MarkAsNoLongerNeeded(83@)
Object.MarkAsNoLongerNeeded(84@)
Streaming.MarkModelAsNoLongerNeeded(414)
Streaming.MarkModelAsNoLongerNeeded(#CARDBOARDBOX)
TIMERB = 0
114@ = 0
103@ = 0
100@ = 0
99@ = 2

:STEAL2_7393
if 
  99@ == 2
goto_if_false @STEAL2_9654
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_7503
if 
  112@ == 0
goto_if_false @STEAL2_7503
112@ = 8
113@ = 0
159@ = 1
gosub @STEAL2_30237
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($cesar, True)
114@ = 1

:STEAL2_7503
if 
  114@ == 1
goto_if_false @STEAL2_7612
if 
  Car.Locate2D(34@, -1702.4, 921.4, 3.0, 3.0, False)
goto_if_false @STEAL2_7612
if 
  112@ == 0
goto_if_false @STEAL2_7612
112@ = 8
113@ = 1
159@ = 2
gosub @STEAL2_30237
114@ = 2

:STEAL2_7612
if 
  114@ == 2
goto_if_false @STEAL2_7669
if 
  112@ == 0
goto_if_false @STEAL2_7669
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
114@ = 3

:STEAL2_7669
if 
  103@ == 0
goto_if_false @STEAL2_7687

:STEAL2_7687
if 
  100@ == 0
goto_if_false @STEAL2_7722
Streaming.RequestModel(597)
Streaming.RequestModel(281)
100@ = 1

:STEAL2_7722
if 
  100@ == 1
goto_if_false @STEAL2_9397
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_7869
World.ClearArea(-1802.9, 853.6, 23.4, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
37@ = Car.Create(108@, -1802.9, 853.6, 23.4)
Car.SetHeading(37@, 89.3)
Car.LockDoors(37@, CarLock.Locked)
59@ = Char.CreateRandomAsDriver(37@)
Car.SetLoadCollisionFlag(37@, True)
Char.SetCanBeShotInVehicle(59@, False)

:STEAL2_7869
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_7998
World.ClearArea(-1852.2, 836.7, 33.8, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
39@ = Car.Create(108@, -1852.2, 836.7, 33.8)
Car.SetHeading(39@, 270.9)
Car.LockDoors(39@, CarLock.Locked)
61@ = Char.CreateRandomAsDriver(39@)
Car.SetLoadCollisionFlag(39@, True)
Char.SetCanBeShotInVehicle(61@, False)

:STEAL2_7998
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_8127
World.ClearArea(-1876.7, 836.3, 33.8, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
40@ = Car.Create(108@, -1876.7, 836.3, 33.8)
Car.SetHeading(40@, 270.9)
Car.LockDoors(40@, CarLock.Locked)
62@ = Char.CreateRandomAsDriver(40@)
Car.SetLoadCollisionFlag(40@, True)
Char.SetCanBeShotInVehicle(62@, False)

:STEAL2_8127
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_8256
World.ClearArea(-1903.1, 826.2, 33.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
42@ = Car.Create(108@, -1903.1, 826.2, 33.7)
Car.SetHeading(42@, 178.0)
Car.LockDoors(42@, CarLock.Locked)
64@ = Char.CreateRandomAsDriver(42@)
Car.SetLoadCollisionFlag(42@, True)
Char.SetCanBeShotInVehicle(64@, False)

:STEAL2_8256
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_8385
World.ClearArea(-1915.7, 836.6, 34.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
43@ = Car.Create(108@, -1915.7, 836.6, 34.2)
Car.SetHeading(43@, 272.0)
Car.LockDoors(43@, CarLock.Locked)
65@ = Char.CreateRandomAsDriver(43@)
Car.SetLoadCollisionFlag(43@, True)
Char.SetCanBeShotInVehicle(65@, False)

:STEAL2_8385
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_8514
World.ClearArea(-1902.8, 866.4, 34.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
44@ = Car.Create(108@, -1902.8, 866.4, 34.2)
Car.SetHeading(44@, 179.4)
Car.LockDoors(44@, CarLock.Locked)
66@ = Char.CreateRandomAsDriver(44@)
Car.SetLoadCollisionFlag(44@, True)
Char.SetCanBeShotInVehicle(66@, False)

:STEAL2_8514
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_8643
World.ClearArea(-1902.7, 882.1, 34.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
45@ = Car.Create(108@, -1902.7, 882.1, 34.2)
Car.SetHeading(45@, 179.4)
Car.LockDoors(45@, CarLock.Locked)
67@ = Char.CreateRandomAsDriver(45@)
Car.SetLoadCollisionFlag(45@, True)
Char.SetCanBeShotInVehicle(67@, False)

:STEAL2_8643
World.ClearArea(-1805.5, 900.3, 23.9, 5.0, True)
68@ = Char.CreateRandom(-1805.5, 900.3, 23.9)
Char.SetHeading(68@, 352.4)
World.ClearArea(-1804.5, 901.3, 23.9, 5.0, True)
69@ = Char.CreateRandom(-1804.5, 901.3, 23.9)
Char.SetHeading(69@, 169.0)
Task.ChatWithChar(68@, 69@, True, 1)
Task.ChatWithChar(69@, 68@, False, 1)
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_8904
World.ClearArea(-1988.1, 933.5, 43.9, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
57@ = Car.Create(108@, -1988.1, 933.5, 43.9)
Car.SetHeading(57@, 85.7)
Car.LockDoors(57@, CarLock.Locked)
79@ = Char.CreateRandomAsDriver(57@)
Car.SetLoadCollisionFlag(57@, True)
Char.SetCanBeShotInVehicle(79@, False)

:STEAL2_8904
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_9033
World.ClearArea(-2007.7, 1039.2, 55.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
52@ = Car.Create(108@, -2007.7, 1039.2, 55.2)
Car.SetHeading(52@, 178.1)
Car.LockDoors(52@, CarLock.Locked)
74@ = Char.CreateRandomAsDriver(52@)
Car.SetLoadCollisionFlag(52@, True)
Char.SetCanBeShotInVehicle(74@, False)

:STEAL2_9033
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_9162
World.ClearArea(-2009.2, 962.6, 44.1, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
53@ = Car.Create(108@, -2009.2, 962.6, 44.1)
Car.SetHeading(53@, 179.8)
Car.LockDoors(53@, CarLock.Locked)
75@ = Char.CreateRandomAsDriver(53@)
Car.SetLoadCollisionFlag(53@, True)
Char.SetCanBeShotInVehicle(75@, False)

:STEAL2_9162
if 
  Streaming.HasModelLoaded(597)
goto_if_false @STEAL2_9276
World.ClearArea(-1998.2, 825.3, 44.1, 5.0, True)
54@ = Car.Create(597, -1998.2, 825.3, 44.1)
Car.SetHeading(54@, 6.4)
76@ = Char.CreateInsideCar(54@, PedType.Mission1, 281)
Car.SetDrivingStyle(54@, DrivingMode.AvoidCars)
Car.LockDoors(54@, CarLock.Locked)
Car.SetLoadCollisionFlag(54@, True)
Char.SetCanBeShotInVehicle(76@, False)

:STEAL2_9276
if 
  Streaming.HasModelLoaded(597)
goto_if_false @STEAL2_9390
World.ClearArea(-1997.5, 815.6, 44.1, 5.0, True)
55@ = Car.Create(597, -1997.5, 815.6, 44.1)
Car.SetHeading(55@, 1.0)
77@ = Char.CreateInsideCar(55@, PedType.Mission1, 281)
Car.SetDrivingStyle(55@, DrivingMode.AvoidCars)
Car.LockDoors(55@, CarLock.Locked)
Car.SetLoadCollisionFlag(55@, True)
Char.SetCanBeShotInVehicle(77@, False)

:STEAL2_9390
100@ = 2

:STEAL2_9397
if 
  100@ == 2
goto_if_false @STEAL2_9654
if 
  not Car.IsPlaybackGoingOn(34@)
goto_if_false @STEAL2_9654
Car.MarkAsNoLongerNeeded(51@)
Char.MarkAsNoLongerNeeded(73@)
Car.StartPlayback(34@, 81)
if 
  not Car.IsDead(95@)
goto_if_false @STEAL2_9471
Car.StartPlayback(95@, 80)

:STEAL2_9471
if 
  not Car.IsDead(37@)
goto_if_false @STEAL2_9527
Car.SetForwardSpeed(37@, 15.0)
Car.SetCruiseSpeed(37@, 15.0)
Car.GotoCoordinates(37@, -1881.4, 853.7, 35.7)

:STEAL2_9527
if 
  not Car.IsDead(39@)
goto_if_false @STEAL2_9583
Car.SetForwardSpeed(39@, 15.0)
Car.SetCruiseSpeed(39@, 15.0)
Car.GotoCoordinates(39@, -1717.8, 755.3, 24.8)

:STEAL2_9583
if 
  not Car.IsDead(40@)
goto_if_false @STEAL2_9619
Car.SetForwardSpeed(40@, 15.0)
Car.SetCruiseSpeed(40@, 15.0)

:STEAL2_9619
TIMERB = 0
114@ = 0
103@ = 0
100@ = 0
99@ = 3

:STEAL2_9654
if 
  99@ == 3
goto_if_false @STEAL2_10099
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_9802
if 
  Car.Locate2D(34@, -1855.2, 916.9, 3.0, 3.0, False)
goto_if_false @STEAL2_9802
if 
  112@ == 0
goto_if_false @STEAL2_9802
112@ = 8
113@ = 2
159@ = 3
gosub @STEAL2_30237
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($cesar, True)
114@ = 1

:STEAL2_9802
if 
  114@ == 1
goto_if_false @STEAL2_9859
if 
  112@ == 0
goto_if_false @STEAL2_9859
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
114@ = 2

:STEAL2_9859
if 
  103@ == 0
goto_if_false @STEAL2_9877

:STEAL2_9877
if 
  100@ == 0
goto_if_false @STEAL2_9902
100@ = 1

:STEAL2_9902
if 
  100@ == 1
goto_if_false @STEAL2_10099
if 
  not Car.IsPlaybackGoingOn(34@)
goto_if_false @STEAL2_10099
Char.MarkAsNoLongerNeeded(59@)
Char.MarkAsNoLongerNeeded(61@)
Char.MarkAsNoLongerNeeded(62@)
Char.MarkAsNoLongerNeeded(64@)
Char.MarkAsNoLongerNeeded(65@)
Char.MarkAsNoLongerNeeded(66@)
Char.MarkAsNoLongerNeeded(67@)
Char.MarkAsNoLongerNeeded(68@)
Char.MarkAsNoLongerNeeded(69@)
Car.MarkAsNoLongerNeeded(37@)
Car.MarkAsNoLongerNeeded(39@)
Car.MarkAsNoLongerNeeded(40@)
Car.MarkAsNoLongerNeeded(42@)
Car.MarkAsNoLongerNeeded(43@)
Car.MarkAsNoLongerNeeded(44@)
Car.MarkAsNoLongerNeeded(45@)
Object.Delete(80@)
Object.Delete(81@)
Object.Delete(82@)
Object.Delete(83@)
Object.Delete(84@)
if 
  not Car.IsDead(95@)
goto_if_false @STEAL2_10064
Car.StartPlayback(95@, 83)

:STEAL2_10064
Car.StartPlayback(34@, 84)
114@ = 0
103@ = 0
100@ = 0
99@ = 4

:STEAL2_10099
if 
  99@ == 4
goto_if_false @STEAL2_12834
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_10209
if 
  112@ == 0
goto_if_false @STEAL2_10209
112@ = 8
113@ = 3
159@ = 4
gosub @STEAL2_30237
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($cesar, True)
114@ = 1

:STEAL2_10209
if 
  114@ == 1
goto_if_false @STEAL2_10259
if 
  112@ == 0
goto_if_false @STEAL2_10259
Player.AlterWantedLevelNoDrop($player1, 2)
114@ = 2

:STEAL2_10259
if 
  114@ == 2
goto_if_false @STEAL2_10316
if 
  112@ == 0
goto_if_false @STEAL2_10316
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
114@ = 3

:STEAL2_10316
if 
  103@ == 0
goto_if_false @STEAL2_10334

:STEAL2_10334
if 
  100@ == 0
goto_if_false @STEAL2_11841
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_10481
World.ClearArea(-2350.7, 1091.2, 54.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
36@ = Car.Create(108@, -2350.7, 1091.2, 54.2)
Car.SetHeading(36@, 72.3)
Car.LockDoors(36@, CarLock.Locked)
58@ = Char.CreateRandomAsDriver(36@)
Car.SetLoadCollisionFlag(36@, True)
Char.SetCanBeShotInVehicle(58@, False)

:STEAL2_10481
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_10610
World.ClearArea(-2347.8, 1081.2, 54.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
37@ = Car.Create(108@, -2347.8, 1081.2, 54.2)
Car.SetHeading(37@, 73.7)
Car.LockDoors(37@, CarLock.Locked)
59@ = Char.CreateRandomAsDriver(37@)
Car.SetLoadCollisionFlag(37@, True)
Char.SetCanBeShotInVehicle(59@, False)

:STEAL2_10610
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_10746
World.ClearArea(-2124.1, 1080.8, 54.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
38@ = Car.Create(108@, -2124.1, 1080.8, 54.2)
Car.SetHeading(38@, 90.7)
Car.LockDoors(38@, CarLock.Locked)
60@ = Char.CreateRandomAsDriver(38@)
Car.SetStayInSlowLane(38@, True)
Car.SetLoadCollisionFlag(38@, True)
Char.SetCanBeShotInVehicle(60@, False)

:STEAL2_10746
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_10882
World.ClearArea(-2132.0, 1059.0, 54.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
39@ = Car.Create(108@, -2132.0, 1059.0, 54.2)
Car.SetHeading(39@, 269.2)
Car.LockDoors(39@, CarLock.Locked)
61@ = Char.CreateRandomAsDriver(39@)
Car.SetStayInFastLane(39@, True)
Car.SetLoadCollisionFlag(39@, True)
Char.SetCanBeShotInVehicle(61@, False)

:STEAL2_10882
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_11018
World.ClearArea(-2166.7, 1050.8, 54.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
40@ = Car.Create(108@, -2166.7, 1050.8, 54.2)
Car.SetHeading(40@, 270.2)
Car.LockDoors(40@, CarLock.Locked)
62@ = Char.CreateRandomAsDriver(40@)
Car.SetStayInSlowLane(40@, True)
Car.SetLoadCollisionFlag(40@, True)
Char.SetCanBeShotInVehicle(62@, False)

:STEAL2_11018
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_11154
World.ClearArea(-2231.0, 1059.8, 54.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
41@ = Car.Create(108@, -2231.0, 1059.8, 54.2)
Car.SetHeading(41@, 268.2)
Car.LockDoors(41@, CarLock.Locked)
63@ = Char.CreateRandomAsDriver(41@)
Car.SetStayInFastLane(41@, True)
Car.SetLoadCollisionFlag(41@, True)
Char.SetCanBeShotInVehicle(63@, False)

:STEAL2_11154
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_11290
World.ClearArea(-2299.5, 1052.1, 54.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
42@ = Car.Create(108@, -2299.5, 1052.1, 54.2)
Car.SetHeading(42@, 272.2)
Car.LockDoors(42@, CarLock.Locked)
64@ = Char.CreateRandomAsDriver(42@)
Car.SetStayInSlowLane(42@, True)
Car.SetLoadCollisionFlag(42@, True)
Char.SetCanBeShotInVehicle(64@, False)

:STEAL2_11290
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_11426
World.ClearArea(-2338.1, 1066.2, 54.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
43@ = Car.Create(108@, -2338.1, 1066.2, 54.2)
Car.SetHeading(43@, 255.2)
Car.LockDoors(43@, CarLock.Locked)
65@ = Char.CreateRandomAsDriver(43@)
Car.SetStayInFastLane(43@, True)
Car.SetLoadCollisionFlag(43@, True)
Char.SetCanBeShotInVehicle(65@, False)

:STEAL2_11426
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_11562
World.ClearArea(-2344.3, 1058.8, 54.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
44@ = Car.Create(108@, -2344.3, 1058.8, 54.2)
Car.SetHeading(44@, 257.1)
Car.LockDoors(44@, CarLock.Locked)
66@ = Char.CreateRandomAsDriver(44@)
Car.SetStayInSlowLane(44@, True)
Car.SetLoadCollisionFlag(44@, True)
Char.SetCanBeShotInVehicle(66@, False)

:STEAL2_11562
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_11698
World.ClearArea(-2446.5, 1097.0, 54.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
45@ = Car.Create(108@, -2446.5, 1097.0, 54.2)
Car.SetHeading(45@, 266.7)
Car.LockDoors(45@, CarLock.Locked)
67@ = Char.CreateRandomAsDriver(45@)
Car.SetStayInFastLane(45@, True)
Car.SetLoadCollisionFlag(45@, True)
Char.SetCanBeShotInVehicle(67@, False)

:STEAL2_11698
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_11834
World.ClearArea(-2427.5, 1087.2, 54.2, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
46@ = Car.Create(108@, -2427.5, 1087.2, 54.2)
Car.SetHeading(46@, 261.0)
Car.LockDoors(46@, CarLock.Locked)
68@ = Char.CreateRandomAsDriver(46@)
Car.SetStayInSlowLane(46@, True)
Car.SetLoadCollisionFlag(46@, True)
Char.SetCanBeShotInVehicle(68@, False)

:STEAL2_11834
100@ = 1

:STEAL2_11841
if 
  100@ == 1
goto_if_false @STEAL2_12183
if 
  Car.Locate2D(34@, -1990.0, 838.0, 3.0, 3.0, False)
goto_if_false @STEAL2_12183
if 
  not Car.IsDead(51@)
goto_if_false @STEAL2_11920
Car.StartPlayback(51@, 85)

:STEAL2_11920
if 
  not Car.IsDead(52@)
goto_if_false @STEAL2_11976
Car.SetForwardSpeed(52@, 15.0)
Car.SetCruiseSpeed(52@, 15.0)
Car.GotoCoordinates(52@, -2008.2, 581.2, 35.3)

:STEAL2_11976
if 
  not Car.IsDead(53@)
goto_if_false @STEAL2_12032
Car.SetForwardSpeed(53@, 15.0)
Car.SetCruiseSpeed(53@, 15.0)
Car.GotoCoordinates(53@, -2008.2, 571.2, 35.3)

:STEAL2_12032
if 
  not Car.IsDead(54@)
goto_if_false @STEAL2_12104
Car.SetForwardSpeed(54@, 15.0)
Car.SetCruiseSpeed(54@, 40.0)
if 
  not Car.IsDead(34@)
goto_if_false @STEAL2_12104
Car.SetFollowCar(54@, 34@, 10.0)
Car.SwitchSiren(54@, True)

:STEAL2_12104
if 
  not Car.IsDead(55@)
goto_if_false @STEAL2_12176
Car.SetForwardSpeed(55@, 15.0)
Car.SetCruiseSpeed(55@, 40.0)
if 
  not Car.IsDead(34@)
goto_if_false @STEAL2_12176
Car.SetFollowCar(55@, 34@, 20.0)
Car.SwitchSiren(55@, True)

:STEAL2_12176
100@ = 2

:STEAL2_12183
if 
  100@ == 2
goto_if_false @STEAL2_12834
Streaming.RequestModel(437)
Streaming.RequestModel(461)
if 
  not Car.IsPlaybackGoingOn(34@)
goto_if_false @STEAL2_12834
Char.MarkAsNoLongerNeeded(79@)
Char.MarkAsNoLongerNeeded(74@)
Char.MarkAsNoLongerNeeded(75@)
Char.MarkAsNoLongerNeeded(76@)
Char.MarkAsNoLongerNeeded(77@)
Car.MarkAsNoLongerNeeded(57@)
Car.MarkAsNoLongerNeeded(52@)
Car.MarkAsNoLongerNeeded(53@)
Car.MarkAsNoLongerNeeded(54@)
Car.MarkAsNoLongerNeeded(55@)
Car.MarkAsNoLongerNeeded(95@)
Streaming.MarkModelAsNoLongerNeeded(449)
Car.StartPlayback(34@, 86)
if 
  not Car.IsDead(38@)
goto_if_false @STEAL2_12317
Car.StartPlayback(38@, 87)

:STEAL2_12317
if 
  not Car.IsDead(51@)
goto_if_false @STEAL2_12354
if 
  not Car.IsPlaybackGoingOn(51@)
goto_if_false @STEAL2_12354
Car.StopPlayback(51@)

:STEAL2_12354
Streaming.RemoveCarRecording(85)
if 
  not Car.IsDead(39@)
goto_if_false @STEAL2_12414
Car.SetForwardSpeed(39@, 15.0)
Car.SetCruiseSpeed(39@, 15.0)
Car.GotoCoordinates(39@, -1896.9, 1060.1, 44.2)

:STEAL2_12414
if 
  not Car.IsDead(40@)
goto_if_false @STEAL2_12470
Car.SetForwardSpeed(40@, 15.0)
Car.SetCruiseSpeed(40@, 15.0)
Car.GotoCoordinates(40@, -1896.9, 1050.1, 44.2)

:STEAL2_12470
if 
  not Car.IsDead(41@)
goto_if_false @STEAL2_12526
Car.SetForwardSpeed(41@, 15.0)
Car.SetCruiseSpeed(41@, 15.0)
Car.GotoCoordinates(41@, -1906.9, 1060.1, 48.2)

:STEAL2_12526
if 
  not Car.IsDead(42@)
goto_if_false @STEAL2_12582
Car.SetForwardSpeed(42@, 15.0)
Car.SetCruiseSpeed(42@, 15.0)
Car.GotoCoordinates(42@, -1906.9, 1050.1, 48.2)

:STEAL2_12582
if 
  not Car.IsDead(43@)
goto_if_false @STEAL2_12638
Car.SetForwardSpeed(43@, 15.0)
Car.SetCruiseSpeed(43@, 15.0)
Car.GotoCoordinates(43@, -1916.9, 1060.1, 52.2)

:STEAL2_12638
if 
  not Car.IsDead(44@)
goto_if_false @STEAL2_12694
Car.SetForwardSpeed(44@, 15.0)
Car.SetCruiseSpeed(44@, 15.0)
Car.GotoCoordinates(44@, -1916.9, 1050.1, 52.2)

:STEAL2_12694
if 
  not Car.IsDead(45@)
goto_if_false @STEAL2_12750
Car.SetForwardSpeed(45@, 15.0)
Car.SetCruiseSpeed(45@, 15.0)
Car.GotoCoordinates(45@, -1926.9, 1060.1, 56.2)

:STEAL2_12750
if 
  not Car.IsDead(46@)
goto_if_false @STEAL2_12806
Car.SetForwardSpeed(46@, 15.0)
Car.SetCruiseSpeed(46@, 15.0)
Car.GotoCoordinates(46@, -1926.9, 1050.1, 56.2)

:STEAL2_12806
114@ = 0
103@ = 0
100@ = 0
99@ = 5

:STEAL2_12834
if 
  99@ == 5
goto_if_false @STEAL2_14364
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_12944
if 
  112@ == 0
goto_if_false @STEAL2_12944
112@ = 8
113@ = 4
159@ = 5
gosub @STEAL2_30237
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($cesar, True)
114@ = 1

:STEAL2_12944
if 
  114@ == 1
goto_if_false @STEAL2_12985
Text.PrintHelp('STE2_03')
Car.GiveNonPlayerNitro(34@)
114@ = 2

:STEAL2_12985
if 
  114@ == 2
goto_if_false @STEAL2_13094
if 
  Car.Locate2D(34@, -2319.8, 1080.2, 3.0, 3.0, False)
goto_if_false @STEAL2_13094
if 
  112@ == 0
goto_if_false @STEAL2_13094
112@ = 8
113@ = 5
159@ = 6
gosub @STEAL2_30237
114@ = 3

:STEAL2_13094
if 
  114@ == 3
goto_if_false @STEAL2_13151
if 
  112@ == 0
goto_if_false @STEAL2_13151
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
114@ = 4

:STEAL2_13151
if 
  103@ == 0
goto_if_false @STEAL2_13169

:STEAL2_13169
if 
  100@ == 0
goto_if_false @STEAL2_14004
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_13316
World.ClearArea(-2503.3, 1237.0, 33.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
47@ = Car.Create(108@, -2503.3, 1237.0, 33.7)
Car.SetHeading(47@, 249.3)
Car.LockDoors(47@, CarLock.Locked)
69@ = Char.CreateRandomAsDriver(47@)
Car.SetLoadCollisionFlag(47@, True)
Char.SetCanBeShotInVehicle(69@, False)

:STEAL2_13316
World.ClearArea(-2741.5, 1058.2, 48.1, 5.0, True)
50@ = Car.Create(461, -2741.5, 1058.2, 48.1)
Car.SetHeading(50@, 337.2)
72@ = Char.CreateRandomAsDriver(50@)
Car.SetLoadCollisionFlag(50@, True)
Char.SetCanBeShotInVehicle(72@, False)
World.ClearArea(-2513.7, 1246.2, 34.1, 5.0, True)
52@ = Car.Create(437, -2513.7, 1246.2, 34.1)
Car.SetHeading(52@, 82.5)
74@ = Char.CreateRandomAsDriver(52@)
Car.SetLoadCollisionFlag(52@, True)
Car.LockDoors(52@, CarLock.Locked)
Char.SetCanBeShotInVehicle(74@, False)
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_13610
World.ClearArea(-2471.6, 1219.7, 33.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
53@ = Car.Create(108@, -2471.6, 1219.7, 33.7)
Car.SetHeading(53@, 50.8)
Car.LockDoors(53@, CarLock.Locked)
75@ = Char.CreateRandomAsDriver(53@)
Car.SetLoadCollisionFlag(53@, True)
Char.SetCanBeShotInVehicle(75@, False)

:STEAL2_13610
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_13739
World.ClearArea(-2459.1, 1224.3, 33.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
54@ = Car.Create(108@, -2459.1, 1224.3, 33.7)
Car.SetHeading(54@, 163.8)
Car.LockDoors(54@, CarLock.Locked)
76@ = Char.CreateRandomAsDriver(54@)
Car.SetLoadCollisionFlag(54@, True)
Char.SetCanBeShotInVehicle(76@, False)

:STEAL2_13739
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_13868
World.ClearArea(-2458.1, 1234.3, 33.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
55@ = Car.Create(108@, -2458.1, 1234.3, 33.7)
Car.SetHeading(55@, 178.2)
Car.LockDoors(55@, CarLock.Locked)
77@ = Char.CreateRandomAsDriver(55@)
Car.SetLoadCollisionFlag(55@, True)
Char.SetCanBeShotInVehicle(77@, False)

:STEAL2_13868
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_13997
World.ClearArea(-2474.5, 1196.9, 34.4, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
56@ = Car.Create(108@, -2474.5, 1196.9, 34.4)
Car.SetHeading(56@, 310.3)
Car.LockDoors(56@, CarLock.Locked)
78@ = Char.CreateRandomAsDriver(56@)
Car.SetLoadCollisionFlag(56@, True)
Char.SetCanBeShotInVehicle(78@, False)

:STEAL2_13997
100@ = 1

:STEAL2_14004
if 
  100@ == 1
goto_if_false @STEAL2_14364
if 
  not Car.IsPlaybackGoingOn(34@)
goto_if_false @STEAL2_14364
Char.MarkAsNoLongerNeeded(58@)
Char.MarkAsNoLongerNeeded(59@)
Char.MarkAsNoLongerNeeded(60@)
Char.MarkAsNoLongerNeeded(61@)
Char.MarkAsNoLongerNeeded(62@)
Char.MarkAsNoLongerNeeded(63@)
Char.MarkAsNoLongerNeeded(64@)
Char.MarkAsNoLongerNeeded(65@)
Char.MarkAsNoLongerNeeded(66@)
Char.MarkAsNoLongerNeeded(67@)
Char.MarkAsNoLongerNeeded(68@)
Car.MarkAsNoLongerNeeded(36@)
Car.MarkAsNoLongerNeeded(37@)
Car.MarkAsNoLongerNeeded(38@)
Car.MarkAsNoLongerNeeded(39@)
Car.MarkAsNoLongerNeeded(40@)
Car.MarkAsNoLongerNeeded(41@)
Car.MarkAsNoLongerNeeded(42@)
Car.MarkAsNoLongerNeeded(43@)
Car.MarkAsNoLongerNeeded(44@)
Car.MarkAsNoLongerNeeded(45@)
Car.MarkAsNoLongerNeeded(46@)
if 
  not Car.IsDead(47@)
goto_if_false @STEAL2_14204
Car.SetForwardSpeed(47@, 15.0)
Car.SetCruiseSpeed(47@, 15.0)
Car.GotoCoordinates(47@, -2293.5, 1172.3, 54.8)

:STEAL2_14204
if 
  not Car.IsDead(50@)
goto_if_false @STEAL2_14227
Car.StartPlayback(50@, 91)

:STEAL2_14227
if 
  not Car.IsDead(52@)
goto_if_false @STEAL2_14250
Car.StartPlayback(52@, 90)

:STEAL2_14250
if 
  not Car.IsDead(53@)
goto_if_false @STEAL2_14273
Car.StartPlayback(53@, 89)

:STEAL2_14273
if 
  not Car.IsDead(56@)
goto_if_false @STEAL2_14329
Car.SetForwardSpeed(56@, 15.0)
Car.SetCruiseSpeed(56@, 15.0)
Car.GotoCoordinates(56@, -2283.5, 1172.3, 54.8)

:STEAL2_14329
Car.StartPlayback(34@, 88)
114@ = 0
103@ = 0
100@ = 0
99@ = 6

:STEAL2_14364
if 
  99@ == 6
goto_if_false @STEAL2_15242
gosub @STEAL2_26853
if 
  103@ == 0
goto_if_false @STEAL2_14407

:STEAL2_14407
if 
  100@ == 0
goto_if_false @STEAL2_14931
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_14554
World.ClearArea(-2533.8, 1242.8, 33.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
48@ = Car.Create(108@, -2533.8, 1242.8, 33.7)
Car.SetHeading(48@, 288.3)
Car.LockDoors(48@, CarLock.Locked)
70@ = Char.CreateRandomAsDriver(48@)
Car.SetLoadCollisionFlag(48@, True)
Char.SetCanBeShotInVehicle(70@, False)

:STEAL2_14554
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_14683
World.ClearArea(-2594.0, 1213.9, 33.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
49@ = Car.Create(108@, -2594.0, 1213.9, 33.7)
Car.SetHeading(49@, 317.3)
Car.LockDoors(49@, CarLock.Locked)
71@ = Char.CreateRandomAsDriver(49@)
Car.SetLoadCollisionFlag(49@, True)
Char.SetCanBeShotInVehicle(71@, False)

:STEAL2_14683
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_14812
World.ClearArea(-2732.9, 1098.0, 45.0, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
51@ = Car.Create(108@, -2732.9, 1098.0, 45.0)
Car.SetHeading(51@, 218.5)
Car.LockDoors(51@, CarLock.Locked)
73@ = Char.CreateRandomAsDriver(51@)
Car.SetLoadCollisionFlag(51@, True)
Char.SetCanBeShotInVehicle(73@, False)

:STEAL2_14812
if 
  not Car.IsDead(48@)
goto_if_false @STEAL2_14868
Car.SetForwardSpeed(48@, 15.0)
Car.SetCruiseSpeed(48@, 15.0)
Car.GotoCoordinates(48@, -2303.5, 1172.3, 54.8)

:STEAL2_14868
if 
  not Car.IsDead(49@)
goto_if_false @STEAL2_14924
Car.SetForwardSpeed(49@, 15.0)
Car.SetCruiseSpeed(49@, 15.0)
Car.GotoCoordinates(49@, -2313.5, 1060.1, 44.2)

:STEAL2_14924
100@ = 1

:STEAL2_14931
if 
  100@ == 1
goto_if_false @STEAL2_15064
if 
  not Car.IsDead(50@)
goto_if_false @STEAL2_15057
if 
  Car.Locate2D(34@, -2599.3, 1206.5, 3.0, 3.0, False)
goto_if_false @STEAL2_15050
if 
  Car.IsPlaybackGoingOn(50@)
goto_if_false @STEAL2_15043
Car.StopPlayback(50@)
Car.MarkAsNoLongerNeeded(50@)
100@ = 2
goto @STEAL2_15050

:STEAL2_15043
100@ = 2

:STEAL2_15050
goto @STEAL2_15064

:STEAL2_15057
100@ = 2

:STEAL2_15064
if 
  100@ == 2
goto_if_false @STEAL2_15242
if 
  not Car.IsPlaybackGoingOn(34@)
goto_if_false @STEAL2_15242
Char.MarkAsNoLongerNeeded(69@)
Char.MarkAsNoLongerNeeded(70@)
Char.MarkAsNoLongerNeeded(71@)
Char.MarkAsNoLongerNeeded(72@)
Char.MarkAsNoLongerNeeded(73@)
Char.MarkAsNoLongerNeeded(74@)
Char.MarkAsNoLongerNeeded(75@)
Char.MarkAsNoLongerNeeded(76@)
Char.MarkAsNoLongerNeeded(77@)
Char.MarkAsNoLongerNeeded(78@)
Car.MarkAsNoLongerNeeded(47@)
Car.MarkAsNoLongerNeeded(48@)
Car.MarkAsNoLongerNeeded(49@)
Car.MarkAsNoLongerNeeded(50@)
Car.MarkAsNoLongerNeeded(51@)
Car.MarkAsNoLongerNeeded(52@)
Car.MarkAsNoLongerNeeded(53@)
Car.MarkAsNoLongerNeeded(54@)
Car.MarkAsNoLongerNeeded(55@)
Car.MarkAsNoLongerNeeded(56@)
Streaming.RemoveCarRecording(91)
Car.StartPlayback(34@, 92)
Streaming.MarkModelAsNoLongerNeeded(461)
114@ = 0
103@ = 0
100@ = 0
99@ = 7

:STEAL2_15242
if 
  99@ == 7
goto_if_false @STEAL2_18173
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_15345
if 
  112@ == 0
goto_if_false @STEAL2_15345
112@ = 9
113@ = 0
gosub @STEAL2_30237
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($cesar, True)
114@ = 1

:STEAL2_15345
if 
  114@ == 1
goto_if_false @STEAL2_15454
if 
  Car.Locate2D(34@, -2622.2, 999.7, 3.0, 3.0, False)
goto_if_false @STEAL2_15454
if 
  112@ == 0
goto_if_false @STEAL2_15454
112@ = 8
113@ = 7
159@ = 8
gosub @STEAL2_30237
114@ = 2

:STEAL2_15454
if 
  114@ == 2
goto_if_false @STEAL2_15563
if 
  Car.Locate2D(34@, -2608.9, 913.3, 3.0, 3.0, False)
goto_if_false @STEAL2_15563
if 
  112@ == 0
goto_if_false @STEAL2_15563
112@ = 8
113@ = 8
159@ = 9
gosub @STEAL2_30237
114@ = 3

:STEAL2_15563
if 
  114@ == 3
goto_if_false @STEAL2_15620
if 
  112@ == 0
goto_if_false @STEAL2_15620
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
114@ = 4

:STEAL2_15620
if 
  103@ == 0
goto_if_false @STEAL2_15638

:STEAL2_15638
if 
  100@ == 0
goto_if_false @STEAL2_17603
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_15785
World.ClearArea(-2595.6, 1006.4, 76.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
36@ = Car.Create(108@, -2595.6, 1006.4, 76.7)
Car.SetHeading(36@, 89.4)
Car.LockDoors(36@, CarLock.Locked)
58@ = Char.CreateRandomAsDriver(36@)
Car.SetLoadCollisionFlag(36@, True)
Char.SetCanBeShotInVehicle(58@, False)

:STEAL2_15785
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_15914
World.ClearArea(-2595.6, 1000.9, 76.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
37@ = Car.Create(108@, -2595.6, 1000.9, 76.7)
Car.SetHeading(37@, 274.4)
Car.LockDoors(37@, CarLock.Locked)
59@ = Char.CreateRandomAsDriver(37@)
Car.SetLoadCollisionFlag(37@, True)
Char.SetCanBeShotInVehicle(59@, False)

:STEAL2_15914
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_16043
World.ClearArea(-2604.0, 963.9, 76.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
38@ = Car.Create(108@, -2604.0, 963.9, 76.7)
Car.SetHeading(38@, 360.0)
Car.LockDoors(38@, CarLock.Locked)
60@ = Char.CreateRandomAsDriver(38@)
Car.SetLoadCollisionFlag(38@, True)
Char.SetCanBeShotInVehicle(60@, False)

:STEAL2_16043
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_16172
World.ClearArea(-2616.4, 905.6, 64.5, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
39@ = Car.Create(108@, -2616.4, 905.6, 64.5)
Car.SetHeading(39@, 269.5)
Car.LockDoors(39@, CarLock.Locked)
61@ = Char.CreateRandomAsDriver(39@)
Car.SetLoadCollisionFlag(39@, True)
Char.SetCanBeShotInVehicle(61@, False)

:STEAL2_16172
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_16301
World.ClearArea(-2536.9, 911.1, 63.5, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
40@ = Car.Create(108@, -2536.9, 911.1, 63.5)
Car.SetHeading(40@, 89.8)
Car.LockDoors(40@, CarLock.Locked)
62@ = Char.CreateRandomAsDriver(40@)
Car.SetLoadCollisionFlag(40@, True)
Char.SetCanBeShotInVehicle(62@, False)

:STEAL2_16301
if 
  Streaming.HasModelLoaded(597)
goto_if_false @STEAL2_16415
World.ClearArea(-2609.3, 1012.8, 76.8, 5.0, True)
41@ = Car.Create(597, -2609.3, 1012.8, 76.8)
Car.SetHeading(41@, 178.8)
Car.LockDoors(41@, CarLock.Locked)
63@ = Char.CreateInsideCar(41@, PedType.Mission1, 281)
Car.SetDrivingStyle(41@, DrivingMode.AvoidCars)
Car.SetLoadCollisionFlag(41@, True)
Char.SetCanBeShotInVehicle(63@, False)

:STEAL2_16415
if 
  Streaming.HasModelLoaded(597)
goto_if_false @STEAL2_16529
World.ClearArea(-2603.7, 1011.2, 76.8, 5.0, True)
42@ = Car.Create(597, -2603.7, 1011.2, 76.8)
Car.SetHeading(42@, 179.1)
Car.LockDoors(42@, CarLock.Locked)
64@ = Char.CreateInsideCar(42@, PedType.Mission1, 281)
Car.SetDrivingStyle(42@, DrivingMode.AvoidCars)
Car.SetLoadCollisionFlag(42@, True)
Char.SetCanBeShotInVehicle(64@, False)

:STEAL2_16529
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_16665
World.ClearArea(-2590.0, 705.9, 26.6, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
43@ = Car.Create(108@, -2590.0, 705.9, 26.6)
Car.SetHeading(43@, 268.3)
Car.LockDoors(43@, CarLock.Locked)
65@ = Char.CreateRandomAsDriver(43@)
Car.SetDrivingStyle(43@, DrivingMode.StopForCarsIgnoreLights)
Car.SetLoadCollisionFlag(43@, True)
Char.SetCanBeShotInVehicle(65@, False)

:STEAL2_16665
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_16801
World.ClearArea(-2463.0, 710.6, 33.9, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
44@ = Car.Create(108@, -2463.0, 710.6, 33.9)
Car.SetHeading(44@, 90.3)
Car.LockDoors(44@, CarLock.Locked)
66@ = Char.CreateRandomAsDriver(44@)
Car.SetDrivingStyle(44@, DrivingMode.StopForCarsIgnoreLights)
Car.SetLoadCollisionFlag(44@, True)
Char.SetCanBeShotInVehicle(66@, False)

:STEAL2_16801
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_16930
World.ClearArea(-2501.6, 562.7, 13.1, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
45@ = Car.Create(108@, -2501.6, 562.7, 13.1)
Car.SetHeading(45@, 271.8)
Car.LockDoors(45@, CarLock.Locked)
67@ = Char.CreateRandomAsDriver(45@)
Car.SetLoadCollisionFlag(45@, True)
Char.SetCanBeShotInVehicle(67@, False)

:STEAL2_16930
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_17066
World.ClearArea(-2390.9, 581.7, 23.9, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
46@ = Car.Create(108@, -2390.9, 581.7, 23.9)
Car.SetHeading(46@, 184.1)
Car.LockDoors(46@, CarLock.Locked)
68@ = Char.CreateRandomAsDriver(46@)
Car.SetDrivingStyle(46@, DrivingMode.StopForCarsIgnoreLights)
Car.SetLoadCollisionFlag(46@, True)
Char.SetCanBeShotInVehicle(68@, False)

:STEAL2_17066
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_17195
World.ClearArea(-2361.7, 510.9, 27.9, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
47@ = Car.Create(108@, -2361.7, 510.9, 27.9)
Car.SetHeading(47@, 100.0)
Car.LockDoors(47@, CarLock.Locked)
69@ = Char.CreateRandomAsDriver(47@)
Car.SetLoadCollisionFlag(47@, True)
Char.SetCanBeShotInVehicle(69@, False)

:STEAL2_17195
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_17324
World.ClearArea(-2281.3, 569.6, 33.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
48@ = Car.Create(108@, -2281.3, 569.6, 33.7)
Car.SetHeading(48@, 87.6)
Car.LockDoors(48@, CarLock.Locked)
70@ = Char.CreateRandomAsDriver(48@)
Car.SetLoadCollisionFlag(48@, True)
Char.SetCanBeShotInVehicle(70@, False)

:STEAL2_17324
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_17460
World.ClearArea(-2358.9, 569.9, 23.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
49@ = Car.Create(108@, -2358.9, 569.9, 23.7)
Car.SetHeading(49@, 90.7)
Car.LockDoors(49@, CarLock.Locked)
71@ = Char.CreateRandomAsDriver(49@)
Car.SetDrivingStyle(49@, DrivingMode.StopForCarsIgnoreLights)
Car.SetLoadCollisionFlag(49@, True)
Char.SetCanBeShotInVehicle(71@, False)

:STEAL2_17460
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_17596
World.ClearArea(-2373.1, 569.6, 23.4, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
50@ = Car.Create(108@, -2373.1, 569.6, 23.4)
Car.SetHeading(50@, 91.3)
Car.LockDoors(50@, CarLock.Locked)
72@ = Char.CreateRandomAsDriver(50@)
Car.SetDrivingStyle(50@, DrivingMode.StopForCarsIgnoreLights)
Car.SetLoadCollisionFlag(50@, True)
Char.SetCanBeShotInVehicle(72@, False)

:STEAL2_17596
100@ = 1

:STEAL2_17603
if 
  100@ == 1
goto_if_false @STEAL2_17866
if 
  Car.Locate2D(34@, -2610.7, 992.2, 3.0, 3.0, False)
goto_if_false @STEAL2_17866
if 
  not Car.IsDead(38@)
goto_if_false @STEAL2_17715
Car.SetForwardSpeed(38@, 15.0)
Car.SetCruiseSpeed(38@, 15.0)
Car.GotoCoordinates(38@, -2736.4, 1006.9, 53.0)

:STEAL2_17715
if 
  not Car.IsDead(41@)
goto_if_false @STEAL2_17787
Car.SetForwardSpeed(41@, 15.0)
Car.SetCruiseSpeed(41@, 40.0)
if 
  not Car.IsDead(34@)
goto_if_false @STEAL2_17787
Car.SetFollowCar(41@, 34@, 10.0)
Car.SwitchSiren(41@, True)

:STEAL2_17787
if 
  not Car.IsDead(42@)
goto_if_false @STEAL2_17859
Car.SetForwardSpeed(42@, 15.0)
Car.SetCruiseSpeed(42@, 40.0)
if 
  not Car.IsDead(34@)
goto_if_false @STEAL2_17859
Car.SetFollowCar(42@, 34@, 20.0)
Car.SwitchSiren(42@, True)

:STEAL2_17859
100@ = 2

:STEAL2_17866
if 
  100@ == 2
goto_if_false @STEAL2_18008
if 
  Car.Locate2D(34@, -2610.4, 922.8, 3.0, 3.0, False)
goto_if_false @STEAL2_18008
if 
  not Car.IsDead(39@)
goto_if_false @STEAL2_17945
Car.StartPlayback(39@, 93)

:STEAL2_17945
if 
  not Car.IsDead(40@)
goto_if_false @STEAL2_18001
Car.SetForwardSpeed(40@, 15.0)
Car.SetCruiseSpeed(40@, 15.0)
Car.GotoCoordinates(40@, -2604.0, 963.9, 76.7)

:STEAL2_18001
100@ = 3

:STEAL2_18008
if 
  100@ == 3
goto_if_false @STEAL2_18173
if 
  not Car.IsPlaybackGoingOn(34@)
goto_if_false @STEAL2_18173
Char.MarkAsNoLongerNeeded(58@)
Char.MarkAsNoLongerNeeded(59@)
Char.MarkAsNoLongerNeeded(60@)
Char.MarkAsNoLongerNeeded(61@)
Char.MarkAsNoLongerNeeded(62@)
Car.MarkAsNoLongerNeeded(36@)
Car.MarkAsNoLongerNeeded(37@)
Car.MarkAsNoLongerNeeded(38@)
Car.MarkAsNoLongerNeeded(39@)
Car.MarkAsNoLongerNeeded(40@)
if 
  not Car.IsDead(43@)
goto_if_false @STEAL2_18115
Car.StartPlayback(43@, 95)

:STEAL2_18115
if 
  not Car.IsDead(44@)
goto_if_false @STEAL2_18138
Car.StartPlayback(44@, 96)

:STEAL2_18138
Car.StartPlayback(34@, 94)
114@ = 0
103@ = 0
100@ = 0
99@ = 8

:STEAL2_18173
if 
  99@ == 8
goto_if_false @STEAL2_18866
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_18321
if 
  Car.Locate2D(34@, -2528.9, 737.7, 3.0, 3.0, False)
goto_if_false @STEAL2_18321
if 
  112@ == 0
goto_if_false @STEAL2_18321
112@ = 8
113@ = 9
159@ = 10
gosub @STEAL2_30237
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($cesar, True)
114@ = 1

:STEAL2_18321
if 
  114@ == 1
goto_if_false @STEAL2_18378
if 
  112@ == 0
goto_if_false @STEAL2_18378
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
114@ = 2

:STEAL2_18378
if 
  103@ == 0
goto_if_false @STEAL2_18396

:STEAL2_18396
if 
  100@ == 0
goto_if_false @STEAL2_18421
100@ = 1

:STEAL2_18421
if 
  100@ == 1
goto_if_false @STEAL2_18866
if 
  not Car.IsPlaybackGoingOn(34@)
goto_if_false @STEAL2_18866
Char.MarkAsNoLongerNeeded(63@)
Char.MarkAsNoLongerNeeded(64@)
Car.MarkAsNoLongerNeeded(41@)
Car.MarkAsNoLongerNeeded(42@)
Char.MarkAsNoLongerNeeded(65@)
Char.MarkAsNoLongerNeeded(66@)
Car.MarkAsNoLongerNeeded(43@)
Car.MarkAsNoLongerNeeded(44@)
if 
  not Car.IsDead(45@)
goto_if_false @STEAL2_18551
Car.SetForwardSpeed(45@, 15.0)
Car.SetCruiseSpeed(45@, 15.0)
Car.GotoCoordinates(45@, -2400.7, 562.2, 23.4)

:STEAL2_18551
if 
  not Car.IsDead(46@)
goto_if_false @STEAL2_18607
Car.SetForwardSpeed(46@, 15.0)
Car.SetCruiseSpeed(46@, 15.0)
Car.GotoCoordinates(46@, -2319.5, 424.7, 33.6)

:STEAL2_18607
if 
  not Car.IsDead(47@)
goto_if_false @STEAL2_18663
Car.SetForwardSpeed(47@, 15.0)
Car.SetCruiseSpeed(47@, 15.0)
Car.GotoCoordinates(47@, -2383.1, 551.4, 23.6)

:STEAL2_18663
if 
  not Car.IsDead(48@)
goto_if_false @STEAL2_18719
Car.SetForwardSpeed(48@, 15.0)
Car.SetCruiseSpeed(48@, 15.0)
Car.GotoCoordinates(48@, -2372.9, 569.6, 23.4)

:STEAL2_18719
if 
  not Car.IsDead(49@)
goto_if_false @STEAL2_18775
Car.SetForwardSpeed(49@, 15.0)
Car.SetCruiseSpeed(49@, 15.0)
Car.GotoCoordinates(49@, -2516.5, 569.9, 13.1)

:STEAL2_18775
if 
  not Car.IsDead(50@)
goto_if_false @STEAL2_18831
Car.SetForwardSpeed(50@, 15.0)
Car.SetCruiseSpeed(50@, 15.0)
Car.GotoCoordinates(50@, -2383.9, 655.8, 33.6)

:STEAL2_18831
Car.StartPlayback(34@, 97)
114@ = 0
103@ = 0
100@ = 0
99@ = 9

:STEAL2_18866
if 
  99@ == 9
goto_if_false @STEAL2_20783
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_18989
if 
  Car.Locate2D(34@, -2528.6, 656.4, 3.0, 3.0, False)
goto_if_false @STEAL2_18989
112@ = 10
113@ = 0
gosub @STEAL2_30237
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($cesar, True)
114@ = 1

:STEAL2_18989
if 
  114@ == 1
goto_if_false @STEAL2_19098
if 
  Car.Locate2D(34@, -2375.0, 566.2, 3.0, 3.0, False)
goto_if_false @STEAL2_19098
if 
  112@ == 0
goto_if_false @STEAL2_19098
112@ = 8
113@ = 10
159@ = 11
gosub @STEAL2_30237
114@ = 2

:STEAL2_19098
if 
  114@ == 2
goto_if_false @STEAL2_19146
if 
  112@ == 0
goto_if_false @STEAL2_19146
Player.ClearWantedLevel($player1)
114@ = 3

:STEAL2_19146
if 
  114@ == 3
goto_if_false @STEAL2_19203
if 
  112@ == 0
goto_if_false @STEAL2_19203
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
114@ = 4

:STEAL2_19203
if 
  103@ == 0
goto_if_false @STEAL2_19221

:STEAL2_19221
if 
  100@ == 0
goto_if_false @STEAL2_20329
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_19368
World.ClearArea(-2269.1, 5748.0, 33.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
36@ = Car.Create(108@, -2269.1, 5748.0, 33.7)
Car.SetHeading(36@, 182.3)
Car.LockDoors(36@, CarLock.Locked)
58@ = Char.CreateRandomAsDriver(36@)
Car.SetLoadCollisionFlag(36@, True)
Char.SetCanBeShotInVehicle(58@, False)

:STEAL2_19368
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_19497
World.ClearArea(-2251.1, 561.9, 33.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
37@ = Car.Create(108@, -2251.1, 561.9, 33.7)
Car.SetHeading(37@, 271.1)
Car.LockDoors(37@, CarLock.Locked)
59@ = Char.CreateRandomAsDriver(37@)
Car.SetLoadCollisionFlag(37@, True)
Char.SetCanBeShotInVehicle(59@, False)

:STEAL2_19497
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_19626
World.ClearArea(-2212.5, 569.9, 33.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
38@ = Car.Create(108@, -2212.5, 569.9, 33.7)
Car.SetHeading(38@, 91.3)
Car.LockDoors(38@, CarLock.Locked)
60@ = Char.CreateRandomAsDriver(38@)
Car.SetLoadCollisionFlag(38@, True)
Char.SetCanBeShotInVehicle(60@, False)

:STEAL2_19626
World.ClearArea(-2229.4, 532.7, 34.0, 5.0, True)
39@ = Car.Create(437, -2229.4, 532.7, 34.0)
Car.SetHeading(39@, 180.3)
61@ = Char.CreateRandomAsDriver(39@)
Car.SetLoadCollisionFlag(39@, True)
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_19827
World.ClearArea(-2342.8, 505.3, 28.3, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
41@ = Car.Create(108@, -2342.8, 505.3, 28.3)
Car.SetHeading(41@, 269.2)
Car.LockDoors(41@, CarLock.Locked)
63@ = Char.CreateRandomAsDriver(41@)
Car.SetLoadCollisionFlag(41@, True)
Char.SetCanBeShotInVehicle(63@, False)

:STEAL2_19827
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_19956
World.ClearArea(-2293.5, 505.4, 33.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
42@ = Car.Create(108@, -2293.5, 505.4, 33.7)
Car.SetHeading(42@, 270.0)
Car.LockDoors(42@, CarLock.Locked)
64@ = Char.CreateRandomAsDriver(42@)
Car.SetLoadCollisionFlag(42@, True)
Char.SetCanBeShotInVehicle(64@, False)

:STEAL2_19956
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_20085
World.ClearArea(-2238.9, 511.2, 34.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
43@ = Car.Create(108@, -2238.9, 511.2, 34.7)
Car.SetHeading(43@, 90.6)
Car.LockDoors(43@, CarLock.Locked)
65@ = Char.CreateRandomAsDriver(43@)
Car.SetLoadCollisionFlag(43@, True)
Char.SetCanBeShotInVehicle(65@, False)

:STEAL2_20085
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_20214
World.ClearArea(-2224.0, 496.6, 33.7, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
44@ = Car.Create(108@, -2224.0, 496.6, 33.7)
Car.SetHeading(44@, 0.0)
Car.LockDoors(44@, CarLock.Locked)
66@ = Char.CreateRandomAsDriver(44@)
Car.SetLoadCollisionFlag(44@, True)
Char.SetCanBeShotInVehicle(66@, False)

:STEAL2_20214
World.ClearArea(-2232.2, 529.5, 34.2, 5.0, True)
77@ = Char.CreateRandom(-2232.2, 529.5, 34.2)
Char.SetHeading(77@, 174.2)
World.ClearArea(-2232.5, 531.0, 34.2, 5.0, True)
78@ = Char.CreateRandom(-2232.5, 531.0, 34.2)
Char.SetHeading(78@, 174.2)
100@ = 1

:STEAL2_20329
if 
  100@ == 1
goto_if_false @STEAL2_20783
if 
  not Car.IsPlaybackGoingOn(34@)
goto_if_false @STEAL2_20783
Char.MarkAsNoLongerNeeded(67@)
Char.MarkAsNoLongerNeeded(68@)
Char.MarkAsNoLongerNeeded(69@)
Char.MarkAsNoLongerNeeded(70@)
Char.MarkAsNoLongerNeeded(71@)
Char.MarkAsNoLongerNeeded(72@)
Car.MarkAsNoLongerNeeded(45@)
Car.MarkAsNoLongerNeeded(46@)
Car.MarkAsNoLongerNeeded(47@)
Car.MarkAsNoLongerNeeded(48@)
Car.MarkAsNoLongerNeeded(49@)
Car.MarkAsNoLongerNeeded(50@)
if 
  not Car.IsDead(36@)
goto_if_false @STEAL2_20479
Car.SetForwardSpeed(36@, 15.0)
Car.SetCruiseSpeed(36@, 15.0)
Car.GotoCoordinates(36@, -2174.9, 561.8, 33.6)

:STEAL2_20479
if 
  not Car.IsDead(37@)
goto_if_false @STEAL2_20535
Car.SetForwardSpeed(37@, 15.0)
Car.SetCruiseSpeed(37@, 15.0)
Car.GotoCoordinates(37@, -2160.2, 561.9, 33.6)

:STEAL2_20535
if 
  not Car.IsDead(41@)
goto_if_false @STEAL2_20591
Car.SetForwardSpeed(41@, 15.0)
Car.SetCruiseSpeed(41@, 15.0)
Car.GotoCoordinates(41@, -2252.6, 505.7, 33.7)

:STEAL2_20591
if 
  not Car.IsDead(42@)
goto_if_false @STEAL2_20647
Car.SetForwardSpeed(42@, 15.0)
Car.SetCruiseSpeed(42@, 15.0)
Car.GotoCoordinates(42@, -2239.4, 505.7, 33.7)

:STEAL2_20647
if 
  not Car.IsDead(43@)
goto_if_false @STEAL2_20703
Car.SetForwardSpeed(43@, 15.0)
Car.SetCruiseSpeed(43@, 15.0)
Car.GotoCoordinates(43@, -2361.2, 511.5, 27.9)

:STEAL2_20703
Car.StartPlayback(34@, 98)
Streaming.MarkModelAsNoLongerNeeded(437)
Streaming.MarkModelAsNoLongerNeeded(449)
Streaming.RequestModel(#DYN_ROADBARRIER_3)
Streaming.RequestModel(#DYN_ROADBARRIER_4)
Streaming.RequestModel(#KMB_SKIP)
Streaming.RequestModel(#DYN_DUMPSTER)
Streaming.RequestModel(486)
Streaming.RequestModel(524)
Streaming.RequestModel(#DYN_RAMP)
114@ = 0
103@ = 0
100@ = 0
99@ = 10

:STEAL2_20783
if 
  99@ == 10
goto_if_false @STEAL2_21758
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_20931
if 
  Car.Locate2D(34@, -2264.5, 546.1, 3.0, 3.0, False)
goto_if_false @STEAL2_20931
if 
  112@ == 0
goto_if_false @STEAL2_20931
112@ = 8
113@ = 11
159@ = 12
gosub @STEAL2_30237
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($cesar, True)
114@ = 1

:STEAL2_20931
if 
  114@ == 1
goto_if_false @STEAL2_21010
if 
  Car.Locate2D(34@, -2224.1, 454.8, 3.0, 3.0, False)
goto_if_false @STEAL2_21010
Text.PrintNow('STE2_04', 4000, 1)
114@ = 2

:STEAL2_21010
if 
  114@ == 2
goto_if_false @STEAL2_21067
if 
  112@ == 0
goto_if_false @STEAL2_21067
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
114@ = 3

:STEAL2_21067
if 
  103@ == 0
goto_if_false @STEAL2_21085

:STEAL2_21085
if 
  100@ == 0
goto_if_false @STEAL2_21126
if 
  not Car.IsPlaybackGoingOn(34@)
goto_if_false @STEAL2_21126
100@ = 1

:STEAL2_21126
if 
  100@ == 1
goto_if_false @STEAL2_21758
if 
  Char.LocateInCar2D($scplayer, -2213.9, 453.0, 5.0, 5.0, False)
goto_if_false @STEAL2_21758
Char.MarkAsNoLongerNeeded(58@)
Char.MarkAsNoLongerNeeded(59@)
Char.MarkAsNoLongerNeeded(60@)
Char.MarkAsNoLongerNeeded(61@)
Char.MarkAsNoLongerNeeded(63@)
Char.MarkAsNoLongerNeeded(64@)
Char.MarkAsNoLongerNeeded(65@)
Char.MarkAsNoLongerNeeded(66@)
Char.MarkAsNoLongerNeeded(77@)
Char.MarkAsNoLongerNeeded(78@)
Car.MarkAsNoLongerNeeded(36@)
Car.MarkAsNoLongerNeeded(37@)
Car.MarkAsNoLongerNeeded(38@)
Car.MarkAsNoLongerNeeded(39@)
Car.MarkAsNoLongerNeeded(41@)
Car.MarkAsNoLongerNeeded(42@)
Car.MarkAsNoLongerNeeded(43@)
Car.MarkAsNoLongerNeeded(44@)
108@, 109@ = Streaming.GetRandomCarModelInMemory(True)
if 
  108@ >= 0
goto_if_false @STEAL2_21401
World.ClearArea(-2228.8, 521.1, 33.8, 5.0, True)
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
46@ = Car.Create(108@, -2228.8, 521.1, 33.8)
Car.SetHeading(46@, 179.4)
Car.LockDoors(46@, CarLock.Locked)
68@ = Char.CreateRandomAsDriver(46@)
Car.SetLoadCollisionFlag(46@, True)
Char.SetCanBeShotInVehicle(68@, False)

:STEAL2_21401
if 
  Streaming.HasModelLoaded(597)
goto_if_false @STEAL2_21515
World.ClearArea(-2149.4, 462.0, 33.8, 5.0, True)
47@ = Car.Create(597, -2149.4, 462.0, 33.8)
Car.SetHeading(47@, 174.8)
Car.LockDoors(47@, CarLock.Locked)
69@ = Char.CreateInsideCar(47@, PedType.Mission1, 281)
Car.SetDrivingStyle(47@, DrivingMode.AvoidCars)
Car.SetLoadCollisionFlag(47@, True)
Char.SetCanBeShotInVehicle(69@, False)

:STEAL2_21515
if 
  Streaming.HasModelLoaded(597)
goto_if_false @STEAL2_21629
World.ClearArea(-2148.8, 444.0, 33.8, 5.0, True)
48@ = Car.Create(597, -2148.8, 444.0, 33.8)
Car.SetHeading(48@, 360.0)
Car.LockDoors(48@, CarLock.Locked)
70@ = Char.CreateInsideCar(48@, PedType.Mission1, 281)
Car.SetDrivingStyle(48@, DrivingMode.AvoidCars)
Car.SetLoadCollisionFlag(48@, True)
Char.SetCanBeShotInVehicle(70@, False)

:STEAL2_21629
if 
  not Car.IsDead(34@)
goto_if_false @STEAL2_21652
Car.StartPlayback(34@, 65)

:STEAL2_21652
if 
  not Car.IsDead(47@)
goto_if_false @STEAL2_21682
Car.StartPlayback(47@, 66)
Car.SwitchSiren(47@, True)

:STEAL2_21682
if 
  not Car.IsDead(48@)
goto_if_false @STEAL2_21712
Car.StartPlayback(48@, 67)
Car.SwitchSiren(48@, True)

:STEAL2_21712
Text.ClearThisPrint('STE2_04')
TIMERB = 0
114@ = 0
103@ = 0
100@ = 0
99@ = 11

:STEAL2_21758
if 
  99@ == 11
goto_if_false @STEAL2_22885
if 
  114@ == 0
goto_if_false @STEAL2_21855
if 
  TIMERB > 1000
goto_if_false @STEAL2_21855
112@ = 11
113@ = 0
gosub @STEAL2_30237
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($cesar, True)
114@ = 1

:STEAL2_21855
if 
  114@ == 1
goto_if_false @STEAL2_21905
if 
  112@ == 0
goto_if_false @STEAL2_21905
Player.AlterWantedLevelNoDrop($player1, 2)
114@ = 2

:STEAL2_21905
if 
  114@ == 2
goto_if_false @STEAL2_21962
if 
  112@ == 0
goto_if_false @STEAL2_21962
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
114@ = 3

:STEAL2_21962
if 
  103@ == 0
goto_if_false @STEAL2_21980

:STEAL2_21980
if 
  100@ == 0
goto_if_false @STEAL2_22816
World.ClearArea(-2128.1, 496.6, 34.0, 100.0, True)
Char.MarkAsNoLongerNeeded(58@)
Char.MarkAsNoLongerNeeded(59@)
Char.MarkAsNoLongerNeeded(60@)
Char.MarkAsNoLongerNeeded(61@)
Char.MarkAsNoLongerNeeded(62@)
Char.MarkAsNoLongerNeeded(63@)
Char.MarkAsNoLongerNeeded(64@)
Char.MarkAsNoLongerNeeded(65@)
Char.MarkAsNoLongerNeeded(66@)
Char.MarkAsNoLongerNeeded(67@)
Char.MarkAsNoLongerNeeded(71@)
Char.MarkAsNoLongerNeeded(72@)
Char.MarkAsNoLongerNeeded(73@)
Char.MarkAsNoLongerNeeded(74@)
Char.MarkAsNoLongerNeeded(75@)
Char.MarkAsNoLongerNeeded(76@)
Char.MarkAsNoLongerNeeded(77@)
Char.MarkAsNoLongerNeeded(78@)
Char.MarkAsNoLongerNeeded(79@)
Car.MarkAsNoLongerNeeded(36@)
Car.MarkAsNoLongerNeeded(37@)
Car.MarkAsNoLongerNeeded(38@)
Car.MarkAsNoLongerNeeded(39@)
Car.MarkAsNoLongerNeeded(40@)
Car.MarkAsNoLongerNeeded(41@)
Car.MarkAsNoLongerNeeded(42@)
Car.MarkAsNoLongerNeeded(43@)
Car.MarkAsNoLongerNeeded(44@)
Car.MarkAsNoLongerNeeded(45@)
Car.MarkAsNoLongerNeeded(49@)
Car.MarkAsNoLongerNeeded(50@)
Car.MarkAsNoLongerNeeded(51@)
Car.MarkAsNoLongerNeeded(52@)
Car.MarkAsNoLongerNeeded(53@)
Car.MarkAsNoLongerNeeded(54@)
Car.MarkAsNoLongerNeeded(55@)
Car.MarkAsNoLongerNeeded(56@)
Car.MarkAsNoLongerNeeded(57@)
80@ = Object.Create(#DYN_ROADBARRIER_3, -2128.1, 496.6, 34.0)
Object.SetHeading(80@, 270.0)
81@ = Object.Create(#DYN_ROADBARRIER_4, -2128.1, 501.6, 34.0)
Object.SetHeading(81@, 270.0)
82@ = Object.Create(#DYN_ROADBARRIER_3, -2128.1, 503.6, 34.0)
Object.SetHeading(82@, 270.0)
83@ = Object.Create(#DYN_ROADBARRIER_4, -2128.1, 506.8, 34.0)
Object.SetHeading(83@, 270.0)
84@ = Object.Create(#DYN_ROADBARRIER_3, -2128.1, 511.6, 34.0)
Object.SetHeading(84@, 270.0)
85@ = Object.Create(#DYN_ROADBARRIER_3, -2016.1, 496.6, 34.0)
Object.SetHeading(85@, 90.0)
86@ = Object.Create(#DYN_ROADBARRIER_4, -2016.1, 501.6, 34.0)
Object.SetHeading(86@, 90.0)
87@ = Object.Create(#DYN_ROADBARRIER_3, -2016.1, 503.6, 34.0)
Object.SetHeading(87@, 90.0)
88@ = Object.Create(#DYN_ROADBARRIER_4, -2016.1, 506.8, 34.0)
Object.SetHeading(88@, 90.0)
89@ = Object.Create(#DYN_ROADBARRIER_3, -2016.1, 511.6, 34.0)
Object.SetHeading(89@, 90.0)
90@ = Object.Create(#KMB_SKIP, -2096.1, 501.8, 34.0)
Object.SetHeading(90@, 90.0)
91@ = Object.Create(#DYN_DUMPSTER, -2096.1, 504.8, 34.0)
Object.SetHeading(91@, 270.0)
92@ = Object.Create(#DYN_RAMP, -2056.9, 503.8, 34.0)
Object.SetHeading(92@, 270.0)
if 
  Streaming.HasModelLoaded(486)
goto_if_false @STEAL2_22697
36@ = Car.Create(486, -2084.6, 501.2, 34.4)
Car.SetHeading(36@, 269.7)
Car.SetLoadCollisionFlag(36@, True)

:STEAL2_22697
if 
  Streaming.HasModelLoaded(486)
goto_if_false @STEAL2_22753
37@ = Car.Create(486, -2045.1, 500.9, 34.3)
Car.SetHeading(37@, 156.1)
Car.SetLoadCollisionFlag(37@, True)

:STEAL2_22753
if 
  Streaming.HasModelLoaded(524)
goto_if_false @STEAL2_22809
38@ = Car.Create(524, -2048.3, 508.4, 35.0)
Car.SetHeading(38@, 88.4)
Car.SetLoadCollisionFlag(38@, True)

:STEAL2_22809
100@ = 1

:STEAL2_22816
if 
  100@ == 1
goto_if_false @STEAL2_22885
if 
  not Car.IsPlaybackGoingOn(34@)
goto_if_false @STEAL2_22885
Car.StartPlayback(34@, 99)
114@ = 0
103@ = 0
100@ = 0
99@ = 12

:STEAL2_22885
if 
  99@ == 12
goto_if_false @STEAL2_23173
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_22928

:STEAL2_22928
if 
  103@ == 0
goto_if_false @STEAL2_22946

:STEAL2_22946
if 
  100@ == 0
goto_if_false @STEAL2_22971
100@ = 1

:STEAL2_22971
if 
  100@ == 1
goto_if_false @STEAL2_23173
if 
  not Car.IsPlaybackGoingOn(34@)
goto_if_false @STEAL2_23173
World.SetCarDensityMultiplier(1.0)
171@ = Sequence.Open()
Task.CarDriveToCoord(-1, 34@, -2009.7, 192.2, 26.0, 45.0, DriveMode.Accurate, 1, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 34@, -2031.7, 180.1, 27.4, 10.0, DriveMode.Accurate, 1, DrivingMode.AvoidCars)
Sequence.Close(171@)
Char.PerformSequence($cesar, 171@)
Sequence.Clear(171@)
if 
  Char.IsInCar($scplayer, 35@)
goto_if_false @STEAL2_23145
Blip.Remove(98@)
98@ = Blip.AddForCoord(-2024.7, 179.4, 27.4)

:STEAL2_23145
114@ = 0
103@ = 0
100@ = 0
99@ = 13

:STEAL2_23173
if 
  99@ == 13
goto_if_false @STEAL2_23938
if 
  114@ == 0
goto_if_false @STEAL2_23368
if 
  112@ == 0
goto_if_false @STEAL2_23368
112@ = 12
113@ = 0
gosub @STEAL2_30237
if 
  not Car.IsDead(47@)
goto_if_false @STEAL2_23347
if 
  not Car.IsDead(48@)
goto_if_false @STEAL2_23347
if 
  not Char.LocateAnyMeansCar2D($scplayer, 47@, 30.0, 30.0, False)
goto_if_false @STEAL2_23347
if 
  not Char.LocateAnyMeansCar2D($scplayer, 48@, 30.0, 30.0, False)
goto_if_false @STEAL2_23347
Player.ClearWantedLevel($player1)

:STEAL2_23347
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($cesar, True)
114@ = 1

:STEAL2_23368
if 
  114@ == 1
goto_if_false @STEAL2_23427
if 
  112@ == 0
goto_if_false @STEAL2_23427
Text.Print('STE2_05', 4000, 1)
114@ = 2

:STEAL2_23427
if 
  114@ == 2
goto_if_false @STEAL2_23484
if 
  112@ == 0
goto_if_false @STEAL2_23484
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
114@ = 3

:STEAL2_23484
if 
  100@ == 0
goto_if_false @STEAL2_23845
$task_status = Char.GetScriptTaskStatus($cesar, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL2_23845
World.SetPedDensityMultiplier(1.0)
Char.MarkAsNoLongerNeeded(58@)
Char.MarkAsNoLongerNeeded(59@)
Char.MarkAsNoLongerNeeded(60@)
Char.MarkAsNoLongerNeeded(61@)
Char.MarkAsNoLongerNeeded(62@)
Char.MarkAsNoLongerNeeded(63@)
Char.MarkAsNoLongerNeeded(64@)
Char.MarkAsNoLongerNeeded(65@)
Char.MarkAsNoLongerNeeded(66@)
Char.MarkAsNoLongerNeeded(67@)
Char.MarkAsNoLongerNeeded(68@)
Char.MarkAsNoLongerNeeded(69@)
Char.MarkAsNoLongerNeeded(70@)
Char.MarkAsNoLongerNeeded(71@)
Char.MarkAsNoLongerNeeded(72@)
Char.MarkAsNoLongerNeeded(73@)
Char.MarkAsNoLongerNeeded(74@)
Char.MarkAsNoLongerNeeded(75@)
Char.MarkAsNoLongerNeeded(76@)
Char.MarkAsNoLongerNeeded(77@)
Char.MarkAsNoLongerNeeded(78@)
Char.MarkAsNoLongerNeeded(79@)
Car.MarkAsNoLongerNeeded(36@)
Car.MarkAsNoLongerNeeded(37@)
Car.MarkAsNoLongerNeeded(38@)
Car.MarkAsNoLongerNeeded(39@)
Car.MarkAsNoLongerNeeded(40@)
Car.MarkAsNoLongerNeeded(41@)
Car.MarkAsNoLongerNeeded(42@)
Car.MarkAsNoLongerNeeded(43@)
Car.MarkAsNoLongerNeeded(44@)
Car.MarkAsNoLongerNeeded(45@)
Car.MarkAsNoLongerNeeded(46@)
Car.MarkAsNoLongerNeeded(47@)
Car.MarkAsNoLongerNeeded(48@)
Car.MarkAsNoLongerNeeded(49@)
Car.MarkAsNoLongerNeeded(50@)
Car.MarkAsNoLongerNeeded(51@)
Car.MarkAsNoLongerNeeded(52@)
Car.MarkAsNoLongerNeeded(53@)
Car.MarkAsNoLongerNeeded(54@)
Car.MarkAsNoLongerNeeded(55@)
Car.MarkAsNoLongerNeeded(56@)
Car.MarkAsNoLongerNeeded(57@)
Car.MarkAsNoLongerNeeded(95@)
Object.MarkAsNoLongerNeeded(80@)
Object.MarkAsNoLongerNeeded(81@)
Object.MarkAsNoLongerNeeded(82@)
Object.MarkAsNoLongerNeeded(83@)
Object.MarkAsNoLongerNeeded(84@)
Object.MarkAsNoLongerNeeded(85@)
Object.MarkAsNoLongerNeeded(86@)
Object.MarkAsNoLongerNeeded(87@)
Object.MarkAsNoLongerNeeded(88@)
Object.MarkAsNoLongerNeeded(89@)
Object.MarkAsNoLongerNeeded(90@)
Object.MarkAsNoLongerNeeded(91@)
Object.MarkAsNoLongerNeeded(92@)
Object.MarkAsNoLongerNeeded(93@)
Object.MarkAsNoLongerNeeded(94@)
100@ = 1

:STEAL2_23845
if 
  Char.IsInCar($scplayer, 35@)
goto_if_false @STEAL2_23938
if 
  Char.LocateInCar3D($scplayer, -2024.7, 179.4, 27.4, 4.0, 4.0, 4.0, True)
goto_if_false @STEAL2_23938
Player.ClearWantedLevel($player1)
Player.SetControl($player1, False)
100@ = 0
99@ = 14

:STEAL2_23938
if 
  99@ == 14
goto_if_false @STEAL2_24933
if 
  100@ == 0
goto_if_false @STEAL2_24525
Camera.DoFade(500, Fade.Out)

:STEAL2_23981
if 
  Camera.GetFadingStatus
goto_if_false @STEAL2_24005
wait 0
goto @STEAL2_23981

:STEAL2_24005
Garage.Open('HBGDSFS')

:STEAL2_24016
if 
  not Garage.IsOpen('HBGDSFS')
goto_if_false @STEAL2_24049
wait 0
goto @STEAL2_24016

:STEAL2_24049
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_24081
goto @STEAL2_26013

:STEAL2_24081
Streaming.SetAreaVisible(1)
Game.ShutAllCharsUp(True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
112@ = 0
Streaming.RequestAnimation("PLAYIDLES")
Streaming.LoadAllModelsNow
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.SetAreaVisible($scplayer, 1)
World.ClearArea(-2043.7, 171.4, 27.6, 100.0, True)
Car.SetAreaVisible(34@, 1)
Car.SetCoordinates(34@, -2043.7, 171.4, 27.6)
Car.SetHeading(34@, 91.6)
Streaming.LoadSceneInDirection(-2045.4, 173.1, 27.8, 309.5)
Char.SetAreaVisible($cesar, 1)
Char.ClearTasksImmediately($cesar)
Char.SetCoordinates($cesar, -2045.4, 173.1, 27.8)
Char.SetHeading($cesar, 325.5)
Car.SetAreaVisible(35@, 1)
Car.SetCoordinates(35@, -2033.8, 178.6, 27.6)
Car.SetHeading(35@, 90.0)
if 
  not Char.IsInCar($scplayer, 35@)
goto_if_false @STEAL2_24337
Char.WarpIntoCar($scplayer, 35@)

:STEAL2_24337
171@ = Sequence.Open()
Task.CarDriveToCoord(-1, 35@, -2044.4, 177.6, 27.6, 5.0, DriveMode.Accurate, 1, DrivingMode.AvoidCars)
Task.LeaveAnyCar(-1)
Task.TurnCharToFaceChar(-1, $cesar)
Sequence.Close(171@)
Char.PerformSequence($scplayer, 171@)
Sequence.Clear(171@)
Camera.SetFixedPosition(-2049.3, 172.8, 28.78, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2034.7, 177.4, 29.8, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)

:STEAL2_24462
if 
  Camera.GetFadingStatus
goto_if_false @STEAL2_24486
wait 0
goto @STEAL2_24462

:STEAL2_24486
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_24518
goto @STEAL2_26013

:STEAL2_24518
100@ = 1

:STEAL2_24525
if 
  100@ == 1
goto_if_false @STEAL2_24628
if 
  Car.IsInArea2D(35@, -2039.3, 175.1, -2041.9, 181.6, False)
goto_if_false @STEAL2_24628
Task.PlayAnim($cesar, "STRETCH", "PLAYIDLES", 1000.0, False, False, False, False, -1)
100@ = 2

:STEAL2_24628
if 
  100@ == 2
goto_if_false @STEAL2_24933
$task_status = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL2_24933
Camera.DoFade(500, Fade.Out)

:STEAL2_24682
if 
  Camera.GetFadingStatus
goto_if_false @STEAL2_24706
wait 0
goto @STEAL2_24682

:STEAL2_24706
Garage.Close('HBGDSFS')

:STEAL2_24717
if 
  not Garage.IsClosed('HBGDSFS')
goto_if_false @STEAL2_24750
wait 0
goto @STEAL2_24717

:STEAL2_24750
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_24782
goto @STEAL2_26013

:STEAL2_24782
Game.ShutAllCharsUp(False)
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($scplayer, 0)
Streaming.LoadScene(-2045.4, 173.1, 27.8)
Streaming.LoadSceneInDirection(-2045.4, 173.1, 27.8, 309.5)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -2027.2, 179.5, 27.8)
Char.SetHeading($scplayer, 277.5)
Camera.DoFade(500, Fade.In)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Char.HideWeaponForScriptedCutscene($scplayer, False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:STEAL2_24902
if 
  Camera.GetFadingStatus
goto_if_false @STEAL2_24926
wait 0
goto @STEAL2_24902

:STEAL2_24926
goto @STEAL2_26031

:STEAL2_24933
if 
  99@ == 0
goto_if_false @STEAL2_25141
if 
  not Streaming.HasCarRecordingBeenLoaded(70)
goto_if_false @STEAL2_24970
Streaming.RequestCarRecording(70)

:STEAL2_24970
if 
  not Streaming.HasCarRecordingBeenLoaded(71)
goto_if_false @STEAL2_24989
Streaming.RequestCarRecording(71)

:STEAL2_24989
if 
  not Streaming.HasCarRecordingBeenLoaded(72)
goto_if_false @STEAL2_25008
Streaming.RequestCarRecording(72)

:STEAL2_25008
if 
  not Streaming.HasCarRecordingBeenLoaded(73)
goto_if_false @STEAL2_25027
Streaming.RequestCarRecording(73)

:STEAL2_25027
if 
  not Streaming.HasCarRecordingBeenLoaded(74)
goto_if_false @STEAL2_25046
Streaming.RequestCarRecording(74)

:STEAL2_25046
if 
  not Streaming.HasCarRecordingBeenLoaded(75)
goto_if_false @STEAL2_25065
Streaming.RequestCarRecording(75)

:STEAL2_25065
if 
  not Streaming.HasCarRecordingBeenLoaded(76)
goto_if_false @STEAL2_25084
Streaming.RequestCarRecording(76)

:STEAL2_25084
if 
  not Streaming.HasCarRecordingBeenLoaded(77)
goto_if_false @STEAL2_25103
Streaming.RequestCarRecording(77)

:STEAL2_25103
if 
  not Streaming.HasCarRecordingBeenLoaded(78)
goto_if_false @STEAL2_25122
Streaming.RequestCarRecording(78)

:STEAL2_25122
if 
  not Streaming.HasCarRecordingBeenLoaded(79)
goto_if_false @STEAL2_25141
Streaming.RequestCarRecording(79)

:STEAL2_25141
if 
  99@ == 2
goto_if_false @STEAL2_25254
if 
  not Streaming.HasCarRecordingBeenLoaded(80)
goto_if_false @STEAL2_25178
Streaming.RequestCarRecording(80)

:STEAL2_25178
if 
  not Streaming.HasCarRecordingBeenLoaded(81)
goto_if_false @STEAL2_25197
Streaming.RequestCarRecording(81)

:STEAL2_25197
if 
  not Streaming.HasCarRecordingBeenLoaded(83)
goto_if_false @STEAL2_25216
Streaming.RequestCarRecording(83)

:STEAL2_25216
if 
  not Streaming.HasCarRecordingBeenLoaded(84)
goto_if_false @STEAL2_25235
Streaming.RequestCarRecording(84)

:STEAL2_25235
if 
  not Streaming.HasCarRecordingBeenLoaded(85)
goto_if_false @STEAL2_25254
Streaming.RequestCarRecording(85)

:STEAL2_25254
if 
  99@ == 4
goto_if_false @STEAL2_25310
if 
  not Streaming.HasCarRecordingBeenLoaded(86)
goto_if_false @STEAL2_25291
Streaming.RequestCarRecording(86)

:STEAL2_25291
if 
  not Streaming.HasCarRecordingBeenLoaded(87)
goto_if_false @STEAL2_25310
Streaming.RequestCarRecording(87)

:STEAL2_25310
if 
  99@ == 5
goto_if_false @STEAL2_25404
if 
  not Streaming.HasCarRecordingBeenLoaded(88)
goto_if_false @STEAL2_25347
Streaming.RequestCarRecording(88)

:STEAL2_25347
if 
  not Streaming.HasCarRecordingBeenLoaded(89)
goto_if_false @STEAL2_25366
Streaming.RequestCarRecording(89)

:STEAL2_25366
if 
  not Streaming.HasCarRecordingBeenLoaded(90)
goto_if_false @STEAL2_25385
Streaming.RequestCarRecording(90)

:STEAL2_25385
if 
  not Streaming.HasCarRecordingBeenLoaded(91)
goto_if_false @STEAL2_25404
Streaming.RequestCarRecording(91)

:STEAL2_25404
if 
  99@ == 6
goto_if_false @STEAL2_25460
if 
  not Streaming.HasCarRecordingBeenLoaded(92)
goto_if_false @STEAL2_25441
Streaming.RequestCarRecording(92)

:STEAL2_25441
if 
  not Streaming.HasCarRecordingBeenLoaded(93)
goto_if_false @STEAL2_25460
Streaming.RequestCarRecording(93)

:STEAL2_25460
if 
  99@ == 7
goto_if_false @STEAL2_25554
if 
  not Streaming.HasCarRecordingBeenLoaded(94)
goto_if_false @STEAL2_25497
Streaming.RequestCarRecording(94)

:STEAL2_25497
if 
  not Streaming.HasCarRecordingBeenLoaded(95)
goto_if_false @STEAL2_25516
Streaming.RequestCarRecording(95)

:STEAL2_25516
if 
  not Streaming.HasCarRecordingBeenLoaded(96)
goto_if_false @STEAL2_25535
Streaming.RequestCarRecording(96)

:STEAL2_25535
if 
  not Streaming.HasCarRecordingBeenLoaded(97)
goto_if_false @STEAL2_25554
Streaming.RequestCarRecording(97)

:STEAL2_25554
if 
  99@ == 8
goto_if_false @STEAL2_25648
if 
  not Streaming.HasCarRecordingBeenLoaded(98)
goto_if_false @STEAL2_25591
Streaming.RequestCarRecording(98)

:STEAL2_25591
if 
  not Streaming.HasCarRecordingBeenLoaded(65)
goto_if_false @STEAL2_25610
Streaming.RequestCarRecording(65)

:STEAL2_25610
if 
  not Streaming.HasCarRecordingBeenLoaded(66)
goto_if_false @STEAL2_25629
Streaming.RequestCarRecording(66)

:STEAL2_25629
if 
  not Streaming.HasCarRecordingBeenLoaded(67)
goto_if_false @STEAL2_25648
Streaming.RequestCarRecording(67)

:STEAL2_25648
if 
  99@ == 11
goto_if_false @STEAL2_25685
if 
  not Streaming.HasCarRecordingBeenLoaded(99)
goto_if_false @STEAL2_25685
Streaming.RequestCarRecording(99)

:STEAL2_25685
if 
  99@ > 0
goto_if_false @STEAL2_25956
if 
  13 > 99@
goto_if_false @STEAL2_25956
if 
  not Char.LocateAnyMeansCar2D($scplayer, 34@, 150.0, 150.0, False)
goto_if_false @STEAL2_25793
if 
  not Car.IsOnScreen(34@)
goto_if_false @STEAL2_25793
Text.ClearPrints
Text.PrintNow('STE2_06', 4000, 1)
goto @STEAL2_26013

:STEAL2_25793
if 
  not Char.LocateAnyMeansCar2D($scplayer, 35@, 120.0, 120.0, False)
goto_if_false @STEAL2_25865
if 
  not Car.IsOnScreen(35@)
goto_if_false @STEAL2_25865
Text.ClearPrints
Text.PrintNow('STE2_09', 4000, 1)
goto @STEAL2_26013

:STEAL2_25865
if 
  not Char.IsInCar($scplayer, 35@)
goto_if_false @STEAL2_25956
if 
  not Char.LocateAnyMeansCar2D($scplayer, 35@, 160.0, 160.0, False)
goto_if_false @STEAL2_25956
if 
  not Car.IsOnScreen(35@)
goto_if_false @STEAL2_25956
Text.ClearPrints
Text.PrintNow('STE2_08', 4000, 1)
goto @STEAL2_26013

:STEAL2_25956
if 
  99@ > 0
goto_if_false @STEAL2_25999
if 
  14 > 99@
goto_if_false @STEAL2_25999
gosub @STEAL2_26597

:STEAL2_25999
gosub @STEAL2_28925
goto @STEAL2_988

:STEAL2_26013
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:STEAL2_26031
$flag_steal_mission_counter += 1
CarGenerator.Switch($steal_car_cargen1, 101)
CarGenerator.Switch($steal_car_cargen2, 101)
Text.PrintWithNumberBig('M_PASSS', 5000, 5000, TextStyle.Middle)
Player.AddScore($player1, 5000)
Stat.AwardPlayerMissionRespect(5)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Stat.RegisterMissionPassed('STEAL_2')
Stat.PlayerMadeProgress(1)
return 

:STEAL2_26109
if 
  is_var_text_label_empty s$shop_name
goto_if_false @STEAL2_26127
Camera.RestoreJumpcut

:STEAL2_26127
Char.RemoveElegantly($cesar)
if 
  not Char.IsDead($scplayer)
goto_if_false @STEAL2_26155
Char.ShutUpForScriptedSpeech($scplayer, False)

:STEAL2_26155
Game.ShutAllCharsUp(False)
Streaming.MarkModelAsNoLongerNeeded(560)
Streaming.MarkModelAsNoLongerNeeded(562)
Streaming.MarkModelAsNoLongerNeeded(147)
Streaming.MarkModelAsNoLongerNeeded(414)
Streaming.MarkModelAsNoLongerNeeded(#CARDBOARDBOX)
Streaming.MarkModelAsNoLongerNeeded(449)
Streaming.MarkModelAsNoLongerNeeded(597)
Streaming.MarkModelAsNoLongerNeeded(281)
Streaming.MarkModelAsNoLongerNeeded(437)
Streaming.MarkModelAsNoLongerNeeded(461)
Streaming.MarkVehicleModAsNoLongerNeeded(#NTO_B_S)
Streaming.MarkModelAsNoLongerNeeded(486)
Streaming.MarkModelAsNoLongerNeeded(524)
Streaming.MarkModelAsNoLongerNeeded(#DYN_ROADBARRIER_3)
Streaming.MarkModelAsNoLongerNeeded(#DYN_ROADBARRIER_4)
Streaming.MarkModelAsNoLongerNeeded(#KMB_SKIP)
Streaming.MarkModelAsNoLongerNeeded(#DYN_DUMPSTER)
Streaming.MarkModelAsNoLongerNeeded(#DYN_RAMP)
CarGenerator.DontSuppressAnyCarModels
Streaming.RemoveAnimation("PLAYIDLES")
Blip.Remove(98@)
Streaming.UnloadSpecialCharacter(1)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

:STEAL2_26289
if 
  Char.IsDead($cesar)
goto_if_false @STEAL2_26330
Text.ClearPrints
Text.PrintNow('STE2_07', 4000, 1)
102@ = 1

:STEAL2_26330
if 
  Car.IsDead(35@)
goto_if_false @STEAL2_26371
Text.ClearPrints
Text.PrintNow('STE2_08', 4000, 1)
102@ = 1

:STEAL2_26371
if 
  Car.IsDead(34@)
goto_if_false @STEAL2_26412
Text.ClearPrints
Text.PrintNow('STE2_08', 4000, 1)
102@ = 1

:STEAL2_26412
return 

:STEAL2_26414
if 
  104@ == 1
goto_if_false @STEAL2_26478
if 
  not Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @STEAL2_26478
Blip.Remove(98@)
98@ = Blip.AddForChar($cesar)
Blip.SetAsFriendly(98@, True)
104@ = 0

:STEAL2_26478
if 
  104@ == 0
goto_if_false @STEAL2_26595
if 
  Char.LocateAnyMeansChar3D($scplayer, $cesar, 8.0, 8.0, 8.0, False)
goto_if_false @STEAL2_26595
if 
  not Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @STEAL2_26563
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $cesar)

:STEAL2_26563
Blip.Remove(98@)
98@ = Blip.AddForCoord(-1632.9, 1207.4, 6.1)
104@ = 1

:STEAL2_26595
return 

:STEAL2_26597
if 
  105@ == 0
goto_if_false @STEAL2_26749
if 
  Char.IsInCar($scplayer, 35@)
goto_if_false @STEAL2_26749
Text.ClearThisPrint('IN_VEH')
Blip.Remove(98@)
if 
  99@ == 13
goto_if_false @STEAL2_26711
98@ = Blip.AddForCoord(-2024.7, 179.4, 27.4)
Text.Print('STE2_05', 4000, 1)
goto @STEAL2_26742

:STEAL2_26711
98@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(98@, True)
Text.Print('STE2_02', 7000, 1)

:STEAL2_26742
105@ = 1

:STEAL2_26749
if 
  105@ == 1
goto_if_false @STEAL2_26851
if 
  not Char.IsInCar($scplayer, 35@)
goto_if_false @STEAL2_26851
Text.ClearThisPrint('STE2_05')
Text.ClearThisPrint('STE2_02')
Text.Print('STE2_11', 7000, 1)
Blip.Remove(98@)
98@ = Blip.AddForCar(35@)
Blip.SetAsFriendly(98@, True)
105@ = 0

:STEAL2_26851
return 

:STEAL2_26853
162@, 163@, $z = Char.GetCoordinates($scplayer)
164@, 165@, $z = Car.GetCoordinates(34@)
166@ = Math.GetDistanceBetweenCoords2D(162@, 163@, 164@, 165@)
if 
  21.0 > 166@
goto_if_false @STEAL2_26962
166@ /= 20.0
set_lvar_float_to_lvar_float 167@ = 166@
166@ = 2.0
sub_float_lvar_from_float_lvar 166@ -= 167@
goto @STEAL2_27008

:STEAL2_26962
166@ -= 20.0
166@ /= 90.0
set_lvar_float_to_lvar_float 167@ = 166@
166@ = 1.0
sub_float_lvar_from_float_lvar 166@ -= 167@

:STEAL2_27008
166@ += 0.3
set_lvar_float_to_lvar_float 168@ = 166@
if 
  168@ > 2.0
goto_if_false @STEAL2_27057
168@ = 2.0

:STEAL2_27057
if 
  0.5 > 168@
goto_if_false @STEAL2_27088
168@ = 0.5

:STEAL2_27088
if 
  Car.IsPlaybackGoingOn(34@)
goto_if_false @STEAL2_27112
Car.SetPlaybackSpeed(34@, 168@)

:STEAL2_27112
if 
  not Car.IsDead(95@)
goto_if_false @STEAL2_27152
if 
  Car.IsPlaybackGoingOn(95@)
goto_if_false @STEAL2_27152
Car.SetPlaybackSpeed(95@, 168@)

:STEAL2_27152
if 
  99@ == 1
goto_if_false @STEAL2_27410
if 
  not Car.IsDead(38@)
goto_if_false @STEAL2_27210
if 
  Car.IsPlaybackGoingOn(38@)
goto_if_false @STEAL2_27210
Car.SetPlaybackSpeed(38@, 168@)

:STEAL2_27210
if 
  not Car.IsDead(39@)
goto_if_false @STEAL2_27250
if 
  Car.IsPlaybackGoingOn(39@)
goto_if_false @STEAL2_27250
Car.SetPlaybackSpeed(39@, 168@)

:STEAL2_27250
if 
  not Car.IsDead(40@)
goto_if_false @STEAL2_27290
if 
  Car.IsPlaybackGoingOn(40@)
goto_if_false @STEAL2_27290
Car.SetPlaybackSpeed(40@, 168@)

:STEAL2_27290
if 
  not Car.IsDead(41@)
goto_if_false @STEAL2_27330
if 
  Car.IsPlaybackGoingOn(41@)
goto_if_false @STEAL2_27330
Car.SetPlaybackSpeed(41@, 168@)

:STEAL2_27330
if 
  not Car.IsDead(42@)
goto_if_false @STEAL2_27370
if 
  Car.IsPlaybackGoingOn(42@)
goto_if_false @STEAL2_27370
Car.SetPlaybackSpeed(42@, 168@)

:STEAL2_27370
if 
  not Car.IsDead(43@)
goto_if_false @STEAL2_27410
if 
  Car.IsPlaybackGoingOn(43@)
goto_if_false @STEAL2_27410
Car.SetPlaybackSpeed(43@, 168@)

:STEAL2_27410
if 
  99@ == 4
goto_if_false @STEAL2_27452
if 
  not Car.IsDead(51@)
goto_if_false @STEAL2_27452
Car.SetPlaybackSpeed(51@, 168@)

:STEAL2_27452
if 
  99@ == 5
goto_if_false @STEAL2_27494
if 
  not Car.IsDead(38@)
goto_if_false @STEAL2_27494
Car.SetPlaybackSpeed(38@, 168@)

:STEAL2_27494
if 
  99@ == 6
goto_if_false @STEAL2_27584
if 
  not Car.IsDead(50@)
goto_if_false @STEAL2_27536
Car.SetPlaybackSpeed(50@, 168@)

:STEAL2_27536
if 
  not Car.IsDead(52@)
goto_if_false @STEAL2_27560
Car.SetPlaybackSpeed(52@, 168@)

:STEAL2_27560
if 
  not Car.IsDead(53@)
goto_if_false @STEAL2_27584
Car.SetPlaybackSpeed(53@, 168@)

:STEAL2_27584
if 
  99@ == 7
goto_if_false @STEAL2_27626
if 
  not Car.IsDead(39@)
goto_if_false @STEAL2_27626
Car.SetPlaybackSpeed(39@, 168@)

:STEAL2_27626
if 
  99@ == 8
goto_if_false @STEAL2_27692
if 
  not Car.IsDead(43@)
goto_if_false @STEAL2_27668
Car.SetPlaybackSpeed(43@, 168@)

:STEAL2_27668
if 
  not Car.IsDead(44@)
goto_if_false @STEAL2_27692
Car.SetPlaybackSpeed(44@, 168@)

:STEAL2_27692
return 

:STEAL2_27694
111@ = Math.RandomIntInRange(1, 37)
if 
  111@ == 1
goto_if_false @STEAL2_27736
Car.CustomPlateForNextCar(110@, "GOT_M00_")

:STEAL2_27736
if 
  111@ == 2
goto_if_false @STEAL2_27769
Car.CustomPlateForNextCar(110@, "M00TV_4U")

:STEAL2_27769
if 
  111@ == 3
goto_if_false @STEAL2_27802
Car.CustomPlateForNextCar(110@, "MATHEW_2")

:STEAL2_27802
if 
  111@ == 4
goto_if_false @STEAL2_27835
Car.CustomPlateForNextCar(110@, "D4_DEW0R")

:STEAL2_27835
if 
  111@ == 5
goto_if_false @STEAL2_27868
Car.CustomPlateForNextCar(110@, "D0DE_777")

:STEAL2_27868
if 
  111@ == 6
goto_if_false @STEAL2_27901
Car.CustomPlateForNextCar(110@, "DAM0_666")

:STEAL2_27901
if 
  111@ == 7
goto_if_false @STEAL2_27934
Car.CustomPlateForNextCar(110@, "C0NEY_88")

:STEAL2_27934
if 
  111@ == 8
goto_if_false @STEAL2_27967
Car.CustomPlateForNextCar(110@, "PRE4CHER")

:STEAL2_27967
if 
  111@ == 9
goto_if_false @STEAL2_28000
Car.CustomPlateForNextCar(110@, "DBP_4NDY")

:STEAL2_28000
if 
  111@ == 10
goto_if_false @STEAL2_28033
Car.CustomPlateForNextCar(110@, "EV1L_SLY")

:STEAL2_28033
if 
  111@ == 11
goto_if_false @STEAL2_28066
Car.CustomPlateForNextCar(110@, "N1_R4V3N")

:STEAL2_28066
if 
  111@ == 12
goto_if_false @STEAL2_28099
Car.CustomPlateForNextCar(110@, "D1VX_Z00")

:STEAL2_28099
if 
  111@ == 13
goto_if_false @STEAL2_28131
Car.CustomPlateForNextCar(110@, "MR_B3NN")

:STEAL2_28131
if 
  111@ == 14
goto_if_false @STEAL2_28164
Car.CustomPlateForNextCar(110@, "R3D_R4SP")

:STEAL2_28164
if 
  111@ == 15
goto_if_false @STEAL2_28197
Car.CustomPlateForNextCar(110@, "LA_B0MBA")

:STEAL2_28197
if 
  111@ == 16
goto_if_false @STEAL2_28230
Car.CustomPlateForNextCar(110@, "L3337_0G")

:STEAL2_28230
if 
  111@ == 17
goto_if_false @STEAL2_28263
Car.CustomPlateForNextCar(110@, "BUDD4H_X")

:STEAL2_28263
if 
  111@ == 18
goto_if_false @STEAL2_28296
Car.CustomPlateForNextCar(110@, "T3H_BUCK")

:STEAL2_28296
if 
  111@ == 19
goto_if_false @STEAL2_28329
Car.CustomPlateForNextCar(110@, "CHUNKY_1")

:STEAL2_28329
if 
  111@ == 20
goto_if_false @STEAL2_28362
Car.CustomPlateForNextCar(110@, "EV1L_BNZ")

:STEAL2_28362
if 
  111@ == 21
goto_if_false @STEAL2_28395
Car.CustomPlateForNextCar(110@, "S4ND_M4N")

:STEAL2_28395
if 
  111@ == 22
goto_if_false @STEAL2_28428
Car.CustomPlateForNextCar(110@, "RKK_DBP1")

:STEAL2_28428
if 
  111@ == 23
goto_if_false @STEAL2_28461
Car.CustomPlateForNextCar(110@, "RE1_K0KU")

:STEAL2_28461
if 
  111@ == 24
goto_if_false @STEAL2_28494
Car.CustomPlateForNextCar(110@, "S3XY_JUD")

:STEAL2_28494
if 
  111@ == 25
goto_if_false @STEAL2_28527
Car.CustomPlateForNextCar(110@, "SUNRA_93")

:STEAL2_28527
if 
  111@ == 26
goto_if_false @STEAL2_28560
Car.CustomPlateForNextCar(110@, "UG_FUX69")

:STEAL2_28560
if 
  111@ == 27
goto_if_false @STEAL2_28593
Car.CustomPlateForNextCar(110@, "LI0N_CUM")

:STEAL2_28593
if 
  111@ == 28
goto_if_false @STEAL2_28626
Car.CustomPlateForNextCar(110@, "RKK_PWND")

:STEAL2_28626
if 
  111@ == 29
goto_if_false @STEAL2_28659
Car.CustomPlateForNextCar(110@, "HAZE_B0B")

:STEAL2_28659
if 
  111@ == 30
goto_if_false @STEAL2_28692
Car.CustomPlateForNextCar(110@, "T3H_FLUF")

:STEAL2_28692
if 
  111@ == 31
goto_if_false @STEAL2_28725
Car.CustomPlateForNextCar(110@, "BM_4NDY_")

:STEAL2_28725
if 
  111@ == 32
goto_if_false @STEAL2_28758
Car.CustomPlateForNextCar(110@, "BM_D34N_")

:STEAL2_28758
if 
  111@ == 33
goto_if_false @STEAL2_28791
Car.CustomPlateForNextCar(110@, "BM_L4C3Y")

:STEAL2_28791
if 
  111@ == 34
goto_if_false @STEAL2_28824
Car.CustomPlateForNextCar(110@, "BM_D3V__")

:STEAL2_28824
if 
  111@ == 35
goto_if_false @STEAL2_28857
Car.CustomPlateForNextCar(110@, "NU_SK00L")

:STEAL2_28857
if 
  111@ == 36
goto_if_false @STEAL2_28890
Car.CustomPlateForNextCar(110@, "G4L_AVET")

:STEAL2_28890
if 
  111@ == 37
goto_if_false @STEAL2_28923
Car.CustomPlateForNextCar(110@, "M0J0_J0J")

:STEAL2_28923
return 

:STEAL2_28925
if 
  112@ == 1
goto_if_false @STEAL2_29051
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29044
gosub @STEAL2_32012
gosub @STEAL2_32119
if 
  not Char.IsDead($cesar)
goto_if_false @STEAL2_29006
gosub @STEAL2_32273
goto @STEAL2_29037

:STEAL2_29006
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(115@(113@,13s))
155@ = 0
156@ = 0

:STEAL2_29037
goto @STEAL2_29051

:STEAL2_29044
112@ = 0

:STEAL2_29051
if or
  112@ == 4
  112@ == 5
  112@ == 6
goto_if_false @STEAL2_29137
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29130
gosub @STEAL2_32012
gosub @STEAL2_32119
gosub @STEAL2_32273
goto @STEAL2_29137

:STEAL2_29130
112@ = 0

:STEAL2_29137
if or
  112@ == 7
  112@ == 8
  112@ == 9
  112@ == 10
  112@ == 11
  112@ == 12
goto_if_false @STEAL2_29298
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29291
gosub @STEAL2_32012
gosub @STEAL2_32119
if 
  not Char.IsDead($cesar)
goto_if_false @STEAL2_29253
gosub @STEAL2_32273
goto @STEAL2_29284

:STEAL2_29253
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(115@(113@,13s))
155@ = 0
156@ = 0

:STEAL2_29284
goto @STEAL2_29298

:STEAL2_29291
112@ = 0

:STEAL2_29298
if 
  99@ == 0
goto_if_false @STEAL2_30235
if 
  100@ == 0
goto_if_false @STEAL2_30235
if 
  Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @STEAL2_29704
if 
  Char.LocateAnyMeansChar3D($cesar, $scplayer, 10.0, 10.0, 8.0, False)
goto_if_false @STEAL2_29697
if and
  Char.IsOnFoot($scplayer)
  Char.IsOnFoot($cesar)
goto_if_false @STEAL2_29543
if or
  112@ == 2
  112@ == 3
goto_if_false @STEAL2_29543
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29536
gosub @STEAL2_32012
gosub @STEAL2_32119
if 
  not Char.IsDead($cesar)
goto_if_false @STEAL2_29498
gosub @STEAL2_32273
goto @STEAL2_29529

:STEAL2_29498
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(115@(113@,13s))
155@ = 0
156@ = 0

:STEAL2_29529
goto @STEAL2_29543

:STEAL2_29536
112@ = 0

:STEAL2_29543
if and
  Char.IsInAnyCar($scplayer)
  Char.IsInAnyCar($cesar)
goto_if_false @STEAL2_29697
if or
  112@ == 2
  112@ == 3
goto_if_false @STEAL2_29697
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29690
gosub @STEAL2_32012
gosub @STEAL2_32119
if 
  not Char.IsDead($cesar)
goto_if_false @STEAL2_29652
gosub @STEAL2_32273
goto @STEAL2_29683

:STEAL2_29652
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(115@(113@,13s))
155@ = 0
156@ = 0

:STEAL2_29683
goto @STEAL2_29697

:STEAL2_29690
112@ = 0

:STEAL2_29697
goto @STEAL2_29821

:STEAL2_29704
if 
  14 > 112@
goto_if_false @STEAL2_29821
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29748
113@ += 1

:STEAL2_29748
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(115@(113@,13s))
Text.ClearPrints
set_lvar_int_to_lvar_int 160@ = 112@
set_lvar_int_to_lvar_int 161@ = 113@
112@ = 14
113@ = Math.RandomIntInRange(0, 4)
set_lvar_int_to_lvar_int 159@ = 113@
159@ += 1
gosub @STEAL2_30237

:STEAL2_29821
if 
  112@ == 14
goto_if_false @STEAL2_30012
if 
  not Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @STEAL2_29989
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29959
gosub @STEAL2_32012
gosub @STEAL2_32119
if 
  not Char.IsDead($cesar)
goto_if_false @STEAL2_29921
gosub @STEAL2_32273
goto @STEAL2_29952

:STEAL2_29921
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(115@(113@,13s))
155@ = 0
156@ = 0

:STEAL2_29952
goto @STEAL2_29982

:STEAL2_29959
Text.Print('STE2_10', 7000, 1)
112@ = 15

:STEAL2_29982
goto @STEAL2_30012

:STEAL2_29989
Text.Print('STE2_10', 7000, 1)
112@ = 15

:STEAL2_30012
if 
  112@ == 15
goto_if_false @STEAL2_30065
if 
  Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @STEAL2_30065
112@ = 16
113@ = 0
Text.ClearPrints

:STEAL2_30065
if 
  112@ == 16
goto_if_false @STEAL2_30235
if 
  Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @STEAL2_30180
TIMERB = 0
set_lvar_int_to_lvar_int 112@ = 160@
set_lvar_int_to_lvar_int 113@ = 161@
gosub @STEAL2_30237
if 
  160@ == 0
goto_if_false @STEAL2_30173
Text.Print('STE2_01', 7000, 1)
TIMERB = 0

:STEAL2_30173
goto @STEAL2_30235

:STEAL2_30180
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(115@(113@,13s))
112@ = 14
113@ = Math.RandomIntInRange(0, 4)
set_lvar_int_to_lvar_int 159@ = 113@
159@ += 1
gosub @STEAL2_30237

:STEAL2_30235
return 

:STEAL2_30237
if 
  112@ == 1
goto_if_false @STEAL2_30284
set_lvar_text_label 115@s = 'STL2_AA'
set_lvar_int_to_constant 141@ = 5000
154@ = 1

:STEAL2_30284
if 
  112@ == 2
goto_if_false @STEAL2_30573
set_lvar_text_label 115@s = 'STL2_BA'
set_lvar_text_label 117@s = 'STL2_BB'
set_lvar_text_label 119@s = 'STL2_BC'
set_lvar_text_label 121@s = 'STL2_BD'
set_lvar_text_label 123@s = 'STL2_BE'
set_lvar_text_label 125@s = 'STL2_BF'
set_lvar_text_label 127@s = 'STL2_BG'
set_lvar_text_label 129@s = 'STL2_BH'
set_lvar_text_label 131@s = 'STL2_BJ'
set_lvar_text_label 133@s = 'STL2_BK'
set_lvar_text_label 135@s = 'STL2_BL'
set_lvar_text_label 137@s = 'STL2_BM'
set_lvar_int_to_constant 141@ = 5001
set_lvar_int_to_constant 142@ = 5039
set_lvar_int_to_constant 143@ = 5002
set_lvar_int_to_constant 144@ = 5003
set_lvar_int_to_constant 145@ = 5004
set_lvar_int_to_constant 146@ = 5040
set_lvar_int_to_constant 147@ = 5005
set_lvar_int_to_constant 148@ = 5038
set_lvar_int_to_constant 149@ = 5041
set_lvar_int_to_constant 150@ = 5042
set_lvar_int_to_constant 151@ = 5006
set_lvar_int_to_constant 152@ = 5043
154@ = 12

:STEAL2_30573
if 
  112@ == 3
goto_if_false @STEAL2_30752
set_lvar_text_label 115@s = 'STL2_CA'
set_lvar_text_label 117@s = 'STL2_CB'
set_lvar_text_label 119@s = 'STL2_CC'
set_lvar_text_label 121@s = 'STL2_CD'
set_lvar_text_label 123@s = 'STL2_CE'
set_lvar_text_label 125@s = 'STL2_CF'
set_lvar_text_label 127@s = 'STL2_CG'
set_lvar_int_to_constant 141@ = 5007
set_lvar_int_to_constant 142@ = 5044
set_lvar_int_to_constant 143@ = 5045
set_lvar_int_to_constant 144@ = 5046
set_lvar_int_to_constant 145@ = 5047
set_lvar_int_to_constant 146@ = 5008
set_lvar_int_to_constant 147@ = 5048
154@ = 7

:STEAL2_30752
if 
  112@ == 4
goto_if_false @STEAL2_30976
set_lvar_text_label 115@s = 'STL2_DA'
set_lvar_text_label 117@s = 'STL2_DB'
set_lvar_text_label 119@s = 'STL2_DC'
set_lvar_text_label 121@s = 'STL2_DD'
set_lvar_text_label 123@s = 'STL2_DE'
set_lvar_text_label 125@s = 'STL2_DF'
set_lvar_text_label 127@s = 'STL2_DH'
set_lvar_text_label 129@s = 'STL2_DJ'
set_lvar_text_label 131@s = 'STL2_DK'
set_lvar_int_to_constant 141@ = 5009
set_lvar_int_to_constant 142@ = 5010
set_lvar_int_to_constant 143@ = 5011
set_lvar_int_to_constant 144@ = 5012
set_lvar_int_to_constant 145@ = 5013
set_lvar_int_to_constant 146@ = 5014
set_lvar_int_to_constant 147@ = 5049
set_lvar_int_to_constant 148@ = 5050
set_lvar_int_to_constant 149@ = 5051
set_lvar_int_to_lvar_int 154@ = 159@

:STEAL2_30976
if 
  112@ == 5
goto_if_false @STEAL2_31111
set_lvar_text_label 115@s = 'STL2_EA'
set_lvar_text_label 117@s = 'STL2_EB'
set_lvar_text_label 119@s = 'STL2_EC'
set_lvar_text_label 121@s = 'STL2_ED'
set_lvar_text_label 123@s = 'STL2_EE'
set_lvar_int_to_constant 141@ = 5059
set_lvar_int_to_constant 142@ = 5052
set_lvar_int_to_constant 143@ = 5060
set_lvar_int_to_constant 144@ = 5015
set_lvar_int_to_constant 145@ = 5016
154@ = 5

:STEAL2_31111
if 
  112@ == 6
goto_if_false @STEAL2_31158
set_lvar_text_label 115@s = 'STL2_EF'
set_lvar_int_to_constant 141@ = 5053
154@ = 1

:STEAL2_31158
if 
  112@ == 7
goto_if_false @STEAL2_31249
set_lvar_text_label 115@s = 'STL2_FA'
set_lvar_text_label 117@s = 'STL2_FB'
set_lvar_text_label 119@s = 'STL2_FC'
set_lvar_int_to_constant 141@ = 5017
set_lvar_int_to_constant 142@ = 5054
set_lvar_int_to_constant 143@ = 5018
154@ = 3

:STEAL2_31249
if 
  112@ == 8
goto_if_false @STEAL2_31517
set_lvar_text_label 115@s = 'STL2_FD'
set_lvar_text_label 117@s = 'STL2_FE'
set_lvar_text_label 119@s = 'STL2_FF'
set_lvar_text_label 121@s = 'STL2_FG'
set_lvar_text_label 123@s = 'STL2_FH'
set_lvar_text_label 125@s = 'STL2_FJ'
set_lvar_text_label 129@s = 'STL2_FO'
set_lvar_text_label 131@s = 'STL2_FP'
set_lvar_text_label 133@s = 'STL2_FQ'
set_lvar_text_label 135@s = 'STL2_HB'
set_lvar_text_label 137@s = 'STL2_HC'
set_lvar_int_to_constant 141@ = 5019
set_lvar_int_to_constant 142@ = 5020
set_lvar_int_to_constant 143@ = 5021
set_lvar_int_to_constant 144@ = 5022
set_lvar_int_to_constant 145@ = 5023
set_lvar_int_to_constant 146@ = 5024
set_lvar_int_to_constant 148@ = 5027
set_lvar_int_to_constant 149@ = 5028
set_lvar_int_to_constant 150@ = 5029
set_lvar_int_to_constant 151@ = 5032
set_lvar_int_to_constant 152@ = 5033
set_lvar_int_to_lvar_int 154@ = 159@

:STEAL2_31517
if 
  112@ == 9
goto_if_false @STEAL2_31608
set_lvar_text_label 115@s = 'STL2_FL'
set_lvar_text_label 117@s = 'STL2_FM'
set_lvar_text_label 119@s = 'STL2_FN'
set_lvar_int_to_constant 141@ = 5055
set_lvar_int_to_constant 142@ = 5056
set_lvar_int_to_constant 143@ = 5026
154@ = 3

:STEAL2_31608
if 
  112@ == 10
goto_if_false @STEAL2_31721
set_lvar_text_label 115@s = 'STL2_FR'
set_lvar_text_label 117@s = 'STL2_GA'
set_lvar_text_label 119@s = 'STL2_GB'
set_lvar_text_label 121@s = 'STL2_HA'
set_lvar_int_to_constant 141@ = 5030
set_lvar_int_to_constant 142@ = 5057
set_lvar_int_to_constant 143@ = 5058
set_lvar_int_to_constant 144@ = 5031
154@ = 4

:STEAL2_31721
if 
  112@ == 11
goto_if_false @STEAL2_31790
set_lvar_text_label 115@s = 'STL2_HD'
set_lvar_text_label 117@s = 'STL2_HE'
set_lvar_int_to_constant 141@ = 5034
set_lvar_int_to_constant 142@ = 5035
154@ = 2

:STEAL2_31790
if 
  112@ == 12
goto_if_false @STEAL2_31859
set_lvar_text_label 115@s = 'STL2_HF'
set_lvar_text_label 117@s = 'STL2_HG'
set_lvar_int_to_constant 141@ = 5036
set_lvar_int_to_constant 142@ = 5037
154@ = 2

:STEAL2_31859
if 
  112@ == 14
goto_if_false @STEAL2_31981
set_lvar_text_label 115@s = 'CESX_BA'
set_lvar_text_label 117@s = 'CESX_BB'
set_lvar_text_label 119@s = 'CESX_BC'
set_lvar_text_label 121@s = 'CESX_BD'
set_lvar_int_to_constant 141@ = 42406
set_lvar_int_to_constant 142@ = 42407
set_lvar_int_to_constant 143@ = 42408
set_lvar_int_to_constant 144@ = 42409
set_lvar_int_to_lvar_int 154@ = 159@

:STEAL2_31981
set_lvar_int_to_lvar_int 157@ = 113@
155@ = 0
156@ = 0
158@ = 1
return 

:STEAL2_32012
if 
  is_int_lvar_greater_than_int_lvar 154@ > 157@
goto_if_false @STEAL2_32117
if 
  155@ == 0
goto_if_false @STEAL2_32074
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 141@(157@,13i))
157@ += 1
155@ = 1

:STEAL2_32074
if 
  156@ == 0
goto_if_false @STEAL2_32117
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 141@(157@,13i))
157@ += 1
156@ = 1

:STEAL2_32117
return 

:STEAL2_32119
if 
  158@ == 1
goto_if_false @STEAL2_32195
if 
  155@ == 1
goto_if_false @STEAL2_32195
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @STEAL2_32195
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(115@(113@,13s), 4500, 1)
155@ = 2

:STEAL2_32195
if 
  158@ == 2
goto_if_false @STEAL2_32271
if 
  156@ == 1
goto_if_false @STEAL2_32271
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @STEAL2_32271
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow(115@(113@,13s), 4500, 1)
156@ = 2

:STEAL2_32271
return 

:STEAL2_32273
if 
  155@ == 2
goto_if_false @STEAL2_32336
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @STEAL2_32336
Text.ClearThisPrint(115@(113@,13s))
113@ += 1
158@ = 2
155@ = 0

:STEAL2_32336
if 
  156@ == 2
goto_if_false @STEAL2_32399
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @STEAL2_32399
Text.ClearThisPrint(115@(113@,13s))
113@ += 1
158@ = 1
156@ = 0

:STEAL2_32399
return 

//-------------Mission 69---------------
// Originally: Customs Fast Track

:STEAL4
script_name 'STEAL4'
gosub @STEAL4_47
if 
  has_deatharrest_been_executed 
goto_if_false @STEAL4_38
gosub @STEAL4_29956

:STEAL4_38
gosub @STEAL4_30803
terminate_this_script 

:STEAL4_47
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0

:STEAL4_89
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @STEAL4_115
36@ = 1

:STEAL4_115
39@ += 1
if 
  39@ > 9
goto_if_false @STEAL4_147
39@ = 0

:STEAL4_147
40@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 60@ += 42@
add_int_lvar_to_int_lvar 61@ += 42@
add_int_lvar_to_int_lvar 62@ += 42@
add_int_lvar_to_int_lvar 63@ += 42@
add_int_lvar_to_int_lvar 64@ += 42@
gosub @STEAL4_699
if 
  67@ == 1
goto_if_false @STEAL4_248
goto @STEAL4_597

:STEAL4_248
if 
is_ps2_keyboard_key_just_pressed 89
goto_if_false @STEAL4_301
34@ = 10
35@ = 0
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @STEAL4_301
86@ = Char.StoreCarIsIn($scplayer)

:STEAL4_301
switch_start 34@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @STEAL4_583 {caseNum1} 0 {caseLabel1} @STEAL4_429 {caseNum2} 1 {caseLabel2} @STEAL4_443 {caseNum3} 2 {caseLabel3} @STEAL4_457 {caseNum4} 3 {caseLabel4} @STEAL4_471 {caseNum5} 4 {caseLabel5} @STEAL4_485 {caseNum6} 5 {caseLabel6} @STEAL4_499 {caseNum7} 6 {caseLabel7} @STEAL4_513
switch_continued 7 {caseLabel1} @STEAL4_527 {caseNum2} 8 {caseLabel2} @STEAL4_541 {caseNum3} 9 {caseLabel3} @STEAL4_555 {caseNum4} 10 {caseLabel4} @STEAL4_569 {caseNum5} -1 {caseLabel5} @STEAL4_583 {caseNum6} -1 {caseLabel6} @STEAL4_583 {caseNum7} -1 {caseLabel7} @STEAL4_583 {caseNum8} -1 {caseLabel8} @STEAL4_583 {caseNum9} -1 {caseLabel9} @STEAL4_583

:STEAL4_429
gosub @STEAL4_1357
goto @STEAL4_583

:STEAL4_443
gosub @STEAL4_2502
goto @STEAL4_583

:STEAL4_457
gosub @STEAL4_3835
goto @STEAL4_583

:STEAL4_471
gosub @STEAL4_5023
goto @STEAL4_583

:STEAL4_485
gosub @STEAL4_7744
goto @STEAL4_583

:STEAL4_499
gosub @STEAL4_10593
goto @STEAL4_583

:STEAL4_513
gosub @STEAL4_12654
goto @STEAL4_583

:STEAL4_527
gosub @STEAL4_14730
goto @STEAL4_583

:STEAL4_541
gosub @STEAL4_19611
goto @STEAL4_583

:STEAL4_555
gosub @STEAL4_19613
goto @STEAL4_583

:STEAL4_569
gosub @STEAL4_22071
goto @STEAL4_583

:STEAL4_583
gosub @STEAL4_31318
gosub @STEAL4_25732

:STEAL4_597
if 
  38@ == 0
goto_if_false @STEAL4_697
if 
  37@ == 0
goto_if_false @STEAL4_681
if 
  36@ == 0
goto_if_false @STEAL4_665
goto @STEAL4_89
goto @STEAL4_674

:STEAL4_665
gosub @STEAL4_30719
return 

:STEAL4_674
goto @STEAL4_690

:STEAL4_681
gosub @STEAL4_29956
return 

:STEAL4_690
goto @STEAL4_699

:STEAL4_697
return 

:STEAL4_699
if 
is_ps2_keyboard_key_just_pressed 27
goto_if_false @STEAL4_790
if 
  65@ == 0
goto_if_false @STEAL4_764
65@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @STEAL4_790

:STEAL4_764
65@ = 0
write_debug "LEVEL_DEBUG_OFF"

:STEAL4_790
if 
  65@ == 1
goto_if_false @STEAL4_1355
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @STEAL4_857
clear_all_view_variables 
66@ += 1
if 
  66@ > 2
goto_if_false @STEAL4_857
66@ = 0

:STEAL4_857
if 
  66@ == 1
goto_if_false @STEAL4_1109
set_var_int_to_lvar_int $st1_cruise_speed = 34@
set_var_int_to_lvar_int $STEAL4_view_debug = 35@
set_var_int_to_lvar_int $7407 = 124@
set_var_int_to_lvar_int $7408 = 155@
set_var_int_to_lvar_int $7409 = 153@
set_var_int_to_lvar_int $7410 = 154@
set_var_int_to_lvar_int $7411 = 132@
set_var_int_to_lvar_int $7412 = 61@
view_integer_variable $st1_cruise_speed {_p2} "M_STAGE"
view_integer_variable $STEAL4_view_debug {_p2} "M_GOALS"
view_integer_variable $7407 {_p2} "PLAYER_ON_FOOT"
view_integer_variable $7408 {_p2} "CONVERSATION_FLAG"
view_integer_variable $7409 {_p2} "ACTIVE_CONVERSATION"
view_integer_variable $7410 {_p2} "CONVERSATION_STATUS"
view_integer_variable $7411 {_p2} "CRANE_HELP_FLAG"
view_integer_variable $7412 {_p2} "CRANE_HELP_TIMER"

:STEAL4_1109
if 
  66@ == 2
goto_if_false @STEAL4_1252
view_float_variable $magno_arm_h {_p2} "MAGNO_ARM_ROTATE_Y"
view_float_variable $magno_base_z {_p2} "MAGNO_CABIN_H"
view_float_variable $magno_cabin_h {_p2} "MAGNO_ARM_H"
view_float_variable $magno_arm_LOD {_p2} "MAGNO_BASE_X"
view_float_variable $magno_base_x {_p2} "MAGNO_BASE_Y"
view_float_variable $car_model_carmod1 {_p2} "CRANE_ROPE_LENGTH"

:STEAL4_1252
if 
  67@ == 0
goto_if_false @STEAL4_1315
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @STEAL4_1308
write_debug "LEVEL_PAUSED"
67@ = 1

:STEAL4_1308
goto @STEAL4_1355

:STEAL4_1315
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @STEAL4_1355
write_debug "LEVEL_UNPAUSED"
67@ = 0

:STEAL4_1355
return 

:STEAL4_1357
if 
  35@ == -1
goto_if_false @STEAL4_1607
83@ = Car.Create(413, 0.0, 0.0, 0.0)
107@ = Blip.AddForCoord(0.0, 0.0, 0.0)
104@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
118@ = Blip.AddForCoord(0.0, 0.0, 0.0)
109@ = Blip.AddForCoord(0.0, 0.0, 0.0)
119@ = Blip.AddForCoord(0.0, 0.0, 0.0)
105@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
89@ = Car.Create(413, 0.0, 0.0, 0.0)
118@ = Blip.AddForCoord(0.0, 0.0, 0.0)
106@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
108@ = Blip.AddForCoord(0.0, 0.0, 0.0)

:STEAL4_1607
if 
  35@ == 0
goto_if_false @STEAL4_2438
$st4_mission_attempts = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
139@ = 0
140@ = 0
135@ = 0
136@ = 0
151@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)

:STEAL4_1786
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_1810
wait 0
goto @STEAL4_1786

:STEAL4_1810
Text.LoadMissionText('STEAL4')
Streaming.SetAreaVisible(1)
Char.SetAreaVisible($scplayer, 1)
Streaming.LoadScene(-2031.0, 149.0, 29.0)
Cutscene.Load('STEAL_4')

:STEAL4_1860
if 
  not Cutscene.HasLoaded
goto_if_false @STEAL4_1884
wait 0
goto @STEAL4_1860

:STEAL4_1884
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:STEAL4_1893
if 
  not Cutscene.HasFinished
goto_if_false @STEAL4_1917
wait 0
goto @STEAL4_1893

:STEAL4_1917
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:STEAL4_1932
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_1956
wait 0
goto @STEAL4_1932

:STEAL4_1956
Char.SetAreaVisible($scplayer, 0)
Streaming.SetAreaVisible(0)
World.ClearArea(-2036.17, 179.2839, 27.8359, 10.0, True)
Streaming.LoadSpecialCharacter(1, 'CESAR')
Streaming.RequestModel(567)

:STEAL4_2009
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(567)
goto_if_false @STEAL4_2040
wait 0
goto @STEAL4_2009

:STEAL4_2040
Car.CustomPlateForNextCar(567, "LVA4L")
82@ = Car.Create(567, -2034.706, 177.7413, 27.8359)
Car.ChangeColor(82@, 3, 3)
Car.SetHeading(82@, 244.5958)
Streaming.MarkModelAsNoLongerNeeded(567)
68@ = Char.CreateAsPassenger(82@, PedType.Mission2, 290, 0)
Char.SetNeverTargeted(68@, True)
Char.SetDrownsInWater(68@, False)
Char.SetHealth(68@, 400)
Char.SetMaxHealth(68@, 400)
Char.SetCantBeDraggedOut(68@, True)
Char.SetSuffersCriticalHits(68@, False)
Char.SetCoordinates($scplayer, -2035.53, 180.7482, 27.8359)
Char.SetHeading($scplayer, 209.6339)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Game.SwitchRandomTrains(False)
Player.SetGroupRecruitment($player1, False)
Game.SetScriptLimitToGangSize(0)
Player.SetGroupToFollowAlways($player1, True)
171@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
168@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
172@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @STEAL4_2272
$magno_arm_LOD, $magno_base_x, $magno_base_y = Object.GetCoordinates($sf_crane1_arm_LOD)

:STEAL4_2272
$magno_arm_h = 15.0
$magno_base_z = 207.615
$magno_cabin_h = 207.615
$magno_arm_LOD = -1586.7
$magno_base_x = 84.79579
$car_model_carmod1 = 0.639
gosub @STEAL4_28736
43@ = 0

:STEAL4_2346
if 
  10 > 43@
goto_if_false @STEAL4_2389
141@(43@,10i) = 0
43@ += 1
goto @STEAL4_2346

:STEAL4_2389
Hud.SwitchWidescreen(False)
Game.SetWantedMultiplier(0.001)
Camera.DoFade(1000, Fade.In)

:STEAL4_2407
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_2431
wait 0
goto @STEAL4_2407

:STEAL4_2431
35@ += 1

:STEAL4_2438
if 
  35@ == 1
goto_if_false @STEAL4_2500
Text.PrintNow('ST4_05', 5000, 1)
TIMERA = 0
34@ += 1
35@ = 0
56@ = 0

:STEAL4_2500
return 

:STEAL4_2502
if 
  35@ == 0
goto_if_false @STEAL4_2773
$disable_crane = 1
92@ = Object.CreateNoOffset(#KMB_CONTAINER_BLUE, -1570.986, 55.2009, 17.746)
Object.SetHeading(92@, 40.4082)
93@ = Object.CreateNoOffset(#KMB_CONTAINER_BLUE, -1564.401, 62.1434, 17.7537)
Object.SetHeading(93@, 235.0724)
94@ = Object.CreateNoOffset(#KMB_CONTAINER_BLUE, -1582.202, 54.1735, 17.7537)
Object.SetHeading(94@, 0.0)
96@ = Object.CreateNoOffset(#KMB_CONTAINER_RED, -1658.85, 44.8514, 4.06)
Object.SetHeading(96@, 315.2922)
95@ = Object.CreateNoOffset(#KMB_CONTAINER_YEL, -1649.476, 9.1182, 4.06)
Object.SetHeading(95@, 315.1249)
43@ = 0

:STEAL4_2699
if 
  4 > 43@
goto_if_false @STEAL4_2762
if 
  Object.DoesExist(92@(43@,9i))
goto_if_false @STEAL4_2748
Object.FreezePosition(92@(43@,9i), True)

:STEAL4_2748
43@ += 1
goto @STEAL4_2699

:STEAL4_2762
Audio.SetRadioChannel(RadioChannel.PlaybackFM)
35@ += 1

:STEAL4_2773
if 
  35@ == 1
goto_if_false @STEAL4_2922
if 
  56@ == 0
goto_if_false @STEAL4_2842
if 
  TIMERA > 6000
goto_if_false @STEAL4_2842
153@ = 1
56@ = 1

:STEAL4_2842
if 
  not Car.IsDead(82@)
goto_if_false @STEAL4_2922
if 
  Char.IsInCar($scplayer, 82@)
goto_if_false @STEAL4_2922
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_2915
Group.SetMember($Players_Group, 68@)
Char.SetDrownsInWater(68@, False)
126@ = 1

:STEAL4_2915
35@ += 1

:STEAL4_2922
if 
  35@ == 2
goto_if_false @STEAL4_3071
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_3071
if 
  not Car.IsDead(82@)
goto_if_false @STEAL4_3071
if 
  Char.IsInCar(68@, 82@)
goto_if_false @STEAL4_3071
if 
  153@ == 0
goto_if_false @STEAL4_3071
35@ += 1
Blip.Remove(108@)
108@ = Blip.AddForCoord(-1585.63, 90.3697, 2.7752)
Text.PrintNow('ST4_43', 7000, 1)
56@ = 0
TIMERA = 0

:STEAL4_3071
if 
  35@ > 2
goto_if_false @STEAL4_3140
if 
  56@ == 0
goto_if_false @STEAL4_3140
if 
  TIMERA > 8000
goto_if_false @STEAL4_3140
153@ = 2
56@ = 1

:STEAL4_3140
if 
  35@ == 3
goto_if_false @STEAL4_3497
if 
  not Car.IsDead(82@)
goto_if_false @STEAL4_3273
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_3273
if 
  Char.IsInCar(68@, 82@)
goto_if_false @STEAL4_3273
if 
  Char.IsInCar($scplayer, 82@)
goto_if_false @STEAL4_3273
if 
  Car.Locate2D(82@, -1585.63, 90.3697, 100.0, 100.0, False)
goto_if_false @STEAL4_3273
35@ = 99

:STEAL4_3273
if 
  65@ == 1
goto_if_false @STEAL4_3398
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @STEAL4_3398
if 
  not Car.IsDead(82@)
goto_if_false @STEAL4_3398
if 
  Char.IsInCar($scplayer, 82@)
goto_if_false @STEAL4_3398
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_3398
if 
  Char.IsInCar(68@, 82@)
goto_if_false @STEAL4_3398
Car.SetCoordinates(82@, -1585.63, 90.3, 5.0)

:STEAL4_3398
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_3497
if 
  Char.LocateOnFoot2D(68@, -1585.63, 90.3697, 70.0, 70.0, False)
goto_if_false @STEAL4_3497
if 
  Char.LocateOnFoot2D($scplayer, -1585.63, 90.3697, 70.0, 70.0, False)
goto_if_false @STEAL4_3497
35@ = 99

:STEAL4_3497
if 
  35@ == 99
goto_if_false @STEAL4_3529
35@ = 0
34@ += 1

:STEAL4_3529
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_3728
if 
  not Car.IsDead(82@)
goto_if_false @STEAL4_3728
if 
  Char.IsInCar(68@, 82@)
goto_if_false @STEAL4_3677
if 
  not Char.IsInCar($scplayer, 82@)
goto_if_false @STEAL4_3638
if 
  133@ <> 1
goto_if_false @STEAL4_3631
133@ = 1
gosub @STEAL4_29788

:STEAL4_3631
goto @STEAL4_3670

:STEAL4_3638
if 
  133@ <> 0
goto_if_false @STEAL4_3670
133@ = 0
gosub @STEAL4_29788

:STEAL4_3670
goto @STEAL4_3728

:STEAL4_3677
if 
  not Char.IsInCar($scplayer, 82@)
goto_if_false @STEAL4_3728
if 
  133@ <> 1
goto_if_false @STEAL4_3728
133@ = 1
gosub @STEAL4_29788

:STEAL4_3728
gosub @STEAL4_28034
if 
  126@ <> 1
goto_if_false @STEAL4_3781
if 
  Blip.DoesExist(108@)
goto_if_false @STEAL4_3774
Blip.Remove(108@)

:STEAL4_3774
goto @STEAL4_3833

:STEAL4_3781
if 
  not Blip.DoesExist(108@)
goto_if_false @STEAL4_3833
108@ = Blip.AddForCoord(-1585.63, 90.3697, 2.7752)
Text.PrintNow('ST4_43', 7000, 1)

:STEAL4_3833
return 

:STEAL4_3835
if 
  35@ == 0
goto_if_false @STEAL4_3899
Text.ClearPrints
Text.PrintNow('ST4_13', 5000, 1)
$disable_crane = 0
56@ = 0
TIMERA = 0
35@ += 1

:STEAL4_3899
if 
  35@ == 1
goto_if_false @STEAL4_4433
138@ = 0
if 
  56@ == 0
goto_if_false @STEAL4_3975
if 
  TIMERA > 5500
goto_if_false @STEAL4_3975
153@ = 3
56@ += 1

:STEAL4_3975
if 
  126@ <> 1
goto_if_false @STEAL4_4028
if 
  Blip.DoesExist(108@)
goto_if_false @STEAL4_4021
Blip.Remove(108@)
$disable_crane = 1

:STEAL4_4021
goto @STEAL4_4087

:STEAL4_4028
if 
  not Blip.DoesExist(108@)
goto_if_false @STEAL4_4087
108@ = Blip.AddForCoord(-1585.63, 90.3697, 2.7752)
Text.PrintNow('ST4_13', 7000, 1)
$disable_crane = 0

:STEAL4_4087
if 
  $player_is_in_crane == 2
goto_if_false @STEAL4_4426
$disable_crane_exit = 1
$disable_crane_slide = 1
Blip.Remove(108@)
60@ = 30000
61@ = 8000
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_4211
Char.RemoveFromGroup(68@)
Char.ClearTasksImmediately(68@)
Char.SetDecisionMaker(68@, 168@)
Char.SetCoordinates(68@, -1627.831, 63.8863, 2.9167)
Char.SetHeading(68@, 299.601)
Char.SetDrownsInWater(68@, False)

:STEAL4_4211
156@ = -1620.938
157@ = 75.4195
158@ = 4.1
159@ = 20.7795
160@ = -1632.786
161@ = 61.2888
162@ = 4.1
163@ = 6.6851
164@ = -1644.017
165@ = 50.9619
166@ = 4.1
167@ = 39.4583
Text.ClearHelp
Text.ClearPrints
43@ = 0

:STEAL4_4342
if 
  4 > 43@
goto_if_false @STEAL4_4405
if 
  Object.DoesExist(92@(43@,9i))
goto_if_false @STEAL4_4391
Object.FreezePosition(92@(43@,9i), False)

:STEAL4_4391
43@ += 1
goto @STEAL4_4342

:STEAL4_4405
gosub @STEAL4_28034
35@ += 1
goto @STEAL4_4433

:STEAL4_4426
gosub @STEAL4_28034

:STEAL4_4433
if 
  35@ == 2
goto_if_false @STEAL4_4551
gosub @STEAL4_35113
Crane.EnableControls(False, False, False)
$disable_crane = 1
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-1517.693, 60.1951, 57.7488, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1518.545, 60.208, 57.2246, SwitchType.JumpCut)
Text.ClearPrints
TIMERA = 0
56@ = 0
35@ += 1

:STEAL4_4551
if and
  35@ > 2
  6 > 35@
goto_if_false @STEAL4_4663
if 
  138@ == 0
goto_if_false @STEAL4_4639
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @STEAL4_4632
gosub @STEAL4_35113
35@ = 6
138@ = 1

:STEAL4_4632
goto @STEAL4_4663

:STEAL4_4639
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @STEAL4_4663
138@ = 0

:STEAL4_4663
if 
  35@ == 3
goto_if_false @STEAL4_4714
if 
  TIMERA > 1000
goto_if_false @STEAL4_4714
153@ = 4
35@ += 1

:STEAL4_4714
if 
  35@ == 4
goto_if_false @STEAL4_4758
if 
  TIMERA > 2500
goto_if_false @STEAL4_4758
35@ += 1

:STEAL4_4758
if 
  35@ == 5
goto_if_false @STEAL4_4848
Camera.SetFixedPosition(-1631.997, 64.4568, 3.1424, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1631.031, 64.5624, 3.3783, SwitchType.JumpCut)
56@ = 0
35@ += 1
TIMERA = 0

:STEAL4_4848
if 
  35@ == 6
goto_if_false @STEAL4_4891
if 
  153@ == 0
goto_if_false @STEAL4_4891
35@ += 1

:STEAL4_4891
if 
  35@ == 7
goto_if_false @STEAL4_4957
$magno_camera_type = 1
$reset_crane_camera = 1
Hud.Display(False)
Hud.DisplayRadar(False)
Hud.SwitchWidescreen(False)
$disable_crane = 0
Crane.EnableControls(True, True, True)
35@ = 99

:STEAL4_4957
if 
  35@ == 99
goto_if_false @STEAL4_5021
Streaming.RequestModel(589)

:STEAL4_4980
if 
  not Streaming.HasModelLoaded(589)
goto_if_false @STEAL4_5007
wait 0
goto @STEAL4_4980

:STEAL4_5007
35@ = 0
34@ += 1

:STEAL4_5021
return 

:STEAL4_5023
if and
  35@ > 0
  3 > 35@
goto_if_false @STEAL4_5142
if 
  138@ == 0
goto_if_false @STEAL4_5118
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @STEAL4_5111
$magno_camera_type = 1
$reset_crane_camera = 1
138@ = 1
35@ = 3

:STEAL4_5111
goto @STEAL4_5142

:STEAL4_5118
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @STEAL4_5142
138@ = 0

:STEAL4_5142
switch_start 35@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @STEAL4_7587 {caseNum1} 0 {caseLabel1} @STEAL4_5270 {caseNum2} 1 {caseLabel2} @STEAL4_5527 {caseNum3} 2 {caseLabel3} @STEAL4_5581 {caseNum4} 3 {caseLabel4} @STEAL4_5637 {caseNum5} 4 {caseLabel5} @STEAL4_5780 {caseNum6} 5 {caseLabel6} @STEAL4_6010 {caseNum7} 6 {caseLabel7} @STEAL4_6461
switch_continued 7 {caseLabel1} @STEAL4_7308 {caseNum2} 99 {caseLabel2} @STEAL4_7566 {caseNum3} -1 {caseLabel3} @STEAL4_7587 {caseNum4} -1 {caseLabel4} @STEAL4_7587 {caseNum5} -1 {caseLabel5} @STEAL4_7587 {caseNum6} -1 {caseLabel6} @STEAL4_7587 {caseNum7} -1 {caseLabel7} @STEAL4_7587 {caseNum8} -1 {caseLabel8} @STEAL4_7587 {caseNum9} -1 {caseLabel9} @STEAL4_7587

:STEAL4_5270
if 
  138@ == 0
goto_if_false @STEAL4_5427
if 
  133@ <> 3
goto_if_false @STEAL4_5320
133@ = 3
gosub @STEAL4_29788

:STEAL4_5320
$disable_crane = 1
$magno_camera_type = 0
$reset_crane_camera = 1
TIMERA = 0
Text.PrintHelpForever('ST4_H08')
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_5413
Char.SetDecisionMaker(68@, 172@)
Char.SetCoordinates(68@, -1626.981, 65.4201, 2.5495)
Char.SetHeading(68@, 306.9205)

:STEAL4_5413
35@ += 1
goto @STEAL4_5520

:STEAL4_5427
if 
  133@ <> 3
goto_if_false @STEAL4_5459
133@ = 3
gosub @STEAL4_29788

:STEAL4_5459
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_5513
Char.SetDecisionMaker(68@, 172@)
Char.SetCoordinates(68@, -1626.981, 65.4201, 2.5495)
Char.SetHeading(68@, 306.9205)

:STEAL4_5513
35@ = 3

:STEAL4_5520
goto @STEAL4_7587

:STEAL4_5527
if 
  TIMERA > 3000
goto_if_false @STEAL4_5574
$magno_camera_type = 1
$reset_crane_camera = 1
TIMERA = 0
35@ += 1

:STEAL4_5574
goto @STEAL4_7587

:STEAL4_5581
if 
  TIMERA > 3000
goto_if_false @STEAL4_5630
Text.ClearHelp
$magno_camera_type = 1
$reset_crane_camera = 1
TIMERA = 0
35@ += 1

:STEAL4_5630
goto @STEAL4_7587

:STEAL4_5637
Hud.Display(True)
Hud.DisplayRadar(True)
Text.ClearHelp
Crane.EnableControls(True, True, True)
$magno_camera_type = 1
$reset_crane_camera = 1
$disable_crane = 0
$disable_crane_rotate = 0
$disable_manual_control = 0
$disable_crane_slide = 0
128@ = 0
Text.PrintNow('ST4_T01', 5000, 1)
109@ = Blip.AddForObject(92@)
110@ = Blip.AddForObject(93@)
111@ = Blip.AddForObject(94@)
61@ = 10000
132@ = 0
TIMERA = 0
35@ += 1
goto @STEAL4_7587

:STEAL4_5780
83@, 69@, 91@ = Object.GrabEntityOnRope($magno_cabin)
if or
  is_int_lvar_equal_to_int_lvar 91@ == 92@
  is_int_lvar_equal_to_int_lvar 91@ == 93@
  is_int_lvar_equal_to_int_lvar 91@ == 94@
goto_if_false @STEAL4_6003
set_lvar_int_to_lvar_int 106@ = 91@
Crane.EnableControls(True, True, False)
128@ = 1
if 
  Blip.DoesExist(109@)
goto_if_false @STEAL4_5873
Blip.Remove(109@)

:STEAL4_5873
if 
  Blip.DoesExist(110@)
goto_if_false @STEAL4_5894
Blip.Remove(110@)

:STEAL4_5894
if 
  Blip.DoesExist(111@)
goto_if_false @STEAL4_5915
Blip.Remove(111@)

:STEAL4_5915
Blip.Remove(108@)
108@ = Blip.AddForCoord(156@, 157@, 158@)
$disable_crane_rotate = 0
$disable_manual_control = 0
Text.ClearHelp
Text.PrintNow('ST4_T02', 5000, 1)
132@ = 0
61@ = 500
TIMERA = 20000
TIMERB = 0
35@ += 1

:STEAL4_6003
goto @STEAL4_7587

:STEAL4_6010
if 
  Object.DoesExist(106@)
goto_if_false @STEAL4_6278
  Object.Locate3D(106@, 156@, 157@, 158@, 5.0, 5.0, 3.0, True)
if 
  Object.Locate2D(106@, 156@, 157@, 6.0, 6.0, False)
goto_if_false @STEAL4_6131
if 
  128@ <> 0
goto_if_false @STEAL4_6124
Crane.EnableControls(True, True, True)
128@ = 0

:STEAL4_6124
goto @STEAL4_6164

:STEAL4_6131
if 
  128@ <> 1
goto_if_false @STEAL4_6164
Crane.EnableControls(True, True, False)
128@ = 1

:STEAL4_6164
if 
  Object.Locate3D(106@, 156@, 157@, 158@, 6.0, 6.0, 6.0, False)
goto_if_false @STEAL4_6251
if 
  132@ <> 4
goto_if_false @STEAL4_6244
Text.ClearHelp
Text.PrintHelpForever('ST4_H03')
132@ = 4

:STEAL4_6244
goto @STEAL4_6278

:STEAL4_6251
if 
  132@ == 4
goto_if_false @STEAL4_6278
Text.ClearHelp
132@ = 0

:STEAL4_6278
if 
  Object.DoesExist(106@)
goto_if_false @STEAL4_6454
83@, 69@, 91@ = Object.GrabEntityOnRope($magno_cabin)
if 
  not is_int_lvar_equal_to_int_lvar 91@ == 106@
goto_if_false @STEAL4_6454
TIMERA = 0
set_lvar_int_to_lvar_int 104@ = 106@
Text.ClearPrints
Text.ClearHelp
if 
  Blip.DoesExist(109@)
goto_if_false @STEAL4_6367
Blip.Remove(109@)

:STEAL4_6367
if 
  Blip.DoesExist(110@)
goto_if_false @STEAL4_6388
Blip.Remove(110@)

:STEAL4_6388
if 
  Blip.DoesExist(111@)
goto_if_false @STEAL4_6409
Blip.Remove(111@)

:STEAL4_6409
if 
  Blip.DoesExist(108@)
goto_if_false @STEAL4_6430
Blip.Remove(108@)

:STEAL4_6430
35@ += 1
139@ = 0
173@ = 0.0

:STEAL4_6454
goto @STEAL4_7587

:STEAL4_6461
if 
  139@ == 1
goto_if_false @STEAL4_6680
if 
  Object.HasCollidedWithAnything(106@)
goto_if_false @STEAL4_6680
if 
  173@ > 14.0
goto_if_false @STEAL4_6673
$x, $y, $z = Object.GetCoordinates(106@)
Car.CustomPlateForNextCar(589, "N13_LLF")
84@ = Car.Create(589, $x, $y, $z)
Car.ChangeColor(84@, 11, 0)
Car.AttachToObject(84@, 106@, 0.0, 0.0, -0.8, 0.0, 0.0, 180.0)
Object.SortOutCollisionWithCar(106@, 84@)
Object.Break(106@, 1)
if 
  not Car.IsDead(84@)
goto_if_false @STEAL4_6666
Car.Detach(84@, 0.0, 0.0, 0.0, False)
Car.Explode(84@)

:STEAL4_6666
140@ = 1

:STEAL4_6673
139@ = 2

:STEAL4_6680
if 
  Object.DoesExist(106@)
goto_if_false @STEAL4_6757
173@ = Object.GetSpeed(106@)
if 
  173@ > 5.0
goto_if_false @STEAL4_6757
if 
  139@ == 0
goto_if_false @STEAL4_6757
Object.SetRecordsCollisions(106@, True)
139@ = 1

:STEAL4_6757
if 
  TIMERA > 1000
goto_if_false @STEAL4_7301
if 
  140@ <> 1
goto_if_false @STEAL4_7289
if 
  Object.DoesExist(106@)
goto_if_false @STEAL4_7282
if or
  Object.IsStatic(106@)
  TIMERA > 2000
goto_if_false @STEAL4_7282
Text.ClearHelp
$disable_crane = 1
Camera.DoFade(150, Fade.Out)

:STEAL4_6850
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_6874
wait 0
goto @STEAL4_6850

:STEAL4_6874
if 
  Object.DoesExist($magno_cabin)
goto_if_false @STEAL4_6900
Object.SetRopeHeight($magno_cabin, 0.5)

:STEAL4_6900
Object.ReleaseEntityFromRope($magno_cabin)
Object.Delete(104@)
101@ = Object.CreateNoOffset(#KMB_CONTAINER_OPEN, 156@, 157@, 158@)
Object.SetHeading(101@, 159@)
Car.CustomPlateForNextCar(589, "N13_LLF")
84@ = Car.Create(589, 0.0, 0.0, 0.0)
Car.ChangeColor(84@, 11, 0)
Streaming.MarkModelAsNoLongerNeeded(589)
Car.AttachToObject(84@, 101@, 0.0, 0.0, -0.8, 0.0, 0.0, 180.0)
Object.SortOutCollisionWithCar(101@, 84@)
135@ = 1
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_7085
Char.SetCoordinates(68@, -1619.436, 68.7884, 2.5495)
Char.SetHeading(68@, 0.0)

:STEAL4_7085
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-1618.103, 66.5178, 4.5138, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1618.392, 67.4668, 4.3861, SwitchType.JumpCut)
Crane.EnableControls(False, False, False)
Streaming.LoadScene(156@, 157@, 158@)
Camera.DoFade(150, Fade.In)

:STEAL4_7166
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_7190
wait 0
goto @STEAL4_7166

:STEAL4_7190
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_7211
Task.ScratchHead(68@)

:STEAL4_7211
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 5207)

:STEAL4_7222
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_7248
wait 0
goto @STEAL4_7222

:STEAL4_7248
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('STL4_FA', 5000, 1)
TIMERA = 0
35@ += 1

:STEAL4_7282
goto @STEAL4_7301

:STEAL4_7289
wait 2000
37@ = 1

:STEAL4_7301
goto @STEAL4_7587

:STEAL4_7308
if or
  TIMERA > 5000
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @STEAL4_7559
$reset_crane_camera = 1
$disable_crane = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Camera.DoFade(0, Fade.In)
Hud.SwitchWidescreen(False)
Crane.EnableControls(True, True, True)
if 
  Object.DoesExist(92@)
goto_if_false @STEAL4_7393
109@ = Blip.AddForObject(92@)

:STEAL4_7393
if 
  Object.DoesExist(93@)
goto_if_false @STEAL4_7417
110@ = Blip.AddForObject(93@)

:STEAL4_7417
if 
  Object.DoesExist(94@)
goto_if_false @STEAL4_7441
111@ = Blip.AddForObject(94@)

:STEAL4_7441
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_7513
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1642.827, 54.0446, 2.5495, MoveState.Run, 10000)
Task.AchieveHeading(-1, 306.0)
Sequence.Close(49@)
Char.PerformSequence(68@, 49@)
Sequence.Clear(49@)

:STEAL4_7513
Text.ClearPrints
Text.Print('ST4_T04', 7000, 1)
TIMERA = 0
TIMERB = 0
132@ = 0
35@ = 99

:STEAL4_7559
goto @STEAL4_7587

:STEAL4_7566
34@ += 1
35@ = 0
goto @STEAL4_7587

:STEAL4_7587
if 
  35@ > 0
goto_if_false @STEAL4_7742
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @STEAL4_7742
if 
  141@ == 0
goto_if_false @STEAL4_7663
Text.PrintHelp('ST4_H10')
141@ = 1
goto @STEAL4_7742

:STEAL4_7663
if 
  142@ == 0
goto_if_false @STEAL4_7706
Text.PrintHelp('ST4_H05')
142@ = 1
goto @STEAL4_7742

:STEAL4_7706
if 
  143@ == 0
goto_if_false @STEAL4_7742
Text.PrintHelp('ST4_H07')
143@ = 1

:STEAL4_7742
return 

:STEAL4_7744
if 
  35@ == 0
goto_if_false @STEAL4_7900
TIMERA = 0
TIMERB = 0
132@ = 0
if 
  Object.DoesExist(92@)
goto_if_false @STEAL4_7806
Object.FreezePosition(92@, True)

:STEAL4_7806
if 
  Object.DoesExist(93@)
goto_if_false @STEAL4_7829
Object.FreezePosition(93@, True)

:STEAL4_7829
if 
  Object.DoesExist(94@)
goto_if_false @STEAL4_7852
Object.FreezePosition(94@, True)

:STEAL4_7852
if 
  $7413 == 0
goto_if_false @STEAL4_7884
151@ = 0
goto @STEAL4_7893

:STEAL4_7884
151@ = Math.RandomIntInRange(0, 2)

:STEAL4_7893
35@ += 1

:STEAL4_7900
if 
  35@ == 1
goto_if_false @STEAL4_8142
83@, 69@, 91@ = Object.GrabEntityOnRope($magno_cabin)
if or
  is_int_lvar_equal_to_int_lvar 91@ == 92@
  is_int_lvar_equal_to_int_lvar 91@ == 93@
  is_int_lvar_equal_to_int_lvar 91@ == 94@
goto_if_false @STEAL4_8142
Object.FreezePosition(91@, False)
set_lvar_int_to_lvar_int 106@ = 91@
Crane.EnableControls(True, True, False)
$disable_crane_rotate = 0
$disable_manual_control = 0
128@ = 1
Text.ClearPrints
Text.PrintNow('ST4_T06', 7000, 1)
if 
  Blip.DoesExist(109@)
goto_if_false @STEAL4_8050
Blip.Remove(109@)

:STEAL4_8050
if 
  Blip.DoesExist(110@)
goto_if_false @STEAL4_8071
Blip.Remove(110@)

:STEAL4_8071
if 
  Blip.DoesExist(111@)
goto_if_false @STEAL4_8092
Blip.Remove(111@)

:STEAL4_8092
Blip.Remove(108@)
108@ = Blip.AddForCoord(160@, 161@, 162@)
Text.ClearHelp
132@ = 0
TIMERA = 20000
TIMERB = 0
35@ += 1

:STEAL4_8142
if 
  35@ == 2
goto_if_false @STEAL4_8289
if 
  151@ == 0
goto_if_false @STEAL4_8237
Streaming.RequestModel(404)
if 
  Streaming.HasModelLoaded(404)
goto_if_false @STEAL4_8230
TIMERA = 20000
35@ += 1
Text.PrintNow('ST4_T06', 7000, 1)

:STEAL4_8230
goto @STEAL4_8289

:STEAL4_8237
Streaming.RequestModel(559)
if 
  Streaming.HasModelLoaded(559)
goto_if_false @STEAL4_8289
TIMERA = 20000
35@ += 1
Text.PrintNow('ST4_T06', 7000, 1)

:STEAL4_8289
if 
  35@ == 3
goto_if_false @STEAL4_8780
if 
  Object.DoesExist(106@)
goto_if_false @STEAL4_8596
  Object.Locate3D(106@, 160@, 161@, 162@, 5.0, 5.0, 3.0, True)
if 
  Object.Locate2D(106@, 160@, 161@, 6.0, 6.0, False)
goto_if_false @STEAL4_8428
if 
  128@ <> 0
goto_if_false @STEAL4_8421
Crane.EnableControls(True, True, True)
128@ = 0

:STEAL4_8421
goto @STEAL4_8461

:STEAL4_8428
if 
  128@ <> 1
goto_if_false @STEAL4_8461
Crane.EnableControls(True, True, False)
128@ = 1

:STEAL4_8461
if 
  Object.Locate3D(106@, 160@, 161@, 162@, 6.0, 6.0, 6.0, False)
goto_if_false @STEAL4_8548
if 
  132@ <> 2
goto_if_false @STEAL4_8541
Text.ClearHelp
Text.PrintHelpForever('ST4_H03')
132@ = 2

:STEAL4_8541
goto @STEAL4_8596

:STEAL4_8548
if 
  132@ == 2
goto_if_false @STEAL4_8596
if 
  61@ > 10000
goto_if_false @STEAL4_8587
Text.ClearPrints

:STEAL4_8587
Text.ClearHelp
132@ = 0

:STEAL4_8596
if 
  Object.DoesExist(106@)
goto_if_false @STEAL4_8780
83@, 69@, 91@ = Object.GrabEntityOnRope($magno_cabin)
if 
  not is_int_lvar_equal_to_int_lvar 91@ == 106@
goto_if_false @STEAL4_8780
Crane.EnableControls(True, True, True)
128@ = 0
set_lvar_int_to_lvar_int 104@ = 106@
if 
  Blip.DoesExist(109@)
goto_if_false @STEAL4_8689
Blip.Remove(109@)

:STEAL4_8689
if 
  Blip.DoesExist(110@)
goto_if_false @STEAL4_8710
Blip.Remove(110@)

:STEAL4_8710
if 
  Blip.DoesExist(111@)
goto_if_false @STEAL4_8731
Blip.Remove(111@)

:STEAL4_8731
if 
  Blip.DoesExist(108@)
goto_if_false @STEAL4_8752
Blip.Remove(108@)

:STEAL4_8752
TIMERA = 0
139@ = 0
140@ = 0
35@ += 1

:STEAL4_8780
if 
  35@ == 4
goto_if_false @STEAL4_9251
if 
  139@ == 1
goto_if_false @STEAL4_9071
if 
  Object.HasCollidedWithAnything(106@)
goto_if_false @STEAL4_9071
if 
  173@ > 14.0
goto_if_false @STEAL4_9064
$x, $y, $z = Object.GetCoordinates(106@)
if 
  151@ == 0
goto_if_false @STEAL4_8909
86@ = Car.Create(404, $x, $y, $z)
goto @STEAL4_8926

:STEAL4_8909
86@ = Car.Create(559, $x, $y, $z)

:STEAL4_8926
Car.AttachToObject(86@, 106@, 0.0, 0.0, -0.8, 0.0, 0.0, 180.0)
Object.SortOutCollisionWithCar(106@, 86@)
Object.Break(106@, 1)
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_9022
Car.Detach(86@, 0.0, 0.0, 0.0, False)
Car.Explode(86@)

:STEAL4_9022
if 
  151@ == 0
goto_if_false @STEAL4_9052
Streaming.MarkModelAsNoLongerNeeded(404)
goto @STEAL4_9057

:STEAL4_9052
Streaming.MarkModelAsNoLongerNeeded(559)

:STEAL4_9057
140@ = 1

:STEAL4_9064
139@ = 2

:STEAL4_9071
if 
  Object.DoesExist(106@)
goto_if_false @STEAL4_9148
173@ = Object.GetSpeed(106@)
if 
  173@ > 5.0
goto_if_false @STEAL4_9148
if 
  139@ == 0
goto_if_false @STEAL4_9148
Object.SetRecordsCollisions(106@, True)
139@ = 1

:STEAL4_9148
if 
  TIMERA > 1000
goto_if_false @STEAL4_9251
if 
  140@ <> 1
goto_if_false @STEAL4_9239
if 
  Object.DoesExist(106@)
goto_if_false @STEAL4_9232
if or
  Object.IsStatic(106@)
  TIMERA > 2000
goto_if_false @STEAL4_9232
35@ += 1

:STEAL4_9232
goto @STEAL4_9251

:STEAL4_9239
wait 2000
37@ = 1

:STEAL4_9251
if 
  35@ == 5
goto_if_false @STEAL4_10322
if 
  151@ == 0
goto_if_false @STEAL4_9950
Text.ClearHelp
Text.ClearPrints
Camera.DoFade(150, Fade.Out)

:STEAL4_9298
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_9322
wait 0
goto @STEAL4_9298

:STEAL4_9322
Hud.SwitchWidescreen(True)
$disable_crane = 1
Crane.EnableControls(False, False, False)
Object.ReleaseEntityFromRope($magno_cabin)
Object.Delete(104@)
102@ = Object.CreateNoOffset(#KMB_CONTAINER_OPEN, 160@, 161@, 162@)
Object.SetHeading(102@, 163@)
85@ = Car.Create(404, -1632.786, 61.2888, 2.2888)
46@ = Object.GetHeading(102@)
46@ += 180.0
Car.SetHeading(85@, 46@)
Object.SortOutCollisionWithCar(102@, 85@)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_9479
Char.SetCoordinates(68@, -1631.028, 54.3581, 2.5495)
Char.SetHeading(68@, 5.3011)

:STEAL4_9479
Camera.SetFixedPosition(-1632.001, 52.1951, 4.5485, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1631.943, 53.181, 4.3914, SwitchType.JumpCut)
if 
  Object.DoesExist($magno_cabin)
goto_if_false @STEAL4_9556
Object.SetRopeHeight($magno_cabin, 0.5)

:STEAL4_9556
Camera.DoFade(150, Fade.In)

:STEAL4_9563
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_9587
wait 0
goto @STEAL4_9563

:STEAL4_9587
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 5208)

:STEAL4_9598
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_9624
wait 0
goto @STEAL4_9598

:STEAL4_9624
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('STL4_FB', 5000, 1)
if 
  not Car.IsDead(85@)
goto_if_false @STEAL4_9834
$x, $y, $z = Car.GetCoordinates(85@)
$heading = Car.GetHeading(85@)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("OPEN_CONTAINER2_CAR = ")
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z
save_float_to_debug_file $heading

:STEAL4_9834
43@ = 0
TIMERA = 0

:STEAL4_9848
if 
  43@ == 0
goto_if_false @STEAL4_9929
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  TIMERA > 5000
goto_if_false @STEAL4_9918
Camera.DoFade(0, Fade.In)
35@ += 1
43@ = 1
goto @STEAL4_9922

:STEAL4_9918
wait 0

:STEAL4_9922
goto @STEAL4_9848

:STEAL4_9929
35@ = 0
34@ += 1
goto @STEAL4_10322

:STEAL4_9950
Text.ClearHelp
Text.ClearPrints
Camera.DoFade(150, Fade.Out)

:STEAL4_9961
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_9985
wait 0
goto @STEAL4_9961

:STEAL4_9985
Hud.SwitchWidescreen(True)
$disable_crane = 1
Crane.EnableControls(False, False, False)
Object.ReleaseEntityFromRope($magno_cabin)
Object.Delete(104@)
102@ = Object.CreateNoOffset(#KMB_CONTAINER_OPEN, 160@, 161@, 162@)
Object.SetHeading(102@, 163@)
86@ = Car.Create(559, -1632.786, 61.2888, 2.2888)
46@ = Object.GetHeading(102@)
46@ += 180.0
Car.SetHeading(86@, 46@)
Object.SortOutCollisionWithCar(102@, 86@)
Camera.SetFixedPosition(-1632.001, 52.1951, 4.5485, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1631.943, 53.181, 4.3914, SwitchType.JumpCut)
if 
  Object.DoesExist($magno_cabin)
goto_if_false @STEAL4_10173
Object.SetRopeHeight($magno_cabin, 0.5)

:STEAL4_10173
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @STEAL4_10203
$magno_arm_LOD, $magno_base_x, $magno_base_y = Object.GetCoordinates($sf_crane1_arm_LOD)

:STEAL4_10203
$magno_arm_h = 15.0
$magno_base_z = 133.5261
$magno_cabin_h = 133.5261
$magno_arm_LOD = -1610.626
$magno_base_x = 60.87417
$car_model_carmod1 = 0.639
gosub @STEAL4_28736
gosub @STEAL4_14499
Camera.DoFade(150, Fade.In)

:STEAL4_10284
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_10308
wait 0
goto @STEAL4_10284

:STEAL4_10308
TIMERA = 0
35@ += 1

:STEAL4_10322
if 
  35@ == 6
goto_if_false @STEAL4_10436
if 
  TIMERA > 1000
goto_if_false @STEAL4_10436
if or
  not Text.IsMessageBeingDisplayed
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @STEAL4_10436
Camera.DoFade(0, Fade.In)
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_10422
Car.SetCoordinates(86@, 174@, 175@, 176@)
Car.SetHeading(86@, 177@)

:STEAL4_10422
35@ = 0
34@ += 2

:STEAL4_10436
if 
  35@ > 0
goto_if_false @STEAL4_10591
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @STEAL4_10591
if 
  141@ == 0
goto_if_false @STEAL4_10512
Text.PrintHelp('ST4_H10')
141@ = 1
goto @STEAL4_10591

:STEAL4_10512
if 
  142@ == 0
goto_if_false @STEAL4_10555
Text.PrintHelp('ST4_H05')
142@ = 1
goto @STEAL4_10591

:STEAL4_10555
if 
  143@ == 0
goto_if_false @STEAL4_10591
Text.PrintHelp('ST4_H07')
143@ = 1

:STEAL4_10591
return 

:STEAL4_10593
if 
  35@ == 0
goto_if_false @STEAL4_10972
$reset_crane_camera = 1
$disable_crane = 0
Crane.EnableControls(True, True, True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Hud.SwitchWidescreen(False)
if 
  Object.DoesExist(92@)
goto_if_false @STEAL4_10665
109@ = Blip.AddForObject(92@)

:STEAL4_10665
if 
  Object.DoesExist(93@)
goto_if_false @STEAL4_10689
110@ = Blip.AddForObject(93@)

:STEAL4_10689
if 
  Object.DoesExist(94@)
goto_if_false @STEAL4_10713
111@ = Blip.AddForObject(94@)

:STEAL4_10713
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_10785
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1658.476, 33.234, 2.8213, MoveState.Run, 10000)
Task.AchieveHeading(-1, 299.6011)
Sequence.Close(49@)
Char.PerformSequence(68@, 49@)
Sequence.Clear(49@)

:STEAL4_10785
Text.ClearPrints
Text.Print('ST4_T04', 7000, 1)
TIMERA = 0
TIMERB = 0
132@ = 0
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_10896
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1650.464, 44.1144, 2.5495, MoveState.Run, 10000)
Task.AchieveHeading(-1, 317.7216)
Sequence.Close(49@)
Char.PerformSequence(68@, 49@)
Sequence.Clear(49@)

:STEAL4_10896
if 
  Object.DoesExist(92@)
goto_if_false @STEAL4_10919
Object.FreezePosition(92@, True)

:STEAL4_10919
if 
  Object.DoesExist(93@)
goto_if_false @STEAL4_10942
Object.FreezePosition(93@, True)

:STEAL4_10942
if 
  Object.DoesExist(94@)
goto_if_false @STEAL4_10965
Object.FreezePosition(94@, True)

:STEAL4_10965
35@ += 1

:STEAL4_10972
if 
  35@ == 1
goto_if_false @STEAL4_11214
83@, 69@, 91@ = Object.GrabEntityOnRope($magno_cabin)
if or
  is_int_lvar_equal_to_int_lvar 91@ == 92@
  is_int_lvar_equal_to_int_lvar 91@ == 93@
  is_int_lvar_equal_to_int_lvar 91@ == 94@
goto_if_false @STEAL4_11214
Object.FreezePosition(91@, False)
set_lvar_int_to_lvar_int 106@ = 91@
Crane.EnableControls(True, True, False)
$disable_crane_rotate = 0
$disable_manual_control = 0
128@ = 1
Text.ClearPrints
Text.PrintNow('ST4_T06', 7000, 1)
if 
  Blip.DoesExist(109@)
goto_if_false @STEAL4_11122
Blip.Remove(109@)

:STEAL4_11122
if 
  Blip.DoesExist(110@)
goto_if_false @STEAL4_11143
Blip.Remove(110@)

:STEAL4_11143
if 
  Blip.DoesExist(111@)
goto_if_false @STEAL4_11164
Blip.Remove(111@)

:STEAL4_11164
Blip.Remove(108@)
108@ = Blip.AddForCoord(164@, 165@, 166@)
Text.ClearHelp
132@ = 0
TIMERA = 20000
TIMERB = 0
35@ += 1

:STEAL4_11214
if 
  35@ == 2
goto_if_false @STEAL4_11284
Streaming.RequestModel(559)
if 
  Streaming.HasModelLoaded(559)
goto_if_false @STEAL4_11284
TIMERA = 20000
35@ += 1
Text.PrintNow('ST4_T06', 7000, 1)

:STEAL4_11284
if 
  35@ == 3
goto_if_false @STEAL4_11775
if 
  Object.DoesExist(106@)
goto_if_false @STEAL4_11591
  Object.Locate3D(106@, 164@, 165@, 166@, 5.0, 5.0, 3.0, True)
if 
  Object.Locate2D(106@, 164@, 165@, 6.0, 6.0, False)
goto_if_false @STEAL4_11423
if 
  128@ <> 0
goto_if_false @STEAL4_11416
Crane.EnableControls(True, True, True)
128@ = 0

:STEAL4_11416
goto @STEAL4_11456

:STEAL4_11423
if 
  128@ <> 1
goto_if_false @STEAL4_11456
Crane.EnableControls(True, True, False)
128@ = 1

:STEAL4_11456
if 
  Object.Locate3D(106@, 164@, 165@, 166@, 6.0, 6.0, 6.0, False)
goto_if_false @STEAL4_11543
if 
  132@ <> 2
goto_if_false @STEAL4_11536
Text.ClearHelp
Text.PrintHelpForever('ST4_H03')
132@ = 2

:STEAL4_11536
goto @STEAL4_11591

:STEAL4_11543
if 
  132@ == 2
goto_if_false @STEAL4_11591
if 
  61@ > 10000
goto_if_false @STEAL4_11582
Text.ClearPrints

:STEAL4_11582
Text.ClearHelp
132@ = 0

:STEAL4_11591
if 
  Object.DoesExist(106@)
goto_if_false @STEAL4_11775
83@, 69@, 91@ = Object.GrabEntityOnRope($magno_cabin)
if 
  not is_int_lvar_equal_to_int_lvar 91@ == 106@
goto_if_false @STEAL4_11775
Crane.EnableControls(True, True, True)
128@ = 0
set_lvar_int_to_lvar_int 104@ = 106@
if 
  Blip.DoesExist(109@)
goto_if_false @STEAL4_11684
Blip.Remove(109@)

:STEAL4_11684
if 
  Blip.DoesExist(110@)
goto_if_false @STEAL4_11705
Blip.Remove(110@)

:STEAL4_11705
if 
  Blip.DoesExist(111@)
goto_if_false @STEAL4_11726
Blip.Remove(111@)

:STEAL4_11726
if 
  Blip.DoesExist(108@)
goto_if_false @STEAL4_11747
Blip.Remove(108@)

:STEAL4_11747
TIMERA = 0
139@ = 0
140@ = 0
35@ += 1

:STEAL4_11775
if 
  35@ == 4
goto_if_false @STEAL4_12174
if 
  139@ == 1
goto_if_false @STEAL4_11994
if 
  Object.HasCollidedWithAnything(106@)
goto_if_false @STEAL4_11994
if 
  173@ > 14.0
goto_if_false @STEAL4_11987
$x, $y, $z = Object.GetCoordinates(106@)
86@ = Car.Create(559, $x, $y, $z)
Car.AttachToObject(86@, 106@, 0.0, 0.0, -0.8, 0.0, 0.0, 180.0)
Object.SortOutCollisionWithCar(106@, 86@)
Object.Break(106@, 1)
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_11975
Car.Detach(86@, 0.0, 0.0, 0.0, False)
Car.Explode(86@)

:STEAL4_11975
Streaming.MarkModelAsNoLongerNeeded(559)
140@ = 1

:STEAL4_11987
139@ = 2

:STEAL4_11994
if 
  Object.DoesExist(106@)
goto_if_false @STEAL4_12071
173@ = Object.GetSpeed(106@)
if 
  173@ > 5.0
goto_if_false @STEAL4_12071
if 
  139@ == 0
goto_if_false @STEAL4_12071
Object.SetRecordsCollisions(106@, True)
139@ = 1

:STEAL4_12071
if 
  TIMERA > 1000
goto_if_false @STEAL4_12174
if 
  140@ <> 1
goto_if_false @STEAL4_12162
if 
  Object.DoesExist(106@)
goto_if_false @STEAL4_12155
if or
  Object.IsStatic(106@)
  TIMERA > 2000
goto_if_false @STEAL4_12155
35@ += 1

:STEAL4_12155
goto @STEAL4_12174

:STEAL4_12162
wait 2000
37@ = 1

:STEAL4_12174
if 
  35@ == 5
goto_if_false @STEAL4_12538
Text.ClearHelp
Text.ClearPrints
Camera.DoFade(150, Fade.Out)

:STEAL4_12203
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_12227
wait 0
goto @STEAL4_12203

:STEAL4_12227
Hud.SwitchWidescreen(True)
Crane.EnableControls(False, False, False)
$disable_crane = 1
Object.ReleaseEntityFromRope($magno_cabin)
Object.Delete(104@)
103@ = Object.CreateNoOffset(#KMB_CONTAINER_OPEN, 164@, 165@, 166@)
Object.SetHeading(103@, 167@)
86@ = Car.Create(559, -1644.017, 50.9619, 3.0354)
46@ = Object.GetHeading(103@)
46@ += 180.0
Car.SetHeading(86@, 46@)
Object.SortOutCollisionWithCar(103@, 86@)
Camera.SetFixedPosition(-1637.048, 45.8035, 3.6546, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1637.986, 46.1327, 3.5431, SwitchType.JumpCut)
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @STEAL4_12419
$magno_arm_LOD, $magno_base_x, $magno_base_y = Object.GetCoordinates($sf_crane1_arm_LOD)

:STEAL4_12419
$magno_arm_h = 15.0
$magno_base_z = 133.5261
$magno_cabin_h = 133.5261
$magno_arm_LOD = -1610.626
$magno_base_x = 60.87417
$car_model_carmod1 = 0.4
gosub @STEAL4_28736
gosub @STEAL4_14499
Camera.DoFade(150, Fade.In)

:STEAL4_12500
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_12524
wait 0
goto @STEAL4_12500

:STEAL4_12524
TIMERA = 0
35@ += 1

:STEAL4_12538
if 
  35@ == 6
goto_if_false @STEAL4_12652
if 
  TIMERA > 1000
goto_if_false @STEAL4_12652
if or
  not Text.IsMessageBeingDisplayed
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @STEAL4_12652
Camera.DoFade(0, Fade.In)
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_12638
Car.SetCoordinates(86@, 174@, 175@, 176@)
Car.SetHeading(86@, 177@)

:STEAL4_12638
35@ = 0
34@ += 1

:STEAL4_12652
return 

:STEAL4_12654
if 
  35@ == -1
goto_if_false @STEAL4_12719
70@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
87@ = Car.Create(413, 0.0, 0.0, 0.0)

:STEAL4_12719
if 
  35@ == 0
goto_if_false @STEAL4_12872
if 
  not Car.IsDead(87@)
goto_if_false @STEAL4_12858
49@ = Sequence.Open()
Task.CarDriveToCoord(-1, 87@, -1686.422, 25.8359, 2.7752, 15.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(-1, 87@, -1643.394, 19.6494, 3.6706, 15.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Sequence.Close(49@)
if 
  not Char.IsDead(70@)
goto_if_false @STEAL4_12853
Char.PerformSequence(70@, 49@)

:STEAL4_12853
Sequence.Clear(49@)

:STEAL4_12858
35@ += 1
TIMERA = 0

:STEAL4_12872
if 
  35@ > 0
goto_if_false @STEAL4_12914
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @STEAL4_12914
35@ = 99

:STEAL4_12914
if 
  35@ == 1
goto_if_false @STEAL4_13037
if 
  TIMERA > 500
goto_if_false @STEAL4_13037
if 
  not Car.IsDead(87@)
goto_if_false @STEAL4_12981
$x, $y, $z = Car.GetCoordinates(87@)

:STEAL4_12981
Streaming.LoadScene($x, $y, $z)
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_13030
Car.SetCoordinates(86@, 174@, 175@, 176@)
Car.SetHeading(86@, 177@)

:STEAL4_13030
35@ += 1

:STEAL4_13037
if 
  35@ == 2
goto_if_false @STEAL4_13210
if 
  6000 > TIMERA
goto_if_false @STEAL4_13171
if 
  not Car.IsDead(87@)
goto_if_false @STEAL4_13119
$x, $y, $z = Car.GetOffsetInWorldCoords(87@, 2.0, -3.0, 0.0)

:STEAL4_13119
Camera.SetFixedPosition(-1680.086, 28.3067, 3.8465, 0.0, 0.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
goto @STEAL4_13210

:STEAL4_13171
Camera.SetFixedPosition(-1643.223, 13.6026, 4.1338, 0.0, 0.0, 0.0)
35@ += 1

:STEAL4_13210
if 
  35@ == 3
goto_if_false @STEAL4_13420
if 
  not Car.IsDead(87@)
goto_if_false @STEAL4_13273
$x, $y, $z = Car.GetOffsetInWorldCoords(87@, -6.0, 1.0, 1.0)

:STEAL4_13273
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
if 
  20000 > TIMERA
goto_if_false @STEAL4_13378
if 
  not Char.IsDead(70@)
goto_if_false @STEAL4_13371
43@ = Char.GetScriptTaskStatus(70@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @STEAL4_13371
56@ = 0
194@ = 0
35@ += 1

:STEAL4_13371
goto @STEAL4_13420

:STEAL4_13378
if 
  not Char.IsDead(70@)
goto_if_false @STEAL4_13399
Char.ClearTasks(70@)

:STEAL4_13399
35@ += 1
56@ = 0
194@ = 0

:STEAL4_13420
if 
  35@ == 4
goto_if_false @STEAL4_13837
if 
  not Char.IsDead(70@)
goto_if_false @STEAL4_13562
49@ = Sequence.Open()
Task.Pause(-1, 1800)
if 
  not Car.IsDead(87@)
goto_if_false @STEAL4_13489
Task.LeaveCar(-1, 87@)

:STEAL4_13489
Task.GoStraightToCoord(-1, -1638.837, 27.1035, 2.8213, MoveState.Run, 999999)
Task.KindaStayInSamePlace(-1, True)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_13544
Task.KillCharOnFoot(-1, 68@)

:STEAL4_13544
Sequence.Close(49@)
Char.PerformSequence(70@, 49@)
Sequence.Clear(49@)

:STEAL4_13562
if 
  not Char.IsDead(71@)
goto_if_false @STEAL4_13685
49@ = Sequence.Open()
Task.Pause(-1, 0)
if 
  not Car.IsDead(87@)
goto_if_false @STEAL4_13612
Task.LeaveCar(-1, 87@)

:STEAL4_13612
Task.GoStraightToCoord(-1, -1639.676, 29.1963, 2.8213, MoveState.Run, 999999)
Task.KindaStayInSamePlace(-1, True)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_13667
Task.KillCharOnFoot(-1, 68@)

:STEAL4_13667
Sequence.Close(49@)
Char.PerformSequence(71@, 49@)
Sequence.Clear(49@)

:STEAL4_13685
if 
  not Char.IsDead(72@)
goto_if_false @STEAL4_13809
49@ = Sequence.Open()
Task.Pause(-1, 1000)
if 
  not Car.IsDead(87@)
goto_if_false @STEAL4_13736
Task.LeaveCar(-1, 87@)

:STEAL4_13736
Task.GoStraightToCoord(-1, -1641.28, 27.2014, 2.8213, MoveState.Run, 999999)
Task.KindaStayInSamePlace(-1, True)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_13791
Task.KillCharOnFoot(-1, 68@)

:STEAL4_13791
Sequence.Close(49@)
Char.PerformSequence(72@, 49@)
Sequence.Clear(49@)

:STEAL4_13809
56@ = 0
194@ = 0
35@ += 1
TIMERA = 0

:STEAL4_13837
if 
  35@ == 5
goto_if_false @STEAL4_13988
if 
  not Char.IsDead(70@)
goto_if_false @STEAL4_13988
if 
  not Char.IsInAnyCar(70@)
goto_if_false @STEAL4_13988
if 
  56@ == 0
goto_if_false @STEAL4_13988
set_lvar_text_label 189@s = 'STL4_GA'
set_lvar_int_to_constant 191@ = 5232
set_lvar_int_to_lvar_int 192@ = 70@
193@ = 0
gosub @STEAL4_35552
if 
  194@ == 4
goto_if_false @STEAL4_13988
194@ = 0
56@ += 1
35@ = 99

:STEAL4_13988
if 
  35@ == 99
goto_if_false @STEAL4_14497
$magno_cabin_h = 130.0
if 
  not Car.IsDead(87@)
goto_if_false @STEAL4_14062
Car.SetCoordinates(87@, -1642.876, 19.5037, 2.5547)
Car.SetHeading(87@, 259.5122)

:STEAL4_14062
if 
  not Char.IsDead(70@)
goto_if_false @STEAL4_14190
Char.ClearTasksImmediately(70@)
Char.SetCoordinates(70@, -1638.837, 27.1035, 2.8213)
Char.SetHeading(70@, 0.0)
49@ = Sequence.Open()
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_14149
Task.GotoChar(-1, 68@, 10000, 25.0)

:STEAL4_14149
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_14172
Task.KillCharOnFoot(-1, 68@)

:STEAL4_14172
Sequence.Close(49@)
Char.PerformSequence(70@, 49@)
Sequence.Clear(49@)

:STEAL4_14190
if 
  not Char.IsDead(71@)
goto_if_false @STEAL4_14318
Char.ClearTasksImmediately(71@)
Char.SetCoordinates(71@, -1639.676, 29.1963, 2.8213)
Char.SetHeading(71@, 0.0)
49@ = Sequence.Open()
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_14277
Task.GotoChar(-1, 68@, 10000, 20.0)

:STEAL4_14277
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_14300
Task.KillCharOnFoot(-1, 68@)

:STEAL4_14300
Sequence.Close(49@)
Char.PerformSequence(71@, 49@)
Sequence.Clear(49@)

:STEAL4_14318
if 
  not Char.IsDead(72@)
goto_if_false @STEAL4_14446
Char.ClearTasksImmediately(72@)
Char.SetCoordinates(72@, -1641.28, 27.2014, 2.8213)
Char.SetHeading(72@, 0.0)
49@ = Sequence.Open()
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_14405
Task.GotoChar(-1, 68@, 10000, 18.0)

:STEAL4_14405
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_14428
Task.KillCharOnFoot(-1, 68@)

:STEAL4_14428
Sequence.Close(49@)
Char.PerformSequence(72@, 49@)
Sequence.Clear(49@)

:STEAL4_14446
Text.ClearPrints
Text.ClearHelp
$reset_crane_camera = 1
$disable_crane_exit = 0
Hud.SwitchWidescreen(False)
Crane.EnableControls(True, True, True)
$disable_crane = 0
35@ = 0
34@ += 1

:STEAL4_14497
return 

:STEAL4_14499
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_14539
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_14539
Char.WarpIntoCar(68@, 86@)

:STEAL4_14539
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_14565
Char.GiveWeapon(68@, WeaponType.Pistol, 9999)

:STEAL4_14565
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 5206)

:STEAL4_14576
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_14602
wait 0
goto @STEAL4_14576

:STEAL4_14602
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('STL4_EA', 5000, 1)
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_14721
Car.SetCruiseSpeed(86@, 3.5)
Car.SetHealth(86@, 2000)
Car.SetCanBurstTires(86@, False)
Car.DoesProvideCover(86@, False)
174@, 175@, 176@ = Car.GetOffsetInWorldCoords(86@, 0.0, 15.0, 0.0)
177@ = Car.GetHeading(86@)
Car.GotoCoordinatesAccurate(86@, 174@, 175@, 176@)

:STEAL4_14721
gosub @STEAL4_28286
return 

:STEAL4_14730
switch_start 35@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @STEAL4_18803 {caseNum1} 0 {caseLabel1} @STEAL4_14858 {caseNum2} 1 {caseLabel2} @STEAL4_14966 {caseNum3} 2 {caseLabel3} @STEAL4_15139 {caseNum4} 3 {caseLabel4} @STEAL4_16241 {caseNum5} 4 {caseLabel5} @STEAL4_16660 {caseNum6} 5 {caseLabel6} @STEAL4_16787 {caseNum7} 6 {caseLabel7} @STEAL4_17184
switch_continued 99 {caseLabel1} @STEAL4_18782 {caseNum2} -1 {caseLabel2} @STEAL4_18803 {caseNum3} -1 {caseLabel3} @STEAL4_18803 {caseNum4} -1 {caseLabel4} @STEAL4_18803 {caseNum5} -1 {caseLabel5} @STEAL4_18803 {caseNum6} -1 {caseLabel6} @STEAL4_18803 {caseNum7} -1 {caseLabel7} @STEAL4_18803 {caseNum8} -1 {caseLabel8} @STEAL4_18803 {caseNum9} -1 {caseLabel9} @STEAL4_18803

:STEAL4_14858
Text.ClearPrints
if 
  133@ <> 2
goto_if_false @STEAL4_14892
133@ = 2
gosub @STEAL4_29788

:STEAL4_14892
194@ = 0
Hud.DisplayNthCounterWithString($st4_mission_attempts, CounterDisplay.Bar, 1, 'ST4_30')
Text.PrintHelp('ST4_H09')
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_14952
Char.SetDecisionMaker(68@, 168@)

:STEAL4_14952
35@ += 1
goto @STEAL4_18803

:STEAL4_14966
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_15118
49@ = Sequence.Open()
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_15010
Task.LeaveCar(-1, 86@)

:STEAL4_15010
if 
  not Char.IsDead(70@)
goto_if_false @STEAL4_15033
Task.KillCharOnFoot(-1, 70@)

:STEAL4_15033
if 
  not Char.IsDead(71@)
goto_if_false @STEAL4_15056
Task.KillCharOnFoot(-1, 71@)

:STEAL4_15056
if 
  not Char.IsDead(72@)
goto_if_false @STEAL4_15079
Task.KillCharOnFoot(-1, 72@)

:STEAL4_15079
Sequence.Close(49@)
Char.PerformSequence(68@, 49@)
Sequence.Clear(49@)
56@ = 0
194@ = 0
35@ += 1

:STEAL4_15118
TIMERA = 0
TIMERB = 0
goto @STEAL4_18803

:STEAL4_15139
if 
  56@ == 0
goto_if_false @STEAL4_15240
set_lvar_text_label 189@s = 'STL4_HA'
set_lvar_int_to_constant 191@ = 5210
set_lvar_int_to_lvar_int 192@ = 68@
193@ = 0
gosub @STEAL4_35552
if 
  194@ == 4
goto_if_false @STEAL4_15240
194@ = 0
56@ += 1
TIMERA = 0

:STEAL4_15240
if 
  TIMERA > 45000
goto_if_false @STEAL4_15275
35@ += 1
goto @STEAL4_15308

:STEAL4_15275
if and
  Char.IsDead(70@)
  Char.IsDead(71@)
  Char.IsDead(72@)
goto_if_false @STEAL4_15308
35@ += 1

:STEAL4_15308
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_15781
if 
  124@ == 0
goto_if_false @STEAL4_15774
Text.ClearHelp
43@ = 0

:STEAL4_15353
if 
  3 > 43@
goto_if_false @STEAL4_15502
if 
  not Char.IsDead(70@(43@,6i))
goto_if_false @STEAL4_15488
Char.SetAccuracy(70@(43@,6i), 30)
44@ = Char.GetHealth(70@(43@,6i))
if 
  200 > 44@
goto_if_false @STEAL4_15479
44@ += 100
if 
  44@ > 200
goto_if_false @STEAL4_15467
44@ = 200

:STEAL4_15467
Char.SetHealth(70@(43@,6i), 44@)

:STEAL4_15479
Char.ClearTasks(70@(43@,6i))

:STEAL4_15488
43@ += 1
goto @STEAL4_15353

:STEAL4_15502
if 
  not Char.IsDead(70@)
goto_if_false @STEAL4_15585
49@ = Sequence.Open()
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_15554
Task.GotoChar(-1, 68@, 10000, 20.0)

:STEAL4_15554
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(49@)
Char.PerformSequence(70@, 49@)
Sequence.Clear(49@)

:STEAL4_15585
if 
  not Char.IsDead(71@)
goto_if_false @STEAL4_15668
49@ = Sequence.Open()
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_15637
Task.GotoChar(-1, 68@, 10000, 24.0)

:STEAL4_15637
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(49@)
Char.PerformSequence(71@, 49@)
Sequence.Clear(49@)

:STEAL4_15668
if 
  not Char.IsDead(72@)
goto_if_false @STEAL4_15767
49@ = Sequence.Open()
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_15720
Task.GotoChar(-1, 68@, 10000, 22.0)

:STEAL4_15720
Task.KindaStayInSamePlace(-1, True)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_15749
Task.KillCharOnFoot(-1, 68@)

:STEAL4_15749
Sequence.Close(49@)
Char.PerformSequence(72@, 49@)
Sequence.Clear(49@)

:STEAL4_15767
124@ = 1

:STEAL4_15774
goto @STEAL4_16234

:STEAL4_15781
if 
  124@ == 1
goto_if_false @STEAL4_16234
Text.PrintHelpForever('ST4_H09')
43@ = 0

:STEAL4_15817
if 
  3 > 43@
goto_if_false @STEAL4_15930
if 
  not Char.IsDead(70@(43@,6i))
goto_if_false @STEAL4_15916
Char.SetAccuracy(70@(43@,6i), 40)
44@ = Char.GetHealth(70@(43@,6i))
if 
  44@ > 50
goto_if_false @STEAL4_15907
Char.SetHealth(70@(43@,6i), 50)

:STEAL4_15907
Char.ClearTasks(70@(43@,6i))

:STEAL4_15916
43@ += 1
goto @STEAL4_15817

:STEAL4_15930
if 
  not Char.IsDead(70@)
goto_if_false @STEAL4_16029
49@ = Sequence.Open()
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_15982
Task.GotoChar(-1, 68@, 10000, 20.0)

:STEAL4_15982
Task.KindaStayInSamePlace(-1, True)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_16011
Task.KillCharOnFoot(-1, 68@)

:STEAL4_16011
Sequence.Close(49@)
Char.PerformSequence(70@, 49@)
Sequence.Clear(49@)

:STEAL4_16029
if 
  not Char.IsDead(71@)
goto_if_false @STEAL4_16128
49@ = Sequence.Open()
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_16081
Task.GotoChar(-1, 68@, 10000, 22.0)

:STEAL4_16081
Task.KindaStayInSamePlace(-1, True)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_16110
Task.KillCharOnFoot(-1, 68@)

:STEAL4_16110
Sequence.Close(49@)
Char.PerformSequence(71@, 49@)
Sequence.Clear(49@)

:STEAL4_16128
if 
  not Char.IsDead(72@)
goto_if_false @STEAL4_16227
49@ = Sequence.Open()
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_16180
Task.GotoChar(-1, 68@, 10000, 24.0)

:STEAL4_16180
Task.KindaStayInSamePlace(-1, True)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_16209
Task.KillCharOnFoot(-1, 68@)

:STEAL4_16209
Sequence.Close(49@)
Char.PerformSequence(72@, 49@)
Sequence.Clear(49@)

:STEAL4_16227
124@ = 0

:STEAL4_16234
goto @STEAL4_18803

:STEAL4_16241
World.ClearArea(-1711.59, 44.8495, 2.7813, 20.0, True)
88@ = Car.Create(405, -1711.59, 44.8495, 2.7813)
Car.SetHeading(88@, 232.9281)
Car.SetStraightLineDistance(88@, 50)
73@ = Char.CreateInsideCar(88@, PedType.Mission1, 24)
74@ = Char.CreateAsPassenger(88@, PedType.Mission1, 24, 0)
75@ = Char.CreateAsPassenger(88@, PedType.Mission1, 24, 1)
115@ = Blip.AddForChar(73@)
116@ = Blip.AddForChar(74@)
117@ = Blip.AddForChar(75@)
World.ClearArea(-1697.04, 14.7378, 2.7813, 5.0, True)
if 
  not Car.IsDead(88@)
goto_if_false @STEAL4_16514
49@ = Sequence.Open()
Task.CarDriveToCoord(-1, 88@, -1686.422, 25.8359, 2.7752, 15.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(-1, 88@, -1647.938, 27.2328, 2.5408, 15.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Sequence.Close(49@)
if 
  not Char.IsDead(73@)
goto_if_false @STEAL4_16509
Char.PerformSequence(73@, 49@)

:STEAL4_16509
Sequence.Clear(49@)

:STEAL4_16514
43@ = 3

:STEAL4_16521
if 
  6 > 43@
goto_if_false @STEAL4_16632
if 
  not Char.IsDead(70@(43@,6i))
goto_if_false @STEAL4_16618
Char.GiveWeapon(70@(43@,6i), WeaponType.Pistol, 9999)
Char.SetDecisionMaker(70@(43@,6i), 171@)
Char.SetAccuracy(70@(43@,6i), 40)
Char.SetHealth(70@(43@,6i), 50)
Char.SetSuffersCriticalHits(70@(43@,6i), False)

:STEAL4_16618
43@ += 1
goto @STEAL4_16521

:STEAL4_16632
TIMERA = 0
194@ = 0
35@ += 1
goto @STEAL4_18803

:STEAL4_16660
if 
  15000 > TIMERA
goto_if_false @STEAL4_16752
if 
  not Char.IsDead(73@)
goto_if_false @STEAL4_16738
43@ = Char.GetScriptTaskStatus(73@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @STEAL4_16731
35@ += 1

:STEAL4_16731
goto @STEAL4_16745

:STEAL4_16738
35@ += 1

:STEAL4_16745
goto @STEAL4_16780

:STEAL4_16752
if 
  not Char.IsDead(73@)
goto_if_false @STEAL4_16773
Char.ClearTasks(73@)

:STEAL4_16773
35@ += 1

:STEAL4_16780
goto @STEAL4_18803

:STEAL4_16787
if 
  not Char.IsDead(73@)
goto_if_false @STEAL4_16903
49@ = Sequence.Open()
if 
  not Car.IsDead(88@)
goto_if_false @STEAL4_16831
Task.LeaveCar(-1, 88@)

:STEAL4_16831
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_16862
Task.GotoChar(-1, 68@, 10000, 20.0)

:STEAL4_16862
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_16885
Task.KillCharOnFoot(-1, 68@)

:STEAL4_16885
Sequence.Close(49@)
Char.PerformSequence(73@, 49@)
Sequence.Clear(49@)

:STEAL4_16903
if 
  not Char.IsDead(74@)
goto_if_false @STEAL4_17026
49@ = Sequence.Open()
Task.Pause(-1, 1000)
if 
  not Car.IsDead(88@)
goto_if_false @STEAL4_16954
Task.LeaveCar(-1, 88@)

:STEAL4_16954
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_16985
Task.GotoChar(-1, 68@, 10000, 22.0)

:STEAL4_16985
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_17008
Task.KillCharOnFoot(-1, 68@)

:STEAL4_17008
Sequence.Close(49@)
Char.PerformSequence(74@, 49@)
Sequence.Clear(49@)

:STEAL4_17026
if 
  not Char.IsDead(75@)
goto_if_false @STEAL4_17149
49@ = Sequence.Open()
Task.Pause(-1, 1500)
if 
  not Car.IsDead(88@)
goto_if_false @STEAL4_17077
Task.LeaveCar(-1, 88@)

:STEAL4_17077
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_17108
Task.GotoChar(-1, 68@, 10000, 24.0)

:STEAL4_17108
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_17131
Task.KillCharOnFoot(-1, 68@)

:STEAL4_17131
Sequence.Close(49@)
Char.PerformSequence(75@, 49@)
Sequence.Clear(49@)

:STEAL4_17149
TIMERA = 0
56@ = 0
194@ = 0
35@ += 1
goto @STEAL4_18803

:STEAL4_17184
if 
  56@ == 0
goto_if_false @STEAL4_17278
set_lvar_text_label 189@s = 'STL4_GB'
set_lvar_int_to_constant 191@ = 5233
set_lvar_int_to_lvar_int 192@ = 73@
193@ = 0
gosub @STEAL4_35552
if 
  194@ == 4
goto_if_false @STEAL4_17278
194@ = 0
56@ += 1

:STEAL4_17278
if 
  56@ == 1
goto_if_false @STEAL4_17372
set_lvar_text_label 189@s = 'STL4_HC'
set_lvar_int_to_constant 191@ = 5212
set_lvar_int_to_lvar_int 192@ = 68@
193@ = 0
gosub @STEAL4_35552
if 
  194@ == 4
goto_if_false @STEAL4_17372
194@ = 0
56@ += 1

:STEAL4_17372
if and
  Char.IsDead(70@)
  Char.IsDead(71@)
  Char.IsDead(72@)
  Char.IsDead(73@)
  Char.IsDead(74@)
goto_if_false @STEAL4_17431
if 
  Char.IsDead(75@)
goto_if_false @STEAL4_17431
35@ = 99

:STEAL4_17431
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_18043
if 
  124@ == 0
goto_if_false @STEAL4_18036
Text.ClearHelp
43@ = 0

:STEAL4_17476
if 
  6 > 43@
goto_if_false @STEAL4_17625
if 
  not Char.IsDead(70@(43@,6i))
goto_if_false @STEAL4_17611
Char.SetAccuracy(70@(43@,6i), 30)
44@ = Char.GetHealth(70@(43@,6i))
if 
  200 > 44@
goto_if_false @STEAL4_17602
44@ += 100
if 
  44@ > 200
goto_if_false @STEAL4_17590
44@ = 200

:STEAL4_17590
Char.SetHealth(70@(43@,6i), 44@)

:STEAL4_17602
Char.ClearTasks(70@(43@,6i))

:STEAL4_17611
43@ += 1
goto @STEAL4_17476

:STEAL4_17625
if 
  not Char.IsDead(70@)
goto_if_false @STEAL4_17692
49@ = Sequence.Open()
Task.GotoChar(-1, $scplayer, 10000, 30.0)
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(49@)
Char.PerformSequence(70@, 49@)
Sequence.Clear(49@)

:STEAL4_17692
if 
  not Char.IsDead(71@)
goto_if_false @STEAL4_17759
49@ = Sequence.Open()
Task.GotoChar(-1, $scplayer, 10000, 32.0)
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(49@)
Char.PerformSequence(71@, 49@)
Sequence.Clear(49@)

:STEAL4_17759
if 
  not Char.IsDead(72@)
goto_if_false @STEAL4_17827
49@ = Sequence.Open()
Task.KindaStayInSamePlace(-1, True)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_17809
Task.KillCharOnFoot(-1, 68@)

:STEAL4_17809
Sequence.Close(49@)
Char.PerformSequence(72@, 49@)
Sequence.Clear(49@)

:STEAL4_17827
if 
  not Char.IsDead(73@)
goto_if_false @STEAL4_17894
49@ = Sequence.Open()
Task.GotoChar(-1, $scplayer, 10000, 34.0)
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(49@)
Char.PerformSequence(73@, 49@)
Sequence.Clear(49@)

:STEAL4_17894
if 
  not Char.IsDead(74@)
goto_if_false @STEAL4_17961
49@ = Sequence.Open()
Task.GotoChar(-1, $scplayer, 10000, 28.0)
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(49@)
Char.PerformSequence(74@, 49@)
Sequence.Clear(49@)

:STEAL4_17961
if 
  not Char.IsDead(75@)
goto_if_false @STEAL4_18029
49@ = Sequence.Open()
Task.KindaStayInSamePlace(-1, True)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_18011
Task.KillCharOnFoot(-1, 68@)

:STEAL4_18011
Sequence.Close(49@)
Char.PerformSequence(75@, 49@)
Sequence.Clear(49@)

:STEAL4_18029
124@ = 1

:STEAL4_18036
goto @STEAL4_18775

:STEAL4_18043
if 
  124@ == 1
goto_if_false @STEAL4_18775
Text.PrintHelpForever('ST4_H09')
43@ = 0

:STEAL4_18079
if 
  6 > 43@
goto_if_false @STEAL4_18192
if 
  not Char.IsDead(70@(43@,6i))
goto_if_false @STEAL4_18178
Char.SetAccuracy(70@(43@,6i), 40)
44@ = Char.GetHealth(70@(43@,6i))
if 
  44@ > 50
goto_if_false @STEAL4_18169
Char.SetHealth(70@(43@,6i), 50)

:STEAL4_18169
Char.ClearTasks(70@(43@,6i))

:STEAL4_18178
43@ += 1
goto @STEAL4_18079

:STEAL4_18192
if 
  not Char.IsDead(70@)
goto_if_false @STEAL4_18291
49@ = Sequence.Open()
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_18244
Task.GotoChar(-1, 68@, 10000, 28.0)

:STEAL4_18244
Task.KindaStayInSamePlace(-1, True)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_18273
Task.KillCharOnFoot(-1, 68@)

:STEAL4_18273
Sequence.Close(49@)
Char.PerformSequence(70@, 49@)
Sequence.Clear(49@)

:STEAL4_18291
if 
  not Char.IsDead(71@)
goto_if_false @STEAL4_18384
49@ = Sequence.Open()
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_18343
Task.GotoChar(-1, 68@, 10000, 32.0)

:STEAL4_18343
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_18366
Task.KillCharOnFoot(-1, 68@)

:STEAL4_18366
Sequence.Close(49@)
Char.PerformSequence(71@, 49@)
Sequence.Clear(49@)

:STEAL4_18384
if 
  not Char.IsDead(72@)
goto_if_false @STEAL4_18483
49@ = Sequence.Open()
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_18436
Task.GotoChar(-1, 68@, 10000, 26.0)

:STEAL4_18436
Task.KindaStayInSamePlace(-1, True)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_18465
Task.KillCharOnFoot(-1, 68@)

:STEAL4_18465
Sequence.Close(49@)
Char.PerformSequence(72@, 49@)
Sequence.Clear(49@)

:STEAL4_18483
if 
  not Char.IsDead(73@)
goto_if_false @STEAL4_18576
49@ = Sequence.Open()
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_18535
Task.GotoChar(-1, 68@, 10000, 29.0)

:STEAL4_18535
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_18558
Task.KillCharOnFoot(-1, 68@)

:STEAL4_18558
Sequence.Close(49@)
Char.PerformSequence(73@, 49@)
Sequence.Clear(49@)

:STEAL4_18576
if 
  not Char.IsDead(74@)
goto_if_false @STEAL4_18669
49@ = Sequence.Open()
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_18628
Task.GotoChar(-1, 68@, 10000, 24.0)

:STEAL4_18628
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_18651
Task.KillCharOnFoot(-1, 68@)

:STEAL4_18651
Sequence.Close(49@)
Char.PerformSequence(74@, 49@)
Sequence.Clear(49@)

:STEAL4_18669
if 
  not Char.IsDead(75@)
goto_if_false @STEAL4_18768
49@ = Sequence.Open()
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_18721
Task.GotoChar(-1, 68@, 10000, 20.0)

:STEAL4_18721
Task.KindaStayInSamePlace(-1, True)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_18750
Task.KillCharOnFoot(-1, 68@)

:STEAL4_18750
Sequence.Close(49@)
Char.PerformSequence(75@, 49@)
Sequence.Clear(49@)

:STEAL4_18768
124@ = 0

:STEAL4_18775
goto @STEAL4_18803

:STEAL4_18782
35@ = 0
34@ += 2
goto @STEAL4_18803

:STEAL4_18803
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_19087
43@ = Char.GetScriptTaskStatus(68@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @STEAL4_19087
49@ = Sequence.Open()
if 
  not Char.IsDead(70@)
goto_if_false @STEAL4_18889
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 70@)
goto @STEAL4_19062

:STEAL4_18889
if 
  not Char.IsDead(71@)
goto_if_false @STEAL4_18925
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 71@)
goto @STEAL4_19062

:STEAL4_18925
if 
  not Char.IsDead(72@)
goto_if_false @STEAL4_18961
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 72@)
goto @STEAL4_19062

:STEAL4_18961
if 
  not Char.IsDead(73@)
goto_if_false @STEAL4_18997
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 73@)
goto @STEAL4_19062

:STEAL4_18997
if 
  not Char.IsDead(74@)
goto_if_false @STEAL4_19033
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 74@)
goto @STEAL4_19062

:STEAL4_19033
if 
  not Char.IsDead(75@)
goto_if_false @STEAL4_19062
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 75@)

:STEAL4_19062
Task.Pause(-1, 1000)
Sequence.Close(49@)
Char.PerformSequence(68@, 49@)
Sequence.Clear(49@)

:STEAL4_19087
if 
  6 > 39@
goto_if_false @STEAL4_19341
set_lvar_int_to_lvar_int 43@ = 39@
if 
  not Char.IsDead(70@(43@,6i))
goto_if_false @STEAL4_19341
if 
  Object.DoesExist(105@)
goto_if_false @STEAL4_19341
if 
  not Object.IsStatic(105@)
goto_if_false @STEAL4_19341
46@ = Object.GetSpeed(105@)
if 
  46@ > 4.0
goto_if_false @STEAL4_19259
if 
  Char.IsTouchingObjectOnFoot(70@(43@,6i), 105@)
goto_if_false @STEAL4_19259
45@ = Char.GetScriptTaskStatus(70@(43@,6i), 1470)
if 
  is_int_lvar_equal_to_constant 45@ == 7
goto_if_false @STEAL4_19259
Task.Die(70@(43@,6i))

:STEAL4_19259
if 
  Char.LocateOnFootObject3D(70@(43@,6i), 105@, 2.0, 2.0, 2.0, False)
goto_if_false @STEAL4_19341
45@ = Char.GetScriptTaskStatus(70@(43@,6i), 1470)
if 
  is_int_lvar_equal_to_constant 45@ == 7
goto_if_false @STEAL4_19341
Task.Die(70@(43@,6i))

:STEAL4_19341
if 
  39@ == 1
goto_if_false @STEAL4_19503
if 
  Car.DoesExist(87@)
goto_if_false @STEAL4_19431
if 
  not Car.IsDead(87@)
goto_if_false @STEAL4_19431
$x, $y, $z = Car.GetCoordinates(87@)
if 
  0.0 > $z
goto_if_false @STEAL4_19431
Car.Explode(87@)

:STEAL4_19431
if 
  Car.DoesExist(88@)
goto_if_false @STEAL4_19503
if 
  not Car.IsDead(88@)
goto_if_false @STEAL4_19503
$x, $y, $z = Car.GetCoordinates(88@)
if 
  0.0 > $z
goto_if_false @STEAL4_19503
Car.Explode(88@)

:STEAL4_19503
if 
  39@ == 2
goto_if_false @STEAL4_19609
43@ = 0

:STEAL4_19528
if 
  6 > 43@
goto_if_false @STEAL4_19609
if 
  Char.IsDead(70@(43@,6i))
goto_if_false @STEAL4_19595
if 
  Blip.DoesExist(112@(43@,6i))
goto_if_false @STEAL4_19595
Blip.Remove(112@(43@,6i))

:STEAL4_19595
43@ += 1
goto @STEAL4_19528

:STEAL4_19609
return 

:STEAL4_19611
return 

:STEAL4_19613
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_19665
if 
  124@ == 0
goto_if_false @STEAL4_19658
Text.ClearHelp
124@ = 1

:STEAL4_19658
goto @STEAL4_19701

:STEAL4_19665
if 
  124@ == 1
goto_if_false @STEAL4_19701
Text.PrintHelpForever('ST4_H09')
124@ = 0

:STEAL4_19701
switch_start 35@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @STEAL4_21938 {caseNum1} 0 {caseLabel1} @STEAL4_19829 {caseNum2} 1 {caseLabel2} @STEAL4_19850 {caseNum3} 2 {caseLabel3} @STEAL4_19883 {caseNum4} 3 {caseLabel4} @STEAL4_19943 {caseNum5} 4 {caseLabel5} @STEAL4_20327 {caseNum6} 5 {caseLabel6} @STEAL4_20356 {caseNum7} 6 {caseLabel7} @STEAL4_20837
switch_continued 7 {caseLabel1} @STEAL4_21056 {caseNum2} 8 {caseLabel2} @STEAL4_21223 {caseNum3} 9 {caseLabel3} @STEAL4_21840 {caseNum4} 99 {caseLabel4} @STEAL4_21917 {caseNum5} -1 {caseLabel5} @STEAL4_21938 {caseNum6} -1 {caseLabel6} @STEAL4_21938 {caseNum7} -1 {caseLabel7} @STEAL4_21938 {caseNum8} -1 {caseLabel8} @STEAL4_21938 {caseNum9} -1 {caseLabel9} @STEAL4_21938

:STEAL4_19829
TIMERA = 0
35@ += 1
goto @STEAL4_21938

:STEAL4_19850
if 
  TIMERA > 2000
goto_if_false @STEAL4_19876
35@ += 1

:STEAL4_19876
goto @STEAL4_21938

:STEAL4_19883
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_19915
Player.SetControl($player1, False)
goto @STEAL4_19922

:STEAL4_19915
$disable_crane = 1

:STEAL4_19922
TIMERA = 0
35@ += 1
goto @STEAL4_21938

:STEAL4_19943
if 
  TIMERA > 0
goto_if_false @STEAL4_20320
Hud.SwitchWidescreen(True)
$disable_crane = 1
Crane.EnableControls(False, False, False)
Camera.SetFixedPosition(-1675.598, 25.4341, 2.8434, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1674.722, 25.8894, 3.0036, SwitchType.JumpCut)
80@ = Char.Create(PedType.Mission1, 24, -1676.095, 26.8479, 2.5869)
Char.SetHeading(80@, 314.8203)
120@ = Blip.AddForChar(80@)
81@ = Char.Create(PedType.Mission1, 24, -1674.404, 23.8107, 2.6233)
Char.SetHeading(81@, 314.8204)
121@ = Blip.AddForChar(81@)
43@ = 0

:STEAL4_20122
if 
  2 > 43@
goto_if_false @STEAL4_20202
Char.SetDecisionMaker(80@(43@,2i), 172@)
Char.SetAccuracy(80@(43@,2i), 20)
Char.SetHealth(80@(43@,2i), 100)
Char.GiveWeapon(80@(43@,2i), WeaponType.Pistol, 9999)
43@ += 1
goto @STEAL4_20122

:STEAL4_20202
Task.GoStraightToCoord(80@, -1664.113, 34.4836, 2.5869, MoveState.Run, 999999)
Task.GoStraightToCoord(81@, -1662.307, 31.2954, 2.5869, MoveState.Run, 999999)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 5234)

:STEAL4_20267
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_20293
wait 0
goto @STEAL4_20267

:STEAL4_20293
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('STL4_GC', 5000, 1)
35@ += 1

:STEAL4_20320
goto @STEAL4_21938

:STEAL4_20327
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_20349
35@ += 1

:STEAL4_20349
goto @STEAL4_21938

:STEAL4_20356
Hud.SwitchWidescreen(False)
Crane.EnableControls(True, True, True)
$disable_crane = 0
if 
  not Char.IsDead(80@)
goto_if_false @STEAL4_20421
Char.SetCoordinates(80@, -1657.398, 32.9707, 2.8213)
Char.SetHeading(80@, 320.0)

:STEAL4_20421
if 
  not Char.IsDead(81@)
goto_if_false @STEAL4_20467
Char.SetCoordinates(81@, -1655.264, 31.706, 2.8213)
Char.SetHeading(81@, 320.0)

:STEAL4_20467
43@ = 0

:STEAL4_20474
if 
  2 > 43@
goto_if_false @STEAL4_20636
if 
  not Char.IsDead(80@(43@,2i))
goto_if_false @STEAL4_20622
Char.SetDecisionMaker(80@(43@,2i), 171@)
Char.SetAccuracy(80@(43@,2i), 20)
Char.SetHealth(80@(43@,2i), 100)
Char.GiveWeapon(80@(43@,2i), WeaponType.Pistol, 9999)
Char.SetRelationship(80@(43@,2i), RelationshipType.Hate, PedType.Mission2)
Char.SetRelationship(80@(43@,2i), RelationshipType.Hate, PedType.Player1)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_20622
Task.GotoChar(80@(43@,2i), 68@, 10000, 20.0)

:STEAL4_20622
43@ += 1
goto @STEAL4_20474

:STEAL4_20636
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_20676
if 
  not Char.IsDead(80@)
goto_if_false @STEAL4_20676
Task.KillCharOnFoot(68@, 80@)

:STEAL4_20676
if 
  $player_is_in_crane == 2
goto_if_false @STEAL4_20715
$disable_crane = 0
$reset_crane_camera = 1
goto @STEAL4_20724

:STEAL4_20715
Camera.RestoreJumpcut
Player.SetControl($player1, True)

:STEAL4_20724
Text.ClearPrints
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_20773
if 
  not Blip.DoesExist(119@)
goto_if_false @STEAL4_20773
119@ = Blip.AddForCar(86@)
Blip.SetAsFriendly(119@, True)

:STEAL4_20773
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_20823
DecisionMakerChar.AddEventResponse(168@, 12, 603, 0.0, 100.0, 0.0, 100.0, False, True)

:STEAL4_20823
35@ += 1
goto @STEAL4_21938

:STEAL4_20837
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_21049
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_21049
if 
  Char.IsInCar($scplayer, 86@)
goto_if_false @STEAL4_21007
if 
  Char.LocateAnyMeansChar3D($scplayer, 68@, 15.0, 15.0, 5.0, False)
goto_if_false @STEAL4_21007
49@ = Sequence.Open()
Task.GotoCar(-1, 86@, 999999, 10.0)
Task.EnterCarAsPassenger(-1, 86@, 999999, 0)
Sequence.Close(49@)
Char.PerformSequence(68@, 49@)
Sequence.Clear(49@)
TIMERA = 30000
56@ = 0
194@ = 0
35@ += 1

:STEAL4_21007
if and
  Char.IsDead(80@)
  Char.IsDead(81@)
goto_if_false @STEAL4_21049
35@ += 1
56@ = 0
194@ = 0

:STEAL4_21049
goto @STEAL4_21938

:STEAL4_21056
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_21216
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_21216
if 
  not Char.IsInCar(68@, 86@)
goto_if_false @STEAL4_21192
49@ = Sequence.Open()
Task.GotoCar(-1, 86@, 999999, 10.0)
Task.EnterCarAsPassenger(-1, 86@, 999999, 0)
Sequence.Close(49@)
Char.PerformSequence(68@, 49@)
Sequence.Clear(49@)
TIMERA = 30000
35@ += 1
56@ = Math.RandomIntInRange(0, 2)
goto @STEAL4_21216

:STEAL4_21192
TIMERA = 30000
35@ += 1
56@ = Math.RandomIntInRange(0, 2)

:STEAL4_21216
goto @STEAL4_21938

:STEAL4_21223
if 
  56@ == 0
goto_if_false @STEAL4_21317
set_lvar_text_label 189@s = 'STL4_JA'
set_lvar_int_to_constant 191@ = 5213
set_lvar_int_to_lvar_int 192@ = 68@
193@ = 0
gosub @STEAL4_35552
if 
  194@ == 4
goto_if_false @STEAL4_21317
194@ = 0
56@ = 2

:STEAL4_21317
if 
  56@ == 1
goto_if_false @STEAL4_21411
set_lvar_text_label 189@s = 'STL4_JB'
set_lvar_int_to_constant 191@ = 5214
set_lvar_int_to_lvar_int 192@ = 68@
193@ = 0
gosub @STEAL4_35552
if 
  194@ == 4
goto_if_false @STEAL4_21411
194@ = 0
56@ = 2

:STEAL4_21411
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_21608
if 
  Char.IsInCar($scplayer, 86@)
goto_if_false @STEAL4_21608
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_21608
if 
  not Char.IsInCar(68@, 86@)
goto_if_false @STEAL4_21608
if 
  TIMERA > 35000
goto_if_false @STEAL4_21525
Text.PrintNow('ST4_29', 5000, 1)
TIMERA = 0

:STEAL4_21525
43@ = Char.GetScriptTaskStatus(68@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @STEAL4_21608
49@ = Sequence.Open()
Task.GotoCar(-1, 86@, 999999, 10.0)
Task.EnterCarAsPassenger(-1, 86@, 999999, 0)
Sequence.Close(49@)
Char.PerformSequence(68@, 49@)
Sequence.Clear(49@)

:STEAL4_21608
if 
  194@ == 0
goto_if_false @STEAL4_21738
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_21738
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_21738
if 
  Char.IsInCar(68@, 86@)
goto_if_false @STEAL4_21738
if 
  not Char.IsInCar($scplayer, 86@)
goto_if_false @STEAL4_21738
if 
  TIMERA > 30000
goto_if_false @STEAL4_21738
Text.PrintNow('ST4_28', 5000, 1)
TIMERA = 0

:STEAL4_21738
if 
  194@ == 0
goto_if_false @STEAL4_21833
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_21833
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_21833
if 
  Char.IsInCar(68@, 86@)
goto_if_false @STEAL4_21833
if 
  Char.IsInCar($scplayer, 86@)
goto_if_false @STEAL4_21833
35@ += 1

:STEAL4_21833
goto @STEAL4_21938

:STEAL4_21840
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_21898
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_21898
if 
  Char.IsInCar(68@, 86@)
goto_if_false @STEAL4_21898
Char.SetGetOutUpsideDownCar(68@, False)

:STEAL4_21898
Hud.ClearCounter($st4_mission_attempts)
35@ = 99
goto @STEAL4_21938

:STEAL4_21917
35@ = 0
34@ += 1
goto @STEAL4_21938

:STEAL4_21938
if 
  35@ > 3
goto_if_false @STEAL4_22069
if 
  Blip.DoesExist(119@)
goto_if_false @STEAL4_22019
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_22012
if 
  Char.IsInCar($scplayer, 86@)
goto_if_false @STEAL4_22012
Blip.Remove(119@)

:STEAL4_22012
goto @STEAL4_22069

:STEAL4_22019
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_22069
if 
  not Char.IsInCar($scplayer, 86@)
goto_if_false @STEAL4_22069
119@ = Blip.AddForCar(86@)
Blip.SetAsFriendly(119@, True)

:STEAL4_22069
return 

:STEAL4_22071
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_22123
if 
  124@ == 0
goto_if_false @STEAL4_22116
Text.ClearHelp
124@ = 1

:STEAL4_22116
goto @STEAL4_22159

:STEAL4_22123
if 
  124@ == 1
goto_if_false @STEAL4_22159
Text.PrintHelpForever('ST4_H09')
124@ = 0

:STEAL4_22159
if 
  35@ == -1
goto_if_false @STEAL4_22197
119@ = Blip.AddForCoord(0.0, 0.0, 0.0)

:STEAL4_22197
if 
  35@ == 0
goto_if_false @STEAL4_22341
Text.PrintNow('ST4_26', 5000, 1)
Blip.Remove(108@)
108@ = Blip.AddForCoord(-2024.7, 179.4, 27.4)
if 
  Blip.DoesExist(120@)
goto_if_false @STEAL4_22277
Blip.Remove(120@)

:STEAL4_22277
if 
  Blip.DoesExist(121@)
goto_if_false @STEAL4_22298
Blip.Remove(121@)

:STEAL4_22298
TIMERA = 20000
TIMERB = 0
56@ = 0
62@ = 0
Game.SetWantedMultiplier(1.0)
35@ += 1

:STEAL4_22341
if 
  35@ == 1
goto_if_false @STEAL4_23889
if 
  56@ == 0
goto_if_false @STEAL4_22417
if 
  62@ > 5500
goto_if_false @STEAL4_22410
153@ = 5
56@ += 1

:STEAL4_22410
goto @STEAL4_22648

:STEAL4_22417
if 
  56@ == 1
goto_if_false @STEAL4_22491
if 
  153@ == 0
goto_if_false @STEAL4_22484
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_22477
137@ = Car.GetHealth(86@)

:STEAL4_22477
56@ += 1

:STEAL4_22484
goto @STEAL4_22648

:STEAL4_22491
if 
  56@ == 2
goto_if_false @STEAL4_22566
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_22559
43@ = Car.GetHealth(86@)
if 
  is_int_lvar_greater_than_int_lvar 137@ > 43@
goto_if_false @STEAL4_22559
56@ += 1

:STEAL4_22559
goto @STEAL4_22648

:STEAL4_22566
if 
  56@ == 3
goto_if_false @STEAL4_22605
153@ = 7
56@ += 1
goto @STEAL4_22648

:STEAL4_22605
if 
  56@ == 4
goto_if_false @STEAL4_22648
if 
  153@ == 0
goto_if_false @STEAL4_22648
56@ += 1

:STEAL4_22648
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_22838
if 
  Char.IsInCar($scplayer, 86@)
goto_if_false @STEAL4_22838
if 
  Car.Locate3D(86@, -2024.7, 179.4, 27.4, 4.0, 4.0, 4.0, True)
goto_if_false @STEAL4_22838
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_22838
if 
  Char.IsInCar(68@, 86@)
goto_if_false @STEAL4_22822
if 
  Char.IsInCar($scplayer, 86@)
goto_if_false @STEAL4_22815
if 
  Car.IsOnAllWheels(86@)
goto_if_false @STEAL4_22815
Player.SetControl($player1, False)
35@ += 1

:STEAL4_22815
goto @STEAL4_22838

:STEAL4_22822
Text.PrintNow('ST4_27', 6000, 1)

:STEAL4_22838
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_22910
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_22910
if 
  Char.IsInCar(68@, 86@)
goto_if_false @STEAL4_22910
if 
  Blip.DoesExist(107@)
goto_if_false @STEAL4_22910
Blip.Remove(107@)

:STEAL4_22910
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_23603
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_23603
if 
  Char.IsInCar(68@, 86@)
goto_if_false @STEAL4_23603
if 
  not Char.IsInCar($scplayer, 86@)
goto_if_false @STEAL4_23530
if 
  not Blip.DoesExist(119@)
goto_if_false @STEAL4_23034
119@ = Blip.AddForCar(86@)
Blip.SetAsFriendly(119@, True)
Text.PrintNow('ST4_05', 5000, 1)
goto @STEAL4_23034

:STEAL4_23034
if 
  Blip.DoesExist(108@)
goto_if_false @STEAL4_23055
Blip.Remove(108@)

:STEAL4_23055
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  $audio_line_is_active == 0
  TIMERA > 30000
goto_if_false @STEAL4_23523
if 
  Char.LocateAnyMeansChar3D($scplayer, 68@, 20.0, 20.0, 5.0, False)
goto_if_false @STEAL4_23523
178@ += 1
if 
  178@ > 5
goto_if_false @STEAL4_23153
178@ = 0

:STEAL4_23153
switch_start 178@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @STEAL4_23516 {caseNum1} 0 {caseLabel1} @STEAL4_23216 {caseNum2} 1 {caseLabel2} @STEAL4_23266 {caseNum3} 2 {caseLabel3} @STEAL4_23316 {caseNum4} 3 {caseLabel4} @STEAL4_23366 {caseNum5} 4 {caseLabel5} @STEAL4_23416 {caseNum6} 5 {caseLabel6} @STEAL4_23466 {caseNum7} -1 {caseLabel7} @STEAL4_23516

:STEAL4_23216
set_var_text_label s$audio_string = 'CESX_AA'
set_var_int_to_constant $audio_sound_file = 42400
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23516

:STEAL4_23266
set_var_text_label s$audio_string = 'CESX_AB'
set_var_int_to_constant $audio_sound_file = 42401
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23516

:STEAL4_23316
set_var_text_label s$audio_string = 'CESX_AC'
set_var_int_to_constant $audio_sound_file = 42402
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23516

:STEAL4_23366
set_var_text_label s$audio_string = 'CESX_AD'
set_var_int_to_constant $audio_sound_file = 42403
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23516

:STEAL4_23416
set_var_text_label s$audio_string = 'CESX_AE'
set_var_int_to_constant $audio_sound_file = 42404
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23516

:STEAL4_23466
set_var_text_label s$audio_string = 'CESX_AF'
set_var_int_to_constant $audio_sound_file = 42405
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23516

:STEAL4_23516
TIMERA = 0

:STEAL4_23523
goto @STEAL4_23603

:STEAL4_23530
if 
  Blip.DoesExist(119@)
goto_if_false @STEAL4_23551
Blip.Remove(119@)

:STEAL4_23551
if 
  not Blip.DoesExist(108@)
goto_if_false @STEAL4_23603
108@ = Blip.AddForCoord(-2024.7, 179.4, 27.4)
Text.PrintNow('ST4_26', 7000, 1)

:STEAL4_23603
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_23697
if 
  Char.IsInCar($scplayer, 86@)
goto_if_false @STEAL4_23666
if 
  Blip.DoesExist(119@)
goto_if_false @STEAL4_23659
Blip.Remove(119@)

:STEAL4_23659
goto @STEAL4_23697

:STEAL4_23666
if 
  not Blip.DoesExist(119@)
goto_if_false @STEAL4_23697
119@ = Blip.AddForCar(86@)
Blip.SetAsFriendly(119@, True)

:STEAL4_23697
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_23889
if 
  Char.IsInCar($scplayer, 86@)
goto_if_false @STEAL4_23889
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_23889
if 
  not Char.IsInCar(68@, 86@)
goto_if_false @STEAL4_23837
if 
  TIMERB > 20000
goto_if_false @STEAL4_23809
Text.PrintNow('ST4_27', 7000, 1)
TIMERB = 0

:STEAL4_23809
if 
  Blip.DoesExist(108@)
goto_if_false @STEAL4_23830
Blip.Remove(108@)

:STEAL4_23830
goto @STEAL4_23889

:STEAL4_23837
if 
  not Blip.DoesExist(108@)
goto_if_false @STEAL4_23889
108@ = Blip.AddForCoord(-2024.7, 179.4, 27.4)
Text.PrintNow('ST4_26', 7000, 1)

:STEAL4_23889
if 
  35@ == 2
goto_if_false @STEAL4_24958
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:STEAL4_23921
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_23945
wait 0
goto @STEAL4_23921

:STEAL4_23945
Garage.Open('HBGDSFS')

:STEAL4_23956
if 
  not Garage.IsOpen('HBGDSFS')
goto_if_false @STEAL4_23989
wait 0
goto @STEAL4_23956

:STEAL4_23989
Streaming.SetAreaVisible(1)
if 
  Player.IsPlaying($player1)
goto_if_false @STEAL4_24016
Char.SetAreaVisible($scplayer, 1)

:STEAL4_24016
Streaming.LoadSceneInDirection(-2045.4, 173.1, 27.8, 309.5)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Camera.SetFixedPosition(-2045.2, 170.8, 29.4, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2040.1, 181.6, 29.1, SwitchType.JumpCut)
50@ = -2040.1
50@ += 2045.2
51@ = 181.6
51@ -= 170.8
52@ = 29.1
52@ -= 29.4
50@ *= 4.0
51@ *= 4.0
52@ *= 4.0
$x = -2045.2
add_float_lvar_to_float_var $x += 50@
$y = 170.8
add_float_lvar_to_float_var $y += 51@
$z = 29.4
add_float_lvar_to_float_var $z += 52@
$heading = Math.GetHeadingFromVector2D(50@, 51@)
Streaming.LoadSceneInDirection($x, $y, $z, $heading)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_24301
Char.SetAreaVisible(68@, 1)

:STEAL4_24301
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_24324
Car.SetAreaVisible(86@, 1)

:STEAL4_24324
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_24367
if 
  not Char.IsInCar($scplayer, 86@)
goto_if_false @STEAL4_24367
Char.WarpIntoCar($scplayer, 86@)

:STEAL4_24367
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_24413
Car.SetCoordinates(86@, -2033.8, 178.6, 27.6)
Car.SetHeading(86@, 90.0)

:STEAL4_24413
49@ = Sequence.Open()
Task.CarDriveToCoord(-1, 86@, -2044.4, 177.6, 27.6, 5.0, DriveMode.Accurate, 1, DrivingMode.AvoidCars)
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, -2034.731, 177.1182, 27.8359, MoveState.Walk, 50000)
Sequence.Close(49@)
Char.PerformSequence($scplayer, 49@)
Sequence.Clear(49@)
Camera.DoFade(500, Fade.In)

:STEAL4_24506
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_24530
wait 0
goto @STEAL4_24506

:STEAL4_24530
43@ = Math.RandomIntInRange(0, 2)
if 
  43@ == 0
goto_if_false @STEAL4_24621
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 5222)

:STEAL4_24568
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_24594
wait 0
goto @STEAL4_24568

:STEAL4_24594
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('STL4_NA', 5000, 1)
goto @STEAL4_24678

:STEAL4_24621
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 5223)

:STEAL4_24632
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_24658
wait 0
goto @STEAL4_24632

:STEAL4_24658
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('STL4_NB', 5000, 1)

:STEAL4_24678
TIMERA = 0

:STEAL4_24685
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_24863
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_24852
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_24852
if 
  Char.IsInCar(68@, 86@)
goto_if_false @STEAL4_24852
if 
  not Char.IsInCar($scplayer, 86@)
goto_if_false @STEAL4_24852
43@ = Char.GetScriptTaskStatus(68@, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @STEAL4_24852
49@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, -2034.731, 177.1182, 27.8359, MoveState.Walk, 50000)
Sequence.Close(49@)
Char.PerformSequence(68@, 49@)
Sequence.Clear(49@)

:STEAL4_24852
wait 0
goto @STEAL4_24685

:STEAL4_24863
if 
  TIMERA <= 5000
goto_if_false @STEAL4_24893
wait 0
goto @STEAL4_24863

:STEAL4_24893
Camera.DoFade(1000, Fade.Out)

:STEAL4_24900
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_24924
wait 0
goto @STEAL4_24900

:STEAL4_24924
Streaming.SetAreaVisible(0)
if 
  Player.IsPlaying($player1)
goto_if_false @STEAL4_24951
Char.SetAreaVisible($scplayer, 0)

:STEAL4_24951
35@ += 1

:STEAL4_24958
if 
  35@ == 3
goto_if_false @STEAL4_25730
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_25036
43@ = Car.GetHealth(86@)
cset_lvar_float_to_lvar_int 46@ =# 43@
46@ /= 1000.0
46@ *= 5000.0
cset_lvar_int_to_lvar_float 152@ =# 46@

:STEAL4_25036
Char.ClearTasksImmediately($scplayer)
Char.Delete(68@)
Car.Delete(86@)
Text.ClearPrints
Garage.Close('HBGDSFS')

:STEAL4_25064
if 
  not Garage.IsClosed('HBGDSFS')
goto_if_false @STEAL4_25097
wait 0
goto @STEAL4_25064

:STEAL4_25097
Char.SetCoordinates($scplayer, -1569.625, 122.3311, 2.5469)
Camera.SetFixedPosition(-1571.141, 131.4032, 3.3235, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1571.685, 132.226, 3.4872, SwitchType.JumpCut)
Streaming.LoadSceneInDirection(-1571.685, 132.226, 3.4872, 0.0)
World.ClearArea(-1570.718, 131.0493, 3.3547, 50.0, True)
Hud.SwitchWidescreen(True)
$steal4_flag = 1
start_new_script @IMPEXPM 
$import_export_is_active = 1

:STEAL4_25240
if 
  not Streaming.HasModelLoaded(#NF_BLACKBOARD)
goto_if_false @STEAL4_25266
wait 0
goto @STEAL4_25240

:STEAL4_25266
Text.ClearHelp
Camera.DoFade(1500, Fade.In)

:STEAL4_25275
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_25299
wait 0
goto @STEAL4_25275

:STEAL4_25299
Text.ClearHelp
Text.PrintNow('ST4_45', 5000, 1)
wait 5000
Text.PrintNow('ST4_46', 5000, 1)
wait 5000
Camera.DoFade(500, Fade.Out)

:STEAL4_25350
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_25374
wait 0
goto @STEAL4_25350

:STEAL4_25374
Camera.SetFixedPosition(-1554.593, -60.4267, 75.7247, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1554.782, -59.6013, 75.193, SwitchType.JumpCut)
Streaming.LoadSceneInDirection(-1554.782, -59.6013, 75.193, 0.0)
Camera.DoFade(500, Fade.In)

:STEAL4_25454
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_25478
wait 0
goto @STEAL4_25454

:STEAL4_25478
Text.PrintNow('ST4_47', 5000, 1)
wait 5000
Text.PrintNow('ST4_48', 5000, 1)
wait 5000
Camera.DoFade(500, Fade.Out)

:STEAL4_25527
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_25551
wait 0
goto @STEAL4_25527

:STEAL4_25551
Char.SetCoordinates($scplayer, -2027.2, 179.5, 27.3)
Char.SetHeading($scplayer, 277.5)
Streaming.LoadScene(-2045.4, 173.1, 27.8)
Streaming.LoadSceneInDirection(-2045.4, 173.1, 27.8, 309.5)

:STEAL4_25620
if 
  Char.IsWaitingForWorldCollision($scplayer)
goto_if_false @STEAL4_25647
wait 0
goto @STEAL4_25620

:STEAL4_25647
Char.SetCoordinates($scplayer, -2027.2, 179.5, 27.3)
Char.SetHeading($scplayer, 277.5)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Camera.DoFade(1000, Fade.In)

:STEAL4_25692
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_25716
wait 0
goto @STEAL4_25692

:STEAL4_25716
Player.SetControl($player1, True)
36@ = 1

:STEAL4_25730
return 

:STEAL4_25732
if 
  Object.DoesExist($magno_cabin)
goto_if_false @STEAL4_25807
83@, 69@, 91@ = Object.GrabEntityOnRope($magno_cabin)
if 
  91@ <> -1
goto_if_false @STEAL4_25807
if 
  not is_int_lvar_equal_to_int_lvar 105@ == 91@
goto_if_false @STEAL4_25807
set_lvar_int_to_lvar_int 105@ = 91@

:STEAL4_25807
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_25937
if 
  Object.DoesExist(105@)
goto_if_false @STEAL4_25937
if 
  not Object.IsStatic(105@)
goto_if_false @STEAL4_25937
46@ = Object.GetSpeed(105@)
if 
  46@ > 4.0
goto_if_false @STEAL4_25937
if 
  Char.IsTouchingObjectOnFoot(68@, 105@)
goto_if_false @STEAL4_25937
45@ = Char.GetScriptTaskStatus(68@, 1470)
if 
  is_int_lvar_equal_to_constant 45@ == 7
goto_if_false @STEAL4_25937
Task.Die(68@)

:STEAL4_25937
if 
  39@ == 8
goto_if_false @STEAL4_26323
if 
  135@ == 1
goto_if_false @STEAL4_26323
if 
  Object.DoesExist(101@)
goto_if_false @STEAL4_26323
if 
  Car.DoesExist(84@)
goto_if_false @STEAL4_26323
if 
  not Car.IsDead(84@)
goto_if_false @STEAL4_26323
$x, $y, $z = Object.GetOffsetInWorldCoords(101@, 0.0, -1.0, 0.0)
57@, 58@, 59@ = Object.GetCoordinates(101@)
50@ = 1.0
set_lvar_float_to_var_float 51@ = $z
sub_float_lvar_from_float_lvar 51@ -= 59@
53@ = 0.0
54@ = 1.0
46@ = Math.GetAngleBetween2DVectors(50@, 51@, 53@, 54@)
if and
  is_float_lvar_greater_than_float_var 59@ > $z
  46@ > 120.0
goto_if_false @STEAL4_26323
$x, $y, $z = Car.GetCoordinates(84@)
57@, 58@, 59@ = Car.GetOffsetInWorldCoords(84@, 0.0, 1.0, 0.0)
set_lvar_float_to_lvar_float 179@ = 57@
sub_float_var_from_float_lvar 179@ -= $x
set_lvar_float_to_lvar_float 180@ = 58@
sub_float_var_from_float_lvar 180@ -= $y
set_lvar_float_to_lvar_float 181@ = 59@
sub_float_var_from_float_lvar 181@ -= $z
181@ += 0.1
179@ *= 0.05
180@ *= 0.05
181@ *= 0.05
Car.Detach(84@, 0.0, 0.0, 0.0, False)
64@ = 0
135@ += 1

:STEAL4_26323
if 
  135@ == 2
goto_if_false @STEAL4_26419
if 
  300 > 64@
goto_if_false @STEAL4_26412
if 
  not Car.IsDead(84@)
goto_if_false @STEAL4_26405
Car.ApplyForce(84@, 179@, 180@, 181@, 0.0, 0.0, 0.0)

:STEAL4_26405
goto @STEAL4_26419

:STEAL4_26412
135@ += 1

:STEAL4_26419
if 
  39@ == 9
goto_if_false @STEAL4_26805
if 
  136@ == 1
goto_if_false @STEAL4_26805
if 
  Object.DoesExist(102@)
goto_if_false @STEAL4_26805
if 
  Car.DoesExist(85@)
goto_if_false @STEAL4_26805
if 
  not Car.IsDead(85@)
goto_if_false @STEAL4_26805
$x, $y, $z = Object.GetOffsetInWorldCoords(102@, 0.0, -1.0, 0.0)
57@, 58@, 59@ = Object.GetCoordinates(102@)
50@ = 1.0
set_lvar_float_to_var_float 51@ = $z
sub_float_lvar_from_float_lvar 51@ -= 59@
53@ = 0.0
54@ = 1.0
46@ = Math.GetAngleBetween2DVectors(50@, 51@, 53@, 54@)
if and
  is_float_lvar_greater_than_float_var 59@ > $z
  46@ > 120.0
goto_if_false @STEAL4_26805
$x, $y, $z = Car.GetCoordinates(85@)
57@, 58@, 59@ = Car.GetOffsetInWorldCoords(85@, 0.0, 1.0, 0.0)
set_lvar_float_to_lvar_float 179@ = 57@
sub_float_var_from_float_lvar 179@ -= $x
set_lvar_float_to_lvar_float 180@ = 58@
sub_float_var_from_float_lvar 180@ -= $y
set_lvar_float_to_lvar_float 181@ = 59@
sub_float_var_from_float_lvar 181@ -= $z
181@ += 0.1
179@ *= 0.05
180@ *= 0.05
181@ *= 0.05
Car.Detach(85@, 0.0, 0.0, 0.0, False)
64@ = 0
136@ += 1

:STEAL4_26805
if 
  135@ == 2
goto_if_false @STEAL4_26901
if 
  300 > 64@
goto_if_false @STEAL4_26894
if 
  not Car.IsDead(85@)
goto_if_false @STEAL4_26887
Car.ApplyForce(85@, 179@, 180@, 181@, 0.0, 0.0, 0.0)

:STEAL4_26887
goto @STEAL4_26901

:STEAL4_26894
136@ += 1

:STEAL4_26901
if 
  Object.DoesExist($magno_cabin)
goto_if_false @STEAL4_27250
83@, 69@, 91@ = Object.GrabEntityOnRope($magno_cabin)
if 
  91@ == -1
goto_if_false @STEAL4_27250
if 
  Object.DoesExist(105@)
goto_if_false @STEAL4_27250
if 
  182@ > 15.0
goto_if_false @STEAL4_27242
if 
  not Car.IsDead(82@)
goto_if_false @STEAL4_27026
if 
  Car.IsTouchingObject(82@, 105@)
goto_if_false @STEAL4_27026
Car.Explode(82@)

:STEAL4_27026
if 
  not Car.IsDead(84@)
goto_if_false @STEAL4_27082
if 
  not Car.IsAttached(84@)
goto_if_false @STEAL4_27082
if 
  Car.IsTouchingObject(84@, 105@)
goto_if_false @STEAL4_27082
Car.Explode(84@)

:STEAL4_27082
if 
  not Car.IsDead(86@)
goto_if_false @STEAL4_27122
if 
  Car.IsTouchingObject(86@, 105@)
goto_if_false @STEAL4_27122
Car.Explode(86@)

:STEAL4_27122
if 
  not Car.IsDead(87@)
goto_if_false @STEAL4_27162
if 
  Car.IsTouchingObject(87@, 105@)
goto_if_false @STEAL4_27162
Car.Explode(87@)

:STEAL4_27162
if 
  not Car.IsDead(88@)
goto_if_false @STEAL4_27202
if 
  Car.IsTouchingObject(88@, 105@)
goto_if_false @STEAL4_27202
Car.Explode(88@)

:STEAL4_27202
if 
  not Car.IsDead(89@)
goto_if_false @STEAL4_27242
if 
  Car.IsTouchingObject(89@, 105@)
goto_if_false @STEAL4_27242
Car.Explode(89@)

:STEAL4_27242
182@ = Object.GetSpeed(105@)

:STEAL4_27250
if 
  39@ == 4
goto_if_false @STEAL4_27379
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @STEAL4_27379
if 
  not Car.IsDead(82@)
goto_if_false @STEAL4_27366
if 
  not Char.IsInCar($scplayer, 82@)
goto_if_false @STEAL4_27359
43@ = Char.StoreCarIsInNoSave($scplayer)
if 
  not is_int_lvar_equal_to_int_lvar 43@ == 86@
goto_if_false @STEAL4_27359
Car.MarkAsNoLongerNeeded(82@)
82@ = Char.StoreCarIsIn($scplayer)

:STEAL4_27359
goto @STEAL4_27379

:STEAL4_27366
Car.MarkAsNoLongerNeeded(82@)
82@ = Char.StoreCarIsIn($scplayer)

:STEAL4_27379
if 
  39@ == 5
goto_if_false @STEAL4_27504
if 
  Char.DoesExist(68@)
goto_if_false @STEAL4_27504
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_27504
43@ = Char.GetHealth(68@)
cset_lvar_float_to_lvar_int 46@ =# 43@
46@ /= 500.0
46@ *= 100.0
if 
  46@ > 100.0
goto_if_false @STEAL4_27496
46@ = 100.0

:STEAL4_27496
cset_var_int_to_lvar_float $st4_mission_attempts =# 46@

:STEAL4_27504
if 
  39@ == 6
goto_if_false @STEAL4_27575
if 
  Car.DoesExist(89@)
goto_if_false @STEAL4_27575
if 
  Car.IsDead(89@)
goto_if_false @STEAL4_27575
if 
  Blip.DoesExist(118@)
goto_if_false @STEAL4_27575
Blip.Remove(118@)

:STEAL4_27575
if 
  39@ == 8
goto_if_false @STEAL4_27755
43@ = 0

:STEAL4_27600
if 
  6 > 43@
goto_if_false @STEAL4_27681
if 
  Blip.DoesExist(112@(43@,6i))
goto_if_false @STEAL4_27667
if 
  Char.IsDead(70@(43@,6i))
goto_if_false @STEAL4_27667
Blip.Remove(112@(43@,6i))

:STEAL4_27667
43@ += 1
goto @STEAL4_27600

:STEAL4_27681
if 
  Blip.DoesExist(120@)
goto_if_false @STEAL4_27718
if 
  Char.IsDead(80@)
goto_if_false @STEAL4_27718
Blip.Remove(120@)

:STEAL4_27718
if 
  Blip.DoesExist(121@)
goto_if_false @STEAL4_27755
if 
  Char.IsDead(81@)
goto_if_false @STEAL4_27755
Blip.Remove(121@)

:STEAL4_27755
if 
  128@ == 1
goto_if_false @STEAL4_27836
if 
  Object.DoesExist($magno_cabin)
goto_if_false @STEAL4_27836
83@, 69@, 91@ = Object.GrabEntityOnRope($magno_cabin)
if 
  83@ <> -1
goto_if_false @STEAL4_27836
Crane.EnableControls(True, True, True)
128@ = 2

:STEAL4_27836
if 
  128@ == 2
goto_if_false @STEAL4_27917
if 
  Object.DoesExist($magno_cabin)
goto_if_false @STEAL4_27917
83@, 69@, 91@ = Object.GrabEntityOnRope($magno_cabin)
if 
  83@ == -1
goto_if_false @STEAL4_27917
Crane.EnableControls(True, True, False)
128@ = 1

:STEAL4_27917
if 
  39@ == 7
goto_if_false @STEAL4_28032
if 
  Car.DoesExist(86@)
goto_if_false @STEAL4_27986
if 
  Car.IsDead(86@)
goto_if_false @STEAL4_27986
wait 2000
37@ = 1
140@ = 2

:STEAL4_27986
if 
  Char.DoesExist(68@)
goto_if_false @STEAL4_28032
if 
  Char.IsDead(68@)
goto_if_false @STEAL4_28032
37@ = 1
140@ = 3

:STEAL4_28032
return 

:STEAL4_28034
if 
  126@ == 1
goto_if_false @STEAL4_28160
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_28160
if 
  not Char.IsGroupMember(68@, $Players_Group)
goto_if_false @STEAL4_28160
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_28121
Text.PrintNow('ST4_42', 5000, 1)

:STEAL4_28121
126@ += 1
if 
  133@ <> 1
goto_if_false @STEAL4_28160
133@ = 1
gosub @STEAL4_29788

:STEAL4_28160
if 
  126@ == 2
goto_if_false @STEAL4_28284
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_28284
if 
  Char.LocateAnyMeansChar3D($scplayer, 68@, 15.0, 15.0, 5.0, False)
goto_if_false @STEAL4_28284
Group.SetMember($Players_Group, 68@)
Char.SetDrownsInWater(68@, False)
126@ = 1
if 
  133@ <> 3
goto_if_false @STEAL4_28284
133@ = 3
gosub @STEAL4_29788

:STEAL4_28284
return 

:STEAL4_28286
Streaming.RequestModel(405)
Streaming.RequestModel(346)
Streaming.RequestModel(24)

:STEAL4_28300
if or
  not Streaming.HasModelLoaded(559)
  not Streaming.HasModelLoaded(405)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(24)
goto_if_false @STEAL4_28341
wait 0
goto @STEAL4_28300

:STEAL4_28341
World.ClearArea(-1711.59, 44.8495, 2.7813, 20.0, True)
87@ = Car.Create(405, -1711.59, 44.8495, 2.7813)
Car.SetHeading(87@, 232.9281)
Car.SetStraightLineDistance(87@, 100)
70@ = Char.CreateInsideCar(87@, PedType.Mission1, 24)
71@ = Char.CreateAsPassenger(87@, PedType.Mission1, 24, 0)
72@ = Char.CreateAsPassenger(87@, PedType.Mission1, 24, 1)
112@ = Blip.AddForChar(70@)
113@ = Blip.AddForChar(71@)
114@ = Blip.AddForChar(72@)
43@ = 0

:STEAL4_28476
if 
  3 > 43@
goto_if_false @STEAL4_28587
if 
  not Char.IsDead(70@(43@,6i))
goto_if_false @STEAL4_28573
Char.GiveWeapon(70@(43@,6i), WeaponType.Pistol, 9999)
Char.SetDecisionMaker(70@(43@,6i), 171@)
Char.SetAccuracy(70@(43@,6i), 40)
Char.SetHealth(70@(43@,6i), 70)
Char.SetSuffersCriticalHits(70@(43@,6i), False)

:STEAL4_28573
43@ += 1
goto @STEAL4_28476

:STEAL4_28587
World.ClearArea(-1697.04, 14.7378, 2.7813, 5.0, True)
return 
if 
  not Car.IsDead(87@)
goto_if_false @STEAL4_28734
49@ = Sequence.Open()
Task.CarDriveToCoord(-1, 87@, -1686.422, 25.8359, 2.7752, 15.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(-1, 87@, -1643.394, 19.6494, 3.6706, 15.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Sequence.Close(49@)
if 
  not Char.IsDead(70@)
goto_if_false @STEAL4_28729
Char.PerformSequence(70@, 49@)

:STEAL4_28729
Sequence.Clear(49@)

:STEAL4_28734
return 

:STEAL4_28736
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @STEAL4_28766
Object.SetCoordinatesAndVelocity($sf_crane1_arm_LOD, $magno_arm_LOD, $magno_base_x, $magno_base_y)

:STEAL4_28766
if 
  Object.DoesExist($magno_arm)
goto_if_false @STEAL4_28796
Object.SetCoordinatesAndVelocity($magno_arm, $magno_arm_LOD, $magno_base_x, $magno_base_y)

:STEAL4_28796
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @STEAL4_28917
if 
  Object.DoesExist($magno_base)
goto_if_false @STEAL4_28917
$x, $y, $z = Object.GetOffsetInWorldCoords($sf_crane1_arm_LOD, 0.0, 0.0, 0.0)
Object.SetHeading($magno_base, $magno_base_z)
Object.SetCoordinatesAndVelocity($magno_base, $x, $y, $z)
if 
  Object.DoesExist($magno_base_LOD)
goto_if_false @STEAL4_28917
Object.SetHeading($magno_base_LOD, $magno_base_z)
Object.SetCoordinatesAndVelocity($magno_base_LOD, $x, $y, $z)

:STEAL4_28917
if 
  Object.DoesExist($magno_cabin)
goto_if_false @STEAL4_29062
if 
  Object.DoesExist($magno_base)
goto_if_false @STEAL4_29062
$x, $y, $z = Object.GetOffsetInWorldCoords($magno_base, 0.0, -2.185, 8.51)
$magno_cabin_h = Object.GetHeading($magno_base)
Object.SetCoordinatesAndVelocity($magno_cabin, $x, $y, $z)
Object.SetRotation($magno_cabin, $magno_arm_h, 0.0, $magno_cabin_h)
if 
  Object.DoesExist($magno_cabin_LOD)
goto_if_false @STEAL4_29062
Object.SetCoordinatesAndVelocity($magno_cabin_LOD, $x, $y, $z)
Object.SetRotation($magno_cabin_LOD, $magno_arm_h, 0.0, $magno_cabin_h)

:STEAL4_29062
if 
  Object.DoesExist($magno_cabin)
goto_if_false @STEAL4_29094
Object.SetRopeHeight($magno_cabin, $car_model_carmod1)
$car_model_carmod1 = Object.GetRopeHeight($magno_cabin)

:STEAL4_29094
Object.ReleaseEntityFromRope($magno_cabin)
if 
  Object.DoesExist($magno_cabin)
goto_if_false @STEAL4_29123
Object.SetRopeHeight($magno_cabin, $car_model_carmod1)

:STEAL4_29123
return 
if 
  not Char.IsDead(70@)
goto_if_false @STEAL4_29254
Char.ClearTasksImmediately(70@)
Char.SetCoordinates(70@, -1638.942, 26.9517, 3.0869)
Char.SetHeading(70@, 339.6872)
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1638.837, 27.1035, 2.8213, MoveState.Run, 999999)
Task.KindaStayInSamePlace(-1, True)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_29236
Task.KillCharOnFoot(-1, 68@)

:STEAL4_29236
Sequence.Close(49@)
Char.PerformSequence(70@, 49@)
Sequence.Clear(49@)

:STEAL4_29254
if 
  not Char.IsDead(71@)
goto_if_false @STEAL4_29383
Char.ClearTasksImmediately(71@)
Char.SetCoordinates(71@, -1639.896, 21.6694, 3.0869)
Char.SetHeading(71@, 359.1165)
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1639.896, 21.6694, 3.5869, MoveState.Run, 999999)
Task.KindaStayInSamePlace(-1, True)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_29365
Task.KillCharOnFoot(-1, 68@)

:STEAL4_29365
Sequence.Close(49@)
Char.PerformSequence(71@, 49@)
Sequence.Clear(49@)

:STEAL4_29383
if 
  not Char.IsDead(72@)
goto_if_false @STEAL4_29512
Char.ClearTasksImmediately(72@)
Char.SetCoordinates(72@, -1641.346, 27.048, 3.0869)
Char.SetHeading(72@, 331.6584)
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1641.346, 27.048, 3.5869, MoveState.Run, 999999)
Task.KindaStayInSamePlace(-1, True)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_29494
Task.KillCharOnFoot(-1, 68@)

:STEAL4_29494
Sequence.Close(49@)
Char.PerformSequence(72@, 49@)
Sequence.Clear(49@)

:STEAL4_29512
if 
  not Car.IsDead(87@)
goto_if_false @STEAL4_29558
Car.SetCoordinates(87@, -1642.706, 19.5606, 3.4189)
Car.SetHeading(87@, 263.1502)

:STEAL4_29558
43@ = 0

:STEAL4_29565
if 
  3 > 43@
goto_if_false @STEAL4_29629
if 
  not Char.IsDead(70@(43@,6i))
goto_if_false @STEAL4_29615
Char.SetDecisionMaker(70@(43@,6i), 171@)

:STEAL4_29615
43@ += 1
goto @STEAL4_29565

:STEAL4_29629
return 
switch_start 131@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @STEAL4_29754 {caseNum1} 0 {caseLabel1} @STEAL4_29694 {caseNum2} 1 {caseLabel2} @STEAL4_29724 {caseNum3} -1 {caseLabel3} @STEAL4_29754 {caseNum4} -1 {caseLabel4} @STEAL4_29754 {caseNum5} -1 {caseLabel5} @STEAL4_29754 {caseNum6} -1 {caseLabel6} @STEAL4_29754 {caseNum7} -1 {caseLabel7} @STEAL4_29754

:STEAL4_29694
Text.PrintNow('ST4_11', 6000, 1)
131@ += 1
goto @STEAL4_29754

:STEAL4_29724
Text.PrintNow('ST4_12', 6000, 1)
131@ += 1
goto @STEAL4_29754

:STEAL4_29754
if 
  131@ > 1
goto_if_false @STEAL4_29779
131@ = 0

:STEAL4_29779
60@ = 0
return 

:STEAL4_29788
if 
  Char.DoesExist(68@)
goto_if_false @STEAL4_29954
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_29954
if 
  Blip.DoesExist(107@)
goto_if_false @STEAL4_29841
Blip.Remove(107@)

:STEAL4_29841
if 
  133@ == 1
goto_if_false @STEAL4_29874
107@ = Blip.AddForChar(68@)
Blip.SetAsFriendly(107@, True)

:STEAL4_29874
if 
  133@ == 2
goto_if_false @STEAL4_29914
107@ = Blip.AddForChar(68@)
Blip.SetAsFriendly(107@, True)
Blip.ChangeDisplay(107@, BlipDisplay.BlipOnly)

:STEAL4_29914
if 
  133@ == 3
goto_if_false @STEAL4_29954
107@ = Blip.AddForChar(68@)
Blip.SetAsFriendly(107@, True)
Blip.ChangeDisplay(107@, BlipDisplay.Neither)

:STEAL4_29954
return 

:STEAL4_29956
Text.ClearPrints
if 
  $player_is_in_crane == 2
goto_if_false @STEAL4_30562
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)

:STEAL4_29990
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_30014
wait 0
goto @STEAL4_29990

:STEAL4_30014
Hud.ClearCounter($st4_mission_attempts)
$remove_player_from_crane = 1
switch_start 140@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @STEAL4_30475 {caseNum1} 1 {caseLabel1} @STEAL4_30089 {caseNum2} 2 {caseLabel2} @STEAL4_30219 {caseNum3} 3 {caseLabel3} @STEAL4_30349 {caseNum4} -1 {caseLabel4} @STEAL4_30475 {caseNum5} -1 {caseLabel5} @STEAL4_30475 {caseNum6} -1 {caseLabel6} @STEAL4_30475 {caseNum7} -1 {caseLabel7} @STEAL4_30475

:STEAL4_30089
if 
  not Car.IsDead(82@)
goto_if_false @STEAL4_30212
Car.SetTraction(82@, 2.0)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_30139
Char.WarpIntoCar(68@, 82@)

:STEAL4_30139
$x, $y, $z = Car.GetCoordinates(82@)
$x, $y, $z = Path.GetClosestCarNode($x, $y, $z)
Car.SetCoordinates(82@, $x, $y, $z)
Car.SetHeading(82@, 130.0)
Task.CarDriveWander(68@, 82@, 40.0, DrivingMode.AvoidCars)

:STEAL4_30212
goto @STEAL4_30475

:STEAL4_30219
if 
  not Car.IsDead(82@)
goto_if_false @STEAL4_30342
Car.SetTraction(82@, 2.0)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_30269
Char.WarpIntoCar(68@, 82@)

:STEAL4_30269
$x, $y, $z = Car.GetCoordinates(82@)
$x, $y, $z = Path.GetClosestCarNode($x, $y, $z)
Car.SetCoordinates(82@, $x, $y, $z)
Car.SetHeading(82@, 130.0)
Task.CarDriveWander(68@, 82@, 40.0, DrivingMode.AvoidCars)

:STEAL4_30342
goto @STEAL4_30475

:STEAL4_30349
43@ = 0

:STEAL4_30356
if 
  6 > 43@
goto_if_false @STEAL4_30420
if 
  not Char.IsDead(70@(43@,6i))
goto_if_false @STEAL4_30406
Task.KillCharOnFoot(70@(43@,6i), $scplayer)

:STEAL4_30406
43@ += 1
goto @STEAL4_30356

:STEAL4_30420
if 
  not Char.IsDead(80@)
goto_if_false @STEAL4_30444
Task.KillCharOnFoot(80@, $scplayer)

:STEAL4_30444
if 
  not Char.IsDead(81@)
goto_if_false @STEAL4_30468
Task.KillCharOnFoot(81@, $scplayer)

:STEAL4_30468
goto @STEAL4_30475

:STEAL4_30475
if 
  Car.DoesExist(86@)
goto_if_false @STEAL4_30496
Car.Delete(86@)

:STEAL4_30496
if 
  not Car.IsDead(84@)
goto_if_false @STEAL4_30517
Car.Delete(84@)

:STEAL4_30517
Camera.DoFade(1000, Fade.In)

:STEAL4_30524
if 
  Camera.GetFadingStatus
goto_if_false @STEAL4_30548
wait 0
goto @STEAL4_30524

:STEAL4_30548
$7413 += 1
Player.SetControl($player1, True)

:STEAL4_30562
switch_start 140@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @STEAL4_30694 {caseNum1} 1 {caseLabel1} @STEAL4_30625 {caseNum2} 2 {caseLabel2} @STEAL4_30648 {caseNum3} 3 {caseLabel3} @STEAL4_30671 {caseNum4} -1 {caseLabel4} @STEAL4_30694 {caseNum5} -1 {caseLabel5} @STEAL4_30694 {caseNum6} -1 {caseLabel6} @STEAL4_30694 {caseNum7} -1 {caseLabel7} @STEAL4_30694

:STEAL4_30625
Text.PrintNow('ST4_44', 5000, 1)
goto @STEAL4_30694

:STEAL4_30648
Text.PrintNow('ST4_03', 5000, 1)
goto @STEAL4_30694

:STEAL4_30671
Text.PrintNow('ST4_02', 5000, 1)
goto @STEAL4_30694

:STEAL4_30694
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
$disable_crane = 1
return 

:STEAL4_30719
Text.ClearPrints
Streaming.SetAreaVisible(0)
Text.PrintWithNumberBig('M_PASSS', 152@, 5000, TextStyle.Middle)
Player.AddScore($player1, 152@)
Stat.AwardPlayerMissionRespect(5)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
$flag_steal_mission_counter += 1
Stat.PlayerMadeProgress(1)
$disable_crane = 0
CarGenerator.Switch($steal_car_cargen3, 101)
Stat.RegisterMissionPassed('STEAL_4')
return 

:STEAL4_30803
if 
  Player.IsPlaying($player1)
goto_if_false @STEAL4_30826
Char.SetAreaVisible($scplayer, 0)

:STEAL4_30826
Streaming.SetAreaVisible(0)
start_new_script @CLEANAU 
Text.ClearHelp
Hud.Display(True)
Hud.DisplayRadar(True)
$steal4_flag = 0
$player_is_in_crane = 0
$reset_crane_camera = 0
$disable_crane_exit = 0
$finish_crane_loading_script = 0
$disable_crane_slide = 0
Hud.ClearCounter($st4_mission_attempts)
if 
  Player.IsPlaying($player1)
goto_if_false @STEAL4_30966
Player.SetGroupToFollowAlways($player1, False)
if 
  not Char.IsDead(80@)
goto_if_false @STEAL4_30942
Task.KillCharOnFoot(80@, $scplayer)

:STEAL4_30942
if 
  not Char.IsDead(81@)
goto_if_false @STEAL4_30966
Task.KillCharOnFoot(81@, $scplayer)

:STEAL4_30966
Game.SetScriptLimitToGangSize(99)
Char.MarkAsNoLongerNeeded(68@)
Char.MarkAsNoLongerNeeded(69@)
43@ = 0

:STEAL4_30987
if 
  6 > 43@
goto_if_false @STEAL4_31076
if 
  Player.IsPlaying($player1)
goto_if_false @STEAL4_31053
if 
  not Char.IsDead(70@(43@,6i))
goto_if_false @STEAL4_31053
Task.KillCharOnFoot(70@(43@,6i), $scplayer)

:STEAL4_31053
Char.MarkAsNoLongerNeeded(70@(43@,6i))
43@ += 1
goto @STEAL4_30987

:STEAL4_31076
Char.MarkAsNoLongerNeeded(80@)
Char.MarkAsNoLongerNeeded(81@)
Car.MarkAsNoLongerNeeded(82@)
Car.MarkAsNoLongerNeeded(83@)
Car.MarkAsNoLongerNeeded(84@)
Car.MarkAsNoLongerNeeded(86@)
Car.MarkAsNoLongerNeeded(87@)
Car.MarkAsNoLongerNeeded(88@)
Car.MarkAsNoLongerNeeded(89@)
Game.SwitchRandomTrains(True)
Streaming.UnloadSpecialCharacter(1)
Streaming.MarkModelAsNoLongerNeeded(589)
Streaming.MarkModelAsNoLongerNeeded(567)
Streaming.MarkModelAsNoLongerNeeded(559)
Streaming.MarkModelAsNoLongerNeeded(458)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(405)
Streaming.MarkModelAsNoLongerNeeded(537)
Streaming.MarkModelAsNoLongerNeeded(569)
Streaming.MarkModelAsNoLongerNeeded(24)
Streaming.MarkModelAsNoLongerNeeded(404)
Blip.Remove(107@)
Blip.Remove(118@)
Blip.Remove(108@)
43@ = 0

:STEAL4_31200
if 
  6 > 43@
goto_if_false @STEAL4_31241
Blip.Remove(112@(43@,6i))
43@ += 1
goto @STEAL4_31200

:STEAL4_31241
Blip.Remove(119@)
Blip.Remove(109@)
Blip.Remove(110@)
Blip.Remove(120@)
Blip.Remove(121@)
DecisionMaker.Remove(168@)
DecisionMaker.Remove(171@)
DecisionMaker.Remove(172@)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SetWantedMultiplier(1.0)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

:STEAL4_31318
switch_start 153@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @STEAL4_31479 {caseNum1} 1 {caseLabel1} @STEAL4_31381 {caseNum2} 2 {caseLabel2} @STEAL4_31395 {caseNum3} 3 {caseLabel3} @STEAL4_31409 {caseNum4} 4 {caseLabel4} @STEAL4_31423 {caseNum5} 5 {caseLabel5} @STEAL4_31437 {caseNum6} 6 {caseLabel6} @STEAL4_31451 {caseNum7} 7 {caseLabel7} @STEAL4_31465

:STEAL4_31381
gosub @STEAL4_31513
goto @STEAL4_31511

:STEAL4_31395
gosub @STEAL4_32003
goto @STEAL4_31511

:STEAL4_31409
gosub @STEAL4_32605
goto @STEAL4_31511

:STEAL4_31423
gosub @STEAL4_33015
goto @STEAL4_31511

:STEAL4_31437
gosub @STEAL4_33374
goto @STEAL4_31511

:STEAL4_31451
gosub @STEAL4_34004
goto @STEAL4_31511

:STEAL4_31465
gosub @STEAL4_34545
goto @STEAL4_31511

:STEAL4_31479
if 
  154@ <> 0
goto_if_false @STEAL4_31504
154@ = 0

:STEAL4_31504
goto @STEAL4_31511

:STEAL4_31511
return 

:STEAL4_31513
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_31815 {caseNum1} 0 {caseLabel1} @STEAL4_31576 {caseNum2} 1 {caseLabel2} @STEAL4_31597 {caseNum3} 2 {caseLabel3} @STEAL4_31681 {caseNum4} 3 {caseLabel4} @STEAL4_31765 {caseNum5} 4 {caseLabel5} @STEAL4_31779 {caseNum6} -1 {caseLabel6} @STEAL4_31815 {caseNum7} -1 {caseLabel7} @STEAL4_31815

:STEAL4_31576
188@ = 0
154@ = 1
goto @STEAL4_31815

:STEAL4_31597
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_31651
if 
  not Char.LocateAnyMeansChar2D($scplayer, 68@, 15.0, 15.0, False)
goto_if_false @STEAL4_31651
154@ = 2

:STEAL4_31651
if 
  Char.IsDead(68@)
goto_if_false @STEAL4_31674
154@ = 3

:STEAL4_31674
goto @STEAL4_31815

:STEAL4_31681
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_31735
if 
  Char.LocateAnyMeansChar2D($scplayer, 68@, 10.0, 10.0, False)
goto_if_false @STEAL4_31735
154@ = 1

:STEAL4_31735
if 
  Char.IsDead(68@)
goto_if_false @STEAL4_31758
154@ = 3

:STEAL4_31758
goto @STEAL4_31815

:STEAL4_31765
153@ = 0
goto @STEAL4_31815

:STEAL4_31779
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_31808
154@ = 3
153@ = 0

:STEAL4_31808
goto @STEAL4_31815

:STEAL4_31815
switch_start 155@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @STEAL4_31980 {caseNum1} 0 {caseLabel1} @STEAL4_31878 {caseNum2} 1 {caseLabel2} @STEAL4_31929 {caseNum3} -1 {caseLabel3} @STEAL4_32001 {caseNum4} -1 {caseLabel4} @STEAL4_32001 {caseNum5} -1 {caseLabel5} @STEAL4_32001 {caseNum6} -1 {caseLabel6} @STEAL4_32001 {caseNum7} -1 {caseLabel7} @STEAL4_32001

:STEAL4_31878
set_lvar_text_label 183@s = 'STL4_AA'
set_lvar_int_to_constant 185@ = 5200
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_32001

:STEAL4_31929
set_lvar_text_label 183@s = 'STL4_AB'
set_lvar_int_to_constant 185@ = 5224
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_32001

:STEAL4_31980
154@ = 3
gosub @STEAL4_35140
goto @STEAL4_32001

:STEAL4_32001
return 

:STEAL4_32003
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_32315 {caseNum1} 0 {caseLabel1} @STEAL4_32066 {caseNum2} 1 {caseLabel2} @STEAL4_32087 {caseNum3} 2 {caseLabel3} @STEAL4_32176 {caseNum4} 3 {caseLabel4} @STEAL4_32265 {caseNum5} 4 {caseLabel5} @STEAL4_32279 {caseNum6} -1 {caseLabel6} @STEAL4_32315 {caseNum7} -1 {caseLabel7} @STEAL4_32315

:STEAL4_32066
188@ = 0
154@ = 1
goto @STEAL4_32315

:STEAL4_32087
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_32146
if 
  not Char.LocateAnyMeansChar3D(68@, $scplayer, 5.0, 5.0, 5.0, False)
goto_if_false @STEAL4_32146
154@ = 2

:STEAL4_32146
if 
  Char.IsDead(68@)
goto_if_false @STEAL4_32169
154@ = 3

:STEAL4_32169
goto @STEAL4_32315

:STEAL4_32176
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_32235
if 
  Char.LocateAnyMeansChar3D(68@, $scplayer, 5.0, 5.0, 5.0, False)
goto_if_false @STEAL4_32235
154@ = 1

:STEAL4_32235
if 
  Char.IsDead(68@)
goto_if_false @STEAL4_32258
154@ = 3

:STEAL4_32258
goto @STEAL4_32315

:STEAL4_32265
153@ = 0
goto @STEAL4_32315

:STEAL4_32279
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_32308
154@ = 3
153@ = 0

:STEAL4_32308
goto @STEAL4_32315

:STEAL4_32315
switch_start 155@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @STEAL4_32582 {caseNum1} 0 {caseLabel1} @STEAL4_32378 {caseNum2} 1 {caseLabel2} @STEAL4_32429 {caseNum3} 2 {caseLabel3} @STEAL4_32480 {caseNum4} 3 {caseLabel4} @STEAL4_32531 {caseNum5} -1 {caseLabel5} @STEAL4_32603 {caseNum6} -1 {caseLabel6} @STEAL4_32603 {caseNum7} -1 {caseLabel7} @STEAL4_32603

:STEAL4_32378
set_lvar_text_label 183@s = 'STL4_BA'
set_lvar_int_to_constant 185@ = 5201
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_32603

:STEAL4_32429
set_lvar_text_label 183@s = 'STL4_BB'
set_lvar_int_to_constant 185@ = 5225
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_32603

:STEAL4_32480
set_lvar_text_label 183@s = 'STL4_BC'
set_lvar_int_to_constant 185@ = 5202
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_32603

:STEAL4_32531
set_lvar_text_label 183@s = 'STL4_BD'
set_lvar_int_to_constant 185@ = 5226
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_32603

:STEAL4_32582
154@ = 3
gosub @STEAL4_35140
goto @STEAL4_32603

:STEAL4_32603
return 

:STEAL4_32605
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_32776 {caseNum1} 0 {caseLabel1} @STEAL4_32668 {caseNum2} 1 {caseLabel2} @STEAL4_32689 {caseNum3} 2 {caseLabel3} @STEAL4_32719 {caseNum4} 3 {caseLabel4} @STEAL4_32726 {caseNum5} 4 {caseLabel5} @STEAL4_32740 {caseNum6} -1 {caseLabel6} @STEAL4_32776 {caseNum7} -1 {caseLabel7} @STEAL4_32776

:STEAL4_32668
188@ = 0
154@ = 1
goto @STEAL4_32776

:STEAL4_32689
if 
  Char.IsDead(68@)
goto_if_false @STEAL4_32712
154@ = 3

:STEAL4_32712
goto @STEAL4_32776

:STEAL4_32719
goto @STEAL4_32776

:STEAL4_32726
153@ = 0
goto @STEAL4_32776

:STEAL4_32740
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_32769
154@ = 3
153@ = 0

:STEAL4_32769
goto @STEAL4_32776

:STEAL4_32776
switch_start 155@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @STEAL4_32992 {caseNum1} 0 {caseLabel1} @STEAL4_32839 {caseNum2} 1 {caseLabel2} @STEAL4_32890 {caseNum3} 2 {caseLabel3} @STEAL4_32941 {caseNum4} -1 {caseLabel4} @STEAL4_33013 {caseNum5} -1 {caseLabel5} @STEAL4_33013 {caseNum6} -1 {caseLabel6} @STEAL4_33013 {caseNum7} -1 {caseLabel7} @STEAL4_33013

:STEAL4_32839
set_lvar_text_label 183@s = 'STL4_CA'
set_lvar_int_to_constant 185@ = 5203
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_33013

:STEAL4_32890
set_lvar_text_label 183@s = 'STL4_CB'
set_lvar_int_to_constant 185@ = 5227
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_33013

:STEAL4_32941
set_lvar_text_label 183@s = 'STL4_CC'
set_lvar_int_to_constant 185@ = 5204
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_33013

:STEAL4_32992
154@ = 3
gosub @STEAL4_35140
goto @STEAL4_33013

:STEAL4_33013
return 

:STEAL4_33015
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_33186 {caseNum1} 0 {caseLabel1} @STEAL4_33078 {caseNum2} 1 {caseLabel2} @STEAL4_33099 {caseNum3} 2 {caseLabel3} @STEAL4_33129 {caseNum4} 3 {caseLabel4} @STEAL4_33136 {caseNum5} 4 {caseLabel5} @STEAL4_33150 {caseNum6} -1 {caseLabel6} @STEAL4_33186 {caseNum7} -1 {caseLabel7} @STEAL4_33186

:STEAL4_33078
188@ = 0
154@ = 1
goto @STEAL4_33186

:STEAL4_33099
if 
  Char.IsDead(68@)
goto_if_false @STEAL4_33122
154@ = 3

:STEAL4_33122
goto @STEAL4_33186

:STEAL4_33129
goto @STEAL4_33186

:STEAL4_33136
153@ = 0
goto @STEAL4_33186

:STEAL4_33150
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_33179
154@ = 3
153@ = 0

:STEAL4_33179
goto @STEAL4_33186

:STEAL4_33186
switch_start 155@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @STEAL4_33351 {caseNum1} 0 {caseLabel1} @STEAL4_33249 {caseNum2} 1 {caseLabel2} @STEAL4_33300 {caseNum3} -1 {caseLabel3} @STEAL4_33372 {caseNum4} -1 {caseLabel4} @STEAL4_33372 {caseNum5} -1 {caseLabel5} @STEAL4_33372 {caseNum6} -1 {caseLabel6} @STEAL4_33372 {caseNum7} -1 {caseLabel7} @STEAL4_33372

:STEAL4_33249
set_lvar_text_label 183@s = 'STL4_DA'
set_lvar_int_to_constant 185@ = 5228
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_33372

:STEAL4_33300
set_lvar_text_label 183@s = 'STL4_DB'
set_lvar_int_to_constant 185@ = 5205
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_33372

:STEAL4_33351
154@ = 3
gosub @STEAL4_35140
goto @STEAL4_33372

:STEAL4_33372
return 

:STEAL4_33374
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_33714 {caseNum1} 0 {caseLabel1} @STEAL4_33437 {caseNum2} 1 {caseLabel2} @STEAL4_33458 {caseNum3} 2 {caseLabel3} @STEAL4_33568 {caseNum4} 3 {caseLabel4} @STEAL4_33664 {caseNum5} 4 {caseLabel5} @STEAL4_33678 {caseNum6} -1 {caseLabel6} @STEAL4_33714 {caseNum7} -1 {caseLabel7} @STEAL4_33714

:STEAL4_33437
188@ = 0
154@ = 1
goto @STEAL4_33714

:STEAL4_33458
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @STEAL4_33488
154@ = 2
goto @STEAL4_33538

:STEAL4_33488
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_33538
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  not Char.IsInCar(68@, $car)
goto_if_false @STEAL4_33538
154@ = 2

:STEAL4_33538
if 
  Char.IsDead(68@)
goto_if_false @STEAL4_33561
154@ = 3

:STEAL4_33561
goto @STEAL4_33714

:STEAL4_33568
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @STEAL4_33634
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_33634
if 
  Char.IsInCar(68@, $car)
goto_if_false @STEAL4_33634
154@ = 1

:STEAL4_33634
if 
  Char.IsDead(68@)
goto_if_false @STEAL4_33657
154@ = 3

:STEAL4_33657
goto @STEAL4_33714

:STEAL4_33664
153@ = 0
goto @STEAL4_33714

:STEAL4_33678
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_33707
154@ = 3
153@ = 0

:STEAL4_33707
goto @STEAL4_33714

:STEAL4_33714
switch_start 155@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @STEAL4_33981 {caseNum1} 0 {caseLabel1} @STEAL4_33777 {caseNum2} 1 {caseLabel2} @STEAL4_33828 {caseNum3} 2 {caseLabel3} @STEAL4_33879 {caseNum4} 3 {caseLabel4} @STEAL4_33930 {caseNum5} -1 {caseLabel5} @STEAL4_34002 {caseNum6} -1 {caseLabel6} @STEAL4_34002 {caseNum7} -1 {caseLabel7} @STEAL4_34002

:STEAL4_33777
set_lvar_text_label 183@s = 'STL4_LA'
set_lvar_int_to_constant 185@ = 5235
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34002

:STEAL4_33828
set_lvar_text_label 183@s = 'STL4_LB'
set_lvar_int_to_constant 185@ = 5217
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34002

:STEAL4_33879
set_lvar_text_label 183@s = 'STL4_LC'
set_lvar_int_to_constant 185@ = 5218
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34002

:STEAL4_33930
set_lvar_text_label 183@s = 'STL4_LD'
set_lvar_int_to_constant 185@ = 5229
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34002

:STEAL4_33981
154@ = 3
gosub @STEAL4_35140
goto @STEAL4_34002

:STEAL4_34002
return 

:STEAL4_34004
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_34255 {caseNum1} 0 {caseLabel1} @STEAL4_34067 {caseNum2} 1 {caseLabel2} @STEAL4_34088 {caseNum3} 2 {caseLabel3} @STEAL4_34198 {caseNum4} 3 {caseLabel4} @STEAL4_34205 {caseNum5} 4 {caseLabel5} @STEAL4_34219 {caseNum6} -1 {caseLabel6} @STEAL4_34255 {caseNum7} -1 {caseLabel7} @STEAL4_34255

:STEAL4_34067
188@ = 0
154@ = 1
goto @STEAL4_34255

:STEAL4_34088
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @STEAL4_34118
154@ = 3
goto @STEAL4_34168

:STEAL4_34118
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_34168
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  not Char.IsInCar(68@, $car)
goto_if_false @STEAL4_34168
154@ = 3

:STEAL4_34168
if 
  Char.IsDead(68@)
goto_if_false @STEAL4_34191
154@ = 3

:STEAL4_34191
goto @STEAL4_34255

:STEAL4_34198
goto @STEAL4_34255

:STEAL4_34205
153@ = 0
goto @STEAL4_34255

:STEAL4_34219
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_34248
154@ = 3
153@ = 0

:STEAL4_34248
goto @STEAL4_34255

:STEAL4_34255
switch_start 155@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @STEAL4_34522 {caseNum1} 0 {caseLabel1} @STEAL4_34318 {caseNum2} 1 {caseLabel2} @STEAL4_34369 {caseNum3} 2 {caseLabel3} @STEAL4_34420 {caseNum4} 3 {caseLabel4} @STEAL4_34471 {caseNum5} -1 {caseLabel5} @STEAL4_34543 {caseNum6} -1 {caseLabel6} @STEAL4_34543 {caseNum7} -1 {caseLabel7} @STEAL4_34543

:STEAL4_34318
set_lvar_text_label 183@s = 'STL4_LA'
set_lvar_int_to_constant 185@ = 5235
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34543

:STEAL4_34369
set_lvar_text_label 183@s = 'STL4_LB'
set_lvar_int_to_constant 185@ = 5217
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34543

:STEAL4_34420
set_lvar_text_label 183@s = 'STL4_LC'
set_lvar_int_to_constant 185@ = 5218
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34543

:STEAL4_34471
set_lvar_text_label 183@s = 'STL4_LD'
set_lvar_int_to_constant 185@ = 5229
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_34543

:STEAL4_34522
154@ = 3
gosub @STEAL4_35140
goto @STEAL4_34543

:STEAL4_34543
return 

:STEAL4_34545
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_34796 {caseNum1} 0 {caseLabel1} @STEAL4_34608 {caseNum2} 1 {caseLabel2} @STEAL4_34629 {caseNum3} 2 {caseLabel3} @STEAL4_34739 {caseNum4} 3 {caseLabel4} @STEAL4_34746 {caseNum5} 4 {caseLabel5} @STEAL4_34760 {caseNum6} -1 {caseLabel6} @STEAL4_34796 {caseNum7} -1 {caseLabel7} @STEAL4_34796

:STEAL4_34608
188@ = 0
154@ = 1
goto @STEAL4_34796

:STEAL4_34629
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @STEAL4_34659
154@ = 3
goto @STEAL4_34709

:STEAL4_34659
if 
  not Char.IsDead(68@)
goto_if_false @STEAL4_34709
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  not Char.IsInCar(68@, $car)
goto_if_false @STEAL4_34709
154@ = 3

:STEAL4_34709
if 
  Char.IsDead(68@)
goto_if_false @STEAL4_34732
154@ = 3

:STEAL4_34732
goto @STEAL4_34796

:STEAL4_34739
goto @STEAL4_34796

:STEAL4_34746
153@ = 0
goto @STEAL4_34796

:STEAL4_34760
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_34789
154@ = 3
153@ = 0

:STEAL4_34789
goto @STEAL4_34796

:STEAL4_34796
switch_start 155@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @STEAL4_35063 {caseNum1} 0 {caseLabel1} @STEAL4_34859 {caseNum2} 1 {caseLabel2} @STEAL4_34910 {caseNum3} 2 {caseLabel3} @STEAL4_34961 {caseNum4} 3 {caseLabel4} @STEAL4_35012 {caseNum5} -1 {caseLabel5} @STEAL4_35084 {caseNum6} -1 {caseLabel6} @STEAL4_35084 {caseNum7} -1 {caseLabel7} @STEAL4_35084

:STEAL4_34859
set_lvar_text_label 183@s = 'STL4_MA'
set_lvar_int_to_constant 185@ = 5219
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_35084

:STEAL4_34910
set_lvar_text_label 183@s = 'STL4_MB'
set_lvar_int_to_constant 185@ = 5220
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_35084

:STEAL4_34961
set_lvar_text_label 183@s = 'STL4_MC'
set_lvar_int_to_constant 185@ = 5221
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_35084

:STEAL4_35012
set_lvar_text_label 183@s = 'STL4_MD'
set_lvar_int_to_constant 185@ = 5231
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35140
goto @STEAL4_35084

:STEAL4_35063
154@ = 3
gosub @STEAL4_35140
goto @STEAL4_35084

:STEAL4_35084
return 
if 
  153@ <> 0
goto_if_false @STEAL4_35111
154@ = 4

:STEAL4_35111
return 

:STEAL4_35113
if 
  153@ <> 0
goto_if_false @STEAL4_35138
154@ = 3

:STEAL4_35138
return 

:STEAL4_35140
if 
  154@ <> 3
goto_if_false @STEAL4_35493
switch_start 188@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @STEAL4_35486 {caseNum1} -1 {caseLabel1} @STEAL4_35221 {caseNum2} 0 {caseLabel2} @STEAL4_35252 {caseNum3} 1 {caseLabel3} @STEAL4_35293 {caseNum4} 2 {caseLabel4} @STEAL4_35336 {caseNum5} 3 {caseLabel5} @STEAL4_35411 {caseNum6} 4 {caseLabel6} @STEAL4_35447 {caseNum7} -1 {caseLabel7} @STEAL4_35486

:STEAL4_35221
186@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
goto @STEAL4_35486

:STEAL4_35252
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 185@)
if 
  not Char.IsDead(186@)
goto_if_false @STEAL4_35279

:STEAL4_35279
188@ += 1
goto @STEAL4_35486

:STEAL4_35293
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_35329
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(183@s, 3000, 1)
188@ += 1

:STEAL4_35329
goto @STEAL4_35486

:STEAL4_35336
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_35365
188@ += 1
goto @STEAL4_35404

:STEAL4_35365
if 
  Char.DoesExist(186@)
goto_if_false @STEAL4_35404
if 
  Char.IsDead(186@)
goto_if_false @STEAL4_35404
188@ += 1

:STEAL4_35404
goto @STEAL4_35486

:STEAL4_35411
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
if 
  not Char.IsDead(186@)
goto_if_false @STEAL4_35433

:STEAL4_35433
188@ += 1
goto @STEAL4_35486

:STEAL4_35447
if 
  154@ <> 2
goto_if_false @STEAL4_35479
155@ += 1
188@ = 0

:STEAL4_35479
goto @STEAL4_35486

:STEAL4_35486
goto @STEAL4_35550

:STEAL4_35493
if 
  188@ <> 0
goto_if_false @STEAL4_35515
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)

:STEAL4_35515
if 
  not Char.IsDead(186@)
goto_if_false @STEAL4_35531

:STEAL4_35531
Text.ClearThisPrint(183@s)
188@ = 0
155@ = 0

:STEAL4_35550
return 

:STEAL4_35552
switch_start 194@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_35910 {caseNum1} -1 {caseLabel1} @STEAL4_35615 {caseNum2} 0 {caseLabel2} @STEAL4_35646 {caseNum3} 1 {caseLabel3} @STEAL4_35694 {caseNum4} 2 {caseLabel4} @STEAL4_35794 {caseNum5} 3 {caseLabel5} @STEAL4_35869 {caseNum6} -1 {caseLabel6} @STEAL4_35910 {caseNum7} -1 {caseLabel7} @STEAL4_35910

:STEAL4_35615
192@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
goto @STEAL4_35910

:STEAL4_35646
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 191@)
if 
  not Char.IsDead(192@)
goto_if_false @STEAL4_35680
Char.DisableSpeech(192@, False)

:STEAL4_35680
194@ += 1
goto @STEAL4_35910

:STEAL4_35694
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_35787
if 
  not Char.IsDead(192@)
goto_if_false @STEAL4_35766
if 
  not Char.IsTalking(192@)
goto_if_false @STEAL4_35766
if 
  193@ == 1
goto_if_false @STEAL4_35766
Audio.AttachMissionAudioToChar(MissionAudioSlot.Slot1, 192@)

:STEAL4_35766
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(189@s, 10000, 1)
194@ += 1

:STEAL4_35787
goto @STEAL4_35910

:STEAL4_35794
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @STEAL4_35823
194@ += 1
goto @STEAL4_35862

:STEAL4_35823
if 
  Char.DoesExist(192@)
goto_if_false @STEAL4_35862
if 
  Char.IsDead(192@)
goto_if_false @STEAL4_35862
194@ += 1

:STEAL4_35862
goto @STEAL4_35910

:STEAL4_35869
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
if 
  not Char.IsDead(192@)
goto_if_false @STEAL4_35896
Char.EnableSpeech(192@)

:STEAL4_35896
194@ += 1
goto @STEAL4_35910

:STEAL4_35910
return 

//-------------Mission 70---------------
// Originally: Puncture Wounds

:STEAL5
script_name 'STEAL5'
gosub @STEAL5_47
if 
  has_deatharrest_been_executed 
goto_if_false @STEAL5_38
gosub @STEAL5_5101

:STEAL5_38
gosub @STEAL5_5197
terminate_this_script 

:STEAL5_47
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('STEAL5')
if 
  $onmission == 0
goto_if_false @STEAL5_128
36@ = Object.Create(#TEMP_STINGER2, -2025.8, 169.2, 27.7)
40@ = Blip.AddForCoord(-2025.8, 169.2, 27.7)

:STEAL5_128
Text.ClearPrints
wait 0
41@ = 0
42@ = 0
43@ = 0
44@ = 0
45@ = 0
$buddy_health = 3
46@ = 0
47@ = 0
48@ = 0
49@ = 0
50@ = 0
79@ = 0.0
80@ = 0.0
81@ = 0.0
82@ = 0.0
83@ = 0.0
84@ = 0.0
85@ = 0.0
86@ = 0.0
87@ = 0.0
88@ = 0.0
51@ = 0
52@ = 0
53@ = 0
54@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
Player.MakeGangDisappear
Streaming.SetAreaVisible(1)
Char.SetAreaVisible($scplayer, 1)
Streaming.LoadScene(-2031.0, 149.0, 29.0)
Cutscene.Load('STEAL_5')

:STEAL5_422
if 
  not Cutscene.HasLoaded
goto_if_false @STEAL5_446
wait 0
goto @STEAL5_422

:STEAL5_446
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:STEAL5_455
if 
  not Cutscene.HasFinished
goto_if_false @STEAL5_479
wait 0
goto @STEAL5_455

:STEAL5_479
Camera.DoFade(0, Fade.Out)

:STEAL5_485
if 
  Camera.GetFadingStatus
goto_if_false @STEAL5_509
wait 0
goto @STEAL5_485

:STEAL5_509
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($scplayer, 0)
Cutscene.Clear
Player.SetControl($player1, False)
Player.MakeGangReappear
Camera.SetFadingColor(0, 0, 0)
wait 0
Streaming.RequestModel(561)
Streaming.RequestModel(549)
Streaming.RequestModel(40)
Streaming.RequestModel(#TEMP_STINGER2)
Streaming.RequestModel(330)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 1822)

:STEAL5_574
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @STEAL5_600
wait 0
goto @STEAL5_574

:STEAL5_600
Streaming.LoadAllModelsNow
World.ClearArea(-2025.8, 169.2, 27.7, 5.0, True)
set_lvar_int_to_constant 49@ = 549
gosub @STEAL5_7260
39@ = Car.Create(549, -2025.8, 169.2, 27.7)
World.ClearArea(-1913.5, -593.8, 36.9, 5.0, True)
set_lvar_int_to_constant 49@ = 561
gosub @STEAL5_7260
34@ = Car.Create(561, -1913.5, -593.8, 36.9)
Car.SetHeading(34@, 180.0)
Car.SetCanRespray(34@, False)
Car.SetCanGoAgainstTraffic(34@, True)
Car.LockDoors(34@, CarLock.LockoutPlayerOnly)
Car.SetLoadCollisionFlag(34@, False)
40@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(40@, False)
45@ = 1
Car.SetDrivingStyle(34@, DrivingMode.AvoidCars)
Car.SetOnlyDamagedByPlayer(34@, True)
StuckCarCheck.AddWithWarp(34@, 0.5, 4000, True, True, True, 7)
35@ = Char.CreateInsideCar(34@, PedType.CivFemale, 40)
Char.SetLoadCollisionFlag(35@, True)
Char.SetCanBeShotInVehicle(35@, False)
Hud.DisplayCounterWithString($buddy_health, CounterDisplay.Number, 'STE5_04')
Text.PrintNow('STE5_12', 7000, 1)
World.ClearArea(-2028.6, 162.9, 27.8, 1.0, True)
Char.SetCoordinates($scplayer, -2028.6, 162.9, 27.8)
Char.SetHeading($scplayer, 336.6)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Garage.ChangeType('AMUMIS', GarageType.ForScriptToOpenAndClose)
Camera.DoFade(500, Fade.In)
TIMERB = 0

:STEAL5_971
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @STEAL5_997
goto @STEAL5_5119

:STEAL5_997
gosub @STEAL5_5305
if 
  44@ == 1
goto_if_false @STEAL5_1029
goto @STEAL5_5101

:STEAL5_1029
if 
  41@ == 0
goto_if_false @STEAL5_1072
if 
  47@ == 1
goto_if_false @STEAL5_1072
gosub @STEAL5_5407

:STEAL5_1072
if 
  41@ == 0
goto_if_false @STEAL5_1735
if 
  45@ == 1
goto_if_false @STEAL5_1191
if 
  not Char.IsInCar($scplayer, 39@)
goto_if_false @STEAL5_1191
Blip.Remove(40@)
40@ = Blip.AddForCar(39@)
Blip.SetAsFriendly(40@, True)
if 
  TIMERB > 14000
goto_if_false @STEAL5_1182
Text.PrintNow('STE5_06', 4000, 1)

:STEAL5_1182
Text.ClearHelp
45@ = 0

:STEAL5_1191
if 
  45@ == 0
goto_if_false @STEAL5_1290
if 
  Char.IsInCar($scplayer, 39@)
goto_if_false @STEAL5_1290
Blip.Remove(40@)
40@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(40@, False)
if 
  TIMERB > 14000
goto_if_false @STEAL5_1283
Text.PrintNow('STE5_07', 4000, 1)

:STEAL5_1283
45@ = 1

:STEAL5_1290
if 
  TIMERB > 14000
goto_if_false @STEAL5_1395
if 
  $buddy_health == 3
goto_if_false @STEAL5_1393
if 
  Char.IsInCar($scplayer, 39@)
goto_if_false @STEAL5_1377
if 
  not Game.IsMinigameInProgress
goto_if_false @STEAL5_1370
Text.PrintHelpForever('STE5_03')

:STEAL5_1370
goto @STEAL5_1379

:STEAL5_1377
Text.ClearHelp

:STEAL5_1379
47@ = 1
goto @STEAL5_1395

:STEAL5_1393
Text.ClearHelp

:STEAL5_1395
if 
  $buddy_health == 0
goto_if_false @STEAL5_1457
if 
  TIMERA > 5000
goto_if_false @STEAL5_1457
Text.ClearPrints
Text.PrintNow('STE5_05', 4000, 1)
goto @STEAL5_5101

:STEAL5_1457
gosub @STEAL5_6323
gosub @STEAL5_6447
gosub @STEAL5_6502
if 
  42@ == 0
goto_if_false @STEAL5_1563
if 
  Char.IsInCar($scplayer, 39@)
goto_if_false @STEAL5_1563
Text.PrintNow('STE5_01', 7000, 1)
Text.PrintWithNumber('STE5_02', 3, 7000, 1)
TIMERB = 0
42@ = 1

:STEAL5_1563
if 
  42@ == 1
goto_if_false @STEAL5_1735
if 
  Car.IsTireBurst(34@, 2)
goto_if_false @STEAL5_1735
Car.LockDoors(34@, CarLock.Unlocked)
StuckCarCheck.Remove(34@)
if 
  not Char.IsDead(35@)
goto_if_false @STEAL5_1735
89@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.SmartFleeChar(-1, $scplayer, 100.0, 100000)
Sequence.Close(89@)
Char.PerformSequence(35@, 89@)
Sequence.Clear(89@)
Blip.Remove(40@)
40@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(40@, True)
Car.SetWatertight(34@, False)
Text.PrintNow('STE5_13', 7000, 1)
TIMERA = 0
42@ = 0
41@ = 1

:STEAL5_1735
if 
  41@ == 1
goto_if_false @STEAL5_2834
if 
  42@ == 0
goto_if_false @STEAL5_1832
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @STEAL5_1825
if 
  Char.LocateAnyMeansCar2D($scplayer, 34@, 5.0, 5.0, False)
goto_if_false @STEAL5_1825
42@ = 1

:STEAL5_1825
gosub @STEAL5_5407

:STEAL5_1832
if 
  42@ == 1
goto_if_false @STEAL5_1956
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Text.ClearPrints
51@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.ShutAllCharsUp(True)
43@ = 1
skip_cutscene_start_internal @STEAL5_2405
Task.UseMobilePhone($scplayer, True)
Text.ClearHelp
Hud.ClearCounter($buddy_health)
51@ = 3
53@ = 0
gosub @STEAL5_8491
TIMERA = 0
42@ = 2

:STEAL5_1956
if 
  42@ == 2
goto_if_false @STEAL5_2039
if 
  TIMERA > 2000
goto_if_false @STEAL5_2039
if 
  51@ == 0
goto_if_false @STEAL5_2039
51@ = 1
53@ = 0
gosub @STEAL5_8491
42@ = 3

:STEAL5_2039
if 
  42@ == 3
goto_if_false @STEAL5_2089
if 
  51@ == 0
goto_if_false @STEAL5_2089
Task.UseMobilePhone($scplayer, False)
42@ = 4

:STEAL5_2089
if 
  42@ == 4
goto_if_false @STEAL5_2293
$task_status = Char.GetScriptTaskStatus($scplayer, 1833)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL5_2293
89@ = Sequence.Open()
Task.GotoCar(-1, 34@, -2, 1.0)
Sequence.Close(89@)
Char.PerformSequence($scplayer, 89@)
Sequence.Clear(89@)
Audio.SetMusicDoesFade(False)
Text.DrawSubtitlesBeforeFade(False)
Camera.DoFade(700, Fade.Out)

:STEAL5_2188
if 
  Camera.GetFadingStatus
goto_if_false @STEAL5_2212
wait 0
goto @STEAL5_2188

:STEAL5_2212
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 36400)

:STEAL5_2221
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @STEAL5_2247
wait 0
goto @STEAL5_2221

:STEAL5_2247
gosub @STEAL5_5305
if 
  44@ == 1
goto_if_false @STEAL5_2279
goto @STEAL5_5101

:STEAL5_2279
TIMERA = 0
42@ = 5

:STEAL5_2293
if 
  42@ == 5
goto_if_false @STEAL5_2362
if 
  TIMERA > 1000
goto_if_false @STEAL5_2362
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
51@ = 2
53@ = 0
gosub @STEAL5_8491
42@ = 6

:STEAL5_2362
if 
  42@ == 6
goto_if_false @STEAL5_2834
if 
  51@ == 0
goto_if_false @STEAL5_2834
43@ = 0

:STEAL5_2405
skip_cutscene_end 
gosub @STEAL5_5305
if 
  44@ == 1
goto_if_false @STEAL5_2439
goto @STEAL5_5101

:STEAL5_2439
Audio.SetMusicDoesFade(True)
Text.DrawSubtitlesBeforeFade(True)
if 
  43@ == 1
goto_if_false @STEAL5_2547
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
51@ = 0
Camera.DoFade(500, Fade.Out)

:STEAL5_2489
if 
  Camera.GetFadingStatus
goto_if_false @STEAL5_2513
wait 0
goto @STEAL5_2489

:STEAL5_2513
gosub @STEAL5_5305
if 
  44@ == 1
goto_if_false @STEAL5_2545
goto @STEAL5_5101

:STEAL5_2545
Text.ClearPrints

:STEAL5_2547
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Char.ClearTasksImmediately($scplayer)
Char.Delete(35@)
if 
  not Car.IsDead(34@)
goto_if_false @STEAL5_2620
Char.WarpIntoCar($scplayer, 34@)
Car.SetOnlyDamagedByPlayer(34@, False)
Car.FixTire(34@, 2)
Car.FixTire(34@, 0)
Car.FixTire(34@, 1)
Car.FixTire(34@, 3)

:STEAL5_2620
Object.Delete(36@)
83@, 84@, 85@ = Char.GetCoordinates($scplayer)
Streaming.LoadScene(83@, 84@, 85@)
Car.MarkAsNoLongerNeeded(39@)
Char.MarkAsNoLongerNeeded(35@)
Streaming.MarkModelAsNoLongerNeeded(549)
Streaming.MarkModelAsNoLongerNeeded(40)
Streaming.MarkModelAsNoLongerNeeded(#TEMP_STINGER2)
Car.SetOnlyDamagedByPlayer(34@, False)
Game.ShutAllCharsUp(False)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Blip.Remove(40@)
40@ = Blip.AddForCoord(-2026.9, 179.1, 27.5)
45@ = 1
Text.ClearPrints
Text.PrintNow('STE5_11', 7000, 1)
Camera.DoFade(500, Fade.In)

:STEAL5_2764
if 
  Camera.GetFadingStatus
goto_if_false @STEAL5_2788
wait 0
goto @STEAL5_2764

:STEAL5_2788
gosub @STEAL5_5305
if 
  44@ == 1
goto_if_false @STEAL5_2820
goto @STEAL5_5101

:STEAL5_2820
42@ = 0
41@ = 2

:STEAL5_2834
if 
  41@ == 2
goto_if_false @STEAL5_4230
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @STEAL5_2913
if 
  not Car.IsDead(34@)
goto_if_false @STEAL5_2913
Car.SetCoordinates(34@, -2011.8, 176.5, 26.6)
Car.SetHeading(34@, 97.7)

:STEAL5_2913
if 
  42@ == 0
goto_if_false @STEAL5_3385
if 
  not Car.IsDead(34@)
goto_if_false @STEAL5_3385
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @STEAL5_3385
if 
  Char.LocateInCar3D($scplayer, -2033.1, 178.6, 27.8, 4.0, 4.0, 4.0, True)
goto_if_false @STEAL5_3385
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:STEAL5_3028
if 
  Camera.GetFadingStatus
goto_if_false @STEAL5_3052
wait 0
goto @STEAL5_3028

:STEAL5_3052
Streaming.SetAreaVisible(1)
Blip.Remove(40@)
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
51@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.SetAreaVisible($scplayer, 1)
World.ClearArea(-2033.3, 179.1, 27.4, 25.0, True)
if 
  not Car.IsDead(34@)
goto_if_false @STEAL5_3180
Car.SetAreaVisible(34@, 1)
Car.SetCoordinates(34@, -2033.3, 179.1, 27.4)
Car.SetHeading(34@, 90.8)

:STEAL5_3180
Streaming.LoadSceneInDirection(-2048.1, 178.0, 28.8, 270.0)
Camera.SetFixedPosition(-2048.1, 178.0, 28.8, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2037.9, 178.8, 27.4, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)

:STEAL5_3260
if 
  Camera.GetFadingStatus
goto_if_false @STEAL5_3284
wait 0
goto @STEAL5_3260

:STEAL5_3284
Garage.Open('HBGDSFS')

:STEAL5_3295
if 
  not Garage.IsOpen('HBGDSFS')
goto_if_false @STEAL5_3328
wait 0
goto @STEAL5_3295

:STEAL5_3328
if 
  not Car.IsDead(34@)
goto_if_false @STEAL5_3378
Task.CarDriveToCoord($scplayer, 34@, -2045.4, 178.3, 27.6, 10.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)

:STEAL5_3378
42@ = 1

:STEAL5_3385
if 
  42@ == 1
goto_if_false @STEAL5_3512
if 
  not Car.IsDead(34@)
goto_if_false @STEAL5_3512
$task_status = Char.GetScriptTaskStatus($scplayer, 1489)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL5_3512
89@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, -2035.471, 176.6342, 27.8359, MoveState.Walk, -1)
Sequence.Close(89@)
Char.PerformSequence($scplayer, 89@)
Sequence.Clear(89@)
TIMERA = 0
42@ = 2

:STEAL5_3512
if 
  42@ == 2
goto_if_false @STEAL5_4043
if 
  TIMERA > 2000
goto_if_false @STEAL5_4043
Camera.DoFade(500, Fade.Out)

:STEAL5_3556
if 
  Camera.GetFadingStatus
goto_if_false @STEAL5_3580
wait 0
goto @STEAL5_3556

:STEAL5_3580
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($scplayer, 0)
Streaming.LoadScene(-2045.4, 173.1, 27.8)
Streaming.LoadSceneInDirection(-2045.4, 173.1, 27.8, 309.5)
Text.ClearPrints
Char.ClearTasksImmediately($scplayer)
Car.Delete(34@)
World.ClearArea(-2027.2, 179.5, 27.8, 1.0, True)
Char.SetCoordinates($scplayer, -2027.2, 179.5, 27.8)
Char.SetHeading($scplayer, 275.9)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Garage.Close('HBGDSFS')

:STEAL5_3729
if 
  not Garage.IsClosed('HBGDSFS')
goto_if_false @STEAL5_3762
wait 0
goto @STEAL5_3729

:STEAL5_3762
$showroom_cash_pickup = Pickup.CreateProtection(-1969.463, 289.5335, 34.6719, $showroom_revenue, $showroom_revenue)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Streaming.LoadScene(-1980.301, 288.1622, 38.2246)
Camera.SetFixedPosition(-1980.301, 288.1622, 38.2246, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1979.313, 288.0155, 38.1743, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:STEAL5_3874
if 
  Camera.GetFadingStatus
goto_if_false @STEAL5_3898
wait 0
goto @STEAL5_3874

:STEAL5_3898
Audio.PlayMissionPassedTune(1)
Text.PrintBig('ASS_ACQ', 5000, TextStyle.WhiteMiddleSmaller)
wait 5000
Camera.SetFixedPosition(-1972.185, 291.1454, 35.7724, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1971.343, 290.6249, 35.6284, SwitchType.JumpCut)
Text.PrintWithNumberNow('ASS_LUV', $showroom_revenue, 6000, 1)
wait 6000
Camera.DoFade(500, Fade.Out)

:STEAL5_4005
if 
  Camera.GetFadingStatus
goto_if_false @STEAL5_4029
wait 0
goto @STEAL5_4005

:STEAL5_4029
Camera.DoFade(500, Fade.In)
goto @STEAL5_5119

:STEAL5_4043
if 
  45@ == 1
goto_if_false @STEAL5_4125
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @STEAL5_4125
Blip.Remove(40@)
40@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(40@, True)
Text.ClearPrints
Text.PrintNow('STE5_08', 4000, 1)
45@ = 0

:STEAL5_4125
if 
  45@ == 0
goto_if_false @STEAL5_4230
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @STEAL5_4230
Blip.Remove(40@)
if 
  42@ == 0
goto_if_false @STEAL5_4205
40@ = Blip.AddForCoord(-2033.1, 178.6, 27.8)

:STEAL5_4205
Text.ClearPrints
Text.PrintNow('STE5_11', 7000, 1)
45@ = 1

:STEAL5_4230
if 
  41@ == 10
goto_if_false @STEAL5_5087
ENTEXT_63()
if 
  $player_is_completely_safe == 1
goto_if_false @STEAL5_4790
if 
  50@ == 0
goto_if_false @STEAL5_4790
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:STEAL5_4300
if 
  Camera.GetFadingStatus
goto_if_false @STEAL5_4324
wait 0
goto @STEAL5_4300

:STEAL5_4324
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
51@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
World.ClearArea(-2125.5, -2467.5, 29.6, 1.0, True)
86@, 87@, 88@ = Char.GetCoordinates($scplayer)
Streaming.RequestCollision(-2125.5, -2467.5)
Streaming.LoadScene(-2125.5, -2467.5, 29.6)
Char.SetCoordinates($scplayer, -2125.5, -2467.5, 29.6)
if 
  not Char.IsDead(35@)
goto_if_false @STEAL5_4469
Char.ClearTasks(35@)

:STEAL5_4469
Streaming.RequestCollision(-2117.8, -2456.8)
Streaming.LoadScene(-2115.6, -2456.5, 30.6)
Streaming.LoadAllModelsNow
if 
  not Car.IsDead(34@)
goto_if_false @STEAL5_4575
StuckCarCheck.Remove(34@)
World.ClearArea(-2117.8, -2456.8, 29.3, 30.0, True)
Car.SetCoordinates(34@, -2117.8, -2456.8, 29.3)
Car.SetHeading(34@, 233.8)

:STEAL5_4575
Camera.SetFixedPosition(-2106.0, -2465.7, 30.8, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2112.2, -2461.1, 29.6, SwitchType.JumpCut)
Text.PrintNow('STE5_14', 5000, 1)
Camera.DoFade(500, Fade.In)

:STEAL5_4649
if 
  Camera.GetFadingStatus
goto_if_false @STEAL5_4673
wait 0
goto @STEAL5_4649

:STEAL5_4673
Garage.Open('AMUMIS')

:STEAL5_4684
if 
  not Garage.IsOpen('AMUMIS')
goto_if_false @STEAL5_4717
wait 0
goto @STEAL5_4684

:STEAL5_4717
if 
  not Char.IsDead(35@)
goto_if_false @STEAL5_4783
if 
  not Car.IsDead(34@)
goto_if_false @STEAL5_4783
Task.CarDriveToCoord(35@, 34@, -2108.0, -2464.2, 29.6, 10.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)

:STEAL5_4783
50@ = 1

:STEAL5_4790
if 
  50@ == 1
goto_if_false @STEAL5_5087
if 
  not Char.IsDead(35@)
goto_if_false @STEAL5_5087
$task_status = Char.GetScriptTaskStatus(35@, 1489)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL5_5087
Garage.Close('AMUMIS')

:STEAL5_4864
if 
  not Garage.IsClosed('AMUMIS')
goto_if_false @STEAL5_4897
wait 0
goto @STEAL5_4864

:STEAL5_4897
Camera.DoFade(500, Fade.Out)

:STEAL5_4904
if 
  Camera.GetFadingStatus
goto_if_false @STEAL5_4928
wait 0
goto @STEAL5_4904

:STEAL5_4928
Streaming.RequestCollision(86@, 87@)
88@ -= 1.0
Streaming.LoadScene(86@, 87@, 88@)
Streaming.LoadAllModelsNow
World.ClearArea(86@, 87@, 88@, 1.0, True)
Char.SetCoordinates($scplayer, 86@, 87@, 88@)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Text.ClearPrints
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Text.PrintNow('STE5_14', 5500, 1)
Camera.DoFade(500, Fade.In)

:STEAL5_5056
if 
  Camera.GetFadingStatus
goto_if_false @STEAL5_5080
wait 0
goto @STEAL5_5056

:STEAL5_5080
goto @STEAL5_5101

:STEAL5_5087
gosub @STEAL5_8773
goto @STEAL5_971

:STEAL5_5101
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:STEAL5_5119
$flag_steal_mission_counter += 1
Blip.Remove($steal_contact_blip)
CarGenerator.Switch($steal_car_cargen4, 101)
Text.ClearPrints
Text.PrintWithNumberBig('M_PASSS', 5000, 5000, TextStyle.Middle)
Player.AddScore($player1, 5000)
Stat.AwardPlayerMissionRespect(5)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Stat.RegisterMissionPassed('STEAL_5')
Stat.PlayerMadeProgress(1)
return 

:STEAL5_5197
if 
  is_var_text_label_empty s$shop_name
goto_if_false @STEAL5_5215
Camera.RestoreJumpcut

:STEAL5_5215
Audio.SetMusicDoesFade(True)
Blip.Remove(40@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Hud.ClearCounter($buddy_health)
if 
  not Char.IsDead($scplayer)
goto_if_false @STEAL5_5256
Char.ShutUpForScriptedSpeech($scplayer, False)

:STEAL5_5256
Game.ShutAllCharsUp(False)
Object.Delete(36@)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(561)
Streaming.MarkModelAsNoLongerNeeded(549)
Streaming.MarkModelAsNoLongerNeeded(40)
Streaming.MarkModelAsNoLongerNeeded(#TEMP_STINGER2)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

:STEAL5_5305
if 
  Car.IsDead(34@)
goto_if_false @STEAL5_5346
Text.ClearPrints
Text.PrintNow('STE5_09', 4000, 1)
44@ = 1

:STEAL5_5346
if 
  41@ == 0
goto_if_false @STEAL5_5405
if 
  Car.IsDead(39@)
goto_if_false @STEAL5_5405
Text.ClearPrints
Text.PrintNow('STE5_10', 7000, 1)
44@ = 1

:STEAL5_5405
return 

:STEAL5_5407
if 
  not Car.IsDead(39@)
goto_if_false @STEAL5_5654
if 
  Char.IsInCar($scplayer, 39@)
goto_if_false @STEAL5_5654
if 
  TIMERA > 5000
goto_if_false @STEAL5_5634
if 
  $buddy_health > 0
goto_if_false @STEAL5_5629
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @STEAL5_5622
Object.Delete(36@)
83@, 84@, 85@ = Car.GetOffsetInWorldCoords(39@, 0.0, -3.0, -0.5)
$heading = Car.GetHeading(39@)
$heading += 90.0
85@ = World.GetGroundZFor3DCoord(83@, 84@, 85@)
36@ = Object.Create(#TEMP_STINGER2, 83@, 84@, 85@)
Object.SetHeading(36@, $heading)
Audio.ReportMissionAudioEventAtPosition(83@, 84@, 85@, 1125)
78@ = 1
$buddy_health -= 1
TIMERA = 0

:STEAL5_5622
goto @STEAL5_5634

:STEAL5_5629
Hud.ClearCounter($buddy_health)

:STEAL5_5634
if 
  $buddy_health <> 3
goto_if_false @STEAL5_5654
Text.ClearHelp

:STEAL5_5654
if 
  78@ == 1
goto_if_false @STEAL5_5737
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @STEAL5_5737
83@, 84@, 85@ = Car.GetOffsetInWorldCoords(39@, 0.0, -3.0, -0.5)
Audio.ReportMissionAudioEventAtPosition(83@, 84@, 85@, 1104)
78@ = 2

:STEAL5_5737
if 
  Object.DoesExist(36@)
goto_if_false @STEAL5_6299
79@, 81@, 85@ = Object.GetOffsetInWorldCoords(36@, -0.5, 2.5, 0.0)
80@, 82@, 85@ = Object.GetOffsetInWorldCoords(36@, -0.5, -2.5, 0.0)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @STEAL5_5970
38@ = Char.StoreCarIsInNoSave($scplayer)
if 
  Char.IsInAngledAreaInCar2D($scplayer, 79@, 81@, 80@, 82@, 1.0, False)
goto_if_false @STEAL5_5970
if 
  not Car.IsTireBurst(38@, 2)
goto_if_false @STEAL5_5895
Car.BurstTire(38@, 2)

:STEAL5_5895
if 
  not Car.IsTireBurst(38@, 0)
goto_if_false @STEAL5_5920
Car.BurstTire(38@, 0)

:STEAL5_5920
if 
  not Car.IsTireBurst(38@, 1)
goto_if_false @STEAL5_5945
Car.BurstTire(38@, 1)

:STEAL5_5945
if 
  not Car.IsTireBurst(38@, 3)
goto_if_false @STEAL5_5970
Car.BurstTire(38@, 3)

:STEAL5_5970
if 
  not Char.IsDead(35@)
goto_if_false @STEAL5_6121
if 
  Char.IsInAngledAreaInCar2D(35@, 79@, 81@, 80@, 82@, 1.0, False)
goto_if_false @STEAL5_6121
if 
  not Car.IsTireBurst(34@, 2)
goto_if_false @STEAL5_6046
Car.BurstTire(34@, 2)

:STEAL5_6046
if 
  not Car.IsTireBurst(34@, 0)
goto_if_false @STEAL5_6071
Car.BurstTire(34@, 0)

:STEAL5_6071
if 
  not Car.IsTireBurst(34@, 1)
goto_if_false @STEAL5_6096
Car.BurstTire(34@, 1)

:STEAL5_6096
if 
  not Car.IsTireBurst(34@, 3)
goto_if_false @STEAL5_6121
Car.BurstTire(34@, 3)

:STEAL5_6121
37@ = World.GetRandomCarOfTypeInAngledAreaNoSave(79@, 81@, 80@, 82@, 1.0, -1)
if 
  not Car.IsDead(37@)
goto_if_false @STEAL5_6299
if 
  not is_int_lvar_equal_to_int_lvar 37@ == 34@
goto_if_false @STEAL5_6299
if 
  not is_int_lvar_equal_to_int_lvar 37@ == 39@
goto_if_false @STEAL5_6299
if 
  not Car.IsTireBurst(37@, 2)
goto_if_false @STEAL5_6224
Car.BurstTire(37@, 2)

:STEAL5_6224
if 
  not Car.IsTireBurst(37@, 0)
goto_if_false @STEAL5_6249
Car.BurstTire(37@, 0)

:STEAL5_6249
if 
  not Car.IsTireBurst(37@, 1)
goto_if_false @STEAL5_6274
Car.BurstTire(37@, 1)

:STEAL5_6274
if 
  not Car.IsTireBurst(37@, 3)
goto_if_false @STEAL5_6299
Car.BurstTire(37@, 3)

:STEAL5_6299
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @STEAL5_6321
Car.BurstTire(34@, 2)

:STEAL5_6321
return 

:STEAL5_6323
if 
  not Car.IsDead(34@)
goto_if_false @STEAL5_6445
if 
  Char.LocateAnyMeansCar2D($scplayer, 34@, 60.0, 60.0, False)
goto_if_false @STEAL5_6387
Car.SetCruiseSpeed(34@, 50.0)
goto @STEAL5_6445

:STEAL5_6387
if 
  Char.LocateAnyMeansCar2D($scplayer, 34@, 100.0, 100.0, False)
goto_if_false @STEAL5_6435
Car.SetCruiseSpeed(34@, 20.0)
goto @STEAL5_6445

:STEAL5_6435
Car.SetCruiseSpeed(34@, 15.0)

:STEAL5_6445
return 

:STEAL5_6447
if 
  not Car.IsDead(34@)
goto_if_false @STEAL5_6500
if 
  Car.IsOnScreen(34@)
goto_if_false @STEAL5_6493
Car.SetWatertight(34@, False)
goto @STEAL5_6500

:STEAL5_6493
Car.SetWatertight(34@, True)

:STEAL5_6500
return 

:STEAL5_6502
if 
  not Char.IsDead(35@)
goto_if_false @STEAL5_7258
if 
  Char.IsInCar(35@, 34@)
goto_if_false @STEAL5_7258
if 
  46@ == 0
goto_if_false @STEAL5_6849
89@ = Sequence.Open()
Task.CarDriveToCoord(-1, 34@, -1913.1, -593.8, 38.3, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 34@, -1912.6, -744.7, 44.7, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 34@, -1914.2, -894.9, 45.0, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 34@, -1914.3, -1045.0, 38.3, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 34@, -1907.9, -1195.2, 39.5, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 34@, -1910.7, -1345.3, 40.4, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 34@, -1795.1, -1442.4, 35.5, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 34@, -1658.5, -1506.1, 35.7, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Sequence.Close(89@)
Char.PerformSequence(35@, 89@)
Sequence.Clear(89@)
46@ = 1

:STEAL5_6849
if 
  46@ == 1
goto_if_false @STEAL5_7190
$task_status = Char.GetScriptTaskStatus(35@, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL5_7190
89@ = Sequence.Open()
Task.CarDriveToCoord(-1, 34@, -1704.1, -1649.1, 36.3, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 34@, -1832.4, -1727.6, 29.2, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 34@, -1954.5, -1815.3, 34.4, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 34@, -2046.9, -1932.7, 52.4, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 34@, -2106.8, -2070.0, 63.5, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 34@, -2213.2, -2175.1, 42.2, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 34@, -2160.4, -2315.1, 30.5, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(-1, 34@, -2120.2, -2456.7, 29.6, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Sequence.Close(89@)
Char.PerformSequence(35@, 89@)
Sequence.Clear(89@)
46@ = 2

:STEAL5_7190
if 
  46@ == 2
goto_if_false @STEAL5_7258
$task_status = Char.GetScriptTaskStatus(35@, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL5_7258
50@ = 0
41@ = 10
46@ = 3

:STEAL5_7258
return 

:STEAL5_7260
48@ = Math.RandomIntInRange(1, 37)
if 
  48@ == 1
goto_if_false @STEAL5_7302
Car.CustomPlateForNextCar(49@, "GOT_M00_")

:STEAL5_7302
if 
  48@ == 2
goto_if_false @STEAL5_7335
Car.CustomPlateForNextCar(49@, "M00TV_4U")

:STEAL5_7335
if 
  48@ == 3
goto_if_false @STEAL5_7368
Car.CustomPlateForNextCar(49@, "MATHEW_2")

:STEAL5_7368
if 
  48@ == 4
goto_if_false @STEAL5_7401
Car.CustomPlateForNextCar(49@, "D4_DEW0R")

:STEAL5_7401
if 
  48@ == 5
goto_if_false @STEAL5_7434
Car.CustomPlateForNextCar(49@, "D0DE_777")

:STEAL5_7434
if 
  48@ == 6
goto_if_false @STEAL5_7467
Car.CustomPlateForNextCar(49@, "DAM0_666")

:STEAL5_7467
if 
  48@ == 7
goto_if_false @STEAL5_7500
Car.CustomPlateForNextCar(49@, "C0NEY_88")

:STEAL5_7500
if 
  48@ == 8
goto_if_false @STEAL5_7533
Car.CustomPlateForNextCar(49@, "PRE4CHER")

:STEAL5_7533
if 
  48@ == 9
goto_if_false @STEAL5_7566
Car.CustomPlateForNextCar(49@, "DBP_4NDY")

:STEAL5_7566
if 
  48@ == 10
goto_if_false @STEAL5_7599
Car.CustomPlateForNextCar(49@, "EV1L_SLY")

:STEAL5_7599
if 
  48@ == 11
goto_if_false @STEAL5_7632
Car.CustomPlateForNextCar(49@, "N1_R4V3N")

:STEAL5_7632
if 
  48@ == 12
goto_if_false @STEAL5_7665
Car.CustomPlateForNextCar(49@, "D1VX_Z00")

:STEAL5_7665
if 
  48@ == 13
goto_if_false @STEAL5_7697
Car.CustomPlateForNextCar(49@, "MR_B3NN")

:STEAL5_7697
if 
  48@ == 14
goto_if_false @STEAL5_7730
Car.CustomPlateForNextCar(49@, "R3D_R4SP")

:STEAL5_7730
if 
  48@ == 15
goto_if_false @STEAL5_7763
Car.CustomPlateForNextCar(49@, "LA_B0MBA")

:STEAL5_7763
if 
  48@ == 16
goto_if_false @STEAL5_7796
Car.CustomPlateForNextCar(49@, "L3337_0G")

:STEAL5_7796
if 
  48@ == 17
goto_if_false @STEAL5_7829
Car.CustomPlateForNextCar(49@, "BUDD4H_X")

:STEAL5_7829
if 
  48@ == 18
goto_if_false @STEAL5_7862
Car.CustomPlateForNextCar(49@, "T3H_BUCK")

:STEAL5_7862
if 
  48@ == 19
goto_if_false @STEAL5_7895
Car.CustomPlateForNextCar(49@, "CHUNKY_1")

:STEAL5_7895
if 
  48@ == 20
goto_if_false @STEAL5_7928
Car.CustomPlateForNextCar(49@, "EV1L_BNZ")

:STEAL5_7928
if 
  48@ == 21
goto_if_false @STEAL5_7961
Car.CustomPlateForNextCar(49@, "S4ND_M4N")

:STEAL5_7961
if 
  48@ == 22
goto_if_false @STEAL5_7994
Car.CustomPlateForNextCar(49@, "RKK_DBP1")

:STEAL5_7994
if 
  48@ == 23
goto_if_false @STEAL5_8027
Car.CustomPlateForNextCar(49@, "RE1_K0KU")

:STEAL5_8027
if 
  48@ == 24
goto_if_false @STEAL5_8060
Car.CustomPlateForNextCar(49@, "S3XY_JUD")

:STEAL5_8060
if 
  48@ == 25
goto_if_false @STEAL5_8093
Car.CustomPlateForNextCar(49@, "SUNRA_93")

:STEAL5_8093
if 
  48@ == 26
goto_if_false @STEAL5_8126
Car.CustomPlateForNextCar(49@, "UG_FUX69")

:STEAL5_8126
if 
  48@ == 27
goto_if_false @STEAL5_8159
Car.CustomPlateForNextCar(49@, "LI0N_CUM")

:STEAL5_8159
if 
  48@ == 28
goto_if_false @STEAL5_8192
Car.CustomPlateForNextCar(49@, "RKK_PWND")

:STEAL5_8192
if 
  48@ == 29
goto_if_false @STEAL5_8225
Car.CustomPlateForNextCar(49@, "HAZE_B0B")

:STEAL5_8225
if 
  48@ == 30
goto_if_false @STEAL5_8258
Car.CustomPlateForNextCar(49@, "T3H_FLUF")

:STEAL5_8258
if 
  48@ == 31
goto_if_false @STEAL5_8291
Car.CustomPlateForNextCar(49@, "BM_4NDY_")

:STEAL5_8291
if 
  48@ == 32
goto_if_false @STEAL5_8324
Car.CustomPlateForNextCar(49@, "BM_D34N_")

:STEAL5_8324
if 
  48@ == 33
goto_if_false @STEAL5_8357
Car.CustomPlateForNextCar(49@, "BM_L4C3Y")

:STEAL5_8357
if 
  48@ == 34
goto_if_false @STEAL5_8390
Car.CustomPlateForNextCar(49@, "BM_D3V__")

:STEAL5_8390
if 
  48@ == 35
goto_if_false @STEAL5_8423
Car.CustomPlateForNextCar(49@, "NU_SK00L")

:STEAL5_8423
if 
  48@ == 36
goto_if_false @STEAL5_8456
Car.CustomPlateForNextCar(49@, "G4L_AVET")

:STEAL5_8456
if 
  48@ == 37
goto_if_false @STEAL5_8489
Car.CustomPlateForNextCar(49@, "M0J0_J0J")

:STEAL5_8489
return 

:STEAL5_8491
if 
  51@ == 1
goto_if_false @STEAL5_8626
set_lvar_text_label 55@s = 'STL5_AA'
set_lvar_text_label 57@s = 'STL5_AB'
set_lvar_text_label 59@s = 'STL5_AC'
set_lvar_text_label 61@s = 'STL5_AD'
set_lvar_text_label 63@s = 'STL5_AE'
set_lvar_int_to_constant 67@ = 4000
set_lvar_int_to_constant 68@ = 4041
set_lvar_int_to_constant 69@ = 4042
set_lvar_int_to_constant 70@ = 4040
set_lvar_int_to_constant 71@ = 4043
73@ = 5

:STEAL5_8626
if 
  51@ == 2
goto_if_false @STEAL5_8695
set_lvar_text_label 55@s = 'STL5_AF'
set_lvar_text_label 57@s = 'STL5_AG'
set_lvar_int_to_constant 67@ = 4044
set_lvar_int_to_constant 68@ = 4045
73@ = 2

:STEAL5_8695
if 
  51@ == 3
goto_if_false @STEAL5_8742
set_lvar_text_label 55@s = 'MOBRING'
set_lvar_int_to_constant 67@ = 28200
73@ = 1

:STEAL5_8742
set_lvar_int_to_lvar_int 76@ = 53@
74@ = 0
75@ = 0
77@ = 1
return 

:STEAL5_8773
if or
  51@ == 1
  51@ == 2
  51@ == 3
goto_if_false @STEAL5_8859
if 
  is_int_lvar_greater_than_int_lvar 73@ > 53@
goto_if_false @STEAL5_8852
gosub @STEAL5_8861
gosub @STEAL5_8968
gosub @STEAL5_9122
goto @STEAL5_8859

:STEAL5_8852
51@ = 0

:STEAL5_8859
return 

:STEAL5_8861
if 
  is_int_lvar_greater_than_int_lvar 73@ > 76@
goto_if_false @STEAL5_8966
if 
  74@ == 0
goto_if_false @STEAL5_8923
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 67@(76@,6i))
76@ += 1
74@ = 1

:STEAL5_8923
if 
  75@ == 0
goto_if_false @STEAL5_8966
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 67@(76@,6i))
76@ += 1
75@ = 1

:STEAL5_8966
return 

:STEAL5_8968
if 
  77@ == 1
goto_if_false @STEAL5_9044
if 
  74@ == 1
goto_if_false @STEAL5_9044
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @STEAL5_9044
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(55@(53@,6s), 4500, 1)
74@ = 2

:STEAL5_9044
if 
  77@ == 2
goto_if_false @STEAL5_9120
if 
  75@ == 1
goto_if_false @STEAL5_9120
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @STEAL5_9120
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow(55@(53@,6s), 4500, 1)
75@ = 2

:STEAL5_9120
return 

:STEAL5_9122
if 
  74@ == 2
goto_if_false @STEAL5_9185
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @STEAL5_9185
Text.ClearThisPrint(55@(53@,6s))
53@ += 1
77@ = 2
74@ = 0

:STEAL5_9185
if 
  75@ == 2
goto_if_false @STEAL5_9248
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @STEAL5_9248
Text.ClearThisPrint(55@(53@,6s))
53@ += 1
77@ = 1
75@ = 0

:STEAL5_9248
return 

//-------------Mission 71---------------
// Originally: Back to School

:DSKOOL
script_name 'DSKOOL'
gosub @DSKOOL_47
if 
  has_deatharrest_been_executed 
goto_if_false @DSKOOL_38
gosub @DSKOOL_24457

:DSKOOL_38
gosub @DSKOOL_24618
terminate_this_script 

:DSKOOL_47
$onmission = 1
if 
  $driving_test_passed == 0
goto_if_false @DSKOOL_74
Stat.RegisterMissionGiven

:DSKOOL_74
Text.LoadMissionText('DS')
if 
  $onmission == 0
goto_if_false @DSKOOL_291
$instructor_car = Car.Create(429, $car_posx, $car_posy, $perfect_positionz)
$dummy_car1 = Car.Create(429, $car_posx, $car_posy, $perfect_positionz)
$dummy_car2 = Car.Create(429, $car_posx, $car_posy, $perfect_positionz)
$trafficcones[20] = Object.CreateNoOffset(#TRAFFICCONE, 0.0, 0.0, 100.0)
$trafficcones[30] = Object.CreateNoOffset(#TRAFFICCONE, 0.0, 0.0, 100.0)
57@ = Object.Create(#AD_JUMP, $car_posx, $car_posy, $perfect_positionz)
58@ = Object.Create(#AD_JUMP, $car_posx, $car_posy, $perfect_positionz)
59@ = Object.Create(#AD_JUMP, $car_posx, $car_posy, $perfect_positionz)
55@ = Char.CreateRandom(0.0, 0.0, 100.0)
56@ = Char.CreateRandom(0.0, 0.0, 100.0)

:DSKOOL_291
Camera.SetFadingColor(0, 0, 0)
Text.ClearPrints
Text.ClearThisPrintBigNow(TextStyle.Middle)
wait 0
Camera.DoFade(500, Fade.Out)

:DSKOOL_316
if 
  Camera.GetFadingStatus
goto_if_false @DSKOOL_340
wait 0
goto @DSKOOL_316

:DSKOOL_340
34@ = 0
39@ = 0
43@ = 0
44@ = 0
54@ = 0
45@ = 0
46@ = 0
47@ = 0
48@ = 0
$mission_selection = 1
50@ = 1
$start_coordsx = -2050.6
$start_coordsy = -130.0
$noticeboard_x = -2031.2
$noticeboard_y = -118.0
$noticeboard_z = 1034.2
61@ = 0
62@ = 0
63@ = 0
64@ = 0
86@ = 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0
60@ = 0
49@ = DecisionMakerChar.Copy(65542)
Streaming.RequestModel(411)
Streaming.RequestModel(496)
Streaming.RequestModel(429)
Streaming.RequestModel(597)
Streaming.RequestModel(281)
Streaming.RequestModel(#TRAFFICCONE)
Streaming.RequestModel(#TEMP_STINGER2)
Streaming.RequestModel(#GARYS_LUV_RAMP)
Streaming.RequestModel(#AD_JUMP)
Streaming.RequestModel(#AD_ROADMARK1)
Streaming.RequestModel(#AD_ROADMARK2)
Streaming.RequestModel(#AD_FINISH)
Streaming.RequestModel(420)
Streaming.RequestModel(506)
Txd.LoadDictionary('LD_DRV')
Txd.LoadSprite(1, "BRONZE")
Txd.LoadSprite(2, "SILVER")
Txd.LoadSprite(3, "GOLD")
Txd.LoadSprite(4, "RIBB")
Txd.LoadSprite(5, "TVCORN")
Txd.LoadSprite(6, "NAWARD")
Txd.LoadSprite(7, "RIBBW")
Txd.LoadSprite(8, "BLKDOT")
Txd.LoadSprite(9, "TVBASE")
Txd.LoadSprite(10, "NAWTXT")
Streaming.LoadAllModelsNow
Streaming.LoadScene(-2031.1, -118.2, 1034.2)
Text.ClearThisBigPrint('FAR_1')
Game.EnableAmbientCrime(False)
Path.SwitchRoadsOff(-2015.37, -76.08, 10.0, -2078.3, -66.75, 50.0)
Player.ClearWantedLevel($player1)
Garage.Deactivate('BODLAWN')
Garage.Deactivate('MODLAST')
Garage.Deactivate('MDSSFSE')
if 
  $japcar_mod_garage_open == 1
goto_if_false @DSKOOL_887
Garage.Deactivate('MDS1SFS')
Garage.Deactivate('VECMOD')

:DSKOOL_887
Game.SetNoResprays(True)
if 
  $f1_dbp == 0
goto_if_false @DSKOOL_1425

:DSKOOL_909
if 
  $f1_dbp == 0
goto_if_false @DSKOOL_1425
wait 0
if 
  39@ == 0
goto_if_false @DSKOOL_1228
$f1_which_missions_are_open_flag = 1
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.SetCoordinates($scplayer, -2031.7, -116.4, 1034.2)
Char.SetHeading($scplayer, 86.9)
Streaming.RequestModel(50)
Streaming.LoadAllModelsNow
World.ClearArea(-2033.2, -116.5, 1034.2, 30.0, True)
91@ = Char.Create(PedType.Mission1, 50, -2033.2, -116.5, 1034.2)
Char.ShutUpForScriptedSpeech(91@, True)
Char.SetDecisionMaker(91@, 49@)
Char.SetHeading(91@, 270.0)
Char.SetNeverTargeted(91@, True)
Char.SetKeepTask(91@, True)
Task.StandStill(91@, -2)
Camera.SetFixedPosition(-2030.7, -115.8, 1035.8, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2033.9, -116.1, 1035.7, SwitchType.JumpCut)
61@ = 1
62@ = 0
gosub @DSKOOL_45813
if 
  not Char.IsDead(91@)
goto_if_false @DSKOOL_1200
Char.StartFacialTalk(91@, 20000)

:DSKOOL_1200
Camera.DoFade(1000, Fade.In)
skip_cutscene_start_internal @DSKOOL_1264
TIMERA = 0
39@ = 1

:DSKOOL_1228
if 
  39@ == 1
goto_if_false @DSKOOL_1411
if 
  61@ == 0
goto_if_false @DSKOOL_1411

:DSKOOL_1264
skip_cutscene_end 
if 
  not Char.IsDead(91@)
goto_if_false @DSKOOL_1287
Char.StopFacialTalk(91@)

:DSKOOL_1287
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
61@ = 0
Camera.DoFade(500, Fade.Out)

:DSKOOL_1311
if 
  Camera.GetFadingStatus
goto_if_false @DSKOOL_1335
wait 0
goto @DSKOOL_1311

:DSKOOL_1335
Text.ClearPrints
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
39@ = 0
$f1_dbp = 1
Camera.DoFade(500, Fade.In)

:DSKOOL_1380
if 
  Camera.GetFadingStatus
goto_if_false @DSKOOL_1404
wait 0
goto @DSKOOL_1380

:DSKOOL_1404
goto @DSKOOL_24457

:DSKOOL_1411
gosub @DSKOOL_45718
goto @DSKOOL_909

:DSKOOL_1425
Player.SetControl($player1, False)
Text.ClearHelp
Text.ClearPrints
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
gosub @DSKOOL_30049
34@ = 0
39@ = 0
Text.UseCommands(True)
44@ = 255
43@ = 2
if 
  17 > $f1_which_missions_are_open_flag
goto_if_false @DSKOOL_1516
set_var_int_to_lvar_int $mission_selection = 50@

:DSKOOL_1516
if 
  $mission_selection == 3
goto_if_false @DSKOOL_1541
$mission_selection = 4

:DSKOOL_1541
if 
  $mission_selection == 6
goto_if_false @DSKOOL_1566
$mission_selection = 7

:DSKOOL_1566
if 
  $mission_selection == 8
goto_if_false @DSKOOL_1591
$mission_selection = 9

:DSKOOL_1591
if 
  $mission_selection == 12
goto_if_false @DSKOOL_1616
$mission_selection = 13

:DSKOOL_1616
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($scplayer, 0)
Char.SetCoordinates($scplayer, -2035.4, -119.1, 33.2)
Streaming.LoadScene(-2035.4, -119.1, 33.2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 31400)

:DSKOOL_1671
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @DSKOOL_1697
wait 0
goto @DSKOOL_1671

:DSKOOL_1697
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
World.ClearExtraColors(False)
Hud.Display(False)
Hud.DisplayRadar(False)
Camera.DoFade(500, Fade.In)
gosub @DSKOOL_25654

:DSKOOL_1727
if 
  Camera.GetFadingStatus
goto_if_false @DSKOOL_1758
wait 0
gosub @DSKOOL_25654
goto @DSKOOL_1727

:DSKOOL_1758
gosub @DSKOOL_25654

:DSKOOL_1765
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DSKOOL_1791
goto @DSKOOL_24495

:DSKOOL_1791
gosub @DSKOOL_25654
if 
  39@ == 0
goto_if_false @DSKOOL_2755
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  -100 > $LStickX
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @DSKOOL_2113
50@ -= 1
$mission_selection -= 1
if 
  50@ == 3
goto_if_false @DSKOOL_1895
50@ = 2

:DSKOOL_1895
if 
  50@ == 6
goto_if_false @DSKOOL_1920
50@ = 5

:DSKOOL_1920
if 
  50@ == 8
goto_if_false @DSKOOL_1945
50@ = 7

:DSKOOL_1945
if 
  50@ == 12
goto_if_false @DSKOOL_1970
50@ = 11

:DSKOOL_1970
if 
  $mission_selection == 3
goto_if_false @DSKOOL_1995
$mission_selection = 2

:DSKOOL_1995
if 
  $mission_selection == 6
goto_if_false @DSKOOL_2020
$mission_selection = 5

:DSKOOL_2020
if 
  $mission_selection == 8
goto_if_false @DSKOOL_2045
$mission_selection = 7

:DSKOOL_2045
if 
  $mission_selection == 12
goto_if_false @DSKOOL_2070
$mission_selection = 11

:DSKOOL_2070
if 
  $f1_which_missions_are_open_flag > 1
goto_if_false @DSKOOL_2113
if 
  4 > 34@
goto_if_false @DSKOOL_2113
34@ = 3

:DSKOOL_2113
if or
  $LStickX > 100
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @DSKOOL_2394
50@ += 1
$mission_selection += 1
if 
  50@ == 3
goto_if_false @DSKOOL_2176
50@ = 4

:DSKOOL_2176
if 
  50@ == 6
goto_if_false @DSKOOL_2201
50@ = 7

:DSKOOL_2201
if 
  50@ == 8
goto_if_false @DSKOOL_2226
50@ = 9

:DSKOOL_2226
if 
  50@ == 12
goto_if_false @DSKOOL_2251
50@ = 13

:DSKOOL_2251
if 
  $mission_selection == 3
goto_if_false @DSKOOL_2276
$mission_selection = 4

:DSKOOL_2276
if 
  $mission_selection == 6
goto_if_false @DSKOOL_2301
$mission_selection = 7

:DSKOOL_2301
if 
  $mission_selection == 8
goto_if_false @DSKOOL_2326
$mission_selection = 9

:DSKOOL_2326
if 
  $mission_selection == 12
goto_if_false @DSKOOL_2351
$mission_selection = 13

:DSKOOL_2351
if 
  $f1_which_missions_are_open_flag > 1
goto_if_false @DSKOOL_2394
if 
  4 > 34@
goto_if_false @DSKOOL_2394
34@ = 3

:DSKOOL_2394
if 
  1 > $mission_selection
goto_if_false @DSKOOL_2428
set_var_int_to_var_int $mission_selection = $f1_which_missions_are_open_flag
set_lvar_int_to_var_int 50@ = $f1_which_missions_are_open_flag

:DSKOOL_2428
if 
  is_int_var_greater_than_int_var $mission_selection > $f1_which_missions_are_open_flag
goto_if_false @DSKOOL_2461
$mission_selection = 1
50@ = 1

:DSKOOL_2461
if 
  $f1_which_missions_are_open_flag > 1
goto_if_false @DSKOOL_2583

:DSKOOL_2479
if 
  -100 > $LStickX
goto_if_false @DSKOOL_2531
wait 0
gosub @DSKOOL_25654
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
goto @DSKOOL_2479

:DSKOOL_2531
if 
  $LStickX > 100
goto_if_false @DSKOOL_2583
wait 0
gosub @DSKOOL_25654
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
goto @DSKOOL_2531

:DSKOOL_2583
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @DSKOOL_2618
wait 0
gosub @DSKOOL_25654
goto @DSKOOL_2583

:DSKOOL_2618
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @DSKOOL_2653
wait 0
gosub @DSKOOL_25654
goto @DSKOOL_2618

:DSKOOL_2653
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DSKOOL_2755
if or
  $mission_selection == 4
  $mission_selection == 7
  $mission_selection == 9
  $mission_selection == 13
goto_if_false @DSKOOL_2723
39@ = 1
goto @DSKOOL_2755

:DSKOOL_2723
if 
  4 > 34@
goto_if_false @DSKOOL_2748
34@ = 3

:DSKOOL_2748
goto @DSKOOL_3661

:DSKOOL_2755
if 
  39@ == 1
goto_if_false @DSKOOL_3135
if 
  4 > 34@
goto_if_false @DSKOOL_2798
34@ = 3

:DSKOOL_2798
if 
  34@ == 0
goto_if_false @DSKOOL_2823
34@ = 5

:DSKOOL_2823
gosub @DSKOOL_29820
Text.SetColor(255, 255, 255, 255)
Text.Display(320.0, 160.0, 'DS1_59')
gosub @DSKOOL_29820
Text.SetCenter(False)
Text.SetColor(255, 255, 255, 255)
Text.Display(100.0, 205.0, 'DS1_60')
gosub @DSKOOL_29820
Text.SetCenter(False)
Text.SetColor(255, 255, 255, 255)
Text.Display(101.0, 231.0, 'DS1_61')
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  -100 > $LStickX
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @DSKOOL_3004
goto @DSKOOL_3661

:DSKOOL_3004
if or
  $LStickX > 100
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @DSKOOL_3135
if 
  $mission_selection == 4
goto_if_false @DSKOOL_3053
$mission_selection = 3

:DSKOOL_3053
if 
  $mission_selection == 7
goto_if_false @DSKOOL_3078
$mission_selection = 6

:DSKOOL_3078
if 
  $mission_selection == 9
goto_if_false @DSKOOL_3103
$mission_selection = 8

:DSKOOL_3103
if 
  $mission_selection == 13
goto_if_false @DSKOOL_3128
$mission_selection = 12

:DSKOOL_3128
goto @DSKOOL_3661

:DSKOOL_3135
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @DSKOOL_3280
if 
  $driving_test_passed == 0
goto_if_false @DSKOOL_3273
$f1_the360_best_score = 100
$f1_the180_best_score = 100
$f1_whiprightterminate_best_score = 100
$f1_popcontrol_best_score = 100
$f1_burnlapright_best_score = 100
$f1_conecoilright_best_score = 100
$f1_the90_best_score = 100
$f1_wheelieweave_best_score = 100
$f1_spinrightgo_best_score = 100
$f1_pittechnique_best_score = 100
$f1_alleyoop_best_score = 100
$f1_cityslicking_best_score = 100
CarGenerator.Switch($f1_gold_car_gen, 101)
CarGenerator.Switch($f1_chunky, 101)
$driving_test_passed = 1

:DSKOOL_3273
$f1_which_missions_are_open_flag = 16

:DSKOOL_3280
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_3647
gosub @DSKOOL_25654
Camera.DoFade(500, Fade.Out)

:DSKOOL_3311
if 
  Camera.GetFadingStatus
goto_if_false @DSKOOL_3349
gosub @DSKOOL_25654
wait 0
gosub @DSKOOL_25654
goto @DSKOOL_3311

:DSKOOL_3349
gosub @DSKOOL_25654
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Text.ClearPrints
World.ClearExtraColors(True)
Char.SetAreaVisible($scplayer, 3)
Streaming.SetAreaVisible(3)
Streaming.RequestCollision(-2031.1, -118.2)
Streaming.LoadScene(-2031.1, -118.2, 1034.2)
Char.SetCoordinates($scplayer, -2029.7, -115.5, 1034.2)
Char.SetHeading($scplayer, 0.0)
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_3473
if 
  Car.IsPlaybackGoingOn($instructor_car)
goto_if_false @DSKOOL_3473
Car.StopPlayback($instructor_car)

:DSKOOL_3473
Car.Delete($instructor_car)
World.ClearArea(-2051.0, -174.0, 34.0, 300.0, True)
Hud.ClearTimer($car_timer)
Hud.FreezeTimer(False)
Char.Delete(55@)
Char.Delete(56@)
Car.Delete($dummy_car1)
Car.Delete($dummy_car2)
Object.Delete(57@)
Object.Delete(58@)
Object.Delete(59@)
Streaming.RemoveCarRecording(1)
Streaming.RemoveCarRecording(2)
Streaming.RemoveCarRecording(3)
Streaming.RemoveCarRecording(4)
Streaming.RemoveCarRecording(5)
Streaming.RemoveCarRecording(7)
Streaming.RemoveCarRecording(9)
Streaming.RemoveCarRecording(10)
Streaming.RemoveCarRecording(11)
Streaming.RemoveCarRecording(13)
Streaming.RemoveCarRecording(14)
Streaming.RemoveCarRecording(15)
Streaming.RemoveCarRecording(16)
gosub @DSKOOL_35156
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(500, Fade.In)

:DSKOOL_3616
if 
  Camera.GetFadingStatus
goto_if_false @DSKOOL_3640
wait 0
goto @DSKOOL_3616

:DSKOOL_3640
goto @DSKOOL_24457

:DSKOOL_3647
gosub @DSKOOL_28801
goto @DSKOOL_1765

:DSKOOL_3661
Camera.DoFade(500, Fade.Out)

:DSKOOL_3668
if 
  Camera.GetFadingStatus
goto_if_false @DSKOOL_3699
wait 0
gosub @DSKOOL_25654
goto @DSKOOL_3668

:DSKOOL_3699
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_3720
Car.StopPlayback($instructor_car)

:DSKOOL_3720
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Car.Delete($instructor_car)
World.ClearArea($noticeboard_x, $noticeboard_y, $noticeboard_z, 300.0, True)
Hud.ClearTimer($car_timer)
Hud.FreezeTimer(False)
Char.Delete(55@)
Char.Delete(56@)
Car.Delete($dummy_car1)
Car.Delete($dummy_car2)
Car.Delete($instructor_car)
Object.Delete(57@)
Object.Delete(58@)
Object.Delete(59@)
gosub @DSKOOL_35156
34@ = 5
Hud.Display(True)
Hud.DisplayRadar(True)
if 
  $mission_selection == 1
goto_if_false @DSKOOL_5391

:DSKOOL_3836
gosub @DSKOOL_29940

:DSKOOL_3843
$perfect_heading = 180.0
$car_timer = 11000
gosub @DSKOOL_30049
$instructor_car = Car.Create(411, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading($instructor_car, 180.0)
gosub @DSKOOL_35210
if 
  34@ == 0
goto_if_false @DSKOOL_3997
Camera.SetFixedPosition(-2028.3, -143.0, 38.4, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2052.3, -129.9, 34.2, SwitchType.JumpCut)
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_3995
55@ = Char.CreateRandomAsDriver($instructor_car)

:DSKOOL_3995
return 

:DSKOOL_3997
$finish_rightx, $finish_righty, $perfect_positionz = Car.GetOffsetInWorldCoords($instructor_car, 0.0, 0.0, 0.0)
Text.ClearPrints
Text.PrintBig('DS1_88', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_44', 5000, 4)
gosub @DSKOOL_30761

:DSKOOL_4067
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_4102
$instructor_car_dead_flag = 2
goto @DSKOOL_5329

:DSKOOL_4102
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_4134
goto @DSKOOL_24457

:DSKOOL_4134
if 
  $car_started == 0
goto_if_false @DSKOOL_4216
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_4202
Text.PrintBig('DS1_88', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_44', 5000, 4)

:DSKOOL_4202
gosub @DSKOOL_30935
goto @DSKOOL_5384

:DSKOOL_4216
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_5384
gosub @DSKOOL_31255
$perfect_heading = Car.GetHeading($instructor_car)
if 
  $variablec == 0
goto_if_false @DSKOOL_4321
if 
  $perfect_heading > 80.0
goto_if_false @DSKOOL_4321
if 
  90.0 > $perfect_heading
goto_if_false @DSKOOL_4321
$variablec = 1
40@ = 1

:DSKOOL_4321
if 
  40@ == 1
goto_if_false @DSKOOL_4540
if 
  $variablec == 1
goto_if_false @DSKOOL_4406
if 
  $perfect_heading > 350.0
goto_if_false @DSKOOL_4406
if 
  360.0 > $perfect_heading
goto_if_false @DSKOOL_4406
$variablec = 2

:DSKOOL_4406
if 
  $variablec == 2
goto_if_false @DSKOOL_4473
if 
  $perfect_heading > 270.0
goto_if_false @DSKOOL_4473
if 
  280.0 > $perfect_heading
goto_if_false @DSKOOL_4473
$variablec = 3

:DSKOOL_4473
if 
  $variablec == 3
goto_if_false @DSKOOL_4540
if 
  $perfect_heading > 170.0
goto_if_false @DSKOOL_4540
if 
  180.0 > $perfect_heading
goto_if_false @DSKOOL_4540
$variablec = 4

:DSKOOL_4540
if 
  $variablec == 0
goto_if_false @DSKOOL_4614
if 
  $perfect_heading > 270.0
goto_if_false @DSKOOL_4614
if 
  280.0 > $perfect_heading
goto_if_false @DSKOOL_4614
40@ = 2
$variablec = 1

:DSKOOL_4614
if 
  40@ == 2
goto_if_false @DSKOOL_4833
if 
  $variablec == 1
goto_if_false @DSKOOL_4699
if 
  $perfect_heading > 350.0
goto_if_false @DSKOOL_4699
if 
  360.0 > $perfect_heading
goto_if_false @DSKOOL_4699
$variablec = 2

:DSKOOL_4699
if 
  $variablec == 2
goto_if_false @DSKOOL_4766
if 
  $perfect_heading > 80.0
goto_if_false @DSKOOL_4766
if 
  90.0 > $perfect_heading
goto_if_false @DSKOOL_4766
$variablec = 3

:DSKOOL_4766
if 
  $variablec == 3
goto_if_false @DSKOOL_4833
if 
  $perfect_heading > 170.0
goto_if_false @DSKOOL_4833
if 
  180.0 > $perfect_heading
goto_if_false @DSKOOL_4833
$variablec = 4

:DSKOOL_4833
if or
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  not Pad.IsButtonPressed(PadId.Pad1, Button.Square)
  $car_timer == 0
goto_if_false @DSKOOL_5384
gosub @DSKOOL_31289
gosub @DSKOOL_31329
if 
  $variablec == 4
goto_if_false @DSKOOL_4902
$heading_score = 100

:DSKOOL_4902
if 
  $variablec == 3
goto_if_false @DSKOOL_4927
$heading_score = 75

:DSKOOL_4927
if 
  $variablec == 2
goto_if_false @DSKOOL_4952
$heading_score = 50

:DSKOOL_4952
if 
  $variablec == 1
goto_if_false @DSKOOL_4977
$heading_score = 25

:DSKOOL_4977
if 
  $variablec == 0
goto_if_false @DSKOOL_5002
$heading_score = 0

:DSKOOL_5002
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_5050
$overall_score = 0

:DSKOOL_5050
if 
  $variablec == 0
goto_if_false @DSKOOL_5075
$overall_score = 0

:DSKOOL_5075
gosub @DSKOOL_31573
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_the360_best_score
goto_if_false @DSKOOL_5145
set_lvar_int_to_var_int 47@ = $f1_the360_best_score
set_var_int_to_var_int $f1_the360_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_5152

:DSKOOL_5145
45@ = 0

:DSKOOL_5152
if 
  $f1_which_missions_are_open_flag == 1
goto_if_false @DSKOOL_5216
if 
  $overall_score > 69
goto_if_false @DSKOOL_5216
41@ = 2
$f1_which_missions_are_open_flag = 2
$instructor_car_dead_flag = 2
50@ = 2

:DSKOOL_5216
TIMERA = 0

:DSKOOL_5223
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_5283
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_5283
$instructor_car_dead_flag = 2
goto @DSKOOL_5329

:DSKOOL_5283
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_5322
goto @DSKOOL_5329

:DSKOOL_5322
goto @DSKOOL_5223

:DSKOOL_5329
gosub @DSKOOL_34872
gosub @DSKOOL_35156
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_5377
Text.ClearPrints
goto @DSKOOL_1425
goto @DSKOOL_5384

:DSKOOL_5377
goto @DSKOOL_3836

:DSKOOL_5384
goto @DSKOOL_4067

:DSKOOL_5391
if 
  $mission_selection == 2
goto_if_false @DSKOOL_6710

:DSKOOL_5409
gosub @DSKOOL_29940

:DSKOOL_5416
$perfect_heading = 0.0
$car_timer = 11000
gosub @DSKOOL_30049
$instructor_car = Car.Create(496, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading($instructor_car, 180.0)
gosub @DSKOOL_35210
if 
  34@ == 0
goto_if_false @DSKOOL_5570
Camera.SetFixedPosition(-2060.2, -227.3, 36.6, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2049.5, -210.6, 34.0, SwitchType.JumpCut)
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_5568
55@ = Char.CreateRandomAsDriver($instructor_car)

:DSKOOL_5568
return 

:DSKOOL_5570
$area_check1ax, $area_check1ay, $player_z = Car.GetOffsetInWorldCoords($instructor_car, -2.0, 82.0, 0.0)
$area_check1bx, $area_check1by, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 2.0, 88.0, 0.0)
$finish_rightx, $finish_righty, $perfect_positionz = Car.GetOffsetInWorldCoords($instructor_car, 0.0, 0.0, 0.0)
Text.ClearPrints
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_45', 5000, 4)
gosub @DSKOOL_30761

:DSKOOL_5698
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_5733
$instructor_car_dead_flag = 2
goto @DSKOOL_6648

:DSKOOL_5733
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_5765
goto @DSKOOL_24457

:DSKOOL_5765
if 
  $car_started == 0
goto_if_false @DSKOOL_5847
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_5833
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_45', 5000, 4)

:DSKOOL_5833
gosub @DSKOOL_30935
goto @DSKOOL_6703

:DSKOOL_5847
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_6703
gosub @DSKOOL_31255
if 
  $variablec == 0
goto_if_false @DSKOOL_5925
if 
  Car.IsInArea2D($instructor_car, $area_check1ax, $area_check1ay, $area_check1bx, $area_check1by, False)
goto_if_false @DSKOOL_5925
$variablec = 1

:DSKOOL_5925
if 
  Car.IsStopped($instructor_car)
goto_if_false @DSKOOL_6703
gosub @DSKOOL_31289
gosub @DSKOOL_31329
if 
  $variablec == 0
goto_if_false @DSKOOL_5980
$position_score = 0

:DSKOOL_5980
$instructor_car_heading = Car.GetHeading($instructor_car)
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_6028
$heading_score = 100
goto @DSKOOL_6321

:DSKOOL_6028
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_6061
$heading_score = 100
goto @DSKOOL_6321

:DSKOOL_6061
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_6104
if 
  21 > $instructor_car_heading_int
goto_if_false @DSKOOL_6104
$heading_score = 100

:DSKOOL_6104
if 
  $instructor_car_heading_int > 179
goto_if_false @DSKOOL_6191
if 
  340 > $instructor_car_heading_int
goto_if_false @DSKOOL_6191
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.62
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_6321

:DSKOOL_6191
if 
  $instructor_car_heading_int > 339
goto_if_false @DSKOOL_6236
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_6236
$heading_score = 100

:DSKOOL_6236
if 
  $instructor_car_heading_int > 20
goto_if_false @DSKOOL_6321
if 
  180 > $instructor_car_heading_int
goto_if_false @DSKOOL_6321
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.62
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_6321

:DSKOOL_6321
if 
  1 > $heading_score
goto_if_false @DSKOOL_6346
$heading_score = 0

:DSKOOL_6346
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_6394
$overall_score = 0

:DSKOOL_6394
gosub @DSKOOL_31573
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_the180_best_score
goto_if_false @DSKOOL_6464
set_lvar_int_to_var_int 47@ = $f1_the180_best_score
set_var_int_to_var_int $f1_the180_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_6471

:DSKOOL_6464
45@ = 0

:DSKOOL_6471
if 
  $f1_which_missions_are_open_flag == 2
goto_if_false @DSKOOL_6535
if 
  $overall_score > 69
goto_if_false @DSKOOL_6535
41@ = 2
$f1_which_missions_are_open_flag = 4
$instructor_car_dead_flag = 2
50@ = 4

:DSKOOL_6535
TIMERA = 0

:DSKOOL_6542
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_6602
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_6602
$instructor_car_dead_flag = 2
goto @DSKOOL_6648

:DSKOOL_6602
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_6641
goto @DSKOOL_6648

:DSKOOL_6641
goto @DSKOOL_6542

:DSKOOL_6648
gosub @DSKOOL_34872
gosub @DSKOOL_35156
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_6696
Text.ClearPrints
goto @DSKOOL_1425
goto @DSKOOL_6703

:DSKOOL_6696
goto @DSKOOL_5409

:DSKOOL_6703
goto @DSKOOL_5698

:DSKOOL_6710
if or
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_8322

:DSKOOL_6735
gosub @DSKOOL_29940

:DSKOOL_6742
$perfect_heading = 180.0
$car_timer = 6000
gosub @DSKOOL_30049
if 
  $mission_selection == 3
goto_if_false @DSKOOL_6795
$perfect_positionx += 20.0

:DSKOOL_6795
if 
  $mission_selection == 4
goto_if_false @DSKOOL_6823
$perfect_positionx -= 20.0

:DSKOOL_6823
$instructor_car = Car.Create(429, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading($instructor_car, $perfect_heading)
gosub @DSKOOL_35210
if 
  34@ == 0
goto_if_false @DSKOOL_6950
Camera.SetFixedPosition(-2022.6, -173.4, 36.2, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2034.2, -165.4, 34.5, SwitchType.JumpCut)
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_6948
55@ = Char.CreateRandomAsDriver($instructor_car)

:DSKOOL_6948
return 

:DSKOOL_6950
if 
  $mission_selection == 3
goto_if_false @DSKOOL_7004
$finish_rightx, $finish_righty, $perfect_positionz = Car.GetOffsetInWorldCoords($instructor_car, 40.0, 37.0, 0.0)
goto @DSKOOL_7033

:DSKOOL_7004
$finish_leftx, $finish_lefty, $perfect_positionz = Car.GetOffsetInWorldCoords($instructor_car, -40.0, 37.0, 0.0)

:DSKOOL_7033
Text.ClearPrints
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_32', 5000, 4)
gosub @DSKOOL_30761

:DSKOOL_7074
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_7109
$instructor_car_dead_flag = 2
goto @DSKOOL_8260

:DSKOOL_7109
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_7141
goto @DSKOOL_24457

:DSKOOL_7141
if 
  $car_started == 0
goto_if_false @DSKOOL_7223
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_7209
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_32', 5000, 4)

:DSKOOL_7209
gosub @DSKOOL_30935
goto @DSKOOL_8315

:DSKOOL_7223
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_8315
gosub @DSKOOL_31255
if 
  Car.IsStopped($instructor_car)
goto_if_false @DSKOOL_8315
gosub @DSKOOL_31289
if 
  $mission_selection == 3
goto_if_false @DSKOOL_7310
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
goto @DSKOOL_7326

:DSKOOL_7310
set_var_float_to_var_float $perfect_positionx = $finish_leftx
set_var_float_to_var_float $perfect_positiony = $finish_lefty

:DSKOOL_7326
gosub @DSKOOL_31329
$instructor_car_heading = Car.GetHeading($instructor_car)
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_7381
$heading_score = 0
goto @DSKOOL_7933

:DSKOOL_7381
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_7414
$heading_score = 0
goto @DSKOOL_7933

:DSKOOL_7414
if 
  $mission_selection == 3
goto_if_false @DSKOOL_7683
if 
  $instructor_car_heading_int == 90
goto_if_false @DSKOOL_7464
$heading_score = 100
goto @DSKOOL_7933

:DSKOOL_7464
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_7533
if 
  85 > $instructor_car_heading_int
goto_if_false @DSKOOL_7533
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 1.16
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_7933

:DSKOOL_7533
if 
  $instructor_car_heading_int > 84
goto_if_false @DSKOOL_7576
if 
  96 > $instructor_car_heading_int
goto_if_false @DSKOOL_7576
$heading_score = 100

:DSKOOL_7576
if 
  $instructor_car_heading_int > 95
goto_if_false @DSKOOL_7676
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_7676
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 90
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 1.16
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_7933

:DSKOOL_7676
goto @DSKOOL_7933

:DSKOOL_7683
if 
  $instructor_car_heading_int == 270
goto_if_false @DSKOOL_7716
$heading_score = 100
goto @DSKOOL_7933

:DSKOOL_7716
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_7786
if 
  265 > $instructor_car_heading_int
goto_if_false @DSKOOL_7786
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.37
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_7933

:DSKOOL_7786
if 
  $instructor_car_heading_int > 264
goto_if_false @DSKOOL_7831
if 
  276 > $instructor_car_heading_int
goto_if_false @DSKOOL_7831
$heading_score = 100

:DSKOOL_7831
if 
  $instructor_car_heading_int > 275
goto_if_false @DSKOOL_7933
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_7933
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 270
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 1.16
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_7933

:DSKOOL_7933
if 
  1 > $heading_score
goto_if_false @DSKOOL_7958
$heading_score = 0

:DSKOOL_7958
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_8006
$overall_score = 0

:DSKOOL_8006
gosub @DSKOOL_31573
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_whiprightterminate_best_score
goto_if_false @DSKOOL_8076
set_lvar_int_to_var_int 47@ = $f1_whiprightterminate_best_score
set_var_int_to_var_int $f1_whiprightterminate_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_8083

:DSKOOL_8076
45@ = 0

:DSKOOL_8083
if 
  $f1_which_missions_are_open_flag == 4
goto_if_false @DSKOOL_8147
if 
  $overall_score > 69
goto_if_false @DSKOOL_8147
41@ = 2
$f1_which_missions_are_open_flag = 5
$instructor_car_dead_flag = 2
50@ = 5

:DSKOOL_8147
TIMERA = 0

:DSKOOL_8154
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_8214
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_8214
$instructor_car_dead_flag = 2
goto @DSKOOL_8260

:DSKOOL_8214
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_8253
goto @DSKOOL_8260

:DSKOOL_8253
goto @DSKOOL_8154

:DSKOOL_8260
gosub @DSKOOL_34872
gosub @DSKOOL_35156
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_8308
Text.ClearPrints
goto @DSKOOL_1425
goto @DSKOOL_8315

:DSKOOL_8308
goto @DSKOOL_6735

:DSKOOL_8315
goto @DSKOOL_7074

:DSKOOL_8322
if 
  $mission_selection == 5
goto_if_false @DSKOOL_9825

:DSKOOL_8340
gosub @DSKOOL_29940

:DSKOOL_8347
$perfect_heading = 180.0
$car_timer = 6000
gosub @DSKOOL_30049
$instructor_car = Car.Create(597, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading($instructor_car, $perfect_heading)
$perfect_positionx, $perfect_positiony, $perfect_positionz = Car.GetOffsetInWorldCoords($instructor_car, 2.0, 38.0, -0.5)
$car_posx, $car_posy, $perfect_positionz = Car.GetOffsetInWorldCoords($instructor_car, -2.0, 40.0, -0.5)
59@ = Object.Create(#TEMP_STINGER2, -2050.8, -167.0, 34.6)
Object.SetHeading(59@, 90.0)
gosub @DSKOOL_35210
if 
  34@ == 0
goto_if_false @DSKOOL_8595
Camera.SetFixedPosition(-2047.7, -243.3, 37.0, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2049.7, -227.4, 34.1, SwitchType.JumpCut)
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_8593
55@ = Char.CreateInsideCar($instructor_car, PedType.Mission1, 281)

:DSKOOL_8593
return 

:DSKOOL_8595
$finish_rightx, $finish_righty, $perfect_positionz = Car.GetOffsetInWorldCoords($instructor_car, 0.0, 104.0, 0.0)
Text.ClearPrints
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_30', 5000, 4)
gosub @DSKOOL_30761

:DSKOOL_8665
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_8700
$instructor_car_dead_flag = 2
goto @DSKOOL_9758

:DSKOOL_8700
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_8732
goto @DSKOOL_24457

:DSKOOL_8732
if 
  $car_started == 0
goto_if_false @DSKOOL_8814
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_8800
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_30', 5000, 4)

:DSKOOL_8800
gosub @DSKOOL_30935
goto @DSKOOL_9818

:DSKOOL_8814
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_9818
gosub @DSKOOL_31255
if 
  Car.IsInArea2D($instructor_car, $perfect_positionx, $perfect_positiony, $car_posx, $car_posy, False)
goto_if_false @DSKOOL_8892
if 
  not Car.IsTireBurst($instructor_car, 3)
goto_if_false @DSKOOL_8892
Car.BurstTire($instructor_car, 3)

:DSKOOL_8892
if 
  Car.IsStopped($instructor_car)
goto_if_false @DSKOOL_9818
gosub @DSKOOL_31289
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
$player_x, $player_y, $player_z = Car.GetCoordinates($instructor_car)
$players_distance_from_perfectpos = Math.GetDistanceBetweenCoords2D($player_x, $player_y, $perfect_positionx, $perfect_positiony)
if 
  $players_distance_from_perfectpos > 1.0
goto_if_false @DSKOOL_9068
if 
  10.0 > $players_distance_from_perfectpos
goto_if_false @DSKOOL_9054
$players_distance_from_perfectpos -= 1.0
$players_distance_from_perfectpos *= 11.0
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @DSKOOL_9061

:DSKOOL_9054
$position_score = 0

:DSKOOL_9061
goto @DSKOOL_9075

:DSKOOL_9068
$position_score = 100

:DSKOOL_9075
if 
  not Car.IsTireBurst($instructor_car, 3)
goto_if_false @DSKOOL_9100
$position_score = 0

:DSKOOL_9100
$instructor_car_heading = Car.GetHeading($instructor_car)
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_9148
$heading_score = 0
goto @DSKOOL_9431

:DSKOOL_9148
if 
  $instructor_car_heading_int == 180
goto_if_false @DSKOOL_9181
$heading_score = 100
goto @DSKOOL_9431

:DSKOOL_9181
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_9214
$heading_score = 0
goto @DSKOOL_9431

:DSKOOL_9214
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_9284
if 
  175 > $instructor_car_heading_int
goto_if_false @DSKOOL_9284
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_9431

:DSKOOL_9284
if 
  $instructor_car_heading_int > 174
goto_if_false @DSKOOL_9329
if 
  186 > $instructor_car_heading_int
goto_if_false @DSKOOL_9329
$heading_score = 100

:DSKOOL_9329
if 
  $instructor_car_heading_int > 185
goto_if_false @DSKOOL_9431
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_9431
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_9431

:DSKOOL_9431
if 
  1 > $heading_score
goto_if_false @DSKOOL_9456
$heading_score = 0

:DSKOOL_9456
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_9504
$overall_score = 0

:DSKOOL_9504
gosub @DSKOOL_31573
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_popcontrol_best_score
goto_if_false @DSKOOL_9574
set_lvar_int_to_var_int 47@ = $f1_popcontrol_best_score
set_var_int_to_var_int $f1_popcontrol_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_9581

:DSKOOL_9574
45@ = 0

:DSKOOL_9581
if 
  $f1_which_missions_are_open_flag == 5
goto_if_false @DSKOOL_9645
if 
  $overall_score > 69
goto_if_false @DSKOOL_9645
41@ = 2
$f1_which_missions_are_open_flag = 7
$instructor_car_dead_flag = 2
50@ = 7

:DSKOOL_9645
TIMERA = 0

:DSKOOL_9652
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_9712
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_9712
$instructor_car_dead_flag = 2
goto @DSKOOL_9758

:DSKOOL_9712
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_9751
goto @DSKOOL_9758

:DSKOOL_9751
goto @DSKOOL_9652

:DSKOOL_9758
gosub @DSKOOL_34872
Object.Delete(59@)
gosub @DSKOOL_35156
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_9811
Text.ClearPrints
goto @DSKOOL_1425
goto @DSKOOL_9818

:DSKOOL_9811
goto @DSKOOL_8340

:DSKOOL_9818
goto @DSKOOL_8665

:DSKOOL_9825
if or
  $mission_selection == 6
  $mission_selection == 7
goto_if_false @DSKOOL_11927

:DSKOOL_9850
gosub @DSKOOL_29940

:DSKOOL_9857
$perfect_heading = 180.0
$car_timer = 0
gosub @DSKOOL_30049
$instructor_car = Car.Create(429, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading($instructor_car, $perfect_heading)
gosub @DSKOOL_35210
if 
  $mission_selection == 6
goto_if_false @DSKOOL_10186
$area_check1ax, $area_check1ay, $player_z = Car.GetOffsetInWorldCoords($instructor_car, -4.0, 50.0, 0.0)
$area_check1bx, $area_check1by, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 4.0, 44.0, 0.0)
$area_check2ax, $area_check2ay, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 12.0, 38.0, 0.0)
$area_check2bx, $area_check2by, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 4.0, 44.0, 0.0)
$area_check3ax, $area_check3ay, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 4.0, 2.0, 0.0)
$area_check3bx, $area_check3by, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 12.0, -4.0, 0.0)
$area_check4ax, $area_check4ay, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 4.0, 2.0, 0.0)
$area_check4bx, $area_check4by, $player_z = Car.GetOffsetInWorldCoords($instructor_car, -4.0, 8.0, 0.0)
59@ = Object.Create(#AD_FINISH, -2050.5, -135.5, 34.35)

:DSKOOL_10186
if 
  $mission_selection == 7
goto_if_false @DSKOOL_10510
$area_check1ax, $area_check1ay, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 4.0, 44.0, 0.0)
$area_check1bx, $area_check1by, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 12.0, 50.0, 0.0)
$area_check2ax, $area_check2ay, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 4.0, 44.0, 0.0)
$area_check2bx, $area_check2by, $player_z = Car.GetOffsetInWorldCoords($instructor_car, -4.0, 38.0, 0.0)
$area_check3ax, $area_check3ay, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 4.0, 2.0, 0.0)
$area_check3bx, $area_check3by, $player_z = Car.GetOffsetInWorldCoords($instructor_car, -4.0, -4.0, 0.0)
$area_check4ax, $area_check4ay, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 4.0, 2.0, 0.0)
$area_check4bx, $area_check4by, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 12.0, 8.0, 0.0)
$car_posx, $car_posy, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 8.0, 0.0, 0.0)
59@ = Object.Create(#AD_FINISH, -2058.5, -135.5, 34.35)
Car.SetCoordinates($instructor_car, $car_posx, $car_posy, $player_z)
Car.SetHeading($instructor_car, $perfect_heading)

:DSKOOL_10510
if 
  34@ == 0
goto_if_false @DSKOOL_10605
Camera.SetFixedPosition(-2054.6, -109.1, 36.4, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2054.6, -122.0, 34.2, SwitchType.JumpCut)
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_10603
55@ = Char.CreateRandomAsDriver($instructor_car)

:DSKOOL_10603
return 

:DSKOOL_10605
Text.ClearPrints
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_29', 5000, 4)
gosub @DSKOOL_30761

:DSKOOL_10646
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_10681
$instructor_car_dead_flag = 2
goto @DSKOOL_11860

:DSKOOL_10681
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_10713
goto @DSKOOL_24457

:DSKOOL_10713
if 
  $car_started == 0
goto_if_false @DSKOOL_10795
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_10781
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_29', 5000, 4)

:DSKOOL_10781
gosub @DSKOOL_30935
goto @DSKOOL_11920

:DSKOOL_10795
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_11920
if 
  $car_timer > 90000
goto_if_false @DSKOOL_10839
Player.SetControl($player1, False)

:DSKOOL_10839
if 
  $variablea == 0
goto_if_false @DSKOOL_10894
if 
  Car.IsInArea2D($instructor_car, $area_check1ax, $area_check1ay, $area_check1bx, $area_check1by, False)
goto_if_false @DSKOOL_10894
$variablea = 1

:DSKOOL_10894
if 
  $variablea == 1
goto_if_false @DSKOOL_10949
if 
  Car.IsInArea2D($instructor_car, $area_check2ax, $area_check2ay, $area_check2bx, $area_check2by, False)
goto_if_false @DSKOOL_10949
$variablea = 2

:DSKOOL_10949
if 
  $variablea == 2
goto_if_false @DSKOOL_11004
if 
  Car.IsInArea2D($instructor_car, $area_check3ax, $area_check3ay, $area_check3bx, $area_check3by, False)
goto_if_false @DSKOOL_11004
$variablea = 3

:DSKOOL_11004
if 
  $variablea == 3
goto_if_false @DSKOOL_11066
if 
  Car.IsInArea2D($instructor_car, $area_check4ax, $area_check4ay, $area_check4bx, $area_check4by, False)
goto_if_false @DSKOOL_11066
$lap_counter += 1
$variablea = 0

:DSKOOL_11066
Text.ClearPrints
if 
  4 > $lap_counter
goto_if_false @DSKOOL_11127
set_var_int_to_var_int $variabled = $lap_counter
$variabled += 1
Text.PrintWithNumberNow('DS1_73', $variabled, 5000, 4)
goto @DSKOOL_11143

:DSKOOL_11127
Text.PrintNow('DS1_74', 5000, 4)

:DSKOOL_11143
if or
  Car.IsStopped($instructor_car)
  $lap_counter == 5
goto_if_false @DSKOOL_11920
gosub @DSKOOL_31289
set_var_int_to_var_int $variablea = $car_timer
set_var_int_to_var_int $overall_secs = $variablea
$overall_secs /= 1000
set_var_int_to_var_int $overall_millisecs = $overall_secs
$overall_millisecs *= 1000
set_var_int_to_var_int $variablec = $variablea
sub_int_var_from_int_var $variablec -= $overall_millisecs
set_var_int_to_var_int $overall_millisecs = $variablec
$overall_millisecs /= 10
$time_score = 0
if 
  5 > $lap_counter
goto_if_false @DSKOOL_11283
$time_score = 0
goto @DSKOOL_11541

:DSKOOL_11283
if 
  36000 > $variablea
goto_if_false @DSKOOL_11311
$time_score = 100

:DSKOOL_11311
if 
  $variablea >= 36000
goto_if_false @DSKOOL_11412
if 
  40000 > $variablea
goto_if_false @DSKOOL_11412
set_var_int_to_var_int $variablec = $variablea
$variablec -= 35999
cset_var_float_to_var_int $variableb =# $variablec
$variableb *= 0.0075
cset_var_int_to_var_float $variablea =# $variableb
$time_score = 100
sub_int_var_from_int_var $time_score -= $variablea

:DSKOOL_11412
if 
  $variablea >= 40000
goto_if_false @DSKOOL_11513
if 
  45000 > $variablea
goto_if_false @DSKOOL_11513
set_var_int_to_var_int $variablec = $variablea
$variablec -= 39999
cset_var_float_to_var_int $variableb =# $variablec
$variableb *= 0.0138
cset_var_int_to_var_float $variablea =# $variableb
$time_score = 70
sub_int_var_from_int_var $time_score -= $variablea

:DSKOOL_11513
if 
  $variablea >= 45000
goto_if_false @DSKOOL_11541
$time_score = 0

:DSKOOL_11541
if 
  1 > $time_score
goto_if_false @DSKOOL_11566
$time_score = 0

:DSKOOL_11566
if 
  $time_score > 99
goto_if_false @DSKOOL_11591
$time_score = 100

:DSKOOL_11591
set_var_int_to_var_int $overall_score = $time_score
gosub @DSKOOL_31573
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_burnlapright_best_score
goto_if_false @DSKOOL_11669
set_lvar_int_to_var_int 47@ = $f1_burnlapright_best_score
set_var_int_to_var_int $f1_burnlapright_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_11676

:DSKOOL_11669
45@ = 0

:DSKOOL_11676
if 
  $f1_which_missions_are_open_flag == 7
goto_if_false @DSKOOL_11740
if 
  $overall_score > 69
goto_if_false @DSKOOL_11740
41@ = 2
$f1_which_missions_are_open_flag = 9
$instructor_car_dead_flag = 2
50@ = 9

:DSKOOL_11740
$lap_counter = 6
TIMERA = 0

:DSKOOL_11754
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_11814
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_11814
$instructor_car_dead_flag = 2
goto @DSKOOL_11860

:DSKOOL_11814
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_11853
goto @DSKOOL_11860

:DSKOOL_11853
goto @DSKOOL_11754

:DSKOOL_11860
gosub @DSKOOL_34872
Object.Delete(59@)
gosub @DSKOOL_35156
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_11913
Text.ClearPrints
goto @DSKOOL_1425
goto @DSKOOL_11920

:DSKOOL_11913
goto @DSKOOL_9850

:DSKOOL_11920
goto @DSKOOL_10646

:DSKOOL_11927
if or
  $mission_selection == 8
  $mission_selection == 9
goto_if_false @DSKOOL_13423

:DSKOOL_11952
gosub @DSKOOL_29940

:DSKOOL_11959
Streaming.RequestModel(429)

:DSKOOL_11964
if 
  not Streaming.HasModelLoaded(429)
goto_if_false @DSKOOL_11991
wait 0
goto @DSKOOL_11964

:DSKOOL_11991
$perfect_heading = 180.0
$car_timer = 11000
gosub @DSKOOL_30049
$instructor_car = Car.Create(429, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading($instructor_car, $perfect_heading)
59@ = Object.Create(#AD_ROADMARK1, -2050.0, -172.5, 34.35)
Object.SetHeading(59@, 180.0)
gosub @DSKOOL_35210
if 
  34@ == 0
goto_if_false @DSKOOL_12176
Camera.SetFixedPosition(-2042.1, -223.4, 36.3, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2049.1, -210.0, 34.8, SwitchType.JumpCut)
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_12174
55@ = Char.CreateRandomAsDriver($instructor_car)

:DSKOOL_12174
return 

:DSKOOL_12176
$cone_coords_x, $cone_coords_y, $cone_coords_z = Object.GetOffsetInWorldCoords($trafficcones[15], 0.0, 5.0, 0.0)
$finish_rightx, $finish_righty, $perfect_positionz = Car.GetOffsetInWorldCoords($instructor_car, 0.0, 0.0, 0.0)
Text.ClearPrints
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_36', 5000, 4)
gosub @DSKOOL_30761

:DSKOOL_12275
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_12310
$instructor_car_dead_flag = 2
goto @DSKOOL_13356

:DSKOOL_12310
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_12342
goto @DSKOOL_24457

:DSKOOL_12342
if 
  $car_started == 0
goto_if_false @DSKOOL_12424
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_12410
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_36', 5000, 4)

:DSKOOL_12410
gosub @DSKOOL_30935
goto @DSKOOL_13416

:DSKOOL_12424
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_13416
if 
  not Car.IsInArea2D($instructor_car, -2042.0, -126.0, -2058.0, -220.0, False)
goto_if_false @DSKOOL_12485
Player.SetControl($player1, False)

:DSKOOL_12485
if 
  $lap_counter == 0
goto_if_false @DSKOOL_12552
if 
  Car.Locate3D($instructor_car, $cone_coords_x, $cone_coords_y, $cone_coords_z, 4.0, 4.0, 4.0, True)
goto_if_false @DSKOOL_12552
$lap_counter = 1

:DSKOOL_12552
if 
  $lap_counter == 1
goto_if_false @DSKOOL_12619
if 
  Car.LocateStopped3D($instructor_car, $perfect_positionx, $perfect_positiony, $perfect_positionz, 4.0, 4.0, 4.0, True)
goto_if_false @DSKOOL_12619
$lap_counter = 2

:DSKOOL_12619
gosub @DSKOOL_31255
if 
  Car.IsStopped($instructor_car)
goto_if_false @DSKOOL_13416
gosub @DSKOOL_31289
if 
  $lap_counter > 0
goto_if_false @DSKOOL_12681
gosub @DSKOOL_31329
goto @DSKOOL_12688

:DSKOOL_12681
$position_score = 0

:DSKOOL_12688
$instructor_car_heading = Car.GetHeading($instructor_car)
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_12736
$heading_score = 100
goto @DSKOOL_13029

:DSKOOL_12736
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_12769
$heading_score = 100
goto @DSKOOL_13029

:DSKOOL_12769
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_12812
if 
  21 > $instructor_car_heading_int
goto_if_false @DSKOOL_12812
$heading_score = 100

:DSKOOL_12812
if 
  $instructor_car_heading_int > 179
goto_if_false @DSKOOL_12899
if 
  340 > $instructor_car_heading_int
goto_if_false @DSKOOL_12899
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.62
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_13029

:DSKOOL_12899
if 
  $instructor_car_heading_int > 339
goto_if_false @DSKOOL_12944
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_12944
$heading_score = 100

:DSKOOL_12944
if 
  $instructor_car_heading_int > 20
goto_if_false @DSKOOL_13029
if 
  180 > $instructor_car_heading_int
goto_if_false @DSKOOL_13029
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.62
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_13029

:DSKOOL_13029
if 
  1 > $heading_score
goto_if_false @DSKOOL_13054
$heading_score = 0

:DSKOOL_13054
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_13102
$overall_score = 0

:DSKOOL_13102
gosub @DSKOOL_31573
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_conecoilright_best_score
goto_if_false @DSKOOL_13172
set_lvar_int_to_var_int 47@ = $f1_conecoilright_best_score
set_var_int_to_var_int $f1_conecoilright_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_13179

:DSKOOL_13172
45@ = 0

:DSKOOL_13179
if 
  $f1_which_missions_are_open_flag == 9
goto_if_false @DSKOOL_13243
if 
  $overall_score > 69
goto_if_false @DSKOOL_13243
41@ = 2
$f1_which_missions_are_open_flag = 10
$instructor_car_dead_flag = 2
50@ = 10

:DSKOOL_13243
TIMERA = 0

:DSKOOL_13250
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_13310
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_13310
$instructor_car_dead_flag = 2
goto @DSKOOL_13356

:DSKOOL_13310
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_13349
goto @DSKOOL_13356

:DSKOOL_13349
goto @DSKOOL_13250

:DSKOOL_13356
gosub @DSKOOL_34872
Object.Delete(59@)
gosub @DSKOOL_35156
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_13409
Text.ClearPrints
goto @DSKOOL_1425
goto @DSKOOL_13416

:DSKOOL_13409
goto @DSKOOL_11952

:DSKOOL_13416
goto @DSKOOL_12275

:DSKOOL_13423
if 
  $mission_selection == 10
goto_if_false @DSKOOL_15321

:DSKOOL_13441
gosub @DSKOOL_29940

:DSKOOL_13448
$perfect_heading = 270.0
$car_timer = 6000
gosub @DSKOOL_30049
set_var_float_to_var_float $car_posx = $perfect_positionx
$car_posx += 6.0
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 75.0
$dummy_car1 = Car.Create(429, $car_posx, $car_posy, $perfect_positionz)
Car.SetHeading($dummy_car1, $perfect_heading)
Car.FreezePosition($dummy_car1, True)
set_var_float_to_var_float $car_posx = $perfect_positionx
$car_posx -= 6.0
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 75.0
$dummy_car2 = Car.Create(429, $car_posx, $car_posy, $perfect_positionz)
Car.SetHeading($dummy_car2, $perfect_heading)
Car.FreezePosition($dummy_car2, True)
set_var_float_to_var_float $car_posx = $perfect_positionx
set_var_float_to_var_float $car_posy = $perfect_positiony
$instructor_car = Car.Create(429, $car_posx, $car_posy, $perfect_positionz)
Car.SetHeading($instructor_car, 180.0)
if 
  34@ == 0
goto_if_false @DSKOOL_13747
Camera.SetFixedPosition(-2045.8, -210.5, 35.3, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2053.5, -198.1, 34.2, SwitchType.JumpCut)
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_13745
55@ = Char.CreateRandomAsDriver($instructor_car)

:DSKOOL_13745
return 

:DSKOOL_13747
Text.ClearPrints
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_1', 5000, 4)
gosub @DSKOOL_30761

:DSKOOL_13788
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_13823
$instructor_car_dead_flag = 2
goto @DSKOOL_15256

:DSKOOL_13823
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_13855
goto @DSKOOL_24457

:DSKOOL_13855
if 
  $car_started == 0
goto_if_false @DSKOOL_13937
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_13923
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_1', 5000, 4)

:DSKOOL_13923
gosub @DSKOOL_30935
goto @DSKOOL_15314

:DSKOOL_13937
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_15314
gosub @DSKOOL_31255
if 
  Car.IsStopped($instructor_car)
goto_if_false @DSKOOL_15314
gosub @DSKOOL_31289
$perfect_positiony -= 75.0
$player_x, $player_y, $player_z = Car.GetCoordinates($instructor_car)
$players_distance_from_perfectpos = Math.GetDistanceBetweenCoords2D($player_x, $player_y, $perfect_positionx, $perfect_positiony)
if 
  $players_distance_from_perfectpos > 0.5
goto_if_false @DSKOOL_14130
if 
  5.0 > $players_distance_from_perfectpos
goto_if_false @DSKOOL_14116
$players_distance_from_perfectpos -= 0.5
$players_distance_from_perfectpos *= 22.0
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @DSKOOL_14123

:DSKOOL_14116
$position_score = 0

:DSKOOL_14123
goto @DSKOOL_14137

:DSKOOL_14130
$position_score = 100

:DSKOOL_14137
add_int_var_to_int_var $overall_score += $position_score
$instructor_car_heading = Car.GetHeading($instructor_car)
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_14193
$heading_score = 0
goto @DSKOOL_14737

:DSKOOL_14193
if 
  $instructor_car_heading_int == 90
goto_if_false @DSKOOL_14225
$heading_score = 100
goto @DSKOOL_14737

:DSKOOL_14225
if 
  $instructor_car_heading_int == 180
goto_if_false @DSKOOL_14258
$heading_score = 0
goto @DSKOOL_14737

:DSKOOL_14258
if 
  $instructor_car_heading_int == 270
goto_if_false @DSKOOL_14291
$heading_score = 100
goto @DSKOOL_14737

:DSKOOL_14291
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_14360
if 
  85 > $instructor_car_heading_int
goto_if_false @DSKOOL_14360
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 1.16
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_14737

:DSKOOL_14360
if 
  $instructor_car_heading_int > 84
goto_if_false @DSKOOL_14403
if 
  96 > $instructor_car_heading_int
goto_if_false @DSKOOL_14403
$heading_score = 100

:DSKOOL_14403
if 
  $instructor_car_heading_int > 95
goto_if_false @DSKOOL_14503
if 
  180 > $instructor_car_heading_int
goto_if_false @DSKOOL_14503
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 90
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 1.16
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_14737

:DSKOOL_14503
if 
  $instructor_car_heading_int > 180
goto_if_false @DSKOOL_14590
if 
  265 > $instructor_car_heading_int
goto_if_false @DSKOOL_14590
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 1.16
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_14737

:DSKOOL_14590
if 
  $instructor_car_heading_int > 264
goto_if_false @DSKOOL_14635
if 
  276 > $instructor_car_heading_int
goto_if_false @DSKOOL_14635
$heading_score = 100

:DSKOOL_14635
if 
  $instructor_car_heading_int > 275
goto_if_false @DSKOOL_14737
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_14737
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 270
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 1.16
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_14737

:DSKOOL_14737
if 
  1 > $heading_score
goto_if_false @DSKOOL_14762
$heading_score = 0

:DSKOOL_14762
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_14810
$overall_score = 0

:DSKOOL_14810
gosub @DSKOOL_31483
$other_car_damage = 200
if 
  not Car.IsDead($dummy_car1)
goto_if_false @DSKOOL_14897
$dummy_car1_health = Car.GetHealth($dummy_car1)
$total_dummy_car1_health = 1000
sub_int_var_from_int_var $total_dummy_car1_health -= $dummy_car1_health
$total_dummy_car1_health /= 10
if 
  $total_dummy_car1_health > 100
goto_if_false @DSKOOL_14897
$total_dummy_car1_health = 100

:DSKOOL_14897
if 
  not Car.IsDead($dummy_car2)
goto_if_false @DSKOOL_14969
$dummy_car2_health = Car.GetHealth($dummy_car2)
$total_dummy_car2_health = 1000
sub_int_var_from_int_var $total_dummy_car2_health -= $dummy_car2_health
$total_dummy_car2_health /= 10
if 
  $total_dummy_car2_health > 100
goto_if_false @DSKOOL_14969
$total_dummy_car2_health = 100

:DSKOOL_14969
set_var_int_to_var_int $other_car_damage = $total_dummy_car1_health
add_int_var_to_int_var $other_car_damage += $total_dummy_car2_health
set_var_int_to_var_int $total_car_damage = $player_car_damage
add_int_var_to_int_var $total_car_damage += $other_car_damage
sub_int_var_from_int_var $overall_score -= $total_car_damage
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_the90_best_score
goto_if_false @DSKOOL_15072
set_lvar_int_to_var_int 47@ = $f1_the90_best_score
set_var_int_to_var_int $f1_the90_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_15079

:DSKOOL_15072
45@ = 0

:DSKOOL_15079
if 
  $f1_which_missions_are_open_flag == 10
goto_if_false @DSKOOL_15143
if 
  $overall_score > 69
goto_if_false @DSKOOL_15143
41@ = 2
$f1_which_missions_are_open_flag = 11
$instructor_car_dead_flag = 2
50@ = 11

:DSKOOL_15143
TIMERA = 0

:DSKOOL_15150
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_15210
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_15210
$instructor_car_dead_flag = 2
goto @DSKOOL_15256

:DSKOOL_15210
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_15249
goto @DSKOOL_15256

:DSKOOL_15249
goto @DSKOOL_15150

:DSKOOL_15256
gosub @DSKOOL_34872
Car.Delete($dummy_car1)
Car.Delete($dummy_car2)
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_15307
Text.ClearPrints
goto @DSKOOL_1425
goto @DSKOOL_15314

:DSKOOL_15307
goto @DSKOOL_13441

:DSKOOL_15314
goto @DSKOOL_13788

:DSKOOL_15321
if 
  $mission_selection == 11
goto_if_false @DSKOOL_16925

:DSKOOL_15339
gosub @DSKOOL_29940

:DSKOOL_15346
$perfect_heading = 180.0
$car_timer = 0
gosub @DSKOOL_30049
$instructor_car = Car.Create(429, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading($instructor_car, $perfect_heading)
set_var_float_to_var_float $car_posx = $perfect_positionx
$car_posx += 1.0
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 25.0
$perfect_heading = 90.0
58@ = Object.Create(#GARYS_LUV_RAMP, $car_posx, $car_posy, $perfect_positionz)
Object.SetHeading(58@, 270.0)
$area_check1ax, $area_check1ay, $player_z = Car.GetOffsetInWorldCoords($instructor_car, -50.0, 30.0, 0.0)
$area_check1bx, $area_check1by, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 50.0, 200.0, 0.0)
if 
  34@ == 0
goto_if_false @DSKOOL_15621
Camera.SetFixedPosition(-2052.6, -138.4, 34.9, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2044.2, -208.2, 37.1, SwitchType.JumpCut)
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_15619
55@ = Char.CreateRandomAsDriver($instructor_car)

:DSKOOL_15619
return 

:DSKOOL_15621
Text.ClearPrints
$finish_rightx, $finish_righty, $perfect_positionz = Car.GetOffsetInWorldCoords($instructor_car, 0.0, 100.0, 0.0)
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_34', 5000, 4)
gosub @DSKOOL_30761

:DSKOOL_15691
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_15726
$instructor_car_dead_flag = 2
goto @DSKOOL_16865

:DSKOOL_15726
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_15758
goto @DSKOOL_24457

:DSKOOL_15758
if 
  $car_started == 0
goto_if_false @DSKOOL_15840
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_15826
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_34', 5000, 4)

:DSKOOL_15826
gosub @DSKOOL_30935
goto @DSKOOL_16918

:DSKOOL_15840
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_16918
if 
  Char.LocateAnyMeans3D($scplayer, $finish_rightx, $finish_righty, $perfect_positionz, 4.0, 4.0, 4.0, True)
goto_if_false @DSKOOL_15898

:DSKOOL_15898
if 
  Car.IsInArea2D($instructor_car, $area_check1ax, $area_check1ay, $area_check1bx, $area_check1by, False)
goto_if_false @DSKOOL_15985
$variableb = Car.GetRoll($instructor_car)
if 
  4.0 > $variableb
goto_if_false @DSKOOL_15985
if 
  $variableb > -4.0
goto_if_false @DSKOOL_15985
Player.ApplyBrakesToCar($player1, True)

:DSKOOL_15985
if 
  Car.IsStopped($instructor_car)
goto_if_false @DSKOOL_16918
gosub @DSKOOL_31289
if 
  Car.IsStopped($instructor_car)
goto_if_false @DSKOOL_16918
gosub @DSKOOL_31289
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
$player_x, $player_y, $player_z = Car.GetCoordinates($instructor_car)
$players_distance_from_perfectpos = Math.GetDistanceBetweenCoords2D($player_x, $player_y, $perfect_positionx, $perfect_positiony)
if 
  $players_distance_from_perfectpos > 1.0
goto_if_false @DSKOOL_16184
if 
  10.0 > $players_distance_from_perfectpos
goto_if_false @DSKOOL_16170
$players_distance_from_perfectpos -= 1.0
$players_distance_from_perfectpos *= 11.0
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @DSKOOL_16177

:DSKOOL_16170
$position_score = 0

:DSKOOL_16177
goto @DSKOOL_16191

:DSKOOL_16184
$position_score = 100

:DSKOOL_16191
$instructor_car_heading = Car.GetHeading($instructor_car)
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_16239
$heading_score = 0
goto @DSKOOL_16522

:DSKOOL_16239
if 
  $instructor_car_heading_int == 180
goto_if_false @DSKOOL_16272
$heading_score = 100
goto @DSKOOL_16522

:DSKOOL_16272
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_16305
$heading_score = 0
goto @DSKOOL_16522

:DSKOOL_16305
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_16375
if 
  175 > $instructor_car_heading_int
goto_if_false @DSKOOL_16375
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_16522

:DSKOOL_16375
if 
  $instructor_car_heading_int > 174
goto_if_false @DSKOOL_16420
if 
  186 > $instructor_car_heading_int
goto_if_false @DSKOOL_16420
$heading_score = 100

:DSKOOL_16420
if 
  $instructor_car_heading_int > 185
goto_if_false @DSKOOL_16522
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_16522
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_16522

:DSKOOL_16522
if 
  1 > $heading_score
goto_if_false @DSKOOL_16547
$heading_score = 0

:DSKOOL_16547
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_16595
$overall_score = 0

:DSKOOL_16595
gosub @DSKOOL_31483
set_var_int_to_var_int $total_car_damage = $player_car_damage
sub_int_var_from_int_var $overall_score -= $total_car_damage
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_wheelieweave_best_score
goto_if_false @DSKOOL_16681
set_lvar_int_to_var_int 47@ = $f1_wheelieweave_best_score
set_var_int_to_var_int $f1_wheelieweave_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_16688

:DSKOOL_16681
45@ = 0

:DSKOOL_16688
if 
  $f1_which_missions_are_open_flag == 11
goto_if_false @DSKOOL_16752
if 
  $overall_score > 69
goto_if_false @DSKOOL_16752
41@ = 2
$f1_which_missions_are_open_flag = 13
$instructor_car_dead_flag = 2
50@ = 13

:DSKOOL_16752
TIMERA = 0

:DSKOOL_16759
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_16819
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_16819
$instructor_car_dead_flag = 2
goto @DSKOOL_16865

:DSKOOL_16819
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_16858
goto @DSKOOL_16865

:DSKOOL_16858
goto @DSKOOL_16759

:DSKOOL_16865
gosub @DSKOOL_34872
Object.Delete(58@)
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_16911
Text.ClearPrints
goto @DSKOOL_1425
goto @DSKOOL_16918

:DSKOOL_16911
goto @DSKOOL_15339

:DSKOOL_16918
goto @DSKOOL_15691

:DSKOOL_16925
if or
  $mission_selection == 12
  $mission_selection == 13
goto_if_false @DSKOOL_18334

:DSKOOL_16950
gosub @DSKOOL_29940

:DSKOOL_16957
$perfect_heading = 0.0
$car_timer = 6000
gosub @DSKOOL_30049
$instructor_car = Car.Create(420, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading($instructor_car, $perfect_heading)
Car.SetFreebies($instructor_car, False)
gosub @DSKOOL_35210
if 
  34@ == 0
goto_if_false @DSKOOL_17116
Camera.SetFixedPosition(-2051.9, -185.5, 37.8, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2052.2, -152.9, 34.3, SwitchType.JumpCut)
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_17114
55@ = Char.CreateRandomAsDriver($instructor_car)

:DSKOOL_17114
return 

:DSKOOL_17116
if 
  $mission_selection == 12
goto_if_false @DSKOOL_17170
$finish_rightx, $finish_righty, $perfect_positionz = Car.GetOffsetInWorldCoords($instructor_car, 6.5, -40.0, 0.0)
goto @DSKOOL_17199

:DSKOOL_17170
$finish_leftx, $finish_lefty, $perfect_positionz = Car.GetOffsetInWorldCoords($instructor_car, -6.5, -40.0, 0.0)

:DSKOOL_17199
Text.ClearPrints
Text.PrintBig('DSREVE', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_28', 5000, 4)
gosub @DSKOOL_30761

:DSKOOL_17240
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_17275
$instructor_car_dead_flag = 2
goto @DSKOOL_18272

:DSKOOL_17275
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_17307
goto @DSKOOL_24457

:DSKOOL_17307
if 
  $car_started == 0
goto_if_false @DSKOOL_17389
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_17375
Text.PrintBig('DSREVE', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_28', 5000, 4)

:DSKOOL_17375
gosub @DSKOOL_30935
goto @DSKOOL_18327

:DSKOOL_17389
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_18327
gosub @DSKOOL_31255
if 
  Car.IsStopped($instructor_car)
goto_if_false @DSKOOL_18327
gosub @DSKOOL_31289
if 
  $mission_selection == 12
goto_if_false @DSKOOL_17476
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
goto @DSKOOL_17492

:DSKOOL_17476
set_var_float_to_var_float $perfect_positionx = $finish_leftx
set_var_float_to_var_float $perfect_positiony = $finish_lefty

:DSKOOL_17492
gosub @DSKOOL_31329
if 
  $mission_selection == 12
goto_if_false @DSKOOL_17569
if 
  not Car.IsInArea2D($instructor_car, -2046.9, -161.4, -2041.2, -174.5, False)
goto_if_false @DSKOOL_17562
$position_score = 0

:DSKOOL_17562
goto @DSKOOL_17614

:DSKOOL_17569
if 
  not Car.IsInArea2D($instructor_car, -2054.2, -161.4, -2060.0, -174.5, False)
goto_if_false @DSKOOL_17614
$position_score = 0

:DSKOOL_17614
$instructor_car_heading = Car.GetHeading($instructor_car)
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_17662
$heading_score = 0
goto @DSKOOL_17945

:DSKOOL_17662
if 
  $instructor_car_heading_int == 180
goto_if_false @DSKOOL_17695
$heading_score = 100
goto @DSKOOL_17945

:DSKOOL_17695
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_17728
$heading_score = 0
goto @DSKOOL_17945

:DSKOOL_17728
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_17798
if 
  175 > $instructor_car_heading_int
goto_if_false @DSKOOL_17798
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_17945

:DSKOOL_17798
if 
  $instructor_car_heading_int > 174
goto_if_false @DSKOOL_17843
if 
  186 > $instructor_car_heading_int
goto_if_false @DSKOOL_17843
$heading_score = 100

:DSKOOL_17843
if 
  $instructor_car_heading_int > 185
goto_if_false @DSKOOL_17945
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_17945
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_17945

:DSKOOL_17945
if 
  1 > $heading_score
goto_if_false @DSKOOL_17970
$heading_score = 0

:DSKOOL_17970
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_18018
$overall_score = 0

:DSKOOL_18018
gosub @DSKOOL_31573
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_spinrightgo_best_score
goto_if_false @DSKOOL_18088
set_lvar_int_to_var_int 47@ = $f1_spinrightgo_best_score
set_var_int_to_var_int $f1_spinrightgo_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_18095

:DSKOOL_18088
45@ = 0

:DSKOOL_18095
if 
  $f1_which_missions_are_open_flag == 13
goto_if_false @DSKOOL_18159
if 
  $overall_score > 69
goto_if_false @DSKOOL_18159
41@ = 2
$f1_which_missions_are_open_flag = 14
$instructor_car_dead_flag = 2
50@ = 14

:DSKOOL_18159
TIMERA = 0

:DSKOOL_18166
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_18226
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_18226
$instructor_car_dead_flag = 2
goto @DSKOOL_18272

:DSKOOL_18226
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_18265
goto @DSKOOL_18272

:DSKOOL_18265
goto @DSKOOL_18166

:DSKOOL_18272
gosub @DSKOOL_34872
gosub @DSKOOL_35156
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_18320
Text.ClearPrints
goto @DSKOOL_1425
goto @DSKOOL_18327

:DSKOOL_18320
goto @DSKOOL_16950

:DSKOOL_18327
goto @DSKOOL_17240

:DSKOOL_18334
if 
  $mission_selection == 14
goto_if_false @DSKOOL_20041

:DSKOOL_18352
gosub @DSKOOL_29940

:DSKOOL_18359
$perfect_heading = 180.0
$car_timer = 0
gosub @DSKOOL_30049
$instructor_car = Car.Create(597, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading($instructor_car, $perfect_heading)
Car.SetFreebies($instructor_car, False)
set_var_float_to_var_float $car_posx = $perfect_positionx
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 10.0
$dummy_car1 = Car.Create(597, $car_posx, $car_posy, $perfect_positionz)
Car.SetHeading($dummy_car1, $perfect_heading)
56@ = Char.CreateRandomAsDriver($dummy_car1)
Car.SetCruiseSpeed($dummy_car1, 0.0)
59@ = Object.Create(#AD_ROADMARK2, -2045.0, -177.5, 34.35)
Object.SetHeading(59@, 180.0)
57@ = Object.Create(#AD_ROADMARK2, -2057.0, -177.5, 34.35)
$area_check1ax, $area_check1ay, $player_z = Car.GetOffsetInWorldCoords($instructor_car, -12.0, -4.0, 0.0)
$area_check1bx, $area_check1by, $player_z = Car.GetOffsetInWorldCoords($instructor_car, 12.0, 100.0, 0.0)
if 
  34@ == 0
goto_if_false @DSKOOL_18698
Camera.SetFixedPosition(-2047.0, -220.2, 36.0, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2050.2, -193.9, 32.5, SwitchType.JumpCut)
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_18696
55@ = Char.CreateInsideCar($instructor_car, PedType.Mission1, 281)

:DSKOOL_18696
return 

:DSKOOL_18698
Text.ClearPrints
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_35', 5000, 4)
gosub @DSKOOL_30761

:DSKOOL_18739
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_18774
$instructor_car_dead_flag = 2
goto @DSKOOL_19966

:DSKOOL_18774
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_18806
goto @DSKOOL_24457

:DSKOOL_18806
if 
  $car_started == 0
goto_if_false @DSKOOL_18888
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_18874
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_35', 5000, 4)

:DSKOOL_18874
gosub @DSKOOL_30935
goto @DSKOOL_20034

:DSKOOL_18888
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_20034
if 
  not Car.IsDead($dummy_car1)
goto_if_false @DSKOOL_20034
if 
  not Car.IsInArea2D($dummy_car1, $area_check1ax, $area_check1ay, $area_check1bx, $area_check1by, False)
goto_if_false @DSKOOL_18964
Car.FreezePosition($dummy_car1, True)
Player.SetControl($player1, False)

:DSKOOL_18964
if 
  not Car.IsInArea2D($instructor_car, $area_check1ax, $area_check1ay, $area_check1bx, $area_check1by, False)
goto_if_false @DSKOOL_19008
Car.FreezePosition($dummy_car1, True)
Player.SetControl($player1, False)

:DSKOOL_19008
$instructor_car_heading = Car.GetHeading($dummy_car1)
if or
  $instructor_car_heading > 340.0
  20.0 > $instructor_car_heading
goto_if_false @DSKOOL_19061
Car.FreezePosition($dummy_car1, True)
Player.SetControl($player1, False)

:DSKOOL_19061
if 
  Car.IsStopped($instructor_car)
goto_if_false @DSKOOL_20034
Car.FreezePosition($dummy_car1, True)
gosub @DSKOOL_31289
$perfect_positionx, $perfect_positiony, $perfect_positionz = Car.GetCoordinates($dummy_car1)
$player_x, $player_y, $player_z = Car.GetCoordinates($instructor_car)
$players_distance_from_perfectpos = Math.GetDistanceBetweenCoords2D($player_x, $player_y, $perfect_positionx, $perfect_positiony)
if 
  $players_distance_from_perfectpos > 4.0
goto_if_false @DSKOOL_19242
if 
  11.0 > $players_distance_from_perfectpos
goto_if_false @DSKOOL_19228
$players_distance_from_perfectpos -= 4.0
$players_distance_from_perfectpos *= 14.14
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @DSKOOL_19235

:DSKOOL_19228
$position_score = 0

:DSKOOL_19235
goto @DSKOOL_19249

:DSKOOL_19242
$position_score = 100

:DSKOOL_19249
add_int_var_to_int_var $overall_score += $position_score
$instructor_car_heading = Car.GetHeading($dummy_car1)
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_19305
$heading_score = 100
goto @DSKOOL_19598

:DSKOOL_19305
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_19338
$heading_score = 100
goto @DSKOOL_19598

:DSKOOL_19338
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_19381
if 
  21 > $instructor_car_heading_int
goto_if_false @DSKOOL_19381
$heading_score = 100

:DSKOOL_19381
if 
  $instructor_car_heading_int > 179
goto_if_false @DSKOOL_19468
if 
  340 > $instructor_car_heading_int
goto_if_false @DSKOOL_19468
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.62
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_19598

:DSKOOL_19468
if 
  $instructor_car_heading_int > 339
goto_if_false @DSKOOL_19513
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_19513
$heading_score = 100

:DSKOOL_19513
if 
  $instructor_car_heading_int > 20
goto_if_false @DSKOOL_19598
if 
  180 > $instructor_car_heading_int
goto_if_false @DSKOOL_19598
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.62
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_19598

:DSKOOL_19598
if 
  1 > $heading_score
goto_if_false @DSKOOL_19623
$heading_score = 0

:DSKOOL_19623
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_19671
$overall_score = 0

:DSKOOL_19671
gosub @DSKOOL_31483
if 
  3 > $player_car_damage
goto_if_false @DSKOOL_19703
$player_car_damage = 0

:DSKOOL_19703
set_var_int_to_var_int $total_car_damage = $player_car_damage
sub_int_var_from_int_var $overall_score -= $total_car_damage
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_pittechnique_best_score
goto_if_false @DSKOOL_19782
set_lvar_int_to_var_int 47@ = $f1_pittechnique_best_score
set_var_int_to_var_int $f1_pittechnique_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_19789

:DSKOOL_19782
45@ = 0

:DSKOOL_19789
if 
  $f1_which_missions_are_open_flag == 14
goto_if_false @DSKOOL_19853
if 
  $overall_score > 69
goto_if_false @DSKOOL_19853
41@ = 2
$f1_which_missions_are_open_flag = 15
$instructor_car_dead_flag = 2
50@ = 15

:DSKOOL_19853
TIMERA = 0

:DSKOOL_19860
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_19920
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_19920
$instructor_car_dead_flag = 2
goto @DSKOOL_19966

:DSKOOL_19920
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_19959
goto @DSKOOL_19966

:DSKOOL_19959
goto @DSKOOL_19860

:DSKOOL_19966
gosub @DSKOOL_34872
Car.Delete($dummy_car1)
Object.Delete(59@)
Object.Delete(57@)
Char.Delete(56@)
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_20027
Text.ClearPrints
goto @DSKOOL_1425
goto @DSKOOL_20034

:DSKOOL_20027
goto @DSKOOL_18352

:DSKOOL_20034
goto @DSKOOL_18739

:DSKOOL_20041
if 
  $mission_selection == 15
goto_if_false @DSKOOL_22693

:DSKOOL_20059
gosub @DSKOOL_29940

:DSKOOL_20066
$perfect_heading = 180.0
$car_timer = 6000
gosub @DSKOOL_30049
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy += 20.0
$instructor_car = Car.Create(429, $perfect_positionx, $car_posy, $perfect_positionz)
Car.SetHeading($instructor_car, $perfect_heading)
Car.SetCanBeVisiblyDamaged($instructor_car, False)
set_var_float_to_var_float $car_posx = $perfect_positionx
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 55.0
$perfect_heading = 90.0
57@ = Object.Create(#AD_JUMP, $car_posx, $car_posy, $perfect_positionz)
Object.SetHeading(57@, 180.0)
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 75.0
$dummy_car1 = Car.Create(411, $car_posx, $car_posy, $perfect_positionz)
Car.SetHeading($dummy_car1, $perfect_heading)
Car.FreezePosition($dummy_car1, True)
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 80.0
$dummy_car2 = Car.Create(411, $car_posx, $car_posy, $perfect_positionz)
Car.SetHeading($dummy_car2, $perfect_heading)
Car.FreezePosition($dummy_car2, True)
if 
  34@ == 0
goto_if_false @DSKOOL_20399
Camera.SetFixedPosition(-2061.2, -158.9, 37.5, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2040.3, -197.0, 35.1, SwitchType.JumpCut)
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_20397
55@ = Char.CreateRandomAsDriver($instructor_car)

:DSKOOL_20397
return 

:DSKOOL_20399
Text.ClearPrints
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_33', 5000, 4)
gosub @DSKOOL_30761

:DSKOOL_20440
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_20475
$instructor_car_dead_flag = 2
goto @DSKOOL_22623

:DSKOOL_20475
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_20507
goto @DSKOOL_24457

:DSKOOL_20507
if 
  $car_started == 0
goto_if_false @DSKOOL_20589
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_20575
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_33', 5000, 4)

:DSKOOL_20575
gosub @DSKOOL_30935
goto @DSKOOL_22686

:DSKOOL_20589
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_22686
gosub @DSKOOL_31255
if 
  $lap_counter == 0
goto_if_false @DSKOOL_20685
if 
  Car.IsInArea3D($instructor_car, -2047.0, -186.0, 37.2, -2054.0, -190.0, 39.0, False)
goto_if_false @DSKOOL_20685
$lap_counter = 1

:DSKOOL_20685
if 
  $lap_counter == 1
goto_if_false @DSKOOL_20765
Car.SetHealth($instructor_car, 1000)
if 
  not Car.IsInAirProper($instructor_car)
goto_if_false @DSKOOL_20765
if 
  Car.IsUpsidedown($instructor_car)
goto_if_false @DSKOOL_20765
Car.SetHealth($instructor_car, 700)
Car.SetCanBeVisiblyDamaged($instructor_car, True)
$lap_counter = 2

:DSKOOL_20765
if 
  not Car.IsInAirProper($instructor_car)
goto_if_false @DSKOOL_20804
if 
  Car.IsUpsidedown($instructor_car)
goto_if_false @DSKOOL_20804
Player.ApplyBrakesToCar($player1, True)

:DSKOOL_20804
if 
  not Car.IsInArea2D($instructor_car, -2042.0, -100.0, -2058.0, -280.0, False)
goto_if_false @DSKOOL_20849
Player.SetControl($player1, False)

:DSKOOL_20849
$instructor_car_heading = Car.GetHeading($instructor_car)
if or
  $instructor_car_heading > 200.0
  160.0 > $instructor_car_heading
goto_if_false @DSKOOL_20898
$variableb = 1.0

:DSKOOL_20898
36@ = Car.GetRoll($instructor_car)
if 
  37@ == 0
goto_if_false @DSKOOL_20980
if 
  36@ > 5.0
goto_if_false @DSKOOL_20952
38@ = 1

:DSKOOL_20952
if 
  -5.0 > 36@
goto_if_false @DSKOOL_20980
38@ = 2

:DSKOOL_20980
if 
  38@ == 1
goto_if_false @DSKOOL_21319
if 
  37@ == 0
goto_if_false @DSKOOL_21044
if 
  36@ > 90.0
goto_if_false @DSKOOL_21044
37@ = 1

:DSKOOL_21044
if 
  37@ == 1
goto_if_false @DSKOOL_21090
if 
  36@ > 170.0
goto_if_false @DSKOOL_21090
37@ = 2

:DSKOOL_21090
if 
  37@ == 2
goto_if_false @DSKOOL_21157
if 
  0.0 > 36@
goto_if_false @DSKOOL_21157
if 
  36@ > -170.0
goto_if_false @DSKOOL_21157
37@ = 3

:DSKOOL_21157
if 
  37@ == 3
goto_if_false @DSKOOL_21252
if 
  0.0 > 36@
goto_if_false @DSKOOL_21224
if 
  36@ > -90.0
goto_if_false @DSKOOL_21224
37@ = 4

:DSKOOL_21224
if 
  36@ > 10.0
goto_if_false @DSKOOL_21252
37@ = 0

:DSKOOL_21252
if 
  37@ == 4
goto_if_false @DSKOOL_21319
if 
  0.0 > 36@
goto_if_false @DSKOOL_21319
if 
  36@ > -5.0
goto_if_false @DSKOOL_21319
37@ = 5

:DSKOOL_21319
if 
  38@ == 2
goto_if_false @DSKOOL_21658
if 
  37@ == 0
goto_if_false @DSKOOL_21383
if 
  -90.0 > 36@
goto_if_false @DSKOOL_21383
37@ = 1

:DSKOOL_21383
if 
  37@ == 1
goto_if_false @DSKOOL_21429
if 
  -170.0 > 36@
goto_if_false @DSKOOL_21429
37@ = 2

:DSKOOL_21429
if 
  37@ == 2
goto_if_false @DSKOOL_21496
if 
  36@ > 0.0
goto_if_false @DSKOOL_21496
if 
  170.0 > 36@
goto_if_false @DSKOOL_21496
37@ = 3

:DSKOOL_21496
if 
  37@ == 3
goto_if_false @DSKOOL_21591
if 
  36@ > 0.0
goto_if_false @DSKOOL_21563
if 
  90.0 > 36@
goto_if_false @DSKOOL_21563
37@ = 4

:DSKOOL_21563
if 
  -10.0 > 36@
goto_if_false @DSKOOL_21591
37@ = 0

:DSKOOL_21591
if 
  37@ == 4
goto_if_false @DSKOOL_21658
if 
  36@ > 0.0
goto_if_false @DSKOOL_21658
if 
  5.0 > 36@
goto_if_false @DSKOOL_21658
37@ = 5

:DSKOOL_21658
if 
  Car.IsStopped($instructor_car)
goto_if_false @DSKOOL_22686
gosub @DSKOOL_31289
if 
  37@ == 5
goto_if_false @DSKOOL_21706
$position_score = 100

:DSKOOL_21706
if 
  37@ == 4
goto_if_false @DSKOOL_21731
$position_score = 80

:DSKOOL_21731
if 
  37@ == 3
goto_if_false @DSKOOL_21756
$position_score = 60

:DSKOOL_21756
if 
  37@ == 2
goto_if_false @DSKOOL_21781
$position_score = 40

:DSKOOL_21781
if 
  37@ == 1
goto_if_false @DSKOOL_21806
$position_score = 20

:DSKOOL_21806
if 
  37@ == 0
goto_if_false @DSKOOL_21831
$position_score = 0

:DSKOOL_21831
if 
  $lap_counter == 0
goto_if_false @DSKOOL_21856
$position_score = 0

:DSKOOL_21856
if 
  Car.IsUpsidedown($instructor_car)
goto_if_false @DSKOOL_21879
$position_score = 0

:DSKOOL_21879
if 
  not Car.IsInArea2D($instructor_car, -2042.0, -215.0, -2058.0, -280.0, False)
goto_if_false @DSKOOL_21924
$position_score = 0

:DSKOOL_21924
$instructor_car_heading = Car.GetHeading($instructor_car)
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_21972
$heading_score = 0
goto @DSKOOL_22255

:DSKOOL_21972
if 
  $instructor_car_heading_int == 180
goto_if_false @DSKOOL_22005
$heading_score = 100
goto @DSKOOL_22255

:DSKOOL_22005
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_22038
$heading_score = 0
goto @DSKOOL_22255

:DSKOOL_22038
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_22108
if 
  175 > $instructor_car_heading_int
goto_if_false @DSKOOL_22108
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_22255

:DSKOOL_22108
if 
  $instructor_car_heading_int > 174
goto_if_false @DSKOOL_22153
if 
  186 > $instructor_car_heading_int
goto_if_false @DSKOOL_22153
$heading_score = 100

:DSKOOL_22153
if 
  $instructor_car_heading_int > 185
goto_if_false @DSKOOL_22255
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_22255
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_22255

:DSKOOL_22255
if 
  1 > $heading_score
goto_if_false @DSKOOL_22280
$heading_score = 0

:DSKOOL_22280
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_22328
$overall_score = 0

:DSKOOL_22328
gosub @DSKOOL_31483
if 
  2 > $player_car_damage
goto_if_false @DSKOOL_22360
$player_car_damage = 0

:DSKOOL_22360
set_var_int_to_var_int $total_car_damage = $player_car_damage
sub_int_var_from_int_var $overall_score -= $total_car_damage
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_alleyoop_best_score
goto_if_false @DSKOOL_22439
set_lvar_int_to_var_int 47@ = $f1_alleyoop_best_score
set_var_int_to_var_int $f1_alleyoop_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_22446

:DSKOOL_22439
45@ = 0

:DSKOOL_22446
if 
  $f1_which_missions_are_open_flag == 15
goto_if_false @DSKOOL_22510
if 
  $overall_score > 69
goto_if_false @DSKOOL_22510
41@ = 2
$f1_which_missions_are_open_flag = 16
$instructor_car_dead_flag = 2
50@ = 16

:DSKOOL_22510
TIMERA = 0

:DSKOOL_22517
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_22577
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_22577
$instructor_car_dead_flag = 2
goto @DSKOOL_22623

:DSKOOL_22577
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_22616
goto @DSKOOL_22623

:DSKOOL_22616
goto @DSKOOL_22517

:DSKOOL_22623
gosub @DSKOOL_34872
Car.Delete($dummy_car1)
Car.Delete($dummy_car2)
Object.Delete(57@)
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_22679
Text.ClearPrints
goto @DSKOOL_1425
goto @DSKOOL_22686

:DSKOOL_22679
goto @DSKOOL_20059

:DSKOOL_22686
goto @DSKOOL_20440

:DSKOOL_22693
if 
  $mission_selection == 16
goto_if_false @DSKOOL_24457

:DSKOOL_22711
gosub @DSKOOL_29940

:DSKOOL_22718
$perfect_heading = 180.0
$car_timer = 0
gosub @DSKOOL_30049
$perfect_positionx = -2046.7
$perfect_positiony = -90.2
$perfect_positionz = 33.9
$cone_coords_x = -1724.3
$cone_coords_y = 1294.0
$cone_coords_z = 6.0
$instructor_car = Car.Create(506, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading($instructor_car, 0.0)
Car.SetWatertight($instructor_car, True)
if 
  34@ == 0
goto_if_false @DSKOOL_22931
Camera.SetFixedPosition(-2017.3, -45.0, 34.41, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2039.0, -100.3, 37.4, SwitchType.JumpCut)
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_22929
55@ = Char.CreateRandomAsDriver($instructor_car)

:DSKOOL_22929
return 

:DSKOOL_22931
Text.ClearPrints
World.SetCarDensityMultiplier(0.5)
Streaming.LoadScene($perfect_positionx, $perfect_positiony, $perfect_positionz)
35@ = Blip.AddForCoord($cone_coords_x, $cone_coords_y, $cone_coords_z)
42@ = Checkpoint.Create(CheckpointType.TubeArrow, $cone_coords_x, $cone_coords_y, $cone_coords_z, $perfect_positionx, $perfect_positiony, $perfect_positionz, 5.0)
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_31', 5000, 4)
gosub @DSKOOL_30761

:DSKOOL_23034
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_23069
$instructor_car_dead_flag = 2
goto @DSKOOL_24136

:DSKOOL_23069
gosub @DSKOOL_30829
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_23101
goto @DSKOOL_24457

:DSKOOL_23101
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_23126
goto @DSKOOL_24136

:DSKOOL_23126
if 
  $car_started == 0
goto_if_false @DSKOOL_23208
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_23194
Text.PrintBig('DSTART', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DS1_31', 5000, 4)

:DSKOOL_23194
gosub @DSKOOL_30935
goto @DSKOOL_24450

:DSKOOL_23208
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_24450
if 
  $car_timer > 260000
goto_if_false @DSKOOL_23252
Player.SetControl($player1, False)

:DSKOOL_23252
if 
  $lap_counter == 0
goto_if_false @DSKOOL_23373
if 
  Car.Locate3D($instructor_car, $cone_coords_x, $cone_coords_y, $cone_coords_z, 4.0, 4.0, 4.0, False)
goto_if_false @DSKOOL_23373
Blip.Remove(35@)
35@ = Blip.AddForCoord($perfect_positionx, $perfect_positiony, $perfect_positionz)
Checkpoint.Delete(42@)
42@ = Checkpoint.Create(CheckpointType.TubeEnd, $perfect_positionx, $perfect_positiony, $perfect_positionz, $perfect_positionx, $perfect_positiony, $perfect_positionz, 5.0)
$lap_counter = 1

:DSKOOL_23373
if 
  $lap_counter == 1
goto_if_false @DSKOOL_23445
if 
  Car.Locate3D($instructor_car, $perfect_positionx, $perfect_positiony, $perfect_positionz, 4.0, 4.0, 4.0, False)
goto_if_false @DSKOOL_23445
Blip.Remove(35@)
$lap_counter = 2

:DSKOOL_23445
Text.ClearPrints
if or
  Car.IsStopped($instructor_car)
  $lap_counter == 2
  Car.IsInWater($instructor_car)
  $car_timer >= 140000
goto_if_false @DSKOOL_24450
gosub @DSKOOL_31289
Checkpoint.Delete(42@)
set_var_int_to_var_int $variablea = $car_timer
set_var_int_to_var_int $overall_secs = $variablea
$overall_secs /= 1000
set_var_int_to_var_int $overall_millisecs = $overall_secs
$overall_millisecs *= 1000
set_var_int_to_var_int $variablec = $variablea
sub_int_var_from_int_var $variablec -= $overall_millisecs
set_var_int_to_var_int $overall_millisecs = $variablec
$overall_millisecs /= 10
$time_score = 0
if 
  2 > $lap_counter
goto_if_false @DSKOOL_23607
$time_score = 0
goto @DSKOOL_23865

:DSKOOL_23607
if 
  100000 > $variablea
goto_if_false @DSKOOL_23635
$time_score = 100

:DSKOOL_23635
if 
  $variablea >= 100000
goto_if_false @DSKOOL_23736
if 
  120000 > $variablea
goto_if_false @DSKOOL_23736
set_var_int_to_var_int $variablec = $variablea
$variablec -= 99999
cset_var_float_to_var_int $variableb =# $variablec
$variableb *= 0.0015
cset_var_int_to_var_float $variablea =# $variableb
$time_score = 100
sub_int_var_from_int_var $time_score -= $variablea

:DSKOOL_23736
if 
  $variablea >= 120000
goto_if_false @DSKOOL_23837
if 
  140000 > $variablea
goto_if_false @DSKOOL_23837
set_var_int_to_var_int $variablec = $variablea
$variablec -= 119999
cset_var_float_to_var_int $variableb =# $variablec
$variableb *= 0.0035
cset_var_int_to_var_float $variablea =# $variableb
$time_score = 70
sub_int_var_from_int_var $time_score -= $variablea

:DSKOOL_23837
if 
  $variablea >= 140000
goto_if_false @DSKOOL_23865
$time_score = 0

:DSKOOL_23865
if 
  1 > $time_score
goto_if_false @DSKOOL_23890
$time_score = 0

:DSKOOL_23890
if 
  $time_score > 99
goto_if_false @DSKOOL_23915
$time_score = 100

:DSKOOL_23915
set_var_int_to_var_int $overall_score = $time_score
gosub @DSKOOL_31483
set_var_int_to_var_int $total_car_damage = $player_car_damage
sub_int_var_from_int_var $overall_score -= $total_car_damage
gosub @DSKOOL_32196
if 
  is_int_var_greater_than_int_var $overall_score > $f1_cityslicking_best_score
goto_if_false @DSKOOL_24009
set_lvar_int_to_var_int 47@ = $f1_cityslicking_best_score
set_var_int_to_var_int $f1_cityslicking_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32678
goto @DSKOOL_24016

:DSKOOL_24009
45@ = 0

:DSKOOL_24016
$lap_counter = 5
TIMERA = 0

:DSKOOL_24030
wait 0
gosub @DSKOOL_32225
if 
  41@ <> 2
goto_if_false @DSKOOL_24090
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DSKOOL_24090
$instructor_car_dead_flag = 2
goto @DSKOOL_24136

:DSKOOL_24090
gosub @DSKOOL_32978
gosub @DSKOOL_34789
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_24129
goto @DSKOOL_24136

:DSKOOL_24129
goto @DSKOOL_24030

:DSKOOL_24136
if 
  $driving_test_passed == 0
goto_if_false @DSKOOL_24385
if 
  $f1_which_missions_are_open_flag == 16
goto_if_false @DSKOOL_24385
if 
  $overall_score > 69
goto_if_false @DSKOOL_24385
Camera.DoFade(500, Fade.Out)

:DSKOOL_24197
if 
  Camera.GetFadingStatus
goto_if_false @DSKOOL_24221
wait 0
goto @DSKOOL_24197

:DSKOOL_24221
Streaming.SetAreaVisible(3)
Char.SetAreaVisible($scplayer, 3)
World.ClearExtraColors(True)
Streaming.RequestCollision(-2031.1, -118.2)
Streaming.LoadScene(-2031.1, -118.2, 1034.2)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -2029.7, -115.5, 1034.2)
Char.SetHeading($scplayer, 0.0)
Char.ClearTasksImmediately($scplayer)
Car.Delete($instructor_car)
World.ClearArea(-2051.0, -174.0, 34.0, 300.0, True)
Hud.ClearTimer($car_timer)
Hud.FreezeTimer(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(500, Fade.In)

:DSKOOL_24354
if 
  Camera.GetFadingStatus
goto_if_false @DSKOOL_24378
wait 0
goto @DSKOOL_24354

:DSKOOL_24378
goto @DSKOOL_24495

:DSKOOL_24385
gosub @DSKOOL_34872
Blip.Remove(35@)
Checkpoint.Delete(42@)
World.SetCarDensityMultiplier(1.0)
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_24443
Text.ClearPrints
goto @DSKOOL_1425
goto @DSKOOL_24450

:DSKOOL_24443
goto @DSKOOL_22711

:DSKOOL_24450
goto @DSKOOL_23034

:DSKOOL_24457
Text.ClearPrints
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_24493
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)

:DSKOOL_24493
return 

:DSKOOL_24495
if 
  $driving_test_passed == 0
goto_if_false @DSKOOL_24616
Blip.Remove($dschool_contact_blip)
$dschool_contact_blip = Blip.AddShortRangeSpriteForContactPoint($testsX, $testsY, $testsZ, RadarSprite.School)
Blip.ChangeDisplay($dschool_contact_blip, BlipDisplay.BlipOnly)
CarGenerator.Switch($f1_gold_car_gen, 101)
CarGenerator.Switch($f1_chunky, 101)
Text.ClearPrints
Text.PrintWithNumberBig('DS_PASS', 15, 5000, TextStyle.Middle)
Stat.IncrementFloat(StatId.DrivingSkill, 40.0)
Audio.PlayMissionPassedTune(2)
Player.ClearWantedLevel($player1)
Stat.RegisterMissionPassed('FAR_1')
Stat.PlayerMadeProgress(1)
$driving_test_passed = 1

:DSKOOL_24616
return 

:DSKOOL_24618
if 
  $s5_stingers_left == 0
goto_if_false @DSKOOL_24866
if 
  $f1_the360_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_the180_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_whiprightterminate_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_popcontrol_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_burnlapright_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_conecoilright_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_the90_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_wheelieweave_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_spinrightgo_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_pittechnique_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_alleyoop_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_cityslicking_best_score >= 70
goto_if_false @DSKOOL_24866
CarGenerator.Switch($a51ventcover, 101)
$s5_stingers_left = 1

:DSKOOL_24866
if 
  $f1_bronze_award == 0
goto_if_false @DSKOOL_25114
if 
  $f1_the360_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_the180_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_whiprightterminate_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_popcontrol_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_burnlapright_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_conecoilright_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_the90_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_wheelieweave_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_spinrightgo_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_pittechnique_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_alleyoop_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_cityslicking_best_score >= 85
goto_if_false @DSKOOL_25114
CarGenerator.Switch($5182, 101)
$f1_bronze_award = 1

:DSKOOL_25114
if 
  $f1_silver_award == 0
goto_if_false @DSKOOL_25362
if 
  $f1_the360_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_the180_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_whiprightterminate_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_popcontrol_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_burnlapright_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_conecoilright_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_the90_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_wheelieweave_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_spinrightgo_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_pittechnique_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_alleyoop_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_cityslicking_best_score == 100
goto_if_false @DSKOOL_25362
CarGenerator.Switch($f1_silver_car_gen, 101)
$f1_silver_award = 1

:DSKOOL_25362
Hud.ClearTimer($car_timer)
Text.UseCommands(False)
Weather.Release
Streaming.MarkModelAsNoLongerNeeded(429)
Streaming.MarkModelAsNoLongerNeeded(420)
Streaming.MarkModelAsNoLongerNeeded(#TRAFFICCONE)
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.MarkModelAsNoLongerNeeded(496)
Streaming.MarkModelAsNoLongerNeeded(411)
Streaming.MarkModelAsNoLongerNeeded(506)
Streaming.MarkModelAsNoLongerNeeded(597)
Streaming.MarkModelAsNoLongerNeeded(281)
Streaming.MarkModelAsNoLongerNeeded(#TEMP_STINGER2)
Streaming.MarkModelAsNoLongerNeeded(#GARYS_LUV_RAMP)
Streaming.MarkModelAsNoLongerNeeded(#AD_JUMP)
Streaming.MarkModelAsNoLongerNeeded(#AD_ROADMARK1)
Streaming.MarkModelAsNoLongerNeeded(#AD_ROADMARK2)
Streaming.MarkModelAsNoLongerNeeded(#AD_FINISH)
Path.SwitchRoadsBackToOriginal(-2015.37, -76.08, 10.0, -2078.3, -66.75, 50.0)
Camera.AllowFixedCollision(False)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1184)
Garage.Activate('BODLAWN')
Garage.Activate('MODLAST')
Garage.Activate('MDSSFSE')
if 
  $japcar_mod_garage_open == 1
goto_if_false @DSKOOL_25576
Garage.Activate('MDS1SFS')
Garage.Activate('VECMOD')

:DSKOOL_25576
Game.SetNoResprays(False)
if 
  not Char.IsDead($scplayer)
goto_if_false @DSKOOL_25603
Char.ShutUpForScriptedSpeech($scplayer, False)

:DSKOOL_25603
Game.ShutAllCharsUp(False)
Txd.Remove
World.SetCarDensityMultiplier(1.0)
Hud.Display(True)
Hud.DisplayRadar(True)
Blip.Remove(35@)
Checkpoint.Delete(42@)
Game.EnableAmbientCrime(True)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

:DSKOOL_25654
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(8, 320.0, 225.0, 612.0, 438.0, 0, 0, 0, 44@)
if 
  43@ == 1
goto_if_false @DSKOOL_25776
if 
  255 > 44@
goto_if_false @DSKOOL_25769
44@ += 5
if 
  44@ > 255
goto_if_false @DSKOOL_25762
44@ = 255

:DSKOOL_25762
goto @DSKOOL_25776

:DSKOOL_25769
43@ = 2

:DSKOOL_25776
if 
  43@ == 3
goto_if_false @DSKOOL_25858
if 
  44@ > 0
goto_if_false @DSKOOL_25851
44@ -= 5
if 
  0 > 44@
goto_if_false @DSKOOL_25844
44@ = 0

:DSKOOL_25844
goto @DSKOOL_25858

:DSKOOL_25851
43@ = 0

:DSKOOL_25858
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(8, 320.0, 0.0, 640.0, 197.0, 0, 0, 0, 255)
gosub @DSKOOL_29878
Text.SetColor(255, 255, 255, 255)
if 
  $mission_selection == 1
goto_if_false @DSKOOL_25970
Text.Display(322.0, 31.0, 'DS_P')
set_lvar_int_to_var_int 46@ = $f1_the360_best_score
gosub @DSKOOL_27643

:DSKOOL_25970
if 
  $mission_selection == 2
goto_if_false @DSKOOL_26024
Text.Display(322.0, 31.0, 'DS_O')
set_lvar_int_to_var_int 46@ = $f1_the180_best_score
gosub @DSKOOL_27643

:DSKOOL_26024
if 
  $mission_selection == 3
goto_if_false @DSKOOL_26078
Text.Display(322.0, 31.0, 'DS_I')
set_lvar_int_to_var_int 46@ = $f1_whiprightterminate_best_score
gosub @DSKOOL_27643

:DSKOOL_26078
if 
  $mission_selection == 4
goto_if_false @DSKOOL_26132
Text.Display(322.0, 31.0, 'DS_I')
set_lvar_int_to_var_int 46@ = $f1_whiprightterminate_best_score
gosub @DSKOOL_27643

:DSKOOL_26132
if 
  $mission_selection == 5
goto_if_false @DSKOOL_26186
Text.Display(322.0, 31.0, 'DS_F')
set_lvar_int_to_var_int 46@ = $f1_popcontrol_best_score
gosub @DSKOOL_27643

:DSKOOL_26186
if 
  $mission_selection == 6
goto_if_false @DSKOOL_26240
Text.Display(322.0, 31.0, 'DS_E')
set_lvar_int_to_var_int 46@ = $f1_burnlapright_best_score
gosub @DSKOOL_27643

:DSKOOL_26240
if 
  $mission_selection == 7
goto_if_false @DSKOOL_26294
Text.Display(322.0, 31.0, 'DS_E')
set_lvar_int_to_var_int 46@ = $f1_burnlapright_best_score
gosub @DSKOOL_27643

:DSKOOL_26294
if 
  $mission_selection == 8
goto_if_false @DSKOOL_26348
Text.Display(322.0, 31.0, 'DS_N')
set_lvar_int_to_var_int 46@ = $f1_conecoilright_best_score
gosub @DSKOOL_27643

:DSKOOL_26348
if 
  $mission_selection == 9
goto_if_false @DSKOOL_26402
Text.Display(322.0, 31.0, 'DS_N')
set_lvar_int_to_var_int 46@ = $f1_conecoilright_best_score
gosub @DSKOOL_27643

:DSKOOL_26402
if 
  $mission_selection == 10
goto_if_false @DSKOOL_26456
Text.Display(322.0, 31.0, 'DS_A')
set_lvar_int_to_var_int 46@ = $f1_the90_best_score
gosub @DSKOOL_27643

:DSKOOL_26456
if 
  $mission_selection == 11
goto_if_false @DSKOOL_26510
Text.Display(322.0, 31.0, 'DS_K')
set_lvar_int_to_var_int 46@ = $f1_wheelieweave_best_score
gosub @DSKOOL_27643

:DSKOOL_26510
if 
  $mission_selection == 12
goto_if_false @DSKOOL_26564
Text.Display(322.0, 31.0, 'DS_C')
set_lvar_int_to_var_int 46@ = $f1_spinrightgo_best_score
gosub @DSKOOL_27643

:DSKOOL_26564
if 
  $mission_selection == 13
goto_if_false @DSKOOL_26618
Text.Display(322.0, 31.0, 'DS_C')
set_lvar_int_to_var_int 46@ = $f1_spinrightgo_best_score
gosub @DSKOOL_27643

:DSKOOL_26618
if 
  $mission_selection == 14
goto_if_false @DSKOOL_26672
Text.Display(322.0, 31.0, 'DS_L')
set_lvar_int_to_var_int 46@ = $f1_pittechnique_best_score
gosub @DSKOOL_27643

:DSKOOL_26672
if 
  $mission_selection == 15
goto_if_false @DSKOOL_26726
Text.Display(322.0, 31.0, 'DS_J')
set_lvar_int_to_var_int 46@ = $f1_alleyoop_best_score
gosub @DSKOOL_27643

:DSKOOL_26726
if 
  $mission_selection == 16
goto_if_false @DSKOOL_26780
Text.Display(322.0, 31.0, 'DS_G')
set_lvar_int_to_var_int 46@ = $f1_cityslicking_best_score
gosub @DSKOOL_27643

:DSKOOL_26780
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = Hud.GetColor(6)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(105.0, 375.0, 'DS1_53')
if 
  39@ <> 1
goto_if_false @DSKOOL_27055
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = Hud.GetColor(6)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(105.0, 325.0, 'DS1_54')
if 
  $f1_which_missions_are_open_flag <> 1
goto_if_false @DSKOOL_26997
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = Hud.GetColor(6)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(105.0, 350.0, 'DS1_52')
goto @DSKOOL_27055

:DSKOOL_26997
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = Hud.GetColor(HudObject.Radar)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(105.0, 350.0, 'DS1_52')

:DSKOOL_27055
gosub @DSKOOL_29700
Text.SetScale(1.45, 2.0)
51@, 52@, 53@, 54@ = Hud.GetColor(6)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(70.0, 372.0, 'DS1_63')
if 
  39@ <> 1
goto_if_false @DSKOOL_27389
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = Hud.GetColor(6)
Text.SetColor(51@, 52@, 53@, 54@)
Text.SetScale(1.45, 2.0)
Text.Display(70.0, 322.0, 'DS1_64')
if 
  $f1_which_missions_are_open_flag <> 1
goto_if_false @DSKOOL_27301
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = Hud.GetColor(6)
Text.SetColor(51@, 52@, 53@, 54@)
Text.SetScale(1.45, 2.0)
Text.Display(61.4, 347.0, 'DS1_62')

:DSKOOL_27301
if 
  $f1_which_missions_are_open_flag == 1
goto_if_false @DSKOOL_27389
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = Hud.GetColor(6)
Text.SetColor(51@, 52@, 53@, 54@)
Text.SetScale(1.45, 2.0)
Text.Display(61.4, 347.0, 'DS1_62')

:DSKOOL_27389
Text.SetScale(0.52, 1.45)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 160.0, 317.0, 320.0, -224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 480.0, 317.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(9, 160.0, 435.0, 320.0, 17.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(9, 480.0, 435.0, -320.0, 17.0, 150, 150, 150, 255)
return 

:DSKOOL_27643
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(8, 320.0, 430.0, 640.0, 250.0, 0, 0, 0, 255)
if 
  70 > 46@
goto_if_false @DSKOOL_27705
45@ = 1

:DSKOOL_27705
if 
  46@ > 69
goto_if_false @DSKOOL_27748
if 
  85 > 46@
goto_if_false @DSKOOL_27748
45@ = 2

:DSKOOL_27748
if 
  46@ > 84
goto_if_false @DSKOOL_27791
if 
  100 > 46@
goto_if_false @DSKOOL_27791
45@ = 3

:DSKOOL_27791
if 
  46@ == 100
goto_if_false @DSKOOL_27816
45@ = 4

:DSKOOL_27816
gosub @DSKOOL_29700
Text.SetRightJustify(False)
51@, 52@, 53@, 54@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(51@, 52@, 53@, 54@)
if 
  45@ > 1
goto_if_false @DSKOOL_27906
Text.DisplayWithNumber(217.0, 75.0, 'DS1_58', 46@)
goto @DSKOOL_28101

:DSKOOL_27906
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @DSKOOL_27945
Text.Display(175.0, 75.0, 'DS1_67')

:DSKOOL_27945
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @DSKOOL_27984
Text.Display(83.0, 75.0, 'DS1_67')

:DSKOOL_27984
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @DSKOOL_28023
Text.Display(89.0, 75.0, 'DS1_67')

:DSKOOL_28023
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @DSKOOL_28062
Text.Display(147.0, 75.0, 'DS1_67')

:DSKOOL_28062
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @DSKOOL_28101
Text.Display(65.0, 75.0, 'DS1_67')

:DSKOOL_28101
if 
  45@ > 1
goto_if_false @DSKOOL_28206
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, 250.0, 306.0, -60.0, 60.0, 180, 180, 180, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, 395.0, 306.0, 60.0, 60.0, 180, 180, 180, 255)
goto @DSKOOL_28286

:DSKOOL_28206
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(7, 250.0, 306.0, -60.0, 60.0, 180, 180, 180, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(7, 395.0, 306.0, 60.0, 60.0, 180, 180, 180, 255)

:DSKOOL_28286
Hud.SetSpritesDrawBeforeFade(True)
if 
  45@ == 1
goto_if_false @DSKOOL_28463
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @DSKOOL_28369
Hud.DrawSprite(6, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
goto @DSKOOL_28405

:DSKOOL_28369
Hud.DrawSprite(10, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)

:DSKOOL_28405
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(266.0, 375.0, 'DS1_68')

:DSKOOL_28463
if 
  45@ == 2
goto_if_false @DSKOOL_28575
Hud.DrawSprite(1, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(280.0, 375.0, 'DS1_57')

:DSKOOL_28575
if 
  45@ == 3
goto_if_false @DSKOOL_28687
Hud.DrawSprite(2, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(283.0, 375.0, 'DS1_56')

:DSKOOL_28687
if 
  45@ == 4
goto_if_false @DSKOOL_28799
Hud.DrawSprite(3, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
gosub @DSKOOL_29700
51@, 52@, 53@, 54@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(294.0, 375.0, 'DS1_55')

:DSKOOL_28799
return 

:DSKOOL_28801
if 
  34@ == 0
goto_if_false @DSKOOL_29126
if 
  $mission_selection == 1
goto_if_false @DSKOOL_28844
gosub @DSKOOL_3843

:DSKOOL_28844
if 
  $mission_selection == 2
goto_if_false @DSKOOL_28869
gosub @DSKOOL_5416

:DSKOOL_28869
if 
  $mission_selection == 4
goto_if_false @DSKOOL_28894
gosub @DSKOOL_6742

:DSKOOL_28894
if 
  $mission_selection == 5
goto_if_false @DSKOOL_28919
gosub @DSKOOL_8347

:DSKOOL_28919
if 
  $mission_selection == 7
goto_if_false @DSKOOL_28944
gosub @DSKOOL_9857

:DSKOOL_28944
if 
  $mission_selection == 9
goto_if_false @DSKOOL_28969
gosub @DSKOOL_11959

:DSKOOL_28969
if 
  $mission_selection == 10
goto_if_false @DSKOOL_28994
gosub @DSKOOL_13448

:DSKOOL_28994
if 
  $mission_selection == 11
goto_if_false @DSKOOL_29019
gosub @DSKOOL_15346

:DSKOOL_29019
if 
  $mission_selection == 13
goto_if_false @DSKOOL_29044
gosub @DSKOOL_16957

:DSKOOL_29044
if 
  $mission_selection == 14
goto_if_false @DSKOOL_29069
gosub @DSKOOL_18359

:DSKOOL_29069
if 
  $mission_selection == 15
goto_if_false @DSKOOL_29094
gosub @DSKOOL_20066

:DSKOOL_29094
if 
  $mission_selection == 16
goto_if_false @DSKOOL_29119
gosub @DSKOOL_22718

:DSKOOL_29119
34@ = 1

:DSKOOL_29126
if 
  34@ == 1
goto_if_false @DSKOOL_29363
if 
  $mission_selection == 14
goto_if_false @DSKOOL_29297
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_29290
if 
  not Streaming.HasCarRecordingBeenLoaded(14)
goto_if_false @DSKOOL_29197
Streaming.RequestCarRecording(14)

:DSKOOL_29197
if 
  not Streaming.HasCarRecordingBeenLoaded(3)
goto_if_false @DSKOOL_29216
Streaming.RequestCarRecording(3)

:DSKOOL_29216
if 
  Streaming.HasCarRecordingBeenLoaded(14)
goto_if_false @DSKOOL_29290
if 
  Streaming.HasCarRecordingBeenLoaded(3)
goto_if_false @DSKOOL_29290
Car.StartPlayback($instructor_car, 14)
if 
  not Car.IsDead($dummy_car1)
goto_if_false @DSKOOL_29276
Car.StartPlayback($dummy_car1, 3)

:DSKOOL_29276
43@ = 3
34@ = 2

:DSKOOL_29290
goto @DSKOOL_29363

:DSKOOL_29297
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_29363
if 
  not Streaming.HasCarRecordingBeenLoaded($mission_selection)
goto_if_false @DSKOOL_29341
Streaming.RequestCarRecording($mission_selection)
goto @DSKOOL_29363

:DSKOOL_29341
Car.StartPlayback($instructor_car, $mission_selection)
43@ = 3
34@ = 2

:DSKOOL_29363
if 
  34@ == 2
goto_if_false @DSKOOL_29448
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_29434
if 
  not Car.IsPlaybackGoingOn($instructor_car)
goto_if_false @DSKOOL_29427
43@ = 1
34@ = 4

:DSKOOL_29427
goto @DSKOOL_29448

:DSKOOL_29434
43@ = 1
34@ = 4

:DSKOOL_29448
if 
  34@ == 3
goto_if_false @DSKOOL_29480
43@ = 1
34@ = 4

:DSKOOL_29480
if 
  34@ == 4
goto_if_false @DSKOOL_29698
if 
  43@ == 2
goto_if_false @DSKOOL_29698
if 
  $mission_selection == 14
goto_if_false @DSKOOL_29555
if 
  not Car.IsDead($dummy_car1)
goto_if_false @DSKOOL_29555
Car.StopPlayback($dummy_car1)

:DSKOOL_29555
Car.StopPlayback($instructor_car)
Car.Delete($instructor_car)
World.ClearArea($noticeboard_x, $noticeboard_y, $noticeboard_z, 300.0, True)
Hud.ClearTimer($car_timer)
Hud.FreezeTimer(False)
Char.Delete(55@)
Char.Delete(56@)
Car.Delete($dummy_car1)
Car.Delete($dummy_car2)
Car.Delete($instructor_car)
Object.Delete(57@)
Object.Delete(58@)
Object.Delete(59@)
Streaming.RemoveCarRecording(1)
Streaming.RemoveCarRecording(2)
Streaming.RemoveCarRecording(3)
Streaming.RemoveCarRecording(4)
Streaming.RemoveCarRecording(5)
Streaming.RemoveCarRecording(7)
Streaming.RemoveCarRecording(9)
Streaming.RemoveCarRecording(10)
Streaming.RemoveCarRecording(11)
Streaming.RemoveCarRecording(13)
Streaming.RemoveCarRecording(14)
Streaming.RemoveCarRecording(15)
Streaming.RemoveCarRecording(16)
gosub @DSKOOL_35156
34@ = 0

:DSKOOL_29698
return 

:DSKOOL_29700
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(False)
Text.SetBackground(False)
Text.SetScale(0.52, 1.45)
Text.SetDropshadow(2, 0, 0, 0, 255)
Text.SetFont(Font.Menu)
return 

:DSKOOL_29762
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(False)
Text.SetBackground(False)
Text.SetScale(0.52, 1.45)
Text.SetDropshadow(2, 0, 0, 0, 255)
Text.SetFont(Font.Menu)
return 

:DSKOOL_29820
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
Text.SetScale(0.8, 2.6)
Text.SetDropshadow(2, 0, 0, 0, 255)
return 

:DSKOOL_29878
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
Text.SetScale(1.2, 4.0)
Text.SetDropshadow(3, 0, 0, 0, 255)
Text.SetFont(Font.Pricedown)
return 

:DSKOOL_29940
Camera.DoFade(500, Fade.Out)

:DSKOOL_29947
if 
  Camera.GetFadingStatus
goto_if_false @DSKOOL_29971
wait 0
goto @DSKOOL_29947

:DSKOOL_29971
if 
  $mission_selection == 16
goto_if_false @DSKOOL_30010
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
goto @DSKOOL_30024

:DSKOOL_30010
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)

:DSKOOL_30024
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Weather.ForceNow(WeatherType.ExtraSunnySf)
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($scplayer, 0)
World.ClearExtraColors(False)
return 

:DSKOOL_30049
$area_check1ax = 0.0
$area_check1ay = 0.0
$area_check1bx = 0.0
$area_check1by = 0.0
$area_check2ax = 0.0
$area_check2ay = 0.0
$area_check2bx = 0.0
$area_check2by = 0.0
$area_check3ax = 0.0
$area_check3ay = 0.0
$area_check3bx = 0.0
$area_check3by = 0.0
$area_check4ax = 0.0
$area_check4ay = 0.0
$area_check4bx = 0.0
$area_check4by = 0.0
$button_pressed = 0
$car_posx = 0.0
$car_posy = 0.0
$cone_coords_x = 0.0
$cone_coords_y = 0.0
$cone_coords_z = 0.0
$cone_circle_radius = 10.0
$car_started = 0
$circle_start_x = 0.0
$circle_start_y = 0.0
$camera_positionx = 0.0
$camera_positiony = 0.0
$camera_positionz = 0.0
$camera_position_int = 0
$dummy_car1_health = 0
$dummy_car2_health = 0
$finish_leftx = 0.0
$finish_lefty = 0.0
$finish_rightx = 0.0
$finish_righty = 0.0
$finished_watching_scores = 0
$heading_score = 0
$instructor_car_speed = 0.0
$instructor_car_heading = 0.0
$instructor_car_heading_int = 0
$instructor_car_health = 0
$instructor_car_dead_flag = 0
$lap_counter = 0
$lap1_secs = 0
$lap1_millisecs = 0
$lap2_secs = 0
$lap2_millisecs = 0
$lap3_secs = 0
$lap3_millisecs = 0
$lap4_secs = 0
$lap4_millisecs = 0
$lap5_secs = 0
$lap5_millisecs = 0
$overall_lap1 = 0
$overall_lap2 = 0
$overall_lap3 = 0
$overall_lap4 = 0
$overall_lap5 = 0
$overall_secs = 0
$overall_millisecs = 0
$overall_score = 0
$other_car_damage = 0
set_var_float_to_var_float $perfect_positionx = $start_coordsx
set_var_float_to_var_float $perfect_positiony = $start_coordsy
$perfect_positionz = World.GetGroundZFor3DCoord($perfect_positionx, $perfect_positiony, 50.0)
$player_car_damage = 0
$players_distance_from_perfectpos = 0.0
$position_score = 0
$time_score = 0
$total_instructor_car_health = 0
$total_dummy_car1_health = 0
$total_dummy_car2_health = 0
$total_car_damage = 0
$variablea = 0
$variableb = 0.0
$variablec = 0
$variabled = 0
$where_to_place_cones = 0.0
36@ = 0.0
37@ = 0
38@ = 0
41@ = 0
40@ = 0
return 

:DSKOOL_30761
Char.WarpIntoCar($scplayer, $instructor_car)
Car.LockDoors($instructor_car, CarLock.LockedPlayerInside)
wait 0
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.ClearWantedLevel($player1)
Camera.DoFade(500, Fade.In)

:DSKOOL_30796
if 
  Camera.GetFadingStatus
goto_if_false @DSKOOL_30820
wait 0
goto @DSKOOL_30796

:DSKOOL_30820
Player.SetControl($player1, True)
return 

:DSKOOL_30829
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_30896
if 
  $car_started == 1
goto_if_false @DSKOOL_30889
if 
  not Char.IsInCar($scplayer, $instructor_car)
goto_if_false @DSKOOL_30889
$instructor_car_dead_flag = 1

:DSKOOL_30889
goto @DSKOOL_30933

:DSKOOL_30896
if 
  Car.IsInWater($instructor_car)
goto_if_false @DSKOOL_30926
$instructor_car_dead_flag = 2
goto @DSKOOL_30933

:DSKOOL_30926
$instructor_car_dead_flag = 1

:DSKOOL_30933
return 

:DSKOOL_30935
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_30978
if 
  Char.IsInCar($scplayer, $instructor_car)
goto_if_false @DSKOOL_30978
$instructor_car_speed = Car.GetSpeed($instructor_car)

:DSKOOL_30978
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @DSKOOL_31253
if 
  $instructor_car_speed > 0.1
goto_if_false @DSKOOL_31253
Text.ClearPrints
if or
  $mission_selection == 10
  $mission_selection == 12
  $mission_selection == 13
  $mission_selection == 5
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_31091
Hud.DisplayTimer($car_timer, TimerDirection.Down)
Hud.SetTimerBeepCountdownTime($car_timer, 3)

:DSKOOL_31091
if or
  $mission_selection == 15
  $mission_selection == 8
  $mission_selection == 9
  $mission_selection == 2
  $mission_selection == 1
goto_if_false @DSKOOL_31151
Hud.DisplayTimer($car_timer, TimerDirection.Down)
Hud.SetTimerBeepCountdownTime($car_timer, 3)

:DSKOOL_31151
if or
  $mission_selection == 6
  $mission_selection == 7
  $mission_selection == 16
goto_if_false @DSKOOL_31190
Hud.DisplayTimer($car_timer, TimerDirection.Up)

:DSKOOL_31190
if 
  $mission_selection == 14
goto_if_false @DSKOOL_31246
if 
  not Car.IsDead($dummy_car1)
goto_if_false @DSKOOL_31246
Car.SetForwardSpeed($dummy_car1, 6.0)
Car.SetTempAction($dummy_car1, TempAction.GoForward, 864000000)

:DSKOOL_31246
$car_started = 1

:DSKOOL_31253
return 

:DSKOOL_31255
if 
  $car_timer == 0
goto_if_false @DSKOOL_31287
Player.SetControl($player1, False)
Player.ApplyBrakesToCar($player1, True)

:DSKOOL_31287
return 

:DSKOOL_31289
Player.SetControl($player1, False)
Car.FreezePosition($instructor_car, True)
Hud.FreezeTimer(True)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1183)
return 

:DSKOOL_31329
$player_x, $player_y, $player_z = Car.GetCoordinates($instructor_car)
$players_distance_from_perfectpos = Math.GetDistanceBetweenCoords2D($player_x, $player_y, $perfect_positionx, $perfect_positiony)
if 
  $players_distance_from_perfectpos > 0.5
goto_if_false @DSKOOL_31466
if 
  10.0 > $players_distance_from_perfectpos
goto_if_false @DSKOOL_31452
$players_distance_from_perfectpos -= 0.5
$players_distance_from_perfectpos *= 10.42
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @DSKOOL_31459

:DSKOOL_31452
$position_score = 0

:DSKOOL_31459
goto @DSKOOL_31473

:DSKOOL_31466
$position_score = 100

:DSKOOL_31473
add_int_var_to_int_var $overall_score += $position_score
return 

:DSKOOL_31483
$instructor_car_health = Car.GetHealth($instructor_car)
$player_car_damage = 1000
sub_int_var_from_int_var $player_car_damage -= $instructor_car_health
if 
  $mission_selection == 16
goto_if_false @DSKOOL_31539
$player_car_damage /= 10
goto @DSKOOL_31546

:DSKOOL_31539
$player_car_damage /= 2

:DSKOOL_31546
if 
  $player_car_damage > 100
goto_if_false @DSKOOL_31571
$player_car_damage = 100

:DSKOOL_31571
return 

:DSKOOL_31573
$total_car_damage = 0
$trafficcone_counter = 0
if 
  $mission_selection == 1
goto_if_false @DSKOOL_31664

:DSKOOL_31605
if 
  15 > $trafficcone_counter
goto_if_false @DSKOOL_31664
if 
  Object.HasBeenDamaged($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_31650
$total_car_damage += 10

:DSKOOL_31650
$trafficcone_counter += 1
goto @DSKOOL_31605

:DSKOOL_31664
if 
  $mission_selection == 2
goto_if_false @DSKOOL_31741

:DSKOOL_31682
if 
  25 > $trafficcone_counter
goto_if_false @DSKOOL_31741
if 
  Object.HasBeenDamaged($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_31727
$total_car_damage += 10

:DSKOOL_31727
$trafficcone_counter += 1
goto @DSKOOL_31682

:DSKOOL_31741
if or
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_31825

:DSKOOL_31766
if 
  46 > $trafficcone_counter
goto_if_false @DSKOOL_31825
if 
  Object.HasBeenDamaged($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_31811
$total_car_damage += 10

:DSKOOL_31811
$trafficcone_counter += 1
goto @DSKOOL_31766

:DSKOOL_31825
if 
  $mission_selection == 5
goto_if_false @DSKOOL_31902

:DSKOOL_31843
if 
  37 > $trafficcone_counter
goto_if_false @DSKOOL_31902
if 
  Object.HasBeenDamaged($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_31888
$total_car_damage += 10

:DSKOOL_31888
$trafficcone_counter += 1
goto @DSKOOL_31843

:DSKOOL_31902
if or
  $mission_selection == 6
  $mission_selection == 7
goto_if_false @DSKOOL_31986

:DSKOOL_31927
if 
  42 > $trafficcone_counter
goto_if_false @DSKOOL_31986
if 
  Object.HasBeenDamaged($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_31972
$total_car_damage += 10

:DSKOOL_31972
$trafficcone_counter += 1
goto @DSKOOL_31927

:DSKOOL_31986
if or
  $mission_selection == 8
  $mission_selection == 9
goto_if_false @DSKOOL_32070

:DSKOOL_32011
if 
  30 > $trafficcone_counter
goto_if_false @DSKOOL_32070
if 
  Object.HasBeenDamaged($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_32056
$total_car_damage += 10

:DSKOOL_32056
$trafficcone_counter += 1
goto @DSKOOL_32011

:DSKOOL_32070
if or
  $mission_selection == 12
  $mission_selection == 13
goto_if_false @DSKOOL_32154

:DSKOOL_32095
if 
  31 > $trafficcone_counter
goto_if_false @DSKOOL_32154
if 
  Object.HasBeenDamaged($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_32140
$total_car_damage += 10

:DSKOOL_32140
$trafficcone_counter += 1
goto @DSKOOL_32095

:DSKOOL_32154
$total_car_damage *= 2
if 
  $total_car_damage > 90
goto_if_false @DSKOOL_32186
$total_car_damage = 100

:DSKOOL_32186
sub_int_var_from_int_var $overall_score -= $total_car_damage
return 

:DSKOOL_32196
if 
  1 > $overall_score
goto_if_false @DSKOOL_32221
$overall_score = 0

:DSKOOL_32221
Text.ClearPrints
return 

:DSKOOL_32225
if 
  not Car.IsDead($instructor_car)
goto_if_false @DSKOOL_32676
if 
  $camera_position_int == 0
goto_if_false @DSKOOL_32421
$camera_positionx, $camera_positiony, $camera_positionz = Car.GetCoordinates($instructor_car)
$camera_positionz += 5.0
$camera_positionx, $camera_positiony, $z = Car.GetOffsetInWorldCoords($instructor_car, 15.0, 0.0, 5.0)
Camera.SetFixedPosition($camera_positionx, $camera_positiony, $camera_positionz, 0.0, 0.0, 0.0)
60@ = Camera.GetPlayerInCarMode()
if or
  60@ == 1
  60@ == 2
  60@ == 3
goto_if_false @DSKOOL_32391
Camera.PointAtCar($instructor_car, CameraMode.Fixed, SwitchType.Interpolation)
goto @DSKOOL_32400

:DSKOOL_32391
Camera.PointAtCar($instructor_car, CameraMode.Fixed, SwitchType.JumpCut)

:DSKOOL_32400
Camera.SetInterpolationParameters(50.0, 2000)
Camera.AllowFixedCollision(True)
$camera_position_int = 1

:DSKOOL_32421
if 
  TIMERA > 3000
goto_if_false @DSKOOL_32558
if 
  6000 > TIMERA
goto_if_false @DSKOOL_32558
if 
  $camera_position_int == 1
goto_if_false @DSKOOL_32558
$camera_positionx, $camera_positiony, $z = Car.GetOffsetInWorldCoords($instructor_car, 0.0, 15.0, 5.0)
Camera.SetFixedPosition($camera_positionx, $camera_positiony, $camera_positionz, 0.0, 0.0, 0.0)
Camera.PointAtCar($instructor_car, CameraMode.Fixed, SwitchType.Interpolation)
Camera.SetInterpolationParameters(50.0, 2000)
$camera_position_int = 2

:DSKOOL_32558
if 
  TIMERA > 6000
goto_if_false @DSKOOL_32676
if 
  $camera_position_int == 2
goto_if_false @DSKOOL_32676
$camera_positionx, $camera_positiony, $z = Car.GetOffsetInWorldCoords($instructor_car, -15.0, 0.0, 5.0)
Camera.SetFixedPosition($camera_positionx, $camera_positiony, $camera_positionz, 0.0, 0.0, 0.0)
Camera.PointAtCar($instructor_car, CameraMode.Fixed, SwitchType.Interpolation)
Camera.SetInterpolationParameters(50.0, 2000)
$camera_position_int = 3

:DSKOOL_32676
return 

:DSKOOL_32678
45@ = 0
if 
  $overall_score > 69
goto_if_false @DSKOOL_32787
if 
  85 > $overall_score
goto_if_false @DSKOOL_32787
if and
  47@ > 69
  85 > 47@
goto_if_false @DSKOOL_32760
45@ = 0
goto @DSKOOL_32787

:DSKOOL_32760
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
45@ = 2

:DSKOOL_32787
if 
  $overall_score > 84
goto_if_false @DSKOOL_32889
if 
  100 > $overall_score
goto_if_false @DSKOOL_32889
if and
  47@ > 84
  100 > 47@
goto_if_false @DSKOOL_32862
45@ = 0
goto @DSKOOL_32889

:DSKOOL_32862
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
45@ = 3

:DSKOOL_32889
if 
  $overall_score == 100
goto_if_false @DSKOOL_32976
if 
  47@ == 100
goto_if_false @DSKOOL_32939
45@ = 0
goto @DSKOOL_32976

:DSKOOL_32939
Stat.IncrementFloat(StatId.DrivingSkill, 30.0)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
45@ = 4

:DSKOOL_32976
return 

:DSKOOL_32978
Hud.Display(False)
Hud.DisplayRadar(False)
Text.ClearPrints
Hud.ClearTimer($car_timer)
if 
  2 > 45@
goto_if_false @DSKOOL_33051
Hud.DrawWindow(160.0, 220.0, 490.0, 400.0, 'DS1_65', 3)
goto @DSKOOL_33084

:DSKOOL_33051
Hud.DrawWindow(160.0, 200.0, 490.0, 400.0, 'DUMMY', 3)

:DSKOOL_33084
if or
  $mission_selection == 6
  $mission_selection == 7
  $mission_selection == 16
goto_if_false @DSKOOL_33392
gosub @DSKOOL_29762
51@, 52@, 53@, 54@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(180.0, 255.0, 'DS1_72')
gosub @DSKOOL_29762
Text.SetRightJustify(True)
Text.SetColor(255, 255, 255, 255)
if 
  $overall_millisecs > 9
goto_if_false @DSKOOL_33251
Text.DisplayWith2Numbers(450.0, 255.0, 'DS1_21', $overall_secs, $overall_millisecs)
goto @DSKOOL_33278

:DSKOOL_33251
Text.DisplayWith2Numbers(450.0, 255.0, 'DS1_22', $overall_secs, $overall_millisecs)

:DSKOOL_33278
gosub @DSKOOL_29762
51@, 52@, 53@, 54@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(180.0, 275.0, 'DS1_23')
gosub @DSKOOL_29762
Text.SetRightJustify(True)
Text.SetColor(255, 255, 255, 255)
Text.DisplayWithNumber(450.0, 275.0, 'DS1_69', $time_score)
goto @DSKOOL_33606

:DSKOOL_33392
gosub @DSKOOL_29762
51@, 52@, 53@, 54@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(180.0, 255.0, 'DS1_5')
gosub @DSKOOL_29762
Text.SetRightJustify(True)
Text.SetColor(255, 255, 255, 255)
Text.DisplayWithNumber(450.0, 255.0, 'DS1_69', $heading_score)
gosub @DSKOOL_29762
51@, 52@, 53@, 54@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(180.0, 275.0, 'DS1_6')
gosub @DSKOOL_29762
Text.SetRightJustify(True)
Text.SetColor(255, 255, 255, 255)
Text.DisplayWithNumber(450.0, 275.0, 'DS1_69', $position_score)

:DSKOOL_33606
gosub @DSKOOL_29762
51@, 52@, 53@, 54@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(180.0, 295.0, 'DS1_7')
gosub @DSKOOL_29762
Text.SetRightJustify(True)
51@, 52@, 53@, 54@ = Hud.GetColor(0)
Text.SetColor(51@, 52@, 53@, 54@)
Text.DisplayWithNumber(450.0, 295.0, 'DS1_70', $total_car_damage)
gosub @DSKOOL_29762
51@, 52@, 53@, 54@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(180.0, 315.0, 'DS1_10')
gosub @DSKOOL_29762
Text.SetRightJustify(True)
Text.SetColor(255, 255, 255, 255)
Text.DisplayWithNumber(450.0, 315.0, 'DS1_69', $overall_score)
if or
  41@ == 1
  41@ == 2
goto_if_false @DSKOOL_34196
if 
  45@ > 0
goto_if_false @DSKOOL_34196
Hud.DrawSprite(4, 250.0, 199.0, -60.0, 60.0, 180, 180, 180, 255)
Hud.DrawSprite(4, 392.0, 199.0, 60.0, 60.0, 180, 180, 180, 255)
if 
  45@ == 2
goto_if_false @DSKOOL_34005
Hud.DrawSprite(1, 320.0, 200.0, 110.0, 95.0, 160, 160, 160, 255)

:DSKOOL_34005
if 
  45@ == 3
goto_if_false @DSKOOL_34059
Hud.DrawSprite(2, 320.0, 200.0, 110.0, 95.0, 160, 160, 160, 255)

:DSKOOL_34059
if 
  45@ == 4
goto_if_false @DSKOOL_34113
Hud.DrawSprite(3, 320.0, 200.0, 110.0, 95.0, 160, 160, 160, 255)

:DSKOOL_34113
gosub @DSKOOL_29878
Text.SetEdge(2, 0, 0, 0, 255)
Text.SetScale(1.0, 3.4)
51@, 52@, 53@, 54@ = Hud.GetColor(6)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(323.0, 65.0, 'DS1_47')

:DSKOOL_34196
if or
  41@ == 1
  41@ == 2
goto_if_false @DSKOOL_34288
gosub @DSKOOL_29878
Text.SetEdge(2, 0, 0, 0, 255)
Text.SetScale(1.0, 3.4)
Text.SetColor(255, 255, 255, 255)
Text.Display(323.0, 110.0, 'DS1_46')

:DSKOOL_34288
if 
  41@ <> 2
goto_if_false @DSKOOL_34593
gosub @DSKOOL_29762
Text.SetScale(1.45, 2.0)
51@, 52@, 53@, 54@ = Hud.GetColor(6)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(180.0, 342.0, 'DS1_64')
gosub @DSKOOL_29762
Text.SetScale(0.52, 1.45)
51@, 52@, 53@, 54@ = Hud.GetColor(6)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(215.0, 345.0, 'DS1_66')
gosub @DSKOOL_29762
Text.SetScale(1.45, 2.0)
51@, 52@, 53@, 54@ = Hud.GetColor(6)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(180.0, 362.0, 'DS1_63')
gosub @DSKOOL_29762
Text.SetScale(0.52, 1.45)
51@, 52@, 53@, 54@ = Hud.GetColor(6)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(215.0, 365.0, 'DS1_53')
goto @DSKOOL_34787

:DSKOOL_34593
gosub @DSKOOL_29762
Text.SetScale(0.52, 1.45)
Text.SetColor(255, 255, 255, 255)
Text.Display(180.0, 345.0, 'DS1_71')
gosub @DSKOOL_29762
Text.SetScale(1.45, 2.0)
51@, 52@, 53@, 54@ = Hud.GetColor(6)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(180.0, 362.0, 'DS1_64')
gosub @DSKOOL_29762
Text.SetScale(0.52, 1.45)
51@, 52@, 53@, 54@ = Hud.GetColor(6)
Text.SetColor(51@, 52@, 53@, 54@)
Text.Display(215.0, 365.0, 'DS1_66')

:DSKOOL_34787
return 

:DSKOOL_34789
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DSKOOL_34845
if 
  $button_pressed == 1
goto_if_false @DSKOOL_34838
$button_pressed = 0
$finished_watching_scores = 1

:DSKOOL_34838
goto @DSKOOL_34870

:DSKOOL_34845
if 
  $button_pressed == 0
goto_if_false @DSKOOL_34870
$button_pressed = 1

:DSKOOL_34870
return 

:DSKOOL_34872
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1184)
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:DSKOOL_34901
if 
  Camera.GetFadingStatus
goto_if_false @DSKOOL_34925
wait 0
goto @DSKOOL_34901

:DSKOOL_34925
Text.ClearPrints
Text.ClearThisBigPrint('DS1_46')
Text.ClearThisBigPrint('DS1_47')
Camera.AllowFixedCollision(False)
Player.ApplyBrakesToCar($player1, False)
Char.ClearTasksImmediately($scplayer)
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_35043
Text.ClearPrints
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DSKOOL_35022
Char.WarpFromCarToCoord($scplayer, $noticeboard_x, $noticeboard_y, $noticeboard_z)
goto @DSKOOL_35036

:DSKOOL_35022
Char.SetCoordinates($scplayer, $noticeboard_x, $noticeboard_y, $noticeboard_z)

:DSKOOL_35036
goto @DSKOOL_35094

:DSKOOL_35043
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DSKOOL_35080
Char.WarpFromCarToCoord($scplayer, $noticeboard_x, $noticeboard_y, $noticeboard_z)
goto @DSKOOL_35094

:DSKOOL_35080
Char.SetCoordinates($scplayer, $noticeboard_x, $noticeboard_y, $noticeboard_z)

:DSKOOL_35094
Text.ClearPrints
wait 0
Text.ClearPrints
Car.Delete($instructor_car)
World.ClearArea($noticeboard_x, $noticeboard_y, $noticeboard_z, 300.0, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Text.ClearPrints
wait 0
Text.ClearPrints
Hud.ClearTimer($car_timer)
Hud.FreezeTimer(False)
Hud.Display(True)
Hud.DisplayRadar(True)
return 

:DSKOOL_35156
Text.ClearPrints
$trafficcone_counter = 0

:DSKOOL_35165
if 
  46 > $trafficcone_counter
goto_if_false @DSKOOL_35208
Text.ClearPrints
Object.Delete($trafficcones($trafficcone_counter,46i))
$trafficcone_counter += 1
goto @DSKOOL_35165

:DSKOOL_35208
return 

:DSKOOL_35210
$trafficcone_counter = 0
if 
  $mission_selection == 1
goto_if_false @DSKOOL_35294

:DSKOOL_35235
if 
  15 > $trafficcone_counter
goto_if_false @DSKOOL_35294
$trafficcones($trafficcone_counter,46i) = Object.CreateNoOffset(#TRAFFICCONE, 0.0, 0.0, 100.0)
$trafficcone_counter += 1
goto @DSKOOL_35235

:DSKOOL_35294
if 
  $mission_selection == 2
goto_if_false @DSKOOL_35371

:DSKOOL_35312
if 
  25 > $trafficcone_counter
goto_if_false @DSKOOL_35371
$trafficcones($trafficcone_counter,46i) = Object.CreateNoOffset(#TRAFFICCONE, 0.0, 0.0, 100.0)
$trafficcone_counter += 1
goto @DSKOOL_35312

:DSKOOL_35371
if or
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_35455

:DSKOOL_35396
if 
  46 > $trafficcone_counter
goto_if_false @DSKOOL_35455
$trafficcones($trafficcone_counter,46i) = Object.CreateNoOffset(#TRAFFICCONE, 0.0, 0.0, 100.0)
$trafficcone_counter += 1
goto @DSKOOL_35396

:DSKOOL_35455
if 
  $mission_selection == 5
goto_if_false @DSKOOL_35532

:DSKOOL_35473
if 
  37 > $trafficcone_counter
goto_if_false @DSKOOL_35532
$trafficcones($trafficcone_counter,46i) = Object.CreateNoOffset(#TRAFFICCONE, 0.0, 0.0, 100.0)
$trafficcone_counter += 1
goto @DSKOOL_35473

:DSKOOL_35532
if or
  $mission_selection == 6
  $mission_selection == 7
goto_if_false @DSKOOL_35616

:DSKOOL_35557
if 
  42 > $trafficcone_counter
goto_if_false @DSKOOL_35616
$trafficcones($trafficcone_counter,46i) = Object.CreateNoOffset(#TRAFFICCONE, 0.0, 0.0, 100.0)
$trafficcone_counter += 1
goto @DSKOOL_35557

:DSKOOL_35616
if or
  $mission_selection == 8
  $mission_selection == 9
goto_if_false @DSKOOL_35700

:DSKOOL_35641
if 
  30 > $trafficcone_counter
goto_if_false @DSKOOL_35700
$trafficcones($trafficcone_counter,46i) = Object.CreateNoOffset(#TRAFFICCONE, 0.0, 0.0, 100.0)
$trafficcone_counter += 1
goto @DSKOOL_35641

:DSKOOL_35700
if or
  $mission_selection == 12
  $mission_selection == 13
goto_if_false @DSKOOL_35784

:DSKOOL_35725
if 
  31 > $trafficcone_counter
goto_if_false @DSKOOL_35784
$trafficcones($trafficcone_counter,46i) = Object.CreateNoOffset(#TRAFFICCONE, 0.0, 0.0, 100.0)
$trafficcone_counter += 1
goto @DSKOOL_35725

:DSKOOL_35784
if 
  $mission_selection == 1
goto_if_false @DSKOOL_36488
$cone_circle_radius = 6.0
$where_to_place_cones = 0.0
$circle_start_x, $circle_start_y, $cone_coords_z = Car.GetOffsetInWorldCoords($instructor_car, 0.0, 1.0, -0.5)
$cone_coords_z = World.GetGroundZFor3DCoord($circle_start_x, $circle_start_y, 40.0)
$cone_coords_z += 0.4

:DSKOOL_35877
$cone_coords_x = Math.Sin($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = Math.Cos($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 0.0
goto_if_false @DSKOOL_35960
Object.SetCoordinates($trafficcones[0], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_35960
if 
  $where_to_place_cones == 24.0
goto_if_false @DSKOOL_35995
Object.SetCoordinates($trafficcones[1], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_35995
if 
  $where_to_place_cones == 48.0
goto_if_false @DSKOOL_36030
Object.SetCoordinates($trafficcones[2], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36030
if 
  $where_to_place_cones == 72.0
goto_if_false @DSKOOL_36065
Object.SetCoordinates($trafficcones[3], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36065
if 
  $where_to_place_cones == 96.0
goto_if_false @DSKOOL_36100
Object.SetCoordinates($trafficcones[4], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36100
if 
  $where_to_place_cones == 120.0
goto_if_false @DSKOOL_36135
Object.SetCoordinates($trafficcones[5], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36135
if 
  $where_to_place_cones == 144.0
goto_if_false @DSKOOL_36170
Object.SetCoordinates($trafficcones[6], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36170
if 
  $where_to_place_cones == 168.0
goto_if_false @DSKOOL_36205
Object.SetCoordinates($trafficcones[7], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36205
if 
  $where_to_place_cones == 192.0
goto_if_false @DSKOOL_36240
Object.SetCoordinates($trafficcones[8], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36240
if 
  $where_to_place_cones == 216.0
goto_if_false @DSKOOL_36275
Object.SetCoordinates($trafficcones[9], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36275
if 
  $where_to_place_cones == 240.0
goto_if_false @DSKOOL_36310
Object.SetCoordinates($trafficcones[10], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36310
if 
  $where_to_place_cones == 264.0
goto_if_false @DSKOOL_36345
Object.SetCoordinates($trafficcones[11], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36345
if 
  $where_to_place_cones == 288.0
goto_if_false @DSKOOL_36380
Object.SetCoordinates($trafficcones[12], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36380
if 
  $where_to_place_cones == 312.0
goto_if_false @DSKOOL_36415
Object.SetCoordinates($trafficcones[13], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36415
if 
  $where_to_place_cones == 336.0
goto_if_false @DSKOOL_36450
Object.SetCoordinates($trafficcones[14], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36450
$where_to_place_cones += 24.0
if 
  360.0 > $where_to_place_cones
goto_if_false @DSKOOL_36488
goto @DSKOOL_35877

:DSKOOL_36488
if 
  $mission_selection == 2
goto_if_false @DSKOOL_37377
$cone_circle_radius = 6.0
$where_to_place_cones = 90.0
$circle_start_x, $circle_start_y, $cone_coords_z = Car.GetOffsetInWorldCoords($instructor_car, 0.0, 86.0, -0.5)
$cone_coords_z = World.GetGroundZFor3DCoord($circle_start_x, $circle_start_y, 40.0)
$cone_coords_z += 0.4

:DSKOOL_36581
$cone_coords_x = Math.Sin($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = Math.Cos($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 120.0
goto_if_false @DSKOOL_36664
Object.SetCoordinates($trafficcones[0], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36664
if 
  $where_to_place_cones == 150.0
goto_if_false @DSKOOL_36699
Object.SetCoordinates($trafficcones[1], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36699
if 
  $where_to_place_cones == 180.0
goto_if_false @DSKOOL_36734
Object.SetCoordinates($trafficcones[2], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36734
if 
  $where_to_place_cones == 210.0
goto_if_false @DSKOOL_36769
Object.SetCoordinates($trafficcones[3], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36769
if 
  $where_to_place_cones == 240.0
goto_if_false @DSKOOL_36804
Object.SetCoordinates($trafficcones[4], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_36804
$where_to_place_cones += 30.0
if 
  271.0 > $where_to_place_cones
goto_if_false @DSKOOL_36842
goto @DSKOOL_36581

:DSKOOL_36842
Object.PlaceRelativeToCar($trafficcones[7], $instructor_car, -7.0, 74.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[8], $instructor_car, 7.0, 74.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[9], $instructor_car, -7.0, 78.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[10], $instructor_car, 7.0, 78.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[11], $instructor_car, -7.0, 82.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[12], $instructor_car, 7.0, 82.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[13], $instructor_car, -7.0, 86.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[14], $instructor_car, 7.0, 86.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[15], $instructor_car, 0.0, 82.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[16], $instructor_car, -3.0, 4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[17], $instructor_car, 3.0, 4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[18], $instructor_car, -3.0, 0.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[19], $instructor_car, 3.0, 0.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[20], $instructor_car, -3.0, -4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[21], $instructor_car, 3.0, -4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[22], $instructor_car, 0.0, -4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[23], $instructor_car, 0.0, 74.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[24], $instructor_car, 0.0, 78.0, -0.5)
$trafficcone_counter = 7

:DSKOOL_37263
if 
  25 > $trafficcone_counter
goto_if_false @DSKOOL_37377
if 
  Object.DoesExist($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_37363
$cone_coords_x, $cone_coords_y, $cone_coords_z = Object.GetCoordinates($trafficcones($trafficcone_counter,46i))
$cone_coords_z = World.GetGroundZFor3DCoord($cone_coords_x, $cone_coords_y, 40.0)
$cone_coords_z += 0.4
Object.SetCoordinates($trafficcones($trafficcone_counter,46i), $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_37363
$trafficcone_counter += 1
goto @DSKOOL_37263

:DSKOOL_37377
if or
  $mission_selection == 12
  $mission_selection == 13
goto_if_false @DSKOOL_37868
Object.PlaceRelativeToCar($trafficcones[0], $instructor_car, 0.0, 4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[1], $instructor_car, -3.0, 4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[2], $instructor_car, 3.0, 4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[3], $instructor_car, -3.0, 0.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[4], $instructor_car, 3.0, 0.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[5], $instructor_car, -3.0, -4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[6], $instructor_car, 3.0, -4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[7], $instructor_car, -3.0, -8.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[8], $instructor_car, 3.0, -8.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[9], $instructor_car, -3.0, -12.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[10], $instructor_car, 3.0, -12.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[11], $instructor_car, -3.0, -16.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[12], $instructor_car, 3.0, -16.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[13], $instructor_car, -3.0, -20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[14], $instructor_car, 3.0, -20.0, -0.5)
$trafficcone_counter = 0

:DSKOOL_37754
if 
  15 > $trafficcone_counter
goto_if_false @DSKOOL_37868
if 
  Object.DoesExist($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_37854
$cone_coords_x, $cone_coords_y, $cone_coords_z = Object.GetCoordinates($trafficcones($trafficcone_counter,46i))
$cone_coords_z = World.GetGroundZFor3DCoord($cone_coords_x, $cone_coords_y, 40.0)
$cone_coords_z += 0.4
Object.SetCoordinates($trafficcones($trafficcone_counter,46i), $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_37854
$trafficcone_counter += 1
goto @DSKOOL_37754

:DSKOOL_37868
if 
  $mission_selection == 12
goto_if_false @DSKOOL_38375
Object.PlaceRelativeToCar($trafficcones[15], $instructor_car, -3.0, -24.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[16], $instructor_car, 6.0, -22.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[17], $instructor_car, 0.0, -28.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[18], $instructor_car, 8.0, -24.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[19], $instructor_car, 3.0, -30.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[20], $instructor_car, 10.0, -26.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[21], $instructor_car, 4.0, -32.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[22], $instructor_car, 10.0, -30.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[23], $instructor_car, 9.0, -32.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[24], $instructor_car, 4.0, -36.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[25], $instructor_car, 9.0, -36.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[26], $instructor_car, 4.0, -40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[27], $instructor_car, 9.0, -40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[28], $instructor_car, 4.0, -44.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[29], $instructor_car, 9.0, -44.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[30], $instructor_car, 6.5, -44.0, -0.5)
$trafficcone_counter = 15

:DSKOOL_38261
if 
  31 > $trafficcone_counter
goto_if_false @DSKOOL_38375
if 
  Object.DoesExist($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_38361
$cone_coords_x, $cone_coords_y, $cone_coords_z = Object.GetCoordinates($trafficcones($trafficcone_counter,46i))
$cone_coords_z = World.GetGroundZFor3DCoord($cone_coords_x, $cone_coords_y, 40.0)
$cone_coords_z += 0.4
Object.SetCoordinates($trafficcones($trafficcone_counter,46i), $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_38361
$trafficcone_counter += 1
goto @DSKOOL_38261

:DSKOOL_38375
if 
  $mission_selection == 13
goto_if_false @DSKOOL_38882
Object.PlaceRelativeToCar($trafficcones[15], $instructor_car, 3.0, -24.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[16], $instructor_car, -6.0, -22.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[17], $instructor_car, 0.0, -28.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[18], $instructor_car, -8.0, -24.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[19], $instructor_car, -3.0, -30.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[20], $instructor_car, -10.0, -26.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[21], $instructor_car, -4.0, -32.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[22], $instructor_car, -10.0, -30.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[23], $instructor_car, -9.0, -32.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[24], $instructor_car, -4.0, -36.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[25], $instructor_car, -9.0, -36.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[26], $instructor_car, -4.0, -40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[27], $instructor_car, -9.0, -40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[28], $instructor_car, -4.0, -44.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[29], $instructor_car, -9.0, -44.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[30], $instructor_car, -6.5, -44.0, -0.5)
$trafficcone_counter = 15

:DSKOOL_38768
if 
  31 > $trafficcone_counter
goto_if_false @DSKOOL_38882
if 
  Object.DoesExist($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_38868
$cone_coords_x, $cone_coords_y, $cone_coords_z = Object.GetCoordinates($trafficcones($trafficcone_counter,46i))
$cone_coords_z = World.GetGroundZFor3DCoord($cone_coords_x, $cone_coords_y, 40.0)
$cone_coords_z += 0.4
Object.SetCoordinates($trafficcones($trafficcone_counter,46i), $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_38868
$trafficcone_counter += 1
goto @DSKOOL_38768

:DSKOOL_38882
if or
  $mission_selection == 6
  $mission_selection == 7
goto_if_false @DSKOOL_40585
Object.PlaceRelativeToCar($trafficcones[0], $instructor_car, -4.0, 8.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[1], $instructor_car, 4.0, 8.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[2], $instructor_car, -4.0, 2.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[3], $instructor_car, 4.0, 2.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[4], $instructor_car, -4.0, -4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[5], $instructor_car, -4.0, 14.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[6], $instructor_car, 4.0, 14.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[7], $instructor_car, -4.0, 20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[8], $instructor_car, 4.0, 20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[9], $instructor_car, -4.0, 26.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[10], $instructor_car, 4.0, 26.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[11], $instructor_car, -4.0, 32.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[12], $instructor_car, 4.0, 32.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[13], $instructor_car, -4.0, 38.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[14], $instructor_car, 4.0, 38.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[15], $instructor_car, -4.0, 44.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[16], $instructor_car, 4.0, 44.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[17], $instructor_car, -4.0, 50.0, -0.5)
$trafficcone_counter = 0

:DSKOOL_39328
if 
  18 > $trafficcone_counter
goto_if_false @DSKOOL_39442
if 
  Object.DoesExist($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_39428
$cone_coords_x, $cone_coords_y, $cone_coords_z = Object.GetCoordinates($trafficcones($trafficcone_counter,46i))
$cone_coords_z = World.GetGroundZFor3DCoord($cone_coords_x, $cone_coords_y, 40.0)
$cone_coords_z += 0.4
Object.SetCoordinates($trafficcones($trafficcone_counter,46i), $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_39428
$trafficcone_counter += 1
goto @DSKOOL_39328

:DSKOOL_39442
$where_to_place_cones = 90.0
$circle_start_x, $circle_start_y, $cone_coords_z = Car.GetOffsetInWorldCoords($instructor_car, 4.0, 50.0, -0.5)
$cone_coords_z = World.GetGroundZFor3DCoord($circle_start_x, $circle_start_y, 40.0)
$cone_coords_z += 0.4

:DSKOOL_39507
$cone_coords_x = Math.Sin($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = Math.Cos($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 126.0
goto_if_false @DSKOOL_39590
Object.SetCoordinates($trafficcones[18], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_39590
if 
  $where_to_place_cones == 144.0
goto_if_false @DSKOOL_39625
Object.SetCoordinates($trafficcones[19], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_39625
if 
  $where_to_place_cones == 162.0
goto_if_false @DSKOOL_39660
Object.SetCoordinates($trafficcones[20], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_39660
if 
  $where_to_place_cones == 180.0
goto_if_false @DSKOOL_39695
Object.SetCoordinates($trafficcones[21], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_39695
if 
  $where_to_place_cones == 198.0
goto_if_false @DSKOOL_39730
Object.SetCoordinates($trafficcones[22], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_39730
if 
  $where_to_place_cones == 216.0
goto_if_false @DSKOOL_39765
Object.SetCoordinates($trafficcones[23], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_39765
if 
  $where_to_place_cones == 234.0
goto_if_false @DSKOOL_39800
Object.SetCoordinates($trafficcones[24], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_39800
$where_to_place_cones += 18.0
if 
  271.0 > $where_to_place_cones
goto_if_false @DSKOOL_39838
goto @DSKOOL_39507

:DSKOOL_39838
Object.PlaceRelativeToCar($trafficcones[25], $instructor_car, 12.0, 8.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[26], $instructor_car, 12.0, 2.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[27], $instructor_car, 12.0, -4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[28], $instructor_car, 12.0, 14.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[29], $instructor_car, 12.0, 20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[30], $instructor_car, 12.0, 26.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[31], $instructor_car, 12.0, 32.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[32], $instructor_car, 12.0, 38.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[33], $instructor_car, 12.0, 44.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[34], $instructor_car, 12.0, 50.0, -0.5)
$trafficcone_counter = 25

:DSKOOL_40075
if 
  35 > $trafficcone_counter
goto_if_false @DSKOOL_40189
if 
  Object.DoesExist($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_40175
$cone_coords_x, $cone_coords_y, $cone_coords_z = Object.GetCoordinates($trafficcones($trafficcone_counter,46i))
$cone_coords_z = World.GetGroundZFor3DCoord($cone_coords_x, $cone_coords_y, 40.0)
$cone_coords_z += 0.4
Object.SetCoordinates($trafficcones($trafficcone_counter,46i), $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_40175
$trafficcone_counter += 1
goto @DSKOOL_40075

:DSKOOL_40189
$where_to_place_cones = 270.0
$circle_start_x, $circle_start_y, $cone_coords_z = Car.GetOffsetInWorldCoords($instructor_car, 4.0, -4.0, -0.5)
$cone_coords_z = World.GetGroundZFor3DCoord($circle_start_x, $circle_start_y, 40.0)
$cone_coords_z += 0.4

:DSKOOL_40254
$cone_coords_x = Math.Sin($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = Math.Cos($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 306.0
goto_if_false @DSKOOL_40337
Object.SetCoordinates($trafficcones[35], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_40337
if 
  $where_to_place_cones == 324.0
goto_if_false @DSKOOL_40372
Object.SetCoordinates($trafficcones[36], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_40372
if 
  $where_to_place_cones == 342.0
goto_if_false @DSKOOL_40407
Object.SetCoordinates($trafficcones[37], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_40407
if 
  $where_to_place_cones == 360.0
goto_if_false @DSKOOL_40442
Object.SetCoordinates($trafficcones[38], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_40442
if 
  $where_to_place_cones == 378.0
goto_if_false @DSKOOL_40477
Object.SetCoordinates($trafficcones[39], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_40477
if 
  $where_to_place_cones == 396.0
goto_if_false @DSKOOL_40512
Object.SetCoordinates($trafficcones[40], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_40512
if 
  $where_to_place_cones == 414.0
goto_if_false @DSKOOL_40547
Object.SetCoordinates($trafficcones[41], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_40547
$where_to_place_cones += 18.0
if 
  451.0 > $where_to_place_cones
goto_if_false @DSKOOL_40585
goto @DSKOOL_40254

:DSKOOL_40585
if 
  $mission_selection == 5
goto_if_false @DSKOOL_41575
Object.PlaceRelativeToCar($trafficcones[0], $instructor_car, 2.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[1], $instructor_car, -2.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[2], $instructor_car, 3.0, 44.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[3], $instructor_car, -3.0, 44.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[4], $instructor_car, 3.0, 48.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[5], $instructor_car, -3.0, 48.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[6], $instructor_car, 3.0, 52.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[7], $instructor_car, -3.0, 52.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[8], $instructor_car, 3.0, 56.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[9], $instructor_car, -3.0, 56.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[10], $instructor_car, 4.0, 60.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[11], $instructor_car, -2.0, 60.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[12], $instructor_car, 5.0, 64.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[13], $instructor_car, -1.0, 64.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[14], $instructor_car, 6.0, 68.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[15], $instructor_car, 0.0, 68.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[16], $instructor_car, 6.0, 72.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[17], $instructor_car, 0.0, 72.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[18], $instructor_car, 6.0, 76.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[19], $instructor_car, 0.0, 76.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[20], $instructor_car, 6.0, 80.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[21], $instructor_car, 0.0, 80.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[22], $instructor_car, 5.0, 84.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[23], $instructor_car, -1.0, 84.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[24], $instructor_car, 4.0, 88.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[25], $instructor_car, -2.0, 88.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[26], $instructor_car, 3.0, 92.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[27], $instructor_car, -3.0, 92.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[28], $instructor_car, 3.0, 96.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[29], $instructor_car, -3.0, 96.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[30], $instructor_car, 3.0, 100.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[31], $instructor_car, -3.0, 100.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[32], $instructor_car, 3.0, 104.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[33], $instructor_car, -3.0, 104.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[34], $instructor_car, 3.0, 108.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[35], $instructor_car, -3.0, 108.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[36], $instructor_car, 0.0, 108.0, -0.5)
$trafficcone_counter = 0

:DSKOOL_41461
if 
  37 > $trafficcone_counter
goto_if_false @DSKOOL_41575
if 
  Object.DoesExist($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_41561
$cone_coords_x, $cone_coords_y, $cone_coords_z = Object.GetCoordinates($trafficcones($trafficcone_counter,46i))
$cone_coords_z = World.GetGroundZFor3DCoord($cone_coords_x, $cone_coords_y, 40.0)
$cone_coords_z += 0.4
Object.SetCoordinates($trafficcones($trafficcone_counter,46i), $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_41561
$trafficcone_counter += 1
goto @DSKOOL_41461

:DSKOOL_41575
if or
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_42371
Object.PlaceRelativeToCar($trafficcones[0], $instructor_car, -4.0, 4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[1], $instructor_car, 4.0, 4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[2], $instructor_car, -4.0, 0.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[3], $instructor_car, 4.0, 0.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[4], $instructor_car, -4.0, -4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[5], $instructor_car, 4.0, -4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[6], $instructor_car, 0.0, -4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[7], $instructor_car, -4.0, 8.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[8], $instructor_car, 4.0, 8.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[9], $instructor_car, -4.0, 12.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[10], $instructor_car, 4.0, 12.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[11], $instructor_car, -4.0, 16.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[12], $instructor_car, 4.0, 16.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[13], $instructor_car, -4.0, 20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[14], $instructor_car, 4.0, 20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[15], $instructor_car, -4.0, 24.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[16], $instructor_car, 4.0, 24.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[17], $instructor_car, -4.0, 28.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[18], $instructor_car, 4.0, 28.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[19], $instructor_car, -4.0, 32.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[20], $instructor_car, 4.0, 32.0, -0.5)
$trafficcone_counter = 0

:DSKOOL_42090
if 
  21 > $trafficcone_counter
goto_if_false @DSKOOL_42204
if 
  Object.DoesExist($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_42190
$cone_coords_x, $cone_coords_y, $cone_coords_z = Object.GetCoordinates($trafficcones($trafficcone_counter,46i))
$cone_coords_z = World.GetGroundZFor3DCoord($cone_coords_x, $cone_coords_y, 40.0)
$cone_coords_z += 0.4
Object.SetCoordinates($trafficcones($trafficcone_counter,46i), $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_42190
$trafficcone_counter += 1
goto @DSKOOL_42090

:DSKOOL_42204
$where_to_place_cones = 90.0
if 
  $mission_selection == 3
goto_if_false @DSKOOL_42268
$circle_start_x, $circle_start_y, $cone_coords_z = Car.GetOffsetInWorldCoords($instructor_car, 4.0, 30.0, -0.5)
goto @DSKOOL_42297

:DSKOOL_42268
$circle_start_x, $circle_start_y, $cone_coords_z = Car.GetOffsetInWorldCoords($instructor_car, -4.0, 30.0, -0.5)

:DSKOOL_42297
$cone_coords_z = World.GetGroundZFor3DCoord($circle_start_x, $circle_start_y, 40.0)
$cone_coords_z += 0.4

:DSKOOL_42323
$cone_coords_x = Math.Sin($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = Math.Cos($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y

:DSKOOL_42371
if 
  $mission_selection == 3
goto_if_false @DSKOOL_42494
if 
  $where_to_place_cones == 126.0
goto_if_false @DSKOOL_42424
Object.SetCoordinates($trafficcones[21], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_42424
if 
  $where_to_place_cones == 144.0
goto_if_false @DSKOOL_42459
Object.SetCoordinates($trafficcones[22], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_42459
if 
  $where_to_place_cones == 162.0
goto_if_false @DSKOOL_42494
Object.SetCoordinates($trafficcones[23], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_42494
if 
  $mission_selection == 4
goto_if_false @DSKOOL_42617
if 
  $where_to_place_cones == 198.0
goto_if_false @DSKOOL_42547
Object.SetCoordinates($trafficcones[21], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_42547
if 
  $where_to_place_cones == 216.0
goto_if_false @DSKOOL_42582
Object.SetCoordinates($trafficcones[22], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_42582
if 
  $where_to_place_cones == 234.0
goto_if_false @DSKOOL_42617
Object.SetCoordinates($trafficcones[23], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_42617
if or
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_42768
if 
  $where_to_place_cones == 180.0
goto_if_false @DSKOOL_42677
Object.SetCoordinates($trafficcones[24], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_42677
$where_to_place_cones += 18.0
if 
  $mission_selection == 3
goto_if_false @DSKOOL_42740
if 
  181.0 > $where_to_place_cones
goto_if_false @DSKOOL_42733
goto @DSKOOL_42323

:DSKOOL_42733
goto @DSKOOL_42768

:DSKOOL_42740
if 
  235.0 > $where_to_place_cones
goto_if_false @DSKOOL_42768
goto @DSKOOL_42323

:DSKOOL_42768
if 
  $mission_selection == 3
goto_if_false @DSKOOL_43390
Object.PlaceRelativeToCar($trafficcones[25], $instructor_car, 8.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[26], $instructor_car, 8.0, 32.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[27], $instructor_car, 12.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[28], $instructor_car, 12.0, 32.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[29], $instructor_car, 16.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[30], $instructor_car, 16.0, 32.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[31], $instructor_car, 20.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[32], $instructor_car, 20.0, 33.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[33], $instructor_car, 24.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[34], $instructor_car, 24.0, 33.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[35], $instructor_car, 28.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[36], $instructor_car, 28.0, 34.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[37], $instructor_car, 32.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[38], $instructor_car, 32.0, 34.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[39], $instructor_car, 36.0, 39.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[40], $instructor_car, 36.0, 35.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[41], $instructor_car, 40.0, 39.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[42], $instructor_car, 40.0, 35.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[43], $instructor_car, 44.0, 39.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[44], $instructor_car, 44.0, 35.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[45], $instructor_car, 44.0, 37.0, -0.5)
$trafficcone_counter = 25

:DSKOOL_43276
if 
  46 > $trafficcone_counter
goto_if_false @DSKOOL_43390
if 
  Object.DoesExist($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_43376
$cone_coords_x, $cone_coords_y, $cone_coords_z = Object.GetCoordinates($trafficcones($trafficcone_counter,46i))
$cone_coords_z = World.GetGroundZFor3DCoord($cone_coords_x, $cone_coords_y, 40.0)
$cone_coords_z += 0.4
Object.SetCoordinates($trafficcones($trafficcone_counter,46i), $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_43376
$trafficcone_counter += 1
goto @DSKOOL_43276

:DSKOOL_43390
if 
  $mission_selection == 4
goto_if_false @DSKOOL_44012
Object.PlaceRelativeToCar($trafficcones[25], $instructor_car, -8.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[26], $instructor_car, -8.0, 32.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[27], $instructor_car, -12.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[28], $instructor_car, -12.0, 32.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[29], $instructor_car, -16.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[30], $instructor_car, -16.0, 32.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[31], $instructor_car, -20.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[32], $instructor_car, -20.0, 33.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[33], $instructor_car, -24.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[34], $instructor_car, -24.0, 33.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[35], $instructor_car, -28.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[36], $instructor_car, -28.0, 34.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[37], $instructor_car, -32.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[38], $instructor_car, -32.0, 34.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[39], $instructor_car, -36.0, 39.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[40], $instructor_car, -36.0, 35.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[41], $instructor_car, -40.0, 39.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[42], $instructor_car, -40.0, 35.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[43], $instructor_car, -44.0, 39.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[44], $instructor_car, -44.0, 35.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[45], $instructor_car, -44.0, 37.0, -0.5)
$trafficcone_counter = 25

:DSKOOL_43898
if 
  46 > $trafficcone_counter
goto_if_false @DSKOOL_44012
if 
  Object.DoesExist($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_43998
$cone_coords_x, $cone_coords_y, $cone_coords_z = Object.GetCoordinates($trafficcones($trafficcone_counter,46i))
$cone_coords_z = World.GetGroundZFor3DCoord($cone_coords_x, $cone_coords_y, 40.0)
$cone_coords_z += 0.4
Object.SetCoordinates($trafficcones($trafficcone_counter,46i), $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_43998
$trafficcone_counter += 1
goto @DSKOOL_43898

:DSKOOL_44012
if 
  $mission_selection == 8
goto_if_false @DSKOOL_44496
Object.PlaceRelativeToCar($trafficcones[0], $instructor_car, -8.0, 20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[1], $instructor_car, -6.0, 20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[2], $instructor_car, -4.0, 20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[3], $instructor_car, -2.0, 20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[4], $instructor_car, 0.0, 20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[5], $instructor_car, 7.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[6], $instructor_car, 5.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[7], $instructor_car, 3.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[8], $instructor_car, 1.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[9], $instructor_car, -1.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[10], $instructor_car, -8.0, 60.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[11], $instructor_car, -6.0, 60.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[12], $instructor_car, -4.0, 60.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[13], $instructor_car, -2.0, 60.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[14], $instructor_car, 0.0, 60.0, -0.5)
$trafficcone_counter = 0

:DSKOOL_44382
if 
  15 > $trafficcone_counter
goto_if_false @DSKOOL_44496
if 
  Object.DoesExist($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_44482
$cone_coords_x, $cone_coords_y, $cone_coords_z = Object.GetCoordinates($trafficcones($trafficcone_counter,46i))
$cone_coords_z = World.GetGroundZFor3DCoord($cone_coords_x, $cone_coords_y, 40.0)
$cone_coords_z += 0.4
Object.SetCoordinates($trafficcones($trafficcone_counter,46i), $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_44482
$trafficcone_counter += 1
goto @DSKOOL_44382

:DSKOOL_44496
if 
  $mission_selection == 9
goto_if_false @DSKOOL_44980
Object.PlaceRelativeToCar($trafficcones[0], $instructor_car, 7.0, 20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[1], $instructor_car, 5.0, 20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[2], $instructor_car, 3.0, 20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[3], $instructor_car, 1.0, 20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[4], $instructor_car, -1.0, 20.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[5], $instructor_car, -8.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[6], $instructor_car, -6.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[7], $instructor_car, -4.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[8], $instructor_car, -2.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[9], $instructor_car, 0.0, 40.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[10], $instructor_car, 7.0, 60.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[11], $instructor_car, 5.0, 60.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[12], $instructor_car, 3.0, 60.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[13], $instructor_car, 1.0, 60.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[14], $instructor_car, -1.0, 60.0, -0.5)
$trafficcone_counter = 0

:DSKOOL_44866
if 
  15 > $trafficcone_counter
goto_if_false @DSKOOL_44980
if 
  Object.DoesExist($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_44966
$cone_coords_x, $cone_coords_y, $cone_coords_z = Object.GetCoordinates($trafficcones($trafficcone_counter,46i))
$cone_coords_z = World.GetGroundZFor3DCoord($cone_coords_x, $cone_coords_y, 40.0)
$cone_coords_z += 0.4
Object.SetCoordinates($trafficcones($trafficcone_counter,46i), $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_44966
$trafficcone_counter += 1
goto @DSKOOL_44866

:DSKOOL_44980
if or
  $mission_selection == 8
  $mission_selection == 9
goto_if_false @DSKOOL_45716
$cone_circle_radius = 8.0
$where_to_place_cones = 90.0
$circle_start_x, $circle_start_y, $cone_coords_z = Car.GetOffsetInWorldCoords($instructor_car, -0.5, 81.0, -0.5)
$cone_coords_z = World.GetGroundZFor3DCoord($circle_start_x, $circle_start_y, 40.0)
$cone_coords_z += 0.4

:DSKOOL_45080
$cone_coords_x = Math.Sin($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = Math.Cos($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 90.0
goto_if_false @DSKOOL_45163
Object.SetCoordinates($trafficcones[23], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_45163
if 
  $where_to_place_cones == 120.0
goto_if_false @DSKOOL_45198
Object.SetCoordinates($trafficcones[24], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_45198
if 
  $where_to_place_cones == 150.0
goto_if_false @DSKOOL_45233
Object.SetCoordinates($trafficcones[25], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_45233
if 
  $where_to_place_cones == 180.0
goto_if_false @DSKOOL_45268
Object.SetCoordinates($trafficcones[26], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_45268
if 
  $where_to_place_cones == 210.0
goto_if_false @DSKOOL_45303
Object.SetCoordinates($trafficcones[27], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_45303
if 
  $where_to_place_cones == 240.0
goto_if_false @DSKOOL_45338
Object.SetCoordinates($trafficcones[28], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_45338
if 
  $where_to_place_cones == 270.0
goto_if_false @DSKOOL_45373
Object.SetCoordinates($trafficcones[29], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_45373
$where_to_place_cones += 30.0
if 
  271.0 > $where_to_place_cones
goto_if_false @DSKOOL_45411
goto @DSKOOL_45080

:DSKOOL_45411
Object.PlaceRelativeToCar($trafficcones[15], $instructor_car, 0.0, 80.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[16], $instructor_car, -3.0, 4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[17], $instructor_car, 3.0, 4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[18], $instructor_car, -3.0, 0.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[19], $instructor_car, 3.0, 0.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[20], $instructor_car, -3.0, -4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[21], $instructor_car, 3.0, -4.0, -0.5)
Object.PlaceRelativeToCar($trafficcones[22], $instructor_car, 0.0, -4.0, -0.5)
$trafficcone_counter = 15

:DSKOOL_45602
if 
  23 > $trafficcone_counter
goto_if_false @DSKOOL_45716
if 
  Object.DoesExist($trafficcones($trafficcone_counter,46i))
goto_if_false @DSKOOL_45702
$cone_coords_x, $cone_coords_y, $cone_coords_z = Object.GetCoordinates($trafficcones($trafficcone_counter,46i))
$cone_coords_z = World.GetGroundZFor3DCoord($cone_coords_x, $cone_coords_y, 40.0)
$cone_coords_z += 0.4
Object.SetCoordinates($trafficcones($trafficcone_counter,46i), $cone_coords_x, $cone_coords_y, $cone_coords_z)

:DSKOOL_45702
$trafficcone_counter += 1
goto @DSKOOL_45602

:DSKOOL_45716
return 

:DSKOOL_45718
if 
  61@ == 1
goto_if_false @DSKOOL_45811
if 
  is_int_lvar_greater_than_int_lvar 86@ > 62@
goto_if_false @DSKOOL_45783
gosub @DSKOOL_45989
gosub @DSKOOL_46096
gosub @DSKOOL_46250
goto @DSKOOL_45811

:DSKOOL_45783
if 
  not Char.IsDead(91@)
goto_if_false @DSKOOL_45804
Char.StopFacialTalk(91@)

:DSKOOL_45804
61@ = 0

:DSKOOL_45811
return 

:DSKOOL_45813
if 
  61@ == 1
goto_if_false @DSKOOL_45958
set_lvar_text_label 65@s = 'MEC_D1'
set_lvar_text_label 67@s = 'MEC_D2'
set_lvar_text_label 69@s = 'MEC_D3'
set_lvar_text_label 71@s = 'MEC_D4'
set_lvar_text_label 73@s = 'MEC_D5'
set_lvar_int_to_constant 79@ = 35602
set_lvar_int_to_constant 80@ = 35603
set_lvar_int_to_constant 81@ = 35604
set_lvar_int_to_constant 82@ = 35605
set_lvar_int_to_constant 83@ = 35606
86@ = 5

:DSKOOL_45958
set_lvar_int_to_lvar_int 89@ = 62@
87@ = 0
88@ = 0
90@ = 1
return 

:DSKOOL_45989
if 
  is_int_lvar_greater_than_int_lvar 86@ > 89@
goto_if_false @DSKOOL_46094
if 
  87@ == 0
goto_if_false @DSKOOL_46051
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 79@(89@,7i))
89@ += 1
87@ = 1

:DSKOOL_46051
if 
  88@ == 0
goto_if_false @DSKOOL_46094
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 79@(89@,7i))
89@ += 1
88@ = 1

:DSKOOL_46094
return 

:DSKOOL_46096
if 
  90@ == 1
goto_if_false @DSKOOL_46172
if 
  87@ == 1
goto_if_false @DSKOOL_46172
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DSKOOL_46172
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(65@(62@,7s), 4500, 1)
87@ = 2

:DSKOOL_46172
if 
  90@ == 2
goto_if_false @DSKOOL_46248
if 
  88@ == 1
goto_if_false @DSKOOL_46248
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @DSKOOL_46248
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow(65@(62@,7s), 4500, 1)
88@ = 2

:DSKOOL_46248
return 

:DSKOOL_46250
if 
  87@ == 2
goto_if_false @DSKOOL_46313
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DSKOOL_46313
Text.ClearThisPrint(65@(62@,7s))
62@ += 1
90@ = 2
87@ = 0

:DSKOOL_46313
if 
  88@ == 2
goto_if_false @DSKOOL_46376
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DSKOOL_46376
Text.ClearThisPrint(65@(62@,7s))
62@ += 1
90@ = 1
88@ = 0

:DSKOOL_46376
return 

//-------------Mission 72---------------
// Originally: Air Raid

:ZERO1
gosub @ZERO1_36
if 
  has_deatharrest_been_executed 
goto_if_false @ZERO1_27
gosub @ZERO1_17155

:ZERO1_27
gosub @ZERO1_17394
terminate_this_script 

:ZERO1_36
$onmission = 1
World.DisableAllEntryExits(True)
Game.SetScriptLimitToGangSize(0)
Stat.RegisterMissionGiven
script_name 'ZERO1'
Player.SetControl($player1, False)
Text.LoadMissionText('ZERO1')
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:ZERO1_97
if 
  Camera.GetFadingStatus
goto_if_false @ZERO1_121
wait 0
goto @ZERO1_97

:ZERO1_121
Streaming.SetAreaVisible(6)
Char.SetCoordinates($scplayer, -2214.436, 123.9208, 56.4219)
Cutscene.Load('ZERO_1')
Streaming.RequestModel(366)

:ZERO1_161
if 
  not Cutscene.HasLoaded
goto_if_false @ZERO1_185
wait 0
goto @ZERO1_161

:ZERO1_185
Cutscene.Start
wait 200
Camera.DoFade(1000, Fade.In)

:ZERO1_199
if 
  not Cutscene.HasFinished
goto_if_false @ZERO1_223
wait 0
goto @ZERO1_199

:ZERO1_223
Player.SetControl($player1, False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)

:ZERO1_244
if 
  Camera.GetFadingStatus
goto_if_false @ZERO1_268
wait 0
goto @ZERO1_244

:ZERO1_268
Cutscene.Clear
Streaming.SetAreaVisible(0)
Weather.ForceNow(WeatherType.SunnySf)
359@ = 0
361@ = 0
360@ = 0
362@ = 0
166@ = 0
147@ = 1
148@ = 0
149@ = 0
150@ = 0
165@ = 0
177@ = 0
$f1_gold_award = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
$transmitter_overallhealth = 210000
57@ = -2239.453
58@ = 120.4904
59@ = 56.6585
143@ = 97.5
144@ = 160.0
145@ = 14.0
146@ = 280.0
60@ = -2321.496
68@ = 211.349
61@ = -2252.581
69@ = 235.0999
62@ = -2122.693
70@ = 65.552
63@ = -2233.54
71@ = 16.5174
64@ = -2508.457
72@ = 181.6713
65@ = -2502.908
73@ = 184.0278
66@ = -2508.368
74@ = 183.8913
67@ = -2504.021
75@ = 187.1988
330@ = 0
331@ = 25
332@ = 25
333@ = 25
334@ = 25
77@ = -2237.24
81@ = 143.33
85@ = 57.0
78@ = -2219.5
82@ = 128.68
86@ = 56.72
79@ = -2224.5
83@ = 149.05
87@ = 59.01
80@ = -2226.7
84@ = 94.8
88@ = 50.87
set_var_int_to_lvar_int $fleet_destroyed_counter = 331@
add_int_lvar_to_int_var $fleet_destroyed_counter += 332@
add_int_lvar_to_int_var $fleet_destroyed_counter += 333@
add_int_lvar_to_int_var $fleet_destroyed_counter += 334@
340@ = Clock.GetGameTimer()
$fleet_destroyed_counter = 100
151@ = 0
152@ = 1
153@ = 1
154@ = 1
155@ = 1
156@ = 1
157@ = 1
158@ = 1
159@ = 1
329@ = 0
TIMERA = 0
328@ = 0
World.SetCarDensityMultiplier(0.0)
34@ = Object.Create(#MINIGUN_BASE, 57@, 58@, 59@)
Object.SetCollision(34@, False)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Player.SetControl($player1, False)
Char.SetCoordinates($scplayer, -2214.436, 123.9208, 56.4219)
Object.SetHeading(34@, 90.0)
Hud.DisplayTimerWithString($transmitter_overallhealth, TimerDirection.Down, 'ZER1_26')
Hud.DisplayCounterWithString($fleet_destroyed_counter, CounterDisplay.Bar, 'ZER1_20')
357@ = Clock.GetGameTimer()
328@ = 0

:ZERO1_1039
if 
  4 > 328@
goto_if_false @ZERO1_1104
45@(328@,10i) = Object.Create(#WONGS_ERECTION, 77@(328@,4f), 81@(328@,4f), 85@(328@,4f))
328@ += 1
goto @ZERO1_1039

:ZERO1_1104
if 
  not Streaming.HasModelLoaded(366)
goto_if_false @ZERO1_1131
wait 0
goto @ZERO1_1104

:ZERO1_1131
Streaming.LoadSpecialCharacter(1, 'ZERO')

:ZERO1_1144
if 
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @ZERO1_1170
wait 0
goto @ZERO1_1144

:ZERO1_1170
Hud.SwitchWidescreen(True)
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(-2261.838, 118.3496, 55.8344, -2248.469, 121.3517, 60.4838, 6800, True)
Camera.SetVectorTrack(-2261.123, 118.8753, 55.3739, -2247.61, 121.8521, 60.3731, 6800, True)
Streaming.RequestAnimation("ON_LOOKERS")
Streaming.LoadSceneInDirection(-2259.838, 122.3496, 40.8344, 290.0)

:ZERO1_1294
if 
  not Streaming.HasAnimationLoaded("ON_LOOKERS")
goto_if_false @ZERO1_1330
wait 0
goto @ZERO1_1294

:ZERO1_1330
wait 1000
Camera.DoFade(500, Fade.In)
Camera.SetFadingColor(0, 0, 0)

:ZERO1_1350
if 
  Camera.GetFadingStatus
goto_if_false @ZERO1_1374
wait 0
goto @ZERO1_1350

:ZERO1_1374
55@ = Char.Create(PedType.CivMale, 290, -2214.29, 125.49, 56.5985)
Char.SetHealth(55@, 1000)
Char.SetProofs(55@, False, True, True, False, False)
335@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.ClearEventResponse(335@, 46)
DecisionMakerChar.ClearEventResponse(335@, 59)
DecisionMakerChar.AddEventResponse(335@, 59, 604, 100.0, 100.0, 100.0, 100.0, True, True)
Char.SetDecisionMaker(55@, 335@)
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_1598
367@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2231.323, 129.7854, 56.5985, MoveState.Run, -1)
Task.AchieveHeading(-1, 0.0)
Task.PlayAnim(-1, "LKUP_LOOP", "ON_LOOKERS", 4.0, True, False, False, True, 0)
Sequence.Close(367@)
Char.PerformSequence(55@, 367@)
Sequence.Clear(367@)

:ZERO1_1598
367@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2239.703, 119.9904, 56.5985, MoveState.Run, -1)
Task.AchieveHeading(-1, 0.0)
Sequence.Close(367@)
Char.PerformSequence($scplayer, 367@)
Sequence.Clear(367@)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21800)

:ZERO1_1660
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_1686
wait 0
goto @ZERO1_1660

:ZERO1_1686
Text.PrintNow('ZER1_AA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_1706
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_1732
wait 0
goto @ZERO1_1706

:ZERO1_1732
Text.ClearThisPrint('ZER1_AA')
Streaming.RequestModel(#WONGS_ERECTION2)
Streaming.RequestModel(464)
Streaming.RequestModel(362)
Streaming.RequestModel(#RCBOMB)

:ZERO1_1763
if or
  not Streaming.HasModelLoaded(#WONGS_ERECTION2)
  not Streaming.HasModelLoaded(464)
  not Streaming.HasModelLoaded(#RCBOMB)
  not Streaming.HasModelLoaded(362)
goto_if_false @ZERO1_1805
wait 0
goto @ZERO1_1763

:ZERO1_1805
328@ = 0

:ZERO1_1812
if 
  8 > 328@
goto_if_false @ZERO1_1877
178@(328@,10i) = Blip.AddForCoord(0.0, 0.0, 0.0)
Blip.Remove(178@(328@,10i))
328@ += 1
goto @ZERO1_1812

:ZERO1_1877
wait 0
if 
  147@ == 1
goto_if_false @ZERO1_1906
gosub @ZERO1_3179

:ZERO1_1906
if 
  148@ == 1
goto_if_false @ZERO1_1931
gosub @ZERO1_5255

:ZERO1_1931
if 
  149@ == 1
goto_if_false @ZERO1_1956
goto @ZERO1_17087

:ZERO1_1956
if 
  150@ == 1
goto_if_false @ZERO1_1981
goto @ZERO1_17155

:ZERO1_1981
goto @ZERO1_1877

:ZERO1_1988
World.ClearArea(-2208.1, 175.86, 40.46, 25.0, True)
if 
  4 > 328@
goto_if_false @ZERO1_2544
35@(328@,10i) = Car.Create(464, 60@(330@,8f), 68@(330@,8f), 70.0)
Car.TurnToFaceCoord(35@(328@,10i), 77@(329@,4f), 81@(329@,4f))
Car.SetHealth(35@(328@,10i), 260)
StuckCarCheck.Add(35@(328@,10i), 3.0, 3000)
Car.SetProofs(35@(328@,10i), False, False, True, False, False)
Plane.StartsInAir(35@(328@,10i))
Car.SetForwardSpeed(35@(328@,10i), 14.0)
if 
  not Blip.DoesExist(178@(328@,10i))
goto_if_false @ZERO1_2209
178@(328@,10i) = Blip.AddForCar(35@(328@,10i))
Blip.ChangeDisplay(178@(328@,10i), BlipDisplay.BlipOnly)
goto @ZERO1_2245

:ZERO1_2209
Blip.Remove(178@(328@,10i))
178@(328@,10i) = Blip.AddForCar(35@(328@,10i))
Blip.ChangeDisplay(178@(328@,10i), BlipDisplay.BlipOnly)

:ZERO1_2245
Car.SetStatus(35@(328@,10i), EntityStatus.Physics)
188@(328@,10i) = Object.Create(#RCBOMB, 60@(328@,8f), 68@(328@,8f), 130.0)
Object.AttachToCar(188@(328@,10i), 35@(328@,10i), 0.0, 0.0, -0.3, 0.0, 0.0, 0.0)
Object.PlaceRelativeToCar(188@(328@,10i), 35@(328@,10i), 0.0, 0.0, 258@(328@,10f))
Object.SetCollision(188@(328@,10i), False)
Object.SetDynamic(188@(328@,10i), False)
set_lvar_float_to_lvar_float 76@ = 85@(329@,4f)
76@ += 10.5
Plane.GotoCoords(35@(328@,10i), 77@(329@,4f), 81@(329@,4f), 76@, -1.0, 13.5)
Plane.SetThrottle(35@(328@,10i), -0.8)
152@(328@,8i) = 0
167@(328@,10i) = 0
151@ = 1
336@(328@,10i) = Clock.GetGameTimer()
330@ += 1
if 
  330@ > 3
goto_if_false @ZERO1_2530
330@ = 0

:ZERO1_2530
Game.SetPoliceIgnorePlayer($player1, True)
Game.SetWantedMultiplier(0.001)

:ZERO1_2544
return 

:ZERO1_2546
if or
  328@ > 4
  328@ == 4
goto_if_false @ZERO1_3177
35@(328@,10i) = Car.Create(464, 60@(328@,8f), 68@(328@,8f), 85.0)
Car.TurnToFaceCoord(35@(328@,10i), 77@(329@,4f), 81@(329@,4f))
Car.SetProofs(35@(328@,10i), False, True, True, False, False)
Car.SetHealth(35@(328@,10i), 260)
StuckCarCheck.Add(35@(328@,10i), 3.0, 10000)
if 
  not Blip.DoesExist(178@(328@,10i))
goto_if_false @ZERO1_2727
178@(328@,10i) = Blip.AddForCar(35@(328@,10i))
Blip.ChangeDisplay(178@(328@,10i), BlipDisplay.BlipOnly)
goto @ZERO1_2763

:ZERO1_2727
Blip.Remove(178@(328@,10i))
178@(328@,10i) = Blip.AddForCar(35@(328@,10i))
Blip.ChangeDisplay(178@(328@,10i), BlipDisplay.BlipOnly)

:ZERO1_2763
Car.SetStatus(35@(328@,10i), EntityStatus.Physics)
Car.SetHeading(35@(328@,10i), 258.0)
Plane.StartsInAir(35@(328@,10i))
Car.SetForwardSpeed(35@(328@,10i), 14.0)
167@(328@,10i) = 0
152@(328@,8i) = 0
188@(328@,10i) = Object.Create(#RCBOMB, 60@(328@,8f), 68@(328@,8f), 120.0)
Object.AttachToCar(188@(328@,10i), 35@(328@,10i), 0.0, 0.0, -0.3, 0.0, 0.0, 0.0)
Object.PlaceRelativeToCar(188@(328@,10i), 35@(328@,10i), 0.0, 0.0, 258@(328@,10f))
Object.SetCollision(188@(328@,10i), False)
Object.SetDynamic(188@(328@,10i), False)
336@(328@,10i) = Clock.GetGameTimer()
set_lvar_float_to_lvar_float 76@ = 85@(329@,4f)
76@ += 10.5
Plane.GotoCoords(35@(328@,10i), 77@(329@,4f), 81@(329@,4f), 76@, -1.0, 69.5)
Plane.SetThrottle(35@(328@,10i), -0.8)
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_3177
if 
  359@ == 0
goto_if_false @ZERO1_3177
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21806)

:ZERO1_3087
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_3113
wait 0
goto @ZERO1_3087

:ZERO1_3113
Text.PrintNow('ZER1_BD', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_3133
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_3159
wait 0
goto @ZERO1_3133

:ZERO1_3159
Text.ClearThisPrint('ZER1_BD')
359@ = 1

:ZERO1_3177
return 

:ZERO1_3179
TIMERA = 0
if 
  $f1_gold_award == 0
goto_if_false @ZERO1_5009
177@ = 0
TIMERB = 0

:ZERO1_3218
if 
  177@ <> 10
goto_if_false @ZERO1_4576
wait 0
if 
  177@ == 0
goto_if_false @ZERO1_3445
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21830)

:ZERO1_3265
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_3291
wait 0
goto @ZERO1_3265

:ZERO1_3291
Text.PrintNow('ZER1_AB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_3311
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_3337
wait 0
goto @ZERO1_3311

:ZERO1_3337
Text.ClearThisPrint('ZER1_AC')
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21801)

:ZERO1_3355
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_3381
wait 0
goto @ZERO1_3355

:ZERO1_3381
Text.PrintNow('ZER1_AC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_3401
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_3427
wait 0
goto @ZERO1_3401

:ZERO1_3427
Text.ClearThisPrint('ZER1_AC')
177@ = 1

:ZERO1_3445
if 
  TIMERB > 4500
goto_if_false @ZERO1_3650
if 
  177@ == 1
goto_if_false @ZERO1_3650
177@ = 2
Camera.ResetNewScriptables
Camera.SetFixedPosition(-2240.485, 119.5912, 58.4997, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2239.875, 120.376, 58.6143, SwitchType.JumpCut)
World.ClearArea(57@, 58@, 59@, 1000.0, True)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21803)

:ZERO1_3567
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_3593
wait 0
goto @ZERO1_3567

:ZERO1_3593
Text.PrintNow('ZER1_BA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_3613
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_3639
wait 0
goto @ZERO1_3613

:ZERO1_3639
Text.ClearThisPrint('ZER1_BA')

:ZERO1_3650
if 
  TIMERB > 7500
goto_if_false @ZERO1_3963
if 
  177@ == 2
goto_if_false @ZERO1_3963
177@ = 3
Camera.SetFixedPosition(-2231.676, 127.7127, 57.9036, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2231.965, 128.6361, 58.1563, SwitchType.JumpCut)
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_3805
Task.PlayAnim(55@, "POINTUP_IN", "ON_LOOKERS", 4.0, False, False, False, True, 0)

:ZERO1_3805
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21804)
if 
  151@ == 0
goto_if_false @ZERO1_3880
328@ = 0

:ZERO1_3837
if 
  2 > 328@
goto_if_false @ZERO1_3880
wait 0
gosub @ZERO1_1988
328@ += 1
goto @ZERO1_3837

:ZERO1_3880
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_3906
wait 0
goto @ZERO1_3880

:ZERO1_3906
Text.PrintNow('ZER1_BB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_3926
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_3952
wait 0
goto @ZERO1_3926

:ZERO1_3952
Text.ClearThisPrint('ZER1_BB')

:ZERO1_3963
if 
  TIMERB > 12000
goto_if_false @ZERO1_4283
if 
  177@ == 3
goto_if_false @ZERO1_4283
if 
  not Car.IsDead(36@)
goto_if_false @ZERO1_4283
92@, 93@, 94@ = Car.GetOffsetInWorldCoords(36@, 2.0, 1.5, -1.0)
Camera.SetFixedPosition(92@, 93@, 94@, 0.0, 0.0, 0.0)
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_4096
Camera.PointAtChar(55@, CameraMode.Fixed, SwitchType.JumpCut)

:ZERO1_4096
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21831)

:ZERO1_4103
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_4129
wait 0
goto @ZERO1_4103

:ZERO1_4129
Text.PrintNow('ZER1_AD', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_4149
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_4175
wait 0
goto @ZERO1_4149

:ZERO1_4175
Text.ClearThisPrint('ZER1_AD')
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21802)

:ZERO1_4193
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_4219
wait 0
goto @ZERO1_4193

:ZERO1_4219
Text.PrintNow('ZER1_AE', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_4239
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_4265
wait 0
goto @ZERO1_4239

:ZERO1_4265
Text.ClearThisPrint('ZER1_AE')
177@ = 4

:ZERO1_4283
if 
  TIMERB > 17000
goto_if_false @ZERO1_4451
if 
  177@ == 4
goto_if_false @ZERO1_4451
177@ = 5
Char.SetCoordinates($scplayer, -2239.703, 119.9904, 56.5985)
Char.SetHeading($scplayer, 0.0)
if 
  Object.DoesExist(34@)
goto_if_false @ZERO1_4384
Task.LookAtObject($scplayer, 34@, 3000)

:ZERO1_4384
Camera.SetFixedPosition(-2239.688, 122.1658, 57.6384, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2239.237, 121.2862, 57.7886, SwitchType.JumpCut)
Text.PrintNow('ZER1_22', 5000, 1)

:ZERO1_4451
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @ZERO1_4543
177@ = 10
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
if 
  151@ == 0
goto_if_false @ZERO1_4543
328@ = 0

:ZERO1_4500
if 
  2 > 328@
goto_if_false @ZERO1_4543
wait 0
gosub @ZERO1_1988
328@ += 1
goto @ZERO1_4500

:ZERO1_4543
if 
  TIMERB > 20000
goto_if_false @ZERO1_4569
177@ = 10

:ZERO1_4569
goto @ZERO1_3218

:ZERO1_4576
if 
  not Car.IsDead(35@)
goto_if_false @ZERO1_4637
Car.SetCoordinates(35@, 60@, 68@, 95.0)
Car.TurnToFaceCoord(35@, 77@(329@,4f), 81@(329@,4f))
Car.SetForwardSpeed(35@, 10.0)

:ZERO1_4637
if 
  not Car.IsDead(36@)
goto_if_false @ZERO1_4698
Car.SetCoordinates(36@, 61@, 69@, 95.0)
Car.TurnToFaceCoord(36@, 77@(329@,4f), 81@(329@,4f))
Car.SetForwardSpeed(36@, 10.0)

:ZERO1_4698
Char.AttachToObject($scplayer, 34@, -0.25, -0.5, 1.25, 2, 360.0, WeaponType.Minigun)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.SetCurrentWeapon($scplayer, WeaponType.Minigun)
Char.AddAmmo($scplayer, WeaponType.Minigun, 200000)
Player.SetHeadingForAttached($player1, 270.0, 300.0)
Char.ClearTasks($scplayer)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Player.AlterWantedLevel($player1, 0)
Camera.ResetNewScriptables
Camera.Restore
if 
  Object.DoesExist(34@)
goto_if_false @ZERO1_4821
Object.SetVisible(34@, False)

:ZERO1_4821
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_4847
Char.GiveWeapon(55@, WeaponType.Extinguisher, 1000)

:ZERO1_4847
Char.SetProofs($scplayer, True, True, True, True, True)
Text.PrintHelp('ZER1_24')
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_4979
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21807)

:ZERO1_4896
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_4922
wait 0
goto @ZERO1_4896

:ZERO1_4922
Text.PrintNow('ZER1_BE', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_4942
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_4968
wait 0
goto @ZERO1_4942

:ZERO1_4968
Text.ClearThisPrint('ZER1_BE')

:ZERO1_4979
Game.SetPoliceIgnorePlayer($player1, True)
Game.SetWantedMultiplier(0.001)
147@ = 0
148@ = 1
return 

:ZERO1_5009
if 
  $f1_gold_award == 1
goto_if_false @ZERO1_5232
if 
  151@ == 0
goto_if_false @ZERO1_5209
328@ = 0

:ZERO1_5052
if 
  4 > 328@
goto_if_false @ZERO1_5202
wait 0
if 
  not Car.IsDead(35@(328@,10i))
goto_if_false @ZERO1_5134
Car.SetHealth(35@(328@,10i), 20)
if 
  not Car.IsOnScreen(35@(328@,10i))
goto_if_false @ZERO1_5134
Car.Delete(35@(328@,10i))

:ZERO1_5134
Car.MarkAsNoLongerNeeded(35@(328@,10i))
if 
  Blip.DoesExist(178@(328@,10i))
goto_if_false @ZERO1_5172
Blip.Remove(178@(328@,10i))

:ZERO1_5172
StuckCarCheck.Remove(35@(328@,10i))
gosub @ZERO1_1988
328@ += 1
goto @ZERO1_5052

:ZERO1_5202
151@ = 1

:ZERO1_5209
147@ = 0
148@ = 1
TIMERA = 0
return 

:ZERO1_5232
147@ = 0
148@ = 1
TIMERA = 0
return 

:ZERO1_5255
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @ZERO1_5304
147@ = 0
148@ = 0
149@ = 1
150@ = 0
return 

:ZERO1_5304
gosub @ZERO1_13566
if 
  150@ == 1
goto_if_false @ZERO1_5359
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_5359
if 
  Char.IsDead(55@)
goto_if_false @ZERO1_5411
148@ = 0
150@ = 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('ZER1_25', 5000, 1)
return 

:ZERO1_5411
328@ = 0

:ZERO1_5418
if 
  8 > 328@
goto_if_false @ZERO1_8800
wait 0
if 
  not Car.IsDead(35@(328@,10i))
goto_if_false @ZERO1_8775
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_5978
if 
  165@ == 0
goto_if_false @ZERO1_5655
if 
  not Char.IsRespondingToEvent(55@, 59)
goto_if_false @ZERO1_5655
367@ = Sequence.Open()
Task.PlayAnim(-1, "SHOUT_01", "ON_LOOKERS", 4.0, False, False, False, True, 0)
Task.TurnCharToFaceCoord(-1, 268@(328@,10f), 278@(328@,10f), 288@(328@,10f))
Task.PlayAnim(-1, "LKUP_POINT", "ON_LOOKERS", 4.0, False, False, False, True, 0)
Task.ScratchHead(-1)
Sequence.Close(367@)
Char.PerformSequence(55@, 367@)
Sequence.Clear(367@)
165@ = 1

:ZERO1_5655
if 
  165@ == 1
goto_if_false @ZERO1_5709
56@ = Char.GetScriptTaskStatus(55@, 1560)
if 
  is_int_lvar_equal_to_constant 56@ == 7
goto_if_false @ZERO1_5709
165@ = 0

:ZERO1_5709
if 
  362@ == 1
goto_if_false @ZERO1_5814
if 
  Char.HasBeenDamagedByWeapon(55@, WeaponType.Minigun)
goto_if_false @ZERO1_5814
Char.ClearLastWeaponDamage(55@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21818)

:ZERO1_5761
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_5787
wait 0
goto @ZERO1_5761

:ZERO1_5787
Text.PrintNow('ZER1_DB', 5000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
362@ = 0

:ZERO1_5814
if 
  362@ == 0
goto_if_false @ZERO1_5971
if 
  Char.HasBeenDamagedByWeapon(55@, WeaponType.Minigun)
goto_if_false @ZERO1_5971
Char.ClearLastWeaponDamage(55@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21817)

:ZERO1_5866
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_5944
wait 0
if 
  Char.IsDead(55@)
goto_if_false @ZERO1_5937
148@ = 0
150@ = 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('ZER1_25', 5000, 1)
return 

:ZERO1_5937
goto @ZERO1_5866

:ZERO1_5944
Text.PrintNow('ZER1_DA', 5000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
362@ = 1

:ZERO1_5971
goto @ZERO1_6014

:ZERO1_5978
148@ = 0
150@ = 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('ZER1_25', 5000, 1)
return 

:ZERO1_6014
if 
  not Car.IsDead(35@(328@,10i))
goto_if_false @ZERO1_8757
if 
  152@(328@,8i) == 0
goto_if_false @ZERO1_6174
356@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 346@(328@,10i) = 356@
sub_int_lvar_from_int_lvar 346@(328@,10i) -= 336@(328@,10i)
if 
  346@(328@,10i) > 45000
goto_if_false @ZERO1_6174
Car.Explode(35@(328@,10i))
152@(328@,8i) = 1
167@(328@,10i) = 0
if 
  Object.DoesExist(188@(328@,10i))
goto_if_false @ZERO1_6174
Object.Delete(188@(328@,10i))

:ZERO1_6174
if 
  152@(328@,8i) == 0
goto_if_false @ZERO1_6296
if 
  Car.DoesHaveStuckCarCheck(35@(328@,10i))
goto_if_false @ZERO1_6296
if 
  StuckCarCheck.IsCarStuck(35@(328@,10i))
goto_if_false @ZERO1_6296
Car.Explode(35@(328@,10i))
if 
  Object.DoesExist(188@(328@,10i))
goto_if_false @ZERO1_6274
Object.Delete(188@(328@,10i))

:ZERO1_6274
152@(328@,8i) = 1
167@(328@,10i) = 0

:ZERO1_6296
if 
  152@(328@,8i) == 0
goto_if_false @ZERO1_6398
if 
  not Car.IsInAirProper(35@(328@,10i))
goto_if_false @ZERO1_6398
Car.Explode(35@(328@,10i))
if 
  Object.DoesExist(188@(328@,10i))
goto_if_false @ZERO1_6376
Object.Delete(188@(328@,10i))

:ZERO1_6376
152@(328@,8i) = 1
167@(328@,10i) = 0

:ZERO1_6398
if 
  152@(328@,8i) == 0
goto_if_false @ZERO1_6504
if 
  Car.HasBeenDamagedByWeapon(35@(328@,10i), WeaponType.Minigun)
goto_if_false @ZERO1_6504
if 
  Object.DoesExist(188@(328@,10i))
goto_if_false @ZERO1_6471
Object.Delete(188@(328@,10i))

:ZERO1_6471
Car.SetHealth(35@(328@,10i), 20)
152@(328@,8i) = 1
167@(328@,10i) = 0

:ZERO1_6504
if 
  152@(328@,8i) == 0
goto_if_false @ZERO1_6644
if 
  167@(328@,10i) == 0
goto_if_false @ZERO1_6644
if 
  not Car.IsDead(35@(328@,10i))
goto_if_false @ZERO1_6637
if 
  Car.Locate3D(35@(328@,10i), 77@(329@,4f), 81@(329@,4f), 85@(329@,4f), 18.0, 18.0, 40.0, False)
goto_if_false @ZERO1_6637
167@(328@,10i) = 1

:ZERO1_6637
goto @ZERO1_6644

:ZERO1_6644
if 
  167@(328@,10i) == 1
goto_if_false @ZERO1_6721
gosub @ZERO1_10819
if 
  150@ == 1
goto_if_false @ZERO1_6721
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_6721
if 
  150@ == 1
goto_if_false @ZERO1_6769
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_6769
if 
  167@(328@,10i) > 2
goto_if_false @ZERO1_6919
if 
  not Car.IsDead(35@(328@,10i))
goto_if_false @ZERO1_6919
if 
  Car.Locate2D(35@(328@,10i), 60@(328@,8f), 68@(328@,8f), 30.0, 30.0, False)
goto_if_false @ZERO1_6919
Car.Delete(35@(328@,10i))
if 
  Object.DoesExist(188@(328@,10i))
goto_if_false @ZERO1_6895
Object.Delete(188@(328@,10i))

:ZERO1_6895
152@(328@,8i) = 1
167@(328@,10i) = 0
return 

:ZERO1_6919
if 
  167@(328@,10i) == 2
goto_if_false @ZERO1_7072
if 
  not Car.IsDead(35@(328@,10i))
goto_if_false @ZERO1_7072
if 
  Car.Locate2D(35@(328@,10i), 95@(328@,8f), 103@(328@,8f), 7.0, 7.0, False)
goto_if_false @ZERO1_7072
Plane.GotoCoords(35@(328@,10i), 119@(328@,8f), 127@(328@,8f), 135@(328@,8f), 5.0, 0.5)
Plane.SetThrottle(35@(328@,10i), -1.1)
167@(328@,10i) = 3

:ZERO1_7072
if 
  167@(328@,10i) == 3
goto_if_false @ZERO1_7221
if 
  not Car.IsDead(35@(328@,10i))
goto_if_false @ZERO1_7221
if 
  Car.Locate2D(35@(328@,10i), 119@(328@,8f), 127@(328@,8f), 7.0, 7.0, False)
goto_if_false @ZERO1_7221
Plane.GotoCoords(35@(328@,10i), 77@(329@,4f), 81@(329@,4f), 76@, 3.0, 0.0)
Plane.SetThrottle(35@(328@,10i), -0.9)
167@(328@,10i) = 4

:ZERO1_7221
if 
  not Car.IsDead(35@(328@,10i))
goto_if_false @ZERO1_8739
if 
  Car.Locate3D(35@(328@,10i), 77@(329@,4f), 81@(329@,4f), 85@(329@,4f), 4.0, 4.0, 11.0, False)
goto_if_false @ZERO1_8732
89@, 90@, 91@ = Car.GetCoordinates(35@(328@,10i))
Car.Explode(35@(328@,10i))
Car.Delete(35@(328@,10i))
Fx.AddExplosion(89@, 90@, 91@, ExplosionType.Grenade)
if 
  Object.DoesExist(188@(328@,10i))
goto_if_false @ZERO1_7377
Object.Delete(188@(328@,10i))

:ZERO1_7377
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_7508
if 
  360@ == 0
goto_if_false @ZERO1_7508
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21815)

:ZERO1_7418
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_7444
wait 0
goto @ZERO1_7418

:ZERO1_7444
Text.PrintNow('ZER1_BN', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_7464
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_7490
wait 0
goto @ZERO1_7464

:ZERO1_7490
Text.ClearThisPrint('ZER1_BN')
360@ = 1

:ZERO1_7508
152@(328@,8i) = 1
167@(328@,10i) = 0
if 
  329@ == 3
goto_if_false @ZERO1_7882
if 
  334@ > 5
goto_if_false @ZERO1_7580
334@ -= 5
goto @ZERO1_7882

:ZERO1_7580
163@ = 1
Object.Delete(45@(329@,10i))
Fx.AddExplosion(77@(329@,4f), 81@(329@,4f), 85@(329@,4f), ExplosionType.Grenade)
Fx.AddExplosion(77@(329@,4f), 81@(329@,4f), 61.5, ExplosionType.Object)
45@(329@,10i) = Object.Create(#WONGS_ERECTION2, 77@(329@,4f), 81@(329@,4f), 85@(329@,4f))
Object.SetHeading(45@(329@,10i), 143@(329@,4f))
363@(329@,4i) = ScriptFire.Start(77@(329@,4f), 81@(329@,4f), 85@(329@,4f), 5, 3)
147@ = 0
148@ = 0
150@ = 1
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_7854
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21819)

:ZERO1_7771
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_7797
wait 0
goto @ZERO1_7771

:ZERO1_7797
Text.PrintNow('ZER1_EA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_7817
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_7843
wait 0
goto @ZERO1_7817

:ZERO1_7843
Text.ClearThisPrint('ZER1_EA')

:ZERO1_7854
Hud.ClearCounter($fleet_destroyed_counter)
Hud.ClearTimer($transmitter_overallhealth)
Text.PrintNow('ZER1_19', 5000, 1)
return 

:ZERO1_7882
if 
  329@ == 2
goto_if_false @ZERO1_8296
if 
  333@ > 5
goto_if_false @ZERO1_7932
333@ -= 5
goto @ZERO1_8296

:ZERO1_7932
162@ = 1
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_8296
gosub @ZERO1_13947
if 
  150@ == 1
goto_if_false @ZERO1_8010
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_8010
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_8296
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21812)

:ZERO1_8033
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_8059
wait 0
goto @ZERO1_8033

:ZERO1_8059
Text.PrintNow('ZER1_BK', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_8079
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_8105
wait 0
goto @ZERO1_8079

:ZERO1_8105
Text.ClearThisPrint('ZER1_BK')
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21813)

:ZERO1_8123
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_8149
wait 0
goto @ZERO1_8123

:ZERO1_8149
Text.PrintNow('ZER1_BL', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_8169
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_8195
wait 0
goto @ZERO1_8169

:ZERO1_8195
Text.ClearThisPrint('ZER1_BL')
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21814)

:ZERO1_8213
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_8239
wait 0
goto @ZERO1_8213

:ZERO1_8239
Text.PrintNow('ZER1_BM', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_8259
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_8285
wait 0
goto @ZERO1_8259

:ZERO1_8285
Text.ClearThisPrint('ZER1_BM')

:ZERO1_8296
if 
  329@ == 1
goto_if_false @ZERO1_8514
if 
  332@ > 5
goto_if_false @ZERO1_8346
332@ -= 5
goto @ZERO1_8514

:ZERO1_8346
161@ = 1
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_8514
gosub @ZERO1_13947
if 
  150@ == 1
goto_if_false @ZERO1_8424
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_8424
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21811)

:ZERO1_8431
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_8457
wait 0
goto @ZERO1_8431

:ZERO1_8457
Text.PrintNow('ZER1_BJ', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_8477
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_8503
wait 0
goto @ZERO1_8477

:ZERO1_8503
Text.ClearThisPrint('ZER1_BJ')

:ZERO1_8514
if 
  329@ == 0
goto_if_false @ZERO1_8732
if 
  331@ > 5
goto_if_false @ZERO1_8564
331@ -= 5
goto @ZERO1_8732

:ZERO1_8564
160@ = 1
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_8732
gosub @ZERO1_13947
if 
  150@ == 1
goto_if_false @ZERO1_8642
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_8642
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21809)

:ZERO1_8649
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_8675
wait 0
goto @ZERO1_8649

:ZERO1_8675
Text.PrintNow('ZER1_BG', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_8695
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_8721
wait 0
goto @ZERO1_8695

:ZERO1_8721
Text.ClearThisPrint('ZER1_BG')

:ZERO1_8732
goto @ZERO1_8750

:ZERO1_8739
152@(328@,8i) = 1

:ZERO1_8750
goto @ZERO1_8768

:ZERO1_8757
152@(328@,8i) = 1

:ZERO1_8768
goto @ZERO1_8786

:ZERO1_8775
152@(328@,8i) = 1

:ZERO1_8786
328@ += 1
goto @ZERO1_5418

:ZERO1_8800
if 
  1 > $f1_gold_award
goto_if_false @ZERO1_9314
328@ = 0

:ZERO1_8825
if 
  4 > 328@
goto_if_false @ZERO1_9027
if 
  152@(328@,8i) == 1
goto_if_false @ZERO1_9013
if 
  Blip.DoesExist(178@(328@,10i))
goto_if_false @ZERO1_8894
Blip.Remove(178@(328@,10i))

:ZERO1_8894
if 
  Object.DoesExist(188@(328@,10i))
goto_if_false @ZERO1_8923
Object.Delete(188@(328@,10i))

:ZERO1_8923
StuckCarCheck.Remove(35@(328@,10i))
if 
  not Car.IsDead(35@(328@,10i))
goto_if_false @ZERO1_8997
if 
  Car.IsOnScreen(35@(328@,10i))
goto_if_false @ZERO1_8988
Car.MarkAsNoLongerNeeded(35@(328@,10i))
goto @ZERO1_8997

:ZERO1_8988
Car.Delete(35@(328@,10i))

:ZERO1_8997
Car.MarkAsNoLongerNeeded(35@(328@,10i))
$f1_gold_award += 1

:ZERO1_9013
328@ += 1
goto @ZERO1_8825

:ZERO1_9027
if 
  152@ == 1
goto_if_false @ZERO1_9307
if 
  153@ == 1
goto_if_false @ZERO1_9307
if 
  154@ == 1
goto_if_false @ZERO1_9307
if 
  155@ == 1
goto_if_false @ZERO1_9307
$f1_gold_award += 1
148@ = 0
147@ = 1
151@ = 0
$f1_gold_award += 1
Blip.Remove(178@)
Blip.Remove(179@)
Blip.Remove(180@)
Blip.Remove(181@)
328@ = 0

:ZERO1_9161
if 
  4 > 328@
goto_if_false @ZERO1_9307
if 
  not Car.IsDead(35@(328@,10i))
goto_if_false @ZERO1_9210
Car.SetHealth(35@(328@,10i), 20)

:ZERO1_9210
if 
  not Car.IsDead(35@(328@,10i))
goto_if_false @ZERO1_9275
if 
  Car.IsOnScreen(35@(328@,10i))
goto_if_false @ZERO1_9266
Car.MarkAsNoLongerNeeded(35@(328@,10i))
goto @ZERO1_9275

:ZERO1_9266
Car.Delete(35@(328@,10i))

:ZERO1_9275
Car.MarkAsNoLongerNeeded(35@(328@,10i))
StuckCarCheck.Remove(35@(328@,10i))
328@ += 1
goto @ZERO1_9161

:ZERO1_9307
goto @ZERO1_10001

:ZERO1_9314
328@ = 0

:ZERO1_9321
if 
  4 > 328@
goto_if_false @ZERO1_10015
if 
  152@(328@,8i) == 1
goto_if_false @ZERO1_10001
if 
  Blip.DoesExist(178@(328@,10i))
goto_if_false @ZERO1_9390
Blip.Remove(178@(328@,10i))

:ZERO1_9390
if 
  Object.DoesExist(188@(328@,10i))
goto_if_false @ZERO1_9419
Object.Delete(188@(328@,10i))

:ZERO1_9419
StuckCarCheck.Remove(35@(328@,10i))
if 
  not Car.IsDead(35@(328@,10i))
goto_if_false @ZERO1_9493
if 
  Car.IsOnScreen(35@(328@,10i))
goto_if_false @ZERO1_9484
Car.MarkAsNoLongerNeeded(35@(328@,10i))
goto @ZERO1_9493

:ZERO1_9484
Car.Delete(35@(328@,10i))

:ZERO1_9493
Car.MarkAsNoLongerNeeded(35@(328@,10i))
356@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 358@ = 356@
sub_int_lvar_from_int_lvar 358@ -= 357@
if and
  210000 > $transmitter_overallhealth
  $transmitter_overallhealth > 190000
goto_if_false @ZERO1_9587
if 
  TIMERB > 12000
goto_if_false @ZERO1_9587
gosub @ZERO1_1988
TIMERB = 0

:ZERO1_9587
if and
  190000 > $transmitter_overallhealth
  $transmitter_overallhealth > 120000
goto_if_false @ZERO1_9651
if 
  TIMERB > 6000
goto_if_false @ZERO1_9651
gosub @ZERO1_1988
TIMERB = 0

:ZERO1_9651
if and
  120000 > $transmitter_overallhealth
  $transmitter_overallhealth > 0
goto_if_false @ZERO1_9712
if 
  TIMERB > 3500
goto_if_false @ZERO1_9712
gosub @ZERO1_1988
TIMERB = 0

:ZERO1_9712
if 
  152@ == 1
goto_if_false @ZERO1_10001
if 
  153@ == 1
goto_if_false @ZERO1_10001
if 
  154@ == 1
goto_if_false @ZERO1_10001
if 
  155@ == 1
goto_if_false @ZERO1_10001
if 
  156@ == 1
goto_if_false @ZERO1_10001
if 
  157@ == 1
goto_if_false @ZERO1_10001
if 
  158@ == 1
goto_if_false @ZERO1_10001
if 
  159@ == 1
goto_if_false @ZERO1_10001
gosub @ZERO1_1988
if 
  361@ == 0
goto_if_false @ZERO1_9994
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_9994
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21816)

:ZERO1_9904
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_9930
wait 0
goto @ZERO1_9904

:ZERO1_9930
Text.PrintNow('ZER1_CA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_9950
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_9976
wait 0
goto @ZERO1_9950

:ZERO1_9976
Text.ClearThisPrint('ZER1_CA')
361@ = 1

:ZERO1_9994
TIMERB = 0

:ZERO1_10001
328@ += 1
goto @ZERO1_9321

:ZERO1_10015
if 
  210000 > $transmitter_overallhealth
goto_if_false @ZERO1_10692
if 
  156@ == 1
goto_if_false @ZERO1_10692
if 
  157@ == 1
goto_if_false @ZERO1_10692
if 
  158@ == 1
goto_if_false @ZERO1_10692
if 
  159@ == 1
goto_if_false @ZERO1_10692
if 
  Blip.DoesExist(182@)
goto_if_false @ZERO1_10129
Blip.Remove(182@)

:ZERO1_10129
if 
  Blip.DoesExist(183@)
goto_if_false @ZERO1_10150
Blip.Remove(183@)

:ZERO1_10150
if 
  Blip.DoesExist(184@)
goto_if_false @ZERO1_10171
Blip.Remove(184@)

:ZERO1_10171
if 
  Blip.DoesExist(185@)
goto_if_false @ZERO1_10192
Blip.Remove(185@)

:ZERO1_10192
if 
  not Car.IsDead(39@)
goto_if_false @ZERO1_10215
Car.SetHealth(39@, 10)

:ZERO1_10215
if 
  not Car.IsDead(40@)
goto_if_false @ZERO1_10238
Car.SetHealth(40@, 10)

:ZERO1_10238
if 
  not Car.IsDead(41@)
goto_if_false @ZERO1_10261
Car.SetHealth(41@, 10)

:ZERO1_10261
if 
  not Car.IsDead(42@)
goto_if_false @ZERO1_10284
Car.SetHealth(42@, 10)

:ZERO1_10284
if 
  Object.DoesExist(192@)
goto_if_false @ZERO1_10305
Object.Delete(192@)

:ZERO1_10305
if 
  Object.DoesExist(193@)
goto_if_false @ZERO1_10326
Object.Delete(193@)

:ZERO1_10326
if 
  Object.DoesExist(194@)
goto_if_false @ZERO1_10347
Object.Delete(194@)

:ZERO1_10347
if 
  Object.DoesExist(195@)
goto_if_false @ZERO1_10368
Object.Delete(195@)

:ZERO1_10368
if 
  not Car.IsDead(39@)
goto_if_false @ZERO1_10417
if 
  Car.IsOnScreen(39@)
goto_if_false @ZERO1_10412
Car.MarkAsNoLongerNeeded(39@)
goto @ZERO1_10417

:ZERO1_10412
Car.Delete(39@)

:ZERO1_10417
Car.MarkAsNoLongerNeeded(39@)
if 
  not Car.IsDead(40@)
goto_if_false @ZERO1_10471
if 
  Car.IsOnScreen(40@)
goto_if_false @ZERO1_10466
Car.MarkAsNoLongerNeeded(40@)
goto @ZERO1_10471

:ZERO1_10466
Car.Delete(40@)

:ZERO1_10471
Car.MarkAsNoLongerNeeded(40@)
if 
  not Car.IsDead(41@)
goto_if_false @ZERO1_10525
if 
  Car.IsOnScreen(41@)
goto_if_false @ZERO1_10520
Car.MarkAsNoLongerNeeded(41@)
goto @ZERO1_10525

:ZERO1_10520
Car.Delete(41@)

:ZERO1_10525
Car.MarkAsNoLongerNeeded(41@)
if 
  not Car.IsDead(42@)
goto_if_false @ZERO1_10579
if 
  Car.IsOnScreen(42@)
goto_if_false @ZERO1_10574
Car.MarkAsNoLongerNeeded(42@)
goto @ZERO1_10579

:ZERO1_10574
Car.Delete(42@)

:ZERO1_10579
Car.MarkAsNoLongerNeeded(42@)
StuckCarCheck.Remove(39@)
StuckCarCheck.Remove(40@)
StuckCarCheck.Remove(41@)
StuckCarCheck.Remove(42@)
356@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 350@ = 356@
sub_int_lvar_from_int_lvar 350@ -= 340@
if 
  350@ > 45000
goto_if_false @ZERO1_10692
328@ = 4

:ZERO1_10653
if 
  8 > 328@
goto_if_false @ZERO1_10692
gosub @ZERO1_2546
328@ += 1
goto @ZERO1_10653

:ZERO1_10692
if 
  1 >= $transmitter_overallhealth
goto_if_false @ZERO1_10817
328@ = 0

:ZERO1_10717
if 
  8 > 328@
goto_if_false @ZERO1_10787
if 
  not Car.IsDead(35@(328@,10i))
goto_if_false @ZERO1_10773
Car.Explode(35@(328@,10i))
Car.MarkAsNoLongerNeeded(35@(328@,10i))

:ZERO1_10773
328@ += 1
goto @ZERO1_10717

:ZERO1_10787
147@ = 0
148@ = 0
149@ = 1
150@ = 0
return 

:ZERO1_10817
return 

:ZERO1_10819
248@(328@,10i) = 0
268@(328@,10f), 278@(328@,10f), 288@(328@,10f) = Car.GetCoordinates(35@(328@,10i))
318@(328@,10f) = World.GetGroundZFor3DCoord(268@(328@,10f), 278@(328@,10f), 288@(328@,10f))
if 
  Object.DoesExist(188@(328@,10i))
goto_if_false @ZERO1_11187
set_lvar_float_to_lvar_float 238@(328@,10f) = 288@(328@,10f)
sub_float_lvar_from_float_lvar 238@(328@,10f) -= 318@(328@,10f)
if 
  238@(328@,10f) > 0.5
goto_if_false @ZERO1_11071
World.SetVisibilityOfClosestObjectOfType(268@(328@,10f), 278@(328@,10f), 288@(328@,10f), 10.0, #RCBOMB, True)
sub_timed_val_from_float_lvar 258@(328@,10f) -=@ 0.05
if 
  -0.5 > 258@(328@,10f)
goto_if_false @ZERO1_11064
258@(328@,10f) = -0.5
248@(328@,10i) = 1

:ZERO1_11064
goto @ZERO1_11187

:ZERO1_11071
set_lvar_float_to_lvar_float 258@(328@,10f) = 238@(328@,10f)
258@(328@,10f) -= 1.0
258@(328@,10f) *= -1.0
if 
  258@(328@,10f) > 0.0
goto_if_false @ZERO1_11187
258@(328@,10f) = 0.0
World.SetVisibilityOfClosestObjectOfType(268@(328@,10f), 278@(328@,10f), 288@(328@,10f), 10.0, #RCBOMB, False)

:ZERO1_11187
if 
  167@(328@,10i) == 1
goto_if_false @ZERO1_11575
218@(328@,10i) = Clock.GetGameTimer()
if 
  is_int_lvar_greater_than_int_lvar 218@(328@,10i) > 228@(328@,10i)
goto_if_false @ZERO1_11575
if 
  208@(328@,10i) == 0
goto_if_false @ZERO1_11515
if 
  248@(328@,10i) == 1
goto_if_false @ZERO1_11508
258@(328@,10f) -= 0.5
Object.Detach(188@(328@,10i), 0.0, 0.0, 0.0, False)
Object.SetDynamic(188@(328@,10i), True)
Object.SetCollision(188@(328@,10i), True)
Object.AddToVelocity(188@(328@,10i), 0.0, 0.0, 0.0)
set_lvar_int_to_lvar_int 228@(328@,10i) = 218@(328@,10i)
228@(328@,10i) += 2500
set_lvar_int_to_lvar_int 198@(328@,10i) = 188@(328@,10i)
188@(328@,10i) = -1
Object.SetRecordsCollisions(198@(328@,10i), True)
set_lvar_int_to_lvar_int 298@(328@,10i) = 218@(328@,10i)
298@(328@,10i) += 250
set_lvar_int_to_lvar_int 308@(328@,10i) = 218@(328@,10i)
308@(328@,10i) += 3000
208@(328@,10i) = 1

:ZERO1_11508
goto @ZERO1_11575

:ZERO1_11515
if 
  208@(328@,10i) == 2
goto_if_false @ZERO1_11575
if 
  is_int_lvar_greater_than_int_lvar 218@(328@,10i) > 298@(328@,10i)
goto_if_false @ZERO1_11575
208@(328@,10i) = 0

:ZERO1_11575
if 
  208@(328@,10i) == 1
goto_if_false @ZERO1_13564
if 
  Object.DoesExist(198@(328@,10i))
goto_if_false @ZERO1_13564
268@(328@,10f), 278@(328@,10f), 288@(328@,10f) = Object.GetCoordinates(198@(328@,10i))
318@(328@,10f) = World.GetGroundZFor3DCoord(268@(328@,10f), 278@(328@,10f), 288@(328@,10f))
318@(328@,10f) += 0.5
if 
  6.0 > 318@(328@,10f)
goto_if_false @ZERO1_11730
318@(328@,10f) = 6.0

:ZERO1_11730
if or
  Object.HasCollidedWithAnything(198@(328@,10i))
  is_int_lvar_greater_than_int_lvar 218@(328@,10i) > 308@(328@,10i)
  Object.IsInWater(198@(328@,10i))
goto_if_false @ZERO1_13564
Object.SetRecordsCollisions(198@(328@,10i), False)
Fx.AddExplosion(268@(328@,10f), 278@(328@,10f), 288@(328@,10f), ExplosionType.Grenade)
Object.MarkAsNoLongerNeeded(198@(328@,10i))
Object.Delete(198@(328@,10i))
198@(328@,10i) = -1
208@(328@,10i) = 2
167@(328@,10i) = 2
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_11993
if 
  166@ == 0
goto_if_false @ZERO1_11993
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21805)

:ZERO1_11903
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_11929
wait 0
goto @ZERO1_11903

:ZERO1_11929
Text.PrintNow('ZER1_BC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_11949
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_11975
wait 0
goto @ZERO1_11949

:ZERO1_11975
Text.ClearThisPrint('ZER1_BC')
166@ = 1

:ZERO1_11993
if 
  not Car.IsDead(35@(328@,10i))
goto_if_false @ZERO1_12273
set_lvar_float_to_lvar_float 76@ = 85@(329@,4f)
76@ += 4.0
if 
  Car.Locate2D(35@(328@,10i), -2235.66, 182.43, 50.0, 50.0, False)
goto_if_false @ZERO1_12129
119@(328@,8f), 127@(328@,8f), 135@(328@,8f) = Car.GetOffsetInWorldCoords(35@(328@,10i), -25.0, 0.0, 5.0)
goto @ZERO1_12174

:ZERO1_12129
119@(328@,8f), 127@(328@,8f), 135@(328@,8f) = Car.GetOffsetInWorldCoords(35@(328@,10i), 25.0, 0.0, 5.0)

:ZERO1_12174
95@(328@,8f), 103@(328@,8f), 111@(328@,8f) = Car.GetOffsetInWorldCoords(35@(328@,10i), 0.0, 20.0, 4.0)
Plane.GotoCoords(35@(328@,10i), 95@(328@,8f), 103@(328@,8f), 111@(328@,8f), -1.0, 0.5)
Plane.SetThrottle(35@(328@,10i), -0.9)

:ZERO1_12273
if 
  160@ == 0
goto_if_false @ZERO1_12568
if 
  Object.DoesExist(45@)
goto_if_false @ZERO1_12568
if 
  Object.Locate3D(45@, 268@(328@,10f), 278@(328@,10f), 288@(328@,10f), 15.0, 15.0, 10.0, False)
goto_if_false @ZERO1_12568
if 
  331@ > 5
goto_if_false @ZERO1_12393
331@ -= 5
goto @ZERO1_12568

:ZERO1_12393
160@ = 1
gosub @ZERO1_13947
if 
  150@ == 1
goto_if_false @ZERO1_12455
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_12455
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_12568
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21809)

:ZERO1_12478
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_12504
wait 0
goto @ZERO1_12478

:ZERO1_12504
Text.PrintNow('ZER1_BG', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_12524
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_12550
wait 0
goto @ZERO1_12524

:ZERO1_12550
Text.ClearThisPrint('ZER1_BG')
331@ = 0

:ZERO1_12568
if 
  161@ == 0
goto_if_false @ZERO1_12863
if 
  Object.DoesExist(46@)
goto_if_false @ZERO1_12863
if 
  Object.Locate3D(46@, 268@(328@,10f), 278@(328@,10f), 288@(328@,10f), 15.0, 15.0, 10.0, False)
goto_if_false @ZERO1_12863
if 
  332@ > 5
goto_if_false @ZERO1_12688
332@ -= 5
goto @ZERO1_12863

:ZERO1_12688
161@ = 1
gosub @ZERO1_13947
if 
  150@ == 1
goto_if_false @ZERO1_12750
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_12750
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_12863
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21811)

:ZERO1_12773
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_12799
wait 0
goto @ZERO1_12773

:ZERO1_12799
Text.PrintNow('ZER1_BJ', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_12819
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_12845
wait 0
goto @ZERO1_12819

:ZERO1_12845
Text.ClearThisPrint('ZER1_BJ')
332@ = 0

:ZERO1_12863
if 
  162@ == 0
goto_if_false @ZERO1_13158
if 
  Object.DoesExist(47@)
goto_if_false @ZERO1_13158
if 
  Object.Locate3D(47@, 268@(328@,10f), 278@(328@,10f), 288@(328@,10f), 15.0, 15.0, 10.0, False)
goto_if_false @ZERO1_13158
if 
  333@ > 5
goto_if_false @ZERO1_12983
333@ -= 5
goto @ZERO1_13158

:ZERO1_12983
162@ = 1
gosub @ZERO1_13947
if 
  150@ == 1
goto_if_false @ZERO1_13045
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_13045
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_13158
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21812)

:ZERO1_13068
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_13094
wait 0
goto @ZERO1_13068

:ZERO1_13094
Text.PrintNow('ZER1_BK', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_13114
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_13140
wait 0
goto @ZERO1_13114

:ZERO1_13140
Text.ClearThisPrint('ZER1_BK')
333@ = 0

:ZERO1_13158
if 
  163@ == 0
goto_if_false @ZERO1_13564
if 
  Object.DoesExist(48@)
goto_if_false @ZERO1_13564
if 
  Object.Locate3D(48@, 268@(328@,10f), 278@(328@,10f), 288@(328@,10f), 15.0, 15.0, 10.0, False)
goto_if_false @ZERO1_13564
if 
  334@ > 5
goto_if_false @ZERO1_13278
334@ -= 5
goto @ZERO1_13564

:ZERO1_13278
163@ = 1
Object.Delete(45@(329@,10i))
Fx.AddExplosion(77@(329@,4f), 81@(329@,4f), 85@(329@,4f), ExplosionType.Grenade)
45@(329@,10i) = Object.Create(#WONGS_ERECTION2, 77@(329@,4f), 81@(329@,4f), 85@(329@,4f))
Object.SetHeading(45@(329@,10i), 143@(329@,4f))
363@(329@,4i) = ScriptFire.Start(77@(329@,4f), 81@(329@,4f), 85@(329@,4f), 5, 3)
334@ = 0
147@ = 0
148@ = 0
150@ = 1
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_13536
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21819)

:ZERO1_13453
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_13479
wait 0
goto @ZERO1_13453

:ZERO1_13479
Text.PrintNow('ZER1_EA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_13499
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_13525
wait 0
goto @ZERO1_13499

:ZERO1_13525
Text.ClearThisPrint('ZER1_EA')

:ZERO1_13536
Hud.ClearCounter($fleet_destroyed_counter)
Hud.ClearTimer($transmitter_overallhealth)
Text.PrintNow('ZER1_19', 5000, 1)
return 

:ZERO1_13564
return 

:ZERO1_13566
if or
  329@ > 3
  5 >= $fleet_destroyed_counter
goto_if_false @ZERO1_13913
147@ = 0
148@ = 0
150@ = 1
if 
  Object.DoesExist(45@(329@,10i))
goto_if_false @ZERO1_13772
Object.Delete(45@(329@,10i))
Fx.AddExplosion(77@(329@,4f), 81@(329@,4f), 85@(329@,4f), ExplosionType.Grenade)
Fx.AddExplosion(77@(329@,4f), 81@(329@,4f), 61.5, ExplosionType.Object)
45@(329@,10i) = Object.Create(#WONGS_ERECTION2, 77@(329@,4f), 81@(329@,4f), 85@(329@,4f))
Object.SetHeading(45@(329@,10i), 143@(329@,4f))
363@(329@,4i) = ScriptFire.Start(77@(329@,4f), 81@(329@,4f), 85@(329@,4f), 5, 3)

:ZERO1_13772
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_13878
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21819)

:ZERO1_13795
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_13821
wait 0
goto @ZERO1_13795

:ZERO1_13821
Text.PrintNow('ZER1_EA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_13841
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_13867
wait 0
goto @ZERO1_13841

:ZERO1_13867
Text.ClearThisPrint('ZER1_EA')

:ZERO1_13878
Hud.ClearCounter($fleet_destroyed_counter)
Hud.ClearTimer($transmitter_overallhealth)
Text.PrintNow('ZER1_19', 5000, 1)
return 
goto @ZERO1_13945

:ZERO1_13913
set_var_int_to_lvar_int $fleet_destroyed_counter = 331@
add_int_lvar_to_int_var $fleet_destroyed_counter += 332@
add_int_lvar_to_int_var $fleet_destroyed_counter += 333@
add_int_lvar_to_int_var $fleet_destroyed_counter += 334@

:ZERO1_13945
return 

:ZERO1_13947
Object.Delete(45@(329@,10i))
Fx.AddExplosion(77@(329@,4f), 81@(329@,4f), 61.5, ExplosionType.Object)
Fx.AddExplosion(77@(329@,4f), 81@(329@,4f), 85@(329@,4f), ExplosionType.Grenade)
45@(329@,10i) = Object.Create(#WONGS_ERECTION2, 77@(329@,4f), 81@(329@,4f), 85@(329@,4f))
Object.SetHeading(45@(329@,10i), 143@(329@,4f))
363@(329@,4i) = ScriptFire.Start(77@(329@,4f), 81@(329@,4f), 85@(329@,4f), 5, 3)
if and
  4 > 329@
  329@ >= 0
goto_if_false @ZERO1_15106
329@ += 1
if 
  329@ == 1
goto_if_false @ZERO1_14297
60@ = -2308.496
68@ = 131.349
61@ = -2080.581
69@ = 122.0999
62@ = -2308.693
70@ = 190.552
63@ = -2124.54
71@ = 63.5174
64@ = -2112.457
72@ = 143.6713
65@ = -2111.908
73@ = 149.0278
66@ = -2110.368
74@ = 126.8913
67@ = -2110.021
75@ = 120.1988

:ZERO1_14297
if 
  329@ == 2
goto_if_false @ZERO1_14475
60@ = -2308.496
68@ = 131.349
61@ = -2080.581
69@ = 122.0999
62@ = -2308.693
70@ = 190.552
63@ = -2124.54
71@ = 63.5174
64@ = -2112.457
72@ = 143.6713
65@ = -2111.908
73@ = 149.0278
66@ = -2110.368
74@ = 126.8913
67@ = -2110.021
75@ = 120.1988

:ZERO1_14475
if 
  329@ == 3
goto_if_false @ZERO1_14660
DecisionMakerChar.ClearEventResponse(335@, 59)
60@ = -2119.496
68@ = 91.349
61@ = -2258.581
69@ = 169.0999
62@ = -2278.693
70@ = 66.552
63@ = -2248.54
71@ = 181.5174
64@ = -2180.457
72@ = 22.6713
65@ = -2181.908
73@ = 25.0278
66@ = -2181.368
74@ = 18.8913
67@ = -2180.021
75@ = 18.1988

:ZERO1_14660
set_lvar_float_to_lvar_float 76@ = 85@(329@,4f)
76@ += 10.0
if 
  not Car.IsDead(35@)
goto_if_false @ZERO1_14735
Plane.GotoCoords(35@, 77@(329@,4f), 81@(329@,4f), 76@, -1.0, 0.5)
336@ = Clock.GetGameTimer()

:ZERO1_14735
if 
  not Car.IsDead(36@)
goto_if_false @ZERO1_14788
Plane.GotoCoords(36@, 77@(329@,4f), 81@(329@,4f), 76@, -1.0, 0.5)
337@ = Clock.GetGameTimer()

:ZERO1_14788
if 
  not Car.IsDead(37@)
goto_if_false @ZERO1_14841
Plane.GotoCoords(37@, 77@(329@,4f), 81@(329@,4f), 76@, -1.0, 0.5)
338@ = Clock.GetGameTimer()

:ZERO1_14841
if 
  not Car.IsDead(38@)
goto_if_false @ZERO1_14894
Plane.GotoCoords(38@, 77@(329@,4f), 81@(329@,4f), 76@, -1.0, 0.5)
339@ = Clock.GetGameTimer()

:ZERO1_14894
if 
  not Car.IsDead(39@)
goto_if_false @ZERO1_14947
Plane.GotoCoords(39@, 77@(329@,4f), 81@(329@,4f), 76@, -1.0, 0.5)
340@ = Clock.GetGameTimer()

:ZERO1_14947
if 
  not Car.IsDead(40@)
goto_if_false @ZERO1_15000
Plane.GotoCoords(40@, 77@(329@,4f), 81@(329@,4f), 76@, -1.0, 0.5)
341@ = Clock.GetGameTimer()

:ZERO1_15000
if 
  not Car.IsDead(41@)
goto_if_false @ZERO1_15053
Plane.GotoCoords(41@, 77@(329@,4f), 81@(329@,4f), 76@, -1.0, 0.5)
342@ = Clock.GetGameTimer()

:ZERO1_15053
if 
  not Car.IsDead(42@)
goto_if_false @ZERO1_15106
Plane.GotoCoords(42@, 77@(329@,4f), 81@(329@,4f), 76@, -1.0, 0.5)
343@ = Clock.GetGameTimer()

:ZERO1_15106
return 
178@(328@,10i) = Blip.AddForCar(35@(328@,10i))
Blip.ChangeDisplay(178@(328@,10i), BlipDisplay.BlipOnly)
return 

:ZERO1_15137
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)
Player.ClearWantedLevel($player1)

:ZERO1_15157
if 
  Camera.GetFadingStatus
goto_if_false @ZERO1_15181
wait 0
goto @ZERO1_15157

:ZERO1_15181
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Player.SetHeadingForAttached($player1, 270.0, 270.0)
Streaming.RequestAnimation("CASINO")

:ZERO1_15217
if 
  not Streaming.HasAnimationLoaded("CASINO")
goto_if_false @ZERO1_15249
wait 0
goto @ZERO1_15217

:ZERO1_15249
Streaming.RemoveAnimation("ON_LOOKERS")
DecisionMakerChar.ClearEventResponse(335@, 59)
Task.ShootAtCoord($scplayer, -2237.22, 170.55, 58.45, 3000)
if 
  Char.IsDead(55@)
goto_if_false @ZERO1_15352
55@ = Char.Create(PedType.CivMale, 290, -2235.0, 123.0, 57.1)
Char.SetHealth(55@, 1000)
Char.SetHeading(55@, 160.0)

:ZERO1_15352
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_15561
Char.ClearTasks(55@)
Char.SetCoordinates(55@, -2235.0, 123.0, 57.1)
Char.SetHeading(55@, 160.0)
367@ = Sequence.Open()
Task.GoStraightToCoord(-1, -2237.93, 121.4, 57.0, MoveState.Run, -1)
Task.PlayAnim(-1, "MANWIND", "CASINO", 4.0, True, False, False, False, 2000)
Task.AchieveHeading(-1, 100.0)
Task.ScratchHead(-1)
Task.ChatWithChar(-1, $scplayer, True, 1)
Sequence.Close(367@)
Char.PerformSequence(55@, 367@)
Sequence.Clear(367@)
Camera.SetFixedPosition(-2242.837, 130.3954, 60.7181, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2242.324, 129.5807, 60.4482, SwitchType.JumpCut)

:ZERO1_15561
Camera.DoFade(1000, Fade.In)
Camera.SetFadingColor(0, 0, 0)

:ZERO1_15576
if 
  Camera.GetFadingStatus
goto_if_false @ZERO1_15600
wait 0
goto @ZERO1_15576

:ZERO1_15600
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21822)

:ZERO1_15607
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_15633
wait 0
goto @ZERO1_15607

:ZERO1_15633
Text.PrintNow('ZER1_FA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_15653
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_15679
wait 0
goto @ZERO1_15653

:ZERO1_15679
Text.ClearThisPrint('ZER1_FA')
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21823)

:ZERO1_15697
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_15723
wait 0
goto @ZERO1_15697

:ZERO1_15723
Text.PrintNow('ZER1_FB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_15743
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_15769
wait 0
goto @ZERO1_15743

:ZERO1_15769
Text.ClearThisPrint('ZER1_FB')
177@ = 0
TIMERB = 0
TIMERA = 0

:ZERO1_15801
if 
  177@ <> 10
goto_if_false @ZERO1_16904
wait 0
if 
  177@ == 0
goto_if_false @ZERO1_16222
if 
  TIMERA > 2000
goto_if_false @ZERO1_16222
177@ = 1
Camera.SetFixedPosition(-2238.853, 124.0934, 57.5797, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2238.476, 123.2044, 57.8399, SwitchType.JumpCut)
TIMERA = 0
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_15952
Task.LookAtChar($scplayer, 55@, 3500)

:ZERO1_15952
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21824)

:ZERO1_15959
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_15985
wait 0
goto @ZERO1_15959

:ZERO1_15985
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_16009
Char.StartFacialTalk(55@, 10000)

:ZERO1_16009
Text.PrintNow('ZER1_FC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_16029
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_16055
wait 0
goto @ZERO1_16029

:ZERO1_16055
Text.ClearThisPrint('ZER1_FC')
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_16087
Char.StopFacialTalk(55@)

:ZERO1_16087
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21825)

:ZERO1_16094
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_16120
wait 0
goto @ZERO1_16094

:ZERO1_16120
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_16144
Char.StartFacialTalk(55@, 10000)

:ZERO1_16144
Text.PrintNow('ZER1_FD', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_16164
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_16190
wait 0
goto @ZERO1_16164

:ZERO1_16190
Text.ClearThisPrint('ZER1_FD')
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_16222
Char.StopFacialTalk(55@)

:ZERO1_16222
if 
  177@ == 1
goto_if_false @ZERO1_16328
if 
  TIMERA > 100
goto_if_false @ZERO1_16328
177@ = 2
TIMERA = 0
Char.DetachFromCar($scplayer)
Camera.SetFixedPosition(-2237.975, 122.7383, 58.3408, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2238.193, 121.7735, 58.4879, SwitchType.JumpCut)

:ZERO1_16328
if 
  177@ == 2
goto_if_false @ZERO1_16871
if 
  TIMERA > 200
goto_if_false @ZERO1_16871
177@ = 3
TIMERA = 0
367@ = Sequence.Open()
Task.AchieveHeading(-1, 270.0)
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_16420
Task.ChatWithChar(-1, 55@, False, 1)

:ZERO1_16420
Sequence.Close(367@)
Char.PerformSequence($scplayer, 367@)
Sequence.Clear(367@)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21826)

:ZERO1_16445
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_16471
wait 0
goto @ZERO1_16445

:ZERO1_16471
Text.PrintNow('ZER1_FE', 10000, 1)
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_16511
Char.StartFacialTalk(55@, 10000)

:ZERO1_16511
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_16515
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_16541
wait 0
goto @ZERO1_16515

:ZERO1_16541
Text.ClearThisPrint('ZER1_FE')
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_16573
Char.StopFacialTalk(55@)

:ZERO1_16573
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21828)

:ZERO1_16580
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_16606
wait 0
goto @ZERO1_16580

:ZERO1_16606
Text.PrintNow('ZER1_FG', 10000, 1)
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_16646
Char.StartFacialTalk(55@, 10000)

:ZERO1_16646
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_16650
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_16676
wait 0
goto @ZERO1_16650

:ZERO1_16676
Text.ClearThisPrint('ZER1_FG')
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_16708
Char.StopFacialTalk(55@)

:ZERO1_16708
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_16729
Task.ScratchHead(55@)

:ZERO1_16729
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21827)

:ZERO1_16736
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_16762
wait 0
goto @ZERO1_16736

:ZERO1_16762
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_16786
Char.StartFacialTalk(55@, 10000)

:ZERO1_16786
Text.PrintNow('ZER1_FF', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO1_16806
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO1_16832
wait 0
goto @ZERO1_16806

:ZERO1_16832
Text.ClearThisPrint('ZER1_FF')
if 
  not Char.IsDead(55@)
goto_if_false @ZERO1_16864
Char.StopFacialTalk(55@)

:ZERO1_16864
177@ = 10

:ZERO1_16871
if 
  TIMERB > 14000
goto_if_false @ZERO1_16897
177@ = 10

:ZERO1_16897
goto @ZERO1_15801

:ZERO1_16904
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.Out)

:ZERO1_16919
if 
  Camera.GetFadingStatus
goto_if_false @ZERO1_16943
wait 0
goto @ZERO1_16919

:ZERO1_16943
Hud.SwitchWidescreen(False)
Hud.ClearCounter($fleet_destroyed_counter)
Hud.ClearTimer($transmitter_overallhealth)
Char.DetachFromCar($scplayer)
if 
  not Char.IsDead($scplayer)
goto_if_false @ZERO1_17023
Char.SetProofs($scplayer, False, False, False, False, False)
Char.SetCoordinates($scplayer, -2244.444, 136.8633, 34.3203)
Task.AchieveHeading($scplayer, 90.0)

:ZERO1_17023
wait 500
Camera.RestoreJumpcut
World.ClearArea(-2246.026, 134.895, 34.3047, 1000.0, True)
Camera.DoFade(1000, Fade.In)

:ZERO1_17061
if 
  Camera.GetFadingStatus
goto_if_false @ZERO1_17085
wait 0
goto @ZERO1_17061

:ZERO1_17085
return 

:ZERO1_17087
gosub @ZERO1_15137
Player.SetControl($player1, True)
Text.PrintWithNumberBig('M_PASS', 3000, 100, TextStyle.Middle)
Player.AddScore($player1, 3000)
Audio.PlayMissionPassedTune(1)
Stat.PlayerMadeProgress(1)
Stat.RegisterMissionPassed('ZERO_1')
$flag_zero_mission_counter += 1
return 

:ZERO1_17155
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
wait 5000
Camera.DoFade(500, Fade.Out)
Camera.SetFadingColor(0, 0, 0)

:ZERO1_17191
if 
  Camera.GetFadingStatus
goto_if_false @ZERO1_17215
wait 0
goto @ZERO1_17191

:ZERO1_17215
Hud.ClearCounter($fleet_destroyed_counter)
Hud.ClearTimer($transmitter_overallhealth)
Char.DetachFromCar($scplayer)
Hud.SwitchWidescreen(False)
if 
  not Char.IsDead($scplayer)
goto_if_false @ZERO1_17295
Char.SetProofs($scplayer, False, False, False, False, False)
Char.SetCoordinates($scplayer, -2244.444, 136.8633, 34.3203)
Task.AchieveHeading($scplayer, 90.0)

:ZERO1_17295
Streaming.LoadScene(-2246.026, 134.895, 34.3047)
Camera.RestoreJumpcut
World.ClearArea(-2246.026, 134.895, 34.3047, 1000.0, True)
Camera.DoFade(1000, Fade.In)

:ZERO1_17345
if 
  Camera.GetFadingStatus
goto_if_false @ZERO1_17369
wait 0
goto @ZERO1_17345

:ZERO1_17369
if 
  not Char.IsDead($scplayer)
goto_if_false @ZERO1_17392
Player.SetControl($player1, True)

:ZERO1_17392
return 

:ZERO1_17394
Char.DetachFromCar($scplayer)
Weather.Release
Camera.SetFadingColor(0, 0, 0)
World.RemoveAllScriptFires
$onmission = 0
Game.SetPoliceIgnorePlayer($player1, False)
Game.SetWantedMultiplier(1.0)
Rc.RemoveBuggy
World.SetCarDensityMultiplier(1.0)
Streaming.MarkModelAsNoLongerNeeded(464)
Streaming.MarkModelAsNoLongerNeeded(465)
Streaming.MarkModelAsNoLongerNeeded(362)
Streaming.MarkModelAsNoLongerNeeded(#WONGS_ERECTION)
Streaming.MarkModelAsNoLongerNeeded(#RCBOMB)
Streaming.MarkModelAsNoLongerNeeded(#WONGS_ERECTION2)
Streaming.MarkModelAsNoLongerNeeded(#MINIGUN_BASE)
Streaming.MarkModelAsNoLongerNeeded(366)
Streaming.UnloadSpecialCharacter(1)
Hud.ClearCounter($fleet_destroyed_counter)
Hud.ClearTimer($transmitter_overallhealth)
Car.Delete(35@)
Car.Delete(36@)
Car.Delete(37@)
Car.Delete(38@)
Car.Delete(39@)
Car.Delete(40@)
Car.Delete(41@)
Car.Delete(42@)
Car.Delete(43@)
Car.Delete(44@)
Text.ClearSmallPrints
Camera.ResetNewScriptables
World.DisableAllEntryExits(False)
Object.Delete(45@)
Object.Delete(46@)
Object.Delete(47@)
Object.Delete(48@)
Object.Delete(49@)
Object.Delete(50@)
Object.Delete(51@)
Object.Delete(52@)
Object.Delete(53@)
Object.Delete(54@)
Object.Delete(188@)
Object.Delete(189@)
Object.Delete(190@)
Object.Delete(191@)
Object.Delete(192@)
Object.Delete(193@)
Object.Delete(194@)
Object.Delete(195@)
Object.Delete(196@)
Object.Delete(197@)
Object.Delete(198@)
Object.Delete(199@)
Object.Delete(200@)
Object.Delete(201@)
Object.Delete(202@)
Object.Delete(203@)
Object.Delete(204@)
Object.Delete(205@)
Object.Delete(206@)
Object.Delete(207@)
Blip.Remove(178@)
Blip.Remove(179@)
Blip.Remove(180@)
Blip.Remove(181@)
Blip.Remove(182@)
Blip.Remove(183@)
Blip.Remove(184@)
Blip.Remove(185@)
Blip.Remove(186@)
Blip.Remove(187@)
StuckCarCheck.Remove(35@)
StuckCarCheck.Remove(36@)
StuckCarCheck.Remove(37@)
StuckCarCheck.Remove(38@)
StuckCarCheck.Remove(39@)
StuckCarCheck.Remove(40@)
StuckCarCheck.Remove(41@)
StuckCarCheck.Remove(42@)
StuckCarCheck.Remove(43@)
StuckCarCheck.Remove(44@)
$timer_mobile_start = Clock.GetGameTimer()
Char.RemoveElegantly(55@)
Object.MarkAsNoLongerNeeded(34@)
Streaming.RemoveAnimation("CASINO")
Streaming.RemoveAnimation("ON_LOOKERS")
Mission.Finish
return 

//-------------Mission 73---------------
// Originally: Supply Lines...

:ZERO2
gosub @ZERO2_36
if 
  has_deatharrest_been_executed 
goto_if_false @ZERO2_27
gosub @ZERO2_9363

:ZERO2_27
gosub @ZERO2_9365
terminate_this_script 

:ZERO2_36
119@ = 0
$onmission = 1
Stat.RegisterMissionGiven
script_name 'ZERO2'
Player.SetControl($player1, False)
Text.LoadMissionText('ZERO2')
Hud.DisplayCarNames(False)
Camera.SetFadingColor(0, 0, 0)
Streaming.SetAreaVisible(6)
Player.SetControl($player1, False)
Weather.ForceNow(WeatherType.SunnySf)
Cutscene.Load('ZERO_2')

:ZERO2_119
if 
  not Cutscene.HasLoaded
goto_if_false @ZERO2_143
wait 0
goto @ZERO2_119

:ZERO2_143
Cutscene.Start
Camera.DoFade(1000, Fade.In)
Player.SetControl($player1, False)

:ZERO2_159
if 
  not Cutscene.HasFinished
goto_if_false @ZERO2_183
wait 0
goto @ZERO2_159

:ZERO2_183
Cutscene.Clear
Player.SetControl($player1, False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)

:ZERO2_206
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_230
wait 0
goto @ZERO2_206

:ZERO2_230
Cutscene.Clear
Streaming.SetAreaVisible(0)
Player.SetControl($player1, False)
96@ = 1
97@ = 0
98@ = 0
99@ = 0
110@ = 0
108@ = 0
109@ = 0
116@ = 0
117@ = 0
100@ = 0
101@ = 0
111@ = 0
112@ = 0
113@ = 0
121@ = 0
59@ = 360000.0
set_lvar_float_to_lvar_float 60@ = 59@
63@ = -2006.77
68@ = 365.69
73@ = 34.35
78@ = 0.0
64@ = -2250.573
69@ = 22.8303
74@ = 34.4634
79@ = 180.0
65@ = -2266.27
70@ = 53.1194
75@ = 34.38
80@ = 90.0
66@ = -2441.424
71@ = 41.963
76@ = 33.004
81@ = 90.0
67@ = -1728.08
72@ = 850.89
77@ = 23.73
82@ = 270.0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
122@ = 0
83@ = -2205.44
84@ = 128.99
85@ = 57.33
86@ = 90.0
87@ = -2227.0
88@ = 113.0
89@ = 35.5
61@ = 100.0
$mission_countdown_zero1 = 100
TIMERA = 0
129@ = 0
World.DisableAllEntryExits(True)
Streaming.RequestModel(464)
Streaming.RequestModel(459)
Streaming.RequestModel(352)
Streaming.RequestModel(510)
Streaming.RequestModel(468)
Streaming.LoadSpecialCharacter(1, 'ZERO')
Streaming.LoadAllModelsNow

:ZERO2_753
if or
  not Streaming.HasModelLoaded(464)
  not Streaming.HasModelLoaded(459)
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(510)
  not Streaming.HasModelLoaded(468)
goto_if_false @ZERO2_800
wait 0
goto @ZERO2_753

:ZERO2_800
if 
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @ZERO2_826
wait 0
goto @ZERO2_800

:ZERO2_826
56@ = DecisionMakerChar.Load(DecisionMakerType.Empty)

:ZERO2_833
wait 0
if 
  96@ == 1
goto_if_false @ZERO2_862
gosub @ZERO2_944

:ZERO2_862
if 
  116@ == 1
goto_if_false @ZERO2_887
gosub @ZERO2_7137

:ZERO2_887
if 
  100@ == 1
goto_if_false @ZERO2_912
goto @ZERO2_9334

:ZERO2_912
if 
  101@ == 1
goto_if_false @ZERO2_937
goto @ZERO2_9363

:ZERO2_937
goto @ZERO2_833

:ZERO2_944
World.ClearArea(87@, 88@, 89@, 1000.0, True)
35@ = Car.Create(459, -2250.9, 124.6, 28.48)
Car.SetLoadCollisionFlag(35@, False)
Car.FreezePosition(35@, True)
Car.OpenDoor(35@, CarDoor.LeftRearDoor)
Car.OpenDoor(35@, CarDoor.RightRearDoor)
Char.WarpIntoCar($scplayer, 35@)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
if 
  not Car.IsDead(35@)
goto_if_false @ZERO2_1079
57@ = Char.CreateAsPassenger(35@, PedType.CivMale, 290, 0)
Car.SetHealth(35@, 1000)
Car.SetProofs(35@, True, True, True, True, True)

:ZERO2_1079
Game.SetPoliceIgnorePlayer($player1, True)
Rc.GiveModelToPlayer($player1, 83@, 84@, 85@, 40.09, 464)
34@ = Rc.GetCar($player1)
Car.SetHeading(34@, 90.0)
Rc.SetEnableDetonateOnContact(False)
Rc.SetEnableDetonate(False)
Car.SetHealth(34@, 900)
Car.SetProofs(34@, False, True, True, False, False)
129@ = 0

:ZERO2_1164
if 
  5 > 129@
goto_if_false @ZERO2_1769
wait 0
World.ClearArea(63@(129@,5f), 68@(129@,5f), 73@(129@,5f), 1000.0, True)
if 
  129@ == 0
goto_if_false @ZERO2_1279
46@(129@,5i) = Car.Create(468, 63@(129@,5f), 68@(129@,5f), 73@(129@,5f))
Car.SetHealth(46@(129@,5i), 1000)

:ZERO2_1279
if 
  129@ == 1
goto_if_false @ZERO2_1342
46@(129@,5i) = Car.Create(510, 63@(129@,5f), 68@(129@,5f), 73@(129@,5f))
Car.SetHealth(46@(129@,5i), 1500)

:ZERO2_1342
if 
  129@ == 2
goto_if_false @ZERO2_1405
46@(129@,5i) = Car.Create(459, 63@(129@,5f), 68@(129@,5f), 73@(129@,5f))
Car.SetHealth(46@(129@,5i), 1500)

:ZERO2_1405
if 
  129@ == 3
goto_if_false @ZERO2_1468
46@(129@,5i) = Car.Create(459, 63@(129@,5f), 68@(129@,5f), 73@(129@,5f))
Car.SetHealth(46@(129@,5i), 1500)

:ZERO2_1468
if 
  129@ == 4
goto_if_false @ZERO2_1542
46@(129@,5i) = Car.Create(459, 63@(129@,5f), 68@(129@,5f), 73@(129@,5f))
Car.SetHealth(46@(129@,5i), 1500)
Car.LockDoors(46@(129@,5i), CarLock.SkipShutDoors)

:ZERO2_1542
Car.SetHeading(46@(129@,5i), 78@(129@,5f))
Car.SetProofs(46@(129@,5i), False, True, True, False, False)
36@(129@,5i) = Char.CreateRandomAsDriver(46@(129@,5i))
Char.GiveWeapon(36@(129@,5i), WeaponType.MicroUzi, 500)
Char.SetAccuracy(36@(129@,5i), 100)
Car.SetLoadCollisionFlag(46@(129@,5i), False)
if or
  129@ == 3
  129@ == 0
goto_if_false @ZERO2_1721
51@(129@,5i) = Char.CreateRandomAsPassenger(46@(129@,5i), 0)
Char.GiveWeapon(51@(129@,5i), WeaponType.MicroUzi, 500)
Char.SetAccuracy(51@(129@,5i), 100)
Char.SetDecisionMaker(51@(129@,5i), 56@)
Char.SetDecisionMaker(36@(129@,5i), 56@)

:ZERO2_1721
Task.CarDriveWander(36@(129@,5i), 46@(129@,5i), 3.0, DrivingMode.StopForCars)
103@(129@,5i) = 0
129@ += 1
goto @ZERO2_1164

:ZERO2_1769
TIMERB = 0
Camera.SetFixedPosition(-2273.841, 45.5794, 37.0987, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2273.297, 46.4174, 37.1385, SwitchType.JumpCut)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
World.ClearArea(-2285.54, 41.31, 35.01, 1000.0, True)
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(-2273.841, 45.5794, 37.0987, -2280.653, 50.3058, 35.7357, 5000, True)
Camera.SetVectorTrack(-2273.297, 46.4174, 37.1385, -2280.054, 51.104, 35.6677, 5000, True)
Hud.SwitchWidescreen(True)
TIMERA = 0
TIMERB = 0
Streaming.LoadSceneInDirection(-2273.841, 45.5794, 37.0987, 310.0)
Camera.SetFadingColor(0, 0, 0)
wait 1000
Camera.DoFade(1000, Fade.In)
120@ = 0

:ZERO2_2016
if 
  120@ <> 10
goto_if_false @ZERO2_2447
wait 0
if 
  120@ == 0
goto_if_false @ZERO2_2160
120@ = 1
skip_cutscene_start_internal @ZERO2_2447
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22016)

:ZERO2_2077
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_2103
wait 0
goto @ZERO2_2077

:ZERO2_2103
Text.PrintNow('ZER2_AB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_2123
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_2149
wait 0
goto @ZERO2_2123

:ZERO2_2149
Text.ClearThisPrint('ZER2_AB')

:ZERO2_2160
if 
  120@ == 1
goto_if_false @ZERO2_2275
120@ = 2
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22017)

:ZERO2_2192
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_2218
wait 0
goto @ZERO2_2192

:ZERO2_2218
Text.PrintNow('ZER2_AC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_2238
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_2264
wait 0
goto @ZERO2_2238

:ZERO2_2264
Text.ClearThisPrint('ZER2_AC')

:ZERO2_2275
if 
  120@ == 2
goto_if_false @ZERO2_2390
120@ = 3
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22018)

:ZERO2_2307
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_2333
wait 0
goto @ZERO2_2307

:ZERO2_2333
Text.PrintNow('ZER2_AD', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_2353
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_2379
wait 0
goto @ZERO2_2353

:ZERO2_2379
Text.ClearThisPrint('ZER2_AD')

:ZERO2_2390
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @ZERO2_2414
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
120@ = 10

:ZERO2_2414
if 
  TIMERA > 5000
goto_if_false @ZERO2_2440
120@ = 10

:ZERO2_2440
goto @ZERO2_2016

:ZERO2_2447
skip_cutscene_end 
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:ZERO2_2464
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_2488
wait 0
goto @ZERO2_2464

:ZERO2_2488
Camera.ResetNewScriptables
if 
  not Car.IsDead(35@)
goto_if_false @ZERO2_2543
Car.SetCoordinates(35@, -2233.9, 122.6, 700.48)
Car.SetHeading(35@, 90.0)
Car.FreezePosition(35@, True)

:ZERO2_2543
Audio.SetRadioChannel(RadioChannel.RadioX)
if 
  not Car.IsDead(35@)
goto_if_false @ZERO2_2568
Car.CloseAllDoors(35@)

:ZERO2_2568
Hud.SwitchWidescreen(False)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Camera.RestoreJumpcut
if 
  not Car.IsDead(34@)
goto_if_false @ZERO2_2628
Camera.PointAtCar(34@, CameraMode.CamOnAString, SwitchType.JumpCut)
Car.FreezePosition(34@, False)
wait 0
Camera.SetZoom(1)

:ZERO2_2628
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:ZERO2_2643
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_2667
wait 0
goto @ZERO2_2643

:ZERO2_2667
Player.SetControl($player1, True)
129@ = 0

:ZERO2_2681
if 
  5 > 129@
goto_if_false @ZERO2_2749
if 
  not Char.IsDead(36@(129@,5i))
goto_if_false @ZERO2_2735
123@(129@,5i) = Blip.AddForChar(36@(129@,5i))

:ZERO2_2735
129@ += 1
goto @ZERO2_2681

:ZERO2_2749
Hud.DisplayCounterWithString($mission_countdown_zero1, CounterDisplay.Bar, 'ZER2_28')
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22000)

:ZERO2_2776
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_2802
wait 0
goto @ZERO2_2776

:ZERO2_2802
Text.PrintNow('ZER2_AA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_2822
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_2848
wait 0
goto @ZERO2_2822

:ZERO2_2848
Text.ClearThisPrint('ZER2_AA')
if 
  not Car.IsDead(34@)
goto_if_false @ZERO2_6981

:ZERO2_2875
if 
  110@ <> 1
goto_if_false @ZERO2_6981
wait 0
if 
  not Car.IsDead(34@)
goto_if_false @ZERO2_3014
62@ = Car.GetSpeed(34@)
if 
  62@ > 1.0
goto_if_false @ZERO2_2986
59@ -= 45.0
set_lvar_float_to_lvar_float 61@ = 59@
div_float_lvar_by_float_lvar 61@ /= 60@
61@ *= 100.0
cset_var_int_to_lvar_float $mission_countdown_zero1 =# 61@

:ZERO2_2986
83@, 84@, 85@ = Car.GetCoordinates(34@)
58@ = World.GetCityFromCoords(83@, 84@, 85@)

:ZERO2_3014
if or
  is_int_lvar_equal_to_constant 58@ == 1
  is_int_lvar_equal_to_constant 58@ == 3
goto_if_false @ZERO2_3049
Car.Explode(34@)
Car.Explode(34@)

:ZERO2_3049
if 
  119@ == 0
goto_if_false @ZERO2_3092
Text.PrintHelp('ZER2_1')
119@ = 1
TIMERA = 0

:ZERO2_3092
if 
  119@ == 1
goto_if_false @ZERO2_3156
if 
  TIMERA > 8000
goto_if_false @ZERO2_3156
Text.ClearHelp
Text.PrintHelp('ZER2_2')
119@ = 2
TIMERA = 0

:ZERO2_3156
if 
  119@ == 2
goto_if_false @ZERO2_3220
if 
  TIMERA > 8000
goto_if_false @ZERO2_3220
Text.ClearHelp
Text.PrintHelp('ZER2_30')
119@ = 3
TIMERA = 0

:ZERO2_3220
if 
  119@ == 3
goto_if_false @ZERO2_3282
if 
  TIMERA > 8000
goto_if_false @ZERO2_3282
Text.ClearHelp
Text.PrintNow('ZER2_14', 10000, 1)
119@ = 4

:ZERO2_3282
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @ZERO2_3341
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 1
101@ = 0
return 

:ZERO2_3341
if 
  122@ == 0
goto_if_false @ZERO2_3474
if 
  50 >= $mission_countdown_zero1
goto_if_false @ZERO2_3474
122@ = 1
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22008)

:ZERO2_3391
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_3417
wait 0
goto @ZERO2_3391

:ZERO2_3417
Text.PrintNow('ZER2_DA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_3437
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_3463
wait 0
goto @ZERO2_3437

:ZERO2_3463
Text.ClearThisPrint('ZER2_DA')

:ZERO2_3474
if 
  122@ == 1
goto_if_false @ZERO2_3607
if 
  10 >= $mission_countdown_zero1
goto_if_false @ZERO2_3607
122@ = 2
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22009)

:ZERO2_3524
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_3550
wait 0
goto @ZERO2_3524

:ZERO2_3550
Text.PrintNow('ZER2_DB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_3570
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_3596
wait 0
goto @ZERO2_3570

:ZERO2_3596
Text.ClearThisPrint('ZER2_DB')

:ZERO2_3607
if 
  0 >= $mission_countdown_zero1
goto_if_false @ZERO2_4022
if 
  not Car.IsDead(34@)
goto_if_false @ZERO2_3655
Car.SetEngineOn(34@, False)
Car.SetHeavy(34@, True)

:ZERO2_3655
Hud.ClearCounter($mission_countdown_zero1)
TIMERA = 0
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 1
Player.SetControl($player1, False)
Text.PrintNow('ZER2_42', 5000, 1)
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21821)

:ZERO2_3755
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_3781
wait 0
goto @ZERO2_3755

:ZERO2_3781
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_3785
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_3837
wait 0
if 
  not Car.IsDead(34@)
goto_if_false @ZERO2_3830
Car.SetForwardSpeed(34@, 0.0)

:ZERO2_3830
goto @ZERO2_3785

:ZERO2_3837
Rc.RemoveBuggy
if 
  not Char.IsDead($scplayer)
goto_if_false @ZERO2_3928
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @ZERO2_3898
Char.WarpFromCarToCoord($scplayer, -2244.444, 136.8633, 34.3203)
goto @ZERO2_3918

:ZERO2_3898
Char.SetCoordinates($scplayer, -2244.444, 136.8633, 34.3203)

:ZERO2_3918
Char.SetHeading($scplayer, 90.0)

:ZERO2_3928
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:ZERO2_3943
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_3967
wait 0
goto @ZERO2_3943

:ZERO2_3967
Streaming.LoadScene(-2245.026, 126.895, 34.3047)
wait 1000
Camera.DoFade(1000, Fade.In)

:ZERO2_3996
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_4020
wait 0
goto @ZERO2_3996

:ZERO2_4020
return 

:ZERO2_4022
if 
  Car.IsDead(34@)
goto_if_false @ZERO2_4370
Hud.ClearCounter($mission_countdown_zero1)
101@ = 1
Player.SetControl($player1, False)
96@ = 0
Text.PrintNow('ZER2_8', 5000, 1)
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21820)

:ZERO2_4103
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_4129
wait 0
goto @ZERO2_4103

:ZERO2_4129
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_4133
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_4185
wait 0
if 
  not Car.IsDead(34@)
goto_if_false @ZERO2_4178
Car.SetForwardSpeed(34@, 0.0)

:ZERO2_4178
goto @ZERO2_4133

:ZERO2_4185
Rc.RemoveBuggy
if 
  not Char.IsDead($scplayer)
goto_if_false @ZERO2_4276
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @ZERO2_4246
Char.WarpFromCarToCoord($scplayer, -2244.444, 136.8633, 34.3203)
goto @ZERO2_4266

:ZERO2_4246
Char.SetCoordinates($scplayer, -2244.444, 136.8633, 34.3203)

:ZERO2_4266
Char.SetHeading($scplayer, 90.0)

:ZERO2_4276
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:ZERO2_4291
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_4315
wait 0
goto @ZERO2_4291

:ZERO2_4315
Streaming.LoadScene(-2245.026, 126.895, 34.3047)
wait 1000
Camera.DoFade(1000, Fade.In)

:ZERO2_4344
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_4368
wait 0
goto @ZERO2_4344

:ZERO2_4368
return 

:ZERO2_4370
129@ = 0

:ZERO2_4377
if 
  5 > 129@
goto_if_false @ZERO2_6877
if 
  not Car.IsDead(34@)
goto_if_false @ZERO2_5009
83@, 84@, 85@ = Car.GetCoordinates(34@)
if 
  111@(129@,5i) == 0
goto_if_false @ZERO2_5009
if 
  not Char.IsDead(36@(129@,5i))
goto_if_false @ZERO2_4496
if 
  103@(129@,5i) == 1
goto_if_false @ZERO2_4489

:ZERO2_4489
goto @ZERO2_5009

:ZERO2_4496
111@(129@,5i) = 1
Blip.Remove(123@(129@,5i))
Car.MarkAsNoLongerNeeded(46@(129@,5i))
if or
  129@ == 3
  129@ == 0
goto_if_false @ZERO2_4559
Char.MarkAsNoLongerNeeded(51@(129@,5i))

:ZERO2_4559
121@ += 1
111@(129@,5i) = 1
if 
  121@ == 1
goto_if_false @ZERO2_4685
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22003)

:ZERO2_4602
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_4628
wait 0
goto @ZERO2_4602

:ZERO2_4628
Text.PrintNow('ZER2_CA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_4648
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_4674
wait 0
goto @ZERO2_4648

:ZERO2_4674
Text.ClearThisPrint('ZER2_CA')

:ZERO2_4685
if 
  121@ == 2
goto_if_false @ZERO2_4793
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22005)

:ZERO2_4710
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_4736
wait 0
goto @ZERO2_4710

:ZERO2_4736
Text.PrintNow('ZER2_CC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_4756
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_4782
wait 0
goto @ZERO2_4756

:ZERO2_4782
Text.ClearThisPrint('ZER2_CC')

:ZERO2_4793
if 
  121@ == 3
goto_if_false @ZERO2_4901
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22006)

:ZERO2_4818
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_4844
wait 0
goto @ZERO2_4818

:ZERO2_4844
Text.PrintNow('ZER2_CD', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_4864
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_4890
wait 0
goto @ZERO2_4864

:ZERO2_4890
Text.ClearThisPrint('ZER2_CD')

:ZERO2_4901
if 
  121@ == 4
goto_if_false @ZERO2_5009
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22007)

:ZERO2_4926
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_4952
wait 0
goto @ZERO2_4926

:ZERO2_4952
Text.PrintNow('ZER2_CE', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_4972
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_4998
wait 0
goto @ZERO2_4972

:ZERO2_4998
Text.ClearThisPrint('ZER2_CE')

:ZERO2_5009
if 
  not Car.IsDead(34@)
goto_if_false @ZERO2_6531
95@ = Clock.GetGameTimer()
if 
  not Car.Locate3D(34@, 91@, 92@, 93@, 1.5, 1.5, 1.5, False)
goto_if_false @ZERO2_5109
91@, 92@, 93@ = Car.GetCoordinates(34@)
set_lvar_int_to_lvar_int 94@ = 95@
94@ += 4000
117@ = 0

:ZERO2_5109
if 
  Car.Locate3D(34@, 91@, 92@, 93@, 1.5, 1.5, 1.5, False)
goto_if_false @ZERO2_5595
if 
  is_int_lvar_greater_than_int_lvar 95@ > 94@
goto_if_false @ZERO2_5595
if 
  119@ > 3
goto_if_false @ZERO2_5595
if 
  117@ == 0
goto_if_false @ZERO2_5224
Text.PrintHelp('ZER2_4')
117@ = 1

:ZERO2_5224
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @ZERO2_5595
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 1
Player.SetControl($player1, False)
Text.PrintNow('ZER2_8', 5000, 1)
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Car.SetHealth(34@, 1)
Hud.ClearCounter($mission_countdown_zero1)
if 
  not Char.IsDead($scplayer)
goto_if_false @ZERO2_5423
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @ZERO2_5393
Char.WarpFromCarToCoord($scplayer, -2244.444, 136.8633, 34.3203)
goto @ZERO2_5413

:ZERO2_5393
Char.SetCoordinates($scplayer, -2244.444, 136.8633, 34.3203)

:ZERO2_5413
Char.SetHeading($scplayer, 90.0)

:ZERO2_5423
Fx.AddExplosion(91@, 92@, 93@, ExplosionType.Grenade)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21821)

:ZERO2_5443
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_5469
wait 0
goto @ZERO2_5443

:ZERO2_5469
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_5473
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_5499
wait 0
goto @ZERO2_5473

:ZERO2_5499
Rc.RemoveBuggy
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:ZERO2_5516
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_5540
wait 0
goto @ZERO2_5516

:ZERO2_5540
Streaming.LoadScene(-2245.026, 126.895, 34.3047)
wait 1000
Camera.DoFade(1000, Fade.In)

:ZERO2_5569
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_5593
wait 0
goto @ZERO2_5569

:ZERO2_5593
return 

:ZERO2_5595
if 
  not Car.IsDead(46@(129@,5i))
goto_if_false @ZERO2_6524
if 
  103@(129@,5i) == 0
goto_if_false @ZERO2_6277
if or
  Car.HasBeenDamagedByCar(46@(129@,5i), 34@)
  Car.HasBeenDamagedByWeapon(46@(129@,5i), WeaponType.M4)
goto_if_false @ZERO2_6277
103@(129@,5i) = 1
if or
  129@ == 2
  129@ == 1
goto_if_false @ZERO2_5987
if 
  not Char.IsDead(36@(129@,5i))
goto_if_false @ZERO2_5980
Task.LeaveCarAndFlee(36@(129@,5i), 46@(129@,5i), 83@, 84@, 85@)
Task.DestroyCar(36@(129@,5i), 34@)
if 
  129@ == 1
goto_if_false @ZERO2_5872
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22002)

:ZERO2_5789
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_5815
wait 0
goto @ZERO2_5789

:ZERO2_5815
Text.PrintNow('ZER2_BB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_5835
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_5861
wait 0
goto @ZERO2_5835

:ZERO2_5861
Text.ClearThisPrint('ZER2_BB')

:ZERO2_5872
if 
  129@ == 2
goto_if_false @ZERO2_5980
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22001)

:ZERO2_5897
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_5923
wait 0
goto @ZERO2_5897

:ZERO2_5923
Text.PrintNow('ZER2_BA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_5943
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_5969
wait 0
goto @ZERO2_5943

:ZERO2_5969
Text.ClearThisPrint('ZER2_BA')

:ZERO2_5980
goto @ZERO2_6068

:ZERO2_5987
if 
  not Car.IsDead(46@(129@,5i))
goto_if_false @ZERO2_6068
if 
  not Char.IsDead(36@(129@,5i))
goto_if_false @ZERO2_6068
if 
  129@ <> 4
goto_if_false @ZERO2_6068
Task.CarDriveWander(36@(129@,5i), 46@(129@,5i), 12.0, DrivingMode.PloughThrough)

:ZERO2_6068
if or
  129@ == 3
  129@ == 0
goto_if_false @ZERO2_6169
if 
  not Car.IsDead(34@)
goto_if_false @ZERO2_6169
if 
  not Char.IsDead(51@(129@,5i))
goto_if_false @ZERO2_6169
Task.DriveBy(51@(129@,5i), -1, 34@, 0.0, 0.0, 0.0, 1000.0, DriveByType.Ai, False, 100)

:ZERO2_6169
if 
  129@ == 0
goto_if_false @ZERO2_6277
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21829)

:ZERO2_6194
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_6220
wait 0
goto @ZERO2_6194

:ZERO2_6220
Text.PrintNow('ZER1_FH', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_6240
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_6266
wait 0
goto @ZERO2_6240

:ZERO2_6266
Text.ClearThisPrint('ZER1_FH')

:ZERO2_6277
if 
  119@ == 4
goto_if_false @ZERO2_6524
if 
  not Car.IsDead(46@(129@,5i))
goto_if_false @ZERO2_6524
if 
  Car.Locate3D(46@(129@,5i), 83@, 84@, 85@, 50.0, 50.0, 50.0, False)
goto_if_false @ZERO2_6422
if 
  Car.IsOnScreen(46@(129@,5i))
goto_if_false @ZERO2_6422
if 
  98@ == 0
goto_if_false @ZERO2_6422
Text.Print('ZER2_7', 5000, 1)
98@ = 1

:ZERO2_6422
if 
  Car.Locate3D(46@(129@,5i), 83@, 84@, 85@, 30.0, 30.0, 30.0, False)
goto_if_false @ZERO2_6524
if 
  Car.IsOnScreen(46@(129@,5i))
goto_if_false @ZERO2_6524
if 
  98@ == 1
goto_if_false @ZERO2_6524
Text.PrintHelp('ZER2_30')
98@ = 2

:ZERO2_6524
goto @ZERO2_6863

:ZERO2_6531
101@ = 1
Player.SetControl($player1, False)
96@ = 0
Text.PrintNow('ZER2_8', 5000, 1)
Hud.ClearCounter($mission_countdown_zero1)
if 
  not Char.IsDead($scplayer)
goto_if_false @ZERO2_6662
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @ZERO2_6632
Char.WarpFromCarToCoord($scplayer, -2244.444, 136.8633, 34.3203)
goto @ZERO2_6652

:ZERO2_6632
Char.SetCoordinates($scplayer, -2244.444, 136.8633, 34.3203)

:ZERO2_6652
Char.SetHeading($scplayer, 90.0)

:ZERO2_6662
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21820)

:ZERO2_6685
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_6711
wait 0
goto @ZERO2_6685

:ZERO2_6711
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_6715
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_6767
wait 0
if 
  not Car.IsDead(34@)
goto_if_false @ZERO2_6760
Car.SetForwardSpeed(34@, 0.0)

:ZERO2_6760
goto @ZERO2_6715

:ZERO2_6767
Rc.RemoveBuggy
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:ZERO2_6784
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_6808
wait 0
goto @ZERO2_6784

:ZERO2_6808
Streaming.LoadScene(-2245.026, 126.895, 34.3047)
wait 1000
Camera.DoFade(1000, Fade.In)

:ZERO2_6837
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_6861
wait 0
goto @ZERO2_6837

:ZERO2_6861
return 

:ZERO2_6863
129@ += 1
goto @ZERO2_4377

:ZERO2_6877
if 
  111@ == 1
goto_if_false @ZERO2_6974
if 
  112@ == 1
goto_if_false @ZERO2_6974
if 
  113@ == 1
goto_if_false @ZERO2_6974
if 
  114@ == 1
goto_if_false @ZERO2_6974
if 
  115@ == 1
goto_if_false @ZERO2_6974
110@ = 1

:ZERO2_6974
goto @ZERO2_2875

:ZERO2_6981
96@ = 0
100@ = 0
116@ = 1
108@ = 0
128@ = Blip.AddForCoord(-2237.31, 140.08, 57.23)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22020)

:ZERO2_7036
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_7062
wait 0
goto @ZERO2_7036

:ZERO2_7062
Text.PrintNow('ZER2_EB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_7082
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_7108
wait 0
goto @ZERO2_7082

:ZERO2_7108
Text.ClearThisPrint('ZER2_EB')
Text.PrintNow('ZER2_41', 5000, 1)
return 

:ZERO2_7137
if 
  not Car.IsDead(34@)
goto_if_false @ZERO2_8310
62@ = Car.GetSpeed(34@)
if 
  62@ > 1.0
goto_if_false @ZERO2_7226
59@ -= 45.0
set_lvar_float_to_lvar_float 61@ = 59@
div_float_lvar_by_float_lvar 61@ /= 60@
61@ *= 100.0
cset_var_int_to_lvar_float $mission_countdown_zero1 =# 61@

:ZERO2_7226
if or
  is_int_lvar_equal_to_constant 58@ == 1
  is_int_lvar_equal_to_constant 58@ == 3
goto_if_false @ZERO2_7261
Car.Explode(34@)
Car.Explode(34@)

:ZERO2_7261
95@ = Clock.GetGameTimer()
if 
  not Car.Locate3D(34@, 91@, 92@, 93@, 1.5, 1.5, 1.5, False)
goto_if_false @ZERO2_7345
91@, 92@, 93@ = Car.GetCoordinates(34@)
set_lvar_int_to_lvar_int 94@ = 95@
94@ += 4000
117@ = 0

:ZERO2_7345
if 
  Car.Locate3D(34@, 91@, 92@, 93@, 1.5, 1.5, 1.5, False)
goto_if_false @ZERO2_7851
if 
  is_int_lvar_greater_than_int_lvar 95@ > 94@
goto_if_false @ZERO2_7851
if 
  119@ > 3
goto_if_false @ZERO2_7851
if 
  117@ == 0
goto_if_false @ZERO2_7460
Text.PrintHelp('ZER2_4')
117@ = 1

:ZERO2_7460
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @ZERO2_7851
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 1
Player.SetControl($player1, False)
Text.PrintNow('ZER2_8', 5000, 1)
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Car.SetHealth(34@, 1)
Hud.ClearCounter($mission_countdown_zero1)
if 
  not Char.IsDead($scplayer)
goto_if_false @ZERO2_7659
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @ZERO2_7629
Char.WarpFromCarToCoord($scplayer, -2244.444, 136.8633, 34.3203)
goto @ZERO2_7649

:ZERO2_7629
Char.SetCoordinates($scplayer, -2244.444, 136.8633, 34.3203)

:ZERO2_7649
Char.SetHeading($scplayer, 90.0)

:ZERO2_7659
Fx.AddExplosion(91@, 92@, 93@, ExplosionType.Grenade)
Car.Explode(34@)
Car.Explode(34@)
Car.Explode(34@)
Car.Explode(34@)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21821)

:ZERO2_7699
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_7725
wait 0
goto @ZERO2_7699

:ZERO2_7725
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_7729
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_7755
wait 0
goto @ZERO2_7729

:ZERO2_7755
Rc.RemoveBuggy
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:ZERO2_7772
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_7796
wait 0
goto @ZERO2_7772

:ZERO2_7796
Streaming.LoadScene(-2245.026, 126.895, 34.3047)
wait 1000
Camera.DoFade(1000, Fade.In)

:ZERO2_7825
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_7849
wait 0
goto @ZERO2_7825

:ZERO2_7849
return 

:ZERO2_7851
if 
  Car.Locate3D(34@, -2237.31, 140.08, 57.23, 4.0, 4.0, 4.0, True)
goto_if_false @ZERO2_8303
Player.SetControl($player1, False)
96@ = 0
100@ = 1
116@ = 0
108@ = 0
Car.SetEngineOn(34@, False)
Car.SetHeavy(34@, True)
Text.PrintWithNumberBig('M_PASS', 5000, 5000, TextStyle.Middle)
Player.AddScore($player1, 5000)
Audio.PlayMissionPassedTune(1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22013)

:ZERO2_7986
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_8012
wait 0
goto @ZERO2_7986

:ZERO2_8012
Text.PrintNow('ZER2_FB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_8032
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_8058
wait 0
goto @ZERO2_8032

:ZERO2_8058
Text.ClearThisPrint('ZER2_FB')
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22014)

:ZERO2_8076
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_8102
wait 0
goto @ZERO2_8076

:ZERO2_8102
Text.PrintNow('ZER2_FC', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_8122
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_8148
wait 0
goto @ZERO2_8122

:ZERO2_8148
Text.ClearThisPrint('ZER2_FC')
Rc.RemoveBuggy
Hud.ClearCounter($mission_countdown_zero1)
Streaming.LoadScene(-2245.026, 126.895, 34.3047)
if 
  not Char.IsDead($scplayer)
goto_if_false @ZERO2_8272
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @ZERO2_8242
Char.WarpFromCarToCoord($scplayer, -2244.444, 136.8633, 34.3203)
goto @ZERO2_8262

:ZERO2_8242
Char.SetCoordinates($scplayer, -2244.444, 136.8633, 34.3203)

:ZERO2_8262
Char.SetHeading($scplayer, 90.0)

:ZERO2_8272
wait 1200

:ZERO2_8277
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_8301
wait 0
goto @ZERO2_8277

:ZERO2_8301
return 

:ZERO2_8303
goto @ZERO2_8644

:ZERO2_8310
101@ = 1
Player.SetControl($player1, False)
96@ = 0
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
TIMERA = 0
if 
  not Char.IsDead($scplayer)
goto_if_false @ZERO2_8443
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @ZERO2_8413
Char.WarpFromCarToCoord($scplayer, -2244.444, 136.8633, 34.3203)
goto @ZERO2_8433

:ZERO2_8413
Char.SetCoordinates($scplayer, -2244.444, 136.8633, 34.3203)

:ZERO2_8433
Char.SetHeading($scplayer, 90.0)

:ZERO2_8443
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21820)

:ZERO2_8450
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_8476
wait 0
goto @ZERO2_8450

:ZERO2_8476
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_8480
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_8532
wait 0
if 
  not Car.IsDead(34@)
goto_if_false @ZERO2_8525
Car.SetForwardSpeed(34@, 0.0)

:ZERO2_8525
goto @ZERO2_8480

:ZERO2_8532
Rc.RemoveBuggy
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:ZERO2_8549
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_8573
wait 0
goto @ZERO2_8549

:ZERO2_8573
Streaming.LoadScene(-2245.026, 126.895, 34.3047)
wait 1000
Camera.DoFade(1000, Fade.In)

:ZERO2_8602
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_8626
wait 0
goto @ZERO2_8602

:ZERO2_8626
Text.PrintNow('ZER2_8', 10000, 1)
return 

:ZERO2_8644
if 
  122@ == 0
goto_if_false @ZERO2_8777
if 
  50 >= $mission_countdown_zero1
goto_if_false @ZERO2_8777
122@ = 1
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22008)

:ZERO2_8694
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_8720
wait 0
goto @ZERO2_8694

:ZERO2_8720
Text.PrintNow('ZER2_DA', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_8740
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_8766
wait 0
goto @ZERO2_8740

:ZERO2_8766
Text.ClearThisPrint('ZER2_DA')

:ZERO2_8777
if 
  122@ == 1
goto_if_false @ZERO2_8910
if 
  20 >= $mission_countdown_zero1
goto_if_false @ZERO2_8910
122@ = 2
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22009)

:ZERO2_8827
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_8853
wait 0
goto @ZERO2_8827

:ZERO2_8853
Text.PrintNow('ZER2_DB', 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_8873
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_8899
wait 0
goto @ZERO2_8873

:ZERO2_8899
Text.ClearThisPrint('ZER2_DB')

:ZERO2_8910
if 
  0 >= $mission_countdown_zero1
goto_if_false @ZERO2_9332
if 
  not Car.IsDead(34@)
goto_if_false @ZERO2_8958
Car.SetEngineOn(34@, False)
Car.SetHeavy(34@, True)

:ZERO2_8958
TIMERA = 0
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 1
Player.SetControl($player1, False)
Text.PrintNow('ZER2_42', 5000, 1)
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
TIMERA = 0
Hud.ClearCounter($mission_countdown_zero1)
if 
  not Char.IsDead($scplayer)
goto_if_false @ZERO2_9147
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @ZERO2_9117
Char.WarpFromCarToCoord($scplayer, -2244.444, 136.8633, 34.3203)
goto @ZERO2_9137

:ZERO2_9117
Char.SetCoordinates($scplayer, -2244.444, 136.8633, 34.3203)

:ZERO2_9137
Char.SetHeading($scplayer, 90.0)

:ZERO2_9147
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21821)

:ZERO2_9154
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_9180
wait 0
goto @ZERO2_9154

:ZERO2_9180
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:ZERO2_9184
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @ZERO2_9236
wait 0
if 
  not Car.IsDead(34@)
goto_if_false @ZERO2_9229
Car.SetForwardSpeed(34@, 0.0)

:ZERO2_9229
goto @ZERO2_9184

:ZERO2_9236
Rc.RemoveBuggy
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:ZERO2_9253
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_9277
wait 0
goto @ZERO2_9253

:ZERO2_9277
Streaming.LoadScene(-2245.026, 126.895, 34.3047)
wait 1000
Camera.DoFade(1000, Fade.In)

:ZERO2_9306
if 
  Camera.GetFadingStatus
goto_if_false @ZERO2_9330
wait 0
goto @ZERO2_9306

:ZERO2_9330
return 

:ZERO2_9332
return 

:ZERO2_9334
Player.ClearWantedLevel($player1)
Stat.RegisterMissionPassed('ZERO_2')
Stat.PlayerMadeProgress(1)
$flag_zero_mission_counter += 1
return 

:ZERO2_9363
return 

:ZERO2_9365
World.DisableAllEntryExits(False)
Camera.ResetNewScriptables
Hud.DisplayCarNames(True)
if 
  Player.IsPlaying($player1)
goto_if_false @ZERO2_9444
Player.SetControl($player1, True)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @ZERO2_9444
Char.WarpFromCarToCoord($scplayer, -2244.444, 136.8633, 34.3203)
Char.SetHeading($scplayer, 90.0)

:ZERO2_9444
$onmission = 0
Game.SetPoliceIgnorePlayer($player1, False)
if 
  not Car.IsDead(35@)
goto_if_false @ZERO2_9504
Car.SetHealth(35@, 300)
Car.SetLoadCollisionFlag(35@, True)
Car.SetProofs(35@, False, False, False, False, False)

:ZERO2_9504
Car.MarkAsNoLongerNeeded(35@)
Weather.Release
Blip.Remove(128@)
Car.Delete(46@)
Car.Delete(47@)
Car.Delete(48@)
Car.Delete(49@)
Car.Delete(50@)
Char.Delete(51@)
Char.Delete(54@)
Blip.Remove(123@)
Blip.Remove(124@)
Blip.Remove(125@)
Blip.Remove(126@)
Blip.Remove(127@)
Rc.RemoveBuggy
Streaming.MarkModelAsNoLongerNeeded(459)
Streaming.MarkModelAsNoLongerNeeded(464)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(510)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.UnloadSpecialCharacter(1)
Char.RemoveElegantly(57@)
Hud.ClearCounter($mission_countdown_zero1)
$timer_mobile_start = Clock.GetGameTimer()
Text.ClearPrints
Mission.Finish
return 

//-------------Mission 74---------------
// Originally: New Model Army

:ZERO4
script_name 'ZERO4'
gosub @ZERO4_47
if 
  has_deatharrest_been_executed 
goto_if_false @ZERO4_38
gosub @ZERO4_26325

:ZERO4_38
gosub @ZERO4_26350
terminate_this_script 

:ZERO4_47
Stat.RegisterMissionGiven
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0

:ZERO4_133
wait 0
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @ZERO4_186
66@ += 1
if 
  66@ > 8
goto_if_false @ZERO4_184
66@ = 0

:ZERO4_184
clear_all_view_variables 

:ZERO4_186
if 
  66@ == 1
goto_if_false @ZERO4_396
set_var_int_to_lvar_int $timer_time_limit_converted_int = 34@
set_var_int_to_lvar_int $ZERO4_view_debug = 35@
set_var_int_to_lvar_int $7425 = 62@
set_var_int_to_lvar_int $7426 = 64@
set_var_int_to_lvar_int $7427 = 63@
set_var_int_to_lvar_int $7428 = 65@
set_var_int_to_lvar_int $7429 = TIMERA
set_var_int_to_lvar_int $7430 = TIMERB
view_integer_variable $timer_time_limit_converted_int {_p2} "M_STAGE"
view_integer_variable $ZERO4_view_debug {_p2} "M_GOALS"
view_integer_variable $7425 {_p2} "DIALOGUE_FLAG"
view_integer_variable $7426 {_p2} "DIALOGUE_TIMER"
view_integer_variable $7427 {_p2} "HELP_FLAG"
view_integer_variable $7428 {_p2} "HELP_TIMER"
view_integer_variable $7429 {_p2} "TIMERA"
view_integer_variable $7430 {_p2} "TIMERB"

:ZERO4_396
if 
  66@ == 2
goto_if_false @ZERO4_659
set_var_int_to_lvar_int $timer_time_limit_converted_int = 110@
set_var_int_to_lvar_int $ZERO4_view_debug = 111@
set_var_int_to_lvar_int $7425 = 112@
set_var_int_to_lvar_int $7426 = 113@
set_var_int_to_lvar_int $7427 = 115@
set_var_int_to_lvar_int $7428 = 116@
set_var_int_to_lvar_int $7429 = 117@
set_var_int_to_lvar_int $7430 = 118@
view_integer_variable $timer_time_limit_converted_int {_p2} "PCAR_PROGRESS"
view_integer_variable $ZERO4_view_debug {_p2} "PCAR_LIVES_LEFT"
view_integer_variable $7425 {_p2} "FIRST_BRIDGE"
view_integer_variable $7426 {_p2} "SECOND_BRIDGE"
view_integer_variable $7427 {_p2} "FIRST_BRIDGE_LAID"
view_integer_variable $7428 {_p2} "SECOND_BRIDGE_LAID"
view_integer_variable $7429 {_p2} "FIRST_BRIDGE_PLANK"
view_integer_variable $7430 {_p2} "SECOND_BRIDGE_PLANK"

:ZERO4_659
if 
  66@ == 3
goto_if_false @ZERO4_916
set_var_int_to_lvar_int $timer_time_limit_converted_int = 119@
set_var_int_to_lvar_int $ZERO4_view_debug = 120@
set_var_int_to_lvar_int $7425 = 121@
set_var_int_to_lvar_int $7426 = 122@
set_var_int_to_lvar_int $7427 = 123@
set_var_int_to_lvar_int $7428 = 102@
set_var_int_to_lvar_int $7429 = 103@
set_var_int_to_lvar_int $7430 = 124@
view_integer_variable $timer_time_limit_converted_int {_p2} "PCAR_IS_PAUSED"
view_integer_variable $ZERO4_view_debug {_p2} "PCAR_IS_OBSTRUCTED"
view_integer_variable $7425 {_p2} "BOMB_IS_ARMED"
view_integer_variable $7426 {_p2} "HELI_IS_CARRYING"
view_integer_variable $7427 {_p2} "CIRCLE_IS_PRESSED"
view_integer_variable $7428 {_p2} "RC_BOMB_TIMER"
view_integer_variable $7429 {_p2} "PHELI_PICKUP_TIMER"
view_integer_variable $7430 {_p2} "OHELI_FLAG"

:ZERO4_916
if 
  66@ == 4
goto_if_false @ZERO4_1153
set_var_int_to_lvar_int $timer_time_limit_converted_int = 125@
set_var_int_to_lvar_int $ZERO4_view_debug = 126@
set_var_int_to_lvar_int $7425 = 127@
set_var_int_to_lvar_int $7426 = 128@
set_var_int_to_lvar_int $7427 = 129@
set_var_int_to_lvar_int $7428 = 130@
set_var_int_to_lvar_int $7429 = 134@
set_var_int_to_var_int $7430 = $zero4_timer
view_integer_variable $timer_time_limit_converted_int {_p2} "OHELI_ROCK"
view_integer_variable $ZERO4_view_debug {_p2} "OHELI_GOTO"
view_integer_variable $7425 {_p2} "PHELI_LIVES"
view_integer_variable $7426 {_p2} "OTANK_FLAG[0]"
view_integer_variable $7427 {_p2} "OTANK_FLAG[1]"
view_integer_variable $7428 {_p2} "OTANK_FLAG[2]"
view_integer_variable $7429 {_p2} "RESPAWNED_TANKS"
view_integer_variable $7430 {_p2} "Z4_PCAR_HEALTH"

:ZERO4_1153
if 
  66@ == 5
goto_if_false @ZERO4_1397
set_var_int_to_lvar_int $timer_time_limit_converted_int = 131@
set_var_int_to_lvar_int $ZERO4_view_debug = 132@
set_var_int_to_lvar_int $7425 = 133@
set_var_int_to_lvar_int $7426 = 135@
set_var_int_to_lvar_int $7427 = 136@
set_var_int_to_lvar_int $7428 = 107@
set_var_int_to_lvar_int $7429 = 137@
set_var_int_to_lvar_int $7430 = 138@
view_integer_variable $timer_time_limit_converted_int {_p2} "OTANK_GOTO[0]"
view_integer_variable $ZERO4_view_debug {_p2} "OTANK_GOTO[1]"
view_integer_variable $7425 {_p2} "OTANK_GOTO[2]"
view_integer_variable $7426 {_p2} "LAST_HEALTH"
view_integer_variable $7427 {_p2} "BANDIT_TAKING_DAMAGE"
view_integer_variable $7428 {_p2} "PCAR_TIMER"
view_integer_variable $7429 {_p2} "PCAR_HALTED"
view_integer_variable $7430 {_p2} "PCAR_R3_PRESSED"

:ZERO4_1397
if 
  66@ == 6
goto_if_false @ZERO4_1610
set_var_int_to_lvar_int $timer_time_limit_converted_int = 139@
set_var_int_to_lvar_int $ZERO4_view_debug = 140@
set_var_int_to_lvar_int $7425 = 141@
set_var_int_to_lvar_int $7426 = 142@
set_var_int_to_var_int $7427 = $7431
set_var_int_to_lvar_int $7428 = 155@
set_var_int_to_lvar_int $7429 = 156@
view_integer_variable $timer_time_limit_converted_int {_p2} "OTANK_TARGET[0]"
view_integer_variable $ZERO4_view_debug {_p2} "OTANK_TARGET[1]"
view_integer_variable $7425 {_p2} "OTANK_TARGET[2]"
view_integer_variable $7426 {_p2} "CARRIED_OBJECT"
view_integer_variable $7427 {_p2} "ZERO4_TIMER"
view_integer_variable $7428 {_p2} "GET_PLANK1"
view_integer_variable $7429 {_p2} "GET_PLANK2"

:ZERO4_1610
if 
  66@ == 7
goto_if_false @ZERO4_1891
set_var_int_to_lvar_int $timer_time_limit_converted_int = 159@
set_var_int_to_lvar_int $ZERO4_view_debug = 160@
set_var_int_to_lvar_int $7425 = 161@
set_var_int_to_lvar_int $7426 = 162@
set_var_int_to_lvar_int $7427 = 163@
set_var_int_to_lvar_int $7428 = 164@
set_var_int_to_lvar_int $7429 = 165@
set_var_int_to_lvar_int $7430 = 166@
view_integer_variable $timer_time_limit_converted_int {_p2} "FIRST_PICKUP_HELP"
view_integer_variable $ZERO4_view_debug {_p2} "FIRST_TIME_STUCK_AT_RIVER"
view_integer_variable $7425 {_p2} "PLANK_BLIP"
view_integer_variable $7426 {_p2} "STUCK_AT_RIVER_DIALOGUE"
view_integer_variable $7427 {_p2} "OBSTRUCT_AUDIO1"
view_integer_variable $7428 {_p2} "OBSTRUCT_AUDIO2"
view_integer_variable $7429 {_p2} "PLAY_FIRST_TIME_BLOCKED_AUDIO"
view_integer_variable $7430 {_p2} "BOMB_BLIP"

:ZERO4_1891
if 
  66@ == 8
goto_if_false @ZERO4_2083
set_var_int_to_lvar_int $timer_time_limit_converted_int = 167@
set_var_int_to_lvar_int $ZERO4_view_debug = 168@
set_var_int_to_lvar_int $7425 = 169@
set_var_int_to_lvar_int $7426 = 170@
set_var_int_to_lvar_int $7427 = 171@
view_integer_variable $timer_time_limit_converted_int {_p2} "FIRST_TIME_TAKING_DAMAGE_FROM_TANK"
view_integer_variable $ZERO4_view_debug {_p2} "BOMB_TANK_DIALOGUE"
view_integer_variable $7425 {_p2} "DEAD_DIALOGUE"
view_integer_variable $7426 {_p2} "NEARLY_DEAD_DIALOGUE"
view_integer_variable $7427 {_p2} "STUCK_AT_RIVER"

:ZERO4_2083
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @ZERO4_2105
38@ = 1

:ZERO4_2105
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @ZERO4_2134
gosub @ZERO4_24100
36@ = 1

:ZERO4_2134
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @ZERO4_2222
if 
  67@ == 0
goto_if_false @ZERO4_2197
67@ = 1
write_debug "LEVEL_PAUSED"
goto @ZERO4_2222

:ZERO4_2197
67@ = 0
write_debug "LEVEL_UNPAUSED"

:ZERO4_2222
if 
  67@ == 1
goto_if_false @ZERO4_2247
goto @ZERO4_23736

:ZERO4_2247
39@ += 1
if 
  39@ > 9
goto_if_false @ZERO4_2279
39@ = 0

:ZERO4_2279
40@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 64@ += 42@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 102@ += 42@
add_int_lvar_to_int_lvar 103@ += 42@
add_int_lvar_to_int_lvar 104@ += 42@
add_int_lvar_to_int_lvar 105@ += 42@
add_int_lvar_to_int_lvar 106@ += 42@
add_int_lvar_to_int_lvar 107@ += 42@
add_int_lvar_to_int_lvar 108@ += 42@
add_int_lvar_to_int_lvar 109@ += 42@
if 
  34@ == 0
goto_if_false @ZERO4_6793
if 
  35@ == -1
goto_if_false @ZERO4_2701
68@ = Car.Create(413, 0.0, 0.0, 0.0)
69@ = Car.Create(413, 0.0, 0.0, 0.0)
70@ = Car.Create(413, 0.0, 0.0, 0.0)
75@ = Car.Create(413, 0.0, 0.0, 0.0)
77@ = Object.Create(#BARREL2, 0.0, 0.0, 0.0)
87@ = Object.Create(#BARREL2, 0.0, 0.0, 0.0)
92@ = Object.Create(#BARREL2, 0.0, 0.0, 0.0)
142@ = Object.Create(#BARREL2, 0.0, 0.0, 0.0)
93@ = Object.Create(#BARREL2, 0.0, 0.0, 0.0)
96@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
76@ = Car.Create(413, 0.0, 0.0, 0.0)
543@ = Car.Create(413, 0.0, 0.0, 0.0)

:ZERO4_2701
110@ = 0
111@ = 0
112@ = 0
113@ = 0
115@ = 0
116@ = 0
117@ = -1
118@ = -1
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 99
129@ = 99
130@ = 99
131@ = 0
132@ = 0
133@ = 0
134@ = 0
$zero4_timer = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
155@ = 0
156@ = 0
43@ = 0

:ZERO4_2953
if 
  12 > 43@
goto_if_false @ZERO4_2996
143@(43@,12i) = 0
43@ += 1
goto @ZERO4_2953

:ZERO4_2996
157@ = 0
158@ = 0
76@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
542@ = 0
172@ = 0
173@ = -1115.122
175@ = 1029.26
177@ = 1342.483
174@ = -1106.916
176@ = 1056.403
178@ = 1342.053
179@ = -1115.122
181@ = 1029.26
183@ = 1342.483
180@ = -1098.931
182@ = 1070.193
184@ = 1341.467
185@ = -1115.122
187@ = 1029.26
189@ = 342.4828
186@ = -1098.257
188@ = 1063.368
190@ = 1341.791
191@ = -975.6996
308@ = 1061.162
425@ = 1344.8
192@ = -978.6938
309@ = 1061.163
426@ = 1344.554
193@ = -981.6267
310@ = 1061.594
427@ = 1343.677
194@ = -984.4323
311@ = 1062.194
428@ = 1342.66
195@ = -987.3215
312@ = 1063.042
429@ = 1341.941
196@ = -990.1523
313@ = 1064.209
430@ = 1341.847
197@ = -992.064
314@ = 1066.628
431@ = 1341.692
198@ = -994.1041
315@ = 1068.89
432@ = 1341.474
199@ = -996.1589
316@ = 1071.105
433@ = 1341.261
200@ = -998.0826
317@ = 1073.413
434@ = 1341.215
201@ = -1000.138
318@ = 1075.662
435@ = 1341.332
202@ = -1002.858
319@ = 1076.918
436@ = 1341.709
203@ = -1005.518
320@ = 1078.249
437@ = 1342.229
204@ = -1008.56
321@ = 1078.889
438@ = 1342.339
205@ = -1011.59
322@ = 1079.111
439@ = 1342.346
206@ = -1014.66
323@ = 1079.339
440@ = 1342.318
207@ = -1017.696
324@ = 1079.674
441@ = 1342.458
208@ = -1020.666
325@ = 1080.433
442@ = 1342.718
209@ = -1023.609
326@ = 1081.364
443@ = 1342.59
210@ = -1026.497
327@ = 1082.288
444@ = 1342.452
211@ = -1029.534
328@ = 1082.446
445@ = 1342.314
212@ = -1031.727
329@ = 1080.38
446@ = 1342.169
213@ = -1031.45
330@ = 1077.383
447@ = 1342.259
214@ = -1030.556
331@ = 1074.519
448@ = 1342.367
215@ = -1028.476
332@ = 1072.276
449@ = 1342.547
216@ = -1026.12
333@ = 1070.452
450@ = 1342.934
217@ = -1023.345
334@ = 1069.297
451@ = 1342.862
218@ = -1020.924
335@ = 1067.455
452@ = 1342.679
219@ = -1019.808
336@ = 1064.636
453@ = 1342.367
220@ = -1019.498
337@ = 1061.604
454@ = 1342.15
221@ = -1020.352
338@ = 1058.707
455@ = 1342.003
222@ = -1022.205
339@ = 1056.248
456@ = 1341.946
223@ = -1024.654
340@ = 1054.396
457@ = 1342.029
224@ = -1026.949
341@ = 1052.463
458@ = 1341.672
225@ = -1029.535
342@ = 1050.962
459@ = 1341.421
226@ = -1032.204
343@ = 1049.539
460@ = 1341.398
227@ = -1035.146
344@ = 1048.822
461@ = 1341.167
228@ = -1038.131
345@ = 1048.269
462@ = 1340.837
229@ = -1040.29
346@ = 1046.164
463@ = 1340.975
230@ = -1042.149
347@ = 1043.761
464@ = 1341.278
231@ = -1043.827
348@ = 1041.252
465@ = 1341.398
232@ = -1045.285
349@ = 1038.573
466@ = 1341.563
233@ = -1047.242
350@ = 1036.283
467@ = 1341.951
234@ = -1049.558
351@ = 1034.348
468@ = 1342.022
235@ = -1052.581
352@ = 1034.296
469@ = 1342.218
236@ = -1054.624
353@ = 1036.551
470@ = 1342.324
237@ = -1055.726
354@ = 1039.338
471@ = 1342.655
238@ = -1056.591
355@ = 1042.222
472@ = 1343.016
239@ = -1057.64
356@ = 1045.126
473@ = 1343.071
240@ = -1058.867
357@ = 1047.883
474@ = 1343.278
241@ = -1059.966
358@ = 1050.707
475@ = 1343.335
242@ = -1062.282
359@ = 1052.656
476@ = 1342.973
243@ = -1065.312
360@ = 1052.257
477@ = 1342.987
244@ = -1067.413
361@ = 1050.103
478@ = 1343.338
245@ = -1069.68
362@ = 1048.061
479@ = 1343.303
246@ = -1072.397
363@ = 1046.49
480@ = 1343.299
247@ = -1074.844
364@ = 1044.621
481@ = 1343.278
248@ = -1077.279
365@ = 1042.863
482@ = 1343.309
249@ = -1080.09
366@ = 1041.396
483@ = 1343.312
250@ = -1082.901
367@ = 1039.968
484@ = 1343.159
251@ = -1085.723
368@ = 1038.973
485@ = 1342.747
252@ = -1088.693
369@ = 1038.244
486@ = 1342.491
253@ = -1091.744
370@ = 1038.05
487@ = 1342.389
254@ = -1094.634
371@ = 1038.856
488@ = 1342.213
255@ = -1096.468
372@ = 1041.286
489@ = 1342.353
256@ = -1095.897
373@ = 1044.239
490@ = 1342.386
257@ = -1094.407
374@ = 1046.863
491@ = 1342.303
258@ = -1092.616
375@ = 1049.353
492@ = 1342.144
259@ = -1090.795
376@ = 1051.852
493@ = 1342.036
260@ = -1089.037
377@ = 1054.289
494@ = 1341.924
261@ = -1087.131
378@ = 1056.68
495@ = 1341.963
262@ = -1084.63
379@ = 1058.476
496@ = 1342.046
263@ = -1082.026
380@ = 1060.059
497@ = 1342.07
264@ = -1079.68
381@ = 1061.984
498@ = 1342.161
265@ = -1077.382
382@ = 1064.059
499@ = 1342.054
266@ = -1075.023
383@ = 1066.061
500@ = 1341.956
267@ = -1072.544
384@ = 1067.771
501@ = 1341.676
268@ = -1069.934
385@ = 1069.4
502@ = 1341.464
269@ = -1067.392
386@ = 1071.067
503@ = 1340.94
270@ = -1065.172
387@ = 1073.217
504@ = 1340.98
271@ = -1063.084
388@ = 1075.436
505@ = 1341.265
272@ = -1061.741
389@ = 1078.158
506@ = 1341.507
273@ = -1060.928
390@ = 1081.111
507@ = 1341.705
274@ = -1059.851
391@ = 1083.965
508@ = 1341.717
275@ = -1059.096
392@ = 1086.929
509@ = 1341.773
276@ = -1059.464
393@ = 1089.908
510@ = 1341.888
277@ = -1061.656
394@ = 1092.006
511@ = 1342.118
278@ = -1064.414
395@ = 1093.172
512@ = 1342.378
279@ = -1067.396
396@ = 1093.724
513@ = 1342.255
280@ = -1070.372
397@ = 1094.422
514@ = 1342.176
281@ = -1073.385
398@ = 1094.066
515@ = 1342.039
282@ = -1075.899
399@ = 1092.264
516@ = 1342.026
283@ = -1078.33
400@ = 1090.476
517@ = 1341.883
284@ = -1080.692
401@ = 1088.514
518@ = 1341.762
285@ = -1082.786
402@ = 1086.317
519@ = 1341.725
286@ = -1084.715
403@ = 1083.926
520@ = 1341.718
287@ = -1086.711
404@ = 1081.678
521@ = 1341.657
288@ = -1088.739
405@ = 1079.458
522@ = 1341.739
289@ = -1090.599
406@ = 1077.074
523@ = 1341.737
290@ = -1091.925
407@ = 1074.311
524@ = 1341.754
291@ = -1093.073
408@ = 1071.465
525@ = 1341.751
292@ = -1094.317
409@ = 1068.679
526@ = 1341.752
293@ = -1095.859
410@ = 1066.073
527@ = 1341.752
294@ = -1097.911
411@ = 1063.855
528@ = 1341.739
295@ = -1100.731
412@ = 1062.77
529@ = 1341.786
296@ = -1103.847
413@ = 1062.781
530@ = 1341.79
297@ = -1106.772
414@ = 1061.895
531@ = 1341.79
298@ = -1109.576
415@ = 1060.658
532@ = 1341.825
299@ = -1112.578
416@ = 1060.848
533@ = 1341.9
300@ = -1116.12
417@ = 1059.64
534@ = 1342.25
set_lvar_float_to_lvar_float 301@ = 300@
set_lvar_float_to_lvar_float 418@ = 417@
set_lvar_float_to_lvar_float 535@ = 534@
set_lvar_float_to_lvar_float 302@ = 300@
set_lvar_float_to_lvar_float 419@ = 417@
set_lvar_float_to_lvar_float 536@ = 534@
set_lvar_float_to_lvar_float 303@ = 300@
set_lvar_float_to_lvar_float 420@ = 417@
set_lvar_float_to_lvar_float 537@ = 534@
set_lvar_float_to_lvar_float 304@ = 300@
set_lvar_float_to_lvar_float 421@ = 417@
set_lvar_float_to_lvar_float 538@ = 534@
set_lvar_float_to_lvar_float 305@ = 300@
set_lvar_float_to_lvar_float 422@ = 417@
set_lvar_float_to_lvar_float 539@ = 534@
set_lvar_float_to_lvar_float 306@ = 300@
set_lvar_float_to_lvar_float 423@ = 417@
set_lvar_float_to_lvar_float 540@ = 534@
set_lvar_float_to_lvar_float 307@ = 300@
set_lvar_float_to_lvar_float 424@ = 417@
set_lvar_float_to_lvar_float 541@ = 534@
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
gosub @ZERO4_26267

:ZERO4_6793
if 
  34@ == 1
goto_if_false @ZERO4_9223
if 
  35@ == 0
goto_if_false @ZERO4_8237
Text.LoadMissionText('ZERO4')
Streaming.SetAreaVisible(6)
Cutscene.Load('ZERO_4')

:ZERO4_6855
if 
  not Cutscene.HasLoaded
goto_if_false @ZERO4_6879
wait 0
goto @ZERO4_6855

:ZERO4_6879
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:ZERO4_6888
if 
  not Cutscene.HasFinished
goto_if_false @ZERO4_6912
wait 0
goto @ZERO4_6888

:ZERO4_6912
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:ZERO4_6927
if 
  Camera.GetFadingStatus
goto_if_false @ZERO4_6951
wait 0
goto @ZERO4_6927

:ZERO4_6951
Streaming.SetAreaVisible(0)
Player.SetControl($player1, False)
Game.HideAllFrontendBlips(True)
Camera.SetPlayerInCarMode(2)
Clock.Store
Weather.ForceNow(WeatherType.ExtraSunnySf)
Player.ClearWantedLevel($player1)
Game.SetWantedMultiplier(0.1)
Streaming.RequestModel(441)
Streaming.RequestModel(501)
Streaming.RequestModel(481)
Streaming.RequestModel(564)
Streaming.LoadAllModelsNow

:ZERO4_7010
if or
  not Streaming.HasModelLoaded(441)
  not Streaming.HasModelLoaded(501)
  not Streaming.HasModelLoaded(481)
  not Streaming.HasModelLoaded(564)
goto_if_false @ZERO4_7052
wait 0
goto @ZERO4_7010

:ZERO4_7052
Char.SetAreaVisible($scplayer, 10)
World.ClearArea(-1004.097, 1000.789, 1349.749, 300.0, True)
69@ = Car.Create(481, -1004.097, 1000.789, 1349.749)
Car.FreezePosition(69@, True)
Char.WarpIntoCar($scplayer, 69@)
Car.LockDoors(69@, CarLock.LockedPlayerInside)
Car.SetAreaVisible(69@, 10)
68@ = Car.Create(441, -975.6997, 1061.162, 1344.8)
Car.SetHeading(68@, 90.0)
Car.SetAreaVisible(68@, 10)
Car.SetProofs(68@, False, True, True, False, False)
Car.SetHealth(68@, 2000)
70@ = Car.Create(501, -973.759, 1077.152, 1350.399)
Car.SetHeading(70@, 90.0)
Car.SetAreaVisible(70@, 10)
94@ = Object.Create(#MINI_MAGNET, -973.759, 1077.152, 1344.399)
Object.AttachToCar(94@, 70@, 0.0, 0.0, -0.2, 0.0, 0.0, 0.0)
Object.SetCollision(94@, True)
Car.FreezePosition(70@, True)
Car.SetCoordinates(70@, -973.759, 1077.152, 1346.399)
Heli.SetBladesFullSpeed(70@)
Heli.GotoCoords(70@, -973.759, 1077.152, 1344.399, 344.0, 3.0)
71@ = Car.Create(501, -1131.694, 1041.791, 1350.141)
Car.SetHeading(71@, 270.0)
Car.SetAreaVisible(71@, 10)
98@ = Blip.AddForCar(71@)
Blip.SetAsFriendly(98@, False)
Blip.ChangeDisplay(98@, BlipDisplay.BlipOnly)
Blip.ChangeScale(98@, 2)
95@ = Object.Create(#MINI_MAGNET, -973.759, 1077.152, 1344.399)
Object.AttachToCar(95@, 71@, 0.0, 0.0, -0.2, 0.0, 0.0, 0.0)
Object.SetCollision(95@, True)
Heli.SetBladesFullSpeed(71@)
Heli.GotoCoords(71@, -1131.694, 1041.791, 1344.141, 344.0, 3.0)
77@ = Object.CreateNoOffset(#BARREL2, -1007.213, 1078.535, 1342.682)
78@ = Object.CreateNoOffset(#BARREL2, -1093.137, 1037.856, 1342.732)
79@ = Object.CreateNoOffset(#BARREL2, -1073.466, 1094.407, 1342.322)
Object.SetRotation(77@, 0.0, 90.0, 0.0)
Object.SetRotation(78@, 0.0, 90.0, 0.0)
Object.SetRotation(79@, 0.0, 90.0, 0.0)
87@ = Object.CreateNoOffset(#KMB_PLANK, -973.0, 1064.0, 1344.147)
88@ = Object.CreateNoOffset(#KMB_PLANK, -973.0, 1065.0, 1344.146)
89@ = Object.CreateNoOffset(#KMB_PLANK, -973.0, 1066.0, 1344.144)
90@ = Object.CreateNoOffset(#KMB_PLANK, -973.0, 1067.0, 1344.143)
91@ = Object.CreateNoOffset(#KMB_PLANK, -973.0, 1068.0, 1344.142)
Object.SetHeading(87@, 270.0)
Object.SetHeading(88@, 270.0)
Object.SetHeading(89@, 270.0)
Object.SetHeading(90@, 270.0)
Object.SetHeading(91@, 270.0)
92@ = Object.CreateNoOffset(#RCBOMB, -974.5125, 1072.045, 1344.298)
Object.SetHeading(92@, 90.0)
72@ = Car.Create(564, -1076.873, 1046.542, 1343.365)
73@ = Car.Create(564, -1073.193, 1070.426, 1341.375)
74@ = Car.Create(564, -1106.479, 1060.975, 1341.864)
Car.SetHeading(72@, 286.4071)
Car.SetHeading(73@, 145.4881)
Car.SetHeading(74@, 278.5302)
99@ = Blip.AddForCar(72@)
100@ = Blip.AddForCar(73@)
101@ = Blip.AddForCar(74@)
Blip.ChangeDisplay(99@, BlipDisplay.BlipOnly)
Blip.ChangeDisplay(100@, BlipDisplay.BlipOnly)
Blip.ChangeDisplay(101@, BlipDisplay.BlipOnly)
Car.SetAreaVisible(72@, 10)
Car.SetAreaVisible(73@, 10)
Car.SetAreaVisible(74@, 10)
Blip.ChangeScale(99@, 2)
Blip.ChangeScale(100@, 2)
Blip.ChangeScale(101@, 2)
Streaming.SetAreaVisible(10)
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
Crane.EnableControls(False, False, False)
Hud.Display(False)
Hud.DisplayRadar(True)
Hud.SetRadarZoom(100)
Streaming.LoadScene(-975.6997, 1061.162, 344.7998)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-987.9526, 1099.303, 1352.45, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-987.5282, 1098.519, 1351.997, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:ZERO4_8170
if 
  Camera.GetFadingStatus
goto_if_false @ZERO4_8194
wait 0
goto @ZERO4_8170

:ZERO4_8194
TIMERA = 0
TIMERB = 0
62@ = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
$audio_line_is_active = 0
35@ += 1

:ZERO4_8237
if 
  35@ > 0
goto_if_false @ZERO4_8706
if 
  TIMERB > 1000
goto_if_false @ZERO4_8706
if 
  $audio_line_is_active == 0
goto_if_false @ZERO4_8706
switch_start 62@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @ZERO4_8692 {caseNum1} 0 {caseLabel1} @ZERO4_8355 {caseNum2} 1 {caseLabel2} @ZERO4_8413 {caseNum3} 2 {caseLabel3} @ZERO4_8471 {caseNum4} 3 {caseLabel4} @ZERO4_8529 {caseNum5} 4 {caseLabel5} @ZERO4_8587 {caseNum6} 5 {caseLabel6} @ZERO4_8645 {caseNum7} -1 {caseLabel7} @ZERO4_8692

:ZERO4_8355
set_var_text_label s$audio_string = 'ZER4_AA'
set_var_int_to_constant $audio_sound_file = 22200
start_new_script @AUDIOL -1 0 1 1 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 22255)
goto @ZERO4_8692

:ZERO4_8413
set_var_text_label s$audio_string = 'ZER4_AB'
set_var_int_to_constant $audio_sound_file = 22255
start_new_script @AUDIOL -1 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22201)
goto @ZERO4_8692

:ZERO4_8471
set_var_text_label s$audio_string = 'ZER4_AC'
set_var_int_to_constant $audio_sound_file = 22201
start_new_script @AUDIOL -1 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 22202)
goto @ZERO4_8692

:ZERO4_8529
set_var_text_label s$audio_string = 'ZER4_AD'
set_var_int_to_constant $audio_sound_file = 22202
start_new_script @AUDIOL -1 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 22203)
goto @ZERO4_8692

:ZERO4_8587
set_var_text_label s$audio_string = 'ZER4_AE'
set_var_int_to_constant $audio_sound_file = 22203
start_new_script @AUDIOL -1 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 22204)
goto @ZERO4_8692

:ZERO4_8645
set_var_text_label s$audio_string = 'ZER4_AF'
set_var_int_to_constant $audio_sound_file = 22204
start_new_script @AUDIOL -1 0 1 2 1 
goto @ZERO4_8692

:ZERO4_8692
62@ += 1
TIMERB = 0

:ZERO4_8706
if 
  35@ == 1
goto_if_false @ZERO4_8818
if 
  TIMERA > 4000
goto_if_false @ZERO4_8818
Camera.SetInterpolationParameters(0.0, 7000)
Camera.SetFixedPosition(-982.6354, 1055.88, 1348.926, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-981.919, 1056.504, 1348.614, SwitchType.JumpCut)
TIMERA = 0
35@ += 1

:ZERO4_8818
if 
  35@ == 2
goto_if_false @ZERO4_8930
if 
  TIMERA > 2000
goto_if_false @ZERO4_8930
Camera.SetInterpolationParameters(0.0, 10000)
Camera.SetFixedPosition(-1137.938, 1058.032, 1355.257, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1136.989, 1058.099, 1354.947, SwitchType.Interpolation)
TIMERA = 0
35@ += 1

:ZERO4_8930
if 
  35@ == 3
goto_if_false @ZERO4_8980
if and
  62@ > 6
  $audio_line_is_active == 0
goto_if_false @ZERO4_8980
35@ = 99

:ZERO4_8980
if 
  35@ > 0
goto_if_false @ZERO4_9022
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @ZERO4_9022
35@ = 99

:ZERO4_9022
if 
  35@ == 99
goto_if_false @ZERO4_9223
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Camera.SetInterpolationParameters(50.0, 500)
Text.ClearPrints
Camera.SetFixedPosition(-968.2972, 1077.413, 1346.686, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-969.2341, 1077.368, 1346.339, SwitchType.JumpCut)
Hud.SwitchWidescreen(False)
Text.ClearPrints
Player.SetControl($player1, True)
if 
  not Car.IsDead(70@)
goto_if_false @ZERO4_9185
Car.FreezePosition(70@, False)
Car.SetCoordinates(70@, -973.759, 1077.152, 1349.399)
Car.SetHeading(70@, 90.0)

:ZERO4_9185
if 
  not Car.IsDead(71@)
goto_if_false @ZERO4_9208
Car.FreezePosition(71@, False)

:ZERO4_9208
wait 0
Camera.SetBehindPlayer
Camera.RestoreJumpcut
gosub @ZERO4_26267

:ZERO4_9223
if 
  34@ == 2
goto_if_false @ZERO4_23736
if 
  35@ == 0
goto_if_false @ZERO4_9483
if 
  not Car.IsDead(68@)
goto_if_false @ZERO4_9297
97@ = Blip.AddForCar(68@)
Blip.SetAsFriendly(97@, True)
Blip.ChangeScale(97@, 2)

:ZERO4_9297
if 
  not Car.IsDead(70@)
goto_if_false @ZERO4_9321
Rc.TakeCar($player1, 70@)

:ZERO4_9321
Rc.SetEnableDetonate(False)
Rc.SetEnableDetonateOnContact(False)
Streaming.RequestCarRecording(521)

:ZERO4_9334
if 
  not Streaming.HasCarRecordingBeenLoaded(521)
goto_if_false @ZERO4_9361
wait 0
goto @ZERO4_9334

:ZERO4_9361
if 
  not Car.IsDead(68@)
goto_if_false @ZERO4_9395
Car.StartPlayback(68@, 521)
Car.SetPlaybackSpeed(68@, 0.5)

:ZERO4_9395
110@ = 0
111@ = 3
127@ = 3
$7431 = 480000
Hud.DisplayTimerWithString($7431, TimerDirection.Down, 'Z4_M11')
Hud.DisplayNthCounterWithString($zero4_timer, CounterDisplay.Bar, 1, 'Z4_M06')
65@ = -1000
64@ = 10000
35@ += 1

:ZERO4_9483
if 
  35@ == 1
goto_if_false @ZERO4_23711
World.RemoveOilPuddlesInArea(-963.0789, 1006.747, -1152.824, 1105.155)
if 
  not Streaming.HasCarRecordingBeenLoaded(521)
goto_if_false @ZERO4_9551
Streaming.RequestCarRecording(521)
goto @ZERO4_23711

:ZERO4_9551
Clock.SetTimeOfDay(0, 30)
43@ = 0

:ZERO4_9564
if 
  10 > 43@
goto_if_false @ZERO4_9664
if 
  Object.DoesExist(77@(43@,10i))
goto_if_false @ZERO4_9650
$x, $y, $z = Object.GetCoordinates(77@(43@,10i))
if 
  1335.0 > $z
goto_if_false @ZERO4_9650
Object.Delete(77@(43@,10i))

:ZERO4_9650
43@ += 1
goto @ZERO4_9564

:ZERO4_9664
43@ = 0

:ZERO4_9671
if 
  5 > 43@
goto_if_false @ZERO4_9800
if 
  Object.DoesExist(87@(43@,5i))
goto_if_false @ZERO4_9786
$x, $y, $z = Object.GetCoordinates(87@(43@,5i))
if 
  1335.0 > $z
goto_if_false @ZERO4_9786
Object.SetCoordinates(87@(43@,5i), -973.0, 1064.0, 1345.147)
Object.SetHeading(87@(43@,5i), 270.0)

:ZERO4_9786
43@ += 1
goto @ZERO4_9671

:ZERO4_9800
43@ = 0

:ZERO4_9807
if 
  3 > 43@
goto_if_false @ZERO4_9927
if 
  Car.DoesExist(72@(43@,3i))
goto_if_false @ZERO4_9913
if 
  not Car.IsDead(72@(43@,3i))
goto_if_false @ZERO4_9913
$x, $y, $z = Car.GetCoordinates(72@(43@,3i))
if 
  1335.0 > $z
goto_if_false @ZERO4_9913
Car.Explode(72@(43@,3i))

:ZERO4_9913
43@ += 1
goto @ZERO4_9807

:ZERO4_9927
if 
  Object.DoesExist(92@)
goto_if_false @ZERO4_9983
$x, $y, $z = Object.GetCoordinates(92@)
if 
  1335.0 > $z
goto_if_false @ZERO4_9983
Object.Delete(92@)

:ZERO4_9983
if and
  159@ == 0
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @ZERO4_10428
if 
  not Car.IsDead(70@)
goto_if_false @ZERO4_10428
$x, $y, $z = Car.GetOffsetInWorldCoords(70@, 0.0, 0.0, -1.0)
43@ = 0

:ZERO4_10057
if 
  10 > 43@
goto_if_false @ZERO4_10182
if 
  Object.DoesExist(77@(43@,10i))
goto_if_false @ZERO4_10168
if 
  Object.Locate3D(77@(43@,10i), $x, $y, $z, 1.0, 1.0, 1.0, False)
goto_if_false @ZERO4_10168
Text.ClearHelp
Text.PrintHelp('Z4_H13')
159@ += 1
43@ = 10

:ZERO4_10168
43@ += 1
goto @ZERO4_10057

:ZERO4_10182
if 
  159@ == 0
goto_if_false @ZERO4_10332
43@ = 0

:ZERO4_10207
if 
  5 > 43@
goto_if_false @ZERO4_10332
if 
  Object.DoesExist(87@(43@,5i))
goto_if_false @ZERO4_10318
if 
  Object.Locate3D(87@(43@,5i), $x, $y, $z, 1.0, 1.0, 1.0, False)
goto_if_false @ZERO4_10318
Text.ClearHelp
Text.PrintHelp('Z4_H13')
159@ += 1
43@ = 5

:ZERO4_10318
43@ += 1
goto @ZERO4_10207

:ZERO4_10332
if 
  159@ == 0
goto_if_false @ZERO4_10428
if 
  Object.DoesExist(92@)
goto_if_false @ZERO4_10428
if 
  Object.Locate3D(92@, $x, $y, $z, 1.0, 1.0, 1.0, False)
goto_if_false @ZERO4_10428
Text.ClearHelp
Text.PrintHelp('Z4_H13')
159@ += 1

:ZERO4_10428
if and
  159@ == 1
  not Text.IsMessageBeingDisplayed
goto_if_false @ZERO4_10484
if 
  142@ <> 0
goto_if_false @ZERO4_10484
159@ += 1
Text.PrintHelp('Z4_H14')

:ZERO4_10484
if and
  143@ == 0
  65@ > 1000
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @ZERO4_10539
Text.PrintHelp('Z4_H1')
65@ = 0
143@ += 1

:ZERO4_10539
if and
  143@ == 1
  65@ > 1000
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  110@ > 18
goto_if_false @ZERO4_10601
Text.PrintHelp('Z4_H4')
65@ = 0
143@ += 1

:ZERO4_10601
if and
  65@ > 1000
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @ZERO4_10879
switch_start 542@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @ZERO4_10879 {caseNum1} 0 {caseLabel1} @ZERO4_10687 {caseNum2} 1 {caseLabel2} @ZERO4_10719 {caseNum3} 2 {caseLabel3} @ZERO4_10751 {caseNum4} 3 {caseLabel4} @ZERO4_10783 {caseNum5} 4 {caseLabel5} @ZERO4_10815 {caseNum6} 5 {caseLabel6} @ZERO4_10847 {caseNum7} -1 {caseLabel7} @ZERO4_10879

:ZERO4_10687
Text.PrintHelp('Z4_H17')
65@ = 0
542@ += 1
goto @ZERO4_10879

:ZERO4_10719
Text.PrintHelp('Z4_H18')
65@ = 0
542@ += 1
goto @ZERO4_10879

:ZERO4_10751
Text.PrintHelp('Z4_H19')
65@ = 0
542@ += 1
goto @ZERO4_10879

:ZERO4_10783
Text.PrintHelp('Z4_H20')
65@ = 0
542@ += 1
goto @ZERO4_10879

:ZERO4_10815
Text.PrintHelp('Z4_H21')
65@ = 0
542@ += 1
goto @ZERO4_10879

:ZERO4_10847
Text.PrintHelp('Z4_H22')
65@ = 0
542@ += 1
goto @ZERO4_10879

:ZERO4_10879
if 
  120@ <> 0
goto_if_false @ZERO4_10940
if 
  157@ == 1
goto_if_false @ZERO4_10940
if 
  165@ == 0
goto_if_false @ZERO4_10940
165@ += 1

:ZERO4_10940
if and
  165@ == 1
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  $audio_line_is_active == 0
goto_if_false @ZERO4_11372
if 
  165@ == 0
goto_if_false @ZERO4_11176
if 
  64@ > 1000
goto_if_false @ZERO4_11176
163@ = Math.RandomIntInRange(0, 3)
164@ = Math.RandomIntInRange(0, 3)
if 
  163@ == 0
goto_if_false @ZERO4_11064
set_var_text_label s$audio_string = 'ZER4_BA'
set_var_int_to_constant $audio_sound_file = 22205

:ZERO4_11064
if 
  163@ == 1
goto_if_false @ZERO4_11104
set_var_text_label s$audio_string = 'ZER4_BB'
set_var_int_to_constant $audio_sound_file = 22206

:ZERO4_11104
if 
  163@ == 2
goto_if_false @ZERO4_11144
set_var_text_label s$audio_string = 'ZER4_BC'
set_var_int_to_constant $audio_sound_file = 22207

:ZERO4_11144
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0
165@ += 1

:ZERO4_11176
if 
  165@ == 1
goto_if_false @ZERO4_11372
if 
  64@ > 1000
goto_if_false @ZERO4_11372
if 
  163@ == 0
goto_if_false @ZERO4_11253
set_var_text_label s$audio_string = 'ZER4_CA'
set_var_int_to_constant $audio_sound_file = 22208

:ZERO4_11253
if 
  163@ == 1
goto_if_false @ZERO4_11293
set_var_text_label s$audio_string = 'ZER4_CB'
set_var_int_to_constant $audio_sound_file = 22209

:ZERO4_11293
if 
  163@ == 2
goto_if_false @ZERO4_11333
set_var_text_label s$audio_string = 'ZER4_CC'
set_var_int_to_constant $audio_sound_file = 22210

:ZERO4_11333
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0
165@ += 1
163@ = 0

:ZERO4_11372
if and
  165@ == 2
  120@ <> 0
goto_if_false @ZERO4_11456
if 
  64@ > 1000
goto_if_false @ZERO4_11456
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @ZERO4_11456
Text.PrintHelp('Z4_H5')
165@ += 1
64@ = 0

:ZERO4_11456
if 
  165@ == 3
goto_if_false @ZERO4_11794
if and
  120@ == 1
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  64@ > 10000
  $audio_line_is_active == 0
goto_if_false @ZERO4_11794
if 
  157@ == 1
goto_if_false @ZERO4_11794
163@ += 1
if 
  163@ > 4
goto_if_false @ZERO4_11561
163@ = 0

:ZERO4_11561
switch_start 163@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @ZERO4_11769 {caseNum1} 0 {caseLabel1} @ZERO4_11624 {caseNum2} 1 {caseLabel2} @ZERO4_11653 {caseNum3} 2 {caseLabel3} @ZERO4_11682 {caseNum4} 3 {caseLabel4} @ZERO4_11711 {caseNum5} 4 {caseLabel5} @ZERO4_11740 {caseNum6} -1 {caseLabel6} @ZERO4_11769 {caseNum7} -1 {caseLabel7} @ZERO4_11769

:ZERO4_11624
set_var_text_label s$audio_string = 'ZER4_DA'
set_var_int_to_constant $audio_sound_file = 22211
goto @ZERO4_11769

:ZERO4_11653
set_var_text_label s$audio_string = 'ZER4_DB'
set_var_int_to_constant $audio_sound_file = 22212
goto @ZERO4_11769

:ZERO4_11682
set_var_text_label s$audio_string = 'ZER4_DC'
set_var_int_to_constant $audio_sound_file = 22213
goto @ZERO4_11769

:ZERO4_11711
set_var_text_label s$audio_string = 'ZER4_DD'
set_var_int_to_constant $audio_sound_file = 22214
goto @ZERO4_11769

:ZERO4_11740
set_var_text_label s$audio_string = 'ZER4_DE'
set_var_int_to_constant $audio_sound_file = 22215
goto @ZERO4_11769

:ZERO4_11769
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0

:ZERO4_11794
if 
  172@ == 0
goto_if_false @ZERO4_11845
if and
  Car.IsDead(72@)
  Car.IsDead(73@)
  Car.IsDead(74@)
goto_if_false @ZERO4_11845
172@ = 1

:ZERO4_11845
if 
  172@ == 0
goto_if_false @ZERO4_12870
if 
  110@ > 42
goto_if_false @ZERO4_11994
if 
  167@ == 0
goto_if_false @ZERO4_11994
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  $audio_line_is_active == 0
goto_if_false @ZERO4_11994
if 
  64@ > 1000
goto_if_false @ZERO4_11994
set_var_text_label s$audio_string = 'ZER4_EA'
set_var_int_to_constant $audio_sound_file = 22216
start_new_script @AUDIOL -1 0 1 1 0 
167@ += 1
64@ = 0

:ZERO4_11994
if 
  167@ == 1
goto_if_false @ZERO4_12107
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  $audio_line_is_active == 0
goto_if_false @ZERO4_12107
if 
  64@ > 1000
goto_if_false @ZERO4_12107
set_var_text_label s$audio_string = 'ZER4_EB'
set_var_int_to_constant $audio_sound_file = 22217
start_new_script @AUDIOL -1 0 1 1 0 
167@ += 1
64@ = 0

:ZERO4_12107
if 
  167@ == 2
goto_if_false @ZERO4_12248
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  $audio_line_is_active == 0
  64@ > 1000
goto_if_false @ZERO4_12248
if 
  549@ == 0
goto_if_false @ZERO4_12241
Text.PrintNow('Z4_M26', 7000, 1)
if 
  Object.DoesExist(92@)
goto_if_false @ZERO4_12234
166@ = Blip.AddForObject(92@)
Blip.SetAsFriendly(166@, True)
167@ += 1
64@ = 0

:ZERO4_12234
goto @ZERO4_12248

:ZERO4_12241
167@ += 1

:ZERO4_12248
if 
  167@ == 3
goto_if_false @ZERO4_12358
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  $audio_line_is_active == 0
  64@ > 1000
goto_if_false @ZERO4_12358
if 
  549@ <> 0
goto_if_false @ZERO4_12358
if 
  Blip.DoesExist(166@)
goto_if_false @ZERO4_12335
Blip.Remove(166@)

:ZERO4_12335
Text.PrintNow('Z4_M27', 7000, 1)
167@ += 1

:ZERO4_12358
if 
  167@ == 4
goto_if_false @ZERO4_12423
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  549@ == 0
goto_if_false @ZERO4_12423
Text.PrintHelp('Z4_H11')
167@ += 1
64@ = 0

:ZERO4_12423
if 
  167@ == 5
goto_if_false @ZERO4_12863
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  64@ > 10000
  $audio_line_is_active == 0
  545@ == 1
goto_if_false @ZERO4_12863
168@ += 1
if 
  168@ > 5
goto_if_false @ZERO4_12510
168@ = 0

:ZERO4_12510
43@ = 0

:ZERO4_12517
if 
  3 > 43@
goto_if_false @ZERO4_12576
if 
  not Car.IsDead(72@(43@,3i))
goto_if_false @ZERO4_12562
43@ = 99

:ZERO4_12562
43@ += 1
goto @ZERO4_12517

:ZERO4_12576
if 
  43@ == 99
goto_if_false @ZERO4_12856
switch_start 168@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @ZERO4_12831 {caseNum1} 0 {caseLabel1} @ZERO4_12657 {caseNum2} 1 {caseLabel2} @ZERO4_12686 {caseNum3} 2 {caseLabel3} @ZERO4_12715 {caseNum4} 3 {caseLabel4} @ZERO4_12744 {caseNum5} 4 {caseLabel5} @ZERO4_12773 {caseNum6} 5 {caseLabel6} @ZERO4_12802 {caseNum7} -1 {caseLabel7} @ZERO4_12831

:ZERO4_12657
set_var_text_label s$audio_string = 'ZER4_FA'
set_var_int_to_constant $audio_sound_file = 22218
goto @ZERO4_12831

:ZERO4_12686
set_var_text_label s$audio_string = 'ZER4_FB'
set_var_int_to_constant $audio_sound_file = 22219
goto @ZERO4_12831

:ZERO4_12715
set_var_text_label s$audio_string = 'ZER4_FC'
set_var_int_to_constant $audio_sound_file = 22220
goto @ZERO4_12831

:ZERO4_12744
set_var_text_label s$audio_string = 'ZER4_FD'
set_var_int_to_constant $audio_sound_file = 22221
goto @ZERO4_12831

:ZERO4_12773
set_var_text_label s$audio_string = 'ZER4_FE'
set_var_int_to_constant $audio_sound_file = 22222
goto @ZERO4_12831

:ZERO4_12802
set_var_text_label s$audio_string = 'ZER4_FF'
set_var_int_to_constant $audio_sound_file = 22223
goto @ZERO4_12831

:ZERO4_12831
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0

:ZERO4_12856
545@ = 0

:ZERO4_12863
goto @ZERO4_12891

:ZERO4_12870
if 
  Blip.DoesExist(166@)
goto_if_false @ZERO4_12891
Blip.Remove(166@)

:ZERO4_12891
if 
  Blip.DoesExist(166@)
goto_if_false @ZERO4_12928
if 
  Object.IsAttached(92@)
goto_if_false @ZERO4_12928
Blip.Remove(166@)

:ZERO4_12928
if 
  171@ == 1
goto_if_false @ZERO4_13048
if 
  160@ == 0
goto_if_false @ZERO4_13048
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  $audio_line_is_active == 0
  64@ > 1000
goto_if_false @ZERO4_13048
set_var_text_label s$audio_string = 'ZER4_GA'
set_var_int_to_constant $audio_sound_file = 22224
start_new_script @AUDIOL -1 0 1 1 0 
160@ += 1
64@ = 0

:ZERO4_13048
if 
  160@ == 1
goto_if_false @ZERO4_13186
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  $audio_line_is_active == 0
  64@ > 1000
goto_if_false @ZERO4_13186
if 
  171@ == 1
goto_if_false @ZERO4_13172
if 
  548@ <> 1
goto_if_false @ZERO4_13172
Text.PrintNow('Z4_M28', 7000, 1)
if 
  Object.DoesExist(89@)
goto_if_false @ZERO4_13172
161@ = Blip.AddForObject(89@)

:ZERO4_13172
160@ += 1
64@ = 0

:ZERO4_13186
if 
  160@ == 2
goto_if_false @ZERO4_13310
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  $audio_line_is_active == 0
  64@ > 1000
  548@ == 1
goto_if_false @ZERO4_13310
if 
  171@ == 1
goto_if_false @ZERO4_13275
Text.PrintNow('Z4_M29', 7000, 1)

:ZERO4_13275
if 
  Blip.DoesExist(161@)
goto_if_false @ZERO4_13296
Blip.Remove(161@)

:ZERO4_13296
160@ += 1
64@ = 0

:ZERO4_13310
if and
  160@ == 3
  171@ == 1
  $audio_line_is_active == 0
  64@ > 10000
goto_if_false @ZERO4_13572
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @ZERO4_13572
162@ += 1
if 
  162@ > 2
goto_if_false @ZERO4_13397
162@ = 0

:ZERO4_13397
switch_start 162@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @ZERO4_13547 {caseNum1} 0 {caseLabel1} @ZERO4_13460 {caseNum2} 1 {caseLabel2} @ZERO4_13489 {caseNum3} 2 {caseLabel3} @ZERO4_13518 {caseNum4} -1 {caseLabel4} @ZERO4_13547 {caseNum5} -1 {caseLabel5} @ZERO4_13547 {caseNum6} -1 {caseLabel6} @ZERO4_13547 {caseNum7} -1 {caseLabel7} @ZERO4_13547

:ZERO4_13460
set_var_text_label s$audio_string = 'ZER4_HA'
set_var_int_to_constant $audio_sound_file = 22225
goto @ZERO4_13547

:ZERO4_13489
set_var_text_label s$audio_string = 'ZER4_HB'
set_var_int_to_constant $audio_sound_file = 22226
goto @ZERO4_13547

:ZERO4_13518
set_var_text_label s$audio_string = 'ZER4_HC'
set_var_int_to_constant $audio_sound_file = 22227
goto @ZERO4_13547

:ZERO4_13547
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0

:ZERO4_13572
if 
  not Car.IsDead(68@)
goto_if_false @ZERO4_14061
43@ = Car.GetHealth(68@)
if 
  1400 > 43@
goto_if_false @ZERO4_14061
if and
  not Text.IsMessageBeingDisplayed
  not Text.IsHelpMessageBeingDisplayed
  64@ > 10000
  $audio_line_is_active == 0
goto_if_false @ZERO4_14061
$x, $y, $z = Car.GetCoordinates(68@)
set_lvar_float_to_var_float 56@ = $x
56@ -= 5.0
set_lvar_float_to_var_float 57@ = $y
57@ -= 5.0
set_lvar_float_to_var_float 58@ = $z
58@ -= 5.0
set_lvar_float_to_var_float 59@ = $x
59@ += 5.0
set_lvar_float_to_var_float 60@ = $y
60@ += 5.0
set_lvar_float_to_var_float 61@ = $z
61@ += 5.0
if 
  not World.IsExplosionInArea(ExplosionType.Small, 56@, 57@, 58@, 59@, 60@, 61@)
goto_if_false @ZERO4_14014
170@ += 1
if 
  170@ > 2
goto_if_false @ZERO4_13832
170@ = 0

:ZERO4_13832
switch_start 170@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @ZERO4_13982 {caseNum1} 0 {caseLabel1} @ZERO4_13895 {caseNum2} 1 {caseLabel2} @ZERO4_13924 {caseNum3} 2 {caseLabel3} @ZERO4_13953 {caseNum4} -1 {caseLabel4} @ZERO4_13982 {caseNum5} -1 {caseLabel5} @ZERO4_13982 {caseNum6} -1 {caseLabel6} @ZERO4_13982 {caseNum7} -1 {caseLabel7} @ZERO4_13982

:ZERO4_13895
set_var_text_label s$audio_string = 'ZER4_KA'
set_var_int_to_constant $audio_sound_file = 22234
goto @ZERO4_13982

:ZERO4_13924
set_var_text_label s$audio_string = 'ZER4_KB'
set_var_int_to_constant $audio_sound_file = 22235
goto @ZERO4_13982

:ZERO4_13953
set_var_text_label s$audio_string = 'ZER4_KC'
set_var_int_to_constant $audio_sound_file = 22236
goto @ZERO4_13982

:ZERO4_13982
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0
goto @ZERO4_14061

:ZERO4_14014
set_var_text_label s$audio_string = 'ZER4_LC'
set_var_int_to_constant $audio_sound_file = 22239
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0

:ZERO4_14061
if and
  149@ == 99
  150@ == 0
goto_if_false @ZERO4_14131
if 
  111@ == 3
goto_if_false @ZERO4_14131
Text.ClearHelp
Text.PrintHelp('Z4_H12')
150@ += 1
65@ = 0

:ZERO4_14131
if 
  150@ == 1
goto_if_false @ZERO4_14156
150@ = 99

:ZERO4_14156
if 
  Car.IsDead(70@)
goto_if_false @ZERO4_14470
if 
  122@ == 1
goto_if_false @ZERO4_14369
if 
  Object.DoesExist(142@)
goto_if_false @ZERO4_14303
Object.Detach(142@, 0.0, 0.0, 0.0, False)
Object.SetCollision(94@, True)
122@ = 0
103@ = 0
if 
  is_int_lvar_equal_to_int_lvar 142@ == 92@
goto_if_false @ZERO4_14289
121@ = 1
Object.SetRecordsCollisions(92@, True)
102@ = 0

:ZERO4_14289
142@ = 0
goto @ZERO4_14369

:ZERO4_14303
if 
  Car.DoesExist(76@)
goto_if_false @ZERO4_14369
Car.Detach(76@, 0.0, 0.0, 0.0, False)
Object.SetCollision(94@, True)
122@ = 0
103@ = 0
76@ = 0

:ZERO4_14369
wait 1000
set_lvar_int_to_lvar_int 543@ = 70@
Car.MarkAsNoLongerNeeded(70@)
127@ -= 1
if 
  127@ > 0
goto_if_false @ZERO4_14463
Camera.SetFixedPosition(-968.2972, 1077.413, 1346.686, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-969.2341, 1077.368, 1346.339, SwitchType.JumpCut)

:ZERO4_14463
70@ = 0

:ZERO4_14470
if 
  not Car.IsDead(70@)
goto_if_false @ZERO4_14545
if 
  544@ == 1
goto_if_false @ZERO4_14545
if 
  109@ > 10000
goto_if_false @ZERO4_14545
Car.SetProofs(70@, False, False, False, False, False)
544@ = 0

:ZERO4_14545
if 
  70@ == 0
goto_if_false @ZERO4_14892
if 
  127@ <> 0
goto_if_false @ZERO4_14892
Camera.Restore
World.ExtinguishFireAtPoint(-973.759, 1077.152, 1350.399, 200.0)
70@ = Car.Create(501, -973.759, 1077.152, 1350.399)
Car.SetProofs(70@, True, True, True, True, True)
544@ = 1
109@ = 0
Car.SetHeading(70@, 90.0)
Heli.SetBladesFullSpeed(70@)
Car.SetAreaVisible(70@, 10)
Rc.TakeCar($player1, 70@)
if 
  127@ == 2
goto_if_false @ZERO4_14721
Text.PrintNow('Z4_M14', 5000, 1)

:ZERO4_14721
if 
  127@ == 1
goto_if_false @ZERO4_14755
Text.PrintNow('Z4_M23', 5000, 1)

:ZERO4_14755
if 
  not Object.DoesExist(94@)
goto_if_false @ZERO4_14794
94@ = Object.Create(#MINI_MAGNET, -973.759, 1077.152, 1344.399)

:ZERO4_14794
Object.AttachToCar(94@, 70@, 0.0, 0.0, -0.2, 0.0, 0.0, 0.0)
Object.SetCollision(94@, True)
if 
  127@ == 0
goto_if_false @ZERO4_14871
Car.SetVisible(70@, False)
Object.SetVisible(94@, False)

:ZERO4_14871
if 
  Car.DoesExist(543@)
goto_if_false @ZERO4_14892
Car.Delete(543@)

:ZERO4_14892
if 
  68@ == 0
goto_if_false @ZERO4_15277
68@ = Car.Create(441, -975.6997, 1061.162, 1344.8)
Car.SetHeading(68@, 90.0)
Car.SetAreaVisible(68@, 10)
Car.SetProofs(68@, False, True, True, False, False)
Car.StartPlayback(68@, 521)
Car.SetPlaybackSpeed(68@, 0.5)
97@ = Blip.AddForCar(68@)
Blip.SetAsFriendly(97@, True)
Car.SetHealth(68@, 2000)
Blip.ChangeScale(97@, 2)
if 
  111@ == 2
goto_if_false @ZERO4_15145
43@ = Math.RandomIntInRange(0, 2)
if 
  43@ == 0
goto_if_false @ZERO4_15105
set_var_text_label s$audio_string = 'ZER4_MA'
set_var_int_to_constant $audio_sound_file = 22241
start_new_script @AUDIOL -1 0 1 1 0 
goto @ZERO4_15145

:ZERO4_15105
set_var_text_label s$audio_string = 'ZER4_MB'
set_var_int_to_constant $audio_sound_file = 22242
start_new_script @AUDIOL -1 0 1 1 0 

:ZERO4_15145
if 
  111@ == 1
goto_if_false @ZERO4_15277
43@ = Math.RandomIntInRange(0, 2)
if 
  43@ == 0
goto_if_false @ZERO4_15237
set_var_text_label s$audio_string = 'ZER4_MC'
set_var_int_to_constant $audio_sound_file = 22243
start_new_script @AUDIOL -1 0 1 1 0 
goto @ZERO4_15277

:ZERO4_15237
set_var_text_label s$audio_string = 'ZER4_MD'
set_var_int_to_constant $audio_sound_file = 22244
start_new_script @AUDIOL -1 0 1 1 0 

:ZERO4_15277
if 
  not Car.IsDead(68@)
goto_if_false @ZERO4_15836
43@ = Car.GetHealth(68@)
if 
  1000 > 43@
goto_if_false @ZERO4_15836
$x, $y, $z = Car.GetCoordinates(68@)
set_lvar_float_to_var_float 56@ = $x
56@ -= 5.0
set_lvar_float_to_var_float 57@ = $y
57@ -= 5.0
set_lvar_float_to_var_float 58@ = $z
58@ -= 5.0
set_lvar_float_to_var_float 59@ = $x
59@ += 5.0
set_lvar_float_to_var_float 60@ = $y
60@ += 5.0
set_lvar_float_to_var_float 61@ = $z
61@ += 5.0
Car.Explode(68@)
if 
  not World.IsExplosionInArea(ExplosionType.Small, 56@, 57@, 58@, 59@, 60@, 61@)
goto_if_false @ZERO4_15720
169@ += 1
if 
  169@ > 2
goto_if_false @ZERO4_15512
169@ = 0

:ZERO4_15512
switch_start 169@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @ZERO4_15662 {caseNum1} 0 {caseLabel1} @ZERO4_15575 {caseNum2} 1 {caseLabel2} @ZERO4_15604 {caseNum3} 2 {caseLabel3} @ZERO4_15633 {caseNum4} -1 {caseLabel4} @ZERO4_15662 {caseNum5} -1 {caseLabel5} @ZERO4_15662 {caseNum6} -1 {caseLabel6} @ZERO4_15662 {caseNum7} -1 {caseLabel7} @ZERO4_15662

:ZERO4_15575
set_var_text_label s$audio_string = 'ZER4_LA'
set_var_int_to_constant $audio_sound_file = 22237
goto @ZERO4_15662

:ZERO4_15604
set_var_text_label s$audio_string = 'ZER4_LB'
set_var_int_to_constant $audio_sound_file = 22238
goto @ZERO4_15662

:ZERO4_15633
set_var_text_label s$audio_string = 'ZER4_LD'
set_var_int_to_constant $audio_sound_file = 22240
goto @ZERO4_15662

:ZERO4_15662
start_new_script @AUDIOL -1 0 1 1 0 
wait 100

:ZERO4_15684
if 
  $audio_line_is_active == 1
goto_if_false @ZERO4_15713
wait 0
goto @ZERO4_15684

:ZERO4_15713
goto @ZERO4_15793

:ZERO4_15720
set_var_text_label s$audio_string = 'ZER4_LC'
set_var_int_to_constant $audio_sound_file = 22239
start_new_script @AUDIOL -1 0 1 1 0 
wait 100

:ZERO4_15764
if 
  $audio_line_is_active == 1
goto_if_false @ZERO4_15793
wait 0
goto @ZERO4_15764

:ZERO4_15793
Car.MarkAsNoLongerNeeded(68@)
Car.StopPlayback(68@)
Blip.Remove(97@)
68@ = 0
111@ -= 1
110@ = 0
137@ = 0

:ZERO4_15836
if 
  Car.DoesExist(71@)
goto_if_false @ZERO4_16063
if 
  Car.IsDead(71@)
goto_if_false @ZERO4_16063
if 
  Object.DoesExist(95@)
goto_if_false @ZERO4_15889
Object.Delete(95@)

:ZERO4_15889
if 
  Object.DoesExist(77@(125@,10i))
goto_if_false @ZERO4_16056
if 
  Object.IsAttached(77@(125@,10i))
goto_if_false @ZERO4_16056
Object.Detach(77@(125@,10i), 0.0, 0.0, 0.0, False)
Object.SetCollision(77@(125@,10i), True)
if 
  Object.IsIntersectingWorld(77@(125@,10i))
goto_if_false @ZERO4_16056
$x, $y, $z = Object.GetCoordinates(77@(125@,10i))
$heading = Object.GetHeading(77@(125@,10i))
$z += 1.0
Object.SetCoordinates(77@(125@,10i), $x, $y, $z)
Object.SetHeading(77@(125@,10i), $heading)

:ZERO4_16056
71@ = 0

:ZERO4_16063
if 
  115@ == 0
goto_if_false @ZERO4_16305
43@ = 0

:ZERO4_16088
if 
  5 > 43@
goto_if_false @ZERO4_16305
if 
  Object.DoesExist(87@(43@,5i))
goto_if_false @ZERO4_16291
if 
  not Object.IsAttached(87@(43@,5i))
goto_if_false @ZERO4_16291
if 
  Object.Locate3D(87@(43@,5i), -1043.508, 1041.38, 1341.294, 1.0, 1.0, 1.0, False)
goto_if_false @ZERO4_16291
Object.SetCoordinates(87@(43@,5i), -1043.508, 1041.38, 1341.294)
Object.SetRotation(87@(43@,5i), -2.77, -2.13, -38.12)
Object.FreezePosition(87@(43@,5i), True)
Audio.ReportMissionAudioEventAtObject(87@(43@,5i), 1009)
115@ = 1
set_lvar_int_to_lvar_int 117@ = 43@
43@ = 5

:ZERO4_16291
43@ += 1
goto @ZERO4_16088

:ZERO4_16305
if 
  115@ == 1
goto_if_false @ZERO4_16388
if 
  Object.DoesExist(87@(117@,5i))
goto_if_false @ZERO4_16388
if 
  Object.IsAttached(87@(117@,5i))
goto_if_false @ZERO4_16388
Object.FreezePosition(87@(117@,5i), False)
115@ = 0
117@ = -1

:ZERO4_16388
if 
  not Car.IsDead(68@)
goto_if_false @ZERO4_16606
if 
  119@ == 0
goto_if_false @ZERO4_16521
if 
  115@ == 0
goto_if_false @ZERO4_16514
if 
  Car.Locate3D(68@, -1041.83, 1044.25, 1341.42, 1.5, 1.5, 1.5, False)
goto_if_false @ZERO4_16514
Car.PausePlayback(68@)
119@ = 1
155@ = 1
171@ = 1

:ZERO4_16514
goto @ZERO4_16606

:ZERO4_16521
if 
  115@ == 1
goto_if_false @ZERO4_16606
if 
  Car.Locate3D(68@, -1041.83, 1044.25, 1341.42, 1.5, 1.5, 1.5, False)
goto_if_false @ZERO4_16606
Car.UnpausePlayback(68@)
119@ = 0
171@ = 0

:ZERO4_16606
if 
  155@ == 1
goto_if_false @ZERO4_16665
if 
  147@ == 99
goto_if_false @ZERO4_16665
Text.PrintNow('Z4_M20', 7000, 1)
155@ += 1

:ZERO4_16665
if 
  155@ == 2
goto_if_false @ZERO4_16843
if 
  Object.DoesExist(142@)
goto_if_false @ZERO4_16843
43@ = 0
44@ = 0

:ZERO4_16713
if 
  5 > 43@
goto_if_false @ZERO4_16802
if 
  Object.DoesExist(87@(43@,5i))
goto_if_false @ZERO4_16788
if 
  is_int_lvar_equal_to_int_lvar 87@(43@,5i) == 142@
goto_if_false @ZERO4_16788
44@ = 1
43@ = 5

:ZERO4_16788
43@ += 1
goto @ZERO4_16713

:ZERO4_16802
if 
  44@ == 1
goto_if_false @ZERO4_16843
Text.PrintNow('Z4_M21', 7000, 1)
155@ += 1

:ZERO4_16843
if 
  155@ == 3
goto_if_false @ZERO4_16888
if 
  115@ == 1
goto_if_false @ZERO4_16888
Text.ClearPrints
155@ = 99

:ZERO4_16888
if 
  116@ == 0
goto_if_false @ZERO4_17130
43@ = 0

:ZERO4_16913
if 
  5 > 43@
goto_if_false @ZERO4_17130
if 
  Object.DoesExist(87@(43@,5i))
goto_if_false @ZERO4_17116
if 
  not Object.IsAttached(87@(43@,5i))
goto_if_false @ZERO4_17116
if 
  Object.Locate3D(87@(43@,5i), -1062.833, 1076.628, 1341.23, 1.0, 1.0, 1.0, False)
goto_if_false @ZERO4_17116
Object.SetCoordinates(87@(43@,5i), -1062.833, 1076.628, 1341.23)
Object.SetRotation(87@(43@,5i), 4.7, -4.77, -31.58)
Object.FreezePosition(87@(43@,5i), True)
Audio.ReportMissionAudioEventAtObject(87@(43@,5i), 1009)
116@ = 1
set_lvar_int_to_lvar_int 118@ = 43@
43@ = 5

:ZERO4_17116
43@ += 1
goto @ZERO4_16913

:ZERO4_17130
if 
  116@ == 1
goto_if_false @ZERO4_17213
if 
  Object.DoesExist(87@(118@,5i))
goto_if_false @ZERO4_17213
if 
  Object.IsAttached(87@(118@,5i))
goto_if_false @ZERO4_17213
Object.FreezePosition(87@(118@,5i), False)
116@ = 0
118@ = -1

:ZERO4_17213
if 
  not Car.IsDead(68@)
goto_if_false @ZERO4_17431
if 
  119@ == 0
goto_if_false @ZERO4_17346
if 
  116@ == 0
goto_if_false @ZERO4_17339
if 
  Car.Locate3D(68@, -1064.09, 1074.37, 1341.32, 1.5, 1.5, 1.5, False)
goto_if_false @ZERO4_17339
Car.PausePlayback(68@)
171@ = 1
119@ = 1
156@ = 1

:ZERO4_17339
goto @ZERO4_17431

:ZERO4_17346
if 
  116@ == 1
goto_if_false @ZERO4_17431
if 
  Car.Locate3D(68@, -1064.09, 1074.37, 1341.32, 1.5, 1.5, 1.5, False)
goto_if_false @ZERO4_17431
Car.UnpausePlayback(68@)
171@ = 0
119@ = 0

:ZERO4_17431
if 
  156@ == 1
goto_if_false @ZERO4_17472
Text.PrintNow('Z4_M20', 7000, 1)
156@ += 1

:ZERO4_17472
if 
  156@ == 2
goto_if_false @ZERO4_17650
if 
  Object.DoesExist(142@)
goto_if_false @ZERO4_17650
43@ = 0
44@ = 0

:ZERO4_17520
if 
  5 > 43@
goto_if_false @ZERO4_17609
if 
  Object.DoesExist(87@(43@,5i))
goto_if_false @ZERO4_17595
if 
  is_int_lvar_equal_to_int_lvar 87@(43@,5i) == 142@
goto_if_false @ZERO4_17595
44@ = 1
43@ = 5

:ZERO4_17595
43@ += 1
goto @ZERO4_17520

:ZERO4_17609
if 
  44@ == 1
goto_if_false @ZERO4_17650
Text.PrintNow('Z4_M21', 7000, 1)
156@ += 1

:ZERO4_17650
if 
  156@ == 3
goto_if_false @ZERO4_17695
if 
  116@ == 1
goto_if_false @ZERO4_17695
Text.ClearPrints
156@ = 99

:ZERO4_17695
if 
  137@ == 0
goto_if_false @ZERO4_19056
if 
  119@ == 0
goto_if_false @ZERO4_18349
if 
  120@ == 0
goto_if_false @ZERO4_18342
if 
  not Car.IsDead(68@)
goto_if_false @ZERO4_18342
108@ = 0
157@ = 0
$x, $y, $z = Car.GetOffsetInWorldCoords(68@, 0.0, 2.0, 0.0)
43@ = 0

:ZERO4_17815
if 
  10 > 43@
goto_if_false @ZERO4_18002
if 
  Object.DoesExist(77@(43@,10i))
goto_if_false @ZERO4_17988
if 
  Object.Locate3D(77@(43@,10i), $x, $y, $z, 1.0, 1.0, 1.0, False)
goto_if_false @ZERO4_17988
56@, 57@, 58@ = Object.GetCoordinates(77@(43@,10i))
46@ = Math.GetDistanceBetweenCoords2D($x, $y, 56@, 57@)
if 
  0.8 > 46@
goto_if_false @ZERO4_17988
Car.PausePlayback(68@)
119@ = 1
120@ = 1
157@ = 1
goto @ZERO4_18342

:ZERO4_17988
43@ += 1
goto @ZERO4_17815

:ZERO4_18002
43@ = 0

:ZERO4_18009
if 
  3 > 43@
goto_if_false @ZERO4_18232
if 
  Car.DoesExist(72@(43@,3i))
goto_if_false @ZERO4_18218
if 
  not Car.IsDead(72@(43@,3i))
goto_if_false @ZERO4_18218
if 
  Car.Locate3D(72@(43@,3i), $x, $y, $z, 2.0, 2.0, 2.0, False)
goto_if_false @ZERO4_18218
56@, 57@, 58@ = Car.GetCoordinates(72@(43@,3i))
46@ = Math.GetDistanceBetweenCoords2D($x, $y, 56@, 57@)
if 
  0.9 > 46@
goto_if_false @ZERO4_18218
Car.PausePlayback(68@)
119@ = 1
120@ = 1
157@ = 2
Text.PrintNow('Z4_M18', 5000, 1)
goto @ZERO4_18342

:ZERO4_18218
43@ += 1
goto @ZERO4_18009

:ZERO4_18232
if 
  not Car.IsDead(70@)
goto_if_false @ZERO4_18316
if 
  Car.Locate3D(70@, $x, $y, $z, 1.0, 1.0, 1.0, False)
goto_if_false @ZERO4_18316
Car.PausePlayback(68@)
119@ = 1
120@ = 1
goto @ZERO4_18342

:ZERO4_18316
if 
  120@ == 1
goto_if_false @ZERO4_18342
108@ = 30000

:ZERO4_18342
goto @ZERO4_19056

:ZERO4_18349
if 
  120@ == 1
goto_if_false @ZERO4_19056
if 
  not Car.IsDead(68@)
goto_if_false @ZERO4_19056
$x, $y, $z = Car.GetOffsetInWorldCoords(68@, 0.0, 2.0, 0.0)
120@ = 0
43@ = 0

:ZERO4_18426
if 
  10 > 43@
goto_if_false @ZERO4_18601
if 
  Object.DoesExist(77@(43@,10i))
goto_if_false @ZERO4_18587
if 
  Object.Locate3D(77@(43@,10i), $x, $y, $z, 2.0, 2.0, 2.0, False)
goto_if_false @ZERO4_18587
56@, 57@, 58@ = Object.GetCoordinates(77@(43@,10i))
46@ = Math.GetDistanceBetweenCoords2D($x, $y, 56@, 57@)
if 
  0.9 > 46@
goto_if_false @ZERO4_18587
120@ = 1
157@ = 1
goto @ZERO4_19056

:ZERO4_18587
43@ += 1
goto @ZERO4_18426

:ZERO4_18601
43@ = 0

:ZERO4_18608
if 
  3 > 43@
goto_if_false @ZERO4_18803
if 
  Car.DoesExist(72@(43@,3i))
goto_if_false @ZERO4_18789
if 
  not Car.IsDead(72@(43@,3i))
goto_if_false @ZERO4_18789
if 
  Car.Locate3D(72@(43@,3i), $x, $y, $z, 1.0, 1.0, 1.0, False)
goto_if_false @ZERO4_18789
56@, 57@, 58@ = Car.GetCoordinates(72@(43@,3i))
46@ = Math.GetDistanceBetweenCoords2D($x, $y, 56@, 57@)
if 
  0.8 > 46@
goto_if_false @ZERO4_18789
120@ = 1
157@ = 2
goto @ZERO4_19056

:ZERO4_18789
43@ += 1
goto @ZERO4_18608

:ZERO4_18803
if 
  not Car.IsDead(70@)
goto_if_false @ZERO4_18875
if 
  Car.Locate3D(70@, $x, $y, $z, 1.0, 1.0, 1.0, False)
goto_if_false @ZERO4_18875
120@ = 1
goto @ZERO4_19056

:ZERO4_18875
if and
  120@ == 1
  108@ > 30000
  3 > 158@
goto_if_false @ZERO4_18983
if 
  157@ == 1
goto_if_false @ZERO4_18942
Text.Print('Z4_M18', 5000, 1)

:ZERO4_18942
if 
  157@ == 2
goto_if_false @ZERO4_18976
Text.Print('Z4_M25', 5000, 1)

:ZERO4_18976
108@ = 0

:ZERO4_18983
if 
  120@ == 0
goto_if_false @ZERO4_19056
Car.UnpausePlayback(68@)
119@ = 0
157@ = 0
Text.ClearPrints
if and
  108@ > 1000
  30000 > 108@
goto_if_false @ZERO4_19056
158@ += 1

:ZERO4_19056
if 
  137@ == 0
goto_if_false @ZERO4_19476
if 
  not Car.IsDead(68@)
goto_if_false @ZERO4_19476
if 
  Car.HasBeenDamagedByWeapon(68@, WeaponType.MicroUzi)
goto_if_false @ZERO4_19120
545@ = 1
Car.ClearLastWeaponDamage(68@)

:ZERO4_19120
$zero4_timer = Car.GetHealth(68@)
$zero4_timer += -1000
cset_lvar_float_to_var_int 46@ =# $zero4_timer
46@ /= 1000.0
46@ *= 100.0
cset_var_int_to_lvar_float $zero4_timer =# 46@
if 
  is_int_lvar_greater_than_int_var 135@ > $zero4_timer
goto_if_false @ZERO4_19205
136@ = 1
107@ = 0

:ZERO4_19205
set_lvar_int_to_var_int 135@ = $zero4_timer
if 
  136@ == 1
goto_if_false @ZERO4_19301
if 
  119@ == 1
goto_if_false @ZERO4_19261
Car.UnpausePlayback(68@)
119@ = 0

:ZERO4_19261
if 
  Car.IsPlaybackGoingOn(68@)
goto_if_false @ZERO4_19301
Car.SetPlaybackSpeed(68@, -0.2)
136@ += 1
107@ = 0

:ZERO4_19301
if 
  136@ == 2
goto_if_false @ZERO4_19352
if 
  107@ > 4000
goto_if_false @ZERO4_19352
136@ += 1
107@ = 0

:ZERO4_19352
if 
  136@ == 3
goto_if_false @ZERO4_19406
Car.SetPlaybackSpeed(68@, 0.5)
Car.PausePlayback(68@)
119@ = 1
107@ = 0
136@ += 1

:ZERO4_19406
if 
  136@ == 4
goto_if_false @ZERO4_19476
if 
  107@ > 4000
goto_if_false @ZERO4_19476
Car.UnpausePlayback(68@)
119@ = 0
136@ = 0
107@ = 0
120@ = 0

:ZERO4_19476
if 
  not Car.IsDead(70@)
goto_if_false @ZERO4_20426
if 
  546@ == 1
goto_if_false @ZERO4_20426
if 
  122@ <> 0
goto_if_false @ZERO4_20419
if 
  548@ == 1
goto_if_false @ZERO4_19970
56@, 57@, 58@ = Car.GetCoordinates(70@)
58@ = World.GetGroundZFor3DCoord(56@, 57@, 58@)
43@ = 0
$x, $y, $z = Object.GetOffsetInWorldCoords(142@, 0.0, 1.7, 0.0)
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_19654
43@ = 1

:ZERO4_19654
$x, $y, $z = Object.GetOffsetInWorldCoords(142@, 0.0, -1.7, 0.0)
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_19727
43@ = 1

:ZERO4_19727
$x, $y, $z = Object.GetOffsetInWorldCoords(142@, 0.2, 0.0, 0.0)
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_19800
43@ = 1

:ZERO4_19800
$x, $y, $z = Object.GetOffsetInWorldCoords(142@, -0.2, 0.0, 0.0)
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_19873
43@ = 1

:ZERO4_19873
if 
  43@ == 1
goto_if_false @ZERO4_19956
Object.SetCollision(142@, False)
if 
  not Car.IsDead(70@)
goto_if_false @ZERO4_19949
Car.ApplyForce(70@, 0.0, 0.0, 0.005, 0.0, 0.0, 0.0)

:ZERO4_19949
goto @ZERO4_19970

:ZERO4_19956
Object.SetCollision(142@, True)
546@ = 0

:ZERO4_19970
if 
  547@ == 1
goto_if_false @ZERO4_20412
56@, 57@, 58@ = Car.GetCoordinates(70@)
58@ = World.GetGroundZFor3DCoord(56@, 57@, 58@)
43@ = 0
$x, $y, $z = Object.GetOffsetInWorldCoords(142@, 0.0, 1.0, 0.0)
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_20096
43@ = 1

:ZERO4_20096
$x, $y, $z = Object.GetOffsetInWorldCoords(142@, 0.0, -1.0, 0.0)
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_20169
43@ = 1

:ZERO4_20169
$x, $y, $z = Object.GetOffsetInWorldCoords(142@, 1.0, 0.0, 0.0)
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_20242
43@ = 1

:ZERO4_20242
$x, $y, $z = Object.GetOffsetInWorldCoords(142@, -1.0, 0.0, 0.0)
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_20315
43@ = 1

:ZERO4_20315
if 
  43@ == 1
goto_if_false @ZERO4_20398
Object.SetCollision(142@, False)
if 
  not Car.IsDead(70@)
goto_if_false @ZERO4_20391
Car.ApplyForce(70@, 0.0, 0.0, 0.005, 0.0, 0.0, 0.0)

:ZERO4_20391
goto @ZERO4_20412

:ZERO4_20398
Object.SetCollision(142@, True)
546@ = 0

:ZERO4_20412
goto @ZERO4_20426

:ZERO4_20419
546@ = 0

:ZERO4_20426
if 
  not Car.IsDead(70@)
goto_if_false @ZERO4_21624
if 
  122@ == 0
goto_if_false @ZERO4_21328
if 
  123@ == 0
goto_if_false @ZERO4_21297
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
  103@ > 1000
goto_if_false @ZERO4_21283
123@ = 1
$x, $y, $z = Car.GetOffsetInWorldCoords(70@, 0.0, 0.0, -1.0)
43@ = 0

:ZERO4_20546
if 
  10 > 43@
goto_if_false @ZERO4_20832
if 
  Object.DoesExist(77@(43@,10i))
goto_if_false @ZERO4_20818
if 
  Object.Locate3D(77@(43@,10i), $x, $y, $z, 1.0, 1.0, 1.0, False)
goto_if_false @ZERO4_20818
44@ = 0
if 
  Object.IsAttached(77@(43@,10i))
goto_if_false @ZERO4_20664
44@ = 1

:ZERO4_20664
if 
  44@ == 0
goto_if_false @ZERO4_20818
set_lvar_int_to_lvar_int 142@ = 77@(43@,10i)
46@ = Object.GetHeading(77@(43@,10i))
Object.AttachToCar(142@, 70@, 0.0, 0.0, -1.2, 0.0, 90.0, 0.0)
if 
  Object.DoesExist(142@)
goto_if_false @ZERO4_20768
Audio.ReportMissionAudioEventAtObject(142@, 1009)

:ZERO4_20768
Object.SetCollision(94@, True)
Object.SortOutCollisionWithCar(142@, 70@)
43@ = 10
122@ = 1
547@ = 1
546@ = 1
goto @ZERO4_21276

:ZERO4_20818
43@ += 1
goto @ZERO4_20546

:ZERO4_20832
43@ = 0

:ZERO4_20839
if 
  5 > 43@
goto_if_false @ZERO4_21061
if 
  Object.DoesExist(87@(43@,5i))
goto_if_false @ZERO4_21047
if 
  Object.Locate3D(87@(43@,5i), $x, $y, $z, 1.0, 1.0, 1.0, False)
goto_if_false @ZERO4_21047
set_lvar_int_to_lvar_int 142@ = 87@(43@,5i)
Object.AttachToCar(142@, 70@, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0)
if 
  Object.DoesExist(142@)
goto_if_false @ZERO4_20997
Audio.ReportMissionAudioEventAtObject(142@, 1009)

:ZERO4_20997
Object.SetCollision(94@, True)
Object.SortOutCollisionWithCar(142@, 70@)
43@ = 6
122@ = 1
548@ = 1
546@ = 1
goto @ZERO4_21276

:ZERO4_21047
43@ += 1
goto @ZERO4_20839

:ZERO4_21061
if 
  Object.DoesExist(92@)
goto_if_false @ZERO4_21276
if 
  Object.Locate3D(92@, $x, $y, $z, 1.0, 1.0, 1.0, False)
goto_if_false @ZERO4_21276
set_lvar_int_to_lvar_int 142@ = 92@
Object.AttachToCar(142@, 70@, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0)
if 
  Object.DoesExist(142@)
goto_if_false @ZERO4_21240
if 
  Object.IsIntersectingWorld(142@)
goto_if_false @ZERO4_21232
Car.ApplyForce(70@, 0.0, 0.0, 0.1, 0.0, 0.0, 0.0)

:ZERO4_21232
Audio.ReportMissionAudioEventAtObject(142@, 1009)

:ZERO4_21240
Object.SetCollision(94@, True)
Object.SortOutCollisionWithCar(142@, 70@)
122@ = 1
549@ = 1
goto @ZERO4_21276

:ZERO4_21276
goto @ZERO4_21290

:ZERO4_21283
123@ = 0

:ZERO4_21290
goto @ZERO4_21321

:ZERO4_21297
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @ZERO4_21321
123@ = 0

:ZERO4_21321
goto @ZERO4_21624

:ZERO4_21328
if 
  123@ == 1
goto_if_false @ZERO4_21377
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @ZERO4_21370
123@ = 0

:ZERO4_21370
goto @ZERO4_21624

:ZERO4_21377
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @ZERO4_21624
if 
  Object.DoesExist(142@)
goto_if_false @ZERO4_21551
if 
  not Object.IsIntersectingWorld(142@)
goto_if_false @ZERO4_21544
Object.Detach(142@, 0.0, 0.0, 0.0, False)
Object.SetCollision(94@, True)
122@ = 0
103@ = 0
if 
  is_int_lvar_equal_to_int_lvar 142@ == 92@
goto_if_false @ZERO4_21509
121@ = 1
Object.SetRecordsCollisions(92@, True)
102@ = 0

:ZERO4_21509
142@ = 0
123@ = 1
549@ = 0
548@ = 0
547@ = 0

:ZERO4_21544
goto @ZERO4_21624

:ZERO4_21551
if 
  Car.DoesExist(76@)
goto_if_false @ZERO4_21624
Car.Detach(76@, 0.0, 0.0, 0.0, False)
Object.SetCollision(94@, True)
122@ = 0
103@ = 0
76@ = 0
123@ = 1

:ZERO4_21624
if 
  Object.DoesExist(92@)
goto_if_false @ZERO4_21747
if 
  121@ == 1
goto_if_false @ZERO4_21740
if or
  Object.HasCollidedWithAnything(92@)
  102@ > 10000
goto_if_false @ZERO4_21740
if 
  102@ > 500
goto_if_false @ZERO4_21740
$x, $y, $z = Object.GetCoordinates(92@)
Fx.AddExplosion($x, $y, $z, ExplosionType.Small)
Object.Delete(92@)
121@ = 0

:ZERO4_21740
goto @ZERO4_21787

:ZERO4_21747
92@ = Object.CreateNoOffset(#RCBOMB, -974.5125, 1072.045, 1344.298)
Object.SetHeading(92@, 90.0)
121@ = 0

:ZERO4_21787
if 
  not Car.IsDead(68@)
goto_if_false @ZERO4_21969
set_lvar_int_to_lvar_int 43@ = 110@

:ZERO4_21811
if 
  117 > 43@
goto_if_false @ZERO4_21944
if 
  not Car.IsDead(68@)
goto_if_false @ZERO4_21923
if 
  Car.Locate2D(68@, 191@(43@,117f), 308@(43@,117f), 1.0, 1.0, False)
goto_if_false @ZERO4_21909
set_lvar_int_to_lvar_int 110@ = 43@
110@ += 1
goto @ZERO4_21916

:ZERO4_21909
43@ = 117

:ZERO4_21916
goto @ZERO4_21930

:ZERO4_21923
110@ = 0

:ZERO4_21930
43@ += 1
goto @ZERO4_21811

:ZERO4_21944
if 
  110@ > 116
goto_if_false @ZERO4_21969
110@ = 116

:ZERO4_21969
if 
  not Car.IsDead(71@)
goto_if_false @ZERO4_23052
if 
  124@ == 0
goto_if_false @ZERO4_22331
125@ = -1
43@ = 3

:ZERO4_22017
if 
  10 > 43@
goto_if_false @ZERO4_22084
if 
  not Object.DoesExist(77@(43@,10i))
goto_if_false @ZERO4_22070
set_lvar_int_to_lvar_int 125@ = 43@
43@ = 10

:ZERO4_22070
43@ += 1
goto @ZERO4_22017

:ZERO4_22084
if 
  125@ > -1
goto_if_false @ZERO4_22236
77@(125@,10i) = Object.Create(#BARREL2, 0.0, 0.0, 0.0)
Object.AttachToCar(77@(125@,10i), 71@, 0.0, 0.0, -1.2, 0.0, 90.0, 0.0)
if 
  Object.DoesExist(77@(125@,10i))
goto_if_false @ZERO4_22203
Audio.ReportMissionAudioEventAtObject(77@(125@,10i), 1009)

:ZERO4_22203
Object.SetCollision(95@, False)
Object.SortOutCollisionWithCar(77@(125@,10i), 71@)
124@ += 1
goto @ZERO4_22331

:ZERO4_22236
43@ = 3

:ZERO4_22243
if 
  10 > 43@
goto_if_false @ZERO4_22331
if 
  Object.DoesExist(77@(43@,10i))
goto_if_false @ZERO4_22317
if 
  not Object.IsOnScreen(77@(43@,10i))
goto_if_false @ZERO4_22317
Object.Delete(77@(43@,10i))
43@ = 10

:ZERO4_22317
43@ += 1
goto @ZERO4_22243

:ZERO4_22331
if 
  124@ == 1
goto_if_false @ZERO4_22446
set_lvar_int_to_lvar_int 126@ = 110@
126@ += 30
if 
  126@ > 114
goto_if_false @ZERO4_22389
126@ = 114

:ZERO4_22389
Heli.SetStabiliser(71@, False)
Heli.SetReachedTargetDistance(71@, 0)
Heli.GotoCoords(71@, 191@(126@,117f), 308@(126@,117f), 425@(126@,117f), 5.0, 352.0)
124@ += 1

:ZERO4_22446
if 
  124@ == 2
goto_if_false @ZERO4_22729
if 
  Car.Locate3D(71@, 191@(126@,117f), 308@(126@,117f), 425@(126@,117f), 5.0, 5.0, 15.0, False)
goto_if_false @ZERO4_22634
if 
  is_int_lvar_greater_than_int_lvar 110@ > 126@
goto_if_false @ZERO4_22620
set_lvar_int_to_lvar_int 126@ = 110@
126@ += 10
if 
  126@ > 114
goto_if_false @ZERO4_22577
126@ = 114

:ZERO4_22577
Heli.GotoCoords(71@, 191@(126@,117f), 308@(126@,117f), 425@(126@,117f), 5.0, 352.0)
goto @ZERO4_22627

:ZERO4_22620
124@ += 1

:ZERO4_22627
goto @ZERO4_22729

:ZERO4_22634
if 
  is_int_lvar_greater_than_int_lvar 110@ > 126@
goto_if_false @ZERO4_22729
set_lvar_int_to_lvar_int 126@ = 110@
126@ += 10
if 
  126@ > 114
goto_if_false @ZERO4_22693
126@ = 114

:ZERO4_22693
Heli.GotoCoords(71@, 191@(126@,117f), 308@(126@,117f), 425@(126@,117f), 5.0, 352.0)

:ZERO4_22729
if 
  124@ == 3
goto_if_false @ZERO4_22790
Heli.GotoCoords(71@, 191@(126@,117f), 308@(126@,117f), 425@(126@,117f), 1.0, 343.0)
124@ += 1

:ZERO4_22790
if 
  124@ == 4
goto_if_false @ZERO4_22869
if 
  Car.Locate3D(71@, 191@(126@,117f), 308@(126@,117f), 425@(126@,117f), 1.5, 1.5, 5.0, False)
goto_if_false @ZERO4_22869
124@ += 1

:ZERO4_22869
if 
  124@ == 5
goto_if_false @ZERO4_22927
Object.Detach(77@(125@,10i), 0.0, 0.0, 0.0, False)
Object.SetCollision(95@, True)
124@ += 1

:ZERO4_22927
if 
  124@ == 6
goto_if_false @ZERO4_22982
Heli.GotoCoords(71@, -1131.694, 1041.791, 1345.141, 5.0, 350.0)
124@ += 1

:ZERO4_22982
if 
  124@ == 7
goto_if_false @ZERO4_23045
if 
  Car.Locate2D(71@, -1131.694, 1041.791, 4.0, 4.0, False)
goto_if_false @ZERO4_23045
124@ = 0

:ZERO4_23045
goto @ZERO4_23087

:ZERO4_23052
if 
  124@ <> 99
goto_if_false @ZERO4_23087
Car.MarkAsNoLongerNeeded(71@)
Blip.Remove(98@)
124@ = 99

:ZERO4_23087
43@ = 0

:ZERO4_23094
if 
  3 > 43@
goto_if_false @ZERO4_23406
if 
  not Car.IsDead(72@(43@,3i))
goto_if_false @ZERO4_23392
44@ = 0

:ZERO4_23139
if 
  10 > 44@
goto_if_false @ZERO4_23392
if 
  Object.DoesExist(77@(44@,10i))
goto_if_false @ZERO4_23378
if 
  Car.IsTouchingObject(72@(43@,3i), 77@(44@,10i))
goto_if_false @ZERO4_23378
46@ = Object.GetSpeed(77@(44@,10i))
if 
  46@ > 5.0
goto_if_false @ZERO4_23294
45@ = Car.GetHealth(72@(43@,3i))
45@ += -200
if 
  0 >= 45@
goto_if_false @ZERO4_23282
45@ = 1

:ZERO4_23282
Car.SetHealth(72@(43@,3i), 45@)

:ZERO4_23294
if 
  122@ == 1
goto_if_false @ZERO4_23378
if 
  is_int_lvar_equal_to_int_lvar 142@ == 77@(44@,10i)
goto_if_false @ZERO4_23378
Object.Detach(142@, 0.0, 0.0, 0.0, False)
Object.SetCollision(94@, True)
122@ = 0
103@ = 0

:ZERO4_23378
44@ += 1
goto @ZERO4_23139

:ZERO4_23392
43@ += 1
goto @ZERO4_23094

:ZERO4_23406
44@ = 0

:ZERO4_23413
if 
  3 > 44@
goto_if_false @ZERO4_23460
set_lvar_int_to_lvar_int 551@ = 44@
gosub @ZERO4_24569
44@ += 1
goto @ZERO4_23413

:ZERO4_23460
if 
  not Car.IsDead(68@)
goto_if_false @ZERO4_23538
if 
  Car.Locate3D(68@, -1131.6, 1057.7, 1345.7, 2.5, 2.5, 2.0, False)
goto_if_false @ZERO4_23538
gosub @ZERO4_24100
36@ = 1

:ZERO4_23538
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @ZERO4_23567
gosub @ZERO4_23838
37@ = 1

:ZERO4_23567
if 
  111@ == 0
goto_if_false @ZERO4_23615
gosub @ZERO4_23838
Text.PrintNow('Z4_M15', 5000, 1)
37@ = 1

:ZERO4_23615
if 
  127@ == 0
goto_if_false @ZERO4_23663
gosub @ZERO4_23838
Text.PrintNow('Z4_M13', 5000, 1)
37@ = 1

:ZERO4_23663
if 
  0 >= $7431
goto_if_false @ZERO4_23711
gosub @ZERO4_23838
Text.PrintNow('Z4_M12', 5000, 1)
37@ = 1

:ZERO4_23711
if 
  35@ == 99
goto_if_false @ZERO4_23736
gosub @ZERO4_26267

:ZERO4_23736
if 
  38@ == 0
goto_if_false @ZERO4_23836
if 
  37@ == 0
goto_if_false @ZERO4_23820
if 
  36@ == 0
goto_if_false @ZERO4_23804
goto @ZERO4_133
goto @ZERO4_23813

:ZERO4_23804
gosub @ZERO4_26348
return 

:ZERO4_23813
goto @ZERO4_23829

:ZERO4_23820
gosub @ZERO4_26325
return 

:ZERO4_23829
goto @ZERO4_23838

:ZERO4_23836
return 

:ZERO4_23838
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Text.ClearHelp
Hud.ClearTimer($7431)
Hud.ClearCounter($zero4_timer)
wait 100
62@ = Math.RandomIntInRange(0, 3)
switch_start 62@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @ZERO4_24031 {caseNum1} 0 {caseLabel1} @ZERO4_23944 {caseNum2} 1 {caseLabel2} @ZERO4_23973 {caseNum3} 2 {caseLabel3} @ZERO4_24002 {caseNum4} -1 {caseLabel4} @ZERO4_24031 {caseNum5} -1 {caseLabel5} @ZERO4_24031 {caseNum6} -1 {caseLabel6} @ZERO4_24031 {caseNum7} -1 {caseLabel7} @ZERO4_24031

:ZERO4_23944
set_var_text_label s$audio_string = 'ZER4_NA'
set_var_int_to_constant $audio_sound_file = 22245
goto @ZERO4_24031

:ZERO4_23973
set_var_text_label s$audio_string = 'ZER4_NB'
set_var_int_to_constant $audio_sound_file = 22246
goto @ZERO4_24031

:ZERO4_24002
set_var_text_label s$audio_string = 'ZER4_NC'
set_var_int_to_constant $audio_sound_file = 22247
goto @ZERO4_24031

:ZERO4_24031
start_new_script @AUDIOL -1 0 1 1 0 
wait 100

:ZERO4_24053
if 
  $audio_line_is_active == 1
goto_if_false @ZERO4_24082
wait 0
goto @ZERO4_24053

:ZERO4_24082
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
return 

:ZERO4_24100
Hud.ClearTimer($7431)
Hud.ClearCounter($zero4_timer)
62@ = 0

:ZERO4_24117
if 
  550@ == 0
goto_if_false @ZERO4_24567
wait 0
if and
  TIMERB > 1000
  $audio_line_is_active == 0
goto_if_false @ZERO4_24560
switch_start 62@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @ZERO4_24510 {caseNum1} 0 {caseLabel1} @ZERO4_24293 {caseNum2} 1 {caseLabel2} @ZERO4_24322 {caseNum3} 2 {caseLabel3} @ZERO4_24351 {caseNum4} 3 {caseLabel4} @ZERO4_24380 {caseNum5} 4 {caseLabel5} @ZERO4_24409 {caseNum6} 5 {caseLabel6} @ZERO4_24438 {caseNum7} 6 {caseLabel7} @ZERO4_24467
switch_continued 7 {caseLabel1} @ZERO4_24496 {caseNum2} -1 {caseLabel2} @ZERO4_24510 {caseNum3} -1 {caseLabel3} @ZERO4_24510 {caseNum4} -1 {caseLabel4} @ZERO4_24510 {caseNum5} -1 {caseLabel5} @ZERO4_24510 {caseNum6} -1 {caseLabel6} @ZERO4_24510 {caseNum7} -1 {caseLabel7} @ZERO4_24510 {caseNum8} -1 {caseLabel8} @ZERO4_24510 {caseNum9} -1 {caseLabel9} @ZERO4_24510

:ZERO4_24293
set_var_text_label s$audio_string = 'ZER4_OA'
set_var_int_to_constant $audio_sound_file = 22248
goto @ZERO4_24510

:ZERO4_24322
set_var_text_label s$audio_string = 'ZER4_OB'
set_var_int_to_constant $audio_sound_file = 22249
goto @ZERO4_24510

:ZERO4_24351
set_var_text_label s$audio_string = 'ZER4_OC'
set_var_int_to_constant $audio_sound_file = 22250
goto @ZERO4_24510

:ZERO4_24380
set_var_text_label s$audio_string = 'ZER4_OD'
set_var_int_to_constant $audio_sound_file = 22251
goto @ZERO4_24510

:ZERO4_24409
set_var_text_label s$audio_string = 'ZER4_OE'
set_var_int_to_constant $audio_sound_file = 22252
goto @ZERO4_24510

:ZERO4_24438
set_var_text_label s$audio_string = 'ZER4_OF'
set_var_int_to_constant $audio_sound_file = 22253
goto @ZERO4_24510

:ZERO4_24467
set_var_text_label s$audio_string = 'ZER4_OG'
set_var_int_to_constant $audio_sound_file = 22254
goto @ZERO4_24510

:ZERO4_24496
550@ = 1
goto @ZERO4_24510

:ZERO4_24510
if 
  550@ == 0
goto_if_false @ZERO4_24560
start_new_script @AUDIOL -1 0 1 1 0 
TIMERB = 0
62@ += 1

:ZERO4_24560
goto @ZERO4_24117

:ZERO4_24567
return 

:ZERO4_24569
if 
  not Car.IsDead(72@(551@,3i))
goto_if_false @ZERO4_26216
if 
  139@(551@,3i) == 0
goto_if_false @ZERO4_25330
if 
  is_int_lvar_equal_to_int_lvar 39@ == 551@
goto_if_false @ZERO4_25323
if 
  not Car.IsDead(68@)
goto_if_false @ZERO4_24718
$x, $y, $z = Car.GetCoordinates(68@)
if 
  Car.Locate3D(72@(551@,3i), $x, $y, $z, 10.0, 10.0, 3.0, False)
goto_if_false @ZERO4_24718
set_lvar_int_to_lvar_int 139@(551@,3i) = 68@

:ZERO4_24718
if 
  128@(551@,3i) <> 99
goto_if_false @ZERO4_25323
if 
  139@(551@,3i) == 0
goto_if_false @ZERO4_25323
if 
  128@(551@,3i) == 0
goto_if_false @ZERO4_24951
set_lvar_int_to_lvar_int 43@ = 131@(551@,3i)
if 
  551@ == 0
goto_if_false @ZERO4_24844
Car.GotoCoordinatesAccurate(72@(551@,3i), 173@(43@,2f), 175@(43@,2f), 177@(43@,2f))

:ZERO4_24844
if 
  551@ == 1
goto_if_false @ZERO4_24892
Car.GotoCoordinatesAccurate(72@(551@,3i), 179@(43@,2f), 181@(43@,2f), 183@(43@,2f))

:ZERO4_24892
if 
  551@ == 2
goto_if_false @ZERO4_24940
Car.GotoCoordinatesAccurate(72@(551@,3i), 185@(43@,2f), 187@(43@,2f), 189@(43@,2f))

:ZERO4_24940
128@(551@,3i) += 1

:ZERO4_24951
if 
  128@(551@,3i) == 1
goto_if_false @ZERO4_25323
set_lvar_int_to_lvar_int 43@ = 131@(551@,3i)
if 
  551@ == 0
goto_if_false @ZERO4_25083
if 
  Car.Locate3D(72@(551@,3i), 173@(43@,2f), 175@(43@,2f), 177@(43@,2f), 2.0, 2.0, 1.0, False)
goto_if_false @ZERO4_25083
131@(551@,3i) += 1
128@(551@,3i) = 0

:ZERO4_25083
if 
  551@ == 1
goto_if_false @ZERO4_25181
if 
  Car.Locate3D(72@(551@,3i), 179@(43@,2f), 181@(43@,2f), 183@(43@,2f), 2.0, 2.0, 1.0, False)
goto_if_false @ZERO4_25181
131@(551@,3i) += 1
128@(551@,3i) = 0

:ZERO4_25181
if 
  551@ == 2
goto_if_false @ZERO4_25279
if 
  Car.Locate3D(72@(551@,3i), 185@(43@,2f), 187@(43@,2f), 189@(43@,2f), 2.0, 2.0, 1.0, False)
goto_if_false @ZERO4_25279
131@(551@,3i) += 1
128@(551@,3i) = 0

:ZERO4_25279
if 
  131@(551@,3i) > 1
goto_if_false @ZERO4_25323
128@(551@,3i) = 99
131@(551@,3i) = 0

:ZERO4_25323
goto @ZERO4_26209

:ZERO4_25330
if 
  not Car.IsDead(139@(551@,3i))
goto_if_false @ZERO4_26198
$x, $y, $z = Car.GetCoordinates(139@(551@,3i))
if 
  Car.Locate3D(72@(551@,3i), $x, $y, $z, 10.0, 10.0, 3.0, False)
goto_if_false @ZERO4_26180
46@ = Car.GetHeading(72@(551@,3i))
56@, 57@, 58@ = Car.GetCoordinates(72@(551@,3i))
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
47@ = Math.GetHeadingFromVector2D(50@, 51@)
set_lvar_float_to_lvar_float 48@ = 47@
sub_float_lvar_from_float_lvar 48@ -= 46@
if 
  48@ > 180.0
goto_if_false @ZERO4_25534
48@ += -360.0

:ZERO4_25534
if 
  -180.0 > 48@
goto_if_false @ZERO4_25565
48@ += 360.0

:ZERO4_25565
48@ *= 0.1
add_float_lvar_to_float_lvar 46@ += 48@
Car.SetHeading(72@(551@,3i), 46@)
if 
  104@(551@,3i) > 500
goto_if_false @ZERO4_26173
$x, $y, $z = Car.GetCoordinates(139@(551@,3i))
56@, 57@, 58@ = Car.GetCoordinates(72@(551@,3i))
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
$x, $y, $z = Car.GetOffsetInWorldCoords(72@(551@,3i), 0.0, 1.0, 0.0)
set_lvar_float_to_var_float 53@ = $x
sub_float_lvar_from_float_lvar 53@ -= 56@
set_lvar_float_to_var_float 54@ = $y
sub_float_lvar_from_float_lvar 54@ -= 57@
set_lvar_float_to_var_float 55@ = $z
sub_float_lvar_from_float_lvar 55@ -= 58@
46@ = Math.GetAngleBetween2DVectors(50@, 51@, 53@, 54@)
if 
  5.0 > 46@
goto_if_false @ZERO4_26173
46@ = Math.GetAngleBetween2DVectors(1.0, 52@, 1.0, 0.0)
if 
  45.0 > 46@
goto_if_false @ZERO4_26173
552@, 553@, 554@ = Car.GetOffsetInWorldCoords(72@(551@,3i), 0.0, 1.5, 0.35)
$x, $y, $z = Car.GetCoordinates(139@(551@,3i))
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 552@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 553@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 554@
46@ = Math.GetDistanceBetweenCoords3D($x, $y, $z, 552@, 553@, 554@)
div_float_lvar_by_float_lvar 50@ /= 46@
div_float_lvar_by_float_lvar 51@ /= 46@
div_float_lvar_by_float_lvar 52@ /= 46@
50@ *= 10.0
51@ *= 10.0
52@ *= 10.0
set_lvar_float_to_lvar_float 555@ = 552@
add_float_lvar_to_float_lvar 555@ += 50@
set_lvar_float_to_lvar_float 556@ = 553@
add_float_lvar_to_float_lvar 556@ += 51@
set_lvar_float_to_lvar_float 557@ = 554@
add_float_lvar_to_float_lvar 557@ += 52@
if 
  is_int_lvar_equal_to_int_lvar 139@(551@,3i) == 68@
goto_if_false @ZERO4_26128
Text.PrintNow('Z4_M19', 5000, 1)

:ZERO4_26128
Audio.ReportMissionAudioEventAtCar(72@(551@,3i), 1157)
World.FireSingleBullet(552@, 553@, 554@, 555@, 556@, 557@, 50)
104@(551@,3i) = 0

:ZERO4_26173
goto @ZERO4_26191

:ZERO4_26180
139@(551@,3i) = 0

:ZERO4_26191
goto @ZERO4_26209

:ZERO4_26198
139@(551@,3i) = 0

:ZERO4_26209
goto @ZERO4_26265

:ZERO4_26216
if 
  Blip.DoesExist(99@(551@,3i))
goto_if_false @ZERO4_26256
Blip.Remove(99@(551@,3i))
104@(551@,3i) = 0

:ZERO4_26256
Car.MarkAsNoLongerNeeded(72@(551@,3i))

:ZERO4_26265
return 

:ZERO4_26267
34@ += 1
35@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
return 

:ZERO4_26325
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
wait 5000
return 

:ZERO4_26348
return 

:ZERO4_26350
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:ZERO4_26364
if 
  Camera.GetFadingStatus
goto_if_false @ZERO4_26388
wait 0
goto @ZERO4_26364

:ZERO4_26388
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Streaming.LoadScene(-2246.983, 136.9301, 34.3125)
Streaming.RequestCollision(-2246.983, 136.9301)
Char.SetAreaVisible($scplayer, 0)
Streaming.SetAreaVisible(0)
Player.SetControl($player1, True)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -2244.669, 132.1672, 34.3203)
Char.SetHeading($scplayer, 92.111)

:ZERO4_26486
if 
  Char.IsWaitingForWorldCollision($scplayer)
goto_if_false @ZERO4_26513
wait 0
goto @ZERO4_26486

:ZERO4_26513
Char.SetCoordinates($scplayer, -2244.669, 132.1672, 34.3203)
Char.SetHeading($scplayer, 92.111)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Streaming.LoadScene(-2244.669, 132.1672, 34.3203)
Game.SetIsInStadium(False)
Game.HideAllFrontendBlips(False)
Car.Delete(68@)
Car.Delete(69@)
Car.Delete(70@)
Car.Delete(71@)
Car.Delete(72@)
Car.Delete(73@)
Car.Delete(74@)
43@ = 0

:ZERO4_26614
if 
  10 > 43@
goto_if_false @ZERO4_26655
Object.Delete(77@(43@,10i))
43@ += 1
goto @ZERO4_26614

:ZERO4_26655
43@ = 0

:ZERO4_26662
if 
  5 > 43@
goto_if_false @ZERO4_26703
Object.Delete(87@(43@,5i))
43@ += 1
goto @ZERO4_26662

:ZERO4_26703
Object.Delete(92@)
Hud.Display(True)
Hud.ClearTimer($7431)
Hud.ClearCounter($zero4_timer)
Streaming.MarkModelAsNoLongerNeeded(441)
Streaming.MarkModelAsNoLongerNeeded(564)
Streaming.MarkModelAsNoLongerNeeded(501)
Streaming.MarkModelAsNoLongerNeeded(481)
Blip.Remove(97@)
Blip.Remove(98@)
Blip.Remove(99@)
Blip.Remove(100@)
Blip.Remove(101@)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SetWantedMultiplier(1.0)
Hud.SetRadarZoom(0)
Clock.Restore
Weather.Release
if 
  36@ == 1
goto_if_false @ZERO4_27112
$zero_cash_pickup = Pickup.CreateProtection(-2243.007, 136.9601, 34.8203, $zero_revenue, $zero_revenue)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.DoFade(500, Fade.Out)

:ZERO4_26858
if 
  Camera.GetFadingStatus
goto_if_false @ZERO4_26882
wait 0
goto @ZERO4_26858

:ZERO4_26882
Streaming.LoadScene(-2254.872, 133.2548, 38.7597)
Camera.SetFixedPosition(-2254.872, 133.2548, 38.7597, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2253.899, 133.2602, 38.527, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:ZERO4_26957
if 
  Camera.GetFadingStatus
goto_if_false @ZERO4_26981
wait 0
goto @ZERO4_26957

:ZERO4_26981
Audio.PlayMissionPassedTune(1)
Text.PrintBig('ASS_ACQ', 5000, TextStyle.WhiteMiddleSmaller)
wait 5000
Camera.SetFixedPosition(-2246.787, 136.6037, 36.2636, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2245.825, 136.601, 35.9893, SwitchType.JumpCut)
Text.PrintWithNumberNow('ASS_LUV', $zero_revenue, 6000, 1)
wait 6000
Camera.DoFade(500, Fade.Out)

:ZERO4_27088
if 
  Camera.GetFadingStatus
goto_if_false @ZERO4_27112
wait 0
goto @ZERO4_27088

:ZERO4_27112
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Text.ClearPrints
Rc.RemoveBuggy
if 
  36@ == 1
goto_if_false @ZERO4_27205
Text.PrintWithNumberBig('M_PASS', 7000, 5000, TextStyle.Middle)
Stat.RegisterMissionPassed('ZERO_4')
Stat.PlayerMadeProgress(1)
Player.AddScore($player1, 7000)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Blip.Remove($zero_contact_blip)
$flag_zero_mission_counter += 1

:ZERO4_27205
$timer_mobile_start = Clock.GetGameTimer()
Player.SetControl($player1, True)
$onmission = 0
Mission.Finish
return 

//-------------Mission 75---------------
// Originally: Monster

:TORENO1
script_name 'TORENO1'
gosub @TORENO1_47
if 
  has_deatharrest_been_executed 
goto_if_false @TORENO1_38
gosub @TORENO1_14438

:TORENO1_38
gosub @TORENO1_14528
terminate_this_script 

:TORENO1_47
$onmission = 1
Stat.RegisterMissionGiven
Camera.SetFadingColor(0, 0, 0)
Weather.Force(WeatherType.SunnyCountryside)
Text.LoadMissionText('TORENO1')
Cutscene.Load('DESERT1')

:TORENO1_90
if 
  not Cutscene.HasLoaded
goto_if_false @TORENO1_114
wait 0
goto @TORENO1_90

:TORENO1_114
World.ClearArea(-694.4335, 964.9288, 11.2431, 100.0, True)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:TORENO1_147
if 
  not Cutscene.HasFinished
goto_if_false @TORENO1_171
wait 0
goto @TORENO1_147

:TORENO1_171
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:TORENO1_184
if 
  Camera.GetFadingStatus
goto_if_false @TORENO1_208
wait 0
goto @TORENO1_184

:TORENO1_208
Cutscene.Clear
Weather.Release
wait 0
34@ = 0
41@ = 0
42@ = 0
43@ = 0
44@ = 0
45@ = 0
46@ = 0
48@ = 0
49@ = 0
50@ = 0
51@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
34@ = 0
40@ = 0
88@ = 0
195@ = 33
36@ = 35
37@ = 0
52@ = 582.7242
59@ = 356.2812
66@ = 60.2072
73@ = 52.2072
53@ = 581.7789
60@ = 329.3647
67@ = 0.5427
74@ = 2.0841
54@ = 569.0
61@ = 323.5937
68@ = 0.7585
75@ = 3.8106
55@ = 577.7526
62@ = 335.6341
69@ = 0.4929
76@ = 1.8511
56@ = 583.3384
63@ = 355.0323
70@ = 0.4993
77@ = 2.637
57@ = 582.7242
64@ = 356.2812
71@ = 64.2072
78@ = 56.2072
58@ = 582.7242
65@ = 356.2812
72@ = 66.2072
79@ = 58.2072
90@ = -824.7935
125@ = 1078.275
160@ = 34.9479
91@ = -955.9566
126@ = 1359.621
161@ = 33.8826
92@ = -1030.999
127@ = 1446.298
162@ = 38.34
93@ = -1132.675
128@ = 1759.152
163@ = 35.3673
94@ = -1088.92
129@ = 1981.801
164@ = 125.1471
95@ = -990.0067
130@ = 2014.025
165@ = 113.5758
96@ = -1028.137
131@ = 2116.468
166@ = 88.2456
97@ = -1102.431
132@ = 2369.945
167@ = 84.0834
98@ = -1130.04
133@ = 2323.309
168@ = 87.9125
99@ = -1150.184
134@ = 2261.943
169@ = 96.1878
100@ = -1293.377
135@ = 2221.605
170@ = 98.322
101@ = -1349.91
136@ = 2342.396
171@ = 94.5565
102@ = -1285.214
137@ = 2441.422
172@ = 88.557
103@ = -1248.606
138@ = 2596.99
173@ = 89.817
104@ = -1174.87
139@ = 2304.589
174@ = 113.1954
105@ = -1094.353
140@ = 2304.949
175@ = 85.4543
106@ = -1108.603
141@ = 2491.693
176@ = 79.8438
107@ = -1224.763
142@ = 2680.323
177@ = 46.8193
108@ = -1333.673
143@ = 2660.205
178@ = 49.0624
109@ = -1622.432
144@ = 2670.262
179@ = 53.5027
110@ = -1646.642
145@ = 2478.291
180@ = 85.833
111@ = -1742.658
146@ = 2458.663
181@ = 71.4663
112@ = -1687.3
147@ = 2394.693
182@ = 58.0739
113@ = -1752.384
148@ = 2299.294
183@ = 37.9221
114@ = -1687.584
149@ = 2336.405
184@ = 32.4859
115@ = -1575.405
150@ = 2275.412
185@ = 55.2948
116@ = -1508.816
151@ = 1929.009
186@ = 46.1035
117@ = -1330.147
152@ = 1888.01
187@ = 46.2572
118@ = -1147.85
153@ = 1721.926
188@ = 43.41
119@ = -1036.475
154@ = 1564.297
189@ = 32.8195
120@ = -995.6179
155@ = 1395.26
190@ = 40.9086
121@ = -810.2653
156@ = 1149.114
191@ = 33.024
122@ = -702.602
157@ = 1118.19
192@ = 35.5621
123@ = -700.9643
158@ = 955.246
193@ = 12.7168
34@ = 0

:TORENO1_1670
if 
  34 > 34@
goto_if_false @TORENO1_1716
160@(34@,35f) -= 1.0
34@ += 1
goto @TORENO1_1670

:TORENO1_1716
34@ = 0
224@ = 0
225@ = 1
226@ = 2
227@ = 0
228@ = 0
229@ = 0
230@ = 0
231@ = 0
232@ = 0
233@ = 0
set_var_text_label s$7443[1] = 'DES1_BA'
set_var_text_label s$7443[2] = 'DES1_BB'
set_var_text_label s$7443[3] = 'DES1_BC'
set_var_text_label s$7443[4] = 'DES1_BD'
set_var_text_label s$7443[5] = 'DES1_BE'
set_var_text_label s$7443[6] = 'DES1_BF'
set_var_text_label s$7443[7] = 'DES1_BG'
set_var_text_label s$7443[8] = 'DES1_BH'
set_var_text_label s$7443[9] = 'DES1_CA'
set_var_text_label s$7443[10] = 'DES1_CB'
set_var_text_label s$7443[11] = 'DES1_CC'
set_var_text_label s$7443[12] = 'DES1_CD'
set_var_text_label s$7443[13] = 'DES1_CE'
set_var_text_label s$7443[14] = 'DES1_CF'
set_var_text_label s$7443[15] = 'DES1_CG'
set_var_text_label s$7443[16] = 'DES1_BJ'
set_lvar_int_to_constant 208@ = 5819
set_lvar_int_to_constant 209@ = 5820
set_lvar_int_to_constant 210@ = 5821
set_lvar_int_to_constant 211@ = 5822
set_lvar_int_to_constant 212@ = 5817
set_lvar_int_to_constant 213@ = 5823
set_lvar_int_to_constant 214@ = 5824
set_lvar_int_to_constant 215@ = 5825
set_lvar_int_to_constant 216@ = 5826
set_lvar_int_to_constant 217@ = 5827
set_lvar_int_to_constant 218@ = 5828
set_lvar_int_to_constant 219@ = 5829
set_lvar_int_to_constant 220@ = 5830
set_lvar_int_to_constant 221@ = 5831
set_lvar_int_to_constant 222@ = 5832
set_lvar_int_to_constant 223@ = 5818
set_var_text_label s$z4_pcar_health = 'DES1_45'
set_var_text_label s$7435 = 'DES1_46'
set_var_text_label s$7437 = 'DES1_47'
set_var_text_label s$7439 = 'DES1_48'
set_var_text_label s$7441 = 'DES1_49'
200@ = 260
201@ = 300
202@ = 330
203@ = 360
204@ = 390
205@ = 0
Camera.SetFadingColor(0, 0, 0)
wait 0
Camera.DoFade(1500, Fade.Out)

:TORENO1_2281
if 
  Camera.GetFadingStatus
goto_if_false @TORENO1_2305
wait 0
goto @TORENO1_2281

:TORENO1_2305
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Streaming.RequestModel(444)
Streaming.RequestModel(25)
Streaming.RequestAnimation("GANGS")

:TORENO1_2334
if or
  not Streaming.HasModelLoaded(444)
  not Streaming.HasModelLoaded(25)
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @TORENO1_2374
wait 0
goto @TORENO1_2334

:TORENO1_2374
World.ClearArea(-694.4335, 964.9288, 11.2431, 50.0, True)
80@ = Car.Create(444, -694.4335, 964.9288, 11.2431)
Car.SetHeading(80@, 85.85)
Car.FreezePosition(80@, True)
81@ = Char.Create(PedType.Mission1, 25, -698.2989, 963.026, 11.3035)
Char.SetHeading(81@, 211.0638)
39@ = Car.GetHealth(80@)
Char.SetCoordinates($scplayer, -697.7833, 961.7714, 11.2955)
Char.SetHeading($scplayer, 15.8778)
Camera.SetFixedPosition(-699.15, 961.41, 12.76, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-685.7, 971.97, 13.1, SwitchType.JumpCut)
Hud.DisplayCarNames(False)
Hud.DisplayZoneNames(False)
Camera.DoFade(1500, Fade.In)

:TORENO1_2576
if 
  Camera.GetFadingStatus
goto_if_false @TORENO1_2600
wait 0
goto @TORENO1_2576

:TORENO1_2600
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_2632
Task.LookAtChar($scplayer, 81@, 20000)
Char.ClearTasks(81@)

:TORENO1_2632
224@ = 0
225@ = 1
226@ = 2
227@ = 0
233@ = 0
228@ = 0
skip_cutscene_start_internal @TORENO1_4801

:TORENO1_2681
wait 0
if 
  228@ == 0
goto_if_false @TORENO1_4801
if 
  224@ <> 0
goto_if_false @TORENO1_3068
if 
  227@ == 0
goto_if_false @TORENO1_2767
if 
  Audio.HasMissionAudioLoaded(226@)
goto_if_false @TORENO1_2760
Audio.ClearMissionAudio(226@)

:TORENO1_2760
227@ = 1

:TORENO1_2767
if 
  227@ == 1
goto_if_false @TORENO1_2804
Audio.LoadMissionAudio(225@, 207@(224@,17i))
227@ = 2

:TORENO1_2804
if 
  227@ == 2
goto_if_false @TORENO1_2864
if 
  Audio.HasMissionAudioLoaded(225@)
goto_if_false @TORENO1_2864
Audio.PlayMissionAudio(225@)
Text.PrintNow($7443(224@,17s), 10000, 1)
227@ = 3

:TORENO1_2864
if 
  227@ == 3
goto_if_false @TORENO1_3068
if 
  Audio.HasMissionAudioFinished(225@)
goto_if_false @TORENO1_3007
Text.ClearThisPrint($7443(224@,17s))
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_2928
Char.StopFacialTalk(81@)

:TORENO1_2928
Char.StopFacialTalk($scplayer)
if 
  225@ == 1
goto_if_false @TORENO1_2972
225@ = 2
226@ = 1
goto @TORENO1_2986

:TORENO1_2972
225@ = 1
226@ = 2

:TORENO1_2986
224@ = 0
227@ = 0
goto @TORENO1_3068

:TORENO1_3007
if 
  not Audio.HasMissionAudioLoaded(226@)
goto_if_false @TORENO1_3068
if 
  8 > 224@
goto_if_false @TORENO1_3068
set_lvar_int_to_lvar_int 233@ = 224@
233@ += 1
Audio.LoadMissionAudio(226@, 207@(233@,17i))

:TORENO1_3068
switch_start 229@ {numCases} 9 {hasDefaultCase} 1 {defaultLabel} @TORENO1_4701 {caseNum1} 0 {caseLabel1} @TORENO1_3196 {caseNum2} 1 {caseLabel2} @TORENO1_3312 {caseNum3} 2 {caseLabel3} @TORENO1_3468 {caseNum4} 3 {caseLabel4} @TORENO1_3624 {caseNum5} 4 {caseLabel5} @TORENO1_3780 {caseNum6} 5 {caseLabel6} @TORENO1_4010 {caseNum7} 6 {caseLabel7} @TORENO1_4150
switch_continued 7 {caseLabel1} @TORENO1_4311 {caseNum2} 8 {caseLabel2} @TORENO1_4531 {caseNum3} -1 {caseLabel3} @TORENO1_4794 {caseNum4} -1 {caseLabel4} @TORENO1_4794 {caseNum5} -1 {caseLabel5} @TORENO1_4794 {caseNum6} -1 {caseLabel6} @TORENO1_4794 {caseNum7} -1 {caseLabel7} @TORENO1_4794 {caseNum8} -1 {caseLabel8} @TORENO1_4794 {caseNum9} -1 {caseLabel9} @TORENO1_4794

:TORENO1_3196
if 
  227@ == 0
goto_if_false @TORENO1_3305
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_3286
Char.StopFacialTalk(81@)
Char.StartFacialTalk(81@, 4000)
Task.PlayAnim(81@, "PRTIAL_GNGTLKA", "GANGS", 4.0, False, False, False, False, -1)

:TORENO1_3286
224@ = 1
229@ = 1
232@ = Clock.GetGameTimer()

:TORENO1_3305
goto @TORENO1_4794

:TORENO1_3312
231@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_3461
if 
  227@ == 0
goto_if_false @TORENO1_3461
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_3442
Char.StopFacialTalk(81@)
Char.StartFacialTalk(81@, 4000)
Task.PlayAnim(81@, "PRTIAL_GNGTLKB", "GANGS", 4.0, False, False, False, False, -1)

:TORENO1_3442
224@ = 2
229@ = 2
232@ = Clock.GetGameTimer()

:TORENO1_3461
goto @TORENO1_4794

:TORENO1_3468
231@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_3617
if 
  227@ == 0
goto_if_false @TORENO1_3617
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_3598
Char.StopFacialTalk(81@)
Char.StartFacialTalk(81@, 4000)
Task.PlayAnim(81@, "PRTIAL_GNGTLKF", "GANGS", 4.0, False, False, False, False, -1)

:TORENO1_3598
224@ = 3
229@ = 3
232@ = Clock.GetGameTimer()

:TORENO1_3617
goto @TORENO1_4794

:TORENO1_3624
231@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_3773
if 
  227@ == 0
goto_if_false @TORENO1_3773
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_3754
Char.StopFacialTalk(81@)
Char.StartFacialTalk(81@, 4000)
Task.PlayAnim(81@, "PRTIAL_GNGTLKH", "GANGS", 4.0, False, False, False, False, -1)

:TORENO1_3754
224@ = 4
229@ = 4
232@ = Clock.GetGameTimer()

:TORENO1_3773
goto @TORENO1_4794

:TORENO1_3780
231@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4003
if 
  227@ == 0
goto_if_false @TORENO1_4003
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_3877
Char.StopFacialTalk(81@)
Char.StartFacialTalk($scplayer, 4000)
Char.ClearTasks(81@)
Char.ClearTasks(81@)

:TORENO1_3877
87@ = Sequence.Open()
Task.PlayAnim(-1, "PRTIAL_GNGTLKF", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKD", "GANGS", 4.0, False, False, False, False, -1)
Sequence.Close(87@)
Char.PerformSequence($scplayer, 87@)
Sequence.Clear(87@)
224@ = 5
229@ = 5
232@ = Clock.GetGameTimer()

:TORENO1_4003
goto @TORENO1_4794

:TORENO1_4010
231@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4143
if 
  227@ == 0
goto_if_false @TORENO1_4143
Char.StopFacialTalk($scplayer)
Char.StartFacialTalk($scplayer, 4000)
Task.PlayAnim($scplayer, "PRTIAL_GNGTLKB", "GANGS", 4.0, False, False, False, False, -1)
224@ = 16
229@ = 6
232@ = Clock.GetGameTimer()

:TORENO1_4143
goto @TORENO1_4794

:TORENO1_4150
231@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4304
if 
  227@ == 0
goto_if_false @TORENO1_4304
Char.ClearTasks($scplayer)
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_4285
Char.StopFacialTalk($scplayer)
Char.StartFacialTalk(81@, 4000)
Task.PlayAnim(81@, "PRTIAL_GNGTLKH", "GANGS", 4.0, False, False, False, False, -1)

:TORENO1_4285
224@ = 6
229@ = 7
232@ = Clock.GetGameTimer()

:TORENO1_4304
goto @TORENO1_4794

:TORENO1_4311
231@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4524
if 
  227@ == 0
goto_if_false @TORENO1_4524
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_4505
Char.StopFacialTalk(81@)
Char.StartFacialTalk(81@, 4000)
87@ = Sequence.Open()
Task.PlayAnim(-1, "PRTIAL_GNGTLKE", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKB", "GANGS", 4.0, False, False, False, False, -1)
Sequence.Close(87@)
Char.PerformSequence(81@, 87@)
Sequence.Clear(87@)

:TORENO1_4505
224@ = 7
229@ = 8
232@ = Clock.GetGameTimer()

:TORENO1_4524
goto @TORENO1_4794

:TORENO1_4531
231@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4694
if 
  227@ == 0
goto_if_false @TORENO1_4694
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_4646
Char.ClearTasks(81@)
Task.PlayAnim(81@, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)

:TORENO1_4646
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_4675
Char.StopFacialTalk(81@)
Char.StartFacialTalk(81@, 4000)

:TORENO1_4675
224@ = 8
229@ = 9
232@ = Clock.GetGameTimer()

:TORENO1_4694
goto @TORENO1_4794

:TORENO1_4701
231@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4787
if 
  227@ == 0
goto_if_false @TORENO1_4787
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_4780
Char.StopFacialTalk(81@)

:TORENO1_4780
228@ = 1

:TORENO1_4787
goto @TORENO1_4794

:TORENO1_4794
goto @TORENO1_2681

:TORENO1_4801
skip_cutscene_end 
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_4824
Char.StopFacialTalk(81@)

:TORENO1_4824
Char.StopFacialTalk($scplayer)
Audio.ClearMissionAudio(225@)
Audio.ClearMissionAudio(226@)
Char.ClearTasks($scplayer)
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_4865
Char.ClearTasks(81@)

:TORENO1_4865
Text.ClearPrints
set_lvar_int_to_lvar_int 48@ = 204@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 204@
sub_int_lvar_from_int_lvar 49@ -= 35@
skip_cutscene_start_internal @TORENO1_5013
if 
  49@ > 9
goto_if_false @TORENO1_4967
Text.PrintWith2NumbersNow('DES1_69', 48@, 49@, 4000, TextStyle.Middle)
goto @TORENO1_4989

:TORENO1_4967
Text.PrintWith2NumbersNow('DES1_70', 48@, 49@, 4000, TextStyle.Middle)

:TORENO1_4989
if 
  Text.IsMessageBeingDisplayed
goto_if_false @TORENO1_5013
wait 0
goto @TORENO1_4989

:TORENO1_5013
skip_cutscene_end 
Text.ClearPrints
Camera.DoFade(1000, Fade.Out)

:TORENO1_5024
if 
  Camera.GetFadingStatus
goto_if_false @TORENO1_5048
wait 0
goto @TORENO1_5024

:TORENO1_5048
Char.Delete(81@)
Char.SetCoordinates($scplayer, -691.7533, 960.2396, 11.209)
skip_cutscene_start_internal @TORENO1_5084
Text.UseCommands(True)

:TORENO1_5084
skip_cutscene_end 
Text.ClearPrints
Menu.Delete(206@)
Streaming.RemoveAnimation("GANGS")
Char.ClearLookAt($scplayer)
Camera.RestoreJumpcut
Char.ClearTasks($scplayer)
Text.Print('DES1_10', 10000, 1)
if 
  not Car.IsDead(80@)
goto_if_false @TORENO1_5173
Car.FreezePosition(80@, False)
Char.Delete(81@)
82@ = Blip.AddForCar(80@)
Blip.SetAsFriendly(82@, True)

:TORENO1_5173
Char.SetCoordinates($scplayer, -697.7833, 961.7714, 11.2955)
Char.SetHeading($scplayer, 15.8778)
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Camera.DoFade(1000, Fade.In)

:TORENO1_5216
if 
  Camera.GetFadingStatus
goto_if_false @TORENO1_5240
wait 0
goto @TORENO1_5216

:TORENO1_5240
Player.SetControl($player1, True)

:TORENO1_5247
wait 0
if 
  83@ == 0
goto_if_false @TORENO1_5563
if 
  not Car.IsDead(80@)
goto_if_false @TORENO1_5538
if 
  Char.IsSittingInCar($scplayer, 80@)
goto_if_false @TORENO1_5511
Text.ClearPrints
Blip.Remove(82@)
82@ = Blip.AddForCoord(-719.5559, 980.5707, 11.1371)
Blip.SetCoordAppearance(82@, 2)
199@ = Checkpoint.Create(CheckpointType.TubeArrow, -719.5559, 980.5707, 11.1371, 90@(88@,35f), 125@(88@,35f), 160@(88@,35f), 6.0)
Text.Print('DES1_58', 5000, 1)
38@ = Pad.GetControllerMode()
if 
  2 > 38@
goto_if_false @TORENO1_5443
Text.PrintHelpForever('DES1_59')
goto @TORENO1_5490

:TORENO1_5443
if 
  38@ == 2
goto_if_false @TORENO1_5479
Text.PrintHelpForever('DES1_60')
goto @TORENO1_5490

:TORENO1_5479
Text.PrintHelpForever('DES1_61')

:TORENO1_5490
85@ = 1
83@ = 1
goto @TORENO1_5531

:TORENO1_5511
Text.ClearPrints
Text.ClearHelp
Text.Print('DES1_10', 1000, 1)

:TORENO1_5531
goto @TORENO1_5563

:TORENO1_5538
Text.ClearPrints
Text.Print('DES1_11', 2000, 1)
goto @TORENO1_14438

:TORENO1_5563
if 
  83@ == 1
goto_if_false @TORENO1_6129
if 
  not Car.IsDead(80@)
goto_if_false @TORENO1_6104
if 
  Char.IsSittingInCar($scplayer, 80@)
goto_if_false @TORENO1_6027
if 
  85@ == 0
goto_if_false @TORENO1_5827
Text.ClearPrints
Text.Print('DES1_58', 5000, 1)
Blip.Remove(82@)
82@ = Blip.AddForCoord(-719.5559, 980.5707, 11.1371)
199@ = Checkpoint.Create(CheckpointType.TubeArrow, -719.5559, 980.5707, 11.1371, 90@(88@,35f), 125@(88@,35f), 160@(88@,35f), 6.0)
Blip.SetCoordAppearance(82@, 2)
38@ = Pad.GetControllerMode()
if 
  2 > 38@
goto_if_false @TORENO1_5773
Text.PrintHelpForever('DES1_59')
goto @TORENO1_5820

:TORENO1_5773
if 
  38@ == 2
goto_if_false @TORENO1_5809
Text.PrintHelpForever('DES1_60')
goto @TORENO1_5820

:TORENO1_5809
Text.PrintHelpForever('DES1_61')

:TORENO1_5820
85@ = 1

:TORENO1_5827
if 
  Char.LocateInCar3D($scplayer, -719.5559, 980.5707, 11.1371, 8.0, 8.0, 8.5, False)
goto_if_false @TORENO1_6020
Text.ClearPrints
Sound.AddOneOffSound(-719.5559, 980.5707, 11.1371, ScriptSound.SoundPartMissionComplete)
Blip.Remove(82@)
Checkpoint.Delete(199@)
43@ = Clock.GetGameTimer()
89@ = 1
199@ = Checkpoint.Create(CheckpointType.TubeArrow, 90@(88@,35f), 125@(88@,35f), 160@(88@,35f), 90@(89@,35f), 125@(89@,35f), 160@(89@,35f), 6.0)
82@ = Blip.AddForCoord(90@(88@,35f), 125@(88@,35f), 160@(88@,35f))
Blip.SetCoordAppearance(82@, 2)
86@ = 1
83@ = 2

:TORENO1_6020
goto @TORENO1_6097

:TORENO1_6027
if 
  85@ == 1
goto_if_false @TORENO1_6081
Blip.Remove(82@)
Checkpoint.Delete(199@)
82@ = Blip.AddForCar(80@)
Blip.SetAsFriendly(82@, True)
85@ = 0
Text.ClearHelp
Text.ClearPrints

:TORENO1_6081
Text.Print('DES1_10', 4000, 1)

:TORENO1_6097
goto @TORENO1_6129

:TORENO1_6104
Text.ClearPrints
Text.Print('DES1_11', 2000, 1)
goto @TORENO1_14438

:TORENO1_6129
if 
  83@ == 2
goto_if_false @TORENO1_7669
Hud.DrawRect(58@, 65@, 72@, 79@, 0, 0, 0, 255)
Hud.DrawRect(57@, 64@, 71@, 78@, 180, 180, 180, 255)
Hud.DrawRect(52@, 59@, 66@, 73@, 0, 0, 0, 255)
set_lvar_int_to_lvar_int 37@ = 89@
gosub @TORENO1_14302
Text.SetScale(69@, 76@)
Text.SetCenter(True)
if 
  37@ == 11
goto_if_false @TORENO1_6268
Text.SetProportional(False)

:TORENO1_6268
Text.DisplayWith2Numbers(583.7526, 62@, 'DES1_67', 37@, 36@)
gosub @TORENO1_14302
Text.SetScale(69@, 76@)
44@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 47@ = 44@
sub_int_lvar_from_int_lvar 47@ -= 43@
47@ /= 1000
gosub @TORENO1_14302
if 
  is_int_lvar_greater_than_int_lvar 47@ > 204@
goto_if_false @TORENO1_6375
Text.SetColor(180, 0, 0, 255)

:TORENO1_6375
set_lvar_int_to_lvar_int 48@ = 47@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 47@
sub_int_lvar_from_int_lvar 49@ -= 35@
Text.SetCenter(True)
Text.SetScale(70@, 77@)
if or
  49@ == 11
  48@ == 11
goto_if_false @TORENO1_6462
Text.SetProportional(False)

:TORENO1_6462
if 
  48@ > 99
goto_if_false @TORENO1_6505
Text.ClearPrints
Text.Print('DES1_28', 4000, 1)
goto @TORENO1_14438

:TORENO1_6505
if 
  49@ > 9
goto_if_false @TORENO1_6553
Text.DisplayWith2Numbers(56@, 63@, 'DES1_65', 48@, 49@)
goto @TORENO1_6576

:TORENO1_6553
Text.DisplayWith2Numbers(56@, 63@, 'DES1_66', 48@, 49@)

:TORENO1_6576
if 
  not Car.IsDead(80@)
goto_if_false @TORENO1_7066
if 
  not Char.IsInCar($scplayer, 80@)
goto_if_false @TORENO1_6844
if 
  86@ == 1
goto_if_false @TORENO1_6673
Checkpoint.Delete(199@)
Blip.Remove(82@)
82@ = Blip.AddForCar(80@)
Blip.SetAsFriendly(82@, True)
50@ = Clock.GetGameTimer()
86@ = 0
goto @TORENO1_6837

:TORENO1_6673
51@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 47@ = 51@
sub_int_lvar_from_int_lvar 47@ -= 50@
49@ = 10000
sub_int_lvar_from_int_lvar 49@ -= 47@
49@ /= 1000
if 
  49@ > 0
goto_if_false @TORENO1_6812
Text.ClearPrints
Text.AddNextMessageToPreviousBriefs(False)
if 
  2 > 49@
goto_if_false @TORENO1_6786
Text.PrintWithNumber('DES1_26', 49@, 4000, 1)
goto @TORENO1_6805

:TORENO1_6786
Text.PrintWithNumber('DES1_25', 49@, 4000, 1)

:TORENO1_6805
goto @TORENO1_6837

:TORENO1_6812
Text.ClearPrints
Text.Print('DES1_27', 4000, 1)
goto @TORENO1_14438

:TORENO1_6837
goto @TORENO1_7059

:TORENO1_6844
if 
  86@ == 0
goto_if_false @TORENO1_7059
Blip.Remove(82@)
Text.ClearPrints
Text.Print('DES1_44', 4000, 1)
if 
  is_int_lvar_greater_or_equal_to_int_lvar 195@ >= 89@
goto_if_false @TORENO1_6965
199@ = Checkpoint.Create(CheckpointType.TubeArrow, 90@(88@,35f), 125@(88@,35f), 160@(88@,35f), 90@(89@,35f), 125@(89@,35f), 160@(89@,35f), 6.0)
goto @TORENO1_7019

:TORENO1_6965
199@ = Checkpoint.Create(CheckpointType.TubeEnd, 90@(88@,35f), 125@(88@,35f), 160@(88@,35f), 90@(195@,35f), 125@(195@,35f), 160@(195@,35f), 6.0)

:TORENO1_7019
82@ = Blip.AddForCoord(90@(88@,35f), 125@(88@,35f), 160@(88@,35f))
Blip.SetCoordAppearance(82@, 2)
86@ = 1

:TORENO1_7059
goto @TORENO1_7091

:TORENO1_7066
Text.ClearPrints
Text.Print('DES1_43', 4000, 1)
goto @TORENO1_14438

:TORENO1_7091
if 
  86@ == 1
goto_if_false @TORENO1_7669
if 
  is_int_lvar_greater_than_int_lvar 195@ > 88@
goto_if_false @TORENO1_7543
if 
  Char.LocateInCar3D($scplayer, 90@(88@,35f), 125@(88@,35f), 160@(88@,35f), 8.0, 8.0, 8.0, False)
goto_if_false @TORENO1_7536
Text.ClearHelp
Sound.AddOneOffSound(90@(88@,35f), 125@(88@,35f), 160@(88@,35f), ScriptSound.SoundPartMissionComplete)
Checkpoint.Delete(199@)
Blip.Remove(82@)
88@ += 1
set_lvar_int_to_lvar_int 89@ = 88@
89@ += 1
if 
  is_int_lvar_greater_than_int_lvar 88@ > 195@
goto_if_false @TORENO1_7269
set_lvar_int_to_lvar_int 88@ = 195@

:TORENO1_7269
if 
  is_int_lvar_greater_or_equal_to_int_lvar 195@ >= 89@
goto_if_false @TORENO1_7382
199@ = Checkpoint.Create(CheckpointType.TubeArrow, 90@(88@,35f), 125@(88@,35f), 160@(88@,35f), 90@(89@,35f), 125@(89@,35f), 160@(89@,35f), 6.0)
82@ = Blip.AddForCoord(90@(88@,35f), 125@(88@,35f), 160@(88@,35f))
Blip.SetCoordAppearance(82@, 2)
goto @TORENO1_7469

:TORENO1_7382
199@ = Checkpoint.Create(CheckpointType.TubeEnd, 90@(88@,35f), 125@(88@,35f), 160@(88@,35f), 90@(195@,35f), 125@(195@,35f), 160@(195@,35f), 6.0)
82@ = Blip.AddForCoord(90@(88@,35f), 125@(88@,35f), 160@(88@,35f))
Blip.SetCoordAppearance(82@, 2)

:TORENO1_7469
if 
  not Car.IsDead(80@)
goto_if_false @TORENO1_7536
39@ = Car.GetHealth(80@)
39@ += 200
if 
  39@ > 1000
goto_if_false @TORENO1_7528
39@ = 1000

:TORENO1_7528
Car.SetHealth(80@, 39@)

:TORENO1_7536
goto @TORENO1_7669

:TORENO1_7543
if 
  Char.LocateInCar3D($scplayer, 90@(195@,35f), 125@(195@,35f), 160@(195@,35f), 4.0, 4.0, 8.0, False)
goto_if_false @TORENO1_7669
Checkpoint.Delete(199@)
Blip.Remove(82@)
gosub @TORENO1_7810
if 
  5 > 205@
goto_if_false @TORENO1_7646
goto @TORENO1_14456
goto @TORENO1_7669

:TORENO1_7646
Text.PrintNow('DES1_68', 5000, 1)
goto @TORENO1_14438

:TORENO1_7669
if 
is_ps2_keyboard_key_pressed 86
goto_if_false @TORENO1_7692
43@ -= 1000

:TORENO1_7692
if 
is_ps2_keyboard_key_pressed 40
goto_if_false @TORENO1_7735
196@, 197@, 198@ = Char.GetCoordinates($scplayer)
Char.SetCoordinates($scplayer, 196@, 197@, 198@)

:TORENO1_7735
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @TORENO1_7781
45@ = 360000
43@ = 0
gosub @TORENO1_7810
goto @TORENO1_14456

:TORENO1_7781
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @TORENO1_7803
goto @TORENO1_14456

:TORENO1_7803
goto @TORENO1_5247

:TORENO1_7810
45@ = Clock.GetGameTimer()
Camera.DoFade(1000, Fade.Out)
Streaming.RequestModel(25)
Streaming.RequestAnimation("GANGS")
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)

:TORENO1_7846
if 
  Camera.GetFadingStatus
goto_if_false @TORENO1_7870
wait 0
goto @TORENO1_7846

:TORENO1_7870
if or
  not Streaming.HasModelLoaded(25)
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @TORENO1_7905
wait 0
goto @TORENO1_7870

:TORENO1_7905
World.ClearArea(-684.8021, 948.1096, 11.125, 100.0, True)
if 
  not Car.IsDead(80@)
goto_if_false @TORENO1_7975
Car.SetCoordinates(80@, -680.7953, 953.2972, 11.125)
Car.SetHeading(80@, 238.0439)

:TORENO1_7975
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @TORENO1_8018
Char.WarpFromCarToCoord($scplayer, -684.8021, 948.1096, 11.125)
goto @TORENO1_8038

:TORENO1_8018
Char.SetCoordinates($scplayer, -684.8021, 948.1096, 11.125)

:TORENO1_8038
Char.SetHeading($scplayer, 124.6699)
81@ = Char.Create(PedType.Mission3, 25, -687.6009, 946.4823, 12.0389)
Char.SetHeading(81@, 293.1942)
Camera.SetFixedPosition(-688.32, 945.02, 14.13, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-680.57, 951.17, 10.63, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 46@ = 45@
sub_int_lvar_from_int_lvar 46@ -= 43@
46@ /= 1000
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
Text.ClearPrints
Camera.DoFade(1500, Fade.In)

:TORENO1_8212
if 
  Camera.GetFadingStatus
goto_if_false @TORENO1_8236
wait 0
goto @TORENO1_8212

:TORENO1_8236
if 
  10 > 49@
goto_if_false @TORENO1_8283
Text.PrintWith2NumbersNow('DES1_32', 48@, 49@, 4000, TextStyle.Middle)
goto @TORENO1_8305

:TORENO1_8283
Text.PrintWith2NumbersNow('DES1_33', 48@, 49@, 4000, TextStyle.Middle)

:TORENO1_8305
205@ = 5
34@ = 0

:TORENO1_8319
if 
  5 > 34@
goto_if_false @TORENO1_8381
if 
  is_int_lvar_greater_than_int_lvar 200@(34@,5i) > 46@
goto_if_false @TORENO1_8367
205@ -= 1

:TORENO1_8367
34@ += 1
goto @TORENO1_8319

:TORENO1_8381
switch_start 205@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @TORENO1_12099 {caseNum1} 0 {caseLabel1} @TORENO1_8444 {caseNum2} 1 {caseLabel2} @TORENO1_9175 {caseNum3} 2 {caseLabel3} @TORENO1_9906 {caseNum4} 3 {caseLabel4} @TORENO1_10637 {caseNum5} 4 {caseLabel5} @TORENO1_11368 {caseNum6} -1 {caseLabel6} @TORENO1_12743 {caseNum7} -1 {caseLabel7} @TORENO1_12743

:TORENO1_8444
206@ = Menu.Create('DES1_34', 354.0, 200.0, 80.0, 3, False, True, 0)
Menu.SetColumn(206@, 0, 'DES1_52', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumn(206@, 1, 'DES1_53', 'DES1_50', s$z4_pcar_health, s$7435, s$7437, s$7439, 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumn(206@, 2, 'DES1_54', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
34@ = 0

:TORENO1_8836
if 
  5 > 34@
goto_if_false @TORENO1_8905
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
Menu.SetItemWithNumber(206@, 0, 34@, 'DES1_51', 35@)
34@ += 1
goto @TORENO1_8836

:TORENO1_8905
40@ = 0
34@ = 0

:TORENO1_8919
if 
  5 > 34@
goto_if_false @TORENO1_9168
if 
  34@ == 0
goto_if_false @TORENO1_9008
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
goto @TORENO1_9079

:TORENO1_9008
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
Menu.ActivateItem(206@, 34@, False)
40@ += 1

:TORENO1_9079
if 
  10 > 49@
goto_if_false @TORENO1_9129
Menu.SetItemWith2Numbers(206@, 2, 34@, 'DES1_66', 48@, 49@)
goto @TORENO1_9154

:TORENO1_9129
Menu.SetItemWith2Numbers(206@, 2, 34@, 'DES1_65', 48@, 49@)

:TORENO1_9154
34@ += 1
goto @TORENO1_8919

:TORENO1_9168
goto @TORENO1_12743

:TORENO1_9175
206@ = Menu.Create('DES1_34', 354.0, 200.0, 80.0, 3, False, True, 0)
Menu.SetColumn(206@, 0, 'DES1_52', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumn(206@, 1, 'DES1_53', s$z4_pcar_health, 'DES1_50', s$7435, s$7437, s$7439, 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumn(206@, 2, 'DES1_54', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
34@ = 0

:TORENO1_9567
if 
  5 > 34@
goto_if_false @TORENO1_9636
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
Menu.SetItemWithNumber(206@, 0, 34@, 'DES1_51', 35@)
34@ += 1
goto @TORENO1_9567

:TORENO1_9636
34@ = 0
40@ = 0

:TORENO1_9650
if 
  5 > 34@
goto_if_false @TORENO1_9899
if 
  34@ == 1
goto_if_false @TORENO1_9739
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
goto @TORENO1_9810

:TORENO1_9739
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
Menu.ActivateItem(206@, 34@, False)
40@ += 1

:TORENO1_9810
if 
  10 > 49@
goto_if_false @TORENO1_9860
Menu.SetItemWith2Numbers(206@, 2, 34@, 'DES1_66', 48@, 49@)
goto @TORENO1_9885

:TORENO1_9860
Menu.SetItemWith2Numbers(206@, 2, 34@, 'DES1_65', 48@, 49@)

:TORENO1_9885
34@ += 1
goto @TORENO1_9650

:TORENO1_9899
goto @TORENO1_12743

:TORENO1_9906
206@ = Menu.Create('DES1_34', 354.0, 200.0, 80.0, 3, False, True, 0)
Menu.SetColumn(206@, 0, 'DES1_52', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumn(206@, 1, 'DES1_53', s$z4_pcar_health, s$7435, 'DES1_50', s$7437, s$7439, 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumn(206@, 2, 'DES1_54', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
34@ = 0

:TORENO1_10298
if 
  5 > 34@
goto_if_false @TORENO1_10367
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
Menu.SetItemWithNumber(206@, 0, 34@, 'DES1_51', 35@)
34@ += 1
goto @TORENO1_10298

:TORENO1_10367
40@ = 0
34@ = 0

:TORENO1_10381
if 
  5 > 34@
goto_if_false @TORENO1_10630
if 
  34@ == 2
goto_if_false @TORENO1_10470
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
goto @TORENO1_10541

:TORENO1_10470
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
Menu.ActivateItem(206@, 34@, False)
40@ += 1

:TORENO1_10541
if 
  10 > 49@
goto_if_false @TORENO1_10591
Menu.SetItemWith2Numbers(206@, 2, 34@, 'DES1_66', 48@, 49@)
goto @TORENO1_10616

:TORENO1_10591
Menu.SetItemWith2Numbers(206@, 2, 34@, 'DES1_65', 48@, 49@)

:TORENO1_10616
34@ += 1
goto @TORENO1_10381

:TORENO1_10630
goto @TORENO1_12743

:TORENO1_10637
206@ = Menu.Create('DES1_34', 354.0, 200.0, 80.0, 3, False, True, 0)
Menu.SetColumn(206@, 0, 'DES1_52', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumn(206@, 1, 'DES1_53', s$z4_pcar_health, s$7435, s$7437, 'DES1_50', s$7439, 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumn(206@, 2, 'DES1_54', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
34@ = 0

:TORENO1_11029
if 
  5 > 34@
goto_if_false @TORENO1_11098
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
Menu.SetItemWithNumber(206@, 0, 34@, 'DES1_51', 35@)
34@ += 1
goto @TORENO1_11029

:TORENO1_11098
34@ = 0
40@ = 0

:TORENO1_11112
if 
  5 > 34@
goto_if_false @TORENO1_11361
if 
  34@ == 3
goto_if_false @TORENO1_11201
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
goto @TORENO1_11272

:TORENO1_11201
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
Menu.ActivateItem(206@, 34@, False)
40@ += 1

:TORENO1_11272
if 
  10 > 49@
goto_if_false @TORENO1_11322
Menu.SetItemWith2Numbers(206@, 2, 34@, 'DES1_66', 48@, 49@)
goto @TORENO1_11347

:TORENO1_11322
Menu.SetItemWith2Numbers(206@, 2, 34@, 'DES1_65', 48@, 49@)

:TORENO1_11347
34@ += 1
goto @TORENO1_11112

:TORENO1_11361
goto @TORENO1_12743

:TORENO1_11368
206@ = Menu.Create('DES1_34', 354.0, 200.0, 80.0, 3, False, True, 0)
Menu.SetColumn(206@, 0, 'DES1_52', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumn(206@, 1, 'DES1_53', s$z4_pcar_health, s$7435, s$7437, s$7439, 'DES1_50', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumn(206@, 2, 'DES1_54', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
34@ = 0

:TORENO1_11760
if 
  5 > 34@
goto_if_false @TORENO1_11829
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
Menu.SetItemWithNumber(206@, 0, 34@, 'DES1_51', 35@)
34@ += 1
goto @TORENO1_11760

:TORENO1_11829
34@ = 0
40@ = 0

:TORENO1_11843
if 
  5 > 34@
goto_if_false @TORENO1_12092
if 
  34@ == 4
goto_if_false @TORENO1_11932
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
goto @TORENO1_12003

:TORENO1_11932
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
Menu.ActivateItem(206@, 34@, False)
40@ += 1

:TORENO1_12003
if 
  10 > 49@
goto_if_false @TORENO1_12053
Menu.SetItemWith2Numbers(206@, 2, 34@, 'DES1_66', 48@, 49@)
goto @TORENO1_12078

:TORENO1_12053
Menu.SetItemWith2Numbers(206@, 2, 34@, 'DES1_65', 48@, 49@)

:TORENO1_12078
34@ += 1
goto @TORENO1_11843

:TORENO1_12092
goto @TORENO1_12743

:TORENO1_12099
206@ = Menu.Create('DES1_34', 354.0, 200.0, 80.0, 3, False, True, 0)
Menu.SetColumn(206@, 0, 'DES1_52', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumn(206@, 1, 'DES1_53', s$z4_pcar_health, s$7435, s$7437, s$7439, s$7441, 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumn(206@, 2, 'DES1_54', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
34@ = 0

:TORENO1_12485
if 
  5 > 34@
goto_if_false @TORENO1_12554
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
Menu.SetItemWithNumber(206@, 0, 34@, 'DES1_51', 35@)
34@ += 1
goto @TORENO1_12485

:TORENO1_12554
34@ = 0
40@ = 0

:TORENO1_12568
if 
  5 > 34@
goto_if_false @TORENO1_12736
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
40@ += 1
if 
  10 > 49@
goto_if_false @TORENO1_12697
Menu.SetItemWith2Numbers(206@, 2, 34@, 'DES1_66', 48@, 49@)
goto @TORENO1_12722

:TORENO1_12697
Menu.SetItemWith2Numbers(206@, 2, 34@, 'DES1_65', 48@, 49@)

:TORENO1_12722
34@ += 1
goto @TORENO1_12568

:TORENO1_12736
goto @TORENO1_12743

:TORENO1_12743
if 
  Text.IsMessageBeingDisplayed
goto_if_false @TORENO1_12767
wait 0
goto @TORENO1_12743

:TORENO1_12767
224@ = 0
225@ = 1
226@ = 2
227@ = 0
233@ = 0
228@ = 0
229@ = 0

:TORENO1_12816
wait 0
if 
  228@ == 0
goto_if_false @TORENO1_13641
if 
  224@ <> 0
goto_if_false @TORENO1_13116
if 
  227@ == 0
goto_if_false @TORENO1_12902
if 
  Audio.HasMissionAudioLoaded(226@)
goto_if_false @TORENO1_12895
Audio.ClearMissionAudio(226@)

:TORENO1_12895
227@ = 1

:TORENO1_12902
if 
  227@ == 1
goto_if_false @TORENO1_12939
Audio.LoadMissionAudio(225@, 207@(224@,17i))
227@ = 2

:TORENO1_12939
if 
  227@ == 2
goto_if_false @TORENO1_12999
if 
  Audio.HasMissionAudioLoaded(225@)
goto_if_false @TORENO1_12999
Audio.PlayMissionAudio(225@)
Text.PrintNow($7443(224@,17s), 10000, 1)
227@ = 3

:TORENO1_12999
if 
  227@ == 3
goto_if_false @TORENO1_13116
if 
  Audio.HasMissionAudioFinished(225@)
goto_if_false @TORENO1_13116
Text.ClearThisPrint($7443(224@,17s))
if 
  225@ == 1
goto_if_false @TORENO1_13081
225@ = 2
226@ = 1
goto @TORENO1_13095

:TORENO1_13081
225@ = 1
226@ = 2

:TORENO1_13095
224@ = 0
227@ = 0
228@ = 1

:TORENO1_13116
if 
  229@ == 0
goto_if_false @TORENO1_13634
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_13206
Char.StopFacialTalk(81@)
Char.StartFacialTalk(81@, 4000)
Task.PlayAnim(81@, "PRTIAL_GNGTLKF", "GANGS", 4.0, False, False, False, False, -1)

:TORENO1_13206
switch_start 205@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @TORENO1_13574 {caseNum1} 0 {caseLabel1} @TORENO1_13269 {caseNum2} 1 {caseLabel2} @TORENO1_13330 {caseNum3} 2 {caseLabel3} @TORENO1_13391 {caseNum4} 3 {caseLabel4} @TORENO1_13452 {caseNum5} 4 {caseLabel5} @TORENO1_13513 {caseNum6} -1 {caseLabel6} @TORENO1_13634 {caseNum7} -1 {caseLabel7} @TORENO1_13634

:TORENO1_13269
if 
  227@ == 0
goto_if_false @TORENO1_13301
224@ = 9
229@ = 1

:TORENO1_13301
Text.PrintNow($7443(224@,17s), 10000, 1)
42@ = 5000
goto @TORENO1_13634

:TORENO1_13330
if 
  227@ == 0
goto_if_false @TORENO1_13362
224@ = 15
229@ = 1

:TORENO1_13362
42@ = 4000
Text.PrintNow($7443(224@,17s), 10000, 1)
goto @TORENO1_13634

:TORENO1_13391
if 
  227@ == 0
goto_if_false @TORENO1_13423
224@ = 10
229@ = 1

:TORENO1_13423
42@ = 3000
Text.PrintNow($7443(224@,17s), 10000, 1)
goto @TORENO1_13634

:TORENO1_13452
if 
  227@ == 0
goto_if_false @TORENO1_13484
224@ = 14
229@ = 1

:TORENO1_13484
42@ = 2000
Text.PrintNow($7443(224@,17s), 10000, 1)
goto @TORENO1_13634

:TORENO1_13513
if 
  227@ == 0
goto_if_false @TORENO1_13545
224@ = 11
229@ = 1

:TORENO1_13545
42@ = 1000
Text.PrintNow($7443(224@,17s), 10000, 1)
goto @TORENO1_13634

:TORENO1_13574
if 
  227@ == 0
goto_if_false @TORENO1_13606
224@ = 13
229@ = 1

:TORENO1_13606
42@ = 0
Text.PrintNow($7443(224@,17s), 10000, 1)
goto @TORENO1_13634

:TORENO1_13634
goto @TORENO1_12816

:TORENO1_13641
Menu.Delete(206@)
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_13749
Task.LookAtChar($scplayer, 81@, 4000)
Char.ClearTasks(81@)
87@ = Sequence.Open()
Task.GoStraightToCoord(-1, -688.0, 944.0, 14.0, MoveState.Walk, 20000)
Task.GoStraightToCoord(-1, -688.0, 938.0, 14.0, MoveState.Walk, 3000)
Sequence.Close(87@)
Char.PerformSequence(81@, 87@)
Sequence.Clear(87@)

:TORENO1_13749
Camera.SetFixedPosition(-685.08, 949.38, 12.36, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-688.21, 938.04, 14.72, SwitchType.JumpCut)
Text.ClearPrints
if 
  5 > 205@
goto_if_false @TORENO1_14170
84@ = 0
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_13856
Char.StopFacialTalk(81@)
Char.StartFacialTalk(81@, 4000)

:TORENO1_13856
224@ = 12

:TORENO1_13863
if 
  84@ == 0
goto_if_false @TORENO1_14170
if 
  224@ <> 0
goto_if_false @TORENO1_14159
if 
  227@ == 0
goto_if_false @TORENO1_13945
if 
  Audio.HasMissionAudioLoaded(226@)
goto_if_false @TORENO1_13938
Audio.ClearMissionAudio(226@)

:TORENO1_13938
227@ = 1

:TORENO1_13945
if 
  227@ == 1
goto_if_false @TORENO1_13982
Audio.LoadMissionAudio(225@, 207@(224@,17i))
227@ = 2

:TORENO1_13982
if 
  227@ == 2
goto_if_false @TORENO1_14042
if 
  Audio.HasMissionAudioLoaded(225@)
goto_if_false @TORENO1_14042
Audio.PlayMissionAudio(225@)
Text.PrintNow($7443(224@,17s), 10000, 1)
227@ = 3

:TORENO1_14042
if 
  227@ == 3
goto_if_false @TORENO1_14159
if 
  Audio.HasMissionAudioFinished(225@)
goto_if_false @TORENO1_14159
Text.ClearThisPrint($7443(224@,17s))
if 
  225@ == 1
goto_if_false @TORENO1_14124
225@ = 2
226@ = 1
goto @TORENO1_14138

:TORENO1_14124
225@ = 1
226@ = 2

:TORENO1_14138
224@ = 0
227@ = 0
84@ = 1

:TORENO1_14159
wait 0
goto @TORENO1_13863

:TORENO1_14170
84@ = 0

:TORENO1_14177
if 
  84@ == 0
goto_if_false @TORENO1_14272
if 
  not Char.IsDead(81@)
goto_if_false @TORENO1_14254
41@ = Char.GetScriptTaskStatus(81@, 1560)
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @TORENO1_14247
84@ = 1

:TORENO1_14247
goto @TORENO1_14261

:TORENO1_14254
84@ = 1

:TORENO1_14261
wait 0
goto @TORENO1_14177

:TORENO1_14272
Char.ClearTasks($scplayer)
Char.ClearLookAt($scplayer)
Char.Delete(81@)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
return 

:TORENO1_14302
Text.SetColor(180, 180, 180, 255)
Text.SetScale(0.6146, 2.4961)
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(False)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
Text.SetDropshadow(2, 0, 0, 0, 180)
return 
Text.SetColor(180, 180, 180, 255)
Text.SetScale(0.6146, 2.4961)
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(False)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
Text.SetDropshadow(2, 0, 0, 0, 180)
return 

:TORENO1_14438
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:TORENO1_14456
Text.PrintWithNumberBig('M_PASS', 42@, 5000, TextStyle.Middle)
Player.AddScore($player1, 42@)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.SetInt(StatId.PassedDesert1, 1)
Stat.RegisterMissionPassed('DESERT1')
Stat.PlayerMadeProgress(1)
Blip.Remove($desert_contact_blip)
$flag_desert_mission_counter += 1
return 

:TORENO1_14528
$timer_mobile_start = Clock.GetGameTimer()
Text.UseCommands(False)
Car.MarkAsNoLongerNeeded(80@)
Menu.Delete(206@)
Char.RemoveElegantly(81@)
Char.MarkAsNoLongerNeeded(81@)
Blip.Remove(82@)
Checkpoint.Delete(199@)
Streaming.MarkModelAsNoLongerNeeded(444)
Streaming.MarkModelAsNoLongerNeeded(25)
Streaming.MarkModelAsNoLongerNeeded(348)
Streaming.RemoveAnimation("ON_LOOKERS")
Streaming.RemoveAnimation("GANGS")
World.SetCarDensityMultiplier(1.0)
$onmission = 0
Mission.Finish
return 

//-------------Mission 76---------------
// Originally: Highjack

:TORENO2
script_name 'TORENO2'
gosub @TORENO2_47
if 
  has_deatharrest_been_executed 
goto_if_false @TORENO2_38
gosub @TORENO2_10699

:TORENO2_38
gosub @TORENO2_10789
terminate_this_script 

:TORENO2_47
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('TORENO2')
Text.ClearPrints
wait 0
41@ = 0
42@ = 0
43@ = 0
44@ = 0
75@ = 0
58@ = 0
59@ = 0
60@ = 0
61@ = 0
111@ = 0.0
112@ = 0.0
113@ = 0.0
114@ = 0.0
115@ = 0.0
116@ = 0.0
45@ = 0
46@ = 0
47@ = 0
48@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 0.0
53@ = 0.0
54@ = 0
117@ = 0.0
118@ = 0.0
119@ = 0.0
120@ = 0.0
121@ = 0.0
122@ = 0.0
123@ = 0.0
55@ = 0
56@ = 0
124@ = 0.0
73@ = 0
74@ = 0
75@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
57@ = 0
62@ = 0.0
63@ = 0.0
64@ = 0.0
65@ = 0.0
66@ = 0.0
67@ = 0.0
68@ = 0.0
69@ = 0.0
70@ = 0.0
71@ = 0.0
72@ = 0.0
World.ClearArea(-685.1, 922.0, 10.9, 180.0, True)
World.ClearArea(-692.2, 948.0, 11.2, 100.0, True)
Weather.ForceNow(WeatherType.ExtraSunnyVegas)
Player.MakeGangDisappear
Cutscene.Load('DESERT2')

:TORENO2_646
if 
  not Cutscene.HasLoaded
goto_if_false @TORENO2_670
wait 0
goto @TORENO2_646

:TORENO2_670
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:TORENO2_679
if 
  not Cutscene.HasFinished
goto_if_false @TORENO2_703
wait 0
goto @TORENO2_679

:TORENO2_703
Camera.DoFade(0, Fade.Out)

:TORENO2_709
if 
  Camera.GetFadingStatus
goto_if_false @TORENO2_733
wait 0
goto @TORENO2_709

:TORENO2_733
Cutscene.Clear
Player.SetControl($player1, False)
Player.MakeGangReappear
Weather.Release
Camera.SetFadingColor(0, 0, 0)
wait 0
Streaming.RequestModel(514)
Streaming.RequestModel(461)
Streaming.RequestModel(584)
Streaming.RequestModel(567)
Streaming.RequestAnimation("BIKELEAP")
Streaming.LoadSpecialCharacter(1, 'CESAR')
Path.LoadPathNodesInArea(-1695.1, 587.6, -1771.3, -1310.0)
Group.Remove($Players_Group)
Player.SetGroupRecruitment($player1, False)
Player.SetGroupToFollowAlways($player1, True)
Streaming.LoadAllModelsNow
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Camera.SetFixedPosition(-701.09, 917.26, 12.08, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-694.0, 938.7, 16.69, SwitchType.JumpCut)
CarGenerator.SuppressCarModel(403)
CarGenerator.SuppressCarModel(409)
CarGenerator.SuppressCarModel(413)
CarGenerator.SuppressCarModel(414)
CarGenerator.SuppressCarModel(418)
CarGenerator.SuppressCarModel(423)
CarGenerator.SuppressCarModel(428)
CarGenerator.SuppressCarModel(431)
CarGenerator.SuppressCarModel(437)
CarGenerator.SuppressCarModel(440)
CarGenerator.SuppressCarModel(455)
CarGenerator.SuppressCarModel(456)
CarGenerator.SuppressCarModel(458)
CarGenerator.SuppressCarModel(482)
CarGenerator.SuppressCarModel(483)
CarGenerator.SuppressCarModel(489)
CarGenerator.SuppressCarModel(498)
CarGenerator.SuppressCarModel(499)
CarGenerator.SuppressCarModel(508)
CarGenerator.SuppressCarModel(524)
CarGenerator.SuppressCarModel(525)
CarGenerator.SuppressCarModel(527)
CarGenerator.SuppressCarModel(552)
CarGenerator.SuppressCarModel(582)
CarGenerator.SuppressCarModel(588)
CarGenerator.SuppressCarModel(461)
CarGenerator.SuppressCarModel(462)
CarGenerator.SuppressCarModel(463)
CarGenerator.SuppressCarModel(468)
CarGenerator.SuppressCarModel(509)
CarGenerator.SuppressCarModel(510)
CarGenerator.SuppressCarModel(521)
CarGenerator.SuppressCarModel(522)
CarGenerator.SuppressCarModel(581)
CarGenerator.SuppressCarModel(586)
World.ClearArea(-693.6, 924.5, 11.3, 1.0, True)
Char.SetCoordinates($scplayer, -693.6, 924.5, 11.3)
Char.SetHeading($scplayer, 71.2)
World.ClearArea(-685.1, 922.0, 10.9, 180.0, True)
World.ClearArea(-692.2, 948.0, 11.2, 100.0, True)
Car.CustomPlateForNextCar(461, "PREACHER")
36@ = Car.Create(461, -712.5, 943.5, 10.8)
Car.SetHeading(36@, 32.7)
World.ClearArea(-709.0, 952.0, 11.2, 5.0, True)
Car.CustomPlateForNextCar(567, "_LVA4L__")
39@ = Car.Create(567, -709.0, 952.0, 11.2)
Car.SetHeading(39@, 240.7)
Car.ChangeColor(39@, 3, 3)
$cesar = Char.Create(PedType.Mission1, 290, -703.7, 932.4, 11.4)
Char.SetGetOutUpsideDownCar($cesar, False)
Char.SetHeading($cesar, 214.6)
Char.SetNeverTargeted($cesar, True)
Char.SetOnlyDamagedByPlayer($cesar, True)
Char.SetCantBeDraggedOut($cesar, True)
126@ = DecisionMakerChar.Copy(65542)
Char.SetDecisionMaker($cesar, 126@)
Char.SetNextDesiredMoveState(MoveState.Walk)
125@ = Sequence.Open()
Task.GotoCharOffset(-1, $scplayer, 10000, 3.0, 0.0)
Task.Pause(-1, 5300)
Task.GoStraightToCoord(-1, -710.0, 938.4, 11.4, MoveState.Walk, -1)
Sequence.Close(125@)
Char.PerformSequence($cesar, 125@)
Sequence.Clear(125@)
Char.SetNextDesiredMoveState(MoveState.Walk)
125@ = Sequence.Open()
Task.GotoCharOffset(-1, $cesar, 10000, 5.0, 0.0)
Task.Pause(-1, 5000)
Task.GoStraightToCoord(-1, -708.0, 937.9, 11.4, MoveState.Walk, -1)
Sequence.Close(125@)
Char.PerformSequence($scplayer, 125@)
Sequence.Clear(125@)
Game.ShutAllCharsUp(True)
43@ = 1
skip_cutscene_start_internal @TORENO2_1802
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 34000)

:TORENO2_1578
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @TORENO2_1604
wait 0
goto @TORENO2_1578

:TORENO2_1604
TIMERB = 0
Camera.DoFade(500, Fade.In)

:TORENO2_1618
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @TORENO2_1644
goto @TORENO2_10717

:TORENO2_1644
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_1676
goto @TORENO2_10699

:TORENO2_1676
if 
  41@ == 0
goto_if_false @TORENO2_2184
if 
  42@ == 0
goto_if_false @TORENO2_1759
if 
  TIMERB > 1000
goto_if_false @TORENO2_1759
73@ = 1
74@ = 0
gosub @TORENO2_15179
42@ = 1

:TORENO2_1759
if 
  42@ == 1
goto_if_false @TORENO2_2184
if 
  73@ == 0
goto_if_false @TORENO2_2184
43@ = 0

:TORENO2_1802
skip_cutscene_end 
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_1836
goto @TORENO2_10699

:TORENO2_1836
if 
  43@ == 1
goto_if_false @TORENO2_1934
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
73@ = 0
Camera.DoFade(500, Fade.Out)

:TORENO2_1878
if 
  Camera.GetFadingStatus
goto_if_false @TORENO2_1902
wait 0
goto @TORENO2_1878

:TORENO2_1902
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_1934
goto @TORENO2_10699

:TORENO2_1934
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -710.0, 938.4, 11.4)
Char.SetHeading($scplayer, 47.9)
Char.ClearTasksImmediately($cesar)
Char.SetCoordinates($cesar, -708.0, 937.9, 11.4)
Char.SetHeading($cesar, 47.9)
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $cesar)
46@ = 1
Player.SetGroupRecruitment($player1, False)
Group.SetDefaultTaskAllocator($Players_Group, DefaultTaskAllocator.FollowLimited)
40@ = Blip.AddForCar(36@)
Blip.SetAsFriendly(40@, True)
Text.PrintNow('TOR1_01', 7000, 1)
Game.ShutAllCharsUp(False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
if 
  43@ == 1
goto_if_false @TORENO2_2170
Camera.DoFade(500, Fade.In)

:TORENO2_2114
if 
  Camera.GetFadingStatus
goto_if_false @TORENO2_2138
wait 0
goto @TORENO2_2114

:TORENO2_2138
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_2170
goto @TORENO2_10699

:TORENO2_2170
42@ = 0
41@ = 1

:TORENO2_2184
if 
  41@ == 1
goto_if_false @TORENO2_2488
if 
  42@ == 0
goto_if_false @TORENO2_2474
if 
  46@ == 1
goto_if_false @TORENO2_2474
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @TORENO2_2474
34@ = Car.Create(514, -1687.8, 537.7, 36.8)
Car.SetHeading(34@, 137.0)
37@ = Car.Create(584, -1679.5, 545.9, 36.9)
Car.SetHeading(37@, 137.0)
Trailer.AttachToCab(37@, 34@)
Car.SetCanBurstTires(34@, False)
Car.LockDoors(34@, CarLock.LockoutPlayerOnly)
35@ = Char.CreateRandomAsDriver(34@)
Car.SetOnlyDamagedByPlayer(34@, True)
Char.SetCanBeShotInVehicle(35@, False)
Car.SetCruiseSpeed(34@, 0.0)
Car.SetDrivingStyle(34@, DrivingMode.AvoidCars)
Car.SetStayInSlowLane(34@, True)
Car.MarkAsNoLongerNeeded(39@)
Streaming.MarkModelAsNoLongerNeeded(567)
Text.ClearPrints
Char.ShutUpForScriptedSpeech($cesar, True)
73@ = 2
74@ = 0
gosub @TORENO2_15179
Blip.Remove(40@)
if 
  not Car.IsDead(34@)
goto_if_false @TORENO2_2460
40@ = Blip.AddForCar(34@)

:TORENO2_2460
75@ = 0
41@ = 2

:TORENO2_2474
gosub @TORENO2_11834
gosub @TORENO2_11514

:TORENO2_2488
if 
  41@ == 2
goto_if_false @TORENO2_5719
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @TORENO2_2600
if 
  Char.IsInAnyCar($cesar)
goto_if_false @TORENO2_2600
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @TORENO2_2600
Streaming.LoadScene(-1641.0, 586.5, 38.5)
Char.SetCoordinates($scplayer, -1641.0, 586.5, 38.5)
Car.SetHeading(36@, 136.9)

:TORENO2_2600
if 
  75@ == 0
goto_if_false @TORENO2_2659
if 
  73@ == 0
goto_if_false @TORENO2_2659
Text.PrintNow('TOR1_04', 7000, 1)
75@ = 1

:TORENO2_2659
if 
  75@ == 1
goto_if_false @TORENO2_3142
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @TORENO2_3142
if 
  Char.IsInCar($cesar, 36@)
goto_if_false @TORENO2_3142
if 
  Char.IsInAngledArea3D($scplayer, -1042.5, 1016.4, 15.3, -810.5, 1300.7, 50.0, 250.0, False)
goto_if_false @TORENO2_2839
if 
  105@ == 0
goto_if_false @TORENO2_2832
if 
  73@ == 0
goto_if_false @TORENO2_2832
73@ = 3
74@ = 0
gosub @TORENO2_15179
105@ = 1

:TORENO2_2832
goto @TORENO2_2846

:TORENO2_2839
105@ = 0

:TORENO2_2846
if 
  Char.IsInAngledArea3D($scplayer, -881.0, 1029.0, 50.9, -970.2, 955.7, 33.0, -20.0, False)
goto_if_false @TORENO2_2987
if 
  106@ == 0
goto_if_false @TORENO2_2980
if 
  73@ == 0
goto_if_false @TORENO2_2980
73@ = 4
74@ = Math.RandomIntInRange(0, 3)
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179
106@ = 1

:TORENO2_2980
goto @TORENO2_2994

:TORENO2_2987
106@ = 0

:TORENO2_2994
if 
  Char.IsInAngledArea3D($scplayer, -774.9, 1445.6, 10.0, -1187.0, 1275.6, 50.0, -250.0, False)
goto_if_false @TORENO2_3135
if 
  107@ == 0
goto_if_false @TORENO2_3128
if 
  73@ == 0
goto_if_false @TORENO2_3128
73@ = 5
74@ = Math.RandomIntInRange(0, 3)
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179
107@ = 1

:TORENO2_3128
goto @TORENO2_3142

:TORENO2_3135
107@ = 0

:TORENO2_3142
if 
  2 > 75@
goto_if_false @TORENO2_3266
if 
  Char.IsInAngledArea3D($scplayer, -1143.8, 1041.0, 50.9, -1393.7, 797.3, 33.0, -60.0, False)
goto_if_false @TORENO2_3266
if 
  73@ == 0
goto_if_false @TORENO2_3266
73@ = 6
74@ = 1
108@ = 6
gosub @TORENO2_15179
75@ = 3

:TORENO2_3266
if 
  75@ == 3
goto_if_false @TORENO2_3413
if 
  73@ == 0
goto_if_false @TORENO2_3413
if 
  Char.LocateInCarCar2D($scplayer, 34@, 180.0, 180.0, False)
goto_if_false @TORENO2_3413
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @TORENO2_3413
if 
  Char.IsInCar($cesar, 36@)
goto_if_false @TORENO2_3413
Char.ShutUpForScriptedSpeech($scplayer, True)
73@ = 6
74@ = 0
108@ = 1
gosub @TORENO2_15179
75@ = 4

:TORENO2_3413
if 
  75@ == 4
goto_if_false @TORENO2_3463
if 
  73@ == 0
goto_if_false @TORENO2_3463
Char.ShutUpForScriptedSpeech($scplayer, False)
75@ = 5

:TORENO2_3463
if 
  42@ == 0
goto_if_false @TORENO2_3618
if 
  Char.LocateInCarCar2D($scplayer, 34@, 180.0, 180.0, False)
goto_if_false @TORENO2_3608
Car.SetForwardSpeed(34@, 35.0)
if 
  not Char.IsDead(35@)
goto_if_false @TORENO2_3594
125@ = Sequence.Open()
Task.CarDriveToCoord(-1, 34@, -1914.6, -1187.7, 30.0, 15.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Sequence.Close(125@)
Char.PerformSequence(35@, 125@)
Sequence.Clear(125@)

:TORENO2_3594
42@ = 1
goto @TORENO2_3618

:TORENO2_3608
Car.SetHeading(34@, 137.0)

:TORENO2_3618
if 
  42@ == 1
goto_if_false @TORENO2_3724
if 
  Char.LocateInCarCar3D($scplayer, 34@, 20.0, 20.0, 20.0, False)
goto_if_false @TORENO2_3724
if 
  Char.IsInCar($cesar, 36@)
goto_if_false @TORENO2_3724
Text.PrintNow('TOR1_10', 11000, 1)
Car.SetCruiseSpeed(34@, 37.0)
42@ = 2

:TORENO2_3724
if 
  42@ == 2
goto_if_false @TORENO2_5684
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @TORENO2_5684
if 
  Char.IsInCar($cesar, 36@)
goto_if_false @TORENO2_5684
111@, 112@, 113@ = Car.GetOffsetInWorldCoords(34@, -3.0, 4.0, 10.0)
114@, 115@, 116@ = Car.GetOffsetInWorldCoords(34@, -3.0, 0.0, -10.0)
if 
  Char.IsInAngledAreaInCar3D($scplayer, 111@, 112@, 113@, 114@, 115@, 116@, 3.0, False)
goto_if_false @TORENO2_4180
if 
  47@ == 0
goto_if_false @TORENO2_3968
Task.PlayAnim($cesar, "BK_RDY_IN", "BIKELEAP", 4.0, False, False, False, True, -1)
51@ = 2
Text.PrintNow('HOLD_1', 7000, 1)
47@ = 1

:TORENO2_3968
if 
  47@ == 1
goto_if_false @TORENO2_4173
if 
  61@ == 0
goto_if_false @TORENO2_4023
60@ = Clock.GetGameTimer()
61@ = 1
goto @TORENO2_4173

:TORENO2_4023
59@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 58@ = 59@
sub_int_lvar_from_int_lvar 58@ -= 60@
if 
  58@ > 3500
goto_if_false @TORENO2_4129
Player.SetControl($player1, False)
Car.AttachToCar(36@, 34@, -2.692, 2.484, -1.0, 0.0, 0.0, 0.0)
42@ = 0
54@ = 0
41@ = 3

:TORENO2_4129
if 
  54@ == 0
goto_if_false @TORENO2_4173
if 
  58@ > 1000
goto_if_false @TORENO2_4173
54@ = 1

:TORENO2_4173
goto @TORENO2_4205

:TORENO2_4180
Text.ClearThisPrint('HOLD_1')
61@ = 0
47@ = 0

:TORENO2_4205
111@, 112@, 113@ = Car.GetOffsetInWorldCoords(34@, -3.0, 12.0, 10.0)
114@, 115@, 116@ = Car.GetOffsetInWorldCoords(34@, -3.0, 4.0, -10.0)
if 
  Char.IsInAngledAreaInCar3D($scplayer, 111@, 112@, 113@, 114@, 115@, 116@, 3.0, False)
goto_if_false @TORENO2_4655
if 
  48@ == 0
goto_if_false @TORENO2_4648
if 
  51@ == 0
goto_if_false @TORENO2_4518
if 
  Char.IsPlayingAnim($cesar, "BK_BLNCE_IN")
goto_if_false @TORENO2_4468
52@ = Char.GetAnimCurrentTime($cesar, "BK_BLNCE_IN")
if 
  52@ == 1.0
goto_if_false @TORENO2_4461
Task.PlayAnim($cesar, "BK_BLNCE_IN", "BIKELEAP", 4.0, False, False, False, True, -1)
51@ = 1

:TORENO2_4461
goto @TORENO2_4518

:TORENO2_4468
Task.PlayAnim($cesar, "BK_BLNCE_IN", "BIKELEAP", 4.0, False, False, False, True, -1)
51@ = 1

:TORENO2_4518
if 
  51@ == 2
goto_if_false @TORENO2_4585
Task.PlayAnim($cesar, "BK_RDY_OUT", "BIKELEAP", 4.0, False, False, False, False, -1)
51@ = 1

:TORENO2_4585
if 
  73@ == 0
goto_if_false @TORENO2_4641
73@ = 10
74@ = Math.RandomIntInRange(0, 3)
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179

:TORENO2_4641
48@ = 1

:TORENO2_4648
goto @TORENO2_4662

:TORENO2_4655
48@ = 0

:TORENO2_4662
111@, 112@, 113@ = Car.GetOffsetInWorldCoords(34@, -6.0, 8.0, 10.0)
114@, 115@, 116@ = Car.GetOffsetInWorldCoords(34@, -6.0, -8.0, -10.0)
if 
  Char.IsInAngledAreaInCar3D($scplayer, 111@, 112@, 113@, 114@, 115@, 116@, 3.0, False)
goto_if_false @TORENO2_5112
if 
  49@ == 0
goto_if_false @TORENO2_5105
if 
  51@ == 0
goto_if_false @TORENO2_4975
if 
  Char.IsPlayingAnim($cesar, "BK_BLNCE_IN")
goto_if_false @TORENO2_4925
52@ = Char.GetAnimCurrentTime($cesar, "BK_BLNCE_IN")
if 
  52@ == 1.0
goto_if_false @TORENO2_4918
Task.PlayAnim($cesar, "BK_BLNCE_IN", "BIKELEAP", 4.0, False, False, False, True, -1)
51@ = 1

:TORENO2_4918
goto @TORENO2_4975

:TORENO2_4925
Task.PlayAnim($cesar, "BK_BLNCE_IN", "BIKELEAP", 4.0, False, False, False, True, -1)
51@ = 1

:TORENO2_4975
if 
  51@ == 2
goto_if_false @TORENO2_5042
Task.PlayAnim($cesar, "BK_RDY_OUT", "BIKELEAP", 4.0, False, False, False, False, -1)
51@ = 1

:TORENO2_5042
if 
  73@ == 0
goto_if_false @TORENO2_5098
73@ = 7
74@ = Math.RandomIntInRange(0, 3)
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179

:TORENO2_5098
49@ = 1

:TORENO2_5105
goto @TORENO2_5119

:TORENO2_5112
49@ = 0

:TORENO2_5119
111@, 112@, 113@ = Car.GetOffsetInWorldCoords(34@, -3.0, 0.0, 10.0)
114@, 115@, 116@ = Car.GetOffsetInWorldCoords(34@, -3.0, -8.0, -10.0)
if 
  Char.IsInAngledAreaInCar3D($scplayer, 111@, 112@, 113@, 114@, 115@, 116@, 3.0, False)
goto_if_false @TORENO2_5569
if 
  50@ == 0
goto_if_false @TORENO2_5562
if 
  51@ == 0
goto_if_false @TORENO2_5432
if 
  Char.IsPlayingAnim($cesar, "BK_BLNCE_IN")
goto_if_false @TORENO2_5382
52@ = Char.GetAnimCurrentTime($cesar, "BK_BLNCE_IN")
if 
  52@ == 1.0
goto_if_false @TORENO2_5375
Task.PlayAnim($cesar, "BK_BLNCE_IN", "BIKELEAP", 4.0, False, False, False, True, -1)
51@ = 1

:TORENO2_5375
goto @TORENO2_5432

:TORENO2_5382
Task.PlayAnim($cesar, "BK_BLNCE_IN", "BIKELEAP", 4.0, False, False, False, True, -1)
51@ = 1

:TORENO2_5432
if 
  51@ == 2
goto_if_false @TORENO2_5499
Task.PlayAnim($cesar, "BK_RDY_OUT", "BIKELEAP", 4.0, False, False, False, False, -1)
51@ = 1

:TORENO2_5499
if 
  73@ == 0
goto_if_false @TORENO2_5555
73@ = 9
74@ = Math.RandomIntInRange(0, 3)
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179

:TORENO2_5555
50@ = 1

:TORENO2_5562
goto @TORENO2_5576

:TORENO2_5569
50@ = 0

:TORENO2_5576
if and
  47@ == 0
  48@ == 0
  49@ == 0
  50@ == 0
goto_if_false @TORENO2_5684
if 
  51@ > 0
goto_if_false @TORENO2_5684
Task.PlayAnim($cesar, "BK_BLNCE_OUT", "BIKELEAP", 4.0, False, False, False, False, -1)
51@ = 0

:TORENO2_5684
gosub @TORENO2_12037
gosub @TORENO2_11514
gosub @TORENO2_11834
gosub @TORENO2_12106
gosub @TORENO2_12230

:TORENO2_5719
if 
  41@ == 3
goto_if_false @TORENO2_8121
if 
  42@ == 0
goto_if_false @TORENO2_5805
Char.RemoveFromGroup($cesar)
Task.PlayAnim($cesar, "BK_JMP", "BIKELEAP", 4.0, False, False, False, True, -1)
42@ = 1

:TORENO2_5805
if 
  42@ == 1
goto_if_false @TORENO2_5891
if 
  Char.IsPlayingAnim($cesar, "BK_JMP")
goto_if_false @TORENO2_5891
52@ = Char.GetAnimCurrentTime($cesar, "BK_JMP")
if 
  52@ == 1.0
goto_if_false @TORENO2_5891
42@ = 2

:TORENO2_5891
if 
  42@ == 2
goto_if_false @TORENO2_6060
if 
  not Car.IsDead(36@)
goto_if_false @TORENO2_5933
Char.RemoveFromCarMaintainPosition($cesar, 36@)

:TORENO2_5933
Char.AttachToCar($cesar, 34@, -1.0, 0.0, 0.0, 3, 360.0, WeaponType.Unarmed)
Task.PlayAnim($cesar, "TRUCK_GETIN", "BIKELEAP", 1000.0, False, False, False, True, -1)
if 
  not Car.IsDead(36@)
goto_if_false @TORENO2_6046
Car.Detach(36@, 0.0, 0.0, 0.0, False)

:TORENO2_6046
Player.SetControl($player1, True)
42@ = 3

:TORENO2_6060
if 
  42@ > 3
goto_if_false @TORENO2_6094
53@ = Car.GetHeading(34@)
Char.SetHeading($cesar, 53@)

:TORENO2_6094
if 
  42@ == 3
goto_if_false @TORENO2_6197
if 
  Char.IsPlayingAnim($cesar, "TRUCK_GETIN")
goto_if_false @TORENO2_6197
52@ = Char.GetAnimCurrentTime($cesar, "TRUCK_GETIN")
if 
  52@ > 0.41
goto_if_false @TORENO2_6197
56@ = 1
42@ = 4

:TORENO2_6197
if 
  42@ == 4
goto_if_false @TORENO2_6360
if 
  Char.IsPlayingAnim($cesar, "TRUCK_GETIN")
goto_if_false @TORENO2_6360
52@ = Char.GetAnimCurrentTime($cesar, "TRUCK_GETIN")
if 
  52@ > 0.66
goto_if_false @TORENO2_6360
if 
  not Char.IsDead(35@)
goto_if_false @TORENO2_6360
Task.PlayAnim(35@, "TRUCK_DRIVER", "BIKELEAP", 4.0, False, False, False, True, -1)
54@ = 1
42@ = 5

:TORENO2_6360
if 
  42@ == 5
goto_if_false @TORENO2_6595
if 
  Char.IsPlayingAnim($cesar, "TRUCK_GETIN")
goto_if_false @TORENO2_6595
52@ = Char.GetAnimCurrentTime($cesar, "TRUCK_GETIN")
if 
  52@ == 1.0
goto_if_false @TORENO2_6595
if 
  not Char.IsDead(35@)
goto_if_false @TORENO2_6542
Char.WarpFromCarToCoord(35@, 0.0, 0.0, 0.0)
Char.WarpIntoCarAsPassenger(35@, 34@, -1)
Task.PlayAnim(35@, "STRUGGLE_DRIVER", "BIKELEAP", 1000.0, True, False, False, True, -1)

:TORENO2_6542
Task.PlayAnim($cesar, "STRUGGLE_CESAR", "BIKELEAP", 1000.0, True, False, False, True, -1)
42@ = 6

:TORENO2_6595
if 
  42@ == 6
goto_if_false @TORENO2_6694
if 
  54@ == 16
goto_if_false @TORENO2_6694
if 
  not Char.IsDead(35@)
goto_if_false @TORENO2_6694
Char.ClearTasks($cesar)
Char.ClearTasks(35@)
125@ = Sequence.Open()
Task.LeaveCarImmediately(-1, 34@)
Sequence.Close(125@)
Char.PerformSequence(35@, 125@)
Sequence.Clear(125@)
42@ = 8

:TORENO2_6694
if 
  42@ == 8
goto_if_false @TORENO2_6886
if 
  not Char.IsDead(35@)
goto_if_false @TORENO2_6886
if 
  not Char.IsInAnyCar(35@)
goto_if_false @TORENO2_6886
Car.SetTempAction(34@, TempAction.None, -1)
Car.SetOnlyDamagedByPlayer(34@, False)
Task.Dead(35@)
Char.DetachFromCar($cesar)
Char.WarpIntoCarAsPassenger($cesar, 34@, -1)
45@ = 1
Car.LockDoors(34@, CarLock.Unlocked)
Streaming.MarkModelAsNoLongerNeeded(461)
Streaming.RemoveAnimation("BIKELEAP")
Path.ReleaseNodes
Text.ClearPrints
Blip.Remove(40@)
40@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(40@, True)
Char.ShutUpForScriptedSpeech($cesar, False)
Text.PrintNow('TOR1_11', 4000, 1)
42@ = 0
73@ = 0
75@ = 0
41@ = 4

:TORENO2_6886
if 
  54@ == 1
goto_if_false @TORENO2_6945
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetTempAction(34@, TempAction.TurnLeft, 200)
Car.SetCruiseSpeed(34@, 35.0)
TIMERA = 0
54@ = 2

:TORENO2_6945
if 
  54@ == 2
goto_if_false @TORENO2_7023
if 
  TIMERA > 200
goto_if_false @TORENO2_7023
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetTempAction(34@, TempAction.GoForward, 300)
Car.SetCruiseSpeed(34@, 35.0)
TIMERA = 0
54@ = 3

:TORENO2_7023
if 
  54@ == 3
goto_if_false @TORENO2_7101
if 
  TIMERA > 300
goto_if_false @TORENO2_7101
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetTempAction(34@, TempAction.TurnRight, 200)
Car.SetCruiseSpeed(34@, 35.0)
TIMERA = 0
54@ = 4

:TORENO2_7101
if 
  54@ == 4
goto_if_false @TORENO2_7179
if 
  TIMERA > 200
goto_if_false @TORENO2_7179
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetTempAction(34@, TempAction.GoForward, 500)
Car.SetCruiseSpeed(34@, 35.0)
TIMERA = 0
54@ = 5

:TORENO2_7179
if 
  54@ == 5
goto_if_false @TORENO2_7257
if 
  TIMERA > 500
goto_if_false @TORENO2_7257
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetTempAction(34@, TempAction.TurnLeft, 500)
Car.SetCruiseSpeed(34@, 35.0)
TIMERA = 0
54@ = 6

:TORENO2_7257
if 
  54@ == 6
goto_if_false @TORENO2_7335
if 
  TIMERA > 500
goto_if_false @TORENO2_7335
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetTempAction(34@, TempAction.GoForward, 1000)
Car.SetCruiseSpeed(34@, 35.0)
TIMERA = 0
54@ = 7

:TORENO2_7335
if 
  54@ == 7
goto_if_false @TORENO2_7413
if 
  TIMERA > 1000
goto_if_false @TORENO2_7413
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetTempAction(34@, TempAction.TurnRight, 500)
Car.SetCruiseSpeed(34@, 35.0)
TIMERA = 0
54@ = 8

:TORENO2_7413
if 
  54@ == 8
goto_if_false @TORENO2_7491
if 
  TIMERA > 500
goto_if_false @TORENO2_7491
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetTempAction(34@, TempAction.GoForward, 1000)
Car.SetCruiseSpeed(34@, 35.0)
TIMERA = 0
54@ = 9

:TORENO2_7491
if 
  54@ == 9
goto_if_false @TORENO2_7569
if 
  TIMERA > 1000
goto_if_false @TORENO2_7569
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetTempAction(34@, TempAction.TurnLeft, 500)
Car.SetCruiseSpeed(34@, 35.0)
TIMERA = 0
54@ = 10

:TORENO2_7569
if 
  54@ == 10
goto_if_false @TORENO2_7647
if 
  TIMERA > 500
goto_if_false @TORENO2_7647
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetTempAction(34@, TempAction.GoForward, 1000)
Car.SetCruiseSpeed(34@, 35.0)
TIMERA = 0
54@ = 11

:TORENO2_7647
if 
  54@ == 11
goto_if_false @TORENO2_7725
if 
  TIMERA > 1000
goto_if_false @TORENO2_7725
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetTempAction(34@, TempAction.TurnRight, 500)
Car.SetCruiseSpeed(34@, 35.0)
TIMERA = 0
54@ = 12

:TORENO2_7725
if 
  54@ == 12
goto_if_false @TORENO2_7803
if 
  TIMERA > 500
goto_if_false @TORENO2_7803
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetTempAction(34@, TempAction.GoForward, 1000)
Car.SetCruiseSpeed(34@, 35.0)
TIMERA = 0
54@ = 13

:TORENO2_7803
if 
  54@ == 13
goto_if_false @TORENO2_7881
if 
  TIMERA > 1000
goto_if_false @TORENO2_7881
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetTempAction(34@, TempAction.TurnLeft, 500)
Car.SetCruiseSpeed(34@, 35.0)
TIMERA = 0
54@ = 14

:TORENO2_7881
if 
  54@ == 14
goto_if_false @TORENO2_7959
if 
  TIMERA > 500
goto_if_false @TORENO2_7959
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetTempAction(34@, TempAction.GoForward, 1000)
Car.SetCruiseSpeed(34@, 35.0)
TIMERA = 0
54@ = 15

:TORENO2_7959
if 
  54@ == 15
goto_if_false @TORENO2_8037
if 
  TIMERA > 1000
goto_if_false @TORENO2_8037
Car.SetStatus(34@, EntityStatus.Physics)
Car.SetTempAction(34@, TempAction.HandbrakeStraight, 1000)
Car.SetCruiseSpeed(34@, 35.0)
TIMERA = 0
54@ = 16

:TORENO2_8037
if 
  56@ == 1
goto_if_false @TORENO2_8107
if 
  not Car.IsDoorFullyOpen(34@, CarDoor.LeftFrontDoor)
goto_if_false @TORENO2_8100
124@ += 0.1
Car.OpenDoorABit(34@, CarDoor.LeftFrontDoor, 124@)
goto @TORENO2_8107

:TORENO2_8100
56@ = 2

:TORENO2_8107
gosub @TORENO2_12230
gosub @TORENO2_12037

:TORENO2_8121
if 
  41@ == 4
goto_if_false @TORENO2_8619
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @TORENO2_8200
if 
  Char.IsInAnyCar($cesar)
goto_if_false @TORENO2_8200
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @TORENO2_8200
42@ = 0
41@ = 5

:TORENO2_8200
if 
  42@ == 0
goto_if_false @TORENO2_8379
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @TORENO2_8379
if 
  Trailer.IsAttachedToCab(37@, 34@)
goto_if_false @TORENO2_8311
Blip.Remove(40@)
40@ = Blip.AddForCoord(-2016.5, 157.7, 26.7)
Text.Print('TOR1_06', 7000, 1)
55@ = 1
goto @TORENO2_8354

:TORENO2_8311
Blip.Remove(40@)
40@ = Blip.AddForCar(37@)
Blip.SetAsFriendly(40@, True)
Text.Print('TOR1_21', 7000, 1)
55@ = 0

:TORENO2_8354
Audio.SetRadioChannel(RadioChannel.PlaybackFM)
45@ = 1
42@ = 1
TIMERB = 0

:TORENO2_8379
if 
  42@ == 1
goto_if_false @TORENO2_8619
if 
  75@ == 0
goto_if_false @TORENO2_8498
if 
  TIMERB > 7000
goto_if_false @TORENO2_8498
if 
  55@ == 1
goto_if_false @TORENO2_8498
if 
  45@ == 1
goto_if_false @TORENO2_8498
73@ = 11
74@ = 0
gosub @TORENO2_15179
75@ = 1

:TORENO2_8498
if 
  Trailer.IsAttachedToCab(37@, 34@)
goto_if_false @TORENO2_8605
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @TORENO2_8605
if 
  Car.Locate3D(34@, -2016.5, 157.7, 26.7, 4.0, 4.0, 4.0, True)
goto_if_false @TORENO2_8605
Player.SetControl($player1, False)
42@ = 0
41@ = 5

:TORENO2_8605
gosub @TORENO2_11124
gosub @TORENO2_11305

:TORENO2_8619
if 
  41@ == 5
goto_if_false @TORENO2_9739
if 
  42@ == 0
goto_if_false @TORENO2_8709
Player.SetControl($player1, False)
Player.ApplyBrakesToCar($player1, True)
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:TORENO2_8678
if 
  Camera.GetFadingStatus
goto_if_false @TORENO2_8702
wait 0
goto @TORENO2_8678

:TORENO2_8702
42@ = 1

:TORENO2_8709
if 
  42@ == 1
goto_if_false @TORENO2_9381
Streaming.RequestAnimation("POLICE")

:TORENO2_8737
if 
  not Streaming.HasAnimationLoaded("POLICE")
goto_if_false @TORENO2_8769
wait 0
goto @TORENO2_8737

:TORENO2_8769
Garage.Open('HBGDSFS')

:TORENO2_8780
if 
  not Garage.IsOpen('HBGDSFS')
goto_if_false @TORENO2_8813
wait 0
goto @TORENO2_8780

:TORENO2_8813
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_8845
goto @TORENO2_10699

:TORENO2_8845
Streaming.RequestCollision(-1998.7, 178.4)
Streaming.LoadSceneInDirection(-1998.7, 178.4, 26.3, 270.0)
World.ClearArea(-1998.7, 178.4, 26.3, 200.0, False)
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
if 
  not Car.IsDead(37@)
goto_if_false @TORENO2_8990
if 
  Trailer.IsAttachedToCab(37@, 34@)
goto_if_false @TORENO2_8990
Trailer.DetachFromCab(37@, 34@)
Car.SetCoordinates(37@, -1998.7, 178.4, 26.3)
Car.SetHeading(37@, 88.7)

:TORENO2_8990
Car.SetCoordinates(34@, -2006.7, 178.4, 26.3)
Car.SetHeading(34@, 88.7)
wait 0
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_9056
goto @TORENO2_10699

:TORENO2_9056
if 
  not Car.IsDead(37@)
goto_if_false @TORENO2_9080
Trailer.AttachToCab(37@, 34@)

:TORENO2_9080
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -2035.3, 180.5, 27.8)
Char.SetHeading($scplayer, 277.5)
125@ = Sequence.Open()
Task.PlayAnim(-1, "COPTRAF_COME", "POLICE", 4.0, False, False, False, False, -1)
Sequence.Close(125@)
Char.PerformSequence($scplayer, 125@)
Sequence.Clear(125@)
Char.ClearTasksImmediately($cesar)
Char.WarpIntoCar($cesar, 34@)
Task.CarDriveToCoord($cesar, 34@, -2053.3, 178.8, 27.8, 10.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
73@ = 0
Game.ShutAllCharsUp(True)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Camera.SetFixedPosition(-2038.0, 182.8, 29.2, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2001.0, 166.2, 31.2, SwitchType.JumpCut)
Camera.DoFade(2000, Fade.In)

:TORENO2_9318
if 
  Camera.GetFadingStatus
goto_if_false @TORENO2_9342
wait 0
goto @TORENO2_9318

:TORENO2_9342
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_9374
goto @TORENO2_10699

:TORENO2_9374
42@ = 2

:TORENO2_9381
if 
  42@ == 2
goto_if_false @TORENO2_9547
$task_status = Char.GetScriptTaskStatus($scplayer, 1541)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TORENO2_9547
125@ = Sequence.Open()
Task.PlayAnim(-1, "COPTRAF_COME", "POLICE", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "COPTRAF_LEFT", "POLICE", 4.0, False, False, False, False, -1)
Sequence.Close(125@)
Char.PerformSequence($scplayer, 125@)
Sequence.Clear(125@)
TIMERA = 0
42@ = 3

:TORENO2_9547
if 
  42@ == 3
goto_if_false @TORENO2_9739
if 
  TIMERA > 5000
goto_if_false @TORENO2_9739
Camera.DoFade(500, Fade.Out)

:TORENO2_9591
if 
  Camera.GetFadingStatus
goto_if_false @TORENO2_9615
wait 0
goto @TORENO2_9591

:TORENO2_9615
Streaming.UnloadSpecialCharacter(1)
Car.Delete(34@)
Car.Delete(37@)
Garage.Close('HBGDSFS')

:TORENO2_9640
if 
  not Garage.IsClosed('HBGDSFS')
goto_if_false @TORENO2_9673
wait 0
goto @TORENO2_9640

:TORENO2_9673
Game.ShutAllCharsUp(False)
Camera.DoFade(500, Fade.In)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Char.HideWeaponForScriptedCutscene($scplayer, False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:TORENO2_9708
if 
  Camera.GetFadingStatus
goto_if_false @TORENO2_9732
wait 0
goto @TORENO2_9708

:TORENO2_9732
goto @TORENO2_10717

:TORENO2_9739
if 
  3 > 41@
goto_if_false @TORENO2_9825
if 
  not Char.IsDead(35@)
goto_if_false @TORENO2_9825
if 
  Car.Locate2D(34@, -1914.6, -1187.7, 5.0, 5.0, False)
goto_if_false @TORENO2_9825
42@ = 0
41@ = 6

:TORENO2_9825
if 
  41@ == 6
goto_if_false @TORENO2_10685
ENTEXT_63()
if 
  $player_is_completely_safe == 1
goto_if_false @TORENO2_10563
if 
  42@ == 0
goto_if_false @TORENO2_10563
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:TORENO2_9895
if 
  Camera.GetFadingStatus
goto_if_false @TORENO2_9919
wait 0
goto @TORENO2_9895

:TORENO2_9919
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_9951
goto @TORENO2_10699

:TORENO2_9951
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
73@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Camera.SetFixedPosition(-1932.8, -991.8, 31.3, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1959.7, -1019.9, 43.1, SwitchType.JumpCut)
if 
  Char.IsInArea2D($scplayer, -1915.0, -977.8, -2013.4, -1074.8, False)
goto_if_false @TORENO2_10097
Char.SetCoordinates($scplayer, -1984.5, -1072.9, 31.5)

:TORENO2_10097
if 
  Char.IsInArea2D($cesar, -1915.0, -977.8, -2013.4, -1074.8, False)
goto_if_false @TORENO2_10155
Char.SetCoordinates($cesar, -1984.5, -1074.9, 31.5)

:TORENO2_10155
Streaming.RequestCollision(-1984.3, -1045.7)
Streaming.LoadScene(-1984.3, -1045.7, 31.6)
World.ClearArea(-1984.3, -1045.7, 31.6, 25.0, True)
Car.SetCoordinates(34@, -1984.3, -1045.7, 31.6)
Car.SetHeading(34@, 0.0)
if 
  not Car.IsDead(37@)
goto_if_false @TORENO2_10292
Car.SetCoordinates(37@, -1984.3, -1055.7, 31.6)
Car.SetHeading(37@, 0.0)
Trailer.AttachToCab(37@, 34@)

:TORENO2_10292
if 
  not Char.IsDead(35@)
goto_if_false @TORENO2_10463
125@ = Sequence.Open()
Task.CarDriveToCoord(-1, 34@, -1984.8, -1022.1, 31.6, 15.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(-1, 34@, -1954.4, -1007.4, 31.6, 15.0, DriveMode.Normal, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(-1, 34@, -1943.6, -1040.1, 31.6, 15.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(-1, 34@, -1946.6, -1018.0, 31.6, 15.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Sequence.Close(125@)
Char.PerformSequence(35@, 125@)
Sequence.Clear(125@)

:TORENO2_10463
Text.PrintNow('TOR1_12', 11000, 1)
Camera.DoFade(1000, Fade.In)

:TORENO2_10486
if 
  Camera.GetFadingStatus
goto_if_false @TORENO2_10517
wait 0
gosub @TORENO2_12037
goto @TORENO2_10486

:TORENO2_10517
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_10549
goto @TORENO2_10699

:TORENO2_10549
skip_cutscene_start_internal @TORENO2_10626
42@ = 1

:TORENO2_10563
if 
  42@ == 1
goto_if_false @TORENO2_10685
gosub @TORENO2_12037
if 
  Car.Locate2D(34@, -1943.6, -1040.1, 5.0, 5.0, False)
goto_if_false @TORENO2_10685

:TORENO2_10626
skip_cutscene_end 
gosub @TORENO2_10922
if 
  44@ == 1
goto_if_false @TORENO2_10660
goto @TORENO2_10699

:TORENO2_10660
Text.ClearPrints
Text.PrintNow('TOR1_12', 4000, 1)
goto @TORENO2_10699

:TORENO2_10685
gosub @TORENO2_12935
goto @TORENO2_1618

:TORENO2_10699
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:TORENO2_10717
$flag_desert_mission_counter += 1
Text.PrintWithNumberBig('M_PASS', 7000, 5000, TextStyle.Middle)
Player.AddScore($player1, 7000)
Stat.SetInt(StatId.PassedDesert12, 1)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Stat.RegisterMissionPassed('DESERT2')
Blip.Remove($desert_contact_blip)
Stat.PlayerMadeProgress(1)
return 

:TORENO2_10789
if 
  is_var_text_label_empty s$shop_name
goto_if_false @TORENO2_10807
Camera.RestoreJumpcut

:TORENO2_10807
if 
  not Char.IsDead($scplayer)
goto_if_false @TORENO2_10830
Char.ShutUpForScriptedSpeech($scplayer, False)

:TORENO2_10830
Game.ShutAllCharsUp(False)
Path.ReleaseNodes
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Streaming.MarkModelAsNoLongerNeeded(514)
Streaming.MarkModelAsNoLongerNeeded(461)
Streaming.MarkModelAsNoLongerNeeded(584)
Streaming.MarkModelAsNoLongerNeeded(567)
Char.RemoveElegantly($cesar)
Streaming.UnloadSpecialCharacter(1)
Streaming.RemoveAnimation("BIKELEAP")
Streaming.RemoveAnimation("POLICE")
Blip.Remove(40@)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

:TORENO2_10922
if 
  3 > 41@
goto_if_false @TORENO2_10981
if 
  Car.IsDead(36@)
goto_if_false @TORENO2_10981
Text.ClearPrints
Text.PrintNow('TOR1_02', 4000, 1)
44@ = 1

:TORENO2_10981
if 
  41@ > 1
goto_if_false @TORENO2_11081
if 
  Car.IsDead(34@)
goto_if_false @TORENO2_11040
Text.ClearPrints
Text.PrintNow('TOR1_14', 4000, 1)
44@ = 1

:TORENO2_11040
if 
  Car.IsDead(37@)
goto_if_false @TORENO2_11081
Text.ClearPrints
Text.PrintNow('TOR1_14', 4000, 1)
44@ = 1

:TORENO2_11081
if 
  Char.IsDead($cesar)
goto_if_false @TORENO2_11122
Text.ClearPrints
Text.PrintNow('TOR1_03', 4000, 1)
44@ = 1

:TORENO2_11122
return 

:TORENO2_11124
if 
  45@ == 0
goto_if_false @TORENO2_11239
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @TORENO2_11239
if 
  not Trailer.IsAttachedToCab(37@, 34@)
goto_if_false @TORENO2_11207
Blip.Remove(40@)
40@ = Blip.AddForCar(37@)
Blip.SetAsFriendly(40@, True)
goto @TORENO2_11232

:TORENO2_11207
Blip.Remove(40@)
40@ = Blip.AddForCoord(-2016.5, 157.7, 26.7)

:TORENO2_11232
45@ = 1

:TORENO2_11239
if 
  45@ == 1
goto_if_false @TORENO2_11303
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @TORENO2_11303
Blip.Remove(40@)
40@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(40@, True)
45@ = 0

:TORENO2_11303
return 

:TORENO2_11305
if 
  45@ == 1
goto_if_false @TORENO2_11512
if 
  not Car.IsDead(37@)
goto_if_false @TORENO2_11512
Car.SetHealth(37@, 1000)
if 
  55@ == 1
goto_if_false @TORENO2_11427
if 
  not Trailer.IsAttachedToCab(37@, 34@)
goto_if_false @TORENO2_11427
Blip.Remove(40@)
40@ = Blip.AddForCar(37@)
Blip.SetAsFriendly(40@, True)
Text.PrintNow('TOR1_21', 4000, 1)
55@ = 0

:TORENO2_11427
if 
  55@ == 0
goto_if_false @TORENO2_11512
if 
  Trailer.IsAttachedToCab(37@, 34@)
goto_if_false @TORENO2_11512
Blip.Remove(40@)
40@ = Blip.AddForCoord(-2016.5, 157.7, 26.7)
Text.Print('TOR1_06', 4000, 1)
55@ = 1

:TORENO2_11512
return 

:TORENO2_11514
if 
  46@ == 1
goto_if_false @TORENO2_11832
if 
  45@ == 0
goto_if_false @TORENO2_11702
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @TORENO2_11702
Text.ClearThisPrint(76@(74@,8s))
Text.ClearThisPrint('TOR1_20')
Blip.Remove(40@)
if 
  not Car.IsDead(34@)
goto_if_false @TORENO2_11618
40@ = Blip.AddForCar(34@)

:TORENO2_11618
if 
  TIMERB > 8000
goto_if_false @TORENO2_11695
if 
  Char.IsInCar($cesar, 36@)
goto_if_false @TORENO2_11679
Text.PrintNow('TOR1_05', 4000, 1)
goto @TORENO2_11695

:TORENO2_11679
Text.PrintNow('TOR1_16', 4000, 1)

:TORENO2_11695
45@ = 1

:TORENO2_11702
if 
  45@ == 1
goto_if_false @TORENO2_11832
if 
  not Char.IsInCar($scplayer, 36@)
goto_if_false @TORENO2_11832
Text.ClearThisPrint(76@(74@,8s))
Text.ClearThisPrint('TOR1_10')
Text.ClearThisPrint('TOR1_16')
Blip.Remove(40@)
40@ = Blip.AddForCar(36@)
Blip.SetAsFriendly(40@, True)
if 
  TIMERB > 8000
goto_if_false @TORENO2_11825
Text.PrintNow('TOR1_20', 4000, 1)

:TORENO2_11825
45@ = 0

:TORENO2_11832
return 

:TORENO2_11834
if 
  46@ == 1
goto_if_false @TORENO2_11898
if 
  not Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @TORENO2_11898
Blip.Remove(40@)
40@ = Blip.AddForChar($cesar)
Blip.SetAsFriendly(40@, True)
46@ = 0

:TORENO2_11898
if 
  46@ == 0
goto_if_false @TORENO2_12035
if 
  Char.LocateAnyMeansChar3D($scplayer, $cesar, 8.0, 8.0, 8.0, False)
goto_if_false @TORENO2_12035
if 
  not Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @TORENO2_11983
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $cesar)

:TORENO2_11983
Blip.Remove(40@)
if 
  not Char.IsInCar($scplayer, 36@)
goto_if_false @TORENO2_12021
45@ = 1
goto @TORENO2_12028

:TORENO2_12021
45@ = 0

:TORENO2_12028
46@ = 1

:TORENO2_12035
return 

:TORENO2_12037
if 
  not Car.IsDead(34@)
goto_if_false @TORENO2_12104
if 
  not Car.IsDead(37@)
goto_if_false @TORENO2_12104
Car.SetHealth(37@, 1000)
if 
  not Trailer.IsAttachedToCab(37@, 34@)
goto_if_false @TORENO2_12104
Trailer.AttachToCab(37@, 34@)

:TORENO2_12104
return 

:TORENO2_12106
if 
  not Car.IsDead(34@)
goto_if_false @TORENO2_12228
if 
  Char.LocateAnyMeansCar2D($scplayer, 34@, 20.0, 20.0, False)
goto_if_false @TORENO2_12170
Car.SetCruiseSpeed(34@, 37.0)
goto @TORENO2_12228

:TORENO2_12170
if 
  Char.LocateAnyMeansCar2D($scplayer, 34@, 40.0, 40.0, False)
goto_if_false @TORENO2_12218
Car.SetCruiseSpeed(34@, 20.0)
goto @TORENO2_12228

:TORENO2_12218
Car.SetCruiseSpeed(34@, 15.0)

:TORENO2_12228
return 

:TORENO2_12230
if 
  not Car.IsDead(34@)
goto_if_false @TORENO2_12933
120@, 121@, $z = Car.GetOffsetInWorldCoords(34@, -3.0, 2.0, 0.0)
122@, 123@, $z = Car.GetOffsetInWorldCoords(34@, 3.0, 11.0, 0.0)
38@ = World.GetRandomCarOfTypeInAreaNoSave(120@, 121@, 122@, 123@, -1)
if 
  not Car.IsDead(38@)
goto_if_false @TORENO2_12933
if 
  not is_int_lvar_equal_to_int_lvar 38@ == 36@
goto_if_false @TORENO2_12933
57@ = Car.GetHealth(38@)
if 
  57@ > 500
goto_if_false @TORENO2_12933
69@ = Car.GetSpeed(34@)
69@ *= 0.02
120@ = Car.GetForwardX(34@)
121@ = Car.GetForwardY(34@)
set_lvar_float_to_lvar_float 122@ = 121@
123@ = -1.0
mult_float_lvar_by_float_lvar 123@ *= 120@
65@, 66@, 67@ = Car.GetCoordinates(38@)
62@, 63@, 64@ = Car.GetCoordinates(34@)
sub_float_lvar_from_float_lvar 65@ -= 62@
sub_float_lvar_from_float_lvar 66@ -= 63@
set_lvar_float_to_lvar_float 70@ = 122@
mult_float_lvar_by_float_lvar 70@ *= 65@
set_lvar_float_to_lvar_float 71@ = 123@
mult_float_lvar_by_float_lvar 71@ *= 66@
set_lvar_float_to_lvar_float 68@ = 70@
add_float_lvar_to_float_lvar 68@ += 71@
if 
  2.5 > 68@
goto_if_false @TORENO2_12923
if 
  68@ > -2.5
goto_if_false @TORENO2_12923
if 
  68@ > 0.0
goto_if_false @TORENO2_12617
68@ = 1.0
goto @TORENO2_12627

:TORENO2_12617
68@ = -1.0

:TORENO2_12627
set_lvar_float_to_lvar_float 70@ = 120@
mult_float_lvar_by_float_lvar 70@ *= 69@
set_lvar_float_to_lvar_float 71@ = 68@
mult_float_lvar_by_float_lvar 71@ *= 122@
71@ *= 0.5
set_lvar_float_to_lvar_float 72@ = 69@
mult_float_lvar_by_float_lvar 72@ *= 71@
set_lvar_float_to_lvar_float 62@ = 70@
add_float_lvar_to_float_lvar 62@ += 72@
set_lvar_float_to_lvar_float 70@ = 121@
mult_float_lvar_by_float_lvar 70@ *= 69@
set_lvar_float_to_lvar_float 71@ = 68@
mult_float_lvar_by_float_lvar 71@ *= 123@
71@ *= 0.5
set_lvar_float_to_lvar_float 72@ = 69@
mult_float_lvar_by_float_lvar 72@ *= 71@
set_lvar_float_to_lvar_float 63@ = 70@
add_float_lvar_to_float_lvar 63@ += 72@
set_lvar_float_to_lvar_float 64@ = 69@
64@ += 0.008
64@ *= 0.5
65@ = -1.0
mult_float_lvar_by_float_lvar 65@ *= 68@
mult_float_lvar_by_float_lvar 65@ *= 122@
mult_float_lvar_by_float_lvar 65@ *= 69@
66@ = -1.0
mult_float_lvar_by_float_lvar 66@ *= 68@
mult_float_lvar_by_float_lvar 66@ *= 123@
mult_float_lvar_by_float_lvar 66@ *= 69@
67@ = 0.0
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
Car.SetStatus(38@, EntityStatus.Physics)
Car.ApplyForce(38@, 62@, 63@, 64@, 65@, 66@, 67@)
Car.SetHealth(38@, 499)

:TORENO2_12923
Car.ClearLastDamageEntity(38@)
Car.MarkAsNoLongerNeeded(38@)

:TORENO2_12933
return 

:TORENO2_12935
if 
  73@ == 1
goto_if_false @TORENO2_13007
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13000
gosub @TORENO2_16487
gosub @TORENO2_16594
gosub @TORENO2_16748
goto @TORENO2_13007

:TORENO2_13000
73@ = 0

:TORENO2_13007
if or
  41@ == 1
  41@ == 2
goto_if_false @TORENO2_14378
if or
  14 > 41@
  41@ == 16
goto_if_false @TORENO2_14378
if 
  Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @TORENO2_13791
if 
  Char.LocateAnyMeansChar3D($cesar, $scplayer, 10.0, 10.0, 8.0, False)
goto_if_false @TORENO2_13784
if and
  Char.IsOnFoot($scplayer)
  Char.IsOnFoot($cesar)
goto_if_false @TORENO2_13287
if or
  73@ == 2
  73@ == 3
  73@ == 4
  73@ == 5
  73@ == 6
goto_if_false @TORENO2_13287
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13280
gosub @TORENO2_16487
gosub @TORENO2_16594
if 
  not Char.IsDead($cesar)
goto_if_false @TORENO2_13242
gosub @TORENO2_16748
goto @TORENO2_13273

:TORENO2_13242
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(76@(74@,8s))
101@ = 0
102@ = 0

:TORENO2_13273
goto @TORENO2_13287

:TORENO2_13280
73@ = 0

:TORENO2_13287
if and
  Char.IsInAnyCar($scplayer)
  Char.IsInAnyCar($cesar)
goto_if_false @TORENO2_13462
if or
  73@ == 2
  73@ == 3
  73@ == 4
  73@ == 5
  73@ == 6
goto_if_false @TORENO2_13462
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13455
gosub @TORENO2_16487
gosub @TORENO2_16594
if 
  not Char.IsDead($cesar)
goto_if_false @TORENO2_13417
gosub @TORENO2_16748
goto @TORENO2_13448

:TORENO2_13417
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(76@(74@,8s))
101@ = 0
102@ = 0

:TORENO2_13448
goto @TORENO2_13462

:TORENO2_13455
73@ = 0

:TORENO2_13462
if and
  Char.IsOnFoot($scplayer)
  Char.IsOnFoot($cesar)
goto_if_false @TORENO2_13623
if or
  73@ == 7
  73@ == 9
  73@ == 10
goto_if_false @TORENO2_13623
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13616
gosub @TORENO2_16487
gosub @TORENO2_16594
if 
  not Char.IsDead($cesar)
goto_if_false @TORENO2_13578
gosub @TORENO2_16748
goto @TORENO2_13609

:TORENO2_13578
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(76@(74@,8s))
101@ = 0
102@ = 0

:TORENO2_13609
goto @TORENO2_13623

:TORENO2_13616
73@ = 0

:TORENO2_13623
if and
  Char.IsInAnyCar($scplayer)
  Char.IsInAnyCar($cesar)
goto_if_false @TORENO2_13784
if or
  73@ == 7
  73@ == 9
  73@ == 10
goto_if_false @TORENO2_13784
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13777
gosub @TORENO2_16487
gosub @TORENO2_16594
if 
  not Char.IsDead($cesar)
goto_if_false @TORENO2_13739
gosub @TORENO2_16748
goto @TORENO2_13770

:TORENO2_13739
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(76@(74@,8s))
101@ = 0
102@ = 0

:TORENO2_13770
goto @TORENO2_13784

:TORENO2_13777
73@ = 0

:TORENO2_13784
goto @TORENO2_13908

:TORENO2_13791
if 
  14 > 73@
goto_if_false @TORENO2_13908
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13835
74@ += 1

:TORENO2_13835
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(76@(74@,8s))
Text.ClearPrints
set_lvar_int_to_lvar_int 109@ = 73@
set_lvar_int_to_lvar_int 110@ = 74@
73@ = 14
74@ = Math.RandomIntInRange(0, 4)
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179

:TORENO2_13908
if 
  73@ == 14
goto_if_false @TORENO2_14099
if 
  not Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @TORENO2_14076
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_14046
gosub @TORENO2_16487
gosub @TORENO2_16594
if 
  not Char.IsDead($cesar)
goto_if_false @TORENO2_14008
gosub @TORENO2_16748
goto @TORENO2_14039

:TORENO2_14008
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(76@(74@,8s))
101@ = 0
102@ = 0

:TORENO2_14039
goto @TORENO2_14069

:TORENO2_14046
Text.Print('TOR1_13', 4000, 1)
73@ = 15

:TORENO2_14069
goto @TORENO2_14099

:TORENO2_14076
Text.Print('TOR1_13', 4000, 1)
73@ = 15

:TORENO2_14099
if 
  73@ == 15
goto_if_false @TORENO2_14152
if 
  Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @TORENO2_14152
73@ = 16
74@ = 0
Text.ClearPrints

:TORENO2_14152
if 
  73@ == 16
goto_if_false @TORENO2_14378
if 
  Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @TORENO2_14323
TIMERB = 0
set_lvar_int_to_lvar_int 73@ = 109@
set_lvar_int_to_lvar_int 74@ = 110@
gosub @TORENO2_15179
if 
  109@ == 0
goto_if_false @TORENO2_14316
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @TORENO2_14279
Text.Print('TOR1_05', 7000, 1)
goto @TORENO2_14295

:TORENO2_14279
Text.Print('TOR1_20', 4000, 1)

:TORENO2_14295
TIMERB = 0
74@ = 0
73@ = 0

:TORENO2_14316
goto @TORENO2_14378

:TORENO2_14323
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(76@(74@,8s))
73@ = 14
74@ = Math.RandomIntInRange(0, 4)
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179

:TORENO2_14378
if 
  41@ == 4
goto_if_false @TORENO2_15177
if 
  42@ == 1
goto_if_false @TORENO2_15177
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @TORENO2_14559
if 
  73@ == 11
goto_if_false @TORENO2_14559
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_14552
gosub @TORENO2_16487
gosub @TORENO2_16594
if 
  not Char.IsDead($cesar)
goto_if_false @TORENO2_14514
gosub @TORENO2_16748
goto @TORENO2_14545

:TORENO2_14514
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(76@(74@,8s))
101@ = 0
102@ = 0

:TORENO2_14545
goto @TORENO2_14559

:TORENO2_14552
73@ = 0

:TORENO2_14559
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @TORENO2_14695
if 
  17 > 73@
goto_if_false @TORENO2_14695
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_14622
74@ += 1

:TORENO2_14622
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Text.ClearThisPrint(76@(74@,8s))
set_lvar_int_to_lvar_int 109@ = 73@
set_lvar_int_to_lvar_int 110@ = 74@
73@ = 17
74@ = Math.RandomIntInRange(0, 6)
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179

:TORENO2_14695
if 
  73@ == 17
goto_if_false @TORENO2_14908
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @TORENO2_14856
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_14833
gosub @TORENO2_16487
gosub @TORENO2_16594
if 
  not Char.IsDead($cesar)
goto_if_false @TORENO2_14795
gosub @TORENO2_16748
goto @TORENO2_14826

:TORENO2_14795
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(76@(74@,8s))
101@ = 0
102@ = 0

:TORENO2_14826
goto @TORENO2_14856

:TORENO2_14833
Text.Print('TOR1_11', 4000, 1)
73@ = 18

:TORENO2_14856
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @TORENO2_14908
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(76@(74@,8s))
73@ = 19
74@ = 0
Text.ClearPrints

:TORENO2_14908
if 
  73@ == 18
goto_if_false @TORENO2_14961
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @TORENO2_14961
73@ = 19
74@ = 0
Text.ClearPrints

:TORENO2_14961
if 
  73@ == 19
goto_if_false @TORENO2_15177
if 
  Char.IsSittingInCar($scplayer, 34@)
goto_if_false @TORENO2_15103
TIMERB = 0
set_lvar_int_to_lvar_int 73@ = 109@
set_lvar_int_to_lvar_int 74@ = 110@
gosub @TORENO2_15179
if 
  109@ == 0
goto_if_false @TORENO2_15103
if 
  55@ == 1
goto_if_false @TORENO2_15087
Text.Print('TOR1_06', 4000, 1)
goto @TORENO2_15103

:TORENO2_15087
Text.Print('TOR1_21', 4000, 1)

:TORENO2_15103
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @TORENO2_15177
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(76@(74@,8s))
73@ = 17
74@ = Math.RandomIntInRange(0, 6)
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15179

:TORENO2_15177
return 

:TORENO2_15179
if 
  73@ == 1
goto_if_false @TORENO2_15336
set_lvar_text_label 76@s = 'DES2_AA'
set_lvar_text_label 78@s = 'DES2_AB'
set_lvar_text_label 80@s = 'DES2_AC'
set_lvar_text_label 82@s = 'DES2_AD'
set_lvar_text_label 84@s = 'DES2_AE'
set_lvar_text_label 86@s = 'DES2_AF'
set_lvar_int_to_constant 92@ = 3400
set_lvar_int_to_constant 93@ = 3429
set_lvar_int_to_constant 94@ = 3401
set_lvar_int_to_constant 95@ = 3402
set_lvar_int_to_constant 96@ = 3430
set_lvar_int_to_constant 97@ = 3431
100@ = 6

:TORENO2_15336
if 
  73@ == 2
goto_if_false @TORENO2_15405
set_lvar_text_label 76@s = 'DES2_BA'
set_lvar_text_label 78@s = 'DES2_BB'
set_lvar_int_to_constant 92@ = 3432
set_lvar_int_to_constant 93@ = 3433
100@ = 2

:TORENO2_15405
if 
  73@ == 3
goto_if_false @TORENO2_15452
set_lvar_text_label 76@s = 'DES2_BC'
set_lvar_int_to_constant 92@ = 3403
100@ = 1

:TORENO2_15452
if 
  73@ == 4
goto_if_false @TORENO2_15544
set_lvar_text_label 76@s = 'DES2_CA'
set_lvar_text_label 78@s = 'DES2_CB'
set_lvar_text_label 80@s = 'DES2_CC'
set_lvar_int_to_constant 92@ = 3404
set_lvar_int_to_constant 93@ = 3405
set_lvar_int_to_constant 94@ = 3406
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_15544
if 
  73@ == 5
goto_if_false @TORENO2_15636
set_lvar_text_label 76@s = 'DES2_DA'
set_lvar_text_label 78@s = 'DES2_DB'
set_lvar_text_label 80@s = 'DES2_DC'
set_lvar_int_to_constant 92@ = 3407
set_lvar_int_to_constant 93@ = 3408
set_lvar_int_to_constant 94@ = 3409
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_15636
if 
  73@ == 6
goto_if_false @TORENO2_15794
set_lvar_text_label 76@s = 'DES2_EA'
set_lvar_text_label 78@s = 'DES2_EB'
set_lvar_text_label 80@s = 'DES2_EC'
set_lvar_text_label 82@s = 'DES2_ED'
set_lvar_text_label 84@s = 'DES2_EE'
set_lvar_text_label 86@s = 'DES2_EF'
set_lvar_int_to_constant 92@ = 3434
set_lvar_int_to_constant 93@ = 3410
set_lvar_int_to_constant 94@ = 3435
set_lvar_int_to_constant 95@ = 3411
set_lvar_int_to_constant 96@ = 3436
set_lvar_int_to_constant 97@ = 3412
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_15794
if 
  73@ == 7
goto_if_false @TORENO2_15886
set_lvar_text_label 76@s = 'DES2_FA'
set_lvar_text_label 78@s = 'DES2_FB'
set_lvar_text_label 80@s = 'DES2_FC'
set_lvar_int_to_constant 92@ = 3413
set_lvar_int_to_constant 93@ = 3414
set_lvar_int_to_constant 94@ = 3415
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_15886
if 
  73@ == 9
goto_if_false @TORENO2_15978
set_lvar_text_label 76@s = 'DES2_HA'
set_lvar_text_label 78@s = 'DES2_HB'
set_lvar_text_label 80@s = 'DES2_HC'
set_lvar_int_to_constant 92@ = 3419
set_lvar_int_to_constant 93@ = 3420
set_lvar_int_to_constant 94@ = 3421
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_15978
if 
  73@ == 10
goto_if_false @TORENO2_16070
set_lvar_text_label 76@s = 'DES2_JA'
set_lvar_text_label 78@s = 'DES2_JB'
set_lvar_text_label 80@s = 'DES2_JC'
set_lvar_int_to_constant 92@ = 3422
set_lvar_int_to_constant 93@ = 3423
set_lvar_int_to_constant 94@ = 3424
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_16070
if 
  73@ == 11
goto_if_false @TORENO2_16117
set_lvar_text_label 76@s = 'DES2_KA'
set_lvar_int_to_constant 92@ = 3425
100@ = 1

:TORENO2_16117
if 
  73@ == 12
goto_if_false @TORENO2_16164
set_lvar_text_label 76@s = 'DES2_LA'
set_lvar_int_to_constant 92@ = 3428
100@ = 1

:TORENO2_16164
if 
  73@ == 14
goto_if_false @TORENO2_16286
set_lvar_text_label 76@s = 'CESX_BA'
set_lvar_text_label 78@s = 'CESX_BB'
set_lvar_text_label 80@s = 'CESX_BC'
set_lvar_text_label 82@s = 'CESX_BD'
set_lvar_int_to_constant 92@ = 42406
set_lvar_int_to_constant 93@ = 42407
set_lvar_int_to_constant 94@ = 42408
set_lvar_int_to_constant 95@ = 42409
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_16286
if 
  73@ == 17
goto_if_false @TORENO2_16456
set_lvar_text_label 76@s = 'CESX_AA'
set_lvar_text_label 78@s = 'CESX_AB'
set_lvar_text_label 80@s = 'CESX_AC'
set_lvar_text_label 82@s = 'CESX_AD'
set_lvar_text_label 84@s = 'CESX_AE'
set_lvar_text_label 86@s = 'CESX_AF'
set_lvar_int_to_constant 92@ = 42400
set_lvar_int_to_constant 93@ = 42401
set_lvar_int_to_constant 94@ = 42402
set_lvar_int_to_constant 95@ = 42403
set_lvar_int_to_constant 96@ = 42404
set_lvar_int_to_constant 97@ = 42405
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_16456
set_lvar_int_to_lvar_int 103@ = 74@
101@ = 0
102@ = 0
104@ = 1
return 

:TORENO2_16487
if 
  is_int_lvar_greater_than_int_lvar 100@ > 103@
goto_if_false @TORENO2_16592
if 
  101@ == 0
goto_if_false @TORENO2_16549
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 92@(103@,8i))
103@ += 1
101@ = 1

:TORENO2_16549
if 
  102@ == 0
goto_if_false @TORENO2_16592
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 92@(103@,8i))
103@ += 1
102@ = 1

:TORENO2_16592
return 

:TORENO2_16594
if 
  104@ == 1
goto_if_false @TORENO2_16670
if 
  101@ == 1
goto_if_false @TORENO2_16670
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @TORENO2_16670
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(76@(74@,8s), 4500, 1)
101@ = 2

:TORENO2_16670
if 
  104@ == 2
goto_if_false @TORENO2_16746
if 
  102@ == 1
goto_if_false @TORENO2_16746
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @TORENO2_16746
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow(76@(74@,8s), 4500, 1)
102@ = 2

:TORENO2_16746
return 

:TORENO2_16748
if 
  101@ == 2
goto_if_false @TORENO2_16811
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @TORENO2_16811
Text.ClearThisPrint(76@(74@,8s))
74@ += 1
104@ = 2
101@ = 0

:TORENO2_16811
if 
  102@ == 2
goto_if_false @TORENO2_16874
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @TORENO2_16874
Text.ClearThisPrint(76@(74@,8s))
74@ += 1
104@ = 1
102@ = 0

:TORENO2_16874
return 

//-------------Mission 77---------------
// Originally: Interdiction

:DES3
script_name 'DES3'
gosub @DES3_47
if 
  has_deatharrest_been_executed 
goto_if_false @DES3_38
gosub @DES3_26916

:DES3_38
gosub @DES3_27032
terminate_this_script 

:DES3_47
Stat.RegisterMissionGiven
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
66@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
67@ = DecisionMakerChar.Load(DecisionMakerType.Tough)

:DES3_147
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @DES3_173
36@ = 1

:DES3_173
39@ += 1
if 
  39@ > 10
goto_if_false @DES3_205
39@ = 0

:DES3_205
40@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 64@ += 42@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 135@ += 42@
add_int_lvar_to_int_lvar 136@ += 42@
add_int_lvar_to_int_lvar 137@ += 42@
add_int_lvar_to_int_lvar 138@ += 42@
sub_int_lvar_from_int_lvar 224@ -= 42@
add_int_lvar_to_int_lvar 139@ += 42@
gosub @DES3_575
switch_start 34@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @DES3_466 {caseNum1} 0 {caseLabel1} @DES3_368 {caseNum2} 1 {caseLabel2} @DES3_382 {caseNum3} 2 {caseLabel3} @DES3_396 {caseNum4} 3 {caseLabel4} @DES3_410 {caseNum5} 4 {caseLabel5} @DES3_424 {caseNum6} 5 {caseLabel6} @DES3_438 {caseNum7} 6 {caseLabel7} @DES3_452

:DES3_368
gosub @DES3_2306
goto @DES3_466

:DES3_382
gosub @DES3_2848
goto @DES3_466

:DES3_396
gosub @DES3_5177
goto @DES3_466

:DES3_410
gosub @DES3_5992
goto @DES3_466

:DES3_424
gosub @DES3_10729
goto @DES3_466

:DES3_438
gosub @DES3_12361
goto @DES3_466

:DES3_452
gosub @DES3_14045
goto @DES3_466

:DES3_466
gosub @DES3_16382

:DES3_473
if 
  38@ == 0
goto_if_false @DES3_573
if 
  37@ == 0
goto_if_false @DES3_557
if 
  36@ == 0
goto_if_false @DES3_541
goto @DES3_147
goto @DES3_550

:DES3_541
gosub @DES3_26934
return 

:DES3_550
goto @DES3_566

:DES3_557
gosub @DES3_26916
return 

:DES3_566
goto @DES3_575

:DES3_573
return 

:DES3_575
if 
is_ps2_keyboard_key_just_pressed 27
goto_if_false @DES3_666
if 
  68@ == 0
goto_if_false @DES3_640
68@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @DES3_666

:DES3_640
68@ = 0
write_debug "LEVEL_DEBUG_OFF"

:DES3_666
if 
  68@ == 1
goto_if_false @DES3_2304
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @DES3_733
69@ += 1
if 
  69@ > 6
goto_if_false @DES3_731
69@ = 0

:DES3_731
clear_all_view_variables 

:DES3_733
if 
  69@ == 1
goto_if_false @DES3_943
set_var_int_to_lvar_int $desert3_mission_attempts = 34@
set_var_int_to_lvar_int $DES3_view_debug = 35@
set_var_int_to_lvar_int $7480 = 62@
set_var_int_to_lvar_int $7481 = 64@
set_var_int_to_lvar_int $7482 = 63@
set_var_int_to_lvar_int $7483 = 65@
set_var_int_to_lvar_int $7484 = TIMERA
set_var_int_to_lvar_int $7485 = TIMERB
view_integer_variable $desert3_mission_attempts {_p2} "M_STAGE"
view_integer_variable $DES3_view_debug {_p2} "M_GOALS"
view_integer_variable $7480 {_p2} "DIALOGUE_FLAG"
view_integer_variable $7481 {_p2} "DIALOGUE_TIMER"
view_integer_variable $7482 {_p2} "HELP_FLAG"
view_integer_variable $7483 {_p2} "HELP_TIMER"
view_integer_variable $7484 {_p2} "TIMERA"
view_integer_variable $7485 {_p2} "TIMERB"

:DES3_943
if 
  69@ == 2
goto_if_false @DES3_1217
set_var_int_to_lvar_int $desert3_mission_attempts = 108@
set_var_int_to_lvar_int $DES3_view_debug = 119@
set_var_int_to_lvar_int $7480 = 120@
set_var_int_to_lvar_int $7481 = 121@
set_var_int_to_lvar_int $7482 = 122@
set_var_int_to_lvar_int $7483 = 127@
set_var_int_to_lvar_int $7484 = 128@
set_var_int_to_lvar_int $7485 = 131@
view_integer_variable $desert3_mission_attempts {_p2} "PHELI_PROGRESS"
view_integer_variable $DES3_view_debug {_p2} "BRAVO_PED_FLAG[0]"
view_integer_variable $7480 {_p2} "BRAVO_PED_FLAG[1]"
view_integer_variable $7481 {_p2} "BRAVO_PED_FLAG[2]"
view_integer_variable $7482 {_p2} "BRAVO_PED_FLAG[3]"
view_integer_variable $7483 {_p2} "ALPHA_HELIS_FUCKED"
view_integer_variable $7484 {_p2} "BRAVO_HELIS_FUCKED"
view_integer_variable $7485 {_p2} "TOTAL_FUCKED_HELIS"

:DES3_1217
if 
  69@ == 3
goto_if_false @DES3_1455
set_var_int_to_lvar_int $desert3_mission_attempts = 109@
set_var_int_to_lvar_int $DES3_view_debug = 112@
set_var_int_to_lvar_int $7480 = 115@
set_var_int_to_lvar_int $7481 = 116@
set_var_int_to_lvar_int $7482 = 117@
set_var_int_to_lvar_int $7483 = 118@
set_var_int_to_lvar_int $7484 = 129@
view_integer_variable $desert3_mission_attempts {_p2} "ALPHA_HELI_AI"
view_integer_variable $DES3_view_debug {_p2} "ALPHA_HELI_GOALS"
view_integer_variable $7480 {_p2} "ALPHA_PED_FLAG[0]"
view_integer_variable $7481 {_p2} "ALPHA_PED_FLAG[1]"
view_integer_variable $7482 {_p2} "ALPHA_PED_FLAG[2]"
view_integer_variable $7483 {_p2} "ALPHA_PED_FLAG[3]"
view_integer_variable $7484 {_p2} "ALPHA_HELI_CONTROL"

:DES3_1455
if 
  69@ == 4
goto_if_false @DES3_1668
set_var_int_to_lvar_int $desert3_mission_attempts = 123@
set_var_int_to_lvar_int $DES3_view_debug = 124@
set_var_int_to_lvar_int $7480 = 125@
set_var_int_to_lvar_int $7481 = 126@
set_var_float_to_lvar_float $7490 = 140@
set_var_int_to_lvar_int $7483 = 137@
view_integer_variable $desert3_mission_attempts {_p2} "ALPHA_PED_ATTACHED[0]"
view_integer_variable $DES3_view_debug {_p2} "ALPHA_PED_ATTACHED[1]"
view_integer_variable $7480 {_p2} "ALPHA_PED_ATTACHED[2]"
view_integer_variable $7481 {_p2} "ALPHA_PED_ATTACHED[3]"
view_float_variable $7490 {_p2} "FED_DISTANCE"
view_integer_variable $7483 {_p2} "FED_TIMER"

:DES3_1668
if 
  69@ == 5
goto_if_false @DES3_1915
set_var_float_to_lvar_float $7486 = 199@
set_var_float_to_lvar_float $DES3_view_debug_f = 202@
set_var_float_to_lvar_float $7488 = 205@
set_var_float_to_lvar_float $7489 = 208@
set_var_float_to_lvar_float $7490 = 211@
set_var_float_to_lvar_float $7491 = 221@
set_var_float_to_lvar_float $7492 = 222@
set_var_float_to_lvar_float $7493 = 223@
view_float_variable $7486 {_p2} "SWING_SPEED_X"
view_float_variable $DES3_view_debug_f {_p2} "SWING_ACCEL_X"
view_float_variable $7488 {_p2} "SWING_ROT_X"
view_float_variable $7489 {_p2} "SWING_DEST_X"
view_float_variable $7490 {_p2} "SWING_DIST_X"
view_float_variable $7491 {_p2} "SWING_ANGLE_FOR_XY"
view_float_variable $7492 {_p2} "SWING_DIRECT_DIST"
view_float_variable $7493 {_p2} "SWING_2D_DIST"

:DES3_1915
if 
  69@ == 6
goto_if_false @DES3_2169
set_var_float_to_lvar_float $7486 = 220@
set_var_float_to_lvar_float $DES3_view_debug_f = 213@
set_var_int_to_lvar_int $7480 = 110@
set_var_int_to_lvar_int $7481 = 113@
set_var_int_to_lvar_int $7482 = 83@
set_var_int_to_lvar_int $7483 = 76@
set_var_int_to_lvar_int $7484 = 133@
set_var_int_to_lvar_int $7485 = 130@
view_float_variable $7486 {_p2} "SWING_ANGLE_FOR_Z"
view_float_variable $DES3_view_debug_f {_p2} "SWING_DIST_Z"
view_integer_variable $7480 {_p2} "BRAVO_HELI_AI"
view_integer_variable $7481 {_p2} "BRAVO_HELI_GOALS"
view_integer_variable $7482 {_p2} "BRAVO_PILOT"
view_integer_variable $7483 {_p2} "BRAVO_HELI"
view_integer_variable $7484 {_p2} "TOTAL_CREATED_HELIS"
view_integer_variable $7485 {_p2} "BRAVO_HELI_CONTROL"

:DES3_2169
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @DES3_2191
38@ = 1

:DES3_2191
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @DES3_2279
if 
  70@ == 0
goto_if_false @DES3_2254
70@ = 1
write_debug "LEVEL_PAUSED"
goto @DES3_2279

:DES3_2254
70@ = 0
write_debug "LEVEL_UNPAUSED"

:DES3_2279
if 
  70@ == 1
goto_if_false @DES3_2304
goto @DES3_473

:DES3_2304
return 

:DES3_2306
if 
  35@ == -1
goto_if_false @DES3_2642
74@ = Car.Create(413, 0.0, 0.0, 0.0)
75@ = Car.Create(413, 0.0, 0.0, 0.0)
76@ = Car.Create(413, 0.0, 0.0, 0.0)
285@ = Car.Create(413, 0.0, 0.0, 0.0)
286@ = Car.Create(413, 0.0, 0.0, 0.0)
78@ = Car.Create(413, 0.0, 0.0, 0.0)
81@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
82@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
83@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
84@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
88@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
102@ = Blip.AddForCoord(0.0, 0.0, 0.0)
103@ = Blip.AddForCoord(0.0, 0.0, 0.0)
107@ = Blip.AddForCoord(0.0, 0.0, 0.0)

:DES3_2642
108@ = 0
set_lvar_int_to_constant 109@ = 0
set_lvar_int_to_constant 110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
43@ = 0

:DES3_2698
if 
  4 > 43@
goto_if_false @DES3_2763
115@(43@,4i) = 0
119@(43@,4i) = 0
123@(43@,4i) = 0
43@ += 1
goto @DES3_2698

:DES3_2763
127@ = 0
128@ = 0
129@ = 0
130@ = 0
$7494 = 0
131@ = 0
132@ = 0
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.LoadMissionText('DSERT3')
gosub @DES3_26858
return 

:DES3_2848
if 
  35@ == 0
goto_if_false @DES3_3481
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:DES3_2880
if 
  Camera.GetFadingStatus
goto_if_false @DES3_2904
wait 0
goto @DES3_2880

:DES3_2904
World.ClearArea(-691.0, 941.0, 13.0, 10.0, True)
Cutscene.Load('DESERT3')

:DES3_2939
if 
  not Cutscene.HasLoaded
goto_if_false @DES3_2963
wait 0
goto @DES3_2939

:DES3_2963
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:DES3_2972
if 
  not Cutscene.HasFinished
goto_if_false @DES3_2996
wait 0
goto @DES3_2972

:DES3_2996
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:DES3_3009
if 
  Camera.GetFadingStatus
goto_if_false @DES3_3033
wait 0
goto @DES3_3009

:DES3_3033
Cutscene.Clear
World.ClearArea(-701.5853, 965.8546, 11.3768, 5.0, True)
Streaming.RequestModel(424)

:DES3_3064
if 
  not Streaming.HasModelLoaded(424)
goto_if_false @DES3_3091
wait 0
goto @DES3_3064

:DES3_3091
$car = Car.Create(424, -701.5853, 965.8546, 11.3768)
Car.SetHeading($car, 90.4785)
Streaming.MarkModelAsNoLongerNeeded(424)
Audio.SetRadioChannel(RadioChannel.WCTR)
if 
  $7477 > 0
goto_if_false @DES3_3173
Skip.SetUp(-426.8536, 2213.783, 41.4297, 9.9101)

:DES3_3173
Char.SetCoordinates($scplayer, -688.7614, 946.5271, 12.0312)
Char.SetHeading($scplayer, 94.6779)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Weather.Force(WeatherType.ExtraSunnyDesert)
101@ = Blip.AddForCoord(-429.025, 2226.223, 41.4297)
Text.Print('AIR1_13', 5000, 1)
Streaming.RequestModel(568)
Streaming.RequestModel(471)
Streaming.RequestModel(468)
Streaming.RequestModel(360)
Streaming.LoadAllModelsNow

:DES3_3269
if or
  not Streaming.HasModelLoaded(568)
  not Streaming.HasModelLoaded(471)
  not Streaming.HasModelLoaded(468)
  not Streaming.HasModelLoaded(360)
goto_if_false @DES3_3311
wait 0
goto @DES3_3269

:DES3_3311
Camera.DoFade(500, Fade.In)

:DES3_3318
if 
  Camera.GetFadingStatus
goto_if_false @DES3_3342
wait 0
goto @DES3_3318

:DES3_3342
Player.SetControl($player1, True)
71@ = Car.Create(471, -434.5365, 2237.567, 41.869)
72@ = Car.Create(468, -426.2288, 2240.41, 41.4297)
73@ = Car.Create(568, -428.1476, 2235.207, 42.3505)
Car.SetHeading(71@, 291.5598)
Car.SetHeading(72@, 179.3694)
Car.SetHeading(73@, 102.7597)
Streaming.MarkModelAsNoLongerNeeded(471)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.MarkModelAsNoLongerNeeded(568)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6000)
35@ += 1

:DES3_3481
if 
  35@ == 1
goto_if_false @DES3_3767
if 
  68@ == 1
goto_if_false @DES3_3554
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @DES3_3554
Char.SetCoordinates($scplayer, -424.6452, 2207.541, 41.4297)

:DES3_3554
if 
  Char.LocateAnyMeans3D($scplayer, -429.025, 2226.223, 41.4297, 4.0, 4.0, 4.0, True)
goto_if_false @DES3_3767
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DES3_3705
$car = Char.StoreCarIsInNoSave($scplayer)
if and
  not Char.IsInAnyHeli($scplayer)
  not Char.IsInAnyPlane($scplayer)
goto_if_false @DES3_3684
if 
  Car.IsOnAllWheels($car)
goto_if_false @DES3_3677
Player.SetControl($player1, False)
35@ += 1

:DES3_3677
goto @DES3_3698

:DES3_3684
Player.SetControl($player1, False)
35@ += 1

:DES3_3698
goto @DES3_3767

:DES3_3705
if 
  Char.LocateStoppedOnFoot3D($scplayer, -429.025, 2226.223, 41.4297, 4.0, 4.0, 4.0, False)
goto_if_false @DES3_3767
Player.SetControl($player1, False)
35@ += 1

:DES3_3767
if 
  35@ == 2
goto_if_false @DES3_3956
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DES3_3949
$car = Char.StoreCarIsInNoSave($scplayer)
if and
  not Char.IsInAnyHeli($scplayer)
  not Char.IsInAnyPlane($scplayer)
goto_if_false @DES3_3860
if 
  Car.IsStopped($car)
goto_if_false @DES3_3853
35@ += 1

:DES3_3853
goto @DES3_3942

:DES3_3860
Camera.DoFade(500, Fade.Out)

:DES3_3867
if 
  Camera.GetFadingStatus
goto_if_false @DES3_3891
wait 0
goto @DES3_3867

:DES3_3891
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  not Car.IsDead($car)
goto_if_false @DES3_3935
Car.SetCoordinates($car, -429.025, 2226.223, 41.4297)

:DES3_3935
35@ += 1

:DES3_3942
goto @DES3_3956

:DES3_3949
35@ += 1

:DES3_3956
if 
  35@ == 3
goto_if_false @DES3_4210
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DES3_4005
134@ = 1
goto @DES3_4012

:DES3_4005
134@ = 0

:DES3_4012
Blip.Remove(101@)
Skip.Clear
World.ClearArea(-432.3058, 2234.375, 41.4697, 5.0, True)
Camera.SetFixedPosition(-433.342, 2232.176, 43.6323, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-432.7942, 2232.997, 43.4724, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -433.0047, 2230.246, 40.4297)
Char.SetHeading($scplayer, 341.959)
Task.GoStraightToCoord($scplayer, -432.3058, 2234.375, 41.4697, MoveState.Walk, 5000)
Camera.DoFade(500, Fade.In)

:DES3_4172
if 
  Camera.GetFadingStatus
goto_if_false @DES3_4196
wait 0
goto @DES3_4172

:DES3_4196
TIMERA = 0
35@ += 1

:DES3_4210
if 
  35@ > 3
goto_if_false @DES3_4309
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DES3_4284
if 
  134@ == 0
goto_if_false @DES3_4277
35@ = 99
134@ = 1

:DES3_4277
goto @DES3_4309

:DES3_4284
if 
  134@ == 1
goto_if_false @DES3_4309
134@ = 0

:DES3_4309
if 
  35@ == 4
goto_if_false @DES3_4411
if 
  TIMERA > 1000
goto_if_false @DES3_4411
set_var_text_label s$audio_string = 'DES3_AA'
set_var_int_to_constant $audio_sound_file = 6000
start_new_script @AUDIOL -1 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 6016)
TIMERB = 0
35@ += 1

:DES3_4411
if 
  35@ == 5
goto_if_false @DES3_4591
if 
  TIMERB > 1000
goto_if_false @DES3_4591
if 
  $audio_line_is_active == 0
goto_if_false @DES3_4591
Camera.SetFixedPosition(-433.6039, 2235.21, 43.11, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-432.6751, 2234.851, 43.0197, SwitchType.JumpCut)
set_var_text_label s$audio_string = 'DES3_AB'
set_var_int_to_constant $audio_sound_file = 6016
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6001)
Task.LookAbout($scplayer, 2000)
TIMERB = 0
35@ += 1

:DES3_4591
if 
  35@ == 6
goto_if_false @DES3_4785
if 
  TIMERB > 1000
goto_if_false @DES3_4785
if 
  $audio_line_is_active == 0
goto_if_false @DES3_4785
Camera.SetFixedPosition(-430.2061, 2236.695, 42.8085, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-429.379, 2237.234, 42.9687, SwitchType.JumpCut)
set_var_text_label s$audio_string = 'DES3_AC'
set_var_int_to_constant $audio_sound_file = 6001
start_new_script @AUDIOL -1 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 6002)
Camera.ResetNewScriptables
Camera.PersistFov(True)
Camera.SetLerpFov(70.0, 100.0, 10000, True)
TIMERB = 0
35@ += 1

:DES3_4785
if 
  35@ == 7
goto_if_false @DES3_4905
if 
  TIMERB > 1000
goto_if_false @DES3_4905
if 
  $audio_line_is_active == 0
goto_if_false @DES3_4905
set_var_text_label s$audio_string = 'DES3_AD'
set_var_int_to_constant $audio_sound_file = 6002
start_new_script @AUDIOL -1 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6003)
TIMERB = 0
35@ += 1

:DES3_4905
if 
  35@ == 8
goto_if_false @DES3_5014
if 
  TIMERB > 1000
goto_if_false @DES3_5014
if 
  $audio_line_is_active == 0
goto_if_false @DES3_5014
set_var_text_label s$audio_string = 'DES3_AE'
set_var_int_to_constant $audio_sound_file = 6003
start_new_script @AUDIOL -1 0 1 1 1 
TIMERB = 0
35@ += 1

:DES3_5014
if 
  35@ == 9
goto_if_false @DES3_5076
if 
  TIMERB > 1000
goto_if_false @DES3_5076
if 
  $audio_line_is_active == 0
goto_if_false @DES3_5076
35@ = 99

:DES3_5076
if 
  35@ == 99
goto_if_false @DES3_5175
$7477 += 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -432.3058, 2234.375, 41.4697)
Char.SetHeading($scplayer, 341.959)
Car.MarkAsNoLongerNeeded($car)
Camera.ResetNewScriptables
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
gosub @DES3_26858

:DES3_5175
return 

:DES3_5177
if 
  35@ == 0
goto_if_false @DES3_5260
97@ = Pickup.CreateWithAmmo(359, PickupType.Once, 40, -431.3719, 2240.132, 42.6177)
106@ = Blip.AddForPickup(97@)
Text.PrintNow('AIR1_15', 5000, 1)
TIMERA = 0
35@ += 1

:DES3_5260
if 
  35@ == 1
goto_if_false @DES3_5429
if or
  Pickup.HasBeenCollected(97@)
  TIMERA > 7000
goto_if_false @DES3_5429
Blip.Remove(106@)
Blip.Remove(101@)
101@ = Blip.AddForCoord(-804.5877, 2377.843, 151.7558)
Text.PrintNow('AIR1_16', 7000, 1)
Streaming.RequestAnimation("BOMBER")

:DES3_5358
if 
  not Streaming.HasAnimationLoaded("BOMBER")
goto_if_false @DES3_5390
wait 0
goto @DES3_5358

:DES3_5390
Streaming.RequestModel(343)

:DES3_5395
if 
  not Streaming.HasModelLoaded(343)
goto_if_false @DES3_5422
wait 0
goto @DES3_5395

:DES3_5422
35@ += 1

:DES3_5429
if 
  35@ == 2
goto_if_false @DES3_5715
if 
  68@ == 1
goto_if_false @DES3_5502
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @DES3_5502
Char.SetCoordinates($scplayer, -798.1865, 2419.41, 155.9362)

:DES3_5502
if 
  Char.LocateAnyMeans3D($scplayer, -804.5877, 2377.843, 151.7558, 4.0, 4.0, 4.0, True)
goto_if_false @DES3_5715
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DES3_5653
80@ = Char.StoreCarIsInNoSave($scplayer)
if and
  not Char.IsInAnyHeli($scplayer)
  not Char.IsInAnyPlane($scplayer)
goto_if_false @DES3_5632
if 
  Car.IsOnAllWheels(80@)
goto_if_false @DES3_5625
Player.SetControl($player1, False)
35@ += 1

:DES3_5625
goto @DES3_5646

:DES3_5632
Player.SetControl($player1, False)
35@ += 1

:DES3_5646
goto @DES3_5715

:DES3_5653
if 
  Char.LocateStoppedOnFoot3D($scplayer, -804.5877, 2377.843, 151.7558, 4.0, 4.0, 4.0, False)
goto_if_false @DES3_5715
Player.SetControl($player1, False)
35@ += 1

:DES3_5715
if 
  35@ == 3
goto_if_false @DES3_5904
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DES3_5897
$car = Char.StoreCarIsInNoSave($scplayer)
if and
  not Char.IsInAnyHeli($scplayer)
  not Char.IsInAnyPlane($scplayer)
goto_if_false @DES3_5808
if 
  Car.IsStopped($car)
goto_if_false @DES3_5801
35@ += 1

:DES3_5801
goto @DES3_5890

:DES3_5808
Camera.DoFade(500, Fade.Out)

:DES3_5815
if 
  Camera.GetFadingStatus
goto_if_false @DES3_5839
wait 0
goto @DES3_5815

:DES3_5839
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  not Car.IsDead($car)
goto_if_false @DES3_5883
Car.SetCoordinates($car, -804.5877, 2377.843, 151.7558)

:DES3_5883
35@ += 1

:DES3_5890
goto @DES3_5904

:DES3_5897
35@ += 1

:DES3_5904
if 
  35@ == 4
goto_if_false @DES3_5965
Camera.DoFade(500, Fade.Out)

:DES3_5929
if 
  Camera.GetFadingStatus
goto_if_false @DES3_5953
wait 0
goto @DES3_5929

:DES3_5953
Blip.Remove(101@)
35@ = 99

:DES3_5965
if 
  35@ == 99
goto_if_false @DES3_5990
gosub @DES3_26858

:DES3_5990
return 

:DES3_5992
if 
  35@ == 0
goto_if_false @DES3_6261
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DES3_6034
134@ = 1

:DES3_6034
100@ = 0
Player.SetControl($player1, False)
Streaming.RequestModel(487)
Streaming.RequestModel(165)
Streaming.RequestModel(166)
Streaming.RequestModel(61)
Streaming.RequestModel(355)
Streaming.RequestModel(417)
Streaming.RequestAnimation("BOMBER")
Streaming.LoadAllModelsNow

:DES3_6089
if or
  not Streaming.HasModelLoaded(487)
  not Streaming.HasModelLoaded(165)
  not Streaming.HasModelLoaded(166)
  not Streaming.HasModelLoaded(61)
  not Streaming.HasModelLoaded(355)
  not Streaming.HasModelLoaded(417)
goto_if_false @DES3_6140
wait 0
goto @DES3_6089

:DES3_6140
if 
  not Streaming.HasAnimationLoaded("BOMBER")
goto_if_false @DES3_6172
wait 0
goto @DES3_6140

:DES3_6172
Streaming.RequestCarRecording(530)
Streaming.RequestCarRecording(531)
Streaming.RequestCarRecording(532)
Streaming.RequestCarRecording(533)
Streaming.RequestCarRecording(534)
Streaming.RequestCarRecording(535)

:DES3_6202
if or
  not Streaming.HasCarRecordingBeenLoaded(530)
  not Streaming.HasCarRecordingBeenLoaded(531)
  not Streaming.HasCarRecordingBeenLoaded(532)
  not Streaming.HasCarRecordingBeenLoaded(533)
  not Streaming.HasCarRecordingBeenLoaded(534)
  not Streaming.HasCarRecordingBeenLoaded(535)
goto_if_false @DES3_6254
wait 0
goto @DES3_6202

:DES3_6254
35@ += 1

:DES3_6261
if 
  35@ > 0
goto_if_false @DES3_6360
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DES3_6335
if 
  134@ == 0
goto_if_false @DES3_6328
35@ = 99
134@ = 1

:DES3_6328
goto @DES3_6360

:DES3_6335
if 
  134@ == 1
goto_if_false @DES3_6360
134@ = 0

:DES3_6360
if 
  35@ == 1
goto_if_false @DES3_6593
Char.ClearTasksImmediately($scplayer)
Char.HideWeaponForScriptedCutscene($scplayer, True)
World.ClearArea(-800.611, 2404.788, 155.168, 5.0, True)
World.ClearArea(-800.8441, 2408.354, 155.4525, 5.0, True)
Char.SetCoordinates($scplayer, -800.611, 2404.788, 155.168)
Char.SetHeading($scplayer, 342.2393)
Task.GoStraightToCoord($scplayer, -800.8441, 2408.354, 155.4525, MoveState.Walk, 10000)
Camera.SetFixedPosition(-797.7917, 2403.735, 157.1193, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-798.3541, 2404.542, 156.9353, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Camera.DoFade(500, Fade.In)

:DES3_6555
if 
  Camera.GetFadingStatus
goto_if_false @DES3_6579
wait 0
goto @DES3_6555

:DES3_6579
35@ += 1
TIMERA = 0

:DES3_6593
if 
  35@ == 2
goto_if_false @DES3_6674
if or
  Char.LocateOnFoot3D($scplayer, -800.8441, 2408.354, 155.4525, 1.0, 1.0, 2.0, False)
  TIMERA > 5000
goto_if_false @DES3_6674
35@ += 1

:DES3_6674
if 
  35@ == 3
goto_if_false @DES3_6869
94@ = Object.Create(343, 0.0, 0.0, 0.0)
49@ = Sequence.Open()
Task.PickUpObject(-1, 94@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)
Task.PlayAnim(-1, "BOM_PLANT_IN", "BOMBER", 4.0, False, False, False, True, -1)
Task.PlayAnim(-1, "BOM_PLANT_LOOP", "BOMBER", 4.0, False, False, False, False, -1)
Sequence.Close(49@)
Char.PerformSequence($scplayer, 49@)
Sequence.Clear(49@)
35@ += 1

:DES3_6869
if 
  35@ == 4
goto_if_false @DES3_6977
if 
  Char.IsPlayingAnim($scplayer, "BOM_PLANT_LOOP")
goto_if_false @DES3_6977
Camera.SetFixedPosition(-789.7653, 2416.895, 163.5839, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-790.3218, 2416.124, 163.2729, SwitchType.JumpCut)
35@ += 1

:DES3_6977
if 
  35@ == 5
goto_if_false @DES3_7178
43@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @DES3_7178
Char.DropObject($scplayer, False)
Object.FreezePosition(94@, True)
$x, $y, $z = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, 0.0)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
$z += 0.05
Object.SetCoordinates(94@, $x, $y, $z)
100@ = Particle.CreateOnObject("SMOKE_FLARE", 94@, 0.0, 0.0, 0.1, 1)
Particle.Play(100@)
Char.ClearTasks($scplayer)
TIMERA = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6004)
35@ += 1

:DES3_7178
if 
  35@ == 6
goto_if_false @DES3_7222
if 
  TIMERA > 4000
goto_if_false @DES3_7222
35@ += 1

:DES3_7222
if 
  35@ == 7
goto_if_false @DES3_7388
Camera.SetFixedPosition(-779.9253, 2418.338, 157.8122, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-778.9708, 2418.629, 157.7476, SwitchType.JumpCut)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -786.2731, 2416.113, 156.0893)
Char.SetHeading($scplayer, 284.998)
Task.GoStraightToCoord($scplayer, -782.2095, 2417.027, 156.1289, MoveState.Walk, 5000)
Camera.ResetNewScriptables
Camera.PersistFov(True)
Camera.SetLerpFov(70.0, 100.0, 10000, True)
TIMERA = 0
35@ += 1

:DES3_7388
if 
  35@ == 8
goto_if_false @DES3_7515
if 
  TIMERA > 1000
goto_if_false @DES3_7515
set_var_text_label s$audio_string = 'DES3_BA'
set_var_int_to_constant $audio_sound_file = 6004
start_new_script @AUDIOL -1 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 6012)
Task.LookAtCoord($scplayer, -809.4514, 2426.515, 158.8622, 99999)
TIMERA = 0
35@ += 1

:DES3_7515
if 
  35@ == 9
goto_if_false @DES3_7636
if 
  TIMERA > 1000
goto_if_false @DES3_7636
if 
  $audio_line_is_active == 0
goto_if_false @DES3_7636
set_var_text_label s$audio_string = 'DES3_BB'
set_var_int_to_constant $audio_sound_file = 6012
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6005)
TIMERA = 0
35@ += 1

:DES3_7636
if 
  35@ == 10
goto_if_false @DES3_7698
if 
  TIMERA > 1000
goto_if_false @DES3_7698
if 
  $audio_line_is_active == 0
goto_if_false @DES3_7698
35@ += 1

:DES3_7698
if 
  35@ == 11
goto_if_false @DES3_8436
Camera.DoFade(500, Fade.Out)

:DES3_7723
if 
  Camera.GetFadingStatus
goto_if_false @DES3_7747
wait 0
goto @DES3_7723

:DES3_7747
196@ = Audio.GetRadioChannel()
Audio.SetRadioChannel(RadioChannel.UserTracks)
if 
  Car.DoesExist(71@)
goto_if_false @DES3_7824
if 
  not Car.IsDead(71@)
goto_if_false @DES3_7824
if 
  not Char.LocateAnyMeansCar2D($scplayer, 71@, 100.0, 100.0, False)
goto_if_false @DES3_7824
Car.MarkAsNoLongerNeeded(71@)

:DES3_7824
if 
  Car.DoesExist(73@)
goto_if_false @DES3_7892
if 
  not Car.IsDead(73@)
goto_if_false @DES3_7892
if 
  not Char.LocateAnyMeansCar2D($scplayer, 73@, 100.0, 100.0, False)
goto_if_false @DES3_7892
Car.MarkAsNoLongerNeeded(73@)

:DES3_7892
if 
  Car.DoesExist(72@)
goto_if_false @DES3_7960
if 
  not Car.IsDead(72@)
goto_if_false @DES3_7960
if 
  not Char.LocateAnyMeansCar2D($scplayer, 72@, 100.0, 100.0, False)
goto_if_false @DES3_7960
Car.MarkAsNoLongerNeeded(72@)

:DES3_7960
$x = -778.9708
$x += 779.9253
$y = 2418.629
$y -= 2418.338
$heading = Math.GetHeadingFromVector2D($x, $y)
Streaming.LoadSceneInDirection(-1373.0, 2004.0, 108.0, $heading)
gosub @DES3_17557
if 
  not Car.IsDead(74@)
goto_if_false @DES3_8142
Car.StartPlayback(74@, 530)
$x, $y, $z = Car.GetOffsetInWorldCoords(74@, 0.0, -20.0, 0.0)
77@ = Car.Create(417, $x, $y, $z)
Heli.SetBladesFullSpeed(77@)
Car.StartPlayback(77@, 531)
Car.SetVisible(77@, False)
Hud.SwitchWidescreen(True)
Char.WarpIntoCarAsPassenger($scplayer, 74@, 0)

:DES3_8142
108@ = 0
62@ = 0
if 
  not Car.IsDead(77@)
goto_if_false @DES3_8219
Heli.DisableAudio(77@, True)
$x, $y, $z = Car.GetCoordinates(77@)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)

:DES3_8219
if 
  not Car.IsDead(74@)
goto_if_false @DES3_8277
$x, $y, $z = Car.GetOffsetInWorldCoords(74@, 5.0, -10.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:DES3_8277
Camera.DoFade(500, Fade.In)

:DES3_8284
if 
  Camera.GetFadingStatus
goto_if_false @DES3_8422
if 
  not Car.IsDead(77@)
goto_if_false @DES3_8353
$x, $y, $z = Car.GetCoordinates(77@)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)

:DES3_8353
if 
  not Car.IsDead(74@)
goto_if_false @DES3_8411
$x, $y, $z = Car.GetOffsetInWorldCoords(74@, 5.0, -10.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:DES3_8411
wait 0
goto @DES3_8284

:DES3_8422
TIMERA = 0
35@ += 1

:DES3_8436
if 
  35@ == 12
goto_if_false @DES3_8608
if 
  not Car.IsDead(77@)
goto_if_false @DES3_8510
$x, $y, $z = Car.GetCoordinates(77@)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)

:DES3_8510
if 
  not Car.IsDead(74@)
goto_if_false @DES3_8568
$x, $y, $z = Car.GetOffsetInWorldCoords(74@, 5.0, -10.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:DES3_8568
if 
  TIMERA > 11700
goto_if_false @DES3_8608
Camera.DoFade(300, Fade.Out)
TIMERA = 0
35@ += 1

:DES3_8608
if 
  35@ == 13
goto_if_false @DES3_8806
if 
  Camera.GetFadingStatus
goto_if_false @DES3_8760
if 
  not Car.IsDead(77@)
goto_if_false @DES3_8695
$x, $y, $z = Car.GetCoordinates(77@)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)

:DES3_8695
if 
  not Car.IsDead(74@)
goto_if_false @DES3_8753
$x, $y, $z = Car.GetOffsetInWorldCoords(74@, 5.0, -10.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:DES3_8753
goto @DES3_8806

:DES3_8760
Camera.SetFixedPosition(-1047.62, 2164.925, 88.4215, 0.0, 0.0, 0.0)
TIMERA = 0
35@ += 1

:DES3_8806
if 
  35@ == 14
goto_if_false @DES3_9254
if 
  not Car.IsDead(74@)
goto_if_false @DES3_8861
if 
  Car.IsPlaybackGoingOn(74@)
goto_if_false @DES3_8861
Car.StopPlayback(74@)

:DES3_8861
gosub @DES3_18288
gosub @DES3_23443
if 
  not Car.IsDead(75@)
goto_if_false @DES3_8904
Car.StartPlayback(75@, 532)
Car.PausePlayback(75@)

:DES3_8904
if 
  not Car.IsDead(76@)
goto_if_false @DES3_8933
Car.StartPlayback(76@, 533)
Car.PausePlayback(76@)

:DES3_8933
if 
  not Car.IsDead(74@)
goto_if_false @DES3_8962
Car.StartPlayback(74@, 535)
Car.PausePlayback(74@)

:DES3_8962
Camera.SetFixedPosition(-798.5942, 2436.184, 172.1772, 0.0, 0.0, 0.0)
if 
  not Car.IsDead(74@)
goto_if_false @DES3_9039
$x, $y, $z = Car.GetOffsetInWorldCoords(74@, -15.0, 5.0, -3.0)

:DES3_9039
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
Streaming.LoadSceneInDirection(-778.0, 2465.0, 168.0, 45.0)
if 
  not Car.IsDead(75@)
goto_if_false @DES3_9095
Car.UnpausePlayback(75@)

:DES3_9095
if 
  not Car.IsDead(76@)
goto_if_false @DES3_9116
Car.UnpausePlayback(76@)

:DES3_9116
if 
  not Car.IsDead(74@)
goto_if_false @DES3_9137
Car.UnpausePlayback(74@)

:DES3_9137
Camera.DoFade(300, Fade.In)

:DES3_9144
if 
  Camera.GetFadingStatus
goto_if_false @DES3_9226
if 
  not Car.IsDead(74@)
goto_if_false @DES3_9202
$x, $y, $z = Car.GetOffsetInWorldCoords(74@, -15.0, 5.0, -3.0)

:DES3_9202
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
wait 0
goto @DES3_9144

:DES3_9226
62@ = 0
TIMERB = 0
TIMERA = 0
35@ += 1

:DES3_9254
if 
  35@ == 15
goto_if_false @DES3_10273
if 
  62@ <> 7
goto_if_false @DES3_10006
if 
  not Car.IsDead(74@)
goto_if_false @DES3_9335
$x, $y, $z = Car.GetOffsetInWorldCoords(74@, -15.0, 5.0, -3.0)

:DES3_9335
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
if 
  TIMERB > 1000
goto_if_false @DES3_9999
switch_start 62@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @DES3_9999 {caseNum1} 0 {caseLabel1} @DES3_9430 {caseNum2} 1 {caseLabel2} @DES3_9520 {caseNum3} 2 {caseLabel3} @DES3_9610 {caseNum4} 3 {caseLabel4} @DES3_9700 {caseNum5} 4 {caseLabel5} @DES3_9790 {caseNum6} 5 {caseLabel6} @DES3_9881 {caseNum7} 6 {caseLabel7} @DES3_9960

:DES3_9430
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9513
set_var_text_label s$audio_string = 'DES3_BC'
set_var_int_to_constant $audio_sound_file = 6005
start_new_script @AUDIOL -1 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 6006)
TIMERB = 0
62@ += 1

:DES3_9513
goto @DES3_9999

:DES3_9520
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9603
set_var_text_label s$audio_string = 'DES3_BD'
set_var_int_to_constant $audio_sound_file = 6006
start_new_script @AUDIOL -1 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6007)
TIMERB = 0
62@ += 1

:DES3_9603
goto @DES3_9999

:DES3_9610
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9693
set_var_text_label s$audio_string = 'DES3_BE'
set_var_int_to_constant $audio_sound_file = 6007
start_new_script @AUDIOL -1 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 6008)
TIMERB = 0
62@ += 1

:DES3_9693
goto @DES3_9999

:DES3_9700
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9783
set_var_text_label s$audio_string = 'DES3_BF'
set_var_int_to_constant $audio_sound_file = 6008
start_new_script @AUDIOL -1 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6013)
TIMERB = 0
62@ += 1

:DES3_9783
goto @DES3_9999

:DES3_9790
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9874
set_var_text_label s$audio_string = 'DES3_BG'
set_var_int_to_constant $audio_sound_file = 6013
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 6009)
TIMERB = 0
62@ += 1

:DES3_9874
goto @DES3_9999

:DES3_9881
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9953
set_var_text_label s$audio_string = 'DES3_BH'
set_var_int_to_constant $audio_sound_file = 6009
start_new_script @AUDIOL -1 0 1 2 1 
TIMERB = 0
62@ += 1

:DES3_9953
goto @DES3_9999

:DES3_9960
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9992
TIMERB = 0
62@ += 1

:DES3_9992
goto @DES3_9999

:DES3_9999
goto @DES3_10273

:DES3_10006
if 
  TIMERB > 2000
goto_if_false @DES3_10215
if 
  not Car.IsDead(74@)
goto_if_false @DES3_10070
$x, $y, $z = Car.GetOffsetInWorldCoords(74@, -15.0, 5.0, -3.0)

:DES3_10070
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
if 
  not Car.IsDead(75@)
goto_if_false @DES3_10120
if 
  Car.IsPlaybackGoingOn(75@)
goto_if_false @DES3_10120
Car.StopPlayback(75@)

:DES3_10120
if 
  not Car.IsDead(76@)
goto_if_false @DES3_10157
if 
  Car.IsPlaybackGoingOn(76@)
goto_if_false @DES3_10157
Car.StopPlayback(76@)

:DES3_10157
if 
  not Car.IsDead(74@)
goto_if_false @DES3_10194
if 
  Car.IsPlaybackGoingOn(74@)
goto_if_false @DES3_10194
Car.StopPlayback(74@)

:DES3_10194
Camera.DoFade(150, Fade.Out)
35@ += 1
goto @DES3_10273

:DES3_10215
if 
  not Car.IsDead(74@)
goto_if_false @DES3_10260
$x, $y, $z = Car.GetOffsetInWorldCoords(74@, -15.0, 5.0, -3.0)

:DES3_10260
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:DES3_10273
if 
  35@ == 16
goto_if_false @DES3_10376
if 
  Camera.GetFadingStatus
goto_if_false @DES3_10369
if 
  not Car.IsDead(74@)
goto_if_false @DES3_10349
$x, $y, $z = Car.GetOffsetInWorldCoords(74@, -15.0, 5.0, -3.0)

:DES3_10349
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
goto @DES3_10376

:DES3_10369
35@ = 99

:DES3_10376
if 
  35@ == 99
goto_if_false @DES3_10727
Camera.DoFade(0, Fade.Out)
if 
  Object.DoesExist(94@)
goto_if_false @DES3_10510
if 
  Char.IsHoldingObject($scplayer, 94@)
goto_if_false @DES3_10442
Char.DropObject($scplayer, True)

:DES3_10442
if 
  100@ == 0
goto_if_false @DES3_10503
100@ = Particle.CreateOnObject("SMOKE_FLARE", 94@, 0.0, 0.0, 0.1, 1)
Particle.Play(100@)

:DES3_10503
goto @DES3_10624

:DES3_10510
$x = -800.8441
$y = 2408.354
$z = 155.4525
$z = World.GetGroundZFor3DCoord($x, $y, $z)
$z += 1.0
94@ = Object.Create(343, $x, $y, $z)
100@ = Particle.CreateOnObject("SMOKE_FLARE", 94@, 0.0, 0.0, 0.1, 1)
Particle.Play(100@)

:DES3_10624
Camera.ResetNewScriptables
Char.ClearTasksImmediately($scplayer)
Streaming.LoadScene(-806.467, 2420.75, 155.9102)
Char.SetCoordinates($scplayer, -806.467, 2420.75, 155.9102)
Char.SetHeading($scplayer, 190.8497)
if 
  Car.DoesExist(77@)
goto_if_false @DES3_10699
Car.Delete(77@)

:DES3_10699
gosub @DES3_17660
gosub @DES3_19147
gosub @DES3_24422
gosub @DES3_26858

:DES3_10727
return 

:DES3_10729
if 
  35@ == 0
goto_if_false @DES3_11344
Streaming.RequestModel(487)
Streaming.RequestModel(165)
Streaming.RequestModel(166)
Streaming.RequestModel(61)
Streaming.RequestModel(355)
Streaming.RequestModel(417)

:DES3_10776
if or
  not Streaming.HasModelLoaded(487)
  not Streaming.HasModelLoaded(165)
  not Streaming.HasModelLoaded(166)
  not Streaming.HasModelLoaded(61)
  not Streaming.HasModelLoaded(355)
  not Streaming.HasModelLoaded(417)
goto_if_false @DES3_10827
wait 0
goto @DES3_10776

:DES3_10827
133@ = 0
231@ = -780.6791
232@ = 2482.339
233@ = 170.8723
234@ = 151.9289
gosub @DES3_18288
259@ = -750.933
260@ = 2465.285
261@ = 180.7247
262@ = 144.1498
gosub @DES3_23443
227@ = -772.2108
228@ = 2419.843
229@ = 174.0836
230@ = 176.9396
gosub @DES3_17557
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -789.7678, 2416.916, 156.022)
Char.SetHeading($scplayer, 190.8497)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
TIMERA = 0
111@ = 0
114@ = 0
set_lvar_int_to_constant 109@ = 5
112@ = 0
set_lvar_int_to_constant 110@ = 0
113@ = 0
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
$7494 = 100
Text.PrintNow('AIR1_06', 7000, 1)
Hud.DisplayCounterWithString($7494, CounterDisplay.Bar, 'AIR1_17')
if 
  not Car.IsDead(71@)
goto_if_false @DES3_11140
Car.CanBeTargetedByHsMissile(71@, False)

:DES3_11140
if 
  not Car.IsDead(72@)
goto_if_false @DES3_11163
Car.CanBeTargetedByHsMissile(72@, False)

:DES3_11163
if 
  not Car.IsDead(73@)
goto_if_false @DES3_11186
Car.CanBeTargetedByHsMissile(73@, False)

:DES3_11186
if 
  not Car.IsDead(74@)
goto_if_false @DES3_11209
Car.CanBeTargetedByHsMissile(74@, False)

:DES3_11209
98@ = Pickup.Create(#HEALTH, PickupType.Once, -770.752, 2423.63, 157.0753)
99@ = Pickup.CreateWithAmmo(359, PickupType.Once, 20, -808.1523, 2430.788, 156.9872)
Game.SetMaxFireGenerations(3)
Game.SetWantedMultiplier(0.5)
Game.SetMaxWantedLevel(2)
Game.SwitchPoliceHelis(False)
197@ = 0
129@ = 1
130@ = 1
Audio.SetRadioChannel(196@)
Camera.DoFade(150, Fade.In)

:DES3_11313
if 
  Camera.GetFadingStatus
goto_if_false @DES3_11337
wait 0
goto @DES3_11313

:DES3_11337
35@ += 1

:DES3_11344
if 
  not Car.IsDead(74@)
goto_if_false @DES3_11704
if 
  139@ > 50
goto_if_false @DES3_11660
43@ = Car.GetHealth(74@)
if 
  43@ > 100
goto_if_false @DES3_11653
43@ = 0
if 
  not Car.IsDead(75@)
goto_if_false @DES3_11490
$x, $y, $z = Car.GetCoordinates(75@)
if 
  Car.Locate3D(74@, $x, $y, $z, 40.0, 40.0, 40.0, False)
goto_if_false @DES3_11490
43@ = 1

:DES3_11490
if 
  43@ == 0
goto_if_false @DES3_11587
if 
  not Car.IsDead(76@)
goto_if_false @DES3_11587
$x, $y, $z = Car.GetCoordinates(76@)
if 
  Car.Locate3D(74@, $x, $y, $z, 40.0, 40.0, 40.0, False)
goto_if_false @DES3_11587
43@ = 1

:DES3_11587
if 
  43@ == 1
goto_if_false @DES3_11653
43@ = Car.GetHealth(74@)
43@ += -5
if 
  0 > 43@
goto_if_false @DES3_11645
43@ = 1

:DES3_11645
Car.SetHealth(74@, 43@)

:DES3_11653
139@ = 0

:DES3_11660
43@ = Car.GetHealth(74@)
cset_lvar_float_to_lvar_int 46@ =# 43@
46@ /= 5000.0
46@ *= 100.0
cset_var_int_to_lvar_float $7494 =# 46@

:DES3_11704
if 
  35@ == 1
goto_if_false @DES3_12253
if 
  133@ == 5
goto_if_false @DES3_11772
if 
  197@ == 0
goto_if_false @DES3_11772
set_lvar_int_to_constant 109@ = 5
197@ += 1

:DES3_11772
if 
  5 > 133@
goto_if_false @DES3_11901
if 
  75@ == 0
goto_if_false @DES3_11901
if 
  129@ == 0
goto_if_false @DES3_11901
231@ = -344.9471
232@ = 2724.421
233@ = 186.0
234@ = 110.0
gosub @DES3_18288
set_lvar_int_to_constant 109@ = 0
112@ = 0
129@ += 1
TIMERA = 0

:DES3_11901
if 
  5 > 133@
goto_if_false @DES3_12030
if 
  76@ == 0
goto_if_false @DES3_12030
if 
  130@ == 0
goto_if_false @DES3_12030
259@ = -324.9471
260@ = 2704.421
261@ = 186.0
262@ = 110.0
gosub @DES3_23443
set_lvar_int_to_constant 110@ = 0
113@ = 0
130@ += 1
TIMERB = 0

:DES3_12030
if 
  129@ > 0
goto_if_false @DES3_12094
if 
  75@ == 0
goto_if_false @DES3_12094
127@ += 1
131@ += 1
129@ = 0
TIMERA = 0

:DES3_12094
if 
  130@ > 0
goto_if_false @DES3_12158
if 
  76@ == 0
goto_if_false @DES3_12158
128@ += 1
131@ += 1
130@ = 0
TIMERB = 0

:DES3_12158
if 
  68@ == 1
goto_if_false @DES3_12200
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @DES3_12200
131@ = 5

:DES3_12200
if 
  131@ == 5
goto_if_false @DES3_12232
TIMERA = 0
35@ += 1

:DES3_12232
gosub @DES3_17718
gosub @DES3_19279
gosub @DES3_24554

:DES3_12253
if 
  35@ == 2
goto_if_false @DES3_12297
if 
  TIMERA > 2000
goto_if_false @DES3_12297
35@ = 99

:DES3_12297
if 
  35@ == 99
goto_if_false @DES3_12359
Game.SetWantedMultiplier(1.0)
Game.SetMaxWantedLevel(6)
Hud.ClearCounter($7494)
gosub @DES3_17660
gosub @DES3_19147
gosub @DES3_24422
gosub @DES3_26858

:DES3_12359
return 

:DES3_12361
if 
  35@ == 0
goto_if_false @DES3_12673
Streaming.RequestModel(417)
Streaming.RequestModel(61)
Streaming.RequestModel(355)
Streaming.RequestModel(#KMB_HOLDALL)
Streaming.RequestModel(#KMB_PARACHUTE)
Streaming.RequestModel(508)
Streaming.RequestModel(68)
Streaming.RequestModel(75)
Streaming.RequestModel(568)

:DES3_12421
if or
  not Streaming.HasModelLoaded(417)
  not Streaming.HasModelLoaded(61)
  not Streaming.HasModelLoaded(355)
  not Streaming.HasModelLoaded(#KMB_HOLDALL)
  not Streaming.HasModelLoaded(#KMB_PARACHUTE)
goto_if_false @DES3_12467
wait 0
goto @DES3_12421

:DES3_12467
if or
  not Streaming.HasModelLoaded(508)
  not Streaming.HasModelLoaded(568)
goto_if_false @DES3_12499
wait 0
goto @DES3_12467

:DES3_12499
Streaming.RequestCarRecording(536)
Streaming.RequestCarRecording(537)
Streaming.RequestCarRecording(538)

:DES3_12514
if or
  not Streaming.HasCarRecordingBeenLoaded(536)
  not Streaming.HasCarRecordingBeenLoaded(537)
  not Streaming.HasCarRecordingBeenLoaded(538)
goto_if_false @DES3_12551
wait 0
goto @DES3_12514

:DES3_12551
gosub @DES3_17557
if 
  not Car.IsDead(74@)
goto_if_false @DES3_12582
Car.StartPlayback(74@, 536)

:DES3_12582
Char.SetProofs($scplayer, True, True, True, True, True)
Char.FreezePosition($scplayer, True)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-720.812, 2476.182, 171.2749, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-721.6284, 2475.607, 171.2184, SwitchType.JumpCut)
TIMERA = 0
35@ += 1

:DES3_12673
if and
  35@ > 0
  TIMERA > 3000
goto_if_false @DES3_12723
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DES3_12723
35@ = 99

:DES3_12723
if 
  35@ == 1
goto_if_false @DES3_12900
if 
  5000 > TIMERA
goto_if_false @DES3_12825
if 
  not Car.IsDead(74@)
goto_if_false @DES3_12818
$x, $y, $z = Car.GetOffsetInWorldCoords(74@, 3.0, -5.0, -2.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:DES3_12818
goto @DES3_12900

:DES3_12825
Camera.DoFade(300, Fade.Out)

:DES3_12832
if 
  Camera.GetFadingStatus
goto_if_false @DES3_12856
wait 0
goto @DES3_12832

:DES3_12856
if 
  not Car.IsDead(74@)
goto_if_false @DES3_12893
if 
  Car.IsPlaybackGoingOn(74@)
goto_if_false @DES3_12893
Car.StopPlayback(74@)

:DES3_12893
35@ += 1

:DES3_12900
if 
  35@ == 2
goto_if_false @DES3_13189
if 
  not Car.IsDead(74@)
goto_if_false @DES3_13189
Camera.DoFade(300, Fade.In)
Car.StartPlaybackLooped(74@, 538)
Camera.SetFixedPosition(247.7597, 2515.937, 82.7789, 0.0, 0.0, 0.0)
Camera.PointAtPoint(246.7721, 2515.894, 82.6276, SwitchType.JumpCut)
Car.SkipInPlayback(74@, 100.0)
96@ = Object.Create(#KMB_HOLDALL, 0.0, 0.0, 0.0)
Object.AttachToCar(96@, 74@, 0.0, -2.0, -0.5, 0.0, 0.0, 0.0)
Object.SetVisible(96@, False)
95@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
Object.AttachToCar(95@, 74@, 0.0, 0.0, -2.5, 0.0, 0.0, 0.0)
Object.SetVisible(95@, False)
TIMERA = 0
142@ = 2.0
143@ = -7.0
144@ = 1.0
35@ += 1

:DES3_13189
if 
  35@ == 3
goto_if_false @DES3_13426
if 
  Object.DoesExist(95@)
goto_if_false @DES3_13246
$x, $y, $z = Object.GetOffsetInWorldCoords(95@, 142@, 143@, 144@)

:DES3_13246
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
if 
  TIMERA > 7000
goto_if_false @DES3_13426
Camera.SetFixedPosition(296.2388, 2480.553, 97.5696, 0.0, 0.0, 0.0)
Camera.PointAtPoint(295.5632, 2481.153, 97.141, SwitchType.JumpCut)
if 
  Object.DoesExist(96@)
goto_if_false @DES3_13367
Object.Detach(96@, 0.0, 0.0, 0.0, False)

:DES3_13367
Object.SetVisible(96@, True)
if 
  Object.DoesExist(95@)
goto_if_false @DES3_13412
Object.Detach(95@, 0.0, 0.0, 0.0, False)

:DES3_13412
TIMERA = 0
35@ += 1

:DES3_13426
if 
  35@ == 4
goto_if_false @DES3_13616
if 
  TIMERA > 1200
goto_if_false @DES3_13558
208@ = 264.2501
209@ = 2877.011
210@ = 13.7096
gosub @DES3_16532
if 
  Object.DoesExist(96@)
goto_if_false @DES3_13544
$x, $y, $z = Object.GetCoordinates(96@)
Audio.ReportMissionAudioEventAtPosition($x, $y, $z, 1039)

:DES3_13544
TIMERA = 0
35@ += 1

:DES3_13558
if 
  Object.DoesExist(95@)
goto_if_false @DES3_13616
$x, $y, $z = Object.GetVelocity(95@)
$z *= -0.1
Object.AddToVelocity(95@, 0.0, 0.0, $z)

:DES3_13616
if 
  35@ == 5
goto_if_false @DES3_13725
gosub @DES3_16957
if 
  TIMERA > 5000
goto_if_false @DES3_13667
35@ = 99

:DES3_13667
if 
  Object.DoesExist(95@)
goto_if_false @DES3_13725
$x, $y, $z = Object.GetVelocity(95@)
$z *= -0.5
Object.AddToVelocity(95@, 0.0, 0.0, $z)

:DES3_13725
if 
  35@ == 99
goto_if_false @DES3_14043
Camera.DoFade(0, Fade.In)
if 
  not Car.IsDead(80@)
goto_if_false @DES3_13780
107@ = Blip.AddForCar(80@)
goto @DES3_13840

:DES3_13780
Car.MarkAsNoLongerNeeded(80@)
World.ClearArea(-804.5877, 2377.843, 151.7558, 5.0, True)
80@ = Car.Create(568, -804.5877, 2377.843, 151.7558)
107@ = Blip.AddForCar(80@)

:DES3_13840
$x, $y, $z = Char.GetCoordinates($scplayer)
World.ClearArea($x, $y, $z, 20.0, True)
Blip.SetAsFriendly(107@, True)
Streaming.MarkModelAsNoLongerNeeded(568)
79@ = Car.Create(508, -680.7584, 2466.081, 114.9057)
Car.SetHeading(79@, 75.939)
92@ = Char.CreateInsideCar(79@, PedType.CivMale, 68)
93@ = Char.CreateAsPassenger(79@, PedType.CivFemale, 75, 0)
Task.CarDriveToCoord(92@, 79@, -726.9384, 2357.388, 125.5138, 10.0, DriveMode.Normal, 1, DrivingMode.AvoidCars)
Streaming.MarkModelAsNoLongerNeeded(68)
Streaming.MarkModelAsNoLongerNeeded(75)
Char.SetProofs($scplayer, False, False, False, False, False)
Char.FreezePosition($scplayer, False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
wait 0
Object.Delete(96@)
Object.Delete(95@)
gosub @DES3_17660
gosub @DES3_26858

:DES3_14043
return 

:DES3_14045
if 
  35@ == 0
goto_if_false @DES3_14308
Text.PrintNow('AIR1_09', 7000, 1)
Streaming.RequestModel(487)
Streaming.RequestModel(61)
Streaming.RequestModel(355)
Streaming.RequestModel(#KMB_HOLDALL)
Streaming.RequestModel(#KMB_PARACHUTE)
Streaming.RequestModel(165)
Streaming.RequestModel(166)

:DES3_14113
if or
  not Streaming.HasModelLoaded(487)
  not Streaming.HasModelLoaded(61)
  not Streaming.HasModelLoaded(355)
  not Streaming.HasModelLoaded(#KMB_HOLDALL)
  not Streaming.HasModelLoaded(165)
  not Streaming.HasModelLoaded(166)
goto_if_false @DES3_14164
wait 0
goto @DES3_14113

:DES3_14164
if 
  not Streaming.HasModelLoaded(#KMB_PARACHUTE)
goto_if_false @DES3_14191
wait 0
goto @DES3_14164

:DES3_14191
214@ = 216.9669
215@ = 2689.149
216@ = 90.0
208@ = 264.2501
209@ = 2877.011
210@ = 13.7096
if 
  Object.DoesExist(96@)
goto_if_false @DES3_14272
Object.Delete(96@)

:DES3_14272
gosub @DES3_16532
105@ = Blip.AddForObject(96@)
Object.SetScale(96@, 0.3)
Game.SwitchPoliceHelis(True)
35@ += 1

:DES3_14308
if 
  35@ == 1
goto_if_false @DES3_14516
if 
  68@ == 1
goto_if_false @DES3_14381
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @DES3_14381
Char.SetCoordinates($scplayer, 417.0, 2493.0, 27.83)

:DES3_14381
if 
  226@ == 0
goto_if_false @DES3_14516
if 
  Object.DoesExist(96@)
goto_if_false @DES3_14516
$x, $y, $z = Object.GetCoordinates(96@)
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 1.5, 1.5, 1.5, False)
goto_if_false @DES3_14516
if 
  Blip.DoesExist(107@)
goto_if_false @DES3_14492
Blip.Remove(107@)

:DES3_14492
Object.Delete(96@)
Blip.Remove(105@)
TIMERA = 0
35@ += 1

:DES3_14516
if 
  35@ == 2
goto_if_false @DES3_14691
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(269.6016, 2868.464, 15.2584, 0.0, 0.0, 0.0)
Camera.PointAtPoint(269.2238, 2869.373, 15.0806, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 265.7708, 2873.078, 13.4336)
Char.SetHeading($scplayer, 266.1126)
set_var_text_label s$audio_string = 'DES3_CA'
set_var_int_to_constant $audio_sound_file = 6010
start_new_script @AUDIOL -1 0 1 1 0 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 6014)
TIMERB = 0
35@ += 1

:DES3_14691
if 
  35@ == 3
goto_if_false @DES3_14812
if 
  TIMERB > 1000
goto_if_false @DES3_14812
if 
  $audio_line_is_active == 0
goto_if_false @DES3_14812
set_var_text_label s$audio_string = 'DES3_CB'
set_var_int_to_constant $audio_sound_file = 6014
start_new_script @AUDIOL $scplayer 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 6015)
35@ += 1
TIMERB = 0

:DES3_14812
if 
  35@ == 4
goto_if_false @DES3_14933
if 
  TIMERB > 1000
goto_if_false @DES3_14933
if 
  $audio_line_is_active == 0
goto_if_false @DES3_14933
set_var_text_label s$audio_string = 'DES3_CC'
set_var_int_to_constant $audio_sound_file = 6015
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 6011)
35@ += 1
TIMERB = 0

:DES3_14933
if 
  35@ == 5
goto_if_false @DES3_15042
if 
  TIMERB > 1000
goto_if_false @DES3_15042
if 
  $audio_line_is_active == 0
goto_if_false @DES3_15042
set_var_text_label s$audio_string = 'DES3_CD'
set_var_int_to_constant $audio_sound_file = 6011
start_new_script @AUDIOL -1 0 1 2 1 
35@ += 1
TIMERB = 0

:DES3_15042
if 
  35@ == 6
goto_if_false @DES3_15127
if 
  TIMERB > 1000
goto_if_false @DES3_15127
if 
  $audio_line_is_active == 0
goto_if_false @DES3_15127
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
35@ += 1

:DES3_15127
if 
  35@ == 7
goto_if_false @DES3_15195
Text.PrintNow('AIR1_10', 7000, 1)
101@ = Blip.AddForCoord(-394.8462, 2226.622, 41.4259)
198@ = 0
35@ += 1

:DES3_15195
if 
  35@ == 8
goto_if_false @DES3_15594
if 
  198@ == 0
goto_if_false @DES3_15304
if 
  Char.LocateAnyMeans3D($scplayer, -394.8462, 2226.622, 41.4259, 25.0, 25.0, 20.0, False)
goto_if_false @DES3_15297
Garage.Open('GHOSTDR')
198@ = 1

:DES3_15297
goto @DES3_15370

:DES3_15304
if 
  not Char.LocateAnyMeans3D($scplayer, -394.8462, 2226.622, 41.4259, 40.0, 40.0, 20.0, False)
goto_if_false @DES3_15370
Garage.Close('GHOSTDR')
198@ = 0

:DES3_15370
if 
  Blip.DoesExist(101@)
goto_if_false @DES3_15550
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DES3_15488
if 
  Char.LocateInCar3D($scplayer, -394.8462, 2226.622, 41.4259, 4.0, 4.0, 4.0, True)
goto_if_false @DES3_15481
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.IsOnAllWheels($car)
goto_if_false @DES3_15481
35@ += 1

:DES3_15481
goto @DES3_15543

:DES3_15488
if 
  Char.LocateOnFoot3D($scplayer, -394.8462, 2226.622, 41.4259, 1.2, 1.2, 2.0, True)
goto_if_false @DES3_15543
35@ += 1

:DES3_15543
goto @DES3_15594

:DES3_15550
if 
  TIMERA > 60000
goto_if_false @DES3_15594
Text.PrintNow('AIR1_11', 7000, 1)
TIMERA = 0

:DES3_15594
if 
  35@ == 9
goto_if_false @DES3_15740
Player.SetControl($player1, False)
Garage.Close('GHOSTDR')
Camera.DoFade(1000, Fade.Out)

:DES3_15637
if 
  Camera.GetFadingStatus
goto_if_false @DES3_15661
wait 0
goto @DES3_15637

:DES3_15661
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -389.8034, 2230.742, 41.4297)
Char.SetHeading($scplayer, 270.0)
Camera.SetInFrontOfPlayer
Camera.RestoreJumpcut

:DES3_15700
if 
  not Garage.IsClosed('GHOSTDR')
goto_if_false @DES3_15733
wait 0
goto @DES3_15700

:DES3_15733
36@ = 1

:DES3_15740
if 
  132@ == 0
goto_if_false @DES3_15906
if 
  Car.DoesExist(75@)
goto_if_false @DES3_15906
if 
  not Car.IsDead(75@)
goto_if_false @DES3_15906
$x, $y, $z = Char.GetCoordinates($scplayer)
if 
  not Car.Locate3D(75@, $x, $y, $z, 100.0, 100.0, 100.0, False)
goto_if_false @DES3_15860
Heli.ActivateSpeedCheat(75@, 10)
goto @DES3_15906

:DES3_15860
$pheli_health = 100
Hud.DisplayCounterWithString($pheli_health, CounterDisplay.Bar, 'AIR1_12')
132@ = 1
Text.PrintNow('AIR1_11', 7000, 1)

:DES3_15906
if 
  132@ == 1
goto_if_false @DES3_16230
if 
  Car.DoesExist(75@)
goto_if_false @DES3_16230
if 
  not Car.IsDead(75@)
goto_if_false @DES3_16202
$x, $y, $z = Char.GetCoordinates($scplayer)
56@, 57@, 58@ = Car.GetCoordinates(75@)
140@ = Math.GetDistanceBetweenCoords3D($x, $y, $z, 56@, 57@, 58@)
if 
  175.0 > 140@
goto_if_false @DES3_16085
if 
  100 > $pheli_health
goto_if_false @DES3_16078
if 
  137@ > 100
goto_if_false @DES3_16078
$pheli_health += 1
137@ = 0

:DES3_16078
goto @DES3_16135

:DES3_16085
if 
  $pheli_health > 0
goto_if_false @DES3_16135
if 
  137@ > 100
goto_if_false @DES3_16135
$pheli_health += -1
137@ = 0

:DES3_16135
if 
  $pheli_health == 0
goto_if_false @DES3_16195
set_lvar_int_to_constant 109@ = 99
112@ = 0
Text.PrintNow('AIR1_10', 7000, 1)
132@ = 2
Hud.ClearCounter($pheli_health)

:DES3_16195
goto @DES3_16230

:DES3_16202
Text.PrintNow('AIR1_10', 7000, 1)
132@ = 2
Hud.ClearCounter($pheli_health)

:DES3_16230
if 
  35@ > 1
goto_if_false @DES3_16332
if 
  Blip.DoesExist(101@)
goto_if_false @DES3_16294
if 
  132@ == 1
goto_if_false @DES3_16287
Blip.Remove(101@)

:DES3_16287
goto @DES3_16332

:DES3_16294
if 
  132@ == 2
goto_if_false @DES3_16332
101@ = Blip.AddForCoord(-450.9301, 2238.45, 43.4409)

:DES3_16332
if 
  39@ == 3
goto_if_false @DES3_16373
if 
  Car.DoesExist(75@)
goto_if_false @DES3_16373
gosub @DES3_19279

:DES3_16373
gosub @DES3_16957
return 

:DES3_16382
if 
  Blip.DoesExist(107@)
goto_if_false @DES3_16450
if 
  not Car.IsDead(80@)
goto_if_false @DES3_16445
if 
  Char.IsInCar($scplayer, 80@)
goto_if_false @DES3_16438
Blip.Remove(107@)

:DES3_16438
goto @DES3_16450

:DES3_16445
Blip.Remove(107@)

:DES3_16450
if 
  Car.DoesExist(74@)
goto_if_false @DES3_16505
if 
  Car.IsDead(74@)
goto_if_false @DES3_16505
37@ = 1
Text.PrintNow('AIR1_08', 5000, 1)

:DES3_16505
if 
  39@ == 7
goto_if_false @DES3_16530
gosub @DES3_26440

:DES3_16530
return 

:DES3_16532
if 
  Object.DoesExist(96@)
goto_if_false @DES3_16577
214@, 215@, 216@ = Object.GetCoordinates(96@)
216@ += 6.679
Object.Delete(96@)

:DES3_16577
96@ = Object.CreateNoOffset(#KMB_PARACHUTE, 214@, 215@, 216@)
Object.SetCollision(96@, False)
Object.SetDynamic(96@, False)
199@ = 1.0
200@ = 0.5
201@ = 0.0
205@ = 0.0
206@ = 0.0
207@ = 0.0
224@ = 80000
cset_lvar_float_to_lvar_int 225@ =# 224@
222@ = Math.GetDistanceBetweenCoords3D(214@, 215@, 216@, 208@, 209@, 210@)
223@ = Math.GetDistanceBetweenCoords2D(214@, 215@, 208@, 209@)
set_lvar_float_to_lvar_float 211@ = 214@
sub_float_lvar_from_float_lvar 211@ -= 208@
set_lvar_float_to_lvar_float 212@ = 215@
sub_float_lvar_from_float_lvar 212@ -= 209@
set_lvar_float_to_lvar_float 213@ = 216@
sub_float_lvar_from_float_lvar 213@ -= 210@
set_lvar_float_to_lvar_float 217@ = 208@
sub_float_lvar_from_float_lvar 217@ -= 214@
set_lvar_float_to_lvar_float 218@ = 209@
sub_float_lvar_from_float_lvar 218@ -= 215@
set_lvar_float_to_lvar_float 219@ = 210@
sub_float_lvar_from_float_lvar 219@ -= 216@
div_float_lvar_by_float_lvar 217@ /= 222@
div_float_lvar_by_float_lvar 218@ /= 222@
div_float_lvar_by_float_lvar 219@ /= 222@
set_lvar_float_to_lvar_float 50@ = 223@
51@ = 0.0
set_lvar_float_to_lvar_float 53@ = 223@
set_lvar_float_to_lvar_float 54@ = 213@
220@ = Math.GetAngleBetween2DVectors(50@, 51@, 53@, 54@)
set_lvar_float_to_lvar_float 50@ = 211@
51@ = 0.0
set_lvar_float_to_lvar_float 53@ = 211@
set_lvar_float_to_lvar_float 54@ = 212@
221@ = Math.GetAngleBetween2DVectors(50@, 51@, 53@, 54@)
226@ = 1
return 

:DES3_16957
if 
  226@ == 1
goto_if_false @DES3_17555
if 
  224@ > 1000
goto_if_false @DES3_17424
if 
  Object.DoesExist(96@)
goto_if_false @DES3_17417
if 
  205@ > 180.0
goto_if_false @DES3_17041
205@ = -180.0

:DES3_17041
if 
  -180.0 > 205@
goto_if_false @DES3_17072
205@ = 180.0

:DES3_17072
if 
  205@ >= 0.0
goto_if_false @DES3_17110
202@ = -0.01
goto @DES3_17120

:DES3_17110
202@ = 0.01

:DES3_17120
add_timed_float_lvar_to_float_lvar 199@ +=@ 202@
if 
  199@ > 1.0
goto_if_false @DES3_17159
199@ = 1.0

:DES3_17159
if 
  -1.0 > 199@
goto_if_false @DES3_17190
199@ = -1.0

:DES3_17190
add_timed_float_lvar_to_float_lvar 205@ +=@ 199@
cset_lvar_float_to_lvar_int 46@ =# 224@
set_lvar_float_to_lvar_float 47@ = 225@
sub_float_lvar_from_float_lvar 47@ -= 46@
div_float_lvar_by_float_lvar 47@ /= 225@
mult_float_lvar_by_float_lvar 47@ *= 222@
set_lvar_float_to_lvar_float 50@ = 217@
mult_float_lvar_by_float_lvar 50@ *= 47@
set_lvar_float_to_lvar_float 51@ = 218@
mult_float_lvar_by_float_lvar 51@ *= 47@
set_lvar_float_to_lvar_float 52@ = 219@
mult_float_lvar_by_float_lvar 52@ *= 47@
set_var_float_to_lvar_float $x = 214@
add_float_lvar_to_float_var $x += 50@
set_var_float_to_lvar_float $y = 215@
add_float_lvar_to_float_var $y += 51@
set_var_float_to_lvar_float $z = 216@
add_float_lvar_to_float_var $z += 52@
set_lvar_float_to_var_float 145@ = $x
set_lvar_float_to_var_float 146@ = $y
set_lvar_float_to_var_float 147@ = $z
if 
  is_float_lvar_greater_than_float_lvar 210@ > 147@
goto_if_false @DES3_17385
set_lvar_float_to_lvar_float 147@ = 210@

:DES3_17385
Object.SetCoordinates(96@, 145@, 146@, 147@)
Object.SetRotation(96@, 205@, 0.0, 90.0)

:DES3_17417
goto @DES3_17555

:DES3_17424
145@, 146@, 147@ = Object.GetCoordinates(96@)
147@ = World.GetGroundZFor3DCoord(145@, 146@, 147@)
147@ += 0.5
if 
  is_float_lvar_greater_than_float_lvar 210@ > 147@
goto_if_false @DES3_17489
set_lvar_float_to_lvar_float 147@ = 210@

:DES3_17489
Object.Delete(96@)
Blip.Remove(105@)
96@ = Object.CreateNoOffset(#KMB_HOLDALL, 145@, 146@, 147@)
Object.SetScale(96@, 0.3)
105@ = Blip.AddForObject(96@)
Object.FreezePosition(96@, True)
Object.SetCollision(96@, False)
226@ = 0

:DES3_17555
return 

:DES3_17557
74@ = Car.Create(417, 227@, 228@, 229@)
Car.SetHeading(74@, 230@)
Heli.SetBladesFullSpeed(74@)
Heli.SetStabiliser(74@, True)
81@ = Char.CreateInsideCar(74@, PedType.Mission1, 61)
Car.SetHealth(74@, 5000)
Car.SetProofs(74@, False, False, False, True, False)
104@ = Blip.AddForCar(74@)
Blip.SetAsFriendly(104@, True)
Car.SetLoadCollisionFlag(74@, False)
Car.SetOnlyDamagedByPlayer(74@, True)
return 

:DES3_17660
if 
  Char.DoesExist(81@)
goto_if_false @DES3_17681
Char.Delete(81@)

:DES3_17681
if 
  Car.DoesExist(74@)
goto_if_false @DES3_17702
Car.Delete(74@)

:DES3_17702
Streaming.MarkModelAsNoLongerNeeded(417)
Streaming.MarkModelAsNoLongerNeeded(61)
Blip.Remove(104@)
return 

:DES3_17718
if 
  not Car.IsDead(74@)
goto_if_false @DES3_18286
if 
  111@ == 0
goto_if_false @DES3_18286
if 
  114@ == 0
goto_if_false @DES3_18069
151@ = -784.6607
166@ = 2442.231
181@ = 180.0
152@ = -804.959
167@ = 2425.576
182@ = 180.0
153@ = -787.8075
168@ = 2405.689
183@ = 180.0
154@ = -772.5547
169@ = 2413.223
184@ = 180.0
155@ = -772.9753
170@ = 2432.284
185@ = 180.0
156@ = -789.0908
171@ = 2424.852
186@ = 180.0
157@ = -802.8
172@ = 2431.09
187@ = 180.0
158@ = -772.5547
173@ = 2413.223
188@ = 180.0
108@ = 0
Heli.GotoCoords(74@, 151@(108@,15f), 166@(108@,15f), 181@(108@,15f), 15.0, 181@(108@,15f))
Heli.ActivateSpeedCheat(74@, 1)
114@ += 1

:DES3_18069
if 
  Car.Locate3D(74@, 151@(108@,15f), 166@(108@,15f), 181@(108@,15f), 10.0, 10.0, 10.0, False)
goto_if_false @DES3_18229
43@ = Math.RandomIntInRange(0, 8)
if 
  is_int_lvar_equal_to_int_lvar 43@ == 108@
goto_if_false @DES3_18183
43@ += 1
if 
  43@ > 7
goto_if_false @DES3_18183
43@ = 0

:DES3_18183
set_lvar_int_to_lvar_int 108@ = 43@
Heli.GotoCoords(74@, 151@(108@,15f), 166@(108@,15f), 181@(108@,15f), 15.0, 181@(108@,15f))

:DES3_18229
43@ = Car.GetHealth(74@)
if 
  300 >= 43@
goto_if_false @DES3_18286
if 
  111@ <> 99
goto_if_false @DES3_18286
Heli.MakeComeCrashingDown(74@)
111@ = 99

:DES3_18286
return 

:DES3_18288
if 
  not Car.DoesExist(75@)
goto_if_false @DES3_18341
75@ = Car.Create(487, 0.0, 0.0, 0.0)
Car.CanBeTargetedByHsMissile(75@, True)
Car.SetLoadCollisionFlag(75@, False)

:DES3_18341
if 
  not Char.DoesExist(82@)
goto_if_false @DES3_18370
82@ = Char.CreateInsideCar(75@, PedType.Mission2, 166)

:DES3_18370
if 
  not Char.DoesExist(84@)
goto_if_false @DES3_18411
84@ = Char.Create(PedType.Mission2, 165, 0.0, 0.0, 0.0)

:DES3_18411
if 
  not Char.DoesExist(85@)
goto_if_false @DES3_18452
85@ = Char.Create(PedType.Mission2, 166, 0.0, 0.0, 0.0)

:DES3_18452
if 
  not Char.DoesExist(86@)
goto_if_false @DES3_18493
86@ = Char.Create(PedType.Mission2, 165, 0.0, 0.0, 0.0)

:DES3_18493
if 
  not Char.DoesExist(87@)
goto_if_false @DES3_18534
87@ = Char.Create(PedType.Mission2, 166, 0.0, 0.0, 0.0)

:DES3_18534
if 
  not Car.IsDead(75@)
goto_if_false @DES3_18607
Car.SetCoordinates(75@, 231@, 232@, 233@)
Car.SetHeading(75@, 234@)
Heli.SetBladesFullSpeed(75@)
Car.ChangeColor(75@, 0, 0)
Heli.SetStabiliser(75@, True)
Car.SetOnlyDamagedByPlayer(75@, True)
Car.LockDoors(75@, CarLock.Locked)

:DES3_18607
if 
  not Char.IsDead(82@)
goto_if_false @DES3_18652
Char.SetCanBeShotInVehicle(82@, False)
Char.SetCantBeDraggedOut(82@, True)
Char.SetCanBeShotInVehicle(82@, False)
Char.SetDecisionMaker(82@, 66@)

:DES3_18652
if 
  not Car.IsDead(75@)
goto_if_false @DES3_19079
if 
  not Char.IsDead(84@)
goto_if_false @DES3_18723
Char.AttachToCar(84@, 75@, 1.0, 1.25, -0.1, 3, 310.0, WeaponType.Ak47)
123@ = 1

:DES3_18723
if 
  not Char.IsDead(85@)
goto_if_false @DES3_18778
Char.AttachToCar(85@, 75@, 1.1, -0.3, -0.1, 3, 310.0, WeaponType.Ak47)
124@ = 1

:DES3_18778
if 
  not Char.IsDead(86@)
goto_if_false @DES3_18833
Char.AttachToCar(86@, 75@, -1.0, 1.25, -0.1, 1, 50.0, WeaponType.Ak47)
125@ = 1

:DES3_18833
if 
  not Char.IsDead(87@)
goto_if_false @DES3_18888
Char.AttachToCar(87@, 75@, -1.1, -0.3, -0.1, 1, 50.0, WeaponType.Ak47)
126@ = 1

:DES3_18888
43@ = 0

:DES3_18895
if 
  4 > 43@
goto_if_false @DES3_19079
if 
  not Char.IsDead(84@(43@,4i))
goto_if_false @DES3_19065
Char.SetShootRate(84@(43@,4i), 20)
Char.SetAccuracy(84@(43@,4i), 27)
if or
  43@ == 0
  43@ == 2
goto_if_false @DES3_19009
Char.SetMaxHealth(84@(43@,4i), 125)
Char.SetHealth(84@(43@,4i), 125)
goto @DES3_19031

:DES3_19009
Char.SetMaxHealth(84@(43@,4i), 100)
Char.SetHealth(84@(43@,4i), 100)

:DES3_19031
Char.SetOnlyDamagedByPlayer(84@(43@,4i), True)
Char.SetDecisionMaker(84@(43@,4i), 66@)
115@(43@,4i) = 0

:DES3_19065
43@ += 1
goto @DES3_18895

:DES3_19079
if 
  not Car.IsDead(75@)
goto_if_false @DES3_19124
if 
  Blip.DoesExist(102@)
goto_if_false @DES3_19116
Blip.Remove(102@)

:DES3_19116
102@ = Blip.AddForCar(75@)

:DES3_19124
set_lvar_int_to_constant 109@ = 0
112@ = 0
133@ += 1
return 

:DES3_19147
if 
  Char.DoesExist(82@)
goto_if_false @DES3_19168
Char.Delete(82@)

:DES3_19168
43@ = 0

:DES3_19175
if 
  4 > 43@
goto_if_false @DES3_19236
if 
  Char.DoesExist(84@(43@,4i))
goto_if_false @DES3_19222
Char.Delete(84@(43@,4i))

:DES3_19222
43@ += 1
goto @DES3_19175

:DES3_19236
if 
  Car.DoesExist(75@)
goto_if_false @DES3_19257
Car.Delete(75@)

:DES3_19257
Streaming.MarkModelAsNoLongerNeeded(487)
Streaming.MarkModelAsNoLongerNeeded(165)
Streaming.MarkModelAsNoLongerNeeded(166)
Streaming.MarkModelAsNoLongerNeeded(355)
return 

:DES3_19279
if 
  TIMERA > 240000
goto_if_false @DES3_19333
if 
  not Car.IsDead(75@)
goto_if_false @DES3_19333
Car.Explode(75@)
Car.Explode(75@)
TIMERA = 0

:DES3_19333
switch_start 109@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DES3_22132 {caseNum1} 0 {caseLabel1} @DES3_19396 {caseNum2} 4 {caseLabel2} @DES3_21962 {caseNum3} 5 {caseLabel3} @DES3_19903 {caseNum4} -1 {caseLabel4} @DES3_22132 {caseNum5} -1 {caseLabel5} @DES3_22132 {caseNum6} -1 {caseLabel6} @DES3_22132 {caseNum7} -1 {caseLabel7} @DES3_22132

:DES3_19396
if 
  not Car.IsDead(75@)
goto_if_false @DES3_19896
if 
  112@ == 0
goto_if_false @DES3_19475
if 
  not Car.IsDead(74@)
goto_if_false @DES3_19475
Heli.FollowEntity(75@, -1, 74@, 20.0)
112@ += 1
135@ = 0

:DES3_19475
if 
  112@ == 1
goto_if_false @DES3_19845
if 
  10000 > 135@
goto_if_false @DES3_19816
if 
  not Car.IsDead(74@)
goto_if_false @DES3_19809
$x, $y, $z = Car.GetCoordinates(74@)
$x, $y, $z = Car.GetOffsetInWorldCoords(74@, 10.0, -10.0, 5.0)
if 
  not Car.Locate3D(75@, $x, $y, $z, 50.0, 50.0, 50.0, False)
goto_if_false @DES3_19809
56@, 57@, 58@ = Car.GetCoordinates(75@)
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
$distance = Math.GetDistanceBetweenCoords3D($x, $y, $z, 56@, 57@, 58@)
if 
  $distance > 0.01
goto_if_false @DES3_19802
div_float_lvar_by_float_var 50@ /= $distance
div_float_lvar_by_float_var 51@ /= $distance
div_float_lvar_by_float_var 52@ /= $distance
50@ *= 0.01
51@ *= 0.01
52@ *= 0.01
Car.ApplyForce(75@, 50@, 51@, 52@, 0.0, 0.0, 0.0)

:DES3_19802
goto @DES3_19809

:DES3_19809
goto @DES3_19845

:DES3_19816
Heli.FollowEntity(75@, $scplayer, -1, 20.0)
112@ += 1
135@ = 0

:DES3_19845
if 
  112@ == 2
goto_if_false @DES3_19896
if 
  135@ > 25000
goto_if_false @DES3_19896
112@ = 0
135@ = 0

:DES3_19896
goto @DES3_22132

:DES3_19903
if 
  not Car.IsDead(75@)
goto_if_false @DES3_21550
if 
  112@ == 0
goto_if_false @DES3_19992
Heli.KeepEntityInView(75@, $scplayer, -1, 15.0, 170.0)
115@ = 0
116@ = 0
117@ = 0
118@ = 0
112@ += 1

:DES3_19992
if 
  112@ == 1
goto_if_false @DES3_20206
if 
  39@ == 10
goto_if_false @DES3_20206
56@, 57@, 58@ = Char.GetCoordinates($scplayer)
if 
  Car.Locate2D(75@, 56@, 57@, 20.0, 20.0, False)
goto_if_false @DES3_20206
$x, $y, $z = Car.GetCoordinates(75@)
46@ = World.GetGroundZFor3DCoord($x, $y, $z)
set_lvar_float_to_lvar_float 47@ = 58@
sub_float_lvar_from_float_lvar 47@ -= 46@
if 
  5.0 > 47@
goto_if_false @DES3_20206
set_lvar_float_to_var_float 148@ = $x
set_lvar_float_to_var_float 149@ = $y
set_lvar_float_to_lvar_float 150@ = 46@
150@ += 10.0
Heli.GotoCoords(75@, 148@, 149@, 150@, 10.0, 0.0)
112@ += 1

:DES3_20206
if 
  112@ == 2
goto_if_false @DES3_20621
if 
  Car.Locate3D(75@, 148@, 149@, 150@, 4.0, 4.0, 8.0, False)
goto_if_false @DES3_20403
46@ = Car.GetSpeed(75@)
if 
  46@ > 1.0
goto_if_false @DES3_20375
50@, 51@, 52@ = Car.GetSpeedVector(75@)
50@ *= -0.001
51@ *= -0.001
52@ *= -0.001
Car.ApplyForce(75@, 50@, 51@, 52@, 0.0, 0.0, 0.0)
goto @DES3_20396

:DES3_20375
Car.FreezePosition(75@, True)
135@ = 0
112@ += 1

:DES3_20396
goto @DES3_20621

:DES3_20403
46@ = Car.GetSpeed(75@)
if 
  10.0 > 46@
goto_if_false @DES3_20621
$x, $y, $z = Car.GetCoordinates(75@)
set_lvar_float_to_lvar_float 50@ = 148@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 149@
sub_float_var_from_float_lvar 51@ -= $y
set_lvar_float_to_lvar_float 52@ = 150@
sub_float_var_from_float_lvar 52@ -= $z
$distance = Math.GetDistanceBetweenCoords3D($x, $y, $z, 148@, 149@, 150@)
if 
  $distance > 0.01
goto_if_false @DES3_20621
div_float_lvar_by_float_var 50@ /= $distance
div_float_lvar_by_float_var 51@ /= $distance
div_float_lvar_by_float_var 52@ /= $distance
50@ *= 0.01
51@ *= 0.01
52@ *= 0.01
Car.ApplyForce(75@, 50@, 51@, 52@, 0.0, 0.0, 0.0)

:DES3_20621
if 
  112@ == 3
goto_if_false @DES3_20825
if 
  135@ > 1500
goto_if_false @DES3_20825
Car.FreezePosition(75@, True)
if 
  not Char.IsDead(84@)
goto_if_false @DES3_20811
$x, $y, $z = Car.GetOffsetInWorldCoords(75@, 1.0, 1.25, -0.1)
Char.Delete(84@)
84@ = Char.CreateSwatRope(PedType.Mission2, 165, $x, $y, $z)
Char.SetShootRate(84@, 30)
Char.SetAccuracy(84@, 27)
Char.SetMaxHealth(84@, 125)
Char.SetHealth(84@, 125)
Char.SetOnlyDamagedByPlayer(84@, True)
Char.SetDecisionMaker(84@, 66@)
Char.GiveWeapon(84@, WeaponType.Ak47, 9999)
Char.SetFollowNodeThresholdDistance(84@, 2000.0)
123@ = 0
115@ = 1

:DES3_20811
135@ = 0
112@ += 1

:DES3_20825
if 
  112@ == 4
goto_if_false @DES3_21014
if 
  135@ > 0
goto_if_false @DES3_21014
if 
  not Char.IsDead(85@)
goto_if_false @DES3_21000
$x, $y, $z = Car.GetOffsetInWorldCoords(75@, 1.1, -0.3, -0.1)
Char.Delete(85@)
85@ = Char.CreateSwatRope(PedType.Mission2, 166, $x, $y, $z)
Char.SetShootRate(85@, 30)
Char.SetAccuracy(85@, 27)
Char.SetHealth(85@, 100)
Char.SetOnlyDamagedByPlayer(85@, True)
Char.SetDecisionMaker(85@, 66@)
Char.GiveWeapon(85@, WeaponType.Ak47, 9999)
Char.SetFollowNodeThresholdDistance(85@, 2000.0)
124@ = 0
116@ = 1

:DES3_21000
135@ = 0
112@ += 1

:DES3_21014
if 
  112@ == 5
goto_if_false @DES3_21211
if 
  135@ > 2000
goto_if_false @DES3_21211
if 
  not Char.IsDead(86@)
goto_if_false @DES3_21197
$x, $y, $z = Car.GetOffsetInWorldCoords(75@, -1.0, 1.25, -0.1)
Char.Delete(86@)
86@ = Char.CreateSwatRope(PedType.Mission2, 165, $x, $y, $z)
Char.SetShootRate(86@, 30)
Char.SetAccuracy(86@, 27)
Char.SetMaxHealth(86@, 125)
Char.SetHealth(86@, 125)
Char.SetOnlyDamagedByPlayer(86@, True)
Char.SetDecisionMaker(86@, 66@)
Char.GiveWeapon(86@, WeaponType.Ak47, 9999)
Char.SetFollowNodeThresholdDistance(86@, 2000.0)
125@ = 0
117@ = 1

:DES3_21197
135@ = 0
112@ += 1

:DES3_21211
if 
  112@ == 6
goto_if_false @DES3_21401
if 
  135@ > 500
goto_if_false @DES3_21401
if 
  not Char.IsDead(87@)
goto_if_false @DES3_21387
$x, $y, $z = Car.GetOffsetInWorldCoords(75@, -1.1, -0.3, -0.1)
Char.Delete(87@)
87@ = Char.CreateSwatRope(PedType.Mission2, 165, $x, $y, $z)
Char.SetShootRate(87@, 30)
Char.SetAccuracy(87@, 27)
Char.SetHealth(87@, 100)
Char.SetOnlyDamagedByPlayer(87@, True)
Char.SetDecisionMaker(87@, 66@)
Char.GiveWeapon(87@, WeaponType.Ak47, 9999)
Char.SetFollowNodeThresholdDistance(87@, 2000.0)
126@ = 0
118@ = 1

:DES3_21387
135@ = 0
112@ += 1

:DES3_21401
if 
  112@ == 7
goto_if_false @DES3_21525
if or
  115@ == 2
  Char.IsDead(84@)
goto_if_false @DES3_21525
if or
  116@ == 2
  Char.IsDead(85@)
goto_if_false @DES3_21525
if or
  117@ == 2
  Char.IsDead(86@)
goto_if_false @DES3_21525
if or
  118@ == 2
  Char.IsDead(87@)
goto_if_false @DES3_21525
135@ = 0
112@ += 1

:DES3_21525
if 
  112@ == 8
goto_if_false @DES3_21550
109@ = 99

:DES3_21550
set_lvar_int_to_lvar_int 43@ = 39@
43@ -= 5
if and
  4 > 43@
  43@ > -1
goto_if_false @DES3_21955
if 
  Char.DoesExist(84@(43@,4i))
goto_if_false @DES3_21955
if 
  not Char.IsDead(84@(43@,4i))
goto_if_false @DES3_21955
if 
  123@(43@,4i) == 0
goto_if_false @DES3_21955
if 
  115@(43@,4i) == 0
goto_if_false @DES3_21719
44@ = Char.GetScriptTaskStatus(84@(43@,4i), 1506)
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DES3_21719
Task.KillCharOnFoot(84@(43@,4i), $scplayer)

:DES3_21719
if 
  115@(43@,4i) == 1
goto_if_false @DES3_21810
44@ = Char.GetScriptTaskStatus(84@(43@,4i), 1283)
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DES3_21810
Char.SetDecisionMaker(84@(43@,4i), 67@)
Char.SetRelationship(84@(43@,4i), RelationshipType.Hate, PedType.Player1)
115@(43@,4i) += 1

:DES3_21810
if 
  115@(43@,4i) == 2
goto_if_false @DES3_21892
Char.ClearTasks(84@(43@,4i))
49@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(49@)
Char.PerformSequence(84@(43@,4i), 49@)
Sequence.Clear(49@)
115@(43@,4i) += 1

:DES3_21892
if 
  115@(43@,4i) == 3
goto_if_false @DES3_21955
set_lvar_int_to_lvar_int 263@ = 84@(43@,4i)
gosub @DES3_26311
84@(43@,4i) = 0
115@(43@,4i) = 0

:DES3_21955
goto @DES3_22132

:DES3_21962
if 
  not Car.IsDead(75@)
goto_if_false @DES3_22125
if 
  112@ == 0
goto_if_false @DES3_22023
Heli.KeepEntityInView(75@, $scplayer, -1, 25.0, 15.0)
112@ += 1

:DES3_22023
46@ = Car.GetSpeed(75@)
if 
  5.0 > 46@
goto_if_false @DES3_22125
50@, 51@, 52@ = Car.GetSpeedVector(75@)
50@ *= 0.0001
51@ *= 0.0001
52@ *= 0.0001
Car.ApplyForce(75@, 50@, 51@, 52@, 0.0, 0.0, 0.0)

:DES3_22125
goto @DES3_22132

:DES3_22132
if 
  109@ == 99
goto_if_false @DES3_22366
if 
  not Car.IsDead(75@)
goto_if_false @DES3_22366
Car.CanBeTargetedByHsMissile(75@, False)
Car.FreezePosition(75@, False)
43@ = Car.GetHealth(75@)
if 
  300 >= 43@
goto_if_false @DES3_22267
Char.MarkAsNoLongerNeeded(82@)
if 
  not Char.IsDead(82@)
goto_if_false @DES3_22236
Char.SetDecisionMaker(82@, 66@)

:DES3_22236
Heli.MakeComeCrashingDown(75@)
Car.MarkAsNoLongerNeeded(75@)
75@ = 0
82@ = 0
goto @DES3_22345

:DES3_22267
Char.MarkAsNoLongerNeeded(82@)
if 
  not Char.IsDead(82@)
goto_if_false @DES3_22296
Char.SetDecisionMaker(82@, 66@)

:DES3_22296
Heli.GotoCoords(75@, 204.0, 2816.0, 186.0, 50.0, 186.0)
Car.MarkAsNoLongerNeeded(75@)
75@ = 0
82@ = 0

:DES3_22345
if 
  Blip.DoesExist(102@)
goto_if_false @DES3_22366
Blip.Remove(102@)

:DES3_22366
if 
  not Car.IsDead(75@)
goto_if_false @DES3_22481
if and
  123@ == 1
  Char.IsDead(84@)
goto_if_false @DES3_22481
if and
  124@ == 1
  Char.IsDead(85@)
goto_if_false @DES3_22481
if and
  125@ == 1
  Char.IsDead(86@)
goto_if_false @DES3_22481
if and
  126@ == 1
  Char.IsDead(87@)
goto_if_false @DES3_22481
109@ = 99

:DES3_22481
set_lvar_int_to_lvar_int 43@ = 39@
43@ -= 5
if and
  4 > 43@
  43@ > -1
goto_if_false @DES3_23063
if 
  Char.DoesExist(84@(43@,4i))
goto_if_false @DES3_23063
if 
  not Char.IsDead(84@(43@,4i))
goto_if_false @DES3_23063
if 
  123@(43@,4i) == 1
goto_if_false @DES3_23063
if 
  115@(43@,4i) == 0
goto_if_false @DES3_22705
if 
  not Char.IsDead(81@)
goto_if_false @DES3_22694
Char.ClearTasks(84@(43@,4i))
49@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 81@)
Task.StayInSamePlace(-1, True)
Sequence.Close(49@)
Char.PerformSequence(84@(43@,4i), 49@)
Sequence.Clear(49@)
115@(43@,4i) += 1
goto @DES3_22705

:DES3_22694
115@(43@,4i) += 1

:DES3_22705
if 
  115@(43@,4i) == 1
goto_if_false @DES3_22876
if or
  43@ == 1
  43@ == 3
  109@ == 4
goto_if_false @DES3_22876
if 
  Char.LocateAnyMeansChar3D(84@(43@,4i), $scplayer, 60.0, 60.0, 60.0, False)
goto_if_false @DES3_22876
Char.ClearTasks(84@(43@,4i))
49@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Task.StayInSamePlace(-1, True)
Sequence.Close(49@)
Char.PerformSequence(84@(43@,4i), 49@)
Sequence.Clear(49@)
Char.SetShootRate(84@(43@,4i), 100)
115@(43@,4i) += 1

:DES3_22876
if 
  115@(43@,4i) == 2
goto_if_false @DES3_23063
if or
  43@ == 1
  43@ == 3
  109@ == 4
goto_if_false @DES3_23063
if 
  not Char.LocateAnyMeansChar3D(84@(43@,4i), $scplayer, 80.0, 80.0, 80.0, False)
goto_if_false @DES3_23063
if 
  not Char.IsDead(81@)
goto_if_false @DES3_23063
Char.ClearTasks(84@(43@,4i))
49@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 81@)
Task.StayInSamePlace(-1, True)
Sequence.Close(49@)
Char.PerformSequence(84@(43@,4i), 49@)
Sequence.Clear(49@)
Char.SetShootRate(84@(43@,4i), 20)
115@(43@,4i) = 1

:DES3_23063
if 
  not Car.IsDead(75@)
goto_if_false @DES3_23131
43@ = Car.GetHealth(75@)
if 
  300 >= 43@
goto_if_false @DES3_23131
if 
  109@ <> 99
goto_if_false @DES3_23131
109@ = 99

:DES3_23131
43@ = 0

:DES3_23138
if 
  4 > 43@
goto_if_false @DES3_23260
if 
  Char.DoesExist(84@(43@,4i))
goto_if_false @DES3_23246
if 
  Char.IsDead(84@(43@,4i))
goto_if_false @DES3_23246
Char.DetachFromCar(84@(43@,4i))
115@(43@,4i) = 0
set_lvar_int_to_lvar_int 263@ = 84@(43@,4i)
gosub @DES3_26311
84@(43@,4i) = 0

:DES3_23246
43@ += 1
goto @DES3_23138

:DES3_23260
if and
  Car.IsDead(75@)
  75@ <> 0
goto_if_false @DES3_23441
Char.MarkAsNoLongerNeeded(82@)
if 
  not Char.IsDead(82@)
goto_if_false @DES3_23312
Char.SetDecisionMaker(82@, 66@)

:DES3_23312
Car.MarkAsNoLongerNeeded(75@)
75@ = 0
82@ = 0
43@ = 0

:DES3_23338
if 
  4 > 43@
goto_if_false @DES3_23420
if 
  Char.DoesExist(84@(43@,4i))
goto_if_false @DES3_23406
set_lvar_int_to_lvar_int 263@ = 84@(43@,4i)
gosub @DES3_26311
84@(43@,4i) = 0

:DES3_23406
43@ += 1
goto @DES3_23338

:DES3_23420
if 
  Blip.DoesExist(102@)
goto_if_false @DES3_23441
Blip.Remove(102@)

:DES3_23441
return 

:DES3_23443
if 
  Car.DoesExist(76@)
goto_if_false @DES3_23471
Car.MarkAsNoLongerNeeded(76@)
76@ = 0

:DES3_23471
if 
  not Car.DoesExist(76@)
goto_if_false @DES3_23524
76@ = Car.Create(487, 0.0, 0.0, 0.0)
Car.CanBeTargetedByHsMissile(76@, True)
Car.SetLoadCollisionFlag(76@, False)

:DES3_23524
if 
  Char.DoesExist(83@)
goto_if_false @DES3_23576
Char.MarkAsNoLongerNeeded(83@)
if 
  not Char.IsDead(83@)
goto_if_false @DES3_23569
Char.SetDecisionMaker(83@, 66@)

:DES3_23569
83@ = 0

:DES3_23576
if 
  not Char.DoesExist(83@)
goto_if_false @DES3_23605
83@ = Char.CreateInsideCar(76@, PedType.Mission2, 166)

:DES3_23605
43@ = 0

:DES3_23612
if 
  4 > 43@
goto_if_false @DES3_23684
if 
  Char.DoesExist(88@(43@,4i))
goto_if_false @DES3_23670
Char.MarkAsNoLongerNeeded(88@(43@,4i))
88@(43@,4i) = 0

:DES3_23670
43@ += 1
goto @DES3_23612

:DES3_23684
if 
  not Char.DoesExist(88@)
goto_if_false @DES3_23725
88@ = Char.Create(PedType.Mission2, 165, 0.0, 0.0, 0.0)

:DES3_23725
if 
  not Char.DoesExist(89@)
goto_if_false @DES3_23766
89@ = Char.Create(PedType.Mission2, 166, 0.0, 0.0, 0.0)

:DES3_23766
if 
  not Char.DoesExist(90@)
goto_if_false @DES3_23807
90@ = Char.Create(PedType.Mission2, 165, 0.0, 0.0, 0.0)

:DES3_23807
if 
  not Char.DoesExist(91@)
goto_if_false @DES3_23848
91@ = Char.Create(PedType.Mission2, 166, 0.0, 0.0, 0.0)

:DES3_23848
if 
  not Car.IsDead(76@)
goto_if_false @DES3_23921
Car.SetCoordinates(76@, 259@, 260@, 261@)
Car.SetHeading(76@, 262@)
Heli.SetBladesFullSpeed(76@)
Car.ChangeColor(76@, 0, 0)
Heli.SetStabiliser(76@, True)
Car.SetOnlyDamagedByPlayer(76@, True)
Car.LockDoors(76@, CarLock.Locked)

:DES3_23921
if 
  not Char.IsDead(83@)
goto_if_false @DES3_23966
Char.SetCanBeShotInVehicle(83@, False)
Char.SetCantBeDraggedOut(83@, True)
Char.SetCanBeShotInVehicle(83@, False)
Char.SetDecisionMaker(83@, 66@)

:DES3_23966
if 
  not Car.IsDead(76@)
goto_if_false @DES3_24354
if 
  not Char.IsDead(88@)
goto_if_false @DES3_24030
Char.AttachToCar(88@, 76@, 1.0, 1.25, 0.2, 3, 310.0, WeaponType.Ak47)

:DES3_24030
if 
  not Char.IsDead(89@)
goto_if_false @DES3_24078
Char.AttachToCar(89@, 76@, 1.1, -0.3, 0.2, 3, 310.0, WeaponType.Ak47)

:DES3_24078
if 
  not Char.IsDead(90@)
goto_if_false @DES3_24126
Char.AttachToCar(90@, 76@, -1.0, 1.25, 0.2, 1, 50.0, WeaponType.Ak47)

:DES3_24126
if 
  not Char.IsDead(91@)
goto_if_false @DES3_24174
Char.AttachToCar(91@, 76@, -1.1, -0.3, 0.2, 1, 50.0, WeaponType.Ak47)

:DES3_24174
43@ = 0

:DES3_24181
if 
  4 > 43@
goto_if_false @DES3_24354
if 
  not Char.IsDead(88@(43@,4i))
goto_if_false @DES3_24340
Char.SetShootRate(88@(43@,4i), 30)
Char.SetAccuracy(88@(43@,4i), 27)
if or
  43@ == 0
  43@ == 2
goto_if_false @DES3_24295
Char.SetMaxHealth(88@(43@,4i), 125)
Char.SetHealth(88@(43@,4i), 125)
goto @DES3_24306

:DES3_24295
Char.SetHealth(88@(43@,4i), 100)

:DES3_24306
Char.SetOnlyDamagedByPlayer(88@(43@,4i), True)
Char.SetDecisionMaker(88@(43@,4i), 66@)
119@(43@,4i) = 0

:DES3_24340
43@ += 1
goto @DES3_24181

:DES3_24354
if 
  not Car.IsDead(76@)
goto_if_false @DES3_24399
if 
  Blip.DoesExist(103@)
goto_if_false @DES3_24391
Blip.Remove(103@)

:DES3_24391
103@ = Blip.AddForCar(76@)

:DES3_24399
110@ = 0
113@ = 0
133@ += 1
return 

:DES3_24422
if 
  Char.DoesExist(83@)
goto_if_false @DES3_24443
Char.Delete(83@)

:DES3_24443
43@ = 0

:DES3_24450
if 
  4 > 43@
goto_if_false @DES3_24511
if 
  Char.DoesExist(88@(43@,4i))
goto_if_false @DES3_24497
Char.Delete(88@(43@,4i))

:DES3_24497
43@ += 1
goto @DES3_24450

:DES3_24511
if 
  Car.DoesExist(76@)
goto_if_false @DES3_24532
Car.Delete(76@)

:DES3_24532
Streaming.MarkModelAsNoLongerNeeded(487)
Streaming.MarkModelAsNoLongerNeeded(165)
Streaming.MarkModelAsNoLongerNeeded(166)
Streaming.MarkModelAsNoLongerNeeded(355)
return 

:DES3_24554
if 
  TIMERB > 240000
goto_if_false @DES3_24608
if 
  not Car.IsDead(76@)
goto_if_false @DES3_24608
Car.Explode(76@)
Car.Explode(76@)
TIMERB = 0

:DES3_24608
if 
  not Car.IsDead(76@)
goto_if_false @DES3_25318
if 
  110@ == 0
goto_if_false @DES3_25107
if 
  113@ == 0
goto_if_false @DES3_24705
if 
  not Car.IsDead(74@)
goto_if_false @DES3_24705
Heli.FollowEntity(76@, -1, 74@, 20.0)
113@ += 1
136@ = 0

:DES3_24705
if 
  113@ == 1
goto_if_false @DES3_25054
if 
  15000 > 136@
goto_if_false @DES3_25025
if 
  not Car.IsDead(74@)
goto_if_false @DES3_25018
$x, $y, $z = Car.GetOffsetInWorldCoords(74@, -10.0, -10.0, 0.0)
if 
  not Car.Locate3D(76@, $x, $y, $z, 50.0, 50.0, 50.0, False)
goto_if_false @DES3_25018
56@, 57@, 58@ = Car.GetCoordinates(76@)
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
$distance = Math.GetDistanceBetweenCoords3D($x, $y, $z, 56@, 57@, 58@)
if 
  $distance > 0.01
goto_if_false @DES3_25018
div_float_lvar_by_float_var 50@ /= $distance
div_float_lvar_by_float_var 51@ /= $distance
div_float_lvar_by_float_var 52@ /= $distance
50@ *= 0.01
51@ *= 0.01
52@ *= 0.01
Car.ApplyForce(76@, 50@, 51@, 52@, 0.0, 0.0, 0.0)

:DES3_25018
goto @DES3_25054

:DES3_25025
Heli.FollowEntity(76@, $scplayer, -1, 20.0)
113@ += 1
136@ = 0

:DES3_25054
if 
  113@ == 2
goto_if_false @DES3_25107
if 
  136@ > 35000
goto_if_false @DES3_25107
113@ = 0
136@ = 0

:DES3_25107
if 
  110@ == 99
goto_if_false @DES3_25318
Car.FreezePosition(76@, False)
43@ = Car.GetHealth(76@)
if 
  300 >= 43@
goto_if_false @DES3_25219
Char.MarkAsNoLongerNeeded(83@)
if 
  not Char.IsDead(83@)
goto_if_false @DES3_25188
Char.SetDecisionMaker(83@, 66@)

:DES3_25188
Heli.MakeComeCrashingDown(76@)
Car.MarkAsNoLongerNeeded(76@)
76@ = 0
83@ = 0
goto @DES3_25297

:DES3_25219
Char.MarkAsNoLongerNeeded(83@)
if 
  not Char.IsDead(83@)
goto_if_false @DES3_25248
Char.SetDecisionMaker(83@, 66@)

:DES3_25248
Heli.GotoCoords(76@, 204.0, 2816.0, 186.0, 50.0, 186.0)
Car.MarkAsNoLongerNeeded(76@)
76@ = 0
83@ = 0

:DES3_25297
if 
  Blip.DoesExist(103@)
goto_if_false @DES3_25318
Blip.Remove(103@)

:DES3_25318
set_lvar_int_to_lvar_int 43@ = 39@
if 
  4 > 43@
goto_if_false @DES3_25832
if 
  Char.DoesExist(88@(43@,4i))
goto_if_false @DES3_25832
if 
  not Char.IsDead(88@(43@,4i))
goto_if_false @DES3_25832
if 
  119@(43@,4i) == 0
goto_if_false @DES3_25488
if 
  not Char.IsDead(81@)
goto_if_false @DES3_25488
Char.ClearTasks(88@(43@,4i))
49@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 81@)
Task.StayInSamePlace(-1, True)
Sequence.Close(49@)
Char.PerformSequence(88@(43@,4i), 49@)
Sequence.Clear(49@)
119@(43@,4i) += 1

:DES3_25488
if 
  119@(43@,4i) == 1
goto_if_false @DES3_25652
if or
  43@ == 1
  43@ == 3
goto_if_false @DES3_25652
if 
  Char.LocateAnyMeansChar3D(88@(43@,4i), $scplayer, 60.0, 60.0, 60.0, False)
goto_if_false @DES3_25652
Char.ClearTasks(88@(43@,4i))
49@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Task.StayInSamePlace(-1, True)
Sequence.Close(49@)
Char.PerformSequence(88@(43@,4i), 49@)
Sequence.Clear(49@)
Char.SetShootRate(88@(43@,4i), 100)
119@(43@,4i) += 1

:DES3_25652
if 
  119@(43@,4i) == 2
goto_if_false @DES3_25832
if or
  43@ == 1
  43@ == 3
goto_if_false @DES3_25832
if 
  not Char.LocateAnyMeansChar3D(88@(43@,4i), $scplayer, 80.0, 80.0, 80.0, False)
goto_if_false @DES3_25832
if 
  not Char.IsDead(81@)
goto_if_false @DES3_25832
Char.ClearTasks(88@(43@,4i))
49@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 81@)
Task.StayInSamePlace(-1, True)
Sequence.Close(49@)
Char.PerformSequence(88@(43@,4i), 49@)
Sequence.Clear(49@)
Char.SetShootRate(88@(43@,4i), 30)
119@(43@,4i) = 1

:DES3_25832
if 
  39@ == 4
goto_if_false @DES3_25937
if 
  not Car.IsDead(76@)
goto_if_false @DES3_25937
if 
  Char.IsDead(88@)
goto_if_false @DES3_25937
if 
  Char.IsDead(89@)
goto_if_false @DES3_25937
if 
  Char.IsDead(90@)
goto_if_false @DES3_25937
if 
  Char.IsDead(91@)
goto_if_false @DES3_25937
110@ = 99

:DES3_25937
if 
  not Car.IsDead(76@)
goto_if_false @DES3_26012
43@ = Car.GetHealth(76@)
if 
  300 >= 43@
goto_if_false @DES3_26012
if 
  110@ <> 99
goto_if_false @DES3_26012
110@ = 99
Car.CanBeTargetedByHsMissile(76@, False)

:DES3_26012
set_lvar_int_to_lvar_int 43@ = 39@
if 
  4 > 43@
goto_if_false @DES3_26128
if 
  Char.DoesExist(88@(43@,4i))
goto_if_false @DES3_26128
if 
  Char.IsDead(88@(43@,4i))
goto_if_false @DES3_26128
Char.DetachFromCar(88@(43@,4i))
119@(43@,4i) = 0
set_lvar_int_to_lvar_int 263@ = 88@(43@,4i)
gosub @DES3_26311
88@(43@,4i) = 0

:DES3_26128
if and
  Car.IsDead(76@)
  76@ <> 0
goto_if_false @DES3_26309
Char.MarkAsNoLongerNeeded(83@)
if 
  not Char.IsDead(83@)
goto_if_false @DES3_26180
Char.SetDecisionMaker(83@, 66@)

:DES3_26180
Car.MarkAsNoLongerNeeded(76@)
76@ = 0
83@ = 0
43@ = 0

:DES3_26206
if 
  4 > 43@
goto_if_false @DES3_26288
if 
  Char.DoesExist(88@(43@,4i))
goto_if_false @DES3_26274
set_lvar_int_to_lvar_int 263@ = 88@(43@,4i)
gosub @DES3_26311
88@(43@,4i) = 0

:DES3_26274
43@ += 1
goto @DES3_26206

:DES3_26288
if 
  Blip.DoesExist(103@)
goto_if_false @DES3_26309
Blip.Remove(103@)

:DES3_26309
return 

:DES3_26311
264@ = 0
if 
  264@ == -1
goto_if_false @DES3_26360
265@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)

:DES3_26360
if 
  20 > 264@
goto_if_false @DES3_26438
if 
  not Char.DoesExist(265@(264@,20i))
goto_if_false @DES3_26424
set_lvar_int_to_lvar_int 265@(264@,20i) = 263@
264@ = 20
goto @DES3_26431

:DES3_26424
264@ += 1

:DES3_26431
goto @DES3_26360

:DES3_26438
return 

:DES3_26440
264@ = 0

:DES3_26447
if 
  20 > 264@
goto_if_false @DES3_26528
if 
  Char.DoesExist(265@(264@,20i))
goto_if_false @DES3_26514
if 
  Char.IsDead(265@(264@,20i))
goto_if_false @DES3_26514
Char.RemoveElegantly(265@(264@,20i))

:DES3_26514
264@ += 1
goto @DES3_26447

:DES3_26528
264@ = 0

:DES3_26535
if 
  4 > 264@
goto_if_false @DES3_26687
if 
  Char.DoesExist(84@(264@,4i))
goto_if_false @DES3_26613
if 
  Char.IsDead(84@(264@,4i))
goto_if_false @DES3_26613
Char.RemoveElegantly(84@(264@,4i))
84@(264@,4i) = 0

:DES3_26613
if 
  Char.DoesExist(88@(264@,4i))
goto_if_false @DES3_26673
if 
  Char.IsDead(88@(264@,4i))
goto_if_false @DES3_26673
Char.RemoveElegantly(88@(264@,4i))
88@(264@,4i) = 0

:DES3_26673
264@ += 1
goto @DES3_26535

:DES3_26687
return 
if 
  not Car.IsDead(286@)
goto_if_false @DES3_26719
$x, $y, $z = Car.GetCoordinates(286@)

:DES3_26719
if 
  not Car.IsDead(285@)
goto_if_false @DES3_26856
56@, 57@, 58@ = Car.GetCoordinates(285@)
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
50@ *= -0.0001
51@ *= -0.0001
52@ *= -0.0001
Car.ApplyForce(285@, 50@, 51@, 52@, 0.0, 0.0, 0.0)

:DES3_26856
return 

:DES3_26858
34@ += 1
35@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
return 

:DES3_26916
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:DES3_26934
Text.PrintWithNumberBig('M_PASS', 1000, 5000, TextStyle.Middle)
Player.AddScore($player1, 1000)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.RegisterMissionPassed('DESERT3')
Stat.PlayerMadeProgress(1)
$flag_desert_mission_counter += 1
Stat.SetInt(StatId.PassedDesert3, 1)
Camera.DoFade(1000, Fade.In)

:DES3_27006
if 
  Camera.GetFadingStatus
goto_if_false @DES3_27030
wait 0
goto @DES3_27006

:DES3_27030
return 

:DES3_27032
if 
  not Garage.IsClosed('GHOSTDR')
goto_if_false @DES3_27065
Garage.Close('GHOSTDR')

:DES3_27065
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Streaming.MarkModelAsNoLongerNeeded(568)
Streaming.MarkModelAsNoLongerNeeded(471)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.MarkModelAsNoLongerNeeded(343)
Streaming.MarkModelAsNoLongerNeeded(360)
Streaming.MarkModelAsNoLongerNeeded(165)
Streaming.MarkModelAsNoLongerNeeded(166)
Streaming.MarkModelAsNoLongerNeeded(61)
Streaming.MarkModelAsNoLongerNeeded(355)
Streaming.MarkModelAsNoLongerNeeded(487)
Streaming.MarkModelAsNoLongerNeeded(#KMB_HOLDALL)
Streaming.MarkModelAsNoLongerNeeded(417)
Streaming.MarkModelAsNoLongerNeeded(508)
Streaming.MarkModelAsNoLongerNeeded(#KMB_PARACHUTE)
Streaming.MarkModelAsNoLongerNeeded(68)
Streaming.MarkModelAsNoLongerNeeded(75)
Blip.Remove(101@)
Blip.Remove(102@)
Blip.Remove(103@)
Blip.Remove(104@)
Blip.Remove(105@)
Blip.Remove(106@)
Blip.Remove(107@)
Streaming.RemoveAnimation("BOMBER")
Weather.Release
Hud.ClearCounter($7494)
Hud.ClearCounter($pheli_health)
Pickup.Remove(97@)
Pickup.Remove(98@)
Pickup.Remove(99@)
if 
  Player.IsPlaying($player1)
goto_if_false @DES3_27253
Char.HideWeaponForScriptedCutscene($scplayer, False)

:DES3_27253
DecisionMaker.Remove(66@)
DecisionMaker.Remove(67@)
Particle.Kill(100@)
Player.SetControl($player1, True)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SetWantedMultiplier(1.0)
$timer_mobile_start = Clock.GetGameTimer()
Game.SwitchPoliceHelis(True)
$onmission = 0
Mission.Finish
return 

//-------------Mission 78---------------
// Originally: Verdant Meadows

:DESERT4
script_name 'DESERT4'
gosub @DESERT4_47
if 
  has_deatharrest_been_executed 
goto_if_false @DESERT4_38
gosub @DESERT4_292

:DESERT4_38
gosub @DESERT4_429
terminate_this_script 

:DESERT4_47
Stat.RegisterMissionGiven
$onmission = 1
wait 0
Text.LoadMissionText('DSERT4')
Weather.Force(WeatherType.ExtraSunnyDesert)
World.ClearArea(-688.1717, 937.9888, 12.6328, 10.0, True)
Cutscene.Load('DESERT4')

:DESERT4_110
if 
  not Cutscene.HasLoaded
goto_if_false @DESERT4_134
wait 0
goto @DESERT4_110

:DESERT4_134
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:DESERT4_143
if 
  not Cutscene.HasFinished
goto_if_false @DESERT4_167
wait 0
goto @DESERT4_143

:DESERT4_167
Camera.DoFade(0, Fade.Out)

:DESERT4_173
if 
  Camera.GetFadingStatus
goto_if_false @DESERT4_197
wait 0
goto @DESERT4_173

:DESERT4_197
Weather.Release
Cutscene.Clear
Char.SetCoordinates($scplayer, -696.0359, 948.1198, 11.276)
Char.SetHeading($scplayer, 33.1992)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Streaming.LoadScene(-696.0359, 948.1198, 11.276)
Camera.DoFade(1000, Fade.In)
wait 1000
Text.PrintNow('BUY_AIR', 10000, 1)
goto @DESERT4_310

:DESERT4_292
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:DESERT4_310
$flag_desert_mission_counter += 1
Stat.RegisterMissionPassed('DESERT4')
Blip.Remove($desert_contact_blip)
CarGenerator.Switch($f1_bronze_car_gen, 101)
CarGenerator.Switch($area51_gen, 101)
start_new_script @BUY3 
Blip.Remove($airstrip_contact_blip)
$airstrip_contact_blip = Blip.AddShortRangeSpriteForContactPoint($propertyX[2], $propertyY[2], $propertyZ[2], RadarSprite.PropertyG)
Blip.ChangeDisplay($airstrip_contact_blip, BlipDisplay.BlipOnly)
Blip.Remove($desert2_contact_blip)
$desert2_contact_blip = Blip.AddSpriteForContactPoint($pilotx, $piloty, $pilotz, $desert2_blip_icon)
Blip.ChangeDisplay($desert2_contact_blip, BlipDisplay.BlipOnly)
Stat.SetInt(StatId.PassedDesert4, 1)
Game.SetMaxWantedLevel(6)
Stat.PlayerMadeProgress(1)
return 

:DESERT4_429
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

//-------------Mission 79---------------
// Originally: N.O.E.

:DESERT6
script_name 'DESERT6'
gosub @DESERT6_47
if 
  has_deatharrest_been_executed 
goto_if_false @DESERT6_38
gosub @DESERT6_10307

:DESERT6_38
gosub @DESERT6_10519
terminate_this_script 

:DESERT6_47
Stat.RegisterMissionGiven
$onmission = 1
75@ = 0
76@ = 0
77@ = 0
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
45@ = 0
46@ = 0
47@ = 0
TIMERA = 0
TIMERB = 0
78@ = 1
79@ = 0
80@ = 0
81@ = 0
82@ = -1
83@ = 0
84@ = 0
86@ = 0
85@ = 0
48@ = 0

:DESERT6_231
87@(48@,3i) = 0
48@ += 1
  48@ >= 3
goto_if_false @DESERT6_231
48@ = 0

:DESERT6_270
184@(48@,2i) = 0
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_270
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
183@ = 0
if 
  34@ == -99
goto_if_false @DESERT6_694
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
125@ = Car.Create(476, 0.0, 0.0, 0.0)
48@ = 0

:DESERT6_463
126@(48@,2i) = Car.Create(520, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_463
48@ = 0

:DESERT6_518
123@(48@,2i) = Char.Create(PedType.CivMale, 43, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_518
48@ = 0

:DESERT6_574
128@(48@,4i) = Object.Create(#AMMO_CAPSULE, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_574
133@ = Blip.AddForCar(125@)
132@ = Blip.AddForCoord(0.0, 0.0, 0.0)
48@ = 0

:DESERT6_657
134@(48@,2i) = Blip.AddForCar(126@(48@,2i))
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_657

:DESERT6_694
Text.LoadMissionText('DSERT6')
gosub @DESERT6_9725
136@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
gosub @DESERT6_9939

:DESERT6_726
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DESERT6_759
36@ = 1
goto @DESERT6_1014

:DESERT6_759
gosub @DESERT6_9057
gosub @DESERT6_9410
if or
  38@ == 1
  39@ == 1
goto_if_false @DESERT6_805
goto @DESERT6_1014

:DESERT6_805
gosub @DESERT6_9622
gosub @DESERT6_9656
if 
  Char.IsDead($scplayer)
goto_if_false @DESERT6_849
37@ = 1
goto @DESERT6_1014

:DESERT6_849
if 
  34@ == 0
goto_if_false @DESERT6_907
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:DESERT6_907
if 
  34@ == 1
goto_if_false @DESERT6_932
gosub @DESERT6_1162

:DESERT6_932
if 
  34@ == 2
goto_if_false @DESERT6_957
gosub @DESERT6_1336

:DESERT6_957
if 
  34@ == 3
goto_if_false @DESERT6_982
gosub @DESERT6_2968

:DESERT6_982
if 
  34@ == 4
goto_if_false @DESERT6_1007
36@ = 1

:DESERT6_1007
gosub @DESERT6_6815

:DESERT6_1014
if 
  38@ == 0
goto_if_false @DESERT6_1114
if 
  37@ == 0
goto_if_false @DESERT6_1098
if 
  36@ == 0
goto_if_false @DESERT6_1082
goto @DESERT6_726
goto @DESERT6_1091

:DESERT6_1082
gosub @DESERT6_10459
return 

:DESERT6_1091
goto @DESERT6_1107

:DESERT6_1098
gosub @DESERT6_10307
return 

:DESERT6_1107
goto @DESERT6_1116

:DESERT6_1114
return 

:DESERT6_1116
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:DESERT6_1162
if 
  35@ == 0
goto_if_false @DESERT6_1228
Text.PrintNow('DES6_00', 7000, 1)
gosub @DESERT6_6258
81@ = 1
gosub @DESERT6_7633
Audio.SetRadioChannel(RadioChannel.UserTracks)
35@ += 1

:DESERT6_1228
if 
  Car.IsDead(125@)
goto_if_false @DESERT6_1260
37@ = 1
45@ = 1
return 

:DESERT6_1260
if 
  35@ == 1
goto_if_false @DESERT6_1309
if 
  Char.IsInCar($scplayer, 125@)
goto_if_false @DESERT6_1309
Blip.Remove(133@)
35@ = 99

:DESERT6_1309
if 
  35@ == 99
goto_if_false @DESERT6_1334
gosub @DESERT6_9695

:DESERT6_1334
return 

:DESERT6_1336
if 
  35@ == 0
goto_if_false @DESERT6_1620
181@ = 0
set_lvar_int_to_lvar_int 137@ = 46@
137@ += 2000
159@ = -2135.59
160@ = -2488.454
161@ = 55.895
132@ = Blip.AddForCoord(159@, 160@, 161@)
set_lvar_float_to_lvar_float 70@ = 160@
70@ += 1.0
152@ = Checkpoint.Create(CheckpointType.Torus, 159@, 160@, 161@, 159@, 70@, 161@, 25.0)
$des3_heat = 0
138@ = 0
163@ = 0
165@ = 0
166@ = 0
172@ = 0
$g_Desert6_failureKM = 10
$g_Desert6_failureKM *= 60000
Hud.DisplayTimerWithString($g_Desert6_failureKM, TimerDirection.Down, 'DES6_51')
162@ = Char.GetHeightAboveGround($scplayer)
48@ = 0

:DESERT6_1559
177@(48@,2i) = 0
150@(48@,2i) = 0
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_1559
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 28600)
Zone.SetDisableMilitaryZones(True)
35@ += 1

:DESERT6_1620
if 
  Car.IsDead(125@)
goto_if_false @DESERT6_1709
48@ = 0

:DESERT6_1643
if 
  Object.DoesExist(128@(48@,4i))
goto_if_false @DESERT6_1672
Object.Delete(128@(48@,4i))

:DESERT6_1672
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_1643
37@ = 1
45@ = 1
return 

:DESERT6_1709
gosub @DESERT6_4831
if 
  37@ == 1
goto_if_false @DESERT6_1736
return 

:DESERT6_1736
if 
  $g_Desert6_failureKM == 0
goto_if_false @DESERT6_1770
37@ = 1
45@ = 3
return 

:DESERT6_1770
if 
  35@ == 1
goto_if_false @DESERT6_1867
if 
  is_int_lvar_greater_than_int_lvar 46@ > 137@
goto_if_false @DESERT6_1867
70@ = Char.GetHeightAboveGround($scplayer)
sub_float_lvar_from_float_lvar 70@ -= 162@
if 
  70@ > 2.0
goto_if_false @DESERT6_1867
Hud.DisplayCounterWithString($des3_heat, CounterDisplay.Bar, 'DES6_50')
35@ += 1

:DESERT6_1867
if 
  35@ == 2
goto_if_false @DESERT6_2061
set_lvar_float_to_lvar_float 57@ = 159@
57@ -= 25.0
set_lvar_float_to_lvar_float 58@ = 160@
58@ -= 2.0
set_lvar_float_to_lvar_float 59@ = 161@
59@ -= 25.0
set_lvar_float_to_lvar_float 60@ = 159@
60@ += 25.0
set_lvar_float_to_lvar_float 61@ = 160@
61@ += 2.0
set_lvar_float_to_lvar_float 62@ = 161@
62@ += 25.0
if and
  Char.IsInArea3D($scplayer, 57@, 58@, 59@, 60@, 61@, 62@, False)
  Char.IsInCar($scplayer, 125@)
goto_if_false @DESERT6_2061
Blip.Remove(132@)
Checkpoint.Delete(152@)
gosub @DESERT6_6561
35@ = 99

:DESERT6_2061
gosub @DESERT6_4188
gosub @DESERT6_5173
if 
  165@ == 1
goto_if_false @DESERT6_2119
if 
  is_int_lvar_greater_than_int_lvar 46@ > 140@
goto_if_false @DESERT6_2119
166@ = 1

:DESERT6_2119
if 
  166@ == 1
goto_if_false @DESERT6_2175
gosub @DESERT6_5600
50@ = 30
50@ *= 1000
set_lvar_int_to_lvar_int 140@ = 46@
add_int_lvar_to_int_lvar 140@ += 50@

:DESERT6_2175
gosub @DESERT6_6031
if 
  168@ == 0
goto_if_false @DESERT6_2331
57@, 58@, 59@ = Char.GetCoordinates($scplayer)
72@ = Math.GetDistanceBetweenCoords3D(57@, 58@, 59@, 159@, 160@, 161@)
if 
  500.0 > 72@
goto_if_false @DESERT6_2331
if 
  Camera.IsPointOnScreen(159@, 160@, 161@, 5.0)
goto_if_false @DESERT6_2331
Text.PrintNow('DES6_09', 7000, 1)
168@ = 1
169@ = 1
set_lvar_int_to_lvar_int 144@ = 46@
144@ += 7000

:DESERT6_2331
if 
  169@ == 1
goto_if_false @DESERT6_2375
if 
  is_int_lvar_greater_than_int_lvar 46@ > 144@
goto_if_false @DESERT6_2375
169@ = 0

:DESERT6_2375
if 
  not is_local_var_bit_set_const 85@ {n} 2
goto_if_false @DESERT6_2471
if and
  is_local_var_bit_set_const 85@ {n} 1
  80@ == 0
goto_if_false @DESERT6_2439
81@ = 2
gosub @DESERT6_7633
goto @DESERT6_2471

:DESERT6_2439
if and
  80@ == 1
  $des3_heat >= 40
goto_if_false @DESERT6_2471
gosub @DESERT6_7857

:DESERT6_2471
if and
  163@ == 1
  165@ == 0
  169@ == 0
goto_if_false @DESERT6_2549
if and
  not is_local_var_bit_set_const 85@ {n} 2
  80@ == 2
  79@ == 1
  $des3_heat >= 40
goto_if_false @DESERT6_2549
gosub @DESERT6_7788

:DESERT6_2549
if and
  not is_local_var_bit_set_const 85@ {n} 3
  is_local_var_bit_set_const 85@ {n} 2
  80@ == 0
goto_if_false @DESERT6_2595
81@ = 3
gosub @DESERT6_7633

:DESERT6_2595
if and
  165@ == 1
  not is_local_var_bit_set_const 85@ {n} 3
  80@ == 3
  79@ == 1
goto_if_false @DESERT6_2641
gosub @DESERT6_7788

:DESERT6_2641
if 
  167@ == 0
goto_if_false @DESERT6_2707
if and
  is_local_var_bit_set_const 85@ {n} 3
  79@ <> 2
goto_if_false @DESERT6_2707
Text.PrintNow('DES6_06', 7000, 1)
167@ = 1

:DESERT6_2707
if 
  180@ == 0
goto_if_false @DESERT6_2820
if 
  Char.IsInArea2D($scplayer, -67.0004, 1646.886, 423.298, 2132.188, False)
goto_if_false @DESERT6_2820
if or
  Char.IsInAnyPlane($scplayer)
  Char.IsInAnyHeli($scplayer)
goto_if_false @DESERT6_2820
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @DESERT6_2820
Text.PrintNow('AREA51', 7000, 1)
180@ = 1

:DESERT6_2820
if 
  181@ == 0
goto_if_false @DESERT6_2887
if 
  is_int_lvar_greater_than_int_lvar 46@ > 137@
goto_if_false @DESERT6_2887
gosub @DESERT6_7788
set_lvar_int_to_lvar_int 137@ = 46@
137@ += 5000
181@ = 1

:DESERT6_2887
if 
  183@ == 0
goto_if_false @DESERT6_2941
if 
  is_local_var_bit_set_const 85@ {n} 1
goto_if_false @DESERT6_2941
Text.PrintHelp('DES6_12')
183@ = 1

:DESERT6_2941
if 
  35@ == 99
goto_if_false @DESERT6_2966
gosub @DESERT6_9695

:DESERT6_2966
return 

:DESERT6_2968
if 
  35@ == 0
goto_if_false @DESERT6_3201
Text.PrintNow('DES6_10', 5000, 1)
set_lvar_int_to_lvar_int 137@ = 46@
137@ += 5000
153@ = -76.4228
154@ = 2478.64
155@ = 14.2844
156@ = 433.6483
157@ = 2525.658
158@ = 18.6279
set_lvar_float_to_lvar_float 159@ = 156@
sub_float_lvar_from_float_lvar 159@ -= 153@
159@ /= 2.0
add_float_lvar_to_float_lvar 159@ += 153@
set_lvar_float_to_lvar_float 160@ = 157@
sub_float_lvar_from_float_lvar 160@ -= 154@
160@ /= 2.0
add_float_lvar_to_float_lvar 160@ += 154@
set_lvar_float_to_lvar_float 161@ = 158@
sub_float_lvar_from_float_lvar 161@ -= 155@
161@ /= 2.0
add_float_lvar_to_float_lvar 161@ += 155@
132@ = Blip.AddForCoord(159@, 160@, 161@)
35@ += 1

:DESERT6_3201
if 
  Car.IsDead(125@)
goto_if_false @DESERT6_3233
37@ = 1
45@ = 1
return 

:DESERT6_3233
gosub @DESERT6_4831
if 
  37@ == 1
goto_if_false @DESERT6_3260
return 

:DESERT6_3260
if 
  $g_Desert6_failureKM == 0
goto_if_false @DESERT6_3294
37@ = 1
45@ = 3
return 

:DESERT6_3294
if 
  35@ == 1
goto_if_false @DESERT6_3437
  Char.LocateAnyMeans3D($scplayer, 159@, 160@, 161@, 10.0, 10.0, 10.0, True)
if and
  Char.IsInArea3D($scplayer, 153@, 154@, 155@, 156@, 157@, 158@, False)
  Char.IsInCar($scplayer, 125@)
  Car.IsStopped(125@)
  not Car.IsInAirProper(125@)
goto_if_false @DESERT6_3437
Blip.Remove(132@)
gosub @DESERT6_7788
Player.SetControl($player1, False)
165@ = 0
141@ = 0
35@ += 1

:DESERT6_3437
if 
  35@ == 2
goto_if_false @DESERT6_3487
if 
  is_local_var_bit_set_const 85@ {n} 4
goto_if_false @DESERT6_3487
Player.SetControl($player1, True)
35@ = 99

:DESERT6_3487
gosub @DESERT6_4188
gosub @DESERT6_5173
if 
  165@ == 1
goto_if_false @DESERT6_3545
if 
  is_int_lvar_greater_than_int_lvar 46@ > 140@
goto_if_false @DESERT6_3545
166@ = 1

:DESERT6_3545
if 
  166@ == 1
goto_if_false @DESERT6_3601
gosub @DESERT6_5600
50@ = 30
50@ *= 1000
set_lvar_int_to_lvar_int 140@ = 46@
add_int_lvar_to_int_lvar 140@ += 50@

:DESERT6_3601
gosub @DESERT6_6031
if 
  170@ == 0
goto_if_false @DESERT6_3730
57@, 58@, 59@ = Char.GetCoordinates($scplayer)
72@ = Math.GetDistanceBetweenCoords3D(57@, 58@, 59@, 159@, 160@, 161@)
if 
  500.0 > 72@
goto_if_false @DESERT6_3730
Text.PrintNow('DES6_11', 7000, 1)
170@ = 1
171@ = 1
set_lvar_int_to_lvar_int 145@ = 46@
145@ += 7000

:DESERT6_3730
if 
  171@ == 1
goto_if_false @DESERT6_3808
if 
  is_int_lvar_greater_than_int_lvar 46@ > 145@
goto_if_false @DESERT6_3792
171@ = 0
Text.ClearThisPrint('DES6_11')
goto @DESERT6_3808

:DESERT6_3792
Text.PrintNow('DES6_11', 7000, 1)

:DESERT6_3808
if 
  172@ == 0
goto_if_false @DESERT6_3833
gosub @DESERT6_6621

:DESERT6_3833
if and
  170@ == 1
  80@ <> 4
  not is_local_var_bit_set_const 85@ {n} 4
goto_if_false @DESERT6_3963
switch_start 79@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @DESERT6_3963 {caseNum1} 0 {caseLabel1} @DESERT6_3928 {caseNum2} 1 {caseLabel2} @DESERT6_3949 {caseNum3} -1 {caseLabel3} @DESERT6_3963 {caseNum4} -1 {caseLabel4} @DESERT6_3963 {caseNum5} -1 {caseLabel5} @DESERT6_3963 {caseNum6} -1 {caseLabel6} @DESERT6_3963 {caseNum7} -1 {caseLabel7} @DESERT6_3963

:DESERT6_3928
81@ = 4
gosub @DESERT6_7633
goto @DESERT6_3963

:DESERT6_3949
gosub @DESERT6_7857
goto @DESERT6_3963

:DESERT6_3963
if 
  180@ == 0
goto_if_false @DESERT6_4076
if 
  Char.IsInArea2D($scplayer, -67.0004, 1646.886, 423.298, 2132.188, False)
goto_if_false @DESERT6_4076
if or
  Char.IsInAnyPlane($scplayer)
  Char.IsInAnyHeli($scplayer)
goto_if_false @DESERT6_4076
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @DESERT6_4076
Text.PrintNow('AREA51', 7000, 1)
180@ = 1

:DESERT6_4076
if 
  35@ == 99
goto_if_false @DESERT6_4101
gosub @DESERT6_9695

:DESERT6_4101
return 

:DESERT6_4103
57@ = 323.5454
58@ = 2540.254
59@ = 15.8085
63@ = 180.0
World.ClearArea(57@, 58@, 59@, 15.0, True)
125@ = Car.Create(476, 57@, 58@, 59@)
Car.SetHeading(125@, 63@)
return 

:DESERT6_4188
57@, 58@, 59@ = Car.GetCoordinates(125@)
70@ = World.GetGroundZFor3DCoord(57@, 58@, 59@)
71@ = World.GetWaterHeightAtCoords(57@, 58@, False)
if 
  is_float_lvar_greater_than_float_lvar 71@ > 70@
goto_if_false @DESERT6_4256
set_lvar_float_to_lvar_float 70@ = 71@

:DESERT6_4256
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 70@
if 
  71@ > 40.0
goto_if_false @DESERT6_4581
if 
  163@ == 1
goto_if_false @DESERT6_4527
if 
  is_int_lvar_greater_than_int_lvar 46@ > 138@
goto_if_false @DESERT6_4454
$des3_heat += 1
if 
  $des3_heat > 100
goto_if_false @DESERT6_4362
$des3_heat = 100

:DESERT6_4362
if and
  $des3_heat == 100
  165@ == 0
goto_if_false @DESERT6_4439
165@ = 1
166@ = 0
182@ = 0
50@ = 3
50@ *= 1000
set_lvar_int_to_lvar_int 140@ = 46@
add_int_lvar_to_int_lvar 140@ += 50@

:DESERT6_4439
set_lvar_int_to_lvar_int 138@ = 46@
138@ += 80

:DESERT6_4454
if and
  165@ == 0
  169@ == 0
  179@ == 0
goto_if_false @DESERT6_4520
if 
  79@ <> 2
goto_if_false @DESERT6_4520
Text.PrintNow('DES6_07', 1000, 1)

:DESERT6_4520
goto @DESERT6_4574

:DESERT6_4527
if 
  71@ > 41.0
goto_if_false @DESERT6_4574
163@ = 1
set_lvar_int_to_lvar_int 138@ = 46@
138@ += 80
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:DESERT6_4574
goto @DESERT6_4829

:DESERT6_4581
if 
  163@ == 1
goto_if_false @DESERT6_4738
163@ = 0
if 
  $des3_heat > 0
goto_if_false @DESERT6_4646
set_lvar_int_to_lvar_int 138@ = 46@
138@ += 40
goto @DESERT6_4653

:DESERT6_4646
138@ = 0

:DESERT6_4653
if 
  165@ == 1
goto_if_false @DESERT6_4702
50@ = 10
50@ *= 1000
set_lvar_int_to_lvar_int 141@ = 46@
add_int_lvar_to_int_lvar 141@ += 50@

:DESERT6_4702
165@ = 0
140@ = 0
Text.ClearThisPrint('DES6_07')
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
goto @DESERT6_4829

:DESERT6_4738
if 
  $des3_heat > 0
goto_if_false @DESERT6_4829
if 
  is_int_lvar_greater_than_int_lvar 46@ > 138@
goto_if_false @DESERT6_4829
$des3_heat -= 1
if 
  $des3_heat == 0
goto_if_false @DESERT6_4814
138@ = 0
goto @DESERT6_4829

:DESERT6_4814
set_lvar_int_to_lvar_int 138@ = 46@
138@ += 40

:DESERT6_4829
return 

:DESERT6_4831
if 
  not Char.IsInCar($scplayer, 125@)
goto_if_false @DESERT6_5111
if 
  164@ == 1
goto_if_false @DESERT6_5027
if 
  is_int_lvar_greater_than_int_lvar 46@ > 139@
goto_if_false @DESERT6_5020
if 
  $g_Desert6_visibilityKM == 0
goto_if_false @DESERT6_4928
37@ = 1
45@ = 2
return 
goto @DESERT6_5020

:DESERT6_4928
$g_Desert6_visibilityKM -= 1
set_lvar_int_to_lvar_int 139@ = 46@
139@ += 1000
Text.ClearSmallPrints
Text.AddNextMessageToPreviousBriefs(False)
if 
  $g_Desert6_visibilityKM == 1
goto_if_false @DESERT6_5001
Text.PrintWithNumberNow('DES6_04', $g_Desert6_visibilityKM, 1500, 1)
goto @DESERT6_5020

:DESERT6_5001
Text.PrintWithNumberNow('DES6_03', $g_Desert6_visibilityKM, 1500, 1)

:DESERT6_5020
goto @DESERT6_5104

:DESERT6_5027
$g_Desert6_visibilityKM = 30
set_lvar_int_to_lvar_int 139@ = 46@
139@ += 1000
Text.AddNextMessageToPreviousBriefs(False)
Text.PrintWithNumberNow('DES6_03', $g_Desert6_visibilityKM, 1500, 1)
Blip.Remove(132@)
133@ = Blip.AddForCar(125@)
Blip.SetAsFriendly(133@, True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
164@ = 1

:DESERT6_5104
goto @DESERT6_5171

:DESERT6_5111
if 
  164@ == 1
goto_if_false @DESERT6_5171
164@ = 0
Blip.Remove(133@)
132@ = Blip.AddForCoord(159@, 160@, 161@)
139@ = 0
$g_Desert6_visibilityKM = 0
Text.ClearSmallPrints

:DESERT6_5171
return 

:DESERT6_5173
179@ = 0
48@ = 0

:DESERT6_5187
73@ = 0
if 
  184@(48@,2i) == 1
goto_if_false @DESERT6_5577
179@ = 1
if or
  Car.IsDead(126@(48@,2i))
  Char.IsDead(123@(48@,2i))
goto_if_false @DESERT6_5259
73@ = 1

:DESERT6_5259
if 
  73@ == 0
goto_if_false @DESERT6_5304
if 
  Car.IsInWater(126@(48@,2i))
goto_if_false @DESERT6_5304
73@ = 1

:DESERT6_5304
if 
  73@ == 0
goto_if_false @DESERT6_5485
if 
  177@(48@,2i) == 1
goto_if_false @DESERT6_5430
if 
  Car.IsInAirProper(126@(48@,2i))
goto_if_false @DESERT6_5393
177@(48@,2i) = 0
150@(48@,2i) = 0
goto @DESERT6_5423

:DESERT6_5393
if 
  is_int_lvar_greater_than_int_lvar 46@ > 150@(48@,2i)
goto_if_false @DESERT6_5423
73@ = 1

:DESERT6_5423
goto @DESERT6_5485

:DESERT6_5430
if 
  not Car.IsInAirProper(126@(48@,2i))
goto_if_false @DESERT6_5485
177@(48@,2i) = 1
set_lvar_int_to_lvar_int 150@(48@,2i) = 46@
150@(48@,2i) += 5000

:DESERT6_5485
if 
  73@ == 1
goto_if_false @DESERT6_5577
Car.MarkAsNoLongerNeeded(126@(48@,2i))
Char.MarkAsNoLongerNeeded(123@(48@,2i))
Blip.Remove(134@(48@,2i))
184@(48@,2i) = 0
if 
  165@ == 1
goto_if_false @DESERT6_5575
set_lvar_int_to_lvar_int 140@ = 46@
140@ += 2000

:DESERT6_5575
return 

:DESERT6_5577
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_5187
return 

:DESERT6_5600
57@, 58@, 59@ = Char.GetCoordinates($scplayer)
48@ = 0

:DESERT6_5621
if 
  184@(48@,2i) == 0
goto_if_false @DESERT6_6008
50@ = Math.RandomIntInRange(150, 200)
cset_lvar_float_to_lvar_int 70@ =# 50@
51@ = Math.RandomIntInRange(0, 2)
if 
  51@ == 0
goto_if_false @DESERT6_5704
add_float_lvar_to_float_lvar 57@ += 70@
goto @DESERT6_5712

:DESERT6_5704
sub_float_lvar_from_float_lvar 57@ -= 70@

:DESERT6_5712
50@ = Math.RandomIntInRange(150, 200)
cset_lvar_float_to_lvar_int 70@ =# 50@
51@ = Math.RandomIntInRange(0, 2)
if 
  51@ == 0
goto_if_false @DESERT6_5773
add_float_lvar_to_float_lvar 58@ += 70@
goto @DESERT6_5781

:DESERT6_5773
sub_float_lvar_from_float_lvar 58@ -= 70@

:DESERT6_5781
70@ = World.GetGroundZFor3DCoord(57@, 58@, 59@)
71@ = World.GetWaterHeightAtCoords(57@, 58@, False)
if 
  is_float_lvar_greater_than_float_lvar 71@ > 70@
goto_if_false @DESERT6_5835
set_lvar_float_to_lvar_float 70@ = 71@

:DESERT6_5835
set_lvar_float_to_lvar_float 59@ = 70@
59@ += 200.0
126@(48@,2i) = Car.Create(520, 57@, 58@, 59@)
Plane.StartsInAir(126@(48@,2i))
Plane.AttackPlayer(126@(48@,2i), $player1, 10.0)
134@(48@,2i) = Blip.AddForCar(126@(48@,2i))
Blip.ChangeDisplay(134@(48@,2i), BlipDisplay.BlipOnly)
123@(48@,2i) = Char.CreateInsideCar(126@(48@,2i), PedType.CivMale, 43)
Char.SetDecisionMaker(123@(48@,2i), 136@)
177@(48@,2i) = 0
150@(48@,2i) = 0
184@(48@,2i) = 1
166@ = 0
182@ = 1
return 

:DESERT6_6008
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_5621
return 

:DESERT6_6031
if 
  165@ == 1
goto_if_false @DESERT6_6051
return 

:DESERT6_6051
if 
  is_int_lvar_greater_than_int_lvar 141@ > 46@
goto_if_false @DESERT6_6072
return 

:DESERT6_6072
if 
  182@ == 0
goto_if_false @DESERT6_6092
return 

:DESERT6_6092
60@, 61@, 62@ = Char.GetCoordinates($scplayer)
48@ = 0

:DESERT6_6113
if 
  184@(48@,2i) == 1
goto_if_false @DESERT6_6235
57@, 58@, 59@ = Car.GetCoordinates(126@(48@,2i))
70@ = Math.GetDistanceBetweenCoords3D(57@, 58@, 59@, 60@, 61@, 62@)
if 
  70@ > 250.0
goto_if_false @DESERT6_6235
Char.RemoveElegantly(123@(48@,2i))
Car.Delete(126@(48@,2i))
Blip.Remove(134@(48@,2i))
184@(48@,2i) = 0

:DESERT6_6235
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_6113
return 

:DESERT6_6258
if 
  Car.IsDead(125@)
goto_if_false @DESERT6_6276
return 

:DESERT6_6276
128@ = Object.Create(#AMMO_CAPSULE, 370.5, 2498.75, 25.5)
129@ = Object.Create(#AMMO_CAPSULE, 371.25, 2498.35, 25.3)
130@ = Object.Create(#AMMO_CAPSULE, 371.25, 2499.15, 25.7)
131@ = Object.Create(#AMMO_CAPSULE, 372.0, 2498.35, 25.4)
Object.AttachToCar(128@, 125@, -0.75, 0.3, -1.05, 88.0, 0.0, 0.0)
Object.AttachToCar(129@, 125@, -0.25, 0.3, -1.1, 88.0, 0.0, 0.0)
Object.AttachToCar(130@, 125@, 0.25, 0.3, -1.1, 88.0, 0.0, 0.0)
Object.AttachToCar(131@, 125@, 0.75, 0.3, -1.05, 88.0, 0.0, 0.0)
48@ = 0

:DESERT6_6527
Object.SetCollision(128@(48@,4i), False)
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_6527
return 

:DESERT6_6561
172@ = 0
48@ = 0

:DESERT6_6575
set_lvar_int_to_lvar_int 146@(48@,4i) = 46@
173@(48@,4i) = 0
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_6575
return 

:DESERT6_6621
48@ = 0

:DESERT6_6628
if 
  173@(48@,4i) == 0
goto_if_false @DESERT6_6733
if 
  is_int_lvar_greater_than_int_lvar 46@ > 146@(48@,4i)
goto_if_false @DESERT6_6733
Object.Detach(128@(48@,4i), 0.0, 0.0, 0.0, True)
Object.SetDynamic(128@(48@,4i), True)
Audio.ReportMissionAudioEventAtObject(128@(48@,4i), 1009)
173@(48@,4i) = 1

:DESERT6_6733
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_6628
48@ = 0

:DESERT6_6761
if 
  173@(48@,4i) == 0
goto_if_false @DESERT6_6785
return 

:DESERT6_6785
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_6761
172@ = 1
return 

:DESERT6_6815
switch_start 79@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @DESERT6_6899 {caseNum1} 0 {caseLabel1} @DESERT6_6878 {caseNum2} 1 {caseLabel2} @DESERT6_6878 {caseNum3} 2 {caseLabel3} @DESERT6_6885 {caseNum4} 3 {caseLabel4} @DESERT6_6878 {caseNum5} 4 {caseLabel5} @DESERT6_6878 {caseNum6} -1 {caseLabel6} @DESERT6_6935 {caseNum7} -1 {caseLabel7} @DESERT6_6935

:DESERT6_6878
goto @DESERT6_6935

:DESERT6_6885
gosub @DESERT6_7075
goto @DESERT6_6935

:DESERT6_6899
write_debug "UNKNOWN_CONVERSATION_STATUS_ID"
return 

:DESERT6_6935
return 

:DESERT6_6937
if 
  is_int_lvar_equal_to_int_lvar 84@ == 83@
goto_if_false @DESERT6_6958
return 

:DESERT6_6958
50@ = 1
87@(50@,3i) = 1
Audio.LoadMissionAudio(50@, 90@(84@,11i))
84@ += 1
if 
  is_int_lvar_equal_to_int_lvar 84@ == 83@
goto_if_false @DESERT6_7016
return 

:DESERT6_7016
50@ += 1
if 
  50@ > 2
goto_if_false @DESERT6_7043
return 

:DESERT6_7043
87@(50@,3i) = 1
Audio.LoadMissionAudio(50@, 90@(84@,11i))
84@ += 1
return 

:DESERT6_7075
gosub @DESERT6_8047
if 
  79@ == 3
goto_if_false @DESERT6_7109
gosub @DESERT6_7325
return 

:DESERT6_7109
switch_start 87@(78@,3i) {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @DESERT6_7292 {caseNum1} 0 {caseLabel1} @DESERT6_7176 {caseNum2} 1 {caseLabel2} @DESERT6_7185 {caseNum3} 2 {caseLabel3} @DESERT6_7221 {caseNum4} 3 {caseLabel4} @DESERT6_7260 {caseNum5} -1 {caseLabel5} @DESERT6_7323 {caseNum6} -1 {caseLabel6} @DESERT6_7323 {caseNum7} -1 {caseLabel7} @DESERT6_7323

:DESERT6_7176
return 
goto @DESERT6_7323

:DESERT6_7185
if 
  not Audio.HasMissionAudioLoaded(78@)
goto_if_false @DESERT6_7203
return 

:DESERT6_7203
87@(78@,3i) = 2
goto @DESERT6_7323

:DESERT6_7221
Audio.PlayMissionAudio(78@)
Text.PrintNow(101@(82@,11s), 10000, 1)
87@(78@,3i) = 3
return 
goto @DESERT6_7323

:DESERT6_7260
if 
  not Audio.HasMissionAudioFinished(78@)
goto_if_false @DESERT6_7278
return 

:DESERT6_7278
gosub @DESERT6_7378
goto @DESERT6_7323

:DESERT6_7292
write_debug "UNKNOWN_AUDIO_SLOT_STATUS"
return 

:DESERT6_7323
return 

:DESERT6_7325
50@ = 1

:DESERT6_7332
if 
  2 >= 50@
goto_if_false @DESERT6_7369
Audio.ClearMissionAudio(50@)
50@ += 1
goto @DESERT6_7332

:DESERT6_7369
gosub @DESERT6_7507
return 

:DESERT6_7378
87@(78@,3i) = 0
82@ += 1
if 
  is_int_lvar_equal_to_int_lvar 82@ == 83@
goto_if_false @DESERT6_7424
gosub @DESERT6_7507
return 

:DESERT6_7424
if 
  is_int_lvar_greater_than_int_lvar 83@ > 84@
goto_if_false @DESERT6_7473
87@(78@,3i) = 1
Audio.LoadMissionAudio(78@, 90@(84@,11i))
84@ += 1

:DESERT6_7473
78@ += 1
if 
  78@ > 2
goto_if_false @DESERT6_7505
78@ = 1

:DESERT6_7505
return 

:DESERT6_7507
set_local_var_bit_lvar 85@ {var_n} 80@
80@ = 0
79@ = 0
81@ = 0
78@ = 1
82@ = 0
83@ = 0
84@ = 0
50@ = 1

:DESERT6_7571
if 
  2 > 50@
goto_if_false @DESERT6_7614
87@(50@,3i) = 0
50@ += 1
goto @DESERT6_7571

:DESERT6_7614
Text.ClearSmallPrints
set_lvar_int_to_lvar_int 86@ = 46@
86@ += 120
return 

:DESERT6_7633
if 
  79@ <> 0
goto_if_false @DESERT6_7658
gosub @DESERT6_7857

:DESERT6_7658
if 
  is_int_lvar_greater_than_int_lvar 86@ > 46@
goto_if_false @DESERT6_7679
return 

:DESERT6_7679
86@ = 0
set_lvar_int_to_lvar_int 80@ = 81@
81@ = 0
78@ = 1
82@ = 0
83@ = 0
84@ = 0
50@ = 1

:DESERT6_7736
if 
  2 > 50@
goto_if_false @DESERT6_7779
87@(50@,3i) = 0
50@ += 1
goto @DESERT6_7736

:DESERT6_7779
gosub @DESERT6_7886
return 

:DESERT6_7788
if 
  79@ <> 1
goto_if_false @DESERT6_7848
write_debug "A_CONVERSATION_HAS_NOT_BEEN_PREPARED"
return 

:DESERT6_7848
79@ = 2
return 

:DESERT6_7857
if 
  79@ == 0
goto_if_false @DESERT6_7877
return 

:DESERT6_7877
gosub @DESERT6_7325
return 

:DESERT6_7886
switch_start 80@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @DESERT6_8005 {caseNum1} 1 {caseLabel1} @DESERT6_7949 {caseNum2} 2 {caseLabel2} @DESERT6_7963 {caseNum3} 3 {caseLabel3} @DESERT6_7977 {caseNum4} 4 {caseLabel4} @DESERT6_7991 {caseNum5} -1 {caseLabel5} @DESERT6_8031 {caseNum6} -1 {caseLabel6} @DESERT6_8031 {caseNum7} -1 {caseLabel7} @DESERT6_8031

:DESERT6_7949
gosub @DESERT6_8127
goto @DESERT6_8031

:DESERT6_7963
gosub @DESERT6_8600
goto @DESERT6_8031

:DESERT6_7977
gosub @DESERT6_8797
goto @DESERT6_8031

:DESERT6_7991
gosub @DESERT6_9011
goto @DESERT6_8031

:DESERT6_8005
write_debug "UNKNOWN_CONVERSATION"
return 

:DESERT6_8031
gosub @DESERT6_6937
79@ = 1
return 

:DESERT6_8047
if 
  Char.IsDead($scplayer)
goto_if_false @DESERT6_8072
79@ = 3
return 

:DESERT6_8072
if 
  Car.IsDead(125@)
goto_if_false @DESERT6_8097
79@ = 3
return 

:DESERT6_8097
if 
  not Char.IsInCar($scplayer, 125@)
goto_if_false @DESERT6_8125
79@ = 3
return 

:DESERT6_8125
return 

:DESERT6_8127
50@ = 0
set_lvar_int_to_constant 90@(50@,11i) = 6200
set_lvar_text_label 101@(50@,11s) = 'DES6_AA'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6201
set_lvar_text_label 101@(50@,11s) = 'DES6_AB'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6202
set_lvar_text_label 101@(50@,11s) = 'DES6_AD'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6216
set_lvar_text_label 101@(50@,11s) = 'DES6_AE'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6203
set_lvar_text_label 101@(50@,11s) = 'DES6_AF'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6204
set_lvar_text_label 101@(50@,11s) = 'DES6_AG'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6217
set_lvar_text_label 101@(50@,11s) = 'DES6_AH'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6205
set_lvar_text_label 101@(50@,11s) = 'DES6_AJ'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6206
set_lvar_text_label 101@(50@,11s) = 'DES6_AK'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6218
set_lvar_text_label 101@(50@,11s) = 'DES6_AM'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6207
set_lvar_text_label 101@(50@,11s) = 'DES6_AN'
50@ += 1
if 
  50@ > 11
goto_if_false @DESERT6_8590
write_debug "TOO_MANY_CONVERSATION_LINES"

:DESERT6_8590
set_lvar_int_to_lvar_int 83@ = 50@
return 

:DESERT6_8600
50@ = Math.RandomIntInRange(0, 4)
switch_start 50@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DESERT6_8788 {caseNum1} 0 {caseLabel1} @DESERT6_8672 {caseNum2} 1 {caseLabel2} @DESERT6_8701 {caseNum3} 2 {caseLabel3} @DESERT6_8730 {caseNum4} 3 {caseLabel4} @DESERT6_8759 {caseNum5} -1 {caseLabel5} @DESERT6_8788 {caseNum6} -1 {caseLabel6} @DESERT6_8788 {caseNum7} -1 {caseLabel7} @DESERT6_8788

:DESERT6_8672
set_lvar_int_to_constant 90@ = 6208
set_lvar_text_label 101@s = 'DES6_BA'
goto @DESERT6_8788

:DESERT6_8701
set_lvar_int_to_constant 90@ = 6209
set_lvar_text_label 101@s = 'DES6_BB'
goto @DESERT6_8788

:DESERT6_8730
set_lvar_int_to_constant 90@ = 6210
set_lvar_text_label 101@s = 'DES6_BC'
goto @DESERT6_8788

:DESERT6_8759
set_lvar_int_to_constant 90@ = 6211
set_lvar_text_label 101@s = 'DES6_BD'
goto @DESERT6_8788

:DESERT6_8788
83@ = 1
return 

:DESERT6_8797
50@ = 0
set_lvar_int_to_constant 90@(50@,11i) = 6212
set_lvar_text_label 101@(50@,11s) = 'DES6_CA'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6219
set_lvar_text_label 101@(50@,11s) = 'DES6_CB'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6213
set_lvar_text_label 101@(50@,11s) = 'DES6_CC'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 6214
set_lvar_text_label 101@(50@,11s) = 'DES6_CD'
50@ += 1
if 
  50@ > 11
goto_if_false @DESERT6_9001
write_debug "TOO_MANY_CONVERSATION_LINES"

:DESERT6_9001
set_lvar_int_to_lvar_int 83@ = 50@
return 

:DESERT6_9011
50@ = 0
set_lvar_int_to_constant 90@(50@,11i) = 6215
set_lvar_text_label 101@(50@,11s) = 'DES6_DA'
83@ = 1
return 

:DESERT6_9057
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @DESERT6_9106
47@ += 1
if 
  47@ > 2
goto_if_false @DESERT6_9104
47@ = 0

:DESERT6_9104
clear_all_view_variables 

:DESERT6_9106
if 
  47@ == 1
goto_if_false @DESERT6_9280
set_var_int_to_lvar_int $g_Desert6_timerKM = 34@
set_var_int_to_lvar_int $Desert6_view_debug = 35@
set_var_int_to_lvar_int $7501 = 46@
set_var_int_to_lvar_int $7502 = 80@
set_var_int_to_lvar_int $7503 = 85@
$7504 = 0
$7505 = 0
$7506 = 0
view_integer_variable $g_Desert6_timerKM {_p2} "M_STAGE"
view_integer_variable $Desert6_view_debug {_p2} "M_GOALS"
view_integer_variable $7501 {_p2} "M_MISSION_TIMER"
view_integer_variable $7502 {_p2} "CONVERSATION"
view_integer_variable $7503 {_p2} "CONVERSATIONSPLAYED"

:DESERT6_9280
if 
  47@ == 2
goto_if_false @DESERT6_9298

:DESERT6_9298
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @DESERT6_9320
38@ = 1

:DESERT6_9320
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @DESERT6_9408
if 
  39@ == 0
goto_if_false @DESERT6_9383
39@ = 1
write_debug "LEVEL_PAUSED"
goto @DESERT6_9408

:DESERT6_9383
39@ = 0
write_debug "LEVEL_UNPAUSED"

:DESERT6_9408
return 

:DESERT6_9410
if 
  not is_ps2_keyboard_key_just_pressed 13
goto_if_false @DESERT6_9427
return 

:DESERT6_9427
if 
  34@ == 2
goto_if_false @DESERT6_9548
if 
  2 > 35@
goto_if_false @DESERT6_9531
World.ClearArea(-2246.706, -2539.1, 30.7512, 25.0, True)
Char.SetCoordinates($scplayer, -2246.706, -2539.1, 30.7512)
Char.SetHeading($scplayer, 144.5365)
35@ = 2
goto @DESERT6_9548

:DESERT6_9531
Blip.Remove(132@)
Checkpoint.Delete(152@)
35@ = 99

:DESERT6_9548
if 
  34@ == 3
goto_if_false @DESERT6_9620
World.ClearArea(384.4035, 2449.35, 15.4921, 25.0, True)
Char.SetCoordinates($scplayer, 384.4035, 2449.35, 15.4921)
Char.SetHeading($scplayer, 7.1386)

:DESERT6_9620
return 

:DESERT6_9622
41@ += 1
if 
  41@ > 9
goto_if_false @DESERT6_9654
41@ = 0

:DESERT6_9654
return 

:DESERT6_9656
42@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 44@ = 42@
sub_int_lvar_from_int_lvar 44@ -= 43@
set_lvar_int_to_lvar_int 43@ = 42@
add_int_lvar_to_int_lvar 46@ += 44@
return 

:DESERT6_9695
34@ += 1
35@ = 0
TIMERA = 0
TIMERB = 0
return 

:DESERT6_9725
if 
  not Char.IsDead($scplayer)
goto_if_false @DESERT6_9748
Player.SetControl($player1, False)

:DESERT6_9748
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:DESERT6_9763
if 
  Camera.GetFadingStatus
goto_if_false @DESERT6_9787
wait 0
goto @DESERT6_9763

:DESERT6_9787
World.ClearArea(335.0, 2529.0, 16.0, 20.0, True)
Cutscene.Load('DESERT6')

:DESERT6_9822
if 
  not Cutscene.HasLoaded
goto_if_false @DESERT6_9846
wait 0
goto @DESERT6_9822

:DESERT6_9846
Cutscene.Start
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)
Weather.Force(WeatherType.ExtraSunnyDesert)

:DESERT6_9867
if 
  not Cutscene.HasFinished
goto_if_false @DESERT6_9891
wait 0
goto @DESERT6_9867

:DESERT6_9891
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)

:DESERT6_9905
if 
  Camera.GetFadingStatus
goto_if_false @DESERT6_9929
wait 0
goto @DESERT6_9905

:DESERT6_9929
Cutscene.Clear
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
return 

:DESERT6_9939
if 
  not Player.IsPlaying($player1)
goto_if_false @DESERT6_9966
wait 0
goto @DESERT6_9939

:DESERT6_9966
CarGenerator.Switch($d5_bronze_generator, 0)
CarGenerator.Switch($d5_silver_generator, 0)
CarGenerator.Switch($d5_gold_generator, 0)
World.ClearArea(368.1973, 2519.421, 15.5961, 300.0, False)
gosub @DESERT6_10197
gosub @DESERT6_10305
gosub @DESERT6_4103
133@ = Blip.AddForCar(125@)
Blip.SetAsFriendly(133@, True)
World.ClearArea(331.9908, 2533.767, 15.8044, 0.5, False)
Streaming.LoadScene(331.9908, 2533.767, 15.8044)
Char.SetCoordinates($scplayer, 331.9908, 2533.767, 15.8044)
Char.SetHeading($scplayer, 48.4743)
Camera.SetBehindPlayer
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
Game.SwitchAmbientPlanes(False)
wait 500
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)
if 
  not Char.IsDead($scplayer)
goto_if_false @DESERT6_10171
Player.SetControl($player1, True)

:DESERT6_10171
Restart.SetRespawnPointForDurationOfMission(322.8019, 2530.124, 15.8089)
gosub @DESERT6_9695
return 

:DESERT6_10197
Streaming.RequestModel(476)
Streaming.RequestModel(520)
Streaming.RequestModel(43)
Streaming.RequestModel(#AMMO_CAPSULE)
Streaming.LoadAllModelsNow

:DESERT6_10218
if or
  not Streaming.HasModelLoaded(476)
  not Streaming.HasModelLoaded(520)
goto_if_false @DESERT6_10250
wait 0
goto @DESERT6_10218

:DESERT6_10250
if 
  not Streaming.HasModelLoaded(43)
goto_if_false @DESERT6_10276
wait 0
goto @DESERT6_10250

:DESERT6_10276
if 
  not Streaming.HasModelLoaded(#AMMO_CAPSULE)
goto_if_false @DESERT6_10303
wait 0
goto @DESERT6_10276

:DESERT6_10303
return 

:DESERT6_10305
return 

:DESERT6_10307
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Text.ClearSmallPrints
switch_start 45@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DESERT6_10457 {caseNum1} 1 {caseLabel1} @DESERT6_10388 {caseNum2} 2 {caseLabel2} @DESERT6_10411 {caseNum3} 3 {caseLabel3} @DESERT6_10434 {caseNum4} -1 {caseLabel4} @DESERT6_10457 {caseNum5} -1 {caseLabel5} @DESERT6_10457 {caseNum6} -1 {caseLabel6} @DESERT6_10457 {caseNum7} -1 {caseLabel7} @DESERT6_10457

:DESERT6_10388
Text.PrintNow('DES6_99', 5000, 1)
goto @DESERT6_10457

:DESERT6_10411
Text.PrintNow('DES6_98', 5000, 1)
goto @DESERT6_10457

:DESERT6_10434
Text.PrintNow('DES6_97', 5000, 1)
goto @DESERT6_10457

:DESERT6_10457
return 

:DESERT6_10459
Text.PrintWithNumberBig('M_PASS', 15000, 5000, TextStyle.Middle)
Player.AddScore($player1, 15000)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.RegisterMissionPassed('DESERT6')
Stat.PlayerMadeProgress(1)
$flag_desert_mission_counter += 1
return 

:DESERT6_10519
Car.MarkAsNoLongerNeeded(125@)
48@ = 0

:DESERT6_10531
Car.MarkAsNoLongerNeeded(126@(48@,2i))
Char.MarkAsNoLongerNeeded(123@(48@,2i))
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_10531
48@ = 0

:DESERT6_10577
Object.Delete(128@(48@,4i))
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_10577
Blip.Remove(133@)
Blip.Remove(132@)
48@ = 0

:DESERT6_10624
Blip.Remove(134@(48@,2i))
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_10624
Hud.ClearCounter($des3_heat)
Hud.ClearTimer($g_Desert6_failureKM)
Checkpoint.Delete(152@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Streaming.MarkModelAsNoLongerNeeded(476)
Streaming.MarkModelAsNoLongerNeeded(520)
Streaming.MarkModelAsNoLongerNeeded(43)
Streaming.MarkModelAsNoLongerNeeded(#AMMO_CAPSULE)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SetWantedMultiplier(1.0)
Game.SwitchAmbientPlanes(True)
Weather.Release
Zone.SetDisableMilitaryZones(False)
$timer_mobile_start = Clock.GetGameTimer()
if 
  $d5_bronze_generator_unlocked == 1
goto_if_false @DESERT6_10753
CarGenerator.Switch($d5_bronze_generator, 101)

:DESERT6_10753
if 
  $d5_silver_generator_unlocked == 1
goto_if_false @DESERT6_10778
CarGenerator.Switch($d5_silver_generator, 101)

:DESERT6_10778
if 
  $d5_gold_generator_unlocked == 1
goto_if_false @DESERT6_10803
CarGenerator.Switch($d5_gold_generator, 101)

:DESERT6_10803
$onmission = 0
Mission.Finish
return 

//-------------Mission 80---------------
// Originally: Stowaway

:DESERT9
script_name 'DESERT9'
gosub @DESERT9_49

:DESERT9_18
if 
  has_deatharrest_been_executed 
goto_if_false @DESERT9_38
gosub @DESERT9_21846

:DESERT9_38
gosub @DESERT9_21954

:DESERT9_45
Mission.Finish
terminate_this_script 

:DESERT9_49
Stat.RegisterMissionGiven
Text.LoadMissionText('DSERT9')
Game.SetWantedMultiplier(0.0)
Game.SetScriptLimitToGangSize(0)
Char.SetAreaVisible($scplayer, 0)
$onmission = 1
World.SwitchEntryExit('DESHOUS', False)
150@ = 100.0
if 
  150@ == 0.0
goto_if_false @DESERT9_372
91@ = Object.Create(#BARREL1, 0.0, 0.0, 0.0)
225@ = Object.Create(#BARREL1, 0.0, 0.0, 0.0)
56@ = Object.Create(#KB_BARREL, 0.0, 0.0, 0.0)
35@ = Car.Create(461, 426.6481, 2535.713, 15.5538)
Car.SetHeading(35@, 107.0)
152@ = Blip.AddForCoord(74@, 75@, 76@)
$para_max_Vz = Pickup.Create(371, PickupType.Once, 1797.602, -1308.881, 133.8128)
153@ = Blip.AddForCar(35@)
49@ = Object.Create(#CR_GUNCRATE, 365.0146, 2500.676, 15.492)
50@ = Object.Create(#CR_CRATESTACK, 365.9573, 2502.763, 15.4921)
51@ = Object.Create(#CR_CRATESTACK, 365.5524, 2503.46, 15.492)
52@ = Object.Create(#CR_CRATESTACK, 364.5623, 2503.406, 15.4921)

:DESERT9_372
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DESERT9_398
goto @DESERT9_21869

:DESERT9_398
if 
is_ps2_keyboard_key_pressed 7
goto_if_false @DESERT9_468

:DESERT9_413
if 
  not Streaming.HasModelLoaded(371)
goto_if_false @DESERT9_445
Streaming.RequestModel(371)
wait 0
goto @DESERT9_413

:DESERT9_445
Char.GiveWeapon($scplayer, WeaponType.Parachute, 1)
68@ = 0
71@ = 0

:DESERT9_468
switch_start 68@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @DESERT9_764 {caseNum1} 0 {caseLabel1} @DESERT9_596 {caseNum2} 2 {caseLabel2} @DESERT9_652 {caseNum3} 3 {caseLabel3} @DESERT9_666 {caseNum4} 4 {caseLabel4} @DESERT9_680 {caseNum5} 5 {caseLabel5} @DESERT9_694 {caseNum6} 6 {caseLabel6} @DESERT9_708 {caseNum7} 7 {caseLabel7} @DESERT9_722
switch_continued 8 {caseLabel1} @DESERT9_736 {caseNum2} 9 {caseLabel2} @DESERT9_750 {caseNum3} 20 {caseLabel3} @DESERT9_610 {caseNum4} 21 {caseLabel4} @DESERT9_624 {caseNum5} 22 {caseLabel5} @DESERT9_638 {caseNum6} -1 {caseLabel6} @DESERT9_764 {caseNum7} -1 {caseLabel7} @DESERT9_764 {caseNum8} -1 {caseLabel8} @DESERT9_764 {caseNum9} -1 {caseLabel9} @DESERT9_764

:DESERT9_596
gosub @DESERT9_864
goto @DESERT9_764

:DESERT9_610
gosub @DESERT9_889
goto @DESERT9_764

:DESERT9_624
gosub @DESERT9_4350
goto @DESERT9_764

:DESERT9_638
gosub @DESERT9_4519
goto @DESERT9_764

:DESERT9_652
gosub @DESERT9_6284
goto @DESERT9_764

:DESERT9_666
gosub @DESERT9_7444
goto @DESERT9_764

:DESERT9_680
gosub @DESERT9_11098
goto @DESERT9_764

:DESERT9_694
gosub @DESERT9_12941
goto @DESERT9_764

:DESERT9_708
gosub @DESERT9_13168
goto @DESERT9_764

:DESERT9_722
gosub @DESERT9_13222
goto @DESERT9_764

:DESERT9_736
gosub @DESERT9_13784
goto @DESERT9_764

:DESERT9_750
gosub @DESERT9_14291
goto @DESERT9_764

:DESERT9_764
gosub @DESERT9_21693
gosub @DESERT9_792
gosub @DESERT9_20462
goto @DESERT9_372

:DESERT9_792
switch_start 68@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @DESERT9_862 {caseNum1} 2 {caseLabel1} @DESERT9_855 {caseNum2} -1 {caseLabel2} @DESERT9_862 {caseNum3} -1 {caseLabel3} @DESERT9_862 {caseNum4} -1 {caseLabel4} @DESERT9_862 {caseNum5} -1 {caseLabel5} @DESERT9_862 {caseNum6} -1 {caseLabel6} @DESERT9_862 {caseNum7} -1 {caseLabel7} @DESERT9_862

:DESERT9_855
goto @DESERT9_862

:DESERT9_862
return 

:DESERT9_864
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Like, PedType.Mission2, PedType.Player1)
68@ = 20
return 

:DESERT9_889
Camera.SetFadingColor(0, 0, 0)
if 
  71@ == 0
goto_if_false @DESERT9_936
Char.SetAreaVisible($scplayer, 0)
Camera.DoFade(1000, Fade.Out)
71@ = 1

:DESERT9_936
if 
  71@ == 1
goto_if_false @DESERT9_1110
if 
  not Camera.GetFadingStatus
goto_if_false @DESERT9_1110
Char.ClearTasksImmediately($scplayer)
World.ClearAreaOfCars(-120.5297, 2593.665, 69.1939, 502.5016, 2365.418, -1.2447)
World.ClearAreaOfChars(-120.5297, 2593.665, 69.1939, 502.5016, 2365.418, -1.2447)
Char.SetCoordinatesNoOffset($scplayer, 222.7755, 2508.972, 15.5214)
Streaming.RequestModel(592)
Streaming.RequestModel(422)
Streaming.RequestModel(165)
Streaming.RequestModel(352)
Streaming.RequestModel(166)
Streaming.RequestCarRecording(450)
Streaming.RequestCarRecording(168)
Streaming.RequestCarRecording(452)
Streaming.RequestCarRecording(453)
Streaming.LoadAllModelsNow
71@ = 1

:DESERT9_1110
if 
  71@ == 1
goto_if_false @DESERT9_1607
if and
  Streaming.HasModelLoaded(592)
  Streaming.HasModelLoaded(422)
  Streaming.HasModelLoaded(165)
  Streaming.HasModelLoaded(352)
  Streaming.HasModelLoaded(166)
goto_if_false @DESERT9_1607
if and
  Streaming.HasCarRecordingBeenLoaded(450)
  Streaming.HasCarRecordingBeenLoaded(168)
  Streaming.HasCarRecordingBeenLoaded(452)
  Streaming.HasCarRecordingBeenLoaded(453)
goto_if_false @DESERT9_1607
34@ = Car.Create(592, 339.9034, 2499.805, 15.4884)
36@ = Car.Create(422, -22.1321, 2504.942, 15.2566)
37@ = Car.Create(422, -15.9009, 2507.28, 15.2543)
38@ = Car.Create(422, -17.3227, 2501.011, 15.252)
Car.ChangeColor(36@, 0, 0)
Car.ChangeColor(37@, 0, 0)
Car.ChangeColor(38@, 0, 0)
Car.SetHeading(36@, 270.0)
Car.SetHeading(37@, 270.0)
Car.SetHeading(38@, 270.0)
40@ = Char.CreateInsideCar(36@, PedType.Mission1, 166)
41@ = Char.CreateInsideCar(37@, PedType.Mission1, 165)
42@ = Char.CreateInsideCar(38@, PedType.Mission1, 165)
43@ = Char.CreateAsPassenger(36@, PedType.Mission1, 165, 0)
44@ = Char.CreateAsPassenger(37@, PedType.Mission1, 166, 0)
45@ = Char.Create(PedType.Mission1, 165, -28.1475, 2492.807, 15.2513)
46@ = Char.Create(PedType.Mission1, 166, -28.1475, 2493.807, 15.2513)
47@ = Char.Create(PedType.Mission1, 166, -28.1475, 2494.807, 15.2513)
Char.AttachToCar(45@, 36@, 0.5, -1.0, 0.4, 0, 10.0, WeaponType.MicroUzi)
Char.AttachToCar(46@, 37@, -0.5, -1.0, 0.4, 0, 10.0, WeaponType.MicroUzi)
Char.AttachToCar(47@, 37@, 0.5, -1.0, 0.4, 0, 10.0, WeaponType.MicroUzi)
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1500
71@ = 2

:DESERT9_1607
if 
  71@ == 2
goto_if_false @DESERT9_1914
if 
  is_int_lvar_greater_than_int_lvar 86@ > TIMERA
goto_if_false @DESERT9_1914
if and
  not Car.IsDead(36@)
  not Car.IsDead(37@)
  not Car.IsDead(38@)
  not Car.IsDead(34@)
goto_if_false @DESERT9_1914
if and
  Streaming.HasCarRecordingBeenLoaded(450)
  Streaming.HasCarRecordingBeenLoaded(168)
  Streaming.HasCarRecordingBeenLoaded(452)
  Streaming.HasCarRecordingBeenLoaded(453)
goto_if_false @DESERT9_1894
Car.StartPlayback(36@, 450)
Car.StartPlayback(37@, 453)
Car.StartPlayback(38@, 452)
Car.StartPlayback(34@, 168)
Car.SetEngineOn(34@, True)
Car.SetPlaybackSpeed(36@, 0.8)
Car.SetPlaybackSpeed(37@, 0.9)
Car.SetPlaybackSpeed(38@, 0.8)
Camera.SetFixedPosition(-123.0824, 2533.057, 21.679, 0.0, 0.0, 0.0)
Streaming.LoadSceneInDirection(-123.0824, 2533.057, 21.679, 100.0)
Streaming.RequestCollision(-123.0824, 2533.057)
Camera.DoFade(600, Fade.In)
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 5000
set_lvar_int_to_lvar_int 155@ = TIMERA
155@ += 1000
71@ = 3
goto @DESERT9_1914

:DESERT9_1894
Streaming.RequestCarRecording(450)
Streaming.RequestCarRecording(168)
Streaming.RequestCarRecording(452)
Streaming.RequestCarRecording(453)

:DESERT9_1914
if 
  71@ == 3
goto_if_false @DESERT9_2227
if and
  not Car.IsDead(36@)
  not Car.IsDead(37@)
  not Car.IsDead(38@)
  not Car.IsDead(34@)
goto_if_false @DESERT9_2227
148@ = 0.0
149@ = 0.0
150@ = 0.0
$x, $y, $z = Car.GetCoordinates(36@)
add_float_var_to_float_lvar 148@ += $x
add_float_var_to_float_lvar 149@ += $y
add_float_var_to_float_lvar 150@ += $z
$x, $y, $z = Car.GetCoordinates(37@)
add_float_var_to_float_lvar 148@ += $x
add_float_var_to_float_lvar 149@ += $y
add_float_var_to_float_lvar 150@ += $z
$x, $y, $z = Car.GetCoordinates(38@)
add_float_var_to_float_lvar 148@ += $x
add_float_var_to_float_lvar 149@ += $y
add_float_var_to_float_lvar 150@ += $z
148@ /= 3.0
149@ /= 3.0
150@ /= 3.0
Camera.PointAtPoint(148@, 149@, 150@, SwitchType.JumpCut)
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_2176
71@ = 4

:DESERT9_2176
if 
  155@ <> 0
goto_if_false @DESERT9_2227
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 155@
goto_if_false @DESERT9_2227
626@ = 1
155@ = 0

:DESERT9_2227
if 
  71@ == 4
goto_if_false @DESERT9_2700
if and
  not Car.IsDead(36@)
  not Car.IsDead(37@)
  not Car.IsDead(38@)
goto_if_false @DESERT9_2534
if and
  not Char.IsDead(40@)
  not Char.IsDead(41@)
  not Char.IsDead(42@)
goto_if_false @DESERT9_2534
Car.StopPlayback(36@)
Car.StopPlayback(37@)
Car.StopPlayback(38@)
Car.SetCoordinates(36@, 90.1321, 2504.942, 15.4766)
Car.SetCoordinates(37@, 83.9009, 2510.28, 15.4766)
Car.SetCoordinates(38@, 85.3227, 2497.011, 15.4766)
Task.CarDriveToCoord(40@, 36@, 400.2219, 2504.942, 15.4766, 12.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(41@, 37@, 400.2219, 2510.28, 15.4766, 12.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(42@, 38@, 400.2219, 2497.011, 15.4766, 12.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Car.SetHeading(36@, 270.0)
Car.SetHeading(37@, 270.0)
Car.SetHeading(38@, 270.0)
Car.SetForwardSpeed(36@, 12.0)
Car.SetForwardSpeed(37@, 12.0)
Car.SetForwardSpeed(38@, 12.0)

:DESERT9_2534
Car.SetPlaybackSpeed(34@, 0.7)
Char.SetHeading($scplayer, 270.0)
66@ = Sequence.Open()
Task.PlayAnim(-1, "FLEE_LKAROUND_01", "PED", 8.0, False, False, False, False, -1)
Sequence.Close(66@)
Char.PerformSequence($scplayer, 66@)
Sequence.Clear(66@)
626@ = 2
Camera.SetFixedPosition(224.1743, 2508.426, 16.7184, 0.0, 0.0, 0.0)
Camera.PointAtPoint(223.194, 2508.535, 16.8827, SwitchType.JumpCut)
71@ = 5
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1700

:DESERT9_2700
if 
  71@ == 5
goto_if_false @DESERT9_3194
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_3194
if and
  not Car.IsDead(36@)
  not Car.IsDead(37@)
  not Car.IsDead(38@)
goto_if_false @DESERT9_3011
if and
  not Char.IsDead(40@)
  not Char.IsDead(41@)
  not Char.IsDead(42@)
goto_if_false @DESERT9_3011
Car.SetCoordinates(36@, 90.1321, 2504.942, 15.4766)
Car.SetCoordinates(37@, 83.9009, 2510.28, 15.4766)
Car.SetCoordinates(38@, 85.3227, 2497.011, 15.4766)
Task.CarDriveToCoord(40@, 36@, 400.2219, 2504.942, 15.4766, 30.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(41@, 37@, 400.2219, 2510.28, 15.4766, 30.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(42@, 38@, 400.2219, 2497.011, 15.4766, 30.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Car.SetHeading(36@, 270.0)
Car.SetHeading(37@, 270.0)
Car.SetHeading(38@, 270.0)
Car.SetForwardSpeed(36@, 30.0)
Car.SetForwardSpeed(37@, 30.0)
Car.SetForwardSpeed(38@, 30.0)

:DESERT9_3011
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_3032
Car.StopPlayback(34@)

:DESERT9_3032
Camera.SetFixedPosition(125.3001, 2504.329, 15.5565, 0.0, 0.0, 0.0)
Camera.PointAtPoint(124.312, 2504.361, 15.7067, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2700
71@ = 6
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_3134
Car.SetEngineOn(34@, True)
Heli.SetBladesFullSpeed(34@)

:DESERT9_3134
Char.SetCoordinates($scplayer, 412.6561, 2530.908, 15.617)
Char.SetHeading($scplayer, 136.0)
74@ = 25.6646
75@ = 2504.646
76@ = 29.1834

:DESERT9_3194
if 
  71@ == 6
goto_if_false @DESERT9_3485
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_3326
set_lvar_int_to_lvar_int 115@ = TIMERA
sub_int_lvar_from_int_lvar 115@ -= 86@
115@ += 2700
cset_lvar_float_to_lvar_int 156@ =# 115@
156@ /= 20.0
set_var_float_to_lvar_float $x = 74@
add_float_lvar_to_float_var $x += 156@
156@ /= 14.0
set_var_float_to_lvar_float $z = 76@
sub_float_lvar_from_float_var $z -= 156@
Car.SetCoordinatesNoOffset(34@, $x, 75@, $z)

:DESERT9_3326
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_3485
Char.SetCoordinates($scplayer, 403.0466, 2522.19, 15.4843)
Task.GoStraightToCoord($scplayer, 415.1068, 2528.624, 15.5375, MoveState.Run, -2)
Streaming.LoadSceneInDirection(404.7372, 2524.857, 15.5671, 300.0)
Camera.SetFixedPosition(404.7372, 2524.857, 15.5671, 0.0, 0.0, 0.0)
Camera.PointAtPoint(405.6275, 2525.301, 15.6661, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2500
71@ = 8

:DESERT9_3485
if 
  71@ == 7
goto_if_false @DESERT9_3881
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_3881
71@ = 8
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_3881
Car.SetCoordinates(34@, 380.6384, 2503.927, 15.4884)
if and
  not Car.IsDead(36@)
  not Car.IsDead(37@)
  not Car.IsDead(38@)
goto_if_false @DESERT9_3779
if and
  not Char.IsDead(40@)
  not Char.IsDead(41@)
  not Char.IsDead(42@)
goto_if_false @DESERT9_3779
Car.SetCoordinates(36@, 331.2219, 2504.942, 15.4766)
Car.SetCoordinates(37@, 338.2219, 2507.942, 15.4766)
Car.SetCoordinates(38@, 325.2219, 2501.942, 15.4766)
Task.CarDriveToCoord(40@, 36@, 430.2219, 2504.942, 15.4766, 13.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(41@, 37@, 430.2219, 2507.28, 15.4766, 13.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.CarDriveToCoord(42@, 38@, 430.2219, 2501.011, 15.4766, 13.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:DESERT9_3779
Car.SetHeading(34@, 270.0)
Car.SetForwardSpeed(34@, 7.0)
Heli.SetBladesFullSpeed(34@)
Camera.SetFixedPosition(413.1315, 2533.297, 15.8551, 0.0, 0.0, 0.0)
Camera.PointAtPoint(412.508, 2532.519, 15.9255, SwitchType.JumpCut)
81@ = 0.0
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4000

:DESERT9_3881
if 
  71@ == 8
goto_if_false @DESERT9_3953
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_3953
Camera.DoFade(800, Fade.Out)
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_3953
Car.StopPlayback(34@)
71@ = 9

:DESERT9_3953
if 
  71@ == 9
goto_if_false @DESERT9_4238
if 
  not Camera.GetFadingStatus
goto_if_false @DESERT9_4238
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_4005
Car.StopPlayback(34@)

:DESERT9_4005
if and
  not Car.IsDead(36@)
  not Car.IsDead(37@)
  not Car.IsDead(38@)
goto_if_false @DESERT9_4046
Car.StopPlayback(36@)
Car.StopPlayback(37@)
Car.StopPlayback(38@)

:DESERT9_4046
Streaming.MarkModelAsNoLongerNeeded(592)
Streaming.MarkModelAsNoLongerNeeded(422)
Streaming.MarkModelAsNoLongerNeeded(165)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(166)
Streaming.RemoveCarRecording(450)
Streaming.RemoveCarRecording(168)
Streaming.RemoveCarRecording(452)
Streaming.RemoveCarRecording(453)
Car.Delete(36@)
Car.Delete(37@)
Car.Delete(38@)
Char.Delete(40@)
Char.Delete(41@)
Char.Delete(42@)
Char.Delete(43@)
Char.Delete(44@)
Char.Delete(45@)
Char.Delete(46@)
Char.Delete(47@)
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_4192
Car.SetCoordinates(34@, 394.6384, 2497.927, 15.4884)
Car.SetHeading(34@, 90.0)

:DESERT9_4192
71@ = 0
if 
  157@ > 0
goto_if_false @DESERT9_4231
68@ = 22
goto @DESERT9_4238

:DESERT9_4231
68@ = 21

:DESERT9_4238
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @DESERT9_4296
if 
  not Camera.GetFadingStatus
goto_if_false @DESERT9_4296
if 
  157@ == 0
goto_if_false @DESERT9_4296
Camera.DoFade(600, Fade.Out)
157@ = 1

:DESERT9_4296
if 
  157@ == 1
goto_if_false @DESERT9_4348
if 
  not Camera.GetFadingStatus
goto_if_false @DESERT9_4348
629@ = 5
157@ = 2
71@ = 9

:DESERT9_4348
return 

:DESERT9_4350
Cutscene.Load('DESERT9')

:DESERT9_4361
if 
  not Cutscene.HasLoaded
goto_if_false @DESERT9_4385
wait 0
goto @DESERT9_4361

:DESERT9_4385
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:DESERT9_4394
if 
  not Cutscene.HasFinished
goto_if_false @DESERT9_4418
wait 0
goto @DESERT9_4394

:DESERT9_4418
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @DESERT9_4456
if 
  157@ == 0
goto_if_false @DESERT9_4456
157@ = 2

:DESERT9_4456
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.DoFade(0, Fade.Out)

:DESERT9_4473
if 
  Camera.GetFadingStatus
goto_if_false @DESERT9_4497
wait 0
goto @DESERT9_4473

:DESERT9_4497
Cutscene.Clear
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
68@ = 22
return 

:DESERT9_4519
if 
  71@ == 0
goto_if_false @DESERT9_4626
Char.SetAreaVisible($scplayer, 0)
Streaming.RequestModel(592)
Streaming.RequestModel(422)
Streaming.RequestModel(165)
Streaming.RequestModel(352)
Streaming.RequestModel(166)
Streaming.RequestModel(461)
Streaming.RequestModel(363)
Streaming.RequestModel(364)
Streaming.RequestAnimation("AIRPORT")
Streaming.RequestAnimation("CARRY")
Streaming.RequestCarRecording(149)
Streaming.RequestCarRecording(135)
Streaming.RequestCarRecording(134)
71@ = 1

:DESERT9_4626
if 
  71@ == 1
goto_if_false @DESERT9_4743
if and
  Streaming.HasModelLoaded(422)
  Streaming.HasModelLoaded(165)
  Streaming.HasModelLoaded(352)
  Streaming.HasModelLoaded(166)
  Streaming.HasModelLoaded(461)
  Streaming.HasCarRecordingBeenLoaded(134)
goto_if_false @DESERT9_4743
if and
  Streaming.HasModelLoaded(363)
  Streaming.HasModelLoaded(364)
  Streaming.HasAnimationLoaded("AIRPORT")
  Streaming.HasAnimationLoaded("CARRY")
  Streaming.HasCarRecordingBeenLoaded(149)
  Streaming.HasCarRecordingBeenLoaded(135)
goto_if_false @DESERT9_4743
71@ = 2

:DESERT9_4743
if 
  71@ == 2
goto_if_false @DESERT9_5554
36@ = Car.Create(422, 366.764, 2512.655, 15.5677)
37@ = Car.Create(422, 367.134, 2490.174, 15.4884)
38@ = Car.Create(422, 357.6567, 2509.594, 15.5221)
Car.ChangeColor(36@, 0, 0)
Car.ChangeColor(37@, 0, 0)
Car.ChangeColor(38@, 0, 0)
40@ = Char.Create(PedType.Mission1, 166, 359.7588, 2511.474, 15.5501)
41@ = Char.Create(PedType.Mission1, 165, 369.7111, 2505.838, 15.4921)
42@ = Char.Create(PedType.Mission1, 165, 363.5374, 2497.674, 15.4921)
43@ = Char.CreateAsPassenger(36@, PedType.Mission1, 165, 0)
44@ = Char.CreateAsPassenger(37@, PedType.Mission1, 166, 0)
45@ = Char.Create(PedType.Mission1, 165, 363.6662, 2500.094, 15.4921)
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_5013
Car.SetHeading(34@, 90.0)

:DESERT9_5013
Car.ControlMovablePart(34@, 1.0)
Char.GiveWeapon(40@, WeaponType.MicroUzi, 9999)
Char.GiveWeapon(41@, WeaponType.MicroUzi, 9999)
Char.GiveWeapon(42@, WeaponType.MicroUzi, 9999)
Car.OpenDoor(36@, CarDoor.LeftFrontDoor)
Car.OpenDoor(36@, CarDoor.RightFrontDoor)
49@ = Object.Create(#CR_GUNCRATE, 365.0146, 2500.676, 15.492)
50@ = Object.Create(#CR_CRATESTACK, 365.9573, 2502.763, 15.4921)
51@ = Object.Create(#CR_CRATESTACK, 365.5524, 2503.46, 15.492)
52@ = Object.Create(#CR_CRATESTACK, 364.5623, 2503.406, 15.4921)
Object.SetHeading(50@, 245.0)
World.ClearArea(435.2751, 2527.523, 15.871, 10.0, False)
35@ = Car.Create(461, 435.2751, 2527.523, 15.871)
Car.SetHeading(35@, 90.0)
Car.SetCanBurstTires(35@, False)
Char.SetHeading(40@, 340.9066)
Char.SetHeading(41@, 309.4871)
Char.SetHeading(42@, 175.4073)
Task.PlayAnim(40@, "IDLE_ARMED", "PED", 4.0, True, False, False, False, 0)
Task.PlayAnim(41@, "IDLE_ARMED", "PED", 4.0, True, False, False, False, 0)
Task.PlayAnim(42@, "IDLE_ARMED", "PED", 4.0, True, False, False, False, 0)
Char.SetCoordinates($scplayer, 412.6561, 2530.908, 15.617)
Char.SetHeading($scplayer, 136.0)
Streaming.MarkModelAsNoLongerNeeded(461)
Streaming.MarkModelAsNoLongerNeeded(422)
Streaming.MarkModelAsNoLongerNeeded(165)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(346)
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_5463
Car.StartPlayback(34@, 149)
Car.SetPlaybackSpeed(34@, 0.0)

:DESERT9_5463
Camera.SetFixedPosition(350.8692, 2488.932, 17.5906, 0.0, 0.0, 0.0)
Camera.PointAtPoint(351.4443, 2489.747, 17.52, SwitchType.JumpCut)
Streaming.LoadScene(367.134, 2490.174, 15.4884)
71@ = 3
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1000

:DESERT9_5554
if 
  71@ == 3
goto_if_false @DESERT9_5745
if 
  is_int_lvar_greater_than_int_lvar 86@ > TIMERA
goto_if_false @DESERT9_5745
if and
  not Char.IsDead(45@)
  Object.DoesExist(52@)
goto_if_false @DESERT9_5665
66@ = Sequence.Open()
Task.ComplexPickupObject(-1, 52@)
Task.GoStraightToCoord(-1, 360.2195, 2500.023, 15.4921, MoveState.Walk, -2)
Sequence.Close(66@)
Char.PerformSequence(45@, 66@)
Sequence.Clear(66@)

:DESERT9_5665
Camera.DoFade(1000, Fade.In)
if 
  157@ == 0
goto_if_false @DESERT9_5713
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4000
goto @DESERT9_5720

:DESERT9_5713
86@ = 0

:DESERT9_5720
71@ = 4
Text.ClearPrints
Text.Print('DES9_3', 4000, 1)

:DESERT9_5745
if 
  71@ == 4
goto_if_false @DESERT9_5954
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_5954
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(438.18, 2526.193, 17.1554, 0.0, 0.0, 0.0)
Camera.PointAtPoint(437.2076, 2526.339, 16.9735, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 426.895, 2529.479, 15.6483)
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_5883
Task.EnterCarAsDriver($scplayer, 35@, -2)

:DESERT9_5883
Text.Print('DES9_4', 3000, 1)
if 
  157@ == 0
goto_if_false @DESERT9_5940
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 3000
goto @DESERT9_5947

:DESERT9_5940
86@ = 0

:DESERT9_5947
71@ = 5

:DESERT9_5954
if 
  71@ == 5
goto_if_false @DESERT9_6209
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_6209
Text.ClearPrints
Text.Print('DES9_44', 4000, 1)
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_6054
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @DESERT9_6054
Char.ClearTasksImmediately($scplayer)
Char.WarpIntoCar($scplayer, 35@)

:DESERT9_6054
56@ = Object.Create(#KB_BARREL, 0.0, 0.0, 0.0)
Object.SetCollision(56@, False)
Object.SetVisible(56@, False)
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_6145
Object.AttachToCar(56@, 34@, 0.0, -15.223, -1.489, 0.0, 0.0, 0.0)

:DESERT9_6145
158@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Satchel)
if 
  158@ == 0
goto_if_false @DESERT9_6182
Char.GiveWeapon($scplayer, WeaponType.Satchel, 1)

:DESERT9_6182
Camera.SetBehindPlayer
Camera.RestoreJumpcut
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 3000
71@ = 6

:DESERT9_6209
if 
  71@ == 6
goto_if_false @DESERT9_6282
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_6282
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Text.ClearPrints
Text.Print('DES9_A4', 4000, 1)
68@ = 2

:DESERT9_6282
return 

:DESERT9_6284
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if 
  73@ > 0
goto_if_false @DESERT9_6407
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_6407
74@, 75@, 76@ = Car.GetCoordinates(34@)
Blip.Remove(152@)
152@ = Blip.AddForCoord(74@, 75@, 76@)
Blip.ChangeDisplay(152@, BlipDisplay.BlipOnly)
if 
  -83.0 > 74@
goto_if_false @DESERT9_6407
68@ = 8
71@ = 0

:DESERT9_6407
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_6687
148@, 149@, 150@ = Car.GetCoordinates(35@)
154@ = 2499.7
sub_float_lvar_from_float_lvar 154@ -= 149@
154@ = Math.Abs()
154@ /= 10.0
if 
  154@ > 2.0
goto_if_false @DESERT9_6501
154@ = 2.0

:DESERT9_6501
if 
  0.2 > 154@
goto_if_false @DESERT9_6532
154@ = 0.2

:DESERT9_6532
Car.SetAirResistanceMultiplier(35@, 154@)
154@ -= 2.0
154@ = Math.Abs()
154@ *= 50.0
set_lvar_float_to_lvar_float 159@ = 74@
sub_float_lvar_from_float_lvar 159@ -= 148@
159@ = Math.Abs()
set_lvar_float_to_lvar_float 160@ = 159@
160@ /= 100.0
if 
  160@ > 1.0
goto_if_false @DESERT9_6635
160@ = 1.0

:DESERT9_6635
159@ = 1.0
sub_float_lvar_from_float_lvar 159@ -= 160@
mult_float_lvar_by_float_lvar 159@ *= 154@
cset_lvar_int_to_lvar_float 88@ =# 159@
Camera.Shake(88@)
88@ -= 256
abs_lvar_int 88@

:DESERT9_6687
if 
  73@ == 0
goto_if_false @DESERT9_6792
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_6792
if 
  not Char.LocateAnyMeans3D($scplayer, 412.6561, 2530.908, 15.617, 5.0, 5.0, 5.0, False)
goto_if_false @DESERT9_6792
set_lvar_int_to_lvar_int 72@ = TIMERA
72@ += 8000
73@ = 2

:DESERT9_6792
if 
  73@ == 2
goto_if_false @DESERT9_7010
if or
  Char.IsInAnyCar($scplayer)
  is_int_lvar_greater_than_int_lvar TIMERA > 72@
  Char.LocateAnyMeans3D($scplayer, 354.8564, 2500.152, 18.3701, 50.0, 50.0, 50.0, False)
goto_if_false @DESERT9_7010
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_7010
set_lvar_int_to_lvar_int 72@ = TIMERA
72@ += 1350
73@ = 3
if 
  not Char.IsDead(40@)
goto_if_false @DESERT9_6934
Task.KillCharOnFoot(40@, $scplayer)

:DESERT9_6934
if 
  not Char.IsDead(41@)
goto_if_false @DESERT9_6965
Task.ToggleDuck(41@, True)
Task.KillCharOnFoot(41@, $scplayer)

:DESERT9_6965
if 
  not Char.IsDead(42@)
goto_if_false @DESERT9_6989
Task.KillCharOnFoot(42@, $scplayer)

:DESERT9_6989
if 
  not Char.IsDead(45@)
goto_if_false @DESERT9_7010
Char.ClearTasksImmediately(45@)

:DESERT9_7010
if 
  73@ == 3
goto_if_false @DESERT9_7064
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 72@
goto_if_false @DESERT9_7064
Car.SetPlaybackSpeed(34@, 1.0)
73@ = 4

:DESERT9_7064
if 
  73@ == 4
goto_if_false @DESERT9_7442
$x, $y, $z = Object.GetCoordinates(56@)
148@, 149@, 150@ = Char.GetCoordinates($scplayer)
146@ = Math.GetDistanceBetweenCoords2D($x, $y, 148@, 149@)
162@ = 200.0
div_float_lvar_by_float_lvar 162@ /= 146@
if 
  162@ > 1.0
goto_if_false @DESERT9_7176
162@ = 1.0

:DESERT9_7176
if 
  0.3 > 162@
goto_if_false @DESERT9_7207
162@ = 0.3

:DESERT9_7207
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_7231
Car.SetPlaybackSpeed(34@, 162@)

:DESERT9_7231
if 
  not Char.LocateAnyMeans3D($scplayer, $x, $y, $z, 15.0, 15.0, 5.0, False)
goto_if_false @DESERT9_7312
if 
  2 > 163@
goto_if_false @DESERT9_7305
gosub @DESERT9_16137
163@ = 1

:DESERT9_7305
goto @DESERT9_7337

:DESERT9_7312
if 
  163@ == 1
goto_if_false @DESERT9_7337
163@ = 2

:DESERT9_7337
if 
  Char.LocateAnyMeansObject3D($scplayer, 56@, 4.0, 1.0, 1.0, False)
goto_if_false @DESERT9_7442
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_7442
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @DESERT9_7442
Char.SetCanBeKnockedOffBike($scplayer, True)
Blip.Remove(152@)
Player.SetControl($player1, False)
71@ = 20
68@ = 3
Audio.SetRadioChannel(RadioChannel.UserTracks)

:DESERT9_7442
return 

:DESERT9_7444
439@ = 1
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @DESERT9_7542
if 
  11 > 71@
goto_if_false @DESERT9_7496
86@ = 0
71@ = 11

:DESERT9_7496
if and
  71@ > 19
  23 > 71@
goto_if_false @DESERT9_7542
86@ = 0
71@ = 24
65@ = 1

:DESERT9_7542
if 
  71@ == 20
goto_if_false @DESERT9_7691
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_7691
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
if 
  Car.IsPlaybackGoingOn(34@)
goto_if_false @DESERT9_7608
Car.StopPlayback(34@)

:DESERT9_7608
Car.StartPlayback(34@, 135)
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_7646
Car.FreezePosition(35@, True)
Car.SetVisible(35@, False)

:DESERT9_7646
Char.SetVisible($scplayer, False)
Car.Delete(36@)
Car.Delete(37@)
Car.Delete(38@)
Streaming.MarkModelAsNoLongerNeeded(422)
Streaming.RequestAnimation("AIRPORT")
71@ = 21

:DESERT9_7691
if 
  71@ == 21
goto_if_false @DESERT9_7816
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(66.4737, 2494.118, 17.9816, -43.8545, 2492.902, 19.8651, 5500, True)
Camera.SetVectorTrack(67.4593, 2494.287, 17.9942, -44.3218, 2493.184, 20.7031, 5500, True)
71@ = 22
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4500

:DESERT9_7816
if 
  71@ == 22
goto_if_false @DESERT9_7867
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_7867
Camera.DoFade(1000, Fade.Out)
71@ = 23

:DESERT9_7867
if 
  71@ == 23
goto_if_false @DESERT9_7905
if 
  not Camera.GetFadingStatus
goto_if_false @DESERT9_7905
71@ = 0

:DESERT9_7905
if 
  71@ == 24
goto_if_false @DESERT9_7937
Camera.DoFade(1000, Fade.Out)
71@ = 25

:DESERT9_7937
if 
  71@ == 25
goto_if_false @DESERT9_7982
if 
  not Camera.GetFadingStatus
goto_if_false @DESERT9_7982
71@ = 0
65@ = 1

:DESERT9_7982
if 
  71@ == 0
goto_if_false @DESERT9_8581
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_8030
Car.FreezePosition(35@, False)
Car.SetVisible(35@, True)

:DESERT9_8030
Streaming.SetAreaVisible(9)
if 
  not Char.IsDead($scplayer)
goto_if_false @DESERT9_8057
Char.SetAreaVisible($scplayer, 9)

:DESERT9_8057
Char.Delete(44@)
44@ = Char.Create(PedType.Mission3, 165, 316.0887, 983.9927, 1958.138)
Char.SetHeading(44@, 90.0)
if 
  not Char.IsDead(44@)
goto_if_false @DESERT9_8120
Char.SetAreaVisible(44@, 9)

:DESERT9_8120
if 
  not Char.IsDead(44@)
goto_if_false @DESERT9_8166
Char.SetCoordinates(44@, 317.081, 979.907, 1960.108)
Char.SetHeading(44@, 90.0)

:DESERT9_8166
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_8189
Car.SetAreaVisible(35@, 9)

:DESERT9_8189
Hud.DisplayRadar(False)
85@ = Object.Create(#D9_RUNWAY, 305.191, 1030.752, 1938.134)
Streaming.RequestCarRecording(150)
Streaming.RequestCarRecording(152)

:DESERT9_8226
if or
  not Streaming.HasCarRecordingBeenLoaded(150)
  not Streaming.HasCarRecordingBeenLoaded(152)
goto_if_false @DESERT9_8258
wait 0
goto @DESERT9_8226

:DESERT9_8258
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_8374
Car.SetCoordinates(35@, 331.8417, 1038.314, 1956.177)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @DESERT9_8318
Char.WarpIntoCar($scplayer, 35@)

:DESERT9_8318
Text.ClearPrints
Char.SetAreaVisible($scplayer, 9)
Char.SetVisible($scplayer, True)
Car.StartPlayback(35@, 150)
Car.SkipToEndAndStopPlayback(35@)
if 
  not Char.IsInCar($scplayer, 35@)
goto_if_false @DESERT9_8374
Char.WarpIntoCar($scplayer, 35@)

:DESERT9_8374
Streaming.LoadScene(331.8417, 1038.314, 1956.177)
Streaming.RequestCollision(331.8417, 1038.314)
wait 800
Camera.ResetNewScriptables
Camera.SetFixedPosition(320.1115, 1035.373, 1948.154, 0.0, 0.0, 0.0)
Camera.PointAtChar($scplayer, CameraMode.Fixed, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 168@ = TIMERA
wait 500
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2200
Streaming.RequestModel(371)

:DESERT9_8485
if 
  not Streaming.HasModelLoaded(371)
goto_if_false @DESERT9_8512
wait 0
goto @DESERT9_8485

:DESERT9_8512
Camera.DoFade(600, Fade.In)
Text.Print('DES9_A5', 4000, 1)
if 
  65@ == 1
goto_if_false @DESERT9_8574
71@ = 11
86@ = 0
goto @DESERT9_8581

:DESERT9_8574
71@ = 1

:DESERT9_8581
if and
  71@ > 0
  20 > 71@
goto_if_false @DESERT9_8613
gosub @DESERT9_17051

:DESERT9_8613
if 
  435@ == 0
goto_if_false @DESERT9_8657
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 168@
goto_if_false @DESERT9_8657
435@ = 1

:DESERT9_8657
if 
  Object.DoesExist(85@)
goto_if_false @DESERT9_8697
164@, 165@, 166@ = Object.GetCoordinates(85@)
165@ += 0.05

:DESERT9_8697
if 
  71@ == 1
goto_if_false @DESERT9_8762
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_8762
Task.LeaveAnyCar($scplayer)
71@ = 2
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 300

:DESERT9_8762
if 
  71@ == 2
goto_if_false @DESERT9_8894
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_8894
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_8820
Car.Delete(34@)

:DESERT9_8820
Camera.SetFixedPosition(317.7203, 1027.301, 1949.071, 0.0, 0.0, 0.0)
Camera.PointAtPoint(316.9413, 1026.675, 1949.027, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1000
71@ = 3

:DESERT9_8894
if 
  71@ == 3
goto_if_false @DESERT9_9043
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_9043
Object.Delete(85@)
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(317.7203, 1027.301, 1949.071, 317.7203, 1027.301, 1949.071, 1000, True)
Camera.SetVectorTrack(316.9413, 1026.675, 1949.027, 317.3408, 1026.377, 1949.13, 1000, True)
71@ = 4
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1500

:DESERT9_9043
if 
  71@ == 4
goto_if_false @DESERT9_9402
set_lvar_int_to_lvar_int 169@ = 86@
sub_int_lvar_from_int_lvar 169@ -= TIMERA
cset_lvar_float_to_lvar_int 170@ =# 169@
170@ /= 2000.0
170@ -= 1.0
170@ = Math.Abs()
292@, 312@, 332@ = Object.GetCoordinates(96@)
if 
  312@ > 1020.214
goto_if_false @DESERT9_9294
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_9169
Car.StartPlayback(35@, 152)

:DESERT9_9169
Task.DiveAndGetUp($scplayer, 1.0, 0.0, 1000)
71@ = 6
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2000
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(317.7203, 1027.301, 1949.071, 317.7203, 1027.301, 1949.071, 2000, True)
Camera.SetVectorTrack(317.3408, 1026.377, 1949.13, 317.1811, 1027.991, 1948.589, 2000, True)

:DESERT9_9294
set_lvar_float_to_lvar_float 148@ = 292@
148@ -= 317.5107
set_lvar_float_to_lvar_float 149@ = 312@
149@ -= 1024.815
set_lvar_float_to_lvar_float 150@ = 332@
150@ -= 1949.35
mult_float_lvar_by_float_lvar 148@ *= 170@
mult_float_lvar_by_float_lvar 149@ *= 170@
mult_float_lvar_by_float_lvar 150@ *= 170@
148@ += 317.5107
149@ += 1024.815
150@ += 1949.35

:DESERT9_9402
if 
  71@ == 5
goto_if_false @DESERT9_9434
292@, 312@, 332@ = Object.GetCoordinates(96@)

:DESERT9_9434
if 
  71@ == 6
goto_if_false @DESERT9_9494
292@, 312@, 332@ = Object.GetCoordinates(96@)
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_9494
71@ = 11
Text.ClearPrints

:DESERT9_9494
if 
  71@ == 7
goto_if_false @DESERT9_9667
Camera.ResetNewScriptables
Camera.SetFixedPosition(316.0625, 988.6853, 1957.741, 0.0, 0.0, 0.0)
Camera.PointAtPoint(316.0338, 987.7417, 1958.07, SwitchType.JumpCut)
71@ = 8
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2000
if 
  not Char.IsDead(44@)
goto_if_false @DESERT9_9667
Char.SetCoordinates(44@, 315.7535, 983.4348, 1958.265)
Char.SetHeading(44@, 0.0)
Task.PlayAnim(44@, "FUCKU", "PED", 4.0, False, False, False, False, 3000)

:DESERT9_9667
if 
  71@ == 8
goto_if_false @DESERT9_9891
if 
  Streaming.HasModelLoaded(371)
goto_if_false @DESERT9_9886
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_9879
Text.ClearPrints
Text.Print('DES9_45', 4000, 1)
Camera.SetFixedPosition(317.5727, 1024.791, 1949.854, 0.0, 0.0, 0.0)
Camera.PointAtPoint(317.4102, 1023.809, 1949.95, SwitchType.JumpCut)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 317.9964, 1023.477, 1949.033)
Char.SetHeading($scplayer, 121.0)
if 
  not Char.IsDead(44@)
goto_if_false @DESERT9_9856
Char.GiveWeapon(44@, WeaponType.Parachute, 1)
Char.SetDeathWeaponsPersist(44@, True)

:DESERT9_9856
71@ = 9
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4000

:DESERT9_9879
goto @DESERT9_9891

:DESERT9_9886
Streaming.RequestModel(371)

:DESERT9_9891
if 
  71@ == 9
goto_if_false @DESERT9_10153
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_10153
Camera.SetFixedPosition(318.8293, 975.9706, 1960.759, 0.0, 0.0, 0.0)
Camera.PointAtPoint(318.3584, 976.8294, 1960.557, SwitchType.JumpCut)
if 
  not Char.IsDead(44@)
goto_if_false @DESERT9_10114
Char.SetCoordinates(44@, 317.4929, 981.1245, 1958.806)
Char.SetHeading(44@, 90.0)

:DESERT9_10025
if 
  not Streaming.HasAnimationLoaded("AIRPORT")
goto_if_false @DESERT9_10069
Streaming.RequestAnimation("AIRPORT")
wait 0
goto @DESERT9_10025

:DESERT9_10069
Task.PlayAnim(44@, "THRW_BARL_THRW", "AIRPORT", 4.0, False, False, False, False, -1)

:DESERT9_10114
Text.Print('DES9_46', 4000, 1)
71@ = 10
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1100

:DESERT9_10153
if 
  71@ == 10
goto_if_false @DESERT9_10220
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_10220
435@ = 2
71@ = 11
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2900

:DESERT9_10220
if 
  71@ == 11
goto_if_false @DESERT9_11096
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_11096
Streaming.RequestModel(371)

:DESERT9_10262
if 
  not Streaming.HasModelLoaded(371)
goto_if_false @DESERT9_10289
wait 0
goto @DESERT9_10262

:DESERT9_10289
Camera.ResetNewScriptables
Char.ClearTasksImmediately($scplayer)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DESERT9_10339
Char.WarpFromCarToCoord($scplayer, 318.1163, 1024.791, 1948.729)
goto @DESERT9_10359

:DESERT9_10339
Char.SetCoordinates($scplayer, 318.1163, 1024.791, 1948.729)

:DESERT9_10359
Char.SetHeading($scplayer, 121.0)
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_10416
if 
  Car.IsPlaybackGoingOn(35@)
goto_if_false @DESERT9_10406
Car.StopPlayback(35@)

:DESERT9_10406
Car.Delete(35@)
Streaming.MarkModelAsNoLongerNeeded(461)

:DESERT9_10416
Char.SetHeading($scplayer, 225.0)
if 
  not Char.IsDead(44@)
goto_if_false @DESERT9_10462
Char.SetCoordinates(44@, 317.4565, 980.5405, 1958.935)

:DESERT9_10462
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_10499
if 
  Car.IsPlaybackGoingOn(35@)
goto_if_false @DESERT9_10499
Car.StopPlayback(35@)

:DESERT9_10499
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Object.Delete(85@)
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_10540
Car.Delete(34@)

:DESERT9_10540
if 
  Player.IsPlaying($player1)
goto_if_false @DESERT9_10563
Player.DisableSprint($player1, True)

:DESERT9_10563
174@ = Particle.Create("CLOUDFAST", 315.2994, 1028.151, 1936.464, 1)
Particle.Play(174@)
Char.Delete(40@)
Char.Delete(41@)
Char.Delete(42@)
Char.Delete(43@)
40@ = Char.Create(PedType.Mission3, 165, 313.4011, 1012.37, 1951.588)
41@ = Char.Create(PedType.Mission3, 166, 312.5008, 1004.962, 1953.297)
42@ = Char.Create(PedType.Mission3, 165, 318.7976, 988.7245, 1957.044)
43@ = Char.Create(PedType.Mission3, 166, 313.1324, 991.6313, 1956.374)
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_10751
Car.FreezePosition(35@, False)
Car.SetVisible(35@, True)

:DESERT9_10751
Char.SetVisible($scplayer, True)
Char.SetShootRate(40@, 100)
Char.SetShootRate(41@, 100)
Char.SetShootRate(42@, 100)
Char.SetShootRate(43@, 100)
Char.SetWeaponSkill(40@, 2)
Char.SetWeaponSkill(41@, 2)
Char.SetWeaponSkill(42@, 2)
Char.SetWeaponSkill(43@, 2)
Char.SetWeaponSkill(44@, 2)
Char.SetHeading(40@, 288.4161)
Char.SetHeading(41@, 298.9878)
Char.SetHeading(42@, 85.3329)
Char.SetHeading(43@, 308.2083)
if 
  not Char.IsDead(40@)
goto_if_false @DESERT9_10884
Char.SetAreaVisible(40@, 9)

:DESERT9_10884
if 
  not Char.IsDead(41@)
goto_if_false @DESERT9_10907
Char.SetAreaVisible(41@, 9)

:DESERT9_10907
if 
  not Char.IsDead(42@)
goto_if_false @DESERT9_10930
Char.SetAreaVisible(42@, 9)

:DESERT9_10930
if 
  not Char.IsDead(43@)
goto_if_false @DESERT9_10953
Char.SetAreaVisible(43@, 9)

:DESERT9_10953
if 
  not Char.IsDead(44@)
goto_if_false @DESERT9_11030
Char.SetCoordinates(44@, 317.881, 979.907, 1960.108)
if 
  not Char.HasGotWeapon(44@, WeaponType.Parachute)
goto_if_false @DESERT9_11030
Char.GiveWeapon(44@, WeaponType.Parachute, 1)
Char.SetDeathWeaponsPersist(44@, True)
Char.SetShootRate(44@, 100)

:DESERT9_11030
68@ = 4
178@ = 0
439@ = 0
if 
  not Char.IsDead($scplayer)
goto_if_false @DESERT9_11082
Char.SetProofs($scplayer, False, True, True, False, False)

:DESERT9_11082
171@ = 1
$para_control_off = 1

:DESERT9_11096
return 

:DESERT9_11098
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @DESERT9_11151
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_11151
start_recording_car 35@ {_p2} 152

:DESERT9_11151
if 
is_ps2_keyboard_key_pressed 31
goto_if_false @DESERT9_11203
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_11203
if 
is_recording_going_on_for_car 35@
goto_if_false @DESERT9_11203
stop_recording_car 35@

:DESERT9_11203
if 
  178@ == 0
goto_if_false @DESERT9_11495
if or
  Player.IsLastBuildingModelShot($player1, #CARGO_TEST)
  Player.IsLastBuildingModelShot($player1, #CARGO_STUFF)
  Player.IsLastBuildingModelShot($player1, #CARGO_STORE)
goto_if_false @DESERT9_11280
Player.ClearLastBuildingModelShot($player1)
Fx.AddExplosion(316.0, 1000.0, 1954.6, ExplosionType.Aircraft)

:DESERT9_11280
if 
  World.IsExplosionInArea(-1, 325.0714, 967.935, 1971.838, 310.7184, 1047.574, 1939.683)
goto_if_false @DESERT9_11495
178@ = 1
if 
  not Char.IsDead($scplayer)
goto_if_false @DESERT9_11363
Char.SetProofs($scplayer, True, True, True, True, True)

:DESERT9_11363
159@ = 972.5745
88@ = 0

:DESERT9_11380
if 
  1050.574 >= 159@
goto_if_false @DESERT9_11495
set_lvar_float_to_lvar_float 160@ = 159@
160@ -= 5.0
if 
  World.IsExplosionInArea(-1, 325.0714, 159@, 1971.838, 310.7184, 160@, 1939.683)
goto_if_false @DESERT9_11471
462@(88@,15i) = 1

:DESERT9_11471
88@ += 1
159@ += 5.0
goto @DESERT9_11380

:DESERT9_11495
if 
  178@ == 1
goto_if_false @DESERT9_11520
gosub @DESERT9_19937

:DESERT9_11520
if 
  173@ == 0
goto_if_false @DESERT9_11577
if 
  Char.IsDead(44@)
goto_if_false @DESERT9_11577
Text.Print('DES9_27', 4000, 1)
173@ = 1

:DESERT9_11577
if 
  173@ == 1
goto_if_false @DESERT9_11702
if 
  Char.HasGotWeapon($scplayer, WeaponType.Parachute)
goto_if_false @DESERT9_11702
Char.SetCurrentWeapon($scplayer, WeaponType.Parachute)
Text.ClearPrints
if 
  178@ == 0
goto_if_false @DESERT9_11679
Text.Print('DES9_A1', 4000, 1)
Text.Print('DES9_A2', 4000, 1)
goto @DESERT9_11695

:DESERT9_11679
Text.Print('DES9_26', 4000, 1)

:DESERT9_11695
173@ = 2

:DESERT9_11702
if 
  180@ == 0
goto_if_false @DESERT9_11781
if 
  1942.27 > $player_z
goto_if_false @DESERT9_11781
if 
  not Char.IsDead($scplayer)
goto_if_false @DESERT9_11772
Char.SetProofs($scplayer, True, True, True, True, True)

:DESERT9_11772
180@ = 1
Player.UseDetonator

:DESERT9_11781
if 
  173@ == 2
goto_if_false @DESERT9_11946
if 
  1940.27 > $player_z
goto_if_false @DESERT9_11946
if 
  178@ == 1
goto_if_false @DESERT9_11894
if 
  not Char.IsDead($scplayer)
goto_if_false @DESERT9_11887
Char.SetCurrentWeapon($scplayer, WeaponType.Parachute)
Particle.Kill(174@)
68@ = 9
71@ = 0
$player_fall_safe = 1

:DESERT9_11887
goto @DESERT9_11946

:DESERT9_11894
Text.ClearPrints
Text.Print('DES9_39', 4000, 1)
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
gosub @DESERT9_21954
Streaming.SetAreaVisible(0)
goto @DESERT9_45

:DESERT9_11946
if 
  not Char.IsDead(44@)
goto_if_false @DESERT9_12166
148@, 149@, 150@ = Char.GetCoordinates(44@)
if and
  1940.0 > 150@
  not Char.IsInAir($scplayer)
goto_if_false @DESERT9_12166
Text.ClearPrints
Text.Print('DES9_29', 5000, 1)
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Pickup.Remove($para_max_Vz)
wait 1000
Camera.DoFade(1000, Fade.Out)

:DESERT9_12053
if 
  Camera.GetFadingStatus
goto_if_false @DESERT9_12077
wait 0
goto @DESERT9_12053

:DESERT9_12077
Streaming.SetAreaVisible(0)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 408.6996, 2538.272, 15.6057)
Char.SetHeading($scplayer, 139.0)
gosub @DESERT9_21954
wait 1500
Camera.DoFade(1000, Fade.In)

:DESERT9_12135
if 
  Camera.GetFadingStatus
goto_if_false @DESERT9_12159
wait 0
goto @DESERT9_12135

:DESERT9_12159
goto @DESERT9_45

:DESERT9_12166
if and
  1938.0 > $player_z
  not Char.IsDead($scplayer)
goto_if_false @DESERT9_12896
Text.ClearPrints
if 
  2 > 173@
goto_if_false @DESERT9_12896
Camera.DoFade(1000, Fade.Out)

:DESERT9_12219
if 
  Camera.GetFadingStatus
goto_if_false @DESERT9_12243
wait 0
goto @DESERT9_12219

:DESERT9_12243
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($scplayer, 0)
Streaming.LoadScene(125.1739, 1074.067, 12.0)
Streaming.RequestModel(445)
Streaming.RequestModel(91)
Streaming.RequestAnimation("PARACHUTE")

:DESERT9_12293
if or
  not Streaming.HasModelLoaded(445)
  not Streaming.HasModelLoaded(91)
  not Streaming.HasAnimationLoaded("PARACHUTE")
goto_if_false @DESERT9_12337
wait 0
goto @DESERT9_12293

:DESERT9_12337
Camera.SetFixedPosition(125.1739, 1074.067, 12.8138, 0.0, 0.0, 0.0)
Camera.PointAtPoint(124.591, 1073.27, 12.9688, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 122.3556, 1069.892, 99.6832)
181@ = Car.Create(445, 119.3556, 1069.892, 13.665)
182@ = Char.CreateAsPassenger(181@, PedType.CivMale, 91, 0)
Streaming.MarkModelAsNoLongerNeeded(91)
Streaming.MarkModelAsNoLongerNeeded(445)
Streaming.MarkModelAsNoLongerNeeded(363)
Streaming.MarkModelAsNoLongerNeeded(364)
Car.SetHeading(181@, 180.0)
Char.SetCoordinates($scplayer, 119.3, 1070.47, 189.3266)
Char.SetVelocity($scplayer, 0.0, 0.0, 0.0)
Camera.DoFade(1000, Fade.In)

:DESERT9_12537
if 
  Camera.GetFadingStatus
goto_if_false @DESERT9_12561
wait 0
goto @DESERT9_12537

:DESERT9_12561
Char.SetCoordinates($scplayer, 119.3, 1070.47, 80.3266)
Char.SetVelocity($scplayer, 0.0, 0.0, 0.0)

:DESERT9_12601
if 
  not Char.IsDead($scplayer)
goto_if_false @DESERT9_12883
184@ = Char.GetHeightAboveGround($scplayer)
if and
  4.8 > 184@
  183@ == 0
goto_if_false @DESERT9_12872
183@ = 1
Task.DieNamedAnim($scplayer, "FALL_SKYDIVE_DIE", "PARACHUTE", 1000.0, 0)
if 
  not Car.IsDead(181@)
goto_if_false @DESERT9_12872
Car.PopDoor(181@, CarDoor.LeftFrontDoor, True)
Car.PopDoor(181@, CarDoor.LeftRearDoor, True)
Car.PopDoor(181@, CarDoor.RightFrontDoor, True)
Car.BurstTire(181@, 0)
Car.BurstTire(181@, 2)
Car.BurstTire(181@, 1)
Car.DamagePanel(181@, 4)
Car.DamagePanel(181@, 0)
Car.DamagePanel(181@, 6)
Car.DamagePanel(181@, 6)
Car.ApplyForce(181@, 0.0, 0.0, -0.15, 0.0, 0.0, 0.0)
if 
  not Char.IsDead(182@)
goto_if_false @DESERT9_12872
Char.ClearTasks(182@)
Task.LeaveCarAndFlee(182@, 181@, 119.3556, 1069.892, 13.665)

:DESERT9_12872
wait 0
goto @DESERT9_12601

:DESERT9_12883
Streaming.RemoveAnimation("PARACHUTE")

:DESERT9_12896
if 
  $player_y > 1033.0
goto_if_false @DESERT9_12928
Camera.Shake(40)
goto @DESERT9_12932

:DESERT9_12928
Camera.Shake(10)

:DESERT9_12932
gosub @DESERT9_17051
return 

:DESERT9_12941
Hud.SwitchWidescreen(True)
$para_control_off = 1

:DESERT9_12952
if 
  185@ == 0
goto_if_false @DESERT9_13101
Streaming.SetAreaVisible(0)
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_12995
Car.Delete(34@)

:DESERT9_12995
34@ = Car.Create(592, 316.212, 1003.495, 1957.529)
Car.StartPlayback(34@, 134)
Car.SetHeading(34@, 180.0)
Camera.AttachToChar($scplayer, 0.0, 2.0, -2.0, 0.0, 0.0, 0.0, 0.0, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4000
185@ = 1

:DESERT9_13101
if 
  185@ == 1
goto_if_false @DESERT9_13155
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_13155
$para_control_off = 0
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
return 

:DESERT9_13155
wait 0
goto @DESERT9_12952
return 

:DESERT9_13168
Streaming.SetAreaVisible(0)

:DESERT9_13172
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DESERT9_13198
goto @DESERT9_21869

:DESERT9_13198
if 
is_ps2_keyboard_key_pressed 23
goto_if_false @DESERT9_13213

:DESERT9_13213
goto @DESERT9_13172
return 

:DESERT9_13222
if 
  71@ == 0
goto_if_false @DESERT9_13304
186@ = Car.Create(592, 339.9034, 2499.805, 15.4884)
Car.StartPlayback(186@, 134)
Car.SetPlaybackSpeed(186@, 1.0)
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1000
71@ = 1

:DESERT9_13304
if 
  71@ == 1
goto_if_false @DESERT9_13528
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_13528
Text.ClearPrints
Text.Print('DES9_42', 5000, 1)
Char.SetVisible($scplayer, False)
Streaming.SetAreaVisible(0)
34@ = Car.Create(592, 339.9034, 2499.805, 15.4884)
Car.SetProofs(34@, True, True, True, True, True)
Car.StartPlayback(34@, 134)
Car.SetHealth(34@, 350)
if 
  not Car.IsDead(186@)
goto_if_false @DESERT9_13487
Car.SetPlaybackSpeed(186@, 0.5)
Camera.AttachToVehicleLookAtVehicle(186@, 15.0, 15.0, 10.0, 34@, 15.0, SwitchType.JumpCut)
Car.SetVisible(186@, False)

:DESERT9_13487
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
203@ = 1
71@ = 3
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 5000

:DESERT9_13528
if 
  203@ == 1
goto_if_false @DESERT9_13671
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 204@
goto_if_false @DESERT9_13671
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_13671
$x, $y, $z = Car.GetCoordinates(34@)
if 
  6 > 206@
goto_if_false @DESERT9_13633
Fx.AddExplosion($x, $y, $z, ExplosionType.Aircraft)
goto @DESERT9_13646

:DESERT9_13633
Fx.AddExplosionNoSound($x, $y, $z, ExplosionType.Aircraft)

:DESERT9_13646
206@ += 1
204@ = Math.RandomIntInRange(100, 250)
add_int_lvar_to_int_lvar 204@ += TIMERA

:DESERT9_13671
if 
  71@ == 3
goto_if_false @DESERT9_13738
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_13738
71@ = 4
Camera.DoFade(1000, Fade.Out)
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1000

:DESERT9_13738
if 
  71@ == 4
goto_if_false @DESERT9_13782
if 
  not Camera.GetFadingStatus
goto_if_false @DESERT9_13782
Game.ForceDeathRestart
Camera.SetBehindPlayer
Camera.RestoreJumpcut
goto @DESERT9_18

:DESERT9_13782
return 

:DESERT9_13784
if 
  71@ == 0
goto_if_false @DESERT9_14198
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_14198
Camera.SetFixedPosition(-158.5012, 2492.161, 31.0353, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-157.5606, 2492.445, 31.2209, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Car.SetPlaybackSpeed(34@, 1.0)
if 
  not Car.IsDead(36@)
goto_if_false @DESERT9_13930
if 
  not Char.IsInCar($scplayer, 36@)
goto_if_false @DESERT9_13930
Car.Delete(36@)

:DESERT9_13930
if 
  not Car.IsDead(186@)
goto_if_false @DESERT9_13951
Car.Delete(186@)

:DESERT9_13951
if 
  not Car.IsDead(37@)
goto_if_false @DESERT9_13991
if 
  not Char.IsInCar($scplayer, 37@)
goto_if_false @DESERT9_13991
Car.Delete(37@)

:DESERT9_13991
if 
  not Car.IsDead(38@)
goto_if_false @DESERT9_14031
if 
  not Char.IsInCar($scplayer, 38@)
goto_if_false @DESERT9_14031
Car.Delete(38@)

:DESERT9_14031
414@ = 0

:DESERT9_14038
if 
  8 > 414@
goto_if_false @DESERT9_14079
Char.Delete(40@(414@,8i))
414@ += 1
goto @DESERT9_14038

:DESERT9_14079
414@ = 0

:DESERT9_14086
if 
  15 > 414@
goto_if_false @DESERT9_14127
Object.Delete(225@(414@,15i))
414@ += 1
goto @DESERT9_14086

:DESERT9_14127
414@ = 0

:DESERT9_14134
if 
  5 > 414@
goto_if_false @DESERT9_14175
Object.Delete(49@(414@,6i))
414@ += 1
goto @DESERT9_14134

:DESERT9_14175
71@ = 1
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 3000

:DESERT9_14198
if 
  71@ == 1
goto_if_false @DESERT9_14289
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_14289
Text.Print('DES9_32', 4000, 1)
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
goto @DESERT9_18

:DESERT9_14289
return 

:DESERT9_14291
set_var_int_to_lvar_int $7507 = TIMERA
sub_int_var_from_int_var $7507 -= $cut_timerr
if 
  71@ == 0
goto_if_false @DESERT9_14671
if 
  not Char.IsDead($scplayer)
goto_if_false @DESERT9_14356
Char.SetProofs($scplayer, True, True, True, True, True)

:DESERT9_14356
set_var_int_to_lvar_int $cut_timerr = TIMERA
set_var_int_to_lvar_int $7507 = TIMERA
sub_int_var_from_int_var $7507 -= $cut_timerr
$x, $y, $z = Char.GetVelocity($scplayer)
186@ = Car.Create(592, 339.9034, 2499.805, 15.4884)
Car.StartPlayback(186@, 134)
Car.SetPlaybackSpeed(186@, 0.5)
Char.SetCoordinates($scplayer, 177.9967, 1099.621, 1977.491)
Char.SetHeading($scplayer, 180.0)
Char.SetVelocity($scplayer, $x, -30.0, $z)
Car.SetVisible(186@, True)
Car.ControlMovablePart(186@, 1.0)
Streaming.SetAreaVisible(0)
Char.SetCurrentWeapon($scplayer, WeaponType.Parachute)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 5300
197@ = 175.5399
198@ = 1097.84
199@ = 1978.912
200@ = 185.4931
201@ = 1028.03
202@ = 1763.16
190@ = 175.0676
191@ = 1097.025
192@ = 1979.246
193@ = 185.4931
194@ = 1028.03
195@ = 1763.16
71@ = 999
203@ = 1

:DESERT9_14671
if 
  203@ == 1
goto_if_false @DESERT9_14814
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 204@
goto_if_false @DESERT9_14814
if 
  not Car.IsDead(186@)
goto_if_false @DESERT9_14814
$x, $y, $z = Car.GetCoordinates(186@)
if 
  6 > 206@
goto_if_false @DESERT9_14776
Fx.AddExplosion($x, $y, $z, ExplosionType.Aircraft)
goto @DESERT9_14789

:DESERT9_14776
Fx.AddExplosionNoSound($x, $y, $z, ExplosionType.Aircraft)

:DESERT9_14789
206@ += 1
204@ = Math.RandomIntInRange(100, 250)
add_int_lvar_to_int_lvar 204@ += TIMERA

:DESERT9_14814
if 
  69@ <> 1
goto_if_false @DESERT9_14883
if 
  205@ == 0
goto_if_false @DESERT9_14883
if 
  $7507 > 4070
goto_if_false @DESERT9_14883
gosub @DESERT9_21869
205@ = 1

:DESERT9_14883
if 
  $7507 > 8070
goto_if_false @DESERT9_14924
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
goto @DESERT9_18

:DESERT9_14924
if 
  71@ == 999
goto_if_false @DESERT9_15196
Char.SetHeading($scplayer, 180.0)
cset_lvar_float_to_var_int 196@ =# $7507
196@ /= 8070.0
$x, $y, $z = Char.GetCoordinates($scplayer)
set_lvar_float_to_var_float 187@ = $x
set_lvar_float_to_lvar_float 189@ = 196@
189@ *= 7.5
add_float_var_to_float_lvar 189@ += $z
189@ -= 2.5
set_lvar_float_to_var_float 188@ = $y
188@ -= 5.0
Camera.SetFixedPosition(187@, 188@, 189@, 0.0, 0.0, 0.0)
set_lvar_float_to_lvar_float 187@ = 200@
sub_float_lvar_from_float_lvar 187@ -= 197@
set_lvar_float_to_lvar_float 188@ = 201@
sub_float_lvar_from_float_lvar 188@ -= 198@
set_lvar_float_to_lvar_float 189@ = 202@
sub_float_lvar_from_float_lvar 189@ -= 199@
cset_lvar_float_to_var_int 196@ =# $7507
196@ /= 8070.0
mult_float_lvar_by_float_lvar 187@ *= 196@
mult_float_lvar_by_float_lvar 188@ *= 196@
mult_float_lvar_by_float_lvar 189@ *= 196@
add_float_lvar_to_float_lvar 187@ += 197@
add_float_lvar_to_float_lvar 188@ += 198@
add_float_lvar_to_float_lvar 189@ += 199@
Camera.PointAtChar($scplayer, CameraMode.Fixed, SwitchType.JumpCut)

:DESERT9_15196
if 
  71@ == 40
goto_if_false @DESERT9_15229
set_lvar_int_to_lvar_int 88@ = TIMERA
71@ = 41

:DESERT9_15229
if 
  69@ <> 1
goto_if_false @DESERT9_15336
if 
  71@ == 41
goto_if_false @DESERT9_15336
set_var_int_to_lvar_int $start_timerr = TIMERA
sub_int_lvar_from_int_var $start_timerr -= 88@
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_15336
71@ = 42
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
gosub @DESERT9_21869
goto @DESERT9_18

:DESERT9_15336
if 
  71@ == 1
goto_if_false @DESERT9_15571
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_15571
Text.ClearPrints
Text.Print('DES9_42', 5000, 1)
Char.SetVisible($scplayer, False)
Streaming.SetAreaVisible(0)
34@ = Car.Create(592, 339.9034, 2499.805, 15.4884)
Car.SetProofs(34@, True, True, True, True, True)
Car.StartPlayback(34@, 134)
Car.SetHealth(34@, 350)
if 
  not Car.IsDead(186@)
goto_if_false @DESERT9_15519
Car.SetPlaybackSpeed(186@, 0.5)
Camera.AttachToVehicleLookAtVehicle(186@, 15.0, 15.0, 10.0, 34@, 15.0, SwitchType.JumpCut)
Car.SetVisible(186@, False)

:DESERT9_15519
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Fx.AddExplosion(179.0872, 1127.109, 1959.805, ExplosionType.Aircraft)
71@ = 10
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 80

:DESERT9_15571
if 
  71@ == 10
goto_if_false @DESERT9_15630
Fx.AddExplosion(178.0018, 1120.319, 1963.485, ExplosionType.Aircraft)
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 80
71@ = 11

:DESERT9_15630
if 
  71@ == 11
goto_if_false @DESERT9_15689
Fx.AddExplosion(177.9817, 1114.131, 1967.356, ExplosionType.Aircraft)
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 80
71@ = 12

:DESERT9_15689
if 
  71@ == 12
goto_if_false @DESERT9_15749
Fx.AddExplosion(179.386, 1109.919, 1972.504, ExplosionType.Aircraft)
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 3760
71@ = 3

:DESERT9_15749
if 
  71@ == 2
goto_if_false @DESERT9_15767

:DESERT9_15767
if 
  71@ == 3
goto_if_false @DESERT9_15827
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_15827
71@ = 4
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 6000

:DESERT9_15827
if 
  71@ == 4
goto_if_false @DESERT9_15873
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_15873
Game.ForceDeathRestart
goto @DESERT9_18

:DESERT9_15873
return 
Camera.SetFixedPosition(-189.0987, 2493.957, 66.7341, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-188.1982, 2494.105, 66.3252, SwitchType.JumpCut)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_15953

:DESERT9_15953
set_lvar_int_to_lvar_int 57@ = TIMERA
57@ += 4000

:DESERT9_15969
wait 0
if 
  58@ == 0
goto_if_false @DESERT9_16040
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 57@
goto_if_false @DESERT9_16040
Camera.DoFade(1000, Fade.Out)
set_lvar_int_to_lvar_int 57@ = TIMERA
57@ += 1000
58@ = 1

:DESERT9_16040
if 
  58@ == 1
goto_if_false @DESERT9_16128
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 57@
goto_if_false @DESERT9_16128
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(0, Fade.In)
Text.Print('DES9_32', 5000, 1)
gosub @DESERT9_21846
goto @DESERT9_18

:DESERT9_16128
goto @DESERT9_15969
return 

:DESERT9_16137
if 
  207@ == 0
goto_if_false @DESERT9_16523
208@ = 2000
209@ = 2300
210@ = 2600
211@ = 4000
212@ = 4300
213@ = 4600
214@ = 6000
215@ = 6300
216@ = 6600
217@ = 8000
218@ = 8300
219@ = 8600
220@ = 10000
221@ = 10300
222@ = 10600
240@ = 1
241@ = 1
242@ = 1
243@ = 1
244@ = 1
245@ = 1
246@ = 1
247@ = 1
248@ = 0
249@ = 1
250@ = 1
251@ = 1
252@ = 1
253@ = 1
254@ = 1
255@ = 0

:DESERT9_16387
if 
  15 > 255@
goto_if_false @DESERT9_16516
223@ = Math.RandomIntInRange(-500, 500)
add_int_lvar_to_int_lvar 208@(255@,15i) += TIMERA
add_int_lvar_to_int_lvar 208@(255@,15i) += 223@
255@ += 1
add_int_lvar_to_int_lvar 208@(255@,15i) += TIMERA
add_int_lvar_to_int_lvar 208@(255@,15i) += 223@
255@ += 1
add_int_lvar_to_int_lvar 208@(255@,15i) += TIMERA
add_int_lvar_to_int_lvar 208@(255@,15i) += 223@
255@ += 1
goto @DESERT9_16387

:DESERT9_16516
207@ = 1

:DESERT9_16523
if 
  207@ == 1
goto_if_false @DESERT9_17049
if 
  15 > 224@
goto_if_false @DESERT9_17049
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 208@(224@,15i)
goto_if_false @DESERT9_17049
277@ = 0

:DESERT9_16589
if 
  15 > 277@
goto_if_false @DESERT9_16707
if 
  Object.DoesExist(225@(277@,15i))
goto_if_false @DESERT9_16693
if 
  not Object.IsOnScreen(225@(277@,15i))
goto_if_false @DESERT9_16693
$x, $y, $z = Object.GetCoordinates(225@(277@,15i))
if 
  is_float_var_greater_than_float_var $x > $player_x
goto_if_false @DESERT9_16693
Object.Delete(225@(277@,15i))

:DESERT9_16693
277@ += 1
goto @DESERT9_16589

:DESERT9_16707
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_16731
259@ = Car.GetSpeed(34@)

:DESERT9_16731
set_lvar_float_to_lvar_float 257@ = 74@
257@ += 18.538
258@ = 15.61
set_lvar_float_to_lvar_float 260@ = 259@
260@ -= 18.0
260@ *= -1.0
if 
  240@(224@,15i) == 1
goto_if_false @DESERT9_16965
261@ = Math.RandomFloatInRange(-10.0, 10.0)
225@(224@,15i) = Object.Create(#KB_BARREL, 257@, 75@, 258@)
Object.SetHeading(225@(224@,15i), 90.0)
Object.SetDynamic(225@(224@,15i), False)
Object.SetDynamic(225@(224@,15i), True)
Object.SetVelocity(225@(224@,15i), 260@, 261@, 0.0)
Object.SetRotation(225@(224@,15i), 0.0, 0.0, 0.0)
set_lvar_float_to_lvar_float 151@ = 260@
151@ *= 2.0
Object.AddToRotationVelocity(225@(224@,15i), 0.0, 151@, 0.0)

:DESERT9_16965
if 
  240@(224@,15i) == 2
goto_if_false @DESERT9_17042
256@ = Car.Create(422, 257@, 75@, 258@)
Car.SetHeading(256@, 270.0)
Car.SetForwardSpeed(256@, 260@)
Car.SetRotationVelocity(256@, 0.0, 23.0, 0.0)

:DESERT9_17042
224@ += 1

:DESERT9_17049
return 

:DESERT9_17051
if 
  111@ == 0
goto_if_false @DESERT9_17517
111@ = 1
set_lvar_int_to_lvar_int 112@ = TIMERA
112@ += 1000
278@ = 316.465
282@ = 981.694
286@ = 1958.96
279@ = 315.248
283@ = 981.694
287@ = 1958.96
280@ = 316.465
284@ = 981.909
288@ = 1959.92
281@ = 315.248
285@ = 981.909
289@ = 1959.92
290@ = -0.996
291@ = 0.232
352@ = 3
353@ = 4
354@ = 4
355@ = 5
356@ = 6
357@ = 1
358@ = 3
359@ = 3
360@ = 4
361@ = 5
362@ = 2
363@ = 2
364@ = 6
365@ = 6
366@ = 7
367@ = 6
368@ = 6
369@ = 7
370@ = 7
371@ = 8
372@ = 0
373@ = 0
374@ = 300
375@ = 0
376@ = 0
377@ = 0
378@ = 0
379@ = 0
380@ = 0
381@ = 0
382@ = 0
383@ = 0
384@ = 300
385@ = 0
386@ = 300
387@ = 0
388@ = 300
389@ = 0
390@ = 300
391@ = 0

:DESERT9_17517
if 
  111@ == 1
goto_if_false @DESERT9_17837
393@ = 0
392@ = 0

:DESERT9_17549
if 
  4 > 392@
goto_if_false @DESERT9_17830
440@ = 0.0

:DESERT9_17577
if 
  5.0 > 440@
goto_if_false @DESERT9_17816
set_lvar_float_to_lvar_float 292@(393@,20f) = 278@(392@,4f)
set_lvar_float_to_lvar_float 312@(393@,20f) = 440@
mult_float_lvar_by_float_lvar 312@(393@,20f) *= 290@
add_float_lvar_to_float_lvar 312@(393@,20f) += 282@(392@,4f)
set_lvar_float_to_lvar_float 332@(393@,20f) = 440@
mult_float_lvar_by_float_lvar 332@(393@,20f) *= 291@
add_float_lvar_to_float_lvar 332@(393@,20f) += 286@(392@,4f)
91@(393@,20i) = Object.Create(#KB_BARREL, 292@(393@,20f), 312@(393@,20f), 332@(393@,20f))
set_lvar_int_to_lvar_int 114@ = TIMERA
Object.SetRotation(91@(393@,20i), 0.0, 13.0, 90.0)
Object.SetDynamic(91@(393@,20i), False)
Object.SetDynamic(91@(393@,20i), True)
Object.FreezePosition(91@(393@,20i), True)
393@ += 1
440@ += 1.0
goto @DESERT9_17577

:DESERT9_17816
392@ += 1
goto @DESERT9_17549

:DESERT9_17830
111@ = 2

:DESERT9_17837
if 
  111@ == 2
goto_if_false @DESERT9_19935
414@ = 0
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if 
  439@ == 0
goto_if_false @DESERT9_17947
if 
  990.0 >= $player_y
goto_if_false @DESERT9_17947
439@ = 1
if 
  not Char.IsDead(44@)
goto_if_false @DESERT9_17947
Char.SetRelationship(44@, RelationshipType.Hate, PedType.Player1)

:DESERT9_17947
if 
  60@ == 0
goto_if_false @DESERT9_18018
if 
  1021.0 > $player_y
goto_if_false @DESERT9_18018
if 
  not Char.IsDead(40@)
goto_if_false @DESERT9_18018
Char.SetRelationship(40@, RelationshipType.Hate, PedType.Player1)
60@ = 1

:DESERT9_18018
if 
  61@ == 0
goto_if_false @DESERT9_18089
if 
  1011.0 > $player_y
goto_if_false @DESERT9_18089
if 
  not Char.IsDead(41@)
goto_if_false @DESERT9_18089
Char.SetRelationship(41@, RelationshipType.Hate, PedType.Player1)
61@ = 1

:DESERT9_18089
if 
  62@ == 0
goto_if_false @DESERT9_18160
if 
  1000.0 > $player_y
goto_if_false @DESERT9_18160
if 
  not Char.IsDead(42@)
goto_if_false @DESERT9_18160
Char.SetRelationship(42@, RelationshipType.Hate, PedType.Player1)
62@ = 1

:DESERT9_18160
if 
  63@ == 0
goto_if_false @DESERT9_18231
if 
  1000.0 > $player_y
goto_if_false @DESERT9_18231
if 
  not Char.IsDead(43@)
goto_if_false @DESERT9_18231
Char.SetRelationship(43@, RelationshipType.Hate, PedType.Player1)
63@ = 1

:DESERT9_18231
if 
  439@ == 0
goto_if_false @DESERT9_18429
if or
  1021.0 > $player_y
  435@ == 1
goto_if_false @DESERT9_18429
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 436@
goto_if_false @DESERT9_18429
set_lvar_int_to_lvar_int 436@ = TIMERA
436@ += 6500
set_lvar_int_to_lvar_int 437@ = TIMERA
435@ += 1
if 
  not Char.IsDead(44@)
goto_if_false @DESERT9_18429
if 
  Streaming.HasAnimationLoaded("AIRPORT")
goto_if_false @DESERT9_18418
Task.PlayAnim(44@, "THRW_BARL_THRW", "AIRPORT", 4.0, False, False, False, False, 3000)
goto @DESERT9_18429

:DESERT9_18418
Streaming.RequestAnimation("AIRPORT")

:DESERT9_18429
if 
  20 > 414@
goto_if_false @DESERT9_19935
if 
  is_int_lvar_greater_or_equal_to_int_lvar 435@ >= 352@(414@,20i)
goto_if_false @DESERT9_19921
if 
  415@(414@,20i) == 0
goto_if_false @DESERT9_18591
set_lvar_int_to_lvar_int 438@ = 437@
add_int_lvar_to_int_lvar 438@ += 372@(414@,20i)
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 438@
goto_if_false @DESERT9_18591
415@(414@,20i) = 1
if 
  414@ == 5
goto_if_false @DESERT9_18591
Object.SetCoordinates(96@, 315.1264, 986.6496, 1957.926)
415@(414@,20i) = 6

:DESERT9_18591
if 
  415@(414@,20i) == 1
goto_if_false @DESERT9_18671
if 
  10 > 414@
goto_if_false @DESERT9_18649
415@(414@,20i) = 2
goto @DESERT9_18660

:DESERT9_18649
415@(414@,20i) = 3

:DESERT9_18660
Object.SetCollision(91@(414@,20i), False)

:DESERT9_18671
if 
  415@(414@,20i) == 2
goto_if_false @DESERT9_18758
if 
  Object.Slide(91@(414@,20i), 292@(414@,20f), 981.691, 1959.418, 0.0, 0.183, 0.0412, False)
goto_if_false @DESERT9_18758
415@(414@,20i) = 4

:DESERT9_18758
if 
  415@(414@,20i) == 3
goto_if_false @DESERT9_18845
if 
  Object.Slide(91@(414@,20i), 292@(414@,20f), 981.909, 1960.339, 0.0, 0.183, 0.0412, False)
goto_if_false @DESERT9_18845
415@(414@,20i) = 5

:DESERT9_18845
if 
  415@(414@,20i) == 4
goto_if_false @DESERT9_18932
if 
  Object.Slide(91@(414@,20i), 292@(414@,20f), 984.242, 1958.532, 0.0, 0.287, 0.1, False)
goto_if_false @DESERT9_18932
415@(414@,20i) = 5

:DESERT9_18932
if 
  415@(414@,20i) == 5
goto_if_false @DESERT9_19019
if 
  Object.Slide(91@(414@,20i), 292@(414@,20f), 984.242, 1958.532, 0.0, 0.21, 0.162, False)
goto_if_false @DESERT9_19019
415@(414@,20i) = 6

:DESERT9_19019
if 
  415@(414@,20i) == 6
goto_if_false @DESERT9_19106
if 
  Object.Slide(91@(414@,20i), 292@(414@,20f), 1027.961, 1948.424, 0.0, 0.244, 0.0564, False)
goto_if_false @DESERT9_19106
415@(414@,20i) = 7

:DESERT9_19106
if 
  415@(414@,20i) == 7
goto_if_false @DESERT9_19193
if 
  Object.Slide(91@(414@,20i), 292@(414@,20f), 1039.494, 1942.693, 0.0, 0.432, 0.2145, False)
goto_if_false @DESERT9_19193
415@(414@,20i) = 8

:DESERT9_19193
if 
  415@(414@,20i) == 8
goto_if_false @DESERT9_19280
if 
  Object.Slide(91@(414@,20i), 292@(414@,20f), 1086.909, 1908.631, 0.0, 0.882, 0.6645, False)
goto_if_false @DESERT9_19280
415@(414@,20i) = 9

:DESERT9_19280
if 
  415@(414@,20i) == 9
goto_if_false @DESERT9_19324
Object.SetVisible(91@(414@,20i), False)
415@(414@,20i) = 10

:DESERT9_19324
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 113@
goto_if_false @DESERT9_19558
if and
  2 <= 415@(414@,20i)
  415@(414@,20i) < 8
goto_if_false @DESERT9_19558
292@(414@,20f), 144@, 145@ = Object.GetCoordinates(91@(414@,20i))
set_lvar_float_to_var_float 148@ = $player_x
sub_float_lvar_from_float_lvar 148@ -= 292@(414@,20f)
set_lvar_float_to_var_float 149@ = $player_y
sub_float_lvar_from_float_lvar 149@ -= 144@
set_lvar_float_to_var_float 150@ = $player_z
sub_float_lvar_from_float_lvar 150@ -= 145@
148@ = Math.Abs()
if 
  0.6 > 148@
goto_if_false @DESERT9_19558
if and
  0.5 > 149@
  149@ > 0.0
goto_if_false @DESERT9_19558
if 
  0.6 > 150@
goto_if_false @DESERT9_19558
Char.ClearTasksImmediately($scplayer)
Task.FallAndGetUp($scplayer, False, 0)
set_lvar_int_to_lvar_int 113@ = TIMERA
113@ += 1500

:DESERT9_19558
444@ = 0

:DESERT9_19565
if 
  4 > 444@
goto_if_false @DESERT9_19842
if 
  not Char.IsDead(40@(444@,8i))
goto_if_false @DESERT9_19828
if and
  2 <= 415@(414@,20i)
  415@(414@,20i) < 8
goto_if_false @DESERT9_19828
441@, 442@, 443@ = Char.GetCoordinates(40@(444@,8i))
292@(414@,20f), 144@, 145@ = Object.GetCoordinates(91@(414@,20i))
set_lvar_float_to_lvar_float 148@ = 441@
sub_float_lvar_from_float_lvar 148@ -= 292@(414@,20f)
set_lvar_float_to_lvar_float 149@ = 442@
sub_float_lvar_from_float_lvar 149@ -= 144@
set_lvar_float_to_lvar_float 150@ = 443@
sub_float_lvar_from_float_lvar 150@ -= 145@
148@ = Math.Abs()
if 
  0.6 > 148@
goto_if_false @DESERT9_19828
if and
  0.5 > 149@
  149@ > 0.0
goto_if_false @DESERT9_19828
if 
  0.6 > 150@
goto_if_false @DESERT9_19828
Char.ClearTasksImmediately(40@(444@,8i))
Task.FallAndGetUp(40@(444@,8i), False, 0)

:DESERT9_19828
444@ += 1
goto @DESERT9_19565

:DESERT9_19842
116@(414@,20f) += 20.0
Object.SetRotation(91@(414@,20i), 0.0, 116@(414@,20f), 90.0)
if 
  116@(414@,20f) == 360.0
goto_if_false @DESERT9_19921
116@(414@,20f) = 0.0

:DESERT9_19921
414@ += 1
goto @DESERT9_18429

:DESERT9_19935
return 

:DESERT9_19937
88@ = 0

:DESERT9_19944
if 
  15 > 88@
goto_if_false @DESERT9_20401
if 
  462@(88@,15i) == 1
goto_if_false @DESERT9_20018
set_lvar_int_to_lvar_int 447@(88@,15i) = TIMERA
447@(88@,15i) += 120
462@(88@,15i) = 2

:DESERT9_20018
if 
  462@(88@,15i) == 2
goto_if_false @DESERT9_20387
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 447@(88@,15i)
goto_if_false @DESERT9_20387
462@(88@,15i) = 3
set_lvar_int_to_lvar_int 89@ = 88@
89@ -= 1
set_lvar_int_to_lvar_int 90@ = 88@
90@ += 1
if 
  0 > 89@
goto_if_false @DESERT9_20129
89@ = 0

:DESERT9_20129
if 
  90@ > 14
goto_if_false @DESERT9_20154
90@ = 14

:DESERT9_20154
if 
  462@(89@,15i) == 0
goto_if_false @DESERT9_20187
462@(89@,15i) = 1

:DESERT9_20187
if 
  462@(90@,15i) == 0
goto_if_false @DESERT9_20220
462@(90@,15i) = 1

:DESERT9_20220
cset_lvar_float_to_lvar_int 161@ =# 88@
160@ = 5.0
mult_float_lvar_by_float_lvar 160@ *= 161@
159@ = 967.5745
add_float_lvar_to_float_lvar 159@ += 160@
set_lvar_float_to_lvar_float 160@ = 159@
160@ += 5.0
if and
  is_float_lvar_greater_than_float_var 160@ > $player_y
  is_float_var_greater_than_float_lvar $player_y > 159@
goto_if_false @DESERT9_20334
if 
  $player_fall_state == 0
goto_if_false @DESERT9_20334
69@ = 1

:DESERT9_20334
159@ += 2.25
set_lvar_float_to_lvar_float 160@ = 161@
160@ *= -1.19
160@ += 1962.38
Fx.AddExplosion(315.8258, 159@, 160@, ExplosionType.Aircraft)

:DESERT9_20387
88@ += 1
goto @DESERT9_19944

:DESERT9_20401
if 
  69@ == 1
goto_if_false @DESERT9_20460
Task.FallAndGetUp($scplayer, False, 0)
68@ = 7
71@ = 0
Text.ClearPrints
Text.Print('DES9_42', 4000, 1)

:DESERT9_20460
return 

:DESERT9_20462
if 
  477@ <> 0
goto_if_false @DESERT9_20662
if 
  478@ == 0
goto_if_false @DESERT9_20540
478@ = 1
set_lvar_int_to_lvar_int 479@ = TIMERA
480@ = 0
set_lvar_int_to_lvar_int 682@ = 479@
add_int_lvar_to_int_lvar 682@ += 481@(480@,10i)

:DESERT9_20540
if 
  478@ == 1
goto_if_false @DESERT9_20662
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 682@
goto_if_false @DESERT9_20662
set_lvar_int_to_lvar_int 626@ = 491@(480@,10i)
480@ += 1
501@ -= 1
if 
  501@ == 0
goto_if_false @DESERT9_20642
477@ = 0
478@ = 0
goto @DESERT9_20662

:DESERT9_20642
set_lvar_int_to_lvar_int 682@ = 479@
add_int_lvar_to_int_lvar 682@ += 481@(480@,10i)

:DESERT9_20662
switch_start 629@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @DESERT9_21691 {caseNum1} 0 {caseLabel1} @DESERT9_20725 {caseNum2} 1 {caseLabel2} @DESERT9_20833 {caseNum3} 2 {caseLabel3} @DESERT9_21362 {caseNum4} 3 {caseLabel4} @DESERT9_21438 {caseNum5} 4 {caseLabel5} @DESERT9_21496 {caseNum6} 5 {caseLabel6} @DESERT9_21610 {caseNum7} -1 {caseLabel7} @DESERT9_21691

:DESERT9_20725
set_lvar_text_label 504@s = 'DES9_BA'
set_lvar_text_label 506@s = 'DES9_BB'
set_lvar_int_to_constant 583@ = 18202
set_lvar_int_to_constant 584@ = 18203
632@ = 0
633@ = 0
set_lvar_int_to_var_int 672@ = $scplayer
629@ = 1
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 583@)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 584@)
623@ = 1
624@ = 2
goto @DESERT9_21691

:DESERT9_20833
if 
  626@ <> 0
goto_if_false @DESERT9_21355
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 630@
goto_if_false @DESERT9_21355
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @DESERT9_21355
if 
  is_int_lvar_equal_to_int_lvar 623@ == 626@
goto_if_false @DESERT9_20922
625@ = 1
goto @DESERT9_20985

:DESERT9_20922
if 
  is_int_lvar_equal_to_int_lvar 624@ == 626@
goto_if_false @DESERT9_20955
625@ = 2
goto @DESERT9_20985

:DESERT9_20955
625@ = 1
set_lvar_int_to_lvar_int 623@ = 626@
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 582@(626@,40i))

:DESERT9_20985
if 
  Audio.HasMissionAudioLoaded(625@)
goto_if_false @DESERT9_21343
if 
  631@(626@,40i) <> 0
goto_if_false @DESERT9_21116
set_lvar_int_to_lvar_int 679@ = 631@(626@,40i)
set_lvar_int_to_lvar_int 680@ = 671@(679@,7i)
if 
  not Char.IsDead(680@)
goto_if_false @DESERT9_21116
Audio.AttachMissionAudioToChar(625@, 680@)
if 
  not Char.IsTalking(680@)
goto_if_false @DESERT9_21109
678@ = 1
Char.StartFacialTalk(680@, 15000)
goto @DESERT9_21116

:DESERT9_21109
Char.DisableSpeech(680@, False)

:DESERT9_21116
if 
  631@(626@,40i) == 0
goto_if_false @DESERT9_21145
678@ = 1

:DESERT9_21145
if 
  678@ == 1
goto_if_false @DESERT9_21336
Audio.PlayMissionAudio(625@)
Text.ClearPrints
Text.Print(502@(626@,40s), 10000, 1)
629@ += 1
678@ = 0
626@ += 1
set_lvar_int_to_lvar_int 627@ = 626@
if 
  582@(626@,40i) <> 0
goto_if_false @DESERT9_21336
if 
  625@ == 1
goto_if_false @DESERT9_21298
if 
  not is_int_lvar_equal_to_int_lvar 624@ == 626@
goto_if_false @DESERT9_21291
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 582@(626@,40i))
set_lvar_int_to_lvar_int 624@ = 626@

:DESERT9_21291
goto @DESERT9_21336

:DESERT9_21298
if 
  not is_int_lvar_equal_to_int_lvar 623@ == 626@
goto_if_false @DESERT9_21336
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 582@(626@,40i))
set_lvar_int_to_lvar_int 623@ = 626@

:DESERT9_21336
goto @DESERT9_21355

:DESERT9_21343
Audio.LoadMissionAudio(625@, 582@(626@,40i))

:DESERT9_21355
goto @DESERT9_21691

:DESERT9_21362
if 
  Audio.HasMissionAudioFinished(625@)
goto_if_false @DESERT9_21392
629@ += 1
goto @DESERT9_21431

:DESERT9_21392
if 
  Char.DoesExist(680@)
goto_if_false @DESERT9_21431
if 
  Char.IsDead(680@)
goto_if_false @DESERT9_21431
629@ += 1

:DESERT9_21431
goto @DESERT9_21691

:DESERT9_21438
Audio.ClearMissionAudio(625@)
622@(625@,3i) = 0
Text.ClearPrints
if 
  not Char.IsDead(680@)
goto_if_false @DESERT9_21482
Char.StopFacialTalk(680@)
Char.EnableSpeech(680@)

:DESERT9_21482
629@ += 1
goto @DESERT9_21691

:DESERT9_21496
626@ += 1
if 
  582@(626@,40i) <> 0
goto_if_false @DESERT9_21549
Audio.LoadMissionAudio(625@, 582@(626@,40i))
set_lvar_int_to_lvar_int 622@(625@,3i) = 626@

:DESERT9_21549
628@ -= 1
if 
  628@ <= 0
goto_if_false @DESERT9_21588
626@ = 0
goto @DESERT9_21596

:DESERT9_21588
set_lvar_int_to_lvar_int 626@ = 627@

:DESERT9_21596
629@ = 1
goto @DESERT9_21691

:DESERT9_21610
629@ = 1
626@ = 0
628@ = 0
477@ = 0
501@ = 0
Audio.ClearMissionAudio(625@)
622@(625@,3i) = 0
Text.ClearPrints
if 
  not Char.IsDead(680@)
goto_if_false @DESERT9_21684
Char.EnableSpeech(680@)

:DESERT9_21684
goto @DESERT9_21691

:DESERT9_21691
return 

:DESERT9_21693
if 
  171@ == 1
goto_if_false @DESERT9_21844
if 
  684@ == 0
goto_if_false @DESERT9_21768
set_lvar_int_to_lvar_int 683@ = TIMERA
683@ += 5000
Text.Print('DES9_A9', 4000, 1)
684@ = 1

:DESERT9_21768
if 
  684@ == 1
goto_if_false @DESERT9_21844
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 683@
goto_if_false @DESERT9_21844
set_lvar_int_to_lvar_int 683@ = TIMERA
683@ += 4500
Text.Print('DES9_A6', 4500, 1)
684@ = 2

:DESERT9_21844
return 

:DESERT9_21846
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Pickup.Remove($para_max_Vz)
return 

:DESERT9_21869
if 
  Char.HasGotWeapon($scplayer, WeaponType.Detonator)
goto_if_false @DESERT9_21894
Char.RemoveWeapon($scplayer, WeaponType.Detonator)

:DESERT9_21894
$flag_desert_mission_counter += 1
Stat.RegisterMissionPassed('DESERT9')
Text.PrintWithNumberBig('M_PASS', 20000, 5000, TextStyle.Middle)
Player.AddScore($player1, 20000)
Stat.PlayerMadeProgress(1)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
return 

:DESERT9_21954
$player_fall_safe = 0
if 
  not Char.IsDead($scplayer)
goto_if_false @DESERT9_21992
Char.SetProofs($scplayer, False, False, False, False, False)

:DESERT9_21992
Pad.SetPlayerFireButton($player1, True)
if 
  not Char.IsDead($scplayer)
goto_if_false @DESERT9_22033
Char.SetAreaVisible($scplayer, 0)
Streaming.SetAreaVisible(0)
Char.SetVisible($scplayer, True)

:DESERT9_22033
Camera.ResetNewScriptables
if 
  not Char.IsDead($scplayer)
goto_if_false @DESERT9_22080
Char.SetProofs($scplayer, False, False, False, False, False)
Char.FreezePosition($scplayer, False)
Player.DisableSprint($player1, False)

:DESERT9_22080
World.SwitchEntryExit('DESHOUS', True)
Streaming.MarkModelAsNoLongerNeeded(445)
Streaming.MarkModelAsNoLongerNeeded(91)
Streaming.MarkModelAsNoLongerNeeded(461)
Streaming.MarkModelAsNoLongerNeeded(592)
Streaming.MarkModelAsNoLongerNeeded(422)
Streaming.MarkModelAsNoLongerNeeded(165)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(166)
Streaming.MarkModelAsNoLongerNeeded(364)
Streaming.MarkModelAsNoLongerNeeded(363)
Streaming.MarkModelAsNoLongerNeeded(371)
Streaming.RemoveAnimation("AIRPORT")
Streaming.RemoveAnimation("CARRY")
Streaming.MarkModelAsNoLongerNeeded(335)
Streaming.RemoveCarRecording(150)
Streaming.RemoveCarRecording(152)
Streaming.RemoveCarRecording(149)
Streaming.RemoveCarRecording(167)
Streaming.RemoveCarRecording(168)
Streaming.UnloadSpecialCharacter(1)
Streaming.RemoveCarRecording(149)
414@ = 0

:DESERT9_22218
if 
  8 > 414@
goto_if_false @DESERT9_22279
if 
  not Char.IsDead(40@(414@,8i))
goto_if_false @DESERT9_22265
Char.Delete(40@(414@,8i))

:DESERT9_22265
414@ += 1
goto @DESERT9_22218

:DESERT9_22279
414@ = 0

:DESERT9_22286
if 
  15 > 414@
goto_if_false @DESERT9_22327
Object.Delete(225@(414@,15i))
414@ += 1
goto @DESERT9_22286

:DESERT9_22327
World.RemoveAllScriptFires
if 
  not Car.IsDead(36@)
goto_if_false @DESERT9_22369
if 
  not Char.IsInCar($scplayer, 36@)
goto_if_false @DESERT9_22369
Car.Delete(36@)

:DESERT9_22369
if 
  not Car.IsDead(186@)
goto_if_false @DESERT9_22390
Car.Delete(186@)

:DESERT9_22390
if 
  not Car.IsDead(37@)
goto_if_false @DESERT9_22430
if 
  not Char.IsInCar($scplayer, 37@)
goto_if_false @DESERT9_22430
Car.Delete(37@)

:DESERT9_22430
if 
  not Car.IsDead(38@)
goto_if_false @DESERT9_22470
if 
  not Char.IsInCar($scplayer, 38@)
goto_if_false @DESERT9_22470
Car.Delete(38@)

:DESERT9_22470
if 
  not Car.IsDead(34@)
goto_if_false @DESERT9_22491
Car.Delete(34@)

:DESERT9_22491
if 
  not Car.IsDead(35@)
goto_if_false @DESERT9_22545
if 
  not Char.IsInCar($scplayer, 35@)
goto_if_false @DESERT9_22545
Car.SetAreaVisible(35@, 0)
Car.SetVisible(35@, True)
Car.MarkAsNoLongerNeeded(35@)

:DESERT9_22545
if 
  68@ <> 9
goto_if_false @DESERT9_22591
if 
  not Car.IsDead(186@)
goto_if_false @DESERT9_22584
Car.Delete(186@)

:DESERT9_22584
goto @DESERT9_22612

:DESERT9_22591
if 
  not Car.IsDead(186@)
goto_if_false @DESERT9_22612
Car.MarkAsNoLongerNeeded(186@)

:DESERT9_22612
Particle.Kill(174@)
Blip.Remove(152@)
if 
  Player.IsPlaying($player1)
goto_if_false @DESERT9_22645
Player.DisableSprint($player1, False)

:DESERT9_22645
Char.SetCanBeKnockedOffBike($scplayer, False)
Blip.Remove(152@)
Blip.Remove(153@)
Hud.DisplayRadar(True)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
$para_control_off = 0
return 
return 

//-------------Mission 81---------------
// Originally: Black Project

:MAF4
script_name 'MAF4'
gosub @MAF4_47
if 
  has_deatharrest_been_executed 
goto_if_false @MAF4_38
gosub @MAF4_29929

:MAF4_38
gosub @MAF4_30253
terminate_this_script 

:MAF4_47
Stat.RegisterMissionGiven
wait 0
Text.LoadMissionText('DSERT8')
Weather.ForceNow(WeatherType.SunnyDesert)
34@ = Stat.GetInt(StatId.Fat)
if 
  34@ > 600
goto_if_false @MAF4_326
Cutscene.Load('D8_ALT')

:MAF4_105
if 
  not Cutscene.HasLoaded
goto_if_false @MAF4_129
wait 0
goto @MAF4_105

:MAF4_129
World.ClearArea(405.2136, 2525.9, 16.4918, 7.5, False)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:MAF4_162
if 
  not Cutscene.HasFinished
goto_if_false @MAF4_186
wait 0
goto @MAF4_162

:MAF4_186
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:MAF4_199
if 
  Camera.GetFadingStatus
goto_if_false @MAF4_223
wait 0
goto @MAF4_199

:MAF4_223
Cutscene.Clear
World.ClearArea(419.4488, 2529.914, 15.6219, 0.5, False)
Streaming.LoadScene(419.4488, 2529.914, 15.6219)
Char.SetCoordinates($scplayer, 419.4488, 2529.914, 15.6219)
Char.SetHeading($scplayer, 180.0)
Camera.SetBehindPlayer
Camera.DoFade(1500, Fade.In)
Player.SetControl($player1, True)
goto @MAF4_30253
goto @MAF4_451

:MAF4_326
World.ClearArea($desert2X, $desert2Y, $desert2Z, 100.0, False)
Cutscene.Load('DESERT8')

:MAF4_355
if 
  not Cutscene.HasLoaded
goto_if_false @MAF4_379
wait 0
goto @MAF4_355

:MAF4_379
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:MAF4_388
if 
  not Cutscene.HasFinished
goto_if_false @MAF4_412
wait 0
goto @MAF4_388

:MAF4_412
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:MAF4_427
if 
  Camera.GetFadingStatus
goto_if_false @MAF4_451
wait 0
goto @MAF4_427

:MAF4_451
49@ = 108.51
56@ = 1917.268
63@ = 17.63
70@ = 135.323
77@ = 1917.776
84@ = 18.71
50@ = 180.018
57@ = 1904.214
64@ = 17.255
71@ = 243.707
78@ = 1903.543
85@ = 18.639
51@ = 239.0798
58@ = 1904.087
65@ = 16.899
72@ = 188.371
79@ = 1905.376
86@ = 16.825
52@ = 166.119
59@ = 1857.384
66@ = 16.764
73@ = 276.669
80@ = 1856.339
87@ = 16.671
53@ = 191.28
60@ = 1822.46
67@ = 16.83
74@ = 252.37
81@ = 1821.89
88@ = 17.04
54@ = 138.07
61@ = 1823.01
68@ = 16.88
75@ = 105.1
82@ = 1867.21
89@ = 16.97
55@ = 192.9
62@ = 1809.56
69@ = 16.8
76@ = 144.2
83@ = 1812.52
90@ = 16.78
163@ = 0
164@ = 0
165@ = 0
166@ = 0

:MAF4_899
if 
  7 > 165@
goto_if_false @MAF4_942
167@(165@,7i) = 0
165@ += 1
goto @MAF4_899

:MAF4_942
174@ = 0
175@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
183@ = 0
184@ = 0
185@ = 0
186@ = 0
187@ = 0
188@ = 0
189@ = 0
190@ = 0
191@ = 0
192@ = 0
193@ = 0
194@ = 0
195@ = 0
196@ = 0
197@ = 0
199@ = 0
200@ = 0
201@ = 0
202@ = 0
198@ = 0
203@ = 0
204@ = 0
Game.SetWantedMultiplier(0.0)
Camera.SetFadingColor(0, 0, 0)
wait 500
Streaming.RequestModel(287)
Streaming.RequestModel(356)
Streaming.RequestModel(#A51_SPOTBULB)
Streaming.RequestModel(#A51_SPOTHOUSING)
Streaming.RequestModel(#A51_SPOTBASE)
Streaming.RequestModel(483)
Streaming.LoadSpecialCharacter(1, 'TRUTH')
Streaming.RequestCarRecording(340)
Streaming.RequestCarRecording(341)
Streaming.RequestModel(335)
Streaming.RequestModel(347)
Streaming.RequestModel(358)
Streaming.RequestModel(369)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 1809)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 26618)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 38442)
Streaming.LoadAllModelsNow

:MAF4_1319
if or
  not Streaming.HasModelLoaded(287)
  not Streaming.HasModelLoaded(356)
  not Streaming.HasModelLoaded(#A51_SPOTBULB)
  not Streaming.HasModelLoaded(#A51_SPOTHOUSING)
  not Streaming.HasModelLoaded(#A51_SPOTBASE)
  not Streaming.HasModelLoaded(483)
goto_if_false @MAF4_1371
wait 0
goto @MAF4_1319

:MAF4_1371
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasCarRecordingBeenLoaded(340)
  not Streaming.HasCarRecordingBeenLoaded(341)
  not Streaming.HasModelLoaded(335)
  not Streaming.HasModelLoaded(347)
  not Streaming.HasModelLoaded(358)
goto_if_false @MAF4_1422
wait 0
goto @MAF4_1371

:MAF4_1422
if or
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
  not Streaming.HasModelLoaded(369)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @MAF4_1461
wait 0
goto @MAF4_1422

:MAF4_1461
Zone.SetDisableMilitaryZones(True)
Streaming.LoadSceneInDirection(49.8744, 1900.289, 17.7833, 99.0)
160@ = DecisionMakerChar.Load(DecisionMakerType.Steal)
159@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
161@ = DecisionMakerChar.Load(DecisionMakerType.Weak)
162@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Mission1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission3, PedType.Mission1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Mission3)
107@ = Car.Create(483, 22.4045, 1881.61, 16.6484)
Car.SetHeading(107@, 306.3276)
Car.ChangeColor(107@, 1, 1)
Car.GivePaintjob(107@, 0)
106@ = Char.CreateAsPassenger(107@, PedType.Special, 290, 0)
Char.SetDecisionMaker(106@, 159@)
Char.WarpIntoCar($scplayer, 107@)
Camera.SetFixedPosition(49.8744, 1900.289, 17.7833, 0.0, 0.0, 0.0)
Camera.PointAtPoint(48.9571, 1899.896, 17.8444, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 36.09, 1921.04, 18.93)
Char.SetHeading($scplayer, 268.5112)
Streaming.LoadScene(106.9, -1923.21, 18.35)
World.ClearArea(82.775, 1917.325, 17.733, 150.0, True)
World.SetCarDensityMultiplier(0.1)
World.SetPedDensityMultiplier(0.1)
Hud.SetRadarZoom(75)
Player.ForceInteriorLighting($player1, True)
Clock.SetTimeOfDay(23, 30)
TIMERA = 0
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Char.ShutUp($scplayer, True)
Camera.DoFade(1000, Fade.In)
146@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 108.48, 1919.29, 18.56)
147@ = Pickup.Create(#HEALTH, PickupType.Once, 228.91, 1858.65, 14.8)
148@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 247.016, 1859.22, 14.08)
149@ = Pickup.Create(#HEALTH, PickupType.Once, 273.61, 1816.32, 1.02)
150@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 255.36, 1802.007, 7.47)
151@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 292.46, 1817.89, 1.015)
Game.ShowBlipsOnAllLevels(True)
Object.Delete($5176)
World.ClearArea(22.4045, 1881.61, 400.0, 400.0, False)
Player.ClearWantedLevel($player1)

:MAF4_1996
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MAF4_2022
goto @MAF4_29999

:MAF4_2022
if 
  5 > 164@
goto_if_false @MAF4_13445
if 
  164@ == 0
goto_if_false @MAF4_2116
if 
  not Car.IsDead(107@)
goto_if_false @MAF4_2116
if 
  not Char.IsDead(106@)
goto_if_false @MAF4_2116
Car.StartPlayback(107@, 340)
Task.LookAtChar($scplayer, 106@, 10000)
164@ = 1

:MAF4_2116
if 
  164@ == 1
goto_if_false @MAF4_2217
if 
  not Car.IsDead(107@)
goto_if_false @MAF4_2217
if 
  not Char.IsDead(106@)
goto_if_false @MAF4_2217
if 
  not Car.IsPlaybackGoingOn(107@)
goto_if_false @MAF4_2217
176@ = 0
177@ = 0
skip_cutscene_start_internal @MAF4_8238
TIMERA = 0
164@ = 2

:MAF4_2217
if 
  164@ == 2
goto_if_false @MAF4_2444
if 
  TIMERA > 1000
goto_if_false @MAF4_2444
if 
  not Car.IsDead(107@)
goto_if_false @MAF4_2444
if 
  not Char.IsDead(106@)
goto_if_false @MAF4_2444
if 
  Char.IsSittingInCar($scplayer, 107@)
goto_if_false @MAF4_2444
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DES8_LA', 3000, 1)

:MAF4_2325
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @MAF4_2351
wait 0
goto @MAF4_2325

:MAF4_2351
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 38443)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('TRUX_AS', 2500, 1)

:MAF4_2380
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @MAF4_2406
wait 0
goto @MAF4_2380

:MAF4_2406
if 
  not Car.IsDead(107@)
goto_if_false @MAF4_2430
Task.LeaveCar($scplayer, 107@)

:MAF4_2430
TIMERA = 0
164@ = 3

:MAF4_2444
if 
  164@ == 3
goto_if_false @MAF4_2686
if 
  not Car.IsDead(107@)
goto_if_false @MAF4_2686
if 
  not Char.IsDead(106@)
goto_if_false @MAF4_2686
if 
  not Char.IsInCar($scplayer, 107@)
goto_if_false @MAF4_2686
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @MAF4_2686
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @MAF4_2686
if 
  Char.IsInCar(106@, 107@)
goto_if_false @MAF4_2570
Task.ShuffleToNextCarSeat(106@, 107@)

:MAF4_2570
if 
  not Car.IsDead(107@)
goto_if_false @MAF4_2597
Task.LookAtVehicle($scplayer, 107@, 5000)

:MAF4_2597
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DES8_LC', 2000, 1)

:MAF4_2617
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @MAF4_2643
wait 0
goto @MAF4_2617

:MAF4_2643
wait 350
if 
  not Car.IsDead(107@)
goto_if_false @MAF4_2672
Car.StartPlayback(107@, 341)

:MAF4_2672
TIMERA = 0
164@ = 4

:MAF4_2686
if 
  164@ == 4
goto_if_false @MAF4_13445
if 
  TIMERA > 4000
goto_if_false @MAF4_13445
35@ = Searchlight.Create(161.513, 1932.982, 35.391, 49@, 56@, 63@, 12.5, 0.5)
42@ = Object.CreateNoOffset(#A51_SPOTBULB, 103.946, 1901.047, 36.246)
92@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 103.946, 1901.047, 36.246)
93@ = Object.CreateNoOffset(#A51_SPOTBASE, 103.946, 1901.047, 36.246)
Searchlight.AttachToObject(35@, 93@, 92@, 42@, 0.0, 1.181, 0.768)
Object.SetHealth(42@, 5000)
Object.SetOnlyDamagedByPlayer(42@, True)
136@ = Particle.CreateOnObject("SHOOTLIGHT", 42@, 0.0, 1.181, 0.768, 1)
36@ = Searchlight.Create(233.067, 1934.892, 33.139, 50@, 57@, 64@, 10.5, 0.5)
43@ = Object.CreateNoOffset(#A51_SPOTBULB, 161.962, 1933.043, 36.246)
94@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 161.962, 1933.043, 36.246)
95@ = Object.CreateNoOffset(#A51_SPOTBASE, 161.962, 1933.043, 36.246)
Searchlight.AttachToObject(36@, 95@, 94@, 43@, 0.0, 1.181, 0.768)
Object.SetHealth(43@, 5000)
Object.SetOnlyDamagedByPlayer(43@, True)
137@ = Particle.CreateOnObject("SHOOTLIGHT", 43@, 0.0, 1.181, 0.768, 1)
37@ = Searchlight.Create(266.713, 1894.979, 34.139, 51@, 58@, 65@, 10.5, 0.5)
44@ = Object.CreateNoOffset(#A51_SPOTBULB, 233.486, 1934.789, 36.246)
96@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 233.486, 1934.789, 36.246)
97@ = Object.CreateNoOffset(#A51_SPOTBASE, 233.486, 1934.789, 36.246)
Searchlight.AttachToObject(37@, 97@, 96@, 44@, 0.0, 1.181, 0.768)
Object.SetHealth(44@, 5000)
Object.SetOnlyDamagedByPlayer(44@, True)
138@ = Particle.CreateOnObject("SHOOTLIGHT", 44@, 0.0, 1.181, 0.768, 1)
38@ = Searchlight.Create(261.97, 1808.07, 34.05, 52@, 59@, 66@, 10.5, 0.5)
45@ = Object.CreateNoOffset(#A51_SPOTBULB, 267.116, 1895.241, 36.246)
98@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 267.116, 1895.241, 36.246)
99@ = Object.CreateNoOffset(#A51_SPOTBASE, 267.116, 1895.241, 36.246)
Searchlight.AttachToObject(38@, 99@, 98@, 45@, 0.0, 1.181, 0.768)
Object.SetHealth(45@, 5000)
Object.SetOnlyDamagedByPlayer(45@, True)
139@ = Particle.CreateOnObject("SHOOTLIGHT", 45@, 0.0, 1.181, 0.768, 1)
39@ = Searchlight.Create(164.228, 1837.892, 34.05, 53@, 60@, 67@, 10.5, 0.5)
46@ = Object.CreateNoOffset(#A51_SPOTBULB, 262.145, 1807.62, 36.246)
100@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 262.145, 1807.62, 36.246)
101@ = Object.CreateNoOffset(#A51_SPOTBASE, 262.145, 1807.62, 36.246)
Searchlight.AttachToObject(39@, 101@, 100@, 46@, 0.0, 1.181, 0.768)
Object.SetHealth(46@, 5000)
Object.SetOnlyDamagedByPlayer(46@, True)
140@ = Particle.CreateOnObject("SHOOTLIGHT", 46@, 0.0, 1.181, 0.768, 1)
40@ = Searchlight.Create(103.887, 1901.057, 35.723, 54@, 61@, 68@, 10.5, 0.5)
47@ = Object.CreateNoOffset(#A51_SPOTBULB, 166.003, 1849.937, 36.246)
102@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 166.003, 1849.937, 36.246)
103@ = Object.CreateNoOffset(#A51_SPOTBASE, 166.003, 1849.937, 36.246)
Searchlight.AttachToObject(40@, 103@, 102@, 47@, 0.0, 1.181, 0.768)
Object.SetHealth(47@, 5000)
Object.SetOnlyDamagedByPlayer(47@, True)
141@ = Particle.CreateOnObject("SHOOTLIGHT", 47@, 0.0, 1.181, 0.768, 1)
41@ = Searchlight.Create(261.97, 1808.07, 36.05, 55@, 62@, 69@, 10.5, 0.5)
48@ = Object.CreateNoOffset(#A51_SPOTBULB, 113.439, 1814.405, 36.246)
104@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 113.439, 1814.405, 36.246)
105@ = Object.CreateNoOffset(#A51_SPOTBASE, 113.439, 1814.405, 36.246)
Searchlight.AttachToObject(41@, 105@, 104@, 48@, 0.0, 1.181, 0.768)
Object.SetHealth(48@, 5000)
Object.SetOnlyDamagedByPlayer(48@, True)
142@ = Particle.CreateOnObject("SHOOTLIGHT", 48@, 0.0, 1.181, 0.768, 1)
gosub @MAF4_29696
178@ = 1
109@ = Char.Create(PedType.Mission1, 287, 112.39, 1931.193, 17.77)
Char.SetDecisionMaker(109@, 160@)
Char.GiveWeapon(109@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(109@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(114.51, 1914.793, 18.8, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(112.39, 1931.193, 18.77, "ROADCROSS", "PED")
Task.FollowPatrolRoute(109@, 4, RouteMode.Loop)
205@ = Blip.AddForChar(109@)
Blip.SetAlwaysDisplayOnZoomedRadar(205@, True)
Blip.ChangeDisplay(205@, BlipDisplay.BlipOnly)
Char.SetInformRespectedFriends(109@, 20.0, 1)
110@ = Char.Create(PedType.Mission1, 287, 125.135, 1916.59, 17.9)
Char.SetDecisionMaker(110@, 160@)
Char.GiveWeapon(110@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(110@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(124.716, 1890.25, 18.33, "NONE", "NONE")
Path.ExtendPatrolRoute(159.0, 1887.9, 19.5, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(161.32, 1914.42, 18.6, "NONE", "NONE")
Path.ExtendPatrolRoute(125.135, 1916.59, 18.9, "ROADCROSS", "PED")
Task.FollowPatrolRoute(110@, 4, RouteMode.Loop)
206@ = Blip.AddForChar(110@)
Blip.SetAlwaysDisplayOnZoomedRadar(206@, True)
Blip.ChangeDisplay(206@, BlipDisplay.BlipOnly)
Char.SetAccuracy(110@, 85)
Char.SetInformRespectedFriends(110@, 30.0, 1)
111@ = Char.Create(PedType.Mission1, 287, 131.37, 1821.139, 16.6)
Char.SetDecisionMaker(111@, 160@)
Char.GiveWeapon(111@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(111@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(130.62, 1855.297, 17.73, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(102.09, 1858.6, 17.7, "NONE", "NONE")
Path.ExtendPatrolRoute(102.94, 1839.78, 17.6, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(131.37, 1821.139, 17.6, "NONE", "NONE")
Task.FollowPatrolRoute(111@, 4, RouteMode.Loop)
207@ = Blip.AddForChar(111@)
Blip.SetAlwaysDisplayOnZoomedRadar(207@, True)
Blip.ChangeDisplay(207@, BlipDisplay.BlipOnly)
Char.SetAccuracy(111@, 80)
Char.SetInformRespectedFriends(111@, 30.0, 1)
112@ = Char.Create(PedType.Mission1, 287, 163.458, 1824.58, 17.64)
Char.SetHeading(112@, 180.123)
Char.SetDecisionMaker(112@, 160@)
Char.GiveWeapon(112@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(112@, 200.0)
208@ = Blip.AddForChar(112@)
Blip.SetAlwaysDisplayOnZoomedRadar(208@, True)
Blip.ChangeDisplay(208@, BlipDisplay.BlipOnly)
Char.SetAccuracy(112@, 85)
Char.SetInformRespectedFriends(112@, 30.0, 1)
113@ = Char.Create(PedType.Mission1, 287, 189.91, 1916.399, 16.64)
Char.SetDecisionMaker(113@, 160@)
Char.GiveWeapon(113@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(113@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(168.0187, 1916.279, 18.37, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(189.91, 1916.399, 17.64, "ROADCROSS", "PED")
Task.FollowPatrolRoute(113@, 4, RouteMode.Loop)
209@ = Blip.AddForChar(113@)
Blip.SetAlwaysDisplayOnZoomedRadar(209@, True)
Blip.ChangeDisplay(209@, BlipDisplay.BlipOnly)
Char.SetAccuracy(113@, 85)
Char.SetInformRespectedFriends(113@, 30.0, 1)
114@ = Char.Create(PedType.Mission1, 287, 191.535, 1809.588, 16.641)
Char.SetDecisionMaker(114@, 160@)
Char.GiveWeapon(114@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(114@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(131.24, 1811.194, 17.6, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(191.535, 1809.588, 17.641, "ROADCROSS", "PED")
Task.FollowPatrolRoute(114@, 4, RouteMode.Loop)
210@ = Blip.AddForChar(114@)
Blip.SetAlwaysDisplayOnZoomedRadar(210@, True)
Blip.ChangeDisplay(210@, BlipDisplay.BlipOnly)
Char.SetAccuracy(114@, 85)
Char.SetInformRespectedFriends(114@, 30.0, 1)
115@ = Char.Create(PedType.Mission1, 287, 195.36, 1872.92, 16.64)
Char.SetDecisionMaker(115@, 160@)
Char.GiveWeapon(115@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(115@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(231.095, 1872.9, 17.64, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(195.36, 1872.92, 17.64, "ROADCROSS", "PED")
Task.FollowPatrolRoute(115@, 4, RouteMode.Loop)
211@ = Blip.AddForChar(115@)
Blip.SetAlwaysDisplayOnZoomedRadar(211@, True)
Blip.ChangeDisplay(211@, BlipDisplay.BlipOnly)
Char.SetAccuracy(115@, 85)
Char.SetInformRespectedFriends(115@, 20.0, 1)
116@ = Char.Create(PedType.Mission1, 287, 108.673, 1886.18, 17.04)
Char.SetDecisionMaker(116@, 160@)
Char.GiveWeapon(116@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(116@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(107.065, 1865.8, 17.78, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(126.78, 1864.25, 17.8, "NONE", "NONE")
Path.ExtendPatrolRoute(127.842, 1885.04, 18.027, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(108.673, 1886.18, 18.04, "NONE", "NONE")
Task.FollowPatrolRoute(116@, 4, RouteMode.Loop)
212@ = Blip.AddForChar(116@)
Blip.SetAlwaysDisplayOnZoomedRadar(212@, True)
Blip.ChangeDisplay(212@, BlipDisplay.BlipOnly)
Char.SetAccuracy(116@, 85)
Char.SetInformRespectedFriends(116@, 30.0, 1)
117@ = Char.Create(PedType.Mission1, 287, 173.671, 1886.841, 19.9)
Char.SetDecisionMaker(117@, 160@)
Char.GiveWeapon(117@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(117@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(174.25, 1866.51, 20.7, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(173.671, 1886.841, 20.9, "ROADCROSS", "PED")
Task.FollowPatrolRoute(117@, 4, RouteMode.Loop)
213@ = Blip.AddForChar(117@)
Blip.SetAlwaysDisplayOnZoomedRadar(213@, True)
Blip.ChangeDisplay(213@, BlipDisplay.BlipOnly)
Char.SetAccuracy(117@, 85)
Char.SetInformRespectedFriends(117@, 30.0, 1)
118@ = Char.Create(PedType.Mission1, 287, 249.99, 1874.78, 19.6)
Char.SetDecisionMaker(118@, 160@)
Char.GiveWeapon(118@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(118@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(250.99, 1906.56, 20.6, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(249.99, 1874.78, 20.6, "ROADCROSS", "PED")
Task.FollowPatrolRoute(118@, 4, RouteMode.Loop)
214@ = Blip.AddForChar(118@)
Blip.SetAlwaysDisplayOnZoomedRadar(214@, True)
Blip.ChangeDisplay(214@, BlipDisplay.BlipOnly)
Char.SetAccuracy(118@, 85)
Char.SetInformRespectedFriends(118@, 30.0, 1)
119@ = Char.Create(PedType.Mission1, 287, 224.26, 1916.79, 16.64)
Char.SetDecisionMaker(119@, 160@)
Char.GiveWeapon(119@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(119@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(204.475, 1915.9, 17.64, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(204.628, 1904.521, 17.64, "NONE", "NONE")
Path.ExtendPatrolRoute(221.645, 1905.13, 17.64, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(224.26, 1916.79, 17.64, "NONE", "NONE")
Task.FollowPatrolRoute(119@, 4, RouteMode.Loop)
215@ = Blip.AddForChar(119@)
Blip.SetAlwaysDisplayOnZoomedRadar(215@, True)
Blip.ChangeDisplay(215@, BlipDisplay.BlipOnly)
Char.SetAccuracy(119@, 85)
Char.SetInformRespectedFriends(119@, 30.0, 1)
120@ = Char.Create(PedType.Mission1, 287, 209.07, 1833.63, 16.64)
Char.SetHeading(120@, 346.579)
Char.SetDecisionMaker(120@, 160@)
Char.GiveWeapon(120@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(120@, 200.0)
216@ = Blip.AddForChar(120@)
Blip.SetAlwaysDisplayOnZoomedRadar(216@, True)
Blip.ChangeDisplay(216@, BlipDisplay.BlipOnly)
Char.SetAccuracy(120@, 85)
Char.SetInformRespectedFriends(120@, 30.0, 1)
121@ = Char.Create(PedType.Mission1, 287, 268.027, 1862.269, 17.64)
Char.SetDecisionMaker(121@, 160@)
Char.GiveWeapon(121@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(121@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(266.9, 1822.3, 17.64, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(268.027, 1862.269, 17.64, "ROADCROSS", "PED")
Task.FollowPatrolRoute(121@, 4, RouteMode.Loop)
217@ = Blip.AddForChar(121@)
Blip.SetAlwaysDisplayOnZoomedRadar(217@, True)
Blip.ChangeDisplay(217@, BlipDisplay.BlipOnly)
Char.SetAccuracy(121@, 85)
Char.SetInformRespectedFriends(121@, 30.0, 1)
122@ = Char.Create(PedType.Mission1, 287, 221.16, 1858.28, 20.63)
Char.SetDecisionMaker(122@, 160@)
Char.GiveWeapon(122@, WeaponType.M4, 9999)
Char.SetAccuracy(122@, 90)
Char.SetFollowNodeThresholdDistance(122@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(198.711, 1857.64, 19.633, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(221.16, 1858.28, 20.63, "ROADCROSS", "PED")
Task.FollowPatrolRoute(122@, 4, RouteMode.Loop)
218@ = Blip.AddForChar(122@)
Blip.SetAlwaysDisplayOnZoomedRadar(218@, True)
Blip.ChangeDisplay(218@, BlipDisplay.BlipOnly)
Char.SetAccuracy(122@, 90)
Char.SetInformRespectedFriends(122@, 30.0, 1)
123@ = Char.Create(PedType.Mission1, 287, 218.45, 1820.78, 16.64)
Char.SetDecisionMaker(123@, 160@)
Char.GiveWeapon(123@, WeaponType.M4, 9999)
Char.SetAccuracy(123@, 90)
Char.SetFollowNodeThresholdDistance(123@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(250.31, 1821.924, 17.64, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(218.45, 1820.78, 17.64, "NONE", "NONE")
Task.FollowPatrolRoute(123@, 4, RouteMode.Loop)
219@ = Blip.AddForChar(123@)
Blip.SetAlwaysDisplayOnZoomedRadar(219@, True)
Blip.ChangeDisplay(219@, BlipDisplay.BlipOnly)
Char.SetAccuracy(123@, 80)
Char.SetInformRespectedFriends(123@, 30.0, 1)
Camera.DoFade(100, Fade.Out)

:MAF4_6744
if 
  Camera.GetFadingStatus
goto_if_false @MAF4_6768
wait 0
goto @MAF4_6744

:MAF4_6768
Camera.SetFixedPosition(312.659, 1806.521, 26.272, 0.0, 0.0, 0.0)
Camera.PointAtPoint(311.7959, 1807.022, 26.2183, SwitchType.JumpCut)
Streaming.LoadSceneInDirection(312.659, 1806.521, 26.272, 60.2)
Camera.DoFade(100, Fade.In)
Text.PrintNow('DST8_1', 7000, 1)
Char.SetCoordinates($scplayer, 69.91, 1916.007, 16.648)
Char.SetHeading($scplayer, 273.363)
TIMERA = 0

:MAF4_6900
if 
  7000 > TIMERA
goto_if_false @MAF4_6930
wait 0
goto @MAF4_6900

:MAF4_6930
Text.PrintNow('DST8_18', 8000, 1)
Camera.SetFixedPosition(232.5476, 1911.022, 34.7955, 0.0, 0.0, 0.0)
Camera.PointAtPoint(231.9904, 1910.261, 34.4617, SwitchType.JumpCut)
TIMERA = 0

:MAF4_7004
if 
  4000 > TIMERA
goto_if_false @MAF4_7034
wait 0
goto @MAF4_7004

:MAF4_7034
Camera.SetFixedPosition(183.9385, 1801.77, 29.0751, 0.0, 0.0, 0.0)
Camera.PointAtPoint(184.8011, 1802.215, 28.8356, SwitchType.JumpCut)
TIMERA = 0

:MAF4_7092
if 
  4000 > TIMERA
goto_if_false @MAF4_7122
wait 0
goto @MAF4_7092

:MAF4_7122
Camera.SetFixedPosition(120.4534, 1943.522, 29.8174, 0.0, 0.0, 0.0)
Camera.PointAtPoint(120.5729, 1942.533, 29.7278, SwitchType.JumpCut)
Text.PrintNow('DST8_19', 4000, 1)
Text.Print('DST8_47', 4000, 1)
Text.Print('DST8_48', 4000, 1)
TIMERA = 0

:MAF4_7228
if 
  12000 > TIMERA
goto_if_false @MAF4_7258
wait 0
goto @MAF4_7228

:MAF4_7258
124@ = Char.Create(PedType.Mission3, 287, 103.9055, 1900.535, 24.4985)
Char.SetDecisionMaker(124@, 159@)
Char.SetHeading(124@, 6.0802)
Char.GiveWeapon(124@, WeaponType.M4, 9999)
Task.StayInSamePlace(124@, True)
Char.SetHealth(124@, 10)
220@ = Blip.AddForChar(124@)
Blip.SetAlwaysDisplayOnZoomedRadar(220@, True)
Blip.ChangeDisplay(220@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(124@, 162@)
125@ = Char.Create(PedType.Mission3, 287, 113.3839, 1814.261, 24.4985)
Char.SetDecisionMaker(125@, 159@)
Char.SetHeading(125@, 5.0273)
Char.GiveWeapon(125@, WeaponType.M4, 9999)
Task.StayInSamePlace(125@, True)
Char.SetHealth(125@, 10)
221@ = Blip.AddForChar(125@)
Blip.SetAlwaysDisplayOnZoomedRadar(221@, True)
Blip.ChangeDisplay(221@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(125@, 162@)
126@ = Char.Create(PedType.Mission3, 287, 165.6023, 1850.07, 24.4985)
Char.SetDecisionMaker(126@, 159@)
Char.SetHeading(126@, 5.0273)
Char.GiveWeapon(126@, WeaponType.M4, 9999)
Task.StayInSamePlace(126@, True)
Char.SetHealth(126@, 10)
222@ = Blip.AddForChar(126@)
Blip.SetAlwaysDisplayOnZoomedRadar(222@, True)
Blip.ChangeDisplay(222@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(126@, 162@)
127@ = Char.Create(PedType.Mission3, 287, 261.8728, 1807.938, 24.4985)
Char.SetDecisionMaker(127@, 159@)
Char.SetHeading(127@, 5.0273)
Char.GiveWeapon(127@, WeaponType.M4, 9999)
Task.StayInSamePlace(127@, True)
Char.SetHealth(127@, 10)
223@ = Blip.AddForChar(127@)
Blip.SetAlwaysDisplayOnZoomedRadar(223@, True)
Blip.ChangeDisplay(223@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(127@, 162@)
128@ = Char.Create(PedType.Mission3, 287, 267.1389, 1895.485, 24.4985)
Char.SetDecisionMaker(128@, 159@)
Char.SetHeading(128@, 119.7683)
Char.GiveWeapon(128@, WeaponType.M4, 9999)
Task.StayInSamePlace(128@, True)
Char.SetHealth(128@, 10)
224@ = Blip.AddForChar(128@)
Blip.SetAlwaysDisplayOnZoomedRadar(224@, True)
Blip.ChangeDisplay(224@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(128@, 162@)
129@ = Char.Create(PedType.Mission3, 287, 161.9575, 1933.342, 24.4985)
Char.SetDecisionMaker(129@, 159@)
Char.SetHeading(129@, 119.7683)
Char.GiveWeapon(129@, WeaponType.M4, 9999)
Task.StayInSamePlace(129@, True)
Char.SetHealth(129@, 10)
225@ = Blip.AddForChar(129@)
Blip.SetAlwaysDisplayOnZoomedRadar(225@, True)
Blip.ChangeDisplay(225@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(129@, 162@)
130@ = Char.Create(PedType.Mission3, 287, 233.6724, 1934.623, 24.4985)
Char.SetDecisionMaker(130@, 159@)
Char.SetHeading(130@, 119.7683)
Char.GiveWeapon(130@, WeaponType.M4, 9999)
Task.StayInSamePlace(130@, True)
Char.SetHealth(130@, 10)
226@ = Blip.AddForChar(130@)
Blip.SetAlwaysDisplayOnZoomedRadar(226@, True)
Blip.ChangeDisplay(226@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(130@, 162@)
Camera.SetFixedPosition(113.0058, 1934.089, 18.245, 0.0, 0.0, 0.0)
Camera.PointAtPoint(113.0995, 1933.112, 18.4334, SwitchType.JumpCut)
Text.PrintNow('DST8_21', 5000, 1)
TIMERA = 0

:MAF4_8011
if 
  5000 > TIMERA
goto_if_false @MAF4_8041
wait 0
goto @MAF4_8011

:MAF4_8041
Camera.SetFixedPosition(112.0028, 1893.846, 19.5192, 0.0, 0.0, 0.0)
Camera.PointAtPoint(111.2033, 1894.447, 19.5192, SwitchType.JumpCut)
Camera.ResetNewScriptables
Camera.PersistPos(True)
Camera.SetVectorMove(112.0028, 1893.846, 19.5192, 112.0028, 1893.846, 35.5192, 6000, True)
Text.PrintNow('DST8_22', 6500, 1)
TIMERA = 0

:MAF4_8158
if 
  6500 > TIMERA
goto_if_false @MAF4_8188
wait 0
goto @MAF4_8158

:MAF4_8188
177@ = 1
Char.GiveWeapon($scplayer, WeaponType.Knife, 1)
Char.GiveWeapon($scplayer, WeaponType.PistolSilenced, 70)
Char.GiveWeapon($scplayer, WeaponType.Infrared, 1)
Char.GiveWeapon($scplayer, WeaponType.Sniper, 35)
176@ = 1

:MAF4_8238
skip_cutscene_end 
if 
  176@ == 0
goto_if_false @MAF4_13285
Camera.DoFade(250, Fade.Out)
Text.ClearPrints

:MAF4_8267
if 
  Camera.GetFadingStatus
goto_if_false @MAF4_8291
wait 0
goto @MAF4_8267

:MAF4_8291
if 
  not Car.IsDead(107@)
goto_if_false @MAF4_8328
if 
  Car.IsPlaybackGoingOn(107@)
goto_if_false @MAF4_8328
Car.StopPlayback(107@)

:MAF4_8328
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MAF4_8374
Char.WarpFromCarToCoord($scplayer, 69.91, 1916.007, 16.648)
Char.SetHeading($scplayer, 273.363)

:MAF4_8374
Char.SetCoordinates($scplayer, 69.91, 1916.007, 16.648)
Char.SetHeading($scplayer, 273.363)
Char.Delete(106@)
Car.Delete(107@)
Streaming.UnloadSpecialCharacter(1)
Streaming.MarkModelAsNoLongerNeeded(483)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Text.ClearPrints
if 
  177@ == 0
goto_if_false @MAF4_8494
Char.GiveWeapon($scplayer, WeaponType.Knife, 1)
Char.GiveWeapon($scplayer, WeaponType.PistolSilenced, 70)
Char.GiveWeapon($scplayer, WeaponType.Infrared, 1)
Char.GiveWeapon($scplayer, WeaponType.Sniper, 35)

:MAF4_8494
if 
  178@ == 0
goto_if_false @MAF4_9842
35@ = Searchlight.Create(161.513, 1932.982, 35.391, 49@, 56@, 63@, 12.5, 0.5)
42@ = Object.CreateNoOffset(#A51_SPOTBULB, 103.946, 1901.047, 36.246)
92@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 103.946, 1901.047, 36.246)
93@ = Object.CreateNoOffset(#A51_SPOTBASE, 103.946, 1901.047, 36.246)
Searchlight.AttachToObject(35@, 93@, 92@, 42@, 0.0, 1.181, 0.768)
Object.SetHealth(42@, 5000)
Object.SetOnlyDamagedByPlayer(42@, True)
136@ = Particle.CreateOnObject("SHOOTLIGHT", 42@, 0.0, 1.181, 0.768, 1)
36@ = Searchlight.Create(233.067, 1934.892, 33.139, 50@, 57@, 64@, 10.5, 0.5)
43@ = Object.CreateNoOffset(#A51_SPOTBULB, 161.962, 1933.043, 36.246)
94@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 161.962, 1933.043, 36.246)
95@ = Object.CreateNoOffset(#A51_SPOTBASE, 161.962, 1933.043, 36.246)
Searchlight.AttachToObject(36@, 95@, 94@, 43@, 0.0, 1.181, 0.768)
Object.SetHealth(43@, 5000)
Object.SetOnlyDamagedByPlayer(43@, True)
137@ = Particle.CreateOnObject("SHOOTLIGHT", 43@, 0.0, 1.181, 0.768, 1)
37@ = Searchlight.Create(266.713, 1894.979, 34.139, 51@, 58@, 65@, 10.5, 0.5)
44@ = Object.CreateNoOffset(#A51_SPOTBULB, 233.486, 1934.789, 36.246)
96@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 233.486, 1934.789, 36.246)
97@ = Object.CreateNoOffset(#A51_SPOTBASE, 233.486, 1934.789, 36.246)
Searchlight.AttachToObject(37@, 97@, 96@, 44@, 0.0, 1.181, 0.768)
Object.SetHealth(44@, 5000)
Object.SetOnlyDamagedByPlayer(44@, True)
138@ = Particle.CreateOnObject("SHOOTLIGHT", 44@, 0.0, 1.181, 0.768, 1)
38@ = Searchlight.Create(261.97, 1808.07, 34.05, 52@, 59@, 66@, 10.5, 0.5)
45@ = Object.CreateNoOffset(#A51_SPOTBULB, 267.116, 1895.241, 36.246)
98@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 267.116, 1895.241, 36.246)
99@ = Object.CreateNoOffset(#A51_SPOTBASE, 267.116, 1895.241, 36.246)
Searchlight.AttachToObject(38@, 99@, 98@, 45@, 0.0, 1.181, 0.768)
Object.SetHealth(45@, 5000)
Object.SetOnlyDamagedByPlayer(45@, True)
139@ = Particle.CreateOnObject("SHOOTLIGHT", 45@, 0.0, 1.181, 0.768, 1)
39@ = Searchlight.Create(164.228, 1837.892, 34.05, 53@, 60@, 67@, 10.5, 0.5)
46@ = Object.CreateNoOffset(#A51_SPOTBULB, 262.145, 1807.62, 36.246)
100@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 262.145, 1807.62, 36.246)
101@ = Object.CreateNoOffset(#A51_SPOTBASE, 262.145, 1807.62, 36.246)
Searchlight.AttachToObject(39@, 101@, 100@, 46@, 0.0, 1.181, 0.768)
Object.SetHealth(46@, 5000)
Object.SetOnlyDamagedByPlayer(46@, True)
140@ = Particle.CreateOnObject("SHOOTLIGHT", 46@, 0.0, 1.181, 0.768, 1)
40@ = Searchlight.Create(103.887, 1901.057, 35.723, 54@, 61@, 68@, 10.5, 0.5)
47@ = Object.CreateNoOffset(#A51_SPOTBULB, 166.003, 1849.937, 36.246)
102@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 166.003, 1849.937, 36.246)
103@ = Object.CreateNoOffset(#A51_SPOTBASE, 166.003, 1849.937, 36.246)
Searchlight.AttachToObject(40@, 103@, 102@, 47@, 0.0, 1.181, 0.768)
Object.SetHealth(47@, 5000)
Object.SetOnlyDamagedByPlayer(47@, True)
141@ = Particle.CreateOnObject("SHOOTLIGHT", 47@, 0.0, 1.181, 0.768, 1)
41@ = Searchlight.Create(261.97, 1808.07, 36.05, 55@, 62@, 69@, 10.5, 0.5)
48@ = Object.CreateNoOffset(#A51_SPOTBULB, 113.439, 1814.405, 36.246)
104@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 113.439, 1814.405, 36.246)
105@ = Object.CreateNoOffset(#A51_SPOTBASE, 113.439, 1814.405, 36.246)
Searchlight.AttachToObject(41@, 105@, 104@, 48@, 0.0, 1.181, 0.768)
Object.SetHealth(48@, 5000)
Object.SetOnlyDamagedByPlayer(48@, True)
142@ = Particle.CreateOnObject("SHOOTLIGHT", 48@, 0.0, 1.181, 0.768, 1)
gosub @MAF4_29696

:MAF4_9842
165@ = 0

:MAF4_9849
if 
  22 > 165@
goto_if_false @MAF4_9899
Char.Delete(109@(165@,22i))
Blip.Remove(205@(165@,22i))
165@ += 1
goto @MAF4_9849

:MAF4_9899
109@ = Char.Create(PedType.Mission1, 287, 112.39, 1931.193, 17.77)
Char.SetDecisionMaker(109@, 160@)
Char.GiveWeapon(109@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(109@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(114.51, 1914.793, 18.8, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(112.39, 1931.193, 18.77, "ROADCROSS", "PED")
Task.FollowPatrolRoute(109@, 4, RouteMode.Loop)
205@ = Blip.AddForChar(109@)
Blip.SetAlwaysDisplayOnZoomedRadar(205@, True)
Blip.ChangeDisplay(205@, BlipDisplay.BlipOnly)
Char.SetInformRespectedFriends(109@, 20.0, 1)
110@ = Char.Create(PedType.Mission1, 287, 125.135, 1916.59, 17.9)
Char.SetDecisionMaker(110@, 160@)
Char.GiveWeapon(110@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(110@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(124.716, 1890.25, 18.33, "NONE", "NONE")
Path.ExtendPatrolRoute(159.0, 1887.9, 19.5, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(161.32, 1914.42, 18.6, "NONE", "NONE")
Path.ExtendPatrolRoute(125.135, 1916.59, 18.9, "ROADCROSS", "PED")
Task.FollowPatrolRoute(110@, 4, RouteMode.Loop)
206@ = Blip.AddForChar(110@)
Blip.SetAlwaysDisplayOnZoomedRadar(206@, True)
Blip.ChangeDisplay(206@, BlipDisplay.BlipOnly)
Char.SetAccuracy(110@, 80)
Char.SetInformRespectedFriends(110@, 30.0, 1)
111@ = Char.Create(PedType.Mission1, 287, 131.37, 1821.139, 16.6)
Char.SetDecisionMaker(111@, 160@)
Char.GiveWeapon(111@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(111@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(130.62, 1855.297, 17.73, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(102.09, 1858.6, 17.7, "NONE", "NONE")
Path.ExtendPatrolRoute(102.94, 1839.78, 17.6, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(131.37, 1821.139, 17.6, "NONE", "NONE")
Task.FollowPatrolRoute(111@, 4, RouteMode.Loop)
207@ = Blip.AddForChar(111@)
Blip.SetAlwaysDisplayOnZoomedRadar(207@, True)
Blip.ChangeDisplay(207@, BlipDisplay.BlipOnly)
Char.SetAccuracy(111@, 80)
Char.SetInformRespectedFriends(111@, 30.0, 1)
112@ = Char.Create(PedType.Mission1, 287, 163.458, 1824.58, 17.64)
Char.SetHeading(112@, 180.123)
Char.SetDecisionMaker(112@, 160@)
Char.GiveWeapon(112@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(112@, 200.0)
208@ = Blip.AddForChar(112@)
Blip.SetAlwaysDisplayOnZoomedRadar(208@, True)
Blip.ChangeDisplay(208@, BlipDisplay.BlipOnly)
Char.SetAccuracy(112@, 85)
Char.SetInformRespectedFriends(112@, 30.0, 1)
113@ = Char.Create(PedType.Mission1, 287, 189.91, 1916.399, 16.64)
Char.SetDecisionMaker(113@, 160@)
Char.GiveWeapon(113@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(113@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(168.0187, 1916.279, 18.37, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(189.91, 1916.399, 17.64, "ROADCROSS", "PED")
Task.FollowPatrolRoute(113@, 4, RouteMode.Loop)
209@ = Blip.AddForChar(113@)
Blip.SetAlwaysDisplayOnZoomedRadar(209@, True)
Blip.ChangeDisplay(209@, BlipDisplay.BlipOnly)
Char.SetAccuracy(113@, 85)
Char.SetInformRespectedFriends(113@, 30.0, 1)
114@ = Char.Create(PedType.Mission1, 287, 191.535, 1809.588, 16.641)
Char.SetDecisionMaker(114@, 160@)
Char.GiveWeapon(114@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(114@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(131.24, 1811.194, 17.6, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(191.535, 1809.588, 17.641, "ROADCROSS", "PED")
Task.FollowPatrolRoute(114@, 4, RouteMode.Loop)
210@ = Blip.AddForChar(114@)
Blip.SetAlwaysDisplayOnZoomedRadar(210@, True)
Blip.ChangeDisplay(210@, BlipDisplay.BlipOnly)
Char.SetAccuracy(114@, 85)
Char.SetInformRespectedFriends(114@, 30.0, 1)
115@ = Char.Create(PedType.Mission1, 287, 195.36, 1872.92, 16.64)
Char.SetDecisionMaker(115@, 160@)
Char.GiveWeapon(115@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(115@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(231.095, 1872.9, 17.64, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(195.36, 1872.92, 17.64, "ROADCROSS", "PED")
Task.FollowPatrolRoute(115@, 4, RouteMode.Loop)
211@ = Blip.AddForChar(115@)
Blip.SetAlwaysDisplayOnZoomedRadar(211@, True)
Blip.ChangeDisplay(211@, BlipDisplay.BlipOnly)
Char.SetAccuracy(115@, 85)
Char.SetInformRespectedFriends(115@, 20.0, 1)
116@ = Char.Create(PedType.Mission1, 287, 108.673, 1886.18, 17.04)
Char.SetDecisionMaker(116@, 160@)
Char.GiveWeapon(116@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(116@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(107.065, 1865.8, 17.78, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(126.78, 1864.25, 17.8, "NONE", "NONE")
Path.ExtendPatrolRoute(127.842, 1885.04, 18.027, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(108.673, 1886.18, 18.04, "NONE", "NONE")
Task.FollowPatrolRoute(116@, 4, RouteMode.Loop)
212@ = Blip.AddForChar(116@)
Blip.SetAlwaysDisplayOnZoomedRadar(212@, True)
Blip.ChangeDisplay(212@, BlipDisplay.BlipOnly)
Char.SetAccuracy(116@, 85)
Char.SetInformRespectedFriends(116@, 30.0, 1)
117@ = Char.Create(PedType.Mission1, 287, 173.671, 1886.841, 19.9)
Char.SetDecisionMaker(117@, 160@)
Char.GiveWeapon(117@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(117@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(174.25, 1866.51, 20.7, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(173.671, 1886.841, 20.9, "ROADCROSS", "PED")
Task.FollowPatrolRoute(117@, 4, RouteMode.Loop)
213@ = Blip.AddForChar(117@)
Blip.SetAlwaysDisplayOnZoomedRadar(213@, True)
Blip.ChangeDisplay(213@, BlipDisplay.BlipOnly)
Char.SetAccuracy(117@, 85)
Char.SetInformRespectedFriends(117@, 30.0, 1)
118@ = Char.Create(PedType.Mission1, 287, 249.99, 1874.78, 19.6)
Char.SetDecisionMaker(118@, 160@)
Char.GiveWeapon(118@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(118@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(250.99, 1906.56, 20.6, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(249.99, 1874.78, 20.6, "ROADCROSS", "PED")
Task.FollowPatrolRoute(118@, 4, RouteMode.Loop)
214@ = Blip.AddForChar(118@)
Blip.SetAlwaysDisplayOnZoomedRadar(214@, True)
Blip.ChangeDisplay(214@, BlipDisplay.BlipOnly)
Char.SetAccuracy(118@, 85)
Char.SetInformRespectedFriends(118@, 30.0, 1)
119@ = Char.Create(PedType.Mission1, 287, 224.26, 1916.79, 16.64)
Char.SetDecisionMaker(119@, 160@)
Char.GiveWeapon(119@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(119@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(204.475, 1915.9, 17.64, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(204.628, 1904.521, 17.64, "NONE", "NONE")
Path.ExtendPatrolRoute(221.645, 1905.13, 17.64, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(224.26, 1916.79, 17.64, "NONE", "NONE")
Task.FollowPatrolRoute(119@, 4, RouteMode.Loop)
215@ = Blip.AddForChar(119@)
Blip.SetAlwaysDisplayOnZoomedRadar(215@, True)
Blip.ChangeDisplay(215@, BlipDisplay.BlipOnly)
Char.SetAccuracy(119@, 85)
Char.SetInformRespectedFriends(119@, 30.0, 1)
120@ = Char.Create(PedType.Mission1, 287, 209.07, 1833.63, 16.64)
Char.SetHeading(120@, 346.579)
Char.SetDecisionMaker(120@, 160@)
Char.GiveWeapon(120@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(120@, 200.0)
216@ = Blip.AddForChar(120@)
Blip.SetAlwaysDisplayOnZoomedRadar(216@, True)
Blip.ChangeDisplay(216@, BlipDisplay.BlipOnly)
Char.SetAccuracy(120@, 85)
Char.SetInformRespectedFriends(120@, 30.0, 1)
121@ = Char.Create(PedType.Mission1, 287, 268.027, 1862.269, 17.64)
Char.SetDecisionMaker(121@, 160@)
Char.GiveWeapon(121@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(121@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(266.9, 1822.3, 17.64, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(268.027, 1862.269, 17.64, "ROADCROSS", "PED")
Task.FollowPatrolRoute(121@, 4, RouteMode.Loop)
217@ = Blip.AddForChar(121@)
Blip.SetAlwaysDisplayOnZoomedRadar(217@, True)
Blip.ChangeDisplay(217@, BlipDisplay.BlipOnly)
Char.SetAccuracy(121@, 85)
Char.SetInformRespectedFriends(121@, 30.0, 1)
122@ = Char.Create(PedType.Mission1, 287, 221.16, 1858.28, 20.63)
Char.SetDecisionMaker(122@, 160@)
Char.GiveWeapon(122@, WeaponType.M4, 9999)
Char.SetAccuracy(122@, 90)
Char.SetFollowNodeThresholdDistance(122@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(198.711, 1857.64, 19.633, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(221.16, 1858.28, 20.63, "ROADCROSS", "PED")
Task.FollowPatrolRoute(122@, 4, RouteMode.Loop)
218@ = Blip.AddForChar(122@)
Blip.SetAlwaysDisplayOnZoomedRadar(218@, True)
Blip.ChangeDisplay(218@, BlipDisplay.BlipOnly)
Char.SetAccuracy(122@, 90)
Char.SetInformRespectedFriends(122@, 30.0, 1)
123@ = Char.Create(PedType.Mission1, 287, 218.45, 1820.78, 16.64)
Char.SetDecisionMaker(123@, 160@)
Char.GiveWeapon(123@, WeaponType.M4, 9999)
Char.SetAccuracy(123@, 90)
Char.SetFollowNodeThresholdDistance(123@, 200.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(250.31, 1821.924, 17.64, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(218.45, 1820.78, 17.64, "NONE", "NONE")
Task.FollowPatrolRoute(123@, 4, RouteMode.Loop)
219@ = Blip.AddForChar(123@)
Blip.SetAlwaysDisplayOnZoomedRadar(219@, True)
Blip.ChangeDisplay(219@, BlipDisplay.BlipOnly)
Char.SetAccuracy(123@, 80)
Char.SetInformRespectedFriends(123@, 30.0, 1)
124@ = Char.Create(PedType.Mission3, 287, 103.9055, 1900.535, 24.4985)
Char.SetDecisionMaker(124@, 159@)
Char.SetHeading(124@, 6.0802)
Char.GiveWeapon(124@, WeaponType.M4, 9999)
Task.StayInSamePlace(124@, True)
Char.SetHealth(124@, 10)
220@ = Blip.AddForChar(124@)
Blip.SetAlwaysDisplayOnZoomedRadar(220@, True)
Blip.ChangeDisplay(220@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(124@, 162@)
125@ = Char.Create(PedType.Mission3, 287, 113.3839, 1814.261, 24.4985)
Char.SetDecisionMaker(125@, 159@)
Char.SetHeading(125@, 5.0273)
Char.GiveWeapon(125@, WeaponType.M4, 9999)
Task.StayInSamePlace(125@, True)
Char.SetHealth(125@, 10)
221@ = Blip.AddForChar(125@)
Blip.SetAlwaysDisplayOnZoomedRadar(221@, True)
Blip.ChangeDisplay(221@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(125@, 162@)
126@ = Char.Create(PedType.Mission3, 287, 165.6023, 1850.07, 24.4985)
Char.SetDecisionMaker(126@, 159@)
Char.SetHeading(126@, 5.0273)
Char.GiveWeapon(126@, WeaponType.M4, 9999)
Task.StayInSamePlace(126@, True)
Char.SetHealth(126@, 10)
222@ = Blip.AddForChar(126@)
Blip.SetAlwaysDisplayOnZoomedRadar(222@, True)
Blip.ChangeDisplay(222@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(126@, 162@)
127@ = Char.Create(PedType.Mission3, 287, 261.8728, 1807.938, 24.4985)
Char.SetDecisionMaker(127@, 159@)
Char.SetHeading(127@, 5.0273)
Char.GiveWeapon(127@, WeaponType.M4, 9999)
Task.StayInSamePlace(127@, True)
Char.SetHealth(127@, 10)
223@ = Blip.AddForChar(127@)
Blip.SetAlwaysDisplayOnZoomedRadar(223@, True)
Blip.ChangeDisplay(223@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(127@, 162@)
128@ = Char.Create(PedType.Mission3, 287, 267.1389, 1895.485, 24.4985)
Char.SetDecisionMaker(128@, 159@)
Char.SetHeading(128@, 119.7683)
Char.GiveWeapon(128@, WeaponType.M4, 9999)
Task.StayInSamePlace(128@, True)
Char.SetHealth(128@, 10)
224@ = Blip.AddForChar(128@)
Blip.SetAlwaysDisplayOnZoomedRadar(224@, True)
Blip.ChangeDisplay(224@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(128@, 162@)
129@ = Char.Create(PedType.Mission3, 287, 161.9575, 1933.342, 24.4985)
Char.SetDecisionMaker(129@, 159@)
Char.SetHeading(129@, 119.7683)
Char.GiveWeapon(129@, WeaponType.M4, 9999)
Task.StayInSamePlace(129@, True)
Char.SetHealth(129@, 10)
225@ = Blip.AddForChar(129@)
Blip.SetAlwaysDisplayOnZoomedRadar(225@, True)
Blip.ChangeDisplay(225@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(129@, 162@)
130@ = Char.Create(PedType.Mission3, 287, 233.6724, 1934.623, 24.4985)
Char.SetDecisionMaker(130@, 159@)
Char.SetHeading(130@, 119.7683)
Char.GiveWeapon(130@, WeaponType.M4, 9999)
Task.StayInSamePlace(130@, True)
Char.SetHealth(130@, 10)
226@ = Blip.AddForChar(130@)
Blip.SetAlwaysDisplayOnZoomedRadar(226@, True)
Blip.ChangeDisplay(226@, BlipDisplay.BlipOnly)
Char.SetDecisionMaker(130@, 162@)
Streaming.LoadSceneInDirection(69.91, 1916.007, 16.648, 273.4)
Camera.DoFade(250, Fade.In)

:MAF4_13285
Char.ClearTasksImmediately($scplayer)
Clock.SetTimeOfDay(21, 30)
Text.ClearPrints
Camera.ResetNewScriptables
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Text.ClearPrints
if 
  not Car.IsDead(107@)
goto_if_false @MAF4_13354
if 
  Car.IsPlaybackGoingOn(107@)
goto_if_false @MAF4_13354
Car.StopPlayback(107@)

:MAF4_13354
Char.Delete(106@)
Car.Delete(107@)
Streaming.UnloadSpecialCharacter(1)
Streaming.MarkModelAsNoLongerNeeded(483)
227@ = Blip.AddForCoord(211.604, 1811.091, 20.8)
Text.PrintNow('DST8_38', 5000, 1)
Text.Print('DST8_7', 5000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 38441)
164@ = 5

:MAF4_13445
if 
  164@ == 5
goto_if_false @MAF4_19146
if 
  192@ == 0
goto_if_false @MAF4_13517
if 
  Char.IsCurrentWeapon($scplayer, WeaponType.Infrared)
goto_if_false @MAF4_13517
Text.PrintHelp('DST8_37')
192@ = 1

:MAF4_13517
if 
  195@ == 0
goto_if_false @MAF4_13710
134@, 135@ = Clock.GetTimeOfDay()
if 
  134@ == 5
goto_if_false @MAF4_13710
if 
  135@ > 29
goto_if_false @MAF4_13710
Camera.DoFade(500, Fade.Out)
193@ = 1

:MAF4_13593
if 
  Camera.GetFadingStatus
goto_if_false @MAF4_13617
wait 0
goto @MAF4_13593

:MAF4_13617
Char.SetCoordinates($scplayer, 296.348, 2474.277, 15.477)
Char.SetHeading($scplayer, 359.722)
Camera.SetBehindPlayer
Camera.DoFade(500, Fade.In)
Text.PrintNow('DST8_41', 5000, 1)

:MAF4_13672
if 
  Camera.GetFadingStatus
goto_if_false @MAF4_13696
wait 0
goto @MAF4_13672

:MAF4_13696
goto @MAF4_29929
195@ = 1

:MAF4_13710
if 
  193@ == 0
goto_if_false @MAF4_14039
if 
  194@ == 0
goto_if_false @MAF4_13807
if 
  not Char.IsInArea2D($scplayer, 52.5, 1952.11, 295.92, 1775.93, False)
goto_if_false @MAF4_13807
Text.PrintNow('DST8_39', 5000, 1)
194@ = 1

:MAF4_13807
if 
  194@ == 1
goto_if_false @MAF4_14039
if 
  Char.IsInArea2D($scplayer, 52.5, 1952.11, 295.92, 1775.93, False)
goto_if_false @MAF4_13877
194@ = 0
goto @MAF4_14039

:MAF4_13877
if 
  not Char.IsInArea2D($scplayer, 36.9, 1961.82, 319.56, 1760.29, False)
goto_if_false @MAF4_14039
Camera.DoFade(500, Fade.Out)

:MAF4_13922
if 
  Camera.GetFadingStatus
goto_if_false @MAF4_13946
wait 0
goto @MAF4_13922

:MAF4_13946
Char.SetCoordinates($scplayer, 296.348, 2474.277, 15.477)
Char.SetHeading($scplayer, 359.722)
Camera.SetBehindPlayer
Camera.DoFade(500, Fade.In)
Text.PrintNow('DST8_40', 5000, 1)

:MAF4_14001
if 
  Camera.GetFadingStatus
goto_if_false @MAF4_14025
wait 0
goto @MAF4_14001

:MAF4_14025
goto @MAF4_29929
194@ = 2

:MAF4_14039
if 
  3 > 175@
goto_if_false @MAF4_14882
if 
  2 > 175@
goto_if_false @MAF4_14875
if 
  182@ == 0
goto_if_false @MAF4_14148
if 
  Char.LocateStoppedOnFoot3D($scplayer, 211.604, 1811.091, 20.8, 3.0, 3.0, 3.0, True)
goto_if_false @MAF4_14148
182@ = 1

:MAF4_14148
if 
  182@ == 1
goto_if_false @MAF4_14875
if 
  179@ == 0
goto_if_false @MAF4_14259
Blip.Remove(227@)
227@ = Blip.AddForCoord(214.0, 1872.0, 12.14)
Text.PrintNow('DST8_8', 5000, 1)
TIMERB = 0
Audio.ReportMissionAudioEventAtPosition(213.85, 1874.68, 14.12, 1007)
179@ = 1

:MAF4_14259
if 
  179@ == 1
goto_if_false @MAF4_14423
if 
  180@ == 0
goto_if_false @MAF4_14350
if 
  Object.Slide($china_town_gate, 219.941, 1874.571, 13.903, 0.1, 0.0, 0.0, False)
goto_if_false @MAF4_14350
180@ = 1

:MAF4_14350
if 
  181@ == 0
goto_if_false @MAF4_14423
if 
  Object.Slide($frontdoorr_a51, 207.842, 1874.571, 13.903, 0.1, 0.0, 0.0, False)
goto_if_false @MAF4_14423
181@ = 1

:MAF4_14423
if 
  179@ == 1
goto_if_false @MAF4_14504
if 
  180@ == 1
goto_if_false @MAF4_14504
if 
  181@ == 1
goto_if_false @MAF4_14504
Audio.ReportMissionAudioEventAtPosition(213.85, 1874.68, 14.12, 1008)
179@ = 2

:MAF4_14504
if 
  179@ == 2
goto_if_false @MAF4_14568
if 
  TIMERB > 30000
goto_if_false @MAF4_14568
Audio.ReportMissionAudioEventAtPosition(213.85, 1874.68, 14.12, 1007)
179@ = 3

:MAF4_14568
if 
  179@ == 3
goto_if_false @MAF4_14732
if 
  180@ == 1
goto_if_false @MAF4_14659
if 
  Object.Slide($china_town_gate, 215.941, 1874.571, 13.903, 0.1, 0.0, 0.0, False)
goto_if_false @MAF4_14659
180@ = 0

:MAF4_14659
if 
  181@ == 1
goto_if_false @MAF4_14732
if 
  Object.Slide($frontdoorr_a51, 211.842, 1874.571, 13.903, 0.1, 0.0, 0.0, False)
goto_if_false @MAF4_14732
181@ = 0

:MAF4_14732
if 
  179@ == 3
goto_if_false @MAF4_14875
if 
  180@ == 0
goto_if_false @MAF4_14875
if 
  181@ == 0
goto_if_false @MAF4_14875
Audio.ReportMissionAudioEventAtPosition(213.85, 1874.68, 14.12, 1008)
Blip.Remove(227@)
227@ = Blip.AddForCoord(211.604, 1811.091, 20.8)
Text.PrintNow('DST8_9', 5000, 1)
179@ = 0
180@ = 0
180@ = 0
182@ = 0

:MAF4_14875
goto @MAF4_15028

:MAF4_14882
if 
  180@ == 5
goto_if_false @MAF4_14955
if 
  Object.Slide($china_town_gate, 215.941, 1874.571, 13.903, 0.1, 0.0, 0.0, False)
goto_if_false @MAF4_14955
180@ = 6

:MAF4_14955
if 
  181@ == 5
goto_if_false @MAF4_15028
if 
  Object.Slide($frontdoorr_a51, 211.842, 1874.571, 13.903, 0.1, 0.0, 0.0, False)
goto_if_false @MAF4_15028
181@ = 6

:MAF4_15028
if 
  191@ == 0
goto_if_false @MAF4_15171
if 
  Char.IsInArea3D($scplayer, 254.37, 1850.1, 21.7, 207.08, 1873.36, 10.0, False)
goto_if_false @MAF4_15171
165@ = 0

:MAF4_15101
if 
  7 > 165@
goto_if_false @MAF4_15164
if 
  Searchlight.DoesExist(35@(165@,7i))
goto_if_false @MAF4_15150
Searchlight.SwitchOnGround(35@(165@,7i), False)

:MAF4_15150
165@ += 1
goto @MAF4_15101

:MAF4_15164
191@ = 1

:MAF4_15171
if 
  191@ == 1
goto_if_false @MAF4_15314
if 
  not Char.IsInArea3D($scplayer, 254.37, 1850.1, 21.7, 207.08, 1873.36, 10.0, False)
goto_if_false @MAF4_15314
165@ = 0

:MAF4_15244
if 
  7 > 165@
goto_if_false @MAF4_15307
if 
  Searchlight.DoesExist(35@(165@,7i))
goto_if_false @MAF4_15293
Searchlight.SwitchOnGround(35@(165@,7i), True)

:MAF4_15293
165@ += 1
goto @MAF4_15244

:MAF4_15307
191@ = 0

:MAF4_15314
165@ = 0

:MAF4_15321
if 
  7 > 165@
goto_if_false @MAF4_15482
if 
  167@(165@,7i) == 0
goto_if_false @MAF4_15468
if 
  Object.DoesExist(42@(165@,7i))
goto_if_false @MAF4_15468
91@ = Object.GetHealth(42@(165@,7i))
if 
  5000 > 91@
goto_if_false @MAF4_15468
if 
  Searchlight.DoesExist(35@(165@,7i))
goto_if_false @MAF4_15468
Searchlight.Delete(35@(165@,7i))
Particle.PlayAndKill(136@(165@,7i))
174@ += 1
167@(165@,7i) = 1

:MAF4_15468
165@ += 1
goto @MAF4_15321

:MAF4_15482
if 
  175@ == 0
goto_if_false @MAF4_15624
165@ = 0

:MAF4_15507
if and
  7 > 165@
  175@ == 0
goto_if_false @MAF4_15624
if 
  Searchlight.DoesExist(35@(165@,7i))
goto_if_false @MAF4_15610
if 
  Searchlight.IsCharIn(35@(165@,7i), $scplayer)
goto_if_false @MAF4_15610
198@ = 1
199@ = 0
gosub @MAF4_29813
TIMERA = 0
175@ = 1

:MAF4_15610
165@ += 1
goto @MAF4_15507

:MAF4_15624
if 
  175@ == 1
goto_if_false @MAF4_15796
if 
  TIMERA > 10000
goto_if_false @MAF4_15796
165@ = 0
175@ = 0

:MAF4_15675
if 
  7 > 165@
goto_if_false @MAF4_15757
if 
  Searchlight.DoesExist(35@(165@,7i))
goto_if_false @MAF4_15743
if 
  Searchlight.IsCharIn(35@(165@,7i), $scplayer)
goto_if_false @MAF4_15743
175@ = 2

:MAF4_15743
165@ += 1
goto @MAF4_15675

:MAF4_15757
if 
  175@ == 0
goto_if_false @MAF4_15796
198@ = 2
201@ = 0
gosub @MAF4_29696

:MAF4_15796
if and
  174@ > 2
  2 > 175@
goto_if_false @MAF4_15828
175@ = 2

:MAF4_15828
if 
  175@ == 2
goto_if_false @MAF4_15991
Blip.Remove(227@)
198@ = 3
196@ = 0
227@ = Blip.AddForCoord(246.0, 1862.64, 19.89)
165@ = 15

:MAF4_15892
if 
  22 > 165@
goto_if_false @MAF4_15963
if 
  not Char.IsDead(109@(165@,22i))
goto_if_false @MAF4_15949
set_lvar_int_to_lvar_int 153@ = 109@(165@,22i)
gosub @MAF4_29891

:MAF4_15949
165@ += 1
goto @MAF4_15892

:MAF4_15963
gosub @MAF4_29813
180@ = 5
181@ = 5
175@ = 3

:MAF4_15991
165@ = 0

:MAF4_15998
if 
  22 > 165@
goto_if_false @MAF4_16088
if 
  Char.IsDead(109@(165@,22i))
goto_if_false @MAF4_16074
if 
  Blip.DoesExist(205@(165@,22i))
goto_if_false @MAF4_16074
Blip.Remove(205@(165@,22i))
Char.MarkAsNoLongerNeeded(109@(165@,22i))

:MAF4_16074
165@ += 1
goto @MAF4_15998

:MAF4_16088
if 
  175@ == 3
goto_if_false @MAF4_16187
if 
  Char.LocateAnyMeans2D($scplayer, 246.0, 1862.64, 5.0, 5.0, False)
goto_if_false @MAF4_16187
Text.PrintHelp('DST8_10')
Blip.Remove(227@)
227@ = Blip.AddForCoord(224.99, 1859.18, 12.31)
175@ = 4

:MAF4_16187
gosub @MAF4_29548
if 
  198@ == 1
goto_if_false @MAF4_16409
if 
  199@ == 0
goto_if_false @MAF4_16409
if 
  197@ == 0
goto_if_false @MAF4_16409
if 
  200@ > 1
goto_if_false @MAF4_16297
set_lvar_int_to_constant 156@ = 38403
set_lvar_text_label 157@s = 'DES8_BD'
gosub @MAF4_29506

:MAF4_16297
if 
  200@ == 1
goto_if_false @MAF4_16353
set_lvar_int_to_constant 156@ = 38401
set_lvar_text_label 157@s = 'DES8_BB'
gosub @MAF4_29506
200@ += 1

:MAF4_16353
if 
  200@ == 0
goto_if_false @MAF4_16409
set_lvar_int_to_constant 156@ = 38400
set_lvar_text_label 157@s = 'DES8_BA'
gosub @MAF4_29506
200@ += 1

:MAF4_16409
if 
  198@ == 2
goto_if_false @MAF4_16624
if 
  201@ == 0
goto_if_false @MAF4_16624
if 
  197@ == 0
goto_if_false @MAF4_16624
if 
  202@ > 1
goto_if_false @MAF4_16512
set_lvar_int_to_constant 156@ = 38406
set_lvar_text_label 157@s = 'DES8_CC'
gosub @MAF4_29506

:MAF4_16512
if 
  202@ == 1
goto_if_false @MAF4_16568
set_lvar_int_to_constant 156@ = 38405
set_lvar_text_label 157@s = 'DES8_CB'
gosub @MAF4_29506
202@ += 1

:MAF4_16568
if 
  202@ == 0
goto_if_false @MAF4_16624
set_lvar_int_to_constant 156@ = 38404
set_lvar_text_label 157@s = 'DES8_CA'
gosub @MAF4_29506
202@ += 1

:MAF4_16624
if 
  198@ == 3
goto_if_false @MAF4_16884
if 
  196@ == 0
goto_if_false @MAF4_16709
if 
  197@ == 0
goto_if_false @MAF4_16709
set_lvar_int_to_constant 156@ = 38410
set_lvar_text_label 157@s = 'DES8_DC'
gosub @MAF4_29506

:MAF4_16709
if 
  196@ == 1
goto_if_false @MAF4_16776
if 
  197@ == 0
goto_if_false @MAF4_16776
set_lvar_int_to_constant 156@ = 38416
set_lvar_text_label 157@s = 'DES8_EE'
gosub @MAF4_29506

:MAF4_16776
if 
  196@ == 2
goto_if_false @MAF4_16843
if 
  197@ == 0
goto_if_false @MAF4_16843
set_lvar_int_to_constant 156@ = 38415
set_lvar_text_label 157@s = 'DES8_ED'
gosub @MAF4_29506

:MAF4_16843
if 
  196@ == 3
goto_if_false @MAF4_16884
Text.PrintNow('DST8_14', 7000, 1)
196@ = 4

:MAF4_16884
if 
  183@ == 0
goto_if_false @MAF4_19146
if or
  Char.IsInArea3D($scplayer, 207.917, 1874.33, 10.0, 2224.917, 1868.78, 14.6, False)
  Char.LocateOnFoot3D($scplayer, 224.99, 1859.18, 12.31, 8.0, 8.0, 2.0, False)
  Char.IsInArea3D($scplayer, 201.99, 1874.7, 12.3, 225.47, 1851.43, 14.31, False)
  Char.LocateOnFoot3D($scplayer, 226.38, 1872.33, 12.93, 4.0, 4.0, 3.5, False)
goto_if_false @MAF4_19146
Camera.DoFade(250, Fade.Out)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints

:MAF4_17074
if 
  Camera.GetFadingStatus
goto_if_false @MAF4_17098
wait 0
goto @MAF4_17074

:MAF4_17098
Object.Delete($5176)
$5176 = Object.Create(#A51_VENTCOVERB, 245.968, 1862.843, 19.49)
Object.SetRotation($5176, 0.0, 0.0, -140.998)
Object.DontRemove($5176)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Streaming.MarkModelAsNoLongerNeeded(#A51_SPOTBULB)
Streaming.MarkModelAsNoLongerNeeded(#A51_SPOTHOUSING)
Streaming.MarkModelAsNoLongerNeeded(#A51_SPOTBASE)
Streaming.MarkModelAsNoLongerNeeded(483)
Streaming.UnloadSpecialCharacter(1)
Streaming.RemoveCarRecording(340)
Streaming.RemoveCarRecording(341)
Streaming.MarkModelAsNoLongerNeeded(335)
Streaming.MarkModelAsNoLongerNeeded(347)
Streaming.RequestModel(583)
Streaming.RequestModel(70)
Streaming.RequestModel(468)
Streaming.LoadAllModelsNow

:MAF4_17221
if or
  not Streaming.HasModelLoaded(583)
  not Streaming.HasModelLoaded(70)
  not Streaming.HasModelLoaded(468)
goto_if_false @MAF4_17257
wait 0
goto @MAF4_17221

:MAF4_17257
Text.ClearPrints
165@ = 0

:MAF4_17266
if 
  7 > 165@
goto_if_false @MAF4_17316
Searchlight.Delete(35@(165@,7i))
Object.Delete(42@(165@,7i))
165@ += 1
goto @MAF4_17266

:MAF4_17316
Object.Delete(92@)
Object.Delete(93@)
Object.Delete(94@)
Object.Delete(95@)
Object.Delete(96@)
Object.Delete(97@)
Object.Delete(98@)
Object.Delete(99@)
Object.Delete(100@)
Object.Delete(101@)
Object.Delete(102@)
Object.Delete(103@)
Object.Delete(104@)
Object.Delete(105@)
165@ = 0

:MAF4_17393
if 
  22 > 165@
goto_if_false @MAF4_17443
Char.Delete(109@(165@,22i))
Blip.Remove(205@(165@,22i))
165@ += 1
goto @MAF4_17393

:MAF4_17443
if 
  Char.LocateAnyMeans2D($scplayer, 225.0, 1859.0, 5.0, 5.0, False)
goto_if_false @MAF4_17518
Char.SetCoordinates($scplayer, 224.44, 1859.34, 12.14)
Char.SetHeading($scplayer, 6.82)
goto @MAF4_17548

:MAF4_17518
Char.SetCoordinates($scplayer, 214.14, 1872.388, 12.14)
Char.SetHeading($scplayer, 267.68)

:MAF4_17548
Object.Delete($china_town_gate)
Object.Delete($frontdoorr_a51)
$china_town_gate = Object.CreateNoOffset(#A51_BLASTDOORR, 215.941, 1874.571, 13.903)
Object.SetHeading($china_town_gate, 0.0)
$frontdoorr_a51 = Object.CreateNoOffset(#A51_BLASTDOORL, 211.842, 1874.571, 13.903)
Object.SetHeading($frontdoorr_a51, 0.0)
Object.DontRemove($china_town_gate)
Object.DontRemove($frontdoorr_a51)
Blip.Remove(227@)
110@ = Char.Create(PedType.Mission1, 287, 248.128, 1860.732, 8.76)
Char.SetHeading(110@, 266.82)
Char.SetDecisionMaker(110@, 160@)
Char.GiveWeapon(110@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(110@, 5.0)
206@ = Blip.AddForChar(110@)
Blip.ChangeDisplay(206@, BlipDisplay.BlipOnly)
Task.PlayAnim(110@, "ROADCROSS", "PED", 4.0, True, False, False, False, -1)
Blip.SetAlwaysDisplayOnZoomedRadar(206@, True)
111@ = Char.Create(PedType.Mission1, 287, 245.1791, 1879.571, 10.4609)
Char.SetHeading(111@, 266.1505)
Char.SetDecisionMaker(111@, 160@)
Char.GiveWeapon(111@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(111@, 5.0)
Char.SetAccuracy(111@, 80)
207@ = Blip.AddForChar(111@)
Blip.ChangeDisplay(207@, BlipDisplay.BlipOnly)
Task.PlayAnim(111@, "ROADCROSS", "PED", 4.0, True, False, False, False, -1)
Blip.SetAlwaysDisplayOnZoomedRadar(207@, True)
112@ = Char.Create(PedType.Mission1, 287, 245.1999, 1863.952, 7.5618)
Char.SetHeading(112@, 175.5655)
Char.SetDecisionMaker(112@, 160@)
Char.GiveWeapon(112@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(112@, 5.0)
208@ = Blip.AddForChar(112@)
Blip.ChangeDisplay(208@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(208@, True)
113@ = Char.Create(PedType.Mission1, 287, 261.9116, 1870.728, 7.7578)
Char.SetDecisionMaker(113@, 160@)
Char.SetHeading(113@, 186.0656)
Char.GiveWeapon(113@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(113@, 5.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(261.6897, 1860.464, 7.765, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(256.1913, 1859.627, 7.765, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(256.0048, 1870.207, 7.79, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(261.9116, 1870.728, 7.7578, "ROADCROSS", "PED")
Task.FollowPatrolRoute(113@, 4, RouteMode.Loop)
209@ = Blip.AddForChar(113@)
Blip.ChangeDisplay(209@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(209@, True)
132@ = Car.Create(583, 241.0877, 1843.951, 7.7578)
Car.SetHeading(132@, 268.7216)
114@ = Char.Create(PedType.Mission1, 287, 243.0288, 1846.451, 7.765)
Char.SetDecisionMaker(114@, 160@)
Char.SetHealth(114@, 10)
Char.SetHeading(114@, 270.7867)
Char.GiveWeapon(114@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(114@, 5.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(255.3062, 1846.276, 7.7734, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(243.0288, 1846.451, 7.765, "ROADCROSS", "PED")
Task.FollowPatrolRoute(114@, 4, RouteMode.Loop)
210@ = Blip.AddForChar(114@)
Blip.ChangeDisplay(210@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(210@, True)
228@ = Blip.AddForCoord(267.015, 1862.51, 7.76)
Blip.SetAlwaysDisplayOnZoomedRadar(228@, True)
Player.TakeOffGoggles($player1, False)
Streaming.LoadScene(248.83, 1827.63, 7.46)
Streaming.LoadSceneInDirection(282.28, 1814.04, 7.54, 326.0)
Camera.DoFade(500, Fade.In)
Hud.SetRadarZoom(100)
131@ = Char.Create(PedType.Mission1, 287, 248.925, 1832.315, 6.55)
Char.SetHeading(131@, 1.5)
Char.GiveWeapon(131@, WeaponType.M4, 9999)
Task.PlayAnim(131@, "ROADCROSS", "PED", 4.0, False, False, False, False, 1000)
skip_cutscene_start_internal @MAF4_19046
Camera.SetFixedPosition(278.6251, 1812.837, 4.8301, 0.0, 0.0, 0.0)
Camera.PointAtPoint(279.2745, 1813.558, 5.0711, SwitchType.JumpCut)
Text.PrintNow('DST8_42', 5000, 1)
TIMERA = 0

:MAF4_18654
if 
  5000 > TIMERA
goto_if_false @MAF4_18684
wait 0
goto @MAF4_18654

:MAF4_18684
Streaming.LoadSceneInDirection(255.93, 1838.05, 7.73, 142.0)
Camera.SetFixedPosition(252.5037, 1836.242, 8.5554, 0.0, 0.0, 0.0)
Camera.PointAtPoint(252.0391, 1835.363, 8.4453, SwitchType.JumpCut)
Text.PrintNow('DST8_43', 8000, 1)
TIMERA = 0

:MAF4_18780
if 
  4000 > TIMERA
goto_if_false @MAF4_18810
wait 0
goto @MAF4_18780

:MAF4_18810
Streaming.LoadScene(249.6, 1869.03, 11.0)
Camera.SetFixedPosition(262.0718, 1869.727, 13.162, 0.0, 0.0, 0.0)
Camera.PointAtPoint(261.4835, 1868.997, 12.8154, SwitchType.JumpCut)
TIMERA = 0

:MAF4_18885
if 
  4000 > TIMERA
goto_if_false @MAF4_18915
wait 0
goto @MAF4_18885

:MAF4_18915
Streaming.LoadSceneInDirection(223.75, 1822.57, 7.51, 68.0)
Camera.SetFixedPosition(217.0121, 1822.658, 6.4205, 0.0, 0.0, 0.0)
Camera.PointAtPoint(216.015, 1822.672, 6.4959, SwitchType.JumpCut)
Char.Delete(131@)
Text.PrintNow('DST8_44', 5000, 1)
TIMERA = 0

:MAF4_19016
if 
  5000 > TIMERA
goto_if_false @MAF4_19046
wait 0
goto @MAF4_19016

:MAF4_19046
skip_cutscene_end 
Char.Delete(131@)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Text.PrintNow('DST8_45', 5000, 1)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1005)
TIMERB = 0
203@ = 1
196@ = 0
197@ = 0
164@ = 6
183@ = 1

:MAF4_19146
if 
  183@ == 1
goto_if_false @MAF4_26705
if 
  203@ == 1
goto_if_false @MAF4_19208
if 
  TIMERB > 5000
goto_if_false @MAF4_19208
203@ = 2

:MAF4_19208
if 
  203@ == 2
goto_if_false @MAF4_20772
gosub @MAF4_29548
if 
  3 > 184@
goto_if_false @MAF4_20601
if 
  196@ == 0
goto_if_false @MAF4_19318
if 
  197@ == 0
goto_if_false @MAF4_19318
set_lvar_int_to_constant 156@ = 38419
set_lvar_text_label 157@s = 'DES8_FB'
gosub @MAF4_29506

:MAF4_19318
if 
  196@ == 1
goto_if_false @MAF4_19392
if 
  197@ == 0
goto_if_false @MAF4_19392
set_lvar_int_to_constant 156@ = 38420
set_lvar_text_label 157@s = 'DES8_FC'
gosub @MAF4_29506
TIMERB = 0

:MAF4_19392
if 
  TIMERB > 10000
goto_if_false @MAF4_19485
if 
  196@ == 2
goto_if_false @MAF4_19485
if 
  197@ == 0
goto_if_false @MAF4_19485
set_lvar_int_to_constant 156@ = 38424
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_19485
if 
  TIMERB > 7500
goto_if_false @MAF4_19578
if 
  196@ == 3
goto_if_false @MAF4_19578
if 
  197@ == 0
goto_if_false @MAF4_19578
set_lvar_int_to_constant 156@ = 38425
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_19578
if 
  TIMERB > 5500
goto_if_false @MAF4_19671
if 
  196@ == 4
goto_if_false @MAF4_19671
if 
  197@ == 0
goto_if_false @MAF4_19671
set_lvar_int_to_constant 156@ = 38430
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_19671
if 
  TIMERB > 8000
goto_if_false @MAF4_19764
if 
  196@ == 5
goto_if_false @MAF4_19764
if 
  197@ == 0
goto_if_false @MAF4_19764
set_lvar_int_to_constant 156@ = 38421
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_19764
if 
  TIMERB > 12000
goto_if_false @MAF4_19857
if 
  196@ == 6
goto_if_false @MAF4_19857
if 
  197@ == 0
goto_if_false @MAF4_19857
set_lvar_int_to_constant 156@ = 38431
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_19857
if 
  TIMERB > 12500
goto_if_false @MAF4_19950
if 
  196@ == 7
goto_if_false @MAF4_19950
if 
  197@ == 0
goto_if_false @MAF4_19950
set_lvar_int_to_constant 156@ = 38427
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_19950
if 
  TIMERB > 12000
goto_if_false @MAF4_20043
if 
  196@ == 8
goto_if_false @MAF4_20043
if 
  197@ == 0
goto_if_false @MAF4_20043
set_lvar_int_to_constant 156@ = 38423
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_20043
if 
  TIMERB > 25000
goto_if_false @MAF4_20136
if 
  196@ == 9
goto_if_false @MAF4_20136
if 
  197@ == 0
goto_if_false @MAF4_20136
set_lvar_int_to_constant 156@ = 38432
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_20136
if 
  TIMERB > 15000
goto_if_false @MAF4_20229
if 
  196@ == 10
goto_if_false @MAF4_20229
if 
  197@ == 0
goto_if_false @MAF4_20229
set_lvar_int_to_constant 156@ = 38433
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_20229
if 
  TIMERB > 20000
goto_if_false @MAF4_20322
if 
  196@ == 11
goto_if_false @MAF4_20322
if 
  197@ == 0
goto_if_false @MAF4_20322
set_lvar_int_to_constant 156@ = 38426
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_20322
if 
  TIMERB > 15000
goto_if_false @MAF4_20415
if 
  196@ == 12
goto_if_false @MAF4_20415
if 
  197@ == 0
goto_if_false @MAF4_20415
set_lvar_int_to_constant 156@ = 38434
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_20415
if 
  TIMERB > 10000
goto_if_false @MAF4_20508
if 
  196@ == 13
goto_if_false @MAF4_20508
if 
  197@ == 0
goto_if_false @MAF4_20508
set_lvar_int_to_constant 156@ = 38422
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_20508
if 
  TIMERB > 12000
goto_if_false @MAF4_20601
if 
  196@ == 14
goto_if_false @MAF4_20601
if 
  197@ == 0
goto_if_false @MAF4_20601
set_lvar_int_to_constant 156@ = 38428
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29506
TIMERB = 0

:MAF4_20601
if 
  187@ == 2
goto_if_false @MAF4_20772
if 
  196@ == 0
goto_if_false @MAF4_20705
if 
  TIMERB > 2000
goto_if_false @MAF4_20705
if 
  197@ == 0
goto_if_false @MAF4_20705
set_lvar_int_to_constant 156@ = 38435
set_lvar_text_label 157@s = 'DST8_34'
gosub @MAF4_29506

:MAF4_20705
if 
  196@ == 1
goto_if_false @MAF4_20772
if 
  197@ == 0
goto_if_false @MAF4_20772
set_lvar_int_to_constant 156@ = 38436
set_lvar_text_label 157@s = 'DES8_HB'
gosub @MAF4_29506

:MAF4_20772
if 
  184@ == 0
goto_if_false @MAF4_21934
if 
  Char.IsInArea3D($scplayer, 266.53, 1849.53, 8.0, 237.01, 1837.55, 10.52, False)
goto_if_false @MAF4_21934
115@ = Char.Create(PedType.Mission1, 287, 248.5208, 1806.681, 6.5619)
Char.SetDecisionMaker(115@, 160@)
Char.SetHeading(115@, 359.2584)
Char.GiveWeapon(115@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(115@, 5.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(248.8298, 1835.772, 6.5471, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(248.5208, 1809.681, 6.5619, "ROADCROSS", "PED")
Task.FollowPatrolRoute(115@, 4, RouteMode.Loop)
211@ = Blip.AddForChar(115@)
Blip.ChangeDisplay(211@, BlipDisplay.BlipOnly)
Char.SetAccuracy(115@, 80)
Blip.SetAlwaysDisplayOnZoomedRadar(211@, True)
116@ = Char.Create(PedType.Mission1, 287, 254.1943, 1835.365, 3.7175)
Char.SetHeading(116@, 271.2598)
Char.SetDecisionMaker(116@, 160@)
Char.GiveWeapon(116@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(116@, 5.0)
212@ = Blip.AddForChar(116@)
Blip.ChangeDisplay(212@, BlipDisplay.BlipOnly)
Task.PlayAnim(116@, "ROADCROSS", "PED", 4.0, True, False, False, False, 6000)
Blip.SetAlwaysDisplayOnZoomedRadar(212@, True)
Char.SetAccuracy(116@, 80)
117@ = Char.Create(PedType.Mission1, 287, 249.41, 1825.84, 4.7)
Char.SetDecisionMaker(117@, 160@)
Char.SetHeading(117@, 180.5658)
Char.GiveWeapon(117@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(117@, 5.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(249.63, 1816.64, 4.71, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(249.41, 1825.84, 4.7, "ROADCROSS", "PED")
Task.FollowPatrolRoute(117@, 4, RouteMode.Loop)
213@ = Blip.AddForChar(117@)
Blip.ChangeDisplay(213@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(213@, True)
118@ = Char.Create(PedType.Mission1, 287, 236.5669, 1813.103, 6.4213)
Char.SetDecisionMaker(118@, 160@)
Char.SetHeading(118@, 167.7513)
Char.GiveWeapon(118@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(118@, 5.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(236.0416, 1803.519, 6.4219, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(243.165, 1803.049, 6.4219, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(236.0416, 1803.519, 6.4219, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(236.5669, 1813.103, 6.4213, "ROADCROSS", "PED")
Task.FollowPatrolRoute(118@, 4, RouteMode.Loop)
214@ = Blip.AddForChar(118@)
Blip.ChangeDisplay(214@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(214@, True)
120@ = Char.Create(PedType.Mission1, 287, 284.416, 1816.59, 3.8)
Char.SetDecisionMaker(120@, 160@)
Char.SetHeading(120@, 83.92)
Char.GiveWeapon(120@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(120@, 5.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(265.829, 1816.31, 4.7, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(284.416, 1816.59, 4.72, "ROADCROSS", "PED")
Task.FollowPatrolRoute(120@, 4, RouteMode.Loop)
216@ = Blip.AddForChar(120@)
Blip.ChangeDisplay(216@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(216@, True)
121@ = Char.Create(PedType.Mission1, 70, 245.3671, 1830.29, 6.5547)
Char.SetHeading(121@, 178.5107)
Char.SetDecisionMaker(121@, 161@)
Char.SetHealth(121@, 10)
Task.PlayAnim(121@, "ATM", "PED", 4.0, True, False, False, False, -1)
122@ = Char.Create(PedType.Mission1, 70, 213.3669, 1825.511, 5.4141)
Char.SetHeading(122@, 67.6565)
Char.SetDecisionMaker(122@, 161@)
Char.SetHealth(122@, 10)
Task.PlayAnim(122@, "ATM", "PED", 4.0, True, False, False, False, -1)
123@ = Char.Create(PedType.Mission1, 70, 214.1768, 1818.739, 5.4216)
Char.SetHeading(123@, 113.5239)
Char.SetDecisionMaker(123@, 161@)
Char.SetHealth(123@, 10)
Task.PlayAnim(123@, "ATM", "PED", 4.0, True, False, False, False, -1)
184@ = 1

:MAF4_21934
if 
  184@ == 1
goto_if_false @MAF4_22819
if 
  Char.IsInArea3D($scplayer, 301.6813, 1821.801, 7.1396, 272.5243, 1826.948, 10.3607, False)
goto_if_false @MAF4_22819
124@ = Char.Create(PedType.Mission1, 287, 280.7216, 1840.162, 6.7266)
Char.SetDecisionMaker(124@, 160@)
Char.SetHeading(124@, 262.0249)
Char.GiveWeapon(124@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(124@, 5.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(292.8436, 1839.781, 6.7266, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(280.7216, 1840.162, 6.7266, "ROADCROSS", "PED")
Task.FollowPatrolRoute(124@, 4, RouteMode.Loop)
220@ = Blip.AddForChar(124@)
Blip.ChangeDisplay(220@, BlipDisplay.BlipOnly)
Char.SetAccuracy(124@, 80)
Blip.SetAlwaysDisplayOnZoomedRadar(220@, True)
125@ = Char.Create(PedType.Mission1, 287, 301.3004, 1839.902, 6.7266)
Char.SetDecisionMaker(125@, 160@)
Char.SetHeading(125@, 91.0904)
Char.GiveWeapon(125@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(125@, 5.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(328.527, 1839.673, 6.8281, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(301.3004, 1839.902, 6.7266, "ROADCROSS", "PED")
Task.FollowPatrolRoute(125@, 4, RouteMode.Loop)
221@ = Blip.AddForChar(125@)
Char.SetAccuracy(125@, 80)
Blip.ChangeDisplay(221@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(221@, True)
126@ = Char.Create(PedType.Mission1, 287, 329.3857, 1855.295, 6.8357)
Char.SetDecisionMaker(126@, 160@)
Char.SetHeading(126@, 272.6715)
Char.GiveWeapon(126@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(126@, 5.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(317.411, 1855.274, 6.7341, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(329.3857, 1855.295, 6.8357, "ROADCROSS", "PED")
Task.FollowPatrolRoute(126@, 4, RouteMode.Loop)
222@ = Blip.AddForChar(126@)
Blip.ChangeDisplay(222@, BlipDisplay.BlipOnly)
Char.SetAccuracy(126@, 80)
Blip.SetAlwaysDisplayOnZoomedRadar(222@, True)
127@ = Char.Create(PedType.Mission1, 287, 298.3582, 1856.054, 6.8281)
Char.SetDecisionMaker(127@, 160@)
Char.SetHeading(127@, 167.8933)
Char.GiveWeapon(127@, WeaponType.M4, 9999)
Char.SetFollowNodeThresholdDistance(127@, 5.0)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(297.3482, 1868.002, 7.7578, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(298.3582, 1856.054, 6.8281, "ROADCROSS", "PED")
Task.FollowPatrolRoute(127@, 4, RouteMode.Loop)
223@ = Blip.AddForChar(127@)
Blip.ChangeDisplay(223@, BlipDisplay.BlipOnly)
Char.SetAccuracy(127@, 80)
Blip.SetAlwaysDisplayOnZoomedRadar(223@, True)
128@ = Char.Create(PedType.Mission1, 287, 313.7065, 1845.551, 6.7341)
Char.SetHeading(128@, 2.8719)
Char.SetDecisionMaker(128@, 160@)
Char.GiveWeapon(128@, WeaponType.M4, 99999)
Char.SetFollowNodeThresholdDistance(128@, 5.0)
224@ = Blip.AddForChar(128@)
Blip.ChangeDisplay(224@, BlipDisplay.BlipOnly)
Char.SetAccuracy(128@, 80)
Blip.SetAlwaysDisplayOnZoomedRadar(224@, True)
143@ = Object.CreateNoOffset(#A51_LABDOOR, 268.66, 1864.059, 7.5)
Object.DontRemove(143@)
Object.SetProofs(143@, True, True, True, True, True)
184@ = 2

:MAF4_22819
if 
  185@ == 0
goto_if_false @MAF4_22947
if 
  Char.LocateStoppedOnFoot3D($scplayer, 212.93, 1822.82, 5.41, 1.0, 1.0, 3.0, True)
goto_if_false @MAF4_22947
TIMERA = 0
Player.SetControl($player1, False)
Char.SetHeading($scplayer, 92.24)
Task.PlayAnim($scplayer, "ATM", "PED", 8.0, False, False, False, False, 500)
185@ = 1

:MAF4_22947
if 
  185@ == 1
goto_if_false @MAF4_23023
if 
  TIMERA > 500
goto_if_false @MAF4_23023
Char.ClearTasks($scplayer)
Text.PrintNow('DES8_21', 4000, 1)
Game.SetArea51SamSite(False)
Player.SetControl($player1, True)
185@ = 2

:MAF4_23023
165@ = 0

:MAF4_23030
if 
  22 > 165@
goto_if_false @MAF4_23120
if 
  Char.IsDead(109@(165@,22i))
goto_if_false @MAF4_23106
if 
  Blip.DoesExist(205@(165@,22i))
goto_if_false @MAF4_23106
Blip.Remove(205@(165@,22i))
Char.MarkAsNoLongerNeeded(109@(165@,22i))

:MAF4_23106
165@ += 1
goto @MAF4_23030

:MAF4_23120
if 
  184@ == 2
goto_if_false @MAF4_23303
if 
  Char.LocateAnyMeans3D($scplayer, 287.0, 1870.0, 9.0, 6.0, 6.0, 6.0, False)
goto_if_false @MAF4_23303
Text.PrintNow('DST8_46', 5000, 1)
133@ = Char.Create(PedType.Mission1, 70, 276.57, 1854.53, 7.75)
Char.SetHeading(133@, 175.15)
Char.SetDecisionMaker(133@, 159@)
Char.SetHealth(133@, 10)
Task.StayInSamePlace(133@, True)
Task.PlayAnim(133@, "ATM", "PED", 8.0, True, False, False, False, 1000)
186@ = 1
184@ = 3

:MAF4_23303
if 
  186@ == 1
goto_if_false @MAF4_23593
if 
  not Char.IsDead(133@)
goto_if_false @MAF4_23538
if or
  Char.HasBeenDamagedByChar(133@, $scplayer)
  Player.IsTargetingChar($player1, 133@)
  Char.IsShootingInArea($scplayer, 282.25, 1852.36, 264.28, 1863.69, False)
  Char.IsInArea2D($scplayer, 282.25, 1852.36, 264.28, 1863.69, False)
goto_if_false @MAF4_23531
Task.HandsUp(133@, 20000)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @MAF4_23468
Audio.AttachMissionAudioToChar(MissionAudioSlot.Slot2, 133@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('DES8_AA', 2000, 1)

:MAF4_23468
145@ = Pickup.Create(#KEYCARD, PickupType.Once, 276.57, 1854.53, 8.75)
Char.SetDecisionMaker(133@, 161@)
229@ = Blip.AddForPickup(145@)
Text.Print('DST8_25', 5000, 1)
186@ = 2

:MAF4_23531
goto @MAF4_23593

:MAF4_23538
145@ = Pickup.Create(#KEYCARD, PickupType.Once, 276.57, 1854.53, 8.75)
229@ = Blip.AddForPickup(145@)
Text.PrintNow('DST8_25', 5000, 1)
186@ = 2

:MAF4_23593
if 
  186@ == 2
goto_if_false @MAF4_23695
if 
  Char.IsDead(133@)
goto_if_false @MAF4_23667
if 
  204@ == 0
goto_if_false @MAF4_23667
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('DST8_25')
204@ = 1

:MAF4_23667
if 
  Pickup.HasBeenCollected(145@)
goto_if_false @MAF4_23695
Blip.Remove(229@)
186@ = 3

:MAF4_23695
if 
  184@ == 3
goto_if_false @MAF4_23864
if 
  Char.LocateStoppedOnFoot3D($scplayer, 267.015, 1862.51, 7.76, 1.0, 1.0, 5.0, True)
goto_if_false @MAF4_23864
if 
  186@ == 3
goto_if_false @MAF4_23848
Char.SetHeading($scplayer, 6.3)
TIMERA = 0
Player.SetControl($player1, False)
Task.PlayAnim($scplayer, "ATM", "PED", 8.0, False, False, False, False, 500)
184@ = 4
goto @MAF4_23864

:MAF4_23848
Text.PrintNow('DST8_24', 5000, 1)

:MAF4_23864
if 
  184@ == 4
goto_if_false @MAF4_25098
if 
  Object.DoesExist(143@)
goto_if_false @MAF4_25098
if 
  TIMERA > 500
goto_if_false @MAF4_25098
187@ = 1
if 
  Object.DoesExist(143@)
goto_if_false @MAF4_23948
Audio.ReportMissionAudioEventAtObject(143@, 1035)

:MAF4_23948
Char.Delete(115@)
Char.Delete(118@)
Char.Delete(121@)
Char.Delete(122@)
Char.Delete(123@)
Char.Delete(110@)
Char.Delete(111@)
Char.Delete(112@)
Char.Delete(113@)
Char.Delete(114@)
Char.ClearTasks($scplayer)
Player.SetControl($player1, True)
115@ = Char.Create(PedType.Mission1, 287, 261.5664, 1891.85, 7.4446)
Char.SetDecisionMaker(115@, 159@)
Char.SetHeading(115@, 212.7731)
Char.GiveWeapon(115@, WeaponType.M4, 9999)
Task.StayInSamePlace(115@, True)
Char.SetHealth(115@, 150)
Char.SetAccuracy(115@, 80)
211@ = Blip.AddForChar(115@)
Blip.ChangeDisplay(211@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(211@, True)
set_lvar_int_to_lvar_int 153@ = 115@
gosub @MAF4_29891
118@ = Char.Create(PedType.Mission1, 287, 268.4905, 1890.074, 4.875)
Char.SetDecisionMaker(118@, 159@)
Char.SetHeading(118@, 176.3921)
Char.GiveWeapon(118@, WeaponType.M4, 9999)
Task.StayInSamePlace(118@, True)
Char.SetHealth(118@, 150)
Char.SetAccuracy(118@, 30)
214@ = Blip.AddForChar(118@)
Blip.ChangeDisplay(214@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(214@, True)
set_lvar_int_to_lvar_int 153@ = 118@
gosub @MAF4_29891
122@ = Char.Create(PedType.Mission1, 287, 274.3991, 1880.725, -1.3518)
Char.SetDecisionMaker(122@, 159@)
Char.SetHeading(122@, 65.8577)
Char.GiveWeapon(122@, WeaponType.M4, 9999)
Task.StayInSamePlace(122@, True)
Char.SetHealth(122@, 150)
Char.SetAccuracy(122@, 80)
218@ = Blip.AddForChar(122@)
Blip.ChangeDisplay(218@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(218@, True)
set_lvar_int_to_lvar_int 153@ = 122@
gosub @MAF4_29891
123@ = Char.Create(PedType.Mission1, 287, 268.9641, 1878.019, -4.5078)
Char.SetDecisionMaker(123@, 159@)
Char.SetHeading(123@, 352.3847)
Char.GiveWeapon(123@, WeaponType.M4, 9999)
Task.StayInSamePlace(123@, True)
Char.SetHealth(123@, 150)
Char.SetAccuracy(123@, 40)
219@ = Blip.AddForChar(123@)
Blip.ChangeDisplay(219@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(219@, True)
set_lvar_int_to_lvar_int 153@ = 123@
gosub @MAF4_29891
110@ = Char.Create(PedType.Mission1, 287, 262.9983, 1883.624, -9.2031)
Char.SetDecisionMaker(110@, 159@)
Char.SetHeading(110@, 259.5976)
Char.GiveWeapon(110@, WeaponType.M4, 9999)
Task.StayInSamePlace(110@, True)
Char.SetHealth(110@, 100)
Char.SetAccuracy(110@, 80)
206@ = Blip.AddForChar(110@)
Blip.ChangeDisplay(206@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(206@, True)
set_lvar_int_to_lvar_int 153@ = 110@
gosub @MAF4_29891
111@ = Char.Create(PedType.Mission1, 287, 268.0892, 1889.709, -13.8984)
Char.SetDecisionMaker(111@, 159@)
Char.SetHeading(111@, 197.1955)
Char.GiveWeapon(111@, WeaponType.M4, 9999)
Task.StayInSamePlace(111@, True)
Char.SetHealth(111@, 150)
Char.SetAccuracy(111@, 25)
207@ = Blip.AddForChar(111@)
Blip.ChangeDisplay(207@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(207@, True)
set_lvar_int_to_lvar_int 153@ = 111@
gosub @MAF4_29891
112@ = Char.Create(PedType.Mission1, 287, 274.8945, 1884.525, -18.5859)
Char.SetDecisionMaker(112@, 159@)
Char.SetHeading(112@, 117.7696)
Char.GiveWeapon(112@, WeaponType.M4, 9999)
Task.StayInSamePlace(112@, True)
Char.SetHealth(112@, 120)
Char.SetAccuracy(112@, 80)
208@ = Blip.AddForChar(112@)
Blip.ChangeDisplay(208@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(208@, True)
set_lvar_int_to_lvar_int 153@ = 112@
gosub @MAF4_29891
113@ = Char.Create(PedType.Mission1, 287, 270.4637, 1878.031, -22.7266)
Char.SetDecisionMaker(113@, 159@)
Char.SetHeading(113@, 117.7696)
Char.GiveWeapon(113@, WeaponType.M4, 9999)
Task.StayInSamePlace(113@, True)
Char.SetHealth(113@, 150)
Char.SetAccuracy(113@, 85)
209@ = Blip.AddForChar(113@)
Blip.ChangeDisplay(209@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(209@, True)
set_lvar_int_to_lvar_int 153@ = 113@
gosub @MAF4_29891
114@ = Char.Create(PedType.Mission1, 287, 262.6877, 1883.484, -27.9766)
Char.SetDecisionMaker(114@, 159@)
Char.SetHeading(114@, 117.7696)
Char.GiveWeapon(114@, WeaponType.M4, 9999)
Task.StayInSamePlace(114@, True)
Char.SetHealth(114@, 150)
Char.SetAccuracy(114@, 80)
210@ = Blip.AddForChar(114@)
Blip.ChangeDisplay(210@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(210@, True)
set_lvar_int_to_lvar_int 153@ = 114@
gosub @MAF4_29891
Car.MarkAsNoLongerNeeded(132@)
Streaming.MarkModelAsNoLongerNeeded(583)
144@ = Pickup.CreateWithAmmo(370, PickupType.Once, 0, 268.7, 1884.1, -30.085)
Blip.Remove(228@)
228@ = Blip.AddForPickup(144@)
Blip.SetAlwaysDisplayOnZoomedRadar(228@, True)
Text.ClearPrints
Text.PrintNow('DST8_34', 5000, 1)
184@ = 5

:MAF4_25098
if 
  187@ == 1
goto_if_false @MAF4_25216
if 
  Object.DoesExist(143@)
goto_if_false @MAF4_25216
if 
  Object.Slide(143@, 268.66, 1864.059, 12.2, 0.0, 0.0, 0.08, False)
goto_if_false @MAF4_25216
Audio.ReportMissionAudioEventAtObject(143@, 1036)
196@ = 0
197@ = 0
TIMERB = 0
187@ = 2

:MAF4_25216
if 
  184@ == 5
goto_if_false @MAF4_26127
if 
  Pickup.HasBeenCollected(144@)
goto_if_false @MAF4_26127
Blip.Remove(228@)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Clock.SetTimeOfDay(9, 0)
Char.SetCoordinates($scplayer, 268.591, 1884.469, -31.0869)
Char.SetHeading($scplayer, 180.99)
Task.Jetpack($scplayer)
Camera.SetFixedPosition(268.5177, 1886.297, -29.5611, 0.0, 0.0, 0.0)
Camera.PointAtPoint(268.5393, 1885.316, -29.7523, SwitchType.JumpCut)
Camera.SetInterpolationParameters(0.0, 3000)
Streaming.RequestModel(352)
Streaming.RequestModel(483)
Streaming.LoadSpecialCharacter(1, 'TRUTH')
Text.PrintNow('DST8_26', 7000, 1)

:MAF4_25407
if or
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(483)
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @MAF4_25443
wait 0
goto @MAF4_25407

:MAF4_25443
Car.Delete(132@)
Streaming.MarkModelAsNoLongerNeeded(583)
165@ = 0

:MAF4_25460
if 
  22 > 165@
goto_if_false @MAF4_25510
Char.Delete(109@(165@,22i))
Blip.Remove(205@(165@,22i))
165@ += 1
goto @MAF4_25460

:MAF4_25510
112@ = Char.Create(PedType.Mission1, 287, 139.9523, 1929.079, 18.2062)
Char.SetDecisionMaker(112@, 159@)
Char.GiveWeapon(112@, WeaponType.M4, 9999)
Task.StayInSamePlace(112@, True)
Char.SetHealth(112@, 50)
Char.SetAccuracy(112@, 30)
113@ = Char.Create(PedType.Mission1, 287, 127.6658, 1885.153, 17.0346)
Char.SetDecisionMaker(113@, 159@)
Char.GiveWeapon(113@, WeaponType.M4, 9999)
Task.StayInSamePlace(113@, True)
Char.SetHealth(113@, 50)
Char.SetAccuracy(113@, 30)
114@ = Char.Create(PedType.Mission1, 287, 114.7912, 1830.386, 16.6406)
Char.SetDecisionMaker(114@, 159@)
Char.GiveWeapon(114@, WeaponType.M4, 9999)
Task.StayInSamePlace(114@, True)
Char.SetHealth(114@, 50)
Char.SetAccuracy(114@, 40)
115@ = Char.Create(PedType.Mission1, 287, 205.6079, 1860.557, 19.6406)
Char.SetDecisionMaker(115@, 159@)
Char.GiveWeapon(115@, WeaponType.M4, 9999)
Task.StayInSamePlace(115@, True)
Char.SetHealth(115@, 50)
Char.SetAccuracy(115@, 30)
116@ = Char.Create(PedType.Mission1, 287, 245.2025, 1881.998, 19.1052)
Char.SetDecisionMaker(116@, 159@)
Char.GiveWeapon(116@, WeaponType.M4, 9999)
Task.StayInSamePlace(116@, True)
Char.SetHealth(116@, 50)
Char.SetAccuracy(116@, 40)
117@ = Char.Create(PedType.Mission1, 287, 262.8257, 1807.669, 24.4985)
Char.SetDecisionMaker(117@, 159@)
Char.GiveWeapon(117@, WeaponType.M4, 9999)
Task.StayInSamePlace(117@, True)
Char.SetHealth(117@, 50)
Char.SetAccuracy(117@, 30)
118@ = Char.Create(PedType.Mission1, 287, 279.2588, 1863.757, 16.6406)
Char.SetDecisionMaker(118@, 159@)
Char.GiveWeapon(118@, WeaponType.M4, 9999)
Task.StayInSamePlace(118@, True)
Char.SetHealth(118@, 50)
Char.SetAccuracy(118@, 30)
119@ = Char.Create(PedType.Mission1, 287, 279.2344, 1901.905, 16.6406)
Char.SetDecisionMaker(119@, 159@)
Char.GiveWeapon(119@, WeaponType.M4, 9999)
Task.StayInSamePlace(119@, True)
Char.SetHealth(119@, 50)
Char.SetAccuracy(119@, 40)
120@ = Char.Create(PedType.Mission1, 287, 254.6844, 1907.714, 19.4742)
Char.SetDecisionMaker(120@, 159@)
Char.GiveWeapon(120@, WeaponType.M4, 9999)
Task.StayInSamePlace(120@, True)
Char.SetHealth(120@, 50)
Char.SetAccuracy(120@, 30)
Object.Delete(143@)
143@ = Object.CreateNoOffset(#A51_LABDOOR, 268.66, 1864.059, 7.5)
TIMERA = 0
184@ = 6

:MAF4_26127
if 
  189@ == 1
goto_if_false @MAF4_26216
if 
  Object.DoesExist($trapdoor_a51)
goto_if_false @MAF4_26216
if 
  Object.Slide($trapdoor_a51, 276.14, 1884.06, 15.924, 0.05, 0.0, 0.0, False)
goto_if_false @MAF4_26216
189@ = 2

:MAF4_26216
if 
  184@ == 6
goto_if_false @MAF4_26293
if 
  TIMERA > 1000
goto_if_false @MAF4_26293
Camera.PointAtPoint(268.5247, 1886.084, -28.5841, SwitchType.Interpolation)
189@ = 1
TIMERA = 0
184@ = 7

:MAF4_26293
if 
  184@ == 7
goto_if_false @MAF4_26705
if 
  TIMERA > 4000
goto_if_false @MAF4_26705
Weather.ForceNow(WeatherType.SunnyDesert)
Char.GiveWeapon($scplayer, WeaponType.MicroUzi, 200)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Object.SetCoordinates($trapdoor_a51, 276.14, 1884.06, 15.924)
Pad.SetPlayerEnterCarButton($player1, False)
Text.ClearPrints
Blip.Remove(228@)
Hud.SetRadarZoom(0)
228@ = Blip.AddForCoord(268.9, 1884.33, 19.91)
109@ = Char.Create(PedType.Mission1, 287, 271.62, 1878.08, -2.32)
Char.SetDecisionMaker(109@, 159@)
Char.SetHeading(109@, 212.7731)
Char.GiveWeapon(109@, WeaponType.M4, 9999)
Task.StayInSamePlace(109@, True)
Char.SetHealth(109@, 50)
Char.SetAccuracy(109@, 30)
set_lvar_int_to_lvar_int 153@ = 109@
gosub @MAF4_29891
110@ = Char.Create(PedType.Mission1, 287, 266.112, 1876.84, 7.44)
Char.SetDecisionMaker(110@, 159@)
Char.SetHeading(110@, 328.04)
Char.GiveWeapon(110@, WeaponType.M4, 9999)
Task.StayInSamePlace(110@, True)
Char.SetHealth(110@, 50)
Char.SetAccuracy(110@, 30)
set_lvar_int_to_lvar_int 153@ = 110@
gosub @MAF4_29891
111@ = Char.Create(PedType.Mission1, 287, 274.432, 1888.28, 3.21)
Char.SetDecisionMaker(111@, 159@)
Char.SetHeading(111@, 328.0)
Char.GiveWeapon(111@, WeaponType.M4, 9999)
Task.StayInSamePlace(111@, True)
Char.SetHealth(111@, 50)
Char.SetAccuracy(111@, 30)
set_lvar_int_to_lvar_int 153@ = 111@
gosub @MAF4_29891
183@ = 2
188@ = 1
184@ = 8

:MAF4_26705
if 
  183@ == 2
goto_if_false @MAF4_29499
if 
  187@ == 3
goto_if_false @MAF4_26949
gosub @MAF4_29548
if 
  196@ == 0
goto_if_false @MAF4_26815
if 
  197@ == 0
goto_if_false @MAF4_26815
set_lvar_int_to_constant 156@ = 38437
set_lvar_text_label 157@s = 'DST8_35'
gosub @MAF4_29506

:MAF4_26815
if 
  196@ == 1
goto_if_false @MAF4_26882
if 
  197@ == 0
goto_if_false @MAF4_26882
set_lvar_int_to_constant 156@ = 38438
set_lvar_text_label 157@s = 'DES8_JB'
gosub @MAF4_29506

:MAF4_26882
if 
  196@ == 2
goto_if_false @MAF4_26949
if 
  197@ == 0
goto_if_false @MAF4_26949
set_lvar_int_to_constant 156@ = 38439
set_lvar_text_label 157@s = 'DES8_JC'
gosub @MAF4_29506

:MAF4_26949
if 
  8 > 188@
goto_if_false @MAF4_27382
if 
  188@ == 1
goto_if_false @MAF4_27010
Text.PrintHelp('DST8_27')
TIMERB = 0
188@ = 2

:MAF4_27010
if 
  188@ == 2
goto_if_false @MAF4_27072
if 
  TIMERB > 6000
goto_if_false @MAF4_27072
Text.PrintHelp('DST8_28')
TIMERB = 0
188@ = 3

:MAF4_27072
if 
  188@ == 3
goto_if_false @MAF4_27134
if 
  TIMERB > 6000
goto_if_false @MAF4_27134
Text.PrintHelp('DST8_29')
TIMERB = 0
188@ = 4

:MAF4_27134
if 
  188@ == 4
goto_if_false @MAF4_27196
if 
  TIMERB > 6000
goto_if_false @MAF4_27196
Text.PrintHelp('DST8_30')
TIMERB = 0
188@ = 5

:MAF4_27196
if 
  188@ == 5
goto_if_false @MAF4_27258
if 
  TIMERB > 6000
goto_if_false @MAF4_27258
Text.PrintHelp('DST8_31')
TIMERB = 0
188@ = 6

:MAF4_27258
if 
  188@ == 6
goto_if_false @MAF4_27320
if 
  TIMERB > 6000
goto_if_false @MAF4_27320
Text.PrintHelp('DST8_32')
TIMERB = 0
188@ = 7

:MAF4_27320
if 
  188@ == 7
goto_if_false @MAF4_27382
if 
  TIMERB > 6000
goto_if_false @MAF4_27382
Text.PrintHelp('DST8_33')
TIMERB = 0
188@ = 8

:MAF4_27382
if 
  184@ == 8
goto_if_false @MAF4_28337
if 
  Char.LocateAnyMeans3D($scplayer, 268.73, 1883.96, 17.85, 30.0, 30.0, 10.0, False)
goto_if_false @MAF4_28337
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1006)
187@ = 3
196@ = 0
197@ = 0
Audio.ReportMissionAudioEventAtPosition(268.73, 1883.96, 17.85, 1005)
42@ = Object.CreateNoOffset(#A51_SPOTBULB, 103.946, 1901.047, 36.246)
92@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 103.946, 1901.047, 36.246)
93@ = Object.CreateNoOffset(#A51_SPOTBASE, 103.946, 1901.047, 36.246)
Object.SetHealth(42@, 5000)
Object.SetOnlyDamagedByPlayer(42@, True)
43@ = Object.CreateNoOffset(#A51_SPOTBULB, 161.962, 1933.043, 36.246)
94@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 161.962, 1933.043, 36.246)
95@ = Object.CreateNoOffset(#A51_SPOTBASE, 161.962, 1933.043, 36.246)
Object.SetHealth(43@, 5000)
Object.SetOnlyDamagedByPlayer(43@, True)
44@ = Object.CreateNoOffset(#A51_SPOTBULB, 233.486, 1934.789, 36.246)
96@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 233.486, 1934.789, 36.246)
97@ = Object.CreateNoOffset(#A51_SPOTBASE, 233.486, 1934.789, 36.246)
Object.SetHealth(44@, 5000)
Object.SetOnlyDamagedByPlayer(44@, True)
45@ = Object.CreateNoOffset(#A51_SPOTBULB, 267.116, 1895.241, 36.246)
98@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 267.116, 1895.241, 36.246)
99@ = Object.CreateNoOffset(#A51_SPOTBASE, 267.116, 1895.241, 36.246)
Object.SetHealth(45@, 5000)
Object.SetOnlyDamagedByPlayer(45@, True)
46@ = Object.CreateNoOffset(#A51_SPOTBULB, 262.145, 1807.62, 36.246)
100@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 262.145, 1807.62, 36.246)
101@ = Object.CreateNoOffset(#A51_SPOTBASE, 262.145, 1807.62, 36.246)
Object.SetHealth(46@, 5000)
Object.SetOnlyDamagedByPlayer(46@, True)
47@ = Object.CreateNoOffset(#A51_SPOTBULB, 166.003, 1849.937, 36.246)
102@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 166.003, 1849.937, 36.246)
103@ = Object.CreateNoOffset(#A51_SPOTBASE, 166.003, 1849.937, 36.246)
Object.SetHealth(47@, 5000)
Object.SetOnlyDamagedByPlayer(47@, True)
48@ = Object.CreateNoOffset(#A51_SPOTBULB, 113.439, 1814.405, 36.246)
104@ = Object.CreateNoOffset(#A51_SPOTHOUSING, 113.439, 1814.405, 36.246)
105@ = Object.CreateNoOffset(#A51_SPOTBASE, 113.439, 1814.405, 36.246)
Object.SetHealth(48@, 5000)
Object.SetOnlyDamagedByPlayer(48@, True)
165@ = 0

:MAF4_28104
if 
  22 > 165@
goto_if_false @MAF4_28168
if 
  not Char.IsDead(109@(165@,22i))
goto_if_false @MAF4_28154
Task.KillCharOnFoot(109@(165@,22i), $scplayer)

:MAF4_28154
165@ += 1
goto @MAF4_28104

:MAF4_28168
Blip.Remove(228@)
228@ = Blip.AddForCoord(-794.8, 2425.184, 156.124)
Text.PrintNow('DST8_35', 7000, 1)
107@ = Car.Create(483, -783.169, 2430.03, 156.23)
Car.FreezePositionAndDontLoadCollision(107@, True)
Car.SetHeading(107@, 171.04)
Car.ChangeColor(107@, 1, 1)
Car.GivePaintjob(107@, 0)
106@ = Char.CreateInsideCar(107@, PedType.Special, 290)
Char.SetDecisionMaker(106@, 159@)
Car.SetProofs(107@, True, True, True, True, True)
Char.SetProofs(106@, True, True, True, True, True)
Car.SetIsConsideredByPlayer(107@, False)
190@ = 1
184@ = 9

:MAF4_28337
if 
  184@ == 9
goto_if_false @MAF4_28458
if 
  not Char.LocateAnyMeans2D($scplayer, 276.14, 1884.06, 100.0, 100.0, False)
goto_if_false @MAF4_28458
165@ = 0

:MAF4_28400
if 
  22 > 165@
goto_if_false @MAF4_28451
Char.MarkAsNoLongerNeeded(109@(165@,22i))
Streaming.MarkModelAsNoLongerNeeded(287)
Streaming.MarkModelAsNoLongerNeeded(356)
165@ += 1
goto @MAF4_28400

:MAF4_28451
184@ = 10

:MAF4_28458
if 
  190@ == 1
goto_if_false @MAF4_28606
if 
  not Char.IsDead(106@)
goto_if_false @MAF4_28606
if 
  Char.LocateAnyMeansChar2D(106@, $scplayer, 200.0, 200.0, False)
goto_if_false @MAF4_28606
Audio.ReportMissionAudioEventAtPosition(268.73, 1883.96, 17.85, 1006)
if 
  not Car.IsDead(107@)
goto_if_false @MAF4_28566
Car.FreezePositionAndDontLoadCollision(107@, False)

:MAF4_28566
108@ = Car.Create(468, -776.66, 2426.41, 156.11)
Car.SetHeading(108@, 175.776)
190@ = 2

:MAF4_28606
if 
  190@ == 2
goto_if_false @MAF4_28834
if 
  Char.LocateAnyMeans3D($scplayer, -791.14, 2425.33, 156.2, 3.0, 3.0, 3.0, True)
goto_if_false @MAF4_28834
World.ClearArea(-810.94, 2360.42, 150.81, 200.0, True)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.DoFade(500, Fade.Out)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 26631)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 38444)

:MAF4_28738
if or
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @MAF4_28768
wait 0
goto @MAF4_28738

:MAF4_28768
if 
  Camera.GetFadingStatus
goto_if_false @MAF4_28792
wait 0
goto @MAF4_28768

:MAF4_28792
Char.SetCoordinates($scplayer, -791.178, 2425.34, 156.16)
Char.SetHeading($scplayer, 256.615)
Char.ClearTasksImmediately($scplayer)
190@ = 3

:MAF4_28834
if 
  190@ == 3
goto_if_false @MAF4_29382
Camera.SetFixedPosition(-785.0004, 2435.679, 157.5931, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-784.9536, 2434.682, 157.5342, SwitchType.JumpCut)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Camera.DoFade(250, Fade.In)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('TRUX_BH', 2000, 1)

:MAF4_28937
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @MAF4_28963
wait 0
goto @MAF4_28937

:MAF4_28963
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 26632)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('DES8_MB', 3000, 1)
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)

:MAF4_29032
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @MAF4_29058
wait 0
goto @MAF4_29032

:MAF4_29058
Char.ClearTasksImmediately($scplayer)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 38445)

:MAF4_29076
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @MAF4_29102
wait 0
goto @MAF4_29076

:MAF4_29102
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DES8_MC', 3000, 1)

:MAF4_29122
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @MAF4_29148
wait 0
goto @MAF4_29122

:MAF4_29148
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 38446)
if 
  not Car.IsDead(107@)
goto_if_false @MAF4_29211
Car.GotoCoordinates(107@, -810.94, 2360.42, 150.81)
TIMERA = 0
190@ = 4

:MAF4_29211
if 
  not Car.IsDead(107@)
goto_if_false @MAF4_29238
Task.LookAtVehicle($scplayer, 107@, 5000)

:MAF4_29238
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @MAF4_29264
wait 0
goto @MAF4_29238

:MAF4_29264
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('DES8_MD', 2000, 1)

:MAF4_29284
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @MAF4_29310
wait 0
goto @MAF4_29284

:MAF4_29310
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @MAF4_29336
wait 0
goto @MAF4_29310

:MAF4_29336
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DES8_ME', 2000, 1)

:MAF4_29356
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @MAF4_29382
wait 0
goto @MAF4_29356

:MAF4_29382
if 
  190@ == 4
goto_if_false @MAF4_29499
if 
  TIMERA > 2000
goto_if_false @MAF4_29499
Camera.DoFade(500, Fade.Out)

:MAF4_29426
if 
  Camera.GetFadingStatus
goto_if_false @MAF4_29450
wait 0
goto @MAF4_29426

:MAF4_29450
Char.ClearTasksImmediately($scplayer)
Car.Delete(107@)
Char.Delete(106@)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.DoFade(500, Fade.In)
goto @MAF4_29999
190@ = 5

:MAF4_29499
goto @MAF4_1996

:MAF4_29506
if 
  197@ == 0
goto_if_false @MAF4_29546
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 156@)
set_lvar_text_label 154@s = 157@s
197@ = 1

:MAF4_29546
return 

:MAF4_29548
if 
  197@ == 1
goto_if_false @MAF4_29627
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @MAF4_29627
if 
  not is_lvar_text_label_equal_to_text_label 154@s == 'DUMMY'
goto_if_false @MAF4_29616
Text.PrintNow(154@s, 4000, 1)

:MAF4_29616
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
197@ = 2

:MAF4_29627
if 
  197@ == 2
goto_if_false @MAF4_29694
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @MAF4_29694
196@ += 1
199@ += 1
201@ += 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
197@ = 0

:MAF4_29694
return 

:MAF4_29696
165@ = 0

:MAF4_29703
if 
  7 > 165@
goto_if_false @MAF4_29811
if 
  Searchlight.DoesExist(35@(165@,7i))
goto_if_false @MAF4_29797
Searchlight.MoveBetweenCoords(35@(165@,7i), 49@(165@,7f), 56@(165@,7f), 63@(165@,7f), 70@(165@,7f), 77@(165@,7f), 84@(165@,7f), 0.3)

:MAF4_29797
165@ += 1
goto @MAF4_29703

:MAF4_29811
return 

:MAF4_29813
166@ = 0

:MAF4_29820
if 
  7 > 166@
goto_if_false @MAF4_29889
if 
  Searchlight.DoesExist(35@(166@,7i))
goto_if_false @MAF4_29875
Searchlight.PointAtChar(35@(166@,7i), $scplayer, 0.125)

:MAF4_29875
166@ += 1
goto @MAF4_29820

:MAF4_29889
return 

:MAF4_29891
152@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(152@)
Char.PerformSequence(153@, 152@)
Sequence.Clear(152@)
return 

:MAF4_29929
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Object.Delete($5176)
$5176 = Object.Create(#A51_VENTCOVERB, 245.968, 1862.843, 19.49)
Object.SetRotation($5176, 0.0, 0.0, -140.998)
Object.DontRemove($5176)
return 

:MAF4_29999
$flag_desert_mission_counter += 1
Stat.SetInt(StatId.PassedDesert8, 1)
$3241 = Pickup.CreateWithAmmo(351, PickupType.OnStreetSlow, 30, 297.8289, 1846.623, 6.7266)
$3242 = Pickup.CreateWithAmmo(370, PickupType.OnStreetSlow, 0, 268.7, 1884.1, -30.085)
$3342 = Pickup.Create(#BODYARMOUR, PickupType.OnStreetSlow, 266.2813, 1816.398, 1.594)
$3248 = Pickup.CreateWithAmmo(369, PickupType.Once, 1, 212.8813, 1811.005, 21.4187)
$goggle_pickups = Pickup.CreateWithAmmo(369, PickupType.Once, 1, 1270.52, -795.5929, 1084.254)
$3250 = Pickup.CreateWithAmmo(369, PickupType.Once, 1, -350.499, 1608.437, 75.642)
$3251 = Pickup.CreateWithAmmo(369, PickupType.Once, 1, -2224.68, 129.1278, 1035.62)
Blip.Remove($desert2_contact_blip)
Stat.RegisterMissionPassed('DESERT8')
Audio.PlayMissionPassedTune(1)
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSD', 1, 5000, TextStyle.Middle)
Player.ClearWantedLevel($player1)
Blip.Remove($desert2_contact_blip)
return 

:MAF4_30253
$onmission = 0
Streaming.MarkModelAsNoLongerNeeded(287)
Streaming.MarkModelAsNoLongerNeeded(356)
Streaming.MarkModelAsNoLongerNeeded(#A51_SPOTBULB)
Streaming.MarkModelAsNoLongerNeeded(#A51_SPOTHOUSING)
Streaming.MarkModelAsNoLongerNeeded(#A51_SPOTBASE)
Streaming.MarkModelAsNoLongerNeeded(483)
Streaming.MarkModelAsNoLongerNeeded(335)
Streaming.MarkModelAsNoLongerNeeded(347)
Streaming.MarkModelAsNoLongerNeeded(583)
Streaming.MarkModelAsNoLongerNeeded(70)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(358)
Streaming.MarkModelAsNoLongerNeeded(369)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Hud.SetRadarZoom(0)
Weather.Release
Player.ForceInteriorLighting($player1, False)
Zone.SetDisableMilitaryZones(False)
if 
  Player.IsPlaying($player1)
goto_if_false @MAF4_30390
Char.ShutUp($scplayer, False)
Pad.SetPlayerEnterCarButton($player1, False)

:MAF4_30390
Char.MarkAsNoLongerNeeded(106@)
Streaming.UnloadSpecialCharacter(1)
Object.Delete(143@)
Pickup.Remove(144@)
Pickup.Remove(145@)
Pickup.Remove(146@)
Pickup.Remove(147@)
Pickup.Remove(148@)
Pickup.Remove(149@)
Pickup.Remove(150@)
Pickup.Remove(151@)
Game.ShowBlipsOnAllLevels(False)
if 
  Object.DoesExist($trapdoor_a51)
goto_if_false @MAF4_30484
Object.SetCoordinates($trapdoor_a51, 268.664, 1884.06, 15.925)

:MAF4_30484
Object.Delete($china_town_gate)
Object.Delete($frontdoorr_a51)
$china_town_gate = Object.CreateNoOffset(#A51_BLASTDOORR, 215.941, 1874.571, 13.903)
Object.SetHeading($china_town_gate, 0.0)
$frontdoorr_a51 = Object.CreateNoOffset(#A51_BLASTDOORL, 211.842, 1874.571, 13.903)
Object.SetHeading($frontdoorr_a51, 0.0)
Object.DontRemove($china_town_gate)
Object.DontRemove($frontdoorr_a51)
165@ = 0

:MAF4_30575
if 
  22 > 165@
goto_if_false @MAF4_30616
Blip.Remove(205@(165@,22i))
165@ += 1
goto @MAF4_30575

:MAF4_30616
Blip.Remove(227@)
Blip.Remove(228@)
Blip.Remove(229@)
165@ = 0

:MAF4_30638
if 
  7 > 165@
goto_if_false @MAF4_30688
Searchlight.Delete(35@(165@,7i))
Object.Delete(42@(165@,7i))
165@ += 1
goto @MAF4_30638

:MAF4_30688
Object.Delete(92@)
Object.Delete(93@)
Object.Delete(94@)
Object.Delete(95@)
Object.Delete(96@)
Object.Delete(97@)
Object.Delete(98@)
Object.Delete(99@)
Object.Delete(100@)
Object.Delete(101@)
Object.Delete(102@)
Object.Delete(103@)
Object.Delete(104@)
Object.Delete(105@)
Weather.Release
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Game.SetArea51SamSite(True)
Game.SetWantedMultiplier(1.0)
Weather.Release
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

//-------------Mission 82---------------
// Originally: Green Goo

:DES10
gosub @DES10_36
if 
  has_deatharrest_been_executed 
goto_if_false @DES10_27
gosub @DES10_4112

:DES10_27
gosub @DES10_4515
terminate_this_script 

:DES10_36
$onmission = 1
Stat.RegisterMissionGiven
script_name 'DES10'
wait 0
Text.LoadMissionText('DSERT10')
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
Player.MakeGangDisappear
57@ = Stat.GetInt(StatId.Fat)
if 
  57@ > 600
goto_if_false @DES10_330
Cutscene.Load('D10_ALT')

:DES10_114
if 
  not Cutscene.HasLoaded
goto_if_false @DES10_138
wait 0
goto @DES10_114

:DES10_138
World.ClearArea(405.2136, 2525.9, 16.4918, 7.5, False)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:DES10_171
if 
  not Cutscene.HasFinished
goto_if_false @DES10_195
wait 0
goto @DES10_171

:DES10_195
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:DES10_208
if 
  Camera.GetFadingStatus
goto_if_false @DES10_232
wait 0
goto @DES10_208

:DES10_232
Cutscene.Clear
World.ClearArea(419.4488, 2529.914, 15.6219, 0.5, False)
Streaming.LoadScene(419.4488, 2529.914, 15.6219)
Char.SetCoordinates($scplayer, 419.4488, 2529.914, 15.6219)
Char.SetHeading($scplayer, 180.0)
Camera.SetBehindPlayer
Camera.DoFade(1500, Fade.In)
Player.SetControl($player1, True)
return 
goto @DES10_461

:DES10_330
Cutscene.Load('DES_10A')

:DES10_341
if 
  not Cutscene.HasLoaded
goto_if_false @DES10_365
wait 0
goto @DES10_341

:DES10_365
World.ClearArea(419.6919, 2529.914, 16.6612, 6.86, False)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:DES10_398
if 
  not Cutscene.HasFinished
goto_if_false @DES10_422
wait 0
goto @DES10_398

:DES10_422
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:DES10_435
if 
  Camera.GetFadingStatus
goto_if_false @DES10_459
wait 0
goto @DES10_435

:DES10_459
Cutscene.Clear

:DES10_461
Weather.Release
Streaming.RequestModel(352)
Streaming.RequestModel(537)
Streaming.RequestModel(569)
Streaming.RequestModel(353)
Streaming.RequestModel(432)
Streaming.RequestModel(287)
Streaming.RequestModel(370)
Streaming.LoadAllModelsNow

:DES10_500
if or
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(537)
  not Streaming.HasModelLoaded(569)
  not Streaming.HasModelLoaded(353)
  not Streaming.HasModelLoaded(432)
  not Streaming.HasModelLoaded(287)
goto_if_false @DES10_552
wait 0
goto @DES10_500

:DES10_552
if 
  not Player.IsPlaying($player1)
goto_if_false @DES10_579
wait 0
goto @DES10_552

:DES10_579
Game.SwitchRandomTrains(False)
World.ClearArea(419.4488, 2529.914, 15.6219, 0.5, False)
Streaming.LoadScene(419.4488, 2529.914, 15.6219)
Char.SetCoordinates($scplayer, 419.4488, 2529.914, 15.6219)
Char.SetHeading($scplayer, 180.0)
Camera.SetBehindPlayer
Game.SetRelationship(RelationshipType.Like, PedType.Gang8, PedType.Player1)
//Task.Jetpack($scplayer)
//Char.GiveWeapon($scplayer, WeaponType.MicroUzi, 2000)

:DES10_678
if 
  not Streaming.HasModelLoaded(370)
goto_if_false @DES10_705
wait 0
goto @DES10_678

:DES10_705
Player.MakeGangReappear
Camera.DoFade(1500, Fade.In)
Player.SetControl($player1, True)
58@ = Train.Create(13, 2120.257, 2694.058, 9.8359, False)
Car.LockDoors(58@, CarLock.Locked)
Train.SetSpeed(58@, 5.0)
Train.SetCruiseSpeed(58@, 5.0)
Text.PrintNow('DE10_01', 5000, 1)
$x, $y, $z = Car.GetCoordinates(58@)
$z += 10.0
44@ = 0

:DES10_819
if 
  12 > 44@
goto_if_false @DES10_960
66@(44@,12i) = Char.Create(PedType.CivMale, 287, $x, $y, $z)
Task.StayInSamePlace(66@(44@,12i), True)
Char.SetOnlyDamagedByPlayer(66@(44@,12i), True)
Char.GiveWeapon(66@(44@,12i), WeaponType.Mp5, 9999)
Task.KillCharOnFoot(66@(44@,12i), $scplayer)
Char.SetRelationship(66@(44@,12i), RelationshipType.Hate, PedType.Player1)
Char.SetSenseRange(66@(44@,12i), 150.0)
Char.SetLoadCollisionFlag(66@(44@,12i), False)
44@ += 1
goto @DES10_819

:DES10_960
Char.AttachToCar(66@, 58@, -0.0032, -8.3584, -0.055, 3, 360.0, WeaponType.Mp5)
Char.AttachToCar(67@, 58@, 0.1129, 6.521, 1.9285, 1, 360.0, WeaponType.Mp5)
59@ = Train.GetCarriage(58@, 1)
Char.AttachToCar(68@, 59@, -0.014, -7.179, -0.055, 3, 360.0, WeaponType.Mp5)
Char.AttachToCar(69@, 59@, -1.0891, 0.6968, -0.055, 1, 360.0, WeaponType.Mp5)
78@ = Object.CreateNoOffset(#KMILITARY_CRATE, $x, $y, $z)
Object.AttachToCar(78@, 59@, -0.0485, 5.578, -1.0661, 0.0, 0.0, 90.1967)
Object.MakeTargetable(78@, True)
Object.SetHealth(78@, 180)
81@ = Blip.AddForObject(78@)
84@ = Object.CreateNoOffset(#KMILITARY_BASE, $x, $y, $z)
Object.AttachToCar(84@, 59@, -0.0485, 5.578, -1.0661, 0.0, 0.0, 90.1967)
85@ = Object.CreateNoOffset(#BLOCKPALLET, $x, $y, $z)
Object.AttachToCar(85@, 59@, 0.2634, 1.2508, -0.3321, 0.0, 0.0, 90.1967)
86@ = Object.CreateNoOffset(#TEMP_CRATE1, $x, $y, $z)
Object.AttachToCar(86@, 59@, 1.1025, -7.3122, -1.0766, 0.0, 0.0, 90.1967)
87@ = Object.CreateNoOffset(#TEMP_CRATE1, $x, $y, $z)
Object.AttachToCar(87@, 59@, 0.8835, -6.5365, -1.1047, 0.0, 0.0, 93.7464)
88@ = Object.CreateNoOffset(#TEMP_CRATE1, $x, $y, $z)
Object.AttachToCar(88@, 59@, 1.1395, -5.6969, -1.0827, 0.0, 0.0, 83.6459)
89@ = Object.CreateNoOffset(#K_SMASHBOXES, $x, $y, $z)
Object.AttachToCar(89@, 59@, 0.4817, -1.5356, -1.0651, 0.0, 0.0, 93.1856)
60@ = Train.GetCarriage(58@, 2)
Char.AttachToCar(70@, 60@, -0.014, -7.179, -0.055, 3, 360.0, WeaponType.Mp5)
Char.AttachToCar(71@, 60@, -1.0891, 0.6968, -0.055, 1, 360.0, WeaponType.Mp5)
61@ = Train.GetCarriage(58@, 3)
Char.AttachToCar(72@, 61@, 0.3372, -1.3877, -0.055, 3, 360.0, WeaponType.Mp5)
Char.AttachToCar(73@, 61@, -0.0956, 2.1291, -0.055, 3, 360.0, WeaponType.Mp5)
79@ = Object.CreateNoOffset(#KMILITARY_CRATE, $x, $y, $z)
Object.AttachToCar(79@, 61@, -0.0403, 4.0293, -1.0661, 0.0, 0.0, 90.1967)
Object.MakeTargetable(79@, True)
Object.SetHealth(79@, 180)
82@ = Blip.AddForObject(79@)
90@ = Object.CreateNoOffset(#KMILITARY_BASE, $x, $y, $z)
Object.AttachToCar(90@, 61@, -0.0403, 4.0293, -1.0661, 0.0, 0.0, 2.7605)
91@ = Object.CreateNoOffset(#K_CARGO1, $x, $y, $z)
Object.AttachToCar(91@, 61@, -0.0177, 0.6971, -1.0662, 0.0, 0.0, 91.0)
92@ = Object.CreateNoOffset(#K_SMASHBOXES, $x, $y, $z)
Object.AttachToCar(92@, 61@, -0.0228, -2.9213, -1.0651, 0.0, 0.0, 87.9095)
93@ = Object.CreateNoOffset(#K_SMASHBOXES, $x, $y, $z)
Object.AttachToCar(93@, 61@, 0.1054, 6.4364, -1.0651, 0.0, 0.0, 89.7187)
96@ = Object.CreateNoOffset(#K_CARGO4, $x, $y, $z)
Object.AttachToCar(96@, 61@, 0.4192, -6.0624, -1.0628, 0.0, 0.0, 2.7605)
62@ = Train.GetCarriage(58@, 4)
Char.AttachToCar(74@, 62@, -0.516, 7.4724, -0.055, 3, 360.0, WeaponType.Mp5)
103@ = Car.Create(432, $x, $y, $z)
Car.LockDoors(103@, CarLock.Locked)
Car.AttachToCar(103@, 62@, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
63@ = Train.GetCarriage(58@, 5)
Char.AttachToCar(75@, 63@, 0.2861, -5.3712, -0.055, 3, 360.0, WeaponType.Mp5)
Char.AttachToCar(76@, 63@, -0.2277, 7.3808, -0.055, 3, 360.0, WeaponType.Mp5)
Char.AttachToCar(77@, 63@, 0.6604, 3.8015, -0.055, 3, 360.0, WeaponType.Mp5)
80@ = Object.CreateNoOffset(#KMILITARY_CRATE, $x, $y, $z)
Object.AttachToCar(80@, 63@, 0.0853, 5.9501, -1.0583, 0.0, 0.0, 90.1967)
Object.MakeTargetable(80@, True)
Object.SetHealth(80@, 180)
83@ = Blip.AddForObject(80@)
97@ = Object.CreateNoOffset(#KMILITARY_BASE, $x, $y, $z)
Object.AttachToCar(97@, 63@, 0.0853, 5.9501, -1.0583, 0.0, 0.0, 92.239)
98@ = Object.CreateNoOffset(#K_CARGO4, $x, $y, $z)
Object.AttachToCar(98@, 63@, -0.8464, -6.5879, -1.0628, 0.0, 0.0, 0.12)
100@ = Object.CreateNoOffset(#K_CARGO1, $x, $y, $z)
Object.AttachToCar(100@, 63@, 0.8877, 0.1707, -1.0564, 0.0, 0.0, 177.5167)
101@ = Object.CreateNoOffset(#K_CARGO1, $x, $y, $z)
Object.AttachToCar(101@, 63@, -0.6907, 0.205, -1.0662, 0.0, 0.0, 179.6863)
102@ = Object.CreateNoOffset(#K_CARGO1, $x, $y, $z)
Object.AttachToCar(102@, 63@, 0.0036, 2.2326, -1.0644, 0.0, 0.0, 267.6086)
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
$game_timer = Clock.GetGameTimer()
set_lvar_int_to_var_int 36@ = $game_timer
36@ += 600000
35@ = 0
109@ = 0
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 37800)

:DES10_2651
wait 0
$game_timer = Clock.GetGameTimer()
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DES10_2682
goto @DES10_4130

:DES10_2682
if 
  not Car.IsDead(58@)
goto_if_false @DES10_2708
Train.SetCruiseSpeed(58@, 10.0)

:DES10_2708
if 
  109@ == 0
goto_if_false @DES10_2780
if 
  Char.LocateAnyMeansCar2D($scplayer, 58@, 150.0, 150.0, False)
goto_if_false @DES10_2780
Text.PrintNow('DE10_06', 5000, 1)
109@ += 1

:DES10_2780
44@ = 0

:DES10_2787
if 
  3 > 44@
goto_if_false @DES10_3998
if 
  104@(44@,3i) == 0
goto_if_false @DES10_2865
if 
  Object.DoesExist(78@(44@,3i))
goto_if_false @DES10_2865
107@ += 1
104@(44@,3i) += 1

:DES10_2865
if 
  104@(44@,3i) == 1
goto_if_false @DES10_2934
if 
  Object.HasBeenDamaged(78@(44@,3i))
goto_if_false @DES10_2934
Blip.Remove(81@(44@,3i))
108@ += 1
104@(44@,3i) += 1

:DES10_2934
if 
  104@(44@,3i) == 2
goto_if_false @DES10_3393
if 
  is_int_lvar_equal_to_int_lvar 108@ == 107@
goto_if_false @DES10_3357
$x, $y, $z = Object.GetCoordinates(78@(44@,3i))
$z += 1.0
Object.Delete(78@(44@,3i))
78@(44@,3i) = Object.CreateNoOffset(#GREEN_GLOOP, $x, $y, $z)
if 
  44@ == 0
goto_if_false @DES10_3116
if 
  not Car.IsDead(59@)
goto_if_false @DES10_3109
Object.AttachToCar(78@(44@,3i), 59@, -0.0485, 5.578, -0.0661, 0.0, 0.0, 90.1967)

:DES10_3109
goto @DES10_3257

:DES10_3116
if 
  44@ == 1
goto_if_false @DES10_3199
if 
  not Car.IsDead(61@)
goto_if_false @DES10_3192
Object.AttachToCar(78@(44@,3i), 61@, -0.0485, 5.578, -0.0661, 0.0, 0.0, 90.1967)

:DES10_3192
goto @DES10_3257

:DES10_3199
if 
  not Car.IsDead(63@)
goto_if_false @DES10_3257
Object.AttachToCar(78@(44@,3i), 63@, -0.0485, 5.578, -0.0661, 0.0, 0.0, 90.1967)

:DES10_3257
Object.SetCollision(78@(44@,3i), False)
81@(44@,3i) = Blip.AddForObject(78@(44@,3i))
Text.PrintNow('DE10_02', 5000, 1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 37800)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @DES10_3339
Audio.AttachMissionAudioToObject(MissionAudioSlot.Slot3, 78@(44@,3i))
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:DES10_3339
104@(44@,3i) = 4
goto @DES10_3393

:DES10_3357
Object.MarkAsNoLongerNeeded(78@(44@,3i))
Text.PrintNow('DE10_03', 5000, 1)
104@(44@,3i) += 1

:DES10_3393
if 
  104@(44@,3i) == 4
goto_if_false @DES10_3660
$x, $y, $z = Object.GetCoordinates(78@(44@,3i))
add_float_lvar_to_float_lvar 110@ += 111@
if 
  110@ > 0.2
goto_if_false @DES10_3472
111@ = -0.01

:DES10_3472
if 
  0.0 > 110@
goto_if_false @DES10_3513
110@ = 0.0
111@ = 0.01

:DES10_3513
Fx.DrawWeaponshopCorona($x, $y, $z, 110@, CoronaType.Moon, FlareType.Headlights, 0, 255, 0)
if 
  Char.LocateAnyMeans3D($scplayer, $x, $y, $z, 1.5, 1.5, 1.5, False)
goto_if_false @DES10_3660
Object.Delete(78@(44@,3i))
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Text.PrintNow('DE10_04', 5000, 1)
Blip.Remove(81@(44@,3i))
81@(44@,3i) = Blip.AddForCoord(408.7383, 2515.838, 15.4918)
104@(44@,3i) += 1
35@ += 1

:DES10_3660
if 
  104@(44@,3i) == 5
goto_if_false @DES10_3984
if 
  Char.LocateAnyMeans3D($scplayer, 408.7383, 2515.838, 15.4918, 1.5, 1.5, 1.5, True)
goto_if_false @DES10_3984
Camera.DoFade(1000, Fade.Out)

:DES10_3737
if 
  Camera.GetFadingStatus
goto_if_false @DES10_3761
wait 0
goto @DES10_3737

:DES10_3761
Char.ClearTasksImmediately($scplayer)
Cutscene.Load('DES_10B')

:DES10_3777
if 
  not Cutscene.HasLoaded
goto_if_false @DES10_3801
wait 0
goto @DES10_3777

:DES10_3801
World.ClearArea(398.7038, 2529.735, 16.563, 7.35, False)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:DES10_3834
if 
  not Cutscene.HasFinished
goto_if_false @DES10_3858
wait 0
goto @DES10_3834

:DES10_3858
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:DES10_3871
if 
  Camera.GetFadingStatus
goto_if_false @DES10_3895
wait 0
goto @DES10_3871

:DES10_3895
Cutscene.Clear
World.ClearArea(402.8737, 2531.582, 15.5558, 0.5, False)
Streaming.LoadScene(402.8737, 2531.582, 15.5558)
Char.SetCoordinates($scplayer, 402.8737, 2531.582, 15.5558)
Char.SetHeading($scplayer, 224.0)
Camera.SetBehindPlayer
Player.SetControl($player1, True)
goto @DES10_4130

:DES10_3984
44@ += 1
goto @DES10_2787

:DES10_3998
if 
  35@ == 0
goto_if_false @DES10_4105
if 
  not Car.IsDead(58@)
goto_if_false @DES10_4105
if 
  is_int_var_greater_than_int_lvar $game_timer > 36@
goto_if_false @DES10_4105
if 
  not Char.LocateAnyMeansCar2D($scplayer, 58@, 300.0, 300.0, False)
goto_if_false @DES10_4105
Text.PrintNow('DE10_05', 5000, 1)
goto @DES10_4112

:DES10_4105
goto @DES10_2651

:DES10_4112
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:DES10_4130
$d9_counting = 10000
112@ = Pickup.Create(370, PickupType.OnStreetSlow, 431.045, 2537.78, 16.2463)
$pilot_revenue = Pickup.CreateProtection(420.5204, 2532.687, 16.0869, $d9_counting, $d9_counting)
Player.SetControl($player1, False)
wait 0
Hud.SwitchWidescreen(True)
Streaming.LoadScene(407.8369, 2515.65, 18.9138)
Camera.SetFixedPosition(407.8369, 2515.65, 18.9138, 0.0, 0.0, 0.0)
Camera.PointAtPoint(408.3296, 2516.52, 18.9449, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:DES10_4279
if 
  Camera.GetFadingStatus
goto_if_false @DES10_4303
wait 0
goto @DES10_4279

:DES10_4303
Audio.PlayMissionPassedTune(1)
Text.PrintBig('ASS_ACQ', 5000, TextStyle.WhiteMiddleSmaller)
wait 5000
Camera.SetFixedPosition(419.7284, 2526.546, 16.8, 0.0, 0.0, 0.0)
Camera.PointAtPoint(419.897, 2527.531, 16.8356, SwitchType.JumpCut)
Text.PrintWithNumberNow('ASS_LUV', $d9_counting, 6000, 1)
wait 6000
Camera.DoFade(500, Fade.Out)

:DES10_4410
if 
  Camera.GetFadingStatus
goto_if_false @DES10_4434
wait 0
goto @DES10_4410

:DES10_4434
Camera.DoFade(500, Fade.In)
Stat.SetInt(StatId.PassedDesert10, 1)
Camera.RestoreJumpcut
$flag_desert_mission_counter += 1
Text.PrintWithNumberBig('M_PASS', 20000, 5000, TextStyle.Middle)
Player.AddScore($player1, 20000)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.RegisterMissionPassed('DESER10')
Stat.PlayerMadeProgress(1)
Blip.Remove($desert2_contact_blip)
return 

:DES10_4515
if 
  is_int_lvar_equal_to_int_lvar 108@ == 107@
goto_if_false @DES10_4538
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:DES10_4538
Blip.Remove(81@)
Blip.Remove(82@)
Blip.Remove(83@)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(537)
Streaming.MarkModelAsNoLongerNeeded(569)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(432)
Streaming.MarkModelAsNoLongerNeeded(287)
Streaming.MarkModelAsNoLongerNeeded(370)
Game.SwitchRandomTrains(True)
$onmission = 0
Mission.Finish
return 

//-------------Mission 83---------------
// Originally: Learning to Fly

:DESERT5
script_name 'DESERT5'
gosub @DESERT5_47
if 
  has_deatharrest_been_executed 
goto_if_false @DESERT5_38
gosub @DESERT5_29911

:DESERT5_38
gosub @DESERT5_30098
terminate_this_script 

:DESERT5_47
Text.ClearThisPrint('M_FAIL')
$onmission = 1
if 
  $pilot_test_passed <> 1
goto_if_false @DESERT5_85
Stat.RegisterMissionGiven

:DESERT5_85
Text.LoadMissionText('DSERT5')
Camera.SetFadingColor(0, 0, 0)
wait 0
Camera.DoFade(500, Fade.Out)

:DESERT5_115
if 
  Camera.GetFadingStatus
goto_if_false @DESERT5_139
wait 0
goto @DESERT5_115

:DESERT5_139
$noticeboard_x = 415.55
$noticeboard_y = 2533.57
$noticeboard_z = 19.18
230@ = 0
226@ = 0
227@ = 0
229@ = 0
228@ = 0
231@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
237@ = 0
238@ = 0
44@ = -81.36
45@ = 2476.0
46@ = 435.92
47@ = 2528.62
set_lvar_float_to_lvar_float 48@ = 44@
add_float_lvar_to_float_lvar 48@ += 46@
48@ /= 2.0
set_lvar_float_to_lvar_float 49@ = 45@
add_float_lvar_to_float_lvar 49@ += 47@
49@ /= 2.0
50@ = 321.52
set_lvar_float_to_lvar_float 51@ = 49@
52@ = 17.16
73@ = -383.79
set_lvar_float_to_lvar_float 76@ = 49@
79@ = 147.09
set_lvar_float_to_lvar_float 74@ = 73@
74@ -= 300.0
set_lvar_float_to_lvar_float 77@ = 76@
set_lvar_float_to_lvar_float 80@ = 79@
80@ -= 20.0
set_lvar_float_to_lvar_float 75@ = 73@
75@ -= 650.0
set_lvar_float_to_lvar_float 78@ = 76@
set_lvar_float_to_lvar_float 81@ = 79@
81@ += 10.0
53@ = -383.79
set_lvar_float_to_lvar_float 54@ = 49@
55@ = 85.09
set_lvar_float_to_lvar_float 82@ = 44@
set_lvar_float_to_lvar_float 83@ = 49@
84@ = 33.3
set_lvar_float_to_lvar_float 109@ = 50@
109@ -= 500.0
set_lvar_float_to_lvar_float 110@ = 51@
set_lvar_float_to_lvar_float 111@ = 52@
111@ += 120.0
56@ = 308.0
set_lvar_float_to_lvar_float 57@ = 49@
58@ = 17.07
63@ = 3
66@ = 2
set_lvar_float_to_lvar_float 112@ = 48@
set_lvar_float_to_lvar_float 113@ = 49@
114@ = 80.0
set_lvar_float_to_lvar_float 115@ = 112@
115@ += 200.0
129@ = 15.0
set_lvar_float_to_lvar_float 136@ = 48@
set_lvar_float_to_lvar_float 137@ = 49@
138@ = 15.53
set_lvar_float_to_lvar_float 139@ = 136@
139@ += 350.0
set_lvar_float_to_lvar_float 140@ = 137@
141@ = 900.0
$d5_plane_up_component = 0
$d5_plane_reached_takeoff_point = 0
$d5_plane_taken_off = 0
159@ = 0
160@ = 0
177@ = 0
178@ = 0
215@ = 0
216@ = 0
218@ = 0
219@ = 0
if 
  219@ == 1
goto_if_false @DESERT5_954
35@ = Car.Create(476, 0.0, 0.0, -100.0)
70@ = Char.Create(PedType.Mission1, 0, 0.0, 0.0, -100.0)
156@ = 0

:DESERT5_894
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_954
60@(156@,3i) = Car.Create(514, 0.0, 0.0, -100.0)
156@ += 1
goto @DESERT5_894

:DESERT5_954
Text.ClearThisPrintBigNow(TextStyle.Middle)
World.ClearAreaOfCars(44@, 45@, 0.0, 46@, 47@, 50.0)
Stat.ShowUpdateStats(False)
Game.SetArea51SamSite(False)
Game.SwitchPoliceHelis(False)
239@ = Game.GetMaxWantedLevel()
Game.SetMaxWantedLevel(0)
Streaming.RequestModel(476)
Streaming.RequestModel(425)
Streaming.RequestModel(514)
Streaming.RequestModel(400)
Streaming.RequestModel(513)
StreamedScript.Stream(1)
Streaming.LoadAllModelsNow

:DESERT5_1034
if or
  not Streaming.HasModelLoaded(476)
  not Streaming.HasModelLoaded(425)
  not Streaming.HasModelLoaded(514)
  not Streaming.HasModelLoaded(400)
  not Streaming.HasModelLoaded(513)
goto_if_false @DESERT5_1081
wait 0
goto @DESERT5_1034

:DESERT5_1081
if 
  not StreamedScript.HasLoaded(1)
goto_if_false @DESERT5_1107
wait 0
goto @DESERT5_1081

:DESERT5_1107
Txd.LoadDictionary('LD_DRV')
Txd.LoadSprite(1, "BRFLY")
Txd.LoadSprite(2, "SILFLY")
Txd.LoadSprite(3, "GOLFLY")
Txd.LoadSprite(4, "RIBB")
Txd.LoadSprite(5, "TVCORN")
Txd.LoadSprite(6, "NAWARD")
Txd.LoadSprite(7, "RIBBW")
Txd.LoadSprite(8, "BLKDOT")
Txd.LoadSprite(9, "TVBASE")
Txd.LoadSprite(10, "NAWTXT")
Game.SetAlwaysDraw3DMarkers(True)
if 
  $d5_watched_first_cutscene == 0
goto_if_false @DESERT5_2570
World.ClearArea($noticeboard_x, $noticeboard_y, $noticeboard_z, 50.0, False)
Char.SetCoordinates($scplayer, 414.8, 2534.2, 18.18)
Char.SetHeading($scplayer, 200.0)
set_lvar_text_label 179@s = 'MTOR04A'
set_lvar_text_label 181@s = 'MTOR04B'
set_lvar_text_label 183@s = 'MTOR04C'
set_lvar_text_label 185@s = 'MTOR04D'
set_lvar_text_label 187@s = 'MTOR04E'
set_lvar_text_label 189@s = 'MTOR04F'
set_lvar_text_label 191@s = 'MTOR04G'
set_lvar_text_label 193@s = 'MTOR04H'
set_lvar_text_label 195@s = 'MTOR04J'
set_lvar_text_label 197@s = 'MTOR04K'
set_lvar_text_label 199@s = 'MTOR04L'
set_lvar_text_label 201@s = 'MTOR04M'
set_lvar_int_to_constant 203@ = 4811
set_lvar_int_to_constant 204@ = 4840
set_lvar_int_to_constant 205@ = 4841
set_lvar_int_to_constant 206@ = 4812
set_lvar_int_to_constant 207@ = 4813
set_lvar_int_to_constant 208@ = 4842
set_lvar_int_to_constant 209@ = 4814
set_lvar_int_to_constant 210@ = 4815
set_lvar_int_to_constant 211@ = 4816
set_lvar_int_to_constant 212@ = 4817
set_lvar_int_to_constant 213@ = 4843
set_lvar_int_to_constant 214@ = 4818
217@ = 12
215@ = 0
218@ = 0
Player.SetControl($player1, False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(True)
Streaming.RequestModel(330)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 28200)

:DESERT5_1616
if or
  not Streaming.HasModelLoaded(330)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @DESERT5_1647
wait 0
goto @DESERT5_1616

:DESERT5_1647
Task.UseMobilePhone($scplayer, True)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
Camera.SetFixedPosition(415.83, 2532.94, 19.5, 0.0, 0.0, 0.0)
Camera.PointAtPoint(415.28, 2533.65, 19.5, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)

:DESERT5_1716
if 
  Camera.GetFadingStatus
goto_if_false @DESERT5_1740
wait 0
goto @DESERT5_1716

:DESERT5_1740
240@ = 1
skip_cutscene_start_internal @DESERT5_2377
wait 600
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
wait 1000
216@ = 0

:DESERT5_1775
if 
  1 > 216@
goto_if_false @DESERT5_1811
wait 0
gosub @DESERT5_29680
goto @DESERT5_1775

:DESERT5_1811
if 
  2 > 216@
goto_if_false @DESERT5_1887
wait 0
gosub @DESERT5_29680
if and
  215@ == 2
  218@ <> 1
goto_if_false @DESERT5_1880
Char.StartFacialTalk($scplayer, 10000)
218@ = 1

:DESERT5_1880
goto @DESERT5_1811

:DESERT5_1887
Char.StopFacialTalk($scplayer)

:DESERT5_1892
if 
  3 > 216@
goto_if_false @DESERT5_1968
wait 0
gosub @DESERT5_29680
if and
  215@ == 2
  218@ <> 1
goto_if_false @DESERT5_1961
Char.StartFacialTalk($scplayer, 10000)
218@ = 1

:DESERT5_1961
goto @DESERT5_1892

:DESERT5_1968
Char.StopFacialTalk($scplayer)

:DESERT5_1973
if 
  5 > 216@
goto_if_false @DESERT5_2009
wait 0
gosub @DESERT5_29680
goto @DESERT5_1973

:DESERT5_2009
if 
  6 > 216@
goto_if_false @DESERT5_2085
wait 0
gosub @DESERT5_29680
if and
  215@ == 2
  218@ <> 1
goto_if_false @DESERT5_2078
Char.StartFacialTalk($scplayer, 10000)
218@ = 1

:DESERT5_2078
goto @DESERT5_2009

:DESERT5_2085
Char.StopFacialTalk($scplayer)

:DESERT5_2090
if 
  8 > 216@
goto_if_false @DESERT5_2216
wait 0
gosub @DESERT5_29680
if and
  215@ == 2
  216@ == 7
  218@ <> 1
goto_if_false @DESERT5_2209
Camera.SetFixedPosition(414.83, 2532.13, 19.43, 0.0, 0.0, 0.0)
Camera.PointAtPoint(415.01, 2533.11, 19.42, SwitchType.JumpCut)
218@ = 1

:DESERT5_2209
goto @DESERT5_2090

:DESERT5_2216
if 
  10 > 216@
goto_if_false @DESERT5_2252
wait 0
gosub @DESERT5_29680
goto @DESERT5_2216

:DESERT5_2252
if 
  11 > 216@
goto_if_false @DESERT5_2328
wait 0
gosub @DESERT5_29680
if and
  215@ == 2
  218@ <> 1
goto_if_false @DESERT5_2321
Char.StartFacialTalk($scplayer, 10000)
218@ = 1

:DESERT5_2321
goto @DESERT5_2252

:DESERT5_2328
Char.StopFacialTalk($scplayer)

:DESERT5_2333
if 
  is_int_lvar_greater_than_int_lvar 217@ > 216@
goto_if_false @DESERT5_2370
wait 0
gosub @DESERT5_29680
goto @DESERT5_2333

:DESERT5_2370
240@ = 0

:DESERT5_2377
skip_cutscene_end 
if 
  240@ <> 1
goto_if_false @DESERT5_2404
Task.UseMobilePhone($scplayer, False)

:DESERT5_2404
Camera.DoFade(1000, Fade.Out)

:DESERT5_2411
if 
  Camera.GetFadingStatus
goto_if_false @DESERT5_2435
wait 0
goto @DESERT5_2411

:DESERT5_2435
if 
  240@ == 1
goto_if_false @DESERT5_2460
Task.UseMobilePhone($scplayer, False)

:DESERT5_2460
Char.StopFacialTalk($scplayer)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
Char.SetCoordinates($scplayer, 413.94, $noticeboard_y, 18.18)
Char.SetHeading($scplayer, 270.0)
178@ = 1
$d5_watched_first_cutscene = 1
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Camera.DoFade(1000, Fade.In)

:DESERT5_2539
if 
  Camera.GetFadingStatus
goto_if_false @DESERT5_2563
wait 0
goto @DESERT5_2539

:DESERT5_2563
goto @DESERT5_29911

:DESERT5_2570
Char.SetCoordinates($scplayer, 412.38, 2533.65, 18.18)
Char.SetHeading($scplayer, 90.0)

:DESERT5_2600
Player.SetControl($player1, False)
Text.ClearHelp
Text.ClearPrints
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
232@ = 0
233@ = 0
235@ = 0
236@ = 0
238@ = 0
231@ = 0
230@ = 0
Text.UseCommands(True)
227@ = 255
226@ = 2
set_lvar_int_to_var_int 34@ = $d5_last_played
if 
  34@ == 3
goto_if_false @DESERT5_2726
34@ = 4

:DESERT5_2726
if 
  34@ == 5
goto_if_false @DESERT5_2751
34@ = 6

:DESERT5_2751
Hud.Display(False)
Hud.DisplayRadar(False)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 31400)

:DESERT5_2766
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @DESERT5_2792
wait 0
goto @DESERT5_2766

:DESERT5_2792
Camera.DoFade(1000, Fade.In)
gosub @DESERT5_20476

:DESERT5_2806
if 
  Camera.GetFadingStatus
goto_if_false @DESERT5_2837
wait 0
gosub @DESERT5_20476
goto @DESERT5_2806

:DESERT5_2837
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @DESERT5_2863
goto @DESERT5_29949

:DESERT5_2863
gosub @DESERT5_20476
if 
  230@ == 0
goto_if_false @DESERT5_3392
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  -100 > $LStickX
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @DESERT5_3035
34@ -= 1
$d5_last_played -= 1
if 
  34@ == 3
goto_if_false @DESERT5_2967
34@ = 2

:DESERT5_2967
if 
  34@ == 5
goto_if_false @DESERT5_2992
34@ = 4

:DESERT5_2992
if 
  $d5_total_missions_open > 1
goto_if_false @DESERT5_3035
if 
  4 > 231@
goto_if_false @DESERT5_3035
231@ = 3

:DESERT5_3035
if or
  $LStickX > 100
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @DESERT5_3166
34@ += 1
$d5_last_played += 1
if 
  34@ == 3
goto_if_false @DESERT5_3098
34@ = 4

:DESERT5_3098
if 
  34@ == 5
goto_if_false @DESERT5_3123
34@ = 6

:DESERT5_3123
if 
  $d5_total_missions_open > 1
goto_if_false @DESERT5_3166
if 
  4 > 231@
goto_if_false @DESERT5_3166
231@ = 3

:DESERT5_3166
if 
  1 > 34@
goto_if_false @DESERT5_3200
set_lvar_int_to_var_int 34@ = $d5_total_missions_open
set_var_int_to_var_int $d5_last_played = $d5_total_missions_open

:DESERT5_3200
if 
  is_int_lvar_greater_than_int_var 34@ > $d5_total_missions_open
goto_if_false @DESERT5_3233
34@ = 1
$d5_last_played = 1

:DESERT5_3233
if or
  -100 > $LStickX
  $LStickX > 100
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @DESERT5_3304
wait 0
gosub @DESERT5_20476
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
goto @DESERT5_3233

:DESERT5_3304
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DESERT5_3392
if or
  34@ == 4
  34@ == 6
goto_if_false @DESERT5_3360
230@ = 1
goto @DESERT5_3392

:DESERT5_3360
if 
  4 > 231@
goto_if_false @DESERT5_3385
231@ = 3

:DESERT5_3385
goto @DESERT5_3793

:DESERT5_3392
if 
  230@ == 1
goto_if_false @DESERT5_3722
if 
  4 > 231@
goto_if_false @DESERT5_3435
231@ = 3

:DESERT5_3435
if 
  231@ == 0
goto_if_false @DESERT5_3460
231@ = 5

:DESERT5_3460
gosub @DESERT5_24693
Text.SetColor(255, 255, 255, 255)
Text.Display(320.0, 140.0, 'DES5_FH')
gosub @DESERT5_24693
Text.SetCenter(False)
Text.SetColor(255, 255, 255, 255)
Text.Display(182.0, 185.0, 'DES5_FI')
gosub @DESERT5_24693
Text.SetCenter(False)
Text.SetColor(255, 255, 255, 255)
Text.Display(182.0, 211.0, 'DES5_FJ')
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  -100 > $LStickX
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @DESERT5_3641
goto @DESERT5_3793

:DESERT5_3641
if or
  $LStickX > 100
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @DESERT5_3722
if 
  34@ == 4
goto_if_false @DESERT5_3690
34@ = 3

:DESERT5_3690
if 
  34@ == 6
goto_if_false @DESERT5_3715
34@ = 5

:DESERT5_3715
goto @DESERT5_3793

:DESERT5_3722
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @DESERT5_3751
$d5_total_missions_open = 12
$pilot_test_passed = 1

:DESERT5_3751
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_3775
goto @DESERT5_29911

:DESERT5_3775
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
gosub @DESERT5_23098
goto @DESERT5_2837

:DESERT5_3793
Camera.DoFade(500, Fade.Out)

:DESERT5_3800
if 
  Camera.GetFadingStatus
goto_if_false @DESERT5_3831
wait 0
gosub @DESERT5_20476
goto @DESERT5_3800

:DESERT5_3831
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_3852
Car.StopPlayback(35@)

:DESERT5_3852
Car.Delete(35@)
Camera.RestoreJumpcut
Char.Delete(70@)
156@ = 0

:DESERT5_3871
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_3913
Car.Delete(60@(156@,3i))
156@ += 1
goto @DESERT5_3871

:DESERT5_3913
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
World.ClearArea($noticeboard_x, $noticeboard_y, $noticeboard_z, 500.0, True)
Hud.ClearTimer($car_timer)
Hud.FreezeTimer(False)
231@ = 5
Hud.Display(True)
Hud.DisplayRadar(True)
if 
  34@ == 1
goto_if_false @DESERT5_5468

:DESERT5_3977
gosub @DESERT5_24871

:DESERT5_3984
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
$d5_plane_up_component = 0
$d5_plane_reached_takeoff_point = 0
157@ = 0
35@ = Car.Create(476, 50@, 51@, 52@)
Car.SetHeading(35@, 90.0)
if 
  231@ == 0
goto_if_false @DESERT5_4135
Camera.SetFixedPosition(172.6, 2466.14, 17.05, 0.0, 0.0, 0.0)
Camera.PointAtCar(35@, CameraMode.Fixed, SwitchType.JumpCut)
return 

:DESERT5_4135
wait 500
Text.ClearPrints
Text.PrintNow('DES5_1A', 5000, 4)
gosub @DESERT5_24908

:DESERT5_4165
wait 0
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_4204
232@ = 2
goto @DESERT5_5415

:DESERT5_4204
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_4273
if 
  Car.IsInWater(35@)
goto_if_false @DESERT5_4266
232@ = 2
goto @DESERT5_5415
goto @DESERT5_4273

:DESERT5_4266
goto @DESERT5_29911

:DESERT5_4273
if 
  233@ == 0
goto_if_false @DESERT5_4355
Text.PrintNow('DES5_1A', 5000, 4)
gosub @DESERT5_25137
if 
  233@ == 1
goto_if_false @DESERT5_4348
Text.PrintNow('DES5_1B', 10000, 4)

:DESERT5_4348
goto @DESERT5_5461

:DESERT5_4355
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_5461
if 
  $d5_plane_reached_takeoff_point <> 1
goto_if_false @DESERT5_4561
if 
  $d5_plane_up_component <> 1
goto_if_false @DESERT5_4459
$pilot_cash_pickup = Car.GetPitch(35@)
if 
  5.0 >= $pilot_cash_pickup
goto_if_false @DESERT5_4459
$d5_plane_up_component = 1
Text.PrintNow('DES5_1C', 10000, 4)

:DESERT5_4459
37@, 38@, 39@ = Car.GetCoordinates(35@)
if 
  39@ >= 25.0
goto_if_false @DESERT5_4524
$d5_plane_reached_takeoff_point = 1
Text.PrintNow('DES5_1I', 10000, 4)
goto @DESERT5_4561

:DESERT5_4524
if 
  not Char.IsInArea2D($scplayer, 44@, 45@, 46@, 47@, False)
goto_if_false @DESERT5_4561
236@ = 1

:DESERT5_4561
if 
  $d5_plane_reached_takeoff_point == 1
goto_if_false @DESERT5_4986
if 
  157@ <> 1
goto_if_false @DESERT5_4725
151@ = Plane.GetUndercarriagePosition(35@)
if 
  151@ > 0.0
goto_if_false @DESERT5_4718
157@ = 1
220@ = Blip.AddForCoord(73@, 76@, 79@)
118@ = Checkpoint.Create(CheckpointType.Torus, 73@, 76@, 79@, 0.0, 76@, 79@, 129@)
116@ = 0
Text.ClearPrints
Text.PrintNow('DES5_1F', 7000, 4)
Text.Print('DES5_1J', 10000, 4)

:DESERT5_4718
goto @DESERT5_4986

:DESERT5_4725
if 
  Char.LocateInCar3D($scplayer, 73@(116@,3f), 76@(116@,3f), 79@(116@,3f), 129@, 129@, 129@, False)
goto_if_false @DESERT5_4986
Blip.Remove(220@)
Checkpoint.Delete(118@)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
116@ += 1
if 
  3 > 116@
goto_if_false @DESERT5_4979
220@ = Blip.AddForCoord(73@(116@,3f), 76@(116@,3f), 79@(116@,3f))
118@ = Checkpoint.Create(CheckpointType.Torus, 73@(116@,3f), 76@(116@,3f), 79@(116@,3f), 0.0, 76@(116@,3f), 79@(116@,3f), 129@)
if 
  116@ == 1
goto_if_false @DESERT5_4938
Text.PrintNow('DES5_1G', 10000, 4)

:DESERT5_4938
if 
  116@ == 2
goto_if_false @DESERT5_4972
Text.PrintNow('DES5_1H', 10000, 4)

:DESERT5_4972
goto @DESERT5_4986

:DESERT5_4979
235@ = 1

:DESERT5_4986
if 
  $d5_plane_reached_takeoff_point == 1
goto_if_false @DESERT5_5027
if 
  not Car.IsInAirProper(35@)
goto_if_false @DESERT5_5027
236@ = 1

:DESERT5_5027
if 
  not Char.LocateAnyMeans2D($scplayer, -450.0, 49@, 1250.0, 1250.0, False)
goto_if_false @DESERT5_5070
236@ = 1

:DESERT5_5070
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_5461
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_5169
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 30
148@ = 45
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_5197

:DESERT5_5169
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_5197
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[0]
goto_if_false @DESERT5_5246
set_lvar_int_to_var_int 237@ = $d5_best_scores[0]
set_var_int_to_var_int $d5_best_scores[0] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_5246
if 
  $d5_total_missions_open == 1
goto_if_false @DESERT5_5317
if 
  $overall_score > 69
goto_if_false @DESERT5_5317
Stat.IncrementInt(StatId.FlyingSkill, 60)
238@ = 2
$d5_total_missions_open = 2
$d5_last_played = 2
232@ = 2

:DESERT5_5317
gosub @DESERT5_27584

:DESERT5_5324
if 
  219@ == 0
goto_if_false @DESERT5_5415
wait 0
gosub @DESERT5_29289
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_5384
232@ = 2
goto @DESERT5_5415

:DESERT5_5384
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DESERT5_5408
goto @DESERT5_5415

:DESERT5_5408
goto @DESERT5_5324

:DESERT5_5415
gosub @DESERT5_27164
if 
  232@ == 2
goto_if_false @DESERT5_5454
goto @DESERT5_2600
goto @DESERT5_5461

:DESERT5_5454
goto @DESERT5_3977

:DESERT5_5461
goto @DESERT5_4165

:DESERT5_5468
if 
  34@ == 2
goto_if_false @DESERT5_6924

:DESERT5_5486
gosub @DESERT5_24871

:DESERT5_5493
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
159@ = 0
160@ = 0
158@ = 0
35@ = Car.Create(476, 53@, 54@, 55@)
Car.SetHeading(35@, 270.0)
if 
  231@ == 0
goto_if_false @DESERT5_5644
Camera.SetFixedPosition(27.29, 2466.31, 16.76, 0.0, 0.0, 0.0)
Camera.PointAtCar(35@, CameraMode.Fixed, SwitchType.JumpCut)
return 

:DESERT5_5644
Plane.SetUndercarriageUp(35@, True)
Car.FreezePosition(35@, True)
wait 500
Text.ClearPrints
Text.PrintNow('DES5_2J', 5000, 4)
gosub @DESERT5_24908

:DESERT5_5688
wait 0
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_5727
232@ = 2
goto @DESERT5_6871

:DESERT5_5727
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_5796
if 
  Car.IsInWater(35@)
goto_if_false @DESERT5_5789
232@ = 2
goto @DESERT5_6871
goto @DESERT5_5796

:DESERT5_5789
goto @DESERT5_29911

:DESERT5_5796
if 
  233@ == 0
goto_if_false @DESERT5_5937
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_5930
Car.FreezePosition(35@, False)
Car.SetForwardSpeed(35@, 30.0)
220@ = Blip.AddForCoord(82@, 83@, 84@)
118@ = Checkpoint.Create(CheckpointType.Torus, 82@, 83@, 84@, -200.0, 83@, 84@, 129@)
Hud.DisplayTimerWithString($car_timer, TimerDirection.Up, 'DES5_T4')
Text.PrintNow('DES5_2J', 5000, 4)
233@ = 1

:DESERT5_5930
goto @DESERT5_6917

:DESERT5_5937
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_6917
if 
  159@ == 0
goto_if_false @DESERT5_6171
if 
  158@ <> 1
goto_if_false @DESERT5_6041
151@ = Plane.GetUndercarriagePosition(35@)
if 
  1.0 > 151@
goto_if_false @DESERT5_6041
158@ = 1
Text.PrintNow('DES5_2C', 5000, 4)

:DESERT5_6041
if 
  Char.LocateInCar3D($scplayer, 82@, 83@, 84@, 129@, 129@, 129@, False)
goto_if_false @DESERT5_6164
Blip.Remove(220@)
Checkpoint.Delete(118@)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
159@ = 1
220@ = Blip.AddForCoord(308.0, 49@, 52@)
Text.ClearPrints
Text.PrintNow('DES5_2I', 5000, 4)
Text.Print('DES5_2D', 7000, 4)

:DESERT5_6164
goto @DESERT5_6368

:DESERT5_6171
  Car.IsStoppedInArea3D(35@, 288.0, 45@, 16.0, 328.0, 47@, 18.0, True)
if 
  160@ <> 1
goto_if_false @DESERT5_6321
37@, 38@, 39@ = Car.GetCoordinates(35@)
if 
  17.66 >= 39@
goto_if_false @DESERT5_6314
160@ = 1
Text.ClearPrints
Text.PrintNow('DES5_2E', 7000, 4)
Text.Print('DES5_2F', 7000, 4)
Text.Print('DES5_2G', 7000, 4)

:DESERT5_6314
goto @DESERT5_6368

:DESERT5_6321
if and
  Car.IsStoppedInArea2D(35@, 44@, 45@, 46@, 47@, False)
  not Car.IsInAirProper(35@)
  not Car.IsUpsidedown(35@)
goto_if_false @DESERT5_6368
235@ = 1

:DESERT5_6368
if 
  not Car.IsInAirProper(35@)
goto_if_false @DESERT5_6483
if 
  159@ <> 1
goto_if_false @DESERT5_6416
236@ = 1
goto @DESERT5_6483

:DESERT5_6416
if 
  not Char.IsInArea2D($scplayer, 44@, 45@, 46@, 47@, False)
goto_if_false @DESERT5_6460
236@ = 1
goto @DESERT5_6483

:DESERT5_6460
if 
  Car.IsUpsidedown(35@)
goto_if_false @DESERT5_6483
236@ = 1

:DESERT5_6483
if 
  not Char.LocateAnyMeans2D($scplayer, -450.0, 49@, 1250.0, 1250.0, False)
goto_if_false @DESERT5_6526
236@ = 1

:DESERT5_6526
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_6917
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_6625
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 25
148@ = 40
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_6653

:DESERT5_6625
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_6653
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[1]
goto_if_false @DESERT5_6702
set_lvar_int_to_var_int 237@ = $d5_best_scores[1]
set_var_int_to_var_int $d5_best_scores[1] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_6702
if 
  $d5_total_missions_open == 2
goto_if_false @DESERT5_6773
if 
  $overall_score > 69
goto_if_false @DESERT5_6773
Stat.IncrementInt(StatId.FlyingSkill, 60)
238@ = 2
$d5_total_missions_open = 4
$d5_last_played = 4
232@ = 2

:DESERT5_6773
gosub @DESERT5_27584

:DESERT5_6780
if 
  219@ == 0
goto_if_false @DESERT5_6871
wait 0
gosub @DESERT5_29289
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_6840
232@ = 2
goto @DESERT5_6871

:DESERT5_6840
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DESERT5_6864
goto @DESERT5_6871

:DESERT5_6864
goto @DESERT5_6780

:DESERT5_6871
gosub @DESERT5_27164
if 
  232@ == 2
goto_if_false @DESERT5_6910
goto @DESERT5_2600
goto @DESERT5_6917

:DESERT5_6910
goto @DESERT5_5486

:DESERT5_6917
goto @DESERT5_5688

:DESERT5_6924
if or
  34@ == 3
  34@ == 4
goto_if_false @DESERT5_8503

:DESERT5_6949
gosub @DESERT5_24871

:DESERT5_6956
gosub @DESERT5_19958
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
$d5_plane_reached_takeoff_point = 0
116@ = 0
35@ = Car.Create(476, 50@, 51@, 52@)
Car.SetHeading(35@, 90.0)
if 
  231@ == 0
goto_if_false @DESERT5_7114
Plane.SetUndercarriageUp(35@, True)
Camera.SetFixedPosition(-1251.02, 2301.32, 140.44, 0.0, 0.0, 0.0)
Camera.PointAtCar(35@, CameraMode.Fixed, SwitchType.JumpCut)
return 

:DESERT5_7114
wait 500
Text.ClearPrints
Text.PrintNow('DES5_1A', 5000, 4)
gosub @DESERT5_24908

:DESERT5_7144
wait 0
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_7183
232@ = 2
goto @DESERT5_8402

:DESERT5_7183
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_7252
if 
  Car.IsInWater(35@)
goto_if_false @DESERT5_7245
232@ = 2
goto @DESERT5_8402
goto @DESERT5_7252

:DESERT5_7245
goto @DESERT5_29911

:DESERT5_7252
if 
  233@ == 0
goto_if_false @DESERT5_7445
Text.PrintNow('DES5_1A', 5000, 4)
gosub @DESERT5_25137
if 
  233@ == 1
goto_if_false @DESERT5_7438
116@ = 0
220@ = Blip.AddForCoord(85@, 93@, 101@)
119@ = Checkpoint.Create(CheckpointType.Torus, 85@, 93@, 101@, 0.0, 93@, 101@, 129@)
120@ = Checkpoint.Create(CheckpointType.Torus, 86@, 94@, 102@, 85@, 93@, 101@, 129@)
Text.PrintNow('DES5_3B', 10000, 4)
Text.Print('DES5_3C', 7000, 4)
Text.Print('DES5_3D', 10000, 4)

:DESERT5_7438
goto @DESERT5_8496

:DESERT5_7445
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_8496
if 
  $d5_plane_reached_takeoff_point <> 1
goto_if_false @DESERT5_7521
37@, 38@, 39@ = Car.GetCoordinates(35@)
if 
  39@ >= 25.0
goto_if_false @DESERT5_7521
$d5_plane_reached_takeoff_point = 1

:DESERT5_7521
if 
  Char.LocateInCar3D($scplayer, 85@(116@,8f), 93@(116@,8f), 101@(116@,8f), 129@, 129@, 129@, False)
goto_if_false @DESERT5_7973
Blip.Remove(220@)
Checkpoint.Delete(119@(116@,8i))
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
116@ += 1
if 
  8 > 116@
goto_if_false @DESERT5_7966
220@ = Blip.AddForCoord(85@(116@,8f), 93@(116@,8f), 101@(116@,8f))
set_lvar_int_to_lvar_int 117@ = 116@
117@ += 1
if 
  8 > 117@
goto_if_false @DESERT5_7743
119@(117@,8i) = Checkpoint.Create(CheckpointType.Torus, 85@(117@,8f), 93@(117@,8f), 101@(117@,8f), 85@(116@,8f), 93@(116@,8f), 101@(116@,8f), 129@)

:DESERT5_7743
if 
  116@ == 1
goto_if_false @DESERT5_7818
if 
  34@ == 4
goto_if_false @DESERT5_7802
Text.PrintNow('DES5_3F', 10000, 4)
goto @DESERT5_7818

:DESERT5_7802
Text.PrintNow('DES5_3E', 10000, 4)

:DESERT5_7818
if 
  116@ == 2
goto_if_false @DESERT5_7893
if 
  34@ == 4
goto_if_false @DESERT5_7877
Text.PrintNow('DES5_3G', 10000, 4)
goto @DESERT5_7893

:DESERT5_7877
Text.PrintNow('DES5_3H', 10000, 4)

:DESERT5_7893
if 
  116@ == 3
goto_if_false @DESERT5_7959
Text.PrintNow('DES5_3K', 10000, 4)
Text.Print('DES5_3L', 7000, 4)
Text.Print('DES5_3M', 10000, 4)

:DESERT5_7959
goto @DESERT5_7973

:DESERT5_7966
235@ = 1

:DESERT5_7973
if 
  $d5_plane_reached_takeoff_point == 1
goto_if_false @DESERT5_8014
if 
  not Car.IsInAirProper(35@)
goto_if_false @DESERT5_8014
236@ = 1

:DESERT5_8014
if 
  not Char.LocateAnyMeans2D($scplayer, -450.0, 49@, 1250.0, 1250.0, False)
goto_if_false @DESERT5_8057
236@ = 1

:DESERT5_8057
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_8496
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_8156
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 60
148@ = 75
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_8184

:DESERT5_8156
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_8184
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[2]
goto_if_false @DESERT5_8233
set_lvar_int_to_var_int 237@ = $d5_best_scores[2]
set_var_int_to_var_int $d5_best_scores[2] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_8233
if 
  $d5_total_missions_open == 4
goto_if_false @DESERT5_8304
if 
  $overall_score > 69
goto_if_false @DESERT5_8304
Stat.IncrementInt(StatId.FlyingSkill, 60)
238@ = 2
$d5_total_missions_open = 6
$d5_last_played = 6
232@ = 2

:DESERT5_8304
gosub @DESERT5_27584

:DESERT5_8311
if 
  219@ == 0
goto_if_false @DESERT5_8402
wait 0
gosub @DESERT5_29289
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_8371
232@ = 2
goto @DESERT5_8402

:DESERT5_8371
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DESERT5_8395
goto @DESERT5_8402

:DESERT5_8395
goto @DESERT5_8311

:DESERT5_8402
gosub @DESERT5_27164
156@ = 0

:DESERT5_8416
if 
  8 > 156@
goto_if_false @DESERT5_8457
Checkpoint.Delete(119@(156@,8i))
156@ += 1
goto @DESERT5_8416

:DESERT5_8457
if 
  232@ == 2
goto_if_false @DESERT5_8489
goto @DESERT5_2600
goto @DESERT5_8496

:DESERT5_8489
goto @DESERT5_6949

:DESERT5_8496
goto @DESERT5_7144

:DESERT5_8503
if or
  34@ == 5
  34@ == 6
goto_if_false @DESERT5_10300

:DESERT5_8528
gosub @DESERT5_24871

:DESERT5_8535
gosub @DESERT5_19958
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
$d5_plane_reached_takeoff_point = 0
116@ = 0
161@ = 0
35@ = Car.Create(476, 50@, 51@, 52@)
Car.SetHeading(35@, 90.0)
if 
  231@ == 0
goto_if_false @DESERT5_8700
Plane.SetUndercarriageUp(35@, True)
Camera.SetFixedPosition(-394.09, 2601.47, 134.89, 0.0, 0.0, 0.0)
Camera.PointAtCar(35@, CameraMode.Fixed, SwitchType.JumpCut)
return 

:DESERT5_8700
wait 500
Text.ClearPrints
Text.PrintNow('DES5_1A', 5000, 4)
gosub @DESERT5_24908

:DESERT5_8730
wait 0
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_8769
232@ = 2
goto @DESERT5_10199

:DESERT5_8769
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_8838
if 
  Car.IsInWater(35@)
goto_if_false @DESERT5_8831
232@ = 2
goto @DESERT5_10199
goto @DESERT5_8838

:DESERT5_8831
goto @DESERT5_29911

:DESERT5_8838
if 
  233@ == 0
goto_if_false @DESERT5_8999
Text.PrintNow('DES5_1A', 5000, 4)
gosub @DESERT5_25137
if 
  233@ == 1
goto_if_false @DESERT5_8992
116@ = 0
220@ = Blip.AddForCoord(85@, 93@, 101@)
119@ = Checkpoint.Create(CheckpointType.Torus, 85@, 93@, 101@, 0.0, 93@, 101@, 129@)
120@ = Checkpoint.Create(CheckpointType.Torus, 86@, 94@, 102@, 85@, 93@, 101@, 129@)
Text.PrintNow('DES5_3B', 10000, 4)

:DESERT5_8992
goto @DESERT5_10293

:DESERT5_8999
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_10293
if 
  $d5_plane_reached_takeoff_point <> 1
goto_if_false @DESERT5_9075
37@, 38@, 39@ = Car.GetCoordinates(35@)
if 
  39@ >= 25.0
goto_if_false @DESERT5_9075
$d5_plane_reached_takeoff_point = 1

:DESERT5_9075
if 
  161@ <> 1
goto_if_false @DESERT5_9609
if 
  Char.LocateInCar3D($scplayer, 85@(116@,8f), 93@(116@,8f), 101@(116@,8f), 129@, 129@, 129@, False)
goto_if_false @DESERT5_9602
Blip.Remove(220@)
Checkpoint.Delete(119@(116@,8i))
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
116@ += 1
if 
  8 > 116@
goto_if_false @DESERT5_9506
220@ = Blip.AddForCoord(85@(116@,8f), 93@(116@,8f), 101@(116@,8f))
set_lvar_int_to_lvar_int 117@ = 116@
117@ += 1
if 
  8 > 117@
goto_if_false @DESERT5_9315
119@(117@,8i) = Checkpoint.Create(CheckpointType.Torus, 85@(117@,8f), 93@(117@,8f), 101@(117@,8f), 85@(116@,8f), 93@(116@,8f), 101@(116@,8f), 129@)

:DESERT5_9315
if 
  116@ == 1
goto_if_false @DESERT5_9390
if 
  34@ == 6
goto_if_false @DESERT5_9374
Text.PrintNow('DES5_3H', 10000, 4)
goto @DESERT5_9390

:DESERT5_9374
Text.PrintNow('DES5_3G', 10000, 4)

:DESERT5_9390
if 
  116@ == 2
goto_if_false @DESERT5_9465
if 
  34@ == 6
goto_if_false @DESERT5_9449
Text.PrintNow('DES5_3G', 10000, 4)
goto @DESERT5_9465

:DESERT5_9449
Text.PrintNow('DES5_3H', 10000, 4)

:DESERT5_9465
if 
  116@ == 3
goto_if_false @DESERT5_9499
Text.PrintNow('DES5_3K', 10000, 4)

:DESERT5_9499
goto @DESERT5_9602

:DESERT5_9506
161@ = 1
220@ = Blip.AddForCoord(308.0, 45@, 52@)
if 
  34@ == 6
goto_if_false @DESERT5_9570
Text.PrintNow('DES5_5I', 10000, 4)
goto @DESERT5_9586

:DESERT5_9570
Text.PrintNow('DES5_5H', 10000, 4)

:DESERT5_9586
Text.Print('DES5_5J', 10000, 4)

:DESERT5_9602
goto @DESERT5_9689

:DESERT5_9609
  Car.IsStoppedInArea3D(35@, 288.0, 45@, 16.0, 328.0, 47@, 18.0, True)
if and
  Car.IsStoppedInArea2D(35@, 44@, 45@, 46@, 47@, False)
  not Car.IsInAirProper(35@)
  not Car.IsUpsidedown(35@)
goto_if_false @DESERT5_9689
235@ = 1

:DESERT5_9689
if and
  $d5_plane_reached_takeoff_point == 1
  not Car.IsInAirProper(35@)
goto_if_false @DESERT5_9811
if 
  161@ <> 1
goto_if_false @DESERT5_9744
236@ = 1
goto @DESERT5_9811

:DESERT5_9744
if 
  not Char.IsInArea2D($scplayer, 44@, 45@, 46@, 47@, False)
goto_if_false @DESERT5_9788
236@ = 1
goto @DESERT5_9811

:DESERT5_9788
if 
  Car.IsUpsidedown(35@)
goto_if_false @DESERT5_9811
236@ = 1

:DESERT5_9811
if 
  not Char.LocateAnyMeans2D($scplayer, -450.0, 49@, 1250.0, 1250.0, False)
goto_if_false @DESERT5_9854
236@ = 1

:DESERT5_9854
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_10293
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_9953
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 80
148@ = 95
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_9981

:DESERT5_9953
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_9981
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[3]
goto_if_false @DESERT5_10030
set_lvar_int_to_var_int 237@ = $d5_best_scores[3]
set_var_int_to_var_int $d5_best_scores[3] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_10030
if 
  $d5_total_missions_open == 6
goto_if_false @DESERT5_10101
if 
  $overall_score > 69
goto_if_false @DESERT5_10101
Stat.IncrementInt(StatId.FlyingSkill, 60)
238@ = 2
$d5_total_missions_open = 7
$d5_last_played = 7
232@ = 2

:DESERT5_10101
gosub @DESERT5_27584

:DESERT5_10108
if 
  219@ == 0
goto_if_false @DESERT5_10199
wait 0
gosub @DESERT5_29289
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_10168
232@ = 2
goto @DESERT5_10199

:DESERT5_10168
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DESERT5_10192
goto @DESERT5_10199

:DESERT5_10192
goto @DESERT5_10108

:DESERT5_10199
gosub @DESERT5_27164
156@ = 0

:DESERT5_10213
if 
  8 > 156@
goto_if_false @DESERT5_10254
Checkpoint.Delete(119@(156@,8i))
156@ += 1
goto @DESERT5_10213

:DESERT5_10254
if 
  232@ == 2
goto_if_false @DESERT5_10286
goto @DESERT5_2600
goto @DESERT5_10293

:DESERT5_10286
goto @DESERT5_8528

:DESERT5_10293
goto @DESERT5_8730

:DESERT5_10300
if 
  34@ == 7
goto_if_false @DESERT5_11736

:DESERT5_10318
gosub @DESERT5_24871

:DESERT5_10325
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
$d5_plane_reached_takeoff_point = 0
$d5_plane_taken_off = 0
set_lvar_float_to_lvar_float 132@ = 111@
234@ = 0
35@ = Car.Create(425, 50@, 51@, 15.07)
Car.SetHeading(35@, 270.0)
Car.SetIdle(35@)
if 
  231@ == 0
goto_if_false @DESERT5_10491
Camera.SetFixedPosition(323.02, 2446.81, 117.65, 0.0, 0.0, 0.0)
Camera.PointAtCar(35@, CameraMode.Fixed, SwitchType.JumpCut)
return 

:DESERT5_10491
241@ = 1

:DESERT5_10498
if 
  241@ == 1
goto_if_false @DESERT5_10566
wait 0
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_10559
if 
  Car.IsStopped(35@)
goto_if_false @DESERT5_10559
241@ = 0

:DESERT5_10559
goto @DESERT5_10498

:DESERT5_10566
wait 500
Text.ClearPrints
Text.PrintNow('DES5_7A', 5000, 4)
gosub @DESERT5_24908

:DESERT5_10596
wait 0
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_10635
232@ = 2
goto @DESERT5_11683

:DESERT5_10635
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_10704
if 
  Car.IsInWater(35@)
goto_if_false @DESERT5_10697
232@ = 2
goto @DESERT5_11683
goto @DESERT5_10704

:DESERT5_10697
goto @DESERT5_29911

:DESERT5_10704
if 
  233@ == 0
goto_if_false @DESERT5_10816
Text.PrintNow('DES5_7A', 10000, 4)
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_10809
if 
  Car.IsInAirProper(35@)
goto_if_false @DESERT5_10809
Hud.DisplayTimerWithString($car_timer, TimerDirection.Up, 'DES5_T4')
Text.PrintNow('DES5_7B', 10000, 4)
233@ = 1

:DESERT5_10809
goto @DESERT5_11729

:DESERT5_10816
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_11729
if 
  $d5_plane_taken_off <> 1
goto_if_false @DESERT5_10922
37@, 38@, 39@ = Car.GetCoordinates(35@)
if 
  is_float_lvar_greater_or_equal_to_float_lvar 39@ >= 132@
goto_if_false @DESERT5_10922
$d5_plane_taken_off = 1
Text.PrintNow('DES5_7C', 5000, 4)
Text.Print('DES5_7D', 10000, 4)

:DESERT5_10922
if 
  $d5_plane_taken_off == 1
goto_if_false @DESERT5_11194
if 
  234@ <> 1
goto_if_false @DESERT5_11121
40@ = Car.GetHeading(35@)
if and
  40@ >= 80.0
  100.0 >= 40@
goto_if_false @DESERT5_11114
234@ = 1
220@ = Blip.AddForCoord(109@, 110@, 111@)
118@ = Checkpoint.Create(CheckpointType.Torus, 109@, 110@, 111@, 0.0, 110@, 111@, 129@)
Text.ClearPrints
Text.PrintNow('DES5_7F', 10000, 4)
Text.Print('DES5_7G', 10000, 4)
Text.Print('DES5_7H', 10000, 4)
Text.Print('DES5_7I', 10000, 4)

:DESERT5_11114
goto @DESERT5_11194

:DESERT5_11121
if 
  Char.LocateInCar3D($scplayer, 109@, 110@, 111@, 129@, 129@, 129@, False)
goto_if_false @DESERT5_11194
Blip.Remove(220@)
Checkpoint.Delete(118@)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
235@ = 1

:DESERT5_11194
if 
  $d5_plane_reached_takeoff_point <> 1
goto_if_false @DESERT5_11254
37@, 38@, 39@ = Car.GetCoordinates(35@)
if 
  39@ >= 25.0
goto_if_false @DESERT5_11254
$d5_plane_reached_takeoff_point = 1

:DESERT5_11254
if 
  $d5_plane_reached_takeoff_point == 1
goto_if_false @DESERT5_11295
if 
  not Car.IsInAirProper(35@)
goto_if_false @DESERT5_11295
236@ = 1

:DESERT5_11295
if 
  not Char.LocateAnyMeans2D($scplayer, -450.0, 49@, 1250.0, 1250.0, False)
goto_if_false @DESERT5_11338
236@ = 1

:DESERT5_11338
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_11729
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_11437
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 45
148@ = 60
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_11465

:DESERT5_11437
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_11465
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[4]
goto_if_false @DESERT5_11514
set_lvar_int_to_var_int 237@ = $d5_best_scores[4]
set_var_int_to_var_int $d5_best_scores[4] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_11514
if 
  $d5_total_missions_open == 7
goto_if_false @DESERT5_11585
if 
  $overall_score > 69
goto_if_false @DESERT5_11585
Stat.IncrementInt(StatId.FlyingSkill, 60)
238@ = 2
$d5_total_missions_open = 8
$d5_last_played = 8
232@ = 2

:DESERT5_11585
gosub @DESERT5_27584

:DESERT5_11592
if 
  219@ == 0
goto_if_false @DESERT5_11683
wait 0
gosub @DESERT5_29289
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_11652
232@ = 2
goto @DESERT5_11683

:DESERT5_11652
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DESERT5_11676
goto @DESERT5_11683

:DESERT5_11676
goto @DESERT5_11592

:DESERT5_11683
gosub @DESERT5_27164
if 
  232@ == 2
goto_if_false @DESERT5_11722
goto @DESERT5_2600
goto @DESERT5_11729

:DESERT5_11722
goto @DESERT5_10318

:DESERT5_11729
goto @DESERT5_10596

:DESERT5_11736
if 
  34@ == 8
goto_if_false @DESERT5_12955

:DESERT5_11754
gosub @DESERT5_24871

:DESERT5_11761
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
162@ = 0
35@ = Car.Create(425, 53@, 54@, 55@)
Car.SetHeading(35@, 270.0)
Heli.SetBladesFullSpeed(35@)
if 
  231@ == 0
goto_if_false @DESERT5_11903
Camera.SetFixedPosition(301.56, 2455.21, 55.82, 0.0, 0.0, 0.0)
Camera.PointAtCar(35@, CameraMode.Fixed, SwitchType.JumpCut)
return 

:DESERT5_11903
Car.FreezePosition(35@, True)
wait 500
Text.ClearPrints
Text.PrintNow('DES5_8A', 5000, 4)
gosub @DESERT5_24908

:DESERT5_11940
wait 0
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_11979
232@ = 2
goto @DESERT5_12902

:DESERT5_11979
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_12048
if 
  Car.IsInWater(35@)
goto_if_false @DESERT5_12041
232@ = 2
goto @DESERT5_12902
goto @DESERT5_12048

:DESERT5_12041
goto @DESERT5_29911

:DESERT5_12048
if 
  233@ == 0
goto_if_false @DESERT5_12175
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_12168
Car.FreezePosition(35@, False)
Car.SetForwardSpeed(35@, 15.0)
Hud.DisplayTimerWithString($car_timer, TimerDirection.Up, 'DES5_T4')
Text.PrintNow('DES5_8A', 10000, 4)
Text.Print('DES5_8B', 10000, 4)
220@ = Blip.AddForCoord(56@, 57@, 58@)
233@ = 1

:DESERT5_12168
goto @DESERT5_12948

:DESERT5_12175
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_12948
if 
  162@ <> 1
goto_if_false @DESERT5_12321
if 
  Char.LocateInCar2D($scplayer, 56@, 57@, 300.0, 300.0, False)
goto_if_false @DESERT5_12314
162@ = 1
Text.PrintNow('DES5_8G', 4000, 4)
Text.Print('DES5_8C', 10000, 4)
Text.Print('DES5_8D', 10000, 4)
Text.Print('DES5_8E', 10000, 4)

:DESERT5_12314
goto @DESERT5_12399

:DESERT5_12321
  Car.LocateStopped3D(35@, 56@, 57@, 58@, 26.31, 26.31, 26.31, True)
if and
  Car.IsStoppedInArea2D(35@, 44@, 45@, 46@, 47@, False)
  not Car.IsInAirProper(35@)
  not Car.IsUpsidedown(35@)
goto_if_false @DESERT5_12399
235@ = 1

:DESERT5_12399
if 
  not Car.IsInAirProper(35@)
goto_if_false @DESERT5_12514
if 
  162@ <> 1
goto_if_false @DESERT5_12447
236@ = 1
goto @DESERT5_12514

:DESERT5_12447
if 
  not Char.IsInArea2D($scplayer, 44@, 45@, 46@, 47@, False)
goto_if_false @DESERT5_12491
236@ = 1
goto @DESERT5_12514

:DESERT5_12491
if 
  Car.IsUpsidedown(35@)
goto_if_false @DESERT5_12514
236@ = 1

:DESERT5_12514
if 
  not Char.LocateAnyMeans2D($scplayer, -450.0, 49@, 1250.0, 1250.0, False)
goto_if_false @DESERT5_12557
236@ = 1

:DESERT5_12557
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_12948
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_12656
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 30
148@ = 45
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_12684

:DESERT5_12656
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_12684
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[5]
goto_if_false @DESERT5_12733
set_lvar_int_to_var_int 237@ = $d5_best_scores[5]
set_var_int_to_var_int $d5_best_scores[5] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_12733
if 
  $d5_total_missions_open == 8
goto_if_false @DESERT5_12804
if 
  $overall_score > 69
goto_if_false @DESERT5_12804
Stat.IncrementInt(StatId.FlyingSkill, 60)
238@ = 2
$d5_total_missions_open = 9
$d5_last_played = 9
232@ = 2

:DESERT5_12804
gosub @DESERT5_27584

:DESERT5_12811
if 
  219@ == 0
goto_if_false @DESERT5_12902
wait 0
gosub @DESERT5_29289
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_12871
232@ = 2
goto @DESERT5_12902

:DESERT5_12871
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DESERT5_12895
goto @DESERT5_12902

:DESERT5_12895
goto @DESERT5_12811

:DESERT5_12902
gosub @DESERT5_27164
if 
  232@ == 2
goto_if_false @DESERT5_12941
goto @DESERT5_2600
goto @DESERT5_12948

:DESERT5_12941
goto @DESERT5_11754

:DESERT5_12948
goto @DESERT5_11940

:DESERT5_12955
if 
  34@ == 9
goto_if_false @DESERT5_15284

:DESERT5_12973
gosub @DESERT5_24871

:DESERT5_12980
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
169@ = 0
35@ = Car.Create(425, 53@, 54@, 55@)
Car.SetHeading(35@, 270.0)
Heli.SetBladesFullSpeed(35@)
if 
  231@ == 0
goto_if_false @DESERT5_13233
Camera.SetFixedPosition(365.5, 2339.25, 63.23, 0.0, 0.0, 0.0)
Camera.PointAtPoint(363.09, 2473.76, 33.46, SwitchType.JumpCut)
69@ = 418.5
156@ = 0

:DESERT5_13147
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_13224
60@(156@,3i) = Car.Create(514, 69@, 49@, 17.1)
69@ -= 40.0
170@(156@,3i) = 0
156@ += 1
goto @DESERT5_13147

:DESERT5_13224
TIMERB = 0
return 

:DESERT5_13233
Car.FreezePosition(35@, True)
wait 500
Text.ClearPrints
Text.PrintNow('DES5_9A', 5000, 4)
gosub @DESERT5_24908

:DESERT5_13270
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_13305
232@ = 2
goto @DESERT5_15096

:DESERT5_13305
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_13374
if 
  Car.IsInWater(35@)
goto_if_false @DESERT5_13367
232@ = 2
goto @DESERT5_15096
goto @DESERT5_13374

:DESERT5_13367
goto @DESERT5_29911

:DESERT5_13374
if 
  233@ == 0
goto_if_false @DESERT5_13604
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_13597
Car.FreezePosition(35@, False)
Car.SetForwardSpeed(35@, 15.0)
Hud.DisplayTimerWithString($car_timer, TimerDirection.Up, 'DES5_T4')
Text.PrintNow('DES5_9A', 10000, 4)
Text.Print('DES5_9B', 10000, 4)
69@ = 418.5
156@ = 0

:DESERT5_13490
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_13583
60@(156@,3i) = Car.Create(514, 69@, 49@, 17.1)
221@(156@,3i) = Blip.AddForCar(60@(156@,3i))
163@(156@,3i) = 1
69@ -= 40.0
156@ += 1
goto @DESERT5_13490

:DESERT5_13583
59@ = 0
233@ = 1

:DESERT5_13597
goto @DESERT5_15277

:DESERT5_13604
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_15277
if 
  169@ <> 1
goto_if_false @DESERT5_14515
168@ = 1
switch_start 59@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @DESERT5_14494 {caseNum1} 0 {caseLabel1} @DESERT5_13708 {caseNum2} 1 {caseLabel2} @DESERT5_14293 {caseNum3} -1 {caseLabel3} @DESERT5_14508 {caseNum4} -1 {caseLabel4} @DESERT5_14508 {caseNum5} -1 {caseLabel5} @DESERT5_14508 {caseNum6} -1 {caseLabel6} @DESERT5_14508 {caseNum7} -1 {caseLabel7} @DESERT5_14508

:DESERT5_13708
156@ = 0

:DESERT5_13715
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_13824
if 
  Car.IsDead(60@(156@,3i))
goto_if_false @DESERT5_13803
if 
  163@(156@,3i) == 1
goto_if_false @DESERT5_13796
Blip.Remove(221@(156@,3i))
163@(156@,3i) = 0

:DESERT5_13796
goto @DESERT5_13810

:DESERT5_13803
168@ = 0

:DESERT5_13810
156@ += 1
goto @DESERT5_13715

:DESERT5_13824
if 
  168@ == 1
goto_if_false @DESERT5_14286
59@ = 1
64@ = Car.Create(400, 22.61, 2322.06, 22.35)
65@ = Car.Create(400, 74.58, 2375.99, 16.52)
67@ = Char.CreateInsideCar(64@, PedType.Mission1, 7)
68@ = Char.CreateInsideCar(65@, PedType.Mission1, 7)
Path.FlushRoute
Path.ExtendRoute(76.44, 2327.46, 20.63)
Path.ExtendRoute(74.58, 2375.99, 16.52)
Path.ExtendRoute(19.12, 2370.77, 18.97)
Path.ExtendRoute(22.61, 2322.06, 22.35)
71@ = Sequence.Open()
Task.DrivePointRoute(-1, 64@, 10.0)
Sequence.SetToRepeat(71@, True)
Sequence.Close(71@)
Char.PerformSequence(67@, 71@)
Sequence.Clear(71@)
Path.FlushRoute
Path.ExtendRoute(19.12, 2370.77, 18.97)
Path.ExtendRoute(22.61, 2322.06, 22.35)
Path.ExtendRoute(76.44, 2327.46, 20.63)
Path.ExtendRoute(74.58, 2375.99, 16.52)
72@ = Sequence.Open()
Task.DrivePointRoute(-1, 65@, 10.0)
Sequence.SetToRepeat(72@, True)
Sequence.Close(72@)
Char.PerformSequence(68@, 72@)
Sequence.Clear(72@)
156@ = 0

:DESERT5_14150
if 
  is_int_lvar_greater_than_int_lvar 66@ > 156@
goto_if_false @DESERT5_14221
Car.LockDoors(64@(156@,2i), CarLock.Locked)
224@(156@,2i) = Blip.AddForCar(64@(156@,2i))
166@(156@,2i) = 1
156@ += 1
goto @DESERT5_14150

:DESERT5_14221
Text.PrintNow('DES5_9D', 10000, 4)
156@ = 0

:DESERT5_14244
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_14286
Car.MarkAsNoLongerNeeded(60@(156@,3i))
156@ += 1
goto @DESERT5_14244

:DESERT5_14286
goto @DESERT5_14508

:DESERT5_14293
156@ = 0

:DESERT5_14300
if 
  is_int_lvar_greater_than_int_lvar 66@ > 156@
goto_if_false @DESERT5_14409
if 
  Car.IsDead(64@(156@,2i))
goto_if_false @DESERT5_14388
if 
  166@(156@,2i) == 1
goto_if_false @DESERT5_14381
Blip.Remove(224@(156@,2i))
166@(156@,2i) = 0

:DESERT5_14381
goto @DESERT5_14395

:DESERT5_14388
168@ = 0

:DESERT5_14395
156@ += 1
goto @DESERT5_14300

:DESERT5_14409
if 
  168@ == 1
goto_if_false @DESERT5_14487
59@ = -1
220@ = Blip.AddForCoord(56@, 57@, 58@)
Text.PrintNow('DES5_9E', 10000, 4)
Text.Print('DES5_5J', 10000, 4)
169@ = 1

:DESERT5_14487
goto @DESERT5_14508

:DESERT5_14494
169@ = 1
goto @DESERT5_14508

:DESERT5_14508
goto @DESERT5_14593

:DESERT5_14515
  Car.LocateStopped3D(35@, 56@, 57@, 58@, 26.31, 26.31, 26.31, True)
if and
  Car.IsStoppedInArea2D(35@, 44@, 45@, 46@, 47@, False)
  not Car.IsInAirProper(35@)
  not Car.IsUpsidedown(35@)
goto_if_false @DESERT5_14593
235@ = 1

:DESERT5_14593
if 
  not Car.IsInAirProper(35@)
goto_if_false @DESERT5_14708
if 
  169@ <> 1
goto_if_false @DESERT5_14641
236@ = 1
goto @DESERT5_14708

:DESERT5_14641
if 
  not Char.IsInArea2D($scplayer, 44@, 45@, 46@, 47@, False)
goto_if_false @DESERT5_14685
236@ = 1
goto @DESERT5_14708

:DESERT5_14685
if 
  Car.IsUpsidedown(35@)
goto_if_false @DESERT5_14708
236@ = 1

:DESERT5_14708
if 
  not Char.LocateAnyMeans2D($scplayer, -450.0, 49@, 1250.0, 1250.0, False)
goto_if_false @DESERT5_14751
236@ = 1

:DESERT5_14751
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_15277
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_14850
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 80
148@ = 105
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_14878

:DESERT5_14850
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_14878
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[6]
goto_if_false @DESERT5_14927
set_lvar_int_to_var_int 237@ = $d5_best_scores[6]
set_var_int_to_var_int $d5_best_scores[6] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_14927
if 
  $d5_total_missions_open == 9
goto_if_false @DESERT5_14998
if 
  $overall_score > 69
goto_if_false @DESERT5_14998
Stat.IncrementInt(StatId.FlyingSkill, 60)
238@ = 2
$d5_total_missions_open = 10
$d5_last_played = 10
232@ = 2

:DESERT5_14998
gosub @DESERT5_27584

:DESERT5_15005
if 
  219@ == 0
goto_if_false @DESERT5_15096
wait 0
gosub @DESERT5_29289
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_15065
232@ = 2
goto @DESERT5_15096

:DESERT5_15065
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DESERT5_15089
goto @DESERT5_15096

:DESERT5_15089
goto @DESERT5_15005

:DESERT5_15096
gosub @DESERT5_27164
Sequence.Clear(71@)
Sequence.Clear(72@)
156@ = 0

:DESERT5_15120
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_15171
Car.Delete(60@(156@,3i))
Blip.Remove(221@(156@,3i))
156@ += 1
goto @DESERT5_15120

:DESERT5_15171
156@ = 0

:DESERT5_15178
if 
  is_int_lvar_greater_than_int_lvar 66@ > 156@
goto_if_false @DESERT5_15238
Char.Delete(67@(156@,2i))
Car.Delete(64@(156@,2i))
Blip.Remove(224@(156@,2i))
156@ += 1
goto @DESERT5_15178

:DESERT5_15238
if 
  232@ == 2
goto_if_false @DESERT5_15270
goto @DESERT5_2600
goto @DESERT5_15277

:DESERT5_15270
goto @DESERT5_12973

:DESERT5_15277
goto @DESERT5_13270

:DESERT5_15284
if 
  34@ == 10
goto_if_false @DESERT5_16962

:DESERT5_15302
gosub @DESERT5_24871

:DESERT5_15309
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
173@ = 0
174@ = 0
35@ = Car.Create(513, 53@, 113@, 114@)
Car.SetHeading(35@, 270.0)
if 
  231@ == 0
goto_if_false @DESERT5_15453
Camera.SetFixedPosition(269.53, 2445.3, 88.46, 0.0, 0.0, 0.0)
Camera.PointAtCar(35@, CameraMode.Fixed, SwitchType.JumpCut)
return 

:DESERT5_15453
Car.FreezePosition(35@, True)
wait 500
Text.ClearPrints
Text.PrintNow('DES5_AA', 5000, 4)
gosub @DESERT5_24908

:DESERT5_15490
wait 0
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_15529
232@ = 2
goto @DESERT5_16899

:DESERT5_15529
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_15598
if 
  Car.IsInWater(35@)
goto_if_false @DESERT5_15591
232@ = 2
goto @DESERT5_16899
goto @DESERT5_15598

:DESERT5_15591
goto @DESERT5_29911

:DESERT5_15598
if 
  233@ == 0
goto_if_false @DESERT5_15785
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_15778
Car.FreezePosition(35@, False)
Car.SetForwardSpeed(35@, 20.0)
233@ = 1
220@ = Blip.AddForCoord(112@, 113@, 114@)
127@ = Checkpoint.Create(CheckpointType.Torus, 112@, 113@, 114@, 0.0, 113@, 114@, 129@)
128@ = Checkpoint.Create(CheckpointType.Torus, 115@, 113@, 114@, 0.0, 113@, 114@, 129@)
Hud.DisplayTimerWithString($car_timer, TimerDirection.Up, 'DES5_T4')
Text.PrintNow('DES5_AA', 7000, 4)
Text.Print('DES5_AB', 10000, 4)

:DESERT5_15778
goto @DESERT5_16955

:DESERT5_15785
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_16955
if 
  173@ <> 1
goto_if_false @DESERT5_15943
if 
  Char.LocateInCar3D($scplayer, 112@, 113@, 114@, 129@, 129@, 129@, False)
goto_if_false @DESERT5_15936
Blip.Remove(220@)
Checkpoint.Delete(127@)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
173@ = 1
Text.PrintNow('DES5_AC', 5000, 4)
$d5_cur_pitch = Car.GetPitch(35@)
$d5_pitch_diff = 0.0
$d5_roll_progress = 0.0

:DESERT5_15936
goto @DESERT5_16488

:DESERT5_15943
if 
  174@ <> 1
goto_if_false @DESERT5_16415
$d5_pitch_progress = Car.GetRoll(35@)
if 
  0.0 > $d5_pitch_progress
goto_if_false @DESERT5_16000
$d5_pitch_progress += 360.0

:DESERT5_16000
$d5_negative_progress = Car.GetUprightValue(35@)
if 
  $d5_negative_progress >= 0.0
goto_if_false @DESERT5_16074
if and
  $d5_pitch_progress >= 20.0
  340.0 >= $d5_pitch_progress
goto_if_false @DESERT5_16067
236@ = 1

:DESERT5_16067
goto @DESERT5_16112

:DESERT5_16074
if or
  160.0 >= $d5_pitch_progress
  $d5_pitch_progress >= 200.0
goto_if_false @DESERT5_16112
236@ = 1

:DESERT5_16112
$pilot_cash_pickup = Car.GetPitch(35@)
set_var_float_to_var_float $d5_last_pitch = $pilot_cash_pickup
sub_float_var_from_float_var $d5_last_pitch -= $d5_cur_pitch
set_var_float_to_var_float $d5_cur_pitch = $pilot_cash_pickup
if 
  $d5_last_pitch > 180.0
goto_if_false @DESERT5_16175
$d5_last_pitch -= 360.0

:DESERT5_16175
if 
  -180.0 > $d5_last_pitch
goto_if_false @DESERT5_16206
$d5_last_pitch += 360.0

:DESERT5_16206
if 
  0.0 > $d5_last_pitch
goto_if_false @DESERT5_16242
add_float_var_to_float_var $d5_roll_progress += $d5_last_pitch
goto @DESERT5_16304

:DESERT5_16242
if 
  0.0 > $d5_roll_progress
goto_if_false @DESERT5_16278
add_float_var_to_float_var $d5_roll_progress += $d5_last_pitch
goto @DESERT5_16304

:DESERT5_16278
add_float_var_to_float_var $d5_pitch_diff += $d5_roll_progress
$d5_roll_progress = 0.0
add_float_var_to_float_var $d5_pitch_diff += $d5_last_pitch

:DESERT5_16304
if 
  -20.0 > $d5_roll_progress
goto_if_false @DESERT5_16332
236@ = 1

:DESERT5_16332
if 
  236@ <> 1
goto_if_false @DESERT5_16408
if 
  $d5_pitch_diff >= 360.0
goto_if_false @DESERT5_16408
174@ = 1
220@ = Blip.AddForCoord(115@, 113@, 114@)
Text.PrintNow('DES5_AD', 10000, 4)

:DESERT5_16408
goto @DESERT5_16488

:DESERT5_16415
if 
  Char.LocateInCar3D($scplayer, 115@, 113@, 114@, 129@, 129@, 129@, False)
goto_if_false @DESERT5_16488
Blip.Remove(220@)
Checkpoint.Delete(128@)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
235@ = 1

:DESERT5_16488
if 
  not Car.IsInAirProper(35@)
goto_if_false @DESERT5_16511
236@ = 1

:DESERT5_16511
if 
  not Char.LocateAnyMeans2D($scplayer, -450.0, 49@, 1250.0, 1250.0, False)
goto_if_false @DESERT5_16554
236@ = 1

:DESERT5_16554
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_16955
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_16653
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 21
148@ = 27
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_16681

:DESERT5_16653
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_16681
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[7]
goto_if_false @DESERT5_16730
set_lvar_int_to_var_int 237@ = $d5_best_scores[7]
set_var_int_to_var_int $d5_best_scores[7] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_16730
if 
  $d5_total_missions_open == 10
goto_if_false @DESERT5_16801
if 
  $overall_score > 69
goto_if_false @DESERT5_16801
Stat.IncrementInt(StatId.FlyingSkill, 60)
238@ = 2
$d5_total_missions_open = 11
$d5_last_played = 11
232@ = 2

:DESERT5_16801
gosub @DESERT5_27584

:DESERT5_16808
if 
  219@ == 0
goto_if_false @DESERT5_16899
wait 0
gosub @DESERT5_29289
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_16868
232@ = 2
goto @DESERT5_16899

:DESERT5_16868
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DESERT5_16892
goto @DESERT5_16899

:DESERT5_16892
goto @DESERT5_16808

:DESERT5_16899
gosub @DESERT5_27164
Checkpoint.Delete(127@)
Checkpoint.Delete(128@)
if 
  232@ == 2
goto_if_false @DESERT5_16948
goto @DESERT5_2600
goto @DESERT5_16955

:DESERT5_16948
goto @DESERT5_15302

:DESERT5_16955
goto @DESERT5_15490

:DESERT5_16962
if 
  34@ == 11
goto_if_false @DESERT5_18542

:DESERT5_16980
gosub @DESERT5_24871

:DESERT5_16987
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
173@ = 0
174@ = 0
35@ = Car.Create(513, 53@, 113@, 114@)
Car.SetHeading(35@, 270.0)
if 
  231@ == 0
goto_if_false @DESERT5_17131
Camera.SetFixedPosition(292.95, 2445.3, 93.46, 0.0, 0.0, 0.0)
Camera.PointAtCar(35@, CameraMode.Fixed, SwitchType.JumpCut)
return 

:DESERT5_17131
Car.FreezePosition(35@, True)
wait 500
Text.ClearPrints
Text.PrintNow('DES5_AA', 5000, 4)
gosub @DESERT5_24908

:DESERT5_17168
wait 0
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_17207
232@ = 2
goto @DESERT5_18479

:DESERT5_17207
gosub @DESERT5_25061
if 
  232@ == 1
goto_if_false @DESERT5_17276
if 
  Car.IsInWater(35@)
goto_if_false @DESERT5_17269
232@ = 2
goto @DESERT5_18479
goto @DESERT5_17276

:DESERT5_17269
goto @DESERT5_29911

:DESERT5_17276
if 
  233@ == 0
goto_if_false @DESERT5_17463
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_17456
Car.FreezePosition(35@, False)
Car.SetForwardSpeed(35@, 20.0)
233@ = 1
220@ = Blip.AddForCoord(112@, 113@, 114@)
127@ = Checkpoint.Create(CheckpointType.Torus, 112@, 113@, 114@, 0.0, 113@, 114@, 129@)
128@ = Checkpoint.Create(CheckpointType.Torus, 115@, 113@, 114@, 0.0, 113@, 114@, 129@)
Hud.DisplayTimerWithString($car_timer, TimerDirection.Up, 'DES5_T4')
Text.PrintNow('DES5_AA', 7000, 4)
Text.Print('DES5_BB', 10000, 4)

:DESERT5_17456
goto @DESERT5_18535

:DESERT5_17463
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_18535
if 
  173@ <> 1
goto_if_false @DESERT5_17654
if 
  Char.LocateInCar3D($scplayer, 112@, 113@, 114@, 129@, 129@, 129@, False)
goto_if_false @DESERT5_17647
Blip.Remove(220@)
Checkpoint.Delete(127@)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
173@ = 1
Text.ClearPrints
Text.PrintNow('DES5_BC', 5000, 4)
$d5_cur_roll = Car.GetRoll(35@)
if 
  0.0 > $d5_cur_roll
goto_if_false @DESERT5_17627
$d5_cur_roll += 360.0

:DESERT5_17627
$d5_roll_diff = 0.0
$d5_roll_progress = 0.0

:DESERT5_17647
goto @DESERT5_18068

:DESERT5_17654
if 
  174@ <> 1
goto_if_false @DESERT5_17995
$d5_pitch_progress = Car.GetRoll(35@)
if 
  0.0 > $d5_pitch_progress
goto_if_false @DESERT5_17711
$d5_pitch_progress += 360.0

:DESERT5_17711
set_var_float_to_var_float $d5_last_roll = $d5_pitch_progress
sub_float_var_from_float_var $d5_last_roll -= $d5_cur_roll
set_var_float_to_var_float $d5_cur_roll = $d5_pitch_progress
if 
  $d5_last_roll > 180.0
goto_if_false @DESERT5_17766
$d5_last_roll -= 360.0

:DESERT5_17766
if 
  -180.0 > $d5_last_roll
goto_if_false @DESERT5_17797
$d5_last_roll += 360.0

:DESERT5_17797
if 
  0.0 > $d5_last_roll
goto_if_false @DESERT5_17833
add_float_var_to_float_var $d5_roll_progress += $d5_last_roll
goto @DESERT5_17895

:DESERT5_17833
if 
  0.0 > $d5_roll_progress
goto_if_false @DESERT5_17869
add_float_var_to_float_var $d5_roll_progress += $d5_last_roll
goto @DESERT5_17895

:DESERT5_17869
add_float_var_to_float_var $d5_roll_diff += $d5_roll_progress
$d5_roll_progress = 0.0
add_float_var_to_float_var $d5_roll_diff += $d5_last_roll

:DESERT5_17895
if 
  -20.0 > $d5_roll_progress
goto_if_false @DESERT5_17930
236@ = 1
goto @DESERT5_17988

:DESERT5_17930
if 
  $d5_roll_diff >= 360.0
goto_if_false @DESERT5_17988
174@ = 1
220@ = Blip.AddForCoord(115@, 113@, 114@)
Text.PrintNow('DES5_AD', 10000, 4)

:DESERT5_17988
goto @DESERT5_18068

:DESERT5_17995
if 
  Char.LocateInCar3D($scplayer, 115@, 113@, 114@, 129@, 129@, 129@, False)
goto_if_false @DESERT5_18068
Blip.Remove(220@)
Checkpoint.Delete(128@)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
235@ = 1

:DESERT5_18068
if 
  not Car.IsInAirProper(35@)
goto_if_false @DESERT5_18091
236@ = 1

:DESERT5_18091
if 
  not Char.LocateAnyMeans2D($scplayer, -450.0, 49@, 1250.0, 1250.0, False)
goto_if_false @DESERT5_18134
236@ = 1

:DESERT5_18134
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_18535
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_18233
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 18
148@ = 23
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_18261

:DESERT5_18233
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_18261
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[8]
goto_if_false @DESERT5_18310
set_lvar_int_to_var_int 237@ = $d5_best_scores[8]
set_var_int_to_var_int $d5_best_scores[8] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_18310
if 
  $d5_total_missions_open == 11
goto_if_false @DESERT5_18381
if 
  $overall_score > 69
goto_if_false @DESERT5_18381
Stat.IncrementInt(StatId.FlyingSkill, 60)
238@ = 2
$d5_total_missions_open = 12
$d5_last_played = 12
232@ = 2

:DESERT5_18381
gosub @DESERT5_27584

:DESERT5_18388
if 
  219@ == 0
goto_if_false @DESERT5_18479
wait 0
gosub @DESERT5_29289
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_18448
232@ = 2
goto @DESERT5_18479

:DESERT5_18448
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DESERT5_18472
goto @DESERT5_18479

:DESERT5_18472
goto @DESERT5_18388

:DESERT5_18479
gosub @DESERT5_27164
Checkpoint.Delete(127@)
Checkpoint.Delete(128@)
if 
  232@ == 2
goto_if_false @DESERT5_18528
goto @DESERT5_2600
goto @DESERT5_18535

:DESERT5_18528
goto @DESERT5_16980

:DESERT5_18535
goto @DESERT5_17168

:DESERT5_18542
if 
  34@ == 12
goto_if_false @DESERT5_19958

:DESERT5_18560
gosub @DESERT5_24871

:DESERT5_18567
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
175@ = 0
176@ = 0
if 
  231@ == 0
goto_if_false @DESERT5_18780
70@ = Char.Create(PedType.Mission1, 0, 46@, 49@, 250.0)
Char.SetHeading(70@, 90.0)
Char.FreezePosition(70@, True)
set_var_float_to_lvar_float $play_open_timer = 136@
set_var_float_to_lvar_float $ai_target_x = 137@
set_var_float_to_lvar_float $ai_target_y = 138@
StreamedScript.StartNew(1, -1, -10.0, 10.0, -5.0, -2.0, 10.0, 12.0, 1, 70@)
StreamedScript.Stream(1)
Camera.AttachToCharLookAtChar(70@, 0.0, -5.0, 4.0, 70@, 0.0, SwitchType.JumpCut)
return 

:DESERT5_18780
Char.SetCoordinates($scplayer, 139@, 140@, 141@)
Char.SetHeading($scplayer, 90.0)
Streaming.RequestModel(371)

:DESERT5_18809
if 
  not Streaming.HasModelLoaded(371)
goto_if_false @DESERT5_18836
wait 0
goto @DESERT5_18809

:DESERT5_18836
Char.GiveWeapon($scplayer, WeaponType.Parachute, 1)
$para_float_Vy = 5.0
$para_float_Vz = -5.0
$para_flare_Vy = 8.5
$para_flare_Vz = -1.5
$para_freefall_Vz = -30.0
$para_freefall_Vy = 15.0
$para_pickup_flag = 0

:DESERT5_18912
if 
  2 > $player_has_parachute
goto_if_false @DESERT5_18941
wait 0
goto @DESERT5_18912

:DESERT5_18941
135@ = Object.Create(#BASEJUMP_TARGET, 136@, 137@, 138@)
Object.SetHeading(135@, 90.0)
143@ = Checkpoint.Create(CheckpointType.Torus, 136@, 137@, 138@, 136@, 137@, 900.0, 6.5)
wait 500
Text.ClearPrints
Text.PrintNow('DES5_CA', 7000, 4)
Text.Print('DES5_CI', 10000, 4)
gosub @DESERT5_24908

:DESERT5_19046
wait 0
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_19085
232@ = 2
goto @DESERT5_19842

:DESERT5_19085
if 
  233@ == 0
goto_if_false @DESERT5_19147
Hud.DisplayTimerWithString($car_timer, TimerDirection.Up, 'DES5_T4')
220@ = Blip.AddForCoord(136@, 137@, 138@)
233@ = 1
goto @DESERT5_19951

:DESERT5_19147
if 
  176@ <> 1
goto_if_false @DESERT5_19331
if 
  175@ <> 1
goto_if_false @DESERT5_19241
41@, 42@, 43@ = Char.GetCoordinates($scplayer)
if 
  300.0 >= 43@
goto_if_false @DESERT5_19241
175@ = 1
Text.PrintNow('DES5_CC', 10000, 4)

:DESERT5_19241
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @DESERT5_19331
176@ = 1
Text.ClearPrints
Text.PrintNow('DES5_CD', 7000, 4)
Text.Print('DES5_CF', 7000, 4)
Text.Print('DES5_CH', 7000, 4)
Text.Print('DES5_CE', 7000, 4)

:DESERT5_19331
if 
  176@ == 1
goto_if_false @DESERT5_19440
if 
  $player_landed == 1
goto_if_false @DESERT5_19440
41@, 42@, 43@ = Char.GetCoordinates($scplayer)
142@ = Math.GetDistanceBetweenCoords2D(41@, 42@, 136@, 137@)
if 
  10.0 >= 142@
goto_if_false @DESERT5_19433
235@ = 1
goto @DESERT5_19440

:DESERT5_19433
236@ = 1

:DESERT5_19440
if 
  not Char.LocateAnyMeans2D($scplayer, -450.0, 49@, 1250.0, 1250.0, False)
goto_if_false @DESERT5_19483
236@ = 1

:DESERT5_19483
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_19951
gosub @DESERT5_25331
if 
  235@ == 1
goto_if_false @DESERT5_19582
gosub @DESERT5_25952
gosub @DESERT5_26685
147@ = 55
148@ = 70
gosub @DESERT5_26846
gosub @DESERT5_27008
goto @DESERT5_19610

:DESERT5_19582
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_19610
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[9]
goto_if_false @DESERT5_19659
set_lvar_int_to_var_int 237@ = $d5_best_scores[9]
set_var_int_to_var_int $d5_best_scores[9] = $overall_score
238@ = 1
gosub @DESERT5_25376

:DESERT5_19659
if 
  $pilot_test_passed <> 1
goto_if_false @DESERT5_19744
if 
  $overall_score > 69
goto_if_false @DESERT5_19744
238@ = 2
$d5_total_missions_open = 12
$d5_last_played = 12
232@ = 2
Stat.IncrementInt(StatId.FlyingSkill, 60)
$pilot_test_passed = 1
177@ = 1

:DESERT5_19744
gosub @DESERT5_27584

:DESERT5_19751
if 
  219@ == 0
goto_if_false @DESERT5_19842
wait 0
gosub @DESERT5_29289
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DESERT5_19811
232@ = 2
goto @DESERT5_19842

:DESERT5_19811
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DESERT5_19835
goto @DESERT5_19842

:DESERT5_19835
goto @DESERT5_19751

:DESERT5_19842
gosub @DESERT5_27164
Char.FreezePosition($scplayer, False)
if 
  177@ == 1
goto_if_false @DESERT5_19912
Camera.DoFade(500, Fade.In)

:DESERT5_19881
if 
  Camera.GetFadingStatus
goto_if_false @DESERT5_19905
wait 0
goto @DESERT5_19881

:DESERT5_19905
goto @DESERT5_29949

:DESERT5_19912
if 
  232@ == 2
goto_if_false @DESERT5_19944
goto @DESERT5_2600
goto @DESERT5_19951

:DESERT5_19944
goto @DESERT5_18560

:DESERT5_19951
goto @DESERT5_19046

:DESERT5_19958
85@ = -383.79
set_lvar_float_to_lvar_float 93@ = 49@
101@ = 147.09
set_lvar_float_to_lvar_float 86@ = 85@
86@ -= 300.0
set_lvar_float_to_lvar_float 91@ = 85@
91@ -= 300.0
if or
  34@ == 3
  34@ == 5
goto_if_false @DESERT5_20090
set_lvar_float_to_lvar_float 94@ = 93@
94@ -= 300.0
set_lvar_float_to_lvar_float 99@ = 93@
99@ += 300.0
goto @DESERT5_20126

:DESERT5_20090
set_lvar_float_to_lvar_float 94@ = 93@
94@ += 300.0
set_lvar_float_to_lvar_float 99@ = 93@
99@ -= 300.0

:DESERT5_20126
set_lvar_float_to_lvar_float 102@ = 101@
set_lvar_float_to_lvar_float 107@ = 101@
130@ = 350.0
if or
  34@ == 3
  34@ == 5
goto_if_false @DESERT5_20194
131@ = 270.0
goto @DESERT5_20204

:DESERT5_20194
131@ = 90.0

:DESERT5_20204
set_lvar_float_to_lvar_float 133@ = 85@
133@ -= 600.0
set_lvar_float_to_lvar_float 134@ = 93@
156@ = 2

:DESERT5_20237
if 
  5 >= 156@
goto_if_false @DESERT5_20405
85@(156@,8f) = Math.Cos(131@)
93@(156@,8f) = Math.Sin(131@)
mult_float_lvar_by_float_lvar 85@(156@,8f) *= 130@
mult_float_lvar_by_float_lvar 93@(156@,8f) *= 130@
add_float_lvar_to_float_lvar 85@(156@,8f) += 133@
add_float_lvar_to_float_lvar 93@(156@,8f) += 134@
set_lvar_float_to_lvar_float 101@(156@,8f) = 101@
if or
  34@ == 3
  34@ == 5
goto_if_false @DESERT5_20381
131@ -= 60.0
goto @DESERT5_20391

:DESERT5_20381
131@ += 60.0

:DESERT5_20391
156@ += 1
goto @DESERT5_20237

:DESERT5_20405
set_lvar_float_to_lvar_float 92@ = 85@
set_lvar_float_to_lvar_float 100@ = 93@
set_lvar_float_to_lvar_float 108@ = 101@
if or
  34@ == 5
  34@ == 6
goto_if_false @DESERT5_20474
92@ += 20.0
108@ -= 30.0

:DESERT5_20474
return 

:DESERT5_20476
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(8, 320.0, 225.0, 612.0, 438.0, 0, 0, 0, 227@)
if 
  226@ == 1
goto_if_false @DESERT5_20598
if 
  255 > 227@
goto_if_false @DESERT5_20591
227@ += 5
if 
  227@ > 255
goto_if_false @DESERT5_20584
227@ = 255

:DESERT5_20584
goto @DESERT5_20598

:DESERT5_20591
226@ = 2

:DESERT5_20598
if 
  226@ == 3
goto_if_false @DESERT5_20680
if 
  227@ > 0
goto_if_false @DESERT5_20673
227@ -= 5
if 
  0 > 227@
goto_if_false @DESERT5_20666
227@ = 0

:DESERT5_20666
goto @DESERT5_20680

:DESERT5_20673
226@ = 0

:DESERT5_20680
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(8, 320.0, 0.0, 640.0, 197.0, 0, 0, 0, 255)
gosub @DESERT5_24751
Text.SetColor(255, 255, 255, 255)
if 
  34@ == 1
goto_if_false @DESERT5_20792
Text.Display(322.0, 31.0, 'DES5_MA')
set_lvar_int_to_var_int 228@ = $d5_best_scores[0]
gosub @DESERT5_22089

:DESERT5_20792
if 
  34@ == 2
goto_if_false @DESERT5_20846
Text.Display(322.0, 31.0, 'DES5_MB')
set_lvar_int_to_var_int 228@ = $d5_best_scores[1]
gosub @DESERT5_22089

:DESERT5_20846
if 
  34@ == 3
goto_if_false @DESERT5_20900
Text.Display(322.0, 31.0, 'DES5_MC')
set_lvar_int_to_var_int 228@ = $d5_best_scores[2]
gosub @DESERT5_22089

:DESERT5_20900
if 
  34@ == 4
goto_if_false @DESERT5_20954
Text.Display(322.0, 31.0, 'DES5_MC')
set_lvar_int_to_var_int 228@ = $d5_best_scores[2]
gosub @DESERT5_22089

:DESERT5_20954
if 
  34@ == 5
goto_if_false @DESERT5_21008
Text.Display(322.0, 31.0, 'DES5_MD')
set_lvar_int_to_var_int 228@ = $d5_best_scores[3]
gosub @DESERT5_22089

:DESERT5_21008
if 
  34@ == 6
goto_if_false @DESERT5_21062
Text.Display(322.0, 31.0, 'DES5_MD')
set_lvar_int_to_var_int 228@ = $d5_best_scores[3]
gosub @DESERT5_22089

:DESERT5_21062
if 
  34@ == 7
goto_if_false @DESERT5_21116
Text.Display(322.0, 31.0, 'DES5_ME')
set_lvar_int_to_var_int 228@ = $d5_best_scores[4]
gosub @DESERT5_22089

:DESERT5_21116
if 
  34@ == 8
goto_if_false @DESERT5_21170
Text.Display(322.0, 31.0, 'DES5_MF')
set_lvar_int_to_var_int 228@ = $d5_best_scores[5]
gosub @DESERT5_22089

:DESERT5_21170
if 
  34@ == 9
goto_if_false @DESERT5_21224
Text.Display(322.0, 31.0, 'DES5_MG')
set_lvar_int_to_var_int 228@ = $d5_best_scores[6]
gosub @DESERT5_22089

:DESERT5_21224
if 
  34@ == 10
goto_if_false @DESERT5_21278
Text.Display(322.0, 31.0, 'DES5_MH')
set_lvar_int_to_var_int 228@ = $d5_best_scores[7]
gosub @DESERT5_22089

:DESERT5_21278
if 
  34@ == 11
goto_if_false @DESERT5_21332
Text.Display(322.0, 31.0, 'DES5_MI')
set_lvar_int_to_var_int 228@ = $d5_best_scores[8]
gosub @DESERT5_22089

:DESERT5_21332
if 
  34@ == 12
goto_if_false @DESERT5_21386
Text.Display(322.0, 31.0, 'DES5_MJ')
set_lvar_int_to_var_int 228@ = $d5_best_scores[9]
gosub @DESERT5_22089

:DESERT5_21386
gosub @DESERT5_24631
152@, 153@, 154@, 155@ = Hud.GetColor(6)
Text.SetColor(152@, 153@, 154@, 155@)
Text.Display(105.0, 375.0, 'DES5_FO')
if 
  230@ <> 1
goto_if_false @DESERT5_21619
gosub @DESERT5_24631
152@, 153@, 154@, 155@ = Hud.GetColor(6)
Text.SetColor(152@, 153@, 154@, 155@)
Text.Display(105.0, 325.0, 'DES5_FP')
gosub @DESERT5_24631
if 
  $d5_total_missions_open <> 1
goto_if_false @DESERT5_21568
152@, 153@, 154@, 155@ = Hud.GetColor(6)
goto @DESERT5_21584

:DESERT5_21568
152@, 153@, 154@, 155@ = Hud.GetColor(HudObject.Radar)

:DESERT5_21584
Text.SetColor(152@, 153@, 154@, 155@)
Text.Display(105.0, 350.0, 'DES5_FN')

:DESERT5_21619
gosub @DESERT5_24631
Text.SetScale(1.45, 2.0)
152@, 153@, 154@, 155@ = Hud.GetColor(6)
Text.SetColor(152@, 153@, 154@, 155@)
Text.Display(70.0, 372.0, 'DES5_FL')
if 
  230@ <> 1
goto_if_false @DESERT5_21847
gosub @DESERT5_24631
Text.SetScale(1.45, 2.0)
152@, 153@, 154@, 155@ = Hud.GetColor(6)
Text.SetColor(152@, 153@, 154@, 155@)
Text.Display(70.0, 322.0, 'DES5_FM')
gosub @DESERT5_24631
Text.SetScale(1.45, 2.0)
152@, 153@, 154@, 155@ = Hud.GetColor(6)
Text.SetColor(152@, 153@, 154@, 155@)
Text.Display(61.4, 347.0, 'DES5_FK')

:DESERT5_21847
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 160.0, 317.0, 320.0, -224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 480.0, 317.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(9, 160.0, 435.0, 320.0, 17.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(9, 480.0, 435.0, -320.0, 17.0, 150, 150, 150, 255)
return 

:DESERT5_22089
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(8, 320.0, 430.0, 640.0, 250.0, 0, 0, 0, 255)
if 
  70 > 228@
goto_if_false @DESERT5_22151
229@ = 1

:DESERT5_22151
if 
  228@ > 69
goto_if_false @DESERT5_22194
if 
  85 > 228@
goto_if_false @DESERT5_22194
229@ = 2

:DESERT5_22194
if 
  228@ > 84
goto_if_false @DESERT5_22237
if 
  100 > 228@
goto_if_false @DESERT5_22237
229@ = 3

:DESERT5_22237
if 
  228@ == 100
goto_if_false @DESERT5_22262
229@ = 4

:DESERT5_22262
gosub @DESERT5_24631
Text.SetRightJustify(False)
Text.SetCenter(True)
152@, 153@, 154@, 155@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(152@, 153@, 154@, 155@)
if 
  229@ > 1
goto_if_false @DESERT5_22356
Text.DisplayWithNumber(320.0, 75.0, 'DES5_FQ', 228@)
goto @DESERT5_22377

:DESERT5_22356
Text.Display(320.0, 75.0, 'DES5_FR')

:DESERT5_22377
if 
  229@ > 1
goto_if_false @DESERT5_22482
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, 250.0, 306.0, -60.0, 60.0, 180, 180, 180, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, 395.0, 306.0, 60.0, 60.0, 180, 180, 180, 255)
goto @DESERT5_22562

:DESERT5_22482
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(7, 250.0, 306.0, -60.0, 60.0, 180, 180, 180, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(7, 395.0, 306.0, 60.0, 60.0, 180, 180, 180, 255)

:DESERT5_22562
Hud.SetSpritesDrawBeforeFade(True)
if 
  229@ == 1
goto_if_false @DESERT5_22748
242@ = Game.GetCurrentLanguage()
if 
  is_int_lvar_equal_to_constant 242@ == 0
goto_if_false @DESERT5_22650
Hud.DrawSprite(6, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
goto @DESERT5_22686

:DESERT5_22650
Hud.DrawSprite(10, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)

:DESERT5_22686
gosub @DESERT5_24631
Text.SetCenter(True)
152@, 153@, 154@, 155@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(152@, 153@, 154@, 155@)
Text.Display(320.0, 375.0, 'DES5_FS')

:DESERT5_22748
if 
  229@ == 2
goto_if_false @DESERT5_22864
Hud.DrawSprite(1, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
gosub @DESERT5_24631
Text.SetCenter(True)
152@, 153@, 154@, 155@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(152@, 153@, 154@, 155@)
Text.Display(320.0, 375.0, 'DES5_FF')

:DESERT5_22864
if 
  229@ == 3
goto_if_false @DESERT5_22980
Hud.DrawSprite(2, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
gosub @DESERT5_24631
Text.SetCenter(True)
152@, 153@, 154@, 155@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(152@, 153@, 154@, 155@)
Text.Display(320.0, 375.0, 'DES5_FE')

:DESERT5_22980
if 
  229@ == 4
goto_if_false @DESERT5_23096
Hud.DrawSprite(3, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
gosub @DESERT5_24631
Text.SetCenter(True)
152@, 153@, 154@, 155@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(152@, 153@, 154@, 155@)
Text.Display(320.0, 375.0, 'DES5_FD')

:DESERT5_23096
return 

:DESERT5_23098
if 
  231@ == 0
goto_if_false @DESERT5_23377
if 
  34@ == 1
goto_if_false @DESERT5_23141
gosub @DESERT5_3984

:DESERT5_23141
if 
  34@ == 2
goto_if_false @DESERT5_23166
gosub @DESERT5_5493

:DESERT5_23166
if 
  34@ == 4
goto_if_false @DESERT5_23191
gosub @DESERT5_6956

:DESERT5_23191
if 
  34@ == 6
goto_if_false @DESERT5_23216
gosub @DESERT5_8535

:DESERT5_23216
if 
  34@ == 7
goto_if_false @DESERT5_23241
gosub @DESERT5_10325

:DESERT5_23241
if 
  34@ == 8
goto_if_false @DESERT5_23266
gosub @DESERT5_11761

:DESERT5_23266
if 
  34@ == 9
goto_if_false @DESERT5_23291
gosub @DESERT5_12980

:DESERT5_23291
if 
  34@ == 10
goto_if_false @DESERT5_23316
gosub @DESERT5_15309

:DESERT5_23316
if 
  34@ == 11
goto_if_false @DESERT5_23341
gosub @DESERT5_16987

:DESERT5_23341
if 
  34@ == 12
goto_if_false @DESERT5_23366
gosub @DESERT5_18567

:DESERT5_23366
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
231@ = 1

:DESERT5_23377
if 
  231@ == 1
goto_if_false @DESERT5_23675
if 
  34@ <> 12
goto_if_false @DESERT5_23580
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_23559
150@ = 589
add_int_lvar_to_int_lvar 150@ += 34@
if 
  34@ == 4
goto_if_false @DESERT5_23470
150@ -= 1

:DESERT5_23470
if 
  34@ >= 6
goto_if_false @DESERT5_23495
150@ -= 2

:DESERT5_23495
if 
  not Streaming.HasCarRecordingBeenLoaded(150@)
goto_if_false @DESERT5_23523
Streaming.RequestCarRecording(150@)
goto @DESERT5_23552

:DESERT5_23523
Car.StartPlayback(35@, 150@)
gosub @DESERT5_24275
226@ = 3
231@ = 2

:DESERT5_23552
goto @DESERT5_23573

:DESERT5_23559
226@ = 3
231@ = 2

:DESERT5_23573
goto @DESERT5_23675

:DESERT5_23580
if 
  not Char.IsDead(70@)
goto_if_false @DESERT5_23661
if 
  Char.IsPlayingAnim(70@, "FALL_SKYDIVE")
goto_if_false @DESERT5_23654
Char.FreezePosition(70@, False)
TIMERB = 0
226@ = 3
231@ = 2

:DESERT5_23654
goto @DESERT5_23675

:DESERT5_23661
226@ = 3
231@ = 2

:DESERT5_23675
if 
  231@ == 2
goto_if_false @DESERT5_24033
if 
  34@ <> 12
goto_if_false @DESERT5_23956
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_23935
if 
  not Car.IsPlaybackGoingOn(35@)
goto_if_false @DESERT5_23771
Car.FreezePosition(35@, True)
226@ = 1
231@ = 4
goto @DESERT5_23928

:DESERT5_23771
Heli.SetBladesFullSpeed(35@)
if 
  34@ == 9
goto_if_false @DESERT5_23928
Heli.FireHunterGun(35@)
if and
  172@ <> 1
  not Car.IsDead(62@)
  TIMERB > 3000
goto_if_false @DESERT5_23842
Car.ExplodeInCutscene(62@)
172@ = 1

:DESERT5_23842
if and
  171@ <> 1
  not Car.IsDead(61@)
  TIMERB > 4500
goto_if_false @DESERT5_23885
Car.ExplodeInCutscene(61@)
171@ = 1

:DESERT5_23885
if and
  170@ <> 1
  not Car.IsDead(60@)
  TIMERB > 6000
goto_if_false @DESERT5_23928
Car.ExplodeInCutscene(60@)
170@ = 1

:DESERT5_23928
goto @DESERT5_23949

:DESERT5_23935
226@ = 1
231@ = 4

:DESERT5_23949
goto @DESERT5_24033

:DESERT5_23956
if 
  not Char.IsDead(70@)
goto_if_false @DESERT5_24019
if 
  TIMERB > 15000
goto_if_false @DESERT5_24012
Char.FreezePosition(70@, True)
226@ = 1
231@ = 4

:DESERT5_24012
goto @DESERT5_24033

:DESERT5_24019
226@ = 1
231@ = 4

:DESERT5_24033
if 
  231@ == 3
goto_if_false @DESERT5_24088
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_24074
Car.FreezePosition(35@, True)

:DESERT5_24074
226@ = 1
231@ = 4

:DESERT5_24088
if 
  231@ == 4
goto_if_false @DESERT5_24273
if 
  226@ == 2
goto_if_false @DESERT5_24273
Car.StopPlayback(35@)
Camera.RestoreJumpcut
Char.Delete(70@)
Car.Delete(35@)
156@ = 0

:DESERT5_24148
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_24190
Car.Delete(60@(156@,3i))
156@ += 1
goto @DESERT5_24148

:DESERT5_24190
Streaming.RemoveCarRecording(590)
Streaming.RemoveCarRecording(591)
Streaming.RemoveCarRecording(592)
Streaming.RemoveCarRecording(593)
Streaming.RemoveCarRecording(594)
Streaming.RemoveCarRecording(595)
Streaming.RemoveCarRecording(596)
Streaming.RemoveCarRecording(597)
Streaming.RemoveCarRecording(598)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
World.ClearArea($noticeboard_x, $noticeboard_y, $noticeboard_z, 300.0, True)
Hud.ClearTimer($car_timer)
Hud.FreezeTimer(False)
231@ = 0

:DESERT5_24273
return 

:DESERT5_24275
switch_start 34@ {numCases} 10 {hasDefaultCase} 1 {defaultLabel} @DESERT5_24600 {caseNum1} 1 {caseLabel1} @DESERT5_24403 {caseNum2} 2 {caseLabel2} @DESERT5_24427 {caseNum3} 3 {caseLabel3} @DESERT5_24451 {caseNum4} 4 {caseLabel4} @DESERT5_24451 {caseNum5} 5 {caseLabel5} @DESERT5_24480 {caseNum6} 6 {caseLabel6} @DESERT5_24480 {caseNum7} 7 {caseLabel7} @DESERT5_24504
switch_continued 9 {caseLabel1} @DESERT5_24528 {caseNum2} 10 {caseLabel2} @DESERT5_24552 {caseNum3} 11 {caseLabel3} @DESERT5_24576 {caseNum4} -1 {caseLabel4} @DESERT5_24607 {caseNum5} -1 {caseLabel5} @DESERT5_24607 {caseNum6} -1 {caseLabel6} @DESERT5_24607 {caseNum7} -1 {caseLabel7} @DESERT5_24607 {caseNum8} -1 {caseLabel8} @DESERT5_24607 {caseNum9} -1 {caseLabel9} @DESERT5_24607

:DESERT5_24403
Streaming.LoadScene(172.6, 2466.14, 17.05)
goto @DESERT5_24607

:DESERT5_24427
Streaming.LoadScene(27.29, 2466.31, 16.76)
goto @DESERT5_24607

:DESERT5_24451
Streaming.LoadSceneInDirection(-1251.02, 2301.32, 120.44, 60.0)
goto @DESERT5_24607

:DESERT5_24480
Streaming.LoadScene(-394.09, 2601.47, 134.89)
goto @DESERT5_24607

:DESERT5_24504
Streaming.LoadScene(323.02, 2446.81, 117.65)
goto @DESERT5_24607

:DESERT5_24528
Streaming.LoadScene(365.5, 2339.25, 63.23)
goto @DESERT5_24607

:DESERT5_24552
Streaming.LoadScene(269.53, 2445.3, 88.46)
goto @DESERT5_24607

:DESERT5_24576
Streaming.LoadScene(292.95, 2445.3, 93.46)
goto @DESERT5_24607

:DESERT5_24600
goto @DESERT5_24607

:DESERT5_24607
Streaming.LoadSceneInDirection(412.38, 2533.65, 18.18, 90.0)
return 

:DESERT5_24631
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(False)
Text.SetBackground(False)
Text.SetScale(0.52, 1.45)
Text.SetDropshadow(2, 0, 0, 0, 255)
Text.SetFont(Font.Menu)
return 

:DESERT5_24693
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
Text.SetScale(0.8, 2.6)
Text.SetDropshadow(2, 0, 0, 0, 255)
return 

:DESERT5_24751
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
Text.SetScale(1.2, 4.0)
Text.SetDropshadow(3, 0, 0, 0, 255)
Text.SetFont(Font.Pricedown)
return 

:DESERT5_24813
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
Text.SetScale(1.0, 3.4)
Text.SetDropshadow(3, 0, 0, 0, 255)
Text.SetFont(Font.Pricedown)
return 

:DESERT5_24871
Camera.DoFade(500, Fade.Out)

:DESERT5_24878
if 
  Camera.GetFadingStatus
goto_if_false @DESERT5_24902
wait 0
goto @DESERT5_24878

:DESERT5_24902
Camera.RestoreJumpcut
Camera.SetBehindPlayer
return 

:DESERT5_24908
if 
  34@ <> 12
goto_if_false @DESERT5_24950
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_24950
Char.WarpIntoCar($scplayer, 35@)

:DESERT5_24950
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
Streaming.RequestCollision($player_x, $player_y)
Streaming.LoadScene($player_x, $player_y, $player_z)
wait 0
if 
  34@ <> 9
goto_if_false @DESERT5_25009
Weather.ForceNow(WeatherType.ExtraSunnyDesert)

:DESERT5_25009
Hud.Display(True)
Hud.DisplayRadar(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(500, Fade.In)

:DESERT5_25028
if 
  Camera.GetFadingStatus
goto_if_false @DESERT5_25052
wait 0
goto @DESERT5_25028

:DESERT5_25052
Player.SetControl($player1, True)
return 

:DESERT5_25061
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_25128
if 
  233@ == 1
goto_if_false @DESERT5_25121
if 
  not Char.IsInCar($scplayer, 35@)
goto_if_false @DESERT5_25121
232@ = 1

:DESERT5_25121
goto @DESERT5_25135

:DESERT5_25128
232@ = 1

:DESERT5_25135
return 

:DESERT5_25137
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_25180
if 
  Char.IsInCar($scplayer, 35@)
goto_if_false @DESERT5_25180
$d5_plane_reached_required_altitude = Car.GetSpeed(35@)

:DESERT5_25180
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @DESERT5_25295
if 
  $d5_plane_reached_required_altitude > 0.1
goto_if_false @DESERT5_25295
Text.ClearPrints
if or
  34@ == 1
  34@ == 3
  34@ == 4
  34@ == 5
  34@ == 6
goto_if_false @DESERT5_25288
Hud.DisplayTimerWithString($car_timer, TimerDirection.Up, 'DES5_T4')

:DESERT5_25288
233@ = 1

:DESERT5_25295
return 
if 
  $car_timer == 0
goto_if_false @DESERT5_25329
Player.SetControl($player1, False)
Player.ApplyBrakesToCar($player1, True)

:DESERT5_25329
return 

:DESERT5_25331
Player.SetControl($player1, False)
if 
  34@ <> 12
goto_if_false @DESERT5_25363
goto @DESERT5_25370

:DESERT5_25363
Char.FreezePosition($scplayer, True)

:DESERT5_25370
Hud.FreezeTimer(True)
return 

:DESERT5_25376
229@ = 0
if 
  $overall_score > 69
goto_if_false @DESERT5_25465
if 
  85 > $overall_score
goto_if_false @DESERT5_25465
if and
  237@ > 69
  85 > 237@
goto_if_false @DESERT5_25458
229@ = 0
goto @DESERT5_25465

:DESERT5_25458
229@ = 2

:DESERT5_25465
if 
  $overall_score > 84
goto_if_false @DESERT5_25547
if 
  100 > $overall_score
goto_if_false @DESERT5_25547
if and
  237@ > 84
  100 > 237@
goto_if_false @DESERT5_25540
229@ = 0
goto @DESERT5_25547

:DESERT5_25540
229@ = 3

:DESERT5_25547
if 
  $overall_score == 100
goto_if_false @DESERT5_25604
if 
  237@ == 100
goto_if_false @DESERT5_25597
229@ = 0
goto @DESERT5_25604

:DESERT5_25597
229@ = 4

:DESERT5_25604
243@ = 1
244@ = 1
245@ = 1
156@ = 0

:DESERT5_25632
if 
  10 > 156@
goto_if_false @DESERT5_25826
if 
  $d5_bronze_generator_unlocked <> 1
goto_if_false @DESERT5_25704
if and
  70 > $d5_best_scores(156@,10i)
  243@ == 1
goto_if_false @DESERT5_25704
243@ = 0

:DESERT5_25704
if 
  $d5_silver_generator_unlocked <> 1
goto_if_false @DESERT5_25758
if and
  85 > $d5_best_scores(156@,10i)
  244@ == 1
goto_if_false @DESERT5_25758
244@ = 0

:DESERT5_25758
if 
  $d5_gold_generator_unlocked <> 1
goto_if_false @DESERT5_25812
if and
  100 > $d5_best_scores(156@,10i)
  245@ == 1
goto_if_false @DESERT5_25812
245@ = 0

:DESERT5_25812
156@ += 1
goto @DESERT5_25632

:DESERT5_25826
if and
  $d5_bronze_generator_unlocked <> 1
  243@ == 1
goto_if_false @DESERT5_25865
CarGenerator.Switch($d5_bronze_generator, 101)
$d5_bronze_generator_unlocked = 1

:DESERT5_25865
if and
  $d5_silver_generator_unlocked <> 1
  244@ == 1
goto_if_false @DESERT5_25904
CarGenerator.Switch($d5_silver_generator, 101)
$d5_silver_generator_unlocked = 1

:DESERT5_25904
if and
  $d5_gold_generator_unlocked <> 1
  245@ == 1
goto_if_false @DESERT5_25950
CarGenerator.Switch($d5_gold_generator, 101)
CarGenerator.Switch($f1_blood_car_gen[25], 101)
$d5_gold_generator_unlocked = 1

:DESERT5_25950
return 

:DESERT5_25952
if or
  34@ == 1
  34@ == 3
  34@ == 4
  34@ == 7
  34@ == 10
  34@ == 11
goto_if_false @DESERT5_26019
$position_score = 100
goto @DESERT5_26633

:DESERT5_26019
if 
  34@ <> 12
goto_if_false @DESERT5_26451
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_26437
$position_score = 100
if 
  34@ == 2
goto_if_false @DESERT5_26129
if 
  not Car.IsStoppedInArea3D(35@, 288.0, 45@, 16.0, 328.0, 47@, 18.0, False)
goto_if_false @DESERT5_26129
$position_score -= 50

:DESERT5_26129
if or
  34@ == 5
  34@ == 6
goto_if_false @DESERT5_26205
if 
  not Car.IsStoppedInArea3D(35@, 288.0, 45@, 16.0, 328.0, 47@, 18.0, True)
goto_if_false @DESERT5_26205
$position_score -= 50

:DESERT5_26205
if 
  34@ == 8
goto_if_false @DESERT5_26272
if 
  not Car.LocateStopped3D(35@, 56@, 57@, 58@, 26.31, 26.31, 26.31, True)
goto_if_false @DESERT5_26272
$position_score -= 50

:DESERT5_26272
if 
  34@ == 9
goto_if_false @DESERT5_26339
if 
  not Car.LocateStopped3D(35@, 56@, 57@, 58@, 26.31, 26.31, 26.31, True)
goto_if_false @DESERT5_26339
$position_score -= 50

:DESERT5_26339
40@ = Car.GetHeading(35@)
if or
  40@ < 260.0
  280.0 < 40@
goto_if_false @DESERT5_26430
if and
  40@ >= 181.0
  359.0 >= 40@
goto_if_false @DESERT5_26423
$position_score -= 10
goto @DESERT5_26430

:DESERT5_26423
$position_score -= 25

:DESERT5_26430
goto @DESERT5_26444

:DESERT5_26437
$position_score = 0

:DESERT5_26444
goto @DESERT5_26633

:DESERT5_26451
if 
  0.8 >= 142@
goto_if_false @DESERT5_26486
$position_score = 100
goto @DESERT5_26633

:DESERT5_26486
if 
  2.1 >= 142@
goto_if_false @DESERT5_26521
$position_score = 85
goto @DESERT5_26633

:DESERT5_26521
if 
  4.0 >= 142@
goto_if_false @DESERT5_26556
$position_score = 75
goto @DESERT5_26633

:DESERT5_26556
if 
  6.0 >= 142@
goto_if_false @DESERT5_26591
$position_score = 70
goto @DESERT5_26633

:DESERT5_26591
if 
  10.0 >= 142@
goto_if_false @DESERT5_26626
$position_score = 35
goto @DESERT5_26633

:DESERT5_26626
$position_score = 0

:DESERT5_26633
if 
  0 > $position_score
goto_if_false @DESERT5_26658
$position_score = 0

:DESERT5_26658
if 
  $position_score > 100
goto_if_false @DESERT5_26683
$position_score = 100

:DESERT5_26683
return 

:DESERT5_26685
if 
  34@ <> 12
goto_if_false @DESERT5_26837
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_26823
36@ = Car.GetHealth(35@)
$player_car_damage = 1000
sub_int_var_from_int_var $player_car_damage -= $instructor_car_health
145@ = 1000
sub_int_lvar_from_int_lvar 145@ -= 36@
145@ /= 10
if 
  0 > 145@
goto_if_false @DESERT5_26791
145@ = 0

:DESERT5_26791
if 
  145@ > 100
goto_if_false @DESERT5_26816
145@ = 100

:DESERT5_26816
goto @DESERT5_26830

:DESERT5_26823
145@ = 100

:DESERT5_26830
goto @DESERT5_26844

:DESERT5_26837
145@ = 0

:DESERT5_26844
return 

:DESERT5_26846
set_var_int_to_var_int $overall_secs = $car_timer
$overall_secs /= 1000
if 
  is_int_lvar_greater_or_equal_to_int_var 147@ >= $overall_secs
goto_if_false @DESERT5_26895
146@ = 100
goto @DESERT5_27006

:DESERT5_26895
set_lvar_int_to_var_int 146@ = $overall_secs
sub_int_lvar_from_int_lvar 146@ -= 147@
146@ *= 30
set_lvar_int_to_lvar_int 149@ = 148@
sub_int_lvar_from_int_lvar 149@ -= 147@
div_int_lvar_by_int_lvar 146@ /= 149@
146@ *= -1
146@ += 100
if 
  0 > 146@
goto_if_false @DESERT5_26981
146@ = 0

:DESERT5_26981
if 
  146@ > 100
goto_if_false @DESERT5_27006
146@ = 100

:DESERT5_27006
return 

:DESERT5_27008
set_var_int_to_lvar_int $overall_score = 146@
if or
  34@ == 2
  34@ == 5
  34@ == 6
  34@ == 8
  34@ == 9
  34@ == 12
goto_if_false @DESERT5_27084
add_int_var_to_int_var $overall_score += $position_score
$overall_score /= 2

:DESERT5_27084
if 
  34@ <> 12
goto_if_false @DESERT5_27110
sub_int_lvar_from_int_var $overall_score -= 145@

:DESERT5_27110
if 
  0 > $overall_score
goto_if_false @DESERT5_27135
$overall_score = 0

:DESERT5_27135
if 
  $overall_score > 100
goto_if_false @DESERT5_27160
$overall_score = 100

:DESERT5_27160
Text.ClearPrints
return 

:DESERT5_27164
Player.SetControl($player1, False)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1188)
Camera.DoFade(500, Fade.Out)

:DESERT5_27198
if 
  Camera.GetFadingStatus
goto_if_false @DESERT5_27229
wait 0
gosub @DESERT5_29289
goto @DESERT5_27198

:DESERT5_27229
Menu.Delete(144@)
Text.ClearHelp
Text.ClearPrints
Text.ClearThisBigPrint('DES5_SA')
Text.ClearThisBigPrint('DES5_SB')
Text.SetScale(1.0, 1.0)
Player.ApplyBrakesToCar($player1, False)
if 
  34@ == 12
goto_if_false @DESERT5_27314
Object.Delete(135@)
Char.RemoveWeapon($scplayer, WeaponType.Parachute)
Streaming.MarkModelAsNoLongerNeeded(371)

:DESERT5_27314
Camera.RestoreJumpcut
Char.Delete(70@)
Char.ClearTasksImmediately($scplayer)
Blip.Remove(220@)
Checkpoint.Delete(118@)
Checkpoint.Delete(143@)
if 
  232@ == 2
goto_if_false @DESERT5_27361
Text.ClearPrints

:DESERT5_27361
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_27403
if 
  Char.IsInCar($scplayer, 35@)
goto_if_false @DESERT5_27403
Car.FreezePosition(35@, True)

:DESERT5_27403
Char.FreezePosition($scplayer, True)
wait 0
Streaming.RequestCollision(412.38, 2533.65)
Streaming.LoadScene(412.38, 2533.65, 18.18)
World.ClearArea($noticeboard_x, $noticeboard_y, $noticeboard_z, 300.0, True)
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_27484
Car.FreezePosition(35@, False)

:DESERT5_27484
Char.FreezePosition($scplayer, False)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DESERT5_27534
Char.WarpFromCarToCoord($scplayer, 412.38, 2533.65, 18.18)
goto @DESERT5_27554

:DESERT5_27534
Char.SetCoordinates($scplayer, 412.38, 2533.65, 18.18)

:DESERT5_27554
Char.SetHeading($scplayer, 90.0)
Car.Delete(35@)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.ClearTimer($car_timer)
Hud.FreezeTimer(False)
return 

:DESERT5_27584
Player.SetControl($player1, False)
Camera.DoFade(200, Fade.Out)

:DESERT5_27598
if 
  Camera.GetFadingStatus
goto_if_false @DESERT5_27622
wait 0
goto @DESERT5_27598

:DESERT5_27622
Text.ClearHelp
Text.ClearPrints
Hud.ClearTimer($car_timer)
Blip.Remove(220@)
Checkpoint.Delete(118@)
if or
  34@ == 3
  34@ == 4
  34@ == 5
  34@ == 6
goto_if_false @DESERT5_27728
156@ = 0

:DESERT5_27687
if 
  8 > 156@
goto_if_false @DESERT5_27728
Checkpoint.Delete(119@(156@,8i))
156@ += 1
goto @DESERT5_27687

:DESERT5_27728
if 
  34@ == 9
goto_if_false @DESERT5_27844
156@ = 0

:DESERT5_27753
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_27795
Blip.Remove(221@(156@,3i))
156@ += 1
goto @DESERT5_27753

:DESERT5_27795
156@ = 0

:DESERT5_27802
if 
  is_int_lvar_greater_than_int_lvar 66@ > 156@
goto_if_false @DESERT5_27844
Blip.Remove(224@(156@,2i))
156@ += 1
goto @DESERT5_27802

:DESERT5_27844
if or
  34@ == 10
  34@ == 11
goto_if_false @DESERT5_27879
Checkpoint.Delete(127@)
Checkpoint.Delete(128@)

:DESERT5_27879
if 
  34@ == 12
goto_if_false @DESERT5_27924
Object.Delete(135@)
Checkpoint.Delete(143@)
Char.RemoveWeapon($scplayer, WeaponType.Parachute)
Streaming.MarkModelAsNoLongerNeeded(371)
Char.ClearTasksImmediately($scplayer)

:DESERT5_27924
Camera.RestoreJumpcut
Char.Delete(70@)
if 
  232@ == 2
goto_if_false @DESERT5_27951
Text.ClearPrints

:DESERT5_27951
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_27993
if 
  Char.IsInCar($scplayer, 35@)
goto_if_false @DESERT5_27993
Car.FreezePosition(35@, True)

:DESERT5_27993
Char.FreezePosition($scplayer, True)
wait 0
Streaming.RequestCollision(412.38, 2533.65)
Streaming.LoadScene(300.0, 2501.94, 19.65)
World.ClearArea($noticeboard_x, $noticeboard_y, $noticeboard_z, 300.0, True)
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_28074
Car.FreezePosition(35@, False)

:DESERT5_28074
Char.FreezePosition($scplayer, False)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DESERT5_28124
Char.WarpFromCarToCoord($scplayer, 412.38, 2533.65, 18.18)
goto @DESERT5_28144

:DESERT5_28124
Char.SetCoordinates($scplayer, 412.38, 2533.65, 18.18)

:DESERT5_28144
Char.SetHeading($scplayer, 90.0)
Car.Delete(35@)
Hud.Display(False)
Hud.DisplayRadar(False)
Camera.SetFixedPosition(370.0, 2501.94, 19.65, 0.0, 0.0, 0.0)
Camera.PointAtPoint(320.0, 2501.94, 19.65, SwitchType.JumpCut)
144@ = Menu.Create('DUMMY', 184.0, 200.0, 128.0, 2, False, True, 0)
Menu.SetColumn(144@, 1, 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumnOrientation(144@, 0, 1)
Menu.SetColumnOrientation(144@, 1, 0)
Menu.SetColumnWidth(144@, 0, 192)
Menu.SetColumnWidth(144@, 1, 64)
270@ = 0
if and
  238@ > 0
  229@ > 0
goto_if_false @DESERT5_28473
set_lvar_text_label 246@(270@,12s) = 'DUMMY'
270@ += 1

:DESERT5_28473
set_lvar_text_label 246@(270@,12s) = 'DES5_S3'
Menu.SetItemWithNumber(144@, 1, 270@, 'DES5_SC', $overall_secs)
270@ += 1
if or
  34@ == 2
  34@ == 5
  34@ == 6
  34@ == 8
  34@ == 9
  34@ == 12
goto_if_false @DESERT5_28620
set_lvar_text_label 246@(270@,12s) = 'DES5_S5'
Menu.SetItemWithNumber(144@, 1, 270@, 'DES5_SD', $position_score)
270@ += 1

:DESERT5_28620
if 
  34@ <> 12
goto_if_false @DESERT5_28685
set_lvar_text_label 246@(270@,12s) = 'DES5_S6'
Menu.SetItemWithNumber(144@, 1, 270@, 'DES5_SD', 145@)
270@ += 1

:DESERT5_28685
set_lvar_text_label 246@(270@,12s) = 'DES5_S7'
Menu.SetItemWithNumber(144@, 1, 270@, 'DES5_SD', $overall_score)
270@ += 1
if 
  238@ == 2
goto_if_false @DESERT5_29009
set_lvar_text_label 246@(270@,12s) = 'DUMMY'
270@ += 1
set_lvar_text_label 246@(270@,12s) = 'DES5_SF'
270@ += 1
if 
  $d5_pilot_licence_obtained <> 1
goto_if_false @DESERT5_29009
271@ = Stat.GetInt(StatId.FlyingSkill)
if 
  271@ >= 180
goto_if_false @DESERT5_29009
$d5_pilot_licence_obtained = 1
156@ = 0

:DESERT5_28859
if 
  24 >= 156@
goto_if_false @DESERT5_28927
if and
  156@ <> 8
  156@ <> 9
goto_if_false @DESERT5_28913
CarGenerator.Switch($f1_blood_car_gen(156@,28i), 101)

:DESERT5_28913
156@ += 1
goto @DESERT5_28859

:DESERT5_28927
CarGenerator.Switch($f1_blood_car_gen[27], 101)
156@ = 0

:DESERT5_28941
if 
  11 >= 156@
goto_if_false @DESERT5_28984
CarGenerator.Switch($5216(156@,12i), 0)
156@ += 1
goto @DESERT5_28941

:DESERT5_28984
set_lvar_text_label 246@(270@,12s) = 'DES5_SG'
270@ += 1

:DESERT5_29009
set_lvar_text_label 246@(270@,12s) = 'DUMMY'
270@ += 1
if 
  238@ == 2
goto_if_false @DESERT5_29077
set_lvar_text_label 246@(270@,12s) = 'DES5_S8'
goto @DESERT5_29095

:DESERT5_29077
set_lvar_text_label 246@(270@,12s) = 'DES5_SE'

:DESERT5_29095
270@ += 1
set_lvar_text_label 246@(270@,12s) = 'DES5_S9'
270@ += 1

:DESERT5_29127
if 
  12 > 270@
goto_if_false @DESERT5_29177
set_lvar_text_label 246@(270@,12s) = 'DUMMY'
270@ += 1
goto @DESERT5_29127

:DESERT5_29177
Menu.SetColumn(144@, 0, 'DUMMY', 246@s, 248@s, 250@s, 252@s, 254@s, 256@s, 258@s, 260@s, 262@s, 264@s, 266@s, 268@s)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1187)
Camera.DoFade(500, Fade.In)

:DESERT5_29256
if 
  Camera.GetFadingStatus
goto_if_false @DESERT5_29287
wait 0
gosub @DESERT5_29289
goto @DESERT5_29256

:DESERT5_29287
return 

:DESERT5_29289
if or
  238@ == 1
  238@ == 2
goto_if_false @DESERT5_29678
gosub @DESERT5_24813
Text.SetColor(255, 255, 255, 255)
Text.Display(320.0, 120.0, 'DES5_SB')
if 
  229@ > 0
goto_if_false @DESERT5_29678
gosub @DESERT5_24813
152@, 153@, 154@, 155@ = Hud.GetColor(6)
Text.SetColor(152@, 153@, 154@, 155@)
Text.Display(320.0, 85.0, 'DES5_SA')
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, 261.7, 200.0, -50.0, 50.0, 180, 180, 180, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, 378.3, 200.0, 50.0, 50.0, 180, 180, 180, 255)
Hud.SetSpritesDrawBeforeFade(True)
if 
  229@ == 2
goto_if_false @DESERT5_29570
Hud.DrawSprite(1, 320.0, 200.0, 91.7, 79.2, 160, 160, 160, 255)

:DESERT5_29570
if 
  229@ == 3
goto_if_false @DESERT5_29624
Hud.DrawSprite(2, 320.0, 200.0, 91.7, 79.2, 160, 160, 160, 255)

:DESERT5_29624
if 
  229@ == 4
goto_if_false @DESERT5_29678
Hud.DrawSprite(3, 320.0, 200.0, 91.7, 79.2, 160, 160, 160, 255)

:DESERT5_29678
return 

:DESERT5_29680
if or
  215@ == 0
  215@ == 1
goto_if_false @DESERT5_29750
if 
  is_int_lvar_greater_than_int_lvar 217@ > 216@
goto_if_false @DESERT5_29750
if 
  TIMERB > 200
goto_if_false @DESERT5_29750
gosub @DESERT5_29815

:DESERT5_29750
if 
  215@ == 2
goto_if_false @DESERT5_29813
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DESERT5_29813
215@ = 0
216@ += 1
218@ = 0
Text.ClearPrints
TIMERB = 0

:DESERT5_29813
return 

:DESERT5_29815
if 
  215@ == 0
goto_if_false @DESERT5_29851
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 203@(216@,12i))
215@ = 1

:DESERT5_29851
if 
  215@ == 1
goto_if_false @DESERT5_29909
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DESERT5_29909
Text.PrintNow(179@(216@,12s), 10000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
215@ = 2

:DESERT5_29909
return 

:DESERT5_29911
Text.ClearPrints
if 
  232@ == 1
goto_if_false @DESERT5_29947
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)

:DESERT5_29947
return 

:DESERT5_29949
if 
  $pilot_test_passed <> 1
goto_if_false @DESERT5_29974
$pilot_test_passed = 1

:DESERT5_29974
if 
  $pilot_test_passed == 1
goto_if_false @DESERT5_30096
Stat.RegisterMissionPassed('DESERT5')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSR', 5, 5000, TextStyle.Middle)
Stat.SetInt(StatId.PassedDesert5, 1)
Stat.AwardPlayerMissionRespect(5)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Blip.Remove($pilot_contact_blip)
$pilot_contact_blip = Blip.AddShortRangeSpriteForContactPoint($pilotx, $piloty, $pilotz, $pilot_blip_icon)
Blip.Remove($desert2_contact_blip)
$desert2_contact_blip = Blip.AddSpriteForContactPoint($desert2X, $desert2Y, $desert2Z, $desert2_blip_icon)
$flag_desert_mission_counter += 1

:DESERT5_30096
return 

:DESERT5_30098
Streaming.MarkModelAsNoLongerNeeded(476)
Streaming.MarkModelAsNoLongerNeeded(425)
Streaming.MarkModelAsNoLongerNeeded(514)
Streaming.MarkModelAsNoLongerNeeded(400)
Streaming.MarkModelAsNoLongerNeeded(513)
Streaming.MarkModelAsNoLongerNeeded(371)
Streaming.MarkModelAsNoLongerNeeded(330)
StreamedScript.MarkAsNoLongerNeeded(1)
Txd.Remove
Blip.Remove(220@)
Checkpoint.Delete(118@)
156@ = 0

:DESERT5_30156
if 
  8 > 156@
goto_if_false @DESERT5_30197
Checkpoint.Delete(119@(156@,8i))
156@ += 1
goto @DESERT5_30156

:DESERT5_30197
Checkpoint.Delete(127@)
Checkpoint.Delete(128@)
Checkpoint.Delete(143@)
156@ = 0

:DESERT5_30219
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_30261
Blip.Remove(221@(156@,3i))
156@ += 1
goto @DESERT5_30219

:DESERT5_30261
156@ = 0

:DESERT5_30268
if 
  is_int_lvar_greater_than_int_lvar 66@ > 156@
goto_if_false @DESERT5_30310
Blip.Remove(224@(156@,2i))
156@ += 1
goto @DESERT5_30268

:DESERT5_30310
Text.ClearHelp
Text.ClearThisBigPrint('DES5_SA')
Text.ClearThisBigPrint('DES5_SB')
Sequence.Clear(71@)
Sequence.Clear(72@)
Game.SetAlwaysDraw3DMarkers(False)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Text.UseCommands(False)
Menu.Delete(144@)
Object.Delete(135@)
$para_pickup_flag = 1
if 
  not Car.IsDead(35@)
goto_if_false @DESERT5_30404
Car.StopPlayback(35@)

:DESERT5_30404
Car.Delete(35@)
156@ = 0

:DESERT5_30416
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_30458
Car.Delete(60@(156@,3i))
156@ += 1
goto @DESERT5_30416

:DESERT5_30458
Streaming.RemoveCarRecording(590)
Streaming.RemoveCarRecording(591)
Streaming.RemoveCarRecording(592)
Streaming.RemoveCarRecording(593)
Streaming.RemoveCarRecording(594)
Streaming.RemoveCarRecording(595)
Streaming.RemoveCarRecording(596)
Streaming.RemoveCarRecording(597)
Streaming.RemoveCarRecording(598)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1188)
Hud.ClearTimer($car_timer)
Hud.FreezeTimer(False)
Weather.Release
Hud.DisplayRadar(True)
Stat.ShowUpdateStats(True)
Game.SetArea51SamSite(True)
Game.SwitchPoliceHelis(True)
Game.SetMaxWantedLevel(239@)
if 
  is_var_text_label_empty s$shop_name
goto_if_false @DESERT5_30577
Camera.RestoreJumpcut

:DESERT5_30577
Char.Delete(70@)
Camera.SetBehindPlayer
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 84---------------
// Originally: Fender Ketchup

:CASINO1
script_name 'CASINO1'
gosub @CASINO1_484
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO1_38
gosub @CASINO1_19524

:CASINO1_38
gosub @CASINO1_19606
terminate_this_script 

:CASINO1_47
Streaming.LoadScene(326@, 327@, 328@)
Streaming.LoadSpecialCharacter(1, 'SINDACO')
Streaming.RequestModel(533)
Streaming.RequestAnimation("CAR")
Streaming.LoadAllModelsNow

:CASINO1_85
if or
  not Streaming.HasModelLoaded(533)
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasAnimationLoaded("CAR")
goto_if_false @CASINO1_123
wait 0
goto @CASINO1_85

:CASINO1_123
return 

:CASINO1_125
326@ = 1903.857
327@ = 974.1888
328@ = 9.8127
329@ = 177.4801
Audio.SetRadioChannel(RadioChannel.KRose)
322@ = Car.Create(533, 326@, 327@, 328@)
Car.SetHeading(322@, 329@)
Car.SetCanBurstTires(322@, False)
324@ = Char.Create(PedType.Special, 290, 0.0, 0.0, 0.0)
Char.AttachToCar(324@, 322@, 0.0, 1.266, 0.391, 0, 0.0, WeaponType.Unarmed)
Char.SetHealth(324@, 300)
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_LOW", "CAR", 4.0, False, False, False, True, 0)
320@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Char.SetDecisionMaker(324@, 320@)
DecisionMakerChar.ClearEventResponse(320@, 12)
DecisionMakerChar.ClearEventResponse(320@, 13)
DecisionMakerChar.ClearEventResponse(320@, 56)
Car.SetHealth(322@, 1000)
return 
323@ = Blip.AddForCar(322@)
50@ = Blip.AddForCoord(79@, 80@, 81@)

:CASINO1_372
Streaming.MarkModelAsNoLongerNeeded(533)
return 

:CASINO1_379
Streaming.RequestModel(118)

:CASINO1_383
if 
  not Streaming.HasModelLoaded(118)
goto_if_false @CASINO1_409
wait 0
goto @CASINO1_383

:CASINO1_409
337@ = 1911.024
338@ = 956.8084
339@ = 9.8203
340@ = 95.5462
334@ = Char.Create(PedType.CivMale, 118, 337@, 338@, 339@)
Char.SetHeading(334@, 340@)
return 

:CASINO1_477
Char.Delete(334@)
return 

:CASINO1_484
Stat.RegisterMissionGiven
$onmission = 1
wait 0
34@ = -1
35@ = 0
36@ = 0
98@ = 0
$ca1_spooked = 0
47@ = 0
48@ = 0
39@ = 0
40@ = 0
41@ = 0
42@ = 0
43@ = 0
44@ = 0
45@ = 0
95@ = 0
38@ = 0
49@ = 0
$ca1_test = 0
58@ = 0
59@ = 0
57@ = 0
335@ = 1
70@ = 0.1
79@ = 1904.75
80@ = 960.74
81@ = 9.36
308@ = 1427.4
312@ = 2666.4
316@ = 13.01
303@ = 1
304@ = 2
305@ = 0
306@ = 1
307@ = 0
set_lvar_text_label 104@s = 'CAS1_AA'
set_lvar_text_label 106@s = 'CAS1_AB'
set_lvar_text_label 108@s = 'CAS1_AC'
set_lvar_text_label 110@s = 'CAS1_AD'
set_lvar_text_label 112@s = 'CAS1_AE'
set_lvar_text_label 114@s = 'CAS1_BA'
set_lvar_text_label 116@s = 'CAS1_BB'
set_lvar_text_label 118@s = 'CAS1_BC'
set_lvar_text_label 120@s = 'CAS1_BD'
set_lvar_text_label 122@s = 'CAS1_BE'
set_lvar_text_label 124@s = 'CAS1_CA'
set_lvar_text_label 126@s = 'CAS1_CB'
set_lvar_text_label 128@s = 'CAS1_CC'
set_lvar_text_label 130@s = 'CAS1_CD'
set_lvar_text_label 132@s = 'CAS1_CE'
set_lvar_text_label 134@s = 'CAS1_DA'
set_lvar_text_label 136@s = 'CAS1_DB'
set_lvar_text_label 138@s = 'CAS1_DC'
set_lvar_text_label 140@s = 'CAS1_DD'
set_lvar_text_label 142@s = 'CAS1_DE'
set_lvar_text_label 144@s = 'CAS1_EA'
set_lvar_text_label 146@s = 'CAS1_EB'
set_lvar_text_label 148@s = 'CAS1_EC'
set_lvar_text_label 150@s = 'CAS1_ED'
set_lvar_text_label 152@s = 'CAS1_EE'
set_lvar_text_label 154@s = 'CAS1_EF'
set_lvar_text_label 156@s = 'CAS1_EG'
set_lvar_text_label 158@s = 'CAS1_EH'
set_lvar_text_label 160@s = 'CAS1_EI'
set_lvar_text_label 162@s = 'CAS1_EJ'
set_lvar_text_label 164@s = 'CAS1_EK'
set_lvar_text_label 166@s = 'CAS1_EL'
set_lvar_text_label 168@s = 'CAS1_EM'
set_lvar_text_label 170@s = 'CAS1_EN'
set_lvar_text_label 172@s = 'CAS1_EO'
set_lvar_text_label 174@s = 'CAS1_EP'
set_lvar_text_label 176@s = 'CAS1_EQ'
set_lvar_text_label 180@s = 'CAS1_ES'
set_lvar_text_label 182@s = 'CAS1_ET'
set_lvar_text_label 184@s = 'CAS1_EU'
set_lvar_text_label 186@s = 'CAS1_EV'
set_lvar_text_label 190@s = 'CAS1_EX'
set_lvar_text_label 192@s = 'CAS1_EY'
set_lvar_text_label 194@s = 'CAS1_EZ'
set_lvar_text_label 196@s = 'CAS1_FA'
set_lvar_text_label 198@s = 'CAS1_FB'
set_lvar_text_label 200@s = 'CAS1_GA'
set_lvar_text_label 202@s = 'CAS1_GB'
set_lvar_text_label 204@s = 'CAS1_GC'
set_lvar_text_label 206@s = 'CAS1_GD'
set_lvar_text_label 208@s = 'CAS1_GE'
set_lvar_text_label 210@s = 'CAS1_HA'
set_lvar_text_label 212@s = 'CAS1_HB'
set_lvar_text_label 214@s = 'CAS1_HC'
set_lvar_text_label 216@s = 'CAS1_HD'
set_lvar_text_label 218@s = 'CAS1_HE'
set_lvar_text_label 220@s = 'CAS1_JA'
set_lvar_text_label 222@s = 'CAS1_JB'
set_lvar_text_label 224@s = 'CAS1B00'
set_lvar_text_label 226@s = 'CAS1B02'
set_lvar_text_label 228@s = 'CAS1B03'
set_lvar_text_label 230@s = 'CAS1B04'
set_lvar_text_label 232@s = 'CAS1B05'
set_lvar_text_label 234@s = 'CAS1B06'
set_lvar_int_to_constant 237@ = 21600
set_lvar_int_to_constant 238@ = 21657
set_lvar_int_to_constant 239@ = 21658
set_lvar_int_to_constant 240@ = 21601
set_lvar_int_to_constant 241@ = 21659
set_lvar_int_to_constant 242@ = 21602
set_lvar_int_to_constant 243@ = 21603
set_lvar_int_to_constant 244@ = 21604
set_lvar_int_to_constant 245@ = 21605
set_lvar_int_to_constant 246@ = 21606
set_lvar_int_to_constant 247@ = 21607
set_lvar_int_to_constant 248@ = 21608
set_lvar_int_to_constant 249@ = 21609
set_lvar_int_to_constant 250@ = 21610
set_lvar_int_to_constant 251@ = 21611
set_lvar_int_to_constant 252@ = 21612
set_lvar_int_to_constant 253@ = 21613
set_lvar_int_to_constant 254@ = 21614
set_lvar_int_to_constant 255@ = 21615
set_lvar_int_to_constant 256@ = 21616
set_lvar_int_to_constant 257@ = 21617
set_lvar_int_to_constant 258@ = 21618
set_lvar_int_to_constant 259@ = 21619
set_lvar_int_to_constant 260@ = 21620
set_lvar_int_to_constant 261@ = 21621
set_lvar_int_to_constant 262@ = 21622
set_lvar_int_to_constant 263@ = 21623
set_lvar_int_to_constant 264@ = 21624
set_lvar_int_to_constant 265@ = 21625
set_lvar_int_to_constant 266@ = 21626
set_lvar_int_to_constant 267@ = 21627
set_lvar_int_to_constant 268@ = 21628
set_lvar_int_to_constant 269@ = 21629
set_lvar_int_to_constant 270@ = 21630
set_lvar_int_to_constant 271@ = 21631
set_lvar_int_to_constant 272@ = 21632
set_lvar_int_to_constant 273@ = 21633
set_lvar_int_to_constant 275@ = 21634
set_lvar_int_to_constant 276@ = 21635
set_lvar_int_to_constant 277@ = 21636
set_lvar_int_to_constant 278@ = 21637
set_lvar_int_to_constant 280@ = 21639
set_lvar_int_to_constant 281@ = 21640
set_lvar_int_to_constant 282@ = 21641
set_lvar_int_to_constant 283@ = 21642
set_lvar_int_to_constant 284@ = 21643
set_lvar_int_to_constant 285@ = 21645
set_lvar_int_to_constant 286@ = 21660
set_lvar_int_to_constant 287@ = 21646
set_lvar_int_to_constant 288@ = 21661
set_lvar_int_to_constant 289@ = 21647
set_lvar_int_to_constant 290@ = 21648
set_lvar_int_to_constant 291@ = 21649
set_lvar_int_to_constant 292@ = 21650
set_lvar_int_to_constant 293@ = 21651
set_lvar_int_to_constant 294@ = 21652
set_lvar_int_to_constant 295@ = 21653
set_lvar_int_to_constant 296@ = 21662
set_lvar_int_to_constant 297@ = 21663
set_lvar_int_to_constant 298@ = 21654
set_lvar_int_to_constant 299@ = 21665
set_lvar_int_to_constant 300@ = 21655
set_lvar_int_to_constant 301@ = 21666
set_lvar_int_to_constant 302@ = 21656
Text.LoadMissionText('CASINO1')
Player.SetGroupRecruitment($player1, False)
Camera.DoFade(500, Fade.Out)

:CASINO1_2189
if 
  Camera.GetFadingStatus
goto_if_false @CASINO1_2213
wait 0
goto @CASINO1_2189

:CASINO1_2213
Streaming.SetAreaVisible(11)
Cutscene.Load('CAS_1A')

:CASINO1_2228
if 
  not Cutscene.HasLoaded
goto_if_false @CASINO1_2252
wait 0
goto @CASINO1_2228

:CASINO1_2252
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CASINO1_2261
if 
  not Cutscene.HasFinished
goto_if_false @CASINO1_2285
wait 0
goto @CASINO1_2261

:CASINO1_2285
Camera.DoFade(0, Fade.Out)

:CASINO1_2291
if 
  Camera.GetFadingStatus
goto_if_false @CASINO1_2315
wait 0
goto @CASINO1_2291

:CASINO1_2315
Cutscene.Clear
Player.SetControl($player1, False)
Player.AlterWantedLevel($player1, 0)
Streaming.SetAreaVisible(0)
Char.SetHasUsedEntryExit($scplayer, 2016.422, 1017.102, 10.0)
Camera.SetFirstPersonInCarMode(False)
Camera.SetFixedPosition(1908.156, 977.3071, 10.2294, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1907.488, 976.5921, 10.4377, SwitchType.JumpCut)
World.ClearArea(1903.27, 955.95, 9.8203, 30.0, True)
Char.SetCoordinates($scplayer, 1909.826, 977.4828, 9.8127)
Char.SetHeading($scplayer, 136.9741)
Streaming.RequestModel(#TRDCSGRGDOOR_LVS)
Streaming.LoadAllModelsNow

:CASINO1_2470
if 
  not Streaming.HasModelLoaded(#TRDCSGRGDOOR_LVS)
goto_if_false @CASINO1_2496
wait 0
goto @CASINO1_2470

:CASINO1_2496
gosub @CASINO1_47
gosub @CASINO1_125
Streaming.LoadSceneInDirection(1908.156, 977.3071, 10.2294, 136.9741)
Hud.SwitchWidescreen(True)
wait 150
Camera.DoFade(1500, Fade.In)

:CASINO1_2548
if 
  Camera.GetFadingStatus
goto_if_false @CASINO1_2572
wait 0
goto @CASINO1_2548

:CASINO1_2572
if 
  not Char.IsDead(324@)
goto_if_false @CASINO1_2601
Task.LookAtChar($scplayer, 324@, 100000)

:CASINO1_2601
wait 0
if 
  305@ <> 0
goto_if_false @CASINO1_3234
if 
  307@ == 0
goto_if_false @CASINO1_2669
if 
  Audio.HasMissionAudioLoaded(304@)
goto_if_false @CASINO1_2662
Audio.ClearMissionAudio(304@)

:CASINO1_2662
307@ = 1

:CASINO1_2669
if 
  307@ == 1
goto_if_false @CASINO1_2706
Audio.LoadMissionAudio(303@, 236@(305@,67i))
307@ = 2

:CASINO1_2706
if 
  307@ == 2
goto_if_false @CASINO1_2864
if 
  Audio.HasMissionAudioLoaded(303@)
goto_if_false @CASINO1_2864
if or
  305@ == 61
  305@ == 63
goto_if_false @CASINO1_2789
if 
  not Char.IsDead(324@)
goto_if_false @CASINO1_2789
Char.StartFacialTalk(324@, 10000)

:CASINO1_2789
if or
  305@ == 62
  305@ == 64
goto_if_false @CASINO1_2838
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO1_2838
Char.StartFacialTalk($scplayer, 10000)

:CASINO1_2838
Audio.PlayMissionAudio(303@)
Text.PrintNow(102@(305@,67s), 10000, 1)
307@ = 3

:CASINO1_2864
if 
  307@ == 3
goto_if_false @CASINO1_3234
if 
  Audio.HasMissionAudioFinished(303@)
goto_if_false @CASINO1_3173
Text.ClearThisPrint(102@(305@,67s))
if or
  305@ == 61
  305@ == 63
goto_if_false @CASINO1_2953
if 
  not Char.IsDead(324@)
goto_if_false @CASINO1_2953
Char.StopFacialTalk(324@)

:CASINO1_2953
if or
  305@ == 62
  305@ == 64
goto_if_false @CASINO1_2999
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO1_2999
Char.StopFacialTalk($scplayer)

:CASINO1_2999
if 
  303@ == 1
goto_if_false @CASINO1_3038
303@ = 2
304@ = 1
goto @CASINO1_3052

:CASINO1_3038
303@ = 1
304@ = 2

:CASINO1_3052
305@ = 0
307@ = 0
if 
  35@ == 0
goto_if_false @CASINO1_3091
35@ = 1

:CASINO1_3091
if 
  35@ == 4
goto_if_false @CASINO1_3116
35@ = 5

:CASINO1_3116
if 
  35@ == 3
goto_if_false @CASINO1_3141
35@ = 4

:CASINO1_3141
if 
  35@ == 7
goto_if_false @CASINO1_3166
35@ = 8

:CASINO1_3166
goto @CASINO1_3234

:CASINO1_3173
if 
  not Audio.HasMissionAudioLoaded(304@)
goto_if_false @CASINO1_3234
if 
  66 > 305@
goto_if_false @CASINO1_3234
set_lvar_int_to_lvar_int 306@ = 305@
306@ += 1
Audio.LoadMissionAudio(304@, 236@(306@,67i))

:CASINO1_3234
if 
  not Char.IsDead(324@)
goto_if_false @CASINO1_3359
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_LOW")
goto_if_false @CASINO1_3359
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_LOW")
if 
  96@ == 1.0
goto_if_false @CASINO1_3359
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_LOW", "CAR", 4.0, False, False, False, True, 0)

:CASINO1_3359
if 
  35@ > 0
goto_if_false @CASINO1_3401
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO1_3401
35@ = 10

:CASINO1_3401
if 
  35@ == 0
goto_if_false @CASINO1_3451
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_3451
305@ = 61

:CASINO1_3451
if 
  35@ == 1
goto_if_false @CASINO1_3500
Task.GoStraightToCoord($scplayer, 1905.45, 973.9371, 9.8127, MoveState.Walk, -2)
35@ = 2

:CASINO1_3500
if 
  35@ == 2
goto_if_false @CASINO1_3629
97@ = Char.GetScriptTaskStatus($scplayer, 1491)
if 
  is_int_lvar_equal_to_constant 97@ == 7
goto_if_false @CASINO1_3629
if 
  not Char.IsDead(324@)
goto_if_false @CASINO1_3629
Task.TurnCharToFaceChar($scplayer, 324@)
Camera.SetFixedPosition(1903.005, 974.7813, 11.1887, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1903.732, 974.0975, 11.2553, SwitchType.JumpCut)
35@ = 3

:CASINO1_3629
if 
  35@ == 3
goto_if_false @CASINO1_3679
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_3679
305@ = 62

:CASINO1_3679
if or
  35@ == 4
  35@ == 5
goto_if_false @CASINO1_3741
  Object.Slide($init_ped_density, 1903.383, 967.62, 15.438, 0.0, 0.0, 0.1, False)

:CASINO1_3741
if 
  35@ == 9
goto_if_false @CASINO1_3796
  Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.05, False)

:CASINO1_3796
if 
  35@ == 4
goto_if_false @CASINO1_3846
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_3846
305@ = 63

:CASINO1_3846
if 
  35@ == 5
goto_if_false @CASINO1_3897
if 
  not Car.IsDead(322@)
goto_if_false @CASINO1_3897
Task.EnterCarAsDriver($scplayer, 322@, -2)
35@ = 6

:CASINO1_3897
if 
  35@ == 6
goto_if_false @CASINO1_4039
97@ = Char.GetScriptTaskStatus($scplayer, 1483)
if 
  is_int_lvar_equal_to_constant 97@ == 7
goto_if_false @CASINO1_4039
Camera.SetFixedPosition(1906.528, 970.1409, 10.433, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1905.823, 970.8365, 10.5694, SwitchType.JumpCut)
  Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.1, False)
35@ = 7

:CASINO1_4039
if 
  35@ == 7
goto_if_false @CASINO1_4089
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_4089
305@ = 64

:CASINO1_4089
if 
  35@ == 8
goto_if_false @CASINO1_4164
if 
  not Car.IsDead(322@)
goto_if_false @CASINO1_4164
Task.CarDriveToCoord($scplayer, 322@, 1903.27, 955.95, 9.8203, 10.0, DriveMode.Accurate, 0, DrivingMode.AvoidCars)
35@ = 9

:CASINO1_4164
if 
  35@ == 9
goto_if_false @CASINO1_4218
97@ = Char.GetScriptTaskStatus($scplayer, 1489)
if 
  is_int_lvar_equal_to_constant 97@ == 7
goto_if_false @CASINO1_4218
35@ = 10

:CASINO1_4218
if 
  35@ <> 10
goto_if_false @CASINO1_4243
goto @CASINO1_2601

:CASINO1_4243
if 
  not Car.IsDead(322@)
goto_if_false @CASINO1_4356
Object.SetCoordinates($init_ped_density, 1903.383, 967.82, 11.438)
Car.SetCoordinates(322@, 1903.27, 955.95, 9.8203)
Car.SetHeading(322@, 180.7793)
if 
  Char.IsInCar($scplayer, 322@)
goto_if_false @CASINO1_4348
Char.WarpFromCarToCoord($scplayer, 1903.27, 955.95, 9.8203)

:CASINO1_4348
Char.WarpIntoCar($scplayer, 322@)

:CASINO1_4356
Streaming.MarkModelAsNoLongerNeeded(#TRDCSGRGDOOR_LVS)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Char.ClearLookAt($scplayer)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
35@ = 0

:CASINO1_4387
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO1_4413
goto @CASINO1_19542

:CASINO1_4413
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @CASINO1_4435
$ca1_test = 100

:CASINO1_4435
if 
  305@ <> 0
goto_if_false @CASINO1_4774
if 
  307@ == 0
goto_if_false @CASINO1_4499
if 
  Audio.HasMissionAudioLoaded(304@)
goto_if_false @CASINO1_4492
Audio.ClearMissionAudio(304@)

:CASINO1_4492
307@ = 1

:CASINO1_4499
if 
  307@ == 1
goto_if_false @CASINO1_4536
Audio.LoadMissionAudio(303@, 236@(305@,67i))
307@ = 2

:CASINO1_4536
if 
  307@ == 2
goto_if_false @CASINO1_4596
if 
  Audio.HasMissionAudioLoaded(303@)
goto_if_false @CASINO1_4596
Audio.PlayMissionAudio(303@)
Text.PrintNow(102@(305@,67s), 10000, 1)
307@ = 3

:CASINO1_4596
if 
  307@ == 3
goto_if_false @CASINO1_4774
if 
  Audio.HasMissionAudioFinished(303@)
goto_if_false @CASINO1_4713
Text.ClearThisPrint(102@(305@,67s))
if 
  303@ == 1
goto_if_false @CASINO1_4678
303@ = 2
304@ = 1
goto @CASINO1_4692

:CASINO1_4678
303@ = 1
304@ = 2

:CASINO1_4692
305@ = 0
307@ = 0
goto @CASINO1_4774

:CASINO1_4713
if 
  not Audio.HasMissionAudioLoaded(304@)
goto_if_false @CASINO1_4774
if 
  66 > 305@
goto_if_false @CASINO1_4774
set_lvar_int_to_lvar_int 306@ = 305@
306@ += 1
Audio.LoadMissionAudio(304@, 236@(306@,67i))

:CASINO1_4774
if or
  Char.IsInZone($scplayer, 'PINT')
  Char.IsInZone($scplayer, 'BINT')
  Char.IsInZone($scplayer, 'JTN')
  Char.IsInZone($scplayer, 'JTS')
  Char.IsInZone($scplayer, 'JTW')
  Char.IsInZone($scplayer, 'JTE')
goto_if_false @CASINO1_4967
if and
  98@ == 0
  38@ == 0
goto_if_false @CASINO1_4924
Text.Print('CAS1_10', 5000, 1)
Player.AlterWantedLevelNoDrop($player1, 3)
38@ = 1

:CASINO1_4924
if 
  38@ == 1
goto_if_false @CASINO1_4967
if 
  not Player.IsWantedLevelGreater($player1, 2)
goto_if_false @CASINO1_4967
38@ = 0

:CASINO1_4967
if 
  34@ == -1
goto_if_false @CASINO1_5335
  Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.05, False)
if 
  $flag_cas1_passed_1stime == 0
goto_if_false @CASINO1_5308
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(322@)
goto_if_false @CASINO1_5301
if 
  Char.IsInCar($scplayer, 322@)
goto_if_false @CASINO1_5301
if 
  $ca1_spooked == 0
goto_if_false @CASINO1_5187
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_5142
305@ = 65
$ca1_spooked += 1
101@ = Clock.GetGameTimer()

:CASINO1_5142
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_5187
101@ = Clock.GetGameTimer()

:CASINO1_5187
if 
  $ca1_spooked == 1
goto_if_false @CASINO1_5301
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_5256
305@ = 66
$ca1_spooked += 1
34@ = 0
101@ = Clock.GetGameTimer()

:CASINO1_5256
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_5301
101@ = Clock.GetGameTimer()

:CASINO1_5301
goto @CASINO1_5335

:CASINO1_5308
Object.SetCoordinates($init_ped_density, 1903.383, 967.82, 11.438)
34@ = 0

:CASINO1_5335
if 
  34@ == 0
goto_if_false @CASINO1_5473
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(322@)
goto_if_false @CASINO1_5473
if 
  Char.IsInCar($scplayer, 322@)
goto_if_false @CASINO1_5473
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_5473
Text.ClearPrints
Text.Print('CAS1_11', 5000, 1)
Text.Print('CAS1_12', 5000, 1)
98@ = 2
34@ = 2
36@ = 1

:CASINO1_5473
if 
  5 > 34@
goto_if_false @CASINO1_5794
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(322@)
goto_if_false @CASINO1_5794
if 
  36@ == 0
goto_if_false @CASINO1_5655
if 
  Char.IsSittingInCar($scplayer, 322@)
goto_if_false @CASINO1_5655
Text.ClearPrints
Camera.SetFirstPersonInCarMode(False)
101@ = Clock.GetGameTimer()
Blip.Remove(323@)
Blip.Remove(50@)
if and
  34@ > 0
  4 > 34@
goto_if_false @CASINO1_5616
Hud.ClearCounter($ca1_test)
Hud.DisplayCounterWithString($ca1_test, CounterDisplay.Bar, 'CAS1_05')

:CASINO1_5616
if 
  34@ == 4
goto_if_false @CASINO1_5648
50@ = Blip.AddForCoord(79@, 80@, 81@)

:CASINO1_5648
36@ = 1

:CASINO1_5655
if 
  36@ == 1
goto_if_false @CASINO1_5794
if 
  not Char.IsSittingInCar($scplayer, 322@)
goto_if_false @CASINO1_5794
Text.ClearPrints
Camera.SetFirstPersonInCarMode(True)
Blip.Remove(323@)
323@ = Blip.AddForCar(322@)
Blip.SetAsFriendly(323@, True)
if and
  34@ > 0
  4 > 34@
goto_if_false @CASINO1_5748
Hud.ClearCounter($ca1_test)

:CASINO1_5748
if 
  34@ == 4
goto_if_false @CASINO1_5771
Blip.Remove(50@)

:CASINO1_5771
Text.PrintNow('CAS1_01', 7500, 2)
36@ = 0

:CASINO1_5794
if 
  34@ == 2
goto_if_false @CASINO1_6007
if and
  not Char.IsDead($scplayer)
  not Char.IsDead(324@)
goto_if_false @CASINO1_6007
Hud.DisplayCounterWithString($ca1_test, CounterDisplay.Bar, 'CAS1_05')
37@ = Math.RandomIntInRange(0, 4)
if 
  37@ == 0
goto_if_false @CASINO1_5894
Text.PrintHelp('CAS1_06')
34@ = 3

:CASINO1_5894
if 
  37@ == 1
goto_if_false @CASINO1_5930
Text.PrintHelp('CAS1_07')
34@ = 3

:CASINO1_5930
if 
  37@ == 2
goto_if_false @CASINO1_5966
Text.PrintHelp('CAS1_08')
34@ = 3

:CASINO1_5966
if 
  37@ == 3
goto_if_false @CASINO1_6002
Text.PrintHelp('CAS1_09')
34@ = 3

:CASINO1_6002
74@ = Clock.GetGameTimer()

:CASINO1_6007
if 
  34@ == 3
goto_if_false @CASINO1_15346
if and
  not Car.IsDead(322@)
  not Char.IsDead($scplayer)
  not Char.IsDead(324@)
goto_if_false @CASINO1_15346
if 
  335@ == 0
goto_if_false @CASINO1_6163
if 
  not Char.IsDead(334@)
goto_if_false @CASINO1_6163
if 
  not Char.LocateAnyMeans3D($scplayer, 1910.75, 960.74, 10.86, 15.0, 15.0, 15.0, False)
goto_if_false @CASINO1_6163
if 
  not Char.IsOnScreen(334@)
goto_if_false @CASINO1_6163
gosub @CASINO1_477
335@ = 1

:CASINO1_6163
if 
  Car.IsDoorDamaged(322@, CarDoor.Hood)
goto_if_false @CASINO1_6214
Task.Die(324@)
Char.DetachFromCar(324@)
Text.PrintNow('CAS1_04', 5000, 1)
goto @CASINO1_19524

:CASINO1_6214
if 
  Char.IsInCar($scplayer, 322@)
goto_if_false @CASINO1_15346
if 
  8 > 49@
goto_if_false @CASINO1_6443
73@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 72@ = 73@
sub_int_lvar_from_int_lvar 72@ -= 74@
if 
  72@ > 30000
goto_if_false @CASINO1_6443
37@ = Math.RandomIntInRange(0, 4)
if 
  37@ == 0
goto_if_false @CASINO1_6334
Text.PrintHelp('CAS1_06')
74@ = Clock.GetGameTimer()

:CASINO1_6334
if 
  37@ == 1
goto_if_false @CASINO1_6368
Text.PrintHelp('CAS1_07')
74@ = Clock.GetGameTimer()

:CASINO1_6368
if 
  37@ == 2
goto_if_false @CASINO1_6402
Text.PrintHelp('CAS1_08')
74@ = Clock.GetGameTimer()

:CASINO1_6402
if 
  37@ == 3
goto_if_false @CASINO1_6436
Text.PrintHelp('CAS1_09')
74@ = Clock.GetGameTimer()

:CASINO1_6436
49@ += 1

:CASINO1_6443
if 
  $ca1_test > 100
goto_if_false @CASINO1_6506
$ca1_test = 100
$ca1_spooked = 0
Hud.ClearCounter($ca1_test)
50@ = Blip.AddForCoord(79@, 80@, 81@)
62@ = Clock.GetGameTimer()
34@ = 4

:CASINO1_6506
if and
  39@ == 0
  41@ == 0
  40@ == 0
goto_if_false @CASINO1_6601
if 
  71@ > 15.0
goto_if_false @CASINO1_6601
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.RightShoulder1)
goto_if_false @CASINO1_6601
331@ = Car.GetHeading(322@)
333@ = 0.0
39@ = 1

:CASINO1_6601
if 
  39@ == 1
goto_if_false @CASINO1_6835
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.RightShoulder1)
goto_if_false @CASINO1_6676
332@ = Car.GetHeading(322@)
set_lvar_float_to_lvar_float 330@ = 332@
sub_float_lvar_from_float_lvar 330@ -= 331@
add_float_lvar_to_float_lvar 333@ += 330@
331@ = Car.GetHeading(322@)

:CASINO1_6676
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.RightShoulder1)
goto_if_false @CASINO1_6835
if 
  0.0 > 333@
goto_if_false @CASINO1_6724
333@ += 360.0

:CASINO1_6724
if 
  333@ > 0.0
goto_if_false @CASINO1_6828
if and
  333@ > 14.0
  210.0 > 333@
goto_if_false @CASINO1_6790
$ca1_test += 7
goto @CASINO1_6828

:CASINO1_6790
if and
  333@ > 90.0
  270.0 > 333@
goto_if_false @CASINO1_6828
$ca1_test += 3

:CASINO1_6828
39@ = 0

:CASINO1_6835
if and
  40@ == 0
  39@ == 0
  41@ == 0
goto_if_false @CASINO1_6895
if 
  Car.IsInAirProper(322@)
goto_if_false @CASINO1_6895
53@ = Clock.GetGameTimer()
40@ = 1

:CASINO1_6895
if 
  40@ == 1
goto_if_false @CASINO1_6973
if 
  not Car.IsInAirProper(322@)
goto_if_false @CASINO1_6973
52@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 51@ = 52@
sub_int_lvar_from_int_lvar 51@ -= 53@
51@ /= 250
add_int_lvar_to_int_var $ca1_test += 51@
40@ = 0

:CASINO1_6973
if and
  41@ == 0
  39@ == 0
  40@ == 0
  20 > 59@
goto_if_false @CASINO1_7123
if 
  1.0 > 71@
goto_if_false @CASINO1_7123
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @CASINO1_7123
52@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 51@ = 52@
sub_int_lvar_from_int_lvar 51@ -= 53@
if 
  51@ > 3000
goto_if_false @CASINO1_7123
69@ = 0.0
70@ = 0.15
41@ = 1

:CASINO1_7123
if 
  41@ == 1
goto_if_false @CASINO1_7333
91@, 92@, 93@, 94@ = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @CASINO1_7181
41@ = 0

:CASINO1_7181
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO1_7205
41@ = 0

:CASINO1_7205
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @CASINO1_7333
if 
  not is_int_lvar_equal_to_int_lvar 91@ == 95@
goto_if_false @CASINO1_7333
if and
  69@ >= 0.0
  70@ >= 0.0
goto_if_false @CASINO1_7333
53@ = Clock.GetGameTimer()
add_float_lvar_to_float_lvar 69@ += 70@
70@ -= 0.025
cset_lvar_int_to_lvar_float 54@ =# 69@
add_int_lvar_to_int_var $ca1_test += 54@
add_int_lvar_to_int_lvar 59@ += 54@
set_lvar_int_to_lvar_int 95@ = 91@

:CASINO1_7333
71@ = Car.GetSpeed(322@)
if 
  42@ == 0
goto_if_false @CASINO1_7410
if 
  71@ > 30.0
goto_if_false @CASINO1_7410
if 
  40 > 58@
goto_if_false @CASINO1_7410
65@ = Clock.GetGameTimer()
42@ = 1

:CASINO1_7410
if 
  42@ == 1
goto_if_false @CASINO1_7515
64@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 63@ = 64@
sub_int_lvar_from_int_lvar 63@ -= 65@
if 
  63@ > 600
goto_if_false @CASINO1_7487
65@ = Clock.GetGameTimer()
58@ += 1
$ca1_test += 1

:CASINO1_7487
if 
  30.0 > 71@
goto_if_false @CASINO1_7515
42@ = 0

:CASINO1_7515
if 
  43@ == 0
goto_if_false @CASINO1_7581
if 
  $stunt_flags_hj > 0
goto_if_false @CASINO1_7581
set_lvar_int_to_var_int 55@ = $cash_reward
55@ /= 5
add_int_lvar_to_int_var $ca1_test += 55@
43@ = 1

:CASINO1_7581
if 
  43@ == 1
goto_if_false @CASINO1_7624
if 
  $stunt_flags_hj == 0
goto_if_false @CASINO1_7624
43@ = 0

:CASINO1_7624
if and
  44@ == 0
  46@ == 0
goto_if_false @CASINO1_8338
if 
  71@ > 15.0
goto_if_false @CASINO1_8324
91@, 92@, 93@, 94@ = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if 
  91@ <> 0
goto_if_false @CASINO1_8303
56@ += 1
if 
  56@ > 20
goto_if_false @CASINO1_8296
if or
  91@ > 96
  -96 > 91@
goto_if_false @CASINO1_8296
if 
  45@ == 0
goto_if_false @CASINO1_8296
if 
  20 > 57@
goto_if_false @CASINO1_7804
$ca1_test += 1
57@ += 1

:CASINO1_7804
if 
  91@ > 0
goto_if_false @CASINO1_8050
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_TURNL")
goto_if_false @CASINO1_7965
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_TURNL")
if 
  96@ == 1.0
goto_if_false @CASINO1_7958
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_TURNR", "CAR", 4.0, False, False, False, True, 0)
$d5_mission_plane_speed = 1
56@ = 0
45@ = 1

:CASINO1_7958
goto @CASINO1_8050

:CASINO1_7965
if 
  not Char.IsPlayingAnim(324@, "TYD2CAR_TURNR")
goto_if_false @CASINO1_8050
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_TURNR", "CAR", 4.0, False, False, False, True, 0)
56@ = 0
45@ = 1

:CASINO1_8050
if 
  0 > 91@
goto_if_false @CASINO1_8296
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_TURNR")
goto_if_false @CASINO1_8211
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_TURNR")
if 
  96@ == 1.0
goto_if_false @CASINO1_8204
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_TURNL", "CAR", 4.0, False, False, False, True, 0)
$d5_mission_plane_speed = 1
56@ = 0
45@ = 1

:CASINO1_8204
goto @CASINO1_8296

:CASINO1_8211
if 
  not Char.IsPlayingAnim(324@, "TYD2CAR_TURNL")
goto_if_false @CASINO1_8296
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_TURNL", "CAR", 4.0, False, False, False, True, 0)
56@ = 0
45@ = 1

:CASINO1_8296
goto @CASINO1_8317

:CASINO1_8303
45@ = 0
56@ = 0

:CASINO1_8317
goto @CASINO1_8338

:CASINO1_8324
45@ = 0
56@ = 0

:CASINO1_8338
if 
  46@ == 0
goto_if_false @CASINO1_8424
if 
  71@ > 15.0
goto_if_false @CASINO1_8424
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO1_8424
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
  Pad.IsButtonPressed(PadId.Pad1, Button.RightShoulder1)
goto_if_false @CASINO1_8424
46@ = 1

:CASINO1_8424
if 
  46@ == 1
goto_if_false @CASINO1_8558
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO1_8558
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
  Pad.IsButtonPressed(PadId.Pad1, Button.RightShoulder1)
goto_if_false @CASINO1_8558
78@ += 1
if 
  78@ > 12
goto_if_false @CASINO1_8558
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_BUMP", "CAR", 4.0, False, False, False, True, 0)
77@ = Clock.GetGameTimer()
46@ = 2

:CASINO1_8558
if 
  46@ == 2
goto_if_false @CASINO1_8710
76@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 75@ = 76@
sub_int_lvar_from_int_lvar 75@ -= 77@
if 
  75@ > 1000
goto_if_false @CASINO1_8710
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_BUMP")
goto_if_false @CASINO1_8710
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_BUMP")
if 
  96@ == 1.0
goto_if_false @CASINO1_8710
$ca1_test += 1
78@ = 0
46@ = 0

:CASINO1_8710
if 
  71@ > 30.0
goto_if_false @CASINO1_9065
88@, 89@, 90@ = Car.GetOffsetInWorldCoords(322@, 0.0, 4.0, 0.0)
set_lvar_float_to_lvar_float 82@ = 88@
82@ -= 0.1
set_lvar_float_to_lvar_float 83@ = 89@
83@ -= 0.1
set_lvar_float_to_lvar_float 84@ = 90@
84@ -= 0.1
set_lvar_float_to_lvar_float 85@ = 88@
85@ += 0.1
set_lvar_float_to_lvar_float 86@ = 89@
86@ += 0.1
set_lvar_float_to_lvar_float 87@ = 90@
87@ += 0.1
if 
  48@ == 0
goto_if_false @CASINO1_8939
if 
  World.IsAreaOccupied(82@, 83@, 84@, 85@, 86@, 87@, False, True, False, False, False)
goto_if_false @CASINO1_8939
68@ = Clock.GetGameTimer()
48@ = 1

:CASINO1_8939
if 
  48@ == 1
goto_if_false @CASINO1_9065
67@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 66@ = 67@
sub_int_lvar_from_int_lvar 66@ -= 68@
if 
  66@ > 50
goto_if_false @CASINO1_9065
if 
  World.IsAreaOccupied(82@, 83@, 84@, 85@, 86@, 87@, False, True, False, False, False)
goto_if_false @CASINO1_9058
$ca1_test += 1
48@ = 0
goto @CASINO1_9065

:CASINO1_9058
48@ = 0

:CASINO1_9065
if or
  40@ == 1
  39@ == 1
  41@ == 1
  45@ == 1
goto_if_false @CASINO1_9241
if 
  98@ == 0
goto_if_false @CASINO1_9241
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_9241
$ca1_spooked = Math.RandomIntInRange(0, 6)
101@ = Clock.GetGameTimer()
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_9241
if 
  6 > $ca1_spooked
goto_if_false @CASINO1_9234
$ca1_spooked += 1
goto @CASINO1_9241

:CASINO1_9234
$ca1_spooked -= 1

:CASINO1_9241
if 
  98@ == 1
goto_if_false @CASINO1_13989
if 
  $ca1_spooked == 0
goto_if_false @CASINO1_9369
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9309
305@ = 27

:CASINO1_9309
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9369
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_9369
if 
  $ca1_spooked == 1
goto_if_false @CASINO1_9479
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9419
305@ = 28

:CASINO1_9419
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9479
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_9479
if 
  $ca1_spooked == 2
goto_if_false @CASINO1_9589
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9529
305@ = 29

:CASINO1_9529
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9589
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_9589
if 
  $ca1_spooked == 3
goto_if_false @CASINO1_9699
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9639
305@ = 30

:CASINO1_9639
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9699
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_9699
if 
  $ca1_spooked == 4
goto_if_false @CASINO1_9809
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9749
305@ = 31

:CASINO1_9749
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9809
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_9809
if 
  $ca1_spooked == 5
goto_if_false @CASINO1_9919
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9859
305@ = 32

:CASINO1_9859
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9919
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_9919
if 
  $ca1_spooked == 6
goto_if_false @CASINO1_10029
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9969
305@ = 33

:CASINO1_9969
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10029
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_10029
if 
  $ca1_spooked == 7
goto_if_false @CASINO1_10139
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10079
305@ = 21

:CASINO1_10079
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10139
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_10139
if 
  $ca1_spooked == 8
goto_if_false @CASINO1_10249
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10189
305@ = 22

:CASINO1_10189
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10249
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_10249
if 
  $ca1_spooked == 9
goto_if_false @CASINO1_10359
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10299
305@ = 23

:CASINO1_10299
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10359
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_10359
if 
  $ca1_spooked == 10
goto_if_false @CASINO1_10469
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10409
305@ = 45

:CASINO1_10409
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10469
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_10469
if 
  $ca1_spooked == 11
goto_if_false @CASINO1_10579
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10519
305@ = 46

:CASINO1_10519
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10579
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_10579
if 
  $ca1_spooked == 12
goto_if_false @CASINO1_10689
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10629
305@ = 47

:CASINO1_10629
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10689
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_10689
if 
  $ca1_spooked == 13
goto_if_false @CASINO1_10799
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10739
305@ = 48

:CASINO1_10739
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10799
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_10799
if 
  $ca1_spooked == 14
goto_if_false @CASINO1_10909
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10849
305@ = 24

:CASINO1_10849
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10909
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_10909
if 
  $ca1_spooked == 15
goto_if_false @CASINO1_11019
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10959
305@ = 25

:CASINO1_10959
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11019
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_11019
if 
  $ca1_spooked == 16
goto_if_false @CASINO1_11129
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11069
305@ = 26

:CASINO1_11069
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11129
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_11129
if 
  $ca1_spooked == 17
goto_if_false @CASINO1_11239
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11179
305@ = 34

:CASINO1_11179
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11239
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_11239
if 
  $ca1_spooked == 18
goto_if_false @CASINO1_11349
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11289
305@ = 35

:CASINO1_11289
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11349
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_11349
if 
  $ca1_spooked == 19
goto_if_false @CASINO1_11459
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11399
305@ = 36

:CASINO1_11399
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11459
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_11459
if 
  $ca1_spooked == 20
goto_if_false @CASINO1_11569
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11509
305@ = 37

:CASINO1_11509
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11569
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_11569
if 
  $ca1_spooked == 21
goto_if_false @CASINO1_11679
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11619
305@ = 40

:CASINO1_11619
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11679
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_11679
if 
  $ca1_spooked == 22
goto_if_false @CASINO1_11789
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11729
305@ = 39

:CASINO1_11729
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11789
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_11789
if 
  $ca1_spooked == 23
goto_if_false @CASINO1_11899
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11839
305@ = 40

:CASINO1_11839
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11899
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_11899
if 
  $ca1_spooked == 24
goto_if_false @CASINO1_12009
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11949
305@ = 41

:CASINO1_11949
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12009
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_12009
if 
  $ca1_spooked == 25
goto_if_false @CASINO1_12119
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12059
305@ = 42

:CASINO1_12059
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12119
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_12119
if 
  $ca1_spooked == 26
goto_if_false @CASINO1_12229
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12169
305@ = 44

:CASINO1_12169
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12229
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_12229
if 
  $ca1_spooked == 27
goto_if_false @CASINO1_12339
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12279
305@ = 44

:CASINO1_12279
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12339
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_12339
if 
  $ca1_spooked == 28
goto_if_false @CASINO1_12449
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12389
305@ = 6

:CASINO1_12389
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12449
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_12449
if 
  $ca1_spooked == 29
goto_if_false @CASINO1_12559
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12499
305@ = 7

:CASINO1_12499
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12559
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_12559
if 
  $ca1_spooked == 30
goto_if_false @CASINO1_12669
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12609
305@ = 8

:CASINO1_12609
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12669
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_12669
if 
  $ca1_spooked == 31
goto_if_false @CASINO1_12779
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12719
305@ = 9

:CASINO1_12719
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12779
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_12779
if 
  $ca1_spooked == 32
goto_if_false @CASINO1_12889
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12829
305@ = 10

:CASINO1_12829
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12889
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_12889
if 
  $ca1_spooked == 33
goto_if_false @CASINO1_12999
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12939
305@ = 11

:CASINO1_12939
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12999
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_12999
if 
  $ca1_spooked == 34
goto_if_false @CASINO1_13109
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13049
305@ = 12

:CASINO1_13049
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13109
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_13109
if 
  $ca1_spooked == 35
goto_if_false @CASINO1_13219
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13159
305@ = 13

:CASINO1_13159
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13219
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_13219
if 
  $ca1_spooked == 36
goto_if_false @CASINO1_13329
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13269
305@ = 14

:CASINO1_13269
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13329
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_13329
if 
  $ca1_spooked == 37
goto_if_false @CASINO1_13439
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13379
305@ = 15

:CASINO1_13379
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13439
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_13439
if 
  $ca1_spooked == 38
goto_if_false @CASINO1_13549
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13489
305@ = 16

:CASINO1_13489
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13549
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_13549
if 
  $ca1_spooked == 39
goto_if_false @CASINO1_13659
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13599
305@ = 17

:CASINO1_13599
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13659
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_13659
if 
  $ca1_spooked == 40
goto_if_false @CASINO1_13769
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13709
305@ = 18

:CASINO1_13709
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13769
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_13769
if 
  $ca1_spooked == 41
goto_if_false @CASINO1_13879
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13819
305@ = 19

:CASINO1_13819
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13879
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_13879
if 
  $ca1_spooked == 42
goto_if_false @CASINO1_13989
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13929
305@ = 20

:CASINO1_13929
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13989
set_var_int_to_var_int $ca1_random_dialogue = $ca1_spooked
101@ = Clock.GetGameTimer()
98@ = 2

:CASINO1_13989
if 
  98@ == 2
goto_if_false @CASINO1_14054
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_14054
98@ = 0

:CASINO1_14054
if 
  98@ == 0
goto_if_false @CASINO1_14478
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 10000
goto_if_false @CASINO1_14478
if and
  $ca1_test >= 0
  34 > $ca1_test
goto_if_false @CASINO1_14234
$ca1_spooked = Math.RandomIntInRange(28, 32)
101@ = Clock.GetGameTimer()
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_14234
if 
  32 > $ca1_spooked
goto_if_false @CASINO1_14209
$ca1_spooked += 1
goto @CASINO1_14234

:CASINO1_14209
if 
  $ca1_spooked > 28
goto_if_false @CASINO1_14234
$ca1_spooked -= 1

:CASINO1_14234
if and
  $ca1_test > 33
  67 > $ca1_test
goto_if_false @CASINO1_14356
$ca1_spooked = Math.RandomIntInRange(33, 37)
101@ = Clock.GetGameTimer()
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_14356
if 
  37 > $ca1_spooked
goto_if_false @CASINO1_14331
$ca1_spooked += 1
goto @CASINO1_14356

:CASINO1_14331
if 
  $ca1_spooked > 33
goto_if_false @CASINO1_14356
$ca1_spooked -= 1

:CASINO1_14356
if and
  $ca1_test > 66
  100 > $ca1_test
goto_if_false @CASINO1_14478
$ca1_spooked = Math.RandomIntInRange(38, 42)
101@ = Clock.GetGameTimer()
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_14478
if 
  42 > $ca1_spooked
goto_if_false @CASINO1_14453
$ca1_spooked += 1
goto @CASINO1_14478

:CASINO1_14453
if 
  $ca1_spooked > 38
goto_if_false @CASINO1_14478
$ca1_spooked -= 1

:CASINO1_14478
if 
  42@ == 1
goto_if_false @CASINO1_14651
if 
  98@ == 0
goto_if_false @CASINO1_14651
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_14651
$ca1_spooked = Math.RandomIntInRange(7, 9)
101@ = Clock.GetGameTimer()
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_14651
if 
  9 > $ca1_spooked
goto_if_false @CASINO1_14626
$ca1_spooked += 1
goto @CASINO1_14651

:CASINO1_14626
if 
  $ca1_spooked > 7
goto_if_false @CASINO1_14651
$ca1_spooked -= 1

:CASINO1_14651
if 
  43@ == 1
goto_if_false @CASINO1_14824
if 
  98@ == 0
goto_if_false @CASINO1_14824
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_14824
$ca1_spooked = Math.RandomIntInRange(14, 16)
101@ = Clock.GetGameTimer()
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_14824
if 
  16 > $ca1_spooked
goto_if_false @CASINO1_14799
$ca1_spooked += 1
goto @CASINO1_14824

:CASINO1_14799
if 
  $ca1_spooked > 14
goto_if_false @CASINO1_14824
$ca1_spooked -= 1

:CASINO1_14824
if or
  46@ == 2
  48@ == 1
goto_if_false @CASINO1_15004
if 
  98@ == 0
goto_if_false @CASINO1_15004
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_15004
$ca1_spooked = Math.RandomIntInRange(17, 24)
101@ = Clock.GetGameTimer()
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_15004
if 
  24 > $ca1_spooked
goto_if_false @CASINO1_14979
$ca1_spooked += 1
goto @CASINO1_15004

:CASINO1_14979
if 
  $ca1_spooked > 17
goto_if_false @CASINO1_15004
$ca1_spooked -= 1

:CASINO1_15004
if 
  Car.IsOnFire(322@)
goto_if_false @CASINO1_15175
if 
  98@ == 0
goto_if_false @CASINO1_15175
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_15175
$ca1_spooked = Math.RandomIntInRange(10, 13)
101@ = Clock.GetGameTimer()
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_15175
if 
  13 > $ca1_spooked
goto_if_false @CASINO1_15150
$ca1_spooked += 1
goto @CASINO1_15175

:CASINO1_15150
if 
  $ca1_spooked > 10
goto_if_false @CASINO1_15175
$ca1_spooked -= 1

:CASINO1_15175
if 
  Car.IsUpsidedown(322@)
goto_if_false @CASINO1_15346
if 
  98@ == 0
goto_if_false @CASINO1_15346
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_15346
$ca1_spooked = Math.RandomIntInRange(25, 27)
101@ = Clock.GetGameTimer()
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_spooked == $ca1_random_dialogue
goto_if_false @CASINO1_15346
if 
  27 > $ca1_spooked
goto_if_false @CASINO1_15321
$ca1_spooked += 1
goto @CASINO1_15346

:CASINO1_15321
if 
  $ca1_spooked > 25
goto_if_false @CASINO1_15346
$ca1_spooked -= 1

:CASINO1_15346
if 
  not Char.IsDead(324@)
goto_if_false @CASINO1_17351
if and
  $ca1_test >= 0
  34 > $ca1_test
goto_if_false @CASINO1_15988
if and
  45@ == 0
  46@ == 0
goto_if_false @CASINO1_15988
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_LOW")
goto_if_false @CASINO1_15535
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_LOW")
if 
  96@ == 1.0
goto_if_false @CASINO1_15528
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_LOW", "CAR", 4.0, False, False, False, True, 0)
$d5_mission_plane_speed = 1

:CASINO1_15528
goto @CASINO1_15988

:CASINO1_15535
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_TURNR")
goto_if_false @CASINO1_15648
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_TURNR")
if 
  96@ == 1.0
goto_if_false @CASINO1_15648
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_LOW", "CAR", 4.0, False, False, False, True, 0)

:CASINO1_15648
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_TURNL")
goto_if_false @CASINO1_15761
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_TURNL")
if 
  96@ == 1.0
goto_if_false @CASINO1_15761
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_LOW", "CAR", 4.0, False, False, False, True, 0)

:CASINO1_15761
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_BUMP")
goto_if_false @CASINO1_15872
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_BUMP")
if 
  96@ == 1.0
goto_if_false @CASINO1_15872
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_LOW", "CAR", 4.0, False, False, False, True, 0)

:CASINO1_15872
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_MED")
goto_if_false @CASINO1_15988
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_MED")
if 
  96@ == 1.0
goto_if_false @CASINO1_15988
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_LOW", "CAR", 4.0, False, False, False, True, 0)
$d5_mission_plane_speed = 2

:CASINO1_15988
if and
  $ca1_test > 33
  67 > $ca1_test
goto_if_false @CASINO1_16718
if and
  45@ == 0
  46@ == 0
goto_if_false @CASINO1_16718
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_MED")
goto_if_false @CASINO1_16161
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_MED")
if 
  96@ == 1.0
goto_if_false @CASINO1_16154
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_MED", "CAR", 4.0, False, False, False, True, 0)
$d5_mission_plane_speed = 2

:CASINO1_16154
goto @CASINO1_16718

:CASINO1_16161
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_TURNR")
goto_if_false @CASINO1_16274
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_TURNR")
if 
  96@ == 1.0
goto_if_false @CASINO1_16274
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_MED", "CAR", 4.0, False, False, False, True, 0)

:CASINO1_16274
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_TURNL")
goto_if_false @CASINO1_16387
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_TURNL")
if 
  96@ == 1.0
goto_if_false @CASINO1_16387
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_MED", "CAR", 4.0, False, False, False, True, 0)

:CASINO1_16387
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_BUMP")
goto_if_false @CASINO1_16498
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_BUMP")
if 
  96@ == 1.0
goto_if_false @CASINO1_16498
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_MED", "CAR", 4.0, False, False, False, True, 0)

:CASINO1_16498
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_HIGH")
goto_if_false @CASINO1_16609
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_HIGH")
if 
  96@ > 1.0
goto_if_false @CASINO1_16609
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_MED", "CAR", 4.0, False, False, False, True, 0)

:CASINO1_16609
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_LOW")
goto_if_false @CASINO1_16718
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_LOW")
if 
  96@ == 1.0
goto_if_false @CASINO1_16718
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_MED", "CAR", 4.0, False, False, False, True, 0)

:CASINO1_16718
if and
  $ca1_test > 66
  100 > $ca1_test
goto_if_false @CASINO1_17351
if and
  45@ == 0
  46@ == 0
goto_if_false @CASINO1_17351
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_HIGH")
goto_if_false @CASINO1_16894
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_HIGH")
if 
  96@ == 1.0
goto_if_false @CASINO1_16887
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_HIGH", "CAR", 4.0, False, False, False, True, 0)
$d5_mission_plane_speed = 3

:CASINO1_16887
goto @CASINO1_17351

:CASINO1_16894
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_TURNR")
goto_if_false @CASINO1_17008
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_TURNR")
if 
  96@ == 1.0
goto_if_false @CASINO1_17008
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_HIGH", "CAR", 4.0, False, False, False, True, 0)

:CASINO1_17008
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_TURNL")
goto_if_false @CASINO1_17122
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_TURNL")
if 
  96@ == 1.0
goto_if_false @CASINO1_17122
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_HIGH", "CAR", 4.0, False, False, False, True, 0)

:CASINO1_17122
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_BUMP")
goto_if_false @CASINO1_17234
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_BUMP")
if 
  96@ == 1.0
goto_if_false @CASINO1_17234
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_HIGH", "CAR", 4.0, False, False, False, True, 0)

:CASINO1_17234
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_MED")
goto_if_false @CASINO1_17351
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_MED")
if 
  96@ == 1.0
goto_if_false @CASINO1_17351
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_HIGH", "CAR", 4.0, False, False, False, True, 0)
$d5_mission_plane_speed = 2

:CASINO1_17351
if 
  34@ > 3
goto_if_false @CASINO1_17570
if 
  47@ == 0
goto_if_false @CASINO1_17433
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_HIGH", "CAR", 4.0, False, False, False, True, 0)
47@ = 1

:CASINO1_17433
if 
  47@ == 1
goto_if_false @CASINO1_17570
if 
  Char.IsPlayingAnim(324@, "TYD2CAR_HIGH")
goto_if_false @CASINO1_17570
96@ = Char.GetAnimCurrentTime(324@, "TYD2CAR_HIGH")
if 
  96@ == 1.0
goto_if_false @CASINO1_17570
Task.PlayAnimNonInterruptable(324@, "TYD2CAR_HIGH", "CAR", 4.0, False, False, False, True, 0)
$d5_mission_plane_speed = 2

:CASINO1_17570
if 
  34@ == 4
goto_if_false @CASINO1_18500
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(322@)
goto_if_false @CASINO1_18500
if 
  Char.IsInCar($scplayer, 322@)
goto_if_false @CASINO1_18229
if 
  $ca1_spooked == 0
goto_if_false @CASINO1_17735
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_17690
305@ = 49
$ca1_spooked += 1
101@ = Clock.GetGameTimer()

:CASINO1_17690
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_17735
101@ = Clock.GetGameTimer()

:CASINO1_17735
if 
  $ca1_spooked == 1
goto_if_false @CASINO1_17842
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_17797
305@ = 50
$ca1_spooked += 1
101@ = Clock.GetGameTimer()

:CASINO1_17797
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_17842
101@ = Clock.GetGameTimer()

:CASINO1_17842
if 
  $ca1_spooked == 2
goto_if_false @CASINO1_17949
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_17904
305@ = 51
$ca1_spooked += 1
101@ = Clock.GetGameTimer()

:CASINO1_17904
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_17949
101@ = Clock.GetGameTimer()

:CASINO1_17949
if 
  $ca1_spooked == 3
goto_if_false @CASINO1_18056
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_18011
305@ = 52
$ca1_spooked += 1
101@ = Clock.GetGameTimer()

:CASINO1_18011
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_18056
101@ = Clock.GetGameTimer()

:CASINO1_18056
if 
  $ca1_spooked == 4
goto_if_false @CASINO1_18163
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_18118
305@ = 53
$ca1_spooked += 1
101@ = Clock.GetGameTimer()

:CASINO1_18118
99@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_18163
101@ = Clock.GetGameTimer()

:CASINO1_18163
if 
  $ca1_spooked == 5
goto_if_false @CASINO1_18229
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_18229
Text.Print('CAS1_03', 7000, 1)
$ca1_spooked += 1

:CASINO1_18229
if 
  Char.IsInCar($scplayer, 322@)
goto_if_false @CASINO1_18500
if 
  335@ == 1
goto_if_false @CASINO1_18321
if 
  Char.LocateAnyMeans3D($scplayer, 1910.75, 960.74, 10.86, 100.0, 100.0, 100.0, False)
goto_if_false @CASINO1_18321
335@ = 2

:CASINO1_18321
if 
  Char.LocateAnyMeans3D($scplayer, 79@, 80@, 81@, 4.0, 4.0, 4.0, True)
goto_if_false @CASINO1_18500
Player.SetControl($player1, False)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO1_18500
$car = Char.StoreCarIsInNoSave($scplayer)
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 2000000)
if and
  not Char.IsDead(324@)
  not Char.IsDead($scplayer)
goto_if_false @CASINO1_18500
Camera.DoFade(300, Fade.Out)

:CASINO1_18437
if 
  Camera.GetFadingStatus
goto_if_false @CASINO1_18461
wait 0
goto @CASINO1_18437

:CASINO1_18461
World.ClearArea(79@, 80@, 81@, 35.0, True)
gosub @CASINO1_379
34@ = 5
35@ = 0

:CASINO1_18500
if 
  34@ == 5
goto_if_false @CASINO1_19367
if and
  35@ > 0
  3 > 35@
goto_if_false @CASINO1_18580
  Object.Slide($init_ped_density, 1903.383, 967.62, 15.438, 0.0, 0.0, 0.1, False)

:CASINO1_18580
if 
  35@ == 0
goto_if_false @CASINO1_18824
if and
  not Car.IsDead(322@)
  not Char.IsDead(334@)
goto_if_false @CASINO1_18824
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1907.11, 953.0226, 10.9148, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1906.713, 953.9378, 10.9839, SwitchType.JumpCut)
Streaming.RequestCarRecording(179)

:CASINO1_18686
if 
  not Streaming.HasCarRecordingBeenLoaded(179)
goto_if_false @CASINO1_18713
wait 0
goto @CASINO1_18686

:CASINO1_18713
if and
  not Car.IsDead(322@)
  not Char.IsDead(334@)
goto_if_false @CASINO1_18824
Car.StartPlayback(322@, 179)
Car.PausePlayback(322@)
Camera.DoFade(300, Fade.In)

:CASINO1_18754
if 
  Camera.GetFadingStatus
goto_if_false @CASINO1_18778
wait 0
goto @CASINO1_18754

:CASINO1_18778
if and
  not Car.IsDead(322@)
  not Char.IsDead(334@)
goto_if_false @CASINO1_18824
Task.LeaveCar($scplayer, 322@)
Task.EnterCarAsDriver(334@, 322@, -1)
35@ = 1

:CASINO1_18824
if 
  35@ == 1
goto_if_false @CASINO1_19131
if 
  not Object.Slide($init_ped_density, 1903.383, 967.62, 15.438, 0.0, 0.0, 0.05, False)
goto_if_false @CASINO1_18890

:CASINO1_18890
if and
  not Car.IsDead(322@)
  not Char.IsDead(334@)
goto_if_false @CASINO1_19131
if 
  Char.IsOnFoot($scplayer)
goto_if_false @CASINO1_18974
97@ = Char.GetScriptTaskStatus($scplayer, 1593)
if 
  is_int_lvar_equal_to_constant 97@ == 7
goto_if_false @CASINO1_18974
Task.TurnCharToFaceChar($scplayer, 334@)
Task.LookAtChar($scplayer, 334@, -2)

:CASINO1_18974
if 
  Char.IsInCar(334@, 322@)
goto_if_false @CASINO1_19092
Char.ClearLookAt($scplayer)
Task.GoStraightToCoord($scplayer, 1900.727, 951.1921, 9.8203, MoveState.Walk, -2)
Camera.SetFixedPosition(1901.262, 961.8007, 11.2363, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1901.62, 960.8673, 11.2165, SwitchType.JumpCut)
Car.UnpausePlayback(322@)
35@ = 2
goto @CASINO1_19131

:CASINO1_19092
336@ = Char.GetScriptTaskStatus(334@, 1483)
if 
  is_int_lvar_equal_to_constant 336@ == 7
goto_if_false @CASINO1_19131
Task.EnterCarAsDriver(334@, 322@, -1)

:CASINO1_19131
if 
  35@ == 2
goto_if_false @CASINO1_19193
if 
  not Car.IsDead(322@)
goto_if_false @CASINO1_19193
if 
  not Car.IsPlaybackGoingOn(322@)
goto_if_false @CASINO1_19193
53@ = Clock.GetGameTimer()
35@ = 3

:CASINO1_19193
if 
  35@ == 3
goto_if_false @CASINO1_19295
  Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.2, False)
52@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 51@ = 52@
sub_int_lvar_from_int_lvar 51@ -= 53@
if 
  51@ > 1250
goto_if_false @CASINO1_19295
35@ = 4

:CASINO1_19295
if 
  35@ == 4
goto_if_false @CASINO1_19367
Object.SetCoordinates($init_ped_density, 1903.383, 967.82, 11.438)
Char.ClearTasksImmediately($scplayer)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
35@ = 5
goto @CASINO1_19542

:CASINO1_19367
if 
  34@ > -2
goto_if_false @CASINO1_19517
if 
  not Char.IsDead(324@)
goto_if_false @CASINO1_19460
325@ = Char.GetHealth(324@)
if 
  325@ == 0
goto_if_false @CASINO1_19460
Task.Die(324@)
Char.DetachFromCar(324@)
Text.PrintNow('CAS1_04', 5000, 1)
goto @CASINO1_19524

:CASINO1_19460
if 
  Car.IsInWater(322@)
goto_if_false @CASINO1_19517
$d5_mission_plane_speed = 999
Task.Die(324@)
Char.DetachFromCar(324@)
Text.PrintNow('CAS1_04', 5000, 1)
goto @CASINO1_19524

:CASINO1_19517
goto @CASINO1_4387

:CASINO1_19524
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:CASINO1_19542
$flag_casino_mission_counter += 1
Stat.RegisterMissionPassed('CASINO1')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSS', 5000, 5000, TextStyle.Middle)
Player.AddScore($player1, 5000)
Stat.AwardPlayerMissionRespect(10)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
return 

:CASINO1_19606
gosub @CASINO1_372
if 
  not Char.IsDead(324@)
goto_if_false @CASINO1_19637
Task.DiveFromAttachmentAndGetUp(324@, 10000)

:CASINO1_19637
Object.SetCoordinates($init_ped_density, 1903.383, 967.62, 11.438)
Blip.Remove(323@)
Blip.Remove(50@)
if 
  34@ == 5
goto_if_false @CASINO1_19700
Char.Delete(334@)
Char.Delete(324@)
Car.Delete(322@)

:CASINO1_19700
Streaming.MarkModelAsNoLongerNeeded(533)
Streaming.MarkModelAsNoLongerNeeded(118)
Streaming.UnloadSpecialCharacter(1)
Streaming.RemoveAnimation("CAR")
DecisionMaker.Remove(320@)
Camera.SetFirstPersonInCarMode(True)
Hud.ClearCounter($ca1_test)
if 
  $flag_cas1_passed_1stime == 0
goto_if_false @CASINO1_19759
$flag_cas1_passed_1stime = 1

:CASINO1_19759
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

//-------------Mission 85---------------
// Originally: Explosive Situation

:CASINO2
script_name 'CASINO2'
gosub @CASINO2_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO2_38
gosub @CASINO2_16416

:CASINO2_38
gosub @CASINO2_16583
terminate_this_script 

:CASINO2_47
Text.LoadMissionText('CASINO2')
$flag_car_normal_carmod = 1
$ca1_random_dialogue_last = 0
$c2_time_left = 0
Camera.SetFadingColor(0, 0, 0)
138@ = 542.6064
144@ = 880.7817
150@ = -36.4105
139@ = 585.3983
145@ = 870.3217
151@ = -38.6206
140@ = 518.1696
146@ = 814.9295
152@ = -9.7489
141@ = 484.6667
147@ = 937.2839
153@ = -16.6201
142@ = 438.5849
148@ = 870.4443
154@ = -4.264
143@ = 455.1732
149@ = 803.1501
155@ = 5.3843
156@ = 561.1495
162@ = 875.8472
168@ = -37.2976
157@ = 585.9339
163@ = 851.1839
169@ = -36.1799
158@ = 464.2791
164@ = 860.6772
170@ = -17.3952
159@ = 443.1031
165@ = 902.137
171@ = -7.5636
160@ = 429.2553
166@ = 923.7551
172@ = 0.5245
161@ = 476.2539
167@ = 779.3841
173@ = 8.0929
Stat.RegisterMissionGiven
$onmission = 1
53@ = DecisionMakerChar.Load(DecisionMakerType.Weak)
127@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
252@ = DecisionMakerChar.Load(DecisionMakerType.Normal)
78@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
Game.SetRelationship(RelationshipType.Like, PedType.Mission1, PedType.Mission1)
Game.SetRelationship(RelationshipType.Like, PedType.Mission1, PedType.Mission2)
Game.SetRelationship(RelationshipType.Like, PedType.Mission2, PedType.Mission1)
Game.SetRelationship(RelationshipType.Like, PedType.Mission2, PedType.Mission2)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission2, PedType.Player1)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:CASINO2_547
if 
  Camera.GetFadingStatus
goto_if_false @CASINO2_571
wait 0
goto @CASINO2_547

:CASINO2_571
Cutscene.Load('CAS_2')

:CASINO2_582
if 
  not Cutscene.HasLoaded
goto_if_false @CASINO2_606
wait 0
goto @CASINO2_582

:CASINO2_606
Streaming.SetAreaVisible(11)
Cutscene.Start
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:CASINO2_627
if 
  not Cutscene.HasFinished
goto_if_false @CASINO2_651
wait 0
goto @CASINO2_627

:CASINO2_651
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)

:CASINO2_665
if 
  Camera.GetFadingStatus
goto_if_false @CASINO2_689
wait 0
goto @CASINO2_665

:CASINO2_689
Cutscene.Clear
Streaming.SetAreaVisible(0)
CarGenerator.SuppressCarModel(406)
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_814
Char.SetHasUsedEntryExit($scplayer, 2016.422, 1017.102, 10.0)
Streaming.LoadScene(2028.932, 1023.292, 9.8127)
World.ClearArea(2028.932, 1023.292, 9.8127, 20.0, True)
Char.SetCoordinates($scplayer, 2028.932, 1023.292, 9.8127)
Char.SetHeading($scplayer, 278.4092)
Camera.SetBehindPlayer
wait 500

:CASINO2_814
Streaming.RequestModel(260)

:CASINO2_819
if 
  not Streaming.HasModelLoaded(260)
goto_if_false @CASINO2_846
wait 0
goto @CASINO2_819

:CASINO2_846
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)
Player.SetControl($player1, True)
182@ = Char.Create(PedType.CivMale, 260, 819.707, 857.8054, 11.0547)
Char.SetHeading(182@, 204.1414)
Char.SetDecisionMaker(182@, 53@)
60@ = Object.Create(#DES_QUARRYGATE2, 806.5, 846.9, 8.6822)
Object.SetHeading(60@, 0.0)
61@ = Object.Create(#DES_QUARRYGATE, 810.3, 838.6, 8.6822)
Object.SetHeading(61@, 45.0)
186@ = Blip.AddForCoord(811.1817, 843.9733, 8.9859)
Text.PrintNow('PD_16', 8000, 1)
191@ = Object.Create(#GUNBOX, 600.8789, 826.5641, -44.2392)
Object.SetHeading(191@, 131.8763)
191@ = Object.Create(#GUNBOX, 599.4742, 827.0499, -44.2844)
Object.SetHeading(191@, 129.5516)
191@ = Object.Create(#GUNBOX, 600.8787, 828.1313, -44.271)
Object.SetHeading(191@, 72.6773)
191@ = Object.Create(#GUNBOX, 671.1311, 816.2497, -43.9456)
Object.SetHeading(191@, 280.6081)
191@ = Object.Create(#GUNBOX, 672.9714, 817.7601, -43.9456)
Object.SetHeading(191@, 295.8181)
191@ = Object.Create(#GUNBOX, 673.1854, 817.8634, -43.9456)
Object.SetHeading(191@, 295.8181)
Game.SetWantedMultiplier(0.0)

:CASINO2_1218
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_1413
wait 0
gosub @CASINO2_18143
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO2_1267
goto @CASINO2_16434

:CASINO2_1267
if 
  Char.LocateAnyMeans3D($scplayer, 811.1817, 843.9733, 8.9859, 4.0, 4.0, 4.0, True)
goto_if_false @CASINO2_1406
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:CASINO2_1329
if 
  Camera.GetFadingStatus
goto_if_false @CASINO2_1353
wait 0
goto @CASINO2_1329

:CASINO2_1353
Blip.Remove(186@)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO2_1399
83@ = Char.StoreCarIsIn($scplayer)
Car.SetStatus(83@, EntityStatus.Physics)
Car.SetTempAction(83@, TempAction.HandbrakeTurnRight, 1500)

:CASINO2_1399
goto @CASINO2_1425

:CASINO2_1406
goto @CASINO2_1218

:CASINO2_1413
wait 1000
goto @CASINO2_16416

:CASINO2_1425
84@ = 662.1465
88@ = 917.9582
92@ = -41.8491
96@ = 318.2808
85@ = 583.0025
89@ = 934.0627
93@ = -43.9531
97@ = 114.8609
86@ = 552.9266
90@ = 846.8138
94@ = -42.8758
98@ = 197.0568
87@ = 640.8603
91@ = 810.404
95@ = -43.9531
99@ = 250.0977
246@ = 2
262@ = 2
Streaming.RequestModel(330)
Streaming.RequestModel(153)
Streaming.RequestModel(71)
Streaming.RequestModel(260)
Streaming.RequestModel(346)
Streaming.RequestModel(337)
Streaming.RequestModel(530)
Streaming.RequestModel(406)

:CASINO2_1638
if 
  not Streaming.HasModelLoaded(330)
goto_if_false @CASINO2_1665
wait 0
goto @CASINO2_1638

:CASINO2_1665
if or
  not Streaming.HasModelLoaded(153)
  not Streaming.HasModelLoaded(71)
  not Streaming.HasModelLoaded(260)
  not Streaming.HasModelLoaded(346)
goto_if_false @CASINO2_1706
wait 0
goto @CASINO2_1665

:CASINO2_1706
if or
  not Streaming.HasModelLoaded(337)
  not Streaming.HasModelLoaded(530)
  not Streaming.HasModelLoaded(406)
goto_if_false @CASINO2_1743
wait 0
goto @CASINO2_1706

:CASINO2_1743
254@ = Car.Create(406, 684.158, 899.4011, -41.382)
Car.SetHeading(254@, 50.0)
250@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 661.397, 917.1706, -41.4059, 4, -1)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 1.0, True, False, False, False, -1)
Sequence.SetToRepeat(250@, True)
Sequence.Close(250@)
251@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 662.605, 916.313, -41.4059, 4, -1)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 1.0, True, False, False, False, -1)
Sequence.SetToRepeat(251@, True)
Sequence.Close(251@)
215@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 661.397, 917.1706, -41.4059, 4, -1)
Sequence.SetToRepeat(215@, True)
Sequence.Close(215@)
212@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 590.1505, 875.5482, -43.4973, 4, -1)
Task.LookAbout(-1, 40000)
Sequence.SetToRepeat(212@, True)
Sequence.Close(212@)
72@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(72@)
59@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 416.7344, 894.5847, 1.64, 6, -1)
Sequence.Close(59@)
185@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 811.1705, 840.3314, 8.8556, 4, -1)
Task.GoToCoordAnyMeans(-1, 835.0692, 854.228, 11.5339, 4, -1)
Task.GoToCoordAnyMeans(-1, 831.1895, 869.6328, 11.7659, 4, -1)
Task.GoToCoordAnyMeans(-1, 812.9305, 865.5474, 11.2512, 4, -1)
Sequence.Close(185@)
217@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.ShootAtChar(-1, $scplayer, -1)
Sequence.SetToRepeat(217@, True)
Sequence.Close(217@)
206@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(652.6294, 920.1244, -41.6245)
Path.ExtendRoute(643.2743, 944.6199, -36.1984)
Path.ExtendRoute(650.2857, 948.2803, -35.9383)
Path.ExtendRoute(676.3673, 939.0834, -31.2018)
Path.ExtendRoute(695.1881, 918.9306, -31.3478)
Path.ExtendRoute(709.0739, 891.5104, -28.7325)
Task.FollowPointRoute(-1, 7, RouteMode.Once)
Path.FlushRoute
Path.ExtendRoute(728.9528, 889.2318, -27.4689)
Path.ExtendRoute(718.7523, 918.5203, -19.886)
Task.FollowPointRoute(-1, 7, RouteMode.Once)
Path.FlushRoute
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(206@)
55@ = Sequence.Open()
Task.StandStill(-1, 4000)
Task.ScratchHead(-1)
Task.LookAbout(-1, 4000)
Sequence.SetToRepeat(55@, True)
Sequence.Close(55@)
56@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 625.9337, 831.7066, -43.9531, 4, -1)
Task.LookAbout(-1, 2000)
Task.GoToCoordAnyMeans(-1, 629.7086, 863.9051, -43.9456, 4, -1)
Task.LookAbout(-1, 2000)
Task.GoToCoordAnyMeans(-1, 633.362, 899.4764, -43.8397, 4, -1)
Task.LookAbout(-1, 2000)
Sequence.SetToRepeat(56@, True)
Sequence.Close(56@)
57@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 531.6239, 860.3109, -43.6083, 4, -1)
Task.GoToCoordAnyMeans(-1, 536.4184, 852.4755, -43.4897, 4, -1)
Task.GoToCoordAnyMeans(-1, 548.7656, 858.6099, -43.83, 4, -1)
Task.GoToCoordAnyMeans(-1, 544.7462, 868.412, -43.0847, 4, -1)
Sequence.SetToRepeat(57@, True)
Sequence.Close(57@)
58@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 580.5311, 830.0402, -30.9456, 4, -1)
Task.LookAbout(-1, 2000)
Task.GoToCoordAnyMeans(-1, 570.5531, 828.2956, -26.8808, 4, -1)
Task.GoToCoordAnyMeans(-1, 561.6993, 826.1243, -23.1406, 4, -1)
Task.LookAbout(-1, 2000)
Sequence.SetToRepeat(58@, True)
Sequence.Close(58@)
205@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 576.2826, 880.9235, -44.6488, 4, -1)
Task.GoToCoordAnyMeans(-1, 575.4687, 871.9396, -44.6139, 4, -1)
Task.GoToCoordAnyMeans(-1, 577.0265, 862.7321, -44.0826, 4, -1)
Task.GoToCoordAnyMeans(-1, 584.0759, 844.0593, -43.4072, 4, -1)
Sequence.SetToRepeat(205@, True)
Sequence.Close(205@)
211@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(473.5352, 916.5417, -19.6808)
Path.ExtendRoute(467.0137, 925.6787, -19.4363)
Path.ExtendRoute(476.3217, 939.0852, -17.1781)
Path.ExtendRoute(493.3413, 945.0632, -16.4974)
Path.ExtendRoute(508.5752, 956.9808, -15.2792)
Path.ExtendRoute(493.3413, 945.0632, -16.4974)
Path.ExtendRoute(476.3217, 939.0852, -17.1781)
Path.ExtendRoute(467.0137, 925.6787, -19.4363)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Path.FlushRoute
Sequence.SetToRepeat(211@, True)
Sequence.Close(211@)
221@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 420.7673, 866.2073, 5.7531, 6, -1)
Task.StayInSamePlace(-1, True)
Task.ShootAtChar(-1, $scplayer, -1)
Sequence.Close(221@)
222@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 413.9022, 863.8785, 7.0415, 6, -1)
Task.StayInSamePlace(-1, True)
Task.ShootAtChar(-1, $scplayer, -1)
Sequence.Close(222@)
198@ = Char.Create(PedType.Mission1, 153, 590.366, 876.7747, -43.4973)
Char.SetHeading(198@, 177.7406)
Char.SetDecisionMaker(198@, 252@)
Char.GiveWeapon(198@, WeaponType.Pistol, 30000)
Char.SetCurrentWeapon(198@, WeaponType.Pistol)
Char.SetHealth(198@, 200)
Char.SetMaxHealth(198@, 200)
Task.StayInSamePlace(198@, True)
Task.UseMobilePhone(198@, True)
197@ = Object.Create(#CJ_DYN_PLUNGE_1, 591.2704, 876.7986, -43.4973)
Object.SetHeading(197@, 270.0)
187@ = Car.Create(530, 640.8603, 810.404, -43.9531)
Car.SetHeading(187@, 250.0977)
Car.ControlMovablePart(187@, 0.5)
190@ = Sequence.Open()
if 
  not Car.IsDead(187@)
goto_if_false @CASINO2_3477
Path.FlushRoute
Path.ExtendRoute(667.7962, 819.8148, -43.9456)
Path.ExtendRoute(655.5785, 831.1092, -43.9456)
Path.ExtendRoute(643.8084, 819.2715, -43.9456)
Path.ExtendRoute(605.1934, 820.2333, -44.0023)
Task.DrivePointRouteAdvanced(-1, 187@, 10.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
Path.FlushRoute
Path.ExtendRoute(608.6918, 819.8881, -43.9456)
Path.ExtendRoute(643.8084, 819.2715, -43.9456)
Path.ExtendRoute(655.5785, 831.1092, -43.9456)
Path.ExtendRoute(667.7962, 819.8148, -43.9456)
Task.DrivePointRouteAdvanced(-1, 187@, 10.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
Path.FlushRoute
Sequence.SetToRepeat(190@, True)

:CASINO2_3477
Sequence.Close(190@)
43@ = Char.Create(PedType.Mission1, 260, 625.9337, 831.7066, -43.9531)
Char.SetHeading(43@, 156.9796)
Char.SetDecisionMaker(43@, 53@)
Char.PerformSequence(43@, 56@)
44@ = Char.Create(PedType.Mission2, 260, 531.6239, 860.3109, -43.6083)
Char.SetHeading(44@, 156.9796)
Char.SetDecisionMaker(44@, 78@)
Char.GiveWeapon(44@, WeaponType.Shovel, 30000)
Char.SetCurrentWeapon(44@, WeaponType.Shovel)
Char.PerformSequence(44@, 57@)
45@ = Char.Create(PedType.Mission1, 260, 637.8237, 825.2736, -41.2744)
Char.SetHeading(45@, 309.4228)
Char.SetDecisionMaker(45@, 53@)
46@ = Char.Create(PedType.Mission1, 260, 638.5316, 826.1287, -41.2291)
Char.SetHeading(46@, 144.6359)
Char.SetDecisionMaker(46@, 53@)
47@ = Char.Create(PedType.Mission1, 260, 583.0614, 849.4081, -43.5974)
Char.SetHeading(47@, 26.0656)
Char.SetDecisionMaker(47@, 53@)
Char.PerformSequence(47@, 205@)
49@ = Char.Create(PedType.Mission2, 71, 491.5784, 940.8132, -17.1478)
Char.GiveWeapon(49@, WeaponType.Pistol, 30000)
Char.SetCurrentWeapon(49@, WeaponType.Pistol)
Char.SetHeading(49@, 279.9455)
Char.SetDecisionMaker(49@, 78@)
Char.PerformSequence(49@, 211@)
50@ = Char.Create(PedType.Mission2, 71, 590.1505, 875.5482, -43.4973)
Char.SetHeading(50@, 278.2997)
Char.SetDecisionMaker(50@, 78@)
Char.GiveWeapon(50@, WeaponType.Pistol, 30000)
Char.SetCurrentWeapon(50@, WeaponType.Pistol)
Char.PerformSequence(50@, 212@)
51@ = Char.Create(PedType.Mission1, 260, 655.8689, 904.3282, -42.0397)
Char.SetHeading(51@, 330.4476)
Char.SetDecisionMaker(51@, 53@)
52@ = Char.Create(PedType.Mission1, 260, 654.8843, 906.4748, -42.0822)
Char.SetHeading(52@, 324.192)
Char.GiveWeapon(52@, WeaponType.Shovel, 30000)
Char.SetCurrentWeapon(52@, WeaponType.Shovel)
Char.SetDecisionMaker(52@, 53@)
35@ = 0

:CASINO2_3982
if 
  not Char.IsDead(43@(35@,10i))
goto_if_false @CASINO2_4016
Char.SetSenseRange(43@(35@,10i), 15.0)

:CASINO2_4016
35@ += 1
  35@ >= 10
goto_if_false @CASINO2_3982
if 
  not Car.IsDead(187@)
goto_if_false @CASINO2_4082
183@ = Char.CreateInsideCar(187@, PedType.Mission1, 260)
Char.SetDecisionMaker(183@, 53@)
Char.PerformSequence(183@, 190@)

:CASINO2_4082
Camera.SetBehindPlayer
35@ = 0

:CASINO2_4091
109@(35@,4i) = Object.CreateNoOffset(#DYNAMITE, 84@(35@,4f), 88@(35@,4f), 92@(35@,4f))
Object.SetProofs(109@(35@,4i), False, False, False, False, False)
121@(35@,4i) = Object.CreateNoOffset(#DYNO_BOX_A, 84@(35@,4f), 88@(35@,4f), 92@(35@,4f))
Object.SetCollision(109@(35@,4i), False)
Object.SetHeading(121@(35@,4i), 96@(35@,4f))
113@(35@,4i) = Object.CreateNoOffset(#DYNO_BOX_B, 84@(35@,4f), 88@(35@,4f), 92@(35@,4f))
Object.SetHeading(113@(35@,4i), 96@(35@,4f))
101@(35@,4i) = Blip.AddForObject(109@(35@,4i))
Blip.ChangeDisplay(101@(35@,4i), BlipDisplay.Both)
Object.MakeTargetable(113@(35@,4i), False)
Object.MakeTargetable(109@(35@,4i), False)
Object.MakeTargetable(121@(35@,4i), False)
Object.SetHealth(113@(35@,4i), 1000)
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_4091
Object.AttachToObject(112@, 116@, 0.0, 0.0, 0.4, 0.0, 0.0, 0.0)
Object.AttachToObject(124@, 116@, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
Object.AttachToCar(116@, 187@, 0.0, 0.8, -0.3, 0.0, 0.0, 0.0)
77@ = Object.Create(#PRIVATESIGN3, 470.3749, 965.7881, 4.5134)
Object.SetHeading(77@, 311.2527)
76@ = Object.Create(#PRIVATESIGN1, 546.1226, 879.7054, -42.1212)
Object.SetHeading(76@, 76.924)
132@ = Blip.AddForCoord(542.6064, 880.7817, -36.3928)
Blip.ChangeDisplay(132@, BlipDisplay.Neither)
133@ = Blip.AddForCoord(585.3983, 870.3217, -39.4206)
Blip.ChangeDisplay(133@, BlipDisplay.Neither)
134@ = Blip.AddForCoord(518.1917, 814.9812, -9.7609)
Blip.ChangeDisplay(134@, BlipDisplay.Neither)
135@ = Blip.AddForCoord(479.1757, 930.0793, -16.6475)
Blip.ChangeDisplay(135@, BlipDisplay.Neither)
136@ = Blip.AddForCoord(437.9441, 869.2394, -4.0196)
Blip.ChangeDisplay(136@, BlipDisplay.Neither)
137@ = Blip.AddForCoord(455.1732, 803.1501, 5.3872)
Blip.ChangeDisplay(137@, BlipDisplay.Neither)
204@ = Blip.AddForCoord(1030.157, 744.3469, 9.7922)
Blip.ChangeDisplay(204@, BlipDisplay.Neither)
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_4771
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO2_4771
83@ = Char.StoreCarIsIn($scplayer)
Car.SetStatus(83@, EntityStatus.Physics)
Car.SetTempAction(83@, TempAction.HandbrakeTurnRight, 1500)

:CASINO2_4771
gosub @CASINO2_18027
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_4921
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO2_4867
Car.SetCoordinates(83@, 777.9584, 838.6478, 4.861)
Car.SetHeading(83@, 0.0)
Char.WarpFromCarToCoord($scplayer, 774.3173, 835.658, 4.8819)
goto @CASINO2_4887

:CASINO2_4867
Char.SetCoordinates($scplayer, 775.5965, 834.8624, 4.8713)

:CASINO2_4887
Task.GoToCoordAnyMeans($scplayer, 771.6103, 836.6703, 4.8969, 4, -1)
Char.SetHeading($scplayer, 87.4579)

:CASINO2_4921
Streaming.LoadSceneInDirection(773.9383, 834.7843, 4.8835, 74.4105)
Camera.SetFixedPosition(776.3613, 837.3477, 7.3533, 0.0, 0.0, 0.0)
Camera.PointAtPoint(775.4211, 837.4819, 7.0403, SwitchType.JumpCut)
wait 500
gosub @CASINO2_18110
Text.PrintNow('PD_01', 4500, 1)
TIMERA = 0

:CASINO2_5029
if 
  4500 > TIMERA
goto_if_false @CASINO2_5083
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_5076
goto @CASINO2_5639

:CASINO2_5076
goto @CASINO2_5029

:CASINO2_5083
Streaming.LoadSceneInDirection(610.9529, 869.6495, -40.7211, 77.0)
Camera.SetFixedPosition(610.9529, 869.6495, -40.7211, 0.0, 0.0, 0.0)
Camera.PointAtPoint(610.0316, 870.0207, -40.8371, SwitchType.JumpCut)
Text.PrintNow('PD_20', 5000, 1)
TIMERA = 0

:CASINO2_5179
if 
  2000 > TIMERA
goto_if_false @CASINO2_5233
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_5226
goto @CASINO2_5639

:CASINO2_5226
goto @CASINO2_5179

:CASINO2_5233
if and
  not Char.IsDead(51@)
  not Char.IsDead(52@)
goto_if_false @CASINO2_5270
Char.PerformSequence(51@, 251@)
Char.PerformSequence(52@, 250@)

:CASINO2_5270
TIMERA = 0

:CASINO2_5277
if 
  3000 > TIMERA
goto_if_false @CASINO2_5331
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_5324
goto @CASINO2_5639

:CASINO2_5324
goto @CASINO2_5277

:CASINO2_5331
Camera.SetFixedPosition(664.9276, 918.5754, -40.8955, 0.0, 0.0, 0.0)
Camera.PointAtPoint(663.9788, 918.2599, -40.9078, SwitchType.JumpCut)
Text.PrintNow('PD_21', 4000, 1)
if 
  not Char.IsDead(46@)
goto_if_false @CASINO2_5450
Task.PlayAnim(46@, "IDLE_CHAT", "PED", 1.0, True, False, False, False, -1)

:CASINO2_5450
TIMERA = 0

:CASINO2_5457
if 
  4000 > TIMERA
goto_if_false @CASINO2_5511
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_5504
goto @CASINO2_5639

:CASINO2_5504
goto @CASINO2_5457

:CASINO2_5511
Camera.SetFixedPosition(661.5589, 921.2776, -40.5538, 0.0, 0.0, 0.0)
Camera.PointAtPoint(661.9819, 920.3747, -40.6291, SwitchType.JumpCut)
Text.PrintNow('PD_27', 6000, 1)
TIMERA = 0

:CASINO2_5585
if 
  6000 > TIMERA
goto_if_false @CASINO2_5639
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_5632
goto @CASINO2_5639

:CASINO2_5632
goto @CASINO2_5585

:CASINO2_5639
if and
  not Char.IsDead(51@)
  not Char.IsDead(52@)
goto_if_false @CASINO2_5676
Char.PerformSequence(51@, 251@)
Char.PerformSequence(52@, 250@)

:CASINO2_5676
if 
  not Char.IsDead(46@)
goto_if_false @CASINO2_5728
Task.PlayAnim(46@, "IDLE_CHAT", "PED", 1.0, True, False, False, False, -1)

:CASINO2_5728
gosub @CASINO2_18075
gosub @CASINO2_18049
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_5793
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 775.4108, 834.5572, 4.8721)
Char.SetHeading($scplayer, 93.2533)

:CASINO2_5793
gosub @CASINO2_18110
Text.ClearPrints
$ca1_random_dialogue_last = 150000
Hud.DisplayTimerWithString($ca1_random_dialogue_last, TimerDirection.Down, 'PD_25')
goto @CASINO2_8497

:CASINO2_5835
Streaming.RequestModel(117)
Streaming.RequestModel(410)
Streaming.RequestAnimation("CARRY")

:CASINO2_5853
if or
  not Streaming.HasModelLoaded(117)
  not Streaming.HasModelLoaded(410)
  not Streaming.HasAnimationLoaded("CARRY")
goto_if_false @CASINO2_5893
wait 0
goto @CASINO2_5853

:CASINO2_5893
48@ = Char.Create(PedType.Mission2, 71, 580.5311, 830.0402, -30.9456)
Char.SetHeading(48@, 57.3299)
Char.SetDecisionMaker(48@, 78@)
Char.GiveWeapon(48@, WeaponType.Pistol, 30000)
Char.SetCurrentWeapon(48@, WeaponType.Pistol)
Char.PerformSequence(48@, 58@)
World.ClearArea(1032.678, 741.7072, 9.8044, 10.0, True)
223@ = Car.Create(410, 1032.678, 741.7072, 9.8044)
Car.LockDoors(223@, CarLock.Locked)
Car.FreezePosition(223@, True)
Car.PopBoot(223@)
Car.SetHeading(223@, 292.6477)
224@ = Char.Create(PedType.CivMale, 117, 1029.173, 740.8435, 9.8018)
Char.SetHeading(224@, 63.6493)
Char.SetSuffersCriticalHits(224@, False)
Char.SetNeverTargeted(224@, True)
Char.SetOnlyDamagedByPlayer(224@, True)
Char.SetDecisionMaker(224@, 127@)
Streaming.RequestModel(428)
Streaming.RequestModel(349)

:CASINO2_6109
if or
  not Streaming.HasModelLoaded(428)
  not Streaming.HasModelLoaded(349)
goto_if_false @CASINO2_6141
wait 0
goto @CASINO2_6109

:CASINO2_6141
World.ClearArea(812.6123, 845.2352, 9.1419, 20.0, True)
73@ = Car.Create(428, 812.6123, 845.2352, 9.1419)
Car.SetHeading(73@, 101.1888)
74@ = Car.Create(428, 812.4752, 840.8808, 8.9765)
Car.SetHeading(74@, 101.8471)
75@ = Car.Create(428, 422.5194, 856.283, 6.1078)
Car.SetHeading(75@, 33.0215)
62@ = Char.CreateInsideCar(73@, PedType.Mission2, 71)
63@ = Char.CreateAsPassenger(73@, PedType.Mission2, 71, 0)
64@ = Char.CreateInsideCar(74@, PedType.Mission2, 71)
65@ = Char.CreateAsPassenger(74@, PedType.Mission2, 71, 0)
35@ = 0

:CASINO2_6323
Char.GiveWeapon(62@(35@,10i), WeaponType.Shotgun, 30000)
Char.SetCurrentWeapon(62@(35@,10i), WeaponType.Shotgun)
Char.SetDecisionMaker(62@(35@,10i), 78@)
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_6323
World.ClearArea(783.6387, 841.395, 4.8177, 20.0, True)
Task.CarDriveToCoord(62@, 73@, 783.6387, 841.395, 4.8177, 20.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
Task.CarDriveToCoord(64@, 74@, 781.6849, 833.6969, 4.8296, 20.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
131@ = 1
Text.ClearPrints
gosub @CASINO2_18075
35@ = 0

:CASINO2_6496
if and
  35@ <> 5
  35@ <> 6
  35@ <> 7
goto_if_false @CASINO2_6557
if 
  not Char.IsDead(43@(35@,10i))
goto_if_false @CASINO2_6557
Char.Delete(43@(35@,10i))

:CASINO2_6557
if 
  35@ == 7
goto_if_false @CASINO2_6616
if 
  not Char.IsDead(43@(35@,10i))
goto_if_false @CASINO2_6616
Char.ClearTasksImmediately(43@(35@,10i))
Task.KillCharOnFoot(43@(35@,10i), $scplayer)

:CASINO2_6616
35@ += 1
  35@ >= 10
goto_if_false @CASINO2_6496
if 
  not Char.IsDead(182@)
goto_if_false @CASINO2_6658
Char.Delete(182@)

:CASINO2_6658
if 
  not Char.IsDead(183@)
goto_if_false @CASINO2_6679
Char.Delete(183@)

:CASINO2_6679
if 
  not Char.IsDead(198@)
goto_if_false @CASINO2_6700
Char.Delete(198@)

:CASINO2_6700
Streaming.RequestModel(468)

:CASINO2_6705
if 
  not Streaming.HasModelLoaded(468)
goto_if_false @CASINO2_6732
wait 0
goto @CASINO2_6705

:CASINO2_6732
82@ = Car.Create(468, 583.0051, 881.9482, -45.0648)
Car.SetCanBurstTires(82@, False)
Car.SetHeading(82@, 93.6785)
World.ClearArea(583.0051, 881.9482, -45.0648, 10.0, True)
World.ClearArea(583.0051, 881.9482, -45.0648, 10.0, True)
192@ = Blip.AddForCar(82@)
Blip.SetAsFriendly(192@, True)
gosub @CASINO2_18027
Weather.ForceNow(WeatherType.SandstormDesert)
Camera.SetFixedPosition(772.3265, 828.7196, 5.8497, 0.0, 0.0, 0.0)
Camera.PointAtPoint(773.1074, 829.3431, 5.8867, SwitchType.JumpCut)
gosub @CASINO2_18110
TIMERA = 0

:CASINO2_6911
if 
  2000 > TIMERA
goto_if_false @CASINO2_6965
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_6958
goto @CASINO2_7851

:CASINO2_6958
goto @CASINO2_6911

:CASINO2_6965
Camera.SetFixedPosition(772.3265, 828.7196, 5.8497, 0.0, 0.0, 0.0)
Camera.PointAtPoint(773.1074, 829.3431, 5.8867, SwitchType.JumpCut)
Text.PrintNow('PD_10', 3500, 1)
TIMERA = 0

:CASINO2_7039
if 
  1000 > TIMERA
goto_if_false @CASINO2_7093
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_7086
goto @CASINO2_7851

:CASINO2_7086
goto @CASINO2_7039

:CASINO2_7093
if 
  not Car.IsDead(74@)
goto_if_false @CASINO2_7114
Car.TaskEveryoneLeave(74@)

:CASINO2_7114
TIMERA = 0

:CASINO2_7121
if 
  500 > TIMERA
goto_if_false @CASINO2_7175
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_7168
goto @CASINO2_7851

:CASINO2_7168
goto @CASINO2_7121

:CASINO2_7175
if 
  not Car.IsDead(73@)
goto_if_false @CASINO2_7196
Car.TaskEveryoneLeave(73@)

:CASINO2_7196
TIMERA = 0

:CASINO2_7203
if 
  2000 > TIMERA
goto_if_false @CASINO2_7257
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_7250
goto @CASINO2_7851

:CASINO2_7250
goto @CASINO2_7203

:CASINO2_7257
Camera.SetFixedPosition(587.0494, 883.9788, -44.1279, 0.0, 0.0, 0.0)
Camera.PointAtPoint(586.0945, 883.6844, -44.1663, SwitchType.JumpCut)
Text.PrintNow('PD_11', 4000, 1)
TIMERA = 0

:CASINO2_7331
if 
  4000 > TIMERA
goto_if_false @CASINO2_7385
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_7378
goto @CASINO2_7851

:CASINO2_7378
goto @CASINO2_7331

:CASINO2_7385
Camera.SetFixedPosition(560.5041, 888.881, -42.2954, 0.0, 0.0, 0.0)
Camera.PointAtPoint(559.5857, 888.5298, -42.1132, SwitchType.JumpCut)
TIMERA = 0

:CASINO2_7443
if 
  100 > TIMERA
goto_if_false @CASINO2_7496
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_7489
goto @CASINO2_7851

:CASINO2_7489
goto @CASINO2_7443

:CASINO2_7496
Camera.SetInterpolationParameters(0.0, 5000)
Camera.SetFixedPosition(560.5041, 888.881, -42.2954, 0.0, 0.0, 0.0)
Camera.PointAtPoint(561.1447, 888.1351, -42.1132, SwitchType.Interpolation)
TIMERA = 0

:CASINO2_7564
if 
  5000 > TIMERA
goto_if_false @CASINO2_7618
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_7611
goto @CASINO2_7851

:CASINO2_7611
goto @CASINO2_7564

:CASINO2_7618
Camera.SetFixedPosition(584.2947, 833.9013, -23.7385, 0.0, 0.0, 0.0)
Camera.PointAtPoint(583.8419, 833.3374, -24.4291, SwitchType.JumpCut)
TIMERA = 0

:CASINO2_7676
if 
  100 > TIMERA
goto_if_false @CASINO2_7729
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_7722
goto @CASINO2_7851

:CASINO2_7722
goto @CASINO2_7676

:CASINO2_7729
Camera.SetInterpolationParameters(0.0, 4000)
Camera.SetFixedPosition(584.2947, 833.9013, -23.7385, 0.0, 0.0, 0.0)
Camera.PointAtPoint(583.3537, 833.6394, -23.5241, SwitchType.Interpolation)
TIMERA = 0

:CASINO2_7797
if 
  4000 > TIMERA
goto_if_false @CASINO2_7851
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_7844
goto @CASINO2_7851

:CASINO2_7844
goto @CASINO2_7797

:CASINO2_7851
gosub @CASINO2_18075
Text.ClearPrints
gosub @CASINO2_18049
gosub @CASINO2_18110
Object.SetHeading(60@, 115.0)
Object.SetHeading(61@, -65.0)
if 
  not Car.IsDead(73@)
goto_if_false @CASINO2_7930
Car.SetCoordinates(73@, 783.6387, 841.395, 4.8177)

:CASINO2_7930
if 
  not Car.IsDead(74@)
goto_if_false @CASINO2_7966
Car.SetCoordinates(74@, 781.6849, 833.6969, 4.8296)

:CASINO2_7966
131@ = 1
125@ = Object.CreateNoOffset(#BARRIER_4ANDY, 783.3699, 847.4722, 4.8193)
Object.SetHeading(125@, 10.654)
125@ = Object.CreateNoOffset(#BARRIER_4ANDY, 778.0906, 847.8346, 4.8515)
Object.SetHeading(125@, 10.5331)
if 
  not Char.IsDead(62@)
goto_if_false @CASINO2_8138
if 
  not Char.IsInAnyCar(62@)
goto_if_false @CASINO2_8108
Char.SetCoordinates(62@, 781.9483, 848.7029, 4.828)
Char.SetHeading(62@, 20.7251)
goto @CASINO2_8138

:CASINO2_8108
Char.WarpFromCarToCoord(62@, 781.9483, 848.7029, 4.828)
Char.SetHeading(62@, 20.7251)

:CASINO2_8138
if 
  not Char.IsDead(63@)
goto_if_false @CASINO2_8237
if 
  not Char.IsInAnyCar(63@)
goto_if_false @CASINO2_8207
Char.SetCoordinates(63@, 777.5142, 849.4856, 4.8551)
Char.SetHeading(63@, 22.0536)
goto @CASINO2_8237

:CASINO2_8207
Char.WarpFromCarToCoord(63@, 777.5142, 849.4856, 4.8551)
Char.SetHeading(63@, 22.0536)

:CASINO2_8237
if 
  not Char.IsDead(64@)
goto_if_false @CASINO2_8336
if 
  not Char.IsInAnyCar(64@)
goto_if_false @CASINO2_8306
Char.SetCoordinates(64@, 773.2135, 821.8822, 4.3934)
Char.SetHeading(64@, 168.8133)
goto @CASINO2_8336

:CASINO2_8306
Char.WarpFromCarToCoord(64@, 773.2135, 821.8822, 4.3934)
Char.SetHeading(64@, 168.8133)

:CASINO2_8336
if 
  not Char.IsDead(65@)
goto_if_false @CASINO2_8435
if 
  not Char.IsInAnyCar(65@)
goto_if_false @CASINO2_8405
Char.SetCoordinates(65@, 778.8481, 819.9525, 4.3237)
Char.SetHeading(65@, 156.0701)
goto @CASINO2_8435

:CASINO2_8405
Char.WarpFromCarToCoord(65@, 778.8481, 819.9525, 4.3237)
Char.SetHeading(65@, 156.0701)

:CASINO2_8435
35@ = 0

:CASINO2_8442
if 
  not Char.IsDead(62@(35@,10i))
goto_if_false @CASINO2_8474
Char.PerformSequence(62@(35@,10i), 72@)

:CASINO2_8474
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_8442
return 

:CASINO2_8497
TIMERB = 0
Text.ClearPrints
Text.PrintNow('PD_26', 7000, 1)

:CASINO2_8522
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_15987
wait 0
256@ += 1
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @CASINO2_8571
goto @CASINO2_16434

:CASINO2_8571
gosub @CASINO2_18143
gosub @CASINO2_20337
gosub @CASINO2_20465
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_8622
218@, 219@, 220@ = Char.GetCoordinates($scplayer)

:CASINO2_8622
gosub @CASINO2_17887
if and
  22000 >= $ca1_random_dialogue_last
  234@ == 0
goto_if_false @CASINO2_8695
if 
  257@ == 1
goto_if_false @CASINO2_8688
set_lvar_int_to_constant 261@ = 32600
gosub @CASINO2_20445

:CASINO2_8688
234@ = 1

:CASINO2_8695
if and
  20000 >= $ca1_random_dialogue_last
  234@ == 1
goto_if_false @CASINO2_8777
if 
  257@ == 1
goto_if_false @CASINO2_8770
set_lvar_text_label 264@s = 'CAS2_BA'
set_lvar_int_to_constant 247@ = 42000
gosub @CASINO2_20317

:CASINO2_8770
234@ = 2

:CASINO2_8777
if and
  6000 >= $ca1_random_dialogue_last
  234@ == 2
goto_if_false @CASINO2_8859
if 
  257@ == 1
goto_if_false @CASINO2_8852
set_lvar_text_label 264@s = 'CAS2_BB'
set_lvar_int_to_constant 247@ = 42001
gosub @CASINO2_20317

:CASINO2_8852
234@ = 3

:CASINO2_8859
if and
  3800 >= $ca1_random_dialogue_last
  234@ == 3
goto_if_false @CASINO2_8941
if 
  257@ == 1
goto_if_false @CASINO2_8934
set_lvar_text_label 264@s = 'CAS2_BC'
set_lvar_int_to_constant 247@ = 42002
gosub @CASINO2_20317

:CASINO2_8934
234@ = 4

:CASINO2_8941
if and
  2800 >= $ca1_random_dialogue_last
  234@ == 4
goto_if_false @CASINO2_9023
if 
  257@ == 1
goto_if_false @CASINO2_9016
set_lvar_text_label 264@s = 'CAS2_BD'
set_lvar_int_to_constant 247@ = 42003
gosub @CASINO2_20317

:CASINO2_9016
234@ = 5

:CASINO2_9023
if and
  Car.IsDead(254@)
  81@ == 0
goto_if_false @CASINO2_9069
Text.PrintNow('PD_33', 4000, 1)
goto @CASINO2_16416

:CASINO2_9069
if and
  not Char.IsDead(198@)
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_9132
if and
  Char.IsShooting(198@)
  259@ == 0
goto_if_false @CASINO2_9132
Char.ClearTasksImmediately(198@)
Task.UseMobilePhone(198@, False)
259@ = 1

:CASINO2_9132
if and
  1800 >= $ca1_random_dialogue_last
  not Char.IsDead(198@)
goto_if_false @CASINO2_9560
if 
  257@ == 1
goto_if_false @CASINO2_9537
gosub @CASINO2_18027
Text.ClearHelp
Text.ClearPrints
Camera.SetFixedPosition(586.0814, 876.6778, -41.6123, 0.0, 0.0, 0.0)
Camera.PointAtPoint(587.0665, 876.6669, -41.7839, SwitchType.JumpCut)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 42004)
Streaming.RequestAnimation("MISC")

:CASINO2_9257
if or
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Streaming.HasAnimationLoaded("MISC")
goto_if_false @CASINO2_9291
wait 0
goto @CASINO2_9257

:CASINO2_9291
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('CAS2_BE', 2000, 1)
wait 1000
TIMERA = 0

:CASINO2_9323
if 
  1000 > TIMERA
goto_if_false @CASINO2_9377
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_9370
goto @CASINO2_9515

:CASINO2_9370
goto @CASINO2_9323

:CASINO2_9377
if 
  not Char.IsDead(198@)
goto_if_false @CASINO2_9454
Char.ClearTasksImmediately(198@)
Char.SetDecisionMaker(198@, 53@)
Char.SetHeading(198@, 270.0)
Task.PlayAnim(198@, "PLUNGER_01", "MISC", 1.0, True, False, False, False, -1)

:CASINO2_9454
TIMERA = 0

:CASINO2_9461
if 
  2000 > TIMERA
goto_if_false @CASINO2_9515
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_9508
goto @CASINO2_9515

:CASINO2_9508
goto @CASINO2_9461

:CASINO2_9515
Streaming.RemoveAnimation("MISC")
gosub @CASINO2_17062
gosub @CASINO2_18049

:CASINO2_9537
Text.PrintNow('PD_19', 4000, 1)
goto @CASINO2_16416

:CASINO2_9560
if and
  Char.IsDead(198@)
  189@ == 0
goto_if_false @CASINO2_9595
Hud.ClearTimer($ca1_random_dialogue_last)
189@ = 1

:CASINO2_9595
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_9635
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO2_9635
193@ = Char.StoreCarIsIn($scplayer)

:CASINO2_9635
if and
  not Car.IsDead(193@)
  not Car.IsDead(187@)
  196@ == 1
goto_if_false @CASINO2_9991
if and
  Car.HasBeenDamagedByCar(187@, 193@)
  194@ == 0
goto_if_false @CASINO2_9991
194@ = 1
if 
  not Car.IsDead(187@)
goto_if_false @CASINO2_9826
if 
  Object.DoesExist(124@)
goto_if_false @CASINO2_9735
Object.SetCollision(124@, False)

:CASINO2_9735
if 
  Object.DoesExist(112@)
goto_if_false @CASINO2_9803
Object.SetCollision(112@, False)
Object.Detach(112@, 0.0, 0.0, 0.0, False)
Object.PlaceRelativeToCar(112@, 187@, 0.0, 1.8, -0.4)

:CASINO2_9803
if 
  Object.DoesExist(116@)
goto_if_false @CASINO2_9826
Object.SetCollision(116@, False)

:CASINO2_9826
Object.Break(116@, 1)
Object.Delete(124@)
set_lvar_float_to_lvar_float 100@ = 95@
100@ += 0.3
Blip.ChangeColor(104@, BlipColor.Red)
213@ = Particle.Create("EXPLOSION_CRATE", 87@, 91@, 95@, 1)
Audio.ReportMissionAudioEventAtObject(116@, 1159)
Particle.PlayAndKill(213@)
120@ = 1
36@ = 2
126@ += 1
if and
  not Char.IsDead(183@)
  not Car.IsDead(187@)
goto_if_false @CASINO2_9991
if and
  Char.IsInCar(183@, 187@)
  not Car.IsDead(187@)
goto_if_false @CASINO2_9991
Task.LeaveCar(183@, 187@)
Task.KillCharOnFoot(183@, $scplayer)

:CASINO2_9991
if and
  not Char.LocateAnyMeans3D($scplayer, 429.469, 916.0814, 0.9027, 20.0, 20.0, 20.0, False)
  227@ == 0
goto_if_false @CASINO2_10171
66@ = Char.Create(PedType.Mission2, 71, 416.5302, 862.1686, 6.7328)
Char.SetHeading(66@, 357.0781)
Char.GiveWeapon(66@, WeaponType.Pistol, 30000)
Char.SetCurrentWeapon(66@, WeaponType.Pistol)
Char.PerformSequence(66@, 217@)
67@ = Char.Create(PedType.Mission2, 71, 423.9201, 861.7891, 5.5413)
Char.SetHeading(67@, 352.4637)
Char.GiveWeapon(67@, WeaponType.Pistol, 30000)
Char.SetCurrentWeapon(67@, WeaponType.Pistol)
Char.PerformSequence(67@, 217@)
227@ = 1

:CASINO2_10171
if 
  Object.DoesExist(112@)
goto_if_false @CASINO2_10201
87@, 91@, 95@ = Object.GetCoordinates(112@)

:CASINO2_10201
if and
  Char.IsInModel($scplayer, 530)
  188@ <> 2
  120@ <> 1
goto_if_false @CASINO2_10308
Text.PrintHelpForever('PD_17')
$car = Char.StoreCarIsIn($scplayer)
if 
  Object.DoesExist(124@)
goto_if_false @CASINO2_10269

:CASINO2_10269
if 
  Object.DoesExist(112@)
goto_if_false @CASINO2_10285

:CASINO2_10285
if 
  Object.DoesExist(116@)
goto_if_false @CASINO2_10301

:CASINO2_10301
goto @CASINO2_10376

:CASINO2_10308
if 
  Object.DoesExist(124@)
goto_if_false @CASINO2_10324

:CASINO2_10324
if 
  Object.DoesExist(112@)
goto_if_false @CASINO2_10340

:CASINO2_10340
if 
  Object.DoesExist(116@)
goto_if_false @CASINO2_10356

:CASINO2_10356
if 
  79@ <> 4
goto_if_false @CASINO2_10376
Text.ClearHelp

:CASINO2_10376
if or
  Char.IsInModel($scplayer, 406)
  Char.IsInModel($scplayer, 486)
goto_if_false @CASINO2_10507
35@ = 0

:CASINO2_10410
if 
  Object.DoesExist(113@(35@,4i))
goto_if_false @CASINO2_10441
Object.SetCollision(113@(35@,4i), False)

:CASINO2_10441
if 
  Object.DoesExist(121@(35@,4i))
goto_if_false @CASINO2_10472
Object.SetCollision(121@(35@,4i), False)

:CASINO2_10472
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_10410
196@ = 1
goto @CASINO2_10604

:CASINO2_10507
35@ = 0

:CASINO2_10514
if 
  Object.DoesExist(113@(35@,4i))
goto_if_false @CASINO2_10545
Object.SetCollision(113@(35@,4i), True)

:CASINO2_10545
if 
  Object.DoesExist(121@(35@,4i))
goto_if_false @CASINO2_10576
Object.SetCollision(121@(35@,4i), True)

:CASINO2_10576
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_10514
196@ = 0

:CASINO2_10604
35@ = 0

:CASINO2_10611
if 
  not Char.IsDead(43@(35@,10i))
goto_if_false @CASINO2_11135
231@, 232@, 233@ = Char.GetCoordinates(43@(35@,10i))
if 
  Char.LocateAnyMeans3D($scplayer, 231@, 232@, 233@, 15.0, 15.0, 3.0, False)
goto_if_false @CASINO2_11135
if and
  129@ == 0
  256@ > 300
  131@ == 0
goto_if_false @CASINO2_11110
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO2_11110
249@ = 0

:CASINO2_10744
130@ = Math.RandomIntInRange(0, 6)
if 
  is_int_lvar_equal_to_int_lvar 130@ == 248@
goto_if_false @CASINO2_10804
249@ += 1
if 
  5 > 249@
goto_if_false @CASINO2_10804
goto @CASINO2_10744

:CASINO2_10804
switch_start 130@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CASINO2_11095 {caseNum1} 0 {caseLabel1} @CASINO2_10867 {caseNum2} 1 {caseLabel2} @CASINO2_10905 {caseNum3} 2 {caseLabel3} @CASINO2_10943 {caseNum4} 3 {caseLabel4} @CASINO2_10981 {caseNum5} 4 {caseLabel5} @CASINO2_11019 {caseNum6} 5 {caseLabel6} @CASINO2_11057 {caseNum7} -1 {caseLabel7} @CASINO2_11095

:CASINO2_10867
set_lvar_text_label 264@s = 'CAS2_AA'
set_lvar_int_to_constant 247@ = 42005
gosub @CASINO2_20317
goto @CASINO2_11095

:CASINO2_10905
set_lvar_text_label 264@s = 'CAS2_AB'
set_lvar_int_to_constant 247@ = 42006
gosub @CASINO2_20317
goto @CASINO2_11095

:CASINO2_10943
set_lvar_text_label 264@s = 'CAS2_AC'
set_lvar_int_to_constant 247@ = 42007
gosub @CASINO2_20317
goto @CASINO2_11095

:CASINO2_10981
set_lvar_text_label 264@s = 'CAS2_AJ'
set_lvar_int_to_constant 247@ = 42014
gosub @CASINO2_20317
goto @CASINO2_11095

:CASINO2_11019
set_lvar_text_label 264@s = 'CAS2_AK'
set_lvar_int_to_constant 247@ = 42015
gosub @CASINO2_20317
goto @CASINO2_11095

:CASINO2_11057
set_lvar_text_label 264@s = 'CAS2_AL'
set_lvar_int_to_constant 247@ = 42016
gosub @CASINO2_20317
goto @CASINO2_11095

:CASINO2_11095
set_lvar_int_to_lvar_int 248@ = 130@
256@ = 0

:CASINO2_11110
if 
  128@ == 0
goto_if_false @CASINO2_11135
128@ = 1

:CASINO2_11135
35@ += 1
  35@ >= 10
goto_if_false @CASINO2_10611
35@ = 0

:CASINO2_11163
if and
  Char.LocateAnyMeans3D($scplayer, 84@(35@,4f), 88@(35@,4f), 92@(35@,4f), 5.0, 5.0, 5.0, False)
  128@ == 1
  36@ == 2
goto_if_false @CASINO2_11414
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO2_11414
130@ = Math.RandomIntInRange(0, 3)
if 
  130@ == 0
goto_if_false @CASINO2_11302
set_lvar_text_label 264@s = 'CAS2_AD'
set_lvar_int_to_constant 247@ = 42008
gosub @CASINO2_20317

:CASINO2_11302
if 
  130@ == 1
goto_if_false @CASINO2_11351
set_lvar_text_label 264@s = 'CAS2_AE'
set_lvar_int_to_constant 247@ = 42009
gosub @CASINO2_20317

:CASINO2_11351
if 
  130@ == 2
goto_if_false @CASINO2_11400
set_lvar_text_label 264@s = 'CAS2_AF'
set_lvar_int_to_constant 247@ = 42010
gosub @CASINO2_20317

:CASINO2_11400
128@ = 2
TIMERB = 0

:CASINO2_11414
if 
  117@(35@,4i) == 0
goto_if_false @CASINO2_12044
if 
  Object.DoesExist(112@)
goto_if_false @CASINO2_11466
87@, 91@, 95@ = Object.GetCoordinates(112@)

:CASINO2_11466
if and
  Char.LocateInCar3D($scplayer, 84@(35@,4f), 88@(35@,4f), 92@(35@,4f), 3.0, 3.0, 3.0, False)
  117@(35@,4i) == 0
goto_if_false @CASINO2_11933
if or
  Char.IsInModel($scplayer, 406)
  Char.IsInModel($scplayer, 486)
goto_if_false @CASINO2_11933
if and
  35@ == 3
  not Car.IsDead(187@)
  not Char.IsDead(183@)
goto_if_false @CASINO2_11613
if 
  Char.IsInCar(183@, 187@)
goto_if_false @CASINO2_11613
Task.LeaveCar(183@, 187@)

:CASINO2_11613
if 
  35@ == 0
goto_if_false @CASINO2_11699
if and
  not Char.IsDead(51@)
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_11665
Char.ClearTasksImmediately(51@)
Char.PerformSequence(51@, 206@)

:CASINO2_11665
if and
  not Char.IsDead(52@)
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_11699
Char.ClearTasksImmediately(52@)
Char.PerformSequence(52@, 206@)

:CASINO2_11699
if 
  225@ == 0
goto_if_false @CASINO2_11740
Text.PrintNow('PD_29', 4000, 1)
225@ = 1

:CASINO2_11740
Pad.Shake(PadId.Pad1, 300, 200)
Object.Break(113@(35@,4i), 1)
set_lvar_float_to_lvar_float 100@ = 92@(35@,4f)
100@ += 0.3
Object.MakeTargetable(113@(35@,4i), False)
Object.SetCoordinates(109@(35@,4i), 84@(35@,4f), 88@(35@,4f), 100@)
Blip.ChangeColor(101@(35@,4i), BlipColor.Red)
37@(35@,4i) = Particle.Create("EXPLOSION_CRATE", 84@(35@,4f), 88@(35@,4f), 92@(35@,4f), 1)
Particle.PlayAndKill(37@(35@,4i))
Audio.ReportMissionAudioEventAtObject(113@(35@,4i), 1140)
117@(35@,4i) = 1
36@ = 2
126@ += 1
gosub @CASINO2_16322

:CASINO2_11933
if and
  Char.LocateAnyMeans3D($scplayer, 84@(35@,4f), 88@(35@,4f), 92@(35@,4f), 2.0, 2.0, 2.0, False)
  36@ == 0
goto_if_false @CASINO2_12044
if and
  not Char.IsInModel($scplayer, 406)
  not Char.IsInModel($scplayer, 486)
goto_if_false @CASINO2_12044
Text.PrintNow('PD_02', 4000, 1)
36@ = 1

:CASINO2_12044
if and
  105@(35@,4i) == 0
  117@(35@,4i) == 1
goto_if_false @CASINO2_12275
set_lvar_float_to_lvar_float 100@ = 92@(35@,4f)
100@ += 0.3
if 
  Char.LocateAnyMeans3D($scplayer, 84@(35@,4f), 88@(35@,4f), 92@(35@,4f), 1.5, 1.5, 1.5, False)
goto_if_false @CASINO2_12275
80@ = 0
if or
  Char.IsInModel($scplayer, 406)
  Char.IsInModel($scplayer, 486)
goto_if_false @CASINO2_12194
80@ = 1

:CASINO2_12194
if 
  80@ == 0
goto_if_false @CASINO2_12275
Blip.Remove(101@(35@,4i))
105@(35@,4i) = 1
Object.SetCollision(109@(35@,4i), False)
Object.Delete(109@(35@,4i))
Pad.Shake(PadId.Pad1, 200, 100)
gosub @CASINO2_16055
126@ = 5

:CASINO2_12275
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_11163
if 
  126@ == 4
goto_if_false @CASINO2_12373
if 
  not Char.IsDead(50@)
goto_if_false @CASINO2_12343
Char.ClearTasksImmediately(50@)
Task.KillCharOnFoot(50@, $scplayer)

:CASINO2_12343
Text.PrintNow('PD_12', 4000, 1)
81@ = 1
126@ = 5

:CASINO2_12373
if and
  79@ == 3
  235@ == 0
goto_if_false @CASINO2_13940
if 
  not Car.IsDead(82@)
goto_if_false @CASINO2_12500
if and
  Char.IsInCar($scplayer, 82@)
  203@ == 0
goto_if_false @CASINO2_12500
Blip.ChangeDisplay(132@, BlipDisplay.BlipOnly)
174@ = Checkpoint.Create(CheckpointType.TubeArrow, 138@, 144@, 150@, 156@, 162@, 168@, 4.0)
Text.PrintNow('PD_23', 4000, 1)
203@ = 1

:CASINO2_12500
if 
  not Car.IsDead(82@)
goto_if_false @CASINO2_12832
if 
  Char.IsInCar($scplayer, 82@)
goto_if_false @CASINO2_12567
if 
  255@ == 0
goto_if_false @CASINO2_12560
255@ = 1

:CASINO2_12560
goto @CASINO2_12608

:CASINO2_12567
if 
  255@ == 1
goto_if_false @CASINO2_12608
Text.PrintNow('PD_X', 4000, 1)
255@ = 0

:CASINO2_12608
if 
  Char.IsInCar($scplayer, 82@)
goto_if_false @CASINO2_12762
if 
  216@ == 0
goto_if_false @CASINO2_12755
if 
  6 > $c2_time_left
goto_if_false @CASINO2_12741
Blip.ChangeDisplay(132@($c2_time_left,6i), BlipDisplay.BlipOnly)
Checkpoint.Delete(174@($c2_time_left,6i))
174@($c2_time_left,6i) = Checkpoint.Create(CheckpointType.TubeArrow, 138@($c2_time_left,6f), 144@($c2_time_left,6f), 150@($c2_time_left,6f), 156@($c2_time_left,6f), 162@($c2_time_left,6f), 168@($c2_time_left,6f), 4.0)

:CASINO2_12741
Blip.ChangeDisplay(192@, BlipDisplay.Neither)
216@ = 1

:CASINO2_12755
goto @CASINO2_12832

:CASINO2_12762
if 
  216@ == 1
goto_if_false @CASINO2_12832
if 
  6 > $c2_time_left
goto_if_false @CASINO2_12818
Blip.ChangeDisplay(132@($c2_time_left,6i), BlipDisplay.Neither)
Checkpoint.Delete(174@($c2_time_left,6i))

:CASINO2_12818
Blip.ChangeDisplay(192@, BlipDisplay.Both)
216@ = 0

:CASINO2_12832
if 
  216@ == 1
goto_if_false @CASINO2_13577
if and
  -4.0 > 220@
  $c2_time_left > 4
goto_if_false @CASINO2_12967
if 
  6 > $c2_time_left
goto_if_false @CASINO2_12916
Blip.ChangeDisplay(132@($c2_time_left,6i), BlipDisplay.Neither)
Checkpoint.Delete(174@($c2_time_left,6i))

:CASINO2_12916
Blip.ChangeDisplay(136@, BlipDisplay.BlipOnly)
178@ = Checkpoint.Create(CheckpointType.TubeArrow, 142@, 148@, 154@, 160@, 166@, 172@, 4.0)
Blip.ChangeDisplay(204@, BlipDisplay.Neither)
$c2_time_left = 4

:CASINO2_12967
if and
  -16.0 > 220@
  $c2_time_left > 3
goto_if_false @CASINO2_13084
if 
  6 > $c2_time_left
goto_if_false @CASINO2_13033
Blip.ChangeDisplay(132@($c2_time_left,6i), BlipDisplay.Neither)
Checkpoint.Delete(174@($c2_time_left,6i))

:CASINO2_13033
Blip.ChangeDisplay(135@, BlipDisplay.BlipOnly)
177@ = Checkpoint.Create(CheckpointType.TubeArrow, 141@, 147@, 153@, 159@, 165@, 171@, 4.0)
Blip.ChangeDisplay(204@, BlipDisplay.Neither)
$c2_time_left = 3

:CASINO2_13084
if and
  -30.0 > 220@
  $c2_time_left > 2
goto_if_false @CASINO2_13201
if 
  6 > $c2_time_left
goto_if_false @CASINO2_13150
Blip.ChangeDisplay(132@($c2_time_left,6i), BlipDisplay.Neither)
Checkpoint.Delete(174@($c2_time_left,6i))

:CASINO2_13150
Blip.ChangeDisplay(134@, BlipDisplay.BlipOnly)
176@ = Checkpoint.Create(CheckpointType.TubeArrow, 140@, 146@, 152@, 158@, 164@, 170@, 4.0)
Blip.ChangeDisplay(204@, BlipDisplay.Neither)
$c2_time_left = 2

:CASINO2_13201
if and
  -40.0 > 220@
  $c2_time_left <> 0
goto_if_false @CASINO2_13318
if 
  6 > $c2_time_left
goto_if_false @CASINO2_13267
Blip.ChangeDisplay(132@($c2_time_left,6i), BlipDisplay.Neither)
Checkpoint.Delete(174@($c2_time_left,6i))

:CASINO2_13267
Blip.ChangeDisplay(132@, BlipDisplay.BlipOnly)
174@ = Checkpoint.Create(CheckpointType.TubeArrow, 138@, 144@, 150@, 156@, 162@, 168@, 4.0)
Blip.ChangeDisplay(204@, BlipDisplay.Neither)
$c2_time_left = 0

:CASINO2_13318
if 
  6 > $c2_time_left
goto_if_false @CASINO2_13577
if and
  Char.LocateAnyMeans3D($scplayer, 138@($c2_time_left,6f), 144@($c2_time_left,6f), 150@($c2_time_left,6f), 3.0, 3.0, 3.0, False)
  216@ == 1
goto_if_false @CASINO2_13577
Blip.ChangeDisplay(132@($c2_time_left,6i), BlipDisplay.Neither)
Checkpoint.Delete(174@($c2_time_left,6i))
$c2_time_left += 1
if 
  6 > $c2_time_left
goto_if_false @CASINO2_13511
174@($c2_time_left,6i) = Checkpoint.Create(CheckpointType.TubeArrow, 138@($c2_time_left,6f), 144@($c2_time_left,6f), 150@($c2_time_left,6f), 156@($c2_time_left,6f), 162@($c2_time_left,6f), 168@($c2_time_left,6f), 4.0)
Blip.ChangeDisplay(132@($c2_time_left,6i), BlipDisplay.BlipOnly)

:CASINO2_13511
if 
  $c2_time_left == 6
goto_if_false @CASINO2_13577
Blip.ChangeDisplay(204@, BlipDisplay.Both)
if 
  226@ == 0
goto_if_false @CASINO2_13577
Text.PrintNow('PD_28', 7000, 1)
226@ = 1

:CASINO2_13577
if and
  Car.IsDead(82@)
  235@ == 0
goto_if_false @CASINO2_13857
Car.MarkAsNoLongerNeeded(82@)
if 
  Blip.DoesExist(192@)
goto_if_false @CASINO2_13626
Blip.Remove(192@)

:CASINO2_13626
if 
  260@ == 0
goto_if_false @CASINO2_13737
World.ClearArea(639.3412, 850.4575, -43.9534, 15.0, True)
82@ = Car.Create(468, 639.3412, 850.4575, -43.9534)
Car.SetCanBurstTires(82@, False)
Car.SetHeading(82@, 90.0)
192@ = Blip.AddForCar(82@)
Blip.SetAsFriendly(192@, True)
260@ = 1
goto @CASINO2_13823

:CASINO2_13737
World.ClearArea(583.0051, 881.9482, -45.0648, 15.0, True)
82@ = Car.Create(468, 583.0051, 881.9482, -45.0648)
Car.SetCanBurstTires(82@, False)
Car.SetHeading(82@, 93.6785)
192@ = Blip.AddForCar(82@)
Blip.SetAsFriendly(192@, True)
260@ = 0

:CASINO2_13823
if 
  258@ == 0
goto_if_false @CASINO2_13857
Text.PrintNow('PD_34', 4000, 1)

:CASINO2_13857
if and
  not Car.IsDead(82@)
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_13940
$x, $y, $z = Char.GetCoordinates($scplayer)
$x, $y, 266@ = Car.GetCoordinates(82@)
266@ -= 6.0
if 
  is_float_lvar_greater_than_float_var 266@ > $z
goto_if_false @CASINO2_13940
Car.Explode(82@)

:CASINO2_13940
if 
  79@ > 0
goto_if_false @CASINO2_15595
if and
  TIMERA > 3000
  79@ == 1
goto_if_false @CASINO2_14007
Text.PrintNow('PD_22', 4000, 1)
79@ = 2

:CASINO2_14007
if and
  TIMERA > 7000
  79@ == 2
goto_if_false @CASINO2_14047
gosub @CASINO2_5835
79@ = 3

:CASINO2_14047
if 
  79@ == 3
goto_if_false @CASINO2_14143
if 
  Car.IsDead(223@)
goto_if_false @CASINO2_14104
Text.PrintNow('PD_30', 4000, 1)
goto @CASINO2_16416

:CASINO2_14104
if 
  Char.IsDead(224@)
goto_if_false @CASINO2_14143
Text.PrintNow('PD_31', 4000, 1)
goto @CASINO2_16416

:CASINO2_14143
if 
  79@ <> 4
goto_if_false @CASINO2_15595
if 
  Char.LocateAnyMeans3D($scplayer, 1030.157, 744.3469, 9.7922, 2.0, 2.0, 2.0, True)
goto_if_false @CASINO2_15595
Player.SetControl($player1, False)
if 
  Blip.DoesExist(204@)
goto_if_false @CASINO2_14237
Blip.Remove(204@)

:CASINO2_14237
35@ = 0

:CASINO2_14244
if 
  Blip.DoesExist(132@(35@,6i))
goto_if_false @CASINO2_14273
Blip.Remove(132@(35@,6i))

:CASINO2_14273
35@ += 1
  35@ >= 5
goto_if_false @CASINO2_14244
Text.ClearPrints
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_15570
gosub @CASINO2_18075
World.ClearArea(1023.937, 738.5938, 9.808, 30.0, True)
if 
  not Car.IsDead(223@)
goto_if_false @CASINO2_14366
Car.FreezePosition(223@, False)

:CASINO2_14366
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_14483
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO2_14463
269@ = Char.StoreCarIsIn($scplayer)
Car.SetCoordinates(269@, 1025.296, 746.0016, 9.8302)
Car.SetHeading(269@, 300.0064)
Char.WarpFromCarToCoord($scplayer, 1028.168, 741.3518, 9.7989)
goto @CASINO2_14483

:CASINO2_14463
Char.SetCoordinates($scplayer, 1028.168, 741.3518, 9.7989)

:CASINO2_14483
if 
  not Char.IsDead(224@)
goto_if_false @CASINO2_14534
Char.ClearTasksImmediately(224@)
Char.SetCoordinates(224@, 1029.173, 740.8435, 9.8018)
Char.SetHeading(224@, 63.6493)

:CASINO2_14534
Char.SetHeading($scplayer, 232.6414)
228@ = Object.Create(#DYNAMITE, 1028.935, 741.1799, 9.8005)
Object.SetHeading(228@, 90.0)
Object.SetCollision(228@, False)
229@ = Object.Create(#DYNAMITE, 1028.935, 741.0, 9.8005)
Object.SetCollision(229@, False)
230@ = Object.Create(#DYNAMITE, 1028.935, 741.0, 9.8005)
Object.SetCollision(230@, False)
Object.AttachToObject(229@, 228@, 0.2, 0.0, -0.2, 0.0, 90.0, 40.0)
Object.AttachToObject(230@, 228@, 0.3, 0.0, 0.0, 0.0, 45.0, 60.0)
if 
  not Char.IsDead(224@)
goto_if_false @CASINO2_14744
Task.ComplexPickupObject(224@, 228@)

:CASINO2_14744
gosub @CASINO2_18027
Streaming.LoadScene(1028.935, 741.1799, 9.8005)
Camera.SetFixedPosition(1026.36, 737.9733, 11.3745, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1026.991, 738.7281, 11.1933, SwitchType.JumpCut)
gosub @CASINO2_18110
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_14878
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 1.0, False, False, False, False, -1)

:CASINO2_14878
Text.PrintNow('CAS2_CA', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 42020)

:CASINO2_14907
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CASINO2_14933
wait 0
goto @CASINO2_14907

:CASINO2_14933
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:CASINO2_14944
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CASINO2_14970
wait 0
goto @CASINO2_14944

:CASINO2_14970
Text.PrintNow('CAS2_CB', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 42021)

:CASINO2_14999
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CASINO2_15025
wait 0
goto @CASINO2_14999

:CASINO2_15025
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:CASINO2_15036
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CASINO2_15062
wait 0
goto @CASINO2_15036

:CASINO2_15062
TIMERA = 0

:CASINO2_15069
if 
  2000 > TIMERA
goto_if_false @CASINO2_15123
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_15116
goto @CASINO2_15437

:CASINO2_15116
goto @CASINO2_15069

:CASINO2_15123
gosub @CASINO2_18075
if 
  not Car.IsDead(223@)
goto_if_false @CASINO2_15151
Car.Delete(223@)

:CASINO2_15151
223@ = Car.Create(410, 1032.678, 741.7072, 9.8044)
Camera.SetFixedPosition(1020.499, 740.7717, 14.7072, 0.0, 0.0, 0.0)
if 
  not Car.IsDead(223@)
goto_if_false @CASINO2_15231
Camera.PointAtCar(223@, CameraMode.Fixed, SwitchType.JumpCut)

:CASINO2_15231
if or
  not Char.IsDead(224@)
  not Car.IsDead(223@)
goto_if_false @CASINO2_15309
Object.Delete(229@)
Object.Delete(230@)
Object.Delete(228@)
Char.WarpIntoCar(224@, 223@)
Task.CarDriveToCoord(224@, 223@, 1052.568, 754.0004, 9.8094, 25.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:CASINO2_15309
TIMERA = 0

:CASINO2_15316
if 
  10 > TIMERA
goto_if_false @CASINO2_15369
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_15362
goto @CASINO2_15437

:CASINO2_15362
goto @CASINO2_15316

:CASINO2_15369
gosub @CASINO2_18110
TIMERA = 0

:CASINO2_15383
if 
  3000 > TIMERA
goto_if_false @CASINO2_15437
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_15430
goto @CASINO2_15437

:CASINO2_15430
goto @CASINO2_15383

:CASINO2_15437
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_15458
Char.ClearTasksImmediately($scplayer)

:CASINO2_15458
if 
  Object.DoesExist(228@)
goto_if_false @CASINO2_15479
Object.Delete(228@)

:CASINO2_15479
if 
  Object.DoesExist(229@)
goto_if_false @CASINO2_15500
Object.Delete(229@)

:CASINO2_15500
if 
  Object.DoesExist(230@)
goto_if_false @CASINO2_15521
Object.Delete(230@)

:CASINO2_15521
if 
  not Char.IsDead(224@)
goto_if_false @CASINO2_15542
Char.Delete(224@)

:CASINO2_15542
if 
  not Car.IsDead(223@)
goto_if_false @CASINO2_15563
Car.Delete(223@)

:CASINO2_15563
gosub @CASINO2_18049

:CASINO2_15570
Text.PrintHelp('PD_32')
79@ = 4
TIMERA = 0

:CASINO2_15595
if and
  79@ == 4
  TIMERA > 4000
goto_if_false @CASINO2_15628
goto @CASINO2_16434

:CASINO2_15628
if 
  Char.LocateAnyMeans3D($scplayer, 454.5292, 804.0931, 5.3702, 2.0, 2.0, 2.0, False)
goto_if_false @CASINO2_15683
258@ = 1

:CASINO2_15683
if 
  Char.LocateAnyMeans3D($scplayer, 447.3409, 811.1259, 5.4896, 2.0, 2.0, 2.0, False)
goto_if_false @CASINO2_15738
258@ = 0

:CASINO2_15738
if 
  not Char.LocateAnyMeans3D($scplayer, 562.4489, 871.3499, -17.0245, 250.0, 250.0, 250.0, False)
goto_if_false @CASINO2_15800
257@ = 0
goto @CASINO2_15807

:CASINO2_15800
257@ = 1

:CASINO2_15807
if and
  not Char.LocateAnyMeans3D($scplayer, 562.4489, 871.3499, -17.0245, 250.0, 250.0, 250.0, False)
  79@ == 3
  6 > $c2_time_left
goto_if_false @CASINO2_15980
if 
  235@ == 0
goto_if_false @CASINO2_15980
Blip.ChangeDisplay(132@($c2_time_left,6i), BlipDisplay.Neither)
Blip.ChangeDisplay(192@($c2_time_left,1i), BlipDisplay.Neither)
Checkpoint.Delete(174@($c2_time_left,6i))
$c2_time_left = 6
Blip.ChangeDisplay(204@, BlipDisplay.Both)
if 
  226@ == 0
goto_if_false @CASINO2_15973
Text.PrintNow('PD_28', 4000, 1)
226@ = 1

:CASINO2_15973
235@ = 1

:CASINO2_15980
goto @CASINO2_8522

:CASINO2_15987
goto @CASINO2_16416

:CASINO2_15994
if 
  42@ == 0
goto_if_false @CASINO2_16046
if 
  41@ == 1
goto_if_false @CASINO2_16046
Text.Print('CAS4_AD', 4000, 1)

:CASINO2_16046
42@ = 1
return 

:CASINO2_16055
if 
  34@ == 0
goto_if_false @CASINO2_16120
gosub @CASINO2_15994
Text.Print('PD_05', 4000, 1)
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_16120
Audio.ReportMissionAudioEventAtChar($scplayer, 1150)

:CASINO2_16120
if 
  34@ == 1
goto_if_false @CASINO2_16178
Text.PrintNow('PD_06', 4000, 1)
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_16178
Audio.ReportMissionAudioEventAtChar($scplayer, 1150)

:CASINO2_16178
if 
  34@ == 2
goto_if_false @CASINO2_16236
Text.PrintNow('PD_07', 4000, 1)
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_16236
Audio.ReportMissionAudioEventAtChar($scplayer, 1150)

:CASINO2_16236
if 
  34@ == 3
goto_if_false @CASINO2_16313
Text.PrintNow('PD_08', 4000, 1)
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_16294
Audio.ReportMissionAudioEventAtChar($scplayer, 1150)

:CASINO2_16294
TIMERA = 0
79@ = 1
Hud.ClearTimer($ca1_random_dialogue_last)

:CASINO2_16313
34@ += 1
return 

:CASINO2_16322
if 
  54@ == 0
goto_if_false @CASINO2_16348
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)

:CASINO2_16348
return 
if 
  41@ == 0
goto_if_false @CASINO2_16375
41@ = 1

:CASINO2_16375
return 
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Text.PrintNow('PD_09', 4000, 1)
wait 4000
return 

:CASINO2_16416
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:CASINO2_16434
start_new_script @HEIST 
start_new_script @QUARRYS 
Blip.Remove($Theheist_contact_blip)
$Theheist_contact_blip = Blip.AddSpriteForContactPoint($TheheistX, $TheheistY, $TheheistZ, $Theheist_blip_icon)
Blip.SetEntryExit($Theheist_contact_blip, 2024.39, 1008.62, 20.0)
$flag_casino_mission_counter += 1
Stat.RegisterMissionPassed('CASEEN2')
Text.PrintWithNumberBig('M_PASSS', 7000, 5000, TextStyle.Middle)
Player.AddScore($player1, 7000)
Stat.AwardPlayerMissionRespect(15)
Stat.PlayerMadeProgress(1)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Weather.Release
Weather.Force(WeatherType.SunnyLa)
Blip.Remove($quarry_contact_blip)
$quarry_contact_blip = Blip.AddShortRangeSpriteForContactPoint($quarryX, $quarryY, $quarryZ, RadarSprite.Bulldozer)
return 

:CASINO2_16583
if 
  $player_fall_state > 0
goto_if_false @CASINO2_16608
$player_fall_state = 6

:CASINO2_16608
$flag_car_normal_carmod = 0
Hud.ClearTimer($ca1_random_dialogue_last)
35@ = 0

:CASINO2_16627
if 
  Blip.DoesExist(101@(35@,4i))
goto_if_false @CASINO2_16656
Blip.Remove(101@(35@,4i))

:CASINO2_16656
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_16627
35@ = 0

:CASINO2_16684
if 
  Blip.DoesExist(132@(35@,6i))
goto_if_false @CASINO2_16713
Blip.Remove(132@(35@,6i))

:CASINO2_16713
35@ += 1
  35@ >= 5
goto_if_false @CASINO2_16684
if 
  Blip.DoesExist(204@)
goto_if_false @CASINO2_16755
Blip.Remove(204@)

:CASINO2_16755
if 
  Blip.DoesExist(192@)
goto_if_false @CASINO2_16776
Blip.Remove(192@)

:CASINO2_16776
if 
  Blip.DoesExist(186@)
goto_if_false @CASINO2_16797
Blip.Remove(186@)

:CASINO2_16797
if 
  not Car.IsDead(73@)
goto_if_false @CASINO2_16818
Car.Delete(73@)

:CASINO2_16818
if 
  not Car.IsDead(74@)
goto_if_false @CASINO2_16839
Car.Delete(74@)

:CASINO2_16839
if 
  not Car.IsDead(75@)
goto_if_false @CASINO2_16860
Car.Delete(75@)

:CASINO2_16860
if 
  Object.DoesExist(60@)
goto_if_false @CASINO2_16886
Object.SetHeading(60@, 0.0)

:CASINO2_16886
if 
  Object.DoesExist(61@)
goto_if_false @CASINO2_16912
Object.SetHeading(61@, 15.0)

:CASINO2_16912
if 
  Object.DoesExist(77@)
goto_if_false @CASINO2_16933
Object.Delete(77@)

:CASINO2_16933
if 
  Object.DoesExist(76@)
goto_if_false @CASINO2_16954
Object.Delete(76@)

:CASINO2_16954
Streaming.MarkModelAsNoLongerNeeded(260)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(153)
Streaming.MarkModelAsNoLongerNeeded(71)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(337)
Streaming.MarkModelAsNoLongerNeeded(530)
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(410)
Streaming.MarkModelAsNoLongerNeeded(428)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.MarkModelAsNoLongerNeeded(406)
Streaming.RemoveAnimation("CARRY")
Streaming.RemoveAnimation("MISC")
$timer_mobile_start = Clock.GetGameTimer()
Player.ClearWantedLevel($player1)
CarGenerator.DontSuppressCarModel(406)
Weather.Release
Mission.Finish
$onmission = 0
return 

:CASINO2_17062
35@ = 0

:CASINO2_17069
if 
  Object.DoesExist(109@(35@,4i))
goto_if_false @CASINO2_17864
switch_start 35@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO2_17695 {caseNum1} 0 {caseLabel1} @CASINO2_17152 {caseNum2} 1 {caseLabel2} @CASINO2_17252 {caseNum3} 2 {caseLabel3} @CASINO2_17310 {caseNum4} 3 {caseLabel4} @CASINO2_17368 {caseNum5} -1 {caseLabel5} @CASINO2_17695 {caseNum6} -1 {caseLabel6} @CASINO2_17695 {caseNum7} -1 {caseLabel7} @CASINO2_17695

:CASINO2_17152
if 
  not Char.IsDead(51@)
goto_if_false @CASINO2_17173
Char.Delete(51@)

:CASINO2_17173
if 
  not Char.IsDead(52@)
goto_if_false @CASINO2_17194
Char.Delete(52@)

:CASINO2_17194
Camera.SetFixedPosition(656.9689, 914.2382, -38.7741, 0.0, 0.0, 0.0)
Camera.PointAtPoint(657.7072, 914.8211, -39.1131, SwitchType.JumpCut)
goto @CASINO2_17695

:CASINO2_17252
Camera.SetFixedPosition(578.0302, 926.3607, -39.6861, 0.0, 0.0, 0.0)
Camera.PointAtPoint(578.5041, 927.1686, -40.0363, SwitchType.JumpCut)
goto @CASINO2_17695

:CASINO2_17310
Camera.SetFixedPosition(543.1476, 853.9489, -38.0164, 0.0, 0.0, 0.0)
Camera.PointAtPoint(543.9039, 853.3993, -38.3712, SwitchType.JumpCut)
goto @CASINO2_17695

:CASINO2_17368
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_17629
if and
  not Car.IsDead(187@)
  188@ == 0
  not Char.IsInModel($scplayer, 530)
goto_if_false @CASINO2_17629
if 
  Object.DoesExist(124@)
goto_if_false @CASINO2_17476
Object.Detach(124@, 0.0, 0.0, 0.0, False)
Object.PlaceRelativeToCar(124@, 187@, 0.0, 1.8, -0.6)

:CASINO2_17476
if 
  Object.DoesExist(112@)
goto_if_false @CASINO2_17537
Object.Detach(112@, 0.0, 0.0, 0.0, False)
Object.PlaceRelativeToCar(112@, 187@, 0.0, 1.8, -0.6)

:CASINO2_17537
if 
  Object.DoesExist(116@)
goto_if_false @CASINO2_17598
Object.Detach(116@, 0.0, 0.0, 0.0, False)
Object.PlaceRelativeToCar(116@, 187@, 0.0, 1.8, -0.6)

:CASINO2_17598
if 
  not Char.IsDead(183@)
goto_if_false @CASINO2_17624
Char.ClearTasksImmediately(183@)
Char.Delete(183@)

:CASINO2_17624
Car.Delete(187@)

:CASINO2_17629
$x, $y, $z = Object.GetCoordinates(112@)
Camera.SetFixedPosition(635.8651, 827.8486, -34.5451, 0.0, 0.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
goto @CASINO2_17695

:CASINO2_17695
if 
  Object.DoesExist(121@(35@,4i))
goto_if_false @CASINO2_17726
Object.FreezePosition(121@(35@,4i), True)

:CASINO2_17726
$x, $y, $z = Object.GetCoordinates(109@(35@,4i))
Fx.AddExplosionVariableShake($x, $y, $z, 11, 5.0)
199@(35@,4i) = Particle.Create("EXPLOSION_SMALL", $x, $y, $z, 1)
Particle.PlayAndKill(199@(35@,4i))
Object.Delete(109@(35@,4i))
if 
  117@(35@,4i) == 0
goto_if_false @CASINO2_17850
Object.Break(113@(35@,4i), 1)

:CASINO2_17850
wait 2000
Particle.Kill(199@(35@,4i))

:CASINO2_17864
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_17069
return 

:CASINO2_17887
if 
  not Char.IsDead(51@)
goto_if_false @CASINO2_17956
if 
  Char.LocateAnyMeans3D(51@, 718.7523, 918.5203, -19.886, 3.0, 3.0, 3.0, False)
goto_if_false @CASINO2_17956
Char.RemoveElegantly(51@)

:CASINO2_17956
if 
  not Char.IsDead(52@)
goto_if_false @CASINO2_18025
if 
  Char.LocateAnyMeans3D(52@, 718.7523, 918.5203, -19.886, 3.0, 3.0, 3.0, False)
goto_if_false @CASINO2_18025
Char.RemoveElegantly(52@)

:CASINO2_18025
return 

:CASINO2_18027
Text.ClearPrints
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
return 

:CASINO2_18049
Text.ClearPrints
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Game.SetEveryoneIgnorePlayer($player1, False)
return 

:CASINO2_18075
Camera.DoFade(500, Fade.Out)

:CASINO2_18082
if 
  Camera.GetFadingStatus
goto_if_false @CASINO2_18106
wait 0
goto @CASINO2_18082

:CASINO2_18106
Text.ClearPrints
return 

:CASINO2_18110
Camera.DoFade(500, Fade.In)

:CASINO2_18117
if 
  Camera.GetFadingStatus
goto_if_false @CASINO2_18141
wait 0
goto @CASINO2_18117

:CASINO2_18141
return 

:CASINO2_18143
if 
is_ps2_keyboard_key_just_pressed 20
goto_if_false @CASINO2_18288
if 
  not Car.IsDead(187@)
goto_if_false @CASINO2_18288
Object.AttachToCar(124@, 187@, -0.4, 0.0, 0.0, 0.0, 90.0, 90.0)
Object.AttachToCar(112@, 187@, 0.0, 0.0, 0.0, 0.0, 90.0, 90.0)
Object.AttachToCar(116@, 187@, -0.4, 0.0, 0.0, 0.0, 90.0, 90.0)

:CASINO2_18288
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @CASINO2_18567
Streaming.RequestModel(117)
Streaming.RequestModel(410)
Streaming.RequestAnimation("CARRY")

:CASINO2_18321
if or
  not Streaming.HasModelLoaded(117)
  not Streaming.HasModelLoaded(410)
  not Streaming.HasAnimationLoaded("CARRY")
goto_if_false @CASINO2_18361
wait 0
goto @CASINO2_18321

:CASINO2_18361
World.ClearArea(1032.678, 741.7072, 9.8044, 10.0, True)
223@ = Car.Create(410, 1032.678, 741.7072, 9.8044)
Car.LockDoors(223@, CarLock.Locked)
Car.FreezePosition(223@, True)
Car.PopBoot(223@)
Car.SetHeading(223@, 292.6477)
224@ = Char.Create(PedType.CivMale, 117, 1029.173, 740.8435, 9.8018)
Char.SetHeading(224@, 63.6493)
Char.SetSuffersCriticalHits(224@, False)
Char.SetNeverTargeted(224@, True)
Char.SetOnlyDamagedByPlayer(224@, True)
Char.SetDecisionMaker(224@, 127@)
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_18567
Char.SetCoordinates($scplayer, 1010.221, 736.1201, 9.8047)
Char.SetHeading($scplayer, 275.6392)
79@ = 3
$c2_time_left = 6
235@ = 1

:CASINO2_18567
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @CASINO2_18712
if 
  not Car.IsDead(187@)
goto_if_false @CASINO2_18712
Object.AttachToCar(124@, 187@, -0.6, 0.0, 0.0, 0.0, 90.0, 90.0)
Object.AttachToCar(112@, 187@, 0.0, 0.5, 0.0, 0.0, 90.0, 90.0)
Object.AttachToCar(116@, 187@, -0.6, 0.0, 0.0, 0.0, 90.0, 90.0)

:CASINO2_18712
if 
is_ps2_keyboard_key_just_pressed 8
goto_if_false @CASINO2_18857
if 
  not Car.IsDead(187@)
goto_if_false @CASINO2_18857
Object.AttachToCar(124@, 187@, -1.0, 0.0, 0.0, 0.0, 90.0, 90.0)
Object.AttachToCar(112@, 187@, 0.0, -1.0, 0.0, 0.0, 90.0, 90.0)
Object.AttachToCar(116@, 187@, -1.0, 0.0, 0.0, 0.0, 90.0, 90.0)

:CASINO2_18857
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @CASINO2_18880
$ca1_random_dialogue_last = 25000

:CASINO2_18880
if 
is_ps2_keyboard_key_just_pressed 28
goto_if_false @CASINO2_18945
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_18945
Text.ClearPrints
Char.SetCoordinates($scplayer, 820.8088, 847.8527, 10.0376)
Char.SetHeading($scplayer, 114.6715)
Camera.SetBehindPlayer

:CASINO2_18945
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @CASINO2_19032
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_19032
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO2_19032
270@ = Char.StoreCarIsIn($scplayer)
Car.SetCoordinates(270@, 495.8263, 820.5667, -9.8729)
Car.SetHeading(270@, 30.4329)
Camera.SetBehindPlayer

:CASINO2_19032
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @CASINO2_19115
75@ = Car.Create(428, 428.4801, 840.5771, 5.5835)
Car.SetHeading(75@, 28.5847)
Streaming.MarkModelAsNoLongerNeeded(428)
66@ = Char.CreateInsideCar(75@, PedType.Mission2, 71)
67@ = Char.CreateAsPassenger(75@, PedType.Mission2, 71, 0)
Streaming.MarkModelAsNoLongerNeeded(71)

:CASINO2_19115
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @CASINO2_19200
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_19180
Text.ClearPrints
Char.SetCoordinates($scplayer, 658.134, 947.6506, -35.8939)
Char.SetHeading($scplayer, 194.3468)
Camera.SetBehindPlayer

:CASINO2_19180
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)

:CASINO2_19200
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @CASINO2_20315
Streaming.RequestModel(117)
Streaming.RequestModel(410)

:CASINO2_19224
if or
  not Streaming.HasModelLoaded(117)
  not Streaming.HasModelLoaded(410)
goto_if_false @CASINO2_19255
wait 0
goto @CASINO2_19224

:CASINO2_19255
World.ClearArea(1032.678, 741.7072, 9.8044, 10.0, True)
223@ = Car.Create(410, 1032.678, 741.7072, 9.8044)
Car.LockDoors(223@, CarLock.Locked)
Car.PopBoot(223@)
Car.SetHeading(223@, 292.6477)
224@ = Char.Create(PedType.CivMale, 117, 1029.173, 740.8435, 9.8018)
Char.SetHeading(224@, 63.6493)
gosub @CASINO2_18075
World.ClearArea(1032.678, 741.7072, 9.8044, 10.0, True)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO2_19432
Char.WarpFromCarToCoord($scplayer, 1028.168, 741.3518, 9.7989)
goto @CASINO2_19452

:CASINO2_19432
Char.SetCoordinates($scplayer, 1028.168, 741.3518, 9.7989)

:CASINO2_19452
if 
  not Char.IsDead(224@)
goto_if_false @CASINO2_19498
Char.SetCoordinates(224@, 1029.173, 740.8435, 9.8018)
Char.SetHeading(224@, 63.6493)

:CASINO2_19498
Char.SetHeading($scplayer, 232.6414)
Streaming.RequestAnimation("CARRY")

:CASINO2_19517
if 
  not Streaming.HasAnimationLoaded("CARRY")
goto_if_false @CASINO2_19548
wait 0
goto @CASINO2_19517

:CASINO2_19548
228@ = Object.Create(#DYNAMITE, 1028.935, 741.1799, 9.8005)
Object.SetHeading(228@, 90.0)
Object.SetCollision(228@, False)
229@ = Object.Create(#DYNAMITE, 1028.935, 741.0, 9.8005)
Object.SetCollision(229@, False)
230@ = Object.Create(#DYNAMITE, 1028.935, 741.0, 9.8005)
Object.SetCollision(230@, False)
Object.AttachToObject(229@, 228@, 0.2, 0.0, -0.2, 0.0, 90.0, 40.0)
Object.AttachToObject(230@, 228@, 0.3, 0.0, 0.0, 0.0, 45.0, 60.0)
Char.ClearTasksImmediately($scplayer)
if 
  not Char.IsDead(224@)
goto_if_false @CASINO2_19753
Task.ComplexPickupObject(224@, 228@)

:CASINO2_19753
gosub @CASINO2_18027
Camera.SetFixedPosition(1026.36, 737.9733, 11.3745, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1026.991, 738.7281, 11.1933, SwitchType.JumpCut)
gosub @CASINO2_18110
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO2_19870
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 1.0, False, False, False, False, -1)

:CASINO2_19870
Text.PrintNow('PD_32', 4000, 1)
wait 1000
TIMERA = 0

:CASINO2_19898
if 
  3000 > TIMERA
goto_if_false @CASINO2_19952
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_19945
goto @CASINO2_20266

:CASINO2_19945
goto @CASINO2_19898

:CASINO2_19952
gosub @CASINO2_18075
if 
  not Car.IsDead(223@)
goto_if_false @CASINO2_19980
Car.Delete(223@)

:CASINO2_19980
223@ = Car.Create(410, 1032.678, 741.7072, 9.8044)
Camera.SetFixedPosition(1020.499, 740.7717, 14.7072, 0.0, 0.0, 0.0)
if 
  not Car.IsDead(223@)
goto_if_false @CASINO2_20060
Camera.PointAtCar(223@, CameraMode.Fixed, SwitchType.JumpCut)

:CASINO2_20060
if or
  not Char.IsDead(224@)
  not Car.IsDead(223@)
goto_if_false @CASINO2_20138
Object.Delete(228@)
Object.Delete(229@)
Object.Delete(230@)
Char.WarpIntoCar(224@, 223@)
Task.CarDriveToCoord(224@, 223@, 1065.901, 775.0016, 9.8227, 25.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:CASINO2_20138
TIMERA = 0

:CASINO2_20145
if 
  10 > TIMERA
goto_if_false @CASINO2_20198
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_20191
goto @CASINO2_15437

:CASINO2_20191
goto @CASINO2_20145

:CASINO2_20198
gosub @CASINO2_18110
TIMERA = 0

:CASINO2_20212
if 
  2000 > TIMERA
goto_if_false @CASINO2_20266
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO2_20259
goto @CASINO2_15437

:CASINO2_20259
goto @CASINO2_20212

:CASINO2_20266
if 
  not Char.IsDead(224@)
goto_if_false @CASINO2_20287
Char.Delete(224@)

:CASINO2_20287
if 
  not Car.IsDead(223@)
goto_if_false @CASINO2_20308
Car.Delete(223@)

:CASINO2_20308
gosub @CASINO2_18049

:CASINO2_20315
return 

:CASINO2_20317
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 247@)
246@ = 0
return 

:CASINO2_20337
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  246@ == 0
goto_if_false @CASINO2_20405
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
if 
  not is_lvar_text_label_equal_to_text_label 264@s == 'DUMMY'
goto_if_false @CASINO2_20398
Text.PrintNow(264@s, 10000, 1)

:CASINO2_20398
246@ = 1

:CASINO2_20405
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  246@ == 1
goto_if_false @CASINO2_20443
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint(264@s)
246@ = 2

:CASINO2_20443
return 

:CASINO2_20445
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 261@)
262@ = 0
return 

:CASINO2_20465
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
  262@ == 0
goto_if_false @CASINO2_20517
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot3, 591.091, 877.4084, -43.4973)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
262@ = 1

:CASINO2_20517
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
  262@ == 1
goto_if_false @CASINO2_20550
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
262@ = 2

:CASINO2_20550
return 

//-------------Mission 86---------------
// Originally: You've Had Your Chips

:CASINO3
script_name 'CASINO3'
gosub @CASINO3_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO3_38
gosub @CASINO3_14135

:CASINO3_38
gosub @CASINO3_14245
terminate_this_script 

:CASINO3_47
Stat.RegisterMissionGiven
Text.LoadMissionText('CASINO3')
$onmission = 1
wait 0
Streaming.SetAreaVisible(11)
Char.SetHasUsedEntryExit($scplayer, 2016.422, 1017.102, 10.0)
Char.SetCoordinates($scplayer, 2027.391, 1008.087, 9.8203)
Char.SetHeading($scplayer, 297.1696)
Cutscene.Load('CAS_3')

:CASINO3_136
if 
  not Cutscene.HasLoaded
goto_if_false @CASINO3_160
wait 0
goto @CASINO3_136

:CASINO3_160
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CASINO3_169
if 
  not Cutscene.HasFinished
goto_if_false @CASINO3_193
wait 0
goto @CASINO3_169

:CASINO3_193
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CASINO3_206
if 
  Camera.GetFadingStatus
goto_if_false @CASINO3_230
wait 0
goto @CASINO3_206

:CASINO3_230
Cutscene.Clear
Streaming.SetAreaVisible(0)
73@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
wait 0
Camera.SetFadingColor(0, 0, 0)
Streaming.RequestModel(401)
Streaming.RequestModel(445)
Streaming.RequestModel(50)
Streaming.RequestModel(50)
Streaming.RequestModel(336)
Streaming.RequestModel(346)
Streaming.RequestModel(351)
Streaming.RequestModel(352)
Streaming.RequestModel(124)
Streaming.RequestModel(125)
Streaming.RequestModel(126)
Streaming.RequestModel(127)
Streaming.RequestModel(530)
Streaming.LoadAllModelsNow

:CASINO3_316
if or
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(401)
goto_if_false @CASINO3_348
wait 0
goto @CASINO3_316

:CASINO3_348
if or
  not Streaming.HasModelLoaded(50)
  not Streaming.HasModelLoaded(124)
  not Streaming.HasModelLoaded(125)
  not Streaming.HasModelLoaded(351)
  not Streaming.HasModelLoaded(352)
goto_if_false @CASINO3_392
wait 0
goto @CASINO3_348

:CASINO3_392
if or
  not Streaming.HasModelLoaded(530)
  not Streaming.HasModelLoaded(127)
  not Streaming.HasModelLoaded(127)
goto_if_false @CASINO3_427
wait 0
goto @CASINO3_392

:CASINO3_427
if or
  not Streaming.HasModelLoaded(50)
  not Streaming.HasModelLoaded(336)
  not Streaming.HasModelLoaded(445)
goto_if_false @CASINO3_463
wait 0
goto @CASINO3_427

:CASINO3_463
Streaming.LoadScene(2031.168, 1030.918, 9.813)
51@ = 99
186@ = 0
187@ = 0
36@ = 0
53@ = 5
54@ = 0
55@ = 0
117@ = 0
142@ = 0
143@ = 0
56@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 1
141@ = 0
91@ = 0
93@ = 0
94@ = 0
118@ = 0
149@ = 0
151@ = 0
152@ = 0
153@ = 0
155@ = 0
154@ = 0
156@ = 0
36@ = 0
157@ = 0
122@ = 0
124@ = 0
169@ = 0
170@ = 0
247@ = 0
171@ = 1
238@ = 1
239@ = 2
240@ = 0
241@ = 1
242@ = 0
243@ = 0
set_lvar_text_label 195@s = 'CAS3_AA'
set_lvar_text_label 197@s = 'CAS3_AB'
set_lvar_text_label 199@s = 'CAS3_AC'
set_lvar_text_label 201@s = 'CAS3_AD'
set_lvar_text_label 203@s = 'CAS3_BA'
set_lvar_text_label 205@s = 'CAS3_BB'
set_lvar_text_label 207@s = 'CAS3_BC'
set_lvar_text_label 209@s = 'CAS3_BD'
set_lvar_text_label 211@s = 'CAS3_BE'
set_lvar_text_label 213@s = 'CAS3_CA'
set_lvar_text_label 215@s = 'CAS3_CB'
set_lvar_text_label 217@s = 'CAS3_CC'
set_lvar_int_to_constant 224@ = 40200
set_lvar_int_to_constant 225@ = 40201
set_lvar_int_to_constant 226@ = 40202
set_lvar_int_to_constant 227@ = 40206
set_lvar_int_to_constant 228@ = 40203
set_lvar_int_to_constant 229@ = 40204
set_lvar_int_to_constant 230@ = 40207
set_lvar_int_to_constant 231@ = 40208
set_lvar_int_to_constant 232@ = 40209
set_lvar_int_to_constant 233@ = 40210
set_lvar_int_to_constant 234@ = 40211
set_lvar_int_to_constant 235@ = 40212
34@ = Game.GetMaxWantedLevel()
if 
  55@ == -13
goto_if_false @CASINO3_1101
179@ = Car.Create(445, 1029.856, 2142.858, 9.813)

:CASINO3_1101
Object.SetCollision($init_ped_density, True)
57@ = Car.Create(401, 2014.72, 1035.238, 9.8127)
Car.SetHeading(57@, 1.0755)
Car.ChangeColor(57@, 10, 2)
58@ = Car.Create(445, 1044.271, 2096.714, 9.813)
Car.SetProofs(58@, False, False, True, False, False)
Car.SetHeading(58@, 27.1148)
Car.ChangeColor(58@, 2, 1)
60@ = Car.Create(530, 1063.887, 2134.724, 9.8203)
Car.SetHeading(60@, 252.0755)
61@ = Car.Create(530, 1060.146, 2083.986, 9.8203)
Car.SetHeading(61@, 233.609)
76@ = Char.CreateInsideCar(61@, PedType.CivMale, 50)
Char.GiveWeapon(76@, WeaponType.MicroUzi, 2000)
Char.SetCanBeShotInVehicle(76@, True)
Streaming.MarkModelAsNoLongerNeeded(401)
Streaming.MarkModelAsNoLongerNeeded(530)
71@ = Char.CreateInsideCar(58@, PedType.Mission1, 124)
Char.GiveWeapon(71@, WeaponType.Pistol, 2000)
Char.SetHeading(71@, 56.724)
Char.SetDecisionMaker(71@, 73@)
Char.SetCanBeShotInVehicle(71@, False)
72@ = Char.CreateAsPassenger(58@, PedType.Mission1, 125, 0)
Char.GiveWeapon(72@, WeaponType.Pistol, 2000)
Char.SetHeading(72@, 148.026)
Char.SetDecisionMaker(72@, 73@)
Char.SetCanBeShotInVehicle(72@, False)
81@ = Char.Create(PedType.Mission1, 127, 1064.213, 2140.694, 9.8203)
Char.GiveWeapon(81@, WeaponType.MicroUzi, 2000)
Char.SetHeading(81@, 156.0958)
Char.SetDecisionMaker(81@, 73@)
82@ = Char.Create(PedType.Mission1, 125, 1093.068, 2107.341, 9.8203)
Char.GiveWeapon(82@, WeaponType.Pistol, 2000)
Char.SetHeading(82@, 115.2591)
Char.SetDecisionMaker(82@, 73@)
83@ = Char.Create(PedType.Mission1, 124, 1092.082, 2116.792, 14.3504)
Char.GiveWeapon(83@, WeaponType.Pistol, 2000)
Char.SetHeading(83@, 115.409)
Char.SetDecisionMaker(83@, 73@)
80@ = Char.Create(PedType.Mission1, 126, 1083.688, 2121.599, 14.3504)
Char.GiveWeapon(80@, WeaponType.Spas12, 2000)
Char.SetDecisionMaker(80@, 73@)
Char.AddArmor(80@, 50)
Char.SetHeading(80@, 115.6952)
74@ = Char.Create(PedType.Mission1, 50, 1056.655, 2108.551, 9.8203)
Char.SetHeading(74@, 186.9465)
Char.SetDecisionMaker(74@, 73@)
Char.SetCanBeShotInVehicle(74@, True)
75@ = Char.Create(PedType.Mission1, 50, 1092.607, 2116.912, 9.8203)
Char.SetHeading(75@, 116.0465)
Char.SetDecisionMaker(75@, 73@)
Char.SetCanBeShotInVehicle(75@, True)
257@ = Object.CreateNoOffset(#CJ_CHIP_MAKER_BITS, 1074.903, 2139.611, 10.7203)
Object.SetProofs(257@, True, True, True, True, True)
266@ = Object.CreateNoOffset(#CJ_CHIP_MAKER, 1074.903, 2139.611, 10.7203)
Object.SetCollision(257@, True)
Object.SetRotation(257@, 0.0, 0.0, 180.0)
Object.SetRotation(266@, 0.0, 0.0, 180.0)
258@ = Object.CreateNoOffset(#CJ_CHIP_MAKER_BITS, 1069.485, 2139.611, 10.7203)
Object.SetProofs(258@, True, True, True, True, True)
267@ = Object.CreateNoOffset(#CJ_CHIP_MAKER, 1069.485, 2139.611, 10.7203)
Object.SetCollision(258@, True)
Object.SetRotation(258@, 0.0, 0.0, 180.0)
Object.SetRotation(267@, 0.0, 0.0, 180.0)
259@ = Object.CreateNoOffset(#CJ_CHIP_MAKER_BITS, 1062.456, 2139.611, 10.7203)
Object.SetProofs(259@, True, True, True, True, True)
268@ = Object.CreateNoOffset(#CJ_CHIP_MAKER, 1062.456, 2139.611, 10.7203)
Object.SetCollision(259@, True)
Object.SetRotation(259@, 0.0, 0.0, 180.0)
Object.SetRotation(268@, 0.0, 0.0, 180.0)
260@ = Object.CreateNoOffset(#CJ_CHIP_MAKER_BITS, 1081.268, 2123.686, 10.7203)
Object.SetProofs(260@, True, True, True, True, True)
269@ = Object.CreateNoOffset(#CJ_CHIP_MAKER, 1081.268, 2123.686, 10.7203)
Object.SetRotation(260@, 0.0, 0.0, 90.0)
Object.SetRotation(269@, 0.0, 0.0, 90.0)
Object.SetCollision(260@, True)
261@ = Object.CreateNoOffset(#CJ_CHIP_MAKER_BITS, 1081.236, 2130.681, 10.7203)
Object.SetProofs(261@, True, True, True, True, True)
270@ = Object.CreateNoOffset(#CJ_CHIP_MAKER, 1081.236, 2130.681, 10.7203)
Object.SetRotation(261@, 0.0, 0.0, 90.0)
Object.SetRotation(270@, 0.0, 0.0, 90.0)
Object.SetCollision(261@, True)
262@ = Object.CreateNoOffset(#CJ_CHIP_MAKER_BITS, 1086.855, 2077.532, 10.7203)
Object.SetProofs(262@, True, True, True, True, True)
271@ = Object.CreateNoOffset(#CJ_CHIP_MAKER, 1086.855, 2077.532, 10.7203)
Object.SetCollision(262@, True)
263@ = Object.CreateNoOffset(#CJ_CHIP_MAKER_BITS, 1091.818, 2121.257, 10.7203)
Object.SetProofs(263@, True, True, True, True, True)
272@ = Object.CreateNoOffset(#CJ_CHIP_MAKER, 1091.818, 2121.257, 10.7203)
Object.SetRotation(263@, 0.0, 0.0, 180.0)
Object.SetRotation(272@, 0.0, 0.0, 180.0)
Object.SetCollision(263@, True)
264@ = Object.CreateNoOffset(#CJ_CHIP_MAKER_BITS, 1094.163, 2102.352, 10.7203)
Object.SetProofs(264@, True, True, True, True, True)
273@ = Object.CreateNoOffset(#CJ_CHIP_MAKER, 1094.163, 2102.352, 10.7203)
Object.SetRotation(264@, 0.0, 0.0, 90.0)
Object.SetRotation(273@, 0.0, 0.0, 90.0)
Object.SetCollision(264@, True)
265@ = Object.CreateNoOffset(#CJ_CHIP_MAKER_BITS, 1094.163, 2092.352, 10.7203)
Object.SetProofs(265@, True, True, True, True, True)
274@ = Object.CreateNoOffset(#CJ_CHIP_MAKER, 1094.163, 2092.352, 10.7203)
Object.SetRotation(265@, 0.0, 0.0, 90.0)
Object.SetRotation(274@, 0.0, 0.0, 90.0)
Object.SetCollision(265@, True)
284@ = 0

:CASINO3_2660
if 
  9 > 284@
goto_if_false @CASINO3_2715
275@(284@,9i) = 0
Object.SetHealth(257@(284@,9i), 1000)
284@ += 1
goto @CASINO3_2660

:CASINO3_2715
106@ = Object.CreateNoOffset(#KMB_CONTAINER_RED, 1023.181, 2106.604, 14.7301)
Object.SetRotation(106@, 0.0, 0.0, 0.0)
107@ = Object.CreateNoOffset(#KMB_CONTAINER_RED, 1077.014, 2070.743, 14.7635)
Object.SetRotation(107@, 0.0, 0.0, 0.0)
139@ = 0.0
140@ = 0.0
37@ = Blip.AddForCoord(1057.636, 2089.694, 9.8203)
Streaming.LoadScene(2031.168, 1030.918, 9.813)
Streaming.RequestCollision(2031.168, 1030.918)
Hud.DisplayZoneNames(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
wait 1000
Camera.DoFade(1000, Fade.In)

:CASINO3_2890
if 
  Camera.GetFadingStatus
goto_if_false @CASINO3_2914
wait 0
goto @CASINO3_2890

:CASINO3_2914
Text.PrintNow('CA3_1', 10000, 1)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.DisplayZoneNames(True)

:CASINO3_2945
wait 0
if 
  Object.DoesExist($2663)
goto_if_false @CASINO3_2985
Object.SetCoordinates($2663, 1055.629, 2087.67, 0.299)

:CASINO3_2985
if 
  240@ <> 0
goto_if_false @CASINO3_3338
if 
  242@ == 0
goto_if_false @CASINO3_3056
if 
  Audio.HasMissionAudioLoaded(239@)
goto_if_false @CASINO3_3042
Audio.ClearMissionAudio(239@)

:CASINO3_3042
242@ = 1
243@ = 1

:CASINO3_3056
if 
  242@ == 1
goto_if_false @CASINO3_3093
Audio.LoadMissionAudio(238@, 223@(240@,15i))
242@ = 2

:CASINO3_3093
if 
  242@ == 2
goto_if_false @CASINO3_3153
if 
  Audio.HasMissionAudioLoaded(238@)
goto_if_false @CASINO3_3153
Audio.PlayMissionAudio(238@)
Text.PrintNow(193@(240@,15s), 10000, 1)
242@ = 3

:CASINO3_3153
if 
  242@ == 3
goto_if_false @CASINO3_3338
if 
  Audio.HasMissionAudioFinished(238@)
goto_if_false @CASINO3_3277
Text.ClearThisPrint(193@(240@,15s))
if 
  238@ == 1
goto_if_false @CASINO3_3235
238@ = 2
239@ = 1
goto @CASINO3_3249

:CASINO3_3235
238@ = 1
239@ = 2

:CASINO3_3249
240@ = 0
242@ = 0
243@ = 0
goto @CASINO3_3338

:CASINO3_3277
if 
  not Audio.HasMissionAudioLoaded(239@)
goto_if_false @CASINO3_3338
if 
  10 > 240@
goto_if_false @CASINO3_3338
set_lvar_int_to_lvar_int 241@ = 240@
241@ += 1
Audio.LoadMissionAudio(239@, 223@(241@,15i))

:CASINO3_3338
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO3_3360
goto @CASINO3_14153

:CASINO3_3360
Object.SetRotation(106@, 0.0, 0.0, 139@)
if 
  36@ <> 1
goto_if_false @CASINO3_3406
139@ += 0.2

:CASINO3_3406
if 
  36@ == 1
goto_if_false @CASINO3_3434
139@ += 0.4

:CASINO3_3434
if 
  139@ > 359.0
goto_if_false @CASINO3_3465
139@ = 0.0

:CASINO3_3465
Object.SetRotation(107@, 0.0, 0.0, 140@)
140@ += 0.25
if 
  140@ > 359.0
goto_if_false @CASINO3_3524
140@ = 0.0

:CASINO3_3524
if 
  36@ == 1
goto_if_false @CASINO3_3619
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO3_3619

:CASINO3_3559
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO3_3587
wait 0
goto @CASINO3_3559

:CASINO3_3587
if 
  150@ > 1
goto_if_false @CASINO3_3619
150@ = 10
36@ = 0

:CASINO3_3619
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @CASINO3_3666
Char.SetCoordinates($scplayer, 1002.171, 2079.443, 9.8203)
Camera.SetBehindPlayer
Char.GiveWeapon($scplayer, WeaponType.Spas12, 2000)

:CASINO3_3666
if 
  155@ == 1
goto_if_false @CASINO3_3743
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO3_3743

:CASINO3_3701
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO3_3729
wait 0
goto @CASINO3_3701

:CASINO3_3729
153@ = 5
155@ = 0

:CASINO3_3743
if 
  156@ == 1
goto_if_false @CASINO3_3820
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO3_3820

:CASINO3_3778
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO3_3806
wait 0
goto @CASINO3_3778

:CASINO3_3806
154@ = 5
156@ = 0

:CASINO3_3820
if 
  157@ == 1
goto_if_false @CASINO3_3897
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO3_3897

:CASINO3_3855
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CASINO3_3883
wait 0
goto @CASINO3_3855

:CASINO3_3883
55@ = 40
157@ = 0

:CASINO3_3897
if 
  171@ == 1
goto_if_false @CASINO3_3962
if 
  $ca3_driven_to_factory == 1
goto_if_false @CASINO3_3962
Skip.SetUp(1009.683, 1987.64, 9.6796, 1.816)
171@ = 0

:CASINO3_3962
if 
  53@ == 5
goto_if_false @CASINO3_4134
if 
  not Char.IsDead(71@)
goto_if_false @CASINO3_4077
if 
  Char.LocateAnyMeansChar2D($scplayer, 71@, 100.0, 100.0, False)
goto_if_false @CASINO3_4077
Skip.Clear
171@ = 0
Text.ClearPrints
Text.PrintNow('CA3_2', 6000, 1)
53@ = 10
34@ = Game.GetMaxWantedLevel()
Game.SetMaxWantedLevel(0)
$ca3_driven_to_factory = 1

:CASINO3_4077
if 
  Char.LocateAnyMeans3D($scplayer, 1009.683, 1987.64, 9.6796, 25.0, 25.0, 5.0, False)
goto_if_false @CASINO3_4134
Skip.Clear
171@ = 0

:CASINO3_4134
if 
  53@ == 10
goto_if_false @CASINO3_4382
if 
  Char.IsInAngledArea2D($scplayer, 1048.428, 2093.521, 1048.822, 2081.844, 15.0, False)
goto_if_false @CASINO3_4209
55@ = 1
53@ = 99

:CASINO3_4209
if 
  Char.IsInAngledArea2D($scplayer, 1055.174, 2064.71, 1054.835, 21099.81, 15.0, False)
goto_if_false @CASINO3_4282
if 
  Char.IsShooting($scplayer)
goto_if_false @CASINO3_4282
170@ = 1
TIMERB = 0

:CASINO3_4282
if 
  Char.DoesExist(76@)
goto_if_false @CASINO3_4331
if 
  Char.HasBeenDamagedByChar(76@, $scplayer)
goto_if_false @CASINO3_4331
55@ = 1
53@ = 99

:CASINO3_4331
if 
  170@ == 1
goto_if_false @CASINO3_4382
if 
  TIMERB > 500
goto_if_false @CASINO3_4382
55@ = 1
53@ = 99

:CASINO3_4382
if 
  55@ == 0
goto_if_false @CASINO3_4753
if 
  0 > 53@
goto_if_false @CASINO3_4753
if 
  151@ == 0
goto_if_false @CASINO3_4509
if 
  not Char.IsDead(76@)
goto_if_false @CASINO3_4509
if 
  not Car.IsDead(61@)
goto_if_false @CASINO3_4509
Task.CarDriveToCoord(76@, 61@, 1030.442, 2106.319, 9.8203, 10.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
151@ = 1

:CASINO3_4509
if 
  151@ == 1
goto_if_false @CASINO3_4648
if 
  not Char.IsDead(76@)
goto_if_false @CASINO3_4648
if 
  not Car.IsDead(61@)
goto_if_false @CASINO3_4648
if 
  Car.Locate3D(61@, 1030.442, 2106.319, 9.8203, 3.0, 3.0, 3.0, False)
goto_if_false @CASINO3_4648
151@ = 2
Task.CarDriveToCoord(76@, 61@, 1060.146, 2084.986, 9.8203, 10.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)

:CASINO3_4648
if 
  151@ == 2
goto_if_false @CASINO3_4753
if 
  not Char.IsDead(76@)
goto_if_false @CASINO3_4753
if 
  not Car.IsDead(61@)
goto_if_false @CASINO3_4753
if 
  Car.Locate3D(61@, 1060.146, 2084.986, 9.8203, 5.0, 5.0, 3.0, False)
goto_if_false @CASINO3_4753
151@ = 0

:CASINO3_4753
if 
  55@ == 1
goto_if_false @CASINO3_6995
if 
  149@ == 0
goto_if_false @CASINO3_5899
if 
  153@ == 0
goto_if_false @CASINO3_5234
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Camera.DoFade(500, Fade.Out)

:CASINO3_4828
if 
  Camera.GetFadingStatus
goto_if_false @CASINO3_4852
wait 0
goto @CASINO3_4828

:CASINO3_4852
89@ = Char.Create(PedType.Mission1, 127, 1083.01, 2099.131, 14.3504)
Char.SetHeading(89@, 186.4201)
Char.GiveWeapon(89@, WeaponType.Pistol, 2000)
Char.SetDecisionMaker(89@, 73@)
87@ = Char.Create(PedType.Mission1, 124, 1084.281, 2097.948, 14.3504)
Char.SetHeading(87@, 153.4201)
Char.GiveWeapon(87@, WeaponType.Pistol, 2000)
Char.SetDecisionMaker(87@, 73@)
Char.SetCoordinates($scplayer, 1050.532, 2087.933, 9.8203)
Char.SetHeading($scplayer, 282.0)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1088.848, 2094.239, 17.2308, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1087.869, 2094.222, 17.0277, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:CASINO3_5048
if 
  Camera.GetFadingStatus
goto_if_false @CASINO3_5072
wait 0
goto @CASINO3_5048

:CASINO3_5072
TIMERA = 0
153@ = 1
if 
  not Char.IsDead(89@)
goto_if_false @CASINO3_5130
Path.FlushRoute
Path.ExtendRoute(1083.361, 2093.45, 14.3504)
Task.FollowPointRoute(89@, 4, RouteMode.Once)

:CASINO3_5130
if 
  not Char.IsDead(87@)
goto_if_false @CASINO3_5174
Path.FlushRoute
Path.ExtendRoute(1084.752, 2093.208, 14.3504)
Task.FollowPointRoute(87@, 4, RouteMode.Once)

:CASINO3_5174
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO3_5234
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @CASINO3_5234
Path.FlushRoute
Path.ExtendRoute(1057.532, 2087.933, 9.8203)
Task.FollowPointRoute($scplayer, 4, RouteMode.Once)

:CASINO3_5234
if 
  153@ == 1
goto_if_false @CASINO3_5384
if 
  TIMERA > 1000
goto_if_false @CASINO3_5278
155@ = 1

:CASINO3_5278
if 
  TIMERA > 3000
goto_if_false @CASINO3_5384
240@ = 8
if 
  not Char.IsDead(89@)
goto_if_false @CASINO3_5333
Char.ClearTasks(89@)
Task.TurnCharToFaceChar(89@, $scplayer)

:CASINO3_5333
if 
  not Char.IsDead(87@)
goto_if_false @CASINO3_5377
Path.FlushRoute
Path.ExtendRoute(1082.375, 2090.25, 14.35044)
Task.FollowPointRoute(87@, 4, RouteMode.Once)

:CASINO3_5377
153@ = 2

:CASINO3_5384
if 
  153@ == 2
goto_if_false @CASINO3_5589
if 
  TIMERA > 6000
goto_if_false @CASINO3_5589
240@ = 9
if 
  not Char.IsDead(89@)
goto_if_false @CASINO3_5477
Char.ClearTasks(89@)
Path.FlushRoute
Path.ExtendRoute(1088.526, 2112.616, 14.3504)
Task.FollowPointRoute(89@, 6, RouteMode.Once)

:CASINO3_5477
if 
  not Char.IsDead(76@)
goto_if_false @CASINO3_5543
if 
  not Car.IsDead(61@)
goto_if_false @CASINO3_5543
Task.CarDriveToCoord(76@, 61@, 1076.809, 2080.526, 9.8203, 9.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)

:CASINO3_5543
if 
  not Char.IsDead(87@)
goto_if_false @CASINO3_5575
Char.ClearTasks(87@)
Task.AimGunAtChar(87@, $scplayer, 4000)

:CASINO3_5575
153@ = 3
TIMERA = 0

:CASINO3_5589
if 
  153@ == 3
goto_if_false @CASINO3_5711
if 
  TIMERA > 2000
goto_if_false @CASINO3_5711
153@ = 5
155@ = 0
if 
  not Char.IsDead(76@)
goto_if_false @CASINO3_5711
Char.ClearTasks(76@)
167@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 1088.783, 2077.573, 9.8203, MoveState.Run, -1)
Sequence.Close(167@)
Char.PerformSequence(76@, 167@)
Sequence.Clear(167@)

:CASINO3_5711
if 
  153@ == 5
goto_if_false @CASINO3_5899
Hud.SwitchWidescreen(False)
if 
  not Char.IsDead(76@)
goto_if_false @CASINO3_5785
if 
  Char.IsSittingInAnyCar(76@)
goto_if_false @CASINO3_5785
Char.WarpFromCarToCoord(76@, 1088.783, 2077.573, 9.8203)

:CASINO3_5785
if 
  not Car.IsDead(61@)
goto_if_false @CASINO3_5831
Car.SetCoordinates(61@, 1076.809, 2080.526, 9.8203)
Car.SetHeading(61@, 273.0)

:CASINO3_5831
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Char.ClearTasks($scplayer)
if 
  not Car.IsDead(58@)
goto_if_false @CASINO3_5871
Car.SetProofs(58@, False, False, False, False, False)

:CASINO3_5871
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
55@ = 2
141@ = 1

:CASINO3_5899
if 
  149@ > 0
goto_if_false @CASINO3_6995
if 
  154@ == 0
goto_if_false @CASINO3_6288
Game.SetEveryoneIgnorePlayer($player1, True)
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:CASINO3_5956
if 
  Camera.GetFadingStatus
goto_if_false @CASINO3_5980
wait 0
goto @CASINO3_5956

:CASINO3_5980
Char.SetCoordinates($scplayer, 1050.532, 2087.933, 9.8203)
Char.SetHeading($scplayer, 282.0)
89@ = Char.Create(PedType.Mission1, 127, 1086.869, 2078.61, 14.3504)
Char.SetHeading(89@, 86.4201)
Char.GiveWeapon(89@, WeaponType.Pistol, 2000)
Char.SetDecisionMaker(89@, 73@)
87@ = Char.Create(PedType.Mission1, 124, 1086.42, 2077.292, 14.3504)
Char.SetHeading(87@, 74.4201)
Char.GiveWeapon(87@, WeaponType.Pistol, 2000)
Char.SetDecisionMaker(87@, 73@)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1075.725, 2094.545, 18.0271, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1074.852, 2094.529, 17.5392, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:CASINO3_6183
if 
  Camera.GetFadingStatus
goto_if_false @CASINO3_6207
wait 0
goto @CASINO3_6183

:CASINO3_6207
TIMERA = 0
154@ = 1
240@ = 7
if 
  not Char.IsDead($scplayer)
goto_if_false @CASINO3_6288
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @CASINO3_6288
Path.FlushRoute
Path.ExtendRoute(1057.532, 2087.933, 9.8203)
Task.FollowPointRoute($scplayer, 4, RouteMode.Once)

:CASINO3_6288
if 
  154@ == 1
goto_if_false @CASINO3_6644
if 
  TIMERA > 300
goto_if_false @CASINO3_6604
if 
  169@ == 0
goto_if_false @CASINO3_6604
if 
  not Char.IsDead(87@)
goto_if_false @CASINO3_6414
Char.ClearTasks(87@)
Task.GoToCoordWhileAiming(87@, 1079.871, 2079.303, 14.3516, 4, 0.5, 0.5, $scplayer, 0.0, 0.0, 0.0)

:CASINO3_6414
if 
  not Char.IsDead(76@)
goto_if_false @CASINO3_6480
if 
  not Car.IsDead(61@)
goto_if_false @CASINO3_6480
Task.CarDriveToCoord(76@, 61@, 1076.809, 2080.526, 9.8203, 9.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)

:CASINO3_6480
if 
  not Char.IsDead(71@)
goto_if_false @CASINO3_6560
Char.ClearTasks(71@)
168@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1064.677, 2094.79, 13.6896, MoveState.Run, -1)
Task.ToggleDuck(-1, True)
Sequence.Close(168@)
Char.PerformSequence(71@, 168@)
Sequence.Clear(168@)
Task.StayInSamePlace(71@, True)

:CASINO3_6560
if 
  not Char.IsDead(72@)
goto_if_false @CASINO3_6590
Task.ToggleDuck(72@, True)
Task.StayInSamePlace(72@, True)

:CASINO3_6590
156@ = 1
169@ = 1

:CASINO3_6604
if 
  TIMERA > 4000
goto_if_false @CASINO3_6644
240@ = 6
154@ = 3
TIMERA = 0

:CASINO3_6644
if 
  154@ == 3
goto_if_false @CASINO3_6766
if 
  TIMERA > 3000
goto_if_false @CASINO3_6766
154@ = 5
156@ = 0
if 
  not Char.IsDead(76@)
goto_if_false @CASINO3_6766
Char.ClearTasks(76@)
167@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 1088.783, 2077.573, 9.8203, MoveState.Run, -1)
Sequence.Close(167@)
Char.PerformSequence(76@, 167@)
Sequence.Clear(167@)

:CASINO3_6766
if 
  154@ == 5
goto_if_false @CASINO3_6995
Hud.SwitchWidescreen(False)
if 
  not Char.IsDead(87@)
goto_if_false @CASINO3_6829
Char.ClearTasks(87@)
Char.SetCoordinates(87@, 1079.871, 2079.303, 14.3516)

:CASINO3_6829
if 
  not Char.IsDead(76@)
goto_if_false @CASINO3_6881
if 
  Char.IsSittingInAnyCar(76@)
goto_if_false @CASINO3_6881
Char.WarpFromCarToCoord(76@, 1088.783, 2077.573, 9.8203)

:CASINO3_6881
if 
  not Car.IsDead(61@)
goto_if_false @CASINO3_6927
Car.SetCoordinates(61@, 1076.809, 2080.526, 9.8203)
Car.SetHeading(61@, 273.0)

:CASINO3_6927
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Char.ClearTasks($scplayer)
if 
  not Car.IsDead(58@)
goto_if_false @CASINO3_6967
Car.SetProofs(58@, False, False, False, False, False)

:CASINO3_6967
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
55@ = 2
141@ = 1

:CASINO3_6995
if 
  55@ == 2
goto_if_false @CASINO3_7255
Blip.Remove(37@)
284@ = 0

:CASINO3_7025
if 
  9 > 284@
goto_if_false @CASINO3_7137
275@(284@,9i) = 0
40@(284@,11i) = Blip.AddForObject(257@(284@,9i))
Object.SetProofs(257@(284@,9i), False, False, False, False, False)
Blip.ChangeScale(40@(284@,11i), 2)
Object.SetHealth(257@(284@,9i), 1000)
Object.MakeTargetable(257@(284@,9i), True)
284@ += 1
goto @CASINO3_7025

:CASINO3_7137
Text.ClearPrints
Text.PrintNow('CA3_7', 6000, 1)
if 
  not Char.IsDead(76@)
goto_if_false @CASINO3_7184
Char.ClearTasks(76@)
Task.KillCharOnFoot(76@, $scplayer)

:CASINO3_7184
if 
  149@ > 0
goto_if_false @CASINO3_7216
gosub @CASINO3_13437
55@ = 4

:CASINO3_7216
if 
  149@ == 0
goto_if_false @CASINO3_7248
gosub @CASINO3_12873
55@ = 4

:CASINO3_7248
gosub @CASINO3_14080

:CASINO3_7255
if 
  55@ == 8
goto_if_false @CASINO3_7384
Text.PrintNow('CA3_23', 6000, 1)
Game.SetMaxWantedLevel(34@)
39@ = Blip.AddForCoord(1918.59, 958.3391, 9.8203)
Blip.ChangeColor(39@, BlipColor.Yellow)
Streaming.MarkModelAsNoLongerNeeded(126)
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.RequestModel(117)
Streaming.RequestModel(118)
Streaming.RequestModel(421)
55@ = 9

:CASINO3_7349
if or
  not Streaming.HasModelLoaded(117)
  not Streaming.HasModelLoaded(421)
  not Streaming.HasModelLoaded(118)
goto_if_false @CASINO3_7384
wait 0
goto @CASINO3_7349

:CASINO3_7384
if 
  55@ == 9
goto_if_false @CASINO3_7728
35@ = Streaming.GetAreaVisible()
if 
  35@ == 0
goto_if_false @CASINO3_7445
if 
  not Game.IsMinigameInProgress
goto_if_false @CASINO3_7445
Player.SetControl($player1, True)

:CASINO3_7445
if 
  Char.LocateAnyMeans3D($scplayer, 1918.59, 958.3391, 9.8203, 4.0, 4.0, 2.0, True)
goto_if_false @CASINO3_7728
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO3_7630
Player.SetControl($player1, False)
if 
  Char.IsStopped($scplayer)
goto_if_false @CASINO3_7623
69@ = Car.Create(421, 1902.168, 974.9742, 9.8203)
Car.SetHeading(69@, 197.2609)
Car.ChangeColor(69@, 4, 2)
if 
  not Car.IsDead(69@)
goto_if_false @CASINO3_7616
68@ = Char.CreateInsideCar(69@, PedType.Mission2, 117)
67@ = Char.CreateAsPassenger(69@, PedType.Mission2, 118, 1)

:CASINO3_7616
55@ = 15

:CASINO3_7623
goto @CASINO3_7728

:CASINO3_7630
Player.SetControl($player1, False)
69@ = Car.Create(421, 1902.168, 974.9742, 9.8203)
Car.SetHeading(69@, 197.2609)
Car.ChangeColor(69@, 4, 2)
if 
  not Car.IsDead(69@)
goto_if_false @CASINO3_7721
68@ = Char.CreateInsideCar(69@, PedType.Mission2, 117)
67@ = Char.CreateAsPassenger(69@, PedType.Mission2, 118, 1)

:CASINO3_7721
55@ = 15

:CASINO3_7728
if 
  55@ == 15
goto_if_false @CASINO3_8013
Car.MarkAsNoLongerNeeded(179@)
Car.MarkAsNoLongerNeeded(58@)
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Text.ClearPrints
World.ClearArea(1913.682, 962.0125, 9.8203, 20.0, True)
World.ClearArea(1903.468, 967.1692, 9.8127, 20.0, True)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1922.234, 951.8628, 12.2282, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1921.715, 952.7101, 12.1171, SwitchType.JumpCut)
55@ = 17
TIMERA = 0
Char.ClearTasks($scplayer)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO3_7967
166@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 1913.682, 962.0125, 9.8203, MoveState.Walk, -1)
Sequence.Close(166@)
Char.PerformSequence($scplayer, 166@)
Sequence.Clear(166@)
goto @CASINO3_8013

:CASINO3_7967
166@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1913.682, 962.0125, 9.8203, MoveState.Walk, -1)
Sequence.Close(166@)
Char.PerformSequence($scplayer, 166@)
Sequence.Clear(166@)

:CASINO3_8013
if 
  55@ == 17
goto_if_false @CASINO3_8077
if 
  TIMERA > 1000
goto_if_false @CASINO3_8077
55@ = 20
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1035)

:CASINO3_8077
if 
  55@ == 20
goto_if_false @CASINO3_8380
if 
  not Object.Slide($init_ped_density, 1903.383, 967.62, 15.438, 0.0, 0.0, 0.02, False)
goto_if_false @CASINO3_8180
  Object.Slide($init_ped_density, 1903.383, 967.62, 15.438, 0.0, 0.0, 0.02, False)

:CASINO3_8180
if 
  TIMERA > 4000
goto_if_false @CASINO3_8380
55@ = 30
if 
  not Char.IsDead(68@)
goto_if_false @CASINO3_8380
if 
  not Car.IsDead(69@)
goto_if_false @CASINO3_8380
Task.CarDriveToCoord(68@, 69@, 1909.04, 959.7415, 9.8203, 7.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
Camera.SetFixedPosition(1914.831, 962.6716, 11.3214, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1913.837, 962.5726, 11.2813, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 1913.682, 962.0125, 9.8203)
Char.SetHeading($scplayer, 100.3)
TIMERA = 0
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1036)

:CASINO3_8380
if 
  55@ == 30
goto_if_false @CASINO3_8572
if 
  not Car.IsDead(69@)
goto_if_false @CASINO3_8572
if 
  Car.Locate2D(69@, 1909.04, 959.7415, 3.0, 3.0, False)
goto_if_false @CASINO3_8519
55@ = 35
if 
  not Char.IsDead(67@)
goto_if_false @CASINO3_8485
Task.LookAtChar(67@, $scplayer, -1)

:CASINO3_8485
240@ = 10
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1035)
TIMERA = 0

:CASINO3_8519
if 
  TIMERA > 10000
goto_if_false @CASINO3_8572
55@ = 35
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1035)
TIMERA = 0

:CASINO3_8572
if 
  55@ == 35
goto_if_false @CASINO3_8735
if 
  not Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.02, False)
goto_if_false @CASINO3_8675
  Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.02, False)

:CASINO3_8675
if 
  TIMERA > 3000
goto_if_false @CASINO3_8735
55@ = 36
TIMERA = 0
247@ = 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1036)

:CASINO3_8735
if 
  247@ > 0
goto_if_false @CASINO3_8876
if 
  243@ == 0
goto_if_false @CASINO3_8876
switch_start 247@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO3_8876 {caseNum1} 1 {caseLabel1} @CASINO3_8834 {caseNum2} 2 {caseLabel2} @CASINO3_8855 {caseNum3} -1 {caseLabel3} @CASINO3_8876 {caseNum4} -1 {caseLabel4} @CASINO3_8876 {caseNum5} -1 {caseLabel5} @CASINO3_8876 {caseNum6} -1 {caseLabel6} @CASINO3_8876 {caseNum7} -1 {caseLabel7} @CASINO3_8876

:CASINO3_8834
240@ = 11
247@ = 2
goto @CASINO3_8876

:CASINO3_8855
240@ = 12
247@ = 0
goto @CASINO3_8876

:CASINO3_8876
if 
  55@ == 36
goto_if_false @CASINO3_9128
if 
  not Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.02, False)
goto_if_false @CASINO3_8979
  Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.02, False)

:CASINO3_8979
if 
  TIMERA > 2000
goto_if_false @CASINO3_9128
if 
  TIMERA > 4000
goto_if_false @CASINO3_9128
if 
  not Car.IsDead(69@)
goto_if_false @CASINO3_9128
if 
  not Char.IsDead(68@)
goto_if_false @CASINO3_9128
Char.ClearTasks(68@)
55@ = 37
Task.CarDriveToCoord(68@, 69@, 1915.04, 940.7415, 9.8203, 10.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
TIMERA = 0
if 
  not Char.IsDead(67@)
goto_if_false @CASINO3_9128
Task.LookAtChar($scplayer, 67@, -1)

:CASINO3_9128
if 
  55@ == 37
goto_if_false @CASINO3_9257
if 
  not Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.02, False)
goto_if_false @CASINO3_9231
  Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.02, False)

:CASINO3_9231
if 
  TIMERA > 4000
goto_if_false @CASINO3_9257
55@ = 40

:CASINO3_9257
if 
  55@ == 40
goto_if_false @CASINO3_9497
if 
  not Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.02, False)
goto_if_false @CASINO3_9360
  Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.02, False)

:CASINO3_9360
157@ = 0
if 
  not Char.IsDead(67@)
goto_if_false @CASINO3_9393
Char.ClearTasksImmediately(67@)
Char.Delete(67@)

:CASINO3_9393
if 
  not Char.IsDead(68@)
goto_if_false @CASINO3_9419
Char.ClearTasksImmediately(68@)
Char.Delete(68@)

:CASINO3_9419
Car.Delete(69@)
Hud.SwitchWidescreen(False)
Char.ClearTasksImmediately($scplayer)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Object.SetCoordinates($init_ped_density, 1903.383, 967.82, 11.438)
Object.SetHeading($init_ped_density, 0.0)
55@ = 45
Text.ClearPrints
goto @CASINO3_14153

:CASINO3_9497
if 
  1 > 55@
goto_if_false @CASINO3_10055
if 
  Char.IsInAngledArea2D($scplayer, 1030.105, 2095.715, 1054.818, 2098.778, 30.0, False)
goto_if_false @CASINO3_9692
if 
  149@ == 0
goto_if_false @CASINO3_9625
if 
  not Char.IsDead(71@)
goto_if_false @CASINO3_9625
if 
  Char.HasSpottedCharInFront(71@, $scplayer)
goto_if_false @CASINO3_9625
149@ = 1
150@ = 1

:CASINO3_9625
if 
  149@ == 0
goto_if_false @CASINO3_9692
if 
  not Char.IsDead(72@)
goto_if_false @CASINO3_9692
if 
  Char.HasSpottedCharInFront(72@, $scplayer)
goto_if_false @CASINO3_9692
149@ = 1
150@ = 1

:CASINO3_9692
if 
  149@ == 0
goto_if_false @CASINO3_9759
if 
  Char.DoesExist(71@)
goto_if_false @CASINO3_9759
if 
  Char.HasBeenDamagedByChar(71@, $scplayer)
goto_if_false @CASINO3_9759
149@ = 1
150@ = 1

:CASINO3_9759
if 
  149@ == 0
goto_if_false @CASINO3_9826
if 
  Char.DoesExist(72@)
goto_if_false @CASINO3_9826
if 
  Char.HasBeenDamagedByChar(72@, $scplayer)
goto_if_false @CASINO3_9826
149@ = 1
150@ = 1

:CASINO3_9826
if 
  149@ == 0
goto_if_false @CASINO3_9893
if 
  not Car.IsDead(58@)
goto_if_false @CASINO3_9893
if 
  Car.HasBeenDamagedByChar(58@, $scplayer)
goto_if_false @CASINO3_9893
149@ = 1
150@ = 1

:CASINO3_9893
if 
  149@ == 3
goto_if_false @CASINO3_9974
if 
  Char.DoesExist(71@)
goto_if_false @CASINO3_9974
if 
  Char.HasBeenDamagedByChar(71@, $scplayer)
goto_if_false @CASINO3_9974
149@ = 4
gosub @CASINO3_12715
55@ = 1
53@ = 99

:CASINO3_9974
if 
  149@ == 3
goto_if_false @CASINO3_10055
if 
  Char.DoesExist(72@)
goto_if_false @CASINO3_10055
if 
  Char.HasBeenDamagedByChar(72@, $scplayer)
goto_if_false @CASINO3_10055
149@ = 4
gosub @CASINO3_12715
55@ = 1
53@ = 99

:CASINO3_10055
if 
  150@ == 1
goto_if_false @CASINO3_10271
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1039.3, 2100.435, 12.2503, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1040.13, 2099.906, 12.0705, SwitchType.JumpCut)
240@ = 1
if 
  not Char.IsDead(71@)
goto_if_false @CASINO3_10184
if 
  not Char.IsDead(72@)
goto_if_false @CASINO3_10184
Task.LookAtChar(71@, 72@, -1)

:CASINO3_10184
240@ = 1
TIMERB = 0
150@ = 3
if 
  not Char.IsDead(76@)
goto_if_false @CASINO3_10271
if 
  not Car.IsDead(61@)
goto_if_false @CASINO3_10271
Task.CarDriveToCoord(76@, 61@, 1076.804, 2080.491, 9.8203, 9.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)

:CASINO3_10271
if 
  150@ == 3
goto_if_false @CASINO3_10355
if 
  TIMERB > 1000
goto_if_false @CASINO3_10315
36@ = 1

:CASINO3_10315
if 
  TIMERB > 3000
goto_if_false @CASINO3_10355
150@ = 5
240@ = 2
TIMERB = 0

:CASINO3_10355
if 
  150@ == 5
goto_if_false @CASINO3_10475
if 
  not Car.IsDead(58@)
goto_if_false @CASINO3_10475
if 
  not Char.IsDead(71@)
goto_if_false @CASINO3_10461
Char.ClearTasks(71@)
137@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 1062.345, 2087.318, 9.8203, MoveState.Run, 10000)
Sequence.Close(137@)
Char.PerformSequence(71@, 137@)
Sequence.Clear(137@)

:CASINO3_10461
150@ = 6
TIMERB = 0

:CASINO3_10475
if 
  150@ == 6
goto_if_false @CASINO3_10614
if 
  TIMERB > 1000
goto_if_false @CASINO3_10614
if 
  not Car.IsDead(58@)
goto_if_false @CASINO3_10614
if 
  not Char.IsDead(72@)
goto_if_false @CASINO3_10600
Char.ClearTasks(72@)
138@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 1056.874, 2084.136, 9.8203, MoveState.Run, 10000)
Sequence.Close(138@)
Char.PerformSequence(72@, 138@)
Sequence.Clear(138@)

:CASINO3_10600
TIMERB = 0
150@ = 8

:CASINO3_10614
if 
  150@ == 8
goto_if_false @CASINO3_10658
if 
  TIMERB > 3700
goto_if_false @CASINO3_10658
150@ = 10

:CASINO3_10658
if 
  150@ == 10
goto_if_false @CASINO3_10878
Hud.SwitchWidescreen(False)
36@ = 0
Char.SetHeading($scplayer, 228.0)
if 
  not Char.IsDead(71@)
goto_if_false @CASINO3_10748
Char.ClearTasksImmediately(71@)
Char.SetCoordinates(71@, 1073.558, 2094.413, 13.6896)
Char.SetHeading(71@, 83.0)

:CASINO3_10748
if 
  not Char.IsDead(72@)
goto_if_false @CASINO3_10799
Char.ClearTasksImmediately(72@)
Char.SetCoordinates(72@, 1066.096, 2098.85, 13.7429)
Char.SetHeading(72@, 132.0)

:CASINO3_10799
if 
  not Car.IsDead(61@)
goto_if_false @CASINO3_10835
Car.SetCoordinates(61@, 1076.804, 2080.491, 9.8203)

:CASINO3_10835
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Text.ClearPrints
Text.PrintNow('CA3_8', 6000, 1)
Player.SetControl($player1, True)
150@ = 99
149@ = 99

:CASINO3_10878
if 
  141@ == 1
goto_if_false @CASINO3_11425
284@ = 0

:CASINO3_10903
if 
  9 > 284@
goto_if_false @CASINO3_11256
if 
  275@(284@,9i) == 0
goto_if_false @CASINO3_11242
52@ = Object.GetHealth(257@(284@,9i))
if 
  Object.HasBeenDamagedByWeapon(257@(284@,9i), WeaponType.Spas12)
goto_if_false @CASINO3_10984
52@ = 0

:CASINO3_10984
if 
  Object.HasBeenDamagedByWeapon(257@(284@,9i), WeaponType.Shotgun)
goto_if_false @CASINO3_11013
52@ = 0

:CASINO3_11013
if 
  Object.HasBeenDamagedByWeapon(257@(284@,9i), WeaponType.Sawnoff)
goto_if_false @CASINO3_11042
52@ = 0

:CASINO3_11042
if 
  52@ == 0
goto_if_false @CASINO3_11242
125@, 126@, 127@ = Object.GetCoordinates(257@(284@,9i))
248@(284@,9i) = Particle.Create("OVERHEAT_CAR_ELECTRIC", 125@, 126@, 127@, 1)
127@ += 1.0
Fx.AddExplosionVariableShake(125@, 126@, 127@, 11, 1.0)
Object.Break(257@(284@,9i), 1)
Blip.Remove(40@(284@,11i))
Object.MakeTargetable(257@(284@,9i), False)
if 
  51@ <> 99
goto_if_false @CASINO3_11207
Particle.Kill(248@(51@,9i))

:CASINO3_11207
Particle.Play(248@(284@,9i))
set_lvar_int_to_lvar_int 51@ = 284@
275@(284@,9i) += 1
117@ += 1

:CASINO3_11242
284@ += 1
goto @CASINO3_10903

:CASINO3_11256
if 
  148@ == 0
goto_if_false @CASINO3_11393
if 
  not Char.IsDead(81@)
goto_if_false @CASINO3_11393
if 
  Char.LocateAnyMeans3D(81@, 1067.581, 2122.251, 9.8203, 1.5, 1.5, 3.0, False)
goto_if_false @CASINO3_11393
Char.ClearTasks(81@)
129@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootWhileDucking(-1, $scplayer, 4, 5000, 60)
Sequence.Close(129@)
Char.PerformSequence(81@, 129@)
Sequence.Clear(129@)
148@ = 1

:CASINO3_11393
if 
  117@ == 9
goto_if_false @CASINO3_11425
55@ = 8
141@ = 99

:CASINO3_11425
if 
  186@ == 0
goto_if_false @CASINO3_11870
if 
  117@ == 3
goto_if_false @CASINO3_11870
172@ = Char.Create(PedType.Mission1, 50, 1020.017, 2082.9, 17.9296)
Char.GiveWeapon(172@, WeaponType.Spas12, 2000)
Char.SetHeading(172@, 269.9465)
Char.SetDecisionMaker(172@, 73@)
if 
  not Char.IsDead(172@)
goto_if_false @CASINO3_11599
Char.ClearTasks(172@)
175@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1038.717, 2082.798, 13.9297, MoveState.Run, -1)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(175@)
Char.PerformSequence(172@, 175@)
Sequence.Clear(175@)

:CASINO3_11599
173@ = Char.Create(PedType.Mission1, 50, 1020.263, 2097.185, 13.9297)
Char.GiveWeapon(173@, WeaponType.Pistol, 2000)
Char.SetHeading(173@, 274.9465)
Char.SetDecisionMaker(173@, 73@)
if 
  not Char.IsDead(173@)
goto_if_false @CASINO3_11725
Char.ClearTasks(173@)
176@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1038.426, 2098.644, 9.8203, MoveState.Run, -2)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(176@)
Char.PerformSequence(173@, 176@)
Sequence.Clear(176@)

:CASINO3_11725
174@ = Char.Create(PedType.Mission1, 50, 1019.671, 2078.126, 13.9297)
Char.GiveWeapon(174@, WeaponType.MicroUzi, 2000)
Char.SetHeading(174@, 267.9465)
Char.SetDecisionMaker(174@, 73@)
if 
  not Char.IsDead(174@)
goto_if_false @CASINO3_11863
Char.ClearTasks(174@)
177@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1068.708, 2085.24, 9.8203, MoveState.Run, -2)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(177@)
Char.PerformSequence(174@, 177@)
Sequence.Clear(177@)

:CASINO3_11863
186@ = 1

:CASINO3_11870
if 
  187@ == 0
goto_if_false @CASINO3_12006
if 
  117@ > 5
goto_if_false @CASINO3_12006
Car.CustomPlateForNextCar(445, "G1RUYHUN")
179@ = Car.Create(445, 1029.856, 2142.858, 9.813)
Car.SetHeading(179@, 205.1437)
Car.ChangeColor(179@, 123, 10)
Car.SetProofs(179@, True, True, True, True, True)
Car.LockDoors(179@, CarLock.LockoutPlayerOnly)
Car.FreezePosition(179@, True)
Car.SetCanBurstTires(179@, False)
187@ = 1

:CASINO3_12006
if 
  187@ == 1
goto_if_false @CASINO3_12293
if 
  117@ > 5
goto_if_false @CASINO3_12293
if 
  not Car.IsDead(179@)
goto_if_false @CASINO3_12293
if 
  not Char.LocateAnyMeansCar2D($scplayer, 179@, 25.0, 25.0, False)
goto_if_false @CASINO3_12293
178@ = Char.CreateInsideCar(179@, PedType.Mission1, 124)
Char.SetDecisionMaker(178@, 73@)
Char.GiveWeapon(178@, WeaponType.MicroUzi, 2000)
180@ = Char.CreateAsPassenger(179@, PedType.Mission1, 125, 1)
Char.SetDecisionMaker(180@, 73@)
Char.GiveWeapon(180@, WeaponType.MicroUzi, 2000)
Task.DriveBy(180@, $scplayer, -1, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 90)
181@ = Char.CreateAsPassenger(179@, PedType.Mission1, 127, 2)
Char.SetDecisionMaker(181@, 73@)
Char.GiveWeapon(181@, WeaponType.MicroUzi, 2000)
Task.DriveBy(181@, $scplayer, -1, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 90)
Car.FreezePosition(179@, False)
Car.SetTempAction(179@, TempAction.GoForward, 5500)
Car.LockDoors(179@, CarLock.Unlocked)
187@ = 2
TIMERB = 0

:CASINO3_12293
if 
  187@ == 2
goto_if_false @CASINO3_12446
if 
  TIMERB > 6500
goto_if_false @CASINO3_12446
if 
  not Car.IsDead(179@)
goto_if_false @CASINO3_12446
if 
  not Char.IsDead(178@)
goto_if_false @CASINO3_12446
if 
  Car.IsStopped(179@)
goto_if_false @CASINO3_12446
Car.SetProofs(179@, False, False, False, False, False)
Char.ClearTasks(178@)
182@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(182@)
Char.PerformSequence(178@, 182@)
Sequence.Clear(182@)
187@ = 3
TIMERB = 0

:CASINO3_12446
if 
  187@ == 3
goto_if_false @CASINO3_12577
if 
  TIMERB > 15000
goto_if_false @CASINO3_12577
if 
  not Car.IsDead(179@)
goto_if_false @CASINO3_12577
if 
  not Char.IsDead(181@)
goto_if_false @CASINO3_12577
if 
  Car.IsStopped(179@)
goto_if_false @CASINO3_12577
Char.ClearTasks(181@)
184@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(184@)
Char.PerformSequence(181@, 184@)
Sequence.Clear(184@)
187@ = 4

:CASINO3_12577
if 
  187@ == 4
goto_if_false @CASINO3_12708
if 
  TIMERB > 25000
goto_if_false @CASINO3_12708
if 
  not Car.IsDead(179@)
goto_if_false @CASINO3_12708
if 
  not Char.IsDead(180@)
goto_if_false @CASINO3_12708
if 
  Car.IsStopped(179@)
goto_if_false @CASINO3_12708
Char.ClearTasks(180@)
183@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(183@)
Char.PerformSequence(180@, 183@)
Sequence.Clear(183@)
187@ = 5

:CASINO3_12708
goto @CASINO3_2945

:CASINO3_12715
if 
  not Char.IsDead(71@)
goto_if_false @CASINO3_12739
Task.KillCharOnFoot(71@, $scplayer)

:CASINO3_12739
if 
  not Char.IsDead(72@)
goto_if_false @CASINO3_12763
Task.KillCharOnFoot(72@, $scplayer)

:CASINO3_12763
if 
  not Char.IsDead(74@)
goto_if_false @CASINO3_12819
Char.SetCoordinates(74@, 1084.126, 2107.637, 14.3504)
Char.SetHeading(74@, 111.4468)
Char.GiveWeapon(74@, WeaponType.Pistol, 2000)

:CASINO3_12819
88@ = Char.Create(PedType.Mission1, 124, 1084.71, 2116.736, 14.3504)
Char.SetHeading(88@, 94.4201)
Char.GiveWeapon(88@, WeaponType.MicroUzi, 2000)
Char.SetDecisionMaker(88@, 73@)
return 

:CASINO3_12873
if 
  144@ == 0
goto_if_false @CASINO3_13435
if 
  not Char.IsDead(87@)
goto_if_false @CASINO3_12948
Char.ClearTasks(87@)
135@ = Sequence.Open()
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(135@)
Char.PerformSequence(87@, 135@)
Sequence.Clear(135@)

:CASINO3_12948
if 
  not Char.IsDead(81@)
goto_if_false @CASINO3_13023
129@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1067.581, 2122.251, 9.8203, MoveState.Run, -2)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(129@)
Char.PerformSequence(81@, 129@)
Sequence.Clear(129@)

:CASINO3_13023
if 
  not Char.IsDead(82@)
goto_if_false @CASINO3_13109
128@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 1085.596, 2106.83, 9.8203, 6, 100.0, 2.0, $scplayer)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(128@)
Char.PerformSequence(82@, 128@)
Sequence.Clear(128@)

:CASINO3_13109
if 
  not Char.IsDead(83@)
goto_if_false @CASINO3_13202
130@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 1082.391, 2091.13, 14.3504, 6, 100.0, 1.0, $scplayer)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootWhileDucking(-1, $scplayer, 4, 3000, 50)
Sequence.Close(130@)
Char.PerformSequence(83@, 130@)
Sequence.Clear(130@)

:CASINO3_13202
if 
  not Char.IsDead(89@)
goto_if_false @CASINO3_13238
Char.ClearTasks(89@)
Task.KillCharOnFoot(89@, $scplayer)
Task.StayInSamePlace(89@, True)

:CASINO3_13238
if 
  not Char.IsDead(74@)
goto_if_false @CASINO3_13277
Char.ClearTasks(74@)
Char.GiveWeapon(74@, WeaponType.Pistol, 2000)
Task.KillCharOnFoot(74@, $scplayer)

:CASINO3_13277
if 
  not Char.IsDead(75@)
goto_if_false @CASINO3_13380
Char.ClearTasks(75@)
Char.GiveWeapon(75@, WeaponType.Pistol, 2000)
Char.SetCoordinates(75@, 1057.055, 2122.319, 13.6896)
Char.SetHeading(75@, 279.0)
79@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(79@)
Char.PerformSequence(75@, 79@)
Sequence.Clear(79@)

:CASINO3_13380
if 
  not Char.IsDead(71@)
goto_if_false @CASINO3_13404
Task.KillCharOnFoot(71@, $scplayer)

:CASINO3_13404
if 
  not Char.IsDead(72@)
goto_if_false @CASINO3_13428
Task.KillCharOnFoot(72@, $scplayer)

:CASINO3_13428
144@ = 1

:CASINO3_13435
return 

:CASINO3_13437
if 
  144@ == 0
goto_if_false @CASINO3_14078
if 
  not Char.IsDead(87@)
goto_if_false @CASINO3_13512
Char.ClearTasks(87@)
135@ = Sequence.Open()
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(135@)
Char.PerformSequence(87@, 135@)
Sequence.Clear(135@)

:CASINO3_13512
if 
  not Char.IsDead(88@)
goto_if_false @CASINO3_13569
Char.ClearTasks(88@)
136@ = Sequence.Open()
Task.Jump(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(136@)
Char.PerformSequence(88@, 136@)
Sequence.Clear(136@)

:CASINO3_13569
if 
  not Char.IsDead(74@)
goto_if_false @CASINO3_13636
Char.GiveWeapon(74@, WeaponType.Pistol, 2000)
Char.ClearTasks(74@)
78@ = Sequence.Open()
Task.Jump(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(78@)
Char.PerformSequence(74@, 78@)
Sequence.Clear(78@)

:CASINO3_13636
if 
  not Char.IsDead(75@)
goto_if_false @CASINO3_13739
Char.GiveWeapon(75@, WeaponType.MicroUzi, 2000)
Char.ClearTasks(75@)
Char.SetCoordinates(75@, 1057.055, 2122.319, 13.6896)
Char.SetHeading(75@, 279.0)
79@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(79@)
Char.PerformSequence(75@, 79@)
Sequence.Clear(79@)

:CASINO3_13739
if 
  not Char.IsDead(81@)
goto_if_false @CASINO3_13814
129@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1067.581, 2122.251, 9.8203, MoveState.Run, -2)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(129@)
Char.PerformSequence(81@, 129@)
Sequence.Clear(129@)

:CASINO3_13814
if 
  not Char.IsDead(82@)
goto_if_false @CASINO3_13894
128@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 1085.596, 2106.83, 9.8203, 6, 100.0, 2.0, $scplayer)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(128@)
Char.PerformSequence(82@, 128@)
Sequence.Clear(128@)

:CASINO3_13894
if 
  not Char.IsDead(83@)
goto_if_false @CASINO3_13987
130@ = Sequence.Open()
Task.GoToCoordWhileShooting(-1, 1082.391, 2091.13, 14.3504, 6, 100.0, 1.0, $scplayer)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootWhileDucking(-1, $scplayer, 4, 3000, 50)
Sequence.Close(130@)
Char.PerformSequence(83@, 130@)
Sequence.Clear(130@)

:CASINO3_13987
if 
  not Char.IsDead(89@)
goto_if_false @CASINO3_14023
Char.ClearTasks(89@)
Task.StayInSamePlace(89@, True)
Task.KillCharOnFoot(89@, $scplayer)

:CASINO3_14023
if 
  not Char.IsDead(71@)
goto_if_false @CASINO3_14047
Task.KillCharOnFoot(71@, $scplayer)

:CASINO3_14047
if 
  not Char.IsDead(72@)
goto_if_false @CASINO3_14071
Task.KillCharOnFoot(72@, $scplayer)

:CASINO3_14071
144@ = 1

:CASINO3_14078
return 

:CASINO3_14080
if 
  not Char.IsDead(80@)
goto_if_false @CASINO3_14133
131@ = Sequence.Open()
Task.KillCharOnFootWhileDucking(-1, $scplayer, 4, 3000, 50)
Sequence.Close(131@)
Char.PerformSequence(80@, 131@)
Sequence.Clear(131@)

:CASINO3_14133
return 

:CASINO3_14135
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:CASINO3_14153
$flag_casino_mission_counter += 1
Stat.RegisterMissionPassed('CASINO3')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSS', 10000, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(20)
Player.AddScore($player1, 10000)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Blip.Remove($casino_contact_blip)
$casino_contact_blip = Blip.AddSpriteForContactPoint(2026.603, 1007.735, 9.8127, $casino_blip_icon)
return 

:CASINO3_14245
if 
  not Car.IsDead(58@)
goto_if_false @CASINO3_14276
Car.SetProofs(58@, False, False, False, False, False)

:CASINO3_14276
if 
  not Car.IsDead(179@)
goto_if_false @CASINO3_14307
Car.SetProofs(179@, False, False, False, False, False)

:CASINO3_14307
if 
  Object.DoesExist($init_ped_density)
goto_if_false @CASINO3_14353
Object.SetCoordinates($init_ped_density, 1903.383, 967.62, 11.438)
Object.SetHeading($init_ped_density, 0.0)

:CASINO3_14353
Game.SetMaxWantedLevel(34@)
$timer_mobile_start = Clock.GetGameTimer()
Player.ClearWantedLevel($player1)
if 
  Object.DoesExist($2663)
goto_if_false @CASINO3_14404
Object.SetCoordinates($2663, 1055.629, 2087.67, 12.469)

:CASINO3_14404
Blip.Remove(37@)
Blip.Remove(39@)
284@ = 0

:CASINO3_14421
if 
  9 > 284@
goto_if_false @CASINO3_14462
Blip.Remove(40@(284@,11i))
284@ += 1
goto @CASINO3_14421

:CASINO3_14462
if 
  51@ <> 99
goto_if_false @CASINO3_14489
Particle.Kill(248@(51@,9i))

:CASINO3_14489
Streaming.MarkModelAsNoLongerNeeded(124)
Streaming.MarkModelAsNoLongerNeeded(125)
Streaming.MarkModelAsNoLongerNeeded(126)
Streaming.MarkModelAsNoLongerNeeded(127)
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(118)
Streaming.MarkModelAsNoLongerNeeded(421)
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.MarkModelAsNoLongerNeeded(351)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(336)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(445)
Streaming.MarkModelAsNoLongerNeeded(401)
Streaming.MarkModelAsNoLongerNeeded(530)
World.RemoveAllScriptFires
$onmission = 0
Mission.Finish
return 

//-------------Mission 87---------------
// Originally: Fish in a Barrel

:CASINO7
script_name 'CASINO7'
gosub @CASINO7_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO7_38
gosub @CASINO7_301

:CASINO7_38
gosub @CASINO7_360
terminate_this_script 

:CASINO7_47
Text.LoadMissionText('CASINO7')
Stat.RegisterMissionGiven
$onmission = 1
wait 0
Streaming.SetAreaVisible(11)
Cutscene.Load('CAS_7B')

:CASINO7_86
if 
  not Cutscene.HasLoaded
goto_if_false @CASINO7_110
wait 0
goto @CASINO7_86

:CASINO7_110
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CASINO7_119
if 
  not Cutscene.HasFinished
goto_if_false @CASINO7_143
wait 0
goto @CASINO7_119

:CASINO7_143
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CASINO7_156
if 
  Camera.GetFadingStatus
goto_if_false @CASINO7_180
wait 0
goto @CASINO7_156

:CASINO7_180
Cutscene.Clear
Streaming.SetAreaVisible(0)
Camera.SetFadingColor(0, 0, 0)
Char.SetHasUsedEntryExit($scplayer, 2016.422, 1017.102, 10.0)
Streaming.RequestCollision(2025.8, 1007.87)
Streaming.LoadSceneInDirection(2025.8, 1007.87, 9.81, 279.83)
Char.SetCoordinates($scplayer, 2025.8, 1007.87, 9.81)
Char.SetHeading($scplayer, 279.83)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Camera.DoFade(2000, Fade.In)
goto @CASINO7_319

:CASINO7_301
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:CASINO7_319
Blip.Remove($casino_contact_blip)
$flag_casino_mission_counter += 1
Stat.RegisterMissionPassed('CASINO7')
Stat.SetInt(StatId.PassedCasino7, 1)
Player.ClearWantedLevel($player1)
Stat.PlayerMadeProgress(1)
return 

:CASINO7_360
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

//-------------Mission 88---------------
// Originally: Don Peyote

:CASINO4
script_name 'CASINO4'
gosub @CASINO4_86
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO4_38
gosub @CASINO4_45862

:CASINO4_38
gosub @CASINO4_45947
terminate_this_script 
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:CASINO4_62
if 
  Camera.GetFadingStatus
goto_if_false @CASINO4_86
wait 0
goto @CASINO4_62

:CASINO4_86
Stat.RegisterMissionGiven
$onmission = 1
Weather.Force(WeatherType.SunnyVegas)
Text.LoadMissionText('CASINO4')
Cutscene.Load('CAS_4A')

:CASINO4_121
if 
  not Cutscene.HasLoaded
goto_if_false @CASINO4_145
wait 0
goto @CASINO4_121

:CASINO4_145
World.ClearArea(2027.359, 1007.738, 9.8127, 10.0, True)
Char.SetHeading($scplayer, 265.5486)
294@ = Clock.GetGameTimer()
295@ = 0
if 
  295@ == 99
goto_if_false @CASINO4_316
289@ = Car.Create(291@, 2044.621, 1110.198, 9.6719)
290@ = Char.CreateRandomAsDriver(289@)
73@ = Char.CreateRandomAsDriver(289@)
75@ = Char.CreateRandomAsDriver(289@)
74@ = Char.CreateRandomAsDriver(289@)
76@ = Char.CreateRandomAsDriver(289@)
136@ = Particle.Create("PUKE", 95@, 96@, 97@, 1)
137@ = Particle.Create("PUKE", 95@, 96@, 97@, 1)

:CASINO4_316
Player.MakeGangDisappear
Cutscene.Start
Camera.DoFade(1000, Fade.In)
TIMERA = 0

:CASINO4_334
if 
  not Cutscene.HasFinished
goto_if_false @CASINO4_857
293@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 296@ = 293@
sub_int_lvar_from_int_lvar 296@ -= 294@
if 
  296@ > 15000
goto_if_false @CASINO4_846
if 
  TIMERA > 2000
goto_if_false @CASINO4_846
switch_start 295@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @CASINO4_832 {caseNum1} 0 {caseLabel1} @CASINO4_469 {caseNum2} 1 {caseLabel2} @CASINO4_574 {caseNum3} 2 {caseLabel3} @CASINO4_647 {caseNum4} 3 {caseLabel4} @CASINO4_752 {caseNum5} -1 {caseLabel5} @CASINO4_839 {caseNum6} -1 {caseLabel6} @CASINO4_839 {caseNum7} -1 {caseLabel7} @CASINO4_839

:CASINO4_469
291@, 292@ = Streaming.GetRandomCarModelInMemory(True)
if 
  291@ <> -1
goto_if_false @CASINO4_560
289@ = Car.Create(291@, 2051.544, 1100.511, 9.6719)
Car.SetToFadeIn(289@, 0)
Car.SetHeading(289@, 183.2183)
290@ = Char.CreateRandomAsDriver(289@)
Car.WanderRandomly(289@)
Char.MarkAsNoLongerNeeded(290@)
Car.MarkAsNoLongerNeeded(289@)

:CASINO4_560
295@ += 1
goto @CASINO4_839

:CASINO4_574
290@ = Char.CreateRandom(2034.814, 993.6725, 9.813)
Char.SetHeading(290@, 357.2051)
Task.FollowPathNodesToCoord(290@, 2033.856, 1051.804, 9.8203, 4, -2)
Char.MarkAsNoLongerNeeded(290@)
295@ += 1
goto @CASINO4_839

:CASINO4_647
291@, 292@ = Streaming.GetRandomCarModelInMemory(True)
if 
  291@ <> -1
goto_if_false @CASINO4_738
289@ = Car.Create(291@, 2051.544, 1100.511, 9.6719)
Car.SetToFadeIn(289@, 0)
Car.SetHeading(289@, 183.2183)
290@ = Char.CreateRandomAsDriver(289@)
Car.WanderRandomly(289@)
Char.MarkAsNoLongerNeeded(290@)
Car.MarkAsNoLongerNeeded(289@)

:CASINO4_738
295@ += 1
goto @CASINO4_839

:CASINO4_752
290@ = Char.CreateRandom(2033.856, 1041.804, 9.8203)
Char.SetHeading(290@, 181.0345)
Task.FollowPathNodesToCoord(290@, 2032.257, 986.0109, 9.813, 4, -2)
Char.MarkAsNoLongerNeeded(290@)
295@ = 0
goto @CASINO4_839
295@ = 0

:CASINO4_832
goto @CASINO4_839

:CASINO4_839
TIMERA = 0

:CASINO4_846
wait 0
goto @CASINO4_334

:CASINO4_857
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CASINO4_870
if 
  Camera.GetFadingStatus
goto_if_false @CASINO4_894
wait 0
goto @CASINO4_870

:CASINO4_894
Cutscene.Clear
Player.MakeGangReappear
Weather.Release
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
39@ = DecisionMakerGroup.Load(0)
Group.SetDecisionMaker($Players_Group, 39@)
37@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
38@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Player.SetControl($player1, False)
Camera.DoFade(1500, Fade.Out)

:CASINO4_957
if 
  Camera.GetFadingStatus
goto_if_false @CASINO4_981
wait 0
goto @CASINO4_957

:CASINO4_981
Char.MarkAsNoLongerNeeded(290@)
Car.MarkAsNoLongerNeeded(289@)
wait 0
Streaming.LoadSpecialCharacter(1, 'MACCER')
Streaming.LoadSpecialCharacter(2, 'PAUL')
Streaming.LoadAllModelsNow

:CASINO4_1023
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasSpecialCharacterLoaded(2)
goto_if_false @CASINO4_1053
wait 0
goto @CASINO4_1023

:CASINO4_1053
Hud.SwitchWidescreen(False)
44@ = 0
45@ = 0
46@ = 0
47@ = 0
48@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 0
53@ = 0
55@ = 0
54@ = 0
56@ = 0
57@ = 0
58@ = 0
59@ = 0
60@ = 0
61@ = 0
62@ = 0
98@ = 0
63@ = 0
64@ = 0
65@ = 0
91@ = 0.0
92@ = 0.0
93@ = 0.0
95@ = 0.0
96@ = 0.0
97@ = 0.0
99@ = 0
100@ = 0

:CASINO4_1292
if 
  4 > 99@
goto_if_false @CASINO4_1335
101@(99@,4i) = 0
99@ += 1
goto @CASINO4_1292

:CASINO4_1335
119@ = 0
120@ = 0
135@ = 0
121@ = 0
122@ = 0
123@ = 0
133@ = 0
134@ = 0
124@ = 0
125@ = 0
126@ = 0
130@ = 0
131@ = 0
132@ = 99999
94@ = 0.0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
268@ = 0
269@ = 0
270@ = 0
271@ = 0
272@ = 0
273@ = 0
274@ = 0
275@ = 0
276@ = 0
277@ = 0
282@ = 0
278@ = 0
279@ = 0
280@ = 0
281@ = 0
127@ = 0
128@ = 0
set_var_text_label s$c2_cp[7] = 'CAS4_BA'
set_var_text_label s$c2_cp[8] = 'CAS4_BB'
set_var_text_label s$c2_cp[9] = 'CAS4_CA'
set_var_text_label s$c2_cp[10] = 'CAS4_CB'
set_var_text_label s$c2_cp[11] = 'CAS4_CC'
set_var_text_label s$c2_cp[12] = 'CAS4_CD'
set_var_text_label s$c2_cp[13] = 'CAS4_CE'
set_var_text_label s$c2_cp[14] = 'CAS4_CF'
set_var_text_label s$c2_cp[15] = 'CAS4_CG'
set_var_text_label s$c2_cp[16] = 'CAS4_CH'
set_var_text_label s$c2_cp[17] = 'CAS4_CJ'
set_var_text_label s$c2_cp[18] = 'CAS4_CK'
set_var_text_label s$c2_cp[19] = 'CAS4_CL'
set_var_text_label s$c2_cp[20] = 'CAS4_DA'
set_var_text_label s$c2_cp[21] = 'CAS4_DB'
set_var_text_label s$c2_cp[22] = 'CAS4_DC'
set_var_text_label s$c2_cp[23] = 'CAS4_DD'
set_var_text_label s$c2_cp[24] = 'CAS4_DE'
set_var_text_label s$c2_cp[25] = 'CAS4_EA'
set_var_text_label s$c2_cp[26] = 'CAS4_EB'
set_var_text_label s$c2_cp[27] = 'CAS4_EC'
set_var_text_label s$c2_cp[28] = 'CAS4_ED'
set_var_text_label s$c2_cp[29] = 'CAS4_EE'
set_var_text_label s$c2_cp[30] = 'CAS4_EF'
set_var_text_label s$c2_cp[31] = 'CAS4_EG'
set_var_text_label s$c2_cp[32] = 'CAS4_EH'
set_var_text_label s$c2_cp[33] = 'CAS4_FA'
set_var_text_label s$c2_cp[34] = 'CAS4_FB'
set_var_text_label s$c2_cp[35] = 'CAS4_FC'
set_var_text_label s$c2_cp[36] = 'CAS4_GA'
set_var_text_label s$c2_cp[37] = 'CAS4_GB'
set_var_text_label s$c2_cp[38] = 'CAS4_HA'
set_var_text_label s$c2_cp[39] = 'CAS4_HB'
set_var_text_label s$c2_cp[40] = 'CAS4_HC'
set_var_text_label s$c2_cp[41] = 'CAS4_HD'
set_var_text_label s$c2_cp[42] = 'CAS4_JA'
set_var_text_label s$c2_cp[43] = 'CAS4_JB'
set_var_text_label s$c2_cp[44] = 'CAS4_JC'
set_var_text_label s$c2_cp[45] = 'CAS4_JD'
set_var_text_label s$c2_cp[46] = 'CAS4_KA'
set_var_text_label s$c2_cp[47] = 'CAS4_KB'
set_var_text_label s$c2_cp[48] = 'CAS4_KC'
set_var_text_label s$c2_cp[49] = 'CAS4_KD'
set_var_text_label s$c2_cp[50] = 'CAS4_KE'
set_var_text_label s$c2_cp[51] = 'CAS4_KF'
set_var_text_label s$c2_cp[52] = 'CAS4_KG'
set_var_text_label s$c2_cp[53] = 'CAS4_KH'
set_var_text_label s$c2_cp[54] = 'CAS4_KJ'
set_var_text_label s$c2_cp[55] = 'CAS4_LA'
set_var_text_label s$c2_cp[56] = 'CAS4_LB'
set_var_text_label s$c2_cp[57] = 'CAS4_LC'
set_var_text_label s$c2_cp[58] = 'CAS4_LD'
set_var_text_label s$c2_cp[59] = 'CAS4_LE'
set_var_text_label s$c2_cp[60] = 'CAS4_MA'
set_var_text_label s$c2_cp[61] = 'CAS4_NA'
set_var_text_label s$c2_cp[62] = 'CAS4_NB'
set_var_text_label s$c2_cp[63] = 'CAS4_NC'
set_var_text_label s$c2_cp[64] = 'CAS4_ND'
set_var_text_label s$c2_cp[65] = 'CAS4_NE'
set_var_text_label s$c2_cp[66] = 'CAS4_NF'
set_var_text_label s$c2_cp[67] = 'CAS4_NG'
set_var_text_label s$c2_cp[68] = 'CAS4_NH'
set_var_text_label s$c2_cp[69] = 'CAS4_NJ'
set_var_text_label s$c2_cp[70] = 'CAS4_OA'
set_var_text_label s$c2_cp[71] = 'CAS4_OB'
set_var_text_label s$c2_cp[72] = 'CAS4_OC'
set_var_text_label s$c2_cp[73] = 'CAS4_OD'
set_var_text_label s$c2_cp[74] = 'CAS4_OE'
set_var_text_label s$c2_cp[75] = 'CAS4_OF'
set_var_text_label s$c2_cp[76] = 'CAS4_OG'
set_var_text_label s$c2_cp[77] = 'CAS4_OH'
set_var_text_label s$c2_cp[78] = 'CAS4_OJ'
set_var_text_label s$c2_cp[79] = 'CAS4_OK'
set_var_text_label s$c2_cp[80] = 'CAS4_OL'
set_var_text_label s$c2_cp[81] = 'CAS4_OM'
set_var_text_label s$c2_cp[82] = 'CAS4_PA'
set_var_text_label s$c2_cp[83] = 'CAS4_PB'
set_var_text_label s$c2_cp[85] = 'CAS4_PD'
set_var_text_label s$c2_cp[86] = 'CAS4_PE'
set_var_text_label s$c2_cp[87] = 'CAS4_PF'
set_var_text_label s$c2_cp[88] = 'CAS4_PG'
set_var_text_label s$c2_cp[89] = 'CAS4_PH'
set_var_text_label s$c2_cp[90] = 'CAS4_PJ'
set_var_text_label s$c2_cp[91] = 'CAS4_PK'
set_var_text_label s$c2_cp[92] = 'CAS4_QA'
set_var_text_label s$c2_cp[93] = 'CAS4_QB'
set_var_text_label s$c2_cp[94] = 'CAS4_RA'
set_var_text_label s$c2_cp[95] = 'CAS4_RB'
set_var_text_label s$c2_cp[97] = 'CAS4_RD'
set_var_text_label s$c2_cp[98] = 'CAS4_RE'
set_var_text_label s$c2_cp[99] = 'CAS4_SA'
set_var_text_label s$c2_cp[100] = 'CAS4_TA'
set_var_text_label s$c2_cp[101] = 'CAS4_TB'
set_var_text_label s$c2_cp[102] = 'CAS4_TC'
set_var_text_label s$c2_cp[103] = 'CAS4_FD'
set_var_text_label s$c2_cp[104] = 'CAS4_FE'
set_var_text_label s$c2_cp[105] = 'CAS4_FF'
set_var_text_label s$c2_cp[106] = 'CAS4_FG'
set_var_text_label s$c2_cp[107] = 'CAS4_FH'
set_var_text_label s$c2_cp[108] = 'CAS4_FJ'
set_var_text_label s$c2_cp[109] = 'CAS4_FK'
set_var_text_label s$c2_cp[110] = 'CAS4_FL'
set_var_text_label s$c2_cp[111] = 'MACX_AF'
set_var_text_label s$c2_cp[112] = 'MACX_AG'
set_var_text_label s$c2_cp[113] = 'MACX_AI'
set_lvar_int_to_constant 145@ = 15400
set_lvar_int_to_constant 146@ = 15401
set_lvar_int_to_constant 147@ = 15402
set_lvar_int_to_constant 148@ = 15403
set_lvar_int_to_constant 149@ = 15404
set_lvar_int_to_constant 150@ = 15405
set_lvar_int_to_constant 151@ = 15406
set_lvar_int_to_constant 152@ = 15407
set_lvar_int_to_constant 153@ = 15408
set_lvar_int_to_constant 154@ = 15409
set_lvar_int_to_constant 155@ = 15410
set_lvar_int_to_constant 156@ = 15411
set_lvar_int_to_constant 157@ = 15412
set_lvar_int_to_constant 158@ = 15479
set_lvar_int_to_constant 159@ = 15413
set_lvar_int_to_constant 160@ = 15414
set_lvar_int_to_constant 161@ = 15415
set_lvar_int_to_constant 162@ = 15480
set_lvar_int_to_constant 163@ = 15416
set_lvar_int_to_constant 164@ = 15417
set_lvar_int_to_constant 165@ = 15418
set_lvar_int_to_constant 166@ = 15419
set_lvar_int_to_constant 167@ = 15420
set_lvar_int_to_constant 168@ = 15421
set_lvar_int_to_constant 169@ = 15422
set_lvar_int_to_constant 170@ = 15423
set_lvar_int_to_constant 171@ = 15481
set_lvar_int_to_constant 172@ = 15424
set_lvar_int_to_constant 173@ = 15425
set_lvar_int_to_constant 174@ = 15429
set_lvar_int_to_constant 175@ = 15482
set_lvar_int_to_constant 176@ = 15430
set_lvar_int_to_constant 177@ = 15431
set_lvar_int_to_constant 178@ = 15432
set_lvar_int_to_constant 179@ = 15433
set_lvar_int_to_constant 180@ = 15483
set_lvar_int_to_constant 181@ = 15484
set_lvar_int_to_constant 182@ = 15485
set_lvar_int_to_constant 183@ = 15486
set_lvar_int_to_constant 184@ = 15487
set_lvar_int_to_constant 185@ = 15434
set_lvar_int_to_constant 186@ = 15435
set_lvar_int_to_constant 187@ = 15436
set_lvar_int_to_constant 188@ = 15437
set_lvar_int_to_constant 189@ = 15438
set_lvar_int_to_constant 190@ = 15488
set_lvar_int_to_constant 191@ = 15439
set_lvar_int_to_constant 192@ = 15440
set_lvar_int_to_constant 193@ = 15441
set_lvar_int_to_constant 194@ = 15442
set_lvar_int_to_constant 195@ = 15489
set_lvar_int_to_constant 196@ = 15443
set_lvar_int_to_constant 197@ = 15444
set_lvar_int_to_constant 198@ = 15445
set_lvar_int_to_constant 199@ = 15446
set_lvar_int_to_constant 200@ = 15447
set_lvar_int_to_constant 201@ = 15448
set_lvar_int_to_constant 202@ = 15449
set_lvar_int_to_constant 203@ = 15450
set_lvar_int_to_constant 204@ = 15451
set_lvar_int_to_constant 205@ = 15452
set_lvar_int_to_constant 206@ = 15453
set_lvar_int_to_constant 207@ = 15454
set_lvar_int_to_constant 208@ = 15455
set_lvar_int_to_constant 209@ = 15456
set_lvar_int_to_constant 210@ = 15457
set_lvar_int_to_constant 211@ = 15458
set_lvar_int_to_constant 212@ = 15459
set_lvar_int_to_constant 213@ = 15460
set_lvar_int_to_constant 214@ = 15461
set_lvar_int_to_constant 215@ = 15462
set_lvar_int_to_constant 216@ = 15463
set_lvar_int_to_constant 217@ = 15490
set_lvar_int_to_constant 218@ = 15464
set_lvar_int_to_constant 219@ = 15465
set_lvar_int_to_constant 220@ = 15466
set_lvar_int_to_constant 221@ = 15467
set_lvar_int_to_constant 223@ = 15468
set_lvar_int_to_constant 224@ = 15469
set_lvar_int_to_constant 225@ = 15470
set_lvar_int_to_constant 226@ = 15471
set_lvar_int_to_constant 227@ = 15472
set_lvar_int_to_constant 228@ = 15491
set_lvar_int_to_constant 229@ = 15473
set_lvar_int_to_constant 230@ = 15492
set_lvar_int_to_constant 231@ = 15474
set_lvar_int_to_constant 232@ = 15493
set_lvar_int_to_constant 233@ = 15494
set_lvar_int_to_constant 235@ = 15475
set_lvar_int_to_constant 236@ = 15476
set_lvar_int_to_constant 237@ = 15477
set_lvar_int_to_constant 238@ = 15495
set_lvar_int_to_constant 239@ = 15496
set_lvar_int_to_constant 240@ = 15497
set_lvar_int_to_constant 241@ = 15426
set_lvar_int_to_constant 242@ = 15499
set_lvar_int_to_constant 243@ = 15500
set_lvar_int_to_constant 244@ = 15501
set_lvar_int_to_constant 245@ = 15502
set_lvar_int_to_constant 246@ = 15498
set_lvar_int_to_constant 247@ = 15427
set_lvar_int_to_constant 248@ = 15428
set_lvar_int_to_constant 249@ = 25205
set_lvar_int_to_constant 250@ = 25206
set_lvar_int_to_constant 251@ = 25208
set_lvar_int_to_constant 286@ = 23400
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
287@ = 0
288@ = 0
283@ = 0
284@ = 0
Player.SetGroupRecruitment($player1, False)
Game.SetScriptLimitToGangSize(1)
Game.MakeRoomInPlayerGangForMissionPeds(2)
wait 1000

:CASINO4_4043
wait 0
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @CASINO4_4082
Char.SetCoordinates($scplayer, -725.0, 2392.69, 128.0)

:CASINO4_4082
if 
is_ps2_keyboard_key_pressed 31
goto_if_false @CASINO4_4117
Char.SetCoordinates($scplayer, -45.0, 2322.0, 23.0)

:CASINO4_4117
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @CASINO4_4152
Char.SetCoordinates($scplayer, 2062.0, 1362.0, 10.7)

:CASINO4_4152
if 
is_ps2_keyboard_key_pressed 10
goto_if_false @CASINO4_4175
TIMERA = 27000

:CASINO4_4175
if 
is_ps2_keyboard_key_pressed 42
goto_if_false @CASINO4_4249
122@ = 0
123@ = 0
134@ = 0
133@ = 0
124@ = 0
125@ = 0
126@ = 0
94@ = 0.0

:CASINO4_4249
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @CASINO4_4821
252@ = 103
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
if 
  255@ == 0
goto_if_false @CASINO4_4343
252@ = 103
257@ = 103
260@ = Clock.GetGameTimer()

:CASINO4_4343
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_4821
if 
  252@ <> 0
goto_if_false @CASINO4_4704
if 
  255@ == 0
goto_if_false @CASINO4_4429
if 
  Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_4422
Audio.ClearMissionAudio(254@)

:CASINO4_4422
255@ = 1

:CASINO4_4429
if 
  255@ == 1
goto_if_false @CASINO4_4466
Audio.LoadMissionAudio(253@, 138@(252@,114i))
255@ = 2

:CASINO4_4466
if 
  255@ == 2
goto_if_false @CASINO4_4526
if 
  Audio.HasMissionAudioLoaded(253@)
goto_if_false @CASINO4_4526
Audio.PlayMissionAudio(253@)
Text.PrintNow($c2_cp(252@,114s), 10000, 1)
255@ = 3

:CASINO4_4526
if 
  255@ == 3
goto_if_false @CASINO4_4704
if 
  Audio.HasMissionAudioFinished(253@)
goto_if_false @CASINO4_4643
Text.ClearThisPrint($c2_cp(252@,114s))
if 
  253@ == 1
goto_if_false @CASINO4_4608
253@ = 2
254@ = 1
goto @CASINO4_4622

:CASINO4_4608
253@ = 1
254@ = 2

:CASINO4_4622
252@ = 0
255@ = 0
goto @CASINO4_4704

:CASINO4_4643
if 
  not Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_4704
if 
  102 > 252@
goto_if_false @CASINO4_4704
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
Audio.LoadMissionAudio(254@, 138@(261@,114i))

:CASINO4_4704
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_4814
if 
  255@ == 0
goto_if_false @CASINO4_4814
if 
  110 > 257@
goto_if_false @CASINO4_4807
257@ += 1
set_lvar_int_to_lvar_int 252@ = 257@
260@ = Clock.GetGameTimer()
goto @CASINO4_4814

:CASINO4_4807
256@ = 1

:CASINO4_4814
goto @CASINO4_4343

:CASINO4_4821
if 
is_ps2_keyboard_key_pressed 39
goto_if_false @CASINO4_4852
TIMERA = 27000
TIMERB = 27000

:CASINO4_4852
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO4_4874
goto @CASINO4_45880

:CASINO4_4874
if and
  47@ == 0
  48@ == 0
goto_if_false @CASINO4_5063

:CASINO4_4899
if 
  Camera.GetFadingStatus
goto_if_false @CASINO4_4923
wait 0
goto @CASINO4_4899

:CASINO4_4923
66@ = Blip.AddForCoord(-735.0, 2398.69, 126.0)
Blip.SetCoordAppearance(66@, 1)
Char.SetHeading($scplayer, 265.5486)
Camera.SetBehindPlayer
Text.Print('CAS4_01', 10000, 1)
48@ = 1
Camera.DoFade(1500, Fade.In)

:CASINO4_4992
if 
  Camera.GetFadingStatus
goto_if_false @CASINO4_5016
wait 0
goto @CASINO4_4992

:CASINO4_5016
Player.SetControl($player1, True)
if 
  $hunter_created == 1
goto_if_false @CASINO4_5063
Skip.SetUp(-698.0, 2398.0, 131.0, 60.0)

:CASINO4_5063
if and
  47@ == 0
  48@ == 1
goto_if_false @CASINO4_5645
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO4_5112
77@ = Char.StoreCarIsIn($scplayer)

:CASINO4_5112
if 
  Char.LocateAnyMeans3D($scplayer, -735.0, 2398.69, 126.0, 4.0, 4.0, 2.0, True)
goto_if_false @CASINO4_5179
Blip.Remove(66@)
47@ = 1
goto @CASINO4_5645

:CASINO4_5179
if 
  44@ == 0
goto_if_false @CASINO4_5645
if 
  Char.LocateAnyMeans3D($scplayer, -735.0, 2398.69, 126.0, 100.0, 100.0, 100.0, False)
goto_if_false @CASINO4_5645
if 
  $hunter_created == 0
goto_if_false @CASINO4_5270
$hunter_created = 1

:CASINO4_5270
Streaming.RequestAnimation("SUNBATHE")

:CASINO4_5282
if 
  not Streaming.HasAnimationLoaded("SUNBATHE")
goto_if_false @CASINO4_5316
wait 0
goto @CASINO4_5282

:CASINO4_5316
71@ = Char.Create(PedType.Special, 290, -751.1198, 2395.199, 128.2378)
Char.SetHeading(71@, 246.0)
Char.SetDecisionMaker(71@, 38@)
Char.SetNeverTargeted(71@, True)
Char.SetSuffersCriticalHits(71@, False)
72@ = Char.Create(PedType.Special, 291, -752.2823, 2391.054, 127.8083)
Char.SetHeading(72@, 220.2451)
Char.SetDecisionMaker(72@, 38@)
Char.SetProofs(71@, False, False, False, False, True)
Char.SetProofs(72@, False, False, False, False, True)
Char.SetNeverTargeted(72@, True)
Char.SetSuffersCriticalHits(72@, False)
81@ = Sequence.Open()
Task.LookAtChar(-1, $scplayer, -1)
Task.PlayAnim(-1, "SBATHE_F_LIEB2SIT", "SUNBATHE", 60000.0, False, False, False, True, -1)
Sequence.Close(81@)
Char.PerformSequence(72@, 81@)
Sequence.Clear(81@)
80@ = Sequence.Open()
Task.LookAtChar(-1, $scplayer, -1)
Task.PlayAnim(-1, "SBATHE_F_LIEB2SIT", "SUNBATHE", 60000.0, False, False, False, True, -1)
Sequence.Close(80@)
Char.PerformSequence(71@, 80@)
Sequence.Clear(80@)
Char.SetRelationship(71@, RelationshipType.Respect, PedType.Player1)
Char.SetRelationship(72@, RelationshipType.Respect, PedType.Player1)
44@ = 1

:CASINO4_5645
if and
  47@ == 1
  49@ == 0
goto_if_false @CASINO4_6625
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)

:CASINO4_5684
if 
  Camera.GetFadingStatus
goto_if_false @CASINO4_5708
wait 0
goto @CASINO4_5684

:CASINO4_5708
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)
Weather.Force(WeatherType.SunnyDesert)
Char.Delete(71@)
Char.Delete(72@)
Char.MarkAsNoLongerNeeded(71@)
Char.MarkAsNoLongerNeeded(72@)
Streaming.RemoveAnimation("SUNBATHE")

:CASINO4_5765
if 
  Camera.GetFadingStatus
goto_if_false @CASINO4_5789
wait 0
goto @CASINO4_5765

:CASINO4_5789
World.ClearArea(-738.0978, 2391.592, 127.9015, 100.0, True)
if 
  not Car.IsDead(77@)
goto_if_false @CASINO4_5897
if 
  Car.Locate3D(77@, -738.0, 2391.0, 127.0, 10.0, 10.0, 5.0, False)
goto_if_false @CASINO4_5897
Car.SetCoordinates(77@, -735.0, 2398.69, 126.0)

:CASINO4_5897
Player.MakeSafeForCutscene($player1)
Cutscene.Load('CAS_4B')

:CASINO4_5913
if 
  not Cutscene.HasLoaded
goto_if_false @CASINO4_5937
wait 0
goto @CASINO4_5913

:CASINO4_5937
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CASINO4_5946
if 
  not Cutscene.HasFinished
goto_if_false @CASINO4_5970
wait 0
goto @CASINO4_5946

:CASINO4_5970
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CASINO4_5985
if 
  Camera.GetFadingStatus
goto_if_false @CASINO4_6009
wait 0
goto @CASINO4_5985

:CASINO4_6009
Weather.Release
DecisionMakerChar.AddEventResponse(38@, 79, 706, 100.0, 100.0, 100.0, 100.0, True, False)
71@ = Char.Create(PedType.Special, 290, -751.1198, 2395.199, 128.2378)
Char.SetDecisionMaker(71@, 38@)
Char.SetNeverTargeted(71@, True)
Char.SetSuffersCriticalHits(71@, False)
72@ = Char.Create(PedType.Special, 291, -752.2823, 2391.054, 127.8083)
Char.SetDecisionMaker(72@, 38@)
Char.SetProofs(71@, False, False, False, False, True)
Char.SetProofs(72@, False, False, False, False, True)
Char.SetNeverTargeted(72@, True)
Char.SetSuffersCriticalHits(72@, False)
Char.SetRelationship(71@, RelationshipType.Respect, PedType.Player1)
Char.SetRelationship(72@, RelationshipType.Respect, PedType.Player1)
Char.SetMaxHealth(72@, 200)
Char.SetHealth(72@, 200)
Char.SetMaxHealth(71@, 200)
Char.SetHealth(71@, 200)
if and
  not Char.IsDead(72@)
  not Char.IsDead(71@)
goto_if_false @CASINO4_6300
Char.SetCoordinates(72@, -738.0978, 2385.592, 124.9015)
Char.SetHeading(72@, 0.0)
Char.SetCoordinates(71@, -736.8244, 2385.102, 125.0871)
Char.SetHeading(71@, 0.0)

:CASINO4_6300
Streaming.RequestModel(478)
Streaming.RequestModel(32)
Streaming.RequestModel(34)
Streaming.RequestAnimation("SMOKING")
Streaming.RequestModel(346)
if and
  not Char.IsDead(71@)
  not Char.IsDead(72@)
goto_if_false @CASINO4_6395
Char.ClearTasks($scplayer)
Char.ClearTasks(72@)
Char.ClearTasks(71@)
68@ = Blip.AddForChar(71@)
Blip.SetAsFriendly(68@, True)
67@ = Blip.AddForChar(72@)
Blip.SetAsFriendly(67@, True)

:CASINO4_6395
if or
  not Streaming.HasModelLoaded(478)
  not Streaming.HasModelLoaded(32)
  not Streaming.HasModelLoaded(34)
  not Streaming.HasAnimationLoaded("SMOKING")
  //not Streaming.HasAnimationLoaded("COLT45")
goto_if_false @CASINO4_6451
wait 0
goto @CASINO4_6395

:CASINO4_6451
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @CASINO4_6494
Char.SetCoordinates($scplayer, -738.0603, 2388.346, 125.1527)
goto @CASINO4_6514

:CASINO4_6494
Char.WarpFromCarToCoord($scplayer, -738.0603, 2388.346, 125.1527)

:CASINO4_6514
Char.SetHeading($scplayer, 176.0)
Streaming.RequestAnimation("PAULNMAC")

:CASINO4_6536
if 
  not Streaming.HasAnimationLoaded("PAULNMAC")
goto_if_false @CASINO4_6570
wait 0
goto @CASINO4_6536

:CASINO4_6570
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.DoFade(1500, Fade.In)

:CASINO4_6585
if 
  Camera.GetFadingStatus
goto_if_false @CASINO4_6609
wait 0
goto @CASINO4_6585

:CASINO4_6609
Player.SetControl($player1, True)
Text.ClearPrints
49@ = 1

:CASINO4_6625
if 
  44@ == 1
goto_if_false @CASINO4_6772
if or
  Char.IsDead(72@)
  Char.IsDead(71@)
goto_if_false @CASINO4_6772
Text.ClearPrints
if and
  Char.IsDead(71@)
  Char.IsDead(72@)
goto_if_false @CASINO4_6710
Text.Print('CAS4_47', 3000, 1)
goto @CASINO4_6765

:CASINO4_6710
if 
  Char.IsDead(71@)
goto_if_false @CASINO4_6749
Text.Print('CAS4_05', 3000, 1)
goto @CASINO4_6765

:CASINO4_6749
Text.Print('CAS4_04', 3000, 1)

:CASINO4_6765
goto @CASINO4_45862

:CASINO4_6772
if 
  51@ == 0
goto_if_false @CASINO4_22506
if 
  49@ == 1
goto_if_false @CASINO4_22506
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @CASINO4_6897
77@ = Char.StoreCarIsIn($scplayer)
135@ = Car.GetMaximumNumberOfPassengers(77@)
if 
  119@ == 1
goto_if_false @CASINO4_6865
135@ -= 1

:CASINO4_6865
if 
  120@ == 1
goto_if_false @CASINO4_6890
135@ -= 1

:CASINO4_6890
goto @CASINO4_7234

:CASINO4_6897
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_7063
if 
  Char.IsInAnyCar(72@)
goto_if_false @CASINO4_7063
if 
  119@ == 1
goto_if_false @CASINO4_7006
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_7006
if 
  Char.IsInAnyCar(72@)
goto_if_false @CASINO4_6984
Task.LeaveAnyCar(72@)

:CASINO4_6984
67@ = Blip.AddForChar(72@)
Blip.SetAsFriendly(67@, True)
119@ = 0

:CASINO4_7006
if 
  Char.IsInAnyCar(72@)
goto_if_false @CASINO4_7063
90@ = Char.GetScriptTaskStatus(72@, 1587)
if and
  not is_int_lvar_equal_to_constant 90@ == 1
  not is_int_lvar_equal_to_constant 90@ == 0
goto_if_false @CASINO4_7063
Task.LeaveAnyCar(72@)

:CASINO4_7063
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_7213
if 
  120@ == 1
goto_if_false @CASINO4_7156
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_7156
if 
  Char.IsInAnyCar(71@)
goto_if_false @CASINO4_7134
Task.LeaveAnyCar(71@)

:CASINO4_7134
68@ = Blip.AddForChar(71@)
Blip.SetAsFriendly(68@, True)
120@ = 0

:CASINO4_7156
if 
  Char.IsInAnyCar(71@)
goto_if_false @CASINO4_7213
90@ = Char.GetScriptTaskStatus(71@, 1587)
if and
  not is_int_lvar_equal_to_constant 90@ == 1
  not is_int_lvar_equal_to_constant 90@ == 0
goto_if_false @CASINO4_7213
Task.LeaveAnyCar(71@)

:CASINO4_7213
130@ = 0
131@ = 0
135@ = 0

:CASINO4_7234
if 
  121@ > 0
goto_if_false @CASINO4_7336
if and
  not Char.IsDead(72@)
  not Char.IsDead(71@)
goto_if_false @CASINO4_7336
if 
  135@ > 1
goto_if_false @CASINO4_7336
Char.ClearTasks(72@)
Char.ClearTasks(71@)
274@ = 0
275@ = 0
276@ = 0
277@ = 0
121@ = 0

:CASINO4_7336
if 
  121@ == 0
goto_if_false @CASINO4_8643
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO4_8636
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_7994
if 
  119@ == 0
goto_if_false @CASINO4_7908
if 
  Char.LocateInCarChar3D($scplayer, 72@, 8.0, 8.0, 5.0, False)
goto_if_false @CASINO4_7860
if 
  135@ > 0
goto_if_false @CASINO4_7616
if 
  not Car.IsDead(77@)
goto_if_false @CASINO4_7609
if 
  Char.IsSittingInCar(72@, 77@)
goto_if_false @CASINO4_7519
Blip.Remove(67@)
135@ -= 1
119@ = 1
goto @CASINO4_7609

:CASINO4_7519
if 
  130@ == 0
goto_if_false @CASINO4_7563
Task.EnterCarAsPassenger(72@, 77@, -2, -1)
130@ = 1
goto @CASINO4_7609

:CASINO4_7563
90@ = Char.GetScriptTaskStatus(72@, 1482)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_7609
Char.ClearTasks(72@)
Task.EnterCarAsPassenger(72@, 77@, -2, -1)

:CASINO4_7609
goto @CASINO4_7853

:CASINO4_7616
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @CASINO4_7853
if 
  120@ == 1
goto_if_false @CASINO4_7853
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_7688
68@ = Blip.AddForChar(71@)
Blip.SetAsFriendly(68@, True)
120@ = 0

:CASINO4_7688
if 
  121@ == 0
goto_if_false @CASINO4_7853
89@ = Sequence.Open()
Task.GotoChar(-1, 71@, -1, 2.0)
Task.TurnCharToFaceChar(-1, 71@)
Sequence.Close(89@)
Char.PerformSequence(72@, 89@)
Sequence.Clear(89@)
89@ = Sequence.Open()
if 
  Char.IsInAnyCar(71@)
goto_if_false @CASINO4_7775
Task.LeaveAnyCar(-1)

:CASINO4_7775
Task.GotoChar(-1, 72@, -1, 2.0)
Task.TurnCharToFaceChar(-1, 72@)
Sequence.Close(89@)
Char.PerformSequence(71@, 89@)
Sequence.Clear(89@)
Text.ClearPrints
Text.Print('CAS4_44', 10000, 1)
282@ = 1
132@ = 6
121@ = 1

:CASINO4_7853
goto @CASINO4_7901

:CASINO4_7860
90@ = Char.GetScriptTaskStatus(72@, 1482)
if 
  is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_7894
Char.ClearTasks(72@)

:CASINO4_7894
130@ = 0

:CASINO4_7901
goto @CASINO4_7994

:CASINO4_7908
if 
  not Char.LocateInCarChar3D($scplayer, 72@, 10.0, 10.0, 5.0, False)
goto_if_false @CASINO4_7994
if 
  Char.IsInAnyCar(72@)
goto_if_false @CASINO4_7965
Task.LeaveAnyCar(72@)

:CASINO4_7965
67@ = Blip.AddForChar(72@)
Blip.SetAsFriendly(67@, True)
130@ = 0
119@ = 0

:CASINO4_7994
if 
  121@ == 0
goto_if_false @CASINO4_8636
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_8636
if 
  120@ == 0
goto_if_false @CASINO4_8550
if 
  Char.LocateInCarChar3D($scplayer, 71@, 8.0, 8.0, 5.0, False)
goto_if_false @CASINO4_8502
if 
  135@ > 0
goto_if_false @CASINO4_8258
if 
  not Car.IsDead(77@)
goto_if_false @CASINO4_8251
if 
  Char.IsSittingInCar(71@, 77@)
goto_if_false @CASINO4_8161
Blip.Remove(68@)
135@ -= 1
120@ = 1
goto @CASINO4_8251

:CASINO4_8161
if 
  131@ == 0
goto_if_false @CASINO4_8205
Task.EnterCarAsPassenger(71@, 77@, -2, -1)
131@ = 1
goto @CASINO4_8251

:CASINO4_8205
90@ = Char.GetScriptTaskStatus(71@, 1482)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_8251
Char.ClearTasks(71@)
Task.EnterCarAsPassenger(71@, 77@, -2, -1)

:CASINO4_8251
goto @CASINO4_8495

:CASINO4_8258
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @CASINO4_8495
if 
  119@ == 1
goto_if_false @CASINO4_8495
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_8330
67@ = Blip.AddForChar(72@)
Blip.SetAsFriendly(67@, True)
119@ = 0

:CASINO4_8330
if 
  121@ == 0
goto_if_false @CASINO4_8495
89@ = Sequence.Open()
if 
  Char.IsInAnyCar(72@)
goto_if_false @CASINO4_8373
Task.LeaveAnyCar(-1)

:CASINO4_8373
Task.GotoChar(-1, 71@, -1, 2.0)
Task.TurnCharToFaceChar(-1, 71@)
Sequence.Close(89@)
Char.PerformSequence(72@, 89@)
Sequence.Clear(89@)
89@ = Sequence.Open()
Task.GotoChar(-1, 72@, -1, 2.0)
Task.TurnCharToFaceChar(-1, 72@)
Sequence.Close(89@)
Char.PerformSequence(71@, 89@)
Sequence.Clear(89@)
Text.ClearPrints
Text.Print('CAS4_44', 10000, 1)
282@ = 2
132@ = 6
121@ = 1

:CASINO4_8495
goto @CASINO4_8543

:CASINO4_8502
90@ = Char.GetScriptTaskStatus(71@, 1482)
if 
  is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_8543
Char.ClearTasks(71@)
131@ = 0

:CASINO4_8543
goto @CASINO4_8636

:CASINO4_8550
if 
  not Char.LocateInCarChar3D($scplayer, 71@, 10.0, 10.0, 5.0, False)
goto_if_false @CASINO4_8636
if 
  Char.IsInAnyCar(71@)
goto_if_false @CASINO4_8607
Task.LeaveAnyCar(71@)

:CASINO4_8607
68@ = Blip.AddForChar(71@)
Blip.SetAsFriendly(68@, True)
131@ = 0
120@ = 0

:CASINO4_8636
goto @CASINO4_10220

:CASINO4_8643
if 
  121@ == 1
goto_if_false @CASINO4_8812
if and
  not Char.IsDead(71@)
  not Char.IsDead(72@)
goto_if_false @CASINO4_8805
90@ = Char.GetScriptTaskStatus(71@, 1560)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_8805
90@ = Char.GetScriptTaskStatus(72@, 1560)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_8805
40@, 41@, 42@ = Char.GetOffsetInWorldCoords(71@, 0.0, 1.5, 0.0)
Task.CharSlideToCoord(72@, 40@, 41@, 42@, 43@, 0.5)
gosub @CASINO4_38638
121@ = 2

:CASINO4_8805
goto @CASINO4_10220

:CASINO4_8812
if 
  121@ == 2
goto_if_false @CASINO4_10220
if 
  252@ <> 0
goto_if_false @CASINO4_9169
if 
  255@ == 0
goto_if_false @CASINO4_8894
if 
  Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_8887
Audio.ClearMissionAudio(254@)

:CASINO4_8887
255@ = 1

:CASINO4_8894
if 
  255@ == 1
goto_if_false @CASINO4_8931
Audio.LoadMissionAudio(253@, 138@(252@,114i))
255@ = 2

:CASINO4_8931
if 
  255@ == 2
goto_if_false @CASINO4_8991
if 
  Audio.HasMissionAudioLoaded(253@)
goto_if_false @CASINO4_8991
Audio.PlayMissionAudio(253@)
Text.PrintNow($c2_cp(252@,114s), 10000, 1)
255@ = 3

:CASINO4_8991
if 
  255@ == 3
goto_if_false @CASINO4_9169
if 
  Audio.HasMissionAudioFinished(253@)
goto_if_false @CASINO4_9108
Text.ClearThisPrint($c2_cp(252@,114s))
if 
  253@ == 1
goto_if_false @CASINO4_9073
253@ = 2
254@ = 1
goto @CASINO4_9087

:CASINO4_9073
253@ = 1
254@ = 2

:CASINO4_9087
252@ = 0
255@ = 0
goto @CASINO4_9169

:CASINO4_9108
if 
  not Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_9169
if 
  110 > 252@
goto_if_false @CASINO4_9169
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
Audio.LoadMissionAudio(254@, 138@(261@,114i))

:CASINO4_9169
if 
  282@ == 1
goto_if_false @CASINO4_9740
if 
  275@ == 0
goto_if_false @CASINO4_9733
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_9733
switch_start 274@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @CASINO4_9661 {caseNum1} 0 {caseLabel1} @CASINO4_9281 {caseNum2} 1 {caseLabel2} @CASINO4_9325 {caseNum3} 2 {caseLabel3} @CASINO4_9409 {caseNum4} 3 {caseLabel4} @CASINO4_9493 {caseNum5} 4 {caseLabel5} @CASINO4_9577 {caseNum6} -1 {caseLabel6} @CASINO4_9733 {caseNum7} -1 {caseLabel7} @CASINO4_9733

:CASINO4_9281
if 
  255@ == 0
goto_if_false @CASINO4_9318
252@ = 9
274@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_9318
goto @CASINO4_9733

:CASINO4_9325
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9402
if 
  255@ == 0
goto_if_false @CASINO4_9402
252@ = 10
274@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_9402
goto @CASINO4_9733

:CASINO4_9409
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9486
if 
  255@ == 0
goto_if_false @CASINO4_9486
252@ = 11
274@ = 3
260@ = Clock.GetGameTimer()

:CASINO4_9486
goto @CASINO4_9733

:CASINO4_9493
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9570
if 
  255@ == 0
goto_if_false @CASINO4_9570
252@ = 12
274@ = 4
260@ = Clock.GetGameTimer()

:CASINO4_9570
goto @CASINO4_9733

:CASINO4_9577
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9654
if 
  255@ == 0
goto_if_false @CASINO4_9654
252@ = 19
274@ = 5
260@ = Clock.GetGameTimer()

:CASINO4_9654
goto @CASINO4_9733

:CASINO4_9661
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9726
if 
  255@ == 0
goto_if_false @CASINO4_9726
275@ = 1

:CASINO4_9726
goto @CASINO4_9733

:CASINO4_9733
goto @CASINO4_10220

:CASINO4_9740
if 
  282@ == 2
goto_if_false @CASINO4_10220
if 
  277@ == 0
goto_if_false @CASINO4_10220
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_10220
switch_start 276@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @CASINO4_10148 {caseNum1} 0 {caseLabel1} @CASINO4_9852 {caseNum2} 1 {caseLabel2} @CASINO4_9896 {caseNum3} 2 {caseLabel3} @CASINO4_9980 {caseNum4} 3 {caseLabel4} @CASINO4_10064 {caseNum5} -1 {caseLabel5} @CASINO4_10220 {caseNum6} -1 {caseLabel6} @CASINO4_10220 {caseNum7} -1 {caseLabel7} @CASINO4_10220

:CASINO4_9852
if 
  255@ == 0
goto_if_false @CASINO4_9889
252@ = 13
276@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_9889
goto @CASINO4_10220

:CASINO4_9896
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9973
if 
  255@ == 0
goto_if_false @CASINO4_9973
252@ = 14
276@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_9973
goto @CASINO4_10220

:CASINO4_9980
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_10057
if 
  255@ == 0
goto_if_false @CASINO4_10057
252@ = 15
276@ = 3
260@ = Clock.GetGameTimer()

:CASINO4_10057
goto @CASINO4_10220

:CASINO4_10064
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_10141
if 
  255@ == 0
goto_if_false @CASINO4_10141
252@ = 16
276@ = 4
260@ = Clock.GetGameTimer()

:CASINO4_10141
goto @CASINO4_10220

:CASINO4_10148
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_10213
if 
  255@ == 0
goto_if_false @CASINO4_10213
277@ = 1

:CASINO4_10213
goto @CASINO4_10220

:CASINO4_10220
if or
  Char.IsDead(72@)
  Char.IsDead(71@)
goto_if_false @CASINO4_10349
Text.ClearPrints
if and
  Char.IsDead(71@)
  Char.IsDead(72@)
goto_if_false @CASINO4_10287
Text.Print('CAS4_47', 3000, 1)
goto @CASINO4_10342

:CASINO4_10287
if 
  Char.IsDead(71@)
goto_if_false @CASINO4_10326
Text.Print('CAS4_05', 3000, 1)
goto @CASINO4_10342

:CASINO4_10326
Text.Print('CAS4_04', 3000, 1)

:CASINO4_10342
goto @CASINO4_45862

:CASINO4_10349
if 
  121@ == 0
goto_if_false @CASINO4_11039
if and
  119@ == 0
  120@ == 0
goto_if_false @CASINO4_10591
if 
  135@ > 1
goto_if_false @CASINO4_10504
if 
  132@ <> 0
goto_if_false @CASINO4_10497
Text.ClearThisPrint('CAS4_19')
Text.ClearThisPrint('CAS4_03')
Text.ClearThisPrint('CAS4_02')
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_10497
Text.Print('CAS4_37', 7000, 1)
132@ = 0

:CASINO4_10497
goto @CASINO4_10591

:CASINO4_10504
if 
  132@ <> 1
goto_if_false @CASINO4_10591
Text.ClearThisPrint('CAS4_37')
Text.ClearThisPrint('CAS4_03')
Text.ClearThisPrint('CAS4_02')
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_10591
Text.Print('CAS4_19', 7000, 1)
132@ = 1

:CASINO4_10591
if and
  119@ == 1
  120@ == 0
goto_if_false @CASINO4_10815
if 
  135@ > 0
goto_if_false @CASINO4_10728
if 
  132@ <> 2
goto_if_false @CASINO4_10721
Text.ClearThisPrint('CAS4_19')
Text.ClearThisPrint('CAS4_37')
Text.ClearThisPrint('CAS4_02')
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_10721
Text.Print('CAS4_03', 7000, 1)
132@ = 2

:CASINO4_10721
goto @CASINO4_10815

:CASINO4_10728
if 
  132@ <> 3
goto_if_false @CASINO4_10815
Text.ClearThisPrint('CAS4_37')
Text.ClearThisPrint('CAS4_03')
Text.ClearThisPrint('CAS4_02')
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_10815
Text.Print('CAS4_19', 7000, 1)
132@ = 3

:CASINO4_10815
if and
  119@ == 0
  120@ == 1
goto_if_false @CASINO4_11039
if 
  135@ > 0
goto_if_false @CASINO4_10952
if 
  132@ <> 4
goto_if_false @CASINO4_10945
Text.ClearThisPrint('CAS4_19')
Text.ClearThisPrint('CAS4_03')
Text.ClearThisPrint('CAS4_37')
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_10945
Text.Print('CAS4_02', 7000, 1)
132@ = 4

:CASINO4_10945
goto @CASINO4_11039

:CASINO4_10952
if 
  132@ <> 5
goto_if_false @CASINO4_11039
Text.ClearThisPrint('CAS4_37')
Text.ClearThisPrint('CAS4_03')
Text.ClearThisPrint('CAS4_02')
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_11039
Text.Print('CAS4_19', 7000, 1)
132@ = 5

:CASINO4_11039
if 
  126@ == 0
goto_if_false @CASINO4_18462
if 
  129@ == 1
goto_if_false @CASINO4_18271
if 
  TIMERA > 30000
goto_if_false @CASINO4_18264
if 
  252@ <> 0
goto_if_false @CASINO4_11487
if 
  255@ == 0
goto_if_false @CASINO4_11158
if 
  Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_11151
Audio.ClearMissionAudio(254@)

:CASINO4_11151
255@ = 1

:CASINO4_11158
if 
  255@ == 1
goto_if_false @CASINO4_11195
Audio.LoadMissionAudio(253@, 138@(252@,114i))
255@ = 2

:CASINO4_11195
if 
  255@ == 2
goto_if_false @CASINO4_11309
if 
  Audio.HasMissionAudioLoaded(253@)
goto_if_false @CASINO4_11309
Audio.PlayMissionAudio(253@)
if 
  252@ <> 65
goto_if_false @CASINO4_11302
if 
  252@ <> 67
goto_if_false @CASINO4_11302
if 
  252@ <> 78
goto_if_false @CASINO4_11302
Text.PrintNow($c2_cp(252@,114s), 10000, 1)

:CASINO4_11302
255@ = 3

:CASINO4_11309
if 
  255@ == 3
goto_if_false @CASINO4_11487
if 
  Audio.HasMissionAudioFinished(253@)
goto_if_false @CASINO4_11426
Text.ClearThisPrint($c2_cp(252@,114s))
if 
  253@ == 1
goto_if_false @CASINO4_11391
253@ = 2
254@ = 1
goto @CASINO4_11405

:CASINO4_11391
253@ = 1
254@ = 2

:CASINO4_11405
252@ = 0
255@ = 0
goto @CASINO4_11487

:CASINO4_11426
if 
  not Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_11487
if 
  110 > 252@
goto_if_false @CASINO4_11487
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
Audio.LoadMissionAudio(254@, 138@(261@,114i))

:CASINO4_11487
if 
  287@ <> 0
goto_if_false @CASINO4_11721
if 
  288@ == 0
goto_if_false @CASINO4_11549
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @CASINO4_11542
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:CASINO4_11542
288@ = 1

:CASINO4_11549
if 
  288@ == 1
goto_if_false @CASINO4_11585
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 285@(287@,2i))
288@ = 2

:CASINO4_11585
if 
  288@ == 2
goto_if_false @CASINO4_11670
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @CASINO4_11670
if 
  287@ == 1
goto_if_false @CASINO4_11659
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_11659
Audio.AttachMissionAudioToChar(MissionAudioSlot.Slot3, 71@)

:CASINO4_11659
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
288@ = 3

:CASINO4_11670
if 
  288@ == 3
goto_if_false @CASINO4_11721
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @CASINO4_11721
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
287@ = 0
288@ = 0

:CASINO4_11721
if 
  5 > 122@
goto_if_false @CASINO4_15662
if and
  not Char.IsDead(72@)
  not Car.IsDead(77@)
goto_if_false @CASINO4_15655
if 
  122@ == 0
goto_if_false @CASINO4_12691
if 
  263@ == 1
goto_if_false @CASINO4_12684
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_12684
switch_start 280@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @CASINO4_12583 {caseNum1} 0 {caseLabel1} @CASINO4_11937 {caseNum2} 1 {caseLabel2} @CASINO4_11995 {caseNum3} 2 {caseLabel3} @CASINO4_12079 {caseNum4} 3 {caseLabel4} @CASINO4_12163 {caseNum5} 4 {caseLabel5} @CASINO4_12247 {caseNum6} 5 {caseLabel6} @CASINO4_12331 {caseNum7} 6 {caseLabel7} @CASINO4_12415
switch_continued 7 {caseLabel1} @CASINO4_12499 {caseNum2} -1 {caseLabel2} @CASINO4_12684 {caseNum3} -1 {caseLabel3} @CASINO4_12684 {caseNum4} -1 {caseLabel4} @CASINO4_12684 {caseNum5} -1 {caseLabel5} @CASINO4_12684 {caseNum6} -1 {caseLabel6} @CASINO4_12684 {caseNum7} -1 {caseLabel7} @CASINO4_12684 {caseNum8} -1 {caseLabel8} @CASINO4_12684 {caseNum9} -1 {caseLabel9} @CASINO4_12684

:CASINO4_11937
Char.ShutUpForScriptedSpeech(72@, True)
Char.ShutUpForScriptedSpeech(71@, True)
if 
  255@ == 0
goto_if_false @CASINO4_11988
252@ = 62
280@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_11988
goto @CASINO4_12684

:CASINO4_11995
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12072
if 
  255@ == 0
goto_if_false @CASINO4_12072
252@ = 63
280@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_12072
goto @CASINO4_12684

:CASINO4_12079
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12156
if 
  255@ == 0
goto_if_false @CASINO4_12156
252@ = 64
280@ = 3
260@ = Clock.GetGameTimer()

:CASINO4_12156
goto @CASINO4_12684

:CASINO4_12163
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12240
if 
  255@ == 0
goto_if_false @CASINO4_12240
252@ = 65
280@ = 4
260@ = Clock.GetGameTimer()

:CASINO4_12240
goto @CASINO4_12684

:CASINO4_12247
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12324
if 
  255@ == 0
goto_if_false @CASINO4_12324
252@ = 66
280@ = 5
260@ = Clock.GetGameTimer()

:CASINO4_12324
goto @CASINO4_12684

:CASINO4_12331
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12408
if 
  255@ == 0
goto_if_false @CASINO4_12408
252@ = 67
280@ = 6
260@ = Clock.GetGameTimer()

:CASINO4_12408
goto @CASINO4_12684

:CASINO4_12415
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12492
if 
  255@ == 0
goto_if_false @CASINO4_12492
252@ = 68
280@ = 7
260@ = Clock.GetGameTimer()

:CASINO4_12492
goto @CASINO4_12684

:CASINO4_12499
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12576
if 
  255@ == 0
goto_if_false @CASINO4_12576
252@ = 69
280@ = 8
260@ = Clock.GetGameTimer()

:CASINO4_12576
goto @CASINO4_12684

:CASINO4_12583
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12677
if 
  255@ == 0
goto_if_false @CASINO4_12677
132@ = 99
Streaming.RequestAnimation("FOOD")
TIMERB = 0
280@ = 0
122@ = 1

:CASINO4_12677
goto @CASINO4_12684

:CASINO4_12684
goto @CASINO4_15655

:CASINO4_12691
if 
  122@ == 1
goto_if_false @CASINO4_14093
if 
  TIMERB > 5000
goto_if_false @CASINO4_13925
switch_start 280@ {numCases} 12 {hasDefaultCase} 1 {defaultLabel} @CASINO4_13824 {caseNum1} 0 {caseLabel1} @CASINO4_12856 {caseNum2} 1 {caseLabel2} @CASINO4_12900 {caseNum3} 2 {caseLabel3} @CASINO4_12984 {caseNum4} 3 {caseLabel4} @CASINO4_13068 {caseNum5} 4 {caseLabel5} @CASINO4_13152 {caseNum6} 5 {caseLabel6} @CASINO4_13236 {caseNum7} 6 {caseLabel7} @CASINO4_13320
switch_continued 7 {caseLabel1} @CASINO4_13404 {caseNum2} 8 {caseLabel2} @CASINO4_13488 {caseNum3} 9 {caseLabel3} @CASINO4_13572 {caseNum4} 10 {caseLabel4} @CASINO4_13656 {caseNum5} 11 {caseLabel5} @CASINO4_13740 {caseNum6} -1 {caseLabel6} @CASINO4_13918 {caseNum7} -1 {caseLabel7} @CASINO4_13918 {caseNum8} -1 {caseLabel8} @CASINO4_13918 {caseNum9} -1 {caseLabel9} @CASINO4_13918

:CASINO4_12856
if 
  255@ == 0
goto_if_false @CASINO4_12893
252@ = 70
280@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_12893
goto @CASINO4_13918

:CASINO4_12900
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12977
if 
  255@ == 0
goto_if_false @CASINO4_12977
252@ = 71
280@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_12977
goto @CASINO4_13918

:CASINO4_12984
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13061
if 
  255@ == 0
goto_if_false @CASINO4_13061
252@ = 72
280@ = 3
260@ = Clock.GetGameTimer()

:CASINO4_13061
goto @CASINO4_13918

:CASINO4_13068
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13145
if 
  255@ == 0
goto_if_false @CASINO4_13145
252@ = 73
280@ = 4
260@ = Clock.GetGameTimer()

:CASINO4_13145
goto @CASINO4_13918

:CASINO4_13152
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13229
if 
  255@ == 0
goto_if_false @CASINO4_13229
252@ = 74
280@ = 5
260@ = Clock.GetGameTimer()

:CASINO4_13229
goto @CASINO4_13918

:CASINO4_13236
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13313
if 
  255@ == 0
goto_if_false @CASINO4_13313
252@ = 75
280@ = 6
260@ = Clock.GetGameTimer()

:CASINO4_13313
goto @CASINO4_13918

:CASINO4_13320
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13397
if 
  255@ == 0
goto_if_false @CASINO4_13397
252@ = 76
280@ = 7
260@ = Clock.GetGameTimer()

:CASINO4_13397
goto @CASINO4_13918

:CASINO4_13404
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13481
if 
  255@ == 0
goto_if_false @CASINO4_13481
252@ = 77
280@ = 8
260@ = Clock.GetGameTimer()

:CASINO4_13481
goto @CASINO4_13918

:CASINO4_13488
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13565
if 
  255@ == 0
goto_if_false @CASINO4_13565
252@ = 78
280@ = 9
260@ = Clock.GetGameTimer()

:CASINO4_13565
goto @CASINO4_13918

:CASINO4_13572
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13649
if 
  255@ == 0
goto_if_false @CASINO4_13649
252@ = 79
280@ = 10
260@ = Clock.GetGameTimer()

:CASINO4_13649
goto @CASINO4_13918

:CASINO4_13656
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13733
if 
  255@ == 0
goto_if_false @CASINO4_13733
252@ = 80
280@ = 11
260@ = Clock.GetGameTimer()

:CASINO4_13733
goto @CASINO4_13918

:CASINO4_13740
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13817
if 
  255@ == 0
goto_if_false @CASINO4_13817
252@ = 81
280@ = 12
260@ = Clock.GetGameTimer()

:CASINO4_13817
goto @CASINO4_13918

:CASINO4_13824
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13911
if 
  255@ == 0
goto_if_false @CASINO4_13911
TIMERA = 0
124@ = 0
128@ = 1
122@ = 9999

:CASINO4_13911
goto @CASINO4_13918

:CASINO4_13918
goto @CASINO4_14086

:CASINO4_13925
if and
  Streaming.HasAnimationLoaded("FOOD")
  Car.IsStopped(77@)
goto_if_false @CASINO4_14086
95@, 96@, 97@ = Car.GetOffsetInWorldCoords(77@, 4.0, 2.0, 0.0)
89@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 95@, 96@, 97@, MoveState.Sprint, 5000)
Task.PlayAnim(-1, "EAT_VOMIT_P", "FOOD", 1004.0, False, False, False, False, -1)
Task.EnterCarAsPassenger(-1, 77@, -2, -1)
Sequence.Close(89@)
Char.PerformSequence(72@, 89@)
Sequence.Clear(89@)
122@ = 2
124@ = 1

:CASINO4_14086
goto @CASINO4_15655

:CASINO4_14093
if 
  122@ <> 3
goto_if_false @CASINO4_14961
if 
  3 > 122@
goto_if_false @CASINO4_14961
switch_start 280@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @CASINO4_14889 {caseNum1} 0 {caseLabel1} @CASINO4_14257 {caseNum2} 1 {caseLabel2} @CASINO4_14301 {caseNum3} 2 {caseLabel3} @CASINO4_14385 {caseNum4} 3 {caseLabel4} @CASINO4_14469 {caseNum5} 4 {caseLabel5} @CASINO4_14553 {caseNum6} 5 {caseLabel6} @CASINO4_14637 {caseNum7} 6 {caseLabel7} @CASINO4_14721
switch_continued 7 {caseLabel1} @CASINO4_14805 {caseNum2} -1 {caseLabel2} @CASINO4_14961 {caseNum3} -1 {caseLabel3} @CASINO4_14961 {caseNum4} -1 {caseLabel4} @CASINO4_14961 {caseNum5} -1 {caseLabel5} @CASINO4_14961 {caseNum6} -1 {caseLabel6} @CASINO4_14961 {caseNum7} -1 {caseLabel7} @CASINO4_14961 {caseNum8} -1 {caseLabel8} @CASINO4_14961 {caseNum9} -1 {caseLabel9} @CASINO4_14961

:CASINO4_14257
if 
  255@ == 0
goto_if_false @CASINO4_14294
252@ = 70
280@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_14294
goto @CASINO4_14961

:CASINO4_14301
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14378
if 
  255@ == 0
goto_if_false @CASINO4_14378
252@ = 71
280@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_14378
goto @CASINO4_14961

:CASINO4_14385
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14462
if 
  255@ == 0
goto_if_false @CASINO4_14462
252@ = 72
280@ = 3
260@ = Clock.GetGameTimer()

:CASINO4_14462
goto @CASINO4_14961

:CASINO4_14469
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14546
if 
  255@ == 0
goto_if_false @CASINO4_14546
252@ = 73
280@ = 4
260@ = Clock.GetGameTimer()

:CASINO4_14546
goto @CASINO4_14961

:CASINO4_14553
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14630
if 
  255@ == 0
goto_if_false @CASINO4_14630
252@ = 74
280@ = 5
260@ = Clock.GetGameTimer()

:CASINO4_14630
goto @CASINO4_14961

:CASINO4_14637
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14714
if 
  255@ == 0
goto_if_false @CASINO4_14714
252@ = 75
280@ = 6
260@ = Clock.GetGameTimer()

:CASINO4_14714
goto @CASINO4_14961

:CASINO4_14721
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14798
if 
  255@ == 0
goto_if_false @CASINO4_14798
252@ = 76
280@ = 7
260@ = Clock.GetGameTimer()

:CASINO4_14798
goto @CASINO4_14961

:CASINO4_14805
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14882
if 
  255@ == 0
goto_if_false @CASINO4_14882
252@ = 77
280@ = 8
260@ = Clock.GetGameTimer()

:CASINO4_14882
goto @CASINO4_14961

:CASINO4_14889
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14954
if 
  255@ == 0
goto_if_false @CASINO4_14954
281@ = 1

:CASINO4_14954
goto @CASINO4_14961

:CASINO4_14961
if 
  122@ == 2
goto_if_false @CASINO4_15183
90@ = Char.GetScriptTaskStatus(72@, 1560)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_15051
Streaming.RemoveAnimation("FOOD")
122@ = 5
128@ = 1
124@ = 0
TIMERA = 0
goto @CASINO4_15176

:CASINO4_15051
if 
  Char.IsPlayingAnim(72@, "EAT_VOMIT_P")
goto_if_false @CASINO4_15176
95@, 96@, 97@ = Char.GetOffsetInWorldCoords(72@, 0.355, -0.116, 0.048)
94@ = Char.GetAnimCurrentTime(72@, "EAT_VOMIT_P")
136@ = Particle.Create("PUKE", 95@, 96@, 97@, 1)
134@ = 0
94@ = 0.0
122@ = 3

:CASINO4_15176
goto @CASINO4_15655

:CASINO4_15183
if 
  122@ == 3
goto_if_false @CASINO4_15555
90@ = Char.GetScriptTaskStatus(72@, 1560)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_15301
Streaming.RemoveAnimation("FOOD")
122@ = 5
128@ = 1
124@ = 0
if 
  134@ == 1
goto_if_false @CASINO4_15294
Particle.Stop(136@)
Particle.Kill(136@)
134@ = 0

:CASINO4_15294
TIMERA = 0

:CASINO4_15301
if 
  94@ <> 1.0
goto_if_false @CASINO4_15510
if 
  134@ == 0
goto_if_false @CASINO4_15403
if 
  94@ >= 0.42
goto_if_false @CASINO4_15403
Particle.Play(136@)
if 
  255@ == 0
goto_if_false @CASINO4_15396
252@ = 78
260@ = Clock.GetGameTimer()

:CASINO4_15396
134@ = 1

:CASINO4_15403
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_15493
if 
  Char.IsPlayingAnim(72@, "EAT_VOMIT_P")
goto_if_false @CASINO4_15476
94@ = Char.GetAnimCurrentTime(72@, "EAT_VOMIT_P")
goto @CASINO4_15486

:CASINO4_15476
94@ = 1.0

:CASINO4_15486
goto @CASINO4_15503

:CASINO4_15493
94@ = 1.0

:CASINO4_15503
goto @CASINO4_15548

:CASINO4_15510
Particle.Stop(136@)
Particle.Kill(136@)
TIMERA = 0
134@ = 0
124@ = 0
122@ = 4

:CASINO4_15548
goto @CASINO4_15655

:CASINO4_15555
90@ = Char.GetScriptTaskStatus(72@, 1560)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_15655
Streaming.RemoveAnimation("FOOD")
122@ = 5
128@ = 1
124@ = 0
TIMERA = 0
if 
  134@ == 1
goto_if_false @CASINO4_15655
Particle.Stop(136@)
Particle.Kill(136@)
134@ = 0

:CASINO4_15655
goto @CASINO4_18264

:CASINO4_15662
if 
  5 > 123@
goto_if_false @CASINO4_18208
if and
  not Char.IsDead(71@)
  not Car.IsDead(77@)
goto_if_false @CASINO4_18201
if 
  123@ == 0
goto_if_false @CASINO4_16308
if 
  265@ == 1
goto_if_false @CASINO4_16294
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_16294
switch_start 278@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @CASINO4_16193 {caseNum1} 0 {caseLabel1} @CASINO4_15813 {caseNum2} 1 {caseLabel2} @CASINO4_15857 {caseNum3} 2 {caseLabel3} @CASINO4_15941 {caseNum4} 3 {caseLabel4} @CASINO4_16025 {caseNum5} 4 {caseLabel5} @CASINO4_16109 {caseNum6} -1 {caseLabel6} @CASINO4_16294 {caseNum7} -1 {caseLabel7} @CASINO4_16294

:CASINO4_15813
if 
  255@ == 0
goto_if_false @CASINO4_15850
252@ = 50
278@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_15850
goto @CASINO4_16294

:CASINO4_15857
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_15934
if 
  255@ == 0
goto_if_false @CASINO4_15934
252@ = 51
278@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_15934
goto @CASINO4_16294

:CASINO4_15941
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16018
if 
  255@ == 0
goto_if_false @CASINO4_16018
252@ = 52
278@ = 3
260@ = Clock.GetGameTimer()

:CASINO4_16018
goto @CASINO4_16294

:CASINO4_16025
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16102
if 
  255@ == 0
goto_if_false @CASINO4_16102
252@ = 53
278@ = 5
260@ = Clock.GetGameTimer()

:CASINO4_16102
goto @CASINO4_16294

:CASINO4_16109
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16186
if 
  255@ == 0
goto_if_false @CASINO4_16186
252@ = 54
278@ = 5
260@ = Clock.GetGameTimer()

:CASINO4_16186
goto @CASINO4_16294

:CASINO4_16193
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16287
if 
  255@ == 0
goto_if_false @CASINO4_16287
132@ = 99
Streaming.RequestAnimation("FOOD")
TIMERB = 0
278@ = 0
123@ = 1

:CASINO4_16287
goto @CASINO4_16294

:CASINO4_16294
279@ = 0
goto @CASINO4_18201

:CASINO4_16308
if 
  123@ == 1
goto_if_false @CASINO4_17262
if 
  TIMERB > 5000
goto_if_false @CASINO4_17011
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_17004
switch_start 278@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @CASINO4_16892 {caseNum1} 0 {caseLabel1} @CASINO4_16421 {caseNum2} 1 {caseLabel2} @CASINO4_16465 {caseNum3} 2 {caseLabel3} @CASINO4_16549 {caseNum4} 3 {caseLabel4} @CASINO4_16640 {caseNum5} 4 {caseLabel5} @CASINO4_16724 {caseNum6} 5 {caseLabel6} @CASINO4_16808 {caseNum7} -1 {caseLabel7} @CASINO4_17004

:CASINO4_16421
if 
  255@ == 0
goto_if_false @CASINO4_16458
252@ = 55
278@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_16458
goto @CASINO4_17004

:CASINO4_16465
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16542
if 
  255@ == 0
goto_if_false @CASINO4_16542
252@ = 56
278@ = 3
260@ = Clock.GetGameTimer()

:CASINO4_16542
goto @CASINO4_17004

:CASINO4_16549
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16633
if 
  255@ == 0
goto_if_false @CASINO4_16633
252@ = 57
278@ = 5
287@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_16633
goto @CASINO4_17004

:CASINO4_16640
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16717
if 
  255@ == 0
goto_if_false @CASINO4_16717
252@ = 58
278@ = 5
260@ = Clock.GetGameTimer()

:CASINO4_16717
goto @CASINO4_17004

:CASINO4_16724
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16801
if 
  255@ == 0
goto_if_false @CASINO4_16801
252@ = 58
278@ = 5
260@ = Clock.GetGameTimer()

:CASINO4_16801
goto @CASINO4_17004

:CASINO4_16808
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16885
if 
  255@ == 0
goto_if_false @CASINO4_16885
252@ = 59
278@ = 6
260@ = Clock.GetGameTimer()

:CASINO4_16885
goto @CASINO4_17004

:CASINO4_16892
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16997
if 
  255@ == 0
goto_if_false @CASINO4_16997
132@ = 99
TIMERA = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
287@ = 0
288@ = 0
125@ = 0
123@ = 9999

:CASINO4_16997
goto @CASINO4_17004

:CASINO4_17004
goto @CASINO4_17255

:CASINO4_17011
if and
  Streaming.HasAnimationLoaded("PAULNMAC")
  Car.IsStopped(77@)
goto_if_false @CASINO4_17255
95@, 96@, 97@ = Car.GetOffsetInWorldCoords(77@, 4.0, 2.0, 0.0)
89@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 95@, 96@, 97@, MoveState.Sprint, 5000)
Task.PlayAnim(-1, "PISS_IN", "PAULNMAC", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PISS_LOOP", "PAULNMAC", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PISS_OUT", "PAULNMAC", 4.0, False, False, False, False, -1)
Task.EnterCarAsPassenger(-1, 77@, -2, -1)
Sequence.Close(89@)
Char.PerformSequence(71@, 89@)
Sequence.Clear(89@)
123@ = 2
125@ = 1

:CASINO4_17255
goto @CASINO4_18201

:CASINO4_17262
if 
  123@ == 2
goto_if_false @CASINO4_17570
90@ = Char.GetScriptTaskStatus(71@, 1560)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_17330
123@ = 5
125@ = 0
goto @CASINO4_17563

:CASINO4_17330
if 
  is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_17413
90@ = Char.GetSequenceProgress(71@)
if 
  90@ > 4
goto_if_false @CASINO4_17413
if 
  133@ == 1
goto_if_false @CASINO4_17413
Particle.Stop(137@)
Particle.Kill(137@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
133@ = 0

:CASINO4_17413
if 
  Char.IsPlayingAnim(71@, "PISS_IN")
goto_if_false @CASINO4_17563
95@, 96@, 97@ = Char.GetOffsetInWorldCoords(71@, 0.0, 0.0, -0.2)
94@ = Char.GetAnimCurrentTime(71@, "PISS_IN")
137@ = Particle.CreateOnCharWithDirection("PETROLCAN", 71@, 0.0, 0.116, 0.048, 95@, 96@, 97@, 1)
Particle.AttachToCharBone(137@, 71@, 1)
94@ = 0.0
123@ = 3
133@ = 0

:CASINO4_17563
goto @CASINO4_18201

:CASINO4_17570
if 
  123@ == 3
goto_if_false @CASINO4_17925
90@ = Char.GetScriptTaskStatus(71@, 1560)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_17677
123@ = 5
125@ = 0
if 
  133@ == 1
goto_if_false @CASINO4_17670
Particle.Stop(137@)
Particle.Kill(137@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
133@ = 0

:CASINO4_17670
goto @CASINO4_17760

:CASINO4_17677
if 
  is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_17760
90@ = Char.GetSequenceProgress(71@)
if 
  90@ > 4
goto_if_false @CASINO4_17760
if 
  133@ == 1
goto_if_false @CASINO4_17760
Particle.Stop(137@)
Particle.Kill(137@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
133@ = 0

:CASINO4_17760
if 
  Char.IsPlayingAnim(71@, "PISS_IN")
goto_if_false @CASINO4_17918
94@ = Char.GetAnimCurrentTime(71@, "PISS_IN")
if 
  94@ <> 1.0
goto_if_false @CASINO4_17918
if 
  133@ == 0
goto_if_false @CASINO4_17918
if 
  94@ >= 0.6
goto_if_false @CASINO4_17918
if 
  255@ == 0
goto_if_false @CASINO4_17892
252@ = 60
260@ = Clock.GetGameTimer()

:CASINO4_17892
Particle.Play(137@)
287@ = 1
133@ = 1
123@ = 4

:CASINO4_17918
goto @CASINO4_18201

:CASINO4_17925
90@ = Char.GetScriptTaskStatus(71@, 1560)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_18014
123@ = 5
125@ = 0
if 
  133@ == 1
goto_if_false @CASINO4_18007
Particle.Stop(137@)
Particle.Kill(137@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
133@ = 0

:CASINO4_18007
goto @CASINO4_18097

:CASINO4_18014
if 
  is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_18097
90@ = Char.GetSequenceProgress(71@)
if 
  90@ > 4
goto_if_false @CASINO4_18097
if 
  133@ == 1
goto_if_false @CASINO4_18097
Particle.Stop(137@)
Particle.Kill(137@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
133@ = 0

:CASINO4_18097
if 
  Char.IsPlayingAnim(71@, "PISS_OUT")
goto_if_false @CASINO4_18201
94@ = Char.GetAnimCurrentTime(71@, "PISS_OUT")
if 
  133@ == 1
goto_if_false @CASINO4_18201
if 
  94@ >= 0.42
goto_if_false @CASINO4_18201
Particle.Stop(137@)
Particle.Kill(137@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
133@ = 0

:CASINO4_18201
goto @CASINO4_18264

:CASINO4_18208
125@ = 0
126@ = 1
if and
  not Char.IsDead(71@)
  not Car.IsDead(77@)
goto_if_false @CASINO4_18264
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech(72@, False)
Char.ShutUpForScriptedSpeech(71@, False)

:CASINO4_18264
goto @CASINO4_18455

:CASINO4_18271
if 
  125@ == 1
goto_if_false @CASINO4_18359
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_18317
Char.ClearTasks(71@)
Char.ShutUpForScriptedSpeech(71@, False)

:CASINO4_18317
Particle.Stop(137@)
Particle.Kill(137@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
123@ = 5
125@ = 0
133@ = 0
126@ = 1

:CASINO4_18359
if 
  124@ == 1
goto_if_false @CASINO4_18455
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_18405
Char.ClearTasks(72@)
Char.ShutUpForScriptedSpeech(72@, False)

:CASINO4_18405
Particle.Stop(136@)
Particle.Kill(136@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Streaming.RemoveAnimation("FOOD")
122@ = 5
128@ = 1
124@ = 0
134@ = 0

:CASINO4_18455
goto @CASINO4_18532

:CASINO4_18462
if 
  133@ == 1
goto_if_false @CASINO4_18497
Particle.Stop(137@)
Particle.Kill(137@)
133@ = 0

:CASINO4_18497
if 
  134@ == 1
goto_if_false @CASINO4_18532
Particle.Stop(136@)
Particle.Kill(136@)
134@ = 0

:CASINO4_18532
if and
  120@ == 1
  119@ == 1
goto_if_false @CASINO4_18733
129@ = 1
if 
  52@ == 0
goto_if_false @CASINO4_18726
if and
  124@ == 0
  125@ == 0
goto_if_false @CASINO4_18726
if and
  not Char.IsDead(72@)
  not Char.IsDead(71@)
  not Car.IsDead(77@)
goto_if_false @CASINO4_18726
if and
  Char.IsSittingInCar(72@, 77@)
  Char.IsSittingInCar(71@, 77@)
goto_if_false @CASINO4_18726
TIMERA = 0
Text.ClearPrints
Text.Print('CAS4_16', 8000, 1)
70@ = Blip.AddForCoord(-24.0, 2331.0, 24.0)
52@ = 1
272@ = 0
273@ = 0

:CASINO4_18726
goto @CASINO4_20438

:CASINO4_18733
129@ = 0
if 
  52@ == 1
goto_if_false @CASINO4_18770
Blip.Remove(70@)
52@ = 0

:CASINO4_18770
if 
  272@ == 0
goto_if_false @CASINO4_19152
if 
  252@ <> 0
goto_if_false @CASINO4_19152
if 
  255@ == 0
goto_if_false @CASINO4_18852
if 
  Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_18845
Audio.ClearMissionAudio(254@)

:CASINO4_18845
255@ = 1

:CASINO4_18852
if 
  255@ == 1
goto_if_false @CASINO4_18889
Audio.LoadMissionAudio(253@, 138@(252@,114i))
255@ = 2

:CASINO4_18889
if 
  255@ == 2
goto_if_false @CASINO4_18974
if 
  Audio.HasMissionAudioLoaded(253@)
goto_if_false @CASINO4_18974
Audio.PlayMissionAudio(253@)
if or
  252@ == 7
  252@ == 8
goto_if_false @CASINO4_18967
Text.PrintNow($c2_cp(252@,114s), 10000, 1)

:CASINO4_18967
255@ = 3

:CASINO4_18974
if 
  255@ == 3
goto_if_false @CASINO4_19152
if 
  Audio.HasMissionAudioFinished(253@)
goto_if_false @CASINO4_19091
Text.ClearThisPrint($c2_cp(252@,114s))
if 
  253@ == 1
goto_if_false @CASINO4_19056
253@ = 2
254@ = 1
goto @CASINO4_19070

:CASINO4_19056
253@ = 1
254@ = 2

:CASINO4_19070
252@ = 0
255@ = 0
goto @CASINO4_19152

:CASINO4_19091
if 
  not Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_19152
if 
  110 > 252@
goto_if_false @CASINO4_19152
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
Audio.LoadMissionAudio(254@, 138@(261@,114i))

:CASINO4_19152
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_20438
if and
  not Char.IsDead(72@)
  not Char.IsDead(71@)
goto_if_false @CASINO4_20438
if or
  Char.LocateAnyMeansChar3D($scplayer, 72@, 10.0, 10.0, 5.0, False)
  Char.LocateAnyMeansChar3D($scplayer, 71@, 10.0, 10.0, 5.0, False)
goto_if_false @CASINO4_20410
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO4_20007
284@ = 0
283@ = 1
if 
  272@ == 0
goto_if_false @CASINO4_20000
if and
  120@ == 1
  119@ == 0
goto_if_false @CASINO4_19542
if 
  Char.LocateAnyMeansChar3D($scplayer, 72@, 10.0, 10.0, 5.0, False)
goto_if_false @CASINO4_19542
switch_start 273@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @CASINO4_19463 {caseNum1} 0 {caseLabel1} @CASINO4_19419 {caseNum2} -1 {caseLabel2} @CASINO4_19542 {caseNum3} -1 {caseLabel3} @CASINO4_19542 {caseNum4} -1 {caseLabel4} @CASINO4_19542 {caseNum5} -1 {caseLabel5} @CASINO4_19542 {caseNum6} -1 {caseLabel6} @CASINO4_19542 {caseNum7} -1 {caseLabel7} @CASINO4_19542

:CASINO4_19419
if 
  255@ == 0
goto_if_false @CASINO4_19456
252@ = 40
273@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_19456
goto @CASINO4_19542

:CASINO4_19463
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_19535
if 
  255@ == 0
goto_if_false @CASINO4_19535
273@ = 0
272@ = 1

:CASINO4_19535
goto @CASINO4_19542

:CASINO4_19542
if and
  120@ == 0
  119@ == 1
goto_if_false @CASINO4_19789
if 
  Char.LocateAnyMeansChar3D($scplayer, 71@, 10.0, 10.0, 5.0, False)
goto_if_false @CASINO4_19789
switch_start 273@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @CASINO4_19710 {caseNum1} 0 {caseLabel1} @CASINO4_19666 {caseNum2} -1 {caseLabel2} @CASINO4_19789 {caseNum3} -1 {caseLabel3} @CASINO4_19789 {caseNum4} -1 {caseLabel4} @CASINO4_19789 {caseNum5} -1 {caseLabel5} @CASINO4_19789 {caseNum6} -1 {caseLabel6} @CASINO4_19789 {caseNum7} -1 {caseLabel7} @CASINO4_19789

:CASINO4_19666
if 
  255@ == 0
goto_if_false @CASINO4_19703
252@ = 39
273@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_19703
goto @CASINO4_19789

:CASINO4_19710
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_19782
if 
  255@ == 0
goto_if_false @CASINO4_19782
273@ = 0
272@ = 1

:CASINO4_19782
goto @CASINO4_19789

:CASINO4_19789
if and
  120@ == 0
  119@ == 0
goto_if_false @CASINO4_20000
switch_start 273@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @CASINO4_19921 {caseNum1} 0 {caseLabel1} @CASINO4_19877 {caseNum2} -1 {caseLabel2} @CASINO4_20000 {caseNum3} -1 {caseLabel3} @CASINO4_20000 {caseNum4} -1 {caseLabel4} @CASINO4_20000 {caseNum5} -1 {caseLabel5} @CASINO4_20000 {caseNum6} -1 {caseLabel6} @CASINO4_20000 {caseNum7} -1 {caseLabel7} @CASINO4_20000

:CASINO4_19877
if 
  255@ == 0
goto_if_false @CASINO4_19914
252@ = 38
273@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_19914
goto @CASINO4_20000

:CASINO4_19921
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_19993
if 
  255@ == 0
goto_if_false @CASINO4_19993
273@ = 0
272@ = 1

:CASINO4_19993
goto @CASINO4_20000

:CASINO4_20000
goto @CASINO4_20403

:CASINO4_20007
272@ = 0
273@ = 0
if 
  284@ == 0
goto_if_false @CASINO4_20403
switch_start 283@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASINO4_20293 {caseNum1} 0 {caseLabel1} @CASINO4_20102 {caseNum2} 1 {caseLabel2} @CASINO4_20175 {caseNum3} -1 {caseLabel3} @CASINO4_20403 {caseNum4} -1 {caseLabel4} @CASINO4_20403 {caseNum5} -1 {caseLabel5} @CASINO4_20403 {caseNum6} -1 {caseLabel6} @CASINO4_20403 {caseNum7} -1 {caseLabel7} @CASINO4_20403

:CASINO4_20102
if 
  255@ == 0
goto_if_false @CASINO4_20168
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_20149
Char.StopFacialTalk(71@)
Char.StartFacialTalk(71@, 3000)

:CASINO4_20149
252@ = 7
283@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_20168
goto @CASINO4_20403

:CASINO4_20175
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_20286
if 
  255@ == 0
goto_if_false @CASINO4_20286
if and
  not Char.IsDead(72@)
  not Char.IsDead(71@)
goto_if_false @CASINO4_20267
Char.StopFacialTalk(71@)
Char.StartFacialTalk(72@, 3000)

:CASINO4_20267
252@ = 8
283@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_20286
goto @CASINO4_20403

:CASINO4_20293
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_20396
if 
  255@ == 0
goto_if_false @CASINO4_20396
if and
  not Char.IsDead(72@)
  not Char.IsDead(71@)
goto_if_false @CASINO4_20382
Char.StopFacialTalk(71@)
Char.StopFacialTalk(72@)

:CASINO4_20382
283@ = 0
284@ = 1

:CASINO4_20396
goto @CASINO4_20403

:CASINO4_20403
goto @CASINO4_20438

:CASINO4_20410
272@ = 0
273@ = 0
284@ = 0
283@ = 1

:CASINO4_20438
if 
  52@ == 1
goto_if_false @CASINO4_22506
if and
  124@ == 0
  125@ == 0
goto_if_false @CASINO4_22476
if 
  265@ == 0
goto_if_false @CASINO4_22469
if 
  252@ <> 0
goto_if_false @CASINO4_20838
if 
  255@ == 0
goto_if_false @CASINO4_20563
if 
  Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_20556
Audio.ClearMissionAudio(254@)

:CASINO4_20556
255@ = 1

:CASINO4_20563
if 
  255@ == 1
goto_if_false @CASINO4_20600
Audio.LoadMissionAudio(253@, 138@(252@,114i))
255@ = 2

:CASINO4_20600
if 
  255@ == 2
goto_if_false @CASINO4_20660
if 
  Audio.HasMissionAudioLoaded(253@)
goto_if_false @CASINO4_20660
Audio.PlayMissionAudio(253@)
Text.PrintNow($c2_cp(252@,114s), 10000, 1)
255@ = 3

:CASINO4_20660
if 
  255@ == 3
goto_if_false @CASINO4_20838
if 
  Audio.HasMissionAudioFinished(253@)
goto_if_false @CASINO4_20777
Text.ClearThisPrint($c2_cp(252@,114s))
if 
  253@ == 1
goto_if_false @CASINO4_20742
253@ = 2
254@ = 1
goto @CASINO4_20756

:CASINO4_20742
253@ = 1
254@ = 2

:CASINO4_20756
252@ = 0
255@ = 0
goto @CASINO4_20838

:CASINO4_20777
if 
  not Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_20838
if 
  110 > 252@
goto_if_false @CASINO4_20838
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
Audio.LoadMissionAudio(254@, 138@(261@,114i))

:CASINO4_20838
if 
  263@ == 0
goto_if_false @CASINO4_21502
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_21495
switch_start 262@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @CASINO4_21354 {caseNum1} 0 {caseLabel1} @CASINO4_20932 {caseNum2} 1 {caseLabel2} @CASINO4_21018 {caseNum3} 2 {caseLabel3} @CASINO4_21102 {caseNum4} 3 {caseLabel4} @CASINO4_21186 {caseNum5} 4 {caseLabel5} @CASINO4_21270 {caseNum6} -1 {caseLabel6} @CASINO4_21495 {caseNum7} -1 {caseLabel7} @CASINO4_21495

:CASINO4_20932
if 
  255@ == 0
goto_if_false @CASINO4_21011
if and
  not Char.IsDead(71@)
  not Car.IsDead(77@)
goto_if_false @CASINO4_20992
Char.ShutUpForScriptedSpeech(72@, True)
Char.ShutUpForScriptedSpeech(71@, True)
Char.ShutUpForScriptedSpeech($scplayer, True)

:CASINO4_20992
252@ = 20
262@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_21011
goto @CASINO4_21495

:CASINO4_21018
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21095
if 
  255@ == 0
goto_if_false @CASINO4_21095
252@ = 21
262@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_21095
goto @CASINO4_21495

:CASINO4_21102
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21179
if 
  255@ == 0
goto_if_false @CASINO4_21179
252@ = 22
262@ = 3
260@ = Clock.GetGameTimer()

:CASINO4_21179
goto @CASINO4_21495

:CASINO4_21186
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21263
if 
  255@ == 0
goto_if_false @CASINO4_21263
252@ = 23
262@ = 4
260@ = Clock.GetGameTimer()

:CASINO4_21263
goto @CASINO4_21495

:CASINO4_21270
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21347
if 
  255@ == 0
goto_if_false @CASINO4_21347
252@ = 24
262@ = 5
260@ = Clock.GetGameTimer()

:CASINO4_21347
goto @CASINO4_21495

:CASINO4_21354
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21488
if 
  255@ == 0
goto_if_false @CASINO4_21488
if and
  not Char.IsDead(71@)
  not Car.IsDead(77@)
goto_if_false @CASINO4_21454
Char.ShutUpForScriptedSpeech(72@, False)
Char.ShutUpForScriptedSpeech(71@, False)
Char.ShutUpForScriptedSpeech($scplayer, False)

:CASINO4_21454
263@ = 1
if 
  TIMERA > 25000
goto_if_false @CASINO4_21488
TIMERA = 25000

:CASINO4_21488
goto @CASINO4_21495

:CASINO4_21495
goto @CASINO4_22469

:CASINO4_21502
if and
  265@ == 0
  128@ == 1
goto_if_false @CASINO4_22469
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_22469
switch_start 264@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @CASINO4_22335 {caseNum1} 0 {caseLabel1} @CASINO4_21668 {caseNum2} 1 {caseLabel2} @CASINO4_21747 {caseNum3} 2 {caseLabel3} @CASINO4_21831 {caseNum4} 3 {caseLabel4} @CASINO4_21915 {caseNum5} 4 {caseLabel5} @CASINO4_21999 {caseNum6} 5 {caseLabel6} @CASINO4_22083 {caseNum7} 6 {caseLabel7} @CASINO4_22167
switch_continued 7 {caseLabel1} @CASINO4_22251 {caseNum2} -1 {caseLabel2} @CASINO4_22469 {caseNum3} -1 {caseLabel3} @CASINO4_22469 {caseNum4} -1 {caseLabel4} @CASINO4_22469 {caseNum5} -1 {caseLabel5} @CASINO4_22469 {caseNum6} -1 {caseLabel6} @CASINO4_22469 {caseNum7} -1 {caseLabel7} @CASINO4_22469 {caseNum8} -1 {caseLabel8} @CASINO4_22469 {caseNum9} -1 {caseLabel9} @CASINO4_22469

:CASINO4_21668
if 
  255@ == 0
goto_if_false @CASINO4_21740
if and
  not Char.IsDead(71@)
  not Car.IsDead(77@)
goto_if_false @CASINO4_21721
Char.ShutUpForScriptedSpeech(72@, True)
Char.ShutUpForScriptedSpeech(71@, True)

:CASINO4_21721
252@ = 25
264@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_21740
goto @CASINO4_22469

:CASINO4_21747
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21824
if 
  255@ == 0
goto_if_false @CASINO4_21824
252@ = 26
264@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_21824
goto @CASINO4_22469

:CASINO4_21831
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21908
if 
  255@ == 0
goto_if_false @CASINO4_21908
252@ = 27
264@ = 3
260@ = Clock.GetGameTimer()

:CASINO4_21908
goto @CASINO4_22469

:CASINO4_21915
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21992
if 
  255@ == 0
goto_if_false @CASINO4_21992
252@ = 28
264@ = 4
260@ = Clock.GetGameTimer()

:CASINO4_21992
goto @CASINO4_22469

:CASINO4_21999
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_22076
if 
  255@ == 0
goto_if_false @CASINO4_22076
252@ = 29
264@ = 5
260@ = Clock.GetGameTimer()

:CASINO4_22076
goto @CASINO4_22469

:CASINO4_22083
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_22160
if 
  255@ == 0
goto_if_false @CASINO4_22160
252@ = 30
264@ = 6
260@ = Clock.GetGameTimer()

:CASINO4_22160
goto @CASINO4_22469

:CASINO4_22167
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_22244
if 
  255@ == 0
goto_if_false @CASINO4_22244
252@ = 31
264@ = 7
260@ = Clock.GetGameTimer()

:CASINO4_22244
goto @CASINO4_22469

:CASINO4_22251
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_22328
if 
  255@ == 0
goto_if_false @CASINO4_22328
252@ = 32
264@ = 8
260@ = Clock.GetGameTimer()

:CASINO4_22328
goto @CASINO4_22469

:CASINO4_22335
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_22462
if 
  255@ == 0
goto_if_false @CASINO4_22462
if and
  not Char.IsDead(71@)
  not Car.IsDead(77@)
goto_if_false @CASINO4_22428
Char.ShutUpForScriptedSpeech(72@, False)
Char.ShutUpForScriptedSpeech(71@, False)

:CASINO4_22428
265@ = 1
if 
  TIMERA > 25000
goto_if_false @CASINO4_22462
TIMERA = 25000

:CASINO4_22462
goto @CASINO4_22469

:CASINO4_22469
goto @CASINO4_22506

:CASINO4_22476
if 
  52@ == 1
goto_if_false @CASINO4_22506
Blip.Remove(70@)
52@ = 0

:CASINO4_22506
if and
  49@ == 1
  60@ == 0
goto_if_false @CASINO4_22724
if 
  Char.LocateAnyMeans3D($scplayer, -32.0, 2337.0, 24.0, 100.0, 100.0, 20.0, False)
goto_if_false @CASINO4_22724
Car.CustomPlateForNextCar(478, "__TIM___")
78@ = Car.Create(478, -50.0, 2358.0, 24.0)
Car.LockDoors(78@, CarLock.LockoutPlayerOnly)
Car.SetCanBeDamaged(78@, False)
Car.SetHeading(78@, 188.0)
Car.FreezePosition(78@, True)
Car.CustomPlateForNextCar(478, "_TAMMY__")
79@ = Car.Create(478, -46.0, 2355.0, 24.0)
Car.LockDoors(79@, CarLock.LockoutPlayerOnly)
Car.SetHeading(79@, 188.0)
Car.FreezePosition(79@, True)
Car.SetCanBeDamaged(79@, False)
60@ = 1

:CASINO4_22724
if and
  52@ == 1
  51@ == 0
  49@ == 1
goto_if_false @CASINO4_29660
if and
  not Char.IsDead(72@)
  not Char.IsDead(71@)
goto_if_false @CASINO4_29660
if and
  Char.LocateAnyMeans3D($scplayer, -24.0, 2331.0, 24.0, 4.0, 4.0, 2.0, True)
  Char.LocateAnyMeans3D(72@, -24.0, 2331.0, 24.0, 4.0, 4.0, 2.0, False)
  Char.LocateAnyMeans3D(71@, -24.0, 2331.0, 24.0, 4.0, 4.0, 2.0, False)
goto_if_false @CASINO4_29660
Blip.Remove(70@)
Text.ClearPrints
Camera.SetFixedPosition(-21.46, 2335.33, 23.52, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-49.14, 2356.75, 26.09, SwitchType.JumpCut)
Player.MakeGangDisappear
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Game.SetPoliceIgnorePlayer($player1, True)
World.ClearArea(-24.0, 2331.0, 24.0, 50.0, True)
Streaming.RemoveAnimation("PAULNMAC")
Streaming.RemoveAnimation("FOOD")
Streaming.RequestAnimation("SMOKING")
Streaming.RequestModel(346)

:CASINO4_23037
if or
  not Streaming.HasAnimationLoaded("SMOKING")
  not Streaming.HasModelLoaded(346)
goto_if_false @CASINO4_23075
wait 0
goto @CASINO4_23037

:CASINO4_23075
73@ = Char.Create(PedType.Mission2, 32, -32.3702, 2348.239, 23.1328)
Char.SetHeading(73@, 180.1098)
Char.SetIsTargetPriority(73@, True)
Char.GiveWeapon(73@, WeaponType.Pistol, 3000)
109@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKSTND_LOOP", "SMOKING", 4.0, True, False, False, False, -1)
Sequence.Close(109@)
Char.PerformSequence(73@, 109@)
Sequence.Clear(109@)
74@ = Char.Create(PedType.Mission2, 34, -34.288, 2350.204, 23.1328)
Char.SetHeading(74@, 177.5823)
Char.SetIsTargetPriority(74@, True)
Char.GiveWeapon(74@, WeaponType.Pistol, 3000)
109@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMKLEAN_LOOP", "SMOKING", 4.0, True, False, False, False, -1)
Sequence.Close(109@)
Char.PerformSequence(74@, 109@)
Sequence.Clear(109@)
Camera.SetFixedPosition(-21.46, 2335.33, 23.52, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-49.14, 2356.75, 26.09, SwitchType.JumpCut)
if and
  not Char.IsDead(72@)
  not Char.IsDead(71@)
goto_if_false @CASINO4_23661
World.ClearArea(-25.7433, 2334.629, 23.1328, 100.0, True)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO4_23485
77@ = Char.StoreCarIsIn($scplayer)
Car.SetMission(77@, CarMission.EmergencyVehicleStop)
Char.WarpFromCarToCoord($scplayer, -25.7433, 2334.629, 23.1328)
Car.SetCoordinates(77@, -24.0, 2331.0, 24.0)
goto @CASINO4_23505

:CASINO4_23485
Char.SetCoordinates($scplayer, -25.7433, 2334.629, 23.1328)

:CASINO4_23505
Char.SetHeading($scplayer, 35.8419)
if 
  Char.IsInAnyCar(72@)
goto_if_false @CASINO4_23558
Char.WarpFromCarToCoord(72@, -23.6752, 2335.531, 23.1328)
goto @CASINO4_23578

:CASINO4_23558
Char.SetCoordinates(72@, -23.6752, 2334.531, 23.1328)

:CASINO4_23578
Char.SetHeading(72@, 35.8419)
if 
  Char.IsInAnyCar(71@)
goto_if_false @CASINO4_23631
Char.WarpFromCarToCoord(71@, -27.9403, 2335.105, 23.1328)
goto @CASINO4_23651

:CASINO4_23631
Char.SetCoordinates(71@, -27.9403, 2334.105, 23.1328)

:CASINO4_23651
Char.SetHeading(71@, 35.8419)

:CASINO4_23661
82@ = Sequence.Open()
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO4_23686
Task.LeaveAnyCar(-1)

:CASINO4_23686
Task.GoStraightToCoord(-1, -31.7411, 2342.68, 23.125, MoveState.Walk, -1)
Task.AchieveHeading(-1, 35.5196)
Sequence.Close(82@)
Char.PerformSequence($scplayer, 82@)
Sequence.Clear(82@)
DecisionMakerChar.ClearEventResponse(38@, 13)
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_23862
Char.SetProofs(71@, True, True, True, True, True)
Char.RemoveFromGroup(71@)
80@ = Sequence.Open()
if 
  Char.IsInAnyCar(71@)
goto_if_false @CASINO4_23804
Task.LeaveAnyCar(-1)

:CASINO4_23804
Task.GoStraightToCoord(-1, -33.0398, 2342.354, 23.125, MoveState.Walk, -1)
Task.AchieveHeading(-1, 37.553)
Sequence.Close(80@)
Char.PerformSequence(71@, 80@)
Sequence.Clear(80@)
Char.SetDecisionMaker(71@, 38@)

:CASINO4_23862
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_23981
Char.SetProofs(72@, True, True, True, True, True)
Char.RemoveFromGroup(72@)
81@ = Sequence.Open()
if 
  Char.IsInAnyCar(72@)
goto_if_false @CASINO4_23923
Task.LeaveAnyCar(-1)

:CASINO4_23923
Task.GoStraightToCoord(-1, -30.0669, 2344.002, 23.125, MoveState.Walk, -1)
Task.AchieveHeading(-1, 19.556)
Sequence.Close(81@)
Char.PerformSequence(72@, 81@)
Sequence.Clear(81@)
Char.SetDecisionMaker(72@, 38@)

:CASINO4_23981
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
TIMERB = 0

:CASINO4_24058
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_24877
if 
  252@ <> 0
goto_if_false @CASINO4_24419
if 
  255@ == 0
goto_if_false @CASINO4_24144
if 
  Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_24137
Audio.ClearMissionAudio(254@)

:CASINO4_24137
255@ = 1

:CASINO4_24144
if 
  255@ == 1
goto_if_false @CASINO4_24181
Audio.LoadMissionAudio(253@, 138@(252@,114i))
255@ = 2

:CASINO4_24181
if 
  255@ == 2
goto_if_false @CASINO4_24241
if 
  Audio.HasMissionAudioLoaded(253@)
goto_if_false @CASINO4_24241
Audio.PlayMissionAudio(253@)
Text.PrintNow($c2_cp(252@,114s), 10000, 1)
255@ = 3

:CASINO4_24241
if 
  255@ == 3
goto_if_false @CASINO4_24419
if 
  Audio.HasMissionAudioFinished(253@)
goto_if_false @CASINO4_24358
Text.ClearThisPrint($c2_cp(252@,114s))
if 
  253@ == 1
goto_if_false @CASINO4_24323
253@ = 2
254@ = 1
goto @CASINO4_24337

:CASINO4_24323
253@ = 1
254@ = 2

:CASINO4_24337
252@ = 0
255@ = 0
goto @CASINO4_24419

:CASINO4_24358
if 
  not Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_24419
if 
  110 > 252@
goto_if_false @CASINO4_24419
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
Audio.LoadMissionAudio(254@, 138@(261@,114i))

:CASINO4_24419
switch_start 257@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @CASINO4_24777 {caseNum1} 0 {caseLabel1} @CASINO4_24482 {caseNum2} 1 {caseLabel2} @CASINO4_24539 {caseNum3} 2 {caseLabel3} @CASINO4_24659 {caseNum4} -1 {caseLabel4} @CASINO4_24870 {caseNum5} -1 {caseLabel5} @CASINO4_24870 {caseNum6} -1 {caseLabel6} @CASINO4_24870 {caseNum7} -1 {caseLabel7} @CASINO4_24870

:CASINO4_24482
if 
  255@ == 0
goto_if_false @CASINO4_24532
Char.StopFacialTalk($scplayer)
Char.StartFacialTalk($scplayer, 3000)
252@ = 33
257@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_24532
goto @CASINO4_24870

:CASINO4_24539
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_24652
if 
  255@ == 0
goto_if_false @CASINO4_24652
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_24626
Char.StopFacialTalk(71@)
Char.StartFacialTalk(71@, 3000)

:CASINO4_24626
252@ = 34
257@ = 2
skip_cutscene_start_internal @CASINO4_27883
260@ = Clock.GetGameTimer()

:CASINO4_24652
goto @CASINO4_24870

:CASINO4_24659
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_24770
if 
  255@ == 0
goto_if_false @CASINO4_24770
if and
  not Char.IsDead(72@)
  not Char.IsDead(71@)
goto_if_false @CASINO4_24751
Char.StopFacialTalk(71@)
Char.StartFacialTalk(72@, 3000)

:CASINO4_24751
252@ = 35
257@ = 3
260@ = Clock.GetGameTimer()

:CASINO4_24770
goto @CASINO4_24870

:CASINO4_24777
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_24863
if 
  255@ == 0
goto_if_false @CASINO4_24863
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_24856
Char.StopFacialTalk(72@)

:CASINO4_24856
256@ = 1

:CASINO4_24863
goto @CASINO4_24870

:CASINO4_24870
goto @CASINO4_24058

:CASINO4_24877
53@ = 0

:CASINO4_24884
if 
  53@ == 0
goto_if_false @CASINO4_24976
if or
  Char.LocateAnyMeans3D($scplayer, -31.7411, 2342.68, 23.125, 3.0, 3.0, 3.0, False)
  TIMERB > 10000
goto_if_false @CASINO4_24965
53@ = 1

:CASINO4_24965
wait 0
goto @CASINO4_24884

:CASINO4_24976
Char.SetCoordinates($scplayer, -31.7411, 2342.68, 23.125)
Char.SetHeading($scplayer, 37.553)
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_25057
Char.ClearTasks(72@)
Char.SetCoordinates(72@, -30.0669, 2344.002, 23.125)
Char.SetHeading(72@, 19.556)

:CASINO4_25057
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_25108
Char.ClearTasks(71@)
Char.SetCoordinates(71@, -33.0398, 2342.354, 23.125)
Char.SetHeading(71@, 37.553)

:CASINO4_25108
Camera.SetFixedPosition(-29.85, 2341.05, 23.81, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-48.53, 2366.47, 31.65, SwitchType.JumpCut)
Streaming.RequestModel(31)
Streaming.RequestModel(33)
Streaming.RequestAnimation("MISC")
if and
  not Char.IsDead(73@)
  not Char.IsDead(74@)
goto_if_false @CASINO4_25239
82@ = Sequence.Open()
Task.LookAtChar(-1, 73@, 3000)
Task.LookAtChar(-1, 74@, 3000)
Sequence.Close(82@)
Char.PerformSequence($scplayer, 82@)
Sequence.Clear(82@)

:CASINO4_25239
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0

:CASINO4_25309
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_27883
if 
  252@ <> 0
goto_if_false @CASINO4_25754
if 
  255@ == 0
goto_if_false @CASINO4_25395
if 
  Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_25388
Audio.ClearMissionAudio(254@)

:CASINO4_25388
255@ = 1

:CASINO4_25395
if 
  255@ == 1
goto_if_false @CASINO4_25432
Audio.LoadMissionAudio(253@, 138@(252@,114i))
255@ = 2

:CASINO4_25432
if 
  255@ == 2
goto_if_false @CASINO4_25492
if 
  Audio.HasMissionAudioLoaded(253@)
goto_if_false @CASINO4_25492
Audio.PlayMissionAudio(253@)
Text.PrintNow($c2_cp(252@,114s), 10000, 1)
255@ = 3

:CASINO4_25492
if 
  255@ == 3
goto_if_false @CASINO4_25754
if 
  Audio.HasMissionAudioFinished(253@)
goto_if_false @CASINO4_25693
Text.ClearThisPrint($c2_cp(252@,114s))
if 
  253@ == 1
goto_if_false @CASINO4_25574
253@ = 2
254@ = 1
goto @CASINO4_25588

:CASINO4_25574
253@ = 1
254@ = 2

:CASINO4_25588
if 
  not Char.IsDead(75@)
goto_if_false @CASINO4_25609
Char.StopFacialTalk(75@)

:CASINO4_25609
if 
  not Char.IsDead(73@)
goto_if_false @CASINO4_25630
Char.StopFacialTalk(73@)

:CASINO4_25630
if 
  not Char.IsDead(76@)
goto_if_false @CASINO4_25651
Char.StopFacialTalk(76@)

:CASINO4_25651
if 
  not Char.IsDead(74@)
goto_if_false @CASINO4_25672
Char.StopFacialTalk(74@)

:CASINO4_25672
252@ = 0
255@ = 0
goto @CASINO4_25754

:CASINO4_25693
if 
  not Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_25754
if 
  110 > 252@
goto_if_false @CASINO4_25754
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
Audio.LoadMissionAudio(254@, 138@(261@,114i))

:CASINO4_25754
switch_start 257@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @CASINO4_27804 {caseNum1} 0 {caseLabel1} @CASINO4_25882 {caseNum2} 1 {caseLabel2} @CASINO4_25950 {caseNum3} 2 {caseLabel3} @CASINO4_26183 {caseNum4} 3 {caseLabel4} @CASINO4_26291 {caseNum5} 4 {caseLabel5} @CASINO4_26966 {caseNum6} 5 {caseLabel6} @CASINO4_27074 {caseNum7} 6 {caseLabel7} @CASINO4_27296
switch_continued 7 {caseLabel1} @CASINO4_27570 {caseNum2} -1 {caseLabel2} @CASINO4_27876 {caseNum3} -1 {caseLabel3} @CASINO4_27876 {caseNum4} -1 {caseLabel4} @CASINO4_27876 {caseNum5} -1 {caseLabel5} @CASINO4_27876 {caseNum6} -1 {caseLabel6} @CASINO4_27876 {caseNum7} -1 {caseLabel7} @CASINO4_27876 {caseNum8} -1 {caseLabel8} @CASINO4_27876 {caseNum9} -1 {caseLabel9} @CASINO4_27876

:CASINO4_25882
if 
  255@ == 0
goto_if_false @CASINO4_25943
if 
  not Char.IsDead(73@)
goto_if_false @CASINO4_25924
Char.StartFacialTalk(73@, 10000)

:CASINO4_25924
252@ = 103
257@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_25943
goto @CASINO4_27876

:CASINO4_25950
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_26176
if 
  255@ == 0
goto_if_false @CASINO4_26176
if 
  Streaming.HasAnimationLoaded("MISC")
goto_if_false @CASINO4_26168
Char.ClearLookAt($scplayer)
if and
  not Char.IsDead(71@)
  not Char.IsDead(72@)
goto_if_false @CASINO4_26118
Task.LookAtChar($scplayer, 71@, 6000)
Task.LookAtChar(72@, 71@, 6000)
82@ = Sequence.Open()
Task.LookAtChar(-1, 72@, 3000)
Task.LookAtChar(-1, $scplayer, 3000)
Sequence.Close(82@)
Char.PerformSequence(71@, 82@)
Sequence.Clear(82@)

:CASINO4_26118
if 
  not Char.IsDead(74@)
goto_if_false @CASINO4_26142
Char.StartFacialTalk(74@, 10000)

:CASINO4_26142
252@ = 104
257@ = 2
260@ = Clock.GetGameTimer()
goto @CASINO4_26176

:CASINO4_26168
Streaming.RequestAnimation("MISC")

:CASINO4_26176
goto @CASINO4_27876

:CASINO4_26183
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_26284
if 
  255@ == 0
goto_if_false @CASINO4_26284
if 
  not Char.IsDead(74@)
goto_if_false @CASINO4_26265
Char.StartFacialTalk(74@, 10000)

:CASINO4_26265
252@ = 105
257@ = 3
260@ = Clock.GetGameTimer()

:CASINO4_26284
goto @CASINO4_27876

:CASINO4_26291
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_26959
if or
  not Streaming.HasModelLoaded(31)
  not Streaming.HasModelLoaded(33)
goto_if_false @CASINO4_26365
Streaming.RequestModel(31)
Streaming.RequestModel(33)
goto @CASINO4_26959

:CASINO4_26365
if 
  255@ == 0
goto_if_false @CASINO4_26959
if and
  not Char.IsDead(71@)
  not Char.IsDead(72@)
goto_if_false @CASINO4_26419
Char.ClearLookAt($scplayer)
Char.ClearLookAt(72@)
Char.ClearLookAt(71@)

:CASINO4_26419
if and
  not Char.IsDead(71@)
  not Char.IsDead(72@)
goto_if_false @CASINO4_26554
82@ = Sequence.Open()
Task.StandStill(-1, 2000)
Task.PlayAnim(-1, "PLYR_SHKHEAD", "MISC", 4.0, False, False, False, False, -1)
Sequence.Close(82@)
Char.PerformSequence(71@, 82@)
Sequence.Clear(82@)
Task.LookAtChar($scplayer, 71@, 6000)
82@ = Sequence.Open()
Task.StandStill(-1, 3000)
Task.ScratchHead(-1)
Sequence.Close(82@)
Char.PerformSequence(72@, 82@)
Sequence.Clear(82@)

:CASINO4_26554
Char.ClearLookAt($scplayer)
76@ = Char.Create(PedType.Mission2, 31, -45.2021, 2350.32, 23.125)
Char.SetHeading(76@, 176.976)
Char.SetAnimGroup(76@, "SEXYWOMAN")
Char.SetIsTargetPriority(76@, True)
Char.SetDecisionMaker(76@, 38@)
Path.FlushRoute
Path.ExtendRoute(-44.052, 2348.615, 23.125)
Path.ExtendRoute(-39.8254, 2346.733, 23.125)
Path.ExtendRoute(-36.6941, 2346.5, 23.125)
109@ = Sequence.Open()
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(109@)
Char.PerformSequence(76@, 109@)
Sequence.Clear(109@)
75@ = Char.Create(PedType.Mission2, 33, -46.1256, 2351.387, 23.125)
Char.SetHeading(75@, 176.976)
Char.SetDecisionMaker(75@, 38@)
Path.FlushRoute
Path.ExtendRoute(-44.052, 2348.615, 23.125)
Path.ExtendRoute(-39.8254, 2346.733, 23.125)
Path.ExtendRoute(-38.286, 2346.675, 23.125)
Path.ExtendRoute(-36.1799, 2348.412, 23.125)
109@ = Sequence.Open()
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(109@)
Char.PerformSequence(75@, 109@)
Sequence.Clear(109@)
Camera.SetFixedPosition(-36.34, 2345.19, 24.52, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-50.23, 2366.32, 23.72, SwitchType.JumpCut)
if 
  not Char.IsDead(75@)
goto_if_false @CASINO4_26940
Char.StartFacialTalk(75@, 10000)

:CASINO4_26940
252@ = 106
257@ = 4
260@ = Clock.GetGameTimer()

:CASINO4_26959
goto @CASINO4_27876

:CASINO4_26966
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_27067
if 
  255@ == 0
goto_if_false @CASINO4_27067
if 
  not Char.IsDead(75@)
goto_if_false @CASINO4_27048
Char.StartFacialTalk(75@, 10000)

:CASINO4_27048
252@ = 107
257@ = 5
260@ = Clock.GetGameTimer()

:CASINO4_27067
goto @CASINO4_27876

:CASINO4_27074
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_27289
if 
  255@ == 0
goto_if_false @CASINO4_27289
if 
  not Char.IsDead(76@)
goto_if_false @CASINO4_27270
90@ = Char.GetScriptTaskStatus(76@, 1560)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_27263
Task.PlayAnim(76@, "SCRATCHBALLS_01", "MISC", 4.0, True, False, False, False, -1)
252@ = 108
if 
  not Char.IsDead(76@)
goto_if_false @CASINO4_27251
Char.StartFacialTalk(76@, 10000)

:CASINO4_27251
257@ = 6
260@ = Clock.GetGameTimer()

:CASINO4_27263
goto @CASINO4_27289

:CASINO4_27270
252@ = 108
257@ = 6
260@ = Clock.GetGameTimer()

:CASINO4_27289
goto @CASINO4_27876

:CASINO4_27296
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_27563
if 
  255@ == 0
goto_if_false @CASINO4_27563
Camera.SetFixedPosition(-30.33, 2342.29, 24.71, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-41.67, 2352.5, 23.55, SwitchType.JumpCut)
if 
  not Char.IsDead(75@)
goto_if_false @CASINO4_27464
Task.PlayAnim(75@, "SCRATCHBALLS_01", "MISC", 4.0, True, False, False, False, -1)

:CASINO4_27464
if 
  not Char.IsDead(73@)
goto_if_false @CASINO4_27520
Task.PlayAnim(73@, "M_SMK_OUT", "SMOKING", 4.0, False, False, False, False, -1)

:CASINO4_27520
if 
  not Char.IsDead(73@)
goto_if_false @CASINO4_27544
Char.StartFacialTalk(73@, 10000)

:CASINO4_27544
252@ = 109
257@ = 7
260@ = Clock.GetGameTimer()

:CASINO4_27563
goto @CASINO4_27876

:CASINO4_27570
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_27797
if 
  255@ == 0
goto_if_false @CASINO4_27797
if 
  not Char.IsDead(73@)
goto_if_false @CASINO4_27754
109@ = Sequence.Open()
Task.PlayAnim(-1, "ROADCROSS", "PED", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "COLT45_RELOAD", "COLT45", 4.0, False, False, False, False, -1)
Task.AimGunAtChar(-1, $scplayer, 6000)
Sequence.Close(109@)
Char.PerformSequence(73@, 109@)
Sequence.Clear(109@)

:CASINO4_27754
if 
  not Char.IsDead(73@)
goto_if_false @CASINO4_27778
Char.StartFacialTalk(73@, 10000)

:CASINO4_27778
252@ = 110
257@ = 8
260@ = Clock.GetGameTimer()

:CASINO4_27797
goto @CASINO4_27876

:CASINO4_27804
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_27869
if 
  255@ == 0
goto_if_false @CASINO4_27869
256@ = 1

:CASINO4_27869
goto @CASINO4_27876

:CASINO4_27876
goto @CASINO4_25309

:CASINO4_27883
skip_cutscene_end 
Player.MakeGangReappear
Audio.ClearMissionAudio(253@)
Audio.ClearMissionAudio(254@)
DecisionMakerChar.AddEventResponse(38@, 13, 917, 100.0, 0.0, 0.0, 100.0, True, False)

:CASINO4_27931
if or
  not Streaming.HasModelLoaded(32)
  not Streaming.HasModelLoaded(34)
  not Streaming.HasModelLoaded(31)
  not Streaming.HasModelLoaded(33)
  not Streaming.HasModelLoaded(346)
goto_if_false @CASINO4_27991
wait 0
Streaming.RequestModel(34)
Streaming.RequestModel(31)
Streaming.RequestModel(33)
Streaming.RequestModel(346)
goto @CASINO4_27931

:CASINO4_27991
Char.Delete(73@)
Char.MarkAsNoLongerNeeded(73@)
73@ = Char.Create(PedType.Mission2, 32, -32.3702, 2348.239, 23.125)
Char.SetHeading(73@, 180.1098)
Char.SetIsTargetPriority(73@, True)
Char.GiveWeapon(73@, WeaponType.Pistol, 3000)
Char.Delete(74@)
Char.MarkAsNoLongerNeeded(74@)
74@ = Char.Create(PedType.Mission2, 34, -34.288, 2350.204, 23.125)
Char.SetHeading(74@, 177.5823)
Char.SetIsTargetPriority(74@, True)
Char.GiveWeapon(74@, WeaponType.Pistol, 3000)
Char.Delete(76@)
Char.MarkAsNoLongerNeeded(76@)
76@ = Char.Create(PedType.Mission2, 31, -36.6941, 2346.5, 23.125)
Char.SetHeading(76@, 259.6481)
Char.SetAnimGroup(76@, "SEXYWOMAN")
Char.SetIsTargetPriority(76@, True)
Char.Delete(75@)
Char.MarkAsNoLongerNeeded(75@)
75@ = Char.Create(PedType.Mission2, 33, -36.1799, 2348.412, 23.125)
Char.SetHeading(75@, 265.8938)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO4_28267
Char.WarpFromCarToCoord($scplayer, -31.7411, 2342.68, 23.125)
goto @CASINO4_28287

:CASINO4_28267
Char.SetCoordinates($scplayer, -31.7411, 2342.68, 23.125)

:CASINO4_28287
Char.SetHeading($scplayer, 37.553)
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_28391
Char.ClearTasks(72@)
if 
  Char.IsInAnyCar(72@)
goto_if_false @CASINO4_28361
Char.WarpFromCarToCoord(72@, -30.0669, 2344.002, 23.125)
goto @CASINO4_28381

:CASINO4_28361
Char.SetCoordinates(72@, -30.0669, 2344.002, 23.125)

:CASINO4_28381
Char.SetHeading(72@, 19.556)

:CASINO4_28391
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_28485
Char.ClearTasks(71@)
if 
  Char.IsInAnyCar(71@)
goto_if_false @CASINO4_28455
Char.WarpFromCarToCoord(71@, -33.0398, 2342.354, 23.125)
goto @CASINO4_28475

:CASINO4_28455
Char.SetCoordinates(71@, -33.0398, 2342.354, 23.125)

:CASINO4_28475
Char.SetHeading(71@, 37.553)

:CASINO4_28485
if and
  not Char.IsDead(72@)
  not Char.IsDead(71@)
goto_if_false @CASINO4_28520
Task.ToggleDuck(71@, True)
Task.ToggleDuck(72@, True)

:CASINO4_28520
34@, 35@, 36@ = Char.GetCoordinates($scplayer)
if and
  not Char.IsDead(73@)
  not Car.IsDead(79@)
goto_if_false @CASINO4_28679
Car.FreezePosition(79@, False)
83@ = Sequence.Open()
Task.ShootAtCoord(-1, 34@, 35@, 36@, 5000)
Task.GoStraightToCoord(-1, -46.3592, 2346.977, 23.1348, MoveState.Run, 10000)
Task.EnterCarAsPassenger(-1, 79@, 3000, 0)
Task.DriveBy(-1, $scplayer, -1, 0.0, 0.0, 0.0, 10.0, DriveByType.Ai, True, 50)
Sequence.Close(83@)
Char.PerformSequence(73@, 83@)
Sequence.Clear(83@)
goto @CASINO4_28724

:CASINO4_28679
if or
  Car.IsDead(79@)
  Char.IsDead(76@)
goto_if_false @CASINO4_28724
if 
  not Char.IsDead(73@)
goto_if_false @CASINO4_28724
Task.KillCharOnFoot(73@, $scplayer)

:CASINO4_28724
if and
  not Char.IsDead(74@)
  not Car.IsDead(78@)
goto_if_false @CASINO4_28869
Car.FreezePosition(78@, False)
84@ = Sequence.Open()
Task.ShootAtCoord(-1, 34@, 35@, 36@, 5000)
Task.GoStraightToCoord(-1, -44.9959, 2346.381, 23.1348, MoveState.Run, 10000)
Task.EnterCarAsPassenger(-1, 78@, 3000, 0)
Task.DriveBy(-1, $scplayer, -1, 0.0, 0.0, 0.0, 10.0, DriveByType.Ai, True, 50)
Sequence.Close(84@)
Char.PerformSequence(74@, 84@)
Sequence.Clear(84@)
goto @CASINO4_28914

:CASINO4_28869
if or
  Car.IsDead(78@)
  Char.IsDead(75@)
goto_if_false @CASINO4_28914
if 
  not Char.IsDead(74@)
goto_if_false @CASINO4_28914
Task.KillCharOnFoot(74@, $scplayer)

:CASINO4_28914
if and
  not Char.IsDead(75@)
  not Car.IsDead(78@)
goto_if_false @CASINO4_29022
Car.FreezePosition(78@, False)
86@ = Sequence.Open()
Task.ShootAtCoord(-1, 34@, 35@, 36@, 5000)
Task.GoStraightToCoord(-1, -44.9959, 2346.381, 23.1348, MoveState.Run, 10000)
Task.EnterCarAsDriver(-1, 78@, 3000)
Sequence.Close(86@)
Char.PerformSequence(75@, 86@)
Sequence.Clear(86@)
goto @CASINO4_29051

:CASINO4_29022
if and
  Car.IsDead(78@)
  not Char.IsDead(75@)
goto_if_false @CASINO4_29051
Task.KillCharOnFoot(75@, $scplayer)

:CASINO4_29051
if and
  not Char.IsDead(76@)
  not Car.IsDead(79@)
goto_if_false @CASINO4_29159
Car.FreezePosition(79@, False)
85@ = Sequence.Open()
Task.ShootAtCoord(-1, 34@, 35@, 36@, 5000)
Task.GoStraightToCoord(-1, -46.3592, 2346.977, 23.1348, MoveState.Run, 10000)
Task.EnterCarAsDriver(-1, 79@, 3000)
Sequence.Close(85@)
Char.PerformSequence(76@, 85@)
Sequence.Clear(85@)
goto @CASINO4_29188

:CASINO4_29159
if and
  Car.IsDead(79@)
  not Char.IsDead(76@)
goto_if_false @CASINO4_29188
Task.KillCharOnFoot(76@, $scplayer)

:CASINO4_29188
Game.SetPoliceIgnorePlayer($player1, False)
if 
  not Car.IsDead(78@)
goto_if_false @CASINO4_29225
Car.SetCanBeDamaged(78@, True)
Car.SetOnlyDamagedByPlayer(78@, True)

:CASINO4_29225
if 
  not Car.IsDead(79@)
goto_if_false @CASINO4_29255
Car.SetCanBeDamaged(79@, True)
Car.SetOnlyDamagedByPlayer(79@, True)

:CASINO4_29255
if and
  not Char.IsDead(71@)
  not Char.IsDead(72@)
goto_if_false @CASINO4_29306
Char.ClearTasks($scplayer)
Char.ClearTasks(72@)
Char.ClearTasks(71@)
Char.ClearLookAt($scplayer)
Char.ClearLookAt(72@)
Char.ClearLookAt(71@)

:CASINO4_29306
Streaming.RemoveAnimation("SMOKING")
Streaming.RemoveAnimation("MISC")
DecisionMakerChar.ClearEventResponse(38@, 49)
DecisionMakerChar.ClearEventResponse(38@, 15)
DecisionMakerChar.AddEventResponse(38@, 49, 311, 100.0, 100.0, 100.0, 100.0, True, True)
DecisionMakerChar.AddEventResponse(38@, 15, 415, 100.0, 100.0, 100.0, 100.0, True, True)
DecisionMakerGroup.ClearEventResponse(39@, 9)
DecisionMakerGroup.AddEventResponse(39@, 15, 1510, 100.0, 100.0, 100.0, 100.0, True, True)
if and
  not Char.IsDead(72@)
  not Char.IsDead(71@)
goto_if_false @CASINO4_29523
if 
  not Char.IsGroupMember(72@, $Players_Group)
goto_if_false @CASINO4_29496
Group.SetMember($Players_Group, 72@)

:CASINO4_29496
if 
  not Char.IsGroupMember(71@, $Players_Group)
goto_if_false @CASINO4_29523
Group.SetMember($Players_Group, 71@)

:CASINO4_29523
set_lvar_int_to_lvar_int 113@ = 73@
set_lvar_int_to_lvar_int 114@ = 76@
set_lvar_int_to_lvar_int 115@ = 75@
set_lvar_int_to_lvar_int 116@ = 74@
272@ = 0
273@ = 0
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
if 
  46@ == 0
goto_if_false @CASINO4_29643
69@ = Blip.AddForCoord(2175.21, 1679.37, 9.85)
Text.PrintNow('CAS4_06', 8000, 1)
46@ = 1

:CASINO4_29643
51@ = 1
132@ = 9999999

:CASINO4_29660
if 
  51@ > 0
goto_if_false @CASINO4_33651
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_29916
if 
  120@ == 1
goto_if_false @CASINO4_29846
if 
  not Char.LocateAnyMeansChar2D($scplayer, 71@, 20.0, 20.0, False)
goto_if_false @CASINO4_29839
Char.RemoveFromGroup(71@)
if 
  not Char.IsInAnyCar(71@)
goto_if_false @CASINO4_29781
Task.Tired(71@, 60000)
goto @CASINO4_29817

:CASINO4_29781
80@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.Tired(-1, 60000)
Sequence.Close(80@)
Char.PerformSequence(71@, 80@)
Sequence.Clear(80@)

:CASINO4_29817
68@ = Blip.AddForChar(71@)
Blip.SetAsFriendly(68@, True)
120@ = 0

:CASINO4_29839
goto @CASINO4_29916

:CASINO4_29846
if 
  Char.LocateAnyMeansChar2D($scplayer, 71@, 5.0, 5.0, False)
goto_if_false @CASINO4_29916
if 
  not Char.IsGroupMember(71@, $Players_Group)
goto_if_false @CASINO4_29904
Group.SetMember($Players_Group, 71@)

:CASINO4_29904
Blip.Remove(68@)
120@ = 1

:CASINO4_29916
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_30154
if 
  119@ == 1
goto_if_false @CASINO4_30084
if 
  not Char.LocateAnyMeansChar2D($scplayer, 72@, 20.0, 20.0, False)
goto_if_false @CASINO4_30077
Char.RemoveFromGroup(72@)
if 
  not Char.IsInAnyCar(72@)
goto_if_false @CASINO4_30019
Task.Tired(72@, 60000)
goto @CASINO4_30055

:CASINO4_30019
80@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.Tired(-1, 60000)
Sequence.Close(80@)
Char.PerformSequence(72@, 80@)
Sequence.Clear(80@)

:CASINO4_30055
67@ = Blip.AddForChar(72@)
Blip.SetAsFriendly(67@, True)
119@ = 0

:CASINO4_30077
goto @CASINO4_30154

:CASINO4_30084
if 
  Char.LocateAnyMeansChar2D($scplayer, 72@, 5.0, 5.0, False)
goto_if_false @CASINO4_30154
if 
  not Char.IsGroupMember(72@, $Players_Group)
goto_if_false @CASINO4_30142
Group.SetMember($Players_Group, 72@)

:CASINO4_30142
Blip.Remove(67@)
119@ = 1

:CASINO4_30154
if and
  119@ == 1
  120@ == 1
goto_if_false @CASINO4_32764
if 
  269@ == 0
goto_if_false @CASINO4_32687
if 
  252@ <> 0
goto_if_false @CASINO4_30536
if 
  255@ == 0
goto_if_false @CASINO4_30261
if 
  Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_30254
Audio.ClearMissionAudio(254@)

:CASINO4_30254
255@ = 1

:CASINO4_30261
if 
  255@ == 1
goto_if_false @CASINO4_30298
Audio.LoadMissionAudio(253@, 138@(252@,114i))
255@ = 2

:CASINO4_30298
if 
  255@ == 2
goto_if_false @CASINO4_30358
if 
  Audio.HasMissionAudioLoaded(253@)
goto_if_false @CASINO4_30358
Audio.PlayMissionAudio(253@)
Text.PrintNow($c2_cp(252@,114s), 10000, 1)
255@ = 3

:CASINO4_30358
if 
  255@ == 3
goto_if_false @CASINO4_30536
if 
  Audio.HasMissionAudioFinished(253@)
goto_if_false @CASINO4_30475
Text.ClearThisPrint($c2_cp(252@,114s))
if 
  253@ == 1
goto_if_false @CASINO4_30440
253@ = 2
254@ = 1
goto @CASINO4_30454

:CASINO4_30440
253@ = 1
254@ = 2

:CASINO4_30454
252@ = 0
255@ = 0
goto @CASINO4_30536

:CASINO4_30475
if 
  not Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_30536
if 
  110 > 252@
goto_if_false @CASINO4_30536
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
Audio.LoadMissionAudio(254@, 138@(261@,114i))

:CASINO4_30536
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_32687
if 
  267@ == 0
goto_if_false @CASINO4_31607
if 
  271@ == 0
goto_if_false @CASINO4_30862
switch_start 270@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASINO4_30776 {caseNum1} 0 {caseLabel1} @CASINO4_30648 {caseNum2} 1 {caseLabel2} @CASINO4_30692 {caseNum3} -1 {caseLabel3} @CASINO4_30855 {caseNum4} -1 {caseLabel4} @CASINO4_30855 {caseNum5} -1 {caseLabel5} @CASINO4_30855 {caseNum6} -1 {caseLabel6} @CASINO4_30855 {caseNum7} -1 {caseLabel7} @CASINO4_30855

:CASINO4_30648
if 
  255@ == 0
goto_if_false @CASINO4_30685
252@ = 36
270@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_30685
goto @CASINO4_30855

:CASINO4_30692
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_30769
if 
  255@ == 0
goto_if_false @CASINO4_30769
252@ = 37
270@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_30769
goto @CASINO4_30855

:CASINO4_30776
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_30848
if 
  255@ == 0
goto_if_false @CASINO4_30848
271@ = 1
TIMERB = 0

:CASINO4_30848
goto @CASINO4_30855

:CASINO4_30855
goto @CASINO4_31600

:CASINO4_30862
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_31600
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO4_31600
if 
  TIMERB > 10000
goto_if_false @CASINO4_31600
switch_start 266@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @CASINO4_31479 {caseNum1} 0 {caseLabel1} @CASINO4_30973 {caseNum2} 1 {caseLabel2} @CASINO4_31059 {caseNum3} 2 {caseLabel3} @CASINO4_31143 {caseNum4} 3 {caseLabel4} @CASINO4_31227 {caseNum5} 4 {caseLabel5} @CASINO4_31311 {caseNum6} 5 {caseLabel6} @CASINO4_31395 {caseNum7} -1 {caseLabel7} @CASINO4_31600

:CASINO4_30973
if 
  255@ == 0
goto_if_false @CASINO4_31052
if and
  not Char.IsDead(71@)
  not Car.IsDead(77@)
goto_if_false @CASINO4_31033
Char.ShutUpForScriptedSpeech(72@, True)
Char.ShutUpForScriptedSpeech(71@, True)
Char.ShutUpForScriptedSpeech($scplayer, True)

:CASINO4_31033
252@ = 46
266@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_31052
goto @CASINO4_31600

:CASINO4_31059
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31136
if 
  255@ == 0
goto_if_false @CASINO4_31136
252@ = 47
266@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_31136
goto @CASINO4_31600

:CASINO4_31143
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31220
if 
  255@ == 0
goto_if_false @CASINO4_31220
252@ = 48
266@ = 3
260@ = Clock.GetGameTimer()

:CASINO4_31220
goto @CASINO4_31600

:CASINO4_31227
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31304
if 
  255@ == 0
goto_if_false @CASINO4_31304
252@ = 49
266@ = 4
260@ = Clock.GetGameTimer()

:CASINO4_31304
goto @CASINO4_31600

:CASINO4_31311
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31388
if 
  255@ == 0
goto_if_false @CASINO4_31388
252@ = 92
266@ = 5
260@ = Clock.GetGameTimer()

:CASINO4_31388
goto @CASINO4_31600

:CASINO4_31395
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31472
if 
  255@ == 0
goto_if_false @CASINO4_31472
252@ = 93
266@ = 6
260@ = Clock.GetGameTimer()

:CASINO4_31472
goto @CASINO4_31600

:CASINO4_31479
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31593
if 
  255@ == 0
goto_if_false @CASINO4_31593
if and
  not Char.IsDead(71@)
  not Car.IsDead(77@)
goto_if_false @CASINO4_31579
Char.ShutUpForScriptedSpeech(72@, False)
Char.ShutUpForScriptedSpeech(71@, False)
Char.ShutUpForScriptedSpeech($scplayer, False)

:CASINO4_31579
267@ = 1
TIMERB = 0

:CASINO4_31593
goto @CASINO4_31600

:CASINO4_31600
goto @CASINO4_32687

:CASINO4_31607
if 
  269@ == 0
goto_if_false @CASINO4_32687
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_32687
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO4_32687
if 
  TIMERB > 10000
goto_if_false @CASINO4_32687
switch_start 268@ {numCases} 10 {hasDefaultCase} 1 {defaultLabel} @CASINO4_32573 {caseNum1} 0 {caseLabel1} @CASINO4_31801 {caseNum2} 1 {caseLabel2} @CASINO4_31887 {caseNum3} 2 {caseLabel3} @CASINO4_31971 {caseNum4} 3 {caseLabel4} @CASINO4_31985 {caseNum5} 4 {caseLabel5} @CASINO4_32069 {caseNum6} 5 {caseLabel6} @CASINO4_32153 {caseNum7} 6 {caseLabel7} @CASINO4_32237
switch_continued 7 {caseLabel1} @CASINO4_32321 {caseNum2} 8 {caseLabel2} @CASINO4_32405 {caseNum3} 9 {caseLabel3} @CASINO4_32489 {caseNum4} -1 {caseLabel4} @CASINO4_32687 {caseNum5} -1 {caseLabel5} @CASINO4_32687 {caseNum6} -1 {caseLabel6} @CASINO4_32687 {caseNum7} -1 {caseLabel7} @CASINO4_32687 {caseNum8} -1 {caseLabel8} @CASINO4_32687 {caseNum9} -1 {caseLabel9} @CASINO4_32687

:CASINO4_31801
if 
  255@ == 0
goto_if_false @CASINO4_31880
if and
  not Char.IsDead(71@)
  not Car.IsDead(77@)
goto_if_false @CASINO4_31861
Char.ShutUpForScriptedSpeech(72@, True)
Char.ShutUpForScriptedSpeech(71@, True)
Char.ShutUpForScriptedSpeech($scplayer, True)

:CASINO4_31861
252@ = 82
268@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_31880
goto @CASINO4_32687

:CASINO4_31887
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31964
if 
  255@ == 0
goto_if_false @CASINO4_31964
252@ = 83
268@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_31964
goto @CASINO4_32687

:CASINO4_31971
268@ = 3
goto @CASINO4_32687

:CASINO4_31985
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32062
if 
  255@ == 0
goto_if_false @CASINO4_32062
252@ = 85
268@ = 4
260@ = Clock.GetGameTimer()

:CASINO4_32062
goto @CASINO4_32687

:CASINO4_32069
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32146
if 
  255@ == 0
goto_if_false @CASINO4_32146
252@ = 86
268@ = 5
260@ = Clock.GetGameTimer()

:CASINO4_32146
goto @CASINO4_32687

:CASINO4_32153
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32230
if 
  255@ == 0
goto_if_false @CASINO4_32230
252@ = 87
268@ = 6
260@ = Clock.GetGameTimer()

:CASINO4_32230
goto @CASINO4_32687

:CASINO4_32237
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32314
if 
  255@ == 0
goto_if_false @CASINO4_32314
252@ = 88
268@ = 7
260@ = Clock.GetGameTimer()

:CASINO4_32314
goto @CASINO4_32687

:CASINO4_32321
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32398
if 
  255@ == 0
goto_if_false @CASINO4_32398
252@ = 89
268@ = 8
260@ = Clock.GetGameTimer()

:CASINO4_32398
goto @CASINO4_32687

:CASINO4_32405
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32482
if 
  255@ == 0
goto_if_false @CASINO4_32482
252@ = 90
268@ = 9
260@ = Clock.GetGameTimer()

:CASINO4_32482
goto @CASINO4_32687

:CASINO4_32489
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32566
if 
  255@ == 0
goto_if_false @CASINO4_32566
252@ = 91
268@ = 10
260@ = Clock.GetGameTimer()

:CASINO4_32566
goto @CASINO4_32687

:CASINO4_32573
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32680
if 
  255@ == 0
goto_if_false @CASINO4_32680
if and
  not Char.IsDead(71@)
  not Car.IsDead(77@)
goto_if_false @CASINO4_32673
Char.ShutUpForScriptedSpeech(72@, False)
Char.ShutUpForScriptedSpeech(71@, False)
Char.ShutUpForScriptedSpeech($scplayer, False)

:CASINO4_32673
269@ = 1

:CASINO4_32680
goto @CASINO4_32687

:CASINO4_32687
if 
  46@ == 0
goto_if_false @CASINO4_32757
272@ = 0
69@ = Blip.AddForCoord(2175.21, 1679.37, 9.85)
Text.ClearPrints
Text.Print('CAS4_06', 8000, 1)
46@ = 1

:CASINO4_32757
goto @CASINO4_33651

:CASINO4_32764
if 
  46@ == 1
goto_if_false @CASINO4_32794
Blip.Remove(69@)
46@ = 0

:CASINO4_32794
if and
  119@ == 0
  120@ == 0
goto_if_false @CASINO4_32862
if 
  132@ <> 0
goto_if_false @CASINO4_32862
Text.ClearPrints
Text.Print('CAS4_37', 7000, 1)
132@ = 0

:CASINO4_32862
if and
  119@ == 1
  120@ == 0
goto_if_false @CASINO4_32930
if 
  132@ <> 1
goto_if_false @CASINO4_32930
Text.ClearPrints
Text.Print('CAS4_03', 7000, 1)
132@ = 1

:CASINO4_32930
if and
  119@ == 0
  120@ == 1
goto_if_false @CASINO4_32998
if 
  132@ <> 2
goto_if_false @CASINO4_32998
Text.ClearPrints
Text.Print('CAS4_02', 7000, 1)
132@ = 2

:CASINO4_32998
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_33651
if 
  272@ == 0
goto_if_false @CASINO4_33651
if 
  252@ <> 0
goto_if_false @CASINO4_33368
if 
  255@ == 0
goto_if_false @CASINO4_33093
if 
  Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_33086
Audio.ClearMissionAudio(254@)

:CASINO4_33086
255@ = 1

:CASINO4_33093
if 
  255@ == 1
goto_if_false @CASINO4_33130
Audio.LoadMissionAudio(253@, 138@(252@,114i))
255@ = 2

:CASINO4_33130
if 
  255@ == 2
goto_if_false @CASINO4_33190
if 
  Audio.HasMissionAudioLoaded(253@)
goto_if_false @CASINO4_33190
Audio.PlayMissionAudio(253@)
Text.PrintNow($c2_cp(252@,114s), 10000, 1)
255@ = 3

:CASINO4_33190
if 
  255@ == 3
goto_if_false @CASINO4_33368
if 
  Audio.HasMissionAudioFinished(253@)
goto_if_false @CASINO4_33307
Text.ClearThisPrint($c2_cp(252@,114s))
if 
  253@ == 1
goto_if_false @CASINO4_33272
253@ = 2
254@ = 1
goto @CASINO4_33286

:CASINO4_33272
253@ = 1
254@ = 2

:CASINO4_33286
252@ = 0
255@ = 0
goto @CASINO4_33368

:CASINO4_33307
if 
  not Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_33368
if 
  110 > 252@
goto_if_false @CASINO4_33368
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
Audio.LoadMissionAudio(254@, 138@(261@,114i))

:CASINO4_33368
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO4_33651
switch_start 273@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASINO4_33572 {caseNum1} 0 {caseLabel1} @CASINO4_33444 {caseNum2} 1 {caseLabel2} @CASINO4_33488 {caseNum3} -1 {caseLabel3} @CASINO4_33651 {caseNum4} -1 {caseLabel4} @CASINO4_33651 {caseNum5} -1 {caseLabel5} @CASINO4_33651 {caseNum6} -1 {caseLabel6} @CASINO4_33651 {caseNum7} -1 {caseLabel7} @CASINO4_33651

:CASINO4_33444
if 
  255@ == 0
goto_if_false @CASINO4_33481
252@ = 40
273@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_33481
goto @CASINO4_33651

:CASINO4_33488
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_33565
if 
  255@ == 0
goto_if_false @CASINO4_33565
252@ = 41
273@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_33565
goto @CASINO4_33651

:CASINO4_33572
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_33644
if 
  255@ == 0
goto_if_false @CASINO4_33644
273@ = 0
272@ = 1

:CASINO4_33644
goto @CASINO4_33651

:CASINO4_33651
if 
  51@ == 1
goto_if_false @CASINO4_34178
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO4_33693
77@ = Char.StoreCarIsIn($scplayer)

:CASINO4_33693
if and
  not Char.IsDead(73@)
  not Car.IsDead(79@)
goto_if_false @CASINO4_33747
if 
  Char.IsInCar(73@, 79@)
goto_if_false @CASINO4_33740
55@ = 1

:CASINO4_33740
goto @CASINO4_33754

:CASINO4_33747
55@ = 1

:CASINO4_33754
if and
  55@ == 1
  64@ == 0
goto_if_false @CASINO4_33887
if and
  not Char.IsDead(76@)
  not Car.IsDead(79@)
  not Car.IsDead(77@)
goto_if_false @CASINO4_33887
87@ = Sequence.Open()
Task.CarDriveToCoord(-1, 79@, -44.86, 2345.23, 23.16, 30.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.CarMission(-1, 79@, 77@, CarMission.RamPlayerClose, 35.0, DrivingMode.AvoidCars)
Sequence.Close(87@)
Char.PerformSequence(76@, 87@)
Sequence.Clear(87@)
64@ = 1

:CASINO4_33887
if and
  not Char.IsDead(74@)
  not Car.IsDead(78@)
goto_if_false @CASINO4_33941
if 
  Char.IsInCar(74@, 78@)
goto_if_false @CASINO4_33934
54@ = 1

:CASINO4_33934
goto @CASINO4_33948

:CASINO4_33941
54@ = 1

:CASINO4_33948
if and
  54@ == 1
  65@ == 0
goto_if_false @CASINO4_34081
if and
  not Char.IsDead(75@)
  not Car.IsDead(78@)
  not Car.IsDead(77@)
goto_if_false @CASINO4_34081
88@ = Sequence.Open()
Task.CarDriveToCoord(-1, 78@, -50.86, 2349.23, 23.16, 30.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.CarMission(-1, 78@, 77@, CarMission.RamPlayerClose, 35.0, DrivingMode.AvoidCars)
Sequence.Close(88@)
Char.PerformSequence(75@, 88@)
Sequence.Clear(88@)
65@ = 1

:CASINO4_34081
if and
  54@ == 1
  55@ == 1
goto_if_false @CASINO4_34178
if and
  not Char.IsDead(71@)
  not Char.IsDead(72@)
goto_if_false @CASINO4_34157
Char.SetProofs(72@, False, False, False, False, True)
Char.SetProofs(71@, False, False, False, False, True)

:CASINO4_34157
DecisionMakerChar.ClearEventResponse(38@, 49)
DecisionMakerChar.ClearEventResponse(38@, 15)
51@ = 2

:CASINO4_34178
if and
  51@ == 2
  98@ == 0
goto_if_false @CASINO4_35557
if 
  Char.IsDead(76@)
goto_if_false @CASINO4_34233
61@ = 0
goto @CASINO4_34289

:CASINO4_34233
if 
  not Car.IsDead(79@)
goto_if_false @CASINO4_34289
if 
  Char.IsInCar(76@, 79@)
goto_if_false @CASINO4_34282
61@ = 1
goto @CASINO4_34289

:CASINO4_34282
61@ = 0

:CASINO4_34289
if 
  Char.IsDead(75@)
goto_if_false @CASINO4_34319
62@ = 0
goto @CASINO4_34389

:CASINO4_34319
if 
  not Car.IsDead(78@)
goto_if_false @CASINO4_34382
if 
  Char.IsInCar(75@, 78@)
goto_if_false @CASINO4_34368
62@ = 1
goto @CASINO4_34375

:CASINO4_34368
62@ = 0

:CASINO4_34375
goto @CASINO4_34389

:CASINO4_34382
62@ = 0

:CASINO4_34389
if 
  not Char.IsDead(73@)
goto_if_false @CASINO4_34563
if or
  Car.IsDead(79@)
  not Char.IsInAnyCar(73@)
  61@ == 0
goto_if_false @CASINO4_34563
90@ = Char.GetScriptTaskStatus(73@, 1560)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34563
90@ = Char.GetScriptTaskStatus(73@, 1506)
if and
  not is_int_lvar_equal_to_constant 90@ == 0
  not is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_34538
if 
  56@ == 0
goto_if_false @CASINO4_34531
Task.KillCharOnFoot(73@, $scplayer)
56@ = 1

:CASINO4_34531
goto @CASINO4_34563

:CASINO4_34538
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34563
56@ = 0

:CASINO4_34563
if 
  not Char.IsDead(76@)
goto_if_false @CASINO4_34732
if or
  Car.IsDead(79@)
  61@ == 0
goto_if_false @CASINO4_34732
90@ = Char.GetScriptTaskStatus(76@, 1560)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34732
90@ = Char.GetScriptTaskStatus(76@, 1506)
if and
  not is_int_lvar_equal_to_constant 90@ == 0
  not is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_34707
if 
  58@ == 0
goto_if_false @CASINO4_34700
Task.KillCharOnFoot(76@, $scplayer)
58@ = 1

:CASINO4_34700
goto @CASINO4_34732

:CASINO4_34707
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34732
58@ = 0

:CASINO4_34732
if 
  not Char.IsDead(74@)
goto_if_false @CASINO4_34906
if or
  Car.IsDead(78@)
  not Char.IsInAnyCar(74@)
  62@ == 0
goto_if_false @CASINO4_34906
90@ = Char.GetScriptTaskStatus(74@, 1560)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34906
90@ = Char.GetScriptTaskStatus(74@, 1506)
if and
  not is_int_lvar_equal_to_constant 90@ == 0
  not is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_34881
if 
  59@ == 0
goto_if_false @CASINO4_34874
Task.KillCharOnFoot(74@, $scplayer)
59@ = 1

:CASINO4_34874
goto @CASINO4_34906

:CASINO4_34881
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34906
59@ = 0

:CASINO4_34906
if 
  not Char.IsDead(75@)
goto_if_false @CASINO4_35075
if or
  Car.IsDead(78@)
  62@ == 0
goto_if_false @CASINO4_35075
90@ = Char.GetScriptTaskStatus(75@, 1560)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_35075
90@ = Char.GetScriptTaskStatus(75@, 1506)
if and
  not is_int_lvar_equal_to_constant 90@ == 0
  not is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_35050
if 
  57@ == 0
goto_if_false @CASINO4_35043
Task.KillCharOnFoot(75@, $scplayer)
57@ = 1

:CASINO4_35043
goto @CASINO4_35075

:CASINO4_35050
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_35075
57@ = 0

:CASINO4_35075
if and
  not Char.IsDead(76@)
  not Car.IsDead(79@)
goto_if_false @CASINO4_35316
if 
  Char.IsInCar(76@, 79@)
goto_if_false @CASINO4_35316
Car.SetCruiseSpeed(79@, 35.0)
if and
  not Char.LocateAnyMeansChar2D($scplayer, 76@, 100.0, 100.0, False)
  not Car.IsOnScreen(79@)
goto_if_false @CASINO4_35316
if 
  not Char.IsInFlyingVehicle($scplayer)
goto_if_false @CASINO4_35316
91@, 92@, 93@ = Char.GetCoordinates($scplayer)
95@, 96@, 97@ = Char.GetOffsetInWorldCoords($scplayer, -10.0, -10.0, 0.0)
if 
  not World.IsPointObscuredByAMissionEntity(95@, 96@, 97@, 4.0, 4.0, 3.0)
goto_if_false @CASINO4_35316
if 
  not Camera.IsPointOnScreen(95@, 96@, 97@, 4.0)
goto_if_false @CASINO4_35316
Car.SetCoordinates(79@, 95@, 96@, 97@)
Car.TurnToFaceCoord(79@, 91@, 92@)
Car.SetMission(79@, CarMission.RamPlayerClose)

:CASINO4_35316
if and
  not Char.IsDead(75@)
  not Car.IsDead(78@)
goto_if_false @CASINO4_35557
if 
  Char.IsInCar(75@, 78@)
goto_if_false @CASINO4_35557
Car.SetCruiseSpeed(78@, 35.0)
if and
  not Char.LocateAnyMeansChar2D($scplayer, 75@, 100.0, 100.0, False)
  not Car.IsOnScreen(78@)
goto_if_false @CASINO4_35557
if 
  not Char.IsInFlyingVehicle($scplayer)
goto_if_false @CASINO4_35557
91@, 92@, 93@ = Char.GetCoordinates($scplayer)
95@, 96@, 97@ = Char.GetOffsetInWorldCoords($scplayer, -13.0, -13.0, 0.0)
if 
  not World.IsPointObscuredByAMissionEntity(95@, 96@, 97@, 4.0, 4.0, 3.0)
goto_if_false @CASINO4_35557
if 
  not Camera.IsPointOnScreen(95@, 96@, 97@, 4.0)
goto_if_false @CASINO4_35557
Car.SetCoordinates(78@, 95@, 96@, 97@)
Car.TurnToFaceCoord(78@, 91@, 92@)
Car.SetMission(78@, CarMission.RamPlayerClose)

:CASINO4_35557
99@ = 0
100@ = 0

:CASINO4_35571
if 
  4 > 99@
goto_if_false @CASINO4_35659
if 
  Char.IsDead(113@(99@,4i))
goto_if_false @CASINO4_35627
101@(99@,4i) = 1
goto @CASINO4_35645

:CASINO4_35627
101@(99@,4i) = 0
100@ += 1

:CASINO4_35645
99@ += 1
goto @CASINO4_35571

:CASINO4_35659
if or
  46@ == 1
  45@ == 1
goto_if_false @CASINO4_38631
if and
  not Char.IsDead(72@)
  not Char.IsDead(71@)
goto_if_false @CASINO4_38631
if 
  45@ == 0
goto_if_false @CASINO4_35967
if and
  100@ > 0
  98@ == 0
goto_if_false @CASINO4_35824
if 
  Char.LocateAnyMeans3D($scplayer, 2175.21, 1679.37, 9.85, 4.0, 4.0, 2.0, True)
goto_if_false @CASINO4_35817
gosub @CASINO4_39181
98@ = 1
45@ = 1

:CASINO4_35817
goto @CASINO4_35960

:CASINO4_35824
if and
  Char.LocateAnyMeans3D($scplayer, 2175.21, 1679.37, 9.85, 4.0, 4.0, 2.0, True)
  Char.LocateAnyMeans3D(72@, 2175.21, 1679.37, 9.85, 6.0, 6.0, 2.0, False)
  Char.LocateAnyMeans3D(71@, 2175.21, 1679.37, 9.85, 6.0, 6.0, 2.0, False)
goto_if_false @CASINO4_35960
Blip.Remove(69@)
45@ = 1
Text.ClearPrints

:CASINO4_35960
goto @CASINO4_38631

:CASINO4_35967
if and
  not Char.IsDead(71@)
  not Char.IsDead(72@)
goto_if_false @CASINO4_38631
Text.ClearPrints
Player.SetControl($player1, False)
Camera.DoFade(1500, Fade.Out)

:CASINO4_36004
if 
  Camera.GetFadingStatus
goto_if_false @CASINO4_36028
wait 0
goto @CASINO4_36004

:CASINO4_36028
Char.MarkAsNoLongerNeeded(75@)
Char.MarkAsNoLongerNeeded(73@)
Char.MarkAsNoLongerNeeded(76@)
Char.MarkAsNoLongerNeeded(74@)
Car.MarkAsNoLongerNeeded(79@)
Car.MarkAsNoLongerNeeded(78@)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2188.26, 1678.0, 11.19, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2153.54, 1692.94, 12.04, SwitchType.JumpCut)
if and
  not Char.IsDead(71@)
  not Char.IsDead(72@)
goto_if_false @CASINO4_36470
if 
  Char.IsInAnyCar(71@)
goto_if_false @CASINO4_36177
Char.WarpFromCarToCoord(71@, 2179.708, 1680.568, 10.0469)
goto @CASINO4_36197

:CASINO4_36177
Char.SetCoordinates(71@, 2179.708, 1680.568, 10.0469)

:CASINO4_36197
Char.SetHeading(71@, 266.3517)
if 
  Char.IsInAnyCar(72@)
goto_if_false @CASINO4_36250
Char.WarpFromCarToCoord(72@, 2179.708, 1677.568, 10.0469)
goto @CASINO4_36270

:CASINO4_36250
Char.SetCoordinates(72@, 2179.708, 1677.568, 10.0469)

:CASINO4_36270
Char.SetHeading(72@, 266.3517)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO4_36323
Char.WarpFromCarToCoord($scplayer, 2179.759, 1678.957, 10.0469)
goto @CASINO4_36343

:CASINO4_36323
Char.SetCoordinates($scplayer, 2179.759, 1678.957, 10.0469)

:CASINO4_36343
Char.SetHeading($scplayer, 269.249)
DecisionMaker.Remove(38@)
38@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.ClearEventResponse(38@, 13)
Char.SetDecisionMaker(71@, 38@)
Char.SetDecisionMaker(72@, 38@)
Task.GoStraightToCoord($scplayer, 2187.0, 1680.0, 11.4, MoveState.Walk, -1)
Char.RemoveFromGroup(71@)
Task.GoStraightToCoord(71@, 2187.0, 1680.0, 11.4, MoveState.Walk, -1)
Char.RemoveFromGroup(72@)
Task.GoStraightToCoord(72@, 2187.0, 1680.0, 11.4, MoveState.Walk, -1)

:CASINO4_36470
Camera.DoFade(1000, Fade.In)

:CASINO4_36477
if 
  Camera.GetFadingStatus
goto_if_false @CASINO4_36501
wait 0
goto @CASINO4_36477

:CASINO4_36501
TIMERA = 0
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0

:CASINO4_36578
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_37175
if 
  252@ <> 0
goto_if_false @CASINO4_36939
if 
  255@ == 0
goto_if_false @CASINO4_36664
if 
  Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_36657
Audio.ClearMissionAudio(254@)

:CASINO4_36657
255@ = 1

:CASINO4_36664
if 
  255@ == 1
goto_if_false @CASINO4_36701
Audio.LoadMissionAudio(253@, 138@(252@,114i))
255@ = 2

:CASINO4_36701
if 
  255@ == 2
goto_if_false @CASINO4_36761
if 
  Audio.HasMissionAudioLoaded(253@)
goto_if_false @CASINO4_36761
Audio.PlayMissionAudio(253@)
Text.PrintNow($c2_cp(252@,114s), 10000, 1)
255@ = 3

:CASINO4_36761
if 
  255@ == 3
goto_if_false @CASINO4_36939
if 
  Audio.HasMissionAudioFinished(253@)
goto_if_false @CASINO4_36878
Text.ClearThisPrint($c2_cp(252@,114s))
if 
  253@ == 1
goto_if_false @CASINO4_36843
253@ = 2
254@ = 1
goto @CASINO4_36857

:CASINO4_36843
253@ = 1
254@ = 2

:CASINO4_36857
252@ = 0
255@ = 0
goto @CASINO4_36939

:CASINO4_36878
if 
  not Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_36939
if 
  110 > 252@
goto_if_false @CASINO4_36939
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
Audio.LoadMissionAudio(254@, 138@(261@,114i))

:CASINO4_36939
switch_start 257@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @CASINO4_37075 {caseNum1} 0 {caseLabel1} @CASINO4_37002 {caseNum2} -1 {caseLabel2} @CASINO4_37168 {caseNum3} -1 {caseLabel3} @CASINO4_37168 {caseNum4} -1 {caseLabel4} @CASINO4_37168 {caseNum5} -1 {caseLabel5} @CASINO4_37168 {caseNum6} -1 {caseLabel6} @CASINO4_37168 {caseNum7} -1 {caseLabel7} @CASINO4_37168

:CASINO4_37002
if 
  255@ == 0
goto_if_false @CASINO4_37068
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_37049
Char.StopFacialTalk(72@)
Char.StartFacialTalk(72@, 3000)

:CASINO4_37049
252@ = 99
257@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_37068
goto @CASINO4_37168

:CASINO4_37075
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_37161
if 
  255@ == 0
goto_if_false @CASINO4_37161
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_37154
Char.StopFacialTalk(72@)

:CASINO4_37154
256@ = 1

:CASINO4_37161
goto @CASINO4_37168

:CASINO4_37168
goto @CASINO4_36578

:CASINO4_37175
if 
  50@ == 0
goto_if_false @CASINO4_37338
wait 0
if 
  Char.LocateAnyMeans2D($scplayer, 2187.0, 1680.0, 2.0, 2.0, False)
goto_if_false @CASINO4_37242
50@ = 1

:CASINO4_37242
if 
  TIMERA > 15000
goto_if_false @CASINO4_37331
if 
  not World.IsPointObscuredByAMissionEntity(2195.35, 1680.058, 11.4, 1.5, 1.5, 3.0)
goto_if_false @CASINO4_37324
Char.SetCoordinates($scplayer, 2187.0, 1680.0, 11.4)

:CASINO4_37324
50@ = 1

:CASINO4_37331
goto @CASINO4_37175

:CASINO4_37338
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:CASINO4_37353
if 
  Camera.GetFadingStatus
goto_if_false @CASINO4_37377
wait 0
goto @CASINO4_37353

:CASINO4_37377
Weather.Force(WeatherType.SunnyVegas)
Car.MarkAsNoLongerNeeded(77@)
Car.MarkAsNoLongerNeeded(78@)
Car.MarkAsNoLongerNeeded(79@)
Car.MarkAsNoLongerNeeded(289@)
Char.RemoveElegantly(72@)
Char.RemoveElegantly(71@)
Char.MarkAsNoLongerNeeded(73@)
Char.MarkAsNoLongerNeeded(76@)
Char.MarkAsNoLongerNeeded(74@)
Char.MarkAsNoLongerNeeded(75@)
Streaming.MarkModelAsNoLongerNeeded(478)
Streaming.MarkModelAsNoLongerNeeded(31)
Streaming.MarkModelAsNoLongerNeeded(32)
Streaming.MarkModelAsNoLongerNeeded(33)
Streaming.MarkModelAsNoLongerNeeded(34)
Streaming.MarkModelAsNoLongerNeeded(34)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Player.MakeSafeForCutscene($player1)
Streaming.SetAreaVisible(2)
Cutscene.Load('CAS_4C')

:CASINO4_37489
if 
  not Cutscene.HasLoaded
goto_if_false @CASINO4_37513
wait 0
goto @CASINO4_37489

:CASINO4_37513
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CASINO4_37522
if 
  not Cutscene.HasFinished
goto_if_false @CASINO4_37546
wait 0
goto @CASINO4_37522

:CASINO4_37546
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CASINO4_37561
if 
  Camera.GetFadingStatus
goto_if_false @CASINO4_37585
wait 0
goto @CASINO4_37561

:CASINO4_37585
Streaming.SetAreaVisible(0)
Weather.Release
Camera.RestoreJumpcut
Char.Delete(72@)
Char.MarkAsNoLongerNeeded(72@)
Char.Delete(71@)
Char.MarkAsNoLongerNeeded(71@)
Char.SetCoordinates($scplayer, 2187.0, 1680.0, 10.106)
Char.SetHeading($scplayer, 90.0)
Streaming.LoadScene(2187.0, 1680.0, 10.106)
Streaming.RequestModel(330)

:CASINO4_37665
if 
  not Streaming.HasModelLoaded(330)
goto_if_false @CASINO4_37692
wait 0
goto @CASINO4_37665

:CASINO4_37692
Camera.SetFixedPosition(2186.524, 1679.363, 11.6094, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2186.983, 1680.246, 11.7063, SwitchType.JumpCut)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Camera.DoFade(1500, Fade.In)

:CASINO4_37763
if 
  Camera.GetFadingStatus
goto_if_false @CASINO4_37787
wait 0
goto @CASINO4_37763

:CASINO4_37787
Task.UseMobilePhone($scplayer, True)
wait 2000
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
skip_cutscene_start_internal @CASINO4_38542

:CASINO4_37876
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_38542
if 
  252@ <> 0
goto_if_false @CASINO4_38237
if 
  255@ == 0
goto_if_false @CASINO4_37962
if 
  Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_37955
Audio.ClearMissionAudio(254@)

:CASINO4_37955
255@ = 1

:CASINO4_37962
if 
  255@ == 1
goto_if_false @CASINO4_37999
Audio.LoadMissionAudio(253@, 138@(252@,114i))
255@ = 2

:CASINO4_37999
if 
  255@ == 2
goto_if_false @CASINO4_38059
if 
  Audio.HasMissionAudioLoaded(253@)
goto_if_false @CASINO4_38059
Audio.PlayMissionAudio(253@)
Text.PrintNow($c2_cp(252@,114s), 10000, 1)
255@ = 3

:CASINO4_38059
if 
  255@ == 3
goto_if_false @CASINO4_38237
if 
  Audio.HasMissionAudioFinished(253@)
goto_if_false @CASINO4_38176
Text.ClearThisPrint($c2_cp(252@,114s))
if 
  253@ == 1
goto_if_false @CASINO4_38141
253@ = 2
254@ = 1
goto @CASINO4_38155

:CASINO4_38141
253@ = 1
254@ = 2

:CASINO4_38155
252@ = 0
255@ = 0
goto @CASINO4_38237

:CASINO4_38176
if 
  not Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_38237
if 
  110 > 252@
goto_if_false @CASINO4_38237
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
Audio.LoadMissionAudio(254@, 138@(261@,114i))

:CASINO4_38237
switch_start 257@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @CASINO4_38458 {caseNum1} 0 {caseLabel1} @CASINO4_38300 {caseNum2} 1 {caseLabel2} @CASINO4_38357 {caseNum3} 2 {caseLabel3} @CASINO4_38414 {caseNum4} -1 {caseLabel4} @CASINO4_38535 {caseNum5} -1 {caseLabel5} @CASINO4_38535 {caseNum6} -1 {caseLabel6} @CASINO4_38535 {caseNum7} -1 {caseLabel7} @CASINO4_38535

:CASINO4_38300
if 
  255@ == 0
goto_if_false @CASINO4_38350
Char.StopFacialTalk($scplayer)
Char.StartFacialTalk($scplayer, 3000)
252@ = 100
257@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_38350
goto @CASINO4_38535

:CASINO4_38357
if 
  255@ == 0
goto_if_false @CASINO4_38407
252@ = 101
Char.StopFacialTalk($scplayer)
Char.StartFacialTalk($scplayer, 3000)
257@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_38407
goto @CASINO4_38535

:CASINO4_38414
if 
  255@ == 0
goto_if_false @CASINO4_38451
252@ = 102
257@ = 3
260@ = Clock.GetGameTimer()

:CASINO4_38451
goto @CASINO4_38535

:CASINO4_38458
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_38528
if 
  255@ == 0
goto_if_false @CASINO4_38528
Char.StopFacialTalk($scplayer)
256@ = 1

:CASINO4_38528
goto @CASINO4_38535

:CASINO4_38535
goto @CASINO4_37876

:CASINO4_38542
skip_cutscene_end 
Player.MakeGangReappear
Char.StopFacialTalk($scplayer)
Audio.ClearMissionAudio(253@)
Audio.ClearMissionAudio(254@)
90@ = Char.GetScriptTaskStatus($scplayer, 1833)
if 
  not is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_38597
Task.UseMobilePhone($scplayer, False)

:CASINO4_38597
Streaming.MarkModelAsNoLongerNeeded(330)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
goto @CASINO4_45880
49@ = 1

:CASINO4_38631
goto @CASINO4_4043

:CASINO4_38638
if and
  not Char.IsDead(71@)
  not Char.IsDead(72@)
goto_if_false @CASINO4_39179
89@ = Sequence.Open()
Task.GotoChar(-1, 71@, -1, 1.2)
Task.TurnCharToFaceChar(-1, 71@)
Task.PlayAnim(-1, "PNM_LOOP_A", "PAULNMAC", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PNM_ARGUE2_A", "PAULNMAC", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PNM_LOOP_A", "PAULNMAC", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PNM_ARGUE1_A", "PAULNMAC", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PNM_LOOP_A", "PAULNMAC", 4.0, False, False, False, False, -1)
Sequence.SetToRepeat(89@, True)
Sequence.Close(89@)
Char.PerformSequence(72@, 89@)
Sequence.Clear(89@)
89@ = Sequence.Open()
Task.GotoChar(-1, 72@, -1, 1.2)
Task.TurnCharToFaceChar(-1, 72@)
Task.PlayAnim(-1, "PNM_LOOP_B", "PAULNMAC", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PNM_ARGUE2_B", "PAULNMAC", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PNM_LOOP_B", "PAULNMAC", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PNM_ARGUE1_B", "PAULNMAC", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PNM_LOOP_B", "PAULNMAC", 4.0, False, False, False, False, -1)
Sequence.SetToRepeat(89@, True)
Sequence.Close(89@)
Char.PerformSequence(71@, 89@)
Sequence.Clear(89@)

:CASINO4_39179
return 

:CASINO4_39181
Group.SetDecisionMaker($Players_Group, -1)
Game.SetPoliceIgnorePlayer($player1, True)
Game.SetWantedMultiplier(0.0)
set_lvar_int_to_lvar_int 113@ = 73@
set_lvar_int_to_lvar_int 114@ = 76@
set_lvar_int_to_lvar_int 115@ = 75@
set_lvar_int_to_lvar_int 116@ = 74@
99@ = 0
100@ = 0

:CASINO4_39248
if 
  4 > 99@
goto_if_false @CASINO4_39356
if 
  Char.IsDead(113@(99@,4i))
goto_if_false @CASINO4_39304
101@(99@,4i) = 1
goto @CASINO4_39342

:CASINO4_39304
Char.ClearTasks(113@(99@,4i))
Char.SetCurrentWeapon(113@(99@,4i), WeaponType.Unarmed)
101@(99@,4i) = 0
100@ += 1

:CASINO4_39342
99@ += 1
goto @CASINO4_39248

:CASINO4_39356
if 
  100@ > 0
goto_if_false @CASINO4_45860
Blip.Remove(69@)
46@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
World.ClearArea(2165.612, 1680.619, 9.8047, 50.0, True)
Text.ClearPrints
Camera.SetFixedPosition(2171.91, 1669.08, 10.32, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2164.93, 1708.54, 16.85, SwitchType.JumpCut)
Streaming.RequestAnimation("MISC")
Streaming.RequestAnimation("GANGS")
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
if 
  not Car.IsDead(78@)
goto_if_false @CASINO4_39620
if 
  not Char.IsDead(75@)
goto_if_false @CASINO4_39620
if 
  Char.IsInCar(75@, 78@)
goto_if_false @CASINO4_39620
Car.SetCoordinates(78@, 2096.136, 1643.952, 9.7768)
Car.SetHeading(78@, 270.9418)
Task.CarDriveToCoord(75@, 78@, 2158.518, 1681.402, 9.8047, 30.0, DriveMode.Accurate, 0, DrivingMode.SlowDownForCars)

:CASINO4_39620
if 
  not Car.IsDead(79@)
goto_if_false @CASINO4_39735
if 
  not Char.IsDead(76@)
goto_if_false @CASINO4_39735
if 
  Char.IsInCar(76@, 79@)
goto_if_false @CASINO4_39735
Car.SetCoordinates(79@, 2080.934, 1643.649, 9.6757)
Car.SetHeading(79@, 271.0448)
Task.CarDriveToCoord(76@, 79@, 2154.275, 1664.964, 9.8125, 30.0, DriveMode.Accurate, 0, DrivingMode.SlowDownForCars)

:CASINO4_39735
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO4_40162
77@ = Char.StoreCarIsIn($scplayer)
if 
  not Car.IsDead(77@)
goto_if_false @CASINO4_40155
Car.SetMission(77@, CarMission.StopForever)
53@ = 0
TIMERB = 0

:CASINO4_39796
if 
  53@ == 0
goto_if_false @CASINO4_40155
if 
  63@ == 0
goto_if_false @CASINO4_40118
if 
  not Car.IsDead(77@)
goto_if_false @CASINO4_40118
if 
  Car.IsStopped(77@)
goto_if_false @CASINO4_40118
109@ = Sequence.Open()
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO4_39889
Task.LeaveAnyCar(-1)

:CASINO4_39889
Task.GoStraightToCoord(-1, 2171.0, 1671.0, 11.0, MoveState.Walk, -1)
Sequence.Close(109@)
Char.PerformSequence($scplayer, 109@)
Sequence.Clear(109@)
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_40017
Char.RemoveFromGroup(71@)
109@ = Sequence.Open()
if 
  Char.IsInAnyCar(71@)
goto_if_false @CASINO4_39976
Task.LeaveAnyCar(-1)

:CASINO4_39976
Task.GoStraightToCoord(-1, 2172.0, 1669.0, 10.8125, MoveState.Walk, -1)
Sequence.Close(109@)
Char.PerformSequence(71@, 109@)
Sequence.Clear(109@)

:CASINO4_40017
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_40104
Char.RemoveFromGroup(72@)
109@ = Sequence.Open()
if 
  Char.IsInAnyCar(72@)
goto_if_false @CASINO4_40063
Task.LeaveAnyCar(-1)

:CASINO4_40063
Task.GoStraightToCoord(-1, 2170.0, 1673.0, 10.8203, MoveState.Walk, -1)
Sequence.Close(109@)
Char.PerformSequence(72@, 109@)
Sequence.Clear(109@)

:CASINO4_40104
53@ = 1
63@ = 1

:CASINO4_40118
if 
  TIMERB > 20000
goto_if_false @CASINO4_40144
53@ = 1

:CASINO4_40144
wait 0
goto @CASINO4_39796

:CASINO4_40155
goto @CASINO4_40392

:CASINO4_40162
109@ = Sequence.Open()
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO4_40187
Task.LeaveAnyCar(-1)

:CASINO4_40187
Task.GoStraightToCoord(-1, 2165.612, 1680.619, 9.8047, MoveState.Walk, -1)
Sequence.Close(109@)
Char.PerformSequence($scplayer, 109@)
Sequence.Clear(109@)
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_40310
109@ = Sequence.Open()
if 
  Char.IsInAnyCar(71@)
goto_if_false @CASINO4_40269
Task.LeaveAnyCar(-1)

:CASINO4_40269
Task.GoStraightToCoord(-1, 2166.443, 1678.606, 9.8125, MoveState.Walk, -1)
Sequence.Close(109@)
Char.PerformSequence(71@, 109@)
Sequence.Clear(109@)

:CASINO4_40310
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_40392
109@ = Sequence.Open()
if 
  Char.IsInAnyCar(72@)
goto_if_false @CASINO4_40351
Task.LeaveAnyCar(-1)

:CASINO4_40351
Task.GoStraightToCoord(-1, 2166.706, 1683.291, 9.8203, MoveState.Walk, -1)
Sequence.Close(109@)
Char.PerformSequence(72@, 109@)
Sequence.Clear(109@)

:CASINO4_40392
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
53@ = 0
300@ = 0
301@ = 0
302@ = 0
TIMERB = 0

:CASINO4_40497
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_41575
if 
  252@ <> 0
goto_if_false @CASINO4_40863
if 
  255@ == 0
goto_if_false @CASINO4_40583
if 
  Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_40576
Audio.ClearMissionAudio(254@)

:CASINO4_40576
255@ = 1

:CASINO4_40583
if 
  255@ == 1
goto_if_false @CASINO4_40620
Audio.LoadMissionAudio(253@, 138@(252@,114i))
255@ = 2

:CASINO4_40620
if 
  255@ == 2
goto_if_false @CASINO4_40680
if 
  Audio.HasMissionAudioLoaded(253@)
goto_if_false @CASINO4_40680
Audio.PlayMissionAudio(253@)
Text.PrintNow($c2_cp(252@,114s), 10000, 1)
255@ = 3

:CASINO4_40680
if 
  255@ == 3
goto_if_false @CASINO4_40863
if 
  Audio.HasMissionAudioFinished(253@)
goto_if_false @CASINO4_40802
Char.StopFacialTalk($scplayer)
Text.ClearThisPrint($c2_cp(252@,114s))
if 
  253@ == 1
goto_if_false @CASINO4_40767
253@ = 2
254@ = 1
goto @CASINO4_40781

:CASINO4_40767
253@ = 1
254@ = 2

:CASINO4_40781
252@ = 0
255@ = 0
goto @CASINO4_40863

:CASINO4_40802
if 
  not Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_40863
if 
  110 > 252@
goto_if_false @CASINO4_40863
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
Audio.LoadMissionAudio(254@, 138@(261@,114i))

:CASINO4_40863
switch_start 257@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASINO4_41070 {caseNum1} 0 {caseLabel1} @CASINO4_40926 {caseNum2} 1 {caseLabel2} @CASINO4_40978 {caseNum3} -1 {caseLabel3} @CASINO4_41196 {caseNum4} -1 {caseLabel4} @CASINO4_41196 {caseNum5} -1 {caseLabel5} @CASINO4_41196 {caseNum6} -1 {caseLabel6} @CASINO4_41196 {caseNum7} -1 {caseLabel7} @CASINO4_41196

:CASINO4_40926
if 
  255@ == 0
goto_if_false @CASINO4_40971
Char.StartFacialTalk($scplayer, 3000)
252@ = 94
257@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_40971
goto @CASINO4_41196

:CASINO4_40978
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_41063
if 
  255@ == 0
goto_if_false @CASINO4_41063
Char.StartFacialTalk($scplayer, 3000)
252@ = 95
257@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_41063
goto @CASINO4_41196

:CASINO4_41070
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_41189
if 
  255@ == 0
goto_if_false @CASINO4_41189
if 
  300@ == 1
goto_if_false @CASINO4_41189
if 
  301@ == 1
goto_if_false @CASINO4_41189
if 
  302@ == 1
goto_if_false @CASINO4_41189
256@ = 1

:CASINO4_41189
goto @CASINO4_41196

:CASINO4_41196
90@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_41232
300@ = 1

:CASINO4_41232
if 
  301@ == 0
goto_if_false @CASINO4_41387
if 
  not Car.IsDead(79@)
goto_if_false @CASINO4_41380
303@ = Car.GetDriver(79@)
if 
  303@ <> -1
goto_if_false @CASINO4_41366
if 
  Car.Locate3D(79@, 2154.275, 1664.964, 9.8125, 4.0, 4.0, 3.0, False)
goto_if_false @CASINO4_41359
Car.SetMission(79@, CarMission.StopForever)
Car.TaskEveryoneLeave(79@)
301@ = 1

:CASINO4_41359
goto @CASINO4_41373

:CASINO4_41366
301@ = 1

:CASINO4_41373
goto @CASINO4_41387

:CASINO4_41380
301@ = 1

:CASINO4_41387
if 
  302@ == 0
goto_if_false @CASINO4_41542
if 
  not Car.IsDead(78@)
goto_if_false @CASINO4_41535
303@ = Car.GetDriver(78@)
if 
  303@ <> -1
goto_if_false @CASINO4_41521
if 
  Car.Locate3D(78@, 2158.518, 1681.402, 9.8047, 4.0, 4.0, 3.0, False)
goto_if_false @CASINO4_41514
Car.SetMission(78@, CarMission.StopForever)
Car.TaskEveryoneLeave(78@)
302@ = 1

:CASINO4_41514
goto @CASINO4_41528

:CASINO4_41521
300@ = 1

:CASINO4_41528
goto @CASINO4_41542

:CASINO4_41535
302@ = 1

:CASINO4_41542
if 
  TIMERB > 20000
goto_if_false @CASINO4_41568
256@ = 1

:CASINO4_41568
goto @CASINO4_40497

:CASINO4_41575
Car.MarkAsNoLongerNeeded(78@)
Car.MarkAsNoLongerNeeded(79@)
Streaming.MarkModelAsNoLongerNeeded(478)

:CASINO4_41590
if or
  not Streaming.HasAnimationLoaded("GANGS")
  not Streaming.HasAnimationLoaded("MISC")
goto_if_false @CASINO4_41646
Streaming.RequestAnimation("GANGS")
Streaming.RequestAnimation("MISC")
wait 0
goto @CASINO4_41590

:CASINO4_41646
World.ClearArea(2175.21, 1679.37, 9.85, 50.0, True)
Char.ClearTasksImmediately($scplayer)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO4_41718
Char.WarpFromCarToCoord($scplayer, 2171.0, 1671.0, 9.8125)
goto @CASINO4_41738

:CASINO4_41718
Char.SetCoordinates($scplayer, 2171.0, 1671.0, 9.8125)

:CASINO4_41738
Char.SetHeading($scplayer, 109.2628)
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_41857
Char.SetDecisionMaker(72@, 37@)
119@ = 0
Char.ClearTasksImmediately(72@)
if 
  Char.IsInAnyCar(72@)
goto_if_false @CASINO4_41827
Char.WarpFromCarToCoord(72@, 2170.0, 1673.0, 9.8125)
goto @CASINO4_41847

:CASINO4_41827
Char.SetCoordinates(72@, 2170.0, 1673.0, 9.8125)

:CASINO4_41847
Char.SetHeading(72@, 153.2628)

:CASINO4_41857
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_41966
Char.SetDecisionMaker(71@, 38@)
120@ = 0
Char.ClearTasksImmediately(71@)
if 
  Char.IsInAnyCar(71@)
goto_if_false @CASINO4_41936
Char.WarpFromCarToCoord(71@, 2172.0, 1669.0, 9.8125)
goto @CASINO4_41956

:CASINO4_41936
Char.SetCoordinates(71@, 2172.0, 1669.0, 9.8125)

:CASINO4_41956
Char.SetHeading(71@, 133.2628)

:CASINO4_41966
91@, 92@, 93@ = Char.GetCoordinates($scplayer)
if 
  not Char.IsDead(113@)
goto_if_false @CASINO4_42141
if 
  Char.IsInAnyCar(113@)
goto_if_false @CASINO4_42039
Char.WarpFromCarToCoord(113@, 2163.43, 1660.721, 9.8203)
goto @CASINO4_42059

:CASINO4_42039
Char.SetCoordinates(113@, 2163.43, 1660.721, 9.8203)

:CASINO4_42059
Char.SetHeading(113@, 327.8448)
109@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.PlayAnim(-1, "SCRATCHBALLS_01", "MISC", 4.0, True, False, False, False, -1)
Sequence.Close(109@)
Char.PerformSequence(113@, 109@)
Sequence.Clear(109@)

:CASINO4_42141
if 
  not Char.IsDead(114@)
goto_if_false @CASINO4_42302
if 
  Char.IsInAnyCar(114@)
goto_if_false @CASINO4_42200
Char.WarpFromCarToCoord(114@, 2162.691, 1664.223, 9.8203)
goto @CASINO4_42220

:CASINO4_42200
Char.SetCoordinates(114@, 2162.691, 1664.223, 9.8203)

:CASINO4_42220
Char.SetHeading(114@, 355.144)
109@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.PlayAnim(-1, "SCRATCHBALLS_01", "MISC", 4.0, True, False, False, False, -1)
Sequence.Close(109@)
Char.PerformSequence(114@, 109@)
Sequence.Clear(109@)

:CASINO4_42302
if 
  not Char.IsDead(115@)
goto_if_false @CASINO4_42463
if 
  Char.IsInAnyCar(115@)
goto_if_false @CASINO4_42361
Char.WarpFromCarToCoord(115@, 2166.566, 1661.498, 9.8203)
goto @CASINO4_42381

:CASINO4_42361
Char.SetCoordinates(115@, 2166.566, 1661.498, 9.8203)

:CASINO4_42381
Char.SetHeading(115@, 343.0)
109@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.PlayAnim(-1, "SCRATCHBALLS_01", "MISC", 4.0, True, False, False, False, -1)
Sequence.Close(109@)
Char.PerformSequence(115@, 109@)
Sequence.Clear(109@)

:CASINO4_42463
if 
  not Char.IsDead(116@)
goto_if_false @CASINO4_42624
if 
  Char.IsInAnyCar(116@)
goto_if_false @CASINO4_42522
Char.WarpFromCarToCoord(116@, 2160.908, 1664.875, 9.8047)
goto @CASINO4_42542

:CASINO4_42522
Char.SetCoordinates(116@, 2160.908, 1664.875, 9.8047)

:CASINO4_42542
Char.SetHeading(116@, 315.7)
109@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.PlayAnim(-1, "SCRATCHBALLS_01", "MISC", 4.0, True, False, False, False, -1)
Sequence.Close(109@)
Char.PerformSequence(116@, 109@)
Sequence.Clear(109@)

:CASINO4_42624
Camera.SetFixedPosition(2171.65, 1673.89, 11.12, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2158.4, 1649.68, 11.08, SwitchType.JumpCut)
Player.MakeGangDisappear
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
skip_cutscene_start_internal @CASINO4_43736

:CASINO4_42754
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_43736
if 
  252@ <> 0
goto_if_false @CASINO4_43115
if 
  255@ == 0
goto_if_false @CASINO4_42840
if 
  Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_42833
Audio.ClearMissionAudio(254@)

:CASINO4_42833
255@ = 1

:CASINO4_42840
if 
  255@ == 1
goto_if_false @CASINO4_42877
Audio.LoadMissionAudio(253@, 138@(252@,114i))
255@ = 2

:CASINO4_42877
if 
  255@ == 2
goto_if_false @CASINO4_42937
if 
  Audio.HasMissionAudioLoaded(253@)
goto_if_false @CASINO4_42937
Audio.PlayMissionAudio(253@)
Text.PrintNow($c2_cp(252@,114s), 10000, 1)
255@ = 3

:CASINO4_42937
if 
  255@ == 3
goto_if_false @CASINO4_43115
if 
  Audio.HasMissionAudioFinished(253@)
goto_if_false @CASINO4_43054
Text.ClearThisPrint($c2_cp(252@,114s))
if 
  253@ == 1
goto_if_false @CASINO4_43019
253@ = 2
254@ = 1
goto @CASINO4_43033

:CASINO4_43019
253@ = 1
254@ = 2

:CASINO4_43033
252@ = 0
255@ = 0
goto @CASINO4_43115

:CASINO4_43054
if 
  not Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_43115
if 
  110 > 252@
goto_if_false @CASINO4_43115
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
Audio.LoadMissionAudio(254@, 138@(261@,114i))

:CASINO4_43115
switch_start 257@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @CASINO4_43636 {caseNum1} 0 {caseLabel1} @CASINO4_43178 {caseNum2} 1 {caseLabel2} @CASINO4_43280 {caseNum3} 2 {caseLabel3} @CASINO4_43507 {caseNum4} -1 {caseLabel4} @CASINO4_43729 {caseNum5} -1 {caseLabel5} @CASINO4_43729 {caseNum6} -1 {caseLabel6} @CASINO4_43729 {caseNum7} -1 {caseLabel7} @CASINO4_43729

:CASINO4_43178
if 
  255@ == 0
goto_if_false @CASINO4_43273
257@ = 1
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_43257
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_43246
Task.LookAtChar(71@, 72@, 10000)

:CASINO4_43246
Task.LookAtChar($scplayer, 72@, 10000)

:CASINO4_43257
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_43273

:CASINO4_43273
goto @CASINO4_43729

:CASINO4_43280
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_43500
if 
  255@ == 0
goto_if_false @CASINO4_43500
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_43362
Char.StartFacialTalk(71@, 3000)

:CASINO4_43362
252@ = 97
257@ = 2
299@ = 0

:CASINO4_43383
if 
  4 > 299@
goto_if_false @CASINO4_43463
if 
  not Char.IsDead(113@(299@,4i))
goto_if_false @CASINO4_43449
Task.GoStraightToCoord(113@(299@,4i), 2167.999, 1666.121, 9.8203, MoveState.Walk, -1)

:CASINO4_43449
299@ += 1
goto @CASINO4_43383

:CASINO4_43463
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_43479

:CASINO4_43479
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_43495

:CASINO4_43495
260@ = Clock.GetGameTimer()

:CASINO4_43500
goto @CASINO4_43729

:CASINO4_43507
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_43629
if 
  255@ == 0
goto_if_false @CASINO4_43629
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_43586
Char.StopFacialTalk(71@)

:CASINO4_43586
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_43610
Char.StartFacialTalk(72@, 3000)

:CASINO4_43610
252@ = 98
257@ = 3
260@ = Clock.GetGameTimer()

:CASINO4_43629
goto @CASINO4_43729

:CASINO4_43636
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_43722
if 
  255@ == 0
goto_if_false @CASINO4_43722
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_43715
Char.StopFacialTalk(72@)

:CASINO4_43715
256@ = 1

:CASINO4_43722
goto @CASINO4_43729

:CASINO4_43729
goto @CASINO4_42754

:CASINO4_43736
skip_cutscene_end 
Player.MakeGangReappear
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_43761
Char.StopFacialTalk(71@)

:CASINO4_43761
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_43782
Char.StopFacialTalk(72@)

:CASINO4_43782
Audio.ClearMissionAudio(253@)
Audio.ClearMissionAudio(254@)
99@ = 3

:CASINO4_43799
if 
  99@ > -1
goto_if_false @CASINO4_43934
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_43920
if 
  not Char.IsDead(113@(99@,4i))
goto_if_false @CASINO4_43920
Char.ClearLookAt(71@)
Task.KillCharOnFoot(71@, 113@(99@,4i))
set_lvar_int_to_lvar_int 298@ = 113@(99@,4i)
Char.SetRelationship(71@, RelationshipType.Hate, PedType.Mission2)
117@ = Blip.AddForChar(71@)
Blip.SetAsFriendly(117@, True)
Blip.ChangeScale(117@, 2)
99@ = -1

:CASINO4_43920
99@ -= 1
goto @CASINO4_43799

:CASINO4_43934
99@ = 0

:CASINO4_43941
if 
  4 > 99@
goto_if_false @CASINO4_44076
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_44062
if 
  not Char.IsDead(113@(99@,4i))
goto_if_false @CASINO4_44062
Char.ClearLookAt(72@)
Task.KillCharOnFoot(72@, 113@(99@,4i))
set_lvar_int_to_lvar_int 297@ = 113@(99@,4i)
Char.SetRelationship(72@, RelationshipType.Hate, PedType.Mission2)
118@ = Blip.AddForChar(72@)
Blip.SetAsFriendly(118@, True)
Blip.ChangeScale(118@, 2)
99@ = 4

:CASINO4_44062
99@ += 1
goto @CASINO4_43941

:CASINO4_44076
99@ = 0

:CASINO4_44083
if 
  4 > 99@
goto_if_false @CASINO4_44280
if 
  not Char.IsDead(113@(99@,4i))
goto_if_false @CASINO4_44266
105@(99@,4i) = Blip.AddForChar(113@(99@,4i))
Blip.ChangeDisplay(105@(99@,4i), BlipDisplay.BlipOnly)
Blip.ChangeScale(105@(99@,4i), 2)
Char.SetRelationship(113@(99@,4i), RelationshipType.Hate, PedType.Special)
Char.SetRelationship(113@(99@,4i), RelationshipType.Hate, PedType.Player1)
if 
  2 > 99@
goto_if_false @CASINO4_44238
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_44231
Task.KillCharOnFoot(113@(99@,4i), 72@)

:CASINO4_44231
goto @CASINO4_44266

:CASINO4_44238
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_44266
Task.KillCharOnFoot(113@(99@,4i), 71@)

:CASINO4_44266
99@ += 1
goto @CASINO4_44083

:CASINO4_44280
Camera.RestoreJumpcut
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Char.ClearTasks($scplayer)
Char.ClearLookAt($scplayer)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Streaming.RemoveAnimation("MISC")
Streaming.RemoveAnimation("GANGS")
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
TIMERB = 0
53@ = 0

:CASINO4_44418
if 
  53@ == 0
goto_if_false @CASINO4_45785
if 
  252@ <> 0
goto_if_false @CASINO4_44831
if 
  255@ == 0
goto_if_false @CASINO4_44500
if 
  Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_44493
Audio.ClearMissionAudio(254@)

:CASINO4_44493
255@ = 1

:CASINO4_44500
if 
  255@ == 1
goto_if_false @CASINO4_44537
Audio.LoadMissionAudio(253@, 138@(252@,114i))
255@ = 2

:CASINO4_44537
if 
  255@ == 2
goto_if_false @CASINO4_44597
if 
  Audio.HasMissionAudioLoaded(253@)
goto_if_false @CASINO4_44597
Audio.PlayMissionAudio(253@)
Text.PrintNow($c2_cp(252@,114s), 10000, 1)
255@ = 3

:CASINO4_44597
if 
  255@ == 3
goto_if_false @CASINO4_44831
if 
  Audio.HasMissionAudioFinished(253@)
goto_if_false @CASINO4_44770
Text.ClearThisPrint($c2_cp(252@,114s))
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_44668
Char.StopFacialTalk(71@)
Char.ShutUpForScriptedSpeech(71@, False)

:CASINO4_44668
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_44696
Char.StopFacialTalk(72@)
Char.ShutUpForScriptedSpeech(72@, False)

:CASINO4_44696
if 
  253@ == 1
goto_if_false @CASINO4_44735
253@ = 2
254@ = 1
goto @CASINO4_44749

:CASINO4_44735
253@ = 1
254@ = 2

:CASINO4_44749
252@ = 0
255@ = 0
goto @CASINO4_44831

:CASINO4_44770
if 
  not Audio.HasMissionAudioLoaded(254@)
goto_if_false @CASINO4_44831
if 
  110 > 252@
goto_if_false @CASINO4_44831
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
Audio.LoadMissionAudio(254@, 138@(261@,114i))

:CASINO4_44831
switch_start 257@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @CASINO4_45218 {caseNum1} 0 {caseLabel1} @CASINO4_44894 {caseNum2} 1 {caseLabel2} @CASINO4_44988 {caseNum3} 2 {caseLabel3} @CASINO4_45103 {caseNum4} -1 {caseLabel4} @CASINO4_45290 {caseNum5} -1 {caseLabel5} @CASINO4_45290 {caseNum6} -1 {caseLabel6} @CASINO4_45290 {caseNum7} -1 {caseLabel7} @CASINO4_45290

:CASINO4_44894
if 
  TIMERB > 5000
goto_if_false @CASINO4_44981
if 
  255@ == 0
goto_if_false @CASINO4_44981
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_44962
Char.ShutUpForScriptedSpeech(71@, True)
Char.StartFacialTalk(71@, 3000)

:CASINO4_44962
252@ = 112
257@ = 1
260@ = Clock.GetGameTimer()

:CASINO4_44981
goto @CASINO4_45290

:CASINO4_44988
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 7000
goto_if_false @CASINO4_45096
if 
  255@ == 0
goto_if_false @CASINO4_45096
252@ = 17
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_45084
Char.ShutUpForScriptedSpeech(72@, True)
Char.StartFacialTalk(72@, 3000)

:CASINO4_45084
257@ = 2
260@ = Clock.GetGameTimer()

:CASINO4_45096
goto @CASINO4_45290

:CASINO4_45103
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 7000
goto_if_false @CASINO4_45211
if 
  255@ == 0
goto_if_false @CASINO4_45211
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_45192
Char.ShutUpForScriptedSpeech(71@, True)
Char.StartFacialTalk(71@, 3000)

:CASINO4_45192
252@ = 111
257@ = 3
260@ = Clock.GetGameTimer()

:CASINO4_45211
goto @CASINO4_45290

:CASINO4_45218
259@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_45283
if 
  255@ == 0
goto_if_false @CASINO4_45283
256@ = 1

:CASINO4_45283
goto @CASINO4_45290

:CASINO4_45290
99@ = 0

:CASINO4_45297
if 
  4 > 99@
goto_if_false @CASINO4_45665
if 
  101@(99@,4i) == 0
goto_if_false @CASINO4_45651
if 
  Char.IsDead(113@(99@,4i))
goto_if_false @CASINO4_45651
if 
  is_int_lvar_equal_to_int_lvar 298@ == 113@(99@,4i)
goto_if_false @CASINO4_45486
299@ = 3

:CASINO4_45387
if 
  299@ > -1
goto_if_false @CASINO4_45486
if 
  not Char.IsDead(71@)
goto_if_false @CASINO4_45472
if 
  not Char.IsDead(113@(299@,4i))
goto_if_false @CASINO4_45472
Task.KillCharOnFoot(71@, 113@(299@,4i))
set_lvar_int_to_lvar_int 298@ = 113@(299@,4i)
299@ = -1

:CASINO4_45472
299@ -= 1
goto @CASINO4_45387

:CASINO4_45486
if 
  is_int_lvar_equal_to_int_lvar 297@ == 113@(99@,4i)
goto_if_false @CASINO4_45615
299@ = 0

:CASINO4_45516
if 
  4 > 299@
goto_if_false @CASINO4_45615
if 
  not Char.IsDead(72@)
goto_if_false @CASINO4_45601
if 
  not Char.IsDead(113@(299@,4i))
goto_if_false @CASINO4_45601
Task.KillCharOnFoot(72@, 113@(299@,4i))
set_lvar_int_to_lvar_int 297@ = 113@(299@,4i)
299@ = 4

:CASINO4_45601
299@ += 1
goto @CASINO4_45516

:CASINO4_45615
Blip.Remove(105@(99@,4i))
Char.MarkAsNoLongerNeeded(113@(99@,4i))
101@(99@,4i) = 1
100@ -= 1

:CASINO4_45651
99@ += 1
goto @CASINO4_45297

:CASINO4_45665
if 
  1 > 100@
goto_if_false @CASINO4_45744
53@ = 1
if 
  46@ == 0
goto_if_false @CASINO4_45744
Car.MarkAsNoLongerNeeded(77@)
World.ClearArea(2175.21, 1679.37, 9.85, 10.0, True)
46@ = 1

:CASINO4_45744
if or
  Char.IsDead(72@)
  Char.IsDead(71@)
goto_if_false @CASINO4_45774
Text.ClearPrints
53@ = 1

:CASINO4_45774
wait 0
goto @CASINO4_44418

:CASINO4_45785
Audio.ClearMissionAudio(254@)
Audio.ClearMissionAudio(253@)
Game.SetWantedMultiplier(1.0)
Blip.Remove(118@)
Blip.Remove(117@)
if and
  not Char.IsDead(72@)
  not Char.IsDead(71@)
goto_if_false @CASINO4_45860
Char.StopFacialTalk(71@)
Char.StopFacialTalk(72@)
Char.ClearTasksImmediately(72@)
Char.ClearTasksImmediately(71@)
Group.SetDefaultTaskAllocator($Players_Group, DefaultTaskAllocator.FollowAnyMeans)

:CASINO4_45860
return 

:CASINO4_45862
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:CASINO4_45880
$flag_casino_mission_counter += 1
Stat.SetInt(StatId.PassedCasino4, 1)
Stat.RegisterMissionPassed('CASINO4')
Text.PrintWithNumberBig('M_PASSR', 5, 5000, TextStyle.Middle)
Audio.PlayMissionPassedTune(1)
Stat.AwardPlayerMissionRespect(5)
Player.ClearWantedLevel($player1)
Stat.PlayerMadeProgress(1)
Blip.Remove($casino_contact_blip)
return 

:CASINO4_45947
$timer_mobile_start = Clock.GetGameTimer()
Game.SetPoliceIgnorePlayer($player1, False)
if 
  Player.IsPlaying($player1)
goto_if_false @CASINO4_45982
Char.ShutUpForScriptedSpeech($scplayer, False)

:CASINO4_45982
Particle.Kill(136@)
Particle.Kill(137@)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Blip.Remove(69@)
Blip.Remove(68@)
Blip.Remove(67@)
Blip.Remove(70@)
Blip.Remove(66@)
Blip.Remove(105@)
Blip.Remove(106@)
Blip.Remove(107@)
Blip.Remove(108@)
Blip.Remove(117@)
Blip.Remove(118@)
Car.MarkAsNoLongerNeeded(77@)
Car.MarkAsNoLongerNeeded(78@)
Car.MarkAsNoLongerNeeded(79@)
Car.MarkAsNoLongerNeeded(289@)
Char.RemoveElegantly(72@)
Char.RemoveElegantly(71@)
Char.MarkAsNoLongerNeeded(73@)
Char.MarkAsNoLongerNeeded(76@)
Char.MarkAsNoLongerNeeded(74@)
Char.MarkAsNoLongerNeeded(75@)
Char.MarkAsNoLongerNeeded(303@)
Char.MarkAsNoLongerNeeded(113@)
Char.MarkAsNoLongerNeeded(114@)
Char.MarkAsNoLongerNeeded(115@)
Char.MarkAsNoLongerNeeded(116@)
Char.MarkAsNoLongerNeeded(290@)
Streaming.MarkModelAsNoLongerNeeded(478)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(31)
Streaming.MarkModelAsNoLongerNeeded(32)
Streaming.MarkModelAsNoLongerNeeded(33)
Streaming.MarkModelAsNoLongerNeeded(34)
Streaming.MarkModelAsNoLongerNeeded(34)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.RemoveAnimation("SUNBATHE")
Streaming.RemoveAnimation("PAULNMAC")
Streaming.RemoveAnimation("FOOD")
Streaming.RemoveAnimation("SMOKING")
Streaming.RemoveAnimation("MISC")
Streaming.RemoveAnimation("GANGS")
DecisionMaker.Remove(37@)
DecisionMaker.Remove(38@)
DecisionMaker.Remove(39@)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

//-------------Mission 89---------------
// Originally: Intensive Care

:CASINO5
script_name 'CASINO5'
gosub @CASINO5_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO5_38
gosub @CASINO5_12932

:CASINO5_38
gosub @CASINO5_12978
terminate_this_script 

:CASINO5_47
Stat.RegisterMissionGiven
$onmission = 1
Text.LoadMissionText('CASINO5')
Char.SetCoordinates($scplayer, 2175.412, 1681.548, 9.8203)
Char.SetHeading($scplayer, 90.0)
Char.SetHasUsedEntryExit($scplayer, 2233.5, 1712.8, 9.8203)
Player.SetGroupRecruitment($player1, False)
Game.SetScriptLimitToGangSize(0)
$iTerminateAllAmbience = 1
Streaming.SetAreaVisible(2)
Cutscene.Load('CAS_5A')

:CASINO5_150
if 
  not Cutscene.HasLoaded
goto_if_false @CASINO5_174
wait 0
goto @CASINO5_150

:CASINO5_174
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CASINO5_183
if 
  not Cutscene.HasFinished
goto_if_false @CASINO5_207
wait 0
goto @CASINO5_183

:CASINO5_207
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CASINO5_222
if 
  Camera.GetFadingStatus
goto_if_false @CASINO5_246
wait 0
goto @CASINO5_222

:CASINO5_246
Streaming.SetAreaVisible(0)
Game.SetScriptLimitToGangSize(99)
start_new_script @A_CONT 
Streaming.LoadScene(2175.412, 1681.548, 9.8203)
Streaming.RequestModel(416)
Streaming.RequestModel(470)
Streaming.RequestModel(275)
Streaming.RequestModel(124)
Streaming.RequestModel(125)
Streaming.LoadSpecialCharacter(1, 'SINDACO')
Streaming.RequestModel(353)
Streaming.RequestAnimation("GANGS")

:CASINO5_329
if or
  not Streaming.HasModelLoaded(416)
  not Streaming.HasModelLoaded(470)
  not Streaming.HasModelLoaded(275)
  not Streaming.HasModelLoaded(124)
  not Streaming.HasModelLoaded(125)
goto_if_false @CASINO5_374
wait 0
goto @CASINO5_329

:CASINO5_374
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(353)
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @CASINO5_414
wait 0
goto @CASINO5_374

:CASINO5_414
47@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
49@ = DecisionMakerChar.Load(DecisionMakerType.Normal)
48@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
54@ = 0
if 
  54@ == 1
goto_if_false @CASINO5_547
72@ = Char.Create(PedType.Mission1, 124, 0.0, 0.0, 0.0)
99@(40@,2i) = Char.Create(PedType.Mission1, 124, 0.0, 0.0, 0.0)
97@(40@,2i) = Car.Create(416, 0.0, 0.0, 0.0)

:CASINO5_547
Camera.SetFadingColor(0, 0, 0)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Camera.DoFade(0, Fade.In)
Text.PrintNow('CAS5_00', 8000, 1)
44@ = Blip.AddForCoord(1604.158, 1838.765, 9.828)
set_lvar_text_label 140@s = 'CAS5_AA'
set_lvar_int_to_constant 124@ = 17600
set_lvar_text_label 142@s = 'CAS5_AB'
set_lvar_int_to_constant 125@ = 17601
set_lvar_text_label 144@s = 'CAS5_BA'
set_lvar_int_to_constant 126@ = 17615
set_lvar_text_label 146@s = 'CAS5_BB'
set_lvar_int_to_constant 127@ = 17602
set_lvar_text_label 148@s = 'CAS5_BC'
set_lvar_int_to_constant 128@ = 17616
set_lvar_text_label 150@s = 'CAS5_BD'
set_lvar_int_to_constant 129@ = 17617
set_lvar_text_label 152@s = 'CAS5_BE'
set_lvar_int_to_constant 130@ = 17603
set_lvar_text_label 154@s = 'CAS5_CA'
set_lvar_int_to_constant 131@ = 17604
set_lvar_text_label 156@s = 'CAS5_CB'
set_lvar_int_to_constant 132@ = 17605
set_lvar_text_label 158@s = 'CAS5_CC'
set_lvar_int_to_constant 133@ = 17606
set_lvar_text_label 160@s = 'CAS5_CD'
set_lvar_int_to_constant 134@ = 17607
set_lvar_text_label 162@s = 'CAS5_CE'
set_lvar_int_to_constant 135@ = 17608
set_lvar_text_label 164@s = 'CAS5_CF'
set_lvar_int_to_constant 136@ = 17609
set_lvar_text_label 166@s = 'CAS5_CG'
set_lvar_int_to_constant 137@ = 17610
set_lvar_text_label 168@s = 'CAS5_DA'
set_lvar_int_to_constant 138@ = 17614
set_lvar_text_label 170@s = 'CAS5_DB'
set_lvar_int_to_constant 139@ = 17611
122@ = 0
123@ = 0
TIMERB = 0
56@ = 0

:CASINO5_992
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO5_1018
goto @CASINO5_12838

:CASINO5_1018
if 
  56@ == 0
goto_if_false @CASINO5_1199
if 
  Char.LocateAnyMeans3D($scplayer, 1604.158, 1838.765, 9.828, 120.0, 120.0, 120.0, False)
goto_if_false @CASINO5_1199
World.ClearArea(1604.158, 1838.765, 9.828, 30.0, True)
CarGenerator.SuppressCarModel(470)
Car.CustomPlateForNextCar(470, "H_CARMAN")
World.ClearArea(1624.598, 1850.607, 9.828, 8.0, True)
55@ = Car.Create(470, 1624.598, 1850.607, 9.828)
Car.SetHeading(55@, 180.0)
Car.SetStrong(55@, True)
56@ += 1

:CASINO5_1199
if 
  Char.LocateAnyMeans3D($scplayer, 1604.158, 1838.765, 9.828, 4.0, 4.0, 4.0, True)
goto_if_false @CASINO5_1338
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO5_1322
Text.ClearPrints
Player.SetControl($player1, False)
Camera.DoFade(400, Fade.Out)

:CASINO5_1279
if 
  Camera.GetFadingStatus
goto_if_false @CASINO5_1303
wait 0
goto @CASINO5_1279

:CASINO5_1303
Blip.Remove(44@)
goto @CASINO5_1352
goto @CASINO5_1338

:CASINO5_1322
Text.PrintNow('CAS5_01', 4000, 1)

:CASINO5_1338
gosub @CASINO5_10202
goto @CASINO5_992

:CASINO5_1352
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1595.199, 1838.316, 12.4095, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1596.18, 1838.252, 12.2269, SwitchType.JumpCut)
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO5_1439
$SLOT_status[0] = -2

:CASINO5_1439
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO5_1464
$SLOT_status[1] = -2

:CASINO5_1464
50@ = Char.StoreCarIsIn($scplayer)
Car.SetHealth(50@, 2000)
World.ClearArea(1604.158, 1838.765, 9.828, 15.0, True)
Camera.DoFade(0, Fade.In)
42@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 1606.106, 1825.065, 9.828, MoveState.Run, -1)
Task.StandStill(-1, 100)
Sequence.Close(42@)
Char.PerformSequence($scplayer, 42@)
Sequence.Clear(42@)
43@ = 0
46@ = 0

:CASINO5_1580
if 
  2 > 43@
goto_if_false @CASINO5_1617
wait 0
43@ = Char.GetSequenceProgress($scplayer)
goto @CASINO5_1580

:CASINO5_1617
skip_cutscene_start_internal @CASINO5_1844
123@ = 4

:CASINO5_1631
if 
  7 > 122@
goto_if_false @CASINO5_1667
wait 0
gosub @CASINO5_10202
goto @CASINO5_1631

:CASINO5_1667
42@ = Sequence.Open()
Task.StandStill(-1, 3800)
if 
  not Car.IsDead(50@)
goto_if_false @CASINO5_1704
Task.EnterCarAsDriver(-1, 50@, -1)

:CASINO5_1704
Sequence.Close(42@)
Char.PerformSequence($scplayer, 42@)
Sequence.Clear(42@)
40@ = 0

:CASINO5_1729
if 
  40@ == 0
goto_if_false @CASINO5_1800
wait 0
if 
  not Car.IsDead(50@)
goto_if_false @CASINO5_1793
if 
  Char.IsInCar($scplayer, 50@)
goto_if_false @CASINO5_1793
40@ = 1

:CASINO5_1793
goto @CASINO5_1729

:CASINO5_1800
46@ = 1
TIMERA = 0

:CASINO5_1814
if 
  500 > TIMERA
goto_if_false @CASINO5_1844
wait 0
goto @CASINO5_1814

:CASINO5_1844
skip_cutscene_end 
Text.ClearPrints
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO5_1873
$SLOT_status[0] = -2

:CASINO5_1873
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO5_1898
$SLOT_status[1] = -2

:CASINO5_1898
if or
  not Char.IsGettingInToACar($scplayer)
  not Char.IsInAnyCar($scplayer)
goto_if_false @CASINO5_1948
Char.ClearTasksImmediately($scplayer)
if 
  not Car.IsDead(50@)
goto_if_false @CASINO5_1948
Char.WarpIntoCar($scplayer, 50@)

:CASINO5_1948
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Text.PrintNow('CAS5_03', 8000, 1)
Path.MarkRoadNodeAsDontWander(2066.25, 956.0, 9.125)
Path.MarkRoadNodeAsDontWander(2048.625, 953.8749, 9.125)
Path.MarkRoadNodeAsDontWander(2032.5, 973.25, 9.5)
Path.MarkRoadNodeAsDontWander(2027.25, 1093.125, 9.625)
Path.MarkRoadNodeAsDontWander(2030.125, 1273.0, 9.625)
Path.MarkRoadNodeAsDontWander(2029.0, 1453.25, 9.625)
Path.MarkRoadNodeAsDontWander(2033.75, 1713.125, 9.625)
Path.MarkRoadNodeAsDontWander(2112.125, 1863.125, 9.75)
Path.MarkRoadNodeAsDontWander(2104.0, 1969.125, 9.75)
Path.MarkRoadNodeAsDontWander(2108.25, 2022.0, 9.625)
Path.MarkRoadNodeAsDontWander(2107.625, 2113.125, 9.625)
Path.MarkRoadNodeAsDontWander(2091.25, 2283.125, 9.625)
Path.MarkRoadNodeAsDontWander(2005.625, 2393.25, 9.625)
Path.MarkRoadNodeAsDontWander(1605.375, 2589.75, 9.625)
Path.MarkRoadNodeAsDontWander(1477.375, 2563.125, 9.625)
Path.MarkRoadNodeAsDontWander(1385.625, 2575.0, 9.625)
Path.MarkRoadNodeAsDontWander(1293.875, 2574.625, 9.625)
Path.MarkRoadNodeAsDontWander(1528.125, 2773.125, 9.625)
Path.MarkRoadNodeAsDontWander(2127.375, 2792.875, 9.625)
Path.MarkRoadNodeAsDontWander(2397.375, 2713.125, 9.625)
Path.MarkRoadNodeAsDontWander(2404.625, 2513.125, 9.625)
Path.MarkRoadNodeAsDontWander(2628.625, 2301.75, 9.625)
Path.MarkRoadNodeAsDontWander(2787.25, 2303.5, 9.625)
Path.MarkRoadNodeAsDontWander(2860.125, 2293.0, 9.625)
Path.MarkRoadNodeAsDontWander(2796.125, 2135.375, 9.75)
Path.MarkRoadNodeAsDontWander(2796.125, 2090.875, 9.625)
Path.MarkRoadNodeAsDontWander(2638.375, 2135.375, 9.625)
Path.MarkRoadNodeAsDontWander(2638.375, 2090.875, 9.75)
Path.MarkRoadNodeAsDontWander(2621.625, 1473.125, 9.625)
Path.MarkRoadNodeAsDontWander(2645.375, 1313.125, 9.75)
Path.MarkRoadNodeAsDontWander(2547.25, 923.125, 9.625)
Path.MarkRoadNodeAsDontWander(2287.25, 957.8749, 9.625)
Path.MarkRoadNodeAsDontWander(2147.25, 963.2499, 9.625)
World.ClearArea(2152.029, 1912.456, 9.6797, 10.0, True)
57@ = Car.Create(416, 2152.029, 1912.456, 9.6797)
Car.SetHeading(57@, 0.0)
60@ = Blip.AddForCar(57@)
Car.LockDoors(57@, CarLock.LockoutPlayerOnly)
Car.SetLoadCollisionFlag(57@, False)
66@ = Char.CreateInsideCar(57@, PedType.Mission1, 275)
Char.SetCantBeDraggedOut(66@, True)
Char.SetDecisionMaker(66@, 48@)
69@ = Char.CreateAsPassenger(57@, PedType.Mission1, 275, 0)
Char.SetCantBeDraggedOut(69@, True)
Char.SetDecisionMaker(69@, 48@)
Task.CarDriveWander(66@, 57@, 15.0, DrivingMode.StopForCars)
63@ = 0
93@ = 0
World.ClearArea(2050.291, 1358.516, 9.6719, 10.0, True)
58@ = Car.Create(416, 2050.291, 1358.516, 9.6719)
Car.SetHeading(58@, 180.0)
61@ = Blip.AddForCar(58@)
Car.LockDoors(58@, CarLock.LockoutPlayerOnly)
Car.SetLoadCollisionFlag(58@, False)
67@ = Char.CreateInsideCar(58@, PedType.Mission1, 275)
Char.SetCantBeDraggedOut(67@, True)
Char.SetDecisionMaker(67@, 48@)
70@ = Char.CreateAsPassenger(58@, PedType.Mission1, 275, 0)
Char.SetCantBeDraggedOut(70@, True)
Char.SetDecisionMaker(70@, 48@)
Task.CarDriveWander(67@, 58@, 15.0, DrivingMode.StopForCars)
64@ = 0
94@ = 0
World.ClearArea(2544.98, 1395.797, 9.78, 10.0, True)
59@ = Car.Create(416, 2544.98, 1395.797, 9.78)
Car.SetHeading(59@, 180.0)
62@ = Blip.AddForCar(59@)
Car.LockDoors(59@, CarLock.LockoutPlayerOnly)
Car.SetLoadCollisionFlag(59@, False)
68@ = Char.CreateInsideCar(59@, PedType.Mission1, 275)
Char.SetCantBeDraggedOut(68@, True)
Char.SetDecisionMaker(68@, 48@)
71@ = Char.CreateAsPassenger(59@, PedType.Mission1, 275, 0)
Char.SetCantBeDraggedOut(71@, True)
Char.SetDecisionMaker(71@, 48@)
Task.CarDriveWander(68@, 59@, 15.0, DrivingMode.StopForCars)
65@ = 0
95@ = 0
73@ = 0
74@ = -1
76@ = 0
80@ = 0

:CASINO5_3066
wait 0
40@ = 0

:CASINO5_3077
if 
  3 > 40@
goto_if_false @CASINO5_7031
if and
  not Car.IsDead(57@(40@,3i))
  6 > 63@(40@,3i)
goto_if_false @CASINO5_7017
switch_start 63@(40@,3i) {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CASINO5_7017 {caseNum1} 0 {caseLabel1} @CASINO5_3193 {caseNum2} 1 {caseLabel2} @CASINO5_4008 {caseNum3} 2 {caseLabel3} @CASINO5_4577 {caseNum4} 3 {caseLabel4} @CASINO5_5069 {caseNum5} 4 {caseLabel5} @CASINO5_5166 {caseNum6} 5 {caseLabel6} @CASINO5_5720 {caseNum7} -1 {caseLabel7} @CASINO5_7017

:CASINO5_3193
if or
  Char.IsDead(66@(40@,3i))
  Char.IsDead(69@(40@,3i))
goto_if_false @CASINO5_3261
77@ = 0
if 
  76@ == 0
goto_if_false @CASINO5_3254
gosub @CASINO5_7421

:CASINO5_3254
goto @CASINO5_3415

:CASINO5_3261
if 
  Car.HasBeenDamagedByChar(57@(40@,3i), $scplayer)
goto_if_false @CASINO5_3323
77@ = 1
if 
  76@ == 0
goto_if_false @CASINO5_3316
gosub @CASINO5_7421

:CASINO5_3316
goto @CASINO5_3415

:CASINO5_3323
if 
  78@ == 0
goto_if_false @CASINO5_3408
if and
  Char.LocateAnyMeansCar2D($scplayer, 57@(40@,3i), 40.0, 40.0, False)
  Car.IsOnScreen(57@(40@,3i))
goto_if_false @CASINO5_3408
Text.PrintNow('CAS5_04', 8000, 1)
78@ = 1

:CASINO5_3408
goto @CASINO5_7017

:CASINO5_3415
if 
  77@ == 0
goto_if_false @CASINO5_3497
if 
  76@ == 0
goto_if_false @CASINO5_3474
Text.PrintNow('CAS5_07', 8000, 1)
goto @CASINO5_3490

:CASINO5_3474
Text.PrintNow('CAS5_08', 8000, 1)

:CASINO5_3490
goto @CASINO5_3554

:CASINO5_3497
if 
  76@ == 0
goto_if_false @CASINO5_3538
Text.PrintNow('CAS5_05', 8000, 1)
goto @CASINO5_3554

:CASINO5_3538
Text.PrintNow('CAS5_06', 8000, 1)

:CASINO5_3554
Blip.Remove(60@(40@,3i))
76@ += 1
81@(40@,3i) = 0
Car.SetTempAction(57@(40@,3i), TempAction.HandbrakeStraight, 5000)
if 
  not Char.IsDead(66@(40@,3i))
goto_if_false @CASINO5_3776
Char.ClearTasks(66@(40@,3i))
42@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.TurnCharToFaceChar(-1, $scplayer)
Task.LookAtChar(-1, $scplayer, 1500)
Task.PlayAnim(-1, "PRTIAL_GNGTLKH", "GANGS", 1000.0, False, False, False, False, 2000)
Task.PlayAnim(-1, "PRTIAL_GNGTLKG", "GANGS", 1000.0, False, False, False, False, 2000)
Task.StandStill(-1, 5000)
Sequence.Close(42@)
Char.PerformSequence(66@(40@,3i), 42@)
Sequence.Clear(42@)
81@(40@,3i) += 1

:CASINO5_3776
if 
  not Char.IsDead(69@(40@,3i))
goto_if_false @CASINO5_3957
Char.ClearTasks(69@(40@,3i))
42@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.TurnCharToFaceChar(-1, $scplayer)
Task.LookAtChar(-1, $scplayer, 1500)
Task.PlayAnim(-1, "PRTIAL_GNGTLKB", "GANGS", 1000.0, False, False, False, False, 2000)
Task.PlayAnim(-1, "PRTIAL_GNGTLKC", "GANGS", 1000.0, False, False, False, False, 2000)
Task.StandStill(-1, 5000)
Sequence.Close(42@)
Char.PerformSequence(69@(40@,3i), 42@)
Sequence.Clear(42@)
81@(40@,3i) += 2

:CASINO5_3957
if 
  81@(40@,3i) == 0
goto_if_false @CASINO5_3997
63@(40@,3i) = 3
goto @CASINO5_7017

:CASINO5_3997
63@(40@,3i) += 1

:CASINO5_4008
if or
  81@(40@,3i) == 1
  81@(40@,3i) == 3
goto_if_false @CASINO5_4191
if 
  not Char.IsDead(66@(40@,3i))
goto_if_false @CASINO5_4147
if 
  not Char.IsInAnyCar(66@(40@,3i))
goto_if_false @CASINO5_4140
43@ = Char.GetSequenceProgress(66@(40@,3i))
if 
  43@ == 5
goto_if_false @CASINO5_4140
Task.EnterCarAsDriver(66@(40@,3i), 57@(40@,3i), -2)
81@(40@,3i) -= 1

:CASINO5_4140
goto @CASINO5_4191

:CASINO5_4147
if or
  81@(40@,3i) == 1
  81@(40@,3i) == 3
goto_if_false @CASINO5_4191
81@(40@,3i) -= 1

:CASINO5_4191
if or
  81@(40@,3i) == 2
  81@(40@,3i) == 3
goto_if_false @CASINO5_4421
if 
  not Char.IsDead(69@(40@,3i))
goto_if_false @CASINO5_4377
if 
  not Char.IsInAnyCar(69@(40@,3i))
goto_if_false @CASINO5_4370
43@ = Char.GetSequenceProgress(69@(40@,3i))
if 
  43@ == 5
goto_if_false @CASINO5_4370
if 
  Char.IsDead(66@(40@,3i))
goto_if_false @CASINO5_4339
Task.EnterCarAsDriver(69@(40@,3i), 57@(40@,3i), -2)
goto @CASINO5_4359

:CASINO5_4339
Task.EnterCarAsPassenger(69@(40@,3i), 57@(40@,3i), -2, 0)

:CASINO5_4359
81@(40@,3i) -= 2

:CASINO5_4370
goto @CASINO5_4421

:CASINO5_4377
if or
  81@(40@,3i) == 2
  81@(40@,3i) == 3
goto_if_false @CASINO5_4421
81@(40@,3i) -= 2

:CASINO5_4421
if 
  81@(40@,3i) == 0
goto_if_false @CASINO5_4570
if 
  not Char.IsDead(66@(40@,3i))
goto_if_false @CASINO5_4474
81@(40@,3i) += 1

:CASINO5_4474
if 
  not Char.IsDead(69@(40@,3i))
goto_if_false @CASINO5_4505
81@(40@,3i) += 2

:CASINO5_4505
if 
  81@(40@,3i) == 0
goto_if_false @CASINO5_4552
63@(40@,3i) = 3
goto @CASINO5_7017
goto @CASINO5_4563

:CASINO5_4552
63@(40@,3i) += 1

:CASINO5_4563
goto @CASINO5_4577

:CASINO5_4570
goto @CASINO5_7017

:CASINO5_4577
if or
  81@(40@,3i) == 1
  81@(40@,3i) == 3
goto_if_false @CASINO5_4719
if 
  not Char.IsDead(66@(40@,3i))
goto_if_false @CASINO5_4675
if 
  Char.IsInCar(66@(40@,3i), 57@(40@,3i))
goto_if_false @CASINO5_4668
81@(40@,3i) -= 1

:CASINO5_4668
goto @CASINO5_4719

:CASINO5_4675
if or
  81@(40@,3i) == 1
  81@(40@,3i) == 3
goto_if_false @CASINO5_4719
81@(40@,3i) -= 1

:CASINO5_4719
if or
  81@(40@,3i) == 2
  81@(40@,3i) == 3
goto_if_false @CASINO5_4861
if 
  not Char.IsDead(69@(40@,3i))
goto_if_false @CASINO5_4817
if 
  Char.IsInCar(69@(40@,3i), 57@(40@,3i))
goto_if_false @CASINO5_4810
81@(40@,3i) -= 2

:CASINO5_4810
goto @CASINO5_4861

:CASINO5_4817
if or
  81@(40@,3i) == 2
  81@(40@,3i) == 3
goto_if_false @CASINO5_4861
81@(40@,3i) -= 2

:CASINO5_4861
if 
  81@(40@,3i) == 0
goto_if_false @CASINO5_5062
if 
  not Char.IsDead(66@(40@,3i))
goto_if_false @CASINO5_4933
Task.CarDriveWander(66@(40@,3i), 57@(40@,3i), 15.0, DrivingMode.StopForCars)
goto @CASINO5_5044

:CASINO5_4933
if 
  not Char.IsDead(69@(40@,3i))
goto_if_false @CASINO5_5044
87@ = Car.GetDriver(57@(40@,3i))
42@ = Sequence.Open()
if 
  not is_int_lvar_equal_to_int_lvar 87@ == 69@(40@,3i)
goto_if_false @CASINO5_5004
Task.ShuffleToNextCarSeat(-1, 57@(40@,3i))

:CASINO5_5004
Task.CarDriveWander(-1, 57@(40@,3i), 15.0, DrivingMode.StopForCars)
Sequence.Close(42@)
Char.PerformSequence(69@(40@,3i), 42@)
Sequence.Clear(42@)

:CASINO5_5044
63@(40@,3i) += 1
goto @CASINO5_5069

:CASINO5_5062
goto @CASINO5_7017

:CASINO5_5069
if or
  Char.LocateAnyMeansCar2D($scplayer, 57@(40@,3i), 50.0, 50.0, False)
  Car.IsOnScreen(57@(40@,3i))
goto_if_false @CASINO5_5120
goto @CASINO5_7017

:CASINO5_5120
Car.MarkAsNoLongerNeeded(57@(40@,3i))
Char.MarkAsNoLongerNeeded(66@(40@,3i))
Char.MarkAsNoLongerNeeded(69@(40@,3i))
63@(40@,3i) = 10000
goto @CASINO5_7017

:CASINO5_5166
if 
  not Char.IsDead(72@)
goto_if_false @CASINO5_5692
if or
  Char.IsDead(66@(40@,3i))
  Char.IsDead(69@(40@,3i))
goto_if_false @CASINO5_5245
Text.PrintNow('CAS5_10', 8000, 1)
63@(40@,3i) = 5
goto @CASINO5_5685

:CASINO5_5245
if 
  Car.HasBeenDamagedByChar(57@(40@,3i), $scplayer)
goto_if_false @CASINO5_5302
Text.PrintNow('CAS5_09', 8000, 1)
63@(40@,3i) = 5
goto @CASINO5_5685

:CASINO5_5302
if 
  TIMERA > 120000
goto_if_false @CASINO5_5563
if or
  Char.LocateAnyMeansCar2D($scplayer, 57@(40@,3i), 60.0, 60.0, False)
  Car.IsOnScreen(57@(40@,3i))
goto_if_false @CASINO5_5411
if 
  Char.IsInCar($scplayer, 57@(40@,3i))
goto_if_false @CASINO5_5397
89@ = 1

:CASINO5_5397
goto @CASINO5_7017
goto @CASINO5_5556

:CASINO5_5411
Blip.Remove(60@(40@,3i))
if 
  Char.DoesExist(72@)
goto_if_false @CASINO5_5441
Char.Delete(72@)

:CASINO5_5441
if 
  Char.DoesExist(66@(40@,3i))
goto_if_false @CASINO5_5470
Char.Delete(66@(40@,3i))

:CASINO5_5470
if 
  Char.DoesExist(69@(40@,3i))
goto_if_false @CASINO5_5499
Char.Delete(69@(40@,3i))

:CASINO5_5499
if 
  Car.DoesExist(57@(40@,3i))
goto_if_false @CASINO5_5528
Car.Delete(57@(40@,3i))

:CASINO5_5528
51@ = 1
set_lvar_text_label 52@s = 'CAS5_32'
goto @CASINO5_12932

:CASINO5_5556
goto @CASINO5_5685

:CASINO5_5563
if 
  2 > 79@
goto_if_false @CASINO5_5678
if 
  79@ == 0
goto_if_false @CASINO5_5642
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO5_5635
Text.PrintNow('CAS5_30', 8000, 1)
79@ += 1

:CASINO5_5635
goto @CASINO5_5678

:CASINO5_5642
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @CASINO5_5678
Text.PrintNow('CAS5_31', 8000, 1)
79@ += 1

:CASINO5_5678
goto @CASINO5_7017

:CASINO5_5685
goto @CASINO5_5720

:CASINO5_5692
51@ = 1
set_lvar_text_label 52@s = 'CAS5_17'
goto @CASINO5_12932

:CASINO5_5720
if 
  not Char.IsDead(72@)
goto_if_false @CASINO5_6982
if 
  80@ == 0
goto_if_false @CASINO5_6160
41@ = 0

:CASINO5_5761
if 
  3 > 41@
goto_if_false @CASINO5_5854
if 
  not is_int_lvar_equal_to_int_lvar 40@ == 41@
goto_if_false @CASINO5_5840
Blip.Remove(60@(41@,3i))
if 
  3 > 63@(41@,3i)
goto_if_false @CASINO5_5840
63@(41@,3i) = 3

:CASINO5_5840
41@ += 1
goto @CASINO5_5761

:CASINO5_5854
Streaming.MarkModelAsNoLongerNeeded(275)
Streaming.RemoveAnimation("GANGS")
Streaming.RequestModel(405)
if 
  89@ == 0
goto_if_false @CASINO5_6109
if 
  not Char.IsDead(66@(40@,3i))
goto_if_false @CASINO5_6017
Char.ClearTasks(66@(40@,3i))
Task.CarDriveWander(66@(40@,3i), 57@(40@,3i), 25.0, DrivingMode.AvoidCars)
if 
  not Char.IsDead(69@(40@,3i))
goto_if_false @CASINO5_6003
Task.DriveBy(69@(40@,3i), $scplayer, -1, 0.0, 0.0, 0.0, 300.0, DriveByType.FixedRight, True, 35)

:CASINO5_6003
88@ = 0
goto @CASINO5_6109

:CASINO5_6017
if 
  not Char.IsDead(69@(40@,3i))
goto_if_false @CASINO5_6109
Char.ClearTasks(69@(40@,3i))
42@ = Sequence.Open()
Task.ShuffleToNextCarSeat(-1, 57@(40@,3i))
Task.CarDriveWander(-1, 57@(40@,3i), 25.0, DrivingMode.AvoidCars)
Sequence.Close(42@)
Char.PerformSequence(69@(40@,3i), 42@)
Sequence.Clear(42@)
88@ = 1

:CASINO5_6109
Car.SwitchSiren(57@(40@,3i), True)
Car.SetHealth(57@(40@,3i), 96@)
80@ = 1
92@ = 0
112@ = 0
goto @CASINO5_6975

:CASINO5_6160
90@ = Car.GetHealth(57@(40@,3i))
if 
  Car.HasBeenDamagedByChar(57@(40@,3i), $scplayer)
goto_if_false @CASINO5_6287
set_lvar_int_to_lvar_int 91@ = 96@
sub_int_lvar_from_int_lvar 91@ -= 90@
if 
  Car.HasBeenDamagedByWeapon(57@(40@,3i), WeaponType.AnyWeapon)
goto_if_false @CASINO5_6272
91@ /= 20
if 
  91@ == 0
goto_if_false @CASINO5_6265
91@ = 1

:CASINO5_6265
goto @CASINO5_6279

:CASINO5_6272
91@ *= 2

:CASINO5_6279
add_int_lvar_to_int_lvar 92@ += 91@

:CASINO5_6287
Car.SetHealth(57@(40@,3i), 96@)
Car.ClearLastDamageEntity(57@(40@,3i))
if 
  200 > 92@
goto_if_false @CASINO5_6515
if 
  not Char.IsInCar($scplayer, 57@(40@,3i))
goto_if_false @CASINO5_6508
if 
  Char.IsDead(66@(40@,3i))
goto_if_false @CASINO5_6494
if 
  not Char.IsDead(69@(40@,3i))
goto_if_false @CASINO5_6487
if 
  88@ == 0
goto_if_false @CASINO5_6480
Char.ClearTasks(69@(40@,3i))
42@ = Sequence.Open()
Task.ShuffleToNextCarSeat(-1, 57@(40@,3i))
Task.CarDriveWander(-1, 57@(40@,3i), 25.0, DrivingMode.AvoidCars)
Sequence.Close(42@)
Char.PerformSequence(69@(40@,3i), 42@)
Sequence.Clear(42@)
88@ = 1

:CASINO5_6480
goto @CASINO5_7017

:CASINO5_6487
goto @CASINO5_6501

:CASINO5_6494
goto @CASINO5_7017

:CASINO5_6501
goto @CASINO5_6515

:CASINO5_6508
89@ = 1

:CASINO5_6515
Car.SetHealth(57@(40@,3i), 3000)
if 
  89@ == 0
goto_if_false @CASINO5_6559
Car.SetTempAction(57@(40@,3i), TempAction.HandbrakeStraight, 5000)

:CASINO5_6559
if 
  not Char.IsDead(66@(40@,3i))
goto_if_false @CASINO5_6646
Char.ClearTasks(66@(40@,3i))
42@ = Sequence.Open()
Task.LeaveCar(-1, 57@(40@,3i))
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(42@)
Char.PerformSequence(66@(40@,3i), 42@)
Sequence.Clear(42@)
goto @CASINO5_6646

:CASINO5_6646
if 
  not Char.IsDead(69@(40@,3i))
goto_if_false @CASINO5_6733
Char.ClearTasks(69@(40@,3i))
42@ = Sequence.Open()
Task.LeaveCar(-1, 57@(40@,3i))
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(42@)
Char.PerformSequence(69@(40@,3i), 42@)
Sequence.Clear(42@)
goto @CASINO5_6733

:CASINO5_6733
if 
  89@ == 0
goto_if_false @CASINO5_6873
Blip.Remove(60@(40@,3i))
60@(40@,3i) = Blip.AddForCar(57@(40@,3i))
Blip.SetAsFriendly(60@(40@,3i), True)
Car.LockDoors(57@(40@,3i), CarLock.Unlocked)
if or
  not Char.IsDead(66@(40@,3i))
  not Char.IsDead(69@(40@,3i))
goto_if_false @CASINO5_6850
Text.PrintNow('CAS5_11', 8000, 1)
goto @CASINO5_6866

:CASINO5_6850
Text.PrintNow('CAS5_12', 8000, 1)

:CASINO5_6866
goto @CASINO5_6882

:CASINO5_6873
Blip.Remove(60@(40@,3i))

:CASINO5_6882
World.SetCarDensityMultiplier(0.6)
World.SetPedDensityMultiplier(0.6)
Path.UnmarkAllRoadNodesAsDontWander
109@ = 100.0
106@ = 0
101@ = -1
102@ = -1
107@ = -10.0
108@ = -10.0
77@ = 0
Car.SetHealth(57@(40@,3i), 1250)
goto @CASINO5_8780

:CASINO5_6975
goto @CASINO5_7010

:CASINO5_6982
51@ = 1
set_lvar_text_label 52@s = 'CAS5_17'
goto @CASINO5_12932

:CASINO5_7010
goto @CASINO5_7017

:CASINO5_7017
40@ += 1
goto @CASINO5_3077

:CASINO5_7031
gosub @CASINO5_7045
goto @CASINO5_3066

:CASINO5_7045
if 
  TIMERB > 500
goto_if_false @CASINO5_7419
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
40@ = 0

:CASINO5_7085
if 
  3 > 40@
goto_if_false @CASINO5_7412
if 
  not Car.IsDead(57@(40@,3i))
goto_if_false @CASINO5_7398
if 
  63@(40@,3i) == 0
goto_if_false @CASINO5_7354
$x, $y, $z = Car.GetCoordinates(57@(40@,3i))
$distance = Math.GetDistanceBetweenCoords2D($player_x, $player_y, $x, $y)
switch_start 93@(40@,3i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO5_7347 {caseNum1} 0 {caseLabel1} @CASINO5_7247 {caseNum2} 1 {caseLabel2} @CASINO5_7297 {caseNum3} -1 {caseLabel3} @CASINO5_7347 {caseNum4} -1 {caseLabel4} @CASINO5_7347 {caseNum5} -1 {caseLabel5} @CASINO5_7347 {caseNum6} -1 {caseLabel6} @CASINO5_7347 {caseNum7} -1 {caseLabel7} @CASINO5_7347

:CASINO5_7247
if 
  120.0 > $distance
goto_if_false @CASINO5_7290
Car.SetLoadCollisionFlag(57@(40@,3i), True)
93@(40@,3i) += 1

:CASINO5_7290
goto @CASINO5_7347

:CASINO5_7297
if 
  $distance > 140.0
goto_if_false @CASINO5_7340
Car.SetLoadCollisionFlag(57@(40@,3i), False)
93@(40@,3i) -= 1

:CASINO5_7340
goto @CASINO5_7347

:CASINO5_7347
goto @CASINO5_7398

:CASINO5_7354
if 
  93@(40@,3i) == 0
goto_if_false @CASINO5_7398
Car.SetLoadCollisionFlag(57@(40@,3i), True)
93@(40@,3i) = 1

:CASINO5_7398
40@ += 1
goto @CASINO5_7085

:CASINO5_7412
TIMERB = 0

:CASINO5_7419
return 

:CASINO5_7421
45@ = Math.RandomIntInRange(0, 2)
switch_start 40@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @CASINO5_7631 {caseNum1} 0 {caseLabel1} @CASINO5_7493 {caseNum2} 1 {caseLabel2} @CASINO5_7539 {caseNum3} 2 {caseLabel3} @CASINO5_7585 {caseNum4} -1 {caseLabel4} @CASINO5_7631 {caseNum5} -1 {caseLabel5} @CASINO5_7631 {caseNum6} -1 {caseLabel6} @CASINO5_7631 {caseNum7} -1 {caseLabel7} @CASINO5_7631

:CASINO5_7493
if 
  45@ == 0
goto_if_false @CASINO5_7525
74@ = 1
goto @CASINO5_7532

:CASINO5_7525
74@ = 2

:CASINO5_7532
goto @CASINO5_7631

:CASINO5_7539
if 
  45@ == 0
goto_if_false @CASINO5_7571
74@ = 0
goto @CASINO5_7578

:CASINO5_7571
74@ = 2

:CASINO5_7578
goto @CASINO5_7631

:CASINO5_7585
if 
  45@ == 0
goto_if_false @CASINO5_7617
74@ = 0
goto @CASINO5_7624

:CASINO5_7617
74@ = 1

:CASINO5_7624
goto @CASINO5_7631

:CASINO5_7631
if 
  not Car.IsDead(57@(74@,3i))
goto_if_false @CASINO5_7969
96@ = 5000
Car.SetHealth(57@(74@,3i), 96@)
Car.SetCanBurstTires(57@(74@,3i), False)
if 
  not Char.IsDead(66@(74@,3i))
goto_if_false @CASINO5_7720
Char.ClearTasks(66@(74@,3i))
Char.Delete(66@(74@,3i))

:CASINO5_7720
66@(74@,3i) = Char.CreateInsideCar(57@(74@,3i), PedType.Mission1, 124)
Char.SetCantBeDraggedOut(66@(74@,3i), True)
Char.GiveWeapon(66@(74@,3i), WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(66@(74@,3i), WeaponType.Mp5)
Char.SetDecisionMaker(66@(74@,3i), 47@)
if 
  not Char.IsDead(69@(74@,3i))
goto_if_false @CASINO5_7826
Char.ClearTasks(69@(74@,3i))
Char.Delete(69@(74@,3i))

:CASINO5_7826
69@(74@,3i) = Char.CreateAsPassenger(57@(74@,3i), PedType.Mission1, 125, 0)
Char.SetCantBeDraggedOut(69@(74@,3i), True)
Char.GiveWeapon(69@(74@,3i), WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(69@(74@,3i), WeaponType.Mp5)
Char.SetDecisionMaker(69@(74@,3i), 47@)
72@ = Char.CreateAsPassenger(57@(74@,3i), PedType.Special, 290, 1)
Char.SetStayInCarWhenJacked(72@, True)
Char.SetForceDieInCar(72@, True)
Char.SetDecisionMaker(72@, 48@)
Char.SetGetOutUpsideDownCar(72@, False)
TIMERA = 0
79@ = 0
63@(74@,3i) = 4

:CASINO5_7969
return 

:CASINO5_7971
105@ = 0

:CASINO5_7978
if 
  2 > 105@
goto_if_false @CASINO5_8778
if and
  not Char.IsDead(99@(105@,2i))
  not Car.IsDead(97@(105@,2i))
goto_if_false @CASINO5_8405
switch_start 101@(105@,2i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO5_8398 {caseNum1} 1 {caseLabel1} @CASINO5_8092 {caseNum2} 2 {caseLabel2} @CASINO5_8321 {caseNum3} -1 {caseLabel3} @CASINO5_8398 {caseNum4} -1 {caseLabel4} @CASINO5_8398 {caseNum5} -1 {caseLabel5} @CASINO5_8398 {caseNum6} -1 {caseLabel6} @CASINO5_8398 {caseNum7} -1 {caseLabel7} @CASINO5_8398

:CASINO5_8092
if 
  106@ == 0
goto_if_false @CASINO5_8124
gosub @CASINO5_9852
goto @CASINO5_8314

:CASINO5_8124
$x, $y, $z = Car.GetCoordinates(97@(105@,2i))
$z = Math.GetDistanceBetweenCoords2D(1074.461, 2392.227, $x, $y)
$distance = Math.GetDistanceBetweenCoords2D(1010.673, 1487.184, $x, $y)
Char.ClearTasks(99@(105@,2i))
if 
  is_float_var_greater_than_float_var $distance > $z
goto_if_false @CASINO5_8261
Task.CarDriveToCoord(99@(105@,2i), 97@(105@,2i), 1074.461, 2392.227, 9.6796, 25.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
goto @CASINO5_8303

:CASINO5_8261
Task.CarDriveToCoord(99@(105@,2i), 97@(105@,2i), 1010.673, 1487.184, 9.6797, 25.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:CASINO5_8303
101@(105@,2i) = 2

:CASINO5_8314
goto @CASINO5_8398

:CASINO5_8321
if 
  106@ == 0
goto_if_false @CASINO5_8391
101@(105@,2i) = 1
Char.ClearTasks(99@(105@,2i))
Task.CarMission(99@(105@,2i), 97@(105@,2i), 57@(74@,3i), CarMission.RamPlayerClose, 32.0, DrivingMode.AvoidCars)

:CASINO5_8391
goto @CASINO5_8398

:CASINO5_8398
goto @CASINO5_8764

:CASINO5_8405
switch_start 101@(105@,2i) {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASINO5_8472 {caseNum1} -1 {caseLabel1} @CASINO5_8508 {caseNum2} 0 {caseLabel2} @CASINO5_8515 {caseNum3} -1 {caseLabel3} @CASINO5_8764 {caseNum4} -1 {caseLabel4} @CASINO5_8764 {caseNum5} -1 {caseLabel5} @CASINO5_8764 {caseNum6} -1 {caseLabel6} @CASINO5_8764 {caseNum7} -1 {caseLabel7} @CASINO5_8764

:CASINO5_8472
Char.MarkAsNoLongerNeeded(99@(105@,2i))
Car.MarkAsNoLongerNeeded(97@(105@,2i))
101@(105@,2i) = -1
goto @CASINO5_8764

:CASINO5_8508
goto @CASINO5_8764

:CASINO5_8515
if 
  103@(105@,2i) > 9000
goto_if_false @CASINO5_8757
if 
  Streaming.HasModelLoaded(405)
goto_if_false @CASINO5_8757
gosub @CASINO5_10001
if 
  114@ == 1
goto_if_false @CASINO5_8757
97@(105@,2i) = Car.Create(405, 118@, 119@, 120@)
Car.SetHeading(97@(105@,2i), 121@)
Car.LockDoors(97@(105@,2i), CarLock.LockoutPlayerOnly)
Car.SetCanBeVisiblyDamaged(97@(105@,2i), False)
Car.SetHealth(97@(105@,2i), 5000)
99@(105@,2i) = Char.CreateInsideCar(97@(105@,2i), PedType.Mission1, 125)
Char.GiveWeapon(99@(105@,2i), WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(99@(105@,2i), WeaponType.Mp5)
Char.SetDecisionMaker(99@(105@,2i), 48@)
Char.SetCantBeDraggedOut(99@(105@,2i), True)
Task.CarMission(99@(105@,2i), 97@(105@,2i), 57@(74@,3i), CarMission.RamPlayerClose, 32.0, DrivingMode.AvoidCars)
101@(105@,2i) = 1

:CASINO5_8757
goto @CASINO5_8764

:CASINO5_8764
105@ += 1
goto @CASINO5_7978

:CASINO5_8778
return 

:CASINO5_8780
wait 0
if 
  not Char.IsDead(72@)
goto_if_false @CASINO5_9817
if 
  not Car.IsDead(57@(74@,3i))
goto_if_false @CASINO5_9810
if 
  Char.IsInCar($scplayer, 57@(74@,3i))
goto_if_false @CASINO5_9197
if 
  110@ == 0
goto_if_false @CASINO5_8999
Blip.Remove(60@(74@,3i))
44@ = Blip.AddForCoord(981.4241, 2132.469, 9.8203)
if 
  77@ == 0
goto_if_false @CASINO5_8976
Text.PrintNow('CAS5_13', 8000, 1)
101@ = 0
102@ = 0
103@ = 0
104@ = 0
77@ = 1
Car.MarkAsNoLongerNeeded(55@)
Streaming.MarkModelAsNoLongerNeeded(470)
goto @CASINO5_8992

:CASINO5_8976
Text.PrintNow('CAS5_14', 8000, 1)

:CASINO5_8992
110@ = 1

:CASINO5_8999
if 
  Char.LocateInCar2D($scplayer, 981.4241, 2132.469, 109@, 109@, False)
goto_if_false @CASINO5_9130
if 
  Char.LocateInCar3D($scplayer, 981.4241, 2132.469, 9.8203, 4.0, 4.0, 4.0, True)
goto_if_false @CASINO5_9088
goto @CASINO5_10933

:CASINO5_9088
if 
  106@ == 0
goto_if_false @CASINO5_9123
109@ = 120.0
106@ = 1

:CASINO5_9123
goto @CASINO5_9165

:CASINO5_9130
if 
  106@ == 1
goto_if_false @CASINO5_9165
109@ = 100.0
106@ = 0

:CASINO5_9165
if 
  112@ == 1
goto_if_false @CASINO5_9190
gosub @CASINO5_10202

:CASINO5_9190
goto @CASINO5_9550

:CASINO5_9197
if 
  110@ == 1
goto_if_false @CASINO5_9270
Blip.Remove(44@)
60@(74@,3i) = Blip.AddForCar(57@(74@,3i))
Blip.SetAsFriendly(60@(74@,3i), True)
Text.PrintNow('CAS5_15', 8000, 1)
110@ = 0

:CASINO5_9270
if 
  2 > 111@
goto_if_false @CASINO5_9550
if 
  111@ == 0
goto_if_false @CASINO5_9415
if 
  not Char.IsDead(66@(74@,3i))
goto_if_false @CASINO5_9401
if 
  not Char.IsInAnyCar(66@(74@,3i))
goto_if_false @CASINO5_9394
set_var_int_to_constant $load_sample = 17612
set_var_text_label s$load_text = 'CAS5_EA'
start_new_script @A_ALAP 2 100 66@(74@,3i) 
111@ += 1

:CASINO5_9394
goto @CASINO5_9408

:CASINO5_9401
111@ += 1

:CASINO5_9408
goto @CASINO5_9550

:CASINO5_9415
if 
  not Char.IsDead(69@(74@,3i))
goto_if_false @CASINO5_9543
if 
  not Char.IsInAnyCar(69@(74@,3i))
goto_if_false @CASINO5_9536
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO5_9536
$SLOT_status($preload_slot,2i) = -4
set_var_int_to_constant $load_sample = 17613
set_var_text_label s$load_text = 'CAS5_EB'
start_new_script @A_ALAP 2 100 69@(74@,3i) 
111@ += 1

:CASINO5_9536
goto @CASINO5_9550

:CASINO5_9543
111@ += 1

:CASINO5_9550
if 
  112@ == 0
goto_if_false @CASINO5_9758
if 
  not Car.IsDead(97@)
goto_if_false @CASINO5_9638
if 
  Char.LocateAnyMeansCar2D($scplayer, 97@, 10.0, 10.0, False)
goto_if_false @CASINO5_9638
Text.PrintNow('CAS5_16', 8000, 1)
112@ = 1

:CASINO5_9638
if 
  112@ == 0
goto_if_false @CASINO5_9726
if 
  not Car.IsDead(98@)
goto_if_false @CASINO5_9726
if 
  Char.LocateAnyMeansCar2D($scplayer, 98@, 10.0, 10.0, False)
goto_if_false @CASINO5_9726
Text.PrintNow('CAS5_16', 8000, 1)
112@ = 1

:CASINO5_9726
if 
  112@ == 1
goto_if_false @CASINO5_9758
TIMERB = 0
123@ = 7

:CASINO5_9758
37@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 39@ = 37@
sub_int_lvar_from_int_lvar 39@ -= 38@
set_lvar_int_to_lvar_int 38@ = 37@
add_int_lvar_to_int_lvar 103@ += 39@
add_int_lvar_to_int_lvar 104@ += 39@
gosub @CASINO5_7971

:CASINO5_9810
goto @CASINO5_9845

:CASINO5_9817
51@ = 1
set_lvar_text_label 52@s = 'CAS5_17'
goto @CASINO5_12932

:CASINO5_9845
goto @CASINO5_8780

:CASINO5_9852
if 
  103@(105@,2i) > 500
goto_if_false @CASINO5_9999
if and
  not Char.LocateAnyMeansCar2D($scplayer, 97@(105@,2i), 75.0, 75.0, False)
  not Car.IsOnScreen(97@(105@,2i))
goto_if_false @CASINO5_9988
gosub @CASINO5_10001
if 
  114@ == 1
goto_if_false @CASINO5_9988
Car.SetCoordinates(97@(105@,2i), 118@, 119@, 120@)
Car.SetHeading(97@(105@,2i), 121@)
Car.SetForwardSpeed(97@(105@,2i), 32.0)

:CASINO5_9988
103@(105@,2i) = 0

:CASINO5_9999
return 

:CASINO5_10001
113@ = 1
114@ = 0

:CASINO5_10015
if and
  10 > 113@
  114@ == 0
goto_if_false @CASINO5_10200
115@, 116@, 117@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 107@(105@,2f), 0.0)
118@, 119@, 120@, 121@ = Path.GetNthClosestCarNodeWithHeading(115@, 116@, 117@, 113@)
if 
  not World.IsPointObscuredByAMissionEntity(118@, 119@, 120@, 5.0, 5.0, 5.0)
goto_if_false @CASINO5_10186
if 
  not Camera.IsPointOnScreen(118@, 119@, 120@, 5.0)
goto_if_false @CASINO5_10186
World.ClearArea(118@, 119@, 120@, 5.0, True)
114@ = 1

:CASINO5_10186
113@ += 1
goto @CASINO5_10015

:CASINO5_10200
return 

:CASINO5_10202
switch_start 123@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CASINO5_10931 {caseNum1} 0 {caseLabel1} @CASINO5_10330 {caseNum2} 1 {caseLabel2} @CASINO5_10363 {caseNum3} 2 {caseLabel3} @CASINO5_10452 {caseNum4} 4 {caseLabel4} @CASINO5_10499 {caseNum5} 5 {caseLabel5} @CASINO5_10588 {caseNum6} 7 {caseLabel6} @CASINO5_10635 {caseNum7} 8 {caseLabel7} @CASINO5_10677
switch_continued 9 {caseLabel1} @CASINO5_10813 {caseNum2} 10 {caseLabel2} @CASINO5_10898 {caseNum3} -1 {caseLabel3} @CASINO5_10931 {caseNum4} -1 {caseLabel4} @CASINO5_10931 {caseNum5} -1 {caseLabel5} @CASINO5_10931 {caseNum6} -1 {caseLabel6} @CASINO5_10931 {caseNum7} -1 {caseLabel7} @CASINO5_10931 {caseNum8} -1 {caseLabel8} @CASINO5_10931 {caseNum9} -1 {caseLabel9} @CASINO5_10931

:CASINO5_10330
if 
  TIMERB > 8500
goto_if_false @CASINO5_10356
123@ += 1

:CASINO5_10356
goto @CASINO5_10931

:CASINO5_10363
if 
  2 > 122@
goto_if_false @CASINO5_10438
set_var_int_to_lvar_int $load_sample = 124@(122@,16i)
set_var_text_label s$load_text = 140@(122@,16s)
start_new_script @A_ALAP 0 100 
122@ += 1
123@ += 1
goto @CASINO5_10452

:CASINO5_10438
123@ = 3
goto @CASINO5_10931

:CASINO5_10452
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO5_10492
123@ = 1
$SLOT_status($preload_slot,2i) = -4

:CASINO5_10492
goto @CASINO5_10931

:CASINO5_10499
if 
  7 > 122@
goto_if_false @CASINO5_10574
set_var_int_to_lvar_int $load_sample = 124@(122@,16i)
set_var_text_label s$load_text = 140@(122@,16s)
start_new_script @A_ALAP 0 100 
122@ += 1
123@ += 1
goto @CASINO5_10588

:CASINO5_10574
123@ = 6
goto @CASINO5_10931

:CASINO5_10588
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO5_10628
123@ = 4
$SLOT_status($preload_slot,2i) = -4

:CASINO5_10628
goto @CASINO5_10931

:CASINO5_10635
if 
  TIMERB > 8500
goto_if_false @CASINO5_10670
122@ = Math.RandomIntInRange(7, 14)
123@ += 1

:CASINO5_10670
goto @CASINO5_10931

:CASINO5_10677
if 
  not Car.IsDead(97@)
goto_if_false @CASINO5_10728
if 
  Car.HasBeenDamagedByCar(57@(74@,3i), 97@)
goto_if_false @CASINO5_10723
123@ = 9

:CASINO5_10723
Car.ClearLastDamageEntity(97@)

:CASINO5_10728
if 
  not Car.IsDead(98@)
goto_if_false @CASINO5_10797
if 
  123@ <> 9
goto_if_false @CASINO5_10792
if 
  Car.HasBeenDamagedByCar(57@(74@,3i), 98@)
goto_if_false @CASINO5_10792
123@ = 9

:CASINO5_10792
Car.ClearLastDamageEntity(98@)

:CASINO5_10797
Car.ClearLastDamageEntity(57@(74@,3i))
goto @CASINO5_10931

:CASINO5_10813
set_var_int_to_lvar_int $load_sample = 124@(122@,16i)
set_var_text_label s$load_text = 140@(122@,16s)
start_new_script @A_ALAP 2 100 72@ 
123@ = 10
122@ += 1
if 
  122@ == 14
goto_if_false @CASINO5_10891
122@ = 7

:CASINO5_10891
TIMERB = 0

:CASINO5_10898
if 
  TIMERB > 10000
goto_if_false @CASINO5_10924
123@ = 8

:CASINO5_10924
goto @CASINO5_10931

:CASINO5_10931
return 

:CASINO5_10933
Camera.DoFade(0, Fade.Out)

:CASINO5_10939
if 
  Camera.GetFadingStatus
goto_if_false @CASINO5_10963
wait 0
goto @CASINO5_10939

:CASINO5_10963
Text.ClearPrints
World.ClearArea(979.7058, 2137.247, 9.8203, 200.0, True)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
if 
  not Car.IsDead(57@(74@,3i))
goto_if_false @CASINO5_11032
Car.SetHealth(57@(74@,3i), 3000)

:CASINO5_11032
Streaming.RequestModel(126)
Streaming.RequestModel(127)
Streaming.RequestModel(#CJ_WHEELCHAIR1)

:CASINO5_11045
if or
  not Streaming.HasModelLoaded(126)
  not Streaming.HasModelLoaded(127)
  not Streaming.HasModelLoaded(#CJ_WHEELCHAIR1)
goto_if_false @CASINO5_11080
wait 0
goto @CASINO5_11045

:CASINO5_11080
if 
  not Car.IsDead(57@(74@,3i))
goto_if_false @CASINO5_11182
Car.SetCoordinates(57@(74@,3i), 979.7058, 2137.247, 9.8203)
Car.SetHeading(57@(74@,3i), 237.8897)
Char.WarpFromCarToCoord($scplayer, 998.5278, 2118.589, 9.8203)
172@ = Char.CreateInsideCar(57@(74@,3i), PedType.Mission1, 126)
Char.SetDecisionMaker(172@, 48@)

:CASINO5_11182
Camera.SetFixedPosition(972.8329, 2141.334, 11.0496, 0.0, 0.0, 0.0)
Camera.PointAtPoint(973.6994, 2140.839, 11.1103, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:CASINO5_11240
if 
  Camera.GetFadingStatus
goto_if_false @CASINO5_11264
wait 0
goto @CASINO5_11240

:CASINO5_11264
if and
  not Car.IsDead(57@(74@,3i))
  not Char.IsDead(172@)
goto_if_false @CASINO5_11351
42@ = Sequence.Open()
Task.CarTempAction(-1, 57@(74@,3i), TempAction.ReverseStraight, 500)
Task.CarTempAction(-1, 57@(74@,3i), TempAction.HandbrakeStraight, 300)
Task.StandStill(-1, 8000)
Sequence.Close(42@)
Char.PerformSequence(172@, 42@)
Sequence.Clear(42@)

:CASINO5_11351
46@ = 0

:CASINO5_11358
if 
  46@ == 0
goto_if_false @CASINO5_11436
wait 0
if 
  not Char.IsDead(172@)
goto_if_false @CASINO5_11429
43@ = Char.GetSequenceProgress(172@)
if 
  43@ > 0
goto_if_false @CASINO5_11429
46@ = 1

:CASINO5_11429
goto @CASINO5_11358

:CASINO5_11436
if and
  not Char.IsDead(172@)
  not Car.IsDead(57@(74@,3i))
goto_if_false @CASINO5_11696
Char.WarpFromCarToCoord(172@, 971.7789, 2137.288, 9.8203)
Char.SetHeading(172@, 316.6316)
Char.ClearTasksImmediately(172@)
42@ = Sequence.Open()
Task.GoStraightToCoord(-1, 974.2065, 2140.108, 9.8203, MoveState.Walk, -2)
Task.LookAtVehicle(-1, 57@(74@,3i), 8000)
Task.StandStill(-1, 8000)
Sequence.Close(42@)
Char.PerformSequence(172@, 42@)
Sequence.Clear(42@)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @CASINO5_11591
Char.WarpIntoCar($scplayer, 57@(74@,3i))

:CASINO5_11591
173@ = Char.Create(PedType.Mission1, 127, 975.8311, 2144.959, 9.8203)
Char.SetHeading(173@, 162.2693)
Char.SetDecisionMaker(173@, 48@)
42@ = Sequence.Open()
Task.GoStraightToCoord(-1, 975.0208, 2141.366, 9.8203, MoveState.Walk, -2)
Task.LookAtChar(-1, 173@, 8000)
Task.StandStill(-1, 8000)
Sequence.Close(42@)
Char.PerformSequence(173@, 42@)
Sequence.Clear(42@)

:CASINO5_11696
46@ = 0

:CASINO5_11703
if 
  46@ == 0
goto_if_false @CASINO5_11781
wait 0
if 
  not Char.IsDead(172@)
goto_if_false @CASINO5_11774
43@ = Char.GetSequenceProgress(172@)
if 
  43@ > 0
goto_if_false @CASINO5_11774
46@ = 1

:CASINO5_11774
goto @CASINO5_11703

:CASINO5_11781
set_var_int_to_constant $load_sample = 17614
set_var_text_label s$load_text = 'CAS5_DA'
start_new_script @A_ALAP 2 200 172@ 
46@ = 0

:CASINO5_11826
if 
  46@ == 0
goto_if_false @CASINO5_11904
wait 0
if 
  not Char.IsDead(173@)
goto_if_false @CASINO5_11897
43@ = Char.GetSequenceProgress(173@)
if 
  43@ > 0
goto_if_false @CASINO5_11897
46@ = 1

:CASINO5_11897
goto @CASINO5_11826

:CASINO5_11904
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @CASINO5_11937
wait 0
goto @CASINO5_11904

:CASINO5_11937
set_var_int_to_constant $load_sample = 17611
set_var_text_label s$load_text = 'CAS5_DB'
start_new_script @A_ALAP 2 200 173@ 
TIMERA = 0

:CASINO5_11982
if 
  4500 > TIMERA
goto_if_false @CASINO5_12012
wait 0
goto @CASINO5_11982

:CASINO5_12012
Camera.DoFade(0, Fade.Out)

:CASINO5_12018
if 
  Camera.GetFadingStatus
goto_if_false @CASINO5_12042
wait 0
goto @CASINO5_12018

:CASINO5_12042
174@ = Object.Create(#CJ_WHEELCHAIR1, 971.5, 2140.5, 9.8203)
Object.SetHeading(174@, 180.0)
if 
  not Char.IsDead(72@)
goto_if_false @CASINO5_12179
Char.WarpFromCarToCoord(72@, 0.0, 0.0, 0.0)
Char.AttachToObject(72@, 174@, 0.0, -0.575, 0.525, 2, 0.0, WeaponType.Unarmed)
Task.PlayAnim(72@, "SEAT_DOWN", "PED", 9.0, False, False, False, True, -1)

:CASINO5_12179
if 
  not Char.IsDead(172@)
goto_if_false @CASINO5_12225
Char.SetCoordinates(172@, 972.5, 2140.5, 9.8203)
Char.SetHeading(172@, 0.0)

:CASINO5_12225
if 
  not Char.IsDead(173@)
goto_if_false @CASINO5_12271
Char.SetCoordinates(173@, 971.5, 2139.5, 9.8203)
Char.SetHeading(173@, 0.0)

:CASINO5_12271
46@ = 0

:CASINO5_12278
if 
  46@ == 0
goto_if_false @CASINO5_12378
wait 0
if 
  not Char.IsDead(72@)
goto_if_false @CASINO5_12371
if 
  Char.IsPlayingAnim(72@, "SEAT_DOWN")
goto_if_false @CASINO5_12371
Char.SetAnimCurrentTime(72@, "SEAT_DOWN", 1.0)
46@ = 1

:CASINO5_12371
goto @CASINO5_12278

:CASINO5_12378
Camera.SetFixedPosition(971.4178, 2146.135, 14.0976, 0.0, 0.0, 0.0)
Camera.PointAtPoint(971.5663, 2145.275, 13.6106, SwitchType.JumpCut)
TIMERA = 0

:CASINO5_12436
if 
  200 > TIMERA
goto_if_false @CASINO5_12466
wait 0
goto @CASINO5_12436

:CASINO5_12466
if 
  not Char.IsDead(172@)
goto_if_false @CASINO5_12487
Char.ClearTasks(172@)

:CASINO5_12487
Camera.DoFade(500, Fade.In)

:CASINO5_12494
if 
  Camera.GetFadingStatus
goto_if_false @CASINO5_12518
wait 0
goto @CASINO5_12494

:CASINO5_12518
if 
  not Char.IsDead(172@)
goto_if_false @CASINO5_12558
Task.GoStraightToCoord(172@, 972.8889, 2148.039, 9.8203, MoveState.Walk, -2)

:CASINO5_12558
if 
  not Car.IsDead(57@(74@,3i))
goto_if_false @CASINO5_12616
Task.CarDriveToCoord($scplayer, 57@(74@,3i), 991.3741, 2136.312, 9.8203, 5.0, DriveMode.Normal, 0, DrivingMode.StopForCars)

:CASINO5_12616
TIMERA = 0

:CASINO5_12623
if 
  1700 > TIMERA
goto_if_false @CASINO5_12653
wait 0
goto @CASINO5_12623

:CASINO5_12653
Camera.DoFade(1000, Fade.Out)

:CASINO5_12660
if 
  Camera.GetFadingStatus
goto_if_false @CASINO5_12684
wait 0
goto @CASINO5_12660

:CASINO5_12684
if 
  not Car.IsDead(57@(74@,3i))
goto_if_false @CASINO5_12750
Car.SetForwardSpeed(57@(74@,3i), 0.0)
Char.WarpFromCarToCoord($scplayer, 0.0, 0.0, 0.0)
Char.WarpIntoCar($scplayer, 57@(74@,3i))

:CASINO5_12750
Char.DetachFromCar(72@)
Char.Delete(72@)
Char.Delete(172@)
Char.Delete(173@)
Object.Delete(174@)
Char.ClearTasks($scplayer)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Hud.SwitchWidescreen(True)
TIMERA = 0

:CASINO5_12802
if 
  200 > TIMERA
goto_if_false @CASINO5_12832
wait 0
goto @CASINO5_12802

:CASINO5_12832
Camera.DoFade(0, Fade.In)

:CASINO5_12838
$flag_casino_mission_counter += 1
Stat.RegisterMissionPassed('CASINO5')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSS', 5000, 5000, TextStyle.Middle)
Player.AddScore($player1, 5000)
Stat.AwardPlayerMissionRespect(5)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Blip.Remove($vcrash_contact_blip)
$vcrash_contact_blip = Blip.AddSpriteForContactPoint($vcrashX, $vcrashY, $vcrashZ, $crash_blip_icon)
start_new_script @VCRASH 
return 

:CASINO5_12932
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if 
  51@ == 1
goto_if_false @CASINO5_12976
Text.PrintNow(52@s, 5000, 1)

:CASINO5_12976
return 

:CASINO5_12978
start_new_script @A_TERM 
Path.UnmarkAllRoadNodesAsDontWander
if 
  Player.IsPlaying($player1)
goto_if_false @CASINO5_13015
Player.SetGroupRecruitment($player1, True)
Game.SetScriptLimitToGangSize(99)

:CASINO5_13015
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Blip.Remove(44@)
Blip.Remove(60@)
Blip.Remove(61@)
Blip.Remove(62@)
Char.MarkAsNoLongerNeeded(66@)
Char.MarkAsNoLongerNeeded(67@)
Char.MarkAsNoLongerNeeded(68@)
Char.MarkAsNoLongerNeeded(69@)
Char.MarkAsNoLongerNeeded(70@)
Char.MarkAsNoLongerNeeded(71@)
Char.MarkAsNoLongerNeeded(72@)
Char.MarkAsNoLongerNeeded(99@)
Char.MarkAsNoLongerNeeded(100@)
Car.MarkAsNoLongerNeeded(55@)
Car.MarkAsNoLongerNeeded(57@)
Car.MarkAsNoLongerNeeded(58@)
Car.MarkAsNoLongerNeeded(59@)
Car.MarkAsNoLongerNeeded(97@)
Car.MarkAsNoLongerNeeded(98@)
CarGenerator.DontSuppressCarModel(470)
Streaming.UnloadSpecialCharacter(1)
Streaming.MarkModelAsNoLongerNeeded(275)
Streaming.MarkModelAsNoLongerNeeded(124)
Streaming.MarkModelAsNoLongerNeeded(125)
Streaming.MarkModelAsNoLongerNeeded(126)
Streaming.MarkModelAsNoLongerNeeded(127)
Streaming.MarkModelAsNoLongerNeeded(470)
Streaming.MarkModelAsNoLongerNeeded(416)
Streaming.MarkModelAsNoLongerNeeded(405)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(#CJ_WHEELCHAIR1)
Streaming.RemoveAnimation("GANGS")
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

//-------------Mission 90---------------
// Originally: The Meat Business

:CASINO6
script_name 'CASINO6'
gosub @CASINO6_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO6_38
gosub @CASINO6_31097

:CASINO6_38
gosub @CASINO6_31845
terminate_this_script 

:CASINO6_47
Stat.RegisterMissionGiven
$onmission = 1
World.SwitchEntryExit('ABATOIR', True)
Text.LoadMissionText('CASINO6')
Char.SetCoordinates($scplayer, 2179.934, 1684.148, 10.0533)
Char.SetHeading($scplayer, 108.0825)
Char.FreezePosition($scplayer, True)
Player.SetControl($player1, False)
Player.SetGroupRecruitment($player1, False)
Game.SetScriptLimitToGangSize(0)
$iTerminateAllAmbience = 1
Streaming.SetAreaVisible(2)
Cutscene.Load('CAS_6A')

:CASINO6_157
if 
  not Cutscene.HasLoaded
goto_if_false @CASINO6_181
wait 0
goto @CASINO6_157

:CASINO6_181
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CASINO6_190
if 
  not Cutscene.HasFinished
goto_if_false @CASINO6_214
wait 0
goto @CASINO6_190

:CASINO6_214
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CASINO6_227
if 
  Camera.GetFadingStatus
goto_if_false @CASINO6_251
wait 0
goto @CASINO6_227

:CASINO6_251
Cutscene.Clear
Streaming.SetAreaVisible(0)
Game.SetScriptLimitToGangSize(99)
if 
  230@ == 1
goto_if_false @CASINO6_322
314@ = Car.Create(405, 0.0, 0.0, 0.0)
218@ = Blip.AddForCoord(0.0, 0.0, 0.0)

:CASINO6_322
Player.SetGroupRecruitment($player1, False)
start_new_script @A_CONT 
Char.SetAreaVisible($scplayer, 0)
Streaming.LoadSceneInDirection(2179.934, 1684.148, 10.0533, 108.0825)
34@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
35@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
Game.SetRelationship(RelationshipType.Hate, PedType.Special, PedType.Mission2)
Game.SetRelationship(RelationshipType.Respect, PedType.Special, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission2, PedType.Special)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission2, PedType.Player1)
308@ = Player.GetGroup($player1)
Group.SetDefaultTaskAllocator(308@, DefaultTaskAllocator.FollowAnyMeans)
Streaming.LoadSpecialCharacter(1, 'ROSE')

:CASINO6_440
if 
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @CASINO6_466
wait 0
goto @CASINO6_440

:CASINO6_466
39@ = Char.Create(PedType.Special, 290, 2181.372, 1680.926, 10.0636)
Char.SetHeading(39@, 71.6745)
Char.SetAreaVisible(39@, 0)
40@ = Blip.AddForChar(39@)
Blip.ChangeDisplay(40@, BlipDisplay.BlipOnly)
Blip.SetAsFriendly(40@, True)
Char.SetDecisionMaker(39@, 34@)
Char.SetNeverTargeted(39@, True)
Char.SetSuffersCriticalHits(39@, False)
Char.SetHealth(39@, 300)
Char.SetNeverLeavesGroup(39@, True)
Group.SetMember(308@, 39@)
Char.SetShootRate(39@, 100)
218@ = Blip.AddForCoord(967.3132, 2161.154, 9.8203)
Text.PrintNow('CAS6_10', 8000, 1)
Char.FreezePosition($scplayer, False)
Player.SetControl($player1, True)
231@ = Pickup.Create(#HEALTH, PickupType.Once, 958.9762, 2096.836, 1011.1)
Camera.DoFade(500, Fade.In)

:CASINO6_664
if 
  Camera.GetFadingStatus
goto_if_false @CASINO6_688
wait 0
goto @CASINO6_664

:CASINO6_688
set_lvar_text_label 364@s = 'CAS6_AA'
set_lvar_int_to_constant 318@ = 5615
set_lvar_int_to_var_int 341@ = $scplayer
set_lvar_text_label 366@s = 'CAS6_AB'
set_lvar_int_to_constant 319@ = 5600
set_lvar_int_to_lvar_int 342@ = 39@
set_lvar_text_label 368@s = 'CAS6_AC'
set_lvar_int_to_constant 320@ = 5601
set_lvar_int_to_lvar_int 343@ = 39@
set_lvar_text_label 370@s = 'CAS6_AD'
set_lvar_int_to_constant 321@ = 5602
set_lvar_int_to_lvar_int 344@ = 39@
set_lvar_text_label 372@s = 'CAS6_AE'
set_lvar_int_to_constant 322@ = 5616
set_lvar_int_to_var_int 345@ = $scplayer
set_lvar_text_label 374@s = 'CAS6_AF'
set_lvar_int_to_constant 323@ = 5603
set_lvar_int_to_lvar_int 346@ = 39@
set_lvar_text_label 376@s = 'CAS6_BA'
set_lvar_int_to_constant 324@ = 5604
set_lvar_int_to_lvar_int 347@ = 39@
set_lvar_text_label 378@s = 'CAS6_BB'
set_lvar_int_to_constant 325@ = 5605
set_lvar_int_to_lvar_int 348@ = 39@
set_lvar_text_label 380@s = 'CAS6_BC'
set_lvar_int_to_constant 326@ = 5606
set_lvar_int_to_lvar_int 349@ = 39@
set_lvar_text_label 382@s = 'CAS6_BD'
set_lvar_int_to_constant 327@ = 5617
set_lvar_int_to_var_int 350@ = $scplayer
set_lvar_text_label 384@s = 'CAS6_BE'
set_lvar_int_to_constant 328@ = 5607
set_lvar_int_to_lvar_int 351@ = 39@
set_lvar_text_label 386@s = 'CAS6_BF'
set_lvar_int_to_constant 329@ = 5608
set_lvar_int_to_lvar_int 352@ = 39@
set_lvar_text_label 388@s = 'CAS6_BH'
set_lvar_int_to_constant 330@ = 5609
set_lvar_int_to_lvar_int 353@ = 39@
set_lvar_text_label 390@s = 'CAS6_BK'
set_lvar_int_to_constant 331@ = 5618
set_lvar_int_to_var_int 354@ = $scplayer
set_lvar_text_label 392@s = 'CAS6_BL'
set_lvar_int_to_constant 332@ = 5610
set_lvar_int_to_lvar_int 355@ = 39@
set_lvar_text_label 394@s = 'CAS6_BM'
set_lvar_int_to_constant 333@ = 5611
set_lvar_int_to_lvar_int 356@ = 39@
set_lvar_text_label 396@s = 'CAS6_BN'
set_lvar_int_to_constant 334@ = 5612
set_lvar_int_to_lvar_int 357@ = 39@
set_lvar_text_label 398@s = 'CAS6_CA'
set_lvar_int_to_constant 335@ = 5613
set_lvar_int_to_lvar_int 358@ = 39@
set_lvar_text_label 400@s = 'CAS6_CB'
set_lvar_int_to_constant 336@ = 5614
set_lvar_int_to_lvar_int 359@ = 39@
316@ = 0
317@ = 0
TIMERB = 0

:CASINO6_1279
wait 0
if 
  not Char.IsDead(39@)
goto_if_false @CASINO6_1721
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO6_1370
World.SwitchEntryExit('ABATOIR', True)
$entry_exit_area = 0
$entry_exit_status = 0
set_var_text_label s$entry_exit_name = 'ABATOIR'
start_new_script @ENTEXT 
goto @CASINO6_30949

:CASINO6_1370
284@ = Streaming.GetAreaVisible()
if 
  284@ <> 0
goto_if_false @CASINO6_1484
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  Char.LocateAnyMeans2D($scplayer, 967.3132, 2161.154, 5.0, 5.0, False)
goto_if_false @CASINO6_1455
goto @CASINO6_2735
goto @CASINO6_1484

:CASINO6_1455
Char.FreezePosition(39@, True)
Blip.Remove(218@)
Blip.Remove(40@)
Char.RemoveFromGroup(39@)
goto @CASINO6_1756

:CASINO6_1484
if 
  Char.LocateAnyMeans2D($scplayer, 967.3132, 2161.154, 30.0, 30.0, False)
goto_if_false @CASINO6_1693
if 
  not Char.LocateAnyMeansChar2D($scplayer, 39@, 30.0, 30.0, False)
goto_if_false @CASINO6_1623
if 
  2 > 315@
goto_if_false @CASINO6_1578
315@ = 2

:CASINO6_1578
if 
  232@ == 0
goto_if_false @CASINO6_1616
World.SwitchEntryExit('ABATOIR', False)
232@ = 1

:CASINO6_1616
goto @CASINO6_1693

:CASINO6_1623
if 
  5 > 317@
goto_if_false @CASINO6_1655
316@ = 17
317@ = 5

:CASINO6_1655
if 
  232@ == 1
goto_if_false @CASINO6_1693
World.SwitchEntryExit('ABATOIR', True)
232@ = 0

:CASINO6_1693
gosub @CASINO6_29409
gosub @CASINO6_2499
gosub @CASINO6_1926
goto @CASINO6_1749

:CASINO6_1721
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F0'
goto @CASINO6_31097

:CASINO6_1749
goto @CASINO6_1279

:CASINO6_1756
wait 0
if 
  not Char.IsDead(39@)
goto_if_false @CASINO6_1891
284@ = Streaming.GetAreaVisible()
if 
  284@ == 0
goto_if_false @CASINO6_1884
Char.FreezePosition(39@, False)
Char.SetNeverLeavesGroup(39@, True)
Group.SetMember(308@, 39@)
40@ = Blip.AddForChar(39@)
Blip.SetAsFriendly(40@, True)
Blip.ChangeDisplay(40@, BlipDisplay.BlipOnly)
218@ = Blip.AddForCoord(967.3132, 2161.154, 9.8203)
TIMERA = 0
315@ = 3
goto @CASINO6_1279

:CASINO6_1884
goto @CASINO6_1919

:CASINO6_1891
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F0'
goto @CASINO6_31097

:CASINO6_1919
goto @CASINO6_1756

:CASINO6_1926
switch_start 317@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CASINO6_2497 {caseNum1} 0 {caseLabel1} @CASINO6_1989 {caseNum2} 1 {caseLabel2} @CASINO6_2022 {caseNum3} 2 {caseLabel3} @CASINO6_2149 {caseNum4} 3 {caseLabel4} @CASINO6_2235 {caseNum5} 4 {caseLabel5} @CASINO6_2328 {caseNum6} 5 {caseLabel6} @CASINO6_2375 {caseNum7} 6 {caseLabel7} @CASINO6_2450

:CASINO6_1989
if 
  TIMERB > 8000
goto_if_false @CASINO6_2015
317@ += 1

:CASINO6_2015
goto @CASINO6_2497

:CASINO6_2022
if 
  6 > 316@
goto_if_false @CASINO6_2135
if 
  Char.LocateAnyMeansChar2D($scplayer, 39@, 20.0, 20.0, False)
goto_if_false @CASINO6_2128
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 100 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_2128
goto @CASINO6_2149

:CASINO6_2135
317@ = 3
goto @CASINO6_2497

:CASINO6_2149
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_2228
if 
  313@ == 1
goto_if_false @CASINO6_2210
316@ = 6
317@ = 3
goto @CASINO6_2217

:CASINO6_2210
317@ = 1

:CASINO6_2217
$SLOT_status($preload_slot,2i) = -4

:CASINO6_2228
goto @CASINO6_2497

:CASINO6_2235
if 
  313@ == 1
goto_if_false @CASINO6_2328
if 
  17 > 316@
goto_if_false @CASINO6_2328
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 1 100 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_2328
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_2368
317@ = 3
$SLOT_status($preload_slot,2i) = -4

:CASINO6_2368
goto @CASINO6_2497

:CASINO6_2375
if 
  19 > 316@
goto_if_false @CASINO6_2450
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 100 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_2450
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_2490
317@ = 5
$SLOT_status($preload_slot,2i) = -4

:CASINO6_2490
goto @CASINO6_2497

:CASINO6_2497
return 

:CASINO6_2499
switch_start 315@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO6_2733 {caseNum1} 0 {caseLabel1} @CASINO6_2562 {caseNum2} 1 {caseLabel2} @CASINO6_2630 {caseNum3} 2 {caseLabel3} @CASINO6_2663 {caseNum4} 3 {caseLabel4} @CASINO6_2700 {caseNum5} -1 {caseLabel5} @CASINO6_2733 {caseNum6} -1 {caseLabel6} @CASINO6_2733 {caseNum7} -1 {caseLabel7} @CASINO6_2733

:CASINO6_2562
if 
  not Char.LocateAnyMeansChar2D($scplayer, 39@, 60.0, 60.0, False)
goto_if_false @CASINO6_2623
Text.PrintNow('CAS6_11', 8000, 1)
TIMERA = 0
315@ += 1

:CASINO6_2623
goto @CASINO6_2733

:CASINO6_2630
if 
  TIMERA > 20000
goto_if_false @CASINO6_2656
315@ -= 1

:CASINO6_2656
goto @CASINO6_2733

:CASINO6_2663
Text.PrintNow('CAS6_12', 8000, 1)
TIMERA = 0
315@ += 1
goto @CASINO6_2733

:CASINO6_2700
if 
  TIMERA > 20000
goto_if_false @CASINO6_2726
315@ = 0

:CASINO6_2726
goto @CASINO6_2733

:CASINO6_2733
return 

:CASINO6_2735
Player.ClearWantedLevel($player1)
if 
  not Car.IsDead(314@)
goto_if_false @CASINO6_3041
if 
  Car.IsInArea2D(314@, 960.4431, 2087.975, 996.5055, 2182.153, False)
goto_if_false @CASINO6_3031
if 
  not Car.IsUpsidedown(314@)
goto_if_false @CASINO6_3031
233@ = 1
241@, 242@, 243@ = Car.GetCoordinates(314@)
244@ = Car.GetHeading(314@)
234@ = Car.GetModel(314@)
235@, 236@ = Car.GetColors(314@)
237@, 238@ = Car.GetExtraColors(314@)
216@ = 0

:CASINO6_2876
if 
  4 > 216@
goto_if_false @CASINO6_2935
if 
  Car.IsTireBurst(314@, 216@)
goto_if_false @CASINO6_2921
set_local_var_bit_lvar 239@ {var_n} 216@

:CASINO6_2921
216@ += 1
goto @CASINO6_2876

:CASINO6_2935
if 
  Streaming.IsThisModelACar(234@)
goto_if_false @CASINO6_3024
216@ = 0

:CASINO6_2958
if 
  6 > 216@
goto_if_false @CASINO6_3017
if 
  Car.IsDoorDamaged(314@, 216@)
goto_if_false @CASINO6_3003
set_local_var_bit_lvar 240@ {var_n} 216@

:CASINO6_3003
216@ += 1
goto @CASINO6_2958

:CASINO6_3017
goto @CASINO6_3031

:CASINO6_3024
240@ = -1

:CASINO6_3031
Car.Fix(314@)
Streaming.MarkModelAsNoLongerNeeded(234@)

:CASINO6_3041
284@ = 0

:CASINO6_3048
if 
  284@ == 0
goto_if_false @CASINO6_3085
wait 0
284@ = Char.GetAreaVisible($scplayer)
goto @CASINO6_3048

:CASINO6_3085
Camera.DoFade(0, Fade.Out)

:CASINO6_3091
if 
  Camera.GetFadingStatus
goto_if_false @CASINO6_3115
wait 0
goto @CASINO6_3091

:CASINO6_3115
Char.SetCoordinatesDontWarpGang($scplayer, 963.7808, 2165.35, 1010.031)
Player.SetControl($player1, False)
Player.DisableSprint($player1, True)
if 
  not Char.IsDead(39@)
goto_if_false @CASINO6_3245
if 
  not Char.IsInAnyCar(39@)
goto_if_false @CASINO6_3208
Char.SetCoordinates(39@, 963.8596, 2162.615, 1010.031)
goto @CASINO6_3228

:CASINO6_3208
Char.WarpFromCarToCoord(39@, 963.8596, 2162.615, 1010.031)

:CASINO6_3228
Char.FreezePosition(39@, True)
Blip.Remove(40@)
Char.RemoveFromGroup(39@)

:CASINO6_3245
Blip.Remove(218@)
if 
  not Car.IsDead(314@)
goto_if_false @CASINO6_3271
Car.Delete(314@)

:CASINO6_3271
317@ = 0
316@ = 0
World.ClearAreaOfChars(930.0, 2178.0, 1008.0, 964.0, 2095.0, 1014.0)
Player.MakeSafeForCutscene($player1)
Streaming.SetAreaVisible(1)
Cutscene.Load('CAS6B_1')

:CASINO6_3337
if 
  not Cutscene.HasLoaded
goto_if_false @CASINO6_3361
wait 0
goto @CASINO6_3337

:CASINO6_3361
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CASINO6_3370
if 
  not Cutscene.HasFinished
goto_if_false @CASINO6_3394
wait 0
goto @CASINO6_3370

:CASINO6_3394
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CASINO6_3409
if 
  Camera.GetFadingStatus
goto_if_false @CASINO6_3433
wait 0
goto @CASINO6_3409

:CASINO6_3433
if 
  not Cutscene.WasSkipped
goto_if_false @CASINO6_3553
Cutscene.Load('CAS6B_2')

:CASINO6_3457
if 
  not Cutscene.HasLoaded
goto_if_false @CASINO6_3481
wait 0
goto @CASINO6_3457

:CASINO6_3481
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CASINO6_3490
if 
  not Cutscene.HasFinished
goto_if_false @CASINO6_3514
wait 0
goto @CASINO6_3490

:CASINO6_3514
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CASINO6_3529
if 
  Camera.GetFadingStatus
goto_if_false @CASINO6_3553
wait 0
goto @CASINO6_3529

:CASINO6_3553
Hud.SwitchWidescreen(True)
Streaming.LoadScene(942.8142, 2111.484, 1010.031)
Streaming.RequestCollision(942.8142, 2111.484)
Char.SetCoordinates($scplayer, 961.4175, 2111.39, 1010.03)
Char.SetHeading($scplayer, 100.0)
Char.FreezePosition($scplayer, False)
36@ = 0
Streaming.RequestModel(124)
Streaming.RequestModel(125)
Streaming.RequestModel(126)
Streaming.RequestModel(127)
Streaming.RequestModel(344)
Streaming.RequestModel(353)
Streaming.RequestModel(341)
Streaming.RequestModel(336)
Streaming.RequestModel(366)
Streaming.RequestModel(#BODYARMOUR)
Streaming.RequestModel(#AB_CARCASS)
Streaming.RequestModel(#AB_HOOK)
Streaming.RequestModel(#FREEZER_DOOR)
Streaming.RequestModel(#SEC_KEYPAD)
Streaming.RequestModel(#CARDBOARDBOX2)
Streaming.RequestModel(#CJ_MEAT_BAG_1)
Streaming.RequestModel(#CJ_MEAT_1)
Streaming.RequestModel(#CJ_MEAT_2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 1812)

:CASINO6_3722
if or
  not Streaming.HasModelLoaded(124)
  not Streaming.HasModelLoaded(125)
  not Streaming.HasModelLoaded(126)
  not Streaming.HasModelLoaded(127)
  not Streaming.HasModelLoaded(344)
goto_if_false @CASINO6_3765
wait 0
goto @CASINO6_3722

:CASINO6_3765
if or
  not Streaming.HasModelLoaded(353)
  not Streaming.HasModelLoaded(341)
  not Streaming.HasModelLoaded(336)
  not Streaming.HasModelLoaded(366)
  not Streaming.HasModelLoaded(#BODYARMOUR)
goto_if_false @CASINO6_3811
wait 0
goto @CASINO6_3765

:CASINO6_3811
if or
  not Streaming.HasModelLoaded(#AB_CARCASS)
  not Streaming.HasModelLoaded(#AB_HOOK)
  not Streaming.HasModelLoaded(#FREEZER_DOOR)
  not Streaming.HasModelLoaded(#SEC_KEYPAD)
  not Streaming.HasModelLoaded(#CARDBOARDBOX2)
  not Streaming.HasModelLoaded(#CJ_MEAT_BAG_1)
goto_if_false @CASINO6_3863
wait 0
goto @CASINO6_3811

:CASINO6_3863
if or
  not Streaming.HasModelLoaded(#CJ_MEAT_1)
  not Streaming.HasModelLoaded(#CJ_MEAT_2)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @CASINO6_3899
wait 0
goto @CASINO6_3863

:CASINO6_3899
220@, 230@, 230@ = Char.GetWeaponInSlot($scplayer, WeaponSlot.Melee)
if 
  is_int_lvar_equal_to_constant 220@ == 9
goto_if_false @CASINO6_3952
set_lvar_int_to_constant 220@ = 5
Streaming.MarkModelAsNoLongerNeeded(341)
goto @CASINO6_3959

:CASINO6_3952
set_lvar_int_to_constant 220@ = 9

:CASINO6_3959
Game.SetMaxFireGenerations(0)
if 
  not Char.IsDead(39@)
goto_if_false @CASINO6_4081
Char.SetCoordinates(39@, 959.7906, 2108.67, 1010.03)
Char.SetHeading(39@, 51.5)
Char.SetAreaVisible(39@, 1)
Char.FreezePosition(39@, False)
40@ = Blip.AddForChar(39@)
Blip.ChangeDisplay(40@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(40@, 968.3954, 2160.965, 1.0)
Blip.SetAsFriendly(40@, True)
Char.SetDecisionMaker(39@, 34@)
Char.SetHealth(39@, 300)

:CASINO6_4081
Hud.DisplayCounterWithString($7760, CounterDisplay.Bar, 'CAS6_C0')
41@ = 0
42@ = 0
44@ = 0
51@ = 0
37@ = Pickup.Create(366, PickupType.Once, 962.9547, 2101.918, 1011.0)
43@ = Object.CreateNoOffset(366, 959.9, 2098.1, 1010.6)
Object.SetRotation(43@, 0.0, 45.0, 90.0)
38@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 958.4733, 2144.251, 1011.0)
Hud.SetRadarZoom(95)
285@ = 0
227@ = 0
307@ = 0
303@ = 0
304@ = 0
180@ = 1.062
set_lvar_float_to_lvar_float 178@ = 180@
178@ *= 2.0
178@ *= 3.141593
178@ /= 360.0
176@ = 0.0
177@ = -0.0001
162@ = 1
161@ = 0
163@ = 0
181@ = 945.725
189@ = 2175.24
182@ = 946.787
190@ = 2174.185
183@ = 946.787
191@ = 2118.155
184@ = 945.725
192@ = 2117.069
185@ = 938.357
193@ = 2117.069
186@ = 937.262
194@ = 2118.155
187@ = 937.262
195@ = 2174.185
188@ = 938.357
196@ = 2175.24
197@ = 1016.288
160@ = Object.CreateNoOffset(#SEC_KEYPAD, 946.35, 2113.55, 1011.522)
Object.SetCollision(160@, False)
Object.FreezePosition(160@, True)
154@ = Object.CreateNoOffset(#CARDBOARDBOX2, 937.262, 2126.155, 197@)
Object.SetDynamic(154@, False)
Object.SetCollision(154@, False)
Object.SetVisible(154@, False)
148@ = 6
164@ = 0.0
170@ = 0.0
142@ = Object.CreateNoOffset(#AB_CARCASS, 937.228, 2121.157, 197@)
Object.AttachToObject(142@, 154@, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
155@ = Object.CreateNoOffset(#CARDBOARDBOX2, 940.356, 2175.24, 197@)
Object.SetDynamic(155@, False)
Object.SetCollision(155@, False)
Object.SetVisible(155@, False)
149@ = 0
165@ = 90.0
171@ = 0.0
143@ = Object.CreateNoOffset(#AB_CARCASS, 940.356, 2175.264, 197@)
Object.AttachToObject(143@, 155@, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
156@ = Object.CreateNoOffset(#CARDBOARDBOX2, 946.846, 2135.264, 197@)
Object.SetDynamic(156@, False)
Object.SetCollision(156@, False)
Object.SetVisible(156@, False)
150@ = 2
166@ = 0.0
172@ = 0.0
144@ = Object.CreateNoOffset(#AB_CARCASS, 946.846, 2135.264, 197@)
Object.AttachToObject(144@, 156@, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
157@ = Object.CreateNoOffset(#AB_HOOK, 941.727, 2117.076, 197@)
151@ = 4
167@ = 90.0
173@ = 45.0
Object.SetRotation(157@, 0.0, 0.0, 173@)
158@ = Object.CreateNoOffset(#AB_HOOK, 937.228, 2162.24, 197@)
152@ = 6
168@ = 0.0
174@ = -45.0
Object.SetRotation(158@, 0.0, 0.0, 174@)
159@ = Object.CreateNoOffset(#AB_HOOK, 946.846, 2172.24, 197@)
153@ = 2
169@ = 0.0
175@ = 135.0
Object.SetRotation(159@, 0.0, 0.0, 175@)
245@ = Object.CreateNoOffset(#CJ_MEAT_BAG_1, 933.6226, 2118.948, 1012.313)
Object.SetHeading(245@, 65.0793)
246@ = Object.CreateNoOffset(#CJ_MEAT_BAG_1, 933.1715, 2133.366, 1012.767)
Object.SetHeading(246@, 65.0783)
247@ = Object.CreateNoOffset(#CJ_MEAT_BAG_1, 942.9017, 2155.644, 1013.479)
Object.SetHeading(247@, 64.6149)
248@ = Object.CreateNoOffset(#CJ_MEAT_BAG_1, 950.8132, 2166.67, 1012.296)
Object.SetHeading(248@, 88.701)
249@ = Object.CreateNoOffset(#CJ_MEAT_2, 942.7145, 2154.633, 1011.213)
Object.SetHeading(249@, 73.973)
250@ = Object.CreateNoOffset(#CJ_MEAT_2, 950.4804, 2155.572, 1011.902)
Object.SetHeading(250@, 131.2515)
251@ = Object.CreateNoOffset(#CJ_MEAT_2, 942.3651, 2118.868, 1011.241)
Object.SetHeading(251@, 64.6148)
252@ = Object.CreateNoOffset(#CJ_MEAT_2, 950.6234, 2132.096, 1011.947)
Object.SetHeading(252@, 24.2141)
253@ = Object.CreateNoOffset(#CJ_MEAT_2, 934.5715, 2171.173, 1011.266)
Object.SetHeading(253@, 354.6342)
202@ = Object.CreateNoOffset(#FREEZER_DOOR, 951.859, 2121.648, 1012.094)
203@ = Object.CreateNoOffset(#SEC_KEYPAD, 950.9305, 2114.348, 1011.522)
Object.SetHeading(203@, 180.0)
Object.FreezePosition(203@, True)
Object.SetCollision(203@, False)
204@ = 0
214@ = 0.0
215@ = 0.001
287@ = -1
206@ = Sequence.Open()
Task.AchieveHeading(-1, 180.0)
Task.StandStill(-1, 800)
Sequence.Close(206@)
208@ = Object.CreateNoOffset(#AB_CARCASS, 962.4035, 2119.817, 197@)
209@ = Object.CreateNoOffset(#AB_CARCASS, 962.4035, 2121.641, 197@)
210@ = Object.CreateNoOffset(#AB_CARCASS, 962.4035, 2124.842, 197@)
211@ = Object.CreateNoOffset(#AB_CARCASS, 955.9693, 2128.817, 197@)
212@ = Object.CreateNoOffset(#AB_CARCASS, 955.9693, 2131.641, 197@)
213@ = Object.CreateNoOffset(#AB_CARCASS, 955.9693, 2134.842, 197@)
140@ = 29
141@ = 0
216@ = 0

:CASINO6_5708
if 
  is_int_lvar_greater_than_int_lvar 140@ > 216@
goto_if_false @CASINO6_5752
111@(216@,29i) = -1
216@ += 1
goto @CASINO6_5708

:CASINO6_5752
53@ = Char.Create(PedType.Mission2, 126, 937.3484, 2112.078, 1010.031)
Char.SetHeading(53@, 264.0)
Char.SetHealth(53@, 200)
Char.SetMaxHealth(53@, 200)
82@ = Blip.AddForChar(53@)
Blip.ChangeDisplay(82@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(82@, 968.3954, 2160.965, 1.0)
Task.StayInSamePlace(53@, True)
Char.GiveWeapon(53@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(53@, WeaponType.Mp5)
Char.SetAccuracy(53@, 30)
Char.SetDecisionMaker(53@, 34@)
111@ = 0
54@ = Char.Create(PedType.Mission2, 127, 937.135, 2108.94, 1010.031)
Char.SetHeading(54@, 271.5)
Char.SetHealth(54@, 200)
Char.SetMaxHealth(54@, 200)
83@ = Blip.AddForChar(54@)
Blip.ChangeDisplay(83@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(83@, 968.3954, 2160.965, 1.0)
Task.StayInSamePlace(54@, True)
Char.GiveWeapon(54@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(54@, WeaponType.Mp5)
Char.SetAccuracy(54@, 30)
Char.SetDecisionMaker(54@, 34@)
112@ = 0
55@ = Char.Create(PedType.Mission2, 124, 939.319, 2124.888, 1010.031)
Char.SetHeading(55@, 195.0)
Char.SetHealth(53@, 200)
Char.SetMaxHealth(53@, 200)
84@ = Blip.AddForChar(55@)
Blip.ChangeDisplay(84@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(84@, 968.3954, 2160.965, 1.0)
Char.GiveWeapon(55@, 220@, 0)
Char.SetCurrentWeapon(55@, 220@)
113@ = 0
288@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 34@)
Task.ToggleDuck(-1, False)
Task.StandStill(-1, 800)
Task.StayInSamePlace(-1, False)
Task.GoStraightToCoord(-1, 940.5833, 2116.169, 1010.031, MoveState.Run, -1)
Task.Jump(-1, True)
Task.KillCharOnFoot(-1, 39@)
Task.SetCharDecisionMaker(-1, 35@)
Sequence.Close(288@)
Char.PerformSequence(55@, 288@)
Sequence.Clear(288@)
56@ = Char.Create(PedType.Mission2, 125, 937.819, 2137.487, 1010.03)
Char.SetHeading(56@, 188.0)
Char.SetHealth(53@, 200)
Char.SetMaxHealth(53@, 200)
85@ = Blip.AddForChar(56@)
Blip.ChangeDisplay(85@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(85@, 968.3954, 2160.965, 1.0)
Char.GiveWeapon(56@, WeaponType.BaseballBat, 0)
Char.SetCurrentWeapon(56@, WeaponType.BaseballBat)
Char.SetAccuracy(56@, 35)
114@ = 0
288@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 34@)
Task.ToggleDuck(-1, False)
Task.StandStill(-1, 800)
Task.StayInSamePlace(-1, False)
Task.GoStraightToCoord(-1, 940.5833, 2116.169, 1010.031, MoveState.Run, -1)
Task.Jump(-1, True)
Task.KillCharOnFoot(-1, 39@)
Task.SetCharDecisionMaker(-1, 35@)
Sequence.Close(288@)
Char.PerformSequence(56@, 288@)
Sequence.Clear(288@)
57@ = Char.Create(PedType.Mission2, 127, 948.0, 2124.0, 1010.031)
Char.SetHeading(57@, 135.0)
Char.SetHealth(57@, 200)
Char.SetMaxHealth(57@, 200)
86@ = Blip.AddForChar(57@)
Blip.ChangeDisplay(86@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(86@, 968.3954, 2160.965, 1.0)
Task.StayInSamePlace(57@, True)
Char.SetAccuracy(57@, 30)
115@ = 0
254@ = Object.CreateNoOffset(344, 948.0, 2124.0, 1010.031)
Object.SetDynamic(254@, False)
Object.SetCollision(254@, False)
Task.PickUpObject(57@, 254@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)
256@ = Particle.CreateOnObject("FIRE", 254@, 0.0, 0.0, 0.6, 1)
288@ = Sequence.Open()
Task.StandStill(-1, 200)
Task.PlayAnim(-1, "UZI_RELOAD", "UZI", 4.0, False, False, False, False, 300)
Task.PlayAnim(-1, "WEAPON_START_THROW", "GRENADE", 10.0, False, False, False, False, -1)
Task.PlayAnim(-1, "WEAPON_THROW", "GRENADE", 10.0, False, False, False, False, -1)
Task.StandStill(-1, 500)
Task.GoToCoordAnyMeans(-1, 944.032, 2119.907, 1010.031, 6, -1)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Sequence.Close(288@)
Char.PerformSequence(57@, 288@)
Sequence.Clear(288@)
58@ = Char.Create(PedType.Mission2, 125, 940.7016, 2138.933, 1010.031)
Char.SetHeading(58@, 180.0)
Char.SetHealth(58@, 200)
Char.SetMaxHealth(58@, 200)
87@ = Blip.AddForChar(58@)
Blip.ChangeDisplay(87@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(87@, 968.3954, 2160.965, 1.0)
Char.GiveWeapon(58@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(58@, WeaponType.Mp5)
Char.SetAccuracy(58@, 30)
116@ = 0
set_lvar_int_to_lvar_int 289@ = 58@
290@ = 0
291@ = 1
293@ = 940.8504
294@ = 2120.21
295@ = 1010.031
296@ = 184.0
gosub @CASINO6_20700
59@ = Char.Create(PedType.Mission2, 124, 938.9517, 2132.403, 1010.031)
Char.SetHeading(59@, 170.0)
Char.SetHealth(59@, 200)
Char.SetMaxHealth(59@, 200)
88@ = Blip.AddForChar(59@)
Blip.ChangeDisplay(88@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(88@, 968.3954, 2160.965, 1.0)
Char.GiveWeapon(59@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(59@, WeaponType.Mp5)
Char.SetAccuracy(59@, 30)
117@ = 0
set_lvar_int_to_lvar_int 289@ = 59@
290@ = 0
291@ = 1
293@ = 933.7762
294@ = 2120.589
295@ = 1010.031
296@ = 230.0
gosub @CASINO6_20700
60@ = Char.Create(PedType.Mission2, 126, 942.4279, 2129.262, 1011.228)
Char.SetHeading(60@, 180.0)
Char.SetHealth(60@, 200)
Char.SetMaxHealth(60@, 200)
89@ = Blip.AddForChar(60@)
Blip.ChangeDisplay(89@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(89@, 968.3954, 2160.965, 1.0)
Task.ToggleDuck(60@, True)
Task.StayInSamePlace(60@, True)
Char.GiveWeapon(60@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(60@, WeaponType.Mp5)
Char.SetAccuracy(60@, 30)
118@ = 0
61@ = Char.Create(PedType.Mission2, 125, 941.8554, 2141.05, 1010.03)
Char.SetHeading(61@, 198.3264)
Char.SetHealth(61@, 200)
Char.SetMaxHealth(61@, 200)
90@ = Blip.AddForChar(61@)
Blip.ChangeDisplay(90@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(90@, 968.3954, 2160.965, 1.0)
Char.GiveWeapon(61@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(61@, WeaponType.Mp5)
Char.SetAccuracy(61@, 30)
119@ = 0
set_lvar_int_to_lvar_int 289@ = 61@
290@ = 0
291@ = 1
293@ = 950.5577
294@ = 2126.734
295@ = 1010.031
296@ = 150.0
gosub @CASINO6_20700
Camera.SetFixedPosition(946.2746, 2122.199, 1011.263, 0.0, 0.0, 0.0)
Camera.PointAtPoint(947.4866, 2124.386, 1011.263, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Player.ClearWantedLevel($player1)
Game.SetMaxWantedLevel(0)
219@ = 0
wait 0
280@ = 0.2
Clock.SetTimeScale(280@)
TIMERA = 0

:CASINO6_7626
if 
  100 > TIMERA
goto_if_false @CASINO6_7655
wait 0
goto @CASINO6_7626

:CASINO6_7655
Camera.DoFade(0, Fade.In)
skip_cutscene_start_internal @CASINO6_9185
274@ = 0.5
mult_float_lvar_by_float_lvar 274@ *= 280@
276@ = -0.0002
mult_float_lvar_by_float_lvar 276@ *= 280@
278@ = 0.8
mult_float_lvar_by_float_lvar 278@ *= 280@
275@ = 0.3
mult_float_lvar_by_float_lvar 275@ *= 280@
277@ = -0.03
mult_float_lvar_by_float_lvar 277@ *= 280@
mult_float_lvar_by_float_lvar 277@ *= 280@
279@ = 0.0
TIMERA = 0

:CASINO6_7783
if 
  500 > TIMERA
goto_if_false @CASINO6_7813
wait 0
goto @CASINO6_7783

:CASINO6_7813
Particle.Play(256@)

:CASINO6_7818
if 
  1390 > TIMERA
goto_if_false @CASINO6_7848
wait 0
goto @CASINO6_7818

:CASINO6_7848
if 
  not Char.IsDead(57@)
goto_if_false @CASINO6_7985
268@, 269@, 270@ = Object.GetCoordinates(254@)
Char.DropObject(57@, False)
Particle.Kill(256@)
Object.Delete(254@)
219@ = 1
255@ = Object.CreateNoOffset(344, 268@, 269@, 270@)
257@ = Particle.CreateOnObject("FIRE", 255@, 0.0, 0.0, 0.6, 1)
Particle.Play(257@)
271@ = 0.0
272@ = 0.0
273@ = 0.0

:CASINO6_7985
198@ = Math.Cos(241.0)
199@ = Math.Sin(241.0)
$z = 5000.0

:CASINO6_8015
if 
  1010.031 < $z
goto_if_false @CASINO6_8448
wait 0
add_float_lvar_to_float_lvar 274@ += 276@
add_float_lvar_to_float_lvar 278@ += 274@
set_lvar_float_to_lvar_float 200@ = 278@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 278@
mult_float_lvar_by_float_lvar 201@ *= 199@
add_float_lvar_to_float_lvar 275@ += 277@
add_float_lvar_to_float_lvar 279@ += 275@
set_var_float_to_lvar_float $x = 268@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 269@
add_float_lvar_to_float_var $y += 201@
set_var_float_to_lvar_float $z = 270@
add_float_lvar_to_float_var $z += 279@
Object.SetCoordinates(255@, $x, $y, $z)
271@ += 1.0
272@ += 1.0
273@ += 1.0
Object.SetRotation(255@, 271@, 272@, 273@)
set_lvar_float_to_lvar_float 281@ = 278@
281@ += 1.5
set_lvar_float_to_lvar_float 282@ = 278@
282@ -= 1.0
set_lvar_float_to_lvar_float 200@ = 281@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 281@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 268@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 269@
add_float_lvar_to_float_var $y += 201@
Camera.SetFixedPosition($x, $y, 270@, 0.0, 0.0, 0.0)
set_lvar_float_to_lvar_float 200@ = 282@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 282@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 268@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 269@
add_float_lvar_to_float_var $y += 201@
Camera.PointAtPoint($x, $y, 270@, SwitchType.JumpCut)
if 
  1010.5 >= $z
goto_if_false @CASINO6_8441
Object.FreezePosition(255@, True)

:CASINO6_8441
goto @CASINO6_8015

:CASINO6_8448
Particle.Kill(257@)
Object.Delete(255@)
Streaming.MarkModelAsNoLongerNeeded(344)
219@ = 2
258@ = Particle.Create("EXPLOSION_MOLOTOV", $x, $y, 1010.0, 1)
Particle.PlayAndKill(258@)
Weather.SetHeathazeEffect(True)
259@ = ScriptFire.Start(940.35, 2114.0, 1010.03, 0, 2)
219@ = 3
260@ = ScriptFire.Start(941.1, 2114.0, 1010.03, 0, 1)
219@ = 4
261@ = ScriptFire.Start(941.5, 2114.0, 1010.03, 0, 1)
219@ = 5
262@ = ScriptFire.Start(942.3, 2114.0, 1010.03, 0, 1)
219@ = 6
263@ = ScriptFire.Start(942.9, 2114.0, 1010.03, 0, 1)
219@ = 7
264@ = ScriptFire.Start(943.65, 2114.0, 1010.03, 0, 2)
219@ = 8
TIMERA = 0

:CASINO6_8709
if 
  220 > TIMERA
goto_if_false @CASINO6_8950
wait 0
add_float_lvar_to_float_lvar 278@ += 274@
set_lvar_float_to_lvar_float 281@ = 278@
281@ += 1.5
set_lvar_float_to_lvar_float 282@ = 278@
282@ -= 1.0
set_lvar_float_to_lvar_float 200@ = 281@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 281@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 268@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 269@
add_float_lvar_to_float_var $y += 201@
Camera.SetFixedPosition($x, $y, 270@, 0.0, 0.0, 0.0)
set_lvar_float_to_lvar_float 200@ = 282@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 282@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 268@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 269@
add_float_lvar_to_float_var $y += 201@
Camera.PointAtPoint($x, $y, 270@, SwitchType.JumpCut)
goto @CASINO6_8709

:CASINO6_8950
283@ = 61.0
224@, 225@, 226@ = Camera.GetActiveCoordinates()
TIMERA = 0

:CASINO6_8978
if 
  1000 > TIMERA
goto_if_false @CASINO6_9008
wait 0
goto @CASINO6_8978

:CASINO6_9008
TIMERA = 0

:CASINO6_9015
if 
  1300 > TIMERA
goto_if_false @CASINO6_9148
wait 0
198@ = Math.Cos(283@)
199@ = Math.Sin(283@)
set_lvar_float_to_lvar_float 200@ = 282@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 282@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 224@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 225@
add_float_lvar_to_float_var $y += 201@
Camera.PointAtPoint($x, $y, 270@, SwitchType.JumpCut)
283@ -= 0.25
goto @CASINO6_9015

:CASINO6_9148
TIMERA = 0

:CASINO6_9155
if 
  500 > TIMERA
goto_if_false @CASINO6_9185
wait 0
goto @CASINO6_9155

:CASINO6_9185
skip_cutscene_end 
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
switch_start 219@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @CASINO6_9524 {caseNum1} 0 {caseLabel1} @CASINO6_9325 {caseNum2} 1 {caseLabel2} @CASINO6_9358 {caseNum3} 2 {caseLabel3} @CASINO6_9373 {caseNum4} 3 {caseLabel4} @CASINO6_9397 {caseNum5} 4 {caseLabel5} @CASINO6_9421 {caseNum6} 5 {caseLabel6} @CASINO6_9445 {caseNum7} 6 {caseLabel7} @CASINO6_9469
switch_continued 7 {caseLabel1} @CASINO6_9493 {caseNum2} -1 {caseLabel2} @CASINO6_9524 {caseNum3} -1 {caseLabel3} @CASINO6_9524 {caseNum4} -1 {caseLabel4} @CASINO6_9524 {caseNum5} -1 {caseLabel5} @CASINO6_9524 {caseNum6} -1 {caseLabel6} @CASINO6_9524 {caseNum7} -1 {caseLabel7} @CASINO6_9524 {caseNum8} -1 {caseLabel8} @CASINO6_9524 {caseNum9} -1 {caseLabel9} @CASINO6_9524

:CASINO6_9325
if 
  not Char.IsDead(57@)
goto_if_false @CASINO6_9348
Char.DropObject(57@, False)

:CASINO6_9348
Particle.Kill(256@)
Object.Delete(254@)

:CASINO6_9358
Particle.Kill(257@)
Object.Delete(255@)
Streaming.MarkModelAsNoLongerNeeded(344)

:CASINO6_9373
259@ = ScriptFire.Start(940.35, 2114.0, 1010.03, 0, 2)

:CASINO6_9397
260@ = ScriptFire.Start(941.1, 2114.0, 1010.03, 0, 1)

:CASINO6_9421
261@ = ScriptFire.Start(941.5, 2114.0, 1010.03, 0, 1)

:CASINO6_9445
262@ = ScriptFire.Start(942.3, 2114.0, 1010.03, 0, 1)

:CASINO6_9469
263@ = ScriptFire.Start(942.9, 2114.0, 1010.03, 0, 1)

:CASINO6_9493
264@ = ScriptFire.Start(943.65, 2114.0, 1010.03, 0, 2)
goto @CASINO6_9524

:CASINO6_9524
Particle.Kill(258@)
Text.ClearHelp
Text.PrintHelp('CAS6_G0')
TIMERA = 0
Weather.SetHeathazeEffect(False)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
World.SwitchEntryExit('ABATOIR', False)
265@ = 0
266@ = 0
267@ = 0
Clock.SetTimeScale(1.0)
if 
  not Char.IsDead(53@)
goto_if_false @CASINO6_9692
111@ = 0
set_lvar_int_to_lvar_int 289@ = 53@
290@ = 0
293@ = 945.2795
294@ = 2108.657
295@ = 1010.031
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930

:CASINO6_9692
if 
  not Char.IsDead(54@)
goto_if_false @CASINO6_9775
112@ = 0
set_lvar_int_to_lvar_int 289@ = 54@
290@ = 0
293@ = 937.135
294@ = 2108.94
295@ = 1010.031
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930

:CASINO6_9775
if 
  not Char.IsDead(55@)
goto_if_false @CASINO6_9850
Char.ClearTasks(55@)
Char.SetCoordinates(55@, 941.481, 2111.887, 1010.031)
Char.SetHeading(55@, 260.0)
if 
  not Char.IsDead(39@)
goto_if_false @CASINO6_9850
Task.KillCharOnFoot(55@, 39@)

:CASINO6_9850
if 
  not Char.IsDead(56@)
goto_if_false @CASINO6_10009
Char.ClearTasks(56@)
Char.SetCoordinates(56@, 939.6515, 2123.306, 1010.031)
Char.SetHeading(56@, 187.5)
288@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 34@)
Task.ToggleDuck(-1, False)
Task.StandStill(-1, 800)
Task.StayInSamePlace(-1, False)
Task.GoStraightToCoord(-1, 940.5833, 2116.169, 1010.031, MoveState.Run, -1)
Task.Jump(-1, True)
if 
  not Char.IsDead(39@)
goto_if_false @CASINO6_9984
Task.KillCharOnFoot(-1, 39@)

:CASINO6_9984
Task.SetCharDecisionMaker(-1, 35@)
Sequence.Close(288@)
Char.PerformSequence(56@, 288@)
Sequence.Clear(288@)

:CASINO6_10009
if 
  not Char.IsDead(57@)
goto_if_false @CASINO6_10099
Char.ClearTasks(57@)
Char.SetCoordinates(57@, 944.032, 2119.907, 1010.031)
Char.SetHeading(57@, 160.0)
Task.ToggleDuck(57@, True)
Task.StayInSamePlace(57@, True)
Char.GiveWeapon(57@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(57@, WeaponType.Mp5)
Task.KillCharOnFoot(57@, $scplayer)

:CASINO6_10099
if 
  not Char.IsDead(60@)
goto_if_false @CASINO6_10123
Task.KillCharOnFoot(60@, $scplayer)

:CASINO6_10123
set_lvar_text_label 364@s = 'CAS6_EP'
set_lvar_int_to_constant 318@ = 5620
set_lvar_int_to_var_int 341@ = $scplayer
set_lvar_text_label 366@s = 'CAS6_EQ'
set_lvar_int_to_constant 319@ = 5621
set_lvar_int_to_var_int 342@ = $scplayer
set_lvar_text_label 368@s = 'CAS6_ED'
set_lvar_int_to_constant 320@ = 5640
set_lvar_int_to_lvar_int 343@ = 39@
set_lvar_text_label 370@s = 'CAS6_DA'
set_lvar_int_to_constant 321@ = 5636
set_lvar_int_to_lvar_int 344@ = 39@
set_lvar_text_label 372@s = 'CAS6_DB'
set_lvar_int_to_constant 322@ = 5619
set_lvar_int_to_var_int 345@ = $scplayer
set_lvar_text_label 374@s = 'CAS6_ET'
set_lvar_int_to_constant 323@ = 5651
set_lvar_int_to_lvar_int 346@ = 39@
set_lvar_text_label 376@s = 'CAS6_EU'
set_lvar_int_to_constant 324@ = 5624
set_lvar_int_to_var_int 347@ = $scplayer
set_lvar_text_label 378@s = 'CAS6_EA'
set_lvar_int_to_constant 325@ = 5637
set_lvar_int_to_lvar_int 348@ = 39@
set_lvar_text_label 380@s = 'CAS6_EB'
set_lvar_int_to_constant 326@ = 5638
set_lvar_int_to_lvar_int 349@ = 39@
set_lvar_text_label 382@s = 'CAS6_EC'
set_lvar_int_to_constant 327@ = 5639
set_lvar_int_to_lvar_int 350@ = 39@
set_lvar_text_label 384@s = 'CAS6_GH'
set_lvar_int_to_constant 328@ = 5658
set_lvar_int_to_lvar_int 351@ = 39@
set_lvar_text_label 386@s = 'CAS6_GJ'
set_lvar_int_to_constant 329@ = 5659
set_lvar_int_to_lvar_int 352@ = 39@
set_lvar_text_label 388@s = 'CAS6_GK'
set_lvar_int_to_constant 330@ = 5660
set_lvar_int_to_lvar_int 353@ = 39@
set_lvar_text_label 390@s = 'CAS6_FM'
set_lvar_int_to_constant 331@ = 5656
set_lvar_int_to_lvar_int 354@ = 39@
222@ = Clock.GetGameTimer()

:CASINO6_10548
wait 0
if 
  not Char.IsDead(39@)
goto_if_false @CASINO6_11052
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO6_10639
World.SwitchEntryExit('ABATOIR', True)
$entry_exit_area = 0
$entry_exit_status = 0
set_var_text_label s$entry_exit_name = 'ABATOIR'
start_new_script @ENTEXT 
goto @CASINO6_30949

:CASINO6_10639
if 
  227@ == 2
goto_if_false @CASINO6_10664
goto @CASINO6_31097

:CASINO6_10664
221@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 223@ = 221@
sub_int_lvar_from_int_lvar 223@ -= 222@
set_lvar_int_to_lvar_int 222@ = 221@
add_int_lvar_to_int_lvar 42@ += 223@
add_int_lvar_to_int_lvar 51@ += 223@
add_int_lvar_to_int_lvar 163@ += 223@
add_int_lvar_to_int_lvar 207@ += 223@
add_int_lvar_to_int_lvar 304@ += 223@
gosub @CASINO6_11105
gosub @CASINO6_15132
gosub @CASINO6_20083
gosub @CASINO6_21140
gosub @CASINO6_23323
if 
  300@ <> 2
goto_if_false @CASINO6_10793
gosub @CASINO6_25065

:CASINO6_10793
216@ = Char.GetHealth(39@)
set_var_int_to_lvar_int $7760 = 216@
$7760 /= 3
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_10987
216@ = 0

:CASINO6_10842
if 
  is_int_lvar_greater_than_int_lvar 140@ > 216@
goto_if_false @CASINO6_10980
if 
  111@(216@,29i) <> -1
goto_if_false @CASINO6_10966
if 
  Char.IsDead(53@(216@,29i))
goto_if_false @CASINO6_10966
Char.MarkAsNoLongerNeeded(53@(216@,29i))
Blip.Remove(82@(216@,29i))
111@(216@,29i) = -1
141@ += 1
if 
  is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_10966
Char.SetDecisionMaker(39@, 34@)

:CASINO6_10966
216@ += 1
goto @CASINO6_10842

:CASINO6_10980
goto @CASINO6_11024

:CASINO6_10987
gosub @CASINO6_26913
284@ = Streaming.GetAreaVisible()
if 
  284@ == 0
goto_if_false @CASINO6_11024
goto @CASINO6_27691

:CASINO6_11024
gosub @CASINO6_25242
gosub @CASINO6_24814
gosub @CASINO6_26203
goto @CASINO6_11098

:CASINO6_11052
if 
  227@ == 0
goto_if_false @CASINO6_11091
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F0'

:CASINO6_11091
goto @CASINO6_31097

:CASINO6_11098
goto @CASINO6_10548

:CASINO6_11105
switch_start 285@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CASINO6_15130 {caseNum1} 0 {caseLabel1} @CASINO6_11168 {caseNum2} 1 {caseLabel2} @CASINO6_12507 {caseNum3} 2 {caseLabel3} @CASINO6_13579 {caseNum4} 3 {caseLabel4} @CASINO6_14856 {caseNum5} 4 {caseLabel5} @CASINO6_14993 {caseNum6} -1 {caseLabel6} @CASINO6_15130 {caseNum7} -1 {caseLabel7} @CASINO6_15130

:CASINO6_11168
if 
  Char.IsInArea2D($scplayer, 935.0, 2114.0, 947.0, 2116.0, False)
goto_if_false @CASINO6_12500
285@ += 1
62@ = Char.Create(PedType.Mission2, 124, 944.947, 2146.821, 1010.03)
Char.SetHeading(62@, 180.0)
Char.SetHealth(62@, 200)
Char.SetMaxHealth(62@, 200)
91@ = Blip.AddForChar(62@)
Blip.ChangeDisplay(91@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(91@, 968.3954, 2160.965, 1.0)
Char.GiveWeapon(62@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(62@, WeaponType.Mp5)
Char.SetAccuracy(62@, 35)
120@ = 0
set_lvar_int_to_lvar_int 289@ = 62@
290@ = 0
291@ = 0
293@ = 950.4513
294@ = 2133.938
295@ = 1010.03
296@ = 156.0
gosub @CASINO6_20700
63@ = Char.Create(PedType.Mission2, 125, 938.7369, 2146.927, 1010.031)
Char.SetHeading(63@, 180.0)
Char.SetHealth(63@, 200)
Char.SetMaxHealth(63@, 200)
92@ = Blip.AddForChar(63@)
Blip.ChangeDisplay(92@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(92@, 968.3954, 2160.965, 1.0)
Char.GiveWeapon(63@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(63@, WeaponType.Mp5)
Char.SetAccuracy(63@, 40)
121@ = 0
set_lvar_int_to_lvar_int 289@ = 63@
290@ = 0
291@ = 0
293@ = 935.2033
294@ = 2135.923
295@ = 1010.031
296@ = 195.0
gosub @CASINO6_20700
64@ = Char.Create(PedType.Mission2, 126, 938.8906, 2150.719, 1010.031)
Char.SetHeading(64@, 222.0)
Char.SetHealth(64@, 200)
Char.SetMaxHealth(64@, 200)
93@ = Blip.AddForChar(64@)
Blip.ChangeDisplay(93@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(93@, 968.3954, 2160.965, 1.0)
Char.GiveWeapon(64@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(64@, WeaponType.Mp5)
Char.SetAccuracy(64@, 35)
122@ = 0
set_lvar_int_to_lvar_int 289@ = 64@
290@ = 0
293@ = 941.6102
294@ = 2144.133
295@ = 1010.03
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930
65@ = Char.Create(PedType.Mission2, 125, 951.4207, 2146.367, 1010.03)
Char.SetHeading(65@, 148.0)
94@ = Blip.AddForChar(65@)
Blip.ChangeDisplay(94@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(94@, 968.3954, 2160.965, 1.0)
Char.GiveWeapon(65@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(65@, WeaponType.Mp5)
Char.SetAccuracy(65@, 40)
Char.SetShootRate(65@, 60)
123@ = 0
set_lvar_int_to_lvar_int 289@ = 65@
290@ = 0
291@ = 0
293@ = 946.5566
294@ = 2141.394
295@ = 1010.031
296@ = 180.0
gosub @CASINO6_20700
66@ = Char.Create(PedType.Mission2, 126, 932.7236, 2146.784, 1010.031)
Char.SetHeading(66@, 220.0)
Char.SetHealth(66@, 150)
Char.SetMaxHealth(66@, 150)
95@ = Blip.AddForChar(66@)
Blip.ChangeDisplay(95@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(95@, 968.3954, 2160.965, 1.0)
Char.GiveWeapon(66@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(66@, WeaponType.Mp5)
Char.SetAccuracy(66@, 35)
124@ = 0
set_lvar_int_to_lvar_int 289@ = 66@
290@ = 0
291@ = 0
293@ = 937.0684
294@ = 2141.996
295@ = 1010.031
296@ = 180.0
gosub @CASINO6_20700
if 
  not Char.IsDead(53@)
goto_if_false @CASINO6_12275
if 
  2 > 41@
goto_if_false @CASINO6_12201
293@ = 940.4404
294@ = 2111.781
295@ = 1010.031
296@ = 350.3034
goto @CASINO6_12241

:CASINO6_12201
293@ = 959.418
294@ = 2104.867
295@ = 1010.03
296@ = 167.1333

:CASINO6_12241
set_lvar_int_to_lvar_int 289@ = 53@
290@ = 0
291@ = 1
Char.ClearTasks(53@)
gosub @CASINO6_20815

:CASINO6_12275
if 
  not Char.IsDead(54@)
goto_if_false @CASINO6_12500
if 
  2 > 41@
goto_if_false @CASINO6_12356
293@ = 943.3311
294@ = 2111.713
295@ = 1010.031
296@ = 0.2979
goto @CASINO6_12500

:CASINO6_12356
set_lvar_int_to_lvar_int 289@ = 54@
290@ = 0
291@ = 1
Char.ClearTasks(54@)
if 
  not Char.IsDead(53@)
goto_if_false @CASINO6_12453
293@ = 943.3311
294@ = 2111.713
295@ = 1010.031
296@ = 0.2979
gosub @CASINO6_20700
goto @CASINO6_12500

:CASINO6_12453
293@ = 959.418
294@ = 2104.867
295@ = 1010.03
296@ = 167.1333
gosub @CASINO6_20815

:CASINO6_12500
goto @CASINO6_15130

:CASINO6_12507
if or
  Char.IsInArea2D($scplayer, 930.0, 2120.0, 952.25, 2125.0, False)
  Char.IsInArea2D($scplayer, 952.25, 2140.0, 967.0, 2147.0, False)
goto_if_false @CASINO6_13572
285@ += 1
67@ = Char.Create(PedType.Mission2, 124, 951.3571, 2143.16, 1010.031)
Char.SetHeading(67@, 90.0)
Char.SetHealth(67@, 200)
Char.SetMaxHealth(67@, 200)
96@ = Blip.AddForChar(67@)
Blip.ChangeDisplay(96@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(96@, 968.3954, 2160.965, 1.0)
Char.GiveWeapon(67@, WeaponType.BaseballBat, 3000)
125@ = 0
set_lvar_int_to_lvar_int 289@ = 67@
290@ = 0
293@ = 943.5978
294@ = 2138.572
295@ = 1010.031
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930
68@ = Char.Create(PedType.Mission2, 127, 932.6479, 2144.118, 1010.031)
Char.SetHeading(68@, 270.0)
Char.SetHealth(68@, 200)
Char.SetMaxHealth(68@, 200)
97@ = Blip.AddForChar(68@)
Blip.ChangeDisplay(97@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(97@, 968.3954, 2160.965, 1.0)
Char.GiveWeapon(68@, WeaponType.BaseballBat, 3000)
126@ = 0
set_lvar_int_to_lvar_int 289@ = 68@
290@ = 0
293@ = 940.223
294@ = 2139.419
295@ = 1010.031
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930
69@ = Char.Create(PedType.Mission2, 126, 950.7346, 2156.716, 1010.03)
Char.SetHeading(69@, 135.0)
Char.SetHealth(69@, 150)
Char.SetMaxHealth(69@, 150)
98@ = Blip.AddForChar(69@)
Blip.ChangeDisplay(98@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(98@, 968.3954, 2160.965, 1.0)
Task.StayInSamePlace(69@, True)
Char.GiveWeapon(69@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(69@, WeaponType.Mp5)
Char.SetAccuracy(69@, 35)
Char.SetDecisionMaker(69@, 35@)
Task.KillCharOnFoot(69@, $scplayer)
127@ = 0
70@ = Char.Create(PedType.Mission2, 125, 933.3263, 2160.188, 1010.031)
Char.SetHeading(70@, 214.0)
99@ = Blip.AddForChar(70@)
Blip.ChangeDisplay(99@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(99@, 968.3954, 2160.965, 1.0)
Task.StayInSamePlace(70@, True)
Char.GiveWeapon(70@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(70@, WeaponType.Mp5)
Char.SetAccuracy(70@, 40)
Char.SetDecisionMaker(70@, 35@)
Task.KillCharOnFoot(70@, $scplayer)
128@ = 0
71@ = Char.Create(PedType.Mission2, 124, 942.5138, 2165.1, 1011.228)
Char.SetHeading(71@, 180.0)
Char.SetHealth(71@, 150)
Char.SetMaxHealth(71@, 150)
100@ = Blip.AddForChar(71@)
Blip.ChangeDisplay(100@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(100@, 968.3954, 2160.965, 1.0)
Task.StayInSamePlace(71@, True)
Char.GiveWeapon(71@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(71@, WeaponType.Mp5)
Char.SetAccuracy(71@, 35)
Char.SetShootRate(71@, 60)
Task.ToggleDuck(71@, True)
Task.KillCharOnFoot(71@, $scplayer)
129@ = 0
72@ = Char.Create(PedType.Mission2, 125, 950.2886, 2172.38, 1010.03)
Char.SetHeading(72@, 163.5)
101@ = Blip.AddForChar(72@)
Blip.ChangeDisplay(101@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(101@, 968.3954, 2160.965, 1.0)
Task.StayInSamePlace(72@, True)
Char.GiveWeapon(72@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(72@, WeaponType.Mp5)
Char.SetAccuracy(72@, 40)
Char.SetDecisionMaker(72@, 35@)
Task.KillCharOnFoot(72@, $scplayer)
130@ = 0
73@ = Char.Create(PedType.Mission2, 126, 934.5824, 2172.318, 1010.03)
Char.SetHeading(73@, 197.0)
Char.SetHealth(73@, 150)
Char.SetMaxHealth(73@, 150)
102@ = Blip.AddForChar(73@)
Blip.ChangeDisplay(102@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(102@, 968.3954, 2160.965, 1.0)
Task.StayInSamePlace(73@, True)
Char.GiveWeapon(73@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(73@, WeaponType.Mp5)
Char.SetAccuracy(73@, 35)
Char.SetDecisionMaker(73@, 35@)
Task.KillCharOnFoot(73@, $scplayer)
131@ = 0

:CASINO6_13572
goto @CASINO6_15130

:CASINO6_13579
if 
  Char.IsInArea2D($scplayer, 951.5627, 2146.944, 932.642, 2141.283, False)
goto_if_false @CASINO6_14849
285@ += 1
74@ = Char.Create(PedType.Mission2, 127, 954.0464, 2157.825, 1010.031)
Char.SetHeading(74@, 30.0)
Char.SetHealth(74@, 150)
Char.SetMaxHealth(74@, 150)
103@ = Blip.AddForChar(74@)
Blip.ChangeDisplay(103@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(103@, 968.3954, 2160.965, 1.0)
Char.GiveWeapon(74@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(74@, WeaponType.Mp5)
Char.SetAccuracy(74@, 40)
132@ = 0
set_lvar_int_to_lvar_int 289@ = 74@
290@ = 0
293@ = 944.0997
294@ = 2173.731
295@ = 1010.03
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930
75@ = Char.Create(PedType.Mission2, 124, 952.8911, 2165.843, 1010.031)
Char.SetHeading(75@, 180.0)
Char.SetHealth(75@, 150)
Char.SetMaxHealth(75@, 150)
104@ = Blip.AddForChar(75@)
Blip.ChangeDisplay(104@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(104@, 968.3954, 2160.965, 1.0)
Char.GiveWeapon(75@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(75@, WeaponType.Mp5)
Char.SetAccuracy(75@, 35)
Char.SetShootRate(75@, 70)
133@ = 0
set_lvar_int_to_lvar_int 289@ = 75@
290@ = 0
293@ = 949.5583
294@ = 2159.848
295@ = 1010.031
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930
76@ = Char.Create(PedType.Mission2, 126, 953.709, 2167.353, 1010.031)
Char.SetHeading(76@, 180.0)
Char.SetHealth(76@, 150)
Char.SetMaxHealth(76@, 150)
105@ = Blip.AddForChar(76@)
Blip.ChangeDisplay(105@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(105@, 968.3954, 2160.965, 1.0)
Char.GiveWeapon(76@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(76@, WeaponType.Mp5)
Char.SetAccuracy(76@, 40)
134@ = 0
set_lvar_int_to_lvar_int 289@ = 76@
290@ = 0
293@ = 947.7441
294@ = 2162.758
295@ = 1010.031
set_lvar_int_to_var_int 292@ = $scplayer
gosub @CASINO6_20930
77@ = Char.Create(PedType.Mission2, 127, 955.1686, 2155.968, 1013.643)
Char.SetHeading(77@, 25.0)
Char.SetHealth(77@, 150)
Char.SetMaxHealth(77@, 150)
106@ = Blip.AddForChar(77@)
Blip.ChangeDisplay(106@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(106@, 968.3954, 2160.965, 1.0)
Task.StayInSamePlace(77@, True)
Char.GiveWeapon(77@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(77@, WeaponType.Mp5)
Char.SetAccuracy(77@, 35)
Task.ToggleDuck(77@, True)
Task.KillCharOnFoot(77@, $scplayer)
135@ = 0
78@ = Char.Create(PedType.Mission2, 124, 957.3302, 2172.359, 1011.832)
Char.SetHeading(78@, 88.0)
Char.SetHealth(78@, 150)
Char.SetMaxHealth(78@, 150)
107@ = Blip.AddForChar(78@)
Blip.ChangeDisplay(107@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(107@, 968.3954, 2160.965, 1.0)
Task.StayInSamePlace(78@, True)
Char.GiveWeapon(78@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(78@, WeaponType.Mp5)
Char.SetAccuracy(78@, 40)
Task.ToggleDuck(78@, True)
Task.KillCharOnFoot(78@, $scplayer)
136@ = 0
79@ = Char.Create(PedType.Mission2, 126, 955.526, 2175.984, 1010.031)
Char.SetHeading(79@, 169.0)
Char.SetHealth(79@, 150)
Char.SetMaxHealth(79@, 150)
108@ = Blip.AddForChar(79@)
Blip.ChangeDisplay(108@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(108@, 968.3954, 2160.965, 1.0)
Task.StayInSamePlace(79@, True)
Char.GiveWeapon(79@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(79@, WeaponType.Mp5)
Char.SetAccuracy(79@, 35)
Task.ToggleDuck(79@, True)
Task.KillCharOnFoot(79@, $scplayer)
137@ = 0
80@ = Char.Create(PedType.Mission2, 125, 959.0216, 2172.0, 1010.031)
Char.SetHeading(80@, 283.0)
Char.SetHealth(80@, 150)
Char.SetMaxHealth(80@, 150)
109@ = Blip.AddForChar(80@)
Blip.ChangeDisplay(109@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(109@, 968.3954, 2160.965, 1.0)
Task.StayInSamePlace(80@, True)
Char.GiveWeapon(80@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(80@, WeaponType.Mp5)
Char.SetAccuracy(80@, 40)
Task.ToggleDuck(80@, True)
Task.KillCharOnFoot(80@, $scplayer)
138@ = 0
81@ = Char.Create(PedType.Mission2, 126, 958.8845, 2152.117, 1011.832)
Char.SetHeading(81@, 0.0)
Char.SetHealth(81@, 150)
Char.SetMaxHealth(81@, 150)
110@ = Blip.AddForChar(81@)
Blip.ChangeDisplay(110@, BlipDisplay.BlipOnly)
Blip.SetEntryExit(110@, 968.3954, 2160.965, 1.0)
Task.StayInSamePlace(81@, True)
Char.GiveWeapon(81@, WeaponType.Mp5, 3000)
Char.SetCurrentWeapon(81@, WeaponType.Mp5)
Char.SetAccuracy(81@, 35)
Task.ToggleDuck(81@, True)
Task.KillCharOnFoot(81@, $scplayer)
139@ = 0

:CASINO6_14849
goto @CASINO6_15130

:CASINO6_14856
if 
  Char.IsInArea2D($scplayer, 952.7594, 2156.425, 955.3043, 2166.761, False)
goto_if_false @CASINO6_14986
285@ += 1
if 
  not Char.IsDead(79@)
goto_if_false @CASINO6_14986
set_lvar_int_to_lvar_int 289@ = 79@
290@ = 0
291@ = 0
293@ = 960.9915
294@ = 2177.387
295@ = 1010.031
296@ = 107.0
gosub @CASINO6_20700

:CASINO6_14986
goto @CASINO6_15130

:CASINO6_14993
if 
  Char.IsInArea2D($scplayer, 961.765, 2174.899, 965.3094, 2171.588, False)
goto_if_false @CASINO6_15123
285@ += 1
if 
  not Char.IsDead(80@)
goto_if_false @CASINO6_15123
set_lvar_int_to_lvar_int 289@ = 80@
290@ = 0
291@ = 0
293@ = 958.909
294@ = 2158.502
295@ = 1010.031
296@ = 0.0
gosub @CASINO6_20700

:CASINO6_15123
goto @CASINO6_15130

:CASINO6_15130
return 

:CASINO6_15132
switch_start 41@ {numCases} 23 {hasDefaultCase} 0 {defaultLabel} @CASINO6_20081 {caseNum1} 0 {caseLabel1} @CASINO6_15325 {caseNum2} 1 {caseLabel2} @CASINO6_15353 {caseNum3} 2 {caseLabel3} @CASINO6_15731 {caseNum4} 3 {caseLabel4} @CASINO6_16162 {caseNum5} 4 {caseLabel5} @CASINO6_16495 {caseNum6} 5 {caseLabel6} @CASINO6_16762 {caseNum7} 6 {caseLabel7} @CASINO6_16905
switch_continued 7 {caseLabel1} @CASINO6_17190 {caseNum2} 8 {caseLabel2} @CASINO6_17240 {caseNum3} 9 {caseLabel3} @CASINO6_17359 {caseNum4} 10 {caseLabel4} @CASINO6_17409 {caseNum5} 11 {caseLabel5} @CASINO6_17499 {caseNum6} 12 {caseLabel6} @CASINO6_17560 {caseNum7} 13 {caseLabel7} @CASINO6_18016 {caseNum8} 14 {caseLabel8} @CASINO6_18135 {caseNum9} 15 {caseLabel9} @CASINO6_18322
switch_continued 16 {caseLabel1} @CASINO6_18444 {caseNum2} 17 {caseLabel2} @CASINO6_18612 {caseNum3} 18 {caseLabel3} @CASINO6_19132 {caseNum4} 19 {caseLabel4} @CASINO6_19236 {caseNum5} 20 {caseLabel5} @CASINO6_19587 {caseNum6} 21 {caseLabel6} @CASINO6_19720 {caseNum7} 22 {caseLabel7} @CASINO6_19806 {caseNum8} -1 {caseLabel8} @CASINO6_20081 {caseNum9} -1 {caseLabel9} @CASINO6_20081

:CASINO6_15325
Task.StayInSamePlace(39@, True)
Task.ToggleDuck(39@, True)
41@ += 1
goto @CASINO6_20081

:CASINO6_15353
if and
  Char.IsDead(55@)
  Char.IsDead(56@)
goto_if_false @CASINO6_15481
288@ = Sequence.Open()
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, False)
Task.GoToCoordAnyMeans(-1, 959.2689, 2098.59, 1010.03, 6, -1)
Task.AchieveHeading(-1, 255.0)
Task.ToggleDuck(-1, True)
Task.StandStill(-1, 300)
Task.StandStill(-1, 300)
Task.ToggleDuck(-1, False)
Sequence.Close(288@)
Char.PerformSequence(39@, 288@)
Sequence.Clear(288@)
41@ += 1
goto @CASINO6_15724

:CASINO6_15481
if 
  36@ == 1
goto_if_false @CASINO6_15606
288@ = Sequence.Open()
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, False)
Task.GoToCoordAnyMeans(-1, 959.2689, 2098.59, 1010.03, 6, -1)
Task.AchieveHeading(-1, 255.0)
Task.ToggleDuck(-1, True)
Task.StandStill(-1, 300)
Task.StandStill(-1, 300)
Task.ToggleDuck(-1, False)
Sequence.Close(288@)
Char.PerformSequence(39@, 288@)
Sequence.Clear(288@)
41@ += 1
goto @CASINO6_15724

:CASINO6_15606
if 
  45@ == 0
goto_if_false @CASINO6_15724
52@ = Math.RandomIntInRange(0, 101)
if 
  50 > 52@
goto_if_false @CASINO6_15680
set_var_int_to_constant $load_sample = 5643
set_var_text_label s$load_text = 'CAS6_EG'
goto @CASINO6_15702

:CASINO6_15680
set_var_int_to_constant $load_sample = 5641
set_var_text_label s$load_text = 'CAS6_EE'

:CASINO6_15702
start_new_script @A_ALAP 2 50 39@ 
45@ = 1

:CASINO6_15724
goto @CASINO6_20081

:CASINO6_15731
286@ = Char.GetSequenceProgress(39@)
if 
  286@ == 6
goto_if_false @CASINO6_16155
Char.GiveWeapon(39@, WeaponType.Extinguisher, 3000)
Char.SetCurrentWeapon(39@, WeaponType.Extinguisher)
Object.Delete(43@)
set_var_int_to_constant $load_sample = 5644
set_var_text_label s$load_text = 'CAS6_EH'
start_new_script @A_ALAP 2 100 39@ 
51@ = 0
if and
  Char.IsDead(53@)
  Char.IsDead(54@)
goto_if_false @CASINO6_15956
Char.ClearTasks(39@)
288@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 34@)
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, False)
Task.GoToCoordAnyMeans(-1, 946.1957, 2112.372, 1010.031, 6, -1)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.AchieveHeading(-1, 79.1071)
Sequence.Close(288@)
Char.PerformSequence(39@, 288@)
Sequence.Clear(288@)
51@ = 0
41@ = 4
goto @CASINO6_16155

:CASINO6_15956
if 
  36@ == 1
goto_if_false @CASINO6_16079
Char.ClearTasks(39@)
288@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 34@)
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, False)
Task.GoToCoordAnyMeans(-1, 946.1957, 2112.372, 1010.031, 6, -1)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.AchieveHeading(-1, 79.1071)
Sequence.Close(288@)
Char.PerformSequence(39@, 288@)
Sequence.Clear(288@)
41@ = 4
goto @CASINO6_16155

:CASINO6_16079
set_lvar_int_to_lvar_int 289@ = 39@
290@ = 0
291@ = 0
293@ = 957.9808
294@ = 2100.714
295@ = 1010.031
296@ = 346.0
gosub @CASINO6_21032
41@ += 1

:CASINO6_16155
goto @CASINO6_20081

:CASINO6_16162
if and
  Char.IsDead(53@)
  Char.IsDead(54@)
goto_if_false @CASINO6_16288
Char.ClearTasks(39@)
288@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 34@)
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, False)
Task.GoToCoordAnyMeans(-1, 945.1309, 2112.711, 1010.031, 6, -1)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.AchieveHeading(-1, 79.1071)
Sequence.Close(288@)
Char.PerformSequence(39@, 288@)
Sequence.Clear(288@)
41@ += 1
goto @CASINO6_16488

:CASINO6_16288
if 
  36@ == 1
goto_if_false @CASINO6_16418
Char.ClearTasks(39@)
288@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 34@)
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, False)
Task.GoToCoordAnyMeans(-1, 945.1309, 2112.711, 1010.031, 6, -1)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.AchieveHeading(-1, 79.1071)
Sequence.Close(288@)
Char.PerformSequence(39@, 288@)
Sequence.Clear(288@)
41@ += 1
51@ = 0
goto @CASINO6_16488

:CASINO6_16418
if and
  46@ == 0
  51@ > 500
goto_if_false @CASINO6_16488
set_var_int_to_constant $load_sample = 5642
set_var_text_label s$load_text = 'CAS6_EF'
start_new_script @A_ALAP 2 100 39@ 
46@ = 1

:CASINO6_16488
goto @CASINO6_20081

:CASINO6_16495
if 
  Char.LocateOnFoot2D(39@, 945.1309, 2112.711, 1.5, 1.5, False)
goto_if_false @CASINO6_16646
if 
  161@ == 0
goto_if_false @CASINO6_16565
41@ = 21
goto @CASINO6_16639

:CASINO6_16565
if 
  285@ > 0
goto_if_false @CASINO6_16597
41@ = 6
goto @CASINO6_16639

:CASINO6_16597
if and
  Char.IsDead(57@)
  Char.IsDead(58@)
goto_if_false @CASINO6_16632
41@ = 6
goto @CASINO6_16639

:CASINO6_16632
41@ += 1

:CASINO6_16639
goto @CASINO6_16755

:CASINO6_16646
if and
  47@ == 0
  51@ > 2500
goto_if_false @CASINO6_16755
if 
  36@ == 0
goto_if_false @CASINO6_16755
if or
  not Char.IsDead(57@)
  not Char.IsDead(58@)
goto_if_false @CASINO6_16755
set_var_int_to_constant $load_sample = 5645
set_var_text_label s$load_text = 'CAS6_EJ'
start_new_script @A_ALAP 2 101 39@ 
47@ = 1

:CASINO6_16755
goto @CASINO6_20081

:CASINO6_16762
if 
  285@ > 0
goto_if_false @CASINO6_16794
41@ += 1
goto @CASINO6_16898

:CASINO6_16794
if and
  Char.IsDead(57@)
  Char.IsDead(58@)
goto_if_false @CASINO6_16898
if 
  not Char.LocateOnFoot2D(39@, 945.1309, 2112.711, 1.5, 1.5, False)
goto_if_false @CASINO6_16891
Task.GoToCoordAnyMeans(39@, 945.1309, 2112.711, 1010.031, 6, -1)
41@ -= 1
goto @CASINO6_16898

:CASINO6_16891
41@ += 1

:CASINO6_16898
goto @CASINO6_20081

:CASINO6_16905
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_17071
if 
  36@ == 0
goto_if_false @CASINO6_17071
if 
  Char.IsInArea3D($scplayer, 930.0, 2114.0, 1010.0, 966.0, 2095.0, 1012.0, False)
goto_if_false @CASINO6_17034
set_var_int_to_constant $load_sample = 5646
set_var_text_label s$load_text = 'CAS6_EK'
start_new_script @A_ALAP 2 101 39@ 
goto @CASINO6_17071

:CASINO6_17034
set_var_int_to_constant $load_sample = 5647
set_var_text_label s$load_text = 'CAS6_EL'
start_new_script @A_ALAP 2 101 39@ 

:CASINO6_17071
Char.ClearTasks(39@)
42@ = 0
if or
  not ScriptFire.IsExtinguished(264@)
  not ScriptFire.IsExtinguished(263@)
goto_if_false @CASINO6_17168
Char.ClearTasks(39@)
288@ = Sequence.Open()
Task.ShootAtCoord(-1, 943.2, 2114.0, 1011.0, 3000)
Task.StandStill(-1, 500)
Sequence.Close(288@)
Char.PerformSequence(39@, 288@)
Sequence.Clear(288@)
goto @CASINO6_17176

:CASINO6_17168
42@ = 10000

:CASINO6_17176
41@ += 1
goto @CASINO6_20081

:CASINO6_17190
if 
  42@ > 2850
goto_if_false @CASINO6_17233
ScriptFire.Remove(264@)
ScriptFire.Remove(263@)
265@ = 1
41@ += 1

:CASINO6_17233
goto @CASINO6_20081

:CASINO6_17240
Char.ClearTasks(39@)
42@ = 0
if or
  not ScriptFire.IsExtinguished(262@)
  not ScriptFire.IsExtinguished(261@)
goto_if_false @CASINO6_17337
Char.ClearTasks(39@)
288@ = Sequence.Open()
Task.ShootAtCoord(-1, 941.9, 2114.0, 1011.0, 2000)
Task.StandStill(-1, 500)
Sequence.Close(288@)
Char.PerformSequence(39@, 288@)
Sequence.Clear(288@)
goto @CASINO6_17345

:CASINO6_17337
42@ = 10000

:CASINO6_17345
41@ += 1
goto @CASINO6_20081

:CASINO6_17359
if 
  42@ > 1250
goto_if_false @CASINO6_17402
ScriptFire.Remove(262@)
ScriptFire.Remove(261@)
266@ = 1
41@ += 1

:CASINO6_17402
goto @CASINO6_20081

:CASINO6_17409
Char.ClearTasks(39@)
42@ = 0
if or
  not ScriptFire.IsExtinguished(260@)
  not ScriptFire.IsExtinguished(259@)
goto_if_false @CASINO6_17477
Char.ClearTasks(39@)
Task.ShootAtCoord(39@, 940.7, 2114.0, 1011.0, 3000)
goto @CASINO6_17485

:CASINO6_17477
42@ = 10000

:CASINO6_17485
41@ += 1
goto @CASINO6_20081

:CASINO6_17499
if 
  42@ > 2850
goto_if_false @CASINO6_17553
ScriptFire.Remove(260@)
ScriptFire.Remove(259@)
267@ = 1
300@ = 2
Weather.SetHeathazeEffect(False)
41@ += 1

:CASINO6_17553
goto @CASINO6_20081

:CASINO6_17560
if 
  285@ > 0
goto_if_false @CASINO6_17884
if 
  285@ == 1
goto_if_false @CASINO6_17678
if or
  204@ == 0
  204@ == 3
goto_if_false @CASINO6_17664
Char.ClearTasks(39@)
Task.GoToCoordAnyMeans(39@, 960.0, 2110.0, 1010.031, 6, -1)
41@ = 15
goto @CASINO6_17671

:CASINO6_17664
41@ = 13

:CASINO6_17671
goto @CASINO6_17815

:CASINO6_17678
if 
  285@ == 2
goto_if_false @CASINO6_17778
if or
  204@ == 0
  204@ == 3
goto_if_false @CASINO6_17764
Char.ClearTasks(39@)
Task.GoToCoordAnyMeans(39@, 960.0, 2110.0, 1010.031, 6, -1)
41@ = 15
goto @CASINO6_17771

:CASINO6_17764
41@ = 13

:CASINO6_17771
goto @CASINO6_17815

:CASINO6_17778
if 
  285@ > 2
goto_if_false @CASINO6_17815
Char.ClearTasks(39@)
41@ = 19
goto @CASINO6_20081

:CASINO6_17815
if 
  36@ == 0
goto_if_false @CASINO6_17877
set_var_int_to_constant $load_sample = 5652
set_var_text_label s$load_text = 'CAS6_FA'
start_new_script @A_ALAP 2 100 39@ 
51@ = 0

:CASINO6_17877
goto @CASINO6_18009

:CASINO6_17884
if 
  48@ == 0
goto_if_false @CASINO6_18009
52@ = Math.RandomIntInRange(0, 101)
if 
  50 > 52@
goto_if_false @CASINO6_17958
set_var_int_to_constant $load_sample = 5648
set_var_text_label s$load_text = 'CAS6_EM'
goto @CASINO6_17980

:CASINO6_17958
set_var_int_to_constant $load_sample = 5649
set_var_text_label s$load_text = 'CAS6_EN'

:CASINO6_17980
start_new_script @A_ALAP 2 100 39@ 
48@ = 1
51@ = 0

:CASINO6_18009
goto @CASINO6_20081

:CASINO6_18016
205@ = Attractor.Add(950.9462, 2114.972, 1011.5, 180.0, 15.0, 206@)
Attractor.AddPedTypeAsUser(205@, PedType.Mission1)
Char.ClearTasks(39@)
288@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 34@)
Task.GoToCoordAnyMeans(-1, 950.2319, 2115.927, 1010.031, 6, -1)
Task.UseAttractor(-1, 205@)
Sequence.Close(288@)
Char.PerformSequence(39@, 288@)
Sequence.Clear(288@)
41@ += 1
goto @CASINO6_20081

:CASINO6_18135
if 
  Char.IsAtScriptedAttractor(39@, 205@)
goto_if_false @CASINO6_18315
if or
  204@ == 1
  204@ == 2
goto_if_false @CASINO6_18206
214@ = 0.0
215@ = 0.0005
204@ = 3

:CASINO6_18206
if 
  36@ == 1
goto_if_false @CASINO6_18231
51@ = 0

:CASINO6_18231
Char.SetProofs(39@, False, False, False, False, False)
Task.GoToCoordAnyMeans(39@, 963.4875, 2119.283, 1010.031, 6, -1)
Attractor.Clear(205@)
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_18308
41@ += 1
goto @CASINO6_18315

:CASINO6_18308
41@ = 19

:CASINO6_18315
goto @CASINO6_20081

:CASINO6_18322
if 
  Char.IsInArea3D(39@, 952.25, 2147.0, 1010.0, 967.0, 2114.0, 1012.0, False)
goto_if_false @CASINO6_18384
41@ += 1
goto @CASINO6_18437

:CASINO6_18384
286@ = Char.GetScriptTaskStatus(39@, 1539)
if 
  is_int_lvar_equal_to_constant 286@ == 7
goto_if_false @CASINO6_18437
Task.GoToCoordAnyMeans(39@, 963.4875, 2119.283, 1010.031, 6, -1)

:CASINO6_18437
goto @CASINO6_20081

:CASINO6_18444
286@ = Char.GetScriptTaskStatus(39@, 1539)
if 
  is_int_lvar_equal_to_constant 286@ == 7
goto_if_false @CASINO6_18605
if 
  Char.LocateOnFoot2D(39@, 963.4875, 2119.283, 1.2, 1.2, False)
goto_if_false @CASINO6_18581
Char.ClearTasks(39@)
288@ = Sequence.Open()
Task.AchieveHeading(-1, 104.0)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.SetCharDecisionMaker(-1, 35@)
Sequence.Close(288@)
Char.PerformSequence(39@, 288@)
Sequence.Clear(288@)
41@ += 1
goto @CASINO6_18605

:CASINO6_18581
Task.GoToCoordAnyMeans(39@, 963.4875, 2119.283, 1010.031, 6, -1)

:CASINO6_18605
goto @CASINO6_20081

:CASINO6_18612
if or
  204@ == 0
  204@ == 3
goto_if_false @CASINO6_19118
if 
  285@ >= 2
goto_if_false @CASINO6_19111
if or
  not Char.IsDead(67@)
  not Char.IsDead(68@)
goto_if_false @CASINO6_18690
goto @CASINO6_20081
goto @CASINO6_19111

:CASINO6_18690
if or
  not Char.IsDead(57@)
  not Char.IsDead(58@)
  not Char.IsDead(59@)
  not Char.IsDead(60@)
  not Char.IsDead(61@)
  not Char.IsDead(62@)
goto_if_false @CASINO6_18745
goto @CASINO6_20081
goto @CASINO6_19111

:CASINO6_18745
if or
  not Char.IsDead(63@)
  not Char.IsDead(64@)
  not Char.IsDead(54@)
goto_if_false @CASINO6_18785
goto @CASINO6_20081
goto @CASINO6_19111

:CASINO6_18785
set_lvar_int_to_lvar_int 289@ = 39@
290@ = 0
291@ = 1
if or
  not Char.IsDead(65@)
  not Char.IsDead(66@)
goto_if_false @CASINO6_18882
293@ = 942.1362
294@ = 2116.977
295@ = 1010.031
296@ = 310.9558
41@ = 18
goto @CASINO6_18929

:CASINO6_18882
293@ = 944.9211
294@ = 2138.566
295@ = 1010.031
296@ = 49.7997
41@ = 19

:CASINO6_18929
gosub @CASINO6_21032
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_19010
if 
  298@ == 1
goto_if_false @CASINO6_19010
set_var_int_to_constant $load_sample = 5623
set_var_text_label s$load_text = 'CAS6_ES'
start_new_script @A_ALAP 1 100 $scplayer 

:CASINO6_19010
if 
  49@ == 0
goto_if_false @CASINO6_19104
52@ = Math.RandomIntInRange(0, 101)
if 
  50 > 52@
goto_if_false @CASINO6_19076
317@ = 2
316@ = 3
goto @CASINO6_19090

:CASINO6_19076
317@ = 4
316@ = 5

:CASINO6_19090
TIMERA = 0
49@ = 1

:CASINO6_19104
51@ = 0

:CASINO6_19111
goto @CASINO6_19125

:CASINO6_19118
gosub @CASINO6_26055

:CASINO6_19125
goto @CASINO6_20081

:CASINO6_19132
if and
  Char.IsDead(65@)
  Char.IsDead(66@)
goto_if_false @CASINO6_19229
set_lvar_int_to_lvar_int 289@ = 39@
290@ = 0
291@ = 1
293@ = 944.9211
294@ = 2138.566
295@ = 1010.031
296@ = 49.7997
gosub @CASINO6_21032
41@ += 1

:CASINO6_19229
goto @CASINO6_20081

:CASINO6_19236
if 
  285@ > 2
goto_if_false @CASINO6_19580
if or
  not Char.IsDead(69@)
  not Char.IsDead(70@)
  not Char.IsDead(71@)
  not Char.IsDead(72@)
  not Char.IsDead(73@)
  not Char.IsDead(74@)
goto_if_false @CASINO6_19309
goto @CASINO6_20081
goto @CASINO6_19580

:CASINO6_19309
if or
  not Char.IsDead(75@)
  not Char.IsDead(76@)
goto_if_false @CASINO6_19344
goto @CASINO6_20081
goto @CASINO6_19580

:CASINO6_19344
set_lvar_int_to_lvar_int 289@ = 39@
290@ = 0
if or
  not Char.IsDead(77@)
  not Char.IsDead(78@)
  not Char.IsDead(79@)
  not Char.IsDead(80@)
  not Char.IsDead(81@)
goto_if_false @CASINO6_19456
291@ = 1
293@ = 949.2078
294@ = 2153.648
295@ = 1010.03
296@ = 0.0
41@ = 20
goto @CASINO6_19510

:CASINO6_19456
291@ = 0
293@ = 965.2232
294@ = 2156.294
295@ = 1010.031
296@ = 22.0
41@ = 30

:CASINO6_19510
gosub @CASINO6_21032
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_19573
set_var_int_to_constant $load_sample = 5623
set_var_text_label s$load_text = 'CAS6_ES'
start_new_script @A_ALAP 1 100 $scplayer 

:CASINO6_19573
51@ = 0

:CASINO6_19580
goto @CASINO6_20081

:CASINO6_19587
if or
  not Char.IsDead(77@)
  not Char.IsDead(78@)
  not Char.IsDead(79@)
  not Char.IsDead(80@)
  not Char.IsDead(81@)
goto_if_false @CASINO6_19637
goto @CASINO6_20081
goto @CASINO6_19713

:CASINO6_19637
set_lvar_int_to_lvar_int 289@ = 39@
290@ = 0
291@ = 0
293@ = 965.2232
294@ = 2156.294
295@ = 1010.031
296@ = 22.0
gosub @CASINO6_21032
41@ = 30

:CASINO6_19713
goto @CASINO6_20081

:CASINO6_19720
Char.ClearTasks(39@)
288@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 34@)
Task.ToggleDuck(-1, False)
Task.AchieveHeading(-1, 0.0)
Task.StandStill(-1, 500)
Task.AchieveHeading(-1, 90.0)
Task.ToggleDuck(-1, True)
Sequence.Close(288@)
Char.PerformSequence(39@, 288@)
Sequence.Clear(288@)
41@ += 1
goto @CASINO6_20081

:CASINO6_19806
286@ = Char.GetSequenceProgress(39@)
if 
  286@ == 3
goto_if_false @CASINO6_20074
if 
  161@ == 0
goto_if_false @CASINO6_20067
177@ = 0.0001
161@ = 1
163@ = 0
Audio.ReportMissionAudioEventAtPosition(941.9891, 2144.288, 1016.206, 1081)
if 
  36@ == 0
goto_if_false @CASINO6_20067
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_20060
if 
  Char.IsInArea3D($scplayer, 930.0, 2114.25, 1010.0, 966.0, 2095.0, 1012.0, False)
goto_if_false @CASINO6_20023
set_var_int_to_constant $load_sample = 5650
set_var_text_label s$load_text = 'CAS6_EO'
start_new_script @A_ALAP 2 100 39@ 
goto @CASINO6_20060

:CASINO6_20023
set_var_int_to_constant $load_sample = 5622
set_var_text_label s$load_text = 'CAS6_ER'
start_new_script @A_ALAP 1 100 $scplayer 

:CASINO6_20060
51@ = 0

:CASINO6_20067
41@ = 4

:CASINO6_20074
goto @CASINO6_20081

:CASINO6_20081
return 

:CASINO6_20083
if 
  287@ <> -2
goto_if_false @CASINO6_20229
if 
  285@ >= 2
goto_if_false @CASINO6_20229
if 
  204@ == 0
goto_if_false @CASINO6_20229
if or
  Char.IsInArea3D($scplayer, 952.25, 2147.0, 1010.0, 967.0, 2114.0, 1012.0, False)
  Char.IsInArea3D(39@, 952.25, 2147.0, 1010.0, 967.0, 2114.0, 1012.0, False)
goto_if_false @CASINO6_20229
gosub @CASINO6_20231

:CASINO6_20229
return 

:CASINO6_20231
if 
  287@ == -1
goto_if_false @CASINO6_20486
if 
  not Char.IsDead(67@)
goto_if_false @CASINO6_20279
287@ = 14
goto @CASINO6_20316

:CASINO6_20279
if 
  not Char.IsDead(68@)
goto_if_false @CASINO6_20309
287@ = 15
goto @CASINO6_20316

:CASINO6_20309
287@ = -2

:CASINO6_20316
if 
  287@ <> -2
goto_if_false @CASINO6_20479
if 
  204@ == 0
goto_if_false @CASINO6_20472
205@ = Attractor.Add(950.9462, 2114.972, 1011.5, 180.0, 15.0, 206@)
Attractor.AddPedTypeAsUser(205@, PedType.Mission2)
Char.ClearTasks(53@(287@,29i))
288@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 34@)
Task.GoToCoordAnyMeans(-1, 950.2319, 2115.927, 1010.031, 6, -1)
Task.UseAttractor(-1, 205@)
Sequence.Close(288@)
Char.PerformSequence(53@(287@,29i), 288@)
Sequence.Clear(288@)
goto @CASINO6_20479

:CASINO6_20472
287@ = -1

:CASINO6_20479
goto @CASINO6_20698

:CASINO6_20486
if 
  Char.IsDead(53@(287@,29i))
goto_if_false @CASINO6_20525
Attractor.Clear(205@)
287@ = -1
goto @CASINO6_20698

:CASINO6_20525
if 
  Char.IsAtScriptedAttractor(53@(287@,29i), 205@)
goto_if_false @CASINO6_20640
if or
  204@ == 0
  204@ == 3
goto_if_false @CASINO6_20600
214@ = 0.0
215@ = -0.0005
204@ = 1

:CASINO6_20600
Char.ClearTasks(53@(287@,29i))
Char.SetDecisionMaker(53@(287@,29i), 35@)
Attractor.Clear(205@)
287@ = -1
goto @CASINO6_20698

:CASINO6_20640
if or
  204@ == 1
  204@ == 2
goto_if_false @CASINO6_20698
Char.ClearTasks(53@(287@,29i))
Char.SetDecisionMaker(53@(287@,29i), 35@)
Attractor.Clear(205@)
287@ = -1

:CASINO6_20698
return 

:CASINO6_20700
Char.ClearTasks(289@)
288@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 34@)
Task.StayInSamePlace(-1, False)
Task.GoToCoordAnyMeans(-1, 293@, 294@, 295@, 6, -1)
Task.ToggleDuck(-1, 291@)
Task.StayInSamePlace(-1, True)
if 
  296@ <> -1.0
goto_if_false @CASINO6_20781
Task.AchieveHeading(-1, 296@)

:CASINO6_20781
Task.KillCharOnFoot(-1, $scplayer)
Task.SetCharDecisionMaker(-1, 35@)
Sequence.Close(288@)
Char.PerformSequence(289@, 288@)
Sequence.Clear(288@)
return 

:CASINO6_20815
Char.ClearTasks(289@)
288@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 34@)
Task.StayInSamePlace(-1, False)
Task.GoToCoordAnyMeans(-1, 293@, 294@, 295@, 6, -1)
Task.ToggleDuck(-1, 291@)
Task.StayInSamePlace(-1, True)
if 
  296@ <> -1.0
goto_if_false @CASINO6_20896
Task.AchieveHeading(-1, 296@)

:CASINO6_20896
Task.KillCharOnFoot(-1, 39@)
Task.SetCharDecisionMaker(-1, 35@)
Sequence.Close(288@)
Char.PerformSequence(289@, 288@)
Sequence.Clear(288@)
return 

:CASINO6_20930
Char.ClearTasks(289@)
288@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 34@)
Task.ToggleDuck(-1, 290@)
Task.StayInSamePlace(-1, False)
if 
  293@ <> -1.0
goto_if_false @CASINO6_20998
Task.GoToCoordAnyMeans(-1, 293@, 294@, 295@, 6, -1)

:CASINO6_20998
Task.KillCharOnFoot(-1, 292@)
Task.SetCharDecisionMaker(-1, 35@)
Sequence.Close(288@)
Char.PerformSequence(289@, 288@)
Sequence.Clear(288@)
return 

:CASINO6_21032
Char.ClearTasks(289@)
288@ = Sequence.Open()
Task.SetCharDecisionMaker(-1, 34@)
Task.StayInSamePlace(-1, False)
Task.GoToCoordAnyMeans(-1, 293@, 294@, 295@, 6, -1)
Task.ToggleDuck(-1, 291@)
Task.StayInSamePlace(-1, True)
if 
  296@ <> -1.0
goto_if_false @CASINO6_21113
Task.AchieveHeading(-1, 296@)

:CASINO6_21113
Task.SetCharDecisionMaker(-1, 35@)
Sequence.Close(288@)
Char.PerformSequence(289@, 288@)
Sequence.Clear(288@)
return 

:CASINO6_21140
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @CASINO6_21172
177@ = 0.0001
goto @CASINO6_21197

:CASINO6_21172
if 
is_ps2_keyboard_key_pressed 31
goto_if_false @CASINO6_21197
177@ = -0.0001

:CASINO6_21197
add_timed_float_lvar_to_float_lvar 176@ +=@ 177@
if 
  176@ > 0.06
goto_if_false @CASINO6_21243
176@ = 0.06
goto @CASINO6_21274

:CASINO6_21243
if 
  0.0 > 176@
goto_if_false @CASINO6_21274
176@ = 0.0

:CASINO6_21274
if or
  161@ == 1
  176@ > 0.0
goto_if_false @CASINO6_23141
216@ = 0

:CASINO6_21309
if 
  6 > 216@
goto_if_false @CASINO6_23141
$x, $y, $z = Object.GetCoordinates(154@(216@,6i))
set_lvar_int_to_lvar_int 217@ = 148@(216@,6i)
switch_start 217@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @CASINO6_23109 {caseNum1} 0 {caseLabel1} @CASINO6_21485 {caseNum2} 1 {caseLabel2} @CASINO6_21541 {caseNum3} 2 {caseLabel3} @CASINO6_21891 {caseNum4} 3 {caseLabel4} @CASINO6_21947 {caseNum5} 4 {caseLabel5} @CASINO6_22297 {caseNum6} 5 {caseLabel6} @CASINO6_22353 {caseNum7} 6 {caseLabel7} @CASINO6_22703
switch_continued 7 {caseLabel1} @CASINO6_22759 {caseNum2} -1 {caseLabel2} @CASINO6_23109 {caseNum3} -1 {caseLabel3} @CASINO6_23109 {caseNum4} -1 {caseLabel4} @CASINO6_23109 {caseNum5} -1 {caseLabel5} @CASINO6_23109 {caseNum6} -1 {caseLabel6} @CASINO6_23109 {caseNum7} -1 {caseLabel7} @CASINO6_23109 {caseNum8} -1 {caseLabel8} @CASINO6_23109 {caseNum9} -1 {caseLabel9} @CASINO6_23109

:CASINO6_21485
if 
  is_float_var_greater_or_equal_to_float_lvar $x >= 181@(217@,8f)
goto_if_false @CASINO6_21526
148@(216@,6i) += 1
goto @CASINO6_21541

:CASINO6_21526
add_float_lvar_to_float_var $x += 176@
goto @CASINO6_23109

:CASINO6_21541
if 
  164@(216@,6f) >= 180.0
goto_if_false @CASINO6_21606
164@(216@,6f) = 0.0
sub_float_lvar_from_float_var $y -= 176@
148@(216@,6i) += 1
goto @CASINO6_21884

:CASINO6_21606
set_lvar_float_to_lvar_float 179@ = 176@
div_float_lvar_by_float_lvar 179@ /= 178@
add_float_lvar_to_float_lvar 164@(216@,6f) += 179@
if 
  164@(216@,6f) >= 180.0
goto_if_false @CASINO6_21673
164@(216@,6f) = 180.0

:CASINO6_21673
sub_float_lvar_from_float_lvar 170@(216@,6f) -= 179@
if 
  -180.0 >= 170@(216@,6f)
goto_if_false @CASINO6_21731
170@(216@,6f) += 360.0
goto @CASINO6_21770

:CASINO6_21731
if 
  170@(216@,6f) >= 180.0
goto_if_false @CASINO6_21770
170@(216@,6f) += -360.0

:CASINO6_21770
Object.SetRotation(154@(216@,6i), 0.0, 0.0, 170@(216@,6f))
198@ = Math.Cos(164@(216@,6f))
199@ = Math.Sin(164@(216@,6f))
set_lvar_float_to_lvar_float 200@ = 180@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 180@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 181@
sub_float_lvar_from_float_var $x -= 200@
set_var_float_to_lvar_float $y = 190@
add_float_lvar_to_float_var $y += 201@

:CASINO6_21884
goto @CASINO6_23109

:CASINO6_21891
if 
  is_float_lvar_greater_or_equal_to_float_var 189@(217@,8f) >= $y
goto_if_false @CASINO6_21932
148@(216@,6i) += 1
goto @CASINO6_21947

:CASINO6_21932
sub_float_lvar_from_float_var $y -= 176@
goto @CASINO6_23109

:CASINO6_21947
if 
  -90.0 >= 164@(216@,6f)
goto_if_false @CASINO6_22012
164@(216@,6f) = 90.0
sub_float_lvar_from_float_var $x -= 176@
148@(216@,6i) += 1
goto @CASINO6_22290

:CASINO6_22012
set_lvar_float_to_lvar_float 179@ = 176@
div_float_lvar_by_float_lvar 179@ /= 178@
sub_float_lvar_from_float_lvar 164@(216@,6f) -= 179@
if 
  -90.0 >= 164@(216@,6f)
goto_if_false @CASINO6_22079
164@(216@,6f) = -90.0

:CASINO6_22079
sub_float_lvar_from_float_lvar 170@(216@,6f) -= 179@
if 
  -180.0 >= 170@(216@,6f)
goto_if_false @CASINO6_22137
170@(216@,6f) += 360.0
goto @CASINO6_22176

:CASINO6_22137
if 
  170@(216@,6f) >= 180.0
goto_if_false @CASINO6_22176
170@(216@,6f) += -360.0

:CASINO6_22176
Object.SetRotation(154@(216@,6i), 0.0, 0.0, 170@(216@,6f))
198@ = Math.Cos(164@(216@,6f))
199@ = Math.Sin(164@(216@,6f))
set_lvar_float_to_lvar_float 200@ = 180@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 180@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 184@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 191@
add_float_lvar_to_float_var $y += 201@

:CASINO6_22290
goto @CASINO6_23109

:CASINO6_22297
if 
  is_float_lvar_greater_or_equal_to_float_var 181@(217@,8f) >= $x
goto_if_false @CASINO6_22338
148@(216@,6i) += 1
goto @CASINO6_22353

:CASINO6_22338
sub_float_lvar_from_float_var $x -= 176@
goto @CASINO6_23109

:CASINO6_22353
if 
  164@(216@,6f) >= 180.0
goto_if_false @CASINO6_22418
164@(216@,6f) = 0.0
add_float_lvar_to_float_var $y += 176@
148@(216@,6i) += 1
goto @CASINO6_22696

:CASINO6_22418
set_lvar_float_to_lvar_float 179@ = 176@
div_float_lvar_by_float_lvar 179@ /= 178@
add_float_lvar_to_float_lvar 164@(216@,6f) += 179@
if 
  164@(216@,6f) >= 180.0
goto_if_false @CASINO6_22485
164@(216@,6f) = 180.0

:CASINO6_22485
sub_float_lvar_from_float_lvar 170@(216@,6f) -= 179@
if 
  -180.0 >= 170@(216@,6f)
goto_if_false @CASINO6_22543
170@(216@,6f) += 360.0
goto @CASINO6_22582

:CASINO6_22543
if 
  170@(216@,6f) >= 180.0
goto_if_false @CASINO6_22582
170@(216@,6f) += -360.0

:CASINO6_22582
Object.SetRotation(154@(216@,6i), 0.0, 0.0, 170@(216@,6f))
198@ = Math.Cos(164@(216@,6f))
199@ = Math.Sin(164@(216@,6f))
set_lvar_float_to_lvar_float 200@ = 180@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 180@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 185@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 194@
sub_float_lvar_from_float_var $y -= 201@

:CASINO6_22696
goto @CASINO6_23109

:CASINO6_22703
if 
  is_float_var_greater_or_equal_to_float_lvar $y >= 189@(217@,8f)
goto_if_false @CASINO6_22744
148@(216@,6i) += 1
goto @CASINO6_22759

:CASINO6_22744
add_float_lvar_to_float_var $y += 176@
goto @CASINO6_23109

:CASINO6_22759
if 
  -90.0 >= 164@(216@,6f)
goto_if_false @CASINO6_22824
164@(216@,6f) = 90.0
add_float_lvar_to_float_var $x += 176@
148@(216@,6i) = 0
goto @CASINO6_23102

:CASINO6_22824
set_lvar_float_to_lvar_float 179@ = 176@
div_float_lvar_by_float_lvar 179@ /= 178@
sub_float_lvar_from_float_lvar 164@(216@,6f) -= 179@
if 
  -90.0 >= 164@(216@,6f)
goto_if_false @CASINO6_22891
164@(216@,6f) = -90.0

:CASINO6_22891
sub_float_lvar_from_float_lvar 170@(216@,6f) -= 179@
if 
  -180.0 >= 170@(216@,6f)
goto_if_false @CASINO6_22949
170@(216@,6f) += 360.0
goto @CASINO6_22988

:CASINO6_22949
if 
  170@(216@,6f) >= 180.0
goto_if_false @CASINO6_22988
170@(216@,6f) += -360.0

:CASINO6_22988
Object.SetRotation(154@(216@,6i), 0.0, 0.0, 170@(216@,6f))
198@ = Math.Cos(164@(216@,6f))
199@ = Math.Sin(164@(216@,6f))
set_lvar_float_to_lvar_float 200@ = 180@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 180@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 188@
sub_float_lvar_from_float_var $x -= 200@
set_var_float_to_lvar_float $y = 195@
sub_float_lvar_from_float_var $y -= 201@

:CASINO6_23102
goto @CASINO6_23109

:CASINO6_23109
Object.SetCoordinatesAndVelocity(154@(216@,6i), $x, $y, $z)
216@ += 1
goto @CASINO6_21309

:CASINO6_23141
if 
  163@ > 500
goto_if_false @CASINO6_23321
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CASINO6_23321
if 
  Char.IsInArea2D($scplayer, 945.7303, 2113.197, 947.412, 2112.319, False)
goto_if_false @CASINO6_23321
if 
  161@ == 0
goto_if_false @CASINO6_23277
177@ = 0.0001
161@ = 1
Audio.ReportMissionAudioEventAtPosition(941.9891, 2144.288, 1016.206, 1081)
goto @CASINO6_23314

:CASINO6_23277
177@ = -0.0001
161@ = 0
Audio.ReportMissionAudioEventAtPosition(941.9891, 2144.288, 1016.206, 1082)

:CASINO6_23314
163@ = 0

:CASINO6_23321
return 

:CASINO6_23323
switch_start 204@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO6_24812 {caseNum1} 0 {caseLabel1} @CASINO6_23386 {caseNum2} 1 {caseLabel2} @CASINO6_23475 {caseNum3} 2 {caseLabel3} @CASINO6_24099 {caseNum4} 3 {caseLabel4} @CASINO6_24630 {caseNum5} -1 {caseLabel5} @CASINO6_24812 {caseNum6} -1 {caseLabel6} @CASINO6_24812 {caseNum7} -1 {caseLabel7} @CASINO6_24812

:CASINO6_23386
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CASINO6_23468
if 
  Char.IsInArea2D($scplayer, 951.954, 2115.744, 949.9608, 2114.699, False)
goto_if_false @CASINO6_23468
214@ = 0.0
215@ = -0.0005
204@ += 1

:CASINO6_23468
goto @CASINO6_24812

:CASINO6_23475
if 
  297@ == 0
goto_if_false @CASINO6_23508
Audio.ReportMissionAudioEventAtObject(202@, 1079)
297@ = 1

:CASINO6_23508
$x, $y, $z = Object.GetCoordinates(202@)
set_lvar_float_to_var_float 299@ = $y
299@ -= 2.5
if 
  Char.LocateOnFoot2D($scplayer, $x, 299@, 0.8, 0.8, True)
goto_if_false @CASINO6_23581
goto @CASINO6_24812

:CASINO6_23581
add_float_lvar_to_float_lvar 214@ += 215@
if 
  -0.4 > 214@
goto_if_false @CASINO6_23620
214@ = -0.4

:CASINO6_23620
add_float_lvar_to_float_var $y += 214@
if 
  2117.448 >= $y
goto_if_false @CASINO6_24078
$y = 2117.448
204@ += 1
Audio.ReportMissionAudioEventAtObject(202@, 1080)
297@ = 0
if 
  Char.IsInArea3D($scplayer, 952.25, 2147.0, 1010.0, 967.0, 2114.0, 1012.0, False)
goto_if_false @CASINO6_23750
36@ = 1
207@ = 0
goto @CASINO6_23757

:CASINO6_23750
36@ = 0

:CASINO6_23757
if 
  Char.IsInArea3D(39@, 952.25, 2147.0, 1010.0, 967.0, 2114.0, 1012.0, False)
goto_if_false @CASINO6_23930
44@ = 1
207@ = 0
if 
  36@ == 1
goto_if_false @CASINO6_23865
227@ = 2
set_lvar_text_label 228@s = 'CAS6_F2'
goto @CASINO6_23923

:CASINO6_23865
set_var_int_to_constant $load_sample = 5653
set_var_text_label s$load_text = 'CAS6_FC'
start_new_script @A_ALAP 2 102 39@ 
51@ = 0
301@ = 1
TIMERB = 0

:CASINO6_23923
goto @CASINO6_24071

:CASINO6_23930
if 
  36@ == 1
goto_if_false @CASINO6_24039
set_var_int_to_constant $load_sample = 5627
set_var_text_label s$load_text = 'CAS6_FP'
start_new_script @A_ALAP 1 102 $scplayer 
51@ = 0
Char.SetProofs(39@, True, True, True, True, True)
if 
  41@ >= 15
goto_if_false @CASINO6_24032
41@ = 13

:CASINO6_24032
goto @CASINO6_24064

:CASINO6_24039
if 
  41@ == 15
goto_if_false @CASINO6_24064
41@ = 13

:CASINO6_24064
44@ = 0

:CASINO6_24071
goto @CASINO6_24078

:CASINO6_24078
Object.SetCoordinatesAndVelocity(202@, $x, $y, $z)
goto @CASINO6_24812

:CASINO6_24099
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CASINO6_24623
if 
  Char.IsInArea2D($scplayer, 951.954, 2115.744, 949.9608, 2114.699, False)
goto_if_false @CASINO6_24623
214@ = 0.0
215@ = 0.0005
204@ += 1
if 
  44@ == 1
goto_if_false @CASINO6_24609
if or
  not Char.IsDead(67@)
  not Char.IsDead(68@)
goto_if_false @CASINO6_24278
set_var_int_to_constant $load_sample = 5678
set_var_text_label s$load_text = 'CAS6_LD'
start_new_script @A_ALAP 1 102 $scplayer 
298@ = 1
51@ = 0
goto @CASINO6_24609

:CASINO6_24278
if or
  not Char.IsDead(57@)
  not Char.IsDead(58@)
  not Char.IsDead(59@)
  not Char.IsDead(60@)
  not Char.IsDead(61@)
  not Char.IsDead(62@)
goto_if_false @CASINO6_24377
set_var_int_to_constant $load_sample = 5678
set_var_text_label s$load_text = 'CAS6_LD'
start_new_script @A_ALAP 1 102 $scplayer 
298@ = 1
51@ = 0
goto @CASINO6_24609

:CASINO6_24377
if or
  not Char.IsDead(63@)
  not Char.IsDead(64@)
  not Char.IsDead(54@)
goto_if_false @CASINO6_24461
set_var_int_to_constant $load_sample = 5678
set_var_text_label s$load_text = 'CAS6_LD'
start_new_script @A_ALAP 1 102 $scplayer 
298@ = 1
51@ = 0
goto @CASINO6_24609

:CASINO6_24461
52@ = Math.RandomIntInRange(0, 151)
if 
  50 > 52@
goto_if_false @CASINO6_24518
set_var_int_to_constant $load_sample = 5677
set_var_text_label s$load_text = 'CAS6_LC'
goto @CASINO6_24587

:CASINO6_24518
if 
  52@ > 100
goto_if_false @CASINO6_24565
set_var_int_to_constant $load_sample = 5655
set_var_text_label s$load_text = 'CAS6_FK'
goto @CASINO6_24587

:CASINO6_24565
set_var_int_to_constant $load_sample = 5676
set_var_text_label s$load_text = 'CAS6_LB'

:CASINO6_24587
start_new_script @A_ALAP 2 102 39@ 
51@ = 0

:CASINO6_24609
36@ = 0
44@ = 0

:CASINO6_24623
goto @CASINO6_24812

:CASINO6_24630
if 
  297@ == 0
goto_if_false @CASINO6_24663
Audio.ReportMissionAudioEventAtObject(202@, 1079)
297@ = 1

:CASINO6_24663
$x, $y, $z = Object.GetCoordinates(202@)
add_float_lvar_to_float_lvar 214@ += 215@
if 
  214@ > 0.4
goto_if_false @CASINO6_24716
214@ = 0.4

:CASINO6_24716
add_float_lvar_to_float_var $y += 214@
if 
  $y >= 2121.648
goto_if_false @CASINO6_24777
$y = 2121.648
204@ = 0
Audio.ReportMissionAudioEventAtObject(202@, 1080)
297@ = 0

:CASINO6_24777
Object.SetCoordinatesAndVelocity(202@, $x, $y, $z)
36@ = 0
44@ = 0
goto @CASINO6_24812

:CASINO6_24812
return 

:CASINO6_24814
if 
  36@ == 1
goto_if_false @CASINO6_24942
if 
  207@ > 1500
goto_if_false @CASINO6_24935
216@ = Char.GetHealth($scplayer)
216@ -= 3
if 
  0 >= 216@
goto_if_false @CASINO6_24919
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F3'
Char.SetHealth($scplayer, 0)
goto @CASINO6_24928

:CASINO6_24919
Char.Damage($scplayer, 3, False)

:CASINO6_24928
207@ = 0

:CASINO6_24935
goto @CASINO6_25063

:CASINO6_24942
if 
  44@ == 1
goto_if_false @CASINO6_25063
if 
  207@ > 1500
goto_if_false @CASINO6_25063
216@ = Char.GetHealth(39@)
216@ -= 6
if 
  0 >= 216@
goto_if_false @CASINO6_25047
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F1'
Char.SetHealth(39@, 0)
goto @CASINO6_25056

:CASINO6_25047
Char.Damage(39@, 6, False)

:CASINO6_25056
207@ = 0

:CASINO6_25063
return 

:CASINO6_25065
switch_start 300@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO6_25240 {caseNum1} 0 {caseLabel1} @CASINO6_25128 {caseNum2} 1 {caseLabel2} @CASINO6_25184 {caseNum3} -1 {caseLabel3} @CASINO6_25240 {caseNum4} -1 {caseLabel4} @CASINO6_25240 {caseNum5} -1 {caseLabel5} @CASINO6_25240 {caseNum6} -1 {caseLabel6} @CASINO6_25240 {caseNum7} -1 {caseLabel7} @CASINO6_25240

:CASINO6_25128
if 
  Char.LocateOnFoot2D($scplayer, 941.5, 2114.0, 9.0, 9.0, False)
goto_if_false @CASINO6_25177
Weather.SetHeathazeEffect(True)
300@ += 1

:CASINO6_25177
goto @CASINO6_25240

:CASINO6_25184
if 
  not Char.LocateOnFoot2D($scplayer, 941.5, 2114.0, 11.0, 11.0, False)
goto_if_false @CASINO6_25233
Weather.SetHeathazeEffect(False)
300@ -= 1

:CASINO6_25233
goto @CASINO6_25240

:CASINO6_25240
return 

:CASINO6_25242
switch_start 317@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CASINO6_26053 {caseNum1} 0 {caseLabel1} @CASINO6_25370 {caseNum2} 1 {caseLabel2} @CASINO6_25445 {caseNum3} 2 {caseLabel3} @CASINO6_25492 {caseNum4} 3 {caseLabel4} @CASINO6_25614 {caseNum5} 4 {caseLabel5} @CASINO6_25661 {caseNum6} 5 {caseLabel6} @CASINO6_25783 {caseNum7} 6 {caseLabel7} @CASINO6_25830
switch_continued 7 {caseLabel1} @CASINO6_25931 {caseNum2} 8 {caseLabel2} @CASINO6_25978 {caseNum3} -1 {caseLabel3} @CASINO6_26053 {caseNum4} -1 {caseLabel4} @CASINO6_26053 {caseNum5} -1 {caseLabel5} @CASINO6_26053 {caseNum6} -1 {caseLabel6} @CASINO6_26053 {caseNum7} -1 {caseLabel7} @CASINO6_26053 {caseNum8} -1 {caseLabel8} @CASINO6_26053 {caseNum9} -1 {caseLabel9} @CASINO6_26053

:CASINO6_25370
if 
  3 > 316@
goto_if_false @CASINO6_25445
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 70 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_25445
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_25485
317@ = 0
$SLOT_status($preload_slot,2i) = -4

:CASINO6_25485
goto @CASINO6_26053

:CASINO6_25492
if 
  5 > 316@
goto_if_false @CASINO6_25593
if 
  TIMERA > 2500
goto_if_false @CASINO6_25586
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 70 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_25586
goto @CASINO6_25614

:CASINO6_25593
TIMERA = 0
317@ = 6
316@ = 7

:CASINO6_25614
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_25654
317@ = 2
$SLOT_status($preload_slot,2i) = -4

:CASINO6_25654
goto @CASINO6_26053

:CASINO6_25661
if 
  7 > 316@
goto_if_false @CASINO6_25762
if 
  TIMERA > 2500
goto_if_false @CASINO6_25755
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 70 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_25755
goto @CASINO6_25783

:CASINO6_25762
TIMERA = 0
317@ = 6
316@ = 7

:CASINO6_25783
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_25823
317@ = 4
$SLOT_status($preload_slot,2i) = -4

:CASINO6_25823
goto @CASINO6_26053

:CASINO6_25830
if 
  13 > 316@
goto_if_false @CASINO6_25931
if 
  TIMERA > 7000
goto_if_false @CASINO6_25931
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 70 341@(316@,23i) 
316@ += 1
317@ += 1
TIMERA = 0

:CASINO6_25931
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_25971
317@ = 6
$SLOT_status($preload_slot,2i) = -4

:CASINO6_25971
goto @CASINO6_26053

:CASINO6_25978
if 
  TIMERA > 9000
goto_if_false @CASINO6_26053
set_var_int_to_lvar_int $load_sample = 331@
set_var_text_label s$load_text = 390@s
start_new_script @A_ALAP 2 70 341@(316@,23i) 
316@ += 1
317@ += 1
TIMERA = 0

:CASINO6_26053
return 

:CASINO6_26055
if and
  301@ == 1
  TIMERB > 20000
goto_if_false @CASINO6_26201
if 
  302@ == 0
goto_if_false @CASINO6_26150
set_var_int_to_constant $load_sample = 5654
set_var_text_label s$load_text = 'CAS6_FF'
start_new_script @A_ALAP 2 75 39@ 
302@ = 1
goto @CASINO6_26194

:CASINO6_26150
set_var_int_to_constant $load_sample = 5675
set_var_text_label s$load_text = 'CAS6_LA'
start_new_script @A_ALAP 2 75 $scplayer 
302@ = 0

:CASINO6_26194
TIMERB = 0

:CASINO6_26201
return 

:CASINO6_26203
switch_start 303@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CASINO6_26911 {caseNum1} 0 {caseLabel1} @CASINO6_26266 {caseNum2} 1 {caseLabel2} @CASINO6_26350 {caseNum3} 2 {caseLabel3} @CASINO6_26426 {caseNum4} 3 {caseLabel4} @CASINO6_26601 {caseNum5} 4 {caseLabel5} @CASINO6_26682 {caseNum6} -1 {caseLabel6} @CASINO6_26911 {caseNum7} -1 {caseLabel7} @CASINO6_26911

:CASINO6_26266
if 
  Char.IsInArea2D($scplayer, 950.4901, 2113.204, 940.3504, 2103.84, False)
goto_if_false @CASINO6_26343
Text.PrintHelpForever('CAS6_H0')
304@ = 0
305@ = 0
306@ = 0
303@ += 1

:CASINO6_26343
goto @CASINO6_26911

:CASINO6_26350
if 
  304@ > 8000
goto_if_false @CASINO6_26385
Text.ClearHelp
303@ += 1
goto @CASINO6_26419

:CASINO6_26385
if or
  36@ == 1
  44@ == 1
goto_if_false @CASINO6_26419
Text.ClearHelp
303@ += 1

:CASINO6_26419
goto @CASINO6_26911

:CASINO6_26426
if and
  36@ == 1
  305@ == 0
goto_if_false @CASINO6_26501
if 
  44@ <> 1
goto_if_false @CASINO6_26494
Text.PrintHelpForever('CAS6_H3')
304@ = 0
303@ = 3

:CASINO6_26494
goto @CASINO6_26594

:CASINO6_26501
if 
  44@ == 1
goto_if_false @CASINO6_26594
if 
  306@ == 0
goto_if_false @CASINO6_26569
Text.PrintHelpForever('CAS6_H1')
304@ = 0
303@ = 4
goto @CASINO6_26594

:CASINO6_26569
if 
  306@ == 1
goto_if_false @CASINO6_26594
303@ = 4

:CASINO6_26594
goto @CASINO6_26911

:CASINO6_26601
if or
  304@ > 8000
  36@ == 0
goto_if_false @CASINO6_26675
Text.ClearHelp
305@ = 1
if 
  306@ == 3
goto_if_false @CASINO6_26668
303@ = -1
goto @CASINO6_26675

:CASINO6_26668
303@ = 2

:CASINO6_26675
goto @CASINO6_26911

:CASINO6_26682
if 
  306@ == 0
goto_if_false @CASINO6_26794
if 
  304@ > 8000
goto_if_false @CASINO6_26753
Text.ClearHelp
Text.PrintHelpForever('CAS6_H2')
304@ = 0
306@ = 2
goto @CASINO6_26787

:CASINO6_26753
if 
  44@ == 0
goto_if_false @CASINO6_26787
Text.ClearHelp
306@ = 1
303@ = 2

:CASINO6_26787
goto @CASINO6_26904

:CASINO6_26794
if 
  306@ == 1
goto_if_false @CASINO6_26844
Text.PrintHelpForever('CAS6_H2')
304@ = 0
306@ = 2
goto @CASINO6_26904

:CASINO6_26844
if 
  306@ == 2
goto_if_false @CASINO6_26904
if or
  304@ > 8000
  44@ == 0
goto_if_false @CASINO6_26904
Text.ClearHelp
306@ = 3
303@ = 2

:CASINO6_26904
goto @CASINO6_26911

:CASINO6_26911
return 

:CASINO6_26913
switch_start 307@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO6_27501 {caseNum1} 0 {caseLabel1} @CASINO6_26976 {caseNum2} 1 {caseLabel2} @CASINO6_27210 {caseNum3} 2 {caseLabel3} @CASINO6_27327 {caseNum4} 3 {caseLabel4} @CASINO6_27444 {caseNum5} -1 {caseLabel5} @CASINO6_27501 {caseNum6} -1 {caseLabel6} @CASINO6_27501 {caseNum7} -1 {caseLabel7} @CASINO6_27501

:CASINO6_26976
if 
  44@ == 1
goto_if_false @CASINO6_27024
Text.PrintNow('CAS6_G2', 8000, 1)
307@ = 1
goto @CASINO6_27203

:CASINO6_27024
if 
  36@ == 0
goto_if_false @CASINO6_27180
Text.PrintNow('CAS6_G1', 8000, 1)
if 
  not Blip.DoesExist(218@)
goto_if_false @CASINO6_27114
218@ = Blip.AddForCoord(964.788, 2159.504, 1011.055)
Blip.SetEntryExit(218@, 964.788, 2159.504, 4.0)

:CASINO6_27114
World.SwitchEntryExit('ABATOIR', True)
307@ = 3
if 
  50@ == 0
goto_if_false @CASINO6_27173
317@ = 8
TIMERA = 0
50@ = 1

:CASINO6_27173
goto @CASINO6_27203

:CASINO6_27180
Text.PrintNow('CAS6_G3', 8000, 1)
307@ = 2

:CASINO6_27203
goto @CASINO6_27501

:CASINO6_27210
if 
  44@ == 0
goto_if_false @CASINO6_27320
Text.PrintNow('CAS6_G4', 8000, 1)
if 
  not Blip.DoesExist(218@)
goto_if_false @CASINO6_27300
218@ = Blip.AddForCoord(964.788, 2159.504, 1011.055)
Blip.SetEntryExit(218@, 964.788, 2159.504, 4.0)

:CASINO6_27300
World.SwitchEntryExit('ABATOIR', True)
307@ = 3

:CASINO6_27320
goto @CASINO6_27501

:CASINO6_27327
if 
  36@ == 0
goto_if_false @CASINO6_27437
Text.PrintNow('CAS6_G4', 8000, 1)
if 
  not Blip.DoesExist(218@)
goto_if_false @CASINO6_27417
218@ = Blip.AddForCoord(964.788, 2159.504, 1011.055)
Blip.SetEntryExit(218@, 964.788, 2159.504, 4.0)

:CASINO6_27417
World.SwitchEntryExit('ABATOIR', True)
307@ = 3

:CASINO6_27437
goto @CASINO6_27501

:CASINO6_27444
if or
  36@ == 1
  44@ == 1
goto_if_false @CASINO6_27494
Blip.Remove(218@)
World.SwitchEntryExit('ABATOIR', False)
307@ = 0

:CASINO6_27494
goto @CASINO6_27501

:CASINO6_27501
return 

:CASINO6_27503
216@ = 0

:CASINO6_27510
if 
  6 > 216@
goto_if_false @CASINO6_27569
Object.MarkAsNoLongerNeeded(154@(216@,6i))
Object.MarkAsNoLongerNeeded(142@(216@,6i))
Object.MarkAsNoLongerNeeded(208@(216@,6i))
216@ += 1
goto @CASINO6_27510

:CASINO6_27569
Pickup.Remove(37@)
Pickup.Remove(38@)
Object.MarkAsNoLongerNeeded(43@)
Object.MarkAsNoLongerNeeded(160@)
Object.MarkAsNoLongerNeeded(202@)
Object.MarkAsNoLongerNeeded(203@)
Object.MarkAsNoLongerNeeded(254@)
Object.MarkAsNoLongerNeeded(255@)
Streaming.MarkModelAsNoLongerNeeded(124)
Streaming.MarkModelAsNoLongerNeeded(125)
Streaming.MarkModelAsNoLongerNeeded(126)
Streaming.MarkModelAsNoLongerNeeded(127)
Streaming.MarkModelAsNoLongerNeeded(#AB_CARCASS)
Streaming.MarkModelAsNoLongerNeeded(#AB_HOOK)
Streaming.MarkModelAsNoLongerNeeded(#FREEZER_DOOR)
Streaming.MarkModelAsNoLongerNeeded(#SEC_KEYPAD)
Streaming.MarkModelAsNoLongerNeeded(#CARDBOARDBOX2)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(336)
Streaming.MarkModelAsNoLongerNeeded(341)
Streaming.MarkModelAsNoLongerNeeded(366)
Streaming.MarkModelAsNoLongerNeeded(#BODYARMOUR)
Streaming.MarkModelAsNoLongerNeeded(#CJ_MEAT_BAG_1)
Streaming.MarkModelAsNoLongerNeeded(#CJ_MEAT_1)
Streaming.MarkModelAsNoLongerNeeded(#CJ_MEAT_2)
return 

:CASINO6_27691
284@ = 1

:CASINO6_27698
if 
  284@ == 1
goto_if_false @CASINO6_27735
wait 0
284@ = Char.GetAreaVisible($scplayer)
goto @CASINO6_27698

:CASINO6_27735
Camera.DoFade(0, Fade.Out)

:CASINO6_27741
if 
  Camera.GetFadingStatus
goto_if_false @CASINO6_27765
wait 0
goto @CASINO6_27741

:CASINO6_27765
Player.DisableSprint($player1, False)
Hud.ClearCounter($7760)
Blip.Remove(40@)
Text.ClearHelp
Hud.SetRadarZoom(0)
gosub @CASINO6_27503
World.SwitchEntryExit('ABATOIR', False)
Blip.Remove(218@)
218@ = Blip.AddForCoord(2165.185, 1692.317, 9.8203)
Player.ClearWantedLevel($player1)
if 
  not Char.IsDead(39@)
goto_if_false @CASINO6_27931
Char.SetCoordinates(39@, 970.7965, 2155.644, 9.8203)
Char.SetHeading(39@, 295.3334)
Char.ClearTasksImmediately(39@)
Char.SetAreaVisible(39@, 0)
Char.SetNeverLeavesGroup(39@, True)
Group.SetMember(308@, 39@)
Char.RemoveAllWeapons(39@)
40@ = Blip.AddForChar(39@)
Blip.SetAsFriendly(40@, True)

:CASINO6_27931
if 
  233@ == 1
goto_if_false @CASINO6_28186
Streaming.RequestModel(234@)

:CASINO6_27954
if 
  not Streaming.HasModelLoaded(234@)
goto_if_false @CASINO6_27981
wait 0
goto @CASINO6_27954

:CASINO6_27981
314@ = Car.Create(234@, 977.1431, 2164.063, 9.8203)
Car.SetHeading(314@, 194.2554)
Car.ChangeColor(314@, 235@, 236@)
Car.SetExtraColors(314@, 237@, 238@)
216@ = 0

:CASINO6_28043
if 
  4 > 216@
goto_if_false @CASINO6_28102
if 
  is_local_var_bit_set_lvar 239@ {var_n} 216@
goto_if_false @CASINO6_28088
Car.BurstTire(314@, 216@)

:CASINO6_28088
216@ += 1
goto @CASINO6_28043

:CASINO6_28102
if 
  240@ <> -1
goto_if_false @CASINO6_28186
216@ = 0

:CASINO6_28127
if 
  6 > 216@
goto_if_false @CASINO6_28186
if 
  is_local_var_bit_set_lvar 240@ {var_n} 216@
goto_if_false @CASINO6_28172
Car.DamageDoor(314@, 216@)

:CASINO6_28172
216@ += 1
goto @CASINO6_28127

:CASINO6_28186
Camera.DoFade(500, Fade.In)
Text.PrintNow('CAS6_G5', 8000, 1)
315@ = 0
Player.ClearWantedLevel($player1)
Game.SetMaxWantedLevel(6)
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_28250
$SLOT_status[0] = -2

:CASINO6_28250
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_28275
$SLOT_status[1] = -2

:CASINO6_28275
set_lvar_text_label 364@s = 'CAS6_HA'
set_lvar_int_to_constant 318@ = 5661
set_lvar_int_to_lvar_int 341@ = 39@
set_lvar_text_label 366@s = 'CAS6_HB'
set_lvar_int_to_constant 319@ = 5662
set_lvar_int_to_lvar_int 342@ = 39@
set_lvar_text_label 368@s = 'CAS6_HC'
set_lvar_int_to_constant 320@ = 5663
set_lvar_int_to_lvar_int 343@ = 39@
set_lvar_text_label 370@s = 'CAS6_HD'
set_lvar_int_to_constant 321@ = 5628
set_lvar_int_to_var_int 344@ = $scplayer
set_lvar_text_label 372@s = 'CAS6_JA'
set_lvar_int_to_constant 322@ = 5664
set_lvar_int_to_lvar_int 345@ = 39@
set_lvar_text_label 374@s = 'CAS6_JB'
set_lvar_int_to_constant 323@ = 5665
set_lvar_int_to_lvar_int 346@ = 39@
set_lvar_text_label 376@s = 'CAS6_JC'
set_lvar_int_to_constant 324@ = 5666
set_lvar_int_to_lvar_int 347@ = 39@
set_lvar_text_label 378@s = 'CAS6_JD'
set_lvar_int_to_constant 325@ = 5629
set_lvar_int_to_var_int 348@ = $scplayer
set_lvar_text_label 380@s = 'CAS6_JE'
set_lvar_int_to_constant 326@ = 5667
set_lvar_int_to_lvar_int 349@ = 39@
set_lvar_text_label 382@s = 'CAS6_JF'
set_lvar_int_to_constant 327@ = 5668
set_lvar_int_to_lvar_int 350@ = 39@
set_lvar_text_label 384@s = 'CAS6_JG'
set_lvar_int_to_constant 328@ = 5669
set_lvar_int_to_lvar_int 351@ = 39@
set_lvar_text_label 386@s = 'CAS6_JJ'
set_lvar_int_to_constant 329@ = 5630
set_lvar_int_to_var_int 352@ = $scplayer
set_lvar_text_label 388@s = 'CAS6_JK'
set_lvar_int_to_constant 330@ = 5631
set_lvar_int_to_var_int 353@ = $scplayer
set_lvar_text_label 390@s = 'CAS6_JL'
set_lvar_int_to_constant 331@ = 5632
set_lvar_int_to_var_int 354@ = $scplayer
set_lvar_text_label 392@s = 'CAS6_JM'
set_lvar_int_to_constant 332@ = 5670
set_lvar_int_to_lvar_int 355@ = 39@
set_lvar_text_label 394@s = 'CAS6_JN'
set_lvar_int_to_constant 333@ = 5633
set_lvar_int_to_var_int 356@ = $scplayer
set_lvar_text_label 396@s = 'CAS6_JO'
set_lvar_int_to_constant 334@ = 5634
set_lvar_int_to_var_int 357@ = $scplayer
set_lvar_text_label 398@s = 'CAS6_KA'
set_lvar_int_to_constant 335@ = 5635
set_lvar_int_to_var_int 358@ = $scplayer
set_lvar_text_label 400@s = 'CAS6_KB'
set_lvar_int_to_constant 336@ = 5671
set_lvar_int_to_lvar_int 359@ = 39@
set_lvar_text_label 402@s = 'CAS6_KC'
set_lvar_int_to_constant 337@ = 5672
set_lvar_int_to_lvar_int 360@ = 39@
set_lvar_text_label 404@s = 'CAS6_KD'
set_lvar_int_to_constant 338@ = 5673
set_lvar_int_to_lvar_int 361@ = 39@
set_lvar_text_label 406@s = 'CAS6_KE'
set_lvar_int_to_constant 339@ = 5674
set_lvar_int_to_lvar_int 362@ = 39@
316@ = 0
317@ = 0
TIMERB = 0
Player.SetGroupRecruitment($player1, True)

:CASINO6_28963
wait 0
if 
  not Char.IsDead(39@)
goto_if_false @CASINO6_29204
if 
  Char.LocateAnyMeans3D($scplayer, 2165.185, 1692.317, 9.8203, 4.0, 4.0, 4.0, True)
goto_if_false @CASINO6_29122
if 
  Char.LocateAnyMeansChar2D($scplayer, 39@, 15.0, 15.0, False)
goto_if_false @CASINO6_29076
goto @CASINO6_30318
goto @CASINO6_29115

:CASINO6_29076
if 
  2 > 315@
goto_if_false @CASINO6_29101
315@ = 2

:CASINO6_29101
gosub @CASINO6_29588
gosub @CASINO6_29824

:CASINO6_29115
goto @CASINO6_29143

:CASINO6_29122
gosub @CASINO6_29409
gosub @CASINO6_29588
gosub @CASINO6_29824

:CASINO6_29143
284@ = Streaming.GetAreaVisible()
if 
  284@ <> 0
goto_if_false @CASINO6_29197
Text.ClearPrints
Char.FreezePosition(39@, True)
Blip.Remove(218@)
Blip.Remove(40@)
Char.RemoveFromGroup(39@)
goto @CASINO6_29239

:CASINO6_29197
goto @CASINO6_29232

:CASINO6_29204
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F0'
goto @CASINO6_31097

:CASINO6_29232
goto @CASINO6_28963

:CASINO6_29239
wait 0
if 
  not Char.IsDead(39@)
goto_if_false @CASINO6_29374
284@ = Streaming.GetAreaVisible()
if 
  284@ == 0
goto_if_false @CASINO6_29367
Char.FreezePosition(39@, False)
Char.SetNeverLeavesGroup(39@, True)
Group.SetMember(308@, 39@)
40@ = Blip.AddForChar(39@)
Blip.SetAsFriendly(40@, True)
Blip.ChangeDisplay(40@, BlipDisplay.BlipOnly)
218@ = Blip.AddForCoord(2165.185, 1692.317, 9.8203)
TIMERA = 0
315@ = 3
goto @CASINO6_28963

:CASINO6_29367
goto @CASINO6_29402

:CASINO6_29374
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F0'
goto @CASINO6_31097

:CASINO6_29402
goto @CASINO6_29239

:CASINO6_29409
switch_start 313@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO6_29586 {caseNum1} 0 {caseLabel1} @CASINO6_29472 {caseNum2} 1 {caseLabel2} @CASINO6_29534 {caseNum3} -1 {caseLabel3} @CASINO6_29586 {caseNum4} -1 {caseLabel4} @CASINO6_29586 {caseNum5} -1 {caseLabel5} @CASINO6_29586 {caseNum6} -1 {caseLabel6} @CASINO6_29586 {caseNum7} -1 {caseLabel7} @CASINO6_29586

:CASINO6_29472
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO6_29527
314@ = Char.GetCarIsUsing($scplayer)
if 
  Char.IsInCar(39@, 314@)
goto_if_false @CASINO6_29527
Blip.Remove(40@)
313@ += 1

:CASINO6_29527
goto @CASINO6_29586

:CASINO6_29534
if 
  not Char.IsInAnyCar(39@)
goto_if_false @CASINO6_29579
40@ = Blip.AddForChar(39@)
Blip.SetAsFriendly(40@, True)
Blip.ChangeDisplay(40@, BlipDisplay.BlipOnly)
313@ -= 1

:CASINO6_29579
goto @CASINO6_29586

:CASINO6_29586
return 

:CASINO6_29588
switch_start 315@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO6_29822 {caseNum1} 0 {caseLabel1} @CASINO6_29651 {caseNum2} 1 {caseLabel2} @CASINO6_29719 {caseNum3} 2 {caseLabel3} @CASINO6_29752 {caseNum4} 3 {caseLabel4} @CASINO6_29789 {caseNum5} -1 {caseLabel5} @CASINO6_29822 {caseNum6} -1 {caseLabel6} @CASINO6_29822 {caseNum7} -1 {caseLabel7} @CASINO6_29822

:CASINO6_29651
if 
  not Char.LocateAnyMeansChar2D($scplayer, 39@, 60.0, 60.0, False)
goto_if_false @CASINO6_29712
Text.PrintNow('CAS6_G6', 8000, 1)
TIMERA = 0
315@ += 1

:CASINO6_29712
goto @CASINO6_29822

:CASINO6_29719
if 
  TIMERA > 20000
goto_if_false @CASINO6_29745
315@ -= 1

:CASINO6_29745
goto @CASINO6_29822

:CASINO6_29752
Text.PrintNow('CAS6_G7', 8000, 1)
TIMERA = 0
315@ += 1
goto @CASINO6_29822

:CASINO6_29789
if 
  TIMERA > 20000
goto_if_false @CASINO6_29815
315@ = 0

:CASINO6_29815
goto @CASINO6_29822

:CASINO6_29822
return 

:CASINO6_29824
switch_start 317@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CASINO6_30316 {caseNum1} 0 {caseLabel1} @CASINO6_29887 {caseNum2} 1 {caseLabel2} @CASINO6_29920 {caseNum3} 2 {caseLabel3} @CASINO6_30047 {caseNum4} 3 {caseLabel4} @CASINO6_30094 {caseNum5} 4 {caseLabel5} @CASINO6_30269 {caseNum6} -1 {caseLabel6} @CASINO6_30316 {caseNum7} -1 {caseLabel7} @CASINO6_30316

:CASINO6_29887
if 
  TIMERB > 8000
goto_if_false @CASINO6_29913
317@ += 1

:CASINO6_29913
goto @CASINO6_30316

:CASINO6_29920
if 
  4 > 316@
goto_if_false @CASINO6_30033
if 
  Char.LocateAnyMeansChar2D($scplayer, 39@, 15.0, 15.0, False)
goto_if_false @CASINO6_30026
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 100 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_30026
goto @CASINO6_30047

:CASINO6_30033
317@ = 3
goto @CASINO6_30316

:CASINO6_30047
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_30087
317@ = 1
$SLOT_status($preload_slot,2i) = -4

:CASINO6_30087
goto @CASINO6_30316

:CASINO6_30094
if 
  313@ == 1
goto_if_false @CASINO6_30194
if 
  17 > 316@
goto_if_false @CASINO6_30187
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 1 100 341@(316@,23i) 
316@ += 1
317@ += 1

:CASINO6_30187
goto @CASINO6_30269

:CASINO6_30194
if 
  316@ <> 4
goto_if_false @CASINO6_30262
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_30237
$SLOT_status[0] = -2

:CASINO6_30237
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_30262
$SLOT_status[1] = -2

:CASINO6_30262
goto @CASINO6_30316

:CASINO6_30269
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_30309
317@ = 3
$SLOT_status($preload_slot,2i) = -4

:CASINO6_30309
goto @CASINO6_30316

:CASINO6_30316
return 

:CASINO6_30318
Player.SetControl($player1, False)
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_30350
$SLOT_status[0] = -2

:CASINO6_30350
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_30375
$SLOT_status[1] = -2

:CASINO6_30375
Camera.DoFade(500, Fade.Out)

:CASINO6_30382
if 
  Camera.GetFadingStatus
goto_if_false @CASINO6_30406
wait 0
goto @CASINO6_30382

:CASINO6_30406
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO6_30449
Char.WarpFromCarToCoord($scplayer, 2171.511, 1687.368, 9.8203)
goto @CASINO6_30469

:CASINO6_30449
Char.SetCoordinates($scplayer, 2171.511, 1687.368, 9.8203)

:CASINO6_30469
Char.SetHeading($scplayer, 352.2379)
if 
  not Char.IsDead(39@)
goto_if_false @CASINO6_30568
if 
  Char.IsInAnyCar(39@)
goto_if_false @CASINO6_30538
Char.WarpFromCarToCoord(39@, 2171.519, 1688.526, 9.8203)
goto @CASINO6_30558

:CASINO6_30538
Char.SetCoordinates(39@, 2171.519, 1688.526, 9.8203)

:CASINO6_30558
Char.SetHeading(39@, 194.051)

:CASINO6_30568
Camera.SetFixedPosition(2172.856, 1688.255, 11.0927, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2171.891, 1688.013, 11.1875, SwitchType.JumpCut)
World.ClearArea(2171.511, 1687.368, 9.8203, 60.0, True)
Car.Delete(314@)
316@ = 17
Hud.SwitchWidescreen(True)
Camera.DoFade(500, Fade.In)
skip_cutscene_start_internal @CASINO6_30863

:CASINO6_30673
if 
  22 > 316@
goto_if_false @CASINO6_30792
set_var_int_to_lvar_int $load_sample = 318@(316@,23i)
set_var_text_label s$load_text = 364@(316@,23s)
start_new_script @A_ALAP 2 100 341@(316@,23i) 

:CASINO6_30734
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @CASINO6_30767
wait 0
goto @CASINO6_30734

:CASINO6_30767
$SLOT_status($preload_slot,2i) = -4
316@ += 1
goto @CASINO6_30673

:CASINO6_30792
if 
  not Char.IsDead(39@)
goto_if_false @CASINO6_30839
Task.GoStraightToCoord(39@, 2178.015, 1689.698, 9.8203, MoveState.Walk, -2)
Camera.DoFade(2500, Fade.Out)

:CASINO6_30839
if 
  Camera.GetFadingStatus
goto_if_false @CASINO6_30863
wait 0
goto @CASINO6_30839

:CASINO6_30863
skip_cutscene_end 
Camera.DoFade(0, Fade.Out)

:CASINO6_30871
if 
  Camera.GetFadingStatus
goto_if_false @CASINO6_30895
wait 0
goto @CASINO6_30871

:CASINO6_30895
Text.ClearPrints
Char.SetHeading($scplayer, 95.0)
if 
  not Char.IsDead(39@)
goto_if_false @CASINO6_30928
Char.Delete(39@)

:CASINO6_30928
Camera.DoFade(0, Fade.In)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer

:CASINO6_30949
$flag_casino_mission_counter += 1
Stat.RegisterMissionPassed('CASINO6')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSS', 8000, 5000, TextStyle.Middle)
Player.AddScore($player1, 8000)
Stat.AwardPlayerMissionRespect(25)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.SetInt(StatId.PassedCasino6, 1)
start_new_script @DOC 
Blip.Remove($doc_contact_blip)
$doc_contact_blip = Blip.AddSpriteForContactPoint($docX, $docY, $docZ, $doc_blip_icon)
Blip.Remove($heist_contact_blip)
Blip.Remove($casino_contact_blip)
$casino_contact_blip = Blip.AddSpriteForContactPoint($casinoX, $casinoY, $casinoZ, $casino_blip_icon)
Blip.SetEntryExit($casino_contact_blip, 2026.603, 1007.735, 20.0)
return 

:CASINO6_31097
switch_start 227@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @CASINO6_31807 {caseNum1} 0 {caseLabel1} @CASINO6_31208 {caseNum2} 1 {caseLabel2} @CASINO6_31160 {caseNum3} 2 {caseLabel3} @CASINO6_31231 {caseNum4} -1 {caseLabel4} @CASINO6_31807 {caseNum5} -1 {caseLabel5} @CASINO6_31807 {caseNum6} -1 {caseLabel6} @CASINO6_31807 {caseNum7} -1 {caseLabel7} @CASINO6_31807

:CASINO6_31160
Text.PrintNow(228@s, 5000, 1)
if 
  36@ == 1
goto_if_false @CASINO6_31208
Object.SetCoordinates(202@, 951.859, 2121.648, 1012.094)

:CASINO6_31208
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
goto @CASINO6_31807

:CASINO6_31231
Camera.DoFade(0, Fade.Out)

:CASINO6_31237
if 
  Camera.GetFadingStatus
goto_if_false @CASINO6_31261
wait 0
goto @CASINO6_31237

:CASINO6_31261
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(963.9219, 2124.63, 1013.85, 0.0, 0.0, 0.0)
Camera.PointAtPoint(963.0831, 2124.185, 1013.536, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 955.6613, 2116.203, 1010.03)
Char.SetHeading($scplayer, 72.8077)
if 
  not Char.IsDead(39@)
goto_if_false @CASINO6_31419
Char.ClearTasksImmediately(39@)
Task.ToggleDuck(39@, False)
Char.SetDecisionMaker(39@, 34@)
Char.SetCoordinates(39@, 955.32, 2119.472, 1010.031)
Char.SetHeading(39@, 113.9337)

:CASINO6_31419
216@ = 0

:CASINO6_31426
if 
  is_int_lvar_greater_than_int_lvar 140@ > 216@
goto_if_false @CASINO6_31540
if 
  not Char.IsDead(53@(216@,29i))
goto_if_false @CASINO6_31526
if 
  Char.IsInArea3D(53@(216@,29i), 952.25, 2147.0, 1010.0, 967.0, 2114.0, 1012.0, False)
goto_if_false @CASINO6_31526
Char.Delete(53@(216@,29i))

:CASINO6_31526
216@ += 1
goto @CASINO6_31426

:CASINO6_31540
TIMERA = 0

:CASINO6_31547
if 
  400 > TIMERA
goto_if_false @CASINO6_31577
wait 0
goto @CASINO6_31547

:CASINO6_31577
Camera.DoFade(1000, Fade.In)

:CASINO6_31584
if 
  Camera.GetFadingStatus
goto_if_false @CASINO6_31608
wait 0
goto @CASINO6_31584

:CASINO6_31608
Text.PrintBig('M_FAIL', 4000, TextStyle.Middle)
Text.PrintNow(228@s, 4000, 1)
TIMERA = 0

:CASINO6_31641
if 
  4000 > TIMERA
goto_if_false @CASINO6_31671
wait 0
goto @CASINO6_31641

:CASINO6_31671
Camera.DoFade(500, Fade.Out)

:CASINO6_31678
if 
  Camera.GetFadingStatus
goto_if_false @CASINO6_31702
wait 0
goto @CASINO6_31678

:CASINO6_31702
Streaming.LoadScene(1578.446, 1770.682, 9.828)
Streaming.RequestCollision(1578.446, 1770.682)
Char.SetCoordinatesNoOffset($scplayer, 1578.446, 1770.682, 9.828)
Char.SetHeading($scplayer, 99.7567)
Game.ResetStuffUponResurrection
TIMERA = 0

:CASINO6_31770
if 
  400 > TIMERA
goto_if_false @CASINO6_31800
wait 0
goto @CASINO6_31770

:CASINO6_31800
goto @CASINO6_31807

:CASINO6_31807
284@ = Streaming.GetAreaVisible()
if 
  284@ <> 0
goto_if_false @CASINO6_31843
World.SwitchEntryExit('ABATOIR', True)

:CASINO6_31843
return 

:CASINO6_31845
if 
  Player.IsPlaying($player1)
goto_if_false @CASINO6_31872
Player.SetGroupRecruitment($player1, True)
Game.SetScriptLimitToGangSize(99)

:CASINO6_31872
start_new_script @A_TERM 
$entry_exit_area = 0
$entry_exit_status = 0
set_var_text_label s$entry_exit_name = 'ABATOIR'
start_new_script @ENTEXT 
Game.SetMaxWantedLevel(6)
Hud.ClearCounter($7760)
Blip.Remove(218@)
Text.ClearHelp
Weather.SetHeathazeEffect(False)
Hud.SetRadarZoom(0)
if 
  265@ == 0
goto_if_false @CASINO6_31968
ScriptFire.Remove(264@)
ScriptFire.Remove(263@)

:CASINO6_31968
if 
  266@ == 0
goto_if_false @CASINO6_31996
ScriptFire.Remove(262@)
ScriptFire.Remove(261@)

:CASINO6_31996
if 
  267@ == 0
goto_if_false @CASINO6_32024
ScriptFire.Remove(260@)
ScriptFire.Remove(259@)

:CASINO6_32024
if 
  Player.IsPlaying($player1)
goto_if_false @CASINO6_32151
Player.DisableSprint($player1, False)
216@ = 0

:CASINO6_32054
if 
  is_int_lvar_greater_than_int_lvar 140@ > 216@
goto_if_false @CASINO6_32151
if 
  not Char.IsDead(53@(216@,29i))
goto_if_false @CASINO6_32128
Char.SetDecisionMaker(53@(216@,29i), 34@)
Task.KillCharOnFoot(53@(216@,29i), $scplayer)
Char.SetKeepTask(53@(216@,29i), True)

:CASINO6_32128
Blip.Remove(82@(216@,29i))
216@ += 1
goto @CASINO6_32054

:CASINO6_32151
Char.MarkAsNoLongerNeeded(39@)
Blip.Remove(40@)
216@ = 0

:CASINO6_32168
if 
  6 > 216@
goto_if_false @CASINO6_32227
Object.MarkAsNoLongerNeeded(154@(216@,6i))
Object.MarkAsNoLongerNeeded(142@(216@,6i))
Object.MarkAsNoLongerNeeded(208@(216@,6i))
216@ += 1
goto @CASINO6_32168

:CASINO6_32227
216@ = 0

:CASINO6_32234
if 
  6 > 216@
goto_if_false @CASINO6_32275
Object.MarkAsNoLongerNeeded(245@(216@,9i))
216@ += 1
goto @CASINO6_32234

:CASINO6_32275
Pickup.Remove(37@)
Pickup.Remove(38@)
Car.MarkAsNoLongerNeeded(314@)
Object.MarkAsNoLongerNeeded(43@)
Object.MarkAsNoLongerNeeded(160@)
Object.MarkAsNoLongerNeeded(202@)
Object.MarkAsNoLongerNeeded(203@)
Object.MarkAsNoLongerNeeded(254@)
Object.MarkAsNoLongerNeeded(255@)
Particle.Kill(256@)
Particle.Kill(257@)
Streaming.UnloadSpecialCharacter(1)
Streaming.MarkModelAsNoLongerNeeded(124)
Streaming.MarkModelAsNoLongerNeeded(125)
Streaming.MarkModelAsNoLongerNeeded(126)
Streaming.MarkModelAsNoLongerNeeded(127)
Streaming.MarkModelAsNoLongerNeeded(344)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(341)
Streaming.MarkModelAsNoLongerNeeded(336)
Streaming.MarkModelAsNoLongerNeeded(366)
Streaming.MarkModelAsNoLongerNeeded(#BODYARMOUR)
Streaming.MarkModelAsNoLongerNeeded(#AB_CARCASS)
Streaming.MarkModelAsNoLongerNeeded(#AB_HOOK)
Streaming.MarkModelAsNoLongerNeeded(#FREEZER_DOOR)
Streaming.MarkModelAsNoLongerNeeded(#SEC_KEYPAD)
Streaming.MarkModelAsNoLongerNeeded(#CARDBOARDBOX2)
Streaming.MarkModelAsNoLongerNeeded(#CJ_MEAT_BAG_1)
Streaming.MarkModelAsNoLongerNeeded(#CJ_MEAT_1)
Streaming.MarkModelAsNoLongerNeeded(#CJ_MEAT_2)
Streaming.MarkModelAsNoLongerNeeded(234@)
$timer_mobile_start = Clock.GetGameTimer()
if 
  227@ == 2
goto_if_false @CASINO6_32458
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Camera.DoFade(1000, Fade.In)

:CASINO6_32458
$onmission = 0
Mission.Finish
return 

//-------------Mission 91---------------
// Originally: Freefall

:CASINO9
script_name 'CASINO9'
gosub @CASINO9_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO9_38
gosub @CASINO9_11794

:CASINO9_38
gosub @CASINO9_12098
terminate_this_script 

:CASINO9_47
Stat.RegisterMissionGiven
$onmission = 1
Text.LoadMissionText('CASINO9')
Char.SetCoordinates($scplayer, 2175.412, 1681.548, 9.8203)
Char.SetHeading($scplayer, 90.0)
Char.SetHasUsedEntryExit($scplayer, 2233.5, 1712.8, 10.0)
Player.SetGroupRecruitment($player1, False)
Game.SetScriptLimitToGangSize(0)
$iTerminateAllAmbience = 1
Streaming.SetAreaVisible(2)
Cutscene.Load('CAS_9A1')

:CASINO9_150
if 
  not Cutscene.HasLoaded
goto_if_false @CASINO9_174
wait 0
goto @CASINO9_150

:CASINO9_174
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CASINO9_183
if 
  not Cutscene.HasFinished
goto_if_false @CASINO9_207
wait 0
goto @CASINO9_183

:CASINO9_207
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CASINO9_222
if 
  Camera.GetFadingStatus
goto_if_false @CASINO9_246
wait 0
goto @CASINO9_222

:CASINO9_246
if 
  not Cutscene.WasSkipped
goto_if_false @CASINO9_366
Cutscene.Load('CAS_9A2')

:CASINO9_270
if 
  not Cutscene.HasLoaded
goto_if_false @CASINO9_294
wait 0
goto @CASINO9_270

:CASINO9_294
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CASINO9_303
if 
  not Cutscene.HasFinished
goto_if_false @CASINO9_327
wait 0
goto @CASINO9_303

:CASINO9_327
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CASINO9_342
if 
  Camera.GetFadingStatus
goto_if_false @CASINO9_366
wait 0
goto @CASINO9_342

:CASINO9_366
Streaming.SetAreaVisible(0)
Game.SetScriptLimitToGangSize(99)
start_new_script @A_CONT 
Streaming.LoadScene(2175.412, 1681.548, 9.8203)
Streaming.RequestModel(593)
Streaming.RequestModel(521)

:CASINO9_409
if or
  not Streaming.HasModelLoaded(593)
  not Streaming.HasModelLoaded(521)
goto_if_false @CASINO9_441
wait 0
goto @CASINO9_409

:CASINO9_441
Weather.ForceNow(WeatherType.SunnyVegas)
68@ = 0
if 
  68@ == 1
goto_if_false @CASINO9_501
34@ = Car.Create(593, 0.0, 0.0, 0.0)
35@ = Blip.AddForCar(34@)

:CASINO9_501
36@ = 0
Camera.SetBehindPlayer
Game.SwitchAmbientPlanes(False)
37@ = Car.Create(521, 2163.249, 1679.976, 9.8125)
Car.SetHeading(37@, 350.0)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Restart.SetRespawnPointForDurationOfMission(1581.374, 1768.996, 9.8203)
Camera.DoFade(500, Fade.In)
Text.PrintNow('CAS9_08', 8500, 1)
43@ = Blip.AddForCoord(1707.828, 1606.639, 9.055)
50@ = 0
36@ = 0
39@ = 0
47@ = 0
53@ = 1465.0
54@ = 5200.0
55@ = 200.0
59@ = 1465.0
60@ = 5220.0
61@ = 215.0

:CASINO9_710
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASINO9_736
goto @CASINO9_12029

:CASINO9_736
if 
  47@ == 0
goto_if_false @CASINO9_875
if 
  Char.LocateAnyMeans2D($scplayer, 1707.828, 1606.639, 4.0, 4.0, False)
goto_if_false @CASINO9_868
Blip.Remove(43@)
34@ = Car.Create(593, 1279.625, 1361.605, 9.8203)
Car.SetHeading(34@, 270.0)
35@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(35@, True)
Text.PrintNow('CAS9_09', 6000, 1)
47@ += 1

:CASINO9_868
goto @CASINO9_1739

:CASINO9_875
if 
  not Car.IsDead(34@)
goto_if_false @CASINO9_1711
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @CASINO9_1652
if 
  Blip.DoesExist(35@)
goto_if_false @CASINO9_988
Blip.Remove(35@)
43@ = Blip.AddForCoord(53@, 54@, 55@)
Text.ClearPrints
if 
  36@ == 0
goto_if_false @CASINO9_988
Text.PrintNow('CAS9_50', 8000, 1)
36@ += 1

:CASINO9_988
$x, $y, $z = Car.GetCoordinates(34@)
$distance = Math.GetDistanceBetweenCoords2D($x, $y, 53@, 54@)
switch_start 39@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO9_1645 {caseNum1} 0 {caseLabel1} @CASINO9_1082 {caseNum2} 1 {caseLabel2} @CASINO9_1136 {caseNum3} 2 {caseLabel3} @CASINO9_1260 {caseNum4} 3 {caseLabel4} @CASINO9_1377 {caseNum5} -1 {caseLabel5} @CASINO9_1645 {caseNum6} -1 {caseLabel6} @CASINO9_1645 {caseNum7} -1 {caseLabel7} @CASINO9_1645

:CASINO9_1082
if 
  $distance > 4400.0
goto_if_false @CASINO9_1110
goto @CASINO9_1645

:CASINO9_1110
Streaming.RequestModel(519)
Streaming.RequestModel(61)
Streaming.MarkModelAsNoLongerNeeded(521)
Car.MarkAsNoLongerNeeded(37@)
39@ += 1

:CASINO9_1136
if or
  $distance > 600.0
  not Streaming.HasModelLoaded(519)
  not Streaming.HasModelLoaded(61)
goto_if_false @CASINO9_1173
goto @CASINO9_1645

:CASINO9_1173
Blip.Remove(43@)
38@ = Car.Create(519, 53@, 54@, 55@)
Car.SetHeading(38@, 180.0)
Plane.SetUndercarriageUp(38@, True)
Car.FreezePosition(38@, True)
40@ = Char.CreateInsideCar(38@, PedType.Mission1, 61)
43@ = Blip.AddForCar(38@)
Blip.ChangeDisplay(43@, BlipDisplay.BlipOnly)
Blip.ChangeColor(43@, BlipColor.Yellow)
39@ += 1

:CASINO9_1260
if 
  $distance > 300.0
goto_if_false @CASINO9_1288
goto @CASINO9_1645

:CASINO9_1288
set_lvar_float_to_lvar_float 60@ = 54@
60@ += 20.0
set_var_float_to_lvar_float $y = 60@
$y -= 1.0
48@ = Checkpoint.Create(CheckpointType.Torus, 59@, 60@, 61@, 59@, $y, 61@, 3.0)
Text.PrintNow('CAS9_51', 8000, 1)
39@ += 1

:CASINO9_1377
if 
  not Car.IsDead(38@)
goto_if_false @CASINO9_1638
54@ -= 1.0
Car.SetCoordinatesNoOffset(38@, 53@, 54@, 55@)
set_lvar_float_to_lvar_float 60@ = 54@
60@ += 20.0
Checkpoint.SetCoords(48@, 59@, 60@, 61@)
set_var_float_to_lvar_float $z = 61@
$z -= 3.0
if 
  Char.LocateInCar3D($scplayer, 59@, 60@, $z, 4.0, 4.0, 4.0, False)
goto_if_false @CASINO9_1562
$heading = Car.GetHeading(34@)
if and
  240.0 > $heading
  $heading > 120.0
goto_if_false @CASINO9_1555
goto @CASINO9_1746

:CASINO9_1555
goto @CASINO9_1569

:CASINO9_1562
TIMERA = 0

:CASINO9_1569
if 
  3000.0 >= 54@
goto_if_false @CASINO9_1638
Plane.FlyInDirection(38@, 180.0, 200.0, 200.0)
50@ = 1
set_lvar_text_label 51@s = 'CAS9_52'
goto @CASINO9_11794

:CASINO9_1638
goto @CASINO9_1645

:CASINO9_1645
goto @CASINO9_1704

:CASINO9_1652
if 
  not Blip.DoesExist(35@)
goto_if_false @CASINO9_1704
Text.PrintNow('CAS9_04', 8000, 1)
35@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(35@, True)
Blip.Remove(43@)

:CASINO9_1704
goto @CASINO9_1739

:CASINO9_1711
50@ = 1
set_lvar_text_label 51@s = 'CAS9_F1'
goto @CASINO9_11794

:CASINO9_1739
goto @CASINO9_710

:CASINO9_1746
Camera.DoFade(0, Fade.Out)

:CASINO9_1752
if 
  Camera.GetFadingStatus
goto_if_false @CASINO9_1776
wait 0
goto @CASINO9_1752

:CASINO9_1776
Hud.DisplayZoneNames(False)
72@ = 1
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 32800)
Player.SetControl($player1, False)
if 
  not Car.IsDead(38@)
goto_if_false @CASINO9_1836
Car.SetHeading(38@, 0.0)
Plane.SetUndercarriageUp(38@, True)

:CASINO9_1836
if 
  not Car.IsDead(34@)
goto_if_false @CASINO9_1962
set_lvar_float_to_lvar_float 56@ = 53@
set_lvar_float_to_lvar_float 57@ = 54@
57@ -= 25.0
set_lvar_float_to_lvar_float 58@ = 55@
58@ += 20.0
Car.SetCoordinates(34@, 56@, 57@, 58@)
Car.SetHeading(34@, 0.0)
Car.FreezePosition(34@, True)
Car.SetHealth(34@, 4000)
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @CASINO9_1962
Char.WarpIntoCar($scplayer, 34@)

:CASINO9_1962
Checkpoint.Delete(48@)
Streaming.RequestAnimation("MISC")

:CASINO9_1975
if 
  not Streaming.HasAnimationLoaded("MISC")
goto_if_false @CASINO9_2005
wait 0
goto @CASINO9_1975

:CASINO9_2005
62@ = -3.0
63@ = -4.0
64@ = 0.0
65@ = -1.0
66@ = 0.0
67@ = 0.0
if 
  not Car.IsDead(34@)
goto_if_false @CASINO9_2111
Camera.AttachToVehicle(34@, 62@, 63@, 64@, 65@, 66@, 67@, 2.0, SwitchType.JumpCut)

:CASINO9_2111
71@ = 0
Camera.DoFade(400, Fade.In)
Hud.SwitchWidescreen(True)
TIMERA = 0
TIMERB = 0
Player.ClearWantedLevel($player1)
Game.SetMaxWantedLevel(0)
skip_cutscene_start_internal @CASINO9_2972

:CASINO9_2159
wait 0
if and
  not Car.IsDead(38@)
  not Car.IsDead(34@)
goto_if_false @CASINO9_3843
Camera.Shake(20)
57@ += 1.0
Car.SetCoordinates(34@, 56@, 57@, 58@)
54@ += 1.0
Car.SetCoordinates(38@, 53@, 54@, 55@)
switch_start 71@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CASINO9_3843 {caseNum1} 0 {caseLabel1} @CASINO9_2299 {caseNum2} 1 {caseLabel2} @CASINO9_2625 {caseNum3} 2 {caseLabel3} @CASINO9_2705 {caseNum4} 3 {caseLabel4} @CASINO9_2759 {caseNum5} 4 {caseLabel5} @CASINO9_2860 {caseNum6} 5 {caseLabel6} @CASINO9_3537 {caseNum7} -1 {caseLabel7} @CASINO9_3843

:CASINO9_2299
if 
  1000 > TIMERB
goto_if_false @CASINO9_2325
goto @CASINO9_3843

:CASINO9_2325
Char.AttachToCar($scplayer, 34@, 0.0, 0.0, 0.0, 0, 0.0, WeaponType.Unarmed)
Task.PlayAnim($scplayer, "PLANE_EXIT", "MISC", 1000.0, False, False, False, False, 0)
75@ = 741
90@ = 0.0
76@ = 794
91@ = 0.33
77@ = 847
92@ = 0.71
78@ = 953
93@ = 1.0
79@ = 1006
94@ = 0.87
80@ = 1059
95@ = 0.83
81@ = 1165
96@ = 0.81
82@ = 2118
97@ = 0.81
83@ = 2277
98@ = 0.78
84@ = 3336
99@ = 0.78
85@ = 4000
100@ = 0.78
88@ = 0
101@ = 0.0
set_lvar_int_to_lvar_int 89@ = 34@
71@ += 1

:CASINO9_2625
if 
  1000 > TIMERB
goto_if_false @CASINO9_2651
goto @CASINO9_3843

:CASINO9_2651
if 
  1500 > TIMERB
goto_if_false @CASINO9_2691
gosub @CASINO9_3850
goto @CASINO9_3843
goto @CASINO9_2705

:CASINO9_2691
TIMERA = 0
71@ += 1

:CASINO9_2705
gosub @CASINO9_3850
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @CASINO9_2752
Audio.AttachMissionAudioToCar(MissionAudioSlot.Slot3, 34@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
71@ += 1
goto @CASINO9_2759

:CASINO9_2752
goto @CASINO9_3843

:CASINO9_2759
if 
  5000 > TIMERB
goto_if_false @CASINO9_2853
if 
  -1.4 > 63@
goto_if_false @CASINO9_2839
63@ += 0.1
Camera.AttachToVehicle(34@, 62@, 63@, 64@, 65@, 66@, 67@, 2.0, SwitchType.JumpCut)

:CASINO9_2839
gosub @CASINO9_3850
goto @CASINO9_3843

:CASINO9_2853
71@ += 1

:CASINO9_2860
if 
  62@ > -7.0
goto_if_false @CASINO9_2931
62@ -= 0.1
64@ -= 0.045
Camera.AttachToVehicle(34@, 62@, 63@, 64@, 65@, 66@, 67@, 2.0, SwitchType.JumpCut)

:CASINO9_2931
74@ = Char.GetAnimCurrentTime($scplayer, "PLANE_EXIT")
if 
  74@ > 0.95
goto_if_false @CASINO9_3523

:CASINO9_2972
skip_cutscene_end 
Camera.DoFade(0, Fade.Out)

:CASINO9_2980
if 
  Camera.GetFadingStatus
goto_if_false @CASINO9_3004
wait 0
goto @CASINO9_2980

:CASINO9_3004
Char.ClearTasksImmediately($scplayer)
Char.DetachFromCar($scplayer)
Char.FreezePosition($scplayer, True)

:CASINO9_3021
if 
  Char.IsPlayingAnim($scplayer, "PLANE_EXIT")
goto_if_false @CASINO9_3060
wait 0
goto @CASINO9_3021

:CASINO9_3060
if 
  not Car.IsDead(38@)
goto_if_false @CASINO9_3108
Char.AttachToCar($scplayer, 38@, 0.0, 0.0, 0.0, 0, 360.0, WeaponType.Unarmed)

:CASINO9_3108
wait 0
Camera.DoFade(50, Fade.In)
Task.PlayAnimNonInterruptable($scplayer, "PLANE_HIJACK", "MISC", 1000.0, False, False, False, False, 0)
75@ = 3229
90@ = 0.0
76@ = 3282
91@ = 0.04
77@ = 3335
92@ = 0.09
78@ = 3388
93@ = 0.14
79@ = 3440
94@ = 0.19
80@ = 3493
95@ = 0.22
81@ = 5028
96@ = 0.22
82@ = 5081
97@ = 0.15
83@ = 5134
98@ = 0.08
84@ = 5187
99@ = 0.01
85@ = 5240
100@ = 0.0
88@ = 0
101@ = 0.0
set_lvar_int_to_lvar_int 89@ = 38@
62@ = -3.0
63@ = 6.0
64@ = -0.5
65@ = -2.0
66@ = -8.0
67@ = 1.0
Camera.SetShakeSimulationSimple(1, 20000.0, 3.0)
TIMERA = 0
TIMERB = 0
if 
  not Car.IsDead(34@)
goto_if_false @CASINO9_3492
Car.FreezePosition(34@, False)

:CASINO9_3492
73@ = 0.0
skip_cutscene_start_internal @CASINO9_3655
71@ = 5
goto @CASINO9_3537

:CASINO9_3523
gosub @CASINO9_3850
goto @CASINO9_3843

:CASINO9_3537
if 
  7000 > TIMERB
goto_if_false @CASINO9_3655
if 
  not Car.IsDead(34@)
goto_if_false @CASINO9_3634
73@ -= 3.0
56@ -= 0.3
57@ += 0.3
58@ -= 0.3
Car.SetCoordinates(34@, 56@, 57@, 58@)
Car.SetRoll(34@, 73@)

:CASINO9_3634
gosub @CASINO9_3850
gosub @CASINO9_4155
goto @CASINO9_3843

:CASINO9_3655
skip_cutscene_end 
Camera.DoFade(0, Fade.Out)

:CASINO9_3663
if 
  Camera.GetFadingStatus
goto_if_false @CASINO9_3687
wait 0
goto @CASINO9_3663

:CASINO9_3687
Camera.ResetNewScriptables
Char.ClearTasksImmediately($scplayer)
Char.DetachFromCar($scplayer)
Char.FreezePosition($scplayer, True)

:CASINO9_3706
if 
  Char.IsPlayingAnim($scplayer, "PLANE_HIJACK")
goto_if_false @CASINO9_3747
wait 0
goto @CASINO9_3706

:CASINO9_3747
Char.MarkAsNoLongerNeeded(40@)
Car.MarkAsNoLongerNeeded(34@)
Car.MarkAsNoLongerNeeded(38@)
Streaming.MarkModelAsNoLongerNeeded(61)
Streaming.MarkModelAsNoLongerNeeded(593)
Streaming.MarkModelAsNoLongerNeeded(519)
Streaming.RemoveAnimation("MISC")
Streaming.SetAreaVisible(1)
Char.SetCoordinates($scplayer, 1.6127, 34.7411, 1199.0)
Char.SetHeading($scplayer, 180.0)
Char.FreezePosition($scplayer, False)
Char.SetAreaVisible($scplayer, 1)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
goto @CASINO9_4308

:CASINO9_3843
goto @CASINO9_2159

:CASINO9_3850
if 
  11 > 88@
goto_if_false @CASINO9_4127
if 
  is_int_lvar_greater_than_int_lvar 75@(88@,11i) > TIMERA
goto_if_false @CASINO9_4004
add_float_lvar_to_float_lvar 102@ += 101@
if 
  101@ >= 0.0
goto_if_false @CASINO9_3962
if 
  is_float_lvar_greater_than_float_lvar 102@ > 90@(88@,11f)
goto_if_false @CASINO9_3955
set_lvar_float_to_lvar_float 102@ = 90@(88@,11f)

:CASINO9_3955
goto @CASINO9_3997

:CASINO9_3962
if 
  is_float_lvar_greater_than_float_lvar 90@(88@,11f) > 102@
goto_if_false @CASINO9_3997
set_lvar_float_to_lvar_float 102@ = 90@(88@,11f)

:CASINO9_3997
goto @CASINO9_4127

:CASINO9_4004
cset_lvar_float_to_lvar_int 103@ =# 75@(88@,11i)
set_lvar_float_to_lvar_float 105@ = 90@(88@,11f)
88@ += 1
if 
  88@ > 10
goto_if_false @CASINO9_4055
return 

:CASINO9_4055
cset_lvar_float_to_lvar_int 104@ =# 75@(88@,11i)
set_lvar_float_to_lvar_float 106@ = 90@(88@,11f)
sub_float_lvar_from_float_lvar 104@ -= 103@
sub_float_lvar_from_float_lvar 106@ -= 105@
div_float_lvar_by_float_lvar 106@ /= 104@
set_lvar_float_to_lvar_float 101@ = 106@
mult_float_lvar_by_float_lvar 101@ *= 104@
add_float_lvar_to_float_lvar 102@ += 101@

:CASINO9_4127
if 
  not Car.IsDead(89@)
goto_if_false @CASINO9_4153
Car.OpenDoorABit(89@, CarDoor.LeftFrontDoor, 102@)

:CASINO9_4153
return 

:CASINO9_4155
if 
  not Car.IsDead(38@)
goto_if_false @CASINO9_4306
if 
  107@ == 0
goto_if_false @CASINO9_4306
if 
  -4.0 >= 62@
goto_if_false @CASINO9_4226
107@ = 1
return 
goto @CASINO9_4276

:CASINO9_4226
62@ += -0.02
63@ += 0.02
64@ += -0.01
66@ += 0.23
67@ += -0.02

:CASINO9_4276
Camera.AttachToVehicle(38@, 62@, 63@, 64@, 65@, 66@, 67@, 0.0, SwitchType.JumpCut)

:CASINO9_4306
return 

:CASINO9_4308
72@ = 0
Streaming.RequestModel(124)
Streaming.RequestModel(125)
Streaming.RequestModel(126)
Streaming.RequestModel(127)
Streaming.RequestModel(346)
Streaming.RequestModel(#JET_BAGGAGE_DOOR)
Streaming.RequestModel(#CARDBOARDBOX2)
Streaming.RequestModel(#JET_INTERIOR)

:CASINO9_4351
if or
  not Streaming.HasModelLoaded(124)
  not Streaming.HasModelLoaded(125)
  not Streaming.HasModelLoaded(126)
  not Streaming.HasModelLoaded(127)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(#JET_BAGGAGE_DOOR)
goto_if_false @CASINO9_4399
wait 0
goto @CASINO9_4351

:CASINO9_4399
if or
  not Streaming.HasModelLoaded(#CARDBOARDBOX2)
  not Streaming.HasModelLoaded(#JET_INTERIOR)
goto_if_false @CASINO9_4431
wait 0
goto @CASINO9_4399

:CASINO9_4431
49@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Streaming.LoadSceneInDirection(2.3947, 32.9835, 1198.594, 155.9863)
165@ = 2.9
166@ = 32.4
167@ = 1198.75
163@ = 0
164@ = Object.Create(#CARDBOARDBOX2, 165@, 166@, 167@)
Object.SetAreaVisible(164@, 1)
Object.SetDynamic(164@, False)
Object.SetCollision(164@, False)
Object.SetVisible(164@, False)
Char.AttachToObject($scplayer, 164@, 0.0, 0.0, 0.5, 2, 85.0, WeaponType.Pistol)
Player.SetHeadingForAttached($player1, 30.0, 30.0)
Char.FreezePosition($scplayer, True)
Hud.DisplayRadar(False)
108@ = Char.Create(PedType.Mission1, 124, 2.9739, 28.7207, 1198.594)
Char.SetAreaVisible(108@, 1)
Char.SetHeading(108@, 0.0)
Char.SetHealth(108@, 150)
Char.GiveWeapon(108@, WeaponType.Pistol, 3000)
Char.SetCurrentWeapon(108@, WeaponType.Pistol)
Char.SetDecisionMaker(108@, 49@)
Char.SetNeverTargeted(108@, True)
Task.StayInSamePlace(108@, True)
Task.SitDown(108@, 80000)
Char.SetDropsWeaponsWhenDead(108@, False)
Char.SetShootRate(108@, 90)
Char.SetAccuracy(108@, 0)
132@ = 2
146@ = 197.6
150@ = 214.0
154@ = 1199.851
158@ = 1200.366
109@ = Char.Create(PedType.Mission1, 125, 0.5102, 27.6804, 1198.594)
Char.SetAreaVisible(109@, 1)
Char.SetHeading(109@, 0.0)
Char.SetHealth(109@, 150)
Char.GiveWeapon(109@, WeaponType.Pistol, 3000)
Char.SetCurrentWeapon(109@, WeaponType.Pistol)
Char.SetDecisionMaker(109@, 49@)
Char.SetNeverTargeted(109@, True)
Task.StayInSamePlace(109@, True)
Task.SitDown(109@, 80000)
Char.SetDropsWeaponsWhenDead(109@, False)
Char.SetShootRate(109@, 90)
Char.SetAccuracy(109@, 0)
133@ = 3
147@ = 158.7
151@ = 170.2
155@ = 1199.972
159@ = 1200.34
110@ = Char.Create(PedType.Mission1, 126, 2.8831, 26.4404, 1198.601)
Char.SetAreaVisible(110@, 1)
Char.SetHeading(110@, 0.0)
Char.SetHealth(110@, 150)
Char.GiveWeapon(110@, WeaponType.Pistol, 3000)
Char.SetCurrentWeapon(110@, WeaponType.Pistol)
Char.SetDecisionMaker(110@, 49@)
Char.SetNeverTargeted(110@, True)
Task.StayInSamePlace(110@, True)
Task.SitDown(110@, 80000)
Char.SetDropsWeaponsWhenDead(110@, False)
Char.SetShootRate(110@, 90)
Char.SetAccuracy(110@, 0)
134@ = 0
148@ = 189.4
152@ = 196.9
156@ = 200.1145
160@ = 200.3232
111@ = Char.Create(PedType.Mission1, 127, 0.5068, 25.3824, 1198.601)
Char.SetAreaVisible(111@, 1)
Char.SetHeading(111@, 0.0)
Char.SetHealth(111@, 150)
Char.GiveWeapon(111@, WeaponType.Pistol, 3000)
Char.SetCurrentWeapon(111@, WeaponType.Pistol)
Char.SetDecisionMaker(111@, 49@)
Char.SetNeverTargeted(111@, True)
Task.StayInSamePlace(111@, True)
Task.SitDown(111@, 80000)
Char.SetDropsWeaponsWhenDead(111@, False)
Char.SetShootRate(111@, 90)
Char.SetAccuracy(111@, 0)
135@ = 1
149@ = 167.51
153@ = 174.11
157@ = 1200.148
161@ = 1200.328
set_lvar_text_label 208@s = 'CAS9_AA'
set_lvar_int_to_constant 184@ = 27601
set_lvar_int_to_lvar_int 188@ = 108@
set_lvar_text_label 210@s = 'CAS9_AB'
set_lvar_int_to_constant 185@ = 27602
set_lvar_int_to_lvar_int 189@ = 109@
set_lvar_text_label 212@s = 'CAS9_AC'
set_lvar_int_to_constant 186@ = 27607
set_lvar_int_to_lvar_int 190@ = 110@
set_lvar_text_label 214@s = 'CAS9_AD'
set_lvar_int_to_constant 187@ = 27608
set_lvar_int_to_lvar_int 191@ = 110@
set_lvar_text_label 216@s = 'CAS9_BA'
set_lvar_int_to_constant 192@ = 27603
set_lvar_text_label 218@s = 'CAS9_BB'
set_lvar_int_to_constant 193@ = 27604
set_lvar_text_label 220@s = 'CAS9_BC'
set_lvar_int_to_constant 194@ = 27609
set_lvar_text_label 222@s = 'CAS9_BD'
set_lvar_int_to_constant 195@ = 27610
set_lvar_text_label 224@s = 'CAS9_CA'
set_lvar_int_to_constant 196@ = 27605
set_lvar_text_label 226@s = 'CAS9_CB'
set_lvar_int_to_constant 197@ = 27606
set_lvar_text_label 228@s = 'CAS9_CC'
set_lvar_int_to_constant 198@ = 27611
set_lvar_text_label 230@s = 'CAS9_CD'
set_lvar_int_to_constant 199@ = 27612
Pad.SetPlayerFireButton($player1, False)
Pad.SetPlayerDuckButton($player1, False)
162@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
138@ = 4
139@ = -1
137@ = -1
168@ = Object.CreateNoOffset(#JET_BAGGAGE_DOOR, 0.752, 25.518, 1201.15)
169@ = Object.CreateNoOffset(#JET_BAGGAGE_DOOR, 0.752, 28.024, 1201.15)
170@ = Object.CreateNoOffset(#JET_BAGGAGE_DOOR, 0.752, 30.403, 1201.15)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(True)
TIMERA = 0

:CASINO9_5717
if 
  500 > TIMERA
goto_if_false @CASINO9_5747
wait 0
goto @CASINO9_5717

:CASINO9_5747
Camera.DoFade(500, Fade.In)
Text.PrintHelpForever('CAS9_H2')

:CASINO9_5765
if 
  Camera.GetFadingStatus
goto_if_false @CASINO9_5789
wait 0
goto @CASINO9_5765

:CASINO9_5789
TIMERA = 0

:CASINO9_5796
if 
  2000 > TIMERA
goto_if_false @CASINO9_5826
wait 0
goto @CASINO9_5796

:CASINO9_5826
Pad.SetPlayerFireButton($player1, True)
Hud.SwitchWidescreen(False)
178@ = 0
172@ = Clock.GetGameTimer()

:CASINO9_5849
wait 0
171@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 173@ = 171@
sub_int_lvar_from_int_lvar 173@ -= 172@
set_lvar_int_to_lvar_int 172@ = 171@
add_int_lvar_to_int_lvar 120@ += 173@
add_int_lvar_to_int_lvar 121@ += 173@
add_int_lvar_to_int_lvar 122@ += 173@
add_int_lvar_to_int_lvar 123@ += 173@
add_int_lvar_to_int_lvar 178@ += 173@
gosub @CASINO9_9015
gosub @CASINO9_9684
if 
  175@ == 0
goto_if_false @CASINO9_6217
if or
  162@ == 0
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
goto_if_false @CASINO9_6210
if and
  not Char.IsDead(108@)
  not Char.IsDead(109@)
  not Char.IsDead(110@)
  not Char.IsDead(111@)
goto_if_false @CASINO9_6210
Char.ClearTasks(108@)
Task.GoToCoordWhileShooting(108@, 3.0228, 29.7474, 1198.594, 6, 20.0, 0.5, $scplayer)
112@ = -1
Char.ClearTasks(109@)
Task.GoToCoordWhileShooting(109@, 0.739, 28.6978, 1198.594, 6, 20.0, 0.5, $scplayer)
113@ = -1
Char.ClearTasks(110@)
Task.GoToCoordWhileShooting(110@, 2.9224, 27.2966, 1198.601, 6, 20.0, 0.5, $scplayer)
114@ = -1
Char.ClearTasks(111@)
Task.GoToCoordWhileShooting(111@, 0.5596, 26.2475, 1198.601, 6, 20.0, 0.5, $scplayer)
115@ = -1
175@ = 1

:CASINO9_6210
goto @CASINO9_7323

:CASINO9_6217
if 
  181@ <> 2
goto_if_false @CASINO9_6242
gosub @CASINO9_9916

:CASINO9_6242
if 
  138@ <> 0
goto_if_false @CASINO9_7316
174@ = Math.RandomIntInRange(0, 24)
switch_start 174@ {numCases} 24 {hasDefaultCase} 0 {defaultLabel} @CASINO9_7302 {caseNum1} 0 {caseLabel1} @CASINO9_6462 {caseNum2} 1 {caseLabel2} @CASINO9_6497 {caseNum3} 2 {caseLabel3} @CASINO9_6532 {caseNum4} 3 {caseLabel4} @CASINO9_6567 {caseNum5} 4 {caseLabel5} @CASINO9_6602 {caseNum6} 5 {caseLabel6} @CASINO9_6637 {caseNum7} 6 {caseLabel7} @CASINO9_6672
switch_continued 7 {caseLabel1} @CASINO9_6707 {caseNum2} 8 {caseLabel2} @CASINO9_6742 {caseNum3} 9 {caseLabel3} @CASINO9_6777 {caseNum4} 10 {caseLabel4} @CASINO9_6812 {caseNum5} 11 {caseLabel5} @CASINO9_6847 {caseNum6} 12 {caseLabel6} @CASINO9_6882 {caseNum7} 13 {caseLabel7} @CASINO9_6917 {caseNum8} 14 {caseLabel8} @CASINO9_6952 {caseNum9} 15 {caseLabel9} @CASINO9_6987
switch_continued 16 {caseLabel1} @CASINO9_7022 {caseNum2} 17 {caseLabel2} @CASINO9_7057 {caseNum3} 18 {caseLabel3} @CASINO9_7092 {caseNum4} 19 {caseLabel4} @CASINO9_7127 {caseNum5} 20 {caseLabel5} @CASINO9_7162 {caseNum6} 21 {caseLabel6} @CASINO9_7197 {caseNum7} 22 {caseLabel7} @CASINO9_7232 {caseNum8} 23 {caseLabel8} @CASINO9_7267 {caseNum9} -1 {caseLabel9} @CASINO9_7302

:CASINO9_6462
141@ = 0
142@ = 1
143@ = 2
144@ = 3
goto @CASINO9_7302

:CASINO9_6497
141@ = 0
142@ = 1
143@ = 3
144@ = 2
goto @CASINO9_7302

:CASINO9_6532
141@ = 0
142@ = 2
143@ = 1
144@ = 3
goto @CASINO9_7302

:CASINO9_6567
141@ = 0
142@ = 2
143@ = 3
144@ = 1
goto @CASINO9_7302

:CASINO9_6602
141@ = 0
142@ = 3
143@ = 1
144@ = 2
goto @CASINO9_7302

:CASINO9_6637
141@ = 0
142@ = 3
143@ = 2
144@ = 1
goto @CASINO9_7302

:CASINO9_6672
141@ = 1
142@ = 0
143@ = 2
144@ = 3
goto @CASINO9_7302

:CASINO9_6707
141@ = 1
142@ = 0
143@ = 3
144@ = 2
goto @CASINO9_7302

:CASINO9_6742
141@ = 1
142@ = 2
143@ = 0
144@ = 3
goto @CASINO9_7302

:CASINO9_6777
141@ = 1
142@ = 2
143@ = 3
144@ = 0
goto @CASINO9_7302

:CASINO9_6812
141@ = 1
142@ = 3
143@ = 0
144@ = 2
goto @CASINO9_7302

:CASINO9_6847
141@ = 1
142@ = 3
143@ = 2
144@ = 0
goto @CASINO9_7302

:CASINO9_6882
141@ = 2
142@ = 0
143@ = 1
144@ = 3
goto @CASINO9_7302

:CASINO9_6917
141@ = 2
142@ = 0
143@ = 3
144@ = 1
goto @CASINO9_7302

:CASINO9_6952
141@ = 2
142@ = 1
143@ = 0
144@ = 3
goto @CASINO9_7302

:CASINO9_6987
141@ = 2
142@ = 1
143@ = 3
144@ = 0
goto @CASINO9_7302

:CASINO9_7022
141@ = 2
142@ = 3
143@ = 0
144@ = 1
goto @CASINO9_7302

:CASINO9_7057
141@ = 2
142@ = 3
143@ = 1
144@ = 0
goto @CASINO9_7302

:CASINO9_7092
141@ = 3
142@ = 0
143@ = 1
144@ = 2
goto @CASINO9_7302

:CASINO9_7127
141@ = 3
142@ = 0
143@ = 2
144@ = 1
goto @CASINO9_7302

:CASINO9_7162
141@ = 3
142@ = 1
143@ = 0
144@ = 2
goto @CASINO9_7302

:CASINO9_7197
141@ = 3
142@ = 1
143@ = 2
144@ = 0
goto @CASINO9_7302

:CASINO9_7232
141@ = 3
142@ = 2
143@ = 0
144@ = 1
goto @CASINO9_7302

:CASINO9_7267
141@ = 3
142@ = 2
143@ = 1
144@ = 0
goto @CASINO9_7302

:CASINO9_7302
gosub @CASINO9_7330
goto @CASINO9_7323

:CASINO9_7316
goto @CASINO9_10131

:CASINO9_7323
goto @CASINO9_5849

:CASINO9_7330
41@ = 0

:CASINO9_7337
if 
  4 > 41@
goto_if_false @CASINO9_9013
set_lvar_int_to_lvar_int 145@ = 141@(41@,4i)
if 
  not Char.IsDead(108@(145@,4i))
goto_if_false @CASINO9_8925
switch_start 112@(145@,4i) {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CASINO9_8918 {caseNum1} -1 {caseLabel1} @CASINO9_7454 {caseNum2} 0 {caseLabel2} @CASINO9_7531 {caseNum3} 1 {caseLabel3} @CASINO9_7909 {caseNum4} 2 {caseLabel4} @CASINO9_8499 {caseNum5} 3 {caseLabel5} @CASINO9_8795 {caseNum6} 4 {caseLabel6} @CASINO9_8866 {caseNum7} -1 {caseLabel7} @CASINO9_8918

:CASINO9_7454
46@ = Char.GetScriptTaskStatus(108@(145@,4i), 1591)
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @CASINO9_7531
Char.FreezePosition(108@(145@,4i), True)
Task.ToggleDuck(108@(145@,4i), True)
Char.SetAccuracy(108@(145@,4i), 65)
112@(145@,4i) = 0

:CASINO9_7531
if 
  137@ == -1
goto_if_false @CASINO9_7902
46@ = Char.GetScriptTaskStatus(108@(145@,4i), 1259)
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @CASINO9_7707
set_lvar_int_to_lvar_int 42@ = 132@(145@,4i)
if 
  not is_int_lvar_equal_to_int_lvar 139@ == 42@
goto_if_false @CASINO9_7628
set_lvar_int_to_lvar_int 137@ = 145@
goto @CASINO9_7707

:CASINO9_7628
if 
  138@ == 1
goto_if_false @CASINO9_7661
set_lvar_int_to_lvar_int 137@ = 145@
goto @CASINO9_7707

:CASINO9_7661
if 
  138@ == 2
goto_if_false @CASINO9_7707
if 
  not Char.IsDead(108@(42@,4i))
goto_if_false @CASINO9_7707
set_lvar_int_to_lvar_int 137@ = 145@

:CASINO9_7707
if 
  is_int_lvar_equal_to_int_lvar 137@ == 145@
goto_if_false @CASINO9_7902
112@(145@,4i) = 4
116@(145@,4i) = 0
120@(145@,4i) = 0
140@ = Char.GetHealth(108@(145@,4i))
set_lvar_int_to_lvar_int 124@(145@,4i) = 140@
124@(145@,4i) *= 15
if 
  2000 > 124@(145@,4i)
goto_if_false @CASINO9_7836
124@(145@,4i) = 2000
goto @CASINO9_7871

:CASINO9_7836
if 
  124@(145@,4i) > 5000
goto_if_false @CASINO9_7871
124@(145@,4i) = 5000

:CASINO9_7871
Char.ClearTasks(108@(145@,4i))
Task.ToggleDuck(108@(145@,4i), False)
Char.SetAllowedToDuck(108@(145@,4i), False)

:CASINO9_7902
goto @CASINO9_8918

:CASINO9_7909
if 
  is_int_lvar_equal_to_int_lvar 137@ == 145@
goto_if_false @CASINO9_8492
if 
  138@ <> 1
goto_if_false @CASINO9_8151
if 
  is_int_lvar_greater_or_equal_to_int_lvar 120@(145@,4i) >= 124@(145@,4i)
goto_if_false @CASINO9_8021
112@(145@,4i) = 2
120@(145@,4i) = 0
124@(145@,4i) = 500
goto @CASINO9_8918
goto @CASINO9_8151

:CASINO9_8021
$heading = Char.GetHeading($scplayer)
if and
  is_float_var_greater_or_equal_to_float_lvar $heading >= 146@(145@,4f)
  is_float_lvar_greater_or_equal_to_float_var 150@(145@,4f) >= $heading
goto_if_false @CASINO9_8151
$x, $y, $z = Camera.GetActivePointAt()
if and
  is_float_var_greater_or_equal_to_float_lvar $z >= 154@(145@,4f)
  is_float_lvar_greater_or_equal_to_float_var 158@(145@,4f) >= $z
goto_if_false @CASINO9_8151
112@(145@,4i) = 2
120@(145@,4i) = 0
124@(145@,4i) = 700
goto @CASINO9_8918

:CASINO9_8151
if 
  162@ == 0
goto_if_false @CASINO9_8327
if 
  116@(145@,4i) <> 1
goto_if_false @CASINO9_8223
116@(145@,4i) = 1
Char.ClearTasks(108@(145@,4i))
Task.KillCharOnFoot(108@(145@,4i), $scplayer)

:CASINO9_8223
if and
  183@ == 1
  200@(145@,4i) == 0
goto_if_false @CASINO9_8320
set_var_int_to_lvar_int $load_sample = 192@(145@,4i)
set_var_text_label s$load_text = 216@(145@,4s)
start_new_script @A_ALAP 2 100 108@(145@,4i) 
183@ = 0
TIMERB = 0
200@(145@,4i) += 1

:CASINO9_8320
goto @CASINO9_8492

:CASINO9_8327
if and
  183@ == 2
  204@(145@,4i) == 0
goto_if_false @CASINO9_8424
set_var_int_to_lvar_int $load_sample = 196@(145@,4i)
set_var_text_label s$load_text = 224@(145@,4s)
start_new_script @A_ALAP 2 100 108@(145@,4i) 
183@ = 0
TIMERB = 0
204@(145@,4i) += 1

:CASINO9_8424
if 
  116@(145@,4i) <> 2
goto_if_false @CASINO9_8492
116@(145@,4i) = 2
Char.ClearTasks(108@(145@,4i))
Task.ShootAtCoord(108@(145@,4i), 1.8121, 37.2617, 1200.396, -1)

:CASINO9_8492
goto @CASINO9_8918

:CASINO9_8499
if 
  is_int_lvar_greater_or_equal_to_int_lvar 120@(145@,4i) >= 124@(145@,4i)
goto_if_false @CASINO9_8641
112@(145@,4i) = 0
Char.ClearTasks(108@(145@,4i))
Char.SetAllowedToDuck(108@(145@,4i), True)
46@ = Char.GetScriptTaskStatus(108@(145@,4i), 1259)
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @CASINO9_8608
Task.ToggleDuck(108@(145@,4i), True)
goto @CASINO9_8619

:CASINO9_8608
112@(145@,4i) = 3

:CASINO9_8619
set_lvar_int_to_lvar_int 139@ = 145@
137@ = -1
goto @CASINO9_8788

:CASINO9_8641
if 
  162@ == 0
goto_if_false @CASINO9_8720
if 
  116@(145@,4i) <> 1
goto_if_false @CASINO9_8713
116@(145@,4i) = 1
Char.ClearTasks(108@(145@,4i))
Task.KillCharOnFoot(108@(145@,4i), $scplayer)

:CASINO9_8713
goto @CASINO9_8788

:CASINO9_8720
if 
  116@(145@,4i) <> 2
goto_if_false @CASINO9_8788
116@(145@,4i) = 2
Char.ClearTasks(108@(145@,4i))
Task.ShootAtCoord(108@(145@,4i), 1.8121, 37.2617, 1200.396, -1)

:CASINO9_8788
goto @CASINO9_8918

:CASINO9_8795
46@ = Char.GetScriptTaskStatus(108@(145@,4i), 1259)
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @CASINO9_8859
Char.ClearTasks(108@(145@,4i))
Task.ToggleDuck(108@(145@,4i), True)
112@(145@,4i) = 0

:CASINO9_8859
goto @CASINO9_8918

:CASINO9_8866
if 
  120@(145@,4i) >= 200
goto_if_false @CASINO9_8911
120@(145@,4i) = 0
112@(145@,4i) = 1

:CASINO9_8911
goto @CASINO9_8918

:CASINO9_8918
goto @CASINO9_8999

:CASINO9_8925
if 
  112@(145@,4i) <> -2
goto_if_false @CASINO9_8999
112@(145@,4i) = -2
138@ -= 1
if 
  is_int_lvar_equal_to_int_lvar 137@ == 145@
goto_if_false @CASINO9_8999
set_lvar_int_to_lvar_int 139@ = 145@
137@ = -1

:CASINO9_8999
41@ += 1
goto @CASINO9_7337

:CASINO9_9013
return 

:CASINO9_9015
165@, 166@, 167@ = Object.GetCoordinates(164@)
if or
  165@ > 2.6
  0.2 > 165@
goto_if_false @CASINO9_9150
if 
  162@ == 0
goto_if_false @CASINO9_9099
162@ = 1
TIMERB = 0
goto @CASINO9_9143

:CASINO9_9099
if 
  TIMERB > 9000
goto_if_false @CASINO9_9143
if 
  181@ == 2
goto_if_false @CASINO9_9143
183@ = 2

:CASINO9_9143
goto @CASINO9_9233

:CASINO9_9150
if 
  162@ == 1
goto_if_false @CASINO9_9189
162@ = 0
TIMERB = 0
goto @CASINO9_9233

:CASINO9_9189
if 
  TIMERB > 9000
goto_if_false @CASINO9_9233
if 
  181@ == 2
goto_if_false @CASINO9_9233
183@ = 1

:CASINO9_9233
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.RightStickX)
  Pad.IsButtonPressed(PadId.Pad1, Button.RightStickY)
goto_if_false @CASINO9_9270
180@ = 1
goto @CASINO9_9277

:CASINO9_9270
180@ = 0

:CASINO9_9277
if and
  not Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder2)
  not Pad.IsButtonPressed(PadId.Pad1, Button.RightShoulder2)
goto_if_false @CASINO9_9383
  Object.Slide(164@, 1.7, 166@, 167@, 0.18, 0.0, 0.0, False)
if and
  165@ <> 1.7
  180@ == 0
goto_if_false @CASINO9_9376
Player.SetHeadingForAttached($player1, 90.0, 9.0)

:CASINO9_9376
goto @CASINO9_9682

:CASINO9_9383
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder2)
  Pad.IsButtonPressed(PadId.Pad1, Button.RightShoulder2)
goto_if_false @CASINO9_9489
  Object.Slide(164@, 1.7, 166@, 167@, 0.18, 0.0, 0.0, False)
if and
  165@ <> 1.7
  180@ == 0
goto_if_false @CASINO9_9482
Player.SetHeadingForAttached($player1, 90.0, 9.0)

:CASINO9_9482
goto @CASINO9_9682

:CASINO9_9489
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder2)
goto_if_false @CASINO9_9589
  Object.Slide(164@, 2.9, 166@, 167@, 0.18, 0.0, 0.0, False)
if and
  2.9 > 165@
  180@ == 0
goto_if_false @CASINO9_9582
Player.SetHeadingForAttached($player1, 30.0, 9.0)

:CASINO9_9582
goto @CASINO9_9682

:CASINO9_9589
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.RightShoulder2)
goto_if_false @CASINO9_9682
  Object.Slide(164@, 0.5, 166@, 167@, 0.18, 0.0, 0.0, False)
if and
  165@ > 0.5
  180@ == 0
goto_if_false @CASINO9_9682
Player.SetHeadingForAttached($player1, 150.0, 9.0)

:CASINO9_9682
return 

:CASINO9_9684
switch_start 179@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @CASINO9_9914 {caseNum1} 0 {caseLabel1} @CASINO9_9747 {caseNum2} 1 {caseLabel2} @CASINO9_9789 {caseNum3} 2 {caseLabel3} @CASINO9_9872 {caseNum4} -1 {caseLabel4} @CASINO9_9914 {caseNum5} -1 {caseLabel5} @CASINO9_9914 {caseNum6} -1 {caseLabel6} @CASINO9_9914 {caseNum7} -1 {caseLabel7} @CASINO9_9914

:CASINO9_9747
if 
  178@ >= 6000
goto_if_false @CASINO9_9782
Text.ClearHelp
179@ += 1
178@ = 0

:CASINO9_9782
goto @CASINO9_9914

:CASINO9_9789
if 
  162@ == 0
goto_if_false @CASINO9_9858
if 
  178@ > 20000
goto_if_false @CASINO9_9851
Text.PrintHelpForever('CAS9_H2')
179@ += 1
178@ = 0

:CASINO9_9851
goto @CASINO9_9865

:CASINO9_9858
178@ = 0

:CASINO9_9865
goto @CASINO9_9914

:CASINO9_9872
if 
  178@ > 6000
goto_if_false @CASINO9_9907
Text.ClearHelp
179@ -= 1
178@ = 0

:CASINO9_9907
goto @CASINO9_9914

:CASINO9_9914
return 

:CASINO9_9916
switch_start 181@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO9_10129 {caseNum1} 0 {caseLabel1} @CASINO9_9979 {caseNum2} 1 {caseLabel2} @CASINO9_10082 {caseNum3} -1 {caseLabel3} @CASINO9_10129 {caseNum4} -1 {caseLabel4} @CASINO9_10129 {caseNum5} -1 {caseLabel5} @CASINO9_10129 {caseNum6} -1 {caseLabel6} @CASINO9_10129 {caseNum7} -1 {caseLabel7} @CASINO9_10129

:CASINO9_9979
if 
  4 > 182@
goto_if_false @CASINO9_10061
set_var_int_to_lvar_int $load_sample = 184@(182@,4i)
set_var_text_label s$load_text = 208@(182@,4s)
start_new_script @A_ALAP 2 100 188@(182@,4i) 
182@ += 1
181@ += 1
goto @CASINO9_10082

:CASINO9_10061
TIMERB = 0
181@ = 2
goto @CASINO9_10129

:CASINO9_10082
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO9_10122
181@ -= 1
$SLOT_status($preload_slot,2i) = -4

:CASINO9_10122
goto @CASINO9_10129

:CASINO9_10129
return 

:CASINO9_10131
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO9_10156
$SLOT_status[0] = -2

:CASINO9_10156
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO9_10181
$SLOT_status[1] = -2

:CASINO9_10181
Text.ClearPrints
Text.ClearHelp
Streaming.RequestModel(61)

:CASINO9_10189
if 
  not Streaming.HasModelLoaded(61)
goto_if_false @CASINO9_10215
wait 0
goto @CASINO9_10189

:CASINO9_10215
TIMERA = 0

:CASINO9_10222
if 
  1000 > TIMERA
goto_if_false @CASINO9_10252
wait 0
goto @CASINO9_10222

:CASINO9_10252
Camera.DoFade(500, Fade.Out)

:CASINO9_10259
if 
  Camera.GetFadingStatus
goto_if_false @CASINO9_10283
wait 0
goto @CASINO9_10259

:CASINO9_10283
Char.DetachFromCar($scplayer)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Char.FreezePosition($scplayer, False)
Camera.SetFixedPosition(2.7271, 24.965, 1201.535, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2.422, 25.7162, 1200.95, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 1.8227, 31.0635, 1198.609)
Char.SetHeading($scplayer, 180.0)
Object.SetCoordinates(164@, 1.7, 26.8, 1198.75)
44@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.StandStill(-1, 1000)
Task.GoStraightToCoord(-1, 1.7221, 26.7679, 1198.602, MoveState.Walk, -1)
Sequence.Close(44@)
Char.PerformSequence($scplayer, 44@)
Sequence.Clear(44@)
Camera.DoFade(500, Fade.In)
TIMERA = 0

:CASINO9_10480
if 
  3000 > TIMERA
goto_if_false @CASINO9_10510
wait 0
goto @CASINO9_10480

:CASINO9_10510
40@ = Char.Create(PedType.Mission1, 61, 1.881, 34.9202, 1198.602)
Char.SetHeading(40@, 180.0)
Char.GiveWeapon(40@, WeaponType.Pistol, 3000)
Char.SetCurrentWeapon(40@, WeaponType.Pistol)
Char.SetDropsWeaponsWhenDead(40@, False)
Char.SetShootRate(40@, 70)
Char.SetAccuracy(40@, 65)
Char.SetDecisionMaker(40@, 49@)
Char.SetNeverTargeted(40@, True)
Task.StayInSamePlace(40@, True)
Task.GoToCoordAnyMeans(40@, 1.7462, 32.3896, 1198.602, 4, -1)
TIMERA = 0

:CASINO9_10635
if 
  3000 > TIMERA
goto_if_false @CASINO9_10665
wait 0
goto @CASINO9_10635

:CASINO9_10665
Camera.DoFade(500, Fade.Out)

:CASINO9_10672
if 
  Camera.GetFadingStatus
goto_if_false @CASINO9_10696
wait 0
goto @CASINO9_10672

:CASINO9_10696
Camera.Restore
Task.ToggleDuck($scplayer, False)
Char.ClearTasksImmediately($scplayer)
Char.AttachToObject($scplayer, 164@, 0.0, 0.0, 0.5, 0, 85.0, WeaponType.Pistol)
Player.SetHeadingForAttached($player1, 270.0, 270.0)
Char.FreezePosition($scplayer, True)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.DoFade(0, Fade.In)
232@ = 0
set_var_int_to_constant $load_sample = 27600
set_var_text_label s$load_text = 'CAS9_DA'
start_new_script @A_ALAP 2 100 40@ 
if 
  not Char.IsDead(40@)
goto_if_false @CASINO9_10849
Task.KillCharOnFoot(40@, $scplayer)

:CASINO9_10849
wait 0
if 
  Char.IsDead(40@)
goto_if_false @CASINO9_10876
goto @CASINO9_10883

:CASINO9_10876
goto @CASINO9_10849

:CASINO9_10883
Streaming.RequestModel(519)

:CASINO9_10888
if 
  not Streaming.HasModelLoaded(519)
goto_if_false @CASINO9_10915
wait 0
goto @CASINO9_10888

:CASINO9_10915
TIMERA = 0

:CASINO9_10922
if 
  1000 > TIMERA
goto_if_false @CASINO9_10952
wait 0
goto @CASINO9_10922

:CASINO9_10952
Camera.DoFade(500, Fade.Out)

:CASINO9_10959
if 
  Camera.GetFadingStatus
goto_if_false @CASINO9_10983
wait 0
goto @CASINO9_10959

:CASINO9_10983
Char.FreezePosition($scplayer, False)
Char.DetachFromCar($scplayer)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Hud.DisplayRadar(True)
Camera.SetFixedPosition(3.0968, 36.596, 1200.369, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2.4708, 35.9141, 1199.991, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 1.7462, 32.3896, 1198.602)
Char.SetHeading($scplayer, 0.0)
44@ = Sequence.Open()
Task.StandStill(-1, 550)
Task.GoToCoordAnyMeans(-1, 1.7037, 34.9246, 1198.602, 4, -1)
Sequence.Close(44@)
Char.PerformSequence($scplayer, 44@)
Sequence.Clear(44@)
Camera.DoFade(500, Fade.In)
TIMERA = 0

:CASINO9_11158
if 
  2500 > TIMERA
goto_if_false @CASINO9_11188
wait 0
goto @CASINO9_11158

:CASINO9_11188
Camera.DoFade(500, Fade.Out)

:CASINO9_11195
if 
  Camera.GetFadingStatus
goto_if_false @CASINO9_11219
wait 0
goto @CASINO9_11195

:CASINO9_11219
Char.MarkAsNoLongerNeeded(108@)
Char.MarkAsNoLongerNeeded(109@)
Char.MarkAsNoLongerNeeded(110@)
Char.MarkAsNoLongerNeeded(111@)
Char.MarkAsNoLongerNeeded(40@)
Streaming.MarkModelAsNoLongerNeeded(124)
Streaming.MarkModelAsNoLongerNeeded(125)
Streaming.MarkModelAsNoLongerNeeded(126)
Streaming.MarkModelAsNoLongerNeeded(127)
Streaming.MarkModelAsNoLongerNeeded(61)
Streaming.MarkModelAsNoLongerNeeded(#JET_INTERIOR)
Object.Delete(164@)
Object.Delete(168@)
Object.Delete(169@)
Object.Delete(170@)
Streaming.MarkModelAsNoLongerNeeded(#JET_BAGGAGE_DOOR)
Streaming.MarkModelAsNoLongerNeeded(#CARDBOARDBOX2)
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($scplayer, 0)
Streaming.LoadScene(1405.0, 6000.0, 210.0)
Streaming.RequestCollision(1405.0, 6000.0)
38@ = Car.Create(519, 1405.0, 6000.0, 210.0)
Car.SetHeading(38@, 210.0)
Car.SetAreaVisible(38@, 0)
Char.WarpIntoCar($scplayer, 38@)
Car.SetForwardSpeed(38@, 45.0)
Plane.SetUndercarriageUp(38@, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Hud.DisplayZoneNames(True)
Camera.DoFade(100, Fade.In)
43@ = Blip.AddForCoord(1476.219, 1463.623, 9.8203)
233@ = 1
234@ = 1
Game.SetMaxWantedLevel(6)
Text.PrintNow('CAS9_41', 8000, 1)

:CASINO9_11483
wait 0
if 
  not Car.IsDead(38@)
goto_if_false @CASINO9_11759
if 
  Char.IsInCar($scplayer, 38@)
goto_if_false @CASINO9_11597
if 
  233@ == 0
goto_if_false @CASINO9_11590
Text.ClearPrints
Text.PrintNow('CAS9_41', 8000, 1)
Blip.Remove(43@)
43@ = Blip.AddForCoord(1476.219, 1463.623, 9.8203)
233@ = 1

:CASINO9_11590
goto @CASINO9_11660

:CASINO9_11597
if 
  233@ == 1
goto_if_false @CASINO9_11660
Text.ClearPrints
Text.PrintNow('IN_VEH', 8000, 1)
Blip.Remove(43@)
43@ = Blip.AddForCar(38@)
Blip.SetAsFriendly(43@, True)
233@ = 0

:CASINO9_11660
if and
  Car.IsStoppedInArea3D(38@, 1636.319, 1144.478, 7.0, 1261.411, 1780.672, 14.0, False)
  Char.IsInArea3D($scplayer, 1636.319, 1144.478, 7.0, 1261.411, 1780.672, 14.0, False)
goto_if_false @CASINO9_11752
goto @CASINO9_12029

:CASINO9_11752
goto @CASINO9_11787

:CASINO9_11759
50@ = 1
set_lvar_text_label 51@s = 'CAS9_F1'
goto @CASINO9_11794

:CASINO9_11787
goto @CASINO9_11483

:CASINO9_11794
Char.DetachFromCar($scplayer)
Char.FreezePosition($scplayer, False)
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if 
  50@ == 1
goto_if_false @CASINO9_11850
Text.PrintNow(51@s, 6000, 1)

:CASINO9_11850
236@ = 0
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASINO9_11911
235@ = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.IsInWater(235@)
goto_if_false @CASINO9_11904
236@ = 1

:CASINO9_11904
goto @CASINO9_11987

:CASINO9_11911
if 
  not Player.IsUsingJetpack($player1)
goto_if_false @CASINO9_11987
if 
  Char.IsInWater($scplayer)
goto_if_false @CASINO9_11957
236@ = 1
goto @CASINO9_11987

:CASINO9_11957
if and
  Char.IsInAir($scplayer)
  0 >= $player_fall_state
goto_if_false @CASINO9_11987
236@ = 1

:CASINO9_11987
if 
  236@ == 1
goto_if_false @CASINO9_12027
Skip.SetUpAfterMission(2097.009, 1728.285, 9.8203, 169.1748)

:CASINO9_12027
return 

:CASINO9_12029
$flag_casino_mission_counter += 1
Stat.RegisterMissionPassed('CASINO9')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSS', 15000, 5000, TextStyle.Middle)
Player.AddScore($player1, 15000)
Stat.AwardPlayerMissionRespect(30)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Blip.Remove($casino_contact_blip)
return 

:CASINO9_12098
if 
  72@ == 1
goto_if_false @CASINO9_12123
Char.DetachFromCar($scplayer)
Camera.RestoreJumpcut

:CASINO9_12123
Hud.DisplayZoneNames(True)
if 
  Player.IsPlaying($player1)
goto_if_false @CASINO9_12154
Player.SetGroupRecruitment($player1, True)
Game.SetScriptLimitToGangSize(99)

:CASINO9_12154
start_new_script @A_TERM 
Streaming.RemoveAnimation("MISC")
Streaming.MarkModelAsNoLongerNeeded(124)
Streaming.MarkModelAsNoLongerNeeded(125)
Streaming.MarkModelAsNoLongerNeeded(126)
Streaming.MarkModelAsNoLongerNeeded(127)
Streaming.MarkModelAsNoLongerNeeded(61)
Streaming.MarkModelAsNoLongerNeeded(521)
Streaming.MarkModelAsNoLongerNeeded(593)
Streaming.MarkModelAsNoLongerNeeded(519)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(#SMLPLANE_DOOR)
Streaming.MarkModelAsNoLongerNeeded(#JET_DOOR)
Streaming.MarkModelAsNoLongerNeeded(#JET_BAGGAGE_DOOR)
Streaming.MarkModelAsNoLongerNeeded(#CARDBOARDBOX2)
Streaming.MarkModelAsNoLongerNeeded(#JET_INTERIOR)
Char.MarkAsNoLongerNeeded(108@)
Char.MarkAsNoLongerNeeded(109@)
Char.MarkAsNoLongerNeeded(110@)
Char.MarkAsNoLongerNeeded(111@)
Char.MarkAsNoLongerNeeded(40@)
Car.MarkAsNoLongerNeeded(34@)
Car.MarkAsNoLongerNeeded(38@)
Object.MarkAsNoLongerNeeded(168@)
Object.MarkAsNoLongerNeeded(169@)
Object.MarkAsNoLongerNeeded(170@)
Object.MarkAsNoLongerNeeded(164@)
Game.SetMaxWantedLevel(6)
Game.SwitchAmbientPlanes(True)
Blip.Remove(35@)
Blip.Remove(43@)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 92---------------
// Originally: Saint Mark's Bistro

:CASIN10
script_name 'CASIN10'
gosub @CASIN10_294
if 
  has_deatharrest_been_executed 
goto_if_false @CASIN10_38
gosub @CASIN10_15190

:CASIN10_38
gosub @CASIN10_15491
terminate_this_script 

:CASIN10_47
switch_start 134@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASIN10_292 {caseNum1} 0 {caseLabel1} @CASIN10_110 {caseNum2} 1 {caseLabel2} @CASIN10_212 {caseNum3} -1 {caseLabel3} @CASIN10_292 {caseNum4} -1 {caseLabel4} @CASIN10_292 {caseNum5} -1 {caseLabel5} @CASIN10_292 {caseNum6} -1 {caseLabel6} @CASIN10_292 {caseNum7} -1 {caseLabel7} @CASIN10_292

:CASIN10_110
set_var_text_label s$rosenbergs_health_C6[0] = 'CAS11BA'
set_var_text_label s$rosenbergs_health_C6[1] = 'CAS11BB'
set_var_text_label s$rosenbergs_health_C6[2] = 'CAS11BC'
set_var_text_label s$rosenbergs_health_C6[3] = 'CAS11CA'
set_lvar_int_to_constant 135@ = 5416
set_lvar_int_to_constant 136@ = 5429
set_lvar_int_to_constant 137@ = 5430
set_lvar_int_to_constant 138@ = 5431
$cell_index_end = 3
goto @CASIN10_292

:CASIN10_212
set_var_text_label s$rosenbergs_health_C6[0] = 'CAS11GA'
set_var_text_label s$rosenbergs_health_C6[1] = 'CAS11GB'
set_var_text_label s$rosenbergs_health_C6[2] = 'CAS11GC'
set_lvar_int_to_constant 135@ = 5425
set_lvar_int_to_constant 136@ = 5426
set_lvar_int_to_constant 137@ = 5433
$cell_index_end = 2
goto @CASIN10_292

:CASIN10_292
return 

:CASIN10_294
Stat.RegisterMissionGiven
$onmission = 1
36@ = 0
43@ = 0
42@ = 0
44@ = 0
45@ = 0
46@ = 1000
48@ = 0
49@ = 0
51@ = 0
52@ = 0
54@ = 0
55@ = 0
57@ = 0
58@ = 0
60@ = 0
61@ = 0
63@ = 0
64@ = 0
66@ = 0
68@ = 0
70@ = 0
72@ = 0
99@ = 0.0
83@ = 0
83@ = 0
88@ = 0
89@ = 0
91@ = 0
92@ = 0
94@ = 0
95@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
127@ = 0
128@ = 0
129@ = 0
76@ = 0
74@ = 0
80@ = 0
78@ = 0
82@ = 0
85@ = 0
152@ = 0
153@ = 0
155@ = 0
157@ = 0
154@ = 0
156@ = 0
158@ = 0
159@ = 0
Text.LoadMissionText('CASIN10')
wait 0
World.ClearArea(2163.589, 1682.247, 9.86, 1.0, True)
Char.SetCoordinates($scplayer, 2163.589, 1682.247, 9.86)
Char.SetHeading($scplayer, 80.0)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
$iTerminateAllAmbience = 1
Streaming.SetAreaVisible(2)
Cutscene.Load('CAS_11A')

:CASIN10_783
if 
  not Cutscene.HasLoaded
goto_if_false @CASIN10_807
wait 0
goto @CASIN10_783

:CASIN10_807
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:CASIN10_816
if 
  not Cutscene.HasFinished
goto_if_false @CASIN10_840
wait 0
goto @CASIN10_816

:CASIN10_840
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:CASIN10_853
if 
  Camera.GetFadingStatus
goto_if_false @CASIN10_877
wait 0
goto @CASIN10_853

:CASIN10_877
Cutscene.Clear
Streaming.SetAreaVisible(0)
$iTerminateAllAmbience = 0
Game.SetWantedMultiplier(0.5)
Player.SetControl($player1, False)
Game.SetPoliceIgnorePlayer($player1, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Char.SetHasUsedEntryExit($scplayer, 2233.5, 1712.8, 10.0)
wait 1000
Streaming.RequestModel(519)
Streaming.RequestModel(405)
Streaming.LoadSpecialCharacter(1, 'MACCER')
Streaming.LoadSpecialCharacter(2, 'PAUL')
Streaming.LoadSpecialCharacter(3, 'ROSE')
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 5414)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 5415)
goto @CASIN10_1146
96@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Sequence.Close(96@)
97@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Sequence.Close(97@)
98@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Sequence.Close(98@)
38@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Sequence.Close(38@)
39@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Sequence.Close(39@)
123@ = Car.Create(405, 0.0, 0.0, 0.0)
Car.Delete(123@)
113@ = Blip.AddForCoord(0.0, 0.0, 0.0)
Blip.Remove(113@)

:CASIN10_1146
105@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
106@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
DecisionMakerChar.AddEventResponse(106@, 49, 311, 0.0, 100.0, 100.0, 100.0, False, True)
110@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Streaming.LoadAllModelsNow

:CASIN10_1203
if or
  not Streaming.HasModelLoaded(519)
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasModelLoaded(405)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @CASIN10_1251
wait 0
goto @CASIN10_1203

:CASIN10_1251
if 
  not Streaming.HasSpecialCharacterLoaded(3)
goto_if_false @CASIN10_1277
wait 0
goto @CASIN10_1251

:CASIN10_1277
World.ClearArea(2163.589, 1682.247, 9.86, 1.0, True)
Char.SetCoordinates($scplayer, 2163.589, 1682.247, 9.86)
Char.SetHeading($scplayer, 80.0)
Char.ShutUpForScriptedSpeech($scplayer, True)
Streaming.LoadScene(2163.589, 1682.247, 9.86)
Path.SwitchRoadsOff(2095.35, 1734.179, 8.0, 2337.495, 1524.991, 15.0)
Path.SwitchPedRoadsOff(2095.35, 1734.179, 8.0, 2337.495, 1524.991, 15.0)
107@ = Char.Create(PedType.Mission1, 290, 2162.213, 1682.752, 9.86)
Char.SetDecisionMaker(107@, 110@)
Char.SetHeading(107@, 280.0)
Char.SetOnlyDamagedByPlayer(107@, True)
Task.TurnCharToFaceChar(107@, $scplayer)
Char.SetProofs(107@, True, True, True, True, True)
Char.ShutUpForScriptedSpeech(107@, True)
World.ClearArea(2160.582, 1682.103, 9.735, 4.0, True)
111@ = Car.Create(405, 2160.582, 1682.103, 9.735)
Car.SetHeading(111@, 0.0)
Car.SetOnlyDamagedByPlayer(111@, True)
Car.SetProofs(111@, True, True, True, True, True)
109@ = Char.CreateAsPassenger(111@, PedType.Mission1, 292, 1)
Char.SetDecisionMaker(109@, 110@)
Char.SetOnlyDamagedByPlayer(109@, True)
Char.SetProofs(109@, True, True, True, True, True)
Char.ShutUpForScriptedSpeech(109@, True)
108@ = Char.CreateInsideCar(111@, PedType.Mission1, 291)
Char.SetDecisionMaker(108@, 110@)
Char.SetOnlyDamagedByPlayer(108@, True)
Char.SetProofs(108@, True, True, True, True, True)
Char.ShutUpForScriptedSpeech(108@, True)
Car.SetIdle(111@)
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2165.228, 1680.256, 9.9643, 2164.975, 1684.109, 11.4927, 14500, True)
Camera.SetVectorTrack(2162.274, 1682.247, 11.86, 2160.582, 1682.103, 11.0, 14500, True)
Camera.SetFadingColor(0, 0, 0)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Camera.DoFade(2000, Fade.In)
World.ClearArea(2162.274, 1682.247, 9.86, 120.0, True)

:CASIN10_1814
if 
  Camera.GetFadingStatus
goto_if_false @CASIN10_1838
wait 0
goto @CASIN10_1814

:CASIN10_1838
skip_cutscene_start_internal @CASIN10_3929
if 
  Player.IsPlaying($player1)
goto_if_false @CASIN10_1934
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('CAS11AA', 10000, 1)
Char.StartFacialTalk($scplayer, 999999)
Task.PlayAnimNonInterruptable($scplayer, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
goto @CASIN10_1953

:CASIN10_1934
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('CAS11AA')

:CASIN10_1953
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CASIN10_2182
wait 0
if 
  Char.IsDead(107@)
goto_if_false @CASIN10_2018
Text.PrintNow('CM10_11', 8000, 1)
goto @CASIN10_15190
goto @CASIN10_2023

:CASIN10_2018
Char.ClearTasks(107@)

:CASIN10_2023
if 
  Char.IsDead(108@)
goto_if_false @CASIN10_2062
Text.PrintNow('CM10_12', 8000, 1)
goto @CASIN10_15190

:CASIN10_2062
if 
  Char.IsDead(109@)
goto_if_false @CASIN10_2101
Text.PrintNow('CM10_13', 8000, 1)
goto @CASIN10_15190

:CASIN10_2101
if 
  Car.IsDead(111@)
goto_if_false @CASIN10_2140
Text.PrintNow('CM10_14', 8000, 1)
goto @CASIN10_15190

:CASIN10_2140
if 
  not Player.IsPlaying($player1)
goto_if_false @CASIN10_2175
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('CAS11AA')

:CASIN10_2175
goto @CASIN10_1953

:CASIN10_2182
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint('CAS11AA')
Char.StopFacialTalk($scplayer)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 5427)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('CAS11AB', 10000, 1)
Char.StartFacialTalk($scplayer, 999999)

:CASIN10_2239
if or
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CASIN10_2472
wait 0
if 
  Char.IsDead(107@)
goto_if_false @CASIN10_2308
Text.PrintNow('CM10_11', 8000, 1)
goto @CASIN10_15190
goto @CASIN10_2313

:CASIN10_2308
Char.ClearTasks(107@)

:CASIN10_2313
if 
  Char.IsDead(108@)
goto_if_false @CASIN10_2352
Text.PrintNow('CM10_12', 8000, 1)
goto @CASIN10_15190

:CASIN10_2352
if 
  Char.IsDead(109@)
goto_if_false @CASIN10_2391
Text.PrintNow('CM10_13', 8000, 1)
goto @CASIN10_15190

:CASIN10_2391
if 
  Car.IsDead(111@)
goto_if_false @CASIN10_2430
Text.PrintNow('CM10_14', 8000, 1)
goto @CASIN10_15190

:CASIN10_2430
if 
  not Player.IsPlaying($player1)
goto_if_false @CASIN10_2465
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('CAS11AB')

:CASIN10_2465
goto @CASIN10_2239

:CASIN10_2472
Char.ClearTasks($scplayer)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('CAS11AB')
Char.StopFacialTalk($scplayer)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 5400)
if 
  not Char.IsDead(107@)
goto_if_false @CASIN10_2593
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('CAS11AC', 10000, 1)
Char.StartFacialTalk(107@, 999999)
Task.PlayAnimNonInterruptable(107@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
goto @CASIN10_2616

:CASIN10_2593
Text.PrintNow('CM10_11', 8000, 1)
goto @CASIN10_15190

:CASIN10_2616
if or
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @CASIN10_2821
wait 0
if 
  Char.IsDead(107@)
goto_if_false @CASIN10_2697
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('CAS11AC')
Text.PrintNow('CM10_11', 8000, 1)
goto @CASIN10_15190

:CASIN10_2697
if 
  Char.IsDead(108@)
goto_if_false @CASIN10_2736
Text.PrintNow('CM10_12', 8000, 1)
goto @CASIN10_15190

:CASIN10_2736
if 
  Char.IsDead(109@)
goto_if_false @CASIN10_2775
Text.PrintNow('CM10_13', 8000, 1)
goto @CASIN10_15190

:CASIN10_2775
if 
  Car.IsDead(111@)
goto_if_false @CASIN10_2814
Text.PrintNow('CM10_14', 8000, 1)
goto @CASIN10_15190

:CASIN10_2814
goto @CASIN10_2616

:CASIN10_2821
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint('CAS11AC')
if 
  not Char.IsDead(107@)
goto_if_false @CASIN10_2869
Char.StopFacialTalk(107@)
Char.ClearTasks(107@)
goto @CASIN10_2892

:CASIN10_2869
Text.PrintNow('CM10_11', 8000, 1)
goto @CASIN10_15190

:CASIN10_2892
if 
  not Char.IsDead(109@)
goto_if_false @CASIN10_2955
Task.LookAtChar(109@, $scplayer, -2)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('CAS11AD', 10000, 1)
Char.StartFacialTalk(109@, 999999)
goto @CASIN10_2997

:CASIN10_2955
Text.PrintNow('CM10_13', 8000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('CAS11AD')
goto @CASIN10_15190

:CASIN10_2997
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @CASIN10_3198
wait 0
if 
  Char.IsDead(107@)
goto_if_false @CASIN10_3055
Text.PrintNow('CM10_11', 8000, 1)
goto @CASIN10_15190

:CASIN10_3055
if 
  Char.IsDead(108@)
goto_if_false @CASIN10_3094
Text.PrintNow('CM10_12', 8000, 1)
goto @CASIN10_15190

:CASIN10_3094
if 
  Char.IsDead(109@)
goto_if_false @CASIN10_3152
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('CAS11AC')
Text.PrintNow('CM10_13', 8000, 1)
goto @CASIN10_15190

:CASIN10_3152
if 
  Car.IsDead(111@)
goto_if_false @CASIN10_3191
Text.PrintNow('CM10_14', 8000, 1)
goto @CASIN10_15190

:CASIN10_3191
goto @CASIN10_2997

:CASIN10_3198
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('CAS11AD')
if 
  not Char.IsDead(109@)
goto_if_false @CASIN10_3246
Char.StopFacialTalk(109@)
Char.ClearLookAt(109@)
goto @CASIN10_3269

:CASIN10_3246
Text.PrintNow('CM10_13', 8000, 1)
goto @CASIN10_15190

:CASIN10_3269
if 
  not Car.IsDead(111@)
goto_if_false @CASIN10_3468
if 
  not Char.IsDead(107@)
goto_if_false @CASIN10_3321
Task.EnterCarAsPassenger(107@, 111@, 10000, 0)
goto @CASIN10_3344

:CASIN10_3321
Text.PrintNow('CM10_11', 8000, 1)
goto @CASIN10_15190

:CASIN10_3344
if 
  Char.IsDead(107@)
goto_if_false @CASIN10_3383
Text.PrintNow('CM10_11', 8000, 1)
goto @CASIN10_15190

:CASIN10_3383
if 
  Char.IsDead(109@)
goto_if_false @CASIN10_3422
Text.PrintNow('CM10_13', 8000, 1)
goto @CASIN10_15190

:CASIN10_3422
if 
  Char.IsDead(108@)
goto_if_false @CASIN10_3461
Text.PrintNow('CM10_12', 8000, 1)
goto @CASIN10_15190

:CASIN10_3461
goto @CASIN10_3491

:CASIN10_3468
Text.PrintNow('CM10_14', 8000, 1)
goto @CASIN10_15190

:CASIN10_3491
if or
  not Char.IsInCar(107@, 111@)
  not Char.IsInCar(108@, 111@)
  not Char.IsInCar(109@, 111@)
goto_if_false @CASIN10_3693
wait 0
if 
  Char.IsDead(107@)
goto_if_false @CASIN10_3569
Text.PrintNow('CM10_11', 8000, 1)
goto @CASIN10_15190

:CASIN10_3569
if 
  Char.IsDead(108@)
goto_if_false @CASIN10_3608
Text.PrintNow('CM10_12', 8000, 1)
goto @CASIN10_15190

:CASIN10_3608
if 
  Char.IsDead(109@)
goto_if_false @CASIN10_3647
Text.PrintNow('CM10_13', 8000, 1)
goto @CASIN10_15190

:CASIN10_3647
if 
  Car.IsDead(111@)
goto_if_false @CASIN10_3686
Text.PrintNow('CM10_14', 8000, 1)
goto @CASIN10_15190

:CASIN10_3686
goto @CASIN10_3491

:CASIN10_3693
if 
  not Car.IsDead(111@)
goto_if_false @CASIN10_3753
Car.GotoCoordinates(111@, 2148.048, 1703.466, 9.727)
Car.SetDrivingStyle(111@, DrivingMode.AvoidCars)
Car.SetCruiseSpeed(111@, 30.0)
goto @CASIN10_3776

:CASIN10_3753
Text.PrintNow('CM10_14', 8000, 1)
goto @CASIN10_15190

:CASIN10_3776
wait 2000
Char.Delete(107@)
Char.Delete(108@)
Char.Delete(109@)
Car.Delete(111@)
Char.ShutUpForScriptedSpeech($scplayer, False)
Streaming.MarkModelAsNoLongerNeeded(405)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.ResetNewScriptables
Camera.RestoreJumpcut
Game.SetEveryoneIgnorePlayer($player1, False)
Game.SetPoliceIgnorePlayer($player1, False)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Path.SwitchRoadsBackToOriginal(2095.35, 1734.179, 8.0, 2337.495, 1524.991, 15.0)
Path.SwitchPedRoadsBackToOriginal(2095.35, 1734.179, 8.0, 2337.495, 1524.991, 15.0)
114@ = 1

:CASIN10_3929
skip_cutscene_end 
if 
  114@ == 0
goto_if_false @CASIN10_4237
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:CASIN10_3974
if 
  Camera.GetFadingStatus
goto_if_false @CASIN10_3998
wait 0
goto @CASIN10_3974

:CASIN10_3998
Player.MakeGangReappear
World.ClearArea(2163.589, 1682.247, 9.86, 1.0, True)
Char.SetCoordinates($scplayer, 2163.589, 1682.247, 9.86)
Char.SetHeading($scplayer, 80.0)
Char.Delete(107@)
Char.Delete(108@)
Char.Delete(109@)
Car.Delete(111@)
Char.ShutUpForScriptedSpeech($scplayer, False)
Streaming.MarkModelAsNoLongerNeeded(405)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Hud.SwitchWidescreen(False)
Camera.ResetNewScriptables
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.SetFadingColor(0, 0, 0)
Char.ClearTasksImmediately($scplayer)
Path.SwitchRoadsBackToOriginal(2095.35, 1734.179, 8.0, 2337.495, 1524.991, 15.0)
Path.SwitchPedRoadsBackToOriginal(2095.35, 1734.179, 8.0, 2337.495, 1524.991, 15.0)
Camera.DoFade(1000, Fade.In)

:CASIN10_4192
if 
  Camera.GetFadingStatus
goto_if_false @CASIN10_4216
wait 0
goto @CASIN10_4192

:CASIN10_4216
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Game.SetPoliceIgnorePlayer($player1, False)

:CASIN10_4237
Text.PrintNow('CM10_1', 10000, 1)
35@ = Blip.AddForCoord(1707.828, 1606.639, 9.055)
World.ClearArea(1707.828, 1606.639, 9.055, 2.0, False)

:CASIN10_4297
if 
  not Char.LocateAnyMeans3D($scplayer, 1707.828, 1606.639, 9.055, 4.0, 4.0, 3.0, False)
goto_if_false @CASIN10_4378
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CASIN10_4371
goto @CASIN10_15339

:CASIN10_4371
goto @CASIN10_4297

:CASIN10_4378
Blip.Remove(35@)
Text.PrintNow('CM10_10', 10000, 1)
World.ClearArea(1479.714, 1758.306, 12.098, 2.0, True)
112@ = Car.Create(519, 1479.714, 1758.306, 12.098)
Car.SetOnlyDamagedByPlayer(112@, True)
Car.SetHeading(112@, 180.0)
34@ = Blip.AddForCar(112@)
Blip.SetAsFriendly(34@, True)

:CASIN10_4478
if 
  not Char.IsInCar($scplayer, 112@)
goto_if_false @CASIN10_4552
wait 0
if 
  Car.IsDead(112@)
goto_if_false @CASIN10_4545
Text.PrintNow('CM10_17', 8000, 1)
Blip.Remove(34@)
goto @CASIN10_15190

:CASIN10_4545
goto @CASIN10_4478

:CASIN10_4552
if 
  not Car.IsDead(112@)
goto_if_false @CASIN10_4582
Car.SetOnlyDamagedByPlayer(112@, False)
goto @CASIN10_4610

:CASIN10_4582
Text.PrintNow('CM10_17', 8000, 1)
Blip.Remove(34@)
goto @CASIN10_15190

:CASIN10_4610
Blip.Remove(34@)
Text.PrintNow('CM10_18', 8000, 1)
126@ = Blip.AddForCoord(7500.0, 2478.34, 200.0)
TIMERA = 0

:CASIN10_4658
if or
  not Char.LocateInCar3D($scplayer, 7500.0, 2478.34, 200.0, 100.0, 100.0, 200.0, False)
  not Char.IsSittingInCar($scplayer, 112@)
goto_if_false @CASIN10_4995
wait 0
if 
  Car.IsDead(112@)
goto_if_false @CASIN10_4764
Text.PrintNow('CM10_17', 8000, 1)
goto @CASIN10_15190
goto @CASIN10_4988

:CASIN10_4764
if 
  Char.IsInCar($scplayer, 112@)
goto_if_false @CASIN10_4920
if 
  159@ == 0
goto_if_false @CASIN10_4840
if 
  TIMERA > 40000
goto_if_false @CASIN10_4840
Text.PrintHelp('CM10_99')
159@ = 1

:CASIN10_4840
if 
  129@ == 1
goto_if_false @CASIN10_4913
Text.PrintNow('CM10_18', 8000, 1)
126@ = Blip.AddForCoord(7500.0, 2478.34, 200.0)
Blip.Remove(34@)
$blob_flag = 1
129@ = 0

:CASIN10_4913
goto @CASIN10_4988

:CASIN10_4920
if 
  129@ == 0
goto_if_false @CASIN10_4988
Blip.Remove(126@)
34@ = Blip.AddForCar(112@)
Blip.SetAsFriendly(34@, True)
Text.PrintNow('IN_VEH', 5000, 1)
$blob_flag = 0
129@ = 1

:CASIN10_4988
goto @CASIN10_4658

:CASIN10_4995
Blip.Remove(126@)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.Out)

:CASIN10_5015
if 
  Camera.GetFadingStatus
goto_if_false @CASIN10_5039
wait 0
goto @CASIN10_5015

:CASIN10_5039
Text.SetAreaName('MARKS')
Player.MakeGangDisappear
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Game.SetPoliceIgnorePlayer($player1, True)
Player.ClearWantedLevel($player1)
Game.SetMaxWantedLevel(0)
Restart.SetRespawnPointForDurationOfMission(1578.446, 1770.682, 9.8358)
Weather.ForceNow(WeatherType.SunnySf)
Streaming.RequestModel(124)
Streaming.RequestModel(346)
Streaming.RequestModel(420)
Streaming.RequestModel(405)
Streaming.RequestCarRecording(602)
Streaming.RequestCarRecording(603)
Streaming.RequestModel(17)
Streaming.RequestModel(150)
Streaming.LoadAllModelsNow

:CASIN10_5143
if or
  not Streaming.HasModelLoaded(124)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(420)
  not Streaming.HasModelLoaded(405)
  not Streaming.HasCarRecordingBeenLoaded(602)
  not Streaming.HasCarRecordingBeenLoaded(603)
goto_if_false @CASIN10_5194
wait 0
goto @CASIN10_5143

:CASIN10_5194
if or
  not Streaming.HasModelLoaded(17)
  not Streaming.HasModelLoaded(150)
goto_if_false @CASIN10_5225
wait 0
goto @CASIN10_5194

:CASIN10_5225
Streaming.SetAreaVisible(1)
Char.SetAreaVisible($scplayer, 1)
Streaming.RequestCollision(-811.999, 457.027)
Streaming.LoadSceneInDirection(-811.999, 457.027, 1356.622, 82.0)
Streaming.LoadAllModelsNow
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASIN10_5335
Char.SetProofs($scplayer, True, True, True, True, True)
Char.WarpFromCarToCoord($scplayer, -813.833, 459.11, 998.989)
Char.ClearTasksImmediately($scplayer)
goto @CASIN10_5375

:CASIN10_5335
Char.SetProofs($scplayer, True, True, True, True, True)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -813.833, 459.11, 998.989)

:CASIN10_5375
Camera.SetBehindPlayer
Game.SetPoliceIgnorePlayer($player1, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Car.Delete(112@)
Streaming.MarkModelAsNoLongerNeeded(519)
161@ = Car.Create(420, -811.999, 457.027, 1356.622)
Car.SetHeading(161@, 270.0)
Car.SetAreaVisible(161@, 1)
Car.SetOnlyDamagedByPlayer(161@, True)
160@ = Char.CreateInsideCar(161@, PedType.CivMale, 124)
Char.SetAreaVisible(160@, 1)
Car.SetIdle(161@)
Char.WarpIntoCarAsPassenger($scplayer, 161@, 1)
163@ = Car.Create(405, -729.2895, 514.4813, 1370.969)
Car.SetHeading(163@, 161.5196)
Car.SetAreaVisible(163@, 1)
Car.SetOnlyDamagedByPlayer(163@, True)
164@ = Char.CreateInsideCar(163@, PedType.CivMale, 124)
Char.SetAreaVisible(164@, 1)
Car.SetIdle(163@)

:CASIN10_5553
if 
  not Car.IsWaitingForWorldCollision(161@)
goto_if_false @CASIN10_5612
wait 0
if 
  Car.IsDead(161@)
goto_if_false @CASIN10_5589

:CASIN10_5589
if 
  Car.IsDead(163@)
goto_if_false @CASIN10_5605

:CASIN10_5605
goto @CASIN10_5553

:CASIN10_5612
165@ = Char.Create(PedType.CivMale, 17, -864.653, 451.569, 1348.584)
Task.WanderStandard(165@)
166@ = Char.Create(PedType.CivFemale, 150, -884.251, 466.693, 1346.577)
Task.WanderStandard(166@)
167@ = Char.Create(PedType.CivMale, 17, -857.588, 467.419, 1349.29)
Task.WanderStandard(167@)
168@ = Char.Create(PedType.CivFemale, 150, -814.46, 466.873, 1356.137)
Task.WanderStandard(168@)
169@ = Char.Create(PedType.CivMale, 17, -781.615, 468.628, 1363.266)
Task.WanderStandard(169@)
170@ = Char.Create(PedType.CivFemale, 150, -737.431, 503.6, 1370.968)
Task.WanderStandard(170@)
171@ = Char.Create(PedType.CivMale, 17, -738.769, 476.826, 1370.306)
Task.WanderStandard(171@)
172@ = Char.Create(PedType.CivFemale, 150, -771.993, 456.237, 1364.445)
Task.WanderStandard(172@)
173@ = Char.Create(PedType.CivMale, 17, -799.539, 453.03, 1359.074)
Task.WanderStandard(173@)
174@ = Char.Create(PedType.CivFemale, 150, -753.076, 484.357, 1369.885)
Task.WanderStandard(174@)
Camera.SetFixedPosition(-751.2452, 449.8578, 1370.5, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-752.1519, 450.2614, 1370.378, SwitchType.JumpCut)
if 
  not Car.IsDead(161@)
goto_if_false @CASIN10_5992
Car.StartPlayback(161@, 602)
Car.SetPlaybackSpeed(161@, 1.1)

:CASIN10_5992
if 
  not Car.IsDead(163@)
goto_if_false @CASIN10_6026
Car.StartPlayback(163@, 603)
Car.SetPlaybackSpeed(163@, 1.1)

:CASIN10_6026
wait 800
if 
  Car.IsDead(161@)
goto_if_false @CASIN10_6052
Car.StopPlayback(161@)

:CASIN10_6052
if 
  Car.IsDead(163@)
goto_if_false @CASIN10_6073
Car.StopPlayback(163@)

:CASIN10_6073
Camera.SetFadingColor(0, 0, 0)
Hud.SwitchWidescreen(True)
Camera.DoFade(2000, Fade.In)
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(-751.2452, 449.8578, 1370.5, -730.0718, 483.3791, 1373.472, 8600, True)
Camera.SetVectorTrack(-752.1519, 450.2614, 1370.378, -730.9146, 483.9166, 1373.496, 8600, True)

:CASIN10_6176
if 
  Camera.GetFadingStatus
goto_if_false @CASIN10_6200
wait 0
goto @CASIN10_6176

:CASIN10_6200
Game.SetIsInStadium(True)
Game.HideAllFrontendBlips(True)
if 
  Car.IsDead(161@)
goto_if_false @CASIN10_6229
Car.StopPlayback(161@)

:CASIN10_6229
if 
  Car.IsDead(163@)
goto_if_false @CASIN10_6250
Car.StopPlayback(163@)

:CASIN10_6250
skip_cutscene_start_internal @CASIN10_6465

:CASIN10_6257
if 
  Car.IsPlaybackGoingOn(161@)
goto_if_false @CASIN10_6326
wait 0
if 
  Car.IsDead(161@)
goto_if_false @CASIN10_6298
Car.StopPlayback(161@)

:CASIN10_6298
if 
  Car.IsDead(163@)
goto_if_false @CASIN10_6319
Car.StopPlayback(163@)

:CASIN10_6319
goto @CASIN10_6257

:CASIN10_6326
162@ = Sequence.Open()
if 
  not Car.IsDead(161@)
goto_if_false @CASIN10_6354
Task.LeaveCar(-1, 161@)

:CASIN10_6354
Task.GoStraightToCoord(-1, -760.2046, 492.1819, 1370.677, MoveState.Walk, 10000)
Sequence.Close(162@)
Char.PerformSequence($scplayer, 162@)
Sequence.Clear(162@)
TIMERA = 0

:CASIN10_6403
if 
  3000 > TIMERA
goto_if_false @CASIN10_6465
wait 0
if 
  Car.IsDead(161@)
goto_if_false @CASIN10_6442

:CASIN10_6442
if 
  Car.IsDead(163@)
goto_if_false @CASIN10_6458

:CASIN10_6458
goto @CASIN10_6403

:CASIN10_6465
skip_cutscene_end 
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:CASIN10_6482
if 
  Camera.GetFadingStatus
goto_if_false @CASIN10_6506
wait 0
goto @CASIN10_6482

:CASIN10_6506
Weather.SetToAppropriateTypeNow
Char.ClearTasksImmediately($scplayer)
Sequence.Clear(162@)
if 
  not Car.IsDead(161@)
goto_if_false @CASIN10_6669
Car.StopPlayback(161@)
if 
  Char.IsInCar($scplayer, 161@)
goto_if_false @CASIN10_6669
Char.WarpFromCarToCoord($scplayer, -760.2046, 492.1819, 1370.677)

:CASIN10_6578
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CASIN10_6669
wait 0
if 
  Car.IsDead(161@)
goto_if_false @CASIN10_6614

:CASIN10_6614
if 
  Car.IsDead(163@)
goto_if_false @CASIN10_6630

:CASIN10_6630
if 
  Char.IsDead(160@)
goto_if_false @CASIN10_6646

:CASIN10_6646
if 
  Char.IsDead(164@)
goto_if_false @CASIN10_6662

:CASIN10_6662
goto @CASIN10_6578

:CASIN10_6669
if 
  not Car.IsDead(163@)
goto_if_false @CASIN10_6690
Car.StopPlayback(163@)

:CASIN10_6690
if 
  not Char.HasGotWeapon($scplayer, WeaponType.Pistol)
goto_if_false @CASIN10_6731
Char.GiveWeapon($scplayer, WeaponType.Pistol, 60)
Char.SetCurrentWeapon($scplayer, WeaponType.Pistol)
goto @CASIN10_6738

:CASIN10_6731
Char.SetCurrentWeapon($scplayer, WeaponType.Pistol)

:CASIN10_6738
Streaming.RemoveCarRecording(602)
Streaming.RemoveCarRecording(603)
Camera.ResetNewScriptables
Car.Delete(161@)
Char.Delete(160@)
Car.Delete(163@)
Char.Delete(164@)
Char.Delete(165@)
Char.Delete(166@)
Char.Delete(167@)
Char.Delete(168@)
Char.Delete(169@)
Char.Delete(170@)
Char.Delete(171@)
Char.Delete(172@)
Char.Delete(173@)
Char.Delete(174@)
Streaming.MarkModelAsNoLongerNeeded(17)
Streaming.MarkModelAsNoLongerNeeded(150)
Streaming.MarkModelAsNoLongerNeeded(420)
Streaming.RequestModel(124)
Streaming.RequestModel(125)
Streaming.RequestModel(126)
Streaming.RequestModel(349)
Streaming.RequestModel(352)
Streaming.RequestModel(346)
Streaming.RequestAnimation("SWAT")
Streaming.RequestModel(405)
Streaming.LoadSpecialCharacter(1, 'FORELLI')
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 5428)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 5417)
Streaming.LoadAllModelsNow

:CASIN10_6903
if or
  not Streaming.HasModelLoaded(124)
  not Streaming.HasModelLoaded(125)
  not Streaming.HasAnimationLoaded("SWAT")
  not Streaming.HasModelLoaded(349)
  not Streaming.HasModelLoaded(352)
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @CASIN10_6955
wait 0
goto @CASIN10_6903

:CASIN10_6955
if or
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(126)
  not Streaming.HasModelLoaded(405)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @CASIN10_6999
wait 0
goto @CASIN10_6955

:CASIN10_6999
40@ = Char.Create(PedType.Mission1, 290, -783.62, 505.055, 1370.788)
Char.SetAllowedToDuck(40@, False)
Char.GiveWeapon(40@, WeaponType.MicroUzi, 30000)
Char.SetWeaponSkill(40@, 2)
Char.SetUsesUpperbodyDamageAnimsOnly(40@, True)
Char.SetHeading(40@, 348.44)
41@ = Blip.AddForChar(40@)
Char.SetDecisionMaker(40@, 110@)
Char.SetSuffersCriticalHits(40@, False)
Char.SetMaxHealth(40@, 1000)
Char.SetHealth(40@, 1000)
Char.SetAccuracy(40@, 80)
Char.SetShootRate(40@, 50)
47@ = Char.Create(PedType.Mission1, 124, -783.223, 497.549, 1370.78)
Char.SetAllowedToDuck(47@, False)
Char.GiveWeapon(47@, WeaponType.Shotgun, 30000)
Char.SetHeading(47@, 348.44)
Char.SetDecisionMaker(47@, 106@)
Char.SetAccuracy(47@, 65)
Char.SetShootRate(47@, 40)
50@ = Char.Create(PedType.Mission1, 125, -788.965, 497.522, 1370.78)
Char.SetAllowedToDuck(50@, False)
Char.GiveWeapon(50@, WeaponType.Shotgun, 30000)
Char.SetHeading(50@, 348.44)
Char.SetDecisionMaker(50@, 106@)
Char.SetAccuracy(50@, 65)
Char.SetShootRate(50@, 45)
53@ = Char.Create(PedType.Mission1, 126, -791.034, 500.973, 1370.78)
Char.SetAllowedToDuck(53@, False)
Char.GiveWeapon(53@, WeaponType.MicroUzi, 30000)
Char.SetHeading(53@, 5.1)
Char.SetDecisionMaker(53@, 105@)
Char.SetAccuracy(53@, 70)
Char.SetShootRate(53@, 50)
56@ = Char.Create(PedType.Mission1, 124, -780.395, 500.947, 1370.78)
Char.SetAllowedToDuck(56@, False)
Char.GiveWeapon(56@, WeaponType.MicroUzi, 30000)
Char.SetHeading(56@, 5.1)
Char.SetDecisionMaker(56@, 105@)
Char.SetAccuracy(56@, 40)
Char.SetShootRate(56@, 60)
59@ = Char.Create(PedType.Mission1, 125, -794.945, 507.819, 1370.788)
Char.SetAllowedToDuck(59@, False)
Char.GiveWeapon(59@, WeaponType.MicroUzi, 30000)
Char.SetHeading(59@, 174.837)
Char.SetDecisionMaker(59@, 105@)
Char.SetAccuracy(59@, 70)
Char.SetShootRate(59@, 45)
62@ = Char.Create(PedType.Mission1, 126, -793.0, 506.434, 1370.788)
Char.SetAllowedToDuck(62@, False)
Char.GiveWeapon(62@, WeaponType.MicroUzi, 30000)
Char.SetHeading(62@, 113.867)
Char.SetDecisionMaker(62@, 105@)
Char.SetAccuracy(62@, 65)
Char.SetShootRate(62@, 40)
65@ = Char.Create(PedType.Mission1, 125, -785.853, 508.372, 1370.774)
Char.SetAllowedToDuck(65@, False)
Char.GiveWeapon(65@, WeaponType.MicroUzi, 30000)
Char.SetHeading(65@, 212.0)
Char.SetDecisionMaker(65@, 105@)
Char.SetAccuracy(65@, 65)
Char.SetShootRate(65@, 40)
69@ = Char.Create(PedType.Mission1, 124, -792.191, 508.908, 1370.788)
Char.SetAllowedToDuck(69@, False)
Char.GiveWeapon(69@, WeaponType.MicroUzi, 30000)
Char.SetHeading(69@, 188.0)
Char.SetDecisionMaker(69@, 105@)
Char.SetAccuracy(69@, 70)
Char.SetShootRate(69@, 40)
73@ = Char.Create(PedType.Mission1, 126, -783.975, 498.564, 1375.195)
Char.SetAllowedToDuck(73@, False)
Char.GiveWeapon(73@, WeaponType.MicroUzi, 30000)
Char.SetHeading(73@, 172.352)
Char.SetDecisionMaker(73@, 105@)
Char.SetAccuracy(73@, 65)
Char.SetShootRate(73@, 40)
77@ = Char.Create(PedType.Mission1, 124, -792.542, 494.229, 1375.235)
Char.SetAllowedToDuck(77@, False)
Char.GiveWeapon(77@, WeaponType.MicroUzi, 30000)
Char.SetHeading(77@, 279.542)
Char.SetDecisionMaker(77@, 105@)
Char.SetAccuracy(77@, 70)
Char.SetShootRate(77@, 50)
81@ = Char.Create(PedType.Mission1, 125, -786.142, 491.815, 1375.235)
Char.SetAllowedToDuck(81@, False)
Char.GiveWeapon(81@, WeaponType.Shotgun, 30000)
Char.SetHeading(81@, 270.0)
Char.SetDecisionMaker(81@, 110@)
Char.SetAccuracy(81@, 75)
Char.SetShootRate(81@, 40)
84@ = Char.Create(PedType.Mission1, 124, -793.7, 494.999, 1375.243)
Char.SetAllowedToDuck(84@, False)
Char.GiveWeapon(84@, WeaponType.MicroUzi, 30000)
Char.SetHeading(84@, 270.0)
Char.SetDecisionMaker(84@, 110@)
Char.SetAccuracy(84@, 65)
Char.SetShootRate(84@, 40)
87@ = Char.Create(PedType.Mission1, 124, -781.141, 494.625, 1367.571)
Char.SetAllowedToDuck(87@, False)
Char.GiveWeapon(87@, WeaponType.MicroUzi, 30000)
Char.SetHeading(87@, 90.0)
Char.SetDecisionMaker(87@, 105@)
Char.SetAccuracy(87@, 65)
Char.SetShootRate(87@, 40)
90@ = Char.Create(PedType.Mission1, 126, -786.705, 501.671, 1366.414)
Char.SetAllowedToDuck(90@, False)
Char.GiveWeapon(90@, WeaponType.MicroUzi, 30000)
Char.SetHeading(90@, 270.0)
Char.SetDecisionMaker(90@, 105@)
Char.SetAccuracy(90@, 65)
Char.SetShootRate(90@, 40)
93@ = Char.Create(PedType.Mission1, 125, -790.646, 505.521, 1366.414)
Char.SetAllowedToDuck(93@, False)
Char.GiveWeapon(93@, WeaponType.MicroUzi, 30000)
Char.SetHeading(93@, 231.0)
Char.SetDecisionMaker(93@, 106@)
Char.SetAccuracy(93@, 65)
Char.SetShootRate(93@, 50)
goto @CASIN10_8307
120@ = Char.Create(PedType.Mission1, 126, -816.005, 493.329, 1358.293)
Char.Delete(120@)
121@ = Char.Create(PedType.Mission1, 124, -821.268, 508.167, 1358.273)
Char.Delete(121@)
122@ = Char.Create(PedType.Mission1, 125, -828.77, 510.594, 1357.307)
Char.Delete(122@)

:CASIN10_8307
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -783.104, 490.814, 1375.235)
Char.SetHeading($scplayer, 8.832)
Streaming.LoadSceneInDirection(-783.104, 490.814, 1375.235, 8.832)
Camera.SetFixedPosition(-787.9748, 493.9206, 1375.796, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-787.056, 494.3102, 1375.859, SwitchType.JumpCut)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:CASIN10_8430
if 
  Camera.GetFadingStatus
goto_if_false @CASIN10_8454
wait 0
goto @CASIN10_8430

:CASIN10_8454
116@ = 1
skip_cutscene_start_internal @CASIN10_9952
Task.GoStraightToCoord($scplayer, -783.153, 495.215, 1375.227, MoveState.Walk, -1)
if 
  not Char.IsDead(73@)
goto_if_false @CASIN10_8525
Task.LookAtChar($scplayer, 73@, -1)
goto @CASIN10_8557

:CASIN10_8525
if 
  74@ == 0
goto_if_false @CASIN10_8557
152@ += 1
74@ = 1

:CASIN10_8557
if 
  not Char.IsDead(77@)
goto_if_false @CASIN10_8590
Task.LookAtChar(77@, $scplayer, -1)
goto @CASIN10_8622

:CASIN10_8590
if 
  78@ == 0
goto_if_false @CASIN10_8622
152@ += 1
78@ = 1

:CASIN10_8622
75@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, -783.336, 496.837, 1375.235, 4, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Task.LookAtChar(-1, $scplayer, -1)
Task.AimGunAtChar(-1, $scplayer, 15000)
Sequence.Close(75@)
if 
  not Char.IsDead(73@)
goto_if_false @CASIN10_8717
Char.PerformSequence(73@, 75@)
Sequence.Clear(75@)
goto @CASIN10_8749

:CASIN10_8717
if 
  74@ == 0
goto_if_false @CASIN10_8749
152@ += 1
74@ = 1

:CASIN10_8749
if 
  not Char.IsDead(73@)
goto_if_false @CASIN10_8809
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('CAS11DA', 10000, 1)
Char.StartFacialTalk(73@, 999999)
Char.ShutUpForScriptedSpeech(73@, True)
goto @CASIN10_8845

:CASIN10_8809
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
if 
  74@ == 0
goto_if_false @CASIN10_8845
152@ += 1
74@ = 1

:CASIN10_8845
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CASIN10_8930
wait 0
gosub @CASIN10_15776
if 
  74@ == 0
goto_if_false @CASIN10_8923
if 
  Char.IsDead(73@)
goto_if_false @CASIN10_8923
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
152@ += 1
74@ = 1

:CASIN10_8923
goto @CASIN10_8845

:CASIN10_8930
Text.ClearThisPrint('CAS11DA')
if 
  not Char.IsDead(73@)
goto_if_false @CASIN10_8983
Char.StopFacialTalk(73@)
Char.ShutUpForScriptedSpeech(73@, False)
Task.StayInSamePlace($scplayer, True)
goto @CASIN10_9015

:CASIN10_8983
if 
  74@ == 0
goto_if_false @CASIN10_9015
152@ += 1
74@ = 1

:CASIN10_9015
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('CAS11DB', 4000, 1)
Char.StartFacialTalk($scplayer, 999999)
Char.ShutUpForScriptedSpeech($scplayer, True)
Camera.SetFixedPosition(-785.9136, 497.3071, 1375.579, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-785.0042, 496.9065, 1375.69, SwitchType.JumpCut)
if 
  not Char.IsDead(73@)
goto_if_false @CASIN10_9170
Task.ToggleDuck(73@, True)
Char.SetAccuracy(73@, 5)
Task.ShootAtCoord(73@, -781.079, 495.708, 1376.195, 10000)
Char.SetShootRate(73@, 80)
goto @CASIN10_9202

:CASIN10_9170
if 
  74@ == 0
goto_if_false @CASIN10_9202
152@ += 1
74@ = 1

:CASIN10_9202
37@ = Sequence.Open()
Task.AchieveHeading(-1, 270.0)
Task.PlayAnimNonInterruptable(-1, "JMP_WALL1M_180", "SWAT", 4.0, False, False, False, True, -1)
99@ = 0.0
Sequence.Close(37@)
Char.PerformSequence($scplayer, 37@)
if 
  Char.IsPlayingAnim($scplayer, "JMP_WALL1M_180")
goto_if_false @CASIN10_9336
99@ = Char.GetAnimCurrentTime($scplayer, "JMP_WALL1M_180")

:CASIN10_9336
if 
  99@ <> 1.0
goto_if_false @CASIN10_9431
wait 0
if 
  Char.IsPlayingAnim($scplayer, "JMP_WALL1M_180")
goto_if_false @CASIN10_9417
99@ = Char.GetAnimCurrentTime($scplayer, "JMP_WALL1M_180")

:CASIN10_9417
gosub @CASIN10_15776
goto @CASIN10_9336

:CASIN10_9431
67@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.FollowPathNodesToCoord(-1, -781.563, 505.346, 1370.782, 6, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(67@)
if 
  not Char.IsDead(65@)
goto_if_false @CASIN10_9519
Char.PerformSequence(65@, 67@)
Sequence.Clear(67@)
goto @CASIN10_9551

:CASIN10_9519
if 
  66@ == 0
goto_if_false @CASIN10_9551
152@ += 1
66@ = 1

:CASIN10_9551
71@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.FollowPathNodesToCoord(-1, -786.511, 505.073, 1370.782, 6, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(71@)
if 
  not Char.IsDead(69@)
goto_if_false @CASIN10_9639
Char.PerformSequence(69@, 71@)
Sequence.Clear(71@)
goto @CASIN10_9671

:CASIN10_9639
if 
  70@ == 0
goto_if_false @CASIN10_9671
152@ += 1
70@ = 1

:CASIN10_9671
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @CASIN10_9724
wait 0
gosub @CASIN10_15776
if 
  Char.IsDead($scplayer)
goto_if_false @CASIN10_9717
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)

:CASIN10_9717
goto @CASIN10_9671

:CASIN10_9724
Text.ClearThisPrint('CAS11DB')
Char.StopFacialTalk($scplayer)
Char.ShutUpForScriptedSpeech($scplayer, False)
79@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(79@)
if 
  not Char.IsDead(77@)
goto_if_false @CASIN10_9812
Char.PerformSequence(77@, 79@)
Sequence.Clear(79@)
goto @CASIN10_9844

:CASIN10_9812
if 
  78@ == 0
goto_if_false @CASIN10_9844
152@ += 1
78@ = 1

:CASIN10_9844
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Hud.SwitchWidescreen(False)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -780.806, 495.717, 1375.0)
Char.SetHeading($scplayer, 100.0)
Task.ToggleDuck($scplayer, True)
Task.PlayAnimNonInterruptable($scplayer, "WEAPON_CROUCH", "PED", 1000.0, False, False, False, False, -1)
Camera.RestoreJumpcut
Sequence.Clear(37@)
36@ = 1

:CASIN10_9952
skip_cutscene_end 
if 
  36@ == 0
goto_if_false @CASIN10_10266
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Char.ShutUpForScriptedSpeech($scplayer, False)
67@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.FollowPathNodesToCoord(-1, -781.563, 505.346, 1370.782, 6, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(67@)
if 
  not Char.IsDead(65@)
goto_if_false @CASIN10_10077
Char.PerformSequence(65@, 67@)
Sequence.Clear(67@)
goto @CASIN10_10109

:CASIN10_10077
if 
  66@ == 0
goto_if_false @CASIN10_10109
152@ += 1
66@ = 1

:CASIN10_10109
71@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.FollowPathNodesToCoord(-1, -786.511, 505.073, 1370.782, 6, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(71@)
if 
  not Char.IsDead(69@)
goto_if_false @CASIN10_10197
Char.PerformSequence(69@, 71@)
Sequence.Clear(71@)
goto @CASIN10_10229

:CASIN10_10197
if 
  70@ == 0
goto_if_false @CASIN10_10229
152@ += 1
70@ = 1

:CASIN10_10229
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -780.806, 495.717, 1375.0)
Char.SetHeading($scplayer, 100.0)
Camera.RestoreJumpcut

:CASIN10_10266
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Game.SetPoliceIgnorePlayer($player1, False)
Game.SetEveryoneIgnorePlayer($player1, False)
Char.SetProofs($scplayer, False, False, False, False, False)
if 
  not Char.IsDead(73@)
goto_if_false @CASIN10_10387
Char.SetAccuracy(73@, 40)
if 
  76@ == 0
goto_if_false @CASIN10_10380
Char.SetShootRate(73@, 40)
Task.StayInSamePlace(73@, False)
Task.KillCharOnFoot(73@, $scplayer)
76@ = 1

:CASIN10_10380
goto @CASIN10_10419

:CASIN10_10387
if 
  74@ == 0
goto_if_false @CASIN10_10419
152@ += 1
74@ = 1

:CASIN10_10419
Player.MakeGangReappear
if 
  116@ == 1
goto_if_false @CASIN10_10884
if 
  Char.IsInArea3D($scplayer, -778.0, 486.0, 1370.0, -797.0, 500.0, 1380.0, False)
goto_if_false @CASIN10_10684
if 
  not Char.IsDead(59@)
goto_if_false @CASIN10_10550
if 
  61@ == 0
goto_if_false @CASIN10_10543
set_lvar_int_to_lvar_int 101@ = 59@
gosub @CASIN10_18943
61@ = 1

:CASIN10_10543
goto @CASIN10_10582

:CASIN10_10550
if 
  60@ == 0
goto_if_false @CASIN10_10582
152@ += 1
60@ = 1

:CASIN10_10582
if 
  not Char.IsDead(62@)
goto_if_false @CASIN10_10645
if 
  64@ == 0
goto_if_false @CASIN10_10638
set_lvar_int_to_lvar_int 102@ = 62@
gosub @CASIN10_19026
64@ = 1

:CASIN10_10638
goto @CASIN10_10677

:CASIN10_10645
if 
  63@ == 0
goto_if_false @CASIN10_10677
152@ += 1
63@ = 1

:CASIN10_10677
goto @CASIN10_10884

:CASIN10_10684
if 
  not Char.IsDead(59@)
goto_if_false @CASIN10_10752
if 
  61@ == 0
goto_if_false @CASIN10_10745
Char.ClearTasks(59@)
Task.StayInSamePlace(59@, False)
Task.KillCharOnFoot(59@, $scplayer)
61@ = 1

:CASIN10_10745
goto @CASIN10_10784

:CASIN10_10752
if 
  60@ == 0
goto_if_false @CASIN10_10784
152@ += 1
60@ = 1

:CASIN10_10784
if 
  not Char.IsDead(62@)
goto_if_false @CASIN10_10852
if 
  64@ == 0
goto_if_false @CASIN10_10845
Char.ClearTasks(62@)
Task.StayInSamePlace(62@, False)
Task.KillCharOnFoot(62@, $scplayer)
64@ = 1

:CASIN10_10845
goto @CASIN10_10884

:CASIN10_10852
if 
  63@ == 0
goto_if_false @CASIN10_10884
152@ += 1
63@ = 1

:CASIN10_10884
Text.PrintNow('CM10_2', 10000, 1)

:CASIN10_10900
if 
  152@ <> 19
goto_if_false @CASIN10_13775
wait 0
if 
  118@ == 0
goto_if_false @CASIN10_11020
if 
  Char.IsInArea3D($scplayer, -777.097, 501.709, 1365.0, -784.992, 497.66, 1370.0, False)
goto_if_false @CASIN10_11020
gosub @CASIN10_19307
if 
  119@ == 0
goto_if_false @CASIN10_11020
gosub @CASIN10_19952

:CASIN10_11020
if 
  119@ == 1
goto_if_false @CASIN10_11045
gosub @CASIN10_20515

:CASIN10_11045
gosub @CASIN10_15776
if 
  55@ == 0
goto_if_false @CASIN10_11302
if 
  Char.IsInArea3D($scplayer, -778.0, 486.0, 1370.0, -797.0, 500.0, 1380.0, False)
goto_if_false @CASIN10_11220
if 
  60@ == 1
goto_if_false @CASIN10_11213
if 
  not Char.IsDead(53@)
goto_if_false @CASIN10_11181
set_lvar_int_to_lvar_int 101@ = 53@
gosub @CASIN10_18943
55@ = 1
goto @CASIN10_11213

:CASIN10_11181
if 
  54@ == 0
goto_if_false @CASIN10_11213
152@ += 1
54@ = 1

:CASIN10_11213
goto @CASIN10_11302

:CASIN10_11220
if 
  not Char.IsDead(53@)
goto_if_false @CASIN10_11270
Char.ClearTasks(53@)
Task.StayInSamePlace(53@, False)
Task.KillCharOnFoot(53@, $scplayer)
55@ = 2
goto @CASIN10_11302

:CASIN10_11270
if 
  54@ == 0
goto_if_false @CASIN10_11302
152@ += 1
54@ = 1

:CASIN10_11302
if 
  58@ == 0
goto_if_false @CASIN10_11552
if 
  Char.IsInArea3D($scplayer, -778.0, 486.0, 1370.0, -797.0, 500.0, 1380.0, False)
goto_if_false @CASIN10_11470
if 
  63@ == 1
goto_if_false @CASIN10_11463
if 
  not Char.IsDead(56@)
goto_if_false @CASIN10_11431
set_lvar_int_to_lvar_int 102@ = 56@
gosub @CASIN10_19026
58@ = 1
goto @CASIN10_11463

:CASIN10_11431
if 
  57@ == 0
goto_if_false @CASIN10_11463
152@ += 1
57@ = 1

:CASIN10_11463
goto @CASIN10_11552

:CASIN10_11470
if 
  not Char.IsDead(56@)
goto_if_false @CASIN10_11520
Char.ClearTasks(56@)
Task.StayInSamePlace(56@, False)
Task.KillCharOnFoot(56@, $scplayer)
58@ = 2
goto @CASIN10_11552

:CASIN10_11520
if 
  57@ == 0
goto_if_false @CASIN10_11552
152@ += 1
57@ = 1

:CASIN10_11552
if 
  89@ == 0
goto_if_false @CASIN10_11695
if 
  not Char.IsDead(87@)
goto_if_false @CASIN10_11663
if 
  Char.IsInArea3D($scplayer, -792.344, 489.644, 1370.782, -783.436, 493.662, 1366.0, False)
goto_if_false @CASIN10_11656
set_lvar_int_to_lvar_int 103@ = 87@
gosub @CASIN10_19109
89@ = 1

:CASIN10_11656
goto @CASIN10_11695

:CASIN10_11663
if 
  88@ == 0
goto_if_false @CASIN10_11695
152@ += 1
88@ = 1

:CASIN10_11695
if 
  92@ == 0
goto_if_false @CASIN10_11838
if 
  not Char.IsDead(90@)
goto_if_false @CASIN10_11806
if 
  Char.IsInArea3D($scplayer, -777.097, 501.709, 1365.0, -784.992, 497.66, 1370.0, False)
goto_if_false @CASIN10_11799
set_lvar_int_to_lvar_int 104@ = 90@
gosub @CASIN10_19208
92@ = 1

:CASIN10_11799
goto @CASIN10_11838

:CASIN10_11806
if 
  91@ == 0
goto_if_false @CASIN10_11838
152@ += 1
91@ = 1

:CASIN10_11838
if 
  95@ == 0
goto_if_false @CASIN10_11986
if 
  not Char.IsDead(93@)
goto_if_false @CASIN10_11954
if 
  Char.IsInArea3D($scplayer, -777.097, 501.709, 1365.0, -784.992, 497.66, 1370.0, False)
goto_if_false @CASIN10_11947
Char.ClearTasks(93@)
Task.StayInSamePlace(93@, True)
Task.KillCharOnFoot(93@, $scplayer)
95@ = 1

:CASIN10_11947
goto @CASIN10_11986

:CASIN10_11954
if 
  94@ == 0
goto_if_false @CASIN10_11986
152@ += 1
94@ = 1

:CASIN10_11986
if 
  Player.IsPlaying($player1)
goto_if_false @CASIN10_12016
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)

:CASIN10_12016
if 
  42@ == 0
goto_if_false @CASIN10_13768
if 
  Char.IsDead(40@)
goto_if_false @CASIN10_12076
Blip.Remove(41@)
152@ += 1
42@ = 1
goto @CASIN10_13768

:CASIN10_12076
46@ = Char.GetHealth(40@)
if 
  43@ == 0
goto_if_false @CASIN10_12148
Char.ClearRelationship(40@, RelationshipType.Hate, PedType.Player1)
Char.ClearTasksImmediately(40@)
Task.FollowPathNodesToCoord(40@, -781.09, 497.79, 1370.782, 6, 10000)
43@ = 1

:CASIN10_12148
if 
  43@ == 1
goto_if_false @CASIN10_12246
if 
  Char.LocateOnFoot3D(40@, -781.09, 497.79, 1370.782, 0.5, 0.5, 2.0, False)
goto_if_false @CASIN10_12246
Task.FollowPathNodesToCoord(40@, -791.749, 491.447, 1370.782, 6, 10000)
43@ = 2

:CASIN10_12246
if 
  43@ == 2
goto_if_false @CASIN10_12531
if 
  Char.IsInAreaOnFoot3D($scplayer, -777.827, 510.0, 1369.0, -797.0, 494.0, 1373.0, False)
goto_if_false @CASIN10_12319
117@ = 1

:CASIN10_12319
if 
  Char.LocateOnFoot3D(40@, -791.749, 491.447, 1370.782, 0.5, 0.5, 2.0, False)
goto_if_false @CASIN10_12531
if 
  44@ == 0
goto_if_false @CASIN10_12424
Char.SetHeading(40@, 0.0)
Task.StayInSamePlace(40@, True)
Task.KillCharOnFoot(40@, $scplayer)
TIMERB = 0
44@ = 1

:CASIN10_12424
if 
  117@ == 1
goto_if_false @CASIN10_12531
if 
  44@ == 1
goto_if_false @CASIN10_12531
if or
  TIMERB >= 6000
  800 >= 46@
goto_if_false @CASIN10_12531
Char.ClearTasks(40@)
Task.StayInSamePlace(40@, False)
Task.FollowPathNodesToCoord(40@, -779.844, 492.67, 1367.616, 6, 10000)
43@ = 3

:CASIN10_12531
if 
  43@ == 3
goto_if_false @CASIN10_12629
if 
  Char.LocateOnFoot3D(40@, -779.844, 492.67, 1367.616, 0.5, 0.5, 2.0, False)
goto_if_false @CASIN10_12629
Task.FollowPathNodesToCoord(40@, -779.844, 499.811, 1367.571, 6, 10000)
43@ = 4

:CASIN10_12629
if 
  43@ == 4
goto_if_false @CASIN10_12752
if 
  Char.LocateOnFoot3D(40@, -779.844, 499.811, 1367.571, 0.75, 0.75, 2.0, False)
goto_if_false @CASIN10_12752
if 
  46@ > 99
goto_if_false @CASIN10_12720
Char.SetHealth(40@, 100)

:CASIN10_12720
Task.FollowPathNodesToCoord(40@, -787.237, 499.939, 1366.414, 6, 10000)
43@ = 5

:CASIN10_12752
if 
  43@ == 5
goto_if_false @CASIN10_12850
if 
  Char.LocateOnFoot3D(40@, -787.237, 499.939, 1366.414, 0.5, 0.5, 2.0, False)
goto_if_false @CASIN10_12850
Task.FollowPathNodesToCoord(40@, -787.543, 508.034, 1366.414, 6, 10000)
43@ = 6

:CASIN10_12850
if 
  43@ == 6
goto_if_false @CASIN10_12948
if 
  Char.LocateOnFoot3D(40@, -787.543, 508.034, 1366.414, 0.5, 0.5, 2.0, False)
goto_if_false @CASIN10_12948
Task.FollowPathNodesToCoord(40@, -791.552, 507.859, 1366.414, 6, 10000)
43@ = 7

:CASIN10_12948
if 
  43@ == 7
goto_if_false @CASIN10_13046
if 
  Char.LocateOnFoot3D(40@, -791.552, 507.859, 1366.414, 0.5, 0.5, 2.0, False)
goto_if_false @CASIN10_13046
Task.FollowPathNodesToCoord(40@, -791.045, 498.883, 1366.414, 6, 10000)
43@ = 8

:CASIN10_13046
if 
  43@ == 8
goto_if_false @CASIN10_13144
if 
  Char.LocateOnFoot3D(40@, -791.045, 498.883, 1366.414, 0.5, 0.5, 2.0, False)
goto_if_false @CASIN10_13144
Task.FollowPathNodesToCoord(40@, -791.81, 492.473, 1366.414, 6, 10000)
43@ = 9

:CASIN10_13144
if 
  43@ == 9
goto_if_false @CASIN10_13242
if 
  Char.LocateOnFoot3D(40@, -791.81, 492.473, 1366.414, 0.5, 0.5, 2.0, False)
goto_if_false @CASIN10_13242
Task.FollowPathNodesToCoord(40@, -798.194, 492.462, 1366.274, 6, 10000)
43@ = 10

:CASIN10_13242
if 
  43@ == 10
goto_if_false @CASIN10_13340
if 
  Char.LocateOnFoot3D(40@, -798.194, 492.462, 1366.274, 0.5, 0.5, 2.0, False)
goto_if_false @CASIN10_13340
Task.FollowPathNodesToCoord(40@, -799.081, 503.71, 1361.913, 6, 10000)
43@ = 11

:CASIN10_13340
if 
  43@ == 11
goto_if_false @CASIN10_13438
if 
  Char.LocateOnFoot3D(40@, -799.081, 503.71, 1361.913, 0.5, 0.5, 2.0, False)
goto_if_false @CASIN10_13438
Task.FollowPathNodesToCoord(40@, -821.412, 504.901, 1357.35, 6, 10000)
43@ = 12

:CASIN10_13438
if 
  43@ == 12
goto_if_false @CASIN10_13631
if 
  Char.LocateOnFoot3D(40@, -821.412, 504.901, 1357.358, 0.5, 0.5, 2.0, False)
goto_if_false @CASIN10_13631
124@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, -830.889, 501.107, 1357.374, 6, -1)
Task.FollowPathNodesToCoord(-1, -830.711, 498.369, 1357.385, 6, -1)
Task.AchieveHeading(-1, 260.984)
Sequence.Close(124@)
if 
  not Char.IsDead(40@)
goto_if_false @CASIN10_13612
Char.PerformSequence(40@, 124@)
Sequence.Clear(124@)
43@ = 13
goto @CASIN10_13631

:CASIN10_13612
Blip.Remove(41@)
152@ += 1
42@ = 1

:CASIN10_13631
if 
  43@ == 13
goto_if_false @CASIN10_13768
if 
  Char.LocateOnFoot3D(40@, -830.711, 498.369, 1357.385, 0.5, 0.5, 2.0, False)
goto_if_false @CASIN10_13768
if 
  not Char.IsDead(40@)
goto_if_false @CASIN10_13749
Task.StayInSamePlace(40@, True)
Task.ToggleDuck(40@, True)
Task.KillCharOnFoot(40@, $scplayer)
43@ = 14
goto @CASIN10_13768

:CASIN10_13749
Blip.Remove(41@)
152@ += 1
42@ = 1

:CASIN10_13768
goto @CASIN10_10900

:CASIN10_13775
wait 3000
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Game.SetPoliceIgnorePlayer($player1, True)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:CASIN10_13816
if 
  Camera.GetFadingStatus
goto_if_false @CASIN10_13840
wait 0
goto @CASIN10_13816

:CASIN10_13840
Player.MakeGangDisappear
if 
  118@ == 0
goto_if_false @CASIN10_13867
gosub @CASIN10_19307

:CASIN10_13867
Char.Delete(87@)
Char.Delete(90@)
Char.Delete(93@)
Char.Delete(120@)
Char.Delete(121@)
Char.Delete(122@)
Car.Delete(123@)
Streaming.MarkModelAsNoLongerNeeded(405)
Streaming.MarkModelAsNoLongerNeeded(124)
Streaming.MarkModelAsNoLongerNeeded(125)
Streaming.MarkModelAsNoLongerNeeded(126)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(420)
Streaming.MarkModelAsNoLongerNeeded(17)
Streaming.MarkModelAsNoLongerNeeded(150)
Streaming.RemoveAnimation("SWAT")
Char.RemoveElegantly(40@)
Streaming.UnloadSpecialCharacter(1)
Streaming.RequestModel(519)
Streaming.RequestCarRecording(601)
Streaming.LoadAllModelsNow

:CASIN10_13977
if or
  not Streaming.HasModelLoaded(519)
  not Streaming.HasCarRecordingBeenLoaded(601)
goto_if_false @CASIN10_14009
wait 0
goto @CASIN10_13977

:CASIN10_14009
Streaming.SetAreaVisible(0)
Game.SetIsInStadium(False)
Char.SetAreaVisible($scplayer, 0)
Text.ClearHelp
Text.ClearPrints
112@ = Car.Create(519, 7500.0, 2478.34, 200.0)
Plane.StartsInAir(112@)
Car.SetOnlyDamagedByPlayer(112@, True)
Car.SetProofs(112@, True, True, True, True, True)
Car.SetHeading(112@, 110.0)
Plane.SetUndercarriageUp(112@, True)
Char.WarpIntoCar($scplayer, 112@)
Car.StartPlayback(112@, 601)
Camera.SetFixedPosition(8867.637, 1581.89, 193.188, 0.0, 0.0, 0.0)
Camera.PointAtPoint(8867.605, 1582.883, 193.0727, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:CASIN10_14181
if 
  Camera.GetFadingStatus
goto_if_false @CASIN10_14205
wait 0
goto @CASIN10_14181

:CASIN10_14205
skip_cutscene_start_internal @CASIN10_14288
TIMERA = 0

:CASIN10_14219
if 
  2800 > TIMERA
goto_if_false @CASIN10_14288
wait 0
if 
  Car.IsDead(112@)
goto_if_false @CASIN10_14281
Text.PrintNow('CM10_17', 8000, 1)
goto @CASIN10_15190

:CASIN10_14281
goto @CASIN10_14219

:CASIN10_14288
skip_cutscene_end 
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.Out)

:CASIN10_14305
if 
  Camera.GetFadingStatus
goto_if_false @CASIN10_14329
wait 0
goto @CASIN10_14305

:CASIN10_14329
if 
  not Car.IsDead(112@)
goto_if_false @CASIN10_14366
if 
  Car.IsPlaybackGoingOn(112@)
goto_if_false @CASIN10_14366
Car.StopPlayback(112@)

:CASIN10_14366
Streaming.RemoveCarRecording(601)
if 
  not Car.IsDead(112@)
goto_if_false @CASIN10_14458
Car.SetCoordinates(112@, 7500.0, 2478.34, 200.0)
Car.FreezePosition(112@, True)
Plane.StartsInAir(112@)
Car.SetOnlyDamagedByPlayer(112@, False)
Car.SetProofs(112@, False, False, False, False, False)
Car.SetHeading(112@, 110.0)
Plane.SetUndercarriageUp(112@, True)

:CASIN10_14458
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.MakeGangReappear
Camera.SetFadingColor(0, 0, 0)
Game.HideAllFrontendBlips(False)
Game.SetMaxWantedLevel(6)
Camera.DoFade(500, Fade.In)
Hud.SwitchWidescreen(False)

:CASIN10_14491
if 
  Camera.GetFadingStatus
goto_if_false @CASIN10_14515
wait 0
goto @CASIN10_14491

:CASIN10_14515
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Game.SetPoliceIgnorePlayer($player1, False)
if 
  not Car.IsDead(112@)
goto_if_false @CASIN10_14576
Car.FreezePosition(112@, False)
Car.SetForwardSpeed(112@, 30.0)
goto @CASIN10_14599

:CASIN10_14576
Text.PrintNow('CM10_17', 8000, 1)
goto @CASIN10_15190

:CASIN10_14599
Text.PrintNow('CM10_19', 8000, 1)
130@ = Blip.AddForCoord(1477.225, 1640.364, 9.86)
Game.SetAlwaysDraw3DMarkers(True)
131@ = 0
132@ = 0
133@ = 0
134@ = 1
gosub @CASIN10_47
129@ = 0

:CASIN10_14681
if or
  not Car.IsStoppedInArea3D(112@, 1636.319, 1144.478, 7.0, 1261.411, 1780.672, 14.0, False)
  not Char.IsInArea3D($scplayer, 1636.319, 1144.478, 7.0, 1261.411, 1780.672, 14.0, False)
goto_if_false @CASIN10_15159
wait 0
if 
  Car.IsDead(112@)
goto_if_false @CASIN10_14826
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Text.PrintNow('CM10_17', 8000, 1)
goto @CASIN10_15190
goto @CASIN10_15152

:CASIN10_14826
if 
  Char.IsInCar($scplayer, 112@)
goto_if_false @CASIN10_15028
if 
  Char.LocateInCar3D($scplayer, 1477.225, 1640.364, 9.86, 350.0, 350.0, 500.0, False)
goto_if_false @CASIN10_14900
gosub @CASIN10_20310

:CASIN10_14900
if 
  not Car.IsStoppedInArea3D(112@, 1636.319, 1144.478, 7.0, 1261.411, 1780.672, 14.0, False)
goto_if_false @CASIN10_15021
if 
  129@ == 1
goto_if_false @CASIN10_15021
Text.PrintNow('CM10_19', 8000, 1)
130@ = Blip.AddForCoord(1477.225, 1640.364, 9.86)
Blip.Remove(113@)
$blob_flag = 1
129@ = 0

:CASIN10_15021
goto @CASIN10_15152

:CASIN10_15028
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  not Car.IsStoppedInArea3D(112@, 1636.319, 1144.478, 7.0, 1261.411, 1780.672, 14.0, False)
goto_if_false @CASIN10_15152
if 
  129@ == 0
goto_if_false @CASIN10_15152
Blip.Remove(130@)
113@ = Blip.AddForCar(112@)
Blip.SetAsFriendly(34@, True)
Text.PrintNow('IN_VEH', 5000, 1)
$blob_flag = 0
129@ = 1

:CASIN10_15152
goto @CASIN10_14681

:CASIN10_15159
Blip.Remove(130@)
Blip.Remove(113@)
Game.SetAlwaysDraw3DMarkers(False)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
goto @CASIN10_15339

:CASIN10_15190
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if or
  Char.IsInWater($scplayer)
  Car.IsInWater(112@)
goto_if_false @CASIN10_15249
Skip.SetUpAfterMission(2149.609, 1681.117, 9.82, 90.0)

:CASIN10_15249
if 
  Char.IsInAir($scplayer)
goto_if_false @CASIN10_15337
if 
  not Char.IsInFlyingVehicle($scplayer)
goto_if_false @CASIN10_15337
if 
  not Player.IsUsingJetpack($player1)
goto_if_false @CASIN10_15337
if 
  $player_fall_state <= 0
goto_if_false @CASIN10_15337
Skip.SetUpAfterMission(2149.609, 1681.117, 9.82, 90.0)

:CASIN10_15337
return 

:CASIN10_15339
$flag_casino_mission_counter += 1
Stat.RegisterMissionPassed('CASIN10')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSS', 20000, 5000, TextStyle.Middle)
Player.AddScore($player1, 20000)
Stat.AwardPlayerMissionRespect(35)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Blip.Remove($heist_contact_blip)
Stat.SetInt(StatId.CitiesPassed, 3)
start_new_script @MANSION 
Blip.Remove($casino_contact_blip)
$casino_contact_blip = Blip.AddSpriteForContactPoint($casinoX, $casinoY, $casinoZ, $casino_blip_icon)
Blip.SetEntryExit($casino_contact_blip, 2026.603, 1007.735, 20.0)
terminate_all_scripts_with_this_name 'MOBLA2'
start_new_script @MOB_LA2 
Stat.SetInt(StatId.PassedCasino10, 1)
return 

:CASIN10_15491
Game.SetMaxWantedLevel(6)
Game.SetWantedMultiplier(1.0)
Char.RemoveElegantly(40@)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Path.SwitchRoadsBackToOriginal(2095.35, 1734.179, 8.0, 2337.495, 1524.991, 15.0)
Path.SwitchPedRoadsBackToOriginal(2095.35, 1734.179, 8.0, 2337.495, 1524.991, 15.0)
Sequence.Clear(75@)
Sequence.Clear(79@)
Sequence.Clear(97@)
Sequence.Clear(98@)
Sequence.Clear(96@)
Sequence.Clear(162@)
Sequence.Clear(67@)
Sequence.Clear(71@)
Sequence.Clear(38@)
Sequence.Clear(39@)
Sequence.Clear(124@)
Blip.Remove(41@)
Blip.Remove(34@)
Blip.Remove(35@)
Blip.Remove(126@)
Blip.Remove(113@)
Blip.Remove(130@)
Streaming.MarkModelAsNoLongerNeeded(124)
Streaming.MarkModelAsNoLongerNeeded(125)
Streaming.MarkModelAsNoLongerNeeded(126)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(519)
Streaming.MarkModelAsNoLongerNeeded(405)
Streaming.MarkModelAsNoLongerNeeded(420)
Streaming.MarkModelAsNoLongerNeeded(17)
Streaming.MarkModelAsNoLongerNeeded(150)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
DecisionMaker.Remove(105@)
DecisionMaker.Remove(110@)
Streaming.RemoveCarRecording(601)
Streaming.RemoveCarRecording(602)
Streaming.RemoveCarRecording(603)
Streaming.RemoveAnimation("SWAT")
Game.SetAlwaysDraw3DMarkers(False)
Game.SetIsInStadium(False)
Mission.Finish
return 

:CASIN10_15776
if 
  42@ == 0
goto_if_false @CASIN10_15829
if 
  Char.IsDead(40@)
goto_if_false @CASIN10_15829
Blip.Remove(41@)
152@ += 1
42@ = 1

:CASIN10_15829
if 
  48@ == 0
goto_if_false @CASIN10_16104
if 
  Char.IsDead(47@)
goto_if_false @CASIN10_15884
152@ += 1
48@ = 1
goto @CASIN10_16104

:CASIN10_15884
if 
  116@ == 1
goto_if_false @CASIN10_16104
if 
  42@ == 0
goto_if_false @CASIN10_16020
if 
  49@ == 0
goto_if_false @CASIN10_16013
if 
  not Char.IsInArea3D($scplayer, -796.172, 488.58, 1370.0, -777.902, 498.668, 1378.235, False)
goto_if_false @CASIN10_16013
Char.ClearTasks(47@)
Task.StayInSamePlace(47@, True)
Task.KillCharOnFoot(47@, $scplayer)
49@ = 1

:CASIN10_16013
goto @CASIN10_16104

:CASIN10_16020
if 
  49@ == 1
goto_if_false @CASIN10_16059
Task.StayInSamePlace(47@, False)
49@ = 2
goto @CASIN10_16104

:CASIN10_16059
if 
  49@ <> 2
goto_if_false @CASIN10_16104
Char.ClearTasks(47@)
Task.StayInSamePlace(47@, False)
Task.KillCharOnFoot(47@, $scplayer)
49@ = 2

:CASIN10_16104
if 
  51@ == 0
goto_if_false @CASIN10_16379
if 
  Char.IsDead(50@)
goto_if_false @CASIN10_16159
152@ += 1
51@ = 1
goto @CASIN10_16379

:CASIN10_16159
if 
  116@ == 1
goto_if_false @CASIN10_16379
if 
  42@ == 0
goto_if_false @CASIN10_16295
if 
  52@ == 0
goto_if_false @CASIN10_16288
if 
  not Char.IsInArea3D($scplayer, -796.172, 488.58, 1370.0, -777.902, 498.668, 1378.235, False)
goto_if_false @CASIN10_16288
Char.ClearTasks(50@)
Task.StayInSamePlace(50@, True)
Task.KillCharOnFoot(50@, $scplayer)
52@ = 1

:CASIN10_16288
goto @CASIN10_16379

:CASIN10_16295
if 
  52@ == 1
goto_if_false @CASIN10_16334
Task.StayInSamePlace(50@, False)
52@ = 2
goto @CASIN10_16379

:CASIN10_16334
if 
  52@ <> 2
goto_if_false @CASIN10_16379
Char.ClearTasks(50@)
Task.StayInSamePlace(50@, False)
Task.KillCharOnFoot(50@, $scplayer)
52@ = 2

:CASIN10_16379
if 
  54@ == 0
goto_if_false @CASIN10_16484
if 
  Char.IsDead(53@)
goto_if_false @CASIN10_16434
152@ += 1
54@ = 1
goto @CASIN10_16484

:CASIN10_16434
if 
  42@ == 1
goto_if_false @CASIN10_16484
if 
  2 > 55@
goto_if_false @CASIN10_16484
Task.StayInSamePlace(53@, False)
55@ = 2

:CASIN10_16484
if 
  57@ == 0
goto_if_false @CASIN10_16589
if 
  Char.IsDead(56@)
goto_if_false @CASIN10_16539
152@ += 1
57@ = 1
goto @CASIN10_16589

:CASIN10_16539
if 
  42@ == 1
goto_if_false @CASIN10_16589
if 
  2 > 58@
goto_if_false @CASIN10_16589
Task.StayInSamePlace(56@, False)
58@ = 2

:CASIN10_16589
if 
  60@ == 0
goto_if_false @CASIN10_16746
if 
  Char.IsDead(59@)
goto_if_false @CASIN10_16644
152@ += 1
60@ = 1
goto @CASIN10_16746

:CASIN10_16644
if 
  42@ == 1
goto_if_false @CASIN10_16746
if 
  61@ == 0
goto_if_false @CASIN10_16714
Char.ClearTasks(59@)
Task.StayInSamePlace(59@, False)
Task.KillCharOnFoot(59@, $scplayer)
61@ = 1
goto @CASIN10_16746

:CASIN10_16714
if 
  2 > 61@
goto_if_false @CASIN10_16746
Task.StayInSamePlace(59@, False)
61@ = 2

:CASIN10_16746
if 
  63@ == 0
goto_if_false @CASIN10_16903
if 
  Char.IsDead(62@)
goto_if_false @CASIN10_16801
152@ += 1
63@ = 1
goto @CASIN10_16903

:CASIN10_16801
if 
  42@ == 1
goto_if_false @CASIN10_16903
if 
  64@ == 0
goto_if_false @CASIN10_16871
Char.ClearTasks(62@)
Task.StayInSamePlace(62@, False)
Task.KillCharOnFoot(62@, $scplayer)
64@ = 1
goto @CASIN10_16903

:CASIN10_16871
if 
  2 > 64@
goto_if_false @CASIN10_16903
Task.StayInSamePlace(62@, False)
64@ = 2

:CASIN10_16903
if 
  66@ == 0
goto_if_false @CASIN10_17008
if 
  Char.IsDead(65@)
goto_if_false @CASIN10_16958
152@ += 1
66@ = 1
goto @CASIN10_17008

:CASIN10_16958
if 
  42@ == 1
goto_if_false @CASIN10_17008
if 
  68@ == 0
goto_if_false @CASIN10_17008
Task.StayInSamePlace(65@, False)
68@ = 1

:CASIN10_17008
if 
  70@ == 0
goto_if_false @CASIN10_17113
if 
  Char.IsDead(69@)
goto_if_false @CASIN10_17063
152@ += 1
70@ = 1
goto @CASIN10_17113

:CASIN10_17063
if 
  42@ == 1
goto_if_false @CASIN10_17113
if 
  72@ == 0
goto_if_false @CASIN10_17113
Task.StayInSamePlace(69@, False)
72@ = 1

:CASIN10_17113
if 
  74@ == 0
goto_if_false @CASIN10_17231
if 
  Char.IsDead(73@)
goto_if_false @CASIN10_17168
152@ += 1
74@ = 1
goto @CASIN10_17231

:CASIN10_17168
if 
  42@ == 1
goto_if_false @CASIN10_17231
if 
  76@ == 0
goto_if_false @CASIN10_17231
Char.ClearTasks(73@)
Task.StayInSamePlace(73@, False)
Task.KillCharOnFoot(73@, $scplayer)
76@ = 1

:CASIN10_17231
if 
  78@ == 0
goto_if_false @CASIN10_17467
if 
  Char.IsDead(77@)
goto_if_false @CASIN10_17286
152@ += 1
78@ = 1
goto @CASIN10_17467

:CASIN10_17286
if 
  116@ == 1
goto_if_false @CASIN10_17467
if 
  42@ == 0
goto_if_false @CASIN10_17422
if 
  80@ == 0
goto_if_false @CASIN10_17415
if 
  not Char.IsInArea3D($scplayer, -778.0, 486.0, 1370.0, -797.0, 500.0, 1380.0, False)
goto_if_false @CASIN10_17415
Char.ClearTasks(77@)
Task.StayInSamePlace(77@, False)
Task.KillCharOnFoot(77@, $scplayer)
80@ = 1

:CASIN10_17415
goto @CASIN10_17467

:CASIN10_17422
if 
  80@ == 0
goto_if_false @CASIN10_17467
Char.ClearTasks(77@)
Task.StayInSamePlace(77@, False)
Task.KillCharOnFoot(77@, $scplayer)
80@ = 1

:CASIN10_17467
if 
  82@ == 0
goto_if_false @CASIN10_17831
if 
  Char.IsDead(81@)
goto_if_false @CASIN10_17522
152@ += 1
82@ = 1
goto @CASIN10_17831

:CASIN10_17522
if 
  116@ == 1
goto_if_false @CASIN10_17831
if 
  42@ == 0
goto_if_false @CASIN10_17786
if 
  Char.IsInArea3D($scplayer, -781.646, 498.659, 1374.0, -780.146, 487.315, 1378.0, False)
goto_if_false @CASIN10_17734
if 
  83@ == 0
goto_if_false @CASIN10_17646
set_lvar_int_to_lvar_int 100@ = 81@
gosub @CASIN10_18719
83@ = 1

:CASIN10_17646
if 
  83@ == 1
goto_if_false @CASIN10_17727
if 
  Char.HasBeenDamagedByWeapon(81@, WeaponType.AnyWeapon)
goto_if_false @CASIN10_17727
if 
  83@ == 1
goto_if_false @CASIN10_17727
Char.ClearTasks(81@)
Task.StayInSamePlace(81@, False)
Task.KillCharOnFoot(81@, $scplayer)
83@ = 2

:CASIN10_17727
goto @CASIN10_17779

:CASIN10_17734
if 
  83@ == 1
goto_if_false @CASIN10_17779
Char.ClearTasks(81@)
Task.StayInSamePlace(81@, False)
Task.KillCharOnFoot(81@, $scplayer)
83@ = 2

:CASIN10_17779
goto @CASIN10_17831

:CASIN10_17786
if 
  83@ <> 2
goto_if_false @CASIN10_17831
Char.ClearTasks(81@)
Task.StayInSamePlace(81@, False)
Task.KillCharOnFoot(81@, $scplayer)
83@ = 2

:CASIN10_17831
if 
  85@ == 0
goto_if_false @CASIN10_18246
if 
  Char.IsDead(84@)
goto_if_false @CASIN10_17886
152@ += 1
85@ = 1
goto @CASIN10_18246

:CASIN10_17886
if 
  116@ == 1
goto_if_false @CASIN10_18246
if 
  42@ == 0
goto_if_false @CASIN10_18201
if 
  Char.IsInArea3D($scplayer, -781.646, 498.659, 1374.0, -780.146, 487.315, 1378.0, False)
goto_if_false @CASIN10_18149
if 
  86@ == 0
goto_if_false @CASIN10_18002
TIMERA = 0
86@ = 1

:CASIN10_18002
if 
  86@ == 1
goto_if_false @CASIN10_18061
if 
  TIMERA >= 800
goto_if_false @CASIN10_18061
set_lvar_int_to_lvar_int 100@ = 84@
gosub @CASIN10_18719
86@ = 2

:CASIN10_18061
if 
  86@ == 1
goto_if_false @CASIN10_18142
if 
  Char.HasBeenDamagedByWeapon(84@, WeaponType.AnyWeapon)
goto_if_false @CASIN10_18142
if 
  3 > 86@
goto_if_false @CASIN10_18142
Char.ClearTasks(84@)
Task.StayInSamePlace(84@, False)
Task.KillCharOnFoot(84@, $scplayer)
86@ = 3

:CASIN10_18142
goto @CASIN10_18194

:CASIN10_18149
if 
  86@ == 2
goto_if_false @CASIN10_18194
Char.ClearTasks(84@)
Task.StayInSamePlace(84@, False)
Task.KillCharOnFoot(84@, $scplayer)
86@ = 3

:CASIN10_18194
goto @CASIN10_18246

:CASIN10_18201
if 
  3 > 86@
goto_if_false @CASIN10_18246
Char.ClearTasks(84@)
Task.StayInSamePlace(84@, False)
Task.KillCharOnFoot(84@, $scplayer)
86@ = 3

:CASIN10_18246
if 
  88@ == 0
goto_if_false @CASIN10_18403
if 
  Char.IsDead(87@)
goto_if_false @CASIN10_18301
152@ += 1
88@ = 1
goto @CASIN10_18403

:CASIN10_18301
if 
  42@ == 1
goto_if_false @CASIN10_18403
if 
  89@ == 0
goto_if_false @CASIN10_18371
Char.ClearTasks(87@)
Task.StayInSamePlace(87@, False)
Task.KillCharOnFoot(87@, $scplayer)
89@ = 1
goto @CASIN10_18403

:CASIN10_18371
if 
  2 > 89@
goto_if_false @CASIN10_18403
Task.StayInSamePlace(87@, False)
89@ = 2

:CASIN10_18403
if 
  91@ == 0
goto_if_false @CASIN10_18560
if 
  Char.IsDead(90@)
goto_if_false @CASIN10_18458
152@ += 1
91@ = 1
goto @CASIN10_18560

:CASIN10_18458
if 
  42@ == 1
goto_if_false @CASIN10_18560
if 
  92@ == 0
goto_if_false @CASIN10_18528
Char.ClearTasks(90@)
Task.StayInSamePlace(90@, False)
Task.KillCharOnFoot(90@, $scplayer)
92@ = 1
goto @CASIN10_18560

:CASIN10_18528
if 
  2 > 92@
goto_if_false @CASIN10_18560
Task.StayInSamePlace(90@, False)
92@ = 2

:CASIN10_18560
if 
  94@ == 0
goto_if_false @CASIN10_18717
if 
  Char.IsDead(93@)
goto_if_false @CASIN10_18615
152@ += 1
94@ = 1
goto @CASIN10_18717

:CASIN10_18615
if 
  42@ == 1
goto_if_false @CASIN10_18717
if 
  95@ == 0
goto_if_false @CASIN10_18685
Char.ClearTasks(93@)
Task.StayInSamePlace(93@, False)
Task.KillCharOnFoot(93@, $scplayer)
95@ = 1
goto @CASIN10_18717

:CASIN10_18685
if 
  2 > 95@
goto_if_false @CASIN10_18717
Task.StayInSamePlace(93@, False)
95@ = 2

:CASIN10_18717
return 

:CASIN10_18719
96@ = Sequence.Open()
Task.PlayAnim(-1, "SWT_WLLPK_R", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SWT_WLLSHOOT_IN_R", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootTimed(-1, $scplayer, 1500)
Task.StayInSamePlace(-1, False)
Task.PlayAnim(-1, "SWT_WLLSHOOT_OUT_R", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnim(-1, "SWT_WLLPK_R_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(96@, True)
Sequence.Close(96@)
Char.PerformSequence(100@, 96@)
Sequence.Clear(96@)
return 

:CASIN10_18943
97@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.FollowPathNodesToCoord(-1, -788.611, 497.731, 1375.227, 6, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(97@)
if 
  not Char.IsDead(101@)
goto_if_false @CASIN10_19019
Char.PerformSequence(101@, 97@)

:CASIN10_19019
Sequence.Clear(97@)
return 

:CASIN10_19026
98@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.FollowPathNodesToCoord(-1, -789.542, 495.862, 1376.235, 6, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(98@)
if 
  not Char.IsDead(102@)
goto_if_false @CASIN10_19102
Char.PerformSequence(102@, 98@)

:CASIN10_19102
Sequence.Clear(98@)
return 

:CASIN10_19109
38@ = Sequence.Open()
Task.PlayAnim(-1, "CROUCH_ROLL_L", "PED", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(38@)
if 
  not Char.IsDead(103@)
goto_if_false @CASIN10_19201
Char.PerformSequence(103@, 38@)

:CASIN10_19201
Sequence.Clear(38@)
return 

:CASIN10_19208
39@ = Sequence.Open()
Task.PlayAnim(-1, "CROUCH_ROLL_R", "PED", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(39@)
if 
  not Char.IsDead(104@)
goto_if_false @CASIN10_19300
Char.PerformSequence(104@, 39@)

:CASIN10_19300
Sequence.Clear(39@)
return 

:CASIN10_19307
if 
  48@ == 0
goto_if_false @CASIN10_19360
if 
  not Char.IsDead(47@)
goto_if_false @CASIN10_19360
Char.Delete(47@)
152@ += 1
48@ = 1

:CASIN10_19360
if 
  51@ == 0
goto_if_false @CASIN10_19413
if 
  not Char.IsDead(50@)
goto_if_false @CASIN10_19413
Char.Delete(50@)
152@ += 1
51@ = 1

:CASIN10_19413
if 
  54@ == 0
goto_if_false @CASIN10_19466
if 
  not Char.IsDead(53@)
goto_if_false @CASIN10_19466
Char.Delete(53@)
152@ += 1
54@ = 1

:CASIN10_19466
if 
  57@ == 0
goto_if_false @CASIN10_19519
if 
  not Char.IsDead(56@)
goto_if_false @CASIN10_19519
Char.Delete(56@)
152@ += 1
57@ = 1

:CASIN10_19519
if 
  60@ == 0
goto_if_false @CASIN10_19572
if 
  not Char.IsDead(59@)
goto_if_false @CASIN10_19572
Char.Delete(59@)
152@ += 1
60@ = 1

:CASIN10_19572
if 
  63@ == 0
goto_if_false @CASIN10_19625
if 
  not Char.IsDead(62@)
goto_if_false @CASIN10_19625
Char.Delete(62@)
152@ += 1
63@ = 1

:CASIN10_19625
if 
  66@ == 0
goto_if_false @CASIN10_19678
if 
  not Char.IsDead(65@)
goto_if_false @CASIN10_19678
Char.Delete(65@)
152@ += 1
66@ = 1

:CASIN10_19678
if 
  70@ == 0
goto_if_false @CASIN10_19731
if 
  not Char.IsDead(69@)
goto_if_false @CASIN10_19731
Char.Delete(69@)
152@ += 1
70@ = 1

:CASIN10_19731
if 
  74@ == 0
goto_if_false @CASIN10_19784
if 
  not Char.IsDead(73@)
goto_if_false @CASIN10_19784
Char.Delete(73@)
152@ += 1
74@ = 1

:CASIN10_19784
if 
  78@ == 0
goto_if_false @CASIN10_19837
if 
  not Char.IsDead(77@)
goto_if_false @CASIN10_19837
Char.Delete(77@)
152@ += 1
78@ = 1

:CASIN10_19837
if 
  82@ == 0
goto_if_false @CASIN10_19890
if 
  not Char.IsDead(81@)
goto_if_false @CASIN10_19890
Char.Delete(81@)
152@ += 1
82@ = 0

:CASIN10_19890
if 
  85@ == 0
goto_if_false @CASIN10_19943
if 
  not Char.IsDead(84@)
goto_if_false @CASIN10_19943
Char.Delete(84@)
152@ += 1
85@ = 1

:CASIN10_19943
118@ = 1
return 

:CASIN10_19952
Car.CustomPlateForNextCar(405, "_4GEDIT_")
123@ = Car.Create(405, -831.107, 503.678, 1357.348)
Car.ChangeColor(123@, 24, 24)
Car.SetHeading(123@, 292.606)
Car.LockDoors(123@, CarLock.Locked)
Car.SetAreaVisible(123@, 1)
120@ = Char.Create(PedType.Mission1, 126, -816.005, 493.329, 1358.293)
Char.SetAllowedToDuck(120@, False)
Char.GiveWeapon(120@, WeaponType.MicroUzi, 30000)
Char.SetHeading(120@, 302.139)
Char.SetDecisionMaker(120@, 106@)
Task.StayInSamePlace(120@, True)
Task.KillCharOnFoot(120@, $scplayer)
Char.SetAccuracy(120@, 80)
Char.SetShootRate(120@, 50)
121@ = Char.Create(PedType.Mission1, 124, -821.268, 508.167, 1358.273)
Char.SetAllowedToDuck(121@, False)
Char.GiveWeapon(121@, WeaponType.MicroUzi, 30000)
Char.SetHeading(121@, 234.012)
Char.SetDecisionMaker(121@, 106@)
Task.ToggleDuck(121@, True)
Task.StayInSamePlace(121@, True)
Task.KillCharOnFoot(121@, $scplayer)
Char.SetAccuracy(121@, 50)
Char.SetShootRate(121@, 80)
122@ = Char.Create(PedType.Mission1, 125, -828.77, 510.594, 1357.307)
Char.SetAllowedToDuck(122@, False)
Char.GiveWeapon(122@, WeaponType.MicroUzi, 30000)
Char.SetHeading(122@, 241.767)
Char.SetDecisionMaker(122@, 106@)
Task.ToggleDuck(122@, True)
Task.StayInSamePlace(122@, True)
Task.KillCharOnFoot(122@, $scplayer)
Char.SetAccuracy(122@, 75)
Char.SetShootRate(122@, 50)
119@ = 1
return 

:CASIN10_20310
if or
  132@ == 0
  132@ == 1
goto_if_false @CASIN10_20361
if 
  is_int_var_greater_or_equal_to_int_lvar $cell_index_end >= 131@
goto_if_false @CASIN10_20361
gosub @CASIN10_20419

:CASIN10_20361
if 
  132@ == 2
goto_if_false @CASIN10_20417
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @CASIN10_20417
132@ = 0
131@ += 1
133@ = 0
Text.ClearPrints

:CASIN10_20417
return 

:CASIN10_20419
if 
  132@ == 0
goto_if_false @CASIN10_20455
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 135@(131@,17i))
132@ = 1

:CASIN10_20455
if 
  132@ == 1
goto_if_false @CASIN10_20513
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @CASIN10_20513
Text.PrintNow($rosenbergs_health_C6(131@,17s), 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
132@ = 2

:CASIN10_20513
return 

:CASIN10_20515
if 
  153@ == 0
goto_if_false @CASIN10_20620
if 
  Char.IsDead(120@)
goto_if_false @CASIN10_20570
152@ += 1
153@ = 1
goto @CASIN10_20620

:CASIN10_20570
if 
  42@ == 1
goto_if_false @CASIN10_20620
if 
  154@ == 0
goto_if_false @CASIN10_20620
Char.SetStayInSamePlace(120@, False)
154@ = 1

:CASIN10_20620
if 
  155@ == 0
goto_if_false @CASIN10_20725
if 
  Char.IsDead(121@)
goto_if_false @CASIN10_20675
152@ += 1
155@ = 1
goto @CASIN10_20725

:CASIN10_20675
if 
  42@ == 1
goto_if_false @CASIN10_20725
if 
  156@ == 0
goto_if_false @CASIN10_20725
Char.SetStayInSamePlace(121@, False)
156@ = 1

:CASIN10_20725
if 
  157@ == 0
goto_if_false @CASIN10_20830
if 
  Char.IsDead(122@)
goto_if_false @CASIN10_20780
152@ += 1
157@ = 1
goto @CASIN10_20830

:CASIN10_20780
if 
  42@ == 1
goto_if_false @CASIN10_20830
if 
  158@ == 0
goto_if_false @CASIN10_20830
Char.SetStayInSamePlace(122@, False)
158@ = 1

:CASIN10_20830
return 

//-------------Mission 93---------------
// Originally: Misappropriation

:VCRASH1
gosub @VCRASH1_36
if 
  has_deatharrest_been_executed 
goto_if_false @VCRASH1_27
gosub @VCRASH1_7873

:VCRASH1_27
gosub @VCRASH1_8041
terminate_this_script 

:VCRASH1_36
$onmission = 1
Stat.RegisterMissionGiven
script_name 'VCRASH1'
wait 0
Text.LoadMissionText('VCR1')
Player.MakeGangDisappear
Cutscene.Load('CRASHV1')

:VCRASH1_84
if 
  not Cutscene.HasLoaded
goto_if_false @VCRASH1_108
wait 0
goto @VCRASH1_84

:VCRASH1_108
Weather.ForceNow(WeatherType.ExtraSunnyVegas)
Cutscene.Start
World.ClearArea(1653.347, 2668.373, 10.8203, 10.0, False)
Camera.DoFade(1000, Fade.In)

:VCRASH1_145
if 
  not Cutscene.HasFinished
goto_if_false @VCRASH1_169
wait 0
goto @VCRASH1_145

:VCRASH1_169
Camera.DoFade(0, Fade.Out)

:VCRASH1_175
if 
  Camera.GetFadingStatus
goto_if_false @VCRASH1_199
wait 0
goto @VCRASH1_175

:VCRASH1_199
Cutscene.Clear

:VCRASH1_201
if 
  not Player.IsPlaying($player1)
goto_if_false @VCRASH1_228
wait 0
goto @VCRASH1_201

:VCRASH1_228
World.ClearArea(1599.09, 2667.725, 9.8203, 0.5, False)
Streaming.LoadScene(1599.09, 2667.725, 9.8203)
Char.SetCoordinates($scplayer, 1599.09, 2667.725, 9.8203)
Char.SetHeading($scplayer, 90.0)
Camera.SetBehindPlayer
Weather.Release
Player.MakeGangReappear
Camera.DoFade(1000, Fade.In)

:VCRASH1_312
if 
  Camera.GetFadingStatus
goto_if_false @VCRASH1_336
wait 0
goto @VCRASH1_312

:VCRASH1_336
Restart.SetRespawnPointForDurationOfMission(1599.09, 2667.725, 9.8203)
Text.PrintNow('VCR1__1', 15000, 1)
34@ = Blip.AddForCoord(-1306.191, 2532.48, 86.7332)
Blip.ChangeColor(34@, BlipColor.Red)
59@ = 0
60@ = 0
61@ = 0
49@ = 0

:VCRASH1_424
if 
  10 > 49@
goto_if_false @VCRASH1_467
62@(49@,10i) = 0
49@ += 1
goto @VCRASH1_424

:VCRASH1_467
36@ = 0
72@ = 0
73@ = 0
if 
  36@ == 1
goto_if_false @VCRASH1_525
106@ = Pickup.Create(#BRIEFCASE, PickupType.Once, 103@, 104@, 105@)

:VCRASH1_525
Char.SetRelationship($scplayer, RelationshipType.Hate, PedType.Mission1)
if 
  $played_casino4_before == 1
goto_if_false @VCRASH1_574
Skip.SetUp(-1346.614, 2304.482, 93.539, 4.8156)

:VCRASH1_574
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @VCRASH1_601
goto @VCRASH1_574

:VCRASH1_601
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @VCRASH1_623
goto @VCRASH1_7980

:VCRASH1_623
$game_timer = Clock.GetGameTimer()
if or
  Char.LocateAnyMeans3D($scplayer, 2511.364, 2388.914, 6.2421, 38.6, 26.4, 3.4, False)
  Char.LocateAnyMeans2D($scplayer, -1306.191, 2532.48, 200.0, 200.0, False)
goto_if_false @VCRASH1_710
Player.AlterWantedLevel($player1, 0)

:VCRASH1_710
if 
  36@ == 0
goto_if_false @VCRASH1_3167
if 
  Char.LocateAnyMeans2D($scplayer, -1306.191, 2532.48, 250.0, 250.0, False)
goto_if_false @VCRASH1_3167
44@ = 0
if 
  not Streaming.HasModelLoaded(487)
goto_if_false @VCRASH1_801
Streaming.RequestModel(487)
goto @VCRASH1_808

:VCRASH1_801
44@ += 1

:VCRASH1_808
if 
  not Streaming.HasModelLoaded(500)
goto_if_false @VCRASH1_836
Streaming.RequestModel(500)
goto @VCRASH1_843

:VCRASH1_836
44@ += 1

:VCRASH1_843
if 
  not Streaming.HasModelLoaded(490)
goto_if_false @VCRASH1_871
Streaming.RequestModel(490)
goto @VCRASH1_878

:VCRASH1_871
44@ += 1

:VCRASH1_878
if 
  not Streaming.HasModelLoaded(468)
goto_if_false @VCRASH1_906
Streaming.RequestModel(468)
goto @VCRASH1_913

:VCRASH1_906
44@ += 1

:VCRASH1_913
if 
  not Streaming.HasModelLoaded(402)
goto_if_false @VCRASH1_941
Streaming.RequestModel(402)
goto @VCRASH1_948

:VCRASH1_941
44@ += 1

:VCRASH1_948
if 
  not Streaming.HasModelLoaded(355)
goto_if_false @VCRASH1_976
Streaming.RequestModel(355)
goto @VCRASH1_983

:VCRASH1_976
44@ += 1

:VCRASH1_983
if 
  not Streaming.HasModelLoaded(286)
goto_if_false @VCRASH1_1011
Streaming.RequestModel(286)
goto @VCRASH1_1018

:VCRASH1_1011
44@ += 1

:VCRASH1_1018
if 
  not Streaming.HasModelLoaded(147)
goto_if_false @VCRASH1_1046
Streaming.RequestModel(147)
goto @VCRASH1_1053

:VCRASH1_1046
44@ += 1

:VCRASH1_1053
if 
  not Streaming.HasModelLoaded(352)
goto_if_false @VCRASH1_1081
Streaming.RequestModel(352)
goto @VCRASH1_1088

:VCRASH1_1081
44@ += 1

:VCRASH1_1088
if 
  not Streaming.HasCarRecordingBeenLoaded(114)
goto_if_false @VCRASH1_1114
Streaming.RequestCarRecording(114)
goto @VCRASH1_1121

:VCRASH1_1114
44@ += 1

:VCRASH1_1121
if 
  not Streaming.HasCarRecordingBeenLoaded(109)
goto_if_false @VCRASH1_1147
Streaming.RequestCarRecording(109)
goto @VCRASH1_1154

:VCRASH1_1147
44@ += 1

:VCRASH1_1154
if 
  44@ == 11
goto_if_false @VCRASH1_3167
$played_casino4_before = 1
74@ = Car.Create(487, -1325.514, 2559.87, 87.6329)
Car.SetHeading(74@, 90.0)
Car.LockDoors(74@, CarLock.LockoutPlayerOnly)
Car.SetHealth(74@, 50000)
Car.SetProofs(74@, True, True, True, True, True)
Car.StartPlayback(74@, 114)
Car.SetPlaybackSpeed(74@, 0.0)
Heli.SetBladesFullSpeed(74@)
75@ = Car.Create(487, -1343.22, 2538.337, 87.0107)
Car.SetHeading(75@, 10.304)
Car.SetProofs(75@, True, True, True, True, True)
Streaming.MarkModelAsNoLongerNeeded(487)
76@ = Car.Create(500, -1304.416, 2498.821, 87.0571)
Streaming.MarkModelAsNoLongerNeeded(500)
Car.SetHeading(76@, 240.0877)
77@ = Car.Create(490, -1291.948, 2497.782, 87.1105)
Streaming.MarkModelAsNoLongerNeeded(490)
Car.SetHeading(77@, 107.4866)
78@ = Car.Create(468, -1311.13, 2512.169, 86.7085)
Car.SetHeading(78@, 177.3181)
79@ = Car.Create(468, -1308.107, 2542.577, 87.4072)
Streaming.MarkModelAsNoLongerNeeded(468)
Car.SetHeading(79@, 179.8761)
80@ = Char.Create(PedType.Mission1, 147, -1312.009, 2549.6, 86.7332)
Char.SetHeading(80@, 259.3965)
Char.GiveWeapon(80@, WeaponType.MicroUzi, 9999)
Char.SetInformRespectedFriends(80@, 30.0, 5)
Blip.Remove(34@)
34@ = Blip.AddForChar(80@)
Char.SetOnlyDamagedByPlayer(80@, True)
Char.SetHealth(80@, 200)
90@ = DecisionMakerChar.Copy(-1)
DecisionMakerChar.ClearEventResponse(90@, 31)
Char.SetDecisionMaker(80@, 90@)
91@ = 0
81@ = Char.Create(PedType.Mission1, 286, -1302.715, 2534.374, 86.7332)
Char.SetHeading(81@, 183.0002)
Char.GiveWeapon(81@, WeaponType.Ak47, 9999)
Task.TogglePedThreatScanner(81@, False, False, True)
Char.SetInformRespectedFriends(81@, 30.0, 8)
Char.SetRelationship(81@, RelationshipType.Hate, PedType.Player1)
Char.SetSenseRange(81@, 70.0)
Char.SetKeepTask(81@, True)
82@ = Char.Create(PedType.Mission1, 286, -1325.868, 2525.353, 89.2044)
Char.SetHeading(82@, 226.106)
Char.GiveWeapon(82@, WeaponType.Ak47, 9999)
Task.TogglePedThreatScanner(82@, False, False, True)
Char.SetInformRespectedFriends(82@, 30.0, 8)
Char.SetRelationship(82@, RelationshipType.Hate, PedType.Player1)
Char.SetSenseRange(82@, 70.0)
Char.SetKeepTask(82@, True)
83@ = Char.Create(PedType.Mission1, 286, -1303.204, 2530.197, 86.6889)
Char.SetHeading(83@, 4.8042)
Char.GiveWeapon(83@, WeaponType.Ak47, 9999)
Task.TogglePedThreatScanner(83@, False, False, True)
Char.SetInformRespectedFriends(83@, 30.0, 8)
Char.SetRelationship(83@, RelationshipType.Hate, PedType.Player1)
Char.SetSenseRange(83@, 70.0)
Char.SetKeepTask(83@, True)
84@ = Char.Create(PedType.Mission1, 286, -1315.783, 2502.167, 88.8673)
Char.SetHeading(84@, 242.7848)
Char.GiveWeapon(84@, WeaponType.Ak47, 9999)
Task.TogglePedThreatScanner(84@, False, False, True)
Char.SetInformRespectedFriends(84@, 30.0, 8)
Char.SetRelationship(84@, RelationshipType.Hate, PedType.Player1)
Char.SetSenseRange(84@, 70.0)
Char.SetKeepTask(84@, True)
85@ = Char.Create(PedType.Mission1, 286, -1299.54, 2555.919, 86.5877)
Char.GiveWeapon(85@, WeaponType.Ak47, 9999)
Task.TogglePedThreatScanner(85@, False, False, True)
Char.SetInformRespectedFriends(85@, 30.0, 8)
Char.SetRelationship(85@, RelationshipType.Hate, PedType.Player1)
Char.SetSenseRange(85@, 70.0)
Char.SetKeepTask(85@, True)
Path.FlushRoute
Path.ExtendRoute(-1299.54, 2555.919, 86.5877)
Path.ExtendRoute(-1310.96, 2556.232, 86.7332)
Path.ExtendRoute(-1311.968, 2538.963, 86.7332)
Path.ExtendRoute(-1321.357, 2531.076, 86.6104)
Path.ExtendRoute(-1321.043, 2522.5, 86.285)
Path.ExtendRoute(-1314.539, 2513.364, 86.0349)
Path.ExtendRoute(-1309.208, 2508.24, 86.0349)
Path.ExtendRoute(-1296.686, 2524.012, 86.4456)
Task.FollowPointRoute(85@, 4, RouteMode.Loop)
86@ = Char.Create(PedType.Mission1, 286, -1328.974, 2533.529, 86.409)
Char.GiveWeapon(86@, WeaponType.Ak47, 9999)
Task.TogglePedThreatScanner(86@, False, False, True)
Char.SetInformRespectedFriends(86@, 30.0, 8)
Char.SetRelationship(86@, RelationshipType.Hate, PedType.Player1)
Char.SetSenseRange(86@, 70.0)
Char.SetKeepTask(86@, True)
Path.FlushRoute
Path.ExtendRoute(-1328.974, 2533.529, 86.409)
Path.ExtendRoute(-1329.293, 2521.88, 86.0349)
Path.ExtendRoute(-1309.195, 2521.418, 86.3435)
Path.ExtendRoute(-1308.755, 2535.446, 86.7332)
Task.FollowPointRoute(86@, 4, RouteMode.Loop)
87@ = Char.Create(PedType.Mission1, 286, -1288.024, 2516.431, 86.1473)
Char.GiveWeapon(87@, WeaponType.Ak47, 9999)
Task.TogglePedThreatScanner(87@, False, False, True)
Char.SetInformRespectedFriends(87@, 30.0, 8)
Char.SetRelationship(87@, RelationshipType.Hate, PedType.Player1)
Char.SetSenseRange(87@, 70.0)
Char.SetKeepTask(87@, True)
Path.FlushRoute
Path.ExtendRoute(-1288.024, 2516.431, 86.1473)
Path.ExtendRoute(-1287.43, 2508.769, 86.0176)
Path.ExtendRoute(-1295.208, 2506.548, 85.9726)
Path.ExtendRoute(-1310.584, 2517.543, 86.191)
Path.ExtendRoute(-1311.336, 2524.432, 86.4621)
Path.ExtendRoute(-1305.55, 2521.813, 86.359)
Path.ExtendRoute(-1300.198, 2521.183, 86.3342)
Path.ExtendRoute(-1296.416, 2525.185, 86.4917)
Task.FollowPointRoute(87@, 4, RouteMode.BackForward)
88@ = Char.Create(PedType.Mission1, 286, -1294.97, 2499.619, 85.9347)
Char.SetHeading(88@, 102.9169)
Char.GiveWeapon(88@, WeaponType.Ak47, 9999)
Task.TogglePedThreatScanner(88@, False, False, True)
Char.SetInformRespectedFriends(88@, 30.0, 8)
Char.SetRelationship(88@, RelationshipType.Hate, PedType.Player1)
Char.SetSenseRange(88@, 70.0)
Char.SetKeepTask(88@, True)
89@ = Char.Create(PedType.Mission1, 286, -1296.548, 2499.436, 85.9413)
Char.SetHeading(89@, 281.057)
Char.GiveWeapon(89@, WeaponType.Ak47, 9999)
Task.TogglePedThreatScanner(89@, False, False, True)
Task.ChatWithChar(88@, 89@, True, 1)
Task.ChatWithChar(89@, 88@, False, 1)
Char.SetInformRespectedFriends(89@, 30.0, 12)
Char.SetRelationship(89@, RelationshipType.Hate, PedType.Player1)
Char.SetSenseRange(89@, 70.0)
Char.SetKeepTask(89@, True)
92@ = Car.Create(402, 2077.761, 2420.901, 48.5234)
Car.SetHeading(92@, 90.0)
Car.StartPlayback(92@, 109)
Car.SetPlaybackSpeed(92@, 0.0)
Car.SetProofs(92@, True, True, True, True, True)
Car.SetHealth(92@, 50000)
Car.LockDoors(92@, CarLock.LockoutPlayerOnly)
93@ = Car.Create(402, 2077.761, 2416.901, 48.5234)
Car.SetHeading(93@, 90.0)
Car.SetHealth(93@, 1750)
Car.LockDoors(93@, CarLock.LockoutPlayerOnly)
94@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1324.902, 2554.654, 87.8548, MoveState.Sprint, -2)
Task.EnterCarAsDriver(-1, 74@, 20000)
Sequence.Close(94@)
95@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoToCoordWhileShooting(-1, 2112.607, 2422.873, 59.8223, 7, 1.0, 0.5, $scplayer)
Task.GoToCoordWhileShooting(-1, 2097.288, 2436.618, 59.8223, 7, 1.0, 0.5, $scplayer)
Task.GoToCoordWhileShooting(-1, 2096.757, 2440.394, 59.8151, 7, 1.0, 0.5, $scplayer)
Task.GoToCoordWhileShooting(-1, 2074.036, 2440.098, 48.5176, 7, 1.0, 0.5, $scplayer)
Task.GoToCoordWhileShooting(-1, 2078.0, 2427.004, 48.5244, 7, 1.0, 0.5, $scplayer)
Task.EnterCarAsDriver(-1, 92@, 20000)
Sequence.Close(95@)
36@ += 1

:VCRASH1_3167
if 
  72@ == 0
goto_if_false @VCRASH1_3253
if 
  62@(91@,10i) == 2
goto_if_false @VCRASH1_3253
Text.PrintNow('VCR1__7', 8000, 1)
CarGenerator.Switch($f1_blood_car_gen[7], 0)
set_lvar_int_to_var_int 37@ = $game_timer
37@ += 8000
72@ += 1

:VCRASH1_3253
if 
  72@ == 1
goto_if_false @VCRASH1_3401
if 
  1 > 61@
goto_if_false @VCRASH1_3401
if 
  is_int_var_greater_than_int_lvar $game_timer > 37@
goto_if_false @VCRASH1_3401
if 
  not Car.IsDead(75@)
goto_if_false @VCRASH1_3378
if 
  not Char.IsInAnyHeli($scplayer)
goto_if_false @VCRASH1_3378
Text.PrintNow('VCR1__9', 6000, 1)
35@ = Blip.AddForCar(75@)
Blip.SetAsFriendly(35@, True)
Blip.ChangeDisplay(34@, BlipDisplay.MarkerOnly)

:VCRASH1_3378
set_lvar_int_to_var_int 37@ = $game_timer
37@ += 6000
72@ += 1

:VCRASH1_3401
if 
  72@ == 2
goto_if_false @VCRASH1_3583
if 
  is_int_var_greater_than_int_lvar $game_timer > 37@
goto_if_false @VCRASH1_3583
if 
  Char.IsInAnyHeli($scplayer)
goto_if_false @VCRASH1_3551
Text.PrintNow('VCR1_10', 5000, 1)
if 
  not Car.IsDead(74@)
goto_if_false @VCRASH1_3501
Car.SetProofs(74@, False, False, False, False, False)

:VCRASH1_3501
if 
  not Car.IsDead(75@)
goto_if_false @VCRASH1_3532
Car.SetProofs(75@, False, False, False, False, False)

:VCRASH1_3532
Blip.ChangeDisplay(34@, BlipDisplay.Both)
Blip.Remove(35@)
72@ += 1

:VCRASH1_3551
if 
  Char.IsDead(80@(91@,10i))
goto_if_false @VCRASH1_3583
Blip.Remove(35@)
72@ += 1

:VCRASH1_3583
if 
  36@ > 0
goto_if_false @VCRASH1_6883
49@ = 0

:VCRASH1_3608
if 
  10 > 49@
goto_if_false @VCRASH1_6883
if 
  is_int_lvar_equal_to_int_lvar 49@ == 91@
goto_if_false @VCRASH1_6189
if 
  not Char.IsDead(80@(49@,10i))
goto_if_false @VCRASH1_5884
if 
  62@(91@,10i) == 0
goto_if_false @VCRASH1_3732
if 
  59@ > 0
goto_if_false @VCRASH1_3732
Char.PerformSequence(80@(91@,10i), 94@)
Game.SetArea51SamSite(False)
62@(91@,10i) += 1

:VCRASH1_3732
if 
  not Car.IsDead(74@)
goto_if_false @VCRASH1_4114
if 
  62@(91@,10i) == 1
goto_if_false @VCRASH1_3827
if 
  Char.IsInCar(80@(91@,10i), 74@)
goto_if_false @VCRASH1_3827
Car.SetHealth(74@, 1750)
Car.SetProofs(74@, False, False, False, False, False)
62@(91@,10i) += 1

:VCRASH1_3827
if 
  62@(91@,10i) == 2
goto_if_false @VCRASH1_4114
$x, $y, $z = Car.GetCoordinates(74@)
51@, 52@, 53@ = Char.GetCoordinates($scplayer)
$distance = Math.GetDistanceBetweenCoords2D($x, $y, 51@, 52@)
96@ = 7000.0
div_float_lvar_by_float_var 96@ /= $distance
96@ /= 100.0
if 
  96@ > 2.0
goto_if_false @VCRASH1_3953
96@ = 2.0

:VCRASH1_3953
if 
  0.3 > 96@
goto_if_false @VCRASH1_3984
96@ = 0.3

:VCRASH1_3984
Car.SetPlaybackSpeed(74@, 96@)
if 
  not Car.IsPlaybackGoingOn(74@)
goto_if_false @VCRASH1_4114
if 
  not Car.IsDead(93@)
goto_if_false @VCRASH1_4031
Car.LockDoors(93@, CarLock.Unlocked)

:VCRASH1_4031
Char.PerformSequence(80@(91@,10i), 95@)
Text.PrintNow('VCR1__8', 5000, 1)
Blip.Remove(35@)
Blip.ChangeDisplay(34@, BlipDisplay.Both)
Path.SwitchRoadsOff(2475.428, 2345.007, 2.7255, 2517.416, 2398.874, 12.369)
62@(91@,10i) += 1

:VCRASH1_4114
if 
  not Car.IsDead(92@)
goto_if_false @VCRASH1_4555
if 
  62@(91@,10i) == 3
goto_if_false @VCRASH1_4306
if 
  Char.IsInCar(80@(91@,10i), 92@)
goto_if_false @VCRASH1_4306
Car.SetHealth(92@, 1750)
Car.SetProofs(92@, False, False, False, False, False)
Car.MarkAsNoLongerNeeded(74@)
Car.MarkAsNoLongerNeeded(75@)
Car.MarkAsNoLongerNeeded(76@)
Car.MarkAsNoLongerNeeded(77@)
Car.MarkAsNoLongerNeeded(78@)
Car.MarkAsNoLongerNeeded(79@)
42@ = 0

:VCRASH1_4235
if 
  10 > 42@
goto_if_false @VCRASH1_4295
if 
  not is_int_lvar_equal_to_int_lvar 42@ == 91@
goto_if_false @VCRASH1_4281
Char.MarkAsNoLongerNeeded(80@(42@,10i))

:VCRASH1_4281
42@ += 1
goto @VCRASH1_4235

:VCRASH1_4295
62@(91@,10i) += 1

:VCRASH1_4306
if 
  62@(91@,10i) == 4
goto_if_false @VCRASH1_4555
if 
  Car.IsPlaybackGoingOn(92@)
goto_if_false @VCRASH1_4500
$x, $y, $z = Car.GetCoordinates(92@)
51@, 52@, 53@ = Char.GetCoordinates($scplayer)
$distance = Math.GetDistanceBetweenCoords3D($x, $y, $z, 51@, 52@, 53@)
96@ = 5000.0
div_float_lvar_by_float_var 96@ /= $distance
96@ /= 100.0
if 
  96@ > 1.1
goto_if_false @VCRASH1_4454
96@ = 1.1

:VCRASH1_4454
if 
  0.6 > 96@
goto_if_false @VCRASH1_4485
96@ = 0.6

:VCRASH1_4485
Car.SetPlaybackSpeed(92@, 96@)
goto @VCRASH1_4555

:VCRASH1_4500
Task.CarDriveToCoord(80@(91@,10i), -1, 2538.067, 2389.819, 3.22, 100.0, DriveMode.Normal, 1, DrivingMode.AvoidCars)
Car.SetStraightLineDistance(92@, 1)
62@(91@,10i) += 1

:VCRASH1_4555
if 
  62@(91@,10i) == 5
goto_if_false @VCRASH1_5588
if 
  Char.IsInAnyCar(80@(91@,10i))
goto_if_false @VCRASH1_5577
97@ = Char.StoreCarIsInNoSave(80@(91@,10i))
Car.SetDrivingStyle(97@, DrivingMode.AvoidCars)
Car.SetStraightLineDistance(97@, 1)
$x, $y, $z = Car.GetCoordinates(97@)
51@, 52@, 53@ = Char.GetCoordinates($scplayer)
$distance = Math.GetDistanceBetweenCoords2D($x, $y, 51@, 52@)
57@ = 3000.0
div_float_lvar_by_float_var 57@ /= $distance
if 
  Char.LocateInCar3D(80@(91@,10i), 2506.65, 2355.857, 10.8203, 29.9399, 15.57, 2.0, False)
goto_if_false @VCRASH1_4748
57@ = 20.0

:VCRASH1_4748
if 
  57@ > 100.0
goto_if_false @VCRASH1_4779
57@ = 100.0

:VCRASH1_4779
if 
  15.0 > 57@
goto_if_false @VCRASH1_4810
57@ = 15.0

:VCRASH1_4810
Car.SetCruiseSpeed(97@, 57@)
40@ = Car.GetHealth(97@)
if 
  251 > 40@
goto_if_false @VCRASH1_4910
Car.SetTempAction(97@, TempAction.HandbrakeTurnLeft, 5000)
$x, $y, $z = Char.GetCoordinates(80@(91@,10i))
Task.FleePoint(80@(91@,10i), $x, $y, $z, 15.0, 1500)
62@(91@,10i) += 1

:VCRASH1_4910
if and
  Car.IsUpsidedown(97@)
  Car.IsStopped(97@)
goto_if_false @VCRASH1_5170
if 
  Char.LocateAnyMeansCar2D($scplayer, 97@, 90.0, 90.0, False)
goto_if_false @VCRASH1_5031
Car.SetUpsidedownNotDamaged(97@, False)
$x, $y, $z = Char.GetCoordinates(80@(91@,10i))
Task.FleePoint(80@(91@,10i), $x, $y, $z, 15.0, 1500)
62@(91@,10i) += 1
goto @VCRASH1_5170

:VCRASH1_5031
if 
  not World.IsPointObscuredByAMissionEntity($x, $y, $z, 4.0, 4.0, 4.0)
goto_if_false @VCRASH1_5170
if 
  not Car.IsOnScreen(97@)
goto_if_false @VCRASH1_5170
$x, $y, $z = Car.GetCoordinates(97@)
$x, $y, $z, $heading = Path.GetClosestCarNodeWithHeading($x, $y, $z)
if 
  not Camera.IsPointOnScreen($x, $y, $z, 4.0)
goto_if_false @VCRASH1_5170
Car.SetCoordinates(97@, $x, $y, $z)
Car.SetHeading(97@, $heading)

:VCRASH1_5170
if 
  Car.Locate3D(97@, 98@, 99@, 100@, 4.0, 4.0, 4.0, False)
goto_if_false @VCRASH1_5477
if 
  is_int_var_greater_than_int_lvar $game_timer > 101@
goto_if_false @VCRASH1_5470
if 
  Char.LocateAnyMeansCar2D($scplayer, 97@, 90.0, 90.0, False)
goto_if_false @VCRASH1_5331
Car.SetUpsidedownNotDamaged(97@, False)
$x, $y, $z = Char.GetCoordinates(80@(91@,10i))
Task.FleePoint(80@(91@,10i), $x, $y, $z, 15.0, 500)
62@(91@,10i) += 1
goto @VCRASH1_5470

:VCRASH1_5331
if 
  not Car.IsOnScreen(97@)
goto_if_false @VCRASH1_5470
$x, $y, $z = Car.GetCoordinates(97@)
$x, $y, $z, $heading = Path.GetClosestCarNodeWithHeading($x, $y, $z)
if 
  not World.IsPointObscuredByAMissionEntity($x, $y, $z, 4.0, 4.0, 4.0)
goto_if_false @VCRASH1_5470
if 
  not Camera.IsPointOnScreen($x, $y, $z, 4.0)
goto_if_false @VCRASH1_5470
Car.SetCoordinates(97@, $x, $y, $z)
Car.SetHeading(97@, $heading)

:VCRASH1_5470
goto @VCRASH1_5507

:VCRASH1_5477
98@, 99@, 100@ = Car.GetCoordinates(97@)
set_lvar_int_to_var_int 101@ = $game_timer
101@ += 5000

:VCRASH1_5507
if 
  Char.LocateInCar3D(80@(91@,10i), 2538.067, 2389.819, 3.22, 5.0, 5.0, 2.0, False)
goto_if_false @VCRASH1_5570
62@(91@,10i) = 7

:VCRASH1_5570
goto @VCRASH1_5588

:VCRASH1_5577
62@(91@,10i) += 1

:VCRASH1_5588
if 
  62@(91@,10i) == 6
goto_if_false @VCRASH1_5733
$task_status = Char.GetScriptTaskStatus(80@(91@,10i), 1498)
102@ = Char.GetScriptTaskStatus(80@(91@,10i), 1489)
if or
  is_int_var_equal_to_constant $task_status == 7
  Char.IsInAnyCar(80@(91@,10i))
goto_if_false @VCRASH1_5733
if 
  is_int_lvar_equal_to_constant 102@ == 7
goto_if_false @VCRASH1_5733
Task.CarDriveToCoord(80@(91@,10i), -1, 2538.067, 2389.819, 3.22, 100.0, DriveMode.Normal, 1, DrivingMode.AvoidCars)
62@(91@,10i) -= 1

:VCRASH1_5733
if 
  Char.IsInAnyCar(80@(91@,10i))
goto_if_false @VCRASH1_5785
if 
  60@ == 0
goto_if_false @VCRASH1_5778
60@ = 1

:VCRASH1_5778
goto @VCRASH1_5810

:VCRASH1_5785
if 
  60@ == 1
goto_if_false @VCRASH1_5810
60@ = 0

:VCRASH1_5810
if 
  62@(91@,10i) == 7
goto_if_false @VCRASH1_5877
$task_status = Char.GetScriptTaskStatus(80@(91@,10i), 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCRASH1_5877
Task.KillCharOnFoot(80@(91@,10i), $scplayer)

:VCRASH1_5877
goto @VCRASH1_6182

:VCRASH1_5884
if 
  62@(91@,10i) == 2
goto_if_false @VCRASH1_5959
if 
  not Car.IsDead(74@)
goto_if_false @VCRASH1_5959
if 
  Car.IsPlaybackGoingOn(74@)
goto_if_false @VCRASH1_5943
Car.StopPlayback(74@)

:VCRASH1_5943
Heli.MakeComeCrashingDown(74@)
62@(91@,10i) = 90

:VCRASH1_5959
if 
  Char.DoesExist(80@(91@,10i))
goto_if_false @VCRASH1_6134
if 
  not Char.IsInWater(80@(91@,10i))
goto_if_false @VCRASH1_6104
if 
  61@ == 0
goto_if_false @VCRASH1_6097
Blip.Remove(34@)
103@, 104@, 105@ = World.GetDeadCharPickupCoords(80@(91@,10i))
106@ = Pickup.Create(#BRIEFCASE, PickupType.Once, 103@, 104@, 105@)
34@ = Blip.AddForPickup(106@)
Text.PrintNow('VCR1__3', 5000, 1)
60@ = 2
61@ = 1

:VCRASH1_6097
goto @VCRASH1_6127

:VCRASH1_6104
Text.PrintNow('VCR1__4', 5000, 1)
goto @VCRASH1_7873

:VCRASH1_6127
goto @VCRASH1_6157

:VCRASH1_6134
Text.PrintNow('VCR1__5', 5000, 1)
goto @VCRASH1_7873

:VCRASH1_6157
if 
  59@ == 0
goto_if_false @VCRASH1_6182
59@ = 1

:VCRASH1_6182
goto @VCRASH1_6765

:VCRASH1_6189
if 
  not Char.IsDead(80@(49@,10i))
goto_if_false @VCRASH1_6729
if 
  3 > 62@(91@,10i)
goto_if_false @VCRASH1_6722
if 
  62@(49@,10i) == 0
goto_if_false @VCRASH1_6463
if 
  73@ == 1
goto_if_false @VCRASH1_6316
$task_status = Char.GetScriptTaskStatus(80@(49@,10i), 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCRASH1_6316
Task.KillCharOnFoot(80@(49@,10i), $scplayer)

:VCRASH1_6316
if 
  2 > 62@(49@,10i)
goto_if_false @VCRASH1_6463
if 
  61@ == 1
goto_if_false @VCRASH1_6463
if 
  Char.LocateOnFoot2D(80@(49@,10i), 103@, 104@, 65.0, 65.0, False)
goto_if_false @VCRASH1_6463
Char.GiveWeapon(80@(49@,10i), WeaponType.MicroUzi, 9999)
Char.SetCurrentWeapon(80@(49@,10i), WeaponType.MicroUzi)
Task.GoToCoordWhileShooting(80@(49@,10i), 103@, 104@, 105@, 6, 1.0, 0.5, $scplayer)
62@(49@,10i) += 1

:VCRASH1_6463
if 
  62@(49@,10i) == 1
goto_if_false @VCRASH1_6722
if 
  61@ == 1
goto_if_false @VCRASH1_6711
$task_status = Char.GetScriptTaskStatus(80@(49@,10i), 1591)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCRASH1_6704
if 
  Char.LocateOnFoot2D(80@(49@,10i), 103@, 104@, 2.0, 2.0, False)
goto_if_false @VCRASH1_6704
Char.MarkAsNoLongerNeeded(80@(91@,10i))
80@(91@,10i) = -1
set_lvar_int_to_lvar_int 91@ = 49@
Blip.Remove(34@)
Pickup.Remove(106@)
34@ = Blip.AddForChar(80@(91@,10i))
Char.SetOnlyDamagedByPlayer(80@(91@,10i), True)
if 
  not Player.IsTargetingChar($player1, 80@(91@,10i))
goto_if_false @VCRASH1_6670
Char.SetHealth(80@(91@,10i), 200)

:VCRASH1_6670
62@(91@,10i) = 0
Text.PrintNow('VCR1__2', 5000, 1)
61@ = 0

:VCRASH1_6704
goto @VCRASH1_6722

:VCRASH1_6711
62@(49@,10i) -= 1

:VCRASH1_6722
goto @VCRASH1_6765

:VCRASH1_6729
Char.MarkAsNoLongerNeeded(80@(49@,10i))
if 
  59@ == 0
goto_if_false @VCRASH1_6765
Skip.Clear
59@ = 1

:VCRASH1_6765
if 
  59@ == 0
goto_if_false @VCRASH1_6869
if or
  Char.IsRespondingToEvent(80@(49@,10i), 36)
  Char.IsRespondingToEvent(80@(49@,10i), 12)
  Char.IsRespondingToEvent(80@(49@,10i), 15)
  Char.IsRespondingToEvent(80@(49@,10i), 11)
  Char.IsRespondingToEvent(80@(49@,10i), 49)
  Char.IsRespondingToEvent(80@(49@,10i), 30)
goto_if_false @VCRASH1_6869
Skip.Clear
59@ = 1

:VCRASH1_6869
49@ += 1
goto @VCRASH1_3608

:VCRASH1_6883
if 
  73@ == 0
goto_if_false @VCRASH1_6958
if 
  Char.LocateAnyMeans3D($scplayer, -1308.928, 2527.466, 92.816, 26.85, 38.6399, 8.9, False)
goto_if_false @VCRASH1_6958
Skip.Clear
73@ += 1

:VCRASH1_6958
if 
  59@ == 1
goto_if_false @VCRASH1_7001
Text.PrintNow('VCR1_11', 5000, 1)
Skip.Clear
59@ += 1

:VCRASH1_7001
if 
  36@ == 1
goto_if_false @VCRASH1_7541
if 
  62@(91@,10i) > 2
goto_if_false @VCRASH1_7541
if 
  Char.LocateAnyMeans3D($scplayer, 2511.364, 2388.914, 6.2421, 38.6, 26.4, 3.4, False)
goto_if_false @VCRASH1_7541
107@ = Car.Create(402, 2522.211, 2383.629, 4.0162)
Car.SetHeading(107@, 339.2576)
108@ = Car.Create(402, 2518.511, 2393.821, 4.0104)
Car.SetHeading(108@, 168.2849)
109@ = Car.Create(402, 2510.336, 2380.583, 4.0139)
Car.SetHeading(109@, 110.7153)
110@ = 2524.221
120@ = 2385.007
111@ = 2520.053
121@ = 2392.282
112@ = 2513.938
122@ = 2381.334
113@ = 2513.91
123@ = 2385.471
114@ = 2511.99
124@ = 2392.347
115@ = 2519.308
125@ = 2399.535
116@ = 2530.169
126@ = 2388.519
117@ = 2504.144
127@ = 2382.468
118@ = 2504.832
128@ = 2397.616
119@ = 2506.832
129@ = 2397.616
43@ = 0

:VCRASH1_7395
if 
  10 > 43@
goto_if_false @VCRASH1_7518
if 
  not is_int_lvar_equal_to_int_lvar 43@ == 91@
goto_if_false @VCRASH1_7504
80@(43@,10i) = Char.Create(PedType.Mission1, 286, 110@(43@,10f), 120@(43@,10f), 3.2262)
Char.SetHeading(80@(43@,10i), 91.4967)
Char.GiveWeapon(80@(43@,10i), WeaponType.MicroUzi, 9999)
Char.SetKeepTask(80@(43@,10i), True)

:VCRASH1_7504
43@ += 1
goto @VCRASH1_7395

:VCRASH1_7518
set_lvar_int_to_var_int 37@ = $game_timer
37@ += 3000
36@ += 1

:VCRASH1_7541
if 
  36@ == 2
goto_if_false @VCRASH1_7689
if 
  is_int_var_greater_than_int_lvar $game_timer > 37@
goto_if_false @VCRASH1_7689
43@ = 0

:VCRASH1_7585
if 
  10 > 43@
goto_if_false @VCRASH1_7666
if 
  not Char.IsDead(80@(43@,10i))
goto_if_false @VCRASH1_7652
Char.SetInformRespectedFriends(80@(43@,10i), 50.0, 8)
Char.SetRelationship(80@(43@,10i), RelationshipType.Hate, PedType.Player1)

:VCRASH1_7652
43@ += 1
goto @VCRASH1_7585

:VCRASH1_7666
set_lvar_int_to_var_int 37@ = $game_timer
37@ += 3000
36@ += 1

:VCRASH1_7689
if 
  36@ == 3
goto_if_false @VCRASH1_7804
if 
  is_int_var_greater_than_int_lvar $game_timer > 37@
goto_if_false @VCRASH1_7804
43@ = 0

:VCRASH1_7733
if 
  10 > 43@
goto_if_false @VCRASH1_7797
if 
  not Char.IsDead(80@(43@,10i))
goto_if_false @VCRASH1_7783
Task.KillCharOnFoot(80@(43@,10i), $scplayer)

:VCRASH1_7783
43@ += 1
goto @VCRASH1_7733

:VCRASH1_7797
36@ += 1

:VCRASH1_7804
if 
  61@ == 1
goto_if_false @VCRASH1_7866
if 
  Pickup.HasBeenCollected(106@)
goto_if_false @VCRASH1_7866
Blip.Remove(34@)
Text.PrintNow('VCR1__6', 5000, 1)
goto @VCRASH1_7980

:VCRASH1_7866
goto @VCRASH1_574

:VCRASH1_7873
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if 
  not Char.IsDead(80@(91@,10i))
goto_if_false @VCRASH1_7978
if 
  not Car.IsDead(74@)
goto_if_false @VCRASH1_7978
if 
  Char.IsInCar(80@(91@,10i), 74@)
goto_if_false @VCRASH1_7978
Heli.GotoCoords(74@, 0.0, 0.0, 0.0, 20.0, 40.0)

:VCRASH1_7978
return 

:VCRASH1_7980
$flag_vcrash_mission_counter += 1
Text.PrintBig('M_PASSD', 5000, TextStyle.Middle)
Player.AddScore($player1, 0)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.RegisterMissionPassed('VCRASH1')
Stat.PlayerMadeProgress(1)
Blip.Remove($vcrash_contact_blip)
return 

:VCRASH1_8041
Blip.Remove(34@)
Blip.Remove(35@)
Game.SetArea51SamSite(True)
Pickup.Remove(106@)
if 
  not Car.IsDead(75@)
goto_if_false @VCRASH1_8091
Car.SetProofs(75@, False, False, False, False, False)

:VCRASH1_8091
Path.SwitchRoadsOn(2475.428, 2345.007, 2.7255, 2517.416, 2398.874, 12.369)
if 
  $d5_pilot_licence_obtained == 1
goto_if_false @VCRASH1_8148
CarGenerator.Switch($f1_blood_car_gen[7], 101)

:VCRASH1_8148
Streaming.MarkModelAsNoLongerNeeded(487)
Streaming.MarkModelAsNoLongerNeeded(500)
Streaming.MarkModelAsNoLongerNeeded(490)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.MarkModelAsNoLongerNeeded(402)
Streaming.MarkModelAsNoLongerNeeded(355)
Streaming.MarkModelAsNoLongerNeeded(286)
Streaming.MarkModelAsNoLongerNeeded(147)
Streaming.MarkModelAsNoLongerNeeded(352)
if 
  Player.IsPlaying($player1)
goto_if_false @VCRASH1_8218
Char.ClearRelationship($scplayer, RelationshipType.Hate, PedType.Mission1)

:VCRASH1_8218
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 94---------------
// Originally: High Noon

:VCR2
gosub @VCR2_36
if 
  has_deatharrest_been_executed 
goto_if_false @VCR2_27
gosub @VCR2_4984

:VCR2_27
gosub @VCR2_5070
terminate_this_script 

:VCR2_36
$onmission = 1
Stat.RegisterMissionGiven
script_name 'VCR2'
wait 0
Text.LoadMissionText('VCR2')
Player.MakeGangDisappear
Cutscene.Load('CRASV2A')

:VCR2_84
if 
  not Cutscene.HasLoaded
goto_if_false @VCR2_108
wait 0
goto @VCR2_84

:VCR2_108
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
World.ClearArea(-359.5421, 2225.525, 42.4562, 30.9, False)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:VCR2_145
if 
  not Cutscene.HasFinished
goto_if_false @VCR2_169
wait 0
goto @VCR2_145

:VCR2_169
Camera.DoFade(0, Fade.Out)

:VCR2_175
if 
  Camera.GetFadingStatus
goto_if_false @VCR2_199
wait 0
goto @VCR2_175

:VCR2_199
Cutscene.Clear
if 
  not Cutscene.WasSkipped
goto_if_false @VCR2_342
Cutscene.Load('CRASV2B')

:VCR2_225
if 
  not Cutscene.HasLoaded
goto_if_false @VCR2_249
wait 0
goto @VCR2_225

:VCR2_249
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
World.ClearArea(-359.5421, 2225.525, 42.4562, 30.9, False)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:VCR2_286
if 
  not Cutscene.HasFinished
goto_if_false @VCR2_310
wait 0
goto @VCR2_286

:VCR2_310
Camera.DoFade(0, Fade.Out)

:VCR2_316
if 
  Camera.GetFadingStatus
goto_if_false @VCR2_340
wait 0
goto @VCR2_316

:VCR2_340
Cutscene.Clear

:VCR2_342
Streaming.LoadSpecialCharacter(1, 'PULASKI')
Streaming.RequestModel(568)
Streaming.RequestModel(402)
Streaming.RequestModel(348)
Streaming.LoadAllModelsNow

:VCR2_372
if or
  not Streaming.HasModelLoaded(568)
  not Streaming.HasModelLoaded(402)
  not Streaming.HasModelLoaded(348)
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @VCR2_413
wait 0
goto @VCR2_372

:VCR2_413
set_lvar_text_label 48@s = 'VCR2_AA'
set_lvar_text_label 50@s = 'VCR2_AB'
set_lvar_text_label 52@s = 'VCR2_AC'
set_lvar_text_label 54@s = 'VCR2_AD'
set_lvar_text_label 56@s = 'VCR2_AE'
set_lvar_text_label 58@s = 'VCR2_BA'
set_lvar_text_label 60@s = 'VCR2_BB'
set_lvar_text_label 62@s = 'VCR2_BC'
set_lvar_text_label 64@s = 'VCR2_BE'
set_lvar_text_label 66@s = 'VCR2_BF'
set_lvar_text_label 68@s = 'VCR2_BG'
set_lvar_text_label 70@s = 'VCR2_BH'
set_lvar_text_label 72@s = 'VCR2_BJ'
set_lvar_text_label 74@s = 'VCR2_CA'
set_lvar_text_label 76@s = 'VCR2_CB'
set_lvar_text_label 78@s = 'VCR2_CC'
set_lvar_text_label 80@s = 'VCR2_CD'
set_lvar_text_label 82@s = 'VCR2_CE'
set_lvar_text_label 84@s = 'VCR2_CF'
set_lvar_text_label 86@s = 'VCR2_CG'
set_lvar_int_to_constant 88@ = 21000
set_lvar_int_to_constant 89@ = 21008
set_lvar_int_to_constant 90@ = 21009
set_lvar_int_to_constant 91@ = 21010
set_lvar_int_to_constant 92@ = 21011
set_lvar_int_to_constant 93@ = 21012
set_lvar_int_to_constant 94@ = 21013
set_lvar_int_to_constant 95@ = 21014
set_lvar_int_to_constant 96@ = 21015
set_lvar_int_to_constant 97@ = 21001
set_lvar_int_to_constant 98@ = 21002
set_lvar_int_to_constant 99@ = 21016
set_lvar_int_to_constant 100@ = 21017
set_lvar_int_to_constant 101@ = 21018
set_lvar_int_to_constant 102@ = 21019
set_lvar_int_to_constant 103@ = 21003
set_lvar_int_to_constant 104@ = 21020
set_lvar_int_to_constant 105@ = 21021
set_lvar_int_to_constant 106@ = 21004
set_lvar_int_to_constant 107@ = 21022
109@ = 0
110@ = 1
$game_timer = Clock.GetGameTimer()
set_lvar_int_to_var_int 111@ = $game_timer
111@ += 6000
Car.CustomPlateForNextCar(402, "PULASKI")
112@ = Car.Create(402, -371.0292, 2209.82, 41.4921)
Car.SetHeading(112@, 159.2268)
Car.ChangeColor(112@, 8, 0)
Car.SetPetrolTankWeakpoint(112@, False)
Car.SetOnlyDamagedByPlayer(112@, True)
Car.SetCanGoAgainstTraffic(112@, True)
Car.SetProofs(112@, True, True, True, True, True)
Car.SetHealth(112@, 2250)
113@ = Char.Create(PedType.Mission1, 290, -335.4141, 2218.942, 41.4921)
Char.SetRelationship($scplayer, RelationshipType.Hate, PedType.Mission1)
Char.SetHeading(113@, 104.108)
Char.SetOnlyDamagedByPlayer(113@, True)
Char.SetMaxHealth(113@, 500)
Char.SetHealth(113@, 500)
Char.SetSuffersCriticalHits(113@, False)
Char.SetUsesUpperbodyDamageAnimsOnly(113@, True)
Char.SetAccuracy(113@, 80)
Char.SetProofs(113@, True, True, True, False, False)
37@ = Sequence.Open()
Task.GoStraightToCoord(-1, -346.4254, 2216.427, 41.4921, MoveState.Run, -2)
Task.EnterCarAsDriver(-1, 112@, -2)
Task.CarDriveToCoord(-1, 112@, -472.778, 1958.194, 83.5515, 40.0, DriveMode.Normal, 1, DrivingMode.AvoidCars)
Sequence.Close(37@)
Char.PerformSequence(113@, 37@)
Sequence.Clear(37@)
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.SetEveryoneIgnorePlayer($player1, True)
wait 0
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
Camera.SetFixedPosition(-341.3325, 2213.11, 42.837, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-340.718, 2213.898, 42.8258, SwitchType.JumpCut)
Streaming.LoadSceneInDirection(-341.3325, 2213.11, 42.837, 327.4725)
Char.ClearTasksImmediately($scplayer)
World.ClearArea(-334.1724, 2214.62, 40.4911, 30.0, False)
Streaming.LoadScene(-334.1724, 2214.62, 40.4911)
Char.SetCoordinates($scplayer, -334.1724, 2214.62, 40.4911)
Char.SetHeading($scplayer, 232.082)
Camera.SetBehindPlayer
114@ = Car.Create(568, -342.2552, 2221.39, 41.4911)
Car.SetHeading(114@, 168.7771)
Camera.DoFade(500, Fade.In)
$game_timer = Clock.GetGameTimer()
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 1500
47@ = 0
115@ = 0
Weather.Release

:VCR2_1440
wait 0
$game_timer = Clock.GetGameTimer()
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @VCR2_1471
goto @VCR2_5002

:VCR2_1471
if 
  Char.IsDead(113@)
goto_if_false @VCR2_1528
if 
  9 > 47@
goto_if_false @VCR2_1528
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 2000
47@ = 9

:VCR2_1528
if 
  47@ == 0
goto_if_false @VCR2_1613
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_1613
Task.GoStraightToCoord($scplayer, -337.9653, 2218.594, 41.4911, MoveState.Run, 2000)
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 1500
47@ += 1

:VCR2_1613
if 
  47@ == 1
goto_if_false @VCR2_1792
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_1792
Char.SetCoordinates($scplayer, -337.9653, 2218.594, 41.4911)
Char.SetHeading($scplayer, 90.0)
Char.SetCoordinates(113@, -359.3949, 2213.404, 41.4911)
Char.SetHeading(113@, 90.0)
Player.SetControl($player1, True)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
34@ = Blip.AddForChar(113@)
Text.PrintNow('VCR2__1', 15000, 1)
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 26000
47@ += 1

:VCR2_1792
if 
  47@ == 2
goto_if_false @VCR2_1979
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_1979
Task.CarDriveWander(113@, -1, 40.0, DrivingMode.AvoidCars)
Char.GiveWeapon(113@, WeaponType.DesertEagle, 9999)
Char.SetRelationship(113@, RelationshipType.Hate, PedType.Player1)
Char.SetProofs(113@, False, True, True, False, False)
if 
  115@ == 0
goto_if_false @VCR2_1954
if 
  not Car.IsDead(112@)
goto_if_false @VCR2_1947
Car.SetProofs(112@, False, False, False, False, False)
StuckCarCheck.AddWithWarp(112@, 4.0, 4000, True, True, False, -1)

:VCR2_1947
115@ = 1

:VCR2_1954
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 240000
47@ += 1

:VCR2_1979
if 
  47@ == 3
goto_if_false @VCR2_2742
if 
  Char.LocateAnyMeans2D(113@, 184.0797, 1715.949, 40.6, 1108.668, False)
goto_if_false @VCR2_2120
$task_status = Char.GetScriptTaskStatus(113@, 1489)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCR2_2120
Task.CarDriveToCoord(113@, -1, -2466.309, 2244.328, 3.8078, 40.0, DriveMode.Normal, 1, DrivingMode.AvoidCars)
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 10000
47@ = 2

:VCR2_2120
if 
  Char.LocateAnyMeans2D(113@, -2747.482, 2334.301, 36.34, 5.86, False)
goto_if_false @VCR2_2243
$task_status = Char.GetScriptTaskStatus(113@, 1489)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCR2_2243
Task.CarDriveToCoord(113@, -1, -1446.225, 2670.991, 54.9682, 40.0, DriveMode.Normal, 1, DrivingMode.AvoidCars)
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 10000
47@ = 2

:VCR2_2243
if 
  Char.LocateAnyMeansChar2D($scplayer, 113@, 200.0, 200.0, False)
goto_if_false @VCR2_2335
set_lvar_int_to_var_int 116@ = $game_timer
116@ += 8000
if 
  not Blip.DoesExist(34@)
goto_if_false @VCR2_2328
Task.CarDriveWander(113@, -1, 50.0, DrivingMode.AvoidCars)
34@ = Blip.AddForChar(113@)

:VCR2_2328
goto @VCR2_2428

:VCR2_2335
if 
  Blip.DoesExist(34@)
goto_if_false @VCR2_2386
Task.CarDriveWander(113@, -1, 28.0, DrivingMode.AvoidCars)
Text.PrintNow('VCR2__2', 5000, 1)
Blip.Remove(34@)

:VCR2_2386
if 
  is_int_var_greater_than_int_lvar $game_timer > 116@
goto_if_false @VCR2_2428
Text.PrintNow('VCR2__3', 5000, 1)
goto @VCR2_4984

:VCR2_2428
if 
  20 > 109@
goto_if_false @VCR2_2655
if 
  Char.LocateAnyMeansChar2D($scplayer, 113@, 30.0, 30.0, False)
goto_if_false @VCR2_2655
if 
  is_int_var_greater_than_int_lvar $game_timer > 111@
goto_if_false @VCR2_2655
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_2655
set_var_text_label s$audio_string = 48@(109@,20s)
set_var_int_to_lvar_int $audio_sound_file = 88@(109@,21i)
start_new_script @AUDIOL -1 0 1 110@ 109@ 
if 
  110@ == 1
goto_if_false @VCR2_2590
110@ = 2
goto @VCR2_2597

:VCR2_2590
110@ = 1

:VCR2_2597
set_lvar_int_to_var_int 111@ = $game_timer
111@ += 500
109@ += 1
if 
  20 > 109@
goto_if_false @VCR2_2655
Audio.ClearMissionAudio(110@)
Audio.LoadMissionAudio(110@, 88@(109@,21i))

:VCR2_2655
if 
  not Char.IsInAnyCar(113@)
goto_if_false @VCR2_2742
if 
  Char.LocateAnyMeansChar2D($scplayer, 113@, 20.0, 20.0, False)
goto_if_false @VCR2_2742
$task_status = Char.GetScriptTaskStatus(113@, 1957)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCR2_2742
Task.KillCharOnFootTimed(113@, $scplayer, 4000)

:VCR2_2742
if 
  47@ == 9
goto_if_false @VCR2_2823
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_2823
if 
  Char.IsInWater(113@)
goto_if_false @VCR2_2809
goto @VCR2_5002
goto @VCR2_2823

:VCR2_2809
Camera.DoFade(500, Fade.Out)
47@ += 1

:VCR2_2823
if 
  47@ == 10
goto_if_false @VCR2_3005
Streaming.RequestAnimation("SWAT")
if 
  not Camera.GetFadingStatus
goto_if_false @VCR2_3005
Char.ClearTasksImmediately($scplayer)
Car.Delete(112@)
$x, $y, $z = Char.GetCoordinatesOfDied(113@)
Char.Delete(113@)
$x, $y, $z = Path.GetClosestCarNode($x, $y, $z)
World.ClearArea($x, $y, $z, 100.0, True)
Car.CustomPlateForNextCar(402, "PULASKI")
112@ = Car.Create(402, $x, $y, $z)
Car.ChangeColor(112@, 8, 0)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 100
47@ += 1

:VCR2_3005
if 
  47@ == 11
goto_if_false @VCR2_3607
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_3607
if 
  Streaming.HasAnimationLoaded("SWAT")
goto_if_false @VCR2_3607
if 
  Car.IsDead(112@)
goto_if_false @VCR2_3091
Camera.DoFade(500, Fade.In)
goto @VCR2_5002

:VCR2_3091
$x, $y, $z = Car.GetOffsetInWorldCoords(112@, 1.6, -1.0, 0.0)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
117@ = Char.Create(PedType.Mission1, 290, $x, $y, $z)
$heading = Car.GetHeading(112@)
$heading += -90.0
Char.SetHeading(117@, $heading)
Char.SetBleeding(117@, True)
Task.PlayAnimNonInterruptable(117@, "GNSTWALL_INJURD", "SWAT", 9999.0, True, False, False, False, -1)
$x, $y, $z = Car.GetOffsetInWorldCoords(112@, 3.0, -1.0, 0.0)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, $x, $y, $z)
$heading = Car.GetHeading(112@)
$heading += 90.0
Char.SetHeading($scplayer, $heading)
$x, $y, $z = Car.GetOffsetInWorldCoords(112@, 3.3455, -1.6234, 1.1443)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Car.GetOffsetInWorldCoords(112@, 2.5461, -1.3539, 0.6073)
Camera.PointAtChar(117@, CameraMode.Fixed, SwitchType.JumpCut)
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
$x, $y, $z = Car.GetOffsetInWorldCoords(112@, 1.2837, -0.8452, -0.2859)
Task.LookAtCoord($scplayer, $x, $y, $z, 20000)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21005)
Camera.DoFade(500, Fade.In)
if 
  not Car.IsDead(114@)
goto_if_false @VCR2_3579
$x, $y, $z = Car.GetCoordinates(112@)
if 
  Car.Locate2D(114@, $x, $y, 6.0, 6.0, False)
goto_if_false @VCR2_3572
Car.Delete(114@)

:VCR2_3572
goto @VCR2_3584

:VCR2_3579
Car.Delete(114@)

:VCR2_3584
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 400
47@ += 1

:VCR2_3607
if 
  47@ == 12
goto_if_false @VCR2_3793
if 
  not Camera.GetFadingStatus
goto_if_false @VCR2_3793
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_3793
set_var_text_label s$audio_string = 'VCR2_DA'
set_var_int_to_constant $audio_sound_file = 21005
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 21023)
if 
  not Car.IsDead(112@)
goto_if_false @VCR2_3770
$x, $y, $z = Car.GetOffsetInWorldCoords(112@, 1.2837, -0.8452, -0.2859)
Task.LookAtCoord($scplayer, $x, $y, $z, 20000)

:VCR2_3770
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 500
47@ += 1

:VCR2_3793
if 
  47@ == 13
goto_if_false @VCR2_3985
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_3985
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_3985
set_var_text_label s$audio_string = 'VCR2_DB'
set_var_int_to_constant $audio_sound_file = 21023
start_new_script @AUDIOL 117@ 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21006)
if 
  not Car.IsDead(112@)
goto_if_false @VCR2_3962
$x, $y, $z = Car.GetOffsetInWorldCoords(112@, 1.2837, -0.8452, -0.2859)
Task.LookAtCoord($scplayer, $x, $y, $z, 20000)

:VCR2_3962
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 500
47@ += 1

:VCR2_3985
if 
  47@ == 14
goto_if_false @VCR2_4177
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_4177
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_4177
set_var_text_label s$audio_string = 'VCR2_DC'
set_var_int_to_constant $audio_sound_file = 21006
start_new_script @AUDIOL $scplayer 0 1 1 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 21024)
if 
  not Car.IsDead(112@)
goto_if_false @VCR2_4154
$x, $y, $z = Car.GetOffsetInWorldCoords(112@, 1.2837, -0.8452, -0.2859)
Task.LookAtCoord($scplayer, $x, $y, $z, 20000)

:VCR2_4154
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 500
47@ += 1

:VCR2_4177
if 
  47@ == 15
goto_if_false @VCR2_4369
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_4369
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_4369
set_var_text_label s$audio_string = 'VCR2_DD'
set_var_int_to_constant $audio_sound_file = 21024
start_new_script @AUDIOL 117@ 0 1 2 1 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21007)
if 
  not Car.IsDead(112@)
goto_if_false @VCR2_4346
$x, $y, $z = Car.GetOffsetInWorldCoords(112@, 1.2837, -0.8452, -0.2859)
Task.LookAtCoord($scplayer, $x, $y, $z, 20000)

:VCR2_4346
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 500
47@ += 1

:VCR2_4369
if 
  47@ == 16
goto_if_false @VCR2_4625
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_4625
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_4625
set_var_text_label s$audio_string = 'VCR2_DE'
set_var_int_to_constant $audio_sound_file = 21007
start_new_script @AUDIOL $scplayer 0 1 1 1 
Camera.SetNearClip(0.1)
if 
  not Car.IsDead(112@)
goto_if_false @VCR2_4602
$x, $y, $z = Car.GetOffsetInWorldCoords(112@, 1.2837, -0.8452, -0.2859)
Task.LookAtCoord($scplayer, $x, $y, $z, 20000)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Car.GetOffsetInWorldCoords(112@, 2.1414, -0.908, 0.2244)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:VCR2_4602
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 500
47@ += 1

:VCR2_4625
if 
  47@ == 17
goto_if_false @VCR2_4722
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_4722
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_4722
Task.PlayAnim($scplayer, "FIGHTA_G", "PED", 4.0, False, False, False, False, -1)
47@ += 1

:VCR2_4722
if 
  47@ == 18
goto_if_false @VCR2_4879
if 
  Char.IsPlayingAnim($scplayer, "FIGHTA_G")
goto_if_false @VCR2_4879
118@ = Char.GetAnimCurrentTime($scplayer, "FIGHTA_G")
if 
  118@ > 0.351
goto_if_false @VCR2_4879
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1136)
Audio.SetMusicDoesFade(False)
Camera.DoFade(0, Fade.Out)
if 
  not Char.IsDead(117@)
goto_if_false @VCR2_4856
Task.Die(117@)

:VCR2_4856
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 1000
47@ += 1

:VCR2_4879
if 
  47@ == 19
goto_if_false @VCR2_4977
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_4977
Camera.DoFade(500, Fade.In)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Player.SetControl($player1, True)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
goto @VCR2_5002

:VCR2_4977
goto @VCR2_1440

:VCR2_4984
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:VCR2_5002
Text.PrintBig('M_PASSD', 5000, TextStyle.Middle)
Player.AddScore($player1, 0)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.RegisterMissionPassed('VCRASH2')
Stat.PlayerMadeProgress(1)
Blip.Remove($vcrash_contact_blip)
Stat.SetInt(StatId.PassedVcrash2, 1)
$flag_vcrash_mission_counter += 1
return 

:VCR2_5070
Blip.Remove(34@)
$timer_mobile_start = Clock.GetGameTimer()
Streaming.UnloadSpecialCharacter(1)
Streaming.MarkModelAsNoLongerNeeded(568)
Streaming.MarkModelAsNoLongerNeeded(402)
Streaming.MarkModelAsNoLongerNeeded(348)
if 
  Player.IsPlaying($player1)
goto_if_false @VCR2_5124
Char.ClearRelationship($scplayer, RelationshipType.Hate, PedType.Mission1)

:VCR2_5124
Streaming.RemoveAnimation("SWAT")
$onmission = 0
Mission.Finish
return 

//-------------Mission 95---------------
// Originally: Madd Dogg

:DOC2
script_name 'DOC2'
gosub @DOC2_47
if 
  has_deatharrest_been_executed 
goto_if_false @DOC2_38
gosub @DOC2_13066

:DOC2_38
gosub @DOC2_13777
terminate_this_script 

:DOC2_47
131@ = 0
$d2_rnd = 40
$d2_instance_health = 0
$7795 = 0
$doc2_heal = 0
$doc2_rnd = 0
99@ = DecisionMakerChar.Load(DecisionMakerType.Weak)
Camera.SetFadingColor(0, 0, 0)
Stat.RegisterMissionGiven
$onmission = 1
Text.LoadMissionText('DOC2')
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:DOC2_137
if 
  Camera.GetFadingStatus
goto_if_false @DOC2_161
wait 0
goto @DOC2_137

:DOC2_161
Cutscene.Load('DOC_2')

:DOC2_172
if 
  not Cutscene.HasLoaded
goto_if_false @DOC2_196
wait 0
goto @DOC2_172

:DOC2_196
World.ClearArea(2159.899, 1443.042, 9.8203, 40.0, True)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:DOC2_229
if 
  not Cutscene.HasFinished
goto_if_false @DOC2_253
wait 0
goto @DOC2_229

:DOC2_253
Player.SetControl($player1, False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)

:DOC2_274
if 
  Camera.GetFadingStatus
goto_if_false @DOC2_298
wait 0
goto @DOC2_274

:DOC2_298
Cutscene.Clear
Streaming.RequestModel(83)
Streaming.RequestModel(85)
Streaming.RequestModel(78)
Streaming.RequestModel(68)
Streaming.RequestModel(330)
Streaming.RequestModel(258)
Streaming.RequestModel(259)
Streaming.RequestAnimation("ON_LOOKERS")
Streaming.LoadSpecialCharacter(1, 'MADDOGG')

:DOC2_358
if or
  not Streaming.HasModelLoaded(83)
  not Streaming.HasModelLoaded(85)
  not Streaming.HasModelLoaded(78)
goto_if_false @DOC2_392
wait 0
goto @DOC2_358

:DOC2_392
if or
  not Streaming.HasModelLoaded(68)
  not Streaming.HasModelLoaded(330)
  not Streaming.HasModelLoaded(258)
goto_if_false @DOC2_428
wait 0
goto @DOC2_392

:DOC2_428
if or
  not Streaming.HasModelLoaded(259)
  not Streaming.HasAnimationLoaded("ON_LOOKERS")
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @DOC2_473
wait 0
goto @DOC2_428

:DOC2_473
Path.SwitchRoadsOff(2090.981, 1388.51, 8.8203, 2234.686, 1517.077, 10.8203)
Path.SwitchPedRoadsOff(2090.981, 1388.51, 8.8203, 2234.686, 1517.077, 10.8203)
105@ = 2163.638
106@ = 1443.663
107@ = 9.8203
World.SetCarDensityMultiplier(0.0)
World.ClearArea(2161.34, 1442.504, 9.8203, 20.0, True)
World.ClearArea(2107.19, 1409.153, 9.8203, 10.0, True)
95@ = Char.Create(PedType.CivMale, 290, 2162.62, 1451.475, 23.1719)
Char.SetAnimGroup(95@, "DRUNKMAN")
Char.SetHeading(95@, 180.0)
Char.SetHealth(95@, 1)
73@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2154.192, 1437.948, 9.8203, MoveState.Walk, 8000)
Task.TurnCharToFaceChar(-1, 95@)
Task.PlayAnim(-1, "LKAROUND_IN", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "LKAROUND_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "LKAROUND_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "LKAROUND_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "LKAROUND_OUT", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Sequence.SetToRepeat(73@, True)
Sequence.Close(73@)
74@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2164.596, 1435.169, 9.8203, MoveState.Walk, 8000)
Task.TurnCharToFaceChar(-1, 95@)
Task.PlayAnim(-1, "POINTUP_IN", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "POINTUP_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "POINTUP_SHOUT", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "POINTUP_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "POINTUP_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Sequence.SetToRepeat(74@, True)
Sequence.Close(74@)
75@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2160.696, 1435.38, 9.8203, MoveState.Walk, 8000)
Task.TurnCharToFaceChar(-1, 95@)
Task.Pause(-1, 100)
Task.PlayAnim(-1, "POINTUP_IN", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "POINTUP_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "POINTUP_SHOUT", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "POINTUP_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "POINTUP_OUT", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Sequence.SetToRepeat(75@, True)
Sequence.Close(75@)
76@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2169.263, 1435.927, 9.8203, MoveState.Walk, 8000)
Task.TurnCharToFaceChar(-1, 95@)
Task.PlayAnim(-1, "SHOUT_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SHOUT_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SHOUT_02", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SHOUT_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SHOUT_01", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Sequence.SetToRepeat(76@, True)
Sequence.Close(76@)
77@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2155.42, 1436.42, 9.8203, MoveState.Walk, 8000)
Task.TurnCharToFaceChar(-1, 95@)
Task.Pause(-1, 500)
Task.PlayAnim(-1, "SHOUT_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SHOUT_01", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SHOUT_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SHOUT_01", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SHOUT_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Sequence.SetToRepeat(77@, True)
Sequence.Close(77@)
78@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2168.29, 1436.191, 9.8203, MoveState.Walk, 8000)
Task.TurnCharToFaceChar(-1, 95@)
Task.PlayAnim(-1, "SHOUT_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SHOUT_02", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SHOUT_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SHOUT_01", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "SHOUT_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Sequence.SetToRepeat(78@, True)
Sequence.Close(78@)
79@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2159.253, 1435.312, 9.8203, MoveState.Walk, 8000)
Task.TurnCharToFaceChar(-1, 95@)
Task.Pause(-1, 500)
Task.PlayAnim(-1, "LKUP_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "LKUP_POINT", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "LKUP_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "LKUP_POINT", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.PlayAnim(-1, "LKUP_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Sequence.SetToRepeat(79@, True)
Sequence.Close(79@)
96@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2165.651, 1452.0, 23.1721, MoveState.Walk, 8000)
Task.GoStraightToCoord(-1, 2160.56, 1452.0, 23.1719, MoveState.Walk, 8000)
Sequence.SetToRepeat(96@, True)
Sequence.Close(96@)
97@ = Sequence.Open()
Task.Jump(-1, False)
Sequence.Close(97@)
98@ = Sequence.Open()
Task.Duck(-1, -1)
Sequence.SetToRepeat(98@, True)
Sequence.Close(98@)
116@ = Sequence.Open()
Task.PlayAnim(-1, "LKAROUND_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Sequence.SetToRepeat(116@, True)
Sequence.Close(116@)
110@ = Sequence.Open()
Task.PlayAnim(-1, "WAVE_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.WanderStandard(-1)
Sequence.Close(110@)
111@ = Sequence.Open()
Task.PlayAnim(-1, "SHOUT_LOOP", "ON_LOOKERS", 1.0, False, False, False, False, -1)
Task.WanderStandard(-1)
Sequence.Close(111@)
100@ = Object.CreateNoOffset(#SMASH_BOX_STAY, 2156.719, 1482.352, 19.1794)
101@ = Object.CreateNoOffset(#SMASH_BOX_BRK, 2156.719, 1482.352, 19.1794)
$7795 = 100
Char.SetNeverTargeted(95@, True)
92@ = Blip.AddForCoord(105@, 106@, 107@)
93@ = Blip.AddForCoord(1878.546, 2240.82, 9.813)
Blip.ChangeDisplay(92@, BlipDisplay.Neither)
Blip.ChangeDisplay(93@, BlipDisplay.Neither)
$doc2_heal = Math.RandomIntInRange(0, 5)
switch_start $doc2_heal {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @DOC2_3089 {caseNum1} 0 {caseLabel1} @DOC2_3014 {caseNum2} 1 {caseLabel2} @DOC2_3029 {caseNum3} 2 {caseLabel3} @DOC2_3044 {caseNum4} 3 {caseLabel4} @DOC2_3059 {caseNum5} 4 {caseLabel5} @DOC2_3074 {caseNum6} -1 {caseLabel6} @DOC2_3089 {caseNum7} -1 {caseLabel7} @DOC2_3089

:DOC2_3014
$doc2_heal = 16000
goto @DOC2_3089

:DOC2_3029
$doc2_heal = 18000
goto @DOC2_3089

:DOC2_3044
$doc2_heal = 20000
goto @DOC2_3089

:DOC2_3059
$doc2_heal = 22000
goto @DOC2_3089

:DOC2_3074
$doc2_heal = 24000
goto @DOC2_3089

:DOC2_3089
88@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, 95@)
Task.ScratchHead(-1)
Task.LookAbout(-1, 4000)
Task.Pause(-1, 1000)
Sequence.SetToRepeat(88@, True)
Sequence.Close(88@)
39@ = 0
$doc2_rnd = 0
43@ = Char.Create(PedType.CivMale, 78, 2154.192, 1437.948, 9.8203)
Char.SetHeading(43@, 341.9008)
Char.SetDecisionMaker(43@, 99@)
Char.PerformSequence(43@, 73@)
44@ = Char.Create(PedType.CivMale, 83, 2164.596, 1435.169, 9.8203)
Char.SetHeading(44@, 8.2163)
Char.SetDecisionMaker(44@, 99@)
Char.PerformSequence(44@, 74@)
45@ = Char.Create(PedType.CivMale, 259, 2160.696, 1435.38, 9.8203)
Char.SetHeading(45@, 8.2163)
Char.SetDecisionMaker(45@, 99@)
Char.PerformSequence(45@, 75@)
46@ = Char.Create(PedType.CivMale, 78, 2169.263, 1435.927, 9.8203)
Char.SetHeading(46@, 8.2163)
Char.SetDecisionMaker(46@, 99@)
Char.PerformSequence(46@, 76@)
47@ = Char.Create(PedType.CivMale, 85, 2155.42, 1436.42, 9.8203)
Char.SetHeading(47@, 8.2163)
Char.SetDecisionMaker(47@, 99@)
Char.PerformSequence(47@, 77@)
48@ = Char.Create(PedType.CivMale, 68, 2168.29, 1436.191, 9.8203)
Char.SetHeading(48@, 8.2163)
Char.SetDecisionMaker(48@, 99@)
Char.PerformSequence(48@, 78@)
49@ = Char.Create(PedType.CivMale, 258, 2159.253, 1435.312, 9.8203)
Char.SetHeading(49@, 2.018)
Char.SetDecisionMaker(49@, 99@)
Char.PerformSequence(49@, 79@)
Streaming.RequestModel(478)
Streaming.RequestModel(50)
Streaming.RequestModel(#SMASHBOXPILE)

:DOC2_3511
if or
  not Streaming.HasModelLoaded(478)
  not Streaming.HasModelLoaded(50)
  not Streaming.HasModelLoaded(#SMASHBOXPILE)
goto_if_false @DOC2_3547
wait 0
goto @DOC2_3511

:DOC2_3547
102@ = Object.Create(#SMASHBOXPILE, 2112.753, 1403.973, 10.1484)
Object.SetHeading(102@, 86.7997)
Streaming.MarkModelAsNoLongerNeeded(#SMASHBOXPILE)
Car.SetModelComponents(478, 4, 4)
34@ = Car.Create(478, 2107.19, 1409.153, 9.8203)
Streaming.MarkModelAsNoLongerNeeded(478)
Car.SetHeading(34@, 180.0)
Car.ChangeColor(34@, 1, 1)
35@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(35@, True)
Blip.ChangeDisplay(35@, BlipDisplay.Both)
109@ = 0.0
if 
  not Car.IsDead(34@)
goto_if_false @DOC2_3761
Object.AttachToCar(100@, 34@, -0.3, -1.0, 109@, 0.0, 0.0, 0.0)
Object.AttachToCar(101@, 34@, -0.3, -1.0, 109@, 0.0, 0.0, 0.0)

:DOC2_3761
114@ = Char.Create(PedType.CivMale, 50, 2109.793, 1407.857, 9.8203)
Streaming.MarkModelAsNoLongerNeeded(50)
Char.SetHeading(114@, 180.0)
Task.UseMobilePhone(114@, True)
gosub @DOC2_14025
if 
  not Char.IsDead($scplayer)
goto_if_false @DOC2_3864
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 2162.498, 1434.396, 9.8203)
Char.SetHeading($scplayer, 358.0)

:DOC2_3864
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_3893
Char.ClearTasksImmediately(95@)
Char.PerformSequence(95@, 116@)

:DOC2_3893
World.ClearArea(2162.705, 1430.309, 9.8203, 10.0, True)
Camera.SetFixedPosition(2162.541, 1423.84, 9.9728, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2162.558, 1424.803, 10.2424, SwitchType.JumpCut)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.In)
130@ = 2
135@ = 2
wait 1000
Text.PrintNow('DOC2_X', 5000, 1)
TIMERB = 0

:DOC2_4024
if 
  2000 > TIMERB
goto_if_false @DOC2_4078
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_4071
goto @DOC2_4170

:DOC2_4071
goto @DOC2_4024

:DOC2_4078
if 
  not Char.IsDead($scplayer)
goto_if_false @DOC2_4109
Char.ClearTasksImmediately($scplayer)
Task.AchieveHeading($scplayer, 172.0)

:DOC2_4109
TIMERB = 0

:DOC2_4116
if 
  2000 > TIMERB
goto_if_false @DOC2_4170
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_4163
goto @DOC2_4170

:DOC2_4163
goto @DOC2_4116

:DOC2_4170
if 
  not Char.IsDead($scplayer)
goto_if_false @DOC2_4201
Char.ClearTasksImmediately($scplayer)
Char.SetHeading($scplayer, 172.0)

:DOC2_4201
Text.ClearPrints
gosub @DOC2_14040
Camera.SetBehindPlayer
Text.PrintNow('DOC2_01', 7000, 1)

:DOC2_4228
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(34@)
  not Char.IsDead(95@)
goto_if_false @DOC2_13052
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @DOC2_4280
goto @DOC2_13253

:DOC2_4280
131@ += 1
gosub @DOC2_14125
gosub @DOC2_14927
if 
  4 > 91@
goto_if_false @DOC2_5062
if and
  131@ > 200
  Char.LocateAnyMeans3D($scplayer, 2154.192, 1437.948, 9.8203, 20.0, 20.0, 20.0, False)
  not Text.IsMessageBeingDisplayed
goto_if_false @DOC2_5062

:DOC2_4377
$doc2_rnd = Math.RandomIntInRange(0, 9)
if and
  is_int_var_equal_to_int_lvar $doc2_rnd == 132@
  3 > 133@
goto_if_false @DOC2_4426
goto @DOC2_4377
133@ += 1

:DOC2_4426
set_lvar_int_to_var_int 132@ = $doc2_rnd
133@ = 0
if 
  not Char.IsDead(43@)
goto_if_false @DOC2_4691
if and
  Char.LocateAnyMeans3D(43@, 2154.192, 1437.948, 9.8203, 2.0, 2.0, 2.0, False)
  not Text.IsMessageBeingDisplayed
  126@ == 0
goto_if_false @DOC2_4691
switch_start $doc2_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DOC2_4691 {caseNum1} 0 {caseLabel1} @DOC2_4577 {caseNum2} 1 {caseLabel2} @DOC2_4615 {caseNum3} 2 {caseLabel3} @DOC2_4653 {caseNum4} -1 {caseLabel4} @DOC2_4691 {caseNum5} -1 {caseLabel5} @DOC2_4691 {caseNum6} -1 {caseLabel6} @DOC2_4691 {caseNum7} -1 {caseLabel7} @DOC2_4691

:DOC2_4577
set_lvar_text_label 127@s = 'DC2_AA'
set_lvar_int_to_constant 129@ = 38209
gosub @DOC2_14907
goto @DOC2_4691

:DOC2_4615
set_lvar_text_label 127@s = 'DC2_AB'
set_lvar_int_to_constant 129@ = 38210
gosub @DOC2_14907
goto @DOC2_4691

:DOC2_4653
set_lvar_text_label 127@s = 'DC2_AC'
set_lvar_int_to_constant 129@ = 38211
gosub @DOC2_14907
goto @DOC2_4691

:DOC2_4691
if 
  not Char.IsDead(44@)
goto_if_false @DOC2_5055
if and
  Char.LocateAnyMeans3D(44@, 2164.596, 1435.169, 9.8203, 2.0, 2.0, 2.0, False)
  not Text.IsMessageBeingDisplayed
  126@ == 0
goto_if_false @DOC2_5055
switch_start $doc2_rnd {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @DOC2_5055 {caseNum1} 3 {caseLabel1} @DOC2_4827 {caseNum2} 4 {caseLabel2} @DOC2_4865 {caseNum3} 5 {caseLabel3} @DOC2_4903 {caseNum4} 6 {caseLabel4} @DOC2_4941 {caseNum5} 7 {caseLabel5} @DOC2_4979 {caseNum6} 8 {caseLabel6} @DOC2_5017 {caseNum7} -1 {caseLabel7} @DOC2_5055

:DOC2_4827
set_lvar_text_label 127@s = 'DC2_AD'
set_lvar_int_to_constant 129@ = 38200
gosub @DOC2_14907
goto @DOC2_5055

:DOC2_4865
set_lvar_text_label 127@s = 'DC2_AE'
set_lvar_int_to_constant 129@ = 38201
gosub @DOC2_14907
goto @DOC2_5055

:DOC2_4903
set_lvar_text_label 127@s = 'DC2_AF'
set_lvar_int_to_constant 129@ = 38202
gosub @DOC2_14907
goto @DOC2_5055

:DOC2_4941
set_lvar_text_label 127@s = 'DC2_AJ'
set_lvar_int_to_constant 129@ = 38206
gosub @DOC2_14907
goto @DOC2_5055

:DOC2_4979
set_lvar_text_label 127@s = 'DC2_AK'
set_lvar_int_to_constant 129@ = 38207
gosub @DOC2_14907
goto @DOC2_5055

:DOC2_5017
set_lvar_text_label 127@s = 'DC2_AL'
set_lvar_int_to_constant 129@ = 38208
gosub @DOC2_14907
goto @DOC2_5055

:DOC2_5055
131@ = 0

:DOC2_5062
if and
  not Car.IsDead(34@)
  not Char.IsDead($scplayer)
  not Char.IsDead(95@)
goto_if_false @DOC2_6993
39@ = 0

:DOC2_5095
if 
  not Char.IsDead(43@(39@,15i))
goto_if_false @DOC2_5290
if and
  Char.HasBeenDamagedByChar(43@(39@,15i), $scplayer)
  58@(39@,15i) == 0
goto_if_false @DOC2_5198
Char.ClearTasks(43@(39@,15i))
Task.GoStraightToCoord(43@(39@,15i), 2082.005, 1415.909, 9.8047, MoveState.Sprint, 20000)
58@(39@,15i) = 1

:DOC2_5198
if and
  Char.LocateAnyMeans3D(43@(39@,15i), 2082.381, 1416.636, 9.8047, 10.0, 10.0, 10.0, False)
  58@(39@,15i) <> 3
goto_if_false @DOC2_5290
Char.ClearTasks(43@(39@,15i))
Task.WanderStandard(43@(39@,15i))
58@(39@,15i) = 3

:DOC2_5290
39@ += 1
  39@ >= 7
goto_if_false @DOC2_5095
if or
  91@ == 1
  91@ == 0
goto_if_false @DOC2_5766
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @DOC2_5606
if and
  not Char.IsDead(114@)
  113@ == 0
goto_if_false @DOC2_5578
Char.ClearTasksImmediately(114@)
Task.KillCharOnFoot(114@, $scplayer)
$doc2_rnd = Math.RandomIntInRange(0, 2)
switch_start $doc2_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DOC2_5571 {caseNum1} 0 {caseLabel1} @DOC2_5463 {caseNum2} 1 {caseLabel2} @DOC2_5499 {caseNum3} 2 {caseLabel3} @DOC2_5535 {caseNum4} -1 {caseLabel4} @DOC2_5571 {caseNum5} -1 {caseLabel5} @DOC2_5571 {caseNum6} -1 {caseLabel6} @DOC2_5571 {caseNum7} -1 {caseLabel7} @DOC2_5571

:DOC2_5463
set_lvar_text_label 127@s = 'DOGG_GA'
set_lvar_int_to_constant 129@ = 12839
gosub @DOC2_14907
goto @DOC2_5571

:DOC2_5499
set_lvar_text_label 127@s = 'DOGG_GB'
set_lvar_int_to_constant 129@ = 12840
gosub @DOC2_14907
goto @DOC2_5571

:DOC2_5535
set_lvar_text_label 127@s = 'DOGG_GC'
set_lvar_int_to_constant 129@ = 12841
gosub @DOC2_14907
goto @DOC2_5571

:DOC2_5571
113@ = 1

:DOC2_5578
Blip.ChangeDisplay(35@, BlipDisplay.Neither)
Blip.ChangeDisplay(92@, BlipDisplay.Both)
91@ = 1
goto @DOC2_5627

:DOC2_5606
Blip.ChangeDisplay(35@, BlipDisplay.Both)
Blip.ChangeDisplay(92@, BlipDisplay.Neither)
91@ = 0

:DOC2_5627
if 
  91@ == 1
goto_if_false @DOC2_5766
if and
  Char.LocateAnyMeans3D($scplayer, 105@, 106@, 107@, 4.0, 4.0, 4.0, True)
  not Char.IsDead($scplayer)
goto_if_false @DOC2_5766
Player.SetControl($player1, False)
91@ = 2
108@ = Char.GetHeading($scplayer)
if and
  108@ > 45.0
  145.0 > 108@
goto_if_false @DOC2_5759
125@ = 0
goto @DOC2_5766

:DOC2_5759
125@ = 1

:DOC2_5766
if 
  91@ == 2
goto_if_false @DOC2_6993
gosub @DOC2_14025
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_5848
Char.ClearTasksImmediately(95@)
Task.PlayAnim(95@, "IDLE_CHAT", "PED", 1.0, False, False, False, False, -1)

:DOC2_5848
Camera.SetFixedPosition(2162.62, 1450.208, 25.1198, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2162.62, 1451.192, 24.9414, SwitchType.JumpCut)
$doc2_rnd = Math.RandomIntInRange(0, 3)
switch_start $doc2_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DOC2_6235 {caseNum1} 0 {caseLabel1} @DOC2_5971 {caseNum2} 1 {caseLabel2} @DOC2_6059 {caseNum3} 2 {caseLabel3} @DOC2_6147 {caseNum4} -1 {caseLabel4} @DOC2_6235 {caseNum5} -1 {caseLabel5} @DOC2_6235 {caseNum6} -1 {caseLabel6} @DOC2_6235 {caseNum7} -1 {caseLabel7} @DOC2_6235

:DOC2_5971
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12800)

:DOC2_5982
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DOC2_6008
wait 0
goto @DOC2_5982

:DOC2_6008
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_6032
Char.StartFacialTalk(95@, 2000)

:DOC2_6032
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DOGG_AA', 3000, 1)
goto @DOC2_6235

:DOC2_6059
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12802)

:DOC2_6070
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DOC2_6096
wait 0
goto @DOC2_6070

:DOC2_6096
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_6120
Char.StartFacialTalk(95@, 2000)

:DOC2_6120
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DOGG_AC', 3000, 1)
goto @DOC2_6235

:DOC2_6147
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12806)

:DOC2_6158
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DOC2_6184
wait 0
goto @DOC2_6158

:DOC2_6184
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_6208
Char.StartFacialTalk(95@, 2000)

:DOC2_6208
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DOGG_AG', 3000, 1)
goto @DOC2_6235

:DOC2_6235
if 
  not Char.IsDead(114@)
goto_if_false @DOC2_6256
Char.RemoveElegantly(114@)

:DOC2_6256
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(50)
wait 1000
TIMERB = 0

:DOC2_6277
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DOC2_6334
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_6327
134@ = 1
goto @DOC2_6765

:DOC2_6327
goto @DOC2_6277

:DOC2_6334
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_6355
Char.StopFacialTalk(95@)

:DOC2_6355
TIMERB = 0

:DOC2_6362
if 
  2000 > TIMERB
goto_if_false @DOC2_6423
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_6416
134@ = 1
goto @DOC2_6765

:DOC2_6416
goto @DOC2_6362

:DOC2_6423
Camera.SetInterpolationParameters(0.0, 2000)
Camera.SetFixedPosition(2162.62, 1450.208, 25.1198, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2162.62, 1450.499, 24.1631, SwitchType.Interpolation)
TIMERB = 0

:DOC2_6491
if 
  2000 > TIMERB
goto_if_false @DOC2_6552
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_6545
134@ = 1
goto @DOC2_6765

:DOC2_6545
goto @DOC2_6491

:DOC2_6552
Camera.SetInterpolationParameters(0.0, 2000)
Camera.SetFixedPosition(2162.62, 1445.077, 13.6736, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2162.62, 1445.815, 14.7476, SwitchType.Interpolation)
TIMERB = 0

:DOC2_6620
if 
  1000 > TIMERB
goto_if_false @DOC2_6681
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_6674
134@ = 1
goto @DOC2_6765

:DOC2_6674
goto @DOC2_6620

:DOC2_6681
Text.PrintNow('DOC2_05', 3000, 1)
TIMERB = 0

:DOC2_6704
if 
  3000 > TIMERB
goto_if_false @DOC2_6765
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_6758
134@ = 1
goto @DOC2_6765

:DOC2_6758
goto @DOC2_6704

:DOC2_6765
if 
  134@ == 1
goto_if_false @DOC2_6799
Text.PrintNow('DOC2_05', 3000, 1)

:DOC2_6799
Text.ClearPrints
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_6825
Char.PerformSequence(95@, 96@)

:DOC2_6825
if 
  125@ == 0
goto_if_false @DOC2_6896
if 
  not Car.IsDead(34@)
goto_if_false @DOC2_6889
Car.SetCoordinates(34@, 2163.888, 1444.0, 9.8203)
Car.SetHeading(34@, 90.0)

:DOC2_6889
goto @DOC2_6942

:DOC2_6896
if 
  not Car.IsDead(34@)
goto_if_false @DOC2_6942
Car.SetCoordinates(34@, 2163.888, 1444.0, 9.8203)
Car.SetHeading(34@, 270.0)

:DOC2_6942
Player.ApplyBrakesToCar($player1, False)
if 
  Blip.DoesExist(92@)
goto_if_false @DOC2_6972
Blip.SetCoordAppearance(92@, 1)

:DOC2_6972
gosub @DOC2_14040
91@ = 3
TIMERA = 0

:DOC2_6993
if and
  not Car.IsDead(34@)
  not Char.IsDead($scplayer)
  not Char.IsDead(95@)
goto_if_false @DOC2_13000
if 
  91@ == 3
goto_if_false @DOC2_9078
if 
  not Char.LocateAnyMeans3D($scplayer, 2149.407, 1431.497, 9.8203, 100.0, 100.0, 100.0, False)
goto_if_false @DOC2_7108
Text.PrintNow('DOC2_10', 4000, 1)
goto @DOC2_13066

:DOC2_7108
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @DOC2_7173
if 
  89@ == 0
goto_if_false @DOC2_7166
Blip.ChangeDisplay(35@, BlipDisplay.Neither)
Blip.ChangeDisplay(92@, BlipDisplay.Both)
89@ = 1

:DOC2_7166
goto @DOC2_7228

:DOC2_7173
if 
  89@ == 1
goto_if_false @DOC2_7228
Text.PrintNow('DOC2_19', 4000, 1)
Blip.ChangeDisplay(35@, BlipDisplay.Both)
Blip.ChangeDisplay(92@, BlipDisplay.Neither)
89@ = 0

:DOC2_7228
if and
  not Char.LocateAnyMeans3D($scplayer, 105@, 106@, 107@, 12.0, 12.0, 12.0, False)
  112@ == 1
goto_if_false @DOC2_7293
TIMERB = 0
Camera.RestoreJumpcut
112@ = 2

:DOC2_7293
if and
  TIMERB > 1000
  112@ == 2
goto_if_false @DOC2_7342
Text.PrintNow('DOC2_11', 4000, 1)
112@ = 0

:DOC2_7342
if 
  Char.LocateAnyMeans3D($scplayer, 105@, 106@, 107@, 12.0, 12.0, 12.0, False)
goto_if_false @DOC2_9078
112@ = 1
if 
  40000 > TIMERA
goto_if_false @DOC2_7463
Camera.SetFixedPosition(2163.702, 1435.87, 37.0031, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2163.699, 1436.447, 36.1861, SwitchType.JumpCut)

:DOC2_7463
if and
  TIMERA > 10000
  11000 > TIMERA
goto_if_false @DOC2_7779
if 
  126@ == 0
goto_if_false @DOC2_7779
$doc2_rnd = Math.RandomIntInRange(0, 3)
switch_start $doc2_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DOC2_7772 {caseNum1} 0 {caseLabel1} @DOC2_7580 {caseNum2} 1 {caseLabel2} @DOC2_7644 {caseNum3} 2 {caseLabel3} @DOC2_7708 {caseNum4} -1 {caseLabel4} @DOC2_7772 {caseNum5} -1 {caseLabel5} @DOC2_7772 {caseNum6} -1 {caseLabel6} @DOC2_7772 {caseNum7} -1 {caseLabel7} @DOC2_7772

:DOC2_7580
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12810)

:DOC2_7591
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DOC2_7617
wait 0
goto @DOC2_7591

:DOC2_7617
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DOGG_BA', 4000, 1)
goto @DOC2_7772

:DOC2_7644
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12811)

:DOC2_7655
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DOC2_7681
wait 0
goto @DOC2_7655

:DOC2_7681
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DOGG_BB', 4000, 1)
goto @DOC2_7772

:DOC2_7708
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12812)

:DOC2_7719
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DOC2_7745
wait 0
goto @DOC2_7719

:DOC2_7745
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DOGG_BC', 4000, 1)
goto @DOC2_7772

:DOC2_7772
126@ = 1

:DOC2_7779
if 
  is_int_lvar_greater_than_int_var TIMERA > $doc2_heal
goto_if_false @DOC2_9078
Player.SetControl($player1, True)
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_7836
Char.ClearTasksImmediately(95@)
Char.SetHeading(95@, 177.7059)

:DOC2_7836
Clock.SetTimeScale(0.4)
Camera.SetFixedPosition(2163.22, 1454.533, 35.0248, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2163.227, 1454.063, 34.1425, SwitchType.JumpCut)
wait 500
Object.SetCollision(100@, False)
Object.SetCollision(101@, False)
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_7937
Char.PerformSequence(95@, 97@)

:DOC2_7937
TIMERB = 0
91@ = 4
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 35000)

:DOC2_7964
if 
  TIMERB <= 2000
goto_if_false @DOC2_8578
wait 0
if and
  TIMERB > 500
  103@ == 0
goto_if_false @DOC2_8041
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_8034
Char.ClearTasks(95@)

:DOC2_8034
103@ = 1

:DOC2_8041
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_8137
$x, $y, $z = Char.GetCoordinates(95@)
if and
  12.0 > $z
  TIMERA > 10
goto_if_false @DOC2_8137
TIMERA = 0
Fx.AddBlood($x, $y, $z, 0.0, 0.0, 2.0, 40, 95@)

:DOC2_8137
if 
  TIMERB > 1000
goto_if_false @DOC2_8221
gosub @DOC2_14025
Camera.SetFixedPosition(2172.002, 1441.702, 10.2111, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2171.076, 1442.003, 10.4368, SwitchType.JumpCut)
Player.SetControl($player1, False)

:DOC2_8221
if 
  not Car.IsDead(34@)
goto_if_false @DOC2_8571
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_8571
if 
  91@ <> 5
goto_if_false @DOC2_8571
40@, 41@, 42@ = Car.GetOffsetInWorldCoords(34@, 0.0, -1.5, 0.5)
if 
  Char.LocateAnyMeans3D(95@, 40@, 41@, 42@, 1.3, 1.3, 1.0, False)
goto_if_false @DOC2_8571
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @DOC2_8361
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:DOC2_8361
109@ = -0.1
Object.Break(101@, 1)
Char.SetCollision(95@, False)
Char.SetHealth(95@, 100)
Char.ClearTasksImmediately(95@)
Task.PlayAnimNonInterruptable(95@, "KO_SHOT_FRONT", "PED", 2.0, False, False, False, True, -1)
Char.AttachToCar(95@, 34@, 0.0, -2.0, 1.0, 0, 0.0, WeaponType.Unarmed)
91@ = 5
if and
  not Char.IsDead(95@)
  not Car.IsDead(34@)
goto_if_false @DOC2_8571
90@ = Particle.Create("EXPLOSION_BARREL", 40@, 41@, 42@, 1)
Particle.PlayAndKill(90@)
Pad.Shake(PadId.Pad1, 500, 200)
World.SetCarDensityMultiplier(2.0)
Char.SetHealth(95@, 100)
Hud.Display(True)
gosub @DOC2_13336

:DOC2_8571
goto @DOC2_7964

:DOC2_8578
TIMERA = 0
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @DOC2_8604
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:DOC2_8604
Clock.SetTimeScale(1.0)
gosub @DOC2_14040
if and
  not Char.IsDead(95@)
  not Car.IsDead(34@)
goto_if_false @DOC2_8676
Char.DetachFromCar(95@)
Char.AttachToCar(95@, 34@, 0.0, -2.5, 1.0, 0, 0.0, WeaponType.Unarmed)

:DOC2_8676
if 
  91@ == 4
goto_if_false @DOC2_8767
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_8760
$x, $y, $z = Char.GetCoordinates(95@)
Fx.AddBlood($x, $y, $z, 0.0, 0.0, 10.0, 100, 95@)
Task.Die(95@)

:DOC2_8760
goto @DOC2_9078

:DOC2_8767
if 
  not Car.IsDead(34@)
goto_if_false @DOC2_8813
World.SetCarDensityMultiplier(2.0)
36@ = Car.GetHealth(34@)
Car.SetProofs(34@, True, False, False, False, True)

:DOC2_8813
set_lvar_int_to_lvar_int 37@ = 36@
Hud.DisplayCounterWithString($d2_rnd, CounterDisplay.Bar, 'DOC2_07')
Blip.ChangeDisplay(93@, BlipDisplay.Both)
Blip.ChangeDisplay(92@, BlipDisplay.Neither)
39@ = 0

:DOC2_8858
if 
  not Char.IsDead(43@(39@,15i))
goto_if_false @DOC2_9015
Char.ClearTasksImmediately(43@(39@,15i))
$doc2_rnd = Math.RandomIntInRange(0, 2)
if 
  $doc2_rnd == 0
goto_if_false @DOC2_8968
$doc2_rnd = Math.RandomIntInRange(10, 200)
wait $doc2_rnd
if 
  not Char.IsDead(43@(39@,15i))
goto_if_false @DOC2_8961
Char.PerformSequence(43@(39@,15i), 110@)

:DOC2_8961
goto @DOC2_9015

:DOC2_8968
$doc2_rnd = Math.RandomIntInRange(10, 200)
wait $doc2_rnd
if 
  not Char.IsDead(43@(39@,15i))
goto_if_false @DOC2_9015
Char.PerformSequence(43@(39@,15i), 111@)

:DOC2_9015
39@ += 1
  39@ >= 7
goto_if_false @DOC2_8858
Streaming.RemoveAnimation("ON_LOOKERS")
wait 1000
Text.PrintNow('DOC2_06', 5000, 1)
TIMERA = 0

:DOC2_9078
if and
  not Car.IsDead(34@)
  not Char.IsDead(95@)
goto_if_false @DOC2_13000
if 
  91@ == 5
goto_if_false @DOC2_13000
if 
  TIMERA > 5000
goto_if_false @DOC2_9502
if and
  130@ == 2
  124@ == 0
goto_if_false @DOC2_9197
set_lvar_text_label 127@s = 'DOGG_CA'
set_lvar_int_to_constant 129@ = 12831
gosub @DOC2_14907
124@ = 1

:DOC2_9197
if and
  130@ == 2
  124@ == 1
goto_if_false @DOC2_9258
set_lvar_text_label 127@s = 'DOGG_CB'
set_lvar_int_to_constant 129@ = 12813
gosub @DOC2_14907
124@ = 2

:DOC2_9258
if and
  130@ == 2
  124@ == 2
goto_if_false @DOC2_9319
set_lvar_text_label 127@s = 'DOGG_CC'
set_lvar_int_to_constant 129@ = 12832
gosub @DOC2_14907
124@ = 3

:DOC2_9319
if and
  130@ == 2
  124@ == 3
goto_if_false @DOC2_9380
set_lvar_text_label 127@s = 'DOGG_CD'
set_lvar_int_to_constant 129@ = 12833
gosub @DOC2_14907
124@ = 4

:DOC2_9380
if and
  130@ == 2
  124@ == 4
goto_if_false @DOC2_9441
set_lvar_text_label 127@s = 'DOGG_CE'
set_lvar_int_to_constant 129@ = 12834
gosub @DOC2_14907
124@ = 5

:DOC2_9441
if and
  130@ == 2
  124@ == 5
goto_if_false @DOC2_9502
set_lvar_text_label 127@s = 'DOGG_CF'
set_lvar_int_to_constant 129@ = 12814
gosub @DOC2_14907
124@ = 6

:DOC2_9502
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(34@)
goto_if_false @DOC2_9638
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @DOC2_9597
if 
  117@ == 0
goto_if_false @DOC2_9590
124@ = 6
Text.PrintNow('DOC2_19', 4000, 1)
117@ = 1

:DOC2_9590
goto @DOC2_9638

:DOC2_9597
if 
  117@ == 1
goto_if_false @DOC2_9638
Text.PrintNow('DOC2_20', 4000, 1)
117@ = 0

:DOC2_9638
set_lvar_int_to_lvar_int 37@ = 36@
36@ = Car.GetHealth(34@)
if and
  not Char.IsDead(95@)
  not Char.IsDead($scplayer)
goto_if_false @DOC2_9720
if 
  Char.HasBeenDamagedByChar(95@, $scplayer)
goto_if_false @DOC2_9720
if 
  is_int_lvar_equal_to_int_lvar 36@ == 37@
goto_if_false @DOC2_9720
36@ -= 50

:DOC2_9720
if 
  is_int_lvar_greater_than_int_lvar 37@ > 36@
goto_if_false @DOC2_10855
set_lvar_int_to_lvar_int 38@ = 37@
sub_int_lvar_from_int_lvar 38@ -= 36@
sub_int_lvar_from_int_var $d2_rnd -= 38@
if 
  0 > $d2_rnd
goto_if_false @DOC2_10042
$d2_rnd = 0
Text.ClearPrints
$doc2_rnd = Math.RandomIntInRange(0, 3)
switch_start $doc2_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DOC2_9970 {caseNum1} 0 {caseLabel1} @DOC2_9862 {caseNum2} 1 {caseLabel2} @DOC2_9898 {caseNum3} 2 {caseLabel3} @DOC2_9934 {caseNum4} -1 {caseLabel4} @DOC2_9970 {caseNum5} -1 {caseLabel5} @DOC2_9970 {caseNum6} -1 {caseLabel6} @DOC2_9970 {caseNum7} -1 {caseLabel7} @DOC2_9970

:DOC2_9862
set_lvar_text_label 127@s = 'DOGG_EA'
set_lvar_int_to_constant 129@ = 12825
gosub @DOC2_14907
goto @DOC2_9970

:DOC2_9898
set_lvar_text_label 127@s = 'DOGG_EB'
set_lvar_int_to_constant 129@ = 12826
gosub @DOC2_14907
goto @DOC2_9970

:DOC2_9934
set_lvar_text_label 127@s = 'DOGG_EC'
set_lvar_int_to_constant 129@ = 12827
gosub @DOC2_14907
goto @DOC2_9970

:DOC2_9970
if 
  not Car.IsDead(34@)
goto_if_false @DOC2_10000
91@ = 6
goto @DOC2_10012

:DOC2_10000
Char.RemoveElegantly(95@)
goto @DOC2_13066

:DOC2_10012
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_10035
Char.SetBleeding(95@, False)

:DOC2_10035
TIMERB = 0

:DOC2_10042
if and
  94@ == 0
  91@ <> 6
goto_if_false @DOC2_10855
Text.ClearPrints
124@ = 4
94@ = 1
TIMERB = 0
Char.SetBleeding(95@, True)
if or
  137@ == 0
  137@ == 1
goto_if_false @DOC2_10138
$doc2_rnd = Math.RandomIntInRange(0, 3)
goto @DOC2_10147

:DOC2_10138
$doc2_rnd = Math.RandomIntInRange(0, 2)

:DOC2_10147
switch_start 137@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DOC2_10816 {caseNum1} 0 {caseLabel1} @DOC2_10210 {caseNum2} 1 {caseLabel2} @DOC2_10358 {caseNum3} 2 {caseLabel3} @DOC2_10506 {caseNum4} 3 {caseLabel4} @DOC2_10661 {caseNum5} -1 {caseLabel5} @DOC2_10816 {caseNum6} -1 {caseLabel6} @DOC2_10816 {caseNum7} -1 {caseLabel7} @DOC2_10816

:DOC2_10210
if 
  $doc2_rnd == 0
goto_if_false @DOC2_10257
set_lvar_text_label 127@s = 'DOGG_DC'
set_lvar_int_to_constant 129@ = 12817
gosub @DOC2_14907

:DOC2_10257
if 
  $doc2_rnd == 1
goto_if_false @DOC2_10304
set_lvar_text_label 127@s = 'DOGG_DD'
set_lvar_int_to_constant 129@ = 12818
gosub @DOC2_14907

:DOC2_10304
if 
  $doc2_rnd == 2
goto_if_false @DOC2_10351
set_lvar_text_label 127@s = 'DOGG_DI'
set_lvar_int_to_constant 129@ = 12823
gosub @DOC2_14907

:DOC2_10351
goto @DOC2_10816

:DOC2_10358
if 
  $doc2_rnd == 0
goto_if_false @DOC2_10405
set_lvar_text_label 127@s = 'DOGG_DJ'
set_lvar_int_to_constant 129@ = 12824
gosub @DOC2_14907

:DOC2_10405
if 
  $doc2_rnd == 1
goto_if_false @DOC2_10452
set_lvar_text_label 127@s = 'DOGG_DE'
set_lvar_int_to_constant 129@ = 12819
gosub @DOC2_14907

:DOC2_10452
if 
  $doc2_rnd == 2
goto_if_false @DOC2_10499
set_lvar_text_label 127@s = 'DOGG_DF'
set_lvar_int_to_constant 129@ = 12820
gosub @DOC2_14907

:DOC2_10499
goto @DOC2_10816

:DOC2_10506
if 
  $doc2_rnd == 0
goto_if_false @DOC2_10553
set_lvar_text_label 127@s = 'DOGG_DG'
set_lvar_int_to_constant 129@ = 12821
gosub @DOC2_14907

:DOC2_10553
if 
  $doc2_rnd == 1
goto_if_false @DOC2_10654
if 
  124@ == 6
goto_if_false @DOC2_10625
set_lvar_text_label 127@s = 'DOGG_DH'
set_lvar_int_to_constant 129@ = 12822
gosub @DOC2_14907
goto @DOC2_10654

:DOC2_10625
set_lvar_text_label 127@s = 'DOGG_DG'
set_lvar_int_to_constant 129@ = 12821
gosub @DOC2_14907

:DOC2_10654
goto @DOC2_10816

:DOC2_10661
if 
  $doc2_rnd == 0
goto_if_false @DOC2_10708
set_lvar_text_label 127@s = 'DOGG_DA'
set_lvar_int_to_constant 129@ = 12815
gosub @DOC2_14907

:DOC2_10708
if 
  $doc2_rnd == 1
goto_if_false @DOC2_10809
if 
  124@ == 6
goto_if_false @DOC2_10780
set_lvar_text_label 127@s = 'DOGG_DB'
set_lvar_int_to_constant 129@ = 12816
gosub @DOC2_14907
goto @DOC2_10809

:DOC2_10780
set_lvar_text_label 127@s = 'DOGG_DA'
set_lvar_int_to_constant 129@ = 12815
gosub @DOC2_14907

:DOC2_10809
goto @DOC2_10816

:DOC2_10816
137@ += 1
if 
  137@ == 4
goto_if_false @DOC2_10848
137@ = 0

:DOC2_10848
124@ = 6

:DOC2_10855
if and
  94@ == 1
  TIMERB > 4000
goto_if_false @DOC2_10895
Char.SetBleeding(95@, False)
94@ = 0

:DOC2_10895
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @DOC2_10935
Blip.ChangeDisplay(35@, BlipDisplay.Neither)
Blip.ChangeDisplay(93@, BlipDisplay.Both)
goto @DOC2_10949

:DOC2_10935
Blip.ChangeDisplay(35@, BlipDisplay.Both)
Blip.ChangeDisplay(93@, BlipDisplay.Neither)

:DOC2_10949
if 
  not Car.IsDead(34@)
goto_if_false @DOC2_13000
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @DOC2_13000
if and
  Char.LocateAnyMeans3D($scplayer, 1878.546, 2240.82, 9.813, 4.0, 4.0, 4.0, True)
  not Car.IsDead(34@)
goto_if_false @DOC2_13000
Player.SetControl($player1, False)
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_12967
Player.ApplyBrakesToCar($player1, True)
gosub @DOC2_14025
108@ = Char.GetHeading($scplayer)
if and
  108@ > 0.0
  180.0 > 108@
goto_if_false @DOC2_11127
115@ = 0
goto @DOC2_11134

:DOC2_11127
115@ = 1

:DOC2_11134
World.ClearArea(1878.546, 2240.82, 9.813, 10.0, True)
Char.DetachFromCar(95@)
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_11209
Char.SetCoordinates(95@, 1876.335, 2236.9, 10.125)
Char.SetHeading(95@, 242.5344)

:DOC2_11209
if 
  not Car.IsDead(34@)
goto_if_false @DOC2_11290
Car.SetCoordinates(34@, 1878.546, 2240.82, 9.813)
if 
  115@ == 0
goto_if_false @DOC2_11280
Car.SetHeading(34@, 90.0)
goto @DOC2_11290

:DOC2_11280
Car.SetHeading(34@, 270.0)

:DOC2_11290
Camera.SetFixedPosition(1854.521, 2272.75, 11.9889, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1854.83, 2271.8, 11.9363, SwitchType.JumpCut)
wait 1000
TIMERB = 0

:DOC2_11353
if 
  2000 > TIMERB
goto_if_false @DOC2_11407
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_11400
goto @DOC2_12833

:DOC2_11400
goto @DOC2_11353

:DOC2_11407
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_11476
139@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 1878.493, 2235.108, 10.125, 6, -1)
Task.TurnCharToFaceChar(-1, 95@)
Task.Pause(-1, 2000)
Task.ToggleDuck(-1, True)
Sequence.Close(139@)

:DOC2_11476
120@ = Char.Create(PedType.CivMale, 274, 1875.337, 2235.227, 10.125)
Char.SetHeading(120@, 329.5542)
Task.ToggleDuck(120@, True)
121@ = Char.Create(PedType.CivMale, 274, 1886.007, 2235.067, 10.125)
Char.SetHeading(121@, 84.1029)
Char.PerformSequence(121@, 139@)
Camera.SetFixedPosition(1872.495, 2243.844, 14.0672, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1873.321, 2243.282, 14.1094, SwitchType.JumpCut)
wait 100
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12835)

:DOC2_11627
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DOC2_11653
wait 0
goto @DOC2_11627

:DOC2_11653
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DOGG_FA', 3000, 1)
Camera.SetInterpolationParameters(0.0, 6000)
Camera.SetFixedPosition(1872.495, 2243.844, 14.0672, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1872.971, 2243.143, 13.5352, SwitchType.Interpolation)
TIMERB = 0

:DOC2_11741
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DOC2_11791
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_11784
goto @DOC2_12833

:DOC2_11784
goto @DOC2_11741

:DOC2_11791
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12836)

:DOC2_11802
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DOC2_11828
wait 0
goto @DOC2_11802

:DOC2_11828
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DOGG_FB', 3000, 1)
TIMERB = 0

:DOC2_11855
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DOC2_11905
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_11898
goto @DOC2_12833

:DOC2_11898
goto @DOC2_11855

:DOC2_11905
TIMERB = 0

:DOC2_11912
if 
  1000 > TIMERB
goto_if_false @DOC2_11966
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_11959
goto @DOC2_12833

:DOC2_11959
goto @DOC2_11912

:DOC2_11966
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12828)

:DOC2_11977
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DOC2_12003
wait 0
goto @DOC2_11977

:DOC2_12003
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DOGG_FC', 3000, 1)
TIMERB = 0

:DOC2_12030
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DOC2_12080
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_12073
goto @DOC2_12833

:DOC2_12073
goto @DOC2_12030

:DOC2_12080
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12837)

:DOC2_12091
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DOC2_12117
wait 0
goto @DOC2_12091

:DOC2_12117
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DOGG_FD', 3000, 1)
TIMERB = 0

:DOC2_12144
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DOC2_12194
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_12187
goto @DOC2_12833

:DOC2_12187
goto @DOC2_12144

:DOC2_12194
TIMERB = 0

:DOC2_12201
if 
  1000 > TIMERB
goto_if_false @DOC2_12255
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_12248
goto @DOC2_12833

:DOC2_12248
goto @DOC2_12201

:DOC2_12255
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12829)

:DOC2_12266
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DOC2_12292
wait 0
goto @DOC2_12266

:DOC2_12292
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DOGG_FE', 3000, 1)
TIMERB = 0

:DOC2_12319
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DOC2_12369
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_12362
goto @DOC2_12833

:DOC2_12362
goto @DOC2_12319

:DOC2_12369
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12830)

:DOC2_12380
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DOC2_12406
wait 0
goto @DOC2_12380

:DOC2_12406
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DOGG_FF', 2000, 1)
TIMERB = 0

:DOC2_12433
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DOC2_12483
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_12476
goto @DOC2_12833

:DOC2_12476
goto @DOC2_12433

:DOC2_12483
TIMERB = 0

:DOC2_12490
if 
  1000 > TIMERB
goto_if_false @DOC2_12544
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_12537
goto @DOC2_12833

:DOC2_12537
goto @DOC2_12490

:DOC2_12544
if and
  not Car.IsDead(34@)
  not Char.IsDead($scplayer)
goto_if_false @DOC2_12658
if 
  115@ == 0
goto_if_false @DOC2_12624
Task.CarDriveToCoord($scplayer, 34@, 1853.302, 2239.55, 9.8203, 10.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
goto @DOC2_12658

:DOC2_12624
Task.CarDriveToCoord($scplayer, 34@, 1902.168, 2238.136, 9.8203, 10.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)

:DOC2_12658
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12838)

:DOC2_12669
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @DOC2_12695
wait 0
goto @DOC2_12669

:DOC2_12695
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('DOGG_FG', 3000, 1)
TIMERB = 0

:DOC2_12722
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @DOC2_12772
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_12765
goto @DOC2_12833

:DOC2_12765
goto @DOC2_12722

:DOC2_12772
TIMERB = 0

:DOC2_12779
if 
  1000 > TIMERB
goto_if_false @DOC2_12833
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DOC2_12826
goto @DOC2_12833

:DOC2_12826
goto @DOC2_12779

:DOC2_12833
gosub @DOC2_13691
if 
  not Car.IsDead(34@)
goto_if_false @DOC2_12948
Car.SetStatus(34@, EntityStatus.Player)
if 
  115@ == 1
goto_if_false @DOC2_12918
Car.SetCoordinates(34@, 1913.238, 2240.401, 9.8203)
Car.SetHeading(34@, 270.0)
goto @DOC2_12948

:DOC2_12918
Car.SetCoordinates(34@, 1867.3, 2260.574, 9.8203)
Car.SetHeading(34@, 0.0)

:DOC2_12948
Hud.ClearCounter($7795)
gosub @DOC2_14040
Player.ApplyBrakesToCar($player1, False)

:DOC2_12967
Char.Delete(95@)
if 
  Blip.DoesExist(93@)
goto_if_false @DOC2_12993
Blip.Remove(93@)

:DOC2_12993
goto @DOC2_13253

:DOC2_13000
if and
  91@ == 6
  TIMERB > 3000
goto_if_false @DOC2_13045
Char.SetBleeding(95@, False)
Char.RemoveElegantly(95@)
goto @DOC2_13066

:DOC2_13045
goto @DOC2_4228

:DOC2_13052
gosub @DOC2_14040
goto @DOC2_13066

:DOC2_13066
if 
  104@ == 0
goto_if_false @DOC2_13251
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if 
  91@ == 5
goto_if_false @DOC2_13123
Hud.ClearCounter($d2_rnd)

:DOC2_13123
if 
  Car.IsDead(34@)
goto_if_false @DOC2_13212
if 
  5 > 91@
goto_if_false @DOC2_13180
Text.PrintNow('DOC2_09', 4000, 1)
goto @DOC2_13196

:DOC2_13180
Text.PrintNow('DOC2_10', 4000, 1)

:DOC2_13196
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_13212

:DOC2_13212
if or
  Char.IsDead(95@)
  $d2_rnd == 0
goto_if_false @DOC2_13251
Text.PrintNow('DOC2_10', 4000, 1)

:DOC2_13251
return 

:DOC2_13253
104@ = 1
if 
  Blip.DoesExist($doc_contact_blip)
goto_if_false @DOC2_13281
Blip.Remove($doc_contact_blip)

:DOC2_13281
$flag_doc_mission_counter += 1
Stat.RegisterMissionPassed('DOC_2')
Stat.PlayerMadeProgress(1)
Audio.PlayMissionPassedTune(1)
Text.PrintWithNumberBig('M_PASSR', 10, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(10)
Player.ClearWantedLevel($player1)
return 

:DOC2_13336
Streaming.RequestModel(274)
Streaming.RequestModel(416)

:DOC2_13346
if or
  not Streaming.HasModelLoaded(274)
  not Streaming.HasModelLoaded(416)
goto_if_false @DOC2_13378
wait 0
goto @DOC2_13346

:DOC2_13378
118@ = Char.Create(PedType.CivMale, 274, 1853.996, 2264.554, 9.9245)
Char.SetHeading(118@, 261.1915)
119@ = Char.Create(PedType.CivMale, 274, 1855.156, 2264.286, 9.8885)
Char.SetHeading(119@, 62.9217)
122@ = Car.Create(416, 1889.046, 2256.128, 9.8203)
Car.SetHeading(122@, 359.5048)
123@ = Car.Create(416, 1896.493, 2256.069, 9.8203)
Car.SetHeading(123@, 2.7445)
142@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 1853.996, 2264.554, 9.9245, 4, -1)
Task.AchieveHeading(-1, 242.922)
if 
  not Char.IsDead(119@)
goto_if_false @DOC2_13602
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 1.0, True, False, False, False, -1)

:DOC2_13602
Sequence.SetToRepeat(142@, True)
Sequence.Close(142@)
Char.PerformSequence(118@, 142@)
Sequence.Clear(142@)
142@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 1855.156, 2264.286, 9.8885, 4, -1)
Task.AchieveHeading(-1, 62.9217)
Sequence.SetToRepeat(142@, True)
Sequence.Close(142@)
Char.PerformSequence(119@, 142@)
Streaming.MarkModelAsNoLongerNeeded(416)
return 

:DOC2_13691
if 
  not Char.IsDead(118@)
goto_if_false @DOC2_13712
Char.RemoveElegantly(118@)

:DOC2_13712
if 
  not Char.IsDead(119@)
goto_if_false @DOC2_13733
Char.RemoveElegantly(119@)

:DOC2_13733
if 
  not Char.IsDead(120@)
goto_if_false @DOC2_13754
Char.RemoveElegantly(120@)

:DOC2_13754
if 
  not Char.IsDead(121@)
goto_if_false @DOC2_13775
Char.RemoveElegantly(121@)

:DOC2_13775
return 

:DOC2_13777
$onmission = 0
if 
  not Char.IsDead(95@)
goto_if_false @DOC2_13805
Char.RemoveElegantly(95@)

:DOC2_13805
if 
  Blip.DoesExist(92@)
goto_if_false @DOC2_13826
Blip.Remove(92@)

:DOC2_13826
if 
  Blip.DoesExist(93@)
goto_if_false @DOC2_13847
Blip.Remove(93@)

:DOC2_13847
if 
  Blip.DoesExist(35@)
goto_if_false @DOC2_13868
Blip.Remove(35@)

:DOC2_13868
Hud.ClearCounter($d2_rnd)
Particle.Kill(90@)
Path.SwitchRoadsBackToOriginal(2090.981, 1388.51, 8.8203, 2234.686, 1517.077, 10.8203)
Path.SwitchPedRoadsBackToOriginal(2090.981, 1388.51, 8.8203, 2234.686, 1517.077, 10.8203)
Streaming.MarkModelAsNoLongerNeeded(478)
Streaming.MarkModelAsNoLongerNeeded(27)
Streaming.MarkModelAsNoLongerNeeded(83)
Streaming.MarkModelAsNoLongerNeeded(85)
Streaming.MarkModelAsNoLongerNeeded(78)
Streaming.MarkModelAsNoLongerNeeded(274)
Streaming.MarkModelAsNoLongerNeeded(416)
Streaming.MarkModelAsNoLongerNeeded(258)
Streaming.MarkModelAsNoLongerNeeded(259)
Streaming.MarkModelAsNoLongerNeeded(68)
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.UnloadSpecialCharacter(1)
Streaming.RemoveAnimation("ON_LOOKERS")
Weather.Release
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

:DOC2_14025
Text.ClearPrints
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
return 

:DOC2_14040
Text.ClearPrints
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
return 
Camera.DoFade(500, Fade.Out)

:DOC2_14066
if 
  Camera.GetFadingStatus
goto_if_false @DOC2_14090
wait 0
goto @DOC2_14066

:DOC2_14090
return 
Camera.DoFade(500, Fade.In)

:DOC2_14099
if 
  Camera.GetFadingStatus
goto_if_false @DOC2_14123
wait 0
goto @DOC2_14099

:DOC2_14123
return 

:DOC2_14125
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @DOC2_14195
if 
  not Char.IsDead($scplayer)
goto_if_false @DOC2_14195
Task.PlayAnim($scplayer, "KO_SHOT_FACE", "PED", 2.0, False, False, False, True, -1)

:DOC2_14195
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @DOC2_14266
if 
  not Char.IsDead($scplayer)
goto_if_false @DOC2_14266
Task.PlayAnim($scplayer, "KO_SHOT_FRONT", "PED", 2.0, False, False, False, True, -1)

:DOC2_14266
if 
is_ps2_keyboard_key_just_pressed 8
goto_if_false @DOC2_14336
if 
  not Char.IsDead($scplayer)
goto_if_false @DOC2_14336
Task.PlayAnim($scplayer, "KO_SHOT_STOM", "PED", 2.0, False, False, False, True, -1)

:DOC2_14336
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @DOC2_14421
if 
  not Char.IsDead($scplayer)
goto_if_false @DOC2_14421
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DOC2_14421
143@ = Char.StoreCarIsIn($scplayer)
Car.SetCoordinates(143@, 1893.958, 2240.108, 9.8203)
Car.SetHeading(143@, 77.6686)

:DOC2_14421
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @DOC2_14451
view_integer_variable $doc2_heal {_p2} "DOC2_RND"

:DOC2_14451
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @DOC2_14550
if 
  not Car.IsDead(34@)
goto_if_false @DOC2_14511
40@, 41@, 42@ = Car.GetOffsetInWorldCoords(34@, 0.0, -1.5, 0.5)

:DOC2_14511
90@ = Particle.Create("EXPLOSION_BARREL", 40@, 41@, 42@, 1)
Particle.Play(90@)

:DOC2_14550
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @DOC2_14586
if 
  not Char.IsDead($scplayer)
goto_if_false @DOC2_14586
Task.Die($scplayer)

:DOC2_14586
if 
is_ps2_keyboard_key_just_pressed 20
goto_if_false @DOC2_14662
if 
  not Char.IsDead($scplayer)
goto_if_false @DOC2_14662
$x, $y, $z = Char.GetCoordinates($scplayer)
Fx.AddBlood($x, $y, $z, 0.0, 0.0, 2.0, 40, $scplayer)

:DOC2_14662
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @DOC2_14707
if 
  not Char.IsDead($scplayer)
goto_if_false @DOC2_14707
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:DOC2_14707
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @DOC2_14871
if and
  not Char.IsDead(95@)
  not Car.IsDead(34@)
  91@ <> 5
goto_if_false @DOC2_14871
Object.Break(101@, 1)
Char.ClearTasksImmediately(95@)
Task.PlayAnimNonInterruptable(95@, "KO_SHOT_FRONT", "PED", 2.0, False, False, False, True, -1)
Char.AttachToCar(95@, 34@, 0.0, -2.5, 1.0, 0, 0.0, WeaponType.Unarmed)
91@ = 5
Hud.DisplayCounterWithString($7795, CounterDisplay.Bar, 'DOC2_07')
Blip.ChangeDisplay(93@, BlipDisplay.Both)
Blip.ChangeDisplay(92@, BlipDisplay.Neither)

:DOC2_14871
if 
is_ps2_keyboard_key_just_pressed 29
goto_if_false @DOC2_14890
Weather.ForceNow(WeatherType.RainyCountryside)

:DOC2_14890
if 
is_ps2_keyboard_key_just_pressed 24
goto_if_false @DOC2_14905

:DOC2_14905
return 

:DOC2_14907
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 129@)
130@ = 0
return 

:DOC2_14927
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  130@ == 0
goto_if_false @DOC2_14970
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(127@s, 10000, 1)
130@ = 1

:DOC2_14970
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  130@ == 1
goto_if_false @DOC2_15008
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint(127@s)
130@ = 2

:DOC2_15008
return 

//-------------Mission 96---------------
// Originally: Architectural Espionage

:HEIST1
script_name 'HEIST1'
gosub @HEIST1_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST1_38
gosub @HEIST1_23584

:HEIST1_38
gosub @HEIST1_23682
terminate_this_script 

:HEIST1_47
Stat.RegisterMissionGiven
Text.LoadMissionText('HEIST1')
$onmission = 1
$disable_mod_garage = 1
318@ = 0
wait 0
Streaming.SetAreaVisible(10)
Char.SetHasUsedEntryExit($scplayer, 2016.422, 1017.102, 10.0)
Char.SetCoordinates($scplayer, 2026.225, 1007.423, 9.8203)
Char.SetHeading($scplayer, 307.0)
322@, 323@ = Clock.GetTimeOfDay()
Clock.SetTimeOfDay(0, 0)
Camera.SetDarknessEffect(True, -1)
318@ = 0
Cutscene.Load('HEIST1A')

:HEIST1_177
if 
  not Cutscene.HasLoaded
goto_if_false @HEIST1_201
wait 0
goto @HEIST1_177

:HEIST1_201
$cs_time = 0
Weather.ForceNow(WeatherType.RainyCountryside)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:HEIST1_221
if 
  not Cutscene.HasFinished
goto_if_false @HEIST1_372
wait 0
$cs_time = Cutscene.GetTime()
if 
  318@ == 0
goto_if_false @HEIST1_303
if 
  $cs_time > 12666
goto_if_false @HEIST1_303
318@ = 1
Weather.ForceNow(WeatherType.ExtraSunnyVegas)
Clock.SetTimeOfDay(12, 0)
Camera.SetDarknessEffect(False, -1)

:HEIST1_303
if 
  318@ == 1
goto_if_false @HEIST1_365
if 
  $cs_time > 46000
goto_if_false @HEIST1_365
318@ = 99
Weather.ForceNow(WeatherType.RainyCountryside)
Clock.SetTimeOfDay(0, 0)
Camera.SetDarknessEffect(True, -1)

:HEIST1_365
goto @HEIST1_221

:HEIST1_372
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:HEIST1_385
if 
  Camera.GetFadingStatus
goto_if_false @HEIST1_409
wait 0
goto @HEIST1_385

:HEIST1_409
Cutscene.Clear
Weather.ForceNow(WeatherType.CloudyVegas)
Weather.Release
Camera.SetDarknessEffect(False, -1)
Streaming.SetAreaVisible(0)
Streaming.LoadScene(2031.168, 1030.918, 9.813)
wait 0
Camera.SetFadingColor(0, 0, 0)
Clock.SetTimeOfDay(322@, 323@)
Camera.SetDarknessEffect(False, -1)
Weather.Release
Streaming.RequestModel(367)
Streaming.RequestModel(346)
Streaming.RequestModel(349)
Streaming.RequestModel(59)
Streaming.RequestModel(12)
Streaming.RequestModel(54)
Streaming.RequestModel(70)
Streaming.RequestModel(147)
Streaming.RequestModel(17)
Streaming.RequestModel(71)
Streaming.RequestModel(57)
Streaming.RequestModel(58)
Streaming.RequestAnimation("CAMERA")
Streaming.LoadAllModelsNow

:HEIST1_536
if or
  not Streaming.HasModelLoaded(59)
  not Streaming.HasModelLoaded(12)
  not Streaming.HasModelLoaded(54)
goto_if_false @HEIST1_570
wait 0
goto @HEIST1_536

:HEIST1_570
if or
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(349)
  not Streaming.HasModelLoaded(367)
goto_if_false @HEIST1_607
wait 0
goto @HEIST1_570

:HEIST1_607
if or
  not Streaming.HasModelLoaded(70)
  not Streaming.HasModelLoaded(147)
  not Streaming.HasModelLoaded(17)
  not Streaming.HasModelLoaded(71)
goto_if_false @HEIST1_646
wait 0
goto @HEIST1_607

:HEIST1_646
if or
  not Streaming.HasModelLoaded(58)
  not Streaming.HasModelLoaded(57)
  not Streaming.HasAnimationLoaded("CAMERA")
goto_if_false @HEIST1_686
wait 0
goto @HEIST1_646

:HEIST1_686
102@ = DecisionMakerChar.Load(DecisionMakerType.Weak)
103@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
104@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
105@ = DecisionMakerChar.Load(DecisionMakerType.Weak)
Streaming.LoadScene(2031.168, 1030.918, 9.813)
Streaming.RequestCollision(2031.168, 1030.918)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
wait 2000
Camera.DoFade(1000, Fade.In)

:HEIST1_759
if 
  Camera.GetFadingStatus
goto_if_false @HEIST1_783
wait 0
goto @HEIST1_759

:HEIST1_783
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
41@ = 0
226@ = 0
227@ = 0
228@ = 0
113@ = 0
177@ = 0
175@ = 0
174@ = 0
180@ = 0
179@ = 0
181@ = 0
182@ = 0
183@ = 0
184@ = 0
185@ = 0
186@ = 0
188@ = 0
189@ = 0
190@ = 0
191@ = 0
192@ = 0
193@ = 0
194@ = 0
195@ = 0
196@ = 0
197@ = 0
198@ = 0
176@ = 0
173@ = 0
199@ = 0
211@ = 0
216@ = 0
215@ = 0
218@ = 0
219@ = 0
151@ = 0
220@ = 0
222@ = 0
223@ = 0
224@ = 0
225@ = 0
221@ = 0
324@ = 0
306@ = 1
307@ = 2
308@ = 0
309@ = 1
310@ = 0
311@ = 0
315@ = 0
316@ = 0
set_lvar_text_label 236@s = 'HE1_AG'
set_lvar_text_label 238@s = 'HE1_AH'
set_lvar_text_label 240@s = 'HE1_AI'
set_lvar_text_label 242@s = 'HE1_AJ'
set_lvar_text_label 244@s = 'HE1_AK'
set_lvar_text_label 246@s = 'HE1_AL'
set_lvar_text_label 248@s = 'HE1_ZA'
set_lvar_text_label 250@s = 'HE1_ZB'
set_lvar_text_label 252@s = 'HE1_ZC'
set_lvar_text_label 254@s = 'HE1_ZD'
set_lvar_text_label 256@s = 'HE1_ZE'
set_lvar_text_label 258@s = 'HEX2B'
set_lvar_text_label 260@s = 'HE1_ZG'
set_lvar_text_label 262@s = 'HE1_ZH'
set_lvar_text_label 264@s = 'HE1_ZJ'
set_lvar_text_label 266@s = 'HE1_ZK'
set_lvar_text_label 268@s = 'HE1_ZL'
set_lvar_text_label 270@s = 'HE1_ZM'
set_lvar_text_label 272@s = 'HE1_XA'
set_lvar_text_label 274@s = 'HE1_XB'
set_lvar_text_label 276@s = 'HEX3'
set_lvar_int_to_constant 283@ = 24618
set_lvar_int_to_constant 284@ = 24619
set_lvar_int_to_constant 285@ = 24620
set_lvar_int_to_constant 286@ = 24621
set_lvar_int_to_constant 287@ = 24622
set_lvar_int_to_constant 288@ = 24623
set_lvar_int_to_constant 289@ = 24600
set_lvar_int_to_constant 290@ = 24601
set_lvar_int_to_constant 291@ = 24602
set_lvar_int_to_constant 292@ = 24603
set_lvar_int_to_constant 293@ = 24604
set_lvar_int_to_constant 294@ = 30816
set_lvar_int_to_constant 295@ = 24606
set_lvar_int_to_constant 296@ = 24607
set_lvar_int_to_constant 297@ = 24608
set_lvar_int_to_constant 298@ = 24609
set_lvar_int_to_constant 299@ = 24610
set_lvar_int_to_constant 300@ = 24611
set_lvar_int_to_constant 301@ = 24624
set_lvar_int_to_constant 302@ = 24625
set_lvar_int_to_constant 303@ = 30819
107@ = Object.Create(#ST_ARCH_PLAN, 346.7, 164.98, 1026.8)
Object.SetRotation(107@, 90.0, 0.0, 0.0)
Object.SetCollision($init_ped_density, True)
35@ = Char.Create(PedType.Mission1, 58, 2024.26, 1525.787, 9.8203)
Char.SetDecisionMaker(35@, 102@)
DecisionMakerChar.ClearEventResponse(102@, 9)
Char.SetHeading(35@, 287.789)
if 
  not Char.IsDead(35@)
goto_if_false @HEIST1_1728

:HEIST1_1728
36@ = Char.Create(PedType.Mission1, 57, 2022.34, 1529.559, 9.8196)
Char.SetDecisionMaker(36@, 102@)
Char.SetHeading(36@, 223.9212)
37@ = Char.Create(PedType.Mission1, 59, 2026.092, 1530.428, 9.8203)
Char.SetDecisionMaker(37@, 102@)
Char.SetAllowedToDuck(37@, False)
Char.SetHeading(37@, 129.789)
if 
  not Char.IsDead(37@)
goto_if_false @HEIST1_1867
Char.GiveWeapon(37@, WeaponType.Camera, 30000)
Task.KillCharOnFoot(37@, 35@)
Char.SetDropsWeaponsWhenDead(37@, False)
Char.SetDrownsInWater(37@, False)

:HEIST1_1867
38@ = Char.Create(PedType.Mission1, 57, 2017.924, 1536.108, 9.8228)
Char.SetDecisionMaker(38@, 102@)
Char.SetAllowedToDuck(37@, False)
Char.SetHeading(38@, 170.9212)
39@ = Char.Create(PedType.Mission1, 59, 2017.708, 1535.127, 9.825)
Char.SetDecisionMaker(39@, 102@)
Char.SetHeading(39@, 11.9212)
if 
  not Char.IsDead(38@)
goto_if_false @HEIST1_2028
if 
  not Char.IsDead(39@)
goto_if_false @HEIST1_2028
Char.DisableSpeech(38@, False)
Char.DisableSpeech(39@, False)
Task.ChatWithChar(38@, 39@, True, 1)
Task.ChatWithChar(39@, 38@, False, 1)

:HEIST1_2028
Streaming.MarkModelAsNoLongerNeeded(58)
Streaming.MarkModelAsNoLongerNeeded(59)
Streaming.MarkModelAsNoLongerNeeded(57)
if 
  not Char.HasGotWeapon($scplayer, WeaponType.Camera)
goto_if_false @HEIST1_2126
168@ = Blip.AddForChar(35@)
Blip.ChangeScale(168@, 1)
169@ = Blip.AddForChar(36@)
Blip.ChangeScale(169@, 1)
170@ = Blip.AddForChar(37@)
171@ = Blip.AddForChar(38@)
Blip.ChangeScale(171@, 1)
172@ = Blip.AddForChar(39@)
Blip.ChangeScale(172@, 1)

:HEIST1_2126
151@ = 1
if 
  not Char.HasGotWeapon($scplayer, WeaponType.Camera)
goto_if_false @HEIST1_2167
Text.PrintNow('HEI1_41', 10000, 1)

:HEIST1_2167
109@ = Object.CreateNoOffset(#GEN_DOORINT01, 371.2516, 166.6324, 1007.359)
Object.SetRotation(109@, 0.0, 0.0, 0.0)
Object.FreezePosition(109@, True)
110@ = Object.Create(#KMB_LOCKEDDOOR, 370.8048, 179.0889, 1018.958)
Object.SetHeading(110@, 88.5679)
111@ = Object.Create(#GEN_DOORINT01, 368.8954, 161.5299, 1013.274)
Object.SetRotation(111@, 0.0, 0.0, 90.0)
Object.LockDoor(111@, True)
Game.SetMaxFireGenerations(1)
177@ = 1

:HEIST1_2311
wait 0
if 
  316@ == 1
goto_if_false @HEIST1_2351
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 22601)
316@ = 2

:HEIST1_2351
if 
  316@ == 2
goto_if_false @HEIST1_2395
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST1_2395
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
316@ = 3

:HEIST1_2395
if 
  308@ <> 0
goto_if_false @HEIST1_2748
if 
  310@ == 0
goto_if_false @HEIST1_2466
if 
  Audio.HasMissionAudioLoaded(307@)
goto_if_false @HEIST1_2452
Audio.ClearMissionAudio(307@)

:HEIST1_2452
310@ = 1
311@ = 1

:HEIST1_2466
if 
  310@ == 1
goto_if_false @HEIST1_2503
Audio.LoadMissionAudio(306@, 282@(308@,24i))
310@ = 2

:HEIST1_2503
if 
  310@ == 2
goto_if_false @HEIST1_2563
if 
  Audio.HasMissionAudioLoaded(306@)
goto_if_false @HEIST1_2563
Audio.PlayMissionAudio(306@)
Text.PrintNow(234@(308@,24s), 10000, 1)
310@ = 3

:HEIST1_2563
if 
  310@ == 3
goto_if_false @HEIST1_2748
if 
  Audio.HasMissionAudioFinished(306@)
goto_if_false @HEIST1_2687
Text.ClearThisPrint(234@(308@,24s))
if 
  306@ == 1
goto_if_false @HEIST1_2645
306@ = 2
307@ = 1
goto @HEIST1_2659

:HEIST1_2645
306@ = 1
307@ = 2

:HEIST1_2659
308@ = 0
310@ = 0
311@ = 0
goto @HEIST1_2748

:HEIST1_2687
if 
  not Audio.HasMissionAudioLoaded(307@)
goto_if_false @HEIST1_2748
if 
  18 > 308@
goto_if_false @HEIST1_2748
set_lvar_int_to_lvar_int 309@ = 308@
309@ += 1
Audio.LoadMissionAudio(307@, 282@(309@,24i))

:HEIST1_2748
if 
  35 > 177@
goto_if_false @HEIST1_2790
World.ClearArea(362.2167, 174.5354, 1007.398, 1000.0, False)

:HEIST1_2790
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @HEIST1_2812
goto @HEIST1_23620

:HEIST1_2812
if 
is_ps2_keyboard_key_pressed 6
goto_if_false @HEIST1_2862
216@ = 9
184@ = 11
177@ = -13
180@ = -13
179@ = -13

:HEIST1_2862
if 
is_ps2_keyboard_key_pressed 18
goto_if_false @HEIST1_2950
World.ClearArea(2419.827, 1120.785, 9.8203, 0.5, False)
Streaming.LoadScene(2419.827, 1120.785, 9.8203)
Char.SetCoordinates($scplayer, 2419.827, 1120.785, 9.8203)
Char.SetHeading($scplayer, 0.0)
Camera.SetBehindPlayer

:HEIST1_2950
if 
  185@ == 1
goto_if_false @HEIST1_2992
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST1_2992
177@ = 55

:HEIST1_2992
if 
  186@ == 1
goto_if_false @HEIST1_3034
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST1_3034
184@ = 5

:HEIST1_3034
if 
  187@ == 1
goto_if_false @HEIST1_3076
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST1_3076
188@ = 4

:HEIST1_3076
if 
  215@ == 1
goto_if_false @HEIST1_3153
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST1_3153

:HEIST1_3111
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST1_3139
wait 0
goto @HEIST1_3111

:HEIST1_3139
216@ = 40
215@ = 0

:HEIST1_3153
if 
  177@ == 1
goto_if_false @HEIST1_5229
if 
  175@ == 0
goto_if_false @HEIST1_3965
if 
  Char.IsDead(35@)
goto_if_false @HEIST1_3210
Blip.Remove(168@)

:HEIST1_3210
if 
  Char.IsDead(36@)
goto_if_false @HEIST1_3231
Blip.Remove(172@)

:HEIST1_3231
if 
  Char.IsDead(39@)
goto_if_false @HEIST1_3252
Blip.Remove(172@)

:HEIST1_3252
if 
  40@ == 0
goto_if_false @HEIST1_3361
if 
  TIMERA > 2000
goto_if_false @HEIST1_3361
if 
  not Char.IsDead(35@)
goto_if_false @HEIST1_3361
if 
  not Char.IsDead(37@)
goto_if_false @HEIST1_3361
Char.ClearTasks(37@)
Char.ClearTasks(35@)
Task.TurnCharToFaceChar(37@, 35@)
Task.TurnCharToFaceChar(35@, 37@)
TIMERA = 0
40@ = 1

:HEIST1_3361
if 
  40@ == 1
goto_if_false @HEIST1_3503
if 
  TIMERA > 2000
goto_if_false @HEIST1_3503
if 
  not Char.IsDead(37@)
goto_if_false @HEIST1_3503
Char.ClearTasks(37@)
Task.PlayAnim(37@, "PICSTND_TAKE", "CAMERA", 8.0, False, False, False, True, -1)
42@, 43@, 44@ = Char.GetCoordinates(37@)
Audio.ReportMissionAudioEventAtPosition(42@, 43@, 44@, 1132)
TIMERA = 0
40@ = 2

:HEIST1_3503
if 
  40@ == 2
goto_if_false @HEIST1_3612
if 
  TIMERA > 1000
goto_if_false @HEIST1_3612
if 
  not Char.IsDead(36@)
goto_if_false @HEIST1_3612
if 
  not Char.IsDead(37@)
goto_if_false @HEIST1_3612
Char.ClearTasks(37@)
Char.ClearTasks(36@)
Task.TurnCharToFaceChar(36@, 37@)
Task.TurnCharToFaceChar(37@, 36@)
TIMERA = 0
40@ = 3

:HEIST1_3612
if 
  40@ == 3
goto_if_false @HEIST1_3754
if 
  TIMERA > 1000
goto_if_false @HEIST1_3754
if 
  not Char.IsDead(37@)
goto_if_false @HEIST1_3754
Char.ClearTasks(37@)
Task.PlayAnim(37@, "PICCRCH_TAKE", "CAMERA", 8.0, False, False, False, True, -1)
42@, 43@, 44@ = Char.GetCoordinates(37@)
Audio.ReportMissionAudioEventAtPosition(42@, 43@, 44@, 1132)
TIMERA = 0
40@ = 0

:HEIST1_3754
if 
  not Char.IsDead(38@)
goto_if_false @HEIST1_3878
if 
  not Char.IsDead(39@)
goto_if_false @HEIST1_3878
206@ = Char.GetScriptTaskStatus(38@, 1655)
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_3878
206@ = Char.GetScriptTaskStatus(39@, 1655)
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_3878
Char.ClearTasks(38@)
Char.ClearTasks(39@)
Task.ChatWithChar(38@, 39@, True, 1)
Task.ChatWithChar(39@, 38@, False, 1)

:HEIST1_3878
if 
  TIMERB > 4000
goto_if_false @HEIST1_3965
if 
  not Char.IsDead(36@)
goto_if_false @HEIST1_3965
if 
  not Char.IsDead(37@)
goto_if_false @HEIST1_3965
if 
  not Char.IsDead(38@)
goto_if_false @HEIST1_3965
Char.ClearTasks(36@)
Task.TurnCharToFaceChar(36@, 37@)
TIMERB = 0

:HEIST1_3965
if 
  174@ == 0
goto_if_false @HEIST1_4068
if 
  not Char.IsDead(37@)
goto_if_false @HEIST1_4068
if 
  Char.LocateAnyMeansChar2D($scplayer, 37@, 5.0, 5.0, False)
goto_if_false @HEIST1_4068
if 
  not Char.IsDead(36@)
goto_if_false @HEIST1_4068
Char.ClearTasks(36@)
Task.LookAtChar(36@, $scplayer, 5)
174@ = 99

:HEIST1_4068
if 
  220@ == 0
goto_if_false @HEIST1_4142
if 
  not Char.IsDead(37@)
goto_if_false @HEIST1_4142
if 
  Char.LocateAnyMeansChar2D($scplayer, 37@, 35.0, 35.0, False)
goto_if_false @HEIST1_4142
Text.ClearPrints
220@ = 99

:HEIST1_4142
if 
  175@ == 0
goto_if_false @HEIST1_4211
if 
  Char.DoesExist(37@)
goto_if_false @HEIST1_4211
if 
  Char.HasBeenDamagedByChar(37@, $scplayer)
goto_if_false @HEIST1_4211
Text.ClearPrints
308@ = 1
175@ = 1

:HEIST1_4211
if 
  175@ == 0
goto_if_false @HEIST1_4278
if 
  Char.DoesExist(36@)
goto_if_false @HEIST1_4278
if 
  Char.HasBeenDamagedByChar(36@, $scplayer)
goto_if_false @HEIST1_4278
308@ = 2
175@ = 1

:HEIST1_4278
if 
  175@ == 0
goto_if_false @HEIST1_4347
if 
  Char.DoesExist(35@)
goto_if_false @HEIST1_4347
if 
  Char.HasBeenDamagedByChar(35@, $scplayer)
goto_if_false @HEIST1_4347
Text.ClearPrints
308@ = 3
175@ = 1

:HEIST1_4347
if 
  175@ == 0
goto_if_false @HEIST1_4416
if 
  Char.DoesExist(38@)
goto_if_false @HEIST1_4416
if 
  Char.HasBeenDamagedByChar(38@, $scplayer)
goto_if_false @HEIST1_4416
Text.ClearPrints
308@ = 4
175@ = 1

:HEIST1_4416
if 
  175@ == 0
goto_if_false @HEIST1_4485
if 
  Char.DoesExist(39@)
goto_if_false @HEIST1_4485
if 
  Char.HasBeenDamagedByChar(39@, $scplayer)
goto_if_false @HEIST1_4485
Text.ClearPrints
308@ = 6
175@ = 1

:HEIST1_4485
if 
  175@ == 1
goto_if_false @HEIST1_4812
174@ = 99
if 
  Char.IsDead(35@)
goto_if_false @HEIST1_4531
Blip.Remove(168@)

:HEIST1_4531
if 
  Char.IsDead(36@)
goto_if_false @HEIST1_4552
Blip.Remove(169@)

:HEIST1_4552
if 
  Char.IsDead(38@)
goto_if_false @HEIST1_4573
Blip.Remove(171@)

:HEIST1_4573
if 
  Char.IsDead(39@)
goto_if_false @HEIST1_4594
Blip.Remove(172@)

:HEIST1_4594
if 
  not Char.IsDead(37@)
goto_if_false @HEIST1_4637
Char.ClearTasks(37@)
Task.StayInSamePlace(37@, False)
Task.SmartFleeChar(37@, $scplayer, 100.0, -1)

:HEIST1_4637
if 
  not Char.IsDead(36@)
goto_if_false @HEIST1_4673
Char.ClearTasks(36@)
Task.SmartFleeChar(36@, $scplayer, 100.0, -1)

:HEIST1_4673
if 
  not Char.IsDead(35@)
goto_if_false @HEIST1_4709
Char.ClearTasks(35@)
Task.SmartFleeChar(35@, $scplayer, 100.0, -1)

:HEIST1_4709
if 
  not Char.IsDead(38@)
goto_if_false @HEIST1_4752
Char.ClearTasks(38@)
Char.DisableSpeech(38@, True)
Task.SmartFleeChar(38@, $scplayer, 100.0, -1)

:HEIST1_4752
if 
  not Char.IsDead(39@)
goto_if_false @HEIST1_4795
Char.ClearTasks(39@)
Char.DisableSpeech(39@, True)
Task.SmartFleeChar(39@, $scplayer, 100.0, -1)

:HEIST1_4795
Streaming.RemoveAnimation("CAMERA")
175@ = 2

:HEIST1_4812
if 
  175@ == 2
goto_if_false @HEIST1_5104
if 
  Char.IsDead(35@)
goto_if_false @HEIST1_4851
Blip.Remove(168@)

:HEIST1_4851
if 
  Char.IsDead(36@)
goto_if_false @HEIST1_4872
Blip.Remove(169@)

:HEIST1_4872
if 
  Char.IsDead(39@)
goto_if_false @HEIST1_4893
Blip.Remove(172@)

:HEIST1_4893
if 
  Char.IsDead(38@)
goto_if_false @HEIST1_4914
Blip.Remove(171@)

:HEIST1_4914
if 
  Char.IsDead(37@)
goto_if_false @HEIST1_5104
if 
  311@ == 0
goto_if_false @HEIST1_5104
151@ = 1

:HEIST1_4955
if 
  6 > 151@
goto_if_false @HEIST1_4996
Blip.Remove(167@(151@,6i))
151@ += 1
goto @HEIST1_4955

:HEIST1_4996
Text.ClearPrints
202@, 203@, 204@ = World.GetDeadCharPickupCoords(37@)
154@ = Pickup.CreateWithAmmo(367, PickupType.Once, 20, 202@, 203@, 204@)
155@ = Blip.AddForPickup(154@)
Blip.ChangeColor(155@, BlipColor.Green)
308@ = 0
Text.ClearPrints
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
311@ = 0
310@ = 0
Text.PrintNow('HEI1_39', 6000, 1)
175@ = 3

:HEIST1_5104
if 
  Pickup.HasBeenCollected(154@)
goto_if_false @HEIST1_5229
if 
  Char.HasGotWeapon($scplayer, WeaponType.Camera)
goto_if_false @HEIST1_5229
Blip.Remove(155@)
199@ = 1
Text.ClearPrints
Text.PrintNow('HEI1_40', 6000, 1)
177@ = 5
205@ = 1
TIMERB = 0
156@ = Blip.AddForCoord(2414.812, 1124.435, 9.813)
Blip.ChangeColor(156@, BlipColor.Yellow)
World.SwitchEntryExit('PAPER', True)

:HEIST1_5229
if 
  205@ == 1
goto_if_false @HEIST1_5291
if 
  TIMERB > 12000
goto_if_false @HEIST1_5291
Text.ClearPrints
Text.Print('HEI1_1', 6000, 1)
205@ = 2

:HEIST1_5291
if 
  199@ == 1
goto_if_false @HEIST1_5461
if 
  184@ == 0
goto_if_false @HEIST1_5461
if 
  not Char.HasGotWeapon($scplayer, WeaponType.Camera)
goto_if_false @HEIST1_5461
Text.PrintNow('HEI1_11', 6000, 1)
82@(201@,20i) = Char.Create(PedType.CivMale, 59, 2030.703, 1489.388, 9.8203)
Task.WanderStandard(82@(201@,20i))
164@ = Blip.AddForChar(82@(201@,20i))
Blip.ChangeColor(164@, BlipColor.Red)
Char.GiveWeapon(82@(201@,20i), WeaponType.Camera, 30000)
Char.SetDropsWeaponsWhenDead(82@(201@,20i), False)
Char.SetDecisionMaker(82@(201@,20i), 102@)
199@ = 2

:HEIST1_5461
if 
  199@ == 2
goto_if_false @HEIST1_5733
if 
  184@ == 0
goto_if_false @HEIST1_5733
if 
  not Char.HasGotWeapon($scplayer, WeaponType.Camera)
goto_if_false @HEIST1_5642
if 
  Char.IsDead(82@(201@,20i))
goto_if_false @HEIST1_5642
Blip.Remove(164@)
202@, 203@, 204@ = World.GetDeadCharPickupCoords(82@(201@,20i))
154@ = Pickup.CreateWithAmmo(367, PickupType.Once, 60, 202@, 203@, 204@)
164@ = Blip.AddForPickup(154@)
Blip.ChangeColor(164@, BlipColor.Green)
Char.MarkAsNoLongerNeeded(82@(201@,20i))
if 
  19 > 201@
goto_if_false @HEIST1_5635
201@ += 1
227@ = 0

:HEIST1_5635
199@ = 3

:HEIST1_5642
if 
  Char.HasGotWeapon($scplayer, WeaponType.Camera)
goto_if_false @HEIST1_5733
if 
  Char.DoesExist(82@(201@,20i))
goto_if_false @HEIST1_5721
Char.MarkAsNoLongerNeeded(82@(201@,20i))
if 
  19 > 201@
goto_if_false @HEIST1_5721
201@ += 1
227@ = 0

:HEIST1_5721
Blip.Remove(164@)
199@ = 1

:HEIST1_5733
if 
  199@ == 3
goto_if_false @HEIST1_5797
if 
  not Char.HasGotWeapon($scplayer, WeaponType.Camera)
goto_if_false @HEIST1_5797
if 
  Pickup.HasBeenCollected(154@)
goto_if_false @HEIST1_5797
Blip.Remove(164@)
199@ = 1

:HEIST1_5797
if 
  227@ == 0
goto_if_false @HEIST1_5893
if 
  Char.DoesExist(82@(201@,20i))
goto_if_false @HEIST1_5893
if 
  Char.HasBeenDamagedByChar(82@(201@,20i), $scplayer)
goto_if_false @HEIST1_5893
Char.ClearTasks(82@(201@,20i))
Task.SmartFleeChar(82@(201@,20i), $scplayer, 100.0, -1)
227@ = 1

:HEIST1_5893
if 
  199@ > 0
goto_if_false @HEIST1_5989
if 
  184@ == 0
goto_if_false @HEIST1_5989
if 
  Char.HasGotWeapon($scplayer, WeaponType.Camera)
goto_if_false @HEIST1_5989
200@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Camera)
if 
  200@ == 0
goto_if_false @HEIST1_5989
Char.RemoveWeapon($scplayer, WeaponType.Camera)
199@ = 1

:HEIST1_5989
if 
  177@ == 5
goto_if_false @HEIST1_7788
if 
  218@ == 0
goto_if_false @HEIST1_7599
if 
  Char.LocateAnyMeans3D($scplayer, 2414.812, 1124.435, 9.813, 50.0, 50.0, 20.0, False)
goto_if_false @HEIST1_7599
65@ = Char.Create(PedType.CivMale, 147, 366.2195, 178.2328, 1007.398)
Char.DisableSpeech(65@, False)
Char.SetDecisionMaker(65@, 102@)
Char.SetHeading(65@, 256.0)
Char.SetHasUsedEntryExit(65@, 2415.348, 1123.942, 10.0)
66@ = Char.Create(PedType.CivMale, 17, 367.4051, 178.2571, 1007.397)
Char.SetDecisionMaker(66@, 102@)
Char.DisableSpeech(66@, False)
Char.SetHeading(66@, 75.0)
Char.SetHasUsedEntryExit(66@, 2415.348, 1123.942, 10.0)
67@ = Char.Create(PedType.CivMale, 17, 336.205, 173.5649, 1018.984)
Char.SetDecisionMaker(67@, 102@)
Char.DisableSpeech(67@, False)
Char.SetHeading(67@, 21.0)
Char.SetHasUsedEntryExit(67@, 2415.348, 1123.942, 10.0)
68@ = Char.Create(PedType.CivMale, 147, 335.1483, 175.8309, 1018.984)
Char.SetDecisionMaker(68@, 102@)
Char.DisableSpeech(68@, False)
Char.SetHeading(68@, 200.0)
Char.SetHasUsedEntryExit(68@, 2415.348, 1123.942, 10.0)
69@ = Char.Create(PedType.CivMale, 17, 347.6199, 171.2935, 1018.991)
Char.SetDecisionMaker(69@, 102@)
Char.DisableSpeech(69@, False)
Char.SetHeading(69@, 89.0)
Char.SetHasUsedEntryExit(69@, 2415.348, 1123.942, 10.0)
70@ = Char.Create(PedType.CivMale, 147, 347.7367, 172.3383, 1018.991)
Char.SetDecisionMaker(70@, 102@)
Char.DisableSpeech(70@, False)
Char.SetHeading(70@, 270.0)
Char.SetHasUsedEntryExit(70@, 2415.348, 1123.942, 10.0)
71@ = Char.Create(PedType.CivMale, 147, 360.7583, 175.1333, 1018.984)
Char.SetDecisionMaker(71@, 102@)
Char.DisableSpeech(71@, False)
Char.SetHeading(71@, 162.0)
Char.SetHasUsedEntryExit(71@, 2415.348, 1123.942, 10.0)
72@ = Char.Create(PedType.CivFemale, 12, 361.4531, 176.2417, 1018.984)
Char.SetDecisionMaker(72@, 102@)
Char.SetHeading(72@, 0.0)
Char.DisableSpeech(72@, False)
Char.SetHasUsedEntryExit(72@, 2415.348, 1123.942, 10.0)
73@ = Char.Create(PedType.CivMale, 17, 359.5063, 177.6107, 1018.984)
Char.SetDecisionMaker(73@, 102@)
Char.SetHeading(73@, 184.0)
Char.DisableSpeech(73@, False)
Char.SetHasUsedEntryExit(73@, 2415.348, 1123.942, 10.0)
Task.SitDown(73@, 500000)
45@ = Char.Create(PedType.CivFemale, 12, 359.7724, 173.5793, 1007.389)
Char.SetHasUsedEntryExit(45@, 2415.348, 1123.942, 10.0)
Char.SetHeading(45@, 261.0)
Char.SetDecisionMaker(45@, 103@)
Char.SetNeverTargeted(45@, True)
52@ = Char.Create(PedType.Mission1, 71, 365.3421, 188.8672, 1007.391)
Char.SetHeading(52@, 172.9746)
Char.SetDecisionMaker(52@, 103@)
Char.GiveWeapon(52@, WeaponType.Pistol, 30000)
Char.SetHasUsedEntryExit(52@, 2415.348, 1123.942, 10.0)
53@ = Char.Create(PedType.Mission1, 71, 376.3221, 170.1705, 1007.398)
Char.SetHeading(53@, 314.7879)
Char.SetDecisionMaker(53@, 103@)
Char.GiveWeapon(53@, WeaponType.Pistol, 30000)
Char.SetHasUsedEntryExit(53@, 2415.348, 1123.942, 10.0)
54@ = Char.Create(PedType.Mission1, 71, 351.8366, 163.8015, 1024.786)
Char.SetHeading(54@, 239.6)
Char.SetDecisionMaker(54@, 103@)
Char.GiveWeapon(54@, WeaponType.Pistol, 30000)
Char.SetHasUsedEntryExit(54@, 2415.348, 1123.942, 10.0)
47@ = Char.Create(PedType.Mission1, 147, 355.1732, 172.5407, 1024.781)
Char.SetHeading(47@, 259.56)
Char.SetDecisionMaker(47@, 102@)
Char.SetHasUsedEntryExit(47@, 2415.348, 1123.942, 10.0)
48@ = Char.Create(PedType.Mission1, 17, 355.8736, 172.4779, 1024.781)
Char.SetHeading(48@, 80.67)
Char.SetDecisionMaker(48@, 102@)
Char.SetHasUsedEntryExit(48@, 2415.348, 1123.942, 10.0)
49@ = Char.Create(PedType.Mission1, 147, 362.339, 155.2859, 1024.781)
Char.SetHeading(49@, 178.989)
Char.SetDecisionMaker(49@, 102@)
Task.ScratchHead(49@)
Char.SetHasUsedEntryExit(49@, 2415.348, 1123.942, 10.0)
50@ = Char.Create(PedType.Mission1, 17, 362.7949, 156.2016, 1024.781)
Char.SetHeading(50@, 20.989)
Char.SetDecisionMaker(50@, 102@)
Task.ScratchHead(50@)
Char.SetHasUsedEntryExit(50@, 2415.348, 1123.942, 10.0)
if 
  not Char.IsDead(65@)
goto_if_false @HEIST1_7319
if 
  not Char.IsDead(66@)
goto_if_false @HEIST1_7319
Char.ClearTasks(65@)
Char.ClearTasks(66@)
Task.ChatWithChar(65@, 66@, True, 1)
Task.ChatWithChar(66@, 65@, False, 1)

:HEIST1_7319
if 
  not Char.IsDead(67@)
goto_if_false @HEIST1_7385
if 
  not Char.IsDead(68@)
goto_if_false @HEIST1_7385
Char.ClearTasks(67@)
Char.ClearTasks(68@)
Task.ChatWithChar(67@, 68@, True, 1)
Task.ChatWithChar(68@, 67@, False, 1)

:HEIST1_7385
if 
  not Char.IsDead(69@)
goto_if_false @HEIST1_7451
if 
  not Char.IsDead(70@)
goto_if_false @HEIST1_7451
Char.ClearTasks(69@)
Char.ClearTasks(70@)
Task.ChatWithChar(69@, 70@, True, 1)
Task.ChatWithChar(70@, 69@, False, 1)

:HEIST1_7451
if 
  not Char.IsDead(47@)
goto_if_false @HEIST1_7517
if 
  not Char.IsDead(48@)
goto_if_false @HEIST1_7517
Char.ClearTasks(47@)
Char.ClearTasks(48@)
Task.ChatWithChar(47@, 48@, True, 1)
Task.ChatWithChar(48@, 47@, False, 1)

:HEIST1_7517
if 
  not Char.IsDead(49@)
goto_if_false @HEIST1_7583
if 
  not Char.IsDead(50@)
goto_if_false @HEIST1_7583
Char.ClearTasks(49@)
Char.ClearTasks(50@)
Task.ChatWithChar(49@, 50@, True, 1)
Task.ChatWithChar(50@, 49@, False, 1)

:HEIST1_7583
Streaming.MarkModelAsNoLongerNeeded(147)
Streaming.MarkModelAsNoLongerNeeded(17)
218@ = 1

:HEIST1_7599
if 
  Char.LocateAnyMeans3D($scplayer, 387.278, 173.576, 1007.391, 5.0, 5.0, 2.0, False)
goto_if_false @HEIST1_7788
177@ = 10
TIMERA = 0
TIMERB = 0
Text.PrintNow('HEI1_9', 4000, 1)
180@ = 1
179@ = 1
Char.SetHasUsedEntryExit($scplayer, 2415.348, 1123.942, 10.0)
Hud.SetRadarZoom(95)
if 
  not Char.IsDead(45@)
goto_if_false @HEIST1_7788
Char.SetHasUsedEntryExit(45@, 2415.348, 1123.942, 10.0)
Task.SitDown(45@, 500000)
Blip.Remove(156@)
157@ = Blip.AddForChar(45@)
Blip.ChangeColor(157@, BlipColor.Blue)

:HEIST1_7788
if 
  177@ > 5
goto_if_false @HEIST1_8173
if 
  179@ == 0
goto_if_false @HEIST1_8006
if 
  Char.LocateAnyMeans3D($scplayer, 387.278, 173.576, 1007.391, 5.0, 5.0, 2.0, False)
goto_if_false @HEIST1_8006
World.ClearArea(362.2167, 174.5354, 1007.398, 1000.0, False)
179@ = 1
Hud.SetRadarZoom(95)
if 
  316@ > 1
goto_if_false @HEIST1_7932
316@ = 1

:HEIST1_7932
if 
  25 > 177@
goto_if_false @HEIST1_8006
Blip.Remove(156@)
if 
  not Char.IsDead(45@)
goto_if_false @HEIST1_8006
Char.SetHasUsedEntryExit(45@, 2415.348, 1123.942, 10.0)
157@ = Blip.AddForChar(45@)
Blip.ChangeColor(157@, BlipColor.Blue)

:HEIST1_8006
if 
  179@ == 1
goto_if_false @HEIST1_8173
if 
  Char.LocateAnyMeans3D($scplayer, 2415.6, 1123.24, 9.813, 5.0, 5.0, 2.0, False)
goto_if_false @HEIST1_8173
181@ = 0
Text.ClearPrints
179@ = 0
Hud.SetRadarZoom(0)
if 
  25 > 177@
goto_if_false @HEIST1_8151
if 
  not Char.IsDead(45@)
goto_if_false @HEIST1_8151
Blip.Remove(157@)
156@ = Blip.AddForCoord(2414.812, 1124.435, 9.813)

:HEIST1_8151
if 
  316@ > 1
goto_if_false @HEIST1_8173
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:HEIST1_8173
if 
  177@ == 10
goto_if_false @HEIST1_8435
if 
  not Char.IsDead(45@)
goto_if_false @HEIST1_8435
if 
  Char.LocateAnyMeansChar2D($scplayer, 45@, 4.0, 4.0, False)
goto_if_false @HEIST1_8435
Char.ClearTasks(45@)
Task.TurnCharToFaceChar(45@, $scplayer)
Conversation.StartSettingUp(45@)
Conversation.SetUpNodeWithScriptedSpeech('HEQ1', 'HEQ2', 'HEX1B', 30800, 30802, 30801)
Conversation.SetUpEndNodeWithScriptedSpeech('HEX1B', 30814)
Conversation.SetUpNodeWithScriptedSpeech('HEQ2', 'HEQ4', 'HEX2', 30803, 30805, 30804)
Conversation.SetUpEndNodeWithScriptedSpeech('HEQ4', 30807)
Conversation.SetUpNodeWithScriptedSpeech('HEX2', 'HEQ4C', 'HEQ5', 30815, 30818, 30817)
Conversation.SetUpEndNodeWithScriptedSpeech('HEQ4C', 30809)
Conversation.SetUpEndNodeWithScriptedSpeech('HEQ5', 30810)
Conversation.FinishSettingUp
177@ = 15

:HEIST1_8435
if 
  177@ == 15
goto_if_false @HEIST1_8519
if 
  not Char.IsDead(45@)
goto_if_false @HEIST1_8519
if 
  Conversation.IsAtNode(45@, 'HEQ1')
goto_if_false @HEIST1_8519
Text.ClearHelp
Blip.Remove(157@)
Text.PrintHelpForever('TALK_1')
177@ = 20

:HEIST1_8519
if 
  177@ == 20
goto_if_false @HEIST1_9208
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @HEIST1_8562
Text.ClearHelp

:HEIST1_8562
if 
  not Char.IsDead(45@)
goto_if_false @HEIST1_9208
if 
  Conversation.IsAtNode(45@, 'HEQ4')
goto_if_false @HEIST1_8629
Text.ClearHelp
Blip.Remove(157@)
Blip.Remove(156@)
177@ = 24
228@ = 0

:HEIST1_8629
if 
  Conversation.IsAtNode(45@, 'HEQ4C')
goto_if_false @HEIST1_8680
Text.ClearHelp
Blip.Remove(157@)
Blip.Remove(156@)
228@ = 0
177@ = 24

:HEIST1_8680
if 
  Conversation.IsAtNode(45@, 'HEX1B')
goto_if_false @HEIST1_8781
Text.PrintHelpForever('HEIH9')
183@ = 1
177@ = 22
228@ = 0
if 
  not Char.IsDead(45@)
goto_if_false @HEIST1_8781
Char.ClearTasks(45@)
Task.SitDown(45@, 10000)
157@ = Blip.AddForChar(45@)
Blip.ChangeColor(157@, BlipColor.Blue)

:HEIST1_8781
if 
  Conversation.IsAtNode(45@, 'HEQ5')
goto_if_false @HEIST1_8882
Text.PrintHelpForever('HEIH9')
183@ = 1
177@ = 22
228@ = 0
if 
  not Char.IsDead(45@)
goto_if_false @HEIST1_8882
Char.ClearTasks(45@)
Task.SitDown(45@, 10000)
157@ = Blip.AddForChar(45@)
Blip.ChangeColor(157@, BlipColor.Blue)

:HEIST1_8882
if 
  Conversation.IsAtNode(45@, 'HEX1')
goto_if_false @HEIST1_8983
Text.PrintHelpForever('HEIH9')
183@ = 1
177@ = 22
228@ = 0
if 
  not Char.IsDead(45@)
goto_if_false @HEIST1_8983
Char.ClearTasks(45@)
Task.SitDown(45@, 10000)
157@ = Blip.AddForChar(45@)
Blip.ChangeColor(157@, BlipColor.Blue)

:HEIST1_8983
if 
  228@ == 0
goto_if_false @HEIST1_9040
if 
  Conversation.IsAtNode(45@, 'HEX2')
goto_if_false @HEIST1_9040
TIMERA = 0
228@ = 1

:HEIST1_9040
if 
  228@ == 1
goto_if_false @HEIST1_9093
if 
  TIMERA > 4000
goto_if_false @HEIST1_9093
Text.ClearPrints
308@ = 12
228@ = 2

:HEIST1_9093
if 
  not Char.LocateAnyMeansChar2D($scplayer, 45@, 5.0, 5.0, False)
goto_if_false @HEIST1_9208
183@ = 1
177@ = 22
if 
  not Char.IsDead(45@)
goto_if_false @HEIST1_9208
Char.ClearTasks(45@)
Task.SitDown(45@, 10000)
Text.ClearPrints
Text.ClearHelp
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
308@ = 21
157@ = Blip.AddForChar(45@)
Blip.ChangeColor(157@, BlipColor.Blue)
228@ = 0

:HEIST1_9208
if 
  177@ == 22
goto_if_false @HEIST1_9261
if 
  not Char.IsDead(45@)
goto_if_false @HEIST1_9247
Conversation.ClearForChar(45@)

:HEIST1_9247
228@ = 0
177@ = 23

:HEIST1_9261
if 
  177@ == 23
goto_if_false @HEIST1_9419
if 
  not Char.IsDead(45@)
goto_if_false @HEIST1_9419
if 
  Char.LocateAnyMeansChar2D($scplayer, 45@, 10.0, 10.0, False)
goto_if_false @HEIST1_9386
Text.PrintHelpForever('HEIH9')
if 
  183@ == 1
goto_if_false @HEIST1_9386
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
goto_if_false @HEIST1_9386
177@ = 10
183@ = 0

:HEIST1_9386
if 
  not Char.LocateAnyMeansChar2D($scplayer, 45@, 10.0, 10.0, False)
goto_if_false @HEIST1_9419
Text.ClearHelp

:HEIST1_9419
if 
  177@ == 24
goto_if_false @HEIST1_9519
if 
  not Char.IsDead(45@)
goto_if_false @HEIST1_9465
228@ = 0
Conversation.ClearForChar(45@)

:HEIST1_9465
166@ = Blip.AddForCoord(372.253, 164.4298, 1007.398)
Blip.SetEntryExit(166@, 2415.348, 1123.942, 10.0)
177@ = 25
183@ = 0

:HEIST1_9519
if 
  177@ == 25
goto_if_false @HEIST1_9717
Text.ClearHelp
189@ = 1
Object.FreezePosition(109@, False)
114@ = Object.Create(#DYN_AIRCON, 349.3042, 189.4448, 1018.984)
Object.SetRotation(114@, 0.0, 0.0, 90.0)
Object.SetHealth(114@, 450)
116@ = Object.Create(#DYN_AIRCON, 349.3042, 189.4448, 1019.784)
Object.MakeTargetable(116@, True)
Object.SetRotation(116@, 0.0, 0.0, 90.0)
Object.SetHealth(116@, 450)
117@ = Object.GetHealth(116@)
118@ = Object.GetMass(116@)
177@ = 27
173@ = 1
TIMERA = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 22600)
315@ = 1

:HEIST1_9717
if 
  315@ == 1
goto_if_false @HEIST1_9784
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST1_9784
if 
  Object.DoesExist(116@)
goto_if_false @HEIST1_9784
Audio.AttachMissionAudioToObject(MissionAudioSlot.Slot3, 116@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
315@ = 2

:HEIST1_9784
if 
  177@ == 27
goto_if_false @HEIST1_9996
if 
  TIMERA > 3000
goto_if_false @HEIST1_9864
if 
  173@ == 1
goto_if_false @HEIST1_9864
Text.ClearPrints
Text.PrintNow('HEI1_33', 4000, 1)
173@ = 0

:HEIST1_9864
if 
  Char.LocateAnyMeans3D($scplayer, 372.253, 164.4298, 1007.398, 1.0, 1.0, 1.5, False)
goto_if_false @HEIST1_9996
Blip.Remove(166@)
173@ = 0
Text.ClearPrints
Text.PrintNow('HEI1_34', 6000, 1)
158@ = Blip.AddForCoord(346.9205, 165.9382, 1024.781)
Blip.SetEntryExit(158@, 2415.348, 1123.942, 10.0)
Blip.ChangeColor(158@, BlipColor.Yellow)
177@ = 30

:HEIST1_9996
if 
  180@ == 1
goto_if_false @HEIST1_14603
if 
  179@ == 1
goto_if_false @HEIST1_14603
if 
  178@ == 0
goto_if_false @HEIST1_14603
if 
  not Char.IsDead(52@)
goto_if_false @HEIST1_10616
if 
  40 > 177@
goto_if_false @HEIST1_10242
if 
  173@ == 0
goto_if_false @HEIST1_10242
if 
  228@ == 0
goto_if_false @HEIST1_10242
if 
  TIMERA > 2000
goto_if_false @HEIST1_10242
if 
  207@ == 0
goto_if_false @HEIST1_10242
Char.ClearTasksImmediately(52@)
Task.TurnCharToFaceChar(52@, $scplayer)
if 
  not Char.IsDead(53@)
goto_if_false @HEIST1_10242
if 
  not Char.IsDead(54@)
goto_if_false @HEIST1_10242
Char.ClearTasksImmediately(53@)
Char.ClearTasksImmediately(54@)
Task.TurnCharToFaceChar(53@, $scplayer)
Task.TurnCharToFaceChar(54@, $scplayer)
TIMERA = 0
113@ = 1

:HEIST1_10242
if 
  Char.HasBeenDamagedByChar(52@, $scplayer)
goto_if_false @HEIST1_10304
Char.ClearTasks(52@)
Task.KillCharOnFoot(52@, $scplayer)
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_10304
if 
  181@ == 0
goto_if_false @HEIST1_10550
if 
  Char.HasSpottedChar(52@, $scplayer)
goto_if_false @HEIST1_10550
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Unarmed)
goto_if_false @HEIST1_10550
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Camera)
goto_if_false @HEIST1_10550
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.BrassKnuckles)
goto_if_false @HEIST1_10550
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Flowers)
goto_if_false @HEIST1_10550
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Dildo1)
goto_if_false @HEIST1_10550
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Dildo2)
goto_if_false @HEIST1_10550
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Vibe1)
goto_if_false @HEIST1_10550
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Vibe2)
goto_if_false @HEIST1_10550
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Parachute)
goto_if_false @HEIST1_10550
Text.ClearPrints
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
311@ = 0
310@ = 0
308@ = 7
TIMERB = 0
181@ = 1

:HEIST1_10550
if 
  207@ == 1
goto_if_false @HEIST1_10616
if 
  208@ == 0
goto_if_false @HEIST1_10616
Char.ClearTasksImmediately(52@)
Task.StayInSamePlace(52@, True)
Task.AimGunAtChar(52@, $scplayer, 5000)
208@ = 1

:HEIST1_10616
if 
  not Char.IsDead(53@)
goto_if_false @HEIST1_11006
if 
  Char.HasBeenDamagedByChar(53@, $scplayer)
goto_if_false @HEIST1_10694
Char.ClearTasks(53@)
Task.KillCharOnFoot(53@, $scplayer)
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_10694
if 
  181@ == 0
goto_if_false @HEIST1_10940
if 
  Char.HasSpottedChar(53@, $scplayer)
goto_if_false @HEIST1_10940
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Unarmed)
goto_if_false @HEIST1_10940
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Camera)
goto_if_false @HEIST1_10940
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.BrassKnuckles)
goto_if_false @HEIST1_10940
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Flowers)
goto_if_false @HEIST1_10940
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Dildo1)
goto_if_false @HEIST1_10940
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Dildo2)
goto_if_false @HEIST1_10940
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Vibe1)
goto_if_false @HEIST1_10940
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Vibe2)
goto_if_false @HEIST1_10940
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Parachute)
goto_if_false @HEIST1_10940
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
Text.ClearPrints
311@ = 0
310@ = 0
308@ = 7
TIMERB = 0
181@ = 1

:HEIST1_10940
if 
  207@ == 1
goto_if_false @HEIST1_11006
if 
  209@ == 0
goto_if_false @HEIST1_11006
Char.ClearTasksImmediately(53@)
Task.StayInSamePlace(53@, True)
Task.AimGunAtChar(53@, $scplayer, 5000)
209@ = 1

:HEIST1_11006
if 
  not Char.IsDead(54@)
goto_if_false @HEIST1_12078
if 
  Char.HasBeenDamagedByChar(54@, $scplayer)
goto_if_false @HEIST1_11084
Char.ClearTasks(54@)
Task.KillCharOnFoot(54@, $scplayer)
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_11084
if 
  189@ == 1
goto_if_false @HEIST1_11193
if 
  188@ == 0
goto_if_false @HEIST1_11193
if 
  Char.LocateAnyMeans3D($scplayer, 367.6113, 162.3746, 1024.781, 3.5, 3.5, 1.5, False)
goto_if_false @HEIST1_11193
if 
  181@ == 0
goto_if_false @HEIST1_11193
188@ = 1

:HEIST1_11193
if 
  Object.HasBeenPhotographed(107@)
goto_if_false @HEIST1_11241
Text.ClearPrints
Text.PrintNow('HEI1_52', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_11241
if 
  181@ == 0
goto_if_false @HEIST1_11525
if 
  Char.LocateAnyMeansChar3D($scplayer, 54@, 10.0, 10.0, 2.0, False)
goto_if_false @HEIST1_11525
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Unarmed)
goto_if_false @HEIST1_11525
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.BrassKnuckles)
goto_if_false @HEIST1_11525
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Flowers)
goto_if_false @HEIST1_11525
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Dildo1)
goto_if_false @HEIST1_11525
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Dildo2)
goto_if_false @HEIST1_11525
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Vibe1)
goto_if_false @HEIST1_11525
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Vibe2)
goto_if_false @HEIST1_11525
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Parachute)
goto_if_false @HEIST1_11525
Text.ClearPrints
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
311@ = 0
310@ = 0
if 
  Char.IsCurrentWeapon($scplayer, WeaponType.Camera)
goto_if_false @HEIST1_11497
308@ = 10
goto @HEIST1_11504

:HEIST1_11497
308@ = 7

:HEIST1_11504
TIMERB = 0
181@ = 1
211@ = 1

:HEIST1_11525
if 
  207@ == 1
goto_if_false @HEIST1_11591
if 
  210@ == 0
goto_if_false @HEIST1_11591
Char.ClearTasksImmediately(54@)
Task.StayInSamePlace(54@, True)
Task.AimGunAtChar(54@, $scplayer, 5000)
210@ = 1

:HEIST1_11591
if 
  189@ == 1
goto_if_false @HEIST1_12078
if 
  188@ == 1
goto_if_false @HEIST1_11814
Player.SetControl($player1, False)
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
311@ = 0
310@ = 0
308@ = 0
Camera.DoFade(500, Fade.Out)

:HEIST1_11672
if 
  Camera.GetFadingStatus
goto_if_false @HEIST1_11696
wait 0
goto @HEIST1_11672

:HEIST1_11696
Text.ClearPrints
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(345.0205, 163.0617, 1026.826, 0.0, 0.0, 0.0)
Camera.PointAtPoint(345.8946, 163.5473, 1026.817, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:HEIST1_11760
if 
  Camera.GetFadingStatus
goto_if_false @HEIST1_11784
wait 0
goto @HEIST1_11760

:HEIST1_11784
188@ = 2
Text.PrintNow('HEI1_6', 4000, 1)
TIMERB = 0

:HEIST1_11814
if 
  188@ == 2
goto_if_false @HEIST1_11893
if 
  TIMERB > 1000
goto_if_false @HEIST1_11858
187@ = 1

:HEIST1_11858
if 
  TIMERB > 4000
goto_if_false @HEIST1_11893
Text.ClearPrints
188@ = 4
TIMERB = 0

:HEIST1_11893
if 
  188@ == 4
goto_if_false @HEIST1_12078
187@ = 0
Camera.DoFade(500, Fade.Out)
Text.ClearPrints

:HEIST1_11927
if 
  Camera.GetFadingStatus
goto_if_false @HEIST1_11951
wait 0
goto @HEIST1_11927

:HEIST1_11951
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Camera.DoFade(500, Fade.In)

:HEIST1_11966
if 
  Camera.GetFadingStatus
goto_if_false @HEIST1_11990
wait 0
goto @HEIST1_11966

:HEIST1_11990
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Text.ClearPrints
Blip.Remove(158@)
160@ = Blip.AddForCoord(357.3549, 193.415, 1018.984)
Blip.SetEntryExit(160@, 2415.348, 1123.942, 10.0)
Blip.ChangeColor(160@, BlipColor.Yellow)
188@ = 99
Text.PrintNow('HEI1_7', 6000, 1)

:HEIST1_12078
if 
  181@ == 1
goto_if_false @HEIST1_13161
if 
  TIMERB > 6000
goto_if_false @HEIST1_12209
if 
  207@ == 0
goto_if_false @HEIST1_12209
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Unarmed)
goto_if_false @HEIST1_12209
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
Text.ClearPrints
311@ = 0
310@ = 0
if 
  not Char.IsCurrentWeapon($scplayer, WeaponType.Camera)
goto_if_false @HEIST1_12202
308@ = 9

:HEIST1_12202
207@ = 1

:HEIST1_12209
if 
  TIMERB > 12000
goto_if_false @HEIST1_12260
Text.ClearPrints
Text.PrintNow('HEI1_50', 6000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_12260
if 
  Char.IsCurrentWeapon($scplayer, WeaponType.Unarmed)
goto_if_false @HEIST1_12353
181@ = 0
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
Text.ClearPrints
311@ = 0
310@ = 0
308@ = 8

:HEIST1_12353
if 
  211@ <> 1
goto_if_false @HEIST1_12464
if 
  Char.IsCurrentWeapon($scplayer, WeaponType.Camera)
goto_if_false @HEIST1_12464
181@ = 0
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
Text.ClearPrints
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_12464
if 
  Char.IsCurrentWeapon($scplayer, WeaponType.BrassKnuckles)
goto_if_false @HEIST1_12557
181@ = 0
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
Text.ClearPrints
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_12557
if 
  Char.IsCurrentWeapon($scplayer, WeaponType.Flowers)
goto_if_false @HEIST1_12650
181@ = 0
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
Text.ClearPrints
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_12650
if 
  Char.IsCurrentWeapon($scplayer, WeaponType.Dildo1)
goto_if_false @HEIST1_12743
181@ = 0
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
Text.ClearPrints
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_12743
if 
  Char.IsCurrentWeapon($scplayer, WeaponType.Dildo2)
goto_if_false @HEIST1_12836
181@ = 0
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
Text.ClearPrints
311@ = 0
310@ = 0
308@ = 8

:HEIST1_12836
if 
  Char.IsCurrentWeapon($scplayer, WeaponType.Vibe1)
goto_if_false @HEIST1_12929
181@ = 0
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
Text.ClearPrints
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_12929
if 
  Char.IsCurrentWeapon($scplayer, WeaponType.Vibe2)
goto_if_false @HEIST1_13022
181@ = 0
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
Text.ClearPrints
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_13022
if 
  Char.IsCurrentWeapon($scplayer, WeaponType.Parachute)
goto_if_false @HEIST1_13115
181@ = 0
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
Text.ClearPrints
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_13115
if 
  Char.IsShooting($scplayer)
goto_if_false @HEIST1_13161
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13161
if 
  Char.DoesExist(65@)
goto_if_false @HEIST1_13262
if 
  Char.HasBeenDamagedByChar(65@, $scplayer)
goto_if_false @HEIST1_13262
if 
  not Char.IsDead(65@)
goto_if_false @HEIST1_13262
Char.ClearTasks(65@)
Task.SmartFleeChar(65@, $scplayer, 100.0, -1)
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13262
if 
  Char.DoesExist(66@)
goto_if_false @HEIST1_13363
if 
  Char.HasBeenDamagedByChar(66@, $scplayer)
goto_if_false @HEIST1_13363
if 
  not Char.IsDead(66@)
goto_if_false @HEIST1_13363
Char.ClearTasks(66@)
Task.SmartFleeChar(66@, $scplayer, 100.0, -1)
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13363
if 
  Char.DoesExist(67@)
goto_if_false @HEIST1_13464
if 
  Char.HasBeenDamagedByChar(67@, $scplayer)
goto_if_false @HEIST1_13464
if 
  not Char.IsDead(67@)
goto_if_false @HEIST1_13464
Char.ClearTasks(67@)
Task.SmartFleeChar(67@, $scplayer, 100.0, -1)
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13464
if 
  Char.DoesExist(68@)
goto_if_false @HEIST1_13565
if 
  Char.HasBeenDamagedByChar(68@, $scplayer)
goto_if_false @HEIST1_13565
if 
  not Char.IsDead(68@)
goto_if_false @HEIST1_13565
Char.ClearTasks(68@)
Task.SmartFleeChar(68@, $scplayer, 100.0, -1)
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13565
if 
  Char.DoesExist(69@)
goto_if_false @HEIST1_13666
if 
  Char.HasBeenDamagedByChar(69@, $scplayer)
goto_if_false @HEIST1_13666
if 
  not Char.IsDead(69@)
goto_if_false @HEIST1_13666
Char.ClearTasks(69@)
Task.SmartFleeChar(69@, $scplayer, 100.0, -1)
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13666
if 
  Char.DoesExist(70@)
goto_if_false @HEIST1_13767
if 
  Char.HasBeenDamagedByChar(70@, $scplayer)
goto_if_false @HEIST1_13767
if 
  not Char.IsDead(70@)
goto_if_false @HEIST1_13767
Char.ClearTasks(70@)
Task.SmartFleeChar(70@, $scplayer, 100.0, -1)
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13767
if 
  Char.DoesExist(71@)
goto_if_false @HEIST1_13868
if 
  Char.HasBeenDamagedByChar(71@, $scplayer)
goto_if_false @HEIST1_13868
if 
  not Char.IsDead(71@)
goto_if_false @HEIST1_13868
Char.ClearTasks(71@)
Task.SmartFleeChar(71@, $scplayer, 100.0, -1)
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13868
if 
  Char.DoesExist(72@)
goto_if_false @HEIST1_13969
if 
  Char.HasBeenDamagedByChar(72@, $scplayer)
goto_if_false @HEIST1_13969
if 
  not Char.IsDead(72@)
goto_if_false @HEIST1_13969
Char.ClearTasks(72@)
Task.SmartFleeChar(72@, $scplayer, 100.0, -1)
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_13969
if 
  Char.DoesExist(73@)
goto_if_false @HEIST1_14070
if 
  Char.HasBeenDamagedByChar(73@, $scplayer)
goto_if_false @HEIST1_14070
if 
  not Char.IsDead(73@)
goto_if_false @HEIST1_14070
Char.ClearTasks(73@)
Task.SmartFleeChar(73@, $scplayer, 100.0, -1)
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_14070
if 
  Char.DoesExist(45@)
goto_if_false @HEIST1_14171
if 
  Char.HasBeenDamagedByChar(45@, $scplayer)
goto_if_false @HEIST1_14171
if 
  not Char.IsDead(45@)
goto_if_false @HEIST1_14171
Char.ClearTasks(45@)
Task.SmartFleeChar(45@, $scplayer, 100.0, -1)
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_14171
if 
  Char.DoesExist(47@)
goto_if_false @HEIST1_14279
if 
  Char.HasBeenDamagedByChar(47@, $scplayer)
goto_if_false @HEIST1_14279
if 
  not Char.IsDead(47@)
goto_if_false @HEIST1_14279
Char.ClearTasks(47@)
Task.SmartFleeChar(47@, $scplayer, 100.0, -1)
gosub @HEIST1_23521
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_14279
if 
  Char.DoesExist(48@)
goto_if_false @HEIST1_14387
if 
  Char.HasBeenDamagedByChar(48@, $scplayer)
goto_if_false @HEIST1_14387
if 
  not Char.IsDead(48@)
goto_if_false @HEIST1_14387
Char.ClearTasks(48@)
Task.SmartFleeChar(48@, $scplayer, 100.0, -1)
gosub @HEIST1_23521
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_14387
if 
  Char.DoesExist(49@)
goto_if_false @HEIST1_14495
if 
  Char.HasBeenDamagedByChar(49@, $scplayer)
goto_if_false @HEIST1_14495
if 
  not Char.IsDead(49@)
goto_if_false @HEIST1_14495
Char.ClearTasks(49@)
Task.SmartFleeChar(49@, $scplayer, 100.0, -1)
gosub @HEIST1_23521
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_14495
if 
  Char.DoesExist(50@)
goto_if_false @HEIST1_14603
if 
  Char.HasBeenDamagedByChar(50@, $scplayer)
goto_if_false @HEIST1_14603
if 
  not Char.IsDead(50@)
goto_if_false @HEIST1_14603
Char.ClearTasks(50@)
Task.SmartFleeChar(50@, $scplayer, 100.0, -1)
gosub @HEIST1_23521
Text.PrintNow('HEI1_50', 4000, 1)
gosub @HEIST1_23552
goto @HEIST1_23584

:HEIST1_14603
if 
  177@ == 30
goto_if_false @HEIST1_15197
if 
  Char.LocateAnyMeans3D($scplayer, 364.4255, 188.2647, 1018.984, 2.0, 2.0, 2.0, False)
goto_if_false @HEIST1_14763
if 
  188@ > 1
goto_if_false @HEIST1_14763
if 
  221@ == 0
goto_if_false @HEIST1_14763
Blip.Remove(160@)
163@ = Blip.AddForObject(114@)
Blip.SetEntryExit(163@, 2415.348, 1123.942, 10.0)
Text.ClearPrints
Text.PrintNow('HEI1_10', 6000, 1)
221@ = 1

:HEIST1_14763
if 
  191@ == 0
goto_if_false @HEIST1_14846
if 
  Object.HasBeenDamaged(114@)
goto_if_false @HEIST1_14846
151@ = Math.RandomIntInRange(1, 4)
Object.Break(114@, 1)
Blip.Remove(163@)
190@ += 1
191@ = 1
190@ = 2
Object.MakeTargetable(114@, False)

:HEIST1_14846
if 
  192@ == 0
goto_if_false @HEIST1_14954
if 
  2 > 190@
goto_if_false @HEIST1_14954
if 
  Object.HasBeenDamaged(116@)
goto_if_false @HEIST1_14954
151@ = Math.RandomIntInRange(1, 4)
Object.Break(116@, 1)
Blip.Remove(163@)
190@ += 1
192@ = 1
190@ = 2
Object.MakeTargetable(116@, False)
TIMERA = 0

:HEIST1_14954
if 
  190@ == 2
goto_if_false @HEIST1_15034
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
315@ = 99
if 
  TIMERA > 1000
goto_if_false @HEIST1_15034
148@ = ScriptFire.Start(350.8387, 190.3284, 1019.0, 1, 151@)
190@ = 3

:HEIST1_15034
if 
  190@ == 3
goto_if_false @HEIST1_15197
177@ = 40
141@ = Particle.Create("TEARGAS", 350.6574, 189.2716, 1019.0, 1)
142@ = Particle.Create("TEARGAS", 350.6574, 189.2716, 1020.0, 1)
143@ = Particle.Create("TEARGAS", 350.8387, 190.3284, 1019.0, 1)
Particle.Play(141@)
Particle.Play(142@)
Particle.Play(143@)
TIMERA = 0
Text.PrintNow('HEI1_20', 4000, 1)
316@ = 1

:HEIST1_15197
if 
  177@ == 40
goto_if_false @HEIST1_15255
if 
  TIMERA > 3000
goto_if_false @HEIST1_15255
180@ = 0
178@ = 1
177@ = 45

:HEIST1_15255
if 
  177@ > 9
goto_if_false @HEIST1_15812
if 
  113@ == 1
goto_if_false @HEIST1_15812
if 
  45 > 177@
goto_if_false @HEIST1_15812
if 
  not Char.IsDead(65@)
goto_if_false @HEIST1_15433
if 
  not Char.IsDead(66@)
goto_if_false @HEIST1_15433
206@ = Char.GetScriptTaskStatus(65@, 1655)
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15433
206@ = Char.GetScriptTaskStatus(66@, 1655)
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15433
Char.ClearTasks(65@)
Char.ClearTasks(66@)
Task.ChatWithChar(65@, 66@, True, 1)
Task.ChatWithChar(66@, 65@, False, 1)

:HEIST1_15433
if 
  not Char.IsDead(67@)
goto_if_false @HEIST1_15557
if 
  not Char.IsDead(68@)
goto_if_false @HEIST1_15557
206@ = Char.GetScriptTaskStatus(67@, 1655)
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15557
206@ = Char.GetScriptTaskStatus(68@, 1655)
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15557
Char.ClearTasks(67@)
Char.ClearTasks(68@)
Task.ChatWithChar(67@, 68@, True, 1)
Task.ChatWithChar(68@, 67@, False, 1)

:HEIST1_15557
if 
  not Char.IsDead(69@)
goto_if_false @HEIST1_15681
if 
  not Char.IsDead(70@)
goto_if_false @HEIST1_15681
206@ = Char.GetScriptTaskStatus(69@, 1655)
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15681
206@ = Char.GetScriptTaskStatus(70@, 1655)
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15681
Char.ClearTasks(69@)
Char.ClearTasks(70@)
Task.ChatWithChar(69@, 70@, True, 1)
Task.ChatWithChar(70@, 69@, False, 1)

:HEIST1_15681
if 
  not Char.IsDead(71@)
goto_if_false @HEIST1_15805
if 
  not Char.IsDead(72@)
goto_if_false @HEIST1_15805
206@ = Char.GetScriptTaskStatus(71@, 1655)
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15805
206@ = Char.GetScriptTaskStatus(72@, 1655)
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15805
Char.ClearTasks(71@)
Char.ClearTasks(72@)
Task.ChatWithChar(71@, 72@, True, 1)
Task.ChatWithChar(72@, 71@, False, 1)

:HEIST1_15805
113@ = 0

:HEIST1_15812
if 
  177@ == 45
goto_if_false @HEIST1_16853
if 
  not Char.IsDead(67@)
goto_if_false @HEIST1_15875
Char.ClearTasks(67@)
Task.FollowPathNodesToCoord(67@, 370.877, 171.6468, 1007.397, 4, -2)

:HEIST1_15875
if 
  not Char.IsDead(69@)
goto_if_false @HEIST1_15920
Char.ClearTasks(69@)
Task.FollowPathNodesToCoord(69@, 370.877, 171.6468, 1007.397, 4, -2)

:HEIST1_15920
if 
  not Char.IsDead(68@)
goto_if_false @HEIST1_15965
Char.ClearTasks(68@)
Task.FollowPathNodesToCoord(68@, 370.877, 171.6468, 1007.397, 4, -2)

:HEIST1_15965
if 
  not Char.IsDead(70@)
goto_if_false @HEIST1_16010
Char.ClearTasks(70@)
Task.FollowPathNodesToCoord(70@, 370.877, 171.6468, 1007.397, 4, -2)

:HEIST1_16010
if 
  not Char.IsDead(71@)
goto_if_false @HEIST1_16055
Char.ClearTasks(71@)
Task.FollowPathNodesToCoord(71@, 370.877, 171.6468, 1007.397, 4, -2)

:HEIST1_16055
if 
  not Char.IsDead(72@)
goto_if_false @HEIST1_16100
Char.ClearTasks(72@)
Task.FollowPathNodesToCoord(72@, 370.877, 171.6468, 1007.397, 4, -2)

:HEIST1_16100
if 
  not Char.IsDead(73@)
goto_if_false @HEIST1_16145
Char.ClearTasks(73@)
Task.FollowPathNodesToCoord(73@, 370.877, 171.6468, 1007.397, 4, -2)

:HEIST1_16145
if 
  not Char.IsDead(50@)
goto_if_false @HEIST1_16194
Char.ClearTasks(50@)
Char.SetDecisionMaker(50@, 103@)
Char.SetCoordinates(50@, 377.7027, 153.2545, 1022.774)

:HEIST1_16194
Camera.DoFade(500, Fade.Out)

:HEIST1_16201
if 
  Camera.GetFadingStatus
goto_if_false @HEIST1_16225
wait 0
goto @HEIST1_16201

:HEIST1_16225
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
ScriptFire.Remove(148@)
Camera.SetFixedPosition(350.4867, 162.1073, 1026.989, 0.0, 0.0, 0.0)
Camera.PointAtPoint(351.4692, 162.1195, 1026.804, SwitchType.JumpCut)
if 
  not Char.IsDead(54@)
goto_if_false @HEIST1_16360
Task.StayInSamePlace(54@, False)
Path.FlushRoute
Path.ExtendRoute(353.4759, 161.9657, 1024.781)
Path.ExtendRoute(365.8191, 162.2179, 1024.781)
Task.FollowPointRoute(54@, 4, RouteMode.Once)

:HEIST1_16360
if 
  not Char.IsDead(47@)
goto_if_false @HEIST1_16501
Char.SetDecisionMaker(47@, 103@)
Char.ClearTasks(47@)
Char.SetCoordinates(47@, 353.9879, 164.0512, 1024.781)
Char.SetHeading(47@, 224.0)
Char.ClearTasks(47@)
Char.SetDecisionMaker(47@, 103@)
Path.FlushRoute
Path.ExtendRoute(355.5494, 162.7226, 1024.774)
Path.ExtendRoute(368.749, 162.4855, 1024.774)
Path.ExtendRoute(378.824, 162.5327, 1024.774)
Task.FollowPointRoute(47@, 4, RouteMode.Once)
194@ = 1

:HEIST1_16501
if 
  not Char.IsDead(48@)
goto_if_false @HEIST1_16642
Char.SetDecisionMaker(48@, 103@)
Char.ClearTasks(48@)
Char.SetCoordinates(48@, 354.1077, 160.163, 1024.781)
Char.SetHeading(48@, 302.0)
Char.ClearTasks(48@)
Char.SetDecisionMaker(48@, 103@)
Path.FlushRoute
Path.ExtendRoute(355.5494, 162.7226, 1024.774)
Path.ExtendRoute(368.749, 162.4855, 1024.774)
Path.ExtendRoute(378.824, 162.5327, 1024.774)
Task.FollowPointRoute(48@, 4, RouteMode.Once)
195@ = 2

:HEIST1_16642
if 
  not Char.IsDead(49@)
goto_if_false @HEIST1_16766
Char.SetDecisionMaker(49@, 103@)
Char.ClearTasks(49@)
Char.SetCoordinates(49@, 364.2849, 160.2124, 1024.789)
Char.SetHeading(49@, 294.5)
Char.ClearTasks(49@)
Char.SetDecisionMaker(49@, 103@)
Path.FlushRoute
Path.ExtendRoute(369.2587, 162.4347, 1024.774)
Path.ExtendRoute(377.2099, 163.5096, 1024.781)
Task.FollowPointRoute(49@, 4, RouteMode.Once)
196@ = 1

:HEIST1_16766
Text.ClearPrints
Camera.DoFade(500, Fade.In)

:HEIST1_16775
if 
  Camera.GetFadingStatus
goto_if_false @HEIST1_16799
wait 0
goto @HEIST1_16775

:HEIST1_16799
177@ = 50
TIMERB = 0
185@ = 1
Text.ClearPrints
Audio.ClearMissionAudio(307@)
Audio.ClearMissionAudio(306@)
311@ = 0
310@ = 0
308@ = 13

:HEIST1_16853
if 
  177@ == 50
goto_if_false @HEIST1_16897
if 
  TIMERB > 4000
goto_if_false @HEIST1_16897
177@ = 55

:HEIST1_16897
if 
  177@ == 55
goto_if_false @HEIST1_17532
185@ = 0
Camera.DoFade(500, Fade.Out)

:HEIST1_16929
if 
  Camera.GetFadingStatus
goto_if_false @HEIST1_16953
wait 0
goto @HEIST1_16929

:HEIST1_16953
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Camera.DoFade(500, Fade.In)
Player.SetControl($player1, True)
151@ = 3
147@ = ScriptFire.Start(350.6574, 189.5716, 1019.0, 1, 151@)
148@ = ScriptFire.Start(350.8387, 190.3284, 1019.0, 1, 2)
177@ = 60
if 
  not Char.IsDead(54@)
goto_if_false @HEIST1_17082
Char.SetDecisionMaker(54@, 104@)
Char.SetCoordinates(54@, 2419.994, 1153.71, 9.8047)

:HEIST1_17082
if 
  not Char.IsDead(53@)
goto_if_false @HEIST1_17126
Char.SetDecisionMaker(53@, 104@)
Char.SetCoordinates(53@, 2419.994, 1145.71, 9.8047)

:HEIST1_17126
if 
  not Char.IsDead(52@)
goto_if_false @HEIST1_17170
Char.SetDecisionMaker(52@, 104@)
Char.SetCoordinates(52@, 2417.655, 1154.085, 9.8047)

:HEIST1_17170
if 
  not Char.IsDead(45@)
goto_if_false @HEIST1_17216
Char.SetCoordinates(45@, 2419.363, 1132.672, 9.8047)
Char.SetHeading(45@, 135.0)

:HEIST1_17216
if 
  not Char.IsDead(65@)
goto_if_false @HEIST1_17237
Char.Delete(65@)

:HEIST1_17237
if 
  not Char.IsDead(66@)
goto_if_false @HEIST1_17258
Char.Delete(66@)

:HEIST1_17258
if 
  not Char.IsDead(47@)
goto_if_false @HEIST1_17309
Char.ClearTasks(47@)
Char.SetCoordinates(47@, 372.0212, 163.0494, 1024.773)
Char.SetHeading(47@, 276.1)

:HEIST1_17309
if 
  not Char.IsDead(48@)
goto_if_false @HEIST1_17360
Char.ClearTasks(48@)
Char.SetCoordinates(48@, 375.6833, 163.8624, 1024.773)
Char.SetHeading(48@, 266.1)

:HEIST1_17360
if 
  not Char.IsDead(49@)
goto_if_false @HEIST1_17411
Char.ClearTasks(49@)
Char.SetCoordinates(49@, 378.0436, 162.5748, 1024.775)
Char.SetHeading(49@, 168.1)

:HEIST1_17411
if 
  not Char.IsDead(50@)
goto_if_false @HEIST1_17462
Char.ClearTasks(50@)
Char.SetCoordinates(50@, 377.7027, 153.2545, 1022.774)
Char.SetHeading(50@, 101.1)

:HEIST1_17462
Text.ClearPrints
Text.PrintNow('HEI1_22', 6000, 1)
Blip.Remove(158@)
158@ = Blip.AddForCoord(346.9205, 165.9382, 1024.781)
Blip.SetEntryExit(158@, 2415.348, 1123.942, 10.0)
Blip.ChangeColor(158@, BlipColor.Yellow)

:HEIST1_17532
if 
  177@ == 60
goto_if_false @HEIST1_18608
if 
  219@ == 0
goto_if_false @HEIST1_17803
if 
  Char.LocateAnyMeans3D($scplayer, 371.0459, 161.5409, 1018.984, 1.5, 1.5, 2.0, False)
goto_if_false @HEIST1_17803
if 
  not Char.IsDead(50@)
goto_if_false @HEIST1_17661
Char.ClearTasks(50@)
Task.FollowPathNodesToCoord(50@, 370.877, 171.6468, 1007.397, 4, -2)

:HEIST1_17661
if 
  not Char.IsDead(49@)
goto_if_false @HEIST1_17706
Char.ClearTasks(49@)
Task.FollowPathNodesToCoord(49@, 379.2716, 173.4771, 1007.397, 4, -2)

:HEIST1_17706
if 
  not Char.IsDead(48@)
goto_if_false @HEIST1_17751
Char.ClearTasks(48@)
Task.FollowPathNodesToCoord(48@, 370.9119, 175.3713, 1007.397, 4, -2)

:HEIST1_17751
if 
  not Char.IsDead(47@)
goto_if_false @HEIST1_17796
Char.ClearTasks(47@)
Task.FollowPathNodesToCoord(47@, 370.877, 171.6468, 1007.397, 4, -2)

:HEIST1_17796
219@ = 1

:HEIST1_17803
if 
  219@ == 1
goto_if_false @HEIST1_18141
if 
  225@ == 0
goto_if_false @HEIST1_17901
if 
  not Char.IsDead(50@)
goto_if_false @HEIST1_17901
if 
  Char.HasBeenDamagedByChar(50@, $scplayer)
goto_if_false @HEIST1_17901
Char.ClearTasks(50@)
Task.SmartFleeChar(50@, $scplayer, 100.0, -1)
225@ = 1

:HEIST1_17901
if 
  224@ == 0
goto_if_false @HEIST1_17981
if 
  not Char.IsDead(49@)
goto_if_false @HEIST1_17981
if 
  Char.HasBeenDamagedByChar(49@, $scplayer)
goto_if_false @HEIST1_17981
Char.ClearTasks(49@)
Task.SmartFleeChar(49@, $scplayer, 100.0, -1)
224@ = 1

:HEIST1_17981
if 
  223@ == 0
goto_if_false @HEIST1_18061
if 
  not Char.IsDead(48@)
goto_if_false @HEIST1_18061
if 
  Char.HasBeenDamagedByChar(48@, $scplayer)
goto_if_false @HEIST1_18061
Char.ClearTasks(48@)
Task.SmartFleeChar(48@, $scplayer, 100.0, -1)
223@ = 1

:HEIST1_18061
if 
  222@ == 0
goto_if_false @HEIST1_18141
if 
  not Char.IsDead(47@)
goto_if_false @HEIST1_18141
if 
  Char.HasBeenDamagedByChar(47@, $scplayer)
goto_if_false @HEIST1_18141
Char.ClearTasks(47@)
Task.SmartFleeChar(47@, $scplayer, 100.0, -1)
222@ = 1

:HEIST1_18141
if 
  Object.HasBeenPhotographed(107@)
goto_if_false @HEIST1_18608
184@ = 1
Blip.Remove(158@)
Text.ClearPrints
Text.ClearHelp
Text.PrintNow('HEI1_25', 6000, 1)
161@ = Blip.AddForCoord(2418.682, 1123.352, 9.8047)
Blip.ChangeColor(161@, BlipColor.Yellow)
Particle.Kill(141@)
Particle.Kill(142@)
Particle.Kill(143@)
138@ = Particle.Create("TEARGAS", 369.2483, 162.346, 1026.774, 1)
139@ = Particle.Create("TEARGAS", 373.3976, 162.6828, 1026.774, 1)
140@ = Particle.Create("TEARGAS", 378.9187, 163.1306, 1026.774, 1)
Particle.Play(138@)
Particle.Play(139@)
Particle.Play(140@)
if 
  not Char.IsDead(47@)
goto_if_false @HEIST1_18360
Char.Delete(47@)

:HEIST1_18360
if 
  not Char.IsDead(48@)
goto_if_false @HEIST1_18381
Char.Delete(48@)

:HEIST1_18381
if 
  not Char.IsDead(49@)
goto_if_false @HEIST1_18402
Char.Delete(49@)

:HEIST1_18402
if 
  not Char.IsDead(50@)
goto_if_false @HEIST1_18423
Char.Delete(50@)

:HEIST1_18423
if 
  not Char.IsDead(67@)
goto_if_false @HEIST1_18444
Char.Delete(67@)

:HEIST1_18444
if 
  not Char.IsDead(68@)
goto_if_false @HEIST1_18465
Char.Delete(68@)

:HEIST1_18465
if 
  not Char.IsDead(69@)
goto_if_false @HEIST1_18486
Char.Delete(69@)

:HEIST1_18486
if 
  not Char.IsDead(70@)
goto_if_false @HEIST1_18507
Char.Delete(70@)

:HEIST1_18507
if 
  not Char.IsDead(71@)
goto_if_false @HEIST1_18528
Char.Delete(71@)

:HEIST1_18528
if 
  not Char.IsDead(72@)
goto_if_false @HEIST1_18549
Char.Delete(72@)

:HEIST1_18549
if 
  not Char.IsDead(73@)
goto_if_false @HEIST1_18570
Char.Delete(73@)

:HEIST1_18570
198@ = 1
TIMERA = 0
177@ = 99
Streaming.LoadScene(376.9717, 192.0647, 1013.18)

:HEIST1_18608
if 
  184@ == 1
goto_if_false @HEIST1_18916
if 
  TIMERA > 2500
goto_if_false @HEIST1_18916
Streaming.RequestModel(275)
Streaming.RequestModel(282)
Streaming.RequestModel(147)

:HEIST1_18660
if or
  not Streaming.HasModelLoaded(275)
  not Streaming.HasModelLoaded(282)
  not Streaming.HasModelLoaded(147)
goto_if_false @HEIST1_18697
wait 0
goto @HEIST1_18660

:HEIST1_18697
78@ = Char.Create(PedType.Mission1, 147, 376.9717, 192.0647, 1013.18)
Char.SetHeading(78@, 266.7879)
Char.SetDecisionMaker(78@, 105@)
Char.SetHasUsedEntryExit(78@, 2415.348, 1123.942, 10.0)
79@ = Char.Create(PedType.Mission1, 282, 377.2169, 190.7318, 1013.18)
Char.SetHeading(79@, 5.7879)
Char.SetDecisionMaker(79@, 105@)
Char.GiveWeapon(79@, WeaponType.Pistol, 30000)
Char.SetHasUsedEntryExit(79@, 2415.348, 1123.942, 10.0)
Task.TurnCharToFaceChar(78@, 79@)
80@ = Char.Create(PedType.Mission1, 282, 377.9352, 192.4556, 1013.18)
Char.SetHeading(80@, 124.31)
Char.SetDecisionMaker(80@, 105@)
Char.SetHasUsedEntryExit(80@, 2415.348, 1123.942, 10.0)
Streaming.MarkModelAsNoLongerNeeded(275)
184@ = 2

:HEIST1_18916
if 
  184@ == 2
goto_if_false @HEIST1_19100
Text.ClearPrints
Camera.DoFade(1000, Fade.Out)
Player.SetControl($player1, False)

:HEIST1_18950
if 
  Camera.GetFadingStatus
goto_if_false @HEIST1_18974
wait 0
goto @HEIST1_18950

:HEIST1_18974
Text.ClearPrints
Hud.SwitchWidescreen(True)
Streaming.LoadScene(376.9717, 192.0647, 1013.18)
Camera.SetFixedPosition(374.0174, 190.0682, 1014.494, 0.0, 0.0, 0.0)
Camera.PointAtPoint(374.8688, 190.5916, 1014.458, SwitchType.JumpCut)
Camera.DoFade(2000, Fade.In)

:HEIST1_19055
if 
  Camera.GetFadingStatus
goto_if_false @HEIST1_19079
wait 0
goto @HEIST1_19055

:HEIST1_19079
184@ = 3
186@ = 1
TIMERA = 0

:HEIST1_19100
if 
  184@ == 3
goto_if_false @HEIST1_19194
Text.ClearPrints
308@ = 15
if 
  not Char.IsDead(78@)
goto_if_false @HEIST1_19180
Task.PlayAnim(78@, "ENDCHAT_01", "PED", 4.0, True, False, False, False, -1)

:HEIST1_19180
184@ = 4
TIMERA = 0

:HEIST1_19194
if 
  184@ == 4
goto_if_false @HEIST1_19245
if 
  TIMERA > 2000
goto_if_false @HEIST1_19245
184@ = 5
TIMERA = 0

:HEIST1_19245
if 
  184@ == 5
goto_if_false @HEIST1_20830
186@ = 0
if 
  not Char.IsDead(78@)
goto_if_false @HEIST1_19312
if 
  not Char.IsDead(79@)
goto_if_false @HEIST1_19312
Char.ClearTasks(78@)
Char.ClearTasks(79@)

:HEIST1_19312
Camera.DoFade(500, Fade.Out)

:HEIST1_19319
if 
  Camera.GetFadingStatus
goto_if_false @HEIST1_19343
wait 0
goto @HEIST1_19319

:HEIST1_19343
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Camera.DoFade(500, Fade.In)

:HEIST1_19365
if 
  Camera.GetFadingStatus
goto_if_false @HEIST1_19389
wait 0
goto @HEIST1_19365

:HEIST1_19389
184@ = 10
Char.Delete(78@)
if 
  not Char.IsDead(54@)
goto_if_false @HEIST1_19488
Char.SetCoordinates(54@, 378.2106, 154.386, 1022.782)
Char.SetHeading(54@, 312.89)
Char.ClearTasks(54@)
76@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(76@)
Char.PerformSequence(54@, 76@)
Sequence.Clear(76@)

:HEIST1_19488
56@ = Char.Create(PedType.Mission1, 282, 371.6575, 153.1287, 1020.796)
Char.SetHeading(56@, 264.7879)
Char.SetShootRate(56@, 60)
Char.SetDecisionMaker(56@, 103@)
Char.GiveWeapon(56@, WeaponType.Pistol, 30000)
Char.SetHasUsedEntryExit(56@, 2415.348, 1123.942, 10.0)
76@ = Sequence.Open()
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(76@)
Char.PerformSequence(56@, 76@)
Sequence.Clear(76@)
57@ = Char.Create(PedType.Mission1, 282, 378.6946, 163.6932, 1018.984)
Char.SetHeading(57@, 91.89)
Char.SetDecisionMaker(57@, 103@)
Char.GiveWeapon(57@, WeaponType.Pistol, 30000)
Char.SetHasUsedEntryExit(57@, 2415.348, 1123.942, 10.0)
76@ = Sequence.Open()
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(76@)
Char.PerformSequence(57@, 76@)
Sequence.Clear(76@)
58@ = Char.Create(PedType.Mission1, 282, 371.9029, 164.5795, 1013.18)
Char.SetHeading(58@, 195.89)
Char.SetDecisionMaker(58@, 103@)
Char.GiveWeapon(58@, WeaponType.Pistol, 30000)
Char.SetHasUsedEntryExit(58@, 2415.348, 1123.942, 10.0)
76@ = Sequence.Open()
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFootWhileDucking(-1, $scplayer, 4, 3000, 50)
Sequence.Close(76@)
Char.PerformSequence(58@, 76@)
Sequence.Clear(76@)
59@ = Char.Create(PedType.Mission1, 282, 371.2767, 154.0267, 1014.984)
Char.SetHeading(59@, 195.89)
Char.SetShootRate(59@, 60)
Char.SetDecisionMaker(59@, 103@)
Char.GiveWeapon(59@, WeaponType.Pistol, 30000)
Char.SetHasUsedEntryExit(59@, 2415.348, 1123.942, 10.0)
76@ = Sequence.Open()
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFootWhileDucking(-1, $scplayer, 4, 3000, 50)
Sequence.Close(76@)
Char.PerformSequence(59@, 76@)
Sequence.Clear(76@)
60@ = Char.Create(PedType.Mission1, 282, 378.0627, 152.9613, 1011.195)
Char.SetHeading(60@, 285.89)
Char.SetDecisionMaker(60@, 103@)
Char.GiveWeapon(60@, WeaponType.Pistol, 30000)
Char.SetHasUsedEntryExit(60@, 2415.348, 1123.942, 10.0)
76@ = Sequence.Open()
Task.KindaStayInSamePlace(-1, False)
Task.KillCharOnFootWhileDucking(-1, $scplayer, 4, 3000, 50)
Sequence.Close(76@)
Char.PerformSequence(60@, 76@)
Sequence.Clear(76@)
61@ = Char.Create(PedType.Mission1, 282, 372.2917, 162.8527, 1007.389)
Char.SetHeading(61@, 195.89)
Char.SetDecisionMaker(61@, 103@)
Char.GiveWeapon(61@, WeaponType.Pistol, 30000)
Char.SetHasUsedEntryExit(61@, 2415.348, 1123.942, 10.0)
76@ = Sequence.Open()
Task.KindaStayInSamePlace(-1, True)
Task.KillCharOnFootWhileDucking(-1, $scplayer, 4, 3000, 50)
Sequence.Close(76@)
Char.PerformSequence(61@, 76@)
Sequence.Clear(76@)
64@ = Char.Create(PedType.Mission1, 282, 379.1144, 153.0811, 1011.195)
Char.SetHeading(64@, 4.89)
Char.SetDecisionMaker(64@, 103@)
Task.ToggleDuck(64@, True)
Char.SetShootRate(64@, 50)
Char.SetHealth(64@, 120)
Char.GiveWeapon(64@, WeaponType.Pistol, 30000)
Char.SetHasUsedEntryExit(64@, 2415.348, 1123.942, 10.0)
76@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(76@)
Char.PerformSequence(64@, 76@)
Sequence.Clear(76@)
63@ = Char.Create(PedType.Mission1, 282, 369.8178, 162.4074, 1018.977)
Char.SetHeading(63@, 217.89)
Char.SetShootRate(63@, 50)
Char.SetHealth(63@, 120)
Char.SetDecisionMaker(63@, 103@)
Char.GiveWeapon(63@, WeaponType.Pistol, 30000)
Char.SetHasUsedEntryExit(63@, 2415.348, 1123.942, 10.0)
76@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootWhileDucking(-1, $scplayer, 4, 3000, 70)
Sequence.Close(76@)
Char.PerformSequence(63@, 76@)
Sequence.Clear(76@)
62@ = Char.Create(PedType.Mission1, 282, 370.1607, 179.6097, 1007.391)
Char.SetHeading(62@, 170.89)
Char.SetShootRate(62@, 50)
Char.SetHealth(62@, 120)
Char.SetDecisionMaker(62@, 103@)
Task.ToggleDuck(62@, True)
Char.GiveWeapon(62@, WeaponType.Pistol, 30000)
Char.SetHasUsedEntryExit(62@, 2415.348, 1123.942, 10.0)
76@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(76@)
Char.PerformSequence(62@, 76@)
Sequence.Clear(76@)
if 
  not Char.IsDead(53@)
goto_if_false @HEIST1_20640
Char.ClearTasks(53@)
Char.SetCoordinates(53@, 375.0372, 177.4968, 1007.391)
Char.SetHeading(53@, 193.0)
Task.StayInSamePlace(53@, True)
Task.KillCharOnFoot(53@, $scplayer)

:HEIST1_20640
if 
  not Char.IsDead(52@)
goto_if_false @HEIST1_20706
Char.ClearTasks(52@)
Char.SetCoordinates(52@, 385.5123, 174.311, 1007.389)
Char.SetHeading(52@, 82.0)
Task.KindaStayInSamePlace(52@, True)
Task.KillCharOnFoot(52@, $scplayer)

:HEIST1_20706
if 
  not Char.IsDead(79@)
goto_if_false @HEIST1_20735
Char.ClearTasks(79@)
Task.KillCharOnFoot(79@, $scplayer)

:HEIST1_20735
Text.ClearPrints
Text.PrintNow('HEI1_46', 6000, 1)
Player.AlterWantedLevelNoDrop($player1, 2)
Streaming.RequestModel(401)

:HEIST1_20765
if 
  not Streaming.HasModelLoaded(401)
goto_if_false @HEIST1_20792
wait 0
goto @HEIST1_20765

:HEIST1_20792
106@ = Car.Create(401, 2423.733, 1120.273, 9.6719)
Car.SetHeading(106@, 179.4729)
Streaming.MarkModelAsNoLongerNeeded(401)

:HEIST1_20830
if 
  198@ == 1
goto_if_false @HEIST1_21273
if 
  Char.LocateAnyMeans3D($scplayer, 369.2483, 162.346, 1024.774, 2.0, 2.0, 2.0, False)
goto_if_false @HEIST1_21273
129@ = Particle.CreateOnChar("TEARGAS", $scplayer, 0.0, 0.0, 2.0, 1)
130@ = Particle.CreateOnChar("TEARGAS", $scplayer, 0.0, 2.0, 1.8, 1)
131@ = Particle.CreateOnChar("TEARGAS", $scplayer, 0.0, -2.0, 2.0, 1)
132@ = Particle.CreateOnChar("TEARGAS", $scplayer, 1.0, 5.0, 1.5, 1)
133@ = Particle.CreateOnChar("TEARGAS", $scplayer, -1.0, 8.0, 1.8, 1)
134@ = Particle.CreateOnChar("TEARGAS", $scplayer, 2.0, 0.0, 1.5, 1)
135@ = Particle.CreateOnChar("TEARGAS", $scplayer, -2.0, 0.0, 1.5, 1)
136@ = Particle.CreateOnChar("TEARGAS", $scplayer, -2.0, 2.0, 1.5, 1)
137@ = Particle.CreateOnChar("TEARGAS", $scplayer, 2.0, 2.0, 1.5, 1)
Weather.SetHeathazeEffect(True)
Particle.Play(129@)
Particle.Play(130@)
Particle.Play(131@)
Particle.Play(132@)
Particle.Play(133@)
Particle.Play(134@)
Particle.Play(135@)
Particle.Play(136@)
Particle.Play(137@)
Particle.Kill(138@)
Particle.Kill(139@)
Particle.Kill(140@)
198@ = 2

:HEIST1_21273
if 
  184@ == 10
goto_if_false @HEIST1_21482
if 
  Char.LocateAnyMeans3D($scplayer, 2418.682, 1123.352, 9.8047, 5.0, 5.0, 5.0, False)
goto_if_false @HEIST1_21482
Weather.SetHeathazeEffect(False)
Particle.Kill(138@)
Particle.Kill(139@)
Particle.Kill(140@)
Particle.Kill(129@)
Particle.Kill(130@)
Particle.Kill(131@)
Particle.Kill(132@)
Particle.Kill(133@)
Particle.Kill(134@)
Particle.Kill(135@)
Particle.Kill(136@)
Particle.Kill(137@)
184@ = 11
Blip.Remove(161@)
165@ = Blip.AddForCoord(1918.59, 958.3391, 9.8203)
Text.ClearPrints
Text.PrintNow('HEI1_29', 6000, 1)
Player.AlterWantedLevelNoDrop($player1, 2)
324@ = 1
TIMERB = 0
Streaming.MarkModelAsNoLongerNeeded(71)
Streaming.MarkModelAsNoLongerNeeded(54)

:HEIST1_21482
if 
  324@ == 1
goto_if_false @HEIST1_21533
if 
  TIMERB > 4000
goto_if_false @HEIST1_21533
Player.AlterWantedLevelNoDrop($player1, 4)
324@ = 2

:HEIST1_21533
if 
  184@ == 11
goto_if_false @HEIST1_21613
Streaming.RequestModel(117)
Streaming.RequestModel(421)
Streaming.RequestModel(118)

:HEIST1_21564
if or
  not Streaming.HasModelLoaded(118)
  not Streaming.HasModelLoaded(117)
  not Streaming.HasModelLoaded(421)
goto_if_false @HEIST1_21599
wait 0
goto @HEIST1_21564

:HEIST1_21599
184@ = 13
216@ = 9

:HEIST1_21613
if 
  216@ == 9
goto_if_false @HEIST1_21957
34@ = Streaming.GetAreaVisible()
if 
  34@ == 0
goto_if_false @HEIST1_21674
if 
  not Game.IsMinigameInProgress
goto_if_false @HEIST1_21674
Player.SetControl($player1, True)

:HEIST1_21674
if 
  Char.LocateAnyMeans3D($scplayer, 1918.59, 958.3391, 9.8203, 4.0, 4.0, 2.0, True)
goto_if_false @HEIST1_21957
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HEIST1_21859
Player.SetControl($player1, False)
if 
  Char.IsStopped($scplayer)
goto_if_false @HEIST1_21852
213@ = Car.Create(421, 1902.168, 974.9742, 9.8203)
Car.SetHeading(213@, 197.2609)
Car.ChangeColor(213@, 4, 2)
if 
  not Car.IsDead(213@)
goto_if_false @HEIST1_21845
214@ = Char.CreateInsideCar(213@, PedType.Mission2, 117)
212@ = Char.CreateAsPassenger(213@, PedType.Mission2, 118, 1)

:HEIST1_21845
216@ = 15

:HEIST1_21852
goto @HEIST1_21957

:HEIST1_21859
Player.SetControl($player1, False)
213@ = Car.Create(421, 1902.168, 974.9742, 9.8203)
Car.SetHeading(213@, 197.2609)
Car.ChangeColor(213@, 4, 2)
if 
  not Car.IsDead(213@)
goto_if_false @HEIST1_21950
214@ = Char.CreateInsideCar(213@, PedType.Mission2, 117)
212@ = Char.CreateAsPassenger(213@, PedType.Mission2, 118, 1)

:HEIST1_21950
216@ = 15

:HEIST1_21957
if 
  216@ == 15
goto_if_false @HEIST1_22299
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Camera.DoFade(1000, Fade.Out)

:HEIST1_21996
if 
  Camera.GetFadingStatus
goto_if_false @HEIST1_22020
wait 0
goto @HEIST1_21996

:HEIST1_22020
Text.ClearPrints
Car.MarkAsNoLongerNeeded(106@)
World.ClearArea(1913.682, 962.0125, 9.8203, 60.0, True)
World.ClearArea(1903.468, 967.1692, 9.8127, 60.0, True)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(1922.234, 951.8628, 12.2282, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1921.715, 952.7101, 12.1171, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)

:HEIST1_22137
if 
  Camera.GetFadingStatus
goto_if_false @HEIST1_22161
wait 0
goto @HEIST1_22137

:HEIST1_22161
216@ = 17
TIMERA = 0
Char.ClearTasks($scplayer)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HEIST1_22253
217@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 1913.682, 962.0125, 9.8203, MoveState.Walk, -1)
Sequence.Close(217@)
Char.PerformSequence($scplayer, 217@)
Sequence.Clear(217@)
goto @HEIST1_22299

:HEIST1_22253
217@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1913.682, 962.0125, 9.8203, MoveState.Walk, -1)
Sequence.Close(217@)
Char.PerformSequence($scplayer, 217@)
Sequence.Clear(217@)

:HEIST1_22299
if 
  216@ == 17
goto_if_false @HEIST1_22363
if 
  TIMERA > 1000
goto_if_false @HEIST1_22363
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1035)
216@ = 20

:HEIST1_22363
if 
  216@ == 20
goto_if_false @HEIST1_22695
if 
  not Object.Slide($init_ped_density, 1903.383, 967.62, 15.438, 0.0, 0.0, 0.02, False)
goto_if_false @HEIST1_22466
  Object.Slide($init_ped_density, 1903.383, 967.62, 15.438, 0.0, 0.0, 0.02, False)

:HEIST1_22466
if 
  TIMERA > 4000
goto_if_false @HEIST1_22695
216@ = 30
if 
  not Char.IsDead(214@)
goto_if_false @HEIST1_22695
if 
  not Car.IsDead(213@)
goto_if_false @HEIST1_22695
Task.CarDriveToCoord(214@, 213@, 1909.04, 959.7415, 9.8203, 7.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
Camera.SetFixedPosition(1901.587, 965.5023, 11.8636, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1902.538, 965.246, 11.6931, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 1913.682, 962.0125, 9.8203)
Char.SetHeading($scplayer, 100.3)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1036)
Char.ClearTasks($scplayer)
Task.GoStraightToCoord($scplayer, 1909.887, 962.3391, 9.8203, MoveState.Walk, -1)
TIMERA = 0

:HEIST1_22695
if 
  216@ == 30
goto_if_false @HEIST1_22855
if 
  not Car.IsDead(213@)
goto_if_false @HEIST1_22855
if 
  Car.Locate2D(213@, 1909.04, 959.7415, 3.0, 3.0, False)
goto_if_false @HEIST1_22814
216@ = 35
if 
  not Char.IsDead(212@)
goto_if_false @HEIST1_22800
Task.LookAtChar(212@, $scplayer, -1)

:HEIST1_22800
308@ = 19
TIMERA = 0

:HEIST1_22814
if 
  TIMERA > 10000
goto_if_false @HEIST1_22855
216@ = 35
write_debug "TEST"
TIMERA = 0

:HEIST1_22855
if 
  216@ == 35
goto_if_false @HEIST1_22913
if 
  TIMERA > 3000
goto_if_false @HEIST1_22913
308@ = 20
216@ = 36
TIMERA = 0

:HEIST1_22913
if 
  216@ == 36
goto_if_false @HEIST1_23061
if 
  TIMERA > 1000
goto_if_false @HEIST1_23061
if 
  not Car.IsDead(213@)
goto_if_false @HEIST1_23061
if 
  not Char.IsDead(214@)
goto_if_false @HEIST1_23061
Char.ClearTasks(214@)
216@ = 37
Task.CarDriveToCoord(214@, 213@, 1905.279, 934.162, 9.8352, 10.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
TIMERA = 0
if 
  not Char.IsDead(212@)
goto_if_false @HEIST1_23061
Task.LookAtChar($scplayer, 212@, -1)

:HEIST1_23061
if 
  216@ == 37
goto_if_false @HEIST1_23254
if 
  TIMERA > 1000
goto_if_false @HEIST1_23228
if 
  not Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.04, False)
goto_if_false @HEIST1_23183
  Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.04, False)

:HEIST1_23183
if 
  41@ == 0
goto_if_false @HEIST1_23228
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1035)
41@ = 1

:HEIST1_23228
if 
  TIMERA > 3000
goto_if_false @HEIST1_23254
216@ = 40

:HEIST1_23254
if 
  216@ == 40
goto_if_false @HEIST1_23514
if 
  not Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.04, False)
goto_if_false @HEIST1_23357
  Object.Slide($init_ped_density, 1903.383, 967.62, 11.438, 0.0, 0.0, 0.04, False)

:HEIST1_23357
215@ = 0
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1036)
if 
  not Char.IsDead(212@)
goto_if_false @HEIST1_23410
Char.ClearTasksImmediately(212@)
Char.Delete(212@)

:HEIST1_23410
if 
  not Char.IsDead(214@)
goto_if_false @HEIST1_23436
Char.ClearTasksImmediately(214@)
Char.Delete(214@)

:HEIST1_23436
Car.Delete(213@)
Hud.SwitchWidescreen(False)
Char.ClearTasksImmediately($scplayer)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Object.SetCoordinates($init_ped_density, 1903.383, 967.82, 11.438)
Object.SetHeading($init_ped_density, 0.0)
216@ = 45
Text.ClearPrints
goto @HEIST1_23620

:HEIST1_23514
goto @HEIST1_2311

:HEIST1_23521
if 
  not Char.IsDead(54@)
goto_if_false @HEIST1_23550
Char.ClearTasks(54@)
Task.KillCharOnFoot(54@, $scplayer)

:HEIST1_23550
return 

:HEIST1_23552
226@ = 1
Text.PrintBig('M_FAIL', 8000, TextStyle.Middle)
TIMERB = 0
return 

:HEIST1_23584
if 
  226@ <> 1
goto_if_false @HEIST1_23618
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)

:HEIST1_23618
return 

:HEIST1_23620
$flag_heist_mission_counter += 1
Text.PrintWithNumberBig('M_PASSR', 10, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(10)
Stat.RegisterMissionPassed('HEIST_1')
Stat.PlayerMadeProgress(1)
Stat.SetInt(StatId.PassedHeist1, 1)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
return 

:HEIST1_23682
World.SwitchEntryExit('PAPER', False)
$disable_mod_garage = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST1_23727
Char.ClearTasks($scplayer)

:HEIST1_23727
Player.ClearWantedLevel($player1)
if 
  Object.DoesExist($init_ped_density)
goto_if_false @HEIST1_23778
Object.SetCoordinates($init_ped_density, 1903.383, 967.62, 11.438)
Object.SetHeading($init_ped_density, 0.0)

:HEIST1_23778
Hud.SetRadarZoom(0)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST1_23798

:HEIST1_23798
Blip.Remove(155@)
Blip.Remove(156@)
Blip.Remove(157@)
Blip.Remove(158@)
Blip.Remove(160@)
Blip.Remove(163@)
Blip.Remove(161@)
Blip.Remove(164@)
Blip.Remove(165@)
Blip.Remove(166@)
151@ = 1

:HEIST1_23855
if 
  6 > 151@
goto_if_false @HEIST1_23896
Blip.Remove(167@(151@,6i))
151@ += 1
goto @HEIST1_23855

:HEIST1_23896
Pickup.Remove(154@)
World.RemoveAllScriptFires
Particle.Kill(138@)
Particle.Kill(139@)
Particle.Kill(140@)
Particle.Kill(141@)
Particle.Kill(142@)
Particle.Kill(143@)
Particle.Kill(129@)
Particle.Kill(130@)
Particle.Kill(131@)
Particle.Kill(132@)
Particle.Kill(133@)
Particle.Kill(134@)
Particle.Kill(135@)
Particle.Kill(136@)
Particle.Kill(137@)
Weather.SetHeathazeEffect(False)
Streaming.MarkModelAsNoLongerNeeded(57)
Streaming.MarkModelAsNoLongerNeeded(58)
Streaming.MarkModelAsNoLongerNeeded(367)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(12)
Streaming.MarkModelAsNoLongerNeeded(59)
Streaming.MarkModelAsNoLongerNeeded(54)
Streaming.MarkModelAsNoLongerNeeded(401)
Streaming.MarkModelAsNoLongerNeeded(71)
Streaming.MarkModelAsNoLongerNeeded(70)
Streaming.MarkModelAsNoLongerNeeded(147)
Streaming.MarkModelAsNoLongerNeeded(17)
Streaming.MarkModelAsNoLongerNeeded(282)
Streaming.MarkModelAsNoLongerNeeded(275)
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(118)
Streaming.MarkModelAsNoLongerNeeded(421)
Streaming.RemoveAnimation("CAMERA")
if 
  226@ == 1
goto_if_false @HEIST1_24114
Restart.OverrideNext(2337.083, 2453.802, 13.9765, 90.7643)
Game.ForceDeathRestart

:HEIST1_24114
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 97---------------
// Originally: Key To Her Heart

:HEIST3
script_name 'HEIST3'
gosub @HEIST3_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST3_38
gosub @HEIST3_22966

:HEIST3_38
gosub @HEIST3_23046
terminate_this_script 

:HEIST3_47
Stat.RegisterMissionGiven
Camera.SetFadingColor(0, 0, 0)
$onmission = 1
Camera.DoFade(2000, Fade.Out)

:HEIST3_71
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_95
wait 0
goto @HEIST3_71

:HEIST3_95
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_138
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)

:HEIST3_138
Player.StoreClothesState
Weather.Force(WeatherType.SunnyVegas)
Streaming.SetAreaVisible(10)
Text.LoadMissionText('HEIST3')
Cutscene.Load('HEIST2A')

:HEIST3_170
if 
  not Cutscene.HasLoaded
goto_if_false @HEIST3_194
wait 0
goto @HEIST3_170

:HEIST3_194
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:HEIST3_203
if 
  not Cutscene.HasFinished
goto_if_false @HEIST3_227
wait 0
goto @HEIST3_203

:HEIST3_227
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:HEIST3_240
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_264
wait 0
goto @HEIST3_240

:HEIST3_264
Cutscene.Clear
Streaming.SetAreaVisible(0)
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)

:HEIST3_284
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_308
wait 0
goto @HEIST3_284

:HEIST3_308
Weather.Release
Streaming.LoadScene(2030.103, 1020.79, 9.8203)
wait 0
Streaming.RequestCollision(2030.103, 1020.79)
Streaming.LoadScene(2030.103, 1020.79, 9.8203)
Char.SetCoordinates($scplayer, 2030.103, 1020.79, 9.813)
Char.SetHeading($scplayer, 277.5123)
Streaming.SetAreaVisible(0)
Char.SetHasUsedEntryExit($scplayer, 2016.422, 1017.102, 10.0)
42@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
47@ = 0
48@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 0
53@ = 0
54@ = 0
55@ = 0
44@ = 0.0
46@ = 0.0
36@ = 0
$d2_anim_rnd = 0
37@ = 0
38@ = 0
39@ = 0
77@ = 2090.0
78@ = 2074.0
79@ = 11.0
86@ = 2036.929
87@ = 2721.449
88@ = 10.5469
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
set_var_text_label s$hei3_spook[1] = 'HE3_AA'
set_var_text_label s$hei3_spook[2] = 'HE3_BA'
set_var_text_label s$hei3_spook[3] = 'HE3_BB'
set_var_text_label s$hei3_spook[4] = 'HE3_CA'
set_var_text_label s$hei3_spook[5] = 'HE3_CB'
set_var_text_label s$hei3_spook[6] = 'HE3_CC'
set_var_text_label s$hei3_spook[7] = 'HE3_CD'
set_var_text_label s$hei3_spook[8] = 'HE3_CE'
set_var_text_label s$hei3_spook[9] = 'HE3_CF'
set_var_text_label s$hei3_spook[10] = 'HE3_CG'
set_var_text_label s$hei3_spook[11] = 'HE3_CH'
set_var_text_label s$hei3_spook[12] = 'HE3_DA'
set_var_text_label s$hei3_spook[13] = 'HE3_DB'
set_var_text_label s$hei3_spook[14] = 'HE3_DC'
set_var_text_label s$hei3_spook[15] = 'HE3_DD'
set_var_text_label s$hei3_spook[16] = 'HE3_DE'
set_var_text_label s$hei3_spook[17] = 'HE3_DF'
set_var_text_label s$hei3_spook[18] = 'HE3_DG'
set_var_text_label s$hei3_spook[19] = 'HE3_EA'
set_var_text_label s$hei3_spook[20] = 'HE3_EB'
set_var_text_label s$hei3_spook[21] = 'HE3_EC'
set_var_text_label s$hei3_spook[22] = 'HE3_FA'
set_var_text_label s$hei3_spook[23] = 'HE3_FB'
set_var_text_label s$hei3_spook[24] = 'HE3_FC'
set_var_text_label s$hei3_spook[25] = 'HE3_FD'
set_var_text_label s$hei3_spook[26] = 'HE3_FE'
set_var_text_label s$hei3_spook[27] = 'HE3_FF'
set_var_text_label s$hei3_spook[28] = 'HE3_FG'
set_var_text_label s$hei3_spook[29] = 'HE3_GA'
set_var_text_label s$hei3_spook[30] = 'HE3_GB'
set_var_text_label s$hei3_spook[31] = 'HE3_GC'
set_var_text_label s$hei3_spook[32] = 'HE3_GD'
set_var_text_label s$hei3_spook[33] = 'HE3_GE'
set_var_text_label s$hei3_spook[34] = 'HE3_HA'
set_var_text_label s$hei3_spook[35] = 'HE3_HB'
set_var_text_label s$hei3_spook[36] = 'HE3_HC'
set_var_text_label s$hei3_spook[37] = 'HE3_HD'
set_var_text_label s$hei3_spook[38] = 'HE3_HE'
set_var_text_label s$hei3_spook[39] = 'HE3_HF'
set_var_text_label s$hei3_spook[40] = 'HE3_HG'
set_var_text_label s$hei3_spook[41] = 'HE3_HH'
set_var_text_label s$hei3_spook[42] = 'HE3_HJ'
set_var_text_label s$hei3_spook[43] = 'HE3_AB'
set_lvar_int_to_constant 90@ = 18600
set_lvar_int_to_constant 91@ = 18613
set_lvar_int_to_constant 92@ = 18614
set_lvar_int_to_constant 93@ = 18615
set_lvar_int_to_constant 94@ = 18611
set_lvar_int_to_constant 95@ = 18612
set_lvar_int_to_constant 96@ = 18616
set_lvar_int_to_constant 97@ = 18617
set_lvar_int_to_constant 98@ = 18618
set_lvar_int_to_constant 99@ = 18619
set_lvar_int_to_constant 100@ = 18620
set_lvar_int_to_constant 101@ = 18621
set_lvar_int_to_constant 102@ = 18622
set_lvar_int_to_constant 103@ = 18602
set_lvar_int_to_constant 104@ = 18623
set_lvar_int_to_constant 105@ = 18603
set_lvar_int_to_constant 106@ = 18624
set_lvar_int_to_constant 107@ = 18625
set_lvar_int_to_constant 108@ = 18604
set_lvar_int_to_constant 109@ = 18605
set_lvar_int_to_constant 110@ = 18626
set_lvar_int_to_constant 111@ = 18627
set_lvar_int_to_constant 112@ = 18628
set_lvar_int_to_constant 113@ = 18606
set_lvar_int_to_constant 114@ = 18607
set_lvar_int_to_constant 115@ = 18608
set_lvar_int_to_constant 116@ = 18629
set_lvar_int_to_constant 117@ = 18630
set_lvar_int_to_constant 118@ = 18631
set_lvar_int_to_constant 119@ = 18609
set_lvar_int_to_constant 120@ = 18632
set_lvar_int_to_constant 121@ = 18633
set_lvar_int_to_constant 122@ = 18634
set_lvar_int_to_constant 123@ = 18610
set_lvar_int_to_constant 124@ = 65535
set_lvar_int_to_constant 125@ = 65535
set_lvar_int_to_constant 126@ = 65535
set_lvar_int_to_constant 127@ = 65535
set_lvar_int_to_constant 128@ = 65535
set_lvar_int_to_constant 129@ = 65535
set_lvar_int_to_constant 130@ = 65535
set_lvar_int_to_constant 131@ = 65535
set_lvar_int_to_constant 132@ = 18601
set_lvar_int_to_constant 144@ = 23802
set_lvar_int_to_constant 145@ = 23800
set_lvar_int_to_constant 146@ = 23801
set_lvar_int_to_constant 147@ = 23803
148@ = 0
149@ = 0
150@ = 0
72@ = Blip.AddForCoord(2169.0, 1662.0, 11.0)
Camera.SetBehindPlayer
Hud.SwitchWidescreen(True)
Streaming.LoadScene(2030.103, 1020.79, 9.8203)
Camera.DoFade(1000, Fade.In)

:HEIST3_1734
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_1758
wait 0
goto @HEIST3_1734

:HEIST3_1758
skip_cutscene_start_internal @HEIST3_2328

:HEIST3_1765
wait 0
if 
  137@ == 0
goto_if_false @HEIST3_2328
if 
  133@ <> 0
goto_if_false @HEIST3_2058
if 
  136@ == 0
goto_if_false @HEIST3_1851
if 
  Audio.HasMissionAudioLoaded(135@)
goto_if_false @HEIST3_1844
Audio.ClearMissionAudio(135@)

:HEIST3_1844
136@ = 1

:HEIST3_1851
if 
  136@ == 1
goto_if_false @HEIST3_1888
Audio.LoadMissionAudio(134@, 89@(133@,44i))
136@ = 2

:HEIST3_1888
if 
  136@ == 2
goto_if_false @HEIST3_1948
if 
  Audio.HasMissionAudioLoaded(134@)
goto_if_false @HEIST3_1948
Audio.PlayMissionAudio(134@)
Text.PrintNow($hei3_spook(133@,44s), 10000, 1)
136@ = 3

:HEIST3_1948
if 
  136@ == 3
goto_if_false @HEIST3_2058
if 
  Audio.HasMissionAudioFinished(134@)
goto_if_false @HEIST3_2058
Text.ClearThisPrint($hei3_spook(133@,44s))
if 
  134@ == 1
goto_if_false @HEIST3_2030
134@ = 2
135@ = 1
goto @HEIST3_2044

:HEIST3_2030
134@ = 1
135@ = 2

:HEIST3_2044
133@ = 0
136@ = 0

:HEIST3_2058
switch_start 138@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @HEIST3_2249 {caseNum1} 0 {caseLabel1} @HEIST3_2121 {caseNum2} 1 {caseLabel2} @HEIST3_2165 {caseNum3} -1 {caseLabel3} @HEIST3_2321 {caseNum4} -1 {caseLabel4} @HEIST3_2321 {caseNum5} -1 {caseLabel5} @HEIST3_2321 {caseNum6} -1 {caseLabel6} @HEIST3_2321 {caseNum7} -1 {caseLabel7} @HEIST3_2321

:HEIST3_2121
if 
  136@ == 0
goto_if_false @HEIST3_2158
133@ = 1
138@ = 1
141@ = Clock.GetGameTimer()

:HEIST3_2158
goto @HEIST3_2321

:HEIST3_2165
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_2242
if 
  136@ == 0
goto_if_false @HEIST3_2242
133@ = 43
138@ = 2
141@ = Clock.GetGameTimer()

:HEIST3_2242
goto @HEIST3_2321

:HEIST3_2249
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_2314
if 
  136@ == 0
goto_if_false @HEIST3_2314
137@ = 1

:HEIST3_2314
goto @HEIST3_2321

:HEIST3_2321
goto @HEIST3_1765

:HEIST3_2328
skip_cutscene_end 
if 
  Audio.HasMissionAudioLoaded(134@)
goto_if_false @HEIST3_2351
Audio.ClearMissionAudio(134@)

:HEIST3_2351
Text.ClearPrints
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Text.Print('HEI3_33', 5000, 1)

:HEIST3_2380
wait 0
if 
  48@ == 99999
goto_if_false @HEIST3_2606
68@ = Blip.AddForCoord(0.0, 0.0, 0.0)
71@ = Blip.AddForCoord(0.0, 0.0, 0.0)
69@ = Blip.AddForCoord(0.0, 0.0, 0.0)
70@ = Blip.AddForCoord(0.0, 0.0, 0.0)
56@ = Char.Create(PedType.Mission1, 194, 2191.0, 1679.0, 11.0)
65@ = Car.Create(589, 2175.181, 1695.522, 9.8203)
57@ = Char.Create(PedType.Mission1, 194, 2191.0, 1679.0, 11.0)
66@ = Car.Create(533, 2175.181, 1695.522, 9.8203)
58@ = Char.Create(PedType.Mission1, 194, 2191.0, 1679.0, 11.0)

:HEIST3_2606
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @HEIST3_2635
set_global_var_bit_const $iActiveGF {n} 5
goto @HEIST3_22984

:HEIST3_2635
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @HEIST3_2739

:HEIST3_2650
if or
  not Streaming.HasModelLoaded(555)
  not Streaming.HasModelLoaded(194)
  not Streaming.HasModelLoaded(589)
goto_if_false @HEIST3_2732
Streaming.RequestModel(589)
Streaming.RequestModel(194)
Streaming.RequestModel(555)
Player.GiveClothesOutsideShop($player1, "GIMPLEG", "GIMPLEG", BodyPart.SpecialCostume)
Player.BuildModel($player1)
wait 0
goto @HEIST3_2650

:HEIST3_2732
47@ = 5

:HEIST3_2739
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @HEIST3_2774
Char.SetCoordinates($scplayer, 2152.774, 1653.351, 10.0469)

:HEIST3_2774
if 
is_ps2_keyboard_key_pressed 38
goto_if_false @HEIST3_2896
Streaming.RequestModel(321)

:HEIST3_2794
if 
  not Streaming.HasModelLoaded(321)
goto_if_false @HEIST3_2821
wait 0
goto @HEIST3_2794

:HEIST3_2821
Blip.Remove(72@)
Blip.Remove(69@)
Blip.Remove(68@)
Char.Delete(57@)
Car.Delete(66@)
Char.Delete(56@)
Car.Delete(65@)
Char.SetCoordinates($scplayer, 86@, 87@, 88@)
Blip.Remove(71@)
71@ = Blip.AddForCoord(86@, 87@, 88@)
47@ = 9

:HEIST3_2896
if 
  47@ == 0
goto_if_false @HEIST3_3476
if 
  Char.LocateStoppedAnyMeans3D($scplayer, 2169.0, 1662.0, 11.0, 4.0, 4.0, 4.0, True)
goto_if_false @HEIST3_3476
Blip.Remove(72@)
Player.SetControl($player1, False)
Camera.DoFade(1500, Fade.Out)

:HEIST3_2981
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_3005
wait 0
goto @HEIST3_2981

:HEIST3_3005
Path.SwitchPedRoadsOff(2096.335, 1656.397, 8.0, 2161.659, 1728.287, 10.0)
Path.SwitchRoadsOff(2096.335, 1656.397, 8.0, 2161.659, 1728.287, 10.0)
Streaming.RequestModel(194)
Streaming.RequestModel(589)
Streaming.RequestModel(111)

:HEIST3_3083
if or
  not Streaming.HasModelLoaded(194)
  not Streaming.HasModelLoaded(111)
  not Streaming.HasModelLoaded(589)
goto_if_false @HEIST3_3119
wait 0
goto @HEIST3_3083

:HEIST3_3119
World.ClearArea(2175.181, 1695.522, 9.8203, 30.0, True)
Car.CustomPlateForNextCar(589, "_SPANK__")
65@ = Car.Create(589, 2175.181, 1695.522, 9.8203)
Car.ChangeColor(65@, 126, 126)
Car.SetCanBurstTires(65@, False)
Car.LockDoors(65@, CarLock.LockoutPlayerOnly)
Car.SetHeading(65@, 66.1016)
56@ = Char.Create(PedType.Mission1, 194, 2191.0, 1679.0, 11.0)
Char.SetDecisionMaker(56@, 42@)
Char.SetAnimGroup(56@, "SEXYWOMAN")
68@ = Blip.AddForChar(56@)
Char.SetHeading(56@, 76.0)
58@ = Char.Create(PedType.Mission2, 111, 2188.1, 1686.4, 10.0)
Char.SetHeading(58@, 78.0)
Char.SetDecisionMaker(58@, 42@)
Hud.SwitchWidescreen(True)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HEIST3_3388
67@ = Char.StoreCarIsIn($scplayer)
Car.SetCoordinates(67@, 2174.0, 1662.0, 9.8203)
Car.SetHeading(67@, 27.0)
goto @HEIST3_3418

:HEIST3_3388
Char.SetCoordinates($scplayer, 2174.0, 1662.0, 9.8203)
Char.SetHeading($scplayer, 27.0)

:HEIST3_3418
Camera.SetFixedPosition(2191.4, 1677.08, 12.48, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2182.17, 1688.45, 8.05, SwitchType.JumpCut)
47@ = 1

:HEIST3_3476
if 
  47@ == 1
goto_if_false @HEIST3_5104
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_5104
if 
  not Car.IsDead(65@)
goto_if_false @HEIST3_5104
Path.FlushRoute
Path.ExtendRoute(2336.219, 1891.09, 9.7792)
Path.ExtendRoute(2355.281, 2114.817, 9.6719)
Path.ExtendRoute(2171.746, 2149.146, 9.6794)
Path.ExtendRoute(2123.564, 2134.417, 9.6797)
75@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2175.093, 1692.705, 9.8203, MoveState.Walk, 30000)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsDriver(-1, 65@, 20000)
Task.DrivePointRouteAdvanced(-1, 65@, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCarsObeyLights)
Task.CarDriveToCoord(-1, 65@, 2130.536, 2061.717, 9.6875, 20.0, DriveMode.Straightline, 0, DrivingMode.AvoidCarsObeyLights)
Task.CarDriveToCoord(-1, 65@, 2116.264, 2044.594, 9.8125, 20.0, DriveMode.Straightline, 0, DrivingMode.AvoidCarsObeyLights)
Task.CarDriveToCoord(-1, 65@, 2101.0, 2040.0, 9.8203, 20.0, DriveMode.Straightline, 0, DrivingMode.AvoidCarsObeyLights)
Task.CarDriveToCoord(-1, 65@, 2096.0, 2073.0, 9.8203, 20.0, DriveMode.Straightline, 0, DrivingMode.AvoidCarsObeyLights)
Sequence.Close(75@)
Char.PerformSequence(56@, 75@)
Sequence.Clear(75@)
Camera.DoFade(1500, Fade.In)

:HEIST3_3814
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_3838
wait 0
goto @HEIST3_3814

:HEIST3_3838
Text.ClearPrints
Text.Print('HEI3_01', 7000, 1)
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_3947
if 
  48@ == 0
goto_if_false @HEIST3_5033
if 
  137@ == 0
goto_if_false @HEIST3_4357
if 
  133@ <> 0
goto_if_false @HEIST3_4290
if 
  136@ == 0
goto_if_false @HEIST3_4047
if 
  Audio.HasMissionAudioLoaded(135@)
goto_if_false @HEIST3_4040
Audio.ClearMissionAudio(135@)

:HEIST3_4040
136@ = 1

:HEIST3_4047
if 
  136@ == 1
goto_if_false @HEIST3_4084
Audio.LoadMissionAudio(134@, 89@(133@,44i))
136@ = 2

:HEIST3_4084
if 
  136@ == 2
goto_if_false @HEIST3_4144
if 
  Audio.HasMissionAudioLoaded(134@)
goto_if_false @HEIST3_4144
Audio.PlayMissionAudio(134@)
Text.PrintNow($hei3_spook(133@,44s), 10000, 1)
136@ = 3

:HEIST3_4144
if 
  136@ == 3
goto_if_false @HEIST3_4290
if 
  Audio.HasMissionAudioFinished(134@)
goto_if_false @HEIST3_4290
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_4207
Char.StopFacialTalk(56@)
Char.StartFacialTalk(56@, 3000)

:HEIST3_4207
Text.ClearThisPrint($hei3_spook(133@,44s))
if 
  134@ == 1
goto_if_false @HEIST3_4255
134@ = 2
135@ = 1
goto @HEIST3_4269

:HEIST3_4255
134@ = 1
135@ = 2

:HEIST3_4269
133@ = 0
136@ = 0
137@ = 1

:HEIST3_4290
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @HEIST3_4357
if 
  136@ == 0
goto_if_false @HEIST3_4357
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_4350
Char.StopFacialTalk(56@)
Char.StartFacialTalk(56@, 3000)

:HEIST3_4350
133@ = 2

:HEIST3_4357
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST3_4701
48@ = 1
if and
  not Char.IsDead(56@)
  not Car.IsDead(65@)
goto_if_false @HEIST3_4701
if 
  not Char.IsInCar(56@, 65@)
goto_if_false @HEIST3_4429
Char.WarpIntoCar(56@, 65@)

:HEIST3_4429
Car.CloseAllDoors(65@)
Path.FlushRoute
Path.ExtendRoute(2336.219, 1891.09, 9.7792)
Path.ExtendRoute(2355.281, 2114.817, 9.6719)
Path.ExtendRoute(2171.746, 2149.146, 9.6794)
Path.ExtendRoute(2128.564, 2134.417, 9.6797)
75@ = Sequence.Open()
Task.DrivePointRouteAdvanced(-1, 65@, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCarsObeyLights)
Task.CarDriveToCoord(-1, 65@, 2130.536, 2061.717, 9.6875, 20.0, DriveMode.Straightline, 0, DrivingMode.AvoidCarsObeyLights)
Task.CarDriveToCoord(-1, 65@, 2116.264, 2044.594, 9.8125, 20.0, DriveMode.Straightline, 0, DrivingMode.AvoidCarsObeyLights)
Task.CarDriveToCoord(-1, 65@, 2101.0, 2040.0, 9.8203, 20.0, DriveMode.Straightline, 0, DrivingMode.AvoidCarsObeyLights)
Task.CarDriveToCoord(-1, 65@, 2096.0, 2073.0, 9.8203, 20.0, DriveMode.Straightline, 0, DrivingMode.AvoidCarsObeyLights)
Sequence.Close(75@)
Char.PerformSequence(56@, 75@)
Sequence.Clear(75@)
World.ClearArea(2175.181, 1695.522, 9.8203, 30.0, True)

:HEIST3_4701
if and
  not Char.IsDead(56@)
  not Car.IsDead(65@)
goto_if_false @HEIST3_5015
34@ = Char.GetScriptTaskStatus(56@, 1560)
if 
  is_int_lvar_equal_to_constant 34@ == 1
goto_if_false @HEIST3_5008
34@ = Char.GetSequenceProgress(56@)
if 
  Char.LocateAnyMeansCar3D(56@, 65@, 7.0, 7.0, 5.0, False)
goto_if_false @HEIST3_4933
if 
  35@ == 0
goto_if_false @HEIST3_4933
Text.Print('HEI3_02', 5000, 1)
Camera.SetFixedPosition(2182.17, 1694.54, 11.72, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2108.69, 1674.08, -4.6, SwitchType.JumpCut)
if 
  not Char.IsDead(58@)
goto_if_false @HEIST3_4926
Char.ClearTasks(58@)
Task.GoStraightToCoord(58@, 2196.62, 1684.18, 12.41, MoveState.Walk, 30000)

:HEIST3_4926
35@ = 1

:HEIST3_4933
if 
  34@ == 2
goto_if_false @HEIST3_5008
wait 1000
World.ClearArea(2175.181, 1695.522, 9.8203, 30.0, True)
if 
  not Car.IsDead(65@)
goto_if_false @HEIST3_5001
Car.CloseAllDoors(65@)

:HEIST3_5001
48@ = 1

:HEIST3_5008
goto @HEIST3_5022

:HEIST3_5015
48@ = 1

:HEIST3_5022
wait 0
goto @HEIST3_3947

:HEIST3_5033
Text.ClearPrints
Char.MarkAsNoLongerNeeded(58@)
Char.RemoveElegantly(58@)
Streaming.MarkModelAsNoLongerNeeded(111)
Car.MarkAsNoLongerNeeded(67@)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Hud.DisplayCounterWithString($d2_anim_rnd, CounterDisplay.Bar, 'HEI3_94')
TIMERB = 0
TIMERA = 0
47@ = 2

:HEIST3_5104
if 
  47@ == 2
goto_if_false @HEIST3_6977
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_6847
if 
  not Car.IsDead(65@)
goto_if_false @HEIST3_6710
34@ = Char.GetScriptTaskStatus(56@, 1560)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_5739
World.ClearArea(2096.0, 2073.0, 9.8203, 20.0, True)
Hud.ClearCounter($d2_anim_rnd)
ENTEXT_63()
if 
  $player_is_completely_safe == 1
goto_if_false @HEIST3_5609
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Text.ClearPrints
Car.SetCoordinates(65@, 2095.913, 2074.081, 9.8203)
Car.SetHeading(65@, 4.4441)
Camera.SetFixedPosition(2098.45, 2081.99, 9.88, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2056.37, 2043.26, 26.3, SwitchType.JumpCut)
skip_cutscene_start_internal @HEIST3_5607
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HEIST3_5432
if 
  Char.LocateAnyMeans3D($scplayer, 2088.0, 2076.0, 11.0, 5.0, 5.0, 3.0, False)
goto_if_false @HEIST3_5432
Char.SetCoordinates($scplayer, 2092.0, 2063.0, 11.0)
Char.SetHeading($scplayer, 0.0)

:HEIST3_5432
75@ = Sequence.Open()
if 
  Char.IsInAnyCar(56@)
goto_if_false @HEIST3_5457
Task.LeaveAnyCar(-1)

:HEIST3_5457
Task.GoStraightToCoord(-1, 2085.721, 2074.76, 10.0579, MoveState.Walk, -1)
Sequence.Close(75@)
Char.PerformSequence(56@, 75@)
Sequence.Clear(75@)
48@ = 0
TIMERA = 0

:HEIST3_5512
if 
  48@ == 0
goto_if_false @HEIST3_5607
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_5589
34@ = Char.GetScriptTaskStatus(56@, 1560)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_5582
48@ = 1

:HEIST3_5582
goto @HEIST3_5596

:HEIST3_5589
48@ = 1

:HEIST3_5596
wait 0
goto @HEIST3_5512

:HEIST3_5607
skip_cutscene_end 

:HEIST3_5609
if 
  not Car.IsDead(65@)
goto_if_false @HEIST3_5660
Car.SetCoordinates(65@, 2095.913, 2074.081, 9.8203)
Car.SetHeading(65@, 4.4441)
Car.CloseAllDoors(65@)

:HEIST3_5660
Camera.RestoreJumpcut
Blip.Remove(68@)
70@ = Blip.AddForCoord(77@, 78@, 79@)
Char.Delete(56@)
Char.MarkAsNoLongerNeeded(56@)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Text.Print('HEI3_03', 5000, 1)
35@ = 0
47@ = 3
goto @HEIST3_6703

:HEIST3_5739
80@, 81@, 82@ = Char.GetCoordinates($scplayer)
83@, 84@, 85@ = Char.GetCoordinates(56@)
46@ = Math.GetDistanceBetweenCoords3D(80@, 81@, 82@, 83@, 84@, 85@)
cset_lvar_int_to_lvar_float 36@ =# 46@
if 
  is_int_lvar_equal_to_constant 34@ == 1
goto_if_false @HEIST3_6703
34@ = Char.GetSequenceProgress(56@)
if 
  5 > 34@
goto_if_false @HEIST3_6703
if 
  51@ == 1
goto_if_false @HEIST3_6223
if 
  36@ > 140
goto_if_false @HEIST3_6090
Text.ClearPrints
if 
  36@ > 168
goto_if_false @HEIST3_6074
if 
  not Char.IsOnScreen(56@)
goto_if_false @HEIST3_6051
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_6021
Camera.DoFade(1000, Fade.Out)

:HEIST3_5950
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_5974
wait 0
goto @HEIST3_5950

:HEIST3_5974
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_5997
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_6021
wait 0
goto @HEIST3_5997

:HEIST3_6021
Text.Print('HEI3_16', 5000, 1)
goto @HEIST3_22966
goto @HEIST3_6067

:HEIST3_6051
Text.Print('HEI3_10', 1000, 1)

:HEIST3_6067
goto @HEIST3_6090

:HEIST3_6074
Text.Print('HEI3_10', 1000, 1)

:HEIST3_6090
if 
  Char.LocateAnyMeansChar3D($scplayer, 56@, 22.5, 22.5, 20.0, False)
goto_if_false @HEIST3_6165
if 
  TIMERA > 64
goto_if_false @HEIST3_6158
$d2_anim_rnd += 1
TIMERA = 0

:HEIST3_6158
goto @HEIST3_6216

:HEIST3_6165
if 
  TIMERA > 150
goto_if_false @HEIST3_6216
if 
  $d2_anim_rnd > 0
goto_if_false @HEIST3_6209
$d2_anim_rnd -= 1

:HEIST3_6209
TIMERA = 0

:HEIST3_6216
goto @HEIST3_6267

:HEIST3_6223
if 
  51@ == 0
goto_if_false @HEIST3_6267
if 
  TIMERB > 4000
goto_if_false @HEIST3_6267
51@ = 1

:HEIST3_6267
if 
  0 > $d2_anim_rnd
goto_if_false @HEIST3_6299
$d2_anim_rnd = 0
goto @HEIST3_6324

:HEIST3_6299
if 
  $d2_anim_rnd > 100
goto_if_false @HEIST3_6324
$d2_anim_rnd = 100

:HEIST3_6324
if 
  $d2_anim_rnd > 10
goto_if_false @HEIST3_6383
if 
  52@ == 0
goto_if_false @HEIST3_6383
Text.PrintNow('HEI3_11', 5000, 1)
52@ = 1

:HEIST3_6383
if 
  $d2_anim_rnd == 100
goto_if_false @HEIST3_6531
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_6508
Text.ClearPrints
Camera.DoFade(1000, Fade.Out)

:HEIST3_6437
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_6461
wait 0
goto @HEIST3_6437

:HEIST3_6461
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_6484
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_6508
wait 0
goto @HEIST3_6484

:HEIST3_6508
Text.PrintNow('HEI3_17', 5000, 1)
goto @HEIST3_22966

:HEIST3_6531
if or
  not Char.IsInCar(56@, 65@)
  Char.IsTouchingVehicle($scplayer, 65@)
  Car.HasBeenDamagedByChar(65@, $scplayer)
goto_if_false @HEIST3_6703
$d2_anim_rnd = 100
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_6680
Text.ClearPrints
Camera.DoFade(1000, Fade.Out)

:HEIST3_6609
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_6633
wait 0
goto @HEIST3_6609

:HEIST3_6633
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_6656
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_6680
wait 0
goto @HEIST3_6656

:HEIST3_6680
Text.PrintNow('HEI3_31', 5000, 1)
goto @HEIST3_22966

:HEIST3_6703
goto @HEIST3_6840

:HEIST3_6710
Text.ClearPrints
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_6817
Camera.DoFade(1000, Fade.Out)

:HEIST3_6746
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_6770
wait 0
goto @HEIST3_6746

:HEIST3_6770
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_6793
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_6817
wait 0
goto @HEIST3_6793

:HEIST3_6817
Text.Print('HEI3_18', 5000, 1)
goto @HEIST3_22966

:HEIST3_6840
goto @HEIST3_6977

:HEIST3_6847
Text.ClearPrints
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_6954
Camera.DoFade(1000, Fade.Out)

:HEIST3_6883
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_6907
wait 0
goto @HEIST3_6883

:HEIST3_6907
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_6930
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_6954
wait 0
goto @HEIST3_6930

:HEIST3_6954
Text.Print('HEI3_14', 5000, 1)
goto @HEIST3_22966

:HEIST3_6977
if 
  47@ == 3
goto_if_false @HEIST3_13413
if 
  Car.IsDead(65@)
goto_if_false @HEIST3_7141
Text.ClearPrints
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_7118
Camera.DoFade(1000, Fade.Out)

:HEIST3_7047
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_7071
wait 0
goto @HEIST3_7047

:HEIST3_7071
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_7094
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_7118
wait 0
goto @HEIST3_7094

:HEIST3_7118
Text.Print('HEI3_18', 5000, 1)
goto @HEIST3_22966

:HEIST3_7141
if 
  35@ == 0
goto_if_false @HEIST3_7926
if 
  Char.LocateOnFoot3D($scplayer, 2086.726, 2074.352, 10.0579, 2.0, 2.0, 3.0, True)
goto_if_false @HEIST3_7926
35@ = 1
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)

:HEIST3_7228
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_7252
wait 0
goto @HEIST3_7228

:HEIST3_7252
Text.ClearPrints
Char.SetHasUsedEntryExit($scplayer, 2086.726, 2074.352, 5.0579)
Streaming.SetAreaVisible(3)
Streaming.RequestCollision(-100.432, -23.1933)
Streaming.LoadScene(-100.432, -23.1933, 999.7261)
Char.SetCoordinates($scplayer, -100.432, -23.1933, 999.7261)
Char.SetHeading($scplayer, 0.0)
Streaming.LoadSpecialCharacter(1, 'CROGRL2')
Streaming.RequestModel(330)
Streaming.RequestModel(249)
Streaming.RequestModel(178)
Streaming.RequestModel(168)
Streaming.RequestModel(101)

:HEIST3_7374
if or
  not Streaming.HasModelLoaded(330)
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @HEIST3_7405
wait 0
goto @HEIST3_7374

:HEIST3_7405
if or
  not Streaming.HasModelLoaded(249)
  not Streaming.HasModelLoaded(178)
  not Streaming.HasModelLoaded(168)
  not Streaming.HasModelLoaded(101)
goto_if_false @HEIST3_7446
wait 0
goto @HEIST3_7405

:HEIST3_7446
59@ = Char.Create(PedType.Mission1, 168, -100.6538, -17.633, 999.7188)
Char.SetHeading(59@, 93.7683)
60@ = Char.Create(PedType.Mission1, 101, -108.0798, -18.0669, 999.7261)
Char.SetHeading(60@, 89.3157)
61@ = Char.Create(PedType.Mission1, 249, -105.6009, -13.6508, 999.7261)
Char.SetHeading(61@, 176.841)
62@ = Char.Create(PedType.Mission1, 178, -103.7278, -24.3711, 999.7261)
Char.SetHeading(62@, 349.7995)
63@ = Char.Create(PedType.Mission1, 178, -104.715, -8.9155, 999.7188)
Char.SetHeading(63@, 179.3188)
56@ = Char.Create(PedType.Special, 290, -113.9837, -8.3695, 999.7812)
Char.SetNeverTargeted(56@, True)
Char.SetHealth(56@, 200)
Char.SetSuffersCriticalHits(56@, False)
Char.SetDecisionMaker(56@, 42@)
Char.SetAnimGroup(56@, "SEXYWOMAN")
Char.SetHeading(56@, 183.0375)
if 
  Streaming.HasAnimationLoaded("CLOTHES")
goto_if_false @HEIST3_7768
Task.PlayAnimNonInterruptable($scplayer, "CLO_POSE_TORSO", "CLOTHES", 1000.0, True, False, False, True, -1)

:HEIST3_7768
Blip.Remove(70@)
Blip.Remove(68@)
58@ = Char.Create(PedType.Mission1, 178, -115.8863, -12.0374, 999.7886)
Char.SetAnimGroup(58@, "SEXYWOMAN")
Char.SetDecisionMaker(58@, 42@)
Char.SetHeading(58@, 297.3894)
Char.SetCoordinates($scplayer, -100.432, -23.1933, 999.7261)
Char.SetHeading($scplayer, 0.0)
wait 1000
Camera.DoFade(1000, Fade.In)

:HEIST3_7879
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_7903
wait 0
goto @HEIST3_7879

:HEIST3_7903
Player.SetControl($player1, True)
Text.Print('HEI3_29', 5000, 1)

:HEIST3_7926
if 
  35@ == 1
goto_if_false @HEIST3_13413
if 
  Char.LocateAnyMeans3D($scplayer, -107.1254, -12.2446, 1000.821, 15.2999, 15.0999, 35.2997, False)
goto_if_false @HEIST3_13283
if 
  not Char.IsDead(62@)
goto_if_false @HEIST3_8060
if 
  Char.LocateAnyMeansChar3D($scplayer, 62@, 3.0, 3.0, 3.0, False)
goto_if_false @HEIST3_8060
43@ = Char.SetSayContextImportant(62@, 88, True, False, False)

:HEIST3_8060
if 
  not Char.IsDead(63@)
goto_if_false @HEIST3_8128
if 
  Char.LocateAnyMeansChar3D($scplayer, 63@, 3.0, 3.0, 3.0, False)
goto_if_false @HEIST3_8128
43@ = Char.SetSayContextImportant(63@, 109, True, False, False)

:HEIST3_8128
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_13146
if 
  not Char.IsDead(58@)
goto_if_false @HEIST3_13009
if or
  Char.HasBeenDamagedByChar(56@, $scplayer)
  Char.HasBeenDamagedByChar(58@, $scplayer)
goto_if_false @HEIST3_8410
Text.ClearPrints
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_8294
Camera.DoFade(1000, Fade.Out)

:HEIST3_8223
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_8247
wait 0
goto @HEIST3_8223

:HEIST3_8247
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_8270
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_8294
wait 0
goto @HEIST3_8270

:HEIST3_8294
if and
  not Char.IsDead(56@)
  not Char.IsHeadMissing(56@)
goto_if_false @HEIST3_8387
35@ = Char.GetHealth(56@)
if 
  35@ > 0
goto_if_false @HEIST3_8364
Text.Print('HEI3_31', 5000, 1)
goto @HEIST3_8380

:HEIST3_8364
Text.Print('HEI3_14', 5000, 1)

:HEIST3_8380
goto @HEIST3_8403

:HEIST3_8387
Text.Print('HEI3_14', 5000, 1)

:HEIST3_8403
goto @HEIST3_22966

:HEIST3_8410
if 
  Char.LocateStoppedAnyMeans3D($scplayer, -109.7757, -12.6704, 999.7188, 1.2, 1.2, 3.1, True)
goto_if_false @HEIST3_13002
World.ClearArea(-107.7856, -12.4046, 999.7812, 50.0, True)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Text.ClearPrints
Camera.SetFixedPosition(-113.08, -12.39, 1000.76, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-119.54, -8.15, 1001.83, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, -109.7757, -12.6704, 999.7188)
Char.SetHeading($scplayer, 59.7399)
skip_cutscene_start_internal @HEIST3_12821
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0

:HEIST3_8653
wait 0
if 
  137@ == 0
goto_if_false @HEIST3_9463
if 
  133@ <> 0
goto_if_false @HEIST3_9014
if 
  136@ == 0
goto_if_false @HEIST3_8739
if 
  Audio.HasMissionAudioLoaded(135@)
goto_if_false @HEIST3_8732
Audio.ClearMissionAudio(135@)

:HEIST3_8732
136@ = 1

:HEIST3_8739
if 
  136@ == 1
goto_if_false @HEIST3_8776
Audio.LoadMissionAudio(134@, 89@(133@,44i))
136@ = 2

:HEIST3_8776
if 
  136@ == 2
goto_if_false @HEIST3_8836
if 
  Audio.HasMissionAudioLoaded(134@)
goto_if_false @HEIST3_8836
Audio.PlayMissionAudio(134@)
Text.PrintNow($hei3_spook(133@,44s), 10000, 1)
136@ = 3

:HEIST3_8836
if 
  136@ == 3
goto_if_false @HEIST3_9014
if 
  Audio.HasMissionAudioFinished(134@)
goto_if_false @HEIST3_8953
Text.ClearThisPrint($hei3_spook(133@,44s))
if 
  134@ == 1
goto_if_false @HEIST3_8918
134@ = 2
135@ = 1
goto @HEIST3_8932

:HEIST3_8918
134@ = 1
135@ = 2

:HEIST3_8932
133@ = 0
136@ = 0
goto @HEIST3_9014

:HEIST3_8953
if 
  not Audio.HasMissionAudioLoaded(135@)
goto_if_false @HEIST3_9014
if 
  8 > 133@
goto_if_false @HEIST3_9014
set_lvar_int_to_lvar_int 142@ = 133@
142@ += 1
Audio.LoadMissionAudio(135@, 89@(142@,44i))

:HEIST3_9014
switch_start 138@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @HEIST3_9363 {caseNum1} 0 {caseLabel1} @HEIST3_9077 {caseNum2} 1 {caseLabel2} @HEIST3_9150 {caseNum3} 2 {caseLabel3} @HEIST3_9279 {caseNum4} -1 {caseLabel4} @HEIST3_9456 {caseNum5} -1 {caseLabel5} @HEIST3_9456 {caseNum6} -1 {caseLabel6} @HEIST3_9456 {caseNum7} -1 {caseLabel7} @HEIST3_9456

:HEIST3_9077
if 
  136@ == 0
goto_if_false @HEIST3_9143
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_9124
Char.StopFacialTalk(56@)
Char.StartFacialTalk(56@, 3000)

:HEIST3_9124
133@ = 4
138@ = 1
141@ = Clock.GetGameTimer()

:HEIST3_9143
goto @HEIST3_9456

:HEIST3_9150
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_9272
if 
  136@ == 0
goto_if_false @HEIST3_9272
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_9229
Char.StopFacialTalk(56@)

:HEIST3_9229
if 
  not Char.IsDead(58@)
goto_if_false @HEIST3_9253
Char.StartFacialTalk(58@, 3000)

:HEIST3_9253
133@ = 5
138@ = 2
141@ = Clock.GetGameTimer()

:HEIST3_9272
goto @HEIST3_9456

:HEIST3_9279
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_9356
if 
  136@ == 0
goto_if_false @HEIST3_9356
133@ = 6
138@ = 3
141@ = Clock.GetGameTimer()

:HEIST3_9356
goto @HEIST3_9456

:HEIST3_9363
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_9449
if 
  136@ == 0
goto_if_false @HEIST3_9449
if 
  not Char.IsDead(58@)
goto_if_false @HEIST3_9442
Char.StopFacialTalk(58@)

:HEIST3_9442
137@ = 1

:HEIST3_9449
goto @HEIST3_9456

:HEIST3_9456
goto @HEIST3_8653

:HEIST3_9463
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_9571
if 
  not Char.IsDead(58@)
goto_if_false @HEIST3_9571
75@ = Sequence.Open()
Task.GoStraightToCoord(-1, -113.8582, -9.7549, 999.7812, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -114.2882, -11.5372, 999.7886, MoveState.Walk, -1)
Task.TurnCharToFaceChar(-1, 58@)
Sequence.Close(75@)
Char.PerformSequence(56@, 75@)
Sequence.Clear(75@)

:HEIST3_9571
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_9662
if 
  48@ == 0
goto_if_false @HEIST3_10222
if 
  137@ == 0
goto_if_false @HEIST3_9997
if 
  133@ <> 0
goto_if_false @HEIST3_9997
if 
  136@ == 0
goto_if_false @HEIST3_9762
if 
  Audio.HasMissionAudioLoaded(135@)
goto_if_false @HEIST3_9755
Audio.ClearMissionAudio(135@)

:HEIST3_9755
136@ = 1

:HEIST3_9762
if 
  136@ == 1
goto_if_false @HEIST3_9799
Audio.LoadMissionAudio(134@, 89@(133@,44i))
136@ = 2

:HEIST3_9799
if 
  136@ == 2
goto_if_false @HEIST3_9859
if 
  Audio.HasMissionAudioLoaded(134@)
goto_if_false @HEIST3_9859
Audio.PlayMissionAudio(134@)
Text.PrintNow($hei3_spook(133@,44s), 10000, 1)
136@ = 3

:HEIST3_9859
if 
  136@ == 3
goto_if_false @HEIST3_9997
if 
  Audio.HasMissionAudioFinished(134@)
goto_if_false @HEIST3_9997
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_9914
Char.StopFacialTalk(56@)

:HEIST3_9914
Text.ClearThisPrint($hei3_spook(133@,44s))
if 
  134@ == 1
goto_if_false @HEIST3_9962
134@ = 2
135@ = 1
goto @HEIST3_9976

:HEIST3_9962
134@ = 1
135@ = 2

:HEIST3_9976
133@ = 0
136@ = 0
137@ = 1

:HEIST3_9997
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_10204
34@ = Char.GetScriptTaskStatus(56@, 1560)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_10074
if 
  136@ == 0
goto_if_false @HEIST3_10067
48@ = 1

:HEIST3_10067
goto @HEIST3_10197

:HEIST3_10074
if 
  35@ == 0
goto_if_false @HEIST3_10197
if 
  is_int_lvar_equal_to_constant 34@ == 1
goto_if_false @HEIST3_10197
34@ = Char.GetSequenceProgress(56@)
if 
  34@ == 2
goto_if_false @HEIST3_10197
if 
  136@ == 0
goto_if_false @HEIST3_10197
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_10183
Char.StopFacialTalk(56@)
Char.StartFacialTalk(56@, 2000)

:HEIST3_10183
133@ = 7
35@ = 1

:HEIST3_10197
goto @HEIST3_10211

:HEIST3_10204
48@ = 1

:HEIST3_10211
wait 0
goto @HEIST3_9662

:HEIST3_10222
if 
  Text.IsMessageBeingDisplayed
goto_if_false @HEIST3_10246
wait 0
goto @HEIST3_10222

:HEIST3_10246
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_10317
75@ = Sequence.Open()
Task.GoStraightToCoord(-1, -112.6415, -12.4015, 999.7812, MoveState.Walk, -1)
Task.AchieveHeading(-1, 247.0)
Sequence.Close(75@)
Char.PerformSequence(56@, 75@)
Sequence.Clear(75@)

:HEIST3_10317
Camera.SetFixedPosition(-112.15, -11.94, 1001.16, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-123.84, -14.32, 1002.43, SwitchType.JumpCut)
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_10389
if 
  48@ == 0
goto_if_false @HEIST3_10724
if 
  148@ <> 0
goto_if_false @HEIST3_10603
if 
  149@ == 0
goto_if_false @HEIST3_10469
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST3_10462
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:HEIST3_10462
149@ = 1

:HEIST3_10469
if 
  149@ == 1
goto_if_false @HEIST3_10505
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 143@(148@,5i))
149@ = 2

:HEIST3_10505
if 
  149@ == 2
goto_if_false @HEIST3_10549
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST3_10549
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
149@ = 3

:HEIST3_10549
if 
  149@ == 3
goto_if_false @HEIST3_10603
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @HEIST3_10603
148@ = 0
149@ = 0
TIMERA = 0

:HEIST3_10603
if 
  149@ == 0
goto_if_false @HEIST3_10647
if 
  2000 > TIMERA
goto_if_false @HEIST3_10647
148@ = 4

:HEIST3_10647
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_10706
34@ = Char.GetScriptTaskStatus(56@, 1560)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_10699
48@ = 1

:HEIST3_10699
goto @HEIST3_10713

:HEIST3_10706
48@ = 1

:HEIST3_10713
wait 0
goto @HEIST3_10389

:HEIST3_10724
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_10756
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Task.UseMobilePhone(56@, True)
wait 2000

:HEIST3_10756
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0

:HEIST3_10826
wait 0
if 
  137@ == 0
goto_if_false @HEIST3_11747
if 
  133@ <> 0
goto_if_false @HEIST3_11208
if 
  136@ == 0
goto_if_false @HEIST3_10912
if 
  Audio.HasMissionAudioLoaded(135@)
goto_if_false @HEIST3_10905
Audio.ClearMissionAudio(135@)

:HEIST3_10905
136@ = 1

:HEIST3_10912
if 
  136@ == 1
goto_if_false @HEIST3_10949
Audio.LoadMissionAudio(134@, 89@(133@,44i))
136@ = 2

:HEIST3_10949
if 
  136@ == 2
goto_if_false @HEIST3_11009
if 
  Audio.HasMissionAudioLoaded(134@)
goto_if_false @HEIST3_11009
Audio.PlayMissionAudio(134@)
Text.PrintNow($hei3_spook(133@,44s), 10000, 1)
136@ = 3

:HEIST3_11009
if 
  136@ == 3
goto_if_false @HEIST3_11208
if 
  Audio.HasMissionAudioFinished(134@)
goto_if_false @HEIST3_11147
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_11064
Char.StopFacialTalk(56@)

:HEIST3_11064
Text.ClearThisPrint($hei3_spook(133@,44s))
if 
  134@ == 1
goto_if_false @HEIST3_11112
134@ = 2
135@ = 1
goto @HEIST3_11126

:HEIST3_11112
134@ = 1
135@ = 2

:HEIST3_11126
133@ = 0
136@ = 0
goto @HEIST3_11208

:HEIST3_11147
if 
  not Audio.HasMissionAudioLoaded(135@)
goto_if_false @HEIST3_11208
if 
  8 > 133@
goto_if_false @HEIST3_11208
set_lvar_int_to_lvar_int 142@ = 133@
142@ += 1
Audio.LoadMissionAudio(135@, 89@(142@,44i))

:HEIST3_11208
switch_start 138@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @HEIST3_11668 {caseNum1} 0 {caseLabel1} @HEIST3_11271 {caseNum2} 1 {caseLabel2} @HEIST3_11344 {caseNum3} 2 {caseLabel3} @HEIST3_11452 {caseNum4} 3 {caseLabel4} @HEIST3_11560 {caseNum5} -1 {caseLabel5} @HEIST3_11740 {caseNum6} -1 {caseLabel6} @HEIST3_11740 {caseNum7} -1 {caseLabel7} @HEIST3_11740

:HEIST3_11271
if 
  136@ == 0
goto_if_false @HEIST3_11337
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_11318
Char.StopFacialTalk(56@)
Char.StartFacialTalk(56@, 3000)

:HEIST3_11318
133@ = 8
138@ = 1
141@ = Clock.GetGameTimer()

:HEIST3_11337
goto @HEIST3_11740

:HEIST3_11344
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_11445
if 
  136@ == 0
goto_if_false @HEIST3_11445
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_11426
Char.StartFacialTalk(56@, 3000)

:HEIST3_11426
133@ = 9
138@ = 2
141@ = Clock.GetGameTimer()

:HEIST3_11445
goto @HEIST3_11740

:HEIST3_11452
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_11553
if 
  136@ == 0
goto_if_false @HEIST3_11553
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_11534
Char.StartFacialTalk(56@, 2000)

:HEIST3_11534
133@ = 10
138@ = 3
141@ = Clock.GetGameTimer()

:HEIST3_11553
goto @HEIST3_11740

:HEIST3_11560
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_11661
if 
  136@ == 0
goto_if_false @HEIST3_11661
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_11642
Char.StartFacialTalk(56@, 3000)

:HEIST3_11642
133@ = 11
138@ = 4
141@ = Clock.GetGameTimer()

:HEIST3_11661
goto @HEIST3_11740

:HEIST3_11668
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_11733
if 
  136@ == 0
goto_if_false @HEIST3_11733
137@ = 1

:HEIST3_11733
goto @HEIST3_11740

:HEIST3_11740
goto @HEIST3_10826

:HEIST3_11747
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_11804
34@ = Char.GetScriptTaskStatus(56@, 1833)
if 
  not is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_11799
Task.UseMobilePhone(56@, False)

:HEIST3_11799
Streaming.MarkModelAsNoLongerNeeded(330)

:HEIST3_11804
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_11921
75@ = Sequence.Open()
Task.AchieveHeading(-1, 87.0)
Task.GoStraightToCoord(-1, -114.2882, -11.5372, 999.7886, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -113.8582, -9.7549, 999.7812, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -113.9837, -8.3695, 999.7812, MoveState.Walk, -1)
Sequence.Close(75@)
Char.PerformSequence(56@, 75@)
Sequence.Clear(75@)

:HEIST3_11921
if 
  not Char.IsDead(58@)
goto_if_false @HEIST3_11990
75@ = Sequence.Open()
Task.StandStill(-1, 3000)
Task.GoStraightToCoord(-1, -102.0, -12.0, 1001.0, MoveState.Walk, -1)
Sequence.Close(75@)
Char.PerformSequence(58@, 75@)
Sequence.Clear(75@)

:HEIST3_11990
Camera.SetFixedPosition(-106.63, -11.88, 1001.28, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-120.22, -11.77, 1000.71, SwitchType.JumpCut)
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_12062
if 
  48@ == 0
goto_if_false @HEIST3_12215
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_12197
34@ = Char.GetScriptTaskStatus(56@, 1560)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_12139
48@ = 1
goto @HEIST3_12190

:HEIST3_12139
if 
  is_int_lvar_equal_to_constant 34@ == 1
goto_if_false @HEIST3_12190
34@ = Char.GetSequenceProgress(56@)
if 
  34@ == 3
goto_if_false @HEIST3_12190
48@ = 1

:HEIST3_12190
goto @HEIST3_12204

:HEIST3_12197
48@ = 1

:HEIST3_12204
wait 0
goto @HEIST3_12062

:HEIST3_12215
48@ = 0
148@ = 3
149@ = 0

:HEIST3_12236
if 
  48@ == 0
goto_if_false @HEIST3_12461
if 
  148@ <> 0
goto_if_false @HEIST3_12450
if 
  149@ == 0
goto_if_false @HEIST3_12316
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST3_12309
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:HEIST3_12309
149@ = 1

:HEIST3_12316
if 
  149@ == 1
goto_if_false @HEIST3_12352
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 143@(148@,5i))
149@ = 2

:HEIST3_12352
if 
  149@ == 2
goto_if_false @HEIST3_12396
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST3_12396
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
149@ = 3

:HEIST3_12396
if 
  149@ == 3
goto_if_false @HEIST3_12450
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @HEIST3_12450
148@ = 0
149@ = 0
48@ = 1

:HEIST3_12450
wait 0
goto @HEIST3_12236

:HEIST3_12461
Camera.DoFade(1500, Fade.Out)

:HEIST3_12468
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_12492
wait 0
goto @HEIST3_12468

:HEIST3_12492
Char.Delete(56@)
Char.MarkAsNoLongerNeeded(56@)
56@ = Char.Create(PedType.Mission1, 194, -100.3376, -20.1905, 999.7812)
Char.SetDecisionMaker(56@, 42@)
Char.SetAnimGroup(56@, "SEXYWOMAN")
Char.SetHeading(56@, 183.4416)
Camera.SetFixedPosition(-101.69, -20.2, 1000.67, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-84.83, -44.52, 1005.63, SwitchType.JumpCut)
Camera.DoFade(1500, Fade.In)

:HEIST3_12619
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_12643
wait 0
goto @HEIST3_12619

:HEIST3_12643
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_12705
75@ = Sequence.Open()
Task.GoStraightToCoord(-1, -100.2427, -24.2149, 999.7886, MoveState.Walk, -1)
Sequence.Close(75@)
Char.PerformSequence(56@, 75@)
Sequence.Clear(75@)

:HEIST3_12705
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_12726
if 
  48@ == 0
goto_if_false @HEIST3_12821
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_12803
34@ = Char.GetScriptTaskStatus(56@, 1560)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_12796
48@ = 1

:HEIST3_12796
goto @HEIST3_12810

:HEIST3_12803
48@ = 1

:HEIST3_12810
wait 0
goto @HEIST3_12726

:HEIST3_12821
skip_cutscene_end 
Audio.ClearMissionAudio(134@)
Audio.ClearMissionAudio(135@)
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Camera.DoFade(500, Fade.In)

:HEIST3_12846
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_12870
wait 0
goto @HEIST3_12846

:HEIST3_12870
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
64@ = Pickup.Create(#CLOTHESP, PickupType.Once, -114.6156, -8.6308, 1000.713)
73@ = Blip.AddForPickup(64@)
Blip.SetEntryExit(73@, 2090.0, 2074.0, 10.0)
Text.Print('HEI3_04', 5000, 1)
Char.MarkAsNoLongerNeeded(56@)
Char.MarkAsNoLongerNeeded(58@)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.UnloadSpecialCharacter(1)
Char.Delete(58@)
Char.Delete(56@)
Streaming.RequestModel(555)
35@ = 0
47@ = 4

:HEIST3_13002
goto @HEIST3_13139

:HEIST3_13009
Text.ClearPrints
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_13116
Camera.DoFade(1000, Fade.Out)

:HEIST3_13045
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_13069
wait 0
goto @HEIST3_13045

:HEIST3_13069
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_13092
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_13116
wait 0
goto @HEIST3_13092

:HEIST3_13116
Text.Print('HEI3_31', 5000, 1)
goto @HEIST3_22966

:HEIST3_13139
goto @HEIST3_13276

:HEIST3_13146
Text.ClearPrints
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_13253
Camera.DoFade(1000, Fade.Out)

:HEIST3_13182
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_13206
wait 0
goto @HEIST3_13182

:HEIST3_13206
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_13229
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_13253
wait 0
goto @HEIST3_13229

:HEIST3_13253
Text.Print('HEI3_14', 5000, 1)
goto @HEIST3_22966

:HEIST3_13276
goto @HEIST3_13413

:HEIST3_13283
Text.ClearPrints
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_13390
Camera.DoFade(1000, Fade.Out)

:HEIST3_13319
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_13343
wait 0
goto @HEIST3_13319

:HEIST3_13343
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_13366
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_13390
wait 0
goto @HEIST3_13366

:HEIST3_13390
Text.Print('HEI3_16', 5000, 1)
goto @HEIST3_22966

:HEIST3_13413
if 
  47@ == 4
goto_if_false @HEIST3_14378
if 
  50@ == 0
goto_if_false @HEIST3_14293
if 
  35@ == 0
goto_if_false @HEIST3_13478
World.DisableAllEntryExits(True)
35@ = 1

:HEIST3_13478
if 
  Pickup.HasBeenCollected(64@)
goto_if_false @HEIST3_14286
Pickup.Remove(64@)
Text.ClearPrints
$2753 = Player.StoreScore($player1)
if 
  $2753 >= 200
goto_if_false @HEIST3_13543
Player.AddScore($player1, -200)
goto @HEIST3_13558

:HEIST3_13543
$2753 *= -1
Player.AddScore($player1, $2753)

:HEIST3_13558
Player.SetControl($player1, False)
Audio.SetMusicDoesFade(False)
Camera.DoFade(1500, Fade.Out)

:HEIST3_13576
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_13600
wait 0
goto @HEIST3_13576

:HEIST3_13600
Hud.SwitchWidescreen(True)
Blip.Remove(73@)
Player.StoreClothesState
53@ = 1
Player.GiveClothesOutsideShop($player1, "GIMPLEG", "GIMPLEG", BodyPart.SpecialCostume)
Player.BuildModel($player1)
48@ = 0
148@ = 1
149@ = 0

:HEIST3_13669
if 
  48@ == 0
goto_if_false @HEIST3_13894
if 
  148@ <> 0
goto_if_false @HEIST3_13883
if 
  149@ == 0
goto_if_false @HEIST3_13749
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST3_13742
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:HEIST3_13742
149@ = 1

:HEIST3_13749
if 
  149@ == 1
goto_if_false @HEIST3_13785
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 143@(148@,5i))
149@ = 2

:HEIST3_13785
if 
  149@ == 2
goto_if_false @HEIST3_13829
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST3_13829
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
149@ = 3

:HEIST3_13829
if 
  149@ == 3
goto_if_false @HEIST3_13883
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @HEIST3_13883
148@ = 0
149@ = 0
48@ = 1

:HEIST3_13883
wait 0
goto @HEIST3_13669

:HEIST3_13894
Camera.SetFixedPosition(-111.19, -12.67, 1002.69, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-124.89, -3.78, 997.61, SwitchType.JumpCut)
World.ClearArea(-113.9837, -8.3695, 999.7812, 20.0, True)
Char.SetCoordinates($scplayer, -113.9837, -8.3695, 999.7812)
Char.SetHeading($scplayer, 183.0)
Camera.DoFade(1000, Fade.In)

:HEIST3_14006
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_14030
wait 0
goto @HEIST3_14006

:HEIST3_14030
Audio.SetMusicDoesFade(True)
74@ = Sequence.Open()
Task.StandStill(-1, 1000)
Task.GoStraightToCoord(-1, -113.8582, -9.7549, 999.7812, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, -114.2882, -11.5372, 999.7886, MoveState.Walk, -1)
Task.AchieveHeading(-1, 252.0)
Task.ScratchHead(-1)
Sequence.Close(74@)
Char.PerformSequence($scplayer, 74@)
Sequence.Clear(74@)
48@ = 0

:HEIST3_14130
if 
  48@ == 0
goto_if_false @HEIST3_14225
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST3_14207
34@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_14200
48@ = 1

:HEIST3_14200
goto @HEIST3_14214

:HEIST3_14207
48@ = 1

:HEIST3_14214
wait 0
goto @HEIST3_14130

:HEIST3_14225
World.DisableAllEntryExits(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Text.Print('HEI3_30', 5000, 1)
Blip.Remove(70@)
70@ = Blip.AddForCoord(77@, 78@, 79@)
50@ = 1

:HEIST3_14286
goto @HEIST3_14378

:HEIST3_14293
if 
  Char.LocateAnyMeans3D($scplayer, -100.5496, -24.1101, 999.7886, 1.3, 1.3, 50.0, False)
goto_if_false @HEIST3_14348
47@ = 5

:HEIST3_14348
35@ = Streaming.GetAreaVisible()
if 
  35@ == 0
goto_if_false @HEIST3_14378
47@ = 5

:HEIST3_14378
if 
  47@ == 5
goto_if_false @HEIST3_16045
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)

:HEIST3_14410
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_14434
wait 0
goto @HEIST3_14410

:HEIST3_14434
Blip.Remove(70@)
Char.MarkAsNoLongerNeeded(58@)
Char.MarkAsNoLongerNeeded(59@)
Char.MarkAsNoLongerNeeded(60@)
Char.MarkAsNoLongerNeeded(61@)
Char.MarkAsNoLongerNeeded(62@)
Char.MarkAsNoLongerNeeded(63@)
Streaming.MarkModelAsNoLongerNeeded(249)
Streaming.MarkModelAsNoLongerNeeded(178)
Streaming.MarkModelAsNoLongerNeeded(168)
Streaming.MarkModelAsNoLongerNeeded(101)
Streaming.SetAreaVisible(0)
Streaming.RequestModel(162)
Streaming.RequestModel(321)
Streaming.RequestModel(555)

:HEIST3_14507
if or
  not Streaming.HasModelLoaded(162)
  not Streaming.HasModelLoaded(321)
  not Streaming.HasModelLoaded(555)
goto_if_false @HEIST3_14544
wait 0
goto @HEIST3_14507

:HEIST3_14544
Streaming.LoadScene(2085.12, 2077.086, 15.8434)
World.ClearArea(2105.957, 2039.186, 9.8203, 6.0, True)
World.ClearArea(2093.913, 2047.081, 9.8203, 6.0, True)
World.ClearArea(2093.913, 2055.081, 9.8203, 6.0, True)
World.ClearArea(2093.913, 2060.081, 9.8203, 6.0, True)
World.ClearArea(2093.913, 2065.081, 9.8203, 6.0, True)
World.ClearArea(2093.913, 2070.081, 9.8203, 6.0, True)
World.ClearArea(2088.827, 2076.001, 9.8203, 12.0, True)
67@ = Car.Create(555, 2103.957, 2073.186, 9.8203)
Car.SetHeading(67@, 270.8618)
Car.MarkAsNoLongerNeeded(67@)
Streaming.MarkModelAsNoLongerNeeded(555)
Char.SetHasUsedEntryExit($scplayer, -100.3132, -25.1503, 20.0)
Char.SetCoordinates($scplayer, 2085.12, 2077.086, 15.8434)
Char.SetHeading($scplayer, 268.8011)
Streaming.SetAreaVisible(0)
56@ = Char.Create(PedType.Mission1, 194, 2085.721, 2074.76, 10.0579)
Char.SetDecisionMaker(56@, 42@)
Char.SetAnimGroup(56@, "SEXYWOMAN")
68@ = Blip.AddForChar(56@)
Char.SetHeading(56@, 271.0)
Path.FlushRoute
Path.ExtendRoute(2037.671, 2743.196, 9.6875)
Car.Delete(65@)
Car.MarkAsNoLongerNeeded(65@)
Car.CustomPlateForNextCar(589, "_SPANK__")
65@ = Car.Create(589, 2095.913, 2074.081, 9.8203)
Car.ChangeColor(65@, 126, 126)
Car.SetCanBurstTires(65@, False)
Car.LockDoors(65@, CarLock.LockoutPlayerOnly)
if 
  not Car.IsDead(65@)
goto_if_false @HEIST3_15097
Car.SetCoordinates(65@, 2095.913, 2074.081, 9.8203)
Car.SetHeading(65@, 4.444)
Car.SetHealth(65@, 1000)
75@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2093.418, 2073.646, 9.8203, MoveState.Walk, -1)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsDriver(-1, 65@, 20000)
Sequence.Close(75@)
Char.PerformSequence(56@, 75@)
Sequence.Clear(75@)

:HEIST3_15097
Text.ClearPrints
Text.Print('HEI3_09', 5000, 1)
Camera.SetFixedPosition(2098.5, 2076.12, 11.8, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2075.2, 2067.39, 7.26, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Camera.DoFade(1500, Fade.In)

:HEIST3_15177
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_15201
wait 0
goto @HEIST3_15177

:HEIST3_15201
49@ = 0
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_15229
if 
  48@ == 0
goto_if_false @HEIST3_15360
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST3_15278
48@ = 1
49@ = 1

:HEIST3_15278
if and
  not Char.IsDead(56@)
  not Car.IsDead(65@)
goto_if_false @HEIST3_15342
34@ = Char.GetScriptTaskStatus(56@, 1560)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_15335
48@ = 1

:HEIST3_15335
goto @HEIST3_15349

:HEIST3_15342
48@ = 1

:HEIST3_15349
wait 0
goto @HEIST3_15229

:HEIST3_15360
if 
  49@ == 0
goto_if_false @HEIST3_15613
Streaming.RequestCarRecording(803)

:HEIST3_15383
if 
  not Streaming.HasCarRecordingBeenLoaded(803)
goto_if_false @HEIST3_15410
wait 0
goto @HEIST3_15383

:HEIST3_15410
if 
  not Car.IsDead(65@)
goto_if_false @HEIST3_15434
Car.StartPlayback(65@, 803)

:HEIST3_15434
Streaming.LoadSceneInDirection(2084.08, 2068.62, 11.22, 206.8418)
Camera.SetFixedPosition(2088.506, 2079.985, 10.6126, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2088.675, 2079.0, 10.5742, SwitchType.JumpCut)
48@ = 0

:HEIST3_15514
if 
  48@ == 0
goto_if_false @HEIST3_15613
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST3_15563
49@ = 1
48@ = 1

:HEIST3_15563
if 
  not Car.IsDead(65@)
goto_if_false @HEIST3_15602
if 
  not Car.IsPlaybackGoingOn(65@)
goto_if_false @HEIST3_15602
48@ = 1

:HEIST3_15602
wait 0
goto @HEIST3_15514

:HEIST3_15613
Streaming.RemoveCarRecording(803)
Text.ClearPrints
if 
  49@ == 1
goto_if_false @HEIST3_15716
if and
  not Car.IsDead(65@)
  not Char.IsDead(56@)
goto_if_false @HEIST3_15716
if 
  not Char.IsInCar(56@, 65@)
goto_if_false @HEIST3_15686
Char.WarpIntoCar(56@, 65@)

:HEIST3_15686
Car.SetCoordinates(65@, 2109.004, 2039.756, 9.8125)
Car.SetHeading(65@, 269.4456)

:HEIST3_15716
if 
  not Car.IsDead(65@)
goto_if_false @HEIST3_15751
Car.CloseAllDoors(65@)
Car.LockDoors(65@, CarLock.ForceShutDoors)
Car.LockDoors(65@, CarLock.LockoutPlayerOnly)

:HEIST3_15751
Char.SetCoordinates($scplayer, 2089.653, 2083.562, 9.8203)
Char.SetHeading($scplayer, 223.4858)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
$d2_anim_rnd = 0
Hud.DisplayCounterWithString($d2_anim_rnd, CounterDisplay.Bar, 'HEI3_94')
Path.FlushRoute
Path.ExtendRoute(2123.365, 2030.273, 9.6719)
Path.ExtendRoute(2038.803, 2023.952, 9.6875)
Path.ExtendRoute(1929.384, 2175.129, 9.7972)
Path.ExtendRoute(1931.512, 2385.797, 9.6719)
Path.ExtendRoute(2029.426, 2417.225, 9.7143)
Path.ExtendRoute(2045.03, 2745.491, 9.6719)
Path.ExtendRoute(2035.317, 2737.322, 9.6719)
Path.ExtendRoute(2035.338, 2726.573, 9.8281)
if and
  not Car.IsDead(65@)
  not Char.IsDead(56@)
goto_if_false @HEIST3_16017
75@ = Sequence.Open()
Task.DrivePointRouteAdvanced(-1, 65@, 20.0, DriveMode.Normal, 0, DrivingMode.AvoidCarsObeyLights)
Sequence.Close(75@)
Char.PerformSequence(56@, 75@)
Sequence.Clear(75@)

:HEIST3_16017
TIMERA = 0
TIMERB = 0
51@ = 0
47@ = 6

:HEIST3_16045
if 
  47@ == 6
goto_if_false @HEIST3_18132
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_18002
if 
  not Car.IsDead(65@)
goto_if_false @HEIST3_17865
34@ = Char.GetScriptTaskStatus(56@, 1560)
if 
  55@ == 0
goto_if_false @HEIST3_17211
if 
  Char.LocateAnyMeans3D($scplayer, 2037.891, 2749.534, 9.8125, 40.0, 40.0, 4.0, False)
goto_if_false @HEIST3_16209
  Char.LocateAnyMeans3D($scplayer, 2037.891, 2749.534, 9.8125, 4.0, 4.0, 4.0, True)

:HEIST3_16209
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_16284
Blip.Remove(68@)
68@ = Blip.AddForCoord(2038.836, 2749.803, 9.8203)
Text.ClearPrints
Text.Print('HEI3_96', 5000, 1)
55@ = 1
goto @HEIST3_17204

:HEIST3_16284
80@, 81@, 82@ = Char.GetCoordinates($scplayer)
83@, 84@, 85@ = Char.GetCoordinates(56@)
46@ = Math.GetDistanceBetweenCoords3D(80@, 81@, 82@, 83@, 84@, 85@)
cset_lvar_int_to_lvar_float 36@ =# 46@
if 
  36@ > 140
goto_if_false @HEIST3_16573
Text.ClearPrints
if 
  36@ > 168
goto_if_false @HEIST3_16557
if 
  not Char.IsOnScreen(56@)
goto_if_false @HEIST3_16534
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_16504
Camera.DoFade(1000, Fade.Out)

:HEIST3_16433
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_16457
wait 0
goto @HEIST3_16433

:HEIST3_16457
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_16480
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_16504
wait 0
goto @HEIST3_16480

:HEIST3_16504
Text.Print('HEI3_16', 5000, 1)
goto @HEIST3_22966
goto @HEIST3_16550

:HEIST3_16534
Text.Print('HEI3_10', 1000, 1)

:HEIST3_16550
goto @HEIST3_16573

:HEIST3_16557
Text.Print('HEI3_10', 1000, 1)

:HEIST3_16573
if 
  51@ == 1
goto_if_false @HEIST3_16724
if 
  Char.LocateAnyMeansChar3D($scplayer, 56@, 22.5, 22.5, 2.0, False)
goto_if_false @HEIST3_16666
if 
  TIMERA > 64
goto_if_false @HEIST3_16659
$d2_anim_rnd += 1
TIMERA = 0

:HEIST3_16659
goto @HEIST3_16717

:HEIST3_16666
if 
  TIMERA > 150
goto_if_false @HEIST3_16717
if 
  $d2_anim_rnd > 0
goto_if_false @HEIST3_16710
$d2_anim_rnd -= 1

:HEIST3_16710
TIMERA = 0

:HEIST3_16717
goto @HEIST3_16768

:HEIST3_16724
if 
  51@ == 0
goto_if_false @HEIST3_16768
if 
  TIMERB > 4000
goto_if_false @HEIST3_16768
51@ = 1

:HEIST3_16768
if 
  0 > $d2_anim_rnd
goto_if_false @HEIST3_16800
$d2_anim_rnd = 0
goto @HEIST3_16825

:HEIST3_16800
if 
  $d2_anim_rnd > 100
goto_if_false @HEIST3_16825
$d2_anim_rnd = 100

:HEIST3_16825
if 
  $d2_anim_rnd > 10
goto_if_false @HEIST3_16884
if 
  52@ == 0
goto_if_false @HEIST3_16884
Text.PrintNow('HEI3_11', 5000, 1)
52@ = 1

:HEIST3_16884
if 
  $d2_anim_rnd == 100
goto_if_false @HEIST3_17032
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_17009
Text.ClearPrints
Camera.DoFade(1000, Fade.Out)

:HEIST3_16938
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_16962
wait 0
goto @HEIST3_16938

:HEIST3_16962
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_16985
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_17009
wait 0
goto @HEIST3_16985

:HEIST3_17009
Text.PrintNow('HEI3_17', 5000, 1)
goto @HEIST3_22966

:HEIST3_17032
if or
  not Char.IsInCar(56@, 65@)
  Char.IsTouchingVehicle($scplayer, 65@)
  Car.HasBeenDamagedByChar(65@, $scplayer)
goto_if_false @HEIST3_17204
$d2_anim_rnd = 100
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_17181
Text.ClearPrints
Camera.DoFade(1000, Fade.Out)

:HEIST3_17110
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_17134
wait 0
goto @HEIST3_17110

:HEIST3_17134
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_17157
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_17181
wait 0
goto @HEIST3_17157

:HEIST3_17181
Text.PrintNow('HEI3_31', 5000, 1)
goto @HEIST3_22966

:HEIST3_17204
goto @HEIST3_17858

:HEIST3_17211
if 
  Char.LocateAnyMeans3D($scplayer, 2037.891, 2749.534, 9.8125, 4.0, 4.0, 4.0, True)
goto_if_false @HEIST3_17858
Blip.Remove(68@)
World.ClearArea(2034.794, 2724.465, 9.8281, 20.0, True)
Hud.ClearCounter($d2_anim_rnd)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Text.ClearPrints
Car.SetCoordinates(65@, 2035.01, 2725.36, 9.8281)
Car.SetHeading(65@, 184.0343)
Camera.SetFixedPosition(2041.206, 2753.339, 11.9601, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2040.648, 2752.515, 11.8569, SwitchType.JumpCut)
skip_cutscene_start_internal @HEIST3_17608
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_17499
75@ = Sequence.Open()
if 
  Char.IsInAnyCar(56@)
goto_if_false @HEIST3_17435
Task.LeaveAnyCar(-1)

:HEIST3_17435
Task.GoStraightToCoord(-1, 2037.468, 2724.142, 9.8281, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 2037.378, 2721.449, 10.5469, MoveState.Walk, -1)
Sequence.Close(75@)
Char.PerformSequence(56@, 75@)
Sequence.Clear(75@)

:HEIST3_17499
48@ = 0
TIMERA = 0

:HEIST3_17513
if 
  48@ == 0
goto_if_false @HEIST3_17608
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_17590
34@ = Char.GetScriptTaskStatus(56@, 1560)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_17583
48@ = 1

:HEIST3_17583
goto @HEIST3_17597

:HEIST3_17590
48@ = 1

:HEIST3_17597
wait 0
goto @HEIST3_17513

:HEIST3_17608
skip_cutscene_end 
World.ClearArea(1936.196, 2734.011, 9.8203, 2.0, True)
57@ = Char.Create(PedType.Mission2, 162, 1999.788, 2733.692, 9.8203)
Char.SetHeading(57@, 354.8084)
Char.GiveWeapon(57@, WeaponType.Dildo1, 0)
Char.SetCurrentWeapon(57@, WeaponType.Dildo1)
76@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2021.594, 2734.576, 9.8203, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, 2029.786, 2730.539, 9.8281, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, 2038.505, 2729.846, 9.8281, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, 2037.28, 2722.567, 9.8281, MoveState.Walk, -2)
Sequence.Close(76@)
Char.PerformSequence(57@, 76@)
Sequence.Clear(76@)
Camera.RestoreJumpcut
Char.Delete(56@)
Char.MarkAsNoLongerNeeded(56@)
Streaming.MarkModelAsNoLongerNeeded(194)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Text.ClearPrints
Text.Print('HEI3_08', 8000, 1)
37@ = Clock.GetGameTimer()
47@ = 8

:HEIST3_17858
goto @HEIST3_17995

:HEIST3_17865
Text.ClearPrints
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_17972
Camera.DoFade(1000, Fade.Out)

:HEIST3_17901
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_17925
wait 0
goto @HEIST3_17901

:HEIST3_17925
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_17948
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_17972
wait 0
goto @HEIST3_17948

:HEIST3_17972
Text.Print('HEI3_18', 5000, 1)
goto @HEIST3_22966

:HEIST3_17995
goto @HEIST3_18132

:HEIST3_18002
Text.ClearPrints
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_18109
Camera.DoFade(1000, Fade.Out)

:HEIST3_18038
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_18062
wait 0
goto @HEIST3_18038

:HEIST3_18062
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_18085
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_18109
wait 0
goto @HEIST3_18085

:HEIST3_18109
Text.Print('HEI3_14', 5000, 1)
goto @HEIST3_22966

:HEIST3_18132
if 
  47@ == 8
goto_if_false @HEIST3_18657
if 
  not Char.IsDead(57@)
goto_if_false @HEIST3_18613
if 
  Char.LocateAnyMeans3D(57@, 2037.312, 2722.288, 10.8281, 1.2, 1.6, 3.0, False)
goto_if_false @HEIST3_18349
Text.ClearPrints
Char.RemoveElegantly(57@)
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_18326
Camera.DoFade(1000, Fade.Out)

:HEIST3_18255
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_18279
wait 0
goto @HEIST3_18255

:HEIST3_18279
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_18302
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_18326
wait 0
goto @HEIST3_18302

:HEIST3_18326
Text.Print('HEI3_92', 5000, 1)
goto @HEIST3_22966

:HEIST3_18349
34@ = Char.GetScriptTaskStatus(57@, 1560)
if 
  is_int_lvar_equal_to_constant 34@ == 1
goto_if_false @HEIST3_18429
34@ = Char.GetSequenceProgress(57@)
if 
  34@ == 2
goto_if_false @HEIST3_18422
Text.ClearPrints
Text.Print('HEI3_93', 5000, 1)

:HEIST3_18422
goto @HEIST3_18606

:HEIST3_18429
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_18606
if 
  not Char.LocateAnyMeansChar3D($scplayer, 57@, 100.0, 100.0, 20.0, False)
goto_if_false @HEIST3_18606
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_18606
Camera.DoFade(1000, Fade.Out)

:HEIST3_18517
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_18541
wait 0
goto @HEIST3_18517

:HEIST3_18541
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_18564
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_18588
wait 0
goto @HEIST3_18564

:HEIST3_18588
Text.ClearPrints
Text.Print('HEI3_15', 5000, 1)

:HEIST3_18606
goto @HEIST3_18657

:HEIST3_18613
Blip.Remove(69@)
Text.ClearPrints
Text.Print('HEI3_22', 5000, 1)
71@ = Blip.AddForCoord(86@, 87@, 88@)
47@ = 9

:HEIST3_18657
if 
  47@ == 9
goto_if_false @HEIST3_19949
if 
  Char.LocateStoppedOnFoot3D($scplayer, 2037.307, 2722.106, 10.2989, 1.2, 1.2, 3.0, True)
goto_if_false @HEIST3_19949
Text.ClearPrints
Blip.Remove(71@)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Char.SetCoordinates($scplayer, 2037.165, 2721.895, 10.2989)
Char.SetHeading($scplayer, 174.4355)
Camera.SetFixedPosition(2035.66, 2722.75, 11.84, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2039.39, 2717.31, 12.2, SwitchType.JumpCut)
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
148@ = 2
149@ = 0
150@ = 0

:HEIST3_18913
wait 0
if 
  137@ == 0
goto_if_false @HEIST3_19516
if 
  148@ <> 0
goto_if_false @HEIST3_19138
if 
  149@ == 0
goto_if_false @HEIST3_18997
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST3_18990
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:HEIST3_18990
149@ = 1

:HEIST3_18997
if 
  149@ == 1
goto_if_false @HEIST3_19033
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 143@(148@,5i))
149@ = 2

:HEIST3_19033
if 
  149@ == 2
goto_if_false @HEIST3_19077
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST3_19077
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
149@ = 3

:HEIST3_19077
if 
  149@ == 3
goto_if_false @HEIST3_19138
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @HEIST3_19138
148@ = 0
149@ = 0
48@ = 1
TIMERA = 0

:HEIST3_19138
if 
  133@ <> 0
goto_if_false @HEIST3_19437
if 
  136@ == 0
goto_if_false @HEIST3_19202
if 
  Audio.HasMissionAudioLoaded(135@)
goto_if_false @HEIST3_19195
Audio.ClearMissionAudio(135@)

:HEIST3_19195
136@ = 1

:HEIST3_19202
if 
  136@ == 1
goto_if_false @HEIST3_19239
Audio.LoadMissionAudio(134@, 89@(133@,44i))
136@ = 2

:HEIST3_19239
if 
  136@ == 2
goto_if_false @HEIST3_19299
if 
  Audio.HasMissionAudioLoaded(134@)
goto_if_false @HEIST3_19299
Audio.PlayMissionAudio(134@)
Text.PrintNow($hei3_spook(133@,44s), 10000, 1)
136@ = 3

:HEIST3_19299
if 
  136@ == 3
goto_if_false @HEIST3_19437
if 
  Audio.HasMissionAudioFinished(134@)
goto_if_false @HEIST3_19437
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_19354
Char.StopFacialTalk(56@)

:HEIST3_19354
Text.ClearThisPrint($hei3_spook(133@,44s))
if 
  134@ == 1
goto_if_false @HEIST3_19402
134@ = 2
135@ = 1
goto @HEIST3_19416

:HEIST3_19402
134@ = 1
135@ = 2

:HEIST3_19416
133@ = 0
136@ = 0
137@ = 1

:HEIST3_19437
if 
  136@ == 0
goto_if_false @HEIST3_19509
if 
  149@ == 0
goto_if_false @HEIST3_19509
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_19502
Char.StopFacialTalk(56@)
Char.StartFacialTalk(56@, 3000)

:HEIST3_19502
133@ = 12

:HEIST3_19509
goto @HEIST3_18913

:HEIST3_19516
if 
  Text.IsMessageBeingDisplayed
goto_if_false @HEIST3_19540
wait 0
goto @HEIST3_19516

:HEIST3_19540
Camera.DoFade(1000, Fade.Out)

:HEIST3_19547
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_19571
wait 0
goto @HEIST3_19547

:HEIST3_19571
Streaming.SetAreaVisible(6)
Streaming.LoadSpecialCharacter(1, 'CROGRL2')

:HEIST3_19588
if 
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @HEIST3_19614
wait 0
goto @HEIST3_19588

:HEIST3_19614
Streaming.RequestCollision(344.8872, 305.4298)
Streaming.LoadScene(344.8872, 305.4298, 998.2638)
Hud.DisplayRadar(False)
Char.SetCoordinates($scplayer, 344.412, 305.033, 998.1484)
Char.SetHeading($scplayer, 296.283)
Char.MarkAsNoLongerNeeded(57@)
Car.MarkAsNoLongerNeeded(66@)
Car.MarkAsNoLongerNeeded(65@)
Streaming.MarkModelAsNoLongerNeeded(162)
Streaming.MarkModelAsNoLongerNeeded(507)
Streaming.MarkModelAsNoLongerNeeded(589)
Char.ClearTasks($scplayer)
Text.ClearPrints
56@ = Char.Create(PedType.Special, 290, 349.1921, 308.5705, 998.1484)
Char.SetDecisionMaker(56@, 42@)
Char.SetAreaVisible(56@, 6)
Char.SetAreaVisible($scplayer, 6)
Char.SetAnimGroup(56@, "SEXYWOMAN")
Char.SetHeading(56@, 147.245)
Camera.SetFixedPosition(348.8104, 310.0784, 999.4993, 0.0, 0.0, 0.0)
Camera.PointAtPoint(348.6377, 309.0935, 999.5004, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 344.412, 305.033, 998.1484)
Char.SetHeading($scplayer, 296.283)
Char.SetCoordinates(56@, 349.1921, 308.5705, 998.1484)
Char.SetHeading(56@, 147.245)
Task.TurnCharToFaceChar($scplayer, 56@)
wait 1000
Camera.DoFade(1000, Fade.In)

:HEIST3_19918
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_19942
wait 0
goto @HEIST3_19918

:HEIST3_19942
47@ = 10

:HEIST3_19949
if and
  47@ >= 5
  9 > 47@
goto_if_false @HEIST3_20047
35@ = Streaming.GetAreaVisible()
if 
  35@ == 0
goto_if_false @HEIST3_20047
if 
  not Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_20047
Text.Print('HEI3_34', 5000, 1)
goto @HEIST3_22966

:HEIST3_20047
if 
  47@ == 10
goto_if_false @HEIST3_22123
skip_cutscene_start_internal @HEIST3_22060
Text.ClearPrints
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0

:HEIST3_20144
wait 0
if 
  137@ == 0
goto_if_false @HEIST3_22060
if 
  133@ <> 0
goto_if_false @HEIST3_20505
if 
  136@ == 0
goto_if_false @HEIST3_20230
if 
  Audio.HasMissionAudioLoaded(135@)
goto_if_false @HEIST3_20223
Audio.ClearMissionAudio(135@)

:HEIST3_20223
136@ = 1

:HEIST3_20230
if 
  136@ == 1
goto_if_false @HEIST3_20267
Audio.LoadMissionAudio(134@, 89@(133@,44i))
136@ = 2

:HEIST3_20267
if 
  136@ == 2
goto_if_false @HEIST3_20327
if 
  Audio.HasMissionAudioLoaded(134@)
goto_if_false @HEIST3_20327
Audio.PlayMissionAudio(134@)
Text.PrintNow($hei3_spook(133@,44s), 10000, 1)
136@ = 3

:HEIST3_20327
if 
  136@ == 3
goto_if_false @HEIST3_20505
if 
  Audio.HasMissionAudioFinished(134@)
goto_if_false @HEIST3_20444
Text.ClearThisPrint($hei3_spook(133@,44s))
if 
  134@ == 1
goto_if_false @HEIST3_20409
134@ = 2
135@ = 1
goto @HEIST3_20423

:HEIST3_20409
134@ = 1
135@ = 2

:HEIST3_20423
133@ = 0
136@ = 0
goto @HEIST3_20505

:HEIST3_20444
if 
  not Audio.HasMissionAudioLoaded(135@)
goto_if_false @HEIST3_20505
if 
  8 > 133@
goto_if_false @HEIST3_20505
set_lvar_int_to_lvar_int 142@ = 133@
142@ += 1
Audio.LoadMissionAudio(135@, 89@(142@,44i))

:HEIST3_20505
switch_start 138@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @HEIST3_21960 {caseNum1} 0 {caseLabel1} @HEIST3_20568 {caseNum2} 1 {caseLabel2} @HEIST3_20641 {caseNum3} 2 {caseLabel3} @HEIST3_20856 {caseNum4} 3 {caseLabel4} @HEIST3_20969 {caseNum5} 4 {caseLabel5} @HEIST3_21211 {caseNum6} 5 {caseLabel6} @HEIST3_21395 {caseNum7} 6 {caseLabel7} @HEIST3_21771

:HEIST3_20568
if 
  136@ == 0
goto_if_false @HEIST3_20634
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_20615
Char.StopFacialTalk(56@)
Char.StartFacialTalk(56@, 3000)

:HEIST3_20615
133@ = 13
138@ = 1
141@ = Clock.GetGameTimer()

:HEIST3_20634
goto @HEIST3_22053

:HEIST3_20641
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_20849
if 
  136@ == 0
goto_if_false @HEIST3_20849
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_20801
74@ = Sequence.Open()
Task.LookAtChar(-1, 56@, 20000)
Task.GoStraightToCoord(-1, 347.0207, 306.2751, 998.2088, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 348.2744, 307.7908, 998.204, MoveState.Walk, -1)
Task.TurnCharToFaceChar(-1, 56@)
Sequence.Close(74@)
Char.PerformSequence($scplayer, 74@)
Sequence.Clear(74@)

:HEIST3_20801
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_20830
Char.StopFacialTalk(56@)
Char.StartFacialTalk($scplayer, 3000)

:HEIST3_20830
133@ = 14
138@ = 2
141@ = Clock.GetGameTimer()

:HEIST3_20849
goto @HEIST3_22053

:HEIST3_20856
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_20962
if 
  136@ == 0
goto_if_false @HEIST3_20962
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_20943
Char.StopFacialTalk($scplayer)
Char.StartFacialTalk(56@, 3000)

:HEIST3_20943
133@ = 15
138@ = 3
141@ = Clock.GetGameTimer()

:HEIST3_20962
goto @HEIST3_22053

:HEIST3_20969
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_21204
if 
  136@ == 0
goto_if_false @HEIST3_21204
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_21048
if 
  48@ == 0
goto_if_false @HEIST3_21156
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_21138
34@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_21131
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @HEIST3_21131
48@ = 1

:HEIST3_21131
goto @HEIST3_21145

:HEIST3_21138
48@ = 1

:HEIST3_21145
wait 0
goto @HEIST3_21048

:HEIST3_21156
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_21185
Char.StopFacialTalk(56@)
Char.StartFacialTalk($scplayer, 3000)

:HEIST3_21185
133@ = 25
138@ = 4
141@ = Clock.GetGameTimer()

:HEIST3_21204
goto @HEIST3_22053

:HEIST3_21211
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_21388
if 
  136@ == 0
goto_if_false @HEIST3_21388
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_21298
Char.StopFacialTalk($scplayer)
Char.StartFacialTalk(56@, 3000)

:HEIST3_21298
133@ = 21
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_21376
75@ = Sequence.Open()
Task.GoStraightToCoord(-1, 344.6502, 307.6453, 998.1963, MoveState.Walk, -1)
Task.AchieveHeading(-1, 245.3258)
Sequence.Close(75@)
Char.PerformSequence(56@, 75@)
Sequence.Clear(75@)

:HEIST3_21376
138@ = 5
141@ = Clock.GetGameTimer()

:HEIST3_21388
goto @HEIST3_22053

:HEIST3_21395
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_21764
if 
  136@ == 0
goto_if_false @HEIST3_21764
48@ = 0
35@ = 0

:HEIST3_21467
if 
  48@ == 0
goto_if_false @HEIST3_21716
wait 0
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_21702
34@ = Char.GetScriptTaskStatus(56@, 1560)
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_21559
Task.LookAtChar(56@, $scplayer, 10000)
48@ = 1
goto @HEIST3_21695

:HEIST3_21559
if 
  35@ == 0
goto_if_false @HEIST3_21695
Camera.SetFixedPosition(347.32, 308.43, 999.52, 0.0, 0.0, 0.0)
Camera.PointAtPoint(339.91, 301.08, 998.31, SwitchType.JumpCut)
74@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, 56@)
Task.GoStraightToCoord(-1, 345.7446, 304.2489, 998.1641, MoveState.Walk, -1)
Task.TurnCharToFaceChar(-1, 56@)
Sequence.Close(74@)
Char.PerformSequence($scplayer, 74@)
Sequence.Clear(74@)
35@ = 1

:HEIST3_21695
goto @HEIST3_21709

:HEIST3_21702
48@ = 1

:HEIST3_21709
goto @HEIST3_21467

:HEIST3_21716
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_21745
Char.StopFacialTalk(56@)
Char.StartFacialTalk($scplayer, 3000)

:HEIST3_21745
133@ = 26
138@ = 6
141@ = Clock.GetGameTimer()

:HEIST3_21764
goto @HEIST3_22053

:HEIST3_21771
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_21953
if 
  136@ == 0
goto_if_false @HEIST3_21953
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_21905
75@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.GoStraightToCoord(-1, 345.3145, 305.0605, 998.1641, MoveState.Walk, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(75@)
Char.PerformSequence(56@, 75@)
Sequence.Clear(75@)

:HEIST3_21905
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_21934
Char.StopFacialTalk($scplayer)
Char.StartFacialTalk(56@, 3000)

:HEIST3_21934
133@ = 17
138@ = 7
141@ = Clock.GetGameTimer()

:HEIST3_21953
goto @HEIST3_22053

:HEIST3_21960
140@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_22046
if 
  136@ == 0
goto_if_false @HEIST3_22046
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_22039
Char.StopFacialTalk(56@)

:HEIST3_22039
137@ = 1

:HEIST3_22046
goto @HEIST3_22053

:HEIST3_22053
goto @HEIST3_20144

:HEIST3_22060
skip_cutscene_end 
if 
  not Char.IsDead(56@)
goto_if_false @HEIST3_22088
Char.StopFacialTalk(56@)
Char.StopFacialTalk($scplayer)

:HEIST3_22088
Text.ClearPrints
Char.ClearLookAt($scplayer)
49@ = 0
40@ = 5
41@ = 1
47@ = 11

:HEIST3_22123
if 
  47@ == 11
goto_if_false @HEIST3_22344
if 
  49@ == 0
goto_if_false @HEIST3_22276
$number_of_instances_of_streamed_script = StreamedScript.GetNumberOfInstances(26)
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @HEIST3_22276
StreamedScript.Stream(26)
if 
  StreamedScript.HasLoaded(26)
goto_if_false @HEIST3_22276
$iDateReport = 0
set_global_var_bit_const $iDateReport {n} 5
World.DisableAllEntryExits(True)
StreamedScript.StartNew(26, 40@, 41@, 0, 2037.651, 2723.871, 9.8352, 0.0702)
wait 1500
Char.Delete(56@)
Char.MarkAsNoLongerNeeded(56@)
49@ = 1

:HEIST3_22276
if 
  49@ == 1
goto_if_false @HEIST3_22344
if 
  is_global_var_bit_set_const $iDateReport {n} 4
goto_if_false @HEIST3_22319
54@ = 1

:HEIST3_22319
if 
  not is_global_var_bit_set_const $iDateReport {n} 5
goto_if_false @HEIST3_22344
47@ = 12

:HEIST3_22344
if 
  47@ == 12
goto_if_false @HEIST3_22959
Camera.SetFixedPosition(2033.274, 2719.888, 10.2275, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2033.727, 2720.774, 10.3282, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
World.DisableAllEntryExits(False)
skip_cutscene_start_internal @HEIST3_22738
74@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2036.875, 2734.282, 9.8203, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 2029.545, 2735.628, 9.8203, MoveState.Walk, -1)
Sequence.Close(74@)
Char.PerformSequence($scplayer, 74@)
Sequence.Clear(74@)
if 
  54@ == 1
goto_if_false @HEIST3_22605
Text.ClearHelp
Text.PrintHelpForever('HEI3_95')
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0

:HEIST3_22605
48@ = 0
TIMERA = 0

:HEIST3_22619
if 
  48@ == 0
goto_if_false @HEIST3_22738
if 
  54@ == 1
goto_if_false @HEIST3_22701
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @HEIST3_22694
if 
  TIMERA > 5000
goto_if_false @HEIST3_22694
48@ = 1

:HEIST3_22694
goto @HEIST3_22727

:HEIST3_22701
if 
  TIMERA > 7000
goto_if_false @HEIST3_22727
48@ = 1

:HEIST3_22727
wait 0
goto @HEIST3_22619

:HEIST3_22738
skip_cutscene_end 
Char.ClearTasks($scplayer)
Char.SetCoordinates($scplayer, 2029.545, 2735.628, 9.8203)
Char.SetHeading($scplayer, 68.4474)
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Text.ClearHelp
if 
  54@ == 1
goto_if_false @HEIST3_22829
set_global_var_bit_const $iActiveGF {n} 5
goto @HEIST3_22984
goto @HEIST3_22959

:HEIST3_22829
Text.ClearPrints
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @HEIST3_22936
Camera.DoFade(1000, Fade.Out)

:HEIST3_22865
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_22889
wait 0
goto @HEIST3_22865

:HEIST3_22889
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:HEIST3_22912
if 
  Camera.GetFadingStatus
goto_if_false @HEIST3_22936
wait 0
goto @HEIST3_22912

:HEIST3_22936
Text.Print('HEI3_24', 5000, 1)
goto @HEIST3_22966

:HEIST3_22959
goto @HEIST3_2380

:HEIST3_22966
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:HEIST3_22984
$flag_heist_mission_counter += 1
$flag_player_got_gimp_suit = 1
Text.PrintWithNumberBig('M_PASSR', 15, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(15)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.RegisterMissionPassed('HEIST_3')
Stat.PlayerMadeProgress(1)
return 

:HEIST3_23046
Path.SwitchPedRoadsBackToOriginal(2096.335, 1656.397, 8.0, 2161.659, 1728.287, 10.0)
Path.SwitchRoadsBackToOriginal(2096.335, 1656.397, 8.0, 2161.659, 1728.287, 10.0)
StreamedScript.MarkAsNoLongerNeeded(26)
$timer_mobile_start = Clock.GetGameTimer()
Hud.ClearCounter($d2_anim_rnd)
Hud.DisplayRadar(True)
World.DisableAllEntryExits(False)
Streaming.MarkModelAsNoLongerNeeded(249)
Streaming.MarkModelAsNoLongerNeeded(178)
Streaming.MarkModelAsNoLongerNeeded(168)
Streaming.MarkModelAsNoLongerNeeded(101)
Streaming.MarkModelAsNoLongerNeeded(194)
Streaming.MarkModelAsNoLongerNeeded(589)
Streaming.MarkModelAsNoLongerNeeded(162)
Streaming.MarkModelAsNoLongerNeeded(111)
Streaming.MarkModelAsNoLongerNeeded(555)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(321)
if 
  not Car.IsDead(65@)
goto_if_false @HEIST3_23208
Car.LockDoors(65@, CarLock.Unlocked)

:HEIST3_23208
Car.MarkAsNoLongerNeeded(65@)
Car.MarkAsNoLongerNeeded(67@)
Char.MarkAsNoLongerNeeded(59@)
Char.MarkAsNoLongerNeeded(60@)
Char.MarkAsNoLongerNeeded(61@)
Char.MarkAsNoLongerNeeded(62@)
Char.MarkAsNoLongerNeeded(63@)
Char.RemoveElegantly(56@)
Char.MarkAsNoLongerNeeded(56@)
Char.MarkAsNoLongerNeeded(58@)
Pickup.Remove(64@)
Blip.Remove(68@)
Blip.Remove(70@)
Blip.Remove(72@)
Blip.Remove(73@)
Streaming.RemoveCarRecording(803)
Streaming.UnloadSpecialCharacter(1)
DecisionMaker.Remove(42@)
$onmission = 0
Mission.Finish
return 

//-------------Mission 98---------------
// Originally: Dam And Blast

:HEIST2
script_name 'HEIST2'
gosub @HEIST2_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST2_38
gosub @HEIST2_18779

:HEIST2_38
gosub @HEIST2_18847
terminate_this_script 

:HEIST2_47
Text.LoadMissionText('HEIST2')
Stat.RegisterMissionGiven
Camera.SetFadingColor(0, 0, 0)
$onmission = 1
Camera.DoFade(2000, Fade.Out)

:HEIST2_82
if 
  Camera.GetFadingStatus
goto_if_false @HEIST2_106
wait 0
goto @HEIST2_82

:HEIST2_106
Streaming.SetAreaVisible(10)
Weather.Force(WeatherType.SunnyVegas)
Cutscene.Load('HEIST4A')

:HEIST2_125
if 
  not Cutscene.HasLoaded
goto_if_false @HEIST2_149
wait 0
goto @HEIST2_125

:HEIST2_149
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:HEIST2_158
if 
  not Cutscene.HasFinished
goto_if_false @HEIST2_182
wait 0
goto @HEIST2_158

:HEIST2_182
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)
Streaming.LoadScene(2030.103, 1020.79, 9.8203)

:HEIST2_212
if 
  Camera.GetFadingStatus
goto_if_false @HEIST2_236
wait 0
goto @HEIST2_212

:HEIST2_236
Cutscene.Clear
Weather.Release
Streaming.SetAreaVisible(0)
wait 0
Streaming.RequestCollision(2030.103, 1020.79)
Streaming.LoadScene(2030.103, 1020.79, 9.8203)
Char.SetCoordinates($scplayer, 2030.103, 1020.79, 9.813)
Char.SetHeading($scplayer, 277.5123)
Char.SetHasUsedEntryExit($scplayer, 2016.422, 1017.102, 10.0)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
152@ = Blip.AddForCoord(1717.017, 1602.497, 9.3368)
Blip.SetAsFriendly(152@, True)
Streaming.RequestAnimation("BOMBER")

:HEIST2_368
if 
  not Streaming.HasAnimationLoaded("BOMBER")
goto_if_false @HEIST2_400
wait 0
goto @HEIST2_368

:HEIST2_400
Camera.SetFadingColor(0, 0, 0)
Hud.SwitchWidescreen(False)
38@ = DecisionMakerChar.Load(DecisionMakerType.Steal)
Streaming.LoadScene(2030.103, 1020.79, 9.8203)
Camera.DoFade(1500, Fade.In)

:HEIST2_443
if 
  Camera.GetFadingStatus
goto_if_false @HEIST2_467
wait 0
goto @HEIST2_443

:HEIST2_467
Player.SetControl($player1, True)
Text.Print('HEI2_90', 10000, 1)
105@ = 0
107@ = 0
106@ = 0
119@ = 0
121@ = 0
122@ = 0
124@ = 0
132@ = 0
125@ = 0
133@ = 0
137@ = 0
138@ = 0
136@ = 0
139@ = 0
123@ = 0
36@ = 0

:HEIST2_602
if 
  6 > 36@
goto_if_false @HEIST2_674
113@(36@,6i) = 0
if 
  5 > 36@
goto_if_false @HEIST2_660
108@(36@,5i) = 0

:HEIST2_660
36@ += 1
goto @HEIST2_602

:HEIST2_674
34@ = 0
120@ = 0
35@ = 1
36@ = 0
37@ = 0
47@ = -955.7253
53@ = 1920.637
59@ = 8.0078
65@ = 294.0869
48@ = -959.8978
54@ = 1861.884
60@ = 8.0078
66@ = 87.9045
49@ = -945.822
55@ = 1868.03
61@ = 4.0051
67@ = 177.415
50@ = -945.5732
56@ = 1911.255
62@ = 4.0
68@ = 183.0188
51@ = -959.6175
57@ = 1858.156
63@ = 8.0078
69@ = 180.4759
52@ = -959.7453
58@ = 1914.674
64@ = 8.0078
70@ = 185.4313
71@ = -955.7253
77@ = 1920.637
83@ = 8.0078
72@ = -959.8978
78@ = 1861.884
84@ = 8.0078
73@ = -943.7589
79@ = 1888.943
85@ = 4.0051
74@ = -943.0214
80@ = 1932.352
86@ = 4.0
75@ = -959.4366
81@ = 1900.022
87@ = 8.0078
76@ = -959.496
82@ = 1936.925
88@ = 8.0061
89@ = -952.56
94@ = 1943.52
99@ = 8.0
90@ = -952.56
95@ = 1922.07
100@ = 8.0
91@ = -952.56
96@ = 1900.44
101@ = 8.0
92@ = -952.56
97@ = 1878.16
102@ = 8.0
93@ = -952.56
98@ = 1857.7
103@ = 8.0
185@ = 0
209@ = 0
210@ = 1
211@ = 2
212@ = 0
213@ = 0
214@ = 0
215@ = 0
216@ = 0
217@ = 0
218@ = 0
42@ = 0
set_lvar_int_to_constant 221@ = 23200
222@ = 0
223@ = 0
224@ = 0
set_var_text_label s$hei2_height[1] = 'HE2_AA'
set_var_text_label s$hei2_height[2] = 'HE2_AB'
set_var_text_label s$hei2_height[3] = 'HE2_AC'
set_var_text_label s$hei2_height[4] = 'HE2_AD'
set_var_text_label s$hei2_height[5] = 'HE2_AE'
set_var_text_label s$hei2_height[6] = 'HE2_AF'
set_var_text_label s$hei2_height[7] = 'HE2_AG'
set_var_text_label s$hei2_height[8] = 'HE2_AH'
set_var_text_label s$hei2_height[9] = 'HE2_AJ'
set_var_text_label s$hei2_height[10] = 'HE2_AK'
set_var_text_label s$hei2_height[11] = 'HE2_AL'
set_var_text_label s$hei2_height[12] = 'HE2_BA'
set_var_text_label s$hei2_height[13] = 'HE2_BB'
set_var_text_label s$hei2_height[14] = 'HE2_CA'
set_var_text_label s$hei2_height[15] = 'HE2_CB'
set_var_text_label s$hei2_height[16] = 'HE2_DA'
set_var_text_label s$hei2_height[17] = 'HE2_DB'
set_lvar_int_to_constant 192@ = 18402
set_lvar_int_to_constant 193@ = 18403
set_lvar_int_to_constant 194@ = 18404
set_lvar_int_to_constant 195@ = 18405
set_lvar_int_to_constant 196@ = 18406
set_lvar_int_to_constant 197@ = 18407
set_lvar_int_to_constant 198@ = 18408
set_lvar_int_to_constant 199@ = 18409
set_lvar_int_to_constant 200@ = 18410
set_lvar_int_to_constant 201@ = 18411
set_lvar_int_to_constant 202@ = 18412
set_lvar_int_to_constant 203@ = 18413
set_lvar_int_to_constant 204@ = 18414
set_lvar_int_to_constant 205@ = 18400
set_lvar_int_to_constant 206@ = 18401
set_lvar_int_to_constant 207@ = 18416
set_lvar_int_to_constant 208@ = 18415
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Mission1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission2, PedType.Mission2)
World.SwitchEntryExit('DAMIN', False)
World.SwitchEntryExit('DAMOUT', False)
wait 1000

:HEIST2_1813
wait 0
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @HEIST2_1852
Char.SetCoordinates($scplayer, -585.0, 2026.0, 60.0)

:HEIST2_1852
if 
is_ps2_keyboard_key_pressed 31
goto_if_false @HEIST2_1887
Char.SetCoordinates($scplayer, 1423.657, 1643.182, 9.8359)

:HEIST2_1887
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @HEIST2_1922
Char.SetCoordinates($scplayer, -828.64, 1971.644, 6.0)

:HEIST2_1922
if 
is_ps2_keyboard_key_pressed 33
goto_if_false @HEIST2_1957
Char.SetCoordinates($scplayer, -693.98, 1806.81, 800.0)

:HEIST2_1957
if 
is_ps2_keyboard_key_pressed 40
goto_if_false @HEIST2_1993
119@ = 0
125@ = 0
gosub @HEIST2_14797

:HEIST2_1993
if 
is_ps2_keyboard_key_pressed 35
goto_if_false @HEIST2_2015
107@ = 6

:HEIST2_2015
if 
is_ps2_keyboard_key_pressed 36
goto_if_false @HEIST2_2037
123@ = 6

:HEIST2_2037
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @HEIST2_2059
goto @HEIST2_18797

:HEIST2_2059
if 
  107@ == 99999
goto_if_false @HEIST2_2120
154@ = Blip.AddForCoord(0.0, 0.0, 0.0)
155@ = Blip.AddForCoord(0.0, 0.0, 0.0)

:HEIST2_2120
if 
  107@ == 0
goto_if_false @HEIST2_2168
Text.Print('HEI2_90', 7000, 1)
107@ = 1
123@ = 1

:HEIST2_2168
if 
  12 > 123@
goto_if_false @HEIST2_9179
if 
  4 > 123@
goto_if_false @HEIST2_2907
if 
  123@ == 1
goto_if_false @HEIST2_2400
if or
  Char.LocateAnyMeans2D($scplayer, 1477.401, 1677.399, 250.0, 250.0, False)
  Char.LocateAnyMeans2D($scplayer, 1717.017, 1602.497, 20.0, 20.0, False)
  Char.LocateAnyMeans3D($scplayer, 1477.178, 1639.083, 10.9203, 79.499, 143.0963, 4.9, False)
goto_if_false @HEIST2_2400
Streaming.RequestModel(553)

:HEIST2_2329
if 
  not Streaming.HasModelLoaded(553)
goto_if_false @HEIST2_2356
wait 0
goto @HEIST2_2329

:HEIST2_2356
Game.SetArea51SamSite(False)
168@ = Car.Create(553, 1477.401, 1677.399, 9.8425)
Car.SetHeading(168@, 180.049)
123@ = 2

:HEIST2_2400
if 
  136@ == 0
goto_if_false @HEIST2_2554
if or
  Char.LocateAnyMeans3D($scplayer, 1477.178, 1639.083, 10.9203, 79.499, 143.0963, 4.9, False)
  Char.LocateAnyMeans2D($scplayer, 1717.017, 1602.497, 20.0, 20.0, False)
goto_if_false @HEIST2_2554
if 
  not Car.IsDead(168@)
goto_if_false @HEIST2_2554
Blip.Remove(152@)
152@ = Blip.AddForCar(168@)
Blip.SetAsFriendly(152@, True)
Text.ClearPrints
Text.Print('HEI2_57', 7000, 1)
136@ = 1

:HEIST2_2554
if 
  Char.LocateAnyMeans3D($scplayer, 1717.017, 1602.497, 9.3368, 10.0, 10.0, 5.0, False)
goto_if_false @HEIST2_2602

:HEIST2_2602
if 
  123@ > 1
goto_if_false @HEIST2_2679
if 
  4 > 123@
goto_if_false @HEIST2_2679
if 
  Car.IsDead(168@)
goto_if_false @HEIST2_2679
Text.ClearPrints
Text.Print('HEI2_25', 5000, 1)
goto @HEIST2_18779

:HEIST2_2679
if 
  123@ == 2
goto_if_false @HEIST2_2900
if 
  not Car.IsDead(168@)
goto_if_false @HEIST2_2900
if 
  Char.IsSittingInCar($scplayer, 168@)
goto_if_false @HEIST2_2900
Car.LockDoors(168@, CarLock.LockedPlayerInside)
137@ = 1
Camera.SetBehindPlayer
Text.ClearPrints
Text.Print('HEI2_26', 10000, 1)
Blip.Remove(152@)
152@ = Blip.AddForCoord(-592.42, 1555.88, 750.0)
153@ = Checkpoint.Create(CheckpointType.Torus, -592.42, 1555.88, 750.0, -592.42, 1555.88, 750.0, 25.0)
Streaming.RequestModel(371)

:HEIST2_2838
if 
  not Streaming.HasModelLoaded(371)
goto_if_false @HEIST2_2870
Streaming.RequestModel(371)
wait 0
goto @HEIST2_2838

:HEIST2_2870
Char.GiveWeapon($scplayer, WeaponType.Parachute, 1)
Char.SetCurrentWeapon($scplayer, WeaponType.Parachute)
$para_pickup_flag = 0
123@ = 3

:HEIST2_2900
goto @HEIST2_2907

:HEIST2_2907
if 
  123@ == 3
goto_if_false @HEIST2_4803
if 
  not Car.IsDead(168@)
goto_if_false @HEIST2_4803
if or
  Char.IsSittingInCar($scplayer, 168@)
  138@ == 1
goto_if_false @HEIST2_4623
if 
  132@ == 1
goto_if_false @HEIST2_3075
Blip.Remove(152@)
152@ = Blip.AddForCoord(-592.42, 1555.88, 750.0)
153@ = Checkpoint.Create(CheckpointType.Torus, -592.42, 1555.88, 750.0, -592.42, 1555.88, 750.0, 25.0)
Char.GiveWeapon($scplayer, WeaponType.Parachute, 1)
Char.SetCurrentWeapon($scplayer, WeaponType.Parachute)
132@ = 0

:HEIST2_3075
if 
  Char.LocateInCar3D($scplayer, -592.42, 1555.88, 750.0, 50.0, 50.0, 25.0, False)
goto_if_false @HEIST2_4442
if 
  137@ == 1
goto_if_false @HEIST2_3186
Car.LockDoors(168@, CarLock.Unlocked)
Text.ClearHelp
Text.PrintHelpForever('HEI2_50')
Text.ClearPrints
Text.Print('HEI2_15', 10000, 1)
137@ = 0

:HEIST2_3186
if 
  138@ == 1
goto_if_false @HEIST2_4435
Text.ClearHelp
Text.ClearPrints
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Text.ClearPrints
Checkpoint.Delete(153@)
Car.FreezePosition(168@, True)
Car.SetCoordinates(168@, -592.42, 1555.88, 750.0)
Car.SetHeading(168@, 180.0)
Heli.SetBladesFullSpeed(168@)
TIMERA = 0
$para_control_off = 1
Streaming.RequestCarRecording(805)
TIMERA = 0
106@ = 0

:HEIST2_3301
if 
  106@ == 0
goto_if_false @HEIST2_3366
if and
  Streaming.HasCarRecordingBeenLoaded(805)
  TIMERA > 3000
goto_if_false @HEIST2_3355
106@ = 1
Streaming.RequestCarRecording(805)

:HEIST2_3355
wait 0
goto @HEIST2_3301

:HEIST2_3366
if 
  not Car.IsDead(168@)
goto_if_false @HEIST2_3453
Car.StartPlayback(168@, 805)
Camera.SetFixedPosition(-590.9276, 1546.75, 735.8972, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-591.0876, 1546.227, 735.0595, SwitchType.JumpCut)
Char.SetVisible($scplayer, False)
186@ = Clock.GetGameTimer()

:HEIST2_3453
if 
  not Car.IsDead(168@)
goto_if_false @HEIST2_3476
Car.FreezePosition(168@, False)

:HEIST2_3476
skip_cutscene_start_internal @HEIST2_4297
$para_freefall_Vz = 0.0
106@ = 0
41@ = 0

:HEIST2_3507
if 
  106@ == 0
goto_if_false @HEIST2_3884
$para_freefall_Vz = 0.0
if 
  not Car.IsDead(168@)
goto_if_false @HEIST2_3873
if 
  not Car.IsPlaybackGoingOn(168@)
goto_if_false @HEIST2_3581
106@ = 1
goto @HEIST2_3873

:HEIST2_3581
187@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 188@ = 187@
sub_int_lvar_from_int_lvar 188@ -= 186@
if 
  41@ == 0
goto_if_false @HEIST2_3873
if 
  188@ > 6000
goto_if_false @HEIST2_3873
Camera.DoFade(1000, Fade.Out)

:HEIST2_3646
if 
  Camera.GetFadingStatus
goto_if_false @HEIST2_3670
wait 0
goto @HEIST2_3646

:HEIST2_3670
Streaming.RequestModel(#SW_BIT_09)

:HEIST2_3675
if 
  not Streaming.HasModelLoaded(#SW_BIT_09)
goto_if_false @HEIST2_3702
wait 0
goto @HEIST2_3675

:HEIST2_3702
Camera.SetFixedPosition(-781.9676, 1163.64, 28.421, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-781.364, 1164.077, 29.0876, SwitchType.JumpCut)
Streaming.LoadScene(-781.364, 1164.077, 29.0876)
Streaming.RequestCollision(-781.364, 1164.077)
if 
  not Car.IsDead(168@)
goto_if_false @HEIST2_3813
Car.SkipInPlayback(168@, 80.0)
Heli.SetBladesFullSpeed(168@)

:HEIST2_3813
Streaming.LoadSceneInDirection(-781.364, 1164.077, 29.0876, 270.0)
Camera.DoFade(1000, Fade.In)

:HEIST2_3842
if 
  Camera.GetFadingStatus
goto_if_false @HEIST2_3866
wait 0
goto @HEIST2_3842

:HEIST2_3866
41@ = 1

:HEIST2_3873
wait 0
goto @HEIST2_3507

:HEIST2_3884
if 
  not Car.IsDead(168@)
goto_if_false @HEIST2_3905
Heli.SetBladesFullSpeed(168@)

:HEIST2_3905
189@ = Particle.Create("SMOKE50LIT", -761.2061, 1174.616, 39.0387, 1)
190@ = Particle.Create("EXPLOSION_SMALL", -761.2061, 1174.616, 38.5387, 1)
if 
  189@ == -1
goto_if_false @HEIST2_4003
goto @HEIST2_4018

:HEIST2_4003
wait 300
Particle.Play(190@)
Particle.Play(189@)

:HEIST2_4018
Fx.AddExplosion(-761.2062, 1175.616, 39.5387, ExplosionType.Molotov)
Fx.AddExplosion(-761.206, 1173.616, 39.5387, ExplosionType.Molotov)
Fx.AddExplosion(-761.2061, 1174.616, 39.5387, ExplosionType.Molotov)
if 
  not Car.IsDead(168@)
goto_if_false @HEIST2_4096
Car.Explode(168@)

:HEIST2_4096
TIMERA = 0

:HEIST2_4103
if 
  2000 > TIMERA
goto_if_false @HEIST2_4297
if 
  500 > TIMERA
goto_if_false @HEIST2_4167
Fx.AddExplosion(-761.2062, 1175.616, 39.5387, ExplosionType.Rocket)
goto @HEIST2_4257

:HEIST2_4167
if 
  1000 > TIMERA
goto_if_false @HEIST2_4193
goto @HEIST2_4257

:HEIST2_4193
if 
  1500 > TIMERA
goto_if_false @HEIST2_4238
Fx.AddExplosion(-761.206, 1173.616, 39.5387, ExplosionType.Grenade)
goto @HEIST2_4257

:HEIST2_4238
Fx.AddExplosion(-761.2061, 1174.616, 39.5387, ExplosionType.Aircraft)

:HEIST2_4257
if or
  Char.IsDead($scplayer)
  Car.IsDead(168@)
goto_if_false @HEIST2_4286
TIMERA = 2000

:HEIST2_4286
wait 0
goto @HEIST2_4103

:HEIST2_4297
skip_cutscene_end 
Streaming.MarkModelAsNoLongerNeeded(#SW_BIT_09)
Camera.DoFade(500, Fade.In)

:HEIST2_4311
if 
  Camera.GetFadingStatus
goto_if_false @HEIST2_4335
wait 0
goto @HEIST2_4311

:HEIST2_4335
Streaming.RemoveCarRecording(805)
Particle.Kill(189@)
Particle.Kill(190@)
Char.SetVisible($scplayer, True)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
$para_control_off = 0
$para_freefall_Vz = -30.0
Camera.RestoreJumpcut
if 
  not Car.IsDead(168@)
goto_if_false @HEIST2_4423
Car.SetCoordinates(168@, -761.2061, 1174.616, 39.5387)

:HEIST2_4423
Car.MarkAsNoLongerNeeded(168@)
123@ = 4

:HEIST2_4435
goto @HEIST2_4616

:HEIST2_4442
Text.ClearHelp
Text.ClearThisPrint('HEI2_15')
$7889 = Char.GetHeightAboveGround($scplayer)
if 
  5.0 > $7889
goto_if_false @HEIST2_4523
if 
  137@ == 1
goto_if_false @HEIST2_4516
Car.LockDoors(168@, CarLock.Unlocked)
137@ = 0

:HEIST2_4516
goto @HEIST2_4555

:HEIST2_4523
if 
  137@ == 0
goto_if_false @HEIST2_4555
Car.LockDoors(168@, CarLock.LockedPlayerInside)
137@ = 1

:HEIST2_4555
if 
  Char.LocateInCar3D($scplayer, -592.42, 1555.88, 750.0, 400.0, 400.0, 300.0, False)
goto_if_false @HEIST2_4616
Text.PrintHelpForever('HEI2_88')
Text.ClearPrints

:HEIST2_4616
goto @HEIST2_4803

:HEIST2_4623
if 
  138@ == 0
goto_if_false @HEIST2_4803
if 
  Char.LocateAnyMeans3D($scplayer, -592.42, 1555.88, 750.0, 100.0, 100.0, 100.0, False)
goto_if_false @HEIST2_4703
138@ = 1
goto @HEIST2_4803

:HEIST2_4703
Text.ClearPrints
Text.Print('HEI2_28', 1000, 1)
if 
  132@ == 0
goto_if_false @HEIST2_4771
Blip.Remove(152@)
Checkpoint.Delete(153@)
152@ = Blip.AddForCar(168@)
Blip.SetAsFriendly(152@, True)
132@ = 1

:HEIST2_4771
if 
  137@ == 1
goto_if_false @HEIST2_4803
Car.LockDoors(168@, CarLock.Unlocked)
137@ = 0

:HEIST2_4803
if 
  123@ == 4
goto_if_false @HEIST2_5568
153@ = Checkpoint.Create(CheckpointType.Tube, -811.07, 1816.08, 7.0, -811.07, 1816.08, 200.0, 6.0)
Blip.Remove(152@)
152@ = Blip.AddForCoord(-811.07, 1816.08, 7.0)
Car.MarkAsNoLongerNeeded(168@)
Streaming.MarkModelAsNoLongerNeeded(553)
Streaming.RequestModel(#SMASHBOXPILE)
Streaming.RequestModel(#K_CARGO1)
Streaming.RequestModel(#KMB_CONTAINER_RED)
Streaming.RequestModel(#K_CARGO4)
Streaming.RequestModel(71)
Streaming.RequestModel(334)
Streaming.LoadAllModelsNow

:HEIST2_4929
if or
  not Streaming.HasModelLoaded(#K_CARGO4)
  not Streaming.HasModelLoaded(#SMASHBOXPILE)
  not Streaming.HasModelLoaded(#K_CARGO1)
  not Streaming.HasModelLoaded(#KMB_CONTAINER_RED)
  not Streaming.HasModelLoaded(71)
  not Streaming.HasModelLoaded(334)
goto_if_false @HEIST2_4980
wait 0
goto @HEIST2_4929

:HEIST2_4980
174@ = Object.CreateNoOffset(#SMASHBOXPILE, -829.8794, 1957.827, 6.4364)
Object.SetHeading(174@, 7.1004)
175@ = Object.CreateNoOffset(#SMASHBOXPILE, -824.9033, 1958.443, 6.5048)
Object.SetHeading(175@, 9.1604)
176@ = Object.CreateNoOffset(#K_CARGO1, -828.3333, 1952.527, 5.9651)
Object.SetHeading(176@, 102.0394)
177@ = Object.CreateNoOffset(#K_CARGO1, -825.9227, 1953.171, 5.9651)
Object.SetHeading(177@, 100.9489)
178@ = Object.CreateNoOffset(#K_CARGO4, -827.6044, 1958.276, 5.9873)
Object.SetHeading(178@, 101.9089)
179@ = Object.CreateNoOffset(#KMB_CONTAINER_RED, -820.3694, 1933.666, 7.3952)
Object.SetHeading(179@, 11.8154)
180@ = Object.CreateNoOffset(#KMB_CONTAINER_RED, -822.3879, 1945.519, 7.4836)
Object.SetHeading(180@, 11.8154)
163@ = Char.Create(PedType.Mission1, 71, -826.3729, 1946.988, 6.0692)
Char.GiveWeapon(163@, WeaponType.NightStick, 3000)
Char.SetDropsWeaponsWhenDead(163@, False)
Char.SetHeading(163@, 0.0)
Char.SetSenseRange(163@, 10.0)
164@ = Char.Create(PedType.Mission1, 71, -823.3655, 1956.276, 6.04)
Char.GiveWeapon(164@, WeaponType.NightStick, 3000)
Char.SetDropsWeaponsWhenDead(164@, False)
Char.SetHeading(164@, 301.2606)
Char.SetSenseRange(164@, 10.0)
Char.SetDecisionMaker(163@, 38@)
Char.SetDecisionMaker(164@, 38@)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(-825.4943, 1938.904, 6.0, "NONE", "NONE")
Path.ExtendPatrolRoute(-823.3667, 1933.54, 6.0, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(-825.4943, 1938.904, 6.0, "NONE", "NONE")
Path.ExtendPatrolRoute(-826.9571, 1947.569, 6.0, "ROADCROSS", "PED")
Task.FollowPatrolRoute(163@, 4, RouteMode.BackForward)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(-828.9601, 1955.366, 6.0, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(-823.2458, 1957.016, 6.007, "ROADCROSS", "PED")
Task.FollowPatrolRoute(164@, 4, RouteMode.BackForward)
123@ = 5

:HEIST2_5568
if and
  123@ > 4
  12 > 123@
goto_if_false @HEIST2_7009
if 
  not Car.IsDead(168@)
goto_if_false @HEIST2_5640
if 
  not Car.IsOnScreen(168@)
goto_if_false @HEIST2_5640
Car.MarkAsNoLongerNeeded(168@)
Streaming.MarkModelAsNoLongerNeeded(553)
Car.Delete(168@)

:HEIST2_5640
if 
  209@ <> 0
goto_if_false @HEIST2_5911
if 
  212@ == 0
goto_if_false @HEIST2_5704
if 
  Audio.HasMissionAudioLoaded(211@)
goto_if_false @HEIST2_5697
Audio.ClearMissionAudio(211@)

:HEIST2_5697
212@ = 1

:HEIST2_5704
if 
  212@ == 1
goto_if_false @HEIST2_5741
Audio.LoadMissionAudio(210@, 191@(209@,18i))
212@ = 2

:HEIST2_5741
if 
  212@ == 2
goto_if_false @HEIST2_5801
if 
  Audio.HasMissionAudioLoaded(210@)
goto_if_false @HEIST2_5801
Audio.PlayMissionAudio(210@)
Text.PrintNow($hei2_height(209@,18s), 10000, 1)
212@ = 3

:HEIST2_5801
if 
  212@ == 3
goto_if_false @HEIST2_5911
if 
  Audio.HasMissionAudioFinished(210@)
goto_if_false @HEIST2_5911
Text.ClearThisPrint($hei2_height(209@,18s))
if 
  210@ == 1
goto_if_false @HEIST2_5883
210@ = 2
211@ = 1
goto @HEIST2_5897

:HEIST2_5883
210@ = 1
211@ = 2

:HEIST2_5897
209@ = 0
212@ = 0

:HEIST2_5911
36@ = 0

:HEIST2_5918
if 
  2 > 36@
goto_if_false @HEIST2_6950
if 
  not Char.IsDead(163@(36@,2i))
goto_if_false @HEIST2_6894
if 
  126@(36@,6i) == 0
goto_if_false @HEIST2_6157
if or
  Char.IsRespondingToEvent(163@(36@,2i), 62)
  Char.IsRespondingToEvent(163@(36@,2i), 63)
goto_if_false @HEIST2_6157
if 
  not Char.IsRespondingToEvent(163@(36@,2i), 36)
goto_if_false @HEIST2_6157
if 
  212@ == 0
goto_if_false @HEIST2_6131
41@ = Math.RandomIntInRange(0, 4)
if 
  41@ == 0
goto_if_false @HEIST2_6092
209@ = 1
goto @HEIST2_6131

:HEIST2_6092
if 
  41@ == 1
goto_if_false @HEIST2_6124
209@ = 8
goto @HEIST2_6131

:HEIST2_6124
209@ = 12

:HEIST2_6131
126@(36@,6i) = 1
219@ = Char.SetSayContext(163@(36@,2i), 203)

:HEIST2_6157
if 
  126@(36@,6i) == 1
goto_if_false @HEIST2_6379
if and
  not Char.IsRespondingToEvent(163@(36@,2i), 62)
  not Char.IsRespondingToEvent(163@(36@,2i), 63)
  not Char.IsRespondingToEvent(163@(36@,2i), 36)
  not Char.IsRespondingToEvent(163@(36@,2i), 15)
  not Char.IsRespondingToEvent(163@(36@,2i), 9)
  not Char.IsRespondingToEvent(163@(36@,2i), 31)
goto_if_false @HEIST2_6379
if 
  212@ == 0
goto_if_false @HEIST2_6354
41@ = Math.RandomIntInRange(0, 3)
if 
  41@ == 0
goto_if_false @HEIST2_6315
209@ = 6
goto @HEIST2_6354

:HEIST2_6315
if 
  41@ == 1
goto_if_false @HEIST2_6347
209@ = 3
goto @HEIST2_6354

:HEIST2_6347
209@ = 2

:HEIST2_6354
219@ = Char.SetSayContext(163@(36@,2i), 13)
126@(36@,6i) = 0

:HEIST2_6379
if or
  126@(36@,6i) == 0
  126@(36@,6i) == 1
goto_if_false @HEIST2_6696
if or
  Char.IsRespondingToEvent(163@(36@,2i), 36)
  Char.IsRespondingToEvent(163@(36@,2i), 15)
  Char.IsRespondingToEvent(163@(36@,2i), 9)
  Char.IsRespondingToEvent(163@(36@,2i), 31)
goto_if_false @HEIST2_6696
if 
  212@ == 0
goto_if_false @HEIST2_6597
41@ = Math.RandomIntInRange(0, 4)
if 
  41@ == 0
goto_if_false @HEIST2_6526
209@ = 1
goto @HEIST2_6597

:HEIST2_6526
if 
  41@ == 5
goto_if_false @HEIST2_6558
209@ = 8
goto @HEIST2_6597

:HEIST2_6558
if 
  41@ == 2
goto_if_false @HEIST2_6590
209@ = 7
goto @HEIST2_6597

:HEIST2_6590
209@ = 10

:HEIST2_6597
if 
  105@ == 0
goto_if_false @HEIST2_6670
if 
  not Char.IsDead(163@)
goto_if_false @HEIST2_6639
Task.KillCharOnFoot(163@, $scplayer)

:HEIST2_6639
if 
  not Char.IsDead(164@)
goto_if_false @HEIST2_6663
Task.KillCharOnFoot(164@, $scplayer)

:HEIST2_6663
105@ = 1

:HEIST2_6670
219@ = Char.SetSayContext(163@(36@,2i), 204)
126@(36@,6i) = 2

:HEIST2_6696
if 
  126@(36@,6i) == 2
goto_if_false @HEIST2_6887
if and
  not Char.IsRespondingToEvent(163@(36@,2i), 62)
  not Char.IsRespondingToEvent(163@(36@,2i), 63)
  not Char.IsRespondingToEvent(163@(36@,2i), 36)
  not Char.IsRespondingToEvent(163@(36@,2i), 15)
  not Char.IsRespondingToEvent(163@(36@,2i), 9)
  not Char.IsRespondingToEvent(163@(36@,2i), 31)
goto_if_false @HEIST2_6887
if 
  212@ == 0
goto_if_false @HEIST2_6861
41@ = Math.RandomIntInRange(0, 2)
if 
  41@ == 0
goto_if_false @HEIST2_6854
209@ = 11
goto @HEIST2_6861

:HEIST2_6854
209@ = 9

:HEIST2_6861
219@ = Char.SetSayContext(163@(36@,2i), 205)
126@(36@,6i) = 0

:HEIST2_6887
goto @HEIST2_6936

:HEIST2_6894
if 
  113@(36@,6i) == 1
goto_if_false @HEIST2_6936
Blip.Remove(154@(36@,2i))
113@(36@,6i) = 0

:HEIST2_6936
36@ += 1
goto @HEIST2_5918

:HEIST2_6950
if 
  212@ == 0
goto_if_false @HEIST2_7009
if 
  not is_int_lvar_equal_to_int_lvar 42@ == 209@
goto_if_false @HEIST2_7002
set_lvar_int_to_lvar_int 42@ = 209@
goto @HEIST2_7009

:HEIST2_7002
209@ = 0

:HEIST2_7009
if 
  123@ == 5
goto_if_false @HEIST2_8449
if or
  Char.IsPlayingAnim($scplayer, "PARA_OPEN")
  Char.IsPlayingAnim($scplayer, "PARA_FLOAT")
goto_if_false @HEIST2_7073
Text.ClearHelp

:HEIST2_7073
if or
  $player_landed == 2
  Char.LocateAnyMeans3D($scplayer, -811.07, 1816.08, 7.0, 6.0, 6.0, 3.0, False)
goto_if_false @HEIST2_8383
Pad.SetPlayerCycleWeaponButton($player1, False)
Char.GiveWeapon($scplayer, WeaponType.Unarmed, 1)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Checkpoint.Delete(153@)
Blip.Remove(152@)
Text.ClearPrints
Text.ClearHelp
Player.SetControl($player1, False)
Camera.DoFade(1500, Fade.Out)

:HEIST2_7179
if 
  Camera.GetFadingStatus
goto_if_false @HEIST2_7203
wait 0
goto @HEIST2_7179

:HEIST2_7203
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HEIST2_7224
Task.LeaveAnyCar($scplayer)

:HEIST2_7224
Streaming.MarkModelAsNoLongerNeeded(371)
if 
  Char.LocateAnyMeans3D($scplayer, -828.4104, 1945.76, 7.04, 13.1, 19.2998, 4.5, False)
goto_if_false @HEIST2_7307
Char.SetCoordinates($scplayer, -820.3474, 1939.728, 6.0)
Char.SetHeading($scplayer, 295.9757)

:HEIST2_7307
Hud.SwitchWidescreen(True)
Task.TurnCharToFaceCoord($scplayer, -830.94, 1983.23, 9.0)
terminate_all_scripts_with_this_name 'PARACH'
$player_landed = 2
Char.ClearTasksImmediately($scplayer)
Camera.RestoreJumpcut
Hud.SetRadarZoom(90)
Streaming.RequestModel(335)

:HEIST2_7365
if 
  not Streaming.HasModelLoaded(335)
goto_if_false @HEIST2_7392
wait 0
goto @HEIST2_7365

:HEIST2_7392
104@ = Pickup.Create(335, PickupType.Once, -819.0, 1929.0, 7.0)
156@ = Blip.AddForPickup(104@)
Blip.ChangeDisplay(156@, BlipDisplay.BlipOnly)
Char.Delete(163@)
Char.MarkAsNoLongerNeeded(163@)
Char.Delete(164@)
Char.MarkAsNoLongerNeeded(164@)
163@ = Char.Create(PedType.Mission1, 71, -826.3729, 1946.988, 6.0692)
Char.GiveWeapon(163@, WeaponType.NightStick, 3000)
Char.SetDropsWeaponsWhenDead(163@, False)
Char.SetHeading(163@, 0.0)
Char.SetSenseRange(163@, 10.0)
164@ = Char.Create(PedType.Mission1, 71, -823.3655, 1956.276, 6.04)
Char.GiveWeapon(164@, WeaponType.NightStick, 3000)
Char.SetDropsWeaponsWhenDead(164@, False)
Char.SetHeading(164@, 301.2606)
Char.SetSenseRange(164@, 10.0)
Char.SetDecisionMaker(163@, 38@)
Char.SetDecisionMaker(164@, 38@)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(-823.3667, 1933.54, 6.0, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(-825.4943, 1938.904, 6.0, "NONE", "NONE")
Path.ExtendPatrolRoute(-826.9571, 1947.569, 6.0, "ROADCROSS", "PED")
Task.FollowPatrolRoute(163@, 4, RouteMode.BackForward)
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(-828.9601, 1955.366, 6.0, "ROADCROSS", "PED")
Path.ExtendPatrolRoute(-823.2458, 1957.016, 6.007, "ROADCROSS", "PED")
Task.FollowPatrolRoute(164@, 4, RouteMode.BackForward)
Camera.SetFixedPosition(-794.19, 1856.16, 8.89, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-833.48, 1914.18, 3.2, SwitchType.JumpCut)
Camera.DoFade(1500, Fade.In)

:HEIST2_7831
if 
  Camera.GetFadingStatus
goto_if_false @HEIST2_7855
wait 0
goto @HEIST2_7831

:HEIST2_7855
Text.Print('HEI2_52', 6000, 1)
skip_cutscene_start_internal @HEIST2_8175

:HEIST2_7878
if 
  Text.IsMessageBeingDisplayed
goto_if_false @HEIST2_7902
wait 0
goto @HEIST2_7878

:HEIST2_7902
Camera.SetFixedPosition(-821.12, 1953.34, 7.52, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-842.66, 1973.89, 3.84, SwitchType.JumpCut)
Text.Print('HEI2_52', 6000, 1)

:HEIST2_7969
if 
  Text.IsMessageBeingDisplayed
goto_if_false @HEIST2_7993
wait 0
goto @HEIST2_7969

:HEIST2_7993
Camera.SetFixedPosition(-828.18, 1949.82, 6.79, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-807.1, 1918.51, 8.91, SwitchType.JumpCut)
Text.Print('HEI2_53', 6000, 1)

:HEIST2_8060
if 
  Text.IsMessageBeingDisplayed
goto_if_false @HEIST2_8084
wait 0
goto @HEIST2_8060

:HEIST2_8084
Text.Print('HEI2_46', 6000, 1)
Camera.SetFixedPosition(-823.48, 1924.82, 6.71, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-808.71, 1959.51, 9.43, SwitchType.JumpCut)

:HEIST2_8151
if 
  Text.IsMessageBeingDisplayed
goto_if_false @HEIST2_8175
wait 0
goto @HEIST2_8151

:HEIST2_8175
skip_cutscene_end 
Text.ClearPrints
if 
  not Char.IsDead(163@)
goto_if_false @HEIST2_8217
154@ = Blip.AddForChar(163@)
Blip.ChangeDisplay(154@, BlipDisplay.BlipOnly)
113@ = 1

:HEIST2_8217
if 
  not Char.IsDead(164@)
goto_if_false @HEIST2_8255
155@ = Blip.AddForChar(164@)
Blip.ChangeDisplay(155@, BlipDisplay.BlipOnly)
114@ = 1

:HEIST2_8255
Hud.SwitchWidescreen(False)
Text.Print('HEI2_60', 5000, 1)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
if 
  not Char.IsDead(163@)
goto_if_false @HEIST2_8321
Char.SetRelationship(163@, RelationshipType.Hate, PedType.Player1)
Char.SetInformRespectedFriends(163@, 30.0, 10)

:HEIST2_8321
if 
  not Char.IsDead(164@)
goto_if_false @HEIST2_8358
Char.SetRelationship(164@, RelationshipType.Hate, PedType.Player1)
Char.SetInformRespectedFriends(164@, 30.0, 10)

:HEIST2_8358
Text.PrintHelp('HEI2_89')
123@ = 7
goto @HEIST2_8449

:HEIST2_8383
if 
  not Char.HasGotWeapon($scplayer, WeaponType.Parachute)
goto_if_false @HEIST2_8449
if 
  139@ == 0
goto_if_false @HEIST2_8449
Pad.SetPlayerCycleWeaponButton($player1, False)
Char.GiveWeapon($scplayer, WeaponType.Unarmed, 1)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
139@ = 1

:HEIST2_8449
if 
  123@ == 7
goto_if_false @HEIST2_8680
if 
  Char.IsInWater($scplayer)
goto_if_false @HEIST2_8562
if 
  124@ == 0
goto_if_false @HEIST2_8555
Text.ClearPrints
Text.Print('HEI2_40', 7000, 1)
Blip.Remove(152@)
152@ = Blip.AddForCoord(-799.5823, 1813.156, 2.0061)
Hud.SetRadarZoom(0)
124@ = 1

:HEIST2_8555
goto @HEIST2_8614

:HEIST2_8562
if 
  124@ == 1
goto_if_false @HEIST2_8614
Blip.Remove(152@)
124@ = 0
Text.ClearPrints
Hud.SetRadarZoom(90)
Text.Print('HEI2_60', 5000, 1)

:HEIST2_8614
if 
  Pickup.HasBeenCollected(104@)
goto_if_false @HEIST2_8680
Text.ClearPrints
Text.Print('HEI2_34', 7000, 1)
Blip.Remove(152@)
152@ = Blip.AddForCoord(-830.94, 1983.23, 9.0)
123@ = 8

:HEIST2_8680
if 
  123@ == 8
goto_if_false @HEIST2_9179
if 
  Char.IsDead(163@)
goto_if_false @HEIST2_8719
Blip.Remove(154@)

:HEIST2_8719
if 
  Char.IsDead(164@)
goto_if_false @HEIST2_8740
Blip.Remove(155@)

:HEIST2_8740
if 
  Char.IsInWater($scplayer)
goto_if_false @HEIST2_8835
if 
  124@ == 0
goto_if_false @HEIST2_8828
Text.ClearPrints
Blip.Remove(152@)
Text.Print('HEI2_40', 7000, 1)
152@ = Blip.AddForCoord(-799.5823, 1813.156, 2.0061)
Hud.SetRadarZoom(0)
124@ = 1

:HEIST2_8828
goto @HEIST2_9179

:HEIST2_8835
if 
  124@ == 1
goto_if_false @HEIST2_8907
124@ = 0
Text.ClearPrints
Blip.Remove(152@)
152@ = Blip.AddForCoord(-830.94, 1983.23, 9.0)
Hud.SetRadarZoom(90)
Text.Print('HEI2_34', 7000, 1)

:HEIST2_8907
if 
  Char.LocateOnFoot3D($scplayer, -830.2665, 1982.124, 8.25, 1.2, 1.2, 3.0, True)
goto_if_false @HEIST2_9179
Text.ClearPrints
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)

:HEIST2_8971
if 
  Camera.GetFadingStatus
goto_if_false @HEIST2_8995
wait 0
goto @HEIST2_8971

:HEIST2_8995
Char.SetCoordinates($scplayer, -942.0, 1847.0, 4.0)
Streaming.SetAreaVisible(17)
Streaming.LoadScene(-942.0, 1847.0, 4.0)
Streaming.RequestCollision(-942.0, 1847.0)
World.SetExtraColors(1, False)
Text.ClearPrints
Blip.Remove(152@)
Char.MarkAsNoLongerNeeded(163@)
Char.MarkAsNoLongerNeeded(164@)
Object.MarkAsNoLongerNeeded(174@)
Object.MarkAsNoLongerNeeded(175@)
Object.MarkAsNoLongerNeeded(176@)
Object.MarkAsNoLongerNeeded(177@)
Object.MarkAsNoLongerNeeded(178@)
Object.MarkAsNoLongerNeeded(179@)
Object.MarkAsNoLongerNeeded(180@)
Blip.Remove(154@)
Blip.Remove(155@)
Streaming.MarkModelAsNoLongerNeeded(#SMASHBOXPILE)
Streaming.MarkModelAsNoLongerNeeded(#K_CARGO1)
Streaming.MarkModelAsNoLongerNeeded(#KMB_CONTAINER_RED)
Streaming.MarkModelAsNoLongerNeeded(#K_CARGO4)
Streaming.MarkModelAsNoLongerNeeded(335)
Pickup.Remove(104@)
Blip.Remove(156@)
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
107@ = 2
123@ = 12

:HEIST2_9179
if 
  123@ > 11
goto_if_false @HEIST2_14790
if 
  107@ == 2
goto_if_false @HEIST2_10102
Streaming.RequestModel(363)
Streaming.RequestModel(50)
Streaming.RequestModel(346)
Streaming.RequestModel(330)

:HEIST2_9234
if or
  not Streaming.HasModelLoaded(363)
  not Streaming.HasModelLoaded(50)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(330)
goto_if_false @HEIST2_9275
wait 0
goto @HEIST2_9234

:HEIST2_9275
104@ = Pickup.Create(335, PickupType.OnStreetSlow, -938.3901, 1901.649, 4.3)
166@ = Char.Create(PedType.Mission2, 71, -960.0, 1927.0, 8.04)
Char.SetHeading(166@, 81.0)
Task.UseMobilePhone(166@, True)
113@ = 0
114@ = 0
105@ = 0
36@ = 0

:HEIST2_9369
if 
  6 > 36@
goto_if_false @HEIST2_10095
if 
  36@ > 1
goto_if_false @HEIST2_9774
157@(36@,6i) = Char.Create(PedType.Mission2, 71, 47@(36@,6f), 53@(36@,6f), 59@(36@,6f))
Char.SetFollowNodeThresholdDistance(157@(36@,6i), 1.0)
Char.SetSenseRange(157@(36@,6i), 10.0)
Char.SetAccuracy(157@(36@,6i), 85)
Char.SetInformRespectedFriends(157@(36@,6i), 20.0, 1)
if or
  36@ == 2
  36@ == 4
goto_if_false @HEIST2_9562
Char.GiveWeapon(157@(36@,6i), WeaponType.NightStick, 3000)
Char.SetShootRate(157@(36@,6i), 70)
Char.SetWeaponSkill(157@(36@,6i), 2)
goto @HEIST2_9598

:HEIST2_9562
Char.GiveWeapon(157@(36@,6i), WeaponType.Pistol, 3000)
Char.SetShootRate(157@(36@,6i), 60)
Char.SetWeaponSkill(157@(36@,6i), 1)

:HEIST2_9598
Char.SetDropsWeaponsWhenDead(157@(36@,6i), False)
Char.SetHeading(157@(36@,6i), 65@(36@,6f))
146@(36@,6i) = Blip.AddForChar(157@(36@,6i))
Blip.ChangeDisplay(146@(36@,6i), BlipDisplay.BlipOnly)
113@(36@,6i) = 1
126@(36@,6i) = 0
Path.FlushPatrolRoute
Path.ExtendPatrolRoute(71@(36@,6f), 77@(36@,6f), 83@(36@,6f), "ROADCROSS", "PED")
Path.ExtendPatrolRoute(47@(36@,6f), 53@(36@,6f), 59@(36@,6f), "ROADCROSS", "PED")
Task.FollowPatrolRoute(157@(36@,6i), 4, RouteMode.BackForward)
goto @HEIST2_10081

:HEIST2_9774
157@(36@,6i) = Char.Create(PedType.Mission2, 50, 47@(36@,6f), 53@(36@,6f), 59@(36@,6f))
Char.SetFollowNodeThresholdDistance(157@(36@,6i), 1.0)
Char.SetSenseRange(157@(36@,6i), 10.0)
Char.SetAccuracy(157@(36@,6i), 85)
Char.SetInformRespectedFriends(157@(36@,6i), 20.0, 1)
Char.SetHeading(157@(36@,6i), 65@(36@,6f))
if 
  36@ == 0
goto_if_false @HEIST2_9908
Task.Duck(157@(36@,6i), -2)

:HEIST2_9908
146@(36@,6i) = Blip.AddForChar(157@(36@,6i))
Blip.ChangeDisplay(146@(36@,6i), BlipDisplay.BlipOnly)
113@(36@,6i) = 1
126@(36@,6i) = 0
184@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 47@(36@,6f), 53@(36@,6f), 59@(36@,6f), 4, -2)
Task.AchieveHeading(-1, 65@(36@,6f))
Task.Duck(-1, 5000)
Task.ScratchHead(-1)
Task.PlayAnim(-1, "FUCKU", "PED", 4.0, False, False, False, False, -1)
Task.UseAtm(-1)
Task.ScratchHead(-1)
Sequence.SetToRepeat(184@, True)
Sequence.Close(184@)
Char.PerformSequence(157@(36@,6i), 184@)
Sequence.Clear(184@)

:HEIST2_10081
36@ += 1
goto @HEIST2_9369

:HEIST2_10095
107@ = 3

:HEIST2_10102
if 
  107@ == 3
goto_if_false @HEIST2_11549
120@ = 1
if or
  Char.LocateOnFoot3D($scplayer, -942.0, 1847.0, 5.0, 2.0, 2.0, 2.0, False)
  Char.LocateOnFoot3D($scplayer, -960.0, 1952.0, 9.0, 2.0, 2.0, 2.0, False)
goto_if_false @HEIST2_11549
Camera.SetFixedPosition(-940.3428, 1845.949, 5.4312, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-940.8073, 1846.819, 5.5962, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Text.ClearPrints
Text.ClearHelp
Camera.DoFade(1500, Fade.In)

:HEIST2_10278
if 
  Camera.GetFadingStatus
goto_if_false @HEIST2_10302
wait 0
goto @HEIST2_10278

:HEIST2_10302
Text.Print('HEI2_20', 6000, 1)
skip_cutscene_start_internal @HEIST2_11265

:HEIST2_10325
if 
  Text.IsMessageBeingDisplayed
goto_if_false @HEIST2_10349
wait 0
goto @HEIST2_10325

:HEIST2_10349
Camera.SetFixedPosition(-959.851, 1925.822, 8.6787, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-959.1008, 1925.218, 8.9476, SwitchType.JumpCut)
if 
  not Char.IsDead(162@)
goto_if_false @HEIST2_10423
Char.FreezePosition(162@, True)

:HEIST2_10423
Text.Print('HEI2_2', 6000, 1)

:HEIST2_10439
if 
  Text.IsMessageBeingDisplayed
goto_if_false @HEIST2_10463
wait 0
goto @HEIST2_10439

:HEIST2_10463
Camera.SetFixedPosition(-960.33, 1925.24, 9.12, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-938.79, 1959.11, 15.19, SwitchType.JumpCut)
209@ = 0
210@ = 1
211@ = 2
212@ = 0
213@ = 0
214@ = 0
215@ = 0
216@ = 0
217@ = 0
218@ = 0

:HEIST2_10584
wait 0
if 
  213@ == 0
goto_if_false @HEIST2_11265
if 
  209@ <> 0
goto_if_false @HEIST2_10945
if 
  212@ == 0
goto_if_false @HEIST2_10670
if 
  Audio.HasMissionAudioLoaded(211@)
goto_if_false @HEIST2_10663
Audio.ClearMissionAudio(211@)

:HEIST2_10663
212@ = 1

:HEIST2_10670
if 
  212@ == 1
goto_if_false @HEIST2_10707
Audio.LoadMissionAudio(210@, 191@(209@,18i))
212@ = 2

:HEIST2_10707
if 
  212@ == 2
goto_if_false @HEIST2_10767
if 
  Audio.HasMissionAudioLoaded(210@)
goto_if_false @HEIST2_10767
Audio.PlayMissionAudio(210@)
Text.PrintNow($hei2_height(209@,18s), 10000, 1)
212@ = 3

:HEIST2_10767
if 
  212@ == 3
goto_if_false @HEIST2_10945
if 
  Audio.HasMissionAudioFinished(210@)
goto_if_false @HEIST2_10884
Text.ClearThisPrint($hei2_height(209@,18s))
if 
  210@ == 1
goto_if_false @HEIST2_10849
210@ = 2
211@ = 1
goto @HEIST2_10863

:HEIST2_10849
210@ = 1
211@ = 2

:HEIST2_10863
209@ = 0
212@ = 0
goto @HEIST2_10945

:HEIST2_10884
if 
  not Audio.HasMissionAudioLoaded(211@)
goto_if_false @HEIST2_10945
if 
  8 > 209@
goto_if_false @HEIST2_10945
set_lvar_int_to_lvar_int 218@ = 209@
218@ += 1
Audio.LoadMissionAudio(211@, 191@(218@,18i))

:HEIST2_10945
switch_start 214@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @HEIST2_11186 {caseNum1} 0 {caseLabel1} @HEIST2_11008 {caseNum2} 1 {caseLabel2} @HEIST2_11081 {caseNum3} -1 {caseLabel3} @HEIST2_11258 {caseNum4} -1 {caseLabel4} @HEIST2_11258 {caseNum5} -1 {caseLabel5} @HEIST2_11258 {caseNum6} -1 {caseLabel6} @HEIST2_11258 {caseNum7} -1 {caseLabel7} @HEIST2_11258

:HEIST2_11008
if 
  212@ == 0
goto_if_false @HEIST2_11074
if 
  not Char.IsDead(166@)
goto_if_false @HEIST2_11055
Char.StopFacialTalk(166@)
Char.StartFacialTalk(166@, 4000)

:HEIST2_11055
209@ = 12
214@ = 1
217@ = Clock.GetGameTimer()

:HEIST2_11074
goto @HEIST2_11258

:HEIST2_11081
216@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 215@ = 216@
sub_int_lvar_from_int_lvar 215@ -= 217@
if 
  215@ > 1000
goto_if_false @HEIST2_11179
if 
  212@ == 0
goto_if_false @HEIST2_11179
if 
  not Char.IsDead(166@)
goto_if_false @HEIST2_11160
Char.StopFacialTalk(166@)

:HEIST2_11160
209@ = 13
214@ = 2
217@ = Clock.GetGameTimer()

:HEIST2_11179
goto @HEIST2_11258

:HEIST2_11186
216@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 215@ = 216@
sub_int_lvar_from_int_lvar 215@ -= 217@
if 
  215@ > 1000
goto_if_false @HEIST2_11251
if 
  212@ == 0
goto_if_false @HEIST2_11251
213@ = 1

:HEIST2_11251
goto @HEIST2_11258

:HEIST2_11258
goto @HEIST2_10584

:HEIST2_11265
skip_cutscene_end 
if 
  not Char.IsDead(162@)
goto_if_false @HEIST2_11290
Char.FreezePosition(162@, False)

:HEIST2_11290
Text.ClearPrints
Text.Print('HEI2_2', 4000, 1)
Camera.RestoreJumpcut
if 
  not Char.IsDead(166@)
goto_if_false @HEIST2_11367
39@ = Char.GetScriptTaskStatus(166@, 1833)
if 
  not is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_11362
Task.UseMobilePhone(166@, False)

:HEIST2_11362
Streaming.MarkModelAsNoLongerNeeded(330)

:HEIST2_11367
Char.Delete(166@)
Char.MarkAsNoLongerNeeded(166@)
Hud.SetRadarZoom(90)
Text.ClearPrints
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
37@ = 0

:HEIST2_11401
if 
  6 > 37@
goto_if_false @HEIST2_11542
if 
  5 > 37@
goto_if_false @HEIST2_11467
140@(37@,5i) = Blip.AddForCoord(89@(37@,5f), 94@(37@,5f), 99@(37@,5f))

:HEIST2_11467
if 
  not Char.IsDead(157@(37@,6i))
goto_if_false @HEIST2_11528
Char.SetRelationship(157@(37@,6i), RelationshipType.Hate, PedType.Player1)
Char.SetDecisionMaker(157@(37@,6i), 38@)
Char.SetInformRespectedFriends(157@(37@,6i), 40.0, 10)

:HEIST2_11528
37@ += 1
goto @HEIST2_11401

:HEIST2_11542
107@ = 4

:HEIST2_11549
if 
  6 > 107@
goto_if_false @HEIST2_11693
if 
  120@ == 1
goto_if_false @HEIST2_11686
36@ = 0

:HEIST2_11592
if 
  6 > 36@
goto_if_false @HEIST2_11686
if 
  Char.IsDead(157@(36@,6i))
goto_if_false @HEIST2_11672
if 
  113@(36@,6i) == 1
goto_if_false @HEIST2_11672
Blip.Remove(146@(36@,6i))
113@(36@,6i) = 0

:HEIST2_11672
36@ += 1
goto @HEIST2_11592

:HEIST2_11686
goto @HEIST2_11792

:HEIST2_11693
if 
  107@ == 6
goto_if_false @HEIST2_11792
36@ = 0

:HEIST2_11718
if 
  6 > 36@
goto_if_false @HEIST2_11792
if 
  113@(36@,6i) == 1
goto_if_false @HEIST2_11778
Blip.Remove(146@(36@,6i))
113@(36@,6i) = 0

:HEIST2_11778
36@ += 1
goto @HEIST2_11718

:HEIST2_11792
if and
  107@ > 2
  185@ == 0
goto_if_false @HEIST2_13314
if 
  not Car.IsDead(168@)
goto_if_false @HEIST2_11864
if 
  not Car.IsOnScreen(168@)
goto_if_false @HEIST2_11864
Car.MarkAsNoLongerNeeded(168@)
Streaming.MarkModelAsNoLongerNeeded(553)
Car.Delete(168@)

:HEIST2_11864
if 
  209@ <> 0
goto_if_false @HEIST2_12135
if 
  212@ == 0
goto_if_false @HEIST2_11928
if 
  Audio.HasMissionAudioLoaded(211@)
goto_if_false @HEIST2_11921
Audio.ClearMissionAudio(211@)

:HEIST2_11921
212@ = 1

:HEIST2_11928
if 
  212@ == 1
goto_if_false @HEIST2_11965
Audio.LoadMissionAudio(210@, 191@(209@,18i))
212@ = 2

:HEIST2_11965
if 
  212@ == 2
goto_if_false @HEIST2_12025
if 
  Audio.HasMissionAudioLoaded(210@)
goto_if_false @HEIST2_12025
Audio.PlayMissionAudio(210@)
Text.PrintNow($hei2_height(209@,18s), 10000, 1)
212@ = 3

:HEIST2_12025
if 
  212@ == 3
goto_if_false @HEIST2_12135
if 
  Audio.HasMissionAudioFinished(210@)
goto_if_false @HEIST2_12135
Text.ClearThisPrint($hei2_height(209@,18s))
if 
  210@ == 1
goto_if_false @HEIST2_12107
210@ = 2
211@ = 1
goto @HEIST2_12121

:HEIST2_12107
210@ = 1
211@ = 2

:HEIST2_12121
209@ = 0
212@ = 0

:HEIST2_12135
36@ = 0

:HEIST2_12142
if 
  6 > 36@
goto_if_false @HEIST2_13187
if 
  not Char.IsDead(157@(36@,6i))
goto_if_false @HEIST2_13173
if 
  126@(36@,6i) == 0
goto_if_false @HEIST2_12405
if or
  Char.IsRespondingToEvent(157@(36@,6i), 62)
  Char.IsRespondingToEvent(157@(36@,6i), 63)
goto_if_false @HEIST2_12405
if 
  not Char.IsRespondingToEvent(157@(36@,6i), 36)
goto_if_false @HEIST2_12405
if 
  212@ == 0
goto_if_false @HEIST2_12373
if 
  36@ > 1
goto_if_false @HEIST2_12373
41@ = Math.RandomIntInRange(0, 3)
if 
  41@ == 0
goto_if_false @HEIST2_12334
209@ = 6
goto @HEIST2_12373

:HEIST2_12334
if 
  41@ == 1
goto_if_false @HEIST2_12366
209@ = 3
goto @HEIST2_12373

:HEIST2_12366
209@ = 2

:HEIST2_12373
219@ = Char.SetSayContextImportant(157@(36@,6i), 203, True, False, False)
126@(36@,6i) = 1

:HEIST2_12405
if 
  126@(36@,6i) == 1
goto_if_false @HEIST2_12619
if and
  not Char.IsRespondingToEvent(157@(36@,6i), 62)
  not Char.IsRespondingToEvent(157@(36@,6i), 63)
  not Char.IsRespondingToEvent(157@(36@,6i), 36)
  not Char.IsRespondingToEvent(157@(36@,6i), 15)
  not Char.IsRespondingToEvent(157@(36@,6i), 9)
  not Char.IsRespondingToEvent(157@(36@,6i), 31)
goto_if_false @HEIST2_12619
if 
  212@ == 0
goto_if_false @HEIST2_12588
if 
  36@ > 1
goto_if_false @HEIST2_12588
41@ = Math.RandomIntInRange(0, 2)
if 
  41@ == 0
goto_if_false @HEIST2_12581
209@ = 11
goto @HEIST2_12588

:HEIST2_12581
209@ = 9

:HEIST2_12588
219@ = Char.SetSayContextImportant(157@(36@,6i), 13, True, False, False)
126@(36@,6i) = 0

:HEIST2_12619
if or
  126@(36@,6i) == 0
  126@(36@,6i) == 1
goto_if_false @HEIST2_12894
if or
  Char.IsRespondingToEvent(157@(36@,6i), 36)
  Char.IsRespondingToEvent(157@(36@,6i), 15)
  Char.IsRespondingToEvent(157@(36@,6i), 9)
  Char.IsRespondingToEvent(157@(36@,6i), 31)
goto_if_false @HEIST2_12894
if 
  212@ == 0
goto_if_false @HEIST2_12855
if 
  36@ > 1
goto_if_false @HEIST2_12855
41@ = Math.RandomIntInRange(0, 4)
if 
  41@ == 0
goto_if_false @HEIST2_12784
209@ = 1
goto @HEIST2_12855

:HEIST2_12784
if 
  41@ == 1
goto_if_false @HEIST2_12816
209@ = 8
goto @HEIST2_12855

:HEIST2_12816
if 
  41@ == 2
goto_if_false @HEIST2_12848
209@ = 4
goto @HEIST2_12855

:HEIST2_12848
209@ = 12

:HEIST2_12855
219@ = Char.SetSayContextImportant(157@(36@,6i), 204, True, False, False)
105@ = 1
126@(36@,6i) = 2

:HEIST2_12894
if 
  126@(36@,6i) == 2
goto_if_false @HEIST2_13173
if and
  not Char.IsRespondingToEvent(157@(36@,6i), 62)
  not Char.IsRespondingToEvent(157@(36@,6i), 63)
  not Char.IsRespondingToEvent(157@(36@,6i), 36)
  not Char.IsRespondingToEvent(157@(36@,6i), 15)
  not Char.IsRespondingToEvent(157@(36@,6i), 9)
  not Char.IsRespondingToEvent(157@(36@,6i), 31)
goto_if_false @HEIST2_13173
if 
  212@ == 0
goto_if_false @HEIST2_13141
if 
  36@ > 1
goto_if_false @HEIST2_13141
41@ = Math.RandomIntInRange(0, 4)
if 
  41@ == 0
goto_if_false @HEIST2_13070
209@ = 1
goto @HEIST2_13141

:HEIST2_13070
if 
  41@ == 5
goto_if_false @HEIST2_13102
209@ = 8
goto @HEIST2_13141

:HEIST2_13102
if 
  41@ == 2
goto_if_false @HEIST2_13134
209@ = 7
goto @HEIST2_13141

:HEIST2_13134
209@ = 10

:HEIST2_13141
219@ = Char.SetSayContextImportant(157@(36@,6i), 205, True, False, False)
126@(36@,6i) = 0

:HEIST2_13173
36@ += 1
goto @HEIST2_12142

:HEIST2_13187
if 
  133@ == 0
goto_if_false @HEIST2_13255
if 
  105@ == 1
goto_if_false @HEIST2_13255
if 
  212@ == 0
goto_if_false @HEIST2_13255
133@ = 1
209@ = 4

:HEIST2_13255
if 
  212@ == 0
goto_if_false @HEIST2_13314
if 
  not is_int_lvar_equal_to_int_lvar 42@ == 209@
goto_if_false @HEIST2_13307
set_lvar_int_to_lvar_int 42@ = 209@
goto @HEIST2_13314

:HEIST2_13307
209@ = 0

:HEIST2_13314
if 
  107@ == 4
goto_if_false @HEIST2_14433
if 
  5 > 34@
goto_if_false @HEIST2_14370
122@ = 0
37@ = 0

:HEIST2_13364
if 
  5 > 37@
goto_if_false @HEIST2_14343
if 
  108@(37@,5i) == 0
goto_if_false @HEIST2_14329
if 
  Char.LocateOnFoot3D($scplayer, 89@(37@,5f), 94@(37@,5f), 99@(37@,5f), 4.0, 4.0, 3.0, False)
goto_if_false @HEIST2_14329
122@ = 1
if 
  121@ == 0
goto_if_false @HEIST2_13501
121@ = 1
Text.PrintHelp('HEI2_6')

:HEIST2_13501
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @HEIST2_14329
Text.ClearHelp
121@ = 0
34@ += 1
Blip.Remove(140@(37@,5i))
if 
  Char.IsDucking($scplayer)
goto_if_false @HEIST2_13573
134@ = 1
goto @HEIST2_13580

:HEIST2_13573
134@ = 0

:HEIST2_13580
Player.SetControl($player1, False)
182@ = Sequence.Open()
if 
  134@ == 0
goto_if_false @HEIST2_13683
Task.TurnCharToFaceCoord(-1, 89@(37@,5f), 94@(37@,5f), 99@(37@,5f))
Task.PlayAnim(-1, "BOM_PLANT_IN", "BOMBER", 4.0, False, False, False, False, -1)
goto @HEIST2_13731

:HEIST2_13683
Task.PlayAnim(-1, "BOM_PLANT_CROUCH_IN", "BOMBER", 4.0, False, False, False, False, -1)

:HEIST2_13731
Task.PlayAnim(-1, "BOM_PLANT_LOOP", "BOMBER", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "BOM_PLANT_LOOP", "BOMBER", 4.0, False, False, False, False, -1)
if 
  134@ == 1
goto_if_false @HEIST2_13897
Task.PlayAnim(-1, "BOM_PLANT_CROUCH_OUT", "BOMBER", 4.0, False, False, False, False, -1)
Task.ToggleDuck(-1, True)
goto @HEIST2_13941

:HEIST2_13897
Task.PlayAnim(-1, "BOM_PLANT_2IDLE", "BOMBER", 4.0, False, False, False, False, -1)

:HEIST2_13941
Sequence.Close(182@)
Char.PerformSequence($scplayer, 182@)
Sequence.Clear(182@)
TIMERA = 0
106@ = 0

:HEIST2_13973
if 
  106@ == 0
goto_if_false @HEIST2_14295
if 
  134@ == 0
goto_if_false @HEIST2_14152
if or
  Char.IsPlayingAnim($scplayer, "BOM_PLANT_2IDLE")
  TIMERA > 6000
goto_if_false @HEIST2_14145
89@(37@,5f), 94@(37@,5f), 99@(37@,5f) = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.5, -1.0)
169@(37@,5i) = Object.Create(363, 89@(37@,5f), 94@(37@,5f), 99@(37@,5f))
Object.SetHeading(169@(37@,5i), 100.0)
106@ = 1

:HEIST2_14145
goto @HEIST2_14284

:HEIST2_14152
39@ = Char.GetScriptTaskStatus($scplayer, 1560)
if or
  is_int_lvar_equal_to_constant 39@ == 7
  TIMERA > 6000
goto_if_false @HEIST2_14284
89@(37@,5f), 94@(37@,5f), 99@(37@,5f) = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.5, -1.0)
169@(37@,5i) = Object.Create(363, 89@(37@,5f), 94@(37@,5f), 99@(37@,5f))
Object.SetHeading(169@(37@,5i), 100.0)
106@ = 1

:HEIST2_14284
wait 0
goto @HEIST2_13973

:HEIST2_14295
Text.PrintNow('HEI2_58', 4000, 1)
Player.SetControl($player1, True)
108@(37@,5i) = 1

:HEIST2_14329
37@ += 1
goto @HEIST2_13364

:HEIST2_14343
if 
  122@ == 0
goto_if_false @HEIST2_14370
Text.ClearHelp
121@ = 0

:HEIST2_14370
if 
  34@ == 5
goto_if_false @HEIST2_14433
Text.ClearPrints
145@ = Blip.AddForCoord(-959.5947, 1953.122, 8.0078)
Text.Print('HEI2_5', 10000, 1)
107@ = 5

:HEIST2_14433
if 
  107@ == 5
goto_if_false @HEIST2_14790
if 
  Char.LocateOnFoot3D($scplayer, -959.5947, 1953.122, 8.0078, 2.0, 2.0, 2.0, 35@)
goto_if_false @HEIST2_14783
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.DoFade(1500, Fade.Out)

:HEIST2_14518
if 
  Camera.GetFadingStatus
goto_if_false @HEIST2_14542
wait 0
goto @HEIST2_14518

:HEIST2_14542
185@ = 1
35@ = 0
Blip.Remove(145@)
Pickup.Remove(104@)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Object.Delete(169@)
Object.Delete(170@)
Object.Delete(171@)
Object.Delete(172@)
Object.Delete(173@)
Char.Delete(157@)
Char.Delete(158@)
Char.Delete(159@)
Char.Delete(160@)
Char.Delete(161@)
Char.Delete(162@)
Object.MarkAsNoLongerNeeded(169@)
Object.MarkAsNoLongerNeeded(170@)
Object.MarkAsNoLongerNeeded(171@)
Object.MarkAsNoLongerNeeded(172@)
Object.MarkAsNoLongerNeeded(173@)
Char.MarkAsNoLongerNeeded(157@)
Char.MarkAsNoLongerNeeded(158@)
Char.MarkAsNoLongerNeeded(159@)
Char.MarkAsNoLongerNeeded(160@)
Char.MarkAsNoLongerNeeded(161@)
Char.MarkAsNoLongerNeeded(162@)
Streaming.MarkModelAsNoLongerNeeded(363)
Streaming.RequestModel(453)

:HEIST2_14700
if 
  not Streaming.HasModelLoaded(453)
goto_if_false @HEIST2_14727
wait 0
goto @HEIST2_14700

:HEIST2_14727
167@ = Car.Create(453, -638.0, 1955.0, 1.0)
Car.SetHeading(167@, 180.0)
gosub @HEIST2_14797
Text.ClearPrints
goto @HEIST2_18797
goto @HEIST2_14790

:HEIST2_14783
35@ = 1

:HEIST2_14790
goto @HEIST2_1813

:HEIST2_14797
if 
  119@ == 0
goto_if_false @HEIST2_18777
Text.ClearPrints
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
if 
  Char.HasGotWeapon($scplayer, WeaponType.Parachute)
goto_if_false @HEIST2_14853
Char.RemoveWeapon($scplayer, WeaponType.Parachute)

:HEIST2_14853
Streaming.RequestAnimation("DAM_JUMP")
Streaming.RequestAnimation("BD_FIRE")
Streaming.RequestAnimation("BOMBER")
Streaming.RequestModel(427)
Streaming.RequestModel(599)
Streaming.SetAreaVisible(0)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.HideWeaponForScriptedCutscene($scplayer, True)

:HEIST2_14914
if or
  not Streaming.HasAnimationLoaded("DAM_JUMP")
  not Streaming.HasAnimationLoaded("BD_FIRE")
  not Streaming.HasAnimationLoaded("BOMBER")
  not Streaming.HasModelLoaded(599)
  not Streaming.HasModelLoaded(427)
goto_if_false @HEIST2_14979
wait 0
goto @HEIST2_14914

:HEIST2_14979
World.ClearExtraColors(False)
Char.SetCoordinates($scplayer, -596.3235, 2015.608, 75.9845)
Char.SetHeading($scplayer, 330.0)
Streaming.LoadScene(-594.9886, 2018.639, 76.8829)
Streaming.RequestCollision(-594.9886, 2018.639)
Camera.SetFixedPosition(-595.73, 2001.92, 78.66, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-601.02, 2033.63, 73.91, SwitchType.JumpCut)
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
World.ClearArea(-683.0, 2053.0, 59.1719, 50.0, True)
World.ClearArea(-488.0, 2001.0, 59.4028, 50.0, True)
225@ = Car.Create(599, -683.0, 2053.0, 59.1719)
Car.SetHeading(225@, 268.7848)
Car.SetCanGoAgainstTraffic(225@, True)
Car.SwitchSiren(225@, True)
226@ = Car.Create(599, -486.0, 2006.0, 59.4028)
Car.SetHeading(226@, 130.7071)
Car.SetCanGoAgainstTraffic(226@, True)
Car.SwitchSiren(226@, True)
227@ = Car.Create(427, -694.0, 2055.0, 59.1719)
Car.SetHeading(227@, 268.7848)
Car.SetCanGoAgainstTraffic(227@, True)
Car.SwitchSiren(227@, True)
228@ = Car.Create(427, -491.0, 1997.0, 59.4028)
Car.SetHeading(228@, 126.7071)
Car.SetCanGoAgainstTraffic(228@, True)
Car.SwitchSiren(228@, True)
Player.AlterWantedLevelNoDrop($player1, 2)
Camera.DoFade(1500, Fade.In)

:HEIST2_15357
if 
  Camera.GetFadingStatus
goto_if_false @HEIST2_15381
wait 0
goto @HEIST2_15357

:HEIST2_15381
TIMERB = 0
Char.ClearTasks($scplayer)
skip_cutscene_start_internal @HEIST2_18567
209@ = 0
210@ = 1
211@ = 2
212@ = 0
213@ = 0
214@ = 0
215@ = 0
216@ = 0
217@ = 0
218@ = 0
222@ = 0
224@ = 0
223@ = 0

:HEIST2_15491
wait 0
if 
  209@ <> 0
goto_if_false @HEIST2_15766
if 
  212@ == 0
goto_if_false @HEIST2_15559
if 
  Audio.HasMissionAudioLoaded(211@)
goto_if_false @HEIST2_15552
Audio.ClearMissionAudio(211@)

:HEIST2_15552
212@ = 1

:HEIST2_15559
if 
  212@ == 1
goto_if_false @HEIST2_15596
Audio.LoadMissionAudio(210@, 191@(209@,18i))
212@ = 2

:HEIST2_15596
if 
  212@ == 2
goto_if_false @HEIST2_15656
if 
  Audio.HasMissionAudioLoaded(210@)
goto_if_false @HEIST2_15656
Audio.PlayMissionAudio(210@)
Text.PrintNow($hei2_height(209@,18s), 10000, 1)
212@ = 3

:HEIST2_15656
if 
  212@ == 3
goto_if_false @HEIST2_15766
if 
  Audio.HasMissionAudioFinished(210@)
goto_if_false @HEIST2_15766
Text.ClearThisPrint($hei2_height(209@,18s))
if 
  210@ == 1
goto_if_false @HEIST2_15738
210@ = 2
211@ = 1
goto @HEIST2_15752

:HEIST2_15738
210@ = 1
211@ = 2

:HEIST2_15752
209@ = 0
212@ = 0

:HEIST2_15766
if 
  222@ <> 0
goto_if_false @HEIST2_15955
if 
  223@ == 0
goto_if_false @HEIST2_15828
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST2_15821
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:HEIST2_15821
223@ = 1

:HEIST2_15828
if 
  223@ == 1
goto_if_false @HEIST2_15864
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 220@(222@,2i))
223@ = 2

:HEIST2_15864
if 
  223@ == 2
goto_if_false @HEIST2_15908
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST2_15908
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
223@ = 3

:HEIST2_15908
if 
  223@ == 3
goto_if_false @HEIST2_15955
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot3)
goto_if_false @HEIST2_15955
222@ = 0
223@ = 0

:HEIST2_15955
switch_start 214@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @HEIST2_16459 {caseNum1} 0 {caseLabel1} @HEIST2_16018 {caseNum2} 1 {caseLabel2} @HEIST2_16080 {caseNum3} -1 {caseLabel3} @HEIST2_16544 {caseNum4} -1 {caseLabel4} @HEIST2_16544 {caseNum5} -1 {caseLabel5} @HEIST2_16544 {caseNum6} -1 {caseLabel6} @HEIST2_16544 {caseNum7} -1 {caseLabel7} @HEIST2_16544

:HEIST2_16018
if 
  212@ == 0
goto_if_false @HEIST2_16073
Char.StopFacialTalk($scplayer)
Char.StartFacialTalk($scplayer, 4000)
209@ = 16
Task.ScratchHead($scplayer)
214@ = 1
217@ = Clock.GetGameTimer()

:HEIST2_16073
goto @HEIST2_16544

:HEIST2_16080
216@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 215@ = 216@
sub_int_lvar_from_int_lvar 215@ -= 217@
if 
  215@ > 2000
goto_if_false @HEIST2_16452
if 
  212@ == 0
goto_if_false @HEIST2_16452
if 
  224@ == 1
goto_if_false @HEIST2_16420
if 
  223@ == 0
goto_if_false @HEIST2_16413
Char.StopFacialTalk($scplayer)
Char.StartFacialTalk($scplayer, 4000)
209@ = 14
214@ = 2
217@ = Clock.GetGameTimer()
Camera.SetFixedPosition(-596.53, 2013.11, 76.53, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-598.08, 2045.39, 79.93, SwitchType.JumpCut)
Char.ClearTasks($scplayer)
183@ = Sequence.Open()
Task.PlayAnim(-1, "BOM_PLANT_IN", "BOMBER", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "BOM_PLANT_LOOP", "BOMBER", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "BOM_PLANT_2IDLE", "BOMBER", 4.0, False, False, False, False, -1)
Sequence.Close(183@)
Char.PerformSequence($scplayer, 183@)
Sequence.Clear(183@)

:HEIST2_16413
goto @HEIST2_16452

:HEIST2_16420
if 
  224@ == 0
goto_if_false @HEIST2_16452
222@ = 1
224@ = 1

:HEIST2_16452
goto @HEIST2_16544

:HEIST2_16459
216@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 215@ = 216@
sub_int_lvar_from_int_lvar 215@ -= 217@
if 
  215@ > 1000
goto_if_false @HEIST2_16537
if 
  212@ == 0
goto_if_false @HEIST2_16537
Char.StopFacialTalk($scplayer)
Char.StartFacialTalk($scplayer, 4000)
213@ = 1

:HEIST2_16537
goto @HEIST2_16544

:HEIST2_16544
if 
  213@ == 0
goto_if_false @HEIST2_16569
goto @HEIST2_15491

:HEIST2_16569
106@ = 0
TIMERA = 0

:HEIST2_16583
if 
  106@ == 0
goto_if_false @HEIST2_16648
39@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_16637
106@ = 1

:HEIST2_16637
wait 0
goto @HEIST2_16583

:HEIST2_16648
Char.ClearTasks($scplayer)
Char.ClearLookAt($scplayer)
183@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, -598.5344, 2017.53, 75.9845, 4, -1)
Task.AchieveHeading(-1, 70.0)
Task.PlayAnimNonInterruptable(-1, "BD_PANIC_02", "BD_FIRE", 4.0, False, False, False, False, -1)
Sequence.Close(183@)
Char.PerformSequence($scplayer, 183@)
Sequence.Clear(183@)
209@ = 17
210@ = 1
211@ = 2
212@ = 0
213@ = 0
214@ = 0
215@ = 0
216@ = 0
217@ = 0
218@ = 0
106@ = 0
TIMERA = 0

:HEIST2_16838
if 
  106@ == 0
goto_if_false @HEIST2_17388
if 
  209@ <> 0
goto_if_false @HEIST2_17127
if 
  212@ == 0
goto_if_false @HEIST2_16920
if 
  Audio.HasMissionAudioLoaded(211@)
goto_if_false @HEIST2_16913
Audio.ClearMissionAudio(211@)

:HEIST2_16913
212@ = 1

:HEIST2_16920
if 
  212@ == 1
goto_if_false @HEIST2_16957
Audio.LoadMissionAudio(210@, 191@(209@,18i))
212@ = 2

:HEIST2_16957
if 
  212@ == 2
goto_if_false @HEIST2_17017
if 
  Audio.HasMissionAudioLoaded(210@)
goto_if_false @HEIST2_17017
Audio.PlayMissionAudio(210@)
Text.PrintNow($hei2_height(209@,18s), 10000, 1)
212@ = 3

:HEIST2_17017
if 
  212@ == 3
goto_if_false @HEIST2_17127
if 
  Audio.HasMissionAudioFinished(210@)
goto_if_false @HEIST2_17127
Text.ClearThisPrint($hei2_height(209@,18s))
if 
  210@ == 1
goto_if_false @HEIST2_17099
210@ = 2
211@ = 1
goto @HEIST2_17113

:HEIST2_17099
210@ = 1
211@ = 2

:HEIST2_17113
209@ = 0
212@ = 0

:HEIST2_17127
39@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_17170
106@ = 1
goto @HEIST2_17377

:HEIST2_17170
if 
  is_int_lvar_equal_to_constant 39@ == 1
goto_if_false @HEIST2_17377
39@ = Char.GetSequenceProgress($scplayer)
if 
  39@ == 1
goto_if_false @HEIST2_17377
if 
  not Car.IsDead(225@)
goto_if_false @HEIST2_17270
Car.SetForwardSpeed(225@, 20.0)
Car.SetCruiseSpeed(225@, 40.0)
Car.GotoCoordinates(225@, -591.4136, 2024.863, 59.1719)

:HEIST2_17270
if 
  not Car.IsDead(227@)
goto_if_false @HEIST2_17326
Car.SetForwardSpeed(227@, 20.0)
Car.SetCruiseSpeed(227@, 40.0)
Car.GotoCoordinates(227@, -591.4136, 2024.863, 59.1719)

:HEIST2_17326
Camera.SetFixedPosition(-597.14, 2017.04, 78.03, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-637.05, 2036.76, 64.61, SwitchType.JumpCut)

:HEIST2_17377
wait 0
goto @HEIST2_16838

:HEIST2_17388
Char.SetCoordinates($scplayer, -598.5344, 2017.53, 75.9845)
Char.SetHeading($scplayer, 70.0)
Camera.SetFixedPosition(-601.69, 2017.41, 78.85, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-576.19, 2014.02, 68.86, SwitchType.JumpCut)
183@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "BD_PANIC_04", "BD_FIRE", 4.0, False, False, False, False, -1)
Task.GoToCoordAnyMeans(-1, -596.3235, 2015.608, 75.9845, 4, -1)
Task.AchieveHeading(-1, 148.5634)
Sequence.Close(183@)
Char.PerformSequence($scplayer, 183@)
Sequence.Clear(183@)
106@ = 0
TIMERA = 0

:HEIST2_17579
if 
  106@ == 0
goto_if_false @HEIST2_17807
39@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_17640
106@ = 1
goto @HEIST2_17796

:HEIST2_17640
if 
  is_int_lvar_equal_to_constant 39@ == 1
goto_if_false @HEIST2_17796
39@ = Char.GetSequenceProgress($scplayer)
if 
  39@ == 0
goto_if_false @HEIST2_17796
if 
  not Car.IsDead(226@)
goto_if_false @HEIST2_17740
Car.SetForwardSpeed(226@, 20.0)
Car.SetCruiseSpeed(226@, 40.0)
Car.GotoCoordinates(226@, -587.4136, 2036.863, 59.1719)

:HEIST2_17740
if 
  not Car.IsDead(228@)
goto_if_false @HEIST2_17796
Car.SetForwardSpeed(228@, 20.0)
Car.SetCruiseSpeed(228@, 40.0)
Car.GotoCoordinates(228@, -587.4136, 2036.863, 59.1719)

:HEIST2_17796
wait 0
goto @HEIST2_17579

:HEIST2_17807
Camera.SetFixedPosition(-596.51, 2000.5, 79.7, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-600.79, 2009.02, 75.31, SwitchType.JumpCut)
Char.ClearLookAt($scplayer)
Char.ClearTasks($scplayer)
Char.SetCoordinates($scplayer, -596.3235, 2015.608, 75.9845)
Char.SetHeading($scplayer, 148.5634)
Task.PlayAnimNonInterruptable($scplayer, "DAM_LAUNCH", "DAM_JUMP", 4.0, False, False, False, False, -1)
106@ = 0

:HEIST2_17947
if 
  106@ == 0
goto_if_false @HEIST2_18037
39@ = Char.GetScriptTaskStatus($scplayer, 2066)
if 
  is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_18026
Char.SetCoordinates($scplayer, -613.74, 1980.77, 52.13)
wait 200
106@ = 1

:HEIST2_18026
wait 0
goto @HEIST2_17947

:HEIST2_18037
Camera.SetFixedPosition(-607.52, 1963.5, 41.26, 0.0, 0.0, 0.0)
Camera.PointAtChar($scplayer, CameraMode.Fixed, SwitchType.JumpCut)
Car.Delete(225@)
Car.Delete(226@)
Car.Delete(227@)
Car.Delete(228@)
Task.PlayAnimNonInterruptable($scplayer, "DAM_DIVE_LOOP", "DAM_JUMP", 1000.0, True, False, False, False, -1)
106@ = 0

:HEIST2_18150
if 
  106@ == 0
goto_if_false @HEIST2_18234
if 
  Char.LocateAnyMeans3D($scplayer, -613.74, 1980.77, 10.824, 50.0, 50.0, 1.0, False)
goto_if_false @HEIST2_18223
106@ = 1

:HEIST2_18223
wait 0
goto @HEIST2_18150

:HEIST2_18234
Camera.SetFixedPosition(-620.95, 1970.46, 4.58, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-610.92, 1984.83, -2.79, SwitchType.JumpCut)
Task.PlayAnimNonInterruptable($scplayer, "DAM_LAND", "DAM_JUMP", 4.0, False, True, True, False, -1)
106@ = 0
125@ = 0

:HEIST2_18339
if 
  106@ == 0
goto_if_false @HEIST2_18567
39@ = Char.GetScriptTaskStatus($scplayer, 2066)
if 
  is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_18400
106@ = 1
goto @HEIST2_18556

:HEIST2_18400
if 
  125@ == 0
goto_if_false @HEIST2_18556
if 
  Char.IsPlayingAnim($scplayer, "DAM_LAND")
goto_if_false @HEIST2_18556
46@ = Char.GetAnimCurrentTime($scplayer, "DAM_LAND")
if 
  46@ > 0.115
goto_if_false @HEIST2_18556
40@ = Particle.Create("WATER_SPLASH", -613.74, 1980.77, -0.8, 1)
if 
  40@ == -1
goto_if_false @HEIST2_18544
goto @HEIST2_18556

:HEIST2_18544
Particle.PlayAndKill(40@)
125@ = 1

:HEIST2_18556
wait 0
goto @HEIST2_18339

:HEIST2_18567
skip_cutscene_end 
Audio.ClearMissionAudio(210@)
Audio.ClearMissionAudio(211@)
Text.ClearPrints
Camera.DoFade(1000, Fade.Out)

:HEIST2_18588
if 
  Camera.GetFadingStatus
goto_if_false @HEIST2_18612
wait 0
goto @HEIST2_18588

:HEIST2_18612
Char.SetCoordinatesNoOffset($scplayer, -613.74, 1980.77, -0.5)
Char.SetHeading($scplayer, 148.5634)
Streaming.RemoveAnimation("DAM_JUMP")
Streaming.RemoveAnimation("BOMBER")
Streaming.RemoveAnimation("BD_FIRE")
Car.MarkAsNoLongerNeeded(225@)
Car.MarkAsNoLongerNeeded(226@)
Car.MarkAsNoLongerNeeded(227@)
Car.MarkAsNoLongerNeeded(228@)
Streaming.MarkModelAsNoLongerNeeded(599)
Streaming.MarkModelAsNoLongerNeeded(427)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Camera.RestoreJumpcut
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Camera.DoFade(1500, Fade.In)

:HEIST2_18739
if 
  Camera.GetFadingStatus
goto_if_false @HEIST2_18763
wait 0
goto @HEIST2_18739

:HEIST2_18763
Player.SetControl($player1, True)
119@ = 1

:HEIST2_18777
return 

:HEIST2_18779
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:HEIST2_18797
$flag_heist_mission_counter += 1
Stat.RegisterMissionPassed('HEIST_2')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSR', 5, 5000, TextStyle.Middle)
Audio.PlayMissionPassedTune(1)
Stat.AwardPlayerMissionRespect(5)
return 

:HEIST2_18847
$para_pickup_flag = 1
$timer_mobile_start = Clock.GetGameTimer()
Hud.DisplayRadar(True)
Weather.Release
Hud.SetRadarZoom(0)
World.SwitchEntryExit('DAMIN', True)
World.SwitchEntryExit('DAMOUT', True)
Streaming.RemoveCarRecording(805)
if 
  135@ == 1
goto_if_false @HEIST2_18941
if 
  Player.IsPlaying($player1)
goto_if_false @HEIST2_18941
Pad.SetPlayerCycleWeaponButton($player1, True)

:HEIST2_18941
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SetArea51SamSite(True)
Blip.Remove(140@)
Blip.Remove(141@)
Blip.Remove(142@)
Blip.Remove(143@)
Blip.Remove(144@)
Blip.Remove(154@)
Blip.Remove(155@)
Blip.Remove(145@)
Blip.Remove(152@)
Blip.Remove(156@)
36@ = 0

:HEIST2_19016
if 
  6 > 36@
goto_if_false @HEIST2_19057
Blip.Remove(146@(36@,6i))
36@ += 1
goto @HEIST2_19016

:HEIST2_19057
Checkpoint.Delete(153@)
Object.MarkAsNoLongerNeeded(169@)
Object.MarkAsNoLongerNeeded(170@)
Object.MarkAsNoLongerNeeded(171@)
Object.MarkAsNoLongerNeeded(172@)
Object.MarkAsNoLongerNeeded(173@)
Object.MarkAsNoLongerNeeded(174@)
Object.MarkAsNoLongerNeeded(175@)
Object.MarkAsNoLongerNeeded(176@)
Object.MarkAsNoLongerNeeded(177@)
Object.MarkAsNoLongerNeeded(178@)
Object.MarkAsNoLongerNeeded(179@)
Object.MarkAsNoLongerNeeded(180@)
Char.MarkAsNoLongerNeeded(163@)
Char.MarkAsNoLongerNeeded(164@)
Char.MarkAsNoLongerNeeded(157@)
Char.MarkAsNoLongerNeeded(158@)
Char.MarkAsNoLongerNeeded(159@)
Char.MarkAsNoLongerNeeded(160@)
Char.MarkAsNoLongerNeeded(161@)
Char.MarkAsNoLongerNeeded(162@)
Char.MarkAsNoLongerNeeded(165@)
Char.MarkAsNoLongerNeeded(165@)
Car.MarkAsNoLongerNeeded(167@)
Car.MarkAsNoLongerNeeded(225@)
Car.MarkAsNoLongerNeeded(226@)
Car.MarkAsNoLongerNeeded(227@)
Car.MarkAsNoLongerNeeded(228@)
Streaming.MarkModelAsNoLongerNeeded(427)
Streaming.MarkModelAsNoLongerNeeded(599)
Streaming.MarkModelAsNoLongerNeeded(#SMASHBOXPILE)
Streaming.MarkModelAsNoLongerNeeded(#K_CARGO1)
Streaming.MarkModelAsNoLongerNeeded(#KMB_CONTAINER_RED)
Streaming.MarkModelAsNoLongerNeeded(#K_CARGO4)
Streaming.MarkModelAsNoLongerNeeded(371)
Streaming.MarkModelAsNoLongerNeeded(71)
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.MarkModelAsNoLongerNeeded(334)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(335)
Streaming.MarkModelAsNoLongerNeeded(363)
Streaming.MarkModelAsNoLongerNeeded(453)
Streaming.MarkModelAsNoLongerNeeded(335)
Car.LockDoors(168@, CarLock.Unlocked)
Car.MarkAsNoLongerNeeded(168@)
Streaming.MarkModelAsNoLongerNeeded(553)
Streaming.MarkModelAsNoLongerNeeded(#SW_BIT_09)
Pickup.Remove(104@)
Streaming.RemoveAnimation("BOMBER")
Streaming.RemoveAnimation("DAM_JUMP")
Streaming.RemoveAnimation("BD_FIRE")
DecisionMaker.Remove(38@)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

//-------------Mission 99---------------
// Originally: Cop Wheels

:HEIST4
script_name 'HEIST4'
gosub @HEIST4_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST4_38
gosub @HEIST4_13141

:HEIST4_38
gosub @HEIST4_13214
terminate_this_script 

:HEIST4_47
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('HEIST4')
wait 0
Streaming.SetAreaVisible(10)
Char.SetHasUsedEntryExit($scplayer, 2016.422, 1017.102, 10.0)
Char.SetCoordinates($scplayer, 2033.974, 1017.29, 9.8203)
Char.SetHeading($scplayer, 288.0)
34@ = Player.GetGroup($player1)
Player.SetGroupRecruitment($player1, False)
Group.SetFollowStatus(34@, False)
Player.SetGroupToFollowNever($player1, True)
Cutscene.Load('HEIST5A')

:HEIST4_165
if 
  not Cutscene.HasLoaded
goto_if_false @HEIST4_189
wait 0
goto @HEIST4_165

:HEIST4_189
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:HEIST4_198
if 
  not Cutscene.HasFinished
goto_if_false @HEIST4_222
wait 0
goto @HEIST4_198

:HEIST4_222
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:HEIST4_235
if 
  Camera.GetFadingStatus
goto_if_false @HEIST4_259
wait 0
goto @HEIST4_235

:HEIST4_259
Cutscene.Clear
Game.SwitchCopsOnBikes(False)
Streaming.LoadScene(2031.168, 1030.918, 9.813)
Streaming.RequestCollision(2031.168, 1030.918)
Streaming.SetAreaVisible(0)
wait 0
Player.SetControl($player1, False)
104@ = 0
194@ = 1
195@ = 2
196@ = 0
197@ = 1
198@ = 0
199@ = 0
set_lvar_text_label 139@s = 'HE4_AA'
set_lvar_text_label 141@s = 'HE4_AB'
set_lvar_text_label 143@s = 'HE4_AC'
set_lvar_text_label 145@s = 'HE4_BA'
set_lvar_text_label 147@s = 'HE4_BB'
set_lvar_text_label 149@s = 'HE4_BC'
set_lvar_text_label 151@s = 'HE4_BD'
set_lvar_text_label 153@s = 'HE4_BE'
set_lvar_text_label 155@s = 'HE4_BF'
set_lvar_text_label 157@s = 'HE4_BG'
set_lvar_text_label 159@s = 'HE4_BH'
set_lvar_text_label 161@s = 'HE4_BJ'
set_lvar_text_label 163@s = 'HE4_BK'
set_lvar_text_label 165@s = 'HE4_BL'
set_lvar_text_label 167@s = 'HE4_BM'
set_lvar_text_label 169@s = 'HE4_CA'
set_lvar_text_label 171@s = 'HE4_CB'
set_lvar_int_to_constant 176@ = 18800
set_lvar_int_to_constant 177@ = 18801
set_lvar_int_to_constant 178@ = 18802
set_lvar_int_to_constant 179@ = 18809
set_lvar_int_to_constant 180@ = 18810
set_lvar_int_to_constant 181@ = 18811
set_lvar_int_to_constant 182@ = 18812
set_lvar_int_to_constant 183@ = 18813
set_lvar_int_to_constant 184@ = 18814
set_lvar_int_to_constant 185@ = 18803
set_lvar_int_to_constant 186@ = 18804
set_lvar_int_to_constant 187@ = 18805
set_lvar_int_to_constant 188@ = 18806
set_lvar_int_to_constant 189@ = 18807
set_lvar_int_to_constant 190@ = 18808
set_lvar_int_to_constant 191@ = 18815
set_lvar_int_to_constant 192@ = 18816
Streaming.RequestModel(443)
Streaming.RequestModel(523)
Streaming.RequestModel(284)
Streaming.RequestModel(346)
Streaming.RequestModel(598)
Streaming.RequestModel(32)
Streaming.RequestModel(463)
Streaming.RequestModel(34)
Streaming.RequestModel(33)
Streaming.RequestModel(50)
Streaming.RequestModel(117)
Streaming.RequestAnimation("SMOKING")
Streaming.RequestAnimation("MISC")
Char.SetHeading($scplayer, 342.8127)
Streaming.LoadAllModelsNow

:HEIST4_813
if or
  not Streaming.HasModelLoaded(443)
  not Streaming.HasModelLoaded(523)
  not Streaming.HasModelLoaded(284)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(32)
goto_if_false @HEIST4_859
wait 0
goto @HEIST4_813

:HEIST4_859
if or
  not Streaming.HasAnimationLoaded("SMOKING")
  not Streaming.HasModelLoaded(598)
  not Streaming.HasAnimationLoaded("MISC")
  not Streaming.HasModelLoaded(463)
goto_if_false @HEIST4_910
wait 0
goto @HEIST4_859

:HEIST4_910
if or
  not Streaming.HasModelLoaded(50)
  not Streaming.HasModelLoaded(33)
  not Streaming.HasModelLoaded(34)
  not Streaming.HasModelLoaded(117)
goto_if_false @HEIST4_948
wait 0
goto @HEIST4_910

:HEIST4_948
Streaming.LoadScene(2031.168, 1030.918, 9.813)
61@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
62@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
111@, 112@, 113@ = Char.GetCoordinates($scplayer)
World.ClearArea(111@, 112@, 113@, 1000.0, False)

:HEIST4_1011
if 
  not Player.IsPlaying($player1)
goto_if_false @HEIST4_1038
wait 0
goto @HEIST4_1011

:HEIST4_1038
204@ = 2710.623
224@ = 1397.883
205@ = 2711.071
225@ = 1175.003
206@ = 2590.812
226@ = 898.2437
207@ = 2203.896
227@ = 849.0437
208@ = 1833.473
228@ = 850.4182
209@ = 1541.602
229@ = 848.788
210@ = 1288.89
230@ = 901.789
211@ = 1224.975
231@ = 1240.59
212@ = 1224.064
232@ = 1744.703
213@ = 1224.173
233@ = 2071.703
214@ = 1279.245
234@ = 2398.683
215@ = 1566.816
235@ = 2457.233
216@ = 1931.45
236@ = 2521.858
217@ = 2442.573
237@ = 2609.429
218@ = 2704.658
238@ = 2343.654
219@ = 2710.891
239@ = 2065.317
220@ = 2711.892
240@ = 1830.5
World.ClearArea(2710.525, 1567.009, 100.0, 100.0, False)
Car.CustomPlateForNextCar(443, "CFC_1888")
244@ = Car.Create(443, 2711.326, 1567.045, 6.2)
Car.SetHeading(244@, 175.1379)
Car.ChangeColor(244@, 16, 16)
Car.SetUpsidedownNotDamaged(244@, True)
Car.SetHealth(244@, 2500)
Car.AddUpsidedownCheck(244@)
StuckCarCheck.Add(244@, 4.0, 3000)
Car.OpenDoor(244@, CarDoor.RightFrontDoor)
Car.SetStayInFastLane(244@, True)
Car.SetOnlyDamagedByPlayer(244@, True)
Car.LockDoors(244@, CarLock.Locked)
Car.SetCanGoAgainstTraffic(244@, False)
245@ = Char.CreateInsideCar(244@, PedType.Mission1, 117)
115@ = Char.Create(PedType.Mission1, 50, 2715.326, 1569.045, 7.2)
Char.SetProofs(115@, True, True, True, True, True)
Char.SetNeverTargeted(115@, True)
Char.AttachToCar(115@, 244@, 1.0, 3.1, 0.4, 2, 0.0, WeaponType.Unarmed)
Char.SetLoadCollisionFlag(115@, False)
Char.SetDecisionMaker(245@, 61@)
Char.SetDecisionMaker(115@, 61@)
Char.SetLoadCollisionFlag(245@, False)
Char.SetCanBeShotInVehicle(245@, False)
Char.SetCantBeDraggedOut(245@, True)
Char.SetStayInCarWhenJacked(245@, True)
Char.SetSuffersCriticalHits(245@, False)
Char.SetGetOutUpsideDownCar(245@, False)
Car.SetLoadCollisionFlag(244@, False)
Streaming.MarkModelAsNoLongerNeeded(443)
246@ = 2770.213
250@ = 1433.86
254@ = 9.3804
258@ = 257.0
247@ = 2620.683
251@ = 2333.686
255@ = 9.8203
259@ = 174.5638
248@ = 2316.935
252@ = 2457.006
256@ = 9.8203
260@ = 140.3
249@ = 1610.588
253@ = 1845.602
257@ = 9.828
261@ = 235.7296
60@ = 99
$7926 = 720000
66@ = 0
72@ = 0
80@ = 0
85@ = 0
88@ = 0
67@ = 0
73@ = 0
89@ = 0
90@ = 0
101@ = 0
102@ = 0
103@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
114@ = 0
131@ = 0
48@ = 0
if 
  48@ == -1
goto_if_false @HEIST4_2102
279@(48@,4i) = Car.Create(523, $x, $y, $z)
35@ = Blip.AddForCoord($x, $y, $z)
63@ = Char.Create(PedType.Mission1, 284, $x, $y, $z)
70@ = Char.Create(PedType.Mission1, 284, $x, $y, $z)

:HEIST4_2102
if 
  4 > 48@
goto_if_false @HEIST4_2197
283@(48@,4i) = Blip.AddForCoord(246@(48@,4f), 250@(48@,4f), 254@(48@,4f))
Blip.ChangeColor(283@(48@,4i), BlipColor.Green)
262@(48@,4i) = 0
266@(48@,4i) = 0
48@ += 1
goto @HEIST4_2102

:HEIST4_2197
270@ = 0.6
271@ = 0.0
272@ = 1.9
273@ = 0
274@ = 15.0
47@ = 0
275@ = 0
76@ = Char.Create(PedType.Mission1, 284, 2311.019, 2438.368, 9.8203)
Char.SetDecisionMaker(76@, 61@)
Char.SetHeading(76@, 297.0)
Char.GiveWeapon(76@, WeaponType.Pistol, 2000)
77@ = Char.Create(PedType.Mission1, 284, 2311.85, 2439.375, 9.8203)
Char.SetDecisionMaker(77@, 61@)
Char.SetHeading(77@, 115.0)
Char.GiveWeapon(77@, WeaponType.Pistol, 2000)
82@ = Char.Create(PedType.Mission1, 284, 1612.244, 1845.855, 9.828)
Char.SetDecisionMaker(82@, 61@)
Char.SetHeading(82@, 110.0)
Char.GiveWeapon(82@, WeaponType.Pistol, 2000)
Char.SetCanBeKnockedOffBike(82@, 3)
63@ = Char.Create(PedType.Mission1, 284, 2768.797, 1431.239, 9.487)
Char.GiveWeapon(63@, WeaponType.Pistol, 2000)
Char.SetDecisionMaker(63@, 61@)
Char.SetHeading(63@, 111.0)
Streaming.MarkModelAsNoLongerNeeded(284)
68@ = Char.Create(PedType.Mission1, 34, 2767.537, 1424.877, 9.2195)
Char.SetAnimGroup(68@, "DRUNKMAN")
Char.SetDecisionMaker(68@, 61@)
Char.SetHeading(68@, 347.0)
70@ = Char.Create(PedType.Mission1, 284, 2619.858, 2339.256, 10.0081)
Char.SetCanBeKnockedOffBike(70@, 3)
Char.GiveWeapon(70@, WeaponType.Pistol, 2000)
Char.SetDecisionMaker(70@, 61@)
Char.SetHeading(70@, 300.0)
92@ = Car.Create(463, 2634.011, 2343.212, 9.6797)
Car.SetHeading(92@, 120.0386)
Car.SetLoadCollisionFlag(92@, False)
93@ = Car.Create(463, 2625.69, 2336.85, 9.6875)
Car.SetHeading(93@, 183.0386)
Car.SetLoadCollisionFlag(93@, False)
94@ = Car.Create(463, 2637.847, 2347.576, 9.6797)
Car.SetHeading(94@, 126.0963)
Car.SetLoadCollisionFlag(94@, False)
95@ = Char.CreateInsideCar(92@, PedType.Mission1, 34)
Char.SetDecisionMaker(95@, 61@)
96@ = Char.CreateInsideCar(93@, PedType.Mission1, 32)
Char.SetDecisionMaker(96@, 61@)
97@ = Char.CreateInsideCar(94@, PedType.Mission1, 33)
Char.SetDecisionMaker(97@, 61@)
Streaming.MarkModelAsNoLongerNeeded(34)
Streaming.MarkModelAsNoLongerNeeded(32)
Streaming.MarkModelAsNoLongerNeeded(33)
Streaming.MarkModelAsNoLongerNeeded(463)
Task.ChatWithChar(77@, 76@, True, 1)
Task.ChatWithChar(76@, 77@, False, 1)
Task.PlayAnim(82@, "M_SMKSTND_LOOP", "SMOKING", 4.0, True, False, False, False, -1)
Game.SwitchCopsOnBikes(False)
TIMERA = 0
TIMERB = 0
World.SetCarDensityMultiplier(1.5)
if 
  not Char.IsDead(245@)
goto_if_false @HEIST4_2996
if 
  not Car.IsDead(244@)
goto_if_false @HEIST4_2996
Char.ClearTasks(245@)
World.ClearArea(2710.525, 1731.009, 100.0, 100.0, False)
47@ = 0
Task.CarDriveToCoord(245@, 244@, 204@(47@,20f), 224@(47@,20f), 6.0, 15.0, DriveMode.Normal, 0, DrivingMode.SlowDownForCars)

:HEIST4_2996
116@ = 0
203@ = 0
276@ = Char.Create(PedType.Mission1, 117, 2029.561, 1006.041, 9.8203)
Char.SetHeading(276@, 280.0)
Char.SetDecisionMaker(276@, 61@)
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(50)
Char.SetCoordinates($scplayer, 2028.875, 1006.87, 9.8203)
Char.SetHeading($scplayer, 265.0)
World.ClearArea(2033.974, 1017.29, 9.8203, 1000.0, False)
wait 1000
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2025.905, 1003.544, 12.1278, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2026.726, 1004.074, 11.9155, SwitchType.JumpCut)
if 
  not Char.IsDead(276@)
goto_if_false @HEIST4_3206
Task.TurnCharToFaceChar(276@, $scplayer)
Task.TurnCharToFaceChar($scplayer, 276@)

:HEIST4_3206
Camera.DoFade(1000, Fade.In)

:HEIST4_3213
if 
  Camera.GetFadingStatus
goto_if_false @HEIST4_3237
wait 0
goto @HEIST4_3213

:HEIST4_3237
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
275@ = 1
TIMERA = 0

:HEIST4_3287
if 
  104@ == 1
goto_if_false @HEIST4_3392
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST4_3392

:HEIST4_3322
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST4_3350
wait 0
goto @HEIST4_3322

:HEIST4_3350
if 
  275@ > 1
goto_if_false @HEIST4_3392
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
275@ = 5
104@ = 0

:HEIST4_3392
if 
  275@ == 1
goto_if_false @HEIST4_3431
196@ = 16
275@ = 2
TIMERA = 0

:HEIST4_3431
if 
  275@ == 2
goto_if_false @HEIST4_3591
if 
  TIMERA > 3000
goto_if_false @HEIST4_3591
104@ = 1
196@ = 17
275@ = 3
TIMERA = 0
Char.ClearTasks($scplayer)
Task.PlayAnim($scplayer, "ENDCHAT_01", "PED", 4.0, True, False, False, False, -1)
if 
  not Char.IsDead(276@)
goto_if_false @HEIST4_3591
Task.PlayAnim(276@, "ENDCHAT_03", "PED", 4.0, True, False, False, False, -1)

:HEIST4_3591
if 
  275@ == 3
goto_if_false @HEIST4_3692
if 
  TIMERA > 2000
goto_if_false @HEIST4_3692
if 
  not Char.IsDead(276@)
goto_if_false @HEIST4_3692
Char.ClearTasks($scplayer)
Char.ClearTasks(276@)
Task.GoStraightToCoord(276@, 2030.431, 984.6912, 9.8131, MoveState.Run, -2)
275@ = 4
TIMERA = 0

:HEIST4_3692
if 
  275@ == 4
goto_if_false @HEIST4_3736
if 
  TIMERA > 2000
goto_if_false @HEIST4_3736
275@ = 5

:HEIST4_3736
if 
  275@ == 5
goto_if_false @HEIST4_3857
104@ = 0
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Char.ClearTasks($scplayer)
Char.SetHeading($scplayer, 305.0)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Char.EnableSpeech($scplayer)
Char.Delete(276@)
Text.ClearPrints
Text.PrintNow('HEI4_01', 8000, 1)
TIMERA = 0
TIMERB = 0
60@ = 2
275@ = -99

:HEIST4_3857
if 
  203@ == 0
goto_if_false @HEIST4_3889
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 1096)
203@ = 1

:HEIST4_3889
if 
  203@ == 1
goto_if_false @HEIST4_3929
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST4_3929
203@ = 2

:HEIST4_3929
if 
  196@ <> 0
goto_if_false @HEIST4_4282
if 
  198@ == 0
goto_if_false @HEIST4_4000
if 
  Audio.HasMissionAudioLoaded(195@)
goto_if_false @HEIST4_3986
Audio.ClearMissionAudio(195@)

:HEIST4_3986
198@ = 1
199@ = 1

:HEIST4_4000
if 
  198@ == 1
goto_if_false @HEIST4_4037
Audio.LoadMissionAudio(194@, 175@(196@,19i))
198@ = 2

:HEIST4_4037
if 
  198@ == 2
goto_if_false @HEIST4_4097
if 
  Audio.HasMissionAudioLoaded(194@)
goto_if_false @HEIST4_4097
Audio.PlayMissionAudio(194@)
Text.Print(137@(196@,19s), 10000, 1)
198@ = 3

:HEIST4_4097
if 
  198@ == 3
goto_if_false @HEIST4_4282
if 
  Audio.HasMissionAudioFinished(194@)
goto_if_false @HEIST4_4221
Text.ClearThisPrint(137@(196@,19s))
if 
  194@ == 1
goto_if_false @HEIST4_4179
194@ = 2
195@ = 1
goto @HEIST4_4193

:HEIST4_4179
194@ = 1
195@ = 2

:HEIST4_4193
196@ = 0
198@ = 0
199@ = 0
goto @HEIST4_4282

:HEIST4_4221
if 
  not Audio.HasMissionAudioLoaded(195@)
goto_if_false @HEIST4_4282
if 
  15 > 196@
goto_if_false @HEIST4_4282
set_lvar_int_to_lvar_int 197@ = 196@
197@ += 1
Audio.LoadMissionAudio(195@, 175@(197@,19i))

:HEIST4_4282
if 
  not Car.IsDead(244@)
goto_if_false @HEIST4_4383
121@, 122@, 123@ = Car.GetOffsetInWorldCoords(244@, -1.3, -40.0, -2.0)
124@, 125@, 126@ = Car.GetOffsetInWorldCoords(244@, 1.3, 0.0, 2.0)
129@ = World.GetRandomCarOfTypeInAreaNoSave(121@, 122@, 124@, 125@, -1)
127@ = Car.GetSpeed(244@)

:HEIST4_4383
if 
  not Car.IsDead(129@)
goto_if_false @HEIST4_4425
set_lvar_float_to_lvar_float 128@ = 127@
128@ -= 4.0
Car.SetCruiseSpeed(129@, 128@)

:HEIST4_4425
if 
  not Car.IsDead(244@)
goto_if_false @HEIST4_4504
if 
  not Char.IsDead(245@)
goto_if_false @HEIST4_4504
if 
  not Char.IsInCar(245@, 244@)
goto_if_false @HEIST4_4504
if 
  not Char.IsDead(115@)
goto_if_false @HEIST4_4497
Char.DetachFromCar(115@)

:HEIST4_4497
goto @HEIST4_13141

:HEIST4_4504
if 
  114@ == 1
goto_if_false @HEIST4_4598
if 
  TIMERB > 1000
goto_if_false @HEIST4_4598
if 
  not Car.IsDead(244@)
goto_if_false @HEIST4_4598
118@, 119@, 120@ = Car.GetCoordinates(244@)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1095)
114@ = 2

:HEIST4_4598
if 
  114@ == 2
goto_if_false @HEIST4_4728
if 
  TIMERB > 1500
goto_if_false @HEIST4_4728
if 
  not Char.IsDead(115@)
goto_if_false @HEIST4_4721
if 
  not Char.IsPlayingAnim(115@, "HIKER_POSE_L")
goto_if_false @HEIST4_4721
Task.PlayAnim(115@, "HIKER_POSE_L", "MISC", 4.0, False, False, False, True, -1)

:HEIST4_4721
114@ = 3

:HEIST4_4728
if 
  114@ == 3
goto_if_false @HEIST4_4772
if 
  TIMERB > 2000
goto_if_false @HEIST4_4772
114@ = 4

:HEIST4_4772
if 
  114@ == 4
goto_if_false @HEIST4_4988
if 
  TIMERB > 4000
goto_if_false @HEIST4_4988
Char.ClearTasks($scplayer)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
if 
  273@ == 4
goto_if_false @HEIST4_4845
Text.ClearPrints

:HEIST4_4845
if 
  273@ == 1
goto_if_false @HEIST4_4881
Text.ClearPrints
Text.PrintNow('HEI4_06', 5000, 1)

:HEIST4_4881
if 
  273@ == 2
goto_if_false @HEIST4_4917
Text.ClearPrints
Text.PrintNow('HEI4_08', 5000, 1)

:HEIST4_4917
if 
  273@ == 3
goto_if_false @HEIST4_4960
Text.ClearPrints
Text.PrintNow('HEI4_09', 5000, 1)
TIMERA = 0

:HEIST4_4960
if 
  not Char.IsDead(115@)
goto_if_false @HEIST4_4981
Char.ClearTasks(115@)

:HEIST4_4981
114@ = 0

:HEIST4_4988
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @HEIST4_5010
goto @HEIST4_13159

:HEIST4_5010
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @HEIST4_5035
$7926 += 60000

:HEIST4_5035
if 
is_ps2_keyboard_key_pressed 19
goto_if_false @HEIST4_5057
Player.AlterWantedLevel($player1, 2)

:HEIST4_5057
if 
is_ps2_keyboard_key_pressed 18
goto_if_false @HEIST4_5079
Player.AlterWantedLevel($player1, 0)

:HEIST4_5079
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @HEIST4_5124
Char.SetCoordinates($scplayer, 2608.193, 2315.54, 9.6719)
Char.SetHeading($scplayer, 354.7109)

:HEIST4_5124
if 
  103@ == 1
goto_if_false @HEIST4_5201
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST4_5201

:HEIST4_5159
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST4_5187
wait 0
goto @HEIST4_5159

:HEIST4_5187
102@ = 50
103@ = 0

:HEIST4_5201
wait 0
if 
  101@ == 0
goto_if_false @HEIST4_5272
if 
  not Car.IsDead(280@)
goto_if_false @HEIST4_5272
if 
  Char.IsSittingInCar($scplayer, 280@)
goto_if_false @HEIST4_5272
Car.SwitchSiren(280@, False)
101@ = 1

:HEIST4_5272
if 
  89@ == 0
goto_if_false @HEIST4_5423
if 
  TIMERB > 5000
goto_if_false @HEIST4_5423
Streaming.MarkModelAsNoLongerNeeded(598)
Streaming.RequestModel(497)

:HEIST4_5319
if 
  not Streaming.HasModelLoaded(497)
goto_if_false @HEIST4_5346
wait 0
goto @HEIST4_5319

:HEIST4_5346
86@ = Car.Create(497, 1589.198, 1850.619, 9.8358)
Car.SetHeading(86@, 51.0)
Car.OpenDoor(86@, CarDoor.LeftFrontDoor)
87@ = Char.CreateInsideCar(86@, PedType.Mission1, 284)
Char.SetLoadCollisionFlag(87@, False)
Heli.SetBladesFullSpeed(86@)
Streaming.MarkModelAsNoLongerNeeded(497)
89@ = 1

:HEIST4_5423
if 
  60@ == 2
goto_if_false @HEIST4_5544
if 
  TIMERA > 12000
goto_if_false @HEIST4_5544
if 
  131@ == 0
goto_if_false @HEIST4_5544
Text.ClearPrints
Text.ClearThisPrint('HEI4_01')
Text.PrintNow('HEI4_11', 8000, 1)
Hud.DisplayTimerWithString($7926, TimerDirection.Down, 'HEI4_12')
131@ = 1
60@ = 3
TIMERA = 0

:HEIST4_5544
if 
  60@ == 3
goto_if_false @HEIST4_5588
if 
  TIMERA > 10000
goto_if_false @HEIST4_5588
60@ = 4

:HEIST4_5588
if 
  1 > $7926
goto_if_false @HEIST4_5631
Text.ClearPrints
Text.PrintNow('HEI4_10', 8000, 1)
goto @HEIST4_13141

:HEIST4_5631
if 
  102@ == 0
goto_if_false @HEIST4_7611
if 
  not Car.IsDead(244@)
goto_if_false @HEIST4_7588
if 
  Car.Locate2D(244@, 204@(47@,20f), 224@(47@,20f), 15.0, 15.0, False)
goto_if_false @HEIST4_5798
47@ += 1
if 
  47@ == 17
goto_if_false @HEIST4_5739
47@ = 0

:HEIST4_5739
if 
  not Char.IsDead(245@)
goto_if_false @HEIST4_5798
Char.ClearTasks(245@)
Task.CarDriveToCoord(245@, 244@, 204@(47@,20f), 224@(47@,20f), 8.0, 15.0, DriveMode.Normal, 0, DrivingMode.SlowDownForCars)

:HEIST4_5798
48@ = 0

:HEIST4_5805
if 
  4 > 48@
goto_if_false @HEIST4_7391
if 
  2 > 266@(48@,4i)
goto_if_false @HEIST4_7377
if 
  not Car.IsDead(279@(48@,4i))
goto_if_false @HEIST4_7119
if 
  Char.IsInCar($scplayer, 279@(48@,4i))
goto_if_false @HEIST4_6819
if 
  266@(48@,4i) == 0
goto_if_false @HEIST4_6030
43@ = 0

:HEIST4_5917
if 
  4 > 43@
goto_if_false @HEIST4_5958
Blip.Remove(283@(43@,4i))
43@ += 1
goto @HEIST4_5917

:HEIST4_5958
Blip.Remove(35@)
35@ = Blip.AddForCar(244@)
Blip.SetAsFriendly(35@, True)
if 
  273@ <> 4
goto_if_false @HEIST4_6012
Text.PrintNow('HEI4_02', 8000, 1)

:HEIST4_6012
266@(48@,4i) = 1
gosub @HEIST4_11579

:HEIST4_6030
if 
  266@(48@,4i) == 1
goto_if_false @HEIST4_6812
if 
  2 > 273@
goto_if_false @HEIST4_6128
$x, $y, $z = Car.GetOffsetInWorldCoords(244@, -1.3, -3.2, -0.8)
52@, 53@, 54@ = Car.GetOffsetInWorldCoords(244@, 1.3, -3.2, 2.6)

:HEIST4_6128
if 
  273@ > 1
goto_if_false @HEIST4_6204
$x, $y, $z = Car.GetOffsetInWorldCoords(244@, -1.3, -8.2, -0.8)
52@, 53@, 54@ = Car.GetOffsetInWorldCoords(244@, 1.3, -8.2, 2.6)

:HEIST4_6204
if 
  Char.LocateInCarCar2D($scplayer, 244@, 30.0, 30.0, False)
goto_if_false @HEIST4_6251
Text.PrintNow('HEI4_13', 8000, 1)

:HEIST4_6251
if 
  Char.IsInAngledAreaInCar3D($scplayer, $x, $y, $z, 52@, 53@, 54@, 4.8, False)
goto_if_false @HEIST4_6812
277@ = Car.GetSpeed(244@)
278@ = Car.GetSpeed(279@(48@,4i))
277@ += 10.0
if 
  is_float_lvar_greater_than_float_lvar 277@ > 278@
goto_if_false @HEIST4_6812
277@ -= 10.0
if 
  is_float_lvar_greater_than_float_lvar 278@ > 277@
goto_if_false @HEIST4_6812
Car.AttachToCar(279@(48@,4i), 244@, 270@, 271@, 272@, 16.0, 0.0, 0.0)
Car.FreezePosition(279@(48@,4i), True)
if or
  273@ == 1
  273@ == 3
goto_if_false @HEIST4_6462
271@ -= 2.5
272@ -= 0.7

:HEIST4_6462
if 
  270@ == 0.6
goto_if_false @HEIST4_6500
270@ = -0.6
goto @HEIST4_6510

:HEIST4_6500
270@ = 0.6

:HEIST4_6510
273@ += 1
if 
  4 > 273@
goto_if_false @HEIST4_6588
Camera.AttachToVehicleLookAtVehicle(244@, 3.0, 5.0, 2.2, 244@, 0.0, SwitchType.JumpCut)
114@ = 1
Player.SetControl($player1, False)
Text.ClearPrints
TIMERB = 0

:HEIST4_6588
274@ += 10.0
266@(48@,4i) = 2
Blip.Remove(35@)
Text.ClearThisPrint('HEI4_02')
43@ = 0

:HEIST4_6632
if 
  4 > 43@
goto_if_false @HEIST4_6812
if 
  2 > 266@(43@,4i)
goto_if_false @HEIST4_6798
if 
  262@(43@,4i) == 1
goto_if_false @HEIST4_6757
Blip.Remove(283@(43@,4i))
if 
  not Car.IsDead(279@(43@,4i))
goto_if_false @HEIST4_6750
283@(43@,4i) = Blip.AddForCar(279@(43@,4i))
Blip.ChangeColor(283@(43@,4i), BlipColor.Green)

:HEIST4_6750
goto @HEIST4_6787

:HEIST4_6757
283@(43@,4i) = Blip.AddForCoord(246@(43@,4f), 250@(43@,4f), 254@(43@,4f))

:HEIST4_6787
Blip.ChangeColor(283@(43@,4i), BlipColor.Green)

:HEIST4_6798
43@ += 1
goto @HEIST4_6632

:HEIST4_6812
goto @HEIST4_7112

:HEIST4_6819
if 
  266@(48@,4i) == 1
goto_if_false @HEIST4_7112
43@ = 0

:HEIST4_6848
if 
  4 > 43@
goto_if_false @HEIST4_7112
if 
  266@(43@,4i) == 1
goto_if_false @HEIST4_6899
266@(43@,4i) = 0

:HEIST4_6899
if 
  2 > 266@(43@,4i)
goto_if_false @HEIST4_7098
Blip.Remove(283@(43@,4i))
if 
  262@(43@,4i) == 1
goto_if_false @HEIST4_7036
if 
  not Car.IsDead(279@(43@,4i))
goto_if_false @HEIST4_7006
283@(43@,4i) = Blip.AddForCar(279@(43@,4i))
Blip.ChangeColor(283@(43@,4i), BlipColor.Green)
goto @HEIST4_7029

:HEIST4_7006
Text.PrintNow('HEI4_04', 8000, 1)
goto @HEIST4_13141

:HEIST4_7029
goto @HEIST4_7066

:HEIST4_7036
283@(43@,4i) = Blip.AddForCoord(246@(43@,4f), 250@(43@,4f), 254@(43@,4f))

:HEIST4_7066
Blip.Remove(35@)
Blip.ChangeColor(283@(43@,4i), BlipColor.Green)
Text.PrintNow('HEI4_03', 5000, 1)

:HEIST4_7098
43@ += 1
goto @HEIST4_6848

:HEIST4_7112
goto @HEIST4_7377

:HEIST4_7119
if 
  262@(48@,4i) == 0
goto_if_false @HEIST4_7354
if 
  Char.LocateAnyMeans2D($scplayer, 246@(48@,4f), 250@(48@,4f), 200.0, 200.0, False)
goto_if_false @HEIST4_7347
World.ClearArea(246@(48@,4f), 250@(48@,4f), 254@(48@,4f), 40.0, False)
279@(48@,4i) = Car.Create(523, 246@(48@,4f), 250@(48@,4f), 254@(48@,4f))
Car.SetHeading(279@(48@,4i), 258@(48@,4f))
Car.SetCanBurstTires(279@(48@,4i), False)
Car.SetLoadCollisionFlag(279@(48@,4i), False)
if 
  not Blip.DoesExist(35@)
goto_if_false @HEIST4_7336
Blip.Remove(283@(48@,4i))
283@(48@,4i) = Blip.AddForCar(279@(48@,4i))
Blip.ChangeColor(283@(48@,4i), BlipColor.Green)

:HEIST4_7336
262@(48@,4i) = 1

:HEIST4_7347
goto @HEIST4_7377

:HEIST4_7354
Text.PrintNow('HEI4_04', 5000, 1)
goto @HEIST4_13141

:HEIST4_7377
48@ += 1
goto @HEIST4_5805

:HEIST4_7391
if 
  Char.LocateAnyMeansCar2D($scplayer, 244@, 120.0, 120.0, False)
goto_if_false @HEIST4_7437
Car.SetCruiseSpeed(244@, 274@)
goto @HEIST4_7447

:HEIST4_7437
Car.SetCruiseSpeed(244@, 15.0)

:HEIST4_7447
if or
  Car.IsStuckOnRoof(244@)
  StuckCarCheck.IsCarStuck(244@)
goto_if_false @HEIST4_7581
if 
  not Car.IsOnScreen(244@)
goto_if_false @HEIST4_7581
if 
  not Camera.IsPointOnScreen(204@(47@,20f), 224@(47@,20f), 6.0, 4.0)
goto_if_false @HEIST4_7581
World.ClearArea(204@(47@,20f), 224@(47@,20f), 7.0, 10.0, False)
Car.SetCoordinates(244@, 204@(47@,20f), 224@(47@,20f), 10.0)
Car.SetHeading(244@, $heading)

:HEIST4_7581
goto @HEIST4_7611

:HEIST4_7588
Text.PrintNow('HEI4_05', 5000, 1)
goto @HEIST4_13141

:HEIST4_7611
if 
  102@ == 0
goto_if_false @HEIST4_7659
if 
  273@ == 4
goto_if_false @HEIST4_7659
Hud.ClearTimer($7926)
102@ = 1

:HEIST4_7659
if 
  102@ == 1
goto_if_false @HEIST4_8097
Camera.DoFade(1000, Fade.Out)
Text.ClearPrints
Hud.ClearTimer($7926)
Player.SetControl($player1, False)
Player.ClearWantedLevel($player1)

:HEIST4_7703
if 
  Camera.GetFadingStatus
goto_if_false @HEIST4_7727
wait 0
goto @HEIST4_7703

:HEIST4_7727
Task.Jump($scplayer, False)
Char.ClearTasksImmediately($scplayer)
Streaming.LoadSceneInDirection(1009.781, 1929.377, 9.6719, 122.0)
wait 0
Hud.SwitchWidescreen(True)
102@ = 10
Camera.SetFixedPosition(1022.831, 1899.513, 18.6192, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1021.961, 1899.518, 18.126, SwitchType.JumpCut)
if 
  not Char.IsDead(245@)
goto_if_false @HEIST4_7994
if 
  not Car.IsDead(244@)
goto_if_false @HEIST4_7994
Char.ClearTasks(245@)
World.ClearArea(1009.994, 1880.02, 150.0, 150.0, False)
Car.SetCoordinates(244@, 1009.994, 1870.02, 9.6797)
Car.SetHeading(244@, 2.3)
Char.AttachToCar($scplayer, 244@, 0.5, -10.0, -0.3, 2, 10.0, WeaponType.Unarmed)
Char.SetHeading($scplayer, 300.0)
Task.CarDriveToCoord(245@, 244@, 1009.781, 1900.377, 9.6719, 15.0, DriveMode.Normal, 0, DrivingMode.SlowDownForCars)

:HEIST4_7994
World.ClearArea(1009.994, 1910.02, 150.0, 150.0, False)
Camera.DoFade(500, Fade.In)

:HEIST4_8025
if 
  Camera.GetFadingStatus
goto_if_false @HEIST4_8073
wait 0
World.ClearArea(1009.994, 1910.02, 150.0, 150.0, False)
goto @HEIST4_8025

:HEIST4_8073
World.ClearArea(1009.994, 1910.02, 150.0, 150.0, False)

:HEIST4_8097
if 
  102@ == 10
goto_if_false @HEIST4_8273
World.ClearArea(1009.994, 1910.02, 150.0, 150.0, False)
if 
  not Car.IsDead(244@)
goto_if_false @HEIST4_8273
if 
  not Char.IsDead(245@)
goto_if_false @HEIST4_8273
if 
  Car.IsStopped(244@)
goto_if_false @HEIST4_8273
102@ = 20
103@ = 1
Char.DetachFromCar($scplayer)
105@ = Sequence.Open()
Task.Jump(-1, True)
Task.GoStraightToCoord(-1, 1014.013, 1902.325, 9.8125, MoveState.Run, 10000)
Task.TurnCharToFaceChar(-1, 245@)
Sequence.Close(105@)
Char.PerformSequence($scplayer, 105@)
Sequence.Clear(105@)
TIMERA = 0

:HEIST4_8273
if 
  201@ > 0
goto_if_false @HEIST4_8456
if 
  199@ == 0
goto_if_false @HEIST4_8456
switch_start 201@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @HEIST4_8456 {caseNum1} 1 {caseLabel1} @HEIST4_8372 {caseNum2} 2 {caseLabel2} @HEIST4_8393 {caseNum3} 3 {caseLabel3} @HEIST4_8414 {caseNum4} 4 {caseLabel4} @HEIST4_8435 {caseNum5} -1 {caseLabel5} @HEIST4_8456 {caseNum6} -1 {caseLabel6} @HEIST4_8456 {caseNum7} -1 {caseLabel7} @HEIST4_8456

:HEIST4_8372
196@ = 1
201@ = 2
goto @HEIST4_8456

:HEIST4_8393
196@ = 2
201@ = 3
goto @HEIST4_8456

:HEIST4_8414
196@ = 3
201@ = 4
goto @HEIST4_8456

:HEIST4_8435
196@ = 0
201@ = 0
goto @HEIST4_8456

:HEIST4_8456
if 
  102@ == 20
goto_if_false @HEIST4_8538
World.ClearArea(1009.994, 1910.02, 150.0, 150.0, False)
if 
  TIMERA > 3000
goto_if_false @HEIST4_8538
201@ = 1
102@ = 30
TIMERA = 0

:HEIST4_8538
if 
  102@ == 30
goto_if_false @HEIST4_8679
World.ClearArea(1009.994, 1910.02, 150.0, 150.0, False)
if 
  TIMERA > 3000
goto_if_false @HEIST4_8679
if 
  not Char.IsDead(245@)
goto_if_false @HEIST4_8679
if 
  not Car.IsDead(244@)
goto_if_false @HEIST4_8679
102@ = 40
Task.CarDriveToCoord(245@, 244@, 1009.781, 2000.377, 9.6719, 15.0, DriveMode.Normal, 0, DrivingMode.SlowDownForCars)
TIMERA = 0

:HEIST4_8679
if 
  102@ == 40
goto_if_false @HEIST4_8780
World.ClearArea(1009.994, 1910.02, 150.0, 150.0, False)
if 
  TIMERA > 500
goto_if_false @HEIST4_8780
if 
  not Char.IsDead(245@)
goto_if_false @HEIST4_8780
Task.LookAtChar($scplayer, 245@, -2)
102@ = 45
TIMERA = 0

:HEIST4_8780
if 
  102@ == 45
goto_if_false @HEIST4_8848
World.ClearArea(1009.994, 1910.02, 150.0, 150.0, False)
if 
  TIMERA > 3000
goto_if_false @HEIST4_8848
102@ = 50

:HEIST4_8848
if 
  102@ == 50
goto_if_false @HEIST4_8967
103@ = 0
Car.Delete(279@)
Car.Delete(280@)
Car.Delete(281@)
Car.Delete(282@)
Car.Delete(244@)
Char.Delete(245@)
Char.Delete(115@)
Hud.SwitchWidescreen(False)
Char.ClearTasks($scplayer)
Char.SetCoordinates($scplayer, 1014.013, 1902.325, 9.8125)
Char.SetHeading($scplayer, 59.0)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Text.ClearPrints
goto @HEIST4_13159

:HEIST4_8967
if 
  102@ == 0
goto_if_false @HEIST4_9089
90@ = 0

:HEIST4_8992
if 
  4 > 90@
goto_if_false @HEIST4_9089
if 
  266@(90@,4i) == 2
goto_if_false @HEIST4_9075
if 
  Car.IsDead(279@(90@,4i))
goto_if_false @HEIST4_9075
Text.PrintNow('HEI4_04', 5000, 1)
goto @HEIST4_13141

:HEIST4_9075
90@ += 1
goto @HEIST4_8992

:HEIST4_9089
if 
  66@ == 0
goto_if_false @HEIST4_9376
if 
  Char.DoesExist(63@)
goto_if_false @HEIST4_9267
if 
  Char.HasBeenDamagedByChar(63@, $scplayer)
goto_if_false @HEIST4_9213
Player.AlterWantedLevelNoDrop($player1, 2)
gosub @HEIST4_12490
if 
  not Char.IsDead(63@)
goto_if_false @HEIST4_9192
66@ = 1
Char.ClearTasks(63@)
Task.KillCharOnFoot(63@, $scplayer)

:HEIST4_9192
if 
  not Char.IsDead(68@)
goto_if_false @HEIST4_9213
Char.MarkAsNoLongerNeeded(68@)

:HEIST4_9213
if 
  not Char.IsDead(63@)
goto_if_false @HEIST4_9267
if 
  Char.LocateAnyMeansChar2D($scplayer, 63@, 25.0, 25.0, False)
goto_if_false @HEIST4_9267
gosub @HEIST4_12490

:HEIST4_9267
if 
  Char.DoesExist(68@)
goto_if_false @HEIST4_9376
if 
  Char.HasBeenDamagedByChar(68@, $scplayer)
goto_if_false @HEIST4_9376
Player.AlterWantedLevelNoDrop($player1, 1)
if 
  not Char.IsDead(68@)
goto_if_false @HEIST4_9340
Task.SmartFleeChar(68@, $scplayer, 100.0, -1)

:HEIST4_9340
if 
  not Char.IsDead(63@)
goto_if_false @HEIST4_9376
66@ = 1
Char.ClearTasks(63@)
Task.KillCharOnFoot(63@, $scplayer)

:HEIST4_9376
if 
  72@ == 0
goto_if_false @HEIST4_9998
if 
  Char.DoesExist(70@)
goto_if_false @HEIST4_9596
if 
  Char.HasBeenDamagedByChar(70@, $scplayer)
goto_if_false @HEIST4_9542
Player.AlterWantedLevelNoDrop($player1, 1)
gosub @HEIST4_12636
if 
  not Char.IsDead(70@)
goto_if_false @HEIST4_9479
72@ = 1
Char.ClearTasks(70@)
Task.KillCharOnFoot(70@, $scplayer)

:HEIST4_9479
if 
  not Char.IsDead(95@)
goto_if_false @HEIST4_9500
Char.MarkAsNoLongerNeeded(95@)

:HEIST4_9500
if 
  not Char.IsDead(96@)
goto_if_false @HEIST4_9521
Char.MarkAsNoLongerNeeded(96@)

:HEIST4_9521
if 
  not Char.IsDead(97@)
goto_if_false @HEIST4_9542
Char.MarkAsNoLongerNeeded(97@)

:HEIST4_9542
if 
  not Char.IsDead(70@)
goto_if_false @HEIST4_9596
if 
  Char.LocateAnyMeansChar2D($scplayer, 70@, 30.0, 30.0, False)
goto_if_false @HEIST4_9596
gosub @HEIST4_12636

:HEIST4_9596
if 
  Char.DoesExist(95@)
goto_if_false @HEIST4_9730
if 
  Char.HasBeenDamagedByChar(95@, $scplayer)
goto_if_false @HEIST4_9730
if 
  not Char.IsDead(70@)
goto_if_false @HEIST4_9667
72@ = 1
Char.ClearTasks(70@)
Task.KillCharOnFoot(70@, $scplayer)

:HEIST4_9667
if 
  not Char.IsDead(95@)
goto_if_false @HEIST4_9688
Char.MarkAsNoLongerNeeded(95@)

:HEIST4_9688
if 
  not Char.IsDead(96@)
goto_if_false @HEIST4_9709
Char.MarkAsNoLongerNeeded(96@)

:HEIST4_9709
if 
  not Char.IsDead(97@)
goto_if_false @HEIST4_9730
Char.MarkAsNoLongerNeeded(97@)

:HEIST4_9730
if 
  Char.DoesExist(96@)
goto_if_false @HEIST4_9864
if 
  Char.HasBeenDamagedByChar(96@, $scplayer)
goto_if_false @HEIST4_9864
if 
  not Char.IsDead(70@)
goto_if_false @HEIST4_9801
72@ = 1
Char.ClearTasks(70@)
Task.KillCharOnFoot(70@, $scplayer)

:HEIST4_9801
if 
  not Char.IsDead(95@)
goto_if_false @HEIST4_9822
Char.MarkAsNoLongerNeeded(95@)

:HEIST4_9822
if 
  not Char.IsDead(96@)
goto_if_false @HEIST4_9843
Char.MarkAsNoLongerNeeded(96@)

:HEIST4_9843
if 
  not Char.IsDead(97@)
goto_if_false @HEIST4_9864
Char.MarkAsNoLongerNeeded(97@)

:HEIST4_9864
if 
  Char.DoesExist(97@)
goto_if_false @HEIST4_9998
if 
  Char.HasBeenDamagedByChar(97@, $scplayer)
goto_if_false @HEIST4_9998
if 
  not Char.IsDead(70@)
goto_if_false @HEIST4_9935
72@ = 1
Char.ClearTasks(70@)
Task.KillCharOnFoot(70@, $scplayer)

:HEIST4_9935
if 
  not Char.IsDead(95@)
goto_if_false @HEIST4_9956
Char.MarkAsNoLongerNeeded(95@)

:HEIST4_9956
if 
  not Char.IsDead(96@)
goto_if_false @HEIST4_9977
Char.MarkAsNoLongerNeeded(96@)

:HEIST4_9977
if 
  not Char.IsDead(97@)
goto_if_false @HEIST4_9998
Char.MarkAsNoLongerNeeded(97@)

:HEIST4_9998
if 
  80@ == 0
goto_if_false @HEIST4_10114
if 
  Char.DoesExist(77@)
goto_if_false @HEIST4_10065
if 
  Char.HasBeenDamagedByChar(77@, $scplayer)
goto_if_false @HEIST4_10065
Player.AlterWantedLevelNoDrop($player1, 2)
gosub @HEIST4_12188

:HEIST4_10065
if 
  Char.DoesExist(76@)
goto_if_false @HEIST4_10114
if 
  Char.HasBeenDamagedByChar(76@, $scplayer)
goto_if_false @HEIST4_10114
Player.AlterWantedLevelNoDrop($player1, 2)
gosub @HEIST4_12188

:HEIST4_10114
if 
  85@ == 0
goto_if_false @HEIST4_10271
if 
  Char.DoesExist(82@)
goto_if_false @HEIST4_10271
if 
  Char.HasBeenDamagedByChar(82@, $scplayer)
goto_if_false @HEIST4_10217
Player.AlterWantedLevelNoDrop($player1, 2)
gosub @HEIST4_12262
if 
  not Char.IsDead(82@)
goto_if_false @HEIST4_10217
85@ = 1
Char.ClearTasks(82@)
Task.KillCharOnFoot(82@, $scplayer)

:HEIST4_10217
if 
  not Char.IsDead(82@)
goto_if_false @HEIST4_10271
if 
  Char.LocateAnyMeansChar2D($scplayer, 82@, 35.0, 35.0, False)
goto_if_false @HEIST4_10271
gosub @HEIST4_12262

:HEIST4_10271
if 
  106@ == 0
goto_if_false @HEIST4_10338
if 
  Char.DoesExist(82@)
goto_if_false @HEIST4_10338
if 
  Char.HasBeenDamagedByChar(82@, $scplayer)
goto_if_false @HEIST4_10338
Player.AlterWantedLevelNoDrop($player1, 2)
106@ = 1

:HEIST4_10338
if 
  107@ == 0
goto_if_false @HEIST4_10405
if 
  Char.DoesExist(70@)
goto_if_false @HEIST4_10405
if 
  Char.HasBeenDamagedByChar(70@, $scplayer)
goto_if_false @HEIST4_10405
Player.AlterWantedLevelNoDrop($player1, 2)
107@ = 1

:HEIST4_10405
if 
  108@ == 0
goto_if_false @HEIST4_10472
if 
  Char.DoesExist(63@)
goto_if_false @HEIST4_10472
if 
  Char.HasBeenDamagedByChar(63@, $scplayer)
goto_if_false @HEIST4_10472
Player.AlterWantedLevelNoDrop($player1, 2)
108@ = 1

:HEIST4_10472
if 
  109@ == 0
goto_if_false @HEIST4_10539
if 
  Char.DoesExist(76@)
goto_if_false @HEIST4_10539
if 
  Char.HasBeenDamagedByChar(76@, $scplayer)
goto_if_false @HEIST4_10539
Player.AlterWantedLevelNoDrop($player1, 2)
109@ = 1

:HEIST4_10539
if 
  110@ == 0
goto_if_false @HEIST4_10606
if 
  Char.DoesExist(77@)
goto_if_false @HEIST4_10606
if 
  Char.HasBeenDamagedByChar(77@, $scplayer)
goto_if_false @HEIST4_10606
Player.AlterWantedLevelNoDrop($player1, 2)
110@ = 1

:HEIST4_10606
if 
  88@ == 1
goto_if_false @HEIST4_10693
if 
  not Car.IsDead(86@)
goto_if_false @HEIST4_10693
if 
  not Char.LocateAnyMeansCar3D($scplayer, 86@, 200.0, 200.0, 200.0, False)
goto_if_false @HEIST4_10693
88@ = 2
Char.MarkAsNoLongerNeeded(87@)
Car.MarkAsNoLongerNeeded(86@)

:HEIST4_10693
if 
  not Char.IsDead(82@)
goto_if_false @HEIST4_10766
if 
  Char.LocateAnyMeansChar3D($scplayer, 82@, 120.0, 120.0, 120.0, False)
goto_if_false @HEIST4_10759
Char.FreezePositionAndDontLoadCollision(82@, False)
goto @HEIST4_10766

:HEIST4_10759
Char.FreezePositionAndDontLoadCollision(82@, True)

:HEIST4_10766
if 
  not Char.IsDead(70@)
goto_if_false @HEIST4_10839
if 
  Char.LocateAnyMeansChar3D($scplayer, 70@, 120.0, 120.0, 120.0, False)
goto_if_false @HEIST4_10832
Char.FreezePositionAndDontLoadCollision(70@, False)
goto @HEIST4_10839

:HEIST4_10832
Char.FreezePositionAndDontLoadCollision(70@, True)

:HEIST4_10839
if 
  73@ == 0
goto_if_false @HEIST4_11076
if 
  not Char.IsDead(95@)
goto_if_false @HEIST4_10930
if 
  Char.LocateAnyMeansChar3D($scplayer, 95@, 150.0, 150.0, 150.0, False)
goto_if_false @HEIST4_10923
Char.FreezePositionAndDontLoadCollision(95@, False)
goto @HEIST4_10930

:HEIST4_10923
Char.FreezePositionAndDontLoadCollision(95@, True)

:HEIST4_10930
if 
  not Char.IsDead(96@)
goto_if_false @HEIST4_11003
if 
  Char.LocateAnyMeansChar3D($scplayer, 96@, 150.0, 150.0, 150.0, False)
goto_if_false @HEIST4_10996
Char.FreezePositionAndDontLoadCollision(96@, False)
goto @HEIST4_11003

:HEIST4_10996
Char.FreezePositionAndDontLoadCollision(96@, True)

:HEIST4_11003
if 
  not Char.IsDead(97@)
goto_if_false @HEIST4_11076
if 
  Char.LocateAnyMeansChar3D($scplayer, 97@, 150.0, 150.0, 150.0, False)
goto_if_false @HEIST4_11069
Char.FreezePositionAndDontLoadCollision(97@, False)
goto @HEIST4_11076

:HEIST4_11069
Char.FreezePositionAndDontLoadCollision(97@, True)

:HEIST4_11076
if 
  73@ == 1
goto_if_false @HEIST4_11280
if 
  not Char.IsDead(95@)
goto_if_false @HEIST4_11156
if 
  not Char.LocateAnyMeansChar3D($scplayer, 95@, 120.0, 120.0, 150.0, False)
goto_if_false @HEIST4_11156
Char.MarkAsNoLongerNeeded(95@)
Car.MarkAsNoLongerNeeded(92@)

:HEIST4_11156
if 
  not Char.IsDead(96@)
goto_if_false @HEIST4_11218
if 
  not Char.LocateAnyMeansChar3D($scplayer, 96@, 120.0, 120.0, 150.0, False)
goto_if_false @HEIST4_11218
Char.MarkAsNoLongerNeeded(96@)
Car.MarkAsNoLongerNeeded(93@)

:HEIST4_11218
if 
  not Char.IsDead(97@)
goto_if_false @HEIST4_11280
if 
  not Char.LocateAnyMeansChar3D($scplayer, 97@, 120.0, 120.0, 150.0, False)
goto_if_false @HEIST4_11280
Char.MarkAsNoLongerNeeded(97@)
Car.MarkAsNoLongerNeeded(94@)

:HEIST4_11280
if 
  not Char.IsDead(77@)
goto_if_false @HEIST4_11353
if 
  Char.LocateAnyMeansChar3D($scplayer, 77@, 120.0, 120.0, 120.0, False)
goto_if_false @HEIST4_11346
Char.FreezePositionAndDontLoadCollision(77@, False)
goto @HEIST4_11353

:HEIST4_11346
Char.FreezePositionAndDontLoadCollision(77@, True)

:HEIST4_11353
if 
  not Char.IsDead(76@)
goto_if_false @HEIST4_11426
if 
  Char.LocateAnyMeansChar3D($scplayer, 76@, 120.0, 120.0, 120.0, False)
goto_if_false @HEIST4_11419
Char.FreezePositionAndDontLoadCollision(76@, False)
goto @HEIST4_11426

:HEIST4_11419
Char.FreezePositionAndDontLoadCollision(76@, True)

:HEIST4_11426
if 
  not Char.IsDead(63@)
goto_if_false @HEIST4_11499
if 
  Char.LocateAnyMeansChar3D($scplayer, 63@, 120.0, 120.0, 120.0, False)
goto_if_false @HEIST4_11492
Char.FreezePositionAndDontLoadCollision(63@, False)
goto @HEIST4_11499

:HEIST4_11492
Char.FreezePositionAndDontLoadCollision(63@, True)

:HEIST4_11499
if 
  not Char.IsDead(68@)
goto_if_false @HEIST4_11572
if 
  Char.LocateAnyMeansChar3D($scplayer, 68@, 120.0, 120.0, 120.0, False)
goto_if_false @HEIST4_11565
Char.FreezePositionAndDontLoadCollision(68@, False)
goto @HEIST4_11572

:HEIST4_11565
Char.FreezePositionAndDontLoadCollision(68@, True)

:HEIST4_11572
goto @HEIST4_3287

:HEIST4_11579
if 
  48@ == 0
goto_if_false @HEIST4_11745
if 
  66@ == 0
goto_if_false @HEIST4_11745
if 
  not Char.IsDead(63@)
goto_if_false @HEIST4_11690
Char.ClearTasks(63@)
65@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2785.789, 1439.454, 9.5579, MoveState.Run, 10000)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(65@)
Char.PerformSequence(63@, 65@)
Sequence.Clear(65@)

:HEIST4_11690
if 
  not Char.IsDead(68@)
goto_if_false @HEIST4_11731
Char.ClearTasks(68@)
Char.MarkAsNoLongerNeeded(68@)
Task.SmartFleeChar(68@, $scplayer, 100.0, -1)

:HEIST4_11731
66@ = 1
Player.AlterWantedLevelNoDrop($player1, 1)

:HEIST4_11745
if 
  48@ == 1
goto_if_false @HEIST4_11885
if 
  72@ == 0
goto_if_false @HEIST4_11885
if 
  not Char.IsDead(70@)
goto_if_false @HEIST4_11856
Char.ClearTasks(70@)
71@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2646.582, 2348.17, 9.6797, MoveState.Run, 10000)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(71@)
Char.PerformSequence(70@, 71@)
Sequence.Clear(71@)

:HEIST4_11856
72@ = 1
Player.AlterWantedLevelNoDrop($player1, 1)
Car.MarkAsNoLongerNeeded(92@)
Car.MarkAsNoLongerNeeded(93@)
Car.MarkAsNoLongerNeeded(94@)

:HEIST4_11885
if 
  48@ == 2
goto_if_false @HEIST4_12061
if 
  80@ == 0
goto_if_false @HEIST4_12061
if 
  not Char.IsDead(77@)
goto_if_false @HEIST4_11972
Char.ClearTasks(77@)
79@ = Sequence.Open()
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(79@)
Char.PerformSequence(77@, 79@)
Sequence.Clear(79@)

:HEIST4_11972
if 
  not Char.IsDead(76@)
goto_if_false @HEIST4_12047
Char.ClearTasks(76@)
78@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2311.004, 2436.764, 9.8203, MoveState.Run, 10000)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(78@)
Char.PerformSequence(76@, 78@)
Sequence.Clear(78@)

:HEIST4_12047
80@ = 1
Player.AlterWantedLevelNoDrop($player1, 1)

:HEIST4_12061
if 
  48@ == 3
goto_if_false @HEIST4_12186
if 
  85@ == 0
goto_if_false @HEIST4_12186
if 
  not Char.IsDead(82@)
goto_if_false @HEIST4_12172
Char.ClearTasks(82@)
83@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1593.289, 1836.808, 9.8281, MoveState.Run, 10000)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(83@)
Char.PerformSequence(82@, 83@)
Sequence.Clear(83@)

:HEIST4_12172
85@ = 1
Player.AlterWantedLevelNoDrop($player1, 1)

:HEIST4_12186
return 

:HEIST4_12188
if 
  not Char.IsDead(77@)
goto_if_false @HEIST4_12217
Char.ClearTasks(77@)
Task.KillCharOnFoot(77@, $scplayer)

:HEIST4_12217
if 
  not Char.IsDead(76@)
goto_if_false @HEIST4_12246
Char.ClearTasks(76@)
Task.KillCharOnFoot(76@, $scplayer)

:HEIST4_12246
Player.AlterWantedLevelNoDrop($player1, 1)
80@ = 1
return 

:HEIST4_12262
if 
  88@ == 0
goto_if_false @HEIST4_12488
if 
  not Char.IsDead(87@)
goto_if_false @HEIST4_12357
if 
  not Car.IsDead(86@)
goto_if_false @HEIST4_12357
Car.SetCruiseSpeed(86@, 100.0)
Car.CloseAllDoors(86@)
Heli.GotoCoords(86@, -2303.627, 2105.29, 200.0, 200.0, 200.0)

:HEIST4_12357
if 
  not Car.IsDead(282@)
goto_if_false @HEIST4_12481
if 
  not Char.IsDead(82@)
goto_if_false @HEIST4_12481
Char.ClearTasks(82@)
84@ = Sequence.Open()
Task.EnterCarAsDriver(-1, 282@, 6000)
Task.CarDriveToCoord(-1, 282@, 1570.712, 1834.135, 9.6969, 15.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveWander(-1, 282@, 15.0, DrivingMode.AvoidCars)
Sequence.Close(84@)
Char.PerformSequence(82@, 84@)
Sequence.Clear(84@)
Char.SetCanBeKnockedOffBike(82@, 3)

:HEIST4_12481
88@ = 1

:HEIST4_12488
return 

:HEIST4_12490
if 
  67@ == 0
goto_if_false @HEIST4_12634
if 
  not Char.IsDead(63@)
goto_if_false @HEIST4_12627
if 
  not Char.IsDead(68@)
goto_if_false @HEIST4_12627
Char.ClearTasks(68@)
69@ = Sequence.Open()
Sequence.SetToRepeat(69@, True)
Task.GoStraightToCoord(-1, 2762.117, 1432.399, 9.5325, MoveState.Walk, 30000)
Task.FallAndGetUp(-1, False, 3000)
Task.GoStraightToCoord(-1, 2767.537, 1424.877, 9.2195, MoveState.Walk, 30000)
Sequence.Close(69@)
Char.PerformSequence(68@, 69@)

:HEIST4_12627
67@ = 1

:HEIST4_12634
return 

:HEIST4_12636
if 
  73@ == 0
goto_if_false @HEIST4_13139
if 
  203@ == 2
goto_if_false @HEIST4_12676
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:HEIST4_12676
if 
  not Car.IsDead(92@)
goto_if_false @HEIST4_12783
if 
  not Char.IsDead(95@)
goto_if_false @HEIST4_12783
Char.ClearTasks(95@)
98@ = Sequence.Open()
Task.CarDriveToCoord(-1, 92@, 2648.744, 2293.42, 9.6875, 25.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveWander(-1, 92@, 25.0, DrivingMode.AvoidCars)
Sequence.Close(98@)
Char.PerformSequence(95@, 98@)
Sequence.Clear(98@)

:HEIST4_12783
if 
  not Car.IsDead(93@)
goto_if_false @HEIST4_12890
if 
  not Char.IsDead(96@)
goto_if_false @HEIST4_12890
Char.ClearTasks(96@)
99@ = Sequence.Open()
Task.CarDriveToCoord(-1, 93@, 2650.566, 2290.315, 9.6875, 26.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveWander(-1, 93@, 25.0, DrivingMode.AvoidCars)
Sequence.Close(99@)
Char.PerformSequence(96@, 99@)
Sequence.Clear(99@)

:HEIST4_12890
if 
  not Car.IsDead(94@)
goto_if_false @HEIST4_12997
if 
  not Char.IsDead(97@)
goto_if_false @HEIST4_12997
Char.ClearTasks(97@)
100@ = Sequence.Open()
Task.CarDriveToCoord(-1, 94@, 2651.681, 2294.87, 9.6875, 25.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveWander(-1, 94@, 25.0, DrivingMode.AvoidCars)
Sequence.Close(100@)
Char.PerformSequence(97@, 100@)
Sequence.Clear(100@)

:HEIST4_12997
if 
  not Car.IsDead(280@)
goto_if_false @HEIST4_13132
if 
  not Char.IsDead(70@)
goto_if_false @HEIST4_13121
Char.ClearTasks(70@)
71@ = Sequence.Open()
Task.EnterCarAsDriver(-1, 280@, 10000)
Task.CarDriveToCoord(-1, 280@, 2647.941, 2293.222, 9.6875, 21.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
Task.CarDriveWander(-1, 280@, 17.0, DrivingMode.AvoidCars)
Sequence.Close(71@)
Char.PerformSequence(70@, 71@)
Sequence.Clear(71@)
Char.SetCanBeKnockedOffBike(70@, 3)

:HEIST4_13121
Car.SwitchSiren(280@, True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:HEIST4_13132
73@ = 1

:HEIST4_13139
return 

:HEIST4_13141
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:HEIST4_13159
$flag_heist_mission_counter += 1
Text.PrintWithNumberBig('M_PASSR', 20, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(20)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.RegisterMissionPassed('HEIST_4')
Stat.PlayerMadeProgress(1)
return 

:HEIST4_13214
Player.SetControl($player1, True)
Player.SetGroupRecruitment($player1, True)
Group.SetFollowStatus(34@, True)
Player.SetGroupToFollowNever($player1, False)
World.SetCarDensityMultiplier(1.0)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Weather.Release
Game.SwitchCopsOnBikes(True)
Blip.Remove(35@)
Blip.Remove(283@)
Blip.Remove(284@)
Blip.Remove(285@)
Blip.Remove(286@)
Streaming.MarkModelAsNoLongerNeeded(443)
Streaming.MarkModelAsNoLongerNeeded(523)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(284)
Streaming.MarkModelAsNoLongerNeeded(598)
Streaming.MarkModelAsNoLongerNeeded(497)
Streaming.MarkModelAsNoLongerNeeded(463)
Streaming.MarkModelAsNoLongerNeeded(33)
Streaming.MarkModelAsNoLongerNeeded(34)
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(32)
Streaming.RemoveAnimation("SMOKING")
Streaming.RemoveAnimation("MISC")
Hud.ClearTimer($7926)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 100---------------
// Originally: Up, Up and Away!

:HEIST5
script_name 'HEIST5'
gosub @HEIST5_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST5_38
gosub @HEIST5_13715

:HEIST5_38
gosub @HEIST5_13818
terminate_this_script 

:HEIST5_47
Stat.RegisterMissionGiven
$onmission = 1
39@ = 406.989
40@ = 2516.901
41@ = 15.4918
36@ = 0
104@ = 0
100@ = 0
99@ = 0
89@ = 0
101@ = 0
102@ = 0
103@ = 0
62@ = 0
64@ = 0
66@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 0
53@ = 0
54@ = 0
55@ = 0
68@ = 0
70@ = 0
72@ = 0
74@ = 0
76@ = 0
78@ = 0
80@ = 0
98@ = 0
82@ = 0
84@ = 0
86@ = 0
88@ = 0
112@ = 0
113@ = 0
133@ = 0.0
134@ = 0.0
135@ = 0.0
136@ = 0.0
137@ = 0.0
138@ = 0.0
111@ = 0
125@ = 0
$hst4_deliverytimer = 1000
124@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
139@ = 0
$bankvan1_health_heist5 = 0.0
108@ = 0.0
140@ = 0
141@ = 0
142@ = 0
90@ = 0
143@ = 0
145@ = 365.356
146@ = 2538.113
147@ = 15.712
$gate_drive_car_heist5 = 0
150@ = 0
151@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
159@ = 0
160@ = 0.0
161@ = 0.0
162@ = 0.0
163@ = 0
164@ = 0
Text.LoadMissionText('HEIST5')
wait 0
World.ClearArea(2030.108, 1007.929, 9.852, 1.0, False)
Char.SetCoordinates($scplayer, 2030.108, 1007.929, 9.852)
Char.SetHeading($scplayer, 270.0)
$iTerminateAllAmbience = 1
Streaming.SetAreaVisible(10)
Cutscene.Load('HEIST6A')

:HEIST5_710
if 
  not Cutscene.HasLoaded
goto_if_false @HEIST5_734
wait 0
goto @HEIST5_710

:HEIST5_734
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:HEIST5_743
if 
  not Cutscene.HasFinished
goto_if_false @HEIST5_767
wait 0
goto @HEIST5_743

:HEIST5_767
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:HEIST5_780
if 
  Camera.GetFadingStatus
goto_if_false @HEIST5_804
wait 0
goto @HEIST5_780

:HEIST5_804
Cutscene.Clear
Streaming.SetAreaVisible(0)
$iTerminateAllAmbience = 0
CarGenerator.Switch($d5_bronze_generator, 0)
CarGenerator.Switch($d5_silver_generator, 0)
CarGenerator.Switch($d5_gold_generator, 0)
Game.SwitchAmbientPlanes(False)
Game.SwitchPoliceHelis(False)
155@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Grenade)
if 
  5 > 155@
goto_if_false @HEIST5_899
156@ = Pickup.Create(342, PickupType.Once, 2550.967, 2824.343, 10.6)

:HEIST5_899
157@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2557.337, 2817.809, 10.82)
158@ = Pickup.Create(#HEALTH, PickupType.Once, 2573.734, 2814.91, 10.82)
Char.SetHasUsedEntryExit($scplayer, 2016.422, 1017.102, 10.0)
Streaming.LoadScene(2030.108, 1007.929, 9.852)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
59@ = Sequence.Open()
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(59@)
60@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(60@)
91@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 2604.0, 2837.0, 9.86, 6, 10000)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(91@)
92@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 2608.0, 2827.0, 9.86, 6, 10000)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(92@)
93@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 2585.0, 2815.0, 18.999, 6, 10000)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(93@)
94@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 2593.0, 2835.0, 18.999, 6, 10000)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(94@)
95@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 2585.0, 2809.0, 18.999, 6, 10000)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(95@)
96@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 2575.0, 2833.0, 18.999, 6, 10000)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(96@)
57@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
DecisionMakerChar.AddEventResponse(57@, 49, 311, 0.0, 100.0, 100.0, 100.0, False, True)
58@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
56@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Streaming.RequestModel(417)
Streaming.RequestModel(287)
Streaming.RequestModel(356)
Streaming.RequestModel(359)
Streaming.RequestModel(425)
Streaming.RequestModel(#MINIGUN_BASE)
Streaming.RequestModel(362)
Streaming.RequestModel(428)
Streaming.RequestModel(470)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 29400)
Streaming.LoadAllModelsNow

:HEIST5_1420
if or
  not Streaming.HasModelLoaded(417)
  not Streaming.HasModelLoaded(287)
  not Streaming.HasModelLoaded(356)
  not Streaming.HasModelLoaded(359)
  not Streaming.HasModelLoaded(470)
goto_if_false @HEIST5_1467
wait 0
goto @HEIST5_1420

:HEIST5_1467
if or
  not Streaming.HasModelLoaded(425)
  not Streaming.HasModelLoaded(#MINIGUN_BASE)
  not Streaming.HasModelLoaded(362)
  not Streaming.HasModelLoaded(428)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST5_1513
wait 0
goto @HEIST5_1467

:HEIST5_1513
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1500, Fade.In)

:HEIST5_1528
if 
  Camera.GetFadingStatus
goto_if_false @HEIST5_1552
wait 0
goto @HEIST5_1528

:HEIST5_1552
Player.SetControl($player1, True)
Text.PrintNow('HM5_1', 5000, 1)
38@ = Blip.AddForCoord(2616.408, 2721.367, 35.563)
Blip.SetAsFriendly(38@, True)
109@ = Object.Create(#MINIGUN_BASE, 2595.549, 2758.04, 22.832)
Object.SetHeading(109@, 180.0)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 17200)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 17203)

:HEIST5_1649
if or
  not Char.LocateAnyMeans3D($scplayer, 2502.702, 2778.55, 9.868, 200.0, 200.0, 400.0, False)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @HEIST5_1738
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @HEIST5_1731
goto @HEIST5_13733

:HEIST5_1731
goto @HEIST5_1649

:HEIST5_1738
34@ = Car.Create(417, 2614.603, 2720.745, 35.563)
Car.SetHeading(34@, 90.0)
Heli.AttachWinch(34@, True)
Car.LockDoors(34@, CarLock.Locked)
Car.SetProofs(34@, True, True, True, True, False)
Car.FreezePosition(34@, True)
104@ = 1
97@ = Char.Create(PedType.Mission1, 287, 2502.702, 2778.55, 9.868)
Char.GiveWeapon(97@, WeaponType.M4, 30000)
Char.SetHeading(97@, 90.0)
Char.SetAccuracy(97@, 70)
Char.SetShootRate(97@, 40)
Char.SetDecisionMaker(97@, 56@)
67@ = Char.Create(PedType.Mission1, 287, 2615.0, 2835.0, 9.86)
Char.GiveWeapon(67@, WeaponType.M4, 30000)
Char.SetHeading(67@, 105.0)
Char.SetDecisionMaker(67@, 57@)
Char.ClearAllRelationships(67@, RelationshipType.Hate)
Char.SetRelationship(67@, RelationshipType.Hate, PedType.Player1)
Char.SetAccuracy(67@, 70)
Char.SetShootRate(67@, 40)
69@ = Char.Create(PedType.Mission1, 287, 2615.0, 2817.0, 9.86)
Char.GiveWeapon(69@, WeaponType.M4, 30000)
Char.SetHeading(69@, 105.0)
Char.SetDecisionMaker(69@, 57@)
Char.ClearAllRelationships(69@, RelationshipType.Hate)
Char.SetRelationship(69@, RelationshipType.Hate, PedType.Player1)
Char.SetAccuracy(69@, 70)
Char.SetShootRate(69@, 40)
71@ = Char.Create(PedType.Mission1, 287, 2585.927, 2837.06, 9.82)
Char.GiveWeapon(71@, WeaponType.M4, 30000)
Char.SetHeading(71@, 127.0)
Char.SetDecisionMaker(71@, 57@)
Char.ClearAllRelationships(71@, RelationshipType.Hate)
Char.SetRelationship(71@, RelationshipType.Hate, PedType.Player1)
Char.SetAccuracy(71@, 70)
Char.SetShootRate(71@, 50)
Task.PlayAnim(71@, "WEAPON_CROUCH", "PED", 4.0, True, False, False, False, -1)
73@ = Char.Create(PedType.Mission1, 287, 2568.0, 2821.0, 9.86)
Char.GiveWeapon(73@, WeaponType.M4, 30000)
Char.SetHeading(73@, 80.0)
Char.SetDecisionMaker(73@, 57@)
Char.ClearAllRelationships(73@, RelationshipType.Hate)
Char.SetRelationship(73@, RelationshipType.Hate, PedType.Player1)
Char.SetAccuracy(73@, 70)
Char.SetShootRate(73@, 40)
75@ = Char.Create(PedType.Mission1, 287, 2562.0, 2818.0, 9.86)
Char.GiveWeapon(75@, WeaponType.M4, 30000)
Char.SetHeading(75@, 96.0)
Char.SetDecisionMaker(75@, 57@)
Char.ClearAllRelationships(75@, RelationshipType.Hate)
Char.SetRelationship(75@, RelationshipType.Hate, PedType.Player1)
Char.SetAccuracy(75@, 70)
Char.SetShootRate(75@, 45)
Task.PlayAnim(75@, "WEAPON_CROUCH", "PED", 4.0, True, False, False, False, -1)
77@ = Char.Create(PedType.Mission1, 287, 2571.933, 2831.912, 9.82)
Char.GiveWeapon(77@, WeaponType.M4, 30000)
Char.SetHeading(77@, 70.0)
Char.SetDecisionMaker(77@, 57@)
Char.ClearAllRelationships(77@, RelationshipType.Hate)
Char.SetRelationship(77@, RelationshipType.Hate, PedType.Player1)
Char.SetAccuracy(77@, 70)
Char.SetShootRate(77@, 40)
Task.PlayAnim(77@, "WEAPON_CROUCH", "PED", 4.0, True, False, False, False, -1)
79@ = Char.Create(PedType.Mission1, 287, 2595.0, 2840.0, 9.86)
Char.GiveWeapon(79@, WeaponType.M4, 30000)
Char.SetHeading(79@, 96.0)
Char.SetDecisionMaker(79@, 57@)
Char.ClearAllRelationships(79@, RelationshipType.Hate)
Char.SetRelationship(79@, RelationshipType.Hate, PedType.Player1)
Char.SetAccuracy(79@, 70)
Char.SetShootRate(79@, 50)
81@ = Char.Create(PedType.Mission1, 287, 2613.0, 2806.0, 18.999)
Char.GiveWeapon(81@, WeaponType.M4, 30000)
Char.SetHeading(81@, 96.0)
Char.SetHealth(81@, 100)
Char.SetDecisionMaker(81@, 58@)
Char.ClearAllRelationships(81@, RelationshipType.Hate)
Char.SetRelationship(81@, RelationshipType.Hate, PedType.Player1)
Char.SetAccuracy(81@, 70)
Char.SetShootRate(81@, 45)
83@ = Char.Create(PedType.Mission1, 287, 2614.0, 2848.0, 18.999)
Char.GiveWeapon(83@, WeaponType.M4, 30000)
Char.SetHeading(83@, 96.0)
Char.SetHealth(83@, 100)
Char.SetDecisionMaker(83@, 58@)
Char.ClearAllRelationships(83@, RelationshipType.Hate)
Char.SetRelationship(83@, RelationshipType.Hate, PedType.Player1)
Char.SetAccuracy(83@, 70)
Char.SetShootRate(83@, 40)
85@ = Char.Create(PedType.Mission1, 287, 2545.0, 2806.0, 18.999)
Char.GiveWeapon(85@, WeaponType.M4, 30000)
Char.SetHeading(85@, 274.0)
Char.SetHealth(85@, 100)
Char.SetDecisionMaker(85@, 58@)
Char.ClearAllRelationships(85@, RelationshipType.Hate)
Char.SetRelationship(85@, RelationshipType.Hate, PedType.Player1)
Char.SetAccuracy(85@, 70)
Char.SetShootRate(85@, 45)
87@ = Char.Create(PedType.Mission1, 287, 2563.0, 2848.0, 18.999)
Char.GiveWeapon(87@, WeaponType.M4, 30000)
Char.SetHeading(87@, 274.0)
Char.SetHealth(87@, 100)
Char.SetDecisionMaker(87@, 58@)
Char.ClearAllRelationships(87@, RelationshipType.Hate)
Char.SetRelationship(87@, RelationshipType.Hate, PedType.Player1)
Char.SetAccuracy(87@, 70)
Char.SetShootRate(87@, 40)
42@ = Char.Create(PedType.Mission1, 287, 2621.0, 2804.0, 9.86)
Char.SetDecisionMaker(42@, 58@)
Char.GiveWeapon(42@, WeaponType.M4, 30000)
Char.SetAccuracy(42@, 70)
Char.SetShootRate(42@, 50)
Path.FlushRoute
Path.ExtendRoute(2629.0, 2795.0, 9.86)
Path.ExtendRoute(2642.0, 2788.0, 9.86)
Path.ExtendRoute(2659.0, 2786.0, 9.86)
Path.ExtendRoute(2621.0, 2804.0, 9.86)
Task.FollowPointRoute(42@, 4, RouteMode.Loop)
43@ = Char.Create(PedType.Mission1, 287, 2649.0, 2768.0, 18.375)
Char.SetDecisionMaker(43@, 58@)
Char.GiveWeapon(43@, WeaponType.M4, 30000)
Char.SetStayInSamePlace(43@, True)
Char.SetHeading(43@, 330.0)
Char.SetAccuracy(43@, 70)
Char.SetShootRate(43@, 40)
Task.PlayAnim(43@, "WEAPON_CROUCH", "PED", 4.0, True, False, False, False, -1)
44@ = Char.Create(PedType.Mission1, 287, 2626.37, 2800.007, 9.82)
Char.SetDecisionMaker(44@, 58@)
Char.SetHeading(44@, 14.7)
Char.GiveWeapon(44@, WeaponType.M4, 30000)
Char.SetAccuracy(44@, 70)
Char.SetShootRate(44@, 45)
Task.ToggleDuck(44@, True)
Char.SetStayInSamePlace(44@, True)
61@ = Char.Create(PedType.Mission1, 287, 2504.0, 2763.0, 9.86)
Char.GiveWeapon(61@, WeaponType.M4, 30000)
Char.SetHeading(61@, 364.0)
Char.SetDecisionMaker(61@, 58@)
Char.SetAccuracy(61@, 70)
Char.SetShootRate(61@, 45)
Path.FlushRoute
Path.ExtendRoute(2504.0, 2753.0, 9.86)
Path.ExtendRoute(2504.0, 2737.0, 9.86)
Path.ExtendRoute(2505.0, 2711.0, 9.86)
Path.ExtendRoute(2504.0, 2737.0, 9.86)
Path.ExtendRoute(2504.0, 2753.0, 9.86)
Path.ExtendRoute(2504.0, 2763.0, 9.86)
Task.FollowPointRoute(61@, 4, RouteMode.Loop)
63@ = Char.Create(PedType.Mission1, 287, 2509.0, 2791.0, 9.86)
Char.GiveWeapon(63@, WeaponType.M4, 30000)
Char.SetHeading(63@, 90.0)
Char.SetDecisionMaker(63@, 58@)
Char.SetAccuracy(63@, 70)
Char.SetShootRate(63@, 40)
Path.FlushRoute
Path.ExtendRoute(2511.0, 2809.0, 9.86)
Path.ExtendRoute(2511.0, 2833.0, 9.86)
Path.ExtendRoute(2511.0, 2844.0, 9.86)
Path.ExtendRoute(2527.0, 2844.0, 9.86)
Path.ExtendRoute(2511.0, 2844.0, 9.86)
Path.ExtendRoute(2511.0, 2833.0, 9.86)
Path.ExtendRoute(2511.0, 2809.0, 9.86)
Path.ExtendRoute(2509.0, 2791.0, 9.86)
Task.FollowPointRoute(63@, 4, RouteMode.Loop)
65@ = Char.Create(PedType.Mission1, 287, 2583.0, 2801.0, 9.86)
Char.GiveWeapon(65@, WeaponType.M4, 30000)
Char.SetHeading(65@, 184.0)
Char.SetDecisionMaker(65@, 58@)
Char.SetAccuracy(65@, 70)
Char.SetShootRate(65@, 50)
Path.FlushRoute
Path.ExtendRoute(2568.0, 2801.0, 9.86)
Path.ExtendRoute(2551.0, 2801.0, 9.86)
Path.ExtendRoute(2538.0, 2801.0, 9.845)
Path.ExtendRoute(2551.0, 2801.0, 9.845)
Path.ExtendRoute(2568.0, 2801.0, 9.855)
Path.ExtendRoute(2583.0, 2801.0, 9.845)
Task.FollowPointRoute(65@, 4, RouteMode.Loop)
45@ = Char.Create(PedType.Mission1, 287, 2606.119, 2733.683, 35.563)
Char.SetDecisionMaker(45@, 58@)
Char.GiveWeapon(45@, WeaponType.M4, 30000)
Char.SetStayInSamePlace(45@, True)
Char.SetAccuracy(45@, 70)
Char.SetShootRate(45@, 50)
46@ = Char.Create(PedType.Mission1, 287, 2628.508, 2733.41, 35.564)
Char.SetDecisionMaker(46@, 58@)
Char.GiveWeapon(46@, WeaponType.M4, 30000)
Char.SetStayInSamePlace(46@, True)
Char.SetAccuracy(46@, 70)
Char.SetShootRate(46@, 40)
47@ = Char.Create(PedType.Mission1, 287, 2595.279, 2755.393, 22.822)
Char.SetHeading(47@, 80.0)
Char.SetDecisionMaker(47@, 58@)
Char.GiveWeapon(47@, WeaponType.M4, 30000)
Char.SetStayInSamePlace(47@, True)
Char.SetAccuracy(47@, 70)
Char.SetShootRate(47@, 45)
48@ = Char.Create(PedType.Mission1, 287, 2658.506, 2784.133, 14.93)
Char.SetHeading(48@, 54.818)
Char.SetDecisionMaker(48@, 58@)
Char.GiveWeapon(48@, WeaponType.M4, 30000)
Char.SetStayInSamePlace(48@, True)
Char.SetAccuracy(48@, 70)
Char.SetShootRate(48@, 50)
$driver_gate_car_heist5 = Car.Create(470, 2520.737, 2769.963, 9.816)
Car.SetHeading($driver_gate_car_heist5, 0.563)
$bankvan1_upright_value_heist5 = Char.CreateInsideCar($driver_gate_car_heist5, PedType.Mission1, 287)
Char.SetDecisionMaker($bankvan1_upright_value_heist5, 56@)
Char.GiveWeapon($bankvan1_upright_value_heist5, WeaponType.M4, 30000)
Char.SetAccuracy($bankvan1_upright_value_heist5, 70)
Char.SetShootRate($bankvan1_upright_value_heist5, 40)
Car.SetIdle($driver_gate_car_heist5)

:HEIST5_4206
if 
  112@ <> 2
goto_if_false @HEIST5_7623
wait 0
if 
  100@ >= 1
goto_if_false @HEIST5_4345
if 
  159@ == 0
goto_if_false @HEIST5_4294
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot3, 2502.943, 2778.928, 10.82)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
159@ = 1

:HEIST5_4294
if 
  103@ == 1
goto_if_false @HEIST5_4345
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @HEIST5_4345
Text.ClearThisPrint('HE5_BD')
103@ = 2

:HEIST5_4345
if 
  154@ == 0
goto_if_false @HEIST5_5814
if 
  $gate_drive_car_heist5 == 0
goto_if_false @HEIST5_4682
if or
  Char.LocateAnyMeans3D($scplayer, 2502.702, 2778.55, 9.868, 80.0, 80.0, 80.0, False)
  99@ == 1
  100@ == 1
goto_if_false @HEIST5_4682
if 
  not Car.IsDead($driver_gate_car_heist5)
goto_if_false @HEIST5_4682
if 
  not Char.IsDead($bankvan1_upright_value_heist5)
goto_if_false @HEIST5_4682
if 
  Char.IsInCar($bankvan1_upright_value_heist5, $driver_gate_car_heist5)
goto_if_false @HEIST5_4642
if 
  100@ >= 1
goto_if_false @HEIST5_4552
if 
  154@ == 0
goto_if_false @HEIST5_4552
Task.KillCharOnFoot($bankvan1_upright_value_heist5, $scplayer)
$gate_stay_open = 0
154@ = 1

:HEIST5_4552
if 
  154@ == 0
goto_if_false @HEIST5_4635
Task.CarDriveToCoord($bankvan1_upright_value_heist5, $driver_gate_car_heist5, 2506.34, 2772.69, 9.8203, 10.0, DriveMode.Accurate, 0, DrivingMode.PloughThrough)
World.ClearArea(2501.494, 2775.199, 9.8203, 3.0, False)
$gate_drive_car_heist5 = 1

:HEIST5_4635
goto @HEIST5_4682

:HEIST5_4642
if 
  154@ == 0
goto_if_false @HEIST5_4682
Task.KillCharOnFoot($bankvan1_upright_value_heist5, $scplayer)
$gate_stay_open = 0
154@ = 1

:HEIST5_4682
if 
  $gate_drive_car_heist5 == 1
goto_if_false @HEIST5_4943
if 
  not Car.IsDead($driver_gate_car_heist5)
goto_if_false @HEIST5_4943
if 
  not Char.IsDead($bankvan1_upright_value_heist5)
goto_if_false @HEIST5_4943
if 
  Char.IsInCar($bankvan1_upright_value_heist5, $driver_gate_car_heist5)
goto_if_false @HEIST5_4903
if 
  100@ >= 1
goto_if_false @HEIST5_4809
if 
  154@ == 0
goto_if_false @HEIST5_4809
Task.KillCharOnFoot($bankvan1_upright_value_heist5, $scplayer)
$gate_stay_open = 0
154@ = 1

:HEIST5_4809
if 
  154@ == 0
goto_if_false @HEIST5_4896
if 
  Car.Locate3D($driver_gate_car_heist5, 2506.34, 2772.69, 9.8203, 2.0, 2.0, 2.0, False)
goto_if_false @HEIST5_4896
$open_gate_now_flag = 1
$gate_stay_open = 1
$gate_drive_car_heist5 = 2

:HEIST5_4896
goto @HEIST5_4943

:HEIST5_4903
if 
  154@ == 0
goto_if_false @HEIST5_4943
Task.KillCharOnFoot($bankvan1_upright_value_heist5, $scplayer)
$gate_stay_open = 0
154@ = 1

:HEIST5_4943
if 
  $gate_drive_car_heist5 == 2
goto_if_false @HEIST5_5342
if 
  not Car.IsDead($driver_gate_car_heist5)
goto_if_false @HEIST5_5311
if 
  not Car.IsInArea3D($driver_gate_car_heist5, 2497.387, 2858.018, 8.0, 2676.413, 2683.661, 60.0, False)
goto_if_false @HEIST5_5056
World.ClearArea(2497.289, 2772.606, 9.8262, 5.0, False)
$gate_stay_open = 0

:HEIST5_5056
if 
  not Char.IsDead($bankvan1_upright_value_heist5)
goto_if_false @HEIST5_5304
if 
  Char.IsInCar($bankvan1_upright_value_heist5, $driver_gate_car_heist5)
goto_if_false @HEIST5_5264
if 
  $open_gate_now_flag == 3
goto_if_false @HEIST5_5199
if 
  154@ == 0
goto_if_false @HEIST5_5192
Task.CarDriveToCoord($bankvan1_upright_value_heist5, $driver_gate_car_heist5, 2472.188, 2775.916, 9.7097, 20.0, DriveMode.Accurate, 0, DrivingMode.AvoidCars)
World.ClearArea(2472.188, 2775.916, 9.7097, 3.0, False)
$gate_drive_car_heist5 = 3

:HEIST5_5192
goto @HEIST5_5257

:HEIST5_5199
if 
  100@ >= 1
goto_if_false @HEIST5_5257
if 
  154@ == 0
goto_if_false @HEIST5_5257
Task.KillCharOnFoot($bankvan1_upright_value_heist5, $scplayer)
$gate_stay_open = 0
154@ = 1

:HEIST5_5257
goto @HEIST5_5304

:HEIST5_5264
if 
  154@ == 0
goto_if_false @HEIST5_5304
Task.KillCharOnFoot($bankvan1_upright_value_heist5, $scplayer)
$gate_stay_open = 0
154@ = 1

:HEIST5_5304
goto @HEIST5_5342

:HEIST5_5311
World.ClearArea(2497.289, 2772.606, 9.8262, 5.0, False)
$gate_stay_open = 0

:HEIST5_5342
if 
  $gate_drive_car_heist5 == 3
goto_if_false @HEIST5_5645
if 
  not Car.IsDead($driver_gate_car_heist5)
goto_if_false @HEIST5_5614
if 
  not Car.IsInArea3D($driver_gate_car_heist5, 2497.387, 2858.018, 8.0, 2676.413, 2683.661, 60.0, False)
goto_if_false @HEIST5_5455
World.ClearArea(2497.289, 2772.606, 9.8262, 5.0, False)
$gate_stay_open = 0

:HEIST5_5455
if 
  not Char.IsDead($bankvan1_upright_value_heist5)
goto_if_false @HEIST5_5607
if 
  Char.IsInCar($bankvan1_upright_value_heist5, $driver_gate_car_heist5)
goto_if_false @HEIST5_5567
if 
  Car.Locate3D($driver_gate_car_heist5, 2472.188, 2775.916, 9.7097, 2.0, 2.0, 2.0, False)
goto_if_false @HEIST5_5560
Task.CarDriveWander($bankvan1_upright_value_heist5, $driver_gate_car_heist5, 30.0, DrivingMode.AvoidCars)
$gate_drive_car_heist5 = 4

:HEIST5_5560
goto @HEIST5_5607

:HEIST5_5567
if 
  154@ == 0
goto_if_false @HEIST5_5607
Task.KillCharOnFoot($bankvan1_upright_value_heist5, $scplayer)
$gate_stay_open = 0
154@ = 1

:HEIST5_5607
goto @HEIST5_5645

:HEIST5_5614
World.ClearArea(2497.289, 2772.606, 9.8262, 5.0, False)
$gate_stay_open = 0

:HEIST5_5645
if 
  $gate_stay_open == 1
goto_if_false @HEIST5_5814
if 
  4 >= $gate_drive_car_heist5
goto_if_false @HEIST5_5814
if 
  not Car.IsDead($driver_gate_car_heist5)
goto_if_false @HEIST5_5783
if 
  not Car.IsInArea3D($driver_gate_car_heist5, 2497.387, 2858.018, 8.0, 2676.413, 2683.661, 60.0, False)
goto_if_false @HEIST5_5776
World.ClearArea(2497.289, 2772.606, 9.8262, 5.0, False)
$gate_stay_open = 0

:HEIST5_5776
goto @HEIST5_5814

:HEIST5_5783
World.ClearArea(2497.289, 2772.606, 9.8262, 5.0, False)
$gate_stay_open = 0

:HEIST5_5814
if 
  99@ == 0
goto_if_false @HEIST5_5975
if 
  Char.IsInArea3D($scplayer, 2497.387, 2858.018, 8.0, 2676.413, 2683.661, 100.0, False)
goto_if_false @HEIST5_5975
Blip.Remove(38@)
if 
  not Car.IsDead(34@)
goto_if_false @HEIST5_5923
35@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(35@, True)
goto @HEIST5_5956

:HEIST5_5923
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715

:HEIST5_5956
Player.ClearWantedLevel($player1)
Game.SetWantedMultiplier(0.0)
99@ = 1

:HEIST5_5975
gosub @HEIST5_19769
gosub @HEIST5_16765
if 
  99@ == 1
goto_if_false @HEIST5_6078
gosub @HEIST5_15414
gosub @HEIST5_14160
if 
  100@ == 1
goto_if_false @HEIST5_6078
if 
  89@ == 0
goto_if_false @HEIST5_6071
gosub @HEIST5_14489
goto @HEIST5_6078

:HEIST5_6071
gosub @HEIST5_14887

:HEIST5_6078
if 
  Car.IsDead(34@)
goto_if_false @HEIST5_6117
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715

:HEIST5_6117
if 
  Char.IsInAreaOnFoot3D($scplayer, 2656.523, 2782.107, 17.0, 2594.178, 2695.773, 60.0, False)
goto_if_false @HEIST5_6197
if 
  113@ == 0
goto_if_false @HEIST5_6197
gosub @HEIST5_20269
113@ = 1

:HEIST5_6197
if 
  113@ == 1
goto_if_false @HEIST5_6270
if 
  Char.IsInAreaOnFoot3D($scplayer, 2646.055, 2782.106, 21.0, 2594.268, 2724.261, 60.0, False)
goto_if_false @HEIST5_6270
113@ = 2

:HEIST5_6270
if 
  113@ == 2
goto_if_false @HEIST5_7135
if 
  111@ == 0
goto_if_false @HEIST5_6578
114@ = Car.Create(425, 2253.509, 2806.941, 15.0)
115@ = Blip.AddForCar(114@)
Car.SetHealth(114@, 4000)
117@ = Char.CreateInsideCar(114@, PedType.Mission1, 287)
Car.SetForwardSpeed(114@, 20.0)
Car.SelectWeapons(114@, 1)
Heli.AttackPlayer(114@, $player1, 50.0)
StuckCarCheck.Add(114@, 2.0, 5000)
118@ = Car.Create(425, 2306.756, 2806.941, 15.0)
119@ = Blip.AddForCar(118@)
Car.SetHealth(118@, 4000)
121@ = Char.CreateInsideCar(118@, PedType.Mission1, 287)
Car.SetForwardSpeed(118@, 20.0)
Car.SelectWeapons(118@, 1)
Heli.AttackPlayer(118@, $player1, 50.0)
StuckCarCheck.Add(118@, 2.0, 5000)
Text.PrintNow('HM5_6', 12000, 1)
110@ = Blip.AddForCoord(2595.549, 2758.04, 22.832)
149@ = Sphere.Create(2596.589, 2758.158, 22.862, 1.0)
TIMERB = 0
153@ = 1
111@ = 1

:HEIST5_6578
if 
  111@ == 1
goto_if_false @HEIST5_6807
if 
  Char.LocateOnFoot3D($scplayer, 2596.589, 2758.158, 22.862, 1.0, 1.0, 3.0, False)
goto_if_false @HEIST5_6798
if 
  151@ == 0
goto_if_false @HEIST5_6680
Text.PrintHelp('HM5_20')
151@ = 1

:HEIST5_6680
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @HEIST5_6791
if 
  152@ == 0
goto_if_false @HEIST5_6791
Text.ClearThisPrint('HM5_20')
Text.ClearHelp
Blip.Remove(110@)
Sphere.Remove(149@)
Char.AttachToObject($scplayer, 109@, 0.0, 0.0, 2.0, 1, 360.0, WeaponType.Minigun)
Object.SetVisible(109@, False)
111@ = 2
152@ = 1

:HEIST5_6791
goto @HEIST5_6807

:HEIST5_6798
Text.ClearHelp
151@ = 0

:HEIST5_6807
if 
  111@ == 2
goto_if_false @HEIST5_6849
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @HEIST5_6849
111@ = 3

:HEIST5_6849
if 
  111@ == 3
goto_if_false @HEIST5_6927
if 
  150@ == 0
goto_if_false @HEIST5_6903
Text.PrintHelp('HM5_21')
150@ = 1

:HEIST5_6903
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @HEIST5_6927
111@ = 4

:HEIST5_6927
if 
  111@ == 4
goto_if_false @HEIST5_7135
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @HEIST5_7135
if 
  152@ == 1
goto_if_false @HEIST5_7135
Char.DetachFromCar($scplayer)
World.ClearArea(2596.129, 2757.112, 22.862, 1.0, False)
Char.SetCoordinates($scplayer, 2596.129, 2757.112, 22.862)
Char.SetHeading($scplayer, 217.0)
Object.SetVisible(109@, True)
Text.ClearThisPrint('HM5_21')
Text.ClearHelp
Blip.Remove(110@)
Sphere.Remove(149@)
110@ = Blip.AddForCoord(2595.549, 2758.04, 22.832)
149@ = Sphere.Create(2596.589, 2758.158, 22.862, 1.0)
150@ = 0
111@ = 1
152@ = 0

:HEIST5_7135
if 
  153@ == 1
goto_if_false @HEIST5_7469
if 
  116@ == 0
goto_if_false @HEIST5_7311
if 
  Car.IsDead(114@)
goto_if_false @HEIST5_7213
Blip.Remove(115@)
112@ += 1
116@ = 1
goto @HEIST5_7311

:HEIST5_7213
if 
  StuckCarCheck.IsCarStuck(114@)
goto_if_false @HEIST5_7311
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
set_lvar_float_to_var_float 133@ = $player_x
133@ += 80.0
set_lvar_float_to_var_float 134@ = $player_y
134@ += 80.0
set_lvar_float_to_var_float 135@ = $player_z
135@ += 50.0
Car.SetCoordinates(114@, 133@, 134@, 135@)

:HEIST5_7311
if 
  120@ == 0
goto_if_false @HEIST5_7469
if 
  Car.IsDead(118@)
goto_if_false @HEIST5_7371
Blip.Remove(119@)
112@ += 1
120@ = 1
goto @HEIST5_7469

:HEIST5_7371
if 
  StuckCarCheck.IsCarStuck(118@)
goto_if_false @HEIST5_7469
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
set_lvar_float_to_var_float 136@ = $player_x
136@ += 90.0
set_lvar_float_to_var_float 137@ = $player_y
137@ += 90.0
set_lvar_float_to_var_float 138@ = $player_z
138@ += 60.0
Car.SetCoordinates(118@, 136@, 137@, 138@)

:HEIST5_7469
if 
  TIMERB > 240000
goto_if_false @HEIST5_7616
if 
  116@ == 0
goto_if_false @HEIST5_7553
if 
  not Car.IsDead(114@)
goto_if_false @HEIST5_7553
Car.Explode(114@)
Car.Explode(114@)
Blip.Remove(115@)
112@ += 1
116@ = 1

:HEIST5_7553
if 
  120@ == 0
goto_if_false @HEIST5_7616
if 
  not Car.IsDead(118@)
goto_if_false @HEIST5_7616
Car.Explode(118@)
Car.Explode(118@)
Blip.Remove(119@)
112@ += 1
120@ = 1

:HEIST5_7616
goto @HEIST5_4206

:HEIST5_7623
$gate_stay_open = 0
Text.ClearThisPrint('HM5_20')
Text.ClearThisPrint('HM5_21')
Text.ClearHelp
Sphere.Remove(149@)
Blip.Remove(38@)
Blip.Remove(110@)
Blip.Remove(115@)
Blip.Remove(119@)
Streaming.MarkModelAsNoLongerNeeded(425)
Streaming.MarkModelAsNoLongerNeeded(362)
if 
  152@ == 1
goto_if_false @HEIST5_7766
Char.DetachFromCar($scplayer)
World.ClearArea(2596.129, 2757.112, 22.862, 1.0, False)
Char.SetCoordinates($scplayer, 2596.129, 2757.112, 22.862)
Char.SetHeading($scplayer, 217.0)

:HEIST5_7766
if 
  Object.DoesExist(109@)
goto_if_false @HEIST5_7789
Object.SetVisible(109@, True)

:HEIST5_7789
if 
  not Car.IsDead(34@)
goto_if_false @HEIST5_7841
Car.LockDoors(34@, CarLock.Unlocked)
Car.SetProofs(34@, False, False, False, False, False)
Car.FreezePosition(34@, False)
goto @HEIST5_7864

:HEIST5_7841
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715

:HEIST5_7864
Text.PrintNow('HM5_7', 8000, 1)

:HEIST5_7880
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @HEIST5_8122
wait 0
gosub @HEIST5_19769
gosub @HEIST5_16765
if 
  99@ == 1
goto_if_false @HEIST5_7992
if 
  100@ == 1
goto_if_false @HEIST5_7992
if 
  89@ == 0
goto_if_false @HEIST5_7985
gosub @HEIST5_14489
goto @HEIST5_7992

:HEIST5_7985
gosub @HEIST5_14887

:HEIST5_7992
if 
  Car.IsDead(34@)
goto_if_false @HEIST5_8038
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715
goto @HEIST5_8115

:HEIST5_8038
if 
  Char.LocateOnFoot3D($scplayer, 2614.603, 2720.745, 35.563, 4.0, 4.0, 4.0, False)
goto_if_false @HEIST5_8115
Car.LockDoors(34@, CarLock.Unlocked)
Car.SetProofs(34@, False, False, False, False, False)
Car.FreezePosition(34@, False)

:HEIST5_8115
goto @HEIST5_7880

:HEIST5_8122
if 
  159@ == 1
goto_if_false @HEIST5_8151
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
159@ = 0

:HEIST5_8151
Player.ClearWantedLevel($player1)
Blip.Remove(35@)
Streaming.MarkModelAsNoLongerNeeded(359)
122@ = Car.Create(428, 2847.391, 904.2733, 9.75)
Car.SetUpsidedownNotDamaged(122@, True)
Car.LockDoors(122@, CarLock.Locked)
Car.SetHeading(122@, 353.511)
123@ = Blip.AddForCar(122@)
Blip.SetAsFriendly(123@, True)
$bankvan1_health_heist5 = Car.GetUprightValue(122@)
129@ = 1
Text.PrintNow('HM5_8', 8000, 1)
TIMERA = 0

:HEIST5_8266
if 
  125@ == 0
goto_if_false @HEIST5_8919
wait 0
if 
  124@ == 0
goto_if_false @HEIST5_8412
if 
  Car.IsDead(122@)
goto_if_false @HEIST5_8389
if 
  129@ == 1
goto_if_false @HEIST5_8352
Blip.Remove(123@)
129@ = 0

:HEIST5_8352
Text.PrintNow('HM5_9', 8000, 1)
goto @HEIST5_13715
124@ = 1
goto @HEIST5_8412

:HEIST5_8389
$hst4_deliverytimer = Car.GetHealth(122@)
$hst4_deliverytimer /= 10
$bankvan1_health_heist5 = Car.GetUprightValue(122@)

:HEIST5_8412
if 
  Car.IsDead(34@)
goto_if_false @HEIST5_8458
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715
goto @HEIST5_8912

:HEIST5_8458
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @HEIST5_8803
if 
  163@ == 0
goto_if_false @HEIST5_8543
if 
  TIMERA >= 5000
goto_if_false @HEIST5_8543
Text.ClearThisPrint('HM5_8')
Text.PrintHelp('WINCH_V')
163@ = 1

:HEIST5_8543
if 
  90@ == 0
goto_if_false @HEIST5_8616
if 
  not Char.IsInArea3D($scplayer, 2497.387, 2858.018, 8.0, 2676.413, 2683.661, 80.0, False)
goto_if_false @HEIST5_8616
gosub @HEIST5_20962

:HEIST5_8616
126@, 127@, 128@ = Heli.GrabEntityOnWinch(34@)
if 
  not Car.IsDead(122@)
goto_if_false @HEIST5_8687
if 
  is_int_lvar_equal_to_int_lvar 126@ == 122@
goto_if_false @HEIST5_8687
$hst4_deliverytimer = Car.GetHealth(122@)
$hst4_deliverytimer /= 10
125@ = 1

:HEIST5_8687
if 
  36@ == 1
goto_if_false @HEIST5_8796
$blob_flag = 1
Blip.Remove(35@)
if 
  not Car.IsDead(122@)
goto_if_false @HEIST5_8789
if 
  129@ == 0
goto_if_false @HEIST5_8789
123@ = Blip.AddForCar(122@)
Blip.SetAsFriendly(123@, True)
Text.PrintNow('HM5_10', 8000, 1)
129@ = 1

:HEIST5_8789
36@ = 0

:HEIST5_8796
goto @HEIST5_8912

:HEIST5_8803
if 
  36@ == 0
goto_if_false @HEIST5_8912
$blob_flag = 0
if 
  not Car.IsDead(122@)
goto_if_false @HEIST5_8874
if 
  129@ == 1
goto_if_false @HEIST5_8874
Blip.Remove(123@)
129@ = 0

:HEIST5_8874
35@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(35@, True)
Text.PrintNow('IN_VEH', 5000, 1)
36@ = 1

:HEIST5_8912
goto @HEIST5_8266

:HEIST5_8919
if 
  not Car.IsDead(122@)
goto_if_false @HEIST5_8987
if 
  129@ == 1
goto_if_false @HEIST5_8980
Blip.Remove(123@)
Car.SetProofs(122@, False, False, False, False, False)
129@ = 0

:HEIST5_8980
goto @HEIST5_9047

:HEIST5_8987
if 
  129@ == 1
goto_if_false @HEIST5_9017
Blip.Remove(123@)
129@ = 0

:HEIST5_9017
Text.PrintNow('HM5_9', 8000, 1)
goto @HEIST5_13715
124@ = 1

:HEIST5_9047
Streaming.MarkModelAsNoLongerNeeded(287)
Streaming.RequestModel(117)
Text.PrintNow('HM5_2', 5000, 1)
37@ = Blip.AddForCoord(39@, 40@, 41@)
139@ = 1
36@ = 0
129@ = 0
$blob_flag = 1

:HEIST5_9114
if or
  142@ <> 1
  not Car.LocateStopped3D(122@, 39@, 40@, 41@, 6.0, 6.0, 5.0, $blob_flag)
  not Streaming.HasModelLoaded(117)
goto_if_false @HEIST5_10598
wait 0
if 
  124@ == 0
goto_if_false @HEIST5_9536
if 
  Car.IsDead(122@)
goto_if_false @HEIST5_9273
if 
  129@ == 1
goto_if_false @HEIST5_9236
Blip.Remove(123@)
129@ = 0

:HEIST5_9236
Text.PrintNow('HM5_9', 8000, 1)
goto @HEIST5_13715
124@ = 1
goto @HEIST5_9536

:HEIST5_9273
$hst4_deliverytimer = Car.GetHealth(122@)
$hst4_deliverytimer /= 10
$bankvan1_health_heist5 = Car.GetUprightValue(122@)
if 
  Car.LocateStopped3D(122@, 39@, 40@, 41@, 6.0, 6.0, 5.0, False)
goto_if_false @HEIST5_9529
if 
  140@ == 0
goto_if_false @HEIST5_9493
if and
  1.0 >= $bankvan1_health_heist5
  $bankvan1_health_heist5 > 0.8
goto_if_false @HEIST5_9438
if 
  not Car.IsInAirProper(122@)
goto_if_false @HEIST5_9424
Car.WinchCanPickUp(122@, False)
142@ = 1
goto @HEIST5_9431

:HEIST5_9424
142@ = 0

:HEIST5_9431
goto @HEIST5_9445

:HEIST5_9438
142@ = 0

:HEIST5_9445
if 
  142@ == 0
goto_if_false @HEIST5_9486
Text.PrintNow('HM5_12', 8000, 1)
140@ = 1

:HEIST5_9486
goto @HEIST5_9522

:HEIST5_9493
if 
  142@ == 1
goto_if_false @HEIST5_9522
Text.ClearThisPrint('HM5_12')

:HEIST5_9522
goto @HEIST5_9536

:HEIST5_9529
140@ = 0

:HEIST5_9536
if 
  Car.IsDead(34@)
goto_if_false @HEIST5_9582
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715
goto @HEIST5_10591

:HEIST5_9582
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @HEIST5_10463
126@, 127@, 128@ = Heli.GrabEntityOnWinch(34@)
if 
  not Car.IsDead(122@)
goto_if_false @HEIST5_10076
if 
  is_int_lvar_equal_to_int_lvar 126@ == 122@
goto_if_false @HEIST5_9783
if 
  129@ == 1
goto_if_false @HEIST5_9695
Blip.Remove(123@)
$hst4_deliverytimer = Car.GetHealth(122@)
$hst4_deliverytimer /= 10
129@ = 0

:HEIST5_9695
if 
  139@ == 0
goto_if_false @HEIST5_9762
Blip.Remove(37@)
37@ = Blip.AddForCoord(39@, 40@, 41@)
Text.PrintNow('HM5_2', 5000, 1)
$blob_flag = 1
139@ = 1

:HEIST5_9762
141@ = 0
125@ = 1
goto @HEIST5_10076

:HEIST5_9783
130@, 131@, 132@ = Car.GetCoordinates(122@)
105@, 106@, 107@ = Car.GetCoordinates(34@)
108@ = Math.GetDistanceBetweenCoords2D(105@, 106@, 130@, 131@)
if 
  10.0 > 108@
goto_if_false @HEIST5_9971
if 
  not World.IsLineOfSightClear(105@, 106@, 107@, 130@, 131@, 132@, True, False, False, False, False)
goto_if_false @HEIST5_9971
if 
  141@ == 0
goto_if_false @HEIST5_9929
TIMERA = 0
141@ = 1
goto @HEIST5_9971

:HEIST5_9929
if 
  TIMERA >= 10000
goto_if_false @HEIST5_9971
Text.PrintNow('HM5_14', 8000, 1)
goto @HEIST5_13715

:HEIST5_9971
125@ = 0
if 
  139@ == 1
goto_if_false @HEIST5_10008
Blip.Remove(37@)
139@ = 0

:HEIST5_10008
if 
  129@ == 0
goto_if_false @HEIST5_10076
Blip.Remove(123@)
123@ = Blip.AddForCar(122@)
Blip.SetAsFriendly(123@, True)
Text.PrintNow('HM5_10', 8000, 1)
$blob_flag = 0
129@ = 1

:HEIST5_10076
if 
  36@ == 1
goto_if_false @HEIST5_10456
Blip.Remove(35@)
if 
  125@ == 1
goto_if_false @HEIST5_10198
if 
  139@ == 0
goto_if_false @HEIST5_10161
Blip.Remove(37@)
37@ = Blip.AddForCoord(39@, 40@, 41@)
139@ = 1

:HEIST5_10161
Text.PrintNow('HM5_2', 5000, 1)
$blob_flag = 1
36@ = 0
goto @HEIST5_10456

:HEIST5_10198
if 
  not Car.IsDead(122@)
goto_if_false @HEIST5_10449
if 
  129@ == 0
goto_if_false @HEIST5_10449
Blip.Remove(123@)
123@ = Blip.AddForCar(122@)
Blip.SetAsFriendly(123@, True)
Text.PrintNow('HM5_10', 8000, 1)
$blob_flag = 0
130@, 131@, 132@ = Car.GetCoordinates(122@)
105@, 106@, 107@ = Car.GetCoordinates(34@)
108@ = Math.GetDistanceBetweenCoords2D(105@, 106@, 130@, 131@)
if 
  not World.IsLineOfSightClear(105@, 106@, 107@, 130@, 131@, 132@, True, False, False, False, False)
goto_if_false @HEIST5_10442
if 
  141@ == 0
goto_if_false @HEIST5_10400
TIMERA = 0
141@ = 1
goto @HEIST5_10442

:HEIST5_10400
if 
  TIMERA >= 10000
goto_if_false @HEIST5_10442
Text.PrintNow('HM5_14', 8000, 1)
goto @HEIST5_13715

:HEIST5_10442
129@ = 1

:HEIST5_10449
36@ = 0

:HEIST5_10456
goto @HEIST5_10591

:HEIST5_10463
if 
  36@ == 0
goto_if_false @HEIST5_10591
$blob_flag = 0
if 
  139@ == 1
goto_if_false @HEIST5_10518
Blip.Remove(37@)
139@ = 0

:HEIST5_10518
if 
  129@ == 1
goto_if_false @HEIST5_10548
Blip.Remove(123@)
129@ = 0

:HEIST5_10548
Blip.Remove(35@)
35@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(35@, True)
Text.PrintNow('IN_VEH', 5000, 1)
36@ = 1

:HEIST5_10591
goto @HEIST5_9114

:HEIST5_10598
Text.ClearThisPrint('HM5_12')
Blip.Remove(37@)
if 
  not Car.IsDead(122@)
goto_if_false @HEIST5_10693
Blip.Remove(123@)
if 
  not Car.IsDead(34@)
goto_if_false @HEIST5_10663
Heli.ReleaseEntityFromWinch(34@)
goto @HEIST5_10686

:HEIST5_10663
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715

:HEIST5_10686
goto @HEIST5_10721

:HEIST5_10693
Blip.Remove(123@)
Text.PrintNow('HM5_9', 8000, 1)
goto @HEIST5_13715

:HEIST5_10721
Text.PrintNow('HM5_13', 8000, 1)
144@ = Blip.AddForCoord(145@, 146@, 147@)
36@ = 0
$blob_flag = 1
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 17205)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 17207)

:HEIST5_10779
if or
  not Car.LocateStopped3D(34@, 145@, 146@, 147@, 20.0, 20.0, 4.0, $blob_flag)
  not Char.IsSittingInCar($scplayer, 34@)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @HEIST5_11100
wait 0
if 
  Car.IsDead(122@)
goto_if_false @HEIST5_10886
Blip.Remove(123@)
Text.PrintNow('HM5_9', 8000, 1)
goto @HEIST5_13715

:HEIST5_10886
if 
  Car.IsDead(34@)
goto_if_false @HEIST5_10932
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715
goto @HEIST5_11093

:HEIST5_10932
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @HEIST5_11025
if 
  36@ == 1
goto_if_false @HEIST5_11018
Blip.Remove(35@)
Text.PrintNow('HM5_13', 8000, 1)
144@ = Blip.AddForCoord(145@, 146@, 147@)
$blob_flag = 1
36@ = 0

:HEIST5_11018
goto @HEIST5_11093

:HEIST5_11025
if 
  36@ == 0
goto_if_false @HEIST5_11093
Blip.Remove(144@)
35@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(35@, True)
Text.PrintNow('IN_VEH', 5000, 1)
$blob_flag = 0
36@ = 1

:HEIST5_11093
goto @HEIST5_10779

:HEIST5_11100
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Blip.Remove(144@)
Blip.Remove(35@)
Game.SetPoliceIgnorePlayer($player1, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Car.Delete(122@)
Streaming.MarkModelAsNoLongerNeeded(428)
Player.MakeGangDisappear
145@ = 365.87
146@ = 2537.868
if 
  not Car.IsDead(34@)
goto_if_false @HEIST5_11229
Car.SetCoordinates(34@, 145@, 146@, 147@)
Car.SetHeading(34@, 214.0)
Car.SetProofs(34@, True, True, True, True, True)
goto @HEIST5_11252

:HEIST5_11229
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715

:HEIST5_11252
Camera.SetFixedPosition(371.7336, 2544.856, 16.6086, 0.0, 0.0, 0.0)
Camera.PointAtPoint(371.3514, 2543.944, 16.7564, SwitchType.JumpCut)
wait 2000
skip_cutscene_start_internal @HEIST5_13375
if 
  not Car.IsDead(34@)
goto_if_false @HEIST5_11360
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.ShutUpForScriptedSpeech($scplayer, True)
Task.LeaveCar($scplayer, 34@)
goto @HEIST5_11383

:HEIST5_11360
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715

:HEIST5_11383
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HEIST5_11449
wait 0
if 
  Car.IsDead(34@)
goto_if_false @HEIST5_11442
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715

:HEIST5_11442
goto @HEIST5_11383

:HEIST5_11449
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
148@ = Char.Create(PedType.CivMale, 117, 375.081, 2535.866, 15.64)
Char.SetDecisionMaker(148@, 56@)
Char.SetOnlyDamagedByPlayer(148@, True)
Char.SetProofs(148@, True, True, True, True, True)
Char.ShutUpForScriptedSpeech(148@, True)
Task.GoStraightToCoord($scplayer, 370.364, 2538.753, 15.643, MoveState.Walk, -1)

:HEIST5_11541
if 
  not Char.LocateStoppedOnFoot3D($scplayer, 370.364, 2538.753, 15.643, 1.0, 1.0, 2.0, False)
goto_if_false @HEIST5_11678
wait 0
if 
  Car.IsDead(34@)
goto_if_false @HEIST5_11632
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715

:HEIST5_11632
if 
  Char.IsDead(148@)
goto_if_false @HEIST5_11671
Text.PrintNow('HM5_16', 8000, 1)
goto @HEIST5_13715

:HEIST5_11671
goto @HEIST5_11541

:HEIST5_11678
if 
  not Char.IsDead(148@)
goto_if_false @HEIST5_11790
Task.GotoChar(148@, $scplayer, -1, 1.3)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('HE5_AA', 10000, 1)
Char.StartFacialTalk(148@, 999999)
Task.PlayAnimNonInterruptable(148@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
Task.TurnCharToFaceChar($scplayer, 148@)
goto @HEIST5_11813

:HEIST5_11790
Text.PrintNow('HM5_16', 8000, 1)
goto @HEIST5_13715

:HEIST5_11813
TIMERA = 0

:HEIST5_11820
if or
  not Char.LocateOnFootChar3D(148@, $scplayer, 1.2, 1.2, 2.0, False)
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST5_12014
wait 0
if 
  Car.IsDead(34@)
goto_if_false @HEIST5_11922
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('HE5_AA')
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715

:HEIST5_11922
if 
  Char.IsDead(148@)
goto_if_false @HEIST5_11968
Text.PrintNow('HM5_16', 8000, 1)
goto @HEIST5_13715
goto @HEIST5_12007

:HEIST5_11968
if 
  TIMERA >= 15000
goto_if_false @HEIST5_12007
Char.SetCoordinates(148@, 371.364, 2538.753, 15.643)

:HEIST5_12007
goto @HEIST5_11820

:HEIST5_12014
if 
  not Char.IsDead(148@)
goto_if_false @HEIST5_12042
Char.ClearTasks(148@)
goto @HEIST5_12065

:HEIST5_12042
Text.PrintNow('HM5_16', 8000, 1)
goto @HEIST5_13715

:HEIST5_12065
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint('HE5_AA')
if 
  not Char.IsDead(148@)
goto_if_false @HEIST5_12108
Char.StopFacialTalk(148@)
goto @HEIST5_12131

:HEIST5_12108
Text.PrintNow('HM5_16', 8000, 1)
goto @HEIST5_13715

:HEIST5_12131
if 
  Player.IsPlaying($player1)
goto_if_false @HEIST5_12274
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('HE5_AB', 10000, 1)
Task.PlayAnimNonInterruptable($scplayer, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
Char.StartFacialTalk($scplayer, 999999)
if 
  not Char.IsDead(148@)
goto_if_false @HEIST5_12244
Task.TurnCharToFaceChar($scplayer, 148@)
goto @HEIST5_12267

:HEIST5_12244
Text.PrintNow('HM5_16', 8000, 1)
goto @HEIST5_13715

:HEIST5_12267
goto @HEIST5_12293

:HEIST5_12274
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('HE5_AB')

:HEIST5_12293
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 17206)

:HEIST5_12300
if or
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST5_12443
wait 0
if 
  Car.IsDead(34@)
goto_if_false @HEIST5_12362
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715

:HEIST5_12362
if 
  Char.IsDead(148@)
goto_if_false @HEIST5_12401
Text.PrintNow('HM5_16', 8000, 1)
goto @HEIST5_13715

:HEIST5_12401
if 
  not Player.IsPlaying($player1)
goto_if_false @HEIST5_12436
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('HE5_AB')

:HEIST5_12436
goto @HEIST5_12300

:HEIST5_12443
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('HE5_AB')
Char.ClearTasks($scplayer)
Char.StopFacialTalk($scplayer)
if 
  not Char.IsDead(148@)
goto_if_false @HEIST5_12557
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('HE5_AC', 10000, 1)
Char.StartFacialTalk(148@, 999999)
Task.PlayAnimNonInterruptable(148@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
goto @HEIST5_12599

:HEIST5_12557
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('HE5_AC')
Text.PrintNow('HM5_16', 8000, 1)
goto @HEIST5_13715

:HEIST5_12599
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 17204)

:HEIST5_12606
if or
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @HEIST5_12733
wait 0
if 
  Car.IsDead(34@)
goto_if_false @HEIST5_12668
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715

:HEIST5_12668
if 
  Char.IsDead(148@)
goto_if_false @HEIST5_12726
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('HE5_AC')
Text.PrintNow('HM5_16', 8000, 1)
goto @HEIST5_13715

:HEIST5_12726
goto @HEIST5_12606

:HEIST5_12733
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint('HE5_AC')
if 
  not Char.IsDead(148@)
goto_if_false @HEIST5_12776
Char.StopFacialTalk(148@)
goto @HEIST5_12799

:HEIST5_12776
Text.PrintNow('HM5_16', 8000, 1)
goto @HEIST5_13715

:HEIST5_12799
if 
  not Char.IsDead(148@)
goto_if_false @HEIST5_12827
Char.ClearTasks(148@)
goto @HEIST5_12850

:HEIST5_12827
Text.PrintNow('HM5_16', 8000, 1)
goto @HEIST5_13715

:HEIST5_12850
if 
  Player.IsPlaying($player1)
goto_if_false @HEIST5_12939
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('HE5_AD', 10000, 1)
Task.PlayAnimNonInterruptable($scplayer, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
Char.StartFacialTalk($scplayer, 999999)
goto @HEIST5_12958

:HEIST5_12939
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('HE5_AD')

:HEIST5_12958
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @HEIST5_13097
wait 0
if 
  Car.IsDead(34@)
goto_if_false @HEIST5_13016
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715

:HEIST5_13016
if 
  Char.IsDead(148@)
goto_if_false @HEIST5_13055
Text.PrintNow('HM5_16', 8000, 1)
goto @HEIST5_13715

:HEIST5_13055
if 
  not Player.IsPlaying($player1)
goto_if_false @HEIST5_13090
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('HE5_AD')

:HEIST5_13090
goto @HEIST5_12958

:HEIST5_13097
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('HE5_AD')
Char.ClearTasks($scplayer)
Char.StopFacialTalk($scplayer)
if 
  not Char.IsDead(148@)
goto_if_false @HEIST5_13169
Task.GoStraightToCoord(148@, 378.998, 2534.098, 15.624, MoveState.Walk, -1)
goto @HEIST5_13192

:HEIST5_13169
Text.PrintNow('HM5_16', 8000, 1)
goto @HEIST5_13715

:HEIST5_13192
wait 1200
Task.GoStraightToCoord($scplayer, 379.998, 2534.098, 15.624, MoveState.Walk, -1)
TIMERA = 0

:HEIST5_13228
if 
  3000 >= TIMERA
goto_if_false @HEIST5_13336
wait 0
if 
  Car.IsDead(34@)
goto_if_false @HEIST5_13290
Text.PrintNow('HM5_3', 5000, 1)
goto @HEIST5_13715

:HEIST5_13290
if 
  Char.IsDead(148@)
goto_if_false @HEIST5_13329
Text.PrintNow('HM5_16', 8000, 1)
goto @HEIST5_13715

:HEIST5_13329
goto @HEIST5_13228

:HEIST5_13336
Car.Delete(34@)
Char.Delete(148@)
Char.SetCoordinates($scplayer, 388.007, 2532.546, 15.594)
Camera.SetBehindPlayer
164@ = 1

:HEIST5_13375
skip_cutscene_end 
if 
  164@ == 0
goto_if_false @HEIST5_13677
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:HEIST5_13410
if 
  Camera.GetFadingStatus
goto_if_false @HEIST5_13434
wait 0
goto @HEIST5_13410

:HEIST5_13434
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearHelp
Text.ClearPrints
Hud.SwitchWidescreen(False)
World.ClearArea(388.007, 2532.546, 15.594, 5.0, True)
if 
  Char.IsInFlyingVehicle($scplayer)
goto_if_false @HEIST5_13594
165@ = Char.StoreCarIsIn($scplayer)
Char.WarpFromCarToCoord($scplayer, 388.007, 2532.546, 15.594)

:HEIST5_13518
if 
  Char.IsInFlyingVehicle($scplayer)
goto_if_false @HEIST5_13577
wait 0
if 
  Car.IsDead(34@)
goto_if_false @HEIST5_13554

:HEIST5_13554
if 
  Char.IsDead(148@)
goto_if_false @HEIST5_13570

:HEIST5_13570
goto @HEIST5_13518

:HEIST5_13577
Char.SetHeading($scplayer, 270.0)
goto @HEIST5_13624

:HEIST5_13594
Char.SetCoordinates($scplayer, 388.007, 2532.546, 15.594)
Char.SetHeading($scplayer, 270.0)

:HEIST5_13624
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Car.Delete(34@)
Char.Delete(148@)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:HEIST5_13653
if 
  Camera.GetFadingStatus
goto_if_false @HEIST5_13677
wait 0
goto @HEIST5_13653

:HEIST5_13677
Player.MakeGangReappear
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Game.SetPoliceIgnorePlayer($player1, False)
Game.SetEveryoneIgnorePlayer($player1, False)
goto @HEIST5_13733

:HEIST5_13715
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:HEIST5_13733
$flag_heist_mission_counter += 1
Stat.RegisterMissionPassed('HEIST_5')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSR', 0, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(25)
Player.ClearWantedLevel($player1)
if 
  $1384 == 0
goto_if_false @HEIST5_13805
Blip.Remove($Theheist_contact_blip)

:HEIST5_13805
CarGenerator.Switch($hm5_car_gen, 101)
Audio.PlayMissionPassedTune(1)
return 

:HEIST5_13818
Char.DetachFromCar($scplayer)
Game.SetWantedMultiplier(1.0)
if 
  $d5_bronze_generator_unlocked == 1
goto_if_false @HEIST5_13855
CarGenerator.Switch($d5_bronze_generator, 101)

:HEIST5_13855
if 
  $d5_silver_generator_unlocked == 1
goto_if_false @HEIST5_13880
CarGenerator.Switch($d5_silver_generator, 101)

:HEIST5_13880
if 
  $d5_gold_generator_unlocked == 1
goto_if_false @HEIST5_13905
CarGenerator.Switch($d5_gold_generator, 101)

:HEIST5_13905
if 
  not Pickup.HasBeenCollected(156@)
goto_if_false @HEIST5_13926
Pickup.Remove(156@)

:HEIST5_13926
if 
  not Pickup.HasBeenCollected(157@)
goto_if_false @HEIST5_13947
Pickup.Remove(157@)

:HEIST5_13947
if 
  not Pickup.HasBeenCollected(158@)
goto_if_false @HEIST5_13968
Pickup.Remove(158@)

:HEIST5_13968
$gate_stay_open = 0
Game.SwitchAmbientPlanes(True)
Game.SwitchPoliceHelis(True)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Sphere.Remove(149@)
Streaming.MarkModelAsNoLongerNeeded(417)
Streaming.MarkModelAsNoLongerNeeded(287)
Streaming.MarkModelAsNoLongerNeeded(356)
Streaming.MarkModelAsNoLongerNeeded(359)
Streaming.MarkModelAsNoLongerNeeded(425)
Streaming.MarkModelAsNoLongerNeeded(#MINIGUN_BASE)
Streaming.MarkModelAsNoLongerNeeded(362)
Streaming.MarkModelAsNoLongerNeeded(428)
Streaming.MarkModelAsNoLongerNeeded(470)
Streaming.MarkModelAsNoLongerNeeded(117)
DecisionMaker.Remove(57@)
DecisionMaker.Remove(58@)
DecisionMaker.Remove(56@)
Blip.Remove(35@)
Blip.Remove(37@)
Blip.Remove(38@)
Blip.Remove(144@)
Blip.Remove(110@)
Blip.Remove(115@)
Blip.Remove(119@)
Blip.Remove(123@)
Sequence.Clear(59@)
Sequence.Clear(60@)
Sequence.Clear(91@)
Sequence.Clear(92@)
Sequence.Clear(93@)
Sequence.Clear(94@)
Sequence.Clear(95@)
Sequence.Clear(96@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Mission.Finish
return 

:HEIST5_14160
if 
  not Char.IsDead(45@)
goto_if_false @HEIST5_14269
if or
  Char.IsInFlyingVehicle($scplayer)
  Player.IsUsingJetpack($player1)
  $player_fall_state > 0
goto_if_false @HEIST5_14240
Char.RemoveAllWeapons(45@)
Char.GiveWeapon(45@, WeaponType.RocketLauncher, 30000)
Char.SetAccuracy(45@, 85)
Char.SetShootRate(45@, 40)
goto @HEIST5_14269

:HEIST5_14240
Char.RemoveAllWeapons(45@)
Char.GiveWeapon(45@, WeaponType.M4, 30000)
Char.SetAccuracy(45@, 70)
Char.SetShootRate(45@, 40)

:HEIST5_14269
if 
  not Char.IsDead(46@)
goto_if_false @HEIST5_14378
if or
  Char.IsInFlyingVehicle($scplayer)
  Player.IsUsingJetpack($player1)
  $player_fall_state > 0
goto_if_false @HEIST5_14349
Char.RemoveAllWeapons(46@)
Char.GiveWeapon(46@, WeaponType.RocketLauncher, 30000)
Char.SetAccuracy(46@, 85)
Char.SetShootRate(46@, 40)
goto @HEIST5_14378

:HEIST5_14349
Char.RemoveAllWeapons(46@)
Char.GiveWeapon(46@, WeaponType.M4, 30000)
Char.SetAccuracy(46@, 70)
Char.SetShootRate(46@, 45)

:HEIST5_14378
if 
  not Char.IsDead(47@)
goto_if_false @HEIST5_14487
if or
  Char.IsInFlyingVehicle($scplayer)
  Player.IsUsingJetpack($player1)
  $player_fall_state > 0
goto_if_false @HEIST5_14458
Char.RemoveAllWeapons(47@)
Char.GiveWeapon(47@, WeaponType.RocketLauncher, 30000)
Char.SetAccuracy(47@, 85)
Char.SetShootRate(47@, 40)
goto @HEIST5_14487

:HEIST5_14458
Char.RemoveAllWeapons(47@)
Char.GiveWeapon(47@, WeaponType.M4, 30000)
Char.SetAccuracy(47@, 70)
Char.SetShootRate(47@, 50)

:HEIST5_14487
return 

:HEIST5_14489
if 
  89@ == 0
goto_if_false @HEIST5_14885
if 
  not Char.IsDead(61@)
goto_if_false @HEIST5_14531
Task.KillCharOnFoot(61@, $scplayer)

:HEIST5_14531
if 
  not Char.IsDead(63@)
goto_if_false @HEIST5_14555
Task.KillCharOnFoot(63@, $scplayer)

:HEIST5_14555
if 
  not Char.IsDead(65@)
goto_if_false @HEIST5_14579
Task.KillCharOnFoot(65@, $scplayer)

:HEIST5_14579
if 
  not Char.IsDead(67@)
goto_if_false @HEIST5_14603
Char.PerformSequence(67@, 91@)

:HEIST5_14603
if 
  not Char.IsDead(69@)
goto_if_false @HEIST5_14627
Char.PerformSequence(69@, 92@)

:HEIST5_14627
if 
  not Char.IsDead(71@)
goto_if_false @HEIST5_14658
Task.KillCharOnFoot(71@, $scplayer)
Char.SetStayInSamePlace(71@, True)

:HEIST5_14658
if 
  not Char.IsDead(73@)
goto_if_false @HEIST5_14689
Task.KillCharOnFoot(73@, $scplayer)
Char.SetStayInSamePlace(73@, True)

:HEIST5_14689
if 
  not Char.IsDead(75@)
goto_if_false @HEIST5_14720
Task.KillCharOnFoot(75@, $scplayer)
Char.SetStayInSamePlace(75@, True)

:HEIST5_14720
if 
  not Char.IsDead(77@)
goto_if_false @HEIST5_14751
Task.KillCharOnFoot(77@, $scplayer)
Char.SetStayInSamePlace(77@, True)

:HEIST5_14751
if 
  not Char.IsDead(79@)
goto_if_false @HEIST5_14782
Task.KillCharOnFoot(79@, $scplayer)
Char.SetStayInSamePlace(79@, True)

:HEIST5_14782
if 
  not Char.IsDead(81@)
goto_if_false @HEIST5_14806
Char.PerformSequence(81@, 93@)

:HEIST5_14806
if 
  not Char.IsDead(83@)
goto_if_false @HEIST5_14830
Char.PerformSequence(83@, 94@)

:HEIST5_14830
if 
  not Char.IsDead(85@)
goto_if_false @HEIST5_14854
Char.PerformSequence(85@, 95@)

:HEIST5_14854
if 
  not Char.IsDead(87@)
goto_if_false @HEIST5_14878
Char.PerformSequence(87@, 96@)

:HEIST5_14878
89@ = 1

:HEIST5_14885
return 

:HEIST5_14887
if 
  not Char.IsDead(67@)
goto_if_false @HEIST5_14962
if 
  Char.LocateOnFootChar3D($scplayer, 67@, 3.0, 3.0, 2.0, False)
goto_if_false @HEIST5_14954
Char.SetDecisionMaker(67@, 58@)
goto @HEIST5_14962

:HEIST5_14954
Char.SetDecisionMaker(67@, 57@)

:HEIST5_14962
if 
  not Char.IsDead(69@)
goto_if_false @HEIST5_15037
if 
  Char.LocateOnFootChar3D($scplayer, 69@, 3.0, 3.0, 2.0, False)
goto_if_false @HEIST5_15029
Char.SetDecisionMaker(69@, 58@)
goto @HEIST5_15037

:HEIST5_15029
Char.SetDecisionMaker(69@, 57@)

:HEIST5_15037
if 
  not Char.IsDead(71@)
goto_if_false @HEIST5_15112
if 
  Char.LocateOnFootChar3D($scplayer, 71@, 3.0, 3.0, 2.0, False)
goto_if_false @HEIST5_15104
Char.SetDecisionMaker(71@, 58@)
goto @HEIST5_15112

:HEIST5_15104
Char.SetDecisionMaker(71@, 57@)

:HEIST5_15112
if 
  not Char.IsDead(73@)
goto_if_false @HEIST5_15187
if 
  Char.LocateOnFootChar3D($scplayer, 73@, 3.0, 3.0, 2.0, False)
goto_if_false @HEIST5_15179
Char.SetDecisionMaker(73@, 58@)
goto @HEIST5_15187

:HEIST5_15179
Char.SetDecisionMaker(73@, 57@)

:HEIST5_15187
if 
  not Char.IsDead(75@)
goto_if_false @HEIST5_15262
if 
  Char.LocateOnFootChar3D($scplayer, 75@, 3.0, 3.0, 2.0, False)
goto_if_false @HEIST5_15254
Char.SetDecisionMaker(75@, 58@)
goto @HEIST5_15262

:HEIST5_15254
Char.SetDecisionMaker(75@, 57@)

:HEIST5_15262
if 
  not Char.IsDead(77@)
goto_if_false @HEIST5_15337
if 
  Char.LocateOnFootChar3D($scplayer, 77@, 3.0, 3.0, 2.0, False)
goto_if_false @HEIST5_15329
Char.SetDecisionMaker(77@, 58@)
goto @HEIST5_15337

:HEIST5_15329
Char.SetDecisionMaker(77@, 57@)

:HEIST5_15337
if 
  not Char.IsDead(79@)
goto_if_false @HEIST5_15412
if 
  Char.LocateOnFootChar3D($scplayer, 79@, 3.0, 3.0, 2.0, False)
goto_if_false @HEIST5_15404
Char.SetDecisionMaker(79@, 58@)
goto @HEIST5_15412

:HEIST5_15404
Char.SetDecisionMaker(79@, 57@)

:HEIST5_15412
return 

:HEIST5_15414
if 
  not Char.IsDead(97@)
goto_if_false @HEIST5_16701
if 
  100@ == 0
goto_if_false @HEIST5_16544
if or
  Player.IsTargetingChar($player1, 97@)
  Char.HasBeenDamagedByWeapon(97@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_15481
100@ = 1

:HEIST5_15481
if 
  not Char.IsInFlyingVehicle($scplayer)
goto_if_false @HEIST5_16530
if 
  not Player.IsUsingJetpack($player1)
goto_if_false @HEIST5_16516
if 
  $player_fall_state == 0
goto_if_false @HEIST5_16502
if or
  Char.HasSpottedChar(97@, $scplayer)
  Char.IsInArea3D($scplayer, 2497.387, 2858.018, 8.0, 2676.413, 2683.661, 60.0, False)
goto_if_false @HEIST5_16495
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if 
  101@ == 0
goto_if_false @HEIST5_15748
if 
  Char.LocateOnFootChar3D($scplayer, 97@, 8.0, 8.0, 8.0, False)
goto_if_false @HEIST5_15671
Text.PrintNow('HE5_BA', 8000, 1)

:HEIST5_15671
160@, 161@, 162@ = Char.GetCoordinates(97@)
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot1, 160@, 161@, 162@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Char.StartFacialTalk(97@, 999999)
Char.ShutUpForScriptedSpeech(97@, True)
TIMERB = 0
Task.GotoChar(97@, $scplayer, -1, 2.0)
101@ = 1

:HEIST5_15748
if 
  101@ == 1
goto_if_false @HEIST5_15802
102@ = Char.GetScriptTaskStatus(97@, 1497)
if 
  is_int_lvar_equal_to_constant 102@ == 7
goto_if_false @HEIST5_15802
101@ = 2

:HEIST5_15802
if 
  101@ >= 1
goto_if_false @HEIST5_16495

:HEIST5_15820
if 
  3000 > TIMERB
goto_if_false @HEIST5_16188
wait 0
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST5_15911
Text.ClearThisPrint('HE5_BA')
if 
  not Char.IsDead(97@)
goto_if_false @HEIST5_15904
Char.StopFacialTalk(97@)
Char.ShutUpForScriptedSpeech(97@, False)
goto @HEIST5_15911

:HEIST5_15904
98@ = 1

:HEIST5_15911
if 
  100@ == 1
goto_if_false @HEIST5_16063
if 
  not Char.IsDead(97@)
goto_if_false @HEIST5_16001
if 
  103@ == 0
goto_if_false @HEIST5_15994
Char.ClearAllRelationships(97@, RelationshipType.Hate)
Char.SetRelationship(97@, RelationshipType.Hate, PedType.Player1)
Task.KillCharOnFoot(97@, $scplayer)
103@ = 1

:HEIST5_15994
goto @HEIST5_16056

:HEIST5_16001
if 
  98@ == 0
goto_if_false @HEIST5_16056
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('HE5_BA')
Text.ClearThisPrint('HE5_BB')
98@ = 1

:HEIST5_16056
goto @HEIST5_16181

:HEIST5_16063
if 
  98@ == 0
goto_if_false @HEIST5_16181
if 
  Char.IsDead(97@)
goto_if_false @HEIST5_16148
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('HE5_BA')
Text.ClearThisPrint('HE5_BB')
100@ = 1
98@ = 1
goto @HEIST5_16181

:HEIST5_16148
if or
  Player.IsTargetingChar($player1, 97@)
  Char.HasBeenDamagedByWeapon(97@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_16181
100@ = 1

:HEIST5_16181
goto @HEIST5_15820

:HEIST5_16188
if 
  Char.IsInArea3D($scplayer, 2497.387, 2858.018, 8.0, 2676.413, 2683.661, 60.0, False)
goto_if_false @HEIST5_16495
if 
  not Char.IsDead(97@)
goto_if_false @HEIST5_16433
if 
  100@ >= 0
goto_if_false @HEIST5_16370
if 
  Char.LocateOnFootChar3D($scplayer, 97@, 8.0, 8.0, 8.0, False)
goto_if_false @HEIST5_16322
Text.PrintNow('HE5_BD', 8000, 1)

:HEIST5_16322
Char.StartFacialTalk(97@, 999999)
Char.ShutUpForScriptedSpeech(97@, True)
160@, 161@, 162@ = Char.GetCoordinates(97@)
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot2, 160@, 161@, 162@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)

:HEIST5_16370
if 
  103@ == 0
goto_if_false @HEIST5_16419
Char.ClearAllRelationships(97@, RelationshipType.Hate)
Char.SetRelationship(97@, RelationshipType.Hate, PedType.Player1)
Task.KillCharOnFoot(97@, $scplayer)
103@ = 1

:HEIST5_16419
100@ = 1
goto @HEIST5_16495

:HEIST5_16433
if 
  98@ == 0
goto_if_false @HEIST5_16488
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('HE5_BA')
Text.ClearThisPrint('HE5_BB')
98@ = 1

:HEIST5_16488
100@ = 1

:HEIST5_16495
goto @HEIST5_16509

:HEIST5_16502
100@ = 1

:HEIST5_16509
goto @HEIST5_16523

:HEIST5_16516
100@ = 1

:HEIST5_16523
goto @HEIST5_16537

:HEIST5_16530
100@ = 1

:HEIST5_16537
goto @HEIST5_16694

:HEIST5_16544
if 
  not Char.IsDead(97@)
goto_if_false @HEIST5_16632
if 
  103@ == 0
goto_if_false @HEIST5_16625
Char.ClearAllRelationships(97@, RelationshipType.Hate)
Char.ClearAllRelationships(97@, RelationshipType.Like)
Char.SetRelationship(97@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(97@, RelationshipType.Like, PedType.Mission1)
Task.KillCharOnFoot(97@, $scplayer)
103@ = 1

:HEIST5_16625
goto @HEIST5_16694

:HEIST5_16632
if 
  98@ == 0
goto_if_false @HEIST5_16687
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('HE5_BA')
Text.ClearThisPrint('HE5_BB')
98@ = 1

:HEIST5_16687
100@ = 1

:HEIST5_16694
goto @HEIST5_16763

:HEIST5_16701
if 
  98@ == 0
goto_if_false @HEIST5_16756
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint('HE5_BA')
Text.ClearThisPrint('HE5_BB')
98@ = 1

:HEIST5_16756
100@ = 1

:HEIST5_16763
return 

:HEIST5_16765
if 
  62@ == 0
goto_if_false @HEIST5_16952
if 
  Char.IsDead(61@)
goto_if_false @HEIST5_16820
100@ = 1
62@ = 1
goto @HEIST5_16952

:HEIST5_16820
if 
  99@ == 1
goto_if_false @HEIST5_16952
if 
  100@ == 0
goto_if_false @HEIST5_16952
if or
  Player.IsTargetingChar($player1, 61@)
  Char.HasBeenDamagedByWeapon(61@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_16889
100@ = 1

:HEIST5_16889
if 
  101@ > 1
goto_if_false @HEIST5_16952
if 
  TIMERB > 3000
goto_if_false @HEIST5_16952
if 
  Char.HasSpottedChar(61@, $scplayer)
goto_if_false @HEIST5_16952
100@ = 1

:HEIST5_16952
if 
  64@ == 0
goto_if_false @HEIST5_17139
if 
  Char.IsDead(63@)
goto_if_false @HEIST5_17007
100@ = 1
64@ = 1
goto @HEIST5_17139

:HEIST5_17007
if 
  99@ == 1
goto_if_false @HEIST5_17139
if 
  100@ == 0
goto_if_false @HEIST5_17139
if or
  Player.IsTargetingChar($player1, 63@)
  Char.HasBeenDamagedByWeapon(63@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_17076
100@ = 1

:HEIST5_17076
if 
  101@ > 1
goto_if_false @HEIST5_17139
if 
  TIMERB > 3000
goto_if_false @HEIST5_17139
if 
  Char.HasSpottedChar(63@, $scplayer)
goto_if_false @HEIST5_17139
100@ = 1

:HEIST5_17139
if 
  66@ == 0
goto_if_false @HEIST5_17326
if 
  Char.IsDead(65@)
goto_if_false @HEIST5_17194
100@ = 1
66@ = 1
goto @HEIST5_17326

:HEIST5_17194
if 
  99@ == 1
goto_if_false @HEIST5_17326
if 
  100@ == 0
goto_if_false @HEIST5_17326
if or
  Player.IsTargetingChar($player1, 65@)
  Char.HasBeenDamagedByWeapon(65@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_17263
100@ = 1

:HEIST5_17263
if 
  101@ > 1
goto_if_false @HEIST5_17326
if 
  TIMERB > 3000
goto_if_false @HEIST5_17326
if 
  Char.HasSpottedChar(65@, $scplayer)
goto_if_false @HEIST5_17326
100@ = 1

:HEIST5_17326
if 
  68@ == 0
goto_if_false @HEIST5_17513
if 
  Char.IsDead(67@)
goto_if_false @HEIST5_17381
100@ = 1
68@ = 1
goto @HEIST5_17513

:HEIST5_17381
if 
  99@ == 1
goto_if_false @HEIST5_17513
if 
  100@ == 0
goto_if_false @HEIST5_17513
if or
  Player.IsTargetingChar($player1, 67@)
  Char.HasBeenDamagedByWeapon(67@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_17450
100@ = 1

:HEIST5_17450
if 
  101@ > 1
goto_if_false @HEIST5_17513
if 
  TIMERB > 3000
goto_if_false @HEIST5_17513
if 
  Char.HasSpottedChar(67@, $scplayer)
goto_if_false @HEIST5_17513
100@ = 1

:HEIST5_17513
if 
  70@ == 0
goto_if_false @HEIST5_17700
if 
  Char.IsDead(69@)
goto_if_false @HEIST5_17568
100@ = 1
70@ = 1
goto @HEIST5_17700

:HEIST5_17568
if 
  99@ == 1
goto_if_false @HEIST5_17700
if 
  100@ == 0
goto_if_false @HEIST5_17700
if or
  Player.IsTargetingChar($player1, 69@)
  Char.HasBeenDamagedByWeapon(69@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_17637
100@ = 1

:HEIST5_17637
if 
  101@ > 1
goto_if_false @HEIST5_17700
if 
  TIMERB > 3000
goto_if_false @HEIST5_17700
if 
  Char.HasSpottedChar(69@, $scplayer)
goto_if_false @HEIST5_17700
100@ = 1

:HEIST5_17700
if 
  72@ == 0
goto_if_false @HEIST5_17887
if 
  Char.IsDead(71@)
goto_if_false @HEIST5_17755
100@ = 1
72@ = 1
goto @HEIST5_17887

:HEIST5_17755
if 
  99@ == 1
goto_if_false @HEIST5_17887
if 
  100@ == 0
goto_if_false @HEIST5_17887
if or
  Player.IsTargetingChar($player1, 71@)
  Char.HasBeenDamagedByWeapon(71@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_17824
100@ = 1

:HEIST5_17824
if 
  101@ > 1
goto_if_false @HEIST5_17887
if 
  TIMERB > 3000
goto_if_false @HEIST5_17887
if 
  Char.HasSpottedChar(71@, $scplayer)
goto_if_false @HEIST5_17887
100@ = 1

:HEIST5_17887
if 
  74@ == 0
goto_if_false @HEIST5_18074
if 
  Char.IsDead(73@)
goto_if_false @HEIST5_17942
100@ = 1
74@ = 1
goto @HEIST5_18074

:HEIST5_17942
if 
  99@ == 1
goto_if_false @HEIST5_18074
if 
  100@ == 0
goto_if_false @HEIST5_18074
if or
  Player.IsTargetingChar($player1, 73@)
  Char.HasBeenDamagedByWeapon(73@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_18011
100@ = 1

:HEIST5_18011
if 
  101@ > 1
goto_if_false @HEIST5_18074
if 
  TIMERB > 3000
goto_if_false @HEIST5_18074
if 
  Char.HasSpottedChar(73@, $scplayer)
goto_if_false @HEIST5_18074
100@ = 1

:HEIST5_18074
if 
  76@ == 0
goto_if_false @HEIST5_18261
if 
  Char.IsDead(75@)
goto_if_false @HEIST5_18129
100@ = 1
76@ = 1
goto @HEIST5_18261

:HEIST5_18129
if 
  99@ == 1
goto_if_false @HEIST5_18261
if 
  100@ == 0
goto_if_false @HEIST5_18261
if or
  Player.IsTargetingChar($player1, 75@)
  Char.HasBeenDamagedByWeapon(75@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_18198
100@ = 1

:HEIST5_18198
if 
  101@ > 1
goto_if_false @HEIST5_18261
if 
  TIMERB > 3000
goto_if_false @HEIST5_18261
if 
  Char.HasSpottedChar(75@, $scplayer)
goto_if_false @HEIST5_18261
100@ = 1

:HEIST5_18261
if 
  78@ == 0
goto_if_false @HEIST5_18448
if 
  Char.IsDead(77@)
goto_if_false @HEIST5_18316
100@ = 1
78@ = 1
goto @HEIST5_18448

:HEIST5_18316
if 
  99@ == 1
goto_if_false @HEIST5_18448
if 
  100@ == 0
goto_if_false @HEIST5_18448
if or
  Player.IsTargetingChar($player1, 77@)
  Char.HasBeenDamagedByWeapon(77@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_18385
100@ = 1

:HEIST5_18385
if 
  101@ > 1
goto_if_false @HEIST5_18448
if 
  TIMERB > 3000
goto_if_false @HEIST5_18448
if 
  Char.HasSpottedChar(77@, $scplayer)
goto_if_false @HEIST5_18448
100@ = 1

:HEIST5_18448
if 
  80@ == 0
goto_if_false @HEIST5_18635
if 
  Char.IsDead(79@)
goto_if_false @HEIST5_18503
100@ = 1
80@ = 1
goto @HEIST5_18635

:HEIST5_18503
if 
  99@ == 1
goto_if_false @HEIST5_18635
if 
  100@ == 0
goto_if_false @HEIST5_18635
if or
  Player.IsTargetingChar($player1, 79@)
  Char.HasBeenDamagedByWeapon(79@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_18572
100@ = 1

:HEIST5_18572
if 
  101@ > 1
goto_if_false @HEIST5_18635
if 
  TIMERB > 3000
goto_if_false @HEIST5_18635
if 
  Char.HasSpottedChar(79@, $scplayer)
goto_if_false @HEIST5_18635
100@ = 1

:HEIST5_18635
if 
  82@ == 0
goto_if_false @HEIST5_18822
if 
  Char.IsDead(81@)
goto_if_false @HEIST5_18690
100@ = 1
82@ = 1
goto @HEIST5_18822

:HEIST5_18690
if 
  99@ == 1
goto_if_false @HEIST5_18822
if 
  100@ == 0
goto_if_false @HEIST5_18822
if or
  Player.IsTargetingChar($player1, 81@)
  Char.HasBeenDamagedByWeapon(81@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_18759
100@ = 1

:HEIST5_18759
if 
  101@ > 1
goto_if_false @HEIST5_18822
if 
  TIMERB > 3000
goto_if_false @HEIST5_18822
if 
  Char.HasSpottedChar(81@, $scplayer)
goto_if_false @HEIST5_18822
100@ = 1

:HEIST5_18822
if 
  84@ == 0
goto_if_false @HEIST5_19009
if 
  Char.IsDead(83@)
goto_if_false @HEIST5_18877
100@ = 1
84@ = 1
goto @HEIST5_19009

:HEIST5_18877
if 
  99@ == 1
goto_if_false @HEIST5_19009
if 
  100@ == 0
goto_if_false @HEIST5_19009
if or
  Player.IsTargetingChar($player1, 83@)
  Char.HasBeenDamagedByWeapon(83@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_18946
100@ = 1

:HEIST5_18946
if 
  101@ > 1
goto_if_false @HEIST5_19009
if 
  TIMERB > 3000
goto_if_false @HEIST5_19009
if 
  Char.HasSpottedChar(83@, $scplayer)
goto_if_false @HEIST5_19009
100@ = 1

:HEIST5_19009
if 
  86@ == 0
goto_if_false @HEIST5_19196
if 
  Char.IsDead(85@)
goto_if_false @HEIST5_19064
100@ = 1
86@ = 1
goto @HEIST5_19196

:HEIST5_19064
if 
  99@ == 1
goto_if_false @HEIST5_19196
if 
  100@ == 0
goto_if_false @HEIST5_19196
if or
  Player.IsTargetingChar($player1, 85@)
  Char.HasBeenDamagedByWeapon(85@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_19133
100@ = 1

:HEIST5_19133
if 
  101@ > 1
goto_if_false @HEIST5_19196
if 
  TIMERB > 3000
goto_if_false @HEIST5_19196
if 
  Char.HasSpottedChar(85@, $scplayer)
goto_if_false @HEIST5_19196
100@ = 1

:HEIST5_19196
if 
  88@ == 0
goto_if_false @HEIST5_19383
if 
  Char.IsDead(87@)
goto_if_false @HEIST5_19251
100@ = 1
88@ = 1
goto @HEIST5_19383

:HEIST5_19251
if 
  99@ == 1
goto_if_false @HEIST5_19383
if 
  100@ == 0
goto_if_false @HEIST5_19383
if or
  Player.IsTargetingChar($player1, 87@)
  Char.HasBeenDamagedByWeapon(87@, WeaponType.AnyWeapon)
goto_if_false @HEIST5_19320
100@ = 1

:HEIST5_19320
if 
  101@ > 1
goto_if_false @HEIST5_19383
if 
  TIMERB > 3000
goto_if_false @HEIST5_19383
if 
  Char.HasSpottedChar(87@, $scplayer)
goto_if_false @HEIST5_19383
100@ = 1

:HEIST5_19383
if 
  98@ == 0
goto_if_false @HEIST5_19431
if 
  Char.IsDead(97@)
goto_if_false @HEIST5_19431
100@ = 1
98@ = 1

:HEIST5_19431
if 
  49@ == 0
goto_if_false @HEIST5_19479
if 
  Char.IsDead(42@)
goto_if_false @HEIST5_19479
100@ = 1
49@ = 1

:HEIST5_19479
if 
  50@ == 0
goto_if_false @HEIST5_19527
if 
  Char.IsDead(43@)
goto_if_false @HEIST5_19527
100@ = 1
50@ = 1

:HEIST5_19527
if 
  51@ == 0
goto_if_false @HEIST5_19575
if 
  Char.IsDead(44@)
goto_if_false @HEIST5_19575
100@ = 1
51@ = 1

:HEIST5_19575
if 
  52@ == 0
goto_if_false @HEIST5_19623
if 
  Char.IsDead(45@)
goto_if_false @HEIST5_19623
100@ = 1
52@ = 1

:HEIST5_19623
if 
  53@ == 0
goto_if_false @HEIST5_19671
if 
  Char.IsDead(46@)
goto_if_false @HEIST5_19671
100@ = 1
53@ = 1

:HEIST5_19671
if 
  54@ == 0
goto_if_false @HEIST5_19719
if 
  Char.IsDead(47@)
goto_if_false @HEIST5_19719
100@ = 1
54@ = 1

:HEIST5_19719
if 
  55@ == 0
goto_if_false @HEIST5_19767
if 
  Char.IsDead(48@)
goto_if_false @HEIST5_19767
100@ = 1
55@ = 1

:HEIST5_19767
return 

:HEIST5_19769
166@ = 0

:HEIST5_19776
if 
  7 > 166@
goto_if_false @HEIST5_20267
wait 0
gosub @HEIST5_16765
if 
  99@ == 1
goto_if_false @HEIST5_20023
gosub @HEIST5_15414
gosub @HEIST5_14160
if 
  100@ == 1
goto_if_false @HEIST5_19894
if 
  89@ == 0
goto_if_false @HEIST5_19887
gosub @HEIST5_14489
goto @HEIST5_19894

:HEIST5_19887
gosub @HEIST5_14887

:HEIST5_19894
if 
  100@ >= 1
goto_if_false @HEIST5_20023
if 
  103@ == 1
goto_if_false @HEIST5_20023
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @HEIST5_20023
Text.ClearThisPrint('HE5_BD')
if 
  98@ == 0
goto_if_false @HEIST5_20016
if 
  not Char.IsDead(97@)
goto_if_false @HEIST5_20009
Char.StopFacialTalk(97@)
Char.ShutUpForScriptedSpeech(97@, False)
goto @HEIST5_20016

:HEIST5_20009
98@ = 1

:HEIST5_20016
103@ = 2

:HEIST5_20023
if 
  not Char.IsDead(42@(166@,7i))
goto_if_false @HEIST5_20246
$task_status = Char.GetScriptTaskStatus(42@(166@,7i), 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @HEIST5_20239
if 
  99@ == 1
goto_if_false @HEIST5_20239
if 
  100@ == 0
goto_if_false @HEIST5_20227
if or
  Player.IsTargetingChar($player1, 42@(166@,7i))
  Char.HasBeenDamagedByWeapon(42@(166@,7i), WeaponType.AnyWeapon)
goto_if_false @HEIST5_20153
100@ = 1

:HEIST5_20153
if 
  101@ > 1
goto_if_false @HEIST5_20220
if 
  TIMERB > 3000
goto_if_false @HEIST5_20220
if 
  Char.HasSpottedChar(42@(166@,7i), $scplayer)
goto_if_false @HEIST5_20220
100@ = 1

:HEIST5_20220
goto @HEIST5_20239

:HEIST5_20227
Task.KillCharOnFoot(42@(166@,7i), $scplayer)

:HEIST5_20239
goto @HEIST5_20253

:HEIST5_20246
100@ = 1

:HEIST5_20253
166@ += 1
goto @HEIST5_19776

:HEIST5_20267
return 

:HEIST5_20269
if 
  62@ == 0
goto_if_false @HEIST5_20315
if 
  not Char.IsDead(61@)
goto_if_false @HEIST5_20315
Char.Delete(61@)
62@ = 1

:HEIST5_20315
if 
  64@ == 0
goto_if_false @HEIST5_20361
if 
  not Char.IsDead(63@)
goto_if_false @HEIST5_20361
Char.Delete(63@)
64@ = 1

:HEIST5_20361
if 
  66@ == 0
goto_if_false @HEIST5_20407
if 
  not Char.IsDead(65@)
goto_if_false @HEIST5_20407
Char.Delete(65@)
66@ = 1

:HEIST5_20407
if 
  68@ == 0
goto_if_false @HEIST5_20453
if 
  not Char.IsDead(67@)
goto_if_false @HEIST5_20453
Char.Delete(67@)
68@ = 1

:HEIST5_20453
if 
  70@ == 0
goto_if_false @HEIST5_20499
if 
  not Char.IsDead(69@)
goto_if_false @HEIST5_20499
Char.Delete(69@)
70@ = 1

:HEIST5_20499
if 
  72@ == 0
goto_if_false @HEIST5_20545
if 
  not Char.IsDead(71@)
goto_if_false @HEIST5_20545
Char.Delete(71@)
72@ = 1

:HEIST5_20545
if 
  74@ == 0
goto_if_false @HEIST5_20591
if 
  not Char.IsDead(73@)
goto_if_false @HEIST5_20591
Char.Delete(73@)
74@ = 1

:HEIST5_20591
if 
  76@ == 0
goto_if_false @HEIST5_20637
if 
  not Char.IsDead(75@)
goto_if_false @HEIST5_20637
Char.Delete(75@)
76@ = 1

:HEIST5_20637
if 
  78@ == 0
goto_if_false @HEIST5_20683
if 
  not Char.IsDead(77@)
goto_if_false @HEIST5_20683
Char.Delete(77@)
78@ = 1

:HEIST5_20683
if 
  80@ == 0
goto_if_false @HEIST5_20729
if 
  not Char.IsDead(79@)
goto_if_false @HEIST5_20729
Char.Delete(79@)
80@ = 1

:HEIST5_20729
if 
  82@ == 0
goto_if_false @HEIST5_20775
if 
  not Char.IsDead(81@)
goto_if_false @HEIST5_20775
Char.Delete(81@)
82@ = 1

:HEIST5_20775
if 
  84@ == 0
goto_if_false @HEIST5_20821
if 
  not Char.IsDead(83@)
goto_if_false @HEIST5_20821
Char.Delete(83@)
84@ = 1

:HEIST5_20821
if 
  86@ == 0
goto_if_false @HEIST5_20867
if 
  not Char.IsDead(85@)
goto_if_false @HEIST5_20867
Char.Delete(85@)
86@ = 1

:HEIST5_20867
if 
  88@ == 0
goto_if_false @HEIST5_20913
if 
  not Char.IsDead(87@)
goto_if_false @HEIST5_20913
Char.Delete(87@)
88@ = 1

:HEIST5_20913
if 
  not Char.IsDead($bankvan1_upright_value_heist5)
goto_if_false @HEIST5_20934
Char.Delete($bankvan1_upright_value_heist5)

:HEIST5_20934
if 
  not Car.IsDead($driver_gate_car_heist5)
goto_if_false @HEIST5_20955
Car.Delete($driver_gate_car_heist5)

:HEIST5_20955
Streaming.MarkModelAsNoLongerNeeded(470)
return 

:HEIST5_20962
if 
  98@ == 0
goto_if_false @HEIST5_21008
if 
  not Char.IsDead(97@)
goto_if_false @HEIST5_21008
Char.Delete(97@)
98@ = 1

:HEIST5_21008
if 
  49@ == 0
goto_if_false @HEIST5_21054
if 
  not Char.IsDead(42@)
goto_if_false @HEIST5_21054
Char.Delete(42@)
49@ = 1

:HEIST5_21054
if 
  50@ == 0
goto_if_false @HEIST5_21100
if 
  not Char.IsDead(43@)
goto_if_false @HEIST5_21100
Char.Delete(43@)
50@ = 1

:HEIST5_21100
if 
  51@ == 0
goto_if_false @HEIST5_21146
if 
  not Char.IsDead(44@)
goto_if_false @HEIST5_21146
Char.Delete(44@)
51@ = 1

:HEIST5_21146
if 
  52@ == 0
goto_if_false @HEIST5_21192
if 
  not Char.IsDead(45@)
goto_if_false @HEIST5_21192
Char.Delete(45@)
52@ = 1

:HEIST5_21192
if 
  53@ == 0
goto_if_false @HEIST5_21238
if 
  not Char.IsDead(46@)
goto_if_false @HEIST5_21238
Char.Delete(46@)
53@ = 1

:HEIST5_21238
if 
  54@ == 0
goto_if_false @HEIST5_21284
if 
  not Char.IsDead(47@)
goto_if_false @HEIST5_21284
Char.Delete(47@)
54@ = 1

:HEIST5_21284
if 
  55@ == 0
goto_if_false @HEIST5_21330
if 
  not Char.IsDead(48@)
goto_if_false @HEIST5_21330
Char.Delete(48@)
55@ = 1

:HEIST5_21330
90@ = 1
return 

//-------------Mission 101---------------
// Originally: Breaking the Bank at Caligula's

:HEIST9
script_name 'HEIST9'
gosub @HEIST9_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST9_38
gosub @HEIST9_44470

:HEIST9_38
gosub @HEIST9_44950
terminate_this_script 

:HEIST9_47
if 
  $d5_bronze_generator_unlocked == 1
goto_if_false @HEIST9_72
CarGenerator.Switch($d5_bronze_generator, 0)

:HEIST9_72
if 
  $d5_silver_generator_unlocked == 1
goto_if_false @HEIST9_97
CarGenerator.Switch($d5_silver_generator, 0)

:HEIST9_97
if 
  $d5_gold_generator_unlocked == 1
goto_if_false @HEIST9_122
CarGenerator.Switch($d5_gold_generator, 0)

:HEIST9_122
Zone.SetNoCops('MEAD', True)
Text.LoadMissionText('HEIST9')
$gate_drive_car_ai_heist5 = 0
$h9_offset = 0.0
$h9_player_in_casino = 0.0
$h9_z1 = 0.0
$h9_calculus = 0.0
$h9_under_door = 0
$h9_TIMERC = 0
Camera.SetFadingColor(0, 0, 0)
Stat.RegisterMissionGiven
$onmission = 1
$fFunTemp = 0
231@ = 2
$disable_mod_garage = 1
wait 0
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_340
Player.StoreClothesState
Player.GiveClothesOutsideShop($player1, "CROUPIER", "VALET", BodyPart.SpecialCostume)
Player.GiveClothes($player1, 0, 0, BodyPart.Head)
Player.GiveClothes($player1, 0, 0, BodyPart.Necklace)
Player.GiveClothes($player1, 0, 0, BodyPart.Glasses)
Player.GiveClothes($player1, 0, 0, BodyPart.Hat)
Player.BuildModel($player1)

:HEIST9_340
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:HEIST9_355
if 
  Camera.GetFadingStatus
goto_if_false @HEIST9_379
wait 0
goto @HEIST9_355

:HEIST9_379
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_490
Streaming.SetAreaVisible(0)
Char.SetHasUsedEntryExit($scplayer, 2016.422, 1017.102, 10.0)
Streaming.LoadScene(2028.932, 1023.292, 9.813)
World.ClearArea(2028.932, 1023.292, 9.813, 20.0, True)
Char.SetCoordinatesDontWarpGang($scplayer, 2028.932, 1023.292, 9.813)
Char.SetHeading($scplayer, 278.4092)

:HEIST9_490
Streaming.SetAreaVisible(0)
Cutscene.Load('HEIST8A')

:HEIST9_505
if 
  not Cutscene.HasLoaded
goto_if_false @HEIST9_529
wait 0
goto @HEIST9_505

:HEIST9_529
World.ClearArea(1908.433, 957.3687, 9.8203, 40.0, True)
Cutscene.Start
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:HEIST9_570
if 
  not Cutscene.HasFinished
goto_if_false @HEIST9_594
wait 0
goto @HEIST9_570

:HEIST9_594
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)

:HEIST9_608
if 
  Camera.GetFadingStatus
goto_if_false @HEIST9_632
wait 0
goto @HEIST9_608

:HEIST9_632
Cutscene.Clear
39@ = Blip.AddForCoord(2196.715, 1677.198, 11.375)
217@ = DecisionMakerChar.Load(DecisionMakerType.Weak)
89@ = DecisionMakerChar.Load(DecisionMakerType.Normal)
120@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
245@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
Game.SetRelationship(RelationshipType.Like, PedType.Mission3, PedType.Mission3)
Game.SetRelationship(RelationshipType.Dislike, PedType.Mission3, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Mission2)
Game.SetRelationship(RelationshipType.Like, PedType.Mission2, PedType.Player1)
DecisionMakerChar.AddEventResponse(89@, 37, 300, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse(245@, 37, 300, 0.0, 100.0, 0.0, 0.0, True, True)
Streaming.RequestModel(347)
Streaming.RequestModel(343)
Streaming.RequestModel(368)
Streaming.RequestModel(#BODYARMOUR)
Streaming.RequestModel(353)
Streaming.RequestModel(335)
Streaming.RequestModel(346)
Streaming.RequestAnimation("HEIST9")

:HEIST9_834
if or
  not Streaming.HasModelLoaded(347)
  not Streaming.HasModelLoaded(343)
  not Streaming.HasModelLoaded(368)
  not Streaming.HasModelLoaded(#BODYARMOUR)
goto_if_false @HEIST9_875
wait 0
goto @HEIST9_834

:HEIST9_875
if or
  not Streaming.HasModelLoaded(353)
  not Streaming.HasModelLoaded(335)
  not Streaming.HasAnimationLoaded("HEIST9")
  not Streaming.HasModelLoaded(346)
goto_if_false @HEIST9_922
wait 0
goto @HEIST9_875

:HEIST9_922
$h9_health = 240000
Player.ClearWantedLevel($player1)
Game.SetWantedMultiplier(0.0)
Player.SetControl($player1, True)
171@ = Object.Create(#GENERATOR_BIG, 2145.05, 1613.49, 999.9764)
Object.SetAreaVisible(171@, 1)
Object.SetHeading(171@, 1.2043)
172@ = Object.Create(#GENERATOR_BIG, 2148.8, 1613.49, 999.9764)
Object.SetAreaVisible(172@, 1)
Object.SetHeading(172@, 354.0372)
212@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R", "HEIST9", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_R", "HEIST9", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootTimed(-1, $scplayer, 2000)
Task.StayInSamePlace(-1, False)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_OUT_R", "HEIST9", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R_BACK", "HEIST9", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(212@, True)
Sequence.Close(212@)
213@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L", "HEIST9", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_L", "HEIST9", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootTimed(-1, $scplayer, 2000)
Task.StayInSamePlace(-1, False)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_OUT_L", "HEIST9", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L_BACK", "HEIST9", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(213@, True)
Sequence.Close(213@)
Group.SetSeparationRange($Players_Group, 300.0)
Group.SetDefaultTaskAllocator($Players_Group, DefaultTaskAllocator.FollowAnyMeans)
Char.GiveWeapon($scplayer, WeaponType.PistolSilenced, 300)
Char.GiveWeapon($scplayer, WeaponType.Teargas, 10)
Char.GiveWeapon($scplayer, WeaponType.Mp5, 300)
Char.GiveWeapon($scplayer, WeaponType.NightVision, 300)
Char.GiveWeapon($scplayer, WeaponType.Knife, 300)
Char.SetCurrentWeapon($scplayer, WeaponType.Teargas)
Streaming.MarkModelAsNoLongerNeeded(335)
Streaming.MarkModelAsNoLongerNeeded(347)
Streaming.MarkModelAsNoLongerNeeded(368)
Streaming.MarkModelAsNoLongerNeeded(343)
41@ = Object.CreateNoOffset(#AB_CASDORLOK, 2148.56, 1604.609, 1006.5)
Object.SetAreaVisible(41@, 1)
Object.SetHeading(41@, 180.0)
48@ = Object.CreateNoOffset(#AB_CASDORLOK, 2177.16, 1594.322, 1000.4)
Object.SetAreaVisible(48@, 1)
Object.SetHeading(48@, 180.0)
49@ = Object.CreateNoOffset(#WAREHOUSE_DOOR2B, 2220.188, 1571.763, 1001.6)
Object.SetAreaVisible(49@, 1)
Object.SetHeading(49@, 270.0)
Object.SetCollisionDamageEffect(49@, False)
196@ = Object.CreateNoOffset(#WAREHOUSE_DOOR2B, 2220.188, 1571.7, 1005.8)
Object.SetAreaVisible(196@, 1)
Object.SetHeading(196@, 270.0)
Object.SetCollision(196@, False)
Object.SetCollisionDamageEffect(49@, False)
42@ = Object.CreateNoOffset(#WAREHOUSE_DOOR2B, 2203.2, 1551.743, 1009.0)
Object.SetAreaVisible(42@, 1)
Object.SetHeading(42@, 0.0)
Object.SetCollisionDamageEffect(42@, False)
34@ = 1001.4
60@ = Object.CreateNoOffset(#AB_VAULTDOOR, 2144.18, 1626.947, 994.28)
Object.SetHeading(60@, 180.0)
Object.SetAreaVisible(60@, 1)
96@ = Object.CreateNoOffset(#SEC_KEYPAD, 2168.5, 1617.335, 1000.4)
Object.SetAreaVisible(96@, 1)
Object.SetHeading(96@, 270.0)
Object.SetCollision(96@, False)
$gate_drive_car_ai_heist5 = Pickup.Create(#BODYARMOUR, PickupType.Once, 2176.471, 1597.394, 1000.0)
285@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2144.339, 1640.666, 993.5)
goto @HEIST9_2362

:HEIST9_1936
Streaming.RequestModel(117)
Streaming.RequestModel(428)
Streaming.LoadSpecialCharacter(2, 'WUZIMU')
Streaming.LoadSpecialCharacter(3, 'JANITOR')

:HEIST9_1971
if or
  not Streaming.HasModelLoaded(117)
  not Streaming.HasModelLoaded(428)
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasSpecialCharacterLoaded(3)
goto_if_false @HEIST9_2010
wait 0
goto @HEIST9_1971

:HEIST9_2010
51@ = Car.Create(428, 2220.344, 1551.767, 1003.719)
Car.SetAreaVisible(51@, 1)
Car.SetHeading(51@, 176.7739)
Car.SetAlwaysCreateSkids(51@, False)
Car.LockDoors(51@, CarLock.LockoutPlayerOnly)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Mission2)
Game.SetRelationship(RelationshipType.Like, PedType.Mission2, PedType.Player1)
54@ = Char.CreateInsideCar(51@, PedType.Mission2, 291)
Char.SetAreaVisible(54@, 1)
55@ = Char.CreateAsPassenger(51@, PedType.Mission2, 117, 2)
Char.SetAreaVisible(55@, 1)
56@ = Char.CreateAsPassenger(51@, PedType.Mission2, 117, 1)
Char.SetAreaVisible(56@, 1)
57@ = Char.CreateAsPassenger(51@, PedType.Mission2, 292, 0)
Char.SetAreaVisible(57@, 1)
Char.SetAnimGroup(54@, "BLINDMAN")
58@ = 0

:HEIST9_2194
Char.SetFollowNodeThresholdDistance(54@(58@,4i), 2.0)
Char.GiveWeapon(54@(58@,4i), WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(54@(58@,4i), WeaponType.Mp5)
Char.SetDecisionMaker(54@(58@,4i), 120@)
Char.SetNeverTargeted(54@(58@,4i), True)
Char.SetProofs(54@(58@,4i), False, False, False, True, False)
Char.SetSuffersCriticalHits(54@(58@,4i), False)
Char.SetMaxHealth(54@(58@,4i), 500)
Char.SetHealth(54@(58@,4i), 500)
Char.SetAccuracy(54@(58@,4i), 60)
Char.SetSignalAfterKill(54@(58@,4i), False)
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_2194
250@ = 1
return 

:HEIST9_2362
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_2390
Char.SetHeading($scplayer, 270.0)
Camera.SetBehindPlayer

:HEIST9_2390
gosub @HEIST9_46360
215@ = 1
231@ = 2
38@ = 1
107@ = 0
TIMERB = 0
World.SwitchEntryExit('JUMP1', False)
World.SwitchEntryExit('JUMP2', False)
World.SwitchEntryExit('MAFCAS2', False)
290@ = 1
308@ = Object.CreateNoOffset(#TMP_BIN, 2188.845, 1619.136, 999.3)
Object.SetAreaVisible(308@, 1)
Object.SetHeading(308@, 270.0)
310@ = Object.CreateNoOffset(#K_SMASHBOXES, 2139.343, 1617.604, 992.5)
Object.SetAreaVisible(310@, 1)
Object.SetHeading(310@, 0.1132)
311@ = Object.CreateNoOffset(#K_SMASHBOXES, 2148.0, 1622.107, 992.5)
Object.SetAreaVisible(311@, 1)
Object.SetHeading(311@, 179.6736)

:HEIST9_2598
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_43651
wait 0
gosub @HEIST9_46393
gosub @HEIST9_50670
$h9_can_see = Streaming.GetAreaVisible()
if 
  0 >= $h9_health
goto_if_false @HEIST9_2690
gosub @HEIST9_50385
Text.PrintNow('HM9_1B', 4000, 1)
goto @HEIST9_44470
Hud.ClearTimer($h9_health)

:HEIST9_2690
if 
  290@ <> 0
goto_if_false @HEIST9_3136
if and
  231@ == 2
  290@ == 1
goto_if_false @HEIST9_2792
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_2756
Char.ShutUpForScriptedSpeech($scplayer, True)

:HEIST9_2756
set_lvar_text_label 288@s = 'HE8_AA'
set_lvar_int_to_constant 232@ = 12223
gosub @HEIST9_50650
290@ = 2

:HEIST9_2792
if and
  231@ == 2
  290@ == 2
goto_if_false @HEIST9_2877
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_2841
Char.StartFacialTalk($scplayer, 10000)

:HEIST9_2841
set_lvar_text_label 288@s = 'HE8_AB'
set_lvar_int_to_constant 232@ = 12285
gosub @HEIST9_50650
290@ = 3

:HEIST9_2877
if and
  231@ == 2
  290@ == 3
goto_if_false @HEIST9_2959
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_2923
Char.StopFacialTalk($scplayer)

:HEIST9_2923
set_lvar_text_label 288@s = 'HE8_AC'
set_lvar_int_to_constant 232@ = 12224
gosub @HEIST9_50650
290@ = 4

:HEIST9_2959
if and
  231@ == 2
  290@ == 4
goto_if_false @HEIST9_3044
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_3008
Char.StartFacialTalk($scplayer, 10000)

:HEIST9_3008
set_lvar_text_label 288@s = 'HE8_AD'
set_lvar_int_to_constant 232@ = 12286
gosub @HEIST9_50650
290@ = 5

:HEIST9_3044
if and
  231@ == 2
  290@ == 5
goto_if_false @HEIST9_3136
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_3090
Char.StopFacialTalk($scplayer)

:HEIST9_3090
Text.PrintNow('HM9_28', 9000, 1)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_3129
Char.ShutUpForScriptedSpeech($scplayer, False)

:HEIST9_3129
290@ = 6

:HEIST9_3136
$h9_TIMERC = Streaming.GetAreaVisible()
if 
  $h9_TIMERC == 0
goto_if_false @HEIST9_3207
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_3200
Player.DisableSprint($player1, False)
$fFunTemp = 0
$h9_safe_timer = 0
Hud.SetRadarZoom(0)

:HEIST9_3200
goto @HEIST9_3234

:HEIST9_3207
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_3234
Player.DisableSprint($player1, True)
Hud.SetRadarZoom(100)

:HEIST9_3234
if or
  Char.LocateAnyMeans3D($scplayer, 2233.91, 1712.599, 1010.877, 50.0, 50.0, 50.0, False)
  Char.LocateAnyMeans3D($scplayer, 2265.79, 1619.58, 1089.445, 50.0, 50.0, 50.0, False)
  Char.LocateAnyMeans3D($scplayer, 2267.056, 1675.385, 1089.445, 50.0, 50.0, 50.0, False)
goto_if_false @HEIST9_3367
Hud.SetRadarZoom(100)
$h9_safe_timer = 1

:HEIST9_3367
if and
  303@ == 0
  $h9_safe_timer == 1
goto_if_false @HEIST9_3506
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_3506
if and
  not Char.IsCurrentWeapon($scplayer, WeaponType.Unarmed)
  not Char.IsCurrentWeapon($scplayer, WeaponType.NightVision)
  not Char.IsCurrentWeapon($scplayer, WeaponType.Teargas)
  not Char.IsCurrentWeapon($scplayer, WeaponType.BrassKnuckles)
  not Char.IsCurrentWeapon($scplayer, WeaponType.Knife)
goto_if_false @HEIST9_3491
Game.SetRelationship(RelationshipType.Hate, PedType.CivMale, PedType.Player1)
Text.PrintNow('HM9_99', 100, 1)
300@ = 1
goto @HEIST9_3506

:HEIST9_3491
Game.SetRelationship(RelationshipType.Like, PedType.CivMale, PedType.Player1)
300@ = 0

:HEIST9_3506
if 
  not Player.IsWearing($player1, 17, "CROUPIER")
goto_if_false @HEIST9_3557
Text.PrintNow('HM9_52', 4000, 1)
goto @HEIST9_44470

:HEIST9_3557
if and
  $fFunTemp == 1
  106@ == 0
  $h9_safe_timer == 1
goto_if_false @HEIST9_3619
gosub @HEIST9_50385
Text.PrintNow('HM9_52', 4000, 1)
goto @HEIST9_44470

:HEIST9_3619
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_3713
if and
  Char.LocateAnyMeans3D($scplayer, 2180.981, 1677.813, 10.0609, 30.0, 30.0, 30.0, False)
  243@ == 0
goto_if_false @HEIST9_3713
Text.PrintNow('HM9_54', 7000, 1)
243@ = 1

:HEIST9_3713
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @HEIST9_3735
goto @HEIST9_44518

:HEIST9_3735
if and
  2 >= 38@
  not Char.IsDead($scplayer)
  284@ == 0
goto_if_false @HEIST9_3814
175@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Teargas)
if and
  0 >= 175@
  2 >= 38@
goto_if_false @HEIST9_3814
284@ = 1
TIMERA = 0

:HEIST9_3814
if and
  TIMERA > 2000
  284@ == 1
  173@ == 0
goto_if_false @HEIST9_3934
if or
  $h9_safe_timer == 1
  $h9_TIMERC == 0
goto_if_false @HEIST9_3934
if 
  $h9_safe_timer == 1
goto_if_false @HEIST9_3904
gosub @HEIST9_50385
goto @HEIST9_3911

:HEIST9_3904
gosub @HEIST9_50604

:HEIST9_3911
Text.PrintNow('HM9_48', 4000, 1)
goto @HEIST9_44470

:HEIST9_3934
if and
  Car.IsDead(51@)
  174@ == 0
  250@ == 1
goto_if_false @HEIST9_3994
gosub @HEIST9_50385
Text.PrintNow('HM9_15', 4000, 1)
goto @HEIST9_44470

:HEIST9_3994
$h9_under_door += 1
if 
  38@ == 1
goto_if_false @HEIST9_4398
if 
  $h9_safe_timer == 1
goto_if_false @HEIST9_4398
if 
  Blip.DoesExist(39@)
goto_if_false @HEIST9_4058
Blip.Remove(39@)

:HEIST9_4058
Text.ClearPrints
38@ = 2
215@ = 1
TIMERB = 0
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
44@ = Blip.AddForCoord(2148.995, 1605.08, 1005.172)
Blip.SetEntryExit(44@, 2196.635, 1676.841, 10.0)
Streaming.RequestModel(163)
Streaming.RequestModel(164)

:HEIST9_4138
if or
  not Streaming.HasModelLoaded(163)
  not Streaming.HasModelLoaded(164)
goto_if_false @HEIST9_4170
wait 0
goto @HEIST9_4138

:HEIST9_4170
109@ = Char.Create(PedType.Mission1, 163, 2146.58, 1622.228, 992.6882)
Char.SetAreaVisible(109@, 1)
Char.SetHeading(109@, 83.607)
110@ = Char.Create(PedType.Mission1, 163, 2141.41, 1626.068, 992.6882)
Char.SetAreaVisible(110@, 1)
Char.SetHeading(110@, 188.011)
111@ = Char.Create(PedType.CivMale, 164, 2151.187, 1605.832, 1005.188)
Char.SetAreaVisible(111@, 1)
Char.SetHeading(111@, 359.346)
Char.SetDecisionMaker(111@, 120@)
Task.StayInSamePlace(111@, True)
58@ = 0

:HEIST9_4318
Char.GiveWeapon(109@(58@,5i), WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(109@(58@,5i), WeaponType.Mp5)
Char.AddArmor(109@(58@,5i), 200)
Task.StayInSamePlace(109@(58@,5i), True)
Char.SetNeverTargeted(109@(58@,5i), True)
58@ += 1
  58@ >= 2
goto_if_false @HEIST9_4318

:HEIST9_4398
if 
  38@ == 2
goto_if_false @HEIST9_10446
if 
  not Char.IsDead(111@)
goto_if_false @HEIST9_4481
if 
  Char.HasBeenDamagedByChar(111@, $scplayer)
goto_if_false @HEIST9_4481
gosub @HEIST9_50385
Text.PrintNow('HM9_52', 4000, 1)
goto @HEIST9_44470

:HEIST9_4481
if and
  Char.IsDead(111@)
  106@ == 0
goto_if_false @HEIST9_4534
gosub @HEIST9_50385
Text.PrintNow('HM9_52', 4000, 1)
goto @HEIST9_44470

:HEIST9_4534
if 
  215@ <> 0
goto_if_false @HEIST9_5179
if 
  215@ == 1
goto_if_false @HEIST9_4628
$h9_health = 240000
Hud.DisplayTimerWithString($h9_health, TimerDirection.Down, 'HM9_1A')
Text.PrintWithNumberNow('HM9_1D', 4, 5000, 1)
TIMERB = 0
215@ = 2

:HEIST9_4628
if and
  TIMERB > 4000
  215@ == 2
goto_if_false @HEIST9_4713
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_4677
Char.ShutUpForScriptedSpeech($scplayer, True)

:HEIST9_4677
set_lvar_text_label 288@s = 'HE8_BA'
set_lvar_int_to_constant 232@ = 12225
gosub @HEIST9_50650
215@ = 3

:HEIST9_4713
if and
  231@ == 2
  215@ == 3
goto_if_false @HEIST9_4798
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_4762
Char.StartFacialTalk($scplayer, 10000)

:HEIST9_4762
set_lvar_text_label 288@s = 'HE8_BB'
set_lvar_int_to_constant 232@ = 12287
gosub @HEIST9_50650
215@ = 4

:HEIST9_4798
if and
  231@ == 2
  215@ == 4
goto_if_false @HEIST9_4880
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_4844
Char.StopFacialTalk($scplayer)

:HEIST9_4844
set_lvar_text_label 288@s = 'HE8_BC'
set_lvar_int_to_constant 232@ = 12226
gosub @HEIST9_50650
215@ = 5

:HEIST9_4880
if and
  231@ == 2
  215@ == 5
goto_if_false @HEIST9_4965
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_4929
Char.StartFacialTalk($scplayer, 10000)

:HEIST9_4929
set_lvar_text_label 288@s = 'HE8_BD'
set_lvar_int_to_constant 232@ = 12288
gosub @HEIST9_50650
215@ = 6

:HEIST9_4965
if and
  231@ == 2
  215@ == 6
goto_if_false @HEIST9_5047
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_5011
Char.StopFacialTalk($scplayer)

:HEIST9_5011
set_lvar_text_label 288@s = 'HE8_BE'
set_lvar_int_to_constant 232@ = 12227
gosub @HEIST9_50650
215@ = 7

:HEIST9_5047
if and
  231@ == 2
  215@ == 7
goto_if_false @HEIST9_5108
set_lvar_text_label 288@s = 'HE8_BF'
set_lvar_int_to_constant 232@ = 12228
gosub @HEIST9_50650
215@ = 8

:HEIST9_5108
if and
  231@ == 2
  215@ == 8
goto_if_false @HEIST9_5179
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_5156
Char.ShutUpForScriptedSpeech($scplayer, False)

:HEIST9_5156
Text.PrintNow('HM9_2', 7000, 1)
215@ = 0

:HEIST9_5179
if and
  Char.LocateAnyMeans3D($scplayer, 2147.756, 1605.401, 1005.17, 3.0, 3.0, 3.0, False)
  216@ == 0
goto_if_false @HEIST9_6325
if 
  300@ == 1
goto_if_false @HEIST9_5282
gosub @HEIST9_50385
Text.PrintNow('HM9_52', 4000, 1)
goto @HEIST9_44470

:HEIST9_5282
gosub @HEIST9_46291
if and
  not Char.IsDead($scplayer)
  not Char.IsDead(111@)
goto_if_false @HEIST9_5363
Char.SetCoordinatesDontWarpGang($scplayer, 2147.675, 1607.399, 1005.188)
Char.SetHeading($scplayer, 188.6317)
Player.SetControl($player1, False)
Task.TurnCharToFaceChar($scplayer, 111@)
Task.TurnCharToFaceChar(111@, $scplayer)

:HEIST9_5363
if 
  not Char.IsDead(111@)
goto_if_false @HEIST9_5409
Char.SetCoordinatesDontWarpGang(111@, 2151.187, 1605.832, 1005.188)
Char.SetHeading(111@, 359.346)

:HEIST9_5409
Camera.SetFixedPosition(2152.125, 1606.502, 1006.716, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2151.135, 1606.365, 1006.719, SwitchType.JumpCut)
Text.PrintNow('HE8_CA', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12319)

:HEIST9_5487
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_5513
wait 0
goto @HEIST9_5487

:HEIST9_5513
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
wait 1000
TIMERB = 0

:HEIST9_5529
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_5579
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_5572
goto @HEIST9_6254

:HEIST9_5572
goto @HEIST9_5529

:HEIST9_5579
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_5631
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 1.0, False, False, False, False, -1)

:HEIST9_5631
Text.PrintNow('HE8_CB', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12289)

:HEIST9_5658
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_5684
wait 0
goto @HEIST9_5658

:HEIST9_5684
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_5695
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_5745
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_5738
goto @HEIST9_6254

:HEIST9_5738
goto @HEIST9_5695

:HEIST9_5745
Text.PrintNow('HE8_CC', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12229)

:HEIST9_5772
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_5798
wait 0
goto @HEIST9_5772

:HEIST9_5798
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_5809
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_5859
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_5852
goto @HEIST9_6254

:HEIST9_5852
goto @HEIST9_5809

:HEIST9_5859
Text.PrintNow('HE8_CD', 2000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12290)

:HEIST9_5886
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_5912
wait 0
goto @HEIST9_5886

:HEIST9_5912
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_5923
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_5973
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_5966
goto @HEIST9_6254

:HEIST9_5966
goto @HEIST9_5923

:HEIST9_5973
Text.PrintNow('HE8_CE', 2000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12320)

:HEIST9_6000
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_6026
wait 0
goto @HEIST9_6000

:HEIST9_6026
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_6037
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_6087
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_6080
goto @HEIST9_6254

:HEIST9_6080
goto @HEIST9_6037

:HEIST9_6087
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_6140
Task.PlayAnim($scplayer, "IDLE_TIRED", "PED", 1.0, False, False, False, False, -1)

:HEIST9_6140
Text.PrintNow('HE8_CF', 3000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12291)

:HEIST9_6167
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_6193
wait 0
goto @HEIST9_6167

:HEIST9_6193
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_6204
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_6254
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_6247
goto @HEIST9_6254

:HEIST9_6247
goto @HEIST9_6204

:HEIST9_6254
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
if and
  not Char.IsDead($scplayer)
  not Char.IsDead(111@)
goto_if_false @HEIST9_6304
Char.ClearTasksImmediately($scplayer)
Char.SetHeading(111@, 3.8184)
Char.SetHeading($scplayer, 207.6449)

:HEIST9_6304
gosub @HEIST9_46308
215@ = 0
216@ = 1

:HEIST9_6325
if and
  Char.LocateAnyMeans3D($scplayer, 2149.008, 1605.299, 1005.172, 2.0, 2.0, 2.0, False)
  36@ == 0
goto_if_false @HEIST9_6644
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @HEIST9_6404
Text.PrintHelpForever('HM9_29')

:HEIST9_6404
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @HEIST9_6637
if and
  not Char.IsDead($scplayer)
  not Player.IsDead($player1)
goto_if_false @HEIST9_6527
Player.SetControl($player1, False)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinatesDontWarpGang($scplayer, 2149.008, 1605.299, 1005.172)
Char.SetHeading($scplayer, 188.7539)
Task.PlayAnim($scplayer, "USE_SWIPECARD", "HEIST9", 2.0, False, False, False, False, -1)

:HEIST9_6527
wait 500
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 33400)

:HEIST9_6545
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST9_6571
wait 0
goto @HEIST9_6545

:HEIST9_6571
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST9_6590
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:HEIST9_6590
wait 1000
if and
  not Char.IsDead($scplayer)
  not Player.IsDead($player1)
goto_if_false @HEIST9_6623
Player.SetControl($player1, True)

:HEIST9_6623
303@ = 1
36@ = 1

:HEIST9_6637
goto @HEIST9_6646

:HEIST9_6644
Text.ClearHelp

:HEIST9_6646
if and
  36@ == 1
  107@ == 0
goto_if_false @HEIST9_7357
Text.ClearHelp
Streaming.RequestModel(11)
Streaming.RequestModel(172)

:HEIST9_6682
if or
  not Streaming.HasModelLoaded(172)
  not Streaming.HasModelLoaded(11)
goto_if_false @HEIST9_6713
wait 0
goto @HEIST9_6682

:HEIST9_6713
53@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2144.01, 1603.086, 1000.968)
Path.ExtendRoute(2163.409, 1602.779, 998.9785)
Path.ExtendRoute(2158.457, 1602.36, 998.9719)
Path.ExtendRoute(2158.192, 1597.875, 998.9711)
Path.ExtendRoute(2157.961, 1612.835, 998.9677)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Path.FlushRoute
Path.ExtendRoute(2158.395, 1618.554, 998.9647)
Path.ExtendRoute(2157.961, 1612.835, 998.9677)
Path.ExtendRoute(2158.192, 1597.875, 998.9711)
Path.ExtendRoute(2158.457, 1602.36, 998.9719)
Path.ExtendRoute(2163.409, 1602.779, 998.9785)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Path.FlushRoute
Sequence.SetToRepeat(53@, True)
Sequence.Close(53@)
218@ = Char.Create(PedType.Mission3, 172, 2144.01, 1603.086, 1000.968)
Char.SetAreaVisible(218@, 1)
Char.SetDecisionMaker(218@, 89@)
Char.PerformSequence(218@, 53@)
219@ = Char.Create(PedType.Mission3, 11, 2148.394, 1596.737, 998.768)
Char.SetAreaVisible(219@, 1)
Char.SetDecisionMaker(219@, 89@)
220@ = Char.Create(PedType.Mission3, 172, 2149.355, 1597.133, 998.768)
Char.SetAreaVisible(220@, 1)
Char.SetDecisionMaker(220@, 89@)
222@ = Char.Create(PedType.Mission3, 163, 2146.831, 1603.942, 1000.968)
Char.SetHeading(222@, 187.4626)
Char.SetAreaVisible(222@, 1)
Char.GiveWeapon(222@, WeaponType.Pistol, 30000)
Char.SetCurrentWeapon(222@, WeaponType.Pistol)
Char.SetDecisionMaker(222@, 245@)
Task.StayInSamePlace(222@, True)
223@ = Char.Create(PedType.Mission3, 172, 2170.674, 1603.371, 998.9696)
Char.SetAreaVisible(223@, 1)
Char.SetDecisionMaker(223@, 89@)
224@ = Char.Create(PedType.Mission3, 172, 2169.843, 1605.299, 998.9706)
Char.SetAreaVisible(224@, 1)
Char.SetDecisionMaker(224@, 89@)
Task.ChatWithChar(219@, 220@, True, 1)
Task.ChatWithChar(220@, 219@, False, 1)
Task.ChatWithChar(223@, 224@, True, 1)
Task.ChatWithChar(224@, 223@, False, 1)
117@ = 1
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_7279
Char.ClearTasksImmediately($scplayer)

:HEIST9_7279
Sequence.Clear(53@)
Blip.Remove(44@)
35@ = 1
108@ = Blip.AddForCoord(2143.046, 1620.661, 999.968)
Blip.SetEntryExit(108@, 2196.635, 1676.841, 10.0)
107@ = 1
302@ = 2
TIMERA = 0

:HEIST9_7357
if and
  Char.LocateAnyMeans3D($scplayer, 2147.863, 1599.649, 1003.534, 2.0, 2.0, 2.0, False)
  106@ == 0
goto_if_false @HEIST9_7462
106@ = 1
World.ClearArea(2192.605, 1601.92, 1004.063, 100.0, True)
World.SetPedDensityMultiplier(0.0)
Char.Delete(111@)
TIMERB = 0

:HEIST9_7462
if and
  231@ == 2
  302@ == 2
  TIMERA > 1000
goto_if_false @HEIST9_7554
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_7518
Char.ShutUpForScriptedSpeech($scplayer, True)

:HEIST9_7518
set_lvar_text_label 288@s = 'HE8_DB'
set_lvar_int_to_constant 232@ = 12230
gosub @HEIST9_50650
302@ = 3

:HEIST9_7554
if and
  231@ == 2
  302@ == 3
goto_if_false @HEIST9_7615
set_lvar_text_label 288@s = 'HE8_DD'
set_lvar_int_to_constant 232@ = 12232
gosub @HEIST9_50650
302@ = 0

:HEIST9_7615
if and
  Char.LocateAnyMeans3D($scplayer, 2148.252, 1605.901, 1000.114, 1.2, 1.2, 1.2, False)
  244@ == 0
goto_if_false @HEIST9_7684
244@ = 1
302@ = 0

:HEIST9_7684
if and
  231@ == 2
  244@ == 1
goto_if_false @HEIST9_7776
303@ = 1
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_7740
Char.StartFacialTalk($scplayer, 10000)

:HEIST9_7740
set_lvar_text_label 288@s = 'HE8_EA'
set_lvar_int_to_constant 232@ = 12293
gosub @HEIST9_50650
244@ = 2

:HEIST9_7776
if and
  231@ == 2
  244@ == 2
goto_if_false @HEIST9_7858
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_7822
Char.StopFacialTalk($scplayer)

:HEIST9_7822
set_lvar_text_label 288@s = 'HE8_EB'
set_lvar_int_to_constant 232@ = 12233
gosub @HEIST9_50650
244@ = 3

:HEIST9_7858
if and
  231@ == 2
  244@ == 3
goto_if_false @HEIST9_7919
set_lvar_text_label 288@s = 'HE8_EC'
set_lvar_int_to_constant 232@ = 12234
gosub @HEIST9_50650
244@ = 4

:HEIST9_7919
if and
  231@ == 2
  244@ == 4
goto_if_false @HEIST9_8003
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_7967
Char.ShutUpForScriptedSpeech($scplayer, False)

:HEIST9_7967
set_lvar_text_label 288@s = 'HE8_ED'
set_lvar_int_to_constant 232@ = 12294
gosub @HEIST9_50650
244@ = 5

:HEIST9_8003
if 
  Char.LocateAnyMeans3D($scplayer, 2254.543, 1706.5, 1.1746, 1.2, 1.2, 1.2, False)
goto_if_false @HEIST9_8067
Text.PrintNow('HM9_36', 1000, 1)

:HEIST9_8067
if and
  45 > 106@
  106@ <> 0
goto_if_false @HEIST9_8116
  Object.Rotate(41@, 180.0, 2.0, False)
106@ += 1

:HEIST9_8116
if and
  45 > 117@
  117@ <> 0
goto_if_false @HEIST9_8165
  Object.Rotate(41@, 270.0, 2.0, False)
117@ += 1

:HEIST9_8165
58@ = 0

:HEIST9_8172
if 
  not Char.IsDead(109@(58@,5i))
goto_if_false @HEIST9_8351
if 
  Char.HasBeenDamagedByChar(109@(58@,5i), $scplayer)
goto_if_false @HEIST9_8245
gosub @HEIST9_50385
Text.PrintNow('HM9_52', 4000, 1)
goto @HEIST9_44470

:HEIST9_8245
if 
  Char.HasBeenDamagedByChar($scplayer, 109@(58@,5i))
goto_if_false @HEIST9_8298
gosub @HEIST9_50385
Text.PrintNow('HM9_52', 4000, 1)
goto @HEIST9_44470

:HEIST9_8298
if 
  Char.HasSpottedChar(109@(58@,5i), $scplayer)
goto_if_false @HEIST9_8351
gosub @HEIST9_50385
Text.PrintNow('HM9_37', 4000, 1)
goto @HEIST9_44470

:HEIST9_8351
58@ += 1
  58@ >= 2
goto_if_false @HEIST9_8172
if and
  World.IsProjectileInArea(2144.464, 1621.26, 1002.136, 2136.209, 1626.877, 997.7474)
  173@ == 0
goto_if_false @HEIST9_8477
173@ = 1
302@ = 0
244@ = 0
Game.SwitchObjectBrains(ScriptBrainAttachType.Object, False)
$iTerminateAllAmbience = 1
TIMERA = 0
gosub @HEIST9_46327
gosub @HEIST9_1936

:HEIST9_8477
if and
  Char.LocateAnyMeans3D($scplayer, 2145.79, 1613.851, 999.968, 5.0, 5.0, 5.0, False)
  114@ == 0
  173@ == 0
goto_if_false @HEIST9_8627
114@ = 1
World.ClearArea(2144.323, 1622.684, 992.5681, 30.0, True)
58@ = 0

:HEIST9_8577
if 
  not Char.IsDead(109@(58@,5i))
goto_if_false @HEIST9_8606
Char.ClearTasksImmediately(109@(58@,5i))

:HEIST9_8606
58@ += 1
  58@ >= 2
goto_if_false @HEIST9_8577

:HEIST9_8627
if 
  173@ == 1
goto_if_false @HEIST9_10414
303@ = 1
Text.ClearPrints
World.SwitchEntryExit('MAFCAS', False)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_8690
Char.ShutUpForScriptedSpeech($scplayer, False)

:HEIST9_8690
gosub @HEIST9_46291
Camera.SetFixedPosition(2139.85, 1609.236, 995.7649, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2140.229, 1610.145, 995.5919, SwitchType.JumpCut)
Streaming.RequestModel(343)

:HEIST9_8753
if 
  not Streaming.HasModelLoaded(343)
goto_if_false @HEIST9_8780
wait 0
goto @HEIST9_8753

:HEIST9_8780
World.ClearArea(2144.323, 1622.684, 997.0, 10.0, True)
World.ClearArea(2143.266, 1618.145, 999.9764, 10.0, True)
314@ = Object.Create(343, 2144.323, 1622.684, 997.0)
gosub @HEIST9_46360
$x, $y, 313@ = Object.GetCoordinates(314@)

:HEIST9_8872
if 
  313@ > 992.6
goto_if_false @HEIST9_8942
wait 20
$x, $y, 313@ = Object.GetCoordinates(314@)
313@ -= 0.3
Object.SetCoordinates(314@, $x, $y, 313@)
goto @HEIST9_8872

:HEIST9_8942
139@ = Particle.Create("TEARGASAD", 2144.323, 1622.684, 992.5681, 1)
Particle.Play(139@)
wait 1500
58@ = 0

:HEIST9_8992
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_9016
goto @HEIST9_10102

:HEIST9_9016
if 
  not Char.IsDead(109@(58@,5i))
goto_if_false @HEIST9_9191
if 
  58@ == 0
goto_if_false @HEIST9_9114
Char.ClearTasksImmediately(109@(58@,5i))
Task.PlayAnim(109@(58@,5i), "CAS_G2_GASKO", "HEIST9", 1.0, False, False, False, True, -1)
wait 200

:HEIST9_9114
if 
  58@ == 1
goto_if_false @HEIST9_9191
Char.ClearTasksImmediately(109@(58@,5i))
Task.PlayAnim(109@(58@,5i), "CAS_G2_GASKO", "HEIST9", 1.0, False, False, False, True, -1)
wait 100

:HEIST9_9191
if 
  not Char.IsDead(109@(58@,5i))
goto_if_false @HEIST9_9222
Char.SetCollision(109@(58@,5i), False)

:HEIST9_9222
58@ += 1
  58@ >= 2
goto_if_false @HEIST9_8992
TIMERB = 0

:HEIST9_9250
if 
  1000 > TIMERB
goto_if_false @HEIST9_9304
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_9297
goto @HEIST9_10102

:HEIST9_9297
goto @HEIST9_9250

:HEIST9_9304
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12321)

:HEIST9_9315
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_9341
wait 0
goto @HEIST9_9315

:HEIST9_9341
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_9352
if 
  1500 > TIMERB
goto_if_false @HEIST9_9406
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_9399
goto @HEIST9_10102

:HEIST9_9399
goto @HEIST9_9352

:HEIST9_9406
if 
  not Char.IsDead(110@)
goto_if_false @HEIST9_9430
Audio.ReportMissionAudioEventAtChar(110@, 1163)

:HEIST9_9430
TIMERB = 0

:HEIST9_9437
if 
  500 > TIMERB
goto_if_false @HEIST9_9491
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_9484
goto @HEIST9_10102

:HEIST9_9484
goto @HEIST9_9437

:HEIST9_9491
Text.PrintNow('HE8_FB', 2000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12295)

:HEIST9_9518
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_9544
wait 0
goto @HEIST9_9518

:HEIST9_9544
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_9555
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_9605
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_9598
goto @HEIST9_10102

:HEIST9_9598
goto @HEIST9_9555

:HEIST9_9605
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_9651
Char.SetCoordinatesDontWarpGang($scplayer, 2143.376, 1619.655, 999.9764)
Char.SetHeading($scplayer, 182.7419)

:HEIST9_9651
Particle.Stop(139@)
Particle.KillNow(139@)
World.ClearArea(2144.323, 1622.684, 997.0, 10.0, True)
World.ClearArea(2143.266, 1618.145, 999.9764, 10.0, True)
Camera.SetFixedPosition(2142.75, 1617.836, 1001.143, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2142.997, 1618.803, 1001.197, SwitchType.JumpCut)
Text.PrintNow('HE8_FC', 2000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12235)

:HEIST9_9787
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_9813
wait 0
goto @HEIST9_9787

:HEIST9_9813
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_9824
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_9874
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_9867
goto @HEIST9_10102

:HEIST9_9867
goto @HEIST9_9824

:HEIST9_9874
Text.PrintNow('HE8_FD', 2000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12236)

:HEIST9_9901
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_9927
wait 0
goto @HEIST9_9901

:HEIST9_9927
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_9938
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_9988
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_9981
goto @HEIST9_10102

:HEIST9_9981
goto @HEIST9_9938

:HEIST9_9988
Text.PrintNow('HE8_FE', 2000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12237)

:HEIST9_10015
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_10041
wait 0
goto @HEIST9_10015

:HEIST9_10041
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_10052
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_10102
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_10095
goto @HEIST9_10102

:HEIST9_10095
goto @HEIST9_10052

:HEIST9_10102
Object.Delete(314@)
Streaming.MarkModelAsNoLongerNeeded(343)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_10158
Char.SetCoordinatesDontWarpGang($scplayer, 2143.22, 1618.372, 999.9688)
Char.SetHeading($scplayer, 175.5027)

:HEIST9_10158
if 
  not Char.IsDead(109@)
goto_if_false @HEIST9_10240
Char.ClearTasksImmediately(109@)
Task.PlayAnimNonInterruptable(109@, "CAS_G2_GASKO", "HEIST9", 1.0, False, False, False, True, -1)
Task.TogglePedThreatScanner(109@, False, False, False)
Char.SetDecisionMaker(109@, 120@)

:HEIST9_10240
if 
  not Char.IsDead(110@)
goto_if_false @HEIST9_10322
Char.ClearTasksImmediately(110@)
Task.PlayAnimNonInterruptable(110@, "CAS_G2_GASKO", "HEIST9", 1.0, False, False, False, True, -1)
Task.TogglePedThreatScanner(110@, False, False, False)
Char.SetDecisionMaker(110@, 120@)

:HEIST9_10322
gosub @HEIST9_46308
Particle.Stop(139@)
Particle.KillNow(139@)

:HEIST9_10339
Text.PrintNow('HM9_12', 5000, 1)
Blip.Remove(108@)
45@ = Blip.AddForCoord(2168.173, 1616.986, 998.97)
Blip.SetEntryExit(45@, 2196.635, 1676.841, 10.0)
38@ = 3
246@ = 1

:HEIST9_10414
if 
  116@ == 4
goto_if_false @HEIST9_10446
116@ = 5
goto @HEIST9_10339

:HEIST9_10446
if and
  not Text.IsMessageBeingDisplayed
  246@ <> 12
  246@ <> 0
goto_if_false @HEIST9_11316
if and
  231@ == 2
  246@ == 1
goto_if_false @HEIST9_10557
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_10521
Char.ShutUpForScriptedSpeech($scplayer, True)

:HEIST9_10521
set_lvar_text_label 288@s = 'HE8_GB'
set_lvar_int_to_constant 232@ = 12238
gosub @HEIST9_50650
246@ = 2

:HEIST9_10557
if and
  231@ == 2
  246@ == 2
goto_if_false @HEIST9_10618
set_lvar_text_label 288@s = 'HE8_GC'
set_lvar_int_to_constant 232@ = 12239
gosub @HEIST9_50650
246@ = 3

:HEIST9_10618
if and
  231@ == 2
  246@ == 3
goto_if_false @HEIST9_10679
set_lvar_text_label 288@s = 'HE8_GD'
set_lvar_int_to_constant 232@ = 12240
gosub @HEIST9_50650
246@ = 4

:HEIST9_10679
if and
  231@ == 2
  246@ == 4
goto_if_false @HEIST9_10986
Camera.SetDarknessEffect(True, 220)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 33402)

:HEIST9_10724
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST9_10750
wait 0
goto @HEIST9_10724

:HEIST9_10750
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST9_10769
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:HEIST9_10769
wait 100
set_lvar_text_label 288@s = 'HE8_GE'
set_lvar_int_to_constant 232@ = 12241
gosub @HEIST9_50650
53@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 2157.597, 1597.863, 998.9694, 6, -1)
Task.LookAtCoord(-1, 2155.781, 1598.063, 998.9686, -2)
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 1.0, True, False, False, False, -1)
Task.Pause(-1, 1000)
Sequence.SetToRepeat(53@, True)
Sequence.Close(53@)
58@ = 0

:HEIST9_10912
if 
  not Char.IsDead(218@(58@,10i))
goto_if_false @HEIST9_10953
Char.ClearTasksImmediately(218@(58@,10i))
Char.PerformSequence(218@(58@,10i), 53@)

:HEIST9_10953
58@ += 1
  58@ >= 7
goto_if_false @HEIST9_10912
Sequence.Clear(53@)
246@ = 5

:HEIST9_10986
if and
  231@ == 2
  246@ == 5
goto_if_false @HEIST9_11084
if 
  not Game.IsNightVisionActive
goto_if_false @HEIST9_11077
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_11048
Char.StartFacialTalk($scplayer, 10000)

:HEIST9_11048
set_lvar_text_label 288@s = 'HE8_GF'
set_lvar_int_to_constant 232@ = 12297
gosub @HEIST9_50650

:HEIST9_11077
246@ = 9

:HEIST9_11084
if and
  231@ == 2
  246@ == 9
goto_if_false @HEIST9_11160
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_11130
Char.StopFacialTalk($scplayer)

:HEIST9_11130
Text.PrintNow('HM9_49', 5000, 1)
246@ = 10
TIMERB = 0

:HEIST9_11160
if and
  TIMERB > 5000
  249@ == 0
goto_if_false @HEIST9_11316
if and
  38@ == 5
  231@ == 2
  246@ == 10
goto_if_false @HEIST9_11225
246@ = 11

:HEIST9_11225
if and
  38@ == 5
  231@ == 2
  246@ == 11
goto_if_false @HEIST9_11316
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_11280
Char.ShutUpForScriptedSpeech($scplayer, False)

:HEIST9_11280
set_lvar_text_label 288@s = 'HE8_HB'
set_lvar_int_to_constant 232@ = 12243
gosub @HEIST9_50650
246@ = 12

:HEIST9_11316
if 
  38@ == 3
goto_if_false @HEIST9_11718
if 
  Char.LocateAnyMeans3D($scplayer, 2167.599, 1617.412, 998.9715, 2.0, 2.0, 2.0, False)
goto_if_false @HEIST9_11716
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @HEIST9_11406
Text.PrintHelpForever('HM9_29')

:HEIST9_11406
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @HEIST9_11709
58@ = 0

:HEIST9_11430
Char.Delete(218@(58@,10i))
58@ += 1
  58@ >= 7
goto_if_false @HEIST9_11430
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 33400)

:HEIST9_11473
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST9_11499
wait 0
goto @HEIST9_11473

:HEIST9_11499
Streaming.MarkModelAsNoLongerNeeded(172)
Streaming.MarkModelAsNoLongerNeeded(164)
Streaming.MarkModelAsNoLongerNeeded(214)
Blip.Remove(45@)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinatesDontWarpGang($scplayer, 2167.599, 1617.287, 998.9715)
Char.SetHeading($scplayer, 270.0)
Task.PlayAnim($scplayer, "USE_SWIPECARD", "HEIST9", 2.0, False, False, False, False, -1)
wait 500
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST9_11621
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:HEIST9_11621
wait 500
58@ = 0

:HEIST9_11633
if 
  58@ <> 33
goto_if_false @HEIST9_11686
wait 0
  Object.Rotate($w5_storm_freighter_door, 180.0, 3.0, False)
58@ += 1
goto @HEIST9_11633

:HEIST9_11686
38@ = 5
Text.ClearHelp
215@ = 0
TIMERA = 0

:HEIST9_11709
goto @HEIST9_11718

:HEIST9_11716
Text.ClearHelp

:HEIST9_11718
if 
  38@ == 5
goto_if_false @HEIST9_12432
if and
  231@ == 2
  215@ == 0
goto_if_false @HEIST9_11919
Streaming.RequestModel(530)

:HEIST9_11766
if 
  not Streaming.HasModelLoaded(530)
goto_if_false @HEIST9_11793
wait 0
goto @HEIST9_11766

:HEIST9_11793
46@ = Car.Create(530, 2173.621, 1585.964, 998.9722)
Car.SetAreaVisible(46@, 1)
Car.SetHeading(46@, 270.0)
Car.ChangeColor(46@, 6, 6)
209@ = 1
if 
  not Car.IsDead(46@)
goto_if_false @HEIST9_11872
Car.SetAreaVisible(46@, 1)

:HEIST9_11872
90@ = Blip.AddForCoord(2220.543, 1572.625, 998.9531)
Blip.SetEntryExit(90@, 2196.635, 1676.841, 10.0)
215@ = 1

:HEIST9_11919
if and
  Char.LocateAnyMeans3D($scplayer, 2224.452, 1595.435, 998.9753, 1.2, 1.2, 1.2, False)
  249@ == 0
goto_if_false @HEIST9_11981
249@ = 1

:HEIST9_11981
if and
  231@ == 2
  249@ == 1
goto_if_false @HEIST9_12042
set_lvar_text_label 288@s = 'HE8_JA'
set_lvar_int_to_constant 232@ = 12244
gosub @HEIST9_50650
249@ = 2

:HEIST9_12042
if and
  231@ == 2
  249@ == 2
goto_if_false @HEIST9_12103
set_lvar_text_label 288@s = 'HE8_JB'
set_lvar_int_to_constant 232@ = 12245
gosub @HEIST9_50650
249@ = 3

:HEIST9_12103
if and
  231@ == 2
  249@ == 3
goto_if_false @HEIST9_12207
if 
  Blip.DoesExist(90@)
goto_if_false @HEIST9_12149
Blip.Remove(90@)

:HEIST9_12149
if 
  not Car.IsDead(46@)
goto_if_false @HEIST9_12200
47@ = Blip.AddForCar(46@)
Blip.SetEntryExit(47@, 2196.635, 1676.841, 10.0)
Blip.SetAsFriendly(47@, True)

:HEIST9_12200
249@ = 4

:HEIST9_12207
if and
  231@ == 2
  249@ == 4
goto_if_false @HEIST9_12255
Text.PrintNow('HM9_51', 7000, 1)
249@ = 5

:HEIST9_12255
if 
  209@ == 1
goto_if_false @HEIST9_12432
if 
  not Car.IsDead(46@)
goto_if_false @HEIST9_12432
if 
  Char.IsInCar($scplayer, 46@)
goto_if_false @HEIST9_12432
if and
  50@ == 0
  Char.IsInCar($scplayer, 46@)
goto_if_false @HEIST9_12432
Text.PrintNow('HM9_5', 5000, 1)
50@ = 1
38@ = 6
211@ = 1
if 
  Blip.DoesExist(90@)
goto_if_false @HEIST9_12392
Blip.Remove(90@)

:HEIST9_12392
90@ = Blip.AddForCoord(2220.543, 1572.625, 998.9531)
Blip.SetEntryExit(90@, 2196.635, 1676.841, 10.0)

:HEIST9_12432
if and
  Car.IsDead(46@)
  7 > 38@
  209@ == 1
goto_if_false @HEIST9_12492
gosub @HEIST9_50385
Text.PrintNow('HM9_13', 4000, 1)
goto @HEIST9_44470

:HEIST9_12492
if 
  38@ == 6
goto_if_false @HEIST9_17990
if 
  not Car.IsDead(46@)
goto_if_false @HEIST9_12636
if and
  Char.IsInCar($scplayer, 46@)
  95@ == 0
goto_if_false @HEIST9_12573
Blip.ChangeDisplay(47@, BlipDisplay.Neither)
Blip.ChangeDisplay(90@, BlipDisplay.Both)
95@ = 1

:HEIST9_12573
if and
  not Char.IsInCar($scplayer, 46@)
  95@ == 1
goto_if_false @HEIST9_12636
Text.PrintNow('HM9_23', 3000, 1)
Blip.ChangeDisplay(47@, BlipDisplay.Both)
Blip.ChangeDisplay(90@, BlipDisplay.Neither)
95@ = 0

:HEIST9_12636
if 
  not Car.IsDead(46@)
goto_if_false @HEIST9_13020
$h9_player_in_casino = Car.GetMovingComponentOffset(46@)
if 
  Char.IsInCar($scplayer, 46@)
goto_if_false @HEIST9_13020
if 
  Char.LocateStoppedAnyMeans3D($scplayer, 2220.543, 1573.141, 998.9672, 6.0, 6.0, 6.0, False)
goto_if_false @HEIST9_12745
Text.PrintHelpForever('HM9_53')
goto @HEIST9_12747

:HEIST9_12745
Text.ClearHelp

:HEIST9_12747
$x, $y, $z = Char.GetCoordinates($scplayer)
287@ = Char.GetHeading($scplayer)
set_var_float_to_var_float $h9_z1 = $h9_player_in_casino
$h9_z1 += 1001.6
add_float_var_to_float_var $h9_player_in_casino += $z
if and
  287@ > 140.0
  220.0 > 287@
goto_if_false @HEIST9_13020
if and
  $y > 1572.8
  1573.8 > $y
goto_if_false @HEIST9_13020
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.RightStickY)
goto_if_false @HEIST9_12987
177@, 178@, $h9_offset = Object.GetCoordinates(49@)
$RStickY = 0
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
set_var_float_to_var_float $h9_offset = $h9_z1
$h9_offset -= 0.1
Object.SetCoordinates(49@, 2220.188, 1571.763, $h9_offset)
if 
  305@ == 0
goto_if_false @HEIST9_12980
Audio.ReportMissionAudioEventAtObject(49@, 1165)
305@ = 1

:HEIST9_12980
goto @HEIST9_13020

:HEIST9_12987
if 
  305@ == 1
goto_if_false @HEIST9_13020
Audio.ReportMissionAudioEventAtObject(49@, 1166)
305@ = 0

:HEIST9_13020
if and
  $h9_offset >= 1002.8
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_17990
if 
  Char.IsInModel($scplayer, 530)
goto_if_false @HEIST9_17974
214@ = Pickup.CreateWithAmmo(363, PickupType.Once, 10, 2146.487, 1622.805, 993.5)
if 
  not Char.IsDead(225@)
goto_if_false @HEIST9_13113
Char.Delete(225@)

:HEIST9_13113
if 
  not Char.IsDead(226@)
goto_if_false @HEIST9_13134
Char.Delete(226@)

:HEIST9_13134
if 
  not Char.IsDead(227@)
goto_if_false @HEIST9_13155
Char.Delete(227@)

:HEIST9_13155
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_13178
Player.SetControl($player1, False)

:HEIST9_13178
Blip.Remove(90@)
Text.ClearHelp
Streaming.RequestCarRecording(499)
Streaming.RequestCarRecording(487)

:HEIST9_13195
if or
  not Streaming.HasCarRecordingBeenLoaded(499)
  not Streaming.HasCarRecordingBeenLoaded(487)
goto_if_false @HEIST9_13227
wait 0
goto @HEIST9_13195

:HEIST9_13227
if 
  not Car.IsDead(51@)
goto_if_false @HEIST9_13257
Car.SetAreaVisible(51@, 1)
Car.SwitchSiren(51@, True)

:HEIST9_13257
if 
  not Car.IsDead(46@)
goto_if_false @HEIST9_13303
Car.SetCoordinates(46@, 2220.543, 1573.141, 998.9672)
Car.SetHeading(46@, 180.0)

:HEIST9_13303
gosub @HEIST9_46291
Camera.SetFixedPosition(2224.694, 1577.632, 1002.633, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2224.199, 1576.857, 1002.241, SwitchType.JumpCut)
if and
  Streaming.HasCarRecordingBeenLoaded(487)
  not Car.IsDead(46@)
goto_if_false @HEIST9_13390
Car.StartPlayback(46@, 487)

:HEIST9_13390
Audio.ReportMissionAudioEventAtObject(49@, 1035)
if 
  Object.DoesExist(49@)
goto_if_false @HEIST9_13428
177@, 178@, $h9_offset = Object.GetCoordinates(49@)

:HEIST9_13428
if 
  $h9_offset <= 1005.4
goto_if_false @HEIST9_13488
wait 50
$h9_offset += 0.1
Object.SetCoordinates(49@, 2220.188, 1571.763, $h9_offset)
goto @HEIST9_13428

:HEIST9_13488
Audio.ReportMissionAudioEventAtObject(49@, 1036)
if and
  Streaming.HasCarRecordingBeenLoaded(499)
  not Car.IsDead(51@)
goto_if_false @HEIST9_13525
Car.StartPlayback(51@, 499)

:HEIST9_13525
if 
  not Car.IsDead(46@)
goto_if_false @HEIST9_13592
if 
  Car.IsPlaybackGoingOn(46@)
goto_if_false @HEIST9_13562
Car.StopPlayback(46@)

:HEIST9_13562
Car.SetCoordinates(46@, 2218.039, 1592.232, 998.9783)
Car.SetHeading(46@, 26.1233)

:HEIST9_13592
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_13681
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HEIST9_13651
Char.WarpFromCarToCoord($scplayer, 2217.115, 1589.683, 998.9709)
goto @HEIST9_13671

:HEIST9_13651
Char.SetCoordinatesDontWarpGang($scplayer, 2217.115, 1589.683, 998.9709)

:HEIST9_13671
Char.SetHeading($scplayer, 209.5064)

:HEIST9_13681
58@ = 0

:HEIST9_13688
if 
  not Char.IsDead(218@(58@,10i))
goto_if_false @HEIST9_13717
Char.Delete(218@(58@,10i))

:HEIST9_13717
58@ += 1
  58@ >= 7
goto_if_false @HEIST9_13688
Streaming.RequestModel(363)
Streaming.RequestModel(364)
Streaming.RequestModel(353)
Streaming.RequestModel(164)

:HEIST9_13758
if or
  not Streaming.HasModelLoaded(363)
  not Streaming.HasModelLoaded(364)
  not Streaming.HasModelLoaded(353)
  not Streaming.HasModelLoaded(164)
goto_if_false @HEIST9_13800
wait 0
goto @HEIST9_13758

:HEIST9_13800
Camera.SetFixedPosition(2217.37, 1580.595, 1000.582, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2217.663, 1579.639, 1000.559, SwitchType.JumpCut)
TIMERB = 0

:HEIST9_13858
if 
  3000 > TIMERB
goto_if_false @HEIST9_13912
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_13905
goto @HEIST9_15917

:HEIST9_13905
goto @HEIST9_13858

:HEIST9_13912
Camera.SetFixedPosition(2215.132, 1594.248, 1002.778, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2215.409, 1593.319, 1002.531, SwitchType.JumpCut)
if 
  not Car.IsDead(51@)
goto_if_false @HEIST9_13986
Car.FreezePosition(51@, True)

:HEIST9_13986
Text.PrintNow('HE8_KA', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12200)

:HEIST9_14013
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_14039
wait 0
goto @HEIST9_14013

:HEIST9_14039
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_14050
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_14100
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_14093
goto @HEIST9_15917

:HEIST9_14093
goto @HEIST9_14050

:HEIST9_14100
if 
  not Car.IsDead(51@)
goto_if_false @HEIST9_14563
53@ = Sequence.Open()
Task.Pause(-1, 500)
Task.LeaveCar(-1, 51@)
Path.FlushRoute
Path.ExtendRoute(2224.155, 1579.691, 998.9739)
Path.ExtendRoute(2223.636, 1585.549, 998.9675)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 1.0, True, False, False, False, -1)
Sequence.Close(53@)
if 
  not Char.IsDead(54@)
goto_if_false @HEIST9_14245
Char.PerformSequence(54@, 53@)

:HEIST9_14245
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.LeaveCar(-1, 51@)
Path.FlushRoute
Path.ExtendRoute(2220.033, 1584.614, 998.9719)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.TurnCharToFaceCoord(-1, 2216.44, 1589.13, 998.979)
Sequence.Close(53@)
if 
  not Char.IsDead(55@)
goto_if_false @HEIST9_14339
Char.PerformSequence(55@, 53@)

:HEIST9_14339
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.Pause(-1, 500)
Task.LeaveCar(-1, 51@)
Path.FlushRoute
Path.ExtendRoute(2221.495, 1584.948, 998.9701)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.TurnCharToFaceCoord(-1, 2216.44, 1589.13, 998.979)
Sequence.Close(53@)
if 
  not Char.IsDead(56@)
goto_if_false @HEIST9_14440
Char.PerformSequence(56@, 53@)

:HEIST9_14440
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.Pause(-1, 1000)
Task.LeaveCar(-1, 51@)
Path.FlushRoute
Path.ExtendRoute(2216.699, 1578.363, 998.9761)
Path.ExtendRoute(2217.538, 1583.64, 998.9749)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.TurnCharToFaceCoord(-1, 2216.44, 1589.13, 998.979)
Sequence.Close(53@)
if 
  not Char.IsDead(57@)
goto_if_false @HEIST9_14558
Char.PerformSequence(57@, 53@)

:HEIST9_14558
Sequence.Clear(53@)

:HEIST9_14563
Text.PrintNow('HE8_KB', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12201)

:HEIST9_14590
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_14616
wait 0
goto @HEIST9_14590

:HEIST9_14616
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_14627
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_14677
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_14670
goto @HEIST9_15917

:HEIST9_14670
goto @HEIST9_14627

:HEIST9_14677
Text.PrintNow('HE8_KC', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12202)

:HEIST9_14704
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_14730
wait 0
goto @HEIST9_14704

:HEIST9_14730
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_14741
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_14791
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_14784
goto @HEIST9_15917

:HEIST9_14784
goto @HEIST9_14741

:HEIST9_14791
Text.PrintNow('HE8_KD', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12203)

:HEIST9_14818
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_14844
wait 0
goto @HEIST9_14818

:HEIST9_14844
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_14855
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_14905
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_14898
goto @HEIST9_15917

:HEIST9_14898
goto @HEIST9_14855

:HEIST9_14905
Camera.SetFixedPosition(2219.653, 1584.915, 1001.211, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2220.18, 1585.746, 1001.034, SwitchType.JumpCut)
Text.PrintNow('HE8_KE', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12204)

:HEIST9_14983
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_15009
wait 0
goto @HEIST9_14983

:HEIST9_15009
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
if 
  not Char.IsDead(54@)
goto_if_false @HEIST9_15157
53@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2224.192, 1589.193, 998.9668)
Path.ExtendRoute(2225.465, 1592.997, 998.9677)
Path.ExtendRoute(2226.739, 1597.796, 998.9755)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.PlayAnim(-1, "GETUP_FRONT", "PED", 1.0, False, False, False, False, -1)
Sequence.Close(53@)
Char.ClearTasksImmediately(54@)
Char.PerformSequence(54@, 53@)
Sequence.Clear(53@)

:HEIST9_15157
TIMERB = 0

:HEIST9_15164
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_15214
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_15207
goto @HEIST9_15917

:HEIST9_15207
goto @HEIST9_15164

:HEIST9_15214
TIMERB = 0

:HEIST9_15221
if 
  2500 > TIMERB
goto_if_false @HEIST9_15275
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_15268
goto @HEIST9_15917

:HEIST9_15268
goto @HEIST9_15221

:HEIST9_15275
Camera.Shake(30)
TIMERB = 0

:HEIST9_15286
if 
  1500 > TIMERB
goto_if_false @HEIST9_15340
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_15333
goto @HEIST9_15917

:HEIST9_15333
goto @HEIST9_15286

:HEIST9_15340
if 
  not Char.IsDead(54@)
goto_if_false @HEIST9_15490
if 
  not Char.IsDead(55@)
goto_if_false @HEIST9_15385
Char.ClearTasks(55@)
Task.TurnCharToFaceChar(55@, 54@)

:HEIST9_15385
if 
  not Char.IsDead(56@)
goto_if_false @HEIST9_15414
Char.ClearTasks(56@)
Task.TurnCharToFaceChar(56@, 54@)

:HEIST9_15414
wait 100
if and
  not Char.IsDead(57@)
  not Char.IsDead(54@)
goto_if_false @HEIST9_15452
Char.ClearTasks(57@)
Task.TurnCharToFaceChar(57@, 54@)

:HEIST9_15452
wait 100
if and
  not Char.IsDead($scplayer)
  not Char.IsDead(54@)
goto_if_false @HEIST9_15490
Char.ClearTasks($scplayer)
Task.TurnCharToFaceChar($scplayer, 54@)

:HEIST9_15490
Text.PrintNow('HE8_KF', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12205)

:HEIST9_15517
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_15543
wait 0
goto @HEIST9_15517

:HEIST9_15543
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_15554
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_15604
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_15597
goto @HEIST9_15917

:HEIST9_15597
goto @HEIST9_15554

:HEIST9_15604
if and
  not Char.IsDead($scplayer)
  not Char.IsDead(54@)
goto_if_false @HEIST9_15638
Char.ClearTasks(54@)
Task.TurnCharToFaceChar(54@, $scplayer)

:HEIST9_15638
Camera.SetFixedPosition(2216.963, 1581.526, 1000.579, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2217.403, 1582.416, 1000.465, SwitchType.JumpCut)
Text.PrintNow('HE8_KG', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12246)

:HEIST9_15716
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_15742
wait 0
goto @HEIST9_15716

:HEIST9_15742
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_15753
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_15803
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_15796
goto @HEIST9_15917

:HEIST9_15796
goto @HEIST9_15753

:HEIST9_15803
Text.PrintNow('HE8_KH', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12206)

:HEIST9_15830
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_15856
wait 0
goto @HEIST9_15830

:HEIST9_15856
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_15867
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_15917
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_15910
goto @HEIST9_15917

:HEIST9_15910
goto @HEIST9_15867

:HEIST9_15917
315@ = Char.Create(PedType.Mission1, 163, 2201.126, 1617.877, 998.9827)
Char.SetAreaVisible(315@, 1)
Char.SetHeading(315@, 267.4834)
Task.ToggleDuck(315@, True)
316@ = Char.Create(PedType.Mission1, 164, 2196.083, 1618.684, 998.9766)
Char.SetAreaVisible(316@, 1)
Char.SetHeading(316@, 263.4616)
317@ = Char.Create(PedType.Mission1, 163, 2207.917, 1620.372, 998.9827)
Char.SetAreaVisible(317@, 1)
Char.SetHeading(317@, 267.4754)
Task.ToggleDuck(317@, True)
Char.SetOnlyDamagedByPlayer(317@, True)
58@ = 0

:HEIST9_16071
Char.SetMoney(315@(58@,5i), 0)
if 
  58@ <> 2
goto_if_false @HEIST9_16124
Char.SetHealth(315@(58@,5i), 200)
Char.SetMaxHealth(315@(58@,5i), 200)

:HEIST9_16124
320@(58@,15i) = Blip.AddForChar(315@(58@,5i))
Blip.SetEntryExit(320@(58@,15i), 2196.635, 1676.841, 10.0)
Blip.ChangeDisplay(320@(58@,15i), BlipDisplay.BlipOnly)
Char.GiveWeapon(315@(58@,5i), WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(315@(58@,5i), WeaponType.Mp5)
Char.SetAccuracy(315@(58@,5i), 20)
Char.SetShootRate(315@(58@,5i), 20)
Char.SetDecisionMaker(315@(58@,5i), 245@)
Task.StayInSamePlace(315@(58@,5i), True)
58@ += 1
  58@ >= 3
goto_if_false @HEIST9_16071
335@ = Char.Create(PedType.Mission1, 163, 2180.075, 1611.573, 998.9766)
Char.SetAreaVisible(335@, 1)
Char.SetHeading(335@, 273.7555)
Char.SetOnlyDamagedByPlayer(335@, True)
336@ = Char.Create(PedType.Mission1, 164, 2186.142, 1612.398, 998.9777)
Char.SetAreaVisible(336@, 1)
Char.SetHeading(336@, 306.4445)
Task.ToggleDuck(336@, True)
337@ = Char.Create(PedType.Mission1, 163, 2183.521, 1615.246, 998.9766)
Char.SetAreaVisible(337@, 1)
Char.SetHeading(337@, 294.2185)
338@ = Char.Create(PedType.Mission1, 164, 2182.612, 1623.697, 998.9742)
Char.SetAreaVisible(338@, 1)
Char.SetHeading(338@, 248.6147)
Task.ToggleDuck(338@, True)
339@ = Char.Create(PedType.Mission1, 164, 2179.681, 1622.404, 998.9764)
Char.SetAreaVisible(339@, 1)
Char.SetHeading(339@, 268.7008)
Char.SetOnlyDamagedByPlayer(339@, True)
340@ = Char.Create(PedType.Mission1, 163, 2178.853, 1625.603, 998.9709)
Char.SetAreaVisible(340@, 1)
Char.SetHeading(340@, 250.7106)
341@ = Char.Create(PedType.Mission1, 163, 2176.363, 1606.599, 998.9827)
Char.SetAreaVisible(341@, 1)
Char.SetHeading(341@, 0.8709)
Char.SetSenseRange(341@, 5.0)
Task.ToggleDuck(341@, True)
342@ = Char.Create(PedType.Mission1, 164, 2176.491, 1600.897, 998.9827)
Char.SetAreaVisible(342@, 1)
Char.SetSenseRange(342@, 5.0)
Char.SetHeading(342@, 352.937)
343@ = Char.Create(PedType.Mission1, 163, 2169.117, 1618.626, 998.9766)
Char.SetAreaVisible(343@, 1)
Char.SetHeading(343@, 272.9878)
344@ = Char.Create(PedType.Mission1, 163, 2161.208, 1602.776, 998.9812)
Char.SetAreaVisible(344@, 1)
Char.SetHeading(344@, 4.2093)
345@ = Char.Create(PedType.Mission1, 164, 2156.54, 1605.252, 998.9725)
Char.SetAreaVisible(345@, 1)
Char.SetHeading(345@, 353.705)
58@ = 0

:HEIST9_16790
Char.SetMoney(335@(58@,15i), 0)
if and
  58@ <> 0
  58@ <> 4
goto_if_false @HEIST9_16850
Char.SetHealth(335@(58@,15i), 200)
Char.SetMaxHealth(335@(58@,15i), 200)

:HEIST9_16850
350@(58@,15i) = Blip.AddForChar(335@(58@,15i))
Blip.SetEntryExit(350@(58@,15i), 2196.635, 1676.841, 10.0)
Blip.ChangeDisplay(350@(58@,15i), BlipDisplay.BlipOnly)
Char.GiveWeapon(335@(58@,15i), WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(335@(58@,15i), WeaponType.Mp5)
Char.SetShootRate(335@(58@,15i), 20)
Char.SetAccuracy(335@(58@,15i), 20)
Char.SetDecisionMaker(335@(58@,15i), 245@)
Task.StayInSamePlace(335@(58@,15i), True)
58@ += 1
  58@ >= 11
goto_if_false @HEIST9_16790
$h9_health = 420000
Hud.ClearTimer($h9_health)
Hud.DisplayTimerWithString($h9_health, TimerDirection.Down, 'HM9_1A')
gosub @HEIST9_46308
Object.Delete(49@)
if 
  not Car.IsDead(51@)
goto_if_false @HEIST9_17107
if 
  Car.IsPlaybackGoingOn(51@)
goto_if_false @HEIST9_17072
Car.StopPlayback(51@)

:HEIST9_17072
Car.SetCoordinates(51@, 2220.39, 1577.623, 998.967)
Car.SetHeading(51@, 179.9804)
Car.SkipToEndAndStopPlayback(51@)

:HEIST9_17107
if 
  not Car.IsDead(51@)
goto_if_false @HEIST9_17856
if and
  not Char.IsDead(54@)
  not Char.IsDead(55@)
  not Char.IsDead(56@)
  not Char.IsDead(57@)
goto_if_false @HEIST9_17856
286@ = Sequence.Open()
Task.Pause(-1, 10)
if 
  not Char.IsDead(315@)
goto_if_false @HEIST9_17188
Task.KillCharOnFoot(-1, 315@)

:HEIST9_17188
if 
  not Char.IsDead(316@)
goto_if_false @HEIST9_17211
Task.KillCharOnFoot(-1, 316@)

:HEIST9_17211
if 
  not Char.IsDead(317@)
goto_if_false @HEIST9_17234
Task.KillCharOnFoot(-1, 317@)

:HEIST9_17234
Sequence.Close(286@)
365@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2221.952, 1586.563, 998.9695)
Path.ExtendRoute(2223.39, 1591.61, 998.9678)
Path.ExtendRoute(2224.253, 1597.906, 998.9766)
Path.ExtendRoute(2224.359, 1599.682, 998.983)
Task.ToggleDuck(-1, False)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Sequence.Close(365@)
366@ = Sequence.Open()
Path.FlushRoute
Task.ToggleDuck(-1, True)
Path.ExtendRoute(2224.593, 1602.669, 998.9816)
Path.ExtendRoute(2224.79, 1609.521, 998.975)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Sequence.Close(366@)
53@ = Sequence.Open()
if 
  Char.IsInCar(55@, 51@)
goto_if_false @HEIST9_17428
Task.LeaveCar(-1, 51@)

:HEIST9_17428
Char.PerformSequence(-1, 365@)
Char.PerformSequence(-1, 366@)
Task.FollowPathNodesToCoord(-1, 2222.452, 1617.022, 998.9678, 6, -1)
Task.StayInSamePlace(-1, True)
Char.PerformSequence(-1, 286@)
Sequence.Close(53@)
Char.ClearTasks(55@)
Char.PerformSequence(55@, 53@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.Pause(-1, 500)
if 
  Char.IsInCar(56@, 51@)
goto_if_false @HEIST9_17539
Task.LeaveCar(-1, 51@)

:HEIST9_17539
Char.PerformSequence(-1, 365@)
Task.Pause(-1, 1000)
Char.PerformSequence(-1, 366@)
Task.FollowPathNodesToCoord(-1, 2222.943, 1620.636, 998.9709, 6, -1)
Task.StayInSamePlace(-1, True)
Char.PerformSequence(-1, 286@)
Sequence.Close(53@)
Char.ClearTasks(56@)
Char.PerformSequence(56@, 53@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.Pause(-1, 1500)
if 
  Char.IsInCar(57@, 51@)
goto_if_false @HEIST9_17657
Task.LeaveCar(-1, 51@)

:HEIST9_17657
Char.PerformSequence(-1, 365@)
Task.Pause(-1, 3000)
Char.PerformSequence(-1, 366@)
Task.FollowPathNodesToCoord(-1, 2223.133, 1610.966, 998.9728, 4, -1)
Task.StayInSamePlace(-1, True)
Sequence.Close(53@)
Char.ClearTasks(57@)
Char.PerformSequence(57@, 53@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.Pause(-1, 2000)
if 
  Char.IsInCar(54@, 51@)
goto_if_false @HEIST9_17768
Task.LeaveCar(-1, 51@)

:HEIST9_17768
Char.PerformSequence(-1, 365@)
Task.Pause(-1, 2500)
Char.PerformSequence(-1, 366@)
Task.FollowPathNodesToCoord(-1, 2223.133, 1610.966, 998.9728, 4, -1)
Task.StayInSamePlace(-1, True)
Sequence.Close(53@)
Char.ClearTasks(54@)
Char.PerformSequence(54@, 53@)
Sequence.Clear(286@)
Sequence.Clear(53@)
Sequence.Clear(365@)
Sequence.Clear(366@)

:HEIST9_17856
58@ = 0

:HEIST9_17863
if and
  not Char.IsDead(54@(58@,4i))
  not Car.IsDead(51@)
goto_if_false @HEIST9_17939
91@(58@,4i) = Blip.AddForChar(54@(58@,4i))
Blip.SetEntryExit(91@(58@,4i), 2196.635, 1676.841, 10.0)
Blip.SetAsFriendly(91@(58@,4i), True)

:HEIST9_17939
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_17863
38@ = 7
goto @HEIST9_17990

:HEIST9_17974
Text.PrintNow('HM9_14', 5000, 1)

:HEIST9_17990
if 
  38@ == 7
goto_if_false @HEIST9_18064
Streaming.RequestAnimation("BOMBER")

:HEIST9_18018
if 
  not Streaming.HasAnimationLoaded("BOMBER")
goto_if_false @HEIST9_18050
wait 0
goto @HEIST9_18018

:HEIST9_18050
38@ = 8
TIMERA = 0

:HEIST9_18064
if 
  38@ == 8
goto_if_false @HEIST9_24152
58@ = 0

:HEIST9_18089
if and
  Char.IsDead(315@(58@,5i))
  320@(58@,15i) <> 0
goto_if_false @HEIST9_18169
if 
  Blip.DoesExist(320@(58@,15i))
goto_if_false @HEIST9_18169
Blip.Remove(320@(58@,15i))
320@(58@,15i) = 0
Char.MarkAsNoLongerNeeded(315@(58@,5i))

:HEIST9_18169
58@ += 1
  58@ >= 3
goto_if_false @HEIST9_18089
58@ = 0

:HEIST9_18197
if and
  Char.IsDead(335@(58@,15i))
  350@(58@,15i) <> 0
goto_if_false @HEIST9_18277
if 
  Blip.DoesExist(350@(58@,15i))
goto_if_false @HEIST9_18277
Blip.Remove(350@(58@,15i))
350@(58@,15i) = 0
Char.MarkAsNoLongerNeeded(335@(58@,15i))

:HEIST9_18277
58@ += 1
  58@ >= 11
goto_if_false @HEIST9_18197
if and
  Char.IsDead(315@)
  Char.IsDead(316@)
  Char.IsDead(317@)
  257@ == 0
goto_if_false @HEIST9_19163
if and
  not Char.IsDead(54@)
  not Char.IsDead(55@)
  not Char.IsDead(56@)
  not Char.IsDead(57@)
goto_if_false @HEIST9_19156
286@ = Sequence.Open()
Task.Pause(-1, 1)
if 
  not Char.IsDead(335@)
goto_if_false @HEIST9_18396
Task.KillCharOnFoot(-1, 335@)

:HEIST9_18396
if 
  not Char.IsDead(337@)
goto_if_false @HEIST9_18419
Task.KillCharOnFoot(-1, 337@)

:HEIST9_18419
if 
  not Char.IsDead(336@)
goto_if_false @HEIST9_18442
Task.KillCharOnFoot(-1, 336@)

:HEIST9_18442
if 
  not Char.IsDead(341@)
goto_if_false @HEIST9_18465
Task.KillCharOnFoot(-1, 341@)

:HEIST9_18465
if 
  not Char.IsDead(342@)
goto_if_false @HEIST9_18488
Task.KillCharOnFoot(-1, 342@)

:HEIST9_18488
Sequence.Close(286@)
365@ = Sequence.Open()
Path.FlushRoute
Task.ToggleDuck(-1, True)
Path.ExtendRoute(2217.468, 1619.031, 998.9766)
Path.ExtendRoute(2209.887, 1618.989, 998.9766)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.ToggleDuck(-1, True)
Path.ExtendRoute(2203.74, 1619.167, 998.9827)
Path.ExtendRoute(2199.119, 1618.858, 998.9827)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Sequence.Close(365@)
53@ = Sequence.Open()
Char.PerformSequence(-1, 365@)
Task.FollowPathNodesToCoord(-1, 2196.144, 1618.719, 998.9766, 6, -1)
Task.FollowPathNodesToCoord(-1, 2192.726, 1618.628, 998.9766, 6, -1)
Task.FollowPathNodesToCoord(-1, 2190.531, 1617.373, 998.9766, 6, -1)
Task.StayInSamePlace(-1, True)
Char.PerformSequence(-1, 286@)
Sequence.Close(53@)
Char.ClearTasks(55@)
Char.PerformSequence(55@, 53@)
Sequence.Clear(286@)
286@ = Sequence.Open()
Task.Pause(-1, 1)
if 
  not Char.IsDead(338@)
goto_if_false @HEIST9_18756
Task.KillCharOnFoot(-1, 338@)

:HEIST9_18756
if 
  not Char.IsDead(339@)
goto_if_false @HEIST9_18779
Task.KillCharOnFoot(-1, 339@)

:HEIST9_18779
if 
  not Char.IsDead(340@)
goto_if_false @HEIST9_18802
Task.KillCharOnFoot(-1, 340@)

:HEIST9_18802
if 
  not Char.IsDead(341@)
goto_if_false @HEIST9_18825
Task.KillCharOnFoot(-1, 341@)

:HEIST9_18825
if 
  not Char.IsDead(342@)
goto_if_false @HEIST9_18848
Task.KillCharOnFoot(-1, 342@)

:HEIST9_18848
Sequence.Close(286@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Char.PerformSequence(-1, 365@)
Task.FollowPathNodesToCoord(-1, 2196.144, 1618.719, 998.9766, 6, -1)
Task.FollowPathNodesToCoord(-1, 2191.214, 1620.229, 998.9802, 6, -1)
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, True)
Char.PerformSequence(-1, 286@)
Sequence.Close(53@)
Char.ClearTasks(56@)
Char.PerformSequence(56@, 53@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.Pause(-1, 500)
Task.FollowPathNodesToCoord(-1, 2223.391, 1619.15, 998.9672, 6, -1)
Char.PerformSequence(-1, 365@)
Task.FollowPathNodesToCoord(-1, 2198.942, 1617.974, 998.9766, 6, -1)
Task.StayInSamePlace(-1, True)
Sequence.Close(53@)
Char.ClearTasks(57@)
Char.PerformSequence(57@, 53@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.Pause(-1, 500)
Task.FollowPathNodesToCoord(-1, 2223.391, 1619.15, 998.9672, 6, -1)
Char.PerformSequence(-1, 365@)
Task.FollowPathNodesToCoord(-1, 2197.816, 1617.827, 998.9766, 6, -1)
Task.StayInSamePlace(-1, True)
Sequence.Close(53@)
Char.ClearTasks(54@)
Char.PerformSequence(54@, 53@)
Sequence.Clear(286@)
Sequence.Clear(53@)
Sequence.Clear(365@)

:HEIST9_19156
257@ = 1

:HEIST9_19163
if and
  Char.LocateAnyMeans3D($scplayer, 2158.438, 1618.74, 998.965, 4.0, 4.0, 4.0, False)
  37@ == 0
goto_if_false @HEIST9_19254
if 
  not Char.IsDead(344@)
goto_if_false @HEIST9_19247
Char.ClearTasks(344@)
Char.PerformSequence(344@, 212@)

:HEIST9_19247
37@ = 1

:HEIST9_19254
if and
  Char.IsDead(335@)
  Char.IsDead(336@)
  Char.IsDead(337@)
  Char.IsDead(338@)
  258@ == 0
goto_if_false @HEIST9_19845
if and
  Char.IsDead(339@)
  Char.IsDead(340@)
  257@ == 1
goto_if_false @HEIST9_19845
if and
  not Char.IsDead(54@)
  not Char.IsDead(55@)
  not Char.IsDead(56@)
  not Char.IsDead(57@)
goto_if_false @HEIST9_19845
286@ = Sequence.Open()
Task.Pause(-1, 1)
if 
  not Char.IsDead(343@)
goto_if_false @HEIST9_19385
Task.KillCharOnFoot(-1, 343@)

:HEIST9_19385
if 
  not Char.IsDead(341@)
goto_if_false @HEIST9_19408
Task.KillCharOnFoot(-1, 341@)

:HEIST9_19408
if 
  not Char.IsDead(342@)
goto_if_false @HEIST9_19431
Task.KillCharOnFoot(-1, 342@)

:HEIST9_19431
Sequence.Close(286@)
53@ = Sequence.Open()
Path.FlushRoute
Task.ToggleDuck(-1, True)
Path.ExtendRoute(2188.958, 1615.043, 998.9766)
Path.ExtendRoute(2184.968, 1614.836, 998.9766)
Path.ExtendRoute(2181.061, 1612.783, 998.9766)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.StayInSamePlace(-1, True)
Char.PerformSequence(-1, 286@)
Sequence.Close(53@)
Char.ClearTasks(55@)
Char.PerformSequence(55@, 53@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Path.FlushRoute
Task.ToggleDuck(-1, True)
Path.ExtendRoute(2187.532, 1623.486, 998.9746)
Path.ExtendRoute(2182.643, 1624.14, 998.9734)
Path.ExtendRoute(2180.778, 1624.237, 998.9733)
Path.ExtendRoute(2178.494, 1623.014, 998.9754)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.StayInSamePlace(-1, True)
Char.PerformSequence(-1, 286@)
Sequence.Close(53@)
Char.ClearTasks(56@)
Char.PerformSequence(56@, 53@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Path.FlushRoute
Task.ToggleDuck(-1, True)
Path.ExtendRoute(2195.998, 1618.965, 998.9766)
Path.ExtendRoute(2190.157, 1620.457, 998.9797)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Sequence.Close(53@)
Char.ClearTasks(57@)
Char.PerformSequence(57@, 53@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Path.FlushRoute
Task.ToggleDuck(-1, True)
Path.ExtendRoute(2195.998, 1618.965, 998.9766)
Path.ExtendRoute(2190.435, 1616.811, 998.9766)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Sequence.Close(53@)
Char.ClearTasks(54@)
Char.PerformSequence(54@, 53@)
Sequence.Clear(53@)
Sequence.Clear(286@)
258@ = 1

:HEIST9_19845
if and
  Char.IsDead(341@)
  Char.IsDead(342@)
  Char.IsDead(343@)
  258@ == 1
goto_if_false @HEIST9_20551
if and
  not Char.IsDead(54@)
  not Char.IsDead(55@)
  not Char.IsDead(56@)
  not Char.IsDead(57@)
goto_if_false @HEIST9_20551
286@ = Sequence.Open()
Task.Pause(-1, 1)
if 
  not Char.IsDead(345@)
goto_if_false @HEIST9_19943
Task.KillCharOnFoot(-1, 345@)

:HEIST9_19943
if 
  not Char.IsDead(344@)
goto_if_false @HEIST9_19966
Task.KillCharOnFoot(-1, 344@)

:HEIST9_19966
Sequence.Close(286@)
53@ = Sequence.Open()
Path.FlushRoute
Task.ToggleDuck(-1, True)
Path.ExtendRoute(2177.684, 1614.631, 998.9766)
Path.ExtendRoute(2173.296, 1618.374, 998.9766)
Path.ExtendRoute(2169.075, 1618.589, 998.9766)
Path.ExtendRoute(2165.563, 1618.568, 998.9752)
Path.ExtendRoute(2159.532, 1617.056, 998.9662)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.StayInSamePlace(-1, True)
Char.PerformSequence(-1, 286@)
Sequence.Close(53@)
Char.ClearTasks(55@)
Char.PerformSequence(55@, 53@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Path.FlushRoute
Task.ToggleDuck(-1, True)
Path.ExtendRoute(2174.709, 1621.068, 998.978)
Path.ExtendRoute(2169.154, 1618.646, 998.9766)
Path.ExtendRoute(2161.401, 1619.628, 998.9706)
Path.ExtendRoute(2155.982, 1619.06, 998.9666)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.AchieveHeading(-1, 180.0)
Task.StayInSamePlace(-1, True)
Char.PerformSequence(-1, 286@)
Sequence.Close(53@)
Char.ClearTasks(56@)
Char.PerformSequence(56@, 53@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Path.FlushRoute
Task.ToggleDuck(-1, True)
Path.ExtendRoute(2190.003, 1622.425, 998.9764)
Path.ExtendRoute(2186.135, 1623.306, 998.9749)
Path.ExtendRoute(2182.44, 1624.333, 998.9731)
Path.ExtendRoute(2178.639, 1623.895, 998.9739)
Path.ExtendRoute(2174.756, 1622.692, 998.976)
Path.ExtendRoute(2169.405, 1620.61, 998.9795)
Task.AchieveHeading(-1, 172.0)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Sequence.Close(53@)
Char.ClearTasks(57@)
Char.PerformSequence(57@, 53@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Path.FlushRoute
Task.ToggleDuck(-1, True)
Path.ExtendRoute(2188.537, 1615.527, 998.9766)
Path.ExtendRoute(2184.411, 1614.467, 998.9766)
Path.ExtendRoute(2180.224, 1614.09, 998.9766)
Path.ExtendRoute(2175.855, 1615.655, 998.9766)
Path.ExtendRoute(2169.48, 1617.185, 998.9766)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Sequence.Close(53@)
Char.ClearTasks(54@)
Char.PerformSequence(54@, 53@)
Sequence.Clear(53@)
Sequence.Clear(286@)
258@ = 2

:HEIST9_20551
if and
  Char.IsDead(344@)
  Char.IsDead(345@)
  258@ == 2
goto_if_false @HEIST9_20736
53@ = Sequence.Open()
Task.ToggleDuck(-1, False)
Task.FollowPathNodesToCoord(-1, 2157.872, 1603.249, 998.973, 6, -1)
Task.FollowPathNodesToCoord(-1, 2144.301, 1610.444, 992.6882, 6, -1)
Sequence.Close(53@)
58@ = 0

:HEIST9_20648
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_20689
Char.ClearTasks(54@(58@,4i))
Char.PerformSequence(54@(58@,4i), 53@)

:HEIST9_20689
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_20648
Sequence.Clear(53@)
367@ = 1
TIMERB = 0
258@ = 3

:HEIST9_20736
if 
  Char.LocateAnyMeans3D($scplayer, 2195.041, 1618.905, 998.9766, 2.0, 2.0, 2.0, False)
goto_if_false @HEIST9_21078
if and
  not Car.IsDead(46@)
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_20834
if 
  not Char.IsInCar($scplayer, 46@)
goto_if_false @HEIST9_20834
Car.Delete(46@)
Streaming.MarkModelAsNoLongerNeeded(530)

:HEIST9_20834
if 
  304@ == 0
goto_if_false @HEIST9_21078
if 
  not Char.IsDead(341@)
goto_if_false @HEIST9_20959
53@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.Pause(-1, 3000)
Path.FlushRoute
Path.ExtendRoute(2176.628, 1610.473, 998.9766)
Path.ExtendRoute(2173.56, 1623.915, 998.9739)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.AchieveHeading(-1, 270.0)
Sequence.Close(53@)
Char.PerformSequence(341@, 53@)
Sequence.Clear(53@)

:HEIST9_20959
if 
  not Char.IsDead(342@)
goto_if_false @HEIST9_21071
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.StayInSamePlace(-1, False)
Task.Pause(-1, 3000)
Path.FlushRoute
Path.ExtendRoute(2176.628, 1610.473, 998.9766)
Path.ExtendRoute(2175.972, 1613.853, 998.9766)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.AchieveHeading(-1, 270.0)
Sequence.Close(53@)
Char.PerformSequence(342@, 53@)
Sequence.Clear(53@)

:HEIST9_21071
304@ = 1

:HEIST9_21078
if 
  251@ == 0
goto_if_false @HEIST9_21258
if and
  231@ == 2
  105@ == 0
goto_if_false @HEIST9_21153
Text.PrintWithNumberNow('HM9_1C', 7, 5000, 1)
105@ = 1
TIMERB = 0

:HEIST9_21153
if and
  TIMERB > 5000
  105@ == 1
goto_if_false @HEIST9_21209
Text.PrintNow('HM9_21', 6000, 1)
105@ = 2
TIMERB = 0

:HEIST9_21209
if and
  TIMERB > 6000
  105@ == 2
goto_if_false @HEIST9_21258
Text.PrintNow('HM9_1G', 7000, 1)
105@ = 3

:HEIST9_21258
if 
  367@ <> 0
goto_if_false @HEIST9_21728
if 
  367@ == 1
goto_if_false @HEIST9_21361
58@ = 0

:HEIST9_21301
Char.Delete(315@(58@,5i))
58@ += 1
  58@ >= 3
goto_if_false @HEIST9_21301
Text.PrintNow('HM9_1E', 5000, 1)
367@ = 2
TIMERA = 0

:HEIST9_21361
if and
  TIMERA > 4000
  367@ == 2
goto_if_false @HEIST9_21423
set_lvar_text_label 288@s = 'HE8_LA'
set_lvar_int_to_constant 232@ = 12247
gosub @HEIST9_50650
367@ = 3

:HEIST9_21423
if and
  231@ == 2
  367@ == 3
goto_if_false @HEIST9_21484
set_lvar_text_label 288@s = 'HE8_LB'
set_lvar_int_to_constant 232@ = 12207
gosub @HEIST9_50650
367@ = 4

:HEIST9_21484
if and
  231@ == 2
  367@ == 4
goto_if_false @HEIST9_21545
set_lvar_text_label 288@s = 'HE8_LC'
set_lvar_int_to_constant 232@ = 12248
gosub @HEIST9_50650
367@ = 5

:HEIST9_21545
if and
  231@ == 2
  367@ == 5
goto_if_false @HEIST9_21606
set_lvar_text_label 288@s = 'HE8_LD'
set_lvar_int_to_constant 232@ = 12208
gosub @HEIST9_50650
367@ = 6

:HEIST9_21606
if and
  231@ == 2
  367@ == 6
goto_if_false @HEIST9_21667
set_lvar_text_label 288@s = 'HE8_LE'
set_lvar_int_to_constant 232@ = 12221
gosub @HEIST9_50650
367@ = 7

:HEIST9_21667
if and
  231@ == 2
  367@ == 7
goto_if_false @HEIST9_21728
set_lvar_text_label 288@s = 'HE8_LF'
set_lvar_int_to_constant 232@ = 12209
gosub @HEIST9_50650
367@ = 0

:HEIST9_21728
234@ = 0
if and
  251@ > 1
  252@ == 1
goto_if_false @HEIST9_22822
if and
  231@ == 2
  105@ == 0
goto_if_false @HEIST9_21905
58@ = 0

:HEIST9_21792
Char.Delete(335@(58@,15i))
58@ += 1
  58@ >= 11
goto_if_false @HEIST9_21792
233@ = Blip.AddForCoord(2144.101, 1623.453, 993.5677)
Blip.SetEntryExit(233@, 2196.635, 1676.841, 10.0)
Blip.ChangeDisplay(233@, BlipDisplay.Neither)
set_lvar_text_label 288@s = 'HE8_MA'
set_lvar_int_to_constant 232@ = 12210
gosub @HEIST9_50650
105@ = 1

:HEIST9_21905
if and
  231@ == 2
  105@ == 1
goto_if_false @HEIST9_21966
set_lvar_text_label 288@s = 'HE8_MB'
set_lvar_int_to_constant 232@ = 12249
gosub @HEIST9_50650
105@ = 2

:HEIST9_21966
if and
  231@ == 2
  105@ == 2
goto_if_false @HEIST9_22034
set_lvar_text_label 288@s = 'HE8_MC'
set_lvar_int_to_constant 232@ = 12300
gosub @HEIST9_50650
105@ = 3
TIMERA = 0

:HEIST9_22034
if and
  231@ == 2
  105@ == 3
goto_if_false @HEIST9_22095
set_lvar_text_label 288@s = 'HE8_NA'
set_lvar_int_to_constant 232@ = 12250
gosub @HEIST9_50650
105@ = 4

:HEIST9_22095
if and
  231@ == 2
  105@ == 4
goto_if_false @HEIST9_22156
set_lvar_text_label 288@s = 'HE8_NB'
set_lvar_int_to_constant 232@ = 12251
gosub @HEIST9_50650
105@ = 5

:HEIST9_22156
if and
  231@ == 2
  105@ == 5
goto_if_false @HEIST9_22224
set_lvar_text_label 288@s = 'HE8_NC'
set_lvar_int_to_constant 232@ = 12301
gosub @HEIST9_50650
105@ = 6
TIMERA = 0

:HEIST9_22224
if and
  231@ == 2
  105@ == 6
goto_if_false @HEIST9_22285
set_lvar_text_label 288@s = 'HE8_ND'
set_lvar_int_to_constant 232@ = 12252
gosub @HEIST9_50650
105@ = 7

:HEIST9_22285
if and
  231@ == 2
  105@ == 7
goto_if_false @HEIST9_22353
set_lvar_text_label 288@s = 'HE8_NE'
set_lvar_int_to_constant 232@ = 12302
gosub @HEIST9_50650
105@ = 8
TIMERA = 0

:HEIST9_22353
if and
  231@ == 2
  105@ == 8
goto_if_false @HEIST9_22822
if 
  Char.HasGotWeapon($scplayer, WeaponType.Satchel)
goto_if_false @HEIST9_22764
Streaming.RequestModel(163)

:HEIST9_22401
if 
  not Streaming.HasModelLoaded(163)
goto_if_false @HEIST9_22428
wait 0
goto @HEIST9_22401

:HEIST9_22428
295@ = Char.Create(PedType.Mission1, 164, 2146.665, 1611.452, 999.9764)
Char.SetAreaVisible(295@, 1)
Char.SetHeading(295@, 189.8734)
Char.SetDecisionMaker(295@, 89@)
Char.GiveWeapon(295@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(295@, WeaponType.Mp5)
Task.StayInSamePlace(295@, True)
Char.SetMoney(295@, 0)
296@ = Char.Create(PedType.Mission1, 163, 2147.982, 1605.254, 1000.752)
Char.SetAreaVisible(296@, 1)
Char.SetHeading(296@, 191.7168)
Char.GiveWeapon(296@, WeaponType.Mp5, 30000)
Char.SetDecisionMaker(296@, 89@)
Char.SetCurrentWeapon(296@, WeaponType.Mp5)
Task.StayInSamePlace(296@, True)
Char.SetMoney(296@, 0)
if 
  Blip.DoesExist(233@)
goto_if_false @HEIST9_22611
Blip.Remove(233@)

:HEIST9_22611
58@ = 0

:HEIST9_22618
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_22657
Char.SetProofs(54@(58@,4i), False, True, True, True, False)

:HEIST9_22657
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_22618
Text.PrintNow('HM9_22', 4000, 1)
38@ = 13
228@ = Blip.AddForObject(171@)
Blip.SetEntryExit(228@, 2196.635, 1676.841, 10.0)
229@ = Blip.AddForObject(172@)
Blip.SetEntryExit(229@, 2196.635, 1676.841, 10.0)
goto @HEIST9_22808

:HEIST9_22764
Text.PrintNow('HM9_PK', 4000, 1)
299@ = Blip.AddForPickup(214@)
Blip.SetEntryExit(299@, 2196.635, 1676.841, 10.0)

:HEIST9_22808
105@ = 101
TIMERA = 0

:HEIST9_22822
if and
  Char.HasGotWeapon($scplayer, WeaponType.Satchel)
  105@ == 101
  38@ <> 13
goto_if_false @HEIST9_23222
Streaming.RequestModel(163)

:HEIST9_22859
if 
  not Streaming.HasModelLoaded(163)
goto_if_false @HEIST9_22886
wait 0
goto @HEIST9_22859

:HEIST9_22886
295@ = Char.Create(PedType.Mission1, 164, 2146.665, 1611.452, 999.9764)
Char.SetAreaVisible(295@, 1)
Char.SetHeading(295@, 189.8734)
Char.SetDecisionMaker(295@, 89@)
Char.GiveWeapon(295@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(295@, WeaponType.Mp5)
Task.StayInSamePlace(295@, True)
296@ = Char.Create(PedType.Mission1, 163, 2147.982, 1605.254, 1000.752)
Char.SetAreaVisible(296@, 1)
Char.SetHeading(296@, 191.7168)
Char.GiveWeapon(296@, WeaponType.Mp5, 30000)
Char.SetDecisionMaker(296@, 89@)
Char.SetCurrentWeapon(296@, WeaponType.Mp5)
Task.StayInSamePlace(296@, True)
if 
  Blip.DoesExist(233@)
goto_if_false @HEIST9_23055
Blip.Remove(233@)

:HEIST9_23055
58@ = 0

:HEIST9_23062
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_23101
Char.SetProofs(54@(58@,4i), False, True, True, True, False)

:HEIST9_23101
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_23062
if 
  Blip.DoesExist(299@)
goto_if_false @HEIST9_23143
Blip.Remove(299@)

:HEIST9_23143
Text.PrintNow('HM9_22', 4000, 1)
38@ = 13
228@ = Blip.AddForObject(171@)
Blip.SetEntryExit(228@, 2196.635, 1676.841, 10.0)
229@ = Blip.AddForObject(172@)
Blip.SetEntryExit(229@, 2196.635, 1676.841, 10.0)

:HEIST9_23222
if 
  Char.LocateAnyMeans3D($scplayer, 2144.393, 1616.653, 992.5681, 20.0, 20.0, 2.0, False)
goto_if_false @HEIST9_23339
if and
  105@ <> 0
  105@ <> 9
  251@ > 1
goto_if_false @HEIST9_23325
if 
  Blip.DoesExist(233@)
goto_if_false @HEIST9_23325
Blip.ChangeDisplay(233@, BlipDisplay.Neither)

:HEIST9_23325
252@ = 1
goto @HEIST9_23417

:HEIST9_23339
if and
  105@ <> 0
  105@ <> 9
  251@ > 1
goto_if_false @HEIST9_23410
if 
  Blip.DoesExist(233@)
goto_if_false @HEIST9_23394
Blip.ChangeDisplay(233@, BlipDisplay.Both)

:HEIST9_23394
Text.PrintNow('HM9_56', 1000, 1)

:HEIST9_23410
252@ = 0

:HEIST9_23417
58@ = 0

:HEIST9_23424
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_24131
if and
  Char.LocateAnyMeans3D(54@(58@,4i), 2143.693, 1610.628, 992.6882, 4.0, 4.0, 2.0, False)
  239@(58@,4i) == 0
goto_if_false @HEIST9_24131
if and
  58@ == 0
  not Char.IsDead(54@)
goto_if_false @HEIST9_23675
53@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2144.202, 1618.696, 992.6882)
Path.ExtendRoute(2143.036, 1626.497, 992.5681)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.TurnCharToFaceCoord(-1, 2144.231, 1629.507, 992.5703)
Task.StayInSamePlace(-1, True)
Task.PlayAnim(-1, "BOM_PLANT_LOOP", "BOMBER", 1.0, True, False, False, False, -1)
Task.StayInSamePlace(-1, True)
Sequence.SetToRepeat(53@, True)
Sequence.Close(53@)
Char.PerformSequence(54@, 53@)

:HEIST9_23675
if and
  58@ == 1
  not Char.IsDead(55@)
goto_if_false @HEIST9_23837
53@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2144.202, 1618.696, 992.6882)
Path.ExtendRoute(2145.696, 1626.496, 992.5681)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.TurnCharToFaceCoord(-1, 2144.231, 1629.507, 992.5703)
Task.StayInSamePlace(-1, True)
Task.PlayAnim(-1, "BOM_PLANT_LOOP", "BOMBER", 1.0, True, False, False, False, -1)
Sequence.SetToRepeat(53@, True)
Sequence.Close(53@)
Char.PerformSequence(55@, 53@)

:HEIST9_23837
if and
  58@ == 2
  not Char.IsDead(56@)
goto_if_false @HEIST9_23949
53@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2144.202, 1618.696, 992.6882)
Path.ExtendRoute(2147.744, 1620.447, 992.6882)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.StayInSamePlace(-1, True)
Task.TurnCharToFaceCoord(-1, 2144.231, 1629.507, 992.5703)
Sequence.Close(53@)
Char.PerformSequence(56@, 53@)

:HEIST9_23949
if and
  58@ == 3
  not Char.IsDead(57@)
goto_if_false @HEIST9_24061
53@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2144.202, 1618.696, 992.6882)
Path.ExtendRoute(2136.254, 1621.628, 992.6882)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.StayInSamePlace(-1, True)
Task.TurnCharToFaceCoord(-1, 2144.231, 1629.507, 992.5703)
Sequence.Close(53@)
Char.PerformSequence(57@, 53@)

:HEIST9_24061
Sequence.Clear(53@)
Char.SetOnlyDamagedByPlayer(54@(58@,4i), False)
Blip.ChangeDisplay(91@(58@,4i), BlipDisplay.Neither)
239@(58@,4i) = 1
if 
  251@ == 0
goto_if_false @HEIST9_24124
105@ = 0

:HEIST9_24124
251@ += 1

:HEIST9_24131
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_23424

:HEIST9_24152
if and
  38@ == 13
  TIMERA > 5000
goto_if_false @HEIST9_31407
if 
  119@ == 0
goto_if_false @HEIST9_24623
if and
  231@ == 2
  105@ == 0
goto_if_false @HEIST9_24257
set_lvar_text_label 288@s = 'HE8_OA'
set_lvar_int_to_constant 232@ = 12253
gosub @HEIST9_50650
105@ = 1

:HEIST9_24257
if and
  231@ == 2
  105@ == 1
goto_if_false @HEIST9_24318
set_lvar_text_label 288@s = 'HE8_OB'
set_lvar_int_to_constant 232@ = 12303
gosub @HEIST9_50650
105@ = 2

:HEIST9_24318
if and
  231@ == 2
  105@ == 2
goto_if_false @HEIST9_24379
set_lvar_text_label 288@s = 'HE8_OC'
set_lvar_int_to_constant 232@ = 12254
gosub @HEIST9_50650
105@ = 3

:HEIST9_24379
if and
  231@ == 2
  105@ == 3
goto_if_false @HEIST9_24440
set_lvar_text_label 288@s = 'HE8_OD'
set_lvar_int_to_constant 232@ = 12255
gosub @HEIST9_50650
105@ = 4

:HEIST9_24440
if and
  231@ == 2
  105@ == 4
goto_if_false @HEIST9_24501
set_lvar_text_label 288@s = 'HE8_OE'
set_lvar_int_to_constant 232@ = 12304
gosub @HEIST9_50650
105@ = 5

:HEIST9_24501
if and
  231@ == 2
  105@ == 5
goto_if_false @HEIST9_24562
set_lvar_text_label 288@s = 'HE8_OF'
set_lvar_int_to_constant 232@ = 12256
gosub @HEIST9_50650
105@ = 8

:HEIST9_24562
if and
  231@ == 2
  105@ == 8
goto_if_false @HEIST9_24623
set_lvar_text_label 288@s = 'HE8_OJ'
set_lvar_int_to_constant 232@ = 12305
gosub @HEIST9_50650
105@ = 9

:HEIST9_24623
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_24649
175@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Satchel)

:HEIST9_24649
if 
  not World.IsAnyPickupAtCoords(2146.487, 1622.805, 993.0)
goto_if_false @HEIST9_24745
if and
  0 >= 175@
  119@ == 0
goto_if_false @HEIST9_24745
if 
  not Pickup.DoesExist(214@)
goto_if_false @HEIST9_24745
214@ = Pickup.CreateWithAmmo(363, PickupType.Once, 5, 2146.487, 1622.805, 993.0)

:HEIST9_24745
if or
  World.IsExplosionInArea(ExplosionType.Grenade, 2150.966, 1618.857, 999.9688, 2142.472, 1608.066, 1003.0)
  World.IsExplosionInArea(ExplosionType.Molotov, 2150.966, 1618.857, 999.9688, 2142.472, 1608.066, 1003.0)
  World.IsExplosionInArea(ExplosionType.WeakRocket, 2150.966, 1618.857, 999.9688, 2142.472, 1608.066, 1003.0)
  World.IsExplosionInArea(ExplosionType.Rocket, 2150.966, 1618.857, 999.9688, 2142.472, 1608.066, 1003.0)
goto_if_false @HEIST9_25627
if 
  119@ == 0
goto_if_false @HEIST9_25627
312@ = Object.CreateNoOffset(#WAREHOUSE_DOOR2B, 2195.769, 1585.199, 1002.0)
Object.SetAreaVisible(312@, 1)
Object.SetHeading(312@, 180.0)
Object.SetCollisionDamageEffect(312@, False)
gosub @HEIST9_46291
Object.SetCollisionDamageEffect(60@, True)
if and
  Char.LocateAnyMeans3D($scplayer, 2146.146, 1613.818, 999.968, 7.0, 7.0, 2.0, False)
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_25029
Task.Die($scplayer)

:HEIST9_25029
if 
  Blip.DoesExist(228@)
goto_if_false @HEIST9_25050
Blip.Remove(228@)

:HEIST9_25050
if 
  Blip.DoesExist(229@)
goto_if_false @HEIST9_25071
Blip.Remove(229@)

:HEIST9_25071
Camera.SetFixedPosition(2141.361, 1619.829, 1000.669, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2141.925, 1619.005, 1000.723, SwitchType.JumpCut)
gosub @HEIST9_43888
Object.Delete(171@)
Object.Delete(172@)
Streaming.MarkModelAsNoLongerNeeded(#GENERATOR_BIG)
171@ = Object.Create(#GENERATOR_BIG_D, 2145.05, 1613.49, 999.9764)
Object.SetHeading(171@, 1.2043)
172@ = Object.Create(#GENERATOR_BIG_D, 2148.8, 1613.49, 999.9764)
Object.SetHeading(172@, 354.0372)
368@ = 0

:HEIST9_25217
Fx.AddExplosion(2143.107, 1611.332, 1000.5, ExplosionType.Small)
201@ = Particle.Create("EXPLOSION_SMALL", 2143.107, 1611.332, 1000.5, 1)
Particle.Play(201@)
wait 150
Fx.AddExplosion(2149.51, 1614.586, 1000.5, ExplosionType.Small)
202@ = Particle.Create("EXPLOSION_SMALL", 2149.51, 1614.586, 1000.5, 1)
Particle.Play(202@)
wait 10
58@ = 0

:HEIST9_25359
Particle.Stop(201@(58@,6i))
Particle.Kill(201@(58@,6i))
58@ += 1
  58@ >= 6
goto_if_false @HEIST9_25359
368@ += 1
  368@ >= 3
goto_if_false @HEIST9_25217
wait 2000
58@ = 0

:HEIST9_25431
Blip.ChangeDisplay(91@(58@,4i), BlipDisplay.Both)
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_25492
Task.StayInSamePlace(54@(58@,4i), False)
Char.SetProofs(54@(58@,4i), False, False, False, True, False)

:HEIST9_25492
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_25431
105@ = 6
gosub @HEIST9_46308
gosub @HEIST9_43957
TIMERA = 0
119@ = 1
Text.ClearHelp
58@ = 0

:HEIST9_25557
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_25557
if 
  World.IsAnyPickupAtCoords(2146.487, 1622.805, 993.0)
goto_if_false @HEIST9_25611
Pickup.Remove(214@)

:HEIST9_25611
Text.PrintNow('HM9_40', 5000, 1)

:HEIST9_25627
if 
  119@ == 1
goto_if_false @HEIST9_25706
if and
  231@ == 2
  105@ == 0
goto_if_false @HEIST9_25706
set_lvar_text_label 288@s = 'HE8_OK'
set_lvar_int_to_constant 232@ = 12306
gosub @HEIST9_50650
105@ = 10

:HEIST9_25706
if and
  121@ == 0
  119@ == 1
goto_if_false @HEIST9_27728
if 
  Char.LocateAnyMeans3D($scplayer, 2143.975, 1624.443, 992.5681, 20.0, 20.0, 2.0, False)
goto_if_false @HEIST9_27728
105@ = 10
121@ = 1
58@ = 0

:HEIST9_25800
Blip.ChangeDisplay(91@(58@,4i), BlipDisplay.Neither)
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_25800
gosub @HEIST9_46291
if 
  not Char.IsDead(56@)
goto_if_false @HEIST9_25885
Char.SetCoordinatesDontWarpGang(56@, 2147.744, 1620.447, 992.6882)
Char.SetHeading(56@, 346.8824)

:HEIST9_25885
if 
  not Char.IsDead(57@)
goto_if_false @HEIST9_25931
Char.SetCoordinatesDontWarpGang(57@, 2136.254, 1621.628, 992.6882)
Char.SetHeading(57@, 358.8987)

:HEIST9_25931
Camera.SetFixedPosition(2140.489, 1617.689, 993.7817, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2140.831, 1618.629, 993.7844, SwitchType.JumpCut)
wait 1000
Text.PrintNow('HE8_QA', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12211)

:HEIST9_26014
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_26040
wait 0
goto @HEIST9_26014

:HEIST9_26040
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_26051
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_26094
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_26087

:HEIST9_26087
goto @HEIST9_26051

:HEIST9_26094
Text.PrintNow('HE8_QC', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12212)

:HEIST9_26121
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_26147
wait 0
goto @HEIST9_26121

:HEIST9_26147
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
if 
  not Char.IsDead(54@)
goto_if_false @HEIST9_26217
Task.Pause(54@, 1000)
Char.ClearTasksImmediately(54@)
Path.FlushRoute
Path.ExtendRoute(2135.497, 1625.518, 992.5681)
Task.ToggleDuck(54@, True)
Task.FollowPointRoute(54@, 6, RouteMode.Once)
Path.FlushRoute

:HEIST9_26217
if 
  not Char.IsDead(55@)
goto_if_false @HEIST9_26275
Char.ClearTasksImmediately(55@)
Path.FlushRoute
Path.ExtendRoute(2152.954, 1625.076, 992.5681)
Task.ToggleDuck(55@, True)
Task.FollowPointRoute(55@, 6, RouteMode.Once)
Path.FlushRoute

:HEIST9_26275
TIMERB = 0

:HEIST9_26282
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_26325
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_26318

:HEIST9_26318
goto @HEIST9_26282

:HEIST9_26325
Text.PrintNow('HE8_QB', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12222)

:HEIST9_26352
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_26378
wait 0
goto @HEIST9_26352

:HEIST9_26378
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_26389
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_26432
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_26425

:HEIST9_26425
goto @HEIST9_26389

:HEIST9_26432
58@ = 0

:HEIST9_26439
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_26479
Char.ClearTasksImmediately(54@(58@,4i))
Task.ToggleDuck(54@(58@,4i), True)

:HEIST9_26479
Blip.ChangeDisplay(91@(58@,4i), BlipDisplay.Both)
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_26439
Fx.AddExplosion(2144.533, 1626.747, 992.707, ExplosionType.Small)
369@ = Particle.Create("EXPLOSION_SMALL", 2144.533, 1626.747, 992.707, 1)
Particle.PlayAndKill(369@)
Fx.AddExplosion(2144.533, 1626.747, 994.0, ExplosionType.Small)
wait 500
370@ = Particle.Create("EXPLOSION_SMALL", 2144.533, 1626.747, 994.0, 1)
Particle.PlayAndKill(370@)
Fx.AddExplosion(2144.533, 1626.747, 996.0, ExplosionType.Small)
Object.Delete(60@)
wait 500
371@ = Particle.Create("EXPLOSION_SMALL", 2144.533, 1626.747, 996.0, 1)
Particle.PlayAndKill(371@)
Text.PrintNow('HE8_RA', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12213)

:HEIST9_26742
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_26768
wait 0
goto @HEIST9_26742

:HEIST9_26768
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_26779
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_26822
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_26815

:HEIST9_26815
goto @HEIST9_26779

:HEIST9_26822
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_26868
Char.SetCoordinatesDontWarpGang($scplayer, 2144.266, 1610.649, 992.5681)
Char.SetHeading($scplayer, 359.3881)

:HEIST9_26868
gosub @HEIST9_46308
Text.PrintNow('HM9_58', 7000, 1)
61@ = Object.Create(#CJ_MONEY_BAG, 2146.27, 1636.314, 992.5683)
Object.SetAreaVisible(61@, 1)
Object.SetHeading(61@, 268.4277)
Object.SetCollision(61@, False)
62@ = Object.Create(#CJ_MONEY_BAG, 2146.137, 1632.404, 992.5683)
Object.SetAreaVisible(62@, 1)
Object.SetHeading(62@, 89.5044)
Object.SetCollision(62@, False)
63@ = Object.Create(#CJ_MONEY_BAG, 2142.148, 1632.426, 992.5683)
Object.SetAreaVisible(63@, 1)
Object.SetHeading(63@, 97.3067)
Object.SetCollision(63@, False)
64@ = Object.Create(#CJ_MONEY_BAG, 2142.07, 1636.137, 992.5683)
Object.SetAreaVisible(64@, 1)
Object.SetHeading(64@, 51.5319)
Object.SetCollision(64@, False)
if and
  not Char.IsDead(54@)
  not Char.IsDead(55@)
  not Char.IsDead(56@)
  not Char.IsDead(57@)
goto_if_false @HEIST9_27728
373@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.Pause(-1, 500)
Sequence.SetToRepeat(373@, True)
Sequence.Close(373@)
53@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.Pause(-1, 3000)
Task.FollowPathNodesToCoord(-1, 2146.27, 1636.314, 992.5683, 6, -1)
Task.PickUpObject(-1, 61@, 0.0, 0.0, -0.5, 6, 1, "NULL", "NULL", 0)
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, True)
Char.PerformSequence(-1, 373@)
Sequence.Close(53@)
Char.ClearTasksImmediately(54@)
Task.ToggleDuck(54@, False)
Char.PerformSequence(54@, 53@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.Pause(-1, 100)
Task.ToggleDuck(-1, True)
Task.FollowPathNodesToCoord(-1, 2146.137, 1632.404, 992.5683, 6, -1)
Task.PickUpObject(-1, 62@, 0.0, 0.0, -0.5, 6, 1, "NULL", "NULL", 0)
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, True)
Char.PerformSequence(-1, 373@)
Sequence.Close(53@)
Char.ClearTasksImmediately(55@)
Task.ToggleDuck(55@, False)
Char.PerformSequence(55@, 53@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.Pause(-1, 200)
Task.ToggleDuck(-1, True)
Task.Pause(-1, 2000)
Task.FollowPathNodesToCoord(-1, 2142.148, 1632.426, 992.5683, 6, -1)
Task.PickUpObject(-1, 63@, 0.0, 0.0, -0.5, 6, 1, "NULL", "NULL", 0)
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, True)
Char.PerformSequence(-1, 373@)
Sequence.Close(53@)
Char.ClearTasksImmediately(56@)
Task.ToggleDuck(56@, False)
Char.PerformSequence(56@, 53@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.Pause(-1, 100)
Task.ToggleDuck(-1, True)
Task.Pause(-1, 3000)
Task.FollowPathNodesToCoord(-1, 2142.07, 1636.137, 992.5683, 6, -1)
Task.PickUpObject(-1, 64@, 0.0, 0.0, -0.5, 6, 1, "NULL", "NULL", 0)
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, True)
Char.PerformSequence(-1, 373@)
Sequence.Close(53@)
Char.ClearTasksImmediately(57@)
Task.ToggleDuck(57@, False)
Char.PerformSequence(57@, 53@)
Streaming.RemoveAnimation("BOMBER")
372@ = Blip.AddForCoord(2144.152, 1636.462, 992.5703)
Blip.SetEntryExit(372@, 2196.635, 1676.841, 10.0)
Sequence.Clear(373@)
Sequence.Clear(53@)

:HEIST9_27728
if 
  121@ == 1
goto_if_false @HEIST9_27921
if and
  Char.LocateAnyMeans3D($scplayer, 2144.152, 1636.462, 992.5703, 10.0, 10.0, 2.0, False)
  Blip.DoesExist(372@)
goto_if_false @HEIST9_27921
if 
  Blip.DoesExist(372@)
goto_if_false @HEIST9_27820
Blip.Remove(372@)

:HEIST9_27820
140@ = 1
121@ = 2
TIMERB = 0
58@ = 0

:HEIST9_27848
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_27900
142@(58@,5i) = Char.GetHealth(54@(58@,4i))
set_lvar_int_to_lvar_int 148@(58@,5i) = 142@(58@,5i)

:HEIST9_27900
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_27848

:HEIST9_27921
if and
  231@ == 2
  140@ == 1
goto_if_false @HEIST9_27982
set_lvar_text_label 288@s = 'HE8_RB'
set_lvar_int_to_constant 232@ = 12265
gosub @HEIST9_50650
140@ = 2

:HEIST9_27982
if and
  231@ == 2
  140@ == 2
goto_if_false @HEIST9_28050
set_lvar_text_label 288@s = 'HE8_RC'
set_lvar_int_to_constant 232@ = 12266
gosub @HEIST9_50650
TIMERA = 0
140@ = 3

:HEIST9_28050
if and
  231@ == 2
  140@ == 3
  TIMERA > 3000
goto_if_false @HEIST9_29544
gosub @HEIST9_46327
gosub @HEIST9_46291
131@ = 4
58@ = 0

:HEIST9_28111
if 
  not Char.IsDead(335@(58@,15i))
goto_if_false @HEIST9_28140
Char.Delete(335@(58@,15i))

:HEIST9_28140
58@ += 1
  58@ >= 11
goto_if_false @HEIST9_28111
58@ = 0

:HEIST9_28168
Char.Delete(109@(58@,5i))
58@ += 1
  58@ >= 3
goto_if_false @HEIST9_28168
Char.Delete(295@)
Char.Delete(296@)
Streaming.MarkModelAsNoLongerNeeded(163)
Streaming.MarkModelAsNoLongerNeeded(164)
Streaming.RequestModel(124)
Streaming.RequestModel(125)

:HEIST9_28226
if or
  not Streaming.HasModelLoaded(124)
  not Streaming.HasModelLoaded(125)
goto_if_false @HEIST9_28256
wait 0
goto @HEIST9_28226

:HEIST9_28256
335@ = Char.Create(PedType.Mission1, 124, 2150.831, 1611.033, 992.6882)
Char.SetAreaVisible(335@, 1)
Char.SetHeading(335@, 353.2278)
Char.SetOnlyDamagedByPlayer(335@, True)
336@ = Char.Create(PedType.Mission1, 124, 2135.702, 1611.064, 992.6882)
Char.SetAreaVisible(336@, 1)
Char.SetHeading(336@, 354.2745)
374@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2144.14, 1610.015, 992.6882)
Path.ExtendRoute(2146.085, 1611.896, 992.6882)
Task.ToggleDuck(-1, True)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Task.AchieveHeading(-1, 6.3138)
Task.StandStill(-1, 1)
Path.FlushRoute
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_28440
Task.KillCharOnFoot(-1, $scplayer)

:HEIST9_28440
Sequence.Close(374@)
337@ = Char.Create(PedType.Mission1, 125, 2144.029, 1605.352, 992.5684)
Char.SetAreaVisible(337@, 1)
Char.SetHeading(337@, 356.695)
Char.PerformSequence(337@, 374@)
Sequence.Clear(374@)
374@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2144.14, 1610.015, 992.6882)
Path.ExtendRoute(2139.815, 1615.471, 992.6882)
Task.ToggleDuck(-1, True)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Task.ToggleDuck(-1, False)
Task.AchieveHeading(-1, 335.8946)
Task.StandStill(-1, 1)
Path.FlushRoute
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_28600
Task.KillCharOnFoot(-1, $scplayer)

:HEIST9_28600
Sequence.Close(374@)
338@ = Char.Create(PedType.Mission1, 124, 2144.22, 1601.963, 992.5684)
Char.SetAreaVisible(338@, 1)
Char.SetHeading(338@, 358.3628)
Char.PerformSequence(338@, 374@)
339@ = Char.Create(PedType.Mission1, 125, 2146.605, 1597.785, 994.5676)
Char.SetAreaVisible(339@, 1)
Char.SetHeading(339@, 89.7654)
Char.SetOnlyDamagedByPlayer(339@, True)
Task.StayInSamePlace(339@, True)
Char.SetSenseRange(339@, 5.0)
340@ = Char.Create(PedType.Mission1, 125, 2147.77, 1596.479, 994.5676)
Char.SetAreaVisible(340@, 1)
Char.SetHeading(340@, 78.7631)
Task.StayInSamePlace(340@, True)
Char.SetSenseRange(340@, 5.0)
341@ = Char.Create(PedType.Mission1, 124, 2148.627, 1602.235, 996.7766)
Char.SetAreaVisible(341@, 1)
Char.SetHeading(341@, 170.4726)
Task.StayInSamePlace(341@, True)
Char.SetSenseRange(341@, 5.0)
342@ = Char.Create(PedType.Mission1, 125, 2148.358, 1603.734, 996.7766)
Char.SetAreaVisible(342@, 1)
Char.SetHeading(342@, 158.879)
Task.StayInSamePlace(342@, True)
Char.SetSenseRange(342@, 5.0)
Sequence.Clear(374@)
58@ = 0

:HEIST9_28905
Char.SetKeepTask(335@(58@,15i), True)
Char.SetMoney(335@(58@,15i), 0)
if and
  58@ <> 0
  58@ <> 4
goto_if_false @HEIST9_28976
Char.SetHealth(335@(58@,15i), 200)
Char.SetMaxHealth(335@(58@,15i), 200)

:HEIST9_28976
if or
  58@ == 3
  58@ == 4
  58@ == 7
goto_if_false @HEIST9_29040
Char.SetWeaponSkill(335@(58@,15i), 2)
Char.GiveWeapon(335@(58@,15i), WeaponType.Pistol, 9999)
goto @HEIST9_29065

:HEIST9_29040
Char.GiveWeapon(335@(58@,15i), WeaponType.Mp5, 9999)
Char.SetCurrentWeapon(335@(58@,15i), WeaponType.Mp5)

:HEIST9_29065
350@(58@,15i) = Blip.AddForChar(335@(58@,15i))
Blip.SetEntryExit(350@(58@,15i), 2196.635, 1676.841, 10.0)
Blip.ChangeDisplay(350@(58@,15i), BlipDisplay.BlipOnly)
Char.SetShootRate(335@(58@,15i), 30)
Char.SetAccuracy(335@(58@,15i), 20)
Char.SetDecisionMaker(335@(58@,15i), 245@)
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_28905
Camera.SetFixedPosition(2142.248, 1611.113, 993.2602, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2142.669, 1610.211, 993.3487, SwitchType.JumpCut)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_29268
Char.SetCoordinatesDontWarpGang($scplayer, 2144.048, 1627.986, 992.5703)
Char.SetHeading($scplayer, 181.8141)

:HEIST9_29268
gosub @HEIST9_46360
Text.PrintNow('HM9_57', 5000, 1)
wait 2000
Camera.SetFixedPosition(2140.785, 1619.831, 993.4654, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2141.078, 1618.876, 993.4291, SwitchType.JumpCut)
if 
  not Char.IsDead(338@)
goto_if_false @HEIST9_29405
Char.ClearTasks(338@)
Task.ToggleDuck(338@, True)
Char.SetCoordinatesDontWarpGang(338@, 2140.249, 1615.12, 992.6882)
Char.SetHeading(338@, 340.6346)

:HEIST9_29405
wait 3000
if 
  not Char.IsDead(335@)
goto_if_false @HEIST9_29434
Char.PerformSequence(335@, 212@)

:HEIST9_29434
if 
  not Char.IsDead(336@)
goto_if_false @HEIST9_29458
Char.PerformSequence(336@, 213@)

:HEIST9_29458
if 
  Object.DoesExist(308@)
goto_if_false @HEIST9_29494
Object.SetCoordinates(308@, 2173.867, 1619.415, 999.3)

:HEIST9_29494
gosub @HEIST9_46308
set_lvar_text_label 288@s = 'HE8_RD'
set_lvar_int_to_constant 232@ = 12310
gosub @HEIST9_50650
140@ = 4
TIMERA = 0

:HEIST9_29544
if 
  140@ == 4
goto_if_false @HEIST9_30085
if and
  Char.IsDead(335@)
  Char.IsDead(336@)
  Char.IsDead(337@)
  Char.IsDead(338@)
  375@ == 0
goto_if_false @HEIST9_29766
Sequence.Clear(374@)
374@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2143.927, 1597.674, 994.5676)
Path.ExtendRoute(2144.14, 1603.111, 992.5684)
Path.ExtendRoute(2142.907, 1614.151, 992.6882)
Path.ExtendRoute(2143.105, 1621.571, 992.6882)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.ToggleDuck(-1, True)
Sequence.Close(374@)
if 
  not Char.IsDead(339@)
goto_if_false @HEIST9_29730
Char.ClearTasks(339@)
Char.PerformSequence(339@, 374@)

:HEIST9_29730
if 
  not Char.IsDead(340@)
goto_if_false @HEIST9_29759
Char.ClearTasks(340@)
Char.PerformSequence(340@, 374@)

:HEIST9_29759
375@ = 1

:HEIST9_29766
if and
  Char.IsDead(339@)
  Char.IsDead(340@)
  375@ == 1
goto_if_false @HEIST9_29977
Sequence.Clear(374@)
374@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2147.772, 1597.552, 994.5676)
Path.ExtendRoute(2144.127, 1597.792, 994.5676)
Path.ExtendRoute(2144.378, 1603.689, 992.5684)
Path.ExtendRoute(2143.987, 1609.467, 992.6882)
Path.ExtendRoute(2143.722, 1618.05, 992.6882)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.ToggleDuck(-1, True)
Sequence.Close(374@)
if 
  not Char.IsDead(341@)
goto_if_false @HEIST9_29941
Char.ClearTasks(341@)
Char.PerformSequence(341@, 374@)

:HEIST9_29941
if 
  not Char.IsDead(342@)
goto_if_false @HEIST9_29970
Char.ClearTasks(342@)
Char.PerformSequence(342@, 374@)

:HEIST9_29970
375@ = 2

:HEIST9_29977
58@ = 0

:HEIST9_29984
if and
  Char.IsDead(335@(58@,15i))
  350@(58@,15i) <> 0
goto_if_false @HEIST9_30064
if 
  Blip.DoesExist(350@(58@,15i))
goto_if_false @HEIST9_30064
Blip.Remove(350@(58@,15i))
350@(58@,15i) = 0
Char.MarkAsNoLongerNeeded(335@(58@,15i))

:HEIST9_30064
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_29984

:HEIST9_30085
if and
  140@ > 3
  Char.LocateAnyMeans3D($scplayer, 2144.245, 1606.821, 992.6882, 3.0, 3.0, 3.0, False)
  256@ == 0
goto_if_false @HEIST9_30496
Sequence.Clear(374@)
374@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2143.927, 1597.674, 994.5676)
Path.ExtendRoute(2144.14, 1603.111, 992.5684)
Path.ExtendRoute(2142.907, 1614.151, 992.6882)
Path.ExtendRoute(2143.105, 1621.571, 992.6882)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.ToggleDuck(-1, True)
Sequence.Close(374@)
if 
  not Char.IsDead(339@)
goto_if_false @HEIST9_30277
Char.ClearTasks(339@)
Char.PerformSequence(339@, 374@)

:HEIST9_30277
if 
  not Char.IsDead(340@)
goto_if_false @HEIST9_30306
Char.ClearTasks(340@)
Char.PerformSequence(340@, 374@)

:HEIST9_30306
Sequence.Clear(374@)
374@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2147.772, 1597.552, 994.5676)
Path.ExtendRoute(2144.127, 1597.792, 994.5676)
Path.ExtendRoute(2144.378, 1603.689, 992.5684)
Path.ExtendRoute(2143.987, 1609.467, 992.6882)
Path.ExtendRoute(2143.722, 1618.05, 992.6882)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Task.ToggleDuck(-1, True)
Sequence.Close(374@)
if 
  not Char.IsDead(341@)
goto_if_false @HEIST9_30453
Char.ClearTasks(341@)
Char.PerformSequence(341@, 374@)

:HEIST9_30453
if 
  not Char.IsDead(342@)
goto_if_false @HEIST9_30482
Char.ClearTasks(342@)
Char.PerformSequence(342@, 374@)

:HEIST9_30482
375@ = 2
256@ = 1

:HEIST9_30496
if 
  121@ == 2
goto_if_false @HEIST9_30637
58@ = 0

:HEIST9_30521
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_30616
set_lvar_int_to_lvar_int 148@(58@,5i) = 142@(58@,5i)
142@(58@,5i) = Char.GetHealth(54@(58@,4i))
if 
  not is_int_lvar_equal_to_int_lvar 148@(58@,5i) == 142@(58@,5i)
goto_if_false @HEIST9_30616
Text.PrintNow('HM9_44', 4000, 1)

:HEIST9_30616
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_30521

:HEIST9_30637
if 
  121@ == 2
goto_if_false @HEIST9_30687
if and
  140@ == 4
  52@ == 0
goto_if_false @HEIST9_30687
gosub @HEIST9_44026

:HEIST9_30687
if and
  Char.LocateAnyMeans3D($scplayer, 2146.329, 1597.409, 998.7676, 4.0, 4.0, 4.0, False)
  52@ == 1
goto_if_false @HEIST9_31407
58@ = 0

:HEIST9_30749
Char.Delete(335@(58@,15i))
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_30749
335@ = Char.Create(PedType.Mission1, 124, 2152.015, 1602.51, 1000.971)
Char.SetAreaVisible(335@, 1)
Char.SetHeading(335@, 270.0812)
Task.StayInSamePlace(335@, True)
336@ = Char.Create(PedType.Mission1, 125, 2160.985, 1616.689, 998.9657)
Char.SetAreaVisible(336@, 1)
Char.SetHeading(336@, 178.5078)
Char.PerformSequence(336@, 213@)
337@ = Char.Create(PedType.Mission1, 124, 2181.32, 1625.335, 998.9714)
Char.SetAreaVisible(337@, 1)
Char.SetHeading(337@, 117.5403)
Task.StayInSamePlace(337@, True)
Task.ToggleDuck(337@, True)
338@ = Char.Create(PedType.Mission1, 124, 2183.653, 1623.66, 998.9743)
Char.SetAreaVisible(338@, 1)
Char.SetHeading(338@, 98.1814)
Task.StayInSamePlace(338@, True)
339@ = Char.Create(PedType.Mission1, 125, 2182.494, 1611.846, 998.9766)
Char.SetAreaVisible(339@, 1)
Char.SetHeading(339@, 57.0007)
Task.StayInSamePlace(339@, True)
340@ = Char.Create(PedType.Mission1, 125, 2191.278, 1619.051, 998.9766)
Char.SetAreaVisible(340@, 1)
Char.SetHeading(340@, 85.6714)
341@ = Char.Create(PedType.Mission1, 124, 2222.654, 1616.012, 998.9688)
Char.SetAreaVisible(341@, 1)
Char.SetHeading(341@, 97.3112)
Char.PerformSequence(341@, 213@)
342@ = Char.Create(PedType.Mission1, 125, 2210.106, 1620.387, 998.9766)
Char.SetAreaVisible(342@, 1)
Char.SetHeading(342@, 90.3344)
Task.ToggleDuck(342@, True)
Task.StayInSamePlace(342@, True)
343@ = Char.Create(PedType.Mission1, 124, 2224.578, 1619.114, 998.9679)
Char.SetAreaVisible(343@, 1)
Char.SetHeading(343@, 86.7328)
Task.ToggleDuck(343@, True)
Task.StayInSamePlace(343@, True)
58@ = 0

:HEIST9_31234
Char.SetMoney(335@(58@,15i), 0)
350@(58@,15i) = Blip.AddForChar(335@(58@,15i))
Blip.SetEntryExit(350@(58@,15i), 2196.635, 1676.841, 10.0)
Blip.ChangeDisplay(350@(58@,15i), BlipDisplay.BlipOnly)
Char.SetHealth(335@(58@,15i), 200)
Char.SetMaxHealth(335@(58@,15i), 200)
Char.GiveWeapon(335@(58@,15i), WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(335@(58@,15i), WeaponType.Mp5)
Char.SetShootRate(335@(58@,15i), 30)
Char.SetAccuracy(335@(58@,15i), 20)
Char.SetDecisionMaker(335@(58@,15i), 245@)
58@ += 1
  58@ >= 9
goto_if_false @HEIST9_31234
38@ = 15

:HEIST9_31407
if 
  38@ == 15
goto_if_false @HEIST9_35098
58@ = 0

:HEIST9_31432
if and
  Char.IsDead(335@(58@,15i))
  350@(58@,15i) <> 0
goto_if_false @HEIST9_31512
if 
  Blip.DoesExist(350@(58@,15i))
goto_if_false @HEIST9_31512
Blip.Remove(350@(58@,15i))
350@(58@,15i) = 0
Char.MarkAsNoLongerNeeded(335@(58@,15i))

:HEIST9_31512
58@ += 1
  58@ >= 9
goto_if_false @HEIST9_31432
if and
  TIMERB > 7000
  278@ == 1
goto_if_false @HEIST9_31595
set_lvar_text_label 288@s = 'HE8_TA'
set_lvar_int_to_constant 232@ = 12215
gosub @HEIST9_50650
278@ = 2

:HEIST9_31595
if and
  231@ == 2
  278@ == 2
goto_if_false @HEIST9_31656
set_lvar_text_label 288@s = 'HE8_TB'
set_lvar_int_to_constant 232@ = 12216
gosub @HEIST9_50650
278@ = 3

:HEIST9_31656
if and
  231@ == 2
  278@ == 3
goto_if_false @HEIST9_31717
set_lvar_text_label 288@s = 'HE8_TC'
set_lvar_int_to_constant 232@ = 12217
gosub @HEIST9_50650
278@ = 0

:HEIST9_31717
if and
  Char.IsDead(335@)
  257@ == 0
goto_if_false @HEIST9_31850
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 2157.629, 1602.604, 998.9766, 6, -1)
Sequence.Close(53@)
58@ = 0

:HEIST9_31785
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_31817
Char.PerformSequence(54@(58@,4i), 53@)

:HEIST9_31817
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_31785
Sequence.Clear(53@)
257@ = 1

:HEIST9_31850
if and
  Char.IsDead(336@)
  257@ == 1
goto_if_false @HEIST9_31978
53@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 2165.423, 1618.386, 998.9747, 6, -1)
Sequence.Close(53@)
58@ = 0

:HEIST9_31913
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_31945
Char.PerformSequence(54@(58@,4i), 53@)

:HEIST9_31945
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_31913
Sequence.Clear(53@)
257@ = 2

:HEIST9_31978
if and
  Char.IsDead(337@)
  Char.IsDead(338@)
  Char.IsDead(339@)
  Char.IsDead(340@)
  257@ == 2
goto_if_false @HEIST9_32394
53@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2169.045, 1618.73, 998.9766)
Path.ExtendRoute(2171.097, 1618.622, 998.9766)
Path.ExtendRoute(2172.748, 1621.935, 998.9772)
Path.ExtendRoute(2179.594, 1623.489, 998.9745)
Path.ExtendRoute(2184.2, 1623.908, 998.9739)
Path.ExtendRoute(2187.764, 1622.788, 998.9758)
Path.ExtendRoute(2190.13, 1618.664, 998.9766)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Sequence.Close(53@)
if 
  not Char.IsDead(54@)
goto_if_false @HEIST9_32181
Char.PerformSequence(54@, 53@)

:HEIST9_32181
if 
  not Char.IsDead(55@)
goto_if_false @HEIST9_32205
Char.PerformSequence(55@, 53@)

:HEIST9_32205
Sequence.Clear(53@)
53@ = Sequence.Open()
Path.FlushRoute
Path.ExtendRoute(2169.019, 1618.764, 998.9766)
Path.ExtendRoute(2171.71, 1618.252, 998.9766)
Path.ExtendRoute(2174.539, 1615.005, 998.9766)
Path.ExtendRoute(2180.379, 1614.246, 998.9766)
Path.ExtendRoute(2185.445, 1614.739, 998.9766)
Path.ExtendRoute(2190.13, 1618.664, 998.9766)
Task.FollowPointRoute(-1, 6, RouteMode.Once)
Path.FlushRoute
Sequence.Close(53@)
if 
  not Char.IsDead(56@)
goto_if_false @HEIST9_32358
Char.PerformSequence(56@, 53@)

:HEIST9_32358
if 
  not Char.IsDead(57@)
goto_if_false @HEIST9_32382
Char.PerformSequence(57@, 53@)

:HEIST9_32382
Sequence.Clear(53@)
257@ = 3

:HEIST9_32394
if 
  257@ == 3
goto_if_false @HEIST9_32704
Streaming.RequestModel(523)
Streaming.RequestModel(284)
Streaming.LoadSpecialCharacter(1, 'ZERO')

:HEIST9_32435
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(523)
  not Streaming.HasModelLoaded(284)
goto_if_false @HEIST9_32471
wait 0
goto @HEIST9_32435

:HEIST9_32471
Streaming.RequestCarRecording(494)
Streaming.LoadSpecialCharacter(1, 'ZERO')

:HEIST9_32489
if 
  not Streaming.HasCarRecordingBeenLoaded(494)
goto_if_false @HEIST9_32516
wait 0
goto @HEIST9_32489

:HEIST9_32516
World.ClearArea(2220.34, 1582.068, 998.9764, 10.0, True)
97@ = Char.Create(PedType.Mission2, 290, 2220.34, 1582.068, 998.9764)
Char.SetAreaVisible(97@, 1)
Char.SetHeading(97@, 350.4443)
Char.SetNeverTargeted(97@, True)
279@ = Car.Create(523, 2223.699, 1582.78, 998.0)
Car.SetAreaVisible(279@, 1)
Car.SetHeading(279@, 175.8434)
Car.LockDoors(279@, CarLock.LockoutPlayerOnly)
Car.FreezePosition(279@, True)
280@ = Car.Create(523, 2217.549, 1583.667, 998.0)
Car.SetAreaVisible(280@, 1)
Car.SetHeading(280@, 175.3717)
Car.LockDoors(280@, CarLock.LockoutPlayerOnly)
Car.FreezePosition(280@, True)
257@ = 4

:HEIST9_32704
if and
  Char.IsDead(341@)
  Char.IsDead(342@)
  Char.IsDead(343@)
  257@ == 4
goto_if_false @HEIST9_32865
53@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 2222.995, 1618.726, 998.9672, 6, -1)
Task.FollowPathNodesToCoord(-1, 2220.908, 1585.695, 998.9708, 6, -1)
Sequence.Close(53@)
58@ = 0

:HEIST9_32800
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_32832
Char.PerformSequence(54@(58@,4i), 53@)

:HEIST9_32832
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_32800
Sequence.Clear(53@)
257@ = 5

:HEIST9_32865
if 
  257@ >= 4
goto_if_false @HEIST9_33021
if 
  Char.IsDead(97@)
goto_if_false @HEIST9_32929
gosub @HEIST9_50385
Text.PrintNow('HM9_63', 4000, 1)
goto @HEIST9_44470

:HEIST9_32929
if 
  Car.IsDead(279@)
goto_if_false @HEIST9_32975
gosub @HEIST9_50385
Text.PrintNow('HM9_60', 4000, 1)
goto @HEIST9_44470

:HEIST9_32975
if 
  Car.IsDead(280@)
goto_if_false @HEIST9_33021
gosub @HEIST9_50385
Text.PrintNow('HM9_60', 4000, 1)
goto @HEIST9_44470

:HEIST9_33021
58@ = 0

:HEIST9_33028
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_33123
set_lvar_int_to_lvar_int 148@(58@,5i) = 142@(58@,5i)
142@(58@,5i) = Char.GetHealth(54@(58@,4i))
if 
  not is_int_lvar_equal_to_int_lvar 148@(58@,5i) == 142@(58@,5i)
goto_if_false @HEIST9_33123
Text.PrintNow('HM9_44', 5000, 1)

:HEIST9_33123
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_33028
58@ = 0

:HEIST9_33151
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_33252
if and
  Char.LocateAnyMeans3D(54@(58@,4i), 2220.205, 1585.422, 998.9717, 5.0, 5.0, 5.0, False)
  78@(58@,4i) == 0
goto_if_false @HEIST9_33252
82@ += 1
78@(58@,4i) = 1

:HEIST9_33252
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_33151
if 
  257@ <> 5
goto_if_false @HEIST9_33355
if 
  Char.LocateAnyMeans3D($scplayer, 2220.205, 1585.422, 998.9717, 10.0, 10.0, 10.0, False)
goto_if_false @HEIST9_33355
Text.PrintNow('HM9_1F', 4000, 1)

:HEIST9_33355
if and
  257@ == 5
  Char.LocateAnyMeans3D($scplayer, 2220.205, 1585.422, 998.9717, 10.0, 10.0, 10.0, False)
goto_if_false @HEIST9_35098
Text.ClearPrints
gosub @HEIST9_46327
if 
  Blip.DoesExist(90@)
goto_if_false @HEIST9_33440
Blip.Remove(90@)

:HEIST9_33440
if 
  not Char.IsDead(54@)
goto_if_false @HEIST9_33491
Char.ClearTasksImmediately(54@)
Char.SetCoordinatesDontWarpGang(54@, 2224.042, 1589.367, 998.967)
Char.SetHeading(54@, 165.2519)

:HEIST9_33491
if 
  not Char.IsDead(55@)
goto_if_false @HEIST9_33542
Char.ClearTasksImmediately(55@)
Char.SetCoordinatesDontWarpGang(55@, 2222.893, 1589.583, 998.9684)
Char.SetHeading(55@, 173.9364)

:HEIST9_33542
if 
  not Char.IsDead(56@)
goto_if_false @HEIST9_33593
Char.ClearTasksImmediately(56@)
Char.SetCoordinatesDontWarpGang(56@, 2221.866, 1589.245, 998.9696)
Char.SetHeading(56@, 177.0563)

:HEIST9_33593
if 
  not Char.IsDead(57@)
goto_if_false @HEIST9_33644
Char.ClearTasksImmediately(57@)
Char.SetCoordinatesDontWarpGang(57@, 2220.723, 1589.224, 998.971)
Char.SetHeading(57@, 171.7417)

:HEIST9_33644
if 
  not Char.IsDead(97@)
goto_if_false @HEIST9_33690
Char.SetCoordinatesDontWarpGang(97@, 2220.34, 1582.068, 998.9764)
Char.SetHeading(97@, 350.4443)

:HEIST9_33690
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_33779
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HEIST9_33749
Char.WarpFromCarToCoord($scplayer, 2225.541, 1586.834, 998.9651)
goto @HEIST9_33769

:HEIST9_33749
Char.SetCoordinatesDontWarpGang($scplayer, 2225.541, 1586.834, 998.9651)

:HEIST9_33769
Char.SetHeading($scplayer, 124.4066)

:HEIST9_33779
if 
  not Car.IsDead(279@)
goto_if_false @HEIST9_33802
Car.FreezePosition(279@, False)

:HEIST9_33802
if 
  not Car.IsDead(280@)
goto_if_false @HEIST9_33825
Car.FreezePosition(280@, False)

:HEIST9_33825
Hud.ClearTimer($h9_health)
gosub @HEIST9_46291
Camera.SetFixedPosition(2216.721, 1579.81, 1000.833, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2217.382, 1580.538, 1000.654, SwitchType.JumpCut)
gosub @HEIST9_46360
if 
  not Char.IsDead(97@)
goto_if_false @HEIST9_33952
Char.ClearTasks(97@)
Task.PlayAnim(97@, "IDLE_CHAT", "PED", 1.0, True, False, False, False, -1)

:HEIST9_33952
Text.PrintNow('HE8_UA', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12276)

:HEIST9_33979
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_34005
wait 0
goto @HEIST9_33979

:HEIST9_34005
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_34016
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_34066
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_34059
goto @HEIST9_34847

:HEIST9_34059
goto @HEIST9_34016

:HEIST9_34066
Text.PrintNow('HE8_UB', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12218)

:HEIST9_34093
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_34119
wait 0
goto @HEIST9_34093

:HEIST9_34119
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_34130
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_34180
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_34173
goto @HEIST9_34847

:HEIST9_34173
goto @HEIST9_34130

:HEIST9_34180
Char.Delete(97@)
Char.Delete(56@)
Char.Delete(57@)
Camera.SetFixedPosition(2216.914, 1571.622, 999.7229, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2217.27, 1572.557, 999.7267, SwitchType.JumpCut)
281@ = Char.Create(PedType.Mission2, 284, 2220.8, 1581.163, 998.9764)
Char.SetHeading(281@, 196.0524)
Char.SetAreaVisible(281@, 1)
282@ = Char.Create(PedType.Mission2, 284, 2220.019, 1581.179, 998.9772)
Char.SetHeading(282@, 74.4668)
Char.SetAreaVisible(282@, 1)
if and
  not Car.IsDead(51@)
  not Char.IsDead(54@)
goto_if_false @HEIST9_34362
Task.EnterCarAsDriver(54@, 51@, 8000)

:HEIST9_34362
if and
  not Car.IsDead(51@)
  not Char.IsDead(55@)
goto_if_false @HEIST9_34396
Task.EnterCarAsPassenger(55@, 51@, 8000, 0)

:HEIST9_34396
if and
  not Car.IsDead(279@)
  not Char.IsDead(281@)
goto_if_false @HEIST9_34428
Task.EnterCarAsDriver(281@, 279@, 8000)

:HEIST9_34428
if and
  not Car.IsDead(280@)
  not Char.IsDead(282@)
goto_if_false @HEIST9_34460
Task.EnterCarAsDriver(282@, 280@, 8000)

:HEIST9_34460
TIMERB = 0

:HEIST9_34467
if 
  8000 > TIMERB
goto_if_false @HEIST9_34521
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_34514
goto @HEIST9_34847

:HEIST9_34514
goto @HEIST9_34467

:HEIST9_34521
Camera.SetFixedPosition(2223.85, 1572.014, 1001.623, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2223.371, 1572.844, 1001.336, SwitchType.JumpCut)
if and
  Streaming.HasCarRecordingBeenLoaded(494)
  not Car.IsDead(51@)
goto_if_false @HEIST9_34601
Car.StartPlayback(51@, 494)

:HEIST9_34601
TIMERB = 0

:HEIST9_34608
if 
  500 > TIMERB
goto_if_false @HEIST9_34662
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_34655
goto @HEIST9_34847

:HEIST9_34655
goto @HEIST9_34608

:HEIST9_34662
if and
  not Car.IsDead(279@)
  not Char.IsDead(281@)
goto_if_false @HEIST9_34724
Car.SwitchSiren(279@, True)
Task.CarDriveToCoord(281@, 279@, 2223.455, 1564.892, 1000.873, 10.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:HEIST9_34724
if and
  not Car.IsDead(280@)
  not Char.IsDead(282@)
goto_if_false @HEIST9_34786
Car.SwitchSiren(280@, True)
Task.CarDriveToCoord(282@, 280@, 2217.319, 1566.6, 1000.3, 10.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:HEIST9_34786
TIMERB = 0

:HEIST9_34793
if 
  2000 > TIMERB
goto_if_false @HEIST9_34847
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_34840
goto @HEIST9_34847

:HEIST9_34840
goto @HEIST9_34793

:HEIST9_34847
58@ = 0

:HEIST9_34854
if 
  Blip.DoesExist(91@(58@,4i))
goto_if_false @HEIST9_34892
Blip.Remove(91@(58@,4i))
Char.Delete(54@(58@,4i))

:HEIST9_34892
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_34854
gosub @HEIST9_46308
if 
  not Char.IsDead(97@)
goto_if_false @HEIST9_34941
Char.Delete(97@)

:HEIST9_34941
if 
  not Char.IsDead(281@)
goto_if_false @HEIST9_34962
Char.Delete(281@)

:HEIST9_34962
if 
  not Char.IsDead(282@)
goto_if_false @HEIST9_34983
Char.Delete(282@)

:HEIST9_34983
if 
  not Car.IsDead(279@)
goto_if_false @HEIST9_35004
Car.Delete(279@)

:HEIST9_35004
if 
  not Car.IsDead(280@)
goto_if_false @HEIST9_35025
Car.Delete(280@)

:HEIST9_35025
if 
  not Car.IsDead(51@)
goto_if_false @HEIST9_35046
Car.Delete(51@)

:HEIST9_35046
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(284)
Streaming.MarkModelAsNoLongerNeeded(523)
Streaming.MarkModelAsNoLongerNeeded(428)
Streaming.UnloadSpecialCharacter(3)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(1)
174@ = 1
38@ = 16
TIMERA = 0

:HEIST9_35098
if 
  38@ == 16
goto_if_false @HEIST9_35858
58@ = 0

:HEIST9_35123
Char.Delete(335@(58@,15i))
58@ += 1
  58@ >= 9
goto_if_false @HEIST9_35123
Streaming.MarkModelAsNoLongerNeeded(125)
Streaming.MarkModelAsNoLongerNeeded(124)
Streaming.RequestModel(126)
Streaming.RequestModel(127)

:HEIST9_35169
if or
  not Streaming.HasModelLoaded(126)
  not Streaming.HasModelLoaded(127)
goto_if_false @HEIST9_35199
wait 0
goto @HEIST9_35169

:HEIST9_35199
335@ = Char.Create(PedType.Mission1, 127, 2221.34, 1616.971, 998.9719)
Char.SetAreaVisible(335@, 1)
Char.SetHeading(335@, 173.3951)
Task.StayInSamePlace(335@, True)
Char.PerformSequence(335@, 212@)
336@ = Char.Create(PedType.Mission1, 126, 2204.911, 1615.991, 998.982)
Char.SetAreaVisible(336@, 1)
Char.SetHeading(336@, 266.9222)
Task.StayInSamePlace(336@, True)
337@ = Char.Create(PedType.Mission1, 127, 2196.664, 1618.759, 998.9766)
Char.SetAreaVisible(337@, 1)
Char.SetHeading(337@, 266.9185)
338@ = Char.Create(PedType.Mission1, 126, 2172.996, 1616.329, 998.9766)
Char.SetAreaVisible(338@, 1)
Char.SetHeading(338@, 263.6073)
339@ = Char.Create(PedType.Mission1, 127, 2173.003, 1622.626, 998.9761)
Char.SetAreaVisible(339@, 1)
Char.SetHeading(339@, 261.2549)
340@ = Char.Create(PedType.Mission1, 126, 2179.727, 1611.811, 998.9766)
Char.SetAreaVisible(340@, 1)
Char.SetHeading(340@, 263.1769)
Task.ToggleDuck(340@, True)
Task.StayInSamePlace(340@, True)
341@ = Char.Create(PedType.Mission1, 126, 2181.543, 1622.657, 998.976)
Char.SetAreaVisible(341@, 1)
Char.SetHeading(341@, 263.6053)
Task.ToggleDuck(341@, True)
Task.StayInSamePlace(341@, True)
342@ = Char.Create(PedType.Mission1, 126, 2151.578, 1602.322, 1000.971)
Char.SetAreaVisible(342@, 1)
Char.SetHeading(342@, 264.2166)
Task.StayInSamePlace(342@, True)
58@ = 0

:HEIST9_35591
350@(58@,15i) = 1
Char.SetMoney(335@(58@,15i), 0)
Char.SetHealth(335@(58@,15i), 200)
Char.SetMaxHealth(335@(58@,15i), 200)
if or
  58@ == 3
  58@ == 4
  58@ == 7
goto_if_false @HEIST9_35701
Char.SetWeaponSkill(335@(58@,15i), 2)
Char.GiveWeapon(335@(58@,15i), WeaponType.Pistol, 9999)
goto @HEIST9_35726

:HEIST9_35701
Char.GiveWeapon(335@(58@,15i), WeaponType.Mp5, 9999)
Char.SetCurrentWeapon(335@(58@,15i), WeaponType.Mp5)

:HEIST9_35726
Char.SetShootRate(335@(58@,15i), 30)
Char.SetAccuracy(335@(58@,15i), 30)
Char.SetDecisionMaker(335@(58@,15i), 245@)
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_35591
Text.PrintNow('HM9_10', 7000, 1)
84@ = Blip.AddForCoord(2156.188, 1597.98, 998.9766)
Blip.SetEntryExit(84@, 2196.635, 1676.841, 10.0)
38@ = 17
255@ = 1
TIMERA = 0

:HEIST9_35858
if 
  38@ == 17
goto_if_false @HEIST9_37689
58@ = 0

:HEIST9_35883
if and
  Char.IsDead(335@(58@,15i))
  350@(58@,15i) <> 0
goto_if_false @HEIST9_35934
350@(58@,15i) = 0
Char.MarkAsNoLongerNeeded(335@(58@,15i))

:HEIST9_35934
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_35883
if and
  not Char.IsDead(336@)
  Char.LocateAnyMeans3D($scplayer, 2208.021, 1619.125, 998.9827, 5.0, 5.0, 5.0, False)
goto_if_false @HEIST9_36079
if 
  351@ == 1
goto_if_false @HEIST9_36079
Char.ClearTasksImmediately(336@)
53@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.WeaponRoll(-1, False)
Task.ToggleDuck(-1, True)
Sequence.Close(53@)
Char.PerformSequence(336@, 53@)
Sequence.Clear(53@)
351@ = 2

:HEIST9_36079
if and
  not Char.IsDead(337@)
  Char.LocateAnyMeans3D($scplayer, 2224.02, 1618.927, 998.9655, 5.0, 5.0, 5.0, False)
goto_if_false @HEIST9_36192
if 
  352@ == 1
goto_if_false @HEIST9_36192
Char.ClearTasksImmediately(337@)
Path.FlushRoute
Path.ExtendRoute(2224.02, 1618.927, 998.9655)
Task.FollowPointRoute(337@, 6, RouteMode.Once)
Path.FlushRoute
352@ = 2

:HEIST9_36192
if and
  not Char.IsDead(340@)
  Char.LocateAnyMeans3D($scplayer, 2183.907, 1613.572, 998.9766, 5.0, 5.0, 5.0, False)
goto_if_false @HEIST9_36335
if 
  355@ == 1
goto_if_false @HEIST9_36335
Task.ToggleDuck(340@, False)
355@ = 2
if 
  not Char.IsDead(338@)
goto_if_false @HEIST9_36335
Char.ClearTasksImmediately(338@)
Path.FlushRoute
Path.ExtendRoute(2183.907, 1613.572, 998.9766)
Task.ToggleDuck(338@, True)
Task.FollowPointRoute(338@, 6, RouteMode.Once)
Path.FlushRoute

:HEIST9_36335
if and
  not Char.IsDead(341@)
  Char.LocateAnyMeans3D($scplayer, 2185.579, 1624.431, 998.973, 5.0, 5.0, 5.0, False)
goto_if_false @HEIST9_36517
if 
  356@ == 1
goto_if_false @HEIST9_36517
Char.ClearTasksImmediately(341@)
53@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.WeaponRoll(-1, False)
Task.ToggleDuck(-1, True)
Sequence.Close(53@)
Char.PerformSequence(341@, 53@)
Sequence.Clear(53@)
356@ = 2
if 
  not Char.IsDead(339@)
goto_if_false @HEIST9_36517
Char.ClearTasksImmediately(339@)
Path.FlushRoute
Path.ExtendRoute(2185.579, 1624.431, 998.973)
Task.ToggleDuck(339@, True)
Task.FollowPointRoute(339@, 6, RouteMode.Once)
Path.FlushRoute

:HEIST9_36517
if and
  not Char.IsDead(342@)
  Char.LocateAnyMeans3D($scplayer, 2160.279, 1618.668, 998.9676, 5.0, 5.0, 5.0, False)
goto_if_false @HEIST9_36647
if 
  357@ == 1
goto_if_false @HEIST9_36647
Char.ClearTasksImmediately(342@)
Path.FlushRoute
Path.ExtendRoute(2157.58, 1601.944, 998.9766)
Path.ExtendRoute(2157.832, 1616.024, 998.9669)
Task.FollowPointRoute(342@, 6, RouteMode.Once)
Path.FlushRoute
357@ = 2

:HEIST9_36647
if and
  TIMERA > 7000
  255@ == 1
goto_if_false @HEIST9_36709
set_lvar_text_label 288@s = 'HE8_VA'
set_lvar_int_to_constant 232@ = 12278
gosub @HEIST9_50650
255@ = 2

:HEIST9_36709
if and
  231@ == 2
  255@ == 2
goto_if_false @HEIST9_36770
set_lvar_text_label 288@s = 'HE8_VB'
set_lvar_int_to_constant 232@ = 12314
gosub @HEIST9_50650
255@ = 3

:HEIST9_36770
if and
  231@ == 2
  255@ == 3
goto_if_false @HEIST9_36831
set_lvar_text_label 288@s = 'HE8_VC'
set_lvar_int_to_constant 232@ = 12322
gosub @HEIST9_50650
255@ = 4

:HEIST9_36831
if and
  231@ == 2
  255@ == 4
goto_if_false @HEIST9_36892
set_lvar_text_label 288@s = 'HE8_VD'
set_lvar_int_to_constant 232@ = 12279
gosub @HEIST9_50650
255@ = 101

:HEIST9_36892
if and
  255@ == 101
  254@ == 0
goto_if_false @HEIST9_36983
Camera.SetDarknessEffect(False, 0)
World.SwitchEntryExit('JUMP1', True)
World.SwitchEntryExit('JUMP2', False)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_36972
Player.TakeOffGoggles($player1, True)

:HEIST9_36972
Game.SetNightVision(False)
254@ = 1

:HEIST9_36983
if and
  254@ <> 0
  254@ <> 7
goto_if_false @HEIST9_37358
if and
  231@ == 2
  254@ == 1
goto_if_false @HEIST9_37069
set_lvar_text_label 288@s = 'HE8_WA'
set_lvar_int_to_constant 232@ = 12315
gosub @HEIST9_50650
254@ = 2

:HEIST9_37069
if and
  231@ == 2
  254@ == 2
goto_if_false @HEIST9_37130
set_lvar_text_label 288@s = 'HE8_WB'
set_lvar_int_to_constant 232@ = 12280
gosub @HEIST9_50650
254@ = 3

:HEIST9_37130
if and
  231@ == 2
  254@ == 3
goto_if_false @HEIST9_37215
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_37179
Char.StartFacialTalk($scplayer, 10000)

:HEIST9_37179
set_lvar_text_label 288@s = 'HE8_WC'
set_lvar_int_to_constant 232@ = 12316
gosub @HEIST9_50650
254@ = 4

:HEIST9_37215
if and
  231@ == 2
  254@ == 4
goto_if_false @HEIST9_37297
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_37261
Char.StopFacialTalk($scplayer)

:HEIST9_37261
set_lvar_text_label 288@s = 'HE8_WE'
set_lvar_int_to_constant 232@ = 12282
gosub @HEIST9_50650
254@ = 5

:HEIST9_37297
if and
  231@ == 2
  254@ == 5
goto_if_false @HEIST9_37358
set_lvar_text_label 288@s = 'HE8_WF'
set_lvar_int_to_constant 232@ = 12283
gosub @HEIST9_50650
254@ = 7

:HEIST9_37358
if and
  Char.LocateAnyMeans3D($scplayer, 2156.188, 1597.98, 998.9766, 1.2, 1.2, 2.0, True)
  153@ == 0
goto_if_false @HEIST9_37689
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_37436
Player.SetControl($player1, False)

:HEIST9_37436
gosub @HEIST9_46327
if 
  Blip.DoesExist(84@)
goto_if_false @HEIST9_37464
Blip.Remove(84@)

:HEIST9_37464
Streaming.LoadScene(2266.511, 1647.517, 1083.241)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_37531
Char.SetCoordinatesDontWarpGang($scplayer, 2266.511, 1647.517, 1083.241)
Char.SetHeading($scplayer, 268.927)
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:HEIST9_37531
376@ = Blip.AddForCoord(2266.225, 1619.766, 1089.445)
Blip.SetEntryExit(376@, 2196.635, 1676.841, 10.0)
gosub @HEIST9_44783
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 33401)

:HEIST9_37591
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST9_37617
wait 0
goto @HEIST9_37591

:HEIST9_37617
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @HEIST9_37636
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:HEIST9_37636
gosub @HEIST9_46360
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_37666
Player.SetControl($player1, True)

:HEIST9_37666
Text.PrintNow('HM9_45', 4000, 1)
153@ = 1

:HEIST9_37689
if or
  38@ == 17
  38@ == 18
goto_if_false @HEIST9_40687
if and
  Char.LocateAnyMeans3D($scplayer, 2266.598, 1647.378, 1083.241, 1.2, 1.2, 2.0, False)
  294@ == 0
goto_if_false @HEIST9_38144
58@ = 0

:HEIST9_37776
Char.Delete(335@(58@,15i))
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_37776
Streaming.RequestModel(371)

:HEIST9_37811
if 
  not Streaming.HasModelLoaded(371)
goto_if_false @HEIST9_37838
wait 0
goto @HEIST9_37811

:HEIST9_37838
298@ = Pickup.Create(371, PickupType.Once, 2267.989, 1699.668, 101.4)
$para_freefall_Vz = -6.0
$para_freefall_Vy = 35.0
292@ = Char.Create(PedType.Mission1, 126, 2269.732, 1620.345, 1085.25)
Char.SetAreaVisible(292@, 1)
Char.SetHeading(292@, 0.7663)
Char.GiveWeapon(292@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(292@, WeaponType.Mp5)
Char.SetAccuracy(292@, 80)
Char.SetDecisionMaker(292@, 89@)
Path.FlushRoute
Path.ExtendRoute(2269.577, 1624.246, 1083.258)
Path.ExtendRoute(2269.986, 1628.803, 1083.245)
Path.ExtendRoute(2268.948, 1641.64, 1083.234)
Task.FollowPointRoute(292@, 6, RouteMode.Once)
Path.FlushRoute
Char.SetMoney(292@, 0)
293@ = Char.Create(PedType.Mission1, 127, 2265.832, 1624.938, 1087.448)
Char.SetAreaVisible(293@, 1)
Char.SetHeading(293@, 178.1353)
Char.GiveWeapon(293@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(293@, WeaponType.Mp5)
Char.SetAccuracy(293@, 80)
Char.SetDecisionMaker(293@, 89@)
Task.ToggleDuck(293@, True)
Task.StayInSamePlace(293@, True)
Char.SetMoney(293@, 0)
Streaming.MarkModelAsNoLongerNeeded(124)
Streaming.MarkModelAsNoLongerNeeded(125)
Streaming.MarkModelAsNoLongerNeeded(126)
Streaming.MarkModelAsNoLongerNeeded(127)
294@ = 1

:HEIST9_38144
if 
  100@ == 0
goto_if_false @HEIST9_39561
if and
  Char.LocateAnyMeans3D($scplayer, 2269.068, 1624.648, 93.922, 10.0, 10.0, 10.0, False)
  100@ == 0
goto_if_false @HEIST9_39561
Hud.SetRadarZoom(0)
Game.SetWantedMultiplier(1.0)
Camera.DoFade(0, Fade.Out)
Clock.SetTimeOfDay(0, 0)
gosub @HEIST9_46291
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_38293
Char.SetCoordinatesDontWarpGang($scplayer, 2268.666, 1620.91, 93.922)
Char.SetHeading($scplayer, 270.0)

:HEIST9_38293
Streaming.LoadScene(2269.811, 1625.442, 93.922)
Streaming.LoadSceneInDirection(2270.095, 1692.939, 101.2986, 129.3904)
Streaming.RequestModel(497)

:HEIST9_38337
if 
  not Streaming.HasModelLoaded(497)
goto_if_false @HEIST9_38364
wait 0
goto @HEIST9_38337

:HEIST9_38364
198@ = Car.Create(497, 2295.622, 1839.804, 38.2713)
Car.SetHeading(198@, 191.5123)
Streaming.RequestModel(285)
Streaming.RequestCarRecording(484)

:HEIST9_38407
if or
  not Streaming.HasModelLoaded(285)
  not Streaming.HasCarRecordingBeenLoaded(484)
goto_if_false @HEIST9_38439
wait 0
goto @HEIST9_38407

:HEIST9_38439
377@ = Car.Create(497, 2253.068, 1626.562, 87.9584)
378@ = Char.CreateInsideCar(377@, PedType.Mission4, 285)
Char.SetCanBeShotInVehicle(378@, False)
Car.LockDoors(377@, CarLock.Locked)
Char.SetCantBeDraggedOut(378@, True)
Heli.SetBladesFullSpeed(377@)
Car.SetForwardSpeed(377@, 10.0)
380@ = Char.Create(PedType.Mission1, 285, 2253.068, 1626.562, 87.9584)
Char.SetDecisionMaker(380@, 245@)
381@ = Char.Create(PedType.Mission1, 285, 2253.068, 1626.562, 87.9584)
Char.SetDecisionMaker(381@, 245@)
382@ = Char.Create(PedType.Mission1, 285, 2253.068, 1626.562, 87.9584)
Char.SetDecisionMaker(382@, 245@)
383@ = Char.Create(PedType.Mission1, 285, 2253.068, 1626.562, 87.9584)
Char.SetDecisionMaker(383@, 245@)
Char.AttachToCar(380@, 377@, 1.4, 1.3, -0.1, 3, 190.0, WeaponType.Mp5)
Char.AttachToCar(381@, 377@, 1.4, -0.8, -0.1, 3, 190.0, WeaponType.Mp5)
Char.AttachToCar(382@, 377@, -1.4, 1.3, -0.1, 1, 190.0, WeaponType.Mp5)
Char.AttachToCar(383@, 377@, -1.4, -0.8, -0.1, 1, 190.0, WeaponType.Mp5)
58@ = 0

:HEIST9_38778
Char.SetMoney(380@(58@,4i), 0)
Char.SetHealth(380@(58@,4i), 150)
Char.SetShootRate(380@(58@,4i), 40)
Char.SetAccuracy(380@(58@,4i), 40)
Task.StayInSamePlace(380@(58@,4i), True)
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_38778
379@ = Searchlight.CreateOnVehicle(377@, 0.0, 1.0, -0.5, 2269.456, 1625.442, 93.922, 5.0, 0.4)
Searchlight.PointAtChar(379@, $scplayer, 10.0)
if 
  not Car.IsDead(377@)
goto_if_false @HEIST9_38961
if 
  Streaming.HasCarRecordingBeenLoaded(484)
goto_if_false @HEIST9_38961
Car.StartPlayback(377@, 484)
Car.PausePlayback(377@)

:HEIST9_38961
335@ = Char.Create(PedType.Mission1, 285, 2293.68, 1837.016, 38.2713)
Char.SetHeading(335@, 164.9221)
Task.StandStill(335@, 1)
336@ = Char.Create(PedType.Mission1, 285, 2298.492, 1836.946, 38.2713)
Char.SetHeading(336@, 170.0207)
Task.StandStill(336@, 1)
Task.ToggleDuck(336@, True)
58@ = 0

:HEIST9_39059
350@(58@,15i) = 1
Char.SetHealth(335@(58@,15i), 200)
Char.SetMaxHealth(335@(58@,15i), 200)
Char.GiveWeapon(335@(58@,15i), WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(335@(58@,15i), WeaponType.Mp5)
Char.SetShootRate(335@(58@,15i), 30)
Char.SetAccuracy(335@(58@,15i), 20)
Char.SetDecisionMaker(335@(58@,15i), 245@)
58@ += 1
  58@ >= 2
goto_if_false @HEIST9_39059
World.SwitchEntryExit('JUMP1', False)
World.SwitchEntryExit('JUMP2', False)
World.ClearArea(2270.021, 1623.486, 93.922, 20.0, True)
if 
  Blip.DoesExist(84@)
goto_if_false @HEIST9_39245
Blip.Remove(84@)

:HEIST9_39245
if 
  Blip.DoesExist(376@)
goto_if_false @HEIST9_39266
Blip.Remove(376@)

:HEIST9_39266
384@ = Blip.AddForPickup(298@)
World.SetCarDensityMultiplier(1.0)
Camera.SetFixedPosition(2305.338, 1721.1, 126.2864, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2304.813, 1720.407, 125.7915, SwitchType.JumpCut)
gosub @HEIST9_46360
Camera.SetInterpolationParameters(0.0, 8000)
Camera.SetFixedPosition(2307.409, 1599.532, 118.4341, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2306.749, 1600.164, 118.0293, SwitchType.Interpolation)
Text.PrintNow('HM9_25', 8000, 1)
wait 3000
if 
  not Car.IsDead(377@)
goto_if_false @HEIST9_39458
if 
  Streaming.HasCarRecordingBeenLoaded(484)
goto_if_false @HEIST9_39458
Car.UnpausePlayback(377@)

:HEIST9_39458
wait 5000
gosub @HEIST9_46308
385@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2265.825, 1617.069, 94.5)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_39547
Char.ClearTasks($scplayer)
Char.SetCoordinatesDontWarpGang($scplayer, 2269.139, 1622.576, 93.922)
Char.SetHeading($scplayer, 0.0)
Camera.SetBehindPlayer

:HEIST9_39547
100@ = 1
TIMERB = 0

:HEIST9_39561
if 
  Car.IsDead(377@)
goto_if_false @HEIST9_39598
if 
  Searchlight.DoesExist(379@)
goto_if_false @HEIST9_39598
Searchlight.Delete(379@)

:HEIST9_39598
if and
  100@ == 1
  TIMERB > 10800
  not Car.IsDead(377@)
goto_if_false @HEIST9_40130
if 
  Car.IsPlaybackGoingOn(377@)
goto_if_false @HEIST9_39650
Car.PausePlayback(377@)

:HEIST9_39650
58@ = 0

:HEIST9_39657
if 
  not Char.IsDead(380@(58@,4i))
goto_if_false @HEIST9_39786
$x, $y, $z = Char.GetCoordinates(380@(58@,4i))
Char.Delete(380@(58@,4i))
380@(58@,4i) = Char.CreateSwatRope(PedType.Mission1, 285, $x, $y, $z)
Char.SetShootRate(380@(58@,4i), 70)
Char.SetDecisionMaker(380@(58@,4i), 245@)
Char.GiveWeapon(380@(58@,4i), WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(380@(58@,4i), WeaponType.Mp5)
Task.StayInSamePlace(380@(58@,4i), True)

:HEIST9_39786
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_39657
53@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.AchieveHeading(-1, 170.7766)
Task.ToggleDuck(-1, False)
Task.Pause(-1, 3000)
Task.ShootAtChar(-1, $scplayer, -1)
Sequence.Close(53@)
if 
  not Char.IsDead(380@)
goto_if_false @HEIST9_39884
Char.PerformSequence(380@, 53@)

:HEIST9_39884
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.AchieveHeading(-1, 170.7766)
Task.Pause(-1, 3000)
Task.ShootAtChar(-1, $scplayer, -1)
Sequence.Close(53@)
if 
  not Char.IsDead(381@)
goto_if_false @HEIST9_39960
Char.PerformSequence(381@, 53@)

:HEIST9_39960
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.AchieveHeading(-1, 170.7766)
Task.ToggleDuck(-1, False)
Task.Pause(-1, 3000)
Task.ShootAtChar(-1, $scplayer, -1)
Sequence.Close(53@)
if 
  not Char.IsDead(382@)
goto_if_false @HEIST9_40042
Char.PerformSequence(382@, 53@)

:HEIST9_40042
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.AchieveHeading(-1, 170.7766)
Task.Pause(-1, 3000)
Task.ShootAtChar(-1, $scplayer, -1)
Sequence.Close(53@)
if 
  not Char.IsDead(383@)
goto_if_false @HEIST9_40118
Char.PerformSequence(383@, 53@)

:HEIST9_40118
Sequence.Clear(53@)
100@ = 2

:HEIST9_40130
if and
  100@ == 2
  TIMERB > 18000
  not Car.IsDead(377@)
goto_if_false @HEIST9_40189
if 
  Car.IsPlaybackGoingOn(377@)
goto_if_false @HEIST9_40182
Car.UnpausePlayback(377@)

:HEIST9_40182
100@ = 3

:HEIST9_40189
if 
  294@ == 1
goto_if_false @HEIST9_40548
if 
  Pickup.HasBeenCollected(298@)
goto_if_false @HEIST9_40548
if 
  Blip.DoesExist(384@)
goto_if_false @HEIST9_40244
Blip.Remove(384@)

:HEIST9_40244
if 
  not Car.IsDead(198@)
goto_if_false @HEIST9_40275
247@ = Blip.AddForCar(198@)
Blip.SetAsFriendly(247@, True)

:HEIST9_40275
38@ = 18
99@ = 2
if 
  not Car.IsDead(198@)
goto_if_false @HEIST9_40479
gosub @HEIST9_46291
Camera.SetFixedPosition(2267.88, 1692.82, 111.0014, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2267.876, 1693.396, 110.1835, SwitchType.JumpCut)
wait 100
Camera.SetInterpolationParameters(0.0, 6000)
Camera.SetFixedPosition(2293.709, 1832.279, 41.1442, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2294.057, 1833.15, 40.7979, SwitchType.Interpolation)
Text.PrintNow('HM9_24', 6000, 1)
wait 6000
gosub @HEIST9_46308
Text.PrintNow('HM9_1H', 6000, 1)
goto @HEIST9_40515

:HEIST9_40479
102@ = Blip.AddForCoord(365.5647, 2536.76, 15.6637)
Text.PrintNow('HM9_X', 6000, 1)

:HEIST9_40515
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_40541
Char.SetHeading($scplayer, 353.9519)

:HEIST9_40541
Char.SetCurrentWeapon($scplayer, WeaponType.Parachute)

:HEIST9_40548
if and
  Car.IsDead(198@)
  Blip.DoesExist(247@)
goto_if_false @HEIST9_40626
if 
  not Blip.DoesExist(102@)
goto_if_false @HEIST9_40621
102@ = Blip.AddForCoord(365.5647, 2536.76, 15.6637)
Text.PrintNow('HM9_1J', 6000, 1)

:HEIST9_40621
Blip.Remove(247@)

:HEIST9_40626
if 
  not Car.IsDead(377@)
goto_if_false @HEIST9_40687
if and
  not Car.IsPlaybackGoingOn(377@)
  40@ == 0
goto_if_false @HEIST9_40687
Heli.ChaseEntity(377@, $scplayer, -1, 20.0)
40@ = 1

:HEIST9_40687
if 
  38@ == 18
goto_if_false @HEIST9_43352
if and
  Car.IsDead(198@)
  Blip.DoesExist(247@)
goto_if_false @HEIST9_40731
Blip.Remove(247@)

:HEIST9_40731
if and
  not Car.IsDead(198@)
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_40833
if and
  Blip.DoesExist(247@)
  Char.IsInCar($scplayer, 198@)
goto_if_false @HEIST9_40833
if 
  not Blip.DoesExist(102@)
goto_if_false @HEIST9_40828
102@ = Blip.AddForCoord(365.5647, 2536.76, 15.6637)
Text.PrintNow('HM9_1J', 6000, 1)

:HEIST9_40828
Blip.Remove(247@)

:HEIST9_40833
if and
  not Char.IsDead($scplayer)
  Blip.DoesExist(384@)
goto_if_false @HEIST9_40917
$x, $y, $z = Char.GetCoordinates($scplayer)
if 
  90.0 > $z
goto_if_false @HEIST9_40917
if and
  Blip.DoesExist(384@)
  $h9_TIMERC == 0
goto_if_false @HEIST9_40917
Blip.Remove(384@)

:HEIST9_40917
if and
  not Char.IsDead($scplayer)
  Blip.DoesExist(247@)
goto_if_false @HEIST9_41067
if 
  not Car.IsDead(198@)
goto_if_false @HEIST9_41067
$x, $y, $z = Char.GetCoordinates($scplayer)
if 
  36.0 > $z
goto_if_false @HEIST9_41067
if and
  Blip.DoesExist(247@)
  $h9_TIMERC == 0
  307@ == 0
goto_if_false @HEIST9_41067
Blip.Remove(247@)
102@ = Blip.AddForCoord(365.5647, 2536.76, 15.6637)
Text.PrintNow('HM9_1J', 6000, 1)
307@ = 1

:HEIST9_41067
if 
  Char.LocateAnyMeans3D($scplayer, 365.5647, 2536.76, 15.6637, 4.0, 4.0, 4.0, True)
goto_if_false @HEIST9_43352
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_41138
Player.SetControl($player1, False)

:HEIST9_41138
43@ = 1
Blip.Remove(102@)
gosub @HEIST9_46327
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_41197
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HEIST9_41197
$car = Char.StoreCarIsIn($scplayer)

:HEIST9_41197
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_41286
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HEIST9_41256
Char.WarpFromCarToCoord($scplayer, 345.389, 2539.21, 15.7622)
goto @HEIST9_41276

:HEIST9_41256
Char.SetCoordinatesDontWarpGang($scplayer, 345.389, 2539.21, 15.7622)

:HEIST9_41276
Char.SetHeading($scplayer, 300.8022)

:HEIST9_41286
if 
  not Car.IsDead(377@)
goto_if_false @HEIST9_41307
Car.Delete(377@)

:HEIST9_41307
if 
  not Car.IsDead(198@)
goto_if_false @HEIST9_41328
Car.Delete(198@)

:HEIST9_41328
if 
  not Car.IsDead($car)
goto_if_false @HEIST9_41349
Car.Delete($car)

:HEIST9_41349
Streaming.RequestModel(428)
Streaming.RequestModel(523)
Streaming.RequestModel(284)
Streaming.LoadSpecialCharacter(1, 'ZERO')
Streaming.LoadSpecialCharacter(2, 'WUZIMU')

:HEIST9_41390
if or
  not Streaming.HasModelLoaded(428)
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasModelLoaded(523)
  not Streaming.HasModelLoaded(284)
goto_if_false @HEIST9_41435
wait 0
goto @HEIST9_41390

:HEIST9_41435
61@ = Object.Create(#CJ_MONEY_BAG, 344.9779, 2545.213, 15.7642)
62@ = Object.Create(#CJ_MONEY_BAG, 347.936, 2543.972, 15.7498)
63@ = Object.Create(#CJ_MONEY_BAG, 348.9375, 2545.841, 15.7383)
64@ = Object.Create(#CJ_MONEY_BAG, 343.8135, 2545.722, 15.7699)
World.ClearArea(345.2756, 2546.824, 15.7628, 50.0, True)
51@ = Car.Create(428, 345.2756, 2546.824, 15.7628)
Car.SetHeading(51@, 58.9413)
Car.LockDoors(51@, CarLock.LockoutPlayerOnly)
Car.FreezePosition(51@, True)
54@ = Char.Create(PedType.Mission2, 291, 343.7633, 2545.022, 15.7702)
Char.SetHeading(54@, 202.9705)
Char.SetAnimGroup(54@, "BLINDMAN")
Task.StayInSamePlace(54@, True)
Char.SetDecisionMaker(54@, 120@)
Char.SetNeverTargeted(54@, True)
Char.SetOnlyDamagedByPlayer(54@, True)
World.ClearArea(344.5244, 2540.563, 15.7743, 200.0, True)
World.ClearArea(346.5559, 2548.027, 15.7244, 2.0, True)
97@ = Char.Create(PedType.Mission2, 290, 346.5559, 2548.027, 15.7244)
Char.SetHeading(97@, 242.1164)
Char.SetNeverTargeted(97@, True)
Task.StayInSamePlace(97@, True)
Char.SetDecisionMaker(97@, 120@)
Char.SetNeverTargeted(97@, True)
Char.SetOnlyDamagedByPlayer(97@, True)
279@ = Car.Create(523, 360.2574, 2547.46, 15.5491)
Car.SetHeading(279@, 107.4242)
280@ = Car.Create(523, 362.587, 2542.715, 15.618)
Car.SetHeading(280@, 95.499)
281@ = Char.CreateInsideCar(279@, PedType.Mission2, 284)
282@ = Char.CreateInsideCar(280@, PedType.Mission2, 284)
Player.ClearWantedLevel($player1)
Streaming.LoadSceneInDirection(345.6064, 2536.51, 15.7612, 4.4301)
if 
  not Char.IsDead(54@)
goto_if_false @HEIST9_41961
Char.SetCoordinatesDontWarpGang(54@, 342.5135, 2545.147, 15.7763)
Char.SetHeading(54@, 215.4312)

:HEIST9_41961
gosub @HEIST9_46291
Streaming.RequestAnimation("FIGHT_B")

:HEIST9_41979
if 
  not Streaming.HasAnimationLoaded("FIGHT_B")
goto_if_false @HEIST9_42012
wait 0
goto @HEIST9_41979

:HEIST9_42012
if and
  not Char.IsDead($scplayer)
  not Char.IsDead(97@)
  not Char.IsDead(54@)
goto_if_false @HEIST9_42162
Char.ClearTasksImmediately($scplayer)
53@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 347.2988, 2541.483, 15.7529, 4, -1)
Task.TurnCharToFaceChar(-1, 97@)
Task.Pause(-1, 4500)
Task.TurnCharToFaceChar(-1, 97@)
Task.PlayAnim(-1, "FIGHTB_M", "FIGHT_B", 4.0, False, False, False, False, -1)
Task.Pause(-1, 3000)
Task.TurnCharToFaceChar(-1, 54@)
Sequence.Close(53@)
Char.PerformSequence($scplayer, 53@)
Sequence.Clear(53@)

:HEIST9_42162
Camera.SetFixedPosition(346.245, 2537.94, 16.7555, 0.0, 0.0, 0.0)
Camera.PointAtPoint(346.7908, 2538.778, 16.7555, SwitchType.JumpCut)
if and
  not Car.IsDead(279@)
  not Car.IsDead(280@)
  not Char.IsDead(281@)
  not Char.IsDead(282@)
goto_if_false @HEIST9_42405
53@ = Sequence.Open()
Task.CarDriveToCoord(-1, 279@, 351.2343, 2544.125, 15.7337, 5.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.Pause(-1, 2000)
Task.LeaveCar(-1, 279@)
Car.SwitchSiren(279@, False)
Sequence.Close(53@)
Char.PerformSequence(281@, 53@)
Sequence.Clear(53@)
53@ = Sequence.Open()
Task.CarDriveToCoord(-1, 280@, 351.4331, 2542.753, 15.7337, 5.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
Task.Pause(-1, 2000)
Task.LeaveCar(-1, 280@)
Car.SwitchSiren(280@, False)
Sequence.Close(53@)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.PerformSequence(282@, 53@)
Sequence.Clear(53@)

:HEIST9_42405
if and
  not Car.IsDead(279@)
  not Char.IsDead(281@)
goto_if_false @HEIST9_42433
Car.SwitchSiren(279@, True)

:HEIST9_42433
if and
  not Car.IsDead(280@)
  not Char.IsDead(282@)
goto_if_false @HEIST9_42461
Car.SwitchSiren(280@, True)

:HEIST9_42461
gosub @HEIST9_46360
Text.PrintNow('HE8_ZA', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12317)

:HEIST9_42495
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_42521
wait 0
goto @HEIST9_42495

:HEIST9_42521
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
if 
  not Char.IsDead(97@)
goto_if_false @HEIST9_42605
Path.FlushRoute
Path.ExtendRoute(350.6611, 2546.735, 15.6957)
Path.ExtendRoute(348.9894, 2543.476, 15.7446)
Path.ExtendRoute(347.4687, 2541.793, 15.7521)
Task.FollowPointRoute(97@, 6, RouteMode.Once)
Path.FlushRoute

:HEIST9_42605
TIMERB = 0

:HEIST9_42612
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_42638
wait 0
goto @HEIST9_42612

:HEIST9_42638
Text.PrintNow('HE8_ZB', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12284)

:HEIST9_42665
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_42691
wait 0
goto @HEIST9_42665

:HEIST9_42691
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_42702
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_42728
wait 0
goto @HEIST9_42702

:HEIST9_42728
if 
  not Char.IsDead(97@)
goto_if_false @HEIST9_42783
Task.PlayAnim(97@, "KO_SHOT_FACE", "PED", 4.0, False, False, False, True, -1)

:HEIST9_42783
Text.PrintNow('ZER1_DB', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 21818)

:HEIST9_42810
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_42836
wait 0
goto @HEIST9_42810

:HEIST9_42836
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_42847
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_42873
wait 0
goto @HEIST9_42847

:HEIST9_42873
wait 500
Camera.SetInterpolationParameters(0.0, 3000)
Camera.SetFixedPosition(348.9764, 2538.029, 16.6197, 0.0, 0.0, 0.0)
Camera.PointAtPoint(348.743, 2539.001, 16.6362, SwitchType.Interpolation)
Text.PrintNow('WUZX_BR', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 27243)

:HEIST9_42966
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_42992
wait 0
goto @HEIST9_42966

:HEIST9_42992
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_43003
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_43029
wait 0
goto @HEIST9_43003

:HEIST9_43029
wait 1000
Text.PrintNow('WUZX_AK', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 27210)

:HEIST9_43061
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_43087
wait 0
goto @HEIST9_43061

:HEIST9_43087
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_43098
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_43124
wait 0
goto @HEIST9_43098

:HEIST9_43124
gosub @HEIST9_46327
Char.Delete(54@)
Char.Delete(97@)
Char.Delete(281@)
Char.Delete(282@)
Car.Delete(279@)
Car.Delete(280@)
Car.Delete(51@)
Streaming.RemoveAnimation("FIGHT_B")
Object.Delete(61@)
Object.Delete(62@)
Object.Delete(63@)
Object.Delete(64@)
230@ = 1
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_43227
Player.RestoreClothesState
Player.BuildModel($player1)

:HEIST9_43227
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_43326
Streaming.LoadScene(2023.783, 1007.845, 9.8203)
World.ClearArea(2023.783, 1007.845, 9.8203, 20.0, True)
Streaming.RequestCollision(2023.783, 1007.845)
Char.SetCoordinatesDontWarpGang($scplayer, 2023.783, 1007.845, 9.813)
Char.SetHeading($scplayer, 270.9639)

:HEIST9_43326
gosub @HEIST9_46308
wait 500
gosub @HEIST9_46360
goto @HEIST9_44518

:HEIST9_43352
if and
  16 > 38@
  174@ == 0
  250@ == 1
goto_if_false @HEIST9_43644
58@ = 0

:HEIST9_43391
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_43441
180@(58@,4f), 184@(58@,4f), 188@(58@,4f) = Char.GetCoordinates(54@(58@,4i))

:HEIST9_43441
if 
  Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_43623
if 
  Blip.DoesExist(91@(58@,4i))
goto_if_false @HEIST9_43490
Blip.Remove(91@(58@,4i))

:HEIST9_43490
gosub @HEIST9_46291
188@(58@,4f) += 2.5
Camera.SetFixedPosition(180@(58@,4f), 184@(58@,4f), 188@(58@,4f), 0.0, 0.0, 0.0)
188@(58@,4f) -= 2.5
Camera.PointAtPoint(180@(58@,4f), 184@(58@,4f), 188@(58@,4f), SwitchType.JumpCut)
wait 4000
gosub @HEIST9_50385
Text.PrintNow('HM9_9', 4000, 1)
goto @HEIST9_44470

:HEIST9_43623
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_43391

:HEIST9_43644
goto @HEIST9_2598

:HEIST9_43651
goto @HEIST9_44470
Car.Delete(46@)
Streaming.MarkModelAsNoLongerNeeded(530)
if 
  not Char.IsDead(54@)
goto_if_false @HEIST9_43726
Char.ClearTasksImmediately(54@)
Char.SetCoordinatesDontWarpGang(54@, 2145.146, 1626.464, 992.5681)
Char.SetHeading(54@, 11.1673)
Task.Duck(54@, -1)

:HEIST9_43726
if 
  not Char.IsDead(55@)
goto_if_false @HEIST9_43784
Char.ClearTasksImmediately(55@)
Char.SetCoordinatesDontWarpGang(55@, 2143.25, 1626.482, 992.5681)
Char.SetHeading(55@, 3.4561)
Task.Duck(55@, -1)

:HEIST9_43784
if 
  not Char.IsDead(56@)
goto_if_false @HEIST9_43835
Char.ClearTasksImmediately(56@)
Char.SetCoordinatesDontWarpGang(56@, 2140.753, 1616.249, 992.5681)
Char.SetHeading(56@, 342.9477)

:HEIST9_43835
if 
  not Char.IsDead(57@)
goto_if_false @HEIST9_43886
Char.ClearTasksImmediately(57@)
Char.SetCoordinatesDontWarpGang(57@, 2147.739, 1616.703, 992.5681)
Char.SetHeading(57@, 33.9273)

:HEIST9_43886
return 

:HEIST9_43888
58@ = 0

:HEIST9_43895
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_43934
Char.SetProofs(54@(58@,4i), False, False, True, True, False)

:HEIST9_43934
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_43895
return 

:HEIST9_43957
58@ = 0

:HEIST9_43964
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_44003
Char.SetProofs(54@(58@,4i), False, False, False, True, False)

:HEIST9_44003
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_43964
return 

:HEIST9_44026
if and
  Char.IsDead(335@)
  Char.IsDead(336@)
  Char.IsDead(337@)
  Char.IsDead(338@)
  Char.IsDead(339@)
goto_if_false @HEIST9_44468
if and
  Char.IsDead(340@)
  Char.IsDead(341@)
  Char.IsDead(342@)
goto_if_false @HEIST9_44468
53@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 2148.017, 1597.457, 998.7676, 6, -1)
Sequence.Close(53@)
58@ = 0

:HEIST9_44128
266@(58@,4i) = 0
270@(58@,4i) = 0
if and
  not Char.IsDead(54@(58@,4i))
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_44196
Char.ClearTasksImmediately(54@(58@,4i))
Char.PerformSequence(54@(58@,4i), 53@)

:HEIST9_44196
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_44291
set_lvar_int_to_lvar_int 148@(58@,5i) = 142@(58@,5i)
142@(58@,5i) = Char.GetHealth(54@(58@,4i))
if 
  not is_int_lvar_equal_to_int_lvar 148@(58@,5i) == 142@(58@,5i)
goto_if_false @HEIST9_44291
Text.PrintNow('HM9_44', 5000, 1)

:HEIST9_44291
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_44128
Sequence.Clear(53@)
257@ = 0
258@ = 0
278@ = 1
TIMERB = 0
58@ = 0

:HEIST9_44352
Blip.ChangeDisplay(91@(58@,4i), BlipDisplay.Both)
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_44352
if 
  Blip.DoesExist(90@)
goto_if_false @HEIST9_44405
Blip.Remove(90@)

:HEIST9_44405
90@ = Blip.AddForCoord(2220.543, 1572.625, 998.9531)
Blip.SetEntryExit(90@, 2196.635, 1676.841, 10.0)
Text.PrintNow('HM9_8', 7000, 1)
52@ = 1

:HEIST9_44468
return 

:HEIST9_44470
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_44500
Player.DisableSprint($player1, False)
Char.ShutUpForScriptedSpeech($scplayer, False)

:HEIST9_44500
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:HEIST9_44518
$3252 = Pickup.CreateWithAmmo(368, PickupType.OnStreetSlow, 1, 102.7728, 1899.192, 33.1572)
$3253 = Pickup.CreateWithAmmo(368, PickupType.OnStreetSlow, 1, 1274.301, -825.7809, 1085.079)
$3254 = Pickup.CreateWithAmmo(368, PickupType.OnStreetSlow, 1, -948.3487, 1858.023, 8.3237)
$3255 = Pickup.CreateWithAmmo(368, PickupType.OnStreetSlow, 1, -1956.274, -853.7687, 31.873)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_44656
Player.DisableSprint($player1, False)
Char.ShutUpForScriptedSpeech($scplayer, False)

:HEIST9_44656
if 
  Blip.DoesExist($Theheist_contact_blip)
goto_if_false @HEIST9_44677
Blip.Remove($Theheist_contact_blip)

:HEIST9_44677
$flag_heist_mission_counter += 1
Stat.PlayerMadeProgress(1)
Stat.RegisterMissionPassed('HEIST_9')
Text.PrintWithNumberBig('M_PASSS', 100000, 5000, TextStyle.Middle)
Player.AddScore($player1, 100000)
Stat.AwardPlayerMissionRespect(100)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
World.ClearArea(2444.772, 655.0391, 10.3874, 30.0, True)
$flag_player_got_casino_uniform = 1
Stat.SetInt(StatId.PassedHeist8, 1)
return 

:HEIST9_44783
Streaming.MarkModelAsNoLongerNeeded(530)
Streaming.MarkModelAsNoLongerNeeded(428)
Streaming.MarkModelAsNoLongerNeeded(124)
Streaming.MarkModelAsNoLongerNeeded(125)
Streaming.MarkModelAsNoLongerNeeded(126)
Streaming.MarkModelAsNoLongerNeeded(127)
Streaming.MarkModelAsNoLongerNeeded(347)
Streaming.MarkModelAsNoLongerNeeded(343)
Streaming.MarkModelAsNoLongerNeeded(163)
Streaming.MarkModelAsNoLongerNeeded(#GENERATOR_BIG)
Streaming.MarkModelAsNoLongerNeeded(363)
Streaming.MarkModelAsNoLongerNeeded(368)
Streaming.MarkModelAsNoLongerNeeded(#CJ_MONEY_BAG)
Streaming.MarkModelAsNoLongerNeeded(#GENERATOR_BIG_D)
Streaming.MarkModelAsNoLongerNeeded(164)
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(523)
Streaming.MarkModelAsNoLongerNeeded(284)
Streaming.MarkModelAsNoLongerNeeded(#BODYARMOUR)
Streaming.MarkModelAsNoLongerNeeded(364)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(11)
Streaming.MarkModelAsNoLongerNeeded(172)
Streaming.MarkModelAsNoLongerNeeded(497)
Streaming.MarkModelAsNoLongerNeeded(371)
Streaming.MarkModelAsNoLongerNeeded(335)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Streaming.RemoveAnimation("BOMBER")
Streaming.RemoveCarRecording(499)
Streaming.RemoveCarRecording(487)
Streaming.RemoveCarRecording(494)
Streaming.RemoveCarRecording(484)
return 

:HEIST9_44950
$disable_mod_garage = 0
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_44978
Char.StopFacialTalk($scplayer)

:HEIST9_44978
Game.SetWantedMultiplier(1.0)
Hud.SetRadarZoom(0)
58@ = 0

:HEIST9_44996
if 
  Blip.DoesExist(350@(58@,15i))
goto_if_false @HEIST9_45025
Blip.Remove(350@(58@,15i))

:HEIST9_45025
if 
  Blip.DoesExist(320@(58@,15i))
goto_if_false @HEIST9_45054
Blip.Remove(320@(58@,15i))

:HEIST9_45054
58@ += 1
  58@ >= 11
goto_if_false @HEIST9_44996
if 
  $d5_bronze_generator_unlocked == 1
goto_if_false @HEIST9_45100
CarGenerator.Switch($d5_bronze_generator, 101)

:HEIST9_45100
if 
  $d5_silver_generator_unlocked == 1
goto_if_false @HEIST9_45125
CarGenerator.Switch($d5_silver_generator, 101)

:HEIST9_45125
if 
  $d5_gold_generator_unlocked == 1
goto_if_false @HEIST9_45150
CarGenerator.Switch($d5_gold_generator, 101)

:HEIST9_45150
if 
  not Char.IsDead(97@)
goto_if_false @HEIST9_45171
Char.RemoveElegantly(97@)

:HEIST9_45171
if 
  not Char.IsDead(281@)
goto_if_false @HEIST9_45192
Char.RemoveElegantly(281@)

:HEIST9_45192
if 
  not Char.IsDead(282@)
goto_if_false @HEIST9_45213
Char.RemoveElegantly(282@)

:HEIST9_45213
Zone.SetNoCops('MEAD', False)
Hud.ClearTimer($h9_health)
if 
  $player_fall_state > 0
goto_if_false @HEIST9_45256
$player_fall_state = 6

:HEIST9_45256
$para_float_Vy = 5.0
$para_flare_Vy = 8.5
$para_freefall_Vz = -30.0
$para_freefall_Vy = 32.0
$iTerminateAllAmbience = 0
Game.SwitchObjectBrains(ScriptBrainAttachType.Object, True)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_45339
Char.RemoveWeapon($scplayer, WeaponType.NightVision)
Char.RemoveWeapon($scplayer, WeaponType.Teargas)

:HEIST9_45339
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_45369
Player.DisableSprint($player1, False)
Char.ShutUpForScriptedSpeech($scplayer, False)

:HEIST9_45369
Object.SetHeading($w5_storm_freighter_door, 270.0)
World.SwitchEntryExit('MAFCAS', True)
World.SwitchEntryExit('MAFCAS2', True)
World.SwitchEntryExit('JUMP1', True)
World.SwitchEntryExit('JUMP2', True)
Camera.SetDarknessEffect(False, 0)
Game.SetNightVision(False)
$onmission = 0
Player.ClearWantedLevel($player1)
Object.Delete(41@)
58@ = 0

:HEIST9_45465
if 
  not Char.IsDead(54@(58@,4i))
goto_if_false @HEIST9_45494
Char.RemoveElegantly(54@(58@,4i))

:HEIST9_45494
if 
  not Char.IsDead(109@(58@,5i))
goto_if_false @HEIST9_45523
Char.MarkAsNoLongerNeeded(109@(58@,5i))

:HEIST9_45523
if 
  Blip.DoesExist(91@(58@,4i))
goto_if_false @HEIST9_45552
Blip.Remove(91@(58@,4i))

:HEIST9_45552
if 
  Object.DoesExist(61@(58@,4i))
goto_if_false @HEIST9_45581
Object.Delete(61@(58@,4i))

:HEIST9_45581
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_45465
if 
  Blip.DoesExist(299@)
goto_if_false @HEIST9_45623
Blip.Remove(299@)

:HEIST9_45623
if 
  Blip.DoesExist(233@)
goto_if_false @HEIST9_45644
Blip.Remove(233@)

:HEIST9_45644
if 
  Blip.DoesExist(45@)
goto_if_false @HEIST9_45665
Blip.Remove(45@)

:HEIST9_45665
if 
  Blip.DoesExist(108@)
goto_if_false @HEIST9_45686
Blip.Remove(108@)

:HEIST9_45686
if 
  Blip.DoesExist(39@)
goto_if_false @HEIST9_45707
Blip.Remove(39@)

:HEIST9_45707
if 
  Blip.DoesExist(44@)
goto_if_false @HEIST9_45728
Blip.Remove(44@)

:HEIST9_45728
if 
  Blip.DoesExist(47@)
goto_if_false @HEIST9_45749
Blip.Remove(47@)

:HEIST9_45749
if 
  Blip.DoesExist(90@)
goto_if_false @HEIST9_45770
Blip.Remove(90@)

:HEIST9_45770
if 
  Blip.DoesExist(384@)
goto_if_false @HEIST9_45791
Blip.Remove(384@)

:HEIST9_45791
if 
  Blip.DoesExist(376@)
goto_if_false @HEIST9_45812
Blip.Remove(376@)

:HEIST9_45812
if 
  Blip.DoesExist(84@)
goto_if_false @HEIST9_45833
Blip.Remove(84@)

:HEIST9_45833
if 
  Blip.DoesExist(102@)
goto_if_false @HEIST9_45854
Blip.Remove(102@)

:HEIST9_45854
if 
  Blip.DoesExist(372@)
goto_if_false @HEIST9_45875
Blip.Remove(372@)

:HEIST9_45875
if 
  Blip.DoesExist(228@)
goto_if_false @HEIST9_45896
Blip.Remove(228@)

:HEIST9_45896
if 
  Blip.DoesExist(229@)
goto_if_false @HEIST9_45917
Blip.Remove(229@)

:HEIST9_45917
if 
  World.IsAnyPickupAtCoords(2176.471, 1597.394, 1000.0)
goto_if_false @HEIST9_45950
Pickup.Remove($gate_drive_car_ai_heist5)

:HEIST9_45950
if 
  World.IsAnyPickupAtCoords(2144.339, 1640.666, 993.5)
goto_if_false @HEIST9_45983
Pickup.Remove(285@)

:HEIST9_45983
if 
  World.IsAnyPickupAtCoords(2146.487, 1622.805, 993.0)
goto_if_false @HEIST9_46016
Pickup.Remove(214@)

:HEIST9_46016
if 
  World.IsAnyPickupAtCoords(2267.989, 1699.668, 101.4)
goto_if_false @HEIST9_46049
Pickup.Remove(298@)

:HEIST9_46049
if 
  World.IsAnyPickupAtCoords(2265.825, 1617.069, 94.5)
goto_if_false @HEIST9_46082
Pickup.Remove(385@)

:HEIST9_46082
$timer_mobile_start = Clock.GetGameTimer()
Streaming.MarkModelAsNoLongerNeeded(530)
Streaming.MarkModelAsNoLongerNeeded(428)
Streaming.MarkModelAsNoLongerNeeded(124)
Streaming.MarkModelAsNoLongerNeeded(125)
Streaming.MarkModelAsNoLongerNeeded(126)
Streaming.MarkModelAsNoLongerNeeded(127)
Streaming.MarkModelAsNoLongerNeeded(#PARA_PACK)
Streaming.MarkModelAsNoLongerNeeded(347)
Streaming.MarkModelAsNoLongerNeeded(343)
Streaming.MarkModelAsNoLongerNeeded(164)
Streaming.MarkModelAsNoLongerNeeded(163)
Streaming.MarkModelAsNoLongerNeeded(#GENERATOR_BIG)
Streaming.MarkModelAsNoLongerNeeded(363)
Streaming.MarkModelAsNoLongerNeeded(368)
Streaming.MarkModelAsNoLongerNeeded(#CJ_MONEY_BAG)
Streaming.MarkModelAsNoLongerNeeded(497)
Streaming.MarkModelAsNoLongerNeeded(#GENERATOR_BIG_D)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(523)
Streaming.MarkModelAsNoLongerNeeded(284)
Streaming.MarkModelAsNoLongerNeeded(#BODYARMOUR)
Streaming.MarkModelAsNoLongerNeeded(364)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(11)
Streaming.MarkModelAsNoLongerNeeded(172)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(335)
Streaming.MarkModelAsNoLongerNeeded(285)
Streaming.MarkModelAsNoLongerNeeded(371)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.UnloadSpecialCharacter(3)
Streaming.RemoveAnimation("HEIST9")
Streaming.RemoveAnimation("BOMBER")
Streaming.RemoveAnimation("FIGHT_B")
Mission.Finish
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
return 

:HEIST9_46291
Text.ClearPrints
Text.ClearHelp
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
return 

:HEIST9_46308
Text.ClearPrints
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
return 

:HEIST9_46327
Camera.DoFade(500, Fade.Out)

:HEIST9_46334
if 
  Camera.GetFadingStatus
goto_if_false @HEIST9_46358
wait 0
goto @HEIST9_46334

:HEIST9_46358
return 

:HEIST9_46360
Camera.DoFade(500, Fade.In)

:HEIST9_46367
if 
  Camera.GetFadingStatus
goto_if_false @HEIST9_46391
wait 0
goto @HEIST9_46367

:HEIST9_46391
return 

:HEIST9_46393
if 
is_ps2_keyboard_key_just_pressed 28
goto_if_false @HEIST9_46484
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_46484
Char.SetCoordinatesDontWarpGang($scplayer, 2179.354, 1673.18, 10.0469)
Char.SetHeading($scplayer, 285.6208)
Camera.SetBehindPlayer
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_46477
Char.StopFacialTalk($scplayer)

:HEIST9_46477
Char.ShutUpForScriptedSpeech($scplayer, False)

:HEIST9_46484
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @HEIST9_46545
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_46545
Char.SetCoordinatesDontWarpGang($scplayer, 2176.583, 1600.462, 998.9749)
Char.SetHeading($scplayer, 179.7799)

:HEIST9_46545
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @HEIST9_46748
gosub @HEIST9_46291
Camera.SetFixedPosition(2144.677, 1614.061, 1001.469, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2144.413, 1615.016, 1001.331, SwitchType.JumpCut)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_46712
Char.ClearTasksImmediately($scplayer)
Char.SetVelocity($scplayer, 0.0, 0.0, 0.0)
Char.SetCoordinatesDontWarpGang($scplayer, 2142.664, 1617.397, 999.968)
Char.SetHeading($scplayer, 352.2108)
Task.ShootAtCoord($scplayer, 2142.664, 1620.397, 1003.0, 1000)

:HEIST9_46712
wait 4000
World.ClearArea(2143.124, 1618.427, 999.968, 10.0, True)
gosub @HEIST9_46308

:HEIST9_46748
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @HEIST9_46832
Streaming.SetAreaVisible(1)
Streaming.LoadScene(2147.778, 1611.972, 1005.188)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_46832
Char.SetCoordinatesDontWarpGang($scplayer, 2147.778, 1611.972, 1005.188)
Char.SetHeading($scplayer, 182.1343)
Camera.SetBehindPlayer

:HEIST9_46832
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @HEIST9_47097
gosub @HEIST9_46327
gosub @HEIST9_46291
Streaming.RequestModel(330)
Streaming.LoadSpecialCharacter(1, 'ZERO')

:HEIST9_46879
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(330)
goto_if_false @HEIST9_46910
wait 0
goto @HEIST9_46879

:HEIST9_46910
Game.SetNightVision(False)
Camera.SetDarknessEffect(True, 220)
Camera.SetFixedPosition(2219.456, 1587.37, 999.1768, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2219.68, 1586.409, 999.3383, SwitchType.JumpCut)
97@ = Char.Create(PedType.Special, 290, 2221.122, 1582.974, 998.9675)
Char.SetAreaVisible(97@, 1)
Char.SetHeading(97@, 4.8671)
Task.UseMobilePhone(97@, True)
gosub @HEIST9_46360
Text.PrintNow('HM9_46', 4000, 1)
wait 2000
Camera.SetDarknessEffect(False, 0)
wait 2000
gosub @HEIST9_46308
Text.PrintNow('HM9_8', 5000, 1)
105@ = 1
200@ = 1

:HEIST9_47097
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @HEIST9_47158
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_47158
Char.SetCoordinatesDontWarpGang($scplayer, 2144.021, 1612.867, 992.5681)
Char.SetHeading($scplayer, 0.0)

:HEIST9_47158
if 
is_ps2_keyboard_key_just_pressed 8
goto_if_false @HEIST9_47196
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_47196
Player.RestoreClothesState
Player.BuildModel($player1)

:HEIST9_47196
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @HEIST9_47369
38@ = 6
46@ = Car.Create(530, 2173.621, 1585.964, 998.9722)
Car.SetAreaVisible(46@, 1)
Car.SetHeading(46@, 270.0)
Car.ChangeColor(46@, 6, 6)
Streaming.MarkModelAsNoLongerNeeded(530)
209@ = 1
if 
  not Car.IsDead(46@)
goto_if_false @HEIST9_47302
Car.SetAreaVisible(46@, 1)

:HEIST9_47302
Streaming.SetAreaVisible(1)
Streaming.LoadScene(2256.551, 1704.762, 1.1747)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_47369
Char.SetCoordinatesDontWarpGang($scplayer, 2220.37, 1574.484, 998.9695)
Char.SetHeading($scplayer, 180.0)

:HEIST9_47369
if 
is_ps2_keyboard_key_just_pressed 15
goto_if_false @HEIST9_47430
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_47430
Char.SetCoordinatesDontWarpGang($scplayer, 1962.841, 1060.633, 993.4688)
Char.SetHeading($scplayer, 346.1133)

:HEIST9_47430
if 
is_ps2_keyboard_key_just_pressed 24
goto_if_false @HEIST9_47498
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_47491
Char.SetCoordinatesDontWarpGang($scplayer, 362.6579, 2525.248, 15.6336)
Char.SetHeading($scplayer, 11.8402)

:HEIST9_47491
38@ = 18

:HEIST9_47498
if 
is_ps2_keyboard_key_just_pressed 29
goto_if_false @HEIST9_48138
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_47559
Char.SetCoordinatesDontWarpGang($scplayer, 346.9504, 2539.025, 15.7546)
Char.SetHeading($scplayer, 2.8895)

:HEIST9_47559
gosub @HEIST9_46291
Camera.SetFixedPosition(350.102, 2536.995, 16.9325, 0.0, 0.0, 0.0)
Camera.PointAtPoint(349.5165, 2537.801, 16.844, SwitchType.JumpCut)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_47669
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 1.0, False, False, False, False, -1)

:HEIST9_47669
Text.PrintNow('HE8_ZA', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12317)

:HEIST9_47696
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_47722
wait 0
goto @HEIST9_47696

:HEIST9_47722
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_47733
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_47759
wait 0
goto @HEIST9_47733

:HEIST9_47759
Text.PrintNow('HE8_ZB', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12284)

:HEIST9_47786
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_47812
wait 0
goto @HEIST9_47786

:HEIST9_47812
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_47823
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_47849
wait 0
goto @HEIST9_47823

:HEIST9_47849
Text.PrintNow('HE8_ZC', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 65535)

:HEIST9_47878
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_47904
wait 0
goto @HEIST9_47878

:HEIST9_47904
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_47915
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_47941
wait 0
goto @HEIST9_47915

:HEIST9_47941
Text.PrintNow('HE8_ZD', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12318)

:HEIST9_47968
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_47994
wait 0
goto @HEIST9_47968

:HEIST9_47994
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_48005
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_48031
wait 0
goto @HEIST9_48005

:HEIST9_48031
gosub @HEIST9_46327
Char.Delete(54@)
Char.Delete(97@)
Car.Delete(51@)
Object.Delete(61@)
Object.Delete(62@)
Object.Delete(63@)
Object.Delete(64@)
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_48124
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinatesDontWarpGang($scplayer, 347.167, 2538.484, 15.7535)
Char.SetHeading($scplayer, 191.987)

:HEIST9_48124
gosub @HEIST9_46308
gosub @HEIST9_46360

:HEIST9_48138
if 
is_ps2_keyboard_key_just_pressed 18
goto_if_false @HEIST9_48157
Hud.SetRadarZoom(0)

:HEIST9_48157
if 
is_ps2_keyboard_key_just_pressed 21
goto_if_false @HEIST9_48176
Hud.SetRadarZoom(100)

:HEIST9_48176
if 
is_ps2_keyboard_key_just_pressed 23
goto_if_false @HEIST9_49691
Streaming.RequestModel(117)
Streaming.RequestModel(120)
Streaming.RequestModel(428)
Streaming.RequestModel(523)
Streaming.RequestModel(284)
Streaming.LoadSpecialCharacter(1, 'ZERO')

:HEIST9_48227
if or
  not Streaming.HasModelLoaded(117)
  not Streaming.HasModelLoaded(120)
  not Streaming.HasModelLoaded(428)
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(523)
  not Streaming.HasModelLoaded(284)
goto_if_false @HEIST9_48276
wait 0
goto @HEIST9_48227

:HEIST9_48276
Streaming.RequestCarRecording(494)

:HEIST9_48281
if 
  not Streaming.HasCarRecordingBeenLoaded(494)
goto_if_false @HEIST9_48308
wait 0
goto @HEIST9_48281

:HEIST9_48308
Object.Delete(49@)
387@ = Car.Create(428, 2220.389, 1577.623, 998.0)
Car.SetAreaVisible(387@, 1)
Car.SetHeading(387@, 179.9804)
54@ = Char.Create(PedType.Mission2, 117, 2224.042, 1589.367, 998.967)
Char.SetAreaVisible(54@, 1)
Char.SetHeading(54@, 165.2519)
55@ = Char.Create(PedType.Mission2, 120, 2222.893, 1589.583, 998.9684)
Char.SetAreaVisible(55@, 1)
Char.SetHeading(55@, 173.9364)
56@ = Char.Create(PedType.Mission2, 120, 2221.866, 1589.245, 998.9696)
Char.SetAreaVisible(56@, 1)
Char.SetHeading(56@, 177.0563)
57@ = Char.Create(PedType.Mission2, 120, 2220.723, 1589.224, 998.971)
Char.SetAreaVisible(57@, 1)
Char.SetHeading(57@, 171.7417)
gosub @HEIST9_46291
Camera.SetFixedPosition(2216.721, 1579.81, 1000.833, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2217.382, 1580.538, 1000.654, SwitchType.JumpCut)
Text.PrintNow('HE8_UA', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12276)

:HEIST9_48602
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_48628
wait 0
goto @HEIST9_48602

:HEIST9_48628
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_48639
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_48689
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_48682
goto @HEIST9_49517

:HEIST9_48682
goto @HEIST9_48639

:HEIST9_48689
Text.PrintNow('HE8_UB', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 12218)

:HEIST9_48716
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_48742
wait 0
goto @HEIST9_48716

:HEIST9_48742
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
TIMERB = 0

:HEIST9_48753
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @HEIST9_48803
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_48796
goto @HEIST9_49517

:HEIST9_48796
goto @HEIST9_48753

:HEIST9_48803
Char.Delete(97@)
Char.Delete(56@)
Char.Delete(57@)
Camera.SetFixedPosition(2216.914, 1571.622, 999.7229, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2217.27, 1572.557, 999.7267, SwitchType.JumpCut)
281@ = Char.Create(PedType.Mission2, 284, 2220.8, 1581.163, 998.9764)
Char.SetHeading(281@, 196.0524)
Char.SetAreaVisible(281@, 1)
282@ = Char.Create(PedType.Mission2, 284, 2220.019, 1581.179, 998.9772)
Char.SetHeading(282@, 74.4668)
Char.SetAreaVisible(282@, 1)
if and
  not Car.IsDead(387@)
  not Char.IsDead(54@)
goto_if_false @HEIST9_48985
Task.EnterCarAsDriver(54@, 387@, 8000)

:HEIST9_48985
if and
  not Car.IsDead(387@)
  not Char.IsDead(55@)
goto_if_false @HEIST9_49019
Task.EnterCarAsPassenger(55@, 387@, 8000, 0)

:HEIST9_49019
TIMERB = 0

:HEIST9_49026
if 
  4000 > TIMERB
goto_if_false @HEIST9_49080
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_49073
goto @HEIST9_49517

:HEIST9_49073
goto @HEIST9_49026

:HEIST9_49080
if and
  not Car.IsDead(279@)
  not Char.IsDead(281@)
goto_if_false @HEIST9_49112
Task.EnterCarAsDriver(281@, 279@, 4000)

:HEIST9_49112
if and
  not Car.IsDead(280@)
  not Char.IsDead(282@)
goto_if_false @HEIST9_49144
Task.EnterCarAsDriver(282@, 280@, 4000)

:HEIST9_49144
TIMERB = 0

:HEIST9_49151
if 
  4000 > TIMERB
goto_if_false @HEIST9_49205
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_49198
goto @HEIST9_49517

:HEIST9_49198
goto @HEIST9_49151

:HEIST9_49205
Camera.SetFixedPosition(2223.85, 1572.014, 1001.623, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2223.371, 1572.844, 1001.336, SwitchType.JumpCut)
if and
  Streaming.HasCarRecordingBeenLoaded(494)
  not Car.IsDead(387@)
goto_if_false @HEIST9_49285
Car.StartPlayback(387@, 494)

:HEIST9_49285
TIMERB = 0

:HEIST9_49292
if 
  500 > TIMERB
goto_if_false @HEIST9_49346
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_49339
goto @HEIST9_49517

:HEIST9_49339
goto @HEIST9_49292

:HEIST9_49346
if and
  not Car.IsDead(279@)
  not Char.IsDead(281@)
goto_if_false @HEIST9_49401
Task.CarDriveToCoord(281@, 279@, 2223.486, 1564.463, 1001.016, 10.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:HEIST9_49401
if and
  not Car.IsDead(280@)
  not Char.IsDead(282@)
goto_if_false @HEIST9_49456
Task.CarDriveToCoord(282@, 280@, 2217.319, 1566.6, 1000.3, 10.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:HEIST9_49456
TIMERB = 0

:HEIST9_49463
if 
  2000 > TIMERB
goto_if_false @HEIST9_49517
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @HEIST9_49510
goto @HEIST9_49517

:HEIST9_49510
goto @HEIST9_49463

:HEIST9_49517
58@ = 0

:HEIST9_49524
if 
  Blip.DoesExist(91@(58@,4i))
goto_if_false @HEIST9_49562
Blip.Remove(91@(58@,4i))
Char.Delete(54@(58@,4i))

:HEIST9_49562
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_49524
if 
  not Car.IsDead(387@)
goto_if_false @HEIST9_49604
Car.Delete(387@)

:HEIST9_49604
if 
  not Car.IsDead(279@)
goto_if_false @HEIST9_49625
Car.Delete(279@)

:HEIST9_49625
if 
  not Car.IsDead(280@)
goto_if_false @HEIST9_49646
Car.Delete(280@)

:HEIST9_49646
if 
  not Char.IsDead(97@)
goto_if_false @HEIST9_49667
Char.Delete(97@)

:HEIST9_49667
gosub @HEIST9_46308
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(120)
Streaming.MarkModelAsNoLongerNeeded(285)
Streaming.UnloadSpecialCharacter(2)

:HEIST9_49691
if 
is_ps2_keyboard_key_just_pressed 12
goto_if_false @HEIST9_49729
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_49729
Player.TakeOffGoggles($player1, True)

:HEIST9_49729
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @HEIST9_49787
38@ = 18
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_49787
Char.SetCoordinatesDontWarpGang($scplayer, 338.0, 2540.563, 15.7743)

:HEIST9_49787
if 
is_ps2_keyboard_key_just_pressed 13
goto_if_false @HEIST9_50383
Streaming.RequestModel(523)
Streaming.RequestModel(284)
Streaming.LoadSpecialCharacter(1, 'ZERO')

:HEIST9_49825
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(523)
  not Streaming.HasModelLoaded(284)
goto_if_false @HEIST9_49861
wait 0
goto @HEIST9_49825

:HEIST9_49861
Streaming.RequestCarRecording(494)
Streaming.LoadSpecialCharacter(1, 'ZERO')

:HEIST9_49879
if 
  not Streaming.HasCarRecordingBeenLoaded(494)
goto_if_false @HEIST9_49906
wait 0
goto @HEIST9_49879

:HEIST9_49906
World.SwitchEntryExit('JUMP1', True)
World.SwitchEntryExit('JUMP2', False)
106@ = 1
World.ClearArea(2220.34, 1582.068, 998.9764, 10.0, True)
97@ = Char.Create(PedType.Mission2, 290, 2220.34, 1582.068, 998.9764)
Char.SetAreaVisible(97@, 1)
Char.SetHeading(97@, 350.4443)
279@ = Car.Create(523, 2223.699, 1582.78, 998.0)
Car.SetAreaVisible(279@, 1)
Car.SetHeading(279@, 175.8434)
Car.LockDoors(279@, CarLock.LockoutPlayerOnly)
Car.FreezePosition(279@, True)
280@ = Car.Create(523, 2217.549, 1583.667, 998.0)
Car.SetAreaVisible(280@, 1)
Car.SetHeading(280@, 175.3717)
Car.LockDoors(280@, CarLock.LockoutPlayerOnly)
Car.FreezePosition(280@, True)
gosub @HEIST9_1936
if 
  not Car.IsDead(51@)
goto_if_false @HEIST9_50166
Car.SetCoordinates(51@, 2220.294, 1578.07, 998.9756)
Car.SetHeading(51@, 177.9097)

:HEIST9_50166
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_50212
Char.SetCoordinatesDontWarpGang($scplayer, 2216.031, 1618.646, 998.9766)
Char.SetHeading($scplayer, 269.4771)

:HEIST9_50212
if 
  not Char.IsDead(54@)
goto_if_false @HEIST9_50253
Char.WarpFromCarToCoord(54@, 2219.758, 1585.285, 998.9722)
Char.ClearTasksImmediately(54@)

:HEIST9_50253
if 
  not Char.IsDead(55@)
goto_if_false @HEIST9_50294
Char.WarpFromCarToCoord(55@, 2221.883, 1584.261, 998.9696)
Char.ClearTasksImmediately(55@)

:HEIST9_50294
if 
  not Char.IsDead(56@)
goto_if_false @HEIST9_50335
Char.WarpFromCarToCoord(56@, 2222.705, 1586.266, 998.9686)
Char.ClearTasksImmediately(56@)

:HEIST9_50335
if 
  not Char.IsDead(57@)
goto_if_false @HEIST9_50376
Char.WarpFromCarToCoord(57@, 2220.302, 1586.568, 998.9716)
Char.ClearTasksImmediately(57@)

:HEIST9_50376
38@ = 14

:HEIST9_50383
return 

:HEIST9_50385
388@ = Streaming.GetAreaVisible()
gosub @HEIST9_46327
if and
  not Char.IsDead($scplayer)
  388@ <> 0
goto_if_false @HEIST9_50565
Game.SetNightVision(False)
Streaming.SetAreaVisible(0)
Streaming.LoadScene(2185.739, 1677.396, 10.0946)
World.ClearArea(2185.739, 1677.396, 10.0946, 10.0, True)
Streaming.RequestCollision(2185.739, 1677.396)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HEIST9_50524
Char.WarpFromCarToCoord($scplayer, 2185.739, 1677.396, 10.0946)
goto @HEIST9_50544

:HEIST9_50524
Char.SetCoordinatesDontWarpGang($scplayer, 2185.739, 1677.396, 10.0946)

:HEIST9_50544
Char.SetHeading($scplayer, 88.4776)
Char.SetAreaVisible($scplayer, 0)
Camera.RestoreJumpcut
Camera.SetBehindPlayer

:HEIST9_50565
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_50595
Player.RestoreClothesState
Player.BuildModel($player1)
230@ = 1

:HEIST9_50595
gosub @HEIST9_46360
return 

:HEIST9_50604
gosub @HEIST9_46327
if 
  not Char.IsDead($scplayer)
goto_if_false @HEIST9_50641
Player.RestoreClothesState
Player.BuildModel($player1)
230@ = 1

:HEIST9_50641
gosub @HEIST9_46360
return 

:HEIST9_50650
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 232@)
231@ = 0
return 

:HEIST9_50670
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  231@ == 0
goto_if_false @HEIST9_50713
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(288@s, 20000, 1)
231@ = 1

:HEIST9_50713
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  231@ == 1
goto_if_false @HEIST9_50751
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint(288@s)
231@ = 2

:HEIST9_50751
return 

//-------------Mission 102---------------
// Originally: A Home In The Hills

:MANSIO1
script_name 'MANSIO1'
gosub @MANSIO1_47
if 
  has_deatharrest_been_executed 
goto_if_false @MANSIO1_38
gosub @MANSIO1_38488

:MANSIO1_38
gosub @MANSIO1_39063
terminate_this_script 

:MANSIO1_47
Stat.RegisterMissionGiven
$onmission = 1
Char.SetCoordinates($scplayer, 2175.412, 1681.548, 9.8203)
Char.SetHeading($scplayer, 90.0)
Char.SetHasUsedEntryExit($scplayer, 2233.5, 1712.8, 10.0)
Text.LoadMissionText('MAN_1')
Player.SetGroupRecruitment($player1, False)
Game.SetScriptLimitToGangSize(0)
$iTerminateAllAmbience = 1
Streaming.SetAreaVisible(11)
Cutscene.Load('BHILL1')

:MANSIO1_150
if 
  not Cutscene.HasLoaded
goto_if_false @MANSIO1_174
wait 0
goto @MANSIO1_150

:MANSIO1_174
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:MANSIO1_183
if 
  not Cutscene.HasFinished
goto_if_false @MANSIO1_207
wait 0
goto @MANSIO1_183

:MANSIO1_207
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:MANSIO1_222
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_246
wait 0
goto @MANSIO1_222

:MANSIO1_246
Streaming.SetAreaVisible(0)
Hud.DisplayZoneNames(False)
Game.SetScriptLimitToGangSize(99)
start_new_script @A_CONT 
Streaming.LoadSceneInDirection(2171.137, 1269.357, 32.8078, 0.0)
Streaming.RequestModel(592)

:MANSIO1_293
if 
  not Streaming.HasModelLoaded(592)
goto_if_false @MANSIO1_320
wait 0
goto @MANSIO1_293

:MANSIO1_320
Char.SetAreaVisible($scplayer, 0)
96@ = Car.Create(592, 2144.0, 1600.0, 50.0)
Car.SetHeading(96@, 180.0)
Audio.SetRadioChannel(RadioChannel.UserTracks)
Plane.SetUndercarriageUp(96@, True)
Car.FreezePosition(96@, True)
Car.SetAreaVisible(96@, 0)
Char.WarpIntoCar($scplayer, 96@)
49@ = 0
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
Clock.SetTimeOfDay(6, 0)
Camera.SetFixedPosition(2171.137, 1269.357, 32.8078, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2170.998, 1270.331, 32.9838, SwitchType.JumpCut)
Restart.SetRespawnPointForDurationOfMission(1581.374, 1768.996, 9.8203)
Hud.SwitchWidescreen(True)
Weather.SetHeathazeEffect(True)
TIMERA = 0

:MANSIO1_493
if 
  1000 > TIMERA
goto_if_false @MANSIO1_523
wait 0
goto @MANSIO1_493

:MANSIO1_523
skip_cutscene_start_internal @MANSIO1_703
97@ = 1600.0
Camera.DoFade(1000, Fade.In)

:MANSIO1_547
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_615
if 
  not Car.IsDead(96@)
goto_if_false @MANSIO1_604
97@ -= 1.5
Car.SetCoordinates(96@, 2144.0, 97@, 50.0)

:MANSIO1_604
wait 0
goto @MANSIO1_547

:MANSIO1_615
TIMERA = 0

:MANSIO1_622
if 
  9000 > TIMERA
goto_if_false @MANSIO1_696
if 
  not Car.IsDead(96@)
goto_if_false @MANSIO1_685
97@ -= 1.5
Car.SetCoordinates(96@, 2144.0, 97@, 50.0)

:MANSIO1_685
wait 0
goto @MANSIO1_622

:MANSIO1_696
49@ = 1

:MANSIO1_703
skip_cutscene_end 
Camera.DoFade(1000, Fade.Out)

:MANSIO1_712
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_780
if 
  not Car.IsDead(96@)
goto_if_false @MANSIO1_769
97@ -= 1.5
Car.SetCoordinates(96@, 2144.0, 97@, 50.0)

:MANSIO1_769
wait 0
goto @MANSIO1_712

:MANSIO1_780
Weather.SetHeathazeEffect(False)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSIO1_827
Char.WarpFromCarToCoord($scplayer, 1598.951, -785.327, 350.1654)
goto @MANSIO1_847

:MANSIO1_827
Char.SetCoordinates($scplayer, 1598.951, -785.327, 350.1654)

:MANSIO1_847
Char.FreezePosition($scplayer, True)
Streaming.MarkModelAsNoLongerNeeded(592)
Car.MarkAsNoLongerNeeded(96@)
Streaming.RequestModel(117)
Streaming.RequestModel(118)
Streaming.RequestModel(108)
Streaming.RequestModel(109)
Streaming.RequestModel(356)
Streaming.RequestModel(353)
Streaming.RequestModel(#CARGO_REAR)
Streaming.RequestModel(#D9_RAMP)
Streaming.RequestModel(330)
Streaming.RequestModel(#PARACHUTE)
Streaming.RequestModel(#PARA_PACK)
Streaming.RequestAnimation("PARACHUTE")
StreamedScript.Stream(1)

:MANSIO1_932
if or
  not Streaming.HasModelLoaded(117)
  not Streaming.HasModelLoaded(118)
  not Streaming.HasModelLoaded(108)
  not Streaming.HasModelLoaded(109)
  not Streaming.HasModelLoaded(356)
  not Streaming.HasModelLoaded(353)
goto_if_false @MANSIO1_980
wait 0
goto @MANSIO1_932

:MANSIO1_980
if or
  not Streaming.HasModelLoaded(#CARGO_REAR)
  not Streaming.HasModelLoaded(#D9_RAMP)
  not Streaming.HasModelLoaded(330)
  not Streaming.HasModelLoaded(#PARACHUTE)
  not Streaming.HasModelLoaded(#PARA_PACK)
  not Streaming.HasAnimationLoaded("PARACHUTE")
goto_if_false @MANSIO1_1040
wait 0
goto @MANSIO1_980

:MANSIO1_1040
if 
  not StreamedScript.HasLoaded(1)
goto_if_false @MANSIO1_1066
wait 0
goto @MANSIO1_1040

:MANSIO1_1066
52@ = 0
34@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
35@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.AddEventResponse(35@, 36, 1024, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse(35@, 36, 1700, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse(35@, 9, 1000, 0.0, 100.0, 0.0, 0.0, False, True)
36@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.AddEventResponse(36@, 36, 1024, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse(36@, 36, 1700, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse(36@, 9, 1000, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse(36@, 15, 300, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse(36@, 65, 300, 10.0, 10.0, 10.0, 10.0, False, True)
37@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.AddEventResponse(37@, 36, 927, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse(37@, 37, 927, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse(37@, 9, 911, 0.0, 100.0, 0.0, 0.0, False, True)
39@ = DecisionMakerGroup.Load(0)
DecisionMakerGroup.ClearEventResponse(39@, 9)
DecisionMakerGroup.AddEventResponse(39@, 9, 1502, 0.0, 100.0, 0.0, 0.0, False, True)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Mission1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Mission2)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission2, PedType.Mission1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission2, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission3, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission3, PedType.Mission1)
Game.SetRelationship(RelationshipType.Dislike, PedType.Mission3, PedType.Mission2)
44@ = Player.GetGroup($player1)
Group.SetDefaultTaskAllocator(44@, DefaultTaskAllocator.FollowAnyMeans)
Group.SetDecisionMaker(44@, 39@)
98@ = 0
if 
  98@ == 1
goto_if_false @MANSIO1_1842
143@(431@,3i) = Char.Create(PedType.CivMale, 117, 0.0, 0.0, 0.0)
159@ = Char.Create(PedType.CivMale, 117, 0.0, 0.0, 0.0)
170@(43@,6i) = Char.Create(PedType.CivMale, 117, 0.0, 0.0, 0.0)
286@(43@,10i) = Char.Create(PedType.CivMale, 117, 0.0, 0.0, 0.0)
474@(43@,3i) = Char.Create(PedType.CivMale, 117, 0.0, 0.0, 0.0)
316@(43@,4i) = Char.Create(PedType.CivMale, 117, 0.0, 0.0, 0.0)
194@(43@,6i) = Object.Create(#CARDBOARDBOX2, 0.0, 0.0, 0.0)
146@(43@,3i) = Blip.AddForChar(143@(43@,3i))

:MANSIO1_1842
Game.SwitchAmbientPlanes(False)
Game.SetPoliceIgnorePlayer($player1, True)
Weather.ForceNow(WeatherType.SunnyLa)
Clock.SetTimeOfDay(3, 0)
127@ = Object.CreateNoOffset(#CARGO_REAR, 1595.0, -785.0, 350.0)
Object.SetHeading(127@, 90.0)
Object.FreezePosition(127@, True)
128@ = Object.CreateNoOffset(#D9_RAMP, 1595.03, -784.98, 348.758)
Object.SetHeading(128@, 90.0)
Object.FreezePosition(128@, True)
Char.FreezePosition($scplayer, False)
Char.SetCoordinates($scplayer, 1594.393, -784.7317, 349.0)
Char.SetHeading($scplayer, 36.9506)
131@ = Char.Create(PedType.Mission1, 117, 1595.303, -783.4741, 349.0)
Char.SetHeading(131@, 205.0)
Char.SetAreaVisible(131@, 0)
Char.GiveWeapon(131@, WeaponType.M4, 30000)
Char.SetCurrentWeapon(131@, WeaponType.M4)
Char.SetNeverTargeted(131@, True)
Char.SetDecisionMaker(131@, 34@)
Char.SetSignalAfterKill(131@, False)
152@ = Object.Create(#PARA_PACK, 1595.303, -783.4741, 349.0)
Task.PickUpObject(131@, 152@, -0.11, -0.05, 0.0, 1, 16, "NULL", "NULL", 0)
Char.SetProofs(131@, True, False, False, False, False)
139@ = 0
135@ = 0
132@ = Char.Create(PedType.Mission1, 118, 1596.97, -786.8875, 349.0)
Char.SetHeading(132@, 2.0)
Char.SetAreaVisible(132@, 0)
Char.GiveWeapon(132@, WeaponType.M4, 30000)
Char.SetCurrentWeapon(132@, WeaponType.M4)
Char.SetNeverTargeted(132@, True)
Char.SetDecisionMaker(132@, 34@)
Char.SetSignalAfterKill(132@, False)
153@ = Object.Create(#PARA_PACK, 1596.97, -786.8875, 349.0)
Task.PickUpObject(132@, 153@, -0.11, -0.05, 0.0, 1, 16, "NULL", "NULL", 0)
Char.SetProofs(132@, True, False, False, False, False)
140@ = 1500
136@ = 0
133@ = Char.Create(PedType.Mission1, 118, 1598.448, -782.9297, 349.0)
Char.SetHeading(133@, 175.0)
Char.SetAreaVisible(133@, 0)
Char.GiveWeapon(133@, WeaponType.M4, 30000)
Char.SetCurrentWeapon(133@, WeaponType.M4)
Char.SetNeverTargeted(133@, True)
Char.SetDecisionMaker(133@, 34@)
Char.SetSignalAfterKill(133@, False)
154@ = Object.Create(#PARA_PACK, 1598.448, -782.9297, 349.0)
Task.PickUpObject(133@, 154@, -0.11, -0.05, 0.0, 1, 16, "NULL", "NULL", 0)
Char.SetProofs(133@, True, False, False, False, False)
141@ = 3000
137@ = 0
134@ = Char.Create(PedType.Mission1, 117, 1599.034, -786.9792, 349.0)
Char.SetHeading(134@, 347.0)
Char.SetAreaVisible(134@, 0)
Char.GiveWeapon(134@, WeaponType.M4, 30000)
Char.SetCurrentWeapon(134@, WeaponType.M4)
Char.SetNeverTargeted(134@, True)
Char.SetDecisionMaker(134@, 34@)
Char.SetSignalAfterKill(134@, False)
155@ = Object.Create(#PARA_PACK, 1599.034, -786.9792, 349.0)
Task.PickUpObject(134@, 155@, -0.11, -0.05, 0.0, 1, 16, "NULL", "NULL", 0)
Char.SetProofs(134@, True, False, False, False, False)
142@ = 5000
138@ = 0
if 
  49@ == 0
goto_if_false @MANSIO1_2700
goto @MANSIO1_5657

:MANSIO1_2700
49@ = 0
Streaming.LoadScene(1597.615, -784.5765, 350.0)
Camera.SetFixedPosition(1598.951, -785.327, 350.1654, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1598.351, -784.5302, 350.089, SwitchType.JumpCut)
TIMERA = 0

:MANSIO1_2782
if 
  500 > TIMERA
goto_if_false @MANSIO1_2812
wait 0
goto @MANSIO1_2782

:MANSIO1_2812
Camera.SetShakeSimulationSimple(1, 50000.0, 3.0)
109@ = Char.GetCurrentWeapon($scplayer)
if 
  Char.HasGotWeapon($scplayer, WeaponType.BrassKnuckles)
goto_if_false @MANSIO1_2905
Char.RemoveWeapon($scplayer, WeaponType.BrassKnuckles)
110@ = 1
Streaming.RequestModel(331)

:MANSIO1_2871
if 
  not Streaming.HasModelLoaded(331)
goto_if_false @MANSIO1_2898
wait 0
goto @MANSIO1_2871

:MANSIO1_2898
goto @MANSIO1_2912

:MANSIO1_2905
110@ = 0

:MANSIO1_2912
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Camera.DoFade(500, Fade.In)

:MANSIO1_2926
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_2950
wait 0
goto @MANSIO1_2926

:MANSIO1_2950
skip_cutscene_start_internal @MANSIO1_4063
45@ = Sequence.Open()
Task.StandStill(-1, 1500)
Task.GoStraightToCoord(-1, 1598.05, -784.5205, 349.0, MoveState.Walk, -1)
Task.AchieveHeading(-1, 257.9061)
Task.StayInSamePlace(-1, True)
Task.UseMobilePhone(-1, True)
Sequence.Close(45@)
Char.PerformSequence($scplayer, 45@)
Sequence.Clear(45@)
set_lvar_text_label 76@s = 'MKND02A'
set_lvar_int_to_constant 55@ = 19406
set_lvar_int_to_var_int 65@ = $scplayer
set_lvar_text_label 78@s = 'MKND02B'
set_lvar_int_to_constant 56@ = 19413
66@ = -1
set_lvar_text_label 80@s = 'MKND02C'
set_lvar_int_to_constant 57@ = 19407
set_lvar_int_to_var_int 67@ = $scplayer
set_lvar_text_label 82@s = 'MKND02D'
set_lvar_int_to_constant 58@ = 19414
68@ = -1
set_lvar_text_label 84@s = 'MKND02E'
set_lvar_int_to_constant 59@ = 19415
69@ = -1
set_lvar_text_label 86@s = 'MKND02F'
set_lvar_int_to_constant 60@ = 19416
70@ = -1
set_lvar_text_label 88@s = 'MKND02G'
set_lvar_int_to_constant 61@ = 19408
set_lvar_int_to_var_int 71@ = $scplayer
set_lvar_text_label 90@s = 'MKND02H'
set_lvar_int_to_constant 62@ = 19417
72@ = -1
set_lvar_text_label 92@s = 'MKND02J'
set_lvar_int_to_constant 63@ = 19418
73@ = -1
set_lvar_text_label 94@s = 'MKND02K'
set_lvar_int_to_constant 64@ = 19409
set_lvar_int_to_var_int 74@ = $scplayer
75@ = 0

:MANSIO1_3332
if 
  46@ == 0
goto_if_false @MANSIO1_3369
wait 0
46@ = Char.GetSequenceProgress($scplayer)
goto @MANSIO1_3332

:MANSIO1_3369
set_var_int_to_constant $load_sample = 23803
set_var_text_label s$load_text = 'MOBRING'
start_new_script @A_ALAP 0 99 

:MANSIO1_3403
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @MANSIO1_3436
wait 0
goto @MANSIO1_3403

:MANSIO1_3436
$SLOT_status($preload_slot,2i) = -4
46@ = Char.GetSequenceProgress($scplayer)

:MANSIO1_3455
if 
  46@ <> 4
goto_if_false @MANSIO1_3492
wait 0
46@ = Char.GetSequenceProgress($scplayer)
goto @MANSIO1_3455

:MANSIO1_3492
wait 2250

:MANSIO1_3497
if 
  10 > 75@
goto_if_false @MANSIO1_3657
set_var_int_to_lvar_int $load_sample = 55@(75@,10i)
set_var_text_label s$load_text = 76@(75@,10s)
if 
  65@(75@,10i) <> -1
goto_if_false @MANSIO1_3587
start_new_script @A_ALAP 2 100 65@(75@,10i) 
goto @MANSIO1_3599

:MANSIO1_3587
start_new_script @A_ALAP 0 100 

:MANSIO1_3599
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @MANSIO1_3632
wait 0
goto @MANSIO1_3599

:MANSIO1_3632
$SLOT_status($preload_slot,2i) = -4
75@ += 1
goto @MANSIO1_3497

:MANSIO1_3657
if or
  $SLOT_status($current_slot,2i) <> -4
  $SLOT_status($preload_slot,2i) <> -4
goto_if_false @MANSIO1_3701
wait 0
goto @MANSIO1_3657

:MANSIO1_3701
Task.UseMobilePhone($scplayer, False)
wait 2000
if 
  not Char.IsDead(133@)
goto_if_false @MANSIO1_3745
Task.TurnCharToFaceChar($scplayer, 133@)
Task.TurnCharToFaceChar(133@, $scplayer)

:MANSIO1_3745
set_var_int_to_constant $load_sample = 9408
set_var_text_label s$load_text = 'MAN1_CA'
start_new_script @A_ALAP 1 100 $scplayer 

:MANSIO1_3782
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @MANSIO1_3815
wait 0
goto @MANSIO1_3782

:MANSIO1_3815
$SLOT_status($preload_slot,2i) = -4
set_var_int_to_constant $load_sample = 9413
set_var_text_label s$load_text = 'MAN1_CB'
start_new_script @A_ALAP 2 100 133@ 

:MANSIO1_3863
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @MANSIO1_3896
wait 0
goto @MANSIO1_3863

:MANSIO1_3896
$SLOT_status($preload_slot,2i) = -4
set_var_int_to_constant $load_sample = 9409
set_var_text_label s$load_text = 'MAN1_CC'
start_new_script @A_ALAP 1 100 $scplayer 

:MANSIO1_3944
if or
  $SLOT_status($current_slot,2i) <> -4
  $SLOT_status($preload_slot,2i) <> -4
goto_if_false @MANSIO1_3988
wait 0
goto @MANSIO1_3944

:MANSIO1_3988
TIMERA = 0

:MANSIO1_3995
if 
  1000 > TIMERA
goto_if_false @MANSIO1_4025
wait 0
goto @MANSIO1_3995

:MANSIO1_4025
Camera.DoFade(500, Fade.Out)

:MANSIO1_4032
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_4056
wait 0
goto @MANSIO1_4032

:MANSIO1_4056
49@ = 1

:MANSIO1_4063
skip_cutscene_end 
Text.ClearPrints
Camera.DoFade(0, Fade.Out)

:MANSIO1_4073
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_4097
wait 0
goto @MANSIO1_4073

:MANSIO1_4097
if 
  110@ == 1
goto_if_false @MANSIO1_4129
Char.GiveWeapon($scplayer, WeaponType.BrassKnuckles, 1)
Streaming.MarkModelAsNoLongerNeeded(331)

:MANSIO1_4129
Char.SetCurrentWeapon($scplayer, 109@)
Camera.ResetNewScriptables
Char.ClearTasksImmediately($scplayer)
Streaming.MarkModelAsNoLongerNeeded(330)
if 
  $SLOT_status[0] >= 0
goto_if_false @MANSIO1_4174
$SLOT_status[0] = -2

:MANSIO1_4174
if 
  $SLOT_status[0] >= 0
goto_if_false @MANSIO1_4199
$SLOT_status[1] = -2

:MANSIO1_4199
Char.SetCoordinates($scplayer, 1096.562, -825.7372, 85.9453)
if 
  49@ == 0
goto_if_false @MANSIO1_4244
goto @MANSIO1_5657

:MANSIO1_4244
49@ = 0
$play_open_timer = 1347.407
$ai_target_x = -811.7421
$ai_target_y = 96.9707
Camera.SetFixedPosition(1385.568, -810.5753, 78.1164, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1385.498, -809.579, 78.0669, SwitchType.JumpCut)
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
Streaming.LoadScene(1385.568, -810.5753, 78.1164)
TIMERA = 0

:MANSIO1_4398
if 
  800 > TIMERA
goto_if_false @MANSIO1_4428
wait 0
goto @MANSIO1_4398

:MANSIO1_4428
Camera.DoFade(500, Fade.In)
99@ = Char.Create(PedType.Mission1, 117, 1485.536, -818.0389, 130.0)
Char.SetHeading(99@, 90.0)
Char.SetAreaVisible(99@, 0)
StreamedScript.StartNew(1, -1, -25.0, 10.0, -3.0, -1.0, 5.0, 6.5, 1, 99@)
StreamedScript.Stream(1)
skip_cutscene_start_internal @MANSIO1_4864
TIMERA = 0

:MANSIO1_4536
if 
  1000 > TIMERA
goto_if_false @MANSIO1_4572
wait 0
Clock.SetTimeOfDay(3, 0)
goto @MANSIO1_4536

:MANSIO1_4572
TIMERA = 0
111@ = 0
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(1385.568, -810.5753, 78.1164, 1368.495, -855.6013, 75.1238, 12000, True)
Camera.SetVectorTrack(1385.498, -809.579, 78.0669, 1369.012, -854.7825, 75.3725, 12000, True)

:MANSIO1_4670
if 
  14000 > TIMERA
goto_if_false @MANSIO1_4826
wait 0
if and
  111@ == 0
  TIMERA > 3000
goto_if_false @MANSIO1_4813
100@ = Char.Create(PedType.Mission1, 118, 1485.536, -818.0389, 130.0)
Char.SetHeading(100@, 90.0)
Char.SetAreaVisible(100@, 0)
StreamedScript.StartNew(1, -1, -25.0, 10.0, -3.0, -1.0, 5.0, 6.5, 1, 100@)
StreamedScript.Stream(1)
111@ = 1

:MANSIO1_4813
Clock.SetTimeOfDay(3, 0)
goto @MANSIO1_4670

:MANSIO1_4826
Camera.DoFade(1000, Fade.Out)

:MANSIO1_4833
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_4857
wait 0
goto @MANSIO1_4833

:MANSIO1_4857
49@ = 1

:MANSIO1_4864
skip_cutscene_end 
Camera.DoFade(0, Fade.Out)

:MANSIO1_4872
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_4896
wait 0
goto @MANSIO1_4872

:MANSIO1_4896
Camera.ResetNewScriptables
Camera.RestoreJumpcut
if 
  49@ == 0
goto_if_false @MANSIO1_4925
goto @MANSIO1_5657

:MANSIO1_4925
49@ = 0
115@ = 35.0
116@ = 20.0
114@ = 100.2
$play_open_timer = 1291.266
$ai_target_x = -788.1172
$ai_target_y = 96.7736
117@ = 1291.153
118@ = -788.1339
119@ = 95.0
Streaming.LoadSceneInDirection(1291.266, -788.1172, 96.7736, 122.0)
Streaming.RequestModel(#OPMANS01_CUNTE)
Streaming.RequestModel(#CEHOLLYHIL06)
Streaming.RequestModel(#SUNSET22_LAWN)

:MANSIO1_5059
if or
  not Streaming.HasModelLoaded(#OPMANS01_CUNTE)
  not Streaming.HasModelLoaded(#CEHOLLYHIL06)
  not Streaming.HasModelLoaded(#SUNSET22_LAWN)
goto_if_false @MANSIO1_5096
wait 0
goto @MANSIO1_5059

:MANSIO1_5096
167@ = 2
TIMERA = 0

:MANSIO1_5110
if 
  500 > TIMERA
goto_if_false @MANSIO1_5147
wait 0
gosub @MANSIO1_10537
goto @MANSIO1_5110

:MANSIO1_5147
124@ = Particle.Create("SMOKE_FLARE", 1291.454, -775.3071, 95.5, 1)
125@ = Particle.Create("SMOKE_FLARE", 1303.211, -788.2426, 95.5, 1)
126@ = Particle.Create("SMOKE_FLARE", 1291.159, -800.4006, 95.5, 1)
101@ = Char.Create(PedType.Mission1, 118, 1323.17, -783.7548, 117.0)
Char.SetHeading(101@, 90.0)
Char.SetAreaVisible(101@, 0)
Char.GiveWeapon(101@, WeaponType.M4, 30000)
StreamedScript.StartNew(1, -1, -2.0, 1.0, -3.0, -1.0, 1.5, 3.2, 1, 101@)
StreamedScript.Stream(1)
Char.SetVelocity(101@, 0.0, 0.0, 2.0)
Char.SetDecisionMaker(101@, 34@)
102@ = Char.Create(PedType.Mission1, 117, 1323.442, -798.6427, 120.0)
Char.SetHeading(102@, 90.0)
Char.SetAreaVisible(102@, 0)
Char.GiveWeapon(102@, WeaponType.M4, 30000)
StreamedScript.StartNew(1, -1, -2.0, 1.0, -3.0, -1.0, 1.0, 2.5, 1, 102@)
StreamedScript.Stream(1)
Char.SetVelocity(102@, 0.0, 0.0, 2.0)
Char.SetDecisionMaker(102@, 34@)
Camera.DoFade(1000, Fade.In)

:MANSIO1_5509
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_5547
wait 0
gosub @MANSIO1_10537
gosub @MANSIO1_18623
goto @MANSIO1_5509

:MANSIO1_5547
skip_cutscene_start_internal @MANSIO1_5655
TIMERA = 0

:MANSIO1_5561
if 
  8 > 107@
goto_if_false @MANSIO1_5624
wait 0
gosub @MANSIO1_9333
gosub @MANSIO1_10132
Clock.SetTimeOfDay(3, 0)
gosub @MANSIO1_10537
gosub @MANSIO1_18623
goto @MANSIO1_5561

:MANSIO1_5624
Camera.DoFade(500, Fade.Out)

:MANSIO1_5631
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_5655
wait 0
goto @MANSIO1_5631

:MANSIO1_5655
skip_cutscene_end 

:MANSIO1_5657
Camera.DoFade(0, Fade.Out)

:MANSIO1_5663
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_5687
wait 0
goto @MANSIO1_5663

:MANSIO1_5687
Streaming.MarkModelAsNoLongerNeeded(#OPMANS01_CUNTE)
Streaming.MarkModelAsNoLongerNeeded(#CEHOLLYHIL06)
Camera.ResetNewScriptables
Camera.RestoreJumpcut
Particle.Play(124@)
Particle.Play(125@)
Particle.Play(126@)
$play_open_timer = 1291.266
$ai_target_x = -788.1172
$ai_target_y = 96.7736
Streaming.RequestModel(371)
Streaming.RequestModel(#CARDBOARDBOX2)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 1818)

:MANSIO1_5763
if or
  not Streaming.HasModelLoaded(371)
  not Streaming.HasModelLoaded(#CARDBOARDBOX2)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @MANSIO1_5813
wait 0
167@ = 4
gosub @MANSIO1_10537
goto @MANSIO1_5763

:MANSIO1_5813
set_lvar_text_label 76@s = 'MAN1_DA'
set_lvar_int_to_constant 55@ = 9414
set_lvar_int_to_lvar_int 65@ = 131@
set_lvar_text_label 78@s = 'MAN1_DB'
set_lvar_int_to_constant 56@ = 9415
set_lvar_int_to_lvar_int 66@ = 132@
set_lvar_text_label 80@s = 'MAN1_DC'
set_lvar_int_to_constant 57@ = 9416
set_lvar_int_to_lvar_int 67@ = 131@
set_lvar_text_label 82@s = 'MAN1_DD'
set_lvar_int_to_constant 58@ = 9417
set_lvar_int_to_lvar_int 68@ = 132@
set_lvar_text_label 84@s = 'MAN1_DE'
set_lvar_int_to_constant 59@ = 9418
set_lvar_int_to_lvar_int 69@ = 131@
set_lvar_text_label 86@s = 'MAN1_DF'
set_lvar_int_to_constant 60@ = 9419
set_lvar_int_to_lvar_int 70@ = 132@
set_lvar_text_label 88@s = 'MAN1_DG'
set_lvar_int_to_constant 61@ = 9420
set_lvar_int_to_lvar_int 71@ = 132@
set_lvar_text_label 90@s = 'MAN1_DH'
set_lvar_int_to_constant 62@ = 9410
set_lvar_int_to_lvar_int 72@ = 133@
set_lvar_text_label 92@s = 'MAN1_DJ'
set_lvar_int_to_constant 63@ = 9411
set_lvar_int_to_lvar_int 73@ = 134@
129@ = Object.CreateNoOffset(#CARDBOARDBOX2, 1601.759, -785.1198, 349.95)
Object.SetHeading(129@, 90.0)
Object.FreezePosition(129@, True)
Object.SetVisible(129@, False)
Object.SetCollision(129@, False)
Camera.RestoreJumpcut
Char.AttachToObject($scplayer, 129@, 0.0, 0.0, 0.0, 0, 40.0, WeaponType.Unarmed)
157@ = 0
Streaming.LoadScene(1601.759, -785.1198, 351.0)
Char.MarkAsNoLongerNeeded(159@)
Pad.SetPlayerDuckButton($player1, False)
Pad.SetPlayerJumpButton($player1, False)
Pad.SetPlayerFireButton($player1, False)
Hud.SwitchWidescreen(False)
Hud.DisplayRadar(False)
Hud.Display(False)
222@ = 2000
221@ = 0
220@ = 0.0
TIMERA = 0

:MANSIO1_6265
if 
  500 > TIMERA
goto_if_false @MANSIO1_6302
wait 0
gosub @MANSIO1_10537
goto @MANSIO1_6265

:MANSIO1_6302
Weather.ForceNow(WeatherType.ExtraSunnyLa)
Player.SetControl($player1, True)
Camera.DoFade(500, Fade.In)

:MANSIO1_6320
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_6351
wait 0
gosub @MANSIO1_10537
goto @MANSIO1_6320

:MANSIO1_6351
TIMERA = 0
156@ = 0
75@ = 0

:MANSIO1_6372
if 
  5 > 75@
goto_if_false @MANSIO1_6627
wait 0
gosub @MANSIO1_10537
if 
  TIMERA > 1000
goto_if_false @MANSIO1_6427
gosub @MANSIO1_18875

:MANSIO1_6427
switch_start 156@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_6620 {caseNum1} 0 {caseLabel1} @MANSIO1_6490 {caseNum2} 1 {caseLabel2} @MANSIO1_6516 {caseNum3} 2 {caseLabel3} @MANSIO1_6566 {caseNum4} -1 {caseLabel4} @MANSIO1_6620 {caseNum5} -1 {caseLabel5} @MANSIO1_6620 {caseNum6} -1 {caseLabel6} @MANSIO1_6620 {caseNum7} -1 {caseLabel7} @MANSIO1_6620

:MANSIO1_6490
if 
  TIMERA <= 800
goto_if_false @MANSIO1_6516
goto @MANSIO1_6620

:MANSIO1_6516
set_var_int_to_lvar_int $load_sample = 55@(75@,10i)
set_var_text_label s$load_text = 76@(75@,10s)
start_new_script @A_ALAP 2 100 65@(75@,10i) 
156@ = 2

:MANSIO1_6566
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @MANSIO1_6595
goto @MANSIO1_6620

:MANSIO1_6595
$SLOT_status($preload_slot,2i) = -4
75@ += 1
156@ = 1

:MANSIO1_6620
goto @MANSIO1_6372

:MANSIO1_6627
TIMERA = 0
41@ = Clock.GetGameTimer()

:MANSIO1_6639
wait 0
40@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 158@ += 42@
43@ = 0

:MANSIO1_6687
if 
  4 > 43@
goto_if_false @MANSIO1_6731
add_int_lvar_to_int_lvar 160@(43@,4i) += 42@
43@ += 1
goto @MANSIO1_6687

:MANSIO1_6731
gosub @MANSIO1_7365
gosub @MANSIO1_10822
gosub @MANSIO1_10537
if 
  4 > 157@
goto_if_false @MANSIO1_6783
Clock.SetTimeOfDay(3, 0)
goto @MANSIO1_6847

:MANSIO1_6783
157@ = 0
World.SwitchEntryExit('MADDOGS', False)
World.SwitchEntryExit('MDDOGS', False)
51@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 1292.7, -769.0, 95.8)
goto @MANSIO1_6854

:MANSIO1_6847
goto @MANSIO1_6639

:MANSIO1_6854
168@ = 4
set_lvar_int_to_constant 182@ = 108
set_lvar_int_to_constant 183@ = 109
set_lvar_int_to_constant 184@ = 108
set_lvar_int_to_constant 185@ = 109

:MANSIO1_6889
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MANSIO1_6915
goto @MANSIO1_38560

:MANSIO1_6915
if 
  52@ == 1
goto_if_false @MANSIO1_6940
goto @MANSIO1_38488

:MANSIO1_6940
40@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 158@ += 42@
43@ = 0

:MANSIO1_6984
if 
  3 > 43@
goto_if_false @MANSIO1_7040
add_int_lvar_to_int_lvar 160@(43@,4i) += 42@
add_int_lvar_to_int_lvar 164@(43@,3i) += 42@
43@ += 1
goto @MANSIO1_6984

:MANSIO1_7040
add_int_lvar_to_int_lvar 163@ += 42@
43@ = 0

:MANSIO1_7055
if 
  6 > 43@
goto_if_false @MANSIO1_7099
add_int_lvar_to_int_lvar 188@(43@,6i) += 42@
43@ += 1
goto @MANSIO1_7055

:MANSIO1_7099
gosub @MANSIO1_7776
gosub @MANSIO1_10822
if 
  157@ > 5
goto_if_false @MANSIO1_7138
gosub @MANSIO1_12648

:MANSIO1_7138
if 
  2 > 206@
goto_if_false @MANSIO1_7170
gosub @MANSIO1_16769
goto @MANSIO1_7177

:MANSIO1_7170
gosub @MANSIO1_14197

:MANSIO1_7177
211@ = 0
48@ = Streaming.GetAreaVisible()
if 
  48@ <> 0
goto_if_false @MANSIO1_7358
if 
  Char.LocateOnFoot2D($scplayer, 1257.995, -785.4104, 5.0, 5.0, False)
goto_if_false @MANSIO1_7358
48@ = 0

:MANSIO1_7252
if 
  48@ == 0
goto_if_false @MANSIO1_7289
48@ = Char.GetAreaVisible($scplayer)
wait 0
goto @MANSIO1_7252

:MANSIO1_7289
Camera.DoFade(0, Fade.Out)

:MANSIO1_7295
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_7319
wait 0
goto @MANSIO1_7295

:MANSIO1_7319
World.ClearAreaOfChars(1288.0, -772.0, 1080.0, 1260.5, -787.5, 1100.0)
goto @MANSIO1_19435

:MANSIO1_7358
goto @MANSIO1_6889

:MANSIO1_7365
switch_start 157@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_7774 {caseNum1} 0 {caseLabel1} @MANSIO1_7428 {caseNum2} 1 {caseLabel2} @MANSIO1_7538 {caseNum3} 2 {caseLabel3} @MANSIO1_7556 {caseNum4} 3 {caseLabel4} @MANSIO1_7633 {caseNum5} -1 {caseLabel5} @MANSIO1_7774 {caseNum6} -1 {caseLabel6} @MANSIO1_7774 {caseNum7} -1 {caseLabel7} @MANSIO1_7774

:MANSIO1_7428
if 
  TIMERA > 8300
goto_if_false @MANSIO1_7531
Char.DetachFromCar($scplayer)
Player.SetControl($player1, False)
Task.GoToCoordAnyMeans($scplayer, 1584.292, -784.9141, 347.0, 7, -1)
if 
  not Char.HasGotWeapon($scplayer, WeaponType.Parachute)
goto_if_false @MANSIO1_7510
Char.GiveWeapon($scplayer, WeaponType.Parachute, 1)

:MANSIO1_7510
Char.SetCurrentWeapon($scplayer, WeaponType.Parachute)
221@ = 2
157@ += 1

:MANSIO1_7531
goto @MANSIO1_7774

:MANSIO1_7538
Camera.RestoreJumpcut
Camera.SetBehindPlayer
157@ += 1
goto @MANSIO1_7774

:MANSIO1_7556
if 
  Char.LocateOnFoot2D($scplayer, 1584.292, -784.9141, 2.75, 2.75, False)
goto_if_false @MANSIO1_7626
Task.Jump($scplayer, True)
158@ = 0
221@ = 3
Camera.Shake(0)
157@ += 1

:MANSIO1_7626
goto @MANSIO1_7774

:MANSIO1_7633
if 
  158@ > 700
goto_if_false @MANSIO1_7767
158@ = 0
Hud.DisplayZoneNames(True)
Object.Delete(127@)
Object.Delete(128@)
Object.Delete(129@)
Streaming.MarkModelAsNoLongerNeeded(#CARGO_REAR)
Streaming.MarkModelAsNoLongerNeeded(#D9_RAMP)
Player.SetControl($player1, True)
Pad.SetPlayerDuckButton($player1, True)
Pad.SetPlayerJumpButton($player1, True)
Pad.SetPlayerFireButton($player1, True)
Hud.DisplayRadar(True)
Hud.Display(True)
Text.PrintNow('MAN1_03', 8000, 1)
47@ = Blip.AddForCoord(1290.491, -788.3314, 95.4531)
157@ += 1

:MANSIO1_7767
goto @MANSIO1_7774

:MANSIO1_7774
return 

:MANSIO1_7776
switch_start 157@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_9331 {caseNum1} 0 {caseLabel1} @MANSIO1_7904 {caseNum2} 1 {caseLabel2} @MANSIO1_7968 {caseNum3} 2 {caseLabel3} @MANSIO1_7998 {caseNum4} 3 {caseLabel4} @MANSIO1_8216 {caseNum5} 4 {caseLabel5} @MANSIO1_8262 {caseNum6} 5 {caseLabel6} @MANSIO1_8315 {caseNum7} 6 {caseLabel7} @MANSIO1_8964
switch_continued 7 {caseLabel1} @MANSIO1_9081 {caseNum2} 8 {caseLabel2} @MANSIO1_9150 {caseNum3} 9 {caseLabel3} @MANSIO1_9211 {caseNum4} 10 {caseLabel4} @MANSIO1_9271 {caseNum5} -1 {caseLabel5} @MANSIO1_9331 {caseNum6} -1 {caseLabel6} @MANSIO1_9331 {caseNum7} -1 {caseLabel7} @MANSIO1_9331 {caseNum8} -1 {caseLabel8} @MANSIO1_9331 {caseNum9} -1 {caseLabel9} @MANSIO1_9331

:MANSIO1_7904
if 
  $player_landed == 2
goto_if_false @MANSIO1_7936
157@ = 2
goto @MANSIO1_7961

:MANSIO1_7936
if 
  $player_landed == 3
goto_if_false @MANSIO1_7961
157@ += 1

:MANSIO1_7961
goto @MANSIO1_9331

:MANSIO1_7968
if 
  not Char.IsInAir($scplayer)
goto_if_false @MANSIO1_7991
157@ += 1

:MANSIO1_7991
goto @MANSIO1_9331

:MANSIO1_7998
208@ = 0
gosub @MANSIO1_17063
if 
  not Char.IsDead($scplayer)
goto_if_false @MANSIO1_8131
if 
  210@ <> -1
goto_if_false @MANSIO1_8108
if 
  6 > 210@
goto_if_false @MANSIO1_8078
157@ = 5
goto @MANSIO1_8101

:MANSIO1_8078
Text.PrintNow('MAN1_04', 8000, 1)
157@ = 4

:MANSIO1_8101
goto @MANSIO1_8131

:MANSIO1_8108
Text.PrintNow('MAN1_04', 8000, 1)
157@ = 3

:MANSIO1_8131
43@ = 0

:MANSIO1_8138
if 
  4 > 43@
goto_if_false @MANSIO1_8209
if 
  not Char.IsDead(170@(43@,6i))
goto_if_false @MANSIO1_8195
Char.SetProofs(170@(43@,6i), False, False, False, False, False)

:MANSIO1_8195
43@ += 1
goto @MANSIO1_8138

:MANSIO1_8209
goto @MANSIO1_9331

:MANSIO1_8216
208@ = 0
gosub @MANSIO1_17063
if 
  210@ <> -1
goto_if_false @MANSIO1_8255
157@ += 1

:MANSIO1_8255
goto @MANSIO1_9331

:MANSIO1_8262
208@ = 0
gosub @MANSIO1_17063
if and
  210@ <> -1
  6 > 210@
goto_if_false @MANSIO1_8308
157@ += 1

:MANSIO1_8308
goto @MANSIO1_9331

:MANSIO1_8315
Blip.Remove(47@)
if 
  168@ == 0
goto_if_false @MANSIO1_8361
Text.PrintNow('MAN1_06', 8000, 1)
goto @MANSIO1_8377

:MANSIO1_8361
Text.PrintNow('MAN1_05', 8000, 1)

:MANSIO1_8377
Player.ClearWantedLevel($player1)
Game.SetMaxWantedLevel(0)
143@ = Char.Create(PedType.Mission1, 117, 1000.0, -785.0, 200.0)
Char.SetHeading(143@, 270.0)
Char.SetAreaVisible(143@, 0)
146@ = Blip.AddForChar(143@)
Blip.ChangeDisplay(146@, BlipDisplay.BlipOnly)
Blip.SetAsFriendly(146@, True)
Char.GiveWeapon(143@, WeaponType.M4, 30000)
Char.SetCurrentWeapon(143@, WeaponType.M4)
Char.SetNeverTargeted(143@, True)
Char.SetDecisionMaker(143@, 34@)
149@ = 0
164@ = 0
StreamedScript.StartNew(1, -1, -26.0, 14.0, -3.0, -1.0, 5.25, 6.75, 1, 143@)
StreamedScript.Stream(1)
144@ = Char.Create(PedType.Mission1, 118, 1000.0, -770.0, 200.0)
Char.SetHeading(144@, 270.0)
Char.SetAreaVisible(144@, 0)
147@ = Blip.AddForChar(144@)
Blip.ChangeDisplay(147@, BlipDisplay.BlipOnly)
Blip.SetAsFriendly(147@, True)
Char.GiveWeapon(144@, WeaponType.M4, 30000)
Char.SetCurrentWeapon(144@, WeaponType.M4)
Char.SetNeverTargeted(144@, True)
Char.SetDecisionMaker(144@, 34@)
150@ = 0
165@ = 0
StreamedScript.StartNew(1, -1, -26.0, 14.0, -3.0, -1.0, 5.25, 6.75, 1, 144@)
StreamedScript.Stream(1)
145@ = Char.Create(PedType.Mission1, 117, 1000.0, -800.0, 200.0)
Char.SetHeading(145@, 270.0)
Char.SetAreaVisible(145@, 0)
148@ = Blip.AddForChar(145@)
Blip.ChangeDisplay(148@, BlipDisplay.BlipOnly)
Blip.SetAsFriendly(148@, True)
Char.GiveWeapon(145@, WeaponType.M4, 30000)
Char.SetCurrentWeapon(145@, WeaponType.M4)
Char.SetNeverTargeted(145@, True)
Char.SetDecisionMaker(145@, 34@)
151@ = 0
166@ = 0
StreamedScript.StartNew(1, -1, -26.0, 14.0, -3.0, -1.0, 5.25, 6.75, 1, 145@)
StreamedScript.Stream(1)
169@ = 0
if 
  not Char.IsDead(131@)
goto_if_false @MANSIO1_8881
Char.SetHealth(131@, 20)

:MANSIO1_8881
if 
  not Char.IsDead(132@)
goto_if_false @MANSIO1_8904
Char.SetHealth(132@, 40)

:MANSIO1_8904
if 
  not Char.IsDead(133@)
goto_if_false @MANSIO1_8927
Char.SetHealth(133@, 30)

:MANSIO1_8927
if 
  not Char.IsDead(134@)
goto_if_false @MANSIO1_8950
Char.SetHealth(134@, 25)

:MANSIO1_8950
157@ += 1
goto @MANSIO1_9331

:MANSIO1_8964
if 
  169@ == 3
goto_if_false @MANSIO1_9074
208@ = 0
gosub @MANSIO1_17063
if and
  6 > 210@
  210@ <> -1
goto_if_false @MANSIO1_9051
Text.PrintNow('MAN1_09', 8000, 1)
157@ = 8
goto @MANSIO1_9074

:MANSIO1_9051
Text.PrintNow('MAN1_10', 8000, 1)
157@ = 7

:MANSIO1_9074
goto @MANSIO1_9331

:MANSIO1_9081
208@ = 0
gosub @MANSIO1_17063
if and
  6 > 210@
  210@ <> -1
goto_if_false @MANSIO1_9143
Text.PrintNow('MAN1_09', 8000, 1)
157@ = 8

:MANSIO1_9143
goto @MANSIO1_9331

:MANSIO1_9150
gosub @MANSIO1_13336
206@ = 3
47@ = Blip.AddForCoord(1257.995, -785.4104, 91.0302)
World.SwitchEntryExit('MADDOGS', True)
157@ += 1
goto @MANSIO1_9331

:MANSIO1_9211
208@ = 0
gosub @MANSIO1_17063
if or
  210@ == -1
  210@ > 10
goto_if_false @MANSIO1_9264
gosub @MANSIO1_13440
157@ += 1

:MANSIO1_9264
goto @MANSIO1_9331

:MANSIO1_9271
208@ = 0
gosub @MANSIO1_17063
if and
  210@ <> -1
  10 >= 210@
goto_if_false @MANSIO1_9324
gosub @MANSIO1_13336
157@ -= 1

:MANSIO1_9324
goto @MANSIO1_9331

:MANSIO1_9331
return 

:MANSIO1_9333
if 
  not Char.IsDead(101@)
goto_if_false @MANSIO1_10118
switch_start 107@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_10111 {caseNum1} 0 {caseLabel1} @MANSIO1_9477 {caseNum2} 1 {caseLabel2} @MANSIO1_9574 {caseNum3} 2 {caseLabel3} @MANSIO1_9713 {caseNum4} 3 {caseLabel4} @MANSIO1_9765 {caseNum5} 4 {caseLabel5} @MANSIO1_9887 {caseNum6} 5 {caseLabel6} @MANSIO1_9929 {caseNum7} 6 {caseLabel7} @MANSIO1_10025
switch_continued 7 {caseLabel1} @MANSIO1_10078 {caseNum2} -1 {caseLabel2} @MANSIO1_10111 {caseNum3} -1 {caseLabel3} @MANSIO1_10111 {caseNum4} -1 {caseLabel4} @MANSIO1_10111 {caseNum5} -1 {caseLabel5} @MANSIO1_10111 {caseNum6} -1 {caseLabel6} @MANSIO1_10111 {caseNum7} -1 {caseLabel7} @MANSIO1_10111 {caseNum8} -1 {caseLabel8} @MANSIO1_10111 {caseNum9} -1 {caseLabel9} @MANSIO1_10111

:MANSIO1_9477
if 
  Char.IsPlayingAnim(101@, "PARA_LAND")
goto_if_false @MANSIO1_9525
105@ = 1
107@ += 1
goto @MANSIO1_9567

:MANSIO1_9525
$x, $y, $z = Char.GetCoordinates(101@)
if 
  99.0 > $z
goto_if_false @MANSIO1_9567
218@ = 1

:MANSIO1_9567
goto @MANSIO1_10111

:MANSIO1_9574
if 
  not Char.IsPlayingAnim(101@, "PARA_LAND")
goto_if_false @MANSIO1_9706
45@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.GoStraightToCoord(-1, 1291.519, -776.0716, 95.4531, MoveState.Run, -1)
Task.StandStill(-1, 400)
Task.StandStill(-1, 400)
Task.GoStraightToCoord(-1, 1280.995, -780.3347, 95.461, MoveState.Run, -1)
Task.AchieveHeading(-1, 110.0)
Sequence.Close(45@)
Char.PerformSequence(101@, 45@)
Sequence.Clear(45@)
107@ += 1

:MANSIO1_9706
goto @MANSIO1_10111

:MANSIO1_9713
46@ = Char.GetSequenceProgress(101@)
if 
  46@ == 4
goto_if_false @MANSIO1_9758
Particle.Play(124@)
TIMERA = 0
107@ += 1

:MANSIO1_9758
goto @MANSIO1_10111

:MANSIO1_9765
if 
  TIMERA > 1500
goto_if_false @MANSIO1_9880
107@ += 1
159@ = Char.Create(PedType.Mission2, 108, 1281.413, -785.8877, 91.0302)
Char.SetHeading(159@, 90.0)
Char.SetAreaVisible(159@, 0)
Task.GoStraightToCoord(159@, 1268.337, -785.9549, 94.9688, MoveState.Walk, -1)
Char.SetDecisionMaker(159@, 34@)
Char.GiveWeapon(159@, WeaponType.Mp5, 1)
Char.SetCurrentWeapon(159@, WeaponType.Mp5)

:MANSIO1_9880
goto @MANSIO1_10111

:MANSIO1_9887
if 
  190.0 > 115@
goto_if_false @MANSIO1_9915
goto @MANSIO1_10111

:MANSIO1_9915
TIMERA = 0
107@ += 1

:MANSIO1_9929
if 
  TIMERA > 2000
goto_if_false @MANSIO1_10018
if 
  not Char.IsDead(159@)
goto_if_false @MANSIO1_9978
$x, $y, $z = Char.GetCoordinates(159@)

:MANSIO1_9978
$z += 1.0
Task.ShootAtCoord(101@, $x, $y, $z, 100)
TIMERA = 0
107@ += 1

:MANSIO1_10018
goto @MANSIO1_10111

:MANSIO1_10025
if 
  TIMERA > 50
goto_if_false @MANSIO1_10071
if 
  not Char.IsDead(159@)
goto_if_false @MANSIO1_10064
Char.ExplodeHead(159@)

:MANSIO1_10064
107@ += 1

:MANSIO1_10071
goto @MANSIO1_10111

:MANSIO1_10078
if 
  TIMERA > 2000
goto_if_false @MANSIO1_10104
107@ += 1

:MANSIO1_10104
goto @MANSIO1_10111

:MANSIO1_10111
goto @MANSIO1_10130

:MANSIO1_10118
Char.MarkAsNoLongerNeeded(101@)
107@ = -1

:MANSIO1_10130
return 

:MANSIO1_10132
if 
  not Char.IsDead(102@)
goto_if_false @MANSIO1_10523
switch_start 108@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_10516 {caseNum1} 0 {caseLabel1} @MANSIO1_10211 {caseNum2} 1 {caseLabel2} @MANSIO1_10259 {caseNum3} 2 {caseLabel3} @MANSIO1_10426 {caseNum4} 3 {caseLabel4} @MANSIO1_10471 {caseNum5} -1 {caseLabel5} @MANSIO1_10516 {caseNum6} -1 {caseLabel6} @MANSIO1_10516 {caseNum7} -1 {caseLabel7} @MANSIO1_10516

:MANSIO1_10211
if 
  Char.IsPlayingAnim(102@, "PARA_LAND")
goto_if_false @MANSIO1_10252
106@ = 1
108@ += 1

:MANSIO1_10252
goto @MANSIO1_10516

:MANSIO1_10259
if 
  not Char.IsPlayingAnim(102@, "PARA_LAND")
goto_if_false @MANSIO1_10419
45@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.GoStraightToCoord(-1, 1291.213, -799.4603, 95.4531, MoveState.Run, -1)
Task.StandStill(-1, 400)
Task.StandStill(-1, 400)
Task.GoStraightToCoord(-1, 1302.196, -788.2992, 95.4531, MoveState.Run, -1)
Task.StandStill(-1, 400)
Task.StandStill(-1, 400)
Task.GoStraightToCoord(-1, 1292.383, -787.4926, 95.4476, MoveState.Run, -1)
Sequence.Close(45@)
Char.PerformSequence(102@, 45@)
Sequence.Clear(45@)
108@ += 1

:MANSIO1_10419
goto @MANSIO1_10516

:MANSIO1_10426
46@ = Char.GetSequenceProgress(102@)
if 
  46@ == 3
goto_if_false @MANSIO1_10464
Particle.Play(126@)
108@ += 1

:MANSIO1_10464
goto @MANSIO1_10516

:MANSIO1_10471
46@ = Char.GetSequenceProgress(102@)
if 
  46@ == 6
goto_if_false @MANSIO1_10509
Particle.Play(125@)
108@ += 1

:MANSIO1_10509
goto @MANSIO1_10516

:MANSIO1_10516
goto @MANSIO1_10535

:MANSIO1_10523
Char.MarkAsNoLongerNeeded(102@)
108@ = -1

:MANSIO1_10535
return 

:MANSIO1_10537
43@ = 0

:MANSIO1_10544
if 
  is_int_lvar_greater_than_int_lvar 167@ > 43@
goto_if_false @MANSIO1_10820
if 
  103@(43@,4i) <> -1
goto_if_false @MANSIO1_10806
if 
  not Char.IsDead(99@(43@,4i))
goto_if_false @MANSIO1_10786
switch_start 103@(43@,4i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_10779 {caseNum1} 0 {caseLabel1} @MANSIO1_10672 {caseNum2} 1 {caseLabel2} @MANSIO1_10721 {caseNum3} -1 {caseLabel3} @MANSIO1_10779 {caseNum4} -1 {caseLabel4} @MANSIO1_10779 {caseNum5} -1 {caseLabel5} @MANSIO1_10779 {caseNum6} -1 {caseLabel6} @MANSIO1_10779 {caseNum7} -1 {caseLabel7} @MANSIO1_10779

:MANSIO1_10672
if 
  Char.IsPlayingAnim(99@(43@,4i), "PARA_LAND")
goto_if_false @MANSIO1_10714
103@(43@,4i) += 1

:MANSIO1_10714
goto @MANSIO1_10779

:MANSIO1_10721
if 
  not Char.IsPlayingAnim(99@(43@,4i), "PARA_LAND")
goto_if_false @MANSIO1_10772
Task.Die(99@(43@,4i))
103@(43@,4i) += 1

:MANSIO1_10772
goto @MANSIO1_10779

:MANSIO1_10779
goto @MANSIO1_10806

:MANSIO1_10786
Char.MarkAsNoLongerNeeded(99@(43@,4i))
103@(43@,4i) = -1

:MANSIO1_10806
43@ += 1
goto @MANSIO1_10544

:MANSIO1_10820
return 

:MANSIO1_10822
43@ = 0

:MANSIO1_10829
if 
  4 > 43@
goto_if_false @MANSIO1_11979
if 
  135@(43@,4i) <> -1
goto_if_false @MANSIO1_11965
if 
  not Char.IsDead(131@(43@,4i))
goto_if_false @MANSIO1_11938
switch_start 135@(43@,4i) {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_11931 {caseNum1} 0 {caseLabel1} @MANSIO1_11021 {caseNum2} 1 {caseLabel2} @MANSIO1_11209 {caseNum3} 2 {caseLabel3} @MANSIO1_11223 {caseNum4} 3 {caseLabel4} @MANSIO1_11293 {caseNum5} 4 {caseLabel5} @MANSIO1_11320 {caseNum6} 5 {caseLabel6} @MANSIO1_11388 {caseNum7} 6 {caseLabel7} @MANSIO1_11437
switch_continued 7 {caseLabel1} @MANSIO1_11549 {caseNum2} 8 {caseLabel2} @MANSIO1_11648 {caseNum3} 9 {caseLabel3} @MANSIO1_11740 {caseNum4} 10 {caseLabel4} @MANSIO1_11839 {caseNum5} -1 {caseLabel5} @MANSIO1_11931 {caseNum6} -1 {caseLabel6} @MANSIO1_11931 {caseNum7} -1 {caseLabel7} @MANSIO1_11931 {caseNum8} -1 {caseLabel8} @MANSIO1_11931 {caseNum9} -1 {caseLabel9} @MANSIO1_11931

:MANSIO1_11021
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 139@(43@,4i)
goto_if_false @MANSIO1_11202
if or
  43@ == 0
  43@ == 2
goto_if_false @MANSIO1_11104
Task.GoToCoordAnyMeans(131@(43@,4i), 1585.293, -786.5728, 347.0, 6, -1)
goto @MANSIO1_11191

:MANSIO1_11104
if 
  43@ == 1
goto_if_false @MANSIO1_11163
set_var_int_to_constant $load_sample = 9419
set_var_text_label s$load_text = 'MAN1_DF'
start_new_script @A_ALAP 2 100 65@(75@,10i) 

:MANSIO1_11163
Task.GoToCoordAnyMeans(131@(43@,4i), 1585.323, -783.2303, 347.0, 6, -1)

:MANSIO1_11191
135@(43@,4i) += 1

:MANSIO1_11202
goto @MANSIO1_11931

:MANSIO1_11209
gosub @MANSIO1_11981
goto @MANSIO1_11931

:MANSIO1_11223
if 
  160@(43@,4i) > 1200
goto_if_false @MANSIO1_11286
Char.DropObject(131@(43@,4i), False)
160@(43@,4i) = 0
gosub @MANSIO1_12371
135@(43@,4i) += 1

:MANSIO1_11286
goto @MANSIO1_11931

:MANSIO1_11293
Object.Delete(152@(43@,4i))
135@(43@,4i) += 1
goto @MANSIO1_11931

:MANSIO1_11320
if 
  160@(43@,4i) >= 40000
goto_if_false @MANSIO1_11381
if 
  43@ == 0
goto_if_false @MANSIO1_11370
gosub @MANSIO1_13530

:MANSIO1_11370
135@(43@,4i) += 1

:MANSIO1_11381
goto @MANSIO1_11931

:MANSIO1_11388
if 
  Char.IsPlayingAnim(131@(43@,4i), "PARA_LAND")
goto_if_false @MANSIO1_11430
135@(43@,4i) += 1

:MANSIO1_11430
goto @MANSIO1_11931

:MANSIO1_11437
if 
  not Char.IsPlayingAnim(131@(43@,4i), "PARA_LAND")
goto_if_false @MANSIO1_11542
if 
  2 > 206@
goto_if_false @MANSIO1_11500
206@ = 2
gosub @MANSIO1_14039

:MANSIO1_11500
Char.SetProofs(131@(43@,4i), False, False, False, False, False)
set_lvar_int_to_lvar_int 135@(43@,4i) = 43@
135@(43@,4i) += 7

:MANSIO1_11542
goto @MANSIO1_11931

:MANSIO1_11549
Char.SetAllowedToDuck(131@, False)
45@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 1289.698, -771.6924, 94.954, 6, -1)
Task.AchieveHeading(-1, 100.0)
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, True)
Task.SetCharDecisionMaker(-1, 36@)
Sequence.Close(45@)
Char.PerformSequence(131@, 45@)
Sequence.Clear(45@)
135@(43@,4i) = 11
goto @MANSIO1_11931

:MANSIO1_11648
45@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 1285.824, -772.1167, 94.953, 6, -1)
Task.AchieveHeading(-1, 115.0)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.SetCharDecisionMaker(-1, 36@)
Sequence.Close(45@)
Char.PerformSequence(132@, 45@)
Sequence.Clear(45@)
135@(43@,4i) = 11
goto @MANSIO1_11931

:MANSIO1_11740
Char.SetAllowedToDuck(133@, False)
45@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 1277.87, -789.9062, 95.4531, 6, -1)
Task.AchieveHeading(-1, 90.0)
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, True)
Task.SetCharDecisionMaker(-1, 36@)
Sequence.Close(45@)
Char.PerformSequence(133@, 45@)
Sequence.Clear(45@)
135@(43@,4i) = 11
goto @MANSIO1_11931

:MANSIO1_11839
45@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 1278.609, -783.3164, 95.4531, 6, -1)
Task.AchieveHeading(-1, 95.0)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.SetCharDecisionMaker(-1, 36@)
Sequence.Close(45@)
Char.PerformSequence(134@, 45@)
Sequence.Clear(45@)
135@(43@,4i) = 11
goto @MANSIO1_11931

:MANSIO1_11931
goto @MANSIO1_11965

:MANSIO1_11938
Char.MarkAsNoLongerNeeded(131@(43@,4i))
168@ -= 1
135@(43@,4i) = -1

:MANSIO1_11965
43@ += 1
goto @MANSIO1_10829

:MANSIO1_11979
return 

:MANSIO1_11981
switch_start 43@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_12369 {caseNum1} 0 {caseLabel1} @MANSIO1_12044 {caseNum2} 1 {caseLabel2} @MANSIO1_12192 {caseNum3} 2 {caseLabel3} @MANSIO1_12044 {caseNum4} 3 {caseLabel4} @MANSIO1_12192 {caseNum5} -1 {caseLabel5} @MANSIO1_12369 {caseNum6} -1 {caseLabel6} @MANSIO1_12369 {caseNum7} -1 {caseLabel7} @MANSIO1_12369

:MANSIO1_12044
if 
  not Char.LocateOnFoot2D(131@(43@,4i), 1585.293, -786.5728, 1.2, 1.2, False)
goto_if_false @MANSIO1_12093
goto @MANSIO1_12369

:MANSIO1_12093
if 
  43@ == 2
goto_if_false @MANSIO1_12152
set_var_int_to_constant $load_sample = 9410
set_var_text_label s$load_text = 'MAN1_DH'
start_new_script @A_ALAP 2 100 131@(43@,4i) 

:MANSIO1_12152
Task.Jump(131@(43@,4i), True)
160@(43@,4i) = 0
135@(43@,4i) += 1
goto @MANSIO1_12369

:MANSIO1_12192
if 
  not Char.LocateOnFoot2D(131@(43@,4i), 1585.323, -783.2303, 1.2, 1.2, False)
goto_if_false @MANSIO1_12241
goto @MANSIO1_12369

:MANSIO1_12241
if 
  43@ == 1
goto_if_false @MANSIO1_12288
set_var_int_to_constant $load_sample = 9420
set_var_text_label s$load_text = 'MAN1_DG'
goto @MANSIO1_12310

:MANSIO1_12288
set_var_int_to_constant $load_sample = 9411
set_var_text_label s$load_text = 'MAN1_DJ'

:MANSIO1_12310
start_new_script @A_ALAP 2 100 131@(43@,4i) 
Task.Jump(131@(43@,4i), True)
160@(43@,4i) = 0
135@(43@,4i) += 1
goto @MANSIO1_12369

:MANSIO1_12369
return 

:MANSIO1_12371
switch_start 43@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_12646 {caseNum1} 0 {caseLabel1} @MANSIO1_12434 {caseNum2} 1 {caseLabel2} @MANSIO1_12487 {caseNum3} 2 {caseLabel3} @MANSIO1_12540 {caseNum4} 3 {caseLabel4} @MANSIO1_12593 {caseNum5} -1 {caseLabel5} @MANSIO1_12646 {caseNum6} -1 {caseLabel6} @MANSIO1_12646 {caseNum7} -1 {caseLabel7} @MANSIO1_12646

:MANSIO1_12434
StreamedScript.StartNew(1, -1, -29.0, 14.0, -3.0, -1.0, 5.25, 6.75, 1, 131@)
StreamedScript.Stream(1)
goto @MANSIO1_12646

:MANSIO1_12487
StreamedScript.StartNew(1, -1, -28.0, 14.0, -3.0, -1.0, 5.25, 6.75, 1, 132@)
StreamedScript.Stream(1)
goto @MANSIO1_12646

:MANSIO1_12540
StreamedScript.StartNew(1, -1, -27.0, 14.0, -3.0, -1.0, 5.25, 6.75, 1, 133@)
StreamedScript.Stream(1)
goto @MANSIO1_12646

:MANSIO1_12593
StreamedScript.StartNew(1, -1, -26.0, 14.0, -3.0, -1.0, 5.25, 6.75, 1, 134@)
StreamedScript.Stream(1)
goto @MANSIO1_12646

:MANSIO1_12646
return 

:MANSIO1_12648
43@ = 0

:MANSIO1_12655
if 
  3 > 43@
goto_if_false @MANSIO1_13334
if 
  not Char.IsDead(143@(43@,3i))
goto_if_false @MANSIO1_13299
switch_start 149@(43@,3i) {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_13292 {caseNum1} 0 {caseLabel1} @MANSIO1_12760 {caseNum2} 1 {caseLabel2} @MANSIO1_12899 {caseNum3} 2 {caseLabel3} @MANSIO1_12948 {caseNum4} 3 {caseLabel4} @MANSIO1_13016 {caseNum5} 4 {caseLabel5} @MANSIO1_13108 {caseNum6} 5 {caseLabel6} @MANSIO1_13200 {caseNum7} -1 {caseLabel7} @MANSIO1_13292

:MANSIO1_12760
if 
  164@(43@,3i) >= 35000
goto_if_false @MANSIO1_12892
if 
  43@ == 0
goto_if_false @MANSIO1_12881
208@ = 0
gosub @MANSIO1_17063
if and
  6 > 210@
  210@ <> -1
goto_if_false @MANSIO1_12865
Text.PrintNow('MAN1_07', 8000, 1)
goto @MANSIO1_12881

:MANSIO1_12865
Text.PrintNow('MAN1_08', 8000, 1)

:MANSIO1_12881
149@(43@,3i) += 1

:MANSIO1_12892
goto @MANSIO1_13292

:MANSIO1_12899
if 
  Char.IsPlayingAnim(143@(43@,3i), "PARA_LAND")
goto_if_false @MANSIO1_12941
149@(43@,3i) += 1

:MANSIO1_12941
goto @MANSIO1_13292

:MANSIO1_12948
if 
  not Char.IsPlayingAnim(143@(43@,3i), "PARA_LAND")
goto_if_false @MANSIO1_13009
169@ += 1
set_lvar_int_to_lvar_int 149@(43@,3i) = 43@
149@(43@,3i) += 3

:MANSIO1_13009
goto @MANSIO1_13292

:MANSIO1_13016
45@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 1279.681, -786.5801, 95.4531, 6, -1)
Task.AchieveHeading(-1, 86.7391)
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, True)
Task.SetCharDecisionMaker(-1, 36@)
Sequence.Close(45@)
Char.PerformSequence(143@, 45@)
Sequence.Clear(45@)
149@(43@,3i) = 6
goto @MANSIO1_13292

:MANSIO1_13108
45@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 1289.565, -775.1545, 95.4476, 6, -1)
Task.AchieveHeading(-1, 76.697)
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, True)
Task.SetCharDecisionMaker(-1, 36@)
Sequence.Close(45@)
Char.PerformSequence(144@, 45@)
Sequence.Clear(45@)
149@(43@,3i) = 6
goto @MANSIO1_13292

:MANSIO1_13200
45@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 1281.683, -779.4835, 95.4531, 6, -1)
Task.AchieveHeading(-1, 84.4451)
Task.ToggleDuck(-1, False)
Task.StayInSamePlace(-1, True)
Task.SetCharDecisionMaker(-1, 36@)
Sequence.Close(45@)
Char.PerformSequence(145@, 45@)
Sequence.Clear(45@)
149@(43@,3i) = 6
goto @MANSIO1_13292

:MANSIO1_13292
goto @MANSIO1_13320

:MANSIO1_13299
52@ = 1
set_lvar_text_label 53@s = 'MAN1_11'

:MANSIO1_13320
43@ += 1
goto @MANSIO1_12655

:MANSIO1_13334
return 

:MANSIO1_13336
43@ = 0

:MANSIO1_13343
if 
  3 > 43@
goto_if_false @MANSIO1_13438
if 
  not Char.IsDead(143@(43@,3i))
goto_if_false @MANSIO1_13424
Char.ClearTasksImmediately(143@(43@,3i))
Task.StayInSamePlace(143@(43@,3i), False)
Group.SetMember(44@, 143@(43@,3i))
Char.SetNeverLeavesGroup(143@(43@,3i), True)

:MANSIO1_13424
43@ += 1
goto @MANSIO1_13343

:MANSIO1_13438
return 

:MANSIO1_13440
43@ = 0

:MANSIO1_13447
if 
  3 > 43@
goto_if_false @MANSIO1_13528
if 
  not Char.IsDead(143@(43@,3i))
goto_if_false @MANSIO1_13514
Char.ClearTasks(143@(43@,3i))
Task.StayInSamePlace(143@(43@,3i), False)
Char.RemoveFromGroup(143@(43@,3i))

:MANSIO1_13514
43@ += 1
goto @MANSIO1_13447

:MANSIO1_13528
return 

:MANSIO1_13530
170@ = Char.Create(PedType.Mission2, 108, 1268.069, -783.494, 94.961)
Char.SetHeading(170@, 275.8136)
Char.SetHealth(170@, 200)
Char.SetMaxHealth(170@, 200)
Char.SetDecisionMaker(170@, 34@)
Char.GiveWeapon(170@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(170@, WeaponType.Mp5)
Char.SetProofs(170@, True, False, False, False, False)
Char.SetIsTargetPriority(170@, True)
Char.SetSignalAfterKill(170@, False)
176@ = -2
171@ = Char.Create(PedType.Mission2, 109, 1271.156, -780.8453, 94.9663)
Char.SetHeading(171@, 254.8986)
Char.SetHealth(171@, 200)
Char.SetMaxHealth(171@, 200)
Char.SetDecisionMaker(171@, 34@)
Char.GiveWeapon(171@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(171@, WeaponType.Mp5)
Char.SetProofs(171@, True, False, False, False, False)
Char.SetIsTargetPriority(171@, True)
Char.SetSignalAfterKill(171@, False)
177@ = -2
172@ = Char.Create(PedType.Mission2, 108, 1267.737, -777.1963, 94.9577)
Char.SetHeading(172@, 302.1641)
Char.SetHealth(172@, 200)
Char.SetMaxHealth(172@, 200)
Char.SetDecisionMaker(172@, 34@)
Char.GiveWeapon(172@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(172@, WeaponType.Mp5)
Char.SetIsTargetPriority(172@, True)
Char.SetSignalAfterKill(172@, False)
178@ = -2
173@ = Char.Create(PedType.Mission2, 109, 1272.534, -774.9141, 94.9466)
Char.SetHeading(173@, 249.014)
Char.SetHealth(173@, 200)
Char.SetMaxHealth(173@, 200)
Char.SetDecisionMaker(173@, 34@)
Char.GiveWeapon(173@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(173@, WeaponType.Mp5)
Char.SetIsTargetPriority(173@, True)
Char.SetSignalAfterKill(173@, False)
179@ = -2
if 
  2 > 157@
goto_if_false @MANSIO1_14022
Char.SetProofs(170@, True, False, False, False, False)
Char.SetProofs(171@, True, False, False, False, False)
Char.SetProofs(172@, True, False, False, False, False)
Char.SetProofs(173@, True, False, False, False, False)

:MANSIO1_14022
TIMERB = 3000
206@ = 1
return 

:MANSIO1_14039
if 
  not Char.IsDead(170@)
goto_if_false @MANSIO1_14078
Char.SetDecisionMaker(170@, 36@)
Char.SetProofs(170@, False, False, False, False, False)

:MANSIO1_14078
if 
  not Char.IsDead(171@)
goto_if_false @MANSIO1_14117
Char.SetDecisionMaker(171@, 36@)
Char.SetProofs(171@, False, False, False, False, False)

:MANSIO1_14117
if 
  not Char.IsDead(172@)
goto_if_false @MANSIO1_14156
Char.SetDecisionMaker(172@, 36@)
Char.SetProofs(172@, False, False, False, False, False)

:MANSIO1_14156
if 
  not Char.IsDead(173@)
goto_if_false @MANSIO1_14195
Char.SetDecisionMaker(173@, 36@)
Char.SetProofs(173@, False, False, False, False, False)

:MANSIO1_14195
return 

:MANSIO1_14197
43@ = 0

:MANSIO1_14204
if 
  4 > 43@
goto_if_false @MANSIO1_15096
if 
  not Char.IsDead(170@(43@,6i))
goto_if_false @MANSIO1_14449
switch_start 176@(43@,6i) {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_14442 {caseNum1} 0 {caseLabel1} @MANSIO1_14309 {caseNum2} 1 {caseLabel2} @MANSIO1_14358 {caseNum3} 2 {caseLabel3} @MANSIO1_14406 {caseNum4} -1 {caseLabel4} @MANSIO1_14442 {caseNum5} -1 {caseLabel5} @MANSIO1_14442 {caseNum6} -1 {caseLabel6} @MANSIO1_14442 {caseNum7} -1 {caseLabel7} @MANSIO1_14442

:MANSIO1_14309
if 
  188@(43@,6i) > 100
goto_if_false @MANSIO1_14351
Object.Delete(194@(43@,6i))
176@(43@,6i) += 1

:MANSIO1_14351
goto @MANSIO1_14442

:MANSIO1_14358
46@ = Char.GetSequenceProgress(170@(43@,6i))
if 
  46@ >= 2
goto_if_false @MANSIO1_14399
176@(43@,6i) += 1

:MANSIO1_14399
goto @MANSIO1_14442

:MANSIO1_14406
$x, $y, $z = Char.GetCoordinates(170@(43@,6i))
176@(43@,6i) += 1
goto @MANSIO1_14442

:MANSIO1_14442
goto @MANSIO1_15082

:MANSIO1_14449
if 
  176@(43@,6i) <> -1
goto_if_false @MANSIO1_14500
188@(43@,6i) = 0
176@(43@,6i) = -1
goto @MANSIO1_15082

:MANSIO1_14500
if 
  188@(43@,6i) > 2000
goto_if_false @MANSIO1_15082
Char.RemoveElegantly(170@(43@,6i))
if 
  3 > 206@
goto_if_false @MANSIO1_15082
208@ = 0
gosub @MANSIO1_17063
if or
  210@ <> -1
  212@ <> 0
goto_if_false @MANSIO1_15082
set_lvar_int_to_lvar_int 205@ = 43@
if 
  210@ == -1
goto_if_false @MANSIO1_14647
if 
  212@ <> 0
goto_if_false @MANSIO1_14640
gosub @MANSIO1_15445

:MANSIO1_14640
goto @MANSIO1_14654

:MANSIO1_14647
gosub @MANSIO1_15098

:MANSIO1_14654
194@(43@,6i) = Object.Create(#CARDBOARDBOX2, 200@, 201@, 93.0)
Object.SetDynamic(194@(43@,6i), False)
Object.SetVisible(194@(43@,6i), False)
Object.FreezePosition(194@(43@,6i), True)
170@(43@,6i) = Char.Create(PedType.Mission2, 182@(43@,6i), 200@, 201@, 202@)
Char.SetIsTargetPriority(170@(43@,6i), True)
Char.SetHealth(170@(43@,6i), 200)
Char.SetMaxHealth(170@(43@,6i), 200)
Char.SetHeading(170@(43@,6i), 203@)
Char.SetDecisionMaker(170@(43@,6i), 34@)
Char.GiveWeapon(170@(43@,6i), WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(170@(43@,6i), WeaponType.Mp5)
Char.SetAccuracy(170@(43@,6i), 70)
Char.SetShootRate(170@(43@,6i), 55)
Char.SetSignalAfterKill(170@(43@,6i), False)
if 
  4 > 43@
goto_if_false @MANSIO1_15082
if or
  210@ <> -1
  212@ > 0
goto_if_false @MANSIO1_15030
$x, $y, $z = Char.GetOffsetInWorldCoords(170@(43@,6i), 0.0, 3.5, 0.0)
45@ = Sequence.Open()
Task.Climb(-1, True)
Task.ToggleDuck(-1, True)
Task.GoToCoordAnyMeans(-1, $x, $y, 94.95, 6, -1)
Task.StayInSamePlace(-1, False)
Task.SetCharDecisionMaker(-1, 36@)
Sequence.Close(45@)
Char.PerformSequence(170@(43@,6i), 45@)
Sequence.Clear(45@)
188@(43@,6i) = 0
176@(43@,6i) = 0
goto @MANSIO1_15075

:MANSIO1_15030
Task.StayInSamePlace(170@(43@,6i), True)
Task.SetCharDecisionMaker(170@(43@,6i), 36@)
188@(43@,6i) = 0
176@(43@,6i) = 3

:MANSIO1_15075
goto @MANSIO1_15082

:MANSIO1_15082
43@ += 1
goto @MANSIO1_14204

:MANSIO1_15096
return 

:MANSIO1_15098
switch_start 210@ {numCases} 11 {hasDefaultCase} 1 {defaultLabel} @MANSIO1_15347 {caseNum1} 0 {caseLabel1} @MANSIO1_15226 {caseNum2} 1 {caseLabel2} @MANSIO1_15242 {caseNum3} 2 {caseLabel3} @MANSIO1_15258 {caseNum4} 3 {caseLabel4} @MANSIO1_15274 {caseNum5} 4 {caseLabel5} @MANSIO1_15290 {caseNum6} 5 {caseLabel6} @MANSIO1_15306 {caseNum7} 6 {caseLabel7} @MANSIO1_15274
switch_continued 7 {caseLabel1} @MANSIO1_15290 {caseNum2} 8 {caseLabel2} @MANSIO1_15306 {caseNum3} 9 {caseLabel3} @MANSIO1_15258 {caseNum4} 10 {caseLabel4} @MANSIO1_15242 {caseNum5} -1 {caseLabel5} @MANSIO1_15361 {caseNum6} -1 {caseLabel6} @MANSIO1_15361 {caseNum7} -1 {caseLabel7} @MANSIO1_15361 {caseNum8} -1 {caseLabel8} @MANSIO1_15361 {caseNum9} -1 {caseLabel9} @MANSIO1_15361

:MANSIO1_15226
204@ = Math.RandomIntInRange(0, 5)
goto @MANSIO1_15361

:MANSIO1_15242
204@ = Math.RandomIntInRange(2, 5)
goto @MANSIO1_15361

:MANSIO1_15258
204@ = Math.RandomIntInRange(3, 5)
goto @MANSIO1_15361

:MANSIO1_15274
204@ = Math.RandomIntInRange(0, 3)
goto @MANSIO1_15361

:MANSIO1_15290
204@ = Math.RandomIntInRange(0, 2)
goto @MANSIO1_15361

:MANSIO1_15306
204@ = Math.RandomIntInRange(0, 4)
if 
  204@ > 1
goto_if_false @MANSIO1_15340
204@ += 1

:MANSIO1_15340
goto @MANSIO1_15361

:MANSIO1_15347
204@ = 5
goto @MANSIO1_15361

:MANSIO1_15361
if 
  5 > 204@
goto_if_false @MANSIO1_15411
205@ *= 5
add_int_lvar_to_int_lvar 204@ += 205@
202@ = 94.0
goto @MANSIO1_15436

:MANSIO1_15411
204@ *= 4
add_int_lvar_to_int_lvar 204@ += 205@
202@ = 95.0

:MANSIO1_15436
gosub @MANSIO1_15686
return 

:MANSIO1_15445
switch_start 212@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_15602 {caseNum1} -1 {caseLabel1} @MANSIO1_15588 {caseNum2} 1 {caseLabel2} @MANSIO1_15508 {caseNum3} 2 {caseLabel3} @MANSIO1_15524 {caseNum4} 3 {caseLabel4} @MANSIO1_15540 {caseNum5} 4 {caseLabel5} @MANSIO1_15556 {caseNum6} 5 {caseLabel6} @MANSIO1_15572 {caseNum7} -1 {caseLabel7} @MANSIO1_15602

:MANSIO1_15508
204@ = Math.RandomIntInRange(0, 5)
goto @MANSIO1_15602

:MANSIO1_15524
204@ = Math.RandomIntInRange(3, 5)
goto @MANSIO1_15602

:MANSIO1_15540
204@ = Math.RandomIntInRange(2, 5)
goto @MANSIO1_15602

:MANSIO1_15556
204@ = Math.RandomIntInRange(0, 2)
goto @MANSIO1_15602

:MANSIO1_15572
204@ = Math.RandomIntInRange(0, 3)
goto @MANSIO1_15602

:MANSIO1_15588
204@ = 5
goto @MANSIO1_15602

:MANSIO1_15602
if 
  5 > 204@
goto_if_false @MANSIO1_15652
205@ *= 5
add_int_lvar_to_int_lvar 204@ += 205@
202@ = 94.0
goto @MANSIO1_15677

:MANSIO1_15652
204@ *= 4
add_int_lvar_to_int_lvar 204@ += 205@
202@ = 95.0

:MANSIO1_15677
gosub @MANSIO1_15686
return 

:MANSIO1_15686
switch_start 204@ {numCases} 24 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_16767 {caseNum1} 0 {caseLabel1} @MANSIO1_15879 {caseNum2} 1 {caseLabel2} @MANSIO1_15916 {caseNum3} 2 {caseLabel3} @MANSIO1_15953 {caseNum4} 3 {caseLabel4} @MANSIO1_15990 {caseNum5} 4 {caseLabel5} @MANSIO1_16027 {caseNum6} 5 {caseLabel6} @MANSIO1_16064 {caseNum7} 6 {caseLabel7} @MANSIO1_16101
switch_continued 7 {caseLabel1} @MANSIO1_16138 {caseNum2} 8 {caseLabel2} @MANSIO1_16175 {caseNum3} 9 {caseLabel3} @MANSIO1_16212 {caseNum4} 10 {caseLabel4} @MANSIO1_16249 {caseNum5} 11 {caseLabel5} @MANSIO1_16286 {caseNum6} 12 {caseLabel6} @MANSIO1_16323 {caseNum7} 13 {caseLabel7} @MANSIO1_16360 {caseNum8} 14 {caseLabel8} @MANSIO1_16397 {caseNum9} 15 {caseLabel9} @MANSIO1_16434
switch_continued 16 {caseLabel1} @MANSIO1_16471 {caseNum2} 17 {caseLabel2} @MANSIO1_16508 {caseNum3} 18 {caseLabel3} @MANSIO1_16545 {caseNum4} 19 {caseLabel4} @MANSIO1_16582 {caseNum5} 20 {caseLabel5} @MANSIO1_16619 {caseNum6} 21 {caseLabel6} @MANSIO1_16656 {caseNum7} 22 {caseLabel7} @MANSIO1_16693 {caseNum8} 23 {caseLabel8} @MANSIO1_16730 {caseNum9} -1 {caseLabel9} @MANSIO1_16767

:MANSIO1_15879
200@ = 1262.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_15916
200@ = 1266.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_15953
200@ = 1257.0
201@ = -784.0
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_15990
200@ = 1269.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16027
200@ = 1265.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16064
200@ = 1267.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16101
200@ = 1263.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16138
200@ = 1257.0
201@ = -781.0
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16175
200@ = 1264.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16212
200@ = 1268.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16249
200@ = 1264.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16286
200@ = 1268.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16323
200@ = 1257.0
201@ = -778.0
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16360
200@ = 1267.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16397
200@ = 1263.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16434
200@ = 1269.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16471
200@ = 1265.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16508
200@ = 1257.0
201@ = -775.0
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16545
200@ = 1262.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16582
200@ = 1266.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16619
200@ = 1268.069
201@ = -783.494
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16656
200@ = 1271.156
201@ = -780.8453
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16693
200@ = 1267.737
201@ = -777.1963
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16730
200@ = 1272.534
201@ = -774.9141
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16767
return 

:MANSIO1_16769
if 
  TIMERB > 700
goto_if_false @MANSIO1_17061
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
$distance = Math.GetDistanceBetweenCoords2D(1269.668, -778.8566, $player_x, $player_y)
if and
  $player_z > 105.0
  $distance > 65.0
  130.0 > $distance
goto_if_false @MANSIO1_17043
$x = Math.RandomFloatInRange(-6.0, 6.1)
if 
  $x > 0.0
goto_if_false @MANSIO1_16917
$x += 1.5
goto @MANSIO1_16927

:MANSIO1_16917
$x -= 1.5

:MANSIO1_16927
$z = Math.RandomFloatInRange(-6.0, 6.1)
if 
  $z > 0.0
goto_if_false @MANSIO1_16980
$z += 1.5
goto @MANSIO1_16990

:MANSIO1_16980
$z -= 1.5

:MANSIO1_16990
$player_x, $player_y, $player_z = Char.GetOffsetInWorldCoords($scplayer, $x, -10.0, $z)
World.FireSingleBullet(1269.668, -778.8566, 94.9557, $player_x, $player_y, $player_z, 0)

:MANSIO1_17043
204@ = Math.RandomIntInRange(100, 401)
set_lvar_int_to_lvar_int TIMERB = 204@

:MANSIO1_17061
return 

:MANSIO1_17063
if 
  208@ == 0
goto_if_false @MANSIO1_17143
if 
  211@ == 0
goto_if_false @MANSIO1_17134
210@ = -1
212@ = 0
215@, 216@, 217@ = Char.GetCoordinates($scplayer)
goto @MANSIO1_17136

:MANSIO1_17134
return 

:MANSIO1_17136
goto @MANSIO1_17168

:MANSIO1_17143
213@ = -1
215@, 216@, 217@ = Char.GetCoordinates(170@(214@,6i))

:MANSIO1_17168
if 
  217@ > 94.5
goto_if_false @MANSIO1_17203
209@ = 0
goto @MANSIO1_17280

:MANSIO1_17203
if 
  217@ > 90.5
goto_if_false @MANSIO1_17238
209@ = 1
goto @MANSIO1_17280

:MANSIO1_17238
if 
  217@ > 86.0
goto_if_false @MANSIO1_17273
209@ = 2
goto @MANSIO1_17280

:MANSIO1_17273
209@ = 3

:MANSIO1_17280
switch_start 209@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_18429 {caseNum1} 0 {caseLabel1} @MANSIO1_17343 {caseNum2} 1 {caseLabel2} @MANSIO1_17597 {caseNum3} 2 {caseLabel3} @MANSIO1_17816 {caseNum4} 3 {caseLabel4} @MANSIO1_18175 {caseNum5} -1 {caseLabel5} @MANSIO1_18429 {caseNum6} -1 {caseLabel6} @MANSIO1_18429 {caseNum7} -1 {caseLabel7} @MANSIO1_18429

:MANSIO1_17343
if and
  216@ > -802.2
  -766.75 > 216@
  215@ > 1257.9
  1304.4 > 215@
goto_if_false @MANSIO1_17583
if 
  216@ > -774.2
goto_if_false @MANSIO1_17464
if 
  1262.7 > 215@
goto_if_false @MANSIO1_17450
207@ = 2
goto @MANSIO1_17457

:MANSIO1_17450
207@ = 1

:MANSIO1_17457
goto @MANSIO1_17576

:MANSIO1_17464
if 
  -785.85 > 216@
goto_if_false @MANSIO1_17534
if 
  1262.7 > 215@
goto_if_false @MANSIO1_17520
207@ = 4
goto @MANSIO1_17527

:MANSIO1_17520
207@ = 3

:MANSIO1_17527
goto @MANSIO1_17576

:MANSIO1_17534
if 
  1262.7 > 215@
goto_if_false @MANSIO1_17569
207@ = 5
goto @MANSIO1_17576

:MANSIO1_17569
207@ = 0

:MANSIO1_17576
goto @MANSIO1_17590

:MANSIO1_17583
207@ = -1

:MANSIO1_17590
goto @MANSIO1_18429

:MANSIO1_17597
if and
  216@ > -793.0
  -767.6 > 216@
  215@ > 1251.4
  1295.7 > 215@
goto_if_false @MANSIO1_17802
if 
  216@ > -776.25
goto_if_false @MANSIO1_17718
if 
  1265.9 > 215@
goto_if_false @MANSIO1_17704
207@ = 9
goto @MANSIO1_17711

:MANSIO1_17704
207@ = 10

:MANSIO1_17711
goto @MANSIO1_17795

:MANSIO1_17718
if 
  -783.5 > 216@
goto_if_false @MANSIO1_17788
if 
  1265.9 > 215@
goto_if_false @MANSIO1_17774
207@ = 7
goto @MANSIO1_17781

:MANSIO1_17774
207@ = 6

:MANSIO1_17781
goto @MANSIO1_17795

:MANSIO1_17788
207@ = 8

:MANSIO1_17795
goto @MANSIO1_17809

:MANSIO1_17802
207@ = -1

:MANSIO1_17809
goto @MANSIO1_18429

:MANSIO1_17816
if and
  216@ > -814.0
  -785.0 > 216@
  215@ > 1251.8
  1303.5 > 215@
goto_if_false @MANSIO1_18161
if 
  216@ > -793.6
goto_if_false @MANSIO1_17972
if 
  215@ > 1298.8
goto_if_false @MANSIO1_17923
207@ = 13
goto @MANSIO1_17965

:MANSIO1_17923
if 
  215@ > 1259.4
goto_if_false @MANSIO1_17958
207@ = 12
goto @MANSIO1_17965

:MANSIO1_17958
207@ = 11

:MANSIO1_17965
goto @MANSIO1_18154

:MANSIO1_17972
if 
  216@ > -807.1
goto_if_false @MANSIO1_18077
if 
  215@ > 1298.8
goto_if_false @MANSIO1_18028
207@ = 16
goto @MANSIO1_18070

:MANSIO1_18028
if 
  215@ > 1259.4
goto_if_false @MANSIO1_18063
207@ = 15
goto @MANSIO1_18070

:MANSIO1_18063
207@ = 14

:MANSIO1_18070
goto @MANSIO1_18154

:MANSIO1_18077
if 
  215@ > 1298.8
goto_if_false @MANSIO1_18112
207@ = 19
goto @MANSIO1_18154

:MANSIO1_18112
if 
  215@ > 1259.4
goto_if_false @MANSIO1_18147
207@ = 18
goto @MANSIO1_18154

:MANSIO1_18147
207@ = 17

:MANSIO1_18154
goto @MANSIO1_18168

:MANSIO1_18161
207@ = -1

:MANSIO1_18168
goto @MANSIO1_18429

:MANSIO1_18175
if and
  216@ > -834.35
  -787.3 > 216@
  215@ > 1239.9
  1308.4 > 215@
goto_if_false @MANSIO1_18415
if 
  -804.2511 > 216@
goto_if_false @MANSIO1_18331
if 
  1254.75 > 215@
goto_if_false @MANSIO1_18282
207@ = 23
goto @MANSIO1_18324

:MANSIO1_18282
if 
  1298.6 > 215@
goto_if_false @MANSIO1_18317
207@ = 24
goto @MANSIO1_18324

:MANSIO1_18317
207@ = 25

:MANSIO1_18324
goto @MANSIO1_18408

:MANSIO1_18331
if 
  1254.75 > 215@
goto_if_false @MANSIO1_18366
207@ = 20
goto @MANSIO1_18408

:MANSIO1_18366
if 
  1298.6 > 215@
goto_if_false @MANSIO1_18401
207@ = 21
goto @MANSIO1_18408

:MANSIO1_18401
207@ = 22

:MANSIO1_18408
goto @MANSIO1_18422

:MANSIO1_18415
207@ = -1

:MANSIO1_18422
goto @MANSIO1_18429

:MANSIO1_18429
if 
  207@ == -1
goto_if_false @MANSIO1_18573
if 
  217@ > 91.5
goto_if_false @MANSIO1_18566
212@ = 0
if 
  215@ > 1279.351
goto_if_false @MANSIO1_18503
212@ += 1

:MANSIO1_18503
if 
  216@ > -766.75
goto_if_false @MANSIO1_18531
212@ += 2

:MANSIO1_18531
if 
  -802.2 > 216@
goto_if_false @MANSIO1_18559
212@ += 4

:MANSIO1_18559
goto @MANSIO1_18573

:MANSIO1_18566
212@ = -1

:MANSIO1_18573
if 
  208@ == 0
goto_if_false @MANSIO1_18613
set_lvar_int_to_lvar_int 210@ = 207@
211@ = 1
goto @MANSIO1_18621

:MANSIO1_18613
set_lvar_int_to_lvar_int 213@ = 207@

:MANSIO1_18621
return 

:MANSIO1_18623
switch_start 218@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_18754 {caseNum1} 1 {caseLabel1} @MANSIO1_18686 {caseNum2} -1 {caseLabel2} @MANSIO1_18754 {caseNum3} -1 {caseLabel3} @MANSIO1_18754 {caseNum4} -1 {caseLabel4} @MANSIO1_18754 {caseNum5} -1 {caseLabel5} @MANSIO1_18754 {caseNum6} -1 {caseLabel6} @MANSIO1_18754 {caseNum7} -1 {caseLabel7} @MANSIO1_18754

:MANSIO1_18686
if 
  190.0 > 115@
goto_if_false @MANSIO1_18747
115@ += 0.34
114@ -= 0.006
118@ += 0.01
116@ += 0.01

:MANSIO1_18747
goto @MANSIO1_18754

:MANSIO1_18754
122@ = Math.Cos(115@)
123@ = Math.Sin(115@)
set_lvar_float_to_lvar_float 120@ = 116@
mult_float_lvar_by_float_lvar 120@ *= 122@
set_lvar_float_to_lvar_float 121@ = 116@
mult_float_lvar_by_float_lvar 121@ *= 123@
set_lvar_float_to_lvar_float 112@ = 117@
add_float_lvar_to_float_lvar 112@ += 120@
set_lvar_float_to_lvar_float 113@ = 118@
add_float_lvar_to_float_lvar 113@ += 121@
Camera.SetFixedPosition(112@, 113@, 114@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(117@, 118@, 119@, SwitchType.JumpCut)
return 

:MANSIO1_18875
switch_start 219@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_19024 {caseNum1} 0 {caseLabel1} @MANSIO1_18938 {caseNum2} 1 {caseLabel2} @MANSIO1_18953 {caseNum3} -1 {caseLabel3} @MANSIO1_19024 {caseNum4} -1 {caseLabel4} @MANSIO1_19024 {caseNum5} -1 {caseLabel5} @MANSIO1_19024 {caseNum6} -1 {caseLabel6} @MANSIO1_19024 {caseNum7} -1 {caseLabel7} @MANSIO1_19024

:MANSIO1_18938
Audio.ReportMissionAudioEventAtObject(128@, 1108)
219@ += 1

:MANSIO1_18953
if 
  220@ > -20.0
goto_if_false @MANSIO1_19009
220@ += -0.1
Object.SetRotation(128@, 220@, 0.0, 90.0)
goto @MANSIO1_19024

:MANSIO1_19009
Audio.ReportMissionAudioEventAtObject(128@, 1109)
219@ += 1

:MANSIO1_19024
return 
switch_start 221@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_19272 {caseNum1} 0 {caseLabel1} @MANSIO1_19089 {caseNum2} 1 {caseLabel2} @MANSIO1_19152 {caseNum3} 2 {caseLabel3} @MANSIO1_19261 {caseNum4} -1 {caseLabel4} @MANSIO1_19272 {caseNum5} -1 {caseLabel5} @MANSIO1_19272 {caseNum6} -1 {caseLabel6} @MANSIO1_19272 {caseNum7} -1 {caseLabel7} @MANSIO1_19272

:MANSIO1_19089
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 222@
goto_if_false @MANSIO1_19140
223@ = Math.RandomIntInRange(4000, 6001)
TIMERB = 0
221@ += 1
goto @MANSIO1_19145

:MANSIO1_19140
Camera.Shake(224@)

:MANSIO1_19145
goto @MANSIO1_19272

:MANSIO1_19152
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 223@
goto_if_false @MANSIO1_19250
224@ = Math.RandomIntInRange(40, 51)
Camera.Shake(224@)
222@ = Math.RandomIntInRange(2500, 5001)
set_lvar_int_to_lvar_int 225@ = 224@
225@ *= 2
225@ += 150
Pad.Shake(PadId.Pad1, 222@, 225@)
TIMERB = 0
221@ -= 1
goto @MANSIO1_19254

:MANSIO1_19250
Camera.Shake(5)

:MANSIO1_19254
goto @MANSIO1_19272

:MANSIO1_19261
Camera.Shake(20)
goto @MANSIO1_19272

:MANSIO1_19272
return 

:MANSIO1_19274
Particle.Kill(124@)
Particle.Kill(125@)
Particle.Kill(126@)
Blip.Remove(47@)
Blip.Remove(146@)
Blip.Remove(147@)
Blip.Remove(148@)
Pickup.Remove(51@)
43@ = 0

:MANSIO1_19321
if 
  4 > 43@
goto_if_false @MANSIO1_19380
Char.MarkAsNoLongerNeeded(99@(43@,4i))
Char.MarkAsNoLongerNeeded(131@(43@,4i))
Char.MarkAsNoLongerNeeded(170@(43@,6i))
43@ += 1
goto @MANSIO1_19321

:MANSIO1_19380
Char.MarkAsNoLongerNeeded(159@)
Streaming.MarkModelAsNoLongerNeeded(#PARACHUTE)
Streaming.MarkModelAsNoLongerNeeded(#PARA_PACK)
Streaming.MarkModelAsNoLongerNeeded(371)
Streaming.RemoveAnimation("PARACHUTE")
Streaming.MarkModelAsNoLongerNeeded(#CARGO_REAR)
Streaming.MarkModelAsNoLongerNeeded(#D9_RAMP)
Streaming.MarkModelAsNoLongerNeeded(#CARDBOARDBOX2)
Streaming.MarkModelAsNoLongerNeeded(330)
return 

:MANSIO1_19435
gosub @MANSIO1_13440
gosub @MANSIO1_19274
DecisionMaker.Remove(39@)
World.DisableAllEntryExits(True)
Streaming.LoadScene(1267.429, -781.5715, 1090.891)
38@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
DecisionMakerChar.AddEventResponse(38@, 9, 911, 0.0, 100.0, 100.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse(38@, 15, 415, 0.0, 100.0, 100.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse(38@, 31, 413, 0.0, 100.0, 0.0, 0.0, False, True)
Streaming.RequestModel(110)
Streaming.RequestModel(13)
Streaming.RequestModel(195)

:MANSIO1_19597
if or
  not Streaming.HasModelLoaded(110)
  not Streaming.HasModelLoaded(13)
  not Streaming.HasModelLoaded(195)
goto_if_false @MANSIO1_19632
wait 0
goto @MANSIO1_19597

:MANSIO1_19632
51@ = Pickup.Create(#HEALTH, PickupType.Once, 1278.88, -810.5082, 1086.0)
Camera.SetFixedPosition(1266.807, -782.0668, 1092.602, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1267.786, -781.8895, 1092.5, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Char.SetCoordinates($scplayer, 1267.785, -781.2607, 1090.898)
Char.SetHeading($scplayer, 185.363)
157@ = 0
if 
  not Char.IsDead(143@)
goto_if_false @MANSIO1_19804
Char.SetCoordinates(143@, 1263.087, -782.9864, 1090.898)
Blip.Remove(146@)
goto @MANSIO1_19852

:MANSIO1_19804
143@ = Char.Create(PedType.Mission1, 117, 1263.087, -782.9864, 1090.898)
Char.GiveWeapon(143@, WeaponType.M4, 30000)
Char.SetCurrentWeapon(143@, WeaponType.M4)
Char.SetNeverTargeted(143@, True)

:MANSIO1_19852
Char.SetHeading(143@, 269.9343)
Char.SetHealth(143@, 300)
Char.SetAreaVisible(143@, 5)
Char.SetDecisionMaker(143@, 34@)
Char.SetSignalAfterKill(143@, False)
Char.SetAccuracy(143@, 75)
Char.SetShootRate(143@, 60)
set_lvar_int_to_constant 428@ = 117
149@ = 0
if 
  not Char.IsDead(144@)
goto_if_false @MANSIO1_19968
Char.SetCoordinates(144@, 1261.967, -778.3527, 1090.898)
Blip.Remove(147@)
goto @MANSIO1_20016

:MANSIO1_19968
144@ = Char.Create(PedType.Mission1, 118, 1261.967, -778.3527, 1090.898)
Char.GiveWeapon(144@, WeaponType.M4, 30000)
Char.SetCurrentWeapon(144@, WeaponType.M4)
Char.SetNeverTargeted(144@, True)

:MANSIO1_20016
Char.SetHeading(144@, 258.1764)
Char.SetHealth(144@, 300)
Char.SetAreaVisible(144@, 5)
Char.SetDecisionMaker(144@, 34@)
Char.SetSignalAfterKill(144@, False)
Char.SetAccuracy(144@, 75)
Char.SetShootRate(144@, 60)
150@ = 1
set_lvar_int_to_constant 429@ = 118
if 
  not Char.IsDead(145@)
goto_if_false @MANSIO1_20132
Char.SetCoordinates(145@, 1267.936, -782.3963, 1090.938)
Blip.Remove(148@)
goto @MANSIO1_20180

:MANSIO1_20132
145@ = Char.Create(PedType.Mission1, 118, 1267.936, -782.3963, 1090.938)
Char.GiveWeapon(145@, WeaponType.M4, 30000)
Char.SetCurrentWeapon(145@, WeaponType.M4)
Char.SetNeverTargeted(145@, True)

:MANSIO1_20180
Char.SetHeading(145@, 7.0205)
Char.SetHealth(145@, 300)
Char.SetAreaVisible(145@, 5)
Char.SetDecisionMaker(145@, 34@)
43@ = 0

:MANSIO1_20220
if 
  20 > 43@
goto_if_false @MANSIO1_20263
246@(43@,20i) = -2
43@ += 1
goto @MANSIO1_20220

:MANSIO1_20263
43@ = 0

:MANSIO1_20270
if 
  10 > 43@
goto_if_false @MANSIO1_20313
296@(43@,10i) = -2
43@ += 1
goto @MANSIO1_20270

:MANSIO1_20313
320@ = -2
321@ = -2
322@ = -2
323@ = -2
346@ = 1282.481
362@ = -783.0235
378@ = 1088.93
394@ = 178.1922
347@ = 1283.504
363@ = -782.3303
379@ = 1088.93
395@ = 179.0122
344@ = 2
348@ = 1280.705
364@ = -789.9243
380@ = 1088.93
396@ = 86.8595
349@ = 1283.79
365@ = -798.3011
381@ = 1088.93
397@ = 282.0571
350@ = 1280.78
366@ = -801.7443
382@ = 1088.93
398@ = 94.8903
351@ = 1283.531
367@ = -810.207
383@ = 1088.93
399@ = 277.6203
352@ = 1280.724
368@ = -813.7949
384@ = 1088.93
400@ = 92.4805
353@ = 1283.641
369@ = -822.3738
385@ = 1088.93
401@ = 281.8632
345@ = 8
354@ = 1283.491
370@ = -785.184
386@ = 1088.93
402@ = 178.5884
355@ = 1281.049
371@ = -792.4401
387@ = 1088.93
403@ = 182.731
356@ = 1283.697
372@ = -799.8134
388@ = 1088.93
404@ = 177.1231
357@ = 1280.901
373@ = -804.8507
389@ = 1088.93
405@ = 184.0353
358@ = 1283.5
374@ = -812.0164
390@ = 1088.93
406@ = 175.55
359@ = 1280.848
375@ = -816.8154
391@ = 1088.93
407@ = 188.1912
360@ = 1283.654
376@ = -831.0235
392@ = 1088.93
408@ = 71.1923
361@ = 1282.427
377@ = -834.7235
393@ = 1088.93
409@ = 92.1225
452@ = Math.RandomIntInRange(0, 4)
set_lvar_int_to_constant 444@ = 9424
set_lvar_text_label 453@s = 'MAN1_FC'
set_lvar_int_to_constant 445@ = 9425
set_lvar_text_label 455@s = 'MAN1_FD'
set_lvar_int_to_constant 446@ = 9426
set_lvar_text_label 457@s = 'MAN1_FE'
set_lvar_int_to_constant 447@ = 9427
set_lvar_text_label 459@s = 'MAN1_FF'
set_lvar_int_to_constant 448@ = 9431
set_lvar_text_label 461@s = 'MAN1_FK'
set_lvar_int_to_constant 449@ = 9432
set_lvar_text_label 463@s = 'MAN1_FL'
set_lvar_int_to_constant 450@ = 9433
set_lvar_text_label 465@s = 'MAN1_FM'
set_lvar_int_to_constant 451@ = 9434
set_lvar_text_label 467@s = 'MAN1_FN'
226@ = Char.Create(PedType.Mission2, 108, 1275.64, -776.5879, 1089.711)
Char.SetHeading(226@, 127.9642)
Char.SetHealth(226@, 200)
Char.SetMaxHealth(226@, 200)
Char.SetAreaVisible(226@, 5)
Char.GiveWeapon(226@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(226@, WeaponType.Mp5)
Char.SetAccuracy(226@, 35)
Char.SetShootRate(226@, 50)
Task.ToggleDuck(226@, True)
Char.SetDecisionMaker(226@, 34@)
246@ = 0
227@ = Char.Create(PedType.Mission2, 110, 1281.108, -776.7111, 1089.704)
Char.SetHeading(227@, 99.357)
Char.SetHealth(227@, 200)
Char.SetMaxHealth(227@, 200)
Char.SetAreaVisible(227@, 5)
Char.GiveWeapon(227@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(227@, WeaponType.Mp5)
Char.SetAccuracy(227@, 35)
Char.SetShootRate(227@, 60)
Task.ToggleDuck(227@, True)
Char.SetDecisionMaker(227@, 34@)
247@ = 0
228@ = Char.Create(PedType.Mission2, 108, 1281.617, -784.6133, 1088.93)
Char.SetHeading(228@, 90.0)
Char.SetHealth(228@, 200)
Char.SetMaxHealth(228@, 200)
Char.SetAreaVisible(228@, 5)
Char.GiveWeapon(228@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(228@, WeaponType.Mp5)
Char.SetAccuracy(228@, 35)
Char.SetShootRate(228@, 70)
Char.SetDecisionMaker(228@, 34@)
248@ = 0
229@ = Char.Create(PedType.Mission2, 110, 1283.19, -786.4687, 1088.93)
Char.SetHeading(229@, 0.0)
Char.SetHealth(229@, 200)
Char.SetMaxHealth(229@, 200)
Char.SetAreaVisible(229@, 5)
Char.GiveWeapon(229@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(229@, WeaponType.Mp5)
Char.SetAccuracy(229@, 35)
Char.SetShootRate(229@, 50)
Char.SetDecisionMaker(229@, 34@)
249@ = 0
487@ = -1
490@ = 1275.382
496@ = -782.1158
502@ = 1088.93
508@ = 270.0
491@ = 1290.621
497@ = -797.5714
503@ = 1088.93
509@ = 90.0
492@ = 1276.333
498@ = -813.5852
504@ = 1088.93
510@ = 270.0
493@ = 1274.861
499@ = -825.8968
505@ = 1088.93
511@ = 270.0
494@ = 1226.309
500@ = -832.0841
506@ = 1083.008
512@ = 180.0
495@ = 1288.024
501@ = -821.6524
507@ = 1088.93
513@ = 90.0
set_lvar_int_to_constant 331@ = 9400
set_lvar_text_label 336@s = 'MAN1_AA'
set_lvar_int_to_constant 332@ = 9401
set_lvar_text_label 338@s = 'MAN1_AB'
set_lvar_int_to_constant 333@ = 9402
set_lvar_text_label 340@s = 'MAN1_AC'
set_lvar_int_to_constant 334@ = 9403
set_lvar_text_label 342@s = 'MAN1_AD'
335@ = 0
330@ = 0
Zone.SwitchAudio('MADDOGL', True)
Char.StopFacialTalk($scplayer)
Camera.DoFade(1000, Fade.In)

:MANSIO1_21980
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_22004
wait 0
goto @MANSIO1_21980

:MANSIO1_22004
TIMERA = 0
49@ = 0
set_var_int_to_constant $load_sample = 9412
set_var_text_label s$load_text = 'MAN1_EA'
start_new_script @A_ALAP 2 100 145@ 
skip_cutscene_start_internal @MANSIO1_22313

:MANSIO1_22062
if 
  4000 > TIMERA
goto_if_false @MANSIO1_22092
wait 0
goto @MANSIO1_22062

:MANSIO1_22092
if 
  not Char.IsDead(226@)
goto_if_false @MANSIO1_22122
Task.ToggleDuck(226@, False)
49@ = 1

:MANSIO1_22122
if 
  4400 > TIMERA
goto_if_false @MANSIO1_22152
wait 0
goto @MANSIO1_22122

:MANSIO1_22152
if 
  not Char.IsDead(226@)
goto_if_false @MANSIO1_22198
Task.ShootAtCoord(226@, 1267.728, -782.9617, 1092.689, 300)
49@ = 2

:MANSIO1_22198
if 
  4700 > TIMERA
goto_if_false @MANSIO1_22228
wait 0
goto @MANSIO1_22198

:MANSIO1_22228
if and
  not Char.IsDead(226@)
  not Char.IsDead(145@)
goto_if_false @MANSIO1_22273
Char.ClearTasks(226@)
Task.ToggleDuck(226@, True)
Char.ExplodeHead(145@)
49@ = 3

:MANSIO1_22273
Task.AchieveHeading($scplayer, 270.0)

:MANSIO1_22283
if 
  5400 > TIMERA
goto_if_false @MANSIO1_22313
wait 0
goto @MANSIO1_22283

:MANSIO1_22313
skip_cutscene_end 
switch_start 49@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_22450 {caseNum1} 0 {caseLabel1} @MANSIO1_22422 {caseNum2} 1 {caseLabel2} @MANSIO1_22399 {caseNum3} 2 {caseLabel3} @MANSIO1_22378 {caseNum4} -1 {caseLabel4} @MANSIO1_22450 {caseNum5} -1 {caseLabel5} @MANSIO1_22450 {caseNum6} -1 {caseLabel6} @MANSIO1_22450 {caseNum7} -1 {caseLabel7} @MANSIO1_22450

:MANSIO1_22378
if 
  not Char.IsDead(226@)
goto_if_false @MANSIO1_22399
Char.ClearTasks(226@)

:MANSIO1_22399
if 
  not Char.IsDead(226@)
goto_if_false @MANSIO1_22422
Task.ToggleDuck(226@, True)

:MANSIO1_22422
if 
  not Char.IsDead(145@)
goto_if_false @MANSIO1_22443
Char.ExplodeHead(145@)

:MANSIO1_22443
goto @MANSIO1_22450

:MANSIO1_22450
Char.SetHeading($scplayer, 270.0)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
set_var_int_to_constant $load_sample = 9421
set_var_text_label s$load_text = 'MAN1_EB'
start_new_script @A_ALAP 2 101 143@ 
TIMERB = 0
415@ = 1
411@ = 1
416@ = -1
Camera.RestoreJumpcut
Camera.SetBehindPlayer
if 
  not Char.IsDead(143@)
goto_if_false @MANSIO1_22630
45@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1266.858, -782.4518, 1090.898, MoveState.Run, -1)
Task.AchieveHeading(-1, 270.5538)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.SetCharDecisionMaker(-1, 36@)
Sequence.Close(45@)
Char.PerformSequence(143@, 45@)
Sequence.Clear(45@)

:MANSIO1_22630
if 
  not Char.IsDead(144@)
goto_if_false @MANSIO1_22720
45@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1268.02, -779.9092, 1090.898, MoveState.Run, -1)
Task.AchieveHeading(-1, 267.5782)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.SetCharDecisionMaker(-1, 36@)
Sequence.Close(45@)
Char.PerformSequence(144@, 45@)
Sequence.Clear(45@)

:MANSIO1_22720
if 
  not Char.IsDead(226@)
goto_if_false @MANSIO1_22744
Char.SetDecisionMaker(226@, 36@)

:MANSIO1_22744
if 
  not Char.IsDead(227@)
goto_if_false @MANSIO1_22768
Char.SetDecisionMaker(227@, 36@)

:MANSIO1_22768
if 
  not Char.IsDead(228@)
goto_if_false @MANSIO1_22827
45@ = Sequence.Open()
Task.StandStill(-1, 1000)
Task.WeaponRoll(-1, True)
Task.SetCharDecisionMaker(-1, 36@)
Sequence.Close(45@)
Char.PerformSequence(228@, 45@)
Sequence.Clear(45@)

:MANSIO1_22827
if 
  not Char.IsDead(229@)
goto_if_false @MANSIO1_22918
45@ = Sequence.Open()
Task.StandStill(-1, 500)
Task.GoStraightToCoord(-1, 1283.221, -779.912, 1088.93, MoveState.Run, -1)
Task.AchieveHeading(-1, 90.0)
Task.ToggleDuck(-1, True)
Task.SetCharDecisionMaker(-1, 36@)
Sequence.Close(45@)
Char.PerformSequence(229@, 45@)
Sequence.Clear(45@)

:MANSIO1_22918
41@ = Clock.GetGameTimer()
157@ = 0

:MANSIO1_22930
wait 0
40@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 164@ += 42@
add_int_lvar_to_int_lvar 165@ += 42@
43@ = 0

:MANSIO1_22986
if 
  20 > 43@
goto_if_false @MANSIO1_23030
add_int_lvar_to_int_lvar 266@(43@,20i) += 42@
43@ += 1
goto @MANSIO1_22986

:MANSIO1_23030
43@ = 0

:MANSIO1_23037
if 
  10 > 43@
goto_if_false @MANSIO1_23081
add_int_lvar_to_int_lvar 306@(43@,10i) += 42@
43@ += 1
goto @MANSIO1_23037

:MANSIO1_23081
add_int_lvar_to_int_lvar 480@ += 42@
add_int_lvar_to_int_lvar 481@ += 42@
add_int_lvar_to_int_lvar 482@ += 42@
add_int_lvar_to_int_lvar 324@ += 42@
add_int_lvar_to_int_lvar 325@ += 42@
add_int_lvar_to_int_lvar 326@ += 42@
add_int_lvar_to_int_lvar 327@ += 42@
gosub @MANSIO1_23279
gosub @MANSIO1_29184
gosub @MANSIO1_32862
gosub @MANSIO1_28155
if 
  157@ > 0
goto_if_false @MANSIO1_23190
gosub @MANSIO1_34284

:MANSIO1_23190
if 
  330@ == 1
goto_if_false @MANSIO1_23215
gosub @MANSIO1_35151

:MANSIO1_23215
if 
  521@ <> 0
goto_if_false @MANSIO1_23240
gosub @MANSIO1_35745

:MANSIO1_23240
if 
  514@ == 2
goto_if_false @MANSIO1_23265
goto @MANSIO1_36517

:MANSIO1_23265
471@ = 0
goto @MANSIO1_22930

:MANSIO1_23279
switch_start 157@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_28153 {caseNum1} 0 {caseLabel1} @MANSIO1_23407 {caseNum2} 1 {caseLabel2} @MANSIO1_24472 {caseNum3} 2 {caseLabel3} @MANSIO1_24838 {caseNum4} 3 {caseLabel4} @MANSIO1_24986 {caseNum5} 4 {caseLabel5} @MANSIO1_25838 {caseNum6} 5 {caseLabel6} @MANSIO1_26532 {caseNum7} 6 {caseLabel7} @MANSIO1_26757
switch_continued 7 {caseLabel1} @MANSIO1_26929 {caseNum2} 8 {caseLabel2} @MANSIO1_27158 {caseNum3} 9 {caseLabel3} @MANSIO1_27387 {caseNum4} 10 {caseLabel4} @MANSIO1_27654 {caseNum5} 11 {caseLabel5} @MANSIO1_27883 {caseNum6} -1 {caseLabel6} @MANSIO1_28153 {caseNum7} -1 {caseLabel7} @MANSIO1_28153 {caseNum8} -1 {caseLabel8} @MANSIO1_28153 {caseNum9} -1 {caseLabel9} @MANSIO1_28153

:MANSIO1_23407
if or
  Char.IsInArea2D($scplayer, 1285.937, -783.2331, 1279.36, -779.1484, False)
  149@ == 6
  150@ == 7
goto_if_false @MANSIO1_24465
286@ = Char.Create(PedType.Mission2, 108, 1271.954, -786.6414, 1088.928)
Char.SetHeading(286@, 248.455)
Char.SetAreaVisible(286@, 5)
Char.GiveWeapon(286@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(286@, WeaponType.Mp5)
Char.SetAccuracy(286@, 45)
Char.SetShootRate(286@, 35)
Task.StayInSamePlace(286@, True)
Char.SetDecisionMaker(286@, 36@)
296@ = 0
287@ = Char.Create(PedType.Mission2, 110, 1272.165, -790.5964, 1088.928)
Char.SetHeading(287@, 277.2843)
Char.SetAreaVisible(287@, 5)
Char.GiveWeapon(287@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(287@, WeaponType.Mp5)
Char.SetAccuracy(287@, 45)
Char.SetShootRate(287@, 35)
Task.StayInSamePlace(287@, True)
Char.SetDecisionMaker(287@, 36@)
297@ = 0
288@ = Char.Create(PedType.Mission2, 110, 1287.489, -788.2037, 1088.93)
Char.SetHeading(288@, 176.3381)
Char.SetAreaVisible(288@, 5)
Char.GiveWeapon(288@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(288@, WeaponType.Mp5)
Char.SetAccuracy(288@, 50)
Char.SetShootRate(288@, 35)
Task.StayInSamePlace(288@, True)
Char.SetDecisionMaker(288@, 36@)
298@ = 0
289@ = Char.Create(PedType.Mission2, 108, 1292.456, -788.2022, 1088.93)
Char.SetHeading(289@, 145.1614)
Char.SetAreaVisible(289@, 5)
Char.GiveWeapon(289@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(289@, WeaponType.Mp5)
Char.SetAccuracy(289@, 50)
Char.SetShootRate(289@, 35)
Task.StayInSamePlace(289@, True)
Char.SetDecisionMaker(289@, 36@)
299@ = 0
290@ = Char.Create(PedType.Mission2, 108, 1271.389, -800.9039, 1088.927)
Char.SetHeading(290@, 263.9924)
Char.SetAreaVisible(290@, 5)
Char.GiveWeapon(290@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(290@, WeaponType.Mp5)
Char.SetAccuracy(290@, 50)
Char.SetShootRate(290@, 35)
Task.StayInSamePlace(290@, True)
Char.SetDecisionMaker(290@, 36@)
300@ = 0
291@ = Char.Create(PedType.Mission2, 108, 1291.748, -810.5742, 1088.93)
Char.SetHeading(291@, 87.4676)
Char.SetAreaVisible(291@, 5)
Char.GiveWeapon(291@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(291@, WeaponType.Mp5)
Char.SetAccuracy(291@, 50)
Char.SetShootRate(291@, 35)
Task.StayInSamePlace(291@, True)
Char.SetDecisionMaker(291@, 36@)
301@ = 0
292@ = Char.Create(PedType.Mission2, 110, 1289.562, -801.537, 1088.93)
Char.SetHeading(292@, 155.5354)
Char.SetAreaVisible(292@, 5)
Char.GiveWeapon(292@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(292@, WeaponType.Mp5)
Char.SetAccuracy(292@, 50)
Char.SetShootRate(292@, 35)
Task.StayInSamePlace(292@, True)
Char.SetDecisionMaker(292@, 36@)
302@ = 0
293@ = Char.Create(PedType.Mission2, 110, 1272.797, -812.8729, 1088.93)
Char.SetHeading(293@, 263.3181)
Char.SetAreaVisible(293@, 5)
Char.GiveWeapon(293@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(293@, WeaponType.Mp5)
Char.SetAccuracy(293@, 60)
Char.SetShootRate(293@, 45)
Task.StayInSamePlace(293@, True)
Char.SetDecisionMaker(293@, 36@)
303@ = 0
294@ = Char.Create(PedType.Mission2, 110, 1292.816, -821.3403, 1088.93)
Char.SetHeading(294@, 96.7033)
Char.SetAreaVisible(294@, 5)
Char.GiveWeapon(294@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(294@, WeaponType.Mp5)
Char.SetAccuracy(294@, 60)
Char.SetShootRate(294@, 45)
Task.StayInSamePlace(294@, True)
Char.SetDecisionMaker(294@, 36@)
304@ = 0
295@ = Char.Create(PedType.Mission2, 108, 1292.17, -814.6696, 1088.93)
Char.SetHeading(295@, 136.5314)
Char.SetAreaVisible(295@, 5)
Char.GiveWeapon(295@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(295@, WeaponType.Mp5)
Char.SetAccuracy(295@, 60)
Char.SetShootRate(295@, 45)
Task.StayInSamePlace(295@, True)
Char.SetDecisionMaker(295@, 36@)
305@ = 0
477@ = -1
478@ = -1
479@ = -1
480@ = 8000
481@ = 4000
482@ = 0
472@ = 1
488@ = 8000
157@ += 1

:MANSIO1_24465
goto @MANSIO1_28153

:MANSIO1_24472
418@ = 1280.15
419@ = -791.93
420@ = 1284.45
421@ = -795.42
gosub @MANSIO1_29026
if 
  417@ == 0
goto_if_false @MANSIO1_24544
goto @MANSIO1_28153

:MANSIO1_24544
Char.MarkAsNoLongerNeeded(145@)
410@ = Math.RandomIntInRange(0, 2)
if 
  410@ == 0
goto_if_false @MANSIO1_24632
230@ = Char.Create(PedType.Mission2, 108, 1278.607, -801.3676, 1088.93)
316@ = Char.Create(PedType.Mission3, 195, 1286.281, -809.3582, 1088.93)
goto @MANSIO1_24681

:MANSIO1_24632
230@ = Char.Create(PedType.Mission2, 108, 1286.281, -809.3582, 1088.93)
316@ = Char.Create(PedType.Mission3, 195, 1278.607, -801.3676, 1088.93)

:MANSIO1_24681
Char.SetHeading(230@, 0.0)
Char.SetHealth(230@, 200)
Char.SetMaxHealth(230@, 200)
Char.SetAreaVisible(230@, 5)
Char.GiveWeapon(230@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(230@, WeaponType.Mp5)
Char.SetAccuracy(230@, 70)
Char.SetShootRate(230@, 60)
Char.SetDecisionMaker(230@, 36@)
if 
  410@ == 0
goto_if_false @MANSIO1_24785
Task.WeaponRoll(230@, True)
goto @MANSIO1_24792

:MANSIO1_24785
Task.WeaponRoll(230@, False)

:MANSIO1_24792
250@ = 0
Char.SetHeading(316@, 0.0)
Char.SetAreaVisible(316@, 5)
Char.SetDecisionMaker(316@, 37@)
320@ = 0
157@ += 1

:MANSIO1_24838
418@ = 1284.939
419@ = -799.527
420@ = 1279.67
421@ = -803.5135
gosub @MANSIO1_29026
if 
  417@ == 0
goto_if_false @MANSIO1_24910
goto @MANSIO1_28153

:MANSIO1_24910
413@ = 1
47@ = Blip.AddForCoord(1227.226, -834.4195, 1083.008)
Blip.SetEntryExit(47@, 1258.338, -785.4264, 91.0313)
Blip.SetCoordAppearance(47@, 2)
472@ = 0
488@ = 10000
157@ += 1

:MANSIO1_24986
418@ = 1284.94
419@ = -823.43
420@ = 1280.15
421@ = -818.35
gosub @MANSIO1_29026
if 
  417@ == 0
goto_if_false @MANSIO1_25058
goto @MANSIO1_28153

:MANSIO1_25058
231@ = Char.Create(PedType.Mission2, 110, 1267.936, -836.5694, 1084.633)
Char.SetHeading(231@, 312.4274)
Char.SetHealth(231@, 200)
Char.SetMaxHealth(231@, 200)
Char.SetAreaVisible(231@, 5)
Char.GiveWeapon(231@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(231@, WeaponType.Mp5)
Char.SetAccuracy(231@, 60)
Char.SetShootRate(231@, 60)
Task.ToggleDuck(231@, True)
Char.SetDecisionMaker(231@, 36@)
251@ = 0
232@ = Char.Create(PedType.Mission2, 108, 1272.94, -837.6696, 1084.633)
Char.SetHeading(232@, 325.2802)
Char.SetHealth(232@, 200)
Char.SetMaxHealth(232@, 200)
Char.SetAreaVisible(232@, 5)
Char.GiveWeapon(232@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(232@, WeaponType.Mp5)
Char.SetAccuracy(232@, 60)
Char.SetShootRate(232@, 60)
Task.ToggleDuck(232@, True)
Char.SetDecisionMaker(232@, 36@)
252@ = 0
233@ = Char.Create(PedType.Mission2, 110, 1278.936, -837.8117, 1084.633)
Char.SetHeading(233@, 354.8666)
Char.SetHealth(233@, 200)
Char.SetMaxHealth(233@, 200)
Char.SetAreaVisible(233@, 5)
Char.GiveWeapon(233@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(233@, WeaponType.Mp5)
Char.SetAccuracy(233@, 60)
Char.SetShootRate(233@, 60)
Task.ToggleDuck(233@, True)
Char.SetDecisionMaker(233@, 36@)
253@ = 0
234@ = Char.Create(PedType.Mission2, 108, 1293.434, -837.4308, 1084.633)
Char.SetHeading(234@, 84.6034)
Char.SetHealth(234@, 200)
Char.SetMaxHealth(234@, 200)
Char.SetAreaVisible(234@, 5)
Char.GiveWeapon(234@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(234@, WeaponType.Mp5)
Char.SetAccuracy(234@, 60)
Char.SetShootRate(234@, 60)
Task.ToggleDuck(234@, True)
Char.SetDecisionMaker(234@, 36@)
254@ = 0
235@ = Char.Create(PedType.Mission2, 110, 1288.788, -832.1437, 1084.633)
Char.SetHeading(235@, 93.3971)
Char.SetHealth(235@, 200)
Char.SetMaxHealth(235@, 200)
Char.SetAreaVisible(235@, 5)
Char.GiveWeapon(235@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(235@, WeaponType.Mp5)
Char.SetAccuracy(235@, 60)
Char.SetShootRate(235@, 60)
Task.ToggleDuck(235@, True)
Char.SetDecisionMaker(235@, 36@)
255@ = 0
236@ = Char.Create(PedType.Mission2, 108, 1279.452, -818.7137, 1084.633)
Char.SetHeading(236@, 169.7489)
Char.SetHealth(236@, 200)
Char.SetMaxHealth(236@, 200)
Char.SetAreaVisible(236@, 5)
Char.GiveWeapon(236@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(236@, WeaponType.Mp5)
Char.SetAccuracy(236@, 30)
Char.SetShootRate(236@, 50)
Task.ToggleDuck(236@, True)
Char.SetDecisionMaker(236@, 36@)
256@ = 0
317@ = Char.Create(PedType.Mission3, 13, 1292.736, -832.9896, 1084.633)
Char.SetHeading(317@, 90.0)
Char.SetAreaVisible(317@, 5)
Char.SetDecisionMaker(317@, 37@)
321@ = 0
318@ = Char.Create(PedType.Mission3, 195, 1277.984, -813.5414, 1084.64)
Char.SetHeading(318@, 180.0)
Char.SetAreaVisible(318@, 5)
Char.SetDecisionMaker(318@, 37@)
322@ = 0
157@ += 1

:MANSIO1_25838
if 
  Char.IsInArea2D($scplayer, 1266.533, -831.5337, 1261.282, -838.8454, False)
goto_if_false @MANSIO1_26532
237@ = Char.Create(PedType.Mission2, 110, 1253.758, -826.5505, 1083.008)
Char.SetHeading(237@, 197.3586)
Char.SetHealth(237@, 200)
Char.SetMaxHealth(237@, 200)
Char.SetAreaVisible(237@, 5)
Char.GiveWeapon(237@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(237@, WeaponType.Mp5)
Char.SetAccuracy(237@, 60)
Char.SetShootRate(237@, 70)
Task.ToggleDuck(237@, True)
Char.SetDecisionMaker(237@, 36@)
Task.GoStraightToCoord(237@, 1255.499, -831.5446, 1083.008, MoveState.Run, -1)
257@ = 0
238@ = Char.Create(PedType.Mission2, 108, 1233.705, -827.7943, 1083.008)
Char.SetHeading(238@, 180.0)
Char.SetHealth(238@, 200)
Char.SetMaxHealth(238@, 200)
Char.SetAreaVisible(238@, 5)
Char.GiveWeapon(238@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(238@, WeaponType.Mp5)
Char.SetAccuracy(238@, 60)
Char.SetShootRate(238@, 70)
Char.SetDecisionMaker(238@, 34@)
258@ = 0
45@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1234.104, -832.2075, 1083.008, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 1238.847, -833.2389, 1083.008, MoveState.Run, -1)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Task.SetCharDecisionMaker(-1, 36@)
Sequence.Close(45@)
Char.PerformSequence(238@, 45@)
Sequence.Clear(45@)
328@ = Char.Create(PedType.Mission2, 109, 1227.226, -834.4195, 1083.008)
Char.SetHeading(328@, 270.0)
Char.SetProofs(328@, True, True, True, True, True)
Char.SetDecisionMaker(328@, 34@)
Char.SetNeverTargeted(328@, True)
Blip.Remove(47@)
329@ = Blip.AddForChar(328@)
Blip.SetEntryExit(329@, 1258.338, -785.4264, 91.0313)
Blip.ChangeDisplay(329@, BlipDisplay.MarkerOnly)
516@ = 1227.315
517@ = -831.5784
45@ = Sequence.Open()
Task.WeaponRoll(-1, True)
Task.StandStill(-1, 2000)
Task.GoStraightToCoord(-1, 516@, 517@, 1083.008, MoveState.Run, -1)
Sequence.Close(45@)
Char.PerformSequence(328@, 45@)
Sequence.Clear(45@)
518@ = 1225.194
519@ = -816.5573
520@ = 270.0
514@ = 0
set_var_int_to_constant $load_sample = 9404
set_var_text_label s$load_text = 'MAN1_BA'
start_new_script @A_ALAP 2 200 328@ 
330@ = 1
415@ = -1
319@ = Char.Create(PedType.Mission3, 13, 1240.835, -826.6857, 1082.156)
Char.SetHeading(319@, 143.0862)
Char.SetAreaVisible(319@, 5)
Char.SetDecisionMaker(319@, 37@)
323@ = 0
157@ += 1

:MANSIO1_26532
if 
  Char.IsInArea3D($scplayer, 1229.934, -835.5339, 1082.5, 1224.882, -838.8135, 1085.5, False)
goto_if_false @MANSIO1_26750
if 
  515@ == 0
goto_if_false @MANSIO1_26621
Text.PrintNow('MAN1_21', 8000, 1)
515@ = 1

:MANSIO1_26621
if 
  not Char.IsDead(328@)
goto_if_false @MANSIO1_26743
Char.ClearTasksImmediately(328@)
Char.SetCoordinates(328@, 518@, 519@, 1083.01)
Char.SetHeading(328@, 520@)
516@ = 1231.282
517@ = -816.6354
Task.GoStraightToCoord(328@, 516@, 517@, 1083.015, MoveState.Run, -1)
518@ = 1256.583
519@ = -812.8542
520@ = 270.0
514@ = 0

:MANSIO1_26743
157@ += 1

:MANSIO1_26750
goto @MANSIO1_28153

:MANSIO1_26757
if 
  Char.IsInArea3D($scplayer, 1228.68, -829.9222, 1082.5, 1224.883, -825.2996, 1085.5, False)
goto_if_false @MANSIO1_26922
239@ = Char.Create(PedType.Mission2, 108, 1228.808, -812.9333, 1083.008)
Char.SetHeading(239@, 180.0)
Char.SetHealth(239@, 200)
Char.SetMaxHealth(239@, 200)
Char.SetAreaVisible(239@, 5)
Char.GiveWeapon(239@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(239@, WeaponType.Mp5)
Char.SetAccuracy(239@, 60)
Char.SetShootRate(239@, 70)
Char.SetDecisionMaker(239@, 36@)
Task.WeaponRoll(239@, True)
259@ = 0
157@ += 1

:MANSIO1_26922
goto @MANSIO1_28153

:MANSIO1_26929
if 
  Char.IsInArea3D($scplayer, 1229.799, -810.6401, 1082.5, 1224.884, -819.0158, 1085.5, False)
goto_if_false @MANSIO1_27151
if 
  not Char.IsDead(328@)
goto_if_false @MANSIO1_27144
Char.ClearTasksImmediately(328@)
Char.SetCoordinates(328@, 518@, 519@, 1083.01)
Char.SetHeading(328@, 520@)
516@ = 1262.628
517@ = -805.6454
45@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1261.444, -812.2836, 1083.015, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 516@, 517@, 1083.015, MoveState.Run, -1)
Sequence.Close(45@)
Char.PerformSequence(328@, 45@)
Sequence.Clear(45@)
518@ = 1266.928
519@ = -801.9423
520@ = 270.0
514@ = 0

:MANSIO1_27144
157@ += 1

:MANSIO1_27151
goto @MANSIO1_28153

:MANSIO1_27158
if 
  Char.IsInArea3D($scplayer, 1254.281, -810.6465, 1082.5, 1264.045, -813.9205, 1085.5, False)
goto_if_false @MANSIO1_27380
if 
  not Char.IsDead(328@)
goto_if_false @MANSIO1_27366
Char.ClearTasksImmediately(328@)
Char.SetCoordinates(328@, 518@, 519@, 1083.01)
Char.SetHeading(328@, 520@)
516@ = 1274.634
517@ = -801.9045
Task.GoStraightToCoord(328@, 516@, 517@, 1083.015, MoveState.Run, -1)
518@ = 1257.388
519@ = -789.8594
520@ = 90.0
514@ = 0
set_var_int_to_constant $load_sample = 9405
set_var_text_label s$load_text = 'MAN1_BB'
start_new_script @A_ALAP 2 200 328@ 

:MANSIO1_27366
157@ += 1
gosub @MANSIO1_35546

:MANSIO1_27380
goto @MANSIO1_28153

:MANSIO1_27387
if 
  Char.IsInArea3D($scplayer, 1278.469, -791.9025, 1082.5, 1285.187, -786.7327, 1085.5, False)
goto_if_false @MANSIO1_27647
if 
  not Char.IsDead(328@)
goto_if_false @MANSIO1_27640
Char.ClearTasksImmediately(328@)
Char.SetCoordinates(328@, 518@, 519@, 1083.01)
Char.SetHeading(328@, 520@)
516@ = 1249.665
517@ = -782.4513
45@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1250.071, -788.768, 1083.015, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 516@, 517@, 1083.015, MoveState.Run, -1)
Sequence.Close(45@)
Char.PerformSequence(328@, 45@)
Sequence.Clear(45@)
518@ = 1265.614
519@ = -769.7585
520@ = 270.0
514@ = 0
set_var_int_to_constant $load_sample = 9406
set_var_text_label s$load_text = 'MAN1_BC'
start_new_script @A_ALAP 2 200 328@ 

:MANSIO1_27640
157@ += 1

:MANSIO1_27647
goto @MANSIO1_28153

:MANSIO1_27654
if 
  Char.IsInArea3D($scplayer, 1251.285, -775.3042, 1082.5, 1247.005, -765.7498, 1085.5, False)
goto_if_false @MANSIO1_27876
if 
  not Char.IsDead(328@)
goto_if_false @MANSIO1_27869
Char.ClearTasksImmediately(328@)
Char.SetCoordinates(328@, 518@, 519@, 1083.01)
Char.SetHeading(328@, 520@)
516@ = 1269.674
517@ = -774.7773
45@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1269.4, -769.4953, 1083.015, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 516@, 517@, 1083.015, MoveState.Run, -1)
Sequence.Close(45@)
Char.PerformSequence(328@, 45@)
Sequence.Clear(45@)
518@ = 1280.115
519@ = -781.6223
520@ = 270.0
514@ = 0

:MANSIO1_27869
157@ += 1

:MANSIO1_27876
goto @MANSIO1_28153

:MANSIO1_27883
if 
  Char.IsInArea3D($scplayer, 1260.289, -765.4207, 1082.5, 1267.524, -774.8633, 1085.5, False)
goto_if_false @MANSIO1_28146
if 
  not Char.IsDead(328@)
goto_if_false @MANSIO1_28139
Char.ClearTasksImmediately(328@)
Char.SetCoordinates(328@, 518@, 519@, 1083.01)
Char.SetHeading(328@, 520@)
516@ = 1301.081
517@ = -786.3077
45@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1288.806, -780.5795, 1083.015, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 1300.839, -781.0582, 1083.015, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 516@, 517@, 1083.015, MoveState.Run, -1)
Sequence.Close(45@)
Char.PerformSequence(328@, 45@)
Sequence.Clear(45@)
518@ = -1.0
514@ = 0
set_var_int_to_constant $load_sample = 9407
set_var_text_label s$load_text = 'MAN1_BD'
start_new_script @A_ALAP 2 200 328@ 

:MANSIO1_28139
157@ += 1

:MANSIO1_28146
goto @MANSIO1_28153

:MANSIO1_28153
return 

:MANSIO1_28155
if 
  415@ == 0
goto_if_false @MANSIO1_28951
43@ = 0

:MANSIO1_28180
if 
  4 > 43@
goto_if_false @MANSIO1_28944
if 
  411@(43@,4i) == 1
goto_if_false @MANSIO1_28930
switch_start 43@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_28930 {caseNum1} 0 {caseLabel1} @MANSIO1_28283 {caseNum2} 1 {caseLabel2} @MANSIO1_28335 {caseNum3} 2 {caseLabel3} @MANSIO1_28610 {caseNum4} 3 {caseLabel4} @MANSIO1_28662 {caseNum5} -1 {caseLabel5} @MANSIO1_28930 {caseNum6} -1 {caseLabel6} @MANSIO1_28930 {caseNum7} -1 {caseLabel7} @MANSIO1_28930

:MANSIO1_28283
Text.PrintNow('MAN1_13', 8000, 1)
415@ = 1
set_lvar_int_to_lvar_int 416@ = 43@
TIMERB = 0
43@ = 4
goto @MANSIO1_28930

:MANSIO1_28335
if 
  not Char.IsDead(143@)
goto_if_false @MANSIO1_28483
if 
  Char.LocateOnFootChar3D($scplayer, 143@, 35.0, 35.0, 4.0, False)
goto_if_false @MANSIO1_28469
if 
  not Char.IsDead(144@)
goto_if_false @MANSIO1_28432
set_var_int_to_constant $load_sample = 9422
set_var_text_label s$load_text = 'MAN1_FA'
goto @MANSIO1_28454

:MANSIO1_28432
set_var_int_to_constant $load_sample = 9423
set_var_text_label s$load_text = 'MAN1_FB'

:MANSIO1_28454
start_new_script @A_ALAP 2 100 143@ 

:MANSIO1_28469
415@ = 1
goto @MANSIO1_28563

:MANSIO1_28483
if 
  Char.LocateOnFootChar3D($scplayer, 144@, 35.0, 35.0, 4.0, False)
goto_if_false @MANSIO1_28556
set_var_int_to_constant $load_sample = 9430
set_var_text_label s$load_text = 'MAN1_FJ'
start_new_script @A_ALAP 2 100 144@ 

:MANSIO1_28556
415@ = 1

:MANSIO1_28563
if 
  415@ == 1
goto_if_false @MANSIO1_28603
set_lvar_int_to_lvar_int 416@ = 43@
TIMERB = 0
43@ = 4

:MANSIO1_28603
goto @MANSIO1_28930

:MANSIO1_28610
Text.PrintNow('MAN1_20', 8000, 1)
415@ = 1
set_lvar_int_to_lvar_int 416@ = 43@
TIMERB = 0
43@ = 4
goto @MANSIO1_28930

:MANSIO1_28662
if 
  not Char.IsDead(143@)
goto_if_false @MANSIO1_28810
if 
  Char.LocateOnFootChar3D($scplayer, 143@, 35.0, 35.0, 4.0, False)
goto_if_false @MANSIO1_28796
if 
  not Char.IsDead(144@)
goto_if_false @MANSIO1_28759
set_var_int_to_constant $load_sample = 9428
set_var_text_label s$load_text = 'MAN1_FG'
goto @MANSIO1_28781

:MANSIO1_28759
set_var_int_to_constant $load_sample = 9429
set_var_text_label s$load_text = 'MAN1_FH'

:MANSIO1_28781
start_new_script @A_ALAP 2 100 143@ 

:MANSIO1_28796
415@ = 1
goto @MANSIO1_28890

:MANSIO1_28810
if 
  Char.LocateOnFootChar3D($scplayer, 144@, 35.0, 35.0, 4.0, False)
goto_if_false @MANSIO1_28883
set_var_int_to_constant $load_sample = 9435
set_var_text_label s$load_text = 'MAN1_FO'
start_new_script @A_ALAP 2 100 144@ 

:MANSIO1_28883
415@ = 1

:MANSIO1_28890
if 
  415@ == 1
goto_if_false @MANSIO1_28930
set_lvar_int_to_lvar_int 416@ = 43@
TIMERB = 0
43@ = 4

:MANSIO1_28930
43@ += 1
goto @MANSIO1_28180

:MANSIO1_28944
goto @MANSIO1_29024

:MANSIO1_28951
if 
  415@ == 1
goto_if_false @MANSIO1_29024
if 
  TIMERB > 8000
goto_if_false @MANSIO1_29024
if 
  416@ <> -1
goto_if_false @MANSIO1_29017
411@(416@,4i) = -1

:MANSIO1_29017
415@ = 0

:MANSIO1_29024
return 

:MANSIO1_29026
417@ = 0
if 
  Char.IsInArea2D($scplayer, 418@, 419@, 420@, 421@, False)
goto_if_false @MANSIO1_29072
417@ = 1
return 

:MANSIO1_29072
if 
  not Char.IsDead(143@)
goto_if_false @MANSIO1_29127
if 
  Char.IsInArea2D(143@, 418@, 419@, 420@, 421@, False)
goto_if_false @MANSIO1_29127
417@ = 1
return 

:MANSIO1_29127
if 
  not Char.IsDead(144@)
goto_if_false @MANSIO1_29182
if 
  Char.IsInArea2D(144@, 418@, 419@, 420@, 421@, False)
goto_if_false @MANSIO1_29182
417@ = 1
return 

:MANSIO1_29182
return 

:MANSIO1_29184
430@ = 0
431@ = 1

:MANSIO1_29198
if 
  2 > 430@
goto_if_false @MANSIO1_30961
if 
  not Char.IsDead(143@(430@,3i))
goto_if_false @MANSIO1_30763
switch_start 149@(430@,3i) {numCases} 18 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_30756 {caseNum1} 0 {caseLabel1} @MANSIO1_29433 {caseNum2} 1 {caseLabel2} @MANSIO1_29433 {caseNum3} 2 {caseLabel3} @MANSIO1_29497 {caseNum4} 3 {caseLabel4} @MANSIO1_29497 {caseNum5} 4 {caseLabel5} @MANSIO1_29559 {caseNum6} 5 {caseLabel6} @MANSIO1_29559 {caseNum7} 6 {caseLabel7} @MANSIO1_29684
switch_continued 7 {caseLabel1} @MANSIO1_29684 {caseNum2} 8 {caseLabel2} @MANSIO1_29752 {caseNum3} 9 {caseLabel3} @MANSIO1_29854 {caseNum4} 10 {caseLabel4} @MANSIO1_29907 {caseNum5} 11 {caseLabel5} @MANSIO1_29983 {caseNum6} 12 {caseLabel6} @MANSIO1_30089 {caseNum7} 13 {caseLabel7} @MANSIO1_30199 {caseNum8} 14 {caseLabel8} @MANSIO1_30266 {caseNum9} 15 {caseLabel9} @MANSIO1_30361
switch_continued 16 {caseLabel1} @MANSIO1_30550 {caseNum2} 17 {caseLabel2} @MANSIO1_30618 {caseNum3} -1 {caseLabel3} @MANSIO1_30756 {caseNum4} -1 {caseLabel4} @MANSIO1_30756 {caseNum5} -1 {caseLabel5} @MANSIO1_30756 {caseNum6} -1 {caseLabel6} @MANSIO1_30756 {caseNum7} -1 {caseLabel7} @MANSIO1_30756 {caseNum8} -1 {caseLabel8} @MANSIO1_30756 {caseNum9} -1 {caseLabel9} @MANSIO1_30756

:MANSIO1_29433
if or
  246@ <> -1
  247@ <> -1
  248@ <> -1
  249@ <> -1
goto_if_false @MANSIO1_29479
goto @MANSIO1_30756

:MANSIO1_29479
149@(430@,3i) += 2
goto @MANSIO1_30756

:MANSIO1_29497
Char.ClearTasks(143@(430@,3i))
Char.SetDecisionMaker(143@(430@,3i), 35@)
422@(430@,2i) = -1
set_lvar_int_to_lvar_int 424@(430@,2i) = 430@
149@(430@,3i) += 2
goto @MANSIO1_30756

:MANSIO1_29559
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_29595
gosub @MANSIO1_30963
goto @MANSIO1_29677

:MANSIO1_29595
Char.ClearTasks(143@(430@,3i))
Char.SetDecisionMaker(143@(430@,3i), 36@)
Task.ToggleDuck(143@(430@,3i), True)
set_lvar_int_to_lvar_int 433@ = 424@(430@,2i)
Task.AchieveHeading(143@(430@,3i), 394@(433@,16f))
422@(430@,2i) = -1
149@(430@,3i) += 2

:MANSIO1_29677
goto @MANSIO1_30756

:MANSIO1_29684
if 
  157@ > 0
goto_if_false @MANSIO1_29745
149@(430@,3i) += 2
if 
  432@ == 0
goto_if_false @MANSIO1_29745
412@ = 1
432@ = 1

:MANSIO1_29745
goto @MANSIO1_30756

:MANSIO1_29752
if 
  not Char.IsDead(143@(431@,3i))
goto_if_false @MANSIO1_29801
if 
  149@(431@,3i) <> 13
goto_if_false @MANSIO1_29801
goto @MANSIO1_30756

:MANSIO1_29801
Char.SetDecisionMaker(143@(430@,3i), 35@)
422@(430@,2i) = -1
set_lvar_int_to_lvar_int 424@(430@,2i) = 344@
149@(430@,3i) += 2
goto @MANSIO1_30756

:MANSIO1_29854
Char.SetDecisionMaker(143@(430@,3i), 35@)
422@(430@,2i) = -1
set_lvar_int_to_lvar_int 424@(430@,2i) = 345@
149@(430@,3i) += 2
goto @MANSIO1_30756

:MANSIO1_29907
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_29943
gosub @MANSIO1_30963
goto @MANSIO1_29976

:MANSIO1_29943
426@(430@,2i) = 1
422@(430@,2i) = -1
149@(430@,3i) += 2

:MANSIO1_29976
goto @MANSIO1_30756

:MANSIO1_29983
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_30019
gosub @MANSIO1_30963
goto @MANSIO1_30082

:MANSIO1_30019
Char.SetDecisionMaker(143@(430@,3i), 36@)
Task.StayInSamePlace(143@(430@,3i), True)
Task.ToggleDuck(143@(430@,3i), True)
422@(430@,2i) = -1
345@ += 1
149@(430@,3i) += 2

:MANSIO1_30082
goto @MANSIO1_30756

:MANSIO1_30089
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_30125
gosub @MANSIO1_30963
goto @MANSIO1_30192

:MANSIO1_30125
Char.SetDecisionMaker(143@(430@,3i), 36@)
Task.StayInSamePlace(143@(430@,3i), True)
Task.ToggleDuck(143@(430@,3i), True)
422@(430@,2i) = -1
437@(430@,2i) = -1
149@(430@,3i) += 2

:MANSIO1_30192
goto @MANSIO1_30756

:MANSIO1_30199
if 
  not Char.IsDead(143@(431@,3i))
goto_if_false @MANSIO1_30248
if 
  149@(431@,3i) <> 11
goto_if_false @MANSIO1_30248
goto @MANSIO1_30756

:MANSIO1_30248
149@(430@,3i) -= 5
goto @MANSIO1_30756

:MANSIO1_30266
gosub @MANSIO1_31608
if 
  439@ == 1
goto_if_false @MANSIO1_30354
439@ = 0
Char.SetDecisionMaker(143@(430@,3i), 35@)
Task.ToggleDuck(143@(430@,3i), False)
426@(430@,2i) = 0
422@(430@,2i) = -1
149@(430@,3i) += 1

:MANSIO1_30354
goto @MANSIO1_30756

:MANSIO1_30361
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_30397
gosub @MANSIO1_30963
goto @MANSIO1_30543

:MANSIO1_30397
if 
  344@ == 8
goto_if_false @MANSIO1_30471
149@(430@,3i) = 16
if 
  not Char.IsDead(143@(431@,3i))
goto_if_false @MANSIO1_30457
149@(431@,3i) = 16

:MANSIO1_30457
414@ = 1
goto @MANSIO1_30543

:MANSIO1_30471
422@(430@,2i) = -1
if 
  not Char.IsDead(143@(431@,3i))
goto_if_false @MANSIO1_30532
set_lvar_int_to_lvar_int 424@(430@,2i) = 345@
149@(430@,3i) -= 4
goto @MANSIO1_30543

:MANSIO1_30532
149@(430@,3i) -= 7

:MANSIO1_30543
goto @MANSIO1_30756

:MANSIO1_30550
Char.SetDecisionMaker(143@(430@,3i), 35@)
422@(430@,2i) = -1
433@ = 14
add_int_lvar_to_int_lvar 433@ += 430@
set_lvar_int_to_lvar_int 424@(430@,2i) = 433@
149@(430@,3i) += 1
goto @MANSIO1_30756

:MANSIO1_30618
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_30654
gosub @MANSIO1_30963
goto @MANSIO1_30749

:MANSIO1_30654
Char.SetDecisionMaker(143@(430@,3i), 36@)
Task.StayInSamePlace(143@(430@,3i), True)
if 
  424@(430@,2i) == 14
goto_if_false @MANSIO1_30710
Task.ToggleDuck(143@(430@,3i), True)

:MANSIO1_30710
set_lvar_int_to_lvar_int 433@ = 424@(430@,2i)
Task.AchieveHeading(143@(430@,3i), 394@(433@,16f))
149@(430@,3i) += 1

:MANSIO1_30749
goto @MANSIO1_30756

:MANSIO1_30756
goto @MANSIO1_30940

:MANSIO1_30763
if 
  149@(430@,3i) <> -2
goto_if_false @MANSIO1_30940
switch_start 149@(430@,3i) {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO1_30852 {caseNum1} -1 {caseLabel1} @MANSIO1_30881 {caseNum2} -1 {caseLabel2} @MANSIO1_30940 {caseNum3} -1 {caseLabel3} @MANSIO1_30940 {caseNum4} -1 {caseLabel4} @MANSIO1_30940 {caseNum5} -1 {caseLabel5} @MANSIO1_30940 {caseNum6} -1 {caseLabel6} @MANSIO1_30940 {caseNum7} -1 {caseLabel7} @MANSIO1_30940

:MANSIO1_30852
164@(430@,3i) = 0
149@(430@,3i) = -1
goto @MANSIO1_30940

:MANSIO1_30881
if 
  10000 > 164@(430@,3i)
goto_if_false @MANSIO1_30911
goto @MANSIO1_30940

:MANSIO1_30911
Char.RemoveElegantly(143@(430@,3i))
Streaming.MarkModelAsNoLongerNeeded(428@(430@,2i))
149@(430@,3i) -= 1

:MANSIO1_30940
430@ += 1
431@ -= 1
goto @MANSIO1_29198

:MANSIO1_30961
return 

:MANSIO1_30963
set_lvar_int_to_lvar_int 433@ = 424@(430@,2i)
set_lvar_float_to_lvar_float 434@ = 346@(433@,16f)
set_lvar_float_to_lvar_float 435@ = 362@(433@,16f)
set_lvar_float_to_lvar_float 436@ = 378@(433@,16f)
if 
  426@(430@,2i) == 1
goto_if_false @MANSIO1_31130
switch_start 344@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_31130 {caseNum1} 2 {caseLabel1} @MANSIO1_31096 {caseNum2} 3 {caseLabel2} @MANSIO1_31113 {caseNum3} 4 {caseLabel3} @MANSIO1_31096 {caseNum4} 5 {caseLabel4} @MANSIO1_31113 {caseNum5} 6 {caseLabel5} @MANSIO1_31096 {caseNum6} 7 {caseLabel6} @MANSIO1_31113 {caseNum7} -1 {caseLabel7} @MANSIO1_31130

:MANSIO1_31096
434@ -= 3.5
goto @MANSIO1_31130

:MANSIO1_31113
434@ += 3.5
goto @MANSIO1_31130

:MANSIO1_31130
switch_start 422@(430@,2i) {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_31606 {caseNum1} -1 {caseLabel1} @MANSIO1_31197 {caseNum2} 0 {caseLabel2} @MANSIO1_31310 {caseNum3} 1 {caseLabel3} @MANSIO1_31361 {caseNum4} 2 {caseLabel4} @MANSIO1_31525 {caseNum5} -1 {caseLabel5} @MANSIO1_31606 {caseNum6} -1 {caseLabel6} @MANSIO1_31606 {caseNum7} -1 {caseLabel7} @MANSIO1_31606

:MANSIO1_31197
if 
  Char.IsRespondingToEvent(143@(430@,3i), -1)
goto_if_false @MANSIO1_31248
Task.StayInSamePlace(143@(430@,3i), True)
422@(430@,2i) = 0
goto @MANSIO1_31303

:MANSIO1_31248
Task.StayInSamePlace(143@(430@,3i), False)
Task.ToggleDuck(143@(430@,3i), False)
Task.GoStraightToCoord(143@(430@,3i), 434@, 435@, 436@, MoveState.Run, -2)
422@(430@,2i) = 1

:MANSIO1_31303
goto @MANSIO1_31606

:MANSIO1_31310
if 
  not Char.IsRespondingToEvent(143@(430@,3i), -1)
goto_if_false @MANSIO1_31354
164@(430@,3i) = 0
422@(430@,2i) = 2

:MANSIO1_31354
goto @MANSIO1_31606

:MANSIO1_31361
if 
  Char.IsRespondingToEvent(143@(430@,3i), -1)
goto_if_false @MANSIO1_31401
422@(430@,2i) = -1
goto @MANSIO1_31518

:MANSIO1_31401
if 
  Char.LocateOnFoot3D(143@(430@,3i), 434@, 435@, 436@, 1.2, 1.2, 1.5, False)
goto_if_false @MANSIO1_31465
422@(430@,2i) = 3
goto @MANSIO1_31518

:MANSIO1_31465
50@ = Char.GetScriptTaskStatus(143@(430@,3i), 1491)
if 
  is_int_lvar_equal_to_constant 50@ == 7
goto_if_false @MANSIO1_31518
Char.ClearTasks(143@(430@,3i))
422@(430@,2i) = -1

:MANSIO1_31518
goto @MANSIO1_31606

:MANSIO1_31525
if 
  Char.IsRespondingToEvent(143@(430@,3i), -1)
goto_if_false @MANSIO1_31565
422@(430@,2i) = 0
goto @MANSIO1_31599

:MANSIO1_31565
if 
  164@(430@,3i) > 500
goto_if_false @MANSIO1_31599
422@(430@,2i) = -1

:MANSIO1_31599
goto @MANSIO1_31606

:MANSIO1_31606
return 

:MANSIO1_31608
switch_start 437@(430@,2i) {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_31862 {caseNum1} -1 {caseLabel1} @MANSIO1_31675 {caseNum2} 0 {caseLabel2} @MANSIO1_31726 {caseNum3} 1 {caseLabel3} @MANSIO1_31807 {caseNum4} -1 {caseLabel4} @MANSIO1_31862 {caseNum5} -1 {caseLabel5} @MANSIO1_31862 {caseNum6} -1 {caseLabel6} @MANSIO1_31862 {caseNum7} -1 {caseLabel7} @MANSIO1_31862

:MANSIO1_31675
if 
  not Char.IsRespondingToEvent(143@(430@,3i), -1)
goto_if_false @MANSIO1_31719
164@(430@,3i) = 0
437@(430@,2i) += 1

:MANSIO1_31719
goto @MANSIO1_31862

:MANSIO1_31726
if 
  Char.IsRespondingToEvent(143@(430@,3i), -1)
goto_if_false @MANSIO1_31766
437@(430@,2i) -= 1
goto @MANSIO1_31800

:MANSIO1_31766
if 
  164@(430@,3i) > 300
goto_if_false @MANSIO1_31800
437@(430@,2i) += 1

:MANSIO1_31800
goto @MANSIO1_31862

:MANSIO1_31807
gosub @MANSIO1_31864
if 
  439@ == 0
goto_if_false @MANSIO1_31855
164@(430@,3i) = 150
437@(430@,2i) -= 1

:MANSIO1_31855
goto @MANSIO1_31862

:MANSIO1_31862
return 

:MANSIO1_31864
439@ = 0
switch_start 344@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_32394 {caseNum1} 2 {caseLabel1} @MANSIO1_31934 {caseNum2} 3 {caseLabel2} @MANSIO1_32013 {caseNum3} 4 {caseLabel3} @MANSIO1_32092 {caseNum4} 5 {caseLabel4} @MANSIO1_32164 {caseNum5} 6 {caseLabel5} @MANSIO1_32243 {caseNum6} 7 {caseLabel6} @MANSIO1_32315 {caseNum7} -1 {caseLabel7} @MANSIO1_32394

:MANSIO1_31934
if and
  296@ == -1
  297@ == -1
goto_if_false @MANSIO1_32006
439@ = 1
440@ = 1271.341
441@ = -785.5189
442@ = 1278.642
443@ = -798.1946

:MANSIO1_32006
goto @MANSIO1_32394

:MANSIO1_32013
if and
  298@ == -1
  299@ == -1
goto_if_false @MANSIO1_32085
439@ = 1
440@ = 1285.97
441@ = -785.5347
442@ = 1293.101
443@ = -799.4673

:MANSIO1_32085
goto @MANSIO1_32394

:MANSIO1_32092
if 
  300@ == -1
goto_if_false @MANSIO1_32157
439@ = 1
440@ = 1271.417
441@ = -799.7592
442@ = 1278.639
443@ = -810.0243

:MANSIO1_32157
goto @MANSIO1_32394

:MANSIO1_32164
if and
  301@ == -1
  302@ == -1
goto_if_false @MANSIO1_32236
439@ = 1
440@ = 1285.959
441@ = -800.8917
442@ = 1293.121
443@ = -811.5349

:MANSIO1_32236
goto @MANSIO1_32394

:MANSIO1_32243
if 
  303@ == -1
goto_if_false @MANSIO1_32308
439@ = 1
440@ = 1271.434
441@ = -811.7203
442@ = 1278.597
443@ = -822.8848

:MANSIO1_32308
goto @MANSIO1_32394

:MANSIO1_32315
if and
  304@ == -1
  305@ == -1
goto_if_false @MANSIO1_32387
439@ = 1
440@ = 1285.944
441@ = -812.8881
442@ = 1293.238
443@ = -823.5223

:MANSIO1_32387
goto @MANSIO1_32394

:MANSIO1_32394
if 
  439@ == 1
goto_if_false @MANSIO1_32519
43@ = 0

:MANSIO1_32419
if 
  20 > 43@
goto_if_false @MANSIO1_32519
if 
  not Char.IsDead(226@(43@,20i))
goto_if_false @MANSIO1_32505
if 
  Char.IsInArea2D(226@(43@,20i), 440@, 441@, 442@, 443@, False)
goto_if_false @MANSIO1_32505
439@ = 0
43@ = 20

:MANSIO1_32505
43@ += 1
goto @MANSIO1_32419

:MANSIO1_32519
if 
  439@ == 1
goto_if_false @MANSIO1_32644
43@ = 0

:MANSIO1_32544
if 
  3 > 43@
goto_if_false @MANSIO1_32644
if 
  not Char.IsDead(474@(43@,3i))
goto_if_false @MANSIO1_32630
if 
  Char.IsInArea2D(474@(43@,3i), 440@, 441@, 442@, 443@, False)
goto_if_false @MANSIO1_32630
439@ = 0
43@ = 2

:MANSIO1_32630
43@ += 1
goto @MANSIO1_32544

:MANSIO1_32644
if 
  439@ == 1
goto_if_false @MANSIO1_32860
344@ += 1
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @MANSIO1_32860
if 
  Char.LocateOnFootChar3D($scplayer, 143@(430@,3i), 35.0, 35.0, 4.0, False)
goto_if_false @MANSIO1_32860
if 
  430@ == 0
goto_if_false @MANSIO1_32771
set_var_int_to_lvar_int $load_sample = 444@(452@,8i)
set_var_text_label s$load_text = 453@(452@,8s)
goto @MANSIO1_32809

:MANSIO1_32771
452@ += 4
set_var_int_to_lvar_int $load_sample = 444@(452@,8i)
set_var_text_label s$load_text = 453@(452@,8s)
452@ -= 4

:MANSIO1_32809
start_new_script @A_ALAP 2 100 143@(430@,3i) 
452@ += 1
if 
  452@ == 4
goto_if_false @MANSIO1_32860
452@ = 0

:MANSIO1_32860
return 

:MANSIO1_32862
43@ = 0

:MANSIO1_32869
if 
  20 > 43@
goto_if_false @MANSIO1_33074
switch_start 246@(43@,20i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_33060 {caseNum1} 0 {caseLabel1} @MANSIO1_32954 {caseNum2} 1 {caseLabel2} @MANSIO1_33010 {caseNum3} -1 {caseLabel3} @MANSIO1_33060 {caseNum4} -1 {caseLabel4} @MANSIO1_33060 {caseNum5} -1 {caseLabel5} @MANSIO1_33060 {caseNum6} -1 {caseLabel6} @MANSIO1_33060 {caseNum7} -1 {caseLabel7} @MANSIO1_33060

:MANSIO1_32954
if 
  not Char.IsDead(226@(43@,20i))
goto_if_false @MANSIO1_32988
goto @MANSIO1_33060
goto @MANSIO1_33010

:MANSIO1_32988
266@(43@,20i) = 0
246@(43@,20i) = 1

:MANSIO1_33010
if 
  266@(43@,20i) > 2500
goto_if_false @MANSIO1_33053
Char.MarkAsNoLongerNeeded(226@(43@,20i))
246@(43@,20i) = -1

:MANSIO1_33053
goto @MANSIO1_33060

:MANSIO1_33060
43@ += 1
goto @MANSIO1_32869

:MANSIO1_33074
43@ = 0

:MANSIO1_33081
if 
  10 > 43@
goto_if_false @MANSIO1_33286
switch_start 296@(43@,10i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_33272 {caseNum1} 0 {caseLabel1} @MANSIO1_33166 {caseNum2} 1 {caseLabel2} @MANSIO1_33222 {caseNum3} -1 {caseLabel3} @MANSIO1_33272 {caseNum4} -1 {caseLabel4} @MANSIO1_33272 {caseNum5} -1 {caseLabel5} @MANSIO1_33272 {caseNum6} -1 {caseLabel6} @MANSIO1_33272 {caseNum7} -1 {caseLabel7} @MANSIO1_33272

:MANSIO1_33166
if 
  not Char.IsDead(286@(43@,10i))
goto_if_false @MANSIO1_33200
goto @MANSIO1_33272
goto @MANSIO1_33222

:MANSIO1_33200
306@(43@,10i) = 0
296@(43@,10i) = 1

:MANSIO1_33222
if 
  306@(43@,10i) > 1800
goto_if_false @MANSIO1_33265
Char.MarkAsNoLongerNeeded(286@(43@,10i))
296@(43@,10i) = -1

:MANSIO1_33265
goto @MANSIO1_33272

:MANSIO1_33272
43@ += 1
goto @MANSIO1_33081

:MANSIO1_33286
43@ = 0

:MANSIO1_33293
if 
  4 > 43@
goto_if_false @MANSIO1_33498
switch_start 320@(43@,4i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_33484 {caseNum1} 0 {caseLabel1} @MANSIO1_33378 {caseNum2} 1 {caseLabel2} @MANSIO1_33434 {caseNum3} -1 {caseLabel3} @MANSIO1_33484 {caseNum4} -1 {caseLabel4} @MANSIO1_33484 {caseNum5} -1 {caseLabel5} @MANSIO1_33484 {caseNum6} -1 {caseLabel6} @MANSIO1_33484 {caseNum7} -1 {caseLabel7} @MANSIO1_33484

:MANSIO1_33378
if 
  not Char.IsDead(316@(43@,4i))
goto_if_false @MANSIO1_33412
goto @MANSIO1_33484
goto @MANSIO1_33434

:MANSIO1_33412
324@(43@,4i) = 0
320@(43@,4i) = 1

:MANSIO1_33434
if 
  324@(43@,4i) > 1800
goto_if_false @MANSIO1_33477
Char.MarkAsNoLongerNeeded(316@(43@,4i))
320@(43@,4i) = -1

:MANSIO1_33477
goto @MANSIO1_33484

:MANSIO1_33484
43@ += 1
goto @MANSIO1_33293

:MANSIO1_33498
return 

:MANSIO1_33500
$x, $y, $z = Char.GetCoordinates($scplayer)
if 
  $z > 1089.0
goto_if_false @MANSIO1_33909
if 
  $y > -784.0
goto_if_false @MANSIO1_33570
469@ = 0
goto @MANSIO1_33902

:MANSIO1_33570
if or
  1271.0 > $x
  $x > 1294.0
goto_if_false @MANSIO1_33615
469@ = 0
goto @MANSIO1_33902

:MANSIO1_33615
if 
  $y > -824.0
goto_if_false @MANSIO1_33895
if 
  1279.0 > $x
goto_if_false @MANSIO1_33741
if 
  $y > -799.0
goto_if_false @MANSIO1_33692
469@ = 1
goto @MANSIO1_33734

:MANSIO1_33692
if 
  $y > -811.0
goto_if_false @MANSIO1_33727
469@ = 3
goto @MANSIO1_33734

:MANSIO1_33727
469@ = 5

:MANSIO1_33734
goto @MANSIO1_33888

:MANSIO1_33741
if 
  $x > 1285.0
goto_if_false @MANSIO1_33846
if 
  $y > -800.0
goto_if_false @MANSIO1_33797
469@ = 2
goto @MANSIO1_33839

:MANSIO1_33797
if 
  $y > -812.0
goto_if_false @MANSIO1_33832
469@ = 4
goto @MANSIO1_33839

:MANSIO1_33832
469@ = 6

:MANSIO1_33839
goto @MANSIO1_33888

:MANSIO1_33846
if 
  $y > -806.0
goto_if_false @MANSIO1_33881
469@ = 7
goto @MANSIO1_33888

:MANSIO1_33881
469@ = 8

:MANSIO1_33888
goto @MANSIO1_33902

:MANSIO1_33895
469@ = 9

:MANSIO1_33902
goto @MANSIO1_33923

:MANSIO1_33909
489@ = 1
469@ = 10

:MANSIO1_33923
if 
  472@ == 1
goto_if_false @MANSIO1_33957
473@ = Math.RandomIntInRange(0, 2)
goto @MANSIO1_33964

:MANSIO1_33957
473@ = 0

:MANSIO1_33964
470@ = 0
if 
  489@ <> 1
goto_if_false @MANSIO1_34275
switch_start 469@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_34275 {caseNum1} 0 {caseLabel1} @MANSIO1_34117 {caseNum2} 1 {caseLabel2} @MANSIO1_34138 {caseNum3} 2 {caseLabel3} @MANSIO1_34138 {caseNum4} 3 {caseLabel4} @MANSIO1_34138 {caseNum5} 4 {caseLabel5} @MANSIO1_34191 {caseNum6} 5 {caseLabel6} @MANSIO1_34191 {caseNum7} 6 {caseLabel7} @MANSIO1_34212
switch_continued 7 {caseLabel1} @MANSIO1_34138 {caseNum2} 8 {caseLabel2} @MANSIO1_34233 {caseNum3} 9 {caseLabel3} @MANSIO1_34233 {caseNum4} 10 {caseLabel4} @MANSIO1_34254 {caseNum5} -1 {caseLabel5} @MANSIO1_34275 {caseNum6} -1 {caseLabel6} @MANSIO1_34275 {caseNum7} -1 {caseLabel7} @MANSIO1_34275 {caseNum8} -1 {caseLabel8} @MANSIO1_34275 {caseNum9} -1 {caseLabel9} @MANSIO1_34275

:MANSIO1_34117
set_local_var_bit_const 470@ {n} 1
set_local_var_bit_const 470@ {n} 2
goto @MANSIO1_34275

:MANSIO1_34138
if 
  473@ == 0
goto_if_false @MANSIO1_34170
set_local_var_bit_const 470@ {n} 2
goto @MANSIO1_34177

:MANSIO1_34170
set_local_var_bit_const 470@ {n} 5

:MANSIO1_34177
set_local_var_bit_const 470@ {n} 3
goto @MANSIO1_34275

:MANSIO1_34191
set_local_var_bit_const 470@ {n} 1
set_local_var_bit_const 470@ {n} 3
goto @MANSIO1_34275

:MANSIO1_34212
set_local_var_bit_const 470@ {n} 1
set_local_var_bit_const 470@ {n} 0
goto @MANSIO1_34275

:MANSIO1_34233
set_local_var_bit_const 470@ {n} 0
set_local_var_bit_const 470@ {n} 4
goto @MANSIO1_34275

:MANSIO1_34254
set_local_var_bit_const 470@ {n} 2
set_local_var_bit_const 470@ {n} 4
goto @MANSIO1_34275

:MANSIO1_34275
471@ = 1
return 

:MANSIO1_34284
486@ = 0

:MANSIO1_34291
if 
  3 > 486@
goto_if_false @MANSIO1_35149
if 
  not Char.IsDead(474@(486@,3i))
goto_if_false @MANSIO1_34537
switch_start 477@(486@,3i) {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_34530 {caseNum1} 1 {caseLabel1} @MANSIO1_34396 {caseNum2} -1 {caseLabel2} @MANSIO1_34530 {caseNum3} -1 {caseLabel3} @MANSIO1_34530 {caseNum4} -1 {caseLabel4} @MANSIO1_34530 {caseNum5} -1 {caseLabel5} @MANSIO1_34530 {caseNum6} -1 {caseLabel6} @MANSIO1_34530 {caseNum7} -1 {caseLabel7} @MANSIO1_34530

:MANSIO1_34396
if 
  4 > 335@
goto_if_false @MANSIO1_34523
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @MANSIO1_34523
if 
  Char.LocateAnyMeansChar2D(474@(486@,3i), $scplayer, 15.0, 15.0, False)
goto_if_false @MANSIO1_34523
set_var_int_to_lvar_int $load_sample = 331@(335@,4i)
set_var_text_label s$load_text = 336@(335@,4s)
start_new_script @A_ALAP 2 50 474@(486@,3i) 
477@(486@,3i) = 0
335@ += 1

:MANSIO1_34523
goto @MANSIO1_34530

:MANSIO1_34530
goto @MANSIO1_35135

:MANSIO1_34537
switch_start 477@(486@,3i) {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO1_35113 {caseNum1} -2 {caseLabel1} @MANSIO1_34708 {caseNum2} -1 {caseLabel2} @MANSIO1_34604 {caseNum3} -1 {caseLabel3} @MANSIO1_35135 {caseNum4} -1 {caseLabel4} @MANSIO1_35135 {caseNum5} -1 {caseLabel5} @MANSIO1_35135 {caseNum6} -1 {caseLabel6} @MANSIO1_35135 {caseNum7} -1 {caseLabel7} @MANSIO1_35135

:MANSIO1_34604
if 
  is_int_lvar_greater_than_int_lvar 488@ > 480@(486@,3i)
goto_if_false @MANSIO1_34634
goto @MANSIO1_35135

:MANSIO1_34634
Char.RemoveElegantly(474@(486@,3i))
if 
  486@ == 2
goto_if_false @MANSIO1_34708
if 
  472@ == 0
goto_if_false @MANSIO1_34697
477@(486@,3i) += 1
goto @MANSIO1_34708

:MANSIO1_34697
477@(486@,3i) -= 1

:MANSIO1_34708
if 
  489@ <> 1
goto_if_false @MANSIO1_35092
if 
  471@ == 0
goto_if_false @MANSIO1_34751
gosub @MANSIO1_33500

:MANSIO1_34751
43@ = 0

:MANSIO1_34758
if 
  6 > 43@
goto_if_false @MANSIO1_35106
if 
  is_local_var_bit_set_lvar 470@ {var_n} 43@
goto_if_false @MANSIO1_35092
if 
  not is_int_lvar_equal_to_int_lvar 43@ == 487@
goto_if_false @MANSIO1_35092
if 
  not World.IsPointObscuredByAMissionEntity(490@(43@,6f), 496@(43@,6f), 502@(43@,6f), 1.5, 1.5, 0.0)
goto_if_false @MANSIO1_35092
474@(486@,3i) = Char.Create(PedType.Mission2, 108, 490@(43@,6f), 496@(43@,6f), 502@(43@,6f))
Char.SetHealth(474@(486@,3i), 200)
Char.SetMaxHealth(474@(486@,3i), 200)
Char.SetHeading(474@(486@,3i), 508@(43@,6f))
Char.SetAreaVisible(474@(486@,3i), 5)
Char.GiveWeapon(474@(486@,3i), WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(474@(486@,3i), WeaponType.Mp5)
Char.SetDecisionMaker(474@(486@,3i), 36@)
Char.SetDropsWeaponsWhenDead(474@(486@,3i), False)
Task.KillCharOnFoot(474@(486@,3i), $scplayer)
Char.SetAccuracy(474@(486@,3i), 50)
Char.SetShootRate(474@(486@,3i), 60)
if 
  486@ == 0
goto_if_false @MANSIO1_35066
477@(486@,3i) = 1
goto @MANSIO1_35077

:MANSIO1_35066
477@(486@,3i) = 0

:MANSIO1_35077
set_lvar_int_to_lvar_int 487@ = 43@
43@ = 5

:MANSIO1_35092
43@ += 1
goto @MANSIO1_34758

:MANSIO1_35106
goto @MANSIO1_35135

:MANSIO1_35113
480@(486@,3i) = 0
477@(486@,3i) = -1

:MANSIO1_35135
486@ += 1
goto @MANSIO1_34291

:MANSIO1_35149
return 

:MANSIO1_35151
if 
  not Char.IsDead(328@)
goto_if_false @MANSIO1_35544
switch_start 514@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_35544 {caseNum1} 0 {caseLabel1} @MANSIO1_35230 {caseNum2} 1 {caseLabel2} @MANSIO1_35514 {caseNum3} -1 {caseLabel3} @MANSIO1_35544 {caseNum4} -1 {caseLabel4} @MANSIO1_35544 {caseNum5} -1 {caseLabel5} @MANSIO1_35544 {caseNum6} -1 {caseLabel6} @MANSIO1_35544 {caseNum7} -1 {caseLabel7} @MANSIO1_35544

:MANSIO1_35230
if 
  not Char.LocateOnFoot2D(328@, 516@, 517@, 1.0, 1.0, False)
goto_if_false @MANSIO1_35271
goto @MANSIO1_35544

:MANSIO1_35271
if 
  518@ <> -1.0
goto_if_false @MANSIO1_35369
if 
  515@ == 0
goto_if_false @MANSIO1_35333
Text.PrintNow('MAN1_21', 8000, 1)
515@ = 1

:MANSIO1_35333
Char.ClearTasksImmediately(328@)
Char.SetCoordinates(328@, 518@, 519@, 1083.01)
Char.SetHeading(328@, 520@)
goto @MANSIO1_35500

:MANSIO1_35369
World.DisableAllEntryExits(False)
World.SwitchEntryExit('MDDOGS', True)
47@ = Blip.AddForCoord(1298.74, -795.9946, 1083.008)
Blip.SetEntryExit(47@, 1258.338, -785.4264, 91.0313)
Text.PrintNow('MAN1_22', 8000, 1)
Char.SetCoordinates(328@, 1261.031, -815.666, 83.1484)
Char.SetHeading(328@, 65.0097)
Char.SetAreaVisible(328@, 0)
Char.FreezePositionAndDontLoadCollision(328@, True)
514@ = 1
goto @MANSIO1_35544

:MANSIO1_35500
514@ = -1
goto @MANSIO1_35544

:MANSIO1_35514
48@ = Streaming.GetAreaVisible()
if 
  48@ == 0
goto_if_false @MANSIO1_35544
514@ = 2

:MANSIO1_35544
return 

:MANSIO1_35546
Char.Delete(143@)
Char.Delete(144@)
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(118)
Streaming.MarkModelAsNoLongerNeeded(356)
43@ = 0

:MANSIO1_35576
if 
  10 > 43@
goto_if_false @MANSIO1_35617
Char.Delete(286@(43@,10i))
43@ += 1
goto @MANSIO1_35576

:MANSIO1_35617
43@ = 0

:MANSIO1_35624
if 
  13 > 43@
goto_if_false @MANSIO1_35665
Char.MarkAsNoLongerNeeded(226@(43@,20i))
43@ += 1
goto @MANSIO1_35624

:MANSIO1_35665
Char.MarkAsNoLongerNeeded(474@)
Char.MarkAsNoLongerNeeded(475@)
Char.MarkAsNoLongerNeeded(476@)
Char.MarkAsNoLongerNeeded(316@)
Char.MarkAsNoLongerNeeded(317@)
Char.MarkAsNoLongerNeeded(318@)
Char.MarkAsNoLongerNeeded(319@)
Streaming.MarkModelAsNoLongerNeeded(13)
Streaming.MarkModelAsNoLongerNeeded(195)
DecisionMaker.Remove(37@)
DecisionMaker.Remove(35@)
Streaming.RequestModel(18)
Streaming.RequestModel(19)
Streaming.RequestModel(63)
Streaming.RequestModel(139)
521@ = 1
return 

:MANSIO1_35745
switch_start 521@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_36515 {caseNum1} 1 {caseLabel1} @MANSIO1_35808 {caseNum2} 2 {caseLabel2} @MANSIO1_36227 {caseNum3} -1 {caseLabel3} @MANSIO1_36515 {caseNum4} -1 {caseLabel4} @MANSIO1_36515 {caseNum5} -1 {caseLabel5} @MANSIO1_36515 {caseNum6} -1 {caseLabel6} @MANSIO1_36515 {caseNum7} -1 {caseLabel7} @MANSIO1_36515

:MANSIO1_35808
240@ = Char.Create(PedType.Mission2, 110, 1260.064, -793.2798, 1083.241)
Char.SetHeading(240@, 290.4863)
Char.SetHealth(240@, 200)
Char.SetMaxHealth(240@, 200)
Char.SetAreaVisible(240@, 5)
Char.GiveWeapon(240@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(240@, WeaponType.Mp5)
Char.SetAccuracy(240@, 80)
Char.SetShootRate(240@, 60)
Char.SetDecisionMaker(240@, 36@)
260@ = 0
241@ = Char.Create(PedType.Mission2, 110, 1257.702, -767.9689, 1083.008)
Char.SetHeading(241@, 119.2357)
Char.SetHealth(241@, 200)
Char.SetMaxHealth(241@, 200)
Char.SetAreaVisible(241@, 5)
Char.GiveWeapon(241@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(241@, WeaponType.Mp5)
Char.SetAccuracy(241@, 70)
Char.SetShootRate(241@, 50)
Char.SetDecisionMaker(241@, 36@)
261@ = 0
242@ = Char.Create(PedType.Mission2, 110, 1289.814, -778.2963, 1083.008)
Char.SetHeading(242@, 67.6874)
Char.SetHealth(242@, 200)
Char.SetMaxHealth(242@, 200)
Char.SetAreaVisible(242@, 5)
Char.GiveWeapon(242@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(242@, WeaponType.Mp5)
Char.SetAccuracy(242@, 70)
Char.SetShootRate(242@, 60)
Char.SetDecisionMaker(242@, 36@)
262@ = 0
243@ = Char.Create(PedType.Mission2, 110, 1282.886, -779.3019, 1083.015)
Char.SetHeading(243@, 57.042)
Char.SetHealth(243@, 200)
Char.SetMaxHealth(243@, 200)
Char.SetAreaVisible(243@, 5)
Char.GiveWeapon(243@, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon(243@, WeaponType.Mp5)
Char.SetAccuracy(243@, 70)
Char.SetShootRate(243@, 60)
Char.SetDecisionMaker(243@, 36@)
263@ = 0
521@ += 1

:MANSIO1_36227
if or
  not Streaming.HasModelLoaded(18)
  not Streaming.HasModelLoaded(19)
  not Streaming.HasModelLoaded(63)
  not Streaming.HasModelLoaded(139)
goto_if_false @MANSIO1_36262
goto @MANSIO1_36515

:MANSIO1_36262
522@ = Char.Create(PedType.Mission3, 19, 1275.155, -788.5061, 1083.008)
Char.SetHeading(522@, 152.55)
Char.SetAreaVisible(522@, 5)
Char.SetDecisionMaker(522@, 38@)
523@ = Char.Create(PedType.Mission3, 63, 1274.54, -790.0915, 1083.008)
Char.SetHeading(523@, 349.0896)
Char.SetAreaVisible(523@, 5)
Char.SetDecisionMaker(523@, 38@)
524@ = Char.Create(PedType.Mission3, 18, 1273.279, -788.6833, 1083.008)
Char.SetHeading(524@, 221.2157)
Char.SetAreaVisible(524@, 5)
Char.SetDecisionMaker(524@, 38@)
525@ = Char.Create(PedType.Mission3, 139, 1261.499, -788.9477, 1083.015)
Char.SetHeading(525@, 154.0331)
Char.SetAreaVisible(525@, 5)
Char.SetDecisionMaker(525@, 38@)
526@ = Char.Create(PedType.Mission3, 18, 1260.887, -790.43, 1083.015)
Char.SetHeading(526@, 332.9453)
Char.SetAreaVisible(526@, 5)
Char.SetDecisionMaker(526@, 38@)
521@ = 0

:MANSIO1_36515
return 

:MANSIO1_36517
Text.ClearPrints
48@ = 5

:MANSIO1_36526
if 
  48@ == 5
goto_if_false @MANSIO1_36563
wait 0
48@ = Char.GetAreaVisible($scplayer)
goto @MANSIO1_36526

:MANSIO1_36563
Zone.SwitchAudio('MADDOGL', False)
Camera.DoFade(0, Fade.Out)

:MANSIO1_36582
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_36606
wait 0
goto @MANSIO1_36582

:MANSIO1_36606
World.SwitchEntryExit('MADDOGS', False)
World.SwitchEntryExit('MDDOGS', False)
World.ClearAreaOfCars(1239.904, -800.9069, 80.0, 1261.751, -817.216, 90.0)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
gosub @MANSIO1_38446
World.SetCarDensityMultiplier(0.5)
Streaming.RequestModel(603)
Streaming.RequestModel(555)
Streaming.RequestCarRecording(708)

:MANSIO1_36704
if or
  not Streaming.HasModelLoaded(603)
  not Streaming.HasModelLoaded(555)
  not Streaming.HasCarRecordingBeenLoaded(708)
goto_if_false @MANSIO1_36741
wait 0
goto @MANSIO1_36704

:MANSIO1_36741
Streaming.LoadScene(1265.009, -816.3813, 83.6305)
527@ = Car.Create(603, 1250.519, -812.1237, 83.1484)
Car.SetHeading(527@, 162.4757)
Car.CustomPlateForNextCar(555, "J_LOMAX")
Car.SetModelComponents(555, 1, 1)
528@ = Car.Create(555, 1244.026, -808.5705, 83.1484)
Car.SetHeading(528@, 177.4448)
Car.ChangeColor(528@, 126, 0)
Audio.SetRadioChannel(RadioChannel.BounceFM)
if 
  not Char.IsDead(328@)
goto_if_false @MANSIO1_36938
Char.ClearTasksImmediately(328@)
Char.SetDecisionMaker(328@, 34@)
Char.FreezePositionAndDontLoadCollision(328@, False)
Char.SetAreaVisible(328@, 0)
Char.SetCoordinates(328@, 1268.7, -813.0891, 83.1484)
Char.SetHeading(328@, 90.0)
Blip.Remove(329@)

:MANSIO1_36938
Char.SetCoordinates($scplayer, 1268.7, -813.0891, 83.1484)
Char.SetHeading($scplayer, 90.0)
Camera.ResetNewScriptables
Camera.SetShakeSimulationSimple(1, 50000.0, 0.5)
Camera.SetFixedPosition(1265.009, -816.3813, 83.6305, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1264.046, -816.1189, 83.6842, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:MANSIO1_37042
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_37066
wait 0
goto @MANSIO1_37042

:MANSIO1_37066
if and
  not Char.IsDead(328@)
  not Car.IsDead(527@)
goto_if_false @MANSIO1_37177
45@ = Sequence.Open()
Task.StandStill(-1, 1500)
Task.EnterCarAsDriver(-1, 527@, 9999)
Sequence.Close(45@)
Char.PerformSequence(328@, 45@)
Sequence.Clear(45@)
45@ = Sequence.Open()
Task.StandStill(-1, 7000)
Task.GoStraightToCoord(-1, 1251.697, -812.287, 83.1484, MoveState.Run, -2)
Task.LookAtChar(-1, 328@, 1500)
Sequence.Close(45@)

:MANSIO1_37177
Char.PerformSequence($scplayer, 45@)
Sequence.Clear(45@)
TIMERA = 0

:MANSIO1_37197
if 
  1500 > TIMERA
goto_if_false @MANSIO1_37227
wait 0
goto @MANSIO1_37197

:MANSIO1_37227
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(1265.009, -816.3813, 83.6305, 1253.448, -815.4342, 83.4116, 7500, True)
Camera.SetVectorTrack(1264.046, -816.1189, 83.6842, 1252.86, -814.6353, 83.5422, 7500, True)
49@ = 0

:MANSIO1_37316
if 
  49@ == 0
goto_if_false @MANSIO1_37384
wait 0
if 
  not Char.IsDead(328@)
goto_if_false @MANSIO1_37377
if 
  Char.IsInAnyCar(328@)
goto_if_false @MANSIO1_37377
49@ = 1

:MANSIO1_37377
goto @MANSIO1_37316

:MANSIO1_37384
if 
  not Car.IsDead(527@)
goto_if_false @MANSIO1_37456
Car.StartPlayback(527@, 708)
Car.SetForwardSpeed(527@, 40.0)
Car.LockDoors(527@, CarLock.Locked)
if 
  not Char.IsDead(328@)
goto_if_false @MANSIO1_37456
Char.SetProofs(328@, False, False, False, False, False)

:MANSIO1_37456
TIMERA = 0

:MANSIO1_37463
if 
  5000 > TIMERA
goto_if_false @MANSIO1_37493
wait 0
goto @MANSIO1_37463

:MANSIO1_37493
if 
  not Car.IsDead(527@)
goto_if_false @MANSIO1_37517
329@ = Blip.AddForCar(527@)

:MANSIO1_37517
Text.PrintNow('MAN1_23', 8000, 1)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.ResetNewScriptables
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Game.SetMaxWantedLevel(6)
World.SetCarDensityMultiplier(0.5)

:MANSIO1_37561
wait 0
if 
  not Char.IsDead(328@)
goto_if_false @MANSIO1_37678
if 
  not Char.LocateAnyMeansChar2D($scplayer, 328@, 250.0, 250.0, False)
goto_if_false @MANSIO1_37640
52@ = 1
set_lvar_text_label 53@s = 'MAN1_24'
goto @MANSIO1_38488

:MANSIO1_37640
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSIO1_37664
530@ = Char.StoreCarIsInNoSave($scplayer)

:MANSIO1_37664
gosub @MANSIO1_38303
goto @MANSIO1_38296

:MANSIO1_37678
Blip.Remove(329@)
TIMERA = 0

:MANSIO1_37690
if 
  2000 > TIMERA
goto_if_false @MANSIO1_37720
wait 0
goto @MANSIO1_37690

:MANSIO1_37720
Camera.DoFade(0, Fade.Out)

:MANSIO1_37726
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_37750
wait 0
goto @MANSIO1_37726

:MANSIO1_37750
529@ = Audio.GetRadioChannel()
Audio.SetRadioChannel(RadioChannel.UserTracks)
Player.SetControl($player1, False)
Char.SetProofs($scplayer, True, True, True, True, True)
Player.ClearWantedLevel($player1)
Hud.SwitchWidescreen(True)
if 
  not Car.IsDead(530@)
goto_if_false @MANSIO1_37851
531@ = Car.GetHealth(530@)
if 
  500 > 531@
goto_if_false @MANSIO1_37841
Car.SetHealth(530@, 500)

:MANSIO1_37841
Car.SetForwardSpeed(530@, 0.0)

:MANSIO1_37851
Streaming.RequestModel(#DRG_NU_EXT)

:MANSIO1_37856
if 
  not Streaming.HasModelLoaded(#DRG_NU_EXT)
goto_if_false @MANSIO1_37883
wait 0
goto @MANSIO1_37856

:MANSIO1_37883
Camera.SetFixedPosition(1221.787, -856.6817, 99.5425, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1222.33, -855.9062, 99.2196, SwitchType.JumpCut)
Streaming.LoadSceneInDirection(1248.908, -804.626, 87.535, 297.0012)
TIMERA = 0

:MANSIO1_37963
if 
  500 > TIMERA
goto_if_false @MANSIO1_37993
wait 0
goto @MANSIO1_37963

:MANSIO1_37993
Camera.DoFade(500, Fade.In)

:MANSIO1_38000
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_38024
wait 0
goto @MANSIO1_38000

:MANSIO1_38024
skip_cutscene_start_internal @MANSIO1_38115
Text.PrintNow('MAN1_30', 7000, 1)
TIMERA = 0

:MANSIO1_38054
if 
  7000 > TIMERA
goto_if_false @MANSIO1_38084
wait 0
goto @MANSIO1_38054

:MANSIO1_38084
Camera.DoFade(500, Fade.Out)

:MANSIO1_38091
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_38115
wait 0
goto @MANSIO1_38091

:MANSIO1_38115
skip_cutscene_end 
Camera.DoFade(0, Fade.Out)

:MANSIO1_38123
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_38147
wait 0
goto @MANSIO1_38123

:MANSIO1_38147
Streaming.MarkModelAsNoLongerNeeded(#DRG_NU_EXT)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
$heading = Char.GetHeading($scplayer)
Streaming.LoadSceneInDirection($player_x, $player_y, $player_z, $heading)
TIMERA = 0

:MANSIO1_38208
if 
  500 > TIMERA
goto_if_false @MANSIO1_38238
wait 0
goto @MANSIO1_38208

:MANSIO1_38238
Audio.SetRadioChannel(529@)
Camera.DoFade(500, Fade.In)

:MANSIO1_38250
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO1_38274
wait 0
goto @MANSIO1_38250

:MANSIO1_38274
Char.SetProofs($scplayer, False, False, False, False, False)
goto @MANSIO1_38560

:MANSIO1_38296
goto @MANSIO1_37561

:MANSIO1_38303
if 
  not Car.IsDead(527@)
goto_if_false @MANSIO1_38444
switch_start 532@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_38444 {caseNum1} 0 {caseLabel1} @MANSIO1_38382 {caseNum2} -1 {caseLabel2} @MANSIO1_38444 {caseNum3} -1 {caseLabel3} @MANSIO1_38444 {caseNum4} -1 {caseLabel4} @MANSIO1_38444 {caseNum5} -1 {caseLabel5} @MANSIO1_38444 {caseNum6} -1 {caseLabel6} @MANSIO1_38444 {caseNum7} -1 {caseLabel7} @MANSIO1_38444

:MANSIO1_38382
if 
  Car.IsPlaybackGoingOn(527@)
goto_if_false @MANSIO1_38405
goto @MANSIO1_38444

:MANSIO1_38405
Car.SetCruiseSpeed(527@, 25.0)
Task.CarDriveWander(328@, 527@, 25.0, DrivingMode.AvoidCars)
532@ += 1
goto @MANSIO1_38444

:MANSIO1_38444
return 

:MANSIO1_38446
Blip.Remove(47@)
Streaming.MarkModelAsNoLongerNeeded(108)
Streaming.MarkModelAsNoLongerNeeded(110)
Streaming.MarkModelAsNoLongerNeeded(18)
Streaming.MarkModelAsNoLongerNeeded(19)
Streaming.MarkModelAsNoLongerNeeded(63)
Streaming.MarkModelAsNoLongerNeeded(139)
Streaming.MarkModelAsNoLongerNeeded(353)
DecisionMaker.Remove(36@)
return 

:MANSIO1_38488
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
World.SwitchEntryExit('MADDOGS', False)
World.SwitchEntryExit('MDDOGS', False)
if 
  52@ == 1
goto_if_false @MANSIO1_38558
Text.PrintNow(53@s, 8000, 1)

:MANSIO1_38558
return 

:MANSIO1_38560
43@ = 0

:MANSIO1_38567
if 
  16 > 43@
goto_if_false @MANSIO1_38700
if 
  not Char.IsDead(226@(43@,20i))
goto_if_false @MANSIO1_38677
Char.ClearTasks(226@(43@,20i))
Char.SetAccuracy(226@(43@,20i), 20)
Char.SetShootRate(226@(43@,20i), 25)
Task.StayInSamePlace(226@(43@,20i), True)
Task.KillCharOnFoot(226@(43@,20i), $scplayer)
Char.SetKeepTask(226@(43@,20i), True)
goto @MANSIO1_38686

:MANSIO1_38677
Char.MarkAsNoLongerNeeded(226@(43@,20i))

:MANSIO1_38686
43@ += 1
goto @MANSIO1_38567

:MANSIO1_38700
43@ = 0

:MANSIO1_38707
if 
  10 > 43@
goto_if_false @MANSIO1_38840
if 
  not Char.IsDead(286@(43@,10i))
goto_if_false @MANSIO1_38817
Char.ClearTasks(286@(43@,10i))
Char.SetAccuracy(226@(43@,20i), 20)
Char.SetShootRate(226@(43@,20i), 25)
Task.StayInSamePlace(286@(43@,10i), True)
Task.KillCharOnFoot(286@(43@,10i), $scplayer)
Char.SetKeepTask(286@(43@,10i), True)
goto @MANSIO1_38826

:MANSIO1_38817
Char.MarkAsNoLongerNeeded(286@(43@,10i))

:MANSIO1_38826
43@ += 1
goto @MANSIO1_38707

:MANSIO1_38840
43@ = 0

:MANSIO1_38847
if 
  2 > 43@
goto_if_false @MANSIO1_38947
if 
  not Char.IsDead(474@(43@,3i))
goto_if_false @MANSIO1_38924
Char.ClearTasks(474@(43@,3i))
Task.KillCharOnFoot(474@(43@,3i), $scplayer)
Char.SetKeepTask(474@(43@,3i), True)
goto @MANSIO1_38933

:MANSIO1_38924
Char.MarkAsNoLongerNeeded(474@(43@,3i))

:MANSIO1_38933
43@ += 1
goto @MANSIO1_38847

:MANSIO1_38947
World.SwitchEntryExit('MADDOGS', True)
World.SwitchEntryExit('MDDOGS', True)
$flag_mansion_mission_counter += 1
Stat.RegisterMissionPassed('MAN_1')
Stat.PlayerMadeProgress(1)
CarGenerator.Switch($5268, 101)
Text.PrintWithNumberBig('M_PASSR', 4, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(40)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Blip.Remove($casino_contact_blip)
$1718 = Blip.AddShortRangeSpriteForContactPoint($save_pickupX[1], $save_pickupY[1], $save_pickupZ[1], RadarSprite.SaveGame)
Blip.ChangeDisplay($1718, BlipDisplay.BlipOnly)
return 

:MANSIO1_39063
Hud.DisplayZoneNames(True)
Zone.SwitchAudio('MADDOGL', False)
if 
  Player.IsPlaying($player1)
goto_if_false @MANSIO1_39107
Player.SetGroupRecruitment($player1, True)
Game.SetScriptLimitToGangSize(99)

:MANSIO1_39107
start_new_script @A_TERM 
Blip.Remove(47@)
Blip.Remove(329@)
World.DisableAllEntryExits(False)
Game.SwitchAmbientPlanes(True)
Game.SetMaxWantedLevel(6)
World.SetCarDensityMultiplier(1.0)
$para_force_chute_open = 0
Particle.Kill(124@)
Particle.Kill(125@)
Particle.Kill(126@)
Blip.Remove(47@)
43@ = 0

:MANSIO1_39178
if 
  4 > 43@
goto_if_false @MANSIO1_39237
Char.MarkAsNoLongerNeeded(99@(43@,4i))
Char.MarkAsNoLongerNeeded(131@(43@,4i))
Char.MarkAsNoLongerNeeded(170@(43@,6i))
43@ += 1
goto @MANSIO1_39178

:MANSIO1_39237
43@ = 0

:MANSIO1_39244
if 
  3 > 43@
goto_if_false @MANSIO1_39294
Char.MarkAsNoLongerNeeded(143@(43@,3i))
Blip.Remove(146@(43@,3i))
43@ += 1
goto @MANSIO1_39244

:MANSIO1_39294
Char.MarkAsNoLongerNeeded(159@)
Char.MarkAsNoLongerNeeded(328@)
Car.MarkAsNoLongerNeeded(527@)
Car.MarkAsNoLongerNeeded(528@)
Streaming.MarkModelAsNoLongerNeeded(117)
Streaming.MarkModelAsNoLongerNeeded(118)
Streaming.MarkModelAsNoLongerNeeded(108)
Streaming.MarkModelAsNoLongerNeeded(109)
Streaming.MarkModelAsNoLongerNeeded(110)
Streaming.MarkModelAsNoLongerNeeded(13)
Streaming.MarkModelAsNoLongerNeeded(195)
Streaming.MarkModelAsNoLongerNeeded(18)
Streaming.MarkModelAsNoLongerNeeded(19)
Streaming.MarkModelAsNoLongerNeeded(63)
Streaming.MarkModelAsNoLongerNeeded(139)
Streaming.MarkModelAsNoLongerNeeded(555)
Streaming.MarkModelAsNoLongerNeeded(603)
Streaming.MarkModelAsNoLongerNeeded(356)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(#PARACHUTE)
Streaming.MarkModelAsNoLongerNeeded(#PARA_PACK)
Streaming.MarkModelAsNoLongerNeeded(371)
Streaming.MarkModelAsNoLongerNeeded(#CARGO_REAR)
Streaming.MarkModelAsNoLongerNeeded(#D9_RAMP)
Streaming.MarkModelAsNoLongerNeeded(#CARDBOARDBOX2)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(#DRG_NU_EXT)
StreamedScript.MarkAsNoLongerNeeded(1)
Streaming.RemoveAnimation("PARACHUTE")
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 103---------------
// Originally: Vertical Bird

:MANSIO2
script_name 'MANSIO2'
gosub @MANSIO2_47
if 
  has_deatharrest_been_executed 
goto_if_false @MANSIO2_38
gosub @MANSIO2_52126

:MANSIO2_38
gosub @MANSIO2_52592
terminate_this_script 

:MANSIO2_47
Stat.RegisterMissionGiven
$onmission = 1
75@ = 0
76@ = 0
77@ = 0
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
45@ = 0
46@ = 0
47@ = 0
TIMERA = 0
TIMERB = 0
78@ = 1
79@ = 0
80@ = 0
81@ = 0
82@ = -1
83@ = 0
84@ = 0
86@ = 0
85@ = 0
87@ = 1
48@ = 0

:MANSIO2_238
88@(48@,3i) = 0
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_238
223@ = 0
224@ = 0
225@ = 0
226@ = 0
227@ = 0
228@ = 0
229@ = 0
230@ = 0
231@ = 0
232@ = 0
233@ = 0
234@ = 0
235@ = 0
236@ = 0
237@ = 0
238@ = 0
246@ = 0
247@ = 0
248@ = 0
249@ = 0
250@ = 0
251@ = 0
256@ = 0
257@ = 0
261@ = 0
258@ = 0
259@ = 0
260@ = 0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
268@ = 0
283@ = 0
284@ = 0
285@ = 0
286@ = 0
287@ = 0
288@ = 0
289@ = 0
290@ = 0
291@ = 0
292@ = 0
293@ = 0
294@ = 0
295@ = 0
296@ = 0
297@ = 0
if 
  34@ == -99
goto_if_false @MANSIO2_1399
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
139@ = Car.Create(421, 0.0, 0.0, 0.0)
140@ = Car.Create(446, 0.0, 0.0, 0.0)
145@ = Car.Create(520, 0.0, 0.0, 0.0)
153@ = Car.Create(595, 0.0, 0.0, 0.0)
48@ = 0

:MANSIO2_780
141@(48@,4i) = Car.Create(520, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_780
48@ = 0

:MANSIO2_835
146@(48@,3i) = Car.Create(520, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_835
48@ = 0

:MANSIO2_890
149@(48@,4i) = Car.Create(454, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_890
48@ = 0

:MANSIO2_945
154@(48@,3i) = Car.Create(530, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_945
130@ = Char.Create(PedType.Mission1, 290, 0.0, 0.0, 0.0)
48@ = 0

:MANSIO2_1025
131@(48@,6i) = Char.Create(PedType.Mission2, 287, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_1025
48@ = 0

:MANSIO2_1082
137@(48@,2i) = Char.Create(PedType.Mission1, 50, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_1082
157@ = Object.CreateNoOffset(#CARRIER_LIFT1_SFSE, 0.0, 0.0, 0.0)
158@ = Object.CreateNoOffset(#CARRIER_LIFT2_SFSE, 0.0, 0.0, 0.0)
159@ = Object.CreateNoOffset(#CARRIER_DOOR_SFSE, 0.0, 0.0, 0.0)
160@ = Object.Create(#MISSILE_07_SFXR, 0.0, 0.0, 0.0)
48@ = 0

:MANSIO2_1227
161@(48@,3i) = Object.Create(#KMB_KEYPAD, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_1227
164@ = Blip.AddForCar(140@)
179@ = Blip.AddForCar(145@)
165@ = Blip.AddForCoord(0.0, 0.0, 0.0)
48@ = 0

:MANSIO2_1318
166@(48@,3i) = Blip.AddForCar(146@(48@,3i))
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_1318
48@ = 0

:MANSIO2_1362
169@(48@,4i) = Blip.AddForCar(149@(48@,4i))
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_1362

:MANSIO2_1399
Text.LoadMissionText('MAN_2')
Weather.ForceNow(WeatherType.RainyCountryside)
gosub @MANSIO2_51202
180@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
181@ = DecisionMakerChar.Load(DecisionMakerType.Steal)
182@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
DecisionMakerChar.ClearEventResponse(181@, 62)
gosub @MANSIO2_51374

:MANSIO2_1456
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MANSIO2_1489
36@ = 1
goto @MANSIO2_1884

:MANSIO2_1489
gosub @MANSIO2_50547
gosub @MANSIO2_50853
if or
  38@ == 1
  39@ == 1
goto_if_false @MANSIO2_1535
goto @MANSIO2_1884

:MANSIO2_1535
gosub @MANSIO2_51099
gosub @MANSIO2_51133
if 
  Char.IsDead($scplayer)
goto_if_false @MANSIO2_1579
37@ = 1
goto @MANSIO2_1884

:MANSIO2_1579
if 
  34@ == 0
goto_if_false @MANSIO2_1637
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:MANSIO2_1637
switch_start 34@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_1877 {caseNum1} 1 {caseLabel1} @MANSIO2_1765 {caseNum2} 2 {caseLabel2} @MANSIO2_1779 {caseNum3} 3 {caseLabel3} @MANSIO2_1793 {caseNum4} 4 {caseLabel4} @MANSIO2_1807 {caseNum5} 5 {caseLabel5} @MANSIO2_1821 {caseNum6} 6 {caseLabel6} @MANSIO2_1835 {caseNum7} 7 {caseLabel7} @MANSIO2_1849
switch_continued 8 {caseLabel1} @MANSIO2_1863 {caseNum2} -1 {caseLabel2} @MANSIO2_1877 {caseNum3} -1 {caseLabel3} @MANSIO2_1877 {caseNum4} -1 {caseLabel4} @MANSIO2_1877 {caseNum5} -1 {caseLabel5} @MANSIO2_1877 {caseNum6} -1 {caseLabel6} @MANSIO2_1877 {caseNum7} -1 {caseLabel7} @MANSIO2_1877 {caseNum8} -1 {caseLabel8} @MANSIO2_1877 {caseNum9} -1 {caseLabel9} @MANSIO2_1877

:MANSIO2_1765
gosub @MANSIO2_2032
goto @MANSIO2_1877

:MANSIO2_1779
gosub @MANSIO2_4061
goto @MANSIO2_1877

:MANSIO2_1793
gosub @MANSIO2_6174
goto @MANSIO2_1877

:MANSIO2_1807
gosub @MANSIO2_8624
goto @MANSIO2_1877

:MANSIO2_1821
gosub @MANSIO2_12006
goto @MANSIO2_1877

:MANSIO2_1835
gosub @MANSIO2_17063
goto @MANSIO2_1877

:MANSIO2_1849
gosub @MANSIO2_21690
goto @MANSIO2_1877

:MANSIO2_1863
36@ = 1
goto @MANSIO2_1877

:MANSIO2_1877
gosub @MANSIO2_47159

:MANSIO2_1884
if 
  38@ == 0
goto_if_false @MANSIO2_1984
if 
  37@ == 0
goto_if_false @MANSIO2_1968
if 
  36@ == 0
goto_if_false @MANSIO2_1952
goto @MANSIO2_1456
goto @MANSIO2_1961

:MANSIO2_1952
gosub @MANSIO2_52377
return 

:MANSIO2_1961
goto @MANSIO2_1977

:MANSIO2_1968
gosub @MANSIO2_52126
return 

:MANSIO2_1977
goto @MANSIO2_1986

:MANSIO2_1984
return 

:MANSIO2_1986
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:MANSIO2_2032
if 
  35@ == 0
goto_if_false @MANSIO2_2334
Car.CustomPlateForNextCar(421, "_OMEGA__")
139@ = Car.Create(421, 1248.681, -815.9187, 83.1484)
Car.ChangeColor(139@, 84, 84)
Car.SetHeading(139@, 180.0)
Audio.SetRadioChannel(RadioChannel.KRose)
130@ = Char.Create(PedType.Mission1, 290, 1250.896, -802.7902, 83.1484)
Char.SetHeading(130@, 180.0)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsDriver(130@, 139@, 10000)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger($scplayer, 139@, 10000, 0)
Camera.SetFixedPosition(1246.497, -822.7375, 84.7111, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1246.785, -821.78, 84.6972, SwitchType.JumpCut)
81@ = 1
gosub @MANSIO2_47995
World.SetCarDensityMultiplier(0.0)
Camera.DoFade(1000, Fade.In)
223@ = 0
292@ = 0
293@ = 0
294@ = 0
295@ = 1
207@ = 0
208@ = 0
75@ = 1
76@ = 0
77@ = 0
35@ += 1

:MANSIO2_2334
if 
  Car.IsDead(139@)
goto_if_false @MANSIO2_2366
37@ = 1
45@ = 1
return 

:MANSIO2_2366
if 
  Char.IsDead(130@)
goto_if_false @MANSIO2_2398
37@ = 1
45@ = 2
return 

:MANSIO2_2398
if 
  35@ == 1
goto_if_false @MANSIO2_2512
if 
  77@ == 1
goto_if_false @MANSIO2_2448
35@ += 1
goto @MANSIO2_2512

:MANSIO2_2448
if 
  80@ <> 1
goto_if_false @MANSIO2_2480
81@ = 1
gosub @MANSIO2_47995

:MANSIO2_2480
if 
  80@ == 1
goto_if_false @MANSIO2_2512
gosub @MANSIO2_48150
35@ += 1

:MANSIO2_2512
if 
  35@ == 2
goto_if_false @MANSIO2_2781
if 
  77@ == 1
goto_if_false @MANSIO2_2562
35@ += 1
goto @MANSIO2_2781

:MANSIO2_2562
if and
  Char.IsInCar($scplayer, 139@)
  Char.IsInCar(130@, 139@)
goto_if_false @MANSIO2_2781
Car.StartPlayback(139@, 208)
223@ = 1
Streaming.LoadSceneInDirection(1239.286, -836.2535, 83.1477, 27.7504)
Camera.SetFixedPosition(1250.188, -849.5969, 93.6161, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1249.69, -848.7883, 93.3037, SwitchType.JumpCut)
if 
  293@ == 1
goto_if_false @MANSIO2_2714
Char.ClearLookAt($scplayer)
293@ = 0
207@ = 0

:MANSIO2_2714
if 
  294@ == 1
goto_if_false @MANSIO2_2751
Char.ClearLookAt(130@)
294@ = 0
208@ = 0

:MANSIO2_2751
295@ = 0
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1000
35@ += 1

:MANSIO2_2781
if 
  35@ == 3
goto_if_false @MANSIO2_2880
if 
  77@ == 1
goto_if_false @MANSIO2_2831
35@ += 1
goto @MANSIO2_2880

:MANSIO2_2831
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_2880
Camera.DoFade(2000, Fade.Out)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 2000
35@ += 1

:MANSIO2_2880
if 
  35@ == 4
goto_if_false @MANSIO2_2977
if 
  77@ == 1
goto_if_false @MANSIO2_2930
35@ = 50
goto @MANSIO2_2977

:MANSIO2_2930
if and
  is_int_lvar_greater_than_int_lvar 46@ > 194@
  not Camera.GetFadingStatus
goto_if_false @MANSIO2_2977
Car.StopPlayback(139@)
223@ = 0
75@ = 0
35@ += 1

:MANSIO2_2977
if 
  35@ == 5
goto_if_false @MANSIO2_3156
Streaming.RemoveCarRecording(208)
World.ClearArea(-610.7587, 176.8072, 18.946, 20.0, False)
Car.SetCoordinates(139@, -610.7587, 176.8072, 18.946)
Car.SetHeading(139@, 40.0)
Streaming.LoadSceneInDirection(-709.131, 232.466, 4.698, 250.0)
Clock.SetTimeOfDay(20, 0)
Camera.SetFixedPosition(-710.0532, 232.8524, 4.6799, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-709.131, 232.466, 4.698, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_3156
if 
  35@ == 6
goto_if_false @MANSIO2_3200
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_3200
35@ = 99

:MANSIO2_3200
if and
  75@ == 1
  Pad.IsSkipCutsceneButtonPressed
  77@ == 0
goto_if_false @MANSIO2_3234
77@ = 1

:MANSIO2_3234
if 
  35@ == 50
goto_if_false @MANSIO2_3289
Camera.DoFade(500, Fade.Out)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
76@ = 1
35@ += 1

:MANSIO2_3289
if 
  35@ == 51
goto_if_false @MANSIO2_3534
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_3534
if 
  not Char.IsInCar($scplayer, 139@)
goto_if_false @MANSIO2_3355
Char.WarpIntoCarAsPassenger($scplayer, 139@, 0)

:MANSIO2_3355
if 
  not Char.IsInCar(130@, 139@)
goto_if_false @MANSIO2_3382
Task.WarpCharIntoCarAsDriver(130@, 139@)

:MANSIO2_3382
if 
  223@ == 1
goto_if_false @MANSIO2_3405
Car.StopPlayback(139@)

:MANSIO2_3405
if 
  not is_local_var_bit_set_const 85@ {n} 1
goto_if_false @MANSIO2_3430
gosub @MANSIO2_48179

:MANSIO2_3430
if 
  293@ == 1
goto_if_false @MANSIO2_3467
Char.ClearLookAt($scplayer)
293@ = 0
207@ = 0

:MANSIO2_3467
if 
  294@ == 1
goto_if_false @MANSIO2_3504
Char.ClearLookAt(130@)
294@ = 0
208@ = 0

:MANSIO2_3504
295@ = 0
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 200
35@ += 1

:MANSIO2_3534
if 
  35@ == 52
goto_if_false @MANSIO2_3599
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_3599
76@ = 0
77@ = 0
75@ = 0
35@ = 5

:MANSIO2_3599
if 
  295@ == 1
goto_if_false @MANSIO2_3980
if 
  207@ == 0
goto_if_false @MANSIO2_3669
50@ = Math.RandomIntInRange(2000, 3000)
set_lvar_int_to_lvar_int 207@ = 46@
add_int_lvar_to_int_lvar 207@ += 50@
goto @MANSIO2_3749

:MANSIO2_3669
if 
  is_int_lvar_greater_than_int_lvar 46@ > 207@
goto_if_false @MANSIO2_3749
if 
  293@ == 1
goto_if_false @MANSIO2_3725
Char.ClearLookAt($scplayer)
293@ = 0
goto @MANSIO2_3742

:MANSIO2_3725
Task.LookAtChar($scplayer, 130@, -2)
293@ = 1

:MANSIO2_3742
207@ = 0

:MANSIO2_3749
if 
  208@ == 0
goto_if_false @MANSIO2_3801
50@ = Math.RandomIntInRange(1000, 4000)
set_lvar_int_to_lvar_int 208@ = 46@
add_int_lvar_to_int_lvar 208@ += 50@
goto @MANSIO2_3881

:MANSIO2_3801
if 
  is_int_lvar_greater_than_int_lvar 46@ > 208@
goto_if_false @MANSIO2_3881
if 
  294@ == 1
goto_if_false @MANSIO2_3857
Char.ClearLookAt(130@)
294@ = 0
goto @MANSIO2_3874

:MANSIO2_3857
Task.LookAtChar(130@, $scplayer, -2)
294@ = 1

:MANSIO2_3874
208@ = 0

:MANSIO2_3881
if 
  is_local_var_bit_set_const 85@ {n} 1
goto_if_false @MANSIO2_3980
if 
  293@ == 1
goto_if_false @MANSIO2_3936
Char.ClearLookAt($scplayer)
293@ = 0
207@ = 0

:MANSIO2_3936
if 
  294@ == 1
goto_if_false @MANSIO2_3973
Char.ClearLookAt(130@)
294@ = 0
208@ = 0

:MANSIO2_3973
295@ = 0

:MANSIO2_3980
if 
  Char.IsInCar($scplayer, 139@)
goto_if_false @MANSIO2_4034
if 
  293@ == 0
goto_if_false @MANSIO2_4034
Task.LookAtChar($scplayer, 130@, -2)
293@ = 1

:MANSIO2_4034
if 
  35@ == 99
goto_if_false @MANSIO2_4059
gosub @MANSIO2_51172

:MANSIO2_4059
return 

:MANSIO2_4061
if 
  292@ == 0
goto_if_false @MANSIO2_4143
if 
  Car.IsDead(139@)
goto_if_false @MANSIO2_4111
37@ = 1
45@ = 1
return 

:MANSIO2_4111
if 
  Char.IsDead(130@)
goto_if_false @MANSIO2_4143
37@ = 1
45@ = 2
return 

:MANSIO2_4143
if 
  35@ == 0
goto_if_false @MANSIO2_4360
World.ClearArea(-760.8, 243.1655, -6.6249, 20.0, True)
140@ = Car.Create(446, -759.4562, 240.346, -2.0951)
Car.SetHeading(140@, 121.0)
Boat.Anchor(140@, True)
Task.CarDriveToCoord(130@, 139@, -731.1018, 223.2893, 1.3815, 12.0, DriveMode.Normal, 421, DrivingMode.PloughThrough)
Camera.DoFade(1500, Fade.In)
81@ = 2
gosub @MANSIO2_47995
293@ = 0
294@ = 0
295@ = 0
207@ = 0
208@ = 0
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 5000
75@ = 1
76@ = 0
77@ = 0
35@ += 1

:MANSIO2_4360
if 
  35@ == 1
goto_if_false @MANSIO2_4498
if 
  77@ == 1
goto_if_false @MANSIO2_4410
35@ += 1
goto @MANSIO2_4498

:MANSIO2_4410
if 
  80@ <> 2
goto_if_false @MANSIO2_4442
81@ = 2
gosub @MANSIO2_47995

:MANSIO2_4442
if and
  80@ == 2
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_4498
gosub @MANSIO2_48150
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 6200
35@ += 1

:MANSIO2_4498
if 
  35@ == 2
goto_if_false @MANSIO2_4632
if 
  77@ == 1
goto_if_false @MANSIO2_4548
35@ += 1
goto @MANSIO2_4632

:MANSIO2_4548
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_4632
Camera.SetFixedPosition(-738.98, 227.2293, 3.4204, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-738.0241, 226.939, 3.375, SwitchType.JumpCut)
295@ = 1
35@ += 1

:MANSIO2_4632
if 
  35@ == 3
goto_if_false @MANSIO2_4753
if 
  77@ == 1
goto_if_false @MANSIO2_4682
35@ += 1
goto @MANSIO2_4753

:MANSIO2_4682
if 
  Car.LocateStopped3D(139@, -731.1018, 223.2893, 1.3815, 5.0, 5.0, 5.0, False)
goto_if_false @MANSIO2_4753
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 4600
35@ += 1

:MANSIO2_4753
if 
  35@ == 4
goto_if_false @MANSIO2_4880
if 
  77@ == 1
goto_if_false @MANSIO2_4803
35@ += 1
goto @MANSIO2_4880

:MANSIO2_4803
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_4880
Camera.SetFixedPosition(-725.9466, 218.6036, 4.4433, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-726.7355, 219.1785, 4.2265, SwitchType.JumpCut)
35@ += 1

:MANSIO2_4880
if 
  35@ == 5
goto_if_false @MANSIO2_5085
if 
  77@ == 1
goto_if_false @MANSIO2_4930
35@ += 1
goto @MANSIO2_5085

:MANSIO2_4930
if 
  is_local_var_bit_set_const 85@ {n} 2
goto_if_false @MANSIO2_5085
if 
  293@ == 1
goto_if_false @MANSIO2_4985
Char.ClearLookAt($scplayer)
293@ = 0
207@ = 0

:MANSIO2_4985
if 
  294@ == 1
goto_if_false @MANSIO2_5022
Char.ClearLookAt(130@)
294@ = 0
208@ = 0

:MANSIO2_5022
295@ = 0
Task.LeaveCar($scplayer, 139@)
Task.GoStraightToCoord($scplayer, -732.8385, 225.4091, 1.718, MoveState.Walk, 10000)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_5085
if 
  35@ == 6
goto_if_false @MANSIO2_5212
if 
  77@ == 1
goto_if_false @MANSIO2_5135
35@ += 1
goto @MANSIO2_5212

:MANSIO2_5135
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_5212
Task.CarDriveToCoord(130@, 139@, -751.1168, 113.9648, 13.2849, 15.0, DriveMode.Normal, 421, DrivingMode.PloughThrough)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
35@ += 1

:MANSIO2_5212
if 
  35@ == 7
goto_if_false @MANSIO2_5336
if 
  77@ == 1
goto_if_false @MANSIO2_5262
35@ = 50
goto @MANSIO2_5336

:MANSIO2_5262
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_5336
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Char.Delete(130@)
Car.Delete(139@)
Streaming.UnloadSpecialCharacter(1)
Streaming.MarkModelAsNoLongerNeeded(421)
292@ = 1
75@ = 0
35@ += 1

:MANSIO2_5336
if 
  35@ == 8
goto_if_false @MANSIO2_5361
35@ = 99

:MANSIO2_5361
if and
  75@ == 1
  Pad.IsSkipCutsceneButtonPressed
  77@ == 0
goto_if_false @MANSIO2_5395
77@ = 1

:MANSIO2_5395
if 
  35@ == 50
goto_if_false @MANSIO2_5450
Camera.DoFade(500, Fade.Out)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
76@ = 1
35@ += 1

:MANSIO2_5450
if 
  35@ == 51
goto_if_false @MANSIO2_5733
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_5733
if 
  not is_local_var_bit_set_const 85@ {n} 2
goto_if_false @MANSIO2_5512
gosub @MANSIO2_48179

:MANSIO2_5512
if 
  293@ == 1
goto_if_false @MANSIO2_5549
Char.ClearLookAt($scplayer)
293@ = 0
207@ = 0

:MANSIO2_5549
if 
  294@ == 1
goto_if_false @MANSIO2_5586
Char.ClearLookAt(130@)
294@ = 0
208@ = 0

:MANSIO2_5586
295@ = 0
if 
  Char.IsInCar($scplayer, 139@)
goto_if_false @MANSIO2_5639
Char.WarpFromCarToCoord($scplayer, -732.8385, 225.4091, 1.718)
goto @MANSIO2_5659

:MANSIO2_5639
Char.SetCoordinates($scplayer, -732.8385, 225.4091, 1.718)

:MANSIO2_5659
Char.SetHeading($scplayer, 83.9578)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Char.Delete(130@)
Car.Delete(139@)
Streaming.UnloadSpecialCharacter(1)
Streaming.MarkModelAsNoLongerNeeded(421)
292@ = 1
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 2000
35@ += 1

:MANSIO2_5733
if 
  35@ == 52
goto_if_false @MANSIO2_5800
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_5800
Camera.DoFade(1500, Fade.In)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_5800
if 
  35@ == 53
goto_if_false @MANSIO2_5865
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_5865
76@ = 0
77@ = 0
75@ = 0
35@ = 8

:MANSIO2_5865
if 
  295@ == 1
goto_if_false @MANSIO2_6147
if 
  207@ == 0
goto_if_false @MANSIO2_5935
50@ = Math.RandomIntInRange(2000, 3000)
set_lvar_int_to_lvar_int 207@ = 46@
add_int_lvar_to_int_lvar 207@ += 50@
goto @MANSIO2_6015

:MANSIO2_5935
if 
  is_int_lvar_greater_than_int_lvar 46@ > 207@
goto_if_false @MANSIO2_6015
if 
  293@ == 1
goto_if_false @MANSIO2_5991
Char.ClearLookAt($scplayer)
293@ = 0
goto @MANSIO2_6008

:MANSIO2_5991
Task.LookAtChar($scplayer, 130@, -2)
293@ = 1

:MANSIO2_6008
207@ = 0

:MANSIO2_6015
if 
  208@ == 0
goto_if_false @MANSIO2_6067
50@ = Math.RandomIntInRange(1000, 4000)
set_lvar_int_to_lvar_int 208@ = 46@
add_int_lvar_to_int_lvar 208@ += 50@
goto @MANSIO2_6147

:MANSIO2_6067
if 
  is_int_lvar_greater_than_int_lvar 46@ > 208@
goto_if_false @MANSIO2_6147
if 
  294@ == 1
goto_if_false @MANSIO2_6123
Char.ClearLookAt(130@)
294@ = 0
goto @MANSIO2_6140

:MANSIO2_6123
Task.LookAtChar(130@, $scplayer, -2)
294@ = 1

:MANSIO2_6140
208@ = 0

:MANSIO2_6147
if 
  35@ == 99
goto_if_false @MANSIO2_6172
gosub @MANSIO2_51172

:MANSIO2_6172
return 

:MANSIO2_6174
224@ = 1
if 
  Car.IsDead(140@)
goto_if_false @MANSIO2_6204
224@ = 0

:MANSIO2_6204
if 
  35@ == 0
goto_if_false @MANSIO2_6841
157@ = Object.CreateNoOffset(#CARRIER_LIFT1_SFSE, -1456.719, 501.297, 9.914)
158@ = Object.CreateNoOffset(#CARRIER_LIFT2_SFSE, -1414.453, 516.453, 16.688)
159@ = Object.CreateNoOffset(#CARRIER_DOOR_SFSE, -1465.797, 501.289, 1.145)
164@ = Blip.AddForCar(140@)
Blip.SetAsFriendly(164@, True)
World.ClearArea(-1519.843, 590.923, 0.0, 20.0, True)
153@ = Car.Create(595, -1519.843, 590.923, 0.0)
Car.SetHeading(153@, 202.1246)
Boat.Anchor(153@, True)
50@ = 0
131@(50@,6i) = Char.CreateInsideCar(153@, PedType.Mission2, 287)
Char.SetDecisionMaker(131@(50@,6i), 180@)
Char.GiveWeapon(131@(50@,6i), WeaponType.M4, 300)
Char.SetCurrentWeapon(131@(50@,6i), WeaponType.M4)
Char.SetIsTargetPriority(131@(50@,6i), True)
50@ = 1
131@(50@,6i) = Char.Create(PedType.Mission2, 287, -1429.354, 497.0963, 2.039)
Char.SetDecisionMaker(131@(50@,6i), 180@)
Char.AttachToCar(131@(50@,6i), 153@, 0.0, -3.5, 1.3, 0, 0.0, WeaponType.M4)
Char.GiveWeapon(131@(50@,6i), WeaponType.M4, 300)
Char.SetCurrentWeapon(131@(50@,6i), WeaponType.M4)
Char.SetIsTargetPriority(131@(50@,6i), True)
50@ = 2
131@(50@,6i) = Char.Create(PedType.Mission2, 287, -1428.723, 500.472, 2.0391)
Char.SetDecisionMaker(131@(50@,6i), 180@)
Char.AttachToCar(131@(50@,6i), 153@, 0.0, 4.0, 1.3, 0, 0.0, WeaponType.M4)
Char.GiveWeapon(131@(50@,6i), WeaponType.M4, 300)
Char.SetCurrentWeapon(131@(50@,6i), WeaponType.M4)
Char.SetIsTargetPriority(131@(50@,6i), True)
191@ = 0
220@ = -1459.143
221@ = 501.0938
222@ = 2.7322
Text.PrintNow('MAN2_20', 7000, 1)
World.SetCarDensityMultiplier(1.0)
243@ = 0
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 1824)
Zone.SetDisableMilitaryZones(True)
225@ = 0
226@ = 0
227@ = 0
228@ = 0
258@ = 0
259@ = 0
260@ = 0
195@ = 0
75@ = 0
76@ = 0
77@ = 0
35@ += 1

:MANSIO2_6841
if 
  35@ == 1
goto_if_false @MANSIO2_7052
if or
  226@ == 1
  227@ == 1
goto_if_false @MANSIO2_7052
81@ = 4
gosub @MANSIO2_47995
227@ = 1
World.ClearArea(-1357.0, 502.0, 10.0, 300.0, False)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.SetFixedPosition(-1513.614, 559.4036, 22.2746, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1513.076, 558.6777, 21.8463, SwitchType.JumpCut)
258@ = 1
if 
  286@ == 0
goto_if_false @MANSIO2_7031
Audio.ReportMissionAudioEventAtObject(159@, 1128)
286@ = 1

:MANSIO2_7031
183@ = 0
75@ = 1
35@ += 1

:MANSIO2_7052
if 
  35@ == 2
goto_if_false @MANSIO2_7182
if 
  77@ == 1
goto_if_false @MANSIO2_7102
35@ += 1
goto @MANSIO2_7182

:MANSIO2_7102
if 
  80@ <> 4
goto_if_false @MANSIO2_7134
81@ = 4
gosub @MANSIO2_47995

:MANSIO2_7134
if 
  80@ == 4
goto_if_false @MANSIO2_7182
gosub @MANSIO2_48150
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 6800
35@ += 1

:MANSIO2_7182
if 
  35@ == 3
goto_if_false @MANSIO2_7325
if 
  77@ == 1
goto_if_false @MANSIO2_7232
35@ += 1
goto @MANSIO2_7325

:MANSIO2_7232
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_7325
Camera.SetFixedPosition(-1474.739, 526.7202, 16.2159, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1474.991, 525.8577, 15.7775, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 3700
35@ += 1

:MANSIO2_7325
if 
  35@ == 4
goto_if_false @MANSIO2_7441
if 
  77@ == 1
goto_if_false @MANSIO2_7375
35@ = 50
goto @MANSIO2_7441

:MANSIO2_7375
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_7441
if 
  is_local_var_bit_set_const 85@ {n} 4
goto_if_false @MANSIO2_7441
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
75@ = 0
35@ += 1

:MANSIO2_7441
if 
  35@ == 5
goto_if_false @MANSIO2_7482
Text.PrintNow('MAN2_32', 8000, 1)
35@ = 99

:MANSIO2_7482
if and
  75@ == 1
  Pad.IsSkipCutsceneButtonPressed
  77@ == 0
goto_if_false @MANSIO2_7516
77@ = 1

:MANSIO2_7516
if 
  35@ == 50
goto_if_false @MANSIO2_7571
Camera.DoFade(500, Fade.Out)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
76@ = 1
35@ += 1

:MANSIO2_7571
if 
  35@ == 51
goto_if_false @MANSIO2_7785
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_7785
if 
  not is_local_var_bit_set_const 85@ {n} 4
goto_if_false @MANSIO2_7633
gosub @MANSIO2_48179

:MANSIO2_7633
Object.SetCoordinates(159@, -1468.492, 501.289, 11.109)
if 
  not Car.IsDead(153@)
goto_if_false @MANSIO2_7699
Car.SetCoordinates(153@, -1446.218, 491.9281, 0.0)
Car.SetHeading(153@, 270.0)

:MANSIO2_7699
if 
  not Char.IsDead(131@)
goto_if_false @MANSIO2_7740
if 
  183@ <> 3
goto_if_false @MANSIO2_7740
183@ = 2

:MANSIO2_7740
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Camera.DoFade(1500, Fade.In)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_7785
if 
  35@ == 52
goto_if_false @MANSIO2_7850
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_7850
76@ = 0
77@ = 0
75@ = 0
35@ = 5

:MANSIO2_7850
if 
  226@ == 0
goto_if_false @MANSIO2_8147
if 
  224@ == 1
goto_if_false @MANSIO2_8112
if 
  Char.LocateAnyMeans3D($scplayer, -1397.0, 552.0, 17.0, 150.0, 110.0, 25.0, False)
goto_if_false @MANSIO2_8008
if 
  not Blip.DoesExist(165@)
goto_if_false @MANSIO2_7964
165@ = Blip.AddForCoord(220@, 221@, 222@)

:MANSIO2_7964
Blip.Remove(164@)
if 
  not is_local_var_bit_set_const 85@ {n} 3
goto_if_false @MANSIO2_7994
set_local_var_bit_const 85@ {n} 3

:MANSIO2_7994
226@ = 1
goto @MANSIO2_8105

:MANSIO2_8008
if 
  Char.IsInCar($scplayer, 140@)
goto_if_false @MANSIO2_8069
if 
  not Blip.DoesExist(165@)
goto_if_false @MANSIO2_8057
165@ = Blip.AddForCoord(220@, 221@, 222@)

:MANSIO2_8057
Blip.Remove(164@)
goto @MANSIO2_8105

:MANSIO2_8069
if 
  not Blip.DoesExist(164@)
goto_if_false @MANSIO2_8100
164@ = Blip.AddForCar(140@)
Blip.SetAsFriendly(164@, True)

:MANSIO2_8100
Blip.Remove(165@)

:MANSIO2_8105
goto @MANSIO2_8147

:MANSIO2_8112
Blip.Remove(164@)
if 
  not Blip.DoesExist(165@)
goto_if_false @MANSIO2_8147
165@ = Blip.AddForCoord(220@, 221@, 222@)

:MANSIO2_8147
if 
  225@ == 0
goto_if_false @MANSIO2_8255
if 
  224@ == 1
goto_if_false @MANSIO2_8255
if 
  Char.IsInCar($scplayer, 140@)
goto_if_false @MANSIO2_8255
Char.GiveWeapon($scplayer, WeaponType.PistolSilenced, 30)
Char.GiveWeapon($scplayer, WeaponType.Knife, 0)
Char.SetCurrentWeapon($scplayer, WeaponType.PistolSilenced)
81@ = 3
gosub @MANSIO2_47995
gosub @MANSIO2_48150
225@ = 1

:MANSIO2_8255
if 
  228@ == 0
goto_if_false @MANSIO2_8348
if 
  226@ == 0
goto_if_false @MANSIO2_8348
if 
  Blip.DoesExist(165@)
goto_if_false @MANSIO2_8348
if 
  is_local_var_bit_set_const 85@ {n} 3
goto_if_false @MANSIO2_8348
Text.PrintNow('MAN2_21', 7000, 1)
228@ = 1

:MANSIO2_8348
if 
  258@ == 1
goto_if_false @MANSIO2_8454
if 
  Object.Slide(159@, -1468.492, 501.289, 11.109, 0.04, 0.04, 0.05, False)
goto_if_false @MANSIO2_8454
258@ = 0
if 
  286@ == 1
goto_if_false @MANSIO2_8454
Audio.ReportMissionAudioEventAtObject(159@, 1129)
286@ = 0

:MANSIO2_8454
if 
  227@ == 0
goto_if_false @MANSIO2_8576
if 
  Car.IsDead(153@)
goto_if_false @MANSIO2_8495
227@ = 1

:MANSIO2_8495
if 
  227@ == 0
goto_if_false @MANSIO2_8576
57@, 58@, 59@ = Car.GetCoordinates(153@)
if 
  Char.LocateAnyMeans3D($scplayer, 57@, 58@, 59@, 100.0, 100.0, 30.0, False)
goto_if_false @MANSIO2_8576
227@ = 1

:MANSIO2_8576
gosub @MANSIO2_22681
gosub @MANSIO2_36580
gosub @MANSIO2_46157
if 
  35@ == 99
goto_if_false @MANSIO2_8622
gosub @MANSIO2_51172

:MANSIO2_8622
return 

:MANSIO2_8624
if 
  35@ == 0
goto_if_false @MANSIO2_8719
259@ = 0
260@ = 0
263@ = 0
291@ = 0
if 
  not Car.IsDead(142@)
goto_if_false @MANSIO2_8691
Car.Delete(142@)

:MANSIO2_8691
75@ = 0
76@ = 0
77@ = 0
35@ += 1

:MANSIO2_8719
if 
  35@ == 1
goto_if_false @MANSIO2_8916
if 
  Char.LocateAnyMeans3D($scplayer, 220@, 221@, 222@, 4.0, 13.5, 5.0, False)
goto_if_false @MANSIO2_8916
Blip.Remove(165@)
Blip.Remove(164@)
263@ = 1
Player.SetControl($player1, False)
Player.ForceInteriorLighting($player1, True)
Char.DisableSpeech($scplayer, False)
195@ = 0
259@ = 1
260@ = 1
if 
  286@ == 0
goto_if_false @MANSIO2_8871
Audio.ReportMissionAudioEventAtObject(159@, 1128)
286@ = 1

:MANSIO2_8871
246@ = 0
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(200, Fade.Out)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 400
35@ += 1

:MANSIO2_8916
if 
  35@ == 2
goto_if_false @MANSIO2_9244
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_9244
Player.AlterWantedLevel($player1, 0)
Streaming.LoadSceneInDirection(-1439.546, 489.3506, 3.8546, 300.0)
Hud.SetRadarZoom(90)
Game.ShowBlipsOnAllLevels(True)
220@ = -1288.084
221@ = 490.5533
222@ = 10.2026
165@ = Blip.AddForCoord(220@, 221@, 222@)
Char.SetCoordinates($scplayer, -1327.957, 507.4273, 0.0)
Char.SetHeading($scplayer, 84.8851)
50@ = 0
141@(50@,4i) = Car.Create(520, -1423.62, 497.13, 10.19)
Car.SetHeading(141@(50@,4i), 62.12)
242@(50@,4i) = 1
50@ = 2
141@(50@,4i) = Car.Create(520, -1416.47, 518.36, 16.91)
Car.SetHeading(141@(50@,4i), 270.0)
242@(50@,4i) = 1
135@ = Char.CreateInsideCar(141@(50@,4i), PedType.Mission2, 287)
Char.SetDecisionMaker(135@, 180@)
Char.SetIsTargetPriority(135@, True)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 2000
75@ = 1
35@ += 1

:MANSIO2_9244
if 
  35@ == 3
goto_if_false @MANSIO2_9414
if 
  77@ == 1
goto_if_false @MANSIO2_9294
35@ += 1
goto @MANSIO2_9414

:MANSIO2_9294
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_9414
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-1304.926, 489.9207, 11.6599, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1304.047, 490.3978, 11.6435, SwitchType.JumpCut)
Text.PrintNow('MAN2_22', 6000, 1)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 4000
Camera.DoFade(500, Fade.In)
35@ += 1

:MANSIO2_9414
if 
  35@ == 4
goto_if_false @MANSIO2_9577
if 
  77@ == 1
goto_if_false @MANSIO2_9464
35@ += 1
goto @MANSIO2_9577

:MANSIO2_9464
  Char.LocateOnFoot3D($scplayer, 220@, 221@, 222@, 1.0, 1.0, 2.0, True)
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_9577
246@ = 1
if 
  288@ == 0
goto_if_false @MANSIO2_9554
Audio.ReportMissionAudioEventAtObject(158@, 1128)
288@ = 1

:MANSIO2_9554
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1800
35@ += 1

:MANSIO2_9577
if 
  35@ == 5
goto_if_false @MANSIO2_10017
if 
  77@ == 1
goto_if_false @MANSIO2_9627
35@ += 1
goto @MANSIO2_10017

:MANSIO2_9627
  Char.LocateOnFoot3D($scplayer, 220@, 221@, 222@, 1.0, 1.0, 2.0, True)
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_10017
Camera.SetFixedPosition(-1400.167, 517.7336, 11.9235, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1401.079, 518.1353, 12.0041, SwitchType.JumpCut)
Text.PrintNow('MAN2_25', 5000, 1)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 3800
set_lvar_int_to_lvar_int 202@ = 46@
202@ += 2500
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSIO2_9867
Char.SetCoordinates($scplayer, -1446.333, 506.7063, -2.089)
Char.SetHeading($scplayer, 256.1819)
if 
  Char.IsInAnyBoat($scplayer)
goto_if_false @MANSIO2_9853
$car = Char.StoreCarIsInNoSave($scplayer)
Boat.Anchor($car, True)

:MANSIO2_9853
291@ = 1
goto @MANSIO2_10010

:MANSIO2_9867
Char.SetCoordinates($scplayer, -1455.558, 497.0678, -2.089)
Char.SetHeading($scplayer, 256.1819)
if 
  not Car.IsDead(140@)
goto_if_false @MANSIO2_10010
if 
  Car.IsInArea3D(140@, -1466.083, 490.7395, -2.0, -1434.139, 511.856, 3.0, False)
goto_if_false @MANSIO2_10005
Car.SetCoordinates(140@, -1446.333, 506.7063, -2.089)
Car.SetHeading(140@, 256.1819)
291@ = 1
goto @MANSIO2_10010

:MANSIO2_10005
Car.Delete(140@)

:MANSIO2_10010
35@ += 1

:MANSIO2_10017
if 
  35@ == 6
goto_if_false @MANSIO2_10229
if 
  77@ == 1
goto_if_false @MANSIO2_10067
35@ += 1
goto @MANSIO2_10229

:MANSIO2_10067
if and
  is_int_lvar_greater_than_int_lvar 46@ > 202@
  202@ <> 0
goto_if_false @MANSIO2_10107
187@ = 5
202@ = 0

:MANSIO2_10107
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_10229
50@ = 1
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_10166
183@(50@,6i) = 6

:MANSIO2_10166
50@ = 2
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_10206
183@(50@,6i) = 6

:MANSIO2_10206
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1000
35@ += 1

:MANSIO2_10229
if 
  35@ == 7
goto_if_false @MANSIO2_10392
if 
  77@ == 1
goto_if_false @MANSIO2_10279
35@ += 1
goto @MANSIO2_10392

:MANSIO2_10279
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_10392
Camera.SetFixedPosition(-1395.611, 493.0729, 5.3645, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1394.977, 493.8029, 5.109, SwitchType.JumpCut)
Weather.ForceNow(WeatherType.SunnySf)
Text.PrintNow('MAN2_23', 6000, 1)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 5800
35@ += 1

:MANSIO2_10392
if 
  35@ == 8
goto_if_false @MANSIO2_10500
if 
  77@ == 1
goto_if_false @MANSIO2_10442
35@ = 50
goto @MANSIO2_10500

:MANSIO2_10442
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_10500
Char.SetHeading($scplayer, 256.1819)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
75@ = 0
35@ += 1

:MANSIO2_10500
if 
  35@ == 9
goto_if_false @MANSIO2_10887
188@ = 5
274@ = 1
48@ = 0

:MANSIO2_10539
if and
  183@(48@,6i) <> -2
  183@(48@,6i) <> -1
  not Char.IsDead(131@(48@,6i))
goto_if_false @MANSIO2_10637
if 
  48@ <> 4
goto_if_false @MANSIO2_10637
173@(48@,6i) = Blip.AddForChar(131@(48@,6i))
Blip.ChangeDisplay(173@(48@,6i), BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(173@(48@,6i), True)

:MANSIO2_10637
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_10539
187@ = 18
if 
  291@ == 1
goto_if_false @MANSIO2_10793
213@ = 1
50@ = 0
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_10730
183@(50@,6i) = 24

:MANSIO2_10730
50@ = 1
if 
  189@(50@,2i) <> -2
goto_if_false @MANSIO2_10770
189@(50@,2i) = 12

:MANSIO2_10770
Text.PrintNow('MAN2_46', 5000, 1)
goto @MANSIO2_10873

:MANSIO2_10793
50@ = 0
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_10833
183@(50@,6i) = 8

:MANSIO2_10833
50@ = 1
if 
  189@(50@,2i) <> -2
goto_if_false @MANSIO2_10873
189@(50@,2i) = 6

:MANSIO2_10873
283@ = 1
35@ = 99

:MANSIO2_10887
if and
  75@ == 1
  Pad.IsSkipCutsceneButtonPressed
  77@ == 0
goto_if_false @MANSIO2_10921
77@ = 1

:MANSIO2_10921
if 
  35@ == 50
goto_if_false @MANSIO2_10976
Camera.DoFade(500, Fade.Out)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
76@ = 1
35@ += 1

:MANSIO2_10976
if 
  35@ == 51
goto_if_false @MANSIO2_11441
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_11441
246@ = 1
if 
  288@ == 0
goto_if_false @MANSIO2_11053
Audio.ReportMissionAudioEventAtObject(158@, 1128)
288@ = 1

:MANSIO2_11053
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSIO2_11144
Char.SetCoordinates($scplayer, -1446.333, 506.7063, -2.089)
Char.SetHeading($scplayer, 256.1819)
if 
  Char.IsInAnyBoat($scplayer)
goto_if_false @MANSIO2_11130
$car = Char.StoreCarIsInNoSave($scplayer)
Boat.Anchor($car, True)

:MANSIO2_11130
291@ = 1
goto @MANSIO2_11287

:MANSIO2_11144
Char.SetCoordinates($scplayer, -1455.558, 497.0678, -2.089)
Char.SetHeading($scplayer, 256.1819)
if 
  not Car.IsDead(140@)
goto_if_false @MANSIO2_11287
if 
  Car.IsInArea3D(140@, -1466.083, 490.7395, -2.0, -1434.139, 511.856, 3.0, False)
goto_if_false @MANSIO2_11282
Car.SetCoordinates(140@, -1446.333, 506.7063, -2.089)
Car.SetHeading(140@, 256.1819)
291@ = 1
goto @MANSIO2_11287

:MANSIO2_11282
Car.Delete(140@)

:MANSIO2_11287
50@ = 1
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_11327
183@(50@,6i) = 6

:MANSIO2_11327
50@ = 2
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_11367
183@(50@,6i) = 6

:MANSIO2_11367
if 
  187@ == -1
goto_if_false @MANSIO2_11392
187@ = 5

:MANSIO2_11392
Weather.ForceNow(WeatherType.SunnySf)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.DoFade(1500, Fade.In)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_11441
if 
  35@ == 52
goto_if_false @MANSIO2_11506
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_11506
76@ = 0
77@ = 0
75@ = 0
35@ = 9

:MANSIO2_11506
if 
  246@ == 1
goto_if_false @MANSIO2_11612
if 
  Object.Slide(158@, -1414.453, 516.453, 9.648, 0.05, 0.05, 0.05, False)
goto_if_false @MANSIO2_11612
246@ = 0
if 
  288@ == 1
goto_if_false @MANSIO2_11612
Audio.ReportMissionAudioEventAtObject(158@, 1129)
288@ = 0

:MANSIO2_11612
if 
  259@ == 1
goto_if_false @MANSIO2_11865
if 
  260@ == 1
goto_if_false @MANSIO2_11743
if 
  Object.Slide(159@, -1465.797, 501.289, 1.145, 0.04, 0.04, 0.3, False)
goto_if_false @MANSIO2_11736
259@ = 0
if 
  286@ == 1
goto_if_false @MANSIO2_11736
Audio.ReportMissionAudioEventAtObject(159@, 1129)
286@ = 0

:MANSIO2_11736
goto @MANSIO2_11865

:MANSIO2_11743
if 
  Object.Slide(159@, -1465.797, 501.289, 1.145, 0.04, 0.04, 0.05, False)
goto_if_false @MANSIO2_11865
259@ = 0
if 
  286@ == 1
goto_if_false @MANSIO2_11831
Audio.ReportMissionAudioEventAtObject(159@, 1129)
286@ = 0

:MANSIO2_11831
if 
  263@ == 0
goto_if_false @MANSIO2_11865
37@ = 1
45@ = 5
return 

:MANSIO2_11865
gosub @MANSIO2_22681
gosub @MANSIO2_36580
if 
  195@ <> 0
goto_if_false @MANSIO2_11979
if 
  is_int_lvar_greater_than_int_lvar 46@ > 195@
goto_if_false @MANSIO2_11979
195@ = 0
259@ = 1
if 
  286@ == 0
goto_if_false @MANSIO2_11963
Audio.ReportMissionAudioEventAtObject(159@, 1128)
286@ = 1

:MANSIO2_11963
Text.PrintNow('MAN2_31', 7000, 1)

:MANSIO2_11979
if 
  35@ == 99
goto_if_false @MANSIO2_12004
gosub @MANSIO2_51172

:MANSIO2_12004
return 

:MANSIO2_12006
if 
  35@ == 0
goto_if_false @MANSIO2_12354
238@ = 0
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
Game.SwitchAmbientPlanes(False)
50@ = 3
141@(50@,4i) = Car.Create(520, -1333.231, 507.6329, 17.2266)
Car.SetHeading(141@(50@,4i), 270.0)
242@(50@,4i) = 1
50@ = 0
161@(50@,3i) = Object.Create(#KMB_KEYPAD, -1414.55, 514.4193, 2.9391)
Object.SetHeading(161@(50@,3i), 180.0)
50@ = 1
161@(50@,3i) = Object.Create(#KMB_KEYPAD, -1313.173, 488.3687, 11.1026)
50@ = 2
161@(50@,3i) = Object.Create(#KMB_KEYPAD, -1412.198, 488.3644, 11.1026)
Audio.SetRadioChannel(RadioChannel.UserTracks)
230@ = 0
231@ = 0
229@ = 0
248@ = 0
249@ = 0
250@ = 0
261@ = 0
264@ = 0
265@ = 0
284@ = 0
285@ = 0
296@ = 0
192@ = -1
193@ = -1
75@ = 0
76@ = 0
77@ = 0
35@ += 1

:MANSIO2_12354
73@ = 0
48@ = 0

:MANSIO2_12368
if 
  242@(48@,4i) == 1
goto_if_false @MANSIO2_12417
if 
  not Car.IsDead(141@(48@,4i))
goto_if_false @MANSIO2_12417
73@ = 1

:MANSIO2_12417
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_12368
if 
  73@ == 0
goto_if_false @MANSIO2_12472
37@ = 1
45@ = 3
return 

:MANSIO2_12472
if 
  not Char.IsInModel($scplayer, 520)
goto_if_false @MANSIO2_12599
57@, 58@, 59@ = Char.GetCoordinates($scplayer)
if or
  484.0 > 58@
  58@ > 523.0
goto_if_false @MANSIO2_12552
37@ = 1
45@ = 6
return 

:MANSIO2_12552
if or
  -1471.0 > 57@
  57@ > -1246.0
goto_if_false @MANSIO2_12599
37@ = 1
45@ = 6
return 

:MANSIO2_12599
if 
  35@ == 1
goto_if_false @MANSIO2_12822
if 
  238@ == 1
goto_if_false @MANSIO2_12797
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Camera.SetFixedPosition(-1291.578, 491.3468, 13.2852, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1290.686, 491.105, 12.9042, SwitchType.JumpCut)
Char.SetCoordinates($scplayer, 220@, 221@, 222@)
Task.AchieveHeading($scplayer, 270.0)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 200
Blip.Remove(165@)
165@ = Blip.AddForCoord(-1432.482, 506.5725, 10.1953)
229@ = 1
75@ = 1
35@ += 1

:MANSIO2_12797
if 
  248@ == 1
goto_if_false @MANSIO2_12822
35@ = 6

:MANSIO2_12822
if 
  35@ == 2
goto_if_false @MANSIO2_12972
if 
  77@ == 1
goto_if_false @MANSIO2_12872
35@ += 1
goto @MANSIO2_12972

:MANSIO2_12872
40@ = Char.GetScriptTaskStatus($scplayer, 1492)
if and
  not is_int_lvar_equal_to_constant 40@ == 1
  not is_int_lvar_equal_to_constant 40@ == 0
goto_if_false @MANSIO2_12972
Task.PlayAnim($scplayer, "SLOT_BET_02", "CASINO", 4.0, False, False, False, False, 0)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 250
35@ += 1

:MANSIO2_12972
if 
  35@ == 3
goto_if_false @MANSIO2_13144
if 
  77@ == 1
goto_if_false @MANSIO2_13022
35@ += 1
goto @MANSIO2_13144

:MANSIO2_13022
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_13144
if 
  not Char.IsPlayingAnim($scplayer, "SLOT_BET_02")
goto_if_false @MANSIO2_13144
Camera.SetFixedPosition(-1391.305, 490.2552, 18.2899, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1392.138, 490.5674, 18.7452, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 2000
35@ += 1

:MANSIO2_13144
if 
  35@ == 4
goto_if_false @MANSIO2_13240
if 
  77@ == 1
goto_if_false @MANSIO2_13194
35@ += 1
goto @MANSIO2_13240

:MANSIO2_13194
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_13240
Game.SetAircraftCarrierSamSite(False)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_13240
if 
  35@ == 5
goto_if_false @MANSIO2_13361
if 
  77@ == 1
goto_if_false @MANSIO2_13290
35@ = 50
goto @MANSIO2_13361

:MANSIO2_13290
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_13361
Char.HideWeaponForScriptedCutscene($scplayer, False)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Text.PrintNow('MAN2_25', 15000, 1)
35@ += 1

:MANSIO2_13361
if 
  35@ == 6
goto_if_false @MANSIO2_13475
if 
  248@ == 1
goto_if_false @MANSIO2_13475
if or
  249@ == 1
  250@ == 1
goto_if_false @MANSIO2_13426
Camera.SetBehindPlayer
Camera.Restore

:MANSIO2_13426
Blip.Remove(165@)
48@ = 0

:MANSIO2_13438
Blip.Remove(173@(48@,6i))
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_13438
35@ = 99

:MANSIO2_13475
if and
  75@ == 1
  Pad.IsSkipCutsceneButtonPressed
  77@ == 0
goto_if_false @MANSIO2_13509
77@ = 1

:MANSIO2_13509
if 
  35@ == 50
goto_if_false @MANSIO2_13564
Camera.DoFade(500, Fade.Out)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
76@ = 1
35@ += 1

:MANSIO2_13564
if 
  35@ == 51
goto_if_false @MANSIO2_13664
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_13664
Game.SetAircraftCarrierSamSite(False)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(1500, Fade.In)
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_13664
if 
  35@ == 52
goto_if_false @MANSIO2_13745
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_13745
76@ = 0
77@ = 0
75@ = 0
Text.PrintNow('MAN2_25', 15000, 1)
35@ = 6

:MANSIO2_13745
if 
  238@ == 0
goto_if_false @MANSIO2_13812
if 
  Char.LocateOnFoot3D($scplayer, 220@, 221@, 222@, 1.0, 1.0, 2.0, True)
goto_if_false @MANSIO2_13812
238@ = 1

:MANSIO2_13812
if 
  229@ == 0
goto_if_false @MANSIO2_13872
if 
  Char.IsInModel($scplayer, 520)
goto_if_false @MANSIO2_13872
Text.PrintNow('MAN2_24', 5000, 1)
229@ = 1

:MANSIO2_13872
if 
  230@ == 0
goto_if_false @MANSIO2_13950
if 
  Char.IsInModel($scplayer, 520)
goto_if_false @MANSIO2_13950
Text.PrintHelpForever('MAN2_70')
230@ = 1
231@ = 0
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 15000

:MANSIO2_13950
if 
  230@ == 1
goto_if_false @MANSIO2_14041
if 
  231@ == 0
goto_if_false @MANSIO2_14041
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_14041
Text.ClearHelp
Text.PrintHelpForever('MAN2_99')
231@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_14041
if 
  231@ == 1
goto_if_false @MANSIO2_14105
if 
  206@ <> 0
goto_if_false @MANSIO2_14105
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_14105
206@ = 0
Text.ClearHelp

:MANSIO2_14105
if 
  264@ == 0
goto_if_false @MANSIO2_14322
if 
  Char.IsInModel($scplayer, 520)
goto_if_false @MANSIO2_14204
if 
  Char.IsInCar($scplayer, 144@)
goto_if_false @MANSIO2_14175
264@ = 1
goto @MANSIO2_14197

:MANSIO2_14175
Car.StartPlayback(144@, 209)
192@ = 0
264@ = 1

:MANSIO2_14197
goto @MANSIO2_14322

:MANSIO2_14204
if 
  Char.LocateAnyMeans3D($scplayer, -1347.692, 499.5881, 17.2266, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_14281
Car.StartPlayback(144@, 209)
192@ = 0
264@ = 1
goto @MANSIO2_14322

:MANSIO2_14281
if 
  Char.IsTouchingObject($scplayer, 158@)
goto_if_false @MANSIO2_14322
Car.StartPlayback(144@, 209)
192@ = 0
264@ = 1

:MANSIO2_14322
if 
  265@ == 0
goto_if_false @MANSIO2_14427
if 
  Char.LocateAnyMeans3D($scplayer, -1368.303, 496.5314, 10.1854, 5.0, 5.0, 4.0, False)
goto_if_false @MANSIO2_14427
193@ = 0
265@ = 1
if 
  279@ == 0
goto_if_false @MANSIO2_14427
187@ = 11

:MANSIO2_14427
if 
  not Car.IsDead(143@)
goto_if_false @MANSIO2_14677
73@ = 0
if 
  Char.IsInCar($scplayer, 143@)
goto_if_false @MANSIO2_14531
if 
  Object.Slide(158@, -1414.453, 516.453, 16.688, 0.05, 0.05, 0.05, False)
goto_if_false @MANSIO2_14524
73@ = 1

:MANSIO2_14524
goto @MANSIO2_14586

:MANSIO2_14531
if 
  Object.Slide(158@, -1414.453, 516.453, 9.648, 0.05, 0.05, 0.05, False)
goto_if_false @MANSIO2_14586
73@ = 1

:MANSIO2_14586
if 
  288@ == 0
goto_if_false @MANSIO2_14644
if 
  73@ == 0
goto_if_false @MANSIO2_14637
Audio.ReportMissionAudioEventAtObject(158@, 1128)
288@ = 1

:MANSIO2_14637
goto @MANSIO2_14677

:MANSIO2_14644
if 
  73@ == 1
goto_if_false @MANSIO2_14677
Audio.ReportMissionAudioEventAtObject(158@, 1129)
288@ = 0

:MANSIO2_14677
if 
  not Car.IsDead(142@)
goto_if_false @MANSIO2_14927
73@ = 0
if 
  Char.IsInCar($scplayer, 142@)
goto_if_false @MANSIO2_14781
if 
  Object.Slide(157@, -1456.719, 501.297, 16.953, 0.05, 0.05, 0.05, False)
goto_if_false @MANSIO2_14774
73@ = 1

:MANSIO2_14774
goto @MANSIO2_14836

:MANSIO2_14781
if 
  Object.Slide(157@, -1456.719, 501.297, 9.914, 0.05, 0.05, 0.05, False)
goto_if_false @MANSIO2_14836
73@ = 1

:MANSIO2_14836
if 
  287@ == 0
goto_if_false @MANSIO2_14894
if 
  73@ == 0
goto_if_false @MANSIO2_14887
Audio.ReportMissionAudioEventAtObject(157@, 1128)
287@ = 1

:MANSIO2_14887
goto @MANSIO2_14927

:MANSIO2_14894
if 
  73@ == 1
goto_if_false @MANSIO2_14927
Audio.ReportMissionAudioEventAtObject(157@, 1129)
287@ = 0

:MANSIO2_14927
if 
  249@ == 0
goto_if_false @MANSIO2_15120
if 
  not Car.IsDead(143@)
goto_if_false @MANSIO2_15113
if 
  Char.IsInCar($scplayer, 143@)
goto_if_false @MANSIO2_15113
57@, 58@, 59@ = Car.GetCoordinates(143@)
60@, 61@, 62@ = Object.GetCoordinates(158@)
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if or
  70@ >= 0.0
  3.0 >= 70@
goto_if_false @MANSIO2_15113
Camera.SetFixedPosition(-1427.408, 516.3539, 20.8899, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1426.435, 516.2787, 20.6742, SwitchType.Interpolation)
249@ = 1

:MANSIO2_15113
goto @MANSIO2_15184

:MANSIO2_15120
if 
  Car.IsDead(143@)
goto_if_false @MANSIO2_15154
Camera.SetBehindPlayer
Camera.Restore
249@ = 0
goto @MANSIO2_15184

:MANSIO2_15154
if 
  not Char.IsInCar($scplayer, 143@)
goto_if_false @MANSIO2_15184
Camera.SetBehindPlayer
Camera.Restore
249@ = 0

:MANSIO2_15184
if 
  250@ == 0
goto_if_false @MANSIO2_15377
if 
  not Car.IsDead(142@)
goto_if_false @MANSIO2_15370
if 
  Char.IsInCar($scplayer, 142@)
goto_if_false @MANSIO2_15370
57@, 58@, 59@ = Car.GetCoordinates(142@)
60@, 61@, 62@ = Object.GetCoordinates(157@)
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if or
  70@ >= 0.0
  3.0 >= 70@
goto_if_false @MANSIO2_15370
Camera.SetFixedPosition(-1439.283, 507.3634, 28.9545, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1440.069, 507.1481, 28.3752, SwitchType.Interpolation)
250@ = 1

:MANSIO2_15370
goto @MANSIO2_15441

:MANSIO2_15377
if 
  Car.IsDead(142@)
goto_if_false @MANSIO2_15411
Camera.SetBehindPlayer
Camera.Restore
250@ = 0
goto @MANSIO2_15441

:MANSIO2_15411
if 
  not Char.IsInCar($scplayer, 142@)
goto_if_false @MANSIO2_15441
Camera.SetBehindPlayer
Camera.Restore
250@ = 0

:MANSIO2_15441
48@ = 0

:MANSIO2_15448
if 
  not Car.IsDead(141@(48@,4i))
goto_if_false @MANSIO2_15830
if 
  Char.IsInCar($scplayer, 141@(48@,4i))
goto_if_false @MANSIO2_15830
switch_start 48@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_15803 {caseNum1} 0 {caseLabel1} @MANSIO2_15740 {caseNum2} 1 {caseLabel2} @MANSIO2_15647 {caseNum3} 2 {caseLabel3} @MANSIO2_15554 {caseNum4} -1 {caseLabel4} @MANSIO2_15830 {caseNum5} -1 {caseLabel5} @MANSIO2_15830 {caseNum6} -1 {caseLabel6} @MANSIO2_15830 {caseNum7} -1 {caseLabel7} @MANSIO2_15830

:MANSIO2_15554
57@, 58@, 59@ = Car.GetCoordinates(141@(48@,4i))
60@, 61@, 62@ = Object.GetCoordinates(158@)
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if or
  0.0 > 70@
  70@ > 3.0
goto_if_false @MANSIO2_15640
248@ = 1

:MANSIO2_15640
goto @MANSIO2_15830

:MANSIO2_15647
57@, 58@, 59@ = Car.GetCoordinates(141@(48@,4i))
60@, 61@, 62@ = Object.GetCoordinates(157@)
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if or
  0.0 > 70@
  70@ > 3.0
goto_if_false @MANSIO2_15733
248@ = 1

:MANSIO2_15733
goto @MANSIO2_15830

:MANSIO2_15740
57@, 58@, 59@ = Car.GetCoordinates(141@(48@,4i))
if or
  59@ > 20.0
  5.0 > 59@
goto_if_false @MANSIO2_15796
248@ = 1

:MANSIO2_15796
goto @MANSIO2_15830

:MANSIO2_15803
if 
  Car.IsInAirProper(141@(48@,4i))
goto_if_false @MANSIO2_15830
248@ = 1

:MANSIO2_15830
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_15448
if and
  248@ == 1
  261@ == 0
goto_if_false @MANSIO2_16281
48@ = 0

:MANSIO2_15883
239@(48@,3i) = 0
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_15883
50@ = 0
48@ = 0

:MANSIO2_15929
if 
  48@ == 3
goto_if_false @MANSIO2_16028
if 
  not Car.IsDead(141@(48@,4i))
goto_if_false @MANSIO2_16028
if 
  Car.IsPlaybackGoingOn(141@(48@,4i))
goto_if_false @MANSIO2_15996
Car.StopPlayback(141@(48@,4i))

:MANSIO2_15996
if 
  not Char.IsInCar($scplayer, 141@(48@,4i))
goto_if_false @MANSIO2_16028
Car.Delete(141@(48@,4i))

:MANSIO2_16028
if 
  48@ == 1
goto_if_false @MANSIO2_16161
if 
  not Car.IsDead(141@(48@,4i))
goto_if_false @MANSIO2_16161
if 
  not Char.IsInCar($scplayer, 141@(48@,4i))
goto_if_false @MANSIO2_16161
if 
  193@ <> -1
goto_if_false @MANSIO2_16161
Car.StopPlayback(141@(48@,4i))
Car.SetCoordinates(141@(48@,4i), -1457.627, 502.2539, 9.0078)
Car.SetHeading(141@(48@,4i), 185.069)
193@ = -1

:MANSIO2_16161
if 
  not Car.IsDead(141@(48@,4i))
goto_if_false @MANSIO2_16253
if 
  Char.IsInCar($scplayer, 141@(48@,4i))
goto_if_false @MANSIO2_16219
145@ = Char.StoreCarIsIn($scplayer)
goto @MANSIO2_16253

:MANSIO2_16219
set_lvar_int_to_lvar_int 146@(50@,3i) = 141@(48@,4i)
239@(50@,3i) = 1
50@ += 1

:MANSIO2_16253
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_15929
261@ = 1

:MANSIO2_16281
gosub @MANSIO2_22597
gosub @MANSIO2_22681
gosub @MANSIO2_36580
48@ = 0

:MANSIO2_16309
if 
  not Char.IsDead(131@(48@,6i))
goto_if_false @MANSIO2_16338
Char.ClearLastWeaponDamage(131@(48@,6i))

:MANSIO2_16338
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_16309
48@ = 0

:MANSIO2_16366
if 
  not Char.IsDead(137@(48@,2i))
goto_if_false @MANSIO2_16395
Char.ClearLastWeaponDamage(137@(48@,2i))

:MANSIO2_16395
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_16366
48@ = 0

:MANSIO2_16423
if 
  not Car.IsDead(154@(48@,3i))
goto_if_false @MANSIO2_16452
Car.ClearLastWeaponDamage(154@(48@,3i))

:MANSIO2_16452
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_16423
gosub @MANSIO2_46514
gosub @MANSIO2_46786
if 
  268@ == 0
goto_if_false @MANSIO2_16758
if 
  267@ == 1
goto_if_false @MANSIO2_16758
switch_start 213@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_16724 {caseNum1} 1 {caseLabel1} @MANSIO2_16586 {caseNum2} 2 {caseLabel2} @MANSIO2_16609 {caseNum3} 3 {caseLabel3} @MANSIO2_16632 {caseNum4} 4 {caseLabel4} @MANSIO2_16655 {caseNum5} 5 {caseLabel5} @MANSIO2_16678 {caseNum6} 6 {caseLabel6} @MANSIO2_16701 {caseNum7} -1 {caseLabel7} @MANSIO2_16724

:MANSIO2_16586
Text.PrintNow('MAN2_47', 7000, 1)
goto @MANSIO2_16724

:MANSIO2_16609
Text.PrintNow('MAN2_49', 7000, 1)
goto @MANSIO2_16724

:MANSIO2_16632
Text.PrintNow('MAN2_40', 7000, 1)
goto @MANSIO2_16724

:MANSIO2_16655
Text.PrintNow('MAN2_41', 7000, 1)
goto @MANSIO2_16724

:MANSIO2_16678
Text.PrintNow('MAN2_42', 7000, 1)
goto @MANSIO2_16724

:MANSIO2_16701
Text.PrintNow('MAN2_43', 7000, 1)
goto @MANSIO2_16724

:MANSIO2_16724
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1161)
289@ = 1
268@ = 1

:MANSIO2_16758
if 
  267@ == 0
goto_if_false @MANSIO2_16843
50@ = World.GetNumberOfFiresInArea(-1471.0, 484.0, 0.0, -1246.0, 523.0, 40.0)
if 
  50@ > 0
goto_if_false @MANSIO2_16843
213@ = 6
267@ = 1

:MANSIO2_16843
if 
  238@ == 1
goto_if_false @MANSIO2_16955
if 
  296@ == 0
goto_if_false @MANSIO2_16955
if 
  Char.IsInArea3D($scplayer, -1466.973, 488.6672, 7.1953, -1393.22, 521.52, 11.3953, False)
goto_if_false @MANSIO2_16955
Blip.Remove(165@)
Text.PrintNow('MAN2_25', 5000, 1)
296@ = 1

:MANSIO2_16955
if 
  297@ == 1
goto_if_false @MANSIO2_17010
if 
  not Char.IsInModel($scplayer, 530)
goto_if_false @MANSIO2_17003
Audio.SetRadioChannel(RadioChannel.UserTracks)
297@ = 0

:MANSIO2_17003
goto @MANSIO2_17036

:MANSIO2_17010
if 
  Char.IsInModel($scplayer, 530)
goto_if_false @MANSIO2_17036
297@ = 1

:MANSIO2_17036
if 
  35@ == 99
goto_if_false @MANSIO2_17061
gosub @MANSIO2_51172

:MANSIO2_17061
return 

:MANSIO2_17063
if 
  Car.IsDead(145@)
goto_if_false @MANSIO2_17095
37@ = 1
45@ = 4
return 

:MANSIO2_17095
if 
  35@ == 0
goto_if_false @MANSIO2_17926
50@ = 0
World.ClearArea(-1178.22, 2775.04, 40.0, 20.0, True)
149@(50@,4i) = Car.Create(454, -1178.22, 2775.04, 40.0)
Car.SetHealth(149@(50@,4i), 500)
Car.SetHeading(149@(50@,4i), 327.1833)
Boat.Anchor(149@(50@,4i), True)
Car.FreezePositionAndDontLoadCollision(149@(50@,4i), True)
169@(50@,4i) = Blip.AddForCar(149@(50@,4i))
Blip.ChangeColor(169@(50@,4i), BlipColor.Yellow)
252@(50@,4i) = 1
50@ += 1
World.ClearArea(-1168.919, 2795.99, 40.0, 20.0, True)
149@(50@,4i) = Car.Create(454, -1168.919, 2795.99, 40.0)
Car.SetHealth(149@(50@,4i), 500)
Car.SetHeading(149@(50@,4i), 171.1833)
Boat.Anchor(149@(50@,4i), True)
Car.FreezePositionAndDontLoadCollision(149@(50@,4i), True)
169@(50@,4i) = Blip.AddForCar(149@(50@,4i))
Blip.ChangeColor(169@(50@,4i), BlipColor.Yellow)
252@(50@,4i) = 1
50@ += 1
World.ClearArea(-930.1593, 2641.605, 40.0, 20.0, True)
149@(50@,4i) = Car.Create(454, -930.1593, 2641.605, 40.0)
Car.SetHealth(149@(50@,4i), 500)
Car.SetHeading(149@(50@,4i), 124.0961)
Boat.Anchor(149@(50@,4i), True)
Car.FreezePositionAndDontLoadCollision(149@(50@,4i), True)
169@(50@,4i) = Blip.AddForCar(149@(50@,4i))
Blip.ChangeColor(169@(50@,4i), BlipColor.Yellow)
252@(50@,4i) = 1
50@ += 1
World.ClearArea(-973.0267, 2484.021, 40.0, 20.0, True)
149@(50@,4i) = Car.Create(454, -973.0267, 2484.021, 40.0)
Car.SetHealth(149@(50@,4i), 500)
Car.SetHeading(149@(50@,4i), 171.8058)
Boat.Anchor(149@(50@,4i), True)
Car.FreezePositionAndDontLoadCollision(149@(50@,4i), True)
169@(50@,4i) = Blip.AddForCar(149@(50@,4i))
Blip.ChangeColor(169@(50@,4i), BlipColor.Yellow)
252@(50@,4i) = 1
247@ = 1
251@ = 0
256@ = 0
257@ = 0
290@ = 0
232@ = 0
233@ = 0
234@ = 0
235@ = 0
236@ = 0
236@ = 0
if 
  288@ == 0
goto_if_false @MANSIO2_17799
Audio.ReportMissionAudioEventAtObject(158@, 1128)
288@ = 1

:MANSIO2_17799
if 
  287@ == 0
goto_if_false @MANSIO2_17832
Audio.ReportMissionAudioEventAtObject(157@, 1128)
287@ = 1

:MANSIO2_17832
if 
  289@ == 1
goto_if_false @MANSIO2_17877
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1162)
289@ = 0

:MANSIO2_17877
50@ = Car.GetHealth(145@)
50@ += 1000
Car.SetHealth(145@, 50@)
81@ = 5
gosub @MANSIO2_47995
Hud.SetRadarZoom(0)
35@ += 1

:MANSIO2_17926
if 
  35@ == 1
goto_if_false @MANSIO2_18056
if 
  80@ <> 5
goto_if_false @MANSIO2_17976
81@ = 5
gosub @MANSIO2_47995

:MANSIO2_17976
if and
  not Char.LocateAnyMeans3D($scplayer, -1343.5, 504.1, 30.0, 250.0, 250.0, 200.0, False)
  80@ == 5
goto_if_false @MANSIO2_18056
gosub @MANSIO2_48150
290@ = 1
Zone.SetDisableMilitaryZones(False)
35@ += 1

:MANSIO2_18056
if 
  35@ == 2
goto_if_false @MANSIO2_18113
if 
  is_local_var_bit_set_const 85@ {n} 5
goto_if_false @MANSIO2_18113
81@ = 6
gosub @MANSIO2_47995
35@ += 1

:MANSIO2_18113
if 
  35@ == 3
goto_if_false @MANSIO2_18874
if 
  80@ <> 6
goto_if_false @MANSIO2_18163
81@ = 6
gosub @MANSIO2_47995

:MANSIO2_18163
if 
  80@ == 6
goto_if_false @MANSIO2_18874
73@ = 0
48@ = 0

:MANSIO2_18195
if 
  73@ == 0
goto_if_false @MANSIO2_18280
if 
  239@(48@,3i) == 0
goto_if_false @MANSIO2_18280
146@(48@,3i) = Car.Create(520, -1333.231, 507.6329, 17.2266)
239@(48@,3i) = 1
73@ = 1

:MANSIO2_18280
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_18195
50@ = 0
if 
  239@(50@,3i) == 1
goto_if_false @MANSIO2_18482
if 
  not Car.IsDead(146@(50@,3i))
goto_if_false @MANSIO2_18482
Car.SetCoordinates(146@(50@,3i), -1293.86, 481.91, 81.18)
Car.SetHeading(146@(50@,3i), 0.0)
Car.SetStatus(146@(50@,3i), EntityStatus.Physics)
Car.SetForwardSpeed(146@(50@,3i), 30.0)
Plane.SetThrottle(146@(50@,3i), 1.5)
Plane.StartsInAir(146@(50@,3i))
Plane.FollowEntity(146@(50@,3i), $scplayer, -1, 70.0)
166@(50@,3i) = Blip.AddForCar(146@(50@,3i))
Blip.ChangeDisplay(166@(50@,3i), BlipDisplay.BlipOnly)

:MANSIO2_18482
50@ += 1
if 
  239@(50@,3i) == 1
goto_if_false @MANSIO2_18663
if 
  not Car.IsDead(146@(50@,3i))
goto_if_false @MANSIO2_18663
Car.SetCoordinates(146@(50@,3i), -1273.86, 481.91, 81.18)
Car.SetHeading(146@(50@,3i), 0.0)
Car.SetStatus(146@(50@,3i), EntityStatus.Physics)
Car.SetForwardSpeed(146@(50@,3i), 30.0)
Plane.SetThrottle(146@(50@,3i), 1.5)
Plane.StartsInAir(146@(50@,3i))
Plane.FollowEntity(146@(50@,3i), $scplayer, -1, 70.0)
166@(50@,3i) = Blip.AddForCar(146@(50@,3i))
Blip.ChangeDisplay(166@(50@,3i), BlipDisplay.BlipOnly)

:MANSIO2_18663
50@ += 1
if 
  239@(50@,3i) == 1
goto_if_false @MANSIO2_18844
if 
  not Car.IsDead(146@(50@,3i))
goto_if_false @MANSIO2_18844
Car.SetCoordinates(146@(50@,3i), -1253.86, 481.91, 81.18)
Car.SetHeading(146@(50@,3i), 0.0)
Car.SetStatus(146@(50@,3i), EntityStatus.Physics)
Car.SetForwardSpeed(146@(50@,3i), 30.0)
Plane.SetThrottle(146@(50@,3i), 1.5)
Plane.StartsInAir(146@(50@,3i))
Plane.FollowEntity(146@(50@,3i), $scplayer, -1, 70.0)
166@(50@,3i) = Blip.AddForCar(146@(50@,3i))
Blip.ChangeDisplay(166@(50@,3i), BlipDisplay.BlipOnly)

:MANSIO2_18844
251@ = 1
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1000
35@ += 1

:MANSIO2_18874
if 
  35@ == 4
goto_if_false @MANSIO2_19132
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_19132
50@ = -1
if 
  239@ == 1
goto_if_false @MANSIO2_18959
if 
  not Car.IsDead(146@)
goto_if_false @MANSIO2_18959
50@ = 0

:MANSIO2_18959
if 
  50@ == -1
goto_if_false @MANSIO2_19018
if 
  240@ == 1
goto_if_false @MANSIO2_19018
if 
  not Car.IsDead(147@)
goto_if_false @MANSIO2_19018
50@ = 1

:MANSIO2_19018
if 
  50@ <> -1
goto_if_false @MANSIO2_19118
Camera.SetFixedPosition(-1297.633, 489.9132, 74.9315, 0.0, 0.0, 0.0)
Camera.PointAtCar(146@(50@,3i), CameraMode.Fixed, SwitchType.JumpCut)
if 
  Char.IsInCar($scplayer, 145@)
goto_if_false @MANSIO2_19107
Car.FreezePosition(145@, True)

:MANSIO2_19107
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)

:MANSIO2_19118
gosub @MANSIO2_48150
35@ += 1

:MANSIO2_19132
if 
  35@ == 5
goto_if_false @MANSIO2_19189
if 
  is_local_var_bit_set_const 85@ {n} 6
goto_if_false @MANSIO2_19189
81@ = 7
gosub @MANSIO2_47995
35@ += 1

:MANSIO2_19189
if 
  35@ == 6
goto_if_false @MANSIO2_19341
if 
  80@ <> 7
goto_if_false @MANSIO2_19239
81@ = 7
gosub @MANSIO2_47995

:MANSIO2_19239
if 
  80@ == 7
goto_if_false @MANSIO2_19341
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
if 
  Char.IsInCar($scplayer, 145@)
goto_if_false @MANSIO2_19318
Car.FreezePosition(145@, False)
Car.SetForwardSpeed(145@, 30.0)
Plane.SetThrottle(145@, 1.0)

:MANSIO2_19318
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
35@ += 1

:MANSIO2_19341
if 
  35@ == 7
goto_if_false @MANSIO2_19392
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_19392
gosub @MANSIO2_48150
35@ += 1

:MANSIO2_19392
if 
  35@ == 8
goto_if_false @MANSIO2_19485
if 
  is_local_var_bit_set_const 85@ {n} 7
goto_if_false @MANSIO2_19485
Text.PrintHelpForever('MAN2_71')
232@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 15000
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 5000
35@ += 1

:MANSIO2_19485
if 
  35@ == 9
goto_if_false @MANSIO2_19719
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_19719
50@ = 0
48@ = 0

:MANSIO2_19536
if 
  239@(48@,3i) == 1
goto_if_false @MANSIO2_19616
if 
  not Car.IsDead(146@(48@,3i))
goto_if_false @MANSIO2_19616
Plane.SetThrottle(146@(48@,3i), 0.5)
Plane.AttackPlayerUsingDogFight(146@(48@,3i), $player1, 30.0)
50@ += 1

:MANSIO2_19616
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_19536
if 
  50@ > 0
goto_if_false @MANSIO2_19712
if 
  50@ == 1
goto_if_false @MANSIO2_19696
Text.PrintNow('MAN2_36', 7000, 1)
goto @MANSIO2_19712

:MANSIO2_19696
Text.PrintNow('MAN2_35', 7000, 1)

:MANSIO2_19712
35@ += 1

:MANSIO2_19719
if 
  35@ == 10
goto_if_false @MANSIO2_19769
if and
  256@ == 1
  257@ == 1
goto_if_false @MANSIO2_19769
35@ = 99

:MANSIO2_19769
73@ = 0
50@ = 0
48@ = 0

:MANSIO2_19790
if 
  252@(48@,4i) == 1
goto_if_false @MANSIO2_19873
if 
  Car.IsDead(149@(48@,4i))
goto_if_false @MANSIO2_19866
252@(48@,4i) = 0
Blip.Remove(169@(48@,4i))
73@ = 1
goto @MANSIO2_19873

:MANSIO2_19866
50@ += 1

:MANSIO2_19873
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_19790
if 
  73@ == 1
goto_if_false @MANSIO2_20073
if 
  50@ > 0
goto_if_false @MANSIO2_20000
if 
  50@ == 1
goto_if_false @MANSIO2_19974
Text.PrintWithNumberNow('MAN2_30', 50@, 5000, 1)
goto @MANSIO2_19993

:MANSIO2_19974
Text.PrintWithNumberNow('MAN2_29', 50@, 5000, 1)

:MANSIO2_19993
goto @MANSIO2_20034

:MANSIO2_20000
if 
  257@ == 0
goto_if_false @MANSIO2_20034
Text.PrintNow('MAN2_44', 5000, 1)

:MANSIO2_20034
if 
  235@ == 0
goto_if_false @MANSIO2_20073
235@ = 1
236@ = 1
236@ = 1

:MANSIO2_20073
256@ = 1
48@ = 0

:MANSIO2_20087
if 
  252@(48@,4i) == 1
goto_if_false @MANSIO2_20116
256@ = 0

:MANSIO2_20116
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_20087
73@ = 0
50@ = 0
48@ = 0

:MANSIO2_20158
if 
  239@(48@,3i) == 1
goto_if_false @MANSIO2_20268
if 
  Car.IsDead(146@(48@,3i))
goto_if_false @MANSIO2_20261
239@(48@,3i) = 0
Car.MarkAsNoLongerNeeded(146@(48@,3i))
Blip.Remove(166@(48@,3i))
if 
  251@ == 1
goto_if_false @MANSIO2_20254
73@ = 1

:MANSIO2_20254
goto @MANSIO2_20268

:MANSIO2_20261
50@ += 1

:MANSIO2_20268
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_20158
if 
  73@ == 1
goto_if_false @MANSIO2_20399
if 
  50@ > 0
goto_if_false @MANSIO2_20351
Text.PrintWithNumberNow('MAN2_27', 50@, 5000, 1)
goto @MANSIO2_20399

:MANSIO2_20351
257@ = 1
if 
  256@ == 0
goto_if_false @MANSIO2_20399
Text.PrintNow('MAN2_28', 5000, 1)
234@ = 1

:MANSIO2_20399
if 
  247@ == 1
goto_if_false @MANSIO2_20575
if and
  Object.Slide(158@, -1414.453, 516.453, 16.688, 0.05, 0.05, 0.05, False)
  Object.Slide(157@, -1456.719, 501.297, 16.953, 0.05, 0.05, 0.05, False)
goto_if_false @MANSIO2_20575
247@ = 0
if 
  288@ == 1
goto_if_false @MANSIO2_20542
Audio.ReportMissionAudioEventAtObject(158@, 1129)
288@ = 0

:MANSIO2_20542
if 
  287@ == 1
goto_if_false @MANSIO2_20575
Audio.ReportMissionAudioEventAtObject(157@, 1129)
287@ = 0

:MANSIO2_20575
if 
  not Char.IsInCar($scplayer, 145@)
goto_if_false @MANSIO2_20830
if 
  not Blip.DoesExist(179@)
goto_if_false @MANSIO2_20648
Text.PrintNow('MAN2_37', 5000, 1)
179@ = Blip.AddForCar(145@)
Blip.SetAsFriendly(179@, True)
goto @MANSIO2_20823

:MANSIO2_20648
if 
  290@ == 0
goto_if_false @MANSIO2_20823
73@ = 0
48@ = 0

:MANSIO2_20680
if 
  239@(48@,3i) == 1
goto_if_false @MANSIO2_20802
if 
  73@ == 0
goto_if_false @MANSIO2_20802
if 
  not Car.IsDead(146@(48@,3i))
goto_if_false @MANSIO2_20802
if 
  Char.IsInCar($scplayer, 146@(48@,3i))
goto_if_false @MANSIO2_20802
set_var_int_to_lvar_int $car = 146@(48@,3i)
set_lvar_int_to_lvar_int 146@(48@,3i) = 145@
set_lvar_int_to_var_int 145@ = $car
73@ = 1

:MANSIO2_20802
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_20680

:MANSIO2_20823
goto @MANSIO2_20862

:MANSIO2_20830
if 
  Blip.DoesExist(179@)
goto_if_false @MANSIO2_20862
Blip.Remove(179@)
Text.ClearThisPrint('MAN2_37')

:MANSIO2_20862
if 
  231@ == 0
goto_if_false @MANSIO2_20935
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_20935
Text.ClearHelp
Text.PrintHelpForever('MAN2_99')
231@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_20935
if and
  231@ == 1
  232@ == 0
goto_if_false @MANSIO2_21006
if 
  206@ <> 0
goto_if_false @MANSIO2_21006
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21006
206@ = 0
Text.ClearHelp

:MANSIO2_21006
if 
  232@ == 1
goto_if_false @MANSIO2_21097
if 
  233@ == 0
goto_if_false @MANSIO2_21097
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21097
Text.ClearHelp
Text.PrintHelpForever('MAN2_98')
233@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_21097
if 
  233@ == 1
goto_if_false @MANSIO2_21161
if 
  206@ <> 0
goto_if_false @MANSIO2_21161
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21161
206@ = 0
Text.ClearHelp

:MANSIO2_21161
if 
  234@ == 1
goto_if_false @MANSIO2_21663
if 
  235@ == 0
goto_if_false @MANSIO2_21417
if and
  233@ == 1
  206@ == 0
goto_if_false @MANSIO2_21417
if 
  Char.IsInCar($scplayer, 145@)
goto_if_false @MANSIO2_21417
73@ = 0
48@ = 0

:MANSIO2_21255
if 
  73@ == 0
goto_if_false @MANSIO2_21342
if 
  252@(48@,4i) == 1
goto_if_false @MANSIO2_21342
if 
  Char.LocateAnyMeansCar3D($scplayer, 149@(48@,4i), 300.0, 300.0, 300.0, False)
goto_if_false @MANSIO2_21342
73@ = 1

:MANSIO2_21342
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_21255
if 
  73@ == 1
goto_if_false @MANSIO2_21417
Text.ClearHelp
Text.PrintHelpForever('HYDHLP1')
235@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_21417
if 
  235@ == 1
goto_if_false @MANSIO2_21508
if 
  236@ == 0
goto_if_false @MANSIO2_21508
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21508
Text.ClearHelp
Text.PrintHelpForever('HYDHLP2')
236@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_21508
if 
  236@ == 1
goto_if_false @MANSIO2_21599
if 
  237@ == 0
goto_if_false @MANSIO2_21599
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21599
Text.ClearHelp
Text.PrintHelpForever('HYDHLP3')
237@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_21599
if 
  237@ == 1
goto_if_false @MANSIO2_21663
if 
  206@ <> 0
goto_if_false @MANSIO2_21663
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21663
206@ = 0
Text.ClearHelp

:MANSIO2_21663
if 
  35@ == 99
goto_if_false @MANSIO2_21688
gosub @MANSIO2_51172

:MANSIO2_21688
return 

:MANSIO2_21690
if 
  Car.IsDead(145@)
goto_if_false @MANSIO2_21722
37@ = 1
45@ = 4
return 

:MANSIO2_21722
if 
  35@ == 0
goto_if_false @MANSIO2_21980
214@ = -76.4228
215@ = 2478.64
216@ = 14.2844
217@ = 433.6483
218@ = 2525.658
219@ = 18.6279
set_lvar_float_to_lvar_float 220@ = 217@
sub_float_lvar_from_float_lvar 220@ -= 214@
220@ /= 2.0
add_float_lvar_to_float_lvar 220@ += 214@
set_lvar_float_to_lvar_float 221@ = 218@
sub_float_lvar_from_float_lvar 221@ -= 215@
221@ /= 2.0
add_float_lvar_to_float_lvar 221@ += 215@
set_lvar_float_to_lvar_float 222@ = 219@
sub_float_lvar_from_float_lvar 222@ -= 216@
222@ /= 2.0
add_float_lvar_to_float_lvar 222@ += 216@
165@ = Blip.AddForCoord(220@, 221@, 222@)
81@ = 8
gosub @MANSIO2_47995
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1000
266@ = 0
Streaming.RequestModel(359)
Streaming.RequestModel(360)
Streaming.RequestModel(362)
Streaming.RequestModel(361)
35@ += 1

:MANSIO2_21980
if 
  35@ == 1
goto_if_false @MANSIO2_22070
if 
  80@ <> 8
goto_if_false @MANSIO2_22030
81@ = 8
gosub @MANSIO2_47995

:MANSIO2_22030
if and
  80@ == 8
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_22070
gosub @MANSIO2_48150
35@ += 1

:MANSIO2_22070
if 
  35@ == 2
goto_if_false @MANSIO2_22129
if 
  is_local_var_bit_set_const 85@ {n} 8
goto_if_false @MANSIO2_22129
Text.PrintNow('MAN2_26', 10000, 1)
35@ += 1

:MANSIO2_22129
if 
  35@ == 3
goto_if_false @MANSIO2_22378
  Char.LocateAnyMeans3D($scplayer, 220@, 221@, 222@, 10.0, 10.0, 10.0, True)
if and
  Char.IsInArea3D($scplayer, 214@, 215@, 216@, 217@, 218@, 219@, False)
  Char.IsInCar($scplayer, 145@)
goto_if_false @MANSIO2_22262
if and
  Car.IsStopped(145@)
  not Car.IsInAirProper(145@)
goto_if_false @MANSIO2_22255
Blip.Remove(165@)
35@ += 1

:MANSIO2_22255
goto @MANSIO2_22378

:MANSIO2_22262
set_lvar_float_to_lvar_float 70@ = 219@
70@ += 20.0
if and
  Char.IsInArea3D($scplayer, 214@, 215@, 216@, 217@, 218@, 70@, False)
  Char.IsInCar($scplayer, 145@)
  266@ == 0
goto_if_false @MANSIO2_22378
71@ = Plane.GetUndercarriagePosition(145@)
if 
  71@ > 0.1
goto_if_false @MANSIO2_22378
Text.PrintHelp('MAN2_72')
266@ = 1

:MANSIO2_22378
if 
  35@ == 4
goto_if_false @MANSIO2_22463
220@ = 291.3149
221@ = 2535.249
222@ = 15.8205
165@ = Blip.AddForCoord(220@, 221@, 222@)
Text.PrintNow('MAN2_33', 5000, 1)
35@ += 1

:MANSIO2_22463
if 
  35@ == 5
goto_if_false @MANSIO2_22570
if 
  Char.IsInCar($scplayer, 145@)
goto_if_false @MANSIO2_22570
if 
  Char.LocateAnyMeans3D($scplayer, 220@, 221@, 222@, 10.0, 10.0, 10.0, True)
goto_if_false @MANSIO2_22570
if 
  Car.IsStopped(145@)
goto_if_false @MANSIO2_22570
Blip.Remove(165@)
35@ = 99

:MANSIO2_22570
if 
  35@ == 99
goto_if_false @MANSIO2_22595
gosub @MANSIO2_51172

:MANSIO2_22595
return 

:MANSIO2_22597
285@ = 0
if 
  284@ == 1
goto_if_false @MANSIO2_22624
return 

:MANSIO2_22624
if 
  Char.IsShooting($scplayer)
goto_if_false @MANSIO2_22679
if 
  Char.IsCurrentWeapon($scplayer, WeaponType.PistolSilenced)
goto_if_false @MANSIO2_22672
285@ = 1
goto @MANSIO2_22679

:MANSIO2_22672
284@ = 1

:MANSIO2_22679
return 

:MANSIO2_22681
52@ = 0

:MANSIO2_22688
if and
  183@(52@,6i) <> -1
  183@(52@,6i) <> -2
goto_if_false @MANSIO2_22768
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_22768
183@(52@,6i) = -2
Blip.Remove(173@(52@,6i))
gosub @MANSIO2_25444

:MANSIO2_22768
52@ += 1
  52@ >= 6
goto_if_false @MANSIO2_22688
52@ = 0

:MANSIO2_22796
if 
  269@(52@,6i) == 1
goto_if_false @MANSIO2_22825
gosub @MANSIO2_23529

:MANSIO2_22825
switch_start 183@(52@,6i) {numCases} 30 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_23479 {caseNum1} -2 {caseLabel1} @MANSIO2_23087 {caseNum2} -1 {caseLabel2} @MANSIO2_23087 {caseNum3} 0 {caseLabel3} @MANSIO2_23094 {caseNum4} 1 {caseLabel4} @MANSIO2_23108 {caseNum5} 2 {caseLabel5} @MANSIO2_23122 {caseNum6} 3 {caseLabel6} @MANSIO2_23136 {caseNum7} 4 {caseLabel7} @MANSIO2_23150
switch_continued 5 {caseLabel1} @MANSIO2_23164 {caseNum2} 6 {caseLabel2} @MANSIO2_23178 {caseNum3} 7 {caseLabel3} @MANSIO2_23192 {caseNum4} 8 {caseLabel4} @MANSIO2_23206 {caseNum5} 9 {caseLabel5} @MANSIO2_23220 {caseNum6} 10 {caseLabel6} @MANSIO2_23234 {caseNum7} 11 {caseLabel7} @MANSIO2_23248 {caseNum8} 12 {caseLabel8} @MANSIO2_23262 {caseNum9} 13 {caseLabel9} @MANSIO2_23276
switch_continued 14 {caseLabel1} @MANSIO2_23290 {caseNum2} 15 {caseLabel2} @MANSIO2_23304 {caseNum3} 16 {caseLabel3} @MANSIO2_23318 {caseNum4} 17 {caseLabel4} @MANSIO2_23332 {caseNum5} 18 {caseLabel5} @MANSIO2_23346 {caseNum6} 19 {caseLabel6} @MANSIO2_23360 {caseNum7} 20 {caseLabel7} @MANSIO2_23374 {caseNum8} 21 {caseLabel8} @MANSIO2_23388 {caseNum9} 22 {caseLabel9} @MANSIO2_23402
switch_continued 23 {caseLabel1} @MANSIO2_23416 {caseNum2} 24 {caseLabel2} @MANSIO2_23430 {caseNum3} 25 {caseLabel3} @MANSIO2_23444 {caseNum4} 26 {caseLabel4} @MANSIO2_23458 {caseNum5} 27 {caseLabel5} @MANSIO2_23472 {caseNum6} -1 {caseLabel6} @MANSIO2_23506 {caseNum7} -1 {caseLabel7} @MANSIO2_23506 {caseNum8} -1 {caseLabel8} @MANSIO2_23506 {caseNum9} -1 {caseLabel9} @MANSIO2_23506

:MANSIO2_23087
goto @MANSIO2_23506

:MANSIO2_23094
gosub @MANSIO2_26007
goto @MANSIO2_23506

:MANSIO2_23108
gosub @MANSIO2_26083
goto @MANSIO2_23506

:MANSIO2_23122
gosub @MANSIO2_26244
goto @MANSIO2_23506

:MANSIO2_23136
gosub @MANSIO2_26313
goto @MANSIO2_23506

:MANSIO2_23150
gosub @MANSIO2_26534
goto @MANSIO2_23506

:MANSIO2_23164
gosub @MANSIO2_27077
goto @MANSIO2_23506

:MANSIO2_23178
gosub @MANSIO2_27573
goto @MANSIO2_23506

:MANSIO2_23192
gosub @MANSIO2_27899
goto @MANSIO2_23506

:MANSIO2_23206
gosub @MANSIO2_28244
goto @MANSIO2_23506

:MANSIO2_23220
gosub @MANSIO2_28447
goto @MANSIO2_23506

:MANSIO2_23234
gosub @MANSIO2_28601
goto @MANSIO2_23506

:MANSIO2_23248
gosub @MANSIO2_28822
goto @MANSIO2_23506

:MANSIO2_23262
gosub @MANSIO2_29062
goto @MANSIO2_23506

:MANSIO2_23276
gosub @MANSIO2_29685
goto @MANSIO2_23506

:MANSIO2_23290
gosub @MANSIO2_29743
goto @MANSIO2_23506

:MANSIO2_23304
gosub @MANSIO2_29807
goto @MANSIO2_23506

:MANSIO2_23318
gosub @MANSIO2_29998
goto @MANSIO2_23506

:MANSIO2_23332
gosub @MANSIO2_30429
goto @MANSIO2_23506

:MANSIO2_23346
gosub @MANSIO2_30593
goto @MANSIO2_23506

:MANSIO2_23360
gosub @MANSIO2_30823
goto @MANSIO2_23506

:MANSIO2_23374
gosub @MANSIO2_31218
goto @MANSIO2_23506

:MANSIO2_23388
gosub @MANSIO2_31918
goto @MANSIO2_23506

:MANSIO2_23402
gosub @MANSIO2_32015
goto @MANSIO2_23506

:MANSIO2_23416
gosub @MANSIO2_32147
goto @MANSIO2_23506

:MANSIO2_23430
gosub @MANSIO2_32227
goto @MANSIO2_23506

:MANSIO2_23444
gosub @MANSIO2_32426
goto @MANSIO2_23506

:MANSIO2_23458
gosub @MANSIO2_32707
goto @MANSIO2_23506

:MANSIO2_23472
goto @MANSIO2_23506

:MANSIO2_23479
write_debug "UNKNOWN_GUARD_AI_ACTION"

:MANSIO2_23506
52@ += 1
  52@ >= 6
goto_if_false @MANSIO2_22796
return 

:MANSIO2_23529
if 
  267@ == 1
goto_if_false @MANSIO2_23625
if 
  275@(52@,6i) == 0
goto_if_false @MANSIO2_23623
183@(52@,6i) = 19
275@(52@,6i) = 1
if 
  not Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_23623
Char.SetDecisionMaker(131@(52@,6i), 182@)

:MANSIO2_23623
return 

:MANSIO2_23625
if 
  275@(52@,6i) == 0
goto_if_false @MANSIO2_23786
if 
  not Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_23786
if 
  Char.HasSpottedCharInFront(131@(52@,6i), $scplayer)
goto_if_false @MANSIO2_23786
57@, 58@, 59@ = Char.GetCoordinates(131@(52@,6i))
60@, 61@, 62@ = Char.GetCoordinates($scplayer)
72@ = Math.GetDistanceBetweenCoords3D(57@, 58@, 59@, 60@, 61@, 62@)
if 
  15.0 > 72@
goto_if_false @MANSIO2_23786
183@(52@,6i) = 23
gosub @MANSIO2_24836
return 

:MANSIO2_23786
if 
  275@(52@,6i) == 0
goto_if_false @MANSIO2_23895
if 
  not Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_23895
if or
  Char.CanSeeDeadChar(131@(52@,6i), PedType.Mission2)
  Char.CanSeeDeadChar(131@(52@,6i), PedType.Mission1)
goto_if_false @MANSIO2_23895
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_23893
213@ = 5

:MANSIO2_23893
return 

:MANSIO2_23895
if 
  275@(52@,6i) == 0
goto_if_false @MANSIO2_24165
if 
  not Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_24165
if 
  284@ == 1
goto_if_false @MANSIO2_23989
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_23987
213@ = 3

:MANSIO2_23987
return 

:MANSIO2_23989
if 
  285@ == 1
goto_if_false @MANSIO2_24165
57@, 58@, 59@ = Char.GetCoordinates($scplayer)
60@, 61@, 62@ = Char.GetCoordinates(131@(52@,6i))
70@ = Math.GetDistanceBetweenCoords2D(57@, 58@, 60@, 61@)
if 
  12.0 > 70@
goto_if_false @MANSIO2_24165
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_24124
71@ *= -1.0

:MANSIO2_24124
if 
  5.0 > 71@
goto_if_false @MANSIO2_24165
183@(52@,6i) = 23
gosub @MANSIO2_24836
return 

:MANSIO2_24165
if 
  275@(52@,6i) == 0
goto_if_false @MANSIO2_24261
if 
  not Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_24261
if or
  Char.HasBeenDamagedByChar(131@(52@,6i), $scplayer)
  Char.HasBeenDamagedByWeapon(131@(52@,6i), WeaponType.PistolSilenced)
goto_if_false @MANSIO2_24261
183@(52@,6i) = 23
gosub @MANSIO2_24836
return 

:MANSIO2_24261
return 

:MANSIO2_24263
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_24285
return 

:MANSIO2_24285
73@ = 0
if 
  Char.HasSpottedCharInFront(131@(52@,6i), $scplayer)
goto_if_false @MANSIO2_24322
73@ = 1

:MANSIO2_24322
if 
  73@ == 0
goto_if_false @MANSIO2_24503
if 
  284@ == 1
goto_if_false @MANSIO2_24503
57@, 58@, 59@ = Char.GetCoordinates($scplayer)
60@, 61@, 62@ = Char.GetCoordinates(131@(52@,6i))
70@ = Math.GetDistanceBetweenCoords2D(57@, 58@, 60@, 61@)
if 
  75.0 > 70@
goto_if_false @MANSIO2_24503
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_24475
71@ *= -1.0

:MANSIO2_24475
if 
  5.0 > 71@
goto_if_false @MANSIO2_24503
73@ = 1

:MANSIO2_24503
if 
  73@ == 0
goto_if_false @MANSIO2_24684
if 
  285@ == 1
goto_if_false @MANSIO2_24684
57@, 58@, 59@ = Char.GetCoordinates($scplayer)
60@, 61@, 62@ = Char.GetCoordinates(131@(52@,6i))
70@ = Math.GetDistanceBetweenCoords2D(57@, 58@, 60@, 61@)
if 
  12.0 > 70@
goto_if_false @MANSIO2_24684
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_24656
71@ *= -1.0

:MANSIO2_24656
if 
  5.0 > 71@
goto_if_false @MANSIO2_24684
73@ = 1

:MANSIO2_24684
if 
  73@ == 0
goto_if_false @MANSIO2_24743
if or
  Char.HasBeenDamagedByChar(131@(52@,6i), $scplayer)
  Char.HasBeenDamagedByWeapon(131@(52@,6i), WeaponType.PistolSilenced)
goto_if_false @MANSIO2_24743
73@ = 1

:MANSIO2_24743
if 
  73@ == 1
goto_if_false @MANSIO2_24834
if and
  183@(52@,6i) <> 23
  183@(52@,6i) <> 26
  183@(52@,6i) <> 24
  183@(52@,6i) <> 25
goto_if_false @MANSIO2_24827
183@(52@,6i) = 23

:MANSIO2_24827
gosub @MANSIO2_24836

:MANSIO2_24834
return 

:MANSIO2_24836
if 
  not Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_24881
57@, 58@, 59@ = Char.GetCoordinates(131@(52@,6i))
goto @MANSIO2_24899

:MANSIO2_24881
57@, 58@, 59@ = Char.GetCoordinatesOfDied(131@(52@,6i))

:MANSIO2_24899
48@ = 0

:MANSIO2_24906
if and
  not Char.IsDead(131@(48@,6i))
  not is_int_lvar_equal_to_int_lvar 52@ == 48@
goto_if_false @MANSIO2_25146
60@, 61@, 62@ = Char.GetCoordinates(131@(48@,6i))
72@ = Math.GetDistanceBetweenCoords2D(57@, 58@, 60@, 61@)
if 
  20.0 > 72@
goto_if_false @MANSIO2_25146
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_25037
70@ *= -1.0

:MANSIO2_25037
if 
  6.0 > 70@
goto_if_false @MANSIO2_25146
if 
  269@(48@,6i) == 1
goto_if_false @MANSIO2_25146
if and
  183@(48@,6i) <> 23
  183@(48@,6i) <> 26
  183@(48@,6i) <> 24
  183@(48@,6i) <> 25
goto_if_false @MANSIO2_25146
183@(48@,6i) = 23

:MANSIO2_25146
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_24906
48@ = 0

:MANSIO2_25174
if 
  not Char.IsDead(137@(48@,2i))
goto_if_false @MANSIO2_25421
60@, 61@, 62@ = Char.GetCoordinates(137@(48@,2i))
72@ = Math.GetDistanceBetweenCoords2D(57@, 58@, 60@, 61@)
if 
  20.0 > 72@
goto_if_false @MANSIO2_25421
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_25297
70@ *= -1.0

:MANSIO2_25297
if 
  6.0 > 70@
goto_if_false @MANSIO2_25421
if 
  267@ == 0
goto_if_false @MANSIO2_25421
if 
  281@(48@,2i) == 0
goto_if_false @MANSIO2_25414
189@(48@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_25403
Text.PrintNow('MAN2_45', 7000, 1)

:MANSIO2_25403
281@(48@,2i) = 1

:MANSIO2_25414
goto @MANSIO2_25421

:MANSIO2_25421
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_25174
return 

:MANSIO2_25444
57@, 58@, 59@ = Char.GetCoordinatesOfDied(131@(52@,6i))
48@ = 0

:MANSIO2_25469
if and
  not Char.IsDead(131@(48@,6i))
  not is_int_lvar_equal_to_int_lvar 52@ == 48@
goto_if_false @MANSIO2_25709
60@, 61@, 62@ = Char.GetCoordinates(131@(48@,6i))
72@ = Math.GetDistanceBetweenCoords2D(57@, 58@, 60@, 61@)
if 
  10.0 > 72@
goto_if_false @MANSIO2_25709
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_25600
70@ *= -1.0

:MANSIO2_25600
if 
  6.0 > 70@
goto_if_false @MANSIO2_25709
if 
  269@(48@,6i) == 1
goto_if_false @MANSIO2_25709
if and
  183@(48@,6i) <> 23
  183@(48@,6i) <> 26
  183@(48@,6i) <> 24
  183@(48@,6i) <> 25
goto_if_false @MANSIO2_25709
183@(48@,6i) = 23

:MANSIO2_25709
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_25469
48@ = 0

:MANSIO2_25737
if 
  not Char.IsDead(137@(48@,2i))
goto_if_false @MANSIO2_25984
60@, 61@, 62@ = Char.GetCoordinates(137@(48@,2i))
72@ = Math.GetDistanceBetweenCoords2D(57@, 58@, 60@, 61@)
if 
  10.0 > 72@
goto_if_false @MANSIO2_25984
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_25860
70@ *= -1.0

:MANSIO2_25860
if 
  6.0 > 70@
goto_if_false @MANSIO2_25984
if 
  267@ == 0
goto_if_false @MANSIO2_25984
if 
  281@(48@,2i) == 0
goto_if_false @MANSIO2_25977
189@(48@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_25966
Text.PrintNow('MAN2_45', 7000, 1)

:MANSIO2_25966
281@(48@,2i) = 1

:MANSIO2_25977
goto @MANSIO2_25984

:MANSIO2_25984
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_25737
return 

:MANSIO2_26007
if 
  Car.IsDead(153@)
goto_if_false @MANSIO2_26025
return 

:MANSIO2_26025
Boat.Anchor(153@, False)
Task.CarDriveToCoord(131@(52@,6i), 153@, -1493.44, 506.8398, 0.0, 20.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
183@(52@,6i) = 1
return 

:MANSIO2_26083
if 
  Car.IsDead(153@)
goto_if_false @MANSIO2_26101
return 

:MANSIO2_26101
if 
  not Car.Locate3D(153@, -1493.44, 506.8398, 0.0, 10.0, 15.0, 5.0, False)
goto_if_false @MANSIO2_26231
40@ = Char.GetScriptTaskStatus(131@(52@,6i), 1489)
if or
  is_int_lvar_equal_to_constant 40@ == 1
  is_int_lvar_equal_to_constant 40@ == 0
goto_if_false @MANSIO2_26191
return 

:MANSIO2_26191
Task.CarDriveToCoord(131@(52@,6i), 153@, -1493.44, 506.8398, 0.0, 25.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
return 

:MANSIO2_26231
183@(52@,6i) = 2
return 

:MANSIO2_26244
if 
  Car.IsDead(153@)
goto_if_false @MANSIO2_26262
return 

:MANSIO2_26262
Task.CarDriveToCoord(131@(52@,6i), 153@, -1446.218, 493.9281, 0.0, 10.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
183@(52@,6i) = 3
return 

:MANSIO2_26313
if 
  Car.IsDead(153@)
goto_if_false @MANSIO2_26331
return 

:MANSIO2_26331
if 
  not Car.Locate3D(153@, -1446.218, 493.9281, 0.0, 3.0, 6.0, 5.0, False)
goto_if_false @MANSIO2_26461
40@ = Char.GetScriptTaskStatus(131@(52@,6i), 1489)
if or
  is_int_lvar_equal_to_constant 40@ == 1
  is_int_lvar_equal_to_constant 40@ == 0
goto_if_false @MANSIO2_26421
return 

:MANSIO2_26421
Task.CarDriveToCoord(131@(52@,6i), 153@, -1446.218, 493.9281, 0.0, 10.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)
return 

:MANSIO2_26461
Car.SetCoordinates(153@, -1446.218, 491.9281, 0.0)
Car.SetHeading(153@, 270.0)
Boat.Anchor(153@, True)
195@ = 60
195@ *= 1000
add_int_lvar_to_int_lvar 195@ += 46@
183@(52@,6i) = 4
return 

:MANSIO2_26534
50@ = 0
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_26574
183@(50@,6i) = 5

:MANSIO2_26574
50@ = 1
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_26614
183@(50@,6i) = 5

:MANSIO2_26614
50@ = 2
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_26654
183@(50@,6i) = 5

:MANSIO2_26654
50@ = 5
131@(50@,6i) = Char.Create(PedType.Mission2, 287, -1401.786, 504.5374, 17.2266)
Char.SetHeading(131@(50@,6i), 43.9825)
Char.GiveWeapon(131@(50@,6i), WeaponType.M4, 300)
Char.SetCurrentWeapon(131@(50@,6i), WeaponType.M4)
Char.SetAccuracy(131@(50@,6i), 70)
Char.SetShootRate(131@(50@,6i), 70)
Char.SetDecisionMaker(131@(50@,6i), 181@)
Char.SetIsTargetPriority(131@(50@,6i), True)
50@ = 1
137@(50@,2i) = Char.Create(PedType.Mission1, 50, -1421.757, 496.6105, 2.0463)
189@(50@,2i) = 0
50@ = 0
137@(50@,2i) = Char.Create(PedType.Mission1, 50, -1346.219, 497.9554, 10.1953)
189@(50@,2i) = 0
50@ = 0
154@(50@,3i) = Car.Create(530, -1415.933, 502.7617, 2.0391)
Car.SetHeading(154@(50@,3i), 250.5131)
50@ = 1
154@(50@,3i) = Car.Create(530, -1312.89, 503.5017, 10.1953)
Car.SetHeading(154@(50@,3i), 265.6291)
50@ = 2
154@(50@,3i) = Car.Create(530, -1405.751, 495.4972, 10.2026)
Car.SetHeading(154@(50@,3i), 81.1713)
160@ = Object.Create(#MISSILE_07_SFXR, -1312.89, 503.5017, 10.1953)
Object.AttachToCar(160@, 154@(50@,3i), 0.0, 0.4, 1.5, 0.0, 90.0, 90.0)
return 

:MANSIO2_27077
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_27099
return 

:MANSIO2_27099
switch_start 52@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_27462 {caseNum1} 0 {caseLabel1} @MANSIO2_27162 {caseNum2} 1 {caseLabel2} @MANSIO2_27238 {caseNum3} 2 {caseLabel3} @MANSIO2_27323 {caseNum4} 3 {caseLabel4} @MANSIO2_27408 {caseNum5} 4 {caseLabel5} @MANSIO2_27444 {caseNum6} 5 {caseLabel6} @MANSIO2_27426 {caseNum7} -1 {caseLabel7} @MANSIO2_27494

:MANSIO2_27162
Char.ClearTasksImmediately(131@(52@,6i))
Char.SetCoordinates(131@(52@,6i), -1423.138, 493.9279, 2.0391)
Char.SetHeading(131@(52@,6i), 355.6815)
183@(52@,6i) = 27
269@(52@,6i) = 1
goto @MANSIO2_27494

:MANSIO2_27238
Char.DetachFromCar(131@(52@,6i))
Char.ClearTasksImmediately(131@(52@,6i))
Char.SetCoordinates(131@(52@,6i), -1394.477, 500.653, 2.0463)
Char.SetHeading(131@(52@,6i), 214.6545)
183@(52@,6i) = 27
269@(52@,6i) = 1
goto @MANSIO2_27494

:MANSIO2_27323
Char.DetachFromCar(131@(52@,6i))
Char.ClearTasksImmediately(131@(52@,6i))
Char.SetCoordinates(131@(52@,6i), -1396.397, 500.5882, 2.0391)
Char.SetHeading(131@(52@,6i), 233.6078)
183@(52@,6i) = 27
269@(52@,6i) = 1
goto @MANSIO2_27494

:MANSIO2_27408
183@(52@,6i) = 14
goto @MANSIO2_27494

:MANSIO2_27426
183@(52@,6i) = 6
goto @MANSIO2_27494

:MANSIO2_27444
183@(52@,6i) = 14
goto @MANSIO2_27494

:MANSIO2_27462
write_debug "UNKNOWN_GUARD_FOR_ACTIVATION"

:MANSIO2_27494
if 
  52@ <> 5
goto_if_false @MANSIO2_27571
Char.GiveWeapon(131@(52@,6i), WeaponType.M4, 300)
Char.SetCurrentWeapon(131@(52@,6i), WeaponType.M4)
Char.SetAccuracy(131@(52@,6i), 70)
Char.SetShootRate(131@(52@,6i), 70)
Char.SetDecisionMaker(131@(52@,6i), 181@)

:MANSIO2_27571
return 

:MANSIO2_27573
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_27595
return 

:MANSIO2_27595
switch_start 52@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_27866 {caseNum1} 0 {caseLabel1} @MANSIO2_27658 {caseNum2} 1 {caseLabel2} @MANSIO2_27704 {caseNum3} 2 {caseLabel3} @MANSIO2_27750 {caseNum4} 5 {caseLabel4} @MANSIO2_27820 {caseNum5} -1 {caseLabel5} @MANSIO2_27897 {caseNum6} -1 {caseLabel6} @MANSIO2_27897 {caseNum7} -1 {caseLabel7} @MANSIO2_27897

:MANSIO2_27658
Task.FollowPathNodesToCoord(131@(52@,6i), -1348.171, 498.9987, 10.1953, 4, -2)
183@(52@,6i) = 7
goto @MANSIO2_27897

:MANSIO2_27704
Task.FollowPathNodesToCoord(131@(52@,6i), -1340.658, 500.8229, 17.2266, 4, -2)
183@(52@,6i) = 7
goto @MANSIO2_27897

:MANSIO2_27750
Task.FollowPathNodesToCoord(131@(52@,6i), -1289.705, 489.1904, 10.2026, 4, -2)
183@(52@,6i) = 12
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
goto @MANSIO2_27897

:MANSIO2_27820
Task.GoStraightToCoord(131@(52@,6i), -1445.235, 501.5114, 17.2266, MoveState.Walk, -2)
183@(52@,6i) = 7
goto @MANSIO2_27897

:MANSIO2_27866
write_debug "UNKNOWN_GUARD_FOR_WALK_HOME"

:MANSIO2_27897
return 

:MANSIO2_27899
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_27921
return 

:MANSIO2_27921
switch_start 52@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_28208 {caseNum1} 0 {caseLabel1} @MANSIO2_27984 {caseNum2} 1 {caseLabel2} @MANSIO2_28054 {caseNum3} 5 {caseLabel3} @MANSIO2_28138 {caseNum4} -1 {caseLabel4} @MANSIO2_28242 {caseNum5} -1 {caseLabel5} @MANSIO2_28242 {caseNum6} -1 {caseLabel6} @MANSIO2_28242 {caseNum7} -1 {caseLabel7} @MANSIO2_28242

:MANSIO2_27984
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1348.171, 498.9987, 10.1953, 1.2, 1.2, 2.0, False)
goto_if_false @MANSIO2_28047
183@(52@,6i) = 10

:MANSIO2_28047
goto @MANSIO2_28242

:MANSIO2_28054
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1340.658, 500.8229, 17.2266, 1.2, 1.2, 2.0, False)
goto_if_false @MANSIO2_28131
Task.AchieveHeading(131@(52@,6i), 303.0599)
183@(52@,6i) = 27

:MANSIO2_28131
goto @MANSIO2_28242

:MANSIO2_28138
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1435.72, 501.0618, 17.2266, 1.2, 1.2, 2.0, False)
goto_if_false @MANSIO2_28201
183@(52@,6i) = 16

:MANSIO2_28201
goto @MANSIO2_28242

:MANSIO2_28208
write_debug "UNKNOWN_GUARD_FOR_WALKING_HOME"

:MANSIO2_28242
return 

:MANSIO2_28244
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_28266
return 

:MANSIO2_28266
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_28408 {caseNum1} 0 {caseLabel1} @MANSIO2_28329 {caseNum2} -1 {caseLabel2} @MANSIO2_28434 {caseNum3} -1 {caseLabel3} @MANSIO2_28434 {caseNum4} -1 {caseLabel4} @MANSIO2_28434 {caseNum5} -1 {caseLabel5} @MANSIO2_28434 {caseNum6} -1 {caseLabel6} @MANSIO2_28434 {caseNum7} -1 {caseLabel7} @MANSIO2_28434

:MANSIO2_28329
if 
  not Char.IsDead(138@)
goto_if_false @MANSIO2_28377
Task.ChatWithChar(131@(52@,6i), 138@, True, 1)
Task.ChatWithChar(138@, 131@(52@,6i), False, 1)

:MANSIO2_28377
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 7000
goto @MANSIO2_28434

:MANSIO2_28408
write_debug "UNKNOWN_GUARD_FOR_CHAT"

:MANSIO2_28434
183@(52@,6i) = 9
return 

:MANSIO2_28447
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_28469
return 

:MANSIO2_28469
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_28573 {caseNum1} 0 {caseLabel1} @MANSIO2_28532 {caseNum2} -1 {caseLabel2} @MANSIO2_28599 {caseNum3} -1 {caseLabel3} @MANSIO2_28599 {caseNum4} -1 {caseLabel4} @MANSIO2_28599 {caseNum5} -1 {caseLabel5} @MANSIO2_28599 {caseNum6} -1 {caseLabel6} @MANSIO2_28599 {caseNum7} -1 {caseLabel7} @MANSIO2_28599

:MANSIO2_28532
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_28566
183@(52@,6i) = 6

:MANSIO2_28566
goto @MANSIO2_28599

:MANSIO2_28573
write_debug "UNKNOWN_GUARD_FOR_CHAT"

:MANSIO2_28599
return 

:MANSIO2_28601
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_28623
return 

:MANSIO2_28623
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_28795 {caseNum1} 0 {caseLabel1} @MANSIO2_28686 {caseNum2} -1 {caseLabel2} @MANSIO2_28820 {caseNum3} -1 {caseLabel3} @MANSIO2_28820 {caseNum4} -1 {caseLabel4} @MANSIO2_28820 {caseNum5} -1 {caseLabel5} @MANSIO2_28820 {caseNum6} -1 {caseLabel6} @MANSIO2_28820 {caseNum7} -1 {caseLabel7} @MANSIO2_28820

:MANSIO2_28686
56@ = Sequence.Open()
Task.GoStraightToCoord(-1, -1348.075, 493.1958, 10.1953, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, -1345.749, 493.6958, 10.2027, MoveState.Walk, -2)
Task.AchieveHeading(-1, 180.0)
Task.SitDown(-1, 99999999)
Sequence.Close(56@)
Char.PerformSequence(131@(52@,6i), 56@)
Sequence.Clear(56@)
183@(52@,6i) = 27
goto @MANSIO2_28820

:MANSIO2_28795
write_debug "UNKNOWN_GUARD_FOR_SIT"

:MANSIO2_28820
return 

:MANSIO2_28822
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_28844
return 

:MANSIO2_28844
switch_start 52@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_29032 {caseNum1} 1 {caseLabel1} @MANSIO2_28932 {caseNum2} 2 {caseLabel2} @MANSIO2_28907 {caseNum3} 3 {caseLabel3} @MANSIO2_28957 {caseNum4} 4 {caseLabel4} @MANSIO2_29007 {caseNum5} 5 {caseLabel5} @MANSIO2_28982 {caseNum6} -1 {caseLabel6} @MANSIO2_29060 {caseNum7} -1 {caseLabel7} @MANSIO2_29060

:MANSIO2_28907
gosub @MANSIO2_32909
183@(52@,6i) = 12
goto @MANSIO2_29060

:MANSIO2_28932
gosub @MANSIO2_33708
183@(52@,6i) = 12
goto @MANSIO2_29060

:MANSIO2_28957
gosub @MANSIO2_34399
183@(52@,6i) = 12
goto @MANSIO2_29060

:MANSIO2_28982
gosub @MANSIO2_35198
183@(52@,6i) = 12
goto @MANSIO2_29060

:MANSIO2_29007
gosub @MANSIO2_35889
183@(52@,6i) = 12
goto @MANSIO2_29060

:MANSIO2_29032
write_debug "UNKNOWN_GUARD_FOR_WANDER"

:MANSIO2_29060
return 

:MANSIO2_29062
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_29084
return 

:MANSIO2_29084
switch_start 52@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_29652 {caseNum1} 1 {caseLabel1} @MANSIO2_29248 {caseNum2} 2 {caseLabel2} @MANSIO2_29147 {caseNum3} 3 {caseLabel3} @MANSIO2_29349 {caseNum4} 4 {caseLabel4} @MANSIO2_29551 {caseNum5} 5 {caseLabel5} @MANSIO2_29450 {caseNum6} -1 {caseLabel6} @MANSIO2_29683 {caseNum7} -1 {caseLabel7} @MANSIO2_29683

:MANSIO2_29147
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29241
gosub @MANSIO2_33239
if 
  73@ == 1
goto_if_false @MANSIO2_29241
50@ = Math.RandomIntInRange(5000, 7000)
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
add_int_lvar_to_int_lvar 198@(52@,6i) += 50@
183@(52@,6i) = 13

:MANSIO2_29241
goto @MANSIO2_29683

:MANSIO2_29248
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29342
gosub @MANSIO2_34003
if 
  73@ == 1
goto_if_false @MANSIO2_29342
50@ = Math.RandomIntInRange(5000, 7000)
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
add_int_lvar_to_int_lvar 198@(52@,6i) += 50@
183@(52@,6i) = 13

:MANSIO2_29342
goto @MANSIO2_29683

:MANSIO2_29349
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29443
gosub @MANSIO2_34729
if 
  73@ == 1
goto_if_false @MANSIO2_29443
50@ = Math.RandomIntInRange(5000, 7000)
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
add_int_lvar_to_int_lvar 198@(52@,6i) += 50@
183@(52@,6i) = 13

:MANSIO2_29443
goto @MANSIO2_29683

:MANSIO2_29450
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29544
gosub @MANSIO2_35493
if 
  73@ == 1
goto_if_false @MANSIO2_29544
50@ = Math.RandomIntInRange(5000, 7000)
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
add_int_lvar_to_int_lvar 198@(52@,6i) += 50@
183@(52@,6i) = 13

:MANSIO2_29544
goto @MANSIO2_29683

:MANSIO2_29551
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29645
gosub @MANSIO2_36184
if 
  73@ == 1
goto_if_false @MANSIO2_29645
50@ = Math.RandomIntInRange(5000, 7000)
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
add_int_lvar_to_int_lvar 198@(52@,6i) += 50@
183@(52@,6i) = 13

:MANSIO2_29645
goto @MANSIO2_29683

:MANSIO2_29652
write_debug "UNKNOWN_GUARD_FOR_WANDERING"

:MANSIO2_29683
return 

:MANSIO2_29685
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_29707
return 

:MANSIO2_29707
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29741
183@(52@,6i) = 11

:MANSIO2_29741
return 

:MANSIO2_29743
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_29765
return 

:MANSIO2_29765
if 
  Char.IsInAnyPlane(131@(52@,6i))
goto_if_false @MANSIO2_29794
Task.LeaveAnyCar(131@(52@,6i))

:MANSIO2_29794
183@(52@,6i) = 15
return 

:MANSIO2_29807
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_29829
return 

:MANSIO2_29829
if 
  Char.IsInAnyPlane(131@(52@,6i))
goto_if_false @MANSIO2_29851
return 

:MANSIO2_29851
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_29961 {caseNum1} 3 {caseLabel1} @MANSIO2_29914 {caseNum2} 4 {caseLabel2} @MANSIO2_29943 {caseNum3} -1 {caseLabel3} @MANSIO2_29996 {caseNum4} -1 {caseLabel4} @MANSIO2_29996 {caseNum5} -1 {caseLabel5} @MANSIO2_29996 {caseNum6} -1 {caseLabel6} @MANSIO2_29996 {caseNum7} -1 {caseLabel7} @MANSIO2_29996

:MANSIO2_29914
183@(52@,6i) = 11
269@(52@,6i) = 1
goto @MANSIO2_29996

:MANSIO2_29943
183@(52@,6i) = 27
goto @MANSIO2_29996

:MANSIO2_29961
write_debug "UNKNOWN_GUARD_FOR_EXITING_PLANE"

:MANSIO2_29996
return 

:MANSIO2_29998
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_30020
return 

:MANSIO2_30020
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_30393 {caseNum1} 5 {caseLabel1} @MANSIO2_30083 {caseNum2} -1 {caseLabel2} @MANSIO2_30427 {caseNum3} -1 {caseLabel3} @MANSIO2_30427 {caseNum4} -1 {caseLabel4} @MANSIO2_30427 {caseNum5} -1 {caseLabel5} @MANSIO2_30427 {caseNum6} -1 {caseLabel6} @MANSIO2_30427 {caseNum7} -1 {caseLabel7} @MANSIO2_30427

:MANSIO2_30083
if 
  Car.IsDead(142@)
goto_if_false @MANSIO2_30126
183@(52@,6i) = 11
Char.ClearLookAt(131@(52@,6i))
goto @MANSIO2_30386

:MANSIO2_30126
if 
  not Car.IsPlaybackGoingOn(142@)
goto_if_false @MANSIO2_30169
183@(52@,6i) = 11
Char.ClearLookAt(131@(52@,6i))
goto @MANSIO2_30386

:MANSIO2_30169
57@, 58@, 59@ = Char.GetCoordinates(131@(52@,6i))
set_lvar_float_to_lvar_float 67@ = 57@
set_lvar_float_to_lvar_float 68@ = 58@
57@, 58@, 59@ = Car.GetCoordinates(142@)
set_lvar_float_to_lvar_float 64@ = 57@
set_lvar_float_to_lvar_float 65@ = 58@
set_lvar_float_to_lvar_float 57@ = 64@
sub_float_lvar_from_float_lvar 57@ -= 67@
set_lvar_float_to_lvar_float 58@ = 65@
sub_float_lvar_from_float_lvar 58@ -= 68@
63@ = Math.GetHeadingFromVector2D(57@, 58@)
Task.AchieveHeading(131@(52@,6i), 63@)
40@ = Char.GetScriptTaskStatus(131@(52@,6i), 1471)
if 
  not is_int_lvar_equal_to_constant 40@ == 1
goto_if_false @MANSIO2_30351
if 
  not Char.IsDead(134@)
goto_if_false @MANSIO2_30351
Task.LookAtChar(131@(52@,6i), 134@, -2)

:MANSIO2_30351
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
183@(52@,6i) = 17

:MANSIO2_30386
goto @MANSIO2_30427

:MANSIO2_30393
write_debug "UNKNOWN_GUARD_FOR_WATCH_PLANES"

:MANSIO2_30427
return 

:MANSIO2_30429
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_30451
return 

:MANSIO2_30451
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_30555 {caseNum1} 5 {caseLabel1} @MANSIO2_30514 {caseNum2} -1 {caseLabel2} @MANSIO2_30591 {caseNum3} -1 {caseLabel3} @MANSIO2_30591 {caseNum4} -1 {caseLabel4} @MANSIO2_30591 {caseNum5} -1 {caseLabel5} @MANSIO2_30591 {caseNum6} -1 {caseLabel6} @MANSIO2_30591 {caseNum7} -1 {caseLabel7} @MANSIO2_30591

:MANSIO2_30514
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_30548
183@(52@,6i) = 16

:MANSIO2_30548
goto @MANSIO2_30591

:MANSIO2_30555
write_debug "UNKNOWN_GUARD_FOR_WATCHING_PLANE"

:MANSIO2_30591
return 

:MANSIO2_30593
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_30615
return 

:MANSIO2_30615
if 
  Char.IsInAnyCar(131@(52@,6i))
goto_if_false @MANSIO2_30637
return 

:MANSIO2_30637
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_30791 {caseNum1} 4 {caseLabel1} @MANSIO2_30700 {caseNum2} -1 {caseLabel2} @MANSIO2_30821 {caseNum3} -1 {caseLabel3} @MANSIO2_30821 {caseNum4} -1 {caseLabel4} @MANSIO2_30821 {caseNum5} -1 {caseLabel5} @MANSIO2_30821 {caseNum6} -1 {caseLabel6} @MANSIO2_30821 {caseNum7} -1 {caseLabel7} @MANSIO2_30821

:MANSIO2_30700
Char.SetCoordinates(131@(52@,6i), -1413.004, 508.974, 10.1953)
183@(52@,6i) = 27
269@(52@,6i) = 1
173@(52@,6i) = Blip.AddForChar(131@(52@,6i))
Blip.ChangeDisplay(173@(52@,6i), BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(173@(52@,6i), True)
goto @MANSIO2_30821

:MANSIO2_30791
write_debug "UNKNOWN_GUARD_FOR_TELEPORT"

:MANSIO2_30821
return 

:MANSIO2_30823
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_30845
return 

:MANSIO2_30845
switch_start 52@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_31184 {caseNum1} 0 {caseLabel1} @MANSIO2_30908 {caseNum2} 1 {caseLabel2} @MANSIO2_30954 {caseNum3} 2 {caseLabel3} @MANSIO2_31000 {caseNum4} 3 {caseLabel4} @MANSIO2_31046 {caseNum5} 4 {caseLabel5} @MANSIO2_31138 {caseNum6} 5 {caseLabel6} @MANSIO2_31092 {caseNum7} -1 {caseLabel7} @MANSIO2_31216

:MANSIO2_30908
Task.FollowPathNodesToCoord(131@(52@,6i), -1324.158, 508.4572, 10.1953, 6, -2)
183@(52@,6i) = 20
goto @MANSIO2_31216

:MANSIO2_30954
Task.FollowPathNodesToCoord(131@(52@,6i), -1348.061, 492.4249, 10.1953, 6, -2)
183@(52@,6i) = 20
goto @MANSIO2_31216

:MANSIO2_31000
Task.FollowPathNodesToCoord(131@(52@,6i), -1299.653, 509.2915, 10.1953, 6, -2)
183@(52@,6i) = 20
goto @MANSIO2_31216

:MANSIO2_31046
Task.FollowPathNodesToCoord(131@(52@,6i), -1434.212, 508.0886, 10.1953, 6, -2)
183@(52@,6i) = 20
goto @MANSIO2_31216

:MANSIO2_31092
Task.FollowPathNodesToCoord(131@(52@,6i), -1418.207, 492.2773, 17.2266, 6, -2)
183@(52@,6i) = 20
goto @MANSIO2_31216

:MANSIO2_31138
Task.FollowPathNodesToCoord(131@(52@,6i), -1409.154, 506.4637, 10.1953, 6, -2)
183@(52@,6i) = 20
goto @MANSIO2_31216

:MANSIO2_31184
write_debug "UNKNOWN_GUARD_FOR_GOTO_ALERT"

:MANSIO2_31216
return 

:MANSIO2_31218
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_31240
return 

:MANSIO2_31240
switch_start 52@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_31873 {caseNum1} 0 {caseLabel1} @MANSIO2_31303 {caseNum2} 1 {caseLabel2} @MANSIO2_31398 {caseNum3} 2 {caseLabel3} @MANSIO2_31493 {caseNum4} 3 {caseLabel4} @MANSIO2_31588 {caseNum5} 4 {caseLabel5} @MANSIO2_31778 {caseNum6} 5 {caseLabel6} @MANSIO2_31683 {caseNum7} -1 {caseLabel7} @MANSIO2_31909

:MANSIO2_31303
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1324.158, 508.4572, 10.1953, 2.0, 2.0, 2.0, False)
goto_if_false @MANSIO2_31391
Task.AchieveHeading(131@(52@,6i), 98.0823)
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31391
goto @MANSIO2_31909

:MANSIO2_31398
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1348.061, 492.4249, 10.1953, 2.0, 2.0, 2.0, False)
goto_if_false @MANSIO2_31486
Task.AchieveHeading(131@(52@,6i), 0.0)
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31486
goto @MANSIO2_31909

:MANSIO2_31493
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1299.653, 509.2915, 10.1953, 2.0, 2.0, 2.0, False)
goto_if_false @MANSIO2_31581
Task.AchieveHeading(131@(52@,6i), 122.1536)
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31581
goto @MANSIO2_31909

:MANSIO2_31588
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1434.212, 508.0886, 10.1953, 2.0, 2.0, 2.0, False)
goto_if_false @MANSIO2_31676
Task.AchieveHeading(131@(52@,6i), 261.6837)
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31676
goto @MANSIO2_31909

:MANSIO2_31683
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1418.207, 492.2773, 17.2266, 2.0, 2.0, 2.0, False)
goto_if_false @MANSIO2_31771
Task.AchieveHeading(131@(52@,6i), 304.1052)
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31771
goto @MANSIO2_31909

:MANSIO2_31778
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1409.154, 506.4637, 10.1953, 2.0, 2.0, 2.0, False)
goto_if_false @MANSIO2_31866
Task.AchieveHeading(131@(52@,6i), 270.2725)
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31866
goto @MANSIO2_31909

:MANSIO2_31873
write_debug "UNKNOWN_GUARD_FOR_GOING_TO_ALERT"

:MANSIO2_31909
gosub @MANSIO2_24263
return 

:MANSIO2_31918
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_31940
return 

:MANSIO2_31940
40@ = Char.GetScriptTaskStatus(131@(52@,6i), 1492)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @MANSIO2_32006
Char.SetKindaStayInSamePlace(131@(52@,6i), True)
183@(52@,6i) = 22
198@(52@,6i) = 0

:MANSIO2_32006
gosub @MANSIO2_24263
return 

:MANSIO2_32015
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_32037
return 

:MANSIO2_32037
if 
  is_int_lvar_greater_than_int_lvar 198@(52@,6i) > 46@
goto_if_false @MANSIO2_32062
return 

:MANSIO2_32062
40@ = Char.GetScriptTaskStatus(131@(52@,6i), 1588)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @MANSIO2_32138
Task.KillCharOnFootWhileDucking(131@(52@,6i), $scplayer, 4, 3000, 60)
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 1000

:MANSIO2_32138
gosub @MANSIO2_24263
return 

:MANSIO2_32147
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_32169
return 

:MANSIO2_32169
Char.SetDecisionMaker(131@(52@,6i), 182@)
Char.SetKindaStayInSamePlace(131@(52@,6i), False)
183@(52@,6i) = 26
275@(52@,6i) = 1
198@(52@,6i) = 0
return 

:MANSIO2_32227
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_32249
return 

:MANSIO2_32249
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_32347 {caseNum1} 0 {caseLabel1} @MANSIO2_32312 {caseNum2} -1 {caseLabel2} @MANSIO2_32379 {caseNum3} -1 {caseLabel3} @MANSIO2_32379 {caseNum4} -1 {caseLabel4} @MANSIO2_32379 {caseNum5} -1 {caseLabel5} @MANSIO2_32379 {caseNum6} -1 {caseLabel6} @MANSIO2_32379 {caseNum7} -1 {caseLabel7} @MANSIO2_32379

:MANSIO2_32312
Task.GoStraightToCoord(131@(52@,6i), -1431.944, 500.2454, 2.0391, MoveState.Run, -2)
goto @MANSIO2_32379

:MANSIO2_32347
write_debug "UNKNOWN_GUARD_FOR_RUN_ATTACK"

:MANSIO2_32379
Char.SetDecisionMaker(131@(52@,6i), 182@)
183@(52@,6i) = 25
275@(52@,6i) = 1
198@(52@,6i) = 0
return 

:MANSIO2_32426
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_32448
return 

:MANSIO2_32448
if 
  267@ == 0
goto_if_false @MANSIO2_32518
if 
  Char.IsShooting(131@(52@,6i))
goto_if_false @MANSIO2_32518
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_32518
213@ = 3

:MANSIO2_32518
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_32662 {caseNum1} 0 {caseLabel1} @MANSIO2_32581 {caseNum2} -1 {caseLabel2} @MANSIO2_32698 {caseNum3} -1 {caseLabel3} @MANSIO2_32698 {caseNum4} -1 {caseLabel4} @MANSIO2_32698 {caseNum5} -1 {caseLabel5} @MANSIO2_32698 {caseNum6} -1 {caseLabel6} @MANSIO2_32698 {caseNum7} -1 {caseLabel7} @MANSIO2_32698

:MANSIO2_32581
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1431.944, 500.2454, 2.0391, 1.2, 1.2, 2.0, False)
goto_if_false @MANSIO2_32655
198@(52@,6i) = 0
183@(52@,6i) = 26

:MANSIO2_32655
goto @MANSIO2_32698

:MANSIO2_32662
write_debug "UNKNOWN_GUARD_FOR_RUNNING_ATTACK"

:MANSIO2_32698
gosub @MANSIO2_24263
return 

:MANSIO2_32707
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_32729
return 

:MANSIO2_32729
if 
  267@ == 0
goto_if_false @MANSIO2_32799
if 
  Char.IsShooting(131@(52@,6i))
goto_if_false @MANSIO2_32799
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_32799
213@ = 3

:MANSIO2_32799
if 
  is_int_lvar_greater_than_int_lvar 198@(52@,6i) > 46@
goto_if_false @MANSIO2_32824
return 

:MANSIO2_32824
40@ = Char.GetScriptTaskStatus(131@(52@,6i), 1588)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @MANSIO2_32900
Task.KillCharOnFootWhileDucking(131@(52@,6i), $scplayer, 4, 3000, 60)
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 1000

:MANSIO2_32900
gosub @MANSIO2_24263
return 

:MANSIO2_32909
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_32931
return 

:MANSIO2_32931
50@ = Math.RandomIntInRange(0, 6)
switch_start 50@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_33213 {caseNum1} 0 {caseLabel1} @MANSIO2_33003 {caseNum2} 1 {caseLabel2} @MANSIO2_33038 {caseNum3} 2 {caseLabel3} @MANSIO2_33073 {caseNum4} 3 {caseLabel4} @MANSIO2_33108 {caseNum5} 4 {caseLabel5} @MANSIO2_33143 {caseNum6} 5 {caseLabel6} @MANSIO2_33178 {caseNum7} -1 {caseLabel7} @MANSIO2_33213

:MANSIO2_33003
Task.FollowPathNodesToCoord(131@(52@,6i), -1289.705, 489.1904, 10.2026, 4, -2)
goto @MANSIO2_33213

:MANSIO2_33038
Task.FollowPathNodesToCoord(131@(52@,6i), -1325.661, 498.4251, 10.2026, 4, -2)
goto @MANSIO2_33213

:MANSIO2_33073
Task.FollowPathNodesToCoord(131@(52@,6i), -1302.248, 504.2907, 10.1953, 4, -2)
goto @MANSIO2_33213

:MANSIO2_33108
Task.FollowPathNodesToCoord(131@(52@,6i), -1292.353, 494.8264, 10.1953, 4, -2)
goto @MANSIO2_33213

:MANSIO2_33143
Task.FollowPathNodesToCoord(131@(52@,6i), -1301.599, 509.8161, 10.1953, 4, -2)
goto @MANSIO2_33213

:MANSIO2_33178
Task.FollowPathNodesToCoord(131@(52@,6i), -1294.257, 504.8536, 10.1953, 4, -2)
goto @MANSIO2_33213

:MANSIO2_33213
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
return 

:MANSIO2_33239
73@ = 0
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_33268
return 

:MANSIO2_33268
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1289.705, 489.1904, 10.2026, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_33341
Task.AchieveHeading(131@(52@,6i), 155.3066)
73@ = 1

:MANSIO2_33341
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1325.661, 498.4251, 10.2026, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_33414
Task.AchieveHeading(131@(52@,6i), 77.7535)
73@ = 1

:MANSIO2_33414
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1302.248, 504.2907, 10.1953, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_33487
Task.AchieveHeading(131@(52@,6i), 275.9547)
73@ = 1

:MANSIO2_33487
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1292.353, 494.8264, 10.1953, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_33560
Task.AchieveHeading(131@(52@,6i), 248.83)
73@ = 1

:MANSIO2_33560
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1301.599, 509.8161, 10.1953, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_33633
Task.AchieveHeading(131@(52@,6i), 14.841)
73@ = 1

:MANSIO2_33633
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1294.257, 504.8536, 10.1953, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_33706
Task.AchieveHeading(131@(52@,6i), 157.6618)
73@ = 1

:MANSIO2_33706
return 

:MANSIO2_33708
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_33730
return 

:MANSIO2_33730
50@ = Math.RandomIntInRange(0, 5)
switch_start 50@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_33977 {caseNum1} 0 {caseLabel1} @MANSIO2_33802 {caseNum2} 1 {caseLabel2} @MANSIO2_33837 {caseNum3} 2 {caseLabel3} @MANSIO2_33872 {caseNum4} 3 {caseLabel4} @MANSIO2_33907 {caseNum5} 4 {caseLabel5} @MANSIO2_33942 {caseNum6} -1 {caseLabel6} @MANSIO2_33977 {caseNum7} -1 {caseLabel7} @MANSIO2_33977

:MANSIO2_33802
Task.FollowPathNodesToCoord(131@(52@,6i), -1311.834, 489.4401, 17.2266, 4, -2)
goto @MANSIO2_33977

:MANSIO2_33837
Task.FollowPathNodesToCoord(131@(52@,6i), -1298.359, 512.5721, 17.2266, 4, -2)
goto @MANSIO2_33977

:MANSIO2_33872
Task.FollowPathNodesToCoord(131@(52@,6i), -1247.352, 502.8824, 17.2266, 4, -2)
goto @MANSIO2_33977

:MANSIO2_33907
Task.FollowPathNodesToCoord(131@(52@,6i), -1359.656, 512.5123, 17.2266, 4, -2)
goto @MANSIO2_33977

:MANSIO2_33942
Task.FollowPathNodesToCoord(131@(52@,6i), -1349.606, 493.5821, 17.2279, 4, -2)
goto @MANSIO2_33977

:MANSIO2_33977
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
return 

:MANSIO2_34003
73@ = 0
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_34032
return 

:MANSIO2_34032
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1311.834, 489.4401, 17.2266, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_34105
Task.AchieveHeading(131@(52@,6i), 180.0)
73@ = 1

:MANSIO2_34105
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1298.359, 512.5721, 17.2266, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_34178
Task.AchieveHeading(131@(52@,6i), 0.0)
73@ = 1

:MANSIO2_34178
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1247.352, 502.8824, 17.2266, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_34251
Task.AchieveHeading(131@(52@,6i), 270.0)
73@ = 1

:MANSIO2_34251
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1359.656, 512.5123, 17.2266, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_34324
Task.AchieveHeading(131@(52@,6i), 0.0)
73@ = 1

:MANSIO2_34324
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1349.606, 493.5821, 17.2279, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_34397
Task.AchieveHeading(131@(52@,6i), 80.0)
73@ = 1

:MANSIO2_34397
return 

:MANSIO2_34399
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_34421
return 

:MANSIO2_34421
50@ = Math.RandomIntInRange(0, 6)
switch_start 50@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_34703 {caseNum1} 0 {caseLabel1} @MANSIO2_34493 {caseNum2} 1 {caseLabel2} @MANSIO2_34528 {caseNum3} 2 {caseLabel3} @MANSIO2_34563 {caseNum4} 3 {caseLabel4} @MANSIO2_34598 {caseNum5} 4 {caseLabel5} @MANSIO2_34633 {caseNum6} 5 {caseLabel6} @MANSIO2_34668 {caseNum7} -1 {caseLabel7} @MANSIO2_34703

:MANSIO2_34493
Task.FollowPathNodesToCoord(131@(52@,6i), -1444.29, 496.4273, 10.1953, 4, -2)
goto @MANSIO2_34703

:MANSIO2_34528
Task.FollowPathNodesToCoord(131@(52@,6i), -1449.621, 506.0983, 10.1953, 4, -2)
goto @MANSIO2_34703

:MANSIO2_34563
Task.FollowPathNodesToCoord(131@(52@,6i), -1424.253, 511.1483, 10.1953, 4, -2)
goto @MANSIO2_34703

:MANSIO2_34598
Task.FollowPathNodesToCoord(131@(52@,6i), -1411.083, 511.8316, 10.1953, 4, -2)
goto @MANSIO2_34703

:MANSIO2_34633
Task.FollowPathNodesToCoord(131@(52@,6i), -1417.342, 505.5704, 10.1953, 4, -2)
goto @MANSIO2_34703

:MANSIO2_34668
Task.FollowPathNodesToCoord(131@(52@,6i), -1431.498, 501.8023, 10.1953, 4, -2)
goto @MANSIO2_34703

:MANSIO2_34703
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
return 

:MANSIO2_34729
73@ = 0
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_34758
return 

:MANSIO2_34758
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1444.29, 496.4273, 10.1953, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_34831
Task.AchieveHeading(131@(52@,6i), 56.0502)
73@ = 1

:MANSIO2_34831
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1449.621, 506.0983, 10.1953, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_34904
Task.AchieveHeading(131@(52@,6i), 123.3438)
73@ = 1

:MANSIO2_34904
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1424.253, 511.1483, 10.1953, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_34977
Task.AchieveHeading(131@(52@,6i), 318.9861)
73@ = 1

:MANSIO2_34977
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1411.083, 511.8316, 10.1953, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_35050
Task.AchieveHeading(131@(52@,6i), 28.0647)
73@ = 1

:MANSIO2_35050
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1417.342, 505.5704, 10.1953, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_35123
Task.AchieveHeading(131@(52@,6i), 139.4299)
73@ = 1

:MANSIO2_35123
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1431.498, 501.8023, 10.1953, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_35196
Task.AchieveHeading(131@(52@,6i), 242.7025)
73@ = 1

:MANSIO2_35196
return 

:MANSIO2_35198
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_35220
return 

:MANSIO2_35220
50@ = Math.RandomIntInRange(0, 5)
switch_start 50@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_35467 {caseNum1} 0 {caseLabel1} @MANSIO2_35292 {caseNum2} 1 {caseLabel2} @MANSIO2_35327 {caseNum3} 2 {caseLabel3} @MANSIO2_35362 {caseNum4} 3 {caseLabel4} @MANSIO2_35397 {caseNum5} 4 {caseLabel5} @MANSIO2_35432 {caseNum6} -1 {caseLabel6} @MANSIO2_35467 {caseNum7} -1 {caseLabel7} @MANSIO2_35467

:MANSIO2_35292
Task.GoStraightToCoord(131@(52@,6i), -1445.235, 501.5114, 17.2266, MoveState.Walk, -2)
goto @MANSIO2_35467

:MANSIO2_35327
Task.GoStraightToCoord(131@(52@,6i), -1419.48, 510.346, 17.2295, MoveState.Walk, -2)
goto @MANSIO2_35467

:MANSIO2_35362
Task.GoStraightToCoord(131@(52@,6i), -1412.218, 489.4574, 17.2266, MoveState.Walk, -2)
goto @MANSIO2_35467

:MANSIO2_35397
Task.GoStraightToCoord(131@(52@,6i), -1395.935, 498.2455, 17.2266, MoveState.Walk, -2)
goto @MANSIO2_35467

:MANSIO2_35432
Task.GoStraightToCoord(131@(52@,6i), -1373.579, 512.998, 17.2295, MoveState.Walk, -2)
goto @MANSIO2_35467

:MANSIO2_35467
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
return 

:MANSIO2_35493
73@ = 0
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_35522
return 

:MANSIO2_35522
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1445.235, 501.5114, 17.2266, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_35595
Task.AchieveHeading(131@(52@,6i), 90.0)
73@ = 1

:MANSIO2_35595
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1419.48, 510.346, 17.2295, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_35668
Task.AchieveHeading(131@(52@,6i), 0.0)
73@ = 1

:MANSIO2_35668
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1412.218, 489.4574, 17.2266, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_35741
Task.AchieveHeading(131@(52@,6i), 180.0)
73@ = 1

:MANSIO2_35741
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1395.935, 498.2455, 17.2266, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_35814
Task.AchieveHeading(131@(52@,6i), 194.6539)
73@ = 1

:MANSIO2_35814
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1373.579, 512.998, 17.2295, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_35887
Task.AchieveHeading(131@(52@,6i), 326.651)
73@ = 1

:MANSIO2_35887
return 

:MANSIO2_35889
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_35911
return 

:MANSIO2_35911
50@ = Math.RandomIntInRange(0, 5)
switch_start 50@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_36158 {caseNum1} 0 {caseLabel1} @MANSIO2_35983 {caseNum2} 1 {caseLabel2} @MANSIO2_36018 {caseNum3} 2 {caseLabel3} @MANSIO2_36053 {caseNum4} 3 {caseLabel4} @MANSIO2_36088 {caseNum5} 4 {caseLabel5} @MANSIO2_36123 {caseNum6} -1 {caseLabel6} @MANSIO2_36158 {caseNum7} -1 {caseLabel7} @MANSIO2_36158

:MANSIO2_35983
Task.FollowPathNodesToCoord(131@(52@,6i), -1411.714, 512.2815, 10.1953, 4, -2)
goto @MANSIO2_36158

:MANSIO2_36018
Task.FollowPathNodesToCoord(131@(52@,6i), -1406.451, 502.476, 10.1953, 4, -2)
goto @MANSIO2_36158

:MANSIO2_36053
Task.FollowPathNodesToCoord(131@(52@,6i), -1366.03, 505.7779, 10.2026, 4, -2)
goto @MANSIO2_36158

:MANSIO2_36088
Task.FollowPathNodesToCoord(131@(52@,6i), -1366.484, 516.8234, 10.1797, 4, -2)
goto @MANSIO2_36158

:MANSIO2_36123
Task.FollowPathNodesToCoord(131@(52@,6i), -1344.821, 499.0515, 10.2027, 4, -2)
goto @MANSIO2_36158

:MANSIO2_36158
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
return 

:MANSIO2_36184
73@ = 0
if 
  Char.IsDead(131@(52@,6i))
goto_if_false @MANSIO2_36213
return 

:MANSIO2_36213
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1411.714, 512.2815, 10.1953, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_36286
Task.AchieveHeading(131@(52@,6i), 24.5074)
73@ = 1

:MANSIO2_36286
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1406.451, 502.476, 10.1953, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_36359
Task.AchieveHeading(131@(52@,6i), 236.3499)
73@ = 1

:MANSIO2_36359
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1366.03, 505.7779, 10.2026, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_36432
Task.AchieveHeading(131@(52@,6i), 180.0)
73@ = 1

:MANSIO2_36432
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1366.484, 516.8234, 10.1797, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_36505
Task.AchieveHeading(131@(52@,6i), 341.4966)
73@ = 1

:MANSIO2_36505
if 
  Char.LocateAnyMeans3D(131@(52@,6i), -1344.821, 499.0515, 10.2027, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_36578
Task.AchieveHeading(131@(52@,6i), 192.1196)
73@ = 1

:MANSIO2_36578
return 

:MANSIO2_36580
52@ = 0

:MANSIO2_36587
if and
  189@(52@,2i) <> -1
  189@(52@,2i) <> -2
goto_if_false @MANSIO2_36658
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_36658
189@(52@,2i) = -2
gosub @MANSIO2_39338

:MANSIO2_36658
52@ += 1
  52@ >= 2
goto_if_false @MANSIO2_36587
52@ = 0

:MANSIO2_36686
gosub @MANSIO2_37173
switch_start 189@(52@,2i) {numCases} 19 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_37128 {caseNum1} -2 {caseLabel1} @MANSIO2_36890 {caseNum2} -1 {caseLabel2} @MANSIO2_36890 {caseNum3} 0 {caseLabel3} @MANSIO2_36897 {caseNum4} 1 {caseLabel4} @MANSIO2_36939 {caseNum5} 2 {caseLabel5} @MANSIO2_36953 {caseNum6} 3 {caseLabel6} @MANSIO2_36967 {caseNum7} 4 {caseLabel7} @MANSIO2_36981
switch_continued 5 {caseLabel1} @MANSIO2_36995 {caseNum2} 6 {caseLabel2} @MANSIO2_36911 {caseNum3} 7 {caseLabel3} @MANSIO2_36925 {caseNum4} 8 {caseLabel4} @MANSIO2_37009 {caseNum5} 9 {caseLabel5} @MANSIO2_37023 {caseNum6} 10 {caseLabel6} @MANSIO2_37037 {caseNum7} 11 {caseLabel7} @MANSIO2_37051 {caseNum8} 12 {caseLabel8} @MANSIO2_37065 {caseNum9} 13 {caseLabel9} @MANSIO2_37079
switch_continued 14 {caseLabel1} @MANSIO2_37093 {caseNum2} 15 {caseLabel2} @MANSIO2_37107 {caseNum3} 16 {caseLabel3} @MANSIO2_37121 {caseNum4} -1 {caseLabel4} @MANSIO2_37150 {caseNum5} -1 {caseLabel5} @MANSIO2_37150 {caseNum6} -1 {caseLabel6} @MANSIO2_37150 {caseNum7} -1 {caseLabel7} @MANSIO2_37150 {caseNum8} -1 {caseLabel8} @MANSIO2_37150 {caseNum9} -1 {caseLabel9} @MANSIO2_37150

:MANSIO2_36890
goto @MANSIO2_37150

:MANSIO2_36897
gosub @MANSIO2_39901
goto @MANSIO2_37150

:MANSIO2_36911
gosub @MANSIO2_40132
goto @MANSIO2_37150

:MANSIO2_36925
gosub @MANSIO2_40290
goto @MANSIO2_37150

:MANSIO2_36939
gosub @MANSIO2_40451
goto @MANSIO2_37150

:MANSIO2_36953
gosub @MANSIO2_40661
goto @MANSIO2_37150

:MANSIO2_36967
gosub @MANSIO2_40931
goto @MANSIO2_37150

:MANSIO2_36981
gosub @MANSIO2_41099
goto @MANSIO2_37150

:MANSIO2_36995
gosub @MANSIO2_41422
goto @MANSIO2_37150

:MANSIO2_37009
gosub @MANSIO2_41480
goto @MANSIO2_37150

:MANSIO2_37023
gosub @MANSIO2_41863
goto @MANSIO2_37150

:MANSIO2_37037
gosub @MANSIO2_42377
goto @MANSIO2_37150

:MANSIO2_37051
gosub @MANSIO2_42572
goto @MANSIO2_37150

:MANSIO2_37065
gosub @MANSIO2_43010
goto @MANSIO2_37150

:MANSIO2_37079
gosub @MANSIO2_43371
goto @MANSIO2_37150

:MANSIO2_37093
gosub @MANSIO2_43823
goto @MANSIO2_37150

:MANSIO2_37107
gosub @MANSIO2_44301
goto @MANSIO2_37150

:MANSIO2_37121
goto @MANSIO2_37150

:MANSIO2_37128
write_debug "UNKNOWN_MECHANICAI"

:MANSIO2_37150
52@ += 1
  52@ >= 2
goto_if_false @MANSIO2_36686
return 

:MANSIO2_37173
if 
  283@ == 0
goto_if_false @MANSIO2_37193
return 

:MANSIO2_37193
if 
  267@ == 1
goto_if_false @MANSIO2_37257
if 
  281@(52@,2i) == 0
goto_if_false @MANSIO2_37255
189@(52@,2i) = 8
281@(52@,2i) = 1

:MANSIO2_37255
return 

:MANSIO2_37257
if 
  281@(52@,2i) == 0
goto_if_false @MANSIO2_37463
if 
  not Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_37463
if 
  Char.HasSpottedCharInFront(137@(52@,2i), $scplayer)
goto_if_false @MANSIO2_37463
57@, 58@, 59@ = Char.GetCoordinates(137@(52@,2i))
60@, 61@, 62@ = Char.GetCoordinates($scplayer)
72@ = Math.GetDistanceBetweenCoords3D(57@, 58@, 59@, 60@, 61@, 62@)
if 
  15.0 > 72@
goto_if_false @MANSIO2_37463
189@(52@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_37443
Text.PrintNow('MAN2_45', 7000, 1)

:MANSIO2_37443
281@(52@,2i) = 1
gosub @MANSIO2_38764
return 

:MANSIO2_37463
if 
  281@(52@,2i) == 0
goto_if_false @MANSIO2_37599
if 
  not Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_37599
if 
  Char.CanSeeDeadChar(137@(52@,2i), PedType.Mission2)
goto_if_false @MANSIO2_37599
189@(52@,2i) = 12
281@(52@,2i) = 1
Text.PrintNow('MAN2_48', 7000, 1)
gosub @MANSIO2_38764
if 
  213@ == 0
goto_if_false @MANSIO2_37597
213@ = 4

:MANSIO2_37597
return 

:MANSIO2_37599
if 
  281@(52@,2i) == 0
goto_if_false @MANSIO2_37970
if 
  not Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_37970
if 
  284@ == 1
goto_if_false @MANSIO2_37749
189@(52@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_37704
Text.PrintNow('MAN2_45', 7000, 1)

:MANSIO2_37704
281@(52@,2i) = 1
gosub @MANSIO2_38764
if 
  213@ == 0
goto_if_false @MANSIO2_37747
213@ = 2

:MANSIO2_37747
return 

:MANSIO2_37749
if 
  285@ == 1
goto_if_false @MANSIO2_37970
57@, 58@, 59@ = Char.GetCoordinates($scplayer)
60@, 61@, 62@ = Char.GetCoordinates(137@(52@,2i))
70@ = Math.GetDistanceBetweenCoords2D(57@, 58@, 60@, 61@)
if 
  12.0 > 70@
goto_if_false @MANSIO2_37970
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_37884
71@ *= -1.0

:MANSIO2_37884
if 
  5.0 > 71@
goto_if_false @MANSIO2_37970
189@(52@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_37950
Text.PrintNow('MAN2_45', 7000, 1)

:MANSIO2_37950
281@(52@,2i) = 1
gosub @MANSIO2_38764
return 

:MANSIO2_37970
if 
  281@(52@,2i) == 0
goto_if_false @MANSIO2_38235
if 
  not Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_38235
if 
  Char.IsInAnyCar(137@(52@,2i))
goto_if_false @MANSIO2_38147
$car = Char.StoreCarIsInNoSave(137@(52@,2i))
if or
  Car.HasBeenDamagedByChar($car, $scplayer)
  Char.HasBeenDamagedByChar(137@(52@,2i), $scplayer)
goto_if_false @MANSIO2_38140
189@(52@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_38120
Text.PrintNow('MAN2_45', 7000, 1)

:MANSIO2_38120
281@(52@,2i) = 1
gosub @MANSIO2_38764
return 

:MANSIO2_38140
goto @MANSIO2_38235

:MANSIO2_38147
if 
  Char.HasBeenDamagedByChar(137@(52@,2i), $scplayer)
goto_if_false @MANSIO2_38235
189@(52@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_38215
Text.PrintNow('MAN2_45', 7000, 1)

:MANSIO2_38215
281@(52@,2i) = 1
gosub @MANSIO2_38764
return 

:MANSIO2_38235
return 

:MANSIO2_38237
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_38259
return 

:MANSIO2_38259
if 
  283@ == 0
goto_if_false @MANSIO2_38279
return 

:MANSIO2_38279
73@ = 0
if 
  Char.HasSpottedCharInFront(137@(52@,2i), $scplayer)
goto_if_false @MANSIO2_38316
73@ = 1

:MANSIO2_38316
if 
  73@ == 0
goto_if_false @MANSIO2_38497
if 
  284@ == 1
goto_if_false @MANSIO2_38497
57@, 58@, 59@ = Char.GetCoordinates($scplayer)
60@, 61@, 62@ = Char.GetCoordinates(137@(52@,2i))
70@ = Math.GetDistanceBetweenCoords2D(57@, 58@, 60@, 61@)
if 
  75.0 > 70@
goto_if_false @MANSIO2_38497
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_38469
71@ *= -1.0

:MANSIO2_38469
if 
  5.0 > 71@
goto_if_false @MANSIO2_38497
73@ = 1

:MANSIO2_38497
if 
  73@ == 0
goto_if_false @MANSIO2_38678
if 
  285@ == 1
goto_if_false @MANSIO2_38678
57@, 58@, 59@ = Char.GetCoordinates($scplayer)
60@, 61@, 62@ = Char.GetCoordinates(137@(52@,2i))
70@ = Math.GetDistanceBetweenCoords2D(57@, 58@, 60@, 61@)
if 
  12.0 > 70@
goto_if_false @MANSIO2_38678
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_38650
71@ *= -1.0

:MANSIO2_38650
if 
  5.0 > 71@
goto_if_false @MANSIO2_38678
73@ = 1

:MANSIO2_38678
if 
  73@ == 0
goto_if_false @MANSIO2_38737
if or
  Char.HasBeenDamagedByChar(137@(52@,2i), $scplayer)
  Char.HasBeenDamagedByWeapon(137@(52@,2i), WeaponType.PistolSilenced)
goto_if_false @MANSIO2_38737
73@ = 1

:MANSIO2_38737
if 
  73@ == 1
goto_if_false @MANSIO2_38762
gosub @MANSIO2_38764

:MANSIO2_38762
return 

:MANSIO2_38764
if 
  not Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_38809
57@, 58@, 59@ = Char.GetCoordinates(137@(52@,2i))
goto @MANSIO2_38827

:MANSIO2_38809
57@, 58@, 59@ = Char.GetCoordinatesOfDied(137@(52@,2i))

:MANSIO2_38827
48@ = 0

:MANSIO2_38834
if 
  not Char.IsDead(131@(48@,6i))
goto_if_false @MANSIO2_39066
60@, 61@, 62@ = Char.GetCoordinates(131@(48@,6i))
72@ = Math.GetDistanceBetweenCoords2D(57@, 58@, 60@, 61@)
if 
  20.0 > 72@
goto_if_false @MANSIO2_39066
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_38957
70@ *= -1.0

:MANSIO2_38957
if 
  6.0 > 70@
goto_if_false @MANSIO2_39066
if 
  269@(48@,6i) == 1
goto_if_false @MANSIO2_39066
if and
  183@(48@,6i) <> 23
  183@(48@,6i) <> 26
  183@(48@,6i) <> 24
  183@(48@,6i) <> 25
goto_if_false @MANSIO2_39066
183@(48@,6i) = 23

:MANSIO2_39066
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_38834
48@ = 0

:MANSIO2_39094
if and
  not Char.IsDead(137@(48@,2i))
  not is_int_lvar_equal_to_int_lvar 52@ == 48@
goto_if_false @MANSIO2_39315
60@, 61@, 62@ = Char.GetCoordinates(137@(48@,2i))
72@ = Math.GetDistanceBetweenCoords2D(57@, 58@, 60@, 61@)
if 
  20.0 > 72@
goto_if_false @MANSIO2_39315
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_39225
70@ *= -1.0

:MANSIO2_39225
if 
  6.0 > 70@
goto_if_false @MANSIO2_39315
if 
  267@ == 0
goto_if_false @MANSIO2_39315
if 
  281@(48@,2i) == 0
goto_if_false @MANSIO2_39308
189@(48@,2i) = 12
281@(48@,2i) = 1

:MANSIO2_39308
goto @MANSIO2_39315

:MANSIO2_39315
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_39094
return 

:MANSIO2_39338
57@, 58@, 59@ = Char.GetCoordinatesOfDied(137@(52@,2i))
48@ = 0

:MANSIO2_39363
if and
  not Char.IsDead(131@(48@,6i))
  not is_int_lvar_equal_to_int_lvar 52@ == 48@
goto_if_false @MANSIO2_39603
60@, 61@, 62@ = Char.GetCoordinates(131@(48@,6i))
72@ = Math.GetDistanceBetweenCoords2D(57@, 58@, 60@, 61@)
if 
  10.0 > 72@
goto_if_false @MANSIO2_39603
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_39494
70@ *= -1.0

:MANSIO2_39494
if 
  6.0 > 70@
goto_if_false @MANSIO2_39603
if 
  269@(48@,6i) == 1
goto_if_false @MANSIO2_39603
if and
  183@(48@,6i) <> 23
  183@(48@,6i) <> 26
  183@(48@,6i) <> 24
  183@(48@,6i) <> 25
goto_if_false @MANSIO2_39603
183@(48@,6i) = 23

:MANSIO2_39603
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_39363
48@ = 0

:MANSIO2_39631
if 
  not Char.IsDead(137@(48@,2i))
goto_if_false @MANSIO2_39878
60@, 61@, 62@ = Char.GetCoordinates(137@(48@,2i))
72@ = Math.GetDistanceBetweenCoords2D(57@, 58@, 60@, 61@)
if 
  10.0 > 72@
goto_if_false @MANSIO2_39878
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_39754
70@ *= -1.0

:MANSIO2_39754
if 
  6.0 > 70@
goto_if_false @MANSIO2_39878
if 
  267@ == 0
goto_if_false @MANSIO2_39878
if 
  281@(48@,2i) == 0
goto_if_false @MANSIO2_39871
189@(48@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_39860
Text.PrintNow('MAN2_45', 7000, 1)

:MANSIO2_39860
281@(48@,2i) = 1

:MANSIO2_39871
goto @MANSIO2_39878

:MANSIO2_39878
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_39631
return 

:MANSIO2_39901
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_39923
return 

:MANSIO2_39923
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_40098 {caseNum1} 0 {caseLabel1} @MANSIO2_40042 {caseNum2} 1 {caseLabel2} @MANSIO2_39986 {caseNum3} -1 {caseLabel3} @MANSIO2_40118 {caseNum4} -1 {caseLabel4} @MANSIO2_40118 {caseNum5} -1 {caseLabel5} @MANSIO2_40118 {caseNum6} -1 {caseLabel6} @MANSIO2_40118 {caseNum7} -1 {caseLabel7} @MANSIO2_40118

:MANSIO2_39986
Char.SetCoordinates(137@(52@,2i), -1421.757, 496.6105, 2.0463)
Char.SetHeading(137@(52@,2i), 175.6815)
189@(52@,2i) = 16
goto @MANSIO2_40118

:MANSIO2_40042
Char.SetCoordinates(137@(52@,2i), -1346.219, 497.9554, 10.1953)
Char.SetHeading(137@(52@,2i), 270.0)
189@(52@,2i) = 1
goto @MANSIO2_40118

:MANSIO2_40098
write_debug "UNKNOWN_MECHANIC"

:MANSIO2_40118
Char.SetDecisionMaker(137@(52@,2i), 180@)
return 

:MANSIO2_40132
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_40154
return 

:MANSIO2_40154
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_40248 {caseNum1} 1 {caseLabel1} @MANSIO2_40217 {caseNum2} -1 {caseLabel2} @MANSIO2_40277 {caseNum3} -1 {caseLabel3} @MANSIO2_40277 {caseNum4} -1 {caseLabel4} @MANSIO2_40277 {caseNum5} -1 {caseLabel5} @MANSIO2_40277 {caseNum6} -1 {caseLabel6} @MANSIO2_40277 {caseNum7} -1 {caseLabel7} @MANSIO2_40277

:MANSIO2_40217
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 7000
goto @MANSIO2_40277

:MANSIO2_40248
write_debug "UNKNOWN_MECHANIC_FOR_CHAT"

:MANSIO2_40277
189@(52@,2i) = 7
return 

:MANSIO2_40290
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_40312
return 

:MANSIO2_40312
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_40416 {caseNum1} 1 {caseLabel1} @MANSIO2_40375 {caseNum2} -1 {caseLabel2} @MANSIO2_40449 {caseNum3} -1 {caseLabel3} @MANSIO2_40449 {caseNum4} -1 {caseLabel4} @MANSIO2_40449 {caseNum5} -1 {caseLabel5} @MANSIO2_40449 {caseNum6} -1 {caseLabel6} @MANSIO2_40449 {caseNum7} -1 {caseLabel7} @MANSIO2_40449

:MANSIO2_40375
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_40409
189@(52@,2i) = 1

:MANSIO2_40409
goto @MANSIO2_40449

:MANSIO2_40416
write_debug "UNKNOWN_MECHANIC_FOR_CHATTING"

:MANSIO2_40449
return 

:MANSIO2_40451
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_40473
return 

:MANSIO2_40473
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_40618 {caseNum1} 0 {caseLabel1} @MANSIO2_40577 {caseNum2} 1 {caseLabel2} @MANSIO2_40536 {caseNum3} -1 {caseLabel3} @MANSIO2_40648 {caseNum4} -1 {caseLabel4} @MANSIO2_40648 {caseNum5} -1 {caseLabel5} @MANSIO2_40648 {caseNum6} -1 {caseLabel6} @MANSIO2_40648 {caseNum7} -1 {caseLabel7} @MANSIO2_40648

:MANSIO2_40536
if 
  not Car.IsDead(154@)
goto_if_false @MANSIO2_40570
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsDriver(137@(52@,2i), 154@, -2)

:MANSIO2_40570
goto @MANSIO2_40648

:MANSIO2_40577
if 
  not Car.IsDead(155@)
goto_if_false @MANSIO2_40611
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsDriver(137@(52@,2i), 155@, -2)

:MANSIO2_40611
goto @MANSIO2_40648

:MANSIO2_40618
write_debug "UNKNOWN_MECHANIC_FOR_ENTER"

:MANSIO2_40648
189@(52@,2i) = 2
return 

:MANSIO2_40661
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_40683
return 

:MANSIO2_40683
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_40896 {caseNum1} 0 {caseLabel1} @MANSIO2_40821 {caseNum2} 1 {caseLabel2} @MANSIO2_40746 {caseNum3} -1 {caseLabel3} @MANSIO2_40929 {caseNum4} -1 {caseLabel4} @MANSIO2_40929 {caseNum5} -1 {caseLabel5} @MANSIO2_40929 {caseNum6} -1 {caseLabel6} @MANSIO2_40929 {caseNum7} -1 {caseLabel7} @MANSIO2_40929

:MANSIO2_40746
if 
  Car.IsDead(154@)
goto_if_false @MANSIO2_40780
189@(52@,2i) = 16
goto @MANSIO2_40814

:MANSIO2_40780
if 
  Char.IsInCar(137@(52@,2i), 154@)
goto_if_false @MANSIO2_40814
189@(52@,2i) = 3

:MANSIO2_40814
goto @MANSIO2_40929

:MANSIO2_40821
if 
  Car.IsDead(155@)
goto_if_false @MANSIO2_40855
189@(52@,2i) = 16
goto @MANSIO2_40889

:MANSIO2_40855
if 
  Char.IsInCar(137@(52@,2i), 155@)
goto_if_false @MANSIO2_40889
189@(52@,2i) = 3

:MANSIO2_40889
goto @MANSIO2_40929

:MANSIO2_40896
write_debug "UNKNOWN_MECHANIC_FOR_ENTERING"

:MANSIO2_40929
return 

:MANSIO2_40931
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_40953
return 

:MANSIO2_40953
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_41066 {caseNum1} 0 {caseLabel1} @MANSIO2_41041 {caseNum2} 1 {caseLabel2} @MANSIO2_41016 {caseNum3} -1 {caseLabel3} @MANSIO2_41097 {caseNum4} -1 {caseLabel4} @MANSIO2_41097 {caseNum5} -1 {caseLabel5} @MANSIO2_41097 {caseNum6} -1 {caseLabel6} @MANSIO2_41097 {caseNum7} -1 {caseLabel7} @MANSIO2_41097

:MANSIO2_41016
gosub @MANSIO2_44582
189@(52@,2i) = 4
goto @MANSIO2_41097

:MANSIO2_41041
gosub @MANSIO2_45314
189@(52@,2i) = 4
goto @MANSIO2_41097

:MANSIO2_41066
write_debug "UNKNOWN_MECHANIC_FOR_WANDER"

:MANSIO2_41097
return 

:MANSIO2_41099
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_41121
return 

:MANSIO2_41121
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_41386 {caseNum1} 0 {caseLabel1} @MANSIO2_41285 {caseNum2} 1 {caseLabel2} @MANSIO2_41184 {caseNum3} -1 {caseLabel3} @MANSIO2_41420 {caseNum4} -1 {caseLabel4} @MANSIO2_41420 {caseNum5} -1 {caseLabel5} @MANSIO2_41420 {caseNum6} -1 {caseLabel6} @MANSIO2_41420 {caseNum7} -1 {caseLabel7} @MANSIO2_41420

:MANSIO2_41184
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_41278
gosub @MANSIO2_44923
if 
  73@ == 1
goto_if_false @MANSIO2_41278
50@ = Math.RandomIntInRange(2000, 4000)
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
add_int_lvar_to_int_lvar 204@(52@,2i) += 50@
189@(52@,2i) = 5

:MANSIO2_41278
goto @MANSIO2_41420

:MANSIO2_41285
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_41379
gosub @MANSIO2_45700
if 
  73@ == 1
goto_if_false @MANSIO2_41379
50@ = Math.RandomIntInRange(2000, 4000)
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
add_int_lvar_to_int_lvar 204@(52@,2i) += 50@
189@(52@,2i) = 5

:MANSIO2_41379
goto @MANSIO2_41420

:MANSIO2_41386
write_debug "UNKNOWN_MECHANIC_FOR_WANDERING"

:MANSIO2_41420
return 

:MANSIO2_41422
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_41444
return 

:MANSIO2_41444
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_41478
189@(52@,2i) = 3

:MANSIO2_41478
return 

:MANSIO2_41480
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_41502
return 

:MANSIO2_41502
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_41826 {caseNum1} 0 {caseLabel1} @MANSIO2_41648 {caseNum2} 1 {caseLabel2} @MANSIO2_41565 {caseNum3} -1 {caseLabel3} @MANSIO2_41861 {caseNum4} -1 {caseLabel4} @MANSIO2_41861 {caseNum5} -1 {caseLabel5} @MANSIO2_41861 {caseNum6} -1 {caseLabel6} @MANSIO2_41861 {caseNum7} -1 {caseLabel7} @MANSIO2_41861

:MANSIO2_41565
56@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.FollowPathNodesToCoord(-1, -1420.125, 512.2188, 2.0463, 6, -2)
Sequence.Close(56@)
Char.PerformSequence(137@(52@,2i), 56@)
Sequence.Clear(56@)
189@(52@,2i) = 9
204@(52@,2i) = 0
goto @MANSIO2_41861

:MANSIO2_41648
57@, 58@, 59@ = Char.GetCoordinates(137@(52@,2i))
60@, 61@, 62@ = Char.GetCoordinates($scplayer)
if 
  is_float_lvar_greater_than_float_lvar 57@ > 60@
goto_if_false @MANSIO2_41743
56@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.FollowPathNodesToCoord(-1, -1316.862, 490.2876, 10.2026, 6, -2)
Sequence.Close(56@)
goto @MANSIO2_41780

:MANSIO2_41743
56@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.FollowPathNodesToCoord(-1, -1394.846, 491.5163, 10.1953, 6, -2)
Sequence.Close(56@)

:MANSIO2_41780
Char.PerformSequence(137@(52@,2i), 56@)
Sequence.Clear(56@)
189@(52@,2i) = 9
204@(52@,2i) = 0
goto @MANSIO2_41861

:MANSIO2_41826
write_debug "UNKNOWN_MECHANIC_FOR_GOTO_COWER"

:MANSIO2_41861
return 

:MANSIO2_41863
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_41885
return 

:MANSIO2_41885
if 
  is_int_lvar_greater_than_int_lvar 204@(52@,2i) > 46@
goto_if_false @MANSIO2_41910
return 

:MANSIO2_41910
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_42329 {caseNum1} 0 {caseLabel1} @MANSIO2_42151 {caseNum2} 1 {caseLabel2} @MANSIO2_41973 {caseNum3} -1 {caseLabel3} @MANSIO2_42368 {caseNum4} -1 {caseLabel4} @MANSIO2_42368 {caseNum5} -1 {caseLabel5} @MANSIO2_42368 {caseNum6} -1 {caseLabel6} @MANSIO2_42368 {caseNum7} -1 {caseLabel7} @MANSIO2_42368

:MANSIO2_41973
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1420.125, 512.2188, 2.0463, 2.0, 2.0, 2.0, False)
goto_if_false @MANSIO2_42054
189@(52@,2i) = 10
204@(52@,2i) = 0
goto @MANSIO2_42128

:MANSIO2_42054
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1389.81, 491.263, 2.0463, 2.0, 2.0, 2.0, False)
goto_if_false @MANSIO2_42128
189@(52@,2i) = 10
204@(52@,2i) = 0

:MANSIO2_42128
211@(52@,2i) = Char.GetHealth(137@(52@,2i))
goto @MANSIO2_42368

:MANSIO2_42151
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1394.846, 491.5163, 10.1953, 2.0, 2.0, 2.0, False)
goto_if_false @MANSIO2_42232
189@(52@,2i) = 10
204@(52@,2i) = 0
goto @MANSIO2_42306

:MANSIO2_42232
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1316.862, 490.2876, 10.2026, 2.0, 2.0, 2.0, False)
goto_if_false @MANSIO2_42306
189@(52@,2i) = 10
204@(52@,2i) = 0

:MANSIO2_42306
211@(52@,2i) = Char.GetHealth(137@(52@,2i))
goto @MANSIO2_42368

:MANSIO2_42329
write_debug "UNKNOWN_MECHANIC_FOR_GOING_TO_COWER"

:MANSIO2_42368
gosub @MANSIO2_38237
return 

:MANSIO2_42377
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_42399
return 

:MANSIO2_42399
50@ = Char.GetHealth(137@(52@,2i))
if 
  is_int_lvar_greater_than_int_lvar 211@(52@,2i) > 50@
goto_if_false @MANSIO2_42470
189@(52@,2i) = 11
set_lvar_int_to_lvar_int 211@(52@,2i) = 50@
204@(52@,2i) = 0
return 

:MANSIO2_42470
if 
  is_int_lvar_greater_than_int_lvar 204@(52@,2i) > 46@
goto_if_false @MANSIO2_42495
return 

:MANSIO2_42495
40@ = Char.GetScriptTaskStatus(137@(52@,2i), 1477)
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @MANSIO2_42563
Task.Duck(137@(52@,2i), -2)
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 1000

:MANSIO2_42563
gosub @MANSIO2_38237
return 

:MANSIO2_42572
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_42594
return 

:MANSIO2_42594
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_42971 {caseNum1} 0 {caseLabel1} @MANSIO2_42814 {caseNum2} 1 {caseLabel2} @MANSIO2_42657 {caseNum3} -1 {caseLabel3} @MANSIO2_43008 {caseNum4} -1 {caseLabel4} @MANSIO2_43008 {caseNum5} -1 {caseLabel5} @MANSIO2_43008 {caseNum6} -1 {caseLabel6} @MANSIO2_43008 {caseNum7} -1 {caseLabel7} @MANSIO2_43008

:MANSIO2_42657
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1420.125, 512.2188, 2.0463, 2.0, 2.0, 2.0, False)
goto_if_false @MANSIO2_42744
Task.FollowPathNodesToCoord(137@(52@,2i), -1389.81, 491.263, 2.0463, 6, -2)
goto @MANSIO2_42772

:MANSIO2_42744
Task.FollowPathNodesToCoord(137@(52@,2i), -1420.125, 512.2188, 2.0463, 6, -2)

:MANSIO2_42772
189@(52@,2i) = 9
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 10000
goto @MANSIO2_43008

:MANSIO2_42814
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1394.846, 491.5163, 10.1953, 2.0, 2.0, 2.0, False)
goto_if_false @MANSIO2_42901
Task.FollowPathNodesToCoord(137@(52@,2i), -1316.862, 490.2876, 10.2026, 6, -2)
goto @MANSIO2_42929

:MANSIO2_42901
Task.FollowPathNodesToCoord(137@(52@,2i), -1394.846, 491.5163, 10.1953, 6, -2)

:MANSIO2_42929
189@(52@,2i) = 9
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 10000
goto @MANSIO2_43008

:MANSIO2_42971
write_debug "UNKNOWN_MECHANIC_FOR_CHANGE_COWER"

:MANSIO2_43008
return 

:MANSIO2_43010
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_43032
return 

:MANSIO2_43032
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_43334 {caseNum1} 0 {caseLabel1} @MANSIO2_43167 {caseNum2} 1 {caseLabel2} @MANSIO2_43095 {caseNum3} -1 {caseLabel3} @MANSIO2_43369 {caseNum4} -1 {caseLabel4} @MANSIO2_43369 {caseNum5} -1 {caseLabel5} @MANSIO2_43369 {caseNum6} -1 {caseLabel6} @MANSIO2_43369 {caseNum7} -1 {caseLabel7} @MANSIO2_43369

:MANSIO2_43095
56@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.FollowPathNodesToCoord(-1, -1414.349, 514.0193, 2.0391, 6, -2)
Sequence.Close(56@)
Char.PerformSequence(137@(52@,2i), 56@)
Sequence.Clear(56@)
189@(52@,2i) = 13
goto @MANSIO2_43369

:MANSIO2_43167
57@, 58@, 59@ = Char.GetCoordinates(137@(52@,2i))
60@, 61@, 62@ = Char.GetCoordinates($scplayer)
if 
  is_float_lvar_greater_than_float_lvar 57@ > 60@
goto_if_false @MANSIO2_43262
56@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.FollowPathNodesToCoord(-1, -1313.373, 488.6687, 10.2026, 6, -2)
Sequence.Close(56@)
goto @MANSIO2_43299

:MANSIO2_43262
56@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.FollowPathNodesToCoord(-1, -1412.397, 488.6644, 10.2026, 6, -2)
Sequence.Close(56@)

:MANSIO2_43299
Char.PerformSequence(137@(52@,2i), 56@)
Sequence.Clear(56@)
189@(52@,2i) = 13
goto @MANSIO2_43369

:MANSIO2_43334
write_debug "UNKNOWN_MECHANIC_FOR_GOTO_ALARM"

:MANSIO2_43369
return 

:MANSIO2_43371
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_43393
return 

:MANSIO2_43393
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_43775 {caseNum1} 0 {caseLabel1} @MANSIO2_43575 {caseNum2} 1 {caseLabel2} @MANSIO2_43456 {caseNum3} -1 {caseLabel3} @MANSIO2_43814 {caseNum4} -1 {caseLabel4} @MANSIO2_43814 {caseNum5} -1 {caseLabel5} @MANSIO2_43814 {caseNum6} -1 {caseLabel6} @MANSIO2_43814 {caseNum7} -1 {caseLabel7} @MANSIO2_43814

:MANSIO2_43456
if 
  267@ == 1
goto_if_false @MANSIO2_43494
189@(52@,2i) = 8
return 
goto @MANSIO2_43568

:MANSIO2_43494
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1414.349, 514.8193, 2.0391, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_43568
189@(52@,2i) = 14
204@(52@,2i) = 0

:MANSIO2_43568
goto @MANSIO2_43814

:MANSIO2_43575
if 
  267@ == 1
goto_if_false @MANSIO2_43613
189@(52@,2i) = 8
return 
goto @MANSIO2_43768

:MANSIO2_43613
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1313.373, 487.8687, 10.2026, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_43694
189@(52@,2i) = 14
204@(52@,2i) = 0
goto @MANSIO2_43768

:MANSIO2_43694
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1412.397, 487.8644, 10.2026, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_43768
189@(52@,2i) = 14
204@(52@,2i) = 0

:MANSIO2_43768
goto @MANSIO2_43814

:MANSIO2_43775
write_debug "UNKNOWN_MECHANIC_FOR_GOING_TO_ALARM"

:MANSIO2_43814
gosub @MANSIO2_38237
return 

:MANSIO2_43823
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_43845
return 

:MANSIO2_43845
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_44261 {caseNum1} 0 {caseLabel1} @MANSIO2_44020 {caseNum2} 1 {caseLabel2} @MANSIO2_43908 {caseNum3} -1 {caseLabel3} @MANSIO2_44299 {caseNum4} -1 {caseLabel4} @MANSIO2_44299 {caseNum5} -1 {caseLabel5} @MANSIO2_44299 {caseNum6} -1 {caseLabel6} @MANSIO2_44299 {caseNum7} -1 {caseLabel7} @MANSIO2_44299

:MANSIO2_43908
Task.CharSlideToCoordAndPlayAnim(137@(52@,2i), -1414.349, 513.4193, 2.0391, 0.0, 0.2, "CARDS_RAISE", "CASINO", 10.0, False, False, False, False, -1)
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 2000
189@(52@,2i) = 15
goto @MANSIO2_44299

:MANSIO2_44020
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1313.373, 487.8687, 10.2026, 1.2, 1.2, 1.2, False)
goto_if_false @MANSIO2_44149
Task.CharSlideToCoordAndPlayAnim(137@(52@,2i), -1313.373, 489.3687, 10.2026, 180.0, 0.2, "CARDS_RAISE", "CASINO", 10.0, False, False, False, False, -1)
goto @MANSIO2_44219

:MANSIO2_44149
Task.CharSlideToCoordAndPlayAnim(137@(52@,2i), -1412.397, 489.3644, 10.2026, 180.0, 0.2, "CARDS_RAISE", "CASINO", 10.0, False, False, False, False, -1)

:MANSIO2_44219
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 2000
189@(52@,2i) = 15
goto @MANSIO2_44299

:MANSIO2_44261
write_debug "UNKNOWN_MECHANIC_FOR_TRIGGER_ALARM"

:MANSIO2_44299
return 

:MANSIO2_44301
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_44323
return 

:MANSIO2_44323
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_44532 {caseNum1} 0 {caseLabel1} @MANSIO2_44459 {caseNum2} 1 {caseLabel2} @MANSIO2_44386 {caseNum3} -1 {caseLabel3} @MANSIO2_44573 {caseNum4} -1 {caseLabel4} @MANSIO2_44573 {caseNum5} -1 {caseLabel5} @MANSIO2_44573 {caseNum6} -1 {caseLabel6} @MANSIO2_44573 {caseNum7} -1 {caseLabel7} @MANSIO2_44573

:MANSIO2_44386
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_44452
189@(52@,2i) = 8
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_44452
213@ = 2

:MANSIO2_44452
goto @MANSIO2_44573

:MANSIO2_44459
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_44525
189@(52@,2i) = 8
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_44525
213@ = 2

:MANSIO2_44525
goto @MANSIO2_44573

:MANSIO2_44532
write_debug "UNKNOWN_MECHANIC_FOR_TRIGGERING_ALARM"

:MANSIO2_44573
gosub @MANSIO2_38237
return 

:MANSIO2_44582
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_44604
return 

:MANSIO2_44604
if 
  Car.IsDead(154@)
goto_if_false @MANSIO2_44633
189@(52@,2i) = 16
return 

:MANSIO2_44633
50@ = Math.RandomIntInRange(0, 4)
switch_start 50@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_44885 {caseNum1} 0 {caseLabel1} @MANSIO2_44705 {caseNum2} 1 {caseLabel2} @MANSIO2_44750 {caseNum3} 2 {caseLabel3} @MANSIO2_44795 {caseNum4} 3 {caseLabel4} @MANSIO2_44840 {caseNum5} -1 {caseLabel5} @MANSIO2_44885 {caseNum6} -1 {caseLabel6} @MANSIO2_44885 {caseNum7} -1 {caseLabel7} @MANSIO2_44885

:MANSIO2_44705
Task.CarDriveToCoord(137@(52@,2i), 154@, -1400.205, 507.259, 2.0463, 2.0, DriveMode.Straightline, 0, DrivingMode.StopForCars)
goto @MANSIO2_44885

:MANSIO2_44750
Task.CarDriveToCoord(137@(52@,2i), 154@, -1394.387, 506.6834, 2.0463, 2.0, DriveMode.Straightline, 0, DrivingMode.StopForCars)
goto @MANSIO2_44885

:MANSIO2_44795
Task.CarDriveToCoord(137@(52@,2i), 154@, -1399.348, 501.5815, 2.0463, 2.0, DriveMode.Straightline, 0, DrivingMode.StopForCars)
goto @MANSIO2_44885

:MANSIO2_44840
Task.CarDriveToCoord(137@(52@,2i), 154@, -1410.671, 501.3295, 2.0391, 2.0, DriveMode.Straightline, 0, DrivingMode.StopForCars)
goto @MANSIO2_44885

:MANSIO2_44885
set_lvar_int_to_lvar_int 209@(52@,2i) = 50@
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 10000
return 

:MANSIO2_44923
73@ = 0
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_44952
return 

:MANSIO2_44952
if 
  Car.IsDead(154@)
goto_if_false @MANSIO2_44981
189@(52@,2i) = 16
return 

:MANSIO2_44981
switch_start 209@(52@,2i) {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_45312 {caseNum1} 0 {caseLabel1} @MANSIO2_45048 {caseNum2} 1 {caseLabel2} @MANSIO2_45114 {caseNum3} 2 {caseLabel3} @MANSIO2_45180 {caseNum4} 3 {caseLabel4} @MANSIO2_45246 {caseNum5} -1 {caseLabel5} @MANSIO2_45312 {caseNum6} -1 {caseLabel6} @MANSIO2_45312 {caseNum7} -1 {caseLabel7} @MANSIO2_45312

:MANSIO2_45048
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1400.205, 507.259, 2.0463, 4.0, 4.0, 4.0, False)
goto_if_false @MANSIO2_45107
73@ = 1

:MANSIO2_45107
goto @MANSIO2_45312

:MANSIO2_45114
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1394.387, 506.6834, 2.0463, 4.0, 4.0, 4.0, False)
goto_if_false @MANSIO2_45173
73@ = 1

:MANSIO2_45173
goto @MANSIO2_45312

:MANSIO2_45180
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1399.348, 501.5815, 2.0463, 4.0, 4.0, 4.0, False)
goto_if_false @MANSIO2_45239
73@ = 1

:MANSIO2_45239
goto @MANSIO2_45312

:MANSIO2_45246
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1410.671, 501.3295, 2.0391, 4.0, 4.0, 4.0, False)
goto_if_false @MANSIO2_45305
73@ = 1

:MANSIO2_45305
goto @MANSIO2_45312

:MANSIO2_45312
return 

:MANSIO2_45314
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_45336
return 

:MANSIO2_45336
if 
  Car.IsDead(155@)
goto_if_false @MANSIO2_45365
189@(52@,2i) = 16
return 

:MANSIO2_45365
50@ = Math.RandomIntInRange(0, 4)
switch_start 50@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_45662 {caseNum1} 0 {caseLabel1} @MANSIO2_45437 {caseNum2} 1 {caseLabel2} @MANSIO2_45482 {caseNum3} 2 {caseLabel3} @MANSIO2_45527 {caseNum4} 3 {caseLabel4} @MANSIO2_45572 {caseNum5} 4 {caseLabel5} @MANSIO2_45617 {caseNum6} -1 {caseLabel6} @MANSIO2_45662 {caseNum7} -1 {caseLabel7} @MANSIO2_45662

:MANSIO2_45437
Task.CarDriveToCoord(137@(52@,2i), 155@, -1321.422, 495.9306, 10.2026, 2.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
goto @MANSIO2_45662

:MANSIO2_45482
Task.CarDriveToCoord(137@(52@,2i), 155@, -1305.444, 497.4329, 10.2026, 2.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
goto @MANSIO2_45662

:MANSIO2_45527
Task.CarDriveToCoord(137@(52@,2i), 155@, -1307.425, 503.4752, 10.1953, 2.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
goto @MANSIO2_45662

:MANSIO2_45572
Task.CarDriveToCoord(137@(52@,2i), 155@, -1351.098, 506.4217, 10.1953, 2.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
goto @MANSIO2_45662

:MANSIO2_45617
Task.CarDriveToCoord(137@(52@,2i), 155@, -1390.884, 507.6548, 10.1953, 3.0, DriveMode.Straightline, 0, DrivingMode.AvoidCars)
goto @MANSIO2_45662

:MANSIO2_45662
set_lvar_int_to_lvar_int 209@(52@,2i) = 50@
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 10000
return 

:MANSIO2_45700
73@ = 0
if 
  Char.IsDead(137@(52@,2i))
goto_if_false @MANSIO2_45729
return 

:MANSIO2_45729
if 
  Car.IsDead(154@)
goto_if_false @MANSIO2_45758
189@(52@,2i) = 16
return 

:MANSIO2_45758
switch_start 209@(52@,2i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_46155 {caseNum1} 0 {caseLabel1} @MANSIO2_45825 {caseNum2} 1 {caseLabel2} @MANSIO2_45891 {caseNum3} 2 {caseLabel3} @MANSIO2_45957 {caseNum4} 3 {caseLabel4} @MANSIO2_46023 {caseNum5} 4 {caseLabel5} @MANSIO2_46089 {caseNum6} -1 {caseLabel6} @MANSIO2_46155 {caseNum7} -1 {caseLabel7} @MANSIO2_46155

:MANSIO2_45825
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1321.422, 495.9306, 10.2026, 4.0, 4.0, 4.0, False)
goto_if_false @MANSIO2_45884
73@ = 1

:MANSIO2_45884
goto @MANSIO2_46155

:MANSIO2_45891
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1305.444, 497.4329, 10.2026, 4.0, 4.0, 4.0, False)
goto_if_false @MANSIO2_45950
73@ = 1

:MANSIO2_45950
goto @MANSIO2_46155

:MANSIO2_45957
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1307.425, 503.4752, 10.1953, 4.0, 4.0, 4.0, False)
goto_if_false @MANSIO2_46016
73@ = 1

:MANSIO2_46016
goto @MANSIO2_46155

:MANSIO2_46023
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1351.098, 506.4217, 10.1953, 4.0, 4.0, 4.0, False)
goto_if_false @MANSIO2_46082
73@ = 1

:MANSIO2_46082
goto @MANSIO2_46155

:MANSIO2_46089
if 
  Char.LocateAnyMeans3D(137@(52@,2i), -1390.884, 507.6548, 10.1953, 4.0, 4.0, 4.0, False)
goto_if_false @MANSIO2_46148
73@ = 1

:MANSIO2_46148
goto @MANSIO2_46155

:MANSIO2_46155
return 

:MANSIO2_46157
if 
  191@ == -1
goto_if_false @MANSIO2_46177
return 

:MANSIO2_46177
50@ = 1
if 
  191@ <> 0
goto_if_false @MANSIO2_46240
if 
  Car.IsDead(141@(50@,4i))
goto_if_false @MANSIO2_46240
191@ = -1
Car.MarkAsNoLongerNeeded(141@(50@,4i))
return 

:MANSIO2_46240
switch_start 191@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_46512 {caseNum1} 0 {caseLabel1} @MANSIO2_46303 {caseNum2} 1 {caseLabel2} @MANSIO2_46470 {caseNum3} -1 {caseLabel3} @MANSIO2_46512 {caseNum4} -1 {caseLabel4} @MANSIO2_46512 {caseNum5} -1 {caseLabel5} @MANSIO2_46512 {caseNum6} -1 {caseLabel6} @MANSIO2_46512 {caseNum7} -1 {caseLabel7} @MANSIO2_46512

:MANSIO2_46303
141@(50@,4i) = Car.Create(520, -84.0771, 418.3652, 92.2066)
Car.SetCoordinates(141@(50@,4i), -84.0771, 418.3652, 92.2066)
Car.SetHeading(141@(50@,4i), 91.2218)
Car.SetStatus(141@(50@,4i), EntityStatus.Physics)
Car.SetForwardSpeed(141@(50@,4i), 70.0)
Plane.SetThrottle(141@(50@,4i), 1.5)
Plane.StartsInAir(141@(50@,4i))
Plane.FlyInDirection(141@(50@,4i), 190.0, 20.0, 30.0)
set_lvar_int_to_lvar_int 196@ = 46@
196@ += 25000
191@ += 1
goto @MANSIO2_46512

:MANSIO2_46470
if 
  is_int_lvar_greater_than_int_lvar 46@ > 196@
goto_if_false @MANSIO2_46505
Car.Delete(141@(50@,4i))
191@ = -1

:MANSIO2_46505
goto @MANSIO2_46512

:MANSIO2_46512
return 

:MANSIO2_46514
if 
  192@ == -1
goto_if_false @MANSIO2_46534
return 

:MANSIO2_46534
50@ = 3
if 
  Car.IsDead(141@(50@,4i))
goto_if_false @MANSIO2_46579
192@ = -1
Car.Delete(141@(50@,4i))
return 

:MANSIO2_46579
switch_start 192@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_46784 {caseNum1} 0 {caseLabel1} @MANSIO2_46642 {caseNum2} 1 {caseLabel2} @MANSIO2_46672 {caseNum3} 2 {caseLabel3} @MANSIO2_46741 {caseNum4} -1 {caseLabel4} @MANSIO2_46784 {caseNum5} -1 {caseLabel5} @MANSIO2_46784 {caseNum6} -1 {caseLabel6} @MANSIO2_46784 {caseNum7} -1 {caseLabel7} @MANSIO2_46784

:MANSIO2_46642
set_lvar_int_to_lvar_int 197@ = 46@
197@ += 6000
192@ += 1
goto @MANSIO2_46784

:MANSIO2_46672
if 
  is_int_lvar_greater_than_int_lvar 46@ > 197@
goto_if_false @MANSIO2_46734
242@(50@,4i) = 0
if 
  276@ == 0
goto_if_false @MANSIO2_46727
184@ = 11

:MANSIO2_46727
192@ += 1

:MANSIO2_46734
goto @MANSIO2_46784

:MANSIO2_46741
if 
  not Car.IsPlaybackGoingOn(141@(50@,4i))
goto_if_false @MANSIO2_46777
Car.Delete(141@(50@,4i))
192@ = -1

:MANSIO2_46777
goto @MANSIO2_46784

:MANSIO2_46784
return 

:MANSIO2_46786
if 
  193@ == -1
goto_if_false @MANSIO2_46806
return 

:MANSIO2_46806
50@ = 1
if 
  193@ > 0
goto_if_false @MANSIO2_46869
if 
  Car.IsDead(141@(50@,4i))
goto_if_false @MANSIO2_46869
193@ = -1
Car.Delete(141@(50@,4i))
return 

:MANSIO2_46869
switch_start 193@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_47157 {caseNum1} 0 {caseLabel1} @MANSIO2_46932 {caseNum2} 1 {caseLabel2} @MANSIO2_47017 {caseNum3} 2 {caseLabel3} @MANSIO2_47094 {caseNum4} -1 {caseLabel4} @MANSIO2_47157 {caseNum5} -1 {caseLabel5} @MANSIO2_47157 {caseNum6} -1 {caseLabel6} @MANSIO2_47157 {caseNum7} -1 {caseLabel7} @MANSIO2_47157

:MANSIO2_46932
141@(50@,4i) = Car.Create(520, -1354.587, 6.2662, 13.1485)
134@ = Char.CreateInsideCar(141@(50@,4i), PedType.Mission2, 287)
Char.SetDecisionMaker(134@, 180@)
Char.SetIsTargetPriority(134@, True)
Car.StartPlayback(141@(50@,4i), 211)
193@ += 1
goto @MANSIO2_47157

:MANSIO2_47017
if 
  Car.Locate3D(141@(50@,4i), -1456.356, 501.1173, 9.0078, 10.0, 15.0, 20.0, False)
goto_if_false @MANSIO2_47087
242@(50@,4i) = 1
193@ += 1

:MANSIO2_47087
goto @MANSIO2_47157

:MANSIO2_47094
if 
  not Car.IsPlaybackGoingOn(141@(50@,4i))
goto_if_false @MANSIO2_47150
186@ = 5
176@ = Blip.AddForChar(134@)
Blip.ChangeDisplay(176@, BlipDisplay.BlipOnly)
Blip.SetAlwaysDisplayOnZoomedRadar(176@, True)
193@ = -1

:MANSIO2_47150
goto @MANSIO2_47157

:MANSIO2_47157
return 

:MANSIO2_47159
switch_start 79@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_47243 {caseNum1} 0 {caseLabel1} @MANSIO2_47222 {caseNum2} 1 {caseLabel2} @MANSIO2_47222 {caseNum3} 2 {caseLabel3} @MANSIO2_47229 {caseNum4} 3 {caseLabel4} @MANSIO2_47222 {caseNum5} 4 {caseLabel5} @MANSIO2_47222 {caseNum6} -1 {caseLabel6} @MANSIO2_47279 {caseNum7} -1 {caseLabel7} @MANSIO2_47279

:MANSIO2_47222
goto @MANSIO2_47279

:MANSIO2_47229
gosub @MANSIO2_47419
goto @MANSIO2_47279

:MANSIO2_47243
write_debug "UNKNOWN_CONVERSATION_STATUS_ID"
return 

:MANSIO2_47279
return 

:MANSIO2_47281
if 
  is_int_lvar_equal_to_int_lvar 84@ == 83@
goto_if_false @MANSIO2_47302
return 

:MANSIO2_47302
50@ = 1
88@(50@,3i) = 1
Audio.LoadMissionAudio(50@, 91@(84@,13i))
84@ += 1
if 
  is_int_lvar_equal_to_int_lvar 84@ == 83@
goto_if_false @MANSIO2_47360
return 

:MANSIO2_47360
50@ += 1
if 
  50@ > 2
goto_if_false @MANSIO2_47387
return 

:MANSIO2_47387
88@(50@,3i) = 1
Audio.LoadMissionAudio(50@, 91@(84@,13i))
84@ += 1
return 

:MANSIO2_47419
gosub @MANSIO2_48490
if 
  79@ == 3
goto_if_false @MANSIO2_47453
gosub @MANSIO2_47687
return 

:MANSIO2_47453
switch_start 88@(78@,3i) {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_47654 {caseNum1} 0 {caseLabel1} @MANSIO2_47520 {caseNum2} 1 {caseLabel2} @MANSIO2_47529 {caseNum3} 2 {caseLabel3} @MANSIO2_47565 {caseNum4} 3 {caseLabel4} @MANSIO2_47622 {caseNum5} -1 {caseLabel5} @MANSIO2_47685 {caseNum6} -1 {caseLabel6} @MANSIO2_47685 {caseNum7} -1 {caseLabel7} @MANSIO2_47685

:MANSIO2_47520
return 
goto @MANSIO2_47685

:MANSIO2_47529
if 
  not Audio.HasMissionAudioLoaded(78@)
goto_if_false @MANSIO2_47547
return 

:MANSIO2_47547
88@(78@,3i) = 2
goto @MANSIO2_47685

:MANSIO2_47565
Audio.PlayMissionAudio(78@)
if 
  87@ == 1
goto_if_false @MANSIO2_47602
Text.PrintNow(104@(82@,13s), 10000, 1)

:MANSIO2_47602
88@(78@,3i) = 3
return 
goto @MANSIO2_47685

:MANSIO2_47622
if 
  not Audio.HasMissionAudioFinished(78@)
goto_if_false @MANSIO2_47640
return 

:MANSIO2_47640
gosub @MANSIO2_47740
goto @MANSIO2_47685

:MANSIO2_47654
write_debug "UNKNOWN_AUDIO_SLOT_STATUS"
return 

:MANSIO2_47685
return 

:MANSIO2_47687
50@ = 1

:MANSIO2_47694
if 
  2 >= 50@
goto_if_false @MANSIO2_47731
Audio.ClearMissionAudio(50@)
50@ += 1
goto @MANSIO2_47694

:MANSIO2_47731
gosub @MANSIO2_47869
return 

:MANSIO2_47740
88@(78@,3i) = 0
82@ += 1
if 
  is_int_lvar_equal_to_int_lvar 82@ == 83@
goto_if_false @MANSIO2_47786
gosub @MANSIO2_47869
return 

:MANSIO2_47786
if 
  is_int_lvar_greater_than_int_lvar 83@ > 84@
goto_if_false @MANSIO2_47835
88@(78@,3i) = 1
Audio.LoadMissionAudio(78@, 91@(84@,13i))
84@ += 1

:MANSIO2_47835
78@ += 1
if 
  78@ > 2
goto_if_false @MANSIO2_47867
78@ = 1

:MANSIO2_47867
return 

:MANSIO2_47869
set_local_var_bit_lvar 85@ {var_n} 80@
80@ = 0
79@ = 0
81@ = 0
78@ = 1
82@ = 0
83@ = 0
84@ = 0
50@ = 1

:MANSIO2_47933
if 
  2 > 50@
goto_if_false @MANSIO2_47976
88@(50@,3i) = 0
50@ += 1
goto @MANSIO2_47933

:MANSIO2_47976
Text.ClearSmallPrints
set_lvar_int_to_lvar_int 86@ = 46@
86@ += 120
return 

:MANSIO2_47995
if 
  79@ <> 0
goto_if_false @MANSIO2_48020
gosub @MANSIO2_48179

:MANSIO2_48020
if 
  is_int_lvar_greater_than_int_lvar 86@ > 46@
goto_if_false @MANSIO2_48041
return 

:MANSIO2_48041
86@ = 0
set_lvar_int_to_lvar_int 80@ = 81@
81@ = 0
78@ = 1
82@ = 0
83@ = 0
84@ = 0
50@ = 1

:MANSIO2_48098
if 
  2 > 50@
goto_if_false @MANSIO2_48141
88@(50@,3i) = 0
50@ += 1
goto @MANSIO2_48098

:MANSIO2_48141
gosub @MANSIO2_48208
return 

:MANSIO2_48150
if 
  79@ <> 1
goto_if_false @MANSIO2_48170
return 

:MANSIO2_48170
79@ = 2
return 

:MANSIO2_48179
if 
  79@ == 0
goto_if_false @MANSIO2_48199
return 

:MANSIO2_48199
gosub @MANSIO2_47687
return 

:MANSIO2_48208
switch_start 80@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_48448 {caseNum1} 1 {caseLabel1} @MANSIO2_48336 {caseNum2} 2 {caseLabel2} @MANSIO2_48350 {caseNum3} 3 {caseLabel3} @MANSIO2_48364 {caseNum4} 4 {caseLabel4} @MANSIO2_48378 {caseNum5} 5 {caseLabel5} @MANSIO2_48392 {caseNum6} 6 {caseLabel6} @MANSIO2_48406 {caseNum7} 7 {caseLabel7} @MANSIO2_48420
switch_continued 8 {caseLabel1} @MANSIO2_48434 {caseNum2} -1 {caseLabel2} @MANSIO2_48474 {caseNum3} -1 {caseLabel3} @MANSIO2_48474 {caseNum4} -1 {caseLabel4} @MANSIO2_48474 {caseNum5} -1 {caseLabel5} @MANSIO2_48474 {caseNum6} -1 {caseLabel6} @MANSIO2_48474 {caseNum7} -1 {caseLabel7} @MANSIO2_48474 {caseNum8} -1 {caseLabel8} @MANSIO2_48474 {caseNum9} -1 {caseLabel9} @MANSIO2_48474

:MANSIO2_48336
gosub @MANSIO2_48747
goto @MANSIO2_48474

:MANSIO2_48350
gosub @MANSIO2_48961
goto @MANSIO2_48474

:MANSIO2_48364
gosub @MANSIO2_49508
goto @MANSIO2_48474

:MANSIO2_48378
gosub @MANSIO2_49554
goto @MANSIO2_48474

:MANSIO2_48392
gosub @MANSIO2_50167
goto @MANSIO2_48474

:MANSIO2_48406
gosub @MANSIO2_50213
goto @MANSIO2_48474

:MANSIO2_48420
gosub @MANSIO2_50259
goto @MANSIO2_48474

:MANSIO2_48434
gosub @MANSIO2_49768
goto @MANSIO2_48474

:MANSIO2_48448
write_debug "UNKNOWN_CONVERSATION"
return 

:MANSIO2_48474
gosub @MANSIO2_47281
79@ = 1
return 

:MANSIO2_48490
switch_start 80@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_48650 {caseNum1} 1 {caseLabel1} @MANSIO2_48618 {caseNum2} 2 {caseLabel2} @MANSIO2_48618 {caseNum3} 3 {caseLabel3} @MANSIO2_48618 {caseNum4} 4 {caseLabel4} @MANSIO2_48618 {caseNum5} 5 {caseLabel5} @MANSIO2_48618 {caseNum6} 6 {caseLabel6} @MANSIO2_48618 {caseNum7} 7 {caseLabel7} @MANSIO2_48618
switch_continued 8 {caseLabel1} @MANSIO2_48618 {caseNum2} -1 {caseLabel2} @MANSIO2_48650 {caseNum3} -1 {caseLabel3} @MANSIO2_48650 {caseNum4} -1 {caseLabel4} @MANSIO2_48650 {caseNum5} -1 {caseLabel5} @MANSIO2_48650 {caseNum6} -1 {caseLabel6} @MANSIO2_48650 {caseNum7} -1 {caseLabel7} @MANSIO2_48650 {caseNum8} -1 {caseLabel8} @MANSIO2_48650 {caseNum9} -1 {caseLabel9} @MANSIO2_48650

:MANSIO2_48618
if 
  Char.IsDead($scplayer)
goto_if_false @MANSIO2_48643
79@ = 3
return 

:MANSIO2_48643
goto @MANSIO2_48650

:MANSIO2_48650
switch_start 80@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_48745 {caseNum1} 1 {caseLabel1} @MANSIO2_48713 {caseNum2} 2 {caseLabel2} @MANSIO2_48713 {caseNum3} -1 {caseLabel3} @MANSIO2_48745 {caseNum4} -1 {caseLabel4} @MANSIO2_48745 {caseNum5} -1 {caseLabel5} @MANSIO2_48745 {caseNum6} -1 {caseLabel6} @MANSIO2_48745 {caseNum7} -1 {caseLabel7} @MANSIO2_48745

:MANSIO2_48713
if 
  Char.IsDead(130@)
goto_if_false @MANSIO2_48738
79@ = 3
return 

:MANSIO2_48738
goto @MANSIO2_48745

:MANSIO2_48745
return 

:MANSIO2_48747
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6800
set_lvar_text_label 104@(50@,13s) = 'MAN2_AA'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6841
set_lvar_text_label 104@(50@,13s) = 'MAN2_AB'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6801
set_lvar_text_label 104@(50@,13s) = 'MAN2_AC'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6802
set_lvar_text_label 104@(50@,13s) = 'MAN2_AD'
50@ += 1
if 
  50@ > 13
goto_if_false @MANSIO2_48951
write_debug "TOO_MANY_CONVERSATION_LINES"

:MANSIO2_48951
set_lvar_int_to_lvar_int 83@ = 50@
return 

:MANSIO2_48961
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6842
set_lvar_text_label 104@(50@,13s) = 'MAN2_BA'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6843
set_lvar_text_label 104@(50@,13s) = 'MAN2_BB'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6803
set_lvar_text_label 104@(50@,13s) = 'MAN2_BC'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6844
set_lvar_text_label 104@(50@,13s) = 'MAN2_BD'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6804
set_lvar_text_label 104@(50@,13s) = 'MAN2_BE'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6805
set_lvar_text_label 104@(50@,13s) = 'MAN2_BF'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6845
set_lvar_text_label 104@(50@,13s) = 'MAN2_BG'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6806
set_lvar_text_label 104@(50@,13s) = 'MAN2_BH'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6807
set_lvar_text_label 104@(50@,13s) = 'MAN2_BJ'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6808
set_lvar_text_label 104@(50@,13s) = 'MAN2_BK'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6846
set_lvar_text_label 104@(50@,13s) = 'MAN2_BL'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6809
set_lvar_text_label 104@(50@,13s) = 'MAN2_BM'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6810
set_lvar_text_label 104@(50@,13s) = 'MAN2_BN'
50@ += 1
if 
  50@ > 13
goto_if_false @MANSIO2_49498
write_debug "TOO_MANY_CONVERSATION_LINES"

:MANSIO2_49498
set_lvar_int_to_lvar_int 83@ = 50@
return 

:MANSIO2_49508
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6811
set_lvar_text_label 104@(50@,13s) = 'MAN2_CA'
83@ = 1
return 

:MANSIO2_49554
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6812
set_lvar_text_label 104@(50@,13s) = 'MAN2_DA'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6813
set_lvar_text_label 104@(50@,13s) = 'MAN2_DB'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6847
set_lvar_text_label 104@(50@,13s) = 'MAN2_DC'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6814
set_lvar_text_label 104@(50@,13s) = 'MAN2_DD'
50@ += 1
if 
  50@ > 13
goto_if_false @MANSIO2_49758
write_debug "TOO_MANY_CONVERSATION_LINES"

:MANSIO2_49758
set_lvar_int_to_lvar_int 83@ = 50@
return 

:MANSIO2_49768
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6820
set_lvar_text_label 104@(50@,13s) = 'MAN2_FA'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6850
set_lvar_text_label 104@(50@,13s) = 'MAN2_FB'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6851
set_lvar_text_label 104@(50@,13s) = 'MAN2_FC'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6821
set_lvar_text_label 104@(50@,13s) = 'MAN2_FD'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6822
set_lvar_text_label 104@(50@,13s) = 'MAN2_FE'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6852
set_lvar_text_label 104@(50@,13s) = 'MAN2_FF'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6823
set_lvar_text_label 104@(50@,13s) = 'MAN2_FG'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6853
set_lvar_text_label 104@(50@,13s) = 'MAN2_FK'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6854
set_lvar_text_label 104@(50@,13s) = 'MAN2_FL'
50@ += 1
if 
  50@ > 13
goto_if_false @MANSIO2_50157
write_debug "TOO_MANY_CONVERSATION_LINES"

:MANSIO2_50157
set_lvar_int_to_lvar_int 83@ = 50@
return 

:MANSIO2_50167
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6815
set_lvar_text_label 104@(50@,13s) = 'MAN2_EA'
83@ = 1
return 

:MANSIO2_50213
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6863
set_lvar_text_label 104@(50@,13s) = 'MAN2_EB'
83@ = 1
return 

:MANSIO2_50259
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 6848
set_lvar_text_label 104@(50@,13s) = 'MAN2_EC'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6816
set_lvar_text_label 104@(50@,13s) = 'MAN2_EE'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6817
set_lvar_text_label 104@(50@,13s) = 'MAN2_EF'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6849
set_lvar_text_label 104@(50@,13s) = 'MAN2_EG'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6818
set_lvar_text_label 104@(50@,13s) = 'MAN2_EH'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 6819
set_lvar_text_label 104@(50@,13s) = 'MAN2_EJ'
50@ += 1
if 
  50@ > 13
goto_if_false @MANSIO2_50537
write_debug "TOO_MANY_CONVERSATION_LINES"

:MANSIO2_50537
set_lvar_int_to_lvar_int 83@ = 50@
return 

:MANSIO2_50547
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @MANSIO2_50596
47@ += 1
if 
  47@ > 2
goto_if_false @MANSIO2_50594
47@ = 0

:MANSIO2_50594
clear_all_view_variables 

:MANSIO2_50596
if 
  47@ == 1
goto_if_false @MANSIO2_50723
set_var_int_to_lvar_int $h9_fuck_off = 34@
set_var_int_to_lvar_int $Mansion2_view_debug = 35@
set_var_int_to_lvar_int $7944 = 46@
$7945 = 0
$7946 = 0
$7947 = 0
$7948 = 0
$7949 = 0
view_integer_variable $h9_fuck_off {_p2} "M_STAGE"
view_integer_variable $Mansion2_view_debug {_p2} "M_GOALS"
view_integer_variable $7944 {_p2} "M_MISSION_TIMER"

:MANSIO2_50723
if 
  47@ == 2
goto_if_false @MANSIO2_50741

:MANSIO2_50741
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @MANSIO2_50763
38@ = 1

:MANSIO2_50763
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @MANSIO2_50851
if 
  39@ == 0
goto_if_false @MANSIO2_50826
39@ = 1
write_debug "LEVEL_PAUSED"
goto @MANSIO2_50851

:MANSIO2_50826
39@ = 0
write_debug "LEVEL_UNPAUSED"

:MANSIO2_50851
return 

:MANSIO2_50853
if 
  not is_ps2_keyboard_key_just_pressed 13
goto_if_false @MANSIO2_50870
return 

:MANSIO2_50870
if 
  34@ == 3
goto_if_false @MANSIO2_50945
World.ClearArea(220@, 221@, 222@, 50.0, False)
Char.SetCoordinates($scplayer, -1460.192, 513.4575, 2.003)
Char.SetHeading($scplayer, 270.0)
gosub @MANSIO2_51172
return 

:MANSIO2_50945
if and
  34@ == 4
  35@ > 1
  8 > 35@
goto_if_false @MANSIO2_50986
35@ = 8
return 

:MANSIO2_50986
if and
  34@ == 5
  35@ == 1
goto_if_false @MANSIO2_51097
World.ClearArea(-1403.146, 509.5356, 17.2266, 1.0, False)
Char.SetCoordinates($scplayer, -1403.146, 509.5356, 17.2266)
Char.SetHeading($scplayer, 78.0)
Game.SetAircraftCarrierSamSite(False)
238@ = 1
229@ = 1
Blip.Remove(165@)
35@ = 6
return 

:MANSIO2_51097
return 

:MANSIO2_51099
41@ += 1
if 
  41@ > 9
goto_if_false @MANSIO2_51131
41@ = 0

:MANSIO2_51131
return 

:MANSIO2_51133
42@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 44@ = 42@
sub_int_lvar_from_int_lvar 44@ -= 43@
set_lvar_int_to_lvar_int 43@ = 42@
add_int_lvar_to_int_lvar 46@ += 44@
return 

:MANSIO2_51172
34@ += 1
35@ = 0
TIMERA = 0
TIMERB = 0
return 

:MANSIO2_51202
Player.SetControl($player1, False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:MANSIO2_51224
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO2_51248
wait 0
goto @MANSIO2_51224

:MANSIO2_51248
Streaming.SetAreaVisible(5)
Cutscene.Load('BHILL2')

:MANSIO2_51263
if 
  not Cutscene.HasLoaded
goto_if_false @MANSIO2_51287
wait 0
goto @MANSIO2_51263

:MANSIO2_51287
Cutscene.Start
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:MANSIO2_51304
if 
  not Cutscene.HasFinished
goto_if_false @MANSIO2_51328
wait 0
goto @MANSIO2_51304

:MANSIO2_51328
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)

:MANSIO2_51342
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO2_51366
wait 0
goto @MANSIO2_51342

:MANSIO2_51366
Cutscene.Clear
Streaming.SetAreaVisible(0)
return 

:MANSIO2_51374
34@ = 0
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)

:MANSIO2_51392
if 
  not Player.IsPlaying($player1)
goto_if_false @MANSIO2_51419
wait 0
goto @MANSIO2_51392

:MANSIO2_51419
gosub @MANSIO2_51745
gosub @MANSIO2_52028
gosub @MANSIO2_52072
48@ = 0

:MANSIO2_51447
183@(48@,6i) = -1
269@(48@,6i) = 0
275@(48@,6i) = 0
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_51447
48@ = 0

:MANSIO2_51508
189@(48@,2i) = -1
281@(48@,2i) = 0
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_51508
Game.SwitchEmergencyServices(False)
Game.SetWantedMultiplier(0.0)
213@ = 0
World.ClearArea(1248.681, -807.9187, 83.1484, 100.0, True)
Streaming.LoadScene(1248.681, -807.9187, 83.1484)
Char.SetCoordinates($scplayer, 1246.016, -803.2319, 83.1484)
Char.SetHeading($scplayer, 180.0)
Camera.SetBehindPlayer
Clock.SetTimeOfDay(8, 0)
wait 2000
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission2, PedType.Player1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Mission2)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission2, PedType.Mission1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission2, PedType.Mission2)
Game.SetAircraftCarrierSamSite(True)
Object.Delete($displayed_sniper_help_text)
Object.Delete($g_VB_REAR_DOOR)
Object.Delete($g_VB_SMALL_LIFT)
Restart.SetRespawnPointForDurationOfMission(1250.65, -785.9349, 89.2412)
gosub @MANSIO2_51172
return 

:MANSIO2_51745
Streaming.RequestModel(421)
Streaming.RequestModel(446)
Streaming.RequestModel(520)
Streaming.RequestModel(454)
Streaming.RequestModel(595)
Streaming.RequestModel(530)
Streaming.RequestModel(287)
Streaming.RequestModel(50)
Streaming.LoadSpecialCharacter(1, 'TORINO')
Streaming.RequestModel(347)
Streaming.RequestModel(335)
Streaming.RequestModel(356)
Streaming.RequestModel(#CARRIER_LIFT1_SFSE)
Streaming.RequestModel(#CARRIER_LIFT2_SFSE)
Streaming.RequestModel(#CARRIER_DOOR_SFSE)
Streaming.RequestModel(#MISSILE_07_SFXR)
Streaming.RequestModel(#KMB_KEYPAD)
Streaming.LoadAllModelsNow

:MANSIO2_51836
if or
  not Streaming.HasModelLoaded(421)
  not Streaming.HasModelLoaded(446)
  not Streaming.HasModelLoaded(520)
  not Streaming.HasModelLoaded(454)
  not Streaming.HasModelLoaded(595)
  not Streaming.HasModelLoaded(530)
goto_if_false @MANSIO2_51888
wait 0
goto @MANSIO2_51836

:MANSIO2_51888
if or
  not Streaming.HasModelLoaded(287)
  not Streaming.HasModelLoaded(50)
goto_if_false @MANSIO2_51919
wait 0
goto @MANSIO2_51888

:MANSIO2_51919
if 
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @MANSIO2_51945
wait 0
goto @MANSIO2_51919

:MANSIO2_51945
if or
  not Streaming.HasModelLoaded(347)
  not Streaming.HasModelLoaded(335)
  not Streaming.HasModelLoaded(356)
goto_if_false @MANSIO2_51982
wait 0
goto @MANSIO2_51945

:MANSIO2_51982
if or
  not Streaming.HasModelLoaded(#CARRIER_LIFT1_SFSE)
  not Streaming.HasModelLoaded(#CARRIER_LIFT2_SFSE)
  not Streaming.HasModelLoaded(#CARRIER_DOOR_SFSE)
  not Streaming.HasModelLoaded(#MISSILE_07_SFXR)
  not Streaming.HasModelLoaded(#KMB_KEYPAD)
goto_if_false @MANSIO2_52026
wait 0
goto @MANSIO2_51982

:MANSIO2_52026
return 

:MANSIO2_52028
Streaming.RequestAnimation("CASINO")

:MANSIO2_52038
if 
  not Streaming.HasAnimationLoaded("CASINO")
goto_if_false @MANSIO2_52070
wait 0
goto @MANSIO2_52038

:MANSIO2_52070
return 

:MANSIO2_52072
Streaming.RequestCarRecording(208)
Streaming.RequestCarRecording(209)
Streaming.RequestCarRecording(211)

:MANSIO2_52087
if or
  not Streaming.HasCarRecordingBeenLoaded(208)
  not Streaming.HasCarRecordingBeenLoaded(209)
  not Streaming.HasCarRecordingBeenLoaded(211)
goto_if_false @MANSIO2_52124
wait 0
goto @MANSIO2_52087

:MANSIO2_52124
return 

:MANSIO2_52126
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Text.ClearSmallPrints
switch_start 45@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_52345 {caseNum1} 1 {caseLabel1} @MANSIO2_52207 {caseNum2} 2 {caseLabel2} @MANSIO2_52230 {caseNum3} 3 {caseLabel3} @MANSIO2_52253 {caseNum4} 4 {caseLabel4} @MANSIO2_52276 {caseNum5} 5 {caseLabel5} @MANSIO2_52299 {caseNum6} 6 {caseLabel6} @MANSIO2_52322 {caseNum7} -1 {caseLabel7} @MANSIO2_52345

:MANSIO2_52207
Text.PrintNow('MAN2_80', 5000, 1)
goto @MANSIO2_52345

:MANSIO2_52230
Text.PrintNow('MAN2_81', 5000, 1)
goto @MANSIO2_52345

:MANSIO2_52253
Text.PrintNow('MAN2_82', 5000, 1)
goto @MANSIO2_52345

:MANSIO2_52276
Text.PrintNow('MAN2_83', 5000, 1)
goto @MANSIO2_52345

:MANSIO2_52299
Text.PrintNow('MAN2_84', 5000, 1)
goto @MANSIO2_52345

:MANSIO2_52322
Text.PrintNow('MAN2_ZZ', 5000, 1)
goto @MANSIO2_52345

:MANSIO2_52345
if 
  Player.IsPlaying($player1)
goto_if_false @MANSIO2_52375
Char.RemoveWeapon($scplayer, WeaponType.PistolSilenced)
Char.RemoveWeapon($scplayer, WeaponType.Knife)

:MANSIO2_52375
return 

:MANSIO2_52377
Text.PrintWithNumberBig('M_PASS', 50000, 5000, TextStyle.Middle)
Player.AddScore($player1, 50000)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Stat.RegisterMissionPassed('MAN_2')
Stat.PlayerMadeProgress(1)
Stat.SetInt(StatId.PassedMansion2, 1)
Text.PrintNow('MAN2_34', 7000, 1)
$flag_mansion_mission_counter += 1
$2872 = Pickup.Create(359, PickupType.OnStreetSlow, -686.0, 934.0, 13.5)
$gun_toreno1 = Pickup.Create(360, PickupType.OnStreetSlow, -690.0, 934.0, 13.5)
$gun_toreno2 = Pickup.Create(362, PickupType.OnStreetSlow, -690.0, 939.0, 13.5)
$gun_toreno3 = Pickup.Create(361, PickupType.OnStreetSlow, -686.0, 939.0, 13.5)
CarGenerator.Switch($f1_blood_car_gen[8], 101)
CarGenerator.Switch($f1_blood_car_gen[9], 101)
CarGenerator.Switch($5180, 101)
CarGenerator.Switch($5181, 101)
return 

:MANSIO2_52592
if 
  286@ == 1
goto_if_false @MANSIO2_52625
Audio.ReportMissionAudioEventAtObject(159@, 1129)
286@ = 0

:MANSIO2_52625
if 
  288@ == 1
goto_if_false @MANSIO2_52658
Audio.ReportMissionAudioEventAtObject(158@, 1129)
288@ = 0

:MANSIO2_52658
if 
  287@ == 1
goto_if_false @MANSIO2_52691
Audio.ReportMissionAudioEventAtObject(157@, 1129)
287@ = 0

:MANSIO2_52691
if 
  289@ == 1
goto_if_false @MANSIO2_52736
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1162)
289@ = 0

:MANSIO2_52736
Car.MarkAsNoLongerNeeded(139@)
Car.MarkAsNoLongerNeeded(140@)
Car.MarkAsNoLongerNeeded(153@)
Char.MarkAsNoLongerNeeded(130@)
Object.MarkAsNoLongerNeeded(157@)
Object.MarkAsNoLongerNeeded(158@)
Object.MarkAsNoLongerNeeded(159@)
Object.MarkAsNoLongerNeeded(160@)
48@ = 0

:MANSIO2_52783
Car.MarkAsNoLongerNeeded(141@(48@,4i))
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_52783
48@ = 0

:MANSIO2_52820
Car.MarkAsNoLongerNeeded(146@(48@,3i))
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_52820
48@ = 0

:MANSIO2_52857
Car.MarkAsNoLongerNeeded(149@(48@,4i))
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_52857
48@ = 0

:MANSIO2_52894
Car.MarkAsNoLongerNeeded(154@(48@,3i))
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_52894
48@ = 0

:MANSIO2_52931
Char.MarkAsNoLongerNeeded(131@(48@,6i))
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_52931
Blip.Remove(164@)
Blip.Remove(165@)
Blip.Remove(179@)
48@ = 0

:MANSIO2_52983
Blip.Remove(166@(48@,3i))
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_52983
48@ = 0

:MANSIO2_53020
Blip.Remove(169@(48@,4i))
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_53020
48@ = 0

:MANSIO2_53057
Blip.Remove(173@(48@,6i))
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_53057
Text.ClearHelp
Streaming.RemoveAnimation("CASINO")
Streaming.MarkModelAsNoLongerNeeded(421)
Streaming.MarkModelAsNoLongerNeeded(446)
Streaming.MarkModelAsNoLongerNeeded(520)
Streaming.MarkModelAsNoLongerNeeded(454)
Streaming.MarkModelAsNoLongerNeeded(595)
Streaming.MarkModelAsNoLongerNeeded(530)
Streaming.MarkModelAsNoLongerNeeded(287)
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.MarkModelAsNoLongerNeeded(347)
Streaming.MarkModelAsNoLongerNeeded(335)
Streaming.MarkModelAsNoLongerNeeded(356)
Streaming.MarkModelAsNoLongerNeeded(#CARRIER_LIFT1_SFSE)
Streaming.MarkModelAsNoLongerNeeded(#CARRIER_LIFT2_SFSE)
Streaming.MarkModelAsNoLongerNeeded(#CARRIER_DOOR_SFSE)
Streaming.MarkModelAsNoLongerNeeded(#MISSILE_07_SFXR)
Streaming.MarkModelAsNoLongerNeeded(#KMB_KEYPAD)
Streaming.MarkModelAsNoLongerNeeded(359)
Streaming.MarkModelAsNoLongerNeeded(360)
Streaming.MarkModelAsNoLongerNeeded(362)
Streaming.MarkModelAsNoLongerNeeded(361)
Streaming.UnloadSpecialCharacter(1)
Streaming.RemoveCarRecording(208)
Streaming.RemoveCarRecording(209)
Streaming.RemoveCarRecording(211)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SetWantedMultiplier(1.0)
Game.SwitchEmergencyServices(True)
Game.SwitchRandomTrains(True)
Game.SwitchAmbientPlanes(True)
Weather.Release
Zone.SetDisableMilitaryZones(False)
Game.SetAircraftCarrierSamSite(True)
Player.ForceInteriorLighting($player1, False)
if 
  not Char.IsDead($scplayer)
goto_if_false @MANSIO2_53285
Char.EnableSpeech($scplayer)

:MANSIO2_53285
$timer_mobile_start = Clock.GetGameTimer()
$displayed_sniper_help_text = Object.CreateNoOffset(#CARRIER_DOOR_SFSE, -1465.797, 501.289, 1.145)
Object.SetDynamic($displayed_sniper_help_text, False)
Object.SetCollisionDamageEffect($displayed_sniper_help_text, False)
Object.SetProofs($displayed_sniper_help_text, True, True, True, True, True)
Object.DontRemove($displayed_sniper_help_text)
$g_VB_REAR_DOOR = Object.CreateNoOffset(#CARRIER_LIFT2_SFSE, -1414.453, 516.453, 16.688)
Object.SetDynamic($g_VB_REAR_DOOR, False)
Object.SetCollisionDamageEffect($g_VB_REAR_DOOR, False)
Object.SetProofs($g_VB_REAR_DOOR, True, True, True, True, True)
Object.DontRemove($g_VB_REAR_DOOR)
$g_VB_SMALL_LIFT = Object.CreateNoOffset(#CARRIER_LIFT1_SFSE, -1456.719, 501.297, 16.953)
Object.SetDynamic($g_VB_SMALL_LIFT, False)
Object.SetCollisionDamageEffect($g_VB_SMALL_LIFT, False)
Object.SetProofs($g_VB_SMALL_LIFT, True, True, True, True, True)
Object.DontRemove($g_VB_SMALL_LIFT)
$onmission = 0
Mission.Finish
return 

//-------------Mission 104---------------
// Originally: Home Coming

:MANSIO3
script_name 'MANSIO3'
gosub @MANSIO3_47
if 
  has_deatharrest_been_executed 
goto_if_false @MANSIO3_38
gosub @MANSIO3_6722

:MANSIO3_38
gosub @MANSIO3_6948
terminate_this_script 

:MANSIO3_47
Text.LoadMissionText('MAN_3')
Player.SetGroupToFollowAlways($player1, True)
Game.CanTriggerGangWarWhenOnAMission(True)
Camera.SetFadingColor(0, 0, 0)
Stat.RegisterMissionGiven
$onmission = 1
82@ = 2
wait 0
Streaming.LoadSpecialCharacter(1, 'SWEET')
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:MANSIO3_125
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO3_149
wait 0
goto @MANSIO3_125

:MANSIO3_149
Weather.ForceNow(WeatherType.SunnyLa)
Streaming.SetAreaVisible(5)
Cutscene.Load('BHILL3A')

:MANSIO3_168
if 
  not Cutscene.HasLoaded
goto_if_false @MANSIO3_192
wait 0
goto @MANSIO3_168

:MANSIO3_192
Cutscene.Start
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:MANSIO3_209
if 
  not Cutscene.HasFinished
goto_if_false @MANSIO3_233
wait 0
goto @MANSIO3_209

:MANSIO3_233
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)

:MANSIO3_247
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO3_271
wait 0
goto @MANSIO3_247

:MANSIO3_271
Cutscene.Clear
Streaming.SetAreaVisible(0)
Weather.Release
Streaming.RequestModel(540)
Streaming.RequestModel(28)
Streaming.RequestModel(106)
Streaming.RequestModel(355)
Streaming.RequestModel(29)
Streaming.RequestAnimation("GANGS")
Streaming.RequestAnimation("CRACK")
Streaming.RequestCarRecording(488)
StreamedScript.Stream(19)
Streaming.LoadAllModelsNow

:MANSIO3_330
if or
  not Streaming.HasModelLoaded(540)
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(106)
goto_if_false @MANSIO3_365
wait 0
goto @MANSIO3_330

:MANSIO3_365
if or
  not Streaming.HasAnimationLoaded("GANGS")
  not Streaming.HasAnimationLoaded("CRACK")
  not Streaming.HasModelLoaded(28)
goto_if_false @MANSIO3_409
wait 0
goto @MANSIO3_365

:MANSIO3_409
if or
  not StreamedScript.HasLoaded(19)
  not Streaming.HasCarRecordingBeenLoaded(488)
  not Streaming.HasModelLoaded(355)
  not Streaming.HasModelLoaded(29)
goto_if_false @MANSIO3_449
wait 0
goto @MANSIO3_409

:MANSIO3_449
Streaming.RequestCollision(1251.541, -808.7633)
Zone.SetGangStrength('GAN1', GangType.Grove, 0)
Zone.SetGangStrength('GAN1', GangType.Ballas, 40)
Game.CanTriggerGangWarWhenOnAMission(False)
52@ = Char.Create(PedType.CivMale, 28, 2488.617, -1671.536, -10.0)
StreamedScript.StartNew(19, 52@)
56@ = Blip.AddForCoord(2514.461, -1674.104, 12.6425)
57@ = Blip.AddForCoord(1521.252, -1673.336, 12.5607)
Blip.ChangeDisplay(56@, BlipDisplay.Neither)
Blip.ChangeDisplay(57@, BlipDisplay.Both)
World.ClearArea(1245.049, -811.1318, 83.1477, 10.0, True)
60@ = Car.Create(540, 1245.049, -811.1318, 83.1477)
Car.ChangeColor(60@, 0, 0)
Car.SetHeading(60@, 181.4888)
Car.SetTraction(60@, 2.0)
Char.SetCoordinates($scplayer, 1251.541, -808.7633, 83.1484)
Char.SetHeading($scplayer, 109.0044)
79@ = Blip.AddForCoord(2485.527, -1668.528, 12.3438)
Blip.ChangeDisplay(79@, BlipDisplay.Neither)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Streaming.LoadSceneInDirection(1251.541, -808.7633, 83.1484, 109.0044)
gosub @MANSIO3_7345
Text.PrintNow('MAN3_01', 7000, 1)

:MANSIO3_763
if 
  not Char.IsDead($scplayer)
goto_if_false @MANSIO3_5468
wait 0
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @MANSIO3_805
goto @MANSIO3_6740

:MANSIO3_805
gosub @MANSIO3_7378
gosub @MANSIO3_7833
if 
  64@ == 0
goto_if_false @MANSIO3_1823
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSIO3_877
61@ = Char.StoreCarIsIn($scplayer)
62@ = Car.GetMaximumNumberOfPassengers(61@)
84@ = Car.GetNumberOfPassengers(61@)

:MANSIO3_877
if 
  Char.LocateAnyMeans3D($scplayer, 1521.194, -1671.913, 12.5625, 3.0, 3.0, 3.0, True)
goto_if_false @MANSIO3_1823
if 
  62@ == 0
goto_if_false @MANSIO3_959
Text.PrintNow('MAN3_19', 3000, 1)

:MANSIO3_959
if 
  is_int_lvar_equal_to_int_lvar 84@ == 62@
goto_if_false @MANSIO3_1043
if or
  Char.IsInAnyHeli($scplayer)
  Char.IsInAnyPlane($scplayer)
  Char.IsInFlyingVehicle($scplayer)
goto_if_false @MANSIO3_1027
Text.PrintNow('MAN3_69', 3000, 1)
goto @MANSIO3_1043

:MANSIO3_1027
Text.PrintNow('MAN3_34', 3000, 1)

:MANSIO3_1043
if and
  62@ > 0
  not is_int_lvar_equal_to_int_lvar 84@ == 62@
goto_if_false @MANSIO3_1823
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSIO3_1807
Player.SetControl($player1, False)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSIO3_1131
$car = Char.StoreCarIsIn($scplayer)
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 2000000)

:MANSIO3_1131
Player.SetControl($player1, False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:MANSIO3_1153
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO3_1177
wait 0
goto @MANSIO3_1153

:MANSIO3_1177
Player.MakeSafeForCutscene($player1)
if 
  not Car.IsDead(60@)
goto_if_false @MANSIO3_1251
if 
  Car.Locate3D(60@, 1542.73, -1675.697, 12.5551, 15.0, 15.0, 15.0, False)
goto_if_false @MANSIO3_1251
Car.Delete(60@)

:MANSIO3_1251
World.ClearArea(1542.73, -1675.697, 12.5551, 60.0, True)
Cutscene.Load('BHILL3B')

:MANSIO3_1286
if 
  not Cutscene.HasLoaded
goto_if_false @MANSIO3_1310
wait 0
goto @MANSIO3_1286

:MANSIO3_1310
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:MANSIO3_1319
if 
  not Cutscene.HasFinished
goto_if_false @MANSIO3_1343
wait 0
goto @MANSIO3_1319

:MANSIO3_1343
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:MANSIO3_1358
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO3_1382
wait 0
goto @MANSIO3_1358

:MANSIO3_1382
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSIO3_1434
if 
  not Car.IsDead($car)
goto_if_false @MANSIO3_1434
Car.SetCoordinates($car, 1521.194, -1671.913, 12.5625)

:MANSIO3_1434
if 
  not Car.IsDead($car)
goto_if_false @MANSIO3_1518
Game.MakeRoomInPlayerGangForMissionPeds(1)
$sweet = Char.CreateAsPassenger($car, PedType.Mission2, 290, 0)
Char.SetHealth($sweet, 700)
Char.SetMaxHealth($sweet, 700)
Char.SetAnimGroup($sweet, "GANG2")
Char.SetNeverTargeted($sweet, True)
Char.SetSuffersCriticalHits($sweet, False)
Char.SetAccuracy($sweet, 90)

:MANSIO3_1518
if and
  not Char.IsDead($sweet)
  not Car.IsDead($car)
  not Char.IsDead($scplayer)
goto_if_false @MANSIO3_1593
if 
  not Char.IsInCar($scplayer, $car)
goto_if_false @MANSIO3_1571
Char.WarpIntoCar($scplayer, $car)

:MANSIO3_1571
58@ = Blip.AddForChar($sweet)
Blip.SetAsFriendly(58@, True)
Blip.ChangeDisplay(58@, BlipDisplay.Neither)

:MANSIO3_1593
TIMERB = 0
Blip.ChangeDisplay(56@, BlipDisplay.Both)
Blip.ChangeDisplay(57@, BlipDisplay.Neither)
if 
  not Char.IsDead($sweet)
goto_if_false @MANSIO3_1642
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $sweet)

:MANSIO3_1642
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
72@ = Char.GetHeading($scplayer)
if 
  not Car.IsDead($car)
goto_if_false @MANSIO3_1779
if and
  72@ > 90.0
  270.0 > 72@
goto_if_false @MANSIO3_1747
Streaming.LoadSceneInDirection(1521.194, -1671.913, 12.5625, 180.0)
Car.SetHeading($car, 180.0)
goto @MANSIO3_1779

:MANSIO3_1747
Streaming.LoadSceneInDirection(1521.194, -1671.913, 12.5625, 0.0)
Car.SetHeading($car, 0.0)

:MANSIO3_1779
gosub @MANSIO3_7345
59@ = 1
64@ = 1
goto @MANSIO3_1823

:MANSIO3_1807
Text.PrintNow('MAN3_08', 4000, 1)

:MANSIO3_1823
if 
  59@ <> 0
goto_if_false @MANSIO3_2226
if and
  TIMERB > 1000
  59@ == 1
goto_if_false @MANSIO3_1949
if 
  not Char.IsDead($ryder)
goto_if_false @MANSIO3_1890
Char.ShutUpForScriptedSpeech($ryder, True)

:MANSIO3_1890
if 
  not Char.IsDead($scplayer)
goto_if_false @MANSIO3_1913
Char.ShutUpForScriptedSpeech($scplayer, True)

:MANSIO3_1913
set_lvar_text_label 86@s = 'MAN3_AA'
set_lvar_int_to_constant 83@ = 19200
gosub @MANSIO3_7813
59@ = 2

:MANSIO3_1949
if and
  82@ == 2
  59@ == 2
goto_if_false @MANSIO3_2010
set_lvar_text_label 86@s = 'MAN3_AB'
set_lvar_int_to_constant 83@ = 19202
gosub @MANSIO3_7813
59@ = 3

:MANSIO3_2010
if and
  82@ == 2
  59@ == 3
goto_if_false @MANSIO3_2071
set_lvar_text_label 86@s = 'MAN3_AC'
set_lvar_int_to_constant 83@ = 19201
gosub @MANSIO3_7813
59@ = 4

:MANSIO3_2071
if and
  82@ == 2
  59@ == 4
goto_if_false @MANSIO3_2132
set_lvar_text_label 86@s = 'MAN3_AD'
set_lvar_int_to_constant 83@ = 19203
gosub @MANSIO3_7813
59@ = 5

:MANSIO3_2132
if and
  82@ == 2
  59@ == 5
goto_if_false @MANSIO3_2226
Text.PrintNow('MAN3_05', 7000, 1)
59@ = 0
if 
  not Char.IsDead($ryder)
goto_if_false @MANSIO3_2203
Char.ShutUpForScriptedSpeech($ryder, False)

:MANSIO3_2203
if 
  not Char.IsDead($scplayer)
goto_if_false @MANSIO3_2226
Char.ShutUpForScriptedSpeech($scplayer, False)

:MANSIO3_2226
if or
  64@ == 1
  64@ == 2
goto_if_false @MANSIO3_3847
if 
  Char.IsDead($sweet)
goto_if_false @MANSIO3_2290
Text.PrintNow('MAN3_11', 4000, 1)
goto @MANSIO3_6722

:MANSIO3_2290
if 
  not Char.IsDead($sweet)
goto_if_false @MANSIO3_2320
53@, 54@, 55@ = Char.GetCoordinates($sweet)

:MANSIO3_2320
if 
  Char.LocateAnyMeans3D($scplayer, 53@, 54@, 55@, 30.0, 30.0, 30.0, False)
goto_if_false @MANSIO3_2421
Blip.ChangeDisplay(58@, BlipDisplay.Neither)
Blip.ChangeDisplay(56@, BlipDisplay.Both)
if 
  not Char.IsGroupMember($sweet, $Players_Group)
goto_if_false @MANSIO3_2407
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $sweet)

:MANSIO3_2407
64@ = 1
goto @MANSIO3_2482

:MANSIO3_2421
Text.PrintNow('MAN3_03', 4000, 1)
Blip.ChangeDisplay(58@, BlipDisplay.Both)
Blip.ChangeDisplay(56@, BlipDisplay.Neither)
if 
  Char.IsGroupMember($sweet, $Players_Group)
goto_if_false @MANSIO3_2475
Char.RemoveFromGroup($sweet)

:MANSIO3_2475
64@ = 2

:MANSIO3_2482
if 
  64@ == 1
goto_if_false @MANSIO3_3847
if 
  Char.LocateAnyMeans3D($scplayer, 2514.461, -1674.104, 12.6425, 4.0, 4.0, 4.0, True)
goto_if_false @MANSIO3_3847
Player.SetControl($player1, False)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSIO3_2594
$car = Char.StoreCarIsInNoSave($scplayer)
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 2000000)

:MANSIO3_2594
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:MANSIO3_2609
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO3_2633
wait 0
goto @MANSIO3_2609

:MANSIO3_2633
Player.MakeSafeForCutscene($player1)
if 
  not Car.IsDead(60@)
goto_if_false @MANSIO3_2756
if 
  Car.Locate3D(60@, 2492.889, -1666.564, 12.3438, 15.0, 15.0, 15.0, False)
goto_if_false @MANSIO3_2756
World.ClearArea(2482.994, -1653.609, 12.461, 10.0, True)
Car.SetCoordinates(60@, 2482.994, -1653.609, 12.461)
Car.SetHeading(60@, 273.1021)

:MANSIO3_2756
World.ClearArea(2492.889, -1666.564, 12.3438, 60.0, True)
Cutscene.Load('BHILL3C')

:MANSIO3_2791
if 
  not Cutscene.HasLoaded
goto_if_false @MANSIO3_2815
wait 0
goto @MANSIO3_2791

:MANSIO3_2815
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:MANSIO3_2824
if 
  not Cutscene.HasFinished
goto_if_false @MANSIO3_2848
wait 0
goto @MANSIO3_2824

:MANSIO3_2848
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:MANSIO3_2863
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO3_2887
wait 0
goto @MANSIO3_2863

:MANSIO3_2887
88@ = Sequence.Open()
Task.PlayAnim(-1, "IDLE_CHAT", "PED", 1.0, True, False, False, False, -1)
Sequence.SetToRepeat(88@, True)
Sequence.Close(88@)
89@ = Sequence.Open()
Task.Pause(-1, 1000)
Sequence.SetToRepeat(89@, True)
Sequence.Close(89@)
Blip.ChangeDisplay(56@, BlipDisplay.Neither)
64@ = 3
40@ = Char.Create(PedType.CivMale, 28, 2429.19, -1677.537, 12.7231)
Char.SetHeading(40@, 306.1672)
Char.PerformSequence(40@, 88@)
34@ = Blip.AddForChar(40@)
47@ = Char.Create(PedType.CivMale, 106, 2430.586, -1677.075, 12.7135)
Char.SetHeading(47@, 80.528)
Char.PerformSequence(47@, 89@)
48@ = Char.Create(PedType.CivMale, 106, 2513.364, -1649.865, 13.5588)
Char.SetHeading(48@, 140.4164)
Task.PlayAnim(48@, "CRCKIDLE1", "CRACK", 1.0, True, False, False, False, -1)
Player.ApplyBrakesToCar($player1, False)
gosub @MANSIO3_7280
Streaming.LoadSceneInDirection(2424.184, -1679.58, 12.7653, 322.7617)
Camera.SetFixedPosition(2427.227, -1681.12, 13.891, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2427.808, -1680.306, 13.8707, SwitchType.JumpCut)
Text.PrintNow('MAN3_20', 5000, 1)
gosub @MANSIO3_7345
wait 1000
TIMERB = 0

:MANSIO3_3263
if 
  4000 > TIMERB
goto_if_false @MANSIO3_3324
wait 0
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  $7950 == 1
goto_if_false @MANSIO3_3317
goto @MANSIO3_3459

:MANSIO3_3317
goto @MANSIO3_3263

:MANSIO3_3324
Camera.SetFixedPosition(2507.984, -1652.199, 15.6974, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2508.892, -1651.913, 15.3924, SwitchType.JumpCut)
Text.PrintNow('MAN3_21', 5000, 1)
TIMERB = 0

:MANSIO3_3398
if 
  5000 > TIMERB
goto_if_false @MANSIO3_3459
wait 0
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  $7950 == 1
goto_if_false @MANSIO3_3452
goto @MANSIO3_3459

:MANSIO3_3452
goto @MANSIO3_3398

:MANSIO3_3459
$7950 = 1
85@ = 1
Game.CanTriggerGangWarWhenOnAMission(True)
if 
  not Char.IsDead($scplayer)
goto_if_false @MANSIO3_3568
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSIO3_3536
Char.WarpFromCarToCoord($scplayer, 2506.059, -1671.968, 12.379)
goto @MANSIO3_3556

:MANSIO3_3536
Char.SetCoordinates($scplayer, 2506.059, -1671.968, 12.379)

:MANSIO3_3556
Camera.SetBehindPlayer
Char.SetHeading($scplayer, 62.4295)

:MANSIO3_3568
if 
  not Char.IsDead($sweet)
goto_if_false @MANSIO3_3674
if 
  Char.IsInAnyCar($sweet)
goto_if_false @MANSIO3_3627
Char.WarpFromCarToCoord($sweet, 2506.567, -1670.212, 12.3822)
goto @MANSIO3_3647

:MANSIO3_3627
Char.SetCoordinates($sweet, 2506.567, -1670.212, 12.3822)

:MANSIO3_3647
Char.GiveWeapon($sweet, WeaponType.Ak47, 300)
Char.SetCurrentWeapon($sweet, WeaponType.Ak47)
Char.SetHeading($sweet, 113.0677)

:MANSIO3_3674
if 
  not Char.IsGroupMember($sweet, $Players_Group)
goto_if_false @MANSIO3_3705
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $sweet)

:MANSIO3_3705
Zone.SetGangStrength('GAN1', GangType.Grove, 0)
Zone.SetGangStrength('GAN1', GangType.Ballas, 40)
Zone.SetGangStrength('GAN2', GangType.Grove, 0)
Zone.SetGangStrength('GAN2', GangType.Ballas, 40)
Char.Delete(47@)
59@ = 0
gosub @MANSIO3_7293
if 
  not Char.IsDead($sweet)
goto_if_false @MANSIO3_3824
Char.SetHealth($sweet, 700)
Char.SetMaxHealth($sweet, 700)
$m3_in_the_zone = Char.GetHealth($sweet)

:MANSIO3_3824
$m3_in_the_zone /= 7
Hud.DisplayCounterWithString($m3_in_the_zone, CounterDisplay.Bar, 'MAN3_32')

:MANSIO3_3847
if 
  64@ == 3
goto_if_false @MANSIO3_4151
Text.PrintNow('MAN3_22', 7000, 1)
41@ = Char.Create(PedType.Dealer, 29, 2482.087, -1696.119, 12.5267)
Char.SetHeading(41@, 0.095)
35@ = Blip.AddForChar(41@)
42@ = Char.Create(PedType.Dealer, 28, 2451.681, -1644.083, 12.457)
Char.SetHeading(42@, 186.2393)
36@ = Blip.AddForChar(42@)
43@ = Char.Create(PedType.Dealer, 29, 2415.79, -1631.143, 12.5114)
Char.SetHeading(43@, 287.5167)
37@ = Blip.AddForChar(43@)
44@ = Char.Create(PedType.Dealer, 28, 2364.361, -1666.775, 12.5469)
Char.SetHeading(44@, 343.1245)
38@ = Blip.AddForChar(44@)
45@ = Char.Create(PedType.Dealer, 28, 2370.333, -1637.42, 12.477)
Char.SetHeading(45@, 140.6299)
39@ = Blip.AddForChar(45@)
StreamedScript.StartNew(19, 40@)
StreamedScript.StartNew(19, 41@)
StreamedScript.StartNew(19, 42@)
StreamedScript.StartNew(19, 43@)
StreamedScript.StartNew(19, 44@)
StreamedScript.StartNew(19, 45@)
Char.Delete(52@)
64@ = 4

:MANSIO3_4151
if 
  64@ == 4
goto_if_false @MANSIO3_5461
if 
  not Char.IsDead($sweet)
goto_if_false @MANSIO3_4200
$m3_in_the_zone = Char.GetHealth($sweet)
$m3_in_the_zone /= 7

:MANSIO3_4200
75@ = Zone.GetGangStrength('GAN1', GangType.Ballas)
if 
  75@ == 0
goto_if_false @MANSIO3_4511
if 
  74@ == 0
goto_if_false @MANSIO3_4511
74@ = 1
if 
  73@ == 0
goto_if_false @MANSIO3_4504
gosub @MANSIO3_7280
if 
  not Char.IsDead($scplayer)
goto_if_false @MANSIO3_4350
Char.ClearTasksImmediately($scplayer)
Task.PlayAnimNonInterruptable($scplayer, "PRTIAL_HNDSHK_01", "GANGS", 4.0, False, False, False, False, -1)

:MANSIO3_4350
if 
  not Char.IsDead($sweet)
goto_if_false @MANSIO3_4416
Char.ClearTasksImmediately($sweet)
Task.PlayAnimNonInterruptable($sweet, "PRTIAL_HNDSHK_01", "GANGS", 4.0, False, False, False, False, -1)

:MANSIO3_4416
Text.PrintNow('MAN3_33', 4000, 1)
wait 4000
Zone.SetGangStrength('GAN1', GangType.Grove, 40)
Zone.SetGangStrength('GAN1', GangType.Ballas, 0)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang2, PedType.Gang1)
gosub @MANSIO3_7293
TIMERB = 0
goto @MANSIO3_4511

:MANSIO3_4504
goto @MANSIO3_5475

:MANSIO3_4511
if and
  74@ == 1
  TIMERB > 4000
  81@ == 0
goto_if_false @MANSIO3_4567
Text.PrintNow('MAN3_29', 10000, 1)
81@ = 1

:MANSIO3_4567
if and
  Player.IsInInfoZone($player1, 'GAN1')
  74@ == 0
  85@ == 1
goto_if_false @MANSIO3_4669
if and
  78@ == 0
  not Game.IsGangWarGoingOn
goto_if_false @MANSIO3_4662
Game.CanTriggerGangWarWhenOnAMission(True)
Game.SetGangWarsActive(True)
if 
  Blip.DoesExist(79@)
goto_if_false @MANSIO3_4655
Blip.Remove(79@)

:MANSIO3_4655
78@ = 1

:MANSIO3_4662
$has_seen_this_cutscene = 1

:MANSIO3_4669
if and
  not Player.IsInInfoZone($player1, 'GAN1')
  74@ == 0
  85@ == 1
goto_if_false @MANSIO3_4802
if and
  78@ == 1
  not Game.IsGangWarGoingOn
goto_if_false @MANSIO3_4795
Game.CanTriggerGangWarWhenOnAMission(False)
Game.SetGangWarsActive(False)
Text.PrintNow('MAN3_31', 6000, 1)
if 
  not Blip.DoesExist(79@)
goto_if_false @MANSIO3_4788
79@ = Blip.AddForCoord(2485.527, -1668.528, 12.3438)

:MANSIO3_4788
78@ = 0

:MANSIO3_4795
$has_seen_this_cutscene = 0

:MANSIO3_4802
if 
  Char.IsDead($sweet)
goto_if_false @MANSIO3_4841
Text.PrintNow('MAN3_11', 4000, 1)
goto @MANSIO3_6722

:MANSIO3_4841
if 
  not Char.IsDead($sweet)
goto_if_false @MANSIO3_4871
53@, 54@, 55@ = Char.GetCoordinates($sweet)

:MANSIO3_4871
if 
  Char.LocateAnyMeans3D($scplayer, 53@, 54@, 55@, 35.0, 35.0, 35.0, False)
goto_if_false @MANSIO3_5022
if 
  70@ == 1
goto_if_false @MANSIO3_5015
Blip.ChangeDisplay(58@, BlipDisplay.Neither)
Blip.ChangeDisplay(34@, BlipDisplay.Both)
Blip.ChangeDisplay(35@, BlipDisplay.Both)
Blip.ChangeDisplay(36@, BlipDisplay.Both)
Blip.ChangeDisplay(37@, BlipDisplay.Both)
Blip.ChangeDisplay(38@, BlipDisplay.Both)
Blip.ChangeDisplay(39@, BlipDisplay.Both)
if 
  not Char.IsDead($sweet)
goto_if_false @MANSIO3_5008
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $sweet)

:MANSIO3_5008
70@ = 0

:MANSIO3_5015
goto @MANSIO3_5133

:MANSIO3_5022
if 
  70@ == 0
goto_if_false @MANSIO3_5133
Text.PrintNow('MAN3_03', 10000, 1)
Blip.ChangeDisplay(58@, BlipDisplay.Both)
Blip.ChangeDisplay(34@, BlipDisplay.Neither)
Blip.ChangeDisplay(35@, BlipDisplay.Neither)
Blip.ChangeDisplay(36@, BlipDisplay.Neither)
Blip.ChangeDisplay(37@, BlipDisplay.Neither)
Blip.ChangeDisplay(38@, BlipDisplay.Neither)
Blip.ChangeDisplay(39@, BlipDisplay.Neither)
if 
  not Char.IsDead($sweet)
goto_if_false @MANSIO3_5126
Char.RemoveFromGroup($sweet)

:MANSIO3_5126
70@ = 1

:MANSIO3_5133
if and
  Char.IsDead(40@)
  Blip.DoesExist(34@)
goto_if_false @MANSIO3_5159
Blip.Remove(34@)

:MANSIO3_5159
if and
  Char.IsDead(41@)
  Blip.DoesExist(35@)
goto_if_false @MANSIO3_5185
Blip.Remove(35@)

:MANSIO3_5185
if and
  Char.IsDead(42@)
  Blip.DoesExist(36@)
goto_if_false @MANSIO3_5211
Blip.Remove(36@)

:MANSIO3_5211
if and
  Char.IsDead(43@)
  Blip.DoesExist(37@)
goto_if_false @MANSIO3_5237
Blip.Remove(37@)

:MANSIO3_5237
if and
  Char.IsDead(44@)
  Blip.DoesExist(38@)
goto_if_false @MANSIO3_5263
Blip.Remove(38@)

:MANSIO3_5263
if and
  Char.IsDead(45@)
  Blip.DoesExist(39@)
goto_if_false @MANSIO3_5289
Blip.Remove(39@)

:MANSIO3_5289
if and
  77@ == 1
  TIMERA > 4000
goto_if_false @MANSIO3_5333
Text.PrintHelp('MAN3_30')
77@ = 2

:MANSIO3_5333
if and
  Char.IsDead(40@)
  Char.IsDead(41@)
  Char.IsDead(42@)
  Char.IsDead(43@)
  Char.IsDead(44@)
  Char.IsDead(45@)
goto_if_false @MANSIO3_5461
if 
  73@ == 0
goto_if_false @MANSIO3_5461
73@ = 1
if 
  74@ == 0
goto_if_false @MANSIO3_5454
Text.PrintNow('MAN3_28', 10000, 1)
TIMERA = 0
77@ = 1
goto @MANSIO3_5461

:MANSIO3_5454
goto @MANSIO3_5475

:MANSIO3_5461
goto @MANSIO3_763

:MANSIO3_5468
goto @MANSIO3_6722

:MANSIO3_5475
gosub @MANSIO3_7312
gosub @MANSIO3_7280
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($sweet)
goto_if_false @MANSIO3_5723
Char.RemoveFromGroup($sweet)
World.ClearArea(2512.761, -1672.52, 12.5034, 20.0, True)
Car.Delete(60@)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSIO3_5607
Char.WarpFromCarToCoord($scplayer, 2512.761, -1672.52, 12.5034)
Char.WarpFromCarToCoord($sweet, 2514.788, -1673.938, 12.6861)
goto @MANSIO3_5647

:MANSIO3_5607
Char.SetCoordinates($scplayer, 2512.761, -1672.52, 12.5034)
Char.SetCoordinates($sweet, 2514.788, -1673.938, 12.6861)

:MANSIO3_5647
Car.Delete(60@)
Char.SetHeading($scplayer, 240.2609)
Task.TurnCharToFaceChar($scplayer, $sweet)
Char.SetHeading($sweet, 73.5014)
Task.TurnCharToFaceChar($sweet, $scplayer)
Task.TogglePedThreatScanner($sweet, False, False, False)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($sweet)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.SetCurrentWeapon($sweet, WeaponType.Unarmed)

:MANSIO3_5723
Streaming.LoadScene(2512.761, -1672.52, 12.5034)
Streaming.LoadSceneInDirection(2512.761, -1672.52, 12.5034, 240.2609)
Camera.SetFixedPosition(2509.798, -1672.175, 13.4192, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2510.752, -1672.457, 13.5178, SwitchType.JumpCut)
gosub @MANSIO3_7345
if 
  not Char.IsDead($scplayer)
goto_if_false @MANSIO3_5886
Task.PlayAnim($scplayer, "PRTIAL_HNDSHK_01", "GANGS", 4.0, False, False, False, False, -1)
wait 500

:MANSIO3_5886
if 
  not Char.IsDead($sweet)
goto_if_false @MANSIO3_5952
Task.PlayAnim($sweet, "PRTIAL_HNDSHK_01", "GANGS", 4.0, False, False, False, False, -1)
wait 500

:MANSIO3_5952
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 19217)

:MANSIO3_5963
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @MANSIO3_5989
wait 0
goto @MANSIO3_5963

:MANSIO3_5989
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('MAN3_BA', 4000, 1)
TIMERB = 0

:MANSIO3_6016
if 
  4000 > TIMERB
goto_if_false @MANSIO3_6070
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @MANSIO3_6063
goto @MANSIO3_6701

:MANSIO3_6063
goto @MANSIO3_6016

:MANSIO3_6070
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 19204)

:MANSIO3_6081
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @MANSIO3_6107
wait 0
goto @MANSIO3_6081

:MANSIO3_6107
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('MAN3_BB', 3000, 1)
if 
  not Char.IsDead($sweet)
goto_if_false @MANSIO3_6184
Char.ClearTasksImmediately($sweet)
Task.PlayAnim($sweet, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)

:MANSIO3_6184
TIMERB = 0

:MANSIO3_6191
if 
  3000 > TIMERB
goto_if_false @MANSIO3_6245
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @MANSIO3_6238
goto @MANSIO3_6701

:MANSIO3_6238
goto @MANSIO3_6191

:MANSIO3_6245
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 19218)

:MANSIO3_6256
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @MANSIO3_6282
wait 0
goto @MANSIO3_6256

:MANSIO3_6282
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('MAN3_BC', 3000, 1)
if 
  not Char.IsDead($scplayer)
goto_if_false @MANSIO3_6359
Char.ClearTasksImmediately($scplayer)
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 4.0, False, False, False, False, -1)

:MANSIO3_6359
TIMERB = 0

:MANSIO3_6366
if 
  3000 > TIMERB
goto_if_false @MANSIO3_6420
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @MANSIO3_6413
goto @MANSIO3_6701

:MANSIO3_6413
goto @MANSIO3_6366

:MANSIO3_6420
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 19205)

:MANSIO3_6431
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @MANSIO3_6457
wait 0
goto @MANSIO3_6431

:MANSIO3_6457
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('MAN3_BD', 3000, 1)
TIMERB = 0

:MANSIO3_6484
if 
  3000 > TIMERB
goto_if_false @MANSIO3_6538
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @MANSIO3_6531
goto @MANSIO3_6701

:MANSIO3_6531
goto @MANSIO3_6484

:MANSIO3_6538
if 
  not Char.IsDead($scplayer)
goto_if_false @MANSIO3_6583
Char.ClearTasksImmediately($scplayer)
Task.GoToCoordAnyMeans($scplayer, 2507.793, -1668.927, 12.3879, 4, -1)

:MANSIO3_6583
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 19219)

:MANSIO3_6594
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @MANSIO3_6620
wait 0
goto @MANSIO3_6594

:MANSIO3_6620
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('MAN3_BE', 2000, 1)
TIMERB = 0

:MANSIO3_6647
if 
  2000 > TIMERB
goto_if_false @MANSIO3_6701
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @MANSIO3_6694
goto @MANSIO3_6701

:MANSIO3_6694
goto @MANSIO3_6647

:MANSIO3_6701
gosub @MANSIO3_7293
Camera.SetBehindPlayer
Char.Delete($sweet)
goto @MANSIO3_6740

:MANSIO3_6722
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:MANSIO3_6740
Game.CanTriggerGangWarWhenOnAMission(True)
Game.SetGangWarsActive(True)
Zone.SetGangStrength('GAN1', GangType.Grove, 40)
Zone.SetGangStrength('GAN2', GangType.Grove, 40)
Zone.SetGangStrength('GAN1', GangType.Ballas, 0)
Zone.SetGangStrength('GAN2', GangType.Ballas, 0)
start_new_script @GROVE 
Blip.Remove($grove_contact_blip)
$grove_contact_blip = Blip.AddSpriteForContactPoint($introX, $introY, $introZ, $grove_blip_icon)
$flag_mansion_mission_counter += 1
Stat.PlayerMadeProgress(1)
Stat.RegisterMissionPassed('MAN_3')
Text.PrintWithNumberBig('M_PASSR', 40, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(40)
$territory_pickup = Pickup.CreateProtection(2502.1, -1686.38, 13.0, 10000, $territory_cash)
start_new_script @TCASH 
$terminted_territory_pickup = 0
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Stat.SetInt(StatId.PassedMansion3, 1)
65@ = 1
return 

:MANSIO3_6948
if 
  65@ == 0
goto_if_false @MANSIO3_7034
Game.CanTriggerGangWarWhenOnAMission(False)
Game.SetGangWarsActive(False)
Zone.SetGangStrength('GAN1', GangType.Grove, 0)
Zone.SetGangStrength('GAN2', GangType.Grove, 0)
Zone.SetGangStrength('GAN1', GangType.Ballas, 40)
Zone.SetGangStrength('GAN2', GangType.Ballas, 40)

:MANSIO3_7034
Hud.ClearCounter($m3_in_the_zone)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang2, PedType.Gang1)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
$gf_game_timer = Clock.GetGameTimer()
Streaming.MarkModelAsNoLongerNeeded(540)
Streaming.MarkModelAsNoLongerNeeded(437)
Streaming.MarkModelAsNoLongerNeeded(28)
Streaming.MarkModelAsNoLongerNeeded(106)
Streaming.MarkModelAsNoLongerNeeded(355)
Streaming.MarkModelAsNoLongerNeeded(29)
StreamedScript.MarkAsNoLongerNeeded(19)
Streaming.UnloadSpecialCharacter(1)
Streaming.RemoveAnimation("GANGS")
Streaming.RemoveAnimation("CRACK")
if 
  not Char.IsDead($sweet)
goto_if_false @MANSIO3_7146
Char.RemoveElegantly($sweet)

:MANSIO3_7146
if 
  Blip.DoesExist(79@)
goto_if_false @MANSIO3_7167
Blip.Remove(79@)

:MANSIO3_7167
if 
  Blip.DoesExist(34@)
goto_if_false @MANSIO3_7188
Blip.Remove(34@)

:MANSIO3_7188
if 
  Blip.DoesExist(35@)
goto_if_false @MANSIO3_7209
Blip.Remove(35@)

:MANSIO3_7209
if 
  Blip.DoesExist(57@)
goto_if_false @MANSIO3_7230
Blip.Remove(57@)

:MANSIO3_7230
if 
  Blip.DoesExist(56@)
goto_if_false @MANSIO3_7251
Blip.Remove(56@)

:MANSIO3_7251
if 
  Blip.DoesExist(58@)
goto_if_false @MANSIO3_7272
Blip.Remove(58@)

:MANSIO3_7272
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Mission.Finish
return 

:MANSIO3_7280
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
return 

:MANSIO3_7293
Text.ClearPrints
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
return 

:MANSIO3_7312
Camera.DoFade(500, Fade.Out)

:MANSIO3_7319
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO3_7343
wait 0
goto @MANSIO3_7319

:MANSIO3_7343
return 

:MANSIO3_7345
Camera.DoFade(500, Fade.In)

:MANSIO3_7352
if 
  Camera.GetFadingStatus
goto_if_false @MANSIO3_7376
wait 0
goto @MANSIO3_7352

:MANSIO3_7376
return 

:MANSIO3_7378
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @MANSIO3_7441
if 
  not Char.IsDead($scplayer)
goto_if_false @MANSIO3_7441
Char.SetCoordinates($scplayer, 1522.09, -1662.082, 12.5469)
Char.SetHeading($scplayer, 175.5419)
Camera.SetBehindPlayer

:MANSIO3_7441
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @MANSIO3_7456

:MANSIO3_7456
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @MANSIO3_7519
if 
  not Char.IsDead($scplayer)
goto_if_false @MANSIO3_7519
Char.SetCoordinates($scplayer, 2503.688, -1671.453, 12.3707)
Char.SetHeading($scplayer, 255.1807)
Camera.SetBehindPlayer

:MANSIO3_7519
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @MANSIO3_7701
gosub @MANSIO3_7280
if 
  not Char.IsDead($scplayer)
goto_if_false @MANSIO3_7607
Char.ClearTasksImmediately($scplayer)
Task.PlayAnimNonInterruptable($scplayer, "PRTIAL_HNDSHK_01", "GANGS", 4.0, False, False, False, False, -1)

:MANSIO3_7607
if 
  not Char.IsDead($sweet)
goto_if_false @MANSIO3_7673
Char.ClearTasksImmediately($sweet)
Task.PlayAnimNonInterruptable($sweet, "PRTIAL_HNDSHK_01", "GANGS", 4.0, False, False, False, False, -1)

:MANSIO3_7673
Text.PrintNow('MAN3_33', 4000, 1)
wait 4000
gosub @MANSIO3_7293

:MANSIO3_7701
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @MANSIO3_7723
goto @MANSIO3_5475

:MANSIO3_7723
if 
is_ps2_keyboard_key_just_pressed 29
goto_if_false @MANSIO3_7796
if 
  not Car.IsDead(61@)
goto_if_false @MANSIO3_7796
46@ = Char.CreateAsPassenger(61@, PedType.CivMale, 106, 0)
47@ = Char.CreateAsPassenger(61@, PedType.CivMale, 106, 1)
48@ = Char.CreateAsPassenger(61@, PedType.CivMale, 106, 2)

:MANSIO3_7796
if 
is_ps2_keyboard_key_just_pressed 16
goto_if_false @MANSIO3_7811

:MANSIO3_7811
return 

:MANSIO3_7813
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 83@)
82@ = 0
return 

:MANSIO3_7833
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  82@ == 0
goto_if_false @MANSIO3_7876
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(86@s, 10000, 1)
82@ = 1

:MANSIO3_7876
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  82@ == 1
goto_if_false @MANSIO3_7914
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint(86@s)
82@ = 2

:MANSIO3_7914
return 

//-------------Mission 105---------------
// Originally: Cut Throat Business

:MANSON5
script_name 'MANSON5'
gosub @MANSON5_47
if 
  has_deatharrest_been_executed 
goto_if_false @MANSON5_38
gosub @MANSON5_13113

:MANSON5_38
gosub @MANSON5_13159
terminate_this_script 

:MANSON5_47
Stat.RegisterMissionGiven
$onmission = 1
Text.LoadMissionText('MAN_5')
Player.SetGroupRecruitment($player1, False)
Game.SetScriptLimitToGangSize(0)
Streaming.SetAreaVisible(5)
Cutscene.Load('BHILL5A')

:MANSON5_93
if 
  not Cutscene.HasLoaded
goto_if_false @MANSON5_117
wait 0
goto @MANSON5_93

:MANSON5_117
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:MANSON5_126
if 
  not Cutscene.HasFinished
goto_if_false @MANSON5_150
wait 0
goto @MANSON5_126

:MANSON5_150
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:MANSON5_165
if 
  Camera.GetFadingStatus
goto_if_false @MANSON5_189
wait 0
goto @MANSON5_165

:MANSON5_189
Streaming.SetAreaVisible(0)
Game.SetScriptLimitToGangSize(99)
start_new_script @A_CONT 
Weather.ForceNow(WeatherType.ExtraSunnyLa)
52@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Streaming.LoadSpecialCharacter(1, 'MADDOGG')
Streaming.RequestModel(424)

:MANSON5_234
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(424)
goto_if_false @MANSON5_265
wait 0
goto @MANSON5_234

:MANSON5_265
World.ClearArea(1252.471, -805.5187, 83.1484, 400.0, True)
Streaming.LoadScene(1252.471, -805.5187, 83.1484)
Streaming.RequestCollision(1252.471, -805.5187)
Char.SetCoordinates($scplayer, 1252.471, -805.5187, 83.1484)
Char.SetHeading($scplayer, 144.1434)
51@ = Player.GetGroup($player1)
Group.SetDefaultTaskAllocator(51@, DefaultTaskAllocator.FollowAnyMeans)
34@ = Char.Create(PedType.Special, 290, 1254.311, -810.8859, 83.1484)
Char.SetHeading(34@, 60.7435)
Char.SetNeverLeavesGroup(34@, True)
Group.SetMember(51@, 34@)
Char.SetDrownsInWater(34@, True)
Char.SetDecisionMaker(34@, 52@)
Char.SetNeverTargeted(34@, True)
Char.SetCantBeDraggedOut(34@, True)
37@ = Blip.AddForChar(34@)
Blip.SetAsFriendly(37@, True)
Blip.ChangeDisplay(37@, BlipDisplay.BlipOnly)
Car.CustomPlateForNextCar(424, "LA5H_L3Y")
Streaming.CustomPlateDesignForNextCar(424, Town.LV)
45@ = Car.Create(424, 1248.907, -804.3519, 83.1484)
Car.SetHeading(45@, 180.0)
Car.ChangeColor(45@, 0, 3)
50@ = Blip.AddForCoord(-12.2064, -1117.876, 7.0705)
118@ = 0
119@ = 0
set_lvar_text_label 168@s = 'MAN5_AA'
set_lvar_int_to_constant 120@ = 13419
set_lvar_int_to_var_int 144@ = $scplayer
set_lvar_text_label 170@s = 'MAN5_AB'
set_lvar_int_to_constant 121@ = 13420
set_lvar_int_to_var_int 145@ = $scplayer
set_lvar_text_label 172@s = 'MAN5_AC'
set_lvar_int_to_constant 122@ = 13400
set_lvar_int_to_lvar_int 146@ = 34@
set_lvar_text_label 174@s = 'MAN5_BA'
set_lvar_int_to_constant 123@ = 13401
set_lvar_int_to_lvar_int 147@ = 34@
set_lvar_text_label 176@s = 'MAN5_BB'
set_lvar_int_to_constant 124@ = 13421
set_lvar_int_to_var_int 148@ = $scplayer
set_lvar_text_label 178@s = 'MAN5_BC'
set_lvar_int_to_constant 125@ = 13402
set_lvar_int_to_lvar_int 149@ = 34@
set_lvar_text_label 180@s = 'MAN5_BD'
set_lvar_int_to_constant 126@ = 13426
set_lvar_int_to_var_int 150@ = $scplayer
set_lvar_text_label 182@s = 'MAN5_BE'
set_lvar_int_to_constant 127@ = 13427
set_lvar_int_to_var_int 151@ = $scplayer
set_lvar_text_label 184@s = 'MAN5_BF'
set_lvar_int_to_constant 128@ = 13428
set_lvar_int_to_var_int 152@ = $scplayer
set_lvar_text_label 186@s = 'MAN5_BG'
set_lvar_int_to_constant 129@ = 13403
set_lvar_int_to_lvar_int 153@ = 34@
set_lvar_text_label 188@s = 'MAN5_BH'
set_lvar_int_to_constant 130@ = 13429
set_lvar_int_to_var_int 154@ = $scplayer
set_lvar_text_label 190@s = 'MAN5_BJ'
set_lvar_int_to_constant 131@ = 13430
set_lvar_int_to_var_int 155@ = $scplayer
set_lvar_text_label 192@s = 'MAN5_BK'
set_lvar_int_to_constant 132@ = 13431
set_lvar_int_to_var_int 156@ = $scplayer
set_lvar_text_label 194@s = 'MAN5_BL'
set_lvar_int_to_constant 133@ = 13432
set_lvar_int_to_var_int 157@ = $scplayer
set_lvar_text_label 196@s = 'MAN5_BM'
set_lvar_int_to_constant 134@ = 13433
set_lvar_int_to_var_int 158@ = $scplayer
set_lvar_text_label 198@s = 'MAN5_BN'
set_lvar_int_to_constant 135@ = 13404
set_lvar_int_to_lvar_int 159@ = 34@
set_lvar_text_label 200@s = 'MAN5_CA'
set_lvar_int_to_constant 136@ = 13422
set_lvar_int_to_var_int 160@ = $scplayer
set_lvar_text_label 202@s = 'MAN5_CB'
set_lvar_int_to_constant 137@ = 13423
set_lvar_int_to_var_int 161@ = $scplayer
set_lvar_text_label 204@s = 'MAN5_DA'
set_lvar_int_to_constant 138@ = 13406
set_lvar_int_to_lvar_int 162@ = 34@
set_lvar_text_label 206@s = 'MAN5_DB'
set_lvar_int_to_constant 139@ = 13407
set_lvar_int_to_lvar_int 163@ = 34@
set_lvar_text_label 208@s = 'MAN5_DC'
set_lvar_int_to_constant 140@ = 13408
set_lvar_int_to_lvar_int 164@ = 34@
set_lvar_text_label 210@s = 'MAN5_DD'
set_lvar_int_to_constant 141@ = 13409
set_lvar_int_to_lvar_int 165@ = 34@
set_lvar_text_label 212@s = 'MAN5_EA'
set_lvar_int_to_constant 142@ = 13424
set_lvar_int_to_var_int 166@ = $scplayer
set_lvar_text_label 214@s = 'MAN5_EB'
set_lvar_int_to_constant 143@ = 13425
set_lvar_int_to_var_int 167@ = $scplayer
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.DoFade(0, Fade.In)
68@ = 0
47@ = 0
69@ = 0
54@ = 0
TIMERB = 0
Text.PrintNow('MAN5_G0', 7500, 1)

:MANSON5_1350
wait 0
if 
  not Char.IsDead(34@)
goto_if_false @MANSON5_1966
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @MANSON5_1399
goto @MANSON5_12906
goto @MANSON5_1477

:MANSON5_1399
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @MANSON5_1477
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSON5_1477
67@ = Char.GetCarIsUsing($scplayer)
if 
  Char.IsInCar(34@, 67@)
goto_if_false @MANSON5_1477
Car.SetCoordinates(67@, -127.1875, -1260.738, 2.0469)

:MANSON5_1477
if 
  Char.LocateAnyMeans2D($scplayer, -12.2064, -1117.876, 60.0, 60.0, False)
goto_if_false @MANSON5_1851
$x, $y, $z = Char.GetCoordinates(34@)
$distance = Math.GetDistanceBetweenCoords2D(-12.2064, -1117.876, $x, $y)
if 
  75.0 > $distance
goto_if_false @MANSON5_1812
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Car.MarkAsNoLongerNeeded(45@)
Streaming.MarkModelAsNoLongerNeeded(424)
Streaming.MarkModelAsNoLongerNeeded(471)
Camera.DoFade(0, Fade.Out)

:MANSON5_1596
if 
  Camera.GetFadingStatus
goto_if_false @MANSON5_1620
wait 0
goto @MANSON5_1596

:MANSON5_1620
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSON5_1674
Char.WarpFromCarToCoord($scplayer, -13.4832, -1139.642, 7.0664)
goto @MANSON5_1694

:MANSON5_1674
Char.SetCoordinates($scplayer, -13.4832, -1139.642, 7.0664)

:MANSON5_1694
Char.SetHeading($scplayer, 347.9809)
if 
  not Char.IsDead(34@)
goto_if_false @MANSON5_1798
Char.RemoveFromGroup(34@)
if 
  Char.IsInAnyCar(34@)
goto_if_false @MANSON5_1768
Char.WarpFromCarToCoord(34@, -11.4883, -1140.971, 6.8764)
goto @MANSON5_1788

:MANSON5_1768
Char.SetCoordinates(34@, -11.4883, -1140.971, 6.8764)

:MANSON5_1788
Char.SetHeading(34@, 359.6364)

:MANSON5_1798
goto @MANSON5_3411
goto @MANSON5_1844

:MANSON5_1812
if 
  2 > 68@
goto_if_false @MANSON5_1837
68@ = 2

:MANSON5_1837
gosub @MANSON5_2222

:MANSON5_1844
goto @MANSON5_1905

:MANSON5_1851
gosub @MANSON5_2001
gosub @MANSON5_2222
gosub @MANSON5_2493
gosub @MANSON5_2612
if 
  TIMERB > 8000
goto_if_false @MANSON5_1905
gosub @MANSON5_11710

:MANSON5_1905
65@ = Streaming.GetAreaVisible()
if 
  65@ <> 0
goto_if_false @MANSON5_1959
Text.ClearPrints
Char.FreezePosition(34@, True)
Blip.Remove(50@)
Blip.Remove(37@)
Char.RemoveFromGroup(34@)
goto @MANSON5_3252

:MANSON5_1959
goto @MANSON5_1994

:MANSON5_1966
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F0'
goto @MANSON5_13113

:MANSON5_1994
goto @MANSON5_1350

:MANSON5_2001
switch_start 66@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSON5_2220 {caseNum1} 0 {caseLabel1} @MANSON5_2064 {caseNum2} 1 {caseLabel2} @MANSON5_2166 {caseNum3} -1 {caseLabel3} @MANSON5_2220 {caseNum4} -1 {caseLabel4} @MANSON5_2220 {caseNum5} -1 {caseLabel5} @MANSON5_2220 {caseNum6} -1 {caseLabel6} @MANSON5_2220 {caseNum7} -1 {caseLabel7} @MANSON5_2220

:MANSON5_2064
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSON5_2159
67@ = Char.GetCarIsUsing($scplayer)
if 
  Char.IsInCar(34@, 67@)
goto_if_false @MANSON5_2159
if 
  $m3_sweets_health == 1
goto_if_false @MANSON5_2147
Skip.SetUp(-126.6673, -1260.804, 2.0469, 280.0)

:MANSON5_2147
Blip.Remove(37@)
66@ += 1

:MANSON5_2159
goto @MANSON5_2220

:MANSON5_2166
if 
  not Char.IsInAnyCar(34@)
goto_if_false @MANSON5_2213
Skip.Clear
37@ = Blip.AddForChar(34@)
Blip.SetAsFriendly(37@, True)
Blip.ChangeDisplay(37@, BlipDisplay.BlipOnly)
66@ -= 1

:MANSON5_2213
goto @MANSON5_2220

:MANSON5_2220
return 

:MANSON5_2222
switch_start 68@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSON5_2491 {caseNum1} 0 {caseLabel1} @MANSON5_2285 {caseNum2} 1 {caseLabel2} @MANSON5_2388 {caseNum3} 2 {caseLabel3} @MANSON5_2421 {caseNum4} 3 {caseLabel4} @MANSON5_2458 {caseNum5} -1 {caseLabel5} @MANSON5_2491 {caseNum6} -1 {caseLabel6} @MANSON5_2491 {caseNum7} -1 {caseLabel7} @MANSON5_2491

:MANSON5_2285
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
$x, $y, $z = Char.GetCoordinates(34@)
$distance = Math.GetDistanceBetweenCoords2D($player_x, $player_y, $x, $y)
if 
  $distance > 75.0
goto_if_false @MANSON5_2381
Text.PrintNow('MAN5_G1', 8000, 1)
TIMERA = 0
68@ += 1

:MANSON5_2381
goto @MANSON5_2491

:MANSON5_2388
if 
  TIMERA > 20000
goto_if_false @MANSON5_2414
68@ -= 1

:MANSON5_2414
goto @MANSON5_2491

:MANSON5_2421
Text.PrintNow('MAN5_G2', 8000, 1)
TIMERA = 0
68@ += 1
goto @MANSON5_2491

:MANSON5_2458
if 
  TIMERA > 20000
goto_if_false @MANSON5_2484
68@ = 0

:MANSON5_2484
goto @MANSON5_2491

:MANSON5_2491
return 

:MANSON5_2493
if 
  47@ == 0
goto_if_false @MANSON5_2610
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if 
  not Car.IsDead(45@)
goto_if_false @MANSON5_2610
$x, $y, $z = Car.GetCoordinates(45@)
$distance = Math.GetDistanceBetweenCoords2D($player_x, $player_y, $x, $y)
if 
  $distance > 150.0
goto_if_false @MANSON5_2610
Car.MarkAsNoLongerNeeded(45@)
Streaming.MarkModelAsNoLongerNeeded(424)
47@ += 1

:MANSON5_2610
return 

:MANSON5_2612
switch_start 69@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSON5_3250 {caseNum1} 0 {caseLabel1} @MANSON5_2675 {caseNum2} 1 {caseLabel2} @MANSON5_2755 {caseNum3} 2 {caseLabel3} @MANSON5_2806 {caseNum4} -1 {caseLabel4} @MANSON5_3250 {caseNum5} -1 {caseLabel5} @MANSON5_3250 {caseNum6} -1 {caseLabel6} @MANSON5_3250 {caseNum7} -1 {caseLabel7} @MANSON5_3250

:MANSON5_2675
if 
  Char.LocateAnyMeans2D($scplayer, -12.2064, -1117.876, 250.0, 250.0, False)
goto_if_false @MANSON5_2748
Streaming.LoadSpecialCharacter(2, 'OGLOC')
Streaming.RequestModel(219)
Streaming.RequestModel(582)
Streaming.RequestModel(539)
69@ += 1

:MANSON5_2748
goto @MANSON5_3250

:MANSON5_2755
if or
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasModelLoaded(219)
  not Streaming.HasModelLoaded(582)
  not Streaming.HasModelLoaded(539)
goto_if_false @MANSON5_2799
goto @MANSON5_3250
goto @MANSON5_2806

:MANSON5_2799
69@ += 1

:MANSON5_2806
if 
  Char.LocateAnyMeans2D($scplayer, -12.2064, -1117.876, 150.0, 150.0, False)
goto_if_false @MANSON5_3243
35@ = Char.Create(PedType.Special, 291, -6.499, -1109.111, 6.5441)
Char.SetHeading(35@, 333.1959)
Char.FreezePosition(35@, True)
Char.SetProofs(35@, True, True, True, True, True)
Char.SetDecisionMaker(35@, 52@)
Char.SetNeverTargeted(35@, True)
Char.SetCantBeDraggedOut(35@, True)
73@ = Char.Create(PedType.Mission1, 219, -7.174, -1108.2, 6.4475)
Char.SetHeading(73@, 210.4687)
Char.FreezePosition(73@, True)
Char.SetProofs(73@, True, True, True, True, True)
74@ = Car.Create(582, -12.3019, -1108.927, 6.837)
Car.SetHeading(74@, 153.1079)
Car.FreezePosition(74@, True)
Car.ChangeColor(74@, 1, 1)
Car.SetProofs(74@, True, True, True, True, True)
39@ = Car.Create(539, -7.4398, -1116.85, 7.0583)
Car.SetHeading(39@, 278.5895)
Car.FreezePosition(39@, True)
Car.ChangeColor(39@, 1, 1)
Car.SetProofs(39@, True, True, True, True, True)
40@ = Car.Create(539, -4.862, -1120.453, 7.0799)
Car.SetHeading(40@, 266.0038)
Car.FreezePosition(40@, True)
Car.ChangeColor(40@, 1, 1)
Car.SetProofs(40@, True, True, True, True, True)
41@ = Car.Create(539, -7.0309, -1111.909, 6.726)
Car.SetHeading(41@, 269.4002)
Car.FreezePosition(41@, True)
Car.ChangeColor(41@, 8, 0)
Car.SetProofs(41@, True, True, True, True, True)
69@ += 1

:MANSON5_3243
goto @MANSON5_3250

:MANSON5_3250
return 

:MANSON5_3252
wait 0
if 
  not Char.IsDead(34@)
goto_if_false @MANSON5_3376
65@ = Char.GetAreaVisible($scplayer)
if 
  65@ == 0
goto_if_false @MANSON5_3369
Char.FreezePosition(34@, False)
Char.SetNeverLeavesGroup(34@, True)
Group.SetMember(51@, 34@)
37@ = Blip.AddForChar(34@)
Blip.SetAsFriendly(37@, True)
Blip.ChangeDisplay(37@, BlipDisplay.BlipOnly)
50@ = Blip.AddForCoord(-12.2064, -1117.876, 7.0705)
goto @MANSON5_1350

:MANSON5_3369
goto @MANSON5_3404

:MANSON5_3376
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F0'
goto @MANSON5_13113

:MANSON5_3404
goto @MANSON5_3252

:MANSON5_3411
if 
  3 > 69@
goto_if_false @MANSON5_3447
wait 0
gosub @MANSON5_2612
goto @MANSON5_3411

:MANSON5_3447
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Car.Delete(45@)
Streaming.RequestModel(484)
Streaming.RequestModel(453)
Streaming.RequestModel(#WATERJUMPX2)
Streaming.RequestCarRecording(700)
Streaming.RequestCarRecording(701)

:MANSON5_3487
if or
  not Streaming.HasModelLoaded(484)
  not Streaming.HasModelLoaded(453)
  not Streaming.HasModelLoaded(#WATERJUMPX2)
  not Streaming.HasCarRecordingBeenLoaded(700)
  not Streaming.HasCarRecordingBeenLoaded(701)
goto_if_false @MANSON5_3534
wait 0
goto @MANSON5_3487

:MANSON5_3534
if 
  not Char.IsDead(35@)
goto_if_false @MANSON5_3557
Char.FreezePosition(35@, False)

:MANSON5_3557
if 
  not Char.IsDead(73@)
goto_if_false @MANSON5_3580
Char.FreezePosition(73@, False)

:MANSON5_3580
if 
  not Car.IsDead(74@)
goto_if_false @MANSON5_3603
Car.FreezePosition(74@, False)

:MANSON5_3603
if 
  not Car.IsDead(39@)
goto_if_false @MANSON5_3626
Car.FreezePosition(39@, False)

:MANSON5_3626
if 
  not Car.IsDead(40@)
goto_if_false @MANSON5_3649
Car.FreezePosition(40@, False)

:MANSON5_3649
if 
  not Car.IsDead(41@)
goto_if_false @MANSON5_3672
Car.FreezePosition(41@, False)

:MANSON5_3672
if 
  $m3_sweets_health == 0
goto_if_false @MANSON5_3697
$m3_sweets_health += 1

:MANSON5_3697
Camera.SetFixedPosition(-5.0753, -1108.265, 7.9567, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-6.004, -1108.63, 7.8925, SwitchType.JumpCut)
53@ = 0
World.ClearArea(-12.3019, -1108.927, 6.837, 500.0, True)
Skip.Clear
118@ = 6
119@ = 18
Camera.DoFade(0, Fade.In)
skip_cutscene_start_internal @MANSON5_4643
TIMERA = 0

:MANSON5_3815
if 
  2000 > TIMERA
goto_if_false @MANSON5_3852
wait 0
gosub @MANSON5_11710
goto @MANSON5_3815

:MANSON5_3852
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.SetVectorTrack(-6.004, -1108.63, 7.8925, -5.5642, -1108.835, 7.8925, 2000, True)
if and
  not Char.IsDead(35@)
  not Char.IsDead(34@)
  not Char.IsDead(73@)
goto_if_false @MANSON5_3937
Task.TurnCharToFaceChar(35@, 34@)
Task.TurnCharToFaceChar(73@, 34@)

:MANSON5_3937
TIMERA = 0

:MANSON5_3944
if 
  1800 > TIMERA
goto_if_false @MANSON5_3981
wait 0
gosub @MANSON5_11710
goto @MANSON5_3944

:MANSON5_3981
if 
  not Car.IsDead(39@)
goto_if_false @MANSON5_4052
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, -8.0333, -1118.52, 7.0531, MoveState.Run, -2)
Task.EnterCarAsDriver(-1, 39@, -2)
Sequence.Close(49@)
Char.PerformSequence($scplayer, 49@)
Sequence.Clear(49@)

:MANSON5_4052
if and
  not Char.IsDead(34@)
  not Car.IsDead(40@)
goto_if_false @MANSON5_4128
49@ = Sequence.Open()
Task.GoStraightToCoord(-1, -4.9313, -1122.054, 7.0188, MoveState.Run, -2)
Task.EnterCarAsDriver(-1, 40@, -2)
Sequence.Close(49@)
Char.PerformSequence(34@, 49@)
Sequence.Clear(49@)

:MANSON5_4128
TIMERA = 0

:MANSON5_4135
if 
  250 > TIMERA
goto_if_false @MANSON5_4172
wait 0
gosub @MANSON5_11710
goto @MANSON5_4135

:MANSON5_4172
if and
  not Char.IsDead(35@)
  not Car.IsDead(41@)
goto_if_false @MANSON5_4203
Task.EnterCarAsDriver(35@, 41@, -2)

:MANSON5_4203
48@ = 0

:MANSON5_4210
if 
  48@ == 0
goto_if_false @MANSON5_4303
wait 0
if and
  not Char.IsDead(35@)
  not Car.IsDead(41@)
goto_if_false @MANSON5_4289
if 
  Char.IsInCar(35@, 41@)
goto_if_false @MANSON5_4289
48@ = 1
Car.SetForwardSpeed(41@, 8.0)

:MANSON5_4289
gosub @MANSON5_11710
goto @MANSON5_4210

:MANSON5_4303
55@, 56@, 57@ = Camera.GetActiveCoordinates()
58@, 59@, 60@ = Camera.GetActivePointAt()
Camera.ResetNewScriptables
Camera.SetFixedPosition(55@, 56@, 57@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(58@, 59@, 60@, SwitchType.JumpCut)
TIMERA = 0
TIMERB = 0
48@ = 0

:MANSON5_4387
if 
  4500 > TIMERA
goto_if_false @MANSON5_4592
wait 0
55@ += 0.0085
56@ -= 0.05
58@ += 0.0085
59@ -= 0.05
Camera.SetFixedPosition(55@, 56@, 57@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(58@, 59@, 60@, SwitchType.JumpCut)
if and
  TIMERB > 800
  48@ == 0
goto_if_false @MANSON5_4578
if 
  not Car.IsDead(41@)
goto_if_false @MANSON5_4578
Car.SetForwardSpeed(41@, 0.0)
Car.SetCoordinates(41@, -15.191, -1107.97, 7.0385)
Car.SetHeading(41@, 345.91)
48@ += 1

:MANSON5_4578
gosub @MANSON5_11710
goto @MANSON5_4387

:MANSON5_4592
TIMERA = 0

:MANSON5_4599
if 
  1800 > TIMERA
goto_if_false @MANSON5_4636
wait 0
gosub @MANSON5_11710
goto @MANSON5_4599

:MANSON5_4636
53@ = 1

:MANSON5_4643
skip_cutscene_end 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
set_lvar_text_label 168@s = 'MAN5_FA'
set_lvar_int_to_constant 120@ = 13410
set_lvar_text_label 170@s = 'MAN5_FB'
set_lvar_int_to_constant 121@ = 13411
set_lvar_text_label 172@s = 'MAN5_FC'
set_lvar_int_to_constant 122@ = 13412
set_lvar_text_label 174@s = 'MAN5_FD'
set_lvar_int_to_constant 123@ = 13413
set_lvar_text_label 176@s = 'MAN5_FE'
set_lvar_int_to_constant 124@ = 13414
set_lvar_text_label 178@s = 'MAN5_FF'
set_lvar_int_to_constant 125@ = 13415
set_lvar_text_label 180@s = 'MAN5_FG'
set_lvar_int_to_constant 126@ = 13416
set_lvar_text_label 182@s = 'MAN5_FH'
set_lvar_int_to_constant 127@ = 13417
set_lvar_text_label 184@s = 'MAN5_FJ'
set_lvar_int_to_constant 128@ = 13418
118@ = 8
119@ = 0
if 
  53@ == 0
goto_if_false @MANSON5_5056
Camera.DoFade(0, Fade.Out)
if and
  not Char.IsDead(35@)
  not Car.IsDead(41@)
goto_if_false @MANSON5_4942
if 
  not Char.IsInCar(35@, 41@)
goto_if_false @MANSON5_4942
Char.ClearTasks(35@)
Char.WarpIntoCar(35@, 41@)

:MANSON5_4942
if and
  not Char.IsDead(34@)
  not Car.IsDead(40@)
goto_if_false @MANSON5_4995
if 
  not Char.IsInCar(34@, 40@)
goto_if_false @MANSON5_4995
Char.ClearTasks(34@)
Char.WarpIntoCar(34@, 40@)

:MANSON5_4995
if and
  not Char.IsDead($scplayer)
  not Car.IsDead(39@)
goto_if_false @MANSON5_5048
if 
  not Char.IsInCar($scplayer, 39@)
goto_if_false @MANSON5_5048
Char.ClearTasks($scplayer)
Char.WarpIntoCar($scplayer, 39@)

:MANSON5_5048
Camera.ResetNewScriptables
Camera.DoFade(0, Fade.In)

:MANSON5_5056
Text.PrintNow('MAN5_G4', 8000, 1)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
if 
  not Char.IsDead(73@)
goto_if_false @MANSON5_5130
Char.FreezePosition(73@, False)
Char.SetProofs(73@, False, False, False, False, False)
Char.MarkAsNoLongerNeeded(73@)

:MANSON5_5130
if 
  not Car.IsDead(74@)
goto_if_false @MANSON5_5173
Car.FreezePosition(74@, False)
Car.SetProofs(74@, False, False, False, False, False)
Car.MarkAsNoLongerNeeded(74@)

:MANSON5_5173
Streaming.MarkModelAsNoLongerNeeded(219)
Streaming.MarkModelAsNoLongerNeeded(582)
if and
  not Car.IsDead(41@)
  not Car.IsDead(40@)
goto_if_false @MANSON5_5285
Car.SetProofs(41@, False, False, False, True, False)
Car.SetProofs(40@, False, False, False, True, False)
World.SyncWater
Car.StartPlayback(41@, 700)
Car.StartPlayback(40@, 701)
Blip.Remove(50@)
Blip.Remove(37@)
38@ = Blip.AddForCar(41@)
37@ = Blip.AddForCar(40@)
Blip.SetAsFriendly(37@, True)

:MANSON5_5285
if and
  not Char.IsDead(35@)
  not Char.IsDead(34@)
  not Car.IsDead(39@)
goto_if_false @MANSON5_5356
Char.SetProofs(35@, False, False, False, True, False)
Char.SetProofs(34@, False, False, False, True, False)
Car.SetProofs(39@, False, False, False, False, False)

:MANSON5_5356
75@ = Car.Create(484, 64.6248, -1577.02, 1.0)
Car.SetHeading(75@, 120.3362)
Boat.Anchor(75@, True)
76@ = Car.Create(484, 33.6099, -1568.462, 1.0)
Car.SetHeading(76@, 284.2679)
Boat.Anchor(76@, True)
77@ = Car.Create(453, 44.502, -1623.984, 1.0)
Car.SetHeading(77@, 75.0)
Boat.Anchor(77@, True)
78@ = Car.Create(484, 27.4441, -1654.804, 1.0)
Car.SetHeading(78@, 60.0)
Boat.Anchor(78@, True)
79@ = Car.Create(484, 65.1404, -1664.87, 1.0)
Car.SetHeading(79@, 95.0)
Boat.Anchor(79@, True)
80@ = Car.Create(453, 53.4007, -1694.957, 1.0)
Car.SetHeading(80@, 231.9938)
Boat.Anchor(80@, True)
81@ = Car.Create(453, 33.4799, -1697.462, 1.0)
Car.SetHeading(81@, 106.8489)
Boat.Anchor(81@, True)
82@ = Car.Create(484, 57.1376, -1767.301, 1.0)
Car.SetHeading(82@, 286.5185)
Boat.Anchor(82@, True)
83@ = Object.CreateNoOffset(#WATERJUMPX2, 137.9184, -1895.06, 0.9)
Object.SetHeading(83@, 235.0)
95@ = 0
97@ = 0
TIMERA = 0

:MANSON5_5730
wait 0
if 
  not Char.IsDead(34@)
goto_if_false @MANSON5_5978
if 
  not Char.IsDead(35@)
goto_if_false @MANSON5_5943
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
gosub @MANSON5_8993
gosub @MANSON5_9399
$x, $y, $z = Char.GetCoordinates(35@)
$distance = Math.GetDistanceBetweenCoords2D($x, $y, $player_x, $player_y)
if 
  $distance >= 240.0
goto_if_false @MANSON5_5874
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F2'
goto @MANSON5_13113

:MANSON5_5874
if 
  Char.IsInArea3D($scplayer, 820.3243, -1918.42, 11.8624, 852.5646, -1894.725, 13.0, False)
goto_if_false @MANSON5_5929
goto @MANSON5_6013

:MANSON5_5929
gosub @MANSON5_11710
goto @MANSON5_5971

:MANSON5_5943
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F3'
goto @MANSON5_13113

:MANSON5_5971
goto @MANSON5_6006

:MANSON5_5978
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F0'
goto @MANSON5_13113

:MANSON5_6006
goto @MANSON5_5730

:MANSON5_6013
Camera.DoFade(0, Fade.Out)
Audio.SetRadioChannel(RadioChannel.UserTracks)
World.SetPedDensityMultiplier(0.3)
if 
  not Car.IsDead(39@)
goto_if_false @MANSON5_6094
Car.SetHealth(39@, 2000)
Car.SetForwardSpeed(39@, 0.0)
Car.SetCoordinates(39@, 824.9831, -1843.146, 11.6654)
Car.SetHeading(39@, 192.0245)

:MANSON5_6094
if 
  not Car.IsDead(40@)
goto_if_false @MANSON5_6176
if 
  Car.IsPlaybackGoingOn(40@)
goto_if_false @MANSON5_6131
Car.StopPlayback(40@)

:MANSON5_6131
Car.SetForwardSpeed(40@, 0.0)
Car.SetCoordinates(40@, 846.0862, -1842.421, 11.6367)
Car.SetHeading(40@, 170.999)
Blip.Remove(37@)

:MANSON5_6176
if 
  not Car.IsDead(41@)
goto_if_false @MANSON5_6258
if 
  Car.IsPlaybackGoingOn(41@)
goto_if_false @MANSON5_6213
Car.StopPlayback(41@)

:MANSON5_6213
Car.SetForwardSpeed(41@, 0.0)
Car.SetCoordinates(41@, 832.5709, -2045.707, 11.8672)
Car.SetHeading(41@, 180.0)
Blip.Remove(38@)

:MANSON5_6258
Char.MarkAsNoLongerNeeded(73@)
48@ = 0

:MANSON5_6270
if 
  8 > 48@
goto_if_false @MANSON5_6311
Car.MarkAsNoLongerNeeded(75@(48@,8i))
48@ += 1
goto @MANSON5_6270

:MANSON5_6311
Object.MarkAsNoLongerNeeded(83@)
Streaming.MarkModelAsNoLongerNeeded(484)
Streaming.MarkModelAsNoLongerNeeded(453)
Streaming.MarkModelAsNoLongerNeeded(#WATERJUMPX2)
Streaming.RemoveCarRecording(700)
Streaming.RemoveCarRecording(701)
Streaming.RequestModel(571)
Streaming.RequestCarRecording(702)
Streaming.RequestCarRecording(703)
Streaming.RequestCarRecording(704)
Streaming.RequestCarRecording(705)

:MANSON5_6366
if or
  not Streaming.HasModelLoaded(571)
  not Streaming.HasCarRecordingBeenLoaded(702)
  not Streaming.HasCarRecordingBeenLoaded(703)
  not Streaming.HasCarRecordingBeenLoaded(704)
  not Streaming.HasCarRecordingBeenLoaded(705)
goto_if_false @MANSON5_6413
wait 0
goto @MANSON5_6366

:MANSON5_6413
42@ = Car.Create(571, 832.4061, -2046.025, 11.8672)
Car.SetHeading(42@, 343.6256)
43@ = Car.Create(571, 835.5082, -2047.978, 11.8672)
Car.SetHeading(43@, 0.0)
44@ = Car.Create(571, 839.2866, -2050.322, 11.8672)
Car.SetHeading(44@, 21.8433)
Car.FreezePosition(44@, True)
103@ = 15.0
104@ = 10.0
102@ = 15.0
105@ = 835.5082
106@ = -2047.978
107@ = 11.8672
gosub @MANSON5_10491
if 
  not Car.IsDead(41@)
goto_if_false @MANSON5_6626
if 
  not Car.IsPlaybackGoingOn(41@)
goto_if_false @MANSON5_6626
Car.StartPlayback(41@, 702)

:MANSON5_6626
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.In)
TIMERA = 0

:MANSON5_6650
if 
  1000 > TIMERA
goto_if_false @MANSON5_6687
wait 0
gosub @MANSON5_10491
goto @MANSON5_6650

:MANSON5_6687
53@ = 0
skip_cutscene_start_internal @MANSON5_7376
TIMERA = 0

:MANSON5_6708
if 
  3400 > TIMERA
goto_if_false @MANSON5_6745
wait 0
gosub @MANSON5_10491
goto @MANSON5_6708

:MANSON5_6745
if 
  not Car.IsDead(39@)
goto_if_false @MANSON5_6791
Car.SetCoordinates(39@, 827.2987, -2036.851, 11.8672)
Car.SetHeading(39@, 176.431)

:MANSON5_6791
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSON5_6834
Char.WarpFromCarToCoord($scplayer, 828.7999, -2036.757, 11.8672)
goto @MANSON5_6854

:MANSON5_6834
Char.SetCoordinates($scplayer, 828.7999, -2036.757, 11.8672)

:MANSON5_6854
Char.SetHeading($scplayer, 129.8786)
if 
  not Car.IsDead(40@)
goto_if_false @MANSON5_6910
Car.SetCoordinates(40@, 846.0646, -2039.737, 11.8672)
Car.SetHeading(40@, 162.7406)

:MANSON5_6910
if 
  not Char.IsDead(34@)
goto_if_false @MANSON5_6999
if 
  Char.IsInAnyCar(34@)
goto_if_false @MANSON5_6969
Char.WarpFromCarToCoord(34@, 844.8756, -2038.455, 11.8672)
goto @MANSON5_6989

:MANSON5_6969
Char.SetCoordinates(34@, 844.8756, -2038.455, 11.8672)

:MANSON5_6989
Char.SetHeading(34@, 132.7607)

:MANSON5_6999
48@ = 0

:MANSON5_7006
if 
  48@ == 0
goto_if_false @MANSON5_7081
wait 0
if 
  not Car.IsDead(41@)
goto_if_false @MANSON5_7067
if 
  not Car.IsPlaybackGoingOn(41@)
goto_if_false @MANSON5_7067
48@ = 1

:MANSON5_7067
gosub @MANSON5_10491
goto @MANSON5_7006

:MANSON5_7081
if and
  not Char.IsDead(35@)
  not Car.IsDead(44@)
goto_if_false @MANSON5_7138
49@ = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.EnterCarAsDriver(-1, 44@, -2)
Sequence.Close(49@)
Char.PerformSequence(35@, 49@)
Sequence.Clear(49@)

:MANSON5_7138
48@ = 0

:MANSON5_7145
if 
  48@ == 0
goto_if_false @MANSON5_7228
wait 0
if and
  not Char.IsDead(35@)
  not Car.IsDead(44@)
goto_if_false @MANSON5_7214
if 
  Char.IsInCar(35@, 44@)
goto_if_false @MANSON5_7214
48@ = 1

:MANSON5_7214
gosub @MANSON5_10491
goto @MANSON5_7145

:MANSON5_7228
if 
  not Car.IsDead(44@)
goto_if_false @MANSON5_7268
if 
  not Car.IsPlaybackGoingOn(44@)
goto_if_false @MANSON5_7268
Car.StartPlayback(44@, 703)

:MANSON5_7268
if 
  not Car.IsDead(42@)
goto_if_false @MANSON5_7294
Task.EnterCarAsDriver($scplayer, 42@, -2)

:MANSON5_7294
if and
  not Char.IsDead(34@)
  not Car.IsDead(43@)
goto_if_false @MANSON5_7325
Task.EnterCarAsDriver(34@, 43@, -2)

:MANSON5_7325
TIMERA = 0

:MANSON5_7332
if 
  4500 > TIMERA
goto_if_false @MANSON5_7369
wait 0
gosub @MANSON5_10491
goto @MANSON5_7332

:MANSON5_7369
53@ = 1

:MANSON5_7376
skip_cutscene_end 
if 
  53@ == 0
goto_if_false @MANSON5_7402
Camera.DoFade(0, Fade.Out)

:MANSON5_7402
if 
  not Car.IsDead(42@)
goto_if_false @MANSON5_7481
if 
  not Char.IsInCar($scplayer, 42@)
goto_if_false @MANSON5_7481
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSON5_7473
Char.WarpFromCarToCoord($scplayer, 0.0, 0.0, 0.0)

:MANSON5_7473
Char.WarpIntoCar($scplayer, 42@)

:MANSON5_7481
if 
  not Car.IsDead(39@)
goto_if_false @MANSON5_7527
Car.SetCoordinates(39@, 827.2987, -2036.851, 11.8672)
Car.SetHeading(39@, 176.431)

:MANSON5_7527
if and
  not Char.IsDead(34@)
  not Car.IsDead(43@)
goto_if_false @MANSON5_7611
if 
  not Char.IsInCar(34@, 43@)
goto_if_false @MANSON5_7611
if 
  Char.IsInAnyCar(34@)
goto_if_false @MANSON5_7603
Char.WarpFromCarToCoord(34@, 0.0, 0.0, 0.0)

:MANSON5_7603
Char.WarpIntoCar(34@, 43@)

:MANSON5_7611
if 
  not Car.IsDead(40@)
goto_if_false @MANSON5_7657
Car.SetCoordinates(40@, 846.0646, -2039.737, 11.8672)
Car.SetHeading(40@, 162.7406)

:MANSON5_7657
if and
  not Char.IsDead(35@)
  not Car.IsDead(44@)
goto_if_false @MANSON5_7748
Car.FreezePosition(44@, False)
if 
  not Char.IsInCar(35@, 44@)
goto_if_false @MANSON5_7748
if 
  Char.IsInAnyCar(35@)
goto_if_false @MANSON5_7740
Char.WarpFromCarToCoord(35@, 0.0, 0.0, 0.0)

:MANSON5_7740
Char.WarpIntoCar(35@, 44@)

:MANSON5_7748
if 
  not Car.IsDead(41@)
goto_if_false @MANSON5_7785
if 
  Car.IsPlaybackGoingOn(41@)
goto_if_false @MANSON5_7785
Car.SkipToEndAndStopPlayback(41@)

:MANSON5_7785
95@ = 0
97@ = 0
94@ = 0.0
112@ = 0
117@ = 0
if 
  not Car.IsDead(44@)
goto_if_false @MANSON5_7876
if 
  Car.IsPlaybackGoingOn(44@)
goto_if_false @MANSON5_7860
Car.StopPlayback(44@)

:MANSON5_7860
Car.StartPlayback(44@, 704)
38@ = Blip.AddForCar(44@)

:MANSON5_7876
if 
  not Car.IsDead(43@)
goto_if_false @MANSON5_7931
if 
  not Car.IsPlaybackGoingOn(43@)
goto_if_false @MANSON5_7916
Car.StartPlayback(43@, 705)

:MANSON5_7916
37@ = Blip.AddForCar(43@)
Blip.SetAsFriendly(37@, True)

:MANSON5_7931
118@ = 10
119@ = 4
Camera.DoFade(0, Fade.In)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Text.PrintNow('MAN5_G5', 8000, 1)
TIMERA = 0

:MANSON5_7989
wait 0
if 
  not Char.IsDead(34@)
goto_if_false @MANSON5_8244
if 
  not Char.IsDead(35@)
goto_if_false @MANSON5_8209
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
gosub @MANSON5_9742
gosub @MANSON5_10148
gosub @MANSON5_10713
gosub @MANSON5_11446
if 
  54@ == 1
goto_if_false @MANSON5_8099
goto @MANSON5_8279
goto @MANSON5_8195

:MANSON5_8099
if 
  not Char.IsDead(35@)
goto_if_false @MANSON5_8195
$x, $y, $z = Char.GetCoordinates(35@)
$distance = Math.GetDistanceBetweenCoords2D($x, $y, $player_x, $player_y)
if 
  $distance >= 130.0
goto_if_false @MANSON5_8195
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F2'
goto @MANSON5_13113

:MANSON5_8195
gosub @MANSON5_11710
goto @MANSON5_8237

:MANSON5_8209
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F3'
goto @MANSON5_13113

:MANSON5_8237
goto @MANSON5_8272

:MANSON5_8244
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F0'
goto @MANSON5_13113

:MANSON5_8272
goto @MANSON5_7989

:MANSON5_8279
Camera.DoFade(0, Fade.Out)
Audio.SetRadioChannel(RadioChannel.UserTracks)
Blip.Remove(37@)
Blip.Remove(38@)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSON5_8333
84@ = Char.GetCarIsUsing($scplayer)
Car.SetForwardSpeed(84@, 0.0)

:MANSON5_8333
if 
  not Char.IsDead(34@)
goto_if_false @MANSON5_8359
Char.MarkAsNoLongerNeeded(34@)
Streaming.MarkModelAsNoLongerNeeded(183)

:MANSON5_8359
if 
  not Car.IsDead(43@)
goto_if_false @MANSON5_8401
if 
  Car.IsPlaybackGoingOn(43@)
goto_if_false @MANSON5_8396
Car.StopPlayback(43@)

:MANSON5_8396
Car.MarkAsNoLongerNeeded(43@)

:MANSON5_8401
Camera.SetFixedPosition(1045.371, -1221.84, 18.9362, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1046.241, -1221.447, 18.6378, SwitchType.JumpCut)
World.ClearAreaOfCars(1071.504, -1195.558, 18.6451, 1044.942, -1242.477, 14.9051)
if 
  not Car.IsDead(44@)
goto_if_false @MANSON5_8531
if 
  Car.IsPlaybackGoingOn(44@)
goto_if_false @MANSON5_8531
Car.UnpausePlayback(44@)
Car.SetPlaybackSpeed(44@, 1.0)

:MANSON5_8531
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.In)

:MANSON5_8549
if 
  Camera.GetFadingStatus
goto_if_false @MANSON5_8573
wait 0
goto @MANSON5_8549

:MANSON5_8573
skip_cutscene_start_internal @MANSON5_8669
48@ = 0

:MANSON5_8587
if 
  48@ == 0
goto_if_false @MANSON5_8669
wait 0
if 
  not Car.IsDead(44@)
goto_if_false @MANSON5_8655
if 
  not Car.IsPlaybackGoingOn(44@)
goto_if_false @MANSON5_8648
48@ = 1

:MANSON5_8648
goto @MANSON5_8662

:MANSON5_8655
48@ = 1

:MANSON5_8662
goto @MANSON5_8587

:MANSON5_8669
skip_cutscene_end 
Camera.DoFade(0, Fade.Out)

:MANSON5_8677
if 
  Camera.GetFadingStatus
goto_if_false @MANSON5_8701
wait 0
goto @MANSON5_8677

:MANSON5_8701
Streaming.SetAreaVisible(3)
Player.MakeSafeForCutscene($player1)
Streaming.Switch(False)
Cutscene.Load('BHILL5B')

:MANSON5_8725
if 
  not Cutscene.HasLoaded
goto_if_false @MANSON5_8749
wait 0
goto @MANSON5_8725

:MANSON5_8749
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:MANSON5_8758
if 
  not Cutscene.HasFinished
goto_if_false @MANSON5_8782
wait 0
goto @MANSON5_8758

:MANSON5_8782
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:MANSON5_8797
if 
  Camera.GetFadingStatus
goto_if_false @MANSON5_8821
wait 0
goto @MANSON5_8797

:MANSON5_8821
Streaming.SetAreaVisible(0)
Streaming.LoadScene(1180.732, -1159.114, 22.8578)
Streaming.RequestCollision(1180.732, -1159.114)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @MANSON5_8897
Char.WarpFromCarToCoord($scplayer, 1180.732, -1159.114, 22.8578)
goto @MANSON5_8917

:MANSON5_8897
Char.SetCoordinatesNoOffset($scplayer, 1180.732, -1159.114, 22.8578)

:MANSON5_8917
Char.SetHeading($scplayer, 25.4307)
TIMERA = 0

:MANSON5_8934
if 
  400 > TIMERA
goto_if_false @MANSON5_8964
wait 0
goto @MANSON5_8934

:MANSON5_8964
Camera.DoFade(500, Fade.In)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
goto @MANSON5_12906

:MANSON5_8993
if and
  not Car.IsDead(40@)
  not Char.IsDead(34@)
goto_if_false @MANSON5_9397
if 
  95@ == 0
goto_if_false @MANSON5_9397
if 
  Car.IsPlaybackGoingOn(40@)
goto_if_false @MANSON5_9380
if 
  Char.LocateInCarChar2D(34@, $scplayer, 6.0, 6.0, False)
goto_if_false @MANSON5_9096
96@ -= 0.2
goto @MANSON5_9296

:MANSON5_9096
85@, 86@, $z = Car.GetOffsetInWorldCoords(40@, 0.0, 4.0, 0.0)
87@, 88@, $z = Car.GetOffsetInWorldCoords(40@, 2.0, 2.0, 0.0)
89@, 90@, $z = Car.GetOffsetInWorldCoords(40@, -2.0, 2.0, 0.0)
91@ = Math.GetDistanceBetweenCoords2D(85@, 86@, $player_x, $player_y)
91@ *= 2.0
92@ = Math.GetDistanceBetweenCoords2D(87@, 88@, $player_x, $player_y)
93@ = Math.GetDistanceBetweenCoords2D(89@, 90@, $player_x, $player_y)
set_lvar_float_to_lvar_float 61@ = 91@
sub_float_lvar_from_float_lvar 61@ -= 92@
sub_float_lvar_from_float_lvar 61@ -= 93@
61@ /= 300.0
61@ *= -1.0
add_float_lvar_to_float_lvar 96@ += 61@

:MANSON5_9296
if 
  96@ > 1.0
goto_if_false @MANSON5_9334
96@ = 1.0
goto @MANSON5_9365

:MANSON5_9334
if 
  0.0 > 96@
goto_if_false @MANSON5_9365
96@ = 0.0

:MANSON5_9365
Car.SetPlaybackSpeed(40@, 96@)
goto @MANSON5_9397

:MANSON5_9380
Car.SetForwardSpeed(40@, 0.0)
95@ = -1

:MANSON5_9397
return 

:MANSON5_9399
if 
  not Car.IsDead(41@)
goto_if_false @MANSON5_9740
if 
  97@ == 0
goto_if_false @MANSON5_9740
if 
  Car.IsPlaybackGoingOn(41@)
goto_if_false @MANSON5_9723
85@, 86@, $z = Car.GetOffsetInWorldCoords(41@, 0.0, -18.0, 0.0)
87@, 88@, $z = Car.GetOffsetInWorldCoords(41@, 2.0, -11.0, 0.0)
89@, 90@, $z = Car.GetOffsetInWorldCoords(41@, -2.0, -11.0, 0.0)
91@ = Math.GetDistanceBetweenCoords2D(85@, 86@, $player_x, $player_y)
91@ *= 2.0
92@ = Math.GetDistanceBetweenCoords2D(87@, 88@, $player_x, $player_y)
93@ = Math.GetDistanceBetweenCoords2D(89@, 90@, $player_x, $player_y)
set_lvar_float_to_lvar_float 61@ = 91@
sub_float_lvar_from_float_lvar 61@ -= 92@
sub_float_lvar_from_float_lvar 61@ -= 93@
61@ /= 300.0
add_float_lvar_to_float_lvar 98@ += 61@
if 
  98@ > 1.4
goto_if_false @MANSON5_9677
98@ = 1.4
goto @MANSON5_9708

:MANSON5_9677
if 
  0.9 > 98@
goto_if_false @MANSON5_9708
98@ = 0.9

:MANSON5_9708
Car.SetPlaybackSpeed(41@, 98@)
goto @MANSON5_9740

:MANSON5_9723
Car.SetForwardSpeed(41@, 0.0)
97@ = -1

:MANSON5_9740
return 

:MANSON5_9742
if and
  not Car.IsDead(43@)
  not Char.IsDead(34@)
goto_if_false @MANSON5_10146
if 
  95@ == 0
goto_if_false @MANSON5_10146
if 
  Car.IsPlaybackGoingOn(43@)
goto_if_false @MANSON5_10129
if 
  Char.LocateInCarChar2D(34@, $scplayer, 6.0, 6.0, False)
goto_if_false @MANSON5_9845
96@ -= 0.2
goto @MANSON5_10045

:MANSON5_9845
85@, 86@, $z = Car.GetOffsetInWorldCoords(43@, 0.0, 4.0, 0.0)
87@, 88@, $z = Car.GetOffsetInWorldCoords(43@, 2.0, 2.0, 0.0)
89@, 90@, $z = Car.GetOffsetInWorldCoords(43@, -2.0, 2.0, 0.0)
91@ = Math.GetDistanceBetweenCoords2D(85@, 86@, $player_x, $player_y)
91@ *= 2.0
92@ = Math.GetDistanceBetweenCoords2D(87@, 88@, $player_x, $player_y)
93@ = Math.GetDistanceBetweenCoords2D(89@, 90@, $player_x, $player_y)
set_lvar_float_to_lvar_float 61@ = 91@
sub_float_lvar_from_float_lvar 61@ -= 92@
sub_float_lvar_from_float_lvar 61@ -= 93@
61@ /= 150.0
61@ *= -1.0
add_float_lvar_to_float_lvar 96@ += 61@

:MANSON5_10045
if 
  96@ > 1.05
goto_if_false @MANSON5_10083
96@ = 1.05
goto @MANSON5_10114

:MANSON5_10083
if 
  0.0 > 96@
goto_if_false @MANSON5_10114
96@ = 0.0

:MANSON5_10114
Car.SetPlaybackSpeed(43@, 96@)
goto @MANSON5_10146

:MANSON5_10129
Car.SetForwardSpeed(43@, 0.0)
95@ = -1

:MANSON5_10146
return 

:MANSON5_10148
if 
  not Car.IsDead(44@)
goto_if_false @MANSON5_10489
if 
  97@ == 0
goto_if_false @MANSON5_10489
if 
  Car.IsPlaybackGoingOn(44@)
goto_if_false @MANSON5_10472
85@, 86@, $z = Car.GetOffsetInWorldCoords(44@, 0.0, -18.0, 0.0)
87@, 88@, $z = Car.GetOffsetInWorldCoords(44@, 2.0, -11.0, 0.0)
89@, 90@, $z = Car.GetOffsetInWorldCoords(44@, -2.0, -11.0, 0.0)
91@ = Math.GetDistanceBetweenCoords2D(85@, 86@, $player_x, $player_y)
91@ *= 2.0
92@ = Math.GetDistanceBetweenCoords2D(87@, 88@, $player_x, $player_y)
93@ = Math.GetDistanceBetweenCoords2D(89@, 90@, $player_x, $player_y)
set_lvar_float_to_lvar_float 61@ = 91@
sub_float_lvar_from_float_lvar 61@ -= 92@
sub_float_lvar_from_float_lvar 61@ -= 93@
61@ /= 300.0
add_float_lvar_to_float_lvar 98@ += 61@
if 
  98@ > 1.2
goto_if_false @MANSON5_10426
98@ = 1.2
goto @MANSON5_10457

:MANSON5_10426
if 
  0.6 > 98@
goto_if_false @MANSON5_10457
98@ = 0.6

:MANSON5_10457
Car.SetPlaybackSpeed(44@, 98@)
goto @MANSON5_10489

:MANSON5_10472
Car.SetForwardSpeed(44@, 0.0)
44@ = -1

:MANSON5_10489
return 

:MANSON5_10491
switch_start 99@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @MANSON5_10592 {caseNum1} 0 {caseLabel1} @MANSON5_10554 {caseNum2} -1 {caseLabel2} @MANSON5_10592 {caseNum3} -1 {caseLabel3} @MANSON5_10592 {caseNum4} -1 {caseLabel4} @MANSON5_10592 {caseNum5} -1 {caseLabel5} @MANSON5_10592 {caseNum6} -1 {caseLabel6} @MANSON5_10592 {caseNum7} -1 {caseLabel7} @MANSON5_10592

:MANSON5_10554
if 
  255.0 > 103@
goto_if_false @MANSON5_10585
103@ += 0.35

:MANSON5_10585
goto @MANSON5_10592

:MANSON5_10592
110@ = Math.Cos(103@)
111@ = Math.Sin(103@)
set_lvar_float_to_lvar_float 108@ = 104@
mult_float_lvar_by_float_lvar 108@ *= 110@
set_lvar_float_to_lvar_float 109@ = 104@
mult_float_lvar_by_float_lvar 109@ *= 111@
set_lvar_float_to_lvar_float 100@ = 105@
add_float_lvar_to_float_lvar 100@ += 108@
set_lvar_float_to_lvar_float 101@ = 106@
add_float_lvar_to_float_lvar 101@ += 109@
Camera.SetFixedPosition(100@, 101@, 102@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(105@, 106@, 107@, SwitchType.JumpCut)
return 

:MANSON5_10713
if 
  not Char.IsDead(35@)
goto_if_false @MANSON5_11444
switch_start 112@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSON5_11444 {caseNum1} 0 {caseLabel1} @MANSON5_10792 {caseNum2} 1 {caseLabel2} @MANSON5_10896 {caseNum3} 2 {caseLabel3} @MANSON5_11236 {caseNum4} 3 {caseLabel4} @MANSON5_11298 {caseNum5} 4 {caseLabel5} @MANSON5_11362 {caseNum6} -1 {caseLabel6} @MANSON5_11444 {caseNum7} -1 {caseLabel7} @MANSON5_11444

:MANSON5_10792
if 
  Char.LocateInCar2D(35@, 748.4916, -1812.361, 2.0, 2.0, False)
goto_if_false @MANSON5_10889
if 
  not World.IsLineOfSightClear($player_x, $player_y, $player_z, 748.4916, -1812.361, 12.0297, True, False, False, False, False)
goto_if_false @MANSON5_10877

:MANSON5_10877
Streaming.RequestModel(588)
112@ += 1

:MANSON5_10889
goto @MANSON5_11444

:MANSON5_10896
if 
  Char.LocateInCar2D(35@, 662.4983, -1791.844, 2.0, 2.0, False)
goto_if_false @MANSON5_11229
if 
  Streaming.HasModelLoaded(588)
goto_if_false @MANSON5_11030
if 
  not World.IsLineOfSightClear($player_x, $player_y, $player_z, 532.9616, -1768.656, 4.698, True, False, False, False, False)
goto_if_false @MANSON5_11030
114@ = Car.Create(588, 532.9616, -1768.656, 4.698)
Car.SetHeading(114@, 270.0)

:MANSON5_11030
Path.SwitchRoadsOff(226.1833, -1631.007, 40.0, 546.4532, -1423.991, 12.0)
Path.SwitchRoadsOff(510.3661, -1431.656, 10.0, 645.8312, -1387.312, 20.0)
Path.SwitchRoadsOff(646.6142, -1389.016, 10.0, 620.9656, -1310.468, 20.0)
Path.SwitchRoadsOff(620.9656, -1310.468, 10.0, 947.811, -1335.012, 20.0)
Path.SwitchRoadsOff(948.2631, -1335.406, 10.0, 934.2357, -1229.939, 20.0)
Path.SwitchRoadsOff(804.0421, -1329.191, 10.0, 789.3583, -1159.008, 24.0)
112@ += 1

:MANSON5_11229
goto @MANSON5_11444

:MANSON5_11236
if 
  Char.LocateInCar2D(35@, 394.1295, -1801.128, 2.0, 2.0, False)
goto_if_false @MANSON5_11291
Streaming.MarkModelAsNoLongerNeeded(588)
Car.MarkAsNoLongerNeeded(114@)
112@ += 1

:MANSON5_11291
goto @MANSON5_11444

:MANSON5_11298
if 
  Char.LocateInCar2D(35@, 1030.758, -1223.58, 2.0, 2.0, False)
goto_if_false @MANSON5_11355
Car.PausePlayback(44@)
112@ += 1
goto @MANSON5_11362

:MANSON5_11355
goto @MANSON5_11444

:MANSON5_11362
if 
  not Char.IsDead(35@)
goto_if_false @MANSON5_11437
$x, $y, $z = Char.GetCoordinates(35@)
$distance = Math.GetDistanceBetweenCoords2D($x, $y, $player_x, $player_y)
if 
  40.0 >= $distance
goto_if_false @MANSON5_11437
54@ = 1

:MANSON5_11437
goto @MANSON5_11444

:MANSON5_11444
return 

:MANSON5_11446
switch_start 117@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSON5_11708 {caseNum1} 0 {caseLabel1} @MANSON5_11509 {caseNum2} 1 {caseLabel2} @MANSON5_11570 {caseNum3} -1 {caseLabel3} @MANSON5_11708 {caseNum4} -1 {caseLabel4} @MANSON5_11708 {caseNum5} -1 {caseLabel5} @MANSON5_11708 {caseNum6} -1 {caseLabel6} @MANSON5_11708 {caseNum7} -1 {caseLabel7} @MANSON5_11708

:MANSON5_11509
$distance = Math.GetDistanceBetweenCoords2D($player_x, $player_y, 1064.547, -1218.083)
if 
  250.0 > $distance
goto_if_false @MANSON5_11563
Streaming.RequestModel(482)
117@ += 1

:MANSON5_11563
goto @MANSON5_11708

:MANSON5_11570
if 
  Streaming.HasModelLoaded(482)
goto_if_false @MANSON5_11701
$distance = Math.GetDistanceBetweenCoords2D($player_x, $player_y, 1064.547, -1218.083)
if 
  80.0 > $distance
goto_if_false @MANSON5_11701
115@ = Car.Create(482, 1064.547, -1218.083, 15.928)
Car.SetHeading(115@, 191.9481)
116@ = Car.Create(482, 1050.6, -1222.692, 15.8704)
Car.SetHeading(116@, 111.6362)
117@ += 1

:MANSON5_11701
goto @MANSON5_11708

:MANSON5_11708
return 

:MANSON5_11710
switch_start 118@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @MANSON5_12904 {caseNum1} 0 {caseLabel1} @MANSON5_11838 {caseNum2} 1 {caseLabel2} @MANSON5_11934 {caseNum3} 2 {caseLabel3} @MANSON5_11981 {caseNum4} 3 {caseLabel4} @MANSON5_12233 {caseNum5} 4 {caseLabel5} @MANSON5_12280 {caseNum6} 5 {caseLabel6} @MANSON5_12355 {caseNum7} 6 {caseLabel7} @MANSON5_12402
switch_continued 7 {caseLabel1} @MANSON5_12477 {caseNum2} 8 {caseLabel2} @MANSON5_12524 {caseNum3} 9 {caseLabel3} @MANSON5_12667 {caseNum4} 10 {caseLabel4} @MANSON5_12714 {caseNum5} 11 {caseLabel5} @MANSON5_12857 {caseNum6} -1 {caseLabel6} @MANSON5_12904 {caseNum7} -1 {caseLabel7} @MANSON5_12904 {caseNum8} -1 {caseLabel8} @MANSON5_12904 {caseNum9} -1 {caseLabel9} @MANSON5_12904

:MANSON5_11838
if 
  3 > 119@
goto_if_false @MANSON5_11920
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 144@(119@,24i) 
119@ += 1
118@ += 1
goto @MANSON5_11934

:MANSON5_11920
118@ = 2
goto @MANSON5_12904

:MANSON5_11934
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_11974
118@ = 0
$SLOT_status($preload_slot,2i) = -4

:MANSON5_11974
goto @MANSON5_12904

:MANSON5_11981
if 
  69@ == 3
goto_if_false @MANSON5_12058
if 
  Char.LocateAnyMeans2D($scplayer, -12.2064, -1117.876, 120.0, 120.0, False)
goto_if_false @MANSON5_12058
118@ += 2
119@ = 16
goto @MANSON5_12904

:MANSON5_12058
if 
  66@ == 1
goto_if_false @MANSON5_12158
if 
  16 > 119@
goto_if_false @MANSON5_12151
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 144@(119@,24i) 
119@ += 1
118@ += 1

:MANSON5_12151
goto @MANSON5_12233

:MANSON5_12158
if 
  119@ <> 3
goto_if_false @MANSON5_12226
if 
  0 <= $SLOT_status[0]
goto_if_false @MANSON5_12201
$SLOT_status[0] = -2

:MANSON5_12201
if 
  0 <= $SLOT_status[0]
goto_if_false @MANSON5_12226
$SLOT_status[1] = -2

:MANSON5_12226
goto @MANSON5_12904

:MANSON5_12233
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_12273
118@ = 2
$SLOT_status($preload_slot,2i) = -4

:MANSON5_12273
goto @MANSON5_12904

:MANSON5_12280
if 
  18 > 119@
goto_if_false @MANSON5_12355
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 144@(119@,24i) 
119@ += 1
118@ += 1

:MANSON5_12355
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_12395
118@ = 4
$SLOT_status($preload_slot,2i) = -4

:MANSON5_12395
goto @MANSON5_12904

:MANSON5_12402
if 
  24 > 119@
goto_if_false @MANSON5_12477
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 144@(119@,24i) 
119@ += 1
118@ += 1

:MANSON5_12477
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_12517
118@ = 6
$SLOT_status($preload_slot,2i) = -4

:MANSON5_12517
goto @MANSON5_12904

:MANSON5_12524
if 
  4 > 119@
goto_if_false @MANSON5_12667
if 
  TIMERA > 8000
goto_if_false @MANSON5_12667
if 
  Char.LocateAnyMeansChar2D($scplayer, 35@, 60.0, 60.0, False)
goto_if_false @MANSON5_12659
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 35@ 
119@ += 1
118@ += 1
TIMERA = 0
goto @MANSON5_12667

:MANSON5_12659
TIMERA = 7000

:MANSON5_12667
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_12707
118@ = 8
$SLOT_status($preload_slot,2i) = -4

:MANSON5_12707
goto @MANSON5_12904

:MANSON5_12714
if 
  9 > 119@
goto_if_false @MANSON5_12857
if 
  TIMERA > 8000
goto_if_false @MANSON5_12857
if 
  Char.LocateAnyMeansChar2D($scplayer, 35@, 50.0, 50.0, False)
goto_if_false @MANSON5_12849
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 35@ 
119@ += 1
118@ += 1
TIMERA = 0
goto @MANSON5_12857

:MANSON5_12849
TIMERA = 7000

:MANSON5_12857
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_12897
118@ = 10
$SLOT_status($preload_slot,2i) = -4

:MANSON5_12897
goto @MANSON5_12904

:MANSON5_12904
return 

:MANSON5_12906
$flag_mansion_mission_counter += 1
Stat.RegisterMissionPassed('MAN_5')
Stat.PlayerMadeProgress(1)
CarGenerator.Switch($5247, 101)
CarGenerator.Switch($car_gen_go_kart, 101)
CarGenerator.Switch($5249, 101)
CarGenerator.Switch($5250, 101)
CarGenerator.Switch($5251, 101)
CarGenerator.Switch($5252, 101)
CarGenerator.Switch($5253, 101)
CarGenerator.Switch($5254, 101)
CarGenerator.Switch($5255, 101)
CarGenerator.Switch($5256, 101)
CarGenerator.Switch($5257, 101)
CarGenerator.Switch($5258, 101)
CarGenerator.Switch($5259, 101)
CarGenerator.Switch($5260, 101)
CarGenerator.Switch($5261, 101)
CarGenerator.Switch($5262, 101)
CarGenerator.Switch($car_gen_hover, 101)
CarGenerator.Switch($5264, 101)
CarGenerator.Switch($5265, 101)
CarGenerator.Switch($5266, 101)
CarGenerator.Switch($5267, 101)
Text.PrintWithNumberBig('M_PASSR', 4, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(50)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Blip.Remove($mansion_contact_blip)
return 

:MANSON5_13113
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if 
  62@ == 1
goto_if_false @MANSON5_13157
Text.PrintNow(63@s, 5000, 1)

:MANSON5_13157
return 

:MANSON5_13159
if 
  Player.IsPlaying($player1)
goto_if_false @MANSON5_13186
Player.SetGroupRecruitment($player1, True)
Game.SetScriptLimitToGangSize(99)

:MANSON5_13186
start_new_script @A_TERM 
World.SetPedDensityMultiplier(1.0)
Path.SwitchRoadsBackToOriginal(226.1833, -1631.007, 40.0, 546.4532, -1423.991, 12.0)
Path.SwitchRoadsBackToOriginal(510.3661, -1431.656, 10.0, 645.8312, -1387.312, 20.0)
Path.SwitchRoadsBackToOriginal(646.6142, -1389.016, 10.0, 620.9656, -1310.468, 20.0)
Path.SwitchRoadsBackToOriginal(620.9656, -1310.468, 10.0, 947.811, -1335.012, 20.0)
Path.SwitchRoadsBackToOriginal(948.2631, -1335.406, 10.0, 934.2357, -1229.939, 20.0)
Path.SwitchRoadsBackToOriginal(804.0421, -1329.191, 10.0, 789.3583, -1159.008, 24.0)
Blip.Remove(50@)
Blip.Remove(37@)
Blip.Remove(38@)
if 
  not Char.IsDead(34@)
goto_if_false @MANSON5_13429
Char.RemoveFromGroup(34@)

:MANSON5_13429
Char.RemoveElegantly(34@)
Char.RemoveElegantly(35@)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Char.MarkAsNoLongerNeeded(73@)
if 
  not Char.IsDead(73@)
goto_if_false @MANSON5_13490
Char.FreezePosition(73@, False)
Char.SetProofs(73@, False, False, False, False, False)

:MANSON5_13490
Car.MarkAsNoLongerNeeded(74@)
if 
  not Car.IsDead(74@)
goto_if_false @MANSON5_13533
Car.FreezePosition(74@, False)
Car.SetProofs(74@, False, False, False, False, False)

:MANSON5_13533
Car.MarkAsNoLongerNeeded(39@)
if 
  not Car.IsDead(40@)
goto_if_false @MANSON5_13575
if 
  Car.IsPlaybackGoingOn(40@)
goto_if_false @MANSON5_13575
Car.StopPlayback(40@)

:MANSON5_13575
Car.MarkAsNoLongerNeeded(40@)
if 
  not Car.IsDead(41@)
goto_if_false @MANSON5_13617
if 
  Car.IsPlaybackGoingOn(41@)
goto_if_false @MANSON5_13617
Car.StopPlayback(41@)

:MANSON5_13617
Car.MarkAsNoLongerNeeded(41@)
Car.MarkAsNoLongerNeeded(42@)
if 
  not Car.IsDead(43@)
goto_if_false @MANSON5_13664
if 
  Car.IsPlaybackGoingOn(43@)
goto_if_false @MANSON5_13664
Car.StopPlayback(43@)

:MANSON5_13664
Car.MarkAsNoLongerNeeded(43@)
if 
  not Car.IsDead(44@)
goto_if_false @MANSON5_13706
if 
  Car.IsPlaybackGoingOn(44@)
goto_if_false @MANSON5_13706
Car.StopPlayback(44@)

:MANSON5_13706
Car.MarkAsNoLongerNeeded(44@)
Car.MarkAsNoLongerNeeded(45@)
Car.MarkAsNoLongerNeeded(114@)
Car.MarkAsNoLongerNeeded(115@)
Car.MarkAsNoLongerNeeded(116@)
48@ = 0

:MANSON5_13738
if 
  8 > 48@
goto_if_false @MANSON5_13779
Car.MarkAsNoLongerNeeded(75@(48@,8i))
48@ += 1
goto @MANSON5_13738

:MANSON5_13779
Object.MarkAsNoLongerNeeded(83@)
Streaming.MarkModelAsNoLongerNeeded(219)
Streaming.MarkModelAsNoLongerNeeded(424)
Streaming.MarkModelAsNoLongerNeeded(539)
Streaming.MarkModelAsNoLongerNeeded(571)
Streaming.MarkModelAsNoLongerNeeded(582)
Streaming.MarkModelAsNoLongerNeeded(484)
Streaming.MarkModelAsNoLongerNeeded(453)
Streaming.MarkModelAsNoLongerNeeded(588)
Streaming.MarkModelAsNoLongerNeeded(482)
Streaming.MarkModelAsNoLongerNeeded(#WATERJUMPX2)
$onmission = 0
Mission.Finish
return 

//-------------Mission 106---------------
// Originally: Beat Down on B Dup

:GROVE1
script_name 'GROVE1'
gosub @GROVE1_608
if 
  has_deatharrest_been_executed 
goto_if_false @GROVE1_38
gosub @GROVE1_18790

:GROVE1_38
gosub @GROVE1_18956
terminate_this_script 

:GROVE1_47
switch_start 96@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GROVE1_606 {caseNum1} 0 {caseLabel1} @GROVE1_110 {caseNum2} 1 {caseLabel2} @GROVE1_322 {caseNum3} 2 {caseLabel3} @GROVE1_446 {caseNum4} 3 {caseLabel4} @GROVE1_548 {caseNum5} -1 {caseLabel5} @GROVE1_606 {caseNum6} -1 {caseLabel6} @GROVE1_606 {caseNum7} -1 {caseLabel7} @GROVE1_606

:GROVE1_110
set_var_text_label s$sweets_health_grove1[0] = 'GRO1_FA'
set_var_text_label s$sweets_health_grove1[1] = 'GRO1_FB'
set_var_text_label s$sweets_health_grove1[2] = 'GRO1_FC'
set_var_text_label s$sweets_health_grove1[3] = 'GRO1_FD'
set_var_text_label s$sweets_health_grove1[4] = 'GRO1_FE'
set_var_text_label s$sweets_health_grove1[5] = 'GRO1_FF'
set_var_text_label s$sweets_health_grove1[6] = 'GRO1_FG'
set_var_text_label s$sweets_health_grove1[7] = 'GRO1_FH'
set_var_text_label s$sweets_health_grove1[8] = 'GRO1_FJ'
set_lvar_int_to_constant 97@ = 13037
set_lvar_int_to_constant 98@ = 13023
set_lvar_int_to_constant 99@ = 13024
set_lvar_int_to_constant 100@ = 13025
set_lvar_int_to_constant 101@ = 13038
set_lvar_int_to_constant 102@ = 13039
set_lvar_int_to_constant 103@ = 13040
set_lvar_int_to_constant 104@ = 13041
set_lvar_int_to_constant 105@ = 13026
$cell_index_end = 8
goto @GROVE1_606

:GROVE1_322
set_var_text_label s$sweets_health_grove1[0] = 'GRO1_JA'
set_var_text_label s$sweets_health_grove1[1] = 'GRO1_JB'
set_var_text_label s$sweets_health_grove1[2] = 'GRO1_JC'
set_var_text_label s$sweets_health_grove1[3] = 'GRO1_JD'
set_var_text_label s$sweets_health_grove1[4] = 'GRO1_JE'
set_lvar_int_to_constant 97@ = 13042
set_lvar_int_to_constant 98@ = 13031
set_lvar_int_to_constant 99@ = 13043
set_lvar_int_to_constant 100@ = 13044
set_lvar_int_to_constant 101@ = 13032
$cell_index_end = 4
goto @GROVE1_606

:GROVE1_446
set_var_text_label s$sweets_health_grove1[0] = 'GRO1_LA'
set_var_text_label s$sweets_health_grove1[1] = 'GRO1_LB'
set_var_text_label s$sweets_health_grove1[2] = 'GRO1_LC'
set_var_text_label s$sweets_health_grove1[3] = 'GRO1_LD'
set_lvar_int_to_constant 97@ = 13034
set_lvar_int_to_constant 98@ = 13046
set_lvar_int_to_constant 99@ = 13035
set_lvar_int_to_constant 100@ = 13047
$cell_index_end = 3
goto @GROVE1_606

:GROVE1_548
set_var_text_label s$sweets_health_grove1[0] = 'GRO1_KA'
set_var_text_label s$sweets_health_grove1[1] = 'GRO1_KB'
set_lvar_int_to_constant 97@ = 13033
set_lvar_int_to_constant 98@ = 13045
$cell_index_end = 1
goto @GROVE1_606

:GROVE1_606
return 

:GROVE1_608
$onmission = 1
77@ = 50
78@ = 50
79@ = 50
80@ = 50
81@ = 0
$trip_skip_M5 = 1000
37@ = 0
41@ = 0
44@ = 0
47@ = 0
50@ = 0
53@ = 0
56@ = 0
60@ = 0
64@ = 0
68@ = 0
70@ = 0
71@ = 0
73@ = 0
74@ = 0
82@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
88@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
91@ = 0
92@ = 0
118@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
Stat.RegisterMissionGiven
Text.LoadMissionText('GROVE1')
wait 0
Streaming.SetAreaVisible(3)
Cutscene.Load('GROVE1A')

:GROVE1_1005
if 
  not Cutscene.HasLoaded
goto_if_false @GROVE1_1029
wait 0
goto @GROVE1_1005

:GROVE1_1029
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:GROVE1_1038
if 
  not Cutscene.HasFinished
goto_if_false @GROVE1_1062
wait 0
goto @GROVE1_1038

:GROVE1_1062
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:GROVE1_1075
if 
  Camera.GetFadingStatus
goto_if_false @GROVE1_1099
wait 0
goto @GROVE1_1075

:GROVE1_1099
Cutscene.Clear
Streaming.SetAreaVisible(0)
Game.SetScriptLimitToGangSize(5)
goto @GROVE1_1224
39@ = Blip.AddForCoord(0.0, 0.0, 0.0)
57@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 1)
Sequence.Close(57@)
61@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 1)
Sequence.Close(61@)
65@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 1)
Sequence.Close(65@)
69@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 1)
Sequence.Close(69@)

:GROVE1_1224
34@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
35@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
DecisionMakerChar.AddEventResponse(35@, 49, 311, 0.0, 100.0, 100.0, 100.0, False, True)
Streaming.LoadSpecialCharacter(1, 'SWEET')
Streaming.RequestModel(104)
Streaming.RequestModel(102)
Streaming.RequestModel(355)
Streaming.RequestModel(411)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 13027)
Streaming.LoadAllModelsNow

:GROVE1_1312
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(355)
  not Streaming.HasModelLoaded(104)
  not Streaming.HasModelLoaded(102)
  not Streaming.HasModelLoaded(411)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_1360
wait 0
goto @GROVE1_1312

:GROVE1_1360
Char.SetCoordinates($scplayer, 2497.324, -1684.744, 12.44)
Char.SetHeading($scplayer, 0.0)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Streaming.LoadScene(2497.324, -1684.744, 12.44)
38@ = Char.Create(PedType.Mission1, 290, 2496.633, -1684.573, 12.435)
Char.SetHeading(38@, 0.0)
Char.SetDecisionMaker(38@, 65542)
Char.SetAnimGroup(38@, "GANG2")
Char.GiveWeapon(38@, WeaponType.Ak47, 30000)
Char.SetNeverTargeted(38@, True)
Char.SetSuffersCriticalHits(38@, False)
Group.SetFollowStatus($Players_Group, True)
Group.SetMember($Players_Group, 38@)
Char.SetAccuracy(38@, 90)
Char.SetHealth(38@, 1000)
Char.SetMaxHealth(38@, 1000)
Char.SetRelationship(38@, RelationshipType.Hate, PedType.Mission2)
Char.SetProofs(38@, True, True, True, True, True)
Player.SetGroupToFollowAlways($player1, True)
Hud.SwitchWidescreen(False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:GROVE1_1580
if 
  not Camera.GetFadingStatus
goto_if_false @GROVE1_1604
wait 0
goto @GROVE1_1580

:GROVE1_1604
Player.SetControl($player1, True)
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_1657
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790
goto @GROVE1_1672

:GROVE1_1657
Char.SetProofs(38@, False, False, False, False, False)

:GROVE1_1672
Text.PrintNow('GM1_18', 8000, 1)
89@ = Blip.AddForCoord(2293.032, -1795.767, 12.5469)
$blob_flag = 1
TIMERA = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
gosub @GROVE1_47
119@ = 0
120@ = 0

:GROVE1_1771
if or
  not Char.LocateAnyMeans3D($scplayer, 2293.032, -1795.767, 12.5469, 4.0, 4.0, 4.0, $blob_flag)
  not Char.IsGroupMember(38@, $Players_Group)
  120@ <> 1
goto_if_false @GROVE1_3274
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @GROVE1_1861
goto @GROVE1_18874

:GROVE1_1861
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @GROVE1_1945
83@ = Char.StoreCarIsIn($scplayer)
if 
  not Car.IsDead(83@)
goto_if_false @GROVE1_1938
if 
  Car.IsOnAllWheels(83@)
goto_if_false @GROVE1_1931
120@ = 1
goto @GROVE1_1938

:GROVE1_1931
120@ = 0

:GROVE1_1938
goto @GROVE1_2047

:GROVE1_1945
if 
  Char.LocateAnyMeans3D($scplayer, 2293.032, -1795.767, 12.5469, 4.0, 4.0, 4.0, False)
goto_if_false @GROVE1_2040
if 
  Char.IsGroupMember(38@, $Players_Group)
goto_if_false @GROVE1_2026
120@ = 1
goto @GROVE1_2033

:GROVE1_2026
120@ = 0

:GROVE1_2033
goto @GROVE1_2047

:GROVE1_2040
120@ = 0

:GROVE1_2047
if 
  114@ == 0
goto_if_false @GROVE1_2102
if 
  TIMERA >= 5000
goto_if_false @GROVE1_2102
Text.ClearThisPrint('GM1_18')
114@ = 1

:GROVE1_2102
if 
  114@ == 1
goto_if_false @GROVE1_2420
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_2364
if 
  Char.IsGroupMember(38@, $Players_Group)
goto_if_false @GROVE1_2254
if 
  Char.LocateAnyMeansChar3D(38@, $scplayer, 10.0, 10.0, 8.0, False)
goto_if_false @GROVE1_2247
if and
  Char.IsOnFoot($scplayer)
  Char.IsOnFoot(38@)
goto_if_false @GROVE1_2219
gosub @GROVE1_19474

:GROVE1_2219
if and
  Char.IsInAnyCar($scplayer)
  Char.IsInAnyCar(38@)
goto_if_false @GROVE1_2247
gosub @GROVE1_19474

:GROVE1_2247
goto @GROVE1_2357

:GROVE1_2254
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint('GRO1_FA')
Text.ClearThisPrint('GRO1_FB')
Text.ClearThisPrint('GRO1_FC')
Text.ClearThisPrint('GRO1_FD')
Text.ClearThisPrint('GRO1_FE')
Text.ClearThisPrint('GRO1_FF')
Text.ClearThisPrint('GRO1_FG')
Text.ClearThisPrint('GRO1_FH')
Text.ClearThisPrint('GRO1_FJ')

:GROVE1_2357
goto @GROVE1_2420

:GROVE1_2364
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Text.PrintNow('GM1_4', 5000, 1)
if 
  37@ == 1
goto_if_false @GROVE1_2413
Blip.Remove(39@)

:GROVE1_2413
goto @GROVE1_18790

:GROVE1_2420
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_2489
Text.PrintNow('GM1_4', 5000, 1)
if 
  37@ == 1
goto_if_false @GROVE1_2475
Blip.Remove(39@)

:GROVE1_2475
goto @GROVE1_18790
goto @GROVE1_3267

:GROVE1_2489
$trip_skip_M5 = Char.GetHealth(38@)
$trip_skip_M5 /= 10
if 
  117@ == 1
goto_if_false @GROVE1_2555
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_2555
Text.ClearThisPrint('GRO1_GA')
117@ = 0

:GROVE1_2555
if and
  not Char.IsGroupMember(38@, $Players_Group)
  37@ == 0
goto_if_false @GROVE1_2638
Blip.Remove(89@)
39@ = Blip.AddForChar(38@)
Blip.SetAsFriendly(39@, True)
Text.PrintNow('GM1_2', 8000, 1)
$blob_flag = 0
73@ = 0
37@ = 1

:GROVE1_2638
if 
  37@ == 1
goto_if_false @GROVE1_3267
if 
  Char.LocateAnyMeansChar2D($scplayer, 38@, 8.0, 8.0, False)
goto_if_false @GROVE1_3267
if 
  not Char.IsInFlyingVehicle($scplayer)
goto_if_false @GROVE1_3106
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @GROVE1_3029
83@ = Char.StoreCarIsIn($scplayer)
84@ = Car.GetMaximumNumberOfPassengers(83@)
85@ = Car.GetNumberOfPassengers(83@)
set_lvar_int_to_lvar_int 86@ = 84@
sub_int_lvar_from_int_lvar 86@ -= 85@
if 
  86@ >= 1
goto_if_false @GROVE1_2861
Group.SetFollowStatus($Players_Group, True)
Group.SetMember($Players_Group, 38@)
Blip.Remove(39@)
89@ = Blip.AddForCoord(2293.032, -1795.767, 12.5469)
Text.PrintNow('GM1_18', 8000, 1)
$blob_flag = 1
87@ = 0
37@ = 0
goto @GROVE1_3022

:GROVE1_2861
if 
  87@ == 0
goto_if_false @GROVE1_2959
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_2931
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GRO1_GA', 8000, 1)
Char.StartFacialTalk(38@, 999999)
Char.ShutUpForScriptedSpeech(38@, True)

:GROVE1_2931
119@ = 1
117@ = 1
87@ = 1
goto @GROVE1_3022

:GROVE1_2959
if 
  119@ == 1
goto_if_false @GROVE1_3022
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_3022
Char.StopFacialTalk(38@)
Text.ClearThisPrint('GRO1_GA')
Char.ShutUpForScriptedSpeech(38@, False)
119@ = 0

:GROVE1_3022
goto @GROVE1_3099

:GROVE1_3029
Group.SetFollowStatus($Players_Group, True)
Group.SetMember($Players_Group, 38@)
Blip.Remove(39@)
89@ = Blip.AddForCoord(2293.032, -1795.767, 12.5469)
Text.PrintNow('GM1_18', 8000, 1)
$blob_flag = 1
37@ = 0

:GROVE1_3099
goto @GROVE1_3267

:GROVE1_3106
if 
  73@ == 0
goto_if_false @GROVE1_3204
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_3176
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GRO1_GA', 8000, 1)
Char.StartFacialTalk(38@, 999999)
Char.ShutUpForScriptedSpeech(38@, True)

:GROVE1_3176
119@ = 1
117@ = 1
73@ = 1
goto @GROVE1_3267

:GROVE1_3204
if 
  119@ == 1
goto_if_false @GROVE1_3267
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_3267
Char.StopFacialTalk(38@)
Text.ClearThisPrint('GRO1_GA')
Char.ShutUpForScriptedSpeech(38@, False)
119@ = 0

:GROVE1_3267
goto @GROVE1_1771

:GROVE1_3274
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
Blip.Remove(89@)
Player.SetControl($player1, False)
Game.SetPoliceIgnorePlayer($player1, True)
Game.SetEveryoneIgnorePlayer($player1, True)
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_3344
Char.SetProofs(38@, True, True, True, True, True)
goto @GROVE1_3367

:GROVE1_3344
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_3367
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:GROVE1_3382
if 
  Camera.GetFadingStatus
goto_if_false @GROVE1_3445
wait 0
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_3438
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_3438
goto @GROVE1_3382

:GROVE1_3445
Player.MakeGangDisappear
World.ClearArea(2294.323, -1797.048, 12.586, 7.0, True)
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @GROVE1_3548
World.ClearArea(2294.323, -1797.048, 12.586, 3.0, True)
Char.SetCoordinates($scplayer, 2294.323, -1797.048, 12.586)
Char.SetHeading($scplayer, 270.0)
goto @GROVE1_3652

:GROVE1_3548
90@ = Char.StoreCarIsIn($scplayer)
Char.WarpFromCarToCoord($scplayer, 2294.323, -1797.048, 12.586)

:GROVE1_3576
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @GROVE1_3642
wait 0
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_3635
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_3635
goto @GROVE1_3576

:GROVE1_3642
Char.SetHeading($scplayer, 270.0)

:GROVE1_3652
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_3861
if 
  not Char.IsInAnyCar(38@)
goto_if_false @GROVE1_3750
World.ClearArea(2294.323, -1794.911, 12.586, 3.0, True)
Char.ClearTasksImmediately(38@)
Char.SetCoordinates(38@, 2294.323, -1794.911, 12.586)
Char.SetHeading(38@, 270.0)
goto @GROVE1_3854

:GROVE1_3750
90@ = Char.StoreCarIsIn(38@)
Char.WarpFromCarToCoord(38@, 2294.323, -1794.911, 12.586)

:GROVE1_3778
if 
  Char.IsInAnyCar(38@)
goto_if_false @GROVE1_3844
wait 0
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_3837
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_3837
goto @GROVE1_3778

:GROVE1_3844
Char.SetHeading(38@, 270.0)

:GROVE1_3854
goto @GROVE1_3884

:GROVE1_3861
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_3884
World.ClearArea(2294.323, -1797.048, 12.586, 6.0, True)
if 
  Car.DoesExist(90@)
goto_if_false @GROVE1_3994
if 
  not Car.IsDead(90@)
goto_if_false @GROVE1_3994
World.ClearArea(2299.243, -1784.565, 12.591, 3.0, False)
Car.SetCoordinates(90@, 2299.243, -1784.565, 12.591)
Car.SetHeading(90@, 0.0)

:GROVE1_3994
Player.MakeSafeForCutscene($player1)
Streaming.SetAreaVisible(3)
Cutscene.Load('GROVE1B')

:GROVE1_4014
if 
  not Cutscene.HasLoaded
goto_if_false @GROVE1_4038
wait 0
goto @GROVE1_4014

:GROVE1_4038
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:GROVE1_4047
if 
  not Cutscene.HasFinished
goto_if_false @GROVE1_4071
wait 0
goto @GROVE1_4047

:GROVE1_4071
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:GROVE1_4084
if 
  Camera.GetFadingStatus
goto_if_false @GROVE1_4108
wait 0
goto @GROVE1_4084

:GROVE1_4108
Cutscene.Clear
Streaming.SetAreaVisible(0)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.MakeGangReappear
Streaming.LoadScene(2294.323, -1797.048, 12.586)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1500, Fade.In)

:GROVE1_4156
if 
  Camera.GetFadingStatus
goto_if_false @GROVE1_4180
wait 0
goto @GROVE1_4156

:GROVE1_4180
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_4218
Char.SetProofs(38@, False, False, False, False, False)
goto @GROVE1_4241

:GROVE1_4218
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_4241
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Game.SetPoliceIgnorePlayer($player1, False)
Text.PrintNow('GM1_1', 5000, 1)
40@ = Blip.AddSpriteForCoord(1988.316, -1199.675, 19.135, RadarSprite.GangG)
Zone.SetGangStrength('GLN1', GangType.Ballas, 40)
Zone.SetGangStrength('GLN1', GangType.Grove, 0)
91@ = Zone.GetGangStrength('GLN1', GangType.Vagos)
92@ = Zone.GetGangStrength('GLN1', GangType.Aztecas)
Zone.SetGangStrength('GLN1', GangType.Vagos, 0)
Zone.SetGangStrength('GLN1', GangType.Aztecas, 0)
Zone.SetTriggerGangWar('GLN1')
Game.SetWantedMultiplier(0.5)
Game.SetGangWarsActive(True)
Game.CanTriggerGangWarWhenOnAMission(True)
TIMERB = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 1
gosub @GROVE1_47
119@ = 0

:GROVE1_4467
if or
  81@ <> 1
  not Char.IsGroupMember(38@, $Players_Group)
goto_if_false @GROVE1_5650
wait 0
if 
  115@ == 0
goto_if_false @GROVE1_4552
if 
  TIMERB >= 5000
goto_if_false @GROVE1_4552
Text.ClearThisPrint('GM1_1')
115@ = 1

:GROVE1_4552
if 
  115@ == 1
goto_if_false @GROVE1_4827
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_4770
if 
  Char.IsGroupMember(38@, $Players_Group)
goto_if_false @GROVE1_4704
if 
  Char.LocateAnyMeansChar3D(38@, $scplayer, 10.0, 10.0, 8.0, False)
goto_if_false @GROVE1_4697
if and
  Char.IsOnFoot($scplayer)
  Char.IsOnFoot(38@)
goto_if_false @GROVE1_4669
gosub @GROVE1_19474

:GROVE1_4669
if and
  Char.IsInAnyCar($scplayer)
  Char.IsInAnyCar(38@)
goto_if_false @GROVE1_4697
gosub @GROVE1_19474

:GROVE1_4697
goto @GROVE1_4763

:GROVE1_4704
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint('GRO1_JA')
Text.ClearThisPrint('GRO1_JB')
Text.ClearThisPrint('GRO1_JC')
Text.ClearThisPrint('GRO1_JD')
Text.ClearThisPrint('GRO1_JE')

:GROVE1_4763
goto @GROVE1_4827

:GROVE1_4770
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
Blip.Remove(40@)
Text.PrintNow('GM1_4', 5000, 1)
if 
  37@ == 1
goto_if_false @GROVE1_4820
Blip.Remove(39@)

:GROVE1_4820
goto @GROVE1_18790

:GROVE1_4827
if 
  Player.IsInInfoZone($player1, 'GLN1')
goto_if_false @GROVE1_4866
81@ = 1
goto @GROVE1_4873

:GROVE1_4866
81@ = 0

:GROVE1_4873
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_4942
Text.PrintNow('GM1_4', 5000, 1)
if 
  37@ == 1
goto_if_false @GROVE1_4928
Blip.Remove(39@)

:GROVE1_4928
goto @GROVE1_18790
goto @GROVE1_5643

:GROVE1_4942
$trip_skip_M5 = Char.GetHealth(38@)
$trip_skip_M5 /= 10
if 
  117@ == 1
goto_if_false @GROVE1_5008
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_5008
Text.ClearThisPrint('GRO1_GA')
117@ = 0

:GROVE1_5008
if and
  not Char.IsGroupMember(38@, $Players_Group)
  37@ == 0
goto_if_false @GROVE1_5086
39@ = Blip.AddForChar(38@)
Blip.SetAsFriendly(39@, True)
Text.PrintNow('GM1_2', 8000, 1)
$blob_flag = 0
73@ = 0
37@ = 1

:GROVE1_5086
if 
  37@ == 1
goto_if_false @GROVE1_5643
if 
  Char.LocateAnyMeansChar2D($scplayer, 38@, 8.0, 8.0, False)
goto_if_false @GROVE1_5643
if 
  not Char.IsInFlyingVehicle($scplayer)
goto_if_false @GROVE1_5482
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @GROVE1_5441
83@ = Char.StoreCarIsIn($scplayer)
84@ = Car.GetMaximumNumberOfPassengers(83@)
85@ = Car.GetNumberOfPassengers(83@)
set_lvar_int_to_lvar_int 86@ = 84@
sub_int_lvar_from_int_lvar 86@ -= 85@
if 
  86@ >= 1
goto_if_false @GROVE1_5273
Group.SetFollowStatus($Players_Group, True)
Group.SetMember($Players_Group, 38@)
Blip.Remove(39@)
$blob_flag = 1
87@ = 0
37@ = 0
goto @GROVE1_5434

:GROVE1_5273
if 
  87@ == 0
goto_if_false @GROVE1_5371
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_5343
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GRO1_GA', 8000, 1)
Char.StartFacialTalk(38@, 999999)
Char.ShutUpForScriptedSpeech(38@, True)

:GROVE1_5343
119@ = 1
117@ = 1
87@ = 1
goto @GROVE1_5434

:GROVE1_5371
if 
  119@ == 1
goto_if_false @GROVE1_5434
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_5434
Char.StopFacialTalk(38@)
Text.ClearThisPrint('GRO1_GA')
Char.ShutUpForScriptedSpeech(38@, False)
119@ = 0

:GROVE1_5434
goto @GROVE1_5475

:GROVE1_5441
Group.SetFollowStatus($Players_Group, True)
Group.SetMember($Players_Group, 38@)
Blip.Remove(39@)
$blob_flag = 1
37@ = 0

:GROVE1_5475
goto @GROVE1_5643

:GROVE1_5482
if 
  73@ == 0
goto_if_false @GROVE1_5580
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_5552
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GRO1_GA', 8000, 1)
Char.StartFacialTalk(38@, 999999)
Char.ShutUpForScriptedSpeech(38@, True)

:GROVE1_5552
119@ = 1
117@ = 1
73@ = 1
goto @GROVE1_5643

:GROVE1_5580
if 
  119@ == 1
goto_if_false @GROVE1_5643
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_5643
Char.StopFacialTalk(38@)
Text.ClearThisPrint('GRO1_GA')
Char.ShutUpForScriptedSpeech(38@, False)
119@ = 0

:GROVE1_5643
goto @GROVE1_4467

:GROVE1_5650
Text.PrintNow('GM1_3', 8000, 1)
TIMERB = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 3
gosub @GROVE1_47
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_5739
$trip_skip_M5 = Char.GetHealth(38@)
goto @GROVE1_5796

:GROVE1_5739
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
Blip.Remove(40@)
Text.PrintNow('GM1_4', 5000, 1)
if 
  37@ == 1
goto_if_false @GROVE1_5789
Blip.Remove(39@)

:GROVE1_5789
goto @GROVE1_18790

:GROVE1_5796
$trip_skip_M5 /= 10
Hud.DisplayCounterWithString($trip_skip_M5, CounterDisplay.Bar, 'GM1_7')
119@ = 0

:GROVE1_5826
if or
  82@ <> 1
  not Char.IsGroupMember(38@, $Players_Group)
goto_if_false @GROVE1_7131
wait 0
if 
  116@ == 0
goto_if_false @GROVE1_5911
if 
  TIMERB >= 5000
goto_if_false @GROVE1_5911
Text.ClearThisPrint('GM1_3')
116@ = 1

:GROVE1_5911
if 
  116@ == 1
goto_if_false @GROVE1_6153
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_6096
if 
  Char.IsGroupMember(38@, $Players_Group)
goto_if_false @GROVE1_6063
if 
  Char.LocateAnyMeansChar3D(38@, $scplayer, 10.0, 10.0, 8.0, False)
goto_if_false @GROVE1_6056
if and
  Char.IsOnFoot($scplayer)
  Char.IsOnFoot(38@)
goto_if_false @GROVE1_6028
gosub @GROVE1_19474

:GROVE1_6028
if and
  Char.IsInAnyCar($scplayer)
  Char.IsInAnyCar(38@)
goto_if_false @GROVE1_6056
gosub @GROVE1_19474

:GROVE1_6056
goto @GROVE1_6089

:GROVE1_6063
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint('GRO1_KA')
Text.ClearThisPrint('GRO1_KB')

:GROVE1_6089
goto @GROVE1_6153

:GROVE1_6096
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
Blip.Remove(40@)
Text.PrintNow('GM1_4', 5000, 1)
if 
  37@ == 1
goto_if_false @GROVE1_6146
Blip.Remove(39@)

:GROVE1_6146
goto @GROVE1_18790

:GROVE1_6153
77@ = Zone.GetGangStrength('GLN1', GangType.Ballas)
118@ = Zone.GetGangStrength('GLN1', GangType.Grove)
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_6254
Text.PrintNow('GM1_4', 5000, 1)
if 
  37@ == 1
goto_if_false @GROVE1_6240
Blip.Remove(39@)

:GROVE1_6240
goto @GROVE1_18790
goto @GROVE1_6955

:GROVE1_6254
$trip_skip_M5 = Char.GetHealth(38@)
$trip_skip_M5 /= 10
if 
  117@ == 1
goto_if_false @GROVE1_6320
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_6320
Text.ClearThisPrint('GRO1_GA')
117@ = 0

:GROVE1_6320
if and
  not Char.IsGroupMember(38@, $Players_Group)
  37@ == 0
goto_if_false @GROVE1_6398
39@ = Blip.AddForChar(38@)
Blip.SetAsFriendly(39@, True)
Text.PrintNow('GM1_2', 8000, 1)
$blob_flag = 0
73@ = 0
37@ = 1

:GROVE1_6398
if 
  37@ == 1
goto_if_false @GROVE1_6955
if 
  Char.LocateAnyMeansChar2D($scplayer, 38@, 8.0, 8.0, False)
goto_if_false @GROVE1_6955
if 
  not Char.IsInFlyingVehicle($scplayer)
goto_if_false @GROVE1_6794
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @GROVE1_6753
83@ = Char.StoreCarIsIn($scplayer)
84@ = Car.GetMaximumNumberOfPassengers(83@)
85@ = Car.GetNumberOfPassengers(83@)
set_lvar_int_to_lvar_int 86@ = 84@
sub_int_lvar_from_int_lvar 86@ -= 85@
if 
  86@ >= 1
goto_if_false @GROVE1_6585
Group.SetFollowStatus($Players_Group, True)
Group.SetMember($Players_Group, 38@)
Blip.Remove(39@)
$blob_flag = 1
87@ = 0
37@ = 0
goto @GROVE1_6746

:GROVE1_6585
if 
  87@ == 0
goto_if_false @GROVE1_6683
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_6655
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GRO1_GA', 8000, 1)
Char.StartFacialTalk(38@, 999999)
Char.ShutUpForScriptedSpeech(38@, True)

:GROVE1_6655
119@ = 1
117@ = 1
87@ = 1
goto @GROVE1_6746

:GROVE1_6683
if 
  119@ == 1
goto_if_false @GROVE1_6746
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_6746
Char.StopFacialTalk(38@)
Text.ClearThisPrint('GRO1_GA')
Char.ShutUpForScriptedSpeech(38@, False)
119@ = 0

:GROVE1_6746
goto @GROVE1_6787

:GROVE1_6753
Group.SetFollowStatus($Players_Group, True)
Group.SetMember($Players_Group, 38@)
Blip.Remove(39@)
$blob_flag = 1
37@ = 0

:GROVE1_6787
goto @GROVE1_6955

:GROVE1_6794
if 
  73@ == 0
goto_if_false @GROVE1_6892
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_6864
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GRO1_GA', 8000, 1)
Char.StartFacialTalk(38@, 999999)
Char.ShutUpForScriptedSpeech(38@, True)

:GROVE1_6864
119@ = 1
117@ = 1
73@ = 1
goto @GROVE1_6955

:GROVE1_6892
if 
  119@ == 1
goto_if_false @GROVE1_6955
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_6955
Char.StopFacialTalk(38@)
Text.ClearThisPrint('GRO1_GA')
Char.ShutUpForScriptedSpeech(38@, False)
119@ = 0

:GROVE1_6955
if 
  77@ == 0
goto_if_false @GROVE1_6980
82@ = 1

:GROVE1_6980
if 
  Player.IsInInfoZone($player1, 'GLN1')
goto_if_false @GROVE1_7019
81@ = 1
goto @GROVE1_7124

:GROVE1_7019
if 
  not Game.IsGangWarGoingOn
goto_if_false @GROVE1_7117
if 
  Char.IsGroupMember(38@, $Players_Group)
goto_if_false @GROVE1_7110
if 
  118@ == 0
goto_if_false @GROVE1_7110
if 
  88@ == 0
goto_if_false @GROVE1_7110
Text.PrintNow('GM1_16', 8000, 1)
88@ = 1

:GROVE1_7110
goto @GROVE1_7124

:GROVE1_7117
88@ = 0

:GROVE1_7124
goto @GROVE1_5826

:GROVE1_7131
Blip.Remove(40@)
Text.ClearThisPrint('GM1_16')
Text.ClearThisPrint('GRO1_GA')
Text.ClearThisPrint('GM1_2')
Text.ClearThisPrint('GM1_4')
Text.ClearThisPrint('GM1_3')
Game.CanTriggerGangWarWhenOnAMission(False)
wait 5000
ENTEXT_63()

:GROVE1_7207
if 
  $player_is_completely_safe <> 1
goto_if_false @GROVE1_7287
wait 0
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_7273
Text.PrintNow('GM1_4', 5000, 1)
Blip.Remove(39@)
goto @GROVE1_18790

:GROVE1_7273
ENTEXT_63()
goto @GROVE1_7207

:GROVE1_7287
Player.SetControl($player1, False)
Game.SetPoliceIgnorePlayer($player1, True)
Game.SetEveryoneIgnorePlayer($player1, True)
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_7346
Char.SetProofs(38@, True, True, True, True, True)
goto @GROVE1_7369

:GROVE1_7346
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_7369
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:GROVE1_7384
if 
  Camera.GetFadingStatus
goto_if_false @GROVE1_7408
wait 0
goto @GROVE1_7384

:GROVE1_7408
Player.MakeGangDisappear
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @GROVE1_7504
Streaming.LoadScene(2038.184, -1143.772, 23.455)
World.ClearArea(2038.184, -1143.772, 23.455, 3.0, True)
Char.SetCoordinates($scplayer, 2038.184, -1143.772, 23.455)
Char.SetHeading($scplayer, 56.5)
goto @GROVE1_7601

:GROVE1_7504
90@ = Char.StoreCarIsIn($scplayer)
Char.WarpFromCarToCoord($scplayer, 2038.184, -1143.772, 23.455)

:GROVE1_7532
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @GROVE1_7591
wait 0
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_7568

:GROVE1_7568
if 
  Car.IsDead(90@)
goto_if_false @GROVE1_7584

:GROVE1_7584
goto @GROVE1_7532

:GROVE1_7591
Char.SetHeading($scplayer, 56.5)

:GROVE1_7601
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_7791
if 
  not Char.IsInAnyCar(38@)
goto_if_false @GROVE1_7694
World.ClearArea(2037.048, -1144.896, 23.487, 3.0, True)
Char.SetCoordinates($scplayer, 2037.048, -1144.896, 23.487)
Char.SetHeading(38@, 56.5)
goto @GROVE1_7791

:GROVE1_7694
90@ = Char.StoreCarIsIn(38@)
Char.WarpFromCarToCoord(38@, 2037.048, -1144.896, 23.487)

:GROVE1_7722
if 
  Char.IsInAnyCar(38@)
goto_if_false @GROVE1_7781
wait 0
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_7758

:GROVE1_7758
if 
  Car.IsDead(90@)
goto_if_false @GROVE1_7774

:GROVE1_7774
goto @GROVE1_7722

:GROVE1_7781
Char.SetHeading(38@, 56.5)

:GROVE1_7791
World.ClearArea(2038.184, -1143.772, 23.455, 6.0, True)
Hud.SwitchWidescreen(True)
World.ClearArea(2006.356, -1125.663, 25.6347, 1.0, True)
Camera.SetFixedPosition(2006.356, -1125.663, 25.6347, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2005.666, -1124.966, 25.8323, SwitchType.JumpCut)
World.ClearArea(1992.437, -1120.185, 25.813, 4.0, False)
76@ = Car.Create(411, 1992.437, -1120.185, 25.813)
Car.SetHeading(76@, 260.0)
Car.LockDoors(76@, CarLock.Locked)
Streaming.RequestCollision(1994.668, -1119.022)
Streaming.LoadSceneInDirection(1994.668, -1119.022, 25.813, 56.5)
World.ClearArea(1994.668, -1119.022, 25.813, 2.0, False)
42@ = Char.Create(PedType.Mission2, 102, 1994.668, -1119.022, 25.813)
Char.GiveWeapon(42@, WeaponType.Ak47, 30000)
Char.SetHeading(42@, 207.71)
Char.SetDecisionMaker(42@, 35@)
Task.PlayAnim(42@, "WEAPON_CROUCH", "PED", 4.0, True, False, False, False, -1)
Char.SetStayInSamePlace(42@, True)
Task.KillCharOnFoot(42@, $scplayer)
Char.SetIsTargetPriority(42@, True)
Char.SetRelationship(42@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(42@, RelationshipType.Hate, PedType.Mission1)
World.ClearArea(2005.848, -1116.5, 26.179, 2.0, False)
45@ = Char.Create(PedType.Mission2, 104, 2005.848, -1116.5, 26.179)
Char.GiveWeapon(45@, WeaponType.Ak47, 30000)
Char.SetHeading(45@, 185.395)
Char.SetDecisionMaker(45@, 35@)
Task.PlayAnim(45@, "WEAPON_CROUCH", "PED", 4.0, True, False, False, False, -1)
Char.SetStayInSamePlace(45@, True)
Task.KillCharOnFoot(45@, $scplayer)
Char.SetIsTargetPriority(45@, True)
Char.SetRelationship(45@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(45@, RelationshipType.Hate, PedType.Mission1)
World.ClearArea(2002.672, -1116.134, 26.172, 2.0, False)
48@ = Char.Create(PedType.Mission2, 102, 2002.672, -1116.134, 26.172)
Char.GiveWeapon(48@, WeaponType.Ak47, 30000)
Char.SetHeading(48@, 200.691)
Char.SetDecisionMaker(48@, 35@)
Task.PlayAnim(48@, "WEAPON_CROUCH", "PED", 4.0, True, False, False, False, -1)
Char.SetStayInSamePlace(48@, True)
Task.KillCharOnFoot(48@, $scplayer)
Char.SetIsTargetPriority(48@, True)
Char.SetRelationship(48@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(48@, RelationshipType.Hate, PedType.Mission1)
World.ClearArea(1988.934, -1120.135, 25.813, 2.0, False)
51@ = Char.Create(PedType.Mission2, 104, 1988.934, -1120.135, 25.813)
Char.GiveWeapon(51@, WeaponType.Ak47, 30000)
Char.SetHeading(51@, 220.163)
Char.SetDecisionMaker(51@, 35@)
Char.SetStayInSamePlace(51@, True)
Task.KillCharOnFoot(51@, $scplayer)
Char.SetIsTargetPriority(51@, True)
Char.SetRelationship(51@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(51@, RelationshipType.Hate, PedType.Mission1)
Task.PlayAnim(48@, "WEAPON_CROUCH", "PED", 4.0, True, False, False, False, -1)
World.ClearArea(1994.062, -1115.618, 25.813, 2.0, False)
54@ = Char.Create(PedType.Mission2, 104, 1994.062, -1115.618, 25.813)
Char.GiveWeapon(54@, WeaponType.Ak47, 30000)
Char.SetHeading(54@, 235.0)
Char.SetDecisionMaker(54@, 34@)
Char.SetStayInSamePlace(54@, True)
Char.SetIsTargetPriority(54@, True)
Char.SetRelationship(54@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(54@, RelationshipType.Hate, PedType.Mission1)
World.ClearArea(1997.48, -1114.998, 25.813, 2.0, False)
58@ = Char.Create(PedType.Mission2, 102, 1997.48, -1118.998, 25.813)
Char.GiveWeapon(58@, WeaponType.Ak47, 30000)
Char.SetHeading(58@, 176.0)
Char.SetDecisionMaker(58@, 34@)
Char.SetStayInSamePlace(58@, True)
Char.SetIsTargetPriority(58@, True)
Char.SetRelationship(58@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(58@, RelationshipType.Hate, PedType.Mission1)
World.ClearArea(2008.344, -1113.057, 25.584, 2.0, False)
62@ = Char.Create(PedType.Mission2, 104, 2008.344, -1113.057, 25.584)
Char.GiveWeapon(62@, WeaponType.Ak47, 30000)
Char.SetHeading(62@, 177.195)
Char.SetDecisionMaker(62@, 34@)
Char.SetStayInSamePlace(62@, True)
Char.SetIsTargetPriority(62@, True)
Char.SetRelationship(62@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(62@, RelationshipType.Hate, PedType.Mission1)
World.ClearArea(2014.768, -1111.447, 25.235, 2.0, False)
66@ = Char.Create(PedType.Mission2, 102, 2014.768, -1111.447, 25.235)
Char.GiveWeapon(66@, WeaponType.Ak47, 30000)
Char.SetHeading(66@, 164.89)
Char.SetDecisionMaker(66@, 34@)
Char.SetIsTargetPriority(66@, True)
Char.SetRelationship(66@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(66@, RelationshipType.Hate, PedType.Mission1)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)
93@ = 0
94@ = 0
95@ = 0
96@ = 2
gosub @GROVE1_47
gosub @GROVE1_19474

:GROVE1_9098
if 
  Camera.GetFadingStatus
goto_if_false @GROVE1_9122
wait 0
goto @GROVE1_9098

:GROVE1_9122
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_9152
gosub @GROVE1_19474
goto @GROVE1_9213

:GROVE1_9152
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Blip.Remove(40@)
Text.PrintNow('GM1_4', 5000, 1)
if 
  37@ == 1
goto_if_false @GROVE1_9206
Blip.Remove(39@)

:GROVE1_9206
goto @GROVE1_18790

:GROVE1_9213
skip_cutscene_start_internal @GROVE1_9390

:GROVE1_9220
if 
  93@ <> 3
goto_if_false @GROVE1_9390
wait 0
gosub @GROVE1_20514
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_9279
gosub @GROVE1_19474
goto @GROVE1_9340

:GROVE1_9279
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Blip.Remove(40@)
Text.PrintNow('GM1_4', 5000, 1)
if 
  37@ == 1
goto_if_false @GROVE1_9333
Blip.Remove(39@)

:GROVE1_9333
goto @GROVE1_18790

:GROVE1_9340
if 
  93@ > 0
goto_if_false @GROVE1_9383
if 
  71@ == 0
goto_if_false @GROVE1_9383
gosub @GROVE1_19149

:GROVE1_9383
goto @GROVE1_9220

:GROVE1_9390
skip_cutscene_end 
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:GROVE1_9417
if 
  Camera.GetFadingStatus
goto_if_false @GROVE1_9441
wait 0
goto @GROVE1_9417

:GROVE1_9441
Player.MakeGangReappear
if 
  44@ == 0
goto_if_false @GROVE1_9511
if 
  not Char.IsDead(42@)
goto_if_false @GROVE1_9492
43@ = Blip.AddForChar(42@)
goto @GROVE1_9511

:GROVE1_9492
Blip.Remove(43@)
41@ += 1
44@ = 1

:GROVE1_9511
if 
  47@ == 0
goto_if_false @GROVE1_9579
if 
  not Char.IsDead(45@)
goto_if_false @GROVE1_9560
46@ = Blip.AddForChar(45@)
goto @GROVE1_9579

:GROVE1_9560
Blip.Remove(46@)
41@ += 1
47@ = 1

:GROVE1_9579
if 
  50@ == 0
goto_if_false @GROVE1_9647
if 
  not Char.IsDead(48@)
goto_if_false @GROVE1_9628
49@ = Blip.AddForChar(48@)
goto @GROVE1_9647

:GROVE1_9628
Blip.Remove(49@)
41@ += 1
50@ = 1

:GROVE1_9647
if 
  53@ == 0
goto_if_false @GROVE1_9715
if 
  not Char.IsDead(51@)
goto_if_false @GROVE1_9696
52@ = Blip.AddForChar(51@)
goto @GROVE1_9715

:GROVE1_9696
Blip.Remove(52@)
41@ += 1
53@ = 1

:GROVE1_9715
if 
  56@ == 0
goto_if_false @GROVE1_9783
if 
  not Char.IsDead(54@)
goto_if_false @GROVE1_9764
55@ = Blip.AddForChar(54@)
goto @GROVE1_9783

:GROVE1_9764
Blip.Remove(55@)
41@ += 1
56@ = 1

:GROVE1_9783
if 
  60@ == 0
goto_if_false @GROVE1_9851
if 
  not Char.IsDead(58@)
goto_if_false @GROVE1_9832
59@ = Blip.AddForChar(58@)
goto @GROVE1_9851

:GROVE1_9832
Blip.Remove(59@)
41@ += 1
60@ = 1

:GROVE1_9851
if 
  64@ == 0
goto_if_false @GROVE1_9919
if 
  not Char.IsDead(62@)
goto_if_false @GROVE1_9900
63@ = Blip.AddForChar(62@)
goto @GROVE1_9919

:GROVE1_9900
Blip.Remove(63@)
41@ += 1
64@ = 1

:GROVE1_9919
if 
  68@ == 0
goto_if_false @GROVE1_9987
if 
  not Char.IsDead(66@)
goto_if_false @GROVE1_9968
67@ = Blip.AddForChar(66@)
goto @GROVE1_9987

:GROVE1_9968
Blip.Remove(67@)
41@ += 1
68@ = 1

:GROVE1_9987
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:GROVE1_10010
if 
  Camera.GetFadingStatus
goto_if_false @GROVE1_10034
wait 0
goto @GROVE1_10010

:GROVE1_10034
Player.SetControl($player1, True)
Game.SetPoliceIgnorePlayer($player1, False)
Game.SetEveryoneIgnorePlayer($player1, False)
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_10093
Char.SetProofs(38@, False, False, False, False, False)
goto @GROVE1_10116

:GROVE1_10093
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_10116
Text.PrintNow('GM1_9', 8000, 1)
119@ = 0

:GROVE1_10139
if or
  41@ <> 8
  not Char.IsGroupMember(38@, $Players_Group)
goto_if_false @GROVE1_14451
wait 0
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_10252
Text.PrintNow('GM1_4', 5000, 1)
if 
  37@ == 1
goto_if_false @GROVE1_10238
Blip.Remove(39@)

:GROVE1_10238
goto @GROVE1_18790
goto @GROVE1_11505

:GROVE1_10252
$trip_skip_M5 = Char.GetHealth(38@)
$trip_skip_M5 /= 10
if 
  117@ == 1
goto_if_false @GROVE1_10318
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_10318
Text.ClearThisPrint('GRO1_GA')
117@ = 0

:GROVE1_10318
if and
  not Char.IsGroupMember(38@, $Players_Group)
  37@ == 0
goto_if_false @GROVE1_10564
39@ = Blip.AddForChar(38@)
Blip.SetAsFriendly(39@, True)
Text.PrintNow('GM1_2', 8000, 1)
$blob_flag = 0
73@ = 0
if 
  not Char.IsDead(42@)
goto_if_false @GROVE1_10410
Blip.Remove(43@)

:GROVE1_10410
if 
  not Char.IsDead(45@)
goto_if_false @GROVE1_10431
Blip.Remove(46@)

:GROVE1_10431
if 
  not Char.IsDead(48@)
goto_if_false @GROVE1_10452
Blip.Remove(49@)

:GROVE1_10452
if 
  not Char.IsDead(51@)
goto_if_false @GROVE1_10473
Blip.Remove(52@)

:GROVE1_10473
if 
  not Char.IsDead(54@)
goto_if_false @GROVE1_10494
Blip.Remove(55@)

:GROVE1_10494
if 
  not Char.IsDead(58@)
goto_if_false @GROVE1_10515
Blip.Remove(59@)

:GROVE1_10515
if 
  not Char.IsDead(62@)
goto_if_false @GROVE1_10536
Blip.Remove(63@)

:GROVE1_10536
if 
  not Char.IsDead(66@)
goto_if_false @GROVE1_10557
Blip.Remove(67@)

:GROVE1_10557
37@ = 1

:GROVE1_10564
if 
  37@ == 1
goto_if_false @GROVE1_11505
if 
  Char.LocateAnyMeansChar2D($scplayer, 38@, 8.0, 8.0, False)
goto_if_false @GROVE1_11505
if 
  not Char.IsInFlyingVehicle($scplayer)
goto_if_false @GROVE1_11344
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @GROVE1_11111
83@ = Char.StoreCarIsIn($scplayer)
84@ = Car.GetMaximumNumberOfPassengers(83@)
85@ = Car.GetNumberOfPassengers(83@)
set_lvar_int_to_lvar_int 86@ = 84@
sub_int_lvar_from_int_lvar 86@ -= 85@
if 
  86@ >= 1
goto_if_false @GROVE1_10943
Group.SetFollowStatus($Players_Group, True)
Group.SetMember($Players_Group, 38@)
Blip.Remove(39@)
if 
  not Char.IsDead(42@)
goto_if_false @GROVE1_10747
43@ = Blip.AddForChar(42@)

:GROVE1_10747
if 
  not Char.IsDead(45@)
goto_if_false @GROVE1_10771
46@ = Blip.AddForChar(45@)

:GROVE1_10771
if 
  not Char.IsDead(48@)
goto_if_false @GROVE1_10795
49@ = Blip.AddForChar(48@)

:GROVE1_10795
if 
  not Char.IsDead(51@)
goto_if_false @GROVE1_10819
52@ = Blip.AddForChar(51@)

:GROVE1_10819
if 
  not Char.IsDead(54@)
goto_if_false @GROVE1_10843
55@ = Blip.AddForChar(54@)

:GROVE1_10843
if 
  not Char.IsDead(58@)
goto_if_false @GROVE1_10867
59@ = Blip.AddForChar(58@)

:GROVE1_10867
if 
  not Char.IsDead(62@)
goto_if_false @GROVE1_10891
63@ = Blip.AddForChar(62@)

:GROVE1_10891
if 
  not Char.IsDead(66@)
goto_if_false @GROVE1_10915
67@ = Blip.AddForChar(66@)

:GROVE1_10915
$blob_flag = 1
87@ = 0
37@ = 0
goto @GROVE1_11104

:GROVE1_10943
if 
  87@ == 0
goto_if_false @GROVE1_11041
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_11013
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GRO1_GA', 8000, 1)
Char.StartFacialTalk(38@, 999999)
Char.ShutUpForScriptedSpeech(38@, True)

:GROVE1_11013
119@ = 1
117@ = 1
87@ = 1
goto @GROVE1_11104

:GROVE1_11041
if 
  119@ == 1
goto_if_false @GROVE1_11104
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_11104
Char.StopFacialTalk(38@)
Text.ClearThisPrint('GRO1_GA')
Char.ShutUpForScriptedSpeech(38@, False)
119@ = 0

:GROVE1_11104
goto @GROVE1_11337

:GROVE1_11111
Group.SetFollowStatus($Players_Group, True)
Group.SetMember($Players_Group, 38@)
Blip.Remove(39@)
$blob_flag = 1
if 
  not Char.IsDead(42@)
goto_if_false @GROVE1_11162
43@ = Blip.AddForChar(42@)

:GROVE1_11162
if 
  not Char.IsDead(45@)
goto_if_false @GROVE1_11186
46@ = Blip.AddForChar(45@)

:GROVE1_11186
if 
  not Char.IsDead(48@)
goto_if_false @GROVE1_11210
49@ = Blip.AddForChar(48@)

:GROVE1_11210
if 
  not Char.IsDead(51@)
goto_if_false @GROVE1_11234
52@ = Blip.AddForChar(51@)

:GROVE1_11234
if 
  not Char.IsDead(54@)
goto_if_false @GROVE1_11258
55@ = Blip.AddForChar(54@)

:GROVE1_11258
if 
  not Char.IsDead(58@)
goto_if_false @GROVE1_11282
59@ = Blip.AddForChar(58@)

:GROVE1_11282
if 
  not Char.IsDead(62@)
goto_if_false @GROVE1_11306
63@ = Blip.AddForChar(62@)

:GROVE1_11306
if 
  not Char.IsDead(66@)
goto_if_false @GROVE1_11330
67@ = Blip.AddForChar(66@)

:GROVE1_11330
37@ = 0

:GROVE1_11337
goto @GROVE1_11505

:GROVE1_11344
if 
  73@ == 0
goto_if_false @GROVE1_11442
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_11414
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GRO1_GA', 8000, 1)
Char.StartFacialTalk(38@, 999999)
Char.ShutUpForScriptedSpeech(38@, True)

:GROVE1_11414
119@ = 1
117@ = 1
73@ = 1
goto @GROVE1_11505

:GROVE1_11442
if 
  119@ == 1
goto_if_false @GROVE1_11505
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_11505
Char.StopFacialTalk(38@)
Text.ClearThisPrint('GRO1_GA')
Char.ShutUpForScriptedSpeech(38@, False)
119@ = 0

:GROVE1_11505
if 
  44@ == 0
goto_if_false @GROVE1_11867
if 
  Char.IsDead(42@)
goto_if_false @GROVE1_11565
Blip.Remove(43@)
41@ += 1
44@ = 1
goto @GROVE1_11867

:GROVE1_11565
if 
  70@ == 0
goto_if_false @GROVE1_11631
if or
  Player.IsTargetingChar($player1, 42@)
  Char.HasSpottedChar(42@, $scplayer)
  Char.HasBeenDamagedByWeapon(42@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_11624
70@ = 1

:GROVE1_11624
goto @GROVE1_11867

:GROVE1_11631
if 
  Char.LocateAnyMeansChar3D($scplayer, 42@, 100.0, 100.0, 30.0, False)
goto_if_false @GROVE1_11816
if 
  Char.LocateAnyMeansChar3D($scplayer, 42@, 29.0, 29.0, 30.0, False)
goto_if_false @GROVE1_11755
if 
  122@ == 0
goto_if_false @GROVE1_11748
Char.ClearTasks(42@)
Task.KillCharOnFoot(42@, $scplayer)
Task.StayInSamePlace(42@, True)
122@ = 1

:GROVE1_11748
goto @GROVE1_11809

:GROVE1_11755
if 
  121@ == 0
goto_if_false @GROVE1_11809
Char.ClearTasks(42@)
Task.StayInSamePlace(42@, True)
Task.SetIgnoreWeaponRangeFlag(42@, True)
Task.ShootAtChar(42@, $scplayer, -1)
121@ = 1

:GROVE1_11809
goto @GROVE1_11867

:GROVE1_11816
if or
  121@ == 1
  122@ == 1
goto_if_false @GROVE1_11867
Char.ClearTasks(42@)
Task.StayInSamePlace(42@, True)
122@ = 0
121@ = 0

:GROVE1_11867
if 
  47@ == 0
goto_if_false @GROVE1_12229
if 
  Char.IsDead(45@)
goto_if_false @GROVE1_11927
Blip.Remove(46@)
41@ += 1
47@ = 1
goto @GROVE1_12229

:GROVE1_11927
if 
  70@ == 0
goto_if_false @GROVE1_11993
if or
  Player.IsTargetingChar($player1, 45@)
  Char.HasSpottedChar(45@, $scplayer)
  Char.HasBeenDamagedByWeapon(45@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_11986
70@ = 1

:GROVE1_11986
goto @GROVE1_12229

:GROVE1_11993
if 
  Char.LocateAnyMeansChar3D($scplayer, 45@, 100.0, 100.0, 30.0, False)
goto_if_false @GROVE1_12178
if 
  Char.LocateAnyMeansChar3D($scplayer, 45@, 29.0, 29.0, 30.0, False)
goto_if_false @GROVE1_12117
if 
  124@ == 0
goto_if_false @GROVE1_12110
Char.ClearTasks(45@)
Task.KillCharOnFoot(45@, $scplayer)
Task.StayInSamePlace(45@, True)
124@ = 1

:GROVE1_12110
goto @GROVE1_12171

:GROVE1_12117
if 
  123@ == 0
goto_if_false @GROVE1_12171
Char.ClearTasks(45@)
Task.StayInSamePlace(45@, True)
Task.SetIgnoreWeaponRangeFlag(45@, True)
Task.ShootAtChar(45@, $scplayer, -1)
123@ = 1

:GROVE1_12171
goto @GROVE1_12229

:GROVE1_12178
if or
  123@ == 1
  124@ == 1
goto_if_false @GROVE1_12229
Char.ClearTasks(45@)
Task.StayInSamePlace(45@, True)
124@ = 0
123@ = 0

:GROVE1_12229
if 
  50@ == 0
goto_if_false @GROVE1_12591
if 
  Char.IsDead(48@)
goto_if_false @GROVE1_12289
Blip.Remove(49@)
41@ += 1
50@ = 1
goto @GROVE1_12591

:GROVE1_12289
if 
  70@ == 0
goto_if_false @GROVE1_12355
if or
  Player.IsTargetingChar($player1, 48@)
  Char.HasSpottedChar(48@, $scplayer)
  Char.HasBeenDamagedByWeapon(48@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_12348
70@ = 1

:GROVE1_12348
goto @GROVE1_12591

:GROVE1_12355
if 
  Char.LocateAnyMeansChar3D($scplayer, 48@, 100.0, 100.0, 30.0, False)
goto_if_false @GROVE1_12540
if 
  Char.LocateAnyMeansChar3D($scplayer, 48@, 29.0, 29.0, 30.0, False)
goto_if_false @GROVE1_12479
if 
  126@ == 0
goto_if_false @GROVE1_12472
Char.ClearTasks(48@)
Task.KillCharOnFoot(48@, $scplayer)
Task.StayInSamePlace(48@, True)
126@ = 1

:GROVE1_12472
goto @GROVE1_12533

:GROVE1_12479
if 
  125@ == 0
goto_if_false @GROVE1_12533
Char.ClearTasks(48@)
Task.StayInSamePlace(48@, True)
Task.SetIgnoreWeaponRangeFlag(48@, True)
Task.ShootAtChar(48@, $scplayer, -1)
125@ = 1

:GROVE1_12533
goto @GROVE1_12591

:GROVE1_12540
if or
  125@ == 1
  126@ == 1
goto_if_false @GROVE1_12591
Char.ClearTasks(48@)
Task.StayInSamePlace(48@, True)
126@ = 0
125@ = 0

:GROVE1_12591
if 
  53@ == 0
goto_if_false @GROVE1_12953
if 
  Char.IsDead(51@)
goto_if_false @GROVE1_12651
Blip.Remove(52@)
41@ += 1
53@ = 1
goto @GROVE1_12953

:GROVE1_12651
if 
  70@ == 0
goto_if_false @GROVE1_12717
if or
  Player.IsTargetingChar($player1, 51@)
  Char.HasSpottedChar(51@, $scplayer)
  Char.HasBeenDamagedByWeapon(51@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_12710
70@ = 1

:GROVE1_12710
goto @GROVE1_12953

:GROVE1_12717
if 
  Char.LocateAnyMeansChar3D($scplayer, 51@, 100.0, 100.0, 30.0, False)
goto_if_false @GROVE1_12902
if 
  Char.LocateAnyMeansChar3D($scplayer, 51@, 29.0, 29.0, 30.0, False)
goto_if_false @GROVE1_12841
if 
  128@ == 0
goto_if_false @GROVE1_12834
Char.ClearTasks(51@)
Task.KillCharOnFoot(51@, $scplayer)
Task.StayInSamePlace(51@, True)
128@ = 1

:GROVE1_12834
goto @GROVE1_12895

:GROVE1_12841
if 
  127@ == 0
goto_if_false @GROVE1_12895
Char.ClearTasks(51@)
Task.StayInSamePlace(51@, True)
Task.SetIgnoreWeaponRangeFlag(51@, True)
Task.ShootAtChar(51@, $scplayer, -1)
127@ = 1

:GROVE1_12895
goto @GROVE1_12953

:GROVE1_12902
if or
  127@ == 1
  128@ == 1
goto_if_false @GROVE1_12953
Char.ClearTasks(51@)
Task.StayInSamePlace(51@, True)
128@ = 0
127@ = 0

:GROVE1_12953
if 
  56@ == 0
goto_if_false @GROVE1_13315
if 
  Char.IsDead(54@)
goto_if_false @GROVE1_13013
Blip.Remove(55@)
41@ += 1
56@ = 1
goto @GROVE1_13315

:GROVE1_13013
if 
  70@ == 0
goto_if_false @GROVE1_13079
if or
  Player.IsTargetingChar($player1, 54@)
  Char.HasSpottedChar(54@, $scplayer)
  Char.HasBeenDamagedByWeapon(54@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_13072
70@ = 1

:GROVE1_13072
goto @GROVE1_13315

:GROVE1_13079
if 
  Char.LocateAnyMeansChar3D($scplayer, 54@, 100.0, 100.0, 30.0, False)
goto_if_false @GROVE1_13264
if 
  Char.LocateAnyMeansChar3D($scplayer, 54@, 29.0, 29.0, 30.0, False)
goto_if_false @GROVE1_13203
if 
  130@ == 0
goto_if_false @GROVE1_13196
Char.ClearTasks(54@)
Task.KillCharOnFoot(54@, $scplayer)
Task.StayInSamePlace(54@, True)
130@ = 1

:GROVE1_13196
goto @GROVE1_13257

:GROVE1_13203
if 
  129@ == 0
goto_if_false @GROVE1_13257
Char.ClearTasks(54@)
Task.StayInSamePlace(54@, True)
Task.SetIgnoreWeaponRangeFlag(54@, True)
Task.ShootAtChar(54@, $scplayer, -1)
129@ = 1

:GROVE1_13257
goto @GROVE1_13315

:GROVE1_13264
if or
  129@ == 1
  130@ == 1
goto_if_false @GROVE1_13315
Char.ClearTasks(54@)
Task.StayInSamePlace(54@, True)
130@ = 0
129@ = 0

:GROVE1_13315
if 
  60@ == 0
goto_if_false @GROVE1_13677
if 
  Char.IsDead(58@)
goto_if_false @GROVE1_13375
Blip.Remove(59@)
41@ += 1
60@ = 1
goto @GROVE1_13677

:GROVE1_13375
if 
  70@ == 0
goto_if_false @GROVE1_13441
if or
  Player.IsTargetingChar($player1, 58@)
  Char.HasSpottedChar(58@, $scplayer)
  Char.HasBeenDamagedByWeapon(58@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_13434
70@ = 1

:GROVE1_13434
goto @GROVE1_13677

:GROVE1_13441
if 
  Char.LocateAnyMeansChar3D($scplayer, 58@, 100.0, 100.0, 30.0, False)
goto_if_false @GROVE1_13626
if 
  Char.LocateAnyMeansChar3D($scplayer, 58@, 29.0, 29.0, 30.0, False)
goto_if_false @GROVE1_13565
if 
  132@ == 0
goto_if_false @GROVE1_13558
Char.ClearTasks(58@)
Task.KillCharOnFoot(58@, $scplayer)
Task.StayInSamePlace(58@, True)
132@ = 1

:GROVE1_13558
goto @GROVE1_13619

:GROVE1_13565
if 
  131@ == 0
goto_if_false @GROVE1_13619
Char.ClearTasks(58@)
Task.StayInSamePlace(58@, True)
Task.SetIgnoreWeaponRangeFlag(58@, True)
Task.ShootAtChar(58@, $scplayer, -1)
131@ = 1

:GROVE1_13619
goto @GROVE1_13677

:GROVE1_13626
if or
  131@ == 1
  132@ == 1
goto_if_false @GROVE1_13677
Char.ClearTasks(58@)
Task.StayInSamePlace(58@, True)
132@ = 0
131@ = 0

:GROVE1_13677
if 
  64@ == 0
goto_if_false @GROVE1_14039
if 
  Char.IsDead(62@)
goto_if_false @GROVE1_13737
Blip.Remove(63@)
41@ += 1
64@ = 1
goto @GROVE1_14039

:GROVE1_13737
if 
  70@ == 0
goto_if_false @GROVE1_13803
if or
  Player.IsTargetingChar($player1, 62@)
  Char.HasSpottedChar(62@, $scplayer)
  Char.HasBeenDamagedByWeapon(62@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_13796
70@ = 1

:GROVE1_13796
goto @GROVE1_14039

:GROVE1_13803
if 
  Char.LocateAnyMeansChar3D($scplayer, 62@, 100.0, 100.0, 30.0, False)
goto_if_false @GROVE1_13988
if 
  Char.LocateAnyMeansChar3D($scplayer, 62@, 29.0, 29.0, 30.0, False)
goto_if_false @GROVE1_13927
if 
  134@ == 0
goto_if_false @GROVE1_13920
Char.ClearTasks(62@)
Task.KillCharOnFoot(62@, $scplayer)
Task.StayInSamePlace(62@, True)
134@ = 1

:GROVE1_13920
goto @GROVE1_13981

:GROVE1_13927
if 
  133@ == 0
goto_if_false @GROVE1_13981
Char.ClearTasks(62@)
Task.StayInSamePlace(62@, True)
Task.SetIgnoreWeaponRangeFlag(62@, True)
Task.ShootAtChar(62@, $scplayer, -1)
133@ = 1

:GROVE1_13981
goto @GROVE1_14039

:GROVE1_13988
if or
  133@ == 1
  134@ == 1
goto_if_false @GROVE1_14039
Char.ClearTasks(62@)
Task.StayInSamePlace(62@, True)
134@ = 0
133@ = 0

:GROVE1_14039
if 
  68@ == 0
goto_if_false @GROVE1_14401
if 
  Char.IsDead(66@)
goto_if_false @GROVE1_14099
Blip.Remove(67@)
41@ += 1
68@ = 1
goto @GROVE1_14401

:GROVE1_14099
if 
  70@ == 0
goto_if_false @GROVE1_14165
if or
  Player.IsTargetingChar($player1, 66@)
  Char.HasSpottedChar(66@, $scplayer)
  Char.HasBeenDamagedByWeapon(66@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_14158
70@ = 1

:GROVE1_14158
goto @GROVE1_14401

:GROVE1_14165
if 
  Char.LocateAnyMeansChar3D($scplayer, 66@, 100.0, 100.0, 30.0, False)
goto_if_false @GROVE1_14350
if 
  Char.LocateAnyMeansChar3D($scplayer, 66@, 29.0, 29.0, 30.0, False)
goto_if_false @GROVE1_14289
if 
  136@ == 0
goto_if_false @GROVE1_14282
Char.ClearTasks(66@)
Task.KillCharOnFoot(66@, $scplayer)
Task.StayInSamePlace(66@, True)
136@ = 1

:GROVE1_14282
goto @GROVE1_14343

:GROVE1_14289
if 
  135@ == 0
goto_if_false @GROVE1_14343
Char.ClearTasks(66@)
Task.StayInSamePlace(66@, True)
Task.SetIgnoreWeaponRangeFlag(66@, True)
Task.ShootAtChar(66@, $scplayer, -1)
135@ = 1

:GROVE1_14343
goto @GROVE1_14401

:GROVE1_14350
if or
  135@ == 1
  136@ == 1
goto_if_false @GROVE1_14401
Char.ClearTasks(66@)
Task.StayInSamePlace(66@, True)
136@ = 0
135@ = 0

:GROVE1_14401
if 
  70@ == 1
goto_if_false @GROVE1_14444
if 
  71@ == 0
goto_if_false @GROVE1_14444
gosub @GROVE1_19149

:GROVE1_14444
goto @GROVE1_10139

:GROVE1_14451
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
Text.PrintNow('GM1_15', 8000, 1)
36@ = Blip.AddForCoord(2000.269, -1117.084, 25.821)
$blob_flag = 1
119@ = 0

:GROVE1_14507
if or
  not Char.LocateOnFoot3D($scplayer, 2000.269, -1117.084, 25.821, 2.0, 2.0, 2.0, $blob_flag)
  not Char.IsGroupMember(38@, $Players_Group)
goto_if_false @GROVE1_15390
wait 0
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_14637
Text.PrintNow('GM1_4', 5000, 1)
if 
  37@ == 1
goto_if_false @GROVE1_14623
Blip.Remove(39@)

:GROVE1_14623
goto @GROVE1_18790
goto @GROVE1_15383

:GROVE1_14637
$trip_skip_M5 = Char.GetHealth(38@)
$trip_skip_M5 /= 10
if 
  117@ == 1
goto_if_false @GROVE1_14703
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_14703
Text.ClearThisPrint('GRO1_GA')
117@ = 0

:GROVE1_14703
if and
  not Char.IsGroupMember(38@, $Players_Group)
  37@ == 0
goto_if_false @GROVE1_14786
Blip.Remove(36@)
39@ = Blip.AddForChar(38@)
Blip.SetAsFriendly(39@, True)
Text.PrintNow('GM1_2', 8000, 1)
$blob_flag = 0
73@ = 0
37@ = 1

:GROVE1_14786
if 
  37@ == 1
goto_if_false @GROVE1_15383
if 
  Char.LocateAnyMeansChar2D($scplayer, 38@, 8.0, 8.0, False)
goto_if_false @GROVE1_15383
if 
  not Char.IsInFlyingVehicle($scplayer)
goto_if_false @GROVE1_15222
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @GROVE1_15161
83@ = Char.StoreCarIsIn($scplayer)
84@ = Car.GetMaximumNumberOfPassengers(83@)
85@ = Car.GetNumberOfPassengers(83@)
set_lvar_int_to_lvar_int 86@ = 84@
sub_int_lvar_from_int_lvar 86@ -= 85@
if 
  86@ >= 1
goto_if_false @GROVE1_14993
Group.SetFollowStatus($Players_Group, True)
Group.SetMember($Players_Group, 38@)
Blip.Remove(39@)
36@ = Blip.AddForCoord(2000.269, -1117.084, 25.821)
$blob_flag = 1
87@ = 0
37@ = 0
goto @GROVE1_15154

:GROVE1_14993
if 
  87@ == 0
goto_if_false @GROVE1_15091
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_15063
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GRO1_GA', 8000, 1)
Char.StartFacialTalk(38@, 999999)
Char.ShutUpForScriptedSpeech(38@, True)

:GROVE1_15063
119@ = 1
117@ = 1
87@ = 1
goto @GROVE1_15154

:GROVE1_15091
if 
  119@ == 1
goto_if_false @GROVE1_15154
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_15154
Char.StopFacialTalk(38@)
Text.ClearThisPrint('GRO1_GA')
Char.ShutUpForScriptedSpeech(38@, False)
119@ = 0

:GROVE1_15154
goto @GROVE1_15215

:GROVE1_15161
Group.SetFollowStatus($Players_Group, True)
Group.SetMember($Players_Group, 38@)
Blip.Remove(39@)
36@ = Blip.AddForCoord(2000.269, -1117.084, 25.821)
$blob_flag = 1
37@ = 0

:GROVE1_15215
goto @GROVE1_15383

:GROVE1_15222
if 
  73@ == 0
goto_if_false @GROVE1_15320
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_15292
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GRO1_GA', 8000, 1)
Char.StartFacialTalk(38@, 999999)
Char.ShutUpForScriptedSpeech(38@, True)

:GROVE1_15292
119@ = 1
117@ = 1
73@ = 1
goto @GROVE1_15383

:GROVE1_15320
if 
  119@ == 1
goto_if_false @GROVE1_15383
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_15383
Char.StopFacialTalk(38@)
Text.ClearThisPrint('GRO1_GA')
Char.ShutUpForScriptedSpeech(38@, False)
119@ = 0

:GROVE1_15383
goto @GROVE1_14507

:GROVE1_15390
Hud.ClearCounter($trip_skip_M5)
Blip.Remove(36@)
Text.ClearPrints
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Game.SetPoliceIgnorePlayer($player1, True)
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_15461
Char.SetProofs(38@, True, True, True, True, True)
goto @GROVE1_15484

:GROVE1_15461
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_15484
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:GROVE1_15499
if 
  Camera.GetFadingStatus
goto_if_false @GROVE1_15523
wait 0
goto @GROVE1_15499

:GROVE1_15523
Player.MakeGangDisappear
Char.Delete(38@)
Streaming.MarkModelAsNoLongerNeeded(104)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(355)
Streaming.SetAreaVisible(11)
Player.MakeSafeForCutscene($player1)
Char.SetCoordinates($scplayer, 1044.88, -1334.32, 12.55)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:GROVE1_15587
if 
  Camera.GetFadingStatus
goto_if_false @GROVE1_15611
wait 0
goto @GROVE1_15587

:GROVE1_15611
Streaming.SetAreaVisible(2)
Cutscene.Load('GROVE1C')

:GROVE1_15626
if 
  not Cutscene.HasLoaded
goto_if_false @GROVE1_15650
wait 0
goto @GROVE1_15626

:GROVE1_15650
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:GROVE1_15659
if 
  not Cutscene.HasFinished
goto_if_false @GROVE1_15683
wait 0
goto @GROVE1_15659

:GROVE1_15683
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:GROVE1_15696
if 
  Camera.GetFadingStatus
goto_if_false @GROVE1_15720
wait 0
goto @GROVE1_15696

:GROVE1_15720
Cutscene.Clear
Streaming.SetAreaVisible(0)
Streaming.LoadSpecialCharacter(1, 'SWEET')
Streaming.LoadSpecialCharacter(2, 'BBTHIN')
Streaming.RequestAnimation("GANGS")
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13020)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 13050)

:GROVE1_15775
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasSpecialCharacterLoaded(2)
  not Streaming.HasAnimationLoaded("GANGS")
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_15822
wait 0
goto @GROVE1_15775

:GROVE1_15822
Hud.SwitchWidescreen(True)
Path.SwitchPedRoadsOff(1965.968, -1096.668, 20.0, 2081.465, -1163.309, 30.0)
World.ClearArea(2003.217, -1132.552, 24.278, 2.0, False)
75@ = Car.Create(411, 2003.217, -1132.552, 24.278)
Car.SetProofs(75@, True, True, True, True, True)
Car.SetHeading(75@, 90.0)
72@ = Char.CreateAsPassenger(75@, PedType.Mission1, 291, 0)
Char.SetProofs(72@, True, True, True, True, True)
Char.ShutUpForScriptedSpeech(72@, True)
Streaming.RequestCollision(2002.105, -1129.403)
World.ClearArea(2002.105, -1129.403, 24.484, 1.0, True)
Char.SetCoordinates($scplayer, 2002.105, -1129.403, 24.484)
Char.SetHeading($scplayer, 270.0)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.ShutUpForScriptedSpeech($scplayer, True)
Streaming.LoadScene(2002.105, -1129.403, 24.484)
World.ClearArea(2003.105, -1129.403, 24.484, 1.0, True)
38@ = Char.Create(PedType.Mission1, 290, 2003.105, -1129.403, 24.484)
Char.SetProofs(38@, True, True, True, True, True)
Char.SetHeading(38@, 90.0)
Char.ShutUpForScriptedSpeech(38@, True)
World.ClearArea(2016.976, -1130.804, 24.62, 60.0, True)
Camera.SetFixedPosition(2006.711, -1126.867, 24.6168, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2006.004, -1127.551, 24.7956, SwitchType.JumpCut)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1500, Fade.In)

:GROVE1_16235
if 
  Camera.GetFadingStatus
goto_if_false @GROVE1_16259
wait 0
goto @GROVE1_16235

:GROVE1_16259
skip_cutscene_start_internal @GROVE1_18550
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_16356
Task.PlayAnim(38@, "HNDSHKFA", "GANGS", 4.0, False, False, False, False, -1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GRO1_BA', 10000, 1)
Char.StartFacialTalk(38@, 999999)
goto @GROVE1_16389

:GROVE1_16356
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_16389
Task.PlayAnim($scplayer, "HNDSHKFA", "GANGS", 4.0, False, False, False, False, -1)

:GROVE1_16426
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_16599
wait 0
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_16494
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_16494
if 
  Char.IsDead(72@)
goto_if_false @GROVE1_16543
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_16543
if 
  Car.IsDead(75@)
goto_if_false @GROVE1_16592
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_16592
goto @GROVE1_16426

:GROVE1_16599
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint('GRO1_BA')
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_16642
Char.StopFacialTalk(38@)
goto @GROVE1_16675

:GROVE1_16642
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_16675
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13002)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GRO1_BB', 10000, 1)
Char.StartFacialTalk($scplayer, 999999)

:GROVE1_16712
if or
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_16889
wait 0
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_16784
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_16784
if 
  Char.IsDead(72@)
goto_if_false @GROVE1_16833
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_16833
if 
  Car.IsDead(75@)
goto_if_false @GROVE1_16882
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_16882
goto @GROVE1_16712

:GROVE1_16889
Text.ClearThisPrint('GRO1_BB')
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Char.StopFacialTalk($scplayer)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 13021)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GRO1_BC', 10000, 1)
if 
  not Char.IsDead(72@)
goto_if_false @GROVE1_16969
Char.StartFacialTalk(72@, 999999)
goto @GROVE1_17002

:GROVE1_16969
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_17002
Task.AchieveHeading($scplayer, 180.0)
if 
  not Car.IsDead(75@)
goto_if_false @GROVE1_17091
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_17061
Task.EnterCarAsDriver(38@, 75@, -1)
goto @GROVE1_17084

:GROVE1_17061
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_17084
goto @GROVE1_17114

:GROVE1_17091
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_17114
if or
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_17318
wait 0
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_17186
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_17186
if 
  Char.IsDead(72@)
goto_if_false @GROVE1_17242
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790
goto @GROVE1_17262

:GROVE1_17242
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_17262
Char.StopFacialTalk(72@)

:GROVE1_17262
if 
  Car.IsDead(75@)
goto_if_false @GROVE1_17311
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_17311
goto @GROVE1_17114

:GROVE1_17318
Text.ClearThisPrint('GRO1_BC')
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
if 
  Char.IsDead(72@)
goto_if_false @GROVE1_17389
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790
goto @GROVE1_17394

:GROVE1_17389
Char.StopFacialTalk(72@)

:GROVE1_17394
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 13003)
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GRO1_BD', 10000, 1)
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_17454
Char.StartFacialTalk(38@, 999999)
goto @GROVE1_17487

:GROVE1_17454
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_17487
if or
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_17691
wait 0
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_17566
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790
goto @GROVE1_17586

:GROVE1_17566
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_17586
Char.StopFacialTalk(38@)

:GROVE1_17586
if 
  Char.IsDead(72@)
goto_if_false @GROVE1_17635
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_17635
if 
  Car.IsDead(75@)
goto_if_false @GROVE1_17684
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_17684
goto @GROVE1_17487

:GROVE1_17691
Text.ClearThisPrint('GRO1_BD')
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_17762
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790
goto @GROVE1_17767

:GROVE1_17762
Char.StopFacialTalk(38@)

:GROVE1_17767
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GRO1_BE', 10000, 1)
if 
  not Char.IsDead(72@)
goto_if_false @GROVE1_17820
Char.StartFacialTalk(72@, 999999)
goto @GROVE1_17853

:GROVE1_17820
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_17853
if 
  not Char.IsInAnyCar(38@)
goto_if_false @GROVE1_18114
wait 0
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_17960
Text.ClearThisPrint('GRO1_BE')
if 
  not Char.IsDead(72@)
goto_if_false @GROVE1_17927
Char.StopFacialTalk(72@)
goto @GROVE1_17960

:GROVE1_17927
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_17960
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_18009
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_18009
if 
  Char.IsDead(72@)
goto_if_false @GROVE1_18058
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_18058
if 
  Car.IsDead(75@)
goto_if_false @GROVE1_18107
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_18107
goto @GROVE1_17853

:GROVE1_18114
if 
  not Car.IsDead(75@)
goto_if_false @GROVE1_18174
Car.SetDrivingStyle(75@, DrivingMode.AvoidCars)
Car.SetCruiseSpeed(75@, 30.0)
Car.GotoCoordinates(75@, 1946.0, -1132.0, 25.0)
goto @GROVE1_18207

:GROVE1_18174
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_18207
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_18380
wait 0
if 
  Char.IsDead(38@)
goto_if_false @GROVE1_18275
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_4', 5000, 1)
goto @GROVE1_18790

:GROVE1_18275
if 
  Char.IsDead(72@)
goto_if_false @GROVE1_18324
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_18324
if 
  Car.IsDead(75@)
goto_if_false @GROVE1_18373
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_18373
goto @GROVE1_18207

:GROVE1_18380
Text.ClearThisPrint('GRO1_BE')
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  not Char.IsDead(72@)
goto_if_false @GROVE1_18427
Char.StopFacialTalk(72@)
goto @GROVE1_18460

:GROVE1_18427
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('GM1_12', 8000, 1)
goto @GROVE1_18790

:GROVE1_18460
wait 2000
Char.RemoveElegantly(72@)
Char.RemoveElegantly(38@)
Car.Delete(75@)
Player.MakeGangReappear
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Game.SetEveryoneIgnorePlayer($player1, False)
Game.SetPoliceIgnorePlayer($player1, False)
Path.SwitchPedRoadsBackToOriginal(1965.968, -1096.668, 20.0, 2081.465, -1163.309, 30.0)
74@ = 1

:GROVE1_18550
skip_cutscene_end 
if 
  74@ == 0
goto_if_false @GROVE1_18747
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:GROVE1_18595
if 
  Camera.GetFadingStatus
goto_if_false @GROVE1_18619
wait 0
goto @GROVE1_18595

:GROVE1_18619
Player.MakeGangReappear
Hud.SwitchWidescreen(False)
Text.ClearPrints
Char.RemoveElegantly(72@)
Char.RemoveElegantly(38@)
Car.Delete(75@)
Path.SwitchPedRoadsBackToOriginal(1965.968, -1096.668, 20.0, 2081.465, -1163.309, 30.0)
Char.SetCoordinates($scplayer, 2002.105, -1129.403, 24.484)
Char.SetHeading($scplayer, 180.0)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:GROVE1_18723
if 
  Camera.GetFadingStatus
goto_if_false @GROVE1_18747
wait 0
goto @GROVE1_18723

:GROVE1_18747
Hud.SwitchWidescreen(False)
Char.ShutUpForScriptedSpeech($scplayer, False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Game.SetEveryoneIgnorePlayer($player1, False)
Game.SetPoliceIgnorePlayer($player1, False)
goto @GROVE1_18874

:GROVE1_18790
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Zone.SetGangStrength('GLN1', GangType.Ballas, 40)
Zone.SetGangStrength('GLN1', GangType.Grove, 0)
Zone.SetGangStrength('GLN1', GangType.Vagos, 91@)
Zone.SetGangStrength('GLN1', GangType.Aztecas, 92@)
Game.CanTriggerGangWarWhenOnAMission(False)
return 

:GROVE1_18874
$flag_grove_mission_counter += 1
Stat.RegisterMissionPassed('GROVE_1')
Stat.PlayerMadeProgress(1)
Text.PrintWithNumberBig('M_PASSR', 10, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(40)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
Blip.Remove($grove_contact_blip)
Blip.Remove($intro_contact_blip)
$grove_contact_blip = Blip.AddSpriteForContactPoint($sweetX, $sweetY, $sweetZ, $grove_blip_icon)
return 

:GROVE1_18956
Char.RemoveElegantly(38@)
$onmission = 0
Path.SwitchPedRoadsBackToOriginal(1965.968, -1096.668, 20.0, 2081.465, -1163.309, 30.0)
Streaming.SetAreaVisible(0)
Game.ClearSpecificZonesToTriggerGangWar
$timer_mobile_start = Clock.GetGameTimer()
Hud.ClearCounter($trip_skip_M5)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.MarkModelAsNoLongerNeeded(104)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(355)
Streaming.MarkModelAsNoLongerNeeded(411)
Streaming.RemoveAnimation("GANGS")
Blip.Remove(89@)
Blip.Remove(40@)
Blip.Remove(39@)
Blip.Remove(36@)
Blip.Remove(43@)
Blip.Remove(46@)
Blip.Remove(49@)
Blip.Remove(52@)
Blip.Remove(55@)
Blip.Remove(59@)
Blip.Remove(63@)
Blip.Remove(67@)
Sequence.Clear(57@)
Sequence.Clear(61@)
Sequence.Clear(65@)
Sequence.Clear(69@)
DecisionMaker.Remove(35@)
DecisionMaker.Remove(34@)
Game.CanTriggerGangWarWhenOnAMission(False)
Mission.Finish
return 

:GROVE1_19149
if 
  not Char.IsDead(54@)
goto_if_false @GROVE1_19228
57@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1996.934, -1122.258, 25.76, MoveState.Run, -1)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Sequence.Close(57@)
Char.ClearTasks(54@)
Char.PerformSequence(54@, 57@)
Sequence.Clear(57@)

:GROVE1_19228
if 
  not Char.IsDead(58@)
goto_if_false @GROVE1_19307
61@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2004.069, -1122.884, 25.584, MoveState.Run, -1)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Sequence.Close(61@)
Char.ClearTasks(58@)
Char.PerformSequence(58@, 61@)
Sequence.Clear(61@)

:GROVE1_19307
if 
  not Char.IsDead(62@)
goto_if_false @GROVE1_19386
65@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2006.758, -1122.695, 25.493, MoveState.Run, -1)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Sequence.Close(65@)
Char.ClearTasks(62@)
Char.PerformSequence(62@, 65@)
Sequence.Clear(65@)

:GROVE1_19386
if 
  not Char.IsDead(66@)
goto_if_false @GROVE1_19465
69@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2015.458, -1121.923, 25.243, MoveState.Run, -1)
Task.ToggleDuck(-1, True)
Task.StayInSamePlace(-1, True)
Sequence.Close(69@)
Char.ClearTasks(66@)
Char.PerformSequence(66@, 69@)
Sequence.Clear(69@)

:GROVE1_19465
71@ = 1
return 

:GROVE1_19474
if or
  94@ == 0
  94@ == 1
goto_if_false @GROVE1_19525
if 
  is_int_var_greater_or_equal_to_int_lvar $cell_index_end >= 93@
goto_if_false @GROVE1_19525
gosub @GROVE1_19590

:GROVE1_19525
if 
  94@ == 2
goto_if_false @GROVE1_19588
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_19588
gosub @GROVE1_20131
94@ = 0
93@ += 1
95@ = 0
Text.ClearPrints

:GROVE1_19588
return 

:GROVE1_19590
if 
  94@ == 0
goto_if_false @GROVE1_19626
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 97@(93@,17i))
94@ = 1

:GROVE1_19626
if 
  94@ == 1
goto_if_false @GROVE1_19706
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GROVE1_19706
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @GROVE1_19706
Text.PrintNow($sweets_health_grove1(93@,17s), 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
gosub @GROVE1_19708
94@ = 2

:GROVE1_19706
return 

:GROVE1_19708
if 
  96@ == 0
goto_if_false @GROVE1_19829
if or
  93@ == 0
  93@ == 4
  93@ == 5
  93@ == 6
  93@ == 7
goto_if_false @GROVE1_19796
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.StartFacialTalk($scplayer, 999999)
goto @GROVE1_19829

:GROVE1_19796
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_19829
Char.ShutUpForScriptedSpeech(38@, True)
Char.StartFacialTalk(38@, 999999)

:GROVE1_19829
if 
  96@ == 1
goto_if_false @GROVE1_19936
if or
  93@ == 0
  93@ == 2
  93@ == 3
goto_if_false @GROVE1_19903
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.StartFacialTalk($scplayer, 999999)
goto @GROVE1_19936

:GROVE1_19903
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_19936
Char.ShutUpForScriptedSpeech(38@, True)
Char.StartFacialTalk(38@, 999999)

:GROVE1_19936
if 
  96@ == 2
goto_if_false @GROVE1_20036
if or
  93@ == 1
  93@ == 3
goto_if_false @GROVE1_20003
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.StartFacialTalk($scplayer, 999999)
goto @GROVE1_20036

:GROVE1_20003
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_20036
Char.ShutUpForScriptedSpeech(38@, True)
Char.StartFacialTalk(38@, 999999)

:GROVE1_20036
if 
  96@ == 3
goto_if_false @GROVE1_20129
if 
  93@ == 1
goto_if_false @GROVE1_20096
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.StartFacialTalk($scplayer, 999999)
goto @GROVE1_20129

:GROVE1_20096
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_20129
Char.ShutUpForScriptedSpeech(38@, True)
Char.StartFacialTalk(38@, 999999)

:GROVE1_20129
return 

:GROVE1_20131
if 
  96@ == 0
goto_if_false @GROVE1_20242
if or
  93@ == 0
  93@ == 4
  93@ == 5
  93@ == 6
  93@ == 7
goto_if_false @GROVE1_20214
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
goto @GROVE1_20242

:GROVE1_20214
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_20242
Char.ShutUpForScriptedSpeech(38@, False)
Char.StopFacialTalk(38@)

:GROVE1_20242
if 
  96@ == 1
goto_if_false @GROVE1_20339
if or
  93@ == 0
  93@ == 2
  93@ == 3
goto_if_false @GROVE1_20311
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
goto @GROVE1_20339

:GROVE1_20311
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_20339
Char.ShutUpForScriptedSpeech(38@, False)
Char.StopFacialTalk(38@)

:GROVE1_20339
if 
  96@ == 2
goto_if_false @GROVE1_20429
if or
  93@ == 1
  93@ == 3
goto_if_false @GROVE1_20401
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
goto @GROVE1_20429

:GROVE1_20401
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_20429
Char.ShutUpForScriptedSpeech(38@, False)
Char.StopFacialTalk(38@)

:GROVE1_20429
if 
  96@ == 3
goto_if_false @GROVE1_20512
if 
  93@ == 1
goto_if_false @GROVE1_20484
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.StopFacialTalk($scplayer)
goto @GROVE1_20512

:GROVE1_20484
if 
  not Char.IsDead(38@)
goto_if_false @GROVE1_20512
Char.ShutUpForScriptedSpeech(38@, False)
Char.StopFacialTalk(38@)

:GROVE1_20512
return 

:GROVE1_20514
if 
  44@ == 0
goto_if_false @GROVE1_20633
if 
  Char.IsDead(42@)
goto_if_false @GROVE1_20574
Blip.Remove(43@)
41@ += 1
44@ = 1
goto @GROVE1_20633

:GROVE1_20574
if 
  70@ == 0
goto_if_false @GROVE1_20633
if or
  Player.IsTargetingChar($player1, 42@)
  Char.HasSpottedChar(42@, $scplayer)
  Char.HasBeenDamagedByWeapon(42@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_20633
70@ = 1

:GROVE1_20633
if 
  47@ == 0
goto_if_false @GROVE1_20752
if 
  Char.IsDead(45@)
goto_if_false @GROVE1_20693
Blip.Remove(46@)
41@ += 1
47@ = 1
goto @GROVE1_20752

:GROVE1_20693
if 
  70@ == 0
goto_if_false @GROVE1_20752
if or
  Player.IsTargetingChar($player1, 45@)
  Char.HasSpottedChar(45@, $scplayer)
  Char.HasBeenDamagedByWeapon(45@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_20752
70@ = 1

:GROVE1_20752
if 
  50@ == 0
goto_if_false @GROVE1_20871
if 
  Char.IsDead(48@)
goto_if_false @GROVE1_20812
Blip.Remove(49@)
41@ += 1
50@ = 1
goto @GROVE1_20871

:GROVE1_20812
if 
  70@ == 0
goto_if_false @GROVE1_20871
if or
  Player.IsTargetingChar($player1, 48@)
  Char.HasSpottedChar(48@, $scplayer)
  Char.HasBeenDamagedByWeapon(48@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_20871
70@ = 1

:GROVE1_20871
if 
  53@ == 0
goto_if_false @GROVE1_20990
if 
  Char.IsDead(51@)
goto_if_false @GROVE1_20931
Blip.Remove(52@)
41@ += 1
53@ = 1
goto @GROVE1_20990

:GROVE1_20931
if 
  70@ == 0
goto_if_false @GROVE1_20990
if or
  Player.IsTargetingChar($player1, 51@)
  Char.HasSpottedChar(51@, $scplayer)
  Char.HasBeenDamagedByWeapon(51@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_20990
70@ = 1

:GROVE1_20990
if 
  56@ == 0
goto_if_false @GROVE1_21109
if 
  Char.IsDead(54@)
goto_if_false @GROVE1_21050
Blip.Remove(55@)
41@ += 1
56@ = 1
goto @GROVE1_21109

:GROVE1_21050
if 
  70@ == 0
goto_if_false @GROVE1_21109
if or
  Player.IsTargetingChar($player1, 54@)
  Char.HasSpottedChar(54@, $scplayer)
  Char.HasBeenDamagedByWeapon(54@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_21109
70@ = 1

:GROVE1_21109
if 
  60@ == 0
goto_if_false @GROVE1_21228
if 
  Char.IsDead(58@)
goto_if_false @GROVE1_21169
Blip.Remove(59@)
41@ += 1
60@ = 1
goto @GROVE1_21228

:GROVE1_21169
if 
  70@ == 0
goto_if_false @GROVE1_21228
if or
  Player.IsTargetingChar($player1, 58@)
  Char.HasSpottedChar(58@, $scplayer)
  Char.HasBeenDamagedByWeapon(58@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_21228
70@ = 1

:GROVE1_21228
if 
  64@ == 0
goto_if_false @GROVE1_21347
if 
  Char.IsDead(62@)
goto_if_false @GROVE1_21288
Blip.Remove(63@)
41@ += 1
64@ = 1
goto @GROVE1_21347

:GROVE1_21288
if 
  70@ == 0
goto_if_false @GROVE1_21347
if or
  Player.IsTargetingChar($player1, 62@)
  Char.HasSpottedChar(62@, $scplayer)
  Char.HasBeenDamagedByWeapon(62@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_21347
70@ = 1

:GROVE1_21347
if 
  68@ == 0
goto_if_false @GROVE1_21466
if 
  Char.IsDead(66@)
goto_if_false @GROVE1_21407
Blip.Remove(67@)
41@ += 1
68@ = 1
goto @GROVE1_21466

:GROVE1_21407
if 
  70@ == 0
goto_if_false @GROVE1_21466
if or
  Player.IsTargetingChar($player1, 66@)
  Char.HasSpottedChar(66@, $scplayer)
  Char.HasBeenDamagedByWeapon(66@, WeaponType.AnyWeapon)
goto_if_false @GROVE1_21466
70@ = 1

:GROVE1_21466
return 

//-------------Mission 107---------------
// Originally: Grove 4 Life

:GROVE2
script_name 'GROVE2'
gosub @GROVE2_47
if 
  has_deatharrest_been_executed 
goto_if_false @GROVE2_38
gosub @GROVE2_3134

:GROVE2_38
gosub @GROVE2_3221
terminate_this_script 

:GROVE2_47
Game.MakeRoomInPlayerGangForMissionPeds(1)
Text.LoadMissionText('GROVE2')
Camera.SetFadingColor(0, 0, 0)
Stat.RegisterMissionGiven
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:GROVE2_87
if 
  Camera.GetFadingStatus
goto_if_false @GROVE2_111
wait 0
goto @GROVE2_87

:GROVE2_111
Weather.ForceNow(WeatherType.SunnyLa)
Streaming.SetAreaVisible(1)
Cutscene.Load('GROVE2')

:GROVE2_130
if 
  not Cutscene.HasLoaded
goto_if_false @GROVE2_154
wait 0
goto @GROVE2_130

:GROVE2_154
Cutscene.Start
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:GROVE2_171
if 
  not Cutscene.HasFinished
goto_if_false @GROVE2_195
wait 0
goto @GROVE2_171

:GROVE2_195
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)

:GROVE2_209
if 
  Camera.GetFadingStatus
goto_if_false @GROVE2_233
wait 0
goto @GROVE2_209

:GROVE2_233
Cutscene.Clear
Weather.Release
Streaming.LoadSpecialCharacter(1, 'SWEET')
Streaming.RequestModel(355)
Streaming.RequestModel(492)
Streaming.LoadAllModelsNow

:GROVE2_262
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasModelLoaded(355)
  not Streaming.HasModelLoaded(492)
goto_if_false @GROVE2_298
wait 0
goto @GROVE2_262

:GROVE2_298
Streaming.SetAreaVisible(0)
Hud.SwitchWidescreen(False)
$7989 = 0
$g2_sweet_hlth = 0
47@ = 2
wait 0
if 
  not Char.IsDead($scplayer)
goto_if_false @GROVE2_352
Player.ClearWantedLevel($player1)

:GROVE2_352
Player.SetGroupToFollowAlways($player1, True)
Game.SetGangWarsActive(True)
Game.CanTriggerGangWarWhenOnAMission(True)
Streaming.LoadScene(2497.324, -1684.744, 12.44)
Char.SetCoordinates($scplayer, 2497.324, -1684.744, 12.44)
Char.SetHeading($scplayer, 0.0)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)
$sweet = Char.Create(PedType.Mission1, 290, 2496.633, -1684.573, 12.435)
Car.CustomPlateForNextCar(492, "GROVE4L_")
39@ = Car.Create(492, 2507.699, -1671.716, 12.3823)
Car.ChangeColor(39@, 59, 34)
Car.SetHeading(39@, 355.4549)
Char.SetHeading($sweet, 0.0)
Char.SetAnimGroup($sweet, "GANG2")
Char.GiveWeapon($sweet, WeaponType.Ak47, 30000)
Char.SetNeverTargeted($sweet, True)
Char.SetSuffersCriticalHits($sweet, False)
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $sweet)
Char.SetAccuracy($sweet, 90)
Char.SetHealth($sweet, 1000)
Char.SetMaxHealth($sweet, 1000)
Char.SetRelationship($sweet, RelationshipType.Hate, PedType.Mission2)
$7989 = Char.GetHealth($sweet)
$7989 /= 10
Hud.DisplayCounterWithString($7989, CounterDisplay.Bar, 'GR2_01')
34@ = Blip.AddForChar($sweet)
Blip.SetAsFriendly(34@, True)
36@ = Blip.AddForCoord(2002.815, -1613.084, 12.3828)
55@ = Blip.AddForCoord(2507.184, -1672.906, 12.3824)
Blip.ChangeDisplay(34@, BlipDisplay.Neither)
Blip.ChangeDisplay(55@, BlipDisplay.Neither)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(2.0)
TIMERA = 0
Zone.SetGangStrength('IWD3A', GangType.Grove, 0)
Zone.SetGangStrength('IWD3A', GangType.Ballas, 100)
Zone.SetGangStrength('IWD3B', GangType.Grove, 0)
Zone.SetGangStrength('IWD3B', GangType.Ballas, 100)
Zone.SetGangStrength('IWD1', GangType.Grove, 0)
Zone.SetGangStrength('IWD1', GangType.Ballas, 100)
Zone.SetGangStrength('IWD4', GangType.Grove, 0)
Zone.SetGangStrength('IWD4', GangType.Ballas, 100)
Zone.SetTriggerGangWar('IWD3A')
Zone.SetTriggerGangWar('IWD3B')
Zone.SetTriggerGangWar('IWD1')
Zone.SetTriggerGangWar('IWD4')
Zone.SetNoCops('IWD3A', True)
Zone.SetNoCops('IWD3B', True)
Zone.SetNoCops('IWD1', True)
Zone.SetNoCops('IWD4', True)

:GROVE2_942
if 
  not Char.IsDead($scplayer)
goto_if_false @GROVE2_2932
wait 0
gosub @GROVE2_3589
gosub @GROVE2_5396
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @GROVE2_998
goto @GROVE2_3152

:GROVE2_998
if and
  not Car.IsDead(39@)
  not Char.IsDead($scplayer)
goto_if_false @GROVE2_1067
if 
  Char.IsInCar($scplayer, 39@)
goto_if_false @GROVE2_1067
if 
  57@ == 0
goto_if_false @GROVE2_1067
Audio.SetRadioChannel(RadioChannel.BounceFM)
57@ = 1

:GROVE2_1067
if and
  TIMERA > 4000
  58@ == 1
goto_if_false @GROVE2_1316
$g2_idlewood_off = Math.RandomIntInRange(0, 4)
switch_start $g2_idlewood_off {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GROVE2_1309 {caseNum1} 0 {caseLabel1} @GROVE2_1165 {caseNum2} 1 {caseLabel2} @GROVE2_1201 {caseNum3} 2 {caseLabel3} @GROVE2_1237 {caseNum4} 3 {caseLabel4} @GROVE2_1273 {caseNum5} -1 {caseLabel5} @GROVE2_1309 {caseNum6} -1 {caseLabel6} @GROVE2_1309 {caseNum7} -1 {caseLabel7} @GROVE2_1309

:GROVE2_1165
set_lvar_text_label 59@s = 'GRO2_DA'
set_lvar_int_to_constant 46@ = 14207
gosub @GROVE2_5376
goto @GROVE2_1309

:GROVE2_1201
set_lvar_text_label 59@s = 'GRO2_DB'
set_lvar_int_to_constant 46@ = 14208
gosub @GROVE2_5376
goto @GROVE2_1309

:GROVE2_1237
set_lvar_text_label 59@s = 'GRO2_DC'
set_lvar_int_to_constant 46@ = 14209
gosub @GROVE2_5376
goto @GROVE2_1309

:GROVE2_1273
set_lvar_text_label 59@s = 'GRO2_DD'
set_lvar_int_to_constant 46@ = 14210
gosub @GROVE2_5376
goto @GROVE2_1309

:GROVE2_1309
58@ = 2

:GROVE2_1316
if and
  47@ == 2
  58@ == 2
goto_if_false @GROVE2_1492
$g2_idlewood_off = Math.RandomIntInRange(0, 2)
switch_start $g2_idlewood_off {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GROVE2_1485 {caseNum1} 0 {caseLabel1} @GROVE2_1413 {caseNum2} 1 {caseLabel2} @GROVE2_1449 {caseNum3} -1 {caseLabel3} @GROVE2_1485 {caseNum4} -1 {caseLabel4} @GROVE2_1485 {caseNum5} -1 {caseLabel5} @GROVE2_1485 {caseNum6} -1 {caseLabel6} @GROVE2_1485 {caseNum7} -1 {caseLabel7} @GROVE2_1485

:GROVE2_1413
set_lvar_text_label 59@s = 'GRO2_EA'
set_lvar_int_to_constant 46@ = 14211
gosub @GROVE2_5376
goto @GROVE2_1485

:GROVE2_1449
set_lvar_text_label 59@s = 'GRO2_EB'
set_lvar_int_to_constant 46@ = 14212
gosub @GROVE2_5376
goto @GROVE2_1485

:GROVE2_1485
58@ = 3

:GROVE2_1492
if and
  47@ == 2
  58@ == 3
goto_if_false @GROVE2_1540
Text.PrintNow('GR2_10', 7000, 1)
58@ = 4

:GROVE2_1540
if 
  54@ == 0
goto_if_false @GROVE2_2508
40@ = Zone.GetGangStrength('IWD3A', GangType.Ballas)
41@ = Zone.GetGangStrength('IWD3B', GangType.Ballas)
43@ = Zone.GetGangStrength('IWD1', GangType.Ballas)
44@ = Zone.GetGangStrength('IWD4', GangType.Ballas)
if 
  38@ == 0
goto_if_false @GROVE2_1676
set_lvar_text_label 59@s = 'GRO2_AA'
set_lvar_int_to_constant 46@ = 14218
gosub @GROVE2_5376
38@ = 1

:GROVE2_1676
if and
  47@ == 2
  38@ == 1
goto_if_false @GROVE2_1737
set_lvar_text_label 59@s = 'GRO2_AB'
set_lvar_int_to_constant 46@ = 14200
gosub @GROVE2_5376
38@ = 2

:GROVE2_1737
if and
  47@ == 2
  38@ == 2
goto_if_false @GROVE2_1798
set_lvar_text_label 59@s = 'GRO2_AC'
set_lvar_int_to_constant 46@ = 14201
gosub @GROVE2_5376
38@ = 3

:GROVE2_1798
if and
  47@ == 2
  38@ == 3
goto_if_false @GROVE2_1859
set_lvar_text_label 59@s = 'GRO2_AD'
set_lvar_int_to_constant 46@ = 14219
gosub @GROVE2_5376
38@ = 4

:GROVE2_1859
if and
  47@ == 2
  38@ == 4
goto_if_false @GROVE2_1907
Text.PrintNow('GR2_09', 7000, 1)
38@ = 5

:GROVE2_1907
if 
  56@ == 1
goto_if_false @GROVE2_2148
$g2_idlewood_off = Math.RandomIntInRange(0, 4)
switch_start $g2_idlewood_off {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GROVE2_2141 {caseNum1} 0 {caseLabel1} @GROVE2_1997 {caseNum2} 1 {caseLabel2} @GROVE2_2033 {caseNum3} 2 {caseLabel3} @GROVE2_2069 {caseNum4} 3 {caseLabel4} @GROVE2_2105 {caseNum5} -1 {caseLabel5} @GROVE2_2141 {caseNum6} -1 {caseLabel6} @GROVE2_2141 {caseNum7} -1 {caseLabel7} @GROVE2_2141

:GROVE2_1997
set_lvar_text_label 59@s = 'GRO2_CA'
set_lvar_int_to_constant 46@ = 14203
gosub @GROVE2_5376
goto @GROVE2_2141

:GROVE2_2033
set_lvar_text_label 59@s = 'GRO2_CB'
set_lvar_int_to_constant 46@ = 14204
gosub @GROVE2_5376
goto @GROVE2_2141

:GROVE2_2069
set_lvar_text_label 59@s = 'GRO2_CC'
set_lvar_int_to_constant 46@ = 14205
gosub @GROVE2_5376
goto @GROVE2_2141

:GROVE2_2105
set_lvar_text_label 59@s = 'GRO2_CE'
set_lvar_int_to_constant 46@ = 14206
gosub @GROVE2_5376
goto @GROVE2_2141

:GROVE2_2141
56@ = 2

:GROVE2_2148
if and
  47@ == 2
  56@ == 2
goto_if_false @GROVE2_2196
Text.PrintNow('GR2_05', 4000, 1)
56@ = 3

:GROVE2_2196
if or
  Player.IsInInfoZone($player1, 'IWD3A')
  Player.IsInInfoZone($player1, 'IWD3B')
  Player.IsInInfoZone($player1, 'IWD1')
  Player.IsInInfoZone($player1, 'IWD4')
goto_if_false @GROVE2_2327
if 
  37@ == 0
goto_if_false @GROVE2_2313
37@ = 1
if 
  56@ == 0
goto_if_false @GROVE2_2313
56@ = 1

:GROVE2_2313
Blip.ChangeDisplay(36@, BlipDisplay.Neither)
goto @GROVE2_2352

:GROVE2_2327
if 
  35@ == 1
goto_if_false @GROVE2_2352
Blip.ChangeDisplay(36@, BlipDisplay.Both)

:GROVE2_2352
if and
  40@ == 0
  48@ == 0
goto_if_false @GROVE2_2391
gosub @GROVE2_2939
48@ = 1

:GROVE2_2391
if and
  41@ == 0
  49@ == 0
goto_if_false @GROVE2_2430
gosub @GROVE2_2939
49@ = 1

:GROVE2_2430
if and
  43@ == 0
  50@ == 0
goto_if_false @GROVE2_2469
gosub @GROVE2_2939
50@ = 1

:GROVE2_2469
if and
  44@ == 0
  51@ == 0
goto_if_false @GROVE2_2508
gosub @GROVE2_2939
51@ = 1

:GROVE2_2508
if 
  not Char.IsDead($sweet)
goto_if_false @GROVE2_2781
$7989 = Char.GetHealth($sweet)
$7989 /= 10
if 
  Char.LocateAnyMeansChar2D($scplayer, $sweet, 30.0, 30.0, False)
goto_if_false @GROVE2_2683
if 
  35@ == 0
goto_if_false @GROVE2_2676
if 
  not Char.IsGroupMember($sweet, $Players_Group)
goto_if_false @GROVE2_2619
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $sweet)

:GROVE2_2619
Blip.ChangeDisplay(34@, BlipDisplay.Neither)
if 
  54@ == 0
goto_if_false @GROVE2_2644

:GROVE2_2644
if 
  54@ == 1
goto_if_false @GROVE2_2662

:GROVE2_2662
$g2_sweet_hlth = 0
35@ = 1

:GROVE2_2676
goto @GROVE2_2774

:GROVE2_2683
if 
  35@ == 1
goto_if_false @GROVE2_2774
Text.PrintNow('GR2_02', 4000, 1)
Blip.ChangeDisplay(34@, BlipDisplay.Both)
if 
  54@ == 0
goto_if_false @GROVE2_2742

:GROVE2_2742
if 
  54@ == 1
goto_if_false @GROVE2_2760

:GROVE2_2760
$g2_sweet_hlth = 1
35@ = 0

:GROVE2_2774
goto @GROVE2_2804

:GROVE2_2781
Text.PrintNow('GR2_03', 4000, 1)
goto @GROVE2_3134

:GROVE2_2804
if 
  54@ == 1
goto_if_false @GROVE2_2925
if and
  53@ == 1
  47@ == 2
goto_if_false @GROVE2_2870
Text.PrintNow('GR2_11', 7000, 1)
53@ = 2

:GROVE2_2870
if 
  Char.LocateAnyMeans3D($scplayer, 2507.184, -1672.906, 12.3824, 4.0, 4.0, 4.0, True)
goto_if_false @GROVE2_2925
goto @GROVE2_3784

:GROVE2_2925
goto @GROVE2_942

:GROVE2_2932
goto @GROVE2_3134

:GROVE2_2939
52@ += 1
if 
  58@ == 0
goto_if_false @GROVE2_2978
TIMERA = 0
58@ = 1

:GROVE2_2978
if 
  52@ == 2
goto_if_false @GROVE2_3132
set_lvar_text_label 59@s = 'GRO2_FA'
set_lvar_int_to_constant 46@ = 14213
gosub @GROVE2_5376
54@ = 1
Blip.ChangeDisplay(55@, BlipDisplay.Both)
World.ClearArea(2507.184, -1672.906, 12.3824, 10.0, True)
if 
  not Car.IsDead(39@)
goto_if_false @GROVE2_3132
if 
  Car.Locate3D(39@, 2507.184, -1672.906, 12.3824, 4.0, 4.0, 4.0, False)
goto_if_false @GROVE2_3132
Car.Delete(39@)

:GROVE2_3132
return 

:GROVE2_3134
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:GROVE2_3152
Blip.Remove($grove_contact_blip)
$flag_grove_mission_counter += 1
Stat.PlayerMadeProgress(1)
Stat.RegisterMissionPassed('GROVE_2')
Text.PrintWithNumberBig('M_PASSS', 10000, 5000, TextStyle.Middle)
Player.AddScore($player1, 10000)
Stat.AwardPlayerMissionRespect(40)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
return 

:GROVE2_3221
Zone.SetNoCops('IWD3A', False)
Zone.SetNoCops('IWD3B', False)
Zone.SetNoCops('IWD1', False)
Zone.SetNoCops('IWD4', False)
Game.ClearSpecificZonesToTriggerGangWar
Game.CanTriggerGangWarWhenOnAMission(False)
Game.SetGangWarsActive(True)
$onmission = 0
if 
  not Char.IsDead($sweet)
goto_if_false @GROVE2_3311
Char.RemoveElegantly($sweet)

:GROVE2_3311
if 
  Blip.DoesExist(34@)
goto_if_false @GROVE2_3332
Blip.Remove(34@)

:GROVE2_3332
if 
  Blip.DoesExist(36@)
goto_if_false @GROVE2_3353
Blip.Remove(36@)

:GROVE2_3353
if 
  Blip.DoesExist(55@)
goto_if_false @GROVE2_3374
Blip.Remove(55@)

:GROVE2_3374
Hud.ClearCounter($7989)
Streaming.UnloadSpecialCharacter(1)
Streaming.MarkModelAsNoLongerNeeded(355)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.RemoveAnimation("GANGS")
$timer_mobile_start = Clock.GetGameTimer()
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Mission.Finish
return 

:GROVE2_3425
Text.ClearPrints
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
return 

:GROVE2_3440
Text.ClearPrints
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
return 

:GROVE2_3459
Camera.DoFade(500, Fade.Out)

:GROVE2_3466
if 
  Camera.GetFadingStatus
goto_if_false @GROVE2_3490
wait 0
goto @GROVE2_3466

:GROVE2_3490
return 

:GROVE2_3492
Camera.DoFade(500, Fade.In)

:GROVE2_3499
if 
  Camera.GetFadingStatus
goto_if_false @GROVE2_3523
wait 0
goto @GROVE2_3499

:GROVE2_3523
return 
Camera.DoFade(500, Fade.Out)

:GROVE2_3532
if 
  Camera.GetFadingStatus
goto_if_false @GROVE2_3556
wait 0
goto @GROVE2_3532

:GROVE2_3556
Camera.DoFade(500, Fade.In)

:GROVE2_3563
if 
  Camera.GetFadingStatus
goto_if_false @GROVE2_3587
wait 0
goto @GROVE2_3563

:GROVE2_3587
return 

:GROVE2_3589
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @GROVE2_3611
41@ = 0

:GROVE2_3611
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @GROVE2_3633
40@ = 0

:GROVE2_3633
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @GROVE2_3655
goto @GROVE2_3784

:GROVE2_3655
if 
is_ps2_keyboard_key_just_pressed 10
goto_if_false @GROVE2_3745
Char.SetCoordinates($scplayer, 2487.645, -1668.204, 12.3438)
Char.SetHeading($scplayer, 265.0722)
52@ = 2
54@ = 1
Blip.ChangeDisplay(55@, BlipDisplay.Both)
World.ClearArea(2507.184, -1672.906, 12.3824, 10.0, True)

:GROVE2_3745
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @GROVE2_3767
gosub @GROVE2_2939

:GROVE2_3767
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @GROVE2_3782

:GROVE2_3782
return 

:GROVE2_3784
gosub @GROVE2_3459
gosub @GROVE2_3425
Text.ClearPrints
Streaming.RequestAnimation("GANGS")

:GROVE2_3809
if 
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @GROVE2_3840
wait 0
goto @GROVE2_3809

:GROVE2_3840
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($sweet)
goto_if_false @GROVE2_4138
Char.RemoveFromGroup($sweet)
World.ClearArea(2512.761, -1672.52, 12.5034, 50.0, True)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @GROVE2_3963
Char.SetCoordinates($scplayer, 2496.552, -1682.439, 12.3542)
Char.SetHeading($scplayer, 270.6489)
Char.WarpFromCarToCoord($scplayer, 2512.761, -1672.52, 12.5034)
goto @GROVE2_3983

:GROVE2_3963
Char.SetCoordinates($scplayer, 2512.761, -1672.52, 12.5034)

:GROVE2_3983
if 
  not Car.IsDead(39@)
goto_if_false @GROVE2_4004
Car.Delete(39@)

:GROVE2_4004
Char.SetHeading($scplayer, 240.2609)
Task.TurnCharToFaceChar($scplayer, $sweet)
if 
  Char.IsInAnyCar($sweet)
goto_if_false @GROVE2_4065
Char.WarpFromCarToCoord($sweet, 2514.788, -1673.938, 12.6861)
goto @GROVE2_4085

:GROVE2_4065
Char.SetCoordinates($sweet, 2514.788, -1673.938, 12.6861)

:GROVE2_4085
Char.SetHeading($sweet, 73.5014)
Task.TurnCharToFaceChar($sweet, $scplayer)
Task.TogglePedThreatScanner($sweet, False, False, False)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($sweet)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.SetCurrentWeapon($sweet, WeaponType.Unarmed)

:GROVE2_4138
World.SetPedDensityMultiplier(0.0)
Camera.SetFixedPosition(2509.798, -1672.175, 13.4192, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2510.752, -1672.457, 13.5178, SwitchType.JumpCut)
Text.ClearPrints
gosub @GROVE2_3492
if 
  not Char.IsDead($scplayer)
goto_if_false @GROVE2_4271
Task.PlayAnim($scplayer, "PRTIAL_HNDSHK_01", "GANGS", 4.0, False, False, False, False, -1)
wait 500

:GROVE2_4271
if 
  not Char.IsDead($sweet)
goto_if_false @GROVE2_4337
Task.PlayAnim($sweet, "PRTIAL_HNDSHK_01", "GANGS", 4.0, False, False, False, False, -1)
wait 500

:GROVE2_4337
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 14214)

:GROVE2_4348
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GROVE2_4374
wait 0
goto @GROVE2_4348

:GROVE2_4374
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GRO2_GA', 4000, 1)
TIMERB = 0

:GROVE2_4401
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE2_4451
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GROVE2_4444
goto @GROVE2_5286

:GROVE2_4444
goto @GROVE2_4401

:GROVE2_4451
if 
  not Char.IsDead($sweet)
goto_if_false @GROVE2_4510
Task.PlayAnim($sweet, "PRTIAL_GNGTLKC", "GANGS", 4.0, False, False, False, False, -1)

:GROVE2_4510
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 14222)

:GROVE2_4521
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GROVE2_4547
wait 0
goto @GROVE2_4521

:GROVE2_4547
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GRO2_GB', 4000, 1)
TIMERB = 0

:GROVE2_4574
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE2_4624
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GROVE2_4617
goto @GROVE2_5286

:GROVE2_4617
goto @GROVE2_4574

:GROVE2_4624
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 14215)

:GROVE2_4635
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GROVE2_4661
wait 0
goto @GROVE2_4635

:GROVE2_4661
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GRO2_GC', 4000, 1)
TIMERB = 0

:GROVE2_4688
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE2_4738
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GROVE2_4731
goto @GROVE2_5286

:GROVE2_4731
goto @GROVE2_4688

:GROVE2_4738
if 
  not Char.IsDead($sweet)
goto_if_false @GROVE2_4783
Char.ClearTasksImmediately($sweet)
Task.GoToCoordAnyMeans($sweet, 2513.683, -1672.876, 12.5412, 4, -1)

:GROVE2_4783
if 
  not Char.IsDead($scplayer)
goto_if_false @GROVE2_4815
Char.ClearTasksImmediately($scplayer)
Task.LookAtChar($scplayer, $sweet, 10000)

:GROVE2_4815
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 14216)

:GROVE2_4826
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GROVE2_4852
wait 0
goto @GROVE2_4826

:GROVE2_4852
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GRO2_GD', 4000, 1)
TIMERB = 0

:GROVE2_4879
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE2_4929
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GROVE2_4922
goto @GROVE2_5286

:GROVE2_4922
goto @GROVE2_4879

:GROVE2_4929
if 
  not Char.IsDead($sweet)
goto_if_false @GROVE2_4994
Task.PlayAnim($sweet, "PRTIAL_HNDSHK_BIZ_01", "GANGS", 4.0, False, False, False, False, -1)

:GROVE2_4994
if 
  not Char.IsDead($scplayer)
goto_if_false @GROVE2_5059
Task.PlayAnim($scplayer, "PRTIAL_HNDSHK_BIZ_01", "GANGS", 4.0, False, False, False, False, -1)

:GROVE2_5059
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 14217)

:GROVE2_5070
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GROVE2_5096
wait 0
goto @GROVE2_5070

:GROVE2_5096
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GRO2_GE', 4000, 1)
TIMERB = 0

:GROVE2_5123
if 
  not Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @GROVE2_5173
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GROVE2_5166
goto @GROVE2_5286

:GROVE2_5166
goto @GROVE2_5123

:GROVE2_5173
if 
  not Char.IsDead($sweet)
goto_if_false @GROVE2_5218
Char.ClearTasksImmediately($sweet)
Task.GoToCoordAnyMeans($sweet, 2516.264, -1675.254, 12.9287, 4, -1)

:GROVE2_5218
TIMERB = 0

:GROVE2_5225
if 
  2000 > TIMERB
goto_if_false @GROVE2_5279
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GROVE2_5272
goto @GROVE2_5286

:GROVE2_5272
goto @GROVE2_5225

:GROVE2_5279
gosub @GROVE2_3459

:GROVE2_5286
Streaming.RemoveAnimation("GANGS")
Char.Delete($sweet)
if 
  not Char.IsDead($scplayer)
goto_if_false @GROVE2_5346
Char.SetCoordinates($scplayer, 2512.407, -1672.111, 12.4895)
Char.SetHeading($scplayer, 78.5658)

:GROVE2_5346
gosub @GROVE2_3440
World.SetPedDensityMultiplier(1.0)
Camera.SetBehindPlayer
gosub @GROVE2_3492
goto @GROVE2_3152

:GROVE2_5376
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 46@)
47@ = 0
return 

:GROVE2_5396
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  47@ == 0
goto_if_false @GROVE2_5439
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(59@s, 10000, 1)
47@ = 1

:GROVE2_5439
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  47@ == 1
goto_if_false @GROVE2_5477
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint(59@s)
47@ = 2

:GROVE2_5477
return 

//-------------Mission 108---------------
// Originally: Riot

:RIOT1
script_name 'RIOT1'
gosub @RIOT1_47
if 
  has_deatharrest_been_executed 
goto_if_false @RIOT1_38
gosub @RIOT1_2979

:RIOT1_38
gosub @RIOT1_3082
terminate_this_script 

:RIOT1_47
Stat.RegisterMissionGiven
$onmission = 1
Text.LoadMissionText('RIOT1')
Text.ClearPrints
wait 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
41@ = 0
42@ = 0
43@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
95@ = 0
Player.MakeGangDisappear
Streaming.SetAreaVisible(5)
Cutscene.Load('RIOT_1A')

:RIOT1_202
if 
  not Cutscene.HasLoaded
goto_if_false @RIOT1_226
wait 0
goto @RIOT1_202

:RIOT1_226
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:RIOT1_235
if 
  not Cutscene.HasFinished
goto_if_false @RIOT1_259
wait 0
goto @RIOT1_235

:RIOT1_259
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:RIOT1_272
if 
  Camera.GetFadingStatus
goto_if_false @RIOT1_296
wait 0
goto @RIOT1_272

:RIOT1_296
Cutscene.Clear
if 
  not Cutscene.WasSkipped
goto_if_false @RIOT1_418
Cutscene.Load('RIOT_1B')

:RIOT1_322
if 
  not Cutscene.HasLoaded
goto_if_false @RIOT1_346
wait 0
goto @RIOT1_322

:RIOT1_346
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:RIOT1_355
if 
  not Cutscene.HasFinished
goto_if_false @RIOT1_379
wait 0
goto @RIOT1_355

:RIOT1_379
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:RIOT1_392
if 
  Camera.GetFadingStatus
goto_if_false @RIOT1_416
wait 0
goto @RIOT1_392

:RIOT1_416
Cutscene.Clear

:RIOT1_418
Streaming.SetAreaVisible(0)
Player.MakeGangReappear
Player.SetControl($player1, False)
Camera.SetFadingColor(0, 0, 0)
wait 0
Game.SetLaRiots(True)
Stat.SetInt(StatId.StartedRiot1, 1)
Streaming.RequestModel(492)
Streaming.RequestModel(567)
Streaming.RequestModel(483)
Streaming.LoadSpecialCharacter(1, 'SWEET')
Streaming.LoadAllModelsNow
$r1_mothership = DecisionMakerChar.Copy(65542)
Streaming.LoadScene(1254.68, -789.39, 91.03)
World.ClearArea(1242.9, -805.4, 82.9, 20.0, True)
Car.CustomPlateForNextCar(483, "OUTTHERE")
$r1_cesars_car = Car.Create(483, 1242.9, -805.4, 82.9)
Car.SetHeading($r1_cesars_car, 0.0)
Car.ChangeColor($r1_cesars_car, 1, 1)
Car.GivePaintjob($r1_cesars_car, 0)
Car.SetCanRespray($r1_cesars_car, False)
World.ClearArea(1249.1, -804.9, 82.9, 5.0, True)
Car.CustomPlateForNextCar(567, "_LVA4L__")
$r1_sweets_car = Car.Create(567, 1249.1, -804.9, 82.9)
Car.SetHeading($r1_sweets_car, 177.7)
Car.ChangeColor($r1_sweets_car, 3, 3)
World.ClearArea(1254.3, -806.6, 82.9, 5.0, True)
Car.CustomPlateForNextCar(492, "GROVE4L_")
$7994 = Car.Create(492, 1254.3, -806.6, 82.9)
Car.ChangeColor($7994, 59, 34)
Car.SetHeading($7994, 177.7)
World.ClearArea(1258.2, -814.4, 83.1, 60.0, True)
Char.SetCoordinates($scplayer, 1258.2, -814.4, 83.1)
Char.SetHeading($scplayer, 40.0)
World.ClearArea(1257.6, -816.6, 83.1, 5.0, True)
$sweet = Char.Create(PedType.Mission2, 290, 1257.6, -816.6, 83.1)
Char.SetHeading($sweet, 39.9)
Char.SetGetOutUpsideDownCar($sweet, False)
Char.SetNeverTargeted($sweet, True)
Char.SetCantBeDraggedOut($sweet, True)
Char.SetDecisionMaker($sweet, $r1_mothership)
Char.SetOnlyDamagedByPlayer($sweet, True)
$r1_empty_decision_maker = Sequence.Open()
Task.GoStraightToCoord(-1, 1252.4, -810.3, 83.1, MoveState.Walk, -1)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger(-1, $7994, -1, 0)
Sequence.Close($r1_empty_decision_maker)
Char.PerformSequence($sweet, $r1_empty_decision_maker)
Sequence.Clear($r1_empty_decision_maker)
Hud.SwitchWidescreen(True)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Camera.SetFixedPosition(1257.8, -815.0, 84.7, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1246.3, -802.5, 82.7, SwitchType.JumpCut)
Game.ShutAllCharsUp(True)
Game.EnableAmbientCrime(False)

:RIOT1_1048
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @RIOT1_1074
goto @RIOT1_2997

:RIOT1_1074
gosub @RIOT1_3160
if 
  38@ == 1
goto_if_false @RIOT1_1106
goto @RIOT1_2979

:RIOT1_1106
if 
  35@ == 0
goto_if_false @RIOT1_1744
if 
  36@ == 0
goto_if_false @RIOT1_1339
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
40@ = 0
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsDriver($scplayer, $7994, -1)
$r1_empty_decision_maker = Sequence.Open()
Task.GoStraightToCoord(-1, 1252.4, -810.3, 83.1, MoveState.Walk, -1)
Char.SetNextDesiredMoveState(MoveState.Walk)
Task.EnterCarAsPassenger(-1, $7994, -1, 0)
Sequence.Close($r1_empty_decision_maker)
Char.PerformSequence($sweet, $r1_empty_decision_maker)
Sequence.Clear($r1_empty_decision_maker)
Camera.DoFade(500, Fade.In)

:RIOT1_1241
if 
  Camera.GetFadingStatus
goto_if_false @RIOT1_1265
wait 0
goto @RIOT1_1241

:RIOT1_1265
gosub @RIOT1_3160
if 
  38@ == 1
goto_if_false @RIOT1_1297
goto @RIOT1_2979

:RIOT1_1297
40@ = 1
41@ = 0
gosub @RIOT1_4358
36@ = 1
37@ = 1
skip_cutscene_start_internal @RIOT1_1420

:RIOT1_1339
if 
  36@ == 1
goto_if_false @RIOT1_1744
if 
  40@ == 0
goto_if_false @RIOT1_1744
if 
  Char.IsInCar($scplayer, $7994)
goto_if_false @RIOT1_1744
if 
  Char.IsInCar($sweet, $7994)
goto_if_false @RIOT1_1744
37@ = 0

:RIOT1_1420
skip_cutscene_end 
gosub @RIOT1_3160
if 
  38@ == 1
goto_if_false @RIOT1_1454
goto @RIOT1_2979

:RIOT1_1454
if 
  37@ == 1
goto_if_false @RIOT1_1580
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
40@ = 0
Camera.DoFade(500, Fade.Out)

:RIOT1_1496
if 
  Camera.GetFadingStatus
goto_if_false @RIOT1_1520
wait 0
goto @RIOT1_1496

:RIOT1_1520
gosub @RIOT1_3160
if 
  38@ == 1
goto_if_false @RIOT1_1552
goto @RIOT1_2979

:RIOT1_1552
Char.ClearTasksImmediately($scplayer)
Char.WarpIntoCar($scplayer, $7994)
Char.ClearTasksImmediately($sweet)
Char.WarpIntoCarAsPassenger($sweet, $7994, 0)

:RIOT1_1580
39@ = 1
Game.ShutAllCharsUp(False)
34@ = Blip.AddForCoord(2505.4, -1670.6, 12.1)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Text.PrintNow('R1_01', 7000, 1)
TIMERB = 0
if 
  37@ == 1
goto_if_false @RIOT1_1737
Camera.DoFade(500, Fade.In)

:RIOT1_1681
if 
  Camera.GetFadingStatus
goto_if_false @RIOT1_1705
wait 0
goto @RIOT1_1681

:RIOT1_1705
gosub @RIOT1_3160
if 
  38@ == 1
goto_if_false @RIOT1_1737
goto @RIOT1_2979

:RIOT1_1737
35@ = 1

:RIOT1_1744
if 
  35@ == 1
goto_if_false @RIOT1_2600
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @RIOT1_1826
if 
  Char.IsInCar($scplayer, $7994)
goto_if_false @RIOT1_1826
Car.SetCoordinates($7994, 2495.7, -1666.3, 12.1)
Car.SetHeading($7994, 254.2)

:RIOT1_1826
if 
  42@ == 0
goto_if_false @RIOT1_1923
if 
  40@ == 0
goto_if_false @RIOT1_1923
if 
  TIMERB > 10000
goto_if_false @RIOT1_1923
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($sweet, True)
40@ = 2
41@ = 0
gosub @RIOT1_4358
42@ = 1

:RIOT1_1923
if 
  42@ == 1
goto_if_false @RIOT1_2006
if 
  40@ == 0
goto_if_false @RIOT1_2006
if 
  TIMERB > 7000
goto_if_false @RIOT1_2006
40@ = 3
41@ = 0
gosub @RIOT1_4358
42@ = 2

:RIOT1_2006
if 
  42@ == 2
goto_if_false @RIOT1_2156
if 
  Char.IsInCar($scplayer, $7994)
goto_if_false @RIOT1_2156
if 
  Char.IsInArea2D($scplayer, 2955.5, -1240.1, 1192.2, -1855.3, False)
goto_if_false @RIOT1_2156
if 
  40@ == 0
goto_if_false @RIOT1_2156
if 
  TIMERB > 7000
goto_if_false @RIOT1_2156
Car.MarkAsNoLongerNeeded($r1_cesars_car)
Car.MarkAsNoLongerNeeded($r1_sweets_car)
40@ = 4
41@ = 0
gosub @RIOT1_4358
42@ = 3

:RIOT1_2156
if 
  42@ == 3
goto_if_false @RIOT1_2296
if 
  Char.IsInCar($scplayer, $7994)
goto_if_false @RIOT1_2296
if 
  Char.IsInArea2D($scplayer, 2955.5, -1240.1, 1192.2, -1855.3, False)
goto_if_false @RIOT1_2296
if 
  40@ == 0
goto_if_false @RIOT1_2296
if 
  TIMERB > 7000
goto_if_false @RIOT1_2296
40@ = 5
41@ = 0
gosub @RIOT1_4358
42@ = 4

:RIOT1_2296
if 
  42@ == 4
goto_if_false @RIOT1_2436
if 
  Char.IsInCar($scplayer, $7994)
goto_if_false @RIOT1_2436
if 
  Char.IsInArea2D($scplayer, 2955.5, -1240.1, 1192.2, -1855.3, False)
goto_if_false @RIOT1_2436
if 
  40@ == 0
goto_if_false @RIOT1_2436
if 
  TIMERB > 7000
goto_if_false @RIOT1_2436
40@ = 6
41@ = 0
gosub @RIOT1_4358
42@ = 5

:RIOT1_2436
if 
  42@ == 5
goto_if_false @RIOT1_2493
if 
  40@ == 0
goto_if_false @RIOT1_2493
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($sweet, False)
42@ = 6

:RIOT1_2493
if 
  Char.IsInCar($scplayer, $7994)
goto_if_false @RIOT1_2600
if 
  Char.IsInCar($sweet, $7994)
goto_if_false @RIOT1_2600
if 
  Char.LocateInCar3D($scplayer, 2505.4, -1670.6, 12.1, 4.0, 4.0, 4.0, True)
goto_if_false @RIOT1_2600
Player.SetControl($player1, False)
36@ = 0
35@ = 2

:RIOT1_2600
if 
  35@ == 2
goto_if_false @RIOT1_2940
if 
  36@ == 0
goto_if_false @RIOT1_2703
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
40@ = 0
Hud.SwitchWidescreen(True)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.ShutAllCharsUp(True)
40@ = 7
41@ = 0
gosub @RIOT1_4358
36@ = 1
36@ = 1

:RIOT1_2703
if 
  36@ == 1
goto_if_false @RIOT1_2803
if 
  40@ == 0
goto_if_false @RIOT1_2803
$r1_empty_decision_maker = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.GoStraightToCoord(-1, 2518.9, -1678.2, 13.5, MoveState.Walk, -1)
Sequence.Close($r1_empty_decision_maker)
Char.PerformSequence($sweet, $r1_empty_decision_maker)
Sequence.Clear($r1_empty_decision_maker)
TIMERA = 0
36@ = 2

:RIOT1_2803
if 
  36@ == 2
goto_if_false @RIOT1_2940
if 
  TIMERA > 4000
goto_if_false @RIOT1_2940
Camera.DoFade(500, Fade.Out)

:RIOT1_2847
if 
  Camera.GetFadingStatus
goto_if_false @RIOT1_2871
wait 0
goto @RIOT1_2847

:RIOT1_2871
Char.Delete($sweet)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Game.ShutAllCharsUp(False)
Camera.DoFade(500, Fade.In)

:RIOT1_2909
if 
  Camera.GetFadingStatus
goto_if_false @RIOT1_2933
wait 0
goto @RIOT1_2909

:RIOT1_2933
goto @RIOT1_2997

:RIOT1_2940
if 
  35@ > 0
goto_if_false @RIOT1_2965
gosub @RIOT1_3244

:RIOT1_2965
gosub @RIOT1_3390
goto @RIOT1_1048

:RIOT1_2979
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:RIOT1_2997
$flag_riot_mission_counter += 1
Stat.SetInt(StatId.PassedRiot1, 1)
Stat.RegisterMissionPassed('RIOT_1')
Text.PrintWithNumberBig('M_PASSD', 0, 5000, TextStyle.Middle)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Blip.Remove($mansion_contact_blip)
Blip.Remove($sweet_contact_blip)
$sweet_contact_blip = Blip.AddSpriteForContactPoint($sweetX, $sweetY, $sweetZ, $sweet_blip_icon)
Stat.PlayerMadeProgress(1)
return 

:RIOT1_3082
if 
  is_var_text_label_empty s$shop_name
goto_if_false @RIOT1_3100
Camera.RestoreJumpcut

:RIOT1_3100
Game.ShutAllCharsUp(False)
Char.ShutUpForScriptedSpeech($scplayer, False)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(567)
Streaming.MarkModelAsNoLongerNeeded(483)
Char.RemoveElegantly($sweet)
Streaming.UnloadSpecialCharacter(1)
Blip.Remove(34@)
Game.EnableAmbientCrime(True)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

:RIOT1_3160
if 
  Char.IsDead($sweet)
goto_if_false @RIOT1_3201
Text.ClearPrints
Text.PrintNow('R1_02', 7000, 1)
38@ = 1

:RIOT1_3201
if 
  Car.IsDead($7994)
goto_if_false @RIOT1_3242
Text.ClearPrints
Text.PrintNow('R1_04', 7000, 1)
38@ = 1

:RIOT1_3242
return 

:RIOT1_3244
if 
  39@ == 0
goto_if_false @RIOT1_3324
if 
  Char.IsInCar($scplayer, $7994)
goto_if_false @RIOT1_3324
Text.ClearThisPrint('R1_03')
Blip.Remove(34@)
34@ = Blip.AddForCoord(2505.4, -1670.6, 12.1)
39@ = 1

:RIOT1_3324
if 
  39@ == 1
goto_if_false @RIOT1_3388
if 
  not Char.IsInCar($scplayer, $7994)
goto_if_false @RIOT1_3388
Blip.Remove(34@)
34@ = Blip.AddForCar($7994)
Blip.SetAsFriendly(34@, True)
39@ = 0

:RIOT1_3388
return 

:RIOT1_3390
if 
  35@ == 1
goto_if_false @RIOT1_4277
if 
  Char.IsSittingInCar($scplayer, $7994)
goto_if_false @RIOT1_3588
if or
  40@ == 2
  40@ == 3
  40@ == 4
  40@ == 5
  40@ == 6
goto_if_false @RIOT1_3588
if 
  is_int_lvar_greater_than_int_lvar 89@ > 41@
goto_if_false @RIOT1_3574
gosub @RIOT1_5492
gosub @RIOT1_5599
if 
  not Char.IsDead($sweet)
goto_if_false @RIOT1_3536
gosub @RIOT1_5753
goto @RIOT1_3567

:RIOT1_3536
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(44@(41@,15s))
90@ = 0
91@ = 0

:RIOT1_3567
goto @RIOT1_3588

:RIOT1_3574
TIMERB = 0
40@ = 0

:RIOT1_3588
if 
  not Char.IsInCar($scplayer, $7994)
goto_if_false @RIOT1_3724
if 
  11 > 40@
goto_if_false @RIOT1_3724
if 
  is_int_lvar_greater_than_int_lvar 89@ > 41@
goto_if_false @RIOT1_3651
41@ += 1

:RIOT1_3651
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearPrints
Text.ClearThisPrint(44@(41@,15s))
set_lvar_int_to_lvar_int 94@ = 40@
set_lvar_int_to_lvar_int 95@ = 41@
40@ = 11
41@ = Math.RandomIntInRange(0, 4)
set_lvar_int_to_lvar_int 43@ = 41@
43@ += 1
gosub @RIOT1_4358

:RIOT1_3724
if 
  40@ == 11
goto_if_false @RIOT1_4049
if 
  not Char.IsInCar($scplayer, $7994)
goto_if_false @RIOT1_3997
if 
  is_int_lvar_greater_than_int_lvar 89@ > 41@
goto_if_false @RIOT1_3974
gosub @RIOT1_5492
gosub @RIOT1_5599
if 
  36@ == 0
goto_if_false @RIOT1_3878
if or
  not Char.IsDead($big_smoke)
  not Char.IsDead($sweet)
goto_if_false @RIOT1_3847
gosub @RIOT1_5753
goto @RIOT1_3878

:RIOT1_3847
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(44@(41@,15s))
90@ = 0
91@ = 0

:RIOT1_3878
if 
  36@ == 1
goto_if_false @RIOT1_3967
if or
  not Char.IsDead($big_smoke)
  not Char.IsDead($sweet)
  not Char.IsDead($mc_strap)
goto_if_false @RIOT1_3936
gosub @RIOT1_5753
goto @RIOT1_3967

:RIOT1_3936
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(44@(41@,15s))
90@ = 0
91@ = 0

:RIOT1_3967
goto @RIOT1_3997

:RIOT1_3974
Text.PrintNow('R1_03', 11000, 1)
40@ = 12

:RIOT1_3997
if 
  Char.IsSittingInCar($scplayer, $7994)
goto_if_false @RIOT1_4049
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(44@(41@,15s))
40@ = 13
41@ = 0
Text.ClearPrints

:RIOT1_4049
if 
  40@ == 12
goto_if_false @RIOT1_4102
if 
  Char.IsSittingInCar($scplayer, $7994)
goto_if_false @RIOT1_4102
40@ = 13
41@ = 0
Text.ClearPrints

:RIOT1_4102
if 
  40@ == 13
goto_if_false @RIOT1_4277
if 
  Char.IsSittingInCar($scplayer, $7994)
goto_if_false @RIOT1_4203
TIMERB = 0
set_lvar_int_to_lvar_int 40@ = 94@
set_lvar_int_to_lvar_int 41@ = 95@
gosub @RIOT1_4358
if 
  94@ == 0
goto_if_false @RIOT1_4203
Text.PrintNow('R1_01', 7000, 1)

:RIOT1_4203
if 
  not Char.IsInCar($scplayer, $7994)
goto_if_false @RIOT1_4277
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(44@(41@,15s))
40@ = 11
41@ = Math.RandomIntInRange(0, 4)
set_lvar_int_to_lvar_int 43@ = 41@
43@ += 1
gosub @RIOT1_4358

:RIOT1_4277
if or
  40@ == 1
  40@ == 7
goto_if_false @RIOT1_4356
if 
  is_int_lvar_greater_than_int_lvar 89@ > 41@
goto_if_false @RIOT1_4349
gosub @RIOT1_5492
gosub @RIOT1_5599
gosub @RIOT1_5753
goto @RIOT1_4356

:RIOT1_4349
40@ = 0

:RIOT1_4356
return 

:RIOT1_4358
if 
  40@ == 1
goto_if_false @RIOT1_4427
set_lvar_text_label 44@s = 'ROT1_AA'
set_lvar_text_label 46@s = 'ROT1_AB'
set_lvar_int_to_constant 74@ = 14629
set_lvar_int_to_constant 75@ = 14600
89@ = 2

:RIOT1_4427
if 
  40@ == 2
goto_if_false @RIOT1_4562
set_lvar_text_label 44@s = 'ROT1_BA'
set_lvar_text_label 46@s = 'ROT1_BB'
set_lvar_text_label 48@s = 'ROT1_BC'
set_lvar_text_label 50@s = 'ROT1_BD'
set_lvar_text_label 52@s = 'ROT1_BE'
set_lvar_int_to_constant 74@ = 14601
set_lvar_int_to_constant 75@ = 14602
set_lvar_int_to_constant 76@ = 14630
set_lvar_int_to_constant 77@ = 14603
set_lvar_int_to_constant 78@ = 14631
89@ = 5

:RIOT1_4562
if 
  40@ == 3
goto_if_false @RIOT1_4873
set_lvar_text_label 44@s = 'ROT1_EA'
set_lvar_text_label 46@s = 'ROT1_EB'
set_lvar_text_label 48@s = 'ROT1_EC'
set_lvar_text_label 50@s = 'ROT1_ED'
set_lvar_text_label 52@s = 'ROT1_EE'
set_lvar_text_label 54@s = 'ROT1_EF'
set_lvar_text_label 56@s = 'ROT1_EG'
set_lvar_text_label 58@s = 'ROT1_EH'
set_lvar_text_label 60@s = 'ROT1_EJ'
set_lvar_text_label 62@s = 'ROT1_EK'
set_lvar_text_label 64@s = 'ROT1_EL'
set_lvar_text_label 66@s = 'ROT1_EM'
set_lvar_text_label 68@s = 'ROT1_EN'
set_lvar_int_to_constant 74@ = 14605
set_lvar_int_to_constant 75@ = 14634
set_lvar_int_to_constant 76@ = 14635
set_lvar_int_to_constant 77@ = 14606
set_lvar_int_to_constant 78@ = 14636
set_lvar_int_to_constant 79@ = 14607
set_lvar_int_to_constant 80@ = 14637
set_lvar_int_to_constant 81@ = 14608
set_lvar_int_to_constant 82@ = 14638
set_lvar_int_to_constant 83@ = 14609
set_lvar_int_to_constant 84@ = 14639
set_lvar_int_to_constant 85@ = 14610
set_lvar_int_to_constant 86@ = 14640
89@ = 13

:RIOT1_4873
if 
  40@ == 4
goto_if_false @RIOT1_4964
set_lvar_text_label 44@s = 'ROT1_DA'
set_lvar_text_label 46@s = 'ROT1_DB'
set_lvar_text_label 48@s = 'ROT1_DC'
set_lvar_int_to_constant 74@ = 14632
set_lvar_int_to_constant 75@ = 14604
set_lvar_int_to_constant 76@ = 14633
89@ = 3

:RIOT1_4964
if 
  40@ == 5
goto_if_false @RIOT1_5143
set_lvar_text_label 44@s = 'ROT1_FA'
set_lvar_text_label 46@s = 'ROT1_FB'
set_lvar_text_label 48@s = 'ROT1_FC'
set_lvar_text_label 50@s = 'ROT1_FD'
set_lvar_text_label 52@s = 'ROT1_FE'
set_lvar_text_label 54@s = 'ROT1_FF'
set_lvar_text_label 56@s = 'ROT1_FG'
set_lvar_int_to_constant 74@ = 14641
set_lvar_int_to_constant 75@ = 14642
set_lvar_int_to_constant 76@ = 14643
set_lvar_int_to_constant 77@ = 14644
set_lvar_int_to_constant 78@ = 14611
set_lvar_int_to_constant 79@ = 14612
set_lvar_int_to_constant 80@ = 14613
89@ = 7

:RIOT1_5143
if 
  40@ == 6
goto_if_false @RIOT1_5234
set_lvar_text_label 44@s = 'ROT1_GL'
set_lvar_text_label 46@s = 'ROT1_GA'
set_lvar_text_label 48@s = 'ROT1_FH'
set_lvar_int_to_constant 74@ = 14624
set_lvar_int_to_constant 75@ = 14615
set_lvar_int_to_constant 76@ = 14614
89@ = 3

:RIOT1_5234
if 
  40@ == 7
goto_if_false @RIOT1_5347
set_lvar_text_label 44@s = 'ROT1_HC'
set_lvar_text_label 46@s = 'ROT1_HD'
set_lvar_text_label 48@s = 'ROT1_HE'
set_lvar_text_label 50@s = 'ROT1_HF'
set_lvar_int_to_constant 74@ = 14627
set_lvar_int_to_constant 75@ = 14646
set_lvar_int_to_constant 76@ = 14647
set_lvar_int_to_constant 77@ = 14628
89@ = 4

:RIOT1_5347
if 
  40@ == 11
goto_if_false @RIOT1_5461
set_lvar_text_label 44@s = 'SWE1_BG'
set_lvar_text_label 46@s = 'SWE1_BK'
set_lvar_text_label 48@s = 'SWE1_BL'
set_lvar_text_label 50@s = 'SWE1_BM'
set_lvar_int_to_constant 74@ = 7463
set_lvar_int_to_constant 75@ = 7466
set_lvar_int_to_constant 76@ = 7467
set_lvar_int_to_constant 77@ = 7468
set_lvar_int_to_lvar_int 89@ = 43@

:RIOT1_5461
set_lvar_int_to_lvar_int 92@ = 41@
90@ = 0
91@ = 0
93@ = 1
return 

:RIOT1_5492
if 
  is_int_lvar_greater_than_int_lvar 89@ > 92@
goto_if_false @RIOT1_5597
if 
  90@ == 0
goto_if_false @RIOT1_5554
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 74@(92@,15i))
92@ += 1
90@ = 1

:RIOT1_5554
if 
  91@ == 0
goto_if_false @RIOT1_5597
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 74@(92@,15i))
92@ += 1
91@ = 1

:RIOT1_5597
return 

:RIOT1_5599
if 
  93@ == 1
goto_if_false @RIOT1_5675
if 
  90@ == 1
goto_if_false @RIOT1_5675
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @RIOT1_5675
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(44@(41@,15s), 4500, 1)
90@ = 2

:RIOT1_5675
if 
  93@ == 2
goto_if_false @RIOT1_5751
if 
  91@ == 1
goto_if_false @RIOT1_5751
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @RIOT1_5751
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow(44@(41@,15s), 4500, 1)
91@ = 2

:RIOT1_5751
return 

:RIOT1_5753
if 
  90@ == 2
goto_if_false @RIOT1_5816
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @RIOT1_5816
Text.ClearThisPrint(44@(41@,15s))
41@ += 1
93@ = 2
90@ = 0

:RIOT1_5816
if 
  91@ == 2
goto_if_false @RIOT1_5879
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @RIOT1_5879
Text.ClearThisPrint(44@(41@,15s))
41@ += 1
93@ = 1
91@ = 0

:RIOT1_5879
return 

//-------------Mission 109---------------
// Originally: Los Desperados

:RIOT2
script_name 'RIOT2'
gosub @RIOT2_47
if 
  has_deatharrest_been_executed 
goto_if_false @RIOT2_38
gosub @RIOT2_30241

:RIOT2_38
gosub @RIOT2_30499
terminate_this_script 

:RIOT2_47
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('RIOT2')
if 
  $onmission == 0
goto_if_false @RIOT2_350
88@ = Object.Create(#BBALL_INGAME, 0.0, 0.0, 0.0)
89@ = Blip.AddForCoord(1774.9, -1974.9, 13.1)
37@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1831.9, -2004.6, 12.6)
43@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1831.9, -2004.6, 12.6)
49@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1831.9, -2004.6, 12.6)
55@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1831.9, -2004.6, 12.6)
61@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1831.9, -2004.6, 12.6)
79@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1831.9, -2004.6, 12.6)
96@ = Blip.AddForChar(37@)
102@ = Blip.AddForChar(43@)
108@ = Blip.AddForChar(49@)
114@ = Blip.AddForChar(55@)
120@ = Blip.AddForChar(61@)
132@ = Blip.AddForChar(79@)

:RIOT2_350
Text.ClearPrints
wait 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
187@ = 0
set_lvar_int_to_constant 146@ = 108
set_lvar_int_to_constant 147@ = 109
148@ = 0
149@ = 2
150@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
156@ = 0
157@ = 0
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
170@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
176@ = 0
262@ = 0.0
263@ = 0.0
264@ = 0.0
168@ = 0
169@ = 0
177@ = 0
178@ = 0
185@ = 0
188@ = 0
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
183@ = 0.0
180@ = 0
181@ = 60
270@ = 0
Player.MakeGangDisappear
Streaming.SetAreaVisible(1)
Cutscene.Load('RIOT_2')

:RIOT2_756
if 
  not Cutscene.HasLoaded
goto_if_false @RIOT2_780
wait 0
goto @RIOT2_756

:RIOT2_780
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:RIOT2_789
if 
  not Cutscene.HasFinished
goto_if_false @RIOT2_813
wait 0
goto @RIOT2_789

:RIOT2_813
Camera.DoFade(0, Fade.Out)

:RIOT2_819
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_843
wait 0
goto @RIOT2_819

:RIOT2_843
Streaming.SetAreaVisible(0)
Cutscene.Clear
Player.SetControl($player1, False)
Player.MakeGangReappear
Camera.SetFadingColor(0, 0, 0)
wait 0
Streaming.LoadSpecialCharacter(1, 'CESAR')
Streaming.RequestModel(114)
Streaming.RequestModel(115)
Streaming.RequestModel(116)
Streaming.RequestModel(108)
Streaming.RequestModel(109)
Streaming.RequestModel(339)
Streaming.RequestModel(348)
Streaming.RequestModel(372)
Streaming.LoadAllModelsNow
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Mission2)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Player1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission2, PedType.Mission1)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission2, PedType.Player1)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission2, PedType.Mission2)
Game.SetRelationship(RelationshipType.Respect, PedType.Mission1, PedType.Mission1)
265@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
266@ = DecisionMakerChar.Copy(65542)
267@ = DecisionMakerGroup.Load(0)
World.ClearArea(2520.8, -1678.5, 14.2, 30.0, True)
Streaming.LoadScene(2520.8, -1678.5, 14.2)
Char.SetCoordinates($scplayer, 2520.8, -1678.5, 14.2)
Char.SetHeading($scplayer, 68.6)
World.ClearArea(2520.8, -1678.5, 14.2, 1.0, True)
$cesar = Char.Create(PedType.Mission1, 290, 2519.8, -1677.5, 13.7)
Char.SetHeading($cesar, 68.6)
Char.GiveWeapon($cesar, WeaponType.DesertEagle, 30000)
Char.SetNeverTargeted($cesar, True)
Char.AddArmor($cesar, 100)
Char.SetRelationship($cesar, RelationshipType.Respect, PedType.Mission1)
Char.SetOnlyDamagedByPlayer($cesar, True)
Char.SetSuffersCriticalHits($cesar, False)
Char.SetDecisionMaker($cesar, 265@)
Path.SwitchPedRoadsOff(1945.8, -1956.5, 0.0, 1642.9, -2174.3, 50.0)
World.ClearArea(1784.6, -1969.5, 13.1, 30.0, True)
35@ = Char.Create(PedType.Mission1, 114, 1784.6, -1969.5, 13.1)
Char.SetHeading(35@, 103.1)
Char.GiveWeapon(35@, WeaponType.Tec9, 30000)
Char.SetNeverTargeted(35@, True)
Char.AddArmor(35@, 100)
Char.SetRelationship(35@, RelationshipType.Respect, PedType.Mission1)
Char.SetOnlyDamagedByPlayer(35@, True)
Char.SetSuffersCriticalHits(35@, False)
Char.SetDecisionMaker(35@, 266@)
34@ = Char.Create(PedType.Mission1, 115, 1784.4, -1971.1, 13.1)
Char.SetHeading(34@, 52.8)
Char.GiveWeapon(34@, WeaponType.Tec9, 30000)
Char.SetNeverTargeted(34@, True)
Char.AddArmor(34@, 100)
Char.SetRelationship(34@, RelationshipType.Respect, PedType.Mission1)
Char.SetOnlyDamagedByPlayer(34@, True)
Char.SetSuffersCriticalHits(34@, False)
Char.SetDecisionMaker(34@, 266@)
36@ = Char.Create(PedType.Mission1, 116, 1782.6, -1969.4, 13.1)
Char.SetHeading(36@, 250.2)
Char.GiveWeapon(36@, WeaponType.Katana, 30000)
Char.SetNeverTargeted(36@, True)
Char.AddArmor(36@, 100)
Char.SetRelationship(36@, RelationshipType.Respect, PedType.Mission1)
Char.SetOnlyDamagedByPlayer(36@, True)
Char.SetSuffersCriticalHits(36@, False)
Char.SetProofs(36@, True, False, False, False, False)
Char.SetDecisionMaker(36@, 266@)
Garage.ChangeType('DUF_LAS', GarageType.ForScriptToOpen)
Game.SwitchEmergencyServices(False)
Garage.Close('DUF_LAS')
Zone.SetNoCops('ELCO', True)
184@ = Pickup.Create(#HEALTH, PickupType.OnStreetSlow, 1877.54, -1982.63, 13.48)
Game.EnableAmbientCrime(False)

:RIOT2_1585
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @RIOT2_1611
goto @RIOT2_30259

:RIOT2_1611
Player.AlterWantedLevel($player1, 0)
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_1650
goto @RIOT2_30241

:RIOT2_1650
174@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 175@ = 174@
sub_int_lvar_from_int_lvar 175@ -= 176@
set_lvar_int_to_lvar_int 176@ = 174@
add_int_lvar_to_int_lvar 170@ += 175@
add_int_lvar_to_int_lvar 171@ += 175@
add_int_lvar_to_int_lvar 172@ += 175@
add_int_lvar_to_int_lvar 173@ += 175@
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @RIOT2_1766
Char.SetCoordinates($scplayer, 1776.0, -1988.1, 12.9)
Char.SetCoordinates($cesar, 1776.0, -1990.1, 12.9)

:RIOT2_1766
$minutes, 177@ = Group.GetSize($Players_Group)
if 
  142@ == 0
goto_if_false @RIOT2_3308
if 
  143@ == 0
goto_if_false @RIOT2_2116
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
185@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Camera.SetFixedPosition(2509.0, -1672.7, 13.3, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2523.1, -1678.2, 15.2, SwitchType.JumpCut)
Game.ShutAllCharsUp(True)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2512.8, -1673.2, 12.5, MoveState.Walk, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence($cesar, 268@)
Sequence.Clear(268@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 2514.1, -1675.2, 12.5, MoveState.Walk, -1)
Task.TurnCharToFaceChar(-1, $cesar)
Sequence.Close(268@)
Char.PerformSequence($scplayer, 268@)
Sequence.Clear(268@)
Camera.DoFade(500, Fade.In)

:RIOT2_2018
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_2042
wait 0
goto @RIOT2_2018

:RIOT2_2042
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_2074
goto @RIOT2_30241

:RIOT2_2074
185@ = 1
186@ = 0
gosub @RIOT2_40912
143@ = 1
144@ = 1
skip_cutscene_start_internal @RIOT2_2249

:RIOT2_2116
if 
  143@ == 1
goto_if_false @RIOT2_2206
$task_status = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_2206
Task.PlayAnim($scplayer, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
143@ = 2

:RIOT2_2206
if 
  143@ == 2
goto_if_false @RIOT2_2607
if 
  185@ == 0
goto_if_false @RIOT2_2607
144@ = 0

:RIOT2_2249
skip_cutscene_end 
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_2283
goto @RIOT2_30241

:RIOT2_2283
if 
  144@ == 1
goto_if_false @RIOT2_2441
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
185@ = 0
Camera.DoFade(500, Fade.Out)

:RIOT2_2325
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_2349
wait 0
goto @RIOT2_2325

:RIOT2_2349
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_2381
goto @RIOT2_30241

:RIOT2_2381
Char.SetCoordinates($scplayer, 2512.8, -1673.2, 12.5)
Char.SetHeading($scplayer, 40.6)
Char.SetCoordinates($cesar, 2514.1, -1675.2, 12.5)
Char.SetHeading($cesar, 220.0)

:RIOT2_2441
Char.ClearTasksImmediately($scplayer)
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $cesar)
167@ = 1
Group.SetDecisionMaker($Players_Group, 267@)
Game.ShutAllCharsUp(False)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Text.PrintNow('R2_01', 60000, 1)
if 
  144@ == 1
goto_if_false @RIOT2_2600
Camera.DoFade(500, Fade.In)

:RIOT2_2544
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_2568
wait 0
goto @RIOT2_2544

:RIOT2_2568
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_2600
goto @RIOT2_30241

:RIOT2_2600
143@ = 3

:RIOT2_2607
if 
  143@ > 2
goto_if_false @RIOT2_2632
gosub @RIOT2_37859

:RIOT2_2632
if 
  143@ == 3
goto_if_false @RIOT2_2730
if 
  177@ > 2
goto_if_false @RIOT2_2730
Blip.Remove(89@)
89@ = Blip.AddForCoord(1774.9, -1974.9, 13.1)
Blip.SetAsFriendly(89@, False)
Text.PrintNow('R2_13', 7000, 1)
TIMERB = 0
143@ = 4

:RIOT2_2730
if 
  143@ == 4
goto_if_false @RIOT2_3308
if 
  187@ == 0
goto_if_false @RIOT2_2827
if 
  TIMERB > 7000
goto_if_false @RIOT2_2827
Char.ShutUpForScriptedSpeech($scplayer, True)
Char.ShutUpForScriptedSpeech($cesar, True)
185@ = 2
186@ = 0
gosub @RIOT2_40912
187@ = 1

:RIOT2_2827
if 
  187@ == 1
goto_if_false @RIOT2_2877
if 
  185@ == 0
goto_if_false @RIOT2_2877
TIMERB = 0
187@ = 2

:RIOT2_2877
if 
  187@ == 2
goto_if_false @RIOT2_2942
if 
  TIMERB > 7000
goto_if_false @RIOT2_2942
185@ = 3
186@ = 0
gosub @RIOT2_40912
187@ = 3

:RIOT2_2942
if 
  187@ == 3
goto_if_false @RIOT2_2999
if 
  185@ == 0
goto_if_false @RIOT2_2999
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
187@ = 4

:RIOT2_2999
if 
  167@ == 1
goto_if_false @RIOT2_3207
$minutes, 177@ = Group.GetSize($Players_Group)
if 
  178@ == 0
goto_if_false @RIOT2_3105
if 
  3 > 177@
goto_if_false @RIOT2_3105
Blip.Remove(89@)
Text.ClearThisPrint('R2_13')
Text.PrintNow('R2_01', 60000, 1)
178@ = 1

:RIOT2_3105
if 
  178@ == 1
goto_if_false @RIOT2_3207
if 
  177@ > 2
goto_if_false @RIOT2_3207
Blip.Remove(89@)
89@ = Blip.AddForCoord(1774.9, -1974.9, 13.1)
Blip.SetAsFriendly(89@, False)
Text.ClearThisPrint('R2_01')
Text.PrintNow('R2_13', 7000, 1)
178@ = 0

:RIOT2_3207
if 
  178@ == 0
goto_if_false @RIOT2_3308
if 
  Char.LocateAnyMeans3D($scplayer, 1774.9, -1974.9, 13.1, 4.0, 4.0, 4.0, True)
goto_if_false @RIOT2_3308
Char.ShutUpForScriptedSpeech($scplayer, False)
Char.ShutUpForScriptedSpeech($cesar, False)
187@ = 0
143@ = 0
142@ = 1

:RIOT2_3308
if 
  142@ == 1
goto_if_false @RIOT2_6797
if 
  143@ == 0
goto_if_false @RIOT2_3975
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
185@ = 0
Camera.DoFade(500, Fade.Out)

:RIOT2_3368
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_3392
wait 0
goto @RIOT2_3368

:RIOT2_3392
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_3424
goto @RIOT2_30241

:RIOT2_3424
World.ClearArea(1781.1, -1974.8, 13.1, 30.0, True)
Game.ShutAllCharsUp(True)
World.SetPedDensityMultiplier(0.0)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.RemoveFromGroup($cesar)
Streaming.RequestModel(#BBALL_INGAME)
Streaming.RequestAnimation("BSKTBALL")
Streaming.RequestAnimation("SMOKING")
Streaming.RequestAnimation("GANGS")
Streaming.LoadAllModelsNow
Player.MakeGangDisappear
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @RIOT2_3618
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1781.1, -1974.8, 13.1)
Char.SetHeading($scplayer, 325.3)
Char.ClearTasksImmediately($cesar)
Char.SetCoordinates($cesar, 1781.8, -1976.4, 13.1)
Char.SetHeading($cesar, 302.3)
goto @RIOT2_3656

:RIOT2_3618
87@ = Char.StoreCarIsInNoSave($scplayer)
Car.SetCoordinates(87@, 1774.9, -1974.9, 13.1)
Task.LeaveAnyCar($scplayer)
Task.LeaveAnyCar($cesar)

:RIOT2_3656
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1781.1, -1974.8, 13.1)
Char.SetHeading($scplayer, 325.3)
Char.ClearTasksImmediately($cesar)
Char.SetCoordinates($cesar, 1781.8, -1976.4, 13.1)
Char.SetHeading($cesar, 302.3)
268@ = Sequence.Open()
Task.PlayAnim(-1, "PRTIAL_GNGTLKA", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKB", "GANGS", 4.0, False, False, False, False, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence(35@, 268@)
Sequence.Clear(268@)
Camera.SetFixedPosition(1781.1, -1970.4, 14.7, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1783.2, -1969.9, 14.5, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:RIOT2_3898
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_3922
wait 0
goto @RIOT2_3898

:RIOT2_3922
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_3954
goto @RIOT2_30241

:RIOT2_3954
143@ = 1
144@ = 1
skip_cutscene_start_internal @RIOT2_5994

:RIOT2_3975
if 
  143@ == 1
goto_if_false @RIOT2_4028
185@ = 4
186@ = 0
188@ = 2
gosub @RIOT2_40912
143@ = 2

:RIOT2_4028
if 
  143@ == 2
goto_if_false @RIOT2_4259
if 
  185@ == 0
goto_if_false @RIOT2_4259
Camera.SetFixedPosition(1784.5, -1967.7, 14.7, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1781.4, -1973.5, 14.3, SwitchType.JumpCut)
Task.GoStraightToCoord($scplayer, 1782.3, -1972.8, 13.1, MoveState.Walk, -1)
Task.TurnCharToFaceChar(36@, $scplayer)
Task.GoStraightToCoord(34@, 1783.8, -1972.4, 13.1, MoveState.Walk, -1)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1783.3, -1973.0, 13.1, MoveState.Walk, -1)
Sequence.Close(268@)
Char.PerformSequence($cesar, 268@)
Sequence.Clear(268@)
185@ = 4
186@ = 2
188@ = 4
gosub @RIOT2_40912
TIMERA = 0
143@ = 3

:RIOT2_4259
if 
  143@ == 3
goto_if_false @RIOT2_4367
if 
  185@ == 0
goto_if_false @RIOT2_4367
268@ = Sequence.Open()
Task.PlayAnim(-1, "PRTIAL_GNGTLKD", "GANGS", 4.0, False, False, False, False, -1)
Sequence.Close(268@)
Char.PerformSequence($cesar, 268@)
Sequence.Clear(268@)
143@ = 4

:RIOT2_4367
if 
  143@ == 4
goto_if_false @RIOT2_4586
if 
  185@ == 0
goto_if_false @RIOT2_4586
$task_status = Char.GetScriptTaskStatus($cesar, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_4586
Char.ClearTasks(34@)
268@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.PlayAnim(-1, "PRTIAL_GNGTLKC", "GANGS", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PRTIAL_GNGTLKE", "GANGS", 4.0, False, False, False, False, -1)
Sequence.Close(268@)
Char.PerformSequence(34@, 268@)
Sequence.Clear(268@)
185@ = 4
186@ = 4
188@ = 5
gosub @RIOT2_40912
143@ = 5

:RIOT2_4586
if 
  143@ == 5
goto_if_false @RIOT2_4636
if 
  185@ == 0
goto_if_false @RIOT2_4636
TIMERA = 0
143@ = 6

:RIOT2_4636
if 
  143@ == 6
goto_if_false @RIOT2_5228
if 
  TIMERA > 1000
goto_if_false @RIOT2_5228
Camera.DoFade(500, Fade.Out)

:RIOT2_4680
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_4704
wait 0
goto @RIOT2_4680

:RIOT2_4704
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_4736
goto @RIOT2_30241

:RIOT2_4736
World.ClearArea(1793.8, -1970.6, 12.5, 30.0, True)
Char.ClearTasks($scplayer)
Char.SetCoordinates($scplayer, 1789.5, -1968.5, 12.5)
Char.SetHeading($scplayer, 234.3)
Task.GoStraightToCoord($scplayer, 1798.2, -1974.4, 12.5, MoveState.Walk, -1)
Char.ClearTasks($cesar)
Char.SetCoordinates($cesar, 1789.0, -1970.6, 12.5)
Char.SetHeading($cesar, 231.5)
Task.GoStraightToCoord($cesar, 1794.0, -1973.5, 12.5, MoveState.Walk, -1)
Char.SetCoordinates(35@, 1789.3, -1967.4, 12.5)
Char.SetHeading(35@, 231.5)
Task.GoStraightToCoord(35@, 1796.3, -1970.7, 12.5, MoveState.Walk, -1)
Char.SetCoordinates(36@, 1787.4, -1967.2, 12.5)
Char.SetHeading(36@, 234.5)
Task.GoStraightToCoord(36@, 1792.9, -1972.3, 12.5, MoveState.Walk, -1)
Char.SetCoordinates(34@, 1786.3, -1966.7, 12.5)
Char.SetHeading(34@, 251.5)
Task.GoStraightToCoord(34@, 1793.8, -1970.6, 12.5, MoveState.Walk, -1)
if 
  150@ == 0
goto_if_false @RIOT2_5072
gosub @RIOT2_31232
150@ = 1

:RIOT2_5072
Camera.SetFixedPosition(1788.0, -1968.0, 14.5, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1799.5, -1973.8, 13.6, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:RIOT2_5130
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_5154
wait 0
goto @RIOT2_5130

:RIOT2_5154
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_5186
goto @RIOT2_30241

:RIOT2_5186
185@ = 4
186@ = 5
188@ = 6
gosub @RIOT2_40912
TIMERA = 0
143@ = 7

:RIOT2_5228
if 
  143@ == 7
goto_if_false @RIOT2_5376
if 
  185@ == 0
goto_if_false @RIOT2_5376
if 
  TIMERA > 4000
goto_if_false @RIOT2_5376
185@ = 4
186@ = 8
188@ = 10
gosub @RIOT2_40912
Camera.SetFixedPosition(1823.1, -1997.4, 13.5, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1829.3, -2003.7, 14.4, SwitchType.JumpCut)
TIMERA = 0
143@ = 8

:RIOT2_5376
if 
  143@ == 8
goto_if_false @RIOT2_5914
if 
  not Char.IsDead(38@)
goto_if_false @RIOT2_5675
if 
  Object.IsAttached(88@)
goto_if_false @RIOT2_5637
if 
  Char.IsPlayingAnim(38@, "BBALL_IDLELOOP")
goto_if_false @RIOT2_5630
183@ = Char.GetAnimCurrentTime(38@, "BBALL_IDLELOOP")
if 
  Object.IsPlayingAnim(88@, "BBALL_IDLELOOP_O")
goto_if_false @RIOT2_5549
Object.SetAnimCurrentTime(88@, "BBALL_IDLELOOP_O", 183@)
goto @RIOT2_5630

:RIOT2_5549
if 
Object.PlayAnim(88@, "BBALL_IDLELOOP_O", "BSKTBALL", 10000.0, False, False)
goto_if_false @RIOT2_5630
Object.SetAnimSpeed(88@, "BBALL_IDLELOOP_O", 0.0)

:RIOT2_5630
goto @RIOT2_5675

:RIOT2_5637
Object.AttachToChar(88@, 38@, 0.0, 0.5, -1.0, 0.0, 0.0, 0.0)

:RIOT2_5675
if 
  185@ == 0
goto_if_false @RIOT2_5914
if 
  TIMERA > 4000
goto_if_false @RIOT2_5914
Camera.SetFixedPosition(1827.4, -1998.7, 13.1, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1830.2, -1995.2, 13.4, SwitchType.JumpCut)
if 
  not Char.IsDead(42@)
goto_if_false @RIOT2_5872
268@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 1831.1, -1995.9, 12.6, 4, -1)
Task.AchieveHeading(-1, 180.0)
Task.PlayAnim(-1, "M_SMK_IN", "SMOKING", 4.0, False, False, False, False, -1)
Sequence.Close(268@)
Char.PerformSequence(42@, 268@)
Sequence.Clear(268@)

:RIOT2_5872
185@ = 4
186@ = 10
188@ = 12
gosub @RIOT2_40912
TIMERA = 0
143@ = 9

:RIOT2_5914
if 
  143@ == 9
goto_if_false @RIOT2_6797
if 
  185@ == 0
goto_if_false @RIOT2_6797
if 
  TIMERA > 4000
goto_if_false @RIOT2_6797
if 
  185@ == 0
goto_if_false @RIOT2_6797
144@ = 0

:RIOT2_5994
skip_cutscene_end 
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_6028
goto @RIOT2_30241

:RIOT2_6028
if 
  144@ == 1
goto_if_false @RIOT2_6445
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
185@ = 0
Camera.DoFade(500, Fade.Out)

:RIOT2_6070
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_6094
wait 0
goto @RIOT2_6070

:RIOT2_6094
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_6126
goto @RIOT2_30241

:RIOT2_6126
if 
  150@ == 0
goto_if_false @RIOT2_6158
gosub @RIOT2_31232
150@ = 1

:RIOT2_6158
if 
  not Char.IsDead(42@)
goto_if_false @RIOT2_6270
Char.ClearTasksImmediately(42@)
Char.SetCoordinates(42@, 1831.1, -1995.9, 12.6)
Char.SetHeading(42@, 180.0)
268@ = Sequence.Open()
Task.PlayAnim(-1, "M_SMK_IN", "SMOKING", 4.0, False, False, False, False, -1)
Sequence.Close(268@)
Char.PerformSequence(42@, 268@)
Sequence.Clear(268@)

:RIOT2_6270
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1793.8, -1970.6, 12.5)
Char.SetHeading($scplayer, 234.3)
Char.ClearTasksImmediately($cesar)
Char.SetCoordinates($cesar, 1792.9, -1972.3, 12.5)
Char.SetHeading($cesar, 231.5)
Char.ClearTasksImmediately(35@)
Char.SetCoordinates(35@, 1794.8, -1969.8, 12.5)
Char.SetHeading(35@, 231.5)
Char.ClearTasksImmediately(36@)
Char.SetCoordinates(36@, 1791.8, -1971.1, 12.5)
Char.SetHeading(36@, 234.5)
Char.ClearTasksImmediately(34@)
Char.SetCoordinates(34@, 1792.5, -1970.4, 12.5)
Char.SetHeading(34@, 251.5)

:RIOT2_6445
Object.Delete(88@)
Streaming.MarkModelAsNoLongerNeeded(#BBALL_INGAME)
if 
  not Char.IsDead(38@)
goto_if_false @RIOT2_6486
Char.GiveWeapon(38@, WeaponType.Tec9, 3000)
Char.ClearTasksImmediately(38@)

:RIOT2_6486
if 
  not Char.IsDead(39@)
goto_if_false @RIOT2_6507
Char.ClearTasksImmediately(38@)

:RIOT2_6507
if 
  not Char.IsDead(38@)
goto_if_false @RIOT2_6563
if 
  not Char.IsDead(39@)
goto_if_false @RIOT2_6563
Task.ChatWithChar(38@, 39@, True, 1)
Task.ChatWithChar(39@, 38@, False, 1)

:RIOT2_6563
if 
  not Char.IsDead(42@)
goto_if_false @RIOT2_6589
Char.GiveWeapon(42@, WeaponType.Tec9, 3000)

:RIOT2_6589
Char.SetDecisionMaker(35@, 265@)
Char.SetDecisionMaker(34@, 265@)
Char.SetDecisionMaker(36@, 265@)
Player.MakeGangReappear
Game.SetGunshotSenseRangeForRiot2(15.0)
Streaming.RemoveAnimation("GANGS")
Game.ShutAllCharsUp(False)
Blip.Remove(89@)
89@ = Blip.AddForChar($cesar)
Blip.SetAsFriendly(89@, True)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Text.PrintNow('R2_03', 7000, 1)
if 
  144@ == 1
goto_if_false @RIOT2_6776
Camera.DoFade(500, Fade.In)

:RIOT2_6720
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_6744
wait 0
goto @RIOT2_6720

:RIOT2_6744
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_6776
goto @RIOT2_30241

:RIOT2_6776
143@ = 0
142@ = 2
TIMERB = 0

:RIOT2_6797
if 
  142@ == 2
goto_if_false @RIOT2_13879
if 
  150@ == 1
goto_if_false @RIOT2_7103
if 
  6 > 151@
goto_if_false @RIOT2_7096
if 
  not Char.IsDead(37@(151@,6i))
goto_if_false @RIOT2_7075
if 
  Char.HasSpottedChar(37@(151@,6i), $scplayer)
goto_if_false @RIOT2_7031
if 
  not Char.IsDead(40@)
goto_if_false @RIOT2_6959
268@ = Sequence.Open()
Task.GotoCharOffset(-1, $scplayer, -1, 1.5, 0.0)
Sequence.SetToRepeat(268@, True)
Sequence.Close(268@)
Char.PerformSequence(40@, 268@)
Sequence.Clear(268@)

:RIOT2_6959
if 
  not Char.IsDead(41@)
goto_if_false @RIOT2_7024
268@ = Sequence.Open()
Task.GotoCharOffset(-1, $scplayer, -1, 3.0, 0.0)
Sequence.SetToRepeat(268@, True)
Sequence.Close(268@)
Char.PerformSequence(41@, 268@)
Sequence.Clear(268@)

:RIOT2_7024
150@ = 3

:RIOT2_7031
164@ = Char.GetHealth(37@(151@,6i))
if 
  100 > 164@
goto_if_false @RIOT2_7068
150@ = 4

:RIOT2_7068
goto @RIOT2_7082

:RIOT2_7075
150@ = 4

:RIOT2_7082
151@ += 1
goto @RIOT2_7103

:RIOT2_7096
151@ = 0

:RIOT2_7103
if 
  150@ == 3
goto_if_false @RIOT2_7303
if 
  6 > 151@
goto_if_false @RIOT2_7296
if 
  not Char.IsDead(37@(151@,6i))
goto_if_false @RIOT2_7275
164@ = Char.GetHealth(37@(151@,6i))
if 
  100 > 164@
goto_if_false @RIOT2_7196
150@ = 4

:RIOT2_7196
if 
  not Char.IsDead(37@)
goto_if_false @RIOT2_7238
if 
  Char.HasSpottedChar(37@, $scplayer)
goto_if_false @RIOT2_7238
150@ = 4

:RIOT2_7238
if 
  Player.IsTargetingChar($player1, 37@(151@,6i))
goto_if_false @RIOT2_7268
150@ = 4

:RIOT2_7268
goto @RIOT2_7282

:RIOT2_7275
150@ = 4

:RIOT2_7282
151@ += 1
goto @RIOT2_7303

:RIOT2_7296
151@ = 0

:RIOT2_7303
if 
  150@ == 4
goto_if_false @RIOT2_7421
if 
  185@ == 0
goto_if_false @RIOT2_7414
if 
  not Char.IsDead($cesar)
goto_if_false @RIOT2_7414
if 
  Char.LocateAnyMeansChar2D($scplayer, $cesar, 60.0, 60.0, False)
goto_if_false @RIOT2_7414
185@ = 5
186@ = 11
188@ = 12
gosub @RIOT2_40912

:RIOT2_7414
150@ = 5

:RIOT2_7421
if 
  150@ > 3
goto_if_false @RIOT2_7658
if or
  158@ == 0
  161@ == 0
  152@ == 0
  155@ == 0
goto_if_false @RIOT2_7526
if 
  not Char.IsDead(37@)
goto_if_false @RIOT2_7526
if 
  149@ == 2
goto_if_false @RIOT2_7519
149@ = 0

:RIOT2_7519
gosub @RIOT2_32036

:RIOT2_7526
if 
  158@ > 0
goto_if_false @RIOT2_7658
if 
  161@ > 0
goto_if_false @RIOT2_7658
if 
  152@ > 0
goto_if_false @RIOT2_7658
if 
  155@ > 0
goto_if_false @RIOT2_7658
if 
  not Char.IsDead(37@)
goto_if_false @RIOT2_7658
$task_status = Char.GetScriptTaskStatus(37@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_7658
Task.KillCharOnFoot(37@, $scplayer)
149@ = 3

:RIOT2_7658
if 
  150@ == 5
goto_if_false @RIOT2_7908
if 
  Char.IsDead(37@)
goto_if_false @RIOT2_7908
if 
  Char.IsDead(38@)
goto_if_false @RIOT2_7908
if 
  Char.IsDead(39@)
goto_if_false @RIOT2_7908
if 
  Char.IsDead(40@)
goto_if_false @RIOT2_7908
if 
  Char.IsDead(41@)
goto_if_false @RIOT2_7908
if 
  Char.IsDead(42@)
goto_if_false @RIOT2_7908
Blip.Remove(96@)
Blip.Remove(97@)
Blip.Remove(98@)
Blip.Remove(99@)
Blip.Remove(100@)
Blip.Remove(101@)
Char.MarkAsNoLongerNeeded(37@)
Char.MarkAsNoLongerNeeded(38@)
Char.MarkAsNoLongerNeeded(39@)
Char.MarkAsNoLongerNeeded(40@)
Char.MarkAsNoLongerNeeded(41@)
Char.MarkAsNoLongerNeeded(42@)
if and
  158@ == 0
  161@ == 0
  152@ == 0
  155@ == 0
goto_if_false @RIOT2_7878
158@ = 1

:RIOT2_7878
Streaming.RemoveAnimation("BSKTBALL")
Streaming.RemoveAnimation("SMOKING")
150@ = 6

:RIOT2_7908
if 
  6 > 150@
goto_if_false @RIOT2_8082
if 
  Char.IsDead(37@)
goto_if_false @RIOT2_7952
Blip.Remove(96@)
Char.MarkAsNoLongerNeeded(37@)

:RIOT2_7952
if 
  Char.IsDead(38@)
goto_if_false @RIOT2_7978
Blip.Remove(97@)
Char.MarkAsNoLongerNeeded(38@)

:RIOT2_7978
if 
  Char.IsDead(39@)
goto_if_false @RIOT2_8004
Blip.Remove(98@)
Char.MarkAsNoLongerNeeded(39@)

:RIOT2_8004
if 
  Char.IsDead(40@)
goto_if_false @RIOT2_8030
Blip.Remove(99@)
Char.MarkAsNoLongerNeeded(40@)

:RIOT2_8030
if 
  Char.IsDead(41@)
goto_if_false @RIOT2_8056
Blip.Remove(100@)
Char.MarkAsNoLongerNeeded(41@)

:RIOT2_8056
if 
  Char.IsDead(42@)
goto_if_false @RIOT2_8082
Blip.Remove(101@)
Char.MarkAsNoLongerNeeded(42@)

:RIOT2_8082
if 
  152@ == 1
goto_if_false @RIOT2_8121
gosub @RIOT2_32547
171@ = 0
152@ = 2

:RIOT2_8121
if 
  152@ == 2
goto_if_false @RIOT2_8198
if 
  Char.IsDead(43@)
goto_if_false @RIOT2_8198
if 
  Char.IsDead(44@)
goto_if_false @RIOT2_8198
Blip.Remove(102@)
Char.MarkAsNoLongerNeeded(43@)
Blip.Remove(103@)
Char.MarkAsNoLongerNeeded(44@)
152@ = 3

:RIOT2_8198
if 
  3 > 152@
goto_if_false @RIOT2_8268
if 
  Char.IsDead(43@)
goto_if_false @RIOT2_8242
Blip.Remove(102@)
Char.MarkAsNoLongerNeeded(43@)

:RIOT2_8242
if 
  Char.IsDead(44@)
goto_if_false @RIOT2_8268
Blip.Remove(103@)
Char.MarkAsNoLongerNeeded(44@)

:RIOT2_8268
if 
  152@ > 0
goto_if_false @RIOT2_8351
if 
  153@ == 0
goto_if_false @RIOT2_8351
if 
  171@ > 500
goto_if_false @RIOT2_8351
153@ = 1
gosub @RIOT2_32547
153@ = 2
171@ = 0

:RIOT2_8351
if 
  153@ == 2
goto_if_false @RIOT2_8428
if 
  Char.IsDead(45@)
goto_if_false @RIOT2_8428
if 
  Char.IsDead(46@)
goto_if_false @RIOT2_8428
Blip.Remove(104@)
Char.MarkAsNoLongerNeeded(45@)
Blip.Remove(105@)
Char.MarkAsNoLongerNeeded(46@)
153@ = 3

:RIOT2_8428
if 
  3 > 153@
goto_if_false @RIOT2_8498
if 
  Char.IsDead(45@)
goto_if_false @RIOT2_8472
Blip.Remove(104@)
Char.MarkAsNoLongerNeeded(45@)

:RIOT2_8472
if 
  Char.IsDead(46@)
goto_if_false @RIOT2_8498
Blip.Remove(105@)
Char.MarkAsNoLongerNeeded(46@)

:RIOT2_8498
if 
  152@ > 0
goto_if_false @RIOT2_8599
if 
  153@ > 0
goto_if_false @RIOT2_8599
if 
  154@ == 0
goto_if_false @RIOT2_8599
if 
  171@ > 500
goto_if_false @RIOT2_8599
154@ = 1
gosub @RIOT2_32547
154@ = 2
171@ = 0

:RIOT2_8599
if 
  154@ == 2
goto_if_false @RIOT2_8676
if 
  Char.IsDead(47@)
goto_if_false @RIOT2_8676
if 
  Char.IsDead(48@)
goto_if_false @RIOT2_8676
Blip.Remove(106@)
Char.MarkAsNoLongerNeeded(47@)
Blip.Remove(107@)
Char.MarkAsNoLongerNeeded(48@)
154@ = 3

:RIOT2_8676
if 
  3 > 154@
goto_if_false @RIOT2_8746
if 
  Char.IsDead(47@)
goto_if_false @RIOT2_8720
Blip.Remove(106@)
Char.MarkAsNoLongerNeeded(47@)

:RIOT2_8720
if 
  Char.IsDead(48@)
goto_if_false @RIOT2_8746
Blip.Remove(107@)
Char.MarkAsNoLongerNeeded(48@)

:RIOT2_8746
if 
  152@ == 3
goto_if_false @RIOT2_8970
if 
  153@ == 3
goto_if_false @RIOT2_8970
if 
  154@ == 3
goto_if_false @RIOT2_8970
if 
  155@ == 0
goto_if_false @RIOT2_8832
155@ = 1
goto @RIOT2_8889

:RIOT2_8832
if 
  158@ == 0
goto_if_false @RIOT2_8864
158@ = 1
goto @RIOT2_8889

:RIOT2_8864
if 
  161@ == 0
goto_if_false @RIOT2_8889
161@ = 1

:RIOT2_8889
Char.MarkAsNoLongerNeeded(43@)
Char.MarkAsNoLongerNeeded(44@)
Char.MarkAsNoLongerNeeded(45@)
Char.MarkAsNoLongerNeeded(46@)
Char.MarkAsNoLongerNeeded(47@)
Char.MarkAsNoLongerNeeded(48@)
Blip.Remove(102@)
Blip.Remove(103@)
Blip.Remove(104@)
Blip.Remove(105@)
Blip.Remove(106@)
Blip.Remove(107@)
152@ = 4
153@ = 4
154@ = 4

:RIOT2_8970
if 
  155@ == 1
goto_if_false @RIOT2_9009
gosub @RIOT2_33875
170@ = 0
155@ = 2

:RIOT2_9009
if 
  155@ == 2
goto_if_false @RIOT2_9086
if 
  Char.IsDead(49@)
goto_if_false @RIOT2_9086
if 
  Char.IsDead(50@)
goto_if_false @RIOT2_9086
Blip.Remove(108@)
Char.MarkAsNoLongerNeeded(49@)
Blip.Remove(109@)
Char.MarkAsNoLongerNeeded(50@)
155@ = 3

:RIOT2_9086
if 
  3 > 155@
goto_if_false @RIOT2_9156
if 
  Char.IsDead(49@)
goto_if_false @RIOT2_9130
Blip.Remove(108@)
Char.MarkAsNoLongerNeeded(49@)

:RIOT2_9130
if 
  Char.IsDead(50@)
goto_if_false @RIOT2_9156
Blip.Remove(109@)
Char.MarkAsNoLongerNeeded(50@)

:RIOT2_9156
if 
  155@ > 0
goto_if_false @RIOT2_9239
if 
  156@ == 0
goto_if_false @RIOT2_9239
if 
  170@ > 500
goto_if_false @RIOT2_9239
156@ = 1
gosub @RIOT2_33875
156@ = 2
170@ = 0

:RIOT2_9239
if 
  156@ == 2
goto_if_false @RIOT2_9316
if 
  Char.IsDead(51@)
goto_if_false @RIOT2_9316
if 
  Char.IsDead(52@)
goto_if_false @RIOT2_9316
Blip.Remove(110@)
Char.MarkAsNoLongerNeeded(51@)
Blip.Remove(111@)
Char.MarkAsNoLongerNeeded(52@)
156@ = 3

:RIOT2_9316
if 
  3 > 156@
goto_if_false @RIOT2_9386
if 
  Char.IsDead(51@)
goto_if_false @RIOT2_9360
Blip.Remove(110@)
Char.MarkAsNoLongerNeeded(51@)

:RIOT2_9360
if 
  Char.IsDead(52@)
goto_if_false @RIOT2_9386
Blip.Remove(111@)
Char.MarkAsNoLongerNeeded(52@)

:RIOT2_9386
if 
  155@ > 0
goto_if_false @RIOT2_9487
if 
  156@ > 0
goto_if_false @RIOT2_9487
if 
  157@ == 0
goto_if_false @RIOT2_9487
if 
  170@ > 500
goto_if_false @RIOT2_9487
157@ = 1
gosub @RIOT2_33875
157@ = 2
170@ = 0

:RIOT2_9487
if 
  157@ == 2
goto_if_false @RIOT2_9564
if 
  Char.IsDead(53@)
goto_if_false @RIOT2_9564
if 
  Char.IsDead(54@)
goto_if_false @RIOT2_9564
Blip.Remove(112@)
Char.MarkAsNoLongerNeeded(53@)
Blip.Remove(113@)
Char.MarkAsNoLongerNeeded(54@)
157@ = 3

:RIOT2_9564
if 
  3 > 157@
goto_if_false @RIOT2_9634
if 
  Char.IsDead(53@)
goto_if_false @RIOT2_9608
Blip.Remove(112@)
Char.MarkAsNoLongerNeeded(53@)

:RIOT2_9608
if 
  Char.IsDead(54@)
goto_if_false @RIOT2_9634
Blip.Remove(113@)
Char.MarkAsNoLongerNeeded(54@)

:RIOT2_9634
if 
  155@ == 3
goto_if_false @RIOT2_9858
if 
  156@ == 3
goto_if_false @RIOT2_9858
if 
  157@ == 3
goto_if_false @RIOT2_9858
if 
  161@ == 0
goto_if_false @RIOT2_9720
161@ = 1
goto @RIOT2_9777

:RIOT2_9720
if 
  152@ == 0
goto_if_false @RIOT2_9752
152@ = 1
goto @RIOT2_9777

:RIOT2_9752
if 
  158@ == 0
goto_if_false @RIOT2_9777
158@ = 1

:RIOT2_9777
Char.MarkAsNoLongerNeeded(49@)
Char.MarkAsNoLongerNeeded(50@)
Char.MarkAsNoLongerNeeded(51@)
Char.MarkAsNoLongerNeeded(52@)
Char.MarkAsNoLongerNeeded(53@)
Char.MarkAsNoLongerNeeded(54@)
Blip.Remove(108@)
Blip.Remove(109@)
Blip.Remove(110@)
Blip.Remove(111@)
Blip.Remove(112@)
Blip.Remove(113@)
155@ = 4
156@ = 4
157@ = 4

:RIOT2_9858
if 
  158@ == 1
goto_if_false @RIOT2_9897
gosub @RIOT2_35203
173@ = 0
158@ = 2

:RIOT2_9897
if 
  158@ == 2
goto_if_false @RIOT2_9974
if 
  Char.IsDead(55@)
goto_if_false @RIOT2_9974
if 
  Char.IsDead(56@)
goto_if_false @RIOT2_9974
Blip.Remove(114@)
Char.MarkAsNoLongerNeeded(55@)
Blip.Remove(115@)
Char.MarkAsNoLongerNeeded(56@)
158@ = 3

:RIOT2_9974
if 
  3 > 158@
goto_if_false @RIOT2_10044
if 
  Char.IsDead(55@)
goto_if_false @RIOT2_10018
Blip.Remove(114@)
Char.MarkAsNoLongerNeeded(55@)

:RIOT2_10018
if 
  Char.IsDead(56@)
goto_if_false @RIOT2_10044
Blip.Remove(115@)
Char.MarkAsNoLongerNeeded(56@)

:RIOT2_10044
if 
  158@ > 0
goto_if_false @RIOT2_10127
if 
  159@ == 0
goto_if_false @RIOT2_10127
if 
  173@ > 500
goto_if_false @RIOT2_10127
159@ = 1
gosub @RIOT2_35203
159@ = 2
173@ = 0

:RIOT2_10127
if 
  159@ == 2
goto_if_false @RIOT2_10204
if 
  Char.IsDead(57@)
goto_if_false @RIOT2_10204
if 
  Char.IsDead(58@)
goto_if_false @RIOT2_10204
Blip.Remove(116@)
Char.MarkAsNoLongerNeeded(57@)
Blip.Remove(117@)
Char.MarkAsNoLongerNeeded(58@)
159@ = 3

:RIOT2_10204
if 
  3 > 159@
goto_if_false @RIOT2_10274
if 
  Char.IsDead(57@)
goto_if_false @RIOT2_10248
Blip.Remove(116@)
Char.MarkAsNoLongerNeeded(57@)

:RIOT2_10248
if 
  Char.IsDead(58@)
goto_if_false @RIOT2_10274
Blip.Remove(117@)
Char.MarkAsNoLongerNeeded(58@)

:RIOT2_10274
if 
  158@ > 0
goto_if_false @RIOT2_10375
if 
  159@ > 0
goto_if_false @RIOT2_10375
if 
  160@ == 0
goto_if_false @RIOT2_10375
if 
  173@ > 500
goto_if_false @RIOT2_10375
160@ = 1
gosub @RIOT2_35203
160@ = 2
173@ = 0

:RIOT2_10375
if 
  160@ == 2
goto_if_false @RIOT2_10452
if 
  Char.IsDead(59@)
goto_if_false @RIOT2_10452
if 
  Char.IsDead(60@)
goto_if_false @RIOT2_10452
Blip.Remove(118@)
Char.MarkAsNoLongerNeeded(59@)
Blip.Remove(119@)
Char.MarkAsNoLongerNeeded(60@)
160@ = 3

:RIOT2_10452
if 
  3 > 160@
goto_if_false @RIOT2_10522
if 
  Char.IsDead(59@)
goto_if_false @RIOT2_10496
Blip.Remove(118@)
Char.MarkAsNoLongerNeeded(59@)

:RIOT2_10496
if 
  Char.IsDead(60@)
goto_if_false @RIOT2_10522
Blip.Remove(119@)
Char.MarkAsNoLongerNeeded(60@)

:RIOT2_10522
if 
  158@ == 3
goto_if_false @RIOT2_10746
if 
  159@ == 3
goto_if_false @RIOT2_10746
if 
  160@ == 3
goto_if_false @RIOT2_10746
if 
  152@ == 0
goto_if_false @RIOT2_10608
152@ = 1
goto @RIOT2_10665

:RIOT2_10608
if 
  161@ == 0
goto_if_false @RIOT2_10640
161@ = 1
goto @RIOT2_10665

:RIOT2_10640
if 
  155@ == 0
goto_if_false @RIOT2_10665
155@ = 1

:RIOT2_10665
Char.MarkAsNoLongerNeeded(55@)
Char.MarkAsNoLongerNeeded(56@)
Char.MarkAsNoLongerNeeded(57@)
Char.MarkAsNoLongerNeeded(58@)
Char.MarkAsNoLongerNeeded(59@)
Char.MarkAsNoLongerNeeded(60@)
Blip.Remove(114@)
Blip.Remove(115@)
Blip.Remove(116@)
Blip.Remove(117@)
Blip.Remove(118@)
Blip.Remove(119@)
158@ = 4
159@ = 4
160@ = 4

:RIOT2_10746
if 
  161@ == 1
goto_if_false @RIOT2_10785
gosub @RIOT2_36531
172@ = 0
161@ = 2

:RIOT2_10785
if 
  161@ == 2
goto_if_false @RIOT2_10862
if 
  Char.IsDead(61@)
goto_if_false @RIOT2_10862
if 
  Char.IsDead(62@)
goto_if_false @RIOT2_10862
Blip.Remove(120@)
Char.MarkAsNoLongerNeeded(61@)
Blip.Remove(121@)
Char.MarkAsNoLongerNeeded(62@)
161@ = 3

:RIOT2_10862
if 
  3 > 161@
goto_if_false @RIOT2_10932
if 
  Char.IsDead(61@)
goto_if_false @RIOT2_10906
Blip.Remove(120@)
Char.MarkAsNoLongerNeeded(61@)

:RIOT2_10906
if 
  Char.IsDead(62@)
goto_if_false @RIOT2_10932
Blip.Remove(121@)
Char.MarkAsNoLongerNeeded(62@)

:RIOT2_10932
if 
  161@ > 0
goto_if_false @RIOT2_11015
if 
  162@ == 0
goto_if_false @RIOT2_11015
if 
  172@ > 500
goto_if_false @RIOT2_11015
162@ = 1
gosub @RIOT2_36531
162@ = 2
172@ = 0

:RIOT2_11015
if 
  162@ == 2
goto_if_false @RIOT2_11092
if 
  Char.IsDead(63@)
goto_if_false @RIOT2_11092
if 
  Char.IsDead(64@)
goto_if_false @RIOT2_11092
Blip.Remove(122@)
Char.MarkAsNoLongerNeeded(63@)
Blip.Remove(123@)
Char.MarkAsNoLongerNeeded(64@)
162@ = 3

:RIOT2_11092
if 
  3 > 162@
goto_if_false @RIOT2_11162
if 
  Char.IsDead(63@)
goto_if_false @RIOT2_11136
Blip.Remove(122@)
Char.MarkAsNoLongerNeeded(63@)

:RIOT2_11136
if 
  Char.IsDead(64@)
goto_if_false @RIOT2_11162
Blip.Remove(123@)
Char.MarkAsNoLongerNeeded(64@)

:RIOT2_11162
if 
  161@ > 0
goto_if_false @RIOT2_11263
if 
  162@ > 0
goto_if_false @RIOT2_11263
if 
  163@ == 0
goto_if_false @RIOT2_11263
if 
  172@ > 500
goto_if_false @RIOT2_11263
163@ = 1
gosub @RIOT2_36531
163@ = 2
172@ = 0

:RIOT2_11263
if 
  163@ == 2
goto_if_false @RIOT2_11340
if 
  Char.IsDead(65@)
goto_if_false @RIOT2_11340
if 
  Char.IsDead(66@)
goto_if_false @RIOT2_11340
Blip.Remove(124@)
Char.MarkAsNoLongerNeeded(65@)
Blip.Remove(125@)
Char.MarkAsNoLongerNeeded(66@)
163@ = 3

:RIOT2_11340
if 
  3 > 163@
goto_if_false @RIOT2_11410
if 
  Char.IsDead(65@)
goto_if_false @RIOT2_11384
Blip.Remove(124@)
Char.MarkAsNoLongerNeeded(65@)

:RIOT2_11384
if 
  Char.IsDead(66@)
goto_if_false @RIOT2_11410
Blip.Remove(125@)
Char.MarkAsNoLongerNeeded(66@)

:RIOT2_11410
if 
  161@ == 3
goto_if_false @RIOT2_11634
if 
  162@ == 3
goto_if_false @RIOT2_11634
if 
  163@ == 3
goto_if_false @RIOT2_11634
if 
  158@ == 0
goto_if_false @RIOT2_11496
158@ = 1
goto @RIOT2_11553

:RIOT2_11496
if 
  155@ == 0
goto_if_false @RIOT2_11528
155@ = 1
goto @RIOT2_11553

:RIOT2_11528
if 
  152@ == 0
goto_if_false @RIOT2_11553
152@ = 1

:RIOT2_11553
Char.MarkAsNoLongerNeeded(61@)
Char.MarkAsNoLongerNeeded(62@)
Char.MarkAsNoLongerNeeded(63@)
Char.MarkAsNoLongerNeeded(64@)
Char.MarkAsNoLongerNeeded(65@)
Char.MarkAsNoLongerNeeded(66@)
Blip.Remove(120@)
Blip.Remove(121@)
Blip.Remove(122@)
Blip.Remove(123@)
Blip.Remove(124@)
Blip.Remove(125@)
161@ = 4
162@ = 4
163@ = 4

:RIOT2_11634
if 
  187@ == 0
goto_if_false @RIOT2_11796
if 
  6 > 165@
goto_if_false @RIOT2_11796
if 
  TIMERB > 7000
goto_if_false @RIOT2_11796
if 
  not Char.IsDead($cesar)
goto_if_false @RIOT2_11796
if 
  Char.LocateAnyMeansChar2D($scplayer, $cesar, 60.0, 60.0, False)
goto_if_false @RIOT2_11796
if 
  185@ == 0
goto_if_false @RIOT2_11796
Char.ShutUpForScriptedSpeech($cesar, True)
185@ = 5
186@ = 3
188@ = 4
gosub @RIOT2_40912
187@ = 1

:RIOT2_11796
if 
  165@ == 0
goto_if_false @RIOT2_11937
Char.ClearTasks(34@)
Char.ClearTasks(35@)
Char.ClearTasks(36@)
Char.ClearTasks($cesar)
Task.FollowPathNodesToCoord(34@, 1824.9, -1986.7, 12.6, 4, -2)
Task.FollowPathNodesToCoord(35@, 1822.3, -1986.7, 12.6, 4, -2)
Task.FollowPathNodesToCoord(36@, 1820.9, -1984.7, 12.6, 4, -2)
Task.FollowPathNodesToCoord($cesar, 1824.5, -1984.0, 12.6, 4, -2)
165@ = 1

:RIOT2_11937
if 
  165@ == 1
goto_if_false @RIOT2_12485
if 
  150@ == 6
goto_if_false @RIOT2_12189
Char.ClearTasks(34@)
Char.ClearTasks(35@)
Char.ClearTasks(36@)
Char.ClearTasks($cesar)
Task.FollowPathNodesToCoord(34@, 1856.6, -2008.5, 12.6, 4, -2)
Task.FollowPathNodesToCoord(35@, 1859.6, -2007.5, 12.6, 4, -2)
Task.FollowPathNodesToCoord(36@, 1853.6, -2007.5, 12.6, 4, -2)
Task.FollowPathNodesToCoord($cesar, 1854.8, -2005.5, 12.6, 4, -2)
if 
  not Char.IsDead($cesar)
goto_if_false @RIOT2_12182
if 
  Char.LocateAnyMeansChar2D($scplayer, $cesar, 60.0, 60.0, False)
goto_if_false @RIOT2_12182
if 
  185@ == 0
goto_if_false @RIOT2_12182
185@ = 5
186@ = 4
188@ = 5
gosub @RIOT2_40912

:RIOT2_12182
165@ = 2

:RIOT2_12189
if 
  Char.IsDead(38@)
goto_if_false @RIOT2_12485
if 
  Char.IsDead(39@)
goto_if_false @RIOT2_12485
if 
  Char.IsDead(40@)
goto_if_false @RIOT2_12485
if 
  Char.IsDead(41@)
goto_if_false @RIOT2_12485
if 
  Char.IsDead(42@)
goto_if_false @RIOT2_12485
Char.ClearTasks(34@)
Char.ClearTasks(35@)
Char.ClearTasks(36@)
Char.ClearTasks($cesar)
Task.FollowPathNodesToCoord(34@, 1856.6, -2008.5, 12.6, 4, -2)
Task.FollowPathNodesToCoord(35@, 1859.6, -2007.5, 12.6, 4, -2)
Task.FollowPathNodesToCoord(36@, 1853.6, -2007.5, 12.6, 4, -2)
Task.FollowPathNodesToCoord($cesar, 1854.8, -2005.5, 12.6, 4, -2)
if 
  not Char.IsDead($cesar)
goto_if_false @RIOT2_12478
if 
  Char.LocateAnyMeansChar2D($scplayer, $cesar, 60.0, 60.0, False)
goto_if_false @RIOT2_12478
if 
  185@ == 0
goto_if_false @RIOT2_12478
185@ = 5
186@ = 5
188@ = 6
gosub @RIOT2_40912

:RIOT2_12478
165@ = 2

:RIOT2_12485
if 
  165@ == 2
goto_if_false @RIOT2_12737
if 
  158@ == 4
goto_if_false @RIOT2_12737
Char.ClearTasks(34@)
Char.ClearTasks(35@)
Char.ClearTasks(36@)
Char.ClearTasks($cesar)
Task.FollowPathNodesToCoord(34@, 1858.8, -1993.7, 12.6, 4, -2)
Task.FollowPathNodesToCoord(35@, 1858.8, -1991.6, 12.6, 4, -2)
Task.FollowPathNodesToCoord(36@, 1858.8, -1989.7, 12.6, 4, -2)
Task.FollowPathNodesToCoord($cesar, 1858.8, -1987.7, 12.6, 4, -2)
if 
  not Char.IsDead($cesar)
goto_if_false @RIOT2_12730
if 
  Char.LocateAnyMeansChar2D($scplayer, $cesar, 60.0, 60.0, False)
goto_if_false @RIOT2_12730
if 
  185@ == 0
goto_if_false @RIOT2_12730
185@ = 5
186@ = 6
188@ = 7
gosub @RIOT2_40912

:RIOT2_12730
165@ = 3

:RIOT2_12737
if 
  165@ == 3
goto_if_false @RIOT2_12989
if 
  152@ == 4
goto_if_false @RIOT2_12989
Char.ClearTasks(34@)
Char.ClearTasks(35@)
Char.ClearTasks(36@)
Char.ClearTasks($cesar)
Task.FollowPathNodesToCoord(34@, 1886.2, -1995.2, 12.6, 4, -2)
Task.FollowPathNodesToCoord(35@, 1886.2, -1993.2, 12.6, 4, -2)
Task.FollowPathNodesToCoord(36@, 1886.2, -1991.2, 12.6, 4, -2)
Task.FollowPathNodesToCoord($cesar, 1886.2, -1989.2, 12.6, 4, -2)
if 
  not Char.IsDead($cesar)
goto_if_false @RIOT2_12982
if 
  Char.LocateAnyMeansChar2D($scplayer, $cesar, 60.0, 60.0, False)
goto_if_false @RIOT2_12982
if 
  185@ == 0
goto_if_false @RIOT2_12982
185@ = 5
186@ = 7
188@ = 8
gosub @RIOT2_40912

:RIOT2_12982
165@ = 4

:RIOT2_12989
if 
  165@ == 4
goto_if_false @RIOT2_13241
if 
  155@ == 4
goto_if_false @RIOT2_13241
Char.ClearTasks(34@)
Char.ClearTasks(35@)
Char.ClearTasks(36@)
Char.ClearTasks($cesar)
Task.FollowPathNodesToCoord(34@, 1903.1, -2009.3, 12.6, 4, -2)
Task.FollowPathNodesToCoord(35@, 1905.1, -2009.3, 12.6, 4, -2)
Task.FollowPathNodesToCoord(36@, 1907.1, -2009.3, 12.6, 4, -2)
Task.FollowPathNodesToCoord($cesar, 1909.1, -2009.3, 12.6, 4, -2)
if 
  not Char.IsDead($cesar)
goto_if_false @RIOT2_13234
if 
  Char.LocateAnyMeansChar2D($scplayer, $cesar, 60.0, 60.0, False)
goto_if_false @RIOT2_13234
if 
  185@ == 0
goto_if_false @RIOT2_13234
185@ = 5
186@ = 8
188@ = 9
gosub @RIOT2_40912

:RIOT2_13234
165@ = 5

:RIOT2_13241
if 
  165@ == 5
goto_if_false @RIOT2_13723
if 
  161@ == 4
goto_if_false @RIOT2_13723
Char.ClearTasks(34@)
Char.ClearTasks(35@)
Char.ClearTasks(36@)
Char.ClearTasks($cesar)
268@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 1916.8, -2059.2, 12.4, 6, -2)
Task.GoStraightToCoord(-1, 1921.6, -2077.1, 12.5, MoveState.Run, -2)
Task.AchieveHeading(-1, 5.1)
Sequence.Close(268@)
Char.PerformSequence($cesar, 268@)
Sequence.Clear(268@)
268@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 1914.5, -2058.4, 12.4, 6, -2)
Task.GoStraightToCoord(-1, 1922.6, -2077.1, 12.5, MoveState.Run, -2)
Task.AchieveHeading(-1, 5.1)
Sequence.Close(268@)
Char.PerformSequence(34@, 268@)
Sequence.Clear(268@)
268@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 1918.1, -2061.8, 12.4, 6, -2)
Task.GoStraightToCoord(-1, 1923.6, -2077.1, 12.5, MoveState.Run, -2)
Task.AchieveHeading(-1, 5.1)
Sequence.Close(268@)
Char.PerformSequence(35@, 268@)
Sequence.Clear(268@)
268@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 1919.8, -2059.6, 12.4, 6, -2)
Task.GoStraightToCoord(-1, 1924.6, -2077.1, 12.5, MoveState.Run, -2)
Task.AchieveHeading(-1, 5.1)
Sequence.Close(268@)
Char.PerformSequence(36@, 268@)
Sequence.Clear(268@)
if 
  not Char.IsDead($cesar)
goto_if_false @RIOT2_13684
if 
  Char.LocateAnyMeansChar2D($scplayer, $cesar, 60.0, 60.0, False)
goto_if_false @RIOT2_13684
185@ = 5
186@ = 0
188@ = 1
gosub @RIOT2_40912

:RIOT2_13684
Blip.Remove(89@)
89@ = Blip.AddForCoord(1922.8, -2075.0, 12.5)
187@ = 0
165@ = 6

:RIOT2_13723
if 
  165@ == 6
goto_if_false @RIOT2_13879
if 
  187@ == 0
goto_if_false @RIOT2_13800
if 
  185@ == 0
goto_if_false @RIOT2_13800
Text.PrintNow('R2_04', 11000, 1)
187@ = 1

:RIOT2_13800
if 
  Char.LocateOnFoot3D($scplayer, 1922.8, -2075.0, 12.5, 1.2, 1.2, 2.0, True)
goto_if_false @RIOT2_13879
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
185@ = 0
143@ = 0
142@ = 3

:RIOT2_13879
if 
  142@ == 3
goto_if_false @RIOT2_19283
if 
  143@ == 0
goto_if_false @RIOT2_15311
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
185@ = 0
Camera.DoFade(500, Fade.Out)

:RIOT2_13939
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_13963
wait 0
goto @RIOT2_13939

:RIOT2_13963
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_13995
goto @RIOT2_30241

:RIOT2_13995
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.ShutAllCharsUp(True)
Char.ShutUpForScriptedSpeech($cesar, False)
World.SetCarDensityMultiplier(0.0)
if 
  not Garage.IsClosed('DUF_LAS')
goto_if_false @RIOT2_14066
Garage.Close('DUF_LAS')

:RIOT2_14066
Streaming.RequestModel(466)
Streaming.RequestModel(359)
Streaming.RequestAnimation("CAR")
Streaming.RequestAnimation("SWAT")
Streaming.RequestAnimation("CRACK")
Streaming.RequestAnimation("CASINO")
Streaming.LoadAllModelsNow
DecisionMakerChar.ClearEventResponse(265@, 36)
DecisionMakerChar.ClearEventResponse(265@, 37)
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_14158
goto @RIOT2_30241

:RIOT2_14158
World.ClearArea(1897.0, -2103.8, 12.3, 300.0, True)
67@ = Car.Create(466, 1897.0, -2103.8, 12.3)
Car.SetHeading(67@, 2.4)
Car.FreezePosition(67@, True)
Car.LockDoors(67@, CarLock.Locked)
Car.SetProofs(67@, True, True, True, True, True)
68@ = Car.Create(466, 1857.3, -2101.3, 12.3)
Car.FreezePosition(68@, True)
Car.SetHeading(68@, 359.7)
Car.LockDoors(68@, CarLock.Locked)
148@ = Math.RandomIntInRange(0, 2)
69@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1860.9, -2099.6, 12.6)
Char.SetHeading(69@, 270.0)
Char.GiveWeapon(69@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(69@, 266@)
Task.PlayAnim(69@, "FIXN_CAR_LOOP", "CAR", 4.0, True, False, False, False, -1)
126@ = Blip.AddForChar(69@)
Blip.ChangeScale(126@, 1)
Char.SetAccuracy(69@, 181@)
Char.AddArmor(69@, 50)
148@ = Math.RandomIntInRange(0, 2)
70@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1859.9, -2102.5, 12.5)
Char.SetHeading(70@, 48.0)
Char.GiveWeapon(70@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(70@, 266@)
127@ = Blip.AddForChar(70@)
Blip.ChangeScale(127@, 1)
Char.SetAccuracy(70@, 181@)
148@ = Math.RandomIntInRange(0, 2)
71@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1855.6, -2102.6, 12.5)
Char.SetHeading(71@, 282.0)
Char.GiveWeapon(71@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(71@, 266@)
Task.PlayAnim(71@, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
128@ = Blip.AddForChar(71@)
Blip.ChangeScale(128@, 1)
Char.SetAccuracy(71@, 181@)
Char.AddArmor(71@, 50)
148@ = Math.RandomIntInRange(0, 2)
72@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1855.6, -2099.6, 12.5)
Char.SetHeading(72@, 282.0)
Char.GiveWeapon(72@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(72@, 266@)
Task.PlayAnim(72@, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
129@ = Blip.AddForChar(72@)
Blip.ChangeScale(129@, 1)
Char.SetAccuracy(72@, 181@)
144@ = 1
skip_cutscene_start_internal @RIOT2_16263
World.ClearArea(1918.1, -2076.9, 12.5, 30.0, True)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1918.1, -2076.9, 12.5)
Char.SetHeading($scplayer, 171.1)
Task.GoStraightToCoord($scplayer, 1916.1, -2093.3, 12.5, MoveState.Walk, -1)
Char.ClearTasksImmediately($cesar)
Char.SetCoordinates($cesar, 1919.1, -2077.7, 12.5)
Char.SetHeading($cesar, 171.5)
Task.GoStraightToCoord($cesar, 1917.1, -2094.1, 12.5, MoveState.Walk, -1)
Char.SetDecisionMaker($cesar, 266@)
Char.ClearTasksImmediately(35@)
Char.SetCoordinates(35@, 1920.3, -2075.3, 12.5)
Char.SetHeading(35@, 189.5)
Char.GiveWeapon(35@, WeaponType.RocketLauncher, 1)
Task.GoStraightToCoord(35@, 1918.3, -2091.7, 12.5, MoveState.Walk, -1)
Char.SetDecisionMaker(35@, 266@)
Char.ClearTasksImmediately(34@)
Char.SetCoordinates(34@, 1918.8, -2075.3, 12.5)
Char.SetHeading(34@, 165.9)
Task.GoStraightToCoord(34@, 1916.8, -2091.7, 12.5, MoveState.Walk, -1)
Char.SetDecisionMaker(34@, 266@)
Char.ClearTasksImmediately(36@)
Char.SetCoordinates(36@, 1919.6, -2074.0, 12.5)
Char.SetHeading(36@, 173.0)
Task.GoStraightToCoord(36@, 1917.6, -2090.4, 12.5, MoveState.Walk, -1)
Char.SetDecisionMaker(36@, 266@)
Camera.SetFixedPosition(1914.65, -2087.8, 13.4, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1917.9, -2080.7, 13.0, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:RIOT2_15213
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_15237
wait 0
goto @RIOT2_15213

:RIOT2_15237
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_15269
goto @RIOT2_30241

:RIOT2_15269
185@ = 6
186@ = 0
188@ = 6
gosub @RIOT2_40912
TIMERA = 0
143@ = 1

:RIOT2_15311
if 
  143@ == 1
goto_if_false @RIOT2_15732
if 
  TIMERA > 8000
goto_if_false @RIOT2_15732
World.ClearArea(1916.9, -2101.1, 12.6, 30.0, True)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1916.9, -2101.1, 12.6)
Char.SetHeading($scplayer, 90.0)
Task.GoStraightToCoord($scplayer, 1912.4, -2101.1, 12.5, MoveState.Walk, -1)
Char.ClearTasksImmediately($cesar)
Char.SetCoordinates($cesar, 1916.9, -2102.1, 12.6)
Char.SetHeading($cesar, 90.0)
Task.GoStraightToCoord($cesar, 1912.4, -2102.1, 12.5, MoveState.Walk, -1)
Char.ClearTasksImmediately(35@)
Char.SetCoordinates(35@, 1916.9, -2103.1, 12.6)
Char.SetHeading(35@, 90.0)
Task.GoStraightToCoord(35@, 1912.4, -2103.1, 12.5, MoveState.Walk, -1)
Char.ClearTasksImmediately(36@)
Char.SetCoordinates(36@, 1916.9, -2100.1, 12.6)
Char.SetHeading(36@, 90.0)
Task.GoStraightToCoord(36@, 1912.4, -2100.1, 12.5, MoveState.Walk, -1)
Char.ClearTasksImmediately(34@)
Char.SetCoordinates(34@, 1916.9, -2099.1, 12.6)
Char.SetHeading(34@, 90.0)
Task.GoStraightToCoord(34@, 1912.4, -2099.1, 12.5, MoveState.Walk, -1)
Camera.SetFixedPosition(1916.5, -2100.9, 12.8, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1906.2, -2101.0, 14.8, SwitchType.JumpCut)
TIMERA = 0
143@ = 2

:RIOT2_15732
if 
  143@ == 2
goto_if_false @RIOT2_16201
if 
  185@ == 0
goto_if_false @RIOT2_16201
if 
  TIMERA > 4000
goto_if_false @RIOT2_16201
if 
  not Char.IsDead(69@)
goto_if_false @RIOT2_15886
268@ = Sequence.Open()
Task.PlayAnim(-1, "FIXN_CAR_OUT", "CAR", 4.0, False, False, False, False, -1)
Task.ShootAtCoord(-1, 1916.5, -2100.9, 12.8, 3000)
Sequence.Close(268@)
Char.PerformSequence(69@, 268@)
Sequence.Clear(268@)

:RIOT2_15886
if 
  not Char.IsDead(70@)
goto_if_false @RIOT2_15960
268@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.ToggleDuck(-1, True)
Task.ShootAtCoord(-1, 1916.5, -2100.9, 12.8, 3000)
Sequence.Close(268@)
Char.PerformSequence(70@, 268@)
Sequence.Clear(268@)

:RIOT2_15960
if 
  not Char.IsDead(71@)
goto_if_false @RIOT2_16034
268@ = Sequence.Open()
Task.Pause(-1, 700)
Task.StandStill(-1, 100)
Task.ShootAtCoord(-1, 1916.5, -2100.9, 12.8, 3000)
Sequence.Close(268@)
Char.PerformSequence(71@, 268@)
Sequence.Clear(268@)

:RIOT2_16034
if 
  not Char.IsDead(72@)
goto_if_false @RIOT2_16108
268@ = Sequence.Open()
Task.Pause(-1, 1000)
Task.StandStill(-1, 100)
Task.ShootAtCoord(-1, 1916.5, -2100.9, 12.8, 3000)
Sequence.Close(268@)
Char.PerformSequence(72@, 268@)
Sequence.Clear(268@)

:RIOT2_16108
185@ = 6
186@ = 6
188@ = 7
gosub @RIOT2_40912
Camera.SetFixedPosition(1866.1, -2101.8, 13.4, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1849.9, -2101.0, 14.98, SwitchType.JumpCut)
TIMERA = 0
143@ = 3

:RIOT2_16201
if 
  143@ == 3
goto_if_false @RIOT2_19283
if 
  185@ == 0
goto_if_false @RIOT2_19283
if 
  TIMERA > 4000
goto_if_false @RIOT2_19283
144@ = 0

:RIOT2_16263
skip_cutscene_end 
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_16297
goto @RIOT2_30241

:RIOT2_16297
if 
  144@ == 1
goto_if_false @RIOT2_16654
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
185@ = 0
Camera.DoFade(500, Fade.Out)

:RIOT2_16339
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_16363
wait 0
goto @RIOT2_16339

:RIOT2_16363
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_16395
goto @RIOT2_30241

:RIOT2_16395
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1912.4, -2101.1, 12.5)
Char.SetHeading($scplayer, 90.0)
Char.ClearTasksImmediately($cesar)
Char.SetCoordinates($cesar, 1912.4, -2102.1, 12.5)
Char.SetHeading($cesar, 90.0)
Char.ClearTasksImmediately(35@)
Char.SetCoordinates(35@, 1912.4, -2103.1, 12.5)
Char.SetHeading(35@, 90.0)
Char.ClearTasksImmediately(36@)
Char.SetCoordinates(36@, 1912.4, -2100.1, 12.5)
Char.SetHeading(36@, 90.0)
Char.ClearTasksImmediately(34@)
Char.SetCoordinates(34@, 1912.4, -2099.1, 12.5)
Char.SetHeading(34@, 90.0)
if 
  not Char.IsDead(69@)
goto_if_false @RIOT2_16591
Char.ClearTasksImmediately(69@)

:RIOT2_16591
if 
  not Char.IsDead(70@)
goto_if_false @RIOT2_16612
Char.ClearTasksImmediately(70@)

:RIOT2_16612
if 
  not Char.IsDead(71@)
goto_if_false @RIOT2_16633
Char.ClearTasksImmediately(71@)

:RIOT2_16633
if 
  not Char.IsDead(72@)
goto_if_false @RIOT2_16654
Char.ClearTasksImmediately(72@)

:RIOT2_16654
Char.SetStayInSamePlace($cesar, True)
269@ = Sequence.Open()
Task.PlayAnim(-1, "GUN_STAND", "PED", 8.0, False, False, False, False, 10)
168@ = Math.RandomIntInRange(1500, 4000)
Task.ShootAtCoord(-1, 1871.1, -2102.3, 14.6, 168@)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
168@ = Math.RandomIntInRange(1500, 4000)
Task.Pause(-1, 168@)
Sequence.SetToRepeat(269@, True)
Sequence.Close(269@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1898.7, -2102.1, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 90.0)
Char.PerformSequence(-1, 269@)
Sequence.Close(268@)
Char.PerformSequence($cesar, 268@)
Sequence.Clear(268@)
Sequence.Clear(269@)
Char.ClearTasksImmediately(35@)
Char.SetCoordinates(35@, 1912.4, -2103.1, 12.5)
Char.SetHeading(35@, 90.0)
Char.SetStayInSamePlace(35@, True)
269@ = Sequence.Open()
Task.PlayAnim(-1, "GUN_STAND", "PED", 8.0, False, False, False, False, 10)
168@ = Math.RandomIntInRange(1500, 4000)
Task.ShootAtCoord(-1, 1878.7, -2105.5, 14.6, 168@)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
168@ = Math.RandomIntInRange(1500, 4000)
Task.Pause(-1, 168@)
Sequence.SetToRepeat(269@, True)
Sequence.Close(269@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1898.7, -2106.1, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 90.0)
if 
  not Car.IsDead(68@)
goto_if_false @RIOT2_17114
Task.DestroyCar(-1, 68@)

:RIOT2_17114
Task.Pause(-1, 500)
Task.PlayAnim(-1, "MANWINB", "CASINO", 8.0, False, False, False, False, -1)
Char.PerformSequence(-1, 269@)
Sequence.Close(268@)
Char.PerformSequence(35@, 268@)
Sequence.Clear(268@)
Sequence.Clear(269@)
Char.SetStayInSamePlace(34@, True)
269@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_R", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
168@ = Math.RandomIntInRange(1500, 4000)
Task.ShootAtCoord(-1, 1891.2, -2099.6, 14.0, 168@)
Task.StayInSamePlace(-1, False)
Task.CharSlideToCoordAndPlayAnim(-1, 1903.7, -2096.6, 12.5, 75.0, -1.0, "SWT_WLLSHOOT_OUT_R", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(269@, True)
Sequence.Close(269@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1903.5, -2096.6, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 75.0)
Char.PerformSequence(-1, 269@)
Sequence.Close(268@)
Char.PerformSequence(34@, 268@)
Sequence.Clear(268@)
Sequence.Clear(269@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1894.6, -2099.2, 12.4, MoveState.Run, -1)
Task.AchieveHeading(-1, 90.0)
Task.PlayAnimNonInterruptable(-1, "CROUCH_ROLL_L", "PED", 8.0, False, True, True, False, -1)
Task.GoStraightToCoord(-1, 1884.6, -2107.6, 12.4, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 1874.9, -2102.8, 12.4, MoveState.Run, -1)
Task.PlayAnimNonInterruptable(-1, "KO_SPIN_L", "PED", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "CRCKIDLE4", "CRACK", 8.0, True, False, False, False, -1)
Sequence.Close(268@)
Char.PerformSequence(36@, 268@)
Sequence.Clear(268@)
if 
  not Char.IsDead(69@)
goto_if_false @RIOT2_18065
Char.SetStayInSamePlace(69@, True)
269@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_L", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
168@ = Math.RandomIntInRange(1500, 4000)
Task.KillCharOnFootTimed(-1, $scplayer, 168@)
Task.StayInSamePlace(-1, False)
Task.CharSlideToCoordAndPlayAnim(-1, 1872.8, -2096.1, 12.5, 275.0, -1.0, "SWT_WLLSHOOT_OUT_L", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(269@, True)
Sequence.Close(269@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1872.8, -2096.1, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 275.0)
Char.PerformSequence(-1, 269@)
Sequence.Close(268@)
Char.PerformSequence(69@, 268@)
Sequence.Clear(268@)
Sequence.Clear(269@)

:RIOT2_18065
if 
  not Char.IsDead(70@)
goto_if_false @RIOT2_18089
Task.KillCharOnFoot(70@, $scplayer)

:RIOT2_18089
if 
  not Char.IsDead(71@)
goto_if_false @RIOT2_18424
Char.SetStayInSamePlace(71@, True)
269@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_R", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
168@ = Math.RandomIntInRange(1500, 4000)
Task.KillCharOnFootTimed(-1, $scplayer, 168@)
Task.StayInSamePlace(-1, False)
Task.CharSlideToCoordAndPlayAnim(-1, 1864.1, -2107.4, 12.6, 275.0, -0.1, "SWT_WLLSHOOT_OUT_R", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(269@, True)
Sequence.Close(269@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1864.1, -2107.4, 12.6, MoveState.Run, -1)
Task.AchieveHeading(-1, 275.0)
Char.PerformSequence(-1, 269@)
Sequence.Close(268@)
Char.PerformSequence(71@, 268@)
Sequence.Clear(268@)
Sequence.Clear(269@)

:RIOT2_18424
if 
  not Char.IsDead(72@)
goto_if_false @RIOT2_18448
Task.KillCharOnFoot(72@, $scplayer)

:RIOT2_18448
148@ = Math.RandomIntInRange(0, 2)
73@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1806.1, -2121.7, 12.5)
Char.SetHeading(73@, 357.8)
Char.GiveWeapon(73@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(73@, 266@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1837.5, -2102.3, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 275.0)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence(73@, 268@)
Sequence.Clear(268@)
130@ = Blip.AddForChar(73@)
Blip.ChangeScale(130@, 1)
Char.SetAccuracy(73@, 181@)
148@ = Math.RandomIntInRange(0, 2)
74@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1801.5, -2120.7, 12.5)
Char.SetHeading(74@, 357.8)
Char.GiveWeapon(74@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(74@, 266@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1833.8, -2097.8, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 275.0)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence(74@, 268@)
Sequence.Clear(268@)
131@ = Blip.AddForChar(74@)
Blip.ChangeScale(131@, 1)
Char.SetAccuracy(74@, 181@)
Char.AddArmor(74@, 50)
148@ = Math.RandomIntInRange(0, 2)
75@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1879.7, -2094.9, 12.5)
Char.SetHeading(75@, 180.0)
Char.GiveWeapon(75@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(75@, 266@)
Char.SetStayInSamePlace(75@, True)
Char.SetAccuracy(75@, 181@)
148@ = Math.RandomIntInRange(0, 2)
76@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1878.7, -2094.9, 12.5)
Char.SetHeading(76@, 180.0)
Char.GiveWeapon(76@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(76@, 266@)
Char.SetStayInSamePlace(76@, True)
Char.SetAccuracy(76@, 181@)
Char.AddArmor(76@, 50)
148@ = Math.RandomIntInRange(0, 2)
77@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1876.7, -2094.9, 12.5)
Char.SetHeading(77@, 180.0)
Char.GiveWeapon(77@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(77@, 266@)
Char.SetStayInSamePlace(77@, True)
Char.SetAccuracy(77@, 181@)
148@ = Math.RandomIntInRange(0, 2)
78@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1875.2, -2094.9, 12.5)
Char.SetHeading(78@, 180.0)
Char.GiveWeapon(78@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(78@, 266@)
Char.SetProofs(78@, True, True, True, True, True)
Char.SetStayInSamePlace(78@, True)
Char.SetAccuracy(78@, 181@)
Char.AddArmor(78@, 50)
Blip.Remove(89@)
89@ = Blip.AddForChar($cesar)
Blip.SetAsFriendly(89@, True)
Game.SetGunshotSenseRangeForRiot2(-1.0)
Game.ShutAllCharsUp(True)
Streaming.RemoveAnimation("CAR")
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Char.HideWeaponForScriptedCutscene($scplayer, False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Text.PrintNow('R2_05', 7000, 1)
if 
  144@ == 1
goto_if_false @RIOT2_19269
Camera.DoFade(500, Fade.In)

:RIOT2_19213
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_19237
wait 0
goto @RIOT2_19213

:RIOT2_19237
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_19269
goto @RIOT2_30241

:RIOT2_19269
143@ = 0
142@ = 4

:RIOT2_19283
if 
  142@ == 4
goto_if_false @RIOT2_21030
if 
  not Char.IsDead(69@)
goto_if_false @RIOT2_19400
if or
  Char.IsInArea2D($scplayer, 1877.6, -2050.8, 1815.3, -2171.4, False)
  Char.HasBeenDamagedByChar(69@, $scplayer)
goto_if_false @RIOT2_19400
$task_status = Char.GetScriptTaskStatus(69@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_19400
Task.KillCharOnFoot(69@, $scplayer)

:RIOT2_19400
if 
  not Char.IsDead(71@)
goto_if_false @RIOT2_19499
if or
  Char.IsInArea2D($scplayer, 1872.6, -2050.8, 1815.3, -2171.4, False)
  Char.HasBeenDamagedByChar(71@, $scplayer)
goto_if_false @RIOT2_19499
$task_status = Char.GetScriptTaskStatus(71@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_19499
Task.KillCharOnFoot(71@, $scplayer)

:RIOT2_19499
if 
  not Char.IsDead($cesar)
goto_if_false @RIOT2_19572
180@ = Char.GetHealth($cesar)
if 
  50 > 180@
goto_if_false @RIOT2_19572
Task.DieNamedAnim($cesar, "KO_SHOT_STOM", "PED", 8.0, 0)

:RIOT2_19572
if 
  not Char.IsDead(34@)
goto_if_false @RIOT2_19645
180@ = Char.GetHealth(34@)
if 
  50 > 180@
goto_if_false @RIOT2_19645
Task.DieNamedAnim(34@, "KO_SHOT_STOM", "PED", 8.0, 0)

:RIOT2_19645
if 
  143@ == 0
goto_if_false @RIOT2_19736
$task_status = Char.GetScriptTaskStatus(36@, 1560)
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_19736
270@ = Char.GetSequenceProgress(36@)
if 
  270@ >= 3
goto_if_false @RIOT2_19736
Garage.Open('DUF_LAS')
143@ = 1

:RIOT2_19736
if 
  143@ == 1
goto_if_false @RIOT2_20402
$task_status = Char.GetScriptTaskStatus(36@, 1560)
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_20402
270@ = Char.GetSequenceProgress(36@)
if 
  270@ >= 5
goto_if_false @RIOT2_20402
if 
  not Char.IsDead(75@)
goto_if_false @RIOT2_19934
269@ = Sequence.Open()
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(269@)
268@ = Sequence.Open()
Task.KillCharOnFootTimed(-1, 36@, 3000)
Task.GoStraightToCoord(-1, 1872.8, -2096.1, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 275.0)
Char.PerformSequence(-1, 269@)
Sequence.Close(268@)
Char.PerformSequence(75@, 268@)
Sequence.Clear(268@)
Sequence.Clear(269@)
138@ = Blip.AddForChar(75@)
Blip.ChangeScale(138@, 1)

:RIOT2_19934
if 
  not Char.IsDead(76@)
goto_if_false @RIOT2_20083
Char.SetStayInSamePlace(76@, False)
268@ = Sequence.Open()
Task.KillCharOnFootTimed(-1, 36@, 3000)
Task.GoStraightToCoord(-1, 1872.8, -2096.1, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 275.0)
Task.PlayAnimNonInterruptable(-1, "CROUCH_ROLL_R", "PED", 8.0, False, True, True, False, -1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence(76@, 268@)
Sequence.Clear(268@)
139@ = Blip.AddForChar(76@)
Blip.ChangeScale(139@, 1)

:RIOT2_20083
if 
  not Char.IsDead(77@)
goto_if_false @RIOT2_20213
Char.SetStayInSamePlace(77@, False)
268@ = Sequence.Open()
Task.KillCharOnFootTimed(-1, 36@, 3000)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence(77@, 268@)
Sequence.Clear(268@)
Char.SetKindaStayInSamePlace(77@, True)
140@ = Blip.AddForChar(77@)
Blip.ChangeScale(140@, 1)

:RIOT2_20213
if 
  not Char.IsDead(78@)
goto_if_false @RIOT2_20358
Char.SetStayInSamePlace(78@, False)
Char.SetProofs(78@, False, False, False, False, False)
268@ = Sequence.Open()
Task.KillCharOnFootTimed(-1, 36@, 3000)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence(78@, 268@)
Sequence.Clear(268@)
Char.SetKindaStayInSamePlace(78@, True)
141@ = Blip.AddForChar(78@)
Blip.ChangeScale(141@, 1)

:RIOT2_20358
Text.ClearPrints
185@ = 7
186@ = 0
gosub @RIOT2_40912
Char.SetBleeding(36@, True)
TIMERB = 0
143@ = 2

:RIOT2_20402
if 
  143@ == 2
goto_if_false @RIOT2_20453
if 
  TIMERB > 1000
goto_if_false @RIOT2_20453
Char.SetCollision(36@, False)
143@ = 3

:RIOT2_20453
if 
  143@ == 3
goto_if_false @RIOT2_20752
if 
  Char.IsDead(69@)
goto_if_false @RIOT2_20752
if 
  Char.IsDead(70@)
goto_if_false @RIOT2_20752
if 
  Char.IsDead(71@)
goto_if_false @RIOT2_20752
if 
  Char.IsDead(72@)
goto_if_false @RIOT2_20752
if 
  Char.IsDead(73@)
goto_if_false @RIOT2_20752
if 
  Char.IsDead(74@)
goto_if_false @RIOT2_20752
if 
  Char.IsDead(75@)
goto_if_false @RIOT2_20752
if 
  Char.IsDead(76@)
goto_if_false @RIOT2_20752
if 
  Char.IsDead(77@)
goto_if_false @RIOT2_20752
if 
  Char.IsDead(78@)
goto_if_false @RIOT2_20752
Blip.Remove(126@)
Blip.Remove(127@)
Blip.Remove(128@)
Blip.Remove(129@)
Blip.Remove(130@)
Blip.Remove(131@)
Blip.Remove(138@)
Blip.Remove(139@)
Blip.Remove(140@)
Blip.Remove(141@)
Char.MarkAsNoLongerNeeded(69@)
Char.MarkAsNoLongerNeeded(70@)
Char.MarkAsNoLongerNeeded(71@)
Char.MarkAsNoLongerNeeded(72@)
Char.MarkAsNoLongerNeeded(73@)
Char.MarkAsNoLongerNeeded(74@)
Char.MarkAsNoLongerNeeded(75@)
Char.MarkAsNoLongerNeeded(76@)
Char.MarkAsNoLongerNeeded(77@)
Char.MarkAsNoLongerNeeded(78@)
TIMERA = 0
143@ = 0
142@ = 5

:RIOT2_20752
if 
  Char.IsDead(69@)
goto_if_false @RIOT2_20778
Char.MarkAsNoLongerNeeded(69@)
Blip.Remove(126@)

:RIOT2_20778
if 
  Char.IsDead(70@)
goto_if_false @RIOT2_20804
Char.MarkAsNoLongerNeeded(70@)
Blip.Remove(127@)

:RIOT2_20804
if 
  Char.IsDead(71@)
goto_if_false @RIOT2_20830
Char.MarkAsNoLongerNeeded(71@)
Blip.Remove(128@)

:RIOT2_20830
if 
  Char.IsDead(72@)
goto_if_false @RIOT2_20856
Char.MarkAsNoLongerNeeded(72@)
Blip.Remove(129@)

:RIOT2_20856
if 
  Char.IsDead(73@)
goto_if_false @RIOT2_20882
Char.MarkAsNoLongerNeeded(73@)
Blip.Remove(130@)

:RIOT2_20882
if 
  Char.IsDead(74@)
goto_if_false @RIOT2_20908
Char.MarkAsNoLongerNeeded(74@)
Blip.Remove(131@)

:RIOT2_20908
if 
  143@ > 1
goto_if_false @RIOT2_21030
if 
  Char.IsDead(75@)
goto_if_false @RIOT2_20952
Char.MarkAsNoLongerNeeded(75@)
Blip.Remove(138@)

:RIOT2_20952
if 
  Char.IsDead(76@)
goto_if_false @RIOT2_20978
Char.MarkAsNoLongerNeeded(76@)
Blip.Remove(139@)

:RIOT2_20978
if 
  Char.IsDead(77@)
goto_if_false @RIOT2_21004
Char.MarkAsNoLongerNeeded(77@)
Blip.Remove(140@)

:RIOT2_21004
if 
  Char.IsDead(78@)
goto_if_false @RIOT2_21030
Char.MarkAsNoLongerNeeded(78@)
Blip.Remove(141@)

:RIOT2_21030
if 
  142@ == 5
goto_if_false @RIOT2_24541
if 
  143@ == 0
goto_if_false @RIOT2_21495
if 
  TIMERA > 2000
goto_if_false @RIOT2_21495
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
185@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Car.Delete(68@)
World.ClearArea(1905.1, -2103.9, 12.5, 60.0, True)
Char.SetCoordinates($scplayer, 1905.1, -2103.9, 12.5)
Char.SetHeading($scplayer, 80.2)
Char.ClearTasks($cesar)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1897.8, -2099.5, 12.5, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 1890.8, -2099.5, 12.5, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 1877.2, -2101.2, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 110.0)
Sequence.Close(268@)
Char.PerformSequence($cesar, 268@)
Sequence.Clear(268@)
Char.ClearTasksImmediately(34@)
Char.SetCoordinates(34@, 1900.4, -2098.2, 12.5)
Char.SetHeading(34@, 92.3)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1875.7, -2102.4, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 95.0)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Sequence.Close(268@)
Char.PerformSequence(34@, 268@)
Sequence.Clear(268@)
144@ = 1
skip_cutscene_start_internal @RIOT2_21846
Camera.SetFixedPosition(1900.4, -2099.6, 12.8, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1879.4, -2107.7, 17.9, SwitchType.JumpCut)
TIMERA = 0
143@ = 1

:RIOT2_21495
if 
  143@ == 1
goto_if_false @RIOT2_21784
if 
  TIMERA > 3000
goto_if_false @RIOT2_21784
Char.ClearTasksImmediately(34@)
Char.SetCoordinates(34@, 1875.7, -2102.4, 12.5)
Char.SetHeading(34@, 95.0)
Task.PlayAnim(34@, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Char.SetCoordinates($cesar, 1881.2, -2099.6, 12.5)
Char.SetHeading($cesar, 69.4)
Char.SetCoordinates($scplayer, 1886.2, -2099.6, 12.5)
Char.SetHeading($scplayer, 69.4)
Task.GoStraightToCoord($scplayer, 1877.6, -2099.8, 12.5, MoveState.Walk, -1)
gosub @RIOT2_38067
Camera.SetFixedPosition(1880.2, -2103.1, 14.46, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1874.3, -2100.77, 12.8, SwitchType.JumpCut)
185@ = 8
186@ = 0
gosub @RIOT2_40912
TIMERA = 0
143@ = 2

:RIOT2_21784
if 
  143@ == 2
goto_if_false @RIOT2_24541
if 
  185@ == 0
goto_if_false @RIOT2_24541
if 
  TIMERA > 8000
goto_if_false @RIOT2_24541
144@ = 0

:RIOT2_21846
skip_cutscene_end 
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_21880
goto @RIOT2_30241

:RIOT2_21880
if 
  144@ == 1
goto_if_false @RIOT2_22870
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
185@ = 0
Camera.DoFade(500, Fade.Out)

:RIOT2_21922
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_21946
wait 0
goto @RIOT2_21922

:RIOT2_21946
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_21978
goto @RIOT2_30241

:RIOT2_21978
gosub @RIOT2_38067
Char.ClearTasksImmediately(34@)
Char.SetCoordinates(34@, 1875.7, -2102.4, 12.5)
Char.SetHeading(34@, 95.0)
Task.PlayAnim(34@, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Char.ClearTasksImmediately($cesar)
Char.SetCoordinates($cesar, 1881.2, -2099.6, 12.5)
Char.SetHeading($cesar, 69.4)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1879.7, -2101.7, 12.5)
Char.SetHeading($scplayer, 90.0)
Char.ClearTasksImmediately(79@)
Char.SetDecisionMaker(79@, 265@)
Char.SetCoordinates(79@, 1861.1, -2096.9, 12.5)
Char.SetHeading(79@, 270.3)
$task_status = Char.GetScriptTaskStatus(80@, 1560)
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_22344
Char.ClearTasksImmediately(80@)
Task.PlayAnim(80@, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
268@ = Sequence.Open()
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.Climb(-1, True)
Task.ShootAtCoord(-1, 1874.4, -2101.5, 14.8, 2000)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(80@, 268@)
Sequence.Clear(268@)

:RIOT2_22344
$task_status = Char.GetScriptTaskStatus(81@, 1560)
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_22522
Char.ClearTasksImmediately(81@)
Task.PlayAnim(81@, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
268@ = Sequence.Open()
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.Pause(-1, 2000)
Task.Climb(-1, True)
Task.ShootAtCoord(-1, 1874.4, -2101.5, 14.8, 2000)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(81@, 268@)
Sequence.Clear(268@)

:RIOT2_22522
Char.ClearTasksImmediately(82@)
Char.SetDecisionMaker(82@, 265@)
Char.SetCoordinates(82@, 1859.1, -2106.0, 14.0)
Char.SetHeading(82@, 264.4)
$task_status = Char.GetScriptTaskStatus(83@, 1560)
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_22714
Char.ClearTasksImmediately(83@)
Task.PlayAnim(83@, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
268@ = Sequence.Open()
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.Climb(-1, True)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(83@, 268@)
Sequence.Clear(268@)

:RIOT2_22714
$task_status = Char.GetScriptTaskStatus(84@, 1560)
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_22870
Char.ClearTasksImmediately(84@)
Task.PlayAnim(84@, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
268@ = Sequence.Open()
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.Pause(-1, 3000)
Task.Climb(-1, True)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(84@, 268@)
Sequence.Clear(268@)

:RIOT2_22870
DecisionMakerChar.AddEventResponse(265@, 36, 1000, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse(265@, 37, 1000, 0.0, 100.0, 0.0, 0.0, False, True)
85@ = Pickup.Create(#HEALTH, PickupType.OnStreetSlow, 1875.6, -2091.4, 13.5)
86@ = Pickup.CreateWithAmmo(372, PickupType.OnStreetSlow, 48, 1878.3, -2091.1, 13.5)
269@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_R", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
168@ = Math.RandomIntInRange(1500, 4000)
Task.ShootAtCoord(-1, 1864.9, -2101.2, 14.0, 168@)
Task.StayInSamePlace(-1, False)
Task.CharSlideToCoordAndPlayAnim(-1, 1874.9, -2096.5, 12.5, 75.0, -0.1, "SWT_WLLSHOOT_OUT_R", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(269@, True)
Sequence.Close(269@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1874.9, -2096.5, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 75.0)
Char.PerformSequence(-1, 269@)
Sequence.Close(268@)
Char.PerformSequence($cesar, 268@)
Sequence.Clear(268@)
Sequence.Clear(269@)
269@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_L", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
168@ = Math.RandomIntInRange(1500, 4000)
Task.ShootAtCoord(-1, 1862.6, -2104.1, 14.0, 168@)
Task.StayInSamePlace(-1, False)
Task.CharSlideToCoordAndPlayAnim(-1, 1873.3, -2107.4, 12.5, 98.8, -0.1, "SWT_WLLSHOOT_OUT_L", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(269@, True)
Sequence.Close(269@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1873.3, -2107.4, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 98.8)
Char.PerformSequence(-1, 269@)
Sequence.Close(268@)
Char.PerformSequence(34@, 268@)
Sequence.Clear(268@)
Sequence.Clear(269@)
Char.GiveWeapon(35@, WeaponType.RocketLauncher, 1)
269@ = Sequence.Open()
Task.PlayAnim(-1, "GUN_STAND", "PED", 8.0, False, False, False, False, 10)
168@ = Math.RandomIntInRange(1500, 4000)
Task.ShootAtCoord(-1, 1878.7, -2105.5, 14.6, 168@)
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
168@ = Math.RandomIntInRange(1500, 4000)
Task.Pause(-1, 168@)
Sequence.SetToRepeat(269@, True)
Sequence.Close(269@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1898.7, -2106.1, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 90.0)
Task.ShootAtCoord(-1, 1852.1, -2096.6, 16.5, 10)
Char.PerformSequence(-1, 269@)
Sequence.Close(268@)
Char.PerformSequence(35@, 268@)
Sequence.Clear(268@)
Sequence.Clear(269@)
148@ = Math.RandomIntInRange(0, 2)
69@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1913.7, -2109.2, 12.6)
Char.SetHeading(69@, 90.5)
Char.GiveWeapon(69@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(69@, 266@)
Char.SetStayInSamePlace(69@, True)
Char.SetProofs(69@, True, True, True, True, True)
Char.SetAccuracy(69@, 181@)
Char.AddArmor(69@, 50)
148@ = Math.RandomIntInRange(0, 2)
70@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1916.5, -2113.1, 12.6)
Char.SetHeading(70@, 20.1)
Char.GiveWeapon(70@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(70@, 266@)
Char.SetStayInSamePlace(70@, True)
Char.SetProofs(70@, True, True, True, True, True)
Char.SetAccuracy(70@, 181@)
148@ = Math.RandomIntInRange(0, 2)
73@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1806.1, -2121.7, 12.5)
Char.SetHeading(73@, 357.8)
Char.GiveWeapon(73@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(73@, 265@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1837.5, -2102.3, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 275.0)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence(73@, 268@)
Sequence.Clear(268@)
Blip.Remove(130@)
130@ = Blip.AddForChar(73@)
Blip.ChangeScale(130@, 1)
Char.SetAccuracy(73@, 181@)
148@ = Math.RandomIntInRange(0, 2)
74@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1801.5, -2120.7, 12.5)
Char.SetHeading(74@, 357.8)
Char.GiveWeapon(74@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(74@, 265@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1833.8, -2097.8, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 275.0)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence(74@, 268@)
Sequence.Clear(268@)
Blip.Remove(131@)
131@ = Blip.AddForChar(74@)
Blip.ChangeScale(131@, 1)
Char.SetAccuracy(74@, 181@)
Char.AddArmor(74@, 50)
Game.ShutAllCharsUp(False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Char.HideWeaponForScriptedCutscene($scplayer, False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Text.PrintNow('R2_06', 4000, 1)
if 
  144@ == 1
goto_if_false @RIOT2_24520
Camera.DoFade(500, Fade.In)

:RIOT2_24464
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_24488
wait 0
goto @RIOT2_24464

:RIOT2_24488
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_24520
goto @RIOT2_30241

:RIOT2_24520
TIMERA = 0
143@ = 0
142@ = 6

:RIOT2_24541
if 
  142@ == 6
goto_if_false @RIOT2_26110
if 
  not Char.IsDead($cesar)
goto_if_false @RIOT2_24632
180@ = Char.GetHealth($cesar)
if 
  50 > 180@
goto_if_false @RIOT2_24632
Task.DieNamedAnim($cesar, "KO_SHOT_STOM", "PED", 8.0, 0)

:RIOT2_24632
if 
  not Char.IsDead(34@)
goto_if_false @RIOT2_24705
180@ = Char.GetHealth(34@)
if 
  50 > 180@
goto_if_false @RIOT2_24705
Task.DieNamedAnim(34@, "KO_SHOT_STOM", "PED", 8.0, 0)

:RIOT2_24705
if 
  169@ == 0
goto_if_false @RIOT2_24826
if 
  Char.IsDead(79@)
goto_if_false @RIOT2_24826
if 
  Char.IsDead(80@)
goto_if_false @RIOT2_24826
if 
  Char.IsDead(81@)
goto_if_false @RIOT2_24826
if 
  Char.IsDead(82@)
goto_if_false @RIOT2_24826
if 
  Char.IsDead(83@)
goto_if_false @RIOT2_24826
if 
  Char.IsDead(84@)
goto_if_false @RIOT2_24826
169@ = 1

:RIOT2_24826
if 
  169@ == 1
goto_if_false @RIOT2_25014
if or
  TIMERA > 15000
  169@ == 1
  Char.IsInArea2D($scplayer, 1893.6, -2043.3, 1888.1, -2175.6, False)
goto_if_false @RIOT2_25014
185@ = 9
186@ = Math.RandomIntInRange(0, 3)
set_lvar_int_to_lvar_int 188@ = 186@
188@ += 1
gosub @RIOT2_40912
if 
  not Char.IsDead(69@)
goto_if_false @RIOT2_24971
Blip.Remove(126@)
126@ = Blip.AddForChar(69@)
Blip.ChangeScale(126@, 1)

:RIOT2_24971
if 
  not Char.IsDead(70@)
goto_if_false @RIOT2_25007
Blip.Remove(127@)
127@ = Blip.AddForChar(70@)
Blip.ChangeScale(127@, 1)

:RIOT2_25007
169@ = 2

:RIOT2_25014
if 
  169@ == 2
goto_if_false @RIOT2_25444
if 
  Char.IsOnScreen(35@)
goto_if_false @RIOT2_25444
if 
  not Char.IsDead(69@)
goto_if_false @RIOT2_25163
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1913.5, -2106.1, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 90.0)
Task.ShootAtCoord(-1, 1900.8, -2106.2, 12.6, 1500)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence(69@, 268@)
Sequence.Clear(268@)
Char.SetProofs(69@, False, False, False, False, False)

:RIOT2_25163
if 
  not Char.IsDead(70@)
goto_if_false @RIOT2_25278
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1914.2, -2104.2, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 90.0)
Task.ShootAtCoord(-1, 1900.8, -2106.2, 12.6, 1500)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence(70@, 268@)
Sequence.Clear(268@)
Char.SetProofs(70@, False, False, False, False, False)

:RIOT2_25278
Char.GiveWeapon(35@, WeaponType.RocketLauncher, 1)
268@ = Sequence.Open()
Task.AchieveHeading(-1, 269.0)
Task.Pause(-1, 200)
Task.ShootAtCoord(-1, 1951.1, -2103.9, 19.3, 500)
Task.PlayAnimNonInterruptable(-1, "KO_SHOT_FACE", "PED", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "CRCKIDLE1", "CRACK", 1000.0, True, False, False, False, -1)
Sequence.Close(268@)
Char.PerformSequence(35@, 268@)
Sequence.Clear(268@)
Char.SetBleeding(35@, True)
TIMERA = 0
169@ = 3

:RIOT2_25444
if 
  143@ == 0
goto_if_false @RIOT2_25749
if 
  Char.IsDead(79@)
goto_if_false @RIOT2_25749
if 
  Char.IsDead(80@)
goto_if_false @RIOT2_25749
if 
  Char.IsDead(81@)
goto_if_false @RIOT2_25749
if 
  Char.IsDead(82@)
goto_if_false @RIOT2_25749
if 
  Char.IsDead(83@)
goto_if_false @RIOT2_25749
if 
  Char.IsDead(84@)
goto_if_false @RIOT2_25749
if 
  Char.IsDead(73@)
goto_if_false @RIOT2_25749
if 
  Char.IsDead(74@)
goto_if_false @RIOT2_25749
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1895.3, -2102.2, 12.6, MoveState.Run, -1)
Task.AchieveHeading(-1, 274.7)
Task.ShootAtCoord(-1, 1913.5, -2104.4, 13.9, -2)
Sequence.Close(268@)
Char.PerformSequence($cesar, 268@)
Sequence.Clear(268@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1895.6, -2104.2, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 271.0)
Task.ShootAtCoord(-1, 1912.9, -2106.4, 13.9, -2)
Sequence.Close(268@)
Char.PerformSequence(34@, 268@)
Sequence.Clear(268@)
143@ = 1

:RIOT2_25749
if 
  143@ == 1
goto_if_false @RIOT2_25850
if 
  Char.IsDead(69@)
goto_if_false @RIOT2_25850
if 
  Char.IsDead(70@)
goto_if_false @RIOT2_25850
Char.MarkAsNoLongerNeeded(69@)
Char.MarkAsNoLongerNeeded(70@)
Char.MarkAsNoLongerNeeded(73@)
Char.MarkAsNoLongerNeeded(74@)
Streaming.RemoveAnimation("CASINO")
TIMERA = 0
143@ = 0
142@ = 7

:RIOT2_25850
if 
  Char.IsDead(69@)
goto_if_false @RIOT2_25876
Char.MarkAsNoLongerNeeded(69@)
Blip.Remove(126@)

:RIOT2_25876
if 
  Char.IsDead(70@)
goto_if_false @RIOT2_25902
Char.MarkAsNoLongerNeeded(70@)
Blip.Remove(127@)

:RIOT2_25902
if 
  Char.IsDead(73@)
goto_if_false @RIOT2_25928
Char.MarkAsNoLongerNeeded(73@)
Blip.Remove(130@)

:RIOT2_25928
if 
  Char.IsDead(74@)
goto_if_false @RIOT2_25954
Char.MarkAsNoLongerNeeded(74@)
Blip.Remove(131@)

:RIOT2_25954
if 
  Char.IsDead(79@)
goto_if_false @RIOT2_25980
Char.MarkAsNoLongerNeeded(79@)
Blip.Remove(132@)

:RIOT2_25980
if 
  Char.IsDead(80@)
goto_if_false @RIOT2_26006
Char.MarkAsNoLongerNeeded(80@)
Blip.Remove(133@)

:RIOT2_26006
if 
  Char.IsDead(81@)
goto_if_false @RIOT2_26032
Char.MarkAsNoLongerNeeded(81@)
Blip.Remove(134@)

:RIOT2_26032
if 
  Char.IsDead(82@)
goto_if_false @RIOT2_26058
Char.MarkAsNoLongerNeeded(82@)
Blip.Remove(135@)

:RIOT2_26058
if 
  Char.IsDead(83@)
goto_if_false @RIOT2_26084
Char.MarkAsNoLongerNeeded(83@)
Blip.Remove(136@)

:RIOT2_26084
if 
  Char.IsDead(84@)
goto_if_false @RIOT2_26110
Char.MarkAsNoLongerNeeded(84@)
Blip.Remove(137@)

:RIOT2_26110
if 
  142@ == 7
goto_if_false @RIOT2_28983
if 
  143@ == 0
goto_if_false @RIOT2_27274
if 
  TIMERA > 2000
goto_if_false @RIOT2_27274
Camera.DoFade(500, Fade.Out)

:RIOT2_26172
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_26196
wait 0
goto @RIOT2_26172

:RIOT2_26196
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_26228
goto @RIOT2_30241

:RIOT2_26228
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
185@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.ShutAllCharsUp(True)
Streaming.RemoveAnimation("SWAT")
Streaming.RequestModel(361)
DecisionMakerChar.ClearEventResponse(265@, 36)
DecisionMakerChar.ClearEventResponse(265@, 37)
Streaming.LoadScene(1855.5, -2101.8, 12.5)
69@ = Char.Create(PedType.Mission2, 108, 1805.0, -2126.0, 17.8)
Char.SetHeading(69@, 306.5)
Char.SetStayInSamePlace(69@, True)
Char.AddArmor(69@, 100)
Char.SetSuffersCriticalHits(69@, False)
Char.GiveWeapon(69@, WeaponType.RocketLauncher, 30000)
Char.SetDecisionMaker(69@, 266@)
90@ = Blip.AddForChar(69@)
Blip.ChangeScale(90@, 1)
Char.SetAccuracy(69@, 181@)
Char.AddArmor(69@, 100)
148@ = Math.RandomIntInRange(0, 2)
70@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1811.8, -2124.0, 12.6)
Char.SetHeading(70@, 287.5)
Char.SetStayInSamePlace(70@, True)
Char.GiveWeapon(70@, WeaponType.Flamethrower, 30000)
Char.SetDecisionMaker(70@, 266@)
91@ = Blip.AddForChar(70@)
Blip.ChangeScale(91@, 1)
Char.SetAccuracy(70@, 181@)
148@ = Math.RandomIntInRange(0, 2)
71@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1795.0, -2126.7, 12.5)
Char.SetHeading(71@, 358.6)
Char.GiveWeapon(71@, WeaponType.Tec9, 3000)
Char.SetKindaStayInSamePlace(71@, True)
Char.SetDecisionMaker(71@, 266@)
92@ = Blip.AddForChar(71@)
Blip.ChangeScale(92@, 1)
Char.SetAccuracy(71@, 181@)
148@ = Math.RandomIntInRange(0, 2)
72@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1795.0, -2130.7, 12.5)
Char.SetHeading(72@, 357.8)
Char.GiveWeapon(72@, WeaponType.Tec9, 3000)
Char.SetKindaStayInSamePlace(72@, True)
Char.SetDecisionMaker(72@, 266@)
93@ = Blip.AddForChar(72@)
Blip.ChangeScale(93@, 1)
Char.SetAccuracy(72@, 181@)
148@ = Math.RandomIntInRange(0, 2)
73@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1806.1, -2121.7, 12.5)
Char.SetHeading(73@, 357.8)
Char.GiveWeapon(73@, WeaponType.Tec9, 3000)
Char.SetStayInSamePlace(73@, True)
Char.SetDecisionMaker(73@, 266@)
94@ = Blip.AddForChar(73@)
Blip.ChangeScale(94@, 1)
Char.SetAccuracy(73@, 181@)
Char.AddArmor(73@, 100)
148@ = Math.RandomIntInRange(0, 2)
74@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1801.5, -2120.7, 12.5)
Char.SetHeading(74@, 357.8)
Char.GiveWeapon(74@, WeaponType.Tec9, 3000)
Char.SetStayInSamePlace(74@, True)
Char.SetDecisionMaker(74@, 266@)
95@ = Blip.AddForChar(74@)
Blip.ChangeScale(95@, 1)
Char.SetAccuracy(74@, 181@)
Char.AddArmor(74@, 100)
World.ClearArea(1855.5, -2101.8, 12.5, 30.0, True)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1855.5, -2101.8, 12.5)
Char.SetHeading($scplayer, 90.0)
Task.GoStraightToCoord($scplayer, 1846.6, -2102.8, 12.5, MoveState.Walk, -1)
Char.ClearTasksImmediately($cesar)
Char.SetCoordinates($cesar, 1855.5, -2102.8, 12.5)
Char.SetHeading($cesar, 90.0)
Task.GoStraightToCoord($cesar, 1846.6, -2102.8, 12.5, MoveState.Walk, -1)
Char.ClearTasksImmediately(34@)
Char.SetCoordinates(34@, 1855.5, -2100.8, 12.5)
Char.SetHeading(34@, 90.0)
Task.GoStraightToCoord(34@, 1846.6, -2100.8, 12.5, MoveState.Walk, -1)
Camera.SetFixedPosition(1846.6, -2101.8, 13.88, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1853.9, -2101.4, 12.7, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:RIOT2_27169
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_27193
wait 0
goto @RIOT2_27169

:RIOT2_27193
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_27225
goto @RIOT2_30241

:RIOT2_27225
144@ = 1
skip_cutscene_start_internal @RIOT2_27824
185@ = 10
186@ = 0
gosub @RIOT2_40912
TIMERA = 0
143@ = 1

:RIOT2_27274
if 
  143@ == 1
goto_if_false @RIOT2_27575
if 
  185@ == 0
goto_if_false @RIOT2_27575
if 
  TIMERA > 4000
goto_if_false @RIOT2_27575
Camera.DoFade(500, Fade.Out)

:RIOT2_27336
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_27360
wait 0
goto @RIOT2_27336

:RIOT2_27360
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_27392
goto @RIOT2_30241

:RIOT2_27392
Streaming.LoadScene(1809.8, -2123.4, 12.7)
Camera.SetFixedPosition(1816.2, -2116.8, 13.16, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1808.6, -2123.8, 15.0, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:RIOT2_27467
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_27491
wait 0
goto @RIOT2_27467

:RIOT2_27491
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_27523
goto @RIOT2_30241

:RIOT2_27523
185@ = 11
186@ = Math.RandomIntInRange(0, 3)
set_lvar_int_to_lvar_int 188@ = 186@
188@ += 1
gosub @RIOT2_40912
TIMERA = 0
143@ = 2

:RIOT2_27575
if 
  143@ == 2
goto_if_false @RIOT2_27762
if 
  185@ == 0
goto_if_false @RIOT2_27762
if 
  TIMERA > 4000
goto_if_false @RIOT2_27762
Camera.SetFixedPosition(1816.2, -2116.8, 13.16, 0.0, 0.0, 0.0)
if 
  not Char.IsDead(70@)
goto_if_false @RIOT2_27710
Camera.PointAtChar(70@, CameraMode.Fixed, SwitchType.Interpolation)
Task.ShootAtCoord(70@, 1831.6, -2118.9, 12.5, 4000)

:RIOT2_27710
185@ = 12
186@ = Math.RandomIntInRange(0, 3)
set_lvar_int_to_lvar_int 188@ = 186@
188@ += 1
gosub @RIOT2_40912
TIMERA = 0
143@ = 3

:RIOT2_27762
if 
  143@ == 3
goto_if_false @RIOT2_28983
if 
  185@ == 0
goto_if_false @RIOT2_28983
if 
  TIMERA > 4000
goto_if_false @RIOT2_28983
144@ = 0

:RIOT2_27824
skip_cutscene_end 
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_27858
goto @RIOT2_30241

:RIOT2_27858
if 
  144@ == 1
goto_if_false @RIOT2_27956
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
185@ = 0
Camera.DoFade(500, Fade.Out)

:RIOT2_27900
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_27924
wait 0
goto @RIOT2_27900

:RIOT2_27924
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_27956
goto @RIOT2_30241

:RIOT2_27956
if 
  not Char.IsDead(69@)
goto_if_false @RIOT2_28176
268@ = Sequence.Open()
Task.ShootAtCoord(-1, 1832.7, -2090.1, 14.1, 500)
Task.PlayAnim(-1, "GUN_STAND", "PED", 8.0, False, False, False, False, 1000)
Task.ShootAtCoord(-1, 1853.6, -2087.0, 20.5, 500)
Task.PlayAnim(-1, "GUN_STAND", "PED", 8.0, False, False, False, True, 1000)
Task.ShootAtCoord(-1, 1819.5, -2113.1, 12.9, 500)
Task.PlayAnim(-1, "GUN_STAND", "PED", 8.0, False, False, False, False, 1000)
Sequence.SetToRepeat(268@, True)
Sequence.Close(268@)
Char.PerformSequence(69@, 268@)
Sequence.Clear(268@)

:RIOT2_28176
if 
  not Char.IsDead(70@)
goto_if_false @RIOT2_28251
268@ = Sequence.Open()
Task.ShootAtCoord(-1, 1831.6, -2118.9, 12.5, 2000)
Task.Pause(-1, 2000)
Sequence.SetToRepeat(268@, True)
Sequence.Close(268@)
Char.PerformSequence(70@, 268@)
Sequence.Clear(268@)

:RIOT2_28251
if 
  not Char.IsDead(71@)
goto_if_false @RIOT2_28335
268@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.GoStraightToCoord(-1, 1795.0, -2106.7, 12.5, MoveState.Walk, -1)
Task.AchieveHeading(-1, 277.9)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence(71@, 268@)
Sequence.Clear(268@)

:RIOT2_28335
if 
  not Char.IsDead(72@)
goto_if_false @RIOT2_28419
268@ = Sequence.Open()
Task.ToggleDuck(-1, True)
Task.GoStraightToCoord(-1, 1792.0, -2103.7, 12.5, MoveState.Walk, -1)
Task.AchieveHeading(-1, 277.9)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence(72@, 268@)
Sequence.Clear(268@)

:RIOT2_28419
if 
  not Char.IsDead(73@)
goto_if_false @RIOT2_28488
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1809.4, -2116.3, 12.5, MoveState.Run, -1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence(73@, 268@)
Sequence.Clear(268@)

:RIOT2_28488
if 
  not Char.IsDead(74@)
goto_if_false @RIOT2_28557
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1809.4, -2111.8, 12.5, MoveState.Run, -1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence(74@, 268@)
Sequence.Clear(268@)

:RIOT2_28557
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1833.9, -2104.2, 12.5)
Char.SetHeading($scplayer, 122.4)
Char.ClearTasksImmediately($cesar)
Char.SetCoordinates($cesar, 1833.0, -2106.6, 12.5)
Char.SetHeading($cesar, 122.3)
Char.SetStayInSamePlace($cesar, True)
Char.SetDecisionMaker($cesar, 265@)
Char.ClearTasksImmediately(34@)
Char.SetCoordinates(34@, 1834.4, -2102.0, 12.5)
Char.SetHeading(34@, 99.6)
Char.SetStayInSamePlace(34@, True)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1814.1, -2102.4, 12.5, MoveState.Run, -1)
Task.AchieveHeading(-1, 112.7)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(34@, 268@)
Sequence.Clear(268@)
Char.MarkAsNoLongerNeeded(79@)
Char.MarkAsNoLongerNeeded(80@)
Char.MarkAsNoLongerNeeded(81@)
Char.MarkAsNoLongerNeeded(82@)
Char.MarkAsNoLongerNeeded(83@)
Char.MarkAsNoLongerNeeded(84@)
DecisionMakerChar.AddEventResponse(265@, 36, 1000, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse(265@, 37, 1000, 0.0, 100.0, 0.0, 0.0, False, True)
Game.ShutAllCharsUp(False)
Hud.SwitchWidescreen(False)
Player.MakeGangReappear
Char.HideWeaponForScriptedCutscene($scplayer, False)
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Text.PrintNow('R2_07', 4000, 1)
if 
  144@ == 1
goto_if_false @RIOT2_28969
Camera.DoFade(500, Fade.In)

:RIOT2_28913
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_28937
wait 0
goto @RIOT2_28913

:RIOT2_28937
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_28969
goto @RIOT2_30241

:RIOT2_28969
143@ = 0
142@ = 8

:RIOT2_28983
if 
  142@ == 8
goto_if_false @RIOT2_30227
if 
  143@ == 0
goto_if_false @RIOT2_29255
if 
  Char.IsDead(69@)
goto_if_false @RIOT2_29040
Blip.Remove(90@)

:RIOT2_29040
if 
  Char.IsDead(70@)
goto_if_false @RIOT2_29061
Blip.Remove(91@)

:RIOT2_29061
if 
  Char.IsDead(71@)
goto_if_false @RIOT2_29082
Blip.Remove(92@)

:RIOT2_29082
if 
  Char.IsDead(72@)
goto_if_false @RIOT2_29103
Blip.Remove(93@)

:RIOT2_29103
if 
  Char.IsDead(73@)
goto_if_false @RIOT2_29124
Blip.Remove(94@)

:RIOT2_29124
if 
  Char.IsDead(74@)
goto_if_false @RIOT2_29145
Blip.Remove(95@)

:RIOT2_29145
if 
  Char.IsDead(69@)
goto_if_false @RIOT2_29255
if 
  Char.IsDead(70@)
goto_if_false @RIOT2_29255
if 
  Char.IsDead(71@)
goto_if_false @RIOT2_29255
if 
  Char.IsDead(72@)
goto_if_false @RIOT2_29255
if 
  Char.IsDead(73@)
goto_if_false @RIOT2_29255
if 
  Char.IsDead(74@)
goto_if_false @RIOT2_29255
TIMERA = 0
143@ = 1

:RIOT2_29255
if 
  143@ == 1
goto_if_false @RIOT2_29850
if 
  TIMERA > 2000
goto_if_false @RIOT2_29850
Camera.DoFade(500, Fade.Out)

:RIOT2_29299
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_29323
wait 0
goto @RIOT2_29299

:RIOT2_29323
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_29355
goto @RIOT2_30241

:RIOT2_29355
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
185@ = 0
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.MakeGangDisappear
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.ShutAllCharsUp(True)
Streaming.LoadScene(1814.9, -2112.1, 12.4)
World.ClearArea(1814.9, -2112.1, 12.4, 30.0, True)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 1814.9, -2112.1, 12.4)
Char.SetHeading($scplayer, 127.9)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1807.8, -2122.0, 12.5, MoveState.Walk, -1)
Task.TurnCharToFaceChar(-1, $cesar)
Sequence.Close(268@)
Char.PerformSequence($scplayer, 268@)
Sequence.Clear(268@)
Char.ClearTasksImmediately($cesar)
Char.SetCoordinates($cesar, 1812.4, -2111.3, 12.4)
Char.SetHeading($cesar, 127.9)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1804.8, -2120.2, 12.5, MoveState.Walk, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence($cesar, 268@)
Sequence.Clear(268@)
Char.ClearTasksImmediately(34@)
Char.SetCoordinates(34@, 1810.4, -2111.0, 12.4)
Char.SetHeading(34@, 135.1)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1807.0, -2118.8, 12.5, MoveState.Walk, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence(34@, 268@)
Sequence.Clear(268@)
Camera.SetFixedPosition(1812.6, -2114.5, 13.0, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1804.5, -2123.6, 15.0, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:RIOT2_29759
if 
  Camera.GetFadingStatus
goto_if_false @RIOT2_29783
wait 0
goto @RIOT2_29759

:RIOT2_29783
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_29815
goto @RIOT2_30241

:RIOT2_29815
185@ = 13
186@ = 0
188@ = 4
gosub @RIOT2_40912
143@ = 2

:RIOT2_29850
if 
  143@ == 2
goto_if_false @RIOT2_29981
if 
  185@ == 0
goto_if_false @RIOT2_29981
268@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $cesar)
Sequence.Close(268@)
Char.PerformSequence($scplayer, 268@)
Sequence.Clear(268@)
268@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.Close(268@)
Char.PerformSequence($cesar, 268@)
Sequence.Clear(268@)
185@ = 13
186@ = 4
188@ = 8
gosub @RIOT2_40912
143@ = 3

:RIOT2_29981
if 
  143@ == 3
goto_if_false @RIOT2_30169
if 
  185@ == 0
goto_if_false @RIOT2_30169
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1794.8, -2124.5, 12.5, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 1794.8, -2137.2, 12.5, MoveState.Walk, -1)
Sequence.Close(268@)
Char.PerformSequence($cesar, 268@)
Sequence.Clear(268@)
268@ = Sequence.Open()
Task.GoStraightToCoord(-1, 1794.8, -2122.5, 12.4, MoveState.Walk, -1)
Task.GoStraightToCoord(-1, 1794.8, -2137.2, 12.5, MoveState.Walk, -1)
Sequence.Close(268@)
Char.PerformSequence(34@, 268@)
Sequence.Clear(268@)
TIMERA = 0
143@ = 4

:RIOT2_30169
if 
  143@ == 4
goto_if_false @RIOT2_30227
if 
  TIMERA > 3000
goto_if_false @RIOT2_30227
Game.ShutAllCharsUp(False)
Char.Delete($cesar)
Char.Delete(34@)
goto @RIOT2_30259

:RIOT2_30227
gosub @RIOT2_39478
goto @RIOT2_1585

:RIOT2_30241
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:RIOT2_30259
$flag_riot_mission_counter += 1
Text.PrintWithNumberBig('M_PASSR', 60, 5000, TextStyle.Middle)
Stat.AwardPlayerMissionRespect(60)
Blip.Remove($sweet_contact_blip)
Zone.SetGangStrength('ELCO1', GangType.Aztecas, 40)
Zone.SetGangStrength('ELCO2', GangType.Aztecas, 40)
Zone.SetGangStrength('ELCO1', GangType.Vagos, 0)
Zone.SetGangStrength('ELCO2', GangType.Vagos, 0)
Zone.SetGangStrength('ELCO1', GangType.Grove, 0)
Zone.SetGangStrength('ELCO2', GangType.Grove, 0)
Zone.SetGangStrength('LMEX1A', GangType.Aztecas, 40)
Zone.SetGangStrength('LMEX1B', GangType.Aztecas, 40)
Zone.SetGangStrength('LMEX1A', GangType.Vagos, 0)
Zone.SetGangStrength('LMEX1B', GangType.Vagos, 0)
Zone.SetGangStrength('LMEX1A', GangType.Grove, 0)
Zone.SetGangStrength('LMEX1B', GangType.Grove, 0)
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)
Stat.RegisterMissionPassed('RIOT_2')
Stat.PlayerMadeProgress(1)
return 

:RIOT2_30499
if 
  is_var_text_label_empty s$shop_name
goto_if_false @RIOT2_30517
Camera.RestoreJumpcut

:RIOT2_30517
Zone.SetNoCops('ELCO', False)
if 
  not Char.IsDead(36@)
goto_if_false @RIOT2_30558
Char.SetCollision(36@, True)
Char.RemoveElegantly(36@)

:RIOT2_30558
start_new_script @DOORS 
Streaming.MarkModelAsNoLongerNeeded(114)
Streaming.MarkModelAsNoLongerNeeded(115)
Streaming.MarkModelAsNoLongerNeeded(116)
Streaming.MarkModelAsNoLongerNeeded(108)
Streaming.MarkModelAsNoLongerNeeded(109)
Game.SwitchEmergencyServices(True)
Streaming.MarkModelAsNoLongerNeeded(339)
Streaming.MarkModelAsNoLongerNeeded(348)
Streaming.MarkModelAsNoLongerNeeded(372)
Streaming.MarkModelAsNoLongerNeeded(359)
Streaming.MarkModelAsNoLongerNeeded(361)
Streaming.MarkModelAsNoLongerNeeded(466)
Streaming.MarkModelAsNoLongerNeeded(#BBALL_INGAME)
Path.SwitchPedRoadsBackToOriginal(1945.8, -1956.5, 0.0, 1642.9, -2174.3, 50.0)
Pickup.Remove(85@)
Pickup.Remove(86@)
Pickup.Remove(184@)
Streaming.RemoveAnimation("CAR")
Streaming.RemoveAnimation("BSKTBALL")
Streaming.RemoveAnimation("SMOKING")
Streaming.RemoveAnimation("SWAT")
Streaming.RemoveAnimation("CASINO")
Streaming.RemoveAnimation("CRACK")
Streaming.RemoveAnimation("GANGS")
if 
  not Char.IsDead($scplayer)
goto_if_false @RIOT2_30761
Char.ShutUpForScriptedSpeech($scplayer, False)

:RIOT2_30761
Game.ShutAllCharsUp(False)
Char.RemoveElegantly($cesar)
Streaming.UnloadSpecialCharacter(1)
Game.SetGunshotSenseRangeForRiot2(-1.0)
Blip.Remove(89@)
Blip.Remove(90@)
Blip.Remove(91@)
Blip.Remove(92@)
Blip.Remove(93@)
Blip.Remove(94@)
Blip.Remove(95@)
Blip.Remove(96@)
Blip.Remove(97@)
Blip.Remove(98@)
Blip.Remove(99@)
Blip.Remove(100@)
Blip.Remove(101@)
Blip.Remove(102@)
Blip.Remove(103@)
Blip.Remove(104@)
Blip.Remove(105@)
Blip.Remove(106@)
Blip.Remove(107@)
Blip.Remove(108@)
Blip.Remove(109@)
Blip.Remove(110@)
Blip.Remove(111@)
Blip.Remove(112@)
Blip.Remove(113@)
Blip.Remove(114@)
Blip.Remove(115@)
Blip.Remove(116@)
Blip.Remove(117@)
Blip.Remove(118@)
Blip.Remove(119@)
Blip.Remove(120@)
Blip.Remove(121@)
Blip.Remove(122@)
Blip.Remove(123@)
Blip.Remove(124@)
Blip.Remove(125@)
Blip.Remove(126@)
Blip.Remove(127@)
Blip.Remove(128@)
Blip.Remove(129@)
Blip.Remove(130@)
Blip.Remove(131@)
Blip.Remove(132@)
Blip.Remove(133@)
Blip.Remove(134@)
Blip.Remove(135@)
Blip.Remove(136@)
Blip.Remove(137@)
Blip.Remove(138@)
Blip.Remove(139@)
Blip.Remove(140@)
Blip.Remove(141@)
Game.EnableAmbientCrime(True)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

:RIOT2_31066
if 
  Char.IsDead($cesar)
goto_if_false @RIOT2_31107
Text.ClearPrints
Text.PrintNow('R2_08', 7000, 1)
145@ = 1

:RIOT2_31107
if 
  Char.IsDead(35@)
goto_if_false @RIOT2_31148
Text.ClearPrints
Text.PrintNow('R2_09', 7000, 1)
145@ = 1

:RIOT2_31148
if 
  Char.IsDead(34@)
goto_if_false @RIOT2_31189
Text.ClearPrints
Text.PrintNow('R2_10', 7000, 1)
145@ = 1

:RIOT2_31189
if 
  Char.IsDead(36@)
goto_if_false @RIOT2_31230
Text.ClearPrints
Text.PrintNow('R2_11', 7000, 1)
145@ = 1

:RIOT2_31230
return 

:RIOT2_31232
148@ = Math.RandomIntInRange(0, 2)
37@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1831.6, -2004.6, 12.6)
Char.SetInformRespectedFriends(37@, 8.0, 6)
Char.SetHeading(37@, 90.0)
Char.GiveWeapon(37@, WeaponType.Tec9, 3000)
Task.PlayAnim(37@, "M_SMKLEAN_LOOP", "SMOKING", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(37@, 266@)
96@ = Blip.AddForChar(37@)
Blip.ChangeScale(96@, 1)
Char.SetAccuracy(37@, 181@)
Char.AddArmor(37@, 100)
148@ = Math.RandomIntInRange(0, 2)
38@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1825.5, -2002.4, 12.6)
Char.SetInformRespectedFriends(38@, 8.0, 6)
Char.SetHeading(38@, 89.7)
Task.PlayAnim(38@, "BBALL_IDLELOOP", "BSKTBALL", 4.0, True, False, False, False, -1)
88@ = Object.Create(#BBALL_INGAME, 0.0, 0.0, 0.0)
97@ = Blip.AddForChar(38@)
Blip.ChangeScale(97@, 1)
Char.SetAccuracy(38@, 181@)
Char.SetDecisionMaker(38@, 265@)
Char.SetKindaStayInSamePlace(38@, True)
148@ = Math.RandomIntInRange(0, 2)
39@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1824.3, -2002.4, 12.6)
Char.SetInformRespectedFriends(39@, 8.0, 6)
Char.SetHeading(39@, 270.0)
Char.GiveWeapon(39@, WeaponType.Tec9, 3000)
Task.PlayAnim(39@, "BBALL_DEF_LOOP", "BSKTBALL", 4.0, True, False, False, False, -1)
Char.SetDecisionMaker(39@, 265@)
Char.SetKindaStayInSamePlace(39@, True)
98@ = Blip.AddForChar(39@)
Blip.ChangeScale(98@, 1)
Char.SetAccuracy(39@, 181@)
Char.AddArmor(39@, 100)
148@ = Math.RandomIntInRange(0, 2)
40@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1827.7, -1999.1, 12.6)
Char.SetInformRespectedFriends(40@, 8.0, 6)
Char.SetHeading(40@, 133.6)
Char.GiveWeapon(40@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(40@, 265@)
Char.SetKindaStayInSamePlace(40@, True)
99@ = Blip.AddForChar(40@)
Blip.ChangeScale(99@, 1)
Char.SetAccuracy(40@, 181@)
148@ = Math.RandomIntInRange(0, 2)
41@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1828.2, -2000.4, 12.6)
Char.SetInformRespectedFriends(41@, 8.0, 6)
Char.SetHeading(41@, 108.2)
Char.GiveWeapon(41@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(41@, 265@)
Char.SetKindaStayInSamePlace(41@, True)
100@ = Blip.AddForChar(41@)
Blip.ChangeScale(100@, 1)
Char.SetAccuracy(41@, 181@)
Char.AddArmor(41@, 100)
148@ = Math.RandomIntInRange(0, 2)
42@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1834.3, -1995.9, 12.6)
Char.SetInformRespectedFriends(42@, 8.0, 6)
Char.SetHeading(42@, 88.1)
Char.SetDecisionMaker(42@, 265@)
Char.SetKindaStayInSamePlace(42@, True)
101@ = Blip.AddForChar(42@)
Blip.ChangeScale(101@, 1)
Char.SetAccuracy(42@, 181@)
return 

:RIOT2_32036
if 
  158@ == 0
goto_if_false @RIOT2_32091
262@ = 1857.2
263@ = -2020.6
264@ = 12.6
goto @RIOT2_32249

:RIOT2_32091
if 
  152@ == 0
goto_if_false @RIOT2_32146
262@ = 1865.3
263@ = -1992.2
264@ = 12.6
goto @RIOT2_32249

:RIOT2_32146
if 
  155@ == 0
goto_if_false @RIOT2_32201
262@ = 1899.3
263@ = -1991.7
264@ = 12.6
goto @RIOT2_32249

:RIOT2_32201
if 
  161@ == 0
goto_if_false @RIOT2_32249
262@ = 1908.3
263@ = -2020.1
264@ = 12.6

:RIOT2_32249
if 
  not Char.IsDead(37@)
goto_if_false @RIOT2_32545
if 
  149@ == 0
goto_if_false @RIOT2_32330
268@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, 262@, 263@, 264@, 7, -2)
Sequence.Close(268@)
Char.PerformSequence(37@, 268@)
Sequence.Clear(268@)
149@ = 1

:RIOT2_32330
if 
  149@ == 1
goto_if_false @RIOT2_32545
$task_status = Char.GetScriptTaskStatus(37@, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_32545
if 
  158@ == 0
goto_if_false @RIOT2_32419
182@ = Char.SetSayContext(37@, 65)
158@ = 1
goto @RIOT2_32538

:RIOT2_32419
if 
  152@ == 0
goto_if_false @RIOT2_32461
182@ = Char.SetSayContext(37@, 65)
152@ = 1
goto @RIOT2_32538

:RIOT2_32461
if 
  155@ == 0
goto_if_false @RIOT2_32503
182@ = Char.SetSayContext(37@, 65)
155@ = 1
goto @RIOT2_32538

:RIOT2_32503
if 
  161@ == 0
goto_if_false @RIOT2_32538
182@ = Char.SetSayContext(37@, 65)
161@ = 1

:RIOT2_32538
149@ = 2

:RIOT2_32545
return 

:RIOT2_32547
if 
  152@ == 1
goto_if_false @RIOT2_32989
  Object.Rotate($2708, 270.0, 360.0, False)
148@ = Math.RandomIntInRange(0, 2)
43@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1850.3, -1990.0, 12.6)
Char.SetInformRespectedFriends(43@, 8.0, 6)
Char.SetHeading(43@, 270.0)
Char.GiveWeapon(43@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(43@, 266@)
Char.SetKindaStayInSamePlace(43@, True)
102@ = Blip.AddForChar(43@)
Blip.ChangeScale(102@, 1)
Char.SetAccuracy(43@, 181@)
Char.AddArmor(43@, 100)
268@ = Sequence.Open()
Task.Pause(-1, 200)
Task.GoStraightToCoord(-1, 1852.9, -1990.0, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1853.9, -1984.1, 12.6, 7, -2)
Task.AchieveHeading(-1, 355.4)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(43@, 268@)
Sequence.Clear(268@)
148@ = Math.RandomIntInRange(0, 2)
44@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1851.7, -1989.9, 12.6)
Char.SetInformRespectedFriends(44@, 8.0, 6)
Char.SetHeading(44@, 270.7)
Char.GiveWeapon(44@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(44@, 266@)
Char.SetKindaStayInSamePlace(44@, True)
103@ = Blip.AddForChar(44@)
Blip.ChangeScale(103@, 1)
Char.SetAccuracy(44@, 181@)
268@ = Sequence.Open()
Task.Pause(-1, 400)
Task.GoStraightToCoord(-1, 1852.9, -1990.0, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1854.5, -1985.1, 12.6, 7, -2)
Task.AchieveHeading(-1, 186.2)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(44@, 268@)
Sequence.Clear(268@)

:RIOT2_32989
if 
  153@ == 1
goto_if_false @RIOT2_33431
  Object.Rotate($2709, 180.0, 360.0, False)
148@ = Math.RandomIntInRange(0, 2)
45@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1867.7, -1983.7, 12.6)
Char.SetInformRespectedFriends(45@, 8.0, 6)
Char.SetHeading(45@, 180.0)
Char.GiveWeapon(45@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(45@, 266@)
Char.SetKindaStayInSamePlace(45@, True)
104@ = Blip.AddForChar(45@)
Blip.ChangeScale(104@, 1)
Char.SetAccuracy(45@, 181@)
Char.AddArmor(45@, 100)
268@ = Sequence.Open()
Task.Pause(-1, 400)
Task.GoStraightToCoord(-1, 1867.7, -1986.8, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1854.5, -1999.6, 12.6, 7, -2)
Task.AchieveHeading(-1, 198.8)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(45@, 268@)
Sequence.Clear(268@)
148@ = Math.RandomIntInRange(0, 2)
46@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1867.7, -1984.7, 12.6)
Char.SetInformRespectedFriends(46@, 8.0, 6)
Char.SetHeading(46@, 180.0)
Char.GiveWeapon(46@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(46@, 266@)
Char.SetKindaStayInSamePlace(46@, True)
105@ = Blip.AddForChar(46@)
Blip.ChangeScale(105@, 1)
Char.SetAccuracy(46@, 181@)
268@ = Sequence.Open()
Task.Pause(-1, 200)
Task.GoStraightToCoord(-1, 1867.7, -1986.8, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1854.5, -1997.6, 12.6, 7, -2)
Task.AchieveHeading(-1, 315.1)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(46@, 268@)
Sequence.Clear(268@)

:RIOT2_33431
if 
  154@ == 1
goto_if_false @RIOT2_33873
  Object.Rotate($2710, 0.0, 360.0, False)
148@ = Math.RandomIntInRange(0, 2)
47@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1866.2, -1999.7, 12.6)
Char.SetInformRespectedFriends(47@, 8.0, 6)
Char.SetHeading(47@, 0.0)
Char.GiveWeapon(47@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(47@, 266@)
Char.SetKindaStayInSamePlace(47@, True)
106@ = Blip.AddForChar(47@)
Blip.ChangeScale(106@, 1)
Char.SetAccuracy(47@, 181@)
Char.AddArmor(47@, 100)
268@ = Sequence.Open()
Task.Pause(-1, 200)
Task.GoStraightToCoord(-1, 1866.2, -1997.0, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1859.5, -1996.2, 12.6, 7, -2)
Task.AchieveHeading(-1, 148.0)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(47@, 268@)
Sequence.Clear(268@)
148@ = Math.RandomIntInRange(0, 2)
48@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1865.9, -1998.7, 12.6)
Char.SetInformRespectedFriends(48@, 8.0, 6)
Char.SetHeading(48@, 0.0)
Char.GiveWeapon(48@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(48@, 266@)
Char.SetKindaStayInSamePlace(48@, True)
107@ = Blip.AddForChar(48@)
Blip.ChangeScale(107@, 1)
Char.SetAccuracy(48@, 181@)
268@ = Sequence.Open()
Task.Pause(-1, 400)
Task.GoStraightToCoord(-1, 1866.2, -1997.0, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1860.0, -1994.0, 12.6, 7, -2)
Task.AchieveHeading(-1, 280.2)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(48@, 268@)
Sequence.Clear(268@)

:RIOT2_33873
return 

:RIOT2_33875
if 
  155@ == 1
goto_if_false @RIOT2_34317
  Object.Rotate($2711, 180.0, 360.0, False)
148@ = Math.RandomIntInRange(0, 2)
49@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1900.1, -1983.5, 12.6)
Char.SetInformRespectedFriends(49@, 8.0, 6)
Char.SetHeading(49@, 180.0)
Char.GiveWeapon(49@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(49@, 266@)
Char.SetKindaStayInSamePlace(49@, True)
108@ = Blip.AddForChar(49@)
Blip.ChangeScale(108@, 1)
Char.SetAccuracy(49@, 181@)
Char.AddArmor(49@, 100)
268@ = Sequence.Open()
Task.Pause(-1, 400)
Task.GoStraightToCoord(-1, 1900.1, -1987.4, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1905.0, -1987.2, 12.6, 7, -2)
Task.AchieveHeading(-1, 267.4)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(49@, 268@)
Sequence.Clear(268@)
148@ = Math.RandomIntInRange(0, 2)
50@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1900.1, -1984.5, 12.6)
Char.SetInformRespectedFriends(50@, 8.0, 6)
Char.SetHeading(50@, 180.7)
Char.GiveWeapon(50@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(50@, 266@)
Char.SetKindaStayInSamePlace(50@, True)
109@ = Blip.AddForChar(50@)
Blip.ChangeScale(109@, 1)
Char.SetAccuracy(50@, 181@)
268@ = Sequence.Open()
Task.Pause(-1, 200)
Task.GoStraightToCoord(-1, 1900.1, -1987.4, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1904.4, -1988.1, 12.6, 7, -2)
Task.AchieveHeading(-1, 108.9)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(50@, 268@)
Sequence.Clear(268@)

:RIOT2_34317
if 
  156@ == 1
goto_if_false @RIOT2_34759
  Object.Rotate($2712, 90.0, 360.0, False)
148@ = Math.RandomIntInRange(0, 2)
51@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1915.8, -1993.5, 12.6)
Char.SetInformRespectedFriends(51@, 8.0, 6)
Char.SetHeading(51@, 90.0)
Char.GiveWeapon(51@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(51@, 266@)
Char.SetKindaStayInSamePlace(51@, True)
110@ = Blip.AddForChar(51@)
Blip.ChangeScale(110@, 1)
Char.SetAccuracy(51@, 181@)
Char.AddArmor(51@, 100)
268@ = Sequence.Open()
Task.Pause(-1, 400)
Task.GoStraightToCoord(-1, 1912.1, -1993.2, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1911.9, -1998.5, 12.6, 7, -2)
Task.AchieveHeading(-1, 198.9)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(51@, 268@)
Sequence.Clear(268@)
148@ = Math.RandomIntInRange(0, 2)
52@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1914.8, -1993.5, 12.6)
Char.SetInformRespectedFriends(52@, 8.0, 6)
Char.SetHeading(52@, 90.0)
Char.GiveWeapon(52@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(52@, 266@)
Char.SetKindaStayInSamePlace(52@, True)
111@ = Blip.AddForChar(52@)
Blip.ChangeScale(111@, 1)
Char.SetAccuracy(52@, 181@)
268@ = Sequence.Open()
Task.Pause(-1, 200)
Task.GoStraightToCoord(-1, 1912.1, -1993.2, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1911.0, -1997.1, 12.6, 7, -2)
Task.AchieveHeading(-1, 36.7)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(52@, 268@)
Sequence.Clear(268@)

:RIOT2_34759
if 
  157@ == 1
goto_if_false @RIOT2_35201
  Object.Rotate($2713, 0.0, 360.0, False)
148@ = Math.RandomIntInRange(0, 2)
53@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1898.3, -1999.9, 12.6)
Char.SetInformRespectedFriends(53@, 8.0, 6)
Char.SetHeading(53@, 0.0)
Char.GiveWeapon(53@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(53@, 266@)
Char.SetKindaStayInSamePlace(53@, True)
112@ = Blip.AddForChar(53@)
Blip.ChangeScale(112@, 1)
Char.SetAccuracy(53@, 181@)
Char.AddArmor(53@, 100)
268@ = Sequence.Open()
Task.Pause(-1, 400)
Task.GoStraightToCoord(-1, 1898.4, -1996.8, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1891.8, -1996.0, 12.6, 7, -2)
Task.AchieveHeading(-1, 71.9)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(53@, 268@)
Sequence.Clear(268@)
148@ = Math.RandomIntInRange(0, 2)
54@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1898.3, -1998.9, 12.6)
Char.SetInformRespectedFriends(54@, 8.0, 6)
Char.SetHeading(54@, 0.0)
Char.GiveWeapon(54@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(54@, 266@)
Char.SetKindaStayInSamePlace(54@, True)
113@ = Blip.AddForChar(54@)
Blip.ChangeScale(113@, 1)
Char.SetAccuracy(54@, 181@)
268@ = Sequence.Open()
Task.Pause(-1, 200)
Task.GoStraightToCoord(-1, 1898.4, -1996.8, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1892.4, -1995.1, 12.6, 7, -2)
Task.AchieveHeading(-1, 302.4)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(54@, 268@)
Sequence.Clear(268@)

:RIOT2_35201
return 

:RIOT2_35203
if 
  158@ == 1
goto_if_false @RIOT2_35645
  Object.Rotate($2717, 270.0, 360.0, False)
148@ = Math.RandomIntInRange(0, 2)
55@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1850.4, -2019.5, 12.6)
Char.SetInformRespectedFriends(55@, 8.0, 6)
Char.SetHeading(55@, 270.0)
Char.GiveWeapon(55@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(55@, 266@)
Char.SetKindaStayInSamePlace(55@, True)
114@ = Blip.AddForChar(55@)
Blip.ChangeScale(114@, 1)
Char.SetAccuracy(55@, 181@)
Char.AddArmor(55@, 100)
268@ = Sequence.Open()
Task.Pause(-1, 400)
Task.GoStraightToCoord(-1, 1854.1, -2019.4, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1855.3, -2010.4, 12.6, 7, -2)
Task.AchieveHeading(-1, 30.7)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(55@, 268@)
Sequence.Clear(268@)
148@ = Math.RandomIntInRange(0, 2)
56@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1851.7, -2019.5, 12.6)
Char.SetInformRespectedFriends(56@, 8.0, 6)
Char.SetHeading(56@, 270.7)
Char.GiveWeapon(56@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(56@, 266@)
Char.SetKindaStayInSamePlace(56@, True)
115@ = Blip.AddForChar(56@)
Blip.ChangeScale(115@, 1)
Char.SetAccuracy(56@, 181@)
268@ = Sequence.Open()
Task.Pause(-1, 200)
Task.GoStraightToCoord(-1, 1854.1, -2019.4, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1855.3, -2012.4, 12.6, 7, -2)
Task.AchieveHeading(-1, 195.4)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(56@, 268@)
Sequence.Clear(268@)

:RIOT2_35645
if 
  159@ == 1
goto_if_false @RIOT2_36087
  Object.Rotate($2718, 90.0, 360.0, False)
148@ = Math.RandomIntInRange(0, 2)
57@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1866.7, -2021.1, 12.6)
Char.SetInformRespectedFriends(57@, 8.0, 6)
Char.SetHeading(57@, 90.0)
Char.GiveWeapon(57@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(57@, 266@)
Char.SetKindaStayInSamePlace(57@, True)
116@ = Blip.AddForChar(57@)
Blip.ChangeScale(116@, 1)
Char.SetAccuracy(57@, 181@)
Char.AddArmor(57@, 100)
268@ = Sequence.Open()
Task.Pause(-1, 400)
Task.GoStraightToCoord(-1, 1863.3, -2021.2, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1862.9, -2011.7, 12.6, 7, -2)
Task.AchieveHeading(-1, 43.3)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(57@, 268@)
Sequence.Clear(268@)
148@ = Math.RandomIntInRange(0, 2)
58@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1865.5, -2021.3, 12.6)
Char.SetInformRespectedFriends(58@, 8.0, 6)
Char.SetHeading(58@, 90.0)
Char.GiveWeapon(58@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(58@, 266@)
Char.SetKindaStayInSamePlace(58@, True)
117@ = Blip.AddForChar(58@)
Blip.ChangeScale(117@, 1)
Char.SetAccuracy(58@, 181@)
268@ = Sequence.Open()
Task.Pause(-1, 200)
Task.GoStraightToCoord(-1, 1863.3, -2021.2, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1863.4, -2013.9, 12.6, 7, -2)
Task.AchieveHeading(-1, 154.0)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(58@, 268@)
Sequence.Clear(268@)

:RIOT2_36087
if 
  160@ == 1
goto_if_false @RIOT2_36529
  Object.Rotate($2719, 0.0, 360.0, False)
148@ = Math.RandomIntInRange(0, 2)
59@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1857.2, -2036.9, 12.6)
Char.SetInformRespectedFriends(59@, 8.0, 6)
Char.SetHeading(59@, 0.0)
Char.GiveWeapon(59@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(59@, 266@)
Char.SetKindaStayInSamePlace(59@, True)
118@ = Blip.AddForChar(59@)
Blip.ChangeScale(118@, 1)
Char.SetAccuracy(59@, 181@)
Char.AddArmor(59@, 100)
268@ = Sequence.Open()
Task.Pause(-1, 400)
Task.GoStraightToCoord(-1, 1857.2, -2032.9, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1854.5, -2026.5, 12.6, 7, -2)
Task.AchieveHeading(-1, 198.8)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(59@, 268@)
Sequence.Clear(268@)
148@ = Math.RandomIntInRange(0, 2)
60@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1857.1, -2035.8, 12.6)
Char.SetInformRespectedFriends(60@, 8.0, 6)
Char.SetHeading(60@, 0.0)
Char.GiveWeapon(60@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(60@, 266@)
Char.SetKindaStayInSamePlace(60@, True)
119@ = Blip.AddForChar(60@)
Blip.ChangeScale(119@, 1)
Char.SetAccuracy(60@, 181@)
268@ = Sequence.Open()
Task.Pause(-1, 200)
Task.GoStraightToCoord(-1, 1857.2, -2032.9, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1854.5, -2024.3, 12.6, 7, -2)
Task.AchieveHeading(-1, 346.3)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(60@, 268@)
Sequence.Clear(268@)

:RIOT2_36529
return 

:RIOT2_36531
if 
  161@ == 1
goto_if_false @RIOT2_36973
  Object.Rotate($2714, 270.0, 360.0, False)
148@ = Math.RandomIntInRange(0, 2)
61@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1899.3, -2019.5, 12.6)
Char.SetInformRespectedFriends(61@, 8.0, 6)
Char.SetHeading(61@, 270.0)
Char.GiveWeapon(61@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(61@, 266@)
Char.SetKindaStayInSamePlace(61@, True)
120@ = Blip.AddForChar(61@)
Blip.ChangeScale(120@, 1)
Char.SetAccuracy(61@, 181@)
Char.AddArmor(61@, 100)
268@ = Sequence.Open()
Task.Pause(-1, 400)
Task.GoStraightToCoord(-1, 1902.1, -2019.7, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1903.2, -2012.3, 12.6, 7, -2)
Task.AchieveHeading(-1, 330.8)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(61@, 268@)
Sequence.Clear(268@)
148@ = Math.RandomIntInRange(0, 2)
62@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1900.3, -2019.5, 12.6)
Char.SetInformRespectedFriends(62@, 8.0, 6)
Char.SetHeading(62@, 270.7)
Char.GiveWeapon(62@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(62@, 266@)
Char.SetKindaStayInSamePlace(62@, True)
121@ = Blip.AddForChar(62@)
Blip.ChangeScale(121@, 1)
Char.SetAccuracy(62@, 181@)
268@ = Sequence.Open()
Task.Pause(-1, 200)
Task.GoStraightToCoord(-1, 1902.1, -2019.7, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1903.2, -2013.6, 12.6, 7, -2)
Task.AchieveHeading(-1, 195.6)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(62@, 268@)
Sequence.Clear(268@)

:RIOT2_36973
if 
  162@ == 1
goto_if_false @RIOT2_37415
  Object.Rotate($2715, 90.0, 360.0, False)
148@ = Math.RandomIntInRange(0, 2)
63@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1915.8, -2021.5, 12.6)
Char.SetInformRespectedFriends(63@, 8.0, 6)
Char.SetHeading(63@, 90.0)
Char.GiveWeapon(63@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(63@, 266@)
Char.SetKindaStayInSamePlace(63@, True)
122@ = Blip.AddForChar(63@)
Blip.ChangeScale(122@, 1)
Char.SetAccuracy(63@, 181@)
Char.AddArmor(63@, 100)
268@ = Sequence.Open()
Task.Pause(-1, 400)
Task.GoStraightToCoord(-1, 1912.8, -2021.4, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1912.1, -2012.8, 12.6, 7, -2)
Task.AchieveHeading(-1, 21.8)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(63@, 268@)
Sequence.Clear(268@)
148@ = Math.RandomIntInRange(0, 2)
64@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1914.8, -2021.5, 12.6)
Char.SetInformRespectedFriends(64@, 8.0, 6)
Char.SetHeading(64@, 90.0)
Char.GiveWeapon(64@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(64@, 266@)
Char.SetKindaStayInSamePlace(64@, True)
123@ = Blip.AddForChar(64@)
Blip.ChangeScale(123@, 1)
Char.SetAccuracy(64@, 181@)
268@ = Sequence.Open()
Task.Pause(-1, 200)
Task.GoStraightToCoord(-1, 1912.8, -2021.4, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1911.7, -2014.3, 12.6, 7, -2)
Task.AchieveHeading(-1, 171.0)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(64@, 268@)
Sequence.Clear(268@)

:RIOT2_37415
if 
  163@ == 1
goto_if_false @RIOT2_37857
  Object.Rotate($2716, 0.0, 360.0, False)
148@ = Math.RandomIntInRange(0, 2)
65@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1906.1, -2036.9, 12.6)
Char.SetInformRespectedFriends(65@, 8.0, 6)
Char.SetHeading(65@, 0.0)
Char.GiveWeapon(65@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(65@, 266@)
Char.SetKindaStayInSamePlace(65@, True)
124@ = Blip.AddForChar(65@)
Blip.ChangeScale(124@, 1)
Char.SetAccuracy(65@, 181@)
Char.AddArmor(65@, 100)
268@ = Sequence.Open()
Task.Pause(-1, 400)
Task.GoStraightToCoord(-1, 1906.0, -2033.5, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1907.3, -2033.3, 12.6, 7, -2)
Task.AchieveHeading(-1, 32.4)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(65@, 268@)
Sequence.Clear(268@)
148@ = Math.RandomIntInRange(0, 2)
66@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1906.1, -2035.9, 12.6)
Char.SetInformRespectedFriends(66@, 8.0, 6)
Char.SetHeading(66@, 0.0)
Char.GiveWeapon(66@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(66@, 266@)
Char.SetKindaStayInSamePlace(66@, True)
125@ = Blip.AddForChar(66@)
Blip.ChangeScale(125@, 1)
Char.SetAccuracy(66@, 181@)
268@ = Sequence.Open()
Task.Pause(-1, 200)
Task.GoStraightToCoord(-1, 1906.0, -2033.5, 12.5, MoveState.Walk, -1)
Task.FollowPathNodesToCoord(-1, 1906.3, -2030.3, 12.6, 7, -2)
Task.AchieveHeading(-1, 315.5)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(66@, 268@)
Sequence.Clear(268@)

:RIOT2_37857
return 

:RIOT2_37859
if 
  167@ == 1
goto_if_false @RIOT2_37923
if 
  not Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @RIOT2_37923
Blip.Remove(89@)
89@ = Blip.AddForChar($cesar)
Blip.SetAsFriendly(89@, True)
167@ = 0

:RIOT2_37923
if 
  167@ == 0
goto_if_false @RIOT2_38065
if 
  Char.LocateAnyMeansChar3D($scplayer, $cesar, 8.0, 8.0, 8.0, False)
goto_if_false @RIOT2_38065
if 
  not Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @RIOT2_38008
Game.MakeRoomInPlayerGangForMissionPeds(1)
Group.SetMember($Players_Group, $cesar)

:RIOT2_38008
Blip.Remove(89@)
if 
  177@ > 2
goto_if_false @RIOT2_38058
89@ = Blip.AddForCoord(1774.9, -1974.9, 13.1)
Blip.SetAsFriendly(89@, False)

:RIOT2_38058
167@ = 1

:RIOT2_38065
return 

:RIOT2_38067
if 
  Char.IsDead(79@)
goto_if_false @RIOT2_38283
148@ = Math.RandomIntInRange(0, 2)
79@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1860.1, -2094.8, 14.0)
Char.SetHeading(79@, 187.0)
Char.GiveWeapon(79@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(79@, 266@)
268@ = Sequence.Open()
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.Pause(-1, 4000)
Task.Climb(-1, True)
Task.ShootAtCoord(-1, 1874.4, -2101.5, 14.8, 2000)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(79@, 268@)
Sequence.Clear(268@)
132@ = Blip.AddForChar(79@)
Blip.ChangeScale(132@, 1)
Char.SetAccuracy(79@, 181@)
Char.AddArmor(79@, 50)

:RIOT2_38283
if 
  Char.IsDead(80@)
goto_if_false @RIOT2_38532
148@ = Math.RandomIntInRange(0, 2)
80@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1857.3, -2094.8, 14.0)
Char.SetHeading(80@, 187.0)
Char.GiveWeapon(80@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(80@, 266@)
Task.PlayAnim(80@, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
268@ = Sequence.Open()
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.Pause(-1, 6000)
Task.Climb(-1, True)
Task.ShootAtCoord(-1, 1874.4, -2101.5, 14.8, 2000)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(80@, 268@)
Sequence.Clear(268@)
133@ = Blip.AddForChar(80@)
Blip.ChangeScale(133@, 1)
Char.SetAccuracy(80@, 181@)

:RIOT2_38532
if 
  Char.IsDead(81@)
goto_if_false @RIOT2_38788
148@ = Math.RandomIntInRange(0, 2)
81@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1854.3, -2094.8, 14.0)
Char.SetHeading(81@, 187.0)
Char.GiveWeapon(81@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(81@, 266@)
Task.PlayAnim(81@, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
268@ = Sequence.Open()
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.Pause(-1, 8000)
Task.Climb(-1, True)
Task.ShootAtCoord(-1, 1874.4, -2101.5, 14.8, 2000)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(81@, 268@)
Sequence.Clear(268@)
134@ = Blip.AddForChar(81@)
Blip.ChangeScale(134@, 1)
Char.SetAccuracy(81@, 181@)
Char.AddArmor(81@, 50)

:RIOT2_38788
if 
  Char.IsDead(82@)
goto_if_false @RIOT2_39015
148@ = Math.RandomIntInRange(0, 2)
82@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1859.1, -2108.8, 14.0)
Char.SetHeading(82@, 2.0)
Char.GiveWeapon(82@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(82@, 266@)
Task.PlayAnim(82@, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
268@ = Sequence.Open()
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.Pause(-1, 5000)
Task.Climb(-1, True)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(82@, 268@)
Sequence.Clear(268@)
135@ = Blip.AddForChar(82@)
Blip.ChangeScale(135@, 1)
Char.SetAccuracy(82@, 181@)

:RIOT2_39015
if 
  Char.IsDead(83@)
goto_if_false @RIOT2_39249
148@ = Math.RandomIntInRange(0, 2)
83@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1856.3, -2108.8, 14.0)
Char.SetHeading(83@, 2.0)
Char.GiveWeapon(83@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(83@, 266@)
Task.PlayAnim(83@, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
268@ = Sequence.Open()
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.Pause(-1, 7000)
Task.Climb(-1, True)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(83@, 268@)
Sequence.Clear(268@)
136@ = Blip.AddForChar(83@)
Blip.ChangeScale(136@, 1)
Char.SetAccuracy(83@, 181@)
Char.AddArmor(83@, 50)

:RIOT2_39249
if 
  Char.IsDead(84@)
goto_if_false @RIOT2_39476
148@ = Math.RandomIntInRange(0, 2)
84@ = Char.Create(PedType.Mission2, 146@(148@,2i), 1853.3, -2108.8, 14.0)
Char.SetHeading(84@, 2.0)
Char.GiveWeapon(84@, WeaponType.Tec9, 3000)
Char.SetDecisionMaker(84@, 266@)
Task.PlayAnim(84@, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
268@ = Sequence.Open()
Task.PlayAnim(-1, "WEAPON_CROUCH", "PED", 4.0, False, False, False, True, -1)
Task.Pause(-1, 9000)
Task.Climb(-1, True)
Task.SetCharDecisionMaker(-1, 265@)
Sequence.Close(268@)
Char.PerformSequence(84@, 268@)
Sequence.Clear(268@)
137@ = Blip.AddForChar(84@)
Blip.ChangeScale(137@, 1)
Char.SetAccuracy(84@, 181@)

:RIOT2_39476
return 

:RIOT2_39478
if or
  185@ == 1
  185@ == 4
  185@ == 6
  185@ == 8
  185@ == 9
goto_if_false @RIOT2_39578
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_39571
gosub @RIOT2_43025
gosub @RIOT2_43132
gosub @RIOT2_43286
goto @RIOT2_39578

:RIOT2_39571
185@ = 0

:RIOT2_39578
if or
  185@ == 10
  185@ == 11
  185@ == 12
  185@ == 13
goto_if_false @RIOT2_39671
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_39664
gosub @RIOT2_43025
gosub @RIOT2_43132
gosub @RIOT2_43286
goto @RIOT2_39671

:RIOT2_39664
185@ = 0

:RIOT2_39671
if or
  185@ == 5
  185@ == 7
goto_if_false @RIOT2_39804
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_39797
gosub @RIOT2_43025
gosub @RIOT2_43132
if 
  not Char.IsDead($cesar)
goto_if_false @RIOT2_39759
gosub @RIOT2_43286
goto @RIOT2_39790

:RIOT2_39759
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(189@(186@,22s))
256@ = 0
257@ = 0

:RIOT2_39790
goto @RIOT2_39804

:RIOT2_39797
185@ = 0

:RIOT2_39804
if 
  185@ == 9
goto_if_false @RIOT2_39930
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_39923
gosub @RIOT2_43025
gosub @RIOT2_43132
if 
  not Char.IsDead(35@)
goto_if_false @RIOT2_39885
gosub @RIOT2_43286
goto @RIOT2_39916

:RIOT2_39885
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(189@(186@,22s))
256@ = 0
257@ = 0

:RIOT2_39916
goto @RIOT2_39930

:RIOT2_39923
185@ = 0

:RIOT2_39930
if 
  142@ == 0
goto_if_false @RIOT2_40910
if 
  143@ > 2
goto_if_false @RIOT2_40910
if 
  Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @RIOT2_40336
if 
  Char.LocateAnyMeansChar3D($cesar, $scplayer, 10.0, 10.0, 8.0, False)
goto_if_false @RIOT2_40329
if and
  Char.IsOnFoot($scplayer)
  Char.IsOnFoot($cesar)
goto_if_false @RIOT2_40175
if or
  185@ == 2
  185@ == 3
goto_if_false @RIOT2_40175
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_40168
gosub @RIOT2_43025
gosub @RIOT2_43132
if 
  not Char.IsDead($cesar)
goto_if_false @RIOT2_40130
gosub @RIOT2_43286
goto @RIOT2_40161

:RIOT2_40130
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(189@(186@,22s))
256@ = 0
257@ = 0

:RIOT2_40161
goto @RIOT2_40175

:RIOT2_40168
185@ = 0

:RIOT2_40175
if and
  Char.IsInAnyCar($scplayer)
  Char.IsInAnyCar($cesar)
goto_if_false @RIOT2_40329
if or
  185@ == 2
  185@ == 3
goto_if_false @RIOT2_40329
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_40322
gosub @RIOT2_43025
gosub @RIOT2_43132
if 
  not Char.IsDead($cesar)
goto_if_false @RIOT2_40284
gosub @RIOT2_43286
goto @RIOT2_40315

:RIOT2_40284
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(189@(186@,22s))
256@ = 0
257@ = 0

:RIOT2_40315
goto @RIOT2_40329

:RIOT2_40322
185@ = 0

:RIOT2_40329
goto @RIOT2_40453

:RIOT2_40336
if 
  14 > 185@
goto_if_false @RIOT2_40453
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_40380
186@ += 1

:RIOT2_40380
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(189@(186@,22s))
Text.ClearPrints
set_lvar_int_to_lvar_int 260@ = 185@
set_lvar_int_to_lvar_int 261@ = 186@
185@ = 14
186@ = Math.RandomIntInRange(0, 4)
set_lvar_int_to_lvar_int 188@ = 186@
188@ += 1
gosub @RIOT2_40912

:RIOT2_40453
if 
  185@ == 14
goto_if_false @RIOT2_40644
if 
  not Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @RIOT2_40621
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_40591
gosub @RIOT2_43025
gosub @RIOT2_43132
if 
  not Char.IsDead($cesar)
goto_if_false @RIOT2_40553
gosub @RIOT2_43286
goto @RIOT2_40584

:RIOT2_40553
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(189@(186@,22s))
256@ = 0
257@ = 0

:RIOT2_40584
goto @RIOT2_40614

:RIOT2_40591
Text.PrintNow('R2_12', 7000, 1)
185@ = 15

:RIOT2_40614
goto @RIOT2_40644

:RIOT2_40621
Text.PrintNow('R2_12', 7000, 1)
185@ = 15

:RIOT2_40644
if 
  185@ == 15
goto_if_false @RIOT2_40697
if 
  Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @RIOT2_40697
185@ = 16
186@ = 0
Text.ClearPrints

:RIOT2_40697
if 
  185@ == 16
goto_if_false @RIOT2_40910
if 
  Char.IsGroupMember($cesar, $Players_Group)
goto_if_false @RIOT2_40855
TIMERB = 0
set_lvar_int_to_lvar_int 185@ = 260@
set_lvar_int_to_lvar_int 186@ = 261@
gosub @RIOT2_40912
if 
  260@ == 0
goto_if_false @RIOT2_40848
if 
  3 > 177@
goto_if_false @RIOT2_40825
Text.PrintNow('R2_01', 60000, 1)
goto @RIOT2_40841

:RIOT2_40825
Text.PrintNow('R2_13', 7000, 1)

:RIOT2_40841
TIMERB = 0

:RIOT2_40848
goto @RIOT2_40910

:RIOT2_40855
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Text.ClearThisPrint(189@(186@,22s))
185@ = 14
186@ = Math.RandomIntInRange(0, 4)
set_lvar_int_to_lvar_int 188@ = 186@
188@ += 1
gosub @RIOT2_40912

:RIOT2_40910
return 

:RIOT2_40912
if 
  185@ == 1
goto_if_false @RIOT2_41025
set_lvar_text_label 189@s = 'ROT2_AA'
set_lvar_text_label 191@s = 'ROT2_AB'
set_lvar_text_label 193@s = 'ROT2_AD'
set_lvar_text_label 195@s = 'ROT2_AE'
set_lvar_int_to_constant 233@ = 3868
set_lvar_int_to_constant 234@ = 3800
set_lvar_int_to_constant 235@ = 3869
set_lvar_int_to_constant 236@ = 3870
255@ = 4

:RIOT2_41025
if 
  185@ == 2
goto_if_false @RIOT2_41138
set_lvar_text_label 189@s = 'ROT2_BA'
set_lvar_text_label 191@s = 'ROT2_BB'
set_lvar_text_label 193@s = 'ROT2_BC'
set_lvar_text_label 195@s = 'ROT2_BD'
set_lvar_int_to_constant 233@ = 3801
set_lvar_int_to_constant 234@ = 3871
set_lvar_int_to_constant 235@ = 3802
set_lvar_int_to_constant 236@ = 3872
255@ = 4

:RIOT2_41138
if 
  185@ == 3
goto_if_false @RIOT2_41515
set_lvar_text_label 189@s = 'ROT2_CA'
set_lvar_text_label 191@s = 'ROT2_CB'
set_lvar_text_label 193@s = 'ROT2_CC'
set_lvar_text_label 195@s = 'ROT2_CD'
set_lvar_text_label 197@s = 'ROT2_CE'
set_lvar_text_label 199@s = 'ROT2_CF'
set_lvar_text_label 201@s = 'ROT2_CG'
set_lvar_text_label 203@s = 'ROT2_CH'
set_lvar_text_label 205@s = 'ROT2_CJ'
set_lvar_text_label 207@s = 'ROT2_CK'
set_lvar_text_label 209@s = 'ROT2_CL'
set_lvar_text_label 211@s = 'ROT2_CM'
set_lvar_text_label 213@s = 'ROT2_CN'
set_lvar_text_label 215@s = 'ROT2_CO'
set_lvar_text_label 217@s = 'ROT2_CP'
set_lvar_text_label 219@s = 'ROT2_CQ'
set_lvar_int_to_constant 233@ = 3803
set_lvar_int_to_constant 234@ = 3873
set_lvar_int_to_constant 235@ = 3804
set_lvar_int_to_constant 236@ = 3874
set_lvar_int_to_constant 237@ = 3875
set_lvar_int_to_constant 238@ = 3805
set_lvar_int_to_constant 239@ = 3806
set_lvar_int_to_constant 240@ = 3876
set_lvar_int_to_constant 241@ = 3877
set_lvar_int_to_constant 242@ = 3807
set_lvar_int_to_constant 243@ = 3878
set_lvar_int_to_constant 244@ = 3879
set_lvar_int_to_constant 245@ = 3808
set_lvar_int_to_constant 246@ = 3809
set_lvar_int_to_constant 247@ = 3880
set_lvar_int_to_constant 248@ = 3810
255@ = 16

:RIOT2_41515
if 
  185@ == 4
goto_if_false @RIOT2_41761
set_lvar_text_label 189@s = 'ROT2_DA'
set_lvar_text_label 191@s = 'ROT2_DB'
set_lvar_text_label 193@s = 'ROT2_DC'
set_lvar_text_label 195@s = 'ROT2_DD'
set_lvar_text_label 197@s = 'ROT2_DE'
set_lvar_text_label 199@s = 'ROT2_DF'
set_lvar_text_label 205@s = 'ROT2_DJ'
set_lvar_text_label 207@s = 'ROT2_DK'
set_lvar_text_label 209@s = 'ROT2_DL'
set_lvar_text_label 211@s = 'ROT2_DM'
set_lvar_int_to_constant 233@ = 3863
set_lvar_int_to_constant 234@ = 3886
set_lvar_int_to_constant 235@ = 3811
set_lvar_int_to_constant 236@ = 3887
set_lvar_int_to_constant 237@ = 3888
set_lvar_int_to_constant 238@ = 3812
set_lvar_int_to_constant 241@ = 3814
set_lvar_int_to_constant 242@ = 3815
set_lvar_int_to_constant 243@ = 3816
set_lvar_int_to_constant 244@ = 3864
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_41761
if 
  185@ == 5
goto_if_false @RIOT2_41985
set_lvar_text_label 189@s = 'ROT2_EA'
set_lvar_text_label 195@s = 'ROT2_ED'
set_lvar_text_label 197@s = 'ROT2_EE'
set_lvar_text_label 199@s = 'ROT2_EF'
set_lvar_text_label 201@s = 'ROT2_EG'
set_lvar_text_label 203@s = 'ROT2_EH'
set_lvar_text_label 205@s = 'ROT2_EJ'
set_lvar_text_label 211@s = 'ROT2_EM'
set_lvar_text_label 213@s = 'ROT2_EN'
set_lvar_int_to_constant 233@ = 3817
set_lvar_int_to_constant 236@ = 3820
set_lvar_int_to_constant 237@ = 3821
set_lvar_int_to_constant 238@ = 3822
set_lvar_int_to_constant 239@ = 3823
set_lvar_int_to_constant 240@ = 3824
set_lvar_int_to_constant 241@ = 3825
set_lvar_int_to_constant 244@ = 3828
set_lvar_int_to_constant 245@ = 3829
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_41985
if 
  185@ == 6
goto_if_false @RIOT2_42165
set_lvar_text_label 189@s = 'ROT2_FA'
set_lvar_text_label 191@s = 'ROT2_FB'
set_lvar_text_label 193@s = 'ROT2_FC'
set_lvar_text_label 195@s = 'ROT2_FD'
set_lvar_text_label 197@s = 'ROT2_FE'
set_lvar_text_label 199@s = 'ROT2_FG'
set_lvar_text_label 201@s = 'ROT2_FH'
set_lvar_int_to_constant 233@ = 3841
set_lvar_int_to_constant 234@ = 3842
set_lvar_int_to_constant 235@ = 3843
set_lvar_int_to_constant 236@ = 3844
set_lvar_int_to_constant 237@ = 3881
set_lvar_int_to_constant 238@ = 3845
set_lvar_int_to_constant 239@ = 3846
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42165
if 
  185@ == 7
goto_if_false @RIOT2_42212
set_lvar_text_label 189@s = 'ROT2_GA'
set_lvar_int_to_constant 233@ = 3854
255@ = 1

:RIOT2_42212
if 
  185@ == 8
goto_if_false @RIOT2_42325
set_lvar_text_label 189@s = 'ROT2_GB'
set_lvar_text_label 191@s = 'ROT2_GC'
set_lvar_text_label 193@s = 'ROT2_GD'
set_lvar_text_label 195@s = 'ROT2_EW'
set_lvar_int_to_constant 233@ = 3847
set_lvar_int_to_constant 234@ = 3855
set_lvar_int_to_constant 235@ = 3848
set_lvar_int_to_constant 236@ = 3838
255@ = 4

:RIOT2_42325
if 
  185@ == 9
goto_if_false @RIOT2_42417
set_lvar_text_label 189@s = 'ROT2_HA'
set_lvar_text_label 191@s = 'ROT2_HB'
set_lvar_text_label 193@s = 'ROT2_HC'
set_lvar_int_to_constant 233@ = 3865
set_lvar_int_to_constant 234@ = 3866
set_lvar_int_to_constant 235@ = 3867
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42417
if 
  185@ == 10
goto_if_false @RIOT2_42486
set_lvar_text_label 189@s = 'ROT2_JA'
set_lvar_text_label 191@s = 'ROT2_JB'
set_lvar_int_to_constant 233@ = 3849
set_lvar_int_to_constant 234@ = 3882
255@ = 2

:RIOT2_42486
if 
  185@ == 11
goto_if_false @RIOT2_42578
set_lvar_text_label 189@s = 'ROT2_KA'
set_lvar_text_label 191@s = 'ROT2_KB'
set_lvar_text_label 193@s = 'ROT2_KC'
set_lvar_int_to_constant 233@ = 3856
set_lvar_int_to_constant 234@ = 3857
set_lvar_int_to_constant 235@ = 3858
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42578
if 
  185@ == 12
goto_if_false @RIOT2_42670
set_lvar_text_label 189@s = 'ROT2_LA'
set_lvar_text_label 191@s = 'ROT2_LB'
set_lvar_text_label 193@s = 'ROT2_LC'
set_lvar_int_to_constant 233@ = 3859
set_lvar_int_to_constant 234@ = 3860
set_lvar_int_to_constant 235@ = 3861
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42670
if 
  185@ == 13
goto_if_false @RIOT2_42872
set_lvar_text_label 189@s = 'ROT2_MA'
set_lvar_text_label 191@s = 'ROT2_MB'
set_lvar_text_label 193@s = 'ROT2_MC'
set_lvar_text_label 195@s = 'ROT2_MD'
set_lvar_text_label 197@s = 'ROT2_ME'
set_lvar_text_label 199@s = 'ROT2_MF'
set_lvar_text_label 201@s = 'ROT2_MG'
set_lvar_text_label 203@s = 'ROT2_MH'
set_lvar_int_to_constant 233@ = 3883
set_lvar_int_to_constant 234@ = 3850
set_lvar_int_to_constant 235@ = 3862
set_lvar_int_to_constant 236@ = 3884
set_lvar_int_to_constant 237@ = 3851
set_lvar_int_to_constant 238@ = 3852
set_lvar_int_to_constant 239@ = 3885
set_lvar_int_to_constant 240@ = 3853
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42872
if 
  185@ == 14
goto_if_false @RIOT2_42994
set_lvar_text_label 189@s = 'CESX_BA'
set_lvar_text_label 191@s = 'CESX_BB'
set_lvar_text_label 193@s = 'CESX_BC'
set_lvar_text_label 195@s = 'CESX_BD'
set_lvar_int_to_constant 233@ = 42406
set_lvar_int_to_constant 234@ = 42407
set_lvar_int_to_constant 235@ = 42408
set_lvar_int_to_constant 236@ = 42409
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42994
set_lvar_int_to_lvar_int 258@ = 186@
256@ = 0
257@ = 0
259@ = 1
return 

:RIOT2_43025
if 
  is_int_lvar_greater_than_int_lvar 255@ > 258@
goto_if_false @RIOT2_43130
if 
  256@ == 0
goto_if_false @RIOT2_43087
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 233@(258@,22i))
258@ += 1
256@ = 1

:RIOT2_43087
if 
  257@ == 0
goto_if_false @RIOT2_43130
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 233@(258@,22i))
258@ += 1
257@ = 1

:RIOT2_43130
return 

:RIOT2_43132
if 
  259@ == 1
goto_if_false @RIOT2_43208
if 
  256@ == 1
goto_if_false @RIOT2_43208
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @RIOT2_43208
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(189@(186@,22s), 4500, 1)
256@ = 2

:RIOT2_43208
if 
  259@ == 2
goto_if_false @RIOT2_43284
if 
  257@ == 1
goto_if_false @RIOT2_43284
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @RIOT2_43284
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow(189@(186@,22s), 4500, 1)
257@ = 2

:RIOT2_43284
return 

:RIOT2_43286
if 
  256@ == 2
goto_if_false @RIOT2_43349
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @RIOT2_43349
Text.ClearThisPrint(189@(186@,22s))
186@ += 1
259@ = 2
256@ = 0

:RIOT2_43349
if 
  257@ == 2
goto_if_false @RIOT2_43412
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @RIOT2_43412
Text.ClearThisPrint(189@(186@,22s))
186@ += 1
259@ = 1
257@ = 0

:RIOT2_43412
return 

//-------------Mission 110---------------
// Originally: End Of The Line (1)

:FINALEA
gosub @FINALEA_36
if 
  has_deatharrest_been_executed 
goto_if_false @FINALEA_27
gosub @FINALEA_32473

:FINALEA_27
gosub @FINALEA_32585
terminate_this_script 

:FINALEA_36
$onmission = 1
Stat.RegisterMissionGiven
script_name 'FINALEA'
wait 0
Text.LoadMissionText('RIOT4')
Streaming.SetAreaVisible(1)
Cutscene.Load('RIOT_4A')

:FINALEA_86
if 
  not Cutscene.HasLoaded
goto_if_false @FINALEA_110
wait 0
goto @FINALEA_86

:FINALEA_110
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:FINALEA_119
if 
  not Cutscene.HasFinished
goto_if_false @FINALEA_143
wait 0
goto @FINALEA_119

:FINALEA_143
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:FINALEA_158
if 
  Camera.GetFadingStatus
goto_if_false @FINALEA_182
wait 0
goto @FINALEA_158

:FINALEA_182
Streaming.SetAreaVisible(0)
Streaming.RequestModel(601)
Streaming.RequestModel(596)
Streaming.RequestModel(285)
Streaming.RequestModel(102)
Streaming.RequestModel(492)
Streaming.LoadSpecialCharacter(1, 'SWEET')
Streaming.RemoveIpl("CARTER")
Streaming.RequestIpl("CARTER")
Streaming.LoadAllModelsNow

:FINALEA_245
if or
  not Streaming.HasModelLoaded(492)
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @FINALEA_276
wait 0
goto @FINALEA_245

:FINALEA_276
if or
  not Streaming.HasModelLoaded(601)
  not Streaming.HasModelLoaded(596)
  not Streaming.HasModelLoaded(285)
  not Streaming.HasModelLoaded(102)
goto_if_false @FINALEA_317
wait 0
goto @FINALEA_276

:FINALEA_317
Char.SetCoordinates($scplayer, 2514.745, -1673.838, 12.8)
Char.SetHeading($scplayer, 60.891)
47@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
49@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
48@ = DecisionMakerChar.Load(DecisionMakerType.Weak)
Game.SetMaxWantedLevel(0)
Game.SwitchEmergencyServices(False)
Object.Delete($2720)
$2720 = Object.CreateNoOffset(#IMY_SHASH_WALL, 2522.008, -1272.93, 35.609)
Object.SetHealth($2720, 100)
Object.SetCollisionDamageEffect($2720, False)
Object.FreezePosition($2720, True)
Object.SetCollisionDamageEffect($2720, True)
Car.CustomPlateForNextCar(492, "GROVE4L_")
$sweet_car = Car.Create(492, 2507.823, -1671.88, 12.1678)
Car.SetHeading($sweet_car, 347.15)
Car.SetOnlyDamagedByPlayer($sweet_car, True)
128@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(128@, True)
Car.ChangeColor($sweet_car, 59, 34)
Car.SetHealth($sweet_car, 2000)
Car.SetCanBurstTires($sweet_car, False)
Car.SetCanBeVisiblyDamaged($sweet_car, False)
$sweet = Char.Create(PedType.Special, 290, 2511.169, -1672.747, 12.493)
Char.SetGetOutUpsideDownCar($sweet, False)
Char.SetHeading($sweet, 68.365)
Char.SetNeverTargeted($sweet, True)
Char.SetOnlyDamagedByPlayer($sweet, True)
Task.EnterCarAsPassenger($sweet, $sweet_car, 5000, 0)
Char.SetCantBeDraggedOut($sweet, True)
Char.SetStayInCarWhenJacked($sweet, True)
Char.SetDecisionMaker($sweet, 47@)
Char.SetNeverTargeted($sweet, True)
Char.SetSuffersCriticalHits($sweet, False)
102@ = Particle.Create("WALLBUST", 2521.86, -1272.66, 35.04, 1)
Clock.SetTimeOfDay(21, 30)
Game.SetMaxFireGenerations(0)
Hud.SwitchWidescreen(False)
Streaming.LoadScene(2511.75, -1672.15, 14.0)
Camera.DoFade(1000, Fade.In)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Text.PrintNow('RM4_1', 7000, 1)
Player.SetGroupRecruitment($player1, False)
41@ = 2505.215
41@ -= 2508.17
42@ = -1261.351
42@ -= -1267.878
43@ = 43.8341
43@ -= 48.0744
44@ = 2506.003
44@ -= 2508.351
45@ = -1261.802
45@ -= -1268.857
46@ = 43.4146
46@ -= 47.9824
35@ = 2508.17
36@ = -1267.878
37@ = 48.0744
38@ = 2508.351
39@ = -1268.857
40@ = 47.9824
34@ = 160.0
div_float_lvar_by_float_lvar 41@ /= 34@
div_float_lvar_by_float_lvar 42@ /= 34@
div_float_lvar_by_float_lvar 43@ /= 34@
div_float_lvar_by_float_lvar 44@ /= 34@
div_float_lvar_by_float_lvar 45@ /= 34@
div_float_lvar_by_float_lvar 46@ /= 34@
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
151@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
156@ = 0
157@ = 0
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
183@ = 0
184@ = 0
185@ = 0
186@ = 0
187@ = 0
188@ = 0
189@ = 0
190@ = 0
191@ = 0
192@ = 0
193@ = 0
194@ = 0
195@ = 0
196@ = 0
197@ = 0
198@ = 0
199@ = 0
200@ = 0
201@ = 0
World.CreateScriptRoadblock(2336.63, -1548.68, 23.99, 2347.01, -1548.37, 23.68, 1)
World.CreateScriptRoadblock(2506.76, -1432.29, 28.13, 2516.63, -1430.51, 27.82, 1)
World.CreateScriptRoadblock(2462.0, -1449.0, 24.0, 2463.0, -1439.0, 24.0, 1)

:FINALEA_1473
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @FINALEA_1499
goto @FINALEA_32554

:FINALEA_1499
if 
  147@ == 0
goto_if_false @FINALEA_7209
if 
  146@ == 0
goto_if_false @FINALEA_1641
if 
  not Car.IsDead($sweet_car)
goto_if_false @FINALEA_1641
if 
  not Char.IsDead($sweet)
goto_if_false @FINALEA_1641
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @FINALEA_1641
Blip.Remove(128@)
128@ = Blip.AddForCoord(2507.82, -1309.226, 33.6726)
Text.PrintNow('RM4_2', 5000, 1)
TIMERB = 0
146@ = 1

:FINALEA_1641
if 
  146@ == 1
goto_if_false @FINALEA_2452
gosub @FINALEA_31459
if 
  193@ == 0
goto_if_false @FINALEA_1750
if 
  194@ == 0
goto_if_false @FINALEA_1750
if 
  TIMERB > 5500
goto_if_false @FINALEA_1750
set_lvar_int_to_constant 125@ = 14878
set_lvar_text_label 126@s = 'ROT4_AA'
gosub @FINALEA_31417

:FINALEA_1750
if 
  193@ == 1
goto_if_false @FINALEA_1815
if 
  194@ == 0
goto_if_false @FINALEA_1815
set_lvar_int_to_constant 125@ = 14800
set_lvar_text_label 126@s = 'ROT4_AB'
gosub @FINALEA_31417

:FINALEA_1815
if 
  193@ == 2
goto_if_false @FINALEA_1887
if 
  194@ == 0
goto_if_false @FINALEA_1887
set_lvar_int_to_constant 125@ = 14879
set_lvar_text_label 126@s = 'ROT4_AC'
gosub @FINALEA_31417
TIMERB = 0

:FINALEA_1887
if 
  193@ == 3
goto_if_false @FINALEA_1971
if 
  194@ == 0
goto_if_false @FINALEA_1971
if 
  TIMERB > 3000
goto_if_false @FINALEA_1971
set_lvar_int_to_constant 125@ = 14880
set_lvar_text_label 126@s = 'ROT4_BA'
gosub @FINALEA_31417

:FINALEA_1971
if 
  193@ == 4
goto_if_false @FINALEA_2043
if 
  194@ == 0
goto_if_false @FINALEA_2043
set_lvar_int_to_constant 125@ = 14801
set_lvar_text_label 126@s = 'ROT4_BB'
gosub @FINALEA_31417
TIMERA = 0

:FINALEA_2043
if 
  193@ == 5
goto_if_false @FINALEA_2127
if 
  194@ == 0
goto_if_false @FINALEA_2127
if 
  TIMERB > 12000
goto_if_false @FINALEA_2127
set_lvar_int_to_constant 125@ = 14802
set_lvar_text_label 126@s = 'ROT4_BC'
gosub @FINALEA_31417

:FINALEA_2127
if 
  193@ == 6
goto_if_false @FINALEA_2192
if 
  194@ == 0
goto_if_false @FINALEA_2192
set_lvar_int_to_constant 125@ = 14803
set_lvar_text_label 126@s = 'ROT4_BE'
gosub @FINALEA_31417

:FINALEA_2192
if 
  193@ == 7
goto_if_false @FINALEA_2257
if 
  194@ == 0
goto_if_false @FINALEA_2257
set_lvar_int_to_constant 125@ = 14882
set_lvar_text_label 126@s = 'ROT4_BF'
gosub @FINALEA_31417

:FINALEA_2257
if 
  193@ == 8
goto_if_false @FINALEA_2322
if 
  194@ == 0
goto_if_false @FINALEA_2322
set_lvar_int_to_constant 125@ = 14804
set_lvar_text_label 126@s = 'ROT4_BG'
gosub @FINALEA_31417

:FINALEA_2322
if 
  193@ == 9
goto_if_false @FINALEA_2387
if 
  194@ == 0
goto_if_false @FINALEA_2387
set_lvar_int_to_constant 125@ = 14883
set_lvar_text_label 126@s = 'ROT4_BH'
gosub @FINALEA_31417

:FINALEA_2387
if 
  193@ == 10
goto_if_false @FINALEA_2452
if 
  194@ == 0
goto_if_false @FINALEA_2452
set_lvar_int_to_constant 125@ = 14805
set_lvar_text_label 126@s = 'ROT4_BJ'
gosub @FINALEA_31417

:FINALEA_2452
if 
  146@ == 1
goto_if_false @FINALEA_4931
if 
  not Char.IsDead($sweet)
goto_if_false @FINALEA_4931
if 
  not Car.IsDead($sweet_car)
goto_if_false @FINALEA_4931
if 
  Car.Locate3D($sweet_car, 2507.82, -1309.226, 33.85, 4.0, 4.0, 4.0, True)
goto_if_false @FINALEA_4931
if 
  Char.IsSittingInCar($sweet, $sweet_car)
goto_if_false @FINALEA_4931
if 
  Char.IsSittingInCar($scplayer, $sweet_car)
goto_if_false @FINALEA_4931
Player.SetControl($player1, False)
$car = Char.StoreCarIsInNoSave($scplayer)
Task.CarTempAction($scplayer, $car, TempAction.HandbrakeStraight, 2000000)
Blip.Remove(128@)
World.ClearAllScriptRoadblocks
Char.SetProofs($sweet, True, True, True, True, True)
Car.SetProofs($sweet_car, True, True, True, True, True)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 27800)
Audio.LoadMissionAudio(MissionAudioSlot.Slot2, 14806)
Streaming.LoadAllModelsNow
Camera.SetFadingColor(0, 0, 0)
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Camera.DoFade(500, Fade.Out)

:FINALEA_2692
if 
  Camera.GetFadingStatus
goto_if_false @FINALEA_2716
wait 0
goto @FINALEA_2692

:FINALEA_2716
if or
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot2)
goto_if_false @FINALEA_2746
wait 0
goto @FINALEA_2716

:FINALEA_2746
if 
  not Car.IsDead($sweet_car)
goto_if_false @FINALEA_2799
Car.SetCoordinates($sweet_car, 2536.709, -1278.253, 52.57)
Car.SetHeading($sweet_car, 359.954)
Car.LockDoors($sweet_car, CarLock.Locked)

:FINALEA_2799
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
World.ClearArea(2536.709, -1278.253, 100.0, 100.0, True)
Cutscene.Load('RIOT_4B')

:FINALEA_2848
if 
  not Cutscene.HasLoaded
goto_if_false @FINALEA_2872
wait 0
goto @FINALEA_2848

:FINALEA_2872
World.ClearArea(2536.709, -1278.253, 100.0, 100.0, True)
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:FINALEA_2905
if 
  not Cutscene.HasFinished
goto_if_false @FINALEA_2929
wait 0
goto @FINALEA_2905

:FINALEA_2929
Cutscene.Clear
Camera.DoFade(0, Fade.Out)

:FINALEA_2937
if 
  Camera.GetFadingStatus
goto_if_false @FINALEA_2961
wait 0
goto @FINALEA_2937

:FINALEA_2961
Player.SetControl($player1, False)
World.ClearArea(2372.01, -1306.609, 300.0, 300.0, False)
if 
  not Car.IsDead($sweet_car)
goto_if_false @FINALEA_3045
Car.SetCoordinates($sweet_car, 2507.82, -1309.226, 33.2726)
Car.SetHeading($sweet_car, 1.7082)
Car.LockDoors($sweet_car, CarLock.Locked)

:FINALEA_3045
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @FINALEA_3088
Char.WarpFromCarToCoord($scplayer, 2509.781, -1308.965, 34.7125)
goto @FINALEA_3108

:FINALEA_3088
Char.SetCoordinates($scplayer, 2509.781, -1308.965, 34.7125)

:FINALEA_3108
Char.SetHeading($scplayer, 352.414)
World.ClearArea(2372.01, -1306.609, 300.0, 300.0, False)
wait 2000
Camera.SetFixedPosition(35@, 36@, 37@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(38@, 39@, 40@, SwitchType.JumpCut)
Streaming.RequestModel(481)
Streaming.RequestModel(353)
Streaming.RequestModel(355)
Streaming.RequestModel(63)
Streaming.RequestAnimation("CRACK")
Path.SwitchRoadsOff(2356.4, -1233.16, 30.6, 2382.19, -1329.65, 21.49)
Path.SwitchPedRoadsOff(2356.4, -1233.16, 30.6, 2382.19, -1329.65, 21.49)
Path.SwitchRoadsOff(2522.74, -1260.01, 30.28, 2499.0, -1322.01, 31.76)
Path.SwitchPedRoadsOff(2522.74, -1260.01, 30.28, 2499.0, -1322.01, 31.76)
Path.SwitchRoadsOff(2431.9, -1268.06, 30.6, 2474.9, -1240.38, 20.84)
Path.SwitchPedRoadsOff(2431.9, -1268.06, 30.6, 2474.9, -1240.38, 20.84)
World.ClearArea(2356.4, -1233.16, 300.0, 300.0, True)
Streaming.LoadAllModelsNow

:FINALEA_3432
if or
  not Streaming.HasModelLoaded(481)
  not Streaming.HasModelLoaded(353)
  not Streaming.HasModelLoaded(355)
  not Streaming.HasAnimationLoaded("CRACK")
  not Streaming.HasModelLoaded(63)
goto_if_false @FINALEA_3482
wait 0
goto @FINALEA_3432

:FINALEA_3482
50@ = Group.Create(DefaultTaskAllocator.StandStill)
51@ = Group.Create(DefaultTaskAllocator.StandStill)
52@ = Group.Create(DefaultTaskAllocator.StandStill)
54@ = Car.Create(596, 2373.803, -1314.172, 22.8398)
Car.SetHeading(54@, 292.1921)
Car.SetOnlyDamagedByPlayer(54@, True)
Car.SetHealth(54@, 500)
55@ = Car.Create(596, 2368.04, -1315.706, 22.8459)
Car.SetHeading(55@, 96.2549)
Car.SetOnlyDamagedByPlayer(55@, True)
Car.LockDoors(55@, CarLock.Unlocked)
57@ = Car.Create(601, 2374.36, -1323.792, 22.8389)
Car.SetHeading(57@, 3.7561)
Car.SetHealth(57@, 3000)
Car.SetHeavy(57@, True)
Car.SetProofs(57@, True, True, False, False, False)
Car.SetOnlyDamagedByPlayer(57@, True)
Car.LockDoors(57@, CarLock.Unlocked)
Car.SetCanBurstTires(57@, False)
58@ = Car.Create(492, 2365.612, -1294.829, 22.8433)
Car.SetHeading(58@, 97.3729)
Car.SetHealth(58@, 500)
Car.SetOnlyDamagedByPlayer(58@, True)
59@ = Car.Create(492, 2372.431, -1295.272, 22.8418)
Car.SetHeading(59@, 75.2267)
Car.SetOnlyDamagedByPlayer(59@, True)
63@ = Car.Create(481, 2507.201, -1300.841, 33.6726)
Car.SetHeading(63@, 1.6501)
64@ = Char.Create(PedType.Mission2, 285, 2366.342, -1317.377, 22.8438)
Char.SetHeading(64@, 3.9226)
Char.SetDecisionMaker(64@, 49@)
Char.SetRelationship(64@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(64@, RelationshipType.Hate, PedType.Mission1)
Char.SetOnlyDamagedByPlayer(64@, True)
Char.GiveWeapon(64@, WeaponType.Mp5, 99999)
Task.StayInSamePlace(64@, True)
Group.SetLeader(50@, 64@)
65@ = Char.Create(PedType.Mission2, 285, 2375.848, -1315.325, 22.8368)
Char.SetHeading(65@, 4.8178)
Char.SetDecisionMaker(65@, 49@)
Char.SetRelationship(65@, RelationshipType.Hate, PedType.Mission1)
Char.SetRelationship(65@, RelationshipType.Hate, PedType.Player1)
Char.SetOnlyDamagedByPlayer(65@, True)
Char.GiveWeapon(65@, WeaponType.Mp5, 99999)
Task.StayInSamePlace(65@, True)
Group.SetMember(50@, 65@)
66@ = Char.Create(PedType.Mission2, 285, 2371.676, -1316.806, 22.8429)
Char.SetHeading(66@, 0.5529)
Char.SetDecisionMaker(66@, 49@)
Char.SetRelationship(66@, RelationshipType.Hate, PedType.Mission1)
Char.SetRelationship(66@, RelationshipType.Hate, PedType.Player1)
Char.SetOnlyDamagedByPlayer(66@, True)
Char.GiveWeapon(66@, WeaponType.Mp5, 99999)
Task.StayInSamePlace(66@, True)
Group.SetMember(50@, 66@)
67@ = Char.Create(PedType.Mission2, 285, 22370.36, -1319.492, 22.8515)
Char.SetHeading(67@, 177.5538)
Char.SetDecisionMaker(67@, 49@)
Char.SetRelationship(67@, RelationshipType.Hate, PedType.Mission1)
Char.SetRelationship(67@, RelationshipType.Hate, PedType.Player1)
Char.SetOnlyDamagedByPlayer(67@, True)
Char.GiveWeapon(67@, WeaponType.Mp5, 99999)
Task.StayInSamePlace(67@, True)
Group.SetMember(50@, 67@)
68@ = Char.Create(PedType.Mission2, 285, 2376.44, -1321.625, 22.9844)
Char.SetHeading(68@, 177.5538)
Char.GiveWeapon(68@, WeaponType.Mp5, 99999)
Char.SetDecisionMaker(68@, 49@)
Char.SetRelationship(68@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(68@, RelationshipType.Hate, PedType.Mission1)
Char.SetOnlyDamagedByPlayer(68@, True)
Char.GiveWeapon(68@, WeaponType.Mp5, 99999)
Task.StayInSamePlace(68@, True)
Group.SetMember(50@, 68@)
71@ = Char.Create(PedType.Mission1, 102, 2364.432, -1294.013, 22.9882)
Char.SetHeading(71@, 177.5538)
Char.SetDecisionMaker(71@, 49@)
Char.SetRelationship(71@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(71@, RelationshipType.Hate, PedType.Mission2)
Char.SetOnlyDamagedByPlayer(71@, True)
Char.GiveWeapon(71@, WeaponType.Ak47, 99999)
Task.StayInSamePlace(71@, True)
Group.SetLeader(51@, 71@)
72@ = Char.Create(PedType.Mission1, 102, 2369.527, -1292.228, 22.8515)
Char.SetHeading(72@, 177.5538)
Char.SetDecisionMaker(72@, 49@)
Char.SetRelationship(72@, RelationshipType.Hate, PedType.Mission2)
Char.SetRelationship(72@, RelationshipType.Hate, PedType.Player1)
Char.SetOnlyDamagedByPlayer(72@, True)
Char.GiveWeapon(72@, WeaponType.Mp5, 99999)
Task.StayInSamePlace(72@, True)
Group.SetMember(51@, 72@)
73@ = Char.Create(PedType.Mission1, 102, 2371.168, -1293.37, 22.8436)
Char.SetHeading(73@, 177.5538)
Char.SetDecisionMaker(73@, 49@)
Char.SetRelationship(73@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(73@, RelationshipType.Hate, PedType.Mission2)
Char.SetOnlyDamagedByPlayer(73@, True)
Char.GiveWeapon(73@, WeaponType.Ak47, 99999)
Task.StayInSamePlace(73@, True)
Group.SetMember(51@, 73@)
74@ = Char.Create(PedType.Mission1, 102, 2374.987, -1294.079, 22.838)
Char.SetHeading(74@, 177.5538)
Char.SetDecisionMaker(74@, 49@)
Char.SetRelationship(74@, RelationshipType.Hate, PedType.Mission2)
Char.SetRelationship(74@, RelationshipType.Hate, PedType.Player1)
Char.SetOnlyDamagedByPlayer(74@, True)
Char.GiveWeapon(74@, WeaponType.Mp5, 99999)
Task.StayInSamePlace(74@, True)
Group.SetMember(51@, 74@)
75@ = Char.Create(PedType.Mission1, 102, 2521.51, -1270.259, 33.9206)
Char.SetHeading(75@, 100.2518)
Char.SetDecisionMaker(75@, 49@)
Char.SetRelationship(75@, RelationshipType.Hate, PedType.Player1)
Char.SetOnlyDamagedByPlayer(75@, True)
Char.GiveWeapon(75@, WeaponType.Mp5, 99999)
Task.StayInSamePlace(75@, True)
Group.SetLeader(52@, 75@)
76@ = Char.Create(PedType.Mission1, 102, 2521.72, -1274.981, 33.8748)
Char.SetHeading(76@, 98.0309)
Char.SetDecisionMaker(76@, 49@)
Char.SetRelationship(76@, RelationshipType.Hate, PedType.Player1)
Char.SetOnlyDamagedByPlayer(76@, True)
Char.GiveWeapon(76@, WeaponType.Mp5, 99999)
Task.StayInSamePlace(76@, True)
Group.SetMember(52@, 76@)
146@ = 2
Hud.SwitchWidescreen(True)
Camera.DoFade(1000, Fade.In)

:FINALEA_4854
if 
  Camera.GetFadingStatus
goto_if_false @FINALEA_4878
wait 0
goto @FINALEA_4854

:FINALEA_4878
Text.PrintNow('RM4_4', 5000, 1)
Text.Print('RM4_14', 5000, 1)
TIMERA = 0
151@ = 0
skip_cutscene_start_internal @FINALEA_5363

:FINALEA_4931
if 
  146@ == 2
goto_if_false @FINALEA_5072
add_float_lvar_to_float_lvar 35@ += 41@
add_float_lvar_to_float_lvar 36@ += 42@
add_float_lvar_to_float_lvar 37@ += 43@
Camera.SetFixedPosition(35@, 36@, 37@, 0.0, 0.0, 0.0)
add_float_lvar_to_float_lvar 38@ += 44@
add_float_lvar_to_float_lvar 39@ += 45@
add_float_lvar_to_float_lvar 40@ += 46@
Camera.PointAtPoint(38@, 39@, 40@, SwitchType.JumpCut)
if or
  2505.215 >= 35@
  TIMERA > 8999
goto_if_false @FINALEA_5072
146@ = 3

:FINALEA_5072
if 
  146@ == 3
goto_if_false @FINALEA_5116
if 
  TIMERA > 8999
goto_if_false @FINALEA_5116
146@ = 4

:FINALEA_5116
if 
  146@ == 4
goto_if_false @FINALEA_5217
Camera.SetFixedPosition(2370.902, -1328.815, 23.0473, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2371.46, -1328.005, 23.2292, SwitchType.JumpCut)
TIMERA = 0
Text.ClearPrints
Text.PrintNow('RM4_5', 8000, 1)
146@ = 5

:FINALEA_5217
if 
  146@ == 5
goto_if_false @FINALEA_5319
if 
  TIMERA > 3999
goto_if_false @FINALEA_5319
Camera.SetFixedPosition(2372.949, -1326.914, 24.7902, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2372.874, -1325.92, 24.701, SwitchType.JumpCut)
TIMERA = 0
146@ = 6

:FINALEA_5319
if 
  146@ == 6
goto_if_false @FINALEA_5643
if 
  TIMERA > 3999
goto_if_false @FINALEA_5643
151@ = 1

:FINALEA_5363
skip_cutscene_end 
if 
  151@ == 0
goto_if_false @FINALEA_5455
Camera.DoFade(500, Fade.Out)

:FINALEA_5390
if 
  Camera.GetFadingStatus
goto_if_false @FINALEA_5414
wait 0
goto @FINALEA_5390

:FINALEA_5414
Text.ClearPrints
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Camera.DoFade(500, Fade.In)

:FINALEA_5431
if 
  Camera.GetFadingStatus
goto_if_false @FINALEA_5455
wait 0
goto @FINALEA_5431

:FINALEA_5455
if 
  not Car.IsDead(57@)
goto_if_false @FINALEA_5509
129@ = Blip.AddForCar(57@)
Blip.SetAsFriendly(129@, True)
Text.PrintNow('RM4_6', 7000, 1)
152@ = 1

:FINALEA_5509
if 
  not Car.IsDead($sweet_car)
goto_if_false @FINALEA_5532
Car.FreezePosition($sweet_car, True)

:FINALEA_5532
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
World.CreateScriptRoadblock(2456.468, -1262.2, 23.87, 2455.625, -1250.55, 23.89, 1)
World.CreateScriptRoadblock(2375.778, -1358.43, 23.878, 2365.675, -1358.34, 24.036, 1)
World.SetPedDensityMultiplier(0.5)
146@ = 7

:FINALEA_5643
if 
  146@ == 7
goto_if_false @FINALEA_6450
if 
  154@ == 0
goto_if_false @FINALEA_5751
if 
  not Char.IsDead(68@)
goto_if_false @FINALEA_5751
if 
  Char.HasSpottedChar(68@, $scplayer)
goto_if_false @FINALEA_5751
set_lvar_int_to_lvar_int 109@ = 68@
set_lvar_int_to_var_int 114@ = $scplayer
Char.SetOnlyDamagedByPlayer(68@, False)
gosub @FINALEA_31661
154@ = 1

:FINALEA_5751
if 
  153@ == 0
goto_if_false @FINALEA_6143
if 
  not Car.IsDead(57@)
goto_if_false @FINALEA_6143
if 
  Char.IsInCar($scplayer, 57@)
goto_if_false @FINALEA_6143
if 
  not Char.IsDead(64@)
goto_if_false @FINALEA_5850
set_lvar_int_to_lvar_int 109@ = 64@
set_lvar_int_to_var_int 114@ = $scplayer
Char.SetOnlyDamagedByPlayer(64@, False)
gosub @FINALEA_31661

:FINALEA_5850
if 
  not Char.IsDead(65@)
goto_if_false @FINALEA_5896
set_lvar_int_to_lvar_int 109@ = 65@
set_lvar_int_to_var_int 114@ = $scplayer
Char.SetOnlyDamagedByPlayer(65@, False)
gosub @FINALEA_31661

:FINALEA_5896
if 
  not Char.IsDead(66@)
goto_if_false @FINALEA_5942
set_lvar_int_to_lvar_int 109@ = 66@
set_lvar_int_to_var_int 114@ = $scplayer
Char.SetOnlyDamagedByPlayer(66@, False)
gosub @FINALEA_31661

:FINALEA_5942
if 
  not Char.IsDead(67@)
goto_if_false @FINALEA_5988
set_lvar_int_to_lvar_int 109@ = 67@
set_lvar_int_to_var_int 114@ = $scplayer
Char.SetOnlyDamagedByPlayer(67@, False)
gosub @FINALEA_31661

:FINALEA_5988
if 
  not Char.IsDead(68@)
goto_if_false @FINALEA_6034
set_lvar_int_to_lvar_int 109@ = 68@
set_lvar_int_to_var_int 114@ = $scplayer
Char.SetOnlyDamagedByPlayer(68@, False)
gosub @FINALEA_31661

:FINALEA_6034
if 
  not Char.IsDead(71@)
goto_if_false @FINALEA_6057
Char.SetOnlyDamagedByPlayer(71@, False)

:FINALEA_6057
if 
  not Char.IsDead(72@)
goto_if_false @FINALEA_6080
Char.SetOnlyDamagedByPlayer(72@, False)

:FINALEA_6080
if 
  not Char.IsDead(73@)
goto_if_false @FINALEA_6103
Char.SetOnlyDamagedByPlayer(73@, False)

:FINALEA_6103
if 
  not Char.IsDead(74@)
goto_if_false @FINALEA_6126
Char.SetOnlyDamagedByPlayer(74@, False)

:FINALEA_6126
Streaming.MarkModelAsNoLongerNeeded(481)
Car.MarkAsNoLongerNeeded(63@)
153@ = 1

:FINALEA_6143
if 
  153@ == 1
goto_if_false @FINALEA_6332
if 
  not Car.IsDead(57@)
goto_if_false @FINALEA_6332
if 
  Char.LocateInCar2D($scplayer, 2521.91, -1273.05, 30.0, 30.0, False)
goto_if_false @FINALEA_6332
if 
  Char.IsInCar($scplayer, 57@)
goto_if_false @FINALEA_6332
Text.PrintNow('RM4_15', 5000, 1)
Streaming.MarkModelAsNoLongerNeeded(596)
Streaming.MarkModelAsNoLongerNeeded(285)
Char.MarkAsNoLongerNeeded(64@)
Char.MarkAsNoLongerNeeded(65@)
Char.MarkAsNoLongerNeeded(66@)
Char.MarkAsNoLongerNeeded(67@)
Char.MarkAsNoLongerNeeded(68@)
Char.MarkAsNoLongerNeeded(71@)
Char.MarkAsNoLongerNeeded(72@)
Char.MarkAsNoLongerNeeded(73@)
Char.MarkAsNoLongerNeeded(74@)
Car.MarkAsNoLongerNeeded(54@)
Car.MarkAsNoLongerNeeded(55@)
Car.MarkAsNoLongerNeeded(58@)
Car.MarkAsNoLongerNeeded(59@)
153@ = 2

:FINALEA_6332
if 
  World.HasObjectOfTypeBeenSmashed(2522.008, -1272.93, 35.609, 30.0, #IMY_SHASH_WALL)
goto_if_false @FINALEA_6450
Particle.PlayAndKill(102@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
Char.Delete(64@)
Char.Delete(65@)
Char.Delete(66@)
Char.Delete(67@)
Char.Delete(68@)
Char.Delete(71@)
Char.Delete(72@)
Char.Delete(73@)
Char.Delete(74@)
Car.Delete(54@)
Car.Delete(58@)
Car.Delete(59@)
Blip.Remove(129@)
Text.ClearPrints
147@ = 1

:FINALEA_6450
if 
  152@ == 1
goto_if_false @FINALEA_6551
if 
  not Car.IsDead(57@)
goto_if_false @FINALEA_6551
if 
  Char.IsSittingInCar($scplayer, 57@)
goto_if_false @FINALEA_6551
Blip.Remove(129@)
Text.PrintNow('RM4_8', 5000, 1)
130@ = Blip.AddForCoord(2522.79, -1272.85, 34.19)
152@ = 2

:FINALEA_6551
if 
  152@ == 2
goto_if_false @FINALEA_6647
if 
  not Car.IsDead(57@)
goto_if_false @FINALEA_6647
if 
  not Char.IsSittingInCar($scplayer, 57@)
goto_if_false @FINALEA_6647
Blip.Remove(130@)
129@ = Blip.AddForCar(57@)
Blip.SetAsFriendly(129@, True)
Text.PrintNow('RM4_9', 5000, 1)
152@ = 1

:FINALEA_6647
if or
  152@ == 1
  152@ == 2
goto_if_false @FINALEA_6711
if 
  Car.IsDead(57@)
goto_if_false @FINALEA_6711
Text.PrintNow('RM4_10', 7000, 1)
goto @FINALEA_32473

:FINALEA_6711
if 
  148@ == 0
goto_if_false @FINALEA_6827
if 
  not Car.IsDead($sweet_car)
goto_if_false @FINALEA_6827
if 
  Char.LocateAnyMeans2D($scplayer, 2507.82, -1309.226, 3.5, 3.5, False)
goto_if_false @FINALEA_6827
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @FINALEA_6827
Audio.PlayMissionAudio(MissionAudioSlot.Slot2)
Text.PrintNow('ROT4_CA', 2000, 1)
148@ = 1

:FINALEA_6827
if 
  148@ == 1
goto_if_false @FINALEA_6911
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot2)
goto_if_false @FINALEA_6911
if or
  not Char.LocateAnyMeans2D($scplayer, 2507.82, -1309.226, 3.5, 3.5, False)
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @FINALEA_6911
148@ = 0

:FINALEA_6911
if or
  146@ == 1
  146@ == 100
goto_if_false @FINALEA_7131
if 
  not Car.IsDead($sweet_car)
goto_if_false @FINALEA_7131
if 
  149@ == 1
goto_if_false @FINALEA_7039
if 
  not Char.IsInCar($scplayer, $sweet_car)
goto_if_false @FINALEA_7039
Blip.Remove(128@)
128@ = Blip.AddForCar($sweet_car)
Blip.SetAsFriendly(128@, True)
Text.PrintNow('RM4_7', 5000, 1)
146@ = 100
149@ = 0

:FINALEA_7039
if 
  149@ == 0
goto_if_false @FINALEA_7131
if 
  Char.IsInCar($scplayer, $sweet_car)
goto_if_false @FINALEA_7131
Blip.Remove(128@)
128@ = Blip.AddForCoord(2507.82, -1309.226, 33.6726)
Text.PrintNow('RM4_2', 5000, 1)
146@ = 1
149@ = 1

:FINALEA_7131
if 
  Char.IsDead($sweet)
goto_if_false @FINALEA_7170
Text.PrintNow('RM4_11', 5000, 1)
goto @FINALEA_32473

:FINALEA_7170
if 
  Car.IsDead($sweet_car)
goto_if_false @FINALEA_7209
Text.PrintNow('RM4_12', 5000, 1)
goto @FINALEA_32473

:FINALEA_7209
if 
  147@ == 1
goto_if_false @FINALEA_8560
if 
  155@ == 0
goto_if_false @FINALEA_8131
Blip.Remove(130@)
Group.Remove(50@)
Group.Remove(51@)
71@ = Char.Create(PedType.Mission1, 102, 2528.252, -1273.761, 33.9609)
Char.SetHeading(71@, 91.4211)
Char.SetDecisionMaker(71@, 49@)
Task.StayInSamePlace(71@, True)
Char.GiveWeapon(71@, WeaponType.Ak47, 99999)
Char.SetRelationship(71@, RelationshipType.Hate, PedType.Player1)
Char.SetHealth(71@, 20)
Char.SetSenseRange(71@, 50.0)
72@ = Char.Create(PedType.Mission1, 102, 2530.771, -1271.391, 33.9602)
Char.SetHeading(72@, 91.5182)
Char.SetDecisionMaker(72@, 49@)
Char.GiveWeapon(72@, WeaponType.Ak47, 99999)
Task.StayInSamePlace(72@, True)
Char.SetRelationship(72@, RelationshipType.Hate, PedType.Player1)
Char.SetHealth(72@, 20)
Char.SetSenseRange(72@, 50.0)
73@ = Char.Create(PedType.Mission1, 102, 2532.08, -1272.28, 33.9602)
Char.SetHeading(73@, 177.5538)
Char.SetDecisionMaker(73@, 49@)
Char.GiveWeapon(73@, WeaponType.Ak47, 99999)
Task.StayInSamePlace(73@, True)
Char.SetRelationship(73@, RelationshipType.Hate, PedType.Player1)
Char.SetHealth(73@, 20)
Char.SetSenseRange(73@, 50.0)
74@ = Char.Create(PedType.Mission1, 102, 2539.969, -1279.563, 33.9609)
Char.SetHeading(74@, 25.3324)
Char.SetDecisionMaker(74@, 49@)
Char.GiveWeapon(74@, WeaponType.Mp5, 99999)
Task.StayInSamePlace(74@, True)
Char.SetRelationship(74@, RelationshipType.Hate, PedType.Player1)
Char.SetHealth(74@, 20)
Char.SetSenseRange(74@, 50.0)
77@ = Char.Create(PedType.Mission1, 102, 2533.279, -1295.555, 33.9609)
Char.SetHeading(77@, 327.5814)
Char.SetDecisionMaker(77@, 49@)
Char.GiveWeapon(77@, WeaponType.Mp5, 99999)
Task.StayInSamePlace(77@, True)
Char.SetRelationship(77@, RelationshipType.Hate, PedType.Player1)
Char.SetHealth(77@, 20)
Char.SetSenseRange(77@, 50.0)
78@ = Char.Create(PedType.Mission1, 102, 2529.178, -1304.473, 33.9609)
Char.SetHeading(78@, 351.5292)
Char.SetDecisionMaker(78@, 49@)
Char.GiveWeapon(78@, WeaponType.Mp5, 99999)
Task.StayInSamePlace(78@, True)
Char.SetRelationship(78@, RelationshipType.Hate, PedType.Player1)
Char.SetHealth(78@, 20)
79@ = Char.Create(PedType.Mission1, 63, 2538.0, -1307.0, 34.0)
Char.SetHeading(79@, 35.0)
Char.SetHealth(79@, 3)
Task.PlayAnim(79@, "CRCKIDLE4", "CRACK", 1000.0, True, False, False, True, -1)
80@ = Char.Create(PedType.Mission1, 7, 2540.04, -1307.37, 33.9609)
Char.SetHeading(80@, 92.5436)
Char.SetHealth(80@, 3)
Task.PlayAnim(80@, "CRCKIDLE3", "CRACK", 1000.0, True, False, False, True, -1)
81@ = Char.Create(PedType.Mission1, 63, 2533.552, -1308.284, 33.9609)
Char.SetHeading(81@, 67.9508)
Char.SetHealth(81@, 3)
Task.PlayAnim(81@, "CRCKIDLE2", "CRACK", 1000.0, True, False, False, True, -1)
82@ = Char.Create(PedType.Mission1, 7, 2534.682, -1287.199, 33.9609)
Char.SetHeading(82@, 104.5)
Char.SetHealth(82@, 3)
Task.PlayAnim(82@, "CRCKIDLE4", "CRACK", 1000.0, True, False, False, True, -1)
Text.PrintNow('RM4_13', 5000, 1)
130@ = Blip.AddForCoord(2542.1, -1303.99, 34.03)
155@ = 1

:FINALEA_8131
if 
  Char.IsDead($sweet)
goto_if_false @FINALEA_8170
Text.PrintNow('RM4_11', 5000, 1)
goto @FINALEA_32473

:FINALEA_8170
if 
  155@ == 1
goto_if_false @FINALEA_8560
53@ = Streaming.GetAreaVisible()
if 
  197@ == 0
goto_if_false @FINALEA_8269
if 
  not Char.IsDead(79@)
goto_if_false @FINALEA_8269
if 
  Char.IsTouchingChar(79@, $scplayer)
goto_if_false @FINALEA_8269
Task.FleeChar(79@, $scplayer, 100.0, 30000)
197@ = 1

:FINALEA_8269
if 
  198@ == 0
goto_if_false @FINALEA_8345
if 
  not Char.IsDead(80@)
goto_if_false @FINALEA_8345
if 
  Char.IsTouchingChar(80@, $scplayer)
goto_if_false @FINALEA_8345
Task.FleeChar(80@, $scplayer, 100.0, 30000)
198@ = 1

:FINALEA_8345
if 
  199@ == 0
goto_if_false @FINALEA_8421
if 
  not Char.IsDead(81@)
goto_if_false @FINALEA_8421
if 
  Char.IsTouchingChar(81@, $scplayer)
goto_if_false @FINALEA_8421
Task.FleeChar(81@, $scplayer, 100.0, 30000)
199@ = 1

:FINALEA_8421
if 
  200@ == 0
goto_if_false @FINALEA_8497
if 
  not Char.IsDead(82@)
goto_if_false @FINALEA_8497
if 
  Char.IsTouchingChar(82@, $scplayer)
goto_if_false @FINALEA_8497
Task.FleeChar(82@, $scplayer, 100.0, 30000)
200@ = 1

:FINALEA_8497
if 
  53@ == 2
goto_if_false @FINALEA_8560
Camera.DoFade(1000, Fade.Out)

:FINALEA_8522
if 
  Camera.GetFadingStatus
goto_if_false @FINALEA_8546
wait 0
goto @FINALEA_8522

:FINALEA_8546
147@ = 2
156@ = 1

:FINALEA_8560
if 
  147@ == 2
goto_if_false @FINALEA_17153
if 
  156@ == 1
goto_if_false @FINALEA_10782
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.DoFade(1000, Fade.Out)
World.ClearAllScriptRoadblocks

:FINALEA_8616
if 
  Camera.GetFadingStatus
goto_if_false @FINALEA_8640
wait 0
goto @FINALEA_8616

:FINALEA_8640
Player.SetMood($player1, 7, 360000)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
Blip.Remove(130@)
Char.Delete(71@)
Char.Delete(72@)
Char.Delete(73@)
Char.Delete(74@)
Char.Delete(77@)
Char.Delete(78@)
Char.Delete(79@)
Char.Delete(80@)
Char.Delete(81@)
Char.Delete(82@)
Car.Delete(57@)
Char.Delete($sweet)
Streaming.RemoveAnimation("CRACK")
Streaming.UnloadSpecialCharacter(1)
Streaming.MarkModelAsNoLongerNeeded(63)
Streaming.MarkModelAsNoLongerNeeded(492)
Char.SetCoordinates($scplayer, 2543.26, -1303.844, 1024.074)
Char.SetHeading($scplayer, 175.5166)
Camera.SetFixedPosition(2544.616, -1302.899, 1024.407, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2544.193, -1303.702, 1024.828, SwitchType.JumpCut)
Char.SetAreaVisible($scplayer, 2)
130@ = Blip.AddForCoord(2579.85, -1305.76, 1037.07)
Blip.SetEntryExit(130@, 2540.83, -1304.05, 1.0)
World.ClearArea(2578.0, -1306.0, 200.0, 200.0, True)
Camera.DoFade(1000, Fade.In)
Text.PrintBig('RM4_17', 1000, TextStyle.BottomRight)

:FINALEA_8918
if 
  Camera.GetFadingStatus
goto_if_false @FINALEA_8942
wait 0
goto @FINALEA_8918

:FINALEA_8942
133@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2527.783, -1288.816, 1031.43)
137@ = Pickup.Create(#HEALTH, PickupType.Once, 2575.094, -1286.042, 1037.781)
143@ = Pickup.CreateWithAmmo(351, PickupType.Once, 20, 2568.502, -1282.345, 1037.781)
Streaming.RequestModel(103)
Streaming.RequestModel(108)
Streaming.RequestModel(285)
Streaming.RequestModel(601)
Streaming.RequestAnimation("SWAT")
Streaming.RequestModel(#IMCOMPMOVEDR1_LAS)
Streaming.RequestCarRecording(287)
Streaming.LoadAllModelsNow
Streaming.LoadScene(2541.81, -1311.32, 1028.22)
85@ = Char.Create(PedType.Mission1, 103, 2543.244, -1318.538, 1030.427)
Char.SetHeading(85@, 3.2815)
Char.SetDecisionMaker(85@, 47@)
Char.GiveWeapon(85@, WeaponType.Mp5, 99999)
Task.PlayAnim(85@, "ROADCROSS", "PED", 4.0, False, False, False, True, -1)
Char.SetAreaVisible(85@, 2)
Char.SetHealth(85@, 200)
Char.SetMaxHealth(85@, 200)
173@ = 0
86@ = Char.Create(PedType.Mission1, 102, 2536.071, -1321.471, 1030.43)
Char.SetHeading(86@, 263.8364)
Char.SetDecisionMaker(86@, 47@)
Char.GiveWeapon(86@, WeaponType.Mp5, 99999)
Char.SetAreaVisible(86@, 2)
Char.SetHealth(86@, 200)
Char.SetMaxHealth(86@, 200)
174@ = 0
87@ = Char.Create(PedType.Mission1, 108, 2524.737, -1298.328, 1030.427)
Char.SetHeading(87@, 175.4097)
Char.SetDecisionMaker(87@, 47@)
Char.GiveWeapon(87@, WeaponType.Mp5, 99999)
Char.SetAreaVisible(87@, 2)
Char.SetAccuracy(87@, 80)
Char.SetHealth(87@, 200)
Char.SetMaxHealth(87@, 200)
175@ = 0
88@ = Char.Create(PedType.Mission1, 103, 2527.814, -1289.816, 1030.427)
Char.SetHeading(88@, 178.5987)
Char.SetDecisionMaker(88@, 47@)
Char.GiveWeapon(88@, WeaponType.Ak47, 99999)
Char.SetAreaVisible(88@, 2)
Char.SetAccuracy(87@, 80)
Char.SetShootRate(87@, 70)
Char.SetHealth(88@, 200)
Char.SetMaxHealth(88@, 200)
176@ = 0
wait 3000
71@ = Char.Create(PedType.Mission1, 103, 2531.064, -1304.332, 1030.43)
Char.SetHeading(71@, 264.767)
Char.SetDecisionMaker(71@, 47@)
Char.GiveWeapon(71@, WeaponType.Mp5, 99999)
Char.SetAreaVisible(71@, 2)
Char.SetAccuracy(71@, 80)
Char.SetHealth(71@, 200)
Char.SetMaxHealth(71@, 200)
159@ = 0
73@ = Char.Create(PedType.Mission1, 108, 2566.673, -1297.709, 1036.781)
Char.SetHeading(73@, 85.3469)
Char.SetDecisionMaker(73@, 47@)
Char.GiveWeapon(73@, WeaponType.Ak47, 99999)
Char.SetAreaVisible(73@, 2)
Char.SetAccuracy(73@, 80)
Char.SetShootRate(73@, 60)
161@ = 0
74@ = Char.Create(PedType.Mission1, 103, 2566.727, -1287.224, 1036.781)
Char.SetHeading(74@, 96.3687)
Char.SetDecisionMaker(74@, 47@)
Char.GiveWeapon(74@, WeaponType.Ak47, 99999)
Char.SetAreaVisible(74@, 2)
Char.SetHealth(74@, 200)
Char.SetMaxHealth(74@, 200)
Char.SetAccuracy(74@, 80)
162@ = 0
75@ = Char.Create(PedType.Mission1, 102, 2540.859, -1287.161, 1030.419)
Char.SetHeading(75@, 90.0)
Char.SetDecisionMaker(75@, 47@)
Char.GiveWeapon(75@, WeaponType.Mp5, 99999)
Char.SetAreaVisible(75@, 2)
Char.SetHealth(75@, 200)
Char.SetMaxHealth(75@, 200)
Char.SetAccuracy(75@, 80)
Char.SetShootRate(75@, 60)
163@ = 0
76@ = Char.Create(PedType.Mission1, 108, 2556.854, -1287.161, 1030.419)
Char.SetHeading(76@, 90.0)
Char.SetDecisionMaker(76@, 47@)
Char.GiveWeapon(76@, WeaponType.Ak47, 99999)
Char.SetAreaVisible(76@, 2)
Char.SetHealth(76@, 200)
Char.SetMaxHealth(76@, 200)
164@ = 0
77@ = Char.Create(PedType.Mission1, 102, 2556.854, -1300.628, 1030.419)
Char.SetHeading(77@, 90.0)
Char.SetDecisionMaker(77@, 47@)
Char.GiveWeapon(77@, WeaponType.Mp5, 99999)
Char.SetAreaVisible(77@, 2)
Char.SetHealth(77@, 200)
Char.SetMaxHealth(77@, 200)
165@ = 0
78@ = Char.Create(PedType.Mission1, 103, 2539.805, -1298.607, 1030.43)
Char.SetHeading(78@, 64.7154)
Char.SetDecisionMaker(78@, 47@)
Char.GiveWeapon(78@, WeaponType.Ak47, 99999)
Char.SetAreaVisible(78@, 2)
Char.SetHealth(78@, 200)
Char.SetShootRate(78@, 70)
Char.SetMaxHealth(78@, 200)
166@ = 0
80@ = Char.Create(PedType.Mission1, 103, 2552.798, -1300.993, 1030.43)
Char.SetHeading(80@, 87.5663)
Char.SetDecisionMaker(80@, 47@)
Char.GiveWeapon(80@, WeaponType.Ak47, 99999)
Char.SetAreaVisible(80@, 2)
Char.SetHealth(80@, 200)
Char.SetMaxHealth(80@, 200)
Char.SetAccuracy(80@, 80)
Char.SetShootRate(80@, 60)
168@ = 0
81@ = Char.Create(PedType.Mission1, 102, 2563.234, -1294.067, 1030.43)
Char.SetHeading(81@, 93.219)
Char.SetDecisionMaker(81@, 47@)
Char.GiveWeapon(81@, WeaponType.Mp5, 99999)
Char.SetAreaVisible(81@, 2)
Char.SetHealth(81@, 200)
Char.SetMaxHealth(81@, 200)
169@ = 0
82@ = Char.Create(PedType.Mission1, 103, 2550.992, -1290.274, 1030.43)
Char.SetHeading(82@, 103.6499)
Char.SetDecisionMaker(82@, 47@)
Char.GiveWeapon(82@, WeaponType.Ak47, 99999)
Char.SetAreaVisible(82@, 2)
Char.SetHealth(82@, 200)
Char.SetShootRate(82@, 60)
Char.SetMaxHealth(82@, 200)
170@ = 0
83@ = Char.Create(PedType.Mission1, 108, 2556.191, -1281.446, 1036.781)
Char.SetHeading(83@, 183.4208)
Char.SetDecisionMaker(83@, 47@)
Char.GiveWeapon(83@, WeaponType.Mp5, 99999)
Char.SetAreaVisible(83@, 2)
171@ = 0
57@ = Car.Create(601, 2561.818, -1275.167, 1031.019)
Car.FreezePosition(57@, True)
Car.SetHeading(57@, 178.9)
Car.SetAreaVisible(57@, 2)
64@ = Char.CreateInsideCar(57@, PedType.Mission2, 285)
Char.SetDecisionMaker(64@, 47@)
Char.GiveWeapon(64@, WeaponType.Mp5, 9999)
Char.SetAreaVisible(64@, 2)
Char.SetShootRate(64@, 80)
Char.SetHealth(64@, 200)
Char.SetMaxHealth(64@, 200)
Char.SetAccuracy(64@, 80)
65@ = Char.CreateAsPassenger(57@, PedType.Mission2, 285, 0)
Char.SetDecisionMaker(65@, 47@)
Char.SetHealth(65@, 200)
Char.SetMaxHealth(65@, 200)
Char.GiveWeapon(65@, WeaponType.Mp5, 9999)
Char.SetRelationship(65@, RelationshipType.Hate, PedType.Mission1)
Char.SetRelationship(65@, RelationshipType.Hate, PedType.Player1)
Char.SetAreaVisible(65@, 2)
153@ = 0
179@ = 0
152@ = 0
100@ = Object.CreateNoOffset(#IMCOMPMOVEDR1_LAS, 2565.814, -1303.566, 1033.173)
Object.SetHeading(100@, 90.0)
101@ = Object.CreateNoOffset(#CJ_WIN_POP2, 2561.811, -1279.639, 1032.128)
Object.FreezePosition(101@, True)
102@ = Particle.Create("WALLBUST", 2562.0, -1282.0, 1031.0, 1)
World.DisableAllEntryExits(True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Text.ClearPrints
Text.PrintNow('RM4_16', 7000, 1)
156@ = 2

:FINALEA_10782
if 
  156@ == 2
goto_if_false @FINALEA_11002
if or
  Char.LocateAnyMeans3D($scplayer, 2543.38, -1310.38, 1028.26, 5.0, 5.0, 5.0, False)
  Char.IsShooting($scplayer)
goto_if_false @FINALEA_11002
if 
  173@ == 0
goto_if_false @FINALEA_10939
if 
  not Char.IsDead(85@)
goto_if_false @FINALEA_10939
set_lvar_int_to_lvar_int 109@ = 85@
111@ = 2527.579
112@ = -1318.762
113@ = 1030.43
gosub @FINALEA_31568
173@ = 1

:FINALEA_10939
if 
  176@ == 0
goto_if_false @FINALEA_10995
if 
  not Char.IsDead(88@)
goto_if_false @FINALEA_10995
set_lvar_int_to_lvar_int 109@ = 88@
gosub @FINALEA_31661
176@ = 1

:FINALEA_10995
156@ = 3

:FINALEA_11002
if 
  156@ == 3
goto_if_false @FINALEA_11250
if or
  Char.IsInArea3D($scplayer, 2540.95, -1314.42, 1028.79, 2529.24, -1333.21, 1035.04, False)
  Char.LocateAnyMeans3D($scplayer, 2534.44, -1318.92, 1031.17, 5.5, 5.5, 4.0, False)
goto_if_false @FINALEA_11168
if 
  174@ == 0
goto_if_false @FINALEA_11161
if 
  not Char.IsDead(86@)
goto_if_false @FINALEA_11161
set_lvar_int_to_lvar_int 109@ = 86@
gosub @FINALEA_31854
174@ = 1

:FINALEA_11161
156@ = 4

:FINALEA_11168
if 
  174@ == 0
goto_if_false @FINALEA_11250
if 
  not Char.IsDead(86@)
goto_if_false @FINALEA_11250
if 
  Char.HasBeenDamagedByChar(86@, $scplayer)
goto_if_false @FINALEA_11250
set_lvar_int_to_lvar_int 109@ = 86@
gosub @FINALEA_31854
174@ = 1
156@ = 4

:FINALEA_11250
if 
  156@ == 4
goto_if_false @FINALEA_11384
if or
  Char.LocateAnyMeans3D($scplayer, 2527.18, -1304.24, 1027.0, 6.0, 6.0, 5.0, False)
  Char.IsDead(88@)
goto_if_false @FINALEA_11384
if 
  175@ == 0
goto_if_false @FINALEA_11377
if 
  not Char.IsDead(87@)
goto_if_false @FINALEA_11377
set_lvar_int_to_lvar_int 109@ = 87@
gosub @FINALEA_31854
175@ = 1

:FINALEA_11377
156@ = 5

:FINALEA_11384
if 
  156@ == 5
goto_if_false @FINALEA_12167
if or
  Char.IsInArea3D($scplayer, 2529.33, -1308.3, 1027.55, 2537.78, -1272.14, 1035.76, False)
  Char.IsShootingInArea($scplayer, 2522.87, -1299.61, 2529.85, -1287.66, False)
goto_if_false @FINALEA_12167
if 
  163@ == 0
goto_if_false @FINALEA_11581
if 
  not Char.IsDead(75@)
goto_if_false @FINALEA_11581
set_lvar_int_to_lvar_int 109@ = 75@
111@ = 2540.859
112@ = -1287.161
113@ = 1030.419
117@ = 1500
121@ = 90.0
gosub @FINALEA_31937
163@ = 1

:FINALEA_11581
if 
  164@ == 0
goto_if_false @FINALEA_11685
if 
  not Char.IsDead(76@)
goto_if_false @FINALEA_11685
set_lvar_int_to_lvar_int 109@ = 76@
111@ = 2556.854
112@ = -1287.161
113@ = 1030.419
117@ = 2000
121@ = 90.0
gosub @FINALEA_31937
164@ = 1

:FINALEA_11685
if 
  165@ == 0
goto_if_false @FINALEA_11789
if 
  not Char.IsDead(77@)
goto_if_false @FINALEA_11789
set_lvar_int_to_lvar_int 109@ = 77@
111@ = 2556.854
112@ = -1300.628
113@ = 1030.419
117@ = 1200
121@ = 90.0
gosub @FINALEA_32178
165@ = 1

:FINALEA_11789
if 
  161@ == 0
goto_if_false @FINALEA_11845
if 
  not Char.IsDead(73@)
goto_if_false @FINALEA_11845
set_lvar_int_to_lvar_int 109@ = 73@
gosub @FINALEA_31661
161@ = 1

:FINALEA_11845
if 
  162@ == 0
goto_if_false @FINALEA_11901
if 
  not Char.IsDead(74@)
goto_if_false @FINALEA_11901
set_lvar_int_to_lvar_int 109@ = 74@
gosub @FINALEA_31661
162@ = 1

:FINALEA_11901
if 
  171@ == 0
goto_if_false @FINALEA_11957
if 
  not Char.IsDead(83@)
goto_if_false @FINALEA_11957
set_lvar_int_to_lvar_int 109@ = 83@
gosub @FINALEA_31661
171@ = 1

:FINALEA_11957
if 
  166@ == 0
goto_if_false @FINALEA_12013
if 
  not Char.IsDead(78@)
goto_if_false @FINALEA_12013
set_lvar_int_to_lvar_int 109@ = 78@
gosub @FINALEA_31617
166@ = 1

:FINALEA_12013
if 
  168@ == 0
goto_if_false @FINALEA_12062
if 
  not Char.IsDead(80@)
goto_if_false @FINALEA_12062
Task.KillCharOnFoot(80@, $scplayer)
168@ = 1

:FINALEA_12062
if 
  169@ == 0
goto_if_false @FINALEA_12111
if 
  not Char.IsDead(81@)
goto_if_false @FINALEA_12111
Task.KillCharOnFoot(81@, $scplayer)
169@ = 1

:FINALEA_12111
if 
  170@ == 0
goto_if_false @FINALEA_12160
if 
  not Char.IsDead(82@)
goto_if_false @FINALEA_12160
Task.KillCharOnFoot(82@, $scplayer)
170@ = 1

:FINALEA_12160
156@ = 6

:FINALEA_12167
if 
  156@ == 6
goto_if_false @FINALEA_12346
if 
  Char.IsInArea3D($scplayer, 2529.88, -1307.89, 1027.0, 2538.32, -1277.63, 1032.54, False)
goto_if_false @FINALEA_12346
Char.MarkAsNoLongerNeeded(85@)
Char.MarkAsNoLongerNeeded(86@)
Char.MarkAsNoLongerNeeded(87@)
Char.MarkAsNoLongerNeeded(88@)
if 
  159@ == 0
goto_if_false @FINALEA_12339
if 
  not Char.IsDead(71@)
goto_if_false @FINALEA_12339
set_lvar_int_to_lvar_int 109@ = 71@
111@ = 2560.055
112@ = -1304.916
113@ = 1030.43
gosub @FINALEA_31568
159@ = 1

:FINALEA_12339
156@ = 7

:FINALEA_12346
if 
  156@ == 7
goto_if_false @FINALEA_12419
if 
  Char.IsInArea3D($scplayer, 2546.43, -1277.49, 1027.0, 2568.06, -1310.79, 1032.54, False)
goto_if_false @FINALEA_12419
156@ = 8

:FINALEA_12419
if or
  156@ == 8
  180@ > 6
goto_if_false @FINALEA_12507
if 
  152@ == 0
goto_if_false @FINALEA_12507
if 
  not Car.IsDead(57@)
goto_if_false @FINALEA_12507
Car.FreezePosition(57@, False)
Car.StartPlayback(57@, 287)
TIMERB = 0
152@ = 1

:FINALEA_12507
if 
  152@ == 1
goto_if_false @FINALEA_12615
if or
  World.IsClosestObjectOfTypeSmashedOrDamaged(2561.811, -1279.639, 1032.128, 10.0, #CJ_WIN_POP2, True, True)
  TIMERB > 250
goto_if_false @FINALEA_12615
Particle.PlayAndKill(102@)
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot3, 2557.88, -1288.65, 1031.91)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
Object.Break(101@, 1)
152@ = 2

:FINALEA_12615
if 
  152@ == 2
goto_if_false @FINALEA_12720
if 
  not Car.IsDead(57@)
goto_if_false @FINALEA_12720
if 
  not Car.IsPlaybackGoingOn(57@)
goto_if_false @FINALEA_12720
if 
  not Char.IsDead(64@)
goto_if_false @FINALEA_12689
Task.KillCharOnFoot(64@, $scplayer)

:FINALEA_12689
if 
  not Char.IsDead(65@)
goto_if_false @FINALEA_12713
Task.KillCharOnFoot(65@, $scplayer)

:FINALEA_12713
152@ = 3

:FINALEA_12720
if 
  163@ == 1
goto_if_false @FINALEA_12848
if 
  not Char.IsDead(75@)
goto_if_false @FINALEA_12848
if or
  Char.HasBeenDamagedByChar(75@, $scplayer)
  Char.LocateAnyMeansChar3D(75@, $scplayer, 4.0, 4.0, 3.0, False)
goto_if_false @FINALEA_12848
if 
  not Char.IsDead(75@)
goto_if_false @FINALEA_12836
Task.KillCharOnFoot(75@, $scplayer)
163@ = 2
goto @FINALEA_12848

:FINALEA_12836
Char.MarkAsNoLongerNeeded(75@)
163@ = 2

:FINALEA_12848
if 
  164@ == 1
goto_if_false @FINALEA_12976
if 
  not Char.IsDead(76@)
goto_if_false @FINALEA_12976
if or
  Char.HasBeenDamagedByChar(76@, $scplayer)
  Char.LocateAnyMeansChar3D(76@, $scplayer, 4.0, 4.0, 3.0, False)
goto_if_false @FINALEA_12976
if 
  not Char.IsDead(76@)
goto_if_false @FINALEA_12964
Task.KillCharOnFoot(76@, $scplayer)
164@ = 2
goto @FINALEA_12976

:FINALEA_12964
Char.MarkAsNoLongerNeeded(76@)
164@ = 2

:FINALEA_12976
if 
  165@ == 1
goto_if_false @FINALEA_13104
if 
  not Char.IsDead(77@)
goto_if_false @FINALEA_13104
if or
  Char.HasBeenDamagedByChar(77@, $scplayer)
  Char.LocateAnyMeansChar3D(77@, $scplayer, 5.0, 5.0, 3.0, False)
goto_if_false @FINALEA_13104
if 
  not Char.IsDead(77@)
goto_if_false @FINALEA_13092
Task.KillCharOnFoot(77@, $scplayer)
165@ = 2
goto @FINALEA_13104

:FINALEA_13092
Char.MarkAsNoLongerNeeded(77@)
165@ = 2

:FINALEA_13104
if 
  159@ == 1
goto_if_false @FINALEA_13157
if 
  Char.IsDead(71@)
goto_if_false @FINALEA_13157
Char.MarkAsNoLongerNeeded(71@)
180@ += 1
159@ = 2

:FINALEA_13157
if 
  161@ == 1
goto_if_false @FINALEA_13210
if 
  Char.IsDead(73@)
goto_if_false @FINALEA_13210
Char.MarkAsNoLongerNeeded(73@)
180@ += 1
161@ = 2

:FINALEA_13210
if 
  162@ == 1
goto_if_false @FINALEA_13263
if 
  Char.IsDead(74@)
goto_if_false @FINALEA_13263
Char.MarkAsNoLongerNeeded(74@)
180@ += 1
162@ = 2

:FINALEA_13263
if or
  163@ == 1
  163@ == 2
goto_if_false @FINALEA_13323
if 
  Char.IsDead(75@)
goto_if_false @FINALEA_13323
Char.MarkAsNoLongerNeeded(75@)
180@ += 1
163@ = 3

:FINALEA_13323
if or
  164@ == 1
  164@ == 2
goto_if_false @FINALEA_13383
if 
  Char.IsDead(76@)
goto_if_false @FINALEA_13383
Char.MarkAsNoLongerNeeded(76@)
180@ += 1
164@ = 3

:FINALEA_13383
if or
  165@ == 1
  165@ == 2
goto_if_false @FINALEA_13443
if 
  Char.IsDead(77@)
goto_if_false @FINALEA_13443
Char.MarkAsNoLongerNeeded(77@)
180@ += 1
165@ = 3

:FINALEA_13443
if 
  166@ == 1
goto_if_false @FINALEA_13496
if 
  Char.IsDead(78@)
goto_if_false @FINALEA_13496
Char.MarkAsNoLongerNeeded(78@)
180@ += 1
166@ = 2

:FINALEA_13496
if 
  168@ == 1
goto_if_false @FINALEA_13549
if 
  Char.IsDead(80@)
goto_if_false @FINALEA_13549
Char.MarkAsNoLongerNeeded(80@)
180@ += 1
168@ = 2

:FINALEA_13549
if 
  169@ == 1
goto_if_false @FINALEA_13602
if 
  Char.IsDead(81@)
goto_if_false @FINALEA_13602
Char.MarkAsNoLongerNeeded(81@)
180@ += 1
169@ = 2

:FINALEA_13602
if 
  170@ == 1
goto_if_false @FINALEA_13655
if 
  Char.IsDead(82@)
goto_if_false @FINALEA_13655
Char.MarkAsNoLongerNeeded(82@)
180@ += 1
170@ = 2

:FINALEA_13655
if 
  171@ == 1
goto_if_false @FINALEA_13708
if 
  Char.IsDead(83@)
goto_if_false @FINALEA_13708
Char.MarkAsNoLongerNeeded(83@)
180@ += 1
171@ = 2

:FINALEA_13708
if 
  153@ == 0
goto_if_false @FINALEA_13761
if 
  Char.IsDead(64@)
goto_if_false @FINALEA_13761
Char.MarkAsNoLongerNeeded(64@)
180@ += 1
153@ = 1

:FINALEA_13761
if 
  179@ == 0
goto_if_false @FINALEA_13814
if 
  Char.IsDead(65@)
goto_if_false @FINALEA_13814
Char.MarkAsNoLongerNeeded(65@)
180@ += 1
179@ = 1

:FINALEA_13814
if 
  180@ > 8
goto_if_false @FINALEA_14760
if 
  156@ == 8
goto_if_false @FINALEA_14760
if 
  181@ == 0
goto_if_false @FINALEA_14760
if 
  Object.DoesExist(100@)
goto_if_false @FINALEA_14760
if 
  182@ == 0
goto_if_false @FINALEA_14380
85@ = Char.Create(PedType.Mission1, 103, 2571.635, -1302.189, 1030.427)
Char.SetHeading(85@, 84.9134)
Char.SetDecisionMaker(85@, 49@)
Char.GiveWeapon(85@, WeaponType.Mp5, 99999)
Task.PlayAnim(85@, "ROADCROSS", "PED", 4.0, False, False, False, True, -1)
Char.SetAreaVisible(85@, 2)
Char.SetAccuracy(85@, 80)
Char.SetHealth(85@, 150)
Char.SetMaxHealth(85@, 150)
173@ = 0
86@ = Char.Create(PedType.Mission1, 102, 2570.398, -1299.233, 1030.427)
Char.SetHeading(86@, 119.2958)
Char.SetDecisionMaker(86@, 47@)
Char.GiveWeapon(86@, WeaponType.Mp5, 99999)
Char.SetAreaVisible(86@, 2)
Char.SetHealth(86@, 200)
Char.SetMaxHealth(86@, 200)
174@ = 0
87@ = Char.Create(PedType.Mission1, 108, 2566.899, -1290.145, 1030.43)
Char.SetHeading(87@, 180.0082)
Char.SetDecisionMaker(87@, 47@)
Char.GiveWeapon(87@, WeaponType.Mp5, 99999)
Char.SetAreaVisible(87@, 2)
Char.SetHealth(87@, 200)
Char.SetMaxHealth(87@, 200)
175@ = 0
88@ = Char.Create(PedType.Mission1, 103, 2570.637, -1286.841, 1030.43)
Char.SetHeading(88@, 182.7895)
Char.SetDecisionMaker(88@, 47@)
Char.GiveWeapon(88@, WeaponType.Mp5, 99999)
Char.SetAreaVisible(88@, 2)
Char.SetHealth(88@, 200)
Char.SetMaxHealth(88@, 200)
176@ = 0
84@ = Char.Create(PedType.Mission1, 103, 2569.728, -1284.528, 1030.43)
Char.SetHeading(84@, 168.4302)
Char.SetDecisionMaker(84@, 47@)
Char.GiveWeapon(84@, WeaponType.Mp5, 99999)
Char.SetAreaVisible(84@, 2)
Char.SetHealth(84@, 200)
Char.SetMaxHealth(84@, 200)
172@ = 0
182@ = 1
Audio.ReportMissionAudioEventAtObject(100@, 1035)

:FINALEA_14380
if 
  Object.Slide(100@, 2565.814, -1303.566, 1035.362, 0.0, 0.0, 0.15, False)
goto_if_false @FINALEA_14760
Audio.ReportMissionAudioEventAtObject(100@, 1036)
156@ = 9
if 
  173@ == 0
goto_if_false @FINALEA_14529
if 
  not Char.IsDead(85@)
goto_if_false @FINALEA_14529
set_lvar_int_to_lvar_int 109@ = 85@
111@ = 2564.186
112@ = -1301.676
113@ = 1030.43
gosub @FINALEA_31568
173@ = 1

:FINALEA_14529
if 
  174@ == 0
goto_if_false @FINALEA_14585
if 
  not Char.IsDead(86@)
goto_if_false @FINALEA_14585
set_lvar_int_to_lvar_int 109@ = 86@
gosub @FINALEA_31617
174@ = 1

:FINALEA_14585
if 
  172@ == 0
goto_if_false @FINALEA_14641
if 
  not Char.IsDead(84@)
goto_if_false @FINALEA_14641
set_lvar_int_to_lvar_int 109@ = 84@
gosub @FINALEA_31617
172@ = 1

:FINALEA_14641
if 
  175@ == 0
goto_if_false @FINALEA_14697
if 
  not Char.IsDead(87@)
goto_if_false @FINALEA_14697
set_lvar_int_to_lvar_int 109@ = 87@
gosub @FINALEA_31617
175@ = 1

:FINALEA_14697
if 
  176@ == 0
goto_if_false @FINALEA_14753
if 
  not Char.IsDead(88@)
goto_if_false @FINALEA_14753
set_lvar_int_to_lvar_int 109@ = 88@
gosub @FINALEA_31617
176@ = 1

:FINALEA_14753
181@ = 1

:FINALEA_14760
if 
  156@ == 9
goto_if_false @FINALEA_14949
if 
  Char.IsInArea3D($scplayer, 2566.14, -1307.43, 1027.0, 2580.06, -1279.36, 1034.16, False)
goto_if_false @FINALEA_14949
if 
  172@ == 1
goto_if_false @FINALEA_14942
if 
  not Char.IsDead(84@)
goto_if_false @FINALEA_14942
set_lvar_int_to_lvar_int 109@ = 84@
111@ = 2575.565
112@ = -1284.965
113@ = 1030.427
118@ = 2575.513
119@ = -1303.242
120@ = 1036.781
gosub @FINALEA_31699
172@ = 2

:FINALEA_14942
156@ = 10

:FINALEA_14949
if 
  156@ == 10
goto_if_false @FINALEA_15336
if 
  Char.IsInArea3D($scplayer, 2577.98, -1307.44, 1034.5, 2583.49, -1298.94, 1039.3, False)
goto_if_false @FINALEA_15336
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Blip.Remove(130@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Char.SetCoordinates($scplayer, 2575.036, -1305.741, 1036.781)
Char.SetHeading($scplayer, 273.5172)
Char.Delete(77@)
Char.Delete(78@)
Char.Delete(80@)
Char.Delete(81@)
Char.Delete(82@)
Char.Delete(83@)
Char.Delete(71@)
Char.Delete(73@)
Char.Delete(74@)
Char.Delete(75@)
Char.Delete(76@)
Char.Delete(77@)
Char.Delete(78@)
Char.Delete(80@)
Char.Delete(81@)
Char.Delete(82@)
Char.Delete(83@)
Char.Delete(64@)
Char.Delete(65@)
Car.Delete(57@)
Char.Delete(84@)
Char.Delete(85@)
Char.Delete(86@)
Char.Delete(87@)
Char.Delete(88@)
Object.Delete(100@)
Streaming.MarkModelAsNoLongerNeeded(285)
Streaming.MarkModelAsNoLongerNeeded(601)
Streaming.MarkModelAsNoLongerNeeded(355)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(103)
Streaming.MarkModelAsNoLongerNeeded(108)
Streaming.MarkModelAsNoLongerNeeded(#IMCOMPMOVEDR1_LAS)
Camera.SetFixedPosition(2579.686, -1310.002, 1037.224, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2579.736, -1309.022, 1037.418, SwitchType.JumpCut)
Text.PrintBig('RM4_18', 1000, TextStyle.BottomRight)
wait 1000
Task.GoStraightToCoord($scplayer, 2580.091, -1305.649, 1036.773, MoveState.Walk, 4000)
156@ = 11

:FINALEA_15336
if 
  156@ == 11
goto_if_false @FINALEA_17153
if 
  Char.LocateStoppedOnFoot2D($scplayer, 2580.091, -1305.649, 3.0, 3.0, False)
goto_if_false @FINALEA_17153
130@ = Blip.AddForCoord(2521.52, -1301.89, 1047.37)
Blip.SetEntryExit(130@, 2540.83, -1304.05, 1.0)
Streaming.RequestModel(144)
Streaming.RequestModel(146)
Streaming.RequestModel(173)
Streaming.RequestModel(356)
Streaming.RequestModel(346)
Streaming.RequestModel(#BARREL4)
Streaming.LoadAllModelsNow

:FINALEA_15464
if or
  not Streaming.HasModelLoaded(144)
  not Streaming.HasModelLoaded(146)
  not Streaming.HasModelLoaded(173)
  not Streaming.HasModelLoaded(356)
goto_if_false @FINALEA_15506
wait 0
goto @FINALEA_15464

:FINALEA_15506
if or
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(#BARREL4)
goto_if_false @FINALEA_15538
wait 0
goto @FINALEA_15506

:FINALEA_15538
134@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2580.953, -1285.117, 1044.173)
138@ = Pickup.Create(#HEALTH, PickupType.Once, 2528.456, -1282.385, 1048.337)
96@ = Object.Create(#BARREL4, 2560.309, -1290.702, 1043.133)
Object.SetOnlyDamagedByPlayer(96@, True)
Object.MakeTargetable(96@, True)
97@ = Object.Create(#BARREL4, 2540.467, -1306.681, 1047.297)
Object.SetOnlyDamagedByPlayer(97@, True)
Object.MakeTargetable(97@, True)
98@ = Object.Create(#BARREL4, 2545.491, -1296.284, 1043.13)
Object.SetOnlyDamagedByPlayer(98@, True)
Object.MakeTargetable(98@, True)
99@ = Object.Create(#BARREL4, 2538.171, -1289.806, 1043.133)
Object.SetOnlyDamagedByPlayer(99@, True)
Object.MakeTargetable(99@, True)
71@ = Char.Create(PedType.Mission1, 173, 2580.809, -1285.65, 1043.133)
Char.SetHeading(71@, 178.4956)
Char.SetDecisionMaker(71@, 47@)
Char.GiveWeapon(71@, WeaponType.M4, 99999)
Char.SetAreaVisible(71@, 2)
Char.SetHealth(71@, 150)
Char.SetMaxHealth(71@, 150)
159@ = 0
72@ = Char.Create(PedType.Mission1, 173, 2574.736, -1295.861, 1043.133)
Char.SetHeading(72@, 183.0452)
Char.SetDecisionMaker(72@, 47@)
Char.GiveWeapon(72@, WeaponType.Pistol, 99999)
Char.SetWeaponSkill(72@, 2)
Char.SetRelationship(72@, RelationshipType.Hate, PedType.Player1)
Char.SetAreaVisible(72@, 2)
Char.SetSenseRange(72@, 10.0)
Char.SetAccuracy(72@, 60)
160@ = 0
73@ = Char.Create(PedType.Mission1, 146, 2561.648, -1300.648, 1043.17)
Char.SetHeading(73@, 270.0)
Char.SetDecisionMaker(73@, 47@)
Char.GiveWeapon(73@, WeaponType.M4, 99999)
Char.SetAreaVisible(73@, 2)
Char.SetProofs(73@, False, False, True, False, False)
Char.SetHealth(73@, 200)
Char.SetMaxHealth(73@, 200)
161@ = 0
74@ = Char.Create(PedType.Mission1, 144, 2545.648, -1300.648, 1043.17)
Char.SetHeading(74@, 270.0)
Char.SetDecisionMaker(74@, 47@)
Char.GiveWeapon(74@, WeaponType.M4, 99999)
Char.SetAreaVisible(74@, 2)
Char.SetProofs(74@, False, False, True, False, False)
Char.SetHealth(74@, 200)
Char.SetMaxHealth(74@, 200)
Char.SetShootRate(74@, 70)
162@ = 0
75@ = Char.Create(PedType.Mission1, 146, 2538.348, -1287.148, 1043.133)
Char.SetHeading(75@, 270.0)
Char.SetDecisionMaker(75@, 47@)
Char.GiveWeapon(75@, WeaponType.M4, 99999)
Char.SetProofs(75@, False, False, True, False, False)
Char.SetAreaVisible(75@, 2)
Char.SetHealth(75@, 200)
Char.SetMaxHealth(75@, 200)
163@ = 0
76@ = Char.Create(PedType.Mission1, 144, 2553.648, -1287.148, 1043.133)
Char.SetHeading(76@, 270.0)
Char.SetDecisionMaker(76@, 47@)
Char.GiveWeapon(76@, WeaponType.M4, 99999)
Char.SetAreaVisible(76@, 2)
Char.SetHealth(76@, 200)
Char.SetMaxHealth(76@, 200)
Char.SetShootRate(76@, 60)
164@ = 0
wait 250
77@ = Char.Create(PedType.Mission1, 146, 2552.748, -1304.36, 1043.133)
Char.SetHeading(77@, 87.8604)
Char.SetDecisionMaker(77@, 47@)
Char.GiveWeapon(77@, WeaponType.Pistol, 99999)
Char.SetWeaponSkill(77@, 2)
Char.SetAreaVisible(77@, 2)
Char.SetHealth(77@, 200)
Char.SetMaxHealth(77@, 200)
Char.SetShootRate(77@, 80)
165@ = 0
79@ = Char.Create(PedType.Mission1, 146, 2555.851, -1296.115, 1043.13)
Char.SetHeading(79@, 348.0356)
Char.SetDecisionMaker(79@, 47@)
Char.GiveWeapon(79@, WeaponType.Pistol, 99999)
Char.SetWeaponSkill(79@, 2)
Char.SetAreaVisible(79@, 2)
Char.SetProofs(79@, False, False, True, False, False)
Char.SetHealth(79@, 200)
Char.SetMaxHealth(79@, 200)
Char.SetAccuracy(79@, 80)
167@ = 0
80@ = Char.Create(PedType.Mission1, 144, 2542.606, -1296.096, 1043.133)
Char.SetHeading(80@, 353.9691)
Char.SetDecisionMaker(80@, 47@)
Char.GiveWeapon(80@, WeaponType.M4, 99999)
Char.SetAreaVisible(80@, 2)
Char.SetHealth(80@, 200)
Char.SetMaxHealth(80@, 200)
168@ = 0
81@ = Char.Create(PedType.Mission1, 146, 2552.924, -1290.878, 1043.133)
Char.SetHeading(81@, 187.0611)
Char.SetDecisionMaker(81@, 47@)
Char.GiveWeapon(81@, WeaponType.M4, 99999)
Char.SetAreaVisible(81@, 2)
Char.SetHealth(81@, 200)
Char.SetMaxHealth(81@, 200)
Char.SetAccuracy(81@, 70)
169@ = 0
83@ = Char.Create(PedType.Mission1, 144, 2550.059, -1281.248, 1043.133)
Char.SetHeading(83@, 230.8361)
Char.SetDecisionMaker(83@, 47@)
Char.GiveWeapon(83@, WeaponType.M4, 99999)
Char.SetAreaVisible(83@, 2)
Char.SetHealth(83@, 200)
Char.SetMaxHealth(83@, 200)
Char.SetShootRate(83@, 80)
171@ = 0
wait 250
84@ = Char.Create(PedType.Mission1, 144, 2531.906, -1283.062, 1047.297)
Char.SetHeading(84@, 233.2448)
Char.SetDecisionMaker(84@, 47@)
Char.GiveWeapon(84@, WeaponType.M4, 99999)
Char.SetAreaVisible(84@, 2)
Char.SetHealth(84@, 200)
Char.SetMaxHealth(84@, 200)
Char.SetAccuracy(84@, 50)
172@ = 0
85@ = Char.Create(PedType.Mission1, 144, 2548.977, -1282.426, 1047.297)
Char.SetHeading(85@, 234.0824)
Char.SetDecisionMaker(85@, 47@)
Char.GiveWeapon(85@, WeaponType.Pistol, 99999)
Char.SetWeaponSkill(85@, 2)
Char.SetAreaVisible(85@, 2)
Char.SetHealth(85@, 200)
Char.SetMaxHealth(85@, 200)
173@ = 0
86@ = Char.Create(PedType.Mission1, 144, 2530.035, -1293.182, 1047.36)
Char.SetHeading(86@, 268.475)
Char.SetDecisionMaker(86@, 47@)
Char.GiveWeapon(86@, WeaponType.M4, 99999)
Char.SetHealth(86@, 200)
Char.SetMaxHealth(86@, 200)
Char.SetAreaVisible(86@, 2)
Char.SetAccuracy(86@, 80)
174@ = 0
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Char.SetHeading($scplayer, 0.0)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Text.ClearPrints
Text.PrintNow('RM4_23', 7000, 1)
147@ = 3
157@ = 1
156@ = 12

:FINALEA_17153
if 
  147@ == 3
goto_if_false @FINALEA_21839
if 
  157@ == 1
goto_if_false @FINALEA_17300
if 
  Char.IsInArea3D($scplayer, 2576.3, -1299.12, 1039.71, 2584.46, -1281.22, 1046.6, False)
goto_if_false @FINALEA_17300
if 
  159@ == 0
goto_if_false @FINALEA_17293
if 
  not Char.IsDead(71@)
goto_if_false @FINALEA_17293
set_lvar_int_to_lvar_int 109@ = 71@
gosub @FINALEA_31661
159@ = 1

:FINALEA_17293
157@ = 2

:FINALEA_17300
if 
  160@ == 0
goto_if_false @FINALEA_17376
if 
  not Char.IsDead(72@)
goto_if_false @FINALEA_17376
if or
  Char.HasSpottedChar(72@, $scplayer)
  Char.HasBeenDamagedByChar(72@, $scplayer)
goto_if_false @FINALEA_17376
Task.KillCharOnFoot(72@, $scplayer)
160@ = 1

:FINALEA_17376
if 
  157@ == 2
goto_if_false @FINALEA_18327
if 
  Char.IsInArea3D($scplayer, 2571.502, -1311.993, 1041.858, 2560.806, -1276.365, 1046.727, False)
goto_if_false @FINALEA_18327
if 
  159@ == 0
goto_if_false @FINALEA_17477
Char.MarkAsNoLongerNeeded(71@)
Char.MarkAsNoLongerNeeded(72@)
159@ = 1

:FINALEA_17477
if 
  161@ == 0
goto_if_false @FINALEA_17581
if 
  not Char.IsDead(73@)
goto_if_false @FINALEA_17581
set_lvar_int_to_lvar_int 109@ = 73@
111@ = 2561.648
112@ = -1300.648
113@ = 1043.17
117@ = 3000
121@ = 270.0
gosub @FINALEA_31937
161@ = 1

:FINALEA_17581
if 
  162@ == 0
goto_if_false @FINALEA_17685
if 
  not Char.IsDead(74@)
goto_if_false @FINALEA_17685
set_lvar_int_to_lvar_int 109@ = 74@
111@ = 2545.648
112@ = -1300.648
113@ = 1043.17
117@ = 1200
121@ = 270.0
gosub @FINALEA_31937
162@ = 1

:FINALEA_17685
if 
  163@ == 0
goto_if_false @FINALEA_17789
if 
  not Char.IsDead(75@)
goto_if_false @FINALEA_17789
set_lvar_int_to_lvar_int 109@ = 75@
111@ = 2538.348
112@ = -1287.148
113@ = 1043.133
117@ = 1500
121@ = 270.0
gosub @FINALEA_32178
163@ = 1

:FINALEA_17789
if 
  164@ == 0
goto_if_false @FINALEA_17893
if 
  not Char.IsDead(76@)
goto_if_false @FINALEA_17893
set_lvar_int_to_lvar_int 109@ = 76@
111@ = 2553.648
112@ = -1287.148
113@ = 1043.133
117@ = 2000
121@ = 270.0
gosub @FINALEA_32178
164@ = 1

:FINALEA_17893
if 
  165@ == 0
goto_if_false @FINALEA_17942
if 
  not Char.IsDead(77@)
goto_if_false @FINALEA_17942
Task.KillCharOnFoot(77@, $scplayer)
165@ = 1

:FINALEA_17942
if 
  167@ == 0
goto_if_false @FINALEA_17991
if 
  not Char.IsDead(79@)
goto_if_false @FINALEA_17991
Task.KillCharOnFoot(79@, $scplayer)
167@ = 1

:FINALEA_17991
if 
  168@ == 0
goto_if_false @FINALEA_18047
if 
  not Char.IsDead(80@)
goto_if_false @FINALEA_18047
set_lvar_int_to_lvar_int 109@ = 80@
gosub @FINALEA_31617
168@ = 1

:FINALEA_18047
if 
  169@ == 0
goto_if_false @FINALEA_18103
if 
  not Char.IsDead(81@)
goto_if_false @FINALEA_18103
set_lvar_int_to_lvar_int 109@ = 81@
gosub @FINALEA_31617
168@ = 1

:FINALEA_18103
if 
  171@ == 0
goto_if_false @FINALEA_18152
if 
  not Char.IsDead(83@)
goto_if_false @FINALEA_18152
Task.KillCharOnFoot(83@, $scplayer)
171@ = 1

:FINALEA_18152
if 
  172@ == 0
goto_if_false @FINALEA_18208
if 
  not Char.IsDead(84@)
goto_if_false @FINALEA_18208
set_lvar_int_to_lvar_int 109@ = 84@
gosub @FINALEA_31617
172@ = 1

:FINALEA_18208
if 
  173@ == 0
goto_if_false @FINALEA_18264
if 
  not Char.IsDead(85@)
goto_if_false @FINALEA_18264
set_lvar_int_to_lvar_int 109@ = 85@
gosub @FINALEA_31661
173@ = 1

:FINALEA_18264
if 
  174@ == 0
goto_if_false @FINALEA_18320
if 
  not Char.IsDead(86@)
goto_if_false @FINALEA_18320
set_lvar_int_to_lvar_int 109@ = 86@
gosub @FINALEA_31661
174@ = 1

:FINALEA_18320
157@ = 3

:FINALEA_18327
if 
  157@ == 3
goto_if_false @FINALEA_20722
if 
  161@ == 1
goto_if_false @FINALEA_18473
if 
  not Char.IsDead(73@)
goto_if_false @FINALEA_18473
if 
  Char.HasBeenDamagedByChar(73@, $scplayer)
goto_if_false @FINALEA_18473
if or
  not Char.IsDead(73@)
  Char.LocateAnyMeansChar3D(73@, $scplayer, 4.0, 4.0, 3.0, False)
goto_if_false @FINALEA_18461
Task.KillCharOnFoot(73@, $scplayer)
161@ = 2
goto @FINALEA_18473

:FINALEA_18461
Char.MarkAsNoLongerNeeded(73@)
161@ = 2

:FINALEA_18473
if 
  162@ == 1
goto_if_false @FINALEA_18601
if 
  not Char.IsDead(74@)
goto_if_false @FINALEA_18601
if or
  Char.HasBeenDamagedByChar(74@, $scplayer)
  Char.LocateAnyMeansChar3D(74@, $scplayer, 4.0, 4.0, 3.0, False)
goto_if_false @FINALEA_18601
if 
  not Char.IsDead(74@)
goto_if_false @FINALEA_18589
Task.KillCharOnFoot(74@, $scplayer)
162@ = 2
goto @FINALEA_18601

:FINALEA_18589
Char.MarkAsNoLongerNeeded(74@)
162@ = 2

:FINALEA_18601
if 
  163@ == 1
goto_if_false @FINALEA_18729
if 
  not Char.IsDead(75@)
goto_if_false @FINALEA_18729
if or
  Char.HasBeenDamagedByChar(75@, $scplayer)
  Char.LocateAnyMeansChar3D(75@, $scplayer, 5.0, 5.0, 3.0, False)
goto_if_false @FINALEA_18729
if 
  not Char.IsDead(75@)
goto_if_false @FINALEA_18717
Task.KillCharOnFoot(75@, $scplayer)
163@ = 2
goto @FINALEA_18729

:FINALEA_18717
Char.MarkAsNoLongerNeeded(75@)
163@ = 2

:FINALEA_18729
if 
  164@ == 1
goto_if_false @FINALEA_18852
if 
  not Char.IsDead(76@)
goto_if_false @FINALEA_18852
if or
  Char.HasBeenDamagedByChar(76@, $scplayer)
  Char.LocateAnyMeansChar3D(76@, $scplayer, 5.0, 5.0, 3.0, False)
goto_if_false @FINALEA_18852
if 
  not Char.IsDead(76@)
goto_if_false @FINALEA_18845
Task.KillCharOnFoot(76@, $scplayer)
164@ = 2
goto @FINALEA_18852

:FINALEA_18845
164@ = 2

:FINALEA_18852
if or
  161@ == 1
  161@ == 2
goto_if_false @FINALEA_18912
if 
  Char.IsDead(73@)
goto_if_false @FINALEA_18912
Char.MarkAsNoLongerNeeded(73@)
183@ += 1
161@ = 3

:FINALEA_18912
if or
  162@ == 1
  162@ == 2
goto_if_false @FINALEA_18972
if 
  Char.IsDead(74@)
goto_if_false @FINALEA_18972
Char.MarkAsNoLongerNeeded(74@)
183@ += 1
162@ = 3

:FINALEA_18972
if or
  163@ == 1
  163@ == 2
goto_if_false @FINALEA_19032
if 
  Char.IsDead(75@)
goto_if_false @FINALEA_19032
Char.MarkAsNoLongerNeeded(75@)
183@ += 1
163@ = 3

:FINALEA_19032
if or
  164@ == 1
  164@ == 2
goto_if_false @FINALEA_19092
if 
  Char.IsDead(76@)
goto_if_false @FINALEA_19092
Char.MarkAsNoLongerNeeded(76@)
183@ += 1
164@ = 3

:FINALEA_19092
if 
  165@ == 1
goto_if_false @FINALEA_19145
if 
  Char.IsDead(77@)
goto_if_false @FINALEA_19145
Char.MarkAsNoLongerNeeded(77@)
183@ += 1
165@ = 2

:FINALEA_19145
if 
  168@ == 1
goto_if_false @FINALEA_19198
if 
  Char.IsDead(80@)
goto_if_false @FINALEA_19198
Char.MarkAsNoLongerNeeded(80@)
183@ += 1
168@ = 2

:FINALEA_19198
if 
  169@ == 1
goto_if_false @FINALEA_19251
if 
  Char.IsDead(81@)
goto_if_false @FINALEA_19251
Char.MarkAsNoLongerNeeded(81@)
183@ += 1
169@ = 2

:FINALEA_19251
if 
  171@ == 1
goto_if_false @FINALEA_19304
if 
  Char.IsDead(83@)
goto_if_false @FINALEA_19304
Char.MarkAsNoLongerNeeded(83@)
183@ += 1
171@ = 2

:FINALEA_19304
if 
  172@ == 1
goto_if_false @FINALEA_19357
if 
  Char.IsDead(84@)
goto_if_false @FINALEA_19357
Char.MarkAsNoLongerNeeded(84@)
183@ += 1
172@ = 2

:FINALEA_19357
if 
  173@ == 1
goto_if_false @FINALEA_19410
if 
  Char.IsDead(85@)
goto_if_false @FINALEA_19410
Char.MarkAsNoLongerNeeded(85@)
183@ += 1
173@ = 2

:FINALEA_19410
if 
  174@ == 1
goto_if_false @FINALEA_19463
if 
  Char.IsDead(86@)
goto_if_false @FINALEA_19463
Char.MarkAsNoLongerNeeded(86@)
183@ += 1
174@ = 2

:FINALEA_19463
if 
  184@ == 0
goto_if_false @FINALEA_19844
if 
  183@ > 5
goto_if_false @FINALEA_19844
if 
  Char.IsInArea3D($scplayer, 2551.12, -1276.34, 1046.55, 2543.07, -1287.63, 1050.46, False)
goto_if_false @FINALEA_19844
87@ = Char.Create(PedType.Mission1, 173, 2573.448, -1301.981, 1043.133)
Char.SetHeading(87@, 87.1597)
Char.SetDecisionMaker(87@, 47@)
Char.GiveWeapon(87@, WeaponType.M4, 99999)
Char.SetAreaVisible(87@, 2)
Char.SetHealth(87@, 200)
Char.SetMaxHealth(87@, 200)
set_lvar_int_to_lvar_int 109@ = 87@
111@ = 2566.288
112@ = -1301.637
113@ = 1043.133
118@ = 2565.74
119@ = -1297.091
120@ = 1043.133
gosub @FINALEA_31699
175@ = 1
88@ = Char.Create(PedType.Mission1, 173, 2575.308, -1301.908, 1043.133)
Char.SetHeading(88@, 91.2377)
Char.SetDecisionMaker(88@, 47@)
Char.GiveWeapon(88@, WeaponType.M4, 99999)
Char.SetAreaVisible(88@, 2)
Char.SetHealth(88@, 200)
Char.SetMaxHealth(88@, 200)
set_lvar_int_to_lvar_int 109@ = 88@
111@ = 2566.984
112@ = -1302.09
113@ = 1043.133
gosub @FINALEA_31568
176@ = 1
184@ = 1

:FINALEA_19844
if 
  185@ == 0
goto_if_false @FINALEA_20177
if 
  183@ > 8
goto_if_false @FINALEA_20177
if 
  Char.IsInArea3D($scplayer, 2566.09, -1301.26, 1046.91, 2554.56, -1309.06, 1050.0, False)
goto_if_false @FINALEA_20177
89@ = Char.Create(PedType.Mission1, 173, 2527.271, -1305.648, 1047.297)
Char.SetHeading(89@, 269.5592)
Char.SetDecisionMaker(89@, 47@)
Char.GiveWeapon(89@, WeaponType.Pistol, 99999)
Char.SetWeaponSkill(89@, 2)
Char.SetAreaVisible(89@, 2)
set_lvar_int_to_lvar_int 109@ = 89@
111@ = 2542.317
112@ = -1305.674
113@ = 1047.297
gosub @FINALEA_31568
177@ = 1
90@ = Char.Create(PedType.Mission1, 173, 2523.7, -1305.878, 1047.297)
Char.SetHeading(90@, 273.1955)
Char.SetDecisionMaker(90@, 47@)
Char.GiveWeapon(90@, WeaponType.Pistol, 99999)
Char.SetWeaponSkill(90@, 2)
Char.SetAreaVisible(90@, 2)
set_lvar_int_to_lvar_int 109@ = 90@
111@ = 2534.567
112@ = -1305.547
113@ = 1047.297
gosub @FINALEA_31568
178@ = 1
185@ = 1

:FINALEA_20177
if 
  175@ == 1
goto_if_false @FINALEA_20230
if 
  Char.IsDead(87@)
goto_if_false @FINALEA_20230
Char.MarkAsNoLongerNeeded(87@)
183@ += 1
175@ = 2

:FINALEA_20230
if 
  176@ == 1
goto_if_false @FINALEA_20283
if 
  Char.IsDead(88@)
goto_if_false @FINALEA_20283
Char.MarkAsNoLongerNeeded(88@)
183@ += 1
176@ = 2

:FINALEA_20283
if 
  177@ == 1
goto_if_false @FINALEA_20336
if 
  Char.IsDead(89@)
goto_if_false @FINALEA_20336
Char.MarkAsNoLongerNeeded(89@)
183@ += 1
177@ = 2

:FINALEA_20336
if 
  178@ == 1
goto_if_false @FINALEA_20389
if 
  Char.IsDead(90@)
goto_if_false @FINALEA_20389
Char.MarkAsNoLongerNeeded(90@)
183@ += 1
178@ = 2

:FINALEA_20389
if 
  Char.IsInArea3D($scplayer, 2522.35, -1309.65, 1045.6, 2513.5, -1295.97, 1050.32, False)
goto_if_false @FINALEA_20722
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Char.SetCoordinates($scplayer, 2525.079, -1301.891, 1047.297)
Char.SetHeading($scplayer, 89.7295)
Char.Delete(71@)
Char.Delete(72@)
Char.Delete(73@)
Char.Delete(74@)
Char.Delete(75@)
Char.Delete(76@)
Char.Delete(77@)
Char.Delete(80@)
Char.Delete(81@)
Char.Delete(83@)
Char.Delete(84@)
Char.Delete(85@)
Char.Delete(86@)
Char.Delete(87@)
Char.Delete(88@)
Char.Delete(89@)
Char.Delete(90@)
Object.Delete(96@)
Object.Delete(97@)
Object.Delete(98@)
Object.Delete(99@)
Streaming.MarkModelAsNoLongerNeeded(144)
Streaming.MarkModelAsNoLongerNeeded(145)
Streaming.MarkModelAsNoLongerNeeded(146)
Streaming.MarkModelAsNoLongerNeeded(173)
Streaming.MarkModelAsNoLongerNeeded(356)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(#BARREL4)
Camera.SetFixedPosition(2520.282, -1306.363, 1047.599, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2520.3, -1305.388, 1047.823, SwitchType.JumpCut)
Text.PrintBig('RM4_19', 1000, TextStyle.BottomRight)
wait 1000
Task.GoStraightToCoord($scplayer, 2520.025, -1301.845, 1047.289, MoveState.Walk, 5000)
157@ = 4

:FINALEA_20722
if 
  157@ == 4
goto_if_false @FINALEA_21839
if 
  Char.LocateStoppedOnFoot2D($scplayer, 2520.025, -1301.845, 3.0, 3.0, False)
goto_if_false @FINALEA_21839
Streaming.RequestModel(104)
Streaming.RequestModel(111)
Streaming.RequestModel(109)
Streaming.RequestModel(352)
Streaming.RequestModel(349)
Streaming.RequestModel(12)
Streaming.RequestAnimation("STRIP")
Streaming.RequestModel(256)
Streaming.LoadAllModelsNow

:FINALEA_20820
if or
  not Streaming.HasModelLoaded(104)
  not Streaming.HasModelLoaded(111)
  not Streaming.HasModelLoaded(109)
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(349)
goto_if_false @FINALEA_20864
wait 0
goto @FINALEA_20820

:FINALEA_20864
if or
  not Streaming.HasModelLoaded(12)
  not Streaming.HasAnimationLoaded("STRIP")
  not Streaming.HasModelLoaded(256)
goto_if_false @FINALEA_20904
wait 0
goto @FINALEA_20864

:FINALEA_20904
135@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2520.4, -1281.287, 1054.681)
wait 250
89@ = Char.Create(PedType.Mission1, 104, 2520.891, -1281.763, 1053.681)
Char.SetHeading(89@, 180.628)
Char.SetDecisionMaker(89@, 47@)
Char.GiveWeapon(89@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(89@, 2)
Char.SetAreaVisible(89@, 2)
177@ = 0
71@ = Char.Create(PedType.Mission1, 109, 2529.813, -1285.063, 1053.641)
Char.SetHeading(71@, 182.0171)
Char.SetDecisionMaker(71@, 47@)
Char.GiveWeapon(71@, WeaponType.MicroUzi, 99999)
Char.SetAreaVisible(71@, 2)
Char.SetAccuracy(71@, 50)
159@ = 0
72@ = Char.Create(PedType.Mission1, 104, 2529.92, -1286.83, 1053.641)
Char.SetHeading(72@, 358.5364)
Char.SetDecisionMaker(72@, 47@)
Char.GiveWeapon(72@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(72@, 2)
Char.SetAreaVisible(72@, 2)
Char.SetAccuracy(72@, 50)
160@ = 0
Task.ChatWithChar(72@, 71@, True, 1)
Task.ChatWithChar(71@, 72@, False, 1)
91@ = Char.Create(PedType.Mission1, 12, 2537.15, -1288.125, 1053.641)
Char.SetHeading(91@, 280.1631)
Char.SetDecisionMaker(91@, 47@)
Char.SetHealth(91@, 1)
73@ = Char.Create(PedType.Mission1, 111, 2540.364, -1287.553, 1053.647)
Char.SetHeading(73@, 89.793)
Char.SetDecisionMaker(73@, 47@)
Char.GiveWeapon(73@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(73@, 2)
Char.SetAreaVisible(73@, 2)
Char.SetAccuracy(73@, 30)
Char.SetHealth(73@, 200)
Char.SetMaxHealth(73@, 200)
161@ = 0
74@ = Char.Create(PedType.Mission1, 109, 2537.074, -1287.274, 1053.681)
Char.SetHeading(74@, 265.803)
Char.SetDecisionMaker(74@, 47@)
Char.GiveWeapon(74@, WeaponType.Shotgun, 99999)
Char.SetAreaVisible(74@, 2)
Char.SetProofs(74@, False, False, True, False, False)
Char.SetHealth(74@, 150)
Char.SetMaxHealth(74@, 150)
162@ = 0
75@ = Char.Create(PedType.Mission1, 104, 2542.226, -1294.381, 1053.641)
Char.SetHeading(75@, 89.8814)
Char.SetDecisionMaker(75@, 47@)
Char.GiveWeapon(75@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(75@, 2)
Char.SetAreaVisible(75@, 2)
Task.SitDown(75@, 400000)
Char.SetAccuracy(75@, 30)
Char.SetHealth(75@, 200)
Char.SetMaxHealth(75@, 200)
163@ = 0
wait 250
77@ = Char.Create(PedType.Mission1, 109, 2539.477, -1303.431, 1053.641)
Char.SetHeading(77@, 10.5492)
Char.SetDecisionMaker(77@, 47@)
Char.GiveWeapon(77@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(77@, 2)
Char.SetAreaVisible(77@, 2)
Char.SetHealth(77@, 150)
Char.SetMaxHealth(77@, 150)
165@ = 0
78@ = Char.Create(PedType.Mission1, 111, 2533.962, -1306.916, 1053.641)
Char.SetHeading(78@, 338.7091)
Char.SetDecisionMaker(78@, 47@)
Char.GiveWeapon(78@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(78@, 2)
Char.SetAreaVisible(78@, 2)
Char.SetHealth(78@, 200)
Char.SetMaxHealth(78@, 200)
166@ = 0
Blip.Remove(130@)
130@ = Blip.AddForCoord(2579.0, -1284.0, 1054.686)
Blip.SetEntryExit(130@, 2540.83, -1304.05, 1.0)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Char.SetHeading($scplayer, 0.0)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Text.ClearPrints
Text.PrintNow('RM4_21', 5000, 1)
147@ = 4
158@ = 1
157@ = 5

:FINALEA_21839
if 
  147@ == 4
goto_if_false @FINALEA_27552
if 
  158@ == 1
goto_if_false @FINALEA_21986
if 
  Char.LocateAnyMeans3D($scplayer, 2520.23, -1293.09, 1051.49, 6.0, 6.0, 5.0, False)
goto_if_false @FINALEA_21986
if 
  177@ == 0
goto_if_false @FINALEA_21979
if 
  not Char.IsDead(89@)
goto_if_false @FINALEA_21979
set_lvar_int_to_lvar_int 109@ = 89@
gosub @FINALEA_31661
177@ = 1

:FINALEA_21979
158@ = 2

:FINALEA_21986
if 
  158@ == 2
goto_if_false @FINALEA_22205
if 
  Char.IsInArea3D($scplayer, 2522.32, -1293.64, 1052.5, 2532.41, -1273.44, 1055.89, False)
goto_if_false @FINALEA_22122
TIMERA = 0
if 
  160@ == 0
goto_if_false @FINALEA_22108
if 
  not Char.IsDead(72@)
goto_if_false @FINALEA_22108
Task.KillCharOnFoot(72@, $scplayer)
160@ = 1

:FINALEA_22108
158@ = 3
goto @FINALEA_22205

:FINALEA_22122
if or
  Char.HasBeenDamagedByChar(71@, $scplayer)
  Char.HasBeenDamagedByChar(72@, $scplayer)
goto_if_false @FINALEA_22205
if 
  160@ == 0
goto_if_false @FINALEA_22198
if 
  not Char.IsDead(72@)
goto_if_false @FINALEA_22198
Task.KillCharOnFoot(72@, $scplayer)
160@ = 1

:FINALEA_22198
158@ = 3

:FINALEA_22205
if 
  158@ == 3
goto_if_false @FINALEA_22298
if 
  TIMERA > 250
goto_if_false @FINALEA_22298
if 
  159@ == 0
goto_if_false @FINALEA_22291
if 
  not Char.IsDead(71@)
goto_if_false @FINALEA_22291
Task.KillCharOnFoot(71@, $scplayer)
159@ = 1

:FINALEA_22291
158@ = 4

:FINALEA_22298
if 
  158@ == 4
goto_if_false @FINALEA_22735
if 
  Char.IsInArea3D($scplayer, 2530.68, -1306.62, 1052.16, 2542.05, -1275.19, 1057.08, False)
goto_if_false @FINALEA_22735
if 
  not Char.IsDead(91@)
goto_if_false @FINALEA_22425
set_lvar_int_to_lvar_int 109@ = 91@
111@ = 2537.736
112@ = -1306.448
113@ = 1053.641
gosub @FINALEA_32419

:FINALEA_22425
if 
  161@ == 0
goto_if_false @FINALEA_22518
if 
  not Char.IsDead(73@)
goto_if_false @FINALEA_22518
Task.ToggleDuck(73@, -1)
set_lvar_int_to_lvar_int 109@ = 73@
111@ = 2540.37
112@ = -1280.79
113@ = 1053.647
gosub @FINALEA_31568
161@ = 1

:FINALEA_22518
if 
  162@ == 0
goto_if_false @FINALEA_22567
if 
  not Char.IsDead(74@)
goto_if_false @FINALEA_22567
Task.KillCharOnFoot(74@, $scplayer)
162@ = 1

:FINALEA_22567
if 
  163@ == 0
goto_if_false @FINALEA_22616
if 
  not Char.IsDead(75@)
goto_if_false @FINALEA_22616
Task.KillCharOnFoot(75@, $scplayer)
163@ = 1

:FINALEA_22616
if 
  165@ == 0
goto_if_false @FINALEA_22672
if 
  not Char.IsDead(77@)
goto_if_false @FINALEA_22672
set_lvar_int_to_lvar_int 109@ = 77@
gosub @FINALEA_31617
165@ = 1

:FINALEA_22672
if 
  166@ == 0
goto_if_false @FINALEA_22728
if 
  not Char.IsDead(78@)
goto_if_false @FINALEA_22728
set_lvar_int_to_lvar_int 109@ = 78@
gosub @FINALEA_31661
166@ = 1

:FINALEA_22728
158@ = 5

:FINALEA_22735
if 
  158@ == 5
goto_if_false @FINALEA_23450
if 
  Char.LocateAnyMeans3D($scplayer, 2537.78, -1298.62, 1055.1, 5.0, 5.0, 5.0, False)
goto_if_false @FINALEA_23450
76@ = Char.Create(PedType.Mission1, 111, 2545.193, -1302.545, 1053.647)
Char.SetHeading(76@, 359.6221)
Char.SetDecisionMaker(76@, 47@)
Char.GiveWeapon(76@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(76@, 2)
Char.SetAreaVisible(76@, 2)
Char.SetHealth(76@, 150)
Char.SetMaxHealth(76@, 150)
Task.ToggleDuck(76@, -1)
164@ = 0
79@ = Char.Create(PedType.Mission1, 104, 2548.808, -1288.945, 1053.641)
Char.SetHeading(79@, 168.1978)
Char.SetDecisionMaker(79@, 47@)
Char.GiveWeapon(79@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(79@, 2)
Char.SetAccuracy(79@, 50)
Char.SetAreaVisible(79@, 2)
Char.SetHealth(79@, 150)
Char.SetMaxHealth(79@, 150)
167@ = 0
81@ = Char.Create(PedType.Mission1, 109, 2548.211, -1293.491, 1053.641)
Char.SetHeading(81@, 177.248)
Char.SetDecisionMaker(81@, 47@)
Char.GiveWeapon(81@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(81@, 2)
Char.SetAreaVisible(81@, 2)
Char.SetHealth(81@, 150)
Char.SetMaxHealth(81@, 150)
Char.SetAccuracy(81@, 30)
169@ = 0
82@ = Char.Create(PedType.Mission1, 104, 2548.473, -1295.834, 1053.647)
Char.SetHeading(82@, 6.5626)
Char.SetDecisionMaker(82@, 47@)
Char.GiveWeapon(82@, WeaponType.Shotgun, 99999)
Char.SetAccuracy(82@, 30)
Char.SetAreaVisible(82@, 2)
Char.SetHealth(82@, 150)
Char.SetMaxHealth(82@, 150)
170@ = 0
88@ = Char.Create(PedType.Mission1, 104, 2568.735, -1294.134, 1053.681)
Char.SetHeading(88@, 270.3791)
Char.SetDecisionMaker(88@, 47@)
Char.GiveWeapon(88@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(88@, 2)
Char.SetAreaVisible(88@, 2)
Char.SetOnlyDamagedByPlayer(88@, True)
Char.SetHealth(88@, 150)
Char.SetMaxHealth(88@, 150)
176@ = 0
80@ = Char.Create(PedType.Mission1, 104, 2571.7, -1294.298, 1053.68)
Char.SetHeading(80@, 90.0)
Char.SetDecisionMaker(80@, 47@)
Char.GiveWeapon(80@, WeaponType.Shotgun, 99999)
Char.SetAreaVisible(80@, 2)
168@ = 0
83@ = Char.Create(PedType.Mission1, 111, 2571.802, -1289.591, 1053.641)
Char.SetHeading(83@, 90.3346)
Char.SetDecisionMaker(83@, 47@)
Char.GiveWeapon(83@, WeaponType.Shotgun, 99999)
Char.SetAccuracy(83@, 50)
Char.SetAreaVisible(83@, 2)
Char.SetHealth(83@, 150)
Char.SetMaxHealth(83@, 150)
171@ = 0
158@ = 6

:FINALEA_23450
if 
  158@ == 6
goto_if_false @FINALEA_24183
if or
  Char.IsInArea3D($scplayer, 2543.87, -1308.98, 1050.78, 2553.03, -1276.55, 1059.5, False)
  Char.LocateAnyMeans3D($scplayer, 2543.88, -1304.9, 1053.81, 3.0, 3.0, 3.0, False)
goto_if_false @FINALEA_24183
Char.Delete(89@)
Char.Delete(71@)
Char.Delete(72@)
if 
  164@ == 0
goto_if_false @FINALEA_23661
if 
  not Char.IsDead(76@)
goto_if_false @FINALEA_23661
Task.ToggleDuck(76@, -1)
set_lvar_int_to_lvar_int 109@ = 76@
111@ = 2545.238
112@ = -1291.791
113@ = 1053.641
gosub @FINALEA_31568
164@ = 1

:FINALEA_23661
if 
  167@ == 0
goto_if_false @FINALEA_23717
if 
  not Char.IsDead(79@)
goto_if_false @FINALEA_23717
set_lvar_int_to_lvar_int 109@ = 79@
gosub @FINALEA_31661
167@ = 1

:FINALEA_23717
if 
  169@ == 0
goto_if_false @FINALEA_23803
if 
  not Char.IsDead(81@)
goto_if_false @FINALEA_23803
set_lvar_int_to_lvar_int 109@ = 81@
111@ = 2553.877
112@ = -1292.145
113@ = 1053.647
gosub @FINALEA_31568
169@ = 1

:FINALEA_23803
if 
  170@ == 0
goto_if_false @FINALEA_23919
if 
  not Char.IsDead(82@)
goto_if_false @FINALEA_23919
set_lvar_int_to_lvar_int 109@ = 82@
111@ = 2553.217
112@ = -1296.903
113@ = 1053.647
118@ = 2557.171
119@ = -1296.618
120@ = 1053.641
gosub @FINALEA_31699
170@ = 1

:FINALEA_23919
if 
  176@ == 0
goto_if_false @FINALEA_23968
if 
  not Char.IsDead(88@)
goto_if_false @FINALEA_23968
Task.KillCharOnFoot(88@, $scplayer)
176@ = 1

:FINALEA_23968
if 
  168@ == 0
goto_if_false @FINALEA_24072
if 
  not Char.IsDead(80@)
goto_if_false @FINALEA_24072
set_lvar_int_to_lvar_int 109@ = 80@
111@ = 2571.7
112@ = -1294.298
113@ = 1053.68
117@ = 1200
121@ = 90.0
gosub @FINALEA_31937
168@ = 1

:FINALEA_24072
if 
  171@ == 0
goto_if_false @FINALEA_24176
if 
  not Char.IsDead(83@)
goto_if_false @FINALEA_24176
set_lvar_int_to_lvar_int 109@ = 83@
111@ = 2571.802
112@ = -1289.591
113@ = 1053.641
117@ = 2000
121@ = 90.0
gosub @FINALEA_31937
171@ = 1

:FINALEA_24176
158@ = 7

:FINALEA_24183
if 
  158@ == 7
goto_if_false @FINALEA_24656
if 
  Char.IsInArea3D($scplayer, 2544.0, -1298.31, 1051.84, 2577.11, -1278.61, 1057.06, False)
goto_if_false @FINALEA_24656
Char.Delete(91@)
Char.Delete(74@)
Char.Delete(75@)
Char.Delete(77@)
Char.Delete(78@)
84@ = Char.Create(PedType.Mission1, 111, 2561.144, -1302.854, 1053.641)
Char.SetHeading(84@, 357.9032)
Char.SetDecisionMaker(84@, 47@)
Char.GiveWeapon(84@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(84@, 2)
Char.SetAreaVisible(84@, 2)
Char.SetHealth(84@, 200)
Char.SetMaxHealth(84@, 200)
Char.SetAccuracy(84@, 40)
172@ = 0
if 
  172@ == 0
goto_if_false @FINALEA_24465
if 
  not Char.IsDead(84@)
goto_if_false @FINALEA_24465
Task.ToggleDuck(84@, -1)
set_lvar_int_to_lvar_int 109@ = 84@
111@ = 2561.076
112@ = -1295.253
113@ = 1053.647
gosub @FINALEA_31568
172@ = 1

:FINALEA_24465
85@ = Char.Create(PedType.Mission1, 111, 2561.128, -1284.657, 1053.641)
Char.SetHeading(85@, 180.8092)
Char.SetDecisionMaker(85@, 47@)
Char.GiveWeapon(85@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(85@, 2)
Char.SetAreaVisible(85@, 2)
Char.SetAccuracy(85@, 40)
Char.SetHealth(85@, 150)
Char.SetMaxHealth(85@, 150)
173@ = 0
if 
  173@ == 0
goto_if_false @FINALEA_24649
if 
  not Char.IsDead(85@)
goto_if_false @FINALEA_24649
set_lvar_int_to_lvar_int 109@ = 85@
111@ = 2561.241
112@ = -1292.802
113@ = 1053.647
gosub @FINALEA_31568
173@ = 1

:FINALEA_24649
158@ = 8

:FINALEA_24656
if 
  187@ == 0
goto_if_false @FINALEA_24923
if 
  Char.IsInArea3D($scplayer, 2556.98, -1298.58, 1052.0, 2569.69, -1035.12, 1056.21, False)
goto_if_false @FINALEA_24923
139@ = Pickup.Create(#HEALTH, PickupType.Once, 2552.298, -1306.06, 1054.681)
87@ = Char.Create(PedType.Mission1, 111, 2566.716, -1305.75, 1053.681)
Char.SetHeading(87@, 4.514)
Char.SetDecisionMaker(87@, 47@)
Char.GiveWeapon(87@, WeaponType.MicroUzi, 99999)
Char.SetAccuracy(87@, 70)
Char.SetAreaVisible(87@, 2)
175@ = 1
Task.KillCharOnFoot(87@, $scplayer)
92@ = Char.Create(PedType.Mission1, 256, 2557.072, -1302.799, 1053.875)
Char.SetHeading(92@, 53.1978)
Char.SetDecisionMaker(92@, 47@)
Char.SetHealth(92@, 5)
Task.PlayAnim(92@, "STRIP_E", "STRIP", 8.0, True, True, True, False, -1)
187@ = 1

:FINALEA_24923
if 
  186@ == 0
goto_if_false @FINALEA_25189
if 
  Char.IsInArea3D($scplayer, 2558.94, -1290.24, 1052.74, 2568.72, -1283.56, 1057.43, False)
goto_if_false @FINALEA_25189
136@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2552.475, -1280.687, 1054.686)
86@ = Char.Create(PedType.Mission1, 111, 2567.987, -1281.41, 1053.687)
Char.SetHeading(86@, 178.685)
Char.SetDecisionMaker(86@, 47@)
Char.GiveWeapon(86@, WeaponType.MicroUzi, 99999)
Char.SetAccuracy(86@, 30)
Char.SetAreaVisible(86@, 2)
174@ = 1
Task.KillCharOnFoot(86@, $scplayer)
93@ = Char.Create(PedType.Mission1, 256, 2557.817, -1285.218, 1053.876)
Char.SetHeading(93@, 288.0473)
Char.SetDecisionMaker(93@, 47@)
Char.SetHealth(93@, 5)
Task.PlayAnim(93@, "STRIP_A", "STRIP", 8.0, True, True, True, False, -1)
186@ = 1

:FINALEA_25189
if 
  168@ == 1
goto_if_false @FINALEA_25317
if 
  not Char.IsDead(80@)
goto_if_false @FINALEA_25317
if 
  Char.HasBeenDamagedByChar(80@, $scplayer)
goto_if_false @FINALEA_25317
if or
  not Char.IsDead(80@)
  Char.LocateAnyMeansChar3D(80@, $scplayer, 5.0, 5.0, 3.0, False)
goto_if_false @FINALEA_25305
Task.KillCharOnFoot(80@, $scplayer)
168@ = 2
goto @FINALEA_25317

:FINALEA_25305
Char.MarkAsNoLongerNeeded(80@)
168@ = 2

:FINALEA_25317
if 
  171@ == 1
goto_if_false @FINALEA_25445
if 
  not Char.IsDead(83@)
goto_if_false @FINALEA_25445
if or
  Char.HasBeenDamagedByChar(83@, $scplayer)
  Char.LocateAnyMeansChar3D(83@, $scplayer, 5.0, 5.0, 3.0, False)
goto_if_false @FINALEA_25445
if 
  not Char.IsDead(83@)
goto_if_false @FINALEA_25433
Task.KillCharOnFoot(83@, $scplayer)
171@ = 2
goto @FINALEA_25445

:FINALEA_25433
Char.MarkAsNoLongerNeeded(83@)
171@ = 2

:FINALEA_25445
if 
  159@ == 1
goto_if_false @FINALEA_25498
if 
  Char.IsDead(71@)
goto_if_false @FINALEA_25498
Char.MarkAsNoLongerNeeded(71@)
180@ += 1
159@ = 2

:FINALEA_25498
if 
  161@ == 1
goto_if_false @FINALEA_25551
if 
  Char.IsDead(73@)
goto_if_false @FINALEA_25551
Char.MarkAsNoLongerNeeded(73@)
180@ += 1
161@ = 2

:FINALEA_25551
if 
  162@ == 1
goto_if_false @FINALEA_25604
if 
  Char.IsDead(74@)
goto_if_false @FINALEA_25604
Char.MarkAsNoLongerNeeded(74@)
180@ += 1
162@ = 2

:FINALEA_25604
if 
  163@ == 1
goto_if_false @FINALEA_25657
if 
  Char.IsDead(75@)
goto_if_false @FINALEA_25657
Char.MarkAsNoLongerNeeded(75@)
180@ += 1
163@ = 2

:FINALEA_25657
if 
  164@ == 1
goto_if_false @FINALEA_25710
if 
  Char.IsDead(76@)
goto_if_false @FINALEA_25710
Char.MarkAsNoLongerNeeded(76@)
180@ += 1
164@ = 2

:FINALEA_25710
if 
  165@ == 1
goto_if_false @FINALEA_25763
if 
  Char.IsDead(77@)
goto_if_false @FINALEA_25763
Char.MarkAsNoLongerNeeded(77@)
180@ += 1
165@ = 3

:FINALEA_25763
if 
  166@ == 1
goto_if_false @FINALEA_25816
if 
  Char.IsDead(78@)
goto_if_false @FINALEA_25816
Char.MarkAsNoLongerNeeded(78@)
180@ += 1
166@ = 2

:FINALEA_25816
if or
  168@ == 1
  168@ == 2
goto_if_false @FINALEA_25876
if 
  Char.IsDead(80@)
goto_if_false @FINALEA_25876
Char.MarkAsNoLongerNeeded(80@)
180@ += 1
168@ = 3

:FINALEA_25876
if 
  169@ == 1
goto_if_false @FINALEA_25929
if 
  Char.IsDead(81@)
goto_if_false @FINALEA_25929
Char.MarkAsNoLongerNeeded(81@)
180@ += 1
169@ = 2

:FINALEA_25929
if 
  170@ == 1
goto_if_false @FINALEA_25982
if 
  Char.IsDead(82@)
goto_if_false @FINALEA_25982
Char.MarkAsNoLongerNeeded(82@)
180@ += 1
170@ = 2

:FINALEA_25982
if or
  171@ == 1
  171@ == 2
goto_if_false @FINALEA_26042
if 
  Char.IsDead(83@)
goto_if_false @FINALEA_26042
Char.MarkAsNoLongerNeeded(83@)
180@ += 1
171@ = 3

:FINALEA_26042
if 
  172@ == 1
goto_if_false @FINALEA_26095
if 
  Char.IsDead(84@)
goto_if_false @FINALEA_26095
Char.MarkAsNoLongerNeeded(84@)
183@ += 1
172@ = 2

:FINALEA_26095
if 
  173@ == 1
goto_if_false @FINALEA_26148
if 
  Char.IsDead(85@)
goto_if_false @FINALEA_26148
Char.MarkAsNoLongerNeeded(85@)
183@ += 1
173@ = 2

:FINALEA_26148
if 
  174@ == 1
goto_if_false @FINALEA_26201
if 
  Char.IsDead(86@)
goto_if_false @FINALEA_26201
Char.MarkAsNoLongerNeeded(86@)
183@ += 1
174@ = 2

:FINALEA_26201
if 
  175@ == 1
goto_if_false @FINALEA_26254
if 
  Char.IsDead(87@)
goto_if_false @FINALEA_26254
Char.MarkAsNoLongerNeeded(87@)
183@ += 1
175@ = 2

:FINALEA_26254
if 
  176@ == 1
goto_if_false @FINALEA_26307
if 
  Char.IsDead(88@)
goto_if_false @FINALEA_26307
Char.MarkAsNoLongerNeeded(88@)
183@ += 1
176@ = 2

:FINALEA_26307
if 
  177@ == 1
goto_if_false @FINALEA_26360
if 
  Char.IsDead(89@)
goto_if_false @FINALEA_26360
Char.MarkAsNoLongerNeeded(89@)
183@ += 1
177@ = 2

:FINALEA_26360
if 
  158@ == 8
goto_if_false @FINALEA_26531
if or
  Char.IsInArea3D($scplayer, 2577.43, -1281.21, 1050.83, 2584.7, -1291.47, 1055.35, False)
  Char.LocateAnyMeans3D($scplayer, 2579.82, -1284.91, 1054.12, 3.0, 3.0, 3.0, False)
goto_if_false @FINALEA_26531
Text.PrintNow('RM4_24', 5000, 1)
Blip.Remove(130@)
130@ = Blip.AddForCoord(2550.74, -1285.02, 1060.62)
Blip.SetEntryExit(130@, 2540.83, -1304.05, 1.0)
158@ = 9

:FINALEA_26531
if 
  158@ == 9
goto_if_false @FINALEA_27552
if or
  Char.IsInArea3D($scplayer, 2577.46, -1306.59, 1058.27, 2571.97, -1275.1, 1063.08, False)
  Char.LocateAnyMeans3D($scplayer, 2575.4, -1300.35, 1061.016, 3.0, 3.0, 3.0, False)
goto_if_false @FINALEA_27552
Blip.Remove(130@)
Char.Delete(92@)
Char.Delete(93@)
Char.Delete(71@)
Char.Delete(72@)
Char.Delete(73@)
Char.Delete(74@)
Char.Delete(75@)
Char.Delete(76@)
Char.Delete(77@)
Char.Delete(78@)
Char.Delete(79@)
Char.Delete(80@)
Char.Delete(81@)
Char.Delete(82@)
Char.Delete(83@)
Char.Delete(84@)
Char.Delete(85@)
Char.Delete(86@)
Char.Delete(87@)
Char.Delete(88@)
Char.Delete(89@)
Char.Delete(90@)
Player.SetControl($player1, False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:FINALEA_26771
if 
  Camera.GetFadingStatus
goto_if_false @FINALEA_26795
wait 0
goto @FINALEA_26771

:FINALEA_26795
Streaming.SetAreaVisible(2)
Cutscene.Load('RIOT_4C')

:FINALEA_26810
if 
  not Cutscene.HasLoaded
goto_if_false @FINALEA_26834
wait 0
goto @FINALEA_26810

:FINALEA_26834
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:FINALEA_26843
if 
  not Cutscene.HasFinished
goto_if_false @FINALEA_26867
wait 0
goto @FINALEA_26843

:FINALEA_26867
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:FINALEA_26882
if 
  Camera.GetFadingStatus
goto_if_false @FINALEA_26906
wait 0
goto @FINALEA_26882

:FINALEA_26906
Streaming.MarkModelAsNoLongerNeeded(104)
Streaming.MarkModelAsNoLongerNeeded(111)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(12)
Streaming.RemoveAnimation("STRIP")
Streaming.RemoveAnimation("SWAT")
Streaming.MarkModelAsNoLongerNeeded(256)
Streaming.RequestModel(109)
Streaming.RequestModel(102)
Streaming.RequestModel(173)
Streaming.RequestModel(355)
Streaming.RequestModel(369)
Streaming.LoadSpecialCharacter(2, 'SMOKEV')
Streaming.LoadAllModelsNow

:FINALEA_26983
if 
  not Streaming.HasSpecialCharacterLoaded(2)
goto_if_false @FINALEA_27009
wait 0
goto @FINALEA_26983

:FINALEA_27009
if or
  not Streaming.HasModelLoaded(109)
  not Streaming.HasModelLoaded(102)
  not Streaming.HasModelLoaded(173)
  not Streaming.HasModelLoaded(355)
  not Streaming.HasModelLoaded(369)
goto_if_false @FINALEA_27054
wait 0
goto @FINALEA_27009

:FINALEA_27054
$big_smoke = Char.Create(PedType.Special, 291, 2549.918, -1284.457, 1060.016)
Char.SetHeading($big_smoke, 250.566)
Char.SetDecisionMaker($big_smoke, 47@)
Char.GiveWeapon($big_smoke, WeaponType.Ak47, 999999)
Char.SetAccuracy($big_smoke, 70)
Char.SetBulletproofVest($big_smoke, True)
Char.SetHealth($big_smoke, 10000)
Char.SetMaxHealth($big_smoke, 2000)
Char.SetSuffersCriticalHits($big_smoke, False)
Char.SetOnlyDamagedByPlayer($big_smoke, True)
131@ = Blip.AddForChar($big_smoke)
Char.SetHasUsedEntryExit($big_smoke, 2540.83, -1304.05, 1.0)
Char.SetFollowNodeThresholdDistance($big_smoke, 2.0)
Char.SetAreaVisible($big_smoke, 2)
Hud.DisplayCounterWithString($r1_seq, CounterDisplay.Bar, 'RM4_39')
Char.SetUsesUpperbodyDamageAnimsOnly($big_smoke, True)
Char.SetCoordinates($scplayer, 2564.447, -1292.822, 1060.016)
Char.SetHeading($scplayer, 58.5)
Pickup.Remove(133@)
Pickup.Remove(134@)
Pickup.Remove(135@)
Pickup.Remove(136@)
Pickup.Remove(137@)
Pickup.Remove(138@)
Pickup.Remove(139@)
137@ = Pickup.Create(#HEALTH, PickupType.Once, 2582.848, -1282.741, 1065.391)
138@ = Pickup.Create(#HEALTH, PickupType.Once, 2578.784, -1282.572, 1065.4)
142@ = Pickup.CreateWithAmmo(369, PickupType.Once, 1, 2575.03, -1281.598, 1061.02)
133@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2549.429, -1291.612, 1061.024)
140@ = Pickup.CreateWithAmmo(356, PickupType.OnStreet, 60, 2549.632, -1294.612, 1061.024)
141@ = Pickup.CreateWithAmmo(349, PickupType.OnStreet, 60, 2552.09, -1294.106, 1061.024)
Streaming.LoadScene(2552.31, -1286.25, 1061.04)
Clock.SetTimeOfDay(22, 0)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Camera.DoFade(500, Fade.In)

:FINALEA_27475
if 
  Camera.GetFadingStatus
goto_if_false @FINALEA_27499
wait 0
goto @FINALEA_27475

:FINALEA_27499
Player.SetControl($player1, True)
193@ = 0
194@ = 0
195@ = 1
Text.PrintHelp('RM4_28')
158@ = 10
147@ = 5

:FINALEA_27552
if 
  147@ == 5
goto_if_false @FINALEA_31410
if 
  not Char.IsDead($big_smoke)
goto_if_false @FINALEA_31177
if 
  188@ == 0
goto_if_false @FINALEA_27906
Task.KillCharOnFoot($big_smoke, $scplayer)
145@ = 0
75@ = Char.Create(PedType.Mission1, 173, 2554.729, -1281.952, 1060.024)
Char.SetHeading(75@, 180.771)
Char.SetDecisionMaker(75@, 47@)
Char.GiveWeapon(75@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(75@, 2)
Task.ToggleDuck(75@, -1)
Char.SetHealth(75@, 200)
Char.SetMaxHealth(75@, 200)
set_lvar_int_to_lvar_int 109@ = 75@
111@ = 2554.46
112@ = -1284.412
113@ = 1061.024
gosub @FINALEA_31568
163@ = 1
74@ = Char.Create(PedType.Mission1, 102, 2551.236, -1292.18, 1060.02)
Char.SetHeading(74@, 6.0)
Char.SetDecisionMaker(74@, 47@)
Char.GiveWeapon(74@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(74@, 2)
Char.SetHealth(74@, 200)
Char.SetMaxHealth(74@, 200)
set_lvar_int_to_lvar_int 109@ = 74@
111@ = 2551.259
112@ = -1288.081
113@ = 1061.02
gosub @FINALEA_31568
162@ = 1
TIMERA = 0
TIMERB = 0
188@ = 1

:FINALEA_27906
if 
  188@ == 1
goto_if_false @FINALEA_28433
if 
  TIMERB > 6000
goto_if_false @FINALEA_28433
if 
  159@ == 0
goto_if_false @FINALEA_28093
if 
  not Camera.IsPointOnScreen(2551.2, -1291.727, 1060.02, 5.0)
goto_if_false @FINALEA_28093
71@ = Char.Create(PedType.Mission1, 102, 2551.2, -1291.727, 1060.02)
Char.SetHeading(71@, 0.0)
Char.SetDecisionMaker(71@, 47@)
Char.GiveWeapon(71@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(71@, 2)
Task.KillCharOnFoot(71@, $scplayer)
Char.SetAccuracy(71@, 30)
Char.SetHealth(71@, 200)
Char.SetMaxHealth(71@, 200)
159@ = 1

:FINALEA_28093
if 
  160@ == 0
goto_if_false @FINALEA_28236
if 
  not Camera.IsPointOnScreen(2579.04, -1284.275, 1064.4, 5.0)
goto_if_false @FINALEA_28236
72@ = Char.Create(PedType.Mission1, 109, 2579.04, -1284.275, 1064.4)
Char.SetHeading(72@, 0.0)
Char.SetDecisionMaker(72@, 47@)
Char.GiveWeapon(72@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(72@, 2)
Task.KillCharOnFoot(72@, $scplayer)
Char.SetHealth(72@, 150)
Char.SetMaxHealth(72@, 150)
160@ = 1

:FINALEA_28236
if 
  161@ == 0
goto_if_false @FINALEA_28387
if 
  not Camera.IsPointOnScreen(2576.94, -1300.388, 1060.016, 1.0)
goto_if_false @FINALEA_28387
73@ = Char.Create(PedType.Mission1, 173, 2576.94, -1300.388, 1060.016)
Char.SetHeading(73@, 0.0)
Char.SetDecisionMaker(73@, 47@)
Char.GiveWeapon(73@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(73@, 2)
Task.KillCharOnFoot(73@, $scplayer)
Char.SetAccuracy(73@, 30)
Char.SetHealth(73@, 200)
Char.SetMaxHealth(73@, 200)
161@ = 1

:FINALEA_28387
if or
  159@ == 1
  160@ == 1
  161@ == 1
goto_if_false @FINALEA_28433
TIMERB = 0
188@ = 2

:FINALEA_28433
if 
  188@ == 2
goto_if_false @FINALEA_28702
if 
  159@ == 1
goto_if_false @FINALEA_28504
if 
  Char.IsDead(71@)
goto_if_false @FINALEA_28504
Char.MarkAsNoLongerNeeded(71@)
188@ = 1
159@ = 0

:FINALEA_28504
if 
  160@ == 1
goto_if_false @FINALEA_28557
if 
  Char.IsDead(72@)
goto_if_false @FINALEA_28557
Char.MarkAsNoLongerNeeded(72@)
188@ = 1
160@ = 0

:FINALEA_28557
if 
  161@ == 1
goto_if_false @FINALEA_28610
if 
  Char.IsDead(73@)
goto_if_false @FINALEA_28610
Char.MarkAsNoLongerNeeded(73@)
188@ = 1
161@ = 0

:FINALEA_28610
if 
  162@ == 1
goto_if_false @FINALEA_28656
if 
  Char.IsDead(74@)
goto_if_false @FINALEA_28656
Char.MarkAsNoLongerNeeded(74@)
162@ = 0

:FINALEA_28656
if 
  163@ == 1
goto_if_false @FINALEA_28702
if 
  Char.IsDead(75@)
goto_if_false @FINALEA_28702
Char.MarkAsNoLongerNeeded(75@)
163@ = 0

:FINALEA_28702
if 
  145@ == 0
goto_if_false @FINALEA_28756
144@ = Char.GetScriptTaskStatus($big_smoke, 1506)
if 
  is_int_lvar_equal_to_constant 144@ == 7
goto_if_false @FINALEA_28756
145@ = 1

:FINALEA_28756
if 
  189@ == 0
goto_if_false @FINALEA_28833
if 
  190@ == 0
goto_if_false @FINALEA_28833
if 
  TIMERA > 1000
goto_if_false @FINALEA_28833
TIMERA = 10000
190@ = 1
189@ = 1

:FINALEA_28833
if 
  189@ == 1
goto_if_false @FINALEA_29040
if 
  190@ == 1
goto_if_false @FINALEA_29040
if 
  TIMERA > 5999
goto_if_false @FINALEA_28989
if 
  not Char.LocateAnyMeans3D($scplayer, 2564.242, -1282.221, 1064.41, 3.5, 3.5, 3.0, False)
goto_if_false @FINALEA_28975
Task.FollowPathNodesToCoord($big_smoke, 2564.242, -1282.221, 1064.41, 6, 20000)
190@ = 2
goto @FINALEA_28982

:FINALEA_28975
189@ = 3

:FINALEA_28982
goto @FINALEA_29040

:FINALEA_28989
if 
  Char.LocateAnyMeansChar3D($big_smoke, $scplayer, 3.0, 3.0, 1.5, False)
goto_if_false @FINALEA_29040
189@ = 2
TIMERA = 10000

:FINALEA_29040
if 
  189@ == 1
goto_if_false @FINALEA_29160
if 
  Char.LocateAnyMeans3D($big_smoke, 2564.242, -1282.221, 1064.41, 3.5, 3.5, 3.0, False)
goto_if_false @FINALEA_29160
if 
  145@ == 1
goto_if_false @FINALEA_29139
Task.KillCharOnFoot($big_smoke, $scplayer)
145@ = 0

:FINALEA_29139
TIMERA = 0
190@ = 1
189@ = 2

:FINALEA_29160
if 
  189@ == 2
goto_if_false @FINALEA_29367
if 
  190@ == 1
goto_if_false @FINALEA_29367
if 
  TIMERA > 4999
goto_if_false @FINALEA_29316
if 
  not Char.LocateAnyMeans3D($scplayer, 2575.35, -1295.873, 1061.85, 5.5, 5.5, 3.5, False)
goto_if_false @FINALEA_29302
Task.FollowPathNodesToCoord($big_smoke, 2575.35, -1295.873, 1061.85, 6, 20000)
190@ = 2
goto @FINALEA_29309

:FINALEA_29302
189@ = 4

:FINALEA_29309
goto @FINALEA_29367

:FINALEA_29316
if 
  Char.LocateAnyMeansChar3D($big_smoke, $scplayer, 3.0, 3.0, 1.5, False)
goto_if_false @FINALEA_29367
189@ = 4
TIMERA = 10000

:FINALEA_29367
if 
  189@ == 2
goto_if_false @FINALEA_29487
if 
  Char.LocateAnyMeans3D($big_smoke, 2575.35, -1295.873, 1061.85, 3.5, 3.5, 3.0, False)
goto_if_false @FINALEA_29487
if 
  145@ == 1
goto_if_false @FINALEA_29466
Task.KillCharOnFoot($big_smoke, $scplayer)
145@ = 0

:FINALEA_29466
TIMERA = 0
190@ = 1
189@ = 3

:FINALEA_29487
if 
  189@ == 3
goto_if_false @FINALEA_29696
if 
  190@ == 1
goto_if_false @FINALEA_29696
if 
  TIMERA > 4999
goto_if_false @FINALEA_29645
if 
  not Char.LocateAnyMeans3D($scplayer, 2558.181, -1303.748, 1061.024, 6.0, 6.0, 3.5, False)
goto_if_false @FINALEA_29631
Task.FollowPathNodesToCoord($big_smoke, 2558.181, -1303.748, 1061.024, 6, 200000)
190@ = 2
goto @FINALEA_29638

:FINALEA_29631
189@ = 1

:FINALEA_29638
goto @FINALEA_29696

:FINALEA_29645
if 
  Char.LocateAnyMeansChar3D($big_smoke, $scplayer, 3.0, 3.0, 1.5, False)
goto_if_false @FINALEA_29696
189@ = 1
TIMERA = 10000

:FINALEA_29696
if 
  189@ == 3
goto_if_false @FINALEA_29816
if 
  Char.LocateAnyMeans3D($big_smoke, 2558.181, -1303.748, 1061.024, 3.5, 3.5, 3.0, False)
goto_if_false @FINALEA_29816
if 
  145@ == 1
goto_if_false @FINALEA_29795
Task.KillCharOnFoot($big_smoke, $scplayer)
145@ = 0

:FINALEA_29795
TIMERA = 0
190@ = 1
189@ = 4

:FINALEA_29816
if 
  189@ == 4
goto_if_false @FINALEA_30023
if 
  190@ == 1
goto_if_false @FINALEA_30023
if 
  TIMERA > 5999
goto_if_false @FINALEA_29972
if 
  not Char.LocateAnyMeans3D($scplayer, 2553.233, -1282.609, 1061.024, 4.0, 4.0, 3.5, False)
goto_if_false @FINALEA_29958
Task.FollowPathNodesToCoord($big_smoke, 2553.233, -1282.609, 1061.024, 6, 20000)
190@ = 2
goto @FINALEA_29965

:FINALEA_29958
189@ = 2

:FINALEA_29965
goto @FINALEA_30023

:FINALEA_29972
if 
  Char.LocateAnyMeansChar3D($big_smoke, $scplayer, 3.0, 3.0, 1.5, False)
goto_if_false @FINALEA_30023
189@ = 2
TIMERA = 10000

:FINALEA_30023
if 
  189@ == 4
goto_if_false @FINALEA_30143
if 
  Char.LocateAnyMeans3D($big_smoke, 2553.233, -1282.609, 1061.024, 4.0, 4.0, 3.0, False)
goto_if_false @FINALEA_30143
if 
  145@ == 1
goto_if_false @FINALEA_30122
Task.KillCharOnFoot($big_smoke, $scplayer)
145@ = 0

:FINALEA_30122
TIMERA = 0
190@ = 1
189@ = 1

:FINALEA_30143
if 
  not Char.IsDead($big_smoke)
goto_if_false @FINALEA_30264
$r1_seq = Char.GetHealth($big_smoke)
$r1_seq -= 8000
$r1_seq /= 20
if 
  0 >= $r1_seq
goto_if_false @FINALEA_30207
$r1_seq = 0

:FINALEA_30207
if 
  191@ == 0
goto_if_false @FINALEA_30264
if 
  80 > $r1_seq
goto_if_false @FINALEA_30264
196@ = 1
Camera.SetDarknessEffect(True, 200)
191@ = 1

:FINALEA_30264
if 
  not Char.IsDead($big_smoke)
goto_if_false @FINALEA_30552
94@ = Char.GetHealth($big_smoke)
if 
  8000 >= 94@
goto_if_false @FINALEA_30552
$r1_seq = 0
Task.Die($big_smoke)
Camera.SetDarknessEffect(False, -1)
Game.SetInfraredVision(False)
Hud.ClearCounter($r1_seq)
Player.SetControl($player1, False)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
World.ClearArea($player_x, $player_y, 100.0, 100.0, True)
if 
  not Char.IsDead(71@)
goto_if_false @FINALEA_30396
Task.Die(71@)

:FINALEA_30396
if 
  not Char.IsDead(72@)
goto_if_false @FINALEA_30417
Task.Die(72@)

:FINALEA_30417
if 
  not Char.IsDead(73@)
goto_if_false @FINALEA_30438
Task.Die(73@)

:FINALEA_30438
if 
  not Char.IsDead(74@)
goto_if_false @FINALEA_30459
Task.Die(74@)

:FINALEA_30459
if 
  not Char.IsDead(75@)
goto_if_false @FINALEA_30480
Task.Die(75@)

:FINALEA_30480
TIMERA = 0
TIMERB = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
195@ = 2
Camera.DoFade(2500, Fade.Out)

:FINALEA_30514
if 
  Camera.GetFadingStatus
goto_if_false @FINALEA_30538
wait 0
goto @FINALEA_30514

:FINALEA_30538
goto @FINALEA_32554
TIMERA = 0

:FINALEA_30552
if 
  191@ == 1
goto_if_false @FINALEA_30737
if 
  192@ == 0
goto_if_false @FINALEA_30680
if 
  Pickup.HasBeenCollected(142@)
goto_if_false @FINALEA_30629
Text.PrintHelp('RM4_36')
192@ = 3
goto @FINALEA_30680

:FINALEA_30629
132@ = Blip.AddForPickup(142@)
Blip.SetEntryExit(132@, 2540.83, -1304.05, 1.0)
Text.PrintNow('RM4_31', 7000, 1)
192@ = 1

:FINALEA_30680
if 
  192@ == 1
goto_if_false @FINALEA_30737
if 
  Pickup.HasBeenCollected(142@)
goto_if_false @FINALEA_30737
Blip.Remove(132@)
Text.PrintHelp('RM4_36')
192@ = 2

:FINALEA_30737
if 
  195@ == 1
goto_if_false @FINALEA_31170
gosub @FINALEA_31459
if 
  193@ == 0
goto_if_false @FINALEA_30827
if 
  194@ == 0
goto_if_false @FINALEA_30827
set_lvar_int_to_constant 125@ = 14896
set_lvar_text_label 126@s = 'ROT4_UA'
gosub @FINALEA_31417

:FINALEA_30827
if 
  193@ == 1
goto_if_false @FINALEA_30892
if 
  194@ == 0
goto_if_false @FINALEA_30892
set_lvar_int_to_constant 125@ = 14897
set_lvar_text_label 126@s = 'ROT4_UB'
gosub @FINALEA_31417

:FINALEA_30892
if 
  193@ == 2
goto_if_false @FINALEA_30957
if 
  194@ == 0
goto_if_false @FINALEA_30957
set_lvar_int_to_constant 125@ = 14872
set_lvar_text_label 126@s = 'ROT4_UC'
gosub @FINALEA_31417

:FINALEA_30957
if 
  193@ == 3
goto_if_false @FINALEA_31022
if 
  194@ == 0
goto_if_false @FINALEA_31022
set_lvar_int_to_constant 125@ = 14873
set_lvar_text_label 126@s = 'ROT4_UD'
gosub @FINALEA_31417

:FINALEA_31022
if 
  193@ == 4
goto_if_false @FINALEA_31087
if 
  194@ == 0
goto_if_false @FINALEA_31087
set_lvar_int_to_constant 125@ = 14875
set_lvar_text_label 126@s = 'ROT4_ZB'
gosub @FINALEA_31417

:FINALEA_31087
if 
  196@ == 1
goto_if_false @FINALEA_31170
if 
  193@ == 5
goto_if_false @FINALEA_31170
if 
  194@ == 0
goto_if_false @FINALEA_31170
set_lvar_int_to_constant 125@ = 14874
set_lvar_text_label 126@s = 'RM4_31'
gosub @FINALEA_31417

:FINALEA_31170
goto @FINALEA_31410

:FINALEA_31177
$r1_seq = 0
Camera.SetDarknessEffect(False, -1)
Game.SetInfraredVision(False)
Hud.ClearCounter($r1_seq)
Player.SetControl($player1, False)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
World.ClearArea($player_x, $player_y, 100.0, 100.0, True)
if 
  not Char.IsDead(71@)
goto_if_false @FINALEA_31261
Task.Die(71@)

:FINALEA_31261
if 
  not Char.IsDead(72@)
goto_if_false @FINALEA_31282
Task.Die(72@)

:FINALEA_31282
if 
  not Char.IsDead(73@)
goto_if_false @FINALEA_31303
Task.Die(73@)

:FINALEA_31303
if 
  not Char.IsDead(74@)
goto_if_false @FINALEA_31324
Task.Die(74@)

:FINALEA_31324
if 
  not Char.IsDead(75@)
goto_if_false @FINALEA_31345
Task.Die(75@)

:FINALEA_31345
TIMERA = 0
TIMERB = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
195@ = 2
Camera.DoFade(2500, Fade.Out)

:FINALEA_31379
if 
  Camera.GetFadingStatus
goto_if_false @FINALEA_31403
wait 0
goto @FINALEA_31379

:FINALEA_31403
goto @FINALEA_32554

:FINALEA_31410
goto @FINALEA_1473

:FINALEA_31417
if 
  194@ == 0
goto_if_false @FINALEA_31457
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 125@)
set_lvar_text_label 123@s = 126@s
194@ = 1

:FINALEA_31457
return 

:FINALEA_31459
if 
  194@ == 1
goto_if_false @FINALEA_31513
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @FINALEA_31513
Text.PrintNow(123@s, 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
194@ = 2

:FINALEA_31513
if 
  194@ == 2
goto_if_false @FINALEA_31566
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @FINALEA_31566
193@ += 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
194@ = 0

:FINALEA_31566
return 

:FINALEA_31568
103@ = Sequence.Open()
Task.GoStraightToCoord(-1, 111@, 112@, 113@, MoveState.Run, -1)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(103@)
Char.PerformSequence(109@, 103@)
Sequence.Clear(103@)
return 

:FINALEA_31617
104@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(104@)
Char.PerformSequence(109@, 104@)
Sequence.Clear(104@)
return 

:FINALEA_31661
105@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(105@)
Char.PerformSequence(109@, 105@)
Sequence.Clear(105@)
return 

:FINALEA_31699
116@ = Sequence.Open()
Task.GoStraightToCoord(-1, 111@, 112@, 113@, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 118@, 119@, 120@, MoveState.Run, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(116@)
Char.PerformSequence(109@, 116@)
Sequence.Clear(116@)
return 
106@ = Sequence.Open()
Task.PlayAnim(-1, "CROUCH_ROLL_R", "PED", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(106@)
Char.PerformSequence(109@, 106@)
Sequence.Clear(106@)
return 

:FINALEA_31854
107@ = Sequence.Open()
Task.PlayAnim(-1, "CROUCH_ROLL_L", "PED", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(107@)
Char.PerformSequence(109@, 107@)
Sequence.Clear(107@)
return 

:FINALEA_31937
108@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_R", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootTimed(-1, $scplayer, 117@)
Task.StayInSamePlace(-1, False)
Task.CharSlideToCoordAndPlayAnim(-1, 111@, 112@, 113@, 121@, -1.0, "SWT_WLLSHOOT_OUT_R", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(108@, True)
Sequence.Close(108@)
Char.PerformSequence(109@, 108@)
Sequence.Clear(108@)
return 

:FINALEA_32178
110@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_L", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootTimed(-1, $scplayer, 117@)
Task.StayInSamePlace(-1, False)
Task.CharSlideToCoordAndPlayAnim(-1, 111@, 112@, 113@, 121@, -1.0, "SWT_WLLSHOOT_OUT_R", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(110@, True)
Sequence.Close(110@)
Char.PerformSequence(109@, 110@)
Sequence.Clear(110@)
return 

:FINALEA_32419
122@ = Sequence.Open()
Task.GoStraightToCoord(-1, 111@, 112@, 113@, MoveState.Sprint, -1)
Task.StayInSamePlace(-1, True)
Task.Duck(-1, -1)
Sequence.Close(122@)
Char.PerformSequence(109@, 122@)
Sequence.Clear(122@)
return 

:FINALEA_32473
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Streaming.RemoveIplDiscreetly("CARTER")
Object.Delete($2720)
$2720 = Object.CreateNoOffset(#IMY_SHASH_WALL, 2522.008, -1272.93, 35.609)
Object.DontRemove($2720)
Object.SetHealth($2720, 100)
Object.SetCollisionDamageEffect($2720, False)
Object.FreezePosition($2720, True)
return 

:FINALEA_32554
201@ = 1
$flag_riot_mission_counter += 1
Player.ClearWantedLevel($player1)
Streaming.RequestIpl("CARTER")
return 

:FINALEA_32585
World.ClearAllScriptRoadblocks
World.DisableAllEntryExits(False)
if 
  not Car.IsDead($sweet_car)
goto_if_false @FINALEA_32614
Car.SetIsConsideredByPlayer($sweet_car, True)

:FINALEA_32614
Blip.Remove(128@)
Blip.Remove(129@)
Blip.Remove(130@)
Blip.Remove(131@)
Blip.Remove(132@)
Pickup.Remove(133@)
Pickup.Remove(134@)
Pickup.Remove(135@)
Pickup.Remove(136@)
Pickup.Remove(137@)
Pickup.Remove(138@)
Pickup.Remove(139@)
Pickup.Remove(140@)
Pickup.Remove(141@)
Pickup.Remove(142@)
Pickup.Remove(143@)
Hud.ClearCounter($r1_seq)
Particle.Kill(102@)
Object.Delete(96@)
Object.Delete(97@)
Object.Delete(98@)
Object.Delete(99@)
Object.Delete(100@)
Object.Delete(101@)
Streaming.MarkModelAsNoLongerNeeded(601)
Streaming.MarkModelAsNoLongerNeeded(596)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.UnloadSpecialCharacter(1)
Streaming.MarkModelAsNoLongerNeeded(481)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(355)
Streaming.MarkModelAsNoLongerNeeded(63)
Streaming.RemoveAnimation("CRACK")
Streaming.MarkModelAsNoLongerNeeded(103)
Streaming.MarkModelAsNoLongerNeeded(108)
Streaming.MarkModelAsNoLongerNeeded(285)
Streaming.RemoveAnimation("SWAT")
Streaming.MarkModelAsNoLongerNeeded(#IMCOMPMOVEDR1_LAS)
Streaming.RemoveCarRecording(287)
Streaming.MarkModelAsNoLongerNeeded(144)
Streaming.MarkModelAsNoLongerNeeded(146)
Streaming.MarkModelAsNoLongerNeeded(173)
Streaming.MarkModelAsNoLongerNeeded(356)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(#BARREL4)
Streaming.MarkModelAsNoLongerNeeded(104)
Streaming.MarkModelAsNoLongerNeeded(111)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(12)
Streaming.RemoveAnimation("STRIP")
Streaming.MarkModelAsNoLongerNeeded(256)
Streaming.MarkModelAsNoLongerNeeded(109)
Streaming.MarkModelAsNoLongerNeeded(369)
Streaming.UnloadSpecialCharacter(2)
Game.SwitchEmergencyServices(True)
Game.SetWantedMultiplier(1.0)
Game.SetMaxWantedLevel(6)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Path.SwitchRoadsOn(2356.4, -1233.16, 30.6, 2382.19, -1329.65, 21.49)
Path.SwitchPedRoadsOn(2356.4, -1233.16, 30.6, 2382.19, -1329.65, 21.49)
Path.SwitchRoadsOn(2522.74, -1260.01, 30.28, 2499.0, -1322.01, 31.76)
Path.SwitchPedRoadsOn(2522.74, -1260.01, 30.28, 2499.0, -1322.01, 31.76)
Path.SwitchRoadsOn(2431.9, -1268.06, 30.6, 2474.9, -1240.38, 20.84)
Path.SwitchPedRoadsOn(2431.9, -1268.06, 30.6, 2474.9, -1240.38, 20.84)
World.RemoveAllScriptFires
$timer_mobile_start = Clock.GetGameTimer()
if 
  Player.IsPlaying($player1)
goto_if_false @FINALEA_33146
Player.SetGroupRecruitment($player1, True)

:FINALEA_33146
if 
  not Car.IsDead(57@)
goto_if_false @FINALEA_33184
Car.SetOnlyDamagedByPlayer(57@, False)
Car.SetProofs(57@, False, False, False, False, False)

:FINALEA_33184
if 
  not Car.IsDead($sweet_car)
goto_if_false @FINALEA_33215
Car.SetProofs($sweet_car, False, False, False, False, False)

:FINALEA_33215
$onmission = 0
Mission.Finish
if 
  201@ == 1
goto_if_false @FINALEA_33248
Camera.DoFade(0, Fade.Out)

:FINALEA_33248
return 

//-------------Mission 111---------------
// Originally: End Of The Line (2)

:FINALEB
gosub @FINALEB_36
if 
  has_deatharrest_been_executed 
goto_if_false @FINALEB_27
gosub @FINALEB_18413

:FINALEB_27
gosub @FINALEB_18554
terminate_this_script 

:FINALEB_36
$onmission = 1
script_name 'FINALEB'
wait 0
Text.LoadMissionText('RIOT4')
97@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
98@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
Game.SetMaxWantedLevel(0)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.SetFadingColor(0, 0, 0)
Streaming.SetAreaVisible(2)
Cutscene.Load('RIOT_4D')

:FINALEB_121
if 
  not Cutscene.HasLoaded
goto_if_false @FINALEB_145
wait 0
goto @FINALEB_121

:FINALEB_145
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:FINALEB_154
if 
  not Cutscene.HasFinished
goto_if_false @FINALEB_178
wait 0
goto @FINALEB_154

:FINALEB_178
Cutscene.Clear
Camera.DoFade(0, Fade.Out)

:FINALEB_186
if 
  Camera.GetFadingStatus
goto_if_false @FINALEB_210
wait 0
goto @FINALEB_186

:FINALEB_210
Streaming.RequestModel(102)
Streaming.RequestModel(104)
Streaming.RequestModel(109)
Streaming.RequestModel(368)
Streaming.RequestModel(349)
Streaming.RequestModel(352)
Streaming.RequestModel(356)
Streaming.RequestAnimation("SWAT")
Streaming.RequestModel(366)
Streaming.LoadSpecialCharacter(1, 'SMOKEV')
Streaming.LoadSpecialCharacter(2, 'TENPEN')
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 14904)
Streaming.LoadAllModelsNow

:FINALEB_290
if or
  not Streaming.HasSpecialCharacterLoaded(1)
  not Streaming.HasSpecialCharacterLoaded(2)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @FINALEB_324
wait 0
goto @FINALEB_290

:FINALEB_324
if or
  not Streaming.HasModelLoaded(102)
  not Streaming.HasModelLoaded(104)
  not Streaming.HasModelLoaded(109)
  not Streaming.HasModelLoaded(368)
goto_if_false @FINALEB_363
wait 0
goto @FINALEB_324

:FINALEB_363
if or
  not Streaming.HasModelLoaded(349)
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(356)
  not Streaming.HasAnimationLoaded("SWAT")
  not Streaming.HasModelLoaded(366)
goto_if_false @FINALEB_413
wait 0
goto @FINALEB_363

:FINALEB_413
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
151@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
$lookcamz_fb = 420000
156@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
183@ = 0
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
Game.SetMaxFireGenerations(0)
Game.SetWantedMultiplier(0.0)
Game.SwitchEmergencyServices(False)

:FINALEB_718
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @FINALEB_744
goto @FINALEB_18533

:FINALEB_744
if 
  9 > 132@
goto_if_false @FINALEB_997
if 
  154@ == 0
goto_if_false @FINALEB_948
if 
  0 >= $lookcamz_fb
goto_if_false @FINALEB_948
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
Fx.AddExplosion($player_x, $player_y, $player_z, ExplosionType.Grenade)
$player_x += 0.0
$player_y -= 0.5
$player_z += 0.7
Fx.AddExplosion($player_x, $player_y, $player_z, ExplosionType.Rocket)
$player_x -= 1.0
$player_y += 2.0
Fx.AddExplosion($player_x, $player_y, $player_z, ExplosionType.Car)
$player_x += 1.5
$player_y += 2.0
Fx.AddExplosion($player_x, $player_y, $player_z, ExplosionType.Grenade)
TIMERB = 0
154@ = 1

:FINALEB_948
if 
  154@ == 1
goto_if_false @FINALEB_997
if 
  TIMERB > 3000
goto_if_false @FINALEB_997
Task.Die($scplayer)
154@ = 2

:FINALEB_997
if 
  132@ == 0
goto_if_false @FINALEB_1387
if 
  152@ == 0
goto_if_false @FINALEB_1387
$big_smoke = Char.Create(PedType.Special, 290, 2553.2, -1284.857, 1060.024)
Char.SetHeading($big_smoke, 90.0)
Char.SetAreaVisible($big_smoke, 2)
Task.Die($big_smoke)
124@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2552.31, -1286.274, 1061.024)
131@ = Pickup.CreateWithAmmo(355, PickupType.Once, 60, 2552.36, -1283.15, 1061.02)
Char.SetCoordinates($scplayer, 2553.734, -1285.256, 1060.024)
Char.SetHeading($scplayer, 79.954)
Char.SetAreaVisible($scplayer, 2)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(2550.604, -1294.586, 1044.802, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2551.601, -1294.649, 1044.762, SwitchType.JumpCut)
49@ = Char.Create(PedType.Special, 291, 2556.988, -1297.499, 1043.13)
Char.SetHeading(49@, 27.2743)
Char.SetDecisionMaker(49@, 97@)
Char.GiveWeapon(49@, WeaponType.Shotgun, 99999)
Streaming.LoadScene(2552.29, -1294.24, 1044.84)
World.ClearArea(2552.38, -1294.06, 1044.84, 100.0, False)
Streaming.LoadScene(2552.29, -1294.24, 1044.84)
Clock.SetTimeOfDay(0, 0)
Camera.DoFade(500, Fade.In)

:FINALEB_1356
if 
  Camera.GetFadingStatus
goto_if_false @FINALEB_1380
wait 0
goto @FINALEB_1356

:FINALEB_1380
152@ = 1

:FINALEB_1387
if 
  152@ == 1
goto_if_false @FINALEB_2207
if 
  not Char.IsDead(49@)
goto_if_false @FINALEB_2207
Task.ShootAtCoord(49@, 2552.29, -1294.24, 1044.84, 1000)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @FINALEB_1479
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('ROT4_ZC', 3500, 1)

:FINALEB_1479
wait 500
61@ = ScriptFire.Start(2552.38, -1294.06, 1044.84, 0, 1)
skip_cutscene_start_internal @FINALEB_2225
wait 200
62@ = ScriptFire.Start(2553.33, -1293.89, 1044.87, 0, 2)
wait 300
if 
  not Char.IsDead(49@)
goto_if_false @FINALEB_1589
Task.GoStraightToCoord(49@, 25566.84, -1297.272, 1043.17, MoveState.Walk, -1)

:FINALEB_1589
wait 2500
Camera.SetFixedPosition(2565.816, -1296.732, 1044.403, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2564.824, -1296.613, 1044.444, SwitchType.JumpCut)
Text.PrintNow('RM4_38', 10000, 1)
wait 3250
Fx.AddExplosionVariableShake(2553.19, -1293.58, 1044.29, 4, 0.4)
wait 200
Fx.AddExplosionVariableShake(2558.53, -1293.88, 1044.58, 0, 0.3)
wait 500
Fx.AddExplosionVariableShake(2552.78, -1293.24, 1045.32, 0, 0.4)
Camera.SetDarknessEffect(False, 175)
wait 100
Fx.AddExplosionVariableShake(2557.6, -1294.57, 1043.49, 2, 0.5)
wait 500
Fx.AddExplosionVariableShake(2555.86, -1293.27, 1043.91, 2, 0.6)
wait 50
Fx.AddExplosionVariableShake(2558.73, -1293.4, 1044.36, 4, 0.6)
wait 50
Clock.SetTimeOfDay(0, 0)
Weather.SetHeathazeEffect(True)
Camera.SetDarknessEffect(True, 100)
77@ = ScriptFire.Start(2567.77, -1294.03, 1045.5, 0, 3)
68@ = ScriptFire.Start(2541.687, -1289.68, 1043.0, 1, 1)
83@ = ScriptFire.Start(2559.45, -1303.65, 1044.0, 0, 2)
85@ = ScriptFire.Start(2564.72, -1296.06, 1042.91, 0, 2)
75@ = ScriptFire.Start(2570.115, -1301.434, 1043.8, 0, 2)
wait 250
Camera.SetDarknessEffect(False, 120)
81@ = ScriptFire.Start(2559.37, -1284.76, 1044.1, 0, 2)
wait 500
Camera.SetDarknessEffect(True, 140)
70@ = ScriptFire.Start(2538.751, -1291.7, 1044.17, 0, 2)
73@ = ScriptFire.Start(2541.56, -1292.35, 1044.1, 0, 3)
88@ = ScriptFire.Start(2551.47, -1297.2, 1044.17, 0, 2)
89@ = ScriptFire.Start(2551.425, -1298.4, 1044.1, 0, 2)
wait 400
Camera.SetDarknessEffect(False, 150)
wait 500
94@ = ScriptFire.Start(2551.33, -1295.311, 1043.8, 0, 3)
91@ = ScriptFire.Start(2541.36, -1300.36, 1044.1, 0, 2)
Camera.SetDarknessEffect(True, 180)
wait 3000
152@ = 2

:FINALEB_2207
if 
  152@ == 2
goto_if_false @FINALEB_2585

:FINALEB_2225
skip_cutscene_end 
Text.ClearThisPrint('ROT4_ZC')
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Char.Delete(49@)
Weather.SetHeathazeEffect(False)
Camera.SetDarknessEffect(True, 200)
Clock.SetTimeOfDay(0, 0)
Player.SetMood($player1, 7, 360000)
World.RemoveAllScriptFires
125@ = Pickup.Create(#HEALTH, PickupType.Once, 2524.0, -1283.0, 1048.337)
120@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2527.783, -1288.816, 1031.43)
121@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2580.953, -1285.117, 1044.173)
122@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2520.4, -1281.287, 1054.681)
126@ = Pickup.Create(#HEALTH, PickupType.Once, 2552.298, -1306.06, 1054.681)
127@ = Pickup.Create(#HEALTH, PickupType.Once, 2570.839, -1285.818, 1037.821)
123@ = Pickup.Create(#BODYARMOUR, PickupType.Once, 2552.475, -1280.687, 1054.686)
Char.GiveWeapon($scplayer, WeaponType.NightVision, 1)
Char.SetCurrentWeapon($scplayer, WeaponType.NightVision)
Streaming.MarkModelAsNoLongerNeeded(368)
Text.PrintNow('RM4_33', 10000, 1)
Hud.DisplayTimerWithString($lookcamz_fb, TimerDirection.Down, 'RM4_34')
Hud.SetTimerBeepCountdownTime($lookcamz_fb, 32)
118@ = Blip.AddForCoord(2577.82, -1284.6, 1053.99)
Blip.SetEntryExit(118@, 2540.83, -1304.05, 1.0)
TIMERA = 0
132@ = 1
152@ = 3

:FINALEB_2585
if 
  3 > 132@
goto_if_false @FINALEB_2660
if 
  155@ == 0
goto_if_false @FINALEB_2660
if 
  TIMERA > 7000
goto_if_false @FINALEB_2660
Text.ClearPrints
Text.PrintHelp('RM4_32')
155@ = 1

:FINALEB_2660
if 
  4 > 132@
goto_if_false @FINALEB_2735
if 
  155@ == 2
goto_if_false @FINALEB_2735
if 
  TIMERA > 8000
goto_if_false @FINALEB_2735
Text.ClearPrints
Text.PrintHelp('RM4_40')
155@ = 3

:FINALEB_2735
if 
  132@ == 1
goto_if_false @FINALEB_3719
if 
  Char.LocateAnyMeans3D($scplayer, 2578.21, -1284.87, 1053.95, 5.0, 5.0, 5.0, False)
goto_if_false @FINALEB_3719
Blip.Remove(118@)
118@ = Blip.AddForCoord(2521.89, -1301.98, 1047.54)
Blip.SetEntryExit(118@, 2540.83, -1304.05, 1.0)
Text.ClearPrints
34@ = Char.Create(PedType.Mission1, 109, 2574.5, -1296.029, 1054.687)
Char.SetHeading(34@, 4.7018)
Char.SetDecisionMaker(34@, 97@)
Char.GiveWeapon(34@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(34@, 2)
Char.SetAreaVisible(34@, 2)
Char.SetAccuracy(34@, 20)
Char.SetHealth(34@, 150)
Char.SetMaxHealth(34@, 150)
137@ = 1
Task.KillCharOnFoot(34@, $scplayer)
35@ = Char.Create(PedType.Mission1, 104, 2553.764, -1294.536, 1053.647)
Char.SetHeading(35@, 266.9614)
Char.SetDecisionMaker(35@, 97@)
Char.GiveWeapon(35@, WeaponType.Shotgun, 99999)
Char.SetAreaVisible(35@, 2)
138@ = 0
if 
  138@ == 0
goto_if_false @FINALEB_3126
if 
  not Char.IsDead(35@)
goto_if_false @FINALEB_3126
set_lvar_int_to_lvar_int 104@ = 35@
106@ = 2553.764
107@ = -1294.536
108@ = 1053.647
112@ = 2700
116@ = 270.0
gosub @FINALEB_17931
138@ = 1

:FINALEB_3126
36@ = Char.Create(PedType.Mission1, 102, 2575.266, -1296.4, 1054.687)
Char.SetHeading(36@, 89.298)
Char.SetDecisionMaker(36@, 97@)
Char.GiveWeapon(36@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(36@, 2)
Char.SetHealth(36@, 150)
Char.SetMaxHealth(36@, 150)
Char.SetAreaVisible(36@, 2)
if 
  139@ == 0
goto_if_false @FINALEB_3296
if 
  not Char.IsDead(36@)
goto_if_false @FINALEB_3296
set_lvar_int_to_lvar_int 104@ = 36@
106@ = 2556.31
107@ = -1297.219
108@ = 1053.641
gosub @FINALEB_17639
139@ = 1

:FINALEB_3296
37@ = Char.Create(PedType.Mission1, 104, 2547.426, -1306.462, 1054.681)
Char.SetHeading(37@, 359.0)
Char.SetDecisionMaker(37@, 97@)
Char.GiveWeapon(37@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(37@, 2)
Char.SetAreaVisible(37@, 2)
140@ = 0
if 
  140@ == 0
goto_if_false @FINALEB_3427
if 
  not Char.IsDead(37@)
goto_if_false @FINALEB_3427
set_lvar_int_to_lvar_int 104@ = 37@
gosub @FINALEB_17694
140@ = 1

:FINALEB_3427
38@ = Char.Create(PedType.Mission1, 109, 2534.045, -1304.857, 1053.641)
Char.SetHeading(38@, 273.9959)
Char.SetDecisionMaker(38@, 97@)
Char.GiveWeapon(38@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(38@, 2)
Char.SetAreaVisible(38@, 2)
Char.SetHealth(38@, 150)
Char.SetMaxHealth(38@, 150)
141@ = 0
if 
  141@ == 0
goto_if_false @FINALEB_3574
if 
  not Char.IsDead(38@)
goto_if_false @FINALEB_3574
set_lvar_int_to_lvar_int 104@ = 38@
gosub @FINALEB_17694
141@ = 1

:FINALEB_3574
39@ = Char.Create(PedType.Mission1, 102, 2540.192, -1287.667, 1053.647)
Char.SetHeading(39@, 165.9748)
Char.SetDecisionMaker(39@, 97@)
Char.GiveWeapon(39@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(39@, 2)
Char.SetAreaVisible(39@, 2)
Char.SetAllowedToDuck(39@, False)
142@ = 0
if 
  142@ == 0
goto_if_false @FINALEB_3712
if 
  not Char.IsDead(39@)
goto_if_false @FINALEB_3712
set_lvar_int_to_lvar_int 104@ = 39@
gosub @FINALEB_17738
142@ = 1

:FINALEB_3712
132@ = 2

:FINALEB_3719
if 
  132@ == 2
goto_if_false @FINALEB_4584
if 
  137@ == 1
goto_if_false @FINALEB_3783
if 
  Char.IsDead(34@)
goto_if_false @FINALEB_3783
Char.MarkAsNoLongerNeeded(34@)
137@ = 2

:FINALEB_3783
if 
  138@ == 1
goto_if_false @FINALEB_3911
if 
  not Char.IsDead(35@)
goto_if_false @FINALEB_3911
if or
  Char.HasBeenDamagedByChar(35@, $scplayer)
  Char.LocateAnyMeansChar3D(35@, $scplayer, 5.0, 5.0, 3.0, False)
goto_if_false @FINALEB_3911
if 
  not Char.IsDead(35@)
goto_if_false @FINALEB_3899
Task.KillCharOnFoot(35@, $scplayer)
138@ = 2
goto @FINALEB_3911

:FINALEB_3899
Char.MarkAsNoLongerNeeded(35@)
138@ = 2

:FINALEB_3911
if or
  138@ == 1
  138@ == 2
goto_if_false @FINALEB_3964
if 
  Char.IsDead(35@)
goto_if_false @FINALEB_3964
Char.MarkAsNoLongerNeeded(35@)
138@ = 3

:FINALEB_3964
if 
  139@ == 1
goto_if_false @FINALEB_4010
if 
  Char.IsDead(36@)
goto_if_false @FINALEB_4010
Char.MarkAsNoLongerNeeded(36@)
139@ = 2

:FINALEB_4010
if 
  140@ == 1
goto_if_false @FINALEB_4056
if 
  Char.IsDead(37@)
goto_if_false @FINALEB_4056
Char.MarkAsNoLongerNeeded(37@)
140@ = 2

:FINALEB_4056
if 
  141@ == 1
goto_if_false @FINALEB_4102
if 
  Char.IsDead(38@)
goto_if_false @FINALEB_4102
Char.MarkAsNoLongerNeeded(38@)
141@ = 2

:FINALEB_4102
if 
  142@ == 1
goto_if_false @FINALEB_4148
if 
  Char.IsDead(39@)
goto_if_false @FINALEB_4148
Char.MarkAsNoLongerNeeded(39@)
142@ = 2

:FINALEB_4148
if 
  143@ == 0
goto_if_false @FINALEB_4297
if 
  Char.LocateAnyMeans3D($scplayer, 2543.46, -1304.9, 1054.68, 5.0, 5.0, 5.0, False)
goto_if_false @FINALEB_4297
40@ = Char.Create(PedType.Mission1, 102, 2532.4, -1286.7, 1053.68)
Char.SetHeading(40@, 230.835)
Char.SetDecisionMaker(40@, 97@)
Char.GiveWeapon(40@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(40@, 2)
Char.SetAreaVisible(40@, 2)
Task.KillCharOnFoot(40@, $scplayer)
143@ = 1

:FINALEB_4297
if 
  143@ == 1
goto_if_false @FINALEB_4343
if 
  Char.IsDead(40@)
goto_if_false @FINALEB_4343
Char.MarkAsNoLongerNeeded(40@)
143@ = 2

:FINALEB_4343
if 
  144@ == 0
goto_if_false @FINALEB_4538
if 
  Char.LocateAnyMeans3D($scplayer, 2519.93, -1285.547, 1054.673, 5.0, 5.0, 5.0, False)
goto_if_false @FINALEB_4538
41@ = Char.Create(PedType.Mission1, 102, 2519.93, -1285.54, 1054.673)
Char.SetHeading(41@, 200.537)
Char.SetDecisionMaker(41@, 97@)
Char.GiveWeapon(41@, WeaponType.MicroUzi, 99999)
Char.SetAreaVisible(41@, 2)
Char.SetHealth(41@, 150)
Char.SetMaxHealth(41@, 150)
set_lvar_int_to_lvar_int 104@ = 41@
106@ = 2520.05
107@ = -1301.518
108@ = 1048.33
gosub @FINALEB_17639
144@ = 1

:FINALEB_4538
if 
  144@ == 1
goto_if_false @FINALEB_4584
if 
  Char.IsDead(41@)
goto_if_false @FINALEB_4584
Char.MarkAsNoLongerNeeded(41@)
144@ = 2

:FINALEB_4584
if 
  132@ == 2
goto_if_false @FINALEB_7335
if 
  Char.LocateAnyMeans3D($scplayer, 2521.9, -1301.86, 1047.5, 6.0, 6.0, 3.0, False)
goto_if_false @FINALEB_7335
Text.PrintNow('RM4_35', 7000, 1)
TIMERA = 0
155@ = 2
Char.Delete(34@)
Char.Delete(35@)
Char.Delete(36@)
Char.Delete(37@)
Char.Delete(38@)
Char.Delete(39@)
Blip.Remove(118@)
118@ = Blip.AddForCoord(2572.08, -1301.88, 1043.32)
Blip.SetEntryExit(118@, 2540.83, -1304.05, 1.0)
Weather.SetHeathazeEffect(True)
Char.Delete($big_smoke)
Streaming.UnloadSpecialCharacter(2)
51@ = Particle.CreateOnChar("TEARGAS", $scplayer, 0.0, 0.0, 2.2, 1)
52@ = Particle.CreateOnChar("TEARGAS", $scplayer, 0.0, 2.0, 2.0, 1)
53@ = Particle.CreateOnChar("TEARGAS", $scplayer, 0.0, -2.0, 2.0, 1)
54@ = Particle.CreateOnChar("TEARGAS", $scplayer, 1.0, 5.0, 1.7, 1)
55@ = Particle.CreateOnChar("TEARGAS", $scplayer, -1.0, 8.0, 2.0, 1)
56@ = Particle.CreateOnChar("TEARGAS", $scplayer, 2.0, 0.0, 1.7, 1)
57@ = Particle.CreateOnChar("TEARGAS", $scplayer, -2.0, 0.0, 1.7, 1)
58@ = Particle.CreateOnChar("TEARGAS", $scplayer, -2.0, 2.0, 1.7, 1)
59@ = Particle.CreateOnChar("TEARGAS", $scplayer, 2.0, 2.0, 1.7, 1)
60@ = 0

:FINALEB_5081
if 
  9 > 60@
goto_if_false @FINALEB_5122
Particle.Play(51@(60@,9i))
60@ += 1
goto @FINALEB_5081

:FINALEB_5122
61@ = ScriptFire.Start(2529.62, -1306.62, 1048.0, 0, 2)
62@ = ScriptFire.Start(2529.497, -1304.791, 1048.0, 0, 2)
63@ = ScriptFire.Start(2530.12, -1296.96, 1047.8, 0, 3)
64@ = ScriptFire.Start(2529.49, -1287.93, 1048.0, 0, 3)
64@ = ScriptFire.Start(2543.98, -1305.709, 1047.445, 0, 3)
65@ = ScriptFire.Start(2544.54, -1304.47, 1047.55, 0, 3)
90@ = ScriptFire.Start(2543.94, -1306.83, 1047.62, 0, 3)
66@ = ScriptFire.Start(2545.139, -1281.497, 1047.5, 0, 2)
77@ = ScriptFire.Start(2567.77, -1294.03, 1047.5, 0, 3)
78@ = ScriptFire.Start(2570.2, -1294.4, 1047.5, 0, 3)
75@ = ScriptFire.Start(2568.72, -1294.32, 1047.5, 0, 2)
67@ = ScriptFire.Start(2540.247, -1288.566, 1044.0, 0, 3)
68@ = ScriptFire.Start(2541.687, -1289.68, 1044.0, 1, 1)
69@ = ScriptFire.Start(2540.214, -1290.218, 1044.0, 0, 2)
70@ = ScriptFire.Start(2538.751, -1291.7, 1044.17, 0, 2)
71@ = ScriptFire.Start(2537.339, -1286.56, 1044.1, 1, 3)
73@ = ScriptFire.Start(2541.56, -1292.35, 1044.1, 0, 3)
80@ = ScriptFire.Start(2570.77, -1303.14, 1043.35, 0, 2)
81@ = ScriptFire.Start(2559.37, -1284.76, 1044.1, 0, 2)
82@ = ScriptFire.Start(2551.4, -1301.3, 1044.0, 0, 2)
83@ = ScriptFire.Start(2570.52, -1301.42, 1043.47, 0, 2)
84@ = ScriptFire.Start(2550.94, -1301.81, 1044.0, 0, 3)
85@ = ScriptFire.Start(2537.69, -1301.34, 1044.0, 0, 2)
86@ = ScriptFire.Start(2536.42, -1302.01, 1044.0, 0, 2)
87@ = ScriptFire.Start(2536.82, -1290.5, 1044.0, 0, 2)
88@ = ScriptFire.Start(2551.47, -1297.2, 1044.17, 0, 2)
89@ = ScriptFire.Start(2570.54, -1301.22, 1043.36, 0, 3)
94@ = ScriptFire.Start(2551.33, -1295.311, 1043.8, 0, 3)
91@ = ScriptFire.Start(2541.36, -1300.36, 1044.1, 0, 2)
92@ = ScriptFire.Start(2545.328, -1300.739, 1044.1, 0, 2)
93@ = ScriptFire.Start(2548.77, -1300.375, 1044.04, 0, 3)
76@ = ScriptFire.Start(2544.16, -1306.56, 1043.8, 0, 2)
72@ = ScriptFire.Start(2570.43, -1302.43, 1043.4, 0, 1)
74@ = ScriptFire.Start(2549.05, -1287.54, 1043.8, 0, 3)
95@ = ScriptFire.Start(2570.482, -1302.438, 1043.8, 0, 2)
96@ = ScriptFire.Start(2565.705, -1298.03, 1043.7, 0, 3)
79@ = ScriptFire.Start(2565.528, -1289.17, 1043.7, 0, 3)
129@ = Pickup.CreateWithAmmo(366, PickupType.Once, 99999, 2529.829, -1303.027, 1048.337)
119@ = Blip.AddForPickup(129@)
Blip.SetEntryExit(119@, 2540.83, -1304.05, 1.0)
130@ = Pickup.CreateWithAmmo(366, PickupType.Once, 99999, 2567.948, -1292.879, 1044.173)
42@ = Char.Create(PedType.Mission1, 104, 2528.539, -1289.935, 1048.336)
Char.SetHeading(42@, 359.0)
Char.SetHealth(42@, 10)
Char.SetDecisionMaker(42@, 98@)
Char.GiveWeapon(42@, WeaponType.Extinguisher, 99999)
Char.SetShootRate(42@, 20)
Char.SetAreaVisible(42@, 2)
Char.SetHealth(42@, 5)
Char.SetMaxHealth(42@, 5)
Char.SetAccuracy(42@, 20)
145@ = 1
Task.ShootAtCoord(42@, 2529.49, -1287.93, 1048.0, 650000)
43@ = Char.Create(PedType.Mission1, 109, 2538.274, -1293.322, 1043.133)
Char.SetHeading(43@, 351.1779)
Char.SetHealth(43@, 5)
Char.SetDecisionMaker(43@, 98@)
Char.GiveWeapon(43@, WeaponType.Extinguisher, 99999)
Char.SetShootRate(43@, 20)
Char.SetAreaVisible(43@, 2)
Char.SetAccuracy(43@, 20)
146@ = 1
Task.ShootAtCoord(43@, 2538.569, -1291.48, 1043.604, 650000)
44@ = Char.Create(PedType.Mission1, 102, 2539.534, -1297.778, 1043.13)
Char.SetHeading(44@, 43.6277)
Char.SetDecisionMaker(44@, 97@)
Char.GiveWeapon(44@, WeaponType.M4, 99999)
Char.SetAreaVisible(44@, 2)
Char.SetAccuracy(44@, 20)
147@ = 0
if 
  147@ == 0
goto_if_false @FINALEB_6471
if 
  not Char.IsDead(44@)
goto_if_false @FINALEB_6471
set_lvar_int_to_lvar_int 104@ = 44@
gosub @FINALEB_17738
147@ = 1

:FINALEB_6471
45@ = Char.Create(PedType.Mission1, 102, 2548.245, -1294.142, 1043.13)
Char.SetHeading(45@, 105.3104)
Char.SetDecisionMaker(45@, 97@)
Char.GiveWeapon(45@, WeaponType.M4, 99999)
Char.SetAreaVisible(45@, 2)
Char.SetHealth(45@, 150)
Char.SetMaxHealth(45@, 150)
148@ = 0
if 
  148@ == 0
goto_if_false @FINALEB_6611
if 
  not Char.IsDead(45@)
goto_if_false @FINALEB_6611
set_lvar_int_to_lvar_int 104@ = 45@
gosub @FINALEB_17694
148@ = 1

:FINALEB_6611
46@ = Char.Create(PedType.Mission1, 104, 2558.452, -1289.522, 1043.133)
Char.SetHeading(46@, 91.8235)
Char.SetDecisionMaker(46@, 97@)
Char.GiveWeapon(46@, WeaponType.M4, 99999)
Char.SetAreaVisible(46@, 2)
Char.SetAccuracy(46@, 20)
149@ = 0
if 
  149@ == 0
goto_if_false @FINALEB_6742
if 
  not Char.IsDead(46@)
goto_if_false @FINALEB_6742
set_lvar_int_to_lvar_int 104@ = 46@
gosub @FINALEB_17738
149@ = 1

:FINALEB_6742
47@ = Char.Create(PedType.Mission1, 102, 2565.722, -1293.133, 1044.07)
Char.SetHeading(47@, 85.0916)
Char.SetDecisionMaker(47@, 97@)
Char.GiveWeapon(47@, WeaponType.M4, 99999)
Char.SetAreaVisible(47@, 2)
Char.SetHealth(47@, 150)
Char.SetMaxHealth(47@, 150)
150@ = 0
if 
  150@ == 0
goto_if_false @FINALEB_6882
if 
  not Char.IsDead(47@)
goto_if_false @FINALEB_6882
set_lvar_int_to_lvar_int 104@ = 47@
gosub @FINALEB_17694
150@ = 1

:FINALEB_6882
48@ = Char.Create(PedType.Mission1, 104, 2557.144, -1297.805, 1043.13)
Char.SetHeading(48@, 65.8333)
Char.SetDecisionMaker(48@, 97@)
Char.GiveWeapon(48@, WeaponType.M4, 99999)
Char.SetAreaVisible(48@, 2)
151@ = 0
if 
  151@ == 0
goto_if_false @FINALEB_7006
if 
  not Char.IsDead(48@)
goto_if_false @FINALEB_7006
set_lvar_int_to_lvar_int 104@ = 48@
gosub @FINALEB_17738
151@ = 1

:FINALEB_7006
if 
  145@ == 1
goto_if_false @FINALEB_7052
if 
  Char.IsDead(42@)
goto_if_false @FINALEB_7052
Char.MarkAsNoLongerNeeded(42@)
145@ = 2

:FINALEB_7052
if 
  146@ == 1
goto_if_false @FINALEB_7098
if 
  Char.IsDead(43@)
goto_if_false @FINALEB_7098
Char.MarkAsNoLongerNeeded(43@)
146@ = 2

:FINALEB_7098
if 
  147@ == 1
goto_if_false @FINALEB_7144
if 
  Char.IsDead(44@)
goto_if_false @FINALEB_7144
Char.MarkAsNoLongerNeeded(44@)
147@ = 2

:FINALEB_7144
if 
  148@ == 1
goto_if_false @FINALEB_7190
if 
  Char.IsDead(45@)
goto_if_false @FINALEB_7190
Char.MarkAsNoLongerNeeded(45@)
148@ = 2

:FINALEB_7190
if 
  149@ == 1
goto_if_false @FINALEB_7236
if 
  Char.IsDead(46@)
goto_if_false @FINALEB_7236
Char.MarkAsNoLongerNeeded(46@)
149@ = 2

:FINALEB_7236
if 
  150@ == 1
goto_if_false @FINALEB_7282
if 
  Char.IsDead(47@)
goto_if_false @FINALEB_7282
Char.MarkAsNoLongerNeeded(47@)
150@ = 2

:FINALEB_7282
if 
  151@ == 1
goto_if_false @FINALEB_7328
if 
  Char.IsDead(48@)
goto_if_false @FINALEB_7328
Char.MarkAsNoLongerNeeded(48@)
151@ = 2

:FINALEB_7328
132@ = 3

:FINALEB_7335
if 
  132@ == 3
goto_if_false @FINALEB_8942
if 
  Char.IsInArea3D($scplayer, 2571.39, -1308.59, 1041.4, 2584.08, -1272.85, 1047.02, False)
goto_if_false @FINALEB_8942
Streaming.MarkModelAsNoLongerNeeded(349)
Blip.Remove(119@)
Blip.Remove(118@)
118@ = Blip.AddForCoord(2565.56, -1301.7, 1030.97)
Blip.SetEntryExit(118@, 2540.83, -1304.05, 1.0)
Blip.Remove(119@)
World.RemoveAllScriptFires
Char.Delete(40@)
Char.Delete(41@)
Streaming.MarkModelAsNoLongerNeeded(366)
61@ = ScriptFire.Start(2575.774, -1283.055, 1042.133, 0, 3)
62@ = ScriptFire.Start(2581.744, -1297.517, 1039.02, 0, 1)
63@ = ScriptFire.Start(2570.414, -1300.047, 1036.781, 0, 3)
64@ = ScriptFire.Start(2568.78, -1299.987, 1036.781, 0, 3)
65@ = ScriptFire.Start(2577.247, -1294.814, 1034.048, 0, 1)
66@ = ScriptFire.Start(2566.833, -1282.489, 1030.43, 0, 3)
67@ = ScriptFire.Start(2567.984, -1284.974, 1030.43, 0, 2)
68@ = ScriptFire.Start(2572.402, -1304.581, 1030.43, 0, 2)
69@ = ScriptFire.Start(2570.79, -1305.299, 1030.43, 0, 1)
70@ = ScriptFire.Start(2556.55, -1301.88, 1029.82, 0, 3)
71@ = ScriptFire.Start(2556.83, -1303.91, 1029.42, 0, 2)
72@ = ScriptFire.Start(2556.01, -1305.31, 1029.82, 0, 3)
73@ = ScriptFire.Start(2553.16, -1297.94, 1029.42, 0, 2)
74@ = ScriptFire.Start(2552.43, -1297.31, 1029.82, 0, 2)
75@ = ScriptFire.Start(2552.15, -1294.97, 1029.42, 0, 3)
76@ = ScriptFire.Start(2547.77, -1285.41, 1029.82, 0, 3)
77@ = ScriptFire.Start(2547.4, -1284.33, 1029.42, 0, 1)
78@ = ScriptFire.Start(2547.77, -1282.32, 1029.82, 0, 3)
79@ = ScriptFire.Start(2545.93, -1292.47, 1029.42, 0, 3)
80@ = ScriptFire.Start(2545.48, -1290.81, 1029.82, 0, 1)
81@ = ScriptFire.Start(2544.11, -1292.71, 1029.42, 0, 2)
82@ = ScriptFire.Start(2539.75, -1299.17, 1029.82, 0, 1)
83@ = ScriptFire.Start(2539.25, -1297.76, 1029.42, 0, 2)
84@ = ScriptFire.Start(2540.58, -1280.24, 1036.78, 0, 2)
85@ = ScriptFire.Start(2540.4, -1281.22, 1036.78, 0, 1)
86@ = ScriptFire.Start(2529.85, -1294.27, 1036.8, 0, 2)
87@ = ScriptFire.Start(2545.85, -1307.04, 1036.78, 0, 2)
88@ = ScriptFire.Start(2547.47, -1306.59, 1036.78, 0, 1)
34@ = Char.Create(PedType.Mission1, 102, 2579.905, -1291.163, 1043.125)
Char.SetHeading(34@, 177.191)
Char.SetDecisionMaker(34@, 97@)
Char.GiveWeapon(34@, WeaponType.M4, 99999)
Char.SetAreaVisible(34@, 2)
137@ = 0
35@ = Char.Create(PedType.Mission1, 104, 2567.413, -1305.324, 1036.781)
Char.SetHeading(35@, 268.0134)
Char.SetDecisionMaker(35@, 97@)
Char.GiveWeapon(35@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(35@, 2)
Char.SetAreaVisible(35@, 2)
Char.SetHealth(35@, 150)
Char.SetMaxHealth(35@, 150)
138@ = 0
36@ = Char.Create(PedType.Mission1, 109, 2572.115, -1301.504, 1036.781)
Char.SetHeading(36@, 61.2775)
Char.SetDecisionMaker(36@, 97@)
Char.GiveWeapon(36@, WeaponType.Extinguisher, 99999)
Char.SetShootRate(36@, 20)
Char.SetAreaVisible(36@, 2)
Char.SetHealth(36@, 5)
Task.ShootAtCoord(36@, 2570.207, -1300.238, 1037.059, 650000)
139@ = 0
37@ = Char.Create(PedType.Mission1, 102, 2575.007, -1284.838, 1030.427)
Char.SetHeading(37@, 170.5391)
Char.SetDecisionMaker(37@, 97@)
Char.GiveWeapon(37@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(37@, 2)
Char.SetAreaVisible(37@, 2)
140@ = 0
if 
  140@ == 0
goto_if_false @FINALEB_8547
if 
  not Char.IsDead(37@)
goto_if_false @FINALEB_8547
set_lvar_int_to_lvar_int 104@ = 37@
gosub @FINALEB_17738
140@ = 1

:FINALEB_8547
38@ = Char.Create(PedType.Mission1, 104, 2568.075, -1293.628, 1030.43)
Char.SetHeading(38@, 356.7112)
Char.SetDecisionMaker(38@, 97@)
Char.GiveWeapon(38@, WeaponType.M4, 99999)
Char.SetAreaVisible(38@, 2)
Char.SetHealth(38@, 150)
Char.SetMaxHealth(38@, 150)
141@ = 0
if 
  141@ == 0
goto_if_false @FINALEB_8687
if 
  not Char.IsDead(38@)
goto_if_false @FINALEB_8687
set_lvar_int_to_lvar_int 104@ = 38@
gosub @FINALEB_17694
141@ = 1

:FINALEB_8687
39@ = Char.Create(PedType.Mission1, 109, 2570.626, -1297.5, 1030.427)
Char.SetHeading(39@, 3.5755)
Char.SetDecisionMaker(39@, 97@)
Char.GiveWeapon(39@, WeaponType.M4, 99999)
Char.SetAreaVisible(39@, 2)
142@ = 0
if 
  142@ == 0
goto_if_false @FINALEB_8811
if 
  not Char.IsDead(39@)
goto_if_false @FINALEB_8811
set_lvar_int_to_lvar_int 104@ = 39@
gosub @FINALEB_17694
142@ = 1

:FINALEB_8811
40@ = Char.Create(PedType.Mission1, 102, 2570.947, -1301.719, 1030.43)
Char.SetHeading(40@, 359.8018)
Char.SetDecisionMaker(40@, 97@)
Char.GiveWeapon(40@, WeaponType.M4, 99999)
Char.SetAreaVisible(40@, 2)
143@ = 0
if 
  143@ == 0
goto_if_false @FINALEB_8935
if 
  not Char.IsDead(40@)
goto_if_false @FINALEB_8935
set_lvar_int_to_lvar_int 104@ = 40@
gosub @FINALEB_17694
143@ = 1

:FINALEB_8935
132@ = 4

:FINALEB_8942
if 
  132@ == 4
goto_if_false @FINALEB_10782
if 
  137@ == 0
goto_if_false @FINALEB_9102
if 
  not Char.IsDead(34@)
goto_if_false @FINALEB_9102
if or
  Char.LocateAnyMeans3D($scplayer, 2577.6, -1289.91, 1043.77, 5.0, 5.0, 3.0, False)
  Char.HasBeenDamagedByChar(34@, $scplayer)
goto_if_false @FINALEB_9102
set_lvar_int_to_lvar_int 104@ = 34@
106@ = 2579.905
107@ = -1304.985
108@ = 1036.773
gosub @FINALEB_17639
137@ = 1

:FINALEB_9102
if 
  138@ == 0
goto_if_false @FINALEB_9207
if 
  not Char.IsDead(35@)
goto_if_false @FINALEB_9207
if or
  Char.IsInArea3D($scplayer, 2577.88, -1309.87, 1036.2, 2563.87, -1289.87, 1042.68, False)
  Char.HasBeenDamagedByChar(35@, $scplayer)
goto_if_false @FINALEB_9207
Task.KillCharOnFoot(35@, $scplayer)
138@ = 1

:FINALEB_9207
if 
  143@ == 1
goto_if_false @FINALEB_9379
if 
  not Char.IsDead(40@)
goto_if_false @FINALEB_9379
if or
  Char.IsInArea3D($scplayer, 2573.3, -1281.03, 1028.8, 2563.7, -1300.61, 1034.0, False)
  Char.HasBeenDamagedByChar(40@, $scplayer)
goto_if_false @FINALEB_9379
set_lvar_int_to_lvar_int 104@ = 40@
106@ = 2570.947
107@ = -1301.719
108@ = 1030.43
113@ = 2558.722
114@ = -1301.829
115@ = 1030.43
gosub @FINALEB_17776
143@ = 2

:FINALEB_9379
if 
  137@ == 1
goto_if_false @FINALEB_9425
if 
  Char.IsDead(34@)
goto_if_false @FINALEB_9425
Char.MarkAsNoLongerNeeded(34@)
137@ = 2

:FINALEB_9425
if 
  138@ == 1
goto_if_false @FINALEB_9471
if 
  Char.IsDead(35@)
goto_if_false @FINALEB_9471
Char.MarkAsNoLongerNeeded(35@)
138@ = 2

:FINALEB_9471
if 
  139@ == 1
goto_if_false @FINALEB_9517
if 
  Char.IsDead(36@)
goto_if_false @FINALEB_9517
Char.MarkAsNoLongerNeeded(36@)
139@ = 2

:FINALEB_9517
if 
  140@ == 1
goto_if_false @FINALEB_9563
if 
  Char.IsDead(37@)
goto_if_false @FINALEB_9563
Char.MarkAsNoLongerNeeded(37@)
140@ = 2

:FINALEB_9563
if 
  141@ == 1
goto_if_false @FINALEB_9609
if 
  Char.IsDead(38@)
goto_if_false @FINALEB_9609
Char.MarkAsNoLongerNeeded(38@)
141@ = 2

:FINALEB_9609
if 
  142@ == 1
goto_if_false @FINALEB_9655
if 
  Char.IsDead(39@)
goto_if_false @FINALEB_9655
Char.MarkAsNoLongerNeeded(39@)
142@ = 2

:FINALEB_9655
if or
  143@ == 1
  143@ == 1
goto_if_false @FINALEB_9708
if 
  Char.IsDead(40@)
goto_if_false @FINALEB_9708
Char.MarkAsNoLongerNeeded(40@)
143@ = 2

:FINALEB_9708
if 
  Char.LocateAnyMeans3D($scplayer, 2565.94, -1301.96, 1030.77, 8.0, 8.0, 3.0, False)
goto_if_false @FINALEB_10782
Blip.Remove(118@)
118@ = Blip.AddForCoord(2528.78, -1293.94, 1030.86)
Blip.SetEntryExit(118@, 2540.83, -1304.05, 1.0)
Char.Delete(42@)
Char.Delete(43@)
Char.Delete(44@)
Char.Delete(45@)
Char.Delete(46@)
Char.Delete(47@)
Char.Delete(48@)
43@ = Char.Create(PedType.Mission1, 102, 2549.162, -1291.369, 1030.467)
Char.SetHeading(43@, 275.0)
Char.SetDecisionMaker(43@, 97@)
Char.GiveWeapon(43@, WeaponType.M4, 99999)
Char.SetAreaVisible(43@, 2)
Char.SetHealth(43@, 150)
Char.SetMaxHealth(43@, 150)
146@ = 0
if 
  146@ == 0
goto_if_false @FINALEB_9976
if 
  not Char.IsDead(43@)
goto_if_false @FINALEB_9976
set_lvar_int_to_lvar_int 104@ = 43@
gosub @FINALEB_17694
146@ = 1

:FINALEB_9976
44@ = Char.Create(PedType.Mission1, 104, 2534.88, -1292.009, 1031.469)
Char.SetHeading(44@, 275.0)
Char.SetDecisionMaker(44@, 97@)
Char.GiveWeapon(44@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(44@, 2)
Char.SetAreaVisible(44@, 2)
147@ = 0
if 
  147@ == 0
goto_if_false @FINALEB_10107
if 
  not Char.IsDead(44@)
goto_if_false @FINALEB_10107
set_lvar_int_to_lvar_int 104@ = 44@
gosub @FINALEB_17738
147@ = 1

:FINALEB_10107
45@ = Char.Create(PedType.Mission1, 104, 2554.033, -1287.08, 1030.43)
Char.SetHeading(45@, 270.0)
Char.SetDecisionMaker(45@, 97@)
Char.GiveWeapon(45@, WeaponType.M4, 99999)
Char.SetAreaVisible(45@, 2)
148@ = 0
if 
  148@ == 0
goto_if_false @FINALEB_10279
if 
  not Char.IsDead(45@)
goto_if_false @FINALEB_10279
set_lvar_int_to_lvar_int 104@ = 45@
106@ = 2554.033
107@ = -1287.08
108@ = 1030.43
112@ = 1200
116@ = 270.0
gosub @FINALEB_18172
148@ = 1

:FINALEB_10279
46@ = Char.Create(PedType.Mission1, 104, 2546.007, -1287.15, 1030.427)
Char.SetHeading(46@, 270.0)
Char.SetDecisionMaker(46@, 97@)
Char.GiveWeapon(46@, WeaponType.M4, 99999)
Char.SetAreaVisible(46@, 2)
149@ = 0
if 
  149@ == 0
goto_if_false @FINALEB_10451
if 
  not Char.IsDead(46@)
goto_if_false @FINALEB_10451
set_lvar_int_to_lvar_int 104@ = 46@
106@ = 2546.007
107@ = -1287.15
108@ = 1030.427
112@ = 2000
116@ = 270.0
gosub @FINALEB_18172
149@ = 1

:FINALEB_10451
47@ = Char.Create(PedType.Mission1, 109, 2530.397, -1291.381, 1036.781)
Char.SetHeading(47@, 278.2231)
Char.SetDecisionMaker(47@, 97@)
Char.GiveWeapon(47@, WeaponType.M4, 99999)
Char.SetAreaVisible(47@, 2)
150@ = 0
if 
  150@ == 0
goto_if_false @FINALEB_10575
if 
  not Char.IsDead(47@)
goto_if_false @FINALEB_10575
set_lvar_int_to_lvar_int 104@ = 47@
gosub @FINALEB_17738
150@ = 1

:FINALEB_10575
48@ = Char.Create(PedType.Mission1, 102, 2540.443, -1306.621, 1036.781)
Char.SetHeading(48@, 328.6817)
Char.SetDecisionMaker(48@, 97@)
Char.GiveWeapon(48@, WeaponType.M4, 99999)
Char.SetAreaVisible(48@, 2)
151@ = 0
if 
  151@ == 0
goto_if_false @FINALEB_10699
if 
  not Char.IsDead(48@)
goto_if_false @FINALEB_10699
set_lvar_int_to_lvar_int 104@ = 48@
gosub @FINALEB_17738
151@ = 1

:FINALEB_10699
42@ = Char.Create(PedType.Mission1, 109, 2535.111, -1304.992, 1030.43)
Char.SetHeading(42@, 328.6817)
Char.SetDecisionMaker(42@, 97@)
Char.GiveWeapon(42@, WeaponType.M4, 99999)
Char.SetAreaVisible(42@, 2)
Task.KillCharOnFoot(42@, $scplayer)
145@ = 0
132@ = 5

:FINALEB_10782
if 
  132@ == 5
goto_if_false @FINALEB_12430
if 
  146@ == 1
goto_if_false @FINALEB_10913
if 
  not Char.IsDead(43@)
goto_if_false @FINALEB_10913
if or
  Char.IsInArea3D($scplayer, 2553.85, -1308.35, 1028.6, 2540.27, -1275.04, 1033.2, False)
  Char.HasBeenDamagedByChar(43@, $scplayer)
  Player.IsTargetingChar($player1, 43@)
goto_if_false @FINALEB_10913
Task.KillCharOnFoot(43@, $scplayer)
146@ = 2

:FINALEB_10913
if 
  147@ == 1
goto_if_false @FINALEB_11026
if 
  not Char.IsDead(44@)
goto_if_false @FINALEB_11026
if or
  Char.IsInArea3D($scplayer, 2542.24, -1308.67, 1028.09, 2527.86, -1276.9, 1033.19, False)
  Char.HasBeenDamagedByChar(44@, $scplayer)
  Player.IsTargetingChar($player1, 44@)
goto_if_false @FINALEB_11026
Task.KillCharOnFoot(44@, $scplayer)
147@ = 2

:FINALEB_11026
if or
  146@ == 1
  145@ == 2
goto_if_false @FINALEB_11079
if 
  Char.IsDead(43@)
goto_if_false @FINALEB_11079
Char.MarkAsNoLongerNeeded(43@)
146@ = 3

:FINALEB_11079
if or
  147@ == 1
  145@ == 2
goto_if_false @FINALEB_11132
if 
  Char.IsDead(44@)
goto_if_false @FINALEB_11132
Char.MarkAsNoLongerNeeded(44@)
147@ = 3

:FINALEB_11132
if 
  148@ == 1
goto_if_false @FINALEB_11260
if 
  not Char.IsDead(45@)
goto_if_false @FINALEB_11260
if or
  Char.HasBeenDamagedByChar(45@, $scplayer)
  Char.LocateAnyMeansChar3D(45@, $scplayer, 5.0, 5.0, 3.0, False)
goto_if_false @FINALEB_11260
if 
  not Char.IsDead(45@)
goto_if_false @FINALEB_11248
Task.KillCharOnFoot(45@, $scplayer)
148@ = 2
goto @FINALEB_11260

:FINALEB_11248
Char.MarkAsNoLongerNeeded(45@)
148@ = 2

:FINALEB_11260
if or
  148@ == 1
  148@ == 2
goto_if_false @FINALEB_11313
if 
  Char.IsDead(45@)
goto_if_false @FINALEB_11313
Char.MarkAsNoLongerNeeded(45@)
148@ = 3

:FINALEB_11313
if 
  149@ == 1
goto_if_false @FINALEB_11441
if 
  not Char.IsDead(46@)
goto_if_false @FINALEB_11441
if or
  Char.HasBeenDamagedByChar(46@, $scplayer)
  Char.LocateAnyMeansChar3D(46@, $scplayer, 5.0, 5.0, 3.0, False)
goto_if_false @FINALEB_11441
if 
  not Char.IsDead(46@)
goto_if_false @FINALEB_11429
Task.KillCharOnFoot(46@, $scplayer)
149@ = 2
goto @FINALEB_11441

:FINALEB_11429
Char.MarkAsNoLongerNeeded(46@)
149@ = 2

:FINALEB_11441
if or
  149@ == 1
  149@ == 2
goto_if_false @FINALEB_11494
if 
  Char.IsDead(46@)
goto_if_false @FINALEB_11494
Char.MarkAsNoLongerNeeded(46@)
149@ = 3

:FINALEB_11494
if 
  150@ == 1
goto_if_false @FINALEB_11540
if 
  Char.IsDead(47@)
goto_if_false @FINALEB_11540
Char.MarkAsNoLongerNeeded(47@)
150@ = 2

:FINALEB_11540
if 
  151@ == 1
goto_if_false @FINALEB_11586
if 
  Char.IsDead(48@)
goto_if_false @FINALEB_11586
Char.MarkAsNoLongerNeeded(48@)
151@ = 2

:FINALEB_11586
if 
  145@ == 1
goto_if_false @FINALEB_11632
if 
  Char.IsDead(42@)
goto_if_false @FINALEB_11632
Char.MarkAsNoLongerNeeded(42@)
145@ = 2

:FINALEB_11632
if 
  Char.LocateAnyMeans3D($scplayer, 2528.53, -1293.96, 1030.86, 8.0, 8.0, 4.0, False)
goto_if_false @FINALEB_12430
Char.Delete(34@)
Char.Delete(35@)
Char.Delete(36@)
Char.Delete(37@)
Char.Delete(38@)
Char.Delete(39@)
Char.Delete(40@)
ScriptFire.Remove(61@)
ScriptFire.Remove(62@)
ScriptFire.Remove(63@)
ScriptFire.Remove(64@)
ScriptFire.Remove(65@)
ScriptFire.Remove(66@)
ScriptFire.Remove(67@)
ScriptFire.Remove(68@)
ScriptFire.Remove(69@)
ScriptFire.Remove(70@)
ScriptFire.Remove(71@)
ScriptFire.Remove(72@)
ScriptFire.Remove(73@)
ScriptFire.Remove(74@)
ScriptFire.Remove(76@)
ScriptFire.Remove(78@)
ScriptFire.Remove(82@)
ScriptFire.Remove(84@)
ScriptFire.Remove(85@)
ScriptFire.Remove(86@)
61@ = ScriptFire.Start(2523.92, -1299.21, 1030.78, 0, 3)
62@ = ScriptFire.Start(2523.66, -1297.4, 1030.8, 0, 1)
63@ = ScriptFire.Start(2528.97, -1304.32, 1030.77, 0, 2)
64@ = ScriptFire.Start(2525.5, -1321.59, 1030.75, 0, 2)
66@ = ScriptFire.Start(2541.0, -1311.02, 1028.09, 0, 2)
Pickup.Remove(130@)
130@ = Pickup.CreateWithAmmo(366, PickupType.Once, 99999, 2534.036, -1321.212, 1031.469)
67@ = ScriptFire.Start(2540.69, -1320.01, 1030.68, 0, 3)
68@ = ScriptFire.Start(2540.2, -1316.76, 1030.64, 0, 3)
69@ = ScriptFire.Start(2540.61, -1317.43, 1030.62, 0, 3)
70@ = ScriptFire.Start(2540.35, -1318.39, 1030.59, 0, 3)
71@ = ScriptFire.Start(2540.5, -1319.58, 1030.61, 0, 3)
Blip.Remove(118@)
118@ = Blip.AddForCoord(2540.92, -1304.14, 1024.39)
Blip.SetEntryExit(118@, 2540.83, -1304.05, 1.0)
34@ = Char.Create(PedType.Mission1, 102, 2527.368, -1319.587, 1030.43)
Char.SetHeading(34@, 1.4222)
Char.SetDecisionMaker(34@, 97@)
Char.GiveWeapon(34@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(34@, 2)
Char.SetAreaVisible(34@, 2)
Char.SetAccuracy(34@, 30)
137@ = 0
35@ = Char.Create(PedType.Mission1, 104, 2528.284, -1314.865, 1030.43)
Char.SetHeading(35@, 3.4628)
Char.SetDecisionMaker(35@, 97@)
Char.GiveWeapon(35@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(35@, 2)
Char.SetAreaVisible(35@, 2)
138@ = 0
if 
  138@ == 0
goto_if_false @FINALEB_12348
if 
  not Char.IsDead(35@)
goto_if_false @FINALEB_12348
set_lvar_int_to_lvar_int 104@ = 35@
gosub @FINALEB_17694
138@ = 1

:FINALEB_12348
36@ = Char.Create(PedType.Mission1, 109, 2524.055, -1309.533, 1030.43)
Char.SetHeading(36@, 7.001)
Char.SetDecisionMaker(36@, 97@)
Char.GiveWeapon(36@, WeaponType.MicroUzi, 99999)
Char.SetAreaVisible(36@, 2)
Char.SetAccuracy(36@, 30)
139@ = 0
132@ = 6

:FINALEB_12430
if 
  132@ == 6
goto_if_false @FINALEB_12840
if 
  137@ == 0
goto_if_false @FINALEB_12561
if 
  not Char.IsDead(34@)
goto_if_false @FINALEB_12561
if or
  Char.LocateAnyMeans3D($scplayer, 2527.07, -1293.72, 1029.5, 3.0, 3.0, 3.5, False)
  Char.HasBeenDamagedByChar(34@, $scplayer)
  Player.IsTargetingChar($player1, 34@)
goto_if_false @FINALEB_12561
Task.KillCharOnFoot(34@, $scplayer)
137@ = 1

:FINALEB_12561
if 
  139@ == 0
goto_if_false @FINALEB_12669
if 
  not Char.IsDead(36@)
goto_if_false @FINALEB_12669
if or
  Char.LocateAnyMeansChar3D($scplayer, 36@, 7.0, 7.0, 3.5, False)
  Char.HasBeenDamagedByChar(36@, $scplayer)
  Player.IsTargetingChar($player1, 36@)
goto_if_false @FINALEB_12669
set_lvar_int_to_lvar_int 104@ = 36@
gosub @FINALEB_17848
139@ = 1

:FINALEB_12669
if 
  137@ == 1
goto_if_false @FINALEB_12715
if 
  Char.IsDead(34@)
goto_if_false @FINALEB_12715
Char.MarkAsNoLongerNeeded(34@)
137@ = 2

:FINALEB_12715
if 
  138@ == 1
goto_if_false @FINALEB_12761
if 
  Char.IsDead(35@)
goto_if_false @FINALEB_12761
Char.MarkAsNoLongerNeeded(35@)
138@ = 2

:FINALEB_12761
if 
  139@ == 1
goto_if_false @FINALEB_12807
if 
  Char.IsDead(36@)
goto_if_false @FINALEB_12807
Char.MarkAsNoLongerNeeded(36@)
139@ = 2

:FINALEB_12807
50@ = Char.GetAreaVisible($scplayer)
if 
  50@ == 0
goto_if_false @FINALEB_12840
132@ = 7

:FINALEB_12840
if 
  132@ == 7
goto_if_false @FINALEB_14000
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
World.ClearArea(2506.218, -1293.093, 200.0, 200.0, False)
Streaming.RequestAnimation("DAM_JUMP")
Streaming.RequestAnimation("FINALE")
Streaming.LoadAllModelsNow

:FINALEB_12920
if or
  not Streaming.HasAnimationLoaded("DAM_JUMP")
  not Streaming.HasAnimationLoaded("FINALE")
goto_if_false @FINALEB_12964
wait 0
goto @FINALEB_12920

:FINALEB_12964
Blip.Remove(118@)
118@ = Blip.AddForCoord(2522.82, -1272.52, 34.151)
Char.SetCoordinates($scplayer, 2538.657, -1304.358, 34.0)
Streaming.MarkModelAsNoLongerNeeded(104)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.RemoveAnimation("SWAT")
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(109)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(356)
Streaming.MarkModelAsNoLongerNeeded(366)
Char.Delete(37@)
Char.Delete(38@)
Char.Delete(39@)
Char.Delete(40@)
Char.Delete(41@)
Char.Delete(42@)
Char.Delete(43@)
Char.Delete(44@)
Char.Delete(45@)
Char.Delete(46@)
Char.Delete(47@)
Char.Delete(48@)
Pickup.Remove(129@)
Pickup.Remove(130@)
Pickup.Remove(125@)
Pickup.Remove(120@)
Pickup.Remove(121@)
Pickup.Remove(122@)
Pickup.Remove(126@)
Pickup.Remove(123@)
Char.MarkAsNoLongerNeeded(34@)
Char.MarkAsNoLongerNeeded(35@)
Char.MarkAsNoLongerNeeded(36@)
34@ = Char.Create(PedType.Mission1, 109, 2543.2, -1277.645, 33.9609)
Char.SetHeading(34@, 7.001)
Char.SetDecisionMaker(34@, 97@)
Char.GiveWeapon(34@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(34@, 2)
Task.KillCharOnFoot(34@, $scplayer)
Char.SetAccuracy(34@, 10)
137@ = 1
35@ = Char.Create(PedType.Mission1, 102, 2536.917, -1283.446, 33.9609)
Char.SetHeading(35@, 7.001)
Char.SetDecisionMaker(35@, 97@)
Char.GiveWeapon(35@, WeaponType.M4, 99999)
Char.SetAccuracy(35@, 10)
138@ = 0
if 
  138@ == 0
goto_if_false @FINALEB_13376
if 
  not Char.IsDead(35@)
goto_if_false @FINALEB_13376
set_lvar_int_to_lvar_int 104@ = 35@
gosub @FINALEB_17738
138@ = 1

:FINALEB_13376
36@ = Char.Create(PedType.Mission1, 102, 2531.656, -1287.27, 33.9602)
Char.SetHeading(36@, 7.001)
Char.SetDecisionMaker(36@, 97@)
Char.GiveWeapon(36@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(36@, 2)
Char.SetAccuracy(36@, 10)
139@ = 0
if 
  139@ == 0
goto_if_false @FINALEB_13507
if 
  not Char.IsDead(36@)
goto_if_false @FINALEB_13507
set_lvar_int_to_lvar_int 104@ = 36@
gosub @FINALEB_17694
139@ = 1

:FINALEB_13507
37@ = Char.Create(PedType.Mission1, 109, 2539.569, -1268.471, 33.9609)
Char.SetHeading(37@, 2.21)
Char.SetDecisionMaker(37@, 97@)
Char.GiveWeapon(37@, WeaponType.M4, 99999)
Task.KillCharOnFoot(37@, $scplayer)
Char.SetAccuracy(37@, 20)
140@ = 1
World.RemoveAllScriptFires
79@ = ScriptFire.Start(2538.45, -1281.4, 34.34, 0, 3)
61@ = ScriptFire.Start(2527.64, -1312.0, 33.9, 0, 2)
62@ = ScriptFire.Start(2527.58, -1303.3, 34.4, 0, 1)
63@ = ScriptFire.Start(2532.52, -1306.39, 33.9, 0, 2)
64@ = ScriptFire.Start(2528.08, -1284.9, 34.3, 0, 2)
65@ = ScriptFire.Start(2544.03, -1269.3, 34.2, 0, 1)
66@ = ScriptFire.Start(2536.26, -1302.49, 34.0, 0, 2)
67@ = ScriptFire.Start(2532.58, -1291.07, 34.0, 0, 1)
71@ = ScriptFire.Start(2528.64, -1269.64, 34.0, 0, 1)
72@ = ScriptFire.Start(2534.57, -1284.5, 34.04, 0, 1)
70@ = ScriptFire.Start(2531.99, -1268.71, 34.0, 0, 2)
69@ = ScriptFire.Start(2530.987, -1269.858, 33.8, 0, 3)
74@ = ScriptFire.Start(2532.39, -1270.4, 34.0, 0, 3)
75@ = ScriptFire.Start(2531.165, -1271.961, 34.0, 0, 2)
76@ = ScriptFire.Start(2532.529, -1272.169, 34.0, 0, 1)
77@ = ScriptFire.Start(2532.395, -1273.24, 34.0, 0, 2)
78@ = ScriptFire.Start(2531.94, -1274.46, 33.8, 0, 3)
132@ = 8

:FINALEB_14000
if 
  132@ == 8
goto_if_false @FINALEB_14314
if 
  137@ == 1
goto_if_false @FINALEB_14064
if 
  Char.IsDead(34@)
goto_if_false @FINALEB_14064
Char.MarkAsNoLongerNeeded(34@)
137@ = 2

:FINALEB_14064
if 
  138@ == 1
goto_if_false @FINALEB_14110
if 
  Char.IsDead(35@)
goto_if_false @FINALEB_14110
Char.MarkAsNoLongerNeeded(35@)
138@ = 2

:FINALEB_14110
if 
  139@ == 1
goto_if_false @FINALEB_14156
if 
  Char.IsDead(36@)
goto_if_false @FINALEB_14156
Char.MarkAsNoLongerNeeded(36@)
139@ = 2

:FINALEB_14156
if 
  140@ == 1
goto_if_false @FINALEB_14202
if 
  Char.IsDead(37@)
goto_if_false @FINALEB_14202
Char.MarkAsNoLongerNeeded(37@)
140@ = 2

:FINALEB_14202
if 
  Char.IsInArea3D($scplayer, 2545.59, -1278.26, 31.36, 2516.65, -1259.84, 37.0, False)
goto_if_false @FINALEB_14314
World.RemoveAllScriptFires
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
60@ = 0

:FINALEB_14266
if 
  9 > 60@
goto_if_false @FINALEB_14307
Particle.Kill(51@(60@,9i))
60@ += 1
goto @FINALEB_14266

:FINALEB_14307
132@ = 9

:FINALEB_14314
if 
  132@ == 9
goto_if_false @FINALEB_14943
Blip.Remove(118@)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.SetDarknessEffect(False, -1)
Game.SetNightVision(False)
Player.TakeOffGoggles($player1, False)
61@ = ScriptFire.Start(2532.62, -1272.65, 34.31, 0, 1)
62@ = ScriptFire.Start(2532.88, -1272.75, 34.12, 0, 2)
64@ = ScriptFire.Start(2527.9, -1272.5, 34.8, 0, 2)
65@ = ScriptFire.Start(2533.743, -1272.434, 34.0, 0, 3)
66@ = ScriptFire.Start(2533.743, -1272.434, 34.0, 0, 2)
70@ = ScriptFire.Start(2531.99, -1268.71, 34.0, 0, 2)
69@ = ScriptFire.Start(2530.987, -1269.858, 33.8, 0, 3)
74@ = ScriptFire.Start(2532.39, -1270.4, 34.0, 0, 1)
75@ = ScriptFire.Start(2531.165, -1271.961, 34.0, 0, 2)
76@ = ScriptFire.Start(2532.529, -1272.169, 34.0, 0, 1)
77@ = ScriptFire.Start(2532.395, -1273.24, 34.0, 0, 3)
73@ = ScriptFire.Start(2531.94, -1274.46, 33.8, 0, 1)
63@ = ScriptFire.Start(2532.433, -1275.658, 34.0, 0, 3)
Game.SetMaxFireGenerations(3)
$smokehealth_fa = 2526.989
$camx_fb = -1272.577
$camy_fb = 34.8419
$camz_fb = 2527.988
$lookcamx_fb = -1272.557
$lookcamy_fb = 34.8799
Char.Delete(34@)
Char.Delete(35@)
Char.Delete(36@)
Char.Delete(37@)
Char.Delete(38@)
Char.SetCoordinates($scplayer, 2538.45, -1281.4, 34.34)
Char.SetHeading($scplayer, 270.0)
Camera.SetFixedPosition($smokehealth_fa, $camx_fb, $camy_fb, 0.0, 0.0, 0.0)
Camera.PointAtPoint($camz_fb, $lookcamx_fb, $lookcamy_fb, SwitchType.JumpCut)
wait 2000
Char.SetCoordinates($scplayer, 2533.743, -1272.434, 34.0)
Char.SetHeading($scplayer, 90.0)
wait 500
Task.PlayAnimNonInterruptable($scplayer, "JUMP_ROLL", "DAM_JUMP", 8.0, False, False, False, True, -1)
Clock.SetTimeOfDay(17, 0)
TIMERA = 0
Clock.SetTimeScale(0.3)
132@ = 10

:FINALEB_14943
if 
  132@ == 10
goto_if_false @FINALEB_16158
Camera.SetFixedPosition($smokehealth_fa, $camx_fb, $camy_fb, 0.0, 0.0, 0.0)
Camera.PointAtPoint($camz_fb, $lookcamx_fb, $lookcamy_fb, SwitchType.JumpCut)
if 
  2512.28 >= $smokehealth_fa
goto_if_false @FINALEB_15042
TIMERA = 0
153@ = 12
132@ = 11

:FINALEB_15042
if 
  TIMERA > 500
goto_if_false @FINALEB_15071
sub_timed_val_from_float_var $smokehealth_fa -=@ 0.18

:FINALEB_15071
if 
  TIMERA > 0
goto_if_false @FINALEB_15138
if 
  153@ == 0
goto_if_false @FINALEB_15138
Fx.AddExplosionVariableShake(2538.4, -1278.4, 34.04, 4, 0.2)
153@ = 1

:FINALEB_15138
if 
  TIMERA > 100
goto_if_false @FINALEB_15181
if 
  153@ == 1
goto_if_false @FINALEB_15181
153@ = 2

:FINALEB_15181
if 
  TIMERA > 250
goto_if_false @FINALEB_15259
if 
  153@ == 2
goto_if_false @FINALEB_15259
Fx.AddExplosionVariableShake(2540.24, -1270.59, 34.07, 0, 0.2)
ScriptFire.Remove(64@)
ScriptFire.Remove(61@)
153@ = 3

:FINALEB_15259
if 
  TIMERA > 500
goto_if_false @FINALEB_15327
if 
  153@ == 3
goto_if_false @FINALEB_15327
Fx.AddExplosionVariableShake(2535.66, -1276.3, 34.34, 2, 0.2)
153@ = 4

:FINALEB_15327
if 
  TIMERA > 850
goto_if_false @FINALEB_15400
if 
  153@ == 4
goto_if_false @FINALEB_15400
Fx.AddExplosionVariableShake(2531.74, -1270.35, 34.39, 1, 0.2)
ScriptFire.Remove(64@)
153@ = 5

:FINALEB_15400
if 
  TIMERA > 1100
goto_if_false @FINALEB_15451
if 
  153@ == 5
goto_if_false @FINALEB_15451
Clock.SetTimeScale(0.35)
153@ = 6

:FINALEB_15451
if 
  TIMERA > 1298
goto_if_false @FINALEB_15531
if 
  153@ == 6
goto_if_false @FINALEB_15531
Clock.SetTimeScale(0.39)
Fx.AddExplosionVariableShake(2527.72, -1272.82, 34.26, 0, 0.2)
ScriptFire.Remove(65@)
153@ = 7

:FINALEB_15531
if 
  TIMERA > 1400
goto_if_false @FINALEB_15606
if 
  153@ == 7
goto_if_false @FINALEB_15606
Clock.SetTimeScale(0.42)
Fx.AddExplosionVariableShake(2529.54, -1270.12, 34.31, 2, 0.22)
153@ = 8

:FINALEB_15606
if 
  TIMERA > 1500
goto_if_false @FINALEB_15686
if 
  153@ == 8
goto_if_false @FINALEB_15686
Clock.SetTimeScale(0.44)
Fx.AddExplosionVariableShake(2524.15, -1272.31, 34.42, 4, 0.25)
ScriptFire.Remove(70@)
153@ = 9

:FINALEB_15686
if 
  TIMERA > 1600
goto_if_false @FINALEB_15806
if 
  153@ == 9
goto_if_false @FINALEB_15806
Clock.SetTimeScale(0.5)
Fx.AddExplosionVariableShake(2522.33, -1270.19, 34.19, 1, 0.3)
ScriptFire.Remove(61@)
ScriptFire.Remove(62@)
ScriptFire.Remove(65@)
ScriptFire.Remove(70@)
ScriptFire.Remove(69@)
ScriptFire.Remove(75@)
ScriptFire.Remove(76@)
ScriptFire.Remove(73@)
ScriptFire.Remove(63@)
153@ = 10

:FINALEB_15806
if 
  TIMERA > 1700
goto_if_false @FINALEB_16090
if 
  153@ == 10
goto_if_false @FINALEB_16090
Fx.AddExplosionVariableShake(2524.14, -1270.04, 34.19, 2, 0.25)
61@ = ScriptFire.Start(2523.17, -1269.18, 34.04, 0, 3)
62@ = ScriptFire.Start(2522.47, -1271.46, 34.15, 0, 2)
65@ = ScriptFire.Start(2523.68, -1272.35, 34.19, 0, 3)
70@ = ScriptFire.Start(2523.18, -1273.32, 34.06, 0, 2)
69@ = ScriptFire.Start(2522.8, -1274.45, 34.05, 0, 3)
75@ = ScriptFire.Start(2522.42, -1276.4, 34.05, 0, 2)
76@ = ScriptFire.Start(2520.32, -1273.41, 34.0, 0, 1)
73@ = ScriptFire.Start(2521.32, -1273.41, 34.0, 0, 1)
63@ = ScriptFire.Start(2520.93, -1269.28, 34.0, 0, 2)
153@ = 11

:FINALEB_16090
if 
  TIMERA > 1916
goto_if_false @FINALEB_16158
if 
  153@ == 11
goto_if_false @FINALEB_16158
Fx.AddExplosionVariableShake(2522.01, -1274.06, 34.2, 4, 0.2)
153@ = 12

:FINALEB_16158
if 
  132@ == 11
goto_if_false @FINALEB_17632
if 
  61.0 > $camy_fb
goto_if_false @FINALEB_16227
add_timed_val_to_float_var $camy_fb +=@ 0.1
sub_timed_val_from_float_var $smokehealth_fa -=@ 0.02
add_timed_val_to_float_var $lookcamy_fb +=@ 0.008

:FINALEB_16227
Camera.SetFixedPosition($smokehealth_fa, $camx_fb, $camy_fb, 0.0, 0.0, 0.0)
Camera.PointAtPoint($camz_fb, $lookcamx_fb, $lookcamy_fb, SwitchType.JumpCut)
if 
  153@ == 12
goto_if_false @FINALEB_16334
if 
  TIMERA > 1400
goto_if_false @FINALEB_16334
Fx.AddExplosionVariableShake(2521.46, -1268.02, 39.8, 0, 0.2)
153@ = 13

:FINALEB_16334
if 
  153@ == 13
goto_if_false @FINALEB_16402
if 
  TIMERA > 1670
goto_if_false @FINALEB_16402
Fx.AddExplosionVariableShake(2521.48, -1270.67, 40.32, 4, 0.25)
153@ = 14

:FINALEB_16402
if 
  153@ == 14
goto_if_false @FINALEB_16562
if 
  TIMERA > 1800
goto_if_false @FINALEB_16562
Fx.AddExplosionVariableShake(2521.32, -1275.86, 40.47, 2, 0.2)
ScriptFire.Remove(64@)
ScriptFire.Remove(66@)
ScriptFire.Remove(74@)
ScriptFire.Remove(69@)
64@ = ScriptFire.Start(2521.46, -1268.02, 39.8, 1, 2)
66@ = ScriptFire.Start(22521.48, -1270.67, 40.32, 1, 2)
74@ = ScriptFire.Start(2521.32, -1275.86, 40.47, 1, 1)
153@ = 15

:FINALEB_16562
if 
  153@ == 15
goto_if_false @FINALEB_16654
if 
  TIMERA > 1950
goto_if_false @FINALEB_16654
Fx.AddExplosionVariableShake(2521.42, -1273.18, 39.83, 2, 0.2)
Fx.AddExplosionVariableShake(2525.43, -1280.65, 40.28, 4, 0.2)
153@ = 16

:FINALEB_16654
if 
  153@ == 16
goto_if_false @FINALEB_16771
if 
  TIMERA > 2200
goto_if_false @FINALEB_16771
Fx.AddExplosionVariableShake(2521.27, -1270.64, 43.25, 2, 0.2)
ScriptFire.Remove(77@)
ScriptFire.Remove(63@)
ScriptFire.Remove(79@)
ScriptFire.Remove(78@)
ScriptFire.Remove(70@)
69@ = ScriptFire.Start(2525.43, -1280.65, 40.28, 1, 2)
153@ = 17

:FINALEB_16771
if 
  153@ == 17
goto_if_false @FINALEB_16887
if 
  TIMERA > 2568
goto_if_false @FINALEB_16887
Fx.AddExplosionVariableShake(2521.15, -1267.91, 43.37, 2, 0.2)
Fx.AddExplosionVariableShake(2525.89, -1281.0, 43.79, 4, 0.2)
70@ = ScriptFire.Start(2525.89, -1281.0, 43.79, 3, 3)
153@ = 18

:FINALEB_16887
if 
  153@ == 18
goto_if_false @FINALEB_17027
if 
  TIMERA > 3241
goto_if_false @FINALEB_17027
Fx.AddExplosionVariableShake(2520.86, -1273.39, 43.2, 0, 0.2)
77@ = ScriptFire.Start(2521.27, -1270.64, 43.25, 1, 3)
63@ = ScriptFire.Start(2521.15, -1267.91, 43.37, 2, 2)
79@ = ScriptFire.Start(2521.34, -1275.7, 43.26, 3, 1)
153@ = 19

:FINALEB_17027
if 
  153@ == 19
goto_if_false @FINALEB_17095
if 
  TIMERA > 3485
goto_if_false @FINALEB_17095
Fx.AddExplosionVariableShake(2521.34, -1275.7, 43.26, 4, 0.2)
153@ = 20

:FINALEB_17095
if 
  153@ == 20
goto_if_false @FINALEB_17163
if 
  TIMERA > 3708
goto_if_false @FINALEB_17163
Fx.AddExplosionVariableShake(2521.15, -1275.61, 47.83, 2, 0.2)
153@ = 21

:FINALEB_17163
if 
  153@ == 21
goto_if_false @FINALEB_17260
if 
  TIMERA > 4246
goto_if_false @FINALEB_17260
Fx.AddExplosionVariableShake(2521.04, -1272.97, 47.91, 0, 0.2)
ScriptFire.Remove(75@)
62@ = ScriptFire.Start(2525.88, -1279.99, 48.43, 3, 2)
153@ = 22

:FINALEB_17260
if 
  153@ == 22
goto_if_false @FINALEB_17362
if 
  TIMERA > 4708
goto_if_false @FINALEB_17362
Fx.AddExplosionVariableShake(2521.24, -1267.9, 48.15, 4, 0.2)
ScriptFire.Remove(61@)
ScriptFire.Remove(62@)
Fx.AddExplosionVariableShake(2525.88, -1279.99, 48.43, 2, 0.2)
153@ = 23

:FINALEB_17362
if 
  153@ == 23
goto_if_false @FINALEB_17502
if 
  TIMERA > 5000
goto_if_false @FINALEB_17502
Fx.AddExplosionVariableShake(2521.37, -1270.86, 48.35, 0, 0.2)
78@ = ScriptFire.Start(2521.15, -1275.61, 47.83, 3, 1)
61@ = ScriptFire.Start(2521.04, -1272.97, 47.91, 2, 2)
62@ = ScriptFire.Start(2521.24, -1267.9, 48.15, 3, 2)
153@ = 24

:FINALEB_17502
if 
  153@ == 24
goto_if_false @FINALEB_17632
if 
  TIMERA > 3000
goto_if_false @FINALEB_17632
Char.ClearTasksImmediately($scplayer)
Hud.ClearTimer($lookcamz_fb)
Streaming.RemoveAnimation("DAM_JUMP")
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(356)
Streaming.MarkModelAsNoLongerNeeded(366)
Weather.SetHeathazeEffect(False)
Camera.DoFade(1000, Fade.Out)

:FINALEB_17587
if 
  Camera.GetFadingStatus
goto_if_false @FINALEB_17611
wait 0
goto @FINALEB_17587

:FINALEB_17611
goto @FINALEB_18533
132@ = 11
153@ = 25

:FINALEB_17632
goto @FINALEB_718

:FINALEB_17639
99@ = Sequence.Open()
Task.GoStraightToCoord(-1, 106@, 107@, 108@, MoveState.Run, -1)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(99@)
Char.PerformSequence(104@, 99@)
Sequence.Clear(99@)
return 

:FINALEB_17694
100@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(100@)
Char.PerformSequence(104@, 100@)
Sequence.Clear(100@)
return 

:FINALEB_17738
101@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(101@)
Char.PerformSequence(104@, 101@)
Sequence.Clear(101@)
return 

:FINALEB_17776
111@ = Sequence.Open()
Task.GoStraightToCoord(-1, 106@, 107@, 108@, MoveState.Run, -1)
Task.GoStraightToCoord(-1, 113@, 114@, 115@, MoveState.Run, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(111@)
Char.PerformSequence(104@, 111@)
Sequence.Clear(111@)
return 

:FINALEB_17848
102@ = Sequence.Open()
Task.PlayAnim(-1, "CROUCH_ROLL_R", "PED", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(102@)
Char.PerformSequence(104@, 102@)
Sequence.Clear(102@)
return 

:FINALEB_17931
103@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_R", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootTimed(-1, $scplayer, 112@)
Task.StayInSamePlace(-1, False)
Task.CharSlideToCoordAndPlayAnim(-1, 106@, 107@, 108@, 116@, -1.0, "SWT_WLLSHOOT_OUT_R", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_R_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(103@, True)
Sequence.Close(103@)
Char.PerformSequence(104@, 103@)
Sequence.Clear(103@)
return 

:FINALEB_18172
105@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L", "SWAT", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLSHOOT_IN_L", "SWAT", 8.0, False, True, True, False, -1)
Task.StayInSamePlace(-1, True)
Task.KillCharOnFootTimed(-1, $scplayer, 112@)
Task.StayInSamePlace(-1, False)
Task.CharSlideToCoordAndPlayAnim(-1, 106@, 107@, 108@, 116@, -1.0, "SWT_WLLSHOOT_OUT_R", "SWAT", 8.0, False, True, True, False, -1)
Task.PlayAnimNonInterruptable(-1, "SWT_WLLPK_L_BACK", "SWAT", 8.0, False, False, False, False, -1)
Sequence.SetToRepeat(105@, True)
Sequence.Close(105@)
Char.PerformSequence(104@, 105@)
Sequence.Clear(105@)
return 

:FINALEB_18413
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if 
  182@ == 1
goto_if_false @FINALEB_18463
Text.PrintNow('RM4_46', 5000, 1)

:FINALEB_18463
if 
  179@ == 7
goto_if_false @FINALEB_18497
Text.PrintNow('RM4_45', 7000, 1)

:FINALEB_18497
if 
  183@ == 1
goto_if_false @FINALEB_18531
Text.PrintNow('RM4_50', 5000, 1)

:FINALEB_18531
return 

:FINALEB_18533
156@ = 1
Player.ClearWantedLevel($player1)
$flag_riot_mission_counter += 1
return 

:FINALEB_18554
Weather.SetHeathazeEffect(False)
Camera.SetDarknessEffect(False, -1)
World.RemoveAllScriptFires
Game.SetWantedMultiplier(1.0)
Game.SetMaxWantedLevel(6)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Hud.ClearTimer($lookcamz_fb)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(104)
Streaming.MarkModelAsNoLongerNeeded(109)
Streaming.MarkModelAsNoLongerNeeded(368)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(356)
Streaming.MarkModelAsNoLongerNeeded(366)
Char.RemoveElegantly($big_smoke)
Char.RemoveElegantly(49@)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.RemoveAnimation("SWAT")
Streaming.RemoveAnimation("DAM_JUMP")
Streaming.MarkModelAsNoLongerNeeded(544)
Streaming.MarkModelAsNoLongerNeeded(280)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(533)
Streaming.MarkModelAsNoLongerNeeded(109)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(344)
Streaming.MarkModelAsNoLongerNeeded(#LA_FUCKCAR1)
Streaming.MarkModelAsNoLongerNeeded(#LA_FUCKCAR2)
Streaming.RemoveAnimation("FINALE")
Streaming.RemoveAnimation("FINALE2")
Blip.Remove(118@)
Blip.Remove(119@)
Pickup.Remove(120@)
Pickup.Remove(121@)
Pickup.Remove(122@)
Pickup.Remove(123@)
Pickup.Remove(124@)
Pickup.Remove(125@)
Pickup.Remove(126@)
Pickup.Remove(127@)
Pickup.Remove(129@)
Pickup.Remove(130@)
Pickup.Remove(131@)
Game.SwitchEmergencyServices(True)
Game.SetWantedMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
60@ = 0

:FINALEB_18837
if 
  9 > 60@
goto_if_false @FINALEB_18878
Particle.Kill(51@(60@,9i))
60@ += 1
goto @FINALEB_18837

:FINALEB_18878
$onmission = 0
Mission.Finish
if 
  156@ == 1
goto_if_false @FINALEB_18911
Camera.DoFade(0, Fade.Out)

:FINALEB_18911
return 

//-------------Mission 112---------------
// Originally: End Of The Line (3)

:FINALEC
gosub @FINALEC_36
if 
  has_deatharrest_been_executed 
goto_if_false @FINALEC_27
gosub @FINALEC_57241

:FINALEC_27
gosub @FINALEC_57437
terminate_this_script 

:FINALEC_36
$onmission = 1
script_name 'FINALEC'
wait 0
Text.LoadMissionText('RIOT4')
97@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
128@ = 11
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
151@ = 0
$escapetimer_fb = 450000
190@ = 0
191@ = 0
192@ = 0
193@ = 0
194@ = 0
195@ = 0
196@ = 0
197@ = 0
198@ = 0
199@ = 0
200@ = 0
201@ = 0
202@ = 0
203@ = 0
204@ = 0
205@ = 0
$carhealth_fc = 0
$finalerails_fcflag = 0
$rails_fcflag = 0
249@ = 0
250@ = 0
251@ = 0
252@ = 0
253@ = 0
254@ = 0
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
268@ = 0
269@ = 0
270@ = 0
206@ = 0
288@ = 0
289@ = 0
290@ = 0
291@ = 0
292@ = 0
293@ = 0
294@ = 0
295@ = 0
296@ = 0
297@ = 0
Game.SetMaxFireGenerations(0)
Game.SetWantedMultiplier(0.0)
Game.SwitchEmergencyServices(False)
Streaming.RequestModel(544)
Streaming.RequestModel(280)
Streaming.RequestModel(492)
Streaming.RequestModel(533)
Streaming.RequestModel(109)
Streaming.RequestModel(102)
Streaming.RequestModel(352)
Streaming.RequestModel(344)
Streaming.RequestModel(#LA_FUCKCAR1)
Streaming.RequestModel(#LA_FUCKCAR2)
Streaming.RequestAnimation("FINALE")
Streaming.RequestAnimation("FINALE2")
Streaming.RequestCarRecording(288)
Streaming.RequestCarRecording(289)
Streaming.LoadSpecialCharacter(1, 'SWEET')
Streaming.LoadSpecialCharacter(2, 'TENPEN')
Streaming.RequestCarRecording(290)
Streaming.RequestCarRecording(291)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 14816)
Streaming.LoadAllModelsNow

:FINALEC_757
if or
  not Streaming.HasModelLoaded(544)
  not Streaming.HasModelLoaded(280)
  not Streaming.HasModelLoaded(492)
  not Streaming.HasModelLoaded(533)
  not Streaming.HasModelLoaded(109)
goto_if_false @FINALEC_803
wait 0
goto @FINALEC_757

:FINALEC_803
if or
  not Streaming.HasModelLoaded(102)
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(344)
  not Streaming.HasModelLoaded(#LA_FUCKCAR1)
  not Streaming.HasModelLoaded(#LA_FUCKCAR2)
goto_if_false @FINALEC_849
wait 0
goto @FINALEC_803

:FINALEC_849
if or
Streaming.RequestAnimation("FINALE")
Streaming.RequestAnimation("FINALE2")
  not Streaming.HasCarRecordingBeenLoaded(288)
  not Streaming.HasCarRecordingBeenLoaded(289)
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @FINALEC_906
wait 0
goto @FINALEC_849

:FINALEC_906
if or
  not Streaming.HasCarRecordingBeenLoaded(290)
  not Streaming.HasCarRecordingBeenLoaded(291)
goto_if_false @FINALEC_938
wait 0
goto @FINALEC_906

:FINALEC_938
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Char.SetCoordinates($scplayer, 2515.771, -1277.474, 33.728)
Char.SetHeading($scplayer, 144.159)
Task.PlayAnim($scplayer, "KO_SKID_BACK", "PED", 1000.0, False, False, False, True, -1)
wait 250
152@ = Car.Create(544, 2508.649, -1295.866, 33.92)
Car.SetHeading(152@, 0.3186)
Car.ControlMovablePart(152@, 0.7)
Car.SetProofs(152@, True, True, True, True, True)
Car.SetCanBeVisiblyDamaged(152@, False)
$sweet_car = Car.Create(492, 2508.941, -1306.517, 33.92)
Car.SetHeading($sweet_car, 165.3186)
Car.ChangeColor($sweet_car, 59, 34)
Car.CustomPlateForNextCar(533, "_IMY_AK")
153@ = Car.Create(533, 2515.895, -1269.408, 33.7844)
Car.SetHeading(153@, 359.2572)
Car.SetProofs(153@, True, True, True, True, True)
Car.SetHealth(153@, 2000)
Car.SetCanBurstTires(153@, False)
Car.SetCanBeVisiblyDamaged(153@, False)
Car.ChangeColor(153@, 1, 8)
49@ = Char.Create(PedType.Special, 291, 2506.218, -1293.093, 33.8438)
Char.SetHeading(49@, 271.9809)
Char.SetProofs(49@, True, True, True, True, True)
Char.SetDecisionMaker(49@, 97@)
158@ = Char.CreateAsPassenger(152@, PedType.Mission1, 280, 0)
Char.SetProofs(158@, True, True, True, True, True)
Char.SetDecisionMaker(158@, 97@)
$sweet = Char.Create(PedType.Special, 290, 0.0, 0.0, 0.0)
Char.SetProofs($sweet, True, True, True, True, True)
Char.SetHeading($sweet, 0.3186)
Char.SetDecisionMaker($sweet, 97@)
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_1425
Char.AttachToCar($sweet, 152@, 0.0, -8.227, -1000.156, 0, 0.0, WeaponType.Unarmed)

:FINALEC_1425
World.SetPedDensityMultiplier(0.0)
World.SetCarDensityMultiplier(0.0)
World.ClearArea(2506.218, -1293.093, 200.0, 200.0, False)
Game.SwitchRandomTrains(False)
World.DeleteAllTrains
Clock.SetTimeScale(1.0)
CarGenerator.SuppressCarModel(533)
CarGenerator.SuppressCarModel(544)
70@ = ScriptFire.Start(2521.392, -1269.343, 34.1609, 0, 3)
71@ = ScriptFire.Start(2521.701, -1270.293, 34.2031, 0, 2)
72@ = ScriptFire.Start(2523.58, -1271.225, 34.2918, 0, 3)
73@ = ScriptFire.Start(2518.576, -1284.467, 34.0265, 0, 2)
74@ = ScriptFire.Start(2521.6, -1270.885, 40.4338, 0, 3)
75@ = ScriptFire.Start(2521.662, -1267.656, 43.8955, 0, 2)
76@ = ScriptFire.Start(2521.674, -1275.707, 43.7437, 0, 3)
77@ = ScriptFire.Start(2521.506, -1275.781, 40.4019, 0, 2)
78@ = ScriptFire.Start(2522.68, -1280.397, 39.1158, 0, 3)
79@ = ScriptFire.Start(2521.676, -1279.352, 39.112, 0, 3)
80@ = ScriptFire.Start(2521.714, -1278.639, 37.4041, 0, 2)
Char.ShutUp($scplayer, True)
World.SetRailtrackResistanceMult(0.3)
wait 500
Streaming.LoadSceneInDirection(2504.96, -1309.16, 34.44, 334.0)
Clock.SetTimeOfDay(17, 0)
Game.SetMaxWantedLevel(0)
Camera.DoFade(1000, Fade.In)
128@ = 11

:FINALEC_1815
wait 0
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @FINALEC_1841
goto @FINALEC_57363

:FINALEC_1841
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_3751
if 
  not Char.IsDead($sweet)
goto_if_false @FINALEC_3751
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_3751
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_3751
if 
  128@ == 11
goto_if_false @FINALEC_1998
Camera.SetFixedPosition(2502.792, -1296.28, 35.3797, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2503.378, -1295.469, 35.3873, SwitchType.JumpCut)
Task.EnterCarAsDriver(49@, 152@, -1)
TIMERA = 0
128@ = 12

:FINALEC_1998
if 
  128@ == 12
goto_if_false @FINALEC_2080
if 
  TIMERA > 1750
goto_if_false @FINALEC_2080
Task.PlayAnim($scplayer, "GETUP_FRONT", "PED", 8.0, False, False, False, False, -1)
128@ = 13

:FINALEC_2080
if 
  128@ == 13
goto_if_false @FINALEC_2186
if 
  Char.IsSittingInCar(49@, 152@)
goto_if_false @FINALEC_2186
Task.PlayAnimNonInterruptable($sweet, "FIN_JUMP_ON", "FINALE", 1000.0, False, False, False, True, -1)
Car.LockDoors(152@, CarLock.Locked)
190@ = 1
TIMERA = 0
128@ = 14

:FINALEC_2186
if 
  128@ == 14
goto_if_false @FINALEC_2262
Camera.SetFixedPosition(2515.445, -1299.71, 36.5622, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2514.667, -1300.31, 36.4758, SwitchType.JumpCut)
128@ = 15

:FINALEC_2262
if 
  128@ == 15
goto_if_false @FINALEC_2397
if 
  TIMERA > 1400
goto_if_false @FINALEC_2397
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetNearClip(0.1)
Camera.SetVectorTrack(2514.667, -1300.31, 36.4758, 2514.946, -1282.265, 35.6876, 4000, False)
Camera.SetVectorMove(2515.445, -1299.71, 36.5622, 2515.482, -1282.265, 35.713, 4000, False)
128@ = 16

:FINALEC_2397
if 
  128@ == 16
goto_if_false @FINALEC_2469
if 
  TIMERA > 2220
goto_if_false @FINALEC_2469
Car.StartPlayback(152@, 288)
Char.SetCoordinates($scplayer, 2513.49, -1277.77, 34.19)
128@ = 17

:FINALEC_2469
if 
  128@ == 17
goto_if_false @FINALEC_2591
if 
  not Camera.IsVectorTrackRunning
goto_if_false @FINALEC_2591
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(2515.482, -1282.265, 35.713, 2515.482, -1283.1, 35.713, 4000, False)
Camera.SetVectorTrack(2514.946, -1282.265, 35.6876, 2515.719, -1282.136, 35.6959, 4000, False)
128@ = 18

:FINALEC_2591
if 
  128@ == 18
goto_if_false @FINALEC_2661
if 
  Car.IsPlaybackGoingOn(152@)
goto_if_false @FINALEC_2661
if 
  TIMERA > 4999
goto_if_false @FINALEC_2661
Car.SetPlaybackSpeed(152@, 0.75)
128@ = 19

:FINALEC_2661
if 
  128@ == 19
goto_if_false @FINALEC_2715
if 
  TIMERA > 6000
goto_if_false @FINALEC_2715
Task.EnterCarAsDriver($scplayer, 153@, -1)
128@ = 20

:FINALEC_2715
if 
  128@ == 20
goto_if_false @FINALEC_3282
if 
  TIMERA > 10500
goto_if_false @FINALEC_3282
if 
  Char.IsInCar($scplayer, 153@)
goto_if_false @FINALEC_3282
Camera.ResetNewScriptables
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
151@ = 1
Text.ClearPrints
Text.PrintNow('RM4_41', 8000, 1)
Text.Print('RM4_42', 5000, 1)
World.SetPedDensityMultiplier(0.2)
Car.MarkAsNoLongerNeeded($sweet_car)
Streaming.MarkModelAsNoLongerNeeded(492)
167@ = Object.Create(#LA_FUCKCAR2, 2597.36, -1044.735, 69.196)
Object.SetDynamic(167@, True)
Object.SetHeading(167@, 0.0)
Object.SetRotation(167@, 0.0, 180.0, 0.0)
168@ = Object.Create(#LA_FUCKCAR1, 2598.7, -1050.94, 69.23)
Object.SetHeading(168@, 180.0)
Object.SetDynamic(168@, True)
44@ = Char.Create(PedType.Mission1, 109, 2600.99, -1050.01, 69.04)
Char.SetHeading(44@, 274.892)
Char.SetDecisionMaker(44@, 97@)
Char.GiveWeapon(44@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(44@, True)
set_lvar_int_to_lvar_int 102@ = 44@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121
45@ = Char.Create(PedType.Mission1, 109, 2597.21, -1040.14, 69.48)
Char.SetHeading(45@, 274.892)
Char.SetDecisionMaker(45@, 97@)
Char.GiveWeapon(45@, WeaponType.MicroUzi, 99999)
Char.SetWeaponSkill(45@, 2)
Char.SetOnlyDamagedByPlayer(45@, True)
set_lvar_int_to_lvar_int 102@ = 45@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
46@ = Char.Create(PedType.Mission1, 109, 2604.991, -1038.172, 69.619)
Char.SetHeading(46@, 274.892)
Char.SetDecisionMaker(46@, 97@)
Char.GiveWeapon(46@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(46@, True)
set_lvar_int_to_lvar_int 102@ = 46@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
61@ = ScriptFire.Start(2598.54, -1044.53, 68.5, 0, 3)
62@ = ScriptFire.Start(2600.99, -1050.01, 69.04, 0, 3)
63@ = ScriptFire.Start(2599.88, -1052.4, 68.06, 0, 3)
128@ = 21

:FINALEC_3282
if 
  128@ == 21
goto_if_false @FINALEC_3374
Car.StopPlayback(152@)
Car.StartPlayback(152@, 289)
115@ = Blip.AddForChar($sweet)
Blip.SetAsFriendly(115@, True)
Blip.ChangeDisplay(115@, BlipDisplay.BlipOnly)
TIMERA = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
203@ = 0
204@ = 0
191@ = 1
128@ = 22

:FINALEC_3374
if 
  190@ == 1
goto_if_false @FINALEC_3513
if 
  Char.IsPlayingAnim($sweet, "FIN_JUMP_ON")
goto_if_false @FINALEC_3513
164@ = Char.GetAnimCurrentTime($sweet, "FIN_JUMP_ON")
if 
  164@ == 1.0
goto_if_false @FINALEC_3513
Task.PlayAnimNonInterruptable($sweet, "FIN_HANG_LOOP", "FINALE", 4.0, False, False, False, True, -1)
190@ = 2

:FINALEC_3513
if 
  128@ > 13
goto_if_false @FINALEC_3751
if 
  151@ == 0
goto_if_false @FINALEC_3751
gosub @FINALEC_56975
if 
  203@ == 0
goto_if_false @FINALEC_3621
if 
  204@ == 0
goto_if_false @FINALEC_3621
set_lvar_int_to_constant 187@ = 14816
set_lvar_text_label 188@s = 'ROT4_HA'
gosub @FINALEC_56933

:FINALEC_3621
if 
  203@ == 1
goto_if_false @FINALEC_3686
if 
  204@ == 0
goto_if_false @FINALEC_3686
set_lvar_int_to_constant 187@ = 14817
set_lvar_text_label 188@s = 'ROT4_HB'
gosub @FINALEC_56933

:FINALEC_3686
if 
  203@ == 2
goto_if_false @FINALEC_3751
if 
  204@ == 0
goto_if_false @FINALEC_3751
set_lvar_int_to_constant 187@ = 14884
set_lvar_text_label 188@s = 'ROT4_DB'
gosub @FINALEC_56933

:FINALEC_3751
if or
  191@ == 1
  191@ == 2
goto_if_false @FINALEC_3806
if 
  Car.IsDead(153@)
goto_if_false @FINALEC_3806
201@ = 1
goto @FINALEC_57241

:FINALEC_3806
if 
  191@ == 1
goto_if_false @FINALEC_13336
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_13336
if 
  not Char.IsDead($sweet)
goto_if_false @FINALEC_13336
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_13336
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_13336
if 
  not Char.LocateAnyMeansCar2D($sweet, 153@, 125.0, 125.0, False)
goto_if_false @FINALEC_3965
if 
  not Char.IsOnScreen($sweet)
goto_if_false @FINALEC_3965
202@ = 1
goto @FINALEC_57241
Text.PrintNow('RM4_50', 5000, 1)

:FINALEC_3965
if 
  200@ == 0
goto_if_false @FINALEC_4045
if 
  not Char.IsSittingInCar($scplayer, 153@)
goto_if_false @FINALEC_4045
Blip.Remove(115@)
115@ = Blip.AddForCar(153@)
Blip.SetAsFriendly(115@, True)
Text.PrintNow('RM4_48', 5000, 1)
200@ = 1

:FINALEC_4045
if 
  200@ == 1
goto_if_false @FINALEC_4157
if 
  Char.IsSittingInCar($scplayer, 153@)
goto_if_false @FINALEC_4157
Blip.Remove(115@)
115@ = Blip.AddForChar($sweet)
Blip.SetAsFriendly(115@, True)
Blip.ChangeDisplay(115@, BlipDisplay.BlipOnly)
if 
  198@ > 0
goto_if_false @FINALEC_4134
Blip.ChangeDisplay(115@, BlipDisplay.Both)

:FINALEC_4134
Text.PrintNow('RM4_49', 5000, 1)
200@ = 0

:FINALEC_4157
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_4513
if 
  not Char.IsDead($sweet)
goto_if_false @FINALEC_4513
if 
  Car.IsPlaybackGoingOn(152@)
goto_if_false @FINALEC_4513
switch_start 194@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @FINALEC_4513 {caseNum1} 0 {caseLabel1} @FINALEC_4268 {caseNum2} 1 {caseLabel2} @FINALEC_4403 {caseNum3} 2 {caseLabel3} @FINALEC_4458 {caseNum4} -1 {caseLabel4} @FINALEC_4513 {caseNum5} -1 {caseLabel5} @FINALEC_4513 {caseNum6} -1 {caseLabel6} @FINALEC_4513 {caseNum7} -1 {caseLabel7} @FINALEC_4513

:FINALEC_4268
if 
  not Char.LocateAnyMeansChar2D($sweet, $scplayer, 60.0, 60.0, False)
goto_if_false @FINALEC_4323
Car.SetPlaybackSpeed(152@, 0.5)
194@ = 1
goto @FINALEC_4396

:FINALEC_4323
if 
  Char.LocateAnyMeansChar2D($sweet, $scplayer, 15.0, 15.0, False)
goto_if_false @FINALEC_4396
if or
  193@ <> 5
  193@ <> 1
goto_if_false @FINALEC_4396
Car.SetPlaybackSpeed(152@, 1.3)
194@ = 2

:FINALEC_4396
goto @FINALEC_4513

:FINALEC_4403
if 
  Char.LocateAnyMeansChar2D($sweet, $scplayer, 55.0, 55.0, False)
goto_if_false @FINALEC_4451
Car.SetPlaybackSpeed(152@, 1.0)
194@ = 0

:FINALEC_4451
goto @FINALEC_4513

:FINALEC_4458
if 
  not Char.LocateAnyMeansChar2D($sweet, $scplayer, 20.0, 20.0, False)
goto_if_false @FINALEC_4506
Car.SetPlaybackSpeed(152@, 1.0)
194@ = 0

:FINALEC_4506
goto @FINALEC_4513

:FINALEC_4513
if 
  not Char.IsDead(158@)
goto_if_false @FINALEC_6621
if 
  196@ == 1
goto_if_false @FINALEC_4624
$player_x, $player_y, $player_z = Car.GetCoordinates(152@)
$player_z -= 15.0
Char.WarpFromCarToCoord(158@, $player_x, $player_y, $player_z)
Char.AttachToCar(158@, 152@, 0.0, 0.656, 2.408, 0, 0.0, WeaponType.Unarmed)
196@ = 2

:FINALEC_4624
if 
  196@ == 2
goto_if_false @FINALEC_4704
Car.OpenDoor(152@, CarDoor.RightFrontDoor)
Task.PlayAnimNonInterruptable(158@, "FIN_COP1_CLIMBOUT", "FINALE2", 1000.0, False, False, False, True, -1)
196@ = 3

:FINALEC_4704
if 
  196@ == 3
goto_if_false @FINALEC_4911
if 
  Char.IsPlayingAnim(158@, "FIN_COP1_CLIMBOUT")
goto_if_false @FINALEC_4911
170@ = Char.GetAnimCurrentTime(158@, "FIN_COP1_CLIMBOUT")
if 
  170@ == 1.0
goto_if_false @FINALEC_4911
Char.DetachFromCar(158@)
Char.AttachToCar(158@, 152@, -0.014, -7.4, -999.253, 2, 0.0, WeaponType.Unarmed)
Task.PlayAnimNonInterruptable(158@, "FIN_COP1_CLIMBOUT2", "FINALE", 1000.0, False, False, False, True, -1)
TIMERA = 0
198@ = 1
196@ = 4

:FINALEC_4911
if 
  196@ == 4
goto_if_false @FINALEC_5088
if 
  Char.IsPlayingAnim(158@, "FIN_COP1_CLIMBOUT2")
goto_if_false @FINALEC_5088
170@ = Char.GetAnimCurrentTime(158@, "FIN_COP1_CLIMBOUT2")
if 
  170@ == 1.0
goto_if_false @FINALEC_5088
Task.PlayAnimNonInterruptable(158@, "FIN_COP1_STOMP", "FINALE", 8.0, False, False, False, True, -1)
TIMERB = 0
Text.PrintNow('RM4_43', 7000, 1)
196@ = 5

:FINALEC_5088
if 
  196@ == 5
goto_if_false @FINALEC_5175
if 
  TIMERB > 499
goto_if_false @FINALEC_5175
Task.PlayAnimNonInterruptable($sweet, "FIN_HANG_SLIP", "FINALE", 8.0, False, False, False, True, -1)
196@ = 6

:FINALEC_5175
if 
  196@ == 6
goto_if_false @FINALEC_5320
if 
  Char.IsPlayingAnim(158@, "FIN_COP1_STOMP")
goto_if_false @FINALEC_5320
170@ = Char.GetAnimCurrentTime(158@, "FIN_COP1_STOMP")
if 
  170@ == 1.0
goto_if_false @FINALEC_5320
Task.PlayAnimNonInterruptable(158@, "FIN_COP1_LOOP", "FINALE", 8.0, False, False, False, True, -1)
196@ = 7

:FINALEC_5320
if 
  196@ == 7
goto_if_false @FINALEC_5470
if 
  Char.IsPlayingAnim($sweet, "FIN_HANG_SLIP")
goto_if_false @FINALEC_5470
164@ = Char.GetAnimCurrentTime($sweet, "FIN_HANG_SLIP")
if 
  164@ == 1.0
goto_if_false @FINALEC_5470
Task.PlayAnimNonInterruptable($sweet, "FIN_HANG_LOOP", "FINALE", 8.0, True, False, False, True, -1)
TIMERB = 0
196@ = 8

:FINALEC_5470
if 
  196@ == 8
goto_if_false @FINALEC_5640
if 
  TIMERB > 750
goto_if_false @FINALEC_5640
if 
  Char.IsPlayingAnim(158@, "FIN_COP1_LOOP")
goto_if_false @FINALEC_5640
170@ = Char.GetAnimCurrentTime(158@, "FIN_COP1_LOOP")
if 
  170@ == 1.0
goto_if_false @FINALEC_5640
Task.PlayAnimNonInterruptable(158@, "FIN_COP1_STOMP", "FINALE", 8.0, False, False, False, True, -1)
TIMERB = 0
196@ = 5

:FINALEC_5640
if 
  198@ == 1
goto_if_false @FINALEC_5773
if 
  TIMERA > 8999
goto_if_false @FINALEC_5773
if 
  Blip.DoesExist(115@)
goto_if_false @FINALEC_5700
Blip.ChangeDisplay(115@, BlipDisplay.Both)

:FINALEC_5700
$escapetimer_fc = 15
cset_var_float_to_var_int $gripbar_fc =# $escapetimer_fc
$gripbar_fc *= 100.0
$gripbar_fc /= 15.0
cset_var_int_to_var_float $fgripbardisplay_fc =# $gripbar_fc
Hud.DisplayCounterWithString($fgripbardisplay_fc, CounterDisplay.Bar, 'RM4_47')
TIMERA = 0
198@ = 2

:FINALEC_5773
if 
  198@ == 2
goto_if_false @FINALEC_5831
if 
  TIMERA > 999
goto_if_false @FINALEC_5831
$escapetimer_fc -= 1
TIMERA = 0
198@ = 3

:FINALEC_5831
if 
  198@ == 3
goto_if_false @FINALEC_5889
if 
  TIMERA > 999
goto_if_false @FINALEC_5889
$escapetimer_fc -= 1
TIMERA = 0
198@ = 4

:FINALEC_5889
if 
  198@ == 4
goto_if_false @FINALEC_5954
if 
  TIMERA > 999
goto_if_false @FINALEC_5954
$escapetimer_fc -= 1
TIMERA = 0
World.SetCarDensityMultiplier(0.0)
198@ = 5

:FINALEC_5954
if 
  198@ == 5
goto_if_false @FINALEC_6567
if 
  TIMERA > 999
goto_if_false @FINALEC_6012
$escapetimer_fc -= 1
205@ = 4
TIMERA = 0

:FINALEC_6012
if 
  0 >= $escapetimer_fc
goto_if_false @FINALEC_6155
$escapetimer_fc = 0
196@ = 10
Task.PlayAnimNonInterruptable(158@, "FIN_COP1_LOOP", "FINALE", 8.0, True, False, False, False, -1)
Char.DetachFromCar($sweet)
Char.SetCollision($sweet, True)
Task.PlayAnimNonInterruptable($sweet, "FIN_LAND_DIE", "FINALE", 4.0, False, True, True, True, -1)
TIMERA = 0
198@ = 6

:FINALEC_6155
if 
  $escapetimer_fc > 0
goto_if_false @FINALEC_6567
$player_x, $player_y, $player_z = Char.GetCoordinates($sweet)
$player_z -= 1.0
if 
  Char.LocateAnyMeans3D($scplayer, $player_x, $player_y, $player_z, 3.0, 3.0, 4.0, False)
goto_if_false @FINALEC_6567
Hud.ClearCounter($escapetimer_fc)
171@ = 4.0
Char.DetachFromCar($sweet)
181@, 182@, 183@ = Char.GetCoordinates($sweet)
Char.SetCollision($sweet, False)
183@ -= 1.0
Char.ClearTasksImmediately($sweet)
Char.SetCoordinates($sweet, 181@, 182@, 183@)
Task.PlayAnimNonInterruptable($sweet, "FIN_LET_GO", "FINALE", 1000.0, False, False, False, True, -1)
wait 0
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_6567
if 
  not Char.IsDead($sweet)
goto_if_false @FINALEC_6567
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_6567
181@, 182@, 183@ = Char.GetCoordinates($sweet)
175@, 176@, 177@ = Car.GetOffsetInWorldCoords(153@, 0.0, 1.5, 0.5)
set_lvar_float_to_lvar_float 172@ = 181@
sub_float_lvar_from_float_lvar 172@ -= 175@
set_lvar_float_to_lvar_float 173@ = 182@
sub_float_lvar_from_float_lvar 173@ -= 176@
set_lvar_float_to_lvar_float 174@ = 183@
sub_float_lvar_from_float_lvar 174@ -= 177@
set_lvar_float_to_lvar_float 178@ = 172@
div_float_lvar_by_float_lvar 178@ /= 171@
set_lvar_float_to_lvar_float 179@ = 173@
div_float_lvar_by_float_lvar 179@ /= 171@
set_lvar_float_to_lvar_float 180@ = 174@
div_float_lvar_by_float_lvar 180@ /= 171@
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
204@ = 0
203@ = 0
191@ = 2

:FINALEC_6567
if 
  198@ > 1
goto_if_false @FINALEC_6621
cset_var_float_to_var_int $gripbar_fc =# $escapetimer_fc
$gripbar_fc *= 100.0
$gripbar_fc /= 15.0
cset_var_int_to_var_float $fgripbardisplay_fc =# $gripbar_fc

:FINALEC_6621
if 
  198@ == 6
goto_if_false @FINALEC_6678
if 
  TIMERA > 2000
goto_if_false @FINALEC_6678
198@ = 7
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
goto @FINALEC_57241

:FINALEC_6678
if 
  199@ == 1
goto_if_false @FINALEC_6748
if 
  Car.Locate2D(152@, 2003.29, -1097.0, 20.0, 20.0, False)
goto_if_false @FINALEC_6748
World.SetCarDensityMultiplier(1.0)
199@ = 2

:FINALEC_6748
if 
  199@ == 1
goto_if_false @FINALEC_6818
if 
  Car.Locate2D(152@, 2112.84, -1406.01, 20.0, 20.0, False)
goto_if_false @FINALEC_6818
World.SetCarDensityMultiplier(0.0)
199@ = 2

:FINALEC_6818
if 
  199@ == 2
goto_if_false @FINALEC_6888
if 
  Car.Locate2D(152@, 2112.51, -1631.72, 20.0, 20.0, False)
goto_if_false @FINALEC_6888
World.SetCarDensityMultiplier(0.9)
199@ = 3

:FINALEC_6888
if 
  195@ == 1
goto_if_false @FINALEC_7007
if 
  Streaming.HasModelLoaded(538)
goto_if_false @FINALEC_6995
157@ = Train.Create(15, 2135.04, -1953.25, 12.84, False)
Train.SetSpeed(157@, 30.0)
Train.SetCruiseSpeed(157@, 12.5)
Car.SetProofs(157@, True, True, True, True, True)
195@ = 2
goto @FINALEC_7007

:FINALEC_6995
Streaming.MarkModelAsNoLongerNeeded(538)
195@ = 2

:FINALEC_7007
if 
  195@ == 2
goto_if_false @FINALEC_7114
if 
  not Car.IsDead(157@)
goto_if_false @FINALEC_7100
if 
  Car.Locate2D(157@, 2226.64, -1603.62, 15.0, 15.0, False)
goto_if_false @FINALEC_7093
Streaming.MarkMissionTrainsAsNoLongerNeeded
Streaming.MarkModelAsNoLongerNeeded(538)
195@ = 3

:FINALEC_7093
goto @FINALEC_7114

:FINALEC_7100
Streaming.MarkMissionTrainsAsNoLongerNeeded
Streaming.MarkModelAsNoLongerNeeded(538)
195@ = 3

:FINALEC_7114
if 
  195@ == 3
goto_if_false @FINALEC_7141
World.DeleteAllTrains
195@ = 4

:FINALEC_7141
if 
  193@ == 0
goto_if_false @FINALEC_8900
if 
  192@ == 0
goto_if_false @FINALEC_7791
if 
  Car.Locate2D(152@, 2339.11, -1038.88, 14.0, 14.0, False)
goto_if_false @FINALEC_7791
205@ = 1
World.RemoveAllScriptFires
Object.MarkAsNoLongerNeeded(167@)
Object.MarkAsNoLongerNeeded(168@)
Char.MarkAsNoLongerNeeded(44@)
Char.MarkAsNoLongerNeeded(45@)
Char.MarkAsNoLongerNeeded(46@)
34@ = Char.Create(PedType.Mission1, 109, 2246.362, -1059.161, 61.2275)
Char.SetHeading(34@, 255.0)
Char.SetDecisionMaker(34@, 97@)
Char.GiveWeapon(34@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(34@, True)
set_lvar_int_to_lvar_int 102@ = 34@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121
37@ = Char.Create(PedType.Mission1, 109, 2212.216, -1001.041, 67.22)
Char.SetHeading(37@, 183.4)
Char.SetDecisionMaker(37@, 97@)
Char.GiveWeapon(37@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(37@, True)
set_lvar_int_to_lvar_int 102@ = 37@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
38@ = Char.Create(PedType.Mission1, 109, 2197.558, -1000.418, 67.367)
Char.SetHeading(38@, 209.7)
Char.SetDecisionMaker(38@, 97@)
Char.GiveWeapon(38@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(38@, True)
set_lvar_int_to_lvar_int 102@ = 38@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121
39@ = Char.Create(PedType.Mission1, 109, 2188.512, -1020.8, 70.33)
Char.SetHeading(39@, 287.39)
Char.SetDecisionMaker(39@, 97@)
Char.GiveWeapon(39@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(39@, True)
Char.SetAccuracy(39@, 90)
set_lvar_int_to_lvar_int 102@ = 39@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
165@ = Object.Create(#LA_FUCKCAR2, 2171.57, -1008.76, 62.56)
Object.SetDynamic(165@, True)
Object.SetHeading(165@, 168.0)
Object.SetRotation(165@, 0.0, 90.0, 0.0)
61@ = ScriptFire.Start(2172.57, -1008.76, 61.56, 0, 3)
62@ = ScriptFire.Start(2171.57, -1007.76, 62.56, 0, 3)
40@ = Char.Create(PedType.Mission1, 109, 2172.91, -1001.84, 62.83)
Char.SetHeading(40@, 258.18)
Char.SetDecisionMaker(40@, 97@)
Char.GiveWeapon(40@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(40@, True)
set_lvar_int_to_lvar_int 102@ = 40@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121
192@ = 1

:FINALEC_7791
if 
  192@ == 1
goto_if_false @FINALEC_8900
if 
  Car.Locate2D(152@, 2252.01, -1046.41, 14.0, 14.0, False)
goto_if_false @FINALEC_8900
if 
  Char.IsPlayingAnim($sweet, "FIN_LEGSUP_LOOP")
goto_if_false @FINALEC_7923
Task.PlayAnimNonInterruptable($sweet, "FIN_HANG_LOOP", "FINALE", 1.5, True, False, False, True, -1)

:FINALEC_7923
if 
  not Camera.IsPointOnScreen(2600.99, -1050.01, 69.04, 10.0)
goto_if_false @FINALEC_7981
Object.Delete(167@)
Object.Delete(168@)
Char.Delete(44@)
Char.Delete(45@)
Char.Delete(46@)

:FINALEC_7981
166@ = Object.Create(#LA_FUCKCAR2, 2033.39, -938.0, 39.99)
Object.SetHeading(166@, 24.8)
Object.SetDynamic(166@, True)
Object.SetRotation(166@, 0.0, 0.0, 0.0)
63@ = ScriptFire.Start(2033.39, -938.0, 38.99, 0, 3)
64@ = ScriptFire.Start(2032.39, -937.0, 38.99, 0, 3)
41@ = Char.Create(PedType.Mission1, 109, 2035.09, -979.33, 40.9)
Char.SetHeading(41@, 263.9)
Char.SetDecisionMaker(41@, 97@)
Char.GiveWeapon(41@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(41@, True)
set_lvar_int_to_lvar_int 102@ = 41@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121
42@ = Char.Create(PedType.Mission1, 109, 2053.81, -983.87, 45.33)
Char.SetHeading(42@, 287.5)
Char.SetDecisionMaker(42@, 97@)
Char.GiveWeapon(42@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(42@, True)
set_lvar_int_to_lvar_int 102@ = 42@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
43@ = Char.Create(PedType.Mission1, 109, 2089.93, -971.49, 54.556)
Char.SetHeading(43@, 219.88)
Char.SetDecisionMaker(43@, 97@)
Char.GiveWeapon(43@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(43@, True)
set_lvar_int_to_lvar_int 102@ = 43@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121
44@ = Char.Create(PedType.Mission1, 109, 2026.056, -971.93, 41.5)
Char.SetHeading(44@, 219.88)
Char.SetDecisionMaker(44@, 97@)
Char.GiveWeapon(44@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(44@, True)
set_lvar_int_to_lvar_int 102@ = 44@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
45@ = Char.Create(PedType.Mission1, 109, 1989.918, -1017.65, 34.05)
Char.SetHeading(45@, 317.6)
Char.SetDecisionMaker(45@, 97@)
Char.GiveWeapon(45@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(45@, True)
set_lvar_int_to_lvar_int 102@ = 45@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
46@ = Char.Create(PedType.Mission1, 109, 1999.8, -1018.65, 35.33)
Char.SetHeading(46@, 317.6)
Char.SetDecisionMaker(46@, 97@)
Char.GiveWeapon(46@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(46@, True)
set_lvar_int_to_lvar_int 102@ = 46@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121
47@ = Char.Create(PedType.Mission1, 109, 1970.674, -1088.046, 24.163)
Char.SetHeading(47@, 345.24)
Char.SetDecisionMaker(47@, 97@)
Char.GiveWeapon(47@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(47@, True)
set_lvar_int_to_lvar_int 102@ = 47@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
48@ = Char.Create(PedType.Mission1, 109, 1977.545, -1096.913, 24.35)
Char.SetHeading(48@, 24.331)
Char.SetDecisionMaker(48@, 97@)
Char.GiveWeapon(48@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(48@, True)
set_lvar_int_to_lvar_int 102@ = 48@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121
167@ = Object.Create(#LA_FUCKCAR1, 1975.31, -1099.27, 24.118)
Object.SetDynamic(167@, True)
Object.SetHeading(167@, 270.894)
Object.SetRotation(167@, 0.0, 180.0, 0.0)
ScriptFire.Remove(61@)
ScriptFire.Remove(62@)
61@ = ScriptFire.Start(1975.31, -1099.27, 24.118, 0, 3)
62@ = ScriptFire.Start(1977.0, -1098.0, 24.0, 0, 3)
192@ = 0
199@ = 1
193@ = 1

:FINALEC_8900
if 
  193@ == 1
goto_if_false @FINALEC_10340
if 
  192@ == 0
goto_if_false @FINALEC_9226
if 
  Car.Locate2D(152@, 2073.51, -1260.18, 14.0, 14.0, False)
goto_if_false @FINALEC_9226
205@ = 2
Object.MarkAsNoLongerNeeded(165@)
Char.MarkAsNoLongerNeeded(34@)
Char.MarkAsNoLongerNeeded(37@)
Char.MarkAsNoLongerNeeded(38@)
Char.MarkAsNoLongerNeeded(39@)
Char.MarkAsNoLongerNeeded(40@)
169@ = Object.Create(#LA_FUCKCAR2, 2117.46, -1490.22, 22.6)
Object.SetDynamic(169@, True)
Object.SetHeading(169@, 276.0)
44@ = Char.Create(PedType.Mission1, 102, 2108.6, -1491.5, 23.85)
Char.SetHeading(44@, 340.0)
Char.SetDecisionMaker(44@, 97@)
Char.GiveWeapon(44@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(44@, True)
set_lvar_int_to_lvar_int 102@ = 44@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
45@ = Char.Create(PedType.Mission1, 102, 2116.48, -1492.219, 22.85)
Char.SetHeading(45@, 340.0)
Char.SetDecisionMaker(45@, 97@)
Char.GiveWeapon(45@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(45@, True)
set_lvar_int_to_lvar_int 102@ = 45@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121
192@ = 1

:FINALEC_9226
if 
  192@ == 1
goto_if_false @FINALEC_10340
if 
  Car.Locate2D(152@, 2268.94, -1260.26, 14.0, 14.0, False)
goto_if_false @FINALEC_10340
if 
  Char.IsPlayingAnim($sweet, "FIN_LEGSUP_LOOP")
goto_if_false @FINALEC_9358
Task.PlayAnimNonInterruptable($sweet, "FIN_HANG_LOOP", "FINALE", 1.5, True, False, False, True, -1)

:FINALEC_9358
World.RemoveAllScriptFires
Streaming.MarkModelAsNoLongerNeeded(109)
Object.MarkAsNoLongerNeeded(166@)
Char.MarkAsNoLongerNeeded(41@)
Char.MarkAsNoLongerNeeded(42@)
Char.MarkAsNoLongerNeeded(43@)
Char.MarkAsNoLongerNeeded(44@)
Char.MarkAsNoLongerNeeded(46@)
Char.MarkAsNoLongerNeeded(47@)
Char.MarkAsNoLongerNeeded(48@)
Object.MarkAsNoLongerNeeded(167@)
Object.Delete(165@)
Char.Delete(34@)
Char.Delete(37@)
Char.Delete(38@)
Char.Delete(39@)
Char.Delete(40@)
Object.Delete(166@)
Char.Delete(41@)
Streaming.RequestModel(538)
165@ = Object.Create(#LA_FUCKCAR1, 2109.492, -1531.4, 22.82)
Object.SetHeading(165@, 276.274)
Object.SetDynamic(165@, True)
34@ = Char.Create(PedType.Mission1, 102, 2110.39, -1529.04, 22.928)
Char.SetHeading(34@, 10.19)
Char.SetDecisionMaker(34@, 97@)
Char.GiveWeapon(34@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(34@, True)
set_lvar_int_to_lvar_int 102@ = 34@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
35@ = Char.Create(PedType.Mission1, 102, 2118.376, -1531.8, 23.189)
Char.SetHeading(35@, 340.0)
Char.SetDecisionMaker(35@, 97@)
Char.GiveWeapon(35@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(35@, True)
set_lvar_int_to_lvar_int 102@ = 35@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121
61@ = ScriptFire.Start(2116.7, -1530.846, 22.99, 0, 3)
62@ = ScriptFire.Start(2115.5, -1530.282, 22.97, 0, 2)
63@ = ScriptFire.Start(2114.06, -1529.88, 22.96, 0, 3)
64@ = ScriptFire.Start(2112.3, -1529.92, 22.9, 0, 2)
168@ = Object.Create(#LA_FUCKCAR2, 2115.75, -1620.69, 22.11)
Object.SetDynamic(168@, True)
Object.SetHeading(168@, 95.114)
36@ = Char.Create(PedType.Mission1, 102, 2111.57, -1585.135, 25.1)
Char.SetHeading(36@, 12.0)
Char.SetDecisionMaker(36@, 97@)
Char.GiveWeapon(36@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(36@, True)
set_lvar_int_to_lvar_int 102@ = 36@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
37@ = Char.Create(PedType.Mission1, 102, 2104.487, -1586.327, 25.07)
Char.SetHeading(37@, 306.26)
Char.SetDecisionMaker(37@, 97@)
Char.GiveWeapon(37@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(37@, True)
set_lvar_int_to_lvar_int 102@ = 37@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121
65@ = ScriptFire.Start(2108.28, -1637.23, 18.3, 0, 3)
66@ = ScriptFire.Start(2110.65, -1637.93, 18.36, 0, 2)
67@ = ScriptFire.Start(2112.18, -1637.2, 18.52, 0, 1)
68@ = ScriptFire.Start(2115.36, -1637.43, 18.47, 0, 2)
69@ = ScriptFire.Start(2117.39, -1636.75, 18.62, 0, 3)
70@ = ScriptFire.Start(2107.91, -1586.498, 24.8, 0, 3)
71@ = ScriptFire.Start(2110.28, -1586.29, 24.89, 0, 2)
72@ = ScriptFire.Start(2112.755, -1586.081, 24.8, 0, 2)
38@ = Char.Create(PedType.Mission1, 102, 2094.0, -1763.0, 12.5)
Char.SetHeading(38@, 322.0)
Char.SetDecisionMaker(38@, 97@)
Char.GiveWeapon(38@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(38@, True)
set_lvar_int_to_lvar_int 102@ = 38@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
39@ = Char.Create(PedType.Mission1, 102, 2088.0, -1761.0, 12.5)
Char.SetHeading(39@, 306.26)
Char.SetDecisionMaker(39@, 97@)
Char.GiveWeapon(39@, WeaponType.Molotov, 99999)
Char.SetOnlyDamagedByPlayer(39@, True)
set_lvar_int_to_lvar_int 102@ = 39@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121
192@ = 0
193@ = 2

:FINALEC_10340
if 
  193@ == 2
goto_if_false @FINALEC_10654
if 
  192@ == 0
goto_if_false @FINALEC_10499
if 
  Car.Locate2D(152@, 2203.69, -1724.39, 14.0, 14.0, False)
goto_if_false @FINALEC_10499
195@ = 1
Char.Delete(41@)
Char.Delete(42@)
Char.Delete(43@)
Char.Delete(44@)
Char.Delete(46@)
Char.Delete(47@)
Char.Delete(48@)
Object.Delete(167@)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(#LA_FUCKCAR1)
Streaming.MarkModelAsNoLongerNeeded(#LA_FUCKCAR2)
Streaming.MarkModelAsNoLongerNeeded(344)
World.SetCarDensityMultiplier(1.0)
192@ = 1

:FINALEC_10499
if 
  192@ == 1
goto_if_false @FINALEC_10654
if 
  Car.Locate2D(152@, 2202.32, -1890.45, 14.0, 14.0, False)
goto_if_false @FINALEC_10654
205@ = 3
if 
  Char.IsPlayingAnim($sweet, "FIN_LEGSUP_LOOP")
goto_if_false @FINALEC_10638
Task.PlayAnimNonInterruptable($sweet, "FIN_HANG_LOOP", "FINALE", 1.5, True, False, False, True, -1)

:FINALEC_10638
World.RemoveAllScriptFires
192@ = 0
193@ = 3

:FINALEC_10654
if 
  193@ == 3
goto_if_false @FINALEC_10938
if 
  192@ == 0
goto_if_false @FINALEC_10735
if 
  Car.Locate2D(152@, 2115.45, -1954.4, 14.0, 14.0, False)
goto_if_false @FINALEC_10735
192@ = 1

:FINALEC_10735
if 
  192@ == 1
goto_if_false @FINALEC_10938
if 
  Car.Locate2D(152@, 2179.19, -2017.63, 14.0, 14.0, False)
goto_if_false @FINALEC_10938
if 
  Char.IsPlayingAnim($sweet, "FIN_LEGSUP_LOOP")
goto_if_false @FINALEC_10867
Task.PlayAnimNonInterruptable($sweet, "FIN_HANG_LOOP", "FINALE", 1.5, True, False, False, True, -1)

:FINALEC_10867
World.RemoveAllScriptFires
Object.MarkAsNoLongerNeeded(165@)
Char.MarkAsNoLongerNeeded(34@)
Char.MarkAsNoLongerNeeded(35@)
Object.MarkAsNoLongerNeeded(169@)
Char.MarkAsNoLongerNeeded(44@)
Char.MarkAsNoLongerNeeded(45@)
Object.MarkAsNoLongerNeeded(168@)
Char.MarkAsNoLongerNeeded(36@)
Char.MarkAsNoLongerNeeded(37@)
Char.MarkAsNoLongerNeeded(38@)
Char.MarkAsNoLongerNeeded(39@)
192@ = 0
193@ = 4

:FINALEC_10938
if 
  193@ == 4
goto_if_false @FINALEC_11227
if 
  192@ == 0
goto_if_false @FINALEC_11074
if 
  Car.Locate2D(152@, 2318.03, -2165.94, 14.0, 14.0, False)
goto_if_false @FINALEC_11074
Object.Delete(165@)
Char.Delete(34@)
Char.Delete(35@)
Object.Delete(169@)
Char.Delete(44@)
Char.Delete(45@)
Object.Delete(168@)
Char.Delete(36@)
Char.Delete(37@)
Char.Delete(38@)
Char.Delete(39@)
192@ = 1

:FINALEC_11074
if 
  192@ == 1
goto_if_false @FINALEC_11227
if 
  Car.Locate2D(152@, 2452.6, -2170.27, 14.0, 14.0, False)
goto_if_false @FINALEC_11227
if 
  Char.IsPlayingAnim($sweet, "FIN_LEGSUP_LOOP")
goto_if_false @FINALEC_11206
Task.PlayAnimNonInterruptable($sweet, "FIN_HANG_LOOP", "FINALE", 1.5, True, False, False, True, -1)

:FINALEC_11206
196@ = 1
192@ = 0
193@ = 5

:FINALEC_11227
if 
  190@ == 1
goto_if_false @FINALEC_11366
if 
  Char.IsPlayingAnim($sweet, "FIN_JUMP_ON")
goto_if_false @FINALEC_11366
164@ = Char.GetAnimCurrentTime($sweet, "FIN_JUMP_ON")
if 
  164@ == 1.0
goto_if_false @FINALEC_11366
Task.PlayAnimNonInterruptable($sweet, "FIN_HANG_LOOP", "FINALE", 4.0, True, False, False, True, -1)
190@ = 2

:FINALEC_11366
if 
  190@ > 1
goto_if_false @FINALEC_12083
160@ = Car.GetHeading(152@)
161@ = Car.GetDoorAngleRatio(152@, 6)
161@ -= 0.5
161@ *= 2.0
161@ *= 10.0
add_float_lvar_to_float_lvar 161@ += 160@
set_lvar_float_to_lvar_float 163@ = 161@
sub_float_lvar_from_float_lvar 163@ -= 162@
if 
  -180.0 > 163@
goto_if_false @FINALEC_11487
163@ += 360.0

:FINALEC_11487
if 
  163@ > 180.0
goto_if_false @FINALEC_11518
163@ += -360.0

:FINALEC_11518
set_lvar_float_to_lvar_float 162@ = 161@
if 
  196@ == 0
goto_if_false @FINALEC_12083
if 
  192@ == 0
goto_if_false @FINALEC_11823
if 
  -1.5 > 163@
goto_if_false @FINALEC_11655
if 
  190@ <> 4
goto_if_false @FINALEC_11648
Task.PlayAnimNonInterruptable($sweet, "FIN_HANG_L", "FINALE", 1.5, False, False, False, True, -1)
190@ = 4

:FINALEC_11648
goto @FINALEC_11816

:FINALEC_11655
if 
  163@ > 1.5
goto_if_false @FINALEC_11748
if 
  190@ <> 3
goto_if_false @FINALEC_11741
Task.PlayAnimNonInterruptable($sweet, "FIN_HANG_R", "FINALE", 1.5, False, False, False, True, -1)
190@ = 3

:FINALEC_11741
goto @FINALEC_11816

:FINALEC_11748
if 
  190@ <> 2
goto_if_false @FINALEC_11816
Task.PlayAnimNonInterruptable($sweet, "FIN_HANG_LOOP", "FINALE", 2.5, True, False, False, True, -1)
190@ = 2

:FINALEC_11816
goto @FINALEC_12083

:FINALEC_11823
if 
  -1.5 > 163@
goto_if_false @FINALEC_11918
if 
  190@ <> 4
goto_if_false @FINALEC_11911
Task.PlayAnimNonInterruptable($sweet, "FIN_LEGSUP_L", "FINALE", 1.5, False, False, False, True, -1)
190@ = 4

:FINALEC_11911
goto @FINALEC_12083

:FINALEC_11918
if 
  163@ > 1.5
goto_if_false @FINALEC_12013
if 
  190@ <> 3
goto_if_false @FINALEC_12006
Task.PlayAnimNonInterruptable($sweet, "FIN_LEGSUP_R", "FINALE", 1.5, False, False, False, True, -1)
190@ = 3

:FINALEC_12006
goto @FINALEC_12083

:FINALEC_12013
if 
  190@ <> 2
goto_if_false @FINALEC_12083
Task.PlayAnimNonInterruptable($sweet, "FIN_LEGSUP_LOOP", "FINALE", 2.5, True, False, False, True, -1)
190@ = 2

:FINALEC_12083
if 
  2 > 191@
goto_if_false @FINALEC_13336
gosub @FINALEC_56975
if 
  203@ == 0
goto_if_false @FINALEC_12204
if 
  204@ == 0
goto_if_false @FINALEC_12204
if 
  Char.LocateAnyMeansChar2D($scplayer, $sweet, 15.0, 15.0, False)
goto_if_false @FINALEC_12204
set_lvar_int_to_constant 187@ = 14885
set_lvar_text_label 188@s = 'ROT4_EA'
gosub @FINALEC_56933

:FINALEC_12204
if 
  205@ == 1
goto_if_false @FINALEC_12343
if 
  204@ == 0
goto_if_false @FINALEC_12343
if 
  1 > 203@
goto_if_false @FINALEC_12265
203@ = 1

:FINALEC_12265
if 
  203@ == 1
goto_if_false @FINALEC_12343
if 
  Char.LocateAnyMeansChar2D($scplayer, $sweet, 30.0, 30.0, False)
goto_if_false @FINALEC_12343
set_lvar_int_to_constant 187@ = 14818
set_lvar_text_label 188@s = 'ROT4_HC'
gosub @FINALEC_56933

:FINALEC_12343
if 
  203@ == 2
goto_if_false @FINALEC_12439
if 
  204@ == 0
goto_if_false @FINALEC_12439
if 
  Char.LocateAnyMeansChar2D($scplayer, $sweet, 30.0, 30.0, False)
goto_if_false @FINALEC_12439
set_lvar_int_to_constant 187@ = 14810
set_lvar_text_label 188@s = 'ROT4_FA'
gosub @FINALEC_56933

:FINALEC_12439
if 
  203@ == 3
goto_if_false @FINALEC_12535
if 
  204@ == 0
goto_if_false @FINALEC_12535
if 
  Char.LocateAnyMeansChar2D($scplayer, $sweet, 30.0, 30.0, False)
goto_if_false @FINALEC_12535
set_lvar_int_to_constant 187@ = 14827
set_lvar_text_label 188@s = 'ROT4_MB'
gosub @FINALEC_56933

:FINALEC_12535
if 
  204@ == 0
goto_if_false @FINALEC_12674
if 
  205@ == 2
goto_if_false @FINALEC_12674
if 
  4 > 203@
goto_if_false @FINALEC_12596
203@ = 4

:FINALEC_12596
if 
  203@ == 4
goto_if_false @FINALEC_12674
if 
  Char.LocateAnyMeansChar2D($scplayer, $sweet, 30.0, 30.0, False)
goto_if_false @FINALEC_12674
set_lvar_int_to_constant 187@ = 14824
set_lvar_text_label 188@s = 'ROT4_KJ'
gosub @FINALEC_56933

:FINALEC_12674
if 
  203@ == 5
goto_if_false @FINALEC_12770
if 
  204@ == 0
goto_if_false @FINALEC_12770
if 
  Char.LocateAnyMeansChar2D($scplayer, $sweet, 30.0, 30.0, False)
goto_if_false @FINALEC_12770
set_lvar_int_to_constant 187@ = 14886
set_lvar_text_label 188@s = 'ROT4_EB'
gosub @FINALEC_56933

:FINALEC_12770
if 
  204@ == 0
goto_if_false @FINALEC_12909
if 
  205@ == 3
goto_if_false @FINALEC_12909
if 
  6 > 203@
goto_if_false @FINALEC_12831
203@ = 6

:FINALEC_12831
if 
  203@ == 6
goto_if_false @FINALEC_12909
if 
  Char.LocateAnyMeansChar2D($scplayer, $sweet, 30.0, 30.0, False)
goto_if_false @FINALEC_12909
set_lvar_int_to_constant 187@ = 14815
set_lvar_text_label 188@s = 'ROT4_GB'
gosub @FINALEC_56933

:FINALEC_12909
if 
  204@ == 0
goto_if_false @FINALEC_13005
if 
  203@ == 7
goto_if_false @FINALEC_13005
if 
  Char.LocateAnyMeansChar2D($scplayer, $sweet, 30.0, 30.0, False)
goto_if_false @FINALEC_13005
set_lvar_int_to_constant 187@ = 14811
set_lvar_text_label 188@s = 'ROT4_FB'
gosub @FINALEC_56933

:FINALEC_13005
if 
  204@ == 0
goto_if_false @FINALEC_13144
if 
  205@ == 4
goto_if_false @FINALEC_13144
if 
  8 > 203@
goto_if_false @FINALEC_13066
203@ = 8

:FINALEC_13066
if 
  203@ == 8
goto_if_false @FINALEC_13144
if 
  Char.LocateAnyMeansChar2D($scplayer, $sweet, 30.0, 30.0, False)
goto_if_false @FINALEC_13144
set_lvar_int_to_constant 187@ = 14902
set_lvar_text_label 188@s = 'ROT4_KB'
gosub @FINALEC_56933

:FINALEC_13144
if 
  204@ == 0
goto_if_false @FINALEC_13240
if 
  203@ == 9
goto_if_false @FINALEC_13240
if 
  Char.LocateAnyMeansChar2D($scplayer, $sweet, 30.0, 30.0, False)
goto_if_false @FINALEC_13240
set_lvar_int_to_constant 187@ = 14819
set_lvar_text_label 188@s = 'ROT4_KD'
gosub @FINALEC_56933

:FINALEC_13240
if 
  204@ == 0
goto_if_false @FINALEC_13336
if 
  203@ == 10
goto_if_false @FINALEC_13336
if 
  Char.LocateAnyMeansChar2D($scplayer, $sweet, 30.0, 30.0, False)
goto_if_false @FINALEC_13336
set_lvar_int_to_constant 187@ = 14820
set_lvar_text_label 188@s = 'ROT4_KE'
gosub @FINALEC_56933

:FINALEC_13336
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_13938
if 
  not Char.IsDead($sweet)
goto_if_false @FINALEC_13938
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_13938
if 
  191@ == 2
goto_if_false @FINALEC_13669
175@, 176@, 177@ = Car.GetOffsetInWorldCoords(153@, 0.0, 1.5, 0.5)
171@ -= 1.0
sub_float_lvar_from_float_lvar 172@ -= 178@
sub_float_lvar_from_float_lvar 173@ -= 179@
sub_float_lvar_from_float_lvar 174@ -= 180@
set_lvar_float_to_lvar_float 181@ = 175@
add_float_lvar_to_float_lvar 181@ += 172@
set_lvar_float_to_lvar_float 182@ = 176@
add_float_lvar_to_float_lvar 182@ += 173@
set_lvar_float_to_lvar_float 183@ = 177@
add_float_lvar_to_float_lvar 183@ += 174@
183@ -= 1.0
Char.SetCoordinates($sweet, 181@, 182@, 183@)
if 
  171@ == 0.0
goto_if_false @FINALEC_13669
Char.AttachToCar($sweet, 153@, 0.0, 1.5, 0.5, 0, 0.0, WeaponType.Unarmed)
Task.PlayAnimNonInterruptable($sweet, "FIN_LAND_CAR", "FINALE", 4.0, False, False, False, True, -1)
if 
  Blip.DoesExist(115@)
goto_if_false @FINALEC_13655
Blip.ChangeDisplay(115@, BlipDisplay.BlipOnly)

:FINALEC_13655
TIMERA = 0
191@ = 3

:FINALEC_13669
if 
  191@ == 3
goto_if_false @FINALEC_13830
if 
  Char.IsPlayingAnim($sweet, "FIN_LAND_CAR")
goto_if_false @FINALEC_13830
164@ = Char.GetAnimCurrentTime($sweet, "FIN_LAND_CAR")
if 
  164@ == 1.0
goto_if_false @FINALEC_13830
Audio.ReportMissionAudioEventAtPosition(181@, 182@, 183@, 1009)
Task.PlayAnimNonInterruptable($sweet, "FIN_CLIMB_IN", "FINALE", 4.0, False, False, False, True, -1)
TIMERA = 0
191@ = 4

:FINALEC_13830
if 
  4 > 191@
goto_if_false @FINALEC_13938
if 
  191@ > 1
goto_if_false @FINALEC_13938
gosub @FINALEC_56975
if 
  204@ == 0
goto_if_false @FINALEC_13938
if 
  203@ == 0
goto_if_false @FINALEC_13938
set_lvar_int_to_constant 187@ = 14890
set_lvar_text_label 188@s = 'ROT4_MC'
gosub @FINALEC_56933

:FINALEC_13938
if 
  $carhealth_fc == 0
goto_if_false @FINALEC_16414
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_16414
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_16414
if 
  not Char.IsDead($sweet)
goto_if_false @FINALEC_16414
if 
  191@ == 4
goto_if_false @FINALEC_14219
if 
  TIMERA > 2800
goto_if_false @FINALEC_14219
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
204@ = 0
203@ = 0
Camera.SetFixedPosition(2908.949, -1565.179, 15.6092, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2908.996, -1565.014, 14.624, SwitchType.JumpCut)
Camera.SetInterpolationParameters(0.0, 1500)
Car.ForceLights(152@, CarLights.ForceOff)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Car.SetProofs(153@, True, True, True, True, True)
Hud.ClearCounter($fgripbardisplay_fc)
Char.Delete(158@)
if 
  Car.IsPlaybackGoingOn(152@)
goto_if_false @FINALEC_14186
Car.StopPlayback(152@)

:FINALEC_14186
Car.StartPlayback(152@, 290)
Car.SetPlaybackSpeed(152@, 0.9)
Car.StartPlayback(153@, 291)
191@ = 5

:FINALEC_14219
if 
  191@ == 5
goto_if_false @FINALEC_15129
if 
  Car.IsPlaybackGoingOn(152@)
goto_if_false @FINALEC_15129
if 
  Car.IsPlaybackGoingOn(153@)
goto_if_false @FINALEC_15129
Car.PausePlayback(152@)
Car.PausePlayback(153@)
Streaming.RequestCarRecording(230)
Streaming.RequestCarRecording(231)
Streaming.RequestCarRecording(232)
Streaming.RequestCarRecording(233)
Streaming.RequestCarRecording(234)
Streaming.RequestCarRecording(235)
Streaming.RequestCarRecording(236)
Streaming.RequestCarRecording(237)
Streaming.RequestCarRecording(238)
Streaming.RequestCarRecording(239)
Streaming.RequestCarRecording(240)
Streaming.RequestModel(352)
Streaming.RequestModel(596)
Streaming.RequestModel(468)
Streaming.RequestModel(344)
Streaming.RequestModel(110)
Streaming.RequestModel(576)
Streaming.LoadAllModelsNow

:FINALEC_14365
if or
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(596)
  not Streaming.HasModelLoaded(468)
goto_if_false @FINALEC_14402
wait 0
goto @FINALEC_14365

:FINALEC_14402
if or
  not Streaming.HasModelLoaded(110)
  not Streaming.HasModelLoaded(576)
  not Streaming.HasModelLoaded(344)
goto_if_false @FINALEC_14438
wait 0
goto @FINALEC_14402

:FINALEC_14438
wait 2000
if 
  not Char.IsDead($sweet)
goto_if_false @FINALEC_14869
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_14869
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_14869
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
$player_z -= 10.0
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @FINALEC_14545
Char.WarpFromCarToCoord($scplayer, $player_x, $player_y, $player_z)

:FINALEC_14545
Char.GiveWeapon($scplayer, WeaponType.MicroUzi, 99999)
$player_x, $player_y, $player_z = Char.GetCoordinates($sweet)
$player_z -= 10.0
if 
  Char.IsInAnyCar($sweet)
goto_if_false @FINALEC_14618
Char.WarpFromCarToCoord($sweet, $player_x, $player_y, $player_z)
goto @FINALEC_14637

:FINALEC_14618
Char.DetachFromCar($sweet)
Char.SetCoordinates($sweet, $player_x, $player_y, $player_z)

:FINALEC_14637
Char.WarpIntoCar($sweet, 153@)
Char.WarpIntoCarAsPassenger($scplayer, 153@, 0)
158@ = Char.Create(PedType.Mission1, 280, $player_x, $player_y, $player_z)
Char.SetDecisionMaker(158@, 97@)
Char.AttachToCar(158@, 152@, -0.014, -7.4, -999.253, 2, 0.0, WeaponType.MicroUzi)
Car.ControlMovablePart(152@, 0.2)
Char.SetHealth(158@, 1000)
Char.SetAccuracy(158@, 50)
set_lvar_int_to_lvar_int 102@ = 158@
gosub @FINALEC_57159
159@ = Char.Create(PedType.Mission1, 280, $player_x, $player_y, $player_z)
Char.SetDecisionMaker(159@, 97@)
Char.AttachToCar(159@, 152@, 0.0, 0.656, 2.408, 0, 0.0, WeaponType.MicroUzi)
Task.PlayAnimNonInterruptable(159@, "FIN_COP1_CLIMBOUT", "FINALE2", 1000.0, False, False, False, True, -1)
Char.SetHealth(159@, 1000)

:FINALEC_14869
if 
  Char.IsPlayingAnim(159@, "FIN_COP1_CLIMBOUT")
goto_if_false @FINALEC_14981
170@ = Char.GetAnimCurrentTime(159@, "FIN_COP1_CLIMBOUT")
if 
  170@ > 0.0
goto_if_false @FINALEC_14981
Char.SetAnimSpeed(159@, "FIN_COP1_CLIMBOUT", 0.0)

:FINALEC_14981
if 
  not Char.IsDead($sweet)
goto_if_false @FINALEC_15083
Task.PlayAnimNonInterruptable($sweet, "FIN_SWITCH_S", "FINALE2", 8.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable($scplayer, "FIN_SWITCH_P", "FINALE2", 8.0, False, False, False, False, -1)

:FINALEC_15083
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_15129
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_15129
TIMERA = 0
191@ = 6

:FINALEC_15129
if 
  191@ == 6
goto_if_false @FINALEC_15444
if 
  not Char.IsDead($sweet)
goto_if_false @FINALEC_15444
if 
  Char.IsPlayingAnim($sweet, "FIN_SWITCH_S")
goto_if_false @FINALEC_15444
if 
  Char.IsPlayingAnim($scplayer, "FIN_SWITCH_P")
goto_if_false @FINALEC_15444
170@ = Char.GetAnimCurrentTime($scplayer, "FIN_SWITCH_P")
if 
  170@ > 0.0
goto_if_false @FINALEC_15444
Char.SetAnimSpeed($scplayer, "FIN_SWITCH_P", 0.0)
170@ = Char.GetAnimCurrentTime($sweet, "FIN_SWITCH_S")
if 
  170@ > 0.0
goto_if_false @FINALEC_15444
Char.SetAnimSpeed($sweet, "FIN_SWITCH_S", 0.0)
if 
  not Char.IsDead(159@)
goto_if_false @FINALEC_15437
if 
  Char.IsPlayingAnim(159@, "FIN_COP1_CLIMBOUT")
goto_if_false @FINALEC_15437
Char.SetAnimSpeed(159@, "FIN_COP1_CLIMBOUT", 0.0)

:FINALEC_15437
191@ = 7

:FINALEC_15444
if 
  191@ == 7
goto_if_false @FINALEC_15557
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_15557
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_15557
if 
  Car.IsPlaybackGoingOn(152@)
goto_if_false @FINALEC_15557
if 
  Car.IsPlaybackGoingOn(153@)
goto_if_false @FINALEC_15557
Car.UnpausePlayback(152@)
Car.UnpausePlayback(153@)
Car.ForceLights(152@, CarLights.ForceOn)
TIMERA = 0
191@ = 8

:FINALEC_15557
if 
  191@ == 8
goto_if_false @FINALEC_15652
if 
  TIMERA > 599
goto_if_false @FINALEC_15652
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_15652
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_15652
Camera.PointAtPoint(2909.198, -1564.303, 15.1955, SwitchType.Interpolation)
191@ = 9

:FINALEC_15652
if 
  191@ == 9
goto_if_false @FINALEC_15744
if 
  TIMERA > 2500
goto_if_false @FINALEC_15744
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_15744
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_15744
Camera.Restore
204@ = 0
203@ = 0
191@ = 10

:FINALEC_15744
if 
  191@ == 10
goto_if_false @FINALEC_15822
if 
  TIMERA > 4600
goto_if_false @FINALEC_15822
Hud.SwitchWidescreen(False)
Char.SetProofs($scplayer, True, True, True, True, True)
Char.SetProofs($sweet, True, True, True, True, True)
191@ = 11

:FINALEC_15822
if 
  191@ == 11
goto_if_false @FINALEC_15974
if 
  TIMERA > 5000
goto_if_false @FINALEC_15974
if 
  Char.IsPlayingAnim($scplayer, "FIN_SWITCH_P")
goto_if_false @FINALEC_15974
if 
  Char.IsPlayingAnim($sweet, "FIN_SWITCH_S")
goto_if_false @FINALEC_15974
Char.SetAnimSpeed($scplayer, "FIN_SWITCH_P", 1.0)
Char.SetAnimSpeed($sweet, "FIN_SWITCH_S", 1.0)
191@ = 12

:FINALEC_15974
if 
  191@ == 12
goto_if_false @FINALEC_16306
if 
  Char.IsPlayingAnim($scplayer, "FIN_SWITCH_P")
goto_if_false @FINALEC_16306
170@ = Char.GetAnimCurrentTime($scplayer, "FIN_SWITCH_P")
if 
  170@ == 1.0
goto_if_false @FINALEC_16306
Task.DriveBy($scplayer, -1, -1, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 100)
Player.SetControl($player1, True)
Pad.SetPlayerEnterCarButton($player1, False)
Char.SetProofs($scplayer, True, True, True, True, True)
Car.SetProofs(153@, True, True, True, True, True)
Car.SetHealth(153@, 90000)
$health_fc = Car.GetHealth(153@)
$health_fc /= 200
Hud.DisplayCounterWithString($health_fc, CounterDisplay.Bar, 'RM4_52')
if 
  not Char.IsDead(158@)
goto_if_false @FINALEC_16215
Char.SetProofs(158@, False, True, True, False, False)

:FINALEC_16215
if 
  not Char.IsDead(159@)
goto_if_false @FINALEC_16246
Char.SetProofs(159@, True, True, True, True, True)

:FINALEC_16246
196@ = 0
197@ = 1
$carhealth_fc = 1
$rails_fcflag = 1
191@ = 13
Text.PrintHelp('RM4_54')
204@ = 0
203@ = 0

:FINALEC_16306
if 
  191@ > 10
goto_if_false @FINALEC_16414
if 
  13 > 191@
goto_if_false @FINALEC_16414
gosub @FINALEC_56975
if 
  204@ == 0
goto_if_false @FINALEC_16414
if 
  203@ == 0
goto_if_false @FINALEC_16414
set_lvar_int_to_constant 187@ = 14891
set_lvar_text_label 188@s = 'ROT4_ME'
gosub @FINALEC_56933

:FINALEC_16414
if 
  $carhealth_fc == 1
goto_if_false @FINALEC_30592
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_30592
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_30592
$health_fc = Car.GetHealth(153@)
$health_fc -= 12000
if 
  0 >= $health_fc
goto_if_false @FINALEC_16591
$health_fc = 0
Car.SetProofs(153@, False, False, False, False, False)
Char.SetProofs($scplayer, False, False, False, False, False)
if 
  not Char.IsDead($sweet)
goto_if_false @FINALEC_16556
Task.Die($sweet)

:FINALEC_16556
Car.Explode(153@)
Text.PrintNow('RM4_53', 5000, 1)
goto @FINALEC_57241
goto @FINALEC_16598

:FINALEC_16591
$health_fc /= 80

:FINALEC_16598
if 
  Char.IsDead($sweet)
goto_if_false @FINALEC_16637
Text.PrintNow('RM4_53', 5000, 1)
goto @FINALEC_57241

:FINALEC_16637
if 
  5 > 196@
goto_if_false @FINALEC_17113
if 
  not Char.IsDead(158@)
goto_if_false @FINALEC_17092
if 
  196@ == 0
goto_if_false @FINALEC_16789
$igripbardisplay_fc = Char.GetHealth(158@)
if 
  970 > $igripbardisplay_fc
goto_if_false @FINALEC_16789
Char.SetProofs(158@, True, True, True, True, True)
Char.SetCurrentWeapon(158@, WeaponType.Unarmed)
Task.PlayAnimNonInterruptable(158@, "FIN_COP1_SHOT", "FINALE2", 1000.0, False, False, False, True, -1)
196@ = 1

:FINALEC_16789
if 
  196@ == 1
goto_if_false @FINALEC_16934
if 
  Char.IsPlayingAnim(158@, "FIN_COP1_SHOT")
goto_if_false @FINALEC_16934
170@ = Char.GetAnimCurrentTime(158@, "FIN_COP1_SHOT")
if 
  170@ == 1.0
goto_if_false @FINALEC_16934
Task.PlayAnimNonInterruptable(158@, "FIN_COP1_SWING", "FINALE2", 1000.0, True, False, False, True, -1)
196@ = 2

:FINALEC_16934
if 
  196@ == 3
goto_if_false @FINALEC_17008
Char.DetachFromCar(158@)
Task.PlayAnimNonInterruptable(158@, "FIN_COP1_SHOT", "FINALE2", 1000.0, False, True, True, True, -1)
196@ = 4

:FINALEC_17008
if 
  196@ == 4
goto_if_false @FINALEC_17085
if 
  not Char.LocateAnyMeansChar2D($scplayer, 158@, 20.0, 20.0, False)
goto_if_false @FINALEC_17085
if 
  not Char.IsOnScreen(158@)
goto_if_false @FINALEC_17085
Char.MarkAsNoLongerNeeded(158@)
196@ = 5

:FINALEC_17085
goto @FINALEC_17113

:FINALEC_17092
if 
  Char.DoesExist(158@)
goto_if_false @FINALEC_17113
Char.DetachFromCar(158@)

:FINALEC_17113
if 
  6 > 197@
goto_if_false @FINALEC_17850
if 
  not Char.IsDead(159@)
goto_if_false @FINALEC_17829
if 
  197@ == 1
goto_if_false @FINALEC_17236
if 
  Char.IsPlayingAnim(159@, "FIN_COP1_CLIMBOUT")
goto_if_false @FINALEC_17236
Char.SetAnimSpeed(159@, "FIN_COP1_CLIMBOUT", 1.0)
197@ = 2

:FINALEC_17236
if 
  197@ == 2
goto_if_false @FINALEC_17444
if 
  Char.IsPlayingAnim(159@, "FIN_COP1_CLIMBOUT")
goto_if_false @FINALEC_17444
170@ = Char.GetAnimCurrentTime(159@, "FIN_COP1_CLIMBOUT")
if 
  170@ == 1.0
goto_if_false @FINALEC_17444
Char.DetachFromCar(159@)
Char.AttachToCar(159@, 152@, -0.991, -4.12, 0.297, 2, 0.0, WeaponType.MicroUzi)
Task.PlayAnimNonInterruptable(159@, "FIN_COP2_CLIMBOUT", "FINALE2", 1000.0, False, False, False, True, -1)
Char.SetHealth(159@, 1000)
Char.SetAccuracy(159@, 5)
197@ = 3

:FINALEC_17444
if 
  197@ == 3
goto_if_false @FINALEC_17639
if 
  Char.IsPlayingAnim(159@, "FIN_COP2_CLIMBOUT")
goto_if_false @FINALEC_17639
170@ = Char.GetAnimCurrentTime(159@, "FIN_COP2_CLIMBOUT")
if 
  170@ == 1.0
goto_if_false @FINALEC_17639
TIMERB = 0
$igripbardisplay_fc = Char.GetHealth(159@)
if 
  $igripbardisplay_fc > 950
goto_if_false @FINALEC_17594
Char.SetHealth(159@, 1100)
goto @FINALEC_17602

:FINALEC_17594
Char.SetHealth(159@, 1050)

:FINALEC_17602
set_lvar_int_to_lvar_int 102@ = 159@
Char.SetProofs(159@, False, False, False, False, False)
gosub @FINALEC_57203
197@ = 4

:FINALEC_17639
if 
  197@ == 4
goto_if_false @FINALEC_17745
$igripbardisplay_fc = Char.GetHealth(159@)
if or
  1000 > $igripbardisplay_fc
  TIMERB > 60000
goto_if_false @FINALEC_17745
Char.DetachFromCar(159@)
Task.PlayAnimNonInterruptable(159@, "KO_SKID_BACK", "PED", 1000.0, False, True, True, True, -1)
197@ = 5

:FINALEC_17745
if 
  197@ == 5
goto_if_false @FINALEC_17822
if 
  not Char.LocateAnyMeansChar2D($scplayer, 159@, 30.0, 30.0, False)
goto_if_false @FINALEC_17822
if 
  not Char.IsOnScreen(159@)
goto_if_false @FINALEC_17822
Char.MarkAsNoLongerNeeded(159@)
197@ = 6

:FINALEC_17822
goto @FINALEC_17850

:FINALEC_17829
if 
  Char.DoesExist(159@)
goto_if_false @FINALEC_17850
Char.DetachFromCar(159@)

:FINALEC_17850
if 
  $finalerails_fcflag == 0
goto_if_false @FINALEC_18174
if 
  Car.Locate2D(152@, 2861.28, -1298.8, 25.0, 25.0, False)
goto_if_false @FINALEC_18174
217@ = Car.Create(596, 2816.01, -1186.56, 23.95)
Car.SetHeading(217@, 279.03)
Car.SetHealth(217@, 400)
Car.SetOnlyDamagedByPlayer(217@, True)
154@ = Char.CreateInsideCar(217@, PedType.Mission1, 280)
Char.SetDecisionMaker(154@, 97@)
Char.SetSuffersCriticalHits(154@, False)
Char.SetOnlyDamagedByPlayer(154@, True)
155@ = Char.CreateAsPassenger(217@, PedType.Mission1, 280, 0)
Char.SetDecisionMaker(155@, 97@)
Char.SetOnlyDamagedByPlayer(155@, True)
Char.GiveWeapon(155@, WeaponType.MicroUzi, 9999)
218@ = Car.Create(596, 2803.0, -1183.0, 26.0)
Car.SetHeading(218@, 261.0)
Car.SetHealth(218@, 600)
Car.SetOnlyDamagedByPlayer(218@, True)
156@ = Char.CreateInsideCar(218@, PedType.Mission1, 280)
Char.SetDecisionMaker(156@, 97@)
Char.SetSuffersCriticalHits(156@, False)
Char.SetOnlyDamagedByPlayer(156@, True)
207@ = Char.CreateAsPassenger(218@, PedType.Mission1, 280, 0)
Char.SetDecisionMaker(207@, 97@)
Char.SetOnlyDamagedByPlayer(207@, True)
Char.GiveWeapon(207@, WeaponType.MicroUzi, 9999)
Car.SetProofs(218@, False, True, True, False, False)
$finalerails_fcflag = 1

:FINALEC_18174
if 
  $finalerails_fcflag == 1
goto_if_false @FINALEC_18725
if 
  Car.Locate2D(152@, 2849.39, -1232.93, 20.0, 20.0, False)
goto_if_false @FINALEC_18725
if 
  not Car.IsDead(217@)
goto_if_false @FINALEC_18342
Car.StartPlayback(217@, 230)
Car.SwitchSiren(217@, True)
if 
  not Char.IsDead(155@)
goto_if_false @FINALEC_18313
Task.DriveBy(155@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 80)

:FINALEC_18313
247@ = Blip.AddForCar(217@)
Blip.ChangeDisplay(247@, BlipDisplay.BlipOnly)
249@ = 1
260@ = 1

:FINALEC_18342
if 
  not Car.IsDead(218@)
goto_if_false @FINALEC_18454
Car.SwitchSiren(218@, True)
Car.StartPlayback(218@, 231)
if 
  not Char.IsDead(207@)
goto_if_false @FINALEC_18425
Task.DriveBy(207@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 80)

:FINALEC_18425
248@ = Blip.AddForCar(218@)
Blip.ChangeDisplay(248@, BlipDisplay.BlipOnly)
250@ = 1
261@ = 1

:FINALEC_18454
206@ = 1
211@ = Car.Create(576, 2735.333, -1081.047, 69.033)
Car.SetHeading(211@, 37.918)
Car.SetHealth(211@, 275)
Car.SetOnlyDamagedByPlayer(211@, True)
34@ = Char.CreateInsideCar(211@, PedType.Mission1, 7)
Char.SetDecisionMaker(34@, 97@)
Char.SetOnlyDamagedByPlayer(34@, True)
35@ = Char.CreateAsPassenger(211@, PedType.Mission1, 7, 0)
Char.SetDecisionMaker(35@, 97@)
Char.SetOnlyDamagedByPlayer(35@, True)
Char.GiveWeapon(35@, WeaponType.MicroUzi, 9999)
Car.SetProofs(211@, False, True, True, False, False)
212@ = Car.Create(576, 2595.742, -1003.581, 75.038)
Car.SetHeading(212@, 180.0)
Car.SetOnlyDamagedByPlayer(212@, True)
36@ = Char.CreateInsideCar(212@, PedType.Mission1, 7)
Char.SetDecisionMaker(36@, 97@)
Char.SetSuffersCriticalHits(36@, False)
Char.SetOnlyDamagedByPlayer(36@, True)
37@ = Char.CreateAsPassenger(212@, PedType.Mission1, 7, 0)
Char.SetDecisionMaker(37@, 97@)
Char.SetOnlyDamagedByPlayer(37@, True)
Char.GiveWeapon(37@, WeaponType.MicroUzi, 9999)
Car.SetProofs(212@, False, True, True, False, False)
$finalerails_fcflag = 2

:FINALEC_18725
if 
  $finalerails_fcflag == 2
goto_if_false @FINALEC_19836
if 
  Car.Locate2D(153@, 2717.71, -1047.36, 20.0, 20.0, False)
goto_if_false @FINALEC_19836
Streaming.MarkModelAsNoLongerNeeded(596)
206@ = 2
if 
  not Car.IsDead(211@)
goto_if_false @FINALEC_18898
Car.StartPlayback(211@, 232)
if 
  not Char.IsDead(35@)
goto_if_false @FINALEC_18869
Task.DriveBy(35@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 60)

:FINALEC_18869
241@ = Blip.AddForCar(211@)
Blip.ChangeDisplay(241@, BlipDisplay.BlipOnly)
254@ = 1
265@ = 1

:FINALEC_18898
if 
  not Car.IsDead(212@)
goto_if_false @FINALEC_19003
Car.StartPlayback(212@, 233)
if 
  not Char.IsDead(37@)
goto_if_false @FINALEC_18974
Task.DriveBy(37@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 60)

:FINALEC_18974
242@ = Blip.AddForCar(212@)
Blip.ChangeDisplay(242@, BlipDisplay.BlipOnly)
255@ = 1
266@ = 1

:FINALEC_19003
208@ = Car.Create(576, 2707.499, -1329.559, 47.3)
Car.SetHeading(208@, 265.83)
Car.SetOnlyDamagedByPlayer(208@, True)
38@ = Char.CreateInsideCar(208@, PedType.Mission1, 110)
Char.SetDecisionMaker(38@, 97@)
Char.SetOnlyDamagedByPlayer(38@, True)
39@ = Char.CreateAsPassenger(208@, PedType.Mission1, 110, 0)
Char.SetDecisionMaker(39@, 97@)
Char.SetOnlyDamagedByPlayer(39@, True)
Char.GiveWeapon(39@, WeaponType.MicroUzi, 99999)
Car.SetProofs(208@, False, True, True, False, False)
Car.SetHealth(208@, 300)
209@ = Car.Create(576, 2759.875, -1373.294, 38.777)
Car.SetHeading(209@, 90.9)
Car.SetOnlyDamagedByPlayer(209@, True)
40@ = Char.CreateInsideCar(209@, PedType.Mission1, 110)
Char.SetDecisionMaker(40@, 97@)
Char.SetOnlyDamagedByPlayer(40@, True)
41@ = Char.CreateAsPassenger(209@, PedType.Mission1, 110, 0)
Char.SetDecisionMaker(41@, 97@)
Char.SetOnlyDamagedByPlayer(41@, True)
Char.GiveWeapon(41@, WeaponType.MicroUzi, 99999)
Car.SetProofs(209@, False, True, True, False, False)
Car.SetHealth(209@, 800)
169@ = Object.Create(#LA_FUCKCAR2, 2722.599, -1324.889, 49.47)
Object.SetDynamic(169@, True)
Object.SetHeading(169@, 83.325)
228@ = Char.Create(PedType.Mission1, 110, 2631.18, -1244.17, 50.58)
Char.SetHeading(228@, 62.09)
Char.SetProofs(228@, False, True, False, False, False)
Char.SetOnlyDamagedByPlayer(228@, True)
Char.SetHealth(228@, 10)
Char.SetDecisionMaker(228@, 97@)
Char.GiveWeapon(228@, WeaponType.Molotov, 9999)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_19425
set_lvar_int_to_lvar_int 102@ = 228@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_19425
232@ = Char.Create(PedType.Mission1, 110, 2646.11, -1193.27, 66.1)
Char.SetHeading(232@, 285.845)
Char.GiveWeapon(232@, WeaponType.Molotov, 9999)
Char.SetProofs(232@, False, True, False, False, False)
Char.SetHealth(232@, 10)
Char.SetDecisionMaker(232@, 97@)
set_lvar_int_to_lvar_int 102@ = 232@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
233@ = Char.Create(PedType.Mission1, 110, 2653.935, -1211.778, 61.667)
Char.SetHeading(233@, 360.0)
Char.GiveWeapon(233@, WeaponType.Molotov, 9999)
Char.SetProofs(233@, False, True, False, False, False)
Char.SetHealth(233@, 10)
Char.SetDecisionMaker(233@, 97@)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_19635
set_lvar_int_to_lvar_int 102@ = 233@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_19635
234@ = Char.Create(PedType.Mission1, 110, 2664.336, -1173.326, 66.69)
Char.SetHeading(234@, 53.93)
Char.GiveWeapon(234@, WeaponType.Molotov, 9999)
Char.SetProofs(234@, False, True, False, False, False)
Char.SetHealth(234@, 10)
Char.SetDecisionMaker(234@, 97@)
set_lvar_int_to_lvar_int 102@ = 234@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
235@ = Char.Create(PedType.Mission1, 110, 2639.27, -1175.4, 66.5)
Char.SetHeading(235@, 2.3)
Char.GiveWeapon(235@, WeaponType.Molotov, 9999)
Char.SetProofs(235@, False, True, False, False, False)
Char.SetHealth(235@, 10)
Char.SetDecisionMaker(235@, 97@)
set_lvar_int_to_lvar_int 102@ = 232@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
$finalerails_fcflag = 3

:FINALEC_19836
if 
  $finalerails_fcflag == 3
goto_if_false @FINALEC_20116
if 
  Car.Locate2D(152@, 2737.48, -1309.88, 30.0, 30.0, False)
goto_if_false @FINALEC_20116
206@ = 3
if 
  not Car.IsDead(208@)
goto_if_false @FINALEC_20004
Car.StartPlayback(208@, 234)
if 
  not Char.IsDead(39@)
goto_if_false @FINALEC_19975
Task.DriveBy(39@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 80)

:FINALEC_19975
238@ = Blip.AddForCar(208@)
Blip.ChangeDisplay(238@, BlipDisplay.BlipOnly)
251@ = 1
262@ = 1

:FINALEC_20004
if 
  not Car.IsDead(209@)
goto_if_false @FINALEC_20109
Car.StartPlayback(209@, 235)
if 
  not Char.IsDead(41@)
goto_if_false @FINALEC_20080
Task.DriveBy(41@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 60)

:FINALEC_20080
239@ = Blip.AddForCar(209@)
Blip.ChangeDisplay(239@, BlipDisplay.BlipOnly)
252@ = 1
263@ = 1

:FINALEC_20109
$finalerails_fcflag = 4

:FINALEC_20116
if 
  $finalerails_fcflag == 4
goto_if_false @FINALEC_20571
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_20571
if 
  Car.Locate2D(153@, 2662.6, -1404.83, 20.0, 20.0, False)
goto_if_false @FINALEC_20571
206@ = 4
213@ = Car.Create(468, 2657.455, -1594.463, 12.685)
Car.SetHeading(213@, 85.0)
42@ = Char.CreateInsideCar(213@, PedType.Mission1, 110)
Char.SetDecisionMaker(42@, 97@)
Char.SetOnlyDamagedByPlayer(42@, True)
43@ = Char.CreateAsPassenger(213@, PedType.Mission1, 110, 0)
Char.SetDecisionMaker(43@, 97@)
Char.SetOnlyDamagedByPlayer(43@, True)
Char.GiveWeapon(43@, WeaponType.MicroUzi, 99999)
Car.SetOnlyDamagedByPlayer(213@, True)
Car.SetProofs(213@, False, True, True, False, False)
214@ = Car.Create(468, 2642.0, -1615.0, 19.0)
Car.SetHeading(214@, 181.0)
44@ = Char.CreateInsideCar(214@, PedType.Mission1, 110)
Char.SetDecisionMaker(44@, 97@)
Char.SetOnlyDamagedByPlayer(44@, True)
45@ = Char.CreateAsPassenger(214@, PedType.Mission1, 110, 0)
Char.SetDecisionMaker(45@, 97@)
Char.SetOnlyDamagedByPlayer(45@, True)
Char.GiveWeapon(45@, WeaponType.MicroUzi, 99999)
Car.SetOnlyDamagedByPlayer(214@, True)
Car.SetProofs(214@, False, True, True, False, False)
215@ = Car.Create(468, 2650.0, -1621.0, 19.0)
Car.SetHeading(215@, 170.0)
46@ = Char.CreateInsideCar(215@, PedType.Mission1, 110)
Char.SetDecisionMaker(46@, 97@)
Char.SetOnlyDamagedByPlayer(46@, True)
47@ = Char.CreateAsPassenger(215@, PedType.Mission1, 110, 0)
Char.SetDecisionMaker(47@, 97@)
Char.SetOnlyDamagedByPlayer(47@, True)
Char.GiveWeapon(47@, WeaponType.MicroUzi, 99999)
Car.SetOnlyDamagedByPlayer(215@, True)
Car.SetProofs(215@, False, True, True, False, False)
$finalerails_fcflag = 5

:FINALEC_20571
if 
  $finalerails_fcflag == 5
goto_if_false @FINALEC_21079
if 
  Car.Locate2D(152@, 2642.71, -1570.03, 20.0, 20.0, False)
goto_if_false @FINALEC_21079
206@ = 5
if 
  not Car.IsDead(213@)
goto_if_false @FINALEC_20739
Car.StartPlayback(213@, 236)
if 
  not Char.IsDead(43@)
goto_if_false @FINALEC_20710
Task.DriveBy(43@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 60)

:FINALEC_20710
243@ = Blip.AddForCar(213@)
Blip.ChangeDisplay(243@, BlipDisplay.BlipOnly)
256@ = 1
267@ = 1

:FINALEC_20739
if 
  not Car.IsDead(214@)
goto_if_false @FINALEC_20844
Car.StartPlayback(214@, 237)
if 
  not Char.IsDead(45@)
goto_if_false @FINALEC_20815
Task.DriveBy(45@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 60)

:FINALEC_20815
244@ = Blip.AddForCar(214@)
Blip.ChangeDisplay(244@, BlipDisplay.BlipOnly)
257@ = 1
268@ = 1

:FINALEC_20844
if 
  not Car.IsDead(215@)
goto_if_false @FINALEC_20949
Car.StartPlayback(215@, 238)
if 
  not Char.IsDead(47@)
goto_if_false @FINALEC_20920
Task.DriveBy(47@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 60)

:FINALEC_20920
245@ = Blip.AddForCar(215@)
Blip.ChangeDisplay(245@, BlipDisplay.BlipOnly)
258@ = 1
269@ = 1

:FINALEC_20949
210@ = Car.Create(576, 2704.0, -1654.0, 10.0)
Car.SetHeading(210@, 90.0)
Car.SetHealth(210@, 300)
221@ = Char.CreateInsideCar(210@, PedType.Mission1, 110)
Char.SetDecisionMaker(221@, 97@)
Char.SetSuffersCriticalHits(221@, False)
Char.SetOnlyDamagedByPlayer(221@, True)
222@ = Char.CreateAsPassenger(210@, PedType.Mission1, 110, 0)
Char.SetDecisionMaker(222@, 97@)
Char.SetOnlyDamagedByPlayer(222@, True)
Char.GiveWeapon(222@, WeaponType.MicroUzi, 99999)
Car.SetOnlyDamagedByPlayer(210@, True)
$finalerails_fcflag = 6

:FINALEC_21079
if 
  $finalerails_fcflag == 6
goto_if_false @FINALEC_21247
if 
  Car.Locate2D(153@, 2642.98, -1619.8, 20.0, 20.0, False)
goto_if_false @FINALEC_21247
if 
  not Car.IsDead(210@)
goto_if_false @FINALEC_21240
Car.StartPlayback(210@, 239)
if 
  not Char.IsDead(222@)
goto_if_false @FINALEC_21211
Task.DriveBy(222@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 60)

:FINALEC_21211
240@ = Blip.AddForCar(210@)
Blip.ChangeDisplay(240@, BlipDisplay.BlipOnly)
253@ = 1
264@ = 1

:FINALEC_21240
$finalerails_fcflag = 7

:FINALEC_21247
if 
  $finalerails_fcflag == 7
goto_if_false @FINALEC_21394
if 
  Car.Locate2D(152@, 2407.93, -1918.34, 15.0, 15.0, False)
goto_if_false @FINALEC_21394
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Car.SetProofs(153@, True, True, True, True, True)
Camera.SetFixedPosition(2409.032, -1921.426, 14.0992, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2408.994, -1920.431, 14.0044, SwitchType.JumpCut)
TIMERA = 0
$finalerails_fcflag = 8

:FINALEC_21394
if 
  $finalerails_fcflag == 8
goto_if_false @FINALEC_21660
if 
  TIMERA > 5000
goto_if_false @FINALEC_21660
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
Char.Delete(158@)
Char.Delete(159@)
Streaming.RequestCarRecording(241)
Streaming.RequestCarRecording(242)
Streaming.RequestCarRecording(243)
Streaming.RequestCarRecording(244)
Streaming.RequestCarRecording(245)
Streaming.RequestCarRecording(246)
Streaming.RequestCarRecording(247)
Streaming.RequestCarRecording(248)
Streaming.RequestCarRecording(249)
Streaming.RequestCarRecording(229)
Streaming.RequestModel(596)
Streaming.LoadAllModelsNow

:FINALEC_21504
if or
  not Streaming.HasModelLoaded(596)
  not Streaming.HasCarRecordingBeenLoaded(241)
  not Streaming.HasCarRecordingBeenLoaded(242)
  not Streaming.HasCarRecordingBeenLoaded(243)
  not Streaming.HasCarRecordingBeenLoaded(244)
goto_if_false @FINALEC_21551
wait 0
goto @FINALEC_21504

:FINALEC_21551
if or
  not Streaming.HasCarRecordingBeenLoaded(245)
  not Streaming.HasCarRecordingBeenLoaded(246)
  not Streaming.HasCarRecordingBeenLoaded(247)
  not Streaming.HasCarRecordingBeenLoaded(248)
  not Streaming.HasCarRecordingBeenLoaded(249)
goto_if_false @FINALEC_21598
wait 0
goto @FINALEC_21551

:FINALEC_21598
if 
  not Streaming.HasCarRecordingBeenLoaded(229)
goto_if_false @FINALEC_21625
wait 0
goto @FINALEC_21598

:FINALEC_21625
Streaming.RemoveAnimation("FINALE")
Streaming.RemoveAnimation("FINALE2")
$carhealth_fc = 2
$finalerails_fcflag = 9

:FINALEC_21660
if 
  $rails_fcflag == 1
goto_if_false @FINALEC_22857
if 
  Car.Locate2D(152@, 2835.29, -1049.49, 20.0, 20.0, False)
goto_if_false @FINALEC_22857
165@ = Object.Create(#LA_FUCKCAR2, 2806.984, -1057.249, 27.0)
Object.SetDynamic(165@, True)
Object.SetHeading(165@, 189.735)
61@ = ScriptFire.Start(2806.984, -1055.249, 28.6, 0, 2)
223@ = Char.Create(PedType.Mission1, 110, 2798.46, -1055.99, 30.43)
Char.SetHeading(223@, 285.845)
Char.GiveWeapon(223@, WeaponType.Molotov, 9999)
Char.SetProofs(223@, False, True, False, False, False)
Char.SetHealth(223@, 10)
Char.SetDecisionMaker(223@, 97@)
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
237@ = Car.Create(576, 2785.06, -1043.915, 35.916)
Car.SetHeading(237@, 4.2)
Car.SetHealth(237@, 250)
Car.SetOnlyDamagedByPlayer(237@, True)
224@ = Char.Create(PedType.Mission1, 110, 2774.56, -1011.43, 58.08)
Char.SetHeading(224@, 285.845)
Char.SetProofs(224@, False, True, False, False, False)
Char.SetHealth(224@, 10)
Char.SetDecisionMaker(224@, 97@)
Char.GiveWeapon(224@, WeaponType.Molotov, 9999)
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
226@ = Char.Create(PedType.Mission1, 110, 2782.984, -1041.284, 36.62)
Char.SetHeading(226@, 285.845)
Char.GiveWeapon(226@, WeaponType.Molotov, 9999)
Char.SetProofs(226@, False, True, False, False, False)
Char.SetHealth(226@, 10)
Char.SetDecisionMaker(226@, 97@)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_22135
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_22135
227@ = Char.Create(PedType.Mission1, 110, 2749.393, -1063.34, 53.0)
Char.SetHeading(227@, 309.534)
Char.SetProofs(227@, False, True, False, False, False)
Char.SetHealth(227@, 10)
Char.SetDecisionMaker(227@, 97@)
Char.GiveWeapon(227@, WeaponType.Molotov, 9999)
if 
  not Char.IsDead(154@)
goto_if_false @FINALEC_22255
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_lvar_int 107@ = 154@
gosub @FINALEC_57121
goto @FINALEC_22294

:FINALEC_22255
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_22294
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_22294
167@ = Object.Create(#LA_FUCKCAR2, 2688.94, -1054.034, 69.57)
Object.SetDynamic(167@, True)
Object.SetHeading(167@, 210.579)
62@ = ScriptFire.Start(2806.984, -1055.249, 28.6, 0, 2)
63@ = ScriptFire.Start(2807.984, -1056.249, 28.6, 0, 1)
229@ = Char.Create(PedType.Mission1, 110, 2724.045, -1058.115, 69.88)
Char.SetHeading(229@, 360.0)
Char.GiveWeapon(229@, WeaponType.Molotov, 9999)
Char.SetProofs(229@, False, True, False, False, False)
Char.SetHealth(229@, 10)
Char.SetDecisionMaker(229@, 97@)
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
230@ = Char.Create(PedType.Mission1, 110, 2632.0, -114.0, 68.0)
Char.SetHeading(230@, 254.974)
Char.GiveWeapon(230@, WeaponType.Molotov, 9999)
Char.SetProofs(230@, False, True, False, False, False)
Char.SetHealth(230@, 10)
Char.SetDecisionMaker(230@, 97@)
set_lvar_int_to_lvar_int 102@ = 230@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
168@ = Object.Create(#LA_FUCKCAR2, 2650.39, -1056.09, 69.66)
Object.SetDynamic(168@, True)
Object.SetHeading(168@, 228.58)
64@ = ScriptFire.Start(2650.39, -1056.09, 69.66, 0, 2)
231@ = Char.Create(PedType.Mission1, 110, 2649.78, -1052.49, 69.44)
Char.SetHeading(231@, 254.974)
Char.GiveWeapon(231@, WeaponType.Molotov, 9999)
Char.SetProofs(231@, False, True, False, False, False)
Char.SetHealth(231@, 10)
Char.SetDecisionMaker(231@, 97@)
set_lvar_int_to_lvar_int 102@ = 231@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
228@ = Char.Create(PedType.Mission1, 110, 2650.4, -1115.05, 67.12)
Char.SetHeading(228@, 360.0)
Char.GiveWeapon(228@, WeaponType.Molotov, 9999)
Char.SetProofs(228@, False, True, False, False, False)
Char.SetHealth(228@, 10)
Char.SetDecisionMaker(228@, 97@)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_22850
set_lvar_int_to_lvar_int 102@ = 228@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_22850
$rails_fcflag = 2

:FINALEC_22857
if 
  $rails_fcflag == 2
goto_if_false @FINALEC_22987
if 
  Car.Locate2D(153@, 2642.81, -1193.87, 20.0, 20.0, False)
goto_if_false @FINALEC_22987
Object.Delete(165@)
Char.Delete(223@)
Car.MarkAsNoLongerNeeded(237@)
Car.Delete(237@)
Char.Delete(224@)
Char.Delete(226@)
Char.Delete(227@)
Object.Delete(167@)
Char.Delete(229@)
Object.Delete(168@)
Char.Delete(231@)
Char.Delete(228@)
Char.Delete(230@)
World.RemoveAllScriptFires
$rails_fcflag = 3

:FINALEC_22987
if 
  $rails_fcflag == 3
goto_if_false @FINALEC_24068
if 
  Car.Locate2D(153@, 2723.81, -1275.64, 20.0, 20.0, False)
goto_if_false @FINALEC_24068
Char.Delete(232@)
Char.Delete(233@)
Char.Delete(234@)
Char.Delete(235@)
if 
  not Car.IsDead(212@)
goto_if_false @FINALEC_23094
Car.SetHealth(212@, 250)
Car.SetOnlyDamagedByPlayer(212@, False)

:FINALEC_23094
223@ = Char.Create(PedType.Mission1, 110, 2718.29, -1324.342, 48.5)
Char.SetHeading(223@, 352.57)
Char.GiveWeapon(223@, WeaponType.Molotov, 9999)
Char.SetProofs(223@, False, True, False, False, False)
Char.SetHealth(223@, 10)
Char.SetDecisionMaker(223@, 97@)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_23207
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_23207
224@ = Char.Create(PedType.Mission1, 110, 2726.95, -1324.49, 49.5)
Char.SetHeading(224@, 327.185)
Char.SetProofs(224@, False, True, False, False, False)
Char.SetHealth(224@, 10)
Char.SetDecisionMaker(224@, 97@)
Char.GiveWeapon(224@, WeaponType.Molotov, 9999)
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
226@ = Char.Create(PedType.Mission1, 110, 2710.591, -1315.29, 74.34)
Char.SetHeading(226@, 303.711)
Char.GiveWeapon(226@, WeaponType.Molotov, 9999)
Char.SetProofs(226@, False, True, False, False, False)
Char.SetHealth(226@, 10)
Char.SetDecisionMaker(226@, 97@)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_23417
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_23417
227@ = Char.Create(PedType.Mission1, 110, 2748.244, -1375.115, 49.5)
Char.SetHeading(227@, 309.534)
Char.SetProofs(227@, False, True, False, False, False)
Char.SetHealth(227@, 10)
Char.SetDecisionMaker(227@, 97@)
Char.GiveWeapon(227@, WeaponType.Molotov, 9999)
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
228@ = Char.Create(PedType.Mission1, 110, 2750.615, -1388.75, 39.0)
Char.SetHeading(228@, 62.09)
Char.SetProofs(228@, False, True, False, False, False)
Char.SetHealth(228@, 10)
Char.SetDecisionMaker(228@, 97@)
Char.GiveWeapon(228@, WeaponType.Molotov, 9999)
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
229@ = Char.Create(PedType.Mission1, 110, 2713.137, -1448.169, 41.95)
Char.SetHeading(229@, 267.04)
Char.GiveWeapon(229@, WeaponType.Molotov, 9999)
Char.SetProofs(229@, False, True, False, False, False)
Char.SetHealth(229@, 10)
Char.SetDecisionMaker(229@, 97@)
set_lvar_int_to_lvar_int 102@ = 229@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
230@ = Char.Create(PedType.Mission1, 110, 2711.935, -1399.32, 54.0)
Char.SetHeading(230@, 295.712)
Char.GiveWeapon(230@, WeaponType.Molotov, 9999)
Char.SetProofs(230@, False, True, False, False, False)
Char.SetHealth(230@, 10)
Char.SetDecisionMaker(230@, 97@)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_23821
set_lvar_int_to_lvar_int 102@ = 230@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_23821
231@ = Char.Create(PedType.Mission1, 110, 2754.71, -1309.956, 70.0)
Char.SetHeading(231@, 77.189)
Char.GiveWeapon(231@, WeaponType.Molotov, 9999)
Char.SetProofs(231@, False, True, False, False, False)
Char.SetHealth(231@, 10)
Char.SetDecisionMaker(231@, 97@)
set_lvar_int_to_lvar_int 102@ = 231@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
232@ = Char.Create(PedType.Mission1, 110, 2750.615, -1419.473, 38.5)
Char.SetHeading(232@, 77.189)
Char.GiveWeapon(232@, WeaponType.Molotov, 9999)
Char.SetProofs(232@, False, True, False, False, False)
Char.SetHealth(232@, 10)
Char.SetDecisionMaker(232@, 97@)
if 
  not Char.IsDead(40@)
goto_if_false @FINALEC_24038
set_lvar_int_to_lvar_int 102@ = 232@
set_lvar_int_to_lvar_int 107@ = 40@
gosub @FINALEC_57121
goto @FINALEC_24061

:FINALEC_24038
set_lvar_int_to_lvar_int 102@ = 232@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121

:FINALEC_24061
$rails_fcflag = 4

:FINALEC_24068
if 
  $rails_fcflag == 4
goto_if_false @FINALEC_24892
if 
  Car.Locate2D(153@, 2682.55, -1494.04, 20.0, 20.0, False)
goto_if_false @FINALEC_24892
Char.Delete(223@)
Char.Delete(224@)
Char.Delete(226@)
Char.Delete(227@)
Char.Delete(228@)
Char.Delete(229@)
Char.Delete(230@)
Char.Delete(231@)
Char.Delete(232@)
Object.Delete(165@)
World.RemoveAllScriptFires
165@ = Object.Create(#LA_FUCKCAR2, 2649.194, -1514.185, 26.6789)
Object.SetHeading(165@, 329.3793)
Object.SetDynamic(165@, True)
237@ = Car.Create(576, 2638.988, -1555.943, 18.9832)
Car.SetHeading(237@, 290.7073)
Car.SetHealth(237@, 250)
Car.SetOnlyDamagedByPlayer(237@, True)
167@ = Object.Create(#LA_FUCKCAR2, 2635.097, -1576.996, 15.3271)
Object.SetHeading(167@, 77.161)
Object.SetDynamic(167@, True)
168@ = Object.Create(#LA_FUCKCAR2, 2650.395, -1586.538, 13.6033)
Object.SetHeading(168@, 295.7696)
Object.SetDynamic(168@, True)
169@ = Object.Create(#LA_FUCKCAR2, 2649.939, -1629.937, 9.8785)
Object.SetHeading(169@, 270.0938)
Object.SetDynamic(169@, True)
223@ = Char.Create(PedType.Mission1, 110, 2647.583, -1518.547, 25.7427)
Char.SetHeading(223@, 12.7483)
Char.GiveWeapon(223@, WeaponType.Molotov, 9999)
Char.SetProofs(223@, False, True, False, False, False)
Char.SetHealth(223@, 10)
Char.SetDecisionMaker(223@, 97@)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_24497
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_24497
224@ = Char.Create(PedType.Mission1, 110, 2651.045, -1515.111, 26.5111)
Char.SetHeading(224@, 12.4201)
Char.GiveWeapon(224@, WeaponType.Molotov, 9999)
Char.SetProofs(224@, False, True, False, False, False)
Char.SetHealth(224@, 10)
Char.SetDecisionMaker(224@, 97@)
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
225@ = Char.Create(PedType.Mission1, 110, 2636.188, -1559.397, 18.5108)
Char.SetHeading(225@, 276.3582)
Char.GiveWeapon(225@, WeaponType.Molotov, 9999)
Char.SetProofs(225@, False, True, False, False, False)
Char.SetHealth(225@, 10)
Char.SetDecisionMaker(225@, 97@)
set_lvar_int_to_lvar_int 102@ = 225@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
226@ = Char.Create(PedType.Mission1, 110, 2641.418, -1558.004, 18.6112)
Char.SetHeading(226@, 339.6795)
Char.GiveWeapon(226@, WeaponType.MicroUzi, 9999)
Char.SetProofs(226@, False, True, False, False, False)
Char.SetHealth(226@, 10)
Char.SetDecisionMaker(226@, 97@)
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
227@ = Char.Create(PedType.Mission1, 110, 2649.325, -1589.41, 13.0846)
Char.SetHeading(227@, 318.9207)
Char.GiveWeapon(227@, WeaponType.MicroUzi, 9999)
Char.SetProofs(227@, False, True, False, False, False)
Char.SetHealth(227@, 10)
Char.SetDecisionMaker(227@, 97@)
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
$rails_fcflag = 5

:FINALEC_24892
if 
  $rails_fcflag == 5
goto_if_false @FINALEC_26012
if 
  Car.Locate2D(153@, 2652.95, -1404.16, 20.0, 20.0, False)
goto_if_false @FINALEC_26012
61@ = ScriptFire.Start(2641.66, -1514.55, 26.82, 0, 2)
61@ = ScriptFire.Start(2638.68, -1515.3, 26.5, 0, 3)
61@ = ScriptFire.Start(2641.58, -1538.54, 22.46, 0, 3)
61@ = ScriptFire.Start(2635.64, -1605.36, 10.7, 0, 2)
61@ = ScriptFire.Start(2643.52, -1599.47, 18.71, 0, 3)
228@ = Char.Create(PedType.Mission1, 110, 2647.583, -1518.547, 25.7427)
Char.SetHeading(228@, 12.7483)
Char.GiveWeapon(228@, WeaponType.Molotov, 9999)
Char.SetProofs(228@, False, True, False, False, False)
Char.SetHealth(228@, 10)
Char.SetDecisionMaker(228@, 97@)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_25181
set_lvar_int_to_lvar_int 102@ = 228@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_25181
229@ = Char.Create(PedType.Mission1, 110, 2652.515, -1587.552, 13.4203)
Char.SetHeading(229@, 12.4201)
Char.GiveWeapon(229@, WeaponType.Molotov, 9999)
Char.SetProofs(229@, False, True, False, False, False)
Char.SetHealth(229@, 10)
Char.SetDecisionMaker(229@, 97@)
set_lvar_int_to_lvar_int 102@ = 229@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
230@ = Char.Create(PedType.Mission1, 110, 2647.368, -1629.595, 9.727)
Char.SetHeading(230@, 276.3582)
Char.GiveWeapon(230@, WeaponType.MicroUzi, 9999)
Char.SetProofs(230@, False, True, False, False, False)
Char.SetHealth(230@, 10)
Char.SetDecisionMaker(230@, 97@)
set_lvar_int_to_lvar_int 102@ = 230@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
231@ = Char.Create(PedType.Mission1, 110, 2651.148, -1631.916, 9.8767)
Char.SetHeading(231@, 339.6795)
Char.GiveWeapon(231@, WeaponType.Molotov, 9999)
Char.SetProofs(231@, False, True, False, False, False)
Char.SetHealth(231@, 10)
Char.SetDecisionMaker(231@, 97@)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_25488
set_lvar_int_to_lvar_int 102@ = 231@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_25488
232@ = Char.Create(PedType.Mission1, 110, 2635.932, -1598.666, 18.7482)
Char.SetHeading(232@, 318.9207)
Char.GiveWeapon(232@, WeaponType.Molotov, 9999)
Char.SetProofs(232@, False, True, False, False, False)
Char.SetHealth(232@, 10)
Char.SetDecisionMaker(232@, 97@)
set_lvar_int_to_lvar_int 102@ = 232@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
233@ = Char.Create(PedType.Mission1, 110, 2650.494, -1600.365, 18.1152)
Char.SetHeading(233@, 318.9207)
Char.GiveWeapon(233@, WeaponType.Molotov, 9999)
Char.SetProofs(233@, False, True, False, False, False)
Char.SetHealth(233@, 10)
Char.SetDecisionMaker(233@, 97@)
set_lvar_int_to_lvar_int 102@ = 233@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
234@ = Char.Create(PedType.Mission1, 110, 2635.932, -1598.666, 18.7482)
Char.SetHeading(234@, 318.9207)
Char.GiveWeapon(234@, WeaponType.Molotov, 9999)
Char.SetProofs(234@, False, True, False, False, False)
Char.SetHealth(234@, 10)
Char.SetDecisionMaker(234@, 97@)
set_lvar_int_to_lvar_int 102@ = 234@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
235@ = Char.Create(PedType.Mission1, 110, 2646.598, -1599.905, 18.295)
Char.SetHeading(235@, 318.9207)
Char.GiveWeapon(235@, WeaponType.Molotov, 9999)
Char.SetProofs(235@, False, True, False, False, False)
Char.SetHealth(235@, 10)
Char.SetDecisionMaker(235@, 97@)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_25892
set_lvar_int_to_lvar_int 102@ = 235@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_25892
236@ = Char.Create(PedType.Mission1, 110, 2634.689, -1629.506, 18.7081)
Char.SetHeading(236@, 318.9207)
Char.GiveWeapon(236@, WeaponType.Molotov, 9999)
Char.SetProofs(236@, False, True, False, False, False)
Char.SetHealth(236@, 10)
Char.SetDecisionMaker(236@, 97@)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_26005
set_lvar_int_to_lvar_int 102@ = 236@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_26005
$rails_fcflag = 6

:FINALEC_26012
if 
  $rails_fcflag == 6
goto_if_false @FINALEC_26167
if 
  Car.Locate2D(153@, 2598.57, -1729.65, 20.0, 20.0, False)
goto_if_false @FINALEC_26167
Char.Delete(223@)
Char.Delete(224@)
Char.Delete(226@)
Char.Delete(227@)
Char.Delete(228@)
Char.Delete(229@)
Char.Delete(230@)
Char.Delete(231@)
Char.Delete(232@)
Char.Delete(233@)
Char.Delete(234@)
Char.Delete(235@)
Char.Delete(236@)
Car.Delete(237@)
Object.Delete(165@)
Object.Delete(167@)
Object.Delete(168@)
Object.Delete(169@)
World.RemoveAllScriptFires
$rails_fcflag = 7

:FINALEC_26167
if 
  260@ == 1
goto_if_false @FINALEC_26319
if 
  not Car.IsDead(217@)
goto_if_false @FINALEC_26319
if 
  not Char.IsDead(154@)
goto_if_false @FINALEC_26224
goto @FINALEC_26319

:FINALEC_26224
if 
  not Char.IsDead(155@)
goto_if_false @FINALEC_26307
if 
  Char.IsInCar(155@, 217@)
goto_if_false @FINALEC_26300
219@ = Car.GetDriver(217@)
if 
  219@ == -1
goto_if_false @FINALEC_26300
Task.ShuffleToNextCarSeat(155@, 217@)
260@ = 2

:FINALEC_26300
goto @FINALEC_26319

:FINALEC_26307
Car.StopPlayback(217@)
260@ = 2

:FINALEC_26319
if 
  260@ == 2
goto_if_false @FINALEC_26365
if 
  Char.IsDead(155@)
goto_if_false @FINALEC_26365
Car.StopPlayback(217@)
260@ = 3

:FINALEC_26365
if 
  249@ == 1
goto_if_false @FINALEC_26481
if 
  not Car.IsDead(217@)
goto_if_false @FINALEC_26449
if 
  not Car.IsPlaybackGoingOn(217@)
goto_if_false @FINALEC_26442
Car.MarkAsNoLongerNeeded(217@)
Char.MarkAsNoLongerNeeded(154@)
Char.MarkAsNoLongerNeeded(155@)
Blip.Remove(247@)
249@ = 2

:FINALEC_26442
goto @FINALEC_26481

:FINALEC_26449
Car.StopPlayback(217@)
Char.MarkAsNoLongerNeeded(154@)
Char.MarkAsNoLongerNeeded(155@)
Car.MarkAsNoLongerNeeded(217@)
Blip.Remove(247@)
249@ = 2

:FINALEC_26481
if 
  261@ == 1
goto_if_false @FINALEC_26633
if 
  not Car.IsDead(218@)
goto_if_false @FINALEC_26633
if 
  not Char.IsDead(156@)
goto_if_false @FINALEC_26538
goto @FINALEC_26633

:FINALEC_26538
if 
  not Char.IsDead(207@)
goto_if_false @FINALEC_26621
if 
  Char.IsInCar(207@, 218@)
goto_if_false @FINALEC_26614
219@ = Car.GetDriver(218@)
if 
  219@ == -1
goto_if_false @FINALEC_26614
Task.ShuffleToNextCarSeat(207@, 218@)
261@ = 2

:FINALEC_26614
goto @FINALEC_26633

:FINALEC_26621
Car.StopPlayback(218@)
261@ = 2

:FINALEC_26633
if 
  261@ == 2
goto_if_false @FINALEC_26679
if 
  Char.IsDead(207@)
goto_if_false @FINALEC_26679
Car.StopPlayback(218@)
261@ = 3

:FINALEC_26679
if 
  250@ == 1
goto_if_false @FINALEC_26795
if 
  not Car.IsDead(218@)
goto_if_false @FINALEC_26763
if 
  not Car.IsPlaybackGoingOn(218@)
goto_if_false @FINALEC_26756
Car.MarkAsNoLongerNeeded(218@)
Char.MarkAsNoLongerNeeded(156@)
Char.MarkAsNoLongerNeeded(207@)
Blip.Remove(248@)
250@ = 2

:FINALEC_26756
goto @FINALEC_26795

:FINALEC_26763
Car.StopPlayback(218@)
Char.MarkAsNoLongerNeeded(156@)
Char.MarkAsNoLongerNeeded(207@)
Car.MarkAsNoLongerNeeded(218@)
Blip.Remove(248@)
250@ = 2

:FINALEC_26795
if 
  265@ == 1
goto_if_false @FINALEC_26947
if 
  not Car.IsDead(211@)
goto_if_false @FINALEC_26947
if 
  not Char.IsDead(34@)
goto_if_false @FINALEC_26852
goto @FINALEC_26947

:FINALEC_26852
if 
  not Char.IsDead(35@)
goto_if_false @FINALEC_26935
if 
  Char.IsInCar(35@, 211@)
goto_if_false @FINALEC_26928
219@ = Car.GetDriver(211@)
if 
  219@ == -1
goto_if_false @FINALEC_26928
Task.ShuffleToNextCarSeat(35@, 211@)
265@ = 2

:FINALEC_26928
goto @FINALEC_26947

:FINALEC_26935
Car.StopPlayback(211@)
265@ = 2

:FINALEC_26947
if 
  265@ == 2
goto_if_false @FINALEC_26993
if 
  Char.IsDead(35@)
goto_if_false @FINALEC_26993
Car.StopPlayback(211@)
265@ = 3

:FINALEC_26993
if 
  254@ == 1
goto_if_false @FINALEC_27109
if 
  not Car.IsDead(211@)
goto_if_false @FINALEC_27077
if 
  not Car.IsPlaybackGoingOn(211@)
goto_if_false @FINALEC_27070
Car.MarkAsNoLongerNeeded(211@)
Char.MarkAsNoLongerNeeded(34@)
Char.MarkAsNoLongerNeeded(35@)
Blip.Remove(241@)
254@ = 2

:FINALEC_27070
goto @FINALEC_27109

:FINALEC_27077
Car.StopPlayback(211@)
Char.MarkAsNoLongerNeeded(34@)
Char.MarkAsNoLongerNeeded(35@)
Car.MarkAsNoLongerNeeded(211@)
Blip.Remove(241@)
254@ = 2

:FINALEC_27109
if 
  266@ == 1
goto_if_false @FINALEC_27261
if 
  not Car.IsDead(212@)
goto_if_false @FINALEC_27261
if 
  not Char.IsDead(36@)
goto_if_false @FINALEC_27166
goto @FINALEC_27261

:FINALEC_27166
if 
  not Char.IsDead(37@)
goto_if_false @FINALEC_27249
if 
  Char.IsInCar(37@, 212@)
goto_if_false @FINALEC_27242
219@ = Car.GetDriver(212@)
if 
  219@ == -1
goto_if_false @FINALEC_27242
Task.ShuffleToNextCarSeat(37@, 212@)
266@ = 2

:FINALEC_27242
goto @FINALEC_27261

:FINALEC_27249
Car.StopPlayback(212@)
266@ = 2

:FINALEC_27261
if 
  266@ == 2
goto_if_false @FINALEC_27307
if 
  Char.IsDead(37@)
goto_if_false @FINALEC_27307
Car.StopPlayback(212@)
266@ = 3

:FINALEC_27307
if 
  255@ == 1
goto_if_false @FINALEC_27423
if 
  not Car.IsDead(212@)
goto_if_false @FINALEC_27391
if 
  not Car.IsPlaybackGoingOn(212@)
goto_if_false @FINALEC_27384
Car.MarkAsNoLongerNeeded(212@)
Char.MarkAsNoLongerNeeded(36@)
Char.MarkAsNoLongerNeeded(37@)
Blip.Remove(242@)
255@ = 2

:FINALEC_27384
goto @FINALEC_27423

:FINALEC_27391
Car.StopPlayback(212@)
Char.MarkAsNoLongerNeeded(36@)
Char.MarkAsNoLongerNeeded(37@)
Car.MarkAsNoLongerNeeded(212@)
Blip.Remove(242@)
255@ = 2

:FINALEC_27423
if 
  262@ == 1
goto_if_false @FINALEC_27575
if 
  not Car.IsDead(208@)
goto_if_false @FINALEC_27575
if 
  not Char.IsDead(38@)
goto_if_false @FINALEC_27480
goto @FINALEC_27575

:FINALEC_27480
if 
  not Char.IsDead(39@)
goto_if_false @FINALEC_27563
if 
  Char.IsInCar(39@, 208@)
goto_if_false @FINALEC_27556
219@ = Car.GetDriver(208@)
if 
  219@ == -1
goto_if_false @FINALEC_27556
Task.ShuffleToNextCarSeat(39@, 208@)
262@ = 2

:FINALEC_27556
goto @FINALEC_27575

:FINALEC_27563
Car.StopPlayback(208@)
262@ = 2

:FINALEC_27575
if 
  262@ == 2
goto_if_false @FINALEC_27621
if 
  Char.IsDead(39@)
goto_if_false @FINALEC_27621
Car.StopPlayback(208@)
262@ = 3

:FINALEC_27621
if 
  251@ == 1
goto_if_false @FINALEC_27737
if 
  not Car.IsDead(208@)
goto_if_false @FINALEC_27705
if 
  not Car.IsPlaybackGoingOn(208@)
goto_if_false @FINALEC_27698
Car.MarkAsNoLongerNeeded(208@)
Char.MarkAsNoLongerNeeded(38@)
Char.MarkAsNoLongerNeeded(39@)
Blip.Remove(238@)
251@ = 2

:FINALEC_27698
goto @FINALEC_27737

:FINALEC_27705
Car.StopPlayback(208@)
Char.MarkAsNoLongerNeeded(38@)
Char.MarkAsNoLongerNeeded(39@)
Car.MarkAsNoLongerNeeded(208@)
Blip.Remove(238@)
251@ = 2

:FINALEC_27737
if 
  263@ == 1
goto_if_false @FINALEC_27889
if 
  not Car.IsDead(209@)
goto_if_false @FINALEC_27889
if 
  not Char.IsDead(40@)
goto_if_false @FINALEC_27794
goto @FINALEC_27889

:FINALEC_27794
if 
  not Char.IsDead(41@)
goto_if_false @FINALEC_27877
if 
  Char.IsInCar(41@, 209@)
goto_if_false @FINALEC_27870
219@ = Car.GetDriver(209@)
if 
  219@ == -1
goto_if_false @FINALEC_27870
Task.ShuffleToNextCarSeat(41@, 209@)
263@ = 2

:FINALEC_27870
goto @FINALEC_27889

:FINALEC_27877
Car.StopPlayback(209@)
263@ = 2

:FINALEC_27889
if 
  263@ == 2
goto_if_false @FINALEC_27935
if 
  Char.IsDead(41@)
goto_if_false @FINALEC_27935
Car.StopPlayback(209@)
263@ = 3

:FINALEC_27935
if 
  252@ == 1
goto_if_false @FINALEC_28051
if 
  not Car.IsDead(209@)
goto_if_false @FINALEC_28019
if 
  not Car.IsPlaybackGoingOn(209@)
goto_if_false @FINALEC_28012
Car.MarkAsNoLongerNeeded(209@)
Char.MarkAsNoLongerNeeded(40@)
Char.MarkAsNoLongerNeeded(41@)
Blip.Remove(239@)
252@ = 2

:FINALEC_28012
goto @FINALEC_28051

:FINALEC_28019
Car.StopPlayback(209@)
Char.MarkAsNoLongerNeeded(40@)
Char.MarkAsNoLongerNeeded(41@)
Car.MarkAsNoLongerNeeded(209@)
Blip.Remove(239@)
252@ = 2

:FINALEC_28051
if 
  264@ == 1
goto_if_false @FINALEC_28203
if 
  not Car.IsDead(210@)
goto_if_false @FINALEC_28203
if 
  not Char.IsDead(221@)
goto_if_false @FINALEC_28108
goto @FINALEC_28203

:FINALEC_28108
if 
  not Char.IsDead(222@)
goto_if_false @FINALEC_28191
if 
  Char.IsInCar(222@, 210@)
goto_if_false @FINALEC_28184
219@ = Car.GetDriver(210@)
if 
  219@ == -1
goto_if_false @FINALEC_28184
Task.ShuffleToNextCarSeat(222@, 210@)
264@ = 2

:FINALEC_28184
goto @FINALEC_28203

:FINALEC_28191
Car.StopPlayback(210@)
264@ = 2

:FINALEC_28203
if 
  264@ == 2
goto_if_false @FINALEC_28249
if 
  Char.IsDead(222@)
goto_if_false @FINALEC_28249
Car.StopPlayback(210@)
264@ = 3

:FINALEC_28249
if 
  253@ == 1
goto_if_false @FINALEC_28365
if 
  not Car.IsDead(210@)
goto_if_false @FINALEC_28333
if 
  not Car.IsPlaybackGoingOn(210@)
goto_if_false @FINALEC_28326
Car.MarkAsNoLongerNeeded(210@)
Char.MarkAsNoLongerNeeded(221@)
Char.MarkAsNoLongerNeeded(222@)
Blip.Remove(240@)
253@ = 2

:FINALEC_28326
goto @FINALEC_28365

:FINALEC_28333
Car.StopPlayback(210@)
Char.MarkAsNoLongerNeeded(221@)
Char.MarkAsNoLongerNeeded(222@)
Car.MarkAsNoLongerNeeded(210@)
Blip.Remove(240@)
253@ = 2

:FINALEC_28365
if 
  267@ == 1
goto_if_false @FINALEC_28577
if 
  not Car.IsDead(213@)
goto_if_false @FINALEC_28577
if 
  not Char.IsDead(42@)
goto_if_false @FINALEC_28422
goto @FINALEC_28577

:FINALEC_28422
if 
  not Char.IsDead(43@)
goto_if_false @FINALEC_28535
if 
  Char.IsInCar(43@, 213@)
goto_if_false @FINALEC_28528
219@ = Car.GetDriver(213@)
if 
  219@ == -1
goto_if_false @FINALEC_28528
$player_x, $player_y, $player_z = Car.GetCoordinates(153@)
Char.WarpFromCarToCoord(43@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(43@, 213@)
267@ = 2

:FINALEC_28528
goto @FINALEC_28577

:FINALEC_28535
Car.SetForwardSpeed(213@, 18.0)
Car.StopPlayback(213@)
Car.SetRotationVelocity(213@, 3.5, 7.3999, 8.1003)
267@ = 2

:FINALEC_28577
if 
  267@ == 2
goto_if_false @FINALEC_28669
if 
  Char.IsDead(43@)
goto_if_false @FINALEC_28669
Car.StopPlayback(213@)
if 
  not Car.IsDead(213@)
goto_if_false @FINALEC_28662
Car.SetForwardSpeed(213@, 18.0)
Car.SetRotationVelocity(213@, 3.5, 7.3999, 8.1003)

:FINALEC_28662
267@ = 3

:FINALEC_28669
if 
  256@ == 1
goto_if_false @FINALEC_28756
if 
  Char.IsDead(42@)
goto_if_false @FINALEC_28756
if or
  Char.IsDead(43@)
  Car.IsDead(213@)
goto_if_false @FINALEC_28756
Car.StopPlayback(213@)
Blip.Remove(243@)
Car.MarkAsNoLongerNeeded(213@)
Char.MarkAsNoLongerNeeded(42@)
Char.MarkAsNoLongerNeeded(43@)
256@ = 2

:FINALEC_28756
if 
  268@ == 1
goto_if_false @FINALEC_28968
if 
  not Car.IsDead(214@)
goto_if_false @FINALEC_28968
if 
  not Char.IsDead(44@)
goto_if_false @FINALEC_28813
goto @FINALEC_28968

:FINALEC_28813
if 
  not Char.IsDead(45@)
goto_if_false @FINALEC_28926
if 
  Char.IsInCar(45@, 214@)
goto_if_false @FINALEC_28919
219@ = Car.GetDriver(214@)
if 
  219@ == -1
goto_if_false @FINALEC_28919
$player_x, $player_y, $player_z = Car.GetCoordinates(153@)
Char.WarpFromCarToCoord(45@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(45@, 214@)
268@ = 2

:FINALEC_28919
goto @FINALEC_28968

:FINALEC_28926
Car.SetForwardSpeed(214@, 18.0)
Car.StopPlayback(214@)
Car.SetRotationVelocity(214@, 3.5, 7.3999, 8.1003)
268@ = 2

:FINALEC_28968
if 
  268@ == 2
goto_if_false @FINALEC_29060
if 
  Char.IsDead(45@)
goto_if_false @FINALEC_29060
Car.StopPlayback(214@)
if 
  not Car.IsDead(214@)
goto_if_false @FINALEC_29053
Car.SetForwardSpeed(214@, 18.0)
Car.SetRotationVelocity(214@, 3.5, 7.3999, 8.1003)

:FINALEC_29053
268@ = 3

:FINALEC_29060
if 
  257@ == 1
goto_if_false @FINALEC_29147
if 
  Char.IsDead(44@)
goto_if_false @FINALEC_29147
if or
  Char.IsDead(45@)
  Car.IsDead(214@)
goto_if_false @FINALEC_29147
Car.StopPlayback(214@)
Blip.Remove(244@)
Car.MarkAsNoLongerNeeded(214@)
Char.MarkAsNoLongerNeeded(44@)
Char.MarkAsNoLongerNeeded(45@)
257@ = 2

:FINALEC_29147
if 
  269@ == 1
goto_if_false @FINALEC_29359
if 
  not Car.IsDead(215@)
goto_if_false @FINALEC_29359
if 
  not Char.IsDead(46@)
goto_if_false @FINALEC_29204
goto @FINALEC_29359

:FINALEC_29204
if 
  not Char.IsDead(47@)
goto_if_false @FINALEC_29317
if 
  Char.IsInCar(47@, 215@)
goto_if_false @FINALEC_29310
219@ = Car.GetDriver(215@)
if 
  219@ == -1
goto_if_false @FINALEC_29310
$player_x, $player_y, $player_z = Car.GetCoordinates(153@)
Char.WarpFromCarToCoord(47@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(47@, 215@)
269@ = 2

:FINALEC_29310
goto @FINALEC_29359

:FINALEC_29317
Car.SetForwardSpeed(215@, 18.0)
Car.StopPlayback(215@)
Car.SetRotationVelocity(215@, 3.5, 7.3999, 8.1003)
269@ = 2

:FINALEC_29359
if 
  269@ == 2
goto_if_false @FINALEC_29451
if 
  Char.IsDead(47@)
goto_if_false @FINALEC_29451
Car.StopPlayback(215@)
if 
  not Car.IsDead(215@)
goto_if_false @FINALEC_29444
Car.SetForwardSpeed(215@, 18.0)
Car.SetRotationVelocity(215@, 3.5, 7.3999, 8.1003)

:FINALEC_29444
269@ = 3

:FINALEC_29451
if 
  258@ == 1
goto_if_false @FINALEC_29538
if 
  Char.IsDead(46@)
goto_if_false @FINALEC_29538
if or
  Char.IsDead(47@)
  Car.IsDead(215@)
goto_if_false @FINALEC_29538
Car.StopPlayback(215@)
Blip.Remove(245@)
Car.MarkAsNoLongerNeeded(215@)
Char.MarkAsNoLongerNeeded(46@)
Char.MarkAsNoLongerNeeded(47@)
258@ = 2

:FINALEC_29538
gosub @FINALEC_56975
if 
  204@ == 0
goto_if_false @FINALEC_29610
if 
  203@ == 0
goto_if_false @FINALEC_29610
set_lvar_int_to_constant 187@ = 14828
set_lvar_text_label 188@s = 'ROT4_MD'
gosub @FINALEC_56933

:FINALEC_29610
if 
  204@ == 0
goto_if_false @FINALEC_29675
if 
  203@ == 1
goto_if_false @FINALEC_29675
set_lvar_int_to_constant 187@ = 14839
set_lvar_text_label 188@s = 'ROT4_NL'
gosub @FINALEC_56933

:FINALEC_29675
if 
  206@ == 1
goto_if_false @FINALEC_29758
if 
  204@ == 0
goto_if_false @FINALEC_29758
if 
  203@ == 2
goto_if_false @FINALEC_29758
set_lvar_int_to_constant 187@ = 14852
set_lvar_text_label 188@s = 'ROT4_QA'
gosub @FINALEC_56933

:FINALEC_29758
if 
  204@ == 0
goto_if_false @FINALEC_29823
if 
  203@ == 3
goto_if_false @FINALEC_29823
set_lvar_int_to_constant 187@ = 14853
set_lvar_text_label 188@s = 'ROT4_QB'
gosub @FINALEC_56933

:FINALEC_29823
if 
  204@ == 0
goto_if_false @FINALEC_29888
if 
  203@ == 4
goto_if_false @FINALEC_29888
set_lvar_int_to_constant 187@ = 14865
set_lvar_text_label 188@s = 'ROT4_TF'
gosub @FINALEC_56933

:FINALEC_29888
if 
  204@ == 0
goto_if_false @FINALEC_29953
if 
  203@ == 5
goto_if_false @FINALEC_29953
set_lvar_int_to_constant 187@ = 14845
set_lvar_text_label 188@s = 'ROT4_NR'
gosub @FINALEC_56933

:FINALEC_29953
if 
  206@ == 2
goto_if_false @FINALEC_30036
if 
  204@ == 0
goto_if_false @FINALEC_30036
if 
  203@ == 6
goto_if_false @FINALEC_30036
set_lvar_int_to_constant 187@ = 14833
set_lvar_text_label 188@s = 'ROT4_NE'
gosub @FINALEC_56933

:FINALEC_30036
if 
  204@ == 0
goto_if_false @FINALEC_30101
if 
  203@ == 7
goto_if_false @FINALEC_30101
set_lvar_int_to_constant 187@ = 14869
set_lvar_text_label 188@s = 'ROT4_TK'
gosub @FINALEC_56933

:FINALEC_30101
if 
  206@ == 3
goto_if_false @FINALEC_30184
if 
  204@ == 0
goto_if_false @FINALEC_30184
if 
  203@ == 8
goto_if_false @FINALEC_30184
set_lvar_int_to_constant 187@ = 14871
set_lvar_text_label 188@s = 'ROT4_TM'
gosub @FINALEC_56933

:FINALEC_30184
if 
  204@ == 0
goto_if_false @FINALEC_30249
if 
  203@ == 9
goto_if_false @FINALEC_30249
set_lvar_int_to_constant 187@ = 14866
set_lvar_text_label 188@s = 'ROT4_TG'
gosub @FINALEC_56933

:FINALEC_30249
if 
  206@ == 5
goto_if_false @FINALEC_30332
if 
  204@ == 0
goto_if_false @FINALEC_30332
if 
  203@ == 10
goto_if_false @FINALEC_30332
set_lvar_int_to_constant 187@ = 14829
set_lvar_text_label 188@s = 'ROT4_NA'
gosub @FINALEC_56933

:FINALEC_30332
if 
  204@ == 0
goto_if_false @FINALEC_30397
if 
  203@ == 11
goto_if_false @FINALEC_30397
set_lvar_int_to_constant 187@ = 14830
set_lvar_text_label 188@s = 'ROT4_NB'
gosub @FINALEC_56933

:FINALEC_30397
if 
  204@ == 0
goto_if_false @FINALEC_30462
if 
  203@ == 12
goto_if_false @FINALEC_30462
set_lvar_int_to_constant 187@ = 14862
set_lvar_text_label 188@s = 'ROT4_TC'
gosub @FINALEC_56933

:FINALEC_30462
if 
  204@ == 0
goto_if_false @FINALEC_30527
if 
  203@ == 13
goto_if_false @FINALEC_30527
set_lvar_int_to_constant 187@ = 14865
set_lvar_text_label 188@s = 'ROT4_TF'
gosub @FINALEC_56933

:FINALEC_30527
if 
  204@ == 0
goto_if_false @FINALEC_30592
if 
  203@ == 14
goto_if_false @FINALEC_30592
set_lvar_int_to_constant 187@ = 14860
set_lvar_text_label 188@s = 'ROT4_TA'
gosub @FINALEC_56933

:FINALEC_30592
if 
  $carhealth_fc == 2
goto_if_false @FINALEC_39366
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_31358
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_30815
$health_fc = Car.GetHealth(153@)
$health_fc -= 12000
if 
  0 >= $health_fc
goto_if_false @FINALEC_30769
$health_fc = 0
Car.SetProofs(153@, False, False, False, False, False)
Char.SetProofs($scplayer, False, False, False, False, False)
if 
  not Char.IsDead($sweet)
goto_if_false @FINALEC_30734
Task.Die($sweet)

:FINALEC_30734
Car.Explode(153@)
Text.PrintNow('RM4_53', 5000, 1)
goto @FINALEC_57241
goto @FINALEC_30776

:FINALEC_30769
$health_fc /= 80

:FINALEC_30776
if 
  Char.IsDead($sweet)
goto_if_false @FINALEC_30815
Text.PrintNow('RM4_53', 5000, 1)
goto @FINALEC_57241

:FINALEC_30815
if 
  289@ == 0
goto_if_false @FINALEC_31358
249@ = 0
260@ = 0
250@ = 0
261@ = 0
251@ = 0
262@ = 0
256@ = 0
267@ = 0
257@ = 0
268@ = 0
Blip.Remove(238@)
Blip.Remove(239@)
Blip.Remove(240@)
Blip.Remove(241@)
Blip.Remove(242@)
Blip.Remove(243@)
Blip.Remove(244@)
Blip.Remove(245@)
Blip.Remove(247@)
Blip.Remove(248@)
Car.Delete(213@)
Char.Delete(42@)
Char.Delete(43@)
Car.Delete(214@)
Char.Delete(44@)
Char.Delete(45@)
Car.Delete(215@)
Char.Delete(46@)
Char.Delete(47@)
Car.Delete(217@)
Car.Delete(218@)
Car.Delete(208@)
Car.Delete(209@)
Car.Delete(210@)
Car.Delete(211@)
Car.Delete(212@)
213@ = Car.Create(468, 2375.0, -1918.0, 12.5)
Car.SetHeading(213@, 176.0)
42@ = Char.CreateInsideCar(213@, PedType.Mission1, 110)
Char.SetDecisionMaker(42@, 97@)
Char.SetOnlyDamagedByPlayer(42@, True)
43@ = Char.CreateAsPassenger(213@, PedType.Mission1, 110, 0)
Char.SetHealth(43@, 10)
Char.SetDecisionMaker(43@, 97@)
Char.SetOnlyDamagedByPlayer(43@, True)
Char.GiveWeapon(43@, WeaponType.MicroUzi, 99999)
Car.SetOnlyDamagedByPlayer(213@, True)
Car.SetProofs(213@, False, True, True, False, False)
214@ = Car.Create(468, 2377.0, -1911.0, 12.5)
Car.SetHeading(214@, 186.0)
44@ = Char.CreateInsideCar(214@, PedType.Mission1, 110)
Char.SetDecisionMaker(44@, 97@)
Char.SetHealth(44@, 10)
Char.SetOnlyDamagedByPlayer(44@, True)
45@ = Char.CreateAsPassenger(214@, PedType.Mission1, 110, 0)
Char.SetDecisionMaker(45@, 97@)
Char.SetHealth(45@, 10)
Char.SetOnlyDamagedByPlayer(45@, True)
Char.GiveWeapon(45@, WeaponType.MicroUzi, 99999)
Car.SetOnlyDamagedByPlayer(214@, True)
Car.SetProofs(214@, False, True, True, False, False)
Camera.SetFixedPosition(2347.526, -1914.929, 15.1567, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2348.224, -1915.617, 14.9604, SwitchType.JumpCut)
289@ = 1

:FINALEC_31358
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_37014
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_37014
if 
  292@ == 0
goto_if_false @FINALEC_31835
223@ = Char.Create(PedType.Mission1, 7, 2300.89, -1947.97, 24.5)
Char.SetHeading(223@, 329.17)
Char.GiveWeapon(223@, WeaponType.Molotov, 9999)
Char.SetProofs(223@, False, True, False, False, False)
Char.SetHealth(223@, 10)
Char.SetDecisionMaker(223@, 97@)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_31521
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_31521
224@ = Char.Create(PedType.Mission1, 7, 2302.33, -1925.32, 12.6)
Char.SetHeading(224@, 311.22)
Char.GiveWeapon(224@, WeaponType.Molotov, 9999)
Char.SetProofs(224@, False, True, False, False, False)
Char.SetHealth(224@, 10)
Char.SetDecisionMaker(224@, 97@)
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
225@ = Char.Create(PedType.Mission1, 7, 2324.569, -1951.436, 20.59)
Char.SetHeading(225@, 44.92)
Char.GiveWeapon(225@, WeaponType.Molotov, 9999)
Char.SetProofs(225@, False, True, False, False, False)
Char.SetHealth(225@, 10)
Char.SetDecisionMaker(225@, 97@)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_31731
set_lvar_int_to_lvar_int 102@ = 225@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_31731
226@ = Char.Create(PedType.Mission1, 7, 2362.397, -1982.99, 18.4)
Char.SetHeading(226@, 44.93)
Char.GiveWeapon(226@, WeaponType.Molotov, 9999)
Char.SetProofs(226@, False, True, False, False, False)
Char.SetHealth(226@, 10)
Char.SetDecisionMaker(226@, 97@)
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
292@ = 1

:FINALEC_31835
if 
  289@ == 1
goto_if_false @FINALEC_32360
Car.StartPlayback(152@, 241)
Car.StartPlayback(153@, 242)
if 
  not Car.IsDead(213@)
goto_if_false @FINALEC_31974
Car.StartPlayback(213@, 243)
if 
  not Char.IsDead(43@)
goto_if_false @FINALEC_31945
Task.DriveBy(43@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 60)

:FINALEC_31945
243@ = Blip.AddForCar(213@)
Blip.ChangeDisplay(243@, BlipDisplay.BlipOnly)
256@ = 1
267@ = 1

:FINALEC_31974
if 
  not Car.IsDead(214@)
goto_if_false @FINALEC_32079
Car.StartPlayback(214@, 244)
if 
  not Char.IsDead(45@)
goto_if_false @FINALEC_32050
Task.DriveBy(45@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 60)

:FINALEC_32050
244@ = Blip.AddForCar(214@)
Blip.ChangeDisplay(244@, BlipDisplay.BlipOnly)
257@ = 1
268@ = 1

:FINALEC_32079
217@ = Car.Create(596, 2337.0, -2013.0, 12.5)
Car.SetHeading(217@, 325.0)
Car.SetOnlyDamagedByPlayer(217@, True)
154@ = Char.CreateInsideCar(217@, PedType.Mission1, 280)
Char.SetDecisionMaker(154@, 97@)
Char.SetSuffersCriticalHits(154@, False)
Char.SetOnlyDamagedByPlayer(154@, True)
155@ = Char.CreateAsPassenger(217@, PedType.Mission1, 280, 0)
Char.SetDecisionMaker(155@, 97@)
Char.SetOnlyDamagedByPlayer(155@, True)
Char.GiveWeapon(155@, WeaponType.MicroUzi, 9999)
Car.SetProofs(217@, False, True, True, False, False)
218@ = Car.Create(596, 2266.0, -1970.0, 12.5)
Car.SetHeading(218@, 178.0)
Car.SetOnlyDamagedByPlayer(218@, True)
156@ = Char.CreateInsideCar(218@, PedType.Mission1, 280)
Char.SetDecisionMaker(156@, 97@)
Char.SetSuffersCriticalHits(156@, False)
Char.SetOnlyDamagedByPlayer(156@, True)
207@ = Char.CreateAsPassenger(218@, PedType.Mission1, 280, 0)
Char.SetDecisionMaker(207@, 97@)
Char.SetOnlyDamagedByPlayer(207@, True)
Char.GiveWeapon(207@, WeaponType.MicroUzi, 9999)
Car.SetProofs(218@, False, True, True, False, False)
TIMERB = 0
289@ = 2
290@ = 1

:FINALEC_32360
if 
  290@ == 1
goto_if_false @FINALEC_32525
if 
  TIMERB > 6000
goto_if_false @FINALEC_32525
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
204@ = 0
203@ = 0
206@ = 0
Camera.Restore
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Task.DriveBy($scplayer, -1, -1, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 100)
Player.SetHeadingForAttached($player1, 120.5, 200.0)
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_32518
Car.SetProofs(153@, False, True, True, True, True)

:FINALEC_32518
290@ = 2

:FINALEC_32525
if 
  291@ == 0
goto_if_false @FINALEC_32636
if 
  289@ > 4
goto_if_false @FINALEC_32636
if 
  not Car.IsDead(217@)
goto_if_false @FINALEC_32636
if 
  Car.Locate2D(217@, 2210.19, -1864.8, 5.0, 5.0, False)
goto_if_false @FINALEC_32636
Car.SetHealth(217@, 100)
TIMERB = 0
291@ = 1

:FINALEC_32636
if 
  291@ == 1
goto_if_false @FINALEC_32701
if 
  not Car.IsDead(217@)
goto_if_false @FINALEC_32701
if 
  TIMERB > 1250
goto_if_false @FINALEC_32701
Car.Explode(217@)
291@ = 2

:FINALEC_32701
if 
  289@ == 2
goto_if_false @FINALEC_33133
if 
  Car.Locate2D(152@, 2347.96, -1972.42, 20.0, 20.0, False)
goto_if_false @FINALEC_33133
206@ = 1
if 
  not Car.IsDead(217@)
goto_if_false @FINALEC_32876
Car.StartPlayback(217@, 245)
Car.SwitchSiren(217@, True)
if 
  not Char.IsDead(155@)
goto_if_false @FINALEC_32847
Task.DriveBy(155@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 50)

:FINALEC_32847
247@ = Blip.AddForCar(217@)
Blip.ChangeDisplay(247@, BlipDisplay.BlipOnly)
249@ = 1
260@ = 1

:FINALEC_32876
if 
  not Car.IsDead(218@)
goto_if_false @FINALEC_32988
Car.SwitchSiren(218@, True)
Car.StartPlayback(218@, 246)
if 
  not Char.IsDead(207@)
goto_if_false @FINALEC_32959
Task.DriveBy(207@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 10)

:FINALEC_32959
248@ = Blip.AddForCar(218@)
Blip.ChangeDisplay(248@, BlipDisplay.BlipOnly)
250@ = 1
261@ = 1

:FINALEC_32988
275@ = Car.Create(596, 2283.0, -2077.0, 14.0)
Car.SetHeading(275@, 48.0)
Car.SetOnlyDamagedByPlayer(275@, True)
276@ = Char.CreateInsideCar(275@, PedType.Mission1, 280)
Char.SetDecisionMaker(276@, 97@)
Char.SetSuffersCriticalHits(276@, False)
Char.SetOnlyDamagedByPlayer(276@, True)
277@ = Char.CreateAsPassenger(275@, PedType.Mission1, 280, 0)
Char.SetDecisionMaker(277@, 97@)
Char.SetOnlyDamagedByPlayer(277@, True)
Char.GiveWeapon(277@, WeaponType.MicroUzi, 9999)
Car.SetProofs(275@, False, True, True, False, False)
Car.SetHealth(275@, 700)
289@ = 3

:FINALEC_33133
if 
  289@ == 3
goto_if_false @FINALEC_33925
if 
  Car.Locate2D(153@, 2260.92, -2021.7, 25.0, 25.0, False)
goto_if_false @FINALEC_33925
206@ = 2
if 
  not Car.IsDead(275@)
goto_if_false @FINALEC_33308
Car.StartPlayback(275@, 249)
Car.SwitchSiren(275@, True)
if 
  not Char.IsDead(277@)
goto_if_false @FINALEC_33279
Task.DriveBy(277@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 50)

:FINALEC_33279
279@ = Blip.AddForCar(275@)
Blip.ChangeDisplay(279@, BlipDisplay.BlipOnly)
295@ = 1
296@ = 1

:FINALEC_33308
Char.Delete(223@)
Char.Delete(224@)
Char.Delete(225@)
Char.Delete(226@)
223@ = Char.Create(PedType.Mission1, 7, 2226.86, -1966.5, 24.5)
Char.SetHeading(223@, 329.17)
Char.GiveWeapon(223@, WeaponType.Molotov, 9999)
Char.SetProofs(223@, False, True, False, False, False)
Char.SetHealth(223@, 10)
Char.SetDecisionMaker(223@, 97@)
Char.SetOnlyDamagedByPlayer(223@, True)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_33448
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_33448
224@ = Char.Create(PedType.Mission1, 7, 2224.944, -1977.119, 24.5)
Char.SetHeading(224@, 311.22)
Char.GiveWeapon(224@, WeaponType.Molotov, 9999)
Char.SetProofs(224@, False, True, False, False, False)
Char.SetHealth(224@, 10)
Char.SetDecisionMaker(224@, 97@)
Char.SetOnlyDamagedByPlayer(224@, True)
if 
  not Char.IsDead(156@)
goto_if_false @FINALEC_33575
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_lvar_int 107@ = 156@
gosub @FINALEC_57121
goto @FINALEC_33598

:FINALEC_33575
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121

:FINALEC_33598
165@ = Object.Create(#LA_FUCKCAR2, 2227.617, -1894.91, 12.2)
Object.SetDynamic(165@, True)
Object.SetHeading(165@, 352.399)
225@ = Char.Create(PedType.Mission1, 7, 2230.15, -1891.29, 12.5)
Char.SetHeading(225@, 329.17)
Char.GiveWeapon(225@, WeaponType.Molotov, 9999)
Char.SetProofs(225@, False, True, False, False, False)
Char.SetHealth(225@, 10)
Char.SetDecisionMaker(225@, 97@)
set_lvar_int_to_lvar_int 102@ = 225@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
226@ = Char.Create(PedType.Mission1, 7, 2229.57, -1898.48, 12.415)
Char.SetHeading(226@, 311.22)
Char.GiveWeapon(226@, WeaponType.Molotov, 9999)
Char.SetProofs(226@, False, True, False, False, False)
Char.SetHealth(226@, 10)
Char.SetDecisionMaker(226@, 97@)
if 
  not Char.IsDead(156@)
goto_if_false @FINALEC_33855
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_lvar_int 107@ = 156@
gosub @FINALEC_57121
goto @FINALEC_33878

:FINALEC_33855
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121

:FINALEC_33878
169@ = Object.Create(#LA_FUCKCAR2, 2222.927, -1973.632, 12.25)
Object.SetDynamic(169@, True)
Object.SetHeading(169@, 352.399)
289@ = 4

:FINALEC_33925
if 
  289@ == 4
goto_if_false @FINALEC_34182
if 
  Car.Locate2D(152@, 2215.75, -1931.8, 25.0, 25.0, False)
goto_if_false @FINALEC_34182
206@ = 3
Car.Delete(213@)
Char.Delete(42@)
Char.Delete(43@)
Blip.Remove(243@)
Car.Delete(214@)
Char.Delete(44@)
Char.Delete(45@)
Blip.Remove(244@)
Streaming.MarkModelAsNoLongerNeeded(110)
Streaming.MarkModelAsNoLongerNeeded(468)
272@ = Car.Create(596, 2169.74, -1726.16, 12.5)
Car.SetHeading(272@, 268.0)
Car.SetOnlyDamagedByPlayer(272@, True)
273@ = Char.CreateInsideCar(272@, PedType.Mission1, 280)
Char.SetDecisionMaker(273@, 97@)
Char.SetSuffersCriticalHits(273@, False)
Char.SetOnlyDamagedByPlayer(273@, True)
274@ = Char.CreateAsPassenger(272@, PedType.Mission1, 280, 0)
Char.SetDecisionMaker(274@, 97@)
Char.SetOnlyDamagedByPlayer(274@, True)
Char.GiveWeapon(274@, WeaponType.MicroUzi, 9999)
Car.SetProofs(272@, False, True, True, False, False)
Car.SetHealth(272@, 600)
289@ = 5

:FINALEC_34182
if 
  289@ == 5
goto_if_false @FINALEC_34482
if 
  Car.Locate2D(152@, 2215.93, -1765.08, 20.0, 20.0, False)
goto_if_false @FINALEC_34482
if 
  not Car.IsDead(272@)
goto_if_false @FINALEC_34350
Car.StartPlayback(272@, 248)
Car.SwitchSiren(272@, True)
if 
  not Char.IsDead(274@)
goto_if_false @FINALEC_34321
Task.DriveBy(274@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 50)

:FINALEC_34321
278@ = Blip.AddForCar(272@)
Blip.ChangeDisplay(278@, BlipDisplay.BlipOnly)
293@ = 1
294@ = 1

:FINALEC_34350
208@ = Car.Create(596, 2323.318, -1656.886, 12.53)
Car.SetHeading(208@, 272.4)
Car.SetOnlyDamagedByPlayer(208@, True)
38@ = Char.CreateInsideCar(208@, PedType.Mission1, 280)
Char.SetDecisionMaker(38@, 97@)
Char.SetOnlyDamagedByPlayer(38@, True)
39@ = Char.CreateAsPassenger(208@, PedType.Mission1, 280, 0)
Char.SetDecisionMaker(39@, 97@)
Char.SetOnlyDamagedByPlayer(39@, True)
Char.GiveWeapon(39@, WeaponType.MicroUzi, 99999)
Car.SetProofs(208@, False, True, True, False, False)
289@ = 6

:FINALEC_34482
if 
  289@ == 6
goto_if_false @FINALEC_34657
if 
  Car.Locate2D(152@, 2343.45, -1658.96, 30.0, 30.0, False)
goto_if_false @FINALEC_34657
206@ = 4
if 
  not Car.IsDead(208@)
goto_if_false @FINALEC_34650
Car.StartPlayback(208@, 247)
if 
  not Char.IsDead(39@)
goto_if_false @FINALEC_34621
Task.DriveBy(39@, -1, 153@, 0.0, 0.0, 0.0, 300.0, DriveByType.Ai, True, 50)

:FINALEC_34621
238@ = Blip.AddForCar(208@)
Blip.ChangeDisplay(238@, BlipDisplay.BlipOnly)
251@ = 1
262@ = 1

:FINALEC_34650
289@ = 7

:FINALEC_34657
if 
  289@ == 7
goto_if_false @FINALEC_34727
if 
  Car.Locate2D(152@, 2431.0, -1644.0, 30.0, 30.0, False)
goto_if_false @FINALEC_34727
$carhealth_fc = 3
289@ = 8

:FINALEC_34727
if 
  292@ == 1
goto_if_false @FINALEC_35612
if 
  Car.Locate2D(153@, 2215.9, -1791.82, 20.0, 20.0, False)
goto_if_false @FINALEC_35612
Char.Delete(223@)
Char.Delete(224@)
Char.Delete(225@)
Char.Delete(226@)
Object.Delete(165@)
Object.Delete(169@)
165@ = Object.Create(#LA_FUCKCAR2, 2237.044, -1744.5, 12.5425)
Object.SetDynamic(165@, True)
Object.SetHeading(165@, 1.2003)
223@ = Char.Create(PedType.Mission1, 7, 2239.154, -1747.326, 12.542)
Char.SetHeading(223@, 329.17)
Char.GiveWeapon(223@, WeaponType.Molotov, 9999)
Char.SetProofs(223@, False, True, False, False, False)
Char.SetHealth(223@, 10)
Char.SetDecisionMaker(223@, 97@)
Char.SetOnlyDamagedByPlayer(223@, True)
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
167@ = Object.Create(#LA_FUCKCAR2, 2297.891, -1742.105, 12.5469)
Object.SetDynamic(167@, True)
Object.SetHeading(167@, 185.7601)
224@ = Char.Create(PedType.Mission1, 7, 2300.619, -1745.254, 12.5469)
Char.SetHeading(224@, 311.22)
Char.GiveWeapon(224@, WeaponType.Molotov, 9999)
Char.SetProofs(224@, False, True, False, False, False)
Char.SetHealth(224@, 10)
Char.SetDecisionMaker(224@, 97@)
Char.SetOnlyDamagedByPlayer(224@, True)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_35117
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_35117
169@ = Object.Create(#LA_FUCKCAR2, 2355.793, -1734.063, 12.3828)
Object.SetDynamic(169@, True)
Object.SetHeading(169@, 1.2003)
225@ = Char.Create(PedType.Mission1, 7, 2357.716, -1730.051, 12.3828)
Char.SetHeading(225@, 329.17)
Char.GiveWeapon(225@, WeaponType.Molotov, 9999)
Char.SetProofs(225@, False, True, False, False, False)
Char.SetHealth(225@, 10)
Char.SetDecisionMaker(225@, 97@)
Char.SetOnlyDamagedByPlayer(225@, True)
set_lvar_int_to_lvar_int 102@ = 225@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
226@ = Char.Create(PedType.Mission1, 7, 2365.067, -1758.149, 12.5469)
Char.SetHeading(226@, 329.17)
Char.GiveWeapon(226@, WeaponType.Molotov, 9999)
Char.SetProofs(226@, False, True, False, False, False)
Char.SetHealth(226@, 10)
Char.SetDecisionMaker(226@, 97@)
Char.SetOnlyDamagedByPlayer(226@, True)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_35381
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_35381
227@ = Char.Create(PedType.Mission1, 7, 2308.319, -1721.584, 12.742)
Char.SetHeading(227@, 329.17)
Char.GiveWeapon(227@, WeaponType.Molotov, 9999)
Char.SetProofs(227@, False, True, False, False, False)
Char.SetHealth(227@, 10)
Char.SetDecisionMaker(227@, 97@)
Char.SetOnlyDamagedByPlayer(227@, True)
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57121
228@ = Char.Create(PedType.Mission1, 7, 2308.319, -1721.584, 12.742)
Char.SetHeading(228@, 329.17)
Char.GiveWeapon(228@, WeaponType.Molotov, 9999)
Char.SetProofs(228@, False, True, False, False, False)
Char.SetHealth(228@, 10)
Char.SetDecisionMaker(228@, 97@)
Char.SetOnlyDamagedByPlayer(228@, True)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_35605
set_lvar_int_to_lvar_int 102@ = 228@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_35605
292@ = 2

:FINALEC_35612
if 
  292@ == 2
goto_if_false @FINALEC_35720
if 
  Car.Locate2D(153@, 2342.56, -1603.76, 20.0, 20.0, False)
goto_if_false @FINALEC_35720
Char.Delete(223@)
Char.Delete(224@)
Char.Delete(225@)
Char.Delete(226@)
Char.Delete(227@)
Char.Delete(228@)
Object.Delete(165@)
Object.Delete(167@)
Object.Delete(169@)
292@ = 3

:FINALEC_35720
if 
  292@ == 2
goto_if_false @FINALEC_36063
if 
  Car.Locate2D(153@, 2430.81, -1595.72, 20.0, 20.0, False)
goto_if_false @FINALEC_36063
165@ = Object.Create(#LA_FUCKCAR2, 2430.76, -1653.03, 25.34)
Object.SetDynamic(165@, True)
Object.SetHeading(165@, 268.0927)
223@ = Char.Create(PedType.Mission1, 7, 2426.7, -1653.77, 25.595)
Char.SetHeading(223@, 4.29)
Char.GiveWeapon(223@, WeaponType.Molotov, 9999)
Char.SetProofs(223@, False, True, False, False, False)
Char.SetHealth(223@, 10)
Char.SetDecisionMaker(223@, 97@)
Char.SetOnlyDamagedByPlayer(223@, True)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_35936
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_35936
224@ = Char.Create(PedType.Mission1, 7, 2435.959, -1653.318, 25.64)
Char.SetHeading(224@, 0.0)
Char.GiveWeapon(224@, WeaponType.Molotov, 9999)
Char.SetProofs(224@, False, True, False, False, False)
Char.SetHealth(224@, 10)
Char.SetDecisionMaker(224@, 97@)
Char.SetOnlyDamagedByPlayer(224@, True)
if 
  not Char.IsDead(49@)
goto_if_false @FINALEC_36056
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57121

:FINALEC_36056
292@ = 3

:FINALEC_36063
if 
  8 > 289@
goto_if_false @FINALEC_37014
if 
  290@ == 2
goto_if_false @FINALEC_37014
gosub @FINALEC_56975
if 
  204@ == 0
goto_if_false @FINALEC_36171
if 
  203@ == 0
goto_if_false @FINALEC_36171
set_lvar_int_to_constant 187@ = 14862
set_lvar_text_label 188@s = 'ROT4_TC'
gosub @FINALEC_56933

:FINALEC_36171
if 
  204@ == 0
goto_if_false @FINALEC_36236
if 
  203@ == 1
goto_if_false @FINALEC_36236
set_lvar_int_to_constant 187@ = 14861
set_lvar_text_label 188@s = 'ROT4_TB'
gosub @FINALEC_56933

:FINALEC_36236
if 
  204@ == 0
goto_if_false @FINALEC_36301
if 
  203@ == 2
goto_if_false @FINALEC_36301
set_lvar_int_to_constant 187@ = 14867
set_lvar_text_label 188@s = 'ROT4_TH'
gosub @FINALEC_56933

:FINALEC_36301
if 
  206@ == 1
goto_if_false @FINALEC_36384
if 
  204@ == 0
goto_if_false @FINALEC_36384
if 
  203@ == 3
goto_if_false @FINALEC_36384
set_lvar_int_to_constant 187@ = 14845
set_lvar_text_label 188@s = 'ROT4_NR'
gosub @FINALEC_56933

:FINALEC_36384
if 
  206@ == 2
goto_if_false @FINALEC_36467
if 
  204@ == 0
goto_if_false @FINALEC_36467
if 
  203@ == 4
goto_if_false @FINALEC_36467
set_lvar_int_to_constant 187@ = 14846
set_lvar_text_label 188@s = 'ROT4_NS'
gosub @FINALEC_56933

:FINALEC_36467
if 
  204@ == 0
goto_if_false @FINALEC_36532
if 
  203@ == 5
goto_if_false @FINALEC_36532
set_lvar_int_to_constant 187@ = 14868
set_lvar_text_label 188@s = 'ROT4_TJ'
gosub @FINALEC_56933

:FINALEC_36532
if 
  206@ == 3
goto_if_false @FINALEC_36615
if 
  204@ == 0
goto_if_false @FINALEC_36615
if 
  203@ == 6
goto_if_false @FINALEC_36615
set_lvar_int_to_constant 187@ = 14877
set_lvar_text_label 188@s = 'ROT4_SB'
gosub @FINALEC_56933

:FINALEC_36615
if 
  204@ == 0
goto_if_false @FINALEC_36680
if 
  203@ == 7
goto_if_false @FINALEC_36680
set_lvar_int_to_constant 187@ = 14851
set_lvar_text_label 188@s = 'ROT4_PC'
gosub @FINALEC_56933

:FINALEC_36680
if 
  206@ == 4
goto_if_false @FINALEC_36763
if 
  204@ == 0
goto_if_false @FINALEC_36763
if 
  203@ == 8
goto_if_false @FINALEC_36763
set_lvar_int_to_constant 187@ = 14892
set_lvar_text_label 188@s = 'ROT4_OA'
gosub @FINALEC_56933

:FINALEC_36763
if 
  204@ == 0
goto_if_false @FINALEC_36828
if 
  203@ == 9
goto_if_false @FINALEC_36828
set_lvar_int_to_constant 187@ = 14893
set_lvar_text_label 188@s = 'ROT4_OD'
gosub @FINALEC_56933

:FINALEC_36828
if 
  206@ == 4
goto_if_false @FINALEC_36949
if 
  Char.LocateAnyMeans2D($scplayer, 2431.32, -1528.48, 20.0, 20.0, False)
goto_if_false @FINALEC_36949
if 
  204@ == 0
goto_if_false @FINALEC_36949
if 
  203@ == 10
goto_if_false @FINALEC_36949
set_lvar_int_to_constant 187@ = 14857
set_lvar_text_label 188@s = 'ROT4_RA'
gosub @FINALEC_56933

:FINALEC_36949
if 
  204@ == 0
goto_if_false @FINALEC_37014
if 
  203@ == 11
goto_if_false @FINALEC_37014
set_lvar_int_to_constant 187@ = 14894
set_lvar_text_label 188@s = 'ROT4_RD'
gosub @FINALEC_56933

:FINALEC_37014
if 
  260@ == 1
goto_if_false @FINALEC_37166
if 
  not Car.IsDead(217@)
goto_if_false @FINALEC_37166
if 
  not Char.IsDead(154@)
goto_if_false @FINALEC_37071
goto @FINALEC_37166

:FINALEC_37071
if 
  not Char.IsDead(155@)
goto_if_false @FINALEC_37154
if 
  Char.IsInCar(155@, 217@)
goto_if_false @FINALEC_37147
219@ = Car.GetDriver(217@)
if 
  219@ == -1
goto_if_false @FINALEC_37147
Task.ShuffleToNextCarSeat(155@, 217@)
260@ = 2

:FINALEC_37147
goto @FINALEC_37166

:FINALEC_37154
Car.StopPlayback(217@)
260@ = 2

:FINALEC_37166
if 
  260@ == 2
goto_if_false @FINALEC_37212
if 
  Char.IsDead(155@)
goto_if_false @FINALEC_37212
Car.StopPlayback(217@)
260@ = 3

:FINALEC_37212
if 
  249@ == 1
goto_if_false @FINALEC_37328
if 
  not Car.IsDead(217@)
goto_if_false @FINALEC_37296
if 
  not Car.IsPlaybackGoingOn(217@)
goto_if_false @FINALEC_37289
Car.MarkAsNoLongerNeeded(217@)
Char.MarkAsNoLongerNeeded(154@)
Char.MarkAsNoLongerNeeded(155@)
Blip.Remove(247@)
249@ = 2

:FINALEC_37289
goto @FINALEC_37328

:FINALEC_37296
Car.StopPlayback(217@)
Char.MarkAsNoLongerNeeded(154@)
Char.MarkAsNoLongerNeeded(155@)
Car.MarkAsNoLongerNeeded(217@)
Blip.Remove(247@)
249@ = 2

:FINALEC_37328
if 
  261@ == 1
goto_if_false @FINALEC_37480
if 
  not Car.IsDead(218@)
goto_if_false @FINALEC_37480
if 
  not Char.IsDead(156@)
goto_if_false @FINALEC_37385
goto @FINALEC_37480

:FINALEC_37385
if 
  not Char.IsDead(207@)
goto_if_false @FINALEC_37468
if 
  Char.IsInCar(207@, 218@)
goto_if_false @FINALEC_37461
219@ = Car.GetDriver(218@)
if 
  219@ == -1
goto_if_false @FINALEC_37461
Task.ShuffleToNextCarSeat(207@, 218@)
261@ = 2

:FINALEC_37461
goto @FINALEC_37480

:FINALEC_37468
Car.StopPlayback(218@)
261@ = 2

:FINALEC_37480
if 
  261@ == 2
goto_if_false @FINALEC_37526
if 
  Char.IsDead(207@)
goto_if_false @FINALEC_37526
Car.StopPlayback(218@)
261@ = 3

:FINALEC_37526
if 
  250@ == 1
goto_if_false @FINALEC_37642
if 
  not Car.IsDead(218@)
goto_if_false @FINALEC_37610
if 
  not Car.IsPlaybackGoingOn(218@)
goto_if_false @FINALEC_37603
Car.MarkAsNoLongerNeeded(218@)
Char.MarkAsNoLongerNeeded(156@)
Char.MarkAsNoLongerNeeded(207@)
Blip.Remove(248@)
250@ = 2

:FINALEC_37603
goto @FINALEC_37642

:FINALEC_37610
Car.StopPlayback(218@)
Char.MarkAsNoLongerNeeded(156@)
Char.MarkAsNoLongerNeeded(207@)
Car.MarkAsNoLongerNeeded(218@)
Blip.Remove(248@)
250@ = 2

:FINALEC_37642
if 
  294@ == 1
goto_if_false @FINALEC_37794
if 
  not Car.IsDead(272@)
goto_if_false @FINALEC_37794
if 
  not Char.IsDead(273@)
goto_if_false @FINALEC_37699
goto @FINALEC_37794

:FINALEC_37699
if 
  not Char.IsDead(274@)
goto_if_false @FINALEC_37782
if 
  Char.IsInCar(274@, 272@)
goto_if_false @FINALEC_37775
219@ = Car.GetDriver(272@)
if 
  219@ == -1
goto_if_false @FINALEC_37775
Task.ShuffleToNextCarSeat(274@, 272@)
294@ = 2

:FINALEC_37775
goto @FINALEC_37794

:FINALEC_37782
Car.StopPlayback(272@)
294@ = 2

:FINALEC_37794
if 
  294@ == 2
goto_if_false @FINALEC_37840
if 
  Char.IsDead(274@)
goto_if_false @FINALEC_37840
Car.StopPlayback(272@)
294@ = 3

:FINALEC_37840
if 
  293@ == 1
goto_if_false @FINALEC_37956
if 
  not Car.IsDead(272@)
goto_if_false @FINALEC_37924
if 
  not Car.IsPlaybackGoingOn(272@)
goto_if_false @FINALEC_37917
Car.MarkAsNoLongerNeeded(272@)
Char.MarkAsNoLongerNeeded(273@)
Char.MarkAsNoLongerNeeded(274@)
Blip.Remove(278@)
293@ = 2

:FINALEC_37917
goto @FINALEC_37956

:FINALEC_37924
Car.StopPlayback(272@)
Char.MarkAsNoLongerNeeded(273@)
Char.MarkAsNoLongerNeeded(274@)
Car.MarkAsNoLongerNeeded(272@)
Blip.Remove(278@)
293@ = 2

:FINALEC_37956
if 
  296@ == 1
goto_if_false @FINALEC_38108
if 
  not Car.IsDead(275@)
goto_if_false @FINALEC_38108
if 
  not Char.IsDead(276@)
goto_if_false @FINALEC_38013
goto @FINALEC_38108

:FINALEC_38013
if 
  not Char.IsDead(277@)
goto_if_false @FINALEC_38096
if 
  Char.IsInCar(277@, 275@)
goto_if_false @FINALEC_38089
219@ = Car.GetDriver(275@)
if 
  219@ == -1
goto_if_false @FINALEC_38089
Task.ShuffleToNextCarSeat(277@, 275@)
296@ = 2

:FINALEC_38089
goto @FINALEC_38108

:FINALEC_38096
Car.StopPlayback(275@)
296@ = 2

:FINALEC_38108
if 
  296@ == 2
goto_if_false @FINALEC_38154
if 
  Char.IsDead(277@)
goto_if_false @FINALEC_38154
Car.StopPlayback(275@)
296@ = 3

:FINALEC_38154
if 
  295@ == 1
goto_if_false @FINALEC_38270
if 
  not Car.IsDead(275@)
goto_if_false @FINALEC_38238
if 
  not Car.IsPlaybackGoingOn(275@)
goto_if_false @FINALEC_38231
Car.MarkAsNoLongerNeeded(275@)
Char.MarkAsNoLongerNeeded(276@)
Char.MarkAsNoLongerNeeded(277@)
Blip.Remove(279@)
295@ = 2

:FINALEC_38231
goto @FINALEC_38270

:FINALEC_38238
Car.StopPlayback(275@)
Char.MarkAsNoLongerNeeded(276@)
Char.MarkAsNoLongerNeeded(277@)
Car.MarkAsNoLongerNeeded(275@)
Blip.Remove(279@)
295@ = 2

:FINALEC_38270
if 
  262@ == 1
goto_if_false @FINALEC_38422
if 
  not Car.IsDead(208@)
goto_if_false @FINALEC_38422
if 
  not Char.IsDead(38@)
goto_if_false @FINALEC_38327
goto @FINALEC_38422

:FINALEC_38327
if 
  not Char.IsDead(39@)
goto_if_false @FINALEC_38410
if 
  Char.IsInCar(39@, 208@)
goto_if_false @FINALEC_38403
219@ = Car.GetDriver(208@)
if 
  219@ == -1
goto_if_false @FINALEC_38403
Task.ShuffleToNextCarSeat(39@, 208@)
262@ = 2

:FINALEC_38403
goto @FINALEC_38422

:FINALEC_38410
Car.StopPlayback(208@)
262@ = 2

:FINALEC_38422
if 
  262@ == 2
goto_if_false @FINALEC_38468
if 
  Char.IsDead(39@)
goto_if_false @FINALEC_38468
Car.StopPlayback(208@)
262@ = 3

:FINALEC_38468
if 
  251@ == 1
goto_if_false @FINALEC_38584
if 
  not Car.IsDead(208@)
goto_if_false @FINALEC_38552
if 
  not Car.IsPlaybackGoingOn(208@)
goto_if_false @FINALEC_38545
Car.MarkAsNoLongerNeeded(208@)
Char.MarkAsNoLongerNeeded(38@)
Char.MarkAsNoLongerNeeded(39@)
Blip.Remove(238@)
251@ = 2

:FINALEC_38545
goto @FINALEC_38584

:FINALEC_38552
Car.StopPlayback(208@)
Char.MarkAsNoLongerNeeded(38@)
Char.MarkAsNoLongerNeeded(39@)
Car.MarkAsNoLongerNeeded(208@)
Blip.Remove(238@)
251@ = 2

:FINALEC_38584
if 
  267@ == 1
goto_if_false @FINALEC_38796
if 
  not Car.IsDead(213@)
goto_if_false @FINALEC_38796
if 
  not Char.IsDead(42@)
goto_if_false @FINALEC_38641
goto @FINALEC_38796

:FINALEC_38641
if 
  not Char.IsDead(43@)
goto_if_false @FINALEC_38754
if 
  Char.IsInCar(43@, 213@)
goto_if_false @FINALEC_38747
219@ = Car.GetDriver(213@)
if 
  219@ == -1
goto_if_false @FINALEC_38747
$player_x, $player_y, $player_z = Car.GetCoordinates(153@)
Char.WarpFromCarToCoord(43@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(43@, 213@)
267@ = 2

:FINALEC_38747
goto @FINALEC_38796

:FINALEC_38754
Car.SetForwardSpeed(213@, 18.0)
Car.StopPlayback(213@)
Car.SetRotationVelocity(213@, 3.5, 7.3999, 8.1003)
267@ = 2

:FINALEC_38796
if 
  267@ == 2
goto_if_false @FINALEC_38888
if 
  Char.IsDead(43@)
goto_if_false @FINALEC_38888
Car.StopPlayback(213@)
if 
  not Car.IsDead(213@)
goto_if_false @FINALEC_38881
Car.SetForwardSpeed(213@, 18.0)
Car.SetRotationVelocity(213@, 3.5, 7.3999, 8.1003)

:FINALEC_38881
267@ = 3

:FINALEC_38888
if 
  256@ == 1
goto_if_false @FINALEC_38975
if 
  Char.IsDead(42@)
goto_if_false @FINALEC_38975
if or
  Char.IsDead(43@)
  Car.IsDead(213@)
goto_if_false @FINALEC_38975
Car.StopPlayback(213@)
Blip.Remove(243@)
Car.MarkAsNoLongerNeeded(213@)
Char.MarkAsNoLongerNeeded(42@)
Char.MarkAsNoLongerNeeded(43@)
256@ = 2

:FINALEC_38975
if 
  268@ == 1
goto_if_false @FINALEC_39187
if 
  not Car.IsDead(214@)
goto_if_false @FINALEC_39187
if 
  not Char.IsDead(44@)
goto_if_false @FINALEC_39032
goto @FINALEC_39187

:FINALEC_39032
if 
  not Char.IsDead(45@)
goto_if_false @FINALEC_39145
if 
  Char.IsInCar(45@, 214@)
goto_if_false @FINALEC_39138
219@ = Car.GetDriver(214@)
if 
  219@ == -1
goto_if_false @FINALEC_39138
$player_x, $player_y, $player_z = Car.GetCoordinates(153@)
Char.WarpFromCarToCoord(45@, $player_x, $player_y, -10.0)
Char.WarpIntoCar(45@, 214@)
268@ = 2

:FINALEC_39138
goto @FINALEC_39187

:FINALEC_39145
Car.SetForwardSpeed(214@, 18.0)
Car.StopPlayback(214@)
Car.SetRotationVelocity(214@, 3.5, 7.3999, 8.1003)
268@ = 2

:FINALEC_39187
if 
  268@ == 2
goto_if_false @FINALEC_39279
if 
  Char.IsDead(45@)
goto_if_false @FINALEC_39279
Car.StopPlayback(214@)
if 
  not Car.IsDead(214@)
goto_if_false @FINALEC_39272
Car.SetForwardSpeed(214@, 18.0)
Car.SetRotationVelocity(214@, 3.5, 7.3999, 8.1003)

:FINALEC_39272
268@ = 3

:FINALEC_39279
if 
  257@ == 1
goto_if_false @FINALEC_39366
if 
  Char.IsDead(44@)
goto_if_false @FINALEC_39366
if or
  Char.IsDead(45@)
  Car.IsDead(214@)
goto_if_false @FINALEC_39366
Car.StopPlayback(214@)
Blip.Remove(244@)
Car.MarkAsNoLongerNeeded(214@)
Char.MarkAsNoLongerNeeded(44@)
Char.MarkAsNoLongerNeeded(45@)
257@ = 2

:FINALEC_39366
if 
  $carhealth_fc == 3
goto_if_false @FINALEC_56926
if 
  288@ == 0
goto_if_false @FINALEC_39867
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_39867
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_39867
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Car.SetProofs(153@, False, True, True, True, True)
if 
  Car.IsPlaybackGoingOn(152@)
goto_if_false @FINALEC_39481
Car.StopPlayback(152@)

:FINALEC_39481
Car.StopPlayback(152@)
if 
  Car.IsPlaybackGoingOn(153@)
goto_if_false @FINALEC_39507
Car.StopPlayback(153@)

:FINALEC_39507
Car.StopPlayback(153@)
Camera.SetFixedPosition(2453.861, -1651.519, 11.6415, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2453.131, -1651.287, 12.2845, SwitchType.JumpCut)
Car.StartPlayback(152@, 229)
Game.SetLaRiots(False)
World.ClearArea(2453.861, -1651.519, 11.6415, 100.0, True)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
Car.SetCoordinates(153@, 2431.88, -1600.34, 25.26)
Char.Delete($sweet)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @FINALEC_39681
Char.WarpFromCarToCoord($scplayer, 2422.97, -1607.87, 25.55)
goto @FINALEC_39701

:FINALEC_39681
Char.SetCoordinates($scplayer, 2422.97, -1607.87, 25.55)

:FINALEC_39701
TIMERA = 0
TIMERB = 0
Car.Delete(153@)
Car.Delete(213@)
Car.Delete(214@)
Car.Delete(217@)
Car.Delete(218@)
Car.Delete(272@)
Car.Delete(275@)
Car.Delete(208@)
Object.Delete(165@)
Object.Delete(167@)
Object.Delete(169@)
Char.Delete(42@)
Char.Delete(43@)
Char.Delete(44@)
Char.Delete(45@)
Char.Delete(154@)
Char.Delete(155@)
Char.Delete(156@)
Char.Delete(207@)
Char.Delete(273@)
Char.Delete(274@)
Char.Delete(276@)
Char.Delete(277@)
Char.Delete(223@)
Char.Delete(224@)
Char.Delete(225@)
Char.Delete(226@)
Char.Delete(227@)
Char.Delete(228@)
288@ = 1

:FINALEC_39867
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_40817
if 
  288@ == 1
goto_if_false @FINALEC_39940
if 
  TIMERB > 1500
goto_if_false @FINALEC_39940
Text.ClearPrints
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Clock.SetTimeScale(0.8)
288@ = 2

:FINALEC_39940
if 
  288@ == 2
goto_if_false @FINALEC_39991
if 
  TIMERB > 1700
goto_if_false @FINALEC_39991
Clock.SetTimeScale(0.7)
288@ = 3

:FINALEC_39991
if 
  288@ == 3
goto_if_false @FINALEC_40042
if 
  TIMERB > 1900
goto_if_false @FINALEC_40042
Clock.SetTimeScale(0.6)
288@ = 4

:FINALEC_40042
if 
  288@ == 4
goto_if_false @FINALEC_40093
if 
  TIMERB > 2100
goto_if_false @FINALEC_40093
Clock.SetTimeScale(0.5)
288@ = 5

:FINALEC_40093
if 
  288@ == 5
goto_if_false @FINALEC_40144
if 
  TIMERB > 2300
goto_if_false @FINALEC_40144
Clock.SetTimeScale(0.4)
288@ = 6

:FINALEC_40144
if 
  288@ == 6
goto_if_false @FINALEC_40195
if 
  TIMERB > 2500
goto_if_false @FINALEC_40195
Clock.SetTimeScale(0.3)
288@ = 7

:FINALEC_40195
if 
  288@ == 7
goto_if_false @FINALEC_40246
if 
  TIMERB > 2700
goto_if_false @FINALEC_40246
Clock.SetTimeScale(0.2)
288@ = 8

:FINALEC_40246
if 
  288@ == 8
goto_if_false @FINALEC_40413
if 
  TIMERB > 3360
goto_if_false @FINALEC_40413
280@ = Particle.CreateOnCar("PRT_SPARK", 152@, -1.69, 3.607, -0.271, 1)
Particle.Play(280@)
281@ = Particle.CreateOnCar("PRT_SPARK", 152@, -1.137, 3.674, -0.271, 1)
Particle.Play(281@)
282@ = Particle.CreateOnCar("PRT_SPARK", 152@, -1.076, 3.706, -0.271, 1)
Particle.Play(282@)
288@ = 9

:FINALEC_40413
if 
  288@ == 9
goto_if_false @FINALEC_40817
if 
  TIMERB > 4250
goto_if_false @FINALEC_40817
Camera.SetFixedPosition(2463.746, -1663.425, 12.4388, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2462.831, -1663.022, 12.4479, SwitchType.JumpCut)
Clock.SetTimeScale(0.7)
Particle.Kill(280@)
Particle.Kill(281@)
Particle.Kill(282@)
283@ = Particle.CreateOnCarWithDirection("PRT_SPARK", 152@, -1.066, 3.027, 1.4, 1.0, 0.0, 0.4, 1)
Particle.Play(283@)
284@ = Particle.CreateOnCarWithDirection("PRT_SPARK", 152@, -1.066, 2.444, 1.4, 1.0, 0.0, 0.4, 1)
Particle.Play(284@)
285@ = Particle.CreateOnCarWithDirection("PRT_SPARK", 152@, -1.066, 1.872, 1.4, 1.0, 0.0, 0.4, 1)
Particle.Play(285@)
286@ = Particle.CreateOnCarWithDirection("PRT_SPARK", 152@, -0.462, 0.761, 1.7, 1.0, 0.0, 0.4, 1)
Particle.Play(286@)
287@ = Particle.CreateOnCarWithDirection("PRT_SPARK", 152@, -0.462, 0.197, 1.7, 1.0, 0.0, 0.4, 1)
Particle.Play(287@)
TIMERA = 0
288@ = 10

:FINALEC_40817
if 
  288@ == 10
goto_if_false @FINALEC_56926
if 
  TIMERA > 3000
goto_if_false @FINALEC_56926
Clock.SetTimeScale(1.0)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:FINALEC_40876
if 
  Camera.GetFadingStatus
goto_if_false @FINALEC_40900
wait 0
goto @FINALEC_40876

:FINALEC_40900
Player.AddScore($player1, 250000)
Hud.ClearCounter($health_fc)
Char.Delete($sweet)
Streaming.MarkModelAsNoLongerNeeded(538)
Streaming.MarkModelAsNoLongerNeeded(544)
Streaming.MarkModelAsNoLongerNeeded(280)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(533)
Streaming.RemoveAnimation("FINALE")
Streaming.RemoveAnimation("FINALE2")
Streaming.MarkModelAsNoLongerNeeded(109)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(#LA_FUCKCAR1)
Streaming.MarkModelAsNoLongerNeeded(#LA_FUCKCAR2)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(596)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.MarkModelAsNoLongerNeeded(344)
Streaming.MarkModelAsNoLongerNeeded(110)
Streaming.MarkModelAsNoLongerNeeded(576)
Car.Delete(152@)
Char.Delete(49@)
Particle.Kill(280@)
Particle.Kill(281@)
Particle.Kill(282@)
Particle.Kill(283@)
Particle.Kill(284@)
Particle.Kill(285@)
Particle.Kill(286@)
Particle.Kill(287@)
Streaming.LoadSceneInDirection(2445.64, -1650.53, 14.63, 0.0)
Cutscene.Load('RIOT4E1')

:FINALEC_41104
if 
  not Cutscene.HasLoaded
goto_if_false @FINALEC_41128
wait 0
goto @FINALEC_41104

:FINALEC_41128
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:FINALEC_41137
if 
  not Cutscene.HasFinished
goto_if_false @FINALEC_41161
wait 0
goto @FINALEC_41137

:FINALEC_41161
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:FINALEC_41176
if 
  Camera.GetFadingStatus
goto_if_false @FINALEC_41200
wait 0
goto @FINALEC_41176

:FINALEC_41200
if 
  not Cutscene.WasSkipped
goto_if_false @FINALEC_41320
Cutscene.Load('RIOT4E2')

:FINALEC_41224
if 
  not Cutscene.HasLoaded
goto_if_false @FINALEC_41248
wait 0
goto @FINALEC_41224

:FINALEC_41248
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:FINALEC_41257
if 
  not Cutscene.HasFinished
goto_if_false @FINALEC_41281
wait 0
goto @FINALEC_41257

:FINALEC_41281
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:FINALEC_41296
if 
  Camera.GetFadingStatus
goto_if_false @FINALEC_41320
wait 0
goto @FINALEC_41296

:FINALEC_41320
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:FINALEC_41335
if 
  Camera.GetFadingStatus
goto_if_false @FINALEC_41359
wait 0
goto @FINALEC_41335

:FINALEC_41359
Streaming.SetAreaVisible(3)
Cutscene.Load('EPILOG')

:FINALEC_41374
if 
  not Cutscene.HasLoaded
goto_if_false @FINALEC_41398
wait 0
goto @FINALEC_41374

:FINALEC_41398
Cutscene.Start
Camera.DoFade(1000, Fade.In)

:FINALEC_41407
if 
  not Cutscene.HasFinished
goto_if_false @FINALEC_41431
wait 0
goto @FINALEC_41407

:FINALEC_41431
Cutscene.Clear
Player.SetControl($player1, False)
Camera.DoFade(0, Fade.Out)

:FINALEC_41446
if 
  Camera.GetFadingStatus
goto_if_false @FINALEC_41470
wait 0
goto @FINALEC_41446

:FINALEC_41470
Streaming.SetAreaVisible(0)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Char.SetCoordinates($scplayer, 2523.975, -1749.962, 58.702)
Char.FreezePosition($scplayer, True)
World.SetCarDensityMultiplier(2.0)
World.SetPedDensityMultiplier(1.5)
Game.SetLaRiots(False)
Streaming.LoadScene(2514.668, -1733.461, 56.3075)
Weather.ForceNow(WeatherType.SunnySmogLa)
Clock.SetTimeOfDay(12, 0)
Audio.PreloadBeatTrack(9)

:FINALEC_41561
if 
  298@ <> 2
goto_if_false @FINALEC_41595
wait 0
298@ = Audio.GetBeatTrackStatus()
goto @FINALEC_41561

:FINALEC_41595
Audio.PlayBeatTrack
Audio.SetMusicDoesFade(False)
Camera.SetDarknessEffect(True, -1)
Credits.Start
Camera.DoFade(250, Fade.In)
Camera.ResetNewScriptables
Camera.SetVectorMove(2523.975, -1749.962, 57.202, 2514.887, -1733.851, 57.202, 2000, False)
Camera.SetVectorTrack(2523.755, -1749.572, 56.3075, 2514.668, -1733.461, 56.3075, 2000, False)

:FINALEC_41692
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_41723
wait 0
gosub @FINALEC_57084
goto @FINALEC_41692

:FINALEC_41723
Camera.SetVectorMove(2514.887, -1733.851, 57.202, 2503.344, -1713.386, 57.202, 2000, False)
Camera.SetVectorTrack(2514.668, -1733.461, 56.3075, 2503.124, -1712.996, 56.3075, 2000, False)

:FINALEC_41797
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_41828
wait 0
gosub @FINALEC_57084
goto @FINALEC_41797

:FINALEC_41828
Camera.SetVectorMove(2503.344, -1713.386, 57.202, 2491.555, -1692.485, 57.202, 2000, False)
Camera.SetVectorTrack(2503.124, -1712.996, 56.3075, 2491.335, -1692.096, 56.3075, 2000, False)

:FINALEC_41902
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_41933
wait 0
gosub @FINALEC_57084
goto @FINALEC_41902

:FINALEC_41933
Camera.SetVectorMove(2491.555, -1692.485, 57.202, 2479.766, -1671.585, 57.202, 2000, False)
Camera.SetVectorTrack(2491.335, -1692.096, 56.3075, 2479.546, -1671.196, 56.3075, 2000, False)

:FINALEC_42007
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_42038
wait 0
gosub @FINALEC_57084
goto @FINALEC_42007

:FINALEC_42038
Camera.SetVectorMove(2479.766, -1671.585, 57.202, 2467.731, -1650.249, 57.202, 2000, False)
Camera.SetVectorTrack(2479.546, -1671.196, 56.3075, 2467.511, -1649.86, 56.3075, 2000, False)

:FINALEC_42112
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_42143
wait 0
gosub @FINALEC_57084
goto @FINALEC_42112

:FINALEC_42143
Camera.SetVectorMove(2467.731, -1650.249, 57.202, 2455.451, -1628.478, 57.202, 2000, False)
Camera.SetVectorTrack(2467.511, -1649.86, 56.3075, 2455.231, -1628.089, 56.3075, 2000, False)

:FINALEC_42217
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_42248
wait 0
gosub @FINALEC_57084
goto @FINALEC_42217

:FINALEC_42248
Camera.SetVectorMove(2455.451, -1628.478, 57.202, 2445.135, -1610.19, 57.202, 2000, False)
Camera.SetVectorTrack(2455.231, -1628.089, 56.3075, 2444.916, -1609.801, 56.3075, 2000, False)

:FINALEC_42322
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_42353
wait 0
gosub @FINALEC_57084
goto @FINALEC_42322

:FINALEC_42353
Camera.SetVectorMove(2445.135, -1610.19, 57.202, 2433.838, -1590.161, 57.202, 2000, False)
Camera.SetVectorTrack(2444.916, -1609.801, 56.3075, 2433.618, -1589.771, 56.3075, 2000, False)

:FINALEC_42427
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_42458
wait 0
gosub @FINALEC_57084
goto @FINALEC_42427

:FINALEC_42458
Camera.SetVectorMove(2433.838, -1590.161, 57.202, 2423.277, -1571.437, 57.202, 2000, False)
Camera.SetVectorTrack(2433.618, -1589.771, 56.3075, 2423.057, -1571.048, 56.3075, 2000, False)

:FINALEC_42532
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_42563
wait 0
gosub @FINALEC_57084
goto @FINALEC_42532

:FINALEC_42563
Camera.SetVectorMove(2423.277, -1571.437, 57.202, 2412.716, -1552.714, 57.202, 2000, False)
Camera.SetVectorTrack(2423.057, -1571.048, 56.3075, 2412.496, -1552.325, 56.3075, 2000, False)

:FINALEC_42637
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_42668
wait 0
gosub @FINALEC_57084
goto @FINALEC_42637

:FINALEC_42668
Camera.SetVectorMove(2412.716, -1552.714, 57.202, 2401.909, -1533.555, 57.202, 2000, False)
Camera.SetVectorTrack(2412.496, -1552.325, 56.3075, 2401.689, -1533.166, 56.3075, 2000, False)

:FINALEC_42742
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_42773
wait 0
gosub @FINALEC_57084
goto @FINALEC_42742

:FINALEC_42773
Camera.SetVectorMove(2401.909, -1533.555, 57.202, 2390.611, -1513.526, 57.202, 2000, False)
Camera.SetVectorTrack(2401.689, -1533.166, 56.3075, 2390.391, -1513.136, 56.3075, 2000, False)

:FINALEC_42847
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_42878
wait 0
gosub @FINALEC_57084
goto @FINALEC_42847

:FINALEC_42878
Camera.SetVectorMove(2390.611, -1513.526, 57.202, 2379.313, -1493.496, 57.202, 2000, False)
Camera.SetVectorTrack(2390.391, -1513.136, 56.3075, 2379.094, -1493.107, 56.3075, 2000, False)

:FINALEC_42952
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_42983
wait 0
gosub @FINALEC_57084
goto @FINALEC_42952

:FINALEC_42983
Camera.SetVectorMove(2379.313, -1493.496, 57.202, 2367.279, -1472.161, 57.202, 2000, False)
Camera.SetVectorTrack(2379.094, -1493.107, 56.3075, 2367.059, -1471.771, 56.3075, 2000, False)

:FINALEC_43057
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_43088
wait 0
gosub @FINALEC_57084
goto @FINALEC_43057

:FINALEC_43088
Camera.SetVectorMove(2367.279, -1472.161, 57.202, 2355.981, -1452.131, 57.202, 2000, False)
Camera.SetVectorTrack(2367.059, -1471.771, 56.3075, 2355.761, -1451.741, 56.3075, 2000, False)

:FINALEC_43162
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_43193
wait 0
gosub @FINALEC_57084
goto @FINALEC_43162

:FINALEC_43193
Camera.SetVectorMove(2355.981, -1452.131, 57.202, 2343.946, -1430.795, 57.202, 2000, False)
Camera.SetVectorTrack(2355.761, -1451.741, 56.3075, 2343.726, -1430.406, 56.3075, 2000, False)

:FINALEC_43267
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_43298
wait 0
gosub @FINALEC_57084
goto @FINALEC_43267

:FINALEC_43298
Camera.SetVectorMove(2343.946, -1430.795, 57.202, 2332.403, -1410.33, 57.202, 2000, False)
Camera.SetVectorTrack(2343.726, -1430.406, 56.3075, 2332.183, -1409.941, 56.3075, 2000, False)

:FINALEC_43372
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_43403
wait 0
gosub @FINALEC_57084
goto @FINALEC_43372

:FINALEC_43403
Camera.SetVectorMove(2332.403, -1410.33, 57.202, 2321.596, -1391.172, 57.202, 2000, False)
Camera.SetVectorTrack(2332.183, -1409.941, 56.3075, 2321.376, -1390.782, 56.3075, 2000, False)

:FINALEC_43477
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_43508
wait 0
gosub @FINALEC_57084
goto @FINALEC_43477

:FINALEC_43508
Camera.SetVectorMove(2321.596, -1391.172, 57.202, 2312.017, -1374.19, 57.202, 2000, False)
Camera.SetVectorTrack(2321.376, -1390.782, 56.3075, 2311.798, -1373.8, 56.3075, 2000, False)

:FINALEC_43582
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_43613
wait 0
gosub @FINALEC_57084
goto @FINALEC_43582

:FINALEC_43613
Camera.DoFade(6000, Fade.Out)
Camera.SetVectorMove(2312.017, -1374.19, 57.202, 2300.965, -1354.596, 57.202, 2000, False)
Camera.SetVectorTrack(2311.798, -1373.8, 56.3075, 2300.745, -1354.206, 56.3075, 2000, False)

:FINALEC_43694
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_43725
wait 0
gosub @FINALEC_57084
goto @FINALEC_43694

:FINALEC_43725
Camera.SetVectorMove(2300.965, -1354.596, 57.202, 2289.667, -1334.566, 57.202, 2000, False)
Camera.SetVectorTrack(2300.745, -1354.206, 56.3075, 2289.448, -1334.177, 56.3075, 2000, False)

:FINALEC_43799
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_43830
wait 0
gosub @FINALEC_57084
goto @FINALEC_43799

:FINALEC_43830
Camera.SetVectorMove(2289.667, -1334.566, 57.202, 2277.878, -1313.666, 57.202, 2000, False)
Camera.SetVectorTrack(2289.448, -1334.177, 56.3075, 2277.658, -1313.276, 56.3075, 2000, False)

:FINALEC_43904
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_43935
wait 0
gosub @FINALEC_57084
goto @FINALEC_43904

:FINALEC_43935
Char.SetCoordinates($scplayer, -1014.557, -1422.255, 186.1819)
Char.FreezePosition($scplayer, True)
Clock.SetTimeOfDay(10, 0)
Weather.ForceNow(WeatherType.SunnyCountryside)
wait 11000
Camera.DoFade(6000, Fade.In)
Camera.SetVectorMove(-1014.557, -1422.255, 184.6819, -1037.938, -1423.075, 186.8606, 2000, False)
Camera.SetVectorTrack(-1015.556, -1422.29, 184.6751, -1038.937, -1423.11, 186.8538, 2000, False)

:FINALEC_44058
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_44089
wait 0
gosub @FINALEC_57084
goto @FINALEC_44058

:FINALEC_44089
Camera.SetVectorMove(-1037.938, -1423.075, 186.8606, -1063.307, -1423.965, 189.2248, 2000, False)
Camera.SetVectorTrack(-1038.937, -1423.11, 186.8538, -1064.306, -1424.0, 189.218, 2000, False)

:FINALEC_44163
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_44194
wait 0
gosub @FINALEC_57084
goto @FINALEC_44163

:FINALEC_44194
Camera.SetVectorMove(-1063.307, -1423.965, 189.2248, -1089.159, -1425.217, 191.6353, 2000, False)
Camera.SetVectorTrack(-1064.306, -1424.0, 189.218, -1090.156, -1425.284, 191.6285, 2000, False)

:FINALEC_44268
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_44299
wait 0
gosub @FINALEC_57084
goto @FINALEC_44268

:FINALEC_44299
Camera.SetVectorMove(-1089.159, -1425.217, 191.6353, -1114.49, -1426.917, 193.9995, 2000, False)
Camera.SetVectorTrack(-1090.156, -1425.284, 191.6285, -1115.488, -1426.984, 193.9927, 2000, False)

:FINALEC_44373
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_44404
wait 0
gosub @FINALEC_57084
goto @FINALEC_44373

:FINALEC_44404
Camera.SetVectorMove(-1114.49, -1426.917, 193.9995, -1139.822, -1428.616, 196.3636, 2000, False)
Camera.SetVectorTrack(-1115.488, -1426.984, 193.9927, -1140.82, -1428.683, 196.3568, 2000, False)

:FINALEC_44478
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_44509
wait 0
gosub @FINALEC_57084
goto @FINALEC_44478

:FINALEC_44509
Camera.SetVectorMove(-1139.822, -1428.616, 196.3636, -1165.651, -1430.349, 198.7742, 2000, False)
Camera.SetVectorTrack(-1140.82, -1428.683, 196.3568, -1166.649, -1430.416, 198.7673, 2000, False)

:FINALEC_44583
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_44614
wait 0
gosub @FINALEC_57084
goto @FINALEC_44583

:FINALEC_44614
Camera.SetVectorMove(-1165.651, -1430.349, 198.7742, -1191.48, -1432.082, 201.1847, 2000, False)
Camera.SetVectorTrack(-1166.649, -1430.416, 198.7673, -1192.477, -1432.149, 201.1779, 2000, False)

:FINALEC_44688
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_44719
wait 0
gosub @FINALEC_57084
goto @FINALEC_44688

:FINALEC_44719
Camera.SetVectorMove(-1191.48, -1432.082, 201.1847, -1216.812, -1433.782, 203.5488, 2000, False)
Camera.SetVectorTrack(-1192.477, -1432.149, 201.1779, -1217.809, -1433.849, 203.542, 2000, False)

:FINALEC_44793
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_44824
wait 0
gosub @FINALEC_57084
goto @FINALEC_44793

:FINALEC_44824
Camera.SetVectorMove(-1216.812, -1433.782, 203.5488, -1242.143, -1435.481, 205.913, 2000, False)
Camera.SetVectorTrack(-1217.809, -1433.849, 203.542, -1243.141, -1435.548, 205.9062, 2000, False)

:FINALEC_44898
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_44929
wait 0
gosub @FINALEC_57084
goto @FINALEC_44898

:FINALEC_44929
Camera.SetVectorMove(-1242.143, -1435.481, 205.913, -1267.972, -1437.214, 208.3235, 2000, False)
Camera.SetVectorTrack(-1243.141, -1435.548, 205.9062, -1268.97, -1437.281, 208.3167, 2000, False)

:FINALEC_45003
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_45034
wait 0
gosub @FINALEC_57084
goto @FINALEC_45003

:FINALEC_45034
Camera.SetVectorMove(-1267.972, -1437.214, 208.3235, -1293.801, -1438.947, 210.7341, 2000, False)
Camera.SetVectorTrack(-1268.97, -1437.281, 208.3167, -1294.798, -1439.014, 210.7272, 2000, False)

:FINALEC_45108
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_45139
wait 0
gosub @FINALEC_57084
goto @FINALEC_45108

:FINALEC_45139
Camera.SetVectorMove(-1293.801, -1438.947, 210.7341, -1319.629, -1440.68, 213.1446, 2000, False)
Camera.SetVectorTrack(-1294.798, -1439.014, 210.7272, -1320.627, -1440.747, 213.1378, 2000, False)

:FINALEC_45213
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_45244
wait 0
gosub @FINALEC_57084
goto @FINALEC_45213

:FINALEC_45244
Camera.SetVectorMove(-1319.629, -1440.68, 213.1446, -1345.458, -1442.413, 215.5551, 2000, False)
Camera.SetVectorTrack(-1320.627, -1440.747, 213.1378, -1346.456, -1442.48, 215.5483, 2000, False)

:FINALEC_45318
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_45349
wait 0
gosub @FINALEC_57084
goto @FINALEC_45318

:FINALEC_45349
Camera.SetVectorMove(-1345.458, -1442.413, 215.5551, -1370.79, -1444.112, 217.9193, 2000, False)
Camera.SetVectorTrack(-1346.456, -1442.48, 215.5483, -1371.787, -1444.179, 217.9125, 2000, False)

:FINALEC_45423
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_45454
wait 0
gosub @FINALEC_57084
goto @FINALEC_45423

:FINALEC_45454
Camera.SetVectorMove(-1370.79, -1444.112, 217.9193, -1396.122, -1445.812, 220.2834, 2000, False)
Camera.SetVectorTrack(-1371.787, -1444.179, 217.9125, -1397.119, -1445.879, 220.2766, 2000, False)

:FINALEC_45528
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_45559
wait 0
gosub @FINALEC_57084
goto @FINALEC_45528

:FINALEC_45559
Camera.SetVectorMove(-1396.122, -1445.812, 220.2834, -1420.957, -1447.478, 222.6012, 2000, False)
Camera.SetVectorTrack(-1397.119, -1445.879, 220.2766, -1421.955, -1447.545, 222.5944, 2000, False)

:FINALEC_45633
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_45664
wait 0
gosub @FINALEC_57084
goto @FINALEC_45633

:FINALEC_45664
Camera.SetVectorMove(-1420.957, -1447.478, 222.6012, -1446.289, -1449.178, 224.9654, 2000, False)
Camera.SetVectorTrack(-1421.955, -1447.545, 222.5944, -1447.286, -1449.245, 224.9586, 2000, False)

:FINALEC_45738
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_45769
wait 0
gosub @FINALEC_57084
goto @FINALEC_45738

:FINALEC_45769
Camera.SetVectorMove(-1446.289, -1449.178, 224.9654, -1471.621, -1450.877, 227.3296, 2000, False)
Camera.SetVectorTrack(-1447.286, -1449.245, 224.9586, -1472.618, -1450.944, 227.3228, 2000, False)

:FINALEC_45843
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_45874
wait 0
gosub @FINALEC_57084
goto @FINALEC_45843

:FINALEC_45874
Camera.SetVectorMove(-1471.621, -1450.877, 227.3296, -1496.953, -1452.577, 229.6937, 2000, False)
Camera.SetVectorTrack(-1472.618, -1450.944, 227.3228, -1497.95, -1452.644, 229.6869, 2000, False)

:FINALEC_45948
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_45979
wait 0
gosub @FINALEC_57084
goto @FINALEC_45948

:FINALEC_45979
Camera.DoFade(6000, Fade.Out)
Camera.SetVectorMove(-1496.953, -1452.577, 229.6937, -1522.285, -1454.277, 232.0579, 2000, False)
Camera.SetVectorTrack(-1497.95, -1452.644, 229.6869, -1523.282, -1454.344, 232.0511, 2000, False)

:FINALEC_46060
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_46091
wait 0
gosub @FINALEC_57084
goto @FINALEC_46060

:FINALEC_46091
Camera.SetVectorMove(-1522.285, -1454.277, 232.0579, -1547.616, -1455.976, 234.4221, 2000, False)
Camera.SetVectorTrack(-1523.282, -1454.344, 232.0511, -1548.614, -1456.043, 234.4153, 2000, False)

:FINALEC_46165
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_46196
wait 0
gosub @FINALEC_57084
goto @FINALEC_46165

:FINALEC_46196
Camera.SetVectorMove(-1547.616, -1455.976, 234.4221, -1572.452, -1457.642, 236.7399, 2000, False)
Camera.SetVectorTrack(-1548.614, -1456.043, 234.4153, -1573.449, -1457.709, 236.7331, 2000, False)

:FINALEC_46270
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_46301
wait 0
gosub @FINALEC_57084
goto @FINALEC_46270

:FINALEC_46301
Camera.DoFade(0, Fade.Out)

:FINALEC_46307
if 
  Camera.GetFadingStatus
goto_if_false @FINALEC_46331
wait 0
goto @FINALEC_46307

:FINALEC_46331
Camera.SetDarknessEffect(False, -1)
Char.SetCoordinates($scplayer, -2551.824, 1438.745, -6.4582)
Char.FreezePosition($scplayer, True)
Weather.ForceNow(WeatherType.RainySf)
Clock.SetTimeOfDay(22, 15)
wait 11000
Camera.DoFade(6000, Fade.In)
Camera.SetVectorMove(-2551.824, 1438.745, -7.9582, -2555.05, 1456.451, -7.9582, 2000, False)
Camera.SetVectorTrack(-2552.003, 1439.724, -8.0577, -2555.229, 1457.43, -8.0577, 2000, False)

:FINALEC_46460
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_46491
wait 0
gosub @FINALEC_57084
goto @FINALEC_46460

:FINALEC_46491
Camera.SetVectorMove(-2555.05, 1456.451, -7.9582, -2558.981, 1478.022, -6.5912, 2000, False)
Camera.SetVectorTrack(-2555.229, 1457.43, -8.0577, -2559.16, 1479.005, -6.5742, 2000, False)

:FINALEC_46565
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_46596
wait 0
gosub @FINALEC_57084
goto @FINALEC_46565

:FINALEC_46596
Camera.SetVectorMove(-2558.981, 1478.022, -6.5912, -2562.766, 1498.793, -2.7267, 2000, False)
Camera.SetVectorTrack(-2559.16, 1479.005, -6.5742, -2562.943, 1499.765, -2.5699, 2000, False)

:FINALEC_46670
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_46701
wait 0
gosub @FINALEC_57084
goto @FINALEC_46670

:FINALEC_46701
Camera.SetVectorMove(-2562.766, 1498.793, -2.7267, -2566.42, 1518.853, 4.0086, 2000, False)
Camera.SetVectorTrack(-2562.943, 1499.765, -2.5699, -2566.594, 1519.803, 4.2679, 2000, False)

:FINALEC_46775
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_46806
wait 0
gosub @FINALEC_57084
goto @FINALEC_46775

:FINALEC_46806
Camera.SetVectorMove(-2566.42, 1518.853, 4.0086, -2570.021, 1538.631, 11.6223, 2000, False)
Camera.SetVectorTrack(-2566.594, 1519.803, 4.2679, -2570.194, 1539.581, 11.8816, 2000, False)

:FINALEC_46880
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_46911
wait 0
gosub @FINALEC_57084
goto @FINALEC_46880

:FINALEC_46911
Camera.SetVectorMove(-2570.021, 1538.631, 11.6223, -2573.706, 1558.869, 19.413, 2000, False)
Camera.SetVectorTrack(-2570.194, 1539.581, 11.8816, -2573.879, 1559.819, 19.6724, 2000, False)

:FINALEC_46985
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_47016
wait 0
gosub @FINALEC_57084
goto @FINALEC_46985

:FINALEC_47016
Camera.SetVectorMove(-2573.706, 1558.869, 19.413, -2577.223, 1578.188, 26.8497, 2000, False)
Camera.SetVectorTrack(-2573.879, 1559.819, 19.6724, -2577.396, 1579.138, 27.109, 2000, False)

:FINALEC_47090
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_47121
wait 0
gosub @FINALEC_57084
goto @FINALEC_47090

:FINALEC_47121
Camera.SetVectorMove(-2577.223, 1578.188, 26.8497, -2580.907, 1598.426, 34.6405, 2000, False)
Camera.SetVectorTrack(-2577.396, 1579.138, 27.109, -2581.081, 1599.376, 34.8998, 2000, False)

:FINALEC_47195
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_47226
wait 0
gosub @FINALEC_57084
goto @FINALEC_47195

:FINALEC_47226
Camera.SetVectorMove(-2580.907, 1598.426, 34.6405, -2584.514, 1618.225, 42.1997, 2000, False)
Camera.SetVectorTrack(-2581.081, 1599.376, 34.8998, -2584.688, 1619.178, 42.4465, 2000, False)

:FINALEC_47300
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_47331
wait 0
gosub @FINALEC_57084
goto @FINALEC_47300

:FINALEC_47331
Camera.SetVectorMove(-2584.514, 1618.225, 42.1997, -2588.233, 1638.641, 49.4991, 2000, False)
Camera.SetVectorTrack(-2584.688, 1619.178, 42.4465, -2588.408, 1639.599, 49.7249, 2000, False)

:FINALEC_47405
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_47436
wait 0
gosub @FINALEC_57084
goto @FINALEC_47405

:FINALEC_47436
Camera.SetVectorMove(-2588.233, 1638.641, 49.4991, -2591.978, 1659.176, 56.4439, 2000, False)
Camera.SetVectorTrack(-2588.408, 1639.599, 49.7249, -2592.153, 1660.136, 56.6616, 2000, False)

:FINALEC_47510
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_47541
wait 0
gosub @FINALEC_57084
goto @FINALEC_47510

:FINALEC_47541
Camera.SetVectorMove(-2591.978, 1659.176, 56.4439, -2595.642, 1679.259, 63.1876, 2000, False)
Camera.SetVectorTrack(-2592.153, 1660.136, 56.6616, -2595.817, 1680.219, 63.4053, 2000, False)

:FINALEC_47615
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_47646
wait 0
gosub @FINALEC_57084
goto @FINALEC_47615

:FINALEC_47646
Camera.SetVectorMove(-2595.642, 1679.259, 63.1876, -2599.394, 1699.842, 69.9817, 2000, False)
Camera.SetVectorTrack(-2595.817, 1680.219, 63.4053, -2599.569, 1700.806, 70.1827, 2000, False)

:FINALEC_47720
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_47751
wait 0
gosub @FINALEC_57084
goto @FINALEC_47720

:FINALEC_47751
Camera.SetVectorMove(-2599.394, 1699.842, 69.9817, -2603.17, 1720.568, 76.3148, 2000, False)
Camera.SetVectorTrack(-2599.569, 1700.806, 70.1827, -2603.347, 1721.536, 76.4955, 2000, False)

:FINALEC_47825
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_47856
wait 0
gosub @FINALEC_57084
goto @FINALEC_47825

:FINALEC_47856
Camera.SetVectorMove(-2603.17, 1720.568, 76.3148, -2606.968, 1741.411, 82.2359, 2000, False)
Camera.SetVectorTrack(-2603.347, 1721.536, 76.4955, -2607.145, 1742.382, 82.3978, 2000, False)

:FINALEC_47930
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_47961
wait 0
gosub @FINALEC_57084
goto @FINALEC_47930

:FINALEC_47961
Camera.SetVectorMove(-2606.968, 1741.411, 82.2359, -2610.699, 1761.885, 87.6284, 2000, False)
Camera.SetVectorTrack(-2607.145, 1742.382, 82.3978, -2610.877, 1762.858, 87.7717, 2000, False)

:FINALEC_48035
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_48066
wait 0
gosub @FINALEC_57084
goto @FINALEC_48035

:FINALEC_48066
Camera.SetVectorMove(-2610.699, 1761.885, 87.6284, -2614.448, 1782.455, 92.6294, 2000, False)
Camera.SetVectorTrack(-2610.877, 1762.858, 87.7717, -2614.625, 1783.431, 92.7541, 2000, False)

:FINALEC_48140
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_48171
wait 0
gosub @FINALEC_57084
goto @FINALEC_48140

:FINALEC_48171
Camera.SetVectorMove(-2614.448, 1782.455, 92.6294, -2618.214, 1803.127, 97.1743, 2000, False)
Camera.SetVectorTrack(-2614.625, 1783.431, 92.7541, -2618.393, 1804.106, 97.2734, 2000, False)

:FINALEC_48245
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_48276
wait 0
gosub @FINALEC_57084
goto @FINALEC_48245

:FINALEC_48276
Camera.SetVectorMove(-2618.214, 1803.127, 97.1743, -2622.001, 1823.909, 101.1663, 2000, False)
Camera.SetVectorTrack(-2618.393, 1804.106, 97.2734, -2622.18, 1824.89, 101.2393, 2000, False)

:FINALEC_48350
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_48381
wait 0
gosub @FINALEC_57084
goto @FINALEC_48350

:FINALEC_48381
Camera.SetVectorMove(-2622.001, 1823.909, 101.1663, -2625.806, 1844.788, 104.6021, 2000, False)
Camera.SetVectorTrack(-2622.18, 1824.89, 101.2393, -2625.985, 1845.77, 104.6488, 2000, False)

:FINALEC_48455
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_48486
wait 0
gosub @FINALEC_57084
goto @FINALEC_48455

:FINALEC_48486
Camera.DoFade(6000, Fade.Out)
Camera.SetVectorMove(-2625.806, 1844.788, 104.6021, -2629.447, 1864.771, 107.3578, 2000, False)
Camera.SetVectorTrack(-2625.985, 1845.77, 104.6488, -2629.626, 1865.755, 107.3795, 2000, False)

:FINALEC_48567
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_48598
wait 0
gosub @FINALEC_57084
goto @FINALEC_48567

:FINALEC_48598
Camera.SetVectorMove(-2629.447, 1864.771, 107.3578, -2633.278, 1885.793, 109.7129, 2000, False)
Camera.SetVectorTrack(-2629.626, 1865.755, 107.3795, -2633.457, 1886.777, 109.7149, 2000, False)

:FINALEC_48672
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_48703
wait 0
gosub @FINALEC_57084
goto @FINALEC_48672

:FINALEC_48703
Camera.SetVectorMove(-2633.278, 1885.793, 109.7129, -2637.109, 1906.832, 111.8949, 2000, False)
Camera.SetVectorTrack(-2633.457, 1886.777, 109.7149, -2637.289, 1907.815, 111.8969, 2000, False)

:FINALEC_48777
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_48808
wait 0
gosub @FINALEC_57084
goto @FINALEC_48777

:FINALEC_48808
Camera.DoFade(0, Fade.Out)

:FINALEC_48814
if 
  Camera.GetFadingStatus
goto_if_false @FINALEC_48838
wait 0
goto @FINALEC_48814

:FINALEC_48838
Weather.ForceNow(WeatherType.ExtraSunnyLa)
Clock.SetTimeOfDay(5, 30)
Char.SetCoordinates($scplayer, -922.5345, 669.1976, 86.8181)
Char.FreezePosition($scplayer, True)
Camera.SetDarknessEffect(True, -1)
wait 11000
Camera.DoFade(6000, Fade.In)
Camera.SetVectorMove(-922.5345, 669.1976, 85.3181, -944.3385, 676.5142, 85.3181, 2250, False)
Camera.SetVectorTrack(-923.4778, 669.5142, 85.2186, -945.2818, 676.8308, 85.2186, 2250, False)

:FINALEC_48967
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_48998
wait 0
gosub @FINALEC_57084
goto @FINALEC_48967

:FINALEC_48998
Camera.SetVectorMove(-944.3385, 676.5142, 85.3181, -968.5125, 684.6262, 85.3181, 2250, False)
Camera.SetVectorTrack(-945.2818, 676.8308, 85.2186, -969.4557, 684.9427, 85.2186, 2250, False)

:FINALEC_49072
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_49103
wait 0
gosub @FINALEC_57084
goto @FINALEC_49072

:FINALEC_49103
Camera.SetVectorMove(-968.5125, 684.6262, 85.3181, -993.1604, 692.8972, 85.3181, 2250, False)
Camera.SetVectorTrack(-969.4557, 684.9427, 85.2186, -994.1037, 693.2137, 85.2186, 2250, False)

:FINALEC_49177
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_49208
wait 0
gosub @FINALEC_57084
goto @FINALEC_49177

:FINALEC_49208
Camera.SetVectorMove(-993.1604, 692.8972, 85.3181, -1017.808, 701.1682, 85.3181, 2250, False)
Camera.SetVectorTrack(-994.1037, 693.2137, 85.2186, -1018.752, 701.4847, 85.2186, 2250, False)

:FINALEC_49282
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_49313
wait 0
gosub @FINALEC_57084
goto @FINALEC_49282

:FINALEC_49313
Camera.SetVectorMove(-1017.808, 701.1682, 85.3181, -1041.982, 709.2801, 85.3181, 2250, False)
Camera.SetVectorTrack(-1018.752, 701.4847, 85.2186, -1042.926, 709.5967, 85.2186, 2250, False)

:FINALEC_49387
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_49418
wait 0
gosub @FINALEC_57084
goto @FINALEC_49387

:FINALEC_49418
Camera.SetVectorMove(-1041.982, 709.2801, 85.3181, -1066.156, 717.392, 85.3181, 2250, False)
Camera.SetVectorTrack(-1042.926, 709.5967, 85.2186, -1067.099, 717.7086, 85.2186, 2250, False)

:FINALEC_49492
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_49523
wait 0
gosub @FINALEC_57084
goto @FINALEC_49492

:FINALEC_49523
Camera.SetVectorMove(-1066.156, 717.392, 85.3181, -1090.33, 725.504, 85.3181, 2250, False)
Camera.SetVectorTrack(-1067.099, 717.7086, 85.2186, -1091.273, 725.8206, 85.2186, 2250, False)

:FINALEC_49597
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_49628
wait 0
gosub @FINALEC_57084
goto @FINALEC_49597

:FINALEC_49628
Camera.SetVectorMove(-1090.33, 725.504, 85.3181, -1114.504, 733.6159, 85.3181, 2250, False)
Camera.SetVectorTrack(-1091.273, 725.8206, 85.2186, -1115.447, 733.9325, 85.2186, 2250, False)

:FINALEC_49702
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_49733
wait 0
gosub @FINALEC_57084
goto @FINALEC_49702

:FINALEC_49733
Camera.SetVectorMove(-1114.504, 733.6159, 85.3181, -1138.678, 741.7278, 85.3181, 2250, False)
Camera.SetVectorTrack(-1115.447, 733.9325, 85.2186, -1139.621, 742.0444, 85.2186, 2250, False)

:FINALEC_49807
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_49838
wait 0
gosub @FINALEC_57084
goto @FINALEC_49807

:FINALEC_49838
Camera.SetVectorMove(-1138.678, 741.7278, 85.3181, -1162.378, 749.6807, 85.3181, 2250, False)
Camera.SetVectorTrack(-1139.621, 742.0444, 85.2186, -1163.321, 749.9973, 85.2186, 2250, False)

:FINALEC_49912
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_49943
wait 0
gosub @FINALEC_57084
goto @FINALEC_49912

:FINALEC_49943
Camera.SetVectorMove(-1162.378, 749.6807, 85.3181, -1186.078, 757.6336, 85.3181, 2250, False)
Camera.SetVectorTrack(-1163.321, 749.9973, 85.2186, -1187.021, 757.9502, 85.2186, 2250, False)

:FINALEC_50017
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_50048
wait 0
gosub @FINALEC_57084
goto @FINALEC_50017

:FINALEC_50048
Camera.SetVectorMove(-1186.078, 757.6336, 85.3181, -1209.778, 765.5865, 85.3181, 2250, False)
Camera.SetVectorTrack(-1187.021, 757.9502, 85.2186, -1210.721, 765.9031, 85.2186, 2250, False)

:FINALEC_50122
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_50153
wait 0
gosub @FINALEC_57084
goto @FINALEC_50122

:FINALEC_50153
Camera.SetVectorMove(-1209.778, 765.5865, 85.3181, -1233.952, 773.6984, 85.3181, 2250, False)
Camera.SetVectorTrack(-1210.721, 765.9031, 85.2186, -1234.895, 774.015, 85.2186, 2250, False)

:FINALEC_50227
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_50258
wait 0
gosub @FINALEC_57084
goto @FINALEC_50227

:FINALEC_50258
Camera.SetVectorMove(-1233.952, 773.6984, 85.3181, -1258.126, 781.8104, 85.3181, 2250, False)
Camera.SetVectorTrack(-1234.895, 774.015, 85.2186, -1259.069, 782.127, 85.2186, 2250, False)

:FINALEC_50332
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_50363
wait 0
gosub @FINALEC_57084
goto @FINALEC_50332

:FINALEC_50363
Camera.SetVectorMove(-1258.126, 781.8104, 85.3181, -1281.826, 789.7632, 85.3181, 2250, False)
Camera.SetVectorTrack(-1259.069, 782.127, 85.2186, -1282.769, 790.0798, 85.2186, 2250, False)

:FINALEC_50437
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_50468
wait 0
gosub @FINALEC_57084
goto @FINALEC_50437

:FINALEC_50468
Camera.SetVectorMove(-1281.826, 789.7632, 85.3181, -1305.526, 797.7161, 85.3181, 2250, False)
Camera.SetVectorTrack(-1282.769, 790.0798, 85.2186, -1306.469, 798.0327, 85.2186, 2250, False)

:FINALEC_50542
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_50573
wait 0
gosub @FINALEC_57084
goto @FINALEC_50542

:FINALEC_50573
Camera.SetVectorMove(-1305.526, 797.7161, 85.3181, -1329.226, 805.669, 85.3181, 2250, False)
Camera.SetVectorTrack(-1306.469, 798.0327, 85.2186, -1330.169, 805.9856, 85.2186, 2250, False)

:FINALEC_50647
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_50678
wait 0
gosub @FINALEC_57084
goto @FINALEC_50647

:FINALEC_50678
Camera.SetVectorMove(-1329.226, 805.669, 85.3181, -1353.4, 813.7809, 85.3181, 2250, False)
Camera.SetVectorTrack(-1330.169, 805.9856, 85.2186, -1354.343, 814.0975, 85.2186, 2250, False)

:FINALEC_50752
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_50783
wait 0
gosub @FINALEC_57084
goto @FINALEC_50752

:FINALEC_50783
Camera.SetVectorMove(-1353.4, 813.7809, 85.3181, -1377.574, 821.8929, 85.3181, 2250, False)
Camera.SetVectorTrack(-1354.343, 814.0975, 85.2186, -1378.517, 822.2095, 85.2186, 2250, False)

:FINALEC_50857
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_50888
wait 0
gosub @FINALEC_57084
goto @FINALEC_50857

:FINALEC_50888
Camera.SetVectorMove(-1377.574, 821.8929, 85.3181, -1401.274, 829.8458, 85.3181, 2250, False)
Camera.SetVectorTrack(-1378.517, 822.2095, 85.2186, -1402.217, 830.1624, 85.2186, 2250, False)

:FINALEC_50962
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_50993
wait 0
gosub @FINALEC_57084
goto @FINALEC_50962

:FINALEC_50993
Camera.SetVectorMove(-1401.274, 829.8458, 85.3181, -1423.552, 837.3215, 85.3181, 2250, False)
Camera.SetVectorTrack(-1402.217, 830.1624, 85.2186, -1424.495, 837.6381, 85.2186, 2250, False)

:FINALEC_51067
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_51098
wait 0
gosub @FINALEC_57084
goto @FINALEC_51067

:FINALEC_51098
Camera.SetVectorMove(-1423.552, 837.3215, 85.3181, -1446.777, 845.1153, 85.3181, 2250, False)
Camera.SetVectorTrack(-1424.495, 837.6381, 85.2186, -1447.721, 845.4319, 85.2186, 2250, False)

:FINALEC_51172
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_51203
wait 0
gosub @FINALEC_57084
goto @FINALEC_51172

:FINALEC_51203
Camera.SetVectorMove(-1446.777, 845.1153, 85.3181, -1470.477, 853.0682, 85.3181, 2250, False)
Camera.SetVectorTrack(-1447.721, 845.4319, 85.2186, -1471.421, 853.3848, 85.2186, 2250, False)

:FINALEC_51277
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_51308
wait 0
gosub @FINALEC_57084
goto @FINALEC_51277

:FINALEC_51308
Camera.SetVectorMove(-1470.477, 853.0682, 85.3181, -1493.703, 860.862, 85.3181, 2250, False)
Camera.SetVectorTrack(-1471.421, 853.3848, 85.2186, -1494.647, 861.1786, 85.2186, 2250, False)

:FINALEC_51382
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_51413
wait 0
gosub @FINALEC_57084
goto @FINALEC_51382

:FINALEC_51413
Camera.DoFade(5900, Fade.Out)
Camera.SetVectorMove(-1493.703, 860.862, 85.3181, -1515.981, 868.3377, 85.3181, 2250, False)
Camera.SetVectorTrack(-1494.647, 861.1786, 85.2186, -1516.925, 868.6543, 85.2186, 2250, False)

:FINALEC_51494
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_51525
wait 0
gosub @FINALEC_57084
goto @FINALEC_51494

:FINALEC_51525
Camera.SetVectorMove(-1515.981, 868.3377, 85.3181, -1538.259, 875.8134, 85.3181, 2250, False)
Camera.SetVectorTrack(-1516.925, 868.6543, 85.2186, -1539.203, 876.13, 85.2186, 2250, False)

:FINALEC_51599
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_51630
wait 0
gosub @FINALEC_57084
goto @FINALEC_51599

:FINALEC_51630
Camera.SetVectorMove(-1538.259, 875.8134, 85.3181, -1561.011, 883.4482, 85.3181, 2250, False)
Camera.SetVectorTrack(-1539.203, 876.13, 85.2186, -1561.954, 883.7648, 85.2186, 2250, False)

:FINALEC_51704
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_51735
wait 0
gosub @FINALEC_57084
goto @FINALEC_51704

:FINALEC_51735
Camera.DoFade(0, Fade.Out)

:FINALEC_51741
if 
  Camera.GetFadingStatus
goto_if_false @FINALEC_51765
wait 0
goto @FINALEC_51741

:FINALEC_51765
Weather.ForceNow(WeatherType.ExtraSunnyDesert)
Camera.SetDarknessEffect(True, -1)
Char.SetCoordinates($scplayer, 370.7745, 2441.234, 19.0844)
Char.FreezePosition($scplayer, True)
Clock.SetTimeOfDay(12, 0)
wait 11000
Camera.DoFade(6000, Fade.In)
Camera.SetVectorMove(370.7745, 2441.234, 17.5844, 366.5777, 2438.902, 17.5844, 2250, False)
Camera.SetVectorTrack(369.9044, 2440.751, 17.4849, 365.7076, 2438.419, 17.4849, 2250, False)

:FINALEC_51894
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_51925
wait 0
gosub @FINALEC_57084
goto @FINALEC_51894

:FINALEC_51925
Camera.SetVectorMove(366.5777, 2438.902, 17.5844, 362.0319, 2436.376, 17.5835, 2250, False)
Camera.SetVectorTrack(365.7076, 2438.419, 17.4849, 361.1612, 2435.893, 17.4921, 2250, False)

:FINALEC_51999
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_52030
wait 0
gosub @FINALEC_57084
goto @FINALEC_51999

:FINALEC_52030
Camera.SetVectorMove(362.0319, 2436.376, 17.5835, 357.4894, 2433.852, 17.6536, 2250, False)
Camera.SetVectorTrack(361.1612, 2435.893, 17.4921, 356.6158, 2433.367, 17.6101, 2250, False)

:FINALEC_52104
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_52135
wait 0
gosub @FINALEC_57084
goto @FINALEC_52104

:FINALEC_52135
Camera.SetVectorMove(357.4894, 2433.852, 17.6536, 352.8694, 2431.29, 17.996, 2250, False)
Camera.SetVectorTrack(356.6158, 2433.367, 17.6101, 351.9951, 2430.805, 18.0046, 2250, False)

:FINALEC_52209
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_52240
wait 0
gosub @FINALEC_57084
goto @FINALEC_52209

:FINALEC_52240
Camera.SetVectorMove(352.8694, 2431.29, 17.996, 348.2637, 2428.728, 18.5695, 2200, False)
Camera.SetVectorTrack(351.9951, 2430.805, 18.0046, 347.3847, 2428.251, 18.5783, 2200, False)

:FINALEC_52314
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_52345
wait 0
gosub @FINALEC_57084
goto @FINALEC_52314

:FINALEC_52345
skip_cutscene_start_internal @FINALEC_56652
Camera.SetVectorMove(348.2637, 2428.728, 18.5695, 343.6016, 2426.274, 19.1432, 2150, False)
Camera.SetVectorTrack(347.3847, 2428.251, 18.5783, 342.7046, 2425.832, 19.152, 2150, False)

:FINALEC_52426
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_52457
wait 0
gosub @FINALEC_57084
goto @FINALEC_52426

:FINALEC_52457
Camera.SetVectorMove(343.6016, 2426.274, 19.1432, 338.937, 2424.046, 19.706, 2100, False)
Camera.SetVectorTrack(342.7046, 2425.832, 19.152, 338.0236, 2423.639, 19.7148, 2100, False)

:FINALEC_52531
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_52562
wait 0
gosub @FINALEC_57084
goto @FINALEC_52531

:FINALEC_52562
Camera.SetVectorMove(338.937, 2424.046, 19.706, 334.282, 2422.038, 20.2581, 2000, False)
Camera.SetVectorTrack(338.0236, 2423.639, 19.7148, 333.3536, 2421.666, 20.2669, 2000, False)

:FINALEC_52636
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_52667
wait 0
gosub @FINALEC_57084
goto @FINALEC_52636

:FINALEC_52667
Camera.SetVectorMove(334.282, 2422.038, 20.2581, 329.5525, 2420.212, 20.8101, 2000, False)
Camera.SetVectorTrack(333.3536, 2421.666, 20.2669, 328.611, 2419.875, 20.8189, 2000, False)

:FINALEC_52741
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_52772
wait 0
gosub @FINALEC_57084
goto @FINALEC_52741

:FINALEC_52772
Camera.SetVectorMove(329.5525, 2420.212, 20.8101, 324.7735, 2418.516, 21.3621, 2000, False)
Camera.SetVectorTrack(328.611, 2419.875, 20.8189, 323.8303, 2418.184, 21.371, 2000, False)

:FINALEC_52846
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_52877
wait 0
gosub @FINALEC_57084
goto @FINALEC_52846

:FINALEC_52877
Camera.SetVectorMove(324.7735, 2418.516, 21.3621, 320.0809, 2416.879, 21.9034, 2000, False)
Camera.SetVectorTrack(323.8303, 2418.184, 21.371, 319.1361, 2416.552, 21.9122, 2000, False)

:FINALEC_52951
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_52982
wait 0
gosub @FINALEC_57084
goto @FINALEC_52951

:FINALEC_52982
Camera.SetVectorMove(320.0809, 2416.879, 21.9034, 315.103, 2415.156, 22.477, 2000, False)
Camera.SetVectorTrack(319.1361, 2416.552, 21.9122, 314.1573, 2414.831, 22.4858, 2000, False)

:FINALEC_53056
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_53087
wait 0
gosub @FINALEC_57084
goto @FINALEC_53056

:FINALEC_53087
Camera.SetVectorMove(315.103, 2415.156, 22.477, 310.2042, 2413.506, 23.0399, 2000, False)
Camera.SetVectorTrack(314.1573, 2414.831, 22.4858, 309.2525, 2413.198, 23.0487, 2000, False)

:FINALEC_53161
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_53192
wait 0
gosub @FINALEC_57084
goto @FINALEC_53161

:FINALEC_53192
Camera.SetVectorMove(310.2042, 2413.506, 23.0399, 305.2758, 2411.946, 23.6028, 2000, False)
Camera.SetVectorTrack(309.2525, 2413.198, 23.0487, 304.3187, 2411.656, 23.6116, 2000, False)

:FINALEC_53266
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_53297
wait 0
gosub @FINALEC_57084
goto @FINALEC_53266

:FINALEC_53297
Camera.SetVectorMove(305.2758, 2411.946, 23.6028, 300.3198, 2410.476, 24.1656, 2000, False)
Camera.SetVectorTrack(304.3187, 2411.656, 23.6116, 299.3576, 2410.204, 24.1744, 2000, False)

:FINALEC_53371
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_53402
wait 0
gosub @FINALEC_57084
goto @FINALEC_53371

:FINALEC_53402
Camera.SetVectorMove(300.3198, 2410.476, 24.1656, 295.434, 2409.122, 24.7176, 2000, False)
Camera.SetVectorTrack(299.3576, 2410.204, 24.1744, 294.4671, 2408.866, 24.7265, 2000, False)

:FINALEC_53476
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_53507
wait 0
gosub @FINALEC_57084
goto @FINALEC_53476

:FINALEC_53507
Camera.SetVectorMove(295.434, 2409.122, 24.7176, 290.4283, 2407.831, 25.2805, 2000, False)
Camera.SetVectorTrack(294.4671, 2408.866, 24.7265, 289.4569, 2407.593, 25.2893, 2000, False)

:FINALEC_53581
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_53612
wait 0
gosub @FINALEC_57084
goto @FINALEC_53581

:FINALEC_53612
Camera.SetVectorMove(290.4283, 2407.831, 25.2805, 285.3999, 2406.631, 25.8434, 2000, False)
Camera.SetVectorTrack(289.4569, 2407.593, 25.2893, 284.4244, 2406.411, 25.8522, 2000, False)

:FINALEC_53686
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_53717
wait 0
gosub @FINALEC_57084
goto @FINALEC_53686

:FINALEC_53717
Camera.SetVectorMove(285.3999, 2406.631, 25.8434, 280.3567, 2405.488, 26.4062, 2000, False)
Camera.SetVectorTrack(284.4244, 2406.411, 25.8522, 279.3812, 2405.268, 26.415, 2000, False)

:FINALEC_53791
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_53822
wait 0
gosub @FINALEC_57084
goto @FINALEC_53791

:FINALEC_53822
Camera.SetVectorMove(280.3567, 2405.488, 26.4062, 275.3135, 2404.346, 26.9691, 2000, False)
Camera.SetVectorTrack(279.3812, 2405.268, 26.415, 274.338, 2404.126, 26.9779, 2000, False)

:FINALEC_53896
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_53927
wait 0
gosub @FINALEC_57084
goto @FINALEC_53896

:FINALEC_53927
Camera.SetVectorMove(275.3135, 2404.346, 26.9691, 270.3673, 2403.225, 27.5211, 2000, False)
Camera.SetVectorTrack(274.338, 2404.126, 26.9779, 269.3918, 2403.005, 27.5299, 2000, False)

:FINALEC_54001
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_54032
wait 0
gosub @FINALEC_57084
goto @FINALEC_54001

:FINALEC_54032
Camera.SetVectorMove(270.3673, 2403.225, 27.5211, 265.4211, 2402.104, 28.0732, 2000, False)
Camera.SetVectorTrack(269.3918, 2403.005, 27.5299, 264.4456, 2401.885, 28.082, 2000, False)

:FINALEC_54106
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_54137
wait 0
gosub @FINALEC_57084
goto @FINALEC_54106

:FINALEC_54137
Camera.SetVectorMove(265.4211, 2402.104, 28.0732, 262.4145, 2401.423, 28.4087, 2000, False)
Camera.SetVectorTrack(264.4456, 2401.885, 28.082, 261.439, 2401.203, 28.4175, 2000, False)

:FINALEC_54211
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_54242
wait 0
gosub @FINALEC_57084
goto @FINALEC_54211

:FINALEC_54242
Camera.SetVectorMove(262.4145, 2401.423, 28.4087, 258.8261, 2400.61, 28.8092, 2000, False)
Camera.SetVectorTrack(261.439, 2401.203, 28.4175, 257.8506, 2400.39, 28.818, 2000, False)

:FINALEC_54316
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_54347
wait 0
gosub @FINALEC_57084
goto @FINALEC_54316

:FINALEC_54347
Camera.DoFade(6000, Fade.Out)
Camera.SetVectorMove(258.8261, 2400.61, 28.8092, 253.8804, 2399.49, 29.3612, 2000, False)
Camera.SetVectorTrack(257.8506, 2400.39, 28.818, 252.9049, 2399.27, 29.37, 2000, False)

:FINALEC_54428
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_54459
wait 0
gosub @FINALEC_57084
goto @FINALEC_54428

:FINALEC_54459
Camera.SetVectorMove(253.8804, 2399.49, 29.3612, 248.8379, 2398.347, 29.9241, 2000, False)
Camera.SetVectorTrack(252.9049, 2399.27, 29.37, 247.8624, 2398.127, 29.9329, 2000, False)

:FINALEC_54533
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_54564
wait 0
gosub @FINALEC_57084
goto @FINALEC_54533

:FINALEC_54564
Camera.SetVectorMove(248.8379, 2398.347, 29.9241, 244.0864, 2397.271, 30.4545, 2000, False)
Camera.SetVectorTrack(247.8624, 2398.127, 29.9329, 243.1109, 2397.051, 30.4633, 2000, False)

:FINALEC_54638
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_54669
wait 0
gosub @FINALEC_57084
goto @FINALEC_54638

:FINALEC_54669
Camera.DoFade(0, Fade.Out)

:FINALEC_54675
if 
  Camera.GetFadingStatus
goto_if_false @FINALEC_54699
wait 0
goto @FINALEC_54675

:FINALEC_54699
Char.SetCoordinates($scplayer, 2012.444, 2140.383, 78.0505)
Char.FreezePosition($scplayer, True)
Clock.SetTimeOfDay(0, 0)
wait 11000
Camera.DoFade(6000, Fade.In)
Camera.SetVectorMove(2012.444, 2140.383, 76.5505, 2030.939, 2140.419, 76.5504, 2900, False)
Camera.SetVectorTrack(2013.439, 2140.385, 76.451, 2031.934, 2140.421, 76.4497, 2900, False)

:FINALEC_54818
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_54849
wait 0
gosub @FINALEC_57084
goto @FINALEC_54818

:FINALEC_54849
Camera.SetVectorMove(2030.939, 2140.419, 76.5504, 2051.375, 2140.459, 75.0916, 2900, False)
Camera.SetVectorTrack(2031.934, 2140.421, 76.4497, 2052.349, 2140.461, 74.8638, 2900, False)

:FINALEC_54923
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_54954
wait 0
gosub @FINALEC_57084
goto @FINALEC_54923

:FINALEC_54954
Camera.SetVectorMove(2051.375, 2140.459, 75.0916, 2072.109, 2140.5, 71.7815, 2900, False)
Camera.SetVectorTrack(2052.349, 2140.461, 74.8638, 2073.061, 2140.502, 71.4748, 2900, False)

:FINALEC_55028
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_55059
wait 0
gosub @FINALEC_57084
goto @FINALEC_55028

:FINALEC_55059
Camera.SetVectorMove(2072.109, 2140.5, 71.7815, 2092.618, 2140.541, 67.3086, 2900, False)
Camera.SetVectorTrack(2073.061, 2140.502, 71.4748, 2093.569, 2140.543, 66.9993, 2900, False)

:FINALEC_55133
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_55164
wait 0
gosub @FINALEC_57084
goto @FINALEC_55133

:FINALEC_55164
Camera.SetVectorMove(2092.618, 2140.541, 67.3086, 2114.102, 2140.584, 62.62, 2900, False)
Camera.SetVectorTrack(2093.569, 2140.543, 66.9993, 2115.053, 2140.586, 62.3108, 2900, False)

:FINALEC_55238
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_55269
wait 0
gosub @FINALEC_57084
goto @FINALEC_55238

:FINALEC_55269
Camera.SetVectorMove(2114.102, 2140.584, 62.62, 2135.587, 2140.627, 57.9315, 2900, False)
Camera.SetVectorTrack(2115.053, 2140.586, 62.3108, 2136.538, 2140.629, 57.6223, 2900, False)

:FINALEC_55343
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_55374
wait 0
gosub @FINALEC_57084
goto @FINALEC_55343

:FINALEC_55374
Camera.SetVectorMove(2135.587, 2140.627, 57.9315, 2157.071, 2140.67, 53.2431, 2900, False)
Camera.SetVectorTrack(2136.538, 2140.629, 57.6223, 2158.022, 2140.672, 52.9338, 2900, False)

:FINALEC_55448
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_55479
wait 0
gosub @FINALEC_57084
goto @FINALEC_55448

:FINALEC_55479
Camera.SetVectorMove(2157.071, 2140.67, 53.2431, 2179.044, 2140.714, 48.4481, 2900, False)
Camera.SetVectorTrack(2158.022, 2140.672, 52.9338, 2179.995, 2140.716, 48.1388, 2900, False)

:FINALEC_55553
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_55584
wait 0
gosub @FINALEC_57084
goto @FINALEC_55553

:FINALEC_55584
Camera.SetVectorMove(2179.044, 2140.714, 48.4481, 2201.017, 2140.758, 43.6528, 2900, False)
Camera.SetVectorTrack(2179.995, 2140.716, 48.1388, 2201.968, 2140.76, 43.344, 2900, False)

:FINALEC_55658
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_55689
wait 0
gosub @FINALEC_57084
goto @FINALEC_55658

:FINALEC_55689
Camera.SetVectorMove(2201.017, 2140.758, 43.6528, 2222.665, 2140.801, 39.8525, 2900, False)
Camera.SetVectorTrack(2201.968, 2140.76, 43.344, 2223.635, 2140.802, 39.6117, 2900, False)

:FINALEC_55763
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_55794
wait 0
gosub @FINALEC_57084
goto @FINALEC_55763

:FINALEC_55794
Camera.SetVectorMove(2222.665, 2140.801, 39.8525, 2244.471, 2140.844, 37.0436, 2900, False)
Camera.SetVectorTrack(2223.635, 2140.802, 39.6117, 2245.452, 2140.845, 36.8518, 2900, False)

:FINALEC_55868
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_55899
wait 0
gosub @FINALEC_57084
goto @FINALEC_55868

:FINALEC_55899
Camera.SetVectorMove(2244.471, 2140.844, 37.0436, 2266.387, 2140.886, 35.2987, 2900, False)
Camera.SetVectorTrack(2245.452, 2140.845, 36.8518, 2267.378, 2140.888, 35.1659, 2900, False)

:FINALEC_55973
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_56004
wait 0
gosub @FINALEC_57084
goto @FINALEC_55973

:FINALEC_56004
Camera.SetVectorMove(2266.387, 2140.886, 35.2987, 2287.867, 2140.928, 34.9542, 2900, False)
Camera.SetVectorTrack(2267.378, 2140.888, 35.1659, 2288.864, 2140.93, 34.8693, 2900, False)

:FINALEC_56078
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_56109
wait 0
gosub @FINALEC_57084
goto @FINALEC_56078

:FINALEC_56109
Camera.SetVectorMove(2287.867, 2140.928, 34.9542, 2310.356, 2140.972, 35.284, 2900, False)
Camera.SetVectorTrack(2288.864, 2140.93, 34.8693, 2311.353, 2140.974, 35.1991, 2900, False)

:FINALEC_56183
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_56214
wait 0
gosub @FINALEC_57084
goto @FINALEC_56183

:FINALEC_56214
Camera.SetVectorMove(2310.356, 2140.972, 35.284, 2332.845, 2141.016, 35.6137, 2900, False)
Camera.SetVectorTrack(2311.353, 2140.974, 35.1991, 2333.842, 2141.018, 35.5288, 2900, False)

:FINALEC_56288
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_56319
wait 0
gosub @FINALEC_57084
goto @FINALEC_56288

:FINALEC_56319
Audio.SetMusicDoesFade(True)
Camera.SetVectorMove(2332.845, 2141.016, 35.6137, 2354.335, 2141.058, 35.9288, 2900, False)
Camera.SetVectorTrack(2333.842, 2141.018, 35.5288, 2355.331, 2141.06, 35.8439, 2900, False)

:FINALEC_56397
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_56428
wait 0
gosub @FINALEC_57084
goto @FINALEC_56397

:FINALEC_56428
Camera.DoFade(4000, Fade.Out)
Camera.SetVectorMove(2354.335, 2141.058, 35.9288, 2376.824, 2141.102, 36.2586, 2900, False)
Camera.SetVectorTrack(2355.331, 2141.06, 35.8439, 2377.82, 2141.104, 36.1737, 2900, False)

:FINALEC_56509
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_56540
wait 0
gosub @FINALEC_57084
goto @FINALEC_56509

:FINALEC_56540
Camera.SetVectorMove(2376.824, 2141.102, 36.2586, 2399.813, 2141.147, 36.5957, 2900, False)
Camera.SetVectorTrack(2377.82, 2141.104, 36.1737, 2400.809, 2141.149, 36.5108, 2900, False)

:FINALEC_56614
if 
  Camera.IsVectorMoveRunning
goto_if_false @FINALEC_56645
wait 0
gosub @FINALEC_57084
goto @FINALEC_56614

:FINALEC_56645
297@ = 1

:FINALEC_56652
skip_cutscene_end 
if 
  297@ == 0
goto_if_false @FINALEC_56674
Credits.Stop

:FINALEC_56674
Audio.SetMusicDoesFade(True)
Camera.DoFade(0, Fade.Out)

:FINALEC_56684
if 
  Camera.GetFadingStatus
goto_if_false @FINALEC_56708
wait 0
goto @FINALEC_56684

:FINALEC_56708
Hud.SwitchWidescreen(False)
Weather.Release
Weather.ForceNow(WeatherType.SunnySmogLa)
Audio.StopBeatTrack
Char.FreezePosition($scplayer, False)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, 2494.483, -1684.639, 12.51)
Char.SetHeading($scplayer, 3.546)
Camera.ResetNewScriptables
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Camera.SetDarknessEffect(False, -1)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)

:FINALEC_56788
if 
  not Credits.AreFinished
goto_if_false @FINALEC_56812
wait 0
goto @FINALEC_56788

:FINALEC_56812
Audio.StopBeatTrack
Credits.Stop
Streaming.LoadSceneInDirection(2495.111, -1687.04, 12.55, 0.0)
wait 500
Char.GiveWeapon($scplayer, WeaponType.MicroUzi, 300)
Camera.DoFade(3500, Fade.In)

:FINALEC_56860
if 
  Camera.GetFadingStatus
goto_if_false @FINALEC_56884
wait 0
goto @FINALEC_56860

:FINALEC_56884
Player.ClearWantedLevel($player1)
Player.SetControl($player1, True)
Char.RemoveWeapon($scplayer, WeaponType.MicroUzi)
Char.GiveWeapon($scplayer, WeaponType.MicroUzi, 120)
goto @FINALEC_57363
288@ = 11

:FINALEC_56926
goto @FINALEC_1815

:FINALEC_56933
if 
  204@ == 0
goto_if_false @FINALEC_56973
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 187@)
set_lvar_text_label 185@s = 188@s
204@ = 1

:FINALEC_56973
return 

:FINALEC_56975
if 
  204@ == 1
goto_if_false @FINALEC_57029
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @FINALEC_57029
Text.PrintNow(185@s, 4000, 1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
204@ = 2

:FINALEC_57029
if 
  204@ == 2
goto_if_false @FINALEC_57082
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @FINALEC_57082
203@ += 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearPrints
204@ = 0

:FINALEC_57082
return 

:FINALEC_57084
$player_x, $player_y, $player_z = Camera.GetActiveCoordinates()
$player_z += 1.5
Char.SetCoordinates($scplayer, $player_x, $player_y, $player_z)
return 

:FINALEC_57121
184@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, 107@)
Sequence.Close(184@)
Char.PerformSequence(102@, 184@)
Sequence.Clear(184@)
return 

:FINALEC_57159
98@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.ToggleDuck(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(98@)
Char.PerformSequence(102@, 98@)
Sequence.Clear(98@)
return 

:FINALEC_57203
99@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.KillCharOnFoot(-1, $scplayer)
Sequence.Close(99@)
Char.PerformSequence(102@, 99@)
Sequence.Clear(99@)
return 

:FINALEC_57241
Text.ClearPrints
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
if 
  201@ == 1
goto_if_false @FINALEC_57293
Text.PrintNow('RM4_46', 5000, 1)

:FINALEC_57293
if 
  198@ == 7
goto_if_false @FINALEC_57327
Text.PrintNow('RM4_45', 7000, 1)

:FINALEC_57327
if 
  202@ == 1
goto_if_false @FINALEC_57361
Text.PrintNow('RM4_50', 5000, 1)

:FINALEC_57361
return 

:FINALEC_57363
Player.ClearWantedLevel($player1)
Stat.RegisterMissionPassed('RIOT_4')
Stat.PlayerMadeProgress(1)
Stat.SetInt(StatId.CitiesPassed, 4)
Blip.Remove($mansion_contact_blip)
Blip.Remove($sweet_contact_blip)
$flag_riot_mission_counter += 1
Text.PrintWithNumberBig('M_PASSR', 150, 5000, TextStyle.Middle)
Audio.PlayMissionPassedTune(1)
Stat.AwardPlayerMissionRespect(150)
return 

:FINALEC_57437
World.SetRailtrackResistanceMult(-1.0)
Hud.ClearCounter($fgripbardisplay_fc)
Hud.ClearCounter($health_fc)
Pad.SetPlayerEnterCarButton($player1, True)
Blip.Remove(115@)
Blip.Remove(238@)
Blip.Remove(239@)
Blip.Remove(240@)
Blip.Remove(241@)
Blip.Remove(242@)
Blip.Remove(243@)
Blip.Remove(244@)
Blip.Remove(245@)
Blip.Remove(247@)
Blip.Remove(248@)
Blip.Remove(278@)
Blip.Remove(279@)
Particle.Kill(280@)
Particle.Kill(281@)
Particle.Kill(282@)
Particle.Kill(283@)
Particle.Kill(284@)
Particle.Kill(285@)
Particle.Kill(286@)
Char.RemoveElegantly($sweet)
Char.RemoveElegantly(49@)
Char.RemoveElegantly(158@)
Char.RemoveElegantly(159@)
World.RemoveAllScriptFires
Game.SetWantedMultiplier(1.0)
Game.SetMaxWantedLevel(6)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Streaming.MarkModelAsNoLongerNeeded(538)
Streaming.MarkModelAsNoLongerNeeded(544)
Streaming.MarkModelAsNoLongerNeeded(280)
Streaming.MarkModelAsNoLongerNeeded(492)
Streaming.MarkModelAsNoLongerNeeded(533)
Streaming.RemoveAnimation("FINALE")
Streaming.RemoveAnimation("FINALE2")
Streaming.MarkModelAsNoLongerNeeded(109)
Streaming.MarkModelAsNoLongerNeeded(102)
Streaming.MarkModelAsNoLongerNeeded(#LA_FUCKCAR1)
Streaming.MarkModelAsNoLongerNeeded(#LA_FUCKCAR2)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(596)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.MarkModelAsNoLongerNeeded(344)
Streaming.MarkModelAsNoLongerNeeded(110)
Streaming.MarkModelAsNoLongerNeeded(576)
Streaming.UnloadSpecialCharacter(1)
Streaming.UnloadSpecialCharacter(2)
if 
  not Car.IsDead(153@)
goto_if_false @FINALEC_57740
Car.SetProofs(153@, False, False, False, False, False)

:FINALEC_57740
if 
  not Car.IsDead(152@)
goto_if_false @FINALEC_57778
Car.LockDoors(152@, CarLock.Unlocked)
Car.SetProofs(152@, False, False, False, False, False)

:FINALEC_57778
if 
  Player.IsPlaying($player1)
goto_if_false @FINALEC_57816
Char.ShutUp($scplayer, False)
Char.SetProofs($scplayer, False, False, False, False, False)

:FINALEC_57816
Weather.Release
Game.SwitchRandomTrains(True)
Game.SwitchEmergencyServices(True)
Game.SetWantedMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
$onmission = 0
Mission.Finish
return 

//-------------Mission 113---------------
// Originally: Shooting range

:SHRANGE
script_name 'SHRANGE'
set_deatharrest_state 0
$onmission = 1
$flag_shooting_range_mission = 1
$rioters_fcflag = 286.1649
$8020 = -30.9591
$Schallenge_X = 301.8877
$Schallenge_Y = -77.2586
$8018 = 306.4883
$8022 = -141.9047
$8019 = 307.0919
$8023 = -159.2197
$8056[0] = -321
$8056[1] = -322
$8056[2] = -323
$8056[3] = -324
$8056[4] = -325
$8056[5] = -326
$8056[6] = -327
$8056[7] = -328
$8037[1] = 0.275
$8045[1] = -3.502
$8037[2] = -0.214
$8045[2] = -3.479
$8037[3] = 0.245
$8045[3] = -2.791
$8037[4] = -0.168
$8045[4] = -2.806
$8037[5] = 0.079
$8045[5] = -2.123
$8037[6] = -0.589
$8045[6] = -2.317
$8037[7] = -0.357
$8045[7] = -1.855
35@ = 290.6264
39@ = -24.5548
43@ = 1000.523
47@ = 3.0583
51@ = 6.1726
55@ = -13.6242
59@ = 0.0
36@ = 303.0788
40@ = -61.2269
44@ = 1000.523
48@ = 2.9464
52@ = 6.0799
56@ = -13.6242
60@ = 270.0
37@ = 300.1018
41@ = -137.0399
45@ = 1003.055
49@ = 3.1341
53@ = 6.1264
57@ = -13.6242
61@ = 90.0
38@ = 299.4518
42@ = -166.3517
46@ = 998.6105
50@ = 3.0055
54@ = 4.6018
58@ = -13.6242
62@ = 90.0
$sr_i = 0

:SHRANGE_600
if 
  3 > $sr_i
goto_if_false @SHRANGE_723
$8088($sr_i,3i) = 1
$sr_yoffset($sr_i,3i) = 0
$8027($sr_i,4i) = 0
$8024($sr_i,3i) = 0
$8031($sr_i,3i) = 0
$8053($sr_i,3f) = 90.0
$8120($sr_i,3i) = 0
$SR_mission_state($sr_i,3i) = 0
$sr_i += 1
goto @SHRANGE_600

:SHRANGE_723
$sr_Dec = 0
$sr_area = 0
$SR_flag = 0
$Return_cities_passed = Stat.GetInt(StatId.CitiesPassed)
if 
  $Return_cities_passed == 0
goto_if_false @SHRANGE_777
$player_has_fast_reload = 2

:SHRANGE_777
if 
  $Return_cities_passed == 1
goto_if_false @SHRANGE_827
if 
  $player_has_fast_reload == 2
goto_if_false @SHRANGE_820
$range_weapons_open = 1

:SHRANGE_820
$player_has_fast_reload = 3

:SHRANGE_827
if 
  $Return_cities_passed > 1
goto_if_false @SHRANGE_877
if 
  4 > $player_has_fast_reload
goto_if_false @SHRANGE_870
$range_weapons_open = 1

:SHRANGE_870
$player_has_fast_reload = 4

:SHRANGE_877
$8068 = DecisionMakerChar.Copy(65538)
DecisionMakerChar.ClearEventResponse($8068, 15)
DecisionMakerChar.AddEventResponse($8068, 15, 300, 100.0, 100.0, 100.0, 100.0, True, True)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1801)
Streaming.RequestModel(#TARGET_HEAD)
Streaming.RequestModel(#TARGET_LARM)
Streaming.RequestModel(#TARGET_RARM)
Streaming.RequestModel(#TARGET_LLEG)
Streaming.RequestModel(#TARGET_RLEG)
Streaming.RequestModel(#TARGET_RTORSO)
Streaming.RequestModel(#TARGET_LTORSO)
Streaming.RequestModel(#TARGET_FRAME)
Streaming.RequestModel(346)
Streaming.RequestModel(352)
Streaming.RequestModel(349)
Streaming.RequestModel(355)

:SHRANGE_995
if or
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(349)
  not Streaming.HasModelLoaded(355)
goto_if_false @SHRANGE_1037
wait 0
goto @SHRANGE_995

:SHRANGE_1037
if or
  not Streaming.HasModelLoaded(#TARGET_HEAD)
  not Streaming.HasModelLoaded(#TARGET_LARM)
  not Streaming.HasModelLoaded(#TARGET_RARM)
  not Streaming.HasModelLoaded(#TARGET_LLEG)
  not Streaming.HasModelLoaded(#TARGET_RLEG)
goto_if_false @SHRANGE_1084
wait 0
goto @SHRANGE_1037

:SHRANGE_1084
if or
  not Streaming.HasModelLoaded(#TARGET_RTORSO)
  not Streaming.HasModelLoaded(#TARGET_LTORSO)
  not Streaming.HasModelLoaded(#TARGET_FRAME)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @SHRANGE_1125
wait 0
goto @SHRANGE_1084

:SHRANGE_1125
if 
  $flag_shooting_range_mission == 47
goto_if_false @SHRANGE_1201
$8096[0] = Object.CreateNoOffset($8056($sr_i,8i), 293.757, 1.0, 1000.516)
$sr_obj_number[0] = Char.CreateRandom($x, $y, $z)
$8064 = Object.Create(338, $x, $y, $z)

:SHRANGE_1201
$8073 = Streaming.GetAreaVisible()

:SHRANGE_1206
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @SHRANGE_1298
$sr_i = 9

:SHRANGE_1228
if 
  16 > $sr_i
goto_if_false @SHRANGE_1291
if 
  Object.DoesExist($8096($sr_i,24i))
goto_if_false @SHRANGE_1277
Object.Break($8096($sr_i,24i), 1)

:SHRANGE_1277
$sr_i += 1
goto @SHRANGE_1228

:SHRANGE_1291
$sr_Score = 20

:SHRANGE_1298
wait 0
$sr_i = Streaming.GetAreaVisible()
if 
  not is_int_var_equal_to_int_var $sr_i == $8073
goto_if_false @SHRANGE_1333
goto @SHRANGE_16741

:SHRANGE_1333
if 
  Player.IsPlaying($player1)
goto_if_false @SHRANGE_1370
gosub @SHRANGE_13202
gosub @SHRANGE_10813
gosub @SHRANGE_1379

:SHRANGE_1370
goto @SHRANGE_1206
terminate_this_script 

:SHRANGE_1379
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @SHRANGE_1444
if 
  $sr_Dec <> 0
goto_if_false @SHRANGE_1444
Text.ClearPrints
34@ = 1
$sr_Dec = 20
$sr_area = 1
$SR_flag = 0

:SHRANGE_1444
switch_start $sr_Dec {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SHRANGE_10811 {caseNum1} 0 {caseLabel1} @SHRANGE_1507 {caseNum2} 1 {caseLabel2} @SHRANGE_1806 {caseNum3} 2 {caseLabel3} @SHRANGE_5083 {caseNum4} 3 {caseLabel4} @SHRANGE_5296 {caseNum5} 4 {caseLabel5} @SHRANGE_6513 {caseNum6} 5 {caseLabel6} @SHRANGE_8127 {caseNum7} 20 {caseLabel7} @SHRANGE_9940

:SHRANGE_1507
if 
  $SR_range_id == 0
goto_if_false @SHRANGE_1580
if 
  Char.LocateAnyMeans3D($scplayer, 286.1649, -30.9591, 1000.516, 2.0, 2.0, 2.0, True)
goto_if_false @SHRANGE_1580
$sr_Dec = 1

:SHRANGE_1580
if 
  $SR_range_id == 1
goto_if_false @SHRANGE_1653
if 
  Char.LocateAnyMeans3D($scplayer, 301.8877, -77.2586, 1000.523, 2.0, 2.0, 2.0, True)
goto_if_false @SHRANGE_1653
$sr_Dec = 1

:SHRANGE_1653
if 
  $SR_range_id == 2
goto_if_false @SHRANGE_1726
if 
  Char.LocateAnyMeans3D($scplayer, 306.4883, -141.9047, 1003.055, 2.0, 2.0, 2.0, True)
goto_if_false @SHRANGE_1726
$sr_Dec = 1

:SHRANGE_1726
if 
  $SR_range_id == 3
goto_if_false @SHRANGE_1799
if 
  Char.LocateAnyMeans3D($scplayer, 307.0919, -159.2197, 998.601, 2.0, 2.0, 2.0, True)
goto_if_false @SHRANGE_1799
$sr_Dec = 1

:SHRANGE_1799
goto @SHRANGE_10811

:SHRANGE_1806
if 
  $tell_player_to_kill_valet > 0
goto_if_false @SHRANGE_1865
if and
  7 > $sr_area
  $sr_area > 1
goto_if_false @SHRANGE_1865
$sr_area = 7
$SR_flag = 0
Text.ClearPrints

:SHRANGE_1865
if 
  $sr_area == 0
goto_if_false @SHRANGE_2013
34@ = 0
Pad.SetPlayerCycleWeaponButton($player1, False)
$8134, $8130, $8138 = Char.GetWeaponInSlot($scplayer, WeaponSlot.Pistols)
$WeaponType, $ammo, $ModelForWeaponType = Char.GetWeaponInSlot($scplayer, WeaponSlot.Shotguns)
$8136, $8132, $8140 = Char.GetWeaponInSlot($scplayer, WeaponSlot.SMG)
$8137, $8133, $8141 = Char.GetWeaponInSlot($scplayer, WeaponSlot.Assault)
$8123 = 0
Player.SetControl($player1, False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)
$sr_area = 1
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1500

:SHRANGE_2013
if 
  $sr_area == 1
goto_if_false @SHRANGE_2247
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_2247
Hud.SwitchWidescreen(True)
Text.ClearPrints
Text.Print('ANR_1', 4000, 1)
Text.Print('ANR_2', 4000, 1)
Text.Print('ANR_3', 4000, 1)
$sr_float2 = -0.83
$sr_float3 = 0.47
$z = 1.7
gosub @SHRANGE_16573
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$sr_float2 = 0.17
$sr_float3 = 0.63
$z = 1.7
gosub @SHRANGE_16573
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)
$sr_area = 2
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 4000

:SHRANGE_2247
if 
  $sr_area == 2
goto_if_false @SHRANGE_2441
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_2441
$sr_yoffset[1] = 3
$8088[1] = 0
$sr_float2 = -0.63
$sr_float3 = -3.47
$z = 0.2
gosub @SHRANGE_16573
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$sr_float2 = 0.4
$sr_float3 = -2.5
$z = 0.5
gosub @SHRANGE_16573
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)
$sr_area = 3
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 2000

:SHRANGE_2441
if 
  $sr_area == 3
goto_if_false @SHRANGE_2570
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_2570
Char.GiveWeapon($scplayer, WeaponType.Pistol, 99999)
$sr_float2 = 0.0
add_float_lvar_to_float_var $sr_float2 += 47@($SR_range_id,4f)
$sr_float3 = -1.0
gosub @SHRANGE_16573
Task.GoStraightToCoord($scplayer, $x, $y, $z, MoveState.Walk, -2)
$sr_area = 4
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 3000

:SHRANGE_2570
if 
  $sr_area == 4
goto_if_false @SHRANGE_3014
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_3014
$sr_yoffset[1] = 4
set_var_float_to_lvar_float $sr_direction = 59@($SR_range_id,4f)
$sr_direction += 90.0
Char.SetHeading($scplayer, $sr_direction)
set_var_float_to_lvar_float $sr_float2 = 47@($SR_range_id,4f)
$sr_float2 -= 0.8201
$sr_float3 = -0.4944
$z = 2.1312
gosub @SHRANGE_16573
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
set_var_float_to_lvar_float $sr_float2 = 47@($SR_range_id,4f)
$sr_float2 -= 0.1125
$sr_float3 = -0.0237
$z = 1.6042
gosub @SHRANGE_16573
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
set_var_float_to_lvar_float $sr_float2 = 47@($SR_range_id,4f)
$sr_float3 = -2.0
$z = 0.0
gosub @SHRANGE_16573
Char.SetCoordinatesDontWarpGang($scplayer, $x, $y, $z)
set_var_float_to_lvar_float $sr_float2 = 47@($SR_range_id,4f)
$sr_float3 = 0.0
$z = 0.0
gosub @SHRANGE_16573
Char.SetHeading($scplayer, 59@($SR_range_id,4f))
Task.GoStraightToCoord($scplayer, $x, $y, $z, MoveState.Walk, -2)
if 
  $8123 == 0
goto_if_false @SHRANGE_2935
$8027[0] = 1
$8027[2] = 1

:SHRANGE_2935
$sr_yoffset[0] = 1
$sr_yoffset[2] = 1
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0
$8024[0] = 1
$8024[1] = 1
$8024[2] = 1
$sr_area = 5
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 3000

:SHRANGE_3014
if 
  $sr_area == 5
goto_if_false @SHRANGE_3205
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_3205
Text.ClearPrints
Text.PrintBig('ANR_6', 2000, TextStyle.Middle)
$sr_float2 = 2.1566
$sr_float3 = 2.4369
$z = 1.4565
gosub @SHRANGE_16573
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$sr_float2 = 1.9771
$sr_float3 = 3.4129
$z = 1.3326
gosub @SHRANGE_16573
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
$sr_area = 6
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 3000

:SHRANGE_3205
if 
  $sr_area == 6
goto_if_false @SHRANGE_3444
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_3444
if 
  not Char.IsDead($sr_obj_number[0])
goto_if_false @SHRANGE_3265
Char.SetAccuracy($sr_obj_number[0], 100)

:SHRANGE_3265
Text.ClearThisBigPrint('ANR_6')
Text.Print('ANR_7', 4000, 1)
Text.Print('ANR_10', 4000, 1)
$sr_float2 = 0.7525
$sr_float3 = -0.3628
$z = 1.6174
gosub @SHRANGE_16573
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$sr_float2 = 0.1734
$sr_float3 = 0.446
$z = 1.5146
gosub @SHRANGE_16573
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
$sr_area = 7
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 8000

:SHRANGE_3444
if 
  $sr_area == 7
goto_if_false @SHRANGE_3559
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_3559
if 
  not Char.IsDead($scplayer)
goto_if_false @SHRANGE_3497

:SHRANGE_3497
if 
  $tell_player_to_kill_valet == 0
goto_if_false @SHRANGE_3529
$tell_player_to_kill_valet = 1
goto @SHRANGE_3545

:SHRANGE_3529
Text.PrintBig('ANR_6', 2000, TextStyle.Middle)

:SHRANGE_3545
Camera.DoFade(1000, Fade.Out)
$sr_area = 8

:SHRANGE_3559
if 
  $sr_area == 8
goto_if_false @SHRANGE_3859
if 
  not Camera.GetFadingStatus
goto_if_false @SHRANGE_3859
set_var_float_to_lvar_float $sr_float2 = 47@($SR_range_id,4f)
$sr_float3 = 0.0
$z = 0.0
gosub @SHRANGE_16573
if 
  not Object.DoesExist($8064)
goto_if_false @SHRANGE_3681
$8064 = Object.Create(338, $x, $y, $z)
Object.SetVisible($8064, False)
Char.SetHeading($scplayer, 59@($SR_range_id,4f))

:SHRANGE_3681
Char.ClearTasksImmediately($scplayer)
Char.AttachToObject($scplayer, $8064, 0.0, 0.0, 1.0, 0, 90.0, WeaponType.Pistol)
Pad.SetPlayerDuckButton($player1, False)
if 
  $8123 == 0
goto_if_false @SHRANGE_3755
Char.GiveWeapon($scplayer, WeaponType.Pistol, 99999)

:SHRANGE_3755
$sr_yoffset[1] = 4
$8088[1] = 0
$sr_area = 9
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 800
if 
  $8123 == 0
goto_if_false @SHRANGE_3824
$8027[0] = 1
$8027[2] = 1

:SHRANGE_3824
$sr_yoffset[0] = 1
$sr_yoffset[2] = 1
$8031[0] = 4
$8031[1] = 4
$8031[2] = 4

:SHRANGE_3859
if 
  $sr_area == 9
goto_if_false @SHRANGE_4038
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_4038
Camera.DoFade(1000, Fade.In)
Char.DetachFromCar($scplayer)
Char.AttachToObject($scplayer, $8064, 0.0, 0.0, 1.0, 0, 90.0, WeaponType.Pistol)
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0
$8024[0] = 1
$8024[1] = 1
$8024[2] = 1
if 
  $range_weapons_open == 1
goto_if_false @SHRANGE_4031
Text.PrintHelp('ANR_56')
$range_weapons_open = 0

:SHRANGE_4031
$sr_area = 10

:SHRANGE_4038
if 
  $sr_area == 10
goto_if_false @SHRANGE_4121
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_4121
Text.PrintBig('RACE2', 1000, TextStyle.MiddleSmaller)
$sr_area = 11
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000
Player.SetControl($player1, True)

:SHRANGE_4121
if 
  $sr_area == 11
goto_if_false @SHRANGE_4197
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_4197
Text.PrintBig('RACE3', 1000, TextStyle.MiddleSmaller)
$sr_area = 12
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000

:SHRANGE_4197
if 
  $sr_area == 12
goto_if_false @SHRANGE_4273
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_4273
Text.PrintBig('RACE4', 1000, TextStyle.MiddleSmaller)
$sr_area = 13
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000

:SHRANGE_4273
if 
  $sr_area == 13
goto_if_false @SHRANGE_4356
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_4356
Text.PrintBig('RACE5', 1000, TextStyle.MiddleSmaller)
$sr_area = 14
if 
  not Char.IsDead($sr_obj_number[0])
goto_if_false @SHRANGE_4356
Char.SetAccuracy($sr_obj_number[0], 80)

:SHRANGE_4356
if 
  $sr_area == 14
goto_if_false @SHRANGE_4388
$sr_Dec = 2
$sr_area = 0

:SHRANGE_4388
if 
  $sr_area == 16
goto_if_false @SHRANGE_4607
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_4607
if 
  not Char.IsDead($scplayer)
goto_if_false @SHRANGE_4577
if 
  not Object.DoesExist($8064)
goto_if_false @SHRANGE_4577
set_var_float_to_lvar_float $sr_float2 = 47@($SR_range_id,4f)
$sr_float3 = 0.0
$z = 0.0
gosub @SHRANGE_16573
$8064 = Object.Create(338, $x, $y, $z)
Object.SetVisible($8064, False)
Char.SetHeading($scplayer, 59@($SR_range_id,4f))
Char.AttachToObject($scplayer, $8064, 0.0, 0.0, 1.0, 0, 90.0, WeaponType.Pistol)
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Pad.SetPlayerDuckButton($player1, False)

:SHRANGE_4577
Camera.DoFade(1000, Fade.Out)
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1500
$sr_area = 17

:SHRANGE_4607
if 
  $sr_area == 17
goto_if_false @SHRANGE_4990
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_4990
if 
  $8123 == 3
goto_if_false @SHRANGE_4711
Char.GiveWeapon($scplayer, WeaponType.MicroUzi, 99999)
Char.DetachFromCar($scplayer)
Char.AttachToObject($scplayer, $8064, 0.0, 0.0, 1.0, 0, 90.0, WeaponType.MicroUzi)

:SHRANGE_4711
if 
  $8123 == 6
goto_if_false @SHRANGE_4778
Char.GiveWeapon($scplayer, WeaponType.Shotgun, 99999)
Char.DetachFromCar($scplayer)
Char.AttachToObject($scplayer, $8064, 0.0, 0.0, 1.0, 0, 90.0, WeaponType.Shotgun)

:SHRANGE_4778
if 
  $8123 == 9
goto_if_false @SHRANGE_4845
Char.GiveWeapon($scplayer, WeaponType.Ak47, 99999)
Char.DetachFromCar($scplayer)
Char.AttachToObject($scplayer, $8064, 0.0, 0.0, 1.0, 0, 90.0, WeaponType.Ak47)

:SHRANGE_4845
Camera.DoFade(1000, Fade.In)
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
if 
  $8123 == 3
goto_if_false @SHRANGE_4899
Text.PrintBig('ANR_47', 3000, TextStyle.Middle)

:SHRANGE_4899
if 
  $8123 == 6
goto_if_false @SHRANGE_4933
Text.PrintBig('ANR_23', 3000, TextStyle.Middle)

:SHRANGE_4933
if 
  $8123 == 9
goto_if_false @SHRANGE_4967
Text.PrintBig('ANR_50', 3000, TextStyle.Middle)

:SHRANGE_4967
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 4000
$sr_area = 18

:SHRANGE_4990
if 
  $sr_area == 18
goto_if_false @SHRANGE_5076
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_5076
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0
$8024[0] = 1
$8024[1] = 1
$8024[2] = 1
$sr_area = 10

:SHRANGE_5076
goto @SHRANGE_10811

:SHRANGE_5083
if 
  $sr_area == 0
goto_if_false @SHRANGE_5154
if 
  not Char.IsDead($sr_obj_number[0])
goto_if_false @SHRANGE_5124
Char.SetAccuracy($sr_obj_number[0], 87)

:SHRANGE_5124
if 
  not Char.IsDead($sr_obj_number[2])
goto_if_false @SHRANGE_5147
Char.SetAccuracy($sr_obj_number[2], 87)

:SHRANGE_5147
$sr_area = 1

:SHRANGE_5154
if 
  $sr_area == 1
goto_if_false @SHRANGE_5289
if and
  $8031[0] == 3
  $8024[0] == 3
goto_if_false @SHRANGE_5211
$sr_Dec = 20
$sr_area = 0

:SHRANGE_5211
if and
  $8031[2] == 3
  $8024[2] == 3
goto_if_false @SHRANGE_5250
$sr_Dec = 20
$sr_area = 0

:SHRANGE_5250
if and
  $8031[1] == 3
  $8024[1] == 3
goto_if_false @SHRANGE_5289
$sr_Dec = 3
$sr_area = 0

:SHRANGE_5289
goto @SHRANGE_10811

:SHRANGE_5296
if 
  $sr_area == 0
goto_if_false @SHRANGE_5915
if or
  $8123 == 0
  $8123 == 3
  $8123 == 6
  $8123 == 9
goto_if_false @SHRANGE_5369
Text.PrintBig('ANR_41', 3000, TextStyle.Middle)

:SHRANGE_5369
if or
  $8123 == 1
  $8123 == 4
  $8123 == 7
  $8123 == 10
goto_if_false @SHRANGE_5435
Text.ClearThisBigPrint('ANR_41')
Text.PrintBig('ANR_42', 3000, TextStyle.Middle)

:SHRANGE_5435
if or
  $8123 == 2
  $8123 == 5
  $8123 == 8
goto_if_false @SHRANGE_5515
Text.ClearThisBigPrint('ANR_42')
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 4000
$8031[0] = 5
$8031[1] = 5
$8031[2] = 5

:SHRANGE_5515
if 
  $8123 == 11
goto_if_false @SHRANGE_5586
Text.PrintBig('ANR_45', 3000, TextStyle.Middle)
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 5500
$8031[0] = 5
$8031[1] = 5
$8031[2] = 5

:SHRANGE_5586
if 
  is_int_var_equal_to_int_var $8123 == $SR_skill_award_given
goto_if_false @SHRANGE_5908
if or
  $8123 == 0
  $8123 == 1
goto_if_false @SHRANGE_5639
Stat.IncrementFloat(StatId.WeapontypePistolSkill, 50.0)

:SHRANGE_5639
if or
  $8123 == 3
  $8123 == 4
goto_if_false @SHRANGE_5673
Stat.IncrementFloat(StatId.WeapontypeMicroUziSkill, 50.0)

:SHRANGE_5673
if or
  $8123 == 6
  $8123 == 7
goto_if_false @SHRANGE_5707
Stat.IncrementFloat(StatId.WeapontypeShotgunSkill, 50.0)

:SHRANGE_5707
if or
  $8123 == 9
  $8123 == 10
goto_if_false @SHRANGE_5741
Stat.IncrementFloat(StatId.WeapontypeAk47Skill, 50.0)

:SHRANGE_5741
if 
  $8123 == 2
goto_if_false @SHRANGE_5772
Stat.IncrementFloat(StatId.WeapontypePistolSkill, 100.0)
Stat.PlayerMadeProgress(1)

:SHRANGE_5772
if 
  $8123 == 5
goto_if_false @SHRANGE_5803
Stat.IncrementFloat(StatId.WeapontypeMicroUziSkill, 100.0)
Stat.PlayerMadeProgress(1)

:SHRANGE_5803
if 
  $8123 == 8
goto_if_false @SHRANGE_5834
Stat.IncrementFloat(StatId.WeapontypeShotgunSkill, 100.0)
Stat.PlayerMadeProgress(1)

:SHRANGE_5834
if 
  $8123 == 11
goto_if_false @SHRANGE_5893
Stat.IncrementFloat(StatId.WeapontypeAk47Skill, 100.0)
Stat.SetFloat(StatId.WeapontypePistolSkill, 1000.0)
Player.AddScore($player1, 10000)
Stat.PlayerMadeProgress(1)
Audio.PlayMissionPassedTune(2)
$valet_cash_pickup = 1

:SHRANGE_5893
$SR_skill_award_given += 1
Stat.SetInt(StatId.ShootingRangeScore, $SR_skill_award_given)

:SHRANGE_5908
$sr_area = 1

:SHRANGE_5915
if 
  $sr_area == 1
goto_if_false @SHRANGE_6506
if 
  $8123 == 0
goto_if_false @SHRANGE_5965
$sr_Dec = 4
$sr_area = 0

:SHRANGE_5965
if or
  $8123 == 3
  $8123 == 6
  $8123 == 9
goto_if_false @SHRANGE_6011
$sr_Dec = 4
$sr_area = 10

:SHRANGE_6011
if 
  $8123 == 1
goto_if_false @SHRANGE_6043
$sr_Dec = 5
$sr_area = 0

:SHRANGE_6043
if or
  $8123 == 4
  $8123 == 7
  $8123 == 10
goto_if_false @SHRANGE_6089
$sr_Dec = 5
$sr_area = 10

:SHRANGE_6089
if or
  $8123 == 2
  $8123 == 5
  $8123 == 8
goto_if_false @SHRANGE_6135
$sr_Dec = 1
$sr_area = 16

:SHRANGE_6135
if 
  $8123 == 2
goto_if_false @SHRANGE_6197
$8027[0] = 2
$8027[2] = 2
$sr_yoffset[0] = 1
$sr_yoffset[2] = 1
Text.PrintBig('ANR_29', 3000, TextStyle.Middle)

:SHRANGE_6197
if 
  $8123 == 5
goto_if_false @SHRANGE_6259
$8027[0] = 3
$8027[2] = 3
$sr_yoffset[0] = 1
$sr_yoffset[2] = 1
Text.PrintBig('ANR_53', 3000, TextStyle.Middle)

:SHRANGE_6259
if 
  $8123 == 8
goto_if_false @SHRANGE_6321
$8027[0] = 4
$8027[2] = 4
$sr_yoffset[0] = 1
$sr_yoffset[2] = 1
Text.PrintBig('ANR_31', 3000, TextStyle.Middle)

:SHRANGE_6321
if 
  $8123 == 5
goto_if_false @SHRANGE_6394
if 
  2 >= $player_has_fast_reload
goto_if_false @SHRANGE_6378
$sr_Dec = 20
$sr_area = 1
goto @SHRANGE_6394

:SHRANGE_6378
Text.Print('ANR_44', 4000, 1)

:SHRANGE_6394
if 
  $8123 == 8
goto_if_false @SHRANGE_6467
if 
  3 >= $player_has_fast_reload
goto_if_false @SHRANGE_6451
$sr_Dec = 20
$sr_area = 1
goto @SHRANGE_6467

:SHRANGE_6451
Text.Print('ANR_44', 4000, 1)

:SHRANGE_6467
if 
  $8123 == 11
goto_if_false @SHRANGE_6499
$sr_Dec = 20
$sr_area = 1

:SHRANGE_6499
$8123 += 1

:SHRANGE_6506
goto @SHRANGE_10811

:SHRANGE_6513
if 
  $sr_area == 0
goto_if_false @SHRANGE_6617
$SR_mission_state[0] = 0
$SR_mission_state[1] = 0
$SR_mission_state[2] = 0
$8031[0] = 5
$8031[1] = 5
$8031[2] = 5
$8024[0] = 4
$8024[1] = 4
$8024[2] = 4
$sr_area = 1
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 3000

:SHRANGE_6617
if 
  $sr_area == 1
goto_if_false @SHRANGE_6692
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_6692
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)
$sr_area = 2
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1500

:SHRANGE_6692
if 
  $sr_area == 2
goto_if_false @SHRANGE_7025
if 
  $tell_player_to_kill_valet > 1
goto_if_false @SHRANGE_6829
Text.ClearPrints
if 
  Object.DoesExist($8096[8])
goto_if_false @SHRANGE_6751
Object.Delete($8096[8])

:SHRANGE_6751
Text.ClearThisBigPrint('ANR_18')
Text.ClearThisBigPrint('ANR_19')
$SR_flag = 0
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0
$sr_area = 3
$SR_flag = 0
Camera.DoFade(800, Fade.Out)
goto @SHRANGE_7025

:SHRANGE_6829
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_7025
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Text.ClearThisBigPrint('ANR_41')
Text.PrintBig('ANR_18', 4000, TextStyle.Middle)
Text.Print('ANR_9', 3000, 1)
Text.Print('ANR_10', 3000, 1)
$sr_float2 = -2.0835
$sr_float3 = 6.0428
$z = 0.0387
gosub @SHRANGE_16573
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$sr_area = 3
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0

:SHRANGE_7025
if 
  $sr_area == 3
goto_if_false @SHRANGE_7092
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_7092
Camera.DoFade(1000, Fade.In)
$sr_area = 4
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 6000

:SHRANGE_7092
if 
  $sr_area == 4
goto_if_false @SHRANGE_7404
if 
  $tell_player_to_kill_valet == 1
goto_if_false @SHRANGE_7181
if 
  Object.DoesExist($8096[8])
goto_if_false @SHRANGE_7181
$x, $y, $z = Object.GetCoordinates($8096[8])
$z -= 2.0
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:SHRANGE_7181
if or
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
  $tell_player_to_kill_valet > 1
goto_if_false @SHRANGE_7404
if 
  $tell_player_to_kill_valet == 1
goto_if_false @SHRANGE_7239
$tell_player_to_kill_valet = 2
goto @SHRANGE_7255

:SHRANGE_7239
Text.PrintBig('ANR_18', 2000, TextStyle.Middle)

:SHRANGE_7255
if 
  3 > $tell_player_to_kill_valet
goto_if_false @SHRANGE_7316
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Char.DetachFromCar($scplayer)
Char.AttachToObject($scplayer, $8064, 0.0, 0.0, 1.0, 0, 90.0, WeaponType.Pistol)

:SHRANGE_7316
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0
$SR_mission_state[0] = 0
$SR_mission_state[1] = 0
$SR_mission_state[2] = 0
Text.PrintBig('RACE2', 1000, TextStyle.MiddleSmaller)
$sr_area = 5
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000
Player.SetControl($player1, True)

:SHRANGE_7404
if 
  $sr_area == 5
goto_if_false @SHRANGE_7480
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_7480
Text.PrintBig('RACE3', 1000, TextStyle.MiddleSmaller)
$sr_area = 6
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000

:SHRANGE_7480
if 
  $sr_area == 6
goto_if_false @SHRANGE_7556
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_7556
Text.PrintBig('RACE4', 1000, TextStyle.MiddleSmaller)
$sr_area = 7
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000

:SHRANGE_7556
if 
  $sr_area == 7
goto_if_false @SHRANGE_7616
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_7616
Text.PrintBig('RACE5', 1000, TextStyle.MiddleSmaller)
$sr_area = 8

:SHRANGE_7616
if 
  $sr_area == 8
goto_if_false @SHRANGE_7751
if and
  $8031[0] == 3
  $SR_mission_state[0] == 3
goto_if_false @SHRANGE_7673
$sr_Dec = 20
$sr_area = 0

:SHRANGE_7673
if and
  $8031[2] == 3
  $SR_mission_state[2] == 3
goto_if_false @SHRANGE_7712
$sr_Dec = 20
$sr_area = 0

:SHRANGE_7712
if and
  $8031[1] == 3
  $SR_mission_state[1] == 3
goto_if_false @SHRANGE_7751
$sr_Dec = 3
$sr_area = 0

:SHRANGE_7751
if 
  $sr_area == 10
goto_if_false @SHRANGE_7797
$8031[0] = 5
$8031[1] = 5
$8031[2] = 5
$sr_area = 11

:SHRANGE_7797
if 
  $sr_area == 11
goto_if_false @SHRANGE_7974
if and
  $8031[0] == 99
  $8031[1] == 99
  $8031[2] == 99
goto_if_false @SHRANGE_7974
Text.ClearPrints
if 
  $8123 == 4
goto_if_false @SHRANGE_7883
Text.PrintBig('ANR_48', 3000, TextStyle.Middle)

:SHRANGE_7883
if 
  $8123 == 7
goto_if_false @SHRANGE_7917
Text.PrintBig('ANR_24', 3000, TextStyle.Middle)

:SHRANGE_7917
if 
  $8123 == 10
goto_if_false @SHRANGE_7951
Text.PrintBig('ANR_51', 3000, TextStyle.Middle)

:SHRANGE_7951
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 4000
$sr_area = 12

:SHRANGE_7974
if 
  $sr_area == 12
goto_if_false @SHRANGE_8120
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_8120
$8024[0] = 4
$8024[1] = 4
$8024[2] = 4
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0
$SR_mission_state[0] = 0
$SR_mission_state[1] = 0
$SR_mission_state[2] = 0
Text.PrintBig('RACE2', 1000, TextStyle.MiddleSmaller)
$sr_area = 4
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000
Player.SetControl($player1, True)

:SHRANGE_8120
goto @SHRANGE_10811

:SHRANGE_8127
if 
  $tell_player_to_kill_valet > 2
goto_if_false @SHRANGE_8208
if and
  4 > $sr_area
  $sr_area > 1
goto_if_false @SHRANGE_8208
$SR_flag = 0
Text.ClearPrints
Text.ClearThisBigPrint('ANR_18')
Text.ClearThisBigPrint('ANR_19')
$sr_area = 4

:SHRANGE_8208
if 
  $sr_area == 0
goto_if_false @SHRANGE_8333
$SR_skill_won = 0
$sr_Score = 0
$8126 = 0
$SR_mission_state[0] = 0
$SR_mission_state[1] = 0
$SR_mission_state[2] = 0
$8031[0] = 5
$8031[1] = 5
$8031[2] = 5
$8024[0] = 0
$8024[1] = 5
$8024[2] = 0
$sr_area = 1
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 3000

:SHRANGE_8333
if 
  $sr_area == 1
goto_if_false @SHRANGE_8408
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_8408
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)
$sr_area = 2
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1500

:SHRANGE_8408
if 
  $sr_area == 2
goto_if_false @SHRANGE_8718
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_8718
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Text.ClearThisBigPrint('ANR_41')
Text.PrintBig('ANR_19', 4000, TextStyle.Middle)
Text.Print('ANR_33', 3000, 1)
Text.Print('ANR_34', 3000, 1)
Text.Print('ANR_35', 3000, 1)
Text.Print('ANR_46', 3000, 1)
$sr_float2 = 3.0583
$sr_float3 = 0.6889
$z = 1.2953
gosub @SHRANGE_16573
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$sr_float2 = 2.9703
$sr_float3 = 1.684
$z = 1.2513
gosub @SHRANGE_16573
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
Camera.DoFade(1000, Fade.In)
$sr_area = 3
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 12000
$8031[0] = 5
$8031[1] = 0
$8031[2] = 5

:SHRANGE_8718
if 
  $sr_area == 3
goto_if_false @SHRANGE_8806
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_8806
Camera.DoFade(1000, Fade.Out)
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1500
$sr_area = 4
$SR_skill_won = 0
$sr_Score = 0
$8126 = 0

:SHRANGE_8806
if 
  $sr_area == 4
goto_if_false @SHRANGE_9118
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_9118
if 
  not Camera.GetFadingStatus
goto_if_false @SHRANGE_9118
if 
  $tell_player_to_kill_valet == 2
goto_if_false @SHRANGE_8888
$tell_player_to_kill_valet = 3
goto @SHRANGE_8904

:SHRANGE_8888
Text.PrintBig('ANR_19', 2000, TextStyle.Middle)

:SHRANGE_8904
Hud.DisplayCounterWithString($SR_skill_won, CounterDisplay.Number, 'ANR_37')
Hud.DisplayNthCounterWithString($sr_Score, CounterDisplay.Number, 2, 'ANR_39')
Hud.DisplayNthCounterWithString($8126, CounterDisplay.Number, 3, 'ANR_38')
Camera.DoFade(1000, Fade.In)
Char.DetachFromCar($scplayer)
Char.AttachToObject($scplayer, $8064, 0.0, 0.0, 1.0, 0, 90.0, WeaponType.Pistol)
Camera.RestoreJumpcut
$SR_mission_state[0] = 0
$SR_mission_state[1] = 0
$SR_mission_state[2] = 0
$8031[0] = 5
$8031[1] = 0
$8031[2] = 5
Text.ClearPrints
Text.ClearThisBigPrint('ANR_19')
Text.ClearThisBigPrint('ANR_18')
Text.PrintBig('RACE2', 1000, TextStyle.MiddleSmaller)
$sr_area = 5
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)

:SHRANGE_9118
if 
  $sr_area == 5
goto_if_false @SHRANGE_9194
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_9194
Text.PrintBig('RACE3', 1000, TextStyle.MiddleSmaller)
$sr_area = 6
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000

:SHRANGE_9194
if 
  $sr_area == 6
goto_if_false @SHRANGE_9270
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_9270
Text.PrintBig('RACE4', 1000, TextStyle.MiddleSmaller)
$sr_area = 7
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000

:SHRANGE_9270
if 
  $sr_area == 7
goto_if_false @SHRANGE_9351
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_9351
Text.PrintBig('RACE5', 1000, TextStyle.MiddleSmaller)
$sr_area = 8
$SR_skill_won = 0
$sr_Score = 0
$8126 = 0

:SHRANGE_9351
if 
  $sr_area == 8
goto_if_false @SHRANGE_9470
if 
  $sr_Score >= 20
goto_if_false @SHRANGE_9416
$sr_Dec = 3
$sr_area = 0
Hud.ClearCounter($SR_skill_won)
Hud.ClearCounter($sr_Score)
Hud.ClearCounter($8126)

:SHRANGE_9416
if or
  $SR_skill_won >= 20
  $8126 >= 20
goto_if_false @SHRANGE_9470
$sr_Dec = 20
$sr_area = 0
Hud.ClearCounter($SR_skill_won)
Hud.ClearCounter($sr_Score)
Hud.ClearCounter($8126)

:SHRANGE_9470
if 
  $sr_area == 10
goto_if_false @SHRANGE_9532
$8031[0] = 5
$8031[1] = 5
$8031[2] = 5
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 4000
$sr_area = 11

:SHRANGE_9532
if 
  $sr_area == 11
goto_if_false @SHRANGE_9717
if and
  $8031[0] == 99
  $8031[1] == 99
  $8031[2] == 99
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_9717
Text.ClearPrints
if 
  $8123 == 5
goto_if_false @SHRANGE_9626
Text.PrintBig('ANR_49', 2000, TextStyle.Middle)

:SHRANGE_9626
if 
  $8123 == 8
goto_if_false @SHRANGE_9660
Text.PrintBig('ANR_25', 2000, TextStyle.Middle)

:SHRANGE_9660
if 
  $8123 == 11
goto_if_false @SHRANGE_9694
Text.PrintBig('ANR_52', 2000, TextStyle.Middle)

:SHRANGE_9694
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 4000
$sr_area = 12

:SHRANGE_9717
if 
  $sr_area == 12
goto_if_false @SHRANGE_9933
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_9933
$SR_skill_won = 0
$sr_Score = 0
$8126 = 0
$SR_mission_state[1] = 0
$8031[1] = 0
$8024[0] = 0
$8024[1] = 5
$8024[2] = 0
$SR_skill_won = 0
$sr_Score = 0
$8126 = 0
Hud.DisplayCounterWithString($SR_skill_won, CounterDisplay.Number, 'ANR_37')
Hud.DisplayNthCounterWithString($sr_Score, CounterDisplay.Number, 2, 'ANR_39')
Hud.DisplayNthCounterWithString($8126, CounterDisplay.Number, 3, 'ANR_38')
Text.PrintBig('RACE2', 1000, TextStyle.MiddleSmaller)
$sr_area = 5
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 1000
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)

:SHRANGE_9933
goto @SHRANGE_10811

:SHRANGE_9940
if 
  $sr_area == 0
goto_if_false @SHRANGE_9997
Text.PrintBig('ANR_16', 3000, TextStyle.Middle)
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 3000
$sr_area = 1

:SHRANGE_9997
if 
  $sr_area == 1
goto_if_false @SHRANGE_10048
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_10048
Camera.DoFade(1000, Fade.Out)
$sr_area = 2

:SHRANGE_10048
if 
  $sr_area == 2
goto_if_false @SHRANGE_10102
if 
  not Camera.GetFadingStatus
goto_if_false @SHRANGE_10102
set_var_int_to_lvar_int $SR_flag = TIMERA
$SR_flag += 500
$sr_area = 3

:SHRANGE_10102
if 
  $sr_area == 3
goto_if_false @SHRANGE_10804
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_flag
goto_if_false @SHRANGE_10804
$sr_float2 = 2.0
$sr_float3 = -12.0
$z = 0.0
Hud.ClearCounter($SR_skill_won)
Hud.ClearCounter($sr_Score)
Hud.ClearCounter($8126)
Char.DetachFromCar($scplayer)
gosub @SHRANGE_16573
Pad.SetPlayerCycleWeaponButton($player1, True)
Char.RemoveWeapon($scplayer, WeaponType.Pistol)
if 
  $8130 > 0
goto_if_false @SHRANGE_10271

:SHRANGE_10228
if 
  not Streaming.HasModelLoaded($8138)
goto_if_false @SHRANGE_10260
Streaming.RequestModel($8138)
wait 0
goto @SHRANGE_10228

:SHRANGE_10260
Char.GiveWeapon($scplayer, $8134, $8130)

:SHRANGE_10271
Char.RemoveWeapon($scplayer, WeaponType.MicroUzi)
if 
  $ammo > 0
goto_if_false @SHRANGE_10339

:SHRANGE_10296
if 
  not Streaming.HasModelLoaded($ModelForWeaponType)
goto_if_false @SHRANGE_10328
Streaming.RequestModel($ModelForWeaponType)
wait 0
goto @SHRANGE_10296

:SHRANGE_10328
Char.GiveWeapon($scplayer, $WeaponType, $ammo)

:SHRANGE_10339
Char.RemoveWeapon($scplayer, WeaponType.Shotgun)
if 
  $8132 > 0
goto_if_false @SHRANGE_10407

:SHRANGE_10364
if 
  not Streaming.HasModelLoaded($8140)
goto_if_false @SHRANGE_10396
Streaming.RequestModel($8140)
wait 0
goto @SHRANGE_10364

:SHRANGE_10396
Char.GiveWeapon($scplayer, $8136, $8132)

:SHRANGE_10407
Char.RemoveWeapon($scplayer, WeaponType.Ak47)
if 
  $8133 > 0
goto_if_false @SHRANGE_10475

:SHRANGE_10432
if 
  not Streaming.HasModelLoaded($8141)
goto_if_false @SHRANGE_10464
Streaming.RequestModel($8141)
wait 0
goto @SHRANGE_10432

:SHRANGE_10464
Char.GiveWeapon($scplayer, $8137, $8133)

:SHRANGE_10475
Pad.SetPlayerDuckButton($player1, True)
Object.Delete($8064)
Text.ClearPrints
Char.SetCoordinatesDontWarpGang($scplayer, $x, $y, $z)
if 
  not Char.IsDead($scplayer)
goto_if_false @SHRANGE_10526
Char.FreezePosition($scplayer, False)

:SHRANGE_10526
Player.SetControl($player1, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
if 
  not Char.IsDead($scplayer)
goto_if_false @SHRANGE_10569
Char.SetHeading($scplayer, 59@($SR_range_id,4f))

:SHRANGE_10569
$8088[1] = 1
Camera.DoFade(1000, Fade.In)
$sr_Dec = 0
$sr_area = 0
$SR_mission_state[0] = 0
$SR_mission_state[1] = 0
$SR_mission_state[2] = 0
$8027[0] = 0
$8027[1] = 0
$8027[2] = 0
$sr_yoffset[0] = 1
if 
  Char.IsDead($sr_obj_number[1])
goto_if_false @SHRANGE_10669
$sr_yoffset[1] = 0

:SHRANGE_10669
$sr_yoffset[2] = 1
$8024[0] = 0
$8024[1] = 0
$8024[2] = 0
$8031[0] = 0
$8031[1] = 0
$8031[2] = 0
if 
  34@ == 1
goto_if_false @SHRANGE_10763
Text.ClearThisPrintBigNow(TextStyle.Middle)
Text.Print('ANR_A1', 4000, 1)
34@ = 0

:SHRANGE_10763
if and
  $player_has_fast_reload <> 4
  34@ <> 1
goto_if_false @SHRANGE_10804
Text.Print('ANR_55', 4000, 1)

:SHRANGE_10804
goto @SHRANGE_10811

:SHRANGE_10811
return 

:SHRANGE_10813
$sr_i = 0
set_var_int_to_var_int $8142 = $8031[0]
set_var_int_to_var_int $8145 = $8031[1]
set_var_int_to_var_int $8148 = $8031[2]

:SHRANGE_10844
if 
  3 > $sr_i
goto_if_false @SHRANGE_13200
switch_start $sr_yoffset($sr_i,3i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SHRANGE_13186 {caseNum1} 0 {caseLabel1} @SHRANGE_10929 {caseNum2} 1 {caseLabel2} @SHRANGE_11343 {caseNum3} 2 {caseLabel3} @SHRANGE_11612 {caseNum4} 3 {caseLabel4} @SHRANGE_12600 {caseNum5} 4 {caseLabel5} @SHRANGE_13139 {caseNum6} -1 {caseLabel6} @SHRANGE_13186 {caseNum7} -1 {caseLabel7} @SHRANGE_13186

:SHRANGE_10929
if 
  $8088($sr_i,3i) == 1
goto_if_false @SHRANGE_11336
$sr_yoffset($sr_i,3i) = 1
set_var_float_to_lvar_float $x = 35@($SR_range_id,4f)
set_var_float_to_lvar_float $y = 39@($SR_range_id,4f)
set_var_float_to_lvar_float $z = 43@($SR_range_id,4f)
set_lvar_float_to_lvar_float 63@ = 59@($SR_range_id,4f)
if 
  $sr_i == 1
goto_if_false @SHRANGE_11127
if 
  63@ == 90.0
goto_if_false @SHRANGE_11061
add_float_lvar_to_float_var $y += 47@($SR_range_id,4f)

:SHRANGE_11061
if 
  63@ == 270.0
goto_if_false @SHRANGE_11094
sub_float_lvar_from_float_var $y -= 47@($SR_range_id,4f)

:SHRANGE_11094
if 
  63@ == 0.0
goto_if_false @SHRANGE_11127
add_float_lvar_to_float_var $x += 47@($SR_range_id,4f)

:SHRANGE_11127
if 
  $sr_i == 2
goto_if_false @SHRANGE_11244
if 
  63@ == 90.0
goto_if_false @SHRANGE_11178
add_float_lvar_to_float_var $y += 51@($SR_range_id,4f)

:SHRANGE_11178
if 
  63@ == 270.0
goto_if_false @SHRANGE_11211
sub_float_lvar_from_float_var $y -= 51@($SR_range_id,4f)

:SHRANGE_11211
if 
  63@ == 0.0
goto_if_false @SHRANGE_11244
add_float_lvar_to_float_var $x += 51@($SR_range_id,4f)

:SHRANGE_11244
$sr_obj_number($sr_i,3i) = Char.CreateRandom($x, $y, $z)
if 
  not Char.IsDead($sr_obj_number($sr_i,3i))
goto_if_false @SHRANGE_11336
Char.SetProofs($sr_obj_number($sr_i,3i), True, True, True, True, True)
Char.SetDecisionMaker($sr_obj_number($sr_i,3i), $8068)
Char.SetAccuracy($sr_obj_number($sr_i,3i), 93)
Char.SetHeading($sr_obj_number($sr_i,3i), 63@)

:SHRANGE_11336
goto @SHRANGE_13186

:SHRANGE_11343
if 
  not Char.IsDead($sr_obj_number($sr_i,3i))
goto_if_false @SHRANGE_11605
if 
  $8027($sr_i,4i) == 0
goto_if_false @SHRANGE_11398
$8027($sr_i,4i) = Math.RandomIntInRange(1, 5)

:SHRANGE_11398
if 
  $8027($sr_i,4i) == 1
goto_if_false @SHRANGE_11447
Char.GiveWeapon($sr_obj_number($sr_i,3i), WeaponType.Pistol, 99999)
Char.SetCurrentWeapon($sr_obj_number($sr_i,3i), WeaponType.Pistol)

:SHRANGE_11447
if 
  $8027($sr_i,4i) == 2
goto_if_false @SHRANGE_11496
Char.GiveWeapon($sr_obj_number($sr_i,3i), WeaponType.MicroUzi, 99999)
Char.SetCurrentWeapon($sr_obj_number($sr_i,3i), WeaponType.MicroUzi)

:SHRANGE_11496
if 
  $8027($sr_i,4i) == 3
goto_if_false @SHRANGE_11545
Char.GiveWeapon($sr_obj_number($sr_i,3i), WeaponType.Shotgun, 99999)
Char.SetCurrentWeapon($sr_obj_number($sr_i,3i), WeaponType.Shotgun)

:SHRANGE_11545
if 
  $8027($sr_i,4i) == 4
goto_if_false @SHRANGE_11594
Char.GiveWeapon($sr_obj_number($sr_i,3i), WeaponType.Ak47, 99999)
Char.SetCurrentWeapon($sr_obj_number($sr_i,3i), WeaponType.Ak47)

:SHRANGE_11594
$sr_yoffset($sr_i,3i) = 2

:SHRANGE_11605
goto @SHRANGE_13186

:SHRANGE_11612
$SR_time_check = 0
if 
  $8031($sr_i,3i) == 2
goto_if_false @SHRANGE_11648
$SR_time_check = 1

:SHRANGE_11648
if and
  $sr_Dec == 5
  $8031[1] == 2
goto_if_false @SHRANGE_11680
$SR_time_check = 1

:SHRANGE_11680
if 
  $sr_i == 0
goto_if_false @SHRANGE_11706
set_var_int_to_var_int $this_Watch = $SR_time_check

:SHRANGE_11706
if 
  $sr_i == 1
goto_if_false @SHRANGE_11732
set_var_int_to_var_int $8146 = $SR_time_check

:SHRANGE_11732
if 
  $sr_i == 2
goto_if_false @SHRANGE_11758
set_var_int_to_var_int $8149 = $SR_time_check

:SHRANGE_11758
if 
  $SR_time_check == 1
goto_if_false @SHRANGE_12531
if 
  is_int_lvar_greater_than_int_var TIMERA > $8120($sr_i,3i)
goto_if_false @SHRANGE_12524
$SR_time_check = Math.RandomIntInRange(1, 8)
if 
  $sr_Dec == 5
goto_if_false @SHRANGE_11840
$SR_time_check += 8
goto @SHRANGE_11890

:SHRANGE_11840
if 
  $sr_i == 2
goto_if_false @SHRANGE_11865
$SR_time_check += 16

:SHRANGE_11865
if 
  $sr_i == 1
goto_if_false @SHRANGE_11890
$SR_time_check += 8

:SHRANGE_11890
$8091 = 0

:SHRANGE_11897
if and
  Object.HasBeenDamaged($8096($SR_time_check,24i))
  8 > $8091
goto_if_false @SHRANGE_11984
$SR_time_check += 1
$8091 += 1
if or
  $SR_time_check == 8
  $SR_time_check == 24
  $SR_time_check == 16
goto_if_false @SHRANGE_11977
$SR_time_check -= 7

:SHRANGE_11977
goto @SHRANGE_11897

:SHRANGE_11984
if 
  $sr_i == 0
goto_if_false @SHRANGE_12010
set_var_int_to_var_int $8144 = $8091

:SHRANGE_12010
if 
  $sr_i == 1
goto_if_false @SHRANGE_12036
set_var_int_to_var_int $8147 = $8091

:SHRANGE_12036
if 
  $sr_i == 2
goto_if_false @SHRANGE_12062
set_var_int_to_var_int $8150 = $8091

:SHRANGE_12062
if 
  not Char.IsDead($sr_obj_number($sr_i,3i))
goto_if_false @SHRANGE_12524
$x, $y, $z = Object.GetCoordinates($8096($SR_time_check,24i))
if and
  $SR_time_check > 8
  16 > $SR_time_check
goto_if_false @SHRANGE_12132
$SR_time_check -= 8

:SHRANGE_12132
if and
  $SR_time_check > 16
  24 > $SR_time_check
goto_if_false @SHRANGE_12164
$SR_time_check -= 16

:SHRANGE_12164
if 
  63@ == 0.0
goto_if_false @SHRANGE_12197
add_float_var_to_float_var $x += $8037($SR_time_check,8f)

:SHRANGE_12197
if 
  63@ == 90.0
goto_if_false @SHRANGE_12230
add_float_var_to_float_var $y += $8037($SR_time_check,8f)

:SHRANGE_12230
if 
  63@ == 270.0
goto_if_false @SHRANGE_12263
sub_float_var_from_float_var $y -= $8037($SR_time_check,8f)

:SHRANGE_12263
add_float_var_to_float_var $z += $8045($SR_time_check,8f)
if 
  $8123 >= 8
goto_if_false @SHRANGE_12376
$SR_time_check = Char.GetScriptTaskStatus($sr_obj_number($sr_i,3i), 1640)
if 
  is_int_var_equal_to_constant $SR_time_check == 7
goto_if_false @SHRANGE_12369
Char.FreezePosition($sr_obj_number($sr_i,3i), True)
Task.ShootAtCoord($sr_obj_number($sr_i,3i), $x, $y, $z, 800)
Char.SetAccuracy($sr_obj_number($sr_i,3i), 95)

:SHRANGE_12369
goto @SHRANGE_12441

:SHRANGE_12376
$SR_time_check = Char.GetScriptTaskStatus($sr_obj_number($sr_i,3i), 1640)
if 
  is_int_var_equal_to_constant $SR_time_check == 7
goto_if_false @SHRANGE_12441
Char.FreezePosition($sr_obj_number($sr_i,3i), True)
Task.ShootAtCoord($sr_obj_number($sr_i,3i), $x, $y, $z, 1500)

:SHRANGE_12441
if 
  $8123 >= 8
goto_if_false @SHRANGE_12489
$SR_time_check = Math.RandomIntInRange(200, 400)
$8120($sr_i,3i) += 600
goto @SHRANGE_12500

:SHRANGE_12489
$SR_time_check = Math.RandomIntInRange(200, 1600)

:SHRANGE_12500
set_var_int_to_lvar_int $8120($sr_i,3i) = TIMERA
add_int_var_to_int_var $8120($sr_i,3i) += $SR_time_check

:SHRANGE_12524
goto @SHRANGE_12593

:SHRANGE_12531
if 
  not Char.IsDead($sr_obj_number($sr_i,3i))
goto_if_false @SHRANGE_12593
$SR_time_check = Char.GetScriptTaskStatus($sr_obj_number($sr_i,3i), 1640)
if 
  not is_int_var_equal_to_constant $SR_time_check == 7
goto_if_false @SHRANGE_12593
Char.ClearTasks($sr_obj_number($sr_i,3i))

:SHRANGE_12593
goto @SHRANGE_13186

:SHRANGE_12600
if 
  not Char.IsDead($sr_obj_number($sr_i,3i))
goto_if_false @SHRANGE_13132
$x, $y, $z = Char.GetCoordinates($sr_obj_number($sr_i,3i))
Char.FreezePosition($sr_obj_number($sr_i,3i), False)
Path.FlushRoute
$sr_int2 = Sequence.Open()
$sr_float2 = 0.0
add_float_lvar_to_float_var $sr_float2 += 47@($SR_range_id,4f)
$sr_float3 = -1.0
$sr_direction = Math.Cos(59@($SR_range_id,4f))
$sr_float1 = Math.Sin(59@($SR_range_id,4f))
if 
  59@($SR_range_id,4f) == 0.0
goto_if_false @SHRANGE_12776
set_var_float_to_var_float $x = $sr_float2
mult_float_var_by_float_var $x *= $sr_direction
set_var_float_to_var_float $y = $sr_float3
mult_float_var_by_float_var $y *= $sr_direction
goto @SHRANGE_12818

:SHRANGE_12776
$sr_float3 *= -1.0
set_var_float_to_var_float $x = $sr_float3
mult_float_var_by_float_var $x *= $sr_float1
set_var_float_to_var_float $y = $sr_float2
mult_float_var_by_float_var $y *= $sr_float1

:SHRANGE_12818
add_float_lvar_to_float_var $x += 35@($SR_range_id,4f)
add_float_lvar_to_float_var $y += 39@($SR_range_id,4f)
add_float_lvar_to_float_var $z += 43@($SR_range_id,4f)
set_lvar_float_to_lvar_float 63@ = 59@($SR_range_id,4f)
63@ -= 180.0
Task.AchieveHeading(-1, 63@)
set_lvar_float_to_lvar_float 63@ = 59@($SR_range_id,4f)
Path.ExtendRoute($x, $y, $z)
$sr_float2 = -0.5
add_float_lvar_to_float_var $sr_float2 += 47@($SR_range_id,4f)
$sr_float3 = -4.5
if 
  59@($SR_range_id,4f) == 0.0
goto_if_false @SHRANGE_13002
set_var_float_to_var_float $x = $sr_float2
mult_float_var_by_float_var $x *= $sr_direction
set_var_float_to_var_float $y = $sr_float3
mult_float_var_by_float_var $y *= $sr_direction
goto @SHRANGE_13044

:SHRANGE_13002
$sr_float3 *= -1.0
set_var_float_to_var_float $x = $sr_float3
mult_float_var_by_float_var $x *= $sr_float1
set_var_float_to_var_float $y = $sr_float2
mult_float_var_by_float_var $y *= $sr_float1

:SHRANGE_13044
add_float_lvar_to_float_var $x += 35@($SR_range_id,4f)
add_float_lvar_to_float_var $y += 39@($SR_range_id,4f)
add_float_lvar_to_float_var $z += 43@($SR_range_id,4f)
Path.ExtendRoute($x, $y, $z)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Sequence.Close($sr_int2)
Char.PerformSequence($sr_obj_number($sr_i,3i), $sr_int2)
Sequence.Clear($sr_int2)
$sr_yoffset($sr_i,3i) = 99

:SHRANGE_13132
goto @SHRANGE_13186

:SHRANGE_13139
if 
  not Char.IsDead($sr_obj_number($sr_i,3i))
goto_if_false @SHRANGE_13168
Char.Delete($sr_obj_number($sr_i,3i))

:SHRANGE_13168
$sr_yoffset($sr_i,3i) = 0
goto @SHRANGE_13186

:SHRANGE_13186
$sr_i += 1
goto @SHRANGE_10844

:SHRANGE_13200
return 

:SHRANGE_13202
$sr_i = 0

:SHRANGE_13209
if 
  3 > $sr_i
goto_if_false @SHRANGE_16571
switch_start $8031($sr_i,3i) {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SHRANGE_16557 {caseNum1} 0 {caseLabel1} @SHRANGE_13294 {caseNum2} 1 {caseLabel2} @SHRANGE_14076 {caseNum3} 2 {caseLabel3} @SHRANGE_14405 {caseNum4} 3 {caseLabel4} @SHRANGE_16006 {caseNum5} 4 {caseLabel5} @SHRANGE_16308 {caseNum6} 5 {caseLabel6} @SHRANGE_16429 {caseNum7} -1 {caseLabel7} @SHRANGE_16557

:SHRANGE_13294
DecisionMakerChar.ClearEventResponse($8068, 15)
$8031($sr_i,3i) = 1
if 
  $8024($sr_i,3i) == 0
goto_if_false @SHRANGE_13380
$8024($sr_i,3i) = Math.RandomIntInRange(1, 3)
if 
  $8024($sr_i,3i) == 2
goto_if_false @SHRANGE_13380
$8024($sr_i,3i) = 4

:SHRANGE_13380
$x = 0.0
$y = 5.0
$z = 4.0
set_lvar_float_to_lvar_float 63@ = 59@($SR_range_id,4f)
if 
  5 > $8024($sr_i,3i)
goto_if_false @SHRANGE_13611
if 
  $sr_i == 1
goto_if_false @SHRANGE_13474
add_float_lvar_to_float_var $x += 47@($SR_range_id,4f)

:SHRANGE_13474
if 
  $sr_i == 2
goto_if_false @SHRANGE_13504
add_float_lvar_to_float_var $x += 51@($SR_range_id,4f)

:SHRANGE_13504
if 
  $8024($sr_i,3i) == 1
goto_if_false @SHRANGE_13536
$y += 0.0

:SHRANGE_13536
if 
  $8024($sr_i,3i) == 2
goto_if_false @SHRANGE_13568
$y += 5.0

:SHRANGE_13568
if or
  $8024($sr_i,3i) == 3
  $8024($sr_i,3i) == 4
goto_if_false @SHRANGE_13611
$y += 10.0

:SHRANGE_13611
if 
  $8024($sr_i,3i) == 5
goto_if_false @SHRANGE_13695
$sr_float4 = Math.RandomFloatInRange(0.0, 10.0)
add_float_var_to_float_var $y += $sr_float4
$sr_seq = Math.RandomIntInRange(0, 2)
if 
  $sr_seq == 1
goto_if_false @SHRANGE_13695
add_float_lvar_to_float_var $x += 51@($SR_range_id,4f)

:SHRANGE_13695
set_var_float_to_var_float $sr_float2 = $x
set_var_float_to_var_float $sr_float3 = $y
gosub @SHRANGE_16573
set_var_int_to_var_int $SR_time_check = $sr_i
$SR_time_check *= 8
if 
  Object.DoesExist($8096($SR_time_check,24i))
goto_if_false @SHRANGE_13762
Object.Delete($8096($SR_time_check,24i))

:SHRANGE_13762
$8096($SR_time_check,24i) = Object.CreateNoOffset($8056[0], $x, $y, $z)
Object.SetRotation($8096($SR_time_check,24i), 90.0, 0.0, 63@)
Audio.ReportMissionAudioEventAtObject($8096($SR_time_check,24i), 1032)
$8053($sr_i,3f) = 90.0
$8091 = 1

:SHRANGE_13838
if 
  8 > $8091
goto_if_false @SHRANGE_14046
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
add_int_var_to_int_var $sr_j += $8091
if 
  Object.DoesExist($8096($sr_j,24i))
goto_if_false @SHRANGE_13908
Object.Delete($8096($sr_j,24i))

:SHRANGE_13908
$8096($sr_j,24i) = Object.CreateNoOffset($8056($8091,8i), $x, $y, $z)
Object.AttachToObject($8096($sr_j,24i), $8096($SR_time_check,24i), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
if 
  Object.DoesExist($8096($sr_j,24i))
goto_if_false @SHRANGE_14032
Object.SetRotation($8096($sr_j,24i), 90.0, 0.0, 63@)
Object.SetCollision($8096($sr_j,24i), False)

:SHRANGE_14032
$8091 += 1
goto @SHRANGE_13838

:SHRANGE_14046
$SR_mission_state($sr_i,3i) += 1
set_var_int_to_lvar_int $sr_obj($sr_i,3i) = TIMERA
goto @SHRANGE_16557

:SHRANGE_14076
set_var_int_to_lvar_int $SR_time_check = TIMERA
sub_int_var_from_int_var $SR_time_check -= $sr_obj($sr_i,3i)
if 
  $SR_time_check > 3000
goto_if_false @SHRANGE_14123
$SR_time_check = 3000

:SHRANGE_14123
cset_var_float_to_var_int $sr_direction =# $SR_time_check
$sr_direction /= 3000.0
$sr_direction *= -90.0
$sr_direction += 90.0
set_var_float_to_var_float $8053($sr_i,3f) = $sr_direction
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
if 
  Object.DoesExist($8096($sr_j,24i))
goto_if_false @SHRANGE_14232
Object.SetRotation($8096($sr_j,24i), $8053($sr_i,3f), 0.0, 63@)

:SHRANGE_14232
if 
  0.0 >= $8053($sr_i,3f)
goto_if_false @SHRANGE_14398
$8031($sr_i,3i) = 2
set_var_int_to_lvar_int $sr_obj($sr_i,3i) = TIMERA
if or
  $8024($sr_i,3i) == 4
  $8024($sr_i,3i) == 5
goto_if_false @SHRANGE_14325
Audio.ReportMissionAudioEventAtObject($8096($sr_j,24i), 1033)

:SHRANGE_14325
$8091 = 0

:SHRANGE_14332
if 
  8 > $8091
goto_if_false @SHRANGE_14398
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
add_int_var_to_int_var $sr_j += $8091
Object.SetCollision($8096($sr_j,24i), True)
$8091 += 1
goto @SHRANGE_14332

:SHRANGE_14398
goto @SHRANGE_16557

:SHRANGE_14405
if 
  $8024($sr_i,3i) == 4
goto_if_false @SHRANGE_15041
set_var_int_to_lvar_int $SR_time_check = TIMERA
sub_int_var_from_int_var $SR_time_check -= $sr_obj($sr_i,3i)
if 
  $SR_mission_state($sr_i,3i) == 4
goto_if_false @SHRANGE_14480
$SR_mission_state($sr_i,3i) = 1

:SHRANGE_14480
if 
  $SR_mission_state($sr_i,3i) == 1
goto_if_false @SHRANGE_14556
if 
  $SR_time_check > 20000
goto_if_false @SHRANGE_14556
$SR_time_check = 20000
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
Audio.ReportMissionAudioEventAtObject($8096($sr_j,24i), 1034)

:SHRANGE_14556
if 
  $SR_mission_state($sr_i,3i) == 2
goto_if_false @SHRANGE_14632
if 
  $SR_time_check > 15000
goto_if_false @SHRANGE_14632
$SR_time_check = 15000
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
Audio.ReportMissionAudioEventAtObject($8096($sr_j,24i), 1034)

:SHRANGE_14632
if 
  $SR_mission_state($sr_i,3i) == 3
goto_if_false @SHRANGE_14708
if 
  $SR_time_check > 10000
goto_if_false @SHRANGE_14708
$SR_time_check = 10000
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
Audio.ReportMissionAudioEventAtObject($8096($sr_j,24i), 1034)

:SHRANGE_14708
cset_var_float_to_var_int $sr_direction =# $SR_time_check
if 
  $SR_mission_state($sr_i,3i) == 1
goto_if_false @SHRANGE_14748
$sr_direction /= 20000.0

:SHRANGE_14748
if 
  $SR_mission_state($sr_i,3i) == 2
goto_if_false @SHRANGE_14780
$sr_direction /= 15000.0

:SHRANGE_14780
if 
  $SR_mission_state($sr_i,3i) == 3
goto_if_false @SHRANGE_14812
$sr_direction /= 10000.0

:SHRANGE_14812
$sr_direction *= 10.0
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
$x, $y, $z = Object.GetCoordinates($8096($sr_j,24i))
if 
  63@ == 90.0
goto_if_false @SHRANGE_14906
set_var_float_to_lvar_float $x = 35@($SR_range_id,4f)
$x -= 15.0
add_float_var_to_float_var $x += $sr_direction

:SHRANGE_14906
if 
  63@ == 270.0
goto_if_false @SHRANGE_14957
set_var_float_to_lvar_float $x = 35@($SR_range_id,4f)
$x += 15.0
sub_float_var_from_float_var $x -= $sr_direction

:SHRANGE_14957
if 
  63@ == 0.0
goto_if_false @SHRANGE_15008
set_var_float_to_lvar_float $y = 39@($SR_range_id,4f)
$y += 15.0
sub_float_var_from_float_var $y -= $sr_direction

:SHRANGE_15008
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
Object.SetCoordinates($8096($sr_j,24i), $x, $y, $z)

:SHRANGE_15041
if 
  $8024($sr_i,3i) == 5
goto_if_false @SHRANGE_15398
set_var_int_to_lvar_int $SR_time_check = TIMERA
sub_int_var_from_int_var $SR_time_check -= $sr_obj($sr_i,3i)
if 
  $SR_time_check > 10000
goto_if_false @SHRANGE_15247
$SR_time_check = 10000
$8031($sr_i,3i) = 3
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
Audio.ReportMissionAudioEventAtObject($8096($sr_j,24i), 1034)
Audio.ReportMissionAudioEventAtPosition($x, $y, $z, 1032)
set_var_int_to_lvar_int $sr_obj($sr_i,3i) = TIMERA
$8091 = 0

:SHRANGE_15181
if 
  8 > $8091
goto_if_false @SHRANGE_15247
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
add_int_var_to_int_var $sr_j += $8091
Object.SetCollision($8096($sr_j,24i), False)
$8091 += 1
goto @SHRANGE_15181

:SHRANGE_15247
cset_var_float_to_var_int $sr_direction =# $SR_time_check
$sr_direction /= 10000.0
mult_float_var_by_float_lvar $sr_direction *= 51@($SR_range_id,4f)
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
if 
  $sr_seq == 0
goto_if_false @SHRANGE_15325
set_var_float_to_var_float $sr_float2 = $sr_direction
goto @SHRANGE_15345

:SHRANGE_15325
set_var_float_to_lvar_float $sr_float2 = 51@($SR_range_id,4f)
sub_float_var_from_float_var $sr_float2 -= $sr_direction

:SHRANGE_15345
$z = 4.0
set_var_float_to_var_float $sr_float3 = $sr_float4
$sr_float3 += 5.0
gosub @SHRANGE_16573
Object.SetCoordinates($8096($sr_j,24i), $x, $y, $z)

:SHRANGE_15398
set_var_int_to_var_int $SR_time_check = $8034($sr_i,3i)
$8034($sr_i,3i) = 0
$8091 = 0

:SHRANGE_15428
if 
  8 > $8091
goto_if_false @SHRANGE_15514
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
add_int_var_to_int_var $sr_j += $8091
if 
  Object.HasBeenDamaged($8096($sr_j,24i))
goto_if_false @SHRANGE_15500
$8034($sr_i,3i) += 1

:SHRANGE_15500
$8091 += 1
goto @SHRANGE_15428

:SHRANGE_15514
if 
  is_int_var_greater_than_int_var $8034($sr_i,3i) > $SR_time_check
goto_if_false @SHRANGE_15549
Audio.ReportMissionAudioEventAtObject($8096($sr_j,24i), 1031)

:SHRANGE_15549
if 
  $sr_i == 1
goto_if_false @SHRANGE_15872
if 
  is_int_var_greater_than_int_var $8034[1] > $SR_time_check
goto_if_false @SHRANGE_15872
set_var_int_to_var_int $sr_int1 = $8034[1]
sub_int_var_from_int_var $sr_int1 -= $SR_time_check
$SR_time_check = Math.RandomIntInRange(0, 2)
if 
  $SR_time_check == 0
goto_if_false @SHRANGE_15754
if 
  not Char.IsDead($sr_obj_number[0])
goto_if_false @SHRANGE_15747
if 
  Char.IsShooting($sr_obj_number[0])
goto_if_false @SHRANGE_15676
add_int_var_to_int_var $SR_skill_won += $sr_int1
goto @SHRANGE_15747

:SHRANGE_15676
if 
  Char.IsShooting($scplayer)
goto_if_false @SHRANGE_15707
add_int_var_to_int_var $sr_Score += $sr_int1
goto @SHRANGE_15747

:SHRANGE_15707
if 
  not Char.IsDead($sr_obj_number[2])
goto_if_false @SHRANGE_15747
if 
  Char.IsShooting($sr_obj_number[2])
goto_if_false @SHRANGE_15747
add_int_var_to_int_var $8126 += $sr_int1

:SHRANGE_15747
goto @SHRANGE_15872

:SHRANGE_15754
if 
  not Char.IsDead($sr_obj_number[2])
goto_if_false @SHRANGE_15872
if 
  Char.IsShooting($sr_obj_number[2])
goto_if_false @SHRANGE_15801
add_int_var_to_int_var $8126 += $sr_int1
goto @SHRANGE_15872

:SHRANGE_15801
if 
  Char.IsShooting($scplayer)
goto_if_false @SHRANGE_15832
add_int_var_to_int_var $sr_Score += $sr_int1
goto @SHRANGE_15872

:SHRANGE_15832
if 
  not Char.IsDead($sr_obj_number[0])
goto_if_false @SHRANGE_15872
if 
  Char.IsShooting($sr_obj_number[0])
goto_if_false @SHRANGE_15872
add_int_var_to_int_var $SR_skill_won += $sr_int1

:SHRANGE_15872
if 
  $8034($sr_i,3i) == 7
goto_if_false @SHRANGE_15999
set_var_int_to_lvar_int $sr_obj($sr_i,3i) = TIMERA
$8031($sr_i,3i) = 3
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
Audio.ReportMissionAudioEventAtObject($8096($sr_j,24i), 1034)
Audio.ReportMissionAudioEventAtPosition($x, $y, $z, 1032)
DecisionMakerChar.ClearEventResponse($8068, 15)
DecisionMakerChar.AddEventResponse($8068, 15, 300, 100.0, 100.0, 100.0, 100.0, True, True)

:SHRANGE_15999
goto @SHRANGE_16557

:SHRANGE_16006
set_var_int_to_lvar_int $SR_time_check = TIMERA
sub_int_var_from_int_var $SR_time_check -= $sr_obj($sr_i,3i)
if 
  $SR_time_check > 2000
goto_if_false @SHRANGE_16053
$SR_time_check = 2000

:SHRANGE_16053
cset_var_float_to_var_int $sr_direction =# $SR_time_check
$sr_direction /= 2000.0
$sr_direction *= 90.0
set_var_float_to_var_float $8053($sr_i,3f) = $sr_direction
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
if 
  Object.DoesExist($8096($sr_j,24i))
goto_if_false @SHRANGE_16152
Object.SetRotation($8096($sr_j,24i), $8053($sr_i,3f), 0.0, 63@)

:SHRANGE_16152
if 
  $8053($sr_i,3f) >= 90.0
goto_if_false @SHRANGE_16301
$8031($sr_i,3i) = 0
if 
  $8024($sr_i,3i) == 3
goto_if_false @SHRANGE_16228
$8024($sr_i,3i) = 1
goto @SHRANGE_16301

:SHRANGE_16228
if 
  $8024($sr_i,3i) == 2
goto_if_false @SHRANGE_16268
$8024($sr_i,3i) = 3
goto @SHRANGE_16301

:SHRANGE_16268
if 
  $8024($sr_i,3i) == 1
goto_if_false @SHRANGE_16301
$8024($sr_i,3i) = 2

:SHRANGE_16301
goto @SHRANGE_16557

:SHRANGE_16308
$8091 = 0

:SHRANGE_16315
if 
  8 > $8091
goto_if_false @SHRANGE_16411
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
add_int_var_to_int_var $sr_j += $8091
if 
  Object.DoesExist($8096($8091,24i))
goto_if_false @SHRANGE_16397
Audio.ReportMissionAudioEventAtObject($8096($8091,24i), 1034)
Object.Delete($8096($8091,24i))

:SHRANGE_16397
$8091 += 1
goto @SHRANGE_16315

:SHRANGE_16411
$8031($sr_i,3i) = 99
goto @SHRANGE_16557

:SHRANGE_16429
$8053($sr_i,3f) += 1.0
set_var_int_to_var_int $sr_j = $sr_i
$sr_j *= 8
if 
  Object.DoesExist($8096($sr_j,24i))
goto_if_false @SHRANGE_16514
Audio.ReportMissionAudioEventAtObject($8096($sr_j,24i), 1034)
Object.SetRotation($8096($sr_j,24i), $8053($sr_i,3f), 0.0, 63@)

:SHRANGE_16514
if 
  $8053($sr_i,3f) >= 90.0
goto_if_false @SHRANGE_16550
$8031($sr_i,3i) = 4

:SHRANGE_16550
goto @SHRANGE_16557

:SHRANGE_16557
$sr_i += 1
goto @SHRANGE_13209

:SHRANGE_16571
return 

:SHRANGE_16573
$sr_direction = Math.Cos(59@($SR_range_id,4f))
$sr_float1 = Math.Sin(59@($SR_range_id,4f))
if 
  59@($SR_range_id,4f) == 0.0
goto_if_false @SHRANGE_16661
set_var_float_to_var_float $x = $sr_float2
mult_float_var_by_float_var $x *= $sr_direction
set_var_float_to_var_float $y = $sr_float3
mult_float_var_by_float_var $y *= $sr_direction
goto @SHRANGE_16703

:SHRANGE_16661
$sr_float3 *= -1.0
set_var_float_to_var_float $x = $sr_float3
mult_float_var_by_float_var $x *= $sr_float1
set_var_float_to_var_float $y = $sr_float2
mult_float_var_by_float_var $y *= $sr_float1

:SHRANGE_16703
add_float_lvar_to_float_var $x += 35@($SR_range_id,4f)
add_float_lvar_to_float_var $y += 39@($SR_range_id,4f)
add_float_lvar_to_float_var $z += 43@($SR_range_id,4f)
return 

:SHRANGE_16741
Char.Delete($sr_obj_number[0])
Char.Delete($sr_obj_number[1])
Char.Delete($sr_obj_number[2])
Hud.ClearCounter($SR_skill_won)
Hud.ClearCounter($sr_Score)
Hud.ClearCounter($8126)
Streaming.MarkModelAsNoLongerNeeded(#TARGET_HEAD)
Streaming.MarkModelAsNoLongerNeeded(#TARGET_LARM)
Streaming.MarkModelAsNoLongerNeeded(#TARGET_RARM)
Streaming.MarkModelAsNoLongerNeeded(#TARGET_LLEG)
Streaming.MarkModelAsNoLongerNeeded(#TARGET_RLEG)
Streaming.MarkModelAsNoLongerNeeded(#TARGET_RTORSO)
Streaming.MarkModelAsNoLongerNeeded(#TARGET_LTORSO)
Streaming.MarkModelAsNoLongerNeeded(#TARGET_FRAME)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(355)
DecisionMaker.Remove($8068)
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
$8091 = 0

:SHRANGE_16847
if 
  24 > $8091
goto_if_false @SHRANGE_16908
if 
  Object.DoesExist($8096($8091,24i))
goto_if_false @SHRANGE_16894
Object.Delete($8096($8091,24i))

:SHRANGE_16894
$8091 += 1
goto @SHRANGE_16847

:SHRANGE_16908
$flag_shooting_range_mission = 0
$onmission = 0
if 
  not Char.IsDead($scplayer)
goto_if_false @SHRANGE_16945
Char.FreezePosition($scplayer, False)

:SHRANGE_16945
terminate_this_script 
return 
terminate_this_script 

//-------------Mission 114---------------
// Originally: Los Santos Gym Fight School

:GYMLS
script_name 'GYMLS'
gosub @GYMLS_55
Camera.SetFadingColor(0, 0, 0)
if 
  has_deatharrest_been_executed 
goto_if_false @GYMLS_46
gosub @GYMLS_5862

:GYMLS_46
gosub @GYMLS_5902
terminate_this_script 

:GYMLS_55
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLS_78
Char.ListenToPlayerGroupCommands($scplayer, False)

:GYMLS_78
$onmission = 1
$8151 = 0
Stat.IncrementInt(StatId.VisitsToGym, 1)
$gym_is_running = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('GYM')
Streaming.RequestModel(80)
Streaming.RequestModel(81)
Streaming.RequestModel(19)
Streaming.RequestAnimation("RIOT")
Streaming.RequestAnimation("FIGHT_B")
Streaming.RequestAnimation("INT_SHOP")
Streaming.RequestAnimation("GYMNASIUM")
Streaming.LoadAllModelsNow

:GYMLS_177
if or
  not Streaming.HasAnimationLoaded("GYMNASIUM")
  not Streaming.HasModelLoaded(80)
  not Streaming.HasModelLoaded(81)
goto_if_false @GYMLS_220
wait 0
goto @GYMLS_177

:GYMLS_220
if or
  not Streaming.HasModelLoaded(19)
  not Streaming.HasAnimationLoaded("RIOT")
  not Streaming.HasAnimationLoaded("FIGHT_B")
  not Streaming.HasAnimationLoaded("INT_SHOP")
goto_if_false @GYMLS_277
wait 0
goto @GYMLS_220

:GYMLS_277
43@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
58@ = DecisionMakerChar.Load(DecisionMakerType.Normal)
57@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
Game.SetRelationship(RelationshipType.Dislike, PedType.Mission2, PedType.Player1)
DecisionMakerChar.ClearEventResponse(58@, 31)
DecisionMakerChar.ClearEventResponse(57@, 31)
DecisionMakerChar.ClearEventResponse(58@, 9)
DecisionMakerChar.ClearEventResponse(58@, 15)
DecisionMakerChar.ClearEventResponse(58@, 37)
DecisionMakerChar.ClearEventResponse(57@, 37)
DecisionMakerChar.AddEventResponse(58@, 31, 413, 100.0, 100.0, 100.0, 100.0, True, True)
DecisionMakerChar.AddEventResponse(58@, 9, 415, 100.0, 100.0, 100.0, 100.0, True, True)
DecisionMakerChar.AddEventResponse(58@, 15, 300, 100.0, 100.0, 100.0, 100.0, True, True)
DecisionMakerChar.AddEventResponse(57@, 31, 413, 100.0, 100.0, 100.0, 100.0, True, True)
DecisionMakerChar.AddEventResponse(57@, 15, 300, 100.0, 100.0, 100.0, 100.0, True, True)
DecisionMakerChar.AddEventResponse(58@, 37, 300, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse(57@, 37, 300, 0.0, 100.0, 0.0, 0.0, True, True)
40@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 762.8681, 7.4928, 999.7141, 4, -1)
Task.AchieveHeading(-1, 13.3401)
Task.PlayAnim(-1, "RIOT_PUNCHES", "RIOT", 4.0, False, False, False, False, -1)
Sequence.SetToRepeat(40@, True)
Sequence.Close(40@)
54@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 765.2909, 16.0319, 999.698, 4, -1)
Task.AchieveHeading(-1, 198.8789)
Sequence.SetToRepeat(54@, True)
Sequence.Close(54@)
53@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 767.2571, 14.4044, 999.6998, 4, -1)
Task.AchieveHeading(-1, 263.2938)
Task.PlayAnim(-1, "GYMSHADOWBOX", "GYMNASIUM", 4.0, False, False, False, False, -1)
Sequence.SetToRepeat(53@, True)
Sequence.Close(53@)
49@ = Sequence.Open()
Task.PlayAnim(-1, "RIOT_SHOUT", "RIOT", 4.0, False, False, False, False, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Task.Pause(-1, 1000)
Sequence.SetToRepeat(49@, True)
Sequence.Close(49@)
50@ = Sequence.Open()
Task.Pause(-1, 500)
Task.PlayAnim(-1, "RIOT_SHOUT", "RIOT", 4.0, False, False, False, False, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.SetToRepeat(50@, True)
Sequence.Close(50@)
51@ = Sequence.Open()
Task.Pause(-1, 750)
Task.PlayAnim(-1, "RIOT_SHOUT", "RIOT", 4.0, False, False, False, False, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.SetToRepeat(51@, True)
Sequence.Close(51@)
34@ = Char.Create(PedType.Mission2, 81, 761.6263, 11.4876, 1000.164)
Char.SetHeading(34@, 128.1297)
Char.SetDecisionMaker(34@, 58@)
Char.SetOnlyDamagedByPlayer(34@, True)
Char.ShutUp(34@, True)
35@ = Char.Create(PedType.Mission2, 81, 760.343, 10.1973, 999.7099)
Char.SetHeading(35@, 310.2206)
Char.SetDecisionMaker(35@, 58@)
Char.SetOnlyDamagedByPlayer(35@, True)
Char.ShutUp(34@, True)
52@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 761.6263, 11.4876, 1000.164, 4, -1)
Task.AchieveHeading(-1, 128.1297)
if 
  not Char.IsDead(34@)
goto_if_false @GYMLS_1192
Task.KillCharOnFoot(-1, 35@)

:GYMLS_1192
Sequence.SetToRepeat(52@, True)
Sequence.Close(52@)
41@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 760.343, 10.1973, 999.7099, 4, -1)
Task.AchieveHeading(-1, 310.2206)
if 
  not Char.IsDead(34@)
goto_if_false @GYMLS_1264
Task.KillCharOnFoot(-1, 34@)

:GYMLS_1264
Sequence.SetToRepeat(41@, True)
Sequence.Close(41@)
Char.PerformSequence(34@, 52@)
Char.PerformSequence(35@, 41@)
37@ = Char.Create(PedType.Mission2, 19, 762.8681, 7.4928, 999.7141)
Char.SetHeading(37@, 13.3401)
Char.PerformSequence(37@, 40@)
Char.SetDecisionMaker(37@, 57@)
39@ = Char.Create(PedType.Mission2, 80, 767.2571, 14.4044, 999.6998)
Char.SetHeading(39@, 263.2938)
Char.SetDecisionMaker(39@, 57@)
Char.PerformSequence(39@, 53@)
Char.GiveMeleeAttack(39@, FightStyle.Boxeo, 6)
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1820)

:GYMLS_1412
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @GYMLS_1438
wait 0
goto @GYMLS_1412

:GYMLS_1438
TIMERA = 0
64@ = 2
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @GYMLS_1489
$gym_final_month = 0.0

:GYMLS_1489
wait 0
gosub @GYMLS_6164
if 
  48@ == 0
goto_if_false @GYMLS_1667
if 
  not Char.IsDead(34@)
goto_if_false @GYMLS_1589
if 
  Char.IsPlayingAnim(34@, "GYM_SHADOWBOX")
goto_if_false @GYMLS_1589
Char.SetAnimCurrentTime(34@, "GYMSHADOWBOX", 0.0)

:GYMLS_1589
if 
  not Char.IsDead(35@)
goto_if_false @GYMLS_1660
if 
  Char.IsPlayingAnim(35@, "GYM_SHADOWBOX")
goto_if_false @GYMLS_1660
Char.SetAnimCurrentTime(35@, "GYMSHADOWBOX", 0.5)

:GYMLS_1660
48@ = 1

:GYMLS_1667
if and
  Char.IsDead(34@)
  TIMERA > 20000
goto_if_false @GYMLS_1727
if 
  not Char.IsDead(35@)
goto_if_false @GYMLS_1727
Char.ClearTasks(35@)
Task.Duck(35@, 20000)
TIMERA = 0

:GYMLS_1727
if and
  Char.IsDead(35@)
  TIMERA > 20000
goto_if_false @GYMLS_1787
if 
  not Char.IsDead(34@)
goto_if_false @GYMLS_1787
Char.ClearTasks(34@)
Task.Duck(34@, 20000)
TIMERA = 0

:GYMLS_1787
if 
  Char.LocateAnyMeans3D($scplayer, 760.8566, 11.063, 1000.164, 3.0, 3.0, 2.0, False)
goto_if_false @GYMLS_1941
if 
  59@ == 0
goto_if_false @GYMLS_1934
if 
  not Char.IsDead(34@)
goto_if_false @GYMLS_1890
Char.ClearTasksImmediately(34@)
Char.SetDecisionMaker(34@, 57@)
Task.KillCharOnFoot(34@, $scplayer)

:GYMLS_1890
if 
  not Char.IsDead(35@)
goto_if_false @GYMLS_1927
Char.ClearTasksImmediately(35@)
Char.SetDecisionMaker(35@, 57@)
Task.KillCharOnFoot(35@, $scplayer)

:GYMLS_1927
59@ = 1

:GYMLS_1934
goto @GYMLS_2029

:GYMLS_1941
if 
  59@ == 1
goto_if_false @GYMLS_2029
if and
  not Char.IsDead(34@)
  not Char.IsDead(35@)
goto_if_false @GYMLS_2022
Char.ClearTasksImmediately(34@)
Char.SetDecisionMaker(34@, 58@)
Char.PerformSequence(34@, 52@)
Char.ClearTasksImmediately(35@)
Char.SetDecisionMaker(35@, 58@)
Char.PerformSequence(35@, 41@)

:GYMLS_2022
59@ = 0

:GYMLS_2029
$main_visible_area = Char.GetAreaVisible($scplayer)
if 
  $main_visible_area == 0
goto_if_false @GYMLS_2062
goto @GYMLS_5862

:GYMLS_2062
if 
  not Char.LocateAnyMeans3D($scplayer, 767.1368, 12.511, 999.7036, 2.5, 2.5, 4.0, False)
goto_if_false @GYMLS_2117
46@ = 0

:GYMLS_2117
if 
  not Char.IsDead(39@)
goto_if_false @GYMLS_5855
if and
  46@ == 0
  Char.LocateAnyMeans3D(39@, 767.2571, 14.4044, 999.6998, 1.0, 1.0, 1.2, False)
goto_if_false @GYMLS_5855
if 
  Char.LocateStoppedAnyMeans3D($scplayer, 767.1368, 12.511, 999.7036, 0.6, 0.6, 1.0, True)
goto_if_false @GYMLS_2236

:GYMLS_2236
if and
  Char.LocateStoppedAnyMeans3D($scplayer, 767.1368, 12.511, 999.7036, 1.2, 1.2, 1.2, False)
  not Char.IsDead(39@)
goto_if_false @GYMLS_5855
if and
  not Char.IsDead(39@)
  not Char.IsDead($scplayer)
goto_if_false @GYMLS_2343
Player.SetControl($player1, False)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately(39@)
Task.TurnCharToFaceChar(39@, $scplayer)
Task.TurnCharToFaceChar($scplayer, 39@)

:GYMLS_2343
if 
  $player_been_taught_move == 0
goto_if_false @GYMLS_2418
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 30200)

:GYMLS_2372
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLS_2398
wait 0
goto @GYMLS_2372

:GYMLS_2398
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('BBOX_1', 3000, 1)

:GYMLS_2418
if 
  $player_been_taught_move == 1
goto_if_false @GYMLS_2493
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 30203)

:GYMLS_2447
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLS_2473
wait 0
goto @GYMLS_2447

:GYMLS_2473
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('BBOX_4', 3000, 1)

:GYMLS_2493
Text.PrintHelpForever('TALK_1')

:GYMLS_2504
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLS_2852
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @GYMLS_2717
60@ = Stat.GetFloat(StatId.BodyMuscle)
if 
  60@ > 349.0
goto_if_false @GYMLS_2592
44@ = 1
Text.ClearHelp
goto @GYMLS_2852
goto @GYMLS_2717

:GYMLS_2592
44@ = 0
46@ = 1
Text.ClearHelp
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 30202)

:GYMLS_2619
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLS_2645
wait 0
goto @GYMLS_2619

:GYMLS_2645
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('BBOX_3', 3000, 1)
Player.SetControl($player1, True)
if 
  not Char.IsDead(39@)
goto_if_false @GYMLS_2696
Char.PerformSequence(39@, 53@)

:GYMLS_2696
TIMERA = 0
55@ = 1
goto @GYMLS_1489

:GYMLS_2717
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @GYMLS_2845
44@ = 0
46@ = 1
Text.ClearHelp
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 30201)

:GYMLS_2761
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLS_2787
wait 0
goto @GYMLS_2761

:GYMLS_2787
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('BBOX_2', 3000, 1)
Player.SetControl($player1, True)
if 
  not Char.IsDead(39@)
goto_if_false @GYMLS_2838
Char.PerformSequence(39@, 53@)

:GYMLS_2838
goto @GYMLS_1489

:GYMLS_2845
goto @GYMLS_2504

:GYMLS_2852
Text.ClearHelp
Text.ClearPrints
Pad.SetPlayerCycleWeaponButton($player1, False)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
gosub @GYMLS_6055
Char.Delete(37@)
Char.Delete(34@)
Char.Delete(35@)
34@ = Char.Create(PedType.Mission2, 81, 761.6934, 4.2203, 999.7099)
Char.SetHeading(34@, 171.4614)
Char.PerformSequence(34@, 49@)
35@ = Char.Create(PedType.Mission2, 81, 764.7962, 0.7163, 999.715)
Char.SetHeading(35@, 93.8066)
Char.PerformSequence(35@, 50@)
37@ = Char.Create(PedType.Mission2, 19, 759.5085, 4.2343, 999.7051)
Char.SetHeading(37@, 189.7654)
Char.PerformSequence(37@, 51@)
if 
  not Char.IsDead(39@)
goto_if_false @GYMLS_3080
Char.SetCoordinatesDontWarpGang(39@, 762.616, 2.1235, 1000.594)
Char.SetHeading(39@, 135.5749)
Char.SetHealth(39@, 1000)
Char.SetMaxHealth(39@, 1000)

:GYMLS_3080
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLS_3126
Char.SetCoordinatesDontWarpGang($scplayer, 759.0147, -1.7235, 1000.594)
Char.SetHeading($scplayer, 312.9747)

:GYMLS_3126
if 
  not Char.IsDead(39@)
goto_if_false @GYMLS_3174
Char.SetDecisionMaker(39@, 57@)
Task.KillCharOnFoot(39@, $scplayer)
Char.GiveMeleeAttack(39@, FightStyle.Boxeo, 6)
Char.SetShootRate(39@, 100)

:GYMLS_3174
Camera.SetBehindPlayer
Player.SetControl($player1, True)
if 
  $player_been_taught_move == 0
goto_if_false @GYMLS_3212
Text.PrintHelpForever('GYM1101')

:GYMLS_3212
if 
  $player_been_taught_move == 1
goto_if_false @GYMLS_3241
Text.PrintHelpForever('GYM1_84')

:GYMLS_3241
gosub @GYMLS_6111
TIMERA = 0
TIMERB = 0
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
  not Char.IsDead($scplayer)
goto_if_false @GYMLS_3290
Audio.ReportMissionAudioEventAtChar($scplayer, 1115)

:GYMLS_3290
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLS_3807
wait 0
if 
  not Char.IsDead(35@)
goto_if_false @GYMLS_3381
if 
  not Char.LocateAnyMeans3D(35@, 761.0182, 0.6609, 1000.594, 6.0, 6.0, 6.0, False)
goto_if_false @GYMLS_3381
goto @GYMLS_3807

:GYMLS_3381
if 
  not Char.IsDead(34@)
goto_if_false @GYMLS_3437
if and
  TIMERB > 3000
  65@ == 0
goto_if_false @GYMLS_3430
65@ = 1

:GYMLS_3430
TIMERB = 0

:GYMLS_3437
if 
  not Char.IsDead(35@)
goto_if_false @GYMLS_3493
if and
  TIMERB > 3000
  65@ == 1
goto_if_false @GYMLS_3486
65@ = 0

:GYMLS_3486
TIMERB = 0

:GYMLS_3493
if 
  $player_been_taught_move == 1
goto_if_false @GYMLS_3777
if 
  56@ == 0
goto_if_false @GYMLS_3556
TIMERA = 0
Text.ClearHelp
Text.PrintHelpForever('GYM1_94')
56@ = 1

:GYMLS_3556
if 
  not Game.IsGerman
goto_if_false @GYMLS_3682
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMLS_3622
Text.ClearHelp
Text.PrintHelpForever('GYM1_95')
TIMERA = 0
56@ = 2

:GYMLS_3622
if and
  TIMERA > 6000
  56@ == 2
goto_if_false @GYMLS_3675
Text.ClearHelp
Text.PrintHelpForever('GYM1_96')
TIMERA = 0
56@ = 3

:GYMLS_3675
goto @GYMLS_3735

:GYMLS_3682
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMLS_3735
Text.ClearHelp
Text.PrintHelpForever('GYM1_96')
TIMERA = 0
56@ = 3

:GYMLS_3735
if and
  TIMERA > 6000
  56@ == 3
goto_if_false @GYMLS_3777
Text.ClearHelp
TIMERA = 0
56@ = 0

:GYMLS_3777
if 
  Char.IsDead(39@)
goto_if_false @GYMLS_3800
goto @GYMLS_3807

:GYMLS_3800
goto @GYMLS_3290

:GYMLS_3807
Text.ClearHelp
if 
  $player_been_taught_move == 1
goto_if_false @GYMLS_3834
goto @GYMLS_5431

:GYMLS_3834
gosub @GYMLS_6055
Char.Delete(39@)
World.ClearArea(760.7445, 0.6538, 1000.594, 10.0, True)
gosub @GYMLS_6003
39@ = Char.Create(PedType.Mission2, 80, 762.616, 2.1235, 1000.594)
Char.SetHeading(39@, 135.5749)
Char.SetDecisionMaker(39@, 43@)
Char.ClearTasksImmediately(39@)
Char.SetDecisionMaker(39@, 43@)
Char.GiveMeleeAttack(39@, FightStyle.Boxeo, 6)
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLS_3987
Char.SetCoordinatesDontWarpGang($scplayer, 759.0147, -1.7235, 1000.594)
Char.SetHeading($scplayer, 312.9747)

:GYMLS_3987
Char.Delete(34@)
Char.Delete(35@)
Char.Delete(37@)
Camera.SetFixedPosition(764.0964, -4.8216, 1003.062, 0.0, 0.0, 0.0)
Camera.PointAtPoint(763.5206, -4.0516, 1002.787, SwitchType.JumpCut)
gosub @GYMLS_6111
Text.PrintNow('BBOX_5', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 30204)

:GYMLS_4087
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLS_4130
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLS_4123

:GYMLS_4123
goto @GYMLS_4087

:GYMLS_4130
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
wait 1000
TIMERA = 0

:GYMLS_4146
if 
  2000 > TIMERA
goto_if_false @GYMLS_4193
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLS_4186

:GYMLS_4186
goto @GYMLS_4146

:GYMLS_4193
Camera.SetFixedPosition(762.5212, -0.4172, 1001.843, 0.0, 0.0, 0.0)
Camera.PointAtPoint(762.5431, 0.5793, 1001.762, SwitchType.JumpCut)
Text.PrintNow('GYM1_97', 2000, 1)
TIMERA = 0

:GYMLS_4267
if 
  2000 > TIMERA
goto_if_false @GYMLS_4314
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLS_4307

:GYMLS_4307
goto @GYMLS_4267

:GYMLS_4314
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 30205)

:GYMLS_4325
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLS_4368
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLS_4361

:GYMLS_4361
goto @GYMLS_4325

:GYMLS_4368
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GYM1_94', 4000, 1)
TIMERA = 0

:GYMLS_4395
if 
  4000 > TIMERA
goto_if_false @GYMLS_4442
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLS_4435

:GYMLS_4435
goto @GYMLS_4395

:GYMLS_4442
if 
  not Char.IsDead(39@)
goto_if_false @GYMLS_4497
Task.PlayAnim(39@, "FIGHTB_M", "FIGHT_B", 4.0, False, True, True, False, -1)

:GYMLS_4497
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLS_4545
Task.PlayAnim($scplayer, "FUCKU", "PED", 4.0, False, True, True, False, -1)

:GYMLS_4545
TIMERA = 0

:GYMLS_4552
if 
  3000 > TIMERA
goto_if_false @GYMLS_4599
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLS_4592

:GYMLS_4592
goto @GYMLS_4552

:GYMLS_4599
if 
  not Game.IsGerman
goto_if_false @GYMLS_5018
Camera.SetFixedPosition(759.6699, 1.9955, 1001.068, 0.0, 0.0, 0.0)
Camera.PointAtPoint(760.6637, 2.0051, 1001.178, SwitchType.JumpCut)
Text.PrintNow('GYM1_98', 2000, 1)
TIMERA = 0

:GYMLS_4686
if 
  2000 > TIMERA
goto_if_false @GYMLS_4733
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLS_4726

:GYMLS_4726
goto @GYMLS_4686

:GYMLS_4733
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 30206)

:GYMLS_4744
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLS_4787
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLS_4780

:GYMLS_4780
goto @GYMLS_4744

:GYMLS_4787
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GYM1_95', 4000, 1)
TIMERA = 0

:GYMLS_4814
if 
  4000 > TIMERA
goto_if_false @GYMLS_4861
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLS_4854

:GYMLS_4854
goto @GYMLS_4814

:GYMLS_4861
if 
  not Char.IsDead(39@)
goto_if_false @GYMLS_4916
Task.PlayAnim(39@, "FIGHTB_G", "FIGHT_B", 4.0, False, True, True, False, -1)

:GYMLS_4916
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLS_4964
Task.PlayAnim($scplayer, "FUCKU", "PED", 4.0, False, True, True, False, -1)

:GYMLS_4964
TIMERA = 0

:GYMLS_4971
if 
  3000 > TIMERA
goto_if_false @GYMLS_5018
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLS_5011

:GYMLS_5011
goto @GYMLS_4971

:GYMLS_5018
Camera.SetFixedPosition(764.5368, 3.1767, 1002.349, 0.0, 0.0, 0.0)
Camera.PointAtPoint(763.7495, 2.6046, 1002.12, SwitchType.JumpCut)
Text.PrintNow('GYM1_99', 2000, 1)
TIMERA = 0

:GYMLS_5092
if 
  2000 > TIMERA
goto_if_false @GYMLS_5139
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLS_5132

:GYMLS_5132
goto @GYMLS_5092

:GYMLS_5139
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 30207)

:GYMLS_5150
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLS_5193
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLS_5186

:GYMLS_5186
goto @GYMLS_5150

:GYMLS_5193
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GYM1_96', 4000, 1)
TIMERA = 0

:GYMLS_5220
if 
  4000 > TIMERA
goto_if_false @GYMLS_5267
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLS_5260

:GYMLS_5260
goto @GYMLS_5220

:GYMLS_5267
if 
  not Char.IsDead(39@)
goto_if_false @GYMLS_5329
Char.FreezePosition(39@, True)
Task.PlayAnim(39@, "FIGHTB_3", "FIGHT_B", 4.0, False, True, True, False, -1)

:GYMLS_5329
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLS_5377
Task.PlayAnim($scplayer, "FUCKU", "PED", 4.0, False, False, False, True, -1)

:GYMLS_5377
TIMERA = 0

:GYMLS_5384
if 
  2000 > TIMERA
goto_if_false @GYMLS_5431
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLS_5424

:GYMLS_5424
goto @GYMLS_5384

:GYMLS_5431
Char.Delete(37@)
Char.Delete(34@)
Char.Delete(35@)
gosub @GYMLS_6055
34@ = Char.Create(PedType.Mission2, 81, 761.6263, 11.4876, 1000.164)
Char.SetHeading(34@, 128.1297)
Char.SetDecisionMaker(34@, 58@)
Char.SetOnlyDamagedByPlayer(34@, True)
Char.ShutUp(34@, True)
35@ = Char.Create(PedType.Mission2, 81, 760.343, 10.1973, 999.7099)
Char.SetHeading(35@, 310.2206)
Char.SetDecisionMaker(35@, 58@)
Char.SetOnlyDamagedByPlayer(35@, True)
Char.ShutUp(34@, True)
Char.PerformSequence(34@, 52@)
Char.PerformSequence(35@, 41@)
37@ = Char.Create(PedType.Mission2, 19, 762.8681, 7.4928, 999.7141)
Char.SetHeading(37@, 13.3401)
Char.PerformSequence(37@, 40@)
Char.SetDecisionMaker(37@, 57@)
Char.Delete(39@)
39@ = Char.Create(PedType.Mission2, 80, 767.2571, 14.4044, 999.6998)
Char.SetHeading(39@, 263.2938)
Char.SetDecisionMaker(39@, 57@)
Char.PerformSequence(39@, 53@)
Char.GiveMeleeAttack(39@, FightStyle.Boxeo, 6)
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLS_5741
Char.SetCoordinatesDontWarpGang($scplayer, 765.6662, 2.7963, 999.718)
Char.SetHeading($scplayer, 277.3348)

:GYMLS_5741
gosub @GYMLS_6027
gosub @GYMLS_6111
if 
  $ls_has_the_knuckle_duster == 0
goto_if_false @GYMLS_5784
Stat.PlayerMadeProgress(1)
$ls_has_the_knuckle_duster = 1

:GYMLS_5784
Char.GiveMeleeAttack($scplayer, FightStyle.Boxeo, 6)
if 
  $player_been_taught_move == 0
goto_if_false @GYMLS_5827
Text.PrintNow('GYM1_93', 3000, 1)

:GYMLS_5827
$gym_sf_defeated = 0
$player_been_taught_move = 1
$8156 = 0
Pad.SetPlayerCycleWeaponButton($player1, True)

:GYMLS_5855
goto @GYMLS_1489

:GYMLS_5862
return 
Text.PrintWithNumberBig('M_PASS', 30000, 5000, TextStyle.Middle)
Player.AddScore($player1, 30000)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
return 

:GYMLS_5902
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLS_5925
Char.ListenToPlayerGroupCommands($scplayer, True)

:GYMLS_5925
Streaming.MarkModelAsNoLongerNeeded(80)
Streaming.MarkModelAsNoLongerNeeded(81)
Streaming.MarkModelAsNoLongerNeeded(19)
Streaming.RemoveAnimation("GYMNASIUM")
Streaming.RemoveAnimation("RIOT")
Streaming.RemoveAnimation("FIGHT_B")
Streaming.RemoveAnimation("INT_SHOP")
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
$gym_is_running = 0
$onmission = 0
Mission.Finish
return 

:GYMLS_6003
Text.ClearHelp
Text.ClearPrints
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
return 

:GYMLS_6027
Text.ClearHelp
Text.ClearPrints
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Game.SetEveryoneIgnorePlayer($player1, False)
return 

:GYMLS_6055
Camera.DoFade(500, Fade.Out)

:GYMLS_6062
if 
  Camera.GetFadingStatus
goto_if_false @GYMLS_6109
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLS_6102
Camera.DoFade(1, Fade.Out)

:GYMLS_6102
goto @GYMLS_6062

:GYMLS_6109
return 

:GYMLS_6111
Camera.DoFade(500, Fade.In)

:GYMLS_6118
if 
  Camera.GetFadingStatus
goto_if_false @GYMLS_6142
wait 0
goto @GYMLS_6118

:GYMLS_6142
return 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 63@)
64@ = 0
return 

:GYMLS_6164
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  64@ == 0
goto_if_false @GYMLS_6207
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(61@s, 10000, 1)
64@ = 1

:GYMLS_6207
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  64@ == 1
goto_if_false @GYMLS_6245
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint(61@s)
64@ = 2

:GYMLS_6245
return 

//-------------Mission 115---------------
// Originally: San Fierro Gym Fight School

:GYMSF
script_name 'GYMSF'
Camera.DoFade(0, Fade.Out)
gosub @GYMSF_61
Camera.SetFadingColor(0, 0, 0)
if 
  has_deatharrest_been_executed 
goto_if_false @GYMSF_52
gosub @GYMSF_5328

:GYMSF_52
gosub @GYMSF_5368
terminate_this_script 

:GYMSF_61
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMSF_84
Char.ListenToPlayerGroupCommands($scplayer, False)

:GYMSF_84
$gym_is_running = 1
63@ = 2
$onmission = 1
Stat.IncrementInt(StatId.VisitsToGym, 1)
Stat.RegisterMissionGiven
Text.LoadMissionText('GYM')
Streaming.RequestModel(96)
Streaming.RequestModel(203)
Streaming.RequestModel(97)
Streaming.RequestModel(49)
Streaming.RequestModel(204)

:GYMSF_147
if or
  not Streaming.HasModelLoaded(96)
  not Streaming.HasModelLoaded(203)
  not Streaming.HasModelLoaded(97)
  not Streaming.HasModelLoaded(49)
  not Streaming.HasModelLoaded(204)
goto_if_false @GYMSF_191
wait 0
goto @GYMSF_147

:GYMSF_191
Streaming.RequestAnimation("PARK")
Streaming.RequestAnimation("FIGHT_C")
Streaming.RequestAnimation("GYMNASIUM")

:GYMSF_223
if or
  not Streaming.HasAnimationLoaded("PARK")
  not Streaming.HasAnimationLoaded("FIGHT_C")
  not Streaming.HasAnimationLoaded("GYMNASIUM")
goto_if_false @GYMSF_277
wait 0
goto @GYMSF_223

:GYMSF_277
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1820)

:GYMSF_288
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @GYMSF_314
wait 0
goto @GYMSF_288

:GYMSF_314
40@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
57@ = DecisionMakerChar.Load(DecisionMakerType.Normal)
41@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
52@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 768.064, -41.5728, 999.6865, 4, -1)
Task.AchieveHeading(-1, 358.0992)
Task.LookAbout(-1, -2)
Sequence.Close(52@)
53@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 770.3961, -23.0853, 999.5938, 4, -1)
Task.AchieveHeading(-1, 87.3049)
Task.PlayAnim(-1, "TAI_CHI_LOOP", "PARK", 4.0, True, False, False, False, -1)
Sequence.Close(53@)
54@ = Sequence.Open()
Task.Pause(-1, 1000)
Task.GoToCoordAnyMeans(-1, 766.3062, -23.0554, 999.5938, 4, -1)
Task.AchieveHeading(-1, 272.4196)
Task.PlayAnim(-1, "TAI_CHI_LOOP", "PARK", 4.0, True, False, False, False, -1)
Sequence.Close(54@)
42@ = Sequence.Open()
Task.Pause(-1, 1000)
Task.GoToCoordAnyMeans(-1, 769.8199, -36.4933, 999.6865, 4, -1)
Task.AchieveHeading(-1, 88.548)
Task.PlayAnim(-1, "FIGHTC_IDLE", "FIGHT_C", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(42@, True)
Sequence.Close(42@)
43@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 767.057, -37.0465, 999.6865, 4, -1)
Task.AchieveHeading(-1, 270.0)
Task.PlayAnim(-1, "FIGHTC_IDLE", "FIGHT_C", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(43@, True)
Sequence.Close(43@)
48@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 768.064, -41.5728, 999.6865, 4, -1)
Task.AchieveHeading(-1, 358.0992)
Task.LookAbout(-1, -2)
Sequence.SetToRepeat(48@, True)
Sequence.Close(48@)
38@ = Char.Create(PedType.CivMale, 49, 768.064, -41.5728, 999.6865)
Char.SetHeading(38@, 358.0992)
Char.PerformSequence(38@, 48@)
Char.SetDecisionMaker(38@, 57@)
Char.GiveMeleeAttack(38@, FightStyle.KungFu, 6)
49@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 770.3961, -23.0853, 999.5938, 4, -1)
Task.AchieveHeading(-1, 87.3049)
Task.PlayAnim(-1, "TAI_CHI_LOOP", "PARK", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(49@, True)
Sequence.Close(49@)
35@ = Char.Create(PedType.CivMale, 96, 770.3961, -23.0853, 999.5938)
Char.SetHeading(35@, 87.3049)
Char.PerformSequence(35@, 49@)
Char.SetDecisionMaker(35@, 41@)
Char.GiveMeleeAttack(35@, FightStyle.KungFu, 6)
50@ = Sequence.Open()
Task.Pause(-1, 1000)
Task.GoToCoordAnyMeans(-1, 766.3062, -23.0554, 999.5938, 4, -1)
Task.AchieveHeading(-1, 272.4196)
Task.PlayAnim(-1, "TAI_CHI_LOOP", "PARK", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(50@, True)
Sequence.Close(50@)
34@ = Char.Create(PedType.CivMale, 97, 766.3062, -23.0554, 999.5938)
Char.SetHeading(34@, 272.4196)
Char.PerformSequence(34@, 50@)
Char.SetDecisionMaker(34@, 41@)
Char.GiveMeleeAttack(34@, FightStyle.KungFu, 6)
36@ = Char.Create(PedType.CivMale, 203, 769.8199, -36.4933, 999.6865)
Char.SetHeading(36@, 95.1885)
Char.PerformSequence(36@, 42@)
Char.SetDecisionMaker(36@, 41@)
Char.GiveMeleeAttack(36@, FightStyle.KungFu, 6)
37@ = Char.Create(PedType.CivMale, 204, 766.1017, -37.3952, 999.6865)
Char.SetHeading(37@, 271.1251)
Char.PerformSequence(37@, 43@)
Char.SetDecisionMaker(37@, 41@)
Char.GiveMeleeAttack(37@, FightStyle.KungFu, 6)
gosub @GYMSF_5567
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @GYMSF_1318
$gym_final_month = 0.0

:GYMSF_1318
wait 0
gosub @GYMSF_5620
if 
  51@ == 0
goto_if_false @GYMSF_1422
if 
  not Char.IsDead(37@)
goto_if_false @GYMSF_1422
if 
  Char.IsPlayingAnim(37@, "FIGHTC_SPAR")
goto_if_false @GYMSF_1422
Char.SetAnimCurrentTime(37@, "FIGHTC_SPAR", 0.45)
51@ = 1

:GYMSF_1422
$main_visible_area = Char.GetAreaVisible($scplayer)
if 
  $main_visible_area == 0
goto_if_false @GYMSF_1455
goto @GYMSF_5328

:GYMSF_1455
if 
  not Char.LocateAnyMeans3D($scplayer, 769.7938, -42.1122, 999.6865, 2.5, 2.5, 4.0, False)
goto_if_false @GYMSF_1510
47@ = 0

:GYMSF_1510
if 
  not Char.IsDead(38@)
goto_if_false @GYMSF_5321
if and
  47@ == 0
  Char.LocateAnyMeans3D(38@, 768.064, -41.5728, 999.6865, 1.0, 1.0, 1.2, False)
goto_if_false @GYMSF_5321
if 
  Char.LocateStoppedAnyMeans3D($scplayer, 769.7938, -42.1122, 999.6865, 0.6, 0.6, 1.0, True)
goto_if_false @GYMSF_1629

:GYMSF_1629
if and
  Char.LocateStoppedAnyMeans3D($scplayer, 769.7938, -42.1122, 999.6865, 1.2, 1.2, 1.2, False)
  not Char.IsDead(38@)
goto_if_false @GYMSF_5321
if and
  not Char.IsDead(38@)
  not Char.IsDead($scplayer)
goto_if_false @GYMSF_1731
Player.SetControl($player1, False)
Char.ClearTasksImmediately($scplayer)
Task.TurnCharToFaceChar(38@, $scplayer)
Task.TurnCharToFaceChar($scplayer, 38@)

:GYMSF_1731
if 
  $gym_sf_defeated == 0
goto_if_false @GYMSF_1806
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 28000)

:GYMSF_1760
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMSF_1786
wait 0
goto @GYMSF_1760

:GYMSF_1786
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('KUNG_1', 3000, 1)

:GYMSF_1806
if 
  $gym_sf_defeated == 1
goto_if_false @GYMSF_1881
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 28003)

:GYMSF_1835
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMSF_1861
wait 0
goto @GYMSF_1835

:GYMSF_1861
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('KUNG_4', 3000, 1)

:GYMSF_1881
Text.PrintHelpForever('GYM1_73')

:GYMSF_1892
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMSF_2216
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @GYMSF_2081
59@ = Stat.GetFloat(StatId.BodyMuscle)
if 
  59@ > 349.0
goto_if_false @GYMSF_1980
44@ = 1
Text.ClearHelp
goto @GYMSF_2218
goto @GYMSF_2081

:GYMSF_1980
44@ = 0
47@ = 1
Text.ClearHelp
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 28002)

:GYMSF_2007
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMSF_2033
wait 0
goto @GYMSF_2007

:GYMSF_2033
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('KUNG_3', 3000, 1)
Player.SetControl($player1, True)
TIMERA = 0
55@ = 1
goto @GYMSF_1318

:GYMSF_2081
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @GYMSF_2209
44@ = 0
47@ = 1
Text.ClearHelp
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 28001)

:GYMSF_2125
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMSF_2151
wait 0
goto @GYMSF_2125

:GYMSF_2151
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('KUNG_2', 3000, 1)
if 
  not Char.IsDead(38@)
goto_if_false @GYMSF_2195
Char.PerformSequence(38@, 48@)

:GYMSF_2195
Player.SetControl($player1, True)
goto @GYMSF_1318

:GYMSF_2209
goto @GYMSF_1892

:GYMSF_2216
Text.ClearHelp

:GYMSF_2218
Text.ClearHelp
Text.ClearPrints
Pad.SetPlayerCycleWeaponButton($player1, False)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
if 
  44@ == 1
goto_if_false @GYMSF_5321
gosub @GYMSF_5511
Char.Delete(36@)
Char.Delete(37@)
if 
  not Char.IsDead(38@)
goto_if_false @GYMSF_2333
Char.SetCoordinatesDontWarpGang(38@, 771.4357, -36.9728, 999.6865)
Char.SetHeading(38@, 88.1801)
Char.SetHealth(38@, 1000)
Char.SetMaxHealth(38@, 1000)

:GYMSF_2333
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMSF_2379
Char.SetCoordinatesDontWarpGang($scplayer, 764.6453, -37.1052, 999.6865)
Char.SetHeading($scplayer, 273.9816)

:GYMSF_2379
if 
  not Char.IsDead(38@)
goto_if_false @GYMSF_2427
Char.SetDecisionMaker(38@, 41@)
Task.KillCharOnFoot(38@, $scplayer)
Char.GiveMeleeAttack(38@, FightStyle.KungFu, 6)
Char.SetShootRate(38@, 100)

:GYMSF_2427
Camera.SetBehindPlayer
Player.SetControl($player1, True)
if 
  $gym_sf_defeated == 0
goto_if_false @GYMSF_2465
Text.PrintHelpForever('GYM1106')

:GYMSF_2465
if 
  $gym_sf_defeated == 1
goto_if_false @GYMSF_2494
Text.PrintHelpForever('GYM1_84')

:GYMSF_2494
gosub @GYMSF_5567
58@ = 0
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
  not Char.IsDead($scplayer)
goto_if_false @GYMSF_2536
Audio.ReportMissionAudioEventAtChar($scplayer, 1115)

:GYMSF_2536
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMSF_3285
wait 0
if 
  $gym_sf_defeated == 1
goto_if_false @GYMSF_2840
if 
  56@ == 0
goto_if_false @GYMSF_2619
TIMERA = 0
Text.ClearHelp
Text.PrintHelpForever('GYM1_94')
56@ = 1

:GYMSF_2619
if 
  not Game.IsGerman
goto_if_false @GYMSF_2745
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMSF_2685
Text.ClearHelp
Text.PrintHelpForever('GYM1_95')
TIMERA = 0
56@ = 2

:GYMSF_2685
if and
  TIMERA > 6000
  56@ == 2
goto_if_false @GYMSF_2738
Text.ClearHelp
Text.PrintHelpForever('GYM1_96')
TIMERA = 0
56@ = 3

:GYMSF_2738
goto @GYMSF_2798

:GYMSF_2745
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMSF_2798
Text.ClearHelp
Text.PrintHelpForever('GYM1_96')
TIMERA = 0
56@ = 3

:GYMSF_2798
if and
  TIMERA > 6000
  56@ == 3
goto_if_false @GYMSF_2840
Text.ClearHelp
TIMERA = 0
56@ = 0

:GYMSF_2840
if 
  not Char.IsDead(38@)
goto_if_false @GYMSF_2911
if 
  not Char.LocateAnyMeans3D(38@, 768.4611, -36.6685, 999.6865, 6.0, 6.0, 6.0, False)
goto_if_false @GYMSF_2911
goto @GYMSF_3285

:GYMSF_2911
if 
  not Char.LocateAnyMeans3D($scplayer, 768.4611, -36.6685, 999.6865, 6.0, 6.0, 6.0, False)
goto_if_false @GYMSF_3255
gosub @GYMSF_5511
Char.Delete(38@)
38@ = Char.Create(PedType.CivMale, 49, 768.064, -41.5728, 999.6865)
Char.SetHeading(38@, 358.0992)
Char.PerformSequence(38@, 48@)
Char.SetDecisionMaker(38@, 41@)
Char.GiveMeleeAttack(38@, FightStyle.KungFu, 6)
36@ = Char.Create(PedType.CivMale, 203, 769.8199, -36.4933, 999.6865)
Char.SetHeading(36@, 95.1885)
Char.PerformSequence(36@, 42@)
Char.SetDecisionMaker(36@, 41@)
Char.GiveMeleeAttack(36@, FightStyle.KungFu, 6)
37@ = Char.Create(PedType.CivMale, 204, 766.1017, -37.3952, 999.6865)
Char.SetHeading(37@, 271.1251)
Char.PerformSequence(37@, 43@)
Char.SetDecisionMaker(37@, 41@)
Char.GiveMeleeAttack(37@, FightStyle.KungFu, 6)
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMSF_3203
Char.SetCoordinatesDontWarpGang($scplayer, 762.756, -37.2153, 999.6865)
Char.SetHeading($scplayer, 90.0)
Player.SetControl($player1, True)

:GYMSF_3203
Text.ClearPrints
Text.ClearHelp
gosub @GYMSF_5567
if 
  $gym_sf_defeated == 0
goto_if_false @GYMSF_3248
Text.PrintNow('GYM1_92', 5000, 1)

:GYMSF_3248
goto @GYMSF_1318

:GYMSF_3255
if 
  Char.IsDead(38@)
goto_if_false @GYMSF_3278
goto @GYMSF_3285

:GYMSF_3278
goto @GYMSF_2536

:GYMSF_3285
Text.ClearHelp
if 
  $gym_sf_defeated == 1
goto_if_false @GYMSF_3319
gosub @GYMSF_5511
goto @GYMSF_4956

:GYMSF_3319
gosub @GYMSF_5511
Char.Delete(38@)
World.ClearArea(768.1746, -36.6986, 999.6865, 5.0, True)
38@ = Char.Create(PedType.CivMale, 49, 768.064, -41.5728, 999.6865)
Char.SetHeading(38@, 358.0992)
Char.SetDecisionMaker(38@, 40@)
if 
  not Char.IsDead(38@)
goto_if_false @GYMSF_3443
Char.SetCoordinatesDontWarpGang(38@, 771.4357, -36.9728, 999.6865)
Char.SetHeading(38@, 88.1801)

:GYMSF_3443
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMSF_3494
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinatesDontWarpGang($scplayer, 764.6453, -37.1052, 999.6865)
Char.SetHeading($scplayer, 273.9816)

:GYMSF_3494
if 
  not Char.IsDead(38@)
goto_if_false @GYMSF_3520
Char.SetDecisionMaker(38@, 65542)

:GYMSF_3520
gosub @GYMSF_5467
Camera.SetFixedPosition(762.8773, -35.4754, 1001.545, 0.0, 0.0, 0.0)
Camera.PointAtPoint(763.8198, -35.703, 1001.3, SwitchType.JumpCut)
gosub @GYMSF_5567
Text.PrintNow('KUNG_5', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 28004)

:GYMSF_3612
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMSF_3655
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMSF_3648

:GYMSF_3648
goto @GYMSF_3612

:GYMSF_3655
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
wait 1000
TIMERA = 0

:GYMSF_3671
if 
  2000 > TIMERA
goto_if_false @GYMSF_3718
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMSF_3711

:GYMSF_3711
goto @GYMSF_3671

:GYMSF_3718
Camera.SetFixedPosition(767.428, -39.4061, 1000.416, 0.0, 0.0, 0.0)
Camera.PointAtPoint(768.1919, -38.7609, 1000.4, SwitchType.JumpCut)
Text.PrintNow('GYM1_97', 2000, 1)
TIMERA = 0

:GYMSF_3792
if 
  2000 > TIMERA
goto_if_false @GYMSF_3839
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMSF_3832

:GYMSF_3832
goto @GYMSF_3792

:GYMSF_3839
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 28005)

:GYMSF_3850
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMSF_3893
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMSF_3886

:GYMSF_3886
goto @GYMSF_3850

:GYMSF_3893
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GYM1_94', 4000, 1)
TIMERA = 0

:GYMSF_3920
if 
  4000 > TIMERA
goto_if_false @GYMSF_3967
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMSF_3960

:GYMSF_3960
goto @GYMSF_3920

:GYMSF_3967
if 
  not Char.IsDead(38@)
goto_if_false @GYMSF_4022
Task.PlayAnim(38@, "FIGHTC_M", "FIGHT_C", 4.0, False, True, True, False, -1)

:GYMSF_4022
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMSF_4070
Task.PlayAnim($scplayer, "FUCKU", "PED", 4.0, False, True, True, False, -1)

:GYMSF_4070
TIMERA = 0

:GYMSF_4077
if 
  3000 > TIMERA
goto_if_false @GYMSF_4124
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMSF_4117

:GYMSF_4117
goto @GYMSF_4077

:GYMSF_4124
if 
  not Game.IsGerman
goto_if_false @GYMSF_4543
Camera.SetFixedPosition(768.0062, -35.1731, 1000.276, 0.0, 0.0, 0.0)
Camera.PointAtPoint(768.757, -35.8325, 1000.314, SwitchType.JumpCut)
Text.PrintNow('GYM1_98', 2000, 1)
TIMERA = 0

:GYMSF_4211
if 
  2000 > TIMERA
goto_if_false @GYMSF_4258
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMSF_4251

:GYMSF_4251
goto @GYMSF_4211

:GYMSF_4258
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 28006)

:GYMSF_4269
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMSF_4312
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMSF_4305

:GYMSF_4305
goto @GYMSF_4269

:GYMSF_4312
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GYM1_95', 4000, 1)
TIMERA = 0

:GYMSF_4339
if 
  4000 > TIMERA
goto_if_false @GYMSF_4386
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMSF_4379

:GYMSF_4379
goto @GYMSF_4339

:GYMSF_4386
if 
  not Char.IsDead(38@)
goto_if_false @GYMSF_4441
Task.PlayAnim(38@, "FIGHTC_G", "FIGHT_C", 4.0, False, True, True, False, -1)

:GYMSF_4441
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMSF_4489
Task.PlayAnim($scplayer, "FUCKU", "PED", 4.0, False, True, True, False, -1)

:GYMSF_4489
TIMERA = 0

:GYMSF_4496
if 
  3000 > TIMERA
goto_if_false @GYMSF_4543
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMSF_4536

:GYMSF_4536
goto @GYMSF_4496

:GYMSF_4543
Camera.SetFixedPosition(772.6448, -38.011, 1000.478, 0.0, 0.0, 0.0)
Camera.PointAtPoint(771.679, -37.7522, 1000.485, SwitchType.JumpCut)
Text.PrintNow('GYM1_99', 2000, 1)
TIMERA = 0

:GYMSF_4617
if 
  2000 > TIMERA
goto_if_false @GYMSF_4664
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMSF_4657

:GYMSF_4657
goto @GYMSF_4617

:GYMSF_4664
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 28007)

:GYMSF_4675
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMSF_4718
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMSF_4711

:GYMSF_4711
goto @GYMSF_4675

:GYMSF_4718
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GYM1_96', 4000, 1)
TIMERA = 0

:GYMSF_4745
if 
  4000 > TIMERA
goto_if_false @GYMSF_4792
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMSF_4785

:GYMSF_4785
goto @GYMSF_4745

:GYMSF_4792
if 
  not Char.IsDead(38@)
goto_if_false @GYMSF_4854
Char.FreezePosition(38@, True)
Task.PlayAnim(38@, "FIGHTC_3", "FIGHT_C", 4.0, False, True, True, False, -1)

:GYMSF_4854
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMSF_4902
Task.PlayAnim($scplayer, "FUCKU", "PED", 4.0, False, False, False, True, -1)

:GYMSF_4902
TIMERA = 0

:GYMSF_4909
if 
  2000 > TIMERA
goto_if_false @GYMSF_4956
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMSF_4949

:GYMSF_4949
goto @GYMSF_4909

:GYMSF_4956
gosub @GYMSF_5511
Char.Delete(38@)
38@ = Char.Create(PedType.CivMale, 49, 768.064, -41.5728, 999.6865)
Char.SetHeading(38@, 358.0992)
Char.PerformSequence(38@, 48@)
Char.SetDecisionMaker(38@, 41@)
Char.GiveMeleeAttack(38@, FightStyle.KungFu, 6)
36@ = Char.Create(PedType.CivMale, 203, 769.8199, -36.4933, 999.6865)
Char.SetHeading(36@, 95.1885)
Char.PerformSequence(36@, 42@)
Char.SetDecisionMaker(36@, 41@)
Char.GiveMeleeAttack(36@, FightStyle.KungFu, 6)
37@ = Char.Create(PedType.CivMale, 204, 766.1017, -37.3952, 999.6865)
Char.SetHeading(37@, 271.1251)
Char.PerformSequence(37@, 43@)
Char.SetDecisionMaker(37@, 41@)
Char.GiveMeleeAttack(37@, FightStyle.KungFu, 6)
gosub @GYMSF_5487
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMSF_5214
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinatesDontWarpGang($scplayer, 765.9402, -41.602, 999.6865)
Char.SetHeading($scplayer, 265.007)
Player.SetControl($player1, True)
Camera.SetBehindPlayer

:GYMSF_5214
gosub @GYMSF_5567
if 
  $gym_ls_defeated == 0
goto_if_false @GYMSF_5250
Stat.PlayerMadeProgress(1)
$gym_ls_defeated = 1

:GYMSF_5250
if 
  $gym_sf_defeated == 0
goto_if_false @GYMSF_5284
Text.PrintNow('GYM1_93', 3000, 1)

:GYMSF_5284
Char.GiveMeleeAttack($scplayer, FightStyle.KungFu, 6)
Pad.SetPlayerCycleWeaponButton($player1, True)
$gym_sf_defeated = 1
$player_been_taught_move = 0
$8156 = 0

:GYMSF_5321
goto @GYMSF_1318

:GYMSF_5328
return 
Text.PrintWithNumberBig('M_PASS', 30000, 5000, TextStyle.Middle)
Player.AddScore($player1, 30000)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
return 

:GYMSF_5368
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMSF_5391
Char.ListenToPlayerGroupCommands($scplayer, True)

:GYMSF_5391
Streaming.MarkModelAsNoLongerNeeded(96)
Streaming.MarkModelAsNoLongerNeeded(203)
Streaming.MarkModelAsNoLongerNeeded(97)
Streaming.MarkModelAsNoLongerNeeded(49)
Streaming.MarkModelAsNoLongerNeeded(204)
Streaming.RemoveAnimation("GYMNASIUM")
Streaming.RemoveAnimation("PARK")
Streaming.RemoveAnimation("FIGHT_C")
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
$gym_is_running = 0
$onmission = 0
Mission.Finish
return 

:GYMSF_5467
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
return 

:GYMSF_5487
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Game.SetEveryoneIgnorePlayer($player1, False)
return 

:GYMSF_5511
Camera.DoFade(500, Fade.Out)

:GYMSF_5518
if 
  Camera.GetFadingStatus
goto_if_false @GYMSF_5565
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMSF_5558
Camera.DoFade(1, Fade.Out)

:GYMSF_5558
goto @GYMSF_5518

:GYMSF_5565
return 

:GYMSF_5567
Camera.DoFade(500, Fade.In)

:GYMSF_5574
if 
  Camera.GetFadingStatus
goto_if_false @GYMSF_5598
wait 0
goto @GYMSF_5574

:GYMSF_5598
return 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 62@)
63@ = 0
return 

:GYMSF_5620
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  63@ == 0
goto_if_false @GYMSF_5663
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(60@s, 10000, 1)
63@ = 1

:GYMSF_5663
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  63@ == 1
goto_if_false @GYMSF_5701
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint(60@s)
63@ = 2

:GYMSF_5701
return 

//-------------Mission 116---------------
// Originally: Las Venturas Gym Fight School

:GYMLV
script_name 'GYMLV'
gosub @GYMLV_55
Camera.SetFadingColor(0, 0, 0)
if 
  has_deatharrest_been_executed 
goto_if_false @GYMLV_46
gosub @GYMLV_5184

:GYMLV_46
gosub @GYMLV_5224
terminate_this_script 

:GYMLV_55
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLV_78
Char.ListenToPlayerGroupCommands($scplayer, False)

:GYMLV_78
$gym_is_running = 1
$onmission = 1
Stat.IncrementInt(StatId.VisitsToGym, 1)
Stat.RegisterMissionGiven
Text.LoadMissionText('GYM')
Streaming.RequestModel(80)
Streaming.RequestModel(81)
Streaming.RequestModel(19)
Streaming.RequestAnimation("RIOT")
Streaming.RequestAnimation("FIGHT_D")
Streaming.RequestAnimation("GYMNASIUM")
Streaming.RequestAnimation("INT_SHOP")
Streaming.LoadAllModelsNow

:GYMLV_170
if or
  not Streaming.HasAnimationLoaded("GYMNASIUM")
  not Streaming.HasModelLoaded(80)
  not Streaming.HasModelLoaded(81)
goto_if_false @GYMLV_213
wait 0
goto @GYMLV_170

:GYMLV_213
if or
  not Streaming.HasModelLoaded(19)
  not Streaming.HasAnimationLoaded("RIOT")
  not Streaming.HasAnimationLoaded("FIGHT_D")
  not Streaming.HasAnimationLoaded("INT_SHOP")
goto_if_false @GYMLV_270
wait 0
goto @GYMLV_213

:GYMLV_270
41@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
51@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
Game.SetRelationship(RelationshipType.Hate, PedType.Mission1, PedType.Player1)
63@ = Sequence.Open()
Task.PlayAnim(-1, "RIOT_SHOUT", "RIOT", 4.0, False, False, False, False, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Task.Pause(-1, 1000)
Sequence.SetToRepeat(63@, True)
Sequence.Close(63@)
64@ = Sequence.Open()
Task.Pause(-1, 500)
Task.PlayAnim(-1, "RIOT_SHOUT", "RIOT", 4.0, False, False, False, False, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.SetToRepeat(64@, True)
Sequence.Close(64@)
65@ = Sequence.Open()
Task.Pause(-1, 750)
Task.PlayAnim(-1, "RIOT_SHOUT", "RIOT", 4.0, False, False, False, False, -1)
Task.TurnCharToFaceChar(-1, $scplayer)
Sequence.SetToRepeat(65@, True)
Sequence.Close(65@)
52@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 773.8429, -61.5409, 999.7184, 4, -1)
Task.AchieveHeading(-1, 93.0279)
Task.PlayAnim(-1, "GYMSHADOWBOX", "GYMNASIUM", 4.0, True, False, False, False, -1)
Sequence.Close(52@)
53@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 771.2518, -69.3033, 999.6562, 4, -1)
Task.AchieveHeading(-1, 85.5162)
Sequence.Close(53@)
54@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 762.3508, -78.2144, 999.6562, 4, -1)
Task.AchieveHeading(-1, 359.2498)
Task.PlayAnim(-1, "SHOP_PAY", "INT_SHOP", 4.0, True, False, False, False, -1)
Sequence.Close(54@)
48@ = Sequence.Open()
Task.GoToCoordAnyMeans(-1, 762.3508, -78.2144, 999.6562, 4, -1)
Task.AchieveHeading(-1, 359.2498)
Task.PlayAnim(-1, "SHOP_PAY", "INT_SHOP", 4.0, True, False, False, False, -1)
Sequence.SetToRepeat(48@, True)
Sequence.Close(48@)
34@ = Char.Create(PedType.CivMale, 81, 762.3508, -78.2144, 999.6562)
Char.SetHeading(34@, 359.2498)
Char.SetDecisionMaker(34@, 51@)
Char.PerformSequence(34@, 48@)
Char.GiveMeleeAttack(34@, FightStyle.KickBoxing, 6)
36@ = Char.Create(PedType.CivMale, 81, 766.2026, -69.2071, 1000.569)
Char.SetHeading(36@, 330.7023)
Char.SetDecisionMaker(36@, 41@)
37@ = Char.Create(PedType.CivMale, 80, 767.1087, -67.9132, 1000.569)
Char.SetHeading(37@, 129.3961)
Char.SetDecisionMaker(37@, 41@)
42@ = Sequence.Open()
Task.Pause(-1, 1000)
Task.PlayAnim(-1, "GYMSHADOWBOX", "GYMNASIUM", 4.0, True, False, False, False, -1)
Sequence.Close(42@)
43@ = Sequence.Open()
Task.PlayAnim(-1, "GYMSHADOWBOX", "GYMNASIUM", 4.0, True, False, False, False, -1)
Sequence.Close(43@)
Char.PerformSequence(36@, 42@)
Char.PerformSequence(37@, 43@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1820)

:GYMLV_1078
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @GYMLV_1104
wait 0
goto @GYMLV_1078

:GYMLV_1104
62@ = 2
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @GYMLV_1148
$gym_final_month = 0.0

:GYMLV_1148
wait 0
gosub @GYMLV_5478
if 
  57@ == 0
goto_if_false @GYMLV_1279
if 
  Char.IsDead(36@)
goto_if_false @GYMLV_1228
if 
  not Char.IsDead(37@)
goto_if_false @GYMLV_1228
Char.ClearTasksImmediately(37@)
Task.Duck(37@, -2)
57@ = 1

:GYMLV_1228
if 
  Char.IsDead(37@)
goto_if_false @GYMLV_1279
if 
  not Char.IsDead(36@)
goto_if_false @GYMLV_1279
Char.ClearTasksImmediately(36@)
Task.Duck(36@, -2)
57@ = 1

:GYMLV_1279
$main_visible_area = Char.GetAreaVisible($scplayer)
if 
  $main_visible_area == 0
goto_if_false @GYMLV_1312
goto @GYMLV_5184

:GYMLV_1312
if 
  not Char.LocateAnyMeans3D($scplayer, 763.3589, -76.7606, 999.6562, 2.5, 2.5, 4.0, False)
goto_if_false @GYMLV_1367
45@ = 0

:GYMLV_1367
if 
  not Char.IsDead(34@)
goto_if_false @GYMLV_5177
if and
  45@ == 0
  Char.LocateAnyMeans3D(34@, 762.3508, -78.2144, 999.6562, 1.0, 1.0, 1.2, False)
goto_if_false @GYMLV_5177
if 
  Char.LocateStoppedAnyMeans3D($scplayer, 763.3589, -76.7606, 999.6562, 0.6, 0.6, 1.0, True)
goto_if_false @GYMLV_1486

:GYMLV_1486
if and
  Char.LocateStoppedAnyMeans3D($scplayer, 763.3589, -76.7606, 999.6562, 1.2, 1.2, 1.2, False)
  not Char.IsDead(34@)
goto_if_false @GYMLV_5177
if and
  not Char.IsDead(34@)
  not Char.IsDead($scplayer)
goto_if_false @GYMLV_1593
Player.SetControl($player1, False)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasks(34@)
Task.TurnCharToFaceChar(34@, $scplayer)
Task.TurnCharToFaceChar($scplayer, 34@)

:GYMLV_1593
if 
  $8156 == 0
goto_if_false @GYMLV_1668
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 27000)

:GYMLV_1622
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLV_1648
wait 0
goto @GYMLV_1622

:GYMLV_1648
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('WBOX_1', 3000, 1)

:GYMLV_1668
if 
  $8156 == 1
goto_if_false @GYMLV_1743
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 27003)

:GYMLV_1697
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLV_1723
wait 0
goto @GYMLV_1697

:GYMLV_1723
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('WBOX_4', 3000, 1)

:GYMLV_1743
Text.PrintHelpForever('GYM1_73')

:GYMLV_1754
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLV_2054
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @GYMLV_1943
58@ = Stat.GetFloat(StatId.BodyMuscle)
if 
  58@ > 349.0
goto_if_false @GYMLV_1842
44@ = 1
Text.ClearHelp
goto @GYMLV_2056
goto @GYMLV_1943

:GYMLV_1842
44@ = 0
45@ = 1
Text.ClearHelp
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 27002)

:GYMLV_1869
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLV_1895
wait 0
goto @GYMLV_1869

:GYMLV_1895
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('WBOX_3', 3000, 1)
Player.SetControl($player1, True)
TIMERA = 0
55@ = 1
goto @GYMLV_1148

:GYMLV_1943
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @GYMLV_2047
44@ = 0
45@ = 1
Text.ClearHelp
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 27001)

:GYMLV_1987
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLV_2013
wait 0
goto @GYMLV_1987

:GYMLV_2013
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('WBOX_2', 3000, 1)
Player.SetControl($player1, True)
goto @GYMLV_1148

:GYMLV_2047
goto @GYMLV_1754

:GYMLV_2054
Text.ClearHelp

:GYMLV_2056
Text.ClearHelp
Text.ClearPrints
Pad.SetPlayerCycleWeaponButton($player1, False)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
if 
  44@ == 1
goto_if_false @GYMLV_5177
gosub @GYMLV_5369
Char.Delete(36@)
Char.Delete(37@)
Char.Delete(34@)
36@ = Char.Create(PedType.CivMale, 80, 767.9493, -64.6707, 999.6562)
Char.SetHeading(36@, 166.9465)
Char.PerformSequence(36@, 63@)
37@ = Char.Create(PedType.CivMale, 81, 770.7913, -67.3238, 999.6562)
Char.SetHeading(37@, 90.0184)
Char.PerformSequence(37@, 64@)
38@ = Char.Create(PedType.CivMale, 80, 770.4339, -69.5049, 999.6562)
Char.SetHeading(38@, 91.3393)
Char.PerformSequence(38@, 65@)
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLV_2384
Char.ClearTasksImmediately($scplayer)
34@ = Char.Create(PedType.Mission1, 81, 768.2548, -67.2063, 1000.569)
Char.SetHeading(34@, 145.0)
Char.SetHealth(34@, 1000)
Char.SetMaxHealth(34@, 1000)
Char.SetCoordinatesDontWarpGang($scplayer, 764.8033, -70.2273, 1000.569)
Char.SetHeading($scplayer, 310.0)
Char.SetDecisionMaker(34@, 51@)
Task.KillCharOnFoot(34@, $scplayer)
Char.GiveMeleeAttack(34@, FightStyle.KickBoxing, 6)
Char.SetShootRate(34@, 100)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
gosub @GYMLV_5425

:GYMLV_2384
Player.SetControl($player1, True)
if 
  $8156 == 0
goto_if_false @GYMLV_2420
Text.PrintHelpForever('GYM1101')

:GYMLV_2420
if 
  $8156 == 1
goto_if_false @GYMLV_2449
Text.PrintHelpForever('GYM1_84')

:GYMLV_2449
gosub @GYMLV_5425
$x, $y, $z = Char.GetCoordinates($scplayer)
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
  not Char.IsDead($scplayer)
goto_if_false @GYMLV_2498
Audio.ReportMissionAudioEventAtChar($scplayer, 1115)

:GYMLV_2498
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLV_3156
wait 0
if 
  $8156 == 1
goto_if_false @GYMLV_2802
if 
  56@ == 0
goto_if_false @GYMLV_2581
TIMERA = 0
Text.ClearHelp
Text.PrintHelpForever('GYM1_94')
56@ = 1

:GYMLV_2581
if 
  not Game.IsGerman
goto_if_false @GYMLV_2707
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMLV_2647
Text.ClearHelp
Text.PrintHelpForever('GYM1_95')
TIMERA = 0
56@ = 2

:GYMLV_2647
if and
  TIMERA > 6000
  56@ == 2
goto_if_false @GYMLV_2700
Text.ClearHelp
Text.PrintHelpForever('GYM1_96')
TIMERA = 0
56@ = 3

:GYMLV_2700
goto @GYMLV_2760

:GYMLV_2707
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMLV_2760
Text.ClearHelp
Text.PrintHelpForever('GYM1_96')
TIMERA = 0
56@ = 3

:GYMLV_2760
if and
  TIMERA > 6000
  56@ == 3
goto_if_false @GYMLV_2802
Text.ClearHelp
TIMERA = 0
56@ = 0

:GYMLV_2802
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLV_2832
$x, $y, $z = Char.GetCoordinates($scplayer)

:GYMLV_2832
if 
  Char.IsDead(34@)
goto_if_false @GYMLV_2855
goto @GYMLV_3156

:GYMLV_2855
if 
  1000.7 > $z
goto_if_false @GYMLV_3149
gosub @GYMLV_5369
Char.Delete(34@)
Char.Delete(36@)
Char.Delete(37@)
Char.Delete(38@)
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLV_2954
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinatesDontWarpGang($scplayer, 762.854, -69.5929, 999.6562)
Char.SetHeading($scplayer, 103.4243)

:GYMLV_2954
34@ = Char.Create(PedType.CivMale, 81, 762.3508, -78.2144, 999.6562)
Char.SetHeading(34@, 359.2498)
Char.SetDecisionMaker(34@, 41@)
Char.PerformSequence(34@, 48@)
Char.GiveMeleeAttack(34@, FightStyle.KickBoxing, 6)
36@ = Char.Create(PedType.CivMale, 81, 766.2026, -69.2071, 1000.569)
Char.SetHeading(36@, 330.7023)
Char.PerformSequence(36@, 42@)
37@ = Char.Create(PedType.CivMale, 80, 767.1087, -67.9132, 1000.569)
Char.SetHeading(37@, 129.3961)
Char.PerformSequence(37@, 43@)
Text.ClearPrints
Text.ClearHelp
gosub @GYMLV_5425
if 
  $8156 == 0
goto_if_false @GYMLV_3142
Text.PrintNow('GYM1_92', 5000, 1)

:GYMLV_3142
goto @GYMLV_1148

:GYMLV_3149
goto @GYMLV_2498

:GYMLV_3156
Text.ClearHelp
if 
  $8156 == 1
goto_if_false @GYMLV_3183
goto @GYMLV_4831

:GYMLV_3183
gosub @GYMLV_5369
gosub @GYMLV_5325
World.ClearArea(768.2548, -67.2063, 1000.569, 10.0, True)
Char.Delete(34@)
Char.Delete(36@)
Char.Delete(37@)
Char.Delete(38@)
34@ = Char.Create(PedType.CivMale, 81, 768.2548, -67.2063, 1000.569)
Char.SetDecisionMaker(34@, 41@)
Char.GiveMeleeAttack(34@, FightStyle.KickBoxing, 6)
if and
  not Char.IsDead(34@)
  not Char.IsDead($scplayer)
goto_if_false @GYMLV_3373
Char.ClearTasksImmediately($scplayer)
Char.ClearTasks(34@)
Char.SetCoordinatesDontWarpGang($scplayer, 764.8033, -70.2273, 1000.569)
Char.SetCoordinatesDontWarpGang(34@, 768.2548, -67.2063, 1000.569)
Char.SetHeading($scplayer, 310.0)
Char.SetHeading(34@, 145.0)

:GYMLV_3373
Camera.SetFixedPosition(765.1049, -74.2975, 1003.591, 0.0, 0.0, 0.0)
Camera.PointAtPoint(765.3495, -73.4547, 1003.112, SwitchType.JumpCut)
gosub @GYMLV_5425
Text.PrintNow('WBOX_5', 4000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 27004)

:GYMLV_3458
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLV_3501
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLV_3494

:GYMLV_3494
goto @GYMLV_3458

:GYMLV_3501
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
wait 1000
TIMERA = 0

:GYMLV_3517
if 
  2000 > TIMERA
goto_if_false @GYMLV_3564
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLV_3557

:GYMLV_3557
goto @GYMLV_3517

:GYMLV_3564
Camera.SetFixedPosition(767.7358, -70.2958, 1001.493, 0.0, 0.0, 0.0)
Camera.PointAtPoint(767.9329, -69.3157, 1001.47, SwitchType.JumpCut)
Text.PrintNow('GYM1_97', 2000, 1)
TIMERA = 0

:GYMLV_3638
if 
  2000 > TIMERA
goto_if_false @GYMLV_3685
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLV_3678

:GYMLV_3678
goto @GYMLV_3638

:GYMLV_3685
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 27005)

:GYMLV_3696
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLV_3739
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLV_3732

:GYMLV_3732
goto @GYMLV_3696

:GYMLV_3739
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GYM1_94', 4000, 1)
TIMERA = 0

:GYMLV_3766
if 
  4000 > TIMERA
goto_if_false @GYMLV_3813
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLV_3806

:GYMLV_3806
goto @GYMLV_3766

:GYMLV_3813
if 
  not Char.IsDead(34@)
goto_if_false @GYMLV_3868
Task.PlayAnim(34@, "FIGHTD_M", "FIGHT_D", 4.0, False, True, True, False, -1)

:GYMLV_3868
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLV_3916
Task.PlayAnim($scplayer, "FUCKU", "PED", 4.0, False, True, True, False, -1)

:GYMLV_3916
TIMERA = 0

:GYMLV_3923
if 
  3000 > TIMERA
goto_if_false @GYMLV_3970
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLV_3963

:GYMLV_3963
goto @GYMLV_3923

:GYMLV_3970
if 
  not Game.IsGerman
goto_if_false @GYMLV_4389
Camera.SetFixedPosition(765.0073, -67.3258, 1001.465, 0.0, 0.0, 0.0)
Camera.PointAtPoint(766.0051, -67.2777, 1001.419, SwitchType.JumpCut)
Text.PrintNow('GYM1_98', 2000, 1)
TIMERA = 0

:GYMLV_4057
if 
  2000 > TIMERA
goto_if_false @GYMLV_4104
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLV_4097

:GYMLV_4097
goto @GYMLV_4057

:GYMLV_4104
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 27006)

:GYMLV_4115
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLV_4158
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLV_4151

:GYMLV_4151
goto @GYMLV_4115

:GYMLV_4158
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GYM1_95', 4000, 1)
TIMERA = 0

:GYMLV_4185
if 
  4000 > TIMERA
goto_if_false @GYMLV_4232
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLV_4225

:GYMLV_4225
goto @GYMLV_4185

:GYMLV_4232
if 
  not Char.IsDead(34@)
goto_if_false @GYMLV_4287
Task.PlayAnim(34@, "FIGHTD_G", "FIGHT_D", 4.0, False, True, True, False, -1)

:GYMLV_4287
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLV_4335
Task.PlayAnim($scplayer, "FUCKU", "PED", 4.0, False, True, True, False, -1)

:GYMLV_4335
TIMERA = 0

:GYMLV_4342
if 
  3000 > TIMERA
goto_if_false @GYMLV_4389
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLV_4382

:GYMLV_4382
goto @GYMLV_4342

:GYMLV_4389
Camera.SetFixedPosition(770.4639, -65.7272, 1002.231, 0.0, 0.0, 0.0)
Camera.PointAtPoint(769.6946, -66.3243, 1002.003, SwitchType.JumpCut)
Text.PrintNow('GYM1_99', 2000, 1)
if and
  not Char.IsDead(34@)
  not Char.IsDead($scplayer)
goto_if_false @GYMLV_4485
Task.TurnCharToFaceChar(34@, $scplayer)

:GYMLV_4485
TIMERA = 0

:GYMLV_4492
if 
  2000 > TIMERA
goto_if_false @GYMLV_4539
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLV_4532

:GYMLV_4532
goto @GYMLV_4492

:GYMLV_4539
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 27007)

:GYMLV_4550
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @GYMLV_4593
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLV_4586

:GYMLV_4586
goto @GYMLV_4550

:GYMLV_4593
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow('GYM1_96', 4000, 1)
TIMERA = 0

:GYMLV_4620
if 
  4000 > TIMERA
goto_if_false @GYMLV_4667
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLV_4660

:GYMLV_4660
goto @GYMLV_4620

:GYMLV_4667
if 
  not Char.IsDead(34@)
goto_if_false @GYMLV_4729
Char.FreezePosition(34@, True)
Task.PlayAnim(34@, "FIGHTD_3", "FIGHT_D", 4.0, False, True, True, False, -1)

:GYMLV_4729
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLV_4777
Task.PlayAnim($scplayer, "FUCKU", "PED", 4.0, False, False, False, True, -1)

:GYMLV_4777
TIMERA = 0

:GYMLV_4784
if 
  2000 > TIMERA
goto_if_false @GYMLV_4831
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLV_4824

:GYMLV_4824
goto @GYMLV_4784

:GYMLV_4831
gosub @GYMLV_5369
if 
  $8157 == 0
goto_if_false @GYMLV_4867
Stat.PlayerMadeProgress(1)
$8157 = 1

:GYMLV_4867
Char.Delete(34@)
Char.Delete(36@)
Char.Delete(37@)
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLV_4933
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinatesDontWarpGang($scplayer, 762.854, -69.5929, 999.6562)
Char.SetHeading($scplayer, 103.4243)

:GYMLV_4933
34@ = Char.Create(PedType.CivMale, 81, 762.3508, -78.2144, 999.6562)
Char.SetHeading(34@, 359.2498)
Char.SetDecisionMaker(34@, 51@)
Char.PerformSequence(34@, 48@)
Char.GiveMeleeAttack(34@, FightStyle.KickBoxing, 6)
36@ = Char.Create(PedType.CivMale, 81, 766.2026, -69.2071, 1000.569)
Char.SetHeading(36@, 330.7023)
Char.PerformSequence(36@, 42@)
Char.SetDecisionMaker(36@, 41@)
37@ = Char.Create(PedType.CivMale, 80, 767.1087, -67.9132, 1000.569)
Char.SetHeading(37@, 129.3961)
Char.PerformSequence(37@, 43@)
Char.SetDecisionMaker(37@, 41@)
gosub @GYMLV_5345
gosub @GYMLV_5425
Char.GiveMeleeAttack($scplayer, FightStyle.KickBoxing, 6)
if 
  $8156 == 0
goto_if_false @GYMLV_5149
Text.PrintNow('GYM1_93', 3000, 1)

:GYMLV_5149
$gym_sf_defeated = 0
$player_been_taught_move = 0
$8156 = 1
Pad.SetPlayerCycleWeaponButton($player1, True)

:GYMLV_5177
goto @GYMLV_1148

:GYMLV_5184
return 
Text.PrintWithNumberBig('M_PASS', 30000, 5000, TextStyle.Middle)
Player.AddScore($player1, 30000)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
return 

:GYMLV_5224
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMLV_5247
Char.ListenToPlayerGroupCommands($scplayer, True)

:GYMLV_5247
Streaming.MarkModelAsNoLongerNeeded(80)
Streaming.MarkModelAsNoLongerNeeded(81)
Streaming.MarkModelAsNoLongerNeeded(19)
Streaming.RemoveAnimation("GYMNASIUM")
Streaming.RemoveAnimation("RIOT")
Streaming.RemoveAnimation("FIGHT_D")
Streaming.RemoveAnimation("INT_SHOP")
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
$gym_is_running = 0
$onmission = 0
Mission.Finish
return 

:GYMLV_5325
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
return 

:GYMLV_5345
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Game.SetEveryoneIgnorePlayer($player1, False)
return 

:GYMLV_5369
Camera.DoFade(500, Fade.Out)

:GYMLV_5376
if 
  Camera.GetFadingStatus
goto_if_false @GYMLV_5423
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMLV_5416
Camera.DoFade(1, Fade.Out)

:GYMLV_5416
goto @GYMLV_5376

:GYMLV_5423
return 

:GYMLV_5425
Camera.DoFade(500, Fade.In)

:GYMLV_5432
if 
  Camera.GetFadingStatus
goto_if_false @GYMLV_5456
wait 0
goto @GYMLV_5432

:GYMLV_5456
return 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 61@)
62@ = 0
return 

:GYMLV_5478
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
  62@ == 0
goto_if_false @GYMLV_5521
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
Text.PrintNow(59@s, 10000, 1)
62@ = 1

:GYMLV_5521
if and
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
  62@ == 1
goto_if_false @GYMLV_5559
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Text.ClearThisPrint(59@s)
62@ = 2

:GYMLV_5559
return 

//-------------Mission 117---------------
// Originally: Trucking

:TRUCK
script_name 'TRUCK'
gosub @TRUCK_47
if 
  has_deatharrest_been_executed 
goto_if_false @TRUCK_38
gosub @TRUCK_16344

:TRUCK_38
gosub @TRUCK_16753
terminate_this_script 

:TRUCK_47
if 
  $done_truck_progress == 0
goto_if_false @TRUCK_67
Stat.RegisterMissionGiven

:TRUCK_67
$onmission = 1
$flag_player_on_oddjob = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
41@ = 0
42@ = 0
47@ = 0
48@ = 0
TIMERA = 0
TIMERB = 0
105@ = 0
106@ = 0
114@ = 0
if 
  36@ == -99
goto_if_false @TRUCK_324
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
74@ = Car.Create(514, 0.0, 0.0, 0.0)
75@ = Car.Create(584, 0.0, 0.0, 0.0)
78@ = Blip.AddForCar(74@)
77@ = Blip.AddForCar(74@)
79@ = Blip.AddForCar(75@)

:TRUCK_324
Text.LoadMissionText('TRUCK')
if 
  $gym_lv_defeated >= 6
goto_if_false @TRUCK_468
$Return_cities_passed = Stat.GetInt(StatId.CitiesPassed)
if 
  2 > $Return_cities_passed
goto_if_false @TRUCK_468
Text.PrintNow('TRK_H17', 5000, 1)
if 
  not Char.IsDead($scplayer)
goto_if_false @TRUCK_450
Char.SetCoordinates($scplayer, -76.9664, -1134.639, 0.0781)
Char.SetHeading($scplayer, 14.7291)
Camera.SetBehindPlayer
Player.SetControl($player1, True)

:TRUCK_450
Camera.DoFade(500, Fade.In)
wait 5000
Text.DrawOddjobTitleBeforeFade(True)
return 

:TRUCK_468
if 
  $gym_lv_defeated >= 4
goto_if_false @TRUCK_601
$Return_cities_passed = Stat.GetInt(StatId.CitiesPassed)
if 
  1 > $Return_cities_passed
goto_if_false @TRUCK_601
Text.PrintNow('TRK_H18', 5000, 1)
if 
  not Char.IsDead($scplayer)
goto_if_false @TRUCK_583
Char.SetCoordinates($scplayer, -76.9664, -1134.639, 0.0781)
Char.SetHeading($scplayer, 14.7291)
Camera.SetBehindPlayer
Player.SetControl($player1, True)

:TRUCK_583
Camera.DoFade(500, Fade.In)
wait 5000
Text.DrawOddjobTitleBeforeFade(True)
return 

:TRUCK_601
gosub @TRUCK_15391
gosub @TRUCK_15393
wait 100

:TRUCK_619
wait 0
gosub @TRUCK_12403
gosub @TRUCK_12776
if or
  40@ == 1
  41@ == 1
goto_if_false @TRUCK_669
goto @TRUCK_896

:TRUCK_669
gosub @TRUCK_15288
gosub @TRUCK_15322
if 
  Char.IsDead($scplayer)
goto_if_false @TRUCK_713
39@ = 1
goto @TRUCK_896

:TRUCK_713
if 
  36@ == 0
goto_if_false @TRUCK_771
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:TRUCK_771
if 
  36@ == 1
goto_if_false @TRUCK_796
gosub @TRUCK_1097

:TRUCK_796
if 
  36@ == 2
goto_if_false @TRUCK_821
gosub @TRUCK_1312

:TRUCK_821
if 
  36@ == 3
goto_if_false @TRUCK_846
38@ = 1

:TRUCK_846
if 
  36@ == 50
goto_if_false @TRUCK_871
gosub @TRUCK_2470

:TRUCK_871
if 
  36@ == 51
goto_if_false @TRUCK_896
40@ = 1

:TRUCK_896
if 
  40@ == 0
goto_if_false @TRUCK_1049
if 
  39@ == 0
goto_if_false @TRUCK_1033
if 
  38@ == 0
goto_if_false @TRUCK_964
goto @TRUCK_619
goto @TRUCK_1026

:TRUCK_964
gosub @TRUCK_16746
if 
  114@ == 1
goto_if_false @TRUCK_1024
38@ = 0
36@ = 50
37@ = 0
114@ = 0
goto @TRUCK_619

:TRUCK_1024
return 

:TRUCK_1026
goto @TRUCK_1042

:TRUCK_1033
gosub @TRUCK_16344
return 

:TRUCK_1042
goto @TRUCK_1051

:TRUCK_1049
return 

:TRUCK_1051
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:TRUCK_1097
if or
  Car.IsDead(75@)
  Car.IsDead(74@)
goto_if_false @TRUCK_1134
39@ = 1
89@ = 3
return 

:TRUCK_1134
if 
  37@ == 0
goto_if_false @TRUCK_1236
Hud.DisplayNthCounterWithString($g_nTruckMissionsPassed, CounterDisplay.Number, 1, 'TRK_CSH')
set_var_int_to_lvar_int $g_nTruckMissionsPassed = 91@
set_lvar_int_to_lvar_int 83@ = 91@
gosub @TRUCK_3418
gosub @TRUCK_3636
gosub @TRUCK_5170
77@ = Blip.AddForCar(74@)
Blip.SetAsFriendly(77@, True)
113@ = 0
37@ += 1

:TRUCK_1236
if 
  37@ == 1
goto_if_false @TRUCK_1285
if 
  Char.IsInCar($scplayer, 74@)
goto_if_false @TRUCK_1285
Blip.Remove(77@)
37@ = 99

:TRUCK_1285
if 
  37@ == 99
goto_if_false @TRUCK_1310
gosub @TRUCK_15361

:TRUCK_1310
return 

:TRUCK_1312
if or
  Car.IsDead(74@)
  Car.IsDead(75@)
goto_if_false @TRUCK_1349
39@ = 1
89@ = 3
return 

:TRUCK_1349
if 
  113@ == 0
goto_if_false @TRUCK_1394
gosub @TRUCK_5187
if 
  39@ == 1
goto_if_false @TRUCK_1394
return 

:TRUCK_1394
if 
  37@ == 0
goto_if_false @TRUCK_1679
76@ = Blip.AddForCoord(102@, 103@, 104@)
Blip.ChangeScale(76@, 4)
106@ = 0
gosub @TRUCK_5875
switch_start 88@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @TRUCK_1648 {caseNum1} 1 {caseLabel1} @TRUCK_1510 {caseNum2} 2 {caseLabel2} @TRUCK_1533 {caseNum3} 3 {caseLabel3} @TRUCK_1556 {caseNum4} 4 {caseLabel4} @TRUCK_1579 {caseNum5} 5 {caseLabel5} @TRUCK_1602 {caseNum6} 6 {caseLabel6} @TRUCK_1625 {caseNum7} -1 {caseLabel7} @TRUCK_1672

:TRUCK_1510
Text.PrintNow('TRK_H6', 15000, 1)
goto @TRUCK_1672

:TRUCK_1533
Text.PrintNow('TRK_H7', 15000, 1)
goto @TRUCK_1672

:TRUCK_1556
Text.PrintNow('TRK_H12', 15000, 1)
goto @TRUCK_1672

:TRUCK_1579
Text.PrintNow('TRK_H9', 15000, 1)
goto @TRUCK_1672

:TRUCK_1602
Text.PrintNow('TRK_H11', 15000, 1)
goto @TRUCK_1672

:TRUCK_1625
Text.PrintNow('TRK_H10', 15000, 1)
goto @TRUCK_1672

:TRUCK_1648
write_debug "UNKNOWN_MISSION_TYPE"

:TRUCK_1672
37@ += 1

:TRUCK_1679
if 
  37@ == 1
goto_if_false @TRUCK_1922
set_lvar_float_to_lvar_float 63@ = 102@
63@ -= 4.0
set_lvar_float_to_lvar_float 64@ = 103@
64@ -= 4.0
set_lvar_float_to_lvar_float 65@ = 104@
65@ -= 4.0
set_lvar_float_to_lvar_float 66@ = 102@
66@ += 4.0
set_lvar_float_to_lvar_float 67@ = 103@
67@ += 4.0
set_lvar_float_to_lvar_float 68@ = 104@
68@ += 4.0
if or
  Car.IsInArea3D(75@, 63@, 64@, 65@, 66@, 67@, 68@, True)
  Car.IsInArea3D(74@, 63@, 64@, 65@, 66@, 67@, 68@, False)
goto_if_false @TRUCK_1922
if and
  Char.IsInCar($scplayer, 74@)
  Trailer.IsAttachedToCab(75@, 74@)
goto_if_false @TRUCK_1922
Player.SetControl($player1, False)
113@ = 1
81@ += 15000
37@ += 1

:TRUCK_1922
if 
  37@ == 2
goto_if_false @TRUCK_1990
if and
  Car.IsStopped(75@)
  Car.IsStopped(74@)
goto_if_false @TRUCK_1990
Car.FreezePosition(74@, True)
Task.LeaveCar($scplayer, 74@)
gosub @TRUCK_16540
37@ += 1

:TRUCK_1990
if 
  37@ == 3
goto_if_false @TRUCK_2053
if 
  not Char.IsInCar($scplayer, 74@)
goto_if_false @TRUCK_2053
Car.CloseAllDoors(74@)
Car.LockDoors(74@, CarLock.Locked)
Player.SetControl($player1, True)
37@ = 99

:TRUCK_2053
gosub @TRUCK_7116
gosub @TRUCK_7271
gosub @TRUCK_7500
if 
  106@ == 1
goto_if_false @TRUCK_2099
gosub @TRUCK_7694

:TRUCK_2099
if 
  106@ == 0
goto_if_false @TRUCK_2284
59@ = -76.1692
60@ = -1128.963
61@ = 0.0781
if and
  Car.Locate3D(75@, 59@, 60@, 61@, 40.0, 40.0, 40.0, False)
  not Car.Locate3D(75@, 59@, 60@, 61@, 20.0, 20.0, 20.0, False)
goto_if_false @TRUCK_2284
World.SetCarDensityMultiplier(1.0)
if 
  88@ == 4
goto_if_false @TRUCK_2252
//Player.AlterWantedLevelNoDrop($player1, 3)

:TRUCK_2252
if 
  88@ == 6
goto_if_false @TRUCK_2277
//Player.AlterWantedLevelNoDrop($player1, 4)

:TRUCK_2277
106@ = 1

:TRUCK_2284
if 
  105@ == 0
goto_if_false @TRUCK_2384
if 
  110@ == 1
goto_if_false @TRUCK_2343
Text.PrintNow('TRK_H14', 6000, 1)
110@ = 0

:TRUCK_2343
if 
  111@ == 1
goto_if_false @TRUCK_2384
Text.PrintNow('TRK_H15', 6000, 1)
111@ = 0

:TRUCK_2384
if 
  105@ == 0
goto_if_false @TRUCK_2443
if 
  112@ == 1
goto_if_false @TRUCK_2443
Text.PrintNow('TRK_H16', 7000, 1)
112@ = 0

:TRUCK_2443
if 
  37@ == 99
goto_if_false @TRUCK_2468
gosub @TRUCK_15361

:TRUCK_2468
return 

:TRUCK_2470
if 
  37@ == 0
goto_if_false @TRUCK_2545
Player.SetControl($player1, False)
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 5000
59@, 60@, 61@ = Char.GetCoordinates($scplayer)
62@ = Char.GetHeading($scplayer)
Hud.ClearCounter($g_nTruckMissionsPassed)
37@ += 1

:TRUCK_2545
if 
  37@ == 1
goto_if_false @TRUCK_2612
if 
  is_int_lvar_greater_than_int_lvar 47@ > 82@
goto_if_false @TRUCK_2612
Camera.DoFade(500, Fade.Out)
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 500
37@ += 1

:TRUCK_2612
if 
  37@ == 2
goto_if_false @TRUCK_2861
if and
  is_int_lvar_greater_than_int_lvar 47@ > 82@
  not Camera.GetFadingStatus
goto_if_false @TRUCK_2861
$g_Truck_CashPickupKM = Pickup.CreateProtection(-82.2693, -1135.526, 0.5847, $g_Truck_CashPickupValueKM, $g_Truck_CashPickupValueKM)
Hud.SwitchWidescreen(True)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @TRUCK_2724
Char.WarpFromCarToCoord($scplayer, -47.0873, -1122.146, 0.4453)
goto @TRUCK_2744

:TRUCK_2724
Char.SetCoordinates($scplayer, -47.0873, -1122.146, 0.4453)

:TRUCK_2744
Car.MarkAsNoLongerNeeded(74@)
Car.MarkAsNoLongerNeeded(75@)
Game.SetEveryoneIgnorePlayer($player1, True)
Game.SetAllCarsCanBeDamaged(False)
Streaming.LoadSceneInDirection(-96.3779, -1125.262, 0.093, 261.7115)
Camera.SetFixedPosition(-109.2539, -1122.353, 15.1451, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-108.3806, -1122.439, 14.6655, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 2000
37@ += 1

:TRUCK_2861
if 
  37@ == 3
goto_if_false @TRUCK_2944
if 
  is_int_lvar_greater_than_int_lvar 47@ > 82@
goto_if_false @TRUCK_2944
Camera.DoFade(500, Fade.In)
Text.PrintBig('ASS_ACQ', 5000, TextStyle.WhiteMiddleSmaller)
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 5000
37@ += 1

:TRUCK_2944
if 
  37@ == 4
goto_if_false @TRUCK_3074
if 
  is_int_lvar_greater_than_int_lvar 47@ > 82@
goto_if_false @TRUCK_3074
Camera.SetFixedPosition(-83.7387, -1133.793, 0.9871, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-82.9525, -1134.41, 0.9592, SwitchType.JumpCut)
Text.PrintWithNumberNow('ASS_LUV', $g_Truck_CashPickupValueKM, 6000, 1)
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 6000
37@ += 1

:TRUCK_3074
if 
  37@ == 5
goto_if_false @TRUCK_3141
if 
  is_int_lvar_greater_than_int_lvar 47@ > 82@
goto_if_false @TRUCK_3141
Camera.DoFade(500, Fade.Out)
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 500
37@ += 1

:TRUCK_3141
if 
  37@ == 6
goto_if_false @TRUCK_3244
if and
  is_int_lvar_greater_than_int_lvar 47@ > 82@
  not Camera.GetFadingStatus
goto_if_false @TRUCK_3244
Char.SetCoordinates($scplayer, 59@, 60@, 61@)
Char.SetHeading($scplayer, 62@)
Streaming.LoadScene(59@, 60@, 61@)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 2000
37@ += 1

:TRUCK_3244
if 
  37@ == 7
goto_if_false @TRUCK_3327
if 
  is_int_lvar_greater_than_int_lvar 47@ > 82@
goto_if_false @TRUCK_3327
Text.PrintNow('TRK_P2', 10000, 1)
Camera.DoFade(500, Fade.In)
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 500
37@ += 1

:TRUCK_3327
if 
  37@ == 8
goto_if_false @TRUCK_3391
if and
  is_int_lvar_greater_than_int_lvar 47@ > 82@
  not Camera.GetFadingStatus
goto_if_false @TRUCK_3391
Game.SetEveryoneIgnorePlayer($player1, False)
Game.SetAllCarsCanBeDamaged(True)
Player.SetControl($player1, True)
37@ = 99

:TRUCK_3391
if 
  37@ == 99
goto_if_false @TRUCK_3416
gosub @TRUCK_15361

:TRUCK_3416
return 

:TRUCK_3418
switch_start 88@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @TRUCK_3607 {caseNum1} 1 {caseLabel1} @TRUCK_3481 {caseNum2} 2 {caseLabel2} @TRUCK_3502 {caseNum3} 3 {caseLabel3} @TRUCK_3523 {caseNum4} 4 {caseLabel4} @TRUCK_3544 {caseNum5} 5 {caseLabel5} @TRUCK_3565 {caseNum6} 6 {caseLabel6} @TRUCK_3586 {caseNum7} -1 {caseLabel7} @TRUCK_3634

:TRUCK_3481
set_lvar_text_label 98@s = 'TRK_MND'
goto @TRUCK_3634

:TRUCK_3502
set_lvar_text_label 98@s = 'TRK_MNT'
goto @TRUCK_3634

:TRUCK_3523
set_lvar_text_label 98@s = 'TRK_MFD'
goto @TRUCK_3634

:TRUCK_3544
set_lvar_text_label 98@s = 'TRK_MI'
goto @TRUCK_3634

:TRUCK_3565
set_lvar_text_label 98@s = 'TRK_MTD'
goto @TRUCK_3634

:TRUCK_3586
set_lvar_text_label 98@s = 'TRK_MHI'
goto @TRUCK_3634

:TRUCK_3607
write_debug "UNKNOWN_MISSION_TYPE_ID"

:TRUCK_3634
return 

:TRUCK_3636
if 
  86@ == 1
goto_if_false @TRUCK_3801
switch_start 87@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @TRUCK_3801 {caseNum1} 0 {caseLabel1} @TRUCK_3717 {caseNum2} 1 {caseLabel2} @TRUCK_3738 {caseNum3} 2 {caseLabel3} @TRUCK_3759 {caseNum4} 3 {caseLabel4} @TRUCK_3780 {caseNum5} -1 {caseLabel5} @TRUCK_3801 {caseNum6} -1 {caseLabel6} @TRUCK_3801 {caseNum7} -1 {caseLabel7} @TRUCK_3801

:TRUCK_3717
set_lvar_text_label 100@s = 'TRK_CE0'
goto @TRUCK_3801

:TRUCK_3738
set_lvar_text_label 100@s = 'TRK_CE1'
goto @TRUCK_3801

:TRUCK_3759
set_lvar_text_label 100@s = 'TRK_CE2'
goto @TRUCK_3801

:TRUCK_3780
set_lvar_text_label 100@s = 'TRK_CE3'
goto @TRUCK_3801

:TRUCK_3801
if 
  86@ == 2
goto_if_false @TRUCK_3924
switch_start 87@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @TRUCK_3924 {caseNum1} 0 {caseLabel1} @TRUCK_3882 {caseNum2} 1 {caseLabel2} @TRUCK_3903 {caseNum3} -1 {caseLabel3} @TRUCK_3924 {caseNum4} -1 {caseLabel4} @TRUCK_3924 {caseNum5} -1 {caseLabel5} @TRUCK_3924 {caseNum6} -1 {caseLabel6} @TRUCK_3924 {caseNum7} -1 {caseLabel7} @TRUCK_3924

:TRUCK_3882
set_lvar_text_label 100@s = 'TRK_CE4'
goto @TRUCK_3924

:TRUCK_3903
set_lvar_text_label 100@s = 'TRK_CE5'
goto @TRUCK_3924

:TRUCK_3924
if 
  86@ == 3
goto_if_false @TRUCK_4089
switch_start 87@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @TRUCK_4089 {caseNum1} 0 {caseLabel1} @TRUCK_4005 {caseNum2} 1 {caseLabel2} @TRUCK_4026 {caseNum3} 2 {caseLabel3} @TRUCK_4047 {caseNum4} 3 {caseLabel4} @TRUCK_4068 {caseNum5} -1 {caseLabel5} @TRUCK_4089 {caseNum6} -1 {caseLabel6} @TRUCK_4089 {caseNum7} -1 {caseLabel7} @TRUCK_4089

:TRUCK_4005
set_lvar_text_label 100@s = 'TRK_LS0'
goto @TRUCK_4089

:TRUCK_4026
set_lvar_text_label 100@s = 'TRK_LS1'
goto @TRUCK_4089

:TRUCK_4047
set_lvar_text_label 100@s = 'TRK_LS2'
goto @TRUCK_4089

:TRUCK_4068
set_lvar_text_label 100@s = 'TRK_LS3'
goto @TRUCK_4089

:TRUCK_4089
if 
  86@ == 8
goto_if_false @TRUCK_4529
switch_start 87@ {numCases} 14 {hasDefaultCase} 0 {defaultLabel} @TRUCK_4529 {caseNum1} 0 {caseLabel1} @TRUCK_4235 {caseNum2} 1 {caseLabel2} @TRUCK_4256 {caseNum3} 2 {caseLabel3} @TRUCK_4277 {caseNum4} 3 {caseLabel4} @TRUCK_4298 {caseNum5} 4 {caseLabel5} @TRUCK_4319 {caseNum6} 5 {caseLabel6} @TRUCK_4340 {caseNum7} 6 {caseLabel7} @TRUCK_4361
switch_continued 7 {caseLabel1} @TRUCK_4382 {caseNum2} 8 {caseLabel2} @TRUCK_4403 {caseNum3} 9 {caseLabel3} @TRUCK_4424 {caseNum4} 10 {caseLabel4} @TRUCK_4445 {caseNum5} 11 {caseLabel5} @TRUCK_4466 {caseNum6} 12 {caseLabel6} @TRUCK_4487 {caseNum7} 13 {caseLabel7} @TRUCK_4508 {caseNum8} -1 {caseLabel8} @TRUCK_4529 {caseNum9} -1 {caseLabel9} @TRUCK_4529

:TRUCK_4235
set_lvar_text_label 100@s = 'TRK_V0'
goto @TRUCK_4529

:TRUCK_4256
set_lvar_text_label 100@s = 'TRK_V1'
goto @TRUCK_4529

:TRUCK_4277
set_lvar_text_label 100@s = 'TRK_V2'
goto @TRUCK_4529

:TRUCK_4298
set_lvar_text_label 100@s = 'TRK_V3'
goto @TRUCK_4529

:TRUCK_4319
set_lvar_text_label 100@s = 'TRK_V4'
goto @TRUCK_4529

:TRUCK_4340
set_lvar_text_label 100@s = 'TRK_V5'
goto @TRUCK_4529

:TRUCK_4361
set_lvar_text_label 100@s = 'TRK_V6'
goto @TRUCK_4529

:TRUCK_4382
set_lvar_text_label 100@s = 'TRK_V7'
goto @TRUCK_4529

:TRUCK_4403
set_lvar_text_label 100@s = 'TRK_V8'
goto @TRUCK_4529

:TRUCK_4424
set_lvar_text_label 100@s = 'TRK_V9'
goto @TRUCK_4529

:TRUCK_4445
set_lvar_text_label 100@s = 'TRK_V10'
goto @TRUCK_4529

:TRUCK_4466
set_lvar_text_label 100@s = 'TRK_V11'
goto @TRUCK_4529

:TRUCK_4487
set_lvar_text_label 100@s = 'TRK_V12'
goto @TRUCK_4529

:TRUCK_4508
set_lvar_text_label 100@s = 'TRK_V13'
goto @TRUCK_4529

:TRUCK_4529
if 
  86@ == 7
goto_if_false @TRUCK_4715
switch_start 87@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @TRUCK_4715 {caseNum1} 0 {caseLabel1} @TRUCK_4610 {caseNum2} 1 {caseLabel2} @TRUCK_4631 {caseNum3} 2 {caseLabel3} @TRUCK_4652 {caseNum4} 3 {caseLabel4} @TRUCK_4673 {caseNum5} 4 {caseLabel5} @TRUCK_4694 {caseNum6} -1 {caseLabel6} @TRUCK_4715 {caseNum7} -1 {caseLabel7} @TRUCK_4715

:TRUCK_4610
set_lvar_text_label 100@s = 'TRK_NC0'
goto @TRUCK_4715

:TRUCK_4631
set_lvar_text_label 100@s = 'TRK_NC1'
goto @TRUCK_4715

:TRUCK_4652
set_lvar_text_label 100@s = 'TRK_NC2'
goto @TRUCK_4715

:TRUCK_4673
set_lvar_text_label 100@s = 'TRK_NC3'
goto @TRUCK_4715

:TRUCK_4694
set_lvar_text_label 100@s = 'TRK_NC4'
goto @TRUCK_4715

:TRUCK_4715
if 
  86@ == 4
goto_if_false @TRUCK_4859
switch_start 87@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @TRUCK_4859 {caseNum1} 0 {caseLabel1} @TRUCK_4796 {caseNum2} 1 {caseLabel2} @TRUCK_4817 {caseNum3} 2 {caseLabel3} @TRUCK_4838 {caseNum4} -1 {caseLabel4} @TRUCK_4859 {caseNum5} -1 {caseLabel5} @TRUCK_4859 {caseNum6} -1 {caseLabel6} @TRUCK_4859 {caseNum7} -1 {caseLabel7} @TRUCK_4859

:TRUCK_4796
set_lvar_text_label 100@s = 'TRK_CS0'
goto @TRUCK_4859

:TRUCK_4817
set_lvar_text_label 100@s = 'TRK_CS1'
goto @TRUCK_4859

:TRUCK_4838
set_lvar_text_label 100@s = 'TRK_CS2'
goto @TRUCK_4859

:TRUCK_4859
if 
  86@ == 5
goto_if_false @TRUCK_5024
switch_start 87@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @TRUCK_5024 {caseNum1} 0 {caseLabel1} @TRUCK_4940 {caseNum2} 1 {caseLabel2} @TRUCK_4961 {caseNum3} 2 {caseLabel3} @TRUCK_4982 {caseNum4} 3 {caseLabel4} @TRUCK_5003 {caseNum5} -1 {caseLabel5} @TRUCK_5024 {caseNum6} -1 {caseLabel6} @TRUCK_5024 {caseNum7} -1 {caseLabel7} @TRUCK_5024

:TRUCK_4940
set_lvar_text_label 100@s = 'TRK_SF0'
goto @TRUCK_5024

:TRUCK_4961
set_lvar_text_label 100@s = 'TRK_SF1'
goto @TRUCK_5024

:TRUCK_4982
set_lvar_text_label 100@s = 'TRK_SF2'
goto @TRUCK_5024

:TRUCK_5003
set_lvar_text_label 100@s = 'TRK_SF3'
goto @TRUCK_5024

:TRUCK_5024
if 
  86@ == 6
goto_if_false @TRUCK_5168
switch_start 87@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @TRUCK_5168 {caseNum1} 0 {caseLabel1} @TRUCK_5105 {caseNum2} 1 {caseLabel2} @TRUCK_5126 {caseNum3} 2 {caseLabel3} @TRUCK_5147 {caseNum4} -1 {caseLabel4} @TRUCK_5168 {caseNum5} -1 {caseLabel5} @TRUCK_5168 {caseNum6} -1 {caseLabel6} @TRUCK_5168 {caseNum7} -1 {caseLabel7} @TRUCK_5168

:TRUCK_5105
set_lvar_text_label 100@s = 'TRK_CN0'
goto @TRUCK_5168

:TRUCK_5126
set_lvar_text_label 100@s = 'TRK_CN1'
goto @TRUCK_5168

:TRUCK_5147
set_lvar_text_label 100@s = 'TRK_CN2'
goto @TRUCK_5168

:TRUCK_5168
return 

:TRUCK_5170
Text.ClearSmallPrints
Text.PrintStringInStringNow(98@s, 100@s, 15000, TextStyle.Middle)
return 

:TRUCK_5187
if 
  105@ == 1
goto_if_false @TRUCK_5743
if and
  Trailer.IsAttachedToCab(75@, 74@)
  Char.IsInCar($scplayer, 74@)
goto_if_false @TRUCK_5281
84@ = 0
105@ = 0
Blip.Remove(78@)
Blip.Remove(79@)
76@ = Blip.AddForCoord(102@, 103@, 104@)
Blip.ChangeScale(76@, 4)
Text.ClearSmallPrints
return 

:TRUCK_5281
50@ = Car.GetHealth(74@)
if 
  250 > 50@
goto_if_false @TRUCK_5320
Text.ClearSmallPrints
Blip.Remove(78@)
Blip.Remove(79@)

:TRUCK_5320
if 
  is_int_lvar_greater_than_int_lvar 47@ > 80@
goto_if_false @TRUCK_5362
84@ -= 1
set_lvar_int_to_lvar_int 80@ = 47@
80@ += 1000

:TRUCK_5362
if 
  0 > 84@
goto_if_false @TRUCK_5474
39@ = 1
Text.ClearSmallPrints
Blip.Remove(78@)
Blip.Remove(79@)
72@ = 0
if 
  not Char.IsInCar($scplayer, 74@)
goto_if_false @TRUCK_5439
72@ = 1
89@ = 4

:TRUCK_5439
if and
  not Trailer.IsAttachedToCab(75@, 74@)
  72@ == 0
goto_if_false @TRUCK_5472
89@ = 5

:TRUCK_5472
return 

:TRUCK_5474
Text.ClearPrints
Text.AddNextMessageToPreviousBriefs(False)
if 
  not Char.IsInCar($scplayer, 74@)
goto_if_false @TRUCK_5621
if 
  84@ == 1
goto_if_false @TRUCK_5543
Text.PrintWithNumber('TRK_H5B', 84@, 1000, 1)
goto @TRUCK_5562

:TRUCK_5543
Text.PrintWithNumber('TRK_H5', 84@, 1000, 1)

:TRUCK_5562
if 
  Blip.DoesExist(79@)
goto_if_false @TRUCK_5583
Blip.Remove(79@)

:TRUCK_5583
if 
  not Blip.DoesExist(78@)
goto_if_false @TRUCK_5614
78@ = Blip.AddForCar(74@)
Blip.SetAsFriendly(78@, True)

:TRUCK_5614
goto @TRUCK_5736

:TRUCK_5621
if 
  84@ == 1
goto_if_false @TRUCK_5665
Text.PrintWithNumber('TRK_H4B', 84@, 1000, 1)
goto @TRUCK_5684

:TRUCK_5665
Text.PrintWithNumber('TRK_H4', 84@, 1000, 1)

:TRUCK_5684
if 
  not Blip.DoesExist(79@)
goto_if_false @TRUCK_5715
79@ = Blip.AddForCar(75@)
Blip.SetAsFriendly(79@, True)

:TRUCK_5715
if 
  Blip.DoesExist(78@)
goto_if_false @TRUCK_5736
Blip.Remove(78@)

:TRUCK_5736
goto @TRUCK_5873

:TRUCK_5743
if or
  not Trailer.IsAttachedToCab(75@, 74@)
  not Char.IsInCar($scplayer, 74@)
goto_if_false @TRUCK_5873
84@ = 60
set_lvar_int_to_lvar_int 80@ = 47@
80@ += 1000
105@ = 1
Blip.Remove(76@)
Text.AddNextMessageToPreviousBriefs(False)
if 
  not Char.IsInCar($scplayer, 74@)
goto_if_false @TRUCK_5854
Text.PrintWithNumberNow('TRK_H5', 84@, 1000, 1)
goto @TRUCK_5873

:TRUCK_5854
Text.PrintWithNumberNow('TRK_H4', 84@, 1000, 1)

:TRUCK_5873
return 

:TRUCK_5875
90@ = 750
if or
  88@ == 1
  88@ == 5
goto_if_false @TRUCK_5916
90@ = 500

:TRUCK_5916
if 
  88@ == 3
goto_if_false @TRUCK_5942
90@ = 250

:TRUCK_5942
set_lvar_int_to_lvar_int 50@ = 90@
50@ += 250
Car.SetHealth(75@, 50@)
Car.SetHealth(74@, 50@)
92@ = 0
gosub @TRUCK_6155
if or
  88@ == 1
  88@ == 3
goto_if_false @TRUCK_6031
Hud.DisplayNthCounterWithString($g_Truck_cashKM, CounterDisplay.Bar, 2, 'TRK_DMG')

:TRUCK_6031
if 
  88@ == 2
goto_if_false @TRUCK_6076
gosub @TRUCK_6559
//Hud.DisplayTimerWithString($g_Truck_damageKM, TimerDirection.Up, 'TRK_TIM')
Hud.FreezeTimer(True)

:TRUCK_6076
if 
  88@ == 5
goto_if_false @TRUCK_6139
gosub @TRUCK_6559
//Hud.DisplayTimerWithString($g_Truck_damageKM, TimerDirection.Up, 'TRK_TIM')
Hud.DisplayNthCounterWithString($g_Truck_cashKM, CounterDisplay.Bar, 2, 'TRK_DMG')
Hud.FreezeTimer(True)

:TRUCK_6139
110@ = 0
111@ = 0
return 

:TRUCK_6155
switch_start 92@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @TRUCK_6365 {caseNum1} 0 {caseLabel1} @TRUCK_6218 {caseNum2} 1 {caseLabel2} @TRUCK_6256 {caseNum3} 2 {caseLabel3} @TRUCK_6293 {caseNum4} 3 {caseLabel4} @TRUCK_6330 {caseNum5} 4 {caseLabel5} @TRUCK_6351 {caseNum6} -1 {caseLabel6} @TRUCK_6365 {caseNum7} -1 {caseLabel7} @TRUCK_6365

:TRUCK_6218
set_lvar_int_to_lvar_int 81@ = 93@
81@ *= 140
add_int_lvar_to_int_lvar 81@ += 47@
92@ = 1
goto @TRUCK_6365

:TRUCK_6256
set_lvar_int_to_lvar_int 81@ = 93@
81@ *= 84
add_int_lvar_to_int_lvar 81@ += 47@
92@ = 2
goto @TRUCK_6365

:TRUCK_6293
set_lvar_int_to_lvar_int 81@ = 93@
81@ *= 84
add_int_lvar_to_int_lvar 81@ += 47@
92@ = 3
goto @TRUCK_6365

:TRUCK_6330
gosub @TRUCK_6367
92@ = 4
goto @TRUCK_6365

:TRUCK_6351
92@ = 5
goto @TRUCK_6365

:TRUCK_6365
return 

:TRUCK_6367
50@ = 2
50@ *= 60
50@ += 0
50@ *= 1000
set_lvar_int_to_lvar_int 81@ = 47@
add_int_lvar_to_int_lvar 81@ += 50@
50@, 51@ = Clock.GetTimeOfDay()
51@ += 0
if 
  51@ >= 60
goto_if_false @TRUCK_6459
51@ -= 60
50@ += 1

:TRUCK_6459
50@ += 2
if 
  50@ >= 24
goto_if_false @TRUCK_6491
50@ -= 24

:TRUCK_6491
set_lvar_int_to_lvar_int 52@ = 50@
52@ *= 60
add_int_lvar_to_int_lvar 52@ += 51@
52@ *= 1000
set_var_int_to_lvar_int $g_Truck_damageKM = 52@
Hud.DisplayTimerWithString($g_Truck_damageKM, TimerDirection.Up, 'TRK_DLN')
Hud.FreezeTimer(True)
112@ = 1
return 

:TRUCK_6559
set_lvar_int_to_lvar_int 50@ = 93@
50@ *= 140
50@ /= 1000
set_lvar_int_to_lvar_int 51@ = 50@
51@ /= 60
set_lvar_int_to_lvar_int 52@ = 51@
52@ *= 60
sub_int_lvar_from_int_lvar 50@ -= 52@
94@, 95@ = Clock.GetTimeOfDay()
add_int_lvar_to_int_lvar 95@ += 50@
if 
  95@ >= 60
goto_if_false @TRUCK_6669
94@ += 1
95@ -= 60

:TRUCK_6669
add_int_lvar_to_int_lvar 94@ += 51@

:TRUCK_6677
if 
  94@ >= 24
goto_if_false @TRUCK_6709
94@ -= 24
goto @TRUCK_6677

:TRUCK_6709
72@ = 0
if 
  95@ > 45
goto_if_false @TRUCK_6811
50@ = 60
sub_int_lvar_from_int_lvar 50@ -= 95@
95@ = 0
94@ += 1
if 
  94@ == 24
goto_if_false @TRUCK_6788
94@ = 0

:TRUCK_6788
50@ *= 1000
add_int_lvar_to_int_lvar 81@ += 50@
72@ = 1

:TRUCK_6811
if 
  72@ == 0
goto_if_false @TRUCK_6899
if and
  95@ > 30
  45 > 95@
goto_if_false @TRUCK_6899
50@ = 45
sub_int_lvar_from_int_lvar 50@ -= 95@
95@ = 45
50@ *= 1000
add_int_lvar_to_int_lvar 81@ += 50@
72@ = 1

:TRUCK_6899
if 
  72@ == 0
goto_if_false @TRUCK_6987
if and
  95@ > 15
  30 > 95@
goto_if_false @TRUCK_6987
50@ = 30
sub_int_lvar_from_int_lvar 50@ -= 95@
95@ = 30
50@ *= 1000
add_int_lvar_to_int_lvar 81@ += 50@
72@ = 1

:TRUCK_6987
if 
  72@ == 0
goto_if_false @TRUCK_7075
if and
  95@ > 0
  15 > 95@
goto_if_false @TRUCK_7075
50@ = 15
sub_int_lvar_from_int_lvar 50@ -= 95@
95@ = 15
50@ *= 1000
add_int_lvar_to_int_lvar 81@ += 50@
72@ = 1

:TRUCK_7075
set_lvar_int_to_lvar_int 50@ = 94@
50@ *= 60
add_int_lvar_to_int_lvar 50@ += 95@
50@ *= 1000
set_var_int_to_lvar_int $g_Truck_damageKM = 50@
return 

:TRUCK_7116
50@ = Car.GetHealth(75@)
51@ = Car.GetHealth(74@)
if 
  is_int_lvar_greater_than_int_lvar 50@ > 51@
goto_if_false @TRUCK_7159
set_lvar_int_to_lvar_int 50@ = 51@

:TRUCK_7159
if 
  50@ > 1
goto_if_false @TRUCK_7193
Car.SetHealth(74@, 50@)
Car.SetHealth(75@, 50@)

:TRUCK_7193
if 
  108@ == 0
goto_if_false @TRUCK_7213
return 

:TRUCK_7213
50@ -= 250
50@ *= 100
div_int_lvar_by_int_lvar 50@ /= 90@
if 
  0 > 50@
goto_if_false @TRUCK_7261
50@ = 0

:TRUCK_7261
set_var_int_to_lvar_int $g_Truck_cashKM = 50@
return 

:TRUCK_7271
if 
  is_int_lvar_greater_than_int_lvar 47@ > 81@
goto_if_false @TRUCK_7498
gosub @TRUCK_6155
if 
  92@ == 5
goto_if_false @TRUCK_7345
39@ = 1
81@ = 0
83@ = 0
89@ = 2
return 

:TRUCK_7345
if 
  107@ == 1
goto_if_false @TRUCK_7498
if or
  92@ == 2
  92@ == 3
  92@ == 4
goto_if_false @TRUCK_7498
91@ /= 2
Hud.ClearCounter($g_nTruckMissionsPassed)
Hud.DisplayNthCounterWithString($g_nTruckMissionsPassed, CounterDisplay.Number, 1, 'TRK_CSH')
if 
  92@ == 2
goto_if_false @TRUCK_7448
Hud.ClearTimer($g_Truck_damageKM)

:TRUCK_7448
if 
  92@ == 2
goto_if_false @TRUCK_7473
110@ = 1

:TRUCK_7473
if 
  92@ == 3
goto_if_false @TRUCK_7498
111@ = 1

:TRUCK_7498
return 

:TRUCK_7500
set_lvar_int_to_lvar_int 83@ = 91@
if 
  108@ == 1
goto_if_false @TRUCK_7643
if 
  Car.IsDead(74@)
goto_if_false @TRUCK_7556
83@ = 0
goto @TRUCK_7643

:TRUCK_7556
50@ = Car.GetHealth(74@)
if 
  250 > 50@
goto_if_false @TRUCK_7597
83@ = 0
goto @TRUCK_7643

:TRUCK_7597
50@ -= 250
set_lvar_int_to_lvar_int 51@ = 50@
51@ *= 100
div_int_lvar_by_int_lvar 51@ /= 90@
mult_int_lvar_by_int_lvar 83@ *= 51@
83@ /= 100

:TRUCK_7643
if 
  109@ == 1
goto_if_false @TRUCK_7684
if 
  Car.IsDead(74@)
goto_if_false @TRUCK_7684
83@ = 0

:TRUCK_7684
set_var_int_to_lvar_int $g_nTruckMissionsPassed = 83@
return 

:TRUCK_7694
if 
  109@ == 0
goto_if_false @TRUCK_7714
return 

:TRUCK_7714
if 
  88@ == 4
goto_if_false @TRUCK_7759
if 
  not Player.IsWantedLevelGreater($player1, 2)
goto_if_false @TRUCK_7757
//Player.AlterWantedLevelNoDrop($player1, 3)

:TRUCK_7757
return 

:TRUCK_7759
if 
  88@ == 6
goto_if_false @TRUCK_7804
if 
  not Player.IsWantedLevelGreater($player1, 3)
goto_if_false @TRUCK_7802
//Player.AlterWantedLevelNoDrop($player1, 4)

:TRUCK_7802
return 

:TRUCK_7804
return 

:TRUCK_7806
86@ = -1
87@ = -1
88@ = 0
gosub @TRUCK_7871
gosub @TRUCK_8323
gosub @TRUCK_9841
gosub @TRUCK_8986
gosub @TRUCK_9326
gosub @TRUCK_9431
return 

:TRUCK_7871
59@ = -76.1692
60@ = -1128.963
61@ = 0.0781
62@ = 69.9957
World.ClearArea(59@, 60@, 61@, 30.0, False)
switch_start 97@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_8064 {caseNum1} 1 {caseLabel1} @TRUCK_7992 {caseNum2} 2 {caseLabel2} @TRUCK_8016 {caseNum3} 3 {caseLabel3} @TRUCK_8040 {caseNum4} -1 {caseLabel4} @TRUCK_8079 {caseNum5} -1 {caseLabel5} @TRUCK_8079 {caseNum6} -1 {caseLabel6} @TRUCK_8079 {caseNum7} -1 {caseLabel7} @TRUCK_8079

:TRUCK_7992
74@ = Car.Create(514, 59@, 60@, 61@)
goto @TRUCK_8079

:TRUCK_8016
74@ = Car.Create(403, 59@, 60@, 61@)
goto @TRUCK_8079

:TRUCK_8040
74@ = Car.Create(515, 59@, 60@, 61@)
goto @TRUCK_8079

:TRUCK_8064
write_debug "UNKNOWN_CAB"

:TRUCK_8079
Car.SetHeading(74@, 62@)
59@ = -60.6033
60@ = -1136.899
61@ = 0.0781
World.ClearArea(59@, 60@, 61@, 50.0, False)
switch_start 96@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_8294 {caseNum1} 1 {caseLabel1} @TRUCK_8198 {caseNum2} 2 {caseLabel2} @TRUCK_8222 {caseNum3} 3 {caseLabel3} @TRUCK_8246 {caseNum4} 4 {caseLabel4} @TRUCK_8270 {caseNum5} -1 {caseLabel5} @TRUCK_8313 {caseNum6} -1 {caseLabel6} @TRUCK_8313 {caseNum7} -1 {caseLabel7} @TRUCK_8313

:TRUCK_8198
75@ = Car.Create(584, 59@, 60@, 61@)
goto @TRUCK_8313

:TRUCK_8222
75@ = Car.Create(435, 59@, 60@, 61@)
goto @TRUCK_8313

:TRUCK_8246
75@ = Car.Create(450, 59@, 60@, 61@)
goto @TRUCK_8313

:TRUCK_8270
75@ = Car.Create(591, 59@, 60@, 61@)
goto @TRUCK_8313

:TRUCK_8294
write_debug "UNKNOWN_TRAILER"

:TRUCK_8313
Trailer.AttachToCab(75@, 74@)
return 

:TRUCK_8323
switch_start $gym_lv_defeated {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TRUCK_8597 {caseNum1} 0 {caseLabel1} @TRUCK_8451 {caseNum2} 1 {caseLabel2} @TRUCK_8465 {caseNum3} 2 {caseLabel3} @TRUCK_8479 {caseNum4} 3 {caseLabel4} @TRUCK_8493 {caseNum5} 4 {caseLabel5} @TRUCK_8507 {caseNum6} 5 {caseLabel6} @TRUCK_8521 {caseNum7} 6 {caseLabel7} @TRUCK_8552
switch_continued 7 {caseLabel1} @TRUCK_8583 {caseNum2} -1 {caseLabel2} @TRUCK_8628 {caseNum3} -1 {caseLabel3} @TRUCK_8628 {caseNum4} -1 {caseLabel4} @TRUCK_8628 {caseNum5} -1 {caseLabel5} @TRUCK_8628 {caseNum6} -1 {caseLabel6} @TRUCK_8628 {caseNum7} -1 {caseLabel7} @TRUCK_8628 {caseNum8} -1 {caseLabel8} @TRUCK_8628 {caseNum9} -1 {caseLabel9} @TRUCK_8628

:TRUCK_8451
86@ = 1
goto @TRUCK_8628

:TRUCK_8465
86@ = 2
goto @TRUCK_8628

:TRUCK_8479
86@ = 3
goto @TRUCK_8628

:TRUCK_8493
86@ = 4
goto @TRUCK_8628

:TRUCK_8507
86@ = 5
goto @TRUCK_8628

:TRUCK_8521
51@ = 5
51@ += 1
86@ = Math.RandomIntInRange(4, 51@)
goto @TRUCK_8628

:TRUCK_8552
51@ = 7
51@ += 1
86@ = Math.RandomIntInRange(6, 51@)
goto @TRUCK_8628

:TRUCK_8583
86@ = 8
goto @TRUCK_8628

:TRUCK_8597
51@ = 8
51@ += 1
86@ = Math.RandomIntInRange(2, 51@)
goto @TRUCK_8628

:TRUCK_8628
switch_start 86@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TRUCK_8868 {caseNum1} 1 {caseLabel1} @TRUCK_8756 {caseNum2} 2 {caseLabel2} @TRUCK_8770 {caseNum3} 3 {caseLabel3} @TRUCK_8784 {caseNum4} 4 {caseLabel4} @TRUCK_8826 {caseNum5} 5 {caseLabel5} @TRUCK_8840 {caseNum6} 6 {caseLabel6} @TRUCK_8854 {caseNum7} 7 {caseLabel7} @TRUCK_8812
switch_continued 8 {caseLabel1} @TRUCK_8798 {caseNum2} -1 {caseLabel2} @TRUCK_8896 {caseNum3} -1 {caseLabel3} @TRUCK_8896 {caseNum4} -1 {caseLabel4} @TRUCK_8896 {caseNum5} -1 {caseLabel5} @TRUCK_8896 {caseNum6} -1 {caseLabel6} @TRUCK_8896 {caseNum7} -1 {caseLabel7} @TRUCK_8896 {caseNum8} -1 {caseLabel8} @TRUCK_8896 {caseNum9} -1 {caseLabel9} @TRUCK_8896

:TRUCK_8756
gosub @TRUCK_8898
goto @TRUCK_8896

:TRUCK_8770
gosub @TRUCK_8909
goto @TRUCK_8896

:TRUCK_8784
gosub @TRUCK_8931
goto @TRUCK_8896

:TRUCK_8798
gosub @TRUCK_8920
goto @TRUCK_8896

:TRUCK_8812
gosub @TRUCK_8975
goto @TRUCK_8896

:TRUCK_8826
gosub @TRUCK_8953
goto @TRUCK_8896

:TRUCK_8840
gosub @TRUCK_8942
goto @TRUCK_8896

:TRUCK_8854
gosub @TRUCK_8964
goto @TRUCK_8896

:TRUCK_8868
write_debug "UNKNOWN_DESTINATION_AREA"

:TRUCK_8896
return 

:TRUCK_8898
87@ = Math.RandomIntInRange(0, 4)
return 

:TRUCK_8909
87@ = Math.RandomIntInRange(0, 2)
return 

:TRUCK_8920
87@ = Math.RandomIntInRange(0, 14)
return 

:TRUCK_8931
87@ = Math.RandomIntInRange(0, 4)
return 

:TRUCK_8942
87@ = Math.RandomIntInRange(0, 4)
return 

:TRUCK_8953
87@ = Math.RandomIntInRange(0, 3)
return 

:TRUCK_8964
87@ = Math.RandomIntInRange(0, 3)
return 

:TRUCK_8975
87@ = Math.RandomIntInRange(0, 5)
return 

:TRUCK_8986
switch_start $gym_lv_defeated {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TRUCK_9198 {caseNum1} 0 {caseLabel1} @TRUCK_9114 {caseNum2} 1 {caseLabel2} @TRUCK_9128 {caseNum3} 2 {caseLabel3} @TRUCK_9156 {caseNum4} 3 {caseLabel4} @TRUCK_9114 {caseNum5} 4 {caseLabel5} @TRUCK_9142 {caseNum6} 5 {caseLabel6} @TRUCK_9156 {caseNum7} 6 {caseLabel7} @TRUCK_9170
switch_continued 7 {caseLabel1} @TRUCK_9184 {caseNum2} -1 {caseLabel2} @TRUCK_9221 {caseNum3} -1 {caseLabel3} @TRUCK_9221 {caseNum4} -1 {caseLabel4} @TRUCK_9221 {caseNum5} -1 {caseLabel5} @TRUCK_9221 {caseNum6} -1 {caseLabel6} @TRUCK_9221 {caseNum7} -1 {caseLabel7} @TRUCK_9221 {caseNum8} -1 {caseLabel8} @TRUCK_9221 {caseNum9} -1 {caseLabel9} @TRUCK_9221

:TRUCK_9114
88@ = 2
goto @TRUCK_9221

:TRUCK_9128
88@ = 1
goto @TRUCK_9221

:TRUCK_9142
88@ = 3
goto @TRUCK_9221

:TRUCK_9156
88@ = 4
goto @TRUCK_9221

:TRUCK_9170
88@ = 5
goto @TRUCK_9221

:TRUCK_9184
88@ = 6
goto @TRUCK_9221

:TRUCK_9198
88@ = Math.RandomIntInRange(0, 6)
88@ += 1
goto @TRUCK_9221

:TRUCK_9221
if or
  88@ == 1
  88@ == 3
  88@ == 5
goto_if_false @TRUCK_9260
108@ = 1

:TRUCK_9260
if or
  88@ == 2
  88@ == 5
goto_if_false @TRUCK_9292
107@ = 1

:TRUCK_9292
if or
  88@ == 4
  88@ == 6
goto_if_false @TRUCK_9324
109@ = 1

:TRUCK_9324
return 

:TRUCK_9326
set_lvar_float_to_lvar_float 63@ = 102@
sub_float_var_from_float_lvar 63@ -= $truckX
set_lvar_float_to_lvar_float 64@ = 103@
sub_float_var_from_float_lvar 64@ -= $truckY
set_lvar_float_to_lvar_float 66@ = 63@
mult_float_lvar_by_float_lvar 66@ *= 63@
set_lvar_float_to_lvar_float 67@ = 64@
mult_float_lvar_by_float_lvar 67@ *= 64@
set_lvar_float_to_lvar_float 69@ = 66@
add_float_lvar_to_float_lvar 69@ += 67@
70@ = Math.Sqrt(69@)
cset_lvar_int_to_lvar_float 93@ =# 70@
49@ += 1
return 

:TRUCK_9431
switch_start 86@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TRUCK_9604 {caseNum1} 1 {caseLabel1} @TRUCK_9559 {caseNum2} 2 {caseLabel2} @TRUCK_9559 {caseNum3} 3 {caseLabel3} @TRUCK_9559 {caseNum4} 4 {caseLabel4} @TRUCK_9574 {caseNum5} 5 {caseLabel5} @TRUCK_9574 {caseNum6} 6 {caseLabel6} @TRUCK_9589 {caseNum7} 7 {caseLabel7} @TRUCK_9589
switch_continued 8 {caseLabel1} @TRUCK_9589 {caseNum2} -1 {caseLabel2} @TRUCK_9643 {caseNum3} -1 {caseLabel3} @TRUCK_9643 {caseNum4} -1 {caseLabel4} @TRUCK_9643 {caseNum5} -1 {caseLabel5} @TRUCK_9643 {caseNum6} -1 {caseLabel6} @TRUCK_9643 {caseNum7} -1 {caseLabel7} @TRUCK_9643 {caseNum8} -1 {caseLabel8} @TRUCK_9643 {caseNum9} -1 {caseLabel9} @TRUCK_9643

:TRUCK_9559
91@ = 1000
goto @TRUCK_9643

:TRUCK_9574
91@ = 3000
goto @TRUCK_9643

:TRUCK_9589
91@ = 4000
goto @TRUCK_9643

:TRUCK_9604
write_debug "INITIALISE_CASH_UNKNOWN_DESTINATION"

:TRUCK_9643
switch_start 88@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @TRUCK_9773 {caseNum1} 1 {caseLabel1} @TRUCK_9713 {caseNum2} 2 {caseLabel2} @TRUCK_9706 {caseNum3} 3 {caseLabel3} @TRUCK_9728 {caseNum4} 4 {caseLabel4} @TRUCK_9728 {caseNum5} 5 {caseLabel5} @TRUCK_9743 {caseNum6} 6 {caseLabel6} @TRUCK_9758 {caseNum7} -1 {caseLabel7} @TRUCK_9813

:TRUCK_9706
goto @TRUCK_9813

:TRUCK_9713
91@ += 500
goto @TRUCK_9813

:TRUCK_9728
91@ += 1000
goto @TRUCK_9813

:TRUCK_9743
91@ += 3000
goto @TRUCK_9813

:TRUCK_9758
91@ += 6000
goto @TRUCK_9813

:TRUCK_9773
write_debug "INITIALISE_CASH_UNKNOWN_MISSION_TYPE"

:TRUCK_9813
if 
  $gym_lv_defeated == 5
goto_if_false @TRUCK_9839
91@ += 1000

:TRUCK_9839
return 

:TRUCK_9841
switch_start 86@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TRUCK_10081 {caseNum1} 1 {caseLabel1} @TRUCK_9969 {caseNum2} 2 {caseLabel2} @TRUCK_9983 {caseNum3} 3 {caseLabel3} @TRUCK_9997 {caseNum4} 4 {caseLabel4} @TRUCK_10039 {caseNum5} 5 {caseLabel5} @TRUCK_10053 {caseNum6} 6 {caseLabel6} @TRUCK_10067 {caseNum7} 7 {caseLabel7} @TRUCK_10025
switch_continued 8 {caseLabel1} @TRUCK_10011 {caseNum2} -1 {caseLabel2} @TRUCK_10109 {caseNum3} -1 {caseLabel3} @TRUCK_10109 {caseNum4} -1 {caseLabel4} @TRUCK_10109 {caseNum5} -1 {caseLabel5} @TRUCK_10109 {caseNum6} -1 {caseLabel6} @TRUCK_10109 {caseNum7} -1 {caseLabel7} @TRUCK_10109 {caseNum8} -1 {caseLabel8} @TRUCK_10109 {caseNum9} -1 {caseLabel9} @TRUCK_10109

:TRUCK_9969
gosub @TRUCK_10111
goto @TRUCK_10109

:TRUCK_9983
gosub @TRUCK_10360
goto @TRUCK_10109

:TRUCK_9997
gosub @TRUCK_11214
goto @TRUCK_10109

:TRUCK_10011
gosub @TRUCK_10534
goto @TRUCK_10109

:TRUCK_10025
gosub @TRUCK_11875
goto @TRUCK_10109

:TRUCK_10039
gosub @TRUCK_11457
goto @TRUCK_10109

:TRUCK_10053
gosub @TRUCK_12159
goto @TRUCK_10109

:TRUCK_10067
gosub @TRUCK_11666
goto @TRUCK_10109

:TRUCK_10081
write_debug "UNKNOWN_DESTINATION_AREA"

:TRUCK_10109
return 

:TRUCK_10111
switch_start 87@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_10322 {caseNum1} 0 {caseLabel1} @TRUCK_10174 {caseNum2} 1 {caseLabel2} @TRUCK_10211 {caseNum3} 2 {caseLabel3} @TRUCK_10248 {caseNum4} 3 {caseLabel4} @TRUCK_10285 {caseNum5} -1 {caseLabel5} @TRUCK_10358 {caseNum6} -1 {caseLabel6} @TRUCK_10358 {caseNum7} -1 {caseLabel7} @TRUCK_10358

:TRUCK_10174
102@ = -187.4041
103@ = -277.0196
104@ = 0.4219
goto @TRUCK_10358

:TRUCK_10211
102@ = 58.0364
103@ = -256.7285
104@ = 0.5781
goto @TRUCK_10358

:TRUCK_10248
102@ = 95.8675
103@ = -154.3627
104@ = 1.5751
goto @TRUCK_10358

:TRUCK_10285
102@ = 809.7556
103@ = -598.0007
104@ = 15.1875
goto @TRUCK_10358

:TRUCK_10322
write_debug "UNKNOWN_COUNTRYEASTNEAR_LOCATION"

:TRUCK_10358
return 

:TRUCK_10360
switch_start 87@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @TRUCK_10497 {caseNum1} 0 {caseLabel1} @TRUCK_10423 {caseNum2} 1 {caseLabel2} @TRUCK_10460 {caseNum3} -1 {caseLabel3} @TRUCK_10532 {caseNum4} -1 {caseLabel4} @TRUCK_10532 {caseNum5} -1 {caseLabel5} @TRUCK_10532 {caseNum6} -1 {caseLabel6} @TRUCK_10532 {caseNum7} -1 {caseLabel7} @TRUCK_10532

:TRUCK_10423
102@ = 1403.833
103@ = 399.4294
104@ = 18.75
goto @TRUCK_10532

:TRUCK_10460
102@ = 1338.289
103@ = 348.9004
104@ = 18.4062
goto @TRUCK_10532

:TRUCK_10497
write_debug "UNKNOWN_COUNTRYEASTFAR_LOCATION"

:TRUCK_10532
return 

:TRUCK_10534
switch_start 87@ {numCases} 14 {hasDefaultCase} 1 {defaultLabel} @TRUCK_11180 {caseNum1} 0 {caseLabel1} @TRUCK_10662 {caseNum2} 1 {caseLabel2} @TRUCK_10699 {caseNum3} 2 {caseLabel3} @TRUCK_10736 {caseNum4} 3 {caseLabel4} @TRUCK_10773 {caseNum5} 4 {caseLabel5} @TRUCK_10810 {caseNum6} 5 {caseLabel6} @TRUCK_10847 {caseNum7} 6 {caseLabel7} @TRUCK_10884
switch_continued 7 {caseLabel1} @TRUCK_10921 {caseNum2} 8 {caseLabel2} @TRUCK_10958 {caseNum3} 9 {caseLabel3} @TRUCK_10995 {caseNum4} 10 {caseLabel4} @TRUCK_11032 {caseNum5} 11 {caseLabel5} @TRUCK_11069 {caseNum6} 12 {caseLabel6} @TRUCK_11106 {caseNum7} 13 {caseLabel7} @TRUCK_11143 {caseNum8} -1 {caseLabel8} @TRUCK_11212 {caseNum9} -1 {caseLabel9} @TRUCK_11212

:TRUCK_10662
102@ = 1449.715
103@ = 2358.852
104@ = 9.8203
goto @TRUCK_11212

:TRUCK_10699
102@ = 1037.475
103@ = 2131.344
104@ = 9.8203
goto @TRUCK_11212

:TRUCK_10736
102@ = 987.9741
103@ = 2080.389
104@ = 9.8203
goto @TRUCK_11212

:TRUCK_10773
102@ = 1288.671
103@ = 1195.232
104@ = 9.8656
goto @TRUCK_11212

:TRUCK_10810
102@ = 2467.902
103@ = 1950.061
104@ = 9.2381
goto @TRUCK_11212

:TRUCK_10847
102@ = 2792.744
103@ = 2578.336
104@ = 9.8203
goto @TRUCK_11212

:TRUCK_10884
102@ = 2271.477
103@ = 2791.739
104@ = 9.8203
goto @TRUCK_11212

:TRUCK_10921
102@ = 2596.519
103@ = 1738.582
104@ = 9.8281
goto @TRUCK_11212

:TRUCK_10958
102@ = 2818.84
103@ = 912.5091
104@ = 9.75
goto @TRUCK_11212

:TRUCK_10995
102@ = 2706.505
103@ = 827.3236
104@ = 9.2145
goto @TRUCK_11212

:TRUCK_11032
102@ = 1627.723
103@ = 688.4043
104@ = 9.8281
goto @TRUCK_11212

:TRUCK_11069
102@ = 1504.492
103@ = 981.141
104@ = 9.7187
goto @TRUCK_11212

:TRUCK_11106
102@ = 1724.012
103@ = 1590.128
104@ = 9.2578
goto @TRUCK_11212

:TRUCK_11143
102@ = 1727.833
103@ = 2338.017
104@ = 9.813
goto @TRUCK_11212

:TRUCK_11180
write_debug "UNKNOWN_LASVENTURAS_LOCATION"

:TRUCK_11212
return 

:TRUCK_11214
switch_start 87@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_11425 {caseNum1} 0 {caseLabel1} @TRUCK_11277 {caseNum2} 1 {caseLabel2} @TRUCK_11314 {caseNum3} 2 {caseLabel3} @TRUCK_11351 {caseNum4} 3 {caseLabel4} @TRUCK_11388 {caseNum5} -1 {caseLabel5} @TRUCK_11455 {caseNum6} -1 {caseLabel6} @TRUCK_11455 {caseNum7} -1 {caseLabel7} @TRUCK_11455

:TRUCK_11277
102@ = 2413.683
103@ = -2113.674
104@ = 12.3881
goto @TRUCK_11455

:TRUCK_11314
102@ = 2784.973
103@ = -2455.441
104@ = 12.625
goto @TRUCK_11455

:TRUCK_11351
102@ = 2112.662
103@ = -2070.376
104@ = 12.5547
goto @TRUCK_11455

:TRUCK_11388
102@ = 1763.641
103@ = -2070.371
104@ = 12.6195
goto @TRUCK_11455

:TRUCK_11425
write_debug "UNKNOWN_LOSSANTOS_LOCATION"

:TRUCK_11455
return 

:TRUCK_11457
switch_start 87@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_11631 {caseNum1} 0 {caseLabel1} @TRUCK_11520 {caseNum2} 1 {caseLabel2} @TRUCK_11557 {caseNum3} 2 {caseLabel3} @TRUCK_11594 {caseNum4} -1 {caseLabel4} @TRUCK_11664 {caseNum5} -1 {caseLabel5} @TRUCK_11664 {caseNum6} -1 {caseLabel6} @TRUCK_11664 {caseNum7} -1 {caseLabel7} @TRUCK_11664

:TRUCK_11520
102@ = -1888.621
103@ = -1711.836
104@ = 20.7656
goto @TRUCK_11664

:TRUCK_11557
102@ = -2117.227
103@ = -2380.507
104@ = 29.4688
goto @TRUCK_11664

:TRUCK_11594
102@ = -1545.439
103@ = -2747.032
104@ = 47.5314
goto @TRUCK_11664

:TRUCK_11631
write_debug "UNKNOWN_COUNTRYSOUTH_LOCATION"

:TRUCK_11664
return 

:TRUCK_11666
switch_start 87@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_11840 {caseNum1} 0 {caseLabel1} @TRUCK_11729 {caseNum2} 1 {caseLabel2} @TRUCK_11766 {caseNum3} 2 {caseLabel3} @TRUCK_11803 {caseNum4} -1 {caseLabel4} @TRUCK_11873 {caseNum5} -1 {caseLabel5} @TRUCK_11873 {caseNum6} -1 {caseLabel6} @TRUCK_11873 {caseNum7} -1 {caseLabel7} @TRUCK_11873

:TRUCK_11729
102@ = -1407.375
103@ = 2645.957
104@ = 54.7031
goto @TRUCK_11873

:TRUCK_11766
102@ = -2245.581
103@ = 2371.693
104@ = 3.9919
goto @TRUCK_11873

:TRUCK_11803
102@ = -1360.633
103@ = 2068.094
104@ = 51.4589
goto @TRUCK_11873

:TRUCK_11840
write_debug "UNKNOWN_COUNTRYNORTH_LOCATION"

:TRUCK_11873
return 

:TRUCK_11875
switch_start 87@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @TRUCK_12123 {caseNum1} 0 {caseLabel1} @TRUCK_11938 {caseNum2} 1 {caseLabel2} @TRUCK_11975 {caseNum3} 2 {caseLabel3} @TRUCK_12012 {caseNum4} 3 {caseLabel4} @TRUCK_12049 {caseNum5} 4 {caseLabel5} @TRUCK_12086 {caseNum6} -1 {caseLabel6} @TRUCK_12157 {caseNum7} -1 {caseLabel7} @TRUCK_12157

:TRUCK_11938
102@ = 274.2705
103@ = 1382.781
104@ = 9.6016
goto @TRUCK_12157

:TRUCK_11975
102@ = 628.8638
103@ = 1714.891
104@ = 5.9922
goto @TRUCK_12157

:TRUCK_12012
102@ = 635.0028
103@ = 1213.777
104@ = 10.7188
goto @TRUCK_12157

:TRUCK_12049
102@ = -914.953
103@ = 2012.138
104@ = 59.9283
goto @TRUCK_12157

:TRUCK_12086
102@ = 385.8214
103@ = 2595.55
104@ = 15.4843
goto @TRUCK_12157

:TRUCK_12123
write_debug "UNKNOWN_COUNTRYNORTH2_LOCATION"

:TRUCK_12157
return 

:TRUCK_12159
switch_start 87@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_12370 {caseNum1} 0 {caseLabel1} @TRUCK_12222 {caseNum2} 1 {caseLabel2} @TRUCK_12259 {caseNum3} 2 {caseLabel3} @TRUCK_12296 {caseNum4} 3 {caseLabel4} @TRUCK_12333 {caseNum5} -1 {caseLabel5} @TRUCK_12401 {caseNum6} -1 {caseLabel6} @TRUCK_12401 {caseNum7} -1 {caseLabel7} @TRUCK_12401

:TRUCK_12222
102@ = -1556.977
103@ = -441.3493
104@ = 5.0
goto @TRUCK_12401

:TRUCK_12259
102@ = -2659.631
103@ = 1380.642
104@ = 6.1643
goto @TRUCK_12401

:TRUCK_12296
102@ = -1650.928
103@ = 437.5679
104@ = 6.1797
goto @TRUCK_12401

:TRUCK_12333
102@ = -1745.116
103@ = 37.8752
104@ = 2.5408
goto @TRUCK_12401

:TRUCK_12370
write_debug "UNKNOWN_SAN_FIERRO_LOCATION"

:TRUCK_12401
return 

:TRUCK_12403
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @TRUCK_12452
48@ += 1
if 
  48@ > 2
goto_if_false @TRUCK_12450
48@ = 0

:TRUCK_12450
clear_all_view_variables 

:TRUCK_12452
if 
  48@ == 1
goto_if_false @TRUCK_12646
set_var_int_to_lvar_int $g_Truck_timedKM = 36@
set_var_int_to_lvar_int $Truck_view_debug = 37@
set_var_int_to_lvar_int $8164 = 47@
set_var_int_to_lvar_int $8165 = 81@
sub_int_lvar_from_int_var $8165 -= 47@
set_var_int_to_lvar_int $8166 = 92@
set_var_int_to_lvar_int $8167 = 93@
$8168 = 0
$8169 = 0
view_integer_variable $g_Truck_timedKM {_p2} "M_STAGE"
view_integer_variable $Truck_view_debug {_p2} "M_GOALS"
view_integer_variable $8164 {_p2} "M_MISSION_TIMER"
view_integer_variable $8165 {_p2} "TIME_BOUNDARY_HIT"
view_integer_variable $8166 {_p2} "TIME_STAGE"
view_integer_variable $8167 {_p2} "DISTANCE"

:TRUCK_12646
if 
  48@ == 2
goto_if_false @TRUCK_12664

:TRUCK_12664
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @TRUCK_12686
40@ = 1

:TRUCK_12686
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @TRUCK_12774
if 
  41@ == 0
goto_if_false @TRUCK_12749
41@ = 1
write_debug "LEVEL_PAUSED"
goto @TRUCK_12774

:TRUCK_12749
41@ = 0
write_debug "LEVEL_UNPAUSED"

:TRUCK_12774
return 

:TRUCK_12776
if or
  36@ == 50
  36@ == 51
goto_if_false @TRUCK_12803
return 

:TRUCK_12803
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @TRUCK_12834
gosub @TRUCK_16540
38@ = 1
return 

:TRUCK_12834
if 
is_ps2_keyboard_key_just_pressed 16
goto_if_false @TRUCK_12880
$gym_lv_defeated += 1
write_debug_with_int "MISSIONS_PASSED" {_p2} $gym_lv_defeated
return 

:TRUCK_12880
72@ = 0
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @TRUCK_12909
72@ = 1

:TRUCK_12909
73@ = 0
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @TRUCK_12938
73@ = 1

:TRUCK_12938
50@ = 0
if 
is_ps2_keyboard_key_just_pressed 13
goto_if_false @TRUCK_12967
50@ = 1

:TRUCK_12967
if and
  72@ <> 1
  73@ <> 1
  50@ <> 1
goto_if_false @TRUCK_13001
return 

:TRUCK_13001
if 
  72@ == 1
goto_if_false @TRUCK_13071
34@ += 1
if 
  34@ == 6
goto_if_false @TRUCK_13051
34@ = 0

:TRUCK_13051
35@ = 0
write_debug_with_int "AREA" {_p2} 34@
return 

:TRUCK_13071
if 
  73@ == 1
goto_if_false @TRUCK_13116
35@ += 1
write_debug_with_int "DESTINATION" {_p2} 35@
return 

:TRUCK_13116
if 
  34@ == 0
goto_if_false @TRUCK_13426
switch_start 35@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @TRUCK_13382 {caseNum1} 0 {caseLabel1} @TRUCK_13382 {caseNum2} 1 {caseLabel2} @TRUCK_13197 {caseNum3} 2 {caseLabel3} @TRUCK_13234 {caseNum4} 3 {caseLabel4} @TRUCK_13271 {caseNum5} 4 {caseLabel5} @TRUCK_13308 {caseNum6} 5 {caseLabel6} @TRUCK_13345 {caseNum7} -1 {caseLabel7} @TRUCK_13426

:TRUCK_13197
102@ = 56.744
103@ = -268.404
104@ = 0.579
goto @TRUCK_13426

:TRUCK_13234
102@ = 100.397
103@ = -155.05
104@ = 1.583
goto @TRUCK_13426

:TRUCK_13271
102@ = 815.046
103@ = -605.128
104@ = 15.336
goto @TRUCK_13426

:TRUCK_13308
102@ = 1401.109
103@ = 398.763
104@ = 18.756
goto @TRUCK_13426

:TRUCK_13345
102@ = 1343.125
103@ = 345.667
104@ = 18.556
goto @TRUCK_13426

:TRUCK_13382
102@ = -189.23
103@ = -273.013
104@ = 0.429
35@ = 0
goto @TRUCK_13426

:TRUCK_13426
if 
  34@ == 2
goto_if_false @TRUCK_14097
switch_start 35@ {numCases} 14 {hasDefaultCase} 1 {defaultLabel} @TRUCK_14053 {caseNum1} 0 {caseLabel1} @TRUCK_14053 {caseNum2} 1 {caseLabel2} @TRUCK_13572 {caseNum3} 2 {caseLabel3} @TRUCK_13609 {caseNum4} 3 {caseLabel4} @TRUCK_13646 {caseNum5} 4 {caseLabel5} @TRUCK_13683 {caseNum6} 5 {caseLabel6} @TRUCK_13720 {caseNum7} 6 {caseLabel7} @TRUCK_13757
switch_continued 7 {caseLabel1} @TRUCK_13794 {caseNum2} 8 {caseLabel2} @TRUCK_13831 {caseNum3} 9 {caseLabel3} @TRUCK_13868 {caseNum4} 10 {caseLabel4} @TRUCK_13905 {caseNum5} 11 {caseLabel5} @TRUCK_13942 {caseNum6} 12 {caseLabel6} @TRUCK_13979 {caseNum7} 13 {caseLabel7} @TRUCK_14016 {caseNum8} -1 {caseLabel8} @TRUCK_14097 {caseNum9} -1 {caseLabel9} @TRUCK_14097

:TRUCK_13572
102@ = 1042.15
103@ = 2130.46
104@ = 101.0
goto @TRUCK_14097

:TRUCK_13609
102@ = 983.11
103@ = 2076.38
104@ = 101.0
goto @TRUCK_14097

:TRUCK_13646
102@ = 1288.671
103@ = 1195.232
104@ = 9.8656
goto @TRUCK_14097

:TRUCK_13683
102@ = 2469.57
103@ = 1949.52
104@ = 101.0
goto @TRUCK_14097

:TRUCK_13720
102@ = 2807.83
103@ = 2609.94
104@ = 101.0
goto @TRUCK_14097

:TRUCK_13757
102@ = 2248.71
103@ = 2775.12
104@ = 101.0
goto @TRUCK_14097

:TRUCK_13794
102@ = 2603.22
103@ = 1730.48
104@ = 101.0
goto @TRUCK_14097

:TRUCK_13831
102@ = 2818.84
103@ = 912.19
104@ = 101.0
goto @TRUCK_14097

:TRUCK_13868
102@ = 2710.36
103@ = 850.12
104@ = 101.0
goto @TRUCK_14097

:TRUCK_13905
102@ = 1588.9
103@ = 715.31
104@ = 101.0
goto @TRUCK_14097

:TRUCK_13942
102@ = 1446.26
103@ = 1000.51
104@ = 101.0
goto @TRUCK_14097

:TRUCK_13979
102@ = 1724.012
103@ = 1590.128
104@ = 9.2578
goto @TRUCK_14097

:TRUCK_14016
102@ = 1713.79
103@ = 2329.05
104@ = 101.0
goto @TRUCK_14097

:TRUCK_14053
102@ = 1450.8
103@ = 2360.69
104@ = 101.0
35@ = 0
goto @TRUCK_14097

:TRUCK_14097
if 
  34@ == 1
goto_if_false @TRUCK_14333
switch_start 35@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_14289 {caseNum1} 0 {caseLabel1} @TRUCK_14289 {caseNum2} 1 {caseLabel2} @TRUCK_14178 {caseNum3} 2 {caseLabel3} @TRUCK_14215 {caseNum4} 3 {caseLabel4} @TRUCK_14252 {caseNum5} -1 {caseLabel5} @TRUCK_14333 {caseNum6} -1 {caseLabel6} @TRUCK_14333 {caseNum7} -1 {caseLabel7} @TRUCK_14333

:TRUCK_14178
102@ = 2759.0
103@ = -2446.0
104@ = 101.0
goto @TRUCK_14333

:TRUCK_14215
102@ = 2104.0
103@ = -2089.0
104@ = 101.0
goto @TRUCK_14333

:TRUCK_14252
102@ = 1751.0
103@ = -2067.0
104@ = 101.0
goto @TRUCK_14333

:TRUCK_14289
102@ = 2412.0
103@ = -2106.0
104@ = 101.0
35@ = 0
goto @TRUCK_14333

:TRUCK_14333
if 
  34@ == 4
goto_if_false @TRUCK_14532
switch_start 35@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_14488 {caseNum1} 0 {caseLabel1} @TRUCK_14488 {caseNum2} 1 {caseLabel2} @TRUCK_14414 {caseNum3} 2 {caseLabel3} @TRUCK_14451 {caseNum4} -1 {caseLabel4} @TRUCK_14532 {caseNum5} -1 {caseLabel5} @TRUCK_14532 {caseNum6} -1 {caseLabel6} @TRUCK_14532 {caseNum7} -1 {caseLabel7} @TRUCK_14532

:TRUCK_14414
102@ = -2001.03
103@ = -2388.08
104@ = 101.0
goto @TRUCK_14532

:TRUCK_14451
102@ = -1560.67
103@ = -2728.39
104@ = 101.0
goto @TRUCK_14532

:TRUCK_14488
102@ = -1835.0
103@ = -1647.68
104@ = 101.0
35@ = 0
goto @TRUCK_14532

:TRUCK_14532
if 
  34@ == 6
goto_if_false @TRUCK_14731
switch_start 35@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_14687 {caseNum1} 0 {caseLabel1} @TRUCK_14687 {caseNum2} 1 {caseLabel2} @TRUCK_14613 {caseNum3} 2 {caseLabel3} @TRUCK_14650 {caseNum4} -1 {caseLabel4} @TRUCK_14731 {caseNum5} -1 {caseLabel5} @TRUCK_14731 {caseNum6} -1 {caseLabel6} @TRUCK_14731 {caseNum7} -1 {caseLabel7} @TRUCK_14731

:TRUCK_14613
102@ = -1945.89
103@ = 2377.9
104@ = 101.0
goto @TRUCK_14731

:TRUCK_14650
102@ = -1471.49
103@ = 1864.85
104@ = 101.0
goto @TRUCK_14731

:TRUCK_14687
102@ = -1286.73
103@ = 2695.92
104@ = 101.0
35@ = 0
goto @TRUCK_14731

:TRUCK_14731
if 
  34@ == 3
goto_if_false @TRUCK_15004
switch_start 35@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @TRUCK_14960 {caseNum1} 0 {caseLabel1} @TRUCK_14960 {caseNum2} 1 {caseLabel2} @TRUCK_14812 {caseNum3} 2 {caseLabel3} @TRUCK_14849 {caseNum4} 3 {caseLabel4} @TRUCK_14886 {caseNum5} 4 {caseLabel5} @TRUCK_14923 {caseNum6} -1 {caseLabel6} @TRUCK_15004 {caseNum7} -1 {caseLabel7} @TRUCK_15004

:TRUCK_14812
102@ = 613.75
103@ = 1692.39
104@ = 101.0
goto @TRUCK_15004

:TRUCK_14849
102@ = 620.35
103@ = 1249.328
104@ = 101.0
goto @TRUCK_15004

:TRUCK_14886
102@ = -533.24
103@ = 1995.917
104@ = 101.0
goto @TRUCK_15004

:TRUCK_14923
102@ = 325.05
103@ = 2543.29
104@ = 101.0
goto @TRUCK_15004

:TRUCK_14960
102@ = 246.56
103@ = 1435.19
104@ = 101.0
35@ = 0
goto @TRUCK_15004

:TRUCK_15004
if 
  34@ == 5
goto_if_false @TRUCK_15240
switch_start 35@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_15196 {caseNum1} 0 {caseLabel1} @TRUCK_15196 {caseNum2} 1 {caseLabel2} @TRUCK_15085 {caseNum3} 2 {caseLabel3} @TRUCK_15122 {caseNum4} 3 {caseLabel4} @TRUCK_15159 {caseNum5} -1 {caseLabel5} @TRUCK_15240 {caseNum6} -1 {caseLabel6} @TRUCK_15240 {caseNum7} -1 {caseLabel7} @TRUCK_15240

:TRUCK_15085
102@ = -2629.091
103@ = 1387.42
104@ = 101.0
goto @TRUCK_15240

:TRUCK_15122
102@ = -1530.776
103@ = 487.201
104@ = 101.0
goto @TRUCK_15240

:TRUCK_15159
102@ = -1745.08
103@ = 27.759
104@ = 101.0
goto @TRUCK_15240

:TRUCK_15196
102@ = -1549.859
103@ = -434.86
104@ = 101.0068
35@ = 0
goto @TRUCK_15240

:TRUCK_15240
World.ClearArea(102@, 103@, 104@, 0.5, False)
Char.SetHeading($scplayer, 0.0)
Char.SetCoordinates($scplayer, 102@, 103@, -101.0)
Camera.SetBehindPlayer
return 

:TRUCK_15288
43@ += 1
if 
  43@ > 9
goto_if_false @TRUCK_15320
43@ = 0

:TRUCK_15320
return 

:TRUCK_15322
44@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 46@ = 44@
sub_int_lvar_from_int_lvar 46@ -= 45@
set_lvar_int_to_lvar_int 45@ = 44@
add_int_lvar_to_int_lvar 47@ += 46@
return 

:TRUCK_15361
36@ += 1
37@ = 0
TIMERA = 0
TIMERB = 0
return 

:TRUCK_15391
return 

:TRUCK_15393
if 
  not Player.IsPlaying($player1)
goto_if_false @TRUCK_15420
wait 0
goto @TRUCK_15393

:TRUCK_15420
Player.SetControl($player1, False)
wait 1000
Camera.DoFade(1000, Fade.Out)

:TRUCK_15439
if 
  Camera.GetFadingStatus
goto_if_false @TRUCK_15463
wait 0
goto @TRUCK_15439

:TRUCK_15463
gosub @TRUCK_15630
gosub @TRUCK_15696
gosub @TRUCK_16342
World.ClearArea($truckX, $truckY, $truckZ, 100.0, True)
Streaming.LoadScene($truckX, $truckY, $truckZ)
Char.SetCoordinates($scplayer, -76.9664, -1134.639, 0.0781)
Char.SetHeading($scplayer, 14.7291)
Camera.SetBehindPlayer
World.SetCarDensityMultiplier(0.0)
gosub @TRUCK_7806
wait 2000
Text.DrawOddjobTitleBeforeFade(True)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:TRUCK_15583
if 
  Camera.GetFadingStatus
goto_if_false @TRUCK_15607
wait 0
goto @TRUCK_15583

:TRUCK_15607
Player.SetControl($player1, True)
89@ = 0
gosub @TRUCK_15361
return 

:TRUCK_15630
97@ = Math.RandomIntInRange(0, 3)
97@ += 1
if 
  97@ == 1
goto_if_false @TRUCK_15678
96@ = 1
goto @TRUCK_15694

:TRUCK_15678
96@ = Math.RandomIntInRange(1, 4)
96@ += 1

:TRUCK_15694
return 

:TRUCK_15696
switch_start 97@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_15795 {caseNum1} 1 {caseLabel1} @TRUCK_15759 {caseNum2} 2 {caseLabel2} @TRUCK_15771 {caseNum3} 3 {caseLabel3} @TRUCK_15783 {caseNum4} -1 {caseLabel4} @TRUCK_15810 {caseNum5} -1 {caseLabel5} @TRUCK_15810 {caseNum6} -1 {caseLabel6} @TRUCK_15810 {caseNum7} -1 {caseLabel7} @TRUCK_15810

:TRUCK_15759
Streaming.RequestModel(514)
goto @TRUCK_15810

:TRUCK_15771
Streaming.RequestModel(403)
goto @TRUCK_15810

:TRUCK_15783
Streaming.RequestModel(515)
goto @TRUCK_15810

:TRUCK_15795
write_debug "UNKNOWN_CAB"

:TRUCK_15810
switch_start 96@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_15921 {caseNum1} 1 {caseLabel1} @TRUCK_15873 {caseNum2} 2 {caseLabel2} @TRUCK_15885 {caseNum3} 3 {caseLabel3} @TRUCK_15897 {caseNum4} 4 {caseLabel4} @TRUCK_15909 {caseNum5} -1 {caseLabel5} @TRUCK_15940 {caseNum6} -1 {caseLabel6} @TRUCK_15940 {caseNum7} -1 {caseLabel7} @TRUCK_15940

:TRUCK_15873
Streaming.RequestModel(584)
goto @TRUCK_15940

:TRUCK_15885
Streaming.RequestModel(435)
goto @TRUCK_15940

:TRUCK_15897
Streaming.RequestModel(450)
goto @TRUCK_15940

:TRUCK_15909
Streaming.RequestModel(591)
goto @TRUCK_15940

:TRUCK_15921
write_debug "UNKNOWN_TRAILER"

:TRUCK_15940
Streaming.LoadAllModelsNow
switch_start 97@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_16107 {caseNum1} 1 {caseLabel1} @TRUCK_16005 {caseNum2} 2 {caseLabel2} @TRUCK_16039 {caseNum3} 3 {caseLabel3} @TRUCK_16073 {caseNum4} -1 {caseLabel4} @TRUCK_16122 {caseNum5} -1 {caseLabel5} @TRUCK_16122 {caseNum6} -1 {caseLabel6} @TRUCK_16122 {caseNum7} -1 {caseLabel7} @TRUCK_16122

:TRUCK_16005
if 
  not Streaming.HasModelLoaded(514)
goto_if_false @TRUCK_16032
wait 0
goto @TRUCK_16005

:TRUCK_16032
goto @TRUCK_16122

:TRUCK_16039
if 
  not Streaming.HasModelLoaded(403)
goto_if_false @TRUCK_16066
wait 0
goto @TRUCK_16039

:TRUCK_16066
goto @TRUCK_16122

:TRUCK_16073
if 
  not Streaming.HasModelLoaded(515)
goto_if_false @TRUCK_16100
wait 0
goto @TRUCK_16073

:TRUCK_16100
goto @TRUCK_16122

:TRUCK_16107
write_debug "UNKNOWN_CAB"

:TRUCK_16122
switch_start 96@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_16321 {caseNum1} 1 {caseLabel1} @TRUCK_16185 {caseNum2} 2 {caseLabel2} @TRUCK_16219 {caseNum3} 3 {caseLabel3} @TRUCK_16253 {caseNum4} 4 {caseLabel4} @TRUCK_16287 {caseNum5} -1 {caseLabel5} @TRUCK_16340 {caseNum6} -1 {caseLabel6} @TRUCK_16340 {caseNum7} -1 {caseLabel7} @TRUCK_16340

:TRUCK_16185
if 
  not Streaming.HasModelLoaded(584)
goto_if_false @TRUCK_16212
wait 0
goto @TRUCK_16185

:TRUCK_16212
goto @TRUCK_16340

:TRUCK_16219
if 
  not Streaming.HasModelLoaded(435)
goto_if_false @TRUCK_16246
wait 0
goto @TRUCK_16219

:TRUCK_16246
goto @TRUCK_16340

:TRUCK_16253
if 
  not Streaming.HasModelLoaded(450)
goto_if_false @TRUCK_16280
wait 0
goto @TRUCK_16253

:TRUCK_16280
goto @TRUCK_16340

:TRUCK_16287
if 
  not Streaming.HasModelLoaded(591)
goto_if_false @TRUCK_16314
wait 0
goto @TRUCK_16287

:TRUCK_16314
goto @TRUCK_16340

:TRUCK_16321
write_debug "UNKNOWN_TRAILER"

:TRUCK_16340
return 

:TRUCK_16342
return 

:TRUCK_16344
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
switch_start 89@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @TRUCK_16538 {caseNum1} 1 {caseLabel1} @TRUCK_16423 {caseNum2} 2 {caseLabel2} @TRUCK_16446 {caseNum3} 3 {caseLabel3} @TRUCK_16469 {caseNum4} 4 {caseLabel4} @TRUCK_16492 {caseNum5} 5 {caseLabel5} @TRUCK_16515 {caseNum6} -1 {caseLabel6} @TRUCK_16538 {caseNum7} -1 {caseLabel7} @TRUCK_16538

:TRUCK_16423
Text.PrintNow('TRK_F1', 5000, 1)
goto @TRUCK_16538

:TRUCK_16446
Text.PrintNow('TRK_F2', 5000, 1)
goto @TRUCK_16538

:TRUCK_16469
Text.PrintNow('TRK_F3', 5000, 1)
goto @TRUCK_16538

:TRUCK_16492
Text.PrintNow('TRK_F4', 5000, 1)
goto @TRUCK_16538

:TRUCK_16515
Text.PrintNow('TRK_F5', 5000, 1)
goto @TRUCK_16538

:TRUCK_16538
return 

:TRUCK_16540
gosub @TRUCK_7500
Text.PrintWithNumberBig('M_PASS', 83@, 5000, TextStyle.Middle)
Player.AddScore($player1, 83@)
Hud.ClearCounter($g_nTruckMissionsPassed)
$gym_lv_defeated += 1
if 
  $gym_lv_defeated == 1
goto_if_false @TRUCK_16627
Text.PrintNow('TRK_P1', 5000, 1)
goto @TRUCK_16729

:TRUCK_16627
if 
  $gym_lv_defeated == 8
goto_if_false @TRUCK_16710
if 
  $done_truck_progress == 0
goto_if_false @TRUCK_16687
Stat.RegisterOddjobMissionPassed
Stat.PlayerMadeProgress(1)
Audio.PlayMissionPassedTune(2)
$done_truck_progress = 1
114@ = 1

:TRUCK_16687
Text.PrintBig('TRK_P4', 5000, TextStyle.MiddleSmaller)
goto @TRUCK_16729

:TRUCK_16710
Text.PrintWithNumberNow('TRK_P3', $gym_lv_defeated, 5000, 1)

:TRUCK_16729
Stat.IncrementIntNoMessage(StatId.TruckMissionsPassed, 1)
Stat.IncrementIntNoMessage(StatId.TruckMoneyMade, 83@)
return 

:TRUCK_16746
Player.ClearWantedLevel($player1)
return 

:TRUCK_16753
Car.MarkAsNoLongerNeeded(74@)
Car.MarkAsNoLongerNeeded(75@)
Blip.Remove(77@)
Blip.Remove(76@)
Blip.Remove(78@)
Blip.Remove(79@)
Hud.ClearCounter($g_nTruckMissionsPassed)
Hud.ClearCounter($g_Truck_cashKM)
Hud.ClearTimer($g_Truck_damageKM)
Streaming.MarkModelAsNoLongerNeeded(514)
Streaming.MarkModelAsNoLongerNeeded(403)
Streaming.MarkModelAsNoLongerNeeded(515)
Streaming.MarkModelAsNoLongerNeeded(584)
Streaming.MarkModelAsNoLongerNeeded(435)
Streaming.MarkModelAsNoLongerNeeded(450)
Streaming.MarkModelAsNoLongerNeeded(591)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SwitchEmergencyServices(True)
$timer_mobile_start = Clock.GetGameTimer()
Text.DrawOddjobTitleBeforeFade(True)
$flag_player_on_oddjob = 0
$onmission = 0
Mission.Finish
return 

//-------------Mission 118---------------
// Originally: Quarry

:QUARRY
script_name 'QUARRY'
gosub @QUARRY_47
if 
  has_deatharrest_been_executed 
goto_if_false @QUARRY_38
gosub @QUARRY_25912

:QUARRY_38
gosub @QUARRY_27546
terminate_this_script 

:QUARRY_47
if 
  $done_quarry_progress == 0
goto_if_false @QUARRY_67
Stat.RegisterMissionGiven

:QUARRY_67
$onmission = 1
$flag_player_on_oddjob = 1
82@ = 0
83@ = 0
84@ = 0
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
45@ = 0
46@ = 0
47@ = 0
TIMERA = 0
TIMERB = 0
230@ = 0
231@ = 0
233@ = 0
234@ = 0
235@ = 0
236@ = 0
238@ = 0
239@ = 0
240@ = 0
241@ = 0
242@ = 0
243@ = 0
251@ = 0
252@ = 0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
278@ = 0
279@ = 0
280@ = 0
281@ = 0
282@ = 0
283@ = 0
284@ = 0
292@ = 0
293@ = 0
294@ = 0
295@ = 0
if 
  34@ == -99
goto_if_false @QUARRY_1311
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
86@ = Car.Create(468, 0.0, 0.0, 0.0)
87@ = Car.Create(486, 0.0, 0.0, 0.0)
88@ = Car.Create(406, 0.0, 0.0, 0.0)
89@ = Car.Create(523, 0.0, 0.0, 0.0)
91@ = Car.Create(406, 0.0, 0.0, 0.0)
85@ = Char.Create(PedType.CivMale, 18, 0.0, 0.0, 0.0)
92@ = Object.Create(#DEAD_TIED_COP, 0.0, 0.0, 0.0)
93@ = Object.Create(#CR_AMMOBOX, 0.0, 0.0, 0.0)
121@ = Object.Create(#CR_AMMOBOX, 0.0, 0.0, 0.0)
48@ = 0

:QUARRY_679
94@(48@,7i) = Object.Create(#DYN_QUARRYROCK03, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_679
48@ = 0

:QUARRY_734
101@(48@,10i) = Object.Create(#KB_BARREL, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_734
48@ = 0

:QUARRY_789
111@(48@,3i) = Object.Create(#DEAD_TIED_COP, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_789
48@ = 0

:QUARRY_844
114@(48@,7i) = Object.Create(#CM_BOX, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_844
90@ = Train.Create(11, 0.0, 0.0, 0.0, False)
48@ = 0

:QUARRY_923
190@(48@,7i) = Checkpoint.Create(CheckpointType.Tube, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_923
48@ = 0

:QUARRY_997
122@(48@,3i) = Object.Create(#CR_AMMOBOX, 0.0, 0.0, 0.0)
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_997
197@ = Checkpoint.Create(CheckpointType.Tube, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
125@ = Blip.AddForCar(87@)
126@ = Blip.AddForCar(88@)
130@ = Blip.AddForCar(89@)
141@ = Blip.AddForCar(90@)
152@ = Blip.AddForCar(91@)
127@ = Blip.AddForCoord(0.0, 0.0, 0.0)
128@ = Blip.AddForCoord(0.0, 0.0, 0.0)
131@ = Blip.AddForCoord(0.0, 0.0, 0.0)
132@ = Blip.AddForCoord(0.0, 0.0, 0.0)
129@ = Blip.AddForObject(92@)
140@ = Blip.AddForObject(101@)
48@ = 0

:QUARRY_1230
133@(48@,7i) = Blip.AddForObject(94@(48@,7i))
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_1230
48@ = 0

:QUARRY_1274
142@(48@,10i) = Blip.AddForObject(101@(48@,10i))
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_1274

:QUARRY_1311
Text.LoadMissionText('QUARRY')
if 
  not Char.IsDead($scplayer)
goto_if_false @QUARRY_1424
if 
  Player.IsWantedLevelGreater($player1, 0)
goto_if_false @QUARRY_1424
Text.PrintNow('VAL_C1', 5000, 1)
Char.SetCoordinates($scplayer, 827.9296, 857.7913, 11.311)
Char.SetHeading($scplayer, 120.0)
Camera.SetBehindPlayer
Player.SetControl($player1, True)
Camera.DoFade(500, Fade.In)
Text.DrawOddjobTitleBeforeFade(True)
return 

:QUARRY_1424
gosub @QUARRY_21090

:QUARRY_1431
wait 0
if and
  34@ <> 18
  34@ <> 19
goto_if_false @QUARRY_1701
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @QUARRY_1525
set_lvar_int_to_var_int 50@ = $g_Quarry_damageKM($8170,7i)
50@ *= 1000
set_lvar_int_to_lvar_int 206@ = 46@
sub_int_lvar_from_int_lvar 206@ -= 50@
36@ = 1
goto @QUARRY_2224

:QUARRY_1525
if 
  $done_quarry_progress == 1
goto_if_false @QUARRY_1701
if 
  292@ == 1
goto_if_false @QUARRY_1677
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @QUARRY_1670
38@ = 1
Text.PrintNow('QUAR_37', 5000, 1)
Text.PrintBig('SKIPPED', 5000, TextStyle.MiddleSmallerHigher)
$8170 += 1
if 
  $8170 == 7
goto_if_false @QUARRY_1649
$8170 = 0

:QUARRY_1649
CarGenerator.Switch($flag_1st_time_nitro_shop, 101)
CarGenerator.Switch($gen_car1, 101)
goto @QUARRY_2224

:QUARRY_1670
goto @QUARRY_1701

:QUARRY_1677
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @QUARRY_1701
292@ = 1

:QUARRY_1701
gosub @QUARRY_20409
gosub @QUARRY_20898
if or
  38@ == 1
  39@ == 1
goto_if_false @QUARRY_1747
goto @QUARRY_2224

:QUARRY_1747
gosub @QUARRY_20987
gosub @QUARRY_21021
if 
  Char.IsDead($scplayer)
goto_if_false @QUARRY_1791
37@ = 1
goto @QUARRY_2224

:QUARRY_1791
if 
  34@ == 0
goto_if_false @QUARRY_1849
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:QUARRY_1849
switch_start 34@ {numCases} 19 {hasDefaultCase} 0 {defaultLabel} @QUARRY_2224 {caseNum1} 1 {caseLabel1} @QUARRY_2126 {caseNum2} 2 {caseLabel2} @QUARRY_2140 {caseNum3} 3 {caseLabel3} @QUARRY_2154 {caseNum4} 4 {caseLabel4} @QUARRY_2182 {caseNum5} 5 {caseLabel5} @QUARRY_2042 {caseNum6} 6 {caseLabel6} @QUARRY_2182 {caseNum7} 7 {caseLabel7} @QUARRY_2056
switch_continued 8 {caseLabel1} @QUARRY_2182 {caseNum2} 9 {caseLabel2} @QUARRY_2070 {caseNum3} 10 {caseLabel3} @QUARRY_2084 {caseNum4} 11 {caseLabel4} @QUARRY_2182 {caseNum5} 12 {caseLabel5} @QUARRY_2098 {caseNum6} 13 {caseLabel6} @QUARRY_2182 {caseNum7} 14 {caseLabel7} @QUARRY_2112 {caseNum8} 15 {caseLabel8} @QUARRY_2182 {caseNum9} 16 {caseLabel9} @QUARRY_2168
switch_continued 17 {caseLabel1} @QUARRY_2182 {caseNum2} 18 {caseLabel2} @QUARRY_2196 {caseNum3} 19 {caseLabel3} @QUARRY_2210 {caseNum4} -1 {caseLabel4} @QUARRY_2224 {caseNum5} -1 {caseLabel5} @QUARRY_2224 {caseNum6} -1 {caseLabel6} @QUARRY_2224 {caseNum7} -1 {caseLabel7} @QUARRY_2224 {caseNum8} -1 {caseLabel8} @QUARRY_2224 {caseNum9} -1 {caseLabel9} @QUARRY_2224

:QUARRY_2042
gosub @QUARRY_6252
goto @QUARRY_2224

:QUARRY_2056
gosub @QUARRY_8986
goto @QUARRY_2224

:QUARRY_2070
gosub @QUARRY_11447
goto @QUARRY_2224

:QUARRY_2084
gosub @QUARRY_11875
goto @QUARRY_2224

:QUARRY_2098
gosub @QUARRY_13354
goto @QUARRY_2224

:QUARRY_2112
gosub @QUARRY_15693
goto @QUARRY_2224

:QUARRY_2126
gosub @QUARRY_2425
goto @QUARRY_2224

:QUARRY_2140
gosub @QUARRY_3641
goto @QUARRY_2224

:QUARRY_2154
gosub @QUARRY_4711
goto @QUARRY_2224

:QUARRY_2168
gosub @QUARRY_17197
goto @QUARRY_2224

:QUARRY_2182
36@ = 1
goto @QUARRY_2224

:QUARRY_2196
gosub @QUARRY_18899
goto @QUARRY_2224

:QUARRY_2210
38@ = 1
goto @QUARRY_2224

:QUARRY_2224
if 
  38@ == 0
goto_if_false @QUARRY_2377
if 
  37@ == 0
goto_if_false @QUARRY_2361
if 
  36@ == 0
goto_if_false @QUARRY_2292
goto @QUARRY_1431
goto @QUARRY_2354

:QUARRY_2292
gosub @QUARRY_26382
if 
  295@ == 1
goto_if_false @QUARRY_2352
36@ = 0
34@ = 18
35@ = 0
295@ = 0
goto @QUARRY_1431

:QUARRY_2352
return 

:QUARRY_2354
goto @QUARRY_2370

:QUARRY_2361
gosub @QUARRY_25912
return 

:QUARRY_2370
goto @QUARRY_2379

:QUARRY_2377
return 

:QUARRY_2379
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:QUARRY_2425
if 
  Car.IsDead(87@)
goto_if_false @QUARRY_2457
37@ = 1
45@ = 1
return 

:QUARRY_2457
if 
  Car.IsDead(88@)
goto_if_false @QUARRY_2489
37@ = 1
45@ = 2
return 

:QUARRY_2489
if 
  not Car.IsDead(89@)
goto_if_false @QUARRY_2513
Car.SetHealth(89@, 10000)

:QUARRY_2513
if 
  35@ == 0
goto_if_false @QUARRY_2722
125@ = Blip.AddForCar(87@)
Blip.SetAsFriendly(125@, True)
230@ = 0
233@ = 0
234@ = 0
282@ = 0
212@ = 672.7664
213@ = 888.3682
214@ = -41.3985
Text.PrintNow('QUAR_00', 10000, 1)
50@ = 7
50@ -= 1
set_var_int_to_var_int $g_nQuarryMissionsPassed = $g_Quarry_damageKM(50@,7i)
$g_nQuarryMissionsPassed *= 1000
Hud.DisplayTimerWithString($g_nQuarryMissionsPassed, TimerDirection.Down, 'QUAR_D1')
set_lvar_int_to_lvar_int 206@ = 46@
if 
  not Car.IsDead(89@)
goto_if_false @QUARRY_2701
Car.SetIsConsideredByPlayer(89@, False)

:QUARRY_2701
Car.WinchCanPickUp(88@, False)
Car.WinchCanPickUp(87@, False)
35@ += 1

:QUARRY_2722
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_2756
37@ = 1
45@ = 4
return 

:QUARRY_2756
if 
  35@ == 1
goto_if_false @QUARRY_2819
if 
  230@ == 1
goto_if_false @QUARRY_2819
Blip.Remove(128@)
Blip.Remove(125@)
Blip.Remove(129@)
Blip.Remove(130@)
35@ = 99

:QUARRY_2819
if 
  230@ == 0
goto_if_false @QUARRY_3030
if 
  Char.IsInCar($scplayer, 87@)
goto_if_false @QUARRY_2968
if 
  Blip.DoesExist(125@)
goto_if_false @QUARRY_2961
Blip.Remove(125@)
128@ = Blip.AddForCoord(212@, 213@, 214@)
Text.ClearThisPrint('QUAR_35')
if 
  234@ == 0
goto_if_false @QUARRY_2928
129@ = Blip.AddForObject(92@)

:QUARRY_2928
if 
  233@ == 0
goto_if_false @QUARRY_2961
130@ = Blip.AddForCar(89@)
Blip.ChangeColor(130@, BlipColor.Green)

:QUARRY_2961
goto @QUARRY_3030

:QUARRY_2968
if 
  not Blip.DoesExist(125@)
goto_if_false @QUARRY_3030
125@ = Blip.AddForCar(87@)
Blip.SetAsFriendly(125@, True)
Blip.Remove(128@)
Blip.Remove(129@)
Blip.Remove(130@)
Text.PrintNow('QUAR_35', 5000, 1)

:QUARRY_3030
if 
  232@ == 0
goto_if_false @QUARRY_3098
if or
  Char.IsInCar($scplayer, 89@)
  Char.IsInCar($scplayer, 87@)
goto_if_false @QUARRY_3098
232@ = 1
Text.PrintNow('QUAR_02', 7000, 1)

:QUARRY_3098
if 
  230@ == 0
goto_if_false @QUARRY_3614
if 
  233@ == 0
goto_if_false @QUARRY_3279
if 
  Car.Locate3D(89@, 212@, 213@, 214@, 7.0, 7.0, 4.0, 232@)
goto_if_false @QUARRY_3279
if 
  Car.Locate3D(89@, 212@, 213@, 214@, 4.0, 4.0, 4.0, False)
goto_if_false @QUARRY_3279
233@ = 1
Blip.Remove(130@)
Car.FreezePosition(89@, True)
Car.SetCollision(89@, False)
if 
  234@ == 0
goto_if_false @QUARRY_3279
Text.PrintNow('QUAR_03', 5000, 1)

:QUARRY_3279
if 
  234@ == 0
goto_if_false @QUARRY_3559
if 
  233@ == 1
goto_if_false @QUARRY_3433
if 
  Object.Locate3D(92@, 212@, 213@, 214@, 7.0, 7.0, 4.0, 232@)
goto_if_false @QUARRY_3426
if 
  Object.Locate3D(92@, 212@, 213@, 214@, 4.0, 4.0, 4.0, False)
goto_if_false @QUARRY_3426
234@ = 1
Blip.Remove(129@)
Object.FreezePosition(92@, True)
Object.SetCollision(92@, False)

:QUARRY_3426
goto @QUARRY_3559

:QUARRY_3433
if 
  Object.Locate3D(92@, 212@, 213@, 214@, 7.0, 7.0, 4.0, False)
goto_if_false @QUARRY_3559
if 
  Object.Locate3D(92@, 212@, 213@, 214@, 4.0, 4.0, 4.0, False)
goto_if_false @QUARRY_3559
234@ = 1
Blip.Remove(129@)
Object.FreezePosition(92@, True)
Object.SetCollision(92@, False)
Text.PrintNow('QUAR_04', 5000, 1)

:QUARRY_3559
if and
  234@ == 1
  233@ == 1
goto_if_false @QUARRY_3614
230@ = 1
Text.PrintNow('QUAR_05', 5000, 1)
282@ = 1

:QUARRY_3614
if 
  35@ == 99
goto_if_false @QUARRY_3639
gosub @QUARRY_21060

:QUARRY_3639
return 

:QUARRY_3641
if 
  Car.IsDead(87@)
goto_if_false @QUARRY_3673
37@ = 1
45@ = 1
return 

:QUARRY_3673
if 
  Car.IsDead(88@)
goto_if_false @QUARRY_3705
37@ = 1
45@ = 2
return 

:QUARRY_3705
if 
  not Car.IsDead(89@)
goto_if_false @QUARRY_3729
Car.SetHealth(89@, 10000)

:QUARRY_3729
if 
  35@ == 0
goto_if_false @QUARRY_3809
231@ = 0
233@ = 0
234@ = 0
127@ = Blip.AddForCoord(705.1055, 916.3154, -19.6407)
Blip.SetAsFriendly(127@, True)
240@ = 1
35@ += 1

:QUARRY_3809
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_3843
37@ = 1
45@ = 4
return 

:QUARRY_3843
if 
  35@ == 1
goto_if_false @QUARRY_3898
if 
  231@ == 1
goto_if_false @QUARRY_3898
Blip.Remove(126@)
Car.SetHeavy(88@, True)
35@ = 99

:QUARRY_3898
if 
  not Object.IsAttached(93@)
goto_if_false @QUARRY_3952
Object.AttachToCar(93@, 88@, 0.0, -1.7, 1.5, 0.0, 0.0, 0.0)

:QUARRY_3952
if 
  231@ == 0
goto_if_false @QUARRY_4503
59@, 60@, 61@ = Object.GetCoordinates(93@)
53@, 54@, 55@ = Object.GrabEntityOnRope($quarry_stand)
if 
  234@ == 0
goto_if_false @QUARRY_4143
if 
  Object.Locate3D(92@, 59@, 60@, 61@, 3.2, 3.2, 1.5, False)
goto_if_false @QUARRY_4136
if 
  Object.IsAttached(92@)
goto_if_false @QUARRY_4136
if 
  not is_int_lvar_equal_to_int_lvar 55@ == 92@
goto_if_false @QUARRY_4114
234@ = 1
Object.WinchCanPickUp(92@, False)
goto @QUARRY_4136

:QUARRY_4114
Object.Detach(92@, 0.0, 0.0, 0.0, False)

:QUARRY_4136
goto @QUARRY_4238

:QUARRY_4143
if 
  not Object.IsAttached(92@)
goto_if_false @QUARRY_4238
59@, 60@, 61@ = Object.GetCoordinates(92@)
75@ = World.GetGroundZFor3DCoord(59@, 60@, 61@)
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  1.5 > 76@
goto_if_false @QUARRY_4238
234@ = 0
Object.WinchCanPickUp(92@, True)

:QUARRY_4238
if 
  233@ == 0
goto_if_false @QUARRY_4376
if 
  Car.LocateStopped3D(89@, 59@, 60@, 61@, 3.2, 3.2, 1.5, False)
goto_if_false @QUARRY_4369
if 
  not is_int_lvar_equal_to_int_lvar 53@ == 89@
goto_if_false @QUARRY_4369
Car.AttachToCar(89@, 88@, -1000.0, 0.0, 0.0, 0.0, 0.0, 0.0)
233@ = 1
Car.WinchCanPickUp(89@, False)

:QUARRY_4369
goto @QUARRY_4471

:QUARRY_4376
if 
  not Car.IsAttached(89@)
goto_if_false @QUARRY_4471
59@, 60@, 61@ = Car.GetCoordinates(89@)
75@ = World.GetGroundZFor3DCoord(59@, 60@, 61@)
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  1.5 > 76@
goto_if_false @QUARRY_4471
233@ = 0
Car.WinchCanPickUp(89@, True)

:QUARRY_4471
if and
  234@ == 1
  233@ == 1
goto_if_false @QUARRY_4503
231@ = 1

:QUARRY_4503
if 
  240@ == 1
goto_if_false @QUARRY_4612
if 
  Char.LocateAnyMeans3D($scplayer, 705.1055, 916.3154, -19.6407, 4.0, 4.0, 1.2, False)
goto_if_false @QUARRY_4612
Blip.Remove(127@)
240@ = 0
126@ = Blip.AddForCar(88@)
Blip.SetAsFriendly(126@, True)
Text.PrintNow('QUAR_06', 7000, 1)

:QUARRY_4612
if 
  282@ == 1
goto_if_false @QUARRY_4684
if 
  not Char.IsInCar($scplayer, 87@)
goto_if_false @QUARRY_4684
Object.FreezePosition(92@, False)
Object.SetCollision(92@, True)
Car.FreezePosition(89@, False)
Car.SetCollision(89@, True)
282@ = 0

:QUARRY_4684
if 
  35@ == 99
goto_if_false @QUARRY_4709
gosub @QUARRY_21060

:QUARRY_4709
return 

:QUARRY_4711
if 
  Car.IsDead(88@)
goto_if_false @QUARRY_4743
37@ = 1
45@ = 2
return 

:QUARRY_4743
if 
  not Car.IsDead(89@)
goto_if_false @QUARRY_4767
Car.SetHealth(89@, 10000)

:QUARRY_4767
if 
  35@ == 0
goto_if_false @QUARRY_4894
212@ = 985.1581
213@ = 688.4734
214@ = 8.7255
gosub @QUARRY_19761
236@ = 0
235@ = 0
242@ = 0
280@ = 0
281@ = 0
284@ = 0
172@ = 0
Text.PrintNow('QUAR_07', 5000, 1)
35@ += 1

:QUARRY_4894
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_4928
37@ = 1
45@ = 4
return 

:QUARRY_4928
if 
  235@ == 0
goto_if_false @QUARRY_5136
if 
  not Car.IsAttached(89@)
goto_if_false @QUARRY_5041
59@, 60@, 61@ = Car.GetCoordinates(89@)
75@ = World.GetGroundZFor3DCoord(59@, 60@, 61@)
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  1.5 > 76@
goto_if_false @QUARRY_5041
37@ = 1
45@ = 3

:QUARRY_5041
if 
  not Object.IsAttached(92@)
goto_if_false @QUARRY_5136
59@, 60@, 61@ = Object.GetCoordinates(92@)
75@ = World.GetGroundZFor3DCoord(59@, 60@, 61@)
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  1.5 > 76@
goto_if_false @QUARRY_5136
37@ = 1
45@ = 3

:QUARRY_5136
if 
  35@ == 1
goto_if_false @QUARRY_5208
if 
  236@ == 1
goto_if_false @QUARRY_5208
if 
  is_int_lvar_greater_than_int_lvar 46@ > 172@
goto_if_false @QUARRY_5208
Blip.Remove(128@)
Checkpoint.Delete(197@)
35@ = 99

:QUARRY_5208
if 
  Char.IsInCar($scplayer, 88@)
goto_if_false @QUARRY_5373
if 
  Blip.DoesExist(126@)
goto_if_false @QUARRY_5359
Blip.Remove(126@)
Text.ClearThisPrint('QUAR_36')
if 
  238@ == 1
goto_if_false @QUARRY_5291
gosub @QUARRY_19761
goto @QUARRY_5359

:QUARRY_5291
128@ = Blip.AddForCoord(212@, 213@, 214@)
set_lvar_float_to_lvar_float 75@ = 213@
75@ -= 5.0
197@ = Checkpoint.Create(CheckpointType.Tube, 212@, 75@, 214@, 0.0, 0.0, 0.0, 5.0)

:QUARRY_5359
284@ = 1
goto @QUARRY_5453

:QUARRY_5373
if 
  not Blip.DoesExist(126@)
goto_if_false @QUARRY_5453
126@ = Blip.AddForCar(88@)
Blip.SetAsFriendly(126@, True)
Blip.Remove(128@)
Checkpoint.Delete(197@)
Blip.Remove(131@)
if 
  284@ == 1
goto_if_false @QUARRY_5453
Text.PrintNow('QUAR_36', 5000, 1)

:QUARRY_5453
if 
  242@ == 0
goto_if_false @QUARRY_5513
if 
  Char.IsInCar($scplayer, 88@)
goto_if_false @QUARRY_5513
Text.PrintNow('QUAR_08', 7000, 1)
242@ = 1

:QUARRY_5513
if 
  Blip.DoesExist(131@)
goto_if_false @QUARRY_5698
  Char.LocateAnyMeans3D($scplayer, 215@, 216@, 217@, 4.0, 4.0, 4.0, True)
if 
  Char.LocateAnyMeans3D($scplayer, 215@, 216@, 217@, 12.0, 12.0, 12.0, False)
goto_if_false @QUARRY_5698
Blip.Remove(131@)
238@ = 0
128@ = Blip.AddForCoord(212@, 213@, 214@)
set_lvar_float_to_lvar_float 75@ = 213@
75@ -= 5.0
197@ = Checkpoint.Create(CheckpointType.Tube, 212@, 75@, 214@, 0.0, 0.0, 0.0, 5.0)
Text.PrintNow('QUAR_09', 5000, 1)

:QUARRY_5698
if 
  235@ == 0
goto_if_false @QUARRY_5790
if 
  Car.Locate3D(88@, 212@, 213@, 214@, 50.0, 30.0, 10.0, False)
goto_if_false @QUARRY_5783
235@ = 1
Text.PrintHelp('QUAR_H4')
goto @QUARRY_5790

:QUARRY_5783
235@ = 0

:QUARRY_5790
if 
  235@ == 1
goto_if_false @QUARRY_5913
75@ = Car.GetMovingComponentOffset(88@)
if 
  75@ > 0.05
goto_if_false @QUARRY_5913
if 
  Car.IsAttached(89@)
goto_if_false @QUARRY_5875
Car.Detach(89@, 0.0, 0.0, 0.0, False)

:QUARRY_5875
if 
  Object.IsAttached(92@)
goto_if_false @QUARRY_5913
Object.Detach(92@, 0.0, 0.0, 0.0, False)

:QUARRY_5913
if 
  280@ == 0
goto_if_false @QUARRY_5954
if 
  Car.IsInWater(89@)
goto_if_false @QUARRY_5954
280@ = 1

:QUARRY_5954
if 
  281@ == 0
goto_if_false @QUARRY_5995
if 
  Object.IsInWater(92@)
goto_if_false @QUARRY_5995
281@ = 1

:QUARRY_5995
if 
  236@ == 0
goto_if_false @QUARRY_6061
if and
  280@ == 1
  281@ == 1
goto_if_false @QUARRY_6061
236@ = 1
set_lvar_int_to_lvar_int 172@ = 46@
172@ += 2000

:QUARRY_6061
if 
  not Object.IsAttached(93@)
goto_if_false @QUARRY_6115
Object.AttachToCar(93@, 88@, 0.0, -1.7, 1.5, 0.0, 0.0, 0.0)

:QUARRY_6115
if 
  not Car.IsAttached(89@)
goto_if_false @QUARRY_6225
59@, 60@, 61@ = Object.GetCoordinates(93@)
if 
  Car.LocateStopped3D(89@, 59@, 60@, 61@, 3.2, 3.2, 1.5, False)
goto_if_false @QUARRY_6225
Car.AttachToCar(89@, 88@, -1000.0, 0.0, 0.0, 0.0, 0.0, 0.0)

:QUARRY_6225
if 
  35@ == 99
goto_if_false @QUARRY_6250
gosub @QUARRY_21060

:QUARRY_6250
return 

:QUARRY_6252
if 
  Car.IsDead(87@)
goto_if_false @QUARRY_6284
37@ = 1
45@ = 1
return 

:QUARRY_6284
if 
  35@ == 0
goto_if_false @QUARRY_6462
199@ = 0
48@ = 0

:QUARRY_6316
244@(48@,7i) = 0
285@(48@,7i) = 0
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_6316
125@ = Blip.AddForCar(87@)
Blip.SetAsFriendly(125@, True)
Text.PrintNow('QUAR_11', 10000, 1)
50@ = 1
50@ -= 1
set_var_int_to_var_int $g_nQuarryMissionsPassed = $g_Quarry_damageKM(50@,7i)
$g_nQuarryMissionsPassed *= 1000
Hud.DisplayTimerWithString($g_nQuarryMissionsPassed, TimerDirection.Down, 'QUAR_D2')
set_lvar_int_to_lvar_int 206@ = 46@
243@ = 0
35@ += 1

:QUARRY_6462
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_6496
37@ = 1
45@ = 5
return 

:QUARRY_6496
if 
  35@ == 1
goto_if_false @QUARRY_6539
if 
  199@ == 7
goto_if_false @QUARRY_6539
35@ = 99

:QUARRY_6539
if 
  Blip.DoesExist(125@)
goto_if_false @QUARRY_6663
if 
  Char.IsInCar($scplayer, 87@)
goto_if_false @QUARRY_6656
Blip.Remove(125@)
Text.ClearThisPrint('QUAR_35')
48@ = 0

:QUARRY_6597
if 
  244@(48@,7i) == 0
goto_if_false @QUARRY_6635
133@(48@,7i) = Blip.AddForObject(94@(48@,7i))

:QUARRY_6635
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_6597

:QUARRY_6656
goto @QUARRY_8899

:QUARRY_6663
if 
  not Char.IsInCar($scplayer, 87@)
goto_if_false @QUARRY_6757
48@ = 0

:QUARRY_6689
Blip.Remove(133@(48@,7i))
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_6689
125@ = Blip.AddForCar(87@)
Blip.SetAsFriendly(125@, True)
Text.PrintNow('QUAR_35', 5000, 1)
goto @QUARRY_8899

:QUARRY_6757
59@, 60@, 61@ = Char.GetCoordinates($scplayer)
48@ = 0

:QUARRY_6778
80@ = 0
if 
  244@(48@,7i) == 0
goto_if_false @QUARRY_8878
switch_start 48@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @QUARRY_8662 {caseNum1} 0 {caseLabel1} @QUARRY_6870 {caseNum2} 1 {caseLabel2} @QUARRY_7126 {caseNum3} 2 {caseLabel3} @QUARRY_7382 {caseNum4} 3 {caseLabel4} @QUARRY_7638 {caseNum5} 4 {caseLabel5} @QUARRY_7894 {caseNum6} 5 {caseLabel6} @QUARRY_8150 {caseNum7} 6 {caseLabel7} @QUARRY_8406

:QUARRY_6870
62@, 63@, 64@ = Object.GetCoordinates(94@(48@,7i))
78@ = Math.GetDistanceBetweenCoords3D(59@, 60@, 61@, 62@, 63@, 64@)
if 
  30.0 > 78@
goto_if_false @QUARRY_7077
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_7011
190@(48@,7i) = Checkpoint.Create(CheckpointType.Tube, 762.119, 836.6474, -3.4382, 0.0, 0.0, 0.0, 5.0)
285@(48@,7i) = 1

:QUARRY_7011
if 
  Object.Locate3D(94@(48@,7i), 762.119, 836.6474, -5.4382, 15.0, 35.0, 5.0, False)
goto_if_false @QUARRY_7070
80@ = 1

:QUARRY_7070
goto @QUARRY_7119

:QUARRY_7077
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_7119
Checkpoint.Delete(190@(48@,7i))
285@(48@,7i) = 0

:QUARRY_7119
goto @QUARRY_8680

:QUARRY_7126
62@, 63@, 64@ = Object.GetCoordinates(94@(48@,7i))
78@ = Math.GetDistanceBetweenCoords3D(59@, 60@, 61@, 62@, 63@, 64@)
if 
  50.0 > 78@
goto_if_false @QUARRY_7333
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_7267
190@(48@,7i) = Checkpoint.Create(CheckpointType.Tube, 735.8682, 933.0437, -4.3942, 0.0, 0.0, 0.0, 5.0)
285@(48@,7i) = 1

:QUARRY_7267
if 
  Object.Locate3D(94@(48@,7i), 735.8682, 933.0437, -4.3942, 20.0, 30.0, 5.0, False)
goto_if_false @QUARRY_7326
80@ = 1

:QUARRY_7326
goto @QUARRY_7375

:QUARRY_7333
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_7375
Checkpoint.Delete(190@(48@,7i))
285@(48@,7i) = 0

:QUARRY_7375
goto @QUARRY_8680

:QUARRY_7382
62@, 63@, 64@ = Object.GetCoordinates(94@(48@,7i))
78@ = Math.GetDistanceBetweenCoords3D(59@, 60@, 61@, 62@, 63@, 64@)
if 
  30.0 > 78@
goto_if_false @QUARRY_7589
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_7523
190@(48@,7i) = Checkpoint.Create(CheckpointType.Tube, 518.9683, 967.7642, -25.891, 0.0, 0.0, 0.0, 5.0)
285@(48@,7i) = 1

:QUARRY_7523
if 
  Object.Locate3D(94@(48@,7i), 518.9683, 967.7642, -17.891, 45.0, 20.0, 9.0, False)
goto_if_false @QUARRY_7582
80@ = 1

:QUARRY_7582
goto @QUARRY_7631

:QUARRY_7589
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_7631
Checkpoint.Delete(190@(48@,7i))
285@(48@,7i) = 0

:QUARRY_7631
goto @QUARRY_8680

:QUARRY_7638
62@, 63@, 64@ = Object.GetCoordinates(94@(48@,7i))
78@ = Math.GetDistanceBetweenCoords3D(59@, 60@, 61@, 62@, 63@, 64@)
if 
  30.0 > 78@
goto_if_false @QUARRY_7845
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_7779
190@(48@,7i) = Checkpoint.Create(CheckpointType.Tube, 671.3267, 941.1938, -29.338, 0.0, 0.0, 0.0, 5.0)
285@(48@,7i) = 1

:QUARRY_7779
if 
  Object.Locate3D(94@(48@,7i), 671.3267, 941.1938, -29.338, 25.0, 25.0, 5.0, False)
goto_if_false @QUARRY_7838
80@ = 1

:QUARRY_7838
goto @QUARRY_7887

:QUARRY_7845
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_7887
Checkpoint.Delete(190@(48@,7i))
285@(48@,7i) = 0

:QUARRY_7887
goto @QUARRY_8680

:QUARRY_7894
62@, 63@, 64@ = Object.GetCoordinates(94@(48@,7i))
78@ = Math.GetDistanceBetweenCoords3D(59@, 60@, 61@, 62@, 63@, 64@)
if 
  30.0 > 78@
goto_if_false @QUARRY_8101
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_8035
190@(48@,7i) = Checkpoint.Create(CheckpointType.Tube, 523.2235, 907.1995, -43.4101, 0.0, 0.0, 0.0, 5.0)
285@(48@,7i) = 1

:QUARRY_8035
if 
  Object.Locate3D(94@(48@,7i), 523.2235, 907.1995, -40.4101, 35.0, 25.0, 5.0, False)
goto_if_false @QUARRY_8094
80@ = 1

:QUARRY_8094
goto @QUARRY_8143

:QUARRY_8101
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_8143
Checkpoint.Delete(190@(48@,7i))
285@(48@,7i) = 0

:QUARRY_8143
goto @QUARRY_8680

:QUARRY_8150
62@, 63@, 64@ = Object.GetCoordinates(94@(48@,7i))
78@ = Math.GetDistanceBetweenCoords3D(59@, 60@, 61@, 62@, 63@, 64@)
if 
  30.0 > 78@
goto_if_false @QUARRY_8357
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_8291
190@(48@,7i) = Checkpoint.Create(CheckpointType.Tube, 536.8022, 838.0778, -38.2296, 0.0, 0.0, 0.0, 5.0)
285@(48@,7i) = 1

:QUARRY_8291
if 
  Object.Locate3D(94@(48@,7i), 536.8022, 838.0778, -38.2296, 25.0, 15.0, 5.0, False)
goto_if_false @QUARRY_8350
80@ = 1

:QUARRY_8350
goto @QUARRY_8399

:QUARRY_8357
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_8399
Checkpoint.Delete(190@(48@,7i))
285@(48@,7i) = 0

:QUARRY_8399
goto @QUARRY_8680

:QUARRY_8406
62@, 63@, 64@ = Object.GetCoordinates(94@(48@,7i))
78@ = Math.GetDistanceBetweenCoords3D(59@, 60@, 61@, 62@, 63@, 64@)
if 
  50.0 > 78@
goto_if_false @QUARRY_8613
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_8547
190@(48@,7i) = Checkpoint.Create(CheckpointType.Tube, 645.2571, 773.7028, -28.2457, 0.0, 0.0, 0.0, 5.0)
285@(48@,7i) = 1

:QUARRY_8547
if 
  Object.Locate3D(94@(48@,7i), 645.2571, 773.7028, -26.2457, 35.0, 20.0, 7.0, False)
goto_if_false @QUARRY_8606
80@ = 1

:QUARRY_8606
goto @QUARRY_8655

:QUARRY_8613
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_8655
Checkpoint.Delete(190@(48@,7i))
285@(48@,7i) = 0

:QUARRY_8655
goto @QUARRY_8680

:QUARRY_8662
write_debug "TOO_MANY_ROCKS"

:QUARRY_8680
if 
  80@ == 1
goto_if_false @QUARRY_8878
Blip.Remove(133@(48@,7i))
Object.Delete(94@(48@,7i))
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_8758
Checkpoint.Delete(190@(48@,7i))
285@(48@,7i) = 0

:QUARRY_8758
244@(48@,7i) = 1
199@ += 1
50@ = 7
sub_int_lvar_from_int_lvar 50@ -= 199@
if 
  50@ <> 0
goto_if_false @QUARRY_8878
if 
  199@ == 1
goto_if_false @QUARRY_8856
Text.PrintWith2NumbersNow('QUAR_14', 199@, 50@, 5000, TextStyle.Middle)
goto @QUARRY_8878

:QUARRY_8856
Text.PrintWith2NumbersNow('QUAR_13', 199@, 50@, 5000, TextStyle.Middle)

:QUARRY_8878
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_6778

:QUARRY_8899
if 
  243@ == 0
goto_if_false @QUARRY_8959
if 
  Char.IsInCar($scplayer, 87@)
goto_if_false @QUARRY_8959
Text.PrintNow('QUAR_12', 7000, 1)
243@ = 1

:QUARRY_8959
if 
  35@ == 99
goto_if_false @QUARRY_8984
gosub @QUARRY_21060

:QUARRY_8984
return 

:QUARRY_8986
if 
  Car.IsDead(87@)
goto_if_false @QUARRY_9018
37@ = 1
45@ = 1
return 

:QUARRY_9018
if 
  35@ == 0
goto_if_false @QUARRY_9242
204@ = 0
48@ = 0

:QUARRY_9050
253@(48@,4i) = 0
257@(48@,4i) = 0
178@(48@,4i) = 0
48@ += 1
  48@ >= 4
goto_if_false @QUARRY_9050
125@ = Blip.AddForCar(87@)
Blip.SetAsFriendly(125@, True)
Text.PrintNow('QUAR_15', 10000, 1)
set_var_int_to_lvar_int $g_nQuarryMissionsPassed = 174@
Hud.DisplayTimerWithString($g_nQuarryMissionsPassed, TimerDirection.Down, 'QUAR_D3')
set_lvar_int_to_lvar_int 206@ = 46@
48@ = 0

:QUARRY_9174
add_int_lvar_to_int_lvar 174@(48@,4i) += 46@
48@ += 1
  48@ >= 4
goto_if_false @QUARRY_9174
251@ = 0
252@ = 0
261@ = 0
243@ = 0
35@ += 1

:QUARRY_9242
if 
  35@ == 1
goto_if_false @QUARRY_9408
if 
  252@ == 1
goto_if_false @QUARRY_9408
59@, 60@, 61@ = Char.GetCoordinates($scplayer)
50@ = 4
50@ -= 1
62@, 63@, 64@ = Object.GetCoordinates(101@(50@,10i))
78@ = Math.GetDistanceBetweenCoords3D(59@, 60@, 61@, 62@, 63@, 64@)
if 
  78@ > 20.0
goto_if_false @QUARRY_9408
Fx.AddExplosion(62@, 63@, 64@, ExplosionType.Aircraft)
Object.Delete(101@(50@,10i))
253@(50@,4i) = 1
35@ = 99

:QUARRY_9408
if 
  Blip.DoesExist(125@)
goto_if_false @QUARRY_9466
if 
  Char.IsInCar($scplayer, 87@)
goto_if_false @QUARRY_9459
Blip.Remove(125@)
Text.ClearThisPrint('QUAR_35')

:QUARRY_9459
goto @QUARRY_9533

:QUARRY_9466
if 
  not Char.IsInCar($scplayer, 87@)
goto_if_false @QUARRY_9533
Blip.Remove(140@)
Blip.Remove(128@)
251@ = 0
125@ = Blip.AddForCar(87@)
Blip.SetAsFriendly(125@, True)
Text.PrintNow('QUAR_35', 5000, 1)

:QUARRY_9533
if 
  252@ == 0
goto_if_false @QUARRY_10787
80@ = 0
switch_start 204@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @QUARRY_10048 {caseNum1} 0 {caseLabel1} @QUARRY_9621 {caseNum2} 1 {caseLabel2} @QUARRY_9687 {caseNum3} 2 {caseLabel3} @QUARRY_9916 {caseNum4} 3 {caseLabel4} @QUARRY_9982 {caseNum5} -1 {caseLabel5} @QUARRY_10067 {caseNum6} -1 {caseLabel6} @QUARRY_10067 {caseNum7} -1 {caseLabel7} @QUARRY_10067

:QUARRY_9621
if 
  Object.Locate3D(101@(204@,10i), 830.4274, 889.852, 12.3516, 4.0, 4.0, 1.0, True)
goto_if_false @QUARRY_9680
80@ = 1

:QUARRY_9680
goto @QUARRY_10067

:QUARRY_9687
if 
  261@ == 0
goto_if_false @QUARRY_9850
if 
  Object.Locate3D(101@(204@,10i), 678.5786, 981.4282, -13.749, 4.0, 4.0, 1.0, True)
goto_if_false @QUARRY_9764
80@ = 1

:QUARRY_9764
59@, 60@, 61@ = Object.GetCoordinates(101@(204@,10i))
if 
  -23.6787 > 61@
goto_if_false @QUARRY_9843
261@ = 1
Blip.Remove(140@)
Blip.Remove(128@)
251@ = 0
Text.PrintNow('QUAR_21', 7000, 1)

:QUARRY_9843
goto @QUARRY_9909

:QUARRY_9850
if 
  Object.Locate3D(101@(204@,10i), 660.666, 913.719, -41.4059, 4.0, 4.0, 1.0, True)
goto_if_false @QUARRY_9909
80@ = 1

:QUARRY_9909
goto @QUARRY_10067

:QUARRY_9916
if 
  Object.Locate3D(101@(204@,10i), 648.9208, 916.257, -42.2287, 4.0, 4.0, 1.0, True)
goto_if_false @QUARRY_9975
80@ = 1

:QUARRY_9975
goto @QUARRY_10067

:QUARRY_9982
if 
  Object.Locate3D(101@(204@,10i), 632.4524, 810.3196, -43.9609, 4.0, 4.0, 1.0, True)
goto_if_false @QUARRY_10041
80@ = 1

:QUARRY_10041
goto @QUARRY_10067

:QUARRY_10048
write_debug "UNKNOWN_BOMB_ID"

:QUARRY_10067
if 
  80@ == 1
goto_if_false @QUARRY_10222
Blip.Remove(140@)
Blip.Remove(128@)
251@ = 0
261@ = 0
Object.FreezePosition(101@(204@,10i), True)
Object.SetCollision(101@(204@,10i), False)
set_lvar_int_to_lvar_int 50@ = 204@
50@ += 1
if 
  50@ == 4
goto_if_false @QUARRY_10215
set_lvar_int_to_lvar_int 51@ = 46@
51@ += 15000
if 
  is_int_lvar_greater_than_int_lvar 174@(204@,4i) > 51@
goto_if_false @QUARRY_10215
set_lvar_int_to_lvar_int 174@(204@,4i) = 51@

:QUARRY_10215
204@ += 1

:QUARRY_10222
if 
  204@ == 4
goto_if_false @QUARRY_10247
252@ = 1

:QUARRY_10247
if 
  80@ == 1
goto_if_false @QUARRY_10324
Hud.ClearTimer($g_nQuarryMissionsPassed)
if 
  252@ == 0
goto_if_false @QUARRY_10324
set_var_int_to_lvar_int $g_nQuarryMissionsPassed = 174@(204@,4i)
sub_int_lvar_from_int_var $g_nQuarryMissionsPassed -= 46@
Hud.DisplayTimerWithString($g_nQuarryMissionsPassed, TimerDirection.Down, 'QUAR_D3')

:QUARRY_10324
if 
  80@ == 1
goto_if_false @QUARRY_10522
if 
  252@ == 1
goto_if_false @QUARRY_10383
Text.PrintNow('QUAR_20', 7000, 1)
goto @QUARRY_10522

:QUARRY_10383
switch_start 204@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @QUARRY_10522 {caseNum1} 0 {caseLabel1} @QUARRY_10446 {caseNum2} 1 {caseLabel2} @QUARRY_10453 {caseNum3} 2 {caseLabel3} @QUARRY_10476 {caseNum4} 3 {caseLabel4} @QUARRY_10499 {caseNum5} -1 {caseLabel5} @QUARRY_10522 {caseNum6} -1 {caseLabel6} @QUARRY_10522 {caseNum7} -1 {caseLabel7} @QUARRY_10522

:QUARRY_10446
goto @QUARRY_10522

:QUARRY_10453
Text.PrintNow('QUAR_17', 7000, 1)
goto @QUARRY_10522

:QUARRY_10476
Text.PrintNow('QUAR_18', 7000, 1)
goto @QUARRY_10522

:QUARRY_10499
Text.PrintNow('QUAR_34', 7000, 1)
goto @QUARRY_10522

:QUARRY_10522
if and
  251@ == 0
  252@ == 0
  not Blip.DoesExist(125@)
goto_if_false @QUARRY_10787
140@ = Blip.AddForObject(101@(204@,10i))
251@ = 1
switch_start 204@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @QUARRY_10787 {caseNum1} 0 {caseLabel1} @QUARRY_10634 {caseNum2} 1 {caseLabel2} @QUARRY_10661 {caseNum3} 2 {caseLabel3} @QUARRY_10733 {caseNum4} 3 {caseLabel4} @QUARRY_10760 {caseNum5} -1 {caseLabel5} @QUARRY_10787 {caseNum6} -1 {caseLabel6} @QUARRY_10787 {caseNum7} -1 {caseLabel7} @QUARRY_10787

:QUARRY_10634
128@ = Blip.AddForCoord(830.4274, 889.852, 12.3516)
goto @QUARRY_10787

:QUARRY_10661
if 
  261@ == 0
goto_if_false @QUARRY_10706
128@ = Blip.AddForCoord(678.5786, 981.4282, -13.749)
goto @QUARRY_10726

:QUARRY_10706
128@ = Blip.AddForCoord(660.666, 913.719, -41.4059)

:QUARRY_10726
goto @QUARRY_10787

:QUARRY_10733
128@ = Blip.AddForCoord(648.9208, 916.257, -42.2287)
goto @QUARRY_10787

:QUARRY_10760
128@ = Blip.AddForCoord(632.4524, 810.3196, -43.9609)
goto @QUARRY_10787

:QUARRY_10787
48@ = 0
set_lvar_int_to_lvar_int 50@ = 204@
if 
  252@ == 1
goto_if_false @QUARRY_10827
50@ -= 1

:QUARRY_10827
if 
  is_int_lvar_greater_or_equal_to_int_lvar 50@ >= 48@
goto_if_false @QUARRY_11360
if 
  253@(48@,4i) == 0
goto_if_false @QUARRY_11265
59@, 60@, 61@ = Object.GetCoordinates(101@(48@,10i))
62@, 63@, 64@ = Car.GetCoordinates(87@)
78@ = Math.GetDistanceBetweenCoords3D(59@, 60@, 61@, 62@, 63@, 64@)
65@, 66@, 67@ = Char.GetCoordinates($scplayer)
79@ = Math.GetDistanceBetweenCoords3D(59@, 60@, 61@, 65@, 66@, 67@)
if 
  not is_int_lvar_equal_to_int_lvar 48@ == 204@
goto_if_false @QUARRY_11033
if and
  78@ > 21.0
  79@ > 21.0
goto_if_false @QUARRY_11033
set_lvar_int_to_lvar_int 174@(48@,4i) = 46@
174@(48@,4i) -= 1

:QUARRY_11033
if 
  is_int_lvar_greater_than_int_lvar 46@ > 174@(48@,4i)
goto_if_false @QUARRY_11258
Fx.AddExplosion(59@, 60@, 61@, ExplosionType.TankFire)
Object.Delete(101@(48@,10i))
253@(48@,4i) = 1
257@(48@,4i) = 0
set_lvar_int_to_lvar_int 178@(48@,4i) = 46@
178@(48@,4i) += 2000
set_lvar_float_to_lvar_float 218@(48@,4f) = 59@
set_lvar_float_to_lvar_float 222@(48@,4f) = 60@
set_lvar_float_to_lvar_float 226@(48@,4f) = 61@
if 
  20.0 > 78@
goto_if_false @QUARRY_11186
Car.Explode(87@)

:QUARRY_11186
if 
  20.0 > 79@
goto_if_false @QUARRY_11223
37@ = 1
45@ = 7
return 

:QUARRY_11223
if 
  is_int_lvar_equal_to_int_lvar 48@ == 204@
goto_if_false @QUARRY_11258
37@ = 1
45@ = 6
return 

:QUARRY_11258
goto @QUARRY_11346

:QUARRY_11265
if 
  257@(48@,4i) == 0
goto_if_false @QUARRY_11346
if 
  is_int_lvar_greater_than_int_lvar 46@ > 178@(48@,4i)
goto_if_false @QUARRY_11346
Fx.AddExplosion(218@(48@,4f), 222@(48@,4f), 226@(48@,4f), ExplosionType.Object)
257@(48@,4i) = 1

:QUARRY_11346
48@ += 1
goto @QUARRY_10827

:QUARRY_11360
if 
  243@ == 0
goto_if_false @QUARRY_11420
if 
  Char.IsInCar($scplayer, 87@)
goto_if_false @QUARRY_11420
Text.PrintNow('QUAR_16', 7000, 1)
243@ = 1

:QUARRY_11420
if 
  35@ == 99
goto_if_false @QUARRY_11445
gosub @QUARRY_21060

:QUARRY_11445
return 

:QUARRY_11447
if 
  Car.IsDead(88@)
goto_if_false @QUARRY_11479
37@ = 1
45@ = 2
return 

:QUARRY_11479
if 
  35@ == 0
goto_if_false @QUARRY_11607
126@ = Blip.AddForCar(88@)
Blip.SetAsFriendly(126@, True)
gosub @QUARRY_19814
Text.PrintNow('QUAR_22', 10000, 1)
235@ = 0
50@ = 4
50@ -= 1
set_var_int_to_var_int $g_nQuarryMissionsPassed = $g_Quarry_damageKM(50@,7i)
$g_nQuarryMissionsPassed *= 1000
Hud.DisplayTimerWithString($g_nQuarryMissionsPassed, TimerDirection.Down, 'QUAR_D1')
set_lvar_int_to_lvar_int 206@ = 46@
35@ += 1

:QUARRY_11607
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_11641
37@ = 1
45@ = 4
return 

:QUARRY_11641
if 
  35@ == 1
goto_if_false @QUARRY_11701
if 
  235@ == 1
goto_if_false @QUARRY_11701
Blip.Remove(132@)
239@ = 0
Blip.Remove(126@)
35@ = 99

:QUARRY_11701
if 
  235@ == 0
goto_if_false @QUARRY_11745
if 
  Char.IsInCar($scplayer, 88@)
goto_if_false @QUARRY_11745
235@ = 1

:QUARRY_11745
if 
  239@ == 1
goto_if_false @QUARRY_11848
  Char.LocateAnyMeans3D($scplayer, 215@, 216@, 217@, 4.0, 4.0, 4.0, True)
if 
  Char.LocateAnyMeans3D($scplayer, 215@, 216@, 217@, 15.0, 10.0, 4.0, False)
goto_if_false @QUARRY_11848
Blip.Remove(132@)
239@ = 0

:QUARRY_11848
if 
  35@ == 99
goto_if_false @QUARRY_11873
gosub @QUARRY_21060

:QUARRY_11873
return 

:QUARRY_11875
if 
  Car.IsDead(88@)
goto_if_false @QUARRY_11907
37@ = 1
45@ = 2
return 

:QUARRY_11907
if 
  35@ == 0
goto_if_false @QUARRY_12473
212@ = 469.377
213@ = 877.2751
214@ = -29.0362
gosub @QUARRY_19761
48@ = 0

:QUARRY_11969
50@ = Math.RandomIntInRange(2, 4)
59@ = Math.RandomFloatInRange(-2.0, 2.0)
60@ = Math.RandomFloatInRange(-3.0, 3.0)
add_float_lvar_to_float_lvar 59@ += 212@
add_float_lvar_to_float_lvar 60@ += 213@
61@ = World.GetGroundZFor3DCoord(59@, 60@, -20.0)
153@(48@,18i) = ScriptFire.Start(59@, 60@, 61@, 0, 50@)
48@ += 1
  48@ >= 15
goto_if_false @QUARRY_11969
48@ = 0

:QUARRY_12091
50@ = Math.RandomIntInRange(0, 4)
59@ = Math.RandomFloatInRange(-1.3, 1.3)
60@ = Math.RandomFloatInRange(-1.8, 1.8)
add_float_lvar_to_float_lvar 59@ += 212@
add_float_lvar_to_float_lvar 60@ += 213@
61@ = World.GetGroundZFor3DCoord(59@, 60@, -20.0)
switch_start 50@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @QUARRY_12337 {caseNum1} 0 {caseLabel1} @QUARRY_12225 {caseNum2} 1 {caseLabel2} @QUARRY_12253 {caseNum3} 2 {caseLabel3} @QUARRY_12281 {caseNum4} 3 {caseLabel4} @QUARRY_12309 {caseNum5} -1 {caseLabel5} @QUARRY_12337 {caseNum6} -1 {caseLabel6} @QUARRY_12337 {caseNum7} -1 {caseLabel7} @QUARRY_12337

:QUARRY_12225
114@(50@,7i) = Object.Create(#CM_BOX, 59@, 60@, 61@)
goto @QUARRY_12337

:QUARRY_12253
114@(50@,7i) = Object.Create(#BLACKBAG2, 59@, 60@, 61@)
goto @QUARRY_12337

:QUARRY_12281
114@(50@,7i) = Object.Create(#DYN_WOODPILE, 59@, 60@, 61@)
goto @QUARRY_12337

:QUARRY_12309
114@(50@,7i) = Object.Create(#DYN_WOODPILE2, 59@, 60@, 61@)
goto @QUARRY_12337

:QUARRY_12337
75@ = Math.RandomFloatInRange(0.0, 359.0)
76@ = Math.RandomFloatInRange(0.0, 359.0)
77@ = Math.RandomFloatInRange(0.0, 359.0)
Object.SetRotation(114@(50@,7i), 75@, 76@, 77@)
Object.SetRenderScorched(114@(50@,7i), True)
Object.SetCollision(114@(50@,7i), False)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_12091
Text.PrintNow('QUAR_23', 7000, 1)
263@ = 0
35@ += 1

:QUARRY_12473
if 
  236@ == 0
goto_if_false @QUARRY_12806
50@ = 0
48@ = 0

:QUARRY_12505
if 
  not Object.IsAttached(111@(48@,3i))
goto_if_false @QUARRY_12760
59@, 60@, 61@ = Object.GetCoordinates(111@(48@,3i))
75@ = World.GetGroundZFor3DCoord(59@, 60@, 61@)
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  0.5 > 76@
goto_if_false @QUARRY_12760
if 
  Object.Locate3D(111@(48@,3i), 212@, 213@, 214@, 12.0, 15.0, 3.0, False)
goto_if_false @QUARRY_12744
51@ = 15
add_int_lvar_to_int_lvar 51@ += 48@
if 
  not ScriptFire.DoesExist(153@(51@,18i))
goto_if_false @QUARRY_12730
153@(51@,18i) = ScriptFire.Start(59@, 60@, 61@, 0, 3)
Object.SetRenderScorched(111@(48@,3i), True)
Object.FreezePosition(111@(48@,3i), True)
Object.SetCollision(111@(48@,3i), False)

:QUARRY_12730
50@ += 1
goto @QUARRY_12760

:QUARRY_12744
37@ = 1
45@ = 8
return 

:QUARRY_12760
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_12505
if 
  50@ == 3
goto_if_false @QUARRY_12806
236@ = 1

:QUARRY_12806
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_12840
37@ = 1
45@ = 4
return 

:QUARRY_12840
if 
  35@ == 1
goto_if_false @QUARRY_12883
if 
  236@ == 1
goto_if_false @QUARRY_12883
35@ = 99

:QUARRY_12883
if 
  Char.IsInCar($scplayer, 88@)
goto_if_false @QUARRY_12994
if 
  Blip.DoesExist(126@)
goto_if_false @QUARRY_12987
Blip.Remove(126@)
Text.ClearThisPrint('QUAR_36')
if 
  238@ == 1
goto_if_false @QUARRY_12973
128@ = Blip.AddForCoord(215@, 216@, 217@)
goto @QUARRY_12987

:QUARRY_12973
128@ = Blip.AddForCoord(212@, 213@, 214@)

:QUARRY_12987
goto @QUARRY_13046

:QUARRY_12994
if 
  not Blip.DoesExist(126@)
goto_if_false @QUARRY_13046
Blip.Remove(128@)
126@ = Blip.AddForCar(88@)
Blip.SetAsFriendly(126@, True)
Text.PrintNow('QUAR_36', 5000, 1)

:QUARRY_13046
if 
  236@ == 0
goto_if_false @QUARRY_13199
if 
  Char.IsInCar($scplayer, 88@)
goto_if_false @QUARRY_13199
if 
  not Char.LocateInCar3D($scplayer, 212@, 213@, 214@, 25.0, 25.0, 20.0, False)
goto_if_false @QUARRY_13163
  Char.LocateInCar3D($scplayer, 212@, 213@, 214@, 4.0, 4.0, 4.0, True)
goto @QUARRY_13199

:QUARRY_13163
if 
  262@ == 0
goto_if_false @QUARRY_13199
Text.PrintHelpForever('QUAR_H1')
262@ = 1

:QUARRY_13199
if 
  263@ == 0
goto_if_false @QUARRY_13327
if 
  Char.IsInCar($scplayer, 88@)
goto_if_false @QUARRY_13327
if 
  Char.LocateInCar3D($scplayer, 215@, 216@, 217@, 12.0, 12.0, 12.0, True)
goto_if_false @QUARRY_13327
Text.PrintNow('QUAR_24', 7000, 1)
263@ = 1
Blip.Remove(131@)
238@ = 0
128@ = Blip.AddForCoord(212@, 213@, 214@)

:QUARRY_13327
if 
  35@ == 99
goto_if_false @QUARRY_13352
gosub @QUARRY_21060

:QUARRY_13352
return 

:QUARRY_13354
if 
  Car.IsDead(88@)
goto_if_false @QUARRY_13386
37@ = 1
45@ = 2
return 

:QUARRY_13386
if 
  35@ == 0
goto_if_false @QUARRY_13602
212@ = -59.3126
213@ = 2502.254
214@ = 15.4766
205@ = Car.GetHealth(88@)
126@ = Blip.AddForCar(88@)
Blip.SetAsFriendly(126@, True)
50@ = 5
50@ -= 1
set_var_int_to_var_int $g_nQuarryMissionsPassed = $g_Quarry_damageKM(50@,7i)
$g_nQuarryMissionsPassed *= 1000
Hud.DisplayTimerWithString($g_nQuarryMissionsPassed, TimerDirection.Down, 'QUAR_D4')
set_lvar_int_to_lvar_int 206@ = 46@
Text.PrintNow('QUAR_38', 10000, 1)
236@ = 0
264@ = 0
48@ = 0

:QUARRY_13552
296@(48@,6i) = 0
184@(48@,6i) = 0
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_13552
35@ += 1

:QUARRY_13602
if 
  236@ == 0
goto_if_false @QUARRY_13974
80@ = 0
50@ = 0
48@ = 0

:QUARRY_13641
if 
  not Object.IsAttached(101@(48@,10i))
goto_if_false @QUARRY_13819
59@, 60@, 61@ = Object.GetCoordinates(101@(48@,10i))
75@ = World.GetGroundZFor3DCoord(59@, 60@, 61@)
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  1.0 > 76@
goto_if_false @QUARRY_13819
if 
  Object.Locate3D(101@(48@,10i), 212@, 213@, 214@, 12.0, 15.0, 3.0, False)
goto_if_false @QUARRY_13790
50@ += 1
goto @QUARRY_13819

:QUARRY_13790
Fx.AddExplosion(59@, 60@, 61@, ExplosionType.Rocket)
Object.Delete(101@(48@,10i))
80@ = 1

:QUARRY_13819
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_13641
if 
  80@ == 1
goto_if_false @QUARRY_13949
48@ = 0

:QUARRY_13865
if 
  Object.DoesExist(101@(48@,10i))
goto_if_false @QUARRY_13907
Fx.AddExplosion(59@, 60@, 61@, ExplosionType.Rocket)
Object.Delete(101@(48@,10i))

:QUARRY_13907
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_13865
Car.Explode(88@)
37@ = 1
45@ = 9
return 

:QUARRY_13949
if 
  50@ == 6
goto_if_false @QUARRY_13974
236@ = 1

:QUARRY_13974
if 
  236@ == 0
goto_if_false @QUARRY_14151
50@ = Car.GetHealth(88@)
set_lvar_int_to_lvar_int 51@ = 205@
sub_int_lvar_from_int_lvar 51@ -= 50@
if 
  51@ > 10
goto_if_false @QUARRY_14143
48@ = 0

:QUARRY_14041
if 
  Object.DoesExist(101@(48@,10i))
goto_if_false @QUARRY_14101
59@, 60@, 61@ = Object.GetCoordinates(101@(48@,10i))
Fx.AddExplosion(59@, 60@, 61@, ExplosionType.Rocket)
Object.Delete(101@(48@,10i))

:QUARRY_14101
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_14041
Car.Explode(88@)
37@ = 1
45@ = 9
return 

:QUARRY_14143
set_lvar_int_to_lvar_int 205@ = 50@

:QUARRY_14151
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_14185
37@ = 1
45@ = 10
return 

:QUARRY_14185
if 
  35@ == 1
goto_if_false @QUARRY_14228
if 
  236@ == 1
goto_if_false @QUARRY_14228
35@ = 99

:QUARRY_14228
48@ = 0

:QUARRY_14235
if 
  Object.DoesExist(122@(48@,3i))
goto_if_false @QUARRY_14485
if 
  not Object.IsAttached(122@(48@,3i))
goto_if_false @QUARRY_14485
switch_start 48@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @QUARRY_14485 {caseNum1} 0 {caseLabel1} @QUARRY_14338 {caseNum2} 1 {caseLabel2} @QUARRY_14387 {caseNum3} 2 {caseLabel3} @QUARRY_14436 {caseNum4} -1 {caseLabel4} @QUARRY_14485 {caseNum5} -1 {caseLabel5} @QUARRY_14485 {caseNum6} -1 {caseLabel6} @QUARRY_14485 {caseNum7} -1 {caseLabel7} @QUARRY_14485

:QUARRY_14338
Object.AttachToCar(122@(48@,3i), 88@, -1.0, -5.0, 0.3, 0.0, 0.0, 0.0)
goto @QUARRY_14485

:QUARRY_14387
Object.AttachToCar(122@(48@,3i), 88@, 0.0, -5.0, 0.3, 0.0, 0.0, 0.0)
goto @QUARRY_14485

:QUARRY_14436
Object.AttachToCar(122@(48@,3i), 88@, 1.0, -5.0, 0.3, 0.0, 0.0, 0.0)
goto @QUARRY_14485

:QUARRY_14485
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_14235
if 
  Char.IsInCar($scplayer, 88@)
goto_if_false @QUARRY_14578
if 
  not Blip.DoesExist(128@)
goto_if_false @QUARRY_14571
Blip.Remove(126@)
128@ = Blip.AddForCoord(212@, 213@, 214@)
Text.ClearThisPrint('QUAR_36')

:QUARRY_14571
goto @QUARRY_14630

:QUARRY_14578
if 
  not Blip.DoesExist(126@)
goto_if_false @QUARRY_14630
Blip.Remove(128@)
126@ = Blip.AddForCar(88@)
Blip.SetAsFriendly(126@, True)
Text.PrintNow('QUAR_36', 5000, 1)

:QUARRY_14630
if 
  Blip.DoesExist(128@)
goto_if_false @QUARRY_14677
  Char.LocateAnyMeans3D($scplayer, 212@, 213@, 214@, 8.0, 8.0, 4.0, True)

:QUARRY_14677
if 
  264@ == 0
goto_if_false @QUARRY_14760
if 
  Char.LocateAnyMeans3D($scplayer, 212@, 213@, 214@, 24.0, 30.0, 8.0, False)
goto_if_false @QUARRY_14760
Text.PrintNow('QUAR_26', 7000, 1)
264@ = 1

:QUARRY_14760
if 
  Car.Locate3D(88@, 212@, 213@, 214@, 10.0, 10.0, 5.0, False)
goto_if_false @QUARRY_14925
75@ = Car.GetMovingComponentOffset(88@)
if 
  75@ > 0.05
goto_if_false @QUARRY_14925
48@ = 0

:QUARRY_14838
if 
  Object.DoesExist(101@(48@,10i))
goto_if_false @QUARRY_14904
if 
  Object.IsAttached(101@(48@,10i))
goto_if_false @QUARRY_14904
Object.Detach(101@(48@,10i), 0.0, 0.0, 0.0, False)

:QUARRY_14904
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_14838

:QUARRY_14925
80@ = 0
48@ = 0

:QUARRY_14939
if 
  Object.DoesExist(101@(48@,10i))
goto_if_false @QUARRY_14997
50@ = Object.GetHealth(101@(48@,10i))
if 
  950 >= 50@
goto_if_false @QUARRY_14997
80@ = 1

:QUARRY_14997
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_14939
if 
  80@ == 1
goto_if_false @QUARRY_15145
48@ = 0

:QUARRY_15043
if 
  Object.DoesExist(101@(48@,10i))
goto_if_false @QUARRY_15103
59@, 60@, 61@ = Object.GetCoordinates(101@(48@,10i))
Fx.AddExplosion(59@, 60@, 61@, ExplosionType.Rocket)
Object.Delete(101@(48@,10i))

:QUARRY_15103
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_15043
Car.Explode(88@)
37@ = 1
45@ = 9
return 

:QUARRY_15145
if 
  Car.Locate3D(88@, 212@, 213@, 214@, 10.0, 10.0, 5.0, False)
goto_if_false @QUARRY_15656
75@ = Car.GetMovingComponentOffset(88@)
if 
  75@ > 0.25
goto_if_false @QUARRY_15656
48@ = 0

:QUARRY_15223
if 
  Object.DoesExist(101@(48@,10i))
goto_if_false @QUARRY_15635
59@, 60@, 61@ = Object.GetCoordinates(101@(48@,10i))
80@ = 0
50@ = 0

:QUARRY_15275
if 
  3 > 50@
goto_if_false @QUARRY_15403
if and
  80@ == 0
  Object.DoesExist(122@(50@,3i))
goto_if_false @QUARRY_15389
62@, 63@, 64@ = Object.GetCoordinates(122@(50@,3i))
78@ = Math.GetDistanceBetweenCoords3D(59@, 60@, 61@, 62@, 63@, 64@)
if 
  0.75 > 78@
goto_if_false @QUARRY_15389
80@ = 1

:QUARRY_15389
50@ += 1
goto @QUARRY_15275

:QUARRY_15403
if 
  80@ == 1
goto_if_false @QUARRY_15613
if 
  296@(48@,6i) == 0
goto_if_false @QUARRY_15485
296@(48@,6i) = 1
set_lvar_int_to_lvar_int 184@(48@,6i) = 46@
184@(48@,6i) += 5000
goto @QUARRY_15606

:QUARRY_15485
if 
  is_int_lvar_greater_than_int_lvar 46@ > 184@(48@,6i)
goto_if_false @QUARRY_15606
set_lvar_int_to_lvar_int 184@(48@,6i) = 46@
184@(48@,6i) += 5000
if 
  Object.IsAttached(101@(48@,10i))
goto_if_false @QUARRY_15578
Object.Detach(101@(48@,10i), 0.0, 0.0, 0.0, False)

:QUARRY_15578
61@ += 1.2
Object.SetCoordinates(101@(48@,10i), 59@, 60@, 61@)

:QUARRY_15606
goto @QUARRY_15635

:QUARRY_15613
296@(48@,6i) = 0
184@(48@,6i) = 0

:QUARRY_15635
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_15223

:QUARRY_15656
if 
  35@ == 99
goto_if_false @QUARRY_15691
Blip.Remove(128@)
Blip.Remove(126@)
gosub @QUARRY_21060

:QUARRY_15691
return 

:QUARRY_15693
if 
  Car.IsDead(87@)
goto_if_false @QUARRY_15725
37@ = 1
45@ = 1
return 

:QUARRY_15725
if 
  Car.IsDead(90@)
goto_if_false @QUARRY_15757
37@ = 1
45@ = 12
return 

:QUARRY_15757
if 
  35@ == 0
goto_if_false @QUARRY_15966
265@ = 0
125@ = Blip.AddForCar(87@)
Blip.SetAsFriendly(125@, True)
50@ = 6
50@ -= 1
set_var_int_to_var_int $g_nQuarryMissionsPassed = $g_Quarry_damageKM(50@,7i)
$g_nQuarryMissionsPassed *= 1000
Hud.DisplayTimerWithString($g_nQuarryMissionsPassed, TimerDirection.Down, 'QUAR_D5')
set_lvar_int_to_lvar_int 206@ = 46@
set_lvar_int_to_var_int 182@ = $g_Quarry_damageKM(50@,7i)
182@ -= 15
182@ *= 1000
add_int_lvar_to_int_lvar 182@ += 46@
266@ = 0
267@ = 0
48@ = 0

:QUARRY_15911
268@(48@,10i) = 1
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_15911
Text.PrintNow('QUAR_28', 10000, 1)
35@ += 1

:QUARRY_15966
if 
  266@ == 1
goto_if_false @QUARRY_16217
62@, 63@, 64@ = Object.GetCoordinates(121@)
48@ = 0

:QUARRY_16005
if 
  Object.DoesExist(101@(48@,10i))
goto_if_false @QUARRY_16176
if 
  268@(48@,10i) == 1
goto_if_false @QUARRY_16176
59@, 60@, 61@ = Object.GetCoordinates(101@(48@,10i))
78@ = Math.GetDistanceBetweenCoords3D(59@, 60@, 61@, 62@, 63@, 64@)
if 
  2.0 > 78@
goto_if_false @QUARRY_16176
Fx.AddExplosion(59@, 60@, 61@, ExplosionType.Aircraft)
Object.Delete(101@(48@,10i))
if 
  not Car.IsDead(90@)
goto_if_false @QUARRY_16176
Car.Explode(90@)
Train.SetCruiseSpeed(90@, 0.0)
37@ = 1
45@ = 11

:QUARRY_16176
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_16005
if 
  37@ == 1
goto_if_false @QUARRY_16217
return 

:QUARRY_16217
if 
  35@ == 1
goto_if_false @QUARRY_16260
if 
  267@ == 1
goto_if_false @QUARRY_16260
35@ = 99

:QUARRY_16260
if 
  Char.IsInCar($scplayer, 87@)
goto_if_false @QUARRY_16327
if 
  265@ == 0
goto_if_false @QUARRY_16320
265@ = 1
Blip.Remove(125@)
Text.ClearThisPrint('QUAR_35')

:QUARRY_16320
goto @QUARRY_16436

:QUARRY_16327
if 
  265@ == 1
goto_if_false @QUARRY_16389
48@ = 0

:QUARRY_16352
Blip.Remove(142@(48@,10i))
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_16352
265@ = 0

:QUARRY_16389
if 
  not Blip.DoesExist(125@)
goto_if_false @QUARRY_16436
125@ = Blip.AddForCar(87@)
Blip.SetAsFriendly(125@, True)
Text.PrintNow('QUAR_35', 5000, 1)

:QUARRY_16436
if 
  266@ == 0
goto_if_false @QUARRY_16531
if 
  is_int_lvar_greater_than_int_lvar 46@ > 182@
goto_if_false @QUARRY_16531
Train.SetSpeed(90@, 56.0)
Train.SetCruiseSpeed(90@, 56.0)
141@ = Blip.AddForCar(90@)
Blip.SetAsFriendly(141@, True)
Text.PrintNow('QUAR_29', 7000, 1)
266@ = 1

:QUARRY_16531
if 
  266@ == 0
goto_if_false @QUARRY_16660
if 
  Char.IsInArea3D($scplayer, 727.6937, 2412.204, 17.6685, 872.5978, 2714.917, 21.0511, False)
goto_if_false @QUARRY_16660
Train.SetSpeed(90@, 56.0)
Train.SetCruiseSpeed(90@, 56.0)
141@ = Blip.AddForCar(90@)
Blip.SetAsFriendly(141@, True)
Hud.ClearTimer($g_nQuarryMissionsPassed)
Text.PrintNow('QUAR_29', 7000, 1)
266@ = 1

:QUARRY_16660
if and
  266@ == 1
  267@ == 0
goto_if_false @QUARRY_16740
if 
  Car.Locate3D(90@, 673.9813, 1331.079, 10.7891, 20.0, 20.0, 8.0, False)
goto_if_false @QUARRY_16740
267@ = 1

:QUARRY_16740
if 
  265@ == 1
goto_if_false @QUARRY_16949
48@ = 0

:QUARRY_16765
if 
  Object.DoesExist(101@(48@,10i))
goto_if_false @QUARRY_16928
59@, 60@, 61@ = Object.GetCoordinates(101@(48@,10i))
if and
  59@ > 739.0
  747.0 > 59@
goto_if_false @QUARRY_16888
268@(48@,10i) = 1
if 
  not Blip.DoesExist(142@(48@,10i))
goto_if_false @QUARRY_16881
142@(48@,10i) = Blip.AddForObject(101@(48@,10i))

:QUARRY_16881
goto @QUARRY_16928

:QUARRY_16888
268@(48@,10i) = 0
if 
  Blip.DoesExist(142@(48@,10i))
goto_if_false @QUARRY_16928
Blip.Remove(142@(48@,10i))

:QUARRY_16928
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_16765

:QUARRY_16949
if 
  266@ == 0
goto_if_false @QUARRY_17170
50@ = 0
48@ = 0

:QUARRY_16981
if 
  Object.DoesExist(101@(48@,10i))
goto_if_false @QUARRY_17037
if 
  268@(48@,10i) == 0
goto_if_false @QUARRY_17030
50@ += 1

:QUARRY_17030
goto @QUARRY_17044

:QUARRY_17037
50@ += 1

:QUARRY_17044
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_16981
if 
  50@ == 10
goto_if_false @QUARRY_17170
75@ = 56.0
75@ *= 2.0
Train.SetSpeed(90@, 75@)
Train.SetCruiseSpeed(90@, 75@)
141@ = Blip.AddForCar(90@)
Blip.SetAsFriendly(141@, True)
Hud.ClearTimer($g_nQuarryMissionsPassed)
Text.PrintNow('QUAR_29', 7000, 1)
set_lvar_int_to_lvar_int 207@ = 46@
266@ = 1

:QUARRY_17170
if 
  35@ == 99
goto_if_false @QUARRY_17195
gosub @QUARRY_21060

:QUARRY_17195
return 

:QUARRY_17197
if 
  Car.IsDead(91@)
goto_if_false @QUARRY_17220
278@ = 1

:QUARRY_17220
if 
  Car.IsDead(88@)
goto_if_false @QUARRY_17252
37@ = 1
45@ = 2
return 

:QUARRY_17252
if 
  35@ == 0
goto_if_false @QUARRY_17632
Car.WanderRandomly(91@)
Car.SetCruiseSpeed(91@, 26.0)
Car.SetDrivingStyle(91@, DrivingMode.AvoidCars)
Car.SetOnlyDamagedByPlayer(91@, True)
152@ = Blip.AddForCar(91@)
Car.LockDoors(91@, CarLock.LockoutPlayerOnly)
126@ = Blip.AddForCar(88@)
Blip.SetAsFriendly(126@, True)
Text.PrintNow('QUAR_32', 10000, 1)
Hud.DisplayCounterWithString($g_Quarry_timerKM, CounterDisplay.Bar, 'QUAR_D6')
50@ = 3
50@ -= 1
set_var_int_to_var_int $g_nQuarryMissionsPassed = $g_Quarry_damageKM(50@,7i)
$g_nQuarryMissionsPassed *= 1000
Hud.DisplayTimerWithString($g_nQuarryMissionsPassed, TimerDirection.Down, 'QUAR_D4')
set_lvar_int_to_lvar_int 206@ = 46@
Path.SwitchRoadsOff(256.6312, 734.7498, 4.0053, 343.9576, 765.6713, 6.4852)
Path.SwitchRoadsOff(291.2253, 762.6765, 4.0625, 354.4869, 784.4223, 6.6101)
Path.SwitchRoadsOff(-149.9865, 460.067, 4.9719, -119.7325, 530.4155, 12.4813)
Path.SwitchRoadsOff(-100.9858, 1190.38, 16.1736, 97.0928, 1205.202, 19.9344)
Path.SwitchRoadsOff(-124.9028, 1209.581, 14.6519, -108.1954, 1243.821, 19.8554)
Path.SwitchRoadsOff(-113.2273, 1246.477, 11.3781, -84.1825, 1268.751, 17.5621)
283@ = 1
279@ = 0
35@ += 1

:QUARRY_17632
if 
  not Car.IsDead(91@)
goto_if_false @QUARRY_17855
59@, 60@, 61@ = Char.GetCoordinates($scplayer)
62@, 63@, 64@ = Car.GetCoordinates(91@)
78@ = Math.GetDistanceBetweenCoords3D(59@, 60@, 61@, 62@, 63@, 64@)
if 
  78@ > 600.0
goto_if_false @QUARRY_17736
37@ = 1
45@ = 13
return 

:QUARRY_17736
if 
  279@ == 0
goto_if_false @QUARRY_17798
if 
  78@ > 500.0
goto_if_false @QUARRY_17798
Text.PrintNow('QUAR_33', 7000, 1)
279@ = 1

:QUARRY_17798
if 
  279@ == 1
goto_if_false @QUARRY_17855
if 
  400.0 > 78@
goto_if_false @QUARRY_17855
Text.ClearThisPrint('QUAR_33')
279@ = 0

:QUARRY_17855
if 
  0 >= $g_nQuarryMissionsPassed
goto_if_false @QUARRY_17889
37@ = 1
45@ = 14
return 

:QUARRY_17889
if 
  35@ == 1
goto_if_false @QUARRY_17948
if 
  278@ == 1
goto_if_false @QUARRY_17948
set_lvar_int_to_lvar_int 172@ = 46@
172@ += 2000
35@ += 1

:QUARRY_17948
if 
  35@ == 2
goto_if_false @QUARRY_17992
if 
  is_int_lvar_greater_than_int_lvar 46@ > 172@
goto_if_false @QUARRY_17992
35@ = 99

:QUARRY_17992
if 
  Char.IsInCar($scplayer, 88@)
goto_if_false @QUARRY_18050
if 
  Blip.DoesExist(126@)
goto_if_false @QUARRY_18043
Blip.Remove(126@)
Text.ClearThisPrint('QUAR_36')

:QUARRY_18043
goto @QUARRY_18097

:QUARRY_18050
if 
  not Blip.DoesExist(126@)
goto_if_false @QUARRY_18097
126@ = Blip.AddForCar(88@)
Blip.SetAsFriendly(126@, True)
Text.PrintNow('QUAR_36', 5000, 1)

:QUARRY_18097
if 
  not Car.IsDead(91@)
goto_if_false @QUARRY_18156
50@ = Car.GetHealth(91@)
if and
  50@ > 300
  800 >= 50@
goto_if_false @QUARRY_18156
Car.SetHealth(91@, 300)

:QUARRY_18156
if 
  not Car.IsDead(91@)
goto_if_false @QUARRY_18431
50@ = Car.GetHealth(91@)
if 
  250 >= 50@
goto_if_false @QUARRY_18213
$g_Quarry_timerKM = 0
goto @QUARRY_18431

:QUARRY_18213
if 
  50@ == 1000
goto_if_false @QUARRY_18246
$g_Quarry_timerKM = 100
goto @QUARRY_18431

:QUARRY_18246
if 
  50@ == 300
goto_if_false @QUARRY_18279
$g_Quarry_timerKM = 20
goto @QUARRY_18431

:QUARRY_18279
if 
  300 > 50@
goto_if_false @QUARRY_18350
51@ = 300
sub_int_lvar_from_int_lvar 51@ -= 50@
$g_Quarry_timerKM = 50
sub_int_lvar_from_int_var $g_Quarry_timerKM -= 51@
$g_Quarry_timerKM *= 20
$g_Quarry_timerKM /= 50
goto @QUARRY_18431

:QUARRY_18350
if 
  800 > 50@
goto_if_false @QUARRY_18377
50@ = 800

:QUARRY_18377
51@ = 1000
sub_int_lvar_from_int_lvar 51@ -= 50@
$g_Quarry_timerKM = 200
sub_int_lvar_from_int_var $g_Quarry_timerKM -= 51@
$g_Quarry_timerKM *= 80
$g_Quarry_timerKM /= 200
$g_Quarry_timerKM += 20

:QUARRY_18431
if 
  not Car.IsDead(91@)
goto_if_false @QUARRY_18872
48@ = 0

:QUARRY_18454
if 
  Object.DoesExist(94@(48@,7i))
goto_if_false @QUARRY_18851
if 
  not Object.IsAttached(94@(48@,7i))
goto_if_false @QUARRY_18851
switch_start 48@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @QUARRY_18851 {caseNum1} 0 {caseLabel1} @QUARRY_18557 {caseNum2} 1 {caseLabel2} @QUARRY_18606 {caseNum3} 2 {caseLabel3} @QUARRY_18655 {caseNum4} 3 {caseLabel4} @QUARRY_18704 {caseNum5} 4 {caseLabel5} @QUARRY_18753 {caseNum6} 5 {caseLabel6} @QUARRY_18802 {caseNum7} -1 {caseLabel7} @QUARRY_18851

:QUARRY_18557
Object.AttachToCar(94@(48@,7i), 91@, 0.5, -0.7, 0.7, 90.0, 0.0, 0.0)
goto @QUARRY_18851

:QUARRY_18606
Object.AttachToCar(94@(48@,7i), 91@, -0.5, -0.7, 0.7, 90.0, 0.0, 0.0)
goto @QUARRY_18851

:QUARRY_18655
Object.AttachToCar(94@(48@,7i), 91@, 0.5, -1.7, 0.73, 90.0, 0.0, 0.0)
goto @QUARRY_18851

:QUARRY_18704
Object.AttachToCar(94@(48@,7i), 91@, -0.5, -1.7, 0.73, 90.0, 0.0, 0.0)
goto @QUARRY_18851

:QUARRY_18753
Object.AttachToCar(94@(48@,7i), 91@, 0.5, -2.7, 0.76, 90.0, 0.0, 0.0)
goto @QUARRY_18851

:QUARRY_18802
Object.AttachToCar(94@(48@,7i), 91@, -0.5, -2.7, 0.76, 90.0, 0.0, 0.0)
goto @QUARRY_18851

:QUARRY_18851
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_18454

:QUARRY_18872
if 
  35@ == 99
goto_if_false @QUARRY_18897
gosub @QUARRY_21060

:QUARRY_18897
return 

:QUARRY_18899
if 
  35@ == 0
goto_if_false @QUARRY_18952
Player.SetControl($player1, False)
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 5000
Hud.ClearTimer($g_nQuarryMissionsPassed)
35@ += 1

:QUARRY_18952
if 
  35@ == 1
goto_if_false @QUARRY_19019
if 
  is_int_lvar_greater_than_int_lvar 46@ > 183@
goto_if_false @QUARRY_19019
Camera.DoFade(500, Fade.Out)
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 500
35@ += 1

:QUARRY_19019
if 
  35@ == 2
goto_if_false @QUARRY_19190
if and
  is_int_lvar_greater_than_int_lvar 46@ > 183@
  not Camera.GetFadingStatus
goto_if_false @QUARRY_19190
$g_Quarry_CashPickupKM = Pickup.CreateProtection(818.2578, 853.8873, 10.8059, $g_Quarry_CashPickupValueKM, $g_Quarry_CashPickupValueKM)
Hud.SwitchWidescreen(True)
Game.SetEveryoneIgnorePlayer($player1, True)
Game.SetAllCarsCanBeDamaged(False)
Streaming.LoadScene(818.2578, 853.8873, 10.8059)
Camera.SetFixedPosition(849.6491, 839.9428, 42.7363, 0.0, 0.0, 0.0)
Camera.PointAtPoint(848.7661, 840.1115, 42.2983, SwitchType.JumpCut)
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 2000
35@ += 1

:QUARRY_19190
if 
  35@ == 3
goto_if_false @QUARRY_19273
if 
  is_int_lvar_greater_than_int_lvar 46@ > 183@
goto_if_false @QUARRY_19273
Camera.DoFade(500, Fade.In)
Text.PrintBig('ASS_ACQ', 5000, TextStyle.WhiteMiddleSmaller)
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 5000
35@ += 1

:QUARRY_19273
if 
  35@ == 4
goto_if_false @QUARRY_19403
if 
  is_int_lvar_greater_than_int_lvar 46@ > 183@
goto_if_false @QUARRY_19403
Camera.SetFixedPosition(825.0984, 855.4503, 13.577, 0.0, 0.0, 0.0)
Camera.PointAtPoint(824.1995, 855.1732, 13.2376, SwitchType.JumpCut)
Text.PrintWithNumberNow('ASS_LUV', $g_Quarry_CashPickupValueKM, 6000, 1)
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 6000
35@ += 1

:QUARRY_19403
if 
  35@ == 5
goto_if_false @QUARRY_19470
if 
  is_int_lvar_greater_than_int_lvar 46@ > 183@
goto_if_false @QUARRY_19470
Camera.DoFade(500, Fade.Out)
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 500
35@ += 1

:QUARRY_19470
if 
  35@ == 6
goto_if_false @QUARRY_19565
if and
  is_int_lvar_greater_than_int_lvar 46@ > 183@
  not Camera.GetFadingStatus
goto_if_false @QUARRY_19565
59@, 60@, 61@ = Char.GetCoordinates($scplayer)
Streaming.LoadScene(59@, 60@, 61@)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 2000
35@ += 1

:QUARRY_19565
if 
  35@ == 7
goto_if_false @QUARRY_19670
if 
  is_int_lvar_greater_than_int_lvar 46@ > 183@
goto_if_false @QUARRY_19670
Text.PrintWith2NumbersNow('QUAR_P7', 210@, 211@, 10000, TextStyle.Middle)
Text.Print('QUAR_H3', 7000, 1)
Camera.DoFade(500, Fade.In)
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 500
35@ += 1

:QUARRY_19670
if 
  35@ == 8
goto_if_false @QUARRY_19734
if and
  is_int_lvar_greater_than_int_lvar 46@ > 183@
  not Camera.GetFadingStatus
goto_if_false @QUARRY_19734
Game.SetEveryoneIgnorePlayer($player1, False)
Game.SetAllCarsCanBeDamaged(True)
Player.SetControl($player1, True)
35@ = 99

:QUARRY_19734
if 
  35@ == 99
goto_if_false @QUARRY_19759
gosub @QUARRY_21060

:QUARRY_19759
return 

:QUARRY_19761
215@ = 808.4078
216@ = 841.9887
217@ = 8.6694
131@ = Blip.AddForCoord(215@, 216@, 217@)
238@ = 1
return 

:QUARRY_19814
215@ = 371.5454
216@ = 978.1724
217@ = 28.521
132@ = Blip.AddForCoord(215@, 216@, 217@)
239@ = 1
return 
200@, 201@ = Clock.GetTimeOfDay()
set_lvar_int_to_lvar_int 50@ = 202@
50@ *= 60
add_int_lvar_to_int_lvar 50@ += 203@
50@ *= 1000
set_lvar_int_to_lvar_int 173@ = 50@
add_int_lvar_to_int_lvar 173@ += 46@
add_int_lvar_to_int_lvar 201@ += 203@
if 
  201@ >= 60
goto_if_false @QUARRY_19962
200@ += 1
201@ -= 60

:QUARRY_19962
add_int_lvar_to_int_lvar 200@ += 202@

:QUARRY_19970
if 
  200@ >= 24
goto_if_false @QUARRY_20002
200@ -= 24
goto @QUARRY_19970

:QUARRY_20002
80@ = 0
if 
  201@ > 45
goto_if_false @QUARRY_20104
50@ = 60
sub_int_lvar_from_int_lvar 50@ -= 201@
201@ = 0
200@ += 1
if 
  200@ == 24
goto_if_false @QUARRY_20081
200@ = 0

:QUARRY_20081
50@ *= 1000
add_int_lvar_to_int_lvar 173@ += 50@
80@ = 1

:QUARRY_20104
if 
  80@ == 0
goto_if_false @QUARRY_20192
if and
  201@ > 30
  45 > 201@
goto_if_false @QUARRY_20192
50@ = 45
sub_int_lvar_from_int_lvar 50@ -= 201@
201@ = 45
50@ *= 1000
add_int_lvar_to_int_lvar 173@ += 50@
80@ = 1

:QUARRY_20192
if 
  80@ == 0
goto_if_false @QUARRY_20280
if and
  201@ > 15
  30 > 201@
goto_if_false @QUARRY_20280
50@ = 30
sub_int_lvar_from_int_lvar 50@ -= 201@
201@ = 30
50@ *= 1000
add_int_lvar_to_int_lvar 173@ += 50@
80@ = 1

:QUARRY_20280
if 
  80@ == 0
goto_if_false @QUARRY_20368
if and
  201@ > 0
  15 > 201@
goto_if_false @QUARRY_20368
50@ = 15
sub_int_lvar_from_int_lvar 50@ -= 201@
201@ = 15
50@ *= 1000
add_int_lvar_to_int_lvar 173@ += 50@
80@ = 1

:QUARRY_20368
set_lvar_int_to_lvar_int 50@ = 200@
50@ *= 60
add_int_lvar_to_int_lvar 50@ += 201@
50@ *= 1000
set_var_int_to_lvar_int $g_nQuarryMissionsPassed = 50@
return 

:QUARRY_20409
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @QUARRY_20458
47@ += 1
if 
  47@ > 2
goto_if_false @QUARRY_20456
47@ = 0

:QUARRY_20456
clear_all_view_variables 

:QUARRY_20458
if 
  47@ == 1
goto_if_false @QUARRY_20585
set_var_int_to_lvar_int $8180[0] = 34@
set_var_int_to_lvar_int $8180[1] = 35@
set_var_int_to_lvar_int $8180[2] = 46@
$8180[3] = 0
$8180[4] = 0
$8180[5] = 0
$8180[6] = 0
$8180[7] = 0
view_integer_variable $8180[0] {_p2} "M_STAGE"
view_integer_variable $8180[1] {_p2} "M_GOALS"
view_integer_variable $8180[2] {_p2} "M_MISSION_TIMER"

:QUARRY_20585
if 
  47@ == 2
goto_if_false @QUARRY_20786
$8180[7] = 0
48@ = 0

:QUARRY_20617
set_var_int_to_var_int $8180(48@,8i) = $g_Quarry_damageKM(48@,7i)
add_int_var_to_int_var $8180[7] += $g_Quarry_damageKM(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_20617
view_integer_variable $8180[0] {_p2} "ROCKFALL"
view_integer_variable $8180[1] {_p2} "SABOTAGE"
view_integer_variable $8180[2] {_p2} "DESTROY."
view_integer_variable $8180[3] {_p2} "REMOVAL."
view_integer_variable $8180[4] {_p2} "DELIVERY"
view_integer_variable $8180[5] {_p2} "SPILLAGE"
view_integer_variable $8180[6] {_p2} "BURIAL.."
view_integer_variable $8180[7] {_p2} "TOTAL..."

:QUARRY_20786
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @QUARRY_20808
38@ = 1

:QUARRY_20808
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @QUARRY_20896
if 
  39@ == 0
goto_if_false @QUARRY_20871
39@ = 1
write_debug "LEVEL_PAUSED"
goto @QUARRY_20896

:QUARRY_20871
39@ = 0
write_debug "LEVEL_UNPAUSED"

:QUARRY_20896
return 

:QUARRY_20898
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @QUARRY_20922
36@ = 1
return 

:QUARRY_20922
if 
is_ps2_keyboard_key_just_pressed 16
goto_if_false @QUARRY_20968
$8170 += 1
write_debug_with_int "MISSIONS_PASSED" {_p2} $8170
return 

:QUARRY_20968
if 
  not is_ps2_keyboard_key_just_pressed 13
goto_if_false @QUARRY_20985
return 

:QUARRY_20985
return 

:QUARRY_20987
41@ += 1
if 
  41@ > 9
goto_if_false @QUARRY_21019
41@ = 0

:QUARRY_21019
return 

:QUARRY_21021
42@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 44@ = 42@
sub_int_lvar_from_int_lvar 44@ -= 43@
set_lvar_int_to_lvar_int 43@ = 42@
add_int_lvar_to_int_lvar 46@ += 44@
return 

:QUARRY_21060
34@ += 1
35@ = 0
TIMERA = 0
TIMERB = 0
return 

:QUARRY_21090
if 
  not Player.IsPlaying($player1)
goto_if_false @QUARRY_21117
wait 0
goto @QUARRY_21090

:QUARRY_21117
Player.SetControl($player1, False)
wait 1000
Camera.DoFade(1000, Fade.Out)

:QUARRY_21136
if 
  Camera.GetFadingStatus
goto_if_false @QUARRY_21160
wait 0
goto @QUARRY_21136

:QUARRY_21160
if 
  $done_quarry_progress == 0
goto_if_false @QUARRY_21378
if 
  $8170 == 0
goto_if_false @QUARRY_21378
50@ = 1
50@ -= 1
$g_Quarry_damageKM(50@,7i) = 211
50@ = 2
50@ -= 1
$g_Quarry_damageKM(50@,7i) = 300
50@ = 3
50@ -= 1
$g_Quarry_damageKM(50@,7i) = 481
50@ = 4
50@ -= 1
$g_Quarry_damageKM(50@,7i) = 241
50@ = 5
50@ -= 1
$g_Quarry_damageKM(50@,7i) = 181
50@ = 6
50@ -= 1
$g_Quarry_damageKM(50@,7i) = 181
50@ = 7
50@ -= 1
$g_Quarry_damageKM(50@,7i) = 481

:QUARRY_21378
World.ClearArea($quarryX, $quarryY, $quarryZ, 1000.0, False)
Streaming.LoadScene($quarryX, $quarryY, $quarryZ)
Char.SetCoordinates($scplayer, $quarryX, $quarryY, $quarryZ)
Char.SetHeading($scplayer, 90.0)
Camera.SetBehindPlayer
wait 500
set_lvar_int_to_var_int 50@ = $8170

:QUARRY_21446
if 
  50@ >= 7
goto_if_false @QUARRY_21478
50@ -= 7
goto @QUARRY_21446

:QUARRY_21478
set_lvar_int_to_lvar_int 198@ = 50@
198@ += 1
gosub @QUARRY_21635
207@ = 0
CarGenerator.Switch($flag_1st_time_nitro_shop, 0)
CarGenerator.Switch($gen_car1, 0)
wait 1500
Text.DrawOddjobTitleBeforeFade(True)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)

:QUARRY_21545
if 
  Camera.GetFadingStatus
goto_if_false @QUARRY_21569
wait 0
goto @QUARRY_21545

:QUARRY_21569
if 
  $done_quarry_progress == 1
goto_if_false @QUARRY_21598
Text.PrintHelp('QUAR_H2')

:QUARRY_21598
Player.SetControl($player1, True)
45@ = 0
TIMERA = 0
TIMERB = 0
35@ = 0
return 

:QUARRY_21635
switch_start 198@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @QUARRY_21796 {caseNum1} 1 {caseLabel1} @QUARRY_21698 {caseNum2} 2 {caseLabel2} @QUARRY_21712 {caseNum3} 3 {caseLabel3} @QUARRY_21782 {caseNum4} 4 {caseLabel4} @QUARRY_21726 {caseNum5} 5 {caseLabel5} @QUARRY_21740 {caseNum6} 6 {caseLabel6} @QUARRY_21754 {caseNum7} 7 {caseLabel7} @QUARRY_21768

:QUARRY_21698
gosub @QUARRY_22158
goto @QUARRY_21825

:QUARRY_21712
gosub @QUARRY_22482
goto @QUARRY_21825

:QUARRY_21726
gosub @QUARRY_22957
goto @QUARRY_21825

:QUARRY_21740
gosub @QUARRY_23543
goto @QUARRY_21825

:QUARRY_21754
gosub @QUARRY_24497
goto @QUARRY_21825

:QUARRY_21768
gosub @QUARRY_21827
goto @QUARRY_21825

:QUARRY_21782
gosub @QUARRY_25306
goto @QUARRY_21825

:QUARRY_21796
write_debug "UNKNOWN_QUARRY_MISSION_ID"

:QUARRY_21825
return 

:QUARRY_21827
34@ = 1
Streaming.RequestModel(468)
Streaming.RequestModel(486)
Streaming.RequestModel(406)
Streaming.RequestModel(#DEAD_TIED_COP)
Streaming.RequestModel(523)
Streaming.RequestModel(#CR_AMMOBOX)
Streaming.LoadAllModelsNow

:QUARRY_21866
if or
  not Streaming.HasModelLoaded(468)
  not Streaming.HasModelLoaded(486)
  not Streaming.HasModelLoaded(406)
  not Streaming.HasModelLoaded(#DEAD_TIED_COP)
  not Streaming.HasModelLoaded(523)
  not Streaming.HasModelLoaded(#CR_AMMOBOX)
goto_if_false @QUARRY_21918
wait 0
goto @QUARRY_21866

:QUARRY_21918
86@ = Car.Create(468, 819.7281, 858.3189, 11.0469)
Car.SetHeading(86@, 291.4761)
87@ = Car.Create(486, 653.1636, 879.9844, -42.5799)
Car.SetHeading(87@, 119.7783)
88@ = Car.Create(406, 717.0151, 938.3721, -19.7314)
Car.SetHeading(88@, 38.1129)
93@ = Object.Create(#CR_AMMOBOX, 720.5391, 922.5157, -19.8436)
Object.SetCollision(93@, False)
Object.SetVisible(93@, False)
Object.AttachToCar(93@, 88@, 0.0, -1.7, 1.5, 0.0, 0.0, 0.0)
92@ = Object.Create(#DEAD_TIED_COP, 606.9487, 933.0876, -38.5322)
Object.SetDynamic(92@, True)
89@ = Car.Create(523, 560.3003, 844.9364, -13.0258)
Car.SetCanBeDamaged(89@, False)
Game.SwitchEmergencyServices(False)
return 

:QUARRY_22158
34@ = 5
Streaming.RequestModel(486)
Streaming.RequestModel(#DYN_QUARRYROCK03)
Streaming.LoadAllModelsNow

:QUARRY_22177
if or
  not Streaming.HasModelLoaded(486)
  not Streaming.HasModelLoaded(#DYN_QUARRYROCK03)
goto_if_false @QUARRY_22209
wait 0
goto @QUARRY_22177

:QUARRY_22209
87@ = Car.Create(486, 816.4832, 845.8509, 9.4934)
Car.SetHeading(87@, 115.4882)
50@ = 0
94@(50@,7i) = Object.Create(#DYN_QUARRYROCK03, 771.6403, 836.2275, 4.8965)
50@ += 1
94@(50@,7i) = Object.Create(#DYN_QUARRYROCK03, 751.6732, 944.9977, 4.8593)
50@ += 1
94@(50@,7i) = Object.Create(#DYN_QUARRYROCK03, 538.9102, 985.6403, -8.5887)
50@ += 1
94@(50@,7i) = Object.Create(#DYN_QUARRYROCK03, 680.5322, 963.4501, -13.6607)
50@ += 1
94@(50@,7i) = Object.Create(#DYN_QUARRYROCK03, 516.8391, 928.7185, -27.6183)
50@ += 1
94@(50@,7i) = Object.Create(#DYN_QUARRYROCK03, 522.6153, 828.3048, -27.1838)
50@ += 1
94@(50@,7i) = Object.Create(#DYN_QUARRYROCK03, 646.7208, 752.2311, -12.1482)
return 

:QUARRY_22482
34@ = 7
Streaming.RequestModel(486)
Streaming.RequestModel(#KB_BARREL)
Streaming.LoadAllModelsNow

:QUARRY_22501
if or
  not Streaming.HasModelLoaded(486)
  not Streaming.HasModelLoaded(#KB_BARREL)
goto_if_false @QUARRY_22533
wait 0
goto @QUARRY_22501

:QUARRY_22533
87@ = Car.Create(486, 816.4832, 845.8509, 9.4934)
Car.SetHeading(87@, 115.4882)
50@ = 0
101@(50@,10i) = Object.Create(#KB_BARREL, 817.0658, 865.5903, 11.0469)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 714.5327, 920.0583, -19.6787)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 632.2825, 895.8612, -43.9534)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 675.7952, 841.8704, -43.9609)
51@ = 2
51@ -= 1
set_lvar_int_to_var_int 50@ = $g_Quarry_damageKM(51@,7i)
50@ *= 100
48@ = 0

:QUARRY_22742
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @QUARRY_22930 {caseNum1} 0 {caseLabel1} @QUARRY_22805 {caseNum2} 1 {caseLabel2} @QUARRY_22835 {caseNum3} 2 {caseLabel3} @QUARRY_22865 {caseNum4} 3 {caseLabel4} @QUARRY_22895 {caseNum5} -1 {caseLabel5} @QUARRY_22930 {caseNum6} -1 {caseLabel6} @QUARRY_22930 {caseNum7} -1 {caseLabel7} @QUARRY_22930

:QUARRY_22805
set_lvar_int_to_lvar_int 174@(48@,4i) = 50@
174@(48@,4i) *= 3
goto @QUARRY_22930

:QUARRY_22835
set_lvar_int_to_lvar_int 174@(48@,4i) = 50@
174@(48@,4i) *= 6
goto @QUARRY_22930

:QUARRY_22865
set_lvar_int_to_lvar_int 174@(48@,4i) = 50@
174@(48@,4i) *= 8
goto @QUARRY_22930

:QUARRY_22895
set_lvar_int_to_var_int 174@(48@,4i) = $g_Quarry_damageKM(51@,7i)
174@(48@,4i) *= 1000
goto @QUARRY_22930

:QUARRY_22930
48@ += 1
  48@ >= 4
goto_if_false @QUARRY_22742
Game.SwitchEmergencyServices(False)
return 

:QUARRY_22957
34@ = 9
Streaming.RequestModel(406)
Streaming.RequestModel(#DEAD_TIED_COP)
Streaming.RequestModel(468)
Streaming.RequestModel(#CM_BOX)
Streaming.RequestModel(#BLACKBAG2)
Streaming.RequestModel(#DYN_WOODPILE)
Streaming.RequestModel(#DYN_WOODPILE2)
Streaming.LoadAllModelsNow

:QUARRY_23001
if or
  not Streaming.HasModelLoaded(406)
  not Streaming.HasModelLoaded(#DEAD_TIED_COP)
  not Streaming.HasModelLoaded(468)
goto_if_false @QUARRY_23038
wait 0
goto @QUARRY_23001

:QUARRY_23038
if or
  not Streaming.HasModelLoaded(#CM_BOX)
  not Streaming.HasModelLoaded(#BLACKBAG2)
  not Streaming.HasModelLoaded(#DYN_WOODPILE)
  not Streaming.HasModelLoaded(#DYN_WOODPILE2)
goto_if_false @QUARRY_23080
wait 0
goto @QUARRY_23038

:QUARRY_23080
88@ = Car.Create(406, 355.8632, 895.6545, 19.399)
Car.SetHeading(88@, 342.1892)
86@ = Car.Create(468, 819.7281, 858.3189, 11.0469)
Car.SetHeading(86@, 291.4761)
50@ = 0
111@(50@,3i) = Object.Create(#DEAD_TIED_COP, 355.8632, 894.6545, 24.2254)
75@ = Math.RandomFloatInRange(0.0, 180.0)
75@ -= 90.0
if 
  0.0 > 75@
goto_if_false @QUARRY_23236
75@ += 360.0

:QUARRY_23236
Object.AttachToCar(111@(50@,3i), 88@, 0.5, -0.7, 0.7, 90.0, 75@, 75@)
50@ += 1
111@(50@,3i) = Object.Create(#DEAD_TIED_COP, 355.8632, 895.6545, 24.5629)
75@ = Math.RandomFloatInRange(0.0, 180.0)
75@ -= 90.0
if 
  0.0 > 75@
goto_if_false @QUARRY_23364
75@ += 360.0

:QUARRY_23364
Object.AttachToCar(111@(50@,3i), 88@, -0.5, -1.7, 0.73, 90.0, 75@, 75@)
50@ += 1
111@(50@,3i) = Object.Create(#DEAD_TIED_COP, 355.8632, 896.6545, 24.8877)
75@ = Math.RandomFloatInRange(0.0, 180.0)
75@ -= 90.0
if 
  0.0 > 75@
goto_if_false @QUARRY_23492
75@ += 360.0

:QUARRY_23492
Object.AttachToCar(111@(50@,3i), 88@, 0.5, -2.7, 0.76, 90.0, 75@, 75@)
World.SetCarDensityMultiplier(3.0)
Game.SwitchEmergencyServices(False)
return 

:QUARRY_23543
34@ = 12
Streaming.RequestModel(406)
Streaming.RequestModel(#KB_BARREL)
Streaming.LoadAllModelsNow

:QUARRY_23562
if or
  not Streaming.HasModelLoaded(406)
  not Streaming.HasModelLoaded(#KB_BARREL)
goto_if_false @QUARRY_23594
wait 0
goto @QUARRY_23562

:QUARRY_23594
88@ = Car.Create(406, 816.4832, 845.8509, 9.4934)
Car.SetHeading(88@, 295.4882)
50@ = 0
101@(50@,10i) = Object.Create(#KB_BARREL, 815.4841, 846.2587, 15.0409)
Object.AttachToCar(101@(50@,10i), 88@, 0.5, -0.7, 0.9, 90.0, 0.0, 0.0)
Object.SetProofs(101@(50@,10i), False, False, False, True, False)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 816.6973, 844.8737, 15.046)
Object.AttachToCar(101@(50@,10i), 88@, -0.5, -0.7, 0.9, 90.0, 0.0, 0.0)
Object.SetProofs(101@(50@,10i), False, False, False, True, False)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 814.2406, 845.8572, 14.9014)
Object.AttachToCar(101@(50@,10i), 88@, 0.5, -1.7, 0.93, 90.0, 0.0, 0.0)
Object.SetProofs(101@(50@,10i), False, False, False, True, False)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 815.048, 844.0368, 14.8892)
Object.AttachToCar(101@(50@,10i), 88@, -0.5, -1.7, 0.93, 90.0, 0.0, 0.0)
Object.SetProofs(101@(50@,10i), False, False, False, True, False)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 813.2042, 843.0317, 14.7114)
Object.AttachToCar(101@(50@,10i), 88@, 0.5, -2.7, 0.96, 90.0, 0.0, 0.0)
Object.SetProofs(101@(50@,10i), False, False, False, True, False)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 813.2919, 845.4581, 14.8038)
Object.AttachToCar(101@(50@,10i), 88@, -0.5, -2.7, 0.96, 90.0, 0.0, 0.0)
Object.SetProofs(101@(50@,10i), False, False, False, True, False)
50@ = 0
122@(50@,3i) = Object.Create(#CR_AMMOBOX, 815.4841, 846.2587, 15.0409)
Object.SetCollision(122@(50@,3i), False)
Object.SetVisible(122@(50@,3i), False)
Object.AttachToCar(122@(50@,3i), 88@, -1.0, -5.0, 0.3, 0.0, 0.0, 0.0)
50@ += 1
122@(50@,3i) = Object.Create(#CR_AMMOBOX, 816.6973, 844.8737, 15.046)
Object.SetCollision(122@(50@,3i), False)
Object.SetVisible(122@(50@,3i), False)
Object.AttachToCar(122@(50@,3i), 88@, 0.0, -5.0, 0.3, 0.0, 0.0, 0.0)
50@ += 1
122@(50@,3i) = Object.Create(#CR_AMMOBOX, 815.048, 844.0368, 14.8892)
Object.SetCollision(122@(50@,3i), False)
Object.SetVisible(122@(50@,3i), False)
Object.AttachToCar(122@(50@,3i), 88@, 1.0, -5.0, 0.3, 0.0, 0.0, 0.0)
Game.SwitchEmergencyServices(False)
return 

:QUARRY_24497
34@ = 14
Streaming.RequestModel(486)
Streaming.RequestModel(#KB_BARREL)
Streaming.RequestModel(538)
Streaming.RequestModel(570)
Streaming.LoadAllModelsNow

:QUARRY_24526
if or
  not Streaming.HasModelLoaded(486)
  not Streaming.HasModelLoaded(#KB_BARREL)
  not Streaming.HasModelLoaded(538)
  not Streaming.HasModelLoaded(570)
goto_if_false @QUARRY_24568
wait 0
goto @QUARRY_24526

:QUARRY_24568
87@ = Car.Create(486, 816.4832, 845.8509, 9.4934)
Car.SetHeading(87@, 295.4882)
90@ = Train.Create(11, 832.5291, 2669.716, 19.8594, False)
Train.SetSpeed(90@, 0.0)
Train.SetCruiseSpeed(90@, 0.0)
121@ = Object.Create(#CR_AMMOBOX, 816.4832, 848.8509, 9.4934)
Object.SetCollision(121@, False)
Object.SetVisible(121@, False)
Object.AttachToCar(121@, 90@, 0.0, 9.0, -1.8, 0.0, 0.0, 0.0)
50@ = 0
101@(50@,10i) = Object.Create(#KB_BARREL, 744.1446, 1583.6, 7.5408)
Object.SetRotation(101@(48@,10i), 0.0, 0.0, 0.0)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 743.0427, 1602.768, 7.1368)
Object.SetRotation(101@(48@,10i), 0.0, 78.0, 0.0)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 743.5758, 1616.749, 6.8536)
Object.SetRotation(101@(48@,10i), 0.0, 64.0, 0.0)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 742.6569, 1653.42, 6.158)
Object.SetRotation(101@(48@,10i), 0.0, 36.0, 0.0)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 743.8057, 1671.523, 5.8467)
Object.SetRotation(101@(48@,10i), 0.0, 14.0, 0.0)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 742.5768, 1700.305, 5.4186)
Object.SetRotation(101@(48@,10i), 0.0, 128.0, 0.0)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 743.4429, 1730.141, 5.0731)
Object.SetRotation(101@(48@,10i), 0.0, 96.0, 0.0)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 742.0187, 1765.321, 4.6566)
Object.SetRotation(101@(48@,10i), 0.0, 65.0, 0.0)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 742.176, 1812.375, 4.3281)
Object.SetRotation(101@(48@,10i), 0.0, 170.0, 0.0)
50@ += 1
101@(50@,10i) = Object.Create(#KB_BARREL, 742.7178, 1869.991, 4.3281)
Object.SetRotation(101@(48@,10i), 0.0, 143.0, 0.0)
Game.SwitchRandomTrains(False)
return 

:QUARRY_25306
34@ = 16
Streaming.RequestModel(406)
Streaming.RequestModel(18)
Streaming.RequestModel(#CR_GUNCRATE)
Streaming.LoadAllModelsNow

:QUARRY_25329
if or
  not Streaming.HasModelLoaded(406)
  not Streaming.HasModelLoaded(18)
  not Streaming.HasModelLoaded(#CR_GUNCRATE)
goto_if_false @QUARRY_25365
wait 0
goto @QUARRY_25329

:QUARRY_25365
88@ = Car.Create(406, 816.4832, 845.8509, 9.4934)
Car.SetHeading(88@, 295.4882)
91@ = Car.Create(406, 812.4955, 1144.567, 27.3445)
Car.SetHeading(91@, 116.9096)
Car.LockDoors(91@, CarLock.Locked)
85@ = Char.CreateInsideCar(91@, PedType.CivMale, 18)
50@ = 0
94@(50@,7i) = Object.Create(#CR_GUNCRATE, 815.4841, 846.2587, 15.0409)
Object.AttachToCar(94@(50@,7i), 91@, 0.5, -0.7, 0.7, 90.0, 0.0, 0.0)
50@ += 1
94@(50@,7i) = Object.Create(#CR_GUNCRATE, 816.6973, 844.8737, 15.046)
Object.AttachToCar(94@(50@,7i), 91@, -0.5, -0.7, 0.7, 90.0, 0.0, 0.0)
50@ += 1
94@(50@,7i) = Object.Create(#CR_GUNCRATE, 814.2406, 845.8572, 14.9014)
Object.AttachToCar(94@(50@,7i), 91@, 0.5, -1.7, 0.73, 90.0, 0.0, 0.0)
50@ += 1
94@(50@,7i) = Object.Create(#CR_GUNCRATE, 815.048, 844.0368, 14.8892)
Object.AttachToCar(94@(50@,7i), 91@, -0.5, -1.7, 0.73, 90.0, 0.0, 0.0)
50@ += 1
94@(50@,7i) = Object.Create(#CR_GUNCRATE, 813.2042, 843.0317, 14.7114)
Object.AttachToCar(94@(50@,7i), 91@, 0.5, -2.7, 0.76, 90.0, 0.0, 0.0)
50@ += 1
94@(50@,7i) = Object.Create(#CR_GUNCRATE, 813.2919, 845.4581, 14.8038)
Object.AttachToCar(94@(50@,7i), 91@, -0.5, -2.7, 0.76, 90.0, 0.0, 0.0)
Game.SwitchEmergencyServices(False)
return 

:QUARRY_25912
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Text.ClearSmallPrints
switch_start 45@ {numCases} 14 {hasDefaultCase} 0 {defaultLabel} @QUARRY_26380 {caseNum1} 1 {caseLabel1} @QUARRY_26081 {caseNum2} 2 {caseLabel2} @QUARRY_26104 {caseNum3} 3 {caseLabel3} @QUARRY_26127 {caseNum4} 4 {caseLabel4} @QUARRY_26150 {caseNum5} 5 {caseLabel5} @QUARRY_26173 {caseNum6} 6 {caseLabel6} @QUARRY_26196 {caseNum7} 7 {caseLabel7} @QUARRY_26219
switch_continued 8 {caseLabel1} @QUARRY_26242 {caseNum2} 9 {caseLabel2} @QUARRY_26265 {caseNum3} 10 {caseLabel3} @QUARRY_26058 {caseNum4} 11 {caseLabel4} @QUARRY_26288 {caseNum5} 12 {caseLabel5} @QUARRY_26311 {caseNum6} 13 {caseLabel6} @QUARRY_26334 {caseNum7} 14 {caseLabel7} @QUARRY_26357 {caseNum8} -1 {caseLabel8} @QUARRY_26380 {caseNum9} -1 {caseLabel9} @QUARRY_26380

:QUARRY_26058
Text.PrintNow('QUAR_F0', 5000, 1)
goto @QUARRY_26380

:QUARRY_26081
Text.PrintNow('QUAR_F1', 5000, 1)
goto @QUARRY_26380

:QUARRY_26104
Text.PrintNow('QUAR_F2', 5000, 1)
goto @QUARRY_26380

:QUARRY_26127
Text.PrintNow('QUAR_F3', 5000, 1)
goto @QUARRY_26380

:QUARRY_26150
Text.PrintNow('QUAR_F4', 5000, 1)
goto @QUARRY_26380

:QUARRY_26173
Text.PrintNow('QUAR_F5', 5000, 1)
goto @QUARRY_26380

:QUARRY_26196
Text.PrintNow('QUAR_F6', 5000, 1)
goto @QUARRY_26380

:QUARRY_26219
Text.PrintNow('QUAR_F7', 5000, 1)
goto @QUARRY_26380

:QUARRY_26242
Text.PrintNow('QUAR_F8', 5000, 1)
goto @QUARRY_26380

:QUARRY_26265
Text.PrintNow('QUAR_F9', 5000, 1)
goto @QUARRY_26380

:QUARRY_26288
Text.PrintNow('QUAR_FA', 5000, 1)
goto @QUARRY_26380

:QUARRY_26311
Text.PrintNow('QUAR_FB', 5000, 1)
goto @QUARRY_26380

:QUARRY_26334
Text.PrintNow('QUAR_FC', 5000, 1)
goto @QUARRY_26380

:QUARRY_26357
Text.PrintNow('QUAR_FD', 5000, 1)
goto @QUARRY_26380

:QUARRY_26380
return 

:QUARRY_26382
if 
  207@ == 0
goto_if_false @QUARRY_26423
set_lvar_int_to_lvar_int 50@ = 46@
sub_int_lvar_from_int_lvar 50@ -= 206@
goto @QUARRY_26439

:QUARRY_26423
set_lvar_int_to_lvar_int 50@ = 207@
sub_int_lvar_from_int_lvar 50@ -= 206@

:QUARRY_26439
set_lvar_int_to_lvar_int 51@ = 50@
51@ /= 1000
set_lvar_int_to_lvar_int 52@ = 51@
52@ *= 1000
sub_int_lvar_from_int_lvar 50@ -= 52@
if 
  50@ > 50
goto_if_false @QUARRY_26504
51@ += 1

:QUARRY_26504
293@ = 0
294@ = 0
if 
  is_int_var_equal_to_int_lvar $g_Quarry_damageKM($8170,7i) == 51@
goto_if_false @QUARRY_26555
293@ = 1
goto @QUARRY_26585

:QUARRY_26555
if 
  is_int_var_greater_than_int_lvar $g_Quarry_damageKM($8170,7i) > 51@
goto_if_false @QUARRY_26585
294@ = 1

:QUARRY_26585
if 
  294@ == 1
goto_if_false @QUARRY_26615
set_var_int_to_lvar_int $g_Quarry_damageKM($8170,7i) = 51@

:QUARRY_26615
if and
  $done_quarry_progress == 1
  294@ == 1
goto_if_false @QUARRY_26686
set_lvar_int_to_lvar_int 208@ = 51@
208@ /= 60
set_lvar_int_to_lvar_int 50@ = 208@
50@ *= 60
set_lvar_int_to_lvar_int 209@ = 51@
sub_int_lvar_from_int_lvar 209@ -= 50@

:QUARRY_26686
50@ = 0
if 
  $done_quarry_progress == 1
goto_if_false @QUARRY_26751
48@ = 0

:QUARRY_26718
add_int_var_to_int_lvar 50@ += $g_Quarry_damageKM(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_26718

:QUARRY_26751
Stat.SetInt(StatId.QuarryCompletionTime, 50@)
if and
  $done_quarry_progress == 1
  294@ == 1
goto_if_false @QUARRY_26830
set_lvar_int_to_lvar_int 210@ = 50@
210@ /= 60
set_lvar_int_to_lvar_int 51@ = 210@
51@ *= 60
set_lvar_int_to_lvar_int 211@ = 50@
sub_int_lvar_from_int_lvar 211@ -= 51@

:QUARRY_26830
$8170 += 1
if 
  $done_quarry_progress == 0
goto_if_false @QUARRY_27101
switch_start $8170 {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @QUARRY_27023 {caseNum1} 1 {caseLabel1} @QUARRY_26918 {caseNum2} 2 {caseLabel2} @QUARRY_26933 {caseNum3} 3 {caseLabel3} @QUARRY_26948 {caseNum4} 4 {caseLabel4} @QUARRY_26963 {caseNum5} 5 {caseLabel5} @QUARRY_26978 {caseNum6} 6 {caseLabel6} @QUARRY_26993 {caseNum7} 7 {caseLabel7} @QUARRY_27008

:QUARRY_26918
50@ = 500
goto @QUARRY_27023

:QUARRY_26933
50@ = 1000
goto @QUARRY_27023

:QUARRY_26948
50@ = 2000
goto @QUARRY_27023

:QUARRY_26963
50@ = 3000
goto @QUARRY_27023

:QUARRY_26978
50@ = 5000
goto @QUARRY_27023

:QUARRY_26993
50@ = 7500
goto @QUARRY_27023

:QUARRY_27008
50@ = 10000
goto @QUARRY_27023

:QUARRY_27023
if 
  $8170 == 7
goto_if_false @QUARRY_27067
Text.PrintWithNumberBig('M_PASS', 50@, 3000, TextStyle.Middle)
goto @QUARRY_27086

:QUARRY_27067
Text.PrintWithNumberBig('M_PASS', 50@, 5000, TextStyle.Middle)

:QUARRY_27086
Player.AddScore($player1, 50@)
goto @QUARRY_27206

:QUARRY_27101
Text.PrintWithNumberBig('M_PASSD', 0, 5000, TextStyle.Middle)
if 
  293@ == 1
goto_if_false @QUARRY_27160
Text.PrintNow('QUAR_P5', 5000, 1)
goto @QUARRY_27206

:QUARRY_27160
if 
  294@ == 1
goto_if_false @QUARRY_27206
Text.PrintWith4NumbersNow('QUAR_P6', 208@, 209@, 210@, 211@, 10000, TextStyle.Middle)

:QUARRY_27206
Player.ClearWantedLevel($player1)
if 
  $done_quarry_progress == 0
goto_if_false @QUARRY_27487
if 
  $8170 == 1
goto_if_false @QUARRY_27270
Text.PrintNow('QUAR_P1', 5000, 1)
goto @QUARRY_27480

:QUARRY_27270
if 
  $8170 == 7
goto_if_false @QUARRY_27461
Stat.RegisterOddjobMissionPassed
Stat.PlayerMadeProgress(1)
Audio.PlayMissionPassedTune(2)
$done_quarry_progress = 1
$8170 = 0
Text.PrintBig('QUAR_P2', 4000, TextStyle.MiddleSmaller)
50@ = 0
if 
  $done_quarry_progress == 1
goto_if_false @QUARRY_27393
48@ = 0

:QUARRY_27360
add_int_var_to_int_lvar 50@ += $g_Quarry_damageKM(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_27360

:QUARRY_27393
Stat.SetInt(StatId.QuarryCompletionTime, 50@)
set_lvar_int_to_lvar_int 210@ = 50@
210@ /= 60
set_lvar_int_to_lvar_int 51@ = 210@
51@ *= 60
set_lvar_int_to_lvar_int 211@ = 50@
sub_int_lvar_from_int_lvar 211@ -= 51@
295@ = 1
goto @QUARRY_27480

:QUARRY_27461
Text.PrintWithNumberNow('QUAR_P4', $8170, 5000, 1)

:QUARRY_27480
goto @QUARRY_27512

:QUARRY_27487
if 
  $8170 == 7
goto_if_false @QUARRY_27512
$8170 = 0

:QUARRY_27512
if 
  $done_quarry_progress == 1
goto_if_false @QUARRY_27544
CarGenerator.Switch($flag_1st_time_nitro_shop, 101)
CarGenerator.Switch($gen_car1, 101)

:QUARRY_27544
return 

:QUARRY_27546
Car.MarkAsNoLongerNeeded(86@)
Car.MarkAsNoLongerNeeded(87@)
Car.MarkAsNoLongerNeeded(88@)
Car.MarkAsNoLongerNeeded(89@)
Car.MarkAsNoLongerNeeded(91@)
Char.MarkAsNoLongerNeeded(85@)
Object.MarkAsNoLongerNeeded(92@)
Object.MarkAsNoLongerNeeded(93@)
Object.MarkAsNoLongerNeeded(121@)
Train.MarkAsNoLongerNeeded(90@)
48@ = 0

:QUARRY_27603
Object.MarkAsNoLongerNeeded(94@(48@,7i))
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_27603
48@ = 0

:QUARRY_27640
Object.MarkAsNoLongerNeeded(101@(48@,10i))
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_27640
48@ = 0

:QUARRY_27677
Object.MarkAsNoLongerNeeded(111@(48@,3i))
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_27677
48@ = 0

:QUARRY_27714
Object.MarkAsNoLongerNeeded(114@(48@,7i))
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_27714
48@ = 0

:QUARRY_27751
Object.MarkAsNoLongerNeeded(122@(48@,3i))
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_27751
48@ = 0

:QUARRY_27788
Checkpoint.Delete(190@(48@,7i))
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_27788
Checkpoint.Delete(197@)
Blip.Remove(125@)
Blip.Remove(126@)
Blip.Remove(128@)
Blip.Remove(130@)
Blip.Remove(129@)
Blip.Remove(131@)
Blip.Remove(132@)
Blip.Remove(140@)
Blip.Remove(141@)
Blip.Remove(152@)
Blip.Remove(127@)
48@ = 0

:QUARRY_27885
Blip.Remove(133@(48@,7i))
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_27885
48@ = 0

:QUARRY_27922
Blip.Remove(142@(48@,10i))
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_27922
Hud.ClearTimer($g_nQuarryMissionsPassed)
Hud.ClearCounter($g_Quarry_timerKM)
World.ClearAllScriptFireFlags
if 
  262@ == 1
goto_if_false @QUARRY_27984
Text.ClearHelp

:QUARRY_27984
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.MarkModelAsNoLongerNeeded(486)
Streaming.MarkModelAsNoLongerNeeded(406)
Streaming.MarkModelAsNoLongerNeeded(#DYN_QUARRYROCK02)
Streaming.MarkModelAsNoLongerNeeded(#DEAD_TIED_COP)
Streaming.MarkModelAsNoLongerNeeded(#DYN_QUARRYROCK03)
Streaming.MarkModelAsNoLongerNeeded(523)
Streaming.MarkModelAsNoLongerNeeded(#CR_AMMOBOX)
Streaming.MarkModelAsNoLongerNeeded(#KB_BARREL)
Streaming.MarkModelAsNoLongerNeeded(538)
Streaming.MarkModelAsNoLongerNeeded(570)
Streaming.MarkModelAsNoLongerNeeded(18)
Streaming.MarkModelAsNoLongerNeeded(#CR_GUNCRATE)
Streaming.MarkModelAsNoLongerNeeded(#CM_BOX)
Streaming.MarkModelAsNoLongerNeeded(#BLACKBAG2)
Streaming.MarkModelAsNoLongerNeeded(#DYN_WOODPILE)
Streaming.MarkModelAsNoLongerNeeded(#DYN_WOODPILE2)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SetWantedMultiplier(1.0)
Game.SwitchEmergencyServices(True)
Game.SwitchRandomTrains(True)
if 
  283@ == 1
goto_if_false @QUARRY_28307
Path.SwitchRoadsBackToOriginal(256.6312, 734.7498, 4.0053, 343.9576, 765.6713, 6.4852)
Path.SwitchRoadsBackToOriginal(291.2253, 762.6765, 4.0625, 354.4869, 784.4223, 6.6101)
Path.SwitchRoadsBackToOriginal(-149.9865, 460.067, 4.9719, -119.7325, 530.4155, 12.4813)
Path.SwitchRoadsBackToOriginal(-100.9858, 1190.38, 16.1736, 97.0928, 1205.202, 19.9344)
Path.SwitchRoadsBackToOriginal(-124.9028, 1209.581, 14.6519, -108.1954, 1243.821, 19.8554)
Path.SwitchRoadsBackToOriginal(-113.2273, 1246.477, 11.3781, -84.1825, 1268.751, 17.5621)

:QUARRY_28307
$timer_mobile_start = Clock.GetGameTimer()
Text.DrawOddjobTitleBeforeFade(True)
$onmission = 0
$flag_player_on_oddjob = 0
Mission.Finish
return 

//-------------Mission 119---------------
// Originally: Boat School

:BOAT
script_name 'BOAT'
gosub @BOAT_416
if 
  has_deatharrest_been_executed 
goto_if_false @BOAT_38
gosub @BOAT_37293

:BOAT_38
gosub @BOAT_37411
terminate_this_script 
if 
  $onmission == 0
goto_if_false @BOAT_416
if 
  36@ == 13
goto_if_false @BOAT_416
37@ = Car.Create(415, 0.0, 0.0, 0.0)
46@ = Car.Create(415, 5.0, 5.0, 10.0)
47@ = Char.Create(PedType.Mission1, 210, 20.0, 20.0, 20.0)
39@ = Char.Create(PedType.Mission1, 210, 30.0, 30.0, 20.0)
42@ = Char.Create(PedType.Mission1, 210, 30.0, 30.0, 20.0)
43@ = Char.Create(PedType.Mission1, 210, 30.0, 30.0, 20.0)
40@ = Car.Create(415, 0.0, 0.0, 0.0)
41@ = Car.Create(415, 0.0, 0.0, 0.0)
45@ = Char.Create(PedType.Mission1, 210, 30.0, 30.0, 20.0)
44@ = Car.Create(415, 0.0, 0.0, 0.0)
156@ = 0

:BOAT_330
if 
  13 > 156@
goto_if_false @BOAT_416
56@(156@,50i) = Object.CreateNoOffset(#BOUY, 0.0, 0.0, 100.0)
106@(156@,50i) = Object.CreateNoOffset(#WATERJUMP1, 0.0, 0.0, 150.0)
156@ += 1
goto @BOAT_330

:BOAT_416
$onmission = 1
if 
  $boat_passed_once == 0
goto_if_false @BOAT_443
Stat.RegisterMissionGiven

:BOAT_443
Text.LoadMissionText('BOAT')
Stat.ShowUpdateStats(False)
Hud.DisplayCarNames(False)
Hud.DisplayZoneNames(False)
if 
  Player.IsPlaying($player1)
goto_if_false @BOAT_489
Player.SetCanDoDriveBy($player1, False)

:BOAT_489
wait 0
246@ = 0
248@ = 0
34@ = 0
35@ = 0
245@ = 0
36@ = 0
$8188 = 1
182@ = -2215.58
183@ = 2391.7
184@ = 3.965
174@ = -2185.335
175@ = 2410.409
176@ = 3.9752
177@ = 122.2585
178@ = -2216.327
179@ = 2393.209
180@ = 3.9
181@ = 238.0
55@ = 0
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
$boat_alpha = 0
$boat_which_medal_displayed = 0
169@ = 0
229@ = 0
192@ = 0.0
193@ = 0.0
194@ = 0.0
209@ = 12000
210@ = 12000
211@ = 10500
212@ = 9700
213@ = 40000
214@ = 40000
215@ = 37000
216@ = 33000
217@ = 120000
218@ = 120000
219@ = 85000
220@ = 80000
221@ = 55
222@ = 55
223@ = 63
224@ = 67
225@ = 180000
226@ = 180000
227@ = 150000
228@ = 130000
Camera.SetFadingColor(0, 0, 0)
wait 0
Streaming.RequestModel(210)
Streaming.RequestModel(473)
Streaming.RequestModel(497)
Streaming.RequestModel(472)
Streaming.RequestModel(484)
Streaming.RequestModel(454)
Streaming.RequestModel(539)
Streaming.LoadAllModelsNow

:BOAT_981
if or
  not Streaming.HasModelLoaded(210)
  not Streaming.HasModelLoaded(473)
  not Streaming.HasModelLoaded(497)
  not Streaming.HasModelLoaded(472)
goto_if_false @BOAT_1023
wait 0
goto @BOAT_981

:BOAT_1023
if or
  not Streaming.HasModelLoaded(484)
  not Streaming.HasModelLoaded(454)
  not Streaming.HasModelLoaded(539)
goto_if_false @BOAT_1060
wait 0
goto @BOAT_1023

:BOAT_1060
Txd.LoadDictionary('LD_DRV')
Txd.LoadSprite(1, "BRONZE")
Txd.LoadSprite(2, "SILVER")
Txd.LoadSprite(3, "GOLD")
Txd.LoadSprite(4, "RIBB")
Txd.LoadSprite(5, "TVCORN")
Txd.LoadSprite(6, "NAWARD")
Txd.LoadSprite(7, "RIBBW")
Txd.LoadSprite(8, "BLKDOT")
Txd.LoadSprite(9, "TVBASE")
Char.SetCoordinates($scplayer, 174@, 175@, 176@)
Char.SetHeading($scplayer, 177@)
Char.SetDrownsInWater($scplayer, False)
38@ = Char.Create(PedType.Mission1, 210, 178@, 179@, 180@)
Char.SetHeading(38@, 181@)
Char.SetNeverTargeted(38@, True)
if 
  $boat_mission_selection == 0
goto_if_false @BOAT_1262
$boat_mission_selection = 50

:BOAT_1262
wait 0
if 
  $boat_mission_selection == 50
goto_if_false @BOAT_1316
goto @BOAT_1323
if 
  Char.IsDead(38@)
goto_if_false @BOAT_1316
Text.ClearHelp
goto @BOAT_37293

:BOAT_1316
goto @BOAT_1262

:BOAT_1323
Hud.Display(False)
Hud.DisplayRadar(False)
Player.SetControl($player1, False)
Text.ClearHelp
Text.ClearPrints
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
gosub @BOAT_19806
$boat_introcutscene = 0
$boatpb_flag = 0
Text.UseCommands(True)
$boat_fade_flag = 255
$boat_control_flag = 2
if 
  6 > $boat_which_missions_are_open_flag
goto_if_false @BOAT_1422
set_var_int_to_var_int $8188 = $boat_which_missions_are_open_flag

:BOAT_1422
gosub @BOAT_25096
Hud.Display(False)
Hud.DisplayRadar(False)
Streaming.SetAreaVisible(0)
Camera.DoFade(500, Fade.In)

:BOAT_1448
wait 0
gosub @BOAT_25096
if 
  34@ == 0
goto_if_false @BOAT_1491
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 31400)
34@ = 1

:BOAT_1491
if 
  34@ == 1
goto_if_false @BOAT_1531
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @BOAT_1531
34@ = 2

:BOAT_1531
if 
  34@ == 2
goto_if_false @BOAT_1560
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
34@ = 3

:BOAT_1560
Weather.ForceNow(WeatherType.ExtraSunnyCountryside)
Clock.SetTimeOfDay(12, 50)
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundDisableHeliAudio)
if 
  $boatpb_flag == 0
goto_if_false @BOAT_2122
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  -100 > $LStickX
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @BOAT_1698
if 
  $boat_which_missions_are_open_flag > 1
goto_if_false @BOAT_1698
$8188 -= 1
if 
  4 > $boat_introcutscene
goto_if_false @BOAT_1698
$boat_introcutscene = 3

:BOAT_1698
if or
  $LStickX > 100
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @BOAT_1772
if 
  $boat_which_missions_are_open_flag > 1
goto_if_false @BOAT_1772
$8188 += 1
if 
  4 > $boat_introcutscene
goto_if_false @BOAT_1772
$boat_introcutscene = 3

:BOAT_1772
if 
  1 > $8188
goto_if_false @BOAT_1798
set_var_int_to_var_int $8188 = $boat_which_missions_are_open_flag

:BOAT_1798
if 
  is_int_var_greater_than_int_var $8188 > $boat_which_missions_are_open_flag
goto_if_false @BOAT_1824
$8188 = 1

:BOAT_1824
if 
  $boat_which_missions_are_open_flag > 1
goto_if_false @BOAT_2016

:BOAT_1842
if 
  -100 > $LStickX
goto_if_false @BOAT_1894
wait 0
gosub @BOAT_25096
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
goto @BOAT_1842

:BOAT_1894
if 
  $LStickX > 100
goto_if_false @BOAT_1946
wait 0
gosub @BOAT_25096
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
goto @BOAT_1894

:BOAT_1946
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @BOAT_1981
wait 0
gosub @BOAT_25096
goto @BOAT_1946

:BOAT_1981
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @BOAT_2016
wait 0
gosub @BOAT_25096
goto @BOAT_1981

:BOAT_2016
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BOAT_2076
if 
  4 > $boat_introcutscene
goto_if_false @BOAT_2058
$boat_introcutscene = 3

:BOAT_2058
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
34@ = 0
goto @BOAT_2136

:BOAT_2076
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @BOAT_2098
$boat_which_missions_are_open_flag = 5

:BOAT_2098
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BOAT_2122
goto @BOAT_37293

:BOAT_2122
gosub @BOAT_31988
goto @BOAT_1448

:BOAT_2136
Camera.DoFade(500, Fade.Out)

:BOAT_2143
if 
  Camera.GetFadingStatus
goto_if_false @BOAT_2174
wait 0
gosub @BOAT_25096
goto @BOAT_2143

:BOAT_2174
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_2195
Car.StopPlayback(37@)

:BOAT_2195
Camera.RestoreJumpcut
Car.Delete(37@)
Car.Delete(46@)
Char.Delete(47@)
Char.Delete(39@)
gosub @BOAT_37227
$boat_introcutscene = 5
Hud.Display(True)
Hud.DisplayRadar(True)
if 
  $8188 == 1
goto_if_false @BOAT_3817

:BOAT_2257
gosub @BOAT_33622

:BOAT_2264
Player.SetControl($player1, True)
gosub @BOAT_19806
46@ = Car.Create(497, -3303.627, 2105.29, 200.0)
Char.Delete(47@)
47@ = Char.CreateInsideCar(46@, PedType.Mission1, 210)
245@ = 0
Char.ClearTasks(47@)
Heli.SetBladesFullSpeed(46@)
Car.SetCruiseSpeed(46@, 250.0)
Heli.GotoCoords(46@, -2303.627, 2105.29, 200.0, 200.0, 200.0)
37@ = Car.Create(472, -2323.627, 2105.29, 0.0)
Car.ChangeColor(37@, 1, 114)
Car.SetHeading(37@, 90.0)
39@ = Char.CreateInsideCar(37@, PedType.Mission1, 210)
gosub @BOAT_33799
if 
  $boat_introcutscene == 0
goto_if_false @BOAT_2488
Camera.AttachToVehicleLookAtVehicle(46@, 10.0, 10.0, 0.0, 37@, 0.0, SwitchType.JumpCut)
return 

:BOAT_2488
gosub @BOAT_33310
Text.PrintHelp('BOAT_H2')
Player.SetControl($player1, True)
52@ = Blip.AddForObject(56@)
51@ = Blip.AddForObject(57@)
53@ = Blip.AddForObject(62@)
54@ = Blip.AddForObject(63@)
Blip.ChangeColor(52@, BlipColor.Yellow)
Blip.ChangeColor(51@, BlipColor.Yellow)
Blip.ChangeColor(53@, BlipColor.Yellow)
Blip.ChangeColor(54@, BlipColor.Yellow)
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_2637
185@, 186@, 187@ = Car.GetCoordinates(37@)
set_lvar_float_to_lvar_float 192@ = 185@
192@ -= 195.0
set_lvar_float_to_lvar_float 193@ = 186@
set_lvar_float_to_lvar_float 194@ = 187@

:BOAT_2637
wait 0
if 
  not Car.IsDead(46@)
goto_if_false @BOAT_2731
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_2731
185@, 186@, 187@ = Car.GetCoordinates(37@)
185@ -= 150.0
186@ -= 150.0
Heli.GotoCoords(46@, 185@, 186@, 187@, 120.0, 120.0)

:BOAT_2731
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BOAT_2762
164@ = 2
goto @BOAT_3757

:BOAT_2762
gosub @BOAT_20354
if 
  164@ == 1
goto_if_false @BOAT_2794
goto @BOAT_37293

:BOAT_2794
if 
  158@ == 0
goto_if_false @BOAT_2985
Text.PrintNow('BOAT_A4', 5000, 1)
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_2852
247@ = Car.GetHealth(37@)

:BOAT_2852
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @BOAT_2985
World.SyncWater
set_lvar_int_to_lvar_int 208@ = 212@
set_lvar_int_to_lvar_int 207@ = 211@
set_lvar_int_to_lvar_int 206@ = 210@
158@ = 1
$boat_which_score_displayed = 0
Hud.ClearTimer($boat_which_score_displayed)
Hud.DisplayTimerWithString($boat_which_score_displayed, TimerDirection.Up, 'BOAT_T1')
198@, 199@, 200@ = Object.GetCoordinates(56@)
195@, 196@, 197@ = Object.GetCoordinates(57@)
Sound.AddOneOffSound(198@, 199@, 200@, ScriptSound.SoundClaxonStart)
TIMERA = 0

:BOAT_2985
if 
  158@ == 1
goto_if_false @BOAT_3281
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_3235
49@ = Car.GetSpeed(37@)
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, -30.0, False)
goto_if_false @BOAT_3124
Text.PrintNow('BOAT_32', 4000, 1)
if 
  7.0 > 49@
goto_if_false @BOAT_3124
Text.ClearPrints
Text.PrintNow('BOAT_33', 4000, 1)
158@ = 99

:BOAT_3124
if 
  TIMERA > 4500
goto_if_false @BOAT_3180
if 
  not Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, -30.0, False)
goto_if_false @BOAT_3180
Text.ClearPrints

:BOAT_3180
if 
  245@ == 0
goto_if_false @BOAT_3235
if 
  TIMERA > 4500
goto_if_false @BOAT_3235
245@ = 1
Text.PrintHelp('BOAT_A5')

:BOAT_3235
if 
  $boat_which_score_displayed > 60000
goto_if_false @BOAT_3281
Text.ClearPrints
Text.PrintNow('BOAT_34', 4000, 1)
158@ = 99

:BOAT_3281
if 
  158@ == 99
goto_if_false @BOAT_3810
gosub @BOAT_20102
gosub @BOAT_20430
if 
  is_int_var_greater_than_int_lvar $boat_accelerate_best_score > 168@
goto_if_false @BOAT_3519
set_lvar_int_to_var_int 169@ = $boat_accelerate_best_score
set_var_int_to_lvar_int $boat_accelerate_best_score = 168@
167@ = 1
gosub @BOAT_21202
if 
  $boat_alpha == 4
goto_if_false @BOAT_3419
if 
  $boat_accelerate_goldachieved == 0
goto_if_false @BOAT_3419
$boat_accelerate_goldachieved = 1
$boat_accelerate_silverachieved = 1
$boat_accelerate_bronzeachieved = 1

:BOAT_3419
if 
  $boat_alpha == 3
goto_if_false @BOAT_3469
if 
  $boat_accelerate_silverachieved == 0
goto_if_false @BOAT_3469
$boat_accelerate_silverachieved = 1
$boat_accelerate_bronzeachieved = 1

:BOAT_3469
if 
  $boat_alpha == 2
goto_if_false @BOAT_3512
if 
  $boat_accelerate_bronzeachieved == 0
goto_if_false @BOAT_3512
$boat_accelerate_bronzeachieved = 1

:BOAT_3512
goto @BOAT_3526

:BOAT_3519
$boat_alpha = 0

:BOAT_3526
if 
  $boat_which_missions_are_open_flag == 1
goto_if_false @BOAT_3604
if 
  is_int_lvar_greater_than_int_lvar 209@ > 168@
goto_if_false @BOAT_3604
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1097)
167@ = 2
$boat_which_missions_are_open_flag = 2
164@ = 2

:BOAT_3604
TIMERA = 0

:BOAT_3611
if 
  TIMERA > -1
goto_if_false @BOAT_3757
wait 0
gosub @BOAT_20773
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BOAT_3691
164@ = 2
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1098)
goto @BOAT_3757

:BOAT_3691
gosub @BOAT_21733
gosub @BOAT_20019
if 
  165@ == 1
goto_if_false @BOAT_3750
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1098)
goto @BOAT_3757

:BOAT_3750
goto @BOAT_3611

:BOAT_3757
gosub @BOAT_24832
gosub @BOAT_37227
if 
  164@ == 2
goto_if_false @BOAT_3803
goto @BOAT_1323
goto @BOAT_3810

:BOAT_3803
goto @BOAT_2257

:BOAT_3810
goto @BOAT_2637

:BOAT_3817
if 
  $8188 == 2
goto_if_false @BOAT_6516

:BOAT_3835
gosub @BOAT_33622

:BOAT_3842
Player.SetControl($player1, True)
gosub @BOAT_19806
46@ = Car.Create(497, -2303.627, 2105.29, 200.0)
Char.Delete(47@)
47@ = Char.CreateInsideCar(46@, PedType.Mission1, 210)
Char.ClearTasks(47@)
Heli.SetBladesFullSpeed(46@)
Car.SetCruiseSpeed(46@, 250.0)
Heli.GotoCoords(46@, -2303.627, 2105.29, 200.0, 200.0, 200.0)
37@ = Car.Create(472, -2578.671, 2050.845, 0.0)
Car.ChangeColor(37@, 1, 114)
Car.SetHeading(37@, 0.0)
39@ = Char.CreateInsideCar(37@, PedType.Mission1, 210)
gosub @BOAT_33799
if 
  $boat_introcutscene == 0
goto_if_false @BOAT_4059
Camera.AttachToVehicleLookAtVehicle(46@, 10.0, 10.0, 0.0, 37@, 0.0, SwitchType.JumpCut)
return 

:BOAT_4059
gosub @BOAT_33310
Text.PrintHelp('BOAT_H2')
Player.SetControl($player1, True)
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_4195
185@, 186@, 187@ = Car.GetCoordinates(37@)
198@, 199@, 200@ = Object.GetCoordinates(56@)
195@, 196@, 197@ = Object.GetCoordinates(57@)
52@ = Blip.AddForObject(56@)
Blip.ChangeColor(52@, BlipColor.Yellow)
51@ = Blip.AddForObject(57@)
Blip.ChangeColor(51@, BlipColor.Yellow)
53@ = Blip.AddForObject(58@)
54@ = Blip.AddForObject(59@)
gosub @BOAT_33755

:BOAT_4195
wait 0
if 
  not Car.IsDead(46@)
goto_if_false @BOAT_4289
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_4289
185@, 186@, 187@ = Car.GetCoordinates(37@)
185@ -= 150.0
186@ -= 150.0
Heli.GotoCoords(46@, 185@, 186@, 187@, 200.0, 200.0)

:BOAT_4289
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BOAT_4320
164@ = 2
goto @BOAT_6456

:BOAT_4320
gosub @BOAT_20354
if 
  164@ == 1
goto_if_false @BOAT_4352
goto @BOAT_37293

:BOAT_4352
if 
  159@ == 0
goto_if_false @BOAT_4470
Text.PrintNow('BOAT_B4', 4000, 1)
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @BOAT_4470
World.SyncWater
set_lvar_int_to_lvar_int 208@ = 216@
set_lvar_int_to_lvar_int 207@ = 215@
set_lvar_int_to_lvar_int 206@ = 214@
159@ = 5
$boat_which_score_displayed = 0
Hud.ClearTimer($boat_which_score_displayed)
Hud.DisplayTimerWithString($boat_which_score_displayed, TimerDirection.Up, 'BOAT_T1')

:BOAT_4470
if 
  159@ > 0
goto_if_false @BOAT_4516
if 
  $boat_which_score_displayed > 600000
goto_if_false @BOAT_4516
159@ = 99

:BOAT_4516
if 
  159@ == 5
goto_if_false @BOAT_4722
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_4722
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_4722
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
Text.ClearHelp
Text.PrintHelp('BOAT_B5')
159@ = 10
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(58@)
195@, 196@, 197@ = Object.GetCoordinates(59@)
52@ = Blip.AddForObject(58@)
51@ = Blip.AddForObject(59@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(60@)
54@ = Blip.AddForObject(61@)
gosub @BOAT_33755

:BOAT_4722
if 
  159@ == 10
goto_if_false @BOAT_4915
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_4915
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_4915
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
159@ = 15
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(60@)
195@, 196@, 197@ = Object.GetCoordinates(61@)
52@ = Blip.AddForObject(60@)
51@ = Blip.AddForObject(61@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(62@)
54@ = Blip.AddForObject(63@)
gosub @BOAT_33755

:BOAT_4915
if 
  159@ == 15
goto_if_false @BOAT_5108
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_5108
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_5108
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
159@ = 20
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(62@)
195@, 196@, 197@ = Object.GetCoordinates(63@)
52@ = Blip.AddForObject(62@)
51@ = Blip.AddForObject(63@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(64@)
54@ = Blip.AddForObject(65@)
gosub @BOAT_33755

:BOAT_5108
if 
  159@ == 20
goto_if_false @BOAT_5301
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_5301
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_5301
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
159@ = 25
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(64@)
195@, 196@, 197@ = Object.GetCoordinates(65@)
52@ = Blip.AddForObject(64@)
51@ = Blip.AddForObject(65@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(66@)
54@ = Blip.AddForObject(67@)
gosub @BOAT_33755

:BOAT_5301
if 
  159@ == 25
goto_if_false @BOAT_5494
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_5494
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_5494
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
159@ = 30
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(66@)
195@, 196@, 197@ = Object.GetCoordinates(67@)
52@ = Blip.AddForObject(66@)
51@ = Blip.AddForObject(67@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(68@)
54@ = Blip.AddForObject(69@)
gosub @BOAT_33755

:BOAT_5494
if 
  159@ == 30
goto_if_false @BOAT_5687
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_5687
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_5687
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
159@ = 35
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(68@)
195@, 196@, 197@ = Object.GetCoordinates(69@)
52@ = Blip.AddForObject(68@)
51@ = Blip.AddForObject(69@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(70@)
54@ = Blip.AddForObject(71@)
gosub @BOAT_33755

:BOAT_5687
if 
  159@ == 35
goto_if_false @BOAT_5864
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_5864
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_5864
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
159@ = 40
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(70@)
195@, 196@, 197@ = Object.GetCoordinates(71@)
52@ = Blip.AddForObject(70@)
51@ = Blip.AddForObject(71@)
Blip.Remove(53@)
Blip.Remove(54@)
gosub @BOAT_33755

:BOAT_5864
if 
  159@ == 40
goto_if_false @BOAT_5980
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_5980
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_5980
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_33', 1000, 1)
159@ = 99
Blip.Remove(52@)
Blip.Remove(51@)

:BOAT_5980
if 
  159@ == 99
goto_if_false @BOAT_6509
gosub @BOAT_20102
gosub @BOAT_20430
if 
  is_int_var_greater_than_int_lvar $boat_simplecircuit_best_score > 168@
goto_if_false @BOAT_6218
set_lvar_int_to_var_int 169@ = $boat_simplecircuit_best_score
set_var_int_to_lvar_int $boat_simplecircuit_best_score = 168@
167@ = 1
gosub @BOAT_21202
if 
  $boat_alpha == 4
goto_if_false @BOAT_6118
if 
  $boat_simplecircuit_goldachieved == 0
goto_if_false @BOAT_6118
$boat_simplecircuit_goldachieved = 1
$boat_simplecircuit_silverachieved = 1
$boat_simplecircuit_bronzeachieved = 1

:BOAT_6118
if 
  $boat_alpha == 3
goto_if_false @BOAT_6168
if 
  $boat_simplecircuit_silverachieved == 0
goto_if_false @BOAT_6168
$boat_simplecircuit_silverachieved = 1
$boat_simplecircuit_bronzeachieved = 1

:BOAT_6168
if 
  $boat_alpha == 2
goto_if_false @BOAT_6211
if 
  $boat_simplecircuit_bronzeachieved == 0
goto_if_false @BOAT_6211
$boat_simplecircuit_bronzeachieved = 1

:BOAT_6211
goto @BOAT_6225

:BOAT_6218
$boat_alpha = 0

:BOAT_6225
if 
  $boat_which_missions_are_open_flag == 2
goto_if_false @BOAT_6303
if 
  is_int_lvar_greater_than_int_lvar 213@ > 168@
goto_if_false @BOAT_6303
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1097)
167@ = 2
$boat_which_missions_are_open_flag = 3
164@ = 2

:BOAT_6303
TIMERA = 0

:BOAT_6310
if 
  TIMERA > -1
goto_if_false @BOAT_6456
wait 0
gosub @BOAT_20773
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BOAT_6390
164@ = 2
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1098)
goto @BOAT_6456

:BOAT_6390
gosub @BOAT_21733
gosub @BOAT_20019
if 
  165@ == 1
goto_if_false @BOAT_6449
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1098)
goto @BOAT_6456

:BOAT_6449
goto @BOAT_6310

:BOAT_6456
gosub @BOAT_24832
gosub @BOAT_37227
if 
  164@ == 2
goto_if_false @BOAT_6502
goto @BOAT_1323
goto @BOAT_6509

:BOAT_6502
goto @BOAT_3835

:BOAT_6509
goto @BOAT_4195

:BOAT_6516
if 
  $8188 == 3
goto_if_false @BOAT_10919

:BOAT_6534
gosub @BOAT_33622

:BOAT_6541
Player.SetControl($player1, True)
gosub @BOAT_19806
46@ = Car.Create(497, -2303.627, 2105.29, 200.0)
Char.Delete(47@)
47@ = Char.CreateInsideCar(46@, PedType.Mission1, 210)
Char.ClearTasks(47@)
Heli.SetBladesFullSpeed(46@)
Car.SetCruiseSpeed(46@, 250.0)
Heli.GotoCoords(46@, -2303.627, 2105.29, 200.0, 200.0, 200.0)
37@ = Car.Create(473, -2124.125, 2438.352, 0.0)
Car.ChangeColor(37@, 114, 1)
Car.SetHeading(37@, 180.0)
39@ = Char.CreateInsideCar(37@, PedType.Mission1, 210)
gosub @BOAT_33799
if 
  $boat_introcutscene == 0
goto_if_false @BOAT_6758
Camera.AttachToVehicleLookAtVehicle(46@, 10.0, 10.0, 0.0, 37@, 0.0, SwitchType.JumpCut)
return 

:BOAT_6758
gosub @BOAT_33310
Text.PrintHelp('BOAT_H2')
Player.SetControl($player1, True)
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_6894
185@, 186@, 187@ = Car.GetCoordinates(37@)
198@, 199@, 200@ = Object.GetCoordinates(56@)
195@, 196@, 197@ = Object.GetCoordinates(57@)
52@ = Blip.AddForObject(56@)
51@ = Blip.AddForObject(57@)
Blip.ChangeColor(52@, BlipColor.Yellow)
Blip.ChangeColor(51@, BlipColor.Yellow)
53@ = Blip.AddForObject(58@)
54@ = Blip.AddForObject(59@)
gosub @BOAT_33755

:BOAT_6894
35@ = 0

:BOAT_6901
wait 0
if 
  35@ == 0
goto_if_false @BOAT_6937
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 32000)
35@ = 1

:BOAT_6937
if 
  35@ == 1
goto_if_false @BOAT_6977
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @BOAT_6977
35@ = 2

:BOAT_6977
if 
  not Car.IsDead(46@)
goto_if_false @BOAT_7067
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_7067
185@, 186@, 187@ = Car.GetCoordinates(37@)
185@ -= 150.0
186@ -= 150.0
Heli.GotoCoords(46@, 185@, 186@, 187@, 200.0, 200.0)

:BOAT_7067
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BOAT_7098
164@ = 2
goto @BOAT_10859

:BOAT_7098
gosub @BOAT_20354
if 
  164@ == 1
goto_if_false @BOAT_7130
goto @BOAT_37293

:BOAT_7130
if 
  160@ == 0
goto_if_false @BOAT_7264
Text.PrintNow('BOAT_C1', 4000, 1)
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @BOAT_7264
World.SyncWater
set_lvar_int_to_lvar_int 208@ = 220@
set_lvar_int_to_lvar_int 207@ = 219@
set_lvar_int_to_lvar_int 206@ = 218@
Sound.AddOneOffSound(198@, 199@, 200@, 65535)
160@ = 5
$boat_which_score_displayed = 0
Hud.ClearTimer($boat_which_score_displayed)
Hud.DisplayTimerWithString($boat_which_score_displayed, TimerDirection.Up, 'BOAT_T1')

:BOAT_7264
if 
  160@ > 0
goto_if_false @BOAT_7310
if 
  $boat_which_score_displayed > 600000
goto_if_false @BOAT_7310
160@ = 99

:BOAT_7310
if 
  160@ == 5
goto_if_false @BOAT_7503
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_7503
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_7503
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
160@ = 10
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(58@)
195@, 196@, 197@ = Object.GetCoordinates(59@)
52@ = Blip.AddForObject(58@)
51@ = Blip.AddForObject(59@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(60@)
54@ = Blip.AddForObject(61@)
gosub @BOAT_33755

:BOAT_7503
if 
  160@ == 10
goto_if_false @BOAT_7696
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_7696
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_7696
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
160@ = 15
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(60@)
195@, 196@, 197@ = Object.GetCoordinates(61@)
52@ = Blip.AddForObject(60@)
51@ = Blip.AddForObject(61@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(62@)
54@ = Blip.AddForObject(63@)
gosub @BOAT_33755

:BOAT_7696
if 
  160@ == 15
goto_if_false @BOAT_7977
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_7977
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_7977
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
160@ = 20
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(62@)
195@, 196@, 197@ = Object.GetCoordinates(63@)
52@ = Blip.AddForObject(62@)
51@ = Blip.AddForObject(63@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(64@)
54@ = Blip.AddForObject(65@)
gosub @BOAT_33755
if 
  not Car.IsDead(44@)
goto_if_false @BOAT_7977
if 
  not Char.IsDead(45@)
goto_if_false @BOAT_7977
if 
  35@ == 2
goto_if_false @BOAT_7943
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:BOAT_7943
Task.CarDriveToCoord(45@, 44@, -2013.476, 1748.499, 0.0, 18.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BOAT_7977
if 
  160@ == 20
goto_if_false @BOAT_8170
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_8170
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_8170
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
160@ = 25
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(64@)
195@, 196@, 197@ = Object.GetCoordinates(65@)
52@ = Blip.AddForObject(64@)
51@ = Blip.AddForObject(65@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(66@)
54@ = Blip.AddForObject(67@)
gosub @BOAT_33755

:BOAT_8170
if 
  160@ == 25
goto_if_false @BOAT_8363
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_8363
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_8363
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
160@ = 30
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(66@)
195@, 196@, 197@ = Object.GetCoordinates(67@)
52@ = Blip.AddForObject(66@)
51@ = Blip.AddForObject(67@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(68@)
54@ = Blip.AddForObject(69@)
gosub @BOAT_33755

:BOAT_8363
if 
  160@ == 30
goto_if_false @BOAT_8556
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_8556
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_8556
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
160@ = 35
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(68@)
195@, 196@, 197@ = Object.GetCoordinates(69@)
52@ = Blip.AddForObject(68@)
51@ = Blip.AddForObject(69@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(70@)
54@ = Blip.AddForObject(71@)
gosub @BOAT_33755

:BOAT_8556
if 
  160@ == 35
goto_if_false @BOAT_8749
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_8749
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_8749
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
160@ = 40
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(70@)
195@, 196@, 197@ = Object.GetCoordinates(71@)
52@ = Blip.AddForObject(70@)
51@ = Blip.AddForObject(71@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(72@)
54@ = Blip.AddForObject(73@)
gosub @BOAT_33755

:BOAT_8749
if 
  160@ == 40
goto_if_false @BOAT_8942
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_8942
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_8942
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
160@ = 45
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(72@)
195@, 196@, 197@ = Object.GetCoordinates(73@)
52@ = Blip.AddForObject(72@)
51@ = Blip.AddForObject(73@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(74@)
54@ = Blip.AddForObject(75@)
gosub @BOAT_33755

:BOAT_8942
if 
  160@ == 45
goto_if_false @BOAT_9135
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_9135
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_9135
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
160@ = 50
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(74@)
195@, 196@, 197@ = Object.GetCoordinates(75@)
52@ = Blip.AddForObject(74@)
51@ = Blip.AddForObject(75@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(76@)
54@ = Blip.AddForObject(77@)
gosub @BOAT_33755

:BOAT_9135
if 
  160@ == 50
goto_if_false @BOAT_9328
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_9328
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_9328
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
160@ = 55
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(76@)
195@, 196@, 197@ = Object.GetCoordinates(77@)
52@ = Blip.AddForObject(76@)
51@ = Blip.AddForObject(77@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(78@)
54@ = Blip.AddForObject(79@)
gosub @BOAT_33755

:BOAT_9328
if 
  160@ == 55
goto_if_false @BOAT_9521
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_9521
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_9521
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
160@ = 60
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(78@)
195@, 196@, 197@ = Object.GetCoordinates(79@)
52@ = Blip.AddForObject(78@)
51@ = Blip.AddForObject(79@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(80@)
54@ = Blip.AddForObject(81@)
gosub @BOAT_33755

:BOAT_9521
if 
  160@ == 60
goto_if_false @BOAT_9802
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_9802
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_9802
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
160@ = 65
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(80@)
195@, 196@, 197@ = Object.GetCoordinates(81@)
52@ = Blip.AddForObject(80@)
51@ = Blip.AddForObject(81@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(82@)
54@ = Blip.AddForObject(83@)
gosub @BOAT_33755
if 
  not Car.IsDead(41@)
goto_if_false @BOAT_9802
if 
  not Char.IsDead(43@)
goto_if_false @BOAT_9802
if 
  35@ == 2
goto_if_false @BOAT_9768
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:BOAT_9768
Task.CarDriveToCoord(43@, 41@, -2763.105, 1954.129, 0.0, 10.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BOAT_9802
if 
  160@ == 65
goto_if_false @BOAT_10083
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_10083
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_10083
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
160@ = 70
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(82@)
195@, 196@, 197@ = Object.GetCoordinates(83@)
52@ = Blip.AddForObject(82@)
51@ = Blip.AddForObject(83@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(56@)
54@ = Blip.AddForObject(57@)
gosub @BOAT_33755
if 
  not Car.IsDead(40@)
goto_if_false @BOAT_10083
if 
  not Char.IsDead(42@)
goto_if_false @BOAT_10083
if 
  35@ == 2
goto_if_false @BOAT_10049
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:BOAT_10049
Task.CarDriveToCoord(42@, 40@, -2763.105, 1954.129, 0.0, 15.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BOAT_10083
if 
  160@ == 70
goto_if_false @BOAT_10267
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_10267
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_10267
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
160@ = 80
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(56@)
195@, 196@, 197@ = Object.GetCoordinates(57@)
52@ = Blip.AddForObject(56@)
51@ = Blip.AddForObject(57@)
Blip.ChangeColor(52@, BlipColor.Yellow)
Blip.ChangeColor(51@, BlipColor.Yellow)
Blip.Remove(53@)
Blip.Remove(54@)

:BOAT_10267
if 
  160@ == 80
goto_if_false @BOAT_10383
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_10383
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_10383
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_33', 1000, 1)
160@ = 99
Blip.Remove(52@)
Blip.Remove(51@)

:BOAT_10383
if 
  160@ == 99
goto_if_false @BOAT_10912
gosub @BOAT_20102
gosub @BOAT_20430
if 
  is_int_var_greater_than_int_lvar $boat_slalom_best_score > 168@
goto_if_false @BOAT_10621
set_lvar_int_to_var_int 169@ = $boat_slalom_best_score
set_var_int_to_lvar_int $boat_slalom_best_score = 168@
167@ = 1
gosub @BOAT_21202
if 
  $boat_alpha == 4
goto_if_false @BOAT_10521
if 
  $boat_slalom_goldachieved == 0
goto_if_false @BOAT_10521
$boat_slalom_goldachieved = 1
$boat_slalom_silverachieved = 1
$boat_slalom_bronzeachieved = 1

:BOAT_10521
if 
  $boat_alpha == 3
goto_if_false @BOAT_10571
if 
  $boat_slalom_silverachieved == 0
goto_if_false @BOAT_10571
$boat_slalom_silverachieved = 1
$boat_slalom_bronzeachieved = 1

:BOAT_10571
if 
  $boat_alpha == 2
goto_if_false @BOAT_10614
if 
  $boat_slalom_bronzeachieved == 0
goto_if_false @BOAT_10614
$boat_slalom_bronzeachieved = 1

:BOAT_10614
goto @BOAT_10628

:BOAT_10621
$boat_alpha = 0

:BOAT_10628
if 
  $boat_which_missions_are_open_flag == 3
goto_if_false @BOAT_10706
if 
  is_int_lvar_greater_than_int_lvar 217@ > 168@
goto_if_false @BOAT_10706
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1097)
167@ = 2
$boat_which_missions_are_open_flag = 4
164@ = 2

:BOAT_10706
TIMERA = 0

:BOAT_10713
if 
  TIMERA > -1
goto_if_false @BOAT_10859
wait 0
gosub @BOAT_20773
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BOAT_10793
164@ = 2
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1098)
goto @BOAT_10859

:BOAT_10793
gosub @BOAT_21733
gosub @BOAT_20019
if 
  165@ == 1
goto_if_false @BOAT_10852
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1098)
goto @BOAT_10859

:BOAT_10852
goto @BOAT_10713

:BOAT_10859
gosub @BOAT_24832
gosub @BOAT_37227
if 
  164@ == 2
goto_if_false @BOAT_10905
goto @BOAT_1323
goto @BOAT_10912

:BOAT_10905
goto @BOAT_6534

:BOAT_10912
goto @BOAT_6901

:BOAT_10919
if 
  $8188 == 4
goto_if_false @BOAT_12799

:BOAT_10937
gosub @BOAT_33622

:BOAT_10944
Player.SetControl($player1, True)
gosub @BOAT_19806
46@ = Car.Create(497, -3303.627, 2105.29, 200.0)
Char.Delete(47@)
47@ = Char.CreateInsideCar(46@, PedType.Mission1, 210)
Char.ClearTasks(47@)
Heli.SetBladesFullSpeed(46@)
Car.SetCruiseSpeed(46@, 250.0)
Heli.GotoCoords(46@, -2303.627, 2105.29, 200.0, 200.0, 200.0)
37@ = Car.Create(539, -2584.316, 2213.475, 0.0)
Car.ChangeColor(37@, 78, 14)
Car.SetHeading(37@, 250.0)
39@ = Char.CreateInsideCar(37@, PedType.Mission1, 210)
gosub @BOAT_33799
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_11157
Car.SetCoordinates(37@, -2318.049, 2312.302, 10.0)
Car.SetHeading(37@, 174.6078)

:BOAT_11157
if 
  $boat_introcutscene == 0
goto_if_false @BOAT_11207
Camera.AttachToVehicleLookAtVehicle(46@, 10.0, 10.0, 0.0, 37@, 0.0, SwitchType.JumpCut)
return 

:BOAT_11207
gosub @BOAT_33310
Text.PrintHelp('BOAT_H2')
Player.SetControl($player1, True)
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_11308
192@ = 0.0
193@ = 0.0
194@ = 0.0
201@ = 0.0
202@ = 0.0
203@ = 0.0

:BOAT_11308
wait 0
if 
  not Car.IsDead(46@)
goto_if_false @BOAT_11402
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_11402
185@, 186@, 187@ = Car.GetCoordinates(37@)
185@ -= 150.0
186@ -= 150.0
Heli.GotoCoords(46@, 185@, 186@, 187@, 120.0, 120.0)

:BOAT_11402
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BOAT_11433
164@ = 2
goto @BOAT_12739

:BOAT_11433
gosub @BOAT_20354
if 
  164@ == 1
goto_if_false @BOAT_11465
goto @BOAT_37293

:BOAT_11465
if 
  161@ == 0
goto_if_false @BOAT_11670
Text.PrintNow('BOAT_D1', 4000, 1)
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @BOAT_11670
World.SyncWater
set_lvar_int_to_lvar_int 208@ = 224@
set_lvar_int_to_lvar_int 207@ = 223@
set_lvar_int_to_lvar_int 206@ = 222@
Hud.ClearTimer($boat_which_score_displayed)
$boat_which_score_displayed = 46000
161@ = 1
Hud.DisplayTimerWithString($boat_which_score_displayed, TimerDirection.Down, 'BOAT_T1')
Blip.Remove(52@)
Blip.Remove(51@)
52@ = Blip.AddForObject(56@)
51@ = Blip.AddForObject(57@)
Blip.ChangeColor(52@, BlipColor.Yellow)
Blip.ChangeColor(51@, BlipColor.Yellow)
198@, 199@, 200@ = Object.GetCoordinates(56@)
195@, 196@, 197@ = Object.GetCoordinates(57@)
Sound.AddOneOffSound(198@, 199@, 200@, 65535)

:BOAT_11670
if 
  161@ == 1
goto_if_false @BOAT_11823
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_11823
if 
  Char.IsInAngledAreaInCar3D($scplayer, 198@, 199@, 1.0, 195@, 196@, 3.0, 10.0, False)
goto_if_false @BOAT_11823
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Blip.Remove(52@)
Blip.Remove(51@)
49@ = Car.GetSpeed(37@)
161@ = 2
198@, 199@, 200@ = Object.GetCoordinates(58@)
195@, 196@, 197@ = Object.GetCoordinates(59@)
TIMERB = 0

:BOAT_11823
if 
  161@ == 2
goto_if_false @BOAT_12023
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_12023
if 
  TIMERB > 1000
goto_if_false @BOAT_12023
192@, 193@, 194@ = Car.GetCoordinates(37@)
if 
  1.0 > 194@
goto_if_false @BOAT_12023
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 600.0, False)
goto_if_false @BOAT_11974
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
161@ = 3
TIMERB = 0

:BOAT_11974
if 
  not Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 600.0, False)
goto_if_false @BOAT_12023
161@ = 4
TIMERB = 0

:BOAT_12023
if 
  161@ == 3
goto_if_false @BOAT_12109
201@, 202@, 203@ = Object.GetCoordinates(106@)
243@ = Math.GetDistanceBetweenCoords2D(201@, 202@, 192@, 193@)

:BOAT_12072
if 
  1000 > TIMERB
goto_if_false @BOAT_12102
wait 0
goto @BOAT_12072

:BOAT_12102
161@ = 99

:BOAT_12109
if 
  161@ == 4
goto_if_false @BOAT_12174

:BOAT_12127
if 
  1000 > TIMERB
goto_if_false @BOAT_12157
wait 0
goto @BOAT_12127

:BOAT_12157
243@ = 0.0
161@ = 99

:BOAT_12174
if 
  161@ > 0
goto_if_false @BOAT_12247
if 
  1 > $boat_which_score_displayed
goto_if_false @BOAT_12247
Text.ClearPrints
Text.PrintNow('BOAT_34', 4000, 1)
161@ = 99
wait 3000
goto @BOAT_12739

:BOAT_12247
if 
  161@ == 99
goto_if_false @BOAT_12792
gosub @BOAT_20102
gosub @BOAT_20430
if or
  is_int_lvar_greater_than_int_var 168@ > $boat_skijump_best_score
  is_int_lvar_greater_than_int_var 168@ > $boat_skijump_best_score
goto_if_false @BOAT_12493
set_lvar_int_to_var_int 169@ = $boat_skijump_best_score
set_var_int_to_lvar_int $boat_skijump_best_score = 168@
167@ = 1
gosub @BOAT_21202
if 
  $boat_alpha == 4
goto_if_false @BOAT_12393
if 
  $boat_skijump_goldachieved == 0
goto_if_false @BOAT_12393
$boat_skijump_goldachieved = 1
$boat_skijump_silverachieved = 1
$boat_skijump_bronzeachieved = 1

:BOAT_12393
if 
  $boat_alpha == 3
goto_if_false @BOAT_12443
if 
  $boat_skijump_silverachieved == 0
goto_if_false @BOAT_12443
$boat_skijump_silverachieved = 1
$boat_skijump_bronzeachieved = 1

:BOAT_12443
if 
  $boat_alpha == 2
goto_if_false @BOAT_12486
if 
  $boat_skijump_bronzeachieved == 0
goto_if_false @BOAT_12486
$boat_skijump_bronzeachieved = 1

:BOAT_12486
goto @BOAT_12500

:BOAT_12493
$boat_alpha = 0

:BOAT_12500
if 
  $boat_which_missions_are_open_flag == 4
goto_if_false @BOAT_12586
if or
  is_int_lvar_greater_than_int_lvar 168@ > 221@
  is_int_lvar_equal_to_int_lvar 168@ == 221@
goto_if_false @BOAT_12586
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1097)
167@ = 2
$boat_which_missions_are_open_flag = 5
164@ = 2

:BOAT_12586
TIMERA = 0

:BOAT_12593
if 
  TIMERA > -1
goto_if_false @BOAT_12739
wait 0
gosub @BOAT_20773
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BOAT_12673
164@ = 2
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1098)
goto @BOAT_12739

:BOAT_12673
gosub @BOAT_21733
gosub @BOAT_20019
if 
  165@ == 1
goto_if_false @BOAT_12732
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1098)
goto @BOAT_12739

:BOAT_12732
goto @BOAT_12593

:BOAT_12739
gosub @BOAT_24832
gosub @BOAT_37227
if 
  164@ == 2
goto_if_false @BOAT_12785
goto @BOAT_1323
goto @BOAT_12792

:BOAT_12785
goto @BOAT_10937

:BOAT_12792
goto @BOAT_11308

:BOAT_12799
if 
  $8188 == 5
goto_if_false @BOAT_19806

:BOAT_12817
gosub @BOAT_33622

:BOAT_12824
Player.SetControl($player1, True)
gosub @BOAT_19806
46@ = Car.Create(497, -2303.627, 2105.29, 200.0)
Char.Delete(47@)
47@ = Char.CreateInsideCar(46@, PedType.Mission1, 210)
Char.ClearTasks(47@)
Heli.SetBladesFullSpeed(46@)
Car.SetCruiseSpeed(46@, 250.0)
Heli.GotoCoords(46@, -2303.627, 2105.29, 200.0, 200.0, 200.0)
37@ = Car.Create(539, -2014.267, 2365.429, 6.0509)
Car.ChangeColor(37@, 6, 2)
Car.SetHeading(37@, 111.0)
39@ = Char.CreateInsideCar(37@, PedType.Mission1, 210)
gosub @BOAT_33799
if 
  $boat_introcutscene == 0
goto_if_false @BOAT_13041
Camera.AttachToVehicleLookAtVehicle(46@, 10.0, 10.0, 0.0, 37@, 0.0, SwitchType.JumpCut)
return 

:BOAT_13041
gosub @BOAT_33310
Text.PrintHelp('BOAT_H2')
Player.SetControl($player1, True)
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_13170
185@, 186@, 187@ = Car.GetCoordinates(37@)
198@, 199@, 200@ = Object.GetCoordinates(56@)
195@, 196@, 197@ = Object.GetCoordinates(57@)
52@ = Blip.AddForObject(56@)
51@ = Blip.AddForObject(57@)
53@ = Blip.AddForObject(58@)
54@ = Blip.AddForObject(59@)
gosub @BOAT_33755
Car.FreezePosition(37@, True)

:BOAT_13170
35@ = 0

:BOAT_13177
wait 0
if 
  35@ == 0
goto_if_false @BOAT_13213
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 32000)
35@ = 1

:BOAT_13213
if 
  35@ == 1
goto_if_false @BOAT_13253
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @BOAT_13253
35@ = 2

:BOAT_13253
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @BOAT_13275
162@ = 99

:BOAT_13275
if 
  not Car.IsDead(46@)
goto_if_false @BOAT_13365
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_13365
185@, 186@, 187@ = Car.GetCoordinates(37@)
185@ -= 150.0
186@ -= 150.0
Heli.GotoCoords(46@, 185@, 186@, 187@, 200.0, 200.0)

:BOAT_13365
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BOAT_13396
164@ = 2
goto @BOAT_19612

:BOAT_13396
gosub @BOAT_20354
if 
  164@ == 1
goto_if_false @BOAT_13428
goto @BOAT_37293

:BOAT_13428
if 
  162@ == 0
goto_if_false @BOAT_13569
Text.PrintNow('BOAT_C1', 4000, 1)
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @BOAT_13569
World.SyncWater
set_lvar_int_to_lvar_int 208@ = 228@
set_lvar_int_to_lvar_int 207@ = 227@
set_lvar_int_to_lvar_int 206@ = 226@
Sound.AddOneOffSound(198@, 199@, 200@, 65535)
162@ = 5
$boat_which_score_displayed = 0
Hud.ClearTimer($boat_which_score_displayed)
Hud.DisplayTimerWithString($boat_which_score_displayed, TimerDirection.Up, 'BOAT_T1')
Car.FreezePosition(37@, False)

:BOAT_13569
if 
  162@ > 0
goto_if_false @BOAT_13615
if 
  $boat_which_score_displayed > 600000
goto_if_false @BOAT_13615
162@ = 99

:BOAT_13615
if 
  162@ == 5
goto_if_false @BOAT_13808
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_13808
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_13808
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 10
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(58@)
195@, 196@, 197@ = Object.GetCoordinates(59@)
52@ = Blip.AddForObject(58@)
51@ = Blip.AddForObject(59@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(60@)
54@ = Blip.AddForObject(61@)
gosub @BOAT_33755

:BOAT_13808
if 
  162@ == 10
goto_if_false @BOAT_14001
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_14001
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_14001
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 15
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(60@)
195@, 196@, 197@ = Object.GetCoordinates(61@)
52@ = Blip.AddForObject(60@)
51@ = Blip.AddForObject(61@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(62@)
54@ = Blip.AddForObject(63@)
gosub @BOAT_33755

:BOAT_14001
if 
  162@ == 15
goto_if_false @BOAT_14194
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_14194
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_14194
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 20
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(62@)
195@, 196@, 197@ = Object.GetCoordinates(63@)
52@ = Blip.AddForObject(62@)
51@ = Blip.AddForObject(63@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(64@)
54@ = Blip.AddForObject(65@)
gosub @BOAT_33755

:BOAT_14194
if 
  162@ == 20
goto_if_false @BOAT_14387
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_14387
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_14387
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 25
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(64@)
195@, 196@, 197@ = Object.GetCoordinates(65@)
52@ = Blip.AddForObject(64@)
51@ = Blip.AddForObject(65@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(66@)
54@ = Blip.AddForObject(67@)
gosub @BOAT_33755

:BOAT_14387
if 
  162@ == 25
goto_if_false @BOAT_14580
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_14580
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_14580
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 30
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(66@)
195@, 196@, 197@ = Object.GetCoordinates(67@)
52@ = Blip.AddForObject(66@)
51@ = Blip.AddForObject(67@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(68@)
54@ = Blip.AddForObject(69@)
gosub @BOAT_33755

:BOAT_14580
if 
  162@ == 30
goto_if_false @BOAT_14773
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_14773
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_14773
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 35
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(68@)
195@, 196@, 197@ = Object.GetCoordinates(69@)
52@ = Blip.AddForObject(68@)
51@ = Blip.AddForObject(69@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(70@)
54@ = Blip.AddForObject(71@)
gosub @BOAT_33755

:BOAT_14773
if 
  162@ == 35
goto_if_false @BOAT_14966
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_14966
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_14966
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 40
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(70@)
195@, 196@, 197@ = Object.GetCoordinates(71@)
52@ = Blip.AddForObject(70@)
51@ = Blip.AddForObject(71@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(72@)
54@ = Blip.AddForObject(73@)
gosub @BOAT_33755

:BOAT_14966
if 
  162@ == 40
goto_if_false @BOAT_15159
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_15159
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_15159
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 45
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(72@)
195@, 196@, 197@ = Object.GetCoordinates(73@)
52@ = Blip.AddForObject(72@)
51@ = Blip.AddForObject(73@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(74@)
54@ = Blip.AddForObject(75@)
gosub @BOAT_33755

:BOAT_15159
if 
  162@ == 45
goto_if_false @BOAT_15352
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_15352
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_15352
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 50
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(74@)
195@, 196@, 197@ = Object.GetCoordinates(75@)
52@ = Blip.AddForObject(74@)
51@ = Blip.AddForObject(75@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(76@)
54@ = Blip.AddForObject(77@)
gosub @BOAT_33755

:BOAT_15352
if 
  162@ == 50
goto_if_false @BOAT_15545
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_15545
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_15545
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 55
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(76@)
195@, 196@, 197@ = Object.GetCoordinates(77@)
52@ = Blip.AddForObject(76@)
51@ = Blip.AddForObject(77@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(78@)
54@ = Blip.AddForObject(79@)
gosub @BOAT_33755

:BOAT_15545
if 
  162@ == 55
goto_if_false @BOAT_15738
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_15738
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_15738
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 60
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(78@)
195@, 196@, 197@ = Object.GetCoordinates(79@)
52@ = Blip.AddForObject(78@)
51@ = Blip.AddForObject(79@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(80@)
54@ = Blip.AddForObject(81@)
gosub @BOAT_33755

:BOAT_15738
if 
  162@ == 60
goto_if_false @BOAT_16019
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_16019
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_16019
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 65
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(80@)
195@, 196@, 197@ = Object.GetCoordinates(81@)
52@ = Blip.AddForObject(80@)
51@ = Blip.AddForObject(81@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(82@)
54@ = Blip.AddForObject(83@)
gosub @BOAT_33755
if 
  not Car.IsDead(41@)
goto_if_false @BOAT_16019
if 
  not Char.IsDead(43@)
goto_if_false @BOAT_16019
if 
  35@ == 2
goto_if_false @BOAT_15985
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:BOAT_15985
Task.CarDriveToCoord(43@, 41@, -2763.105, 1954.129, 0.0, 10.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BOAT_16019
if 
  162@ == 65
goto_if_false @BOAT_16300
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_16300
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_16300
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 70
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(82@)
195@, 196@, 197@ = Object.GetCoordinates(83@)
52@ = Blip.AddForObject(82@)
51@ = Blip.AddForObject(83@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(84@)
54@ = Blip.AddForObject(85@)
gosub @BOAT_33755
if 
  not Car.IsDead(40@)
goto_if_false @BOAT_16300
if 
  not Char.IsDead(42@)
goto_if_false @BOAT_16300
if 
  35@ == 2
goto_if_false @BOAT_16266
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:BOAT_16266
Task.CarDriveToCoord(42@, 40@, -2763.105, 1954.129, 0.0, 15.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BOAT_16300
if 
  162@ == 70
goto_if_false @BOAT_16559
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_16559
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_16559
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 75
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(84@)
195@, 196@, 197@ = Object.GetCoordinates(85@)
52@ = Blip.AddForObject(84@)
51@ = Blip.AddForObject(85@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(86@)
54@ = Blip.AddForObject(87@)
gosub @BOAT_33755
if 
  not Car.IsDead(40@)
goto_if_false @BOAT_16559
if 
  not Char.IsDead(42@)
goto_if_false @BOAT_16559
Task.CarDriveToCoord(42@, 40@, -2763.105, 1954.129, 0.0, 15.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BOAT_16559
if 
  162@ == 75
goto_if_false @BOAT_16840
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_16840
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_16840
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 80
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(86@)
195@, 196@, 197@ = Object.GetCoordinates(87@)
52@ = Blip.AddForObject(86@)
51@ = Blip.AddForObject(87@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(88@)
54@ = Blip.AddForObject(89@)
gosub @BOAT_33755
if 
  not Car.IsDead(40@)
goto_if_false @BOAT_16840
if 
  not Char.IsDead(42@)
goto_if_false @BOAT_16840
if 
  35@ == 2
goto_if_false @BOAT_16806
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:BOAT_16806
Task.CarDriveToCoord(42@, 40@, -2763.105, 1954.129, 0.0, 15.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BOAT_16840
if 
  162@ == 80
goto_if_false @BOAT_17099
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_17099
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_17099
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 82
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(88@)
195@, 196@, 197@ = Object.GetCoordinates(89@)
52@ = Blip.AddForObject(88@)
51@ = Blip.AddForObject(89@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(90@)
54@ = Blip.AddForObject(91@)
gosub @BOAT_33755
if 
  not Car.IsDead(40@)
goto_if_false @BOAT_17099
if 
  not Char.IsDead(42@)
goto_if_false @BOAT_17099
Task.CarDriveToCoord(42@, 40@, -2763.105, 1954.129, 0.0, 15.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BOAT_17099
if 
  162@ == 82
goto_if_false @BOAT_17380
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_17380
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_17380
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 84
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(90@)
195@, 196@, 197@ = Object.GetCoordinates(91@)
52@ = Blip.AddForObject(90@)
51@ = Blip.AddForObject(91@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(92@)
54@ = Blip.AddForObject(93@)
gosub @BOAT_33755
if 
  not Car.IsDead(40@)
goto_if_false @BOAT_17380
if 
  not Char.IsDead(42@)
goto_if_false @BOAT_17380
if 
  35@ == 2
goto_if_false @BOAT_17346
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:BOAT_17346
Task.CarDriveToCoord(42@, 40@, -2763.105, 1954.129, 0.0, 15.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BOAT_17380
if 
  162@ == 84
goto_if_false @BOAT_17639
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_17639
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_17639
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 86
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(92@)
195@, 196@, 197@ = Object.GetCoordinates(93@)
52@ = Blip.AddForObject(92@)
51@ = Blip.AddForObject(93@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(94@)
54@ = Blip.AddForObject(95@)
gosub @BOAT_33755
if 
  not Car.IsDead(40@)
goto_if_false @BOAT_17639
if 
  not Char.IsDead(42@)
goto_if_false @BOAT_17639
Task.CarDriveToCoord(42@, 40@, -2763.105, 1954.129, 0.0, 15.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BOAT_17639
if 
  162@ == 86
goto_if_false @BOAT_17898
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_17898
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_17898
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 88
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(94@)
195@, 196@, 197@ = Object.GetCoordinates(95@)
52@ = Blip.AddForObject(94@)
51@ = Blip.AddForObject(95@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(96@)
54@ = Blip.AddForObject(97@)
gosub @BOAT_33755
if 
  not Car.IsDead(40@)
goto_if_false @BOAT_17898
if 
  not Char.IsDead(42@)
goto_if_false @BOAT_17898
Task.CarDriveToCoord(42@, 40@, -2763.105, 1954.129, 0.0, 15.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BOAT_17898
if 
  162@ == 88
goto_if_false @BOAT_18157
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_18157
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_18157
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 90
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(96@)
195@, 196@, 197@ = Object.GetCoordinates(97@)
52@ = Blip.AddForObject(96@)
51@ = Blip.AddForObject(97@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(98@)
54@ = Blip.AddForObject(99@)
gosub @BOAT_33755
if 
  not Car.IsDead(40@)
goto_if_false @BOAT_18157
if 
  not Char.IsDead(42@)
goto_if_false @BOAT_18157
Task.CarDriveToCoord(42@, 40@, -2763.105, 1954.129, 0.0, 15.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BOAT_18157
if 
  162@ == 90
goto_if_false @BOAT_18334
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_18334
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_18334
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 91
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(98@)
195@, 196@, 197@ = Object.GetCoordinates(99@)
52@ = Blip.AddForObject(98@)
51@ = Blip.AddForObject(99@)
Blip.Remove(53@)
Blip.Remove(54@)
gosub @BOAT_33755

:BOAT_18334
if 
  162@ == 91
goto_if_false @BOAT_18450
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_18450
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_18450
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_33', 1000, 1)
162@ = 99
Blip.Remove(52@)
Blip.Remove(51@)

:BOAT_18450
if 
  162@ == 92
goto_if_false @BOAT_18643
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_18643
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_18643
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 93
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(102@)
195@, 196@, 197@ = Object.GetCoordinates(103@)
52@ = Blip.AddForObject(102@)
51@ = Blip.AddForObject(103@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(104@)
54@ = Blip.AddForObject(105@)
gosub @BOAT_33755

:BOAT_18643
if 
  162@ == 93
goto_if_false @BOAT_18836
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_18836
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_18836
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 94
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(104@)
195@, 196@, 197@ = Object.GetCoordinates(105@)
52@ = Blip.AddForObject(104@)
51@ = Blip.AddForObject(105@)
Blip.Remove(53@)
Blip.Remove(54@)
53@ = Blip.AddForObject(56@)
54@ = Blip.AddForObject(57@)
gosub @BOAT_33755

:BOAT_18836
if 
  162@ == 94
goto_if_false @BOAT_19013
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_19013
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_19013
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_31', 1000, 1)
162@ = 97
Blip.Remove(52@)
Blip.Remove(51@)
198@, 199@, 200@ = Object.GetCoordinates(56@)
195@, 196@, 197@ = Object.GetCoordinates(57@)
52@ = Blip.AddForObject(56@)
51@ = Blip.AddForObject(57@)
Blip.Remove(53@)
Blip.Remove(54@)
gosub @BOAT_33755

:BOAT_19013
if 
  162@ == 97
goto_if_false @BOAT_19129
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_19129
if 
  Char.IsInAngledAreaInCar2D($scplayer, 198@, 199@, 195@, 196@, 3.0, False)
goto_if_false @BOAT_19129
Sound.AddOneOffSound(198@, 199@, 200@, 246@)
Text.PrintNow('BOAT_33', 1000, 1)
162@ = 99
Blip.Remove(52@)
Blip.Remove(51@)

:BOAT_19129
if 
  162@ == 99
goto_if_false @BOAT_19799
Blip.Remove(52@)
Blip.Remove(51@)
Blip.Remove(53@)
Blip.Remove(54@)
gosub @BOAT_20102
gosub @BOAT_20430
if 
  is_int_var_greater_than_int_lvar $boat_hover_best_score > 168@
goto_if_false @BOAT_19387
set_lvar_int_to_var_int 169@ = $boat_hover_best_score
set_var_int_to_lvar_int $boat_hover_best_score = 168@
167@ = 1
gosub @BOAT_21202
if 
  $boat_alpha == 4
goto_if_false @BOAT_19287
if 
  $boat_hover_goldachieved == 0
goto_if_false @BOAT_19287
$boat_hover_goldachieved = 1
$boat_hover_silverachieved = 1
$boat_hover_bronzeachieved = 1

:BOAT_19287
if 
  $boat_alpha == 3
goto_if_false @BOAT_19337
if 
  $boat_hover_silverachieved == 0
goto_if_false @BOAT_19337
$boat_hover_silverachieved = 1
$boat_hover_bronzeachieved = 1

:BOAT_19337
if 
  $boat_alpha == 2
goto_if_false @BOAT_19380
if 
  $boat_hover_bronzeachieved == 0
goto_if_false @BOAT_19380
$boat_hover_bronzeachieved = 1

:BOAT_19380
goto @BOAT_19394

:BOAT_19387
$boat_alpha = 0

:BOAT_19394
if 
  $boat_which_missions_are_open_flag == 5
goto_if_false @BOAT_19459
if 
  is_int_lvar_greater_than_int_lvar 225@ > 168@
goto_if_false @BOAT_19459
167@ = 2
$boat_which_missions_are_open_flag = 5
248@ = 1
164@ = 2

:BOAT_19459
TIMERA = 0

:BOAT_19466
if 
  TIMERA > -1
goto_if_false @BOAT_19612
wait 0
gosub @BOAT_20773
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BOAT_19546
164@ = 2
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1098)
goto @BOAT_19612

:BOAT_19546
gosub @BOAT_21733
gosub @BOAT_20019
if 
  165@ == 1
goto_if_false @BOAT_19605
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1098)
goto @BOAT_19612

:BOAT_19605
goto @BOAT_19466

:BOAT_19612
gosub @BOAT_24832
gosub @BOAT_37227
if 
  164@ == 2
goto_if_false @BOAT_19792
if 
  248@ == 1
goto_if_false @BOAT_19778
if 
  $boat_passed_once == 0
goto_if_false @BOAT_19778
Camera.DoFade(1000, Fade.Out)

:BOAT_19687
if 
  Camera.GetFadingStatus
goto_if_false @BOAT_19711
wait 0
goto @BOAT_19687

:BOAT_19711
Char.SetHeading($scplayer, 177@)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Streaming.LoadScene(-2185.335, 2410.409, 3.9752)
Camera.DoFade(2000, Fade.In)

:BOAT_19747
if 
  Camera.GetFadingStatus
goto_if_false @BOAT_19771
wait 0
goto @BOAT_19747

:BOAT_19771
goto @BOAT_37333

:BOAT_19778
goto @BOAT_1323
goto @BOAT_19799

:BOAT_19792
goto @BOAT_12817

:BOAT_19799
goto @BOAT_13177

:BOAT_19806
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
$boat_which_score_displayed = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
48@ = 1000
188@ = 0.0
189@ = 0.0
190@ = 0.0
191@ = 0
204@ = 0
205@ = 0
49@ = 0.0
208@ = 0
207@ = 0
206@ = 0
230@ = 0
192@ = 0.0
193@ = 0.0
194@ = 0.0
return 

:BOAT_20019
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BOAT_20075
if 
  166@ == 1
goto_if_false @BOAT_20068
166@ = 0
165@ = 1

:BOAT_20068
goto @BOAT_20100

:BOAT_20075
if 
  166@ == 0
goto_if_false @BOAT_20100
166@ = 1

:BOAT_20100
return 

:BOAT_20102
Text.ClearHelp
Player.SetControl($player1, False)
if 
  $8188 == 1
goto_if_false @BOAT_20169
Hud.FreezeTimer(True)
Boat.Stop(37@)
Car.SetForwardSpeed(37@, 0.0)
Car.FreezePosition(37@, False)
Boat.Anchor(37@, True)
Car.FreezePosition(37@, False)

:BOAT_20169
if 
  $8188 > 1
goto_if_false @BOAT_20352
Hud.FreezeTimer(True)
TIMERB = 0

:BOAT_20198
if 
  1000 > TIMERB
goto_if_false @BOAT_20228
wait 0
goto @BOAT_20198

:BOAT_20228
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_20352
if 
  $8188 <> 4
goto_if_false @BOAT_20285
if 
  $8188 <> 5
goto_if_false @BOAT_20285
Boat.Stop(37@)

:BOAT_20285
Car.SetForwardSpeed(37@, 0.0)
Car.FreezePosition(37@, False)
if 
  $8188 <> 4
goto_if_false @BOAT_20345
if 
  $8188 <> 5
goto_if_false @BOAT_20345
Boat.Anchor(37@, True)

:BOAT_20345
Car.FreezePosition(37@, False)

:BOAT_20352
return 

:BOAT_20354
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_20421
if 
  163@ == 1
goto_if_false @BOAT_20414
if 
  not Char.IsInCar($scplayer, 37@)
goto_if_false @BOAT_20414
164@ = 1

:BOAT_20414
goto @BOAT_20428

:BOAT_20421
164@ = 1

:BOAT_20428
return 

:BOAT_20430
if 
  $8188 <> 4
goto_if_false @BOAT_20617
set_lvar_int_to_var_int 205@ = $boat_which_score_displayed
230@ = 0
48@ = 1000
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_20495
247@ = Car.GetHealth(37@)

:BOAT_20495
if 
  $8188 == 5
goto_if_false @BOAT_20520
247@ += 120

:BOAT_20520
if 
  1000 > 247@
goto_if_false @BOAT_20547
230@ = 5000

:BOAT_20547
if 
  995 > 247@
goto_if_false @BOAT_20574
230@ = 7000

:BOAT_20574
if 
  990 > 247@
goto_if_false @BOAT_20601
230@ = 10000

:BOAT_20601
set_lvar_int_to_lvar_int 168@ = 205@
add_int_lvar_to_int_lvar 168@ += 230@

:BOAT_20617
if 
  $8188 == 4
goto_if_false @BOAT_20771
set_lvar_int_to_var_int 205@ = $boat_which_score_displayed
230@ = 0
48@ = 1000
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_20682
247@ = Car.GetHealth(37@)

:BOAT_20682
if 
  995 > 247@
goto_if_false @BOAT_20709
230@ = 5000

:BOAT_20709
if 
  990 > 247@
goto_if_false @BOAT_20736
230@ = 10000

:BOAT_20736
if 
  985 > 247@
goto_if_false @BOAT_20763
230@ = 15000

:BOAT_20763
cset_lvar_int_to_lvar_float 168@ =# 243@

:BOAT_20771
return 

:BOAT_20773
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_21200
if 
  191@ == 0
goto_if_false @BOAT_20912
188@, 189@, 190@ = Car.GetCoordinates(37@)
190@ += 5.0
188@, 189@, 190@ = Car.GetOffsetInWorldCoords(37@, 10.0, 0.0, 5.0)
Camera.SetFixedPosition(188@, 189@, 190@, 0.0, 0.0, 0.0)
Camera.PointAtCar(37@, CameraMode.Fixed, SwitchType.Interpolation)
Camera.SetInterpolationParameters(50.0, 2000)
191@ = 1

:BOAT_20912
if 
  TIMERA > 3000
goto_if_false @BOAT_21049
if 
  6000 > TIMERA
goto_if_false @BOAT_21049
if 
  191@ == 1
goto_if_false @BOAT_21049
188@, 189@, 190@ = Car.GetOffsetInWorldCoords(37@, 0.0, 10.0, 5.0)
Camera.SetFixedPosition(188@, 189@, 190@, 0.0, 0.0, 0.0)
Camera.PointAtCar(37@, CameraMode.Fixed, SwitchType.Interpolation)
Camera.SetInterpolationParameters(50.0, 2000)
191@ = 2

:BOAT_21049
if 
  TIMERA > 6000
goto_if_false @BOAT_21167
if 
  191@ == 2
goto_if_false @BOAT_21167
188@, 189@, 190@ = Car.GetOffsetInWorldCoords(37@, -10.0, 0.0, 5.0)
Camera.SetFixedPosition(188@, 189@, 190@, 0.0, 0.0, 0.0)
Camera.PointAtCar(37@, CameraMode.Fixed, SwitchType.Interpolation)
Camera.SetInterpolationParameters(50.0, 2000)
191@ = 3

:BOAT_21167
if 
  TIMERA > 9000
goto_if_false @BOAT_21200
191@ = 1
TIMERA = 0

:BOAT_21200
return 

:BOAT_21202
$boat_alpha = 0
if 
  $8188 <> 4
goto_if_false @BOAT_21458
if 
  is_int_lvar_greater_than_int_lvar 206@ > 168@
goto_if_false @BOAT_21313
if 
  is_int_lvar_greater_than_int_lvar 168@ > 207@
goto_if_false @BOAT_21313
if and
  is_int_lvar_greater_than_int_lvar 206@ > 169@
  is_int_lvar_greater_than_int_lvar 169@ > 207@
goto_if_false @BOAT_21306
$boat_alpha = 0
goto @BOAT_21313

:BOAT_21306
$boat_alpha = 2

:BOAT_21313
if 
  is_int_lvar_greater_than_int_lvar 207@ > 168@
goto_if_false @BOAT_21399
if 
  is_int_lvar_greater_than_int_lvar 168@ > 208@
goto_if_false @BOAT_21399
if and
  is_int_lvar_greater_than_int_lvar 207@ > 169@
  is_int_lvar_greater_than_int_lvar 169@ > 208@
goto_if_false @BOAT_21392
$boat_alpha = 0
goto @BOAT_21399

:BOAT_21392
$boat_alpha = 3

:BOAT_21399
if 
  is_int_lvar_greater_than_int_lvar 208@ > 168@
goto_if_false @BOAT_21458
if 
  is_int_lvar_greater_than_int_lvar 208@ > 169@
goto_if_false @BOAT_21451
$boat_alpha = 0
goto @BOAT_21458

:BOAT_21451
$boat_alpha = 4

:BOAT_21458
if 
  $8188 == 4
goto_if_false @BOAT_21731
if or
  is_int_lvar_greater_than_int_lvar 168@ > 206@
  is_int_lvar_equal_to_int_lvar 168@ == 206@
goto_if_false @BOAT_21570
if 
  is_int_lvar_greater_than_int_lvar 207@ > 168@
goto_if_false @BOAT_21570
if and
  is_int_lvar_greater_than_int_lvar 169@ > 206@
  is_int_lvar_greater_than_int_lvar 207@ > 169@
goto_if_false @BOAT_21563
$boat_alpha = 0
goto @BOAT_21570

:BOAT_21563
$boat_alpha = 2

:BOAT_21570
if or
  is_int_lvar_greater_than_int_lvar 168@ > 207@
  is_int_lvar_equal_to_int_lvar 168@ == 207@
goto_if_false @BOAT_21664
if 
  is_int_lvar_greater_than_int_lvar 208@ > 168@
goto_if_false @BOAT_21664
if and
  is_int_lvar_greater_than_int_lvar 169@ > 207@
  is_int_lvar_greater_than_int_lvar 208@ > 169@
goto_if_false @BOAT_21657
$boat_alpha = 0
goto @BOAT_21664

:BOAT_21657
$boat_alpha = 3

:BOAT_21664
if or
  is_int_lvar_greater_than_int_lvar 168@ > 208@
  is_int_lvar_equal_to_int_lvar 168@ == 208@
goto_if_false @BOAT_21731
if 
  is_int_lvar_greater_than_int_lvar 169@ > 208@
goto_if_false @BOAT_21724
$boat_alpha = 0
goto @BOAT_21731

:BOAT_21724
$boat_alpha = 4

:BOAT_21731
return 

:BOAT_21733
Hud.Display(False)
Hud.DisplayRadar(False)
if 
  2 > $boat_alpha
goto_if_false @BOAT_21864
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_21824
Hud.DrawWindow(122.0, 240.0, 520.0, 400.0, 'BOAT_75', 3)
goto @BOAT_21857

:BOAT_21824
Hud.DrawWindow(152.0, 240.0, 490.0, 400.0, 'BOAT_75', 3)

:BOAT_21857
goto @BOAT_21962

:BOAT_21864
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_21929
Hud.DrawWindow(122.0, 220.0, 520.0, 400.0, 'DUMMY', 3)
goto @BOAT_21962

:BOAT_21929
Hud.DrawWindow(152.0, 220.0, 490.0, 400.0, 'DUMMY', 3)

:BOAT_21962
gosub @BOAT_33074
gosub @BOAT_33074
if 
  48@ > 0
goto_if_false @BOAT_24237
Text.ClearPrints
gosub @BOAT_33074
Text.SetBackground(False)
170@, 171@, 172@, 173@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(170@, 171@, 172@, 173@)
238@ = 0.0
cset_lvar_float_to_lvar_int 238@ =# 205@
238@ /= 1000.0
if 
  $8188 <> 4
goto_if_false @BOAT_22167
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_22141
Text.DisplayWithFloat(145.0, 275.0, 'BOAT_7', 238@, 2)
goto @BOAT_22167

:BOAT_22141
Text.DisplayWithFloat(180.0, 275.0, 'BOAT_7', 238@, 2)

:BOAT_22167
gosub @BOAT_33074
170@, 171@, 172@, 173@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(170@, 171@, 172@, 173@)
237@ = 0.0
cset_lvar_float_to_lvar_int 237@ =# 230@
237@ /= 1000.0
if 
  $8188 <> 4
goto_if_false @BOAT_22334
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_22308
Text.DisplayWithFloat(145.0, 295.0, 'BOAT_9', 237@, 2)
goto @BOAT_22334

:BOAT_22308
Text.DisplayWithFloat(180.0, 295.0, 'BOAT_9', 237@, 2)

:BOAT_22334
gosub @BOAT_33074
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_22403
170@, 171@, 172@, 173@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(170@, 171@, 172@, 173@)
goto @BOAT_22433

:BOAT_22403
170@, 171@, 172@, 173@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(170@, 171@, 172@, 173@)

:BOAT_22433
239@ = 0.0
cset_lvar_float_to_lvar_int 239@ =# 168@
239@ /= 1000.0
if 
  $8188 <> 4
goto_if_false @BOAT_22563
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_22537
Text.DisplayWithFloat(145.0, 315.0, 'BOAT_10', 239@, 2)
goto @BOAT_22563

:BOAT_22537
Text.DisplayWithFloat(180.0, 315.0, 'BOAT_10', 239@, 2)

:BOAT_22563
if 
  $8188 == 4
goto_if_false @BOAT_22847
if 
  243@ > 0.0
goto_if_false @BOAT_22773
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_22660
Text.DisplayWithFloat(145.0, 315.0, 'BOAT_11', 243@, 2)
goto @BOAT_22766

:BOAT_22660
if 
  249@ == 3
goto_if_false @BOAT_22704
Text.DisplayWithFloat(175.0, 315.0, 'BOAT_11', 243@, 2)

:BOAT_22704
if 
  249@ <> 3
goto_if_false @BOAT_22766
if 
  249@ <> 4
goto_if_false @BOAT_22766
Text.DisplayWithFloat(180.0, 315.0, 'BOAT_11', 243@, 2)

:BOAT_22766
goto @BOAT_22847

:BOAT_22773
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_22826
Text.Display(145.0, 315.0, 'BOAT_12')
goto @BOAT_22847

:BOAT_22826
Text.Display(180.0, 315.0, 'BOAT_12')

:BOAT_22847
gosub @BOAT_33074
Text.SetColor(255, 255, 255, 255)
238@ = 0.0
cset_lvar_float_to_lvar_int 238@ =# 205@
238@ /= 1000.0
if 
  $8188 <> 4
goto_if_false @BOAT_22998
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_22972
Text.DisplayWithFloat(425.0, 275.0, 'BOAT_77', 238@, 2)
goto @BOAT_22998

:BOAT_22972
Text.DisplayWithFloat(390.0, 275.0, 'BOAT_77', 238@, 2)

:BOAT_22998
gosub @BOAT_33074
170@, 171@, 172@, 173@ = Hud.GetColor(0)
Text.SetColor(170@, 171@, 172@, 173@)
237@ = 0.0
cset_lvar_float_to_lvar_int 237@ =# 230@
237@ /= 1000.0
if 
  237@ > 0.0
goto_if_false @BOAT_23121
170@, 171@, 172@, 173@ = Hud.GetColor(0)
Text.SetColor(170@, 171@, 172@, 173@)
goto @BOAT_23151

:BOAT_23121
170@, 171@, 172@, 173@ = Hud.GetColor(HudObject.Radar)
Text.SetColor(170@, 171@, 172@, 173@)

:BOAT_23151
if 
  $8188 <> 4
goto_if_false @BOAT_23253
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_23227
Text.DisplayWithFloat(425.0, 295.0, 'BOAT_77', 237@, 2)
goto @BOAT_23253

:BOAT_23227
Text.DisplayWithFloat(390.0, 295.0, 'BOAT_77', 237@, 2)

:BOAT_23253
gosub @BOAT_33074
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_23306
Text.SetColor(255, 255, 255, 255)
goto @BOAT_23320

:BOAT_23306
Text.SetColor(255, 255, 255, 255)

:BOAT_23320
239@ = 0.0
cset_lvar_float_to_lvar_int 239@ =# 168@
239@ /= 1000.0
if 
  $8188 <> 4
goto_if_false @BOAT_23450
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_23424
Text.DisplayWithFloat(425.0, 315.0, 'BOAT_77', 239@, 2)
goto @BOAT_23450

:BOAT_23424
Text.DisplayWithFloat(390.0, 315.0, 'BOAT_77', 239@, 2)

:BOAT_23450
if 
  $8188 == 4
goto_if_false @BOAT_23580
if 
  243@ > 0.0
goto_if_false @BOAT_23580
gosub @BOAT_37286
if 
  249@ == 4
goto_if_false @BOAT_23547
Text.DisplayWithFloat(425.0, 315.0, 'BOAT_80', 243@, 2)
goto @BOAT_23573

:BOAT_23547
Text.DisplayWithFloat(390.0, 315.0, 'BOAT_80', 243@, 2)

:BOAT_23573
goto @BOAT_23580

:BOAT_23580
Text.SetScale(1.45, 2.0)
170@, 171@, 172@, 173@ = Hud.GetColor(6)
Text.SetColor(170@, 171@, 172@, 173@)
Text.Display(180.0, 342.0, 'BOAT_74')
Text.SetScale(1.45, 2.0)
Text.Display(180.0, 362.0, 'BOAT_73')
gosub @BOAT_33074
Text.SetScale(0.52, 1.45)
170@, 171@, 172@, 173@ = Hud.GetColor(6)
Text.SetColor(170@, 171@, 172@, 173@)
Text.Display(215.0, 345.0, 'BOAT_76')
gosub @BOAT_33074
170@, 171@, 172@, 173@ = Hud.GetColor(6)
Text.SetColor(170@, 171@, 172@, 173@)
Text.Display(215.0, 365.0, 'BOAT_53')
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_23883
gosub @BOAT_33190
Text.SetScale(1.0, 3.4)
Text.SetColor(255, 255, 255, 255)
Text.Display(323.0, 110.0, 'BOAT_46')

:BOAT_23883
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_24230
if 
  $boat_alpha > 0
goto_if_false @BOAT_24230
Hud.DrawSprite(4, 250.0, 219.0, -60.0, 60.0, 180, 180, 180, 255)
Hud.DrawSprite(4, 392.0, 219.0, 60.0, 60.0, 180, 180, 180, 255)
if 
  $boat_alpha == 2
goto_if_false @BOAT_24052
Hud.DrawSprite(1, 320.0, 220.0, 110.0, 95.0, 160, 160, 160, 255)

:BOAT_24052
if 
  $boat_alpha == 3
goto_if_false @BOAT_24106
Hud.DrawSprite(2, 320.0, 220.0, 110.0, 95.0, 160, 160, 160, 255)

:BOAT_24106
if 
  $boat_alpha == 4
goto_if_false @BOAT_24160
Hud.DrawSprite(3, 320.0, 220.0, 110.0, 95.0, 160, 160, 160, 255)

:BOAT_24160
gosub @BOAT_33190
Text.SetScale(1.0, 3.4)
170@, 171@, 172@, 173@ = Hud.GetColor(6)
Text.SetColor(170@, 171@, 172@, 173@)
Text.Display(323.0, 65.0, 'BOAT_47')

:BOAT_24230
goto @BOAT_24825

:BOAT_24237
gosub @BOAT_33074
Text.SetColor(134, 155, 184, 255)
238@ = 0.0
cset_lvar_float_to_lvar_int 238@ =# 205@
238@ /= 1000.0
Text.DisplayWithFloat(30.0, 55.0, 'BOAT_7', 238@, 2)
gosub @BOAT_33074
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_24363
Text.SetColor(107, 148, 49, 255)
goto @BOAT_24377

:BOAT_24363
Text.SetColor(134, 155, 184, 255)

:BOAT_24377
239@ = 0.0
cset_lvar_float_to_lvar_int 239@ =# 168@
239@ /= 1000.0
Text.DisplayWithFloat(30.0, 65.0, 'BOAT_10', 239@, 2)
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_24496
gosub @BOAT_33074
Text.SetColor(107, 148, 49, 255)
Text.Display(260.0, 65.0, 'BOAT_46')

:BOAT_24496
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_24825
if 
  $boat_alpha > 0
goto_if_false @BOAT_24825
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, 68.0, 145.0, -60.0, 60.0, 180, 180, 180, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, 210.0, 145.0, 60.0, 60.0, 180, 180, 180, 255)
Hud.SetSpritesDrawBeforeFade(True)
if 
  $boat_alpha == 2
goto_if_false @BOAT_24677
Hud.DrawSprite(1, 138.0, 145.0, 110.0, 95.0, 160, 160, 160, 255)

:BOAT_24677
if 
  $boat_alpha == 3
goto_if_false @BOAT_24731
Hud.DrawSprite(2, 138.0, 145.0, 110.0, 95.0, 160, 160, 160, 255)

:BOAT_24731
if 
  $boat_alpha == 4
goto_if_false @BOAT_24785
Hud.DrawSprite(3, 138.0, 145.0, 110.0, 95.0, 160, 160, 160, 255)

:BOAT_24785
gosub @BOAT_33074
Text.SetColor(107, 148, 49, 255)
Text.Display(260.0, 172.0, 'BOAT_47')

:BOAT_24825
Hud.ClearTimer($boat_which_score_displayed)
return 

:BOAT_24832
Camera.DoFade(500, Fade.Out)

:BOAT_24839
if 
  Camera.GetFadingStatus
goto_if_false @BOAT_24863
wait 0
goto @BOAT_24839

:BOAT_24863
Hud.Display(True)
Hud.DisplayRadar(True)
Text.ClearPrints
Text.ClearHelp
Text.ClearThisBigPrint('BOAT_46')
Text.ClearThisBigPrint('BOAT_47')
Player.ApplyBrakesToCar($player1, False)
Char.ClearTasksImmediately($scplayer)
if 
  164@ == 2
goto_if_false @BOAT_24987
Text.ClearPrints
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BOAT_24966
Char.WarpFromCarToCoord($scplayer, 174@, 175@, 176@)
goto @BOAT_24980

:BOAT_24966
Char.SetCoordinates($scplayer, 174@, 175@, 176@)

:BOAT_24980
goto @BOAT_25038

:BOAT_24987
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BOAT_25024
Char.WarpFromCarToCoord($scplayer, 174@, 175@, 176@)
goto @BOAT_25038

:BOAT_25024
Char.SetCoordinates($scplayer, 174@, 175@, 176@)

:BOAT_25038
wait 0
Car.Delete(37@)
Car.Delete(46@)
Char.Delete(39@)
Blip.Remove(52@)
Blip.Remove(51@)
Blip.Remove(53@)
Blip.Remove(54@)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
wait 0
Hud.ClearTimer($boat_which_score_displayed)
Hud.FreezeTimer(False)
return 

:BOAT_25096
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(8, 320.0, 225.0, 612.0, 438.0, 0, 0, 0, $boat_fade_flag)
if 
  $boat_control_flag == 1
goto_if_false @BOAT_25218
if 
  255 > $boat_fade_flag
goto_if_false @BOAT_25211
$boat_fade_flag += 20
if 
  $boat_fade_flag > 255
goto_if_false @BOAT_25204
$boat_fade_flag = 255

:BOAT_25204
goto @BOAT_25218

:BOAT_25211
$boat_control_flag = 2

:BOAT_25218
if 
  $boat_control_flag == 3
goto_if_false @BOAT_25300
if 
  $boat_fade_flag > 0
goto_if_false @BOAT_25293
$boat_fade_flag -= 5
if 
  0 > $boat_fade_flag
goto_if_false @BOAT_25286
$boat_fade_flag = 0

:BOAT_25286
goto @BOAT_25300

:BOAT_25293
$boat_control_flag = 0

:BOAT_25300
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(8, 320.0, 0.0, 640.0, 197.0, 0, 0, 0, 255)
gosub @BOAT_33190
Text.SetColor(255, 255, 255, 255)
if 
  $8188 == 1
goto_if_false @BOAT_25412
Text.Display(322.0, 31.0, 'BOAT_A')
set_var_int_to_var_int $boat_which_medal_displayed = $boat_accelerate_best_score
gosub @BOAT_26892

:BOAT_25412
if 
  $8188 == 2
goto_if_false @BOAT_25466
Text.Display(322.0, 31.0, 'BOAT_B')
set_var_int_to_var_int $boat_which_medal_displayed = $boat_simplecircuit_best_score
gosub @BOAT_26892

:BOAT_25466
if 
  $8188 == 3
goto_if_false @BOAT_25520
Text.Display(322.0, 31.0, 'BOAT_C')
set_var_int_to_var_int $boat_which_medal_displayed = $boat_slalom_best_score
gosub @BOAT_26892

:BOAT_25520
if 
  $8188 == 4
goto_if_false @BOAT_25574
Text.Display(322.0, 31.0, 'BOAT_D')
set_var_int_to_var_int $boat_which_medal_displayed = $boat_skijump_best_score
gosub @BOAT_26892

:BOAT_25574
if 
  $8188 == 5
goto_if_false @BOAT_25628
Text.Display(322.0, 31.0, 'BOAT_E')
set_var_int_to_var_int $boat_which_medal_displayed = $boat_hover_best_score
gosub @BOAT_26892

:BOAT_25628
gosub @BOAT_33012
170@, 171@, 172@, 173@ = Hud.GetColor(6)
Text.SetColor(170@, 171@, 172@, 173@)
gosub @BOAT_37286
if 
  249@ == 1
goto_if_false @BOAT_25718
Text.Display(96.0, 375.0, 'BOAT_53')
goto @BOAT_25739

:BOAT_25718
Text.Display(105.0, 375.0, 'BOAT_53')

:BOAT_25739
if 
  $boatpb_flag <> 1
goto_if_false @BOAT_26133
gosub @BOAT_33012
170@, 171@, 172@, 173@ = Hud.GetColor(6)
Text.SetColor(170@, 171@, 172@, 173@)
gosub @BOAT_37286
if 
  249@ == 1
goto_if_false @BOAT_25847
Text.Display(96.0, 325.0, 'BOAT_54')
goto @BOAT_25868

:BOAT_25847
Text.Display(105.0, 325.0, 'BOAT_54')

:BOAT_25868
if 
  $boat_which_missions_are_open_flag <> 1
goto_if_false @BOAT_25997
gosub @BOAT_33012
170@, 171@, 172@, 173@ = Hud.GetColor(6)
Text.SetColor(170@, 171@, 172@, 173@)
gosub @BOAT_37286
if 
  249@ == 1
goto_if_false @BOAT_25976
Text.Display(96.0, 350.0, 'BOAT_52')
goto @BOAT_25997

:BOAT_25976
Text.Display(105.0, 350.0, 'BOAT_52')

:BOAT_25997
if 
  $boat_which_missions_are_open_flag == 1
goto_if_false @BOAT_26126
gosub @BOAT_33012
170@, 171@, 172@, 173@ = Hud.GetColor(HudObject.Radar)
Text.SetColor(170@, 171@, 172@, 173@)
gosub @BOAT_37286
if 
  249@ == 1
goto_if_false @BOAT_26105
Text.Display(96.0, 350.0, 'BOAT_52')
goto @BOAT_26126

:BOAT_26105
Text.Display(105.0, 350.0, 'BOAT_52')

:BOAT_26126
goto @BOAT_26244

:BOAT_26133
gosub @BOAT_33012
170@, 171@, 172@, 173@ = Hud.GetColor(6)
Text.SetColor(170@, 171@, 172@, 173@)
gosub @BOAT_37286
if 
  249@ == 1
goto_if_false @BOAT_26223
Text.Display(96.0, 350.0, 'BOAT_52')
goto @BOAT_26244

:BOAT_26223
Text.Display(105.0, 350.0, 'BOAT_52')

:BOAT_26244
gosub @BOAT_33012
Text.SetScale(1.45, 2.0)
Text.SetColor(248, 211, 7, 255)
Text.Display(70.0, 372.0, 'BOAT_73')
if 
  $boatpb_flag <> 1
goto_if_false @BOAT_26568
gosub @BOAT_33012
170@, 171@, 172@, 173@ = Hud.GetColor(6)
Text.SetColor(170@, 171@, 172@, 173@)
Text.SetScale(1.45, 2.0)
Text.Display(70.0, 322.0, 'BOAT_74')
if 
  $boat_which_missions_are_open_flag <> 1
goto_if_false @BOAT_26473
gosub @BOAT_33012
170@, 171@, 172@, 173@ = Hud.GetColor(6)
Text.SetColor(170@, 171@, 172@, 173@)
Text.SetScale(1.45, 2.0)
Text.Display(61.4, 347.0, 'BOAT_72')

:BOAT_26473
if 
  $boat_which_missions_are_open_flag == 1
goto_if_false @BOAT_26561
gosub @BOAT_33012
170@, 171@, 172@, 173@ = Hud.GetColor(6)
Text.SetColor(170@, 171@, 172@, 173@)
Text.SetScale(1.45, 2.0)
Text.Display(61.4, 347.0, 'BOAT_72')

:BOAT_26561
goto @BOAT_26638

:BOAT_26568
gosub @BOAT_33012
170@, 171@, 172@, 173@ = Hud.GetColor(6)
Text.SetColor(170@, 171@, 172@, 173@)
Text.SetScale(1.45, 2.0)
Text.Display(61.4, 347.0, 'BOAT_72')

:BOAT_26638
Text.SetScale(0.52, 1.45)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 160.0, 317.0, 320.0, -224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 480.0, 317.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(9, 160.0, 435.0, 320.0, 17.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(9, 480.0, 435.0, -320.0, 17.0, 150, 150, 150, 255)
return 

:BOAT_26892
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(8, 320.0, 430.0, 640.0, 250.0, 0, 0, 0, 255)
gosub @BOAT_33012
Text.SetRightJustify(False)
170@, 171@, 172@, 173@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(170@, 171@, 172@, 173@)
if 
  $8188 == 1
goto_if_false @BOAT_27713
if 
  is_int_lvar_greater_than_int_var 209@ > $boat_accelerate_best_score
goto_if_false @BOAT_27277
236@ = 0.0
cset_lvar_float_to_var_int 236@ =# $boat_which_medal_displayed
236@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_27270 {caseNum1} 0 {caseLabel1} @BOAT_27105 {caseNum2} 1 {caseLabel2} @BOAT_27138 {caseNum3} 2 {caseLabel3} @BOAT_27171 {caseNum4} 3 {caseLabel4} @BOAT_27204 {caseNum5} 4 {caseLabel5} @BOAT_27237 {caseNum6} -1 {caseLabel6} @BOAT_27270 {caseNum7} -1 {caseLabel7} @BOAT_27270

:BOAT_27105
Text.DisplayWithFloat(217.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_27270

:BOAT_27138
Text.DisplayWithFloat(200.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_27270

:BOAT_27171
Text.DisplayWithFloat(217.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_27270

:BOAT_27204
Text.DisplayWithFloat(187.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_27270

:BOAT_27237
Text.DisplayWithFloat(193.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_27270

:BOAT_27270
goto @BOAT_27571

:BOAT_27277
244@ = 0
231@ = 0.0
cset_lvar_float_to_lvar_int 231@ =# 209@
231@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_27571 {caseNum1} 0 {caseLabel1} @BOAT_27382 {caseNum2} 1 {caseLabel2} @BOAT_27415 {caseNum3} 2 {caseLabel3} @BOAT_27448 {caseNum4} 3 {caseLabel4} @BOAT_27481 {caseNum5} 4 {caseLabel5} @BOAT_27514 {caseNum6} -1 {caseLabel6} @BOAT_27571 {caseNum7} -1 {caseLabel7} @BOAT_27571

:BOAT_27382
Text.DisplayWithFloat(137.0, 75.0, 'BOAT_62', 231@, 1)
goto @BOAT_27571

:BOAT_27415
Text.DisplayWithFloat(77.0, 75.0, 'BOAT_62', 231@, 1)
goto @BOAT_27571

:BOAT_27448
Text.DisplayWithFloat(77.0, 75.0, 'BOAT_62', 231@, 1)
goto @BOAT_27571

:BOAT_27481
Text.DisplayWithFloat(97.0, 75.0, 'BOAT_62', 231@, 1)
goto @BOAT_27571

:BOAT_27514
Text.SetScale(0.45, 1.35)
Text.DisplayWithFloat(93.0, 75.0, 'BOAT_62', 231@, 1)
Text.SetScale(0.52, 1.45)
goto @BOAT_27571

:BOAT_27571
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 210@
goto_if_false @BOAT_27597
$boat_alpha = 1

:BOAT_27597
if 
  is_int_lvar_greater_than_int_var 210@ > $boat_which_medal_displayed
goto_if_false @BOAT_27642
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 211@
goto_if_false @BOAT_27642
$boat_alpha = 2

:BOAT_27642
if 
  is_int_lvar_greater_than_int_var 211@ > $boat_which_medal_displayed
goto_if_false @BOAT_27687
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 212@
goto_if_false @BOAT_27687
$boat_alpha = 3

:BOAT_27687
if 
  is_int_lvar_greater_than_int_var 212@ > $boat_which_medal_displayed
goto_if_false @BOAT_27713
$boat_alpha = 4

:BOAT_27713
if 
  $8188 == 2
goto_if_false @BOAT_28449
if 
  is_int_lvar_greater_than_int_var 213@ > $boat_simplecircuit_best_score
goto_if_false @BOAT_28020
236@ = 0.0
cset_lvar_float_to_var_int 236@ =# $boat_which_medal_displayed
236@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_28013 {caseNum1} 0 {caseLabel1} @BOAT_27848 {caseNum2} 1 {caseLabel2} @BOAT_27881 {caseNum3} 2 {caseLabel3} @BOAT_27914 {caseNum4} 3 {caseLabel4} @BOAT_27947 {caseNum5} 4 {caseLabel5} @BOAT_27980 {caseNum6} -1 {caseLabel6} @BOAT_28013 {caseNum7} -1 {caseLabel7} @BOAT_28013

:BOAT_27848
Text.DisplayWithFloat(217.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_28013

:BOAT_27881
Text.DisplayWithFloat(200.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_28013

:BOAT_27914
Text.DisplayWithFloat(217.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_28013

:BOAT_27947
Text.DisplayWithFloat(187.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_28013

:BOAT_27980
Text.DisplayWithFloat(190.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_28013

:BOAT_28013
goto @BOAT_28307

:BOAT_28020
232@ = 0.0
cset_lvar_float_to_lvar_int 232@ =# 213@
232@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_28307 {caseNum1} 0 {caseLabel1} @BOAT_28118 {caseNum2} 1 {caseLabel2} @BOAT_28151 {caseNum3} 2 {caseLabel3} @BOAT_28184 {caseNum4} 3 {caseLabel4} @BOAT_28217 {caseNum5} 4 {caseLabel5} @BOAT_28250 {caseNum6} -1 {caseLabel6} @BOAT_28307 {caseNum7} -1 {caseLabel7} @BOAT_28307

:BOAT_28118
Text.DisplayWithFloat(137.0, 75.0, 'BOAT_62', 232@, 1)
goto @BOAT_28307

:BOAT_28151
Text.DisplayWithFloat(77.0, 75.0, 'BOAT_62', 232@, 1)
goto @BOAT_28307

:BOAT_28184
Text.DisplayWithFloat(77.0, 75.0, 'BOAT_62', 232@, 1)
goto @BOAT_28307

:BOAT_28217
Text.DisplayWithFloat(97.0, 75.0, 'BOAT_62', 232@, 1)
goto @BOAT_28307

:BOAT_28250
Text.SetScale(0.45, 1.35)
Text.DisplayWithFloat(88.0, 75.0, 'BOAT_62', 232@, 1)
Text.SetScale(0.52, 1.45)
goto @BOAT_28307

:BOAT_28307
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 214@
goto_if_false @BOAT_28333
$boat_alpha = 1

:BOAT_28333
if 
  is_int_lvar_greater_than_int_var 214@ > $boat_which_medal_displayed
goto_if_false @BOAT_28378
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 215@
goto_if_false @BOAT_28378
$boat_alpha = 2

:BOAT_28378
if 
  is_int_lvar_greater_than_int_var 215@ > $boat_which_medal_displayed
goto_if_false @BOAT_28423
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 216@
goto_if_false @BOAT_28423
$boat_alpha = 3

:BOAT_28423
if 
  is_int_lvar_greater_than_int_var 216@ > $boat_which_medal_displayed
goto_if_false @BOAT_28449
$boat_alpha = 4

:BOAT_28449
if 
  $8188 == 3
goto_if_false @BOAT_29195
if 
  is_int_lvar_greater_than_int_var 217@ > $boat_slalom_best_score
goto_if_false @BOAT_28756
236@ = 0.0
cset_lvar_float_to_var_int 236@ =# $boat_which_medal_displayed
236@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_28749 {caseNum1} 0 {caseLabel1} @BOAT_28584 {caseNum2} 1 {caseLabel2} @BOAT_28617 {caseNum3} 2 {caseLabel3} @BOAT_28650 {caseNum4} 3 {caseLabel4} @BOAT_28683 {caseNum5} 4 {caseLabel5} @BOAT_28716 {caseNum6} -1 {caseLabel6} @BOAT_28749 {caseNum7} -1 {caseLabel7} @BOAT_28749

:BOAT_28584
Text.DisplayWithFloat(217.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_28749

:BOAT_28617
Text.DisplayWithFloat(200.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_28749

:BOAT_28650
Text.DisplayWithFloat(217.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_28749

:BOAT_28683
Text.DisplayWithFloat(187.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_28749

:BOAT_28716
Text.DisplayWithFloat(190.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_28749

:BOAT_28749
goto @BOAT_29053

:BOAT_28756
233@ = 0.0
cset_lvar_float_to_lvar_int 233@ =# 217@
233@ /= 1000.0
233@ /= 60.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_29053 {caseNum1} 0 {caseLabel1} @BOAT_28864 {caseNum2} 1 {caseLabel2} @BOAT_28897 {caseNum3} 2 {caseLabel3} @BOAT_28930 {caseNum4} 3 {caseLabel4} @BOAT_28963 {caseNum5} 4 {caseLabel5} @BOAT_28996 {caseNum6} -1 {caseLabel6} @BOAT_29053 {caseNum7} -1 {caseLabel7} @BOAT_29053

:BOAT_28864
Text.DisplayWithFloat(142.0, 75.0, 'BOAT_63', 233@, 1)
goto @BOAT_29053

:BOAT_28897
Text.DisplayWithFloat(87.0, 75.0, 'BOAT_63', 233@, 1)
goto @BOAT_29053

:BOAT_28930
Text.DisplayWithFloat(83.0, 75.0, 'BOAT_63', 233@, 1)
goto @BOAT_29053

:BOAT_28963
Text.DisplayWithFloat(112.0, 75.0, 'BOAT_63', 233@, 1)
goto @BOAT_29053

:BOAT_28996
Text.SetScale(0.45, 1.35)
Text.DisplayWithFloat(103.0, 75.0, 'BOAT_63', 233@, 1)
Text.SetScale(0.52, 1.45)
goto @BOAT_29053

:BOAT_29053
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 218@
goto_if_false @BOAT_29079
$boat_alpha = 1

:BOAT_29079
if 
  is_int_lvar_greater_than_int_var 218@ > $boat_which_medal_displayed
goto_if_false @BOAT_29124
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 219@
goto_if_false @BOAT_29124
$boat_alpha = 2

:BOAT_29124
if 
  is_int_lvar_greater_than_int_var 219@ > $boat_which_medal_displayed
goto_if_false @BOAT_29169
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 220@
goto_if_false @BOAT_29169
$boat_alpha = 3

:BOAT_29169
if 
  is_int_lvar_greater_than_int_var 220@ > $boat_which_medal_displayed
goto_if_false @BOAT_29195
$boat_alpha = 4

:BOAT_29195
if 
  $8188 == 4
goto_if_false @BOAT_29911
if 
  is_int_var_greater_than_int_lvar $boat_skijump_best_score > 221@
goto_if_false @BOAT_29492
236@ = 0.0
cset_lvar_float_to_var_int 236@ =# $boat_which_medal_displayed
236@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_29485 {caseNum1} 0 {caseLabel1} @BOAT_29330 {caseNum2} 1 {caseLabel2} @BOAT_29361 {caseNum3} 2 {caseLabel3} @BOAT_29392 {caseNum4} 3 {caseLabel4} @BOAT_29423 {caseNum5} 4 {caseLabel5} @BOAT_29454 {caseNum6} -1 {caseLabel6} @BOAT_29485 {caseNum7} -1 {caseLabel7} @BOAT_29485

:BOAT_29330
Text.DisplayWithNumber(185.0, 75.0, 'BOAT_60', $boat_skijump_best_score)
goto @BOAT_29485

:BOAT_29361
Text.DisplayWithNumber(167.0, 75.0, 'BOAT_60', $boat_skijump_best_score)
goto @BOAT_29485

:BOAT_29392
Text.DisplayWithNumber(167.0, 75.0, 'BOAT_60', $boat_skijump_best_score)
goto @BOAT_29485

:BOAT_29423
Text.DisplayWithNumber(177.0, 75.0, 'BOAT_60', $boat_skijump_best_score)
goto @BOAT_29485

:BOAT_29454
Text.DisplayWithNumber(160.0, 75.0, 'BOAT_60', $boat_skijump_best_score)
goto @BOAT_29485

:BOAT_29485
goto @BOAT_29745

:BOAT_29492
234@ = 0.0
cset_lvar_float_to_lvar_int 234@ =# 221@
234@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_29745 {caseNum1} 0 {caseLabel1} @BOAT_29590 {caseNum2} 1 {caseLabel2} @BOAT_29621 {caseNum3} 2 {caseLabel3} @BOAT_29652 {caseNum4} 3 {caseLabel4} @BOAT_29683 {caseNum5} 4 {caseLabel5} @BOAT_29714 {caseNum6} -1 {caseLabel6} @BOAT_29745 {caseNum7} -1 {caseLabel7} @BOAT_29745

:BOAT_29590
Text.DisplayWithNumber(153.0, 75.0, 'BOAT_61', 221@)
goto @BOAT_29745

:BOAT_29621
Text.DisplayWithNumber(103.0, 75.0, 'BOAT_61', 221@)
goto @BOAT_29745

:BOAT_29652
Text.DisplayWithNumber(93.0, 75.0, 'BOAT_61', 221@)
goto @BOAT_29745

:BOAT_29683
Text.DisplayWithNumber(123.0, 75.0, 'BOAT_61', 221@)
goto @BOAT_29745

:BOAT_29714
Text.DisplayWithNumber(103.0, 75.0, 'BOAT_61', 221@)
goto @BOAT_29745

:BOAT_29745
if 
  is_int_lvar_greater_than_int_var 222@ > $boat_which_medal_displayed
goto_if_false @BOAT_29771
$boat_alpha = 1

:BOAT_29771
if or
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 222@
  is_int_var_equal_to_int_lvar $boat_which_medal_displayed == 222@
goto_if_false @BOAT_29824
if 
  is_int_lvar_greater_than_int_var 223@ > $boat_which_medal_displayed
goto_if_false @BOAT_29824
$boat_alpha = 2

:BOAT_29824
if or
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 223@
  is_int_var_equal_to_int_lvar $boat_which_medal_displayed == 223@
goto_if_false @BOAT_29877
if 
  is_int_lvar_greater_than_int_var 224@ > $boat_which_medal_displayed
goto_if_false @BOAT_29877
$boat_alpha = 3

:BOAT_29877
if or
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 224@
  is_int_var_equal_to_int_lvar $boat_which_medal_displayed == 224@
goto_if_false @BOAT_29911
$boat_alpha = 4

:BOAT_29911
if 
  $8188 == 5
goto_if_false @BOAT_30657
if 
  is_int_lvar_greater_than_int_var 225@ > $boat_hover_best_score
goto_if_false @BOAT_30218
236@ = 0.0
cset_lvar_float_to_var_int 236@ =# $boat_which_medal_displayed
236@ /= 1000.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_30211 {caseNum1} 0 {caseLabel1} @BOAT_30046 {caseNum2} 1 {caseLabel2} @BOAT_30079 {caseNum3} 2 {caseLabel3} @BOAT_30112 {caseNum4} 3 {caseLabel4} @BOAT_30145 {caseNum5} 4 {caseLabel5} @BOAT_30178 {caseNum6} -1 {caseLabel6} @BOAT_30211 {caseNum7} -1 {caseLabel7} @BOAT_30211

:BOAT_30046
Text.DisplayWithFloat(217.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_30211

:BOAT_30079
Text.DisplayWithFloat(200.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_30211

:BOAT_30112
Text.DisplayWithFloat(217.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_30211

:BOAT_30145
Text.DisplayWithFloat(187.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_30211

:BOAT_30178
Text.DisplayWithFloat(190.0, 75.0, 'BOAT_58', 236@, 2)
goto @BOAT_30211

:BOAT_30211
goto @BOAT_30515

:BOAT_30218
235@ = 0.0
cset_lvar_float_to_lvar_int 235@ =# 225@
235@ /= 1000.0
235@ /= 60.0
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_30515 {caseNum1} 0 {caseLabel1} @BOAT_30326 {caseNum2} 1 {caseLabel2} @BOAT_30359 {caseNum3} 2 {caseLabel3} @BOAT_30392 {caseNum4} 3 {caseLabel4} @BOAT_30425 {caseNum5} 4 {caseLabel5} @BOAT_30458 {caseNum6} -1 {caseLabel6} @BOAT_30515 {caseNum7} -1 {caseLabel7} @BOAT_30515

:BOAT_30326
Text.DisplayWithFloat(144.0, 75.0, 'BOAT_63', 235@, 1)
goto @BOAT_30515

:BOAT_30359
Text.DisplayWithFloat(87.0, 75.0, 'BOAT_63', 235@, 1)
goto @BOAT_30515

:BOAT_30392
Text.DisplayWithFloat(88.0, 75.0, 'BOAT_63', 235@, 1)
goto @BOAT_30515

:BOAT_30425
Text.DisplayWithFloat(117.0, 75.0, 'BOAT_63', 235@, 1)
goto @BOAT_30515

:BOAT_30458
Text.SetScale(0.45, 1.35)
Text.DisplayWithFloat(103.0, 75.0, 'BOAT_63', 235@, 1)
Text.SetScale(0.52, 1.45)
goto @BOAT_30515

:BOAT_30515
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 226@
goto_if_false @BOAT_30541
$boat_alpha = 1

:BOAT_30541
if 
  is_int_lvar_greater_than_int_var 226@ > $boat_which_medal_displayed
goto_if_false @BOAT_30586
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 227@
goto_if_false @BOAT_30586
$boat_alpha = 2

:BOAT_30586
if 
  is_int_lvar_greater_than_int_var 227@ > $boat_which_medal_displayed
goto_if_false @BOAT_30631
if 
  is_int_var_greater_than_int_lvar $boat_which_medal_displayed > 228@
goto_if_false @BOAT_30631
$boat_alpha = 3

:BOAT_30631
if 
  is_int_lvar_greater_than_int_var 228@ > $boat_which_medal_displayed
goto_if_false @BOAT_30657
$boat_alpha = 4

:BOAT_30657
if 
  $boat_alpha > 1
goto_if_false @BOAT_30762
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, 250.0, 306.0, -60.0, 60.0, 180, 180, 180, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, 395.0, 306.0, 60.0, 60.0, 180, 180, 180, 255)
goto @BOAT_30842

:BOAT_30762
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(7, 250.0, 306.0, -60.0, 60.0, 180, 180, 180, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(7, 395.0, 306.0, 60.0, 60.0, 180, 180, 180, 255)

:BOAT_30842
Hud.SetSpritesDrawBeforeFade(True)
if 
  $boat_alpha == 1
goto_if_false @BOAT_31131
Hud.DrawSprite(6, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
gosub @BOAT_33012
Text.SetColor(166, 202, 240, 255)
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_31131 {caseNum1} 0 {caseLabel1} @BOAT_30991 {caseNum2} 1 {caseLabel2} @BOAT_31019 {caseNum3} 2 {caseLabel3} @BOAT_31047 {caseNum4} 3 {caseLabel4} @BOAT_31075 {caseNum5} 4 {caseLabel5} @BOAT_31103 {caseNum6} -1 {caseLabel6} @BOAT_31131 {caseNum7} -1 {caseLabel7} @BOAT_31131

:BOAT_30991
Text.Display(266.0, 375.0, 'BOAT_64')
goto @BOAT_31131

:BOAT_31019
Text.Display(216.0, 375.0, 'BOAT_64')
goto @BOAT_31131

:BOAT_31047
Text.Display(233.0, 375.0, 'BOAT_64')
goto @BOAT_31131

:BOAT_31075
Text.Display(216.0, 375.0, 'BOAT_64')
goto @BOAT_31131

:BOAT_31103
Text.Display(216.0, 375.0, 'BOAT_64')
goto @BOAT_31131

:BOAT_31131
if 
  $boat_alpha == 2
goto_if_false @BOAT_31416
Hud.DrawSprite(1, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
gosub @BOAT_33012
Text.SetColor(166, 202, 240, 255)
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_31416 {caseNum1} 0 {caseLabel1} @BOAT_31276 {caseNum2} 1 {caseLabel2} @BOAT_31304 {caseNum3} 2 {caseLabel3} @BOAT_31332 {caseNum4} 3 {caseLabel4} @BOAT_31360 {caseNum5} 4 {caseLabel5} @BOAT_31388 {caseNum6} -1 {caseLabel6} @BOAT_31416 {caseNum7} -1 {caseLabel7} @BOAT_31416

:BOAT_31276
Text.Display(280.0, 375.0, 'BOAT_57')
goto @BOAT_31416

:BOAT_31304
Text.Display(280.0, 375.0, 'BOAT_57')
goto @BOAT_31416

:BOAT_31332
Text.Display(280.0, 375.0, 'BOAT_57')
goto @BOAT_31416

:BOAT_31360
Text.Display(280.0, 375.0, 'BOAT_57')
goto @BOAT_31416

:BOAT_31388
Text.Display(280.0, 375.0, 'BOAT_57')
goto @BOAT_31416

:BOAT_31416
if 
  $boat_alpha == 3
goto_if_false @BOAT_31701
Hud.DrawSprite(2, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
gosub @BOAT_33012
Text.SetColor(166, 202, 240, 255)
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_31701 {caseNum1} 0 {caseLabel1} @BOAT_31561 {caseNum2} 1 {caseLabel2} @BOAT_31589 {caseNum3} 2 {caseLabel3} @BOAT_31617 {caseNum4} 3 {caseLabel4} @BOAT_31645 {caseNum5} 4 {caseLabel5} @BOAT_31673 {caseNum6} -1 {caseLabel6} @BOAT_31701 {caseNum7} -1 {caseLabel7} @BOAT_31701

:BOAT_31561
Text.Display(283.0, 375.0, 'BOAT_56')
goto @BOAT_31701

:BOAT_31589
Text.Display(278.0, 375.0, 'BOAT_56')
goto @BOAT_31701

:BOAT_31617
Text.Display(283.0, 375.0, 'BOAT_56')
goto @BOAT_31701

:BOAT_31645
Text.Display(273.0, 375.0, 'BOAT_56')
goto @BOAT_31701

:BOAT_31673
Text.Display(286.0, 375.0, 'BOAT_56')
goto @BOAT_31701

:BOAT_31701
if 
  $boat_alpha == 4
goto_if_false @BOAT_31986
Hud.DrawSprite(3, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
gosub @BOAT_33012
Text.SetColor(166, 202, 240, 255)
gosub @BOAT_37286
switch_start 249@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_31986 {caseNum1} 0 {caseLabel1} @BOAT_31846 {caseNum2} 1 {caseLabel2} @BOAT_31874 {caseNum3} 2 {caseLabel3} @BOAT_31902 {caseNum4} 3 {caseLabel4} @BOAT_31930 {caseNum5} 4 {caseLabel5} @BOAT_31958 {caseNum6} -1 {caseLabel6} @BOAT_31986 {caseNum7} -1 {caseLabel7} @BOAT_31986

:BOAT_31846
Text.Display(294.0, 375.0, 'BOAT_55')
goto @BOAT_31986

:BOAT_31874
Text.Display(307.0, 375.0, 'BOAT_55')
goto @BOAT_31986

:BOAT_31902
Text.Display(294.0, 375.0, 'BOAT_55')
goto @BOAT_31986

:BOAT_31930
Text.Display(300.0, 375.0, 'BOAT_55')
goto @BOAT_31986

:BOAT_31958
Text.Display(300.0, 375.0, 'BOAT_55')
goto @BOAT_31986

:BOAT_31986
return 

:BOAT_31988
if 
  $boat_introcutscene == 0
goto_if_false @BOAT_32138
if 
  $8188 == 1
goto_if_false @BOAT_32031
gosub @BOAT_2264

:BOAT_32031
if 
  $8188 == 2
goto_if_false @BOAT_32056
gosub @BOAT_3842

:BOAT_32056
if 
  $8188 == 3
goto_if_false @BOAT_32081
gosub @BOAT_6541

:BOAT_32081
if 
  $8188 == 4
goto_if_false @BOAT_32106
gosub @BOAT_10944

:BOAT_32106
if 
  $8188 == 5
goto_if_false @BOAT_32131
gosub @BOAT_12824

:BOAT_32131
$boat_introcutscene = 1

:BOAT_32138
if 
  $boat_introcutscene == 1
goto_if_false @BOAT_32522
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_32522
if 
  $8188 == 1
goto_if_false @BOAT_32242
if 
  not Streaming.HasCarRecordingBeenLoaded(752)
goto_if_false @BOAT_32218
Streaming.RequestCarRecording(752)
goto @BOAT_32242

:BOAT_32218
World.SyncWater
Car.StartPlayback(37@, 752)
$boat_control_flag = 3
$boat_introcutscene = 2

:BOAT_32242
if 
  $8188 == 2
goto_if_false @BOAT_32312
if 
  not Streaming.HasCarRecordingBeenLoaded(755)
goto_if_false @BOAT_32288
Streaming.RequestCarRecording(755)
goto @BOAT_32312

:BOAT_32288
World.SyncWater
Car.StartPlayback(37@, 755)
$boat_control_flag = 3
$boat_introcutscene = 2

:BOAT_32312
if 
  $8188 == 3
goto_if_false @BOAT_32382
if 
  not Streaming.HasCarRecordingBeenLoaded(757)
goto_if_false @BOAT_32358
Streaming.RequestCarRecording(757)
goto @BOAT_32382

:BOAT_32358
World.SyncWater
Car.StartPlayback(37@, 757)
$boat_control_flag = 3
$boat_introcutscene = 2

:BOAT_32382
if 
  $8188 == 4
goto_if_false @BOAT_32452
if 
  not Streaming.HasCarRecordingBeenLoaded(759)
goto_if_false @BOAT_32428
Streaming.RequestCarRecording(759)
goto @BOAT_32452

:BOAT_32428
World.SyncWater
Car.StartPlayback(37@, 759)
$boat_control_flag = 3
$boat_introcutscene = 2

:BOAT_32452
if 
  $8188 == 5
goto_if_false @BOAT_32522
if 
  not Streaming.HasCarRecordingBeenLoaded(760)
goto_if_false @BOAT_32498
Streaming.RequestCarRecording(760)
goto @BOAT_32522

:BOAT_32498
World.SyncWater
Car.StartPlayback(37@, 760)
$boat_control_flag = 3
$boat_introcutscene = 2

:BOAT_32522
if 
  $boat_introcutscene == 2
goto_if_false @BOAT_32843
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_32829
if 
  not Car.IsDead(46@)
goto_if_false @BOAT_32792
185@, 186@, 187@ = Car.GetCoordinates(37@)
if 
  $8188 == 1
goto_if_false @BOAT_32624
185@ -= 35.0
186@ -= 30.0

:BOAT_32624
if 
  $8188 == 2
goto_if_false @BOAT_32662
185@ -= 15.0
186@ -= 30.0

:BOAT_32662
if 
  $8188 == 3
goto_if_false @BOAT_32700
185@ -= 13.0
186@ -= 13.0

:BOAT_32700
if 
  $8188 == 4
goto_if_false @BOAT_32738
185@ -= 10.0
186@ -= 20.0

:BOAT_32738
if 
  $8188 == 5
goto_if_false @BOAT_32776
185@ -= 10.0
186@ -= 20.0

:BOAT_32776
Car.SetCoordinates(46@, 185@, 186@, 10.0)

:BOAT_32792
if 
  not Car.IsPlaybackGoingOn(37@)
goto_if_false @BOAT_32822
$boat_control_flag = 1
$boat_introcutscene = 4

:BOAT_32822
goto @BOAT_32843

:BOAT_32829
$boat_control_flag = 1
$boat_introcutscene = 4

:BOAT_32843
if 
  $boat_introcutscene == 3
goto_if_false @BOAT_32875
$boat_control_flag = 1
$boat_introcutscene = 4

:BOAT_32875
if 
  $boat_introcutscene == 4
goto_if_false @BOAT_33010
if 
  $boat_control_flag == 2
goto_if_false @BOAT_33010
Car.StopPlayback(37@)
Camera.RestoreJumpcut
Hud.ClearTimer($boat_which_score_displayed)
Hud.FreezeTimer(False)
Car.Delete(46@)
Car.Delete(37@)
gosub @BOAT_37227
$boat_introcutscene = 0
Hud.ClearTimer($boat_which_score_displayed)
Hud.FreezeTimer(False)
Car.Delete(37@)
Car.Delete(46@)
Char.Delete(47@)
Char.Delete(39@)
Car.Delete(40@)
Car.Delete(41@)
Car.Delete(44@)
Char.Delete(42@)
Char.Delete(43@)
Char.Delete(45@)

:BOAT_33010
return 

:BOAT_33012
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(False)
Text.SetBackground(False)
Text.SetScale(0.52, 1.45)
Text.SetDropshadow(2, 0, 0, 0, 255)
Text.SetFont(Font.Menu)
return 

:BOAT_33074
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(False)
Text.SetBackground(False)
Text.SetScale(0.52, 1.45)
Text.SetDropshadow(2, 0, 0, 0, 255)
Text.SetFont(Font.Menu)
return 
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
Text.SetScale(0.8, 2.6)
Text.SetDropshadow(2, 0, 0, 0, 255)
return 

:BOAT_33190
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
Text.SetScale(1.2, 4.0)
Text.SetDropshadow(3, 0, 0, 0, 255)
Text.SetFont(Font.Pricedown)
return 
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
Text.SetScale(1.0, 3.8)
Text.SetDropshadow(2, 0, 0, 0, 255)
Text.SetFont(Font.Menu)
return 

:BOAT_33310
Player.SetControl($player1, False)
Char.Delete(39@)
Char.Delete(42@)
Char.Delete(43@)
Car.Delete(40@)
Car.Delete(41@)
Car.Delete(44@)
Char.Delete(45@)
Hud.ClearTimer($boat_which_score_displayed)
40@ = Car.Create(454, -2100.836, 2247.862, 0.0)
Car.SetHeading(40@, 122.0)
42@ = Char.CreateInsideCar(40@, PedType.Mission1, 210)
41@ = Car.Create(484, -1996.127, 2125.169, 0.0)
Car.SetHeading(41@, 160.0)
43@ = Char.CreateInsideCar(41@, PedType.Mission1, 210)
44@ = Car.Create(454, -2251.171, 2129.291, 0.0)
Car.SetHeading(44@, 182.0)
45@ = Char.CreateInsideCar(44@, PedType.Mission1, 210)
Char.WarpIntoCar($scplayer, 37@)
Car.LockDoors(37@, CarLock.LockedPlayerInside)
wait 1000
Camera.DoFade(2000, Fade.Out)

:BOAT_33522
if 
  Camera.GetFadingStatus
goto_if_false @BOAT_33546
wait 0
goto @BOAT_33522

:BOAT_33546
Camera.RestoreJumpcut
Camera.SetBehindPlayer
if 
  $8188 == 4
goto_if_false @BOAT_33589
Streaming.LoadScene(-2318.049, 2312.302, 10.0)
wait 0

:BOAT_33589
Camera.DoFade(2000, Fade.In)

:BOAT_33596
if 
  Camera.GetFadingStatus
goto_if_false @BOAT_33620
wait 0
goto @BOAT_33596

:BOAT_33620
return 

:BOAT_33622
Camera.DoFade(500, Fade.Out)

:BOAT_33629
if 
  Camera.GetFadingStatus
goto_if_false @BOAT_33653
wait 0
goto @BOAT_33629

:BOAT_33653
if 
  $8188 == 16
goto_if_false @BOAT_33692
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
goto @BOAT_33706

:BOAT_33692
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)

:BOAT_33706
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Weather.ForceNow(WeatherType.ExtraSunnyCountryside)
Streaming.SetAreaVisible(0)
Char.Delete(39@)
Char.Delete(42@)
Char.Delete(43@)
Car.Delete(40@)
Car.Delete(41@)
Car.Delete(44@)
Char.Delete(45@)
return 

:BOAT_33755
Blip.ChangeScale(53@, 1)
Blip.ChangeScale(54@, 1)
Blip.ChangeColor(52@, BlipColor.Yellow)
Blip.ChangeColor(51@, BlipColor.Yellow)
Blip.ChangeColor(53@, BlipColor.Yellow)
Blip.ChangeColor(54@, BlipColor.Yellow)
return 

:BOAT_33799
if 
  $8188 == 1
goto_if_false @BOAT_34105
156@ = 0

:BOAT_33824
if 
  8 > 156@
goto_if_false @BOAT_33905
56@(156@,50i) = Object.CreateNoOffset(#BOUY, 0.0, 0.0, 100.0)
Object.SetCollision(56@(156@,50i), True)
Object.SetDynamic(56@(156@,50i), True)
156@ += 1
goto @BOAT_33824

:BOAT_33905
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_34105
Object.PlaceRelativeToCar(56@, 37@, 20.0, 180.0, 0.0)
Object.PlaceRelativeToCar(57@, 37@, -20.0, 180.0, 0.0)
Object.PlaceRelativeToCar(58@, 37@, 20.0, 190.0, 0.0)
Object.PlaceRelativeToCar(59@, 37@, -20.0, 190.0, 0.0)
Object.PlaceRelativeToCar(60@, 37@, 20.0, 200.0, 0.0)
Object.PlaceRelativeToCar(61@, 37@, -20.0, 200.0, 0.0)
Object.PlaceRelativeToCar(62@, 37@, 20.0, 210.0, 0.0)
Object.PlaceRelativeToCar(63@, 37@, -20.0, 210.0, 0.0)

:BOAT_34105
if 
  $8188 == 2
goto_if_false @BOAT_34595
156@ = 0

:BOAT_34130
if 
  16 > 156@
goto_if_false @BOAT_34211
56@(156@,50i) = Object.CreateNoOffset(#BOUY, 0.0, 0.0, 100.0)
Object.SetCollision(56@(156@,50i), True)
Object.SetDynamic(56@(156@,50i), True)
156@ += 1
goto @BOAT_34130

:BOAT_34211
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_34595
Object.PlaceRelativeToCar(56@, 37@, 0.0, 80.0, 0.0)
Object.PlaceRelativeToCar(57@, 37@, 15.0, 70.0, 0.0)
Object.PlaceRelativeToCar(58@, 37@, 55.0, 145.0, 0.0)
Object.PlaceRelativeToCar(59@, 37@, 70.0, 130.0, 0.0)
Object.PlaceRelativeToCar(60@, 37@, 150.0, 110.0, 0.0)
Object.PlaceRelativeToCar(61@, 37@, 160.0, 130.0, 0.0)
Object.PlaceRelativeToCar(62@, 37@, 250.0, 80.0, 0.0)
Object.PlaceRelativeToCar(63@, 37@, 240.0, 60.0, 0.0)
Object.PlaceRelativeToCar(64@, 37@, 300.0, 0.0, 0.0)
Object.PlaceRelativeToCar(65@, 37@, 290.0, -20.0, 0.0)
Object.PlaceRelativeToCar(66@, 37@, 380.0, -150.0, 0.0)
Object.PlaceRelativeToCar(67@, 37@, 360.0, -150.0, 0.0)
Object.PlaceRelativeToCar(68@, 37@, 320.0, -300.0, 0.0)
Object.PlaceRelativeToCar(69@, 37@, 340.0, -325.0, 0.0)
Object.PlaceRelativeToCar(70@, 37@, 230.0, -280.0, 0.0)
Object.PlaceRelativeToCar(71@, 37@, 210.0, -300.0, 0.0)

:BOAT_34595
if 
  $8188 == 3
goto_if_false @BOAT_35361
156@ = 0

:BOAT_34620
if 
  28 > 156@
goto_if_false @BOAT_34701
56@(156@,50i) = Object.CreateNoOffset(#BOUY, 0.0, 0.0, 100.0)
Object.SetCollision(56@(156@,50i), True)
Object.SetDynamic(56@(156@,50i), True)
156@ += 1
goto @BOAT_34620

:BOAT_34701
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_35361
Object.PlaceRelativeToCar(56@, 37@, 0.0, 100.0, 0.0)
Object.PlaceRelativeToCar(57@, 37@, 15.0, 100.0, 0.0)
Object.PlaceRelativeToCar(58@, 37@, 40.0, 200.0, 0.0)
Object.PlaceRelativeToCar(59@, 37@, 55.0, 190.0, 0.0)
Object.PlaceRelativeToCar(60@, 37@, 0.0, 300.0, 0.0)
Object.PlaceRelativeToCar(61@, 37@, -15.0, 290.0, 0.0)
Object.PlaceRelativeToCar(62@, 37@, 140.0, 320.0, 0.0)
Object.PlaceRelativeToCar(63@, 37@, 140.0, 335.0, 0.0)
Object.PlaceRelativeToCar(64@, 37@, 220.0, 370.0, 0.0)
Object.PlaceRelativeToCar(65@, 37@, 210.0, 385.0, 0.0)
Object.PlaceRelativeToCar(66@, 37@, 210.0, 470.0, 0.0)
Object.PlaceRelativeToCar(67@, 37@, 195.0, 460.0, 0.0)
Object.PlaceRelativeToCar(68@, 37@, 195.0, 570.0, 0.0)
Object.PlaceRelativeToCar(69@, 37@, 180.0, 570.0, 0.0)
Object.PlaceRelativeToCar(70@, 37@, 95.0, 570.0, 0.0)
Object.PlaceRelativeToCar(71@, 37@, 95.0, 585.0, 0.0)
Object.PlaceRelativeToCar(72@, 37@, 15.0, 500.0, 0.0)
Object.PlaceRelativeToCar(73@, 37@, 0.0, 515.0, 0.0)
Object.PlaceRelativeToCar(74@, 37@, -90.0, 585.0, 0.0)
Object.PlaceRelativeToCar(75@, 37@, -90.0, 570.0, 0.0)
Object.PlaceRelativeToCar(76@, 37@, -160.0, 500.0, 0.0)
Object.PlaceRelativeToCar(77@, 37@, -150.0, 485.0, 0.0)
Object.PlaceRelativeToCar(78@, 37@, -240.0, 430.0, 0.0)
Object.PlaceRelativeToCar(79@, 37@, -230.0, 415.0, 0.0)
Object.PlaceRelativeToCar(80@, 37@, -140.0, 330.0, 0.0)
Object.PlaceRelativeToCar(81@, 37@, -140.0, 315.0, 0.0)
Object.PlaceRelativeToCar(82@, 37@, -30.0, 220.0, 0.0)
Object.PlaceRelativeToCar(83@, 37@, -40.0, 205.0, 0.0)

:BOAT_35361
if 
  $8188 == 4
goto_if_false @BOAT_36032
156@ = 0

:BOAT_35386
if 
  20 > 156@
goto_if_false @BOAT_35467
56@(156@,50i) = Object.CreateNoOffset(#BOUY, 0.0, 0.0, 100.0)
Object.SetCollision(56@(156@,50i), True)
Object.SetDynamic(56@(156@,50i), True)
156@ += 1
goto @BOAT_35386

:BOAT_35467
157@ = 0

:BOAT_35474
if 
  1 > 157@
goto_if_false @BOAT_35533
106@(157@,50i) = Object.CreateNoOffset(#WATERJUMPX2, 20.0, 20.0, 150.0)
157@ += 1
goto @BOAT_35474

:BOAT_35533
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_36032
Object.PlaceRelativeToCar(56@, 37@, 91.0, 480.0, 0.0)
Object.PlaceRelativeToCar(57@, 37@, 109.0, 480.0, 0.0)
Object.PlaceRelativeToCar(106@, 37@, 100.0, 480.0, 0.0)
Object.PlaceRelativeToCar(58@, 37@, 75.0, 500.0, 0.0)
Object.PlaceRelativeToCar(59@, 37@, 125.0, 500.0, 0.0)
Object.PlaceRelativeToCar(60@, 37@, 75.0, 510.0, 0.0)
Object.PlaceRelativeToCar(61@, 37@, 125.0, 510.0, 0.0)
Object.PlaceRelativeToCar(62@, 37@, 75.0, 520.0, 0.0)
Object.PlaceRelativeToCar(63@, 37@, 125.0, 520.0, 0.0)
Object.PlaceRelativeToCar(64@, 37@, 75.0, 530.0, 0.0)
Object.PlaceRelativeToCar(65@, 37@, 125.0, 530.0, 0.0)
Object.PlaceRelativeToCar(66@, 37@, 75.0, 540.0, 0.0)
Object.PlaceRelativeToCar(67@, 37@, 125.0, 540.0, 0.0)
Object.PlaceRelativeToCar(68@, 37@, 75.0, 550.0, 0.0)
Object.PlaceRelativeToCar(69@, 37@, 125.0, 550.0, 0.0)
Object.PlaceRelativeToCar(70@, 37@, 75.0, 560.0, 0.0)
Object.PlaceRelativeToCar(71@, 37@, 125.0, 560.0, 0.0)
Object.PlaceRelativeToCar(72@, 37@, 75.0, 570.0, 0.0)
Object.PlaceRelativeToCar(73@, 37@, 125.0, 570.0, 0.0)
Object.PlaceRelativeToCar(74@, 37@, 75.0, 580.0, 0.0)
Object.PlaceRelativeToCar(75@, 37@, 125.0, 580.0, 0.0)

:BOAT_36032
if 
  $8188 == 5
goto_if_false @BOAT_37225
156@ = 0

:BOAT_36057
if 
  44 > 156@
goto_if_false @BOAT_36138
56@(156@,50i) = Object.CreateNoOffset(#BOUY, 0.0, 0.0, 100.0)
Object.SetCollision(56@(156@,50i), True)
Object.SetDynamic(56@(156@,50i), True)
156@ += 1
goto @BOAT_36057

:BOAT_36138
157@ = 0

:BOAT_36145
if 
  3 > 157@
goto_if_false @BOAT_36204
106@(157@,50i) = Object.CreateNoOffset(#WATERJUMPX2, 20.0, 20.0, 150.0)
157@ += 1
goto @BOAT_36145

:BOAT_36204
if 
  not Car.IsDead(37@)
goto_if_false @BOAT_37225
Object.PlaceRelativeToCar(56@, 37@, 25.0, 100.0, 0.0)
Object.PlaceRelativeToCar(57@, 37@, 10.0, 100.0, 0.0)
Object.PlaceRelativeToCar(58@, 37@, -30.0, 170.0, 0.0)
Object.PlaceRelativeToCar(59@, 37@, -50.0, 160.0, 0.0)
Object.PlaceRelativeToCar(60@, 37@, -100.0, 190.0, 0.0)
Object.PlaceRelativeToCar(61@, 37@, -120.0, 170.0, 0.0)
Object.PlaceRelativeToCar(62@, 37@, -170.0, 260.0, 0.0)
Object.PlaceRelativeToCar(63@, 37@, -188.0, 260.0, 0.0)
Object.PlaceRelativeToCar(106@, 37@, -179.0, 360.0, -6.509)
Object.PlaceRelativeToCar(64@, 37@, -170.0, 360.0, 0.0)
Object.PlaceRelativeToCar(65@, 37@, -188.0, 360.0, 0.0)
Object.PlaceRelativeToCar(66@, 37@, -180.0, 500.0, 0.0)
Object.PlaceRelativeToCar(67@, 37@, -195.0, 500.0, 0.0)
Object.PlaceRelativeToCar(68@, 37@, -50.0, 600.0, 0.0)
Object.PlaceRelativeToCar(69@, 37@, -30.0, 600.0, 0.0)
Object.SetCoordinates(107@, -2682.159, 1946.412, 0.9)
Object.SetHeading(107@, 180.0)
Object.SetCoordinates(70@, -2689.573, 1944.864, 0.0)
Object.SetCoordinates(71@, -2674.354, 1944.607, 0.0)
Object.SetCoordinates(108@, -2681.746, 1608.794, 0.9)
Object.SetHeading(108@, 180.0)
Object.SetCoordinates(72@, -2689.573, 1607.794, 0.0)
Object.SetCoordinates(73@, -2674.354, 1607.794, 0.0)
Object.SetCoordinates(74@, -2689.27, 1533.282, 0.0)
Object.SetCoordinates(75@, -2674.64, 1530.12, 0.0)
Object.SetCoordinates(76@, -2553.7, 1494.392, 0.0)
Object.SetCoordinates(77@, -2550.742, 1481.417, 0.0)
Object.SetCoordinates(78@, -2453.7, 1494.392, 0.0)
Object.SetCoordinates(79@, -2450.742, 1481.417, 0.0)
Object.SetCoordinates(80@, -2353.7, 1474.392, 0.0)
Object.SetCoordinates(81@, -2350.742, 1461.417, 0.0)
Object.SetCoordinates(82@, -2284.242, 1547.581, 0.0)
Object.SetCoordinates(83@, -2270.893, 1550.765, 0.0)
Object.SetCoordinates(84@, -2334.242, 1647.581, 0.0)
Object.SetCoordinates(85@, -2320.893, 1650.765, 0.0)
Object.SetCoordinates(86@, -2284.242, 1747.581, 0.0)
Object.SetCoordinates(87@, -2270.893, 1750.765, 0.0)
Object.SetCoordinates(88@, -2139.394, 1821.263, 0.0)
Object.SetCoordinates(89@, -2134.581, 1808.785, 0.0)
Object.SetCoordinates(90@, -2039.394, 1761.263, 0.0)
Object.SetCoordinates(91@, -2034.581, 1748.785, 0.0)
Object.SetCoordinates(92@, -1939.394, 1841.263, 0.0)
Object.SetCoordinates(93@, -1934.581, 1828.785, 0.0)
Object.SetCoordinates(94@, -1809.394, 1801.263, 0.0)
Object.SetCoordinates(95@, -1804.581, 1788.785, 0.0)
Object.SetCoordinates(96@, -1831.853, 1909.105, 0.0)
Object.SetCoordinates(97@, -1847.253, 1906.112, 0.0)
Object.SetCoordinates(98@, -1879.002, 2073.601, 0.0)
Object.SetCoordinates(99@, -1893.786, 2068.166, 0.0)

:BOAT_37225
return 

:BOAT_37227
156@ = 0

:BOAT_37234
if 
  50 > 156@
goto_if_false @BOAT_37284
Object.Delete(56@(156@,50i))
Object.Delete(106@(156@,50i))
156@ += 1
goto @BOAT_37234

:BOAT_37284
return 

:BOAT_37286
249@ = Game.GetCurrentLanguage()
return 

:BOAT_37293
Streaming.LoadSceneInDirection(-2185.335, 2410.409, 3.9752, 122.2585)
Text.ClearHelp
Text.ClearPrints
Char.SetHeading($scplayer, 177@)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
return 

:BOAT_37333
if 
  $boat_passed_once == 0
goto_if_false @BOAT_37409
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Text.PrintBig('BOAT_P2', 5000, TextStyle.Middle)
Text.Print('BOAT_P1', 5000, 1)
Audio.PlayMissionPassedTune(2)
Player.ClearWantedLevel($player1)
Stat.PlayerMadeProgress(1)
Stat.RegisterOddjobMissionPassed
$boat_passed_once = 1

:BOAT_37409
return 

:BOAT_37411
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundEnableHeliAudio)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1098)
Player.SetCanDoDriveBy($player1, True)
Char.SetDrownsInWater($scplayer, True)
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Hud.Display(True)
Hud.DisplayRadar(True)
Hud.DisplayCarNames(True)
Hud.DisplayZoneNames(True)
Hud.ClearTimer($boat_which_score_displayed)
Blip.Remove(52@)
Blip.Remove(51@)
Blip.Remove(53@)
Blip.Remove(54@)
Streaming.MarkModelAsNoLongerNeeded(210)
Char.MarkAsNoLongerNeeded(39@)
Char.MarkAsNoLongerNeeded(38@)
Car.Delete(37@)
Car.Delete(46@)
Char.Delete(42@)
Char.Delete(43@)
Car.Delete(40@)
Car.Delete(41@)
Car.Delete(44@)
Char.Delete(45@)
Streaming.MarkModelAsNoLongerNeeded(473)
Streaming.MarkModelAsNoLongerNeeded(497)
Streaming.MarkModelAsNoLongerNeeded(472)
Streaming.MarkModelAsNoLongerNeeded(484)
Streaming.MarkModelAsNoLongerNeeded(454)
Streaming.MarkModelAsNoLongerNeeded(539)
Weather.Release
Player.SetControl($player1, True)
$timer_mobile_start = Clock.GetGameTimer()
if 
  $boat_gold_rewardgiven == 0
goto_if_false @BOAT_37738
if 
  $boat_accelerate_goldachieved == 1
goto_if_false @BOAT_37738
if 
  $boat_simplecircuit_goldachieved == 1
goto_if_false @BOAT_37738
if 
  $boat_slalom_goldachieved == 1
goto_if_false @BOAT_37738
if 
  $boat_skijump_goldachieved == 1
goto_if_false @BOAT_37738
if 
  $boat_hover_goldachieved == 1
goto_if_false @BOAT_37738
$boat_gold_rewardgiven = 1
$boat_silver_rewardgiven = 99
$boat_bronze_rewardgiven = 99

:BOAT_37738
if 
  $boat_silver_rewardgiven == 0
goto_if_false @BOAT_37860
if 
  $boat_accelerate_silverachieved == 1
goto_if_false @BOAT_37860
if 
  $boat_simplecircuit_silverachieved == 1
goto_if_false @BOAT_37860
if 
  $boat_slalom_silverachieved == 1
goto_if_false @BOAT_37860
if 
  $boat_skijump_silverachieved == 1
goto_if_false @BOAT_37860
if 
  $boat_hover_silverachieved == 1
goto_if_false @BOAT_37860
$boat_silver_rewardgiven = 1
$boat_bronze_rewardgiven = 99

:BOAT_37860
if 
  $boat_bronze_rewardgiven == 0
goto_if_false @BOAT_37975
if 
  $boat_accelerate_bronzeachieved == 1
goto_if_false @BOAT_37975
if 
  $boat_simplecircuit_bronzeachieved == 1
goto_if_false @BOAT_37975
if 
  $boat_slalom_bronzeachieved == 1
goto_if_false @BOAT_37975
if 
  $boat_skijump_bronzeachieved == 1
goto_if_false @BOAT_37975
if 
  $boat_hover_bronzeachieved == 1
goto_if_false @BOAT_37975
$boat_bronze_rewardgiven = 1

:BOAT_37975
if 
  $boat_gold_rewardgiven == 1
goto_if_false @BOAT_38042
CarGenerator.Switch($boat_gold_generator, 101)
CarGenerator.SetHasBeenOwned($boat_gold_generator, True)
CarGenerator.Switch($boat_silver_generator, 101)
CarGenerator.SetHasBeenOwned($boat_silver_generator, True)
CarGenerator.Switch($boat_bronze_generator, 101)
CarGenerator.SetHasBeenOwned($boat_bronze_generator, True)
$boat_gold_rewardgiven = 2

:BOAT_38042
if 
  $boat_silver_rewardgiven == 1
goto_if_false @BOAT_38095
CarGenerator.Switch($boat_silver_generator, 101)
CarGenerator.SetHasBeenOwned($boat_silver_generator, True)
CarGenerator.Switch($boat_bronze_generator, 101)
CarGenerator.SetHasBeenOwned($boat_bronze_generator, True)
$boat_silver_rewardgiven = 2

:BOAT_38095
if 
  $boat_bronze_rewardgiven == 1
goto_if_false @BOAT_38134
CarGenerator.Switch($boat_bronze_generator, 101)
CarGenerator.SetHasBeenOwned($boat_bronze_generator, True)
$boat_bronze_rewardgiven = 2

:BOAT_38134
$onmission = 0
Mission.Finish
return 

//-------------Mission 120---------------
// Originally: Bike School

:BSKOOL
script_name 'BSKOOL'
gosub @BSKOOL_47
if 
  has_deatharrest_been_executed 
goto_if_false @BSKOOL_38
gosub @BSKOOL_11872

:BSKOOL_38
gosub @BSKOOL_11977
terminate_this_script 

:BSKOOL_47
Text.ClearThisPrint('M_FAIL')
if 
  $flag_bikeschool_passed_1stime == 0
goto_if_false @BSKOOL_78
Stat.RegisterMissionGiven

:BSKOOL_78
$onmission = 1
Text.LoadMissionText('BS')
Camera.SetFadingColor(0, 0, 0)
wait 0
if 
  $onmission == 0
goto_if_false @BSKOOL_206
38@ = Car.Create(581, $car_posx, $car_posy, $perfect_positionz)
$trafficcones[20] = Object.CreateNoOffset(#TRAFFICCONE, 0.0, 0.0, 100.0)
$trafficcones[30] = Object.CreateNoOffset(#TRAFFICCONE, 0.0, 0.0, 100.0)
56@ = Object.Create(#LANDJUMP2, $car_posx, $car_posy, $perfect_positionz)

:BSKOOL_206
34@ = 0
61@ = 0
62@ = 0
57@ = 0
63@ = 0
64@ = 0
65@ = 0
66@ = 0
67@ = 0
51@ = 0
if 
  $bs_open_tests == 0
goto_if_false @BSKOOL_301
$bs_open_tests = 1

:BSKOOL_301
$mission_selection = 1
$start_coordsx = 1130.44
$start_coordsy = 1341.0
$noticeboard_x = 1173.93
$noticeboard_y = 1351.066
$noticeboard_z = 9.9219
Char.SetCoordinates($scplayer, 1171.521, 1351.183, 9.9219)
Streaming.RequestModel(581)
Streaming.RequestModel(521)
Streaming.RequestModel(461)
Streaming.RequestModel(#TRAFFICCONE)
Streaming.RequestModel(#LANDJUMP2)
Streaming.RequestModel(522)
Streaming.RequestModel(468)
Streaming.RequestModel(50)

:BSKOOL_417
if or
  not Streaming.HasModelLoaded(581)
  not Streaming.HasModelLoaded(521)
  not Streaming.HasModelLoaded(461)
  not Streaming.HasModelLoaded(#TRAFFICCONE)
  not Streaming.HasModelLoaded(#LANDJUMP2)
goto_if_false @BSKOOL_464
wait 0
goto @BSKOOL_417

:BSKOOL_464
if or
  not Streaming.HasModelLoaded(468)
  not Streaming.HasModelLoaded(50)
  not Streaming.HasModelLoaded(522)
goto_if_false @BSKOOL_500
wait 0
goto @BSKOOL_464

:BSKOOL_500
Txd.LoadDictionary('LD_DRV')
Txd.LoadSprite(1, "BRONZE")
Txd.LoadSprite(2, "SILVER")
Txd.LoadSprite(3, "GOLD")
Txd.LoadSprite(4, "RIBB")
Txd.LoadSprite(5, "TVCORN")
Txd.LoadSprite(6, "NAWARD")
Txd.LoadSprite(7, "RIBBW")
Txd.LoadSprite(8, "BLKDOT")
Txd.LoadSprite(9, "TVBASE")
Player.SetControl($player1, True)
Hud.Display(False)
goto @BSKOOL_632

:BSKOOL_632
Player.SetControl($player1, False)
Text.ClearHelp
Text.ClearPrints
50@ = Player.StoreWantedLevel($player1)
Player.ClearWantedLevel($player1)
gosub @BSKOOL_16223
34@ = 0
57@ = 0
Text.UseCommands(True)
64@ = 255
63@ = 2
if 
  7 > $bs_open_tests
goto_if_false @BSKOOL_722
set_var_int_to_lvar_int $mission_selection = 37@

:BSKOOL_722
Camera.DoFade(500, Fade.In)

:BSKOOL_729
if 
  Camera.GetFadingStatus
goto_if_false @BSKOOL_762
Text.ClearPrints
gosub @BSKOOL_12657
wait 0
goto @BSKOOL_729

:BSKOOL_762
gosub @BSKOOL_12657
Hud.DisplayRadar(False)

:BSKOOL_773
wait 0
gosub @BSKOOL_12657
if 
  51@ == 0
goto_if_false @BSKOOL_816
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 31400)
51@ = 1

:BSKOOL_816
if 
  51@ == 1
goto_if_false @BSKOOL_856
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @BSKOOL_856
51@ = 2

:BSKOOL_856
if 
  51@ == 2
goto_if_false @BSKOOL_885
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
51@ = 3

:BSKOOL_885
if 
  57@ == 0
goto_if_false @BSKOOL_1382
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  -100 > $LStickX
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @BSKOOL_1000
37@ -= 1
$mission_selection -= 1
if 
  $bs_open_tests > 1
goto_if_false @BSKOOL_1000
if 
  4 > 34@
goto_if_false @BSKOOL_1000
34@ = 3

:BSKOOL_1000
if or
  $LStickX > 100
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @BSKOOL_1081
37@ += 1
$mission_selection += 1
if 
  $bs_open_tests > 1
goto_if_false @BSKOOL_1081
if 
  4 > 34@
goto_if_false @BSKOOL_1081
34@ = 3

:BSKOOL_1081
if 
  1 > $mission_selection
goto_if_false @BSKOOL_1115
set_var_int_to_var_int $mission_selection = $bs_open_tests
set_lvar_int_to_var_int 37@ = $bs_open_tests

:BSKOOL_1115
if 
  is_int_var_greater_than_int_var $mission_selection > $bs_open_tests
goto_if_false @BSKOOL_1148
37@ = 1
$mission_selection = 1

:BSKOOL_1148
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @BSKOOL_1183
wait 0
gosub @BSKOOL_12657
goto @BSKOOL_1148

:BSKOOL_1183
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @BSKOOL_1218
wait 0
gosub @BSKOOL_12657
goto @BSKOOL_1183

:BSKOOL_1218
if 
  -100 > $LStickX
goto_if_false @BSKOOL_1270
wait 0
gosub @BSKOOL_12657
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
goto @BSKOOL_1218

:BSKOOL_1270
if 
  $LStickX > 100
goto_if_false @BSKOOL_1322
wait 0
gosub @BSKOOL_12657
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
goto @BSKOOL_1270

:BSKOOL_1322
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BSKOOL_1382
if 
  4 > 34@
goto_if_false @BSKOOL_1364
34@ = 3

:BSKOOL_1364
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
51@ = 0
goto @BSKOOL_1627

:BSKOOL_1382
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @BSKOOL_1404
$bs_open_tests = 6

:BSKOOL_1404
if 
is_ps2_keyboard_key_pressed 34
goto_if_false @BSKOOL_1468
$bs_open_tests = 6
$bs_wheelie_best_score = 100
$bs_stoppie_best_score = 100
$bs_the360_best_score = 100
$bs_the180_best_score = 100
$bs_jumpstop_best_score = 100
$bs_jumpstoppie_best_score = 100

:BSKOOL_1468
if and
  $bs_wheelie_best_score > 69
  $bs_stoppie_best_score > 69
  $bs_the360_best_score > 69
  $bs_the180_best_score > 69
  $bs_jumpstop_best_score > 69
  $bs_jumpstoppie_best_score > 69
goto_if_false @BSKOOL_1528
$bs_passed = 1

:BSKOOL_1528
if 
  $flag_bikeschool_passed_1stime == 0
goto_if_false @BSKOOL_1578
if 
  $bs_passed == 1
goto_if_false @BSKOOL_1578
gosub @BSKOOL_20195
goto @BSKOOL_11900

:BSKOOL_1578
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BSKOOL_1613
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
51@ = 0
goto @BSKOOL_11872

:BSKOOL_1613
gosub @BSKOOL_15413
goto @BSKOOL_773

:BSKOOL_1627
Camera.DoFade(500, Fade.Out)

:BSKOOL_1634
if 
  Camera.GetFadingStatus
goto_if_false @BSKOOL_1665
gosub @BSKOOL_12657
wait 0
goto @BSKOOL_1634

:BSKOOL_1665
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_1686
Car.StopPlayback(38@)

:BSKOOL_1686
Car.Delete(38@)
World.ClearArea($noticeboard_x, $noticeboard_y, $noticeboard_z, 300.0, True)
Hud.ClearTimer($car_timer)
Hud.FreezeTimer(False)
Car.Delete(38@)
gosub @BSKOOL_20534
34@ = 5
Hud.DisplayRadar(True)
if 
  $mission_selection == 1
goto_if_false @BSKOOL_3435

:BSKOOL_1759
gosub @BSKOOL_16186

:BSKOOL_1766
$perfect_heading = 180.0
$car_timer = 16000
35@ = 181
gosub @BSKOOL_16223
38@ = Car.Create(581, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading(38@, 180.0)
gosub @BSKOOL_20605
if 
  34@ == 0
goto_if_false @BSKOOL_1922
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_1879
49@ = Char.CreateInsideCar(38@, PedType.CivFemale, 50)

:BSKOOL_1879
Camera.SetFixedPosition(1125.66, 1334.4, 22.5, 0.0, 0.0, 0.0)
Camera.PointAtCar(38@, CameraMode.Fixed, SwitchType.JumpCut)
return 

:BSKOOL_1922
$finish_rightx, $finish_righty, $perfect_positionz = Car.GetOffsetInWorldCoords(38@, 0.0, 0.0, 0.0)
Text.ClearPrints
Text.PrintNow('BS_A_1', 5000, 4)
gosub @BSKOOL_16945

:BSKOOL_1976
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BSKOOL_2011
48@ = 2
goto @BSKOOL_3375

:BSKOOL_2011
gosub @BSKOOL_17012
if 
  48@ == 1
goto_if_false @BSKOOL_2043
goto @BSKOOL_11872

:BSKOOL_2043
if 
  $car_started == 0
goto_if_false @BSKOOL_2091
Text.PrintNow('BS_A_1', 5000, 4)
gosub @BSKOOL_17088
goto @BSKOOL_3428

:BSKOOL_2091
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_3428
gosub @BSKOOL_17246
$perfect_heading = Car.GetHeading(38@)
if 
  $variablec == 0
goto_if_false @BSKOOL_2196
if 
  $perfect_heading > 80.0
goto_if_false @BSKOOL_2196
if 
  90.0 > $perfect_heading
goto_if_false @BSKOOL_2196
$variablec = 1
58@ = 1

:BSKOOL_2196
if 
  58@ == 1
goto_if_false @BSKOOL_2415
if 
  $variablec == 1
goto_if_false @BSKOOL_2281
if 
  $perfect_heading > 350.0
goto_if_false @BSKOOL_2281
if 
  360.0 > $perfect_heading
goto_if_false @BSKOOL_2281
$variablec = 2

:BSKOOL_2281
if 
  $variablec == 2
goto_if_false @BSKOOL_2348
if 
  $perfect_heading > 270.0
goto_if_false @BSKOOL_2348
if 
  280.0 > $perfect_heading
goto_if_false @BSKOOL_2348
$variablec = 3

:BSKOOL_2348
if 
  $variablec == 3
goto_if_false @BSKOOL_2415
if 
  $perfect_heading > 170.0
goto_if_false @BSKOOL_2415
if 
  180.0 > $perfect_heading
goto_if_false @BSKOOL_2415
$variablec = 4

:BSKOOL_2415
if 
  $variablec == 0
goto_if_false @BSKOOL_2489
if 
  $perfect_heading > 270.0
goto_if_false @BSKOOL_2489
if 
  280.0 > $perfect_heading
goto_if_false @BSKOOL_2489
58@ = 2
$variablec = 1

:BSKOOL_2489
if 
  58@ == 2
goto_if_false @BSKOOL_2708
if 
  $variablec == 1
goto_if_false @BSKOOL_2574
if 
  $perfect_heading > 350.0
goto_if_false @BSKOOL_2574
if 
  360.0 > $perfect_heading
goto_if_false @BSKOOL_2574
$variablec = 2

:BSKOOL_2574
if 
  $variablec == 2
goto_if_false @BSKOOL_2641
if 
  $perfect_heading > 80.0
goto_if_false @BSKOOL_2641
if 
  90.0 > $perfect_heading
goto_if_false @BSKOOL_2641
$variablec = 3

:BSKOOL_2641
if 
  $variablec == 3
goto_if_false @BSKOOL_2708
if 
  $perfect_heading > 170.0
goto_if_false @BSKOOL_2708
if 
  180.0 > $perfect_heading
goto_if_false @BSKOOL_2708
$variablec = 4

:BSKOOL_2708
if or
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  not Pad.IsButtonPressed(PadId.Pad1, Button.Square)
  not Char.IsInCar($scplayer, 38@)
  $car_timer == 0
goto_if_false @BSKOOL_3428
gosub @BSKOOL_17280
gosub @BSKOOL_17293
if 
  $variablec == 4
goto_if_false @BSKOOL_2785
$heading_score = 100

:BSKOOL_2785
if 
  $variablec == 3
goto_if_false @BSKOOL_2810
$heading_score = 75

:BSKOOL_2810
if 
  $variablec == 2
goto_if_false @BSKOOL_2835
$heading_score = 50

:BSKOOL_2835
if 
  $variablec == 1
goto_if_false @BSKOOL_2860
$heading_score = 25

:BSKOOL_2860
if 
  $variablec == 0
goto_if_false @BSKOOL_2885
$heading_score = 0

:BSKOOL_2885
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_2933
$overall_score = 0

:BSKOOL_2933
gosub @BSKOOL_17537
gosub @BSKOOL_17915
if 
  is_int_var_greater_than_int_var $overall_score > $bs_the360_best_score
goto_if_false @BSKOOL_3153
set_lvar_int_to_var_int 67@ = $bs_the360_best_score
set_var_int_to_var_int $bs_the360_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18379
if 
  65@ == 4
goto_if_false @BSKOOL_3053
if 
  $bs_the360_goldachieved == 0
goto_if_false @BSKOOL_3053
$bs_the360_goldachieved = 1
$bs_the360_silverachieved = 1
$bs_the360_bronzeachieved = 1

:BSKOOL_3053
if 
  65@ == 3
goto_if_false @BSKOOL_3103
if 
  $bs_the360_silverachieved == 0
goto_if_false @BSKOOL_3103
$bs_the360_silverachieved = 1
$bs_the360_bronzeachieved = 1

:BSKOOL_3103
if 
  65@ == 2
goto_if_false @BSKOOL_3146
if 
  $bs_the360_bronzeachieved == 0
goto_if_false @BSKOOL_3146
$bs_the360_bronzeachieved = 1

:BSKOOL_3146
goto @BSKOOL_3160

:BSKOOL_3153
65@ = 0

:BSKOOL_3160
if 
  $bs_open_tests == 1
goto_if_false @BSKOOL_3244
if 
  $overall_score > 69
goto_if_false @BSKOOL_3244
59@ = 2
$bs_open_tests = 2
48@ = 2
37@ += 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1185)

:BSKOOL_3244
TIMERA = 0

:BSKOOL_3251
if 
  TIMERA > -1
goto_if_false @BSKOOL_3375
wait 0
gosub @BSKOOL_17944
if 
  59@ <> 2
goto_if_false @BSKOOL_3329
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BSKOOL_3329
48@ = 2
goto @BSKOOL_3375

:BSKOOL_3329
gosub @BSKOOL_18609
gosub @BSKOOL_20112
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_3368
goto @BSKOOL_3375

:BSKOOL_3368
goto @BSKOOL_3251

:BSKOOL_3375
gosub @BSKOOL_20195
gosub @BSKOOL_20534
if 
  48@ == 2
goto_if_false @BSKOOL_3421
goto @BSKOOL_632
goto @BSKOOL_3428

:BSKOOL_3421
goto @BSKOOL_1759

:BSKOOL_3428
goto @BSKOOL_1976

:BSKOOL_3435
if 
  $mission_selection == 2
goto_if_false @BSKOOL_4860

:BSKOOL_3453
gosub @BSKOOL_16186

:BSKOOL_3460
$perfect_heading = 0.0
$car_timer = 11000
35@ = 182
gosub @BSKOOL_16223
38@ = Car.Create(461, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading(38@, 180.0)
gosub @BSKOOL_20605
if 
  34@ == 0
goto_if_false @BSKOOL_3616
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_3573
49@ = Char.CreateInsideCar(38@, PedType.CivFemale, 50)

:BSKOOL_3573
Camera.SetFixedPosition(1130.66, 1264.4, 14.5, 0.0, 0.0, 0.0)
Camera.PointAtCar(38@, CameraMode.Fixed, SwitchType.JumpCut)
return 

:BSKOOL_3616
$area_check1ax, $area_check1ay, $player_z = Car.GetOffsetInWorldCoords(38@, -2.0, 82.0, 0.0)
$area_check1bx, $area_check1by, $player_z = Car.GetOffsetInWorldCoords(38@, 2.0, 88.0, 0.0)
$finish_rightx, $finish_righty, $perfect_positionz = Car.GetOffsetInWorldCoords(38@, 0.0, 0.0, 0.0)
Text.ClearPrints
Text.PrintNow('BS_B_1', 5000, 4)
gosub @BSKOOL_16945

:BSKOOL_3728
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BSKOOL_3763
48@ = 2
goto @BSKOOL_4800

:BSKOOL_3763
if 
  $car_started == 0
goto_if_false @BSKOOL_3811
Text.PrintNow('BS_B_1', 5000, 4)
gosub @BSKOOL_17088
goto @BSKOOL_4853

:BSKOOL_3811
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_4853
gosub @BSKOOL_17246
if 
  $variablec == 0
goto_if_false @BSKOOL_3889
if 
  Car.IsInArea2D(38@, $area_check1ax, $area_check1ay, $area_check1bx, $area_check1by, False)
goto_if_false @BSKOOL_3889
$variablec = 1

:BSKOOL_3889
if or
  Car.IsStopped(38@)
  not Char.IsInCar($scplayer, 38@)
goto_if_false @BSKOOL_4853
gosub @BSKOOL_17280
gosub @BSKOOL_17293
if 
  $variablec == 0
goto_if_false @BSKOOL_3952
$position_score = 0

:BSKOOL_3952
42@ = Car.GetHeading(38@)
cset_lvar_int_to_lvar_float 39@ =# 42@
if 
  39@ == 0
goto_if_false @BSKOOL_4000
$heading_score = 100
goto @BSKOOL_4285

:BSKOOL_4000
if 
  39@ == 360
goto_if_false @BSKOOL_4033
$heading_score = 100
goto @BSKOOL_4285

:BSKOOL_4033
if 
  39@ > 0
goto_if_false @BSKOOL_4076
if 
  21 > 39@
goto_if_false @BSKOOL_4076
$heading_score = 100

:BSKOOL_4076
if 
  39@ > 179
goto_if_false @BSKOOL_4155
if 
  340 > 39@
goto_if_false @BSKOOL_4155
39@ -= 180
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.62
cset_var_int_to_var_float $heading_score =# $variableb
goto @BSKOOL_4285

:BSKOOL_4155
if 
  39@ > 339
goto_if_false @BSKOOL_4200
if 
  360 > 39@
goto_if_false @BSKOOL_4200
$heading_score = 100

:BSKOOL_4200
if 
  39@ > 20
goto_if_false @BSKOOL_4285
if 
  180 > 39@
goto_if_false @BSKOOL_4285
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.62
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @BSKOOL_4285

:BSKOOL_4285
if 
  1 > $heading_score
goto_if_false @BSKOOL_4310
$heading_score = 0

:BSKOOL_4310
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_4358
$overall_score = 0

:BSKOOL_4358
gosub @BSKOOL_17537
gosub @BSKOOL_17915
if 
  is_int_var_greater_than_int_var $overall_score > $bs_the180_best_score
goto_if_false @BSKOOL_4578
set_lvar_int_to_var_int 67@ = $bs_the180_best_score
set_var_int_to_var_int $bs_the180_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18379
if 
  65@ == 4
goto_if_false @BSKOOL_4478
if 
  $bs_the180_goldachieved == 0
goto_if_false @BSKOOL_4478
$bs_the180_goldachieved = 1
$bs_the180_silverachieved = 1
$bs_the180_bronzeachieved = 1

:BSKOOL_4478
if 
  65@ == 3
goto_if_false @BSKOOL_4528
if 
  $bs_the180_silverachieved == 0
goto_if_false @BSKOOL_4528
$bs_the180_silverachieved = 1
$bs_the180_bronzeachieved = 1

:BSKOOL_4528
if 
  65@ == 2
goto_if_false @BSKOOL_4571
if 
  $bs_the180_bronzeachieved == 0
goto_if_false @BSKOOL_4571
$bs_the180_bronzeachieved = 1

:BSKOOL_4571
goto @BSKOOL_4585

:BSKOOL_4578
65@ = 0

:BSKOOL_4585
if 
  $bs_open_tests == 2
goto_if_false @BSKOOL_4669
if 
  $overall_score > 69
goto_if_false @BSKOOL_4669
59@ = 2
$bs_open_tests = 3
48@ = 2
37@ += 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1185)

:BSKOOL_4669
TIMERA = 0

:BSKOOL_4676
if 
  TIMERA > -1
goto_if_false @BSKOOL_4800
wait 0
gosub @BSKOOL_17944
if 
  59@ <> 2
goto_if_false @BSKOOL_4754
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BSKOOL_4754
48@ = 2
goto @BSKOOL_4800

:BSKOOL_4754
gosub @BSKOOL_18609
gosub @BSKOOL_20112
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_4793
goto @BSKOOL_4800

:BSKOOL_4793
goto @BSKOOL_4676

:BSKOOL_4800
gosub @BSKOOL_20195
gosub @BSKOOL_20534
if 
  48@ == 2
goto_if_false @BSKOOL_4846
goto @BSKOOL_632
goto @BSKOOL_4853

:BSKOOL_4846
goto @BSKOOL_3453

:BSKOOL_4853
goto @BSKOOL_3728

:BSKOOL_4860
if 
  $mission_selection == 3
goto_if_false @BSKOOL_6628

:BSKOOL_4878
gosub @BSKOOL_16186

:BSKOOL_4885
$perfect_heading = 180.0
$car_timer = 9000
35@ = 183
gosub @BSKOOL_16223
38@ = Car.Create(521, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading(38@, 180.0)
gosub @BSKOOL_20605
if 
  34@ == 0
goto_if_false @BSKOOL_5041
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_4998
49@ = Char.CreateInsideCar(38@, PedType.CivFemale, 50)

:BSKOOL_4998
Camera.SetFixedPosition(1125.66, 1283.4, 10.5, 0.0, 0.0, 0.0)
Camera.PointAtCar(38@, CameraMode.Fixed, SwitchType.JumpCut)
return 

:BSKOOL_5041
$area_check1ax, $area_check1ay, $player_z = Car.GetOffsetInWorldCoords(38@, -3.5, 56.0, 0.0)
$area_check1bx, $area_check1by, $player_z = Car.GetOffsetInWorldCoords(38@, 3.5, 84.0, 0.0)
$finish_rightx, $finish_righty, $perfect_positionz = Car.GetOffsetInWorldCoords(38@, 0.0, 124.0, 0.0)
Text.ClearPrints
Text.PrintNow('BS_C_1', 5000, 4)
gosub @BSKOOL_16945

:BSKOOL_5153
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BSKOOL_5188
48@ = 2
goto @BSKOOL_6568

:BSKOOL_5188
if 
  $car_started == 0
goto_if_false @BSKOOL_5236
Text.PrintNow('BS_C_1', 5000, 4)
gosub @BSKOOL_17088
goto @BSKOOL_6621

:BSKOOL_5236
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_6621
gosub @BSKOOL_17246
if 
  $variablec == 0
goto_if_false @BSKOOL_5314
if 
  Car.IsInArea2D(38@, $area_check1ax, $area_check1ay, $area_check1bx, $area_check1by, False)
goto_if_false @BSKOOL_5314
$variablec = 1

:BSKOOL_5314
if 
  $variablec == 1
goto_if_false @BSKOOL_5455
if 
  not Car.IsInArea2D(38@, $area_check1ax, $area_check1ay, $area_check1bx, $area_check1by, False)
goto_if_false @BSKOOL_5432
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if or
  is_float_var_greater_than_float_var $player_x > $area_check1ax
  is_float_var_greater_than_float_var $area_check1bx > $player_x
  is_float_var_greater_than_float_var $player_y > $area_check1ay
goto_if_false @BSKOOL_5425
gosub @BSKOOL_17280
goto @BSKOOL_5432

:BSKOOL_5425
$variablec = 2

:BSKOOL_5432
if 
  not Player.IsPerformingWheelie($player1)
goto_if_false @BSKOOL_5455
gosub @BSKOOL_17280

:BSKOOL_5455
42@ = Car.GetHeading(38@)
set_lvar_float_to_lvar_float 44@ = 42@
if 
  44@ <> 0.0
goto_if_false @BSKOOL_5605
if and
  360.0 > 44@
  44@ > 180.0
goto_if_false @BSKOOL_5533
44@ += 0.1

:BSKOOL_5533
if 
  44@ == 360.0
goto_if_false @BSKOOL_5564
  44@ > 0.0

:BSKOOL_5564
if and
  180.0 >= 44@
  44@ > 0.0
goto_if_false @BSKOOL_5605
44@ -= 0.1

:BSKOOL_5605
if or
  Car.IsStopped(38@)
  not Char.IsInCar($scplayer, 38@)
goto_if_false @BSKOOL_6621
gosub @BSKOOL_17280
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
if 
  $variablec > 0
goto_if_false @BSKOOL_5684
gosub @BSKOOL_17293
goto @BSKOOL_5691

:BSKOOL_5684
$position_score = 0

:BSKOOL_5691
42@ = Car.GetHeading(38@)
cset_lvar_int_to_lvar_float 39@ =# 42@
if 
  $variablec > 0
goto_if_false @BSKOOL_6039
if 
  39@ == 0
goto_if_false @BSKOOL_5757
$heading_score = 0
goto @BSKOOL_6053

:BSKOOL_5757
if 
  39@ == 180
goto_if_false @BSKOOL_5790
$heading_score = 100
goto @BSKOOL_6053

:BSKOOL_5790
if 
  39@ == 360
goto_if_false @BSKOOL_5823
$heading_score = 0
goto @BSKOOL_6053

:BSKOOL_5823
if 
  39@ > 0
goto_if_false @BSKOOL_5893
if 
  175 > 39@
goto_if_false @BSKOOL_5893
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @BSKOOL_6053

:BSKOOL_5893
if 
  39@ > 174
goto_if_false @BSKOOL_5938
if 
  186 > 39@
goto_if_false @BSKOOL_5938
$heading_score = 100

:BSKOOL_5938
if 
  39@ > 185
goto_if_false @BSKOOL_6032
if 
  360 > 39@
goto_if_false @BSKOOL_6032
39@ -= 180
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @BSKOOL_6053

:BSKOOL_6032
goto @BSKOOL_6053

:BSKOOL_6039
$heading_score = 0
goto @BSKOOL_6053

:BSKOOL_6053
if 
  1 > $heading_score
goto_if_false @BSKOOL_6078
$heading_score = 0

:BSKOOL_6078
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_6126
$overall_score = 0

:BSKOOL_6126
gosub @BSKOOL_17537
gosub @BSKOOL_17915
if 
  is_int_var_greater_than_int_var $overall_score > $bs_wheelie_best_score
goto_if_false @BSKOOL_6346
set_lvar_int_to_var_int 67@ = $bs_wheelie_best_score
set_var_int_to_var_int $bs_wheelie_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18379
if 
  65@ == 4
goto_if_false @BSKOOL_6246
if 
  $bs_wheelie_goldachieved == 0
goto_if_false @BSKOOL_6246
$bs_wheelie_goldachieved = 1
$bs_wheelie_silverachieved = 1
$bs_wheelie_bronzeachieved = 1

:BSKOOL_6246
if 
  65@ == 3
goto_if_false @BSKOOL_6296
if 
  $bs_wheelie_silverachieved == 0
goto_if_false @BSKOOL_6296
$bs_wheelie_silverachieved = 1
$bs_wheelie_bronzeachieved = 1

:BSKOOL_6296
if 
  65@ == 2
goto_if_false @BSKOOL_6339
if 
  $bs_wheelie_bronzeachieved == 0
goto_if_false @BSKOOL_6339
$bs_wheelie_bronzeachieved = 1

:BSKOOL_6339
goto @BSKOOL_6353

:BSKOOL_6346
65@ = 0

:BSKOOL_6353
if 
  $bs_open_tests == 3
goto_if_false @BSKOOL_6437
if 
  $overall_score > 69
goto_if_false @BSKOOL_6437
59@ = 2
$bs_open_tests = 4
48@ = 2
37@ += 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1185)

:BSKOOL_6437
TIMERA = 0

:BSKOOL_6444
if 
  TIMERA > -1
goto_if_false @BSKOOL_6568
wait 0
gosub @BSKOOL_17944
if 
  59@ <> 2
goto_if_false @BSKOOL_6522
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BSKOOL_6522
48@ = 2
goto @BSKOOL_6568

:BSKOOL_6522
gosub @BSKOOL_18609
gosub @BSKOOL_20112
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_6561
goto @BSKOOL_6568

:BSKOOL_6561
goto @BSKOOL_6444

:BSKOOL_6568
gosub @BSKOOL_20534
gosub @BSKOOL_20195
if 
  48@ == 2
goto_if_false @BSKOOL_6614
goto @BSKOOL_632
goto @BSKOOL_6621

:BSKOOL_6614
goto @BSKOOL_4878

:BSKOOL_6621
goto @BSKOOL_5153

:BSKOOL_6628
if 
  $mission_selection == 5
goto_if_false @BSKOOL_8404

:BSKOOL_6646
gosub @BSKOOL_16186

:BSKOOL_6653
$perfect_heading = 180.0
$car_timer = 9000
35@ = 184
gosub @BSKOOL_16223
38@ = Car.Create(521, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading(38@, 180.0)
gosub @BSKOOL_20605
if 
  34@ == 0
goto_if_false @BSKOOL_6809
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_6766
49@ = Char.CreateInsideCar(38@, PedType.CivFemale, 50)

:BSKOOL_6766
Camera.SetFixedPosition(1125.66, 1283.4, 10.5, 0.0, 0.0, 0.0)
Camera.PointAtCar(38@, CameraMode.Fixed, SwitchType.JumpCut)
return 

:BSKOOL_6809
$area_check1ax, $area_check1ay, $player_z = Car.GetOffsetInWorldCoords(38@, -3.5, 56.0, 0.0)
$area_check1bx, $area_check1by, $player_z = Car.GetOffsetInWorldCoords(38@, 3.5, 84.0, 0.0)
$finish_rightx, $finish_righty, $perfect_positionz = Car.GetOffsetInWorldCoords(38@, 0.0, 124.0, 0.0)
Text.ClearPrints
Text.PrintNow('BS_D_1', 5000, 4)
gosub @BSKOOL_16945

:BSKOOL_6921
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BSKOOL_6956
48@ = 2
goto @BSKOOL_8344

:BSKOOL_6956
if 
  $car_started == 0
goto_if_false @BSKOOL_7004
Text.PrintNow('BS_D_1', 5000, 4)
gosub @BSKOOL_17088
goto @BSKOOL_8397

:BSKOOL_7004
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_8397
gosub @BSKOOL_17246
if 
  $variablec == 0
goto_if_false @BSKOOL_7082
if 
  Car.IsInArea2D(38@, $area_check1ax, $area_check1ay, $area_check1bx, $area_check1by, False)
goto_if_false @BSKOOL_7082
$variablec = 1

:BSKOOL_7082
if 
  $variablec == 1
goto_if_false @BSKOOL_7223
if 
  not Car.IsInArea2D(38@, $area_check1ax, $area_check1ay, $area_check1bx, $area_check1by, False)
goto_if_false @BSKOOL_7200
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if or
  is_float_var_greater_than_float_var $player_x > $area_check1ax
  is_float_var_greater_than_float_var $area_check1bx > $player_x
  is_float_var_greater_than_float_var $player_y > $area_check1ay
goto_if_false @BSKOOL_7193
gosub @BSKOOL_17280
goto @BSKOOL_7200

:BSKOOL_7193
$variablec = 2

:BSKOOL_7200
if 
  not Player.IsPerformingStoppie($player1)
goto_if_false @BSKOOL_7223
gosub @BSKOOL_17280

:BSKOOL_7223
42@ = Car.GetHeading(38@)
set_lvar_float_to_lvar_float 44@ = 42@
if 
  44@ <> 0.0
goto_if_false @BSKOOL_7373
if and
  360.0 > 44@
  44@ > 180.0
goto_if_false @BSKOOL_7301
44@ += 0.1

:BSKOOL_7301
if 
  44@ == 360.0
goto_if_false @BSKOOL_7332
  44@ > 0.0

:BSKOOL_7332
if and
  180.0 >= 44@
  44@ > 0.0
goto_if_false @BSKOOL_7373
44@ -= 0.1

:BSKOOL_7373
43@ = Car.GetSpeed(38@)
if or
  Car.IsStopped(38@)
  not Char.IsInCar($scplayer, 38@)
goto_if_false @BSKOOL_8397
gosub @BSKOOL_17280
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
if 
  $variablec > 0
goto_if_false @BSKOOL_7460
gosub @BSKOOL_17293
goto @BSKOOL_7467

:BSKOOL_7460
$position_score = 0

:BSKOOL_7467
42@ = Car.GetHeading(38@)
cset_lvar_int_to_lvar_float 39@ =# 42@
if 
  $variablec > 0
goto_if_false @BSKOOL_7815
if 
  39@ == 0
goto_if_false @BSKOOL_7533
$heading_score = 0
goto @BSKOOL_7829

:BSKOOL_7533
if 
  39@ == 180
goto_if_false @BSKOOL_7566
$heading_score = 100
goto @BSKOOL_7829

:BSKOOL_7566
if 
  39@ == 360
goto_if_false @BSKOOL_7599
$heading_score = 0
goto @BSKOOL_7829

:BSKOOL_7599
if 
  39@ > 0
goto_if_false @BSKOOL_7669
if 
  175 > 39@
goto_if_false @BSKOOL_7669
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @BSKOOL_7829

:BSKOOL_7669
if 
  39@ > 174
goto_if_false @BSKOOL_7714
if 
  186 > 39@
goto_if_false @BSKOOL_7714
$heading_score = 100

:BSKOOL_7714
if 
  39@ > 185
goto_if_false @BSKOOL_7808
if 
  360 > 39@
goto_if_false @BSKOOL_7808
39@ -= 180
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @BSKOOL_7829

:BSKOOL_7808
goto @BSKOOL_7829

:BSKOOL_7815
$heading_score = 0
goto @BSKOOL_7829

:BSKOOL_7829
if 
  1 > $heading_score
goto_if_false @BSKOOL_7854
$heading_score = 0

:BSKOOL_7854
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_7902
$overall_score = 0

:BSKOOL_7902
gosub @BSKOOL_17537
gosub @BSKOOL_17915
if 
  is_int_var_greater_than_int_var $overall_score > $bs_stoppie_best_score
goto_if_false @BSKOOL_8122
set_lvar_int_to_var_int 67@ = $bs_stoppie_best_score
set_var_int_to_var_int $bs_stoppie_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18379
if 
  65@ == 4
goto_if_false @BSKOOL_8022
if 
  $bs_stoppie_goldachieved == 0
goto_if_false @BSKOOL_8022
$bs_stoppie_goldachieved = 1
$bs_stoppie_silverachieved = 1
$bs_stoppie_bronzeachieved = 1

:BSKOOL_8022
if 
  65@ == 3
goto_if_false @BSKOOL_8072
if 
  $bs_stoppie_silverachieved == 0
goto_if_false @BSKOOL_8072
$bs_stoppie_silverachieved = 1
$bs_stoppie_bronzeachieved = 1

:BSKOOL_8072
if 
  65@ == 2
goto_if_false @BSKOOL_8115
if 
  $bs_stoppie_bronzeachieved == 0
goto_if_false @BSKOOL_8115
$bs_stoppie_bronzeachieved = 1

:BSKOOL_8115
goto @BSKOOL_8129

:BSKOOL_8122
65@ = 0

:BSKOOL_8129
if 
  $bs_open_tests == 5
goto_if_false @BSKOOL_8213
if 
  $overall_score > 69
goto_if_false @BSKOOL_8213
59@ = 2
$bs_open_tests = 6
48@ = 2
37@ += 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1185)

:BSKOOL_8213
TIMERA = 0

:BSKOOL_8220
if 
  TIMERA > -1
goto_if_false @BSKOOL_8344
wait 0
gosub @BSKOOL_17944
if 
  59@ <> 2
goto_if_false @BSKOOL_8298
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BSKOOL_8298
48@ = 2
goto @BSKOOL_8344

:BSKOOL_8298
gosub @BSKOOL_18609
gosub @BSKOOL_20112
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_8337
goto @BSKOOL_8344

:BSKOOL_8337
goto @BSKOOL_8220

:BSKOOL_8344
gosub @BSKOOL_20534
gosub @BSKOOL_20195
if 
  48@ == 2
goto_if_false @BSKOOL_8390
goto @BSKOOL_632
goto @BSKOOL_8397

:BSKOOL_8390
goto @BSKOOL_6646

:BSKOOL_8397
goto @BSKOOL_6921

:BSKOOL_8404
if 
  $mission_selection == 4
goto_if_false @BSKOOL_9997

:BSKOOL_8422
gosub @BSKOOL_16186

:BSKOOL_8429
$perfect_heading = 180.0
$car_timer = 9000
35@ = 185
gosub @BSKOOL_16223
38@ = Car.Create(468, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading(38@, $perfect_heading)
$area_check1ax, $area_check1ay, $player_z = Car.GetOffsetInWorldCoords(38@, -2.5, 46.0, 2.0)
$area_check1bx, $area_check1by, $player_z = Car.GetOffsetInWorldCoords(38@, 2.5, 50.0, 2.0)
gosub @BSKOOL_20605
if 
  34@ == 0
goto_if_false @BSKOOL_8641
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_8598
49@ = Char.CreateInsideCar(38@, PedType.CivFemale, 50)

:BSKOOL_8598
Camera.SetFixedPosition(1127.66, 1288.4, 12.75, 0.0, 0.0, 0.0)
Camera.PointAtCar(38@, CameraMode.Fixed, SwitchType.JumpCut)
return 

:BSKOOL_8641
$finish_rightx, $finish_righty, $perfect_positionz = Car.GetOffsetInWorldCoords(38@, 0.0, 124.0, 0.0)
Text.ClearPrints
Text.PrintNow('BS_E_1', 5000, 4)
gosub @BSKOOL_16945

:BSKOOL_8695
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BSKOOL_8730
48@ = 2
goto @BSKOOL_9937

:BSKOOL_8730
if 
  $car_started == 0
goto_if_false @BSKOOL_8778
Text.PrintNow('BS_E_1', 5000, 4)
gosub @BSKOOL_17088
goto @BSKOOL_9990

:BSKOOL_8778
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_9990
gosub @BSKOOL_17246
if 
  $variablec == 0
goto_if_false @BSKOOL_8856
if 
  Car.IsInArea2D(38@, $area_check1ax, $area_check1ay, $area_check1bx, $area_check1by, False)
goto_if_false @BSKOOL_8856
$variablec = 1

:BSKOOL_8856
if 
  $variablec == 1
goto_if_false @BSKOOL_8974
if 
  not Car.IsInArea2D(38@, $area_check1ax, $area_check1ay, $area_check1bx, $area_check1by, False)
goto_if_false @BSKOOL_8974
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if or
  is_float_var_greater_than_float_var $player_x > $area_check1ax
  is_float_var_greater_than_float_var $area_check1bx > $player_x
  is_float_var_greater_than_float_var $player_y > $area_check1ay
goto_if_false @BSKOOL_8967
gosub @BSKOOL_17280
goto @BSKOOL_8974

:BSKOOL_8967
$variablec = 2

:BSKOOL_8974
if or
  Car.IsStopped(38@)
  not Char.IsInCar($scplayer, 38@)
goto_if_false @BSKOOL_9990
gosub @BSKOOL_17280
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
if 
  $variablec > 0
goto_if_false @BSKOOL_9053
gosub @BSKOOL_17293
goto @BSKOOL_9060

:BSKOOL_9053
$position_score = 0

:BSKOOL_9060
42@ = Car.GetHeading(38@)
cset_lvar_int_to_lvar_float 39@ =# 42@
if 
  $variablec > 0
goto_if_false @BSKOOL_9408
if 
  39@ == 0
goto_if_false @BSKOOL_9126
$heading_score = 0
goto @BSKOOL_9422

:BSKOOL_9126
if 
  39@ == 180
goto_if_false @BSKOOL_9159
$heading_score = 100
goto @BSKOOL_9422

:BSKOOL_9159
if 
  39@ == 360
goto_if_false @BSKOOL_9192
$heading_score = 0
goto @BSKOOL_9422

:BSKOOL_9192
if 
  39@ > 0
goto_if_false @BSKOOL_9262
if 
  175 > 39@
goto_if_false @BSKOOL_9262
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @BSKOOL_9422

:BSKOOL_9262
if 
  39@ > 174
goto_if_false @BSKOOL_9307
if 
  186 > 39@
goto_if_false @BSKOOL_9307
$heading_score = 100

:BSKOOL_9307
if 
  39@ > 185
goto_if_false @BSKOOL_9401
if 
  360 > 39@
goto_if_false @BSKOOL_9401
39@ -= 180
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @BSKOOL_9422

:BSKOOL_9401
goto @BSKOOL_9422

:BSKOOL_9408
$heading_score = 0
goto @BSKOOL_9422

:BSKOOL_9422
if 
  1 > $heading_score
goto_if_false @BSKOOL_9447
$heading_score = 0

:BSKOOL_9447
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_9495
$overall_score = 0

:BSKOOL_9495
gosub @BSKOOL_17537
gosub @BSKOOL_17915
if 
  is_int_var_greater_than_int_var $overall_score > $bs_jumpstop_best_score
goto_if_false @BSKOOL_9715
set_lvar_int_to_var_int 67@ = $bs_jumpstop_best_score
set_var_int_to_var_int $bs_jumpstop_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18379
if 
  65@ == 4
goto_if_false @BSKOOL_9615
if 
  $bs_jumpstop_goldachieved == 0
goto_if_false @BSKOOL_9615
$bs_jumpstop_goldachieved = 1
$bs_jumpstop_silverachieved = 1
$bs_jumpstop_bronzeachieved = 1

:BSKOOL_9615
if 
  65@ == 3
goto_if_false @BSKOOL_9665
if 
  $bs_jumpstop_silverachieved == 0
goto_if_false @BSKOOL_9665
$bs_jumpstop_silverachieved = 1
$bs_jumpstop_bronzeachieved = 1

:BSKOOL_9665
if 
  65@ == 2
goto_if_false @BSKOOL_9708
if 
  $bs_jumpstop_bronzeachieved == 0
goto_if_false @BSKOOL_9708
$bs_jumpstop_bronzeachieved = 1

:BSKOOL_9708
goto @BSKOOL_9722

:BSKOOL_9715
65@ = 0

:BSKOOL_9722
if 
  $bs_open_tests == 4
goto_if_false @BSKOOL_9806
if 
  $overall_score > 69
goto_if_false @BSKOOL_9806
59@ = 2
$bs_open_tests = 5
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1185)
48@ = 2
37@ += 1

:BSKOOL_9806
TIMERA = 0

:BSKOOL_9813
if 
  TIMERA > -1
goto_if_false @BSKOOL_9937
wait 0
gosub @BSKOOL_17944
if 
  59@ <> 2
goto_if_false @BSKOOL_9891
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BSKOOL_9891
48@ = 2
goto @BSKOOL_9937

:BSKOOL_9891
gosub @BSKOOL_18609
gosub @BSKOOL_20112
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_9930
goto @BSKOOL_9937

:BSKOOL_9930
goto @BSKOOL_9813

:BSKOOL_9937
gosub @BSKOOL_20195
gosub @BSKOOL_20534
if 
  48@ == 2
goto_if_false @BSKOOL_9983
goto @BSKOOL_632
goto @BSKOOL_9990

:BSKOOL_9983
goto @BSKOOL_8422

:BSKOOL_9990
goto @BSKOOL_8695

:BSKOOL_9997
if 
  $mission_selection == 6
goto_if_false @BSKOOL_11872

:BSKOOL_10015
gosub @BSKOOL_16186

:BSKOOL_10022
$perfect_heading = 180.0
$car_timer = 9000
35@ = 186
gosub @BSKOOL_16223
38@ = Car.Create(522, $perfect_positionx, $perfect_positiony, $perfect_positionz)
Car.SetHeading(38@, $perfect_heading)
$area_check1ax, $area_check1ay, $player_z = Car.GetOffsetInWorldCoords(38@, -2.5, 46.0, 2.0)
$area_check1bx, $area_check1by, $player_z = Car.GetOffsetInWorldCoords(38@, 2.5, 52.0, 2.0)
gosub @BSKOOL_20605
if 
  34@ == 0
goto_if_false @BSKOOL_10234
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_10191
49@ = Char.CreateInsideCar(38@, PedType.CivFemale, 50)

:BSKOOL_10191
Camera.SetFixedPosition(1122.66, 1265.4, 15.75, 0.0, 0.0, 0.0)
Camera.PointAtCar(38@, CameraMode.Fixed, SwitchType.JumpCut)
return 

:BSKOOL_10234
$finish_rightx, $finish_righty, $perfect_positionz = Car.GetOffsetInWorldCoords(38@, 0.0, 114.0, 0.0)
Text.ClearPrints
Text.PrintNow('BS_F_1', 5000, 4)
gosub @BSKOOL_16945

:BSKOOL_10288
wait 0
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BSKOOL_10323
48@ = 2
goto @BSKOOL_11673

:BSKOOL_10323
if 
  $car_started == 0
goto_if_false @BSKOOL_10371
Text.PrintNow('BS_F_1', 5000, 4)
gosub @BSKOOL_17088
goto @BSKOOL_11865

:BSKOOL_10371
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_11865
gosub @BSKOOL_17246
if 
  $variablec == 0
goto_if_false @BSKOOL_10449
if 
  Car.IsInArea2D(38@, $area_check1ax, $area_check1ay, $area_check1bx, $area_check1by, False)
goto_if_false @BSKOOL_10449
$variablec = 1

:BSKOOL_10449
if 
  $variablec == 1
goto_if_false @BSKOOL_10567
if 
  not Car.IsInArea2D(38@, $area_check1ax, $area_check1ay, $area_check1bx, $area_check1by, False)
goto_if_false @BSKOOL_10567
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if or
  is_float_var_greater_than_float_var $player_x > $area_check1ax
  is_float_var_greater_than_float_var $area_check1bx > $player_x
  is_float_var_greater_than_float_var $player_y > $area_check1ay
goto_if_false @BSKOOL_10560
gosub @BSKOOL_17280
goto @BSKOOL_10567

:BSKOOL_10560
$variablec = 2

:BSKOOL_10567
if 
  $variablec == 2
goto_if_false @BSKOOL_10613
if 
  not Car.IsInAirProper(38@)
goto_if_false @BSKOOL_10613
70@ = Clock.GetGameTimer()
$variablec = 3

:BSKOOL_10613
if 
  $variablec == 3
goto_if_false @BSKOOL_10699
69@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 68@ = 69@
sub_int_lvar_from_int_lvar 68@ -= 70@
if 
  68@ > 250
goto_if_false @BSKOOL_10699
if or
  not Player.IsPerformingStoppie($player1)
  Player.IsPerformingWheelie($player1)
goto_if_false @BSKOOL_10699
gosub @BSKOOL_17280

:BSKOOL_10699
if or
  Car.IsStopped(38@)
  not Char.IsInCar($scplayer, 38@)
goto_if_false @BSKOOL_11865
gosub @BSKOOL_17280
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
if 
  $variablec > 0
goto_if_false @BSKOOL_10778
gosub @BSKOOL_17293
goto @BSKOOL_10785

:BSKOOL_10778
$position_score = 0

:BSKOOL_10785
42@ = Car.GetHeading(38@)
cset_lvar_int_to_lvar_float 39@ =# 42@
if 
  $variablec > 0
goto_if_false @BSKOOL_11133
if 
  39@ == 0
goto_if_false @BSKOOL_10851
$heading_score = 0
goto @BSKOOL_11147

:BSKOOL_10851
if 
  39@ == 180
goto_if_false @BSKOOL_10884
$heading_score = 100
goto @BSKOOL_11147

:BSKOOL_10884
if 
  39@ == 360
goto_if_false @BSKOOL_10917
$heading_score = 0
goto @BSKOOL_11147

:BSKOOL_10917
if 
  39@ > 0
goto_if_false @BSKOOL_10987
if 
  175 > 39@
goto_if_false @BSKOOL_10987
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @BSKOOL_11147

:BSKOOL_10987
if 
  39@ > 174
goto_if_false @BSKOOL_11032
if 
  186 > 39@
goto_if_false @BSKOOL_11032
$heading_score = 100

:BSKOOL_11032
if 
  39@ > 185
goto_if_false @BSKOOL_11126
if 
  360 > 39@
goto_if_false @BSKOOL_11126
39@ -= 180
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @BSKOOL_11147

:BSKOOL_11126
goto @BSKOOL_11147

:BSKOOL_11133
$heading_score = 0
goto @BSKOOL_11147

:BSKOOL_11147
if 
  1 > $heading_score
goto_if_false @BSKOOL_11172
$heading_score = 0

:BSKOOL_11172
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_11220
$overall_score = 0

:BSKOOL_11220
gosub @BSKOOL_17537
gosub @BSKOOL_17915
if 
  is_int_var_greater_than_int_var $overall_score > $bs_jumpstoppie_best_score
goto_if_false @BSKOOL_11440
set_lvar_int_to_var_int 67@ = $bs_jumpstoppie_best_score
set_var_int_to_var_int $bs_jumpstoppie_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18379
if 
  65@ == 4
goto_if_false @BSKOOL_11340
if 
  $bs_jumpstoppie_goldachieved == 0
goto_if_false @BSKOOL_11340
$bs_jumpstoppie_goldachieved = 1
$bs_jumpstoppie_silverachieved = 1
$bs_jumpstoppie_bronzeachieved = 1

:BSKOOL_11340
if 
  65@ == 3
goto_if_false @BSKOOL_11390
if 
  $bs_jumpstoppie_silverachieved == 0
goto_if_false @BSKOOL_11390
$bs_jumpstoppie_silverachieved = 1
$bs_jumpstoppie_bronzeachieved = 1

:BSKOOL_11390
if 
  65@ == 2
goto_if_false @BSKOOL_11433
if 
  $bs_jumpstoppie_bronzeachieved == 0
goto_if_false @BSKOOL_11433
$bs_jumpstoppie_bronzeachieved = 1

:BSKOOL_11433
goto @BSKOOL_11447

:BSKOOL_11440
65@ = 0

:BSKOOL_11447
if 
  $bs_passed == 0
goto_if_false @BSKOOL_11542
if 
  $bs_open_tests == 6
goto_if_false @BSKOOL_11542
if 
  $overall_score > 69
goto_if_false @BSKOOL_11542
59@ = 2
$bs_passed = 1
48@ = 2
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1185)

:BSKOOL_11542
TIMERA = 0

:BSKOOL_11549
if 
  TIMERA > -1
goto_if_false @BSKOOL_11673
wait 0
gosub @BSKOOL_17944
if 
  59@ <> 2
goto_if_false @BSKOOL_11627
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BSKOOL_11627
48@ = 2
goto @BSKOOL_11673

:BSKOOL_11627
gosub @BSKOOL_18609
gosub @BSKOOL_20112
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_11666
goto @BSKOOL_11673

:BSKOOL_11666
goto @BSKOOL_11549

:BSKOOL_11673
gosub @BSKOOL_20195
gosub @BSKOOL_20534
if 
  48@ == 2
goto_if_false @BSKOOL_11858
if 
  $bs_passed == 1
goto_if_false @BSKOOL_11844
if 
  $flag_bikeschool_passed_1stime == 0
goto_if_false @BSKOOL_11844
Camera.DoFade(1000, Fade.Out)

:BSKOOL_11748
if 
  Camera.GetFadingStatus
goto_if_false @BSKOOL_11772
wait 0
goto @BSKOOL_11748

:BSKOOL_11772
Char.SetCoordinates($scplayer, 1171.521, 1351.183, 9.9219)
Char.SetHeading($scplayer, 11.0)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.DoFade(2000, Fade.In)

:BSKOOL_11813
if 
  Camera.GetFadingStatus
goto_if_false @BSKOOL_11837
wait 0
goto @BSKOOL_11813

:BSKOOL_11837
goto @BSKOOL_11900

:BSKOOL_11844
goto @BSKOOL_632
goto @BSKOOL_11865

:BSKOOL_11858
goto @BSKOOL_10015

:BSKOOL_11865
goto @BSKOOL_10288

:BSKOOL_11872
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1186)
Text.ClearPrints
return 

:BSKOOL_11900
Camera.DoFade(500, Fade.In)
if 
  $flag_bikeschool_passed_1stime == 0
goto_if_false @BSKOOL_11948
Stat.RegisterOddjobMissionPassed
Stat.PlayerMadeProgress(1)
$flag_bikeschool_passed_1stime = 1
Stat.IncrementFloat(StatId.BikeSkill, 50.0)

:BSKOOL_11948
Text.ClearPrints
Text.PrintBig('BS_Z_7', 5000, TextStyle.MiddleSmallerHigher)
Audio.PlayMissionPassedTune(2)
Player.ClearWantedLevel($player1)
return 

:BSKOOL_11977
Hud.ClearTimer($car_timer)
Text.UseCommands(False)
Hud.Display(True)
Hud.DisplayRadar(True)
Weather.Release
Streaming.MarkModelAsNoLongerNeeded(#TRAFFICCONE)
Streaming.MarkModelAsNoLongerNeeded(#LANDJUMP2)
Streaming.MarkModelAsNoLongerNeeded(521)
Streaming.MarkModelAsNoLongerNeeded(581)
Streaming.MarkModelAsNoLongerNeeded(461)
Streaming.MarkModelAsNoLongerNeeded(522)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.MarkModelAsNoLongerNeeded(50)
if 
  $bs_gold_rewardgiven == 0
goto_if_false @BSKOOL_12218
if 
  $bs_the360_goldachieved == 1
goto_if_false @BSKOOL_12218
if 
  $bs_the180_goldachieved == 1
goto_if_false @BSKOOL_12218
if 
  $bs_wheelie_goldachieved == 1
goto_if_false @BSKOOL_12218
if 
  $bs_stoppie_goldachieved == 1
goto_if_false @BSKOOL_12218
if 
  $bs_jumpstop_goldachieved == 1
goto_if_false @BSKOOL_12218
if 
  $bs_jumpstoppie_goldachieved == 1
goto_if_false @BSKOOL_12218
$bs_gold_rewardgiven = 1
if 
  $bs_silver_rewardgiven == 0
goto_if_false @BSKOOL_12193
$bs_silver_rewardgiven = 1

:BSKOOL_12193
if 
  $bs_bronze_rewardgiven == 0
goto_if_false @BSKOOL_12218
$bs_bronze_rewardgiven = 1

:BSKOOL_12218
if 
  $bs_silver_rewardgiven == 0
goto_if_false @BSKOOL_12376
if 
  $bs_the360_silverachieved == 1
goto_if_false @BSKOOL_12376
if 
  $bs_the180_silverachieved == 1
goto_if_false @BSKOOL_12376
if 
  $bs_wheelie_silverachieved == 1
goto_if_false @BSKOOL_12376
if 
  $bs_stoppie_silverachieved == 1
goto_if_false @BSKOOL_12376
if 
  $bs_jumpstop_silverachieved == 1
goto_if_false @BSKOOL_12376
if 
  $bs_jumpstoppie_silverachieved == 1
goto_if_false @BSKOOL_12376
$bs_silver_rewardgiven = 1
if 
  $bs_bronze_rewardgiven == 0
goto_if_false @BSKOOL_12376
$bs_bronze_rewardgiven = 1

:BSKOOL_12376
if 
  $bs_bronze_rewardgiven == 0
goto_if_false @BSKOOL_12509
if 
  $bs_the360_bronzeachieved == 1
goto_if_false @BSKOOL_12509
if 
  $bs_the180_bronzeachieved == 1
goto_if_false @BSKOOL_12509
if 
  $bs_wheelie_bronzeachieved == 1
goto_if_false @BSKOOL_12509
if 
  $bs_stoppie_bronzeachieved == 1
goto_if_false @BSKOOL_12509
if 
  $bs_jumpstop_bronzeachieved == 1
goto_if_false @BSKOOL_12509
if 
  $bs_jumpstoppie_bronzeachieved == 1
goto_if_false @BSKOOL_12509
$bs_bronze_rewardgiven = 1

:BSKOOL_12509
if 
  $bs_gold_rewardgiven == 1
goto_if_false @BSKOOL_12558
CarGenerator.SetHasBeenOwned($bs_gold_generator, True)
CarGenerator.Switch($bs_gold_generator, 101)
Stat.IncrementFloat(StatId.BikeSkill, 200.0)
$bs_gold_rewardgiven = 2

:BSKOOL_12558
if 
  $bs_silver_rewardgiven == 1
goto_if_false @BSKOOL_12607
CarGenerator.SetHasBeenOwned($bs_silver_generator, True)
CarGenerator.Switch($bs_silver_generator, 101)
Stat.IncrementFloat(StatId.BikeSkill, 100.0)
$bs_silver_rewardgiven = 2

:BSKOOL_12607
if 
  $bs_bronze_rewardgiven == 1
goto_if_false @BSKOOL_12646
CarGenerator.SetHasBeenOwned($bs_bronze_generator, True)
CarGenerator.Switch($bs_bronze_generator, 101)
$bs_bronze_rewardgiven = 2

:BSKOOL_12646
$onmission = 0
Mission.Finish
return 

:BSKOOL_12657
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(8, 320.0, 225.0, 612.0, 438.0, 0, 0, 0, 64@)
if 
  63@ == 1
goto_if_false @BSKOOL_12779
if 
  255 > 64@
goto_if_false @BSKOOL_12772
64@ += 5
if 
  64@ > 255
goto_if_false @BSKOOL_12765
64@ = 255

:BSKOOL_12765
goto @BSKOOL_12779

:BSKOOL_12772
63@ = 2

:BSKOOL_12779
if 
  63@ == 3
goto_if_false @BSKOOL_12861
if 
  64@ > 0
goto_if_false @BSKOOL_12854
64@ -= 5
if 
  0 > 64@
goto_if_false @BSKOOL_12847
64@ = 0

:BSKOOL_12847
goto @BSKOOL_12861

:BSKOOL_12854
63@ = 0

:BSKOOL_12861
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(8, 320.0, 0.0, 640.0, 197.0, 0, 0, 0, 255)
gosub @BSKOOL_16066
Text.SetColor(190, 190, 190, 255)
if 
  $mission_selection == 1
goto_if_false @BSKOOL_13056
Text.Display(322.0, 41.0, 'BS_A')
if 
  $bs_the360_best_score > 69
goto_if_false @BSKOOL_12991
set_lvar_int_to_var_int 66@ = $bs_the360_best_score
goto @BSKOOL_13049

:BSKOOL_12991
set_lvar_int_to_var_int 66@ = $bs_the360_best_score
gosub @BSKOOL_15888
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.SetColor(166, 202, 240, 255)
Text.Display(320.0, 80.0, 'BS_Z_3')

:BSKOOL_13049
gosub @BSKOOL_14558

:BSKOOL_13056
if 
  $mission_selection == 2
goto_if_false @BSKOOL_13193
Text.Display(322.0, 41.0, 'BS_B')
if 
  $bs_the180_best_score > 69
goto_if_false @BSKOOL_13128
set_lvar_int_to_var_int 66@ = $bs_the180_best_score
goto @BSKOOL_13186

:BSKOOL_13128
set_lvar_int_to_var_int 66@ = $bs_the180_best_score
gosub @BSKOOL_15888
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.SetColor(166, 202, 240, 255)
Text.Display(320.0, 80.0, 'BS_Z_3')

:BSKOOL_13186
gosub @BSKOOL_14558

:BSKOOL_13193
if 
  $mission_selection == 3
goto_if_false @BSKOOL_13330
Text.Display(322.0, 41.0, 'BS_C')
if 
  $bs_wheelie_best_score > 69
goto_if_false @BSKOOL_13265
set_lvar_int_to_var_int 66@ = $bs_wheelie_best_score
goto @BSKOOL_13323

:BSKOOL_13265
set_lvar_int_to_var_int 66@ = $bs_wheelie_best_score
gosub @BSKOOL_15888
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.SetColor(166, 202, 240, 255)
Text.Display(320.0, 80.0, 'BS_Z_3')

:BSKOOL_13323
gosub @BSKOOL_14558

:BSKOOL_13330
if 
  $mission_selection == 5
goto_if_false @BSKOOL_13467
Text.Display(322.0, 41.0, 'BS_D')
if 
  $bs_stoppie_best_score > 69
goto_if_false @BSKOOL_13402
set_lvar_int_to_var_int 66@ = $bs_stoppie_best_score
goto @BSKOOL_13460

:BSKOOL_13402
set_lvar_int_to_var_int 66@ = $bs_stoppie_best_score
gosub @BSKOOL_15888
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.SetColor(166, 202, 240, 255)
Text.Display(320.0, 80.0, 'BS_Z_3')

:BSKOOL_13460
gosub @BSKOOL_14558

:BSKOOL_13467
if 
  $mission_selection == 4
goto_if_false @BSKOOL_13604
Text.Display(322.0, 41.0, 'BS_E')
if 
  $bs_jumpstop_best_score > 69
goto_if_false @BSKOOL_13539
set_lvar_int_to_var_int 66@ = $bs_jumpstop_best_score
goto @BSKOOL_13597

:BSKOOL_13539
set_lvar_int_to_var_int 66@ = $bs_jumpstop_best_score
gosub @BSKOOL_15888
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.SetColor(166, 202, 240, 255)
Text.Display(320.0, 80.0, 'BS_Z_3')

:BSKOOL_13597
gosub @BSKOOL_14558

:BSKOOL_13604
if 
  $mission_selection == 6
goto_if_false @BSKOOL_13741
Text.Display(322.0, 41.0, 'BS_F')
if 
  $bs_jumpstoppie_best_score > 69
goto_if_false @BSKOOL_13676
set_lvar_int_to_var_int 66@ = $bs_jumpstoppie_best_score
goto @BSKOOL_13734

:BSKOOL_13676
set_lvar_int_to_var_int 66@ = $bs_jumpstoppie_best_score
gosub @BSKOOL_15888
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.SetColor(166, 202, 240, 255)
Text.Display(320.0, 80.0, 'BS_Z_3')

:BSKOOL_13734
gosub @BSKOOL_14558

:BSKOOL_13741
gosub @BSKOOL_15888
Text.SetColor(248, 211, 7, 255)
Text.Display(105.0, 375.0, 'BS_X_4')
if 
  57@ <> 1
goto_if_false @BSKOOL_13966
gosub @BSKOOL_15888
Text.SetColor(248, 211, 7, 255)
Text.Display(105.0, 325.0, 'BS_X_5')
if 
  $bs_open_tests <> 1
goto_if_false @BSKOOL_13900
gosub @BSKOOL_15888
Text.SetColor(248, 211, 7, 255)
Text.Display(105.0, 350.0, 'BS_X_3')

:BSKOOL_13900
if 
  $bs_open_tests == 1
goto_if_false @BSKOOL_13959
gosub @BSKOOL_15888
Text.SetColor(173, 173, 173, 125)
Text.Display(105.0, 350.0, 'BS_X_3')

:BSKOOL_13959
goto @BSKOOL_14007

:BSKOOL_13966
gosub @BSKOOL_15888
Text.SetColor(248, 211, 7, 255)
Text.Display(105.0, 350.0, 'BS_X_3')

:BSKOOL_14007
gosub @BSKOOL_15888
Text.SetScale(1.45, 2.0)
Text.SetColor(248, 211, 7, 255)
Text.Display(70.0, 372.0, 'BS_X04')
if 
  57@ <> 1
goto_if_false @BSKOOL_14258
Text.SetColor(248, 211, 7, 255)
Text.SetScale(1.45, 2.0)
Text.Display(70.0, 322.0, 'BS_X05')
if 
  $bs_open_tests <> 1
goto_if_false @BSKOOL_14188
Text.SetColor(248, 211, 7, 255)
Text.SetScale(1.45, 2.0)
Text.Display(61.4, 347.0, 'BS_X03')

:BSKOOL_14188
if 
  $bs_open_tests == 1
goto_if_false @BSKOOL_14251
Text.SetColor(248, 211, 7, 125)
Text.SetScale(1.45, 2.0)
Text.Display(61.4, 347.0, 'BS_X03')

:BSKOOL_14251
goto @BSKOOL_14304

:BSKOOL_14258
Text.SetColor(248, 211, 7, 255)
Text.SetScale(1.45, 2.0)
Text.Display(61.4, 347.0, 'BS_X03')

:BSKOOL_14304
Text.SetScale(0.52, 1.45)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 160.0, 317.0, 320.0, -224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, 480.0, 317.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(9, 160.0, 435.0, 320.0, 17.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(9, 480.0, 435.0, -320.0, 17.0, 150, 150, 150, 255)
return 

:BSKOOL_14558
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(8, 320.0, 430.0, 640.0, 250.0, 0, 0, 0, 255)
gosub @BSKOOL_15888
Text.SetRightJustify(False)
Text.SetColor(166, 202, 240, 255)
if 
  66@ > 69
goto_if_false @BSKOOL_14670
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.DisplayWithNumber(320.0, 80.0, 'BS_Y_6', 66@)

:BSKOOL_14670
if 
  70 > 66@
goto_if_false @BSKOOL_14695
65@ = 1

:BSKOOL_14695
if 
  66@ > 69
goto_if_false @BSKOOL_14738
if 
  85 > 66@
goto_if_false @BSKOOL_14738
65@ = 2

:BSKOOL_14738
if 
  66@ > 84
goto_if_false @BSKOOL_14781
if 
  100 > 66@
goto_if_false @BSKOOL_14781
65@ = 3

:BSKOOL_14781
if 
  66@ == 100
goto_if_false @BSKOOL_14806
65@ = 4

:BSKOOL_14806
if 
  65@ > 1
goto_if_false @BSKOOL_14911
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, 250.0, 306.0, -60.0, 60.0, 180, 180, 180, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, 395.0, 306.0, 60.0, 60.0, 180, 180, 180, 255)
goto @BSKOOL_14991

:BSKOOL_14911
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(7, 250.0, 306.0, -60.0, 60.0, 180, 180, 180, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(7, 395.0, 306.0, 60.0, 60.0, 180, 180, 180, 255)

:BSKOOL_14991
Hud.SetSpritesDrawBeforeFade(True)
if 
  65@ == 1
goto_if_false @BSKOOL_15099
Hud.DrawSprite(6, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
gosub @BSKOOL_15888
Text.SetColor(166, 202, 240, 255)
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.Display(320.0, 375.0, 'BS_Z_4')

:BSKOOL_15099
if 
  65@ == 2
goto_if_false @BSKOOL_15203
Hud.DrawSprite(1, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
gosub @BSKOOL_15888
Text.SetColor(166, 202, 240, 255)
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.Display(320.0, 375.0, 'BS_Y_12')

:BSKOOL_15203
if 
  65@ == 3
goto_if_false @BSKOOL_15307
Hud.DrawSprite(2, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
gosub @BSKOOL_15888
Text.SetColor(166, 202, 240, 255)
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.Display(320.0, 375.0, 'BS_Y_11')

:BSKOOL_15307
if 
  65@ == 4
goto_if_false @BSKOOL_15411
Hud.DrawSprite(3, 320.0, 307.0, 110.0, 95.0, 160, 160, 160, 255)
gosub @BSKOOL_15888
Text.SetColor(166, 202, 240, 255)
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.Display(320.0, 375.0, 'BS_Y_10')

:BSKOOL_15411
return 

:BSKOOL_15413
if 
  34@ == 0
goto_if_false @BSKOOL_15588
if 
  $mission_selection == 1
goto_if_false @BSKOOL_15456
gosub @BSKOOL_1766

:BSKOOL_15456
if 
  $mission_selection == 2
goto_if_false @BSKOOL_15481
gosub @BSKOOL_3460

:BSKOOL_15481
if 
  $mission_selection == 3
goto_if_false @BSKOOL_15506
gosub @BSKOOL_4885

:BSKOOL_15506
if 
  $mission_selection == 5
goto_if_false @BSKOOL_15531
gosub @BSKOOL_6653

:BSKOOL_15531
if 
  $mission_selection == 4
goto_if_false @BSKOOL_15556
gosub @BSKOOL_8429

:BSKOOL_15556
if 
  $mission_selection == 6
goto_if_false @BSKOOL_15581
gosub @BSKOOL_10022

:BSKOOL_15581
34@ = 1

:BSKOOL_15588
if 
  34@ == 1
goto_if_false @BSKOOL_15672
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_15672
if 
  not Streaming.HasCarRecordingBeenLoaded(35@)
goto_if_false @BSKOOL_15650
Streaming.RequestCarRecording(35@)
goto @BSKOOL_15672

:BSKOOL_15650
Car.StartPlayback(38@, 35@)
63@ = 3
34@ = 2

:BSKOOL_15672
if 
  34@ == 2
goto_if_false @BSKOOL_15757
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_15743
if 
  not Car.IsPlaybackGoingOn(38@)
goto_if_false @BSKOOL_15736
63@ = 1
34@ = 4

:BSKOOL_15736
goto @BSKOOL_15757

:BSKOOL_15743
63@ = 1
34@ = 4

:BSKOOL_15757
if 
  34@ == 3
goto_if_false @BSKOOL_15789
63@ = 1
34@ = 4

:BSKOOL_15789
if 
  34@ == 4
goto_if_false @BSKOOL_15886
if 
  63@ == 2
goto_if_false @BSKOOL_15886
Car.StopPlayback(38@)
Car.Delete(38@)
Char.Delete(49@)
World.ClearArea($noticeboard_x, $noticeboard_y, $noticeboard_z, 300.0, True)
Hud.ClearTimer($car_timer)
Hud.FreezeTimer(False)
Car.Delete(38@)
gosub @BSKOOL_20534
34@ = 0

:BSKOOL_15886
return 

:BSKOOL_15888
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(False)
Text.SetBackground(False)
Text.SetScale(0.52, 1.45)
Text.SetDropshadow(2, 0, 0, 0, 255)
Text.SetFont(Font.Menu)
return 

:BSKOOL_15950
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(False)
Text.SetBackground(False)
Text.SetScale(0.52, 1.45)
Text.SetDropshadow(2, 0, 0, 0, 255)
Text.SetFont(Font.Menu)
return 
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
Text.SetScale(0.8, 2.6)
Text.SetDropshadow(2, 0, 0, 0, 255)
return 

:BSKOOL_16066
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
Text.SetScale(1.2, 4.0)
Text.SetDropshadow(3, 0, 0, 0, 255)
Text.SetFont(Font.Pricedown)
return 
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
Text.SetScale(1.0, 3.8)
Text.SetDropshadow(2, 0, 0, 0, 255)
Text.SetFont(Font.Menu)
return 

:BSKOOL_16186
Camera.DoFade(500, Fade.Out)

:BSKOOL_16193
if 
  Camera.GetFadingStatus
goto_if_false @BSKOOL_16217
wait 0
goto @BSKOOL_16193

:BSKOOL_16217
Camera.RestoreJumpcut
Camera.SetBehindPlayer
return 

:BSKOOL_16223
$area_check1ax = 0.0
$area_check1ay = 0.0
$area_check1bx = 0.0
$area_check1by = 0.0
$area_check2ax = 0.0
$area_check2ay = 0.0
$area_check2bx = 0.0
$area_check2by = 0.0
$area_check3ax = 0.0
$area_check3ay = 0.0
$area_check3bx = 0.0
$area_check3by = 0.0
$area_check4ax = 0.0
$area_check4ay = 0.0
$area_check4bx = 0.0
$area_check4by = 0.0
$button_pressed = 0
$car_posx = 0.0
$car_posy = 0.0
$cone_coords_x = 0.0
$cone_coords_y = 0.0
$cone_coords_z = 0.0
$cone_circle_radius = 10.0
$car_started = 0
$circle_start_x = 0.0
$circle_start_y = 0.0
$camera_positionx = 0.0
$camera_positiony = 0.0
$camera_positionz = 0.0
$camera_position_int = 0
$dummy_car1_health = 0
$dummy_car2_health = 0
$finish_leftx = 0.0
$finish_lefty = 0.0
$finish_rightx = 0.0
$finish_righty = 0.0
$finished_watching_scores = 0
$heading_score = 0
43@ = 0.0
42@ = 0.0
44@ = 0.0
39@ = 0
40@ = 0
48@ = 0
$lap_counter = 0
$lap1_secs = 0
$lap1_millisecs = 0
$lap2_secs = 0
$lap2_millisecs = 0
$lap3_secs = 0
$lap3_millisecs = 0
$lap4_secs = 0
$lap4_millisecs = 0
$lap5_secs = 0
$lap5_millisecs = 0
$overall_lap1 = 0
$overall_lap2 = 0
$overall_lap3 = 0
$overall_lap4 = 0
$overall_lap5 = 0
$overall_secs = 0
$overall_millisecs = 0
$overall_score = 0
$other_car_damage = 0
set_var_float_to_var_float $perfect_positionx = $start_coordsx
set_var_float_to_var_float $perfect_positiony = $start_coordsy
$perfect_positionz = World.GetGroundZFor3DCoord($perfect_positionx, $perfect_positiony, 50.0)
$player_car_damage = 0
$players_distance_from_perfectpos = 0.0
$position_score = 0
$time_score = 0
41@ = 0
$total_dummy_car1_health = 0
$total_dummy_car2_health = 0
$total_car_damage = 0
$variablea = 0
$variableb = 0.0
$variablec = 0
$variabled = 0
$where_to_place_cones = 0.0
45@ = 0.0
46@ = 0
47@ = 0
59@ = 0
58@ = 0
return 

:BSKOOL_16945
Char.WarpIntoCar($scplayer, 38@)
Car.LockDoors(38@, CarLock.LockedPlayerInside)
wait 0
Hud.DisplayRadar(True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Camera.DoFade(500, Fade.In)

:BSKOOL_16979
if 
  Camera.GetFadingStatus
goto_if_false @BSKOOL_17003
wait 0
goto @BSKOOL_16979

:BSKOOL_17003
Player.SetControl($player1, True)
return 

:BSKOOL_17012
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_17079
if 
  $car_started == 1
goto_if_false @BSKOOL_17072
if 
  not Char.IsInCar($scplayer, 38@)
goto_if_false @BSKOOL_17072
48@ = 1

:BSKOOL_17072
goto @BSKOOL_17086

:BSKOOL_17079
48@ = 1

:BSKOOL_17086
return 

:BSKOOL_17088
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_17131
if 
  Char.IsInCar($scplayer, 38@)
goto_if_false @BSKOOL_17131
43@ = Car.GetSpeed(38@)

:BSKOOL_17131
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @BSKOOL_17244
if 
  43@ > 0.1
goto_if_false @BSKOOL_17244
Text.ClearPrints
if or
  $mission_selection == 1
  $mission_selection == 2
  $mission_selection == 3
  $mission_selection == 5
  $mission_selection == 4
  $mission_selection == 6
goto_if_false @BSKOOL_17237
Hud.DisplayTimer($car_timer, TimerDirection.Down)

:BSKOOL_17237
$car_started = 1

:BSKOOL_17244
return 

:BSKOOL_17246
if 
  $car_timer == 0
goto_if_false @BSKOOL_17278
Player.SetControl($player1, False)
Player.ApplyBrakesToCar($player1, True)

:BSKOOL_17278
return 

:BSKOOL_17280
Player.SetControl($player1, False)
Hud.FreezeTimer(True)
return 

:BSKOOL_17293
$player_x, $player_y, $player_z = Car.GetCoordinates(38@)
$players_distance_from_perfectpos = Math.GetDistanceBetweenCoords2D($player_x, $player_y, $perfect_positionx, $perfect_positiony)
if 
  $players_distance_from_perfectpos > 0.5
goto_if_false @BSKOOL_17430
if 
  10.0 > $players_distance_from_perfectpos
goto_if_false @BSKOOL_17416
$players_distance_from_perfectpos -= 0.5
$players_distance_from_perfectpos *= 10.42
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @BSKOOL_17423

:BSKOOL_17416
$position_score = 0

:BSKOOL_17423
goto @BSKOOL_17437

:BSKOOL_17430
$position_score = 100

:BSKOOL_17437
add_int_var_to_int_var $overall_score += $position_score
return 
40@ = Car.GetHealth(38@)
$player_car_damage = 1000
sub_int_lvar_from_int_var $player_car_damage -= 40@
if 
  $mission_selection == 16
goto_if_false @BSKOOL_17503
$player_car_damage /= 10
goto @BSKOOL_17510

:BSKOOL_17503
$player_car_damage /= 2

:BSKOOL_17510
if 
  $player_car_damage > 100
goto_if_false @BSKOOL_17535
$player_car_damage = 100

:BSKOOL_17535
return 

:BSKOOL_17537
$total_car_damage = 0
$trafficcone_counter = 0
if 
  $mission_selection == 1
goto_if_false @BSKOOL_17628

:BSKOOL_17569
if 
  15 > $trafficcone_counter
goto_if_false @BSKOOL_17628
if 
  Object.HasBeenDamaged($trafficcones($trafficcone_counter,46i))
goto_if_false @BSKOOL_17614
$total_car_damage += 10

:BSKOOL_17614
$trafficcone_counter += 1
goto @BSKOOL_17569

:BSKOOL_17628
if 
  $mission_selection == 2
goto_if_false @BSKOOL_17705

:BSKOOL_17646
if 
  25 > $trafficcone_counter
goto_if_false @BSKOOL_17705
if 
  Object.HasBeenDamaged($trafficcones($trafficcone_counter,46i))
goto_if_false @BSKOOL_17691
$total_car_damage += 10

:BSKOOL_17691
$trafficcone_counter += 1
goto @BSKOOL_17646

:BSKOOL_17705
if or
  $mission_selection == 3
  $mission_selection == 5
goto_if_false @BSKOOL_17789

:BSKOOL_17730
if 
  30 > $trafficcone_counter
goto_if_false @BSKOOL_17789
if 
  Object.HasBeenDamaged($trafficcones($trafficcone_counter,46i))
goto_if_false @BSKOOL_17775
$total_car_damage += 10

:BSKOOL_17775
$trafficcone_counter += 1
goto @BSKOOL_17730

:BSKOOL_17789
if or
  $mission_selection == 4
  $mission_selection == 6
goto_if_false @BSKOOL_17873

:BSKOOL_17814
if 
  14 > $trafficcone_counter
goto_if_false @BSKOOL_17873
if 
  Object.HasBeenDamaged($trafficcones($trafficcone_counter,46i))
goto_if_false @BSKOOL_17859
$total_car_damage += 10

:BSKOOL_17859
$trafficcone_counter += 1
goto @BSKOOL_17814

:BSKOOL_17873
$total_car_damage *= 2
if 
  $total_car_damage > 90
goto_if_false @BSKOOL_17905
$total_car_damage = 100

:BSKOOL_17905
sub_int_var_from_int_var $overall_score -= $total_car_damage
return 

:BSKOOL_17915
if 
  1 > $overall_score
goto_if_false @BSKOOL_17940
$overall_score = 0

:BSKOOL_17940
Text.ClearPrints
return 

:BSKOOL_17944
if 
  not Car.IsDead(38@)
goto_if_false @BSKOOL_18377
if 
  $camera_position_int == 0
goto_if_false @BSKOOL_18069
$camera_positionx, $camera_positiony, $camera_positionz = Car.GetOffsetInWorldCoords(38@, 10.0, 0.0, 5.0)
$camera_positionz = 15.0
Camera.SetFixedPosition($camera_positionx, $camera_positiony, $camera_positionz, 0.0, 0.0, 0.0)
Camera.PointAtCar(38@, CameraMode.Fixed, SwitchType.Interpolation)
Camera.SetInterpolationParameters(50.0, 2000)
$camera_position_int = 1

:BSKOOL_18069
if 
  TIMERA > 3000
goto_if_false @BSKOOL_18216
if 
  6000 > TIMERA
goto_if_false @BSKOOL_18216
if 
  $camera_position_int == 1
goto_if_false @BSKOOL_18216
$camera_positionx, $camera_positiony, $camera_positionz = Car.GetOffsetInWorldCoords(38@, 0.0, 10.0, 5.0)
$camera_positionz = 15.0
Camera.SetFixedPosition($camera_positionx, $camera_positiony, $camera_positionz, 0.0, 0.0, 0.0)
Camera.PointAtCar(38@, CameraMode.Fixed, SwitchType.Interpolation)
Camera.SetInterpolationParameters(50.0, 2000)
$camera_position_int = 2

:BSKOOL_18216
if 
  TIMERA > 6000
goto_if_false @BSKOOL_18344
if 
  $camera_position_int == 2
goto_if_false @BSKOOL_18344
$camera_positionx, $camera_positiony, $camera_positionz = Car.GetOffsetInWorldCoords(38@, -10.0, 0.0, 5.0)
$camera_positionz = 15.0
Camera.SetFixedPosition($camera_positionx, $camera_positiony, $camera_positionz, 0.0, 0.0, 0.0)
Camera.PointAtCar(38@, CameraMode.Fixed, SwitchType.Interpolation)
Camera.SetInterpolationParameters(50.0, 2000)
$camera_position_int = 3

:BSKOOL_18344
if 
  TIMERA > 9000
goto_if_false @BSKOOL_18377
$camera_position_int = 1
TIMERA = 0

:BSKOOL_18377
return 

:BSKOOL_18379
65@ = 0
if 
  $overall_score > 69
goto_if_false @BSKOOL_18468
if 
  85 > $overall_score
goto_if_false @BSKOOL_18468
if and
  67@ > 69
  85 > 67@
goto_if_false @BSKOOL_18461
65@ = 0
goto @BSKOOL_18468

:BSKOOL_18461
65@ = 2

:BSKOOL_18468
if 
  $overall_score > 84
goto_if_false @BSKOOL_18550
if 
  100 > $overall_score
goto_if_false @BSKOOL_18550
if and
  67@ > 84
  100 > 67@
goto_if_false @BSKOOL_18543
65@ = 0
goto @BSKOOL_18550

:BSKOOL_18543
65@ = 3

:BSKOOL_18550
if 
  $overall_score == 100
goto_if_false @BSKOOL_18607
if 
  67@ == 100
goto_if_false @BSKOOL_18600
65@ = 0
goto @BSKOOL_18607

:BSKOOL_18600
65@ = 4

:BSKOOL_18607
return 

:BSKOOL_18609
Hud.Display(False)
Hud.DisplayRadar(False)
Text.ClearPrints
Hud.ClearTimer($car_timer)
if 
  2 > 65@
goto_if_false @BSKOOL_18682
Hud.DrawWindow(160.0, 220.0, 490.0, 400.0, 'BS_Z_8', 3)
goto @BSKOOL_18715

:BSKOOL_18682
Hud.DrawWindow(160.0, 200.0, 490.0, 400.0, 'DUMMY', 3)

:BSKOOL_18715
gosub @BSKOOL_15950
52@, 53@, 54@, 55@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(52@, 53@, 54@, 55@)
Text.Display(170.0, 255.0, 'BS_Y_1')
gosub @BSKOOL_15950
Text.SetRightJustify(True)
Text.SetColor(255, 255, 255, 255)
Text.DisplayWithNumber(475.0, 255.0, 'BS_Y_6', $heading_score)
gosub @BSKOOL_15950
52@, 53@, 54@, 55@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(52@, 53@, 54@, 55@)
Text.Display(170.0, 275.0, 'BS_Y_2')
gosub @BSKOOL_15950
Text.SetRightJustify(True)
Text.SetColor(255, 255, 255, 255)
Text.DisplayWithNumber(475.0, 275.0, 'BS_Y_6', $position_score)
gosub @BSKOOL_15950
52@, 53@, 54@, 55@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(52@, 53@, 54@, 55@)
Text.Display(170.0, 295.0, 'BS_Y_3')
gosub @BSKOOL_15950
Text.SetRightJustify(True)
52@, 53@, 54@, 55@ = Hud.GetColor(0)
Text.SetColor(52@, 53@, 54@, 55@)
Text.DisplayWithNumber(475.0, 295.0, 'BS_Y_6', $total_car_damage)
gosub @BSKOOL_15950
52@, 53@, 54@, 55@ = Hud.GetColor(HudObject.Armor)
Text.SetColor(52@, 53@, 54@, 55@)
Text.Display(170.0, 315.0, 'BS_Y_5')
gosub @BSKOOL_15950
Text.SetRightJustify(True)
Text.SetColor(255, 255, 255, 255)
Text.DisplayWithNumber(475.0, 315.0, 'BS_Y_6', $overall_score)
if or
  59@ == 1
  59@ == 2
goto_if_false @BSKOOL_19519
if 
  65@ > 0
goto_if_false @BSKOOL_19519
Hud.DrawSprite(4, 250.0, 200.0, -60.0, 60.0, 180, 180, 180, 255)
Hud.DrawSprite(4, 392.0, 200.0, 60.0, 60.0, 180, 180, 180, 255)
if 
  65@ == 2
goto_if_false @BSKOOL_19328
Hud.DrawSprite(1, 320.0, 200.0, 110.0, 95.0, 160, 160, 160, 255)

:BSKOOL_19328
if 
  65@ == 3
goto_if_false @BSKOOL_19382
Hud.DrawSprite(2, 320.0, 200.0, 110.0, 95.0, 160, 160, 160, 255)

:BSKOOL_19382
if 
  65@ == 4
goto_if_false @BSKOOL_19436
Hud.DrawSprite(3, 320.0, 200.0, 110.0, 95.0, 160, 160, 160, 255)

:BSKOOL_19436
gosub @BSKOOL_16066
Text.SetEdge(2, 0, 0, 0, 255)
Text.SetScale(1.0, 3.4)
52@, 53@, 54@, 55@ = Hud.GetColor(6)
Text.SetColor(52@, 53@, 54@, 55@)
Text.Display(323.0, 65.0, 'BS_Y_9')

:BSKOOL_19519
if or
  59@ == 1
  59@ == 2
goto_if_false @BSKOOL_19611
gosub @BSKOOL_16066
Text.SetEdge(2, 0, 0, 0, 255)
Text.SetScale(1.0, 3.4)
Text.SetColor(255, 255, 255, 255)
Text.Display(323.0, 110.0, 'BS_Y_8')

:BSKOOL_19611
if 
  59@ <> 2
goto_if_false @BSKOOL_19916
gosub @BSKOOL_15950
Text.SetScale(1.45, 2.0)
52@, 53@, 54@, 55@ = Hud.GetColor(6)
Text.SetColor(52@, 53@, 54@, 55@)
Text.Display(170.0, 342.0, 'BS_X05')
gosub @BSKOOL_15950
Text.SetScale(0.52, 1.45)
52@, 53@, 54@, 55@ = Hud.GetColor(6)
Text.SetColor(52@, 53@, 54@, 55@)
Text.Display(205.0, 345.0, 'BS_Z_5')
gosub @BSKOOL_15950
Text.SetScale(1.45, 2.0)
52@, 53@, 54@, 55@ = Hud.GetColor(6)
Text.SetColor(52@, 53@, 54@, 55@)
Text.Display(170.0, 362.0, 'BS_X04')
gosub @BSKOOL_15950
Text.SetScale(0.52, 1.45)
52@, 53@, 54@, 55@ = Hud.GetColor(6)
Text.SetColor(52@, 53@, 54@, 55@)
Text.Display(205.0, 365.0, 'BS_Z_6')
goto @BSKOOL_20110

:BSKOOL_19916
gosub @BSKOOL_15950
Text.SetScale(0.52, 1.45)
Text.SetColor(255, 255, 255, 255)
Text.Display(170.0, 345.0, 'BS_Z_9')
gosub @BSKOOL_15950
Text.SetScale(1.45, 2.0)
52@, 53@, 54@, 55@ = Hud.GetColor(6)
Text.SetColor(52@, 53@, 54@, 55@)
Text.Display(170.0, 362.0, 'BS_X05')
gosub @BSKOOL_15950
Text.SetScale(0.52, 1.45)
52@, 53@, 54@, 55@ = Hud.GetColor(6)
Text.SetColor(52@, 53@, 54@, 55@)
Text.Display(205.0, 365.0, 'BS_Z_5')

:BSKOOL_20110
return 

:BSKOOL_20112
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BSKOOL_20168
if 
  $button_pressed == 1
goto_if_false @BSKOOL_20161
$button_pressed = 0
$finished_watching_scores = 1

:BSKOOL_20161
goto @BSKOOL_20193

:BSKOOL_20168
if 
  $button_pressed == 0
goto_if_false @BSKOOL_20193
$button_pressed = 1

:BSKOOL_20193
return 

:BSKOOL_20195
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1186)
Camera.DoFade(500, Fade.Out)

:BSKOOL_20222
if 
  Camera.GetFadingStatus
goto_if_false @BSKOOL_20291
if 
  $flag_bikeschool_passed_1stime == 0
goto_if_false @BSKOOL_20278
if 
  $bs_passed == 1
goto_if_false @BSKOOL_20278
gosub @BSKOOL_12657

:BSKOOL_20278
Text.ClearPrints
wait 0
goto @BSKOOL_20222

:BSKOOL_20291
Text.ClearPrints
Text.ClearThisBigPrint('BS_Y_8')
Text.ClearThisBigPrint('BS_Y_9')
Player.ApplyBrakesToCar($player1, False)
Char.ClearTasksImmediately($scplayer)
if 
  48@ == 2
goto_if_false @BSKOOL_20417
Text.ClearPrints
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BSKOOL_20390
Char.WarpFromCarToCoord($scplayer, 1171.521, 1351.183, 9.9219)
goto @BSKOOL_20410

:BSKOOL_20390
Char.SetCoordinates($scplayer, 1171.521, 1351.183, 9.9219)

:BSKOOL_20410
goto @BSKOOL_20480

:BSKOOL_20417
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BSKOOL_20460
Char.WarpFromCarToCoord($scplayer, 1171.521, 1351.183, 9.9219)
goto @BSKOOL_20480

:BSKOOL_20460
Char.SetCoordinates($scplayer, 1171.521, 1351.183, 9.9219)

:BSKOOL_20480
Char.SetHeading($scplayer, 5.0)
Car.Delete(38@)
World.ClearArea(1171.521, 1351.183, 9.9219, 2.0, True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.ClearTimer($car_timer)
Hud.FreezeTimer(False)
return 

:BSKOOL_20534
$trafficcone_counter = 0

:BSKOOL_20541
if 
  46 > $trafficcone_counter
goto_if_false @BSKOOL_20582
Object.Delete($trafficcones($trafficcone_counter,46i))
$trafficcone_counter += 1
goto @BSKOOL_20541

:BSKOOL_20582
if 
  Object.DoesExist(56@)
goto_if_false @BSKOOL_20603
Object.Delete(56@)

:BSKOOL_20603
return 

:BSKOOL_20605
$trafficcone_counter = 0
if 
  $mission_selection == 1
goto_if_false @BSKOOL_20689

:BSKOOL_20630
if 
  15 > $trafficcone_counter
goto_if_false @BSKOOL_20689
$trafficcones($trafficcone_counter,46i) = Object.CreateNoOffset(#TRAFFICCONE, 0.0, 0.0, 500.0)
$trafficcone_counter += 1
goto @BSKOOL_20630

:BSKOOL_20689
if 
  $mission_selection == 2
goto_if_false @BSKOOL_20766

:BSKOOL_20707
if 
  25 > $trafficcone_counter
goto_if_false @BSKOOL_20766
$trafficcones($trafficcone_counter,46i) = Object.CreateNoOffset(#TRAFFICCONE, 0.0, 0.0, 500.0)
$trafficcone_counter += 1
goto @BSKOOL_20707

:BSKOOL_20766
if or
  $mission_selection == 3
  $mission_selection == 5
goto_if_false @BSKOOL_20850

:BSKOOL_20791
if 
  30 > $trafficcone_counter
goto_if_false @BSKOOL_20850
$trafficcones($trafficcone_counter,46i) = Object.CreateNoOffset(#TRAFFICCONE, 0.0, 0.0, 500.0)
$trafficcone_counter += 1
goto @BSKOOL_20791

:BSKOOL_20850
if or
  $mission_selection == 4
  $mission_selection == 6
goto_if_false @BSKOOL_20964

:BSKOOL_20875
if 
  14 > $trafficcone_counter
goto_if_false @BSKOOL_20934
$trafficcones($trafficcone_counter,46i) = Object.CreateNoOffset(#TRAFFICCONE, 0.0, 0.0, 500.0)
$trafficcone_counter += 1
goto @BSKOOL_20875

:BSKOOL_20934
56@ = Object.CreateNoOffset(#LANDJUMP2, 0.0, 0.0, 500.0)
Object.SetCollision(56@, True)

:BSKOOL_20964
if 
  $mission_selection == 1
goto_if_false @BSKOOL_21642
$cone_circle_radius = 6.0
$where_to_place_cones = 0.0
$circle_start_x, $circle_start_y, $cone_coords_z = Car.GetOffsetInWorldCoords(38@, 0.0, 1.0, -0.2)

:BSKOOL_21031
$cone_coords_x = Math.Sin($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = Math.Cos($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 0.0
goto_if_false @BSKOOL_21114
Object.SetCoordinates($trafficcones[0], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21114
if 
  $where_to_place_cones == 24.0
goto_if_false @BSKOOL_21149
Object.SetCoordinates($trafficcones[1], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21149
if 
  $where_to_place_cones == 48.0
goto_if_false @BSKOOL_21184
Object.SetCoordinates($trafficcones[2], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21184
if 
  $where_to_place_cones == 72.0
goto_if_false @BSKOOL_21219
Object.SetCoordinates($trafficcones[3], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21219
if 
  $where_to_place_cones == 96.0
goto_if_false @BSKOOL_21254
Object.SetCoordinates($trafficcones[4], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21254
if 
  $where_to_place_cones == 120.0
goto_if_false @BSKOOL_21289
Object.SetCoordinates($trafficcones[5], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21289
if 
  $where_to_place_cones == 144.0
goto_if_false @BSKOOL_21324
Object.SetCoordinates($trafficcones[6], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21324
if 
  $where_to_place_cones == 168.0
goto_if_false @BSKOOL_21359
Object.SetCoordinates($trafficcones[7], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21359
if 
  $where_to_place_cones == 192.0
goto_if_false @BSKOOL_21394
Object.SetCoordinates($trafficcones[8], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21394
if 
  $where_to_place_cones == 216.0
goto_if_false @BSKOOL_21429
Object.SetCoordinates($trafficcones[9], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21429
if 
  $where_to_place_cones == 240.0
goto_if_false @BSKOOL_21464
Object.SetCoordinates($trafficcones[10], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21464
if 
  $where_to_place_cones == 264.0
goto_if_false @BSKOOL_21499
Object.SetCoordinates($trafficcones[11], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21499
if 
  $where_to_place_cones == 288.0
goto_if_false @BSKOOL_21534
Object.SetCoordinates($trafficcones[12], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21534
if 
  $where_to_place_cones == 312.0
goto_if_false @BSKOOL_21569
Object.SetCoordinates($trafficcones[13], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21569
if 
  $where_to_place_cones == 336.0
goto_if_false @BSKOOL_21604
Object.SetCoordinates($trafficcones[14], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21604
$where_to_place_cones += 24.0
if 
  360.0 > $where_to_place_cones
goto_if_false @BSKOOL_21642
goto @BSKOOL_21031

:BSKOOL_21642
if 
  $mission_selection == 2
goto_if_false @BSKOOL_22384
$cone_circle_radius = 6.0
$where_to_place_cones = 90.0
$circle_start_x, $circle_start_y, $cone_coords_z = Car.GetOffsetInWorldCoords(38@, 0.0, 86.0, -0.2)

:BSKOOL_21709
$cone_coords_x = Math.Sin($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = Math.Cos($where_to_place_cones)
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 120.0
goto_if_false @BSKOOL_21792
Object.SetCoordinates($trafficcones[0], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21792
if 
  $where_to_place_cones == 150.0
goto_if_false @BSKOOL_21827
Object.SetCoordinates($trafficcones[1], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21827
if 
  $where_to_place_cones == 180.0
goto_if_false @BSKOOL_21862
Object.SetCoordinates($trafficcones[2], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21862
if 
  $where_to_place_cones == 210.0
goto_if_false @BSKOOL_21897
Object.SetCoordinates($trafficcones[3], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21897
if 
  $where_to_place_cones == 240.0
goto_if_false @BSKOOL_21932
Object.SetCoordinates($trafficcones[4], $cone_coords_x, $cone_coords_y, $cone_coords_z)

:BSKOOL_21932
$where_to_place_cones += 30.0
if 
  271.0 > $where_to_place_cones
goto_if_false @BSKOOL_21970
goto @BSKOOL_21709

:BSKOOL_21970
Object.PlaceRelativeToCar($trafficcones[7], 38@, -7.0, 74.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[8], 38@, 7.0, 74.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[9], 38@, -7.0, 78.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[10], 38@, 7.0, 78.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[11], 38@, -7.0, 82.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[12], 38@, 7.0, 82.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[13], 38@, -7.0, 86.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[14], 38@, 7.0, 86.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[15], 38@, 0.0, 82.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[16], 38@, -3.0, 4.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[17], 38@, 3.0, 4.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[18], 38@, -3.0, 0.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[19], 38@, 3.0, 0.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[20], 38@, -3.0, -4.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[21], 38@, 3.0, -4.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[22], 38@, 0.0, -4.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[23], 38@, 0.0, 74.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[24], 38@, 0.0, 78.0, -0.2)

:BSKOOL_22384
if or
  $mission_selection == 3
  $mission_selection == 5
goto_if_false @BSKOOL_23099
Object.PlaceRelativeToCar($trafficcones[0], 38@, -3.0, 4.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[1], 38@, 3.0, 4.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[2], 38@, -3.0, 0.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[3], 38@, 3.0, 0.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[4], 38@, -3.0, -4.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[5], 38@, 3.0, -4.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[6], 38@, 0.0, -4.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[7], 38@, -3.5, 56.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[8], 38@, 3.5, 56.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[9], 38@, -3.5, 60.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[10], 38@, 3.5, 60.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[11], 38@, -3.5, 64.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[12], 38@, 3.5, 64.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[13], 38@, -3.5, 68.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[14], 38@, 3.5, 68.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[15], 38@, -3.5, 72.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[16], 38@, 3.5, 72.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[17], 38@, -3.5, 76.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[18], 38@, 3.5, 76.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[19], 38@, -3.5, 80.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[20], 38@, 3.5, 80.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[21], 38@, -3.5, 84.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[22], 38@, 3.5, 84.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[23], 38@, -3.0, 120.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[24], 38@, 3.0, 120.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[25], 38@, -3.0, 124.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[26], 38@, 3.0, 124.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[27], 38@, -3.0, 128.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[28], 38@, 3.0, 128.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[29], 38@, 0.0, 128.0, -0.2)

:BSKOOL_23099
if or
  $mission_selection == 4
  $mission_selection == 6
goto_if_false @BSKOOL_23666
Object.PlaceRelativeToCar($trafficcones[0], 38@, -3.0, 4.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[1], 38@, 3.0, 4.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[2], 38@, -3.0, 0.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[3], 38@, 3.0, 0.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[4], 38@, -3.0, -4.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[5], 38@, 3.0, -4.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[6], 38@, 0.0, -4.0, -0.2)
Object.PlaceRelativeToCar(56@, 38@, 0.0, 48.0, -0.2)
if 
  $mission_selection == 4
goto_if_false @BSKOOL_23487
Object.PlaceRelativeToCar($trafficcones[7], 38@, -3.0, 120.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[8], 38@, 3.0, 120.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[9], 38@, -3.0, 124.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[10], 38@, 3.0, 124.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[11], 38@, -3.0, 128.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[12], 38@, 3.0, 128.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[13], 38@, 0.0, 128.0, -0.2)

:BSKOOL_23487
if 
  $mission_selection == 6
goto_if_false @BSKOOL_23666
Object.PlaceRelativeToCar($trafficcones[7], 38@, -3.0, 110.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[8], 38@, 3.0, 110.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[9], 38@, -3.0, 114.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[10], 38@, 3.0, 114.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[11], 38@, -3.0, 118.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[12], 38@, 3.0, 118.0, -0.2)
Object.PlaceRelativeToCar($trafficcones[13], 38@, 0.0, 118.0, -0.2)

:BSKOOL_23666
return 

//-------------Mission 121---------------
// Originally: Taxi-Driver Sub-Mission

:TAXIODD
script_name 'TAXIODD'
34@ = 0
gosub @TAXIODD_54
if 
  has_deatharrest_been_executed 
goto_if_false @TAXIODD_45
gosub @TAXIODD_18818

:TAXIODD_45
gosub @TAXIODD_18991
terminate_this_script 

:TAXIODD_54
if 
  $done_taxiodd_progress == 0
goto_if_false @TAXIODD_74
Stat.RegisterMissionGiven

:TAXIODD_74
$onmission = 1
$flag_player_on_oddjob = 1
if 
  not Char.IsDead($scplayer)
goto_if_false @TAXIODD_231
if 
  Char.IsInTaxi($scplayer)
goto_if_false @TAXIODD_231
37@ = Char.StoreCarIsIn($scplayer)
35@ = Car.GetNumberOfPassengers(37@)
if 
  35@ <> 0
goto_if_false @TAXIODD_179
Text.PrintNow('TX_FULL', 5000, 1)
wait 4500
Text.ClearPrints
return 

:TAXIODD_179
36@ = Car.GetHealth(37@)
if 
  not Car.IsHealthGreater(37@, 400)
goto_if_false @TAXIODD_231
Text.PrintNow('TX_ILL', 5000, 1)
wait 4500
Text.ClearPrints
return 

:TAXIODD_231
set_var_int_to_var_int $g_Taxiodd_bonusKM = $stop_gargae_for_neil
$stop_gargae_for_neil = 1
85@ = 0
86@ = 0
87@ = 0
38@ = 0
39@ = 0
40@ = 0
41@ = 0
42@ = 0
47@ = 0
48@ = 0
TIMERA = 0
TIMERB = 0
102@ = 0
127@ = 0
130@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
124@ = 0
125@ = 0
126@ = 0
108@ = 0
146@ = 0
if 
  38@ == -99
goto_if_false @TAXIODD_721
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
89@ = Car.Create(420, 0.0, 0.0, 0.0)
88@ = Char.Create(PedType.CivMale, 147, 0.0, 0.0, 0.0)
49@ = 0

:TAXIODD_593
90@(49@,4i) = Object.Create(#CR_AMMOBOX, 0.0, 0.0, 0.0)
49@ += 1
  49@ >= 4
goto_if_false @TAXIODD_593
96@ = Blip.AddForChar(88@)
97@ = Blip.AddForCoord(0.0, 0.0, 0.0)
49@ = 0

:TAXIODD_676
98@(49@,3i) = Blip.AddForCoord(0.0, 0.0, 0.0)
49@ += 1
  49@ >= 3
goto_if_false @TAXIODD_676

:TAXIODD_721
Text.LoadMissionText('TAXI1')
gosub @TAXIODD_17953
101@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
gosub @TAXIODD_17955
if 
  34@ == 1
goto_if_false @TAXIODD_778
goto @TAXIODD_17025

:TAXIODD_778
wait 0
gosub @TAXIODD_16595
gosub @TAXIODD_16949
if or
  40@ == 1
  41@ == 1
goto_if_false @TAXIODD_828
goto @TAXIODD_1465

:TAXIODD_828
gosub @TAXIODD_17820
gosub @TAXIODD_17854
if 
  Char.IsDead($scplayer)
goto_if_false @TAXIODD_872
124@ = 1
goto @TAXIODD_1465

:TAXIODD_872
if 
  38@ == 0
goto_if_false @TAXIODD_930
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:TAXIODD_930
83@ = 0
$controlmode = Pad.GetControllerMode()
if 
  $controlmode <> 3
goto_if_false @TAXIODD_991
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @TAXIODD_984
83@ = 1

:TAXIODD_984
goto @TAXIODD_1015

:TAXIODD_991
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @TAXIODD_1015
83@ = 1

:TAXIODD_1015
if 
  135@ == 0
goto_if_false @TAXIODD_1081
if 
  83@ == 1
goto_if_false @TAXIODD_1074
if 
  Player.IsPlaying($player1)
goto_if_false @TAXIODD_1074
135@ = 1

:TAXIODD_1074
goto @TAXIODD_1129

:TAXIODD_1081
if 
  83@ == 0
goto_if_false @TAXIODD_1129
if 
  Player.IsPlaying($player1)
goto_if_false @TAXIODD_1129
124@ = 1
goto @TAXIODD_1465

:TAXIODD_1129
if 
  Car.IsDead(89@)
goto_if_false @TAXIODD_1159
124@ = 1
goto @TAXIODD_1465

:TAXIODD_1159
51@ = Car.GetHealth(89@)
if 
  250 >= 51@
goto_if_false @TAXIODD_1287
if 
  not Char.IsDead(88@)
goto_if_false @TAXIODD_1273
if 
  Char.IsInCar(88@, 89@)
goto_if_false @TAXIODD_1273
Text.PrintNow('TX_FLED', 5000, 1)
if 
  138@ == 0
goto_if_false @TAXIODD_1273
116@ = Char.SetSayContext(88@, 220)
138@ = 1

:TAXIODD_1273
126@ = 1
goto @TAXIODD_1465

:TAXIODD_1287
if 
  130@ == 1
goto_if_false @TAXIODD_1344
if 
  $g_Taxiodd_faresKM == 0
goto_if_false @TAXIODD_1344
124@ = 1
108@ = 2
goto @TAXIODD_1465

:TAXIODD_1344
gosub @TAXIODD_2884
if 
  127@ == 0
goto_if_false @TAXIODD_1390
124@ = 1
108@ = 1
goto @TAXIODD_1465

:TAXIODD_1390
if 
  38@ == 1
goto_if_false @TAXIODD_1415
gosub @TAXIODD_1657

:TAXIODD_1415
if 
  38@ == 2
goto_if_false @TAXIODD_1440
gosub @TAXIODD_2277

:TAXIODD_1440
if 
  38@ == 3
goto_if_false @TAXIODD_1465
125@ = 1

:TAXIODD_1465
if 
  40@ == 0
goto_if_false @TAXIODD_1609
if 
  124@ == 0
goto_if_false @TAXIODD_1593
if 
  126@ == 0
goto_if_false @TAXIODD_1572
if 
  125@ == 0
goto_if_false @TAXIODD_1551
goto @TAXIODD_778
goto @TAXIODD_1565

:TAXIODD_1551
gosub @TAXIODD_18716
goto @TAXIODD_778

:TAXIODD_1565
goto @TAXIODD_1586

:TAXIODD_1572
gosub @TAXIODD_18752
goto @TAXIODD_778

:TAXIODD_1586
goto @TAXIODD_1602

:TAXIODD_1593
gosub @TAXIODD_18818
return 

:TAXIODD_1602
goto @TAXIODD_1611

:TAXIODD_1609
return 

:TAXIODD_1611
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:TAXIODD_1657
if 
  39@ == 0
goto_if_false @TAXIODD_1829
128@ = 0
129@ = 0
138@ = 0
139@ = 0
145@ = 0
107@ = 0
Car.SetTaxiLights(89@, True)
if 
  144@ == 1
goto_if_false @TAXIODD_1756
39@ = 20
goto @TAXIODD_1829

:TAXIODD_1756
gosub @TAXIODD_3350
if 
  133@ == 0
goto_if_false @TAXIODD_1795
39@ = 1
goto @TAXIODD_1829

:TAXIODD_1795
Text.PrintNow('TX_JUNK', $g_Taxiodd_faresKM, 1)
139@ = 1
Hud.FreezeTimer(False)
39@ = 10

:TAXIODD_1829
if 
  133@ == 1
goto_if_false @TAXIODD_1966
if 
  134@ == 0
goto_if_false @TAXIODD_1879
gosub @TAXIODD_3392
goto @TAXIODD_1966

:TAXIODD_1879
gosub @TAXIODD_3350
if 
  133@ == 0
goto_if_false @TAXIODD_1966
gosub @TAXIODD_3392
Text.ClearThisPrint('TX_JUNK')
$g_Taxiodd_faresKM += 10000
if 
  139@ == 1
goto_if_false @TAXIODD_1959
Hud.FreezeTimer(True)
139@ = 0

:TAXIODD_1959
39@ = 0

:TAXIODD_1966
if 
  39@ == 1
goto_if_false @TAXIODD_2071
gosub @TAXIODD_4416
if 
  128@ == 1
goto_if_false @TAXIODD_2071
if 
  130@ == 0
goto_if_false @TAXIODD_2060
$g_Taxiodd_faresKM = 36000
//Hud.DisplayTimerWithString($g_Taxiodd_faresKM, TimerDirection.Down, 'TX_TIME')
130@ = 1

:TAXIODD_2060
Hud.FreezeTimer(False)
39@ = 2

:TAXIODD_2071
if 
  39@ == 2
goto_if_false @TAXIODD_2167
if 
  not Char.IsDead(88@)
goto_if_false @TAXIODD_2167
if 
  Char.IsInCar(88@, 89@)
goto_if_false @TAXIODD_2167
Blip.Remove(96@)
Char.ClearLookAt(88@)
Car.SetTaxiLights(89@, False)
116@ = Char.SetSayContext(88@, 223)
117@ = Car.GetHealth(89@)
39@ = 99

:TAXIODD_2167
if 
  39@ == 10
goto_if_false @TAXIODD_2185

:TAXIODD_2185
if 
  39@ == 20
goto_if_false @TAXIODD_2243
if 
  is_int_lvar_greater_than_int_lvar 47@ > 106@
goto_if_false @TAXIODD_2243
144@ = 0
106@ = 0
39@ = 0

:TAXIODD_2243
gosub @TAXIODD_4917
if 
  39@ == 99
goto_if_false @TAXIODD_2275
gosub @TAXIODD_17893

:TAXIODD_2275
return 

:TAXIODD_2277
if 
  39@ == 0
goto_if_false @TAXIODD_2368
gosub @TAXIODD_7029
Hud.FreezeTimer(False)
131@ = 0
102@ = 0
136@ = 0
if 
  143@ == 0
goto_if_false @TAXIODD_2361
set_lvar_int_to_lvar_int 105@ = 47@
105@ += 5000

:TAXIODD_2361
39@ += 1

:TAXIODD_2368
if 
  Char.IsDead(88@)
goto_if_false @TAXIODD_2391
126@ = 1

:TAXIODD_2391
if and
  not Char.IsInCar(88@, 89@)
  131@ == 0
goto_if_false @TAXIODD_2424
126@ = 1

:TAXIODD_2424
gosub @TAXIODD_3350
if 
  133@ == 1
goto_if_false @TAXIODD_2497
if 
  134@ == 0
goto_if_false @TAXIODD_2490
Text.PrintNow('TX_REP', 6000, 1)
gosub @TAXIODD_3392

:TAXIODD_2490
goto @TAXIODD_2522

:TAXIODD_2497
if 
  134@ == 1
goto_if_false @TAXIODD_2522
gosub @TAXIODD_3392

:TAXIODD_2522
if 
  39@ == 1
goto_if_false @TAXIODD_2639
if 
  Char.LocateInCar3D(88@, 121@, 122@, 123@, 4.0, 4.0, 4.0, True)
goto_if_false @TAXIODD_2639
if and
  Char.IsInCar(88@, 89@)
  Char.IsInCar($scplayer, 89@)
goto_if_false @TAXIODD_2639
Player.SetControl($player1, False)
Blip.Remove(97@)
131@ = 1
Hud.FreezeTimer(True)
39@ += 1

:TAXIODD_2639
if 
  39@ == 2
goto_if_false @TAXIODD_2714
if 
  Car.IsStopped(89@)
goto_if_false @TAXIODD_2714
if 
  Char.IsInCar(88@, 89@)
goto_if_false @TAXIODD_2700
Task.LeaveCarImmediately(88@, 89@)

:TAXIODD_2700
gosub @TAXIODD_18204
39@ += 1

:TAXIODD_2714
if 
  39@ == 3
goto_if_false @TAXIODD_2777
if 
  not Char.IsInCar(88@, 89@)
goto_if_false @TAXIODD_2777
Char.MarkAsNoLongerNeeded(88@)
146@ -= 1
Player.SetControl($player1, True)
39@ = 99

:TAXIODD_2777
if 
  131@ == 0
goto_if_false @TAXIODD_2802
gosub @TAXIODD_6778

:TAXIODD_2802
if 
  143@ == 0
goto_if_false @TAXIODD_2857
if 
  is_int_lvar_greater_than_int_lvar 47@ > 105@
goto_if_false @TAXIODD_2857
Text.PrintHelp('TX_TIP')
143@ = 1

:TAXIODD_2857
if 
  39@ == 99
goto_if_false @TAXIODD_2882
gosub @TAXIODD_17893

:TAXIODD_2882
return 

:TAXIODD_2884
if 
  Char.IsInTaxi($scplayer)
goto_if_false @TAXIODD_2947
if 
  127@ <> 1
goto_if_false @TAXIODD_2940
89@ = Char.StoreCarIsIn($scplayer)
127@ = 1
gosub @TAXIODD_2956

:TAXIODD_2940
goto @TAXIODD_2954

:TAXIODD_2947
127@ = 0

:TAXIODD_2954
return 

:TAXIODD_2956
51@ = 0
90@(51@,4i) = Object.Create(#CR_AMMOBOX, 0.0, 0.0, 0.0)
Object.SetCollision(90@(51@,4i), False)
Object.SetVisible(90@(51@,4i), False)
Object.AttachToCar(90@(51@,4i), 89@, 0.0, 2.3, 0.0, 0.0, 0.0, 0.0)
51@ = 1
90@(51@,4i) = Object.Create(#CR_AMMOBOX, 0.0, 0.0, 0.0)
Object.SetCollision(90@(51@,4i), False)
Object.SetVisible(90@(51@,4i), False)
Object.AttachToCar(90@(51@,4i), 89@, 0.0, -2.6, 0.0, 0.0, 0.0, 0.0)
51@ = 2
90@(51@,4i) = Object.Create(#CR_AMMOBOX, 0.0, 0.0, 0.0)
Object.SetCollision(90@(51@,4i), False)
Object.SetVisible(90@(51@,4i), False)
Object.AttachToCar(90@(51@,4i), 89@, -1.0, -1.0, 0.0, 0.0, 0.0, 0.0)
51@ = 3
90@(51@,4i) = Object.Create(#CR_AMMOBOX, 0.0, 0.0, 0.0)
Object.SetCollision(90@(51@,4i), False)
Object.SetVisible(90@(51@,4i), False)
Object.AttachToCar(90@(51@,4i), 89@, 1.0, -1.0, 0.0, 0.0, 0.0, 0.0)
return 

:TAXIODD_3350
if 
  Car.IsHealthGreater(89@, 400)
goto_if_false @TAXIODD_3383
133@ = 0
goto @TAXIODD_3390

:TAXIODD_3383
133@ = 1

:TAXIODD_3390
return 

:TAXIODD_3392
if 
  134@ == 1
goto_if_false @TAXIODD_3456
49@ = 0

:TAXIODD_3417
Blip.Remove(98@(49@,3i))
49@ += 1
  49@ >= 3
goto_if_false @TAXIODD_3417
134@ = 0
return 

:TAXIODD_3456
if 
  Char.IsInZone($scplayer, 'LA')
goto_if_false @TAXIODD_3523
51@ = 0
gosub @TAXIODD_3903
51@ += 1
gosub @TAXIODD_3960
51@ += 1
gosub @TAXIODD_4245

:TAXIODD_3523
if 
  Char.IsInZone($scplayer, 'VE')
goto_if_false @TAXIODD_3562
51@ = 0
gosub @TAXIODD_4131

:TAXIODD_3562
if 
  Char.IsInZone($scplayer, 'SF')
goto_if_false @TAXIODD_3615
51@ = 0
gosub @TAXIODD_4188
51@ += 1
gosub @TAXIODD_4302

:TAXIODD_3615
if 
  Char.IsInZone($scplayer, 'RED')
goto_if_false @TAXIODD_3668
51@ = 0
gosub @TAXIODD_4017
51@ += 1
gosub @TAXIODD_4245

:TAXIODD_3668
if 
  Char.IsInZone($scplayer, 'FLINTC')
goto_if_false @TAXIODD_3735
51@ = 0
gosub @TAXIODD_3960
51@ += 1
gosub @TAXIODD_4017
51@ += 1
gosub @TAXIODD_4302

:TAXIODD_3735
if 
  Char.IsInZone($scplayer, 'WHET')
goto_if_false @TAXIODD_3802
51@ = 0
gosub @TAXIODD_3960
51@ += 1
gosub @TAXIODD_4017
51@ += 1
gosub @TAXIODD_4302

:TAXIODD_3802
if 
  Char.IsInZone($scplayer, 'ROBAD')
goto_if_false @TAXIODD_3841
51@ = 0
gosub @TAXIODD_4074

:TAXIODD_3841
if 
  Char.IsInZone($scplayer, 'BONE')
goto_if_false @TAXIODD_3894
51@ = 0
gosub @TAXIODD_4074
51@ += 1
gosub @TAXIODD_4131

:TAXIODD_3894
134@ = 1
return 

:TAXIODD_3903
if 
  Blip.DoesExist(98@(51@,3i))
goto_if_false @TAXIODD_3932
Blip.Remove(98@(51@,3i))

:TAXIODD_3932
98@(51@,3i) = Blip.AddSpriteForCoord(2067.4, -1831.2, 13.5, RadarSprite.Spray)
return 

:TAXIODD_3960
if 
  Blip.DoesExist(98@(51@,3i))
goto_if_false @TAXIODD_3989
Blip.Remove(98@(51@,3i))

:TAXIODD_3989
98@(51@,3i) = Blip.AddSpriteForCoord(488.0, -1734.0, 34.4, RadarSprite.Spray)
return 

:TAXIODD_4017
if 
  Blip.DoesExist(98@(51@,3i))
goto_if_false @TAXIODD_4046
Blip.Remove(98@(51@,3i))

:TAXIODD_4046
98@(51@,3i) = Blip.AddSpriteForCoord(720.016, -454.625, 15.328, RadarSprite.Spray)
return 

:TAXIODD_4074
if 
  Blip.DoesExist(98@(51@,3i))
goto_if_false @TAXIODD_4103
Blip.Remove(98@(51@,3i))

:TAXIODD_4103
98@(51@,3i) = Blip.AddSpriteForCoord(-1420.547, 2583.945, 58.031, RadarSprite.Spray)
return 

:TAXIODD_4131
if 
  Blip.DoesExist(98@(51@,3i))
goto_if_false @TAXIODD_4160
Blip.Remove(98@(51@,3i))

:TAXIODD_4160
98@(51@,3i) = Blip.AddSpriteForCoord(1966.532, 2162.65, 10.995, RadarSprite.Spray)
return 

:TAXIODD_4188
if 
  Blip.DoesExist(98@(51@,3i))
goto_if_false @TAXIODD_4217
Blip.Remove(98@(51@,3i))

:TAXIODD_4217
98@(51@,3i) = Blip.AddSpriteForCoord(-2425.46, 1020.83, 49.39, RadarSprite.Spray)
return 

:TAXIODD_4245
if 
  Blip.DoesExist(98@(51@,3i))
goto_if_false @TAXIODD_4274
Blip.Remove(98@(51@,3i))

:TAXIODD_4274
98@(51@,3i) = Blip.AddSpriteForCoord(1021.8, -1018.7, 30.9, RadarSprite.Spray)
return 

:TAXIODD_4302
if 
  Blip.DoesExist(98@(51@,3i))
goto_if_false @TAXIODD_4331
Blip.Remove(98@(51@,3i))

:TAXIODD_4331
98@(51@,3i) = Blip.AddSpriteForCoord(-1908.9, 292.3, 40.0, RadarSprite.Spray)
return 
if 
  Blip.DoesExist(98@(51@,3i))
goto_if_false @TAXIODD_4388
Blip.Remove(98@(51@,3i))

:TAXIODD_4388
98@(51@,3i) = Blip.AddSpriteForCoord(-103.6, 1112.4, 18.7, RadarSprite.Spray)
return 

:TAXIODD_4416
if 
  is_int_lvar_greater_than_int_lvar 47@ > 102@
goto_if_false @TAXIODD_4531
if 
  136@ == 0
goto_if_false @TAXIODD_4499
Text.PrintNow('TX_NONE', 6000, 1)
set_lvar_int_to_lvar_int 102@ = 47@
102@ += 5000
137@ = 1
goto @TAXIODD_4531

:TAXIODD_4499
Text.PrintNow('TX_PKUP', 6000, 1)
set_lvar_int_to_lvar_int 102@ = 47@
102@ += 5000

:TAXIODD_4531
88@ = Zone.GetRandomChar('SAN_AND', True, False, True)
if 
  88@ == -1
goto_if_false @TAXIODD_4571
return 

:TAXIODD_4571
146@ += 1
if or
  Char.IsDead(88@)
  Char.IsInAnyCar(88@)
  Char.HasBeenDamagedByChar(88@, $scplayer)
goto_if_false @TAXIODD_4621
Char.MarkAsNoLongerNeeded(88@)
146@ -= 1
return 

:TAXIODD_4621
94@ = Char.GetModel(88@)
if 
  is_int_lvar_equal_to_int_lvar 94@ == 95@
goto_if_false @TAXIODD_4662
Char.MarkAsNoLongerNeeded(88@)
146@ -= 1
return 

:TAXIODD_4662
58@, 59@, 60@ = Char.GetCoordinates(88@)
if 
  not Char.LocateAnyMeans3D($scplayer, 58@, 59@, 60@, 88.0, 88.0, 19.0, False)
goto_if_false @TAXIODD_4732
Char.MarkAsNoLongerNeeded(88@)
146@ -= 1
return 

:TAXIODD_4732
136@ = 1
if 
  137@ == 1
goto_if_false @TAXIODD_4796
Text.PrintNow('TX_PKUP', 6000, 1)
set_lvar_int_to_lvar_int 102@ = 47@
102@ += 5000
137@ = 0

:TAXIODD_4796
Char.ClearTasksImmediately(88@)
Char.SetDecisionMaker(88@, 101@)
Task.StandStill(88@, -2)
145@ = 0
gosub @TAXIODD_6172
if 
  Blip.DoesExist(96@)
goto_if_false @TAXIODD_4851
Blip.Remove(96@)

:TAXIODD_4851
96@ = Blip.AddForChar(88@)
Blip.SetAsFriendly(96@, True)
118@, 119@, 120@ = Char.GetCoordinates($scplayer)
118@ += 4.0
119@ += 4.0
set_lvar_int_to_lvar_int 95@ = 94@
128@ = 1
return 

:TAXIODD_4917
if 
  128@ == 0
goto_if_false @TAXIODD_4937
return 

:TAXIODD_4937
if 
  is_int_lvar_greater_than_int_lvar 47@ > 102@
goto_if_false @TAXIODD_4988
Text.PrintNow('TX_PKUP', 6000, 1)
set_lvar_int_to_lvar_int 102@ = 47@
102@ += 5000

:TAXIODD_4988
83@ = 0
84@ = 1
if or
  Char.IsDead(88@)
  Char.HasBeenDamagedByChar(88@, $scplayer)
goto_if_false @TAXIODD_5072
83@ = 1
84@ = 0
Text.PrintNow('TX_OOPS', 6000, 1)
set_lvar_int_to_lvar_int 102@ = 47@
102@ += 5000

:TAXIODD_5072
if 
  Car.IsDead(89@)
goto_if_false @TAXIODD_5095
83@ = 1

:TAXIODD_5095
if 
  83@ == 0
goto_if_false @TAXIODD_5139
if 
  not Char.IsInCar($scplayer, 89@)
goto_if_false @TAXIODD_5139
83@ = 1

:TAXIODD_5139
if 
  83@ == 0
goto_if_false @TAXIODD_5185
58@, 59@, 60@ = Char.GetCoordinates($scplayer)
61@, 62@, 63@ = Char.GetCoordinates(88@)

:TAXIODD_5185
if 
  83@ == 0
goto_if_false @TAXIODD_5252
if 
  not Char.LocateAnyMeans3D($scplayer, 61@, 62@, 63@, 90.0, 90.0, 20.0, False)
goto_if_false @TAXIODD_5252
83@ = 1

:TAXIODD_5252
if 
  83@ == 1
goto_if_false @TAXIODD_5399
if 
  84@ == 1
goto_if_false @TAXIODD_5295
102@ = 0

:TAXIODD_5295
128@ = 0
138@ = 0
Blip.Remove(96@)
if 
  133@ == 1
goto_if_false @TAXIODD_5346
39@ = 10
goto @TAXIODD_5353

:TAXIODD_5346
39@ = 1

:TAXIODD_5353
if 
  not Char.IsDead(88@)
goto_if_false @TAXIODD_5381
Char.ClearLookAt(88@)
gosub @TAXIODD_6415

:TAXIODD_5381
Char.MarkAsNoLongerNeeded(88@)
146@ -= 1
Hud.FreezeTimer(False)
return 

:TAXIODD_5399
if and
  Char.IsInCar($scplayer, 89@)
  Char.LocateStoppedInCar3D($scplayer, 61@, 62@, 63@, 10.0, 10.0, 3.0, False)
goto_if_false @TAXIODD_5718
if 
  129@ == 0
goto_if_false @TAXIODD_5556
gosub @TAXIODD_3350
if 
  133@ == 1
goto_if_false @TAXIODD_5515
Text.PrintNow('TX_JUNK', 5000, 1)
goto @TAXIODD_5295

:TAXIODD_5515
gosub @TAXIODD_6415
set_lvar_int_to_lvar_int 107@ = 47@
107@ += 300
129@ = 1
Hud.FreezeTimer(True)
goto @TAXIODD_5709

:TAXIODD_5556
if 
  107@ > 0
goto_if_false @TAXIODD_5636
if 
  is_int_lvar_greater_than_int_lvar 47@ > 107@
goto_if_false @TAXIODD_5636
42@ = Char.GetScriptTaskStatus(88@, 2586)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @TAXIODD_5636
gosub @TAXIODD_6453
107@ = 0

:TAXIODD_5636
if 
  107@ == 0
goto_if_false @TAXIODD_5709
if 
  not Char.IsInCar(88@, 89@)
goto_if_false @TAXIODD_5709
42@ = Char.GetScriptTaskStatus(88@, 1482)
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @TAXIODD_5709
gosub @TAXIODD_6453

:TAXIODD_5709
return 
goto @TAXIODD_5831

:TAXIODD_5718
if 
  129@ == 1
goto_if_false @TAXIODD_5824
if 
  Char.IsInCar($scplayer, 89@)
goto_if_false @TAXIODD_5822
if 
  not Char.LocateInCar3D($scplayer, 61@, 62@, 63@, 10.0, 10.0, 3.0, False)
goto_if_false @TAXIODD_5822
gosub @TAXIODD_6172
Task.StandStill(88@, -2)
129@ = 0
Hud.FreezeTimer(False)

:TAXIODD_5822
return 

:TAXIODD_5824
107@ = 0

:TAXIODD_5831
if 
  not Char.IsInAnyCar(88@)
goto_if_false @TAXIODD_5893
42@ = Char.GetScriptTaskStatus(88@, 1471)
if and
  not is_int_lvar_equal_to_constant 42@ == 1
  not is_int_lvar_equal_to_constant 42@ == 0
goto_if_false @TAXIODD_5893
Task.LookAtChar(88@, $scplayer, -2)

:TAXIODD_5893
if 
  not Char.IsInAnyCar(88@)
goto_if_false @TAXIODD_6072
42@ = Char.GetScriptTaskStatus(88@, 1492)
if and
  not is_int_lvar_equal_to_constant 42@ == 1
  not is_int_lvar_equal_to_constant 42@ == 0
goto_if_false @TAXIODD_6072
82@ = Math.GetDistanceBetweenCoords3D(58@, 59@, 60@, 118@, 119@, 120@)
if 
  82@ > 4.0
goto_if_false @TAXIODD_6072
set_lvar_float_to_lvar_float 74@ = 58@
set_lvar_float_to_lvar_float 75@ = 59@
set_lvar_float_to_lvar_float 77@ = 61@
set_lvar_float_to_lvar_float 78@ = 62@
set_lvar_float_to_lvar_float 58@ = 74@
sub_float_lvar_from_float_lvar 58@ -= 77@
set_lvar_float_to_lvar_float 59@ = 75@
sub_float_lvar_from_float_lvar 59@ -= 78@
73@ = Math.GetHeadingFromVector2D(58@, 59@)
Task.AchieveHeading(88@, 73@)

:TAXIODD_6072
if 
  145@ == 0
goto_if_false @TAXIODD_6170
if 
  129@ == 0
goto_if_false @TAXIODD_6170
82@ = Math.GetDistanceBetweenCoords3D(58@, 59@, 60@, 61@, 62@, 63@)
if 
  10.0 > 82@
goto_if_false @TAXIODD_6170
116@ = Char.SetSayContext(88@, 221)
145@ = 1

:TAXIODD_6170
return 

:TAXIODD_6172
140@ = 0
gosub @TAXIODD_6518
141@ = 0
gosub @TAXIODD_6648
83@ = 0
if 
  140@ == 1
goto_if_false @TAXIODD_6271
if 
  141@ == 1
goto_if_false @TAXIODD_6257
83@ = 0
goto @TAXIODD_6264

:TAXIODD_6257
83@ = 1

:TAXIODD_6264
goto @TAXIODD_6310

:TAXIODD_6271
if 
  141@ == 1
goto_if_false @TAXIODD_6303
83@ = 1
goto @TAXIODD_6310

:TAXIODD_6303
83@ = 0

:TAXIODD_6310
if 
  83@ == 1
goto_if_false @TAXIODD_6375
Task.PlayAnimSecondary(88@, "HIKER_POSE_L", "MISC", 4.0, False, False, False, True, -1)
goto @TAXIODD_6413

:TAXIODD_6375
Task.PlayAnimSecondary(88@, "HIKER_POSE", "MISC", 4.0, False, False, False, True, -1)

:TAXIODD_6413
return 

:TAXIODD_6415
Task.PlayAnimSecondary(88@, "ROADCROSS", "PED", 4.0, False, False, False, False, 100)
return 

:TAXIODD_6453
140@ = 0
gosub @TAXIODD_6518
if 
  140@ == 1
goto_if_false @TAXIODD_6504
Task.EnterCarAsPassenger(88@, 89@, -2, 2)
goto @TAXIODD_6516

:TAXIODD_6504
Task.EnterCarAsPassenger(88@, 89@, -2, 1)

:TAXIODD_6516
return 

:TAXIODD_6518
58@, 59@, 60@ = Char.GetCoordinates(88@)
61@, 62@, 63@ = Object.GetCoordinates(92@)
64@, 65@, 66@ = Object.GetCoordinates(93@)
80@ = Math.GetDistanceBetweenCoords3D(58@, 59@, 60@, 61@, 62@, 63@)
81@ = Math.GetDistanceBetweenCoords3D(58@, 59@, 60@, 64@, 65@, 66@)
if 
  is_float_lvar_greater_than_float_lvar 81@ > 80@
goto_if_false @TAXIODD_6639
140@ = 0
goto @TAXIODD_6646

:TAXIODD_6639
140@ = 1

:TAXIODD_6646
return 

:TAXIODD_6648
58@, 59@, 60@ = Char.GetCoordinates(88@)
61@, 62@, 63@ = Object.GetCoordinates(90@)
64@, 65@, 66@ = Object.GetCoordinates(91@)
80@ = Math.GetDistanceBetweenCoords3D(58@, 59@, 60@, 61@, 62@, 63@)
81@ = Math.GetDistanceBetweenCoords3D(58@, 59@, 60@, 64@, 65@, 66@)
if 
  is_float_lvar_greater_than_float_lvar 81@ > 80@
goto_if_false @TAXIODD_6769
141@ = 1
goto @TAXIODD_6776

:TAXIODD_6769
141@ = 0

:TAXIODD_6776
return 

:TAXIODD_6778
if 
  132@ == 0
goto_if_false @TAXIODD_6798
return 

:TAXIODD_6798
if 
  is_int_lvar_greater_than_int_lvar 47@ > 104@
goto_if_false @TAXIODD_6838
Hud.ClearCounter($g_Taxiodd_timerKM)
132@ = 0
$g_Taxiodd_timerKM = 0
return 

:TAXIODD_6838
51@ = Car.GetHealth(89@)
if 
  is_int_lvar_greater_than_int_lvar 51@ > 117@
goto_if_false @TAXIODD_6880
set_lvar_int_to_lvar_int 117@ = 51@
goto @TAXIODD_6939

:TAXIODD_6880
if 
  is_int_lvar_greater_than_int_lvar 117@ > 51@
goto_if_false @TAXIODD_6939
set_lvar_int_to_lvar_int 52@ = 117@
sub_int_lvar_from_int_lvar 52@ -= 51@
set_lvar_int_to_lvar_int 117@ = 51@
52@ *= 180
sub_int_lvar_from_int_lvar 104@ -= 52@

:TAXIODD_6939
set_lvar_int_to_lvar_int 51@ = 104@
sub_int_lvar_from_int_lvar 51@ -= 103@
set_lvar_int_to_lvar_int 52@ = 47@
sub_int_lvar_from_int_lvar 52@ -= 103@
set_var_int_to_lvar_int $g_Taxiodd_timerKM = 51@
sub_int_lvar_from_int_var $g_Taxiodd_timerKM -= 52@
$g_Taxiodd_timerKM *= 100
div_int_var_by_int_lvar $g_Taxiodd_timerKM /= 51@
if 
  0 > $g_Taxiodd_timerKM
goto_if_false @TAXIODD_7027
$g_Taxiodd_timerKM = 0

:TAXIODD_7027
return 

:TAXIODD_7029
if 
  Char.IsDead(88@)
goto_if_false @TAXIODD_7047
return 

:TAXIODD_7047
set_lvar_int_to_lvar_int 112@ = 113@
113@ = 0
110@ = -1
gosub @TAXIODD_7670
58@, 59@, 60@ = Char.GetCoordinates(88@)
set_lvar_float_to_lvar_float 67@ = 58@
sub_float_lvar_from_float_lvar 67@ -= 121@
set_lvar_float_to_lvar_float 68@ = 59@
sub_float_lvar_from_float_lvar 68@ -= 122@
set_lvar_float_to_lvar_float 70@ = 67@
mult_float_lvar_by_float_lvar 70@ *= 67@
set_lvar_float_to_lvar_float 71@ = 68@
mult_float_lvar_by_float_lvar 71@ *= 68@
set_lvar_float_to_lvar_float 80@ = 70@
add_float_lvar_to_float_lvar 80@ += 71@
81@ = Math.Sqrt(80@)
cset_lvar_int_to_lvar_float 111@ =# 81@
if 
  200 > 111@
goto_if_false @TAXIODD_7212
goto @TAXIODD_7029

:TAXIODD_7212
set_lvar_int_to_lvar_int 51@ = 111@
if 
  $boat_timer == 0
goto_if_false @TAXIODD_7245
51@ *= 100

:TAXIODD_7245
if 
  $boat_timer == 1
goto_if_false @TAXIODD_7270
51@ *= 95

:TAXIODD_7270
if 
  $boat_timer == 2
goto_if_false @TAXIODD_7295
51@ *= 80

:TAXIODD_7295
if 
  $boat_timer == 3
goto_if_false @TAXIODD_7320
51@ *= 79

:TAXIODD_7320
if 
  $boat_timer == 4
goto_if_false @TAXIODD_7345
51@ *= 78

:TAXIODD_7345
if 
  $boat_timer == 5
goto_if_false @TAXIODD_7370
51@ *= 76

:TAXIODD_7370
if and
  $boat_timer > 5
  10 >= $boat_timer
goto_if_false @TAXIODD_7402
51@ *= 75

:TAXIODD_7402
if and
  $boat_timer > 10
  20 >= $boat_timer
goto_if_false @TAXIODD_7434
51@ *= 70

:TAXIODD_7434
if and
  $boat_timer > 20
  50 >= $boat_timer
goto_if_false @TAXIODD_7466
51@ *= 65

:TAXIODD_7466
if 
  $boat_timer > 50
goto_if_false @TAXIODD_7491
51@ *= 60

:TAXIODD_7491
add_int_lvar_to_int_var $g_Taxiodd_faresKM += 51@
set_lvar_int_to_lvar_int 52@ = 112@
52@ *= 500
add_int_lvar_to_int_var $g_Taxiodd_faresKM += 52@
add_int_lvar_to_int_lvar 51@ += 52@
set_lvar_int_to_lvar_int 52@ = 113@
52@ *= 1000
add_int_lvar_to_int_var $g_Taxiodd_faresKM += 52@
add_int_lvar_to_int_lvar 51@ += 52@
set_lvar_int_to_lvar_int 103@ = 47@
set_lvar_int_to_lvar_int 104@ = 51@
104@ *= 95
104@ /= 100
add_int_lvar_to_int_lvar 104@ += 47@
$g_Taxiodd_timerKM = 0
Hud.DisplayNthCounterWithString($g_Taxiodd_timerKM, CounterDisplay.Bar, 3, 'TX_ADDS')
132@ = 1
if 
  Blip.DoesExist(97@)
goto_if_false @TAXIODD_7654
Blip.Remove(97@)

:TAXIODD_7654
97@ = Blip.AddForCoord(121@, 122@, 123@)
return 

:TAXIODD_7670
if 
  Char.IsInZone($scplayer, 'LA')
goto_if_false @TAXIODD_7702
gosub @TAXIODD_8407

:TAXIODD_7702
if 
  Char.IsInZone($scplayer, 'VE')
goto_if_false @TAXIODD_7734
gosub @TAXIODD_10663

:TAXIODD_7734
if 
  Char.IsInZone($scplayer, 'SF')
goto_if_false @TAXIODD_7766
gosub @TAXIODD_13606

:TAXIODD_7766
if 
  Char.IsInZone($scplayer, 'RED')
goto_if_false @TAXIODD_7891
51@ = Math.RandomIntInRange(0, 2)
switch_start 51@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_7891 {caseNum1} 0 {caseLabel1} @TAXIODD_7863 {caseNum2} 1 {caseLabel2} @TAXIODD_7877 {caseNum3} -1 {caseLabel3} @TAXIODD_7891 {caseNum4} -1 {caseLabel4} @TAXIODD_7891 {caseNum5} -1 {caseLabel5} @TAXIODD_7891 {caseNum6} -1 {caseLabel6} @TAXIODD_7891 {caseNum7} -1 {caseLabel7} @TAXIODD_7891

:TAXIODD_7863
gosub @TAXIODD_15463
goto @TAXIODD_7891

:TAXIODD_7877
gosub @TAXIODD_8407
goto @TAXIODD_7891

:TAXIODD_7891
if 
  Char.IsInZone($scplayer, 'FLINTC')
goto_if_false @TAXIODD_8030
51@ = Math.RandomIntInRange(0, 3)
switch_start 51@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_8030 {caseNum1} 0 {caseLabel1} @TAXIODD_7988 {caseNum2} 1 {caseLabel2} @TAXIODD_8002 {caseNum3} 2 {caseLabel3} @TAXIODD_8016 {caseNum4} -1 {caseLabel4} @TAXIODD_8030 {caseNum5} -1 {caseLabel5} @TAXIODD_8030 {caseNum6} -1 {caseLabel6} @TAXIODD_8030 {caseNum7} -1 {caseLabel7} @TAXIODD_8030

:TAXIODD_7988
gosub @TAXIODD_15561
goto @TAXIODD_8030

:TAXIODD_8002
gosub @TAXIODD_8407
goto @TAXIODD_8030

:TAXIODD_8016
gosub @TAXIODD_13606
goto @TAXIODD_8030

:TAXIODD_8030
if 
  Char.IsInZone($scplayer, 'WHET')
goto_if_false @TAXIODD_8155
51@ = Math.RandomIntInRange(0, 2)
switch_start 51@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_8155 {caseNum1} 0 {caseLabel1} @TAXIODD_8127 {caseNum2} 1 {caseLabel2} @TAXIODD_8141 {caseNum3} -1 {caseLabel3} @TAXIODD_8155 {caseNum4} -1 {caseLabel4} @TAXIODD_8155 {caseNum5} -1 {caseLabel5} @TAXIODD_8155 {caseNum6} -1 {caseLabel6} @TAXIODD_8155 {caseNum7} -1 {caseLabel7} @TAXIODD_8155

:TAXIODD_8127
gosub @TAXIODD_15661
goto @TAXIODD_8155

:TAXIODD_8141
gosub @TAXIODD_13606
goto @TAXIODD_8155

:TAXIODD_8155
if 
  Char.IsInZone($scplayer, 'ROBAD')
goto_if_false @TAXIODD_8280
51@ = Math.RandomIntInRange(0, 2)
switch_start 51@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_8280 {caseNum1} 0 {caseLabel1} @TAXIODD_8252 {caseNum2} 1 {caseLabel2} @TAXIODD_8266 {caseNum3} -1 {caseLabel3} @TAXIODD_8280 {caseNum4} -1 {caseLabel4} @TAXIODD_8280 {caseNum5} -1 {caseLabel5} @TAXIODD_8280 {caseNum6} -1 {caseLabel6} @TAXIODD_8280 {caseNum7} -1 {caseLabel7} @TAXIODD_8280

:TAXIODD_8252
gosub @TAXIODD_15758
goto @TAXIODD_8280

:TAXIODD_8266
gosub @TAXIODD_13606
goto @TAXIODD_8280

:TAXIODD_8280
if 
  Char.IsInZone($scplayer, 'BONE')
goto_if_false @TAXIODD_8405
51@ = Math.RandomIntInRange(0, 2)
switch_start 51@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_8405 {caseNum1} 0 {caseLabel1} @TAXIODD_8377 {caseNum2} 1 {caseLabel2} @TAXIODD_8391 {caseNum3} -1 {caseLabel3} @TAXIODD_8405 {caseNum4} -1 {caseLabel4} @TAXIODD_8405 {caseNum5} -1 {caseLabel5} @TAXIODD_8405 {caseNum6} -1 {caseLabel6} @TAXIODD_8405 {caseNum7} -1 {caseLabel7} @TAXIODD_8405

:TAXIODD_8377
gosub @TAXIODD_16098
goto @TAXIODD_8405

:TAXIODD_8391
gosub @TAXIODD_10663
goto @TAXIODD_8405

:TAXIODD_8405
return 

:TAXIODD_8407
if 
  34@ == 1
goto_if_false @TAXIODD_8447
set_lvar_int_to_lvar_int 110@ = 148@
110@ += 1
goto @TAXIODD_8456

:TAXIODD_8447
110@ = Math.RandomIntInRange(1, 35)

:TAXIODD_8456
switch_start 110@ {numCases} 34 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_10544 {caseNum1} 1 {caseLabel1} @TAXIODD_8714 {caseNum2} 2 {caseLabel2} @TAXIODD_8767 {caseNum3} 3 {caseLabel3} @TAXIODD_8820 {caseNum4} 4 {caseLabel4} @TAXIODD_8873 {caseNum5} 5 {caseLabel5} @TAXIODD_8926 {caseNum6} 6 {caseLabel6} @TAXIODD_8979 {caseNum7} 7 {caseLabel7} @TAXIODD_9032
switch_continued 8 {caseLabel1} @TAXIODD_9085 {caseNum2} 9 {caseLabel2} @TAXIODD_9138 {caseNum3} 10 {caseLabel3} @TAXIODD_9191 {caseNum4} 11 {caseLabel4} @TAXIODD_9244 {caseNum5} 12 {caseLabel5} @TAXIODD_9297 {caseNum6} 13 {caseLabel6} @TAXIODD_9350 {caseNum7} 14 {caseLabel7} @TAXIODD_9403 {caseNum8} 15 {caseLabel8} @TAXIODD_9456 {caseNum9} 16 {caseLabel9} @TAXIODD_9509
switch_continued 17 {caseLabel1} @TAXIODD_9562 {caseNum2} 18 {caseLabel2} @TAXIODD_9622 {caseNum3} 19 {caseLabel3} @TAXIODD_9682 {caseNum4} 20 {caseLabel4} @TAXIODD_9742 {caseNum5} 21 {caseLabel5} @TAXIODD_9795 {caseNum6} 22 {caseLabel6} @TAXIODD_9848 {caseNum7} 23 {caseLabel7} @TAXIODD_9901 {caseNum8} 24 {caseLabel8} @TAXIODD_9954 {caseNum9} 25 {caseLabel9} @TAXIODD_10007
switch_continued 26 {caseLabel1} @TAXIODD_10060 {caseNum2} 27 {caseLabel2} @TAXIODD_10113 {caseNum3} 28 {caseLabel3} @TAXIODD_10166 {caseNum4} 29 {caseLabel4} @TAXIODD_10219 {caseNum5} 30 {caseLabel5} @TAXIODD_10279 {caseNum6} 31 {caseLabel6} @TAXIODD_10332 {caseNum7} 32 {caseLabel7} @TAXIODD_10385 {caseNum8} 33 {caseLabel8} @TAXIODD_10438 {caseNum9} 34 {caseLabel9} @TAXIODD_10491

:TAXIODD_8714
Text.PrintNow('TX_LS1', 5000, 1)
121@ = 2468.146
122@ = -1736.184
123@ = 12.3828
goto @TAXIODD_10661

:TAXIODD_8767
Text.PrintNow('TX_LS2', 5000, 1)
121@ = 2794.0
122@ = -1828.0
123@ = 10.0
goto @TAXIODD_10661

:TAXIODD_8820
Text.PrintNow('TX_LS3', 5000, 1)
121@ = 1884.193
122@ = -1257.521
123@ = 12.3984
goto @TAXIODD_10661

:TAXIODD_8873
Text.PrintNow('TX_LS4', 5000, 1)
121@ = 2317.48
122@ = -1386.604
123@ = 22.8784
goto @TAXIODD_10661

:TAXIODD_8926
Text.PrintNow('TX_LS5', 5000, 1)
121@ = 2237.76
122@ = -1304.165
123@ = 22.8488
goto @TAXIODD_10661

:TAXIODD_8979
Text.PrintNow('TX_LS6', 5000, 1)
121@ = 2221.087
122@ = -1137.332
123@ = 24.625
goto @TAXIODD_10661

:TAXIODD_9032
Text.PrintNow('TX_LS7', 5000, 1)
121@ = 2146.737
122@ = -1179.795
123@ = 22.8278
goto @TAXIODD_10661

:TAXIODD_9085
Text.PrintNow('TX_LS8', 5000, 1)
121@ = 2075.558
122@ = -1202.793
123@ = 22.7571
goto @TAXIODD_10661

:TAXIODD_9138
Text.PrintNow('TX_LS9', 5000, 1)
121@ = 2320.0
122@ = -1655.0
123@ = 14.0
goto @TAXIODD_10661

:TAXIODD_9191
Text.PrintNow('TX_LS10', 5000, 1)
121@ = 2455.0
122@ = -1502.0
123@ = 24.0
goto @TAXIODD_10661

:TAXIODD_9244
Text.PrintNow('TX_LS11', 5000, 1)
121@ = 2181.0
122@ = -1771.0
123@ = 13.0
goto @TAXIODD_10661

:TAXIODD_9297
Text.PrintNow('TX_LS12', 5000, 1)
121@ = 2084.731
122@ = -1800.86
123@ = 12.3828
goto @TAXIODD_10661

:TAXIODD_9350
Text.PrintNow('TX_LS13', 5000, 1)
121@ = 2078.015
122@ = -1791.589
123@ = 12.3828
goto @TAXIODD_10661

:TAXIODD_9403
Text.PrintNow('TX_LS14', 5000, 1)
121@ = 2081.287
122@ = -1779.5
123@ = 12.3828
goto @TAXIODD_10661

:TAXIODD_9456
Text.PrintNow('TX_LS15', 5000, 1)
121@ = 2418.542
122@ = -2085.119
123@ = 12.2928
goto @TAXIODD_10661

:TAXIODD_9509
Text.PrintNow('TX_LS16', 5000, 1)
121@ = 1742.689
122@ = -1858.697
123@ = 12.4185
goto @TAXIODD_10661

:TAXIODD_9562
Text.PrintNow('TX_LS17', 5000, 1)
121@ = 1668.0
122@ = -2253.0
123@ = 13.0
113@ = 40
goto @TAXIODD_10661

:TAXIODD_9622
Text.PrintNow('TX_LS18', 5000, 1)
121@ = 1432.198
122@ = -2274.648
123@ = 12.3906
113@ = 30
goto @TAXIODD_10661

:TAXIODD_9682
Text.PrintNow('TX_LS19', 5000, 1)
121@ = 1256.0
122@ = -2028.0
123@ = 60.0
113@ = 30
goto @TAXIODD_10661

:TAXIODD_9742
Text.PrintNow('TX_LS20', 5000, 1)
121@ = 1532.789
122@ = -1675.442
123@ = 12.3828
goto @TAXIODD_10661

:TAXIODD_9795
Text.PrintNow('TX_LS21', 5000, 1)
121@ = 1472.35
122@ = -1729.706
123@ = 12.3828
goto @TAXIODD_10661

:TAXIODD_9848
Text.PrintNow('TX_LS22', 5000, 1)
121@ = 1855.419
122@ = -1383.273
123@ = 12.3984
goto @TAXIODD_10661

:TAXIODD_9901
Text.PrintNow('TX_LS23', 5000, 1)
121@ = 2025.0
122@ = -1413.0
123@ = 17.0
goto @TAXIODD_10661

:TAXIODD_9954
Text.PrintNow('TX_LS24', 5000, 1)
121@ = 1361.218
122@ = -1277.904
123@ = 12.3828
goto @TAXIODD_10661

:TAXIODD_10007
Text.PrintNow('TX_LS25', 5000, 1)
121@ = 1192.0
122@ = -1324.0
123@ = 13.0
goto @TAXIODD_10661

:TAXIODD_10060
Text.PrintNow('TX_LS26', 5000, 1)
121@ = 1031.066
122@ = -1329.704
123@ = 12.3861
goto @TAXIODD_10661

:TAXIODD_10113
Text.PrintNow('TX_LS27', 5000, 1)
121@ = 814.0
122@ = -1330.0
123@ = 13.0
goto @TAXIODD_10661

:TAXIODD_10166
Text.PrintNow('TX_LS28', 5000, 1)
121@ = 667.7637
122@ = -1265.69
123@ = 12.4687
goto @TAXIODD_10661

:TAXIODD_10219
Text.PrintNow('TX_LS29', 5000, 1)
121@ = 368.1992
122@ = -2042.537
123@ = 6.6582
113@ = 30
goto @TAXIODD_10661

:TAXIODD_10279
Text.PrintNow('TX_LS30', 5000, 1)
121@ = 152.5806
122@ = -1754.831
123@ = 3.9518
goto @TAXIODD_10661

:TAXIODD_10332
Text.PrintNow('TX_LS31', 5000, 1)
121@ = 508.2797
122@ = -1358.598
123@ = 14.9532
goto @TAXIODD_10661

:TAXIODD_10385
Text.PrintNow('TX_LS32', 5000, 1)
121@ = 1199.846
122@ = -933.0658
123@ = 41.7332
goto @TAXIODD_10661

:TAXIODD_10438
Text.PrintNow('TX_LS33', 5000, 1)
121@ = 816.2869
122@ = -1630.762
123@ = 12.3906
goto @TAXIODD_10661

:TAXIODD_10491
Text.PrintNow('TX_LS34', 5000, 1)
121@ = 1311.97
122@ = -1712.289
123@ = 12.3906
goto @TAXIODD_10661

:TAXIODD_10544
if 
  34@ == 1
goto_if_false @TAXIODD_10569
110@ = 0

:TAXIODD_10569
write_debug "UNKNOWN_LOS_SANTOS_TAXI_DESTINATION"
Text.PrintNow('TX_LS1', 5000, 1)
121@ = 2468.146
122@ = -1736.184
123@ = 12.3828
goto @TAXIODD_10661

:TAXIODD_10661
return 

:TAXIODD_10663
if 
  34@ == 1
goto_if_false @TAXIODD_10703
set_lvar_int_to_lvar_int 110@ = 148@
110@ += 1
goto @TAXIODD_10712

:TAXIODD_10703
110@ = Math.RandomIntInRange(1, 46)

:TAXIODD_10712
switch_start 110@ {numCases} 45 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_13485 {caseNum1} 1 {caseLabel1} @TAXIODD_11100 {caseNum2} 2 {caseLabel2} @TAXIODD_11153 {caseNum3} 3 {caseLabel3} @TAXIODD_11206 {caseNum4} 4 {caseLabel4} @TAXIODD_11259 {caseNum5} 5 {caseLabel5} @TAXIODD_11312 {caseNum6} 6 {caseLabel6} @TAXIODD_11365 {caseNum7} 7 {caseLabel7} @TAXIODD_11418
switch_continued 8 {caseLabel1} @TAXIODD_11471 {caseNum2} 9 {caseLabel2} @TAXIODD_11524 {caseNum3} 10 {caseLabel3} @TAXIODD_11577 {caseNum4} 11 {caseLabel4} @TAXIODD_11630 {caseNum5} 12 {caseLabel5} @TAXIODD_11683 {caseNum6} 13 {caseLabel6} @TAXIODD_11736 {caseNum7} 14 {caseLabel7} @TAXIODD_11789 {caseNum8} 15 {caseLabel8} @TAXIODD_11842 {caseNum9} 16 {caseLabel9} @TAXIODD_11895
switch_continued 17 {caseLabel1} @TAXIODD_11948 {caseNum2} 18 {caseLabel2} @TAXIODD_12001 {caseNum3} 19 {caseLabel3} @TAXIODD_12054 {caseNum4} 20 {caseLabel4} @TAXIODD_12107 {caseNum5} 21 {caseLabel5} @TAXIODD_12160 {caseNum6} 22 {caseLabel6} @TAXIODD_12213 {caseNum7} 23 {caseLabel7} @TAXIODD_12266 {caseNum8} 24 {caseLabel8} @TAXIODD_12319 {caseNum9} 25 {caseLabel9} @TAXIODD_12372
switch_continued 26 {caseLabel1} @TAXIODD_12425 {caseNum2} 27 {caseLabel2} @TAXIODD_12478 {caseNum3} 28 {caseLabel3} @TAXIODD_12531 {caseNum4} 29 {caseLabel4} @TAXIODD_12584 {caseNum5} 30 {caseLabel5} @TAXIODD_12637 {caseNum6} 31 {caseLabel6} @TAXIODD_12690 {caseNum7} 32 {caseLabel7} @TAXIODD_12743 {caseNum8} 33 {caseLabel8} @TAXIODD_12796 {caseNum9} 34 {caseLabel9} @TAXIODD_12849
switch_continued 35 {caseLabel1} @TAXIODD_12902 {caseNum2} 36 {caseLabel2} @TAXIODD_12955 {caseNum3} 37 {caseLabel3} @TAXIODD_13008 {caseNum4} 38 {caseLabel4} @TAXIODD_13061 {caseNum5} 39 {caseLabel5} @TAXIODD_13114 {caseNum6} 40 {caseLabel6} @TAXIODD_13167 {caseNum7} 41 {caseLabel7} @TAXIODD_13220 {caseNum8} 42 {caseLabel8} @TAXIODD_13273 {caseNum9} 43 {caseLabel9} @TAXIODD_13326
switch_continued 44 {caseLabel1} @TAXIODD_13379 {caseNum2} 45 {caseLabel2} @TAXIODD_13432 {caseNum3} -1 {caseLabel3} @TAXIODD_13604 {caseNum4} -1 {caseLabel4} @TAXIODD_13604 {caseNum5} -1 {caseLabel5} @TAXIODD_13604 {caseNum6} -1 {caseLabel6} @TAXIODD_13604 {caseNum7} -1 {caseLabel7} @TAXIODD_13604 {caseNum8} -1 {caseLabel8} @TAXIODD_13604 {caseNum9} -1 {caseLabel9} @TAXIODD_13604

:TAXIODD_11100
Text.PrintNow('TX_VE1', 5000, 1)
121@ = 2491.378
122@ = 2773.608
123@ = 9.764
goto @TAXIODD_13604

:TAXIODD_11153
Text.PrintNow('TX_VE2', 5000, 1)
121@ = 2899.211
122@ = 2435.624
123@ = 9.764
goto @TAXIODD_13604

:TAXIODD_11206
Text.PrintNow('TX_VE3', 5000, 1)
121@ = 2220.495
122@ = 1838.497
123@ = 9.764
goto @TAXIODD_13604

:TAXIODD_11259
Text.PrintNow('TX_VE4', 5000, 1)
121@ = 2246.202
122@ = 1896.591
123@ = 9.764
goto @TAXIODD_13604

:TAXIODD_11312
Text.PrintNow('TX_VE5', 5000, 1)
121@ = 2127.307
122@ = 2355.785
123@ = 9.764
goto @TAXIODD_13604

:TAXIODD_11365
Text.PrintNow('TX_VE6', 5000, 1)
121@ = 2289.589
122@ = 2415.939
123@ = 9.7773
goto @TAXIODD_13604

:TAXIODD_11418
Text.PrintNow('TX_VE7', 5000, 1)
121@ = 2636.223
122@ = 2344.803
123@ = 9.764
goto @TAXIODD_13604

:TAXIODD_11471
Text.PrintNow('TX_VE8', 5000, 1)
121@ = 1439.0
122@ = 754.0
123@ = 9.764
goto @TAXIODD_13604

:TAXIODD_11524
Text.PrintNow('TX_VE9', 5000, 1)
121@ = 1095.619
122@ = 1375.292
123@ = 9.7977
goto @TAXIODD_13604

:TAXIODD_11577
Text.PrintNow('TX_VE10', 5000, 1)
121@ = 1162.077
122@ = 1124.441
123@ = 9.8125
goto @TAXIODD_13604

:TAXIODD_11630
Text.PrintNow('TX_VE11', 5000, 1)
121@ = 1710.624
122@ = 1448.153
123@ = 9.6643
goto @TAXIODD_13604

:TAXIODD_11683
Text.PrintNow('TX_VE12', 5000, 1)
121@ = 2490.384
122@ = 2771.702
123@ = 9.7964
goto @TAXIODD_13604

:TAXIODD_11736
Text.PrintNow('TX_VE13', 5000, 1)
121@ = 1465.187
122@ = 2773.965
123@ = 9.6875
goto @TAXIODD_13604

:TAXIODD_11789
Text.PrintNow('TX_VE14', 5000, 1)
121@ = 1436.145
122@ = 2670.385
123@ = 9.6797
goto @TAXIODD_13604

:TAXIODD_11842
Text.PrintNow('TX_VE15', 5000, 1)
121@ = 1486.472
122@ = 2257.945
123@ = 9.8128
goto @TAXIODD_13604

:TAXIODD_11895
Text.PrintNow('TX_VE16', 5000, 1)
121@ = 1694.188
122@ = 2200.378
123@ = 9.8203
goto @TAXIODD_13604

:TAXIODD_11948
Text.PrintNow('TX_VE17', 5000, 1)
121@ = 1744.656
122@ = 2055.81
123@ = 9.7309
goto @TAXIODD_13604

:TAXIODD_12001
Text.PrintNow('TX_VE18', 5000, 1)
121@ = 1840.554
122@ = 2169.654
123@ = 9.801
goto @TAXIODD_13604

:TAXIODD_12054
Text.PrintNow('TX_VE19', 5000, 1)
121@ = 1928.357
122@ = 2434.31
123@ = 9.813
goto @TAXIODD_13604

:TAXIODD_12107
Text.PrintNow('TX_VE20', 5000, 1)
121@ = 2424.123
122@ = 2315.745
123@ = 9.6797
goto @TAXIODD_13604

:TAXIODD_12160
Text.PrintNow('TX_VE21', 5000, 1)
121@ = 2431.154
122@ = 2375.061
123@ = 9.6797
goto @TAXIODD_13604

:TAXIODD_12213
Text.PrintNow('TX_VE22', 5000, 1)
121@ = 2370.298
122@ = 2467.925
123@ = 9.6797
goto @TAXIODD_13604

:TAXIODD_12266
Text.PrintNow('TX_VE23', 5000, 1)
121@ = 2272.043
122@ = 2286.755
123@ = 9.6797
goto @TAXIODD_13604

:TAXIODD_12319
Text.PrintNow('TX_VE24', 5000, 1)
121@ = 2324.513
122@ = 2155.099
123@ = 9.6797
goto @TAXIODD_13604

:TAXIODD_12372
Text.PrintNow('TX_VE25', 5000, 1)
121@ = 2508.472
122@ = 2131.205
123@ = 9.8125
goto @TAXIODD_13604

:TAXIODD_12425
Text.PrintNow('TX_VE26', 5000, 1)
121@ = 2530.914
122@ = 2083.355
123@ = 9.6797
goto @TAXIODD_13604

:TAXIODD_12478
Text.PrintNow('TX_VE27', 5000, 1)
121@ = 2546.51
122@ = 1968.607
123@ = 9.8125
goto @TAXIODD_13604

:TAXIODD_12531
Text.PrintNow('TX_VE28', 5000, 1)
121@ = 2530.781
122@ = 1821.228
123@ = 9.8129
goto @TAXIODD_13604

:TAXIODD_12584
Text.PrintNow('TX_VE29', 5000, 1)
121@ = 2360.313
122@ = 2071.996
123@ = 9.6797
goto @TAXIODD_13604

:TAXIODD_12637
Text.PrintNow('TX_VE30', 5000, 1)
121@ = 2035.457
122@ = 1912.279
123@ = 11.1768
goto @TAXIODD_13604

:TAXIODD_12690
Text.PrintNow('TX_VE31', 5000, 1)
121@ = 2078.414
122@ = 2041.116
123@ = 9.8203
goto @TAXIODD_13604

:TAXIODD_12743
Text.PrintNow('TX_VE32', 5000, 1)
121@ = 2159.09
122@ = 1678.112
123@ = 9.6953
goto @TAXIODD_13604

:TAXIODD_12796
Text.PrintNow('TX_VE33', 5000, 1)
121@ = 2028.496
122@ = 1711.744
123@ = 9.6797
goto @TAXIODD_13604

:TAXIODD_12849
Text.PrintNow('TX_VE34', 5000, 1)
121@ = 2076.406
122@ = 1519.038
123@ = 9.6875
goto @TAXIODD_13604

:TAXIODD_12902
Text.PrintNow('TX_VE35', 5000, 1)
121@ = 2040.251
122@ = 1342.891
123@ = 9.6797
goto @TAXIODD_13604

:TAXIODD_12955
Text.PrintNow('TX_VE36', 5000, 1)
121@ = 2230.47
122@ = 1284.891
123@ = 9.6797
goto @TAXIODD_13604

:TAXIODD_13008
Text.PrintNow('TX_VE37', 5000, 1)
121@ = 2074.51
122@ = 1162.833
123@ = 9.6875
goto @TAXIODD_13604

:TAXIODD_13061
Text.PrintNow('TX_VE38', 5000, 1)
121@ = 2039.257
122@ = 1174.172
123@ = 9.6797
goto @TAXIODD_13604

:TAXIODD_13114
Text.PrintNow('TX_VE39', 5000, 1)
121@ = 2040.284
122@ = 1005.619
123@ = 9.6645
goto @TAXIODD_13604

:TAXIODD_13167
Text.PrintNow('TX_VE40', 5000, 1)
121@ = 1608.522
122@ = 1827.752
123@ = 9.8281
goto @TAXIODD_13604

:TAXIODD_13220
Text.PrintNow('TX_VE41', 5000, 1)
121@ = 2483.514
122@ = 922.5383
123@ = 9.8203
goto @TAXIODD_13604

:TAXIODD_13273
Text.PrintNow('TX_VE42', 5000, 1)
121@ = 2544.668
122@ = 1016.168
123@ = 9.7593
goto @TAXIODD_13604

:TAXIODD_13326
Text.PrintNow('TX_VE43', 5000, 1)
121@ = 2491.765
122@ = 1533.687
123@ = 9.6875
goto @TAXIODD_13604

:TAXIODD_13379
Text.PrintNow('TX_VE44', 5000, 1)
121@ = 2828.649
122@ = 1292.268
123@ = 9.8281
goto @TAXIODD_13604

:TAXIODD_13432
Text.PrintNow('TX_VE45', 5000, 1)
121@ = 2524.493
122@ = 2297.584
123@ = 9.6797
goto @TAXIODD_13604

:TAXIODD_13485
if 
  34@ == 1
goto_if_false @TAXIODD_13510
110@ = 0

:TAXIODD_13510
write_debug "UNKNOWN_LAS_VENTURAS_TAXI_DESTINATION"
Text.PrintNow('TX_VE1', 5000, 1)
121@ = 2491.378
122@ = 2773.608
123@ = 9.764
goto @TAXIODD_13604

:TAXIODD_13604
return 

:TAXIODD_13606
if 
  34@ == 1
goto_if_false @TAXIODD_13646
set_lvar_int_to_lvar_int 110@ = 148@
110@ += 1
goto @TAXIODD_13655

:TAXIODD_13646
110@ = Math.RandomIntInRange(1, 28)

:TAXIODD_13655
switch_start 110@ {numCases} 27 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_15344 {caseNum1} 1 {caseLabel1} @TAXIODD_13913 {caseNum2} 2 {caseLabel2} @TAXIODD_13966 {caseNum3} 3 {caseLabel3} @TAXIODD_14019 {caseNum4} 4 {caseLabel4} @TAXIODD_14072 {caseNum5} 5 {caseLabel5} @TAXIODD_14125 {caseNum6} 6 {caseLabel6} @TAXIODD_14178 {caseNum7} 7 {caseLabel7} @TAXIODD_14231
switch_continued 8 {caseLabel1} @TAXIODD_14284 {caseNum2} 9 {caseLabel2} @TAXIODD_14337 {caseNum3} 10 {caseLabel3} @TAXIODD_14390 {caseNum4} 11 {caseLabel4} @TAXIODD_14443 {caseNum5} 12 {caseLabel5} @TAXIODD_14496 {caseNum6} 13 {caseLabel6} @TAXIODD_14549 {caseNum7} 14 {caseLabel7} @TAXIODD_14602 {caseNum8} 15 {caseLabel8} @TAXIODD_14655 {caseNum9} 16 {caseLabel9} @TAXIODD_14708
switch_continued 17 {caseLabel1} @TAXIODD_14761 {caseNum2} 18 {caseLabel2} @TAXIODD_14814 {caseNum3} 19 {caseLabel3} @TAXIODD_14867 {caseNum4} 20 {caseLabel4} @TAXIODD_14920 {caseNum5} 21 {caseLabel5} @TAXIODD_14973 {caseNum6} 22 {caseLabel6} @TAXIODD_15026 {caseNum7} 23 {caseLabel7} @TAXIODD_15079 {caseNum8} 24 {caseLabel8} @TAXIODD_15132 {caseNum9} 25 {caseLabel9} @TAXIODD_15185
switch_continued 26 {caseLabel1} @TAXIODD_15238 {caseNum2} 27 {caseLabel2} @TAXIODD_15291 {caseNum3} -1 {caseLabel3} @TAXIODD_15461 {caseNum4} -1 {caseLabel4} @TAXIODD_15461 {caseNum5} -1 {caseLabel5} @TAXIODD_15461 {caseNum6} -1 {caseLabel6} @TAXIODD_15461 {caseNum7} -1 {caseLabel7} @TAXIODD_15461 {caseNum8} -1 {caseLabel8} @TAXIODD_15461 {caseNum9} -1 {caseLabel9} @TAXIODD_15461

:TAXIODD_13913
Text.PrintNow('TX_SF1', 5000, 1)
121@ = -1974.876
122@ = 486.737
123@ = 30.371
goto @TAXIODD_15461

:TAXIODD_13966
Text.PrintNow('TX_SF2', 5000, 1)
121@ = -2044.419
122@ = 500.771
123@ = 35.176
goto @TAXIODD_15461

:TAXIODD_14019
Text.PrintNow('TX_SF3', 5000, 1)
121@ = -2150.581
122@ = 251.624
123@ = 35.176
goto @TAXIODD_15461

:TAXIODD_14072
Text.PrintNow('TX_SF4', 5000, 1)
121@ = -1988.513
122@ = 138.31
123@ = 27.857
goto @TAXIODD_15461

:TAXIODD_14125
Text.PrintNow('TX_SF5', 5000, 1)
121@ = -2216.399
122@ = -297.305
123@ = 35.202
goto @TAXIODD_15461

:TAXIODD_14178
Text.PrintNow('TX_SF6', 5000, 1)
121@ = -2726.428
122@ = -310.5865
123@ = 6.0313
goto @TAXIODD_15461

:TAXIODD_14231
Text.PrintNow('TX_SF7', 5000, 1)
121@ = -2704.649
122@ = -3.5644
123@ = 3.1953
goto @TAXIODD_15461

:TAXIODD_14284
Text.PrintNow('TX_SF8', 5000, 1)
121@ = -2708.997
122@ = 127.501
123@ = 4.584
goto @TAXIODD_15461

:TAXIODD_14337
Text.PrintNow('TX_SF9', 5000, 1)
121@ = -2751.905
122@ = 376.781
123@ = 4.584
goto @TAXIODD_15461

:TAXIODD_14390
Text.PrintNow('TX_SF10', 5000, 1)
121@ = -2415.75
122@ = 330.9614
123@ = 33.9765
goto @TAXIODD_15461

:TAXIODD_14443
Text.PrintNow('TX_SF11', 5000, 1)
121@ = -2454.926
122@ = 138.9312
123@ = 33.9765
goto @TAXIODD_15461

:TAXIODD_14496
Text.PrintNow('TX_SF12', 5000, 1)
121@ = -2499.214
122@ = -16.6149
123@ = 24.6094
goto @TAXIODD_15461

:TAXIODD_14549
Text.PrintNow('TX_SF13', 5000, 1)
121@ = -2431.735
122@ = -198.9205
123@ = 34.1563
goto @TAXIODD_15461

:TAXIODD_14602
Text.PrintNow('TX_SF14', 5000, 1)
121@ = -1815.151
122@ = 597.754
123@ = 38.528
goto @TAXIODD_15461

:TAXIODD_14655
Text.PrintNow('TX_SF15', 5000, 1)
121@ = -1530.776
122@ = 487.201
123@ = 9.44
goto @TAXIODD_15461

:TAXIODD_14708
Text.PrintNow('TX_SF16', 5000, 1)
121@ = -1745.08
122@ = 27.759
123@ = 5.452
goto @TAXIODD_15461

:TAXIODD_14761
Text.PrintNow('TX_SF17', 5000, 1)
121@ = -1414.557
122@ = -301.347
123@ = 14.637
goto @TAXIODD_15461

:TAXIODD_14814
Text.PrintNow('TX_SF18', 5000, 1)
121@ = -2618.467
122@ = 1432.752
123@ = 6.1016
goto @TAXIODD_15461

:TAXIODD_14867
Text.PrintNow('TX_SF19', 5000, 1)
121@ = -1904.765
122@ = 882.7293
123@ = 34.0156
goto @TAXIODD_15461

:TAXIODD_14920
Text.PrintNow('TX_SF20', 5000, 1)
121@ = -2134.729
122@ = 919.0828
123@ = 78.8438
goto @TAXIODD_15461

:TAXIODD_14973
Text.PrintNow('TX_SF21', 5000, 1)
121@ = -2361.836
122@ = 993.0967
123@ = 49.6875
goto @TAXIODD_15461

:TAXIODD_15026
Text.PrintNow('TX_SF22', 5000, 1)
121@ = -2753.69
122@ = 779.9389
123@ = 53.2422
goto @TAXIODD_15461

:TAXIODD_15079
Text.PrintNow('TX_SF23', 5000, 1)
121@ = -1714.717
122@ = 1332.564
123@ = 6.0391
goto @TAXIODD_15461

:TAXIODD_15132
Text.PrintNow('TX_SF24', 5000, 1)
121@ = -2251.033
122@ = 717.7971
123@ = 48.2969
goto @TAXIODD_15461

:TAXIODD_15185
Text.PrintNow('TX_SF25', 5000, 1)
121@ = -1807.813
122@ = 936.0701
123@ = 23.75
goto @TAXIODD_15461

:TAXIODD_15238
Text.PrintNow('TX_SF26', 5000, 1)
121@ = -1969.205
122@ = 1115.312
123@ = 52.6942
goto @TAXIODD_15461

:TAXIODD_15291
Text.PrintNow('TX_SF27', 5000, 1)
121@ = -2540.593
122@ = 1222.188
123@ = 36.4283
goto @TAXIODD_15461

:TAXIODD_15344
if 
  34@ == 1
goto_if_false @TAXIODD_15369
110@ = 0

:TAXIODD_15369
write_debug "UNKNOWN_SAN_FIERRO_TAXI_DESTINATION"
Text.PrintNow('TX_SF1', 5000, 1)
121@ = -1974.876
122@ = 486.737
123@ = 30.371
goto @TAXIODD_15461

:TAXIODD_15461
return 

:TAXIODD_15463
write_debug "NO_RED_COUNTY_DESTINATIONS_YET"
if 
  34@ == 1
goto_if_false @TAXIODD_15529
110@ = 0
goto @TAXIODD_15559

:TAXIODD_15529
write_debug "CHOOSING_LOS_SANTOS"
gosub @TAXIODD_8407

:TAXIODD_15559
return 

:TAXIODD_15561
write_debug "NO_FLINT_COUNTY_DESTINATIONS_YET"
if 
  34@ == 1
goto_if_false @TAXIODD_15629
110@ = 0
goto @TAXIODD_15659

:TAXIODD_15629
write_debug "CHOOSING_SAN_FIERRO"
gosub @TAXIODD_13606

:TAXIODD_15659
return 

:TAXIODD_15661
write_debug "NO_WHETSTONE_DESTINATIONS_YET"
if 
  34@ == 1
goto_if_false @TAXIODD_15726
110@ = 0
goto @TAXIODD_15756

:TAXIODD_15726
write_debug "CHOOSING_SAN_FIERRO"
gosub @TAXIODD_13606

:TAXIODD_15756
return 

:TAXIODD_15758
if 
  34@ == 1
goto_if_false @TAXIODD_15798
set_lvar_int_to_lvar_int 110@ = 148@
110@ += 1
goto @TAXIODD_15807

:TAXIODD_15798
110@ = Math.RandomIntInRange(1, 3)

:TAXIODD_15807
switch_start 110@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_15976 {caseNum1} 1 {caseLabel1} @TAXIODD_15870 {caseNum2} 2 {caseLabel2} @TAXIODD_15923 {caseNum3} -1 {caseLabel3} @TAXIODD_16096 {caseNum4} -1 {caseLabel4} @TAXIODD_16096 {caseNum5} -1 {caseLabel5} @TAXIODD_16096 {caseNum6} -1 {caseLabel6} @TAXIODD_16096 {caseNum7} -1 {caseLabel7} @TAXIODD_16096

:TAXIODD_15870
Text.PrintNow('TX_TR1', 5000, 1)
121@ = -1934.078
122@ = 2382.762
123@ = 48.5
goto @TAXIODD_16096

:TAXIODD_15923
Text.PrintNow('TX_TR2', 5000, 1)
121@ = -846.9434
122@ = 1528.154
123@ = 20.551
goto @TAXIODD_16096

:TAXIODD_15976
if 
  34@ == 1
goto_if_false @TAXIODD_16001
110@ = 0

:TAXIODD_16001
write_debug "UNKNOWN_TIERRA_ROBADA_TAXI_DESTINATION"
Text.PrintNow('TX_TR1', 5000, 1)
121@ = -1934.078
122@ = 2382.762
123@ = 48.5
goto @TAXIODD_16096

:TAXIODD_16096
return 

:TAXIODD_16098
if 
  34@ == 1
goto_if_false @TAXIODD_16138
set_lvar_int_to_lvar_int 110@ = 148@
110@ += 1
goto @TAXIODD_16147

:TAXIODD_16138
110@ = Math.RandomIntInRange(1, 6)

:TAXIODD_16147
switch_start 110@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_16475 {caseNum1} 1 {caseLabel1} @TAXIODD_16210 {caseNum2} 2 {caseLabel2} @TAXIODD_16263 {caseNum3} 3 {caseLabel3} @TAXIODD_16316 {caseNum4} 4 {caseLabel4} @TAXIODD_16369 {caseNum5} 5 {caseLabel5} @TAXIODD_16422 {caseNum6} -1 {caseLabel6} @TAXIODD_16593 {caseNum7} -1 {caseLabel7} @TAXIODD_16593

:TAXIODD_16210
Text.PrintNow('TX_BC1', 5000, 1)
121@ = 689.646
122@ = 1943.252
123@ = 4.539
goto @TAXIODD_16593

:TAXIODD_16263
Text.PrintNow('TX_BC2', 5000, 1)
121@ = -904.3732
122@ = 2007.643
123@ = 59.9141
goto @TAXIODD_16593

:TAXIODD_16316
Text.PrintNow('TX_BC3', 5000, 1)
121@ = 392.0225
122@ = 2547.806
123@ = 15.5568
goto @TAXIODD_16593

:TAXIODD_16369
Text.PrintNow('TX_BC4', 5000, 1)
121@ = 832.8276
122@ = 1705.429
123@ = 4.8587
goto @TAXIODD_16593

:TAXIODD_16422
Text.PrintNow('TX_BC5', 5000, 1)
121@ = -84.9834
122@ = 1358.616
123@ = 9.3644
goto @TAXIODD_16593

:TAXIODD_16475
if 
  34@ == 1
goto_if_false @TAXIODD_16500
110@ = 0

:TAXIODD_16500
write_debug "UNKNOWN_BONE_COUNTY_TAXI_DESTINATION"
Text.PrintNow('TX_BC1', 5000, 1)
121@ = 689.646
122@ = 1943.252
123@ = 4.539
goto @TAXIODD_16593

:TAXIODD_16593
return 

:TAXIODD_16595
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @TAXIODD_16644
48@ += 1
if 
  48@ > 2
goto_if_false @TAXIODD_16642
48@ = 0

:TAXIODD_16642
clear_all_view_variables 

:TAXIODD_16644
if 
  48@ == 1
goto_if_false @TAXIODD_16819
set_var_int_to_lvar_int $nHoldModGarageState = 38@
set_var_int_to_lvar_int $Taxiodd_view_debug = 39@
set_var_int_to_lvar_int $8203 = 47@
set_var_int_to_var_int $8204 = $taxi_passed
set_var_int_to_lvar_int $8205 = 146@
$8206 = 0
$8207 = 0
$8208 = 0
view_integer_variable $nHoldModGarageState {_p2} "M_STAGE"
view_integer_variable $Taxiodd_view_debug {_p2} "M_GOALS"
view_integer_variable $8205 {_p2} "CLEANUP_TESTING"
view_integer_variable $8203 {_p2} "M_MISSION_TIMER"
view_integer_variable $8204 {_p2} "TOTAL_TAXI_PASSED"

:TAXIODD_16819
if 
  48@ == 2
goto_if_false @TAXIODD_16837

:TAXIODD_16837
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @TAXIODD_16859
40@ = 1

:TAXIODD_16859
if 
is_ps2_keyboard_key_just_pressed 19
goto_if_false @TAXIODD_16947
if 
  41@ == 0
goto_if_false @TAXIODD_16922
41@ = 1
write_debug "LEVEL_PAUSED"
goto @TAXIODD_16947

:TAXIODD_16922
41@ = 0
write_debug "LEVEL_UNPAUSED"

:TAXIODD_16947
return 

:TAXIODD_16949
if 
  not is_ps2_keyboard_key_just_pressed 13
goto_if_false @TAXIODD_16966
return 

:TAXIODD_16966
if 
  38@ == 2
goto_if_false @TAXIODD_17023
World.ClearArea(121@, 122@, 123@, 10.0, False)
Char.SetCoordinates($scplayer, 121@, 122@, 123@)
39@ = 1

:TAXIODD_17023
return 

:TAXIODD_17025
147@ = 0
148@ = 0

:TAXIODD_17039
110@ = 0
switch_start 147@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_17549 {caseNum1} 0 {caseLabel1} @TAXIODD_17174 {caseNum2} 1 {caseLabel2} @TAXIODD_17220 {caseNum3} 2 {caseLabel3} @TAXIODD_17268 {caseNum4} 3 {caseLabel4} @TAXIODD_17314 {caseNum5} 4 {caseLabel5} @TAXIODD_17360 {caseNum6} 5 {caseLabel6} @TAXIODD_17408 {caseNum7} 6 {caseLabel7} @TAXIODD_17453
switch_continued 7 {caseLabel1} @TAXIODD_17502 {caseNum2} -1 {caseLabel2} @TAXIODD_17556 {caseNum3} -1 {caseLabel3} @TAXIODD_17556 {caseNum4} -1 {caseLabel4} @TAXIODD_17556 {caseNum5} -1 {caseLabel5} @TAXIODD_17556 {caseNum6} -1 {caseLabel6} @TAXIODD_17556 {caseNum7} -1 {caseLabel7} @TAXIODD_17556 {caseNum8} -1 {caseLabel8} @TAXIODD_17556 {caseNum9} -1 {caseLabel9} @TAXIODD_17556

:TAXIODD_17174
gosub @TAXIODD_8407
if 
  110@ <> 0
goto_if_false @TAXIODD_17213
write_debug "LOS_SANTOS"

:TAXIODD_17213
goto @TAXIODD_17556

:TAXIODD_17220
gosub @TAXIODD_10663
if 
  110@ <> 0
goto_if_false @TAXIODD_17261
write_debug "LAS_VENTURAS"

:TAXIODD_17261
goto @TAXIODD_17556

:TAXIODD_17268
gosub @TAXIODD_13606
if 
  110@ <> 0
goto_if_false @TAXIODD_17307
write_debug "SAN_FIERRO"

:TAXIODD_17307
goto @TAXIODD_17556

:TAXIODD_17314
gosub @TAXIODD_15463
if 
  110@ <> 0
goto_if_false @TAXIODD_17353
write_debug "RED_COUNTY"

:TAXIODD_17353
goto @TAXIODD_17556

:TAXIODD_17360
gosub @TAXIODD_15561
if 
  110@ <> 0
goto_if_false @TAXIODD_17401
write_debug "FLINT_COUNTY"

:TAXIODD_17401
goto @TAXIODD_17556

:TAXIODD_17408
gosub @TAXIODD_15661
if 
  110@ <> 0
goto_if_false @TAXIODD_17446
write_debug "WHETSTONE"

:TAXIODD_17446
goto @TAXIODD_17556

:TAXIODD_17453
gosub @TAXIODD_15758
if 
  110@ <> 0
goto_if_false @TAXIODD_17495
write_debug "TIERRA_ROBADA"

:TAXIODD_17495
goto @TAXIODD_17556

:TAXIODD_17502
gosub @TAXIODD_16098
if 
  110@ <> 0
goto_if_false @TAXIODD_17542
write_debug "BONE_COUNTY"

:TAXIODD_17542
goto @TAXIODD_17556

:TAXIODD_17549
147@ = -1

:TAXIODD_17556
if 
  110@ == 0
goto_if_false @TAXIODD_17599
wait 0
147@ += 1
148@ = 0
goto @TAXIODD_17039

:TAXIODD_17599
write_debug_with_int "J_A_D___ID" {_p2} 110@

:TAXIODD_17616
if 
  not is_ps2_keyboard_key_just_pressed 13
goto_if_false @TAXIODD_17700
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @TAXIODD_17660
147@ += 1
goto @TAXIODD_17039

:TAXIODD_17660
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @TAXIODD_17689
148@ += 1
goto @TAXIODD_17039

:TAXIODD_17689
wait 0
goto @TAXIODD_17616

:TAXIODD_17700
if 
  not Char.IsDead($scplayer)
goto_if_false @TAXIODD_17744
97@ = Blip.AddForCoord(121@, 122@, 123@)
Char.SetCoordinates($scplayer, 121@, 122@, 123@)

:TAXIODD_17744
148@ += 1
write_debug "PRESS_N_FOR_NEXT_FARE"

:TAXIODD_17776
if 
  not is_ps2_keyboard_key_just_pressed 17
goto_if_false @TAXIODD_17802
wait 0
goto @TAXIODD_17776

:TAXIODD_17802
Blip.Remove(97@)
wait 0
goto @TAXIODD_17039
return 

:TAXIODD_17820
43@ += 1
if 
  43@ > 9
goto_if_false @TAXIODD_17852
43@ = 0

:TAXIODD_17852
return 

:TAXIODD_17854
44@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 46@ = 44@
sub_int_lvar_from_int_lvar 46@ -= 45@
set_lvar_int_to_lvar_int 45@ = 44@
add_int_lvar_to_int_lvar 47@ += 46@
return 

:TAXIODD_17893
38@ += 1
39@ = 0
TIMERA = 0
TIMERB = 0
return 

:TAXIODD_17923
38@ = 1
39@ = 0
TIMERA = 0
TIMERB = 0
return 

:TAXIODD_17953
return 

:TAXIODD_17955
if 
  not Player.IsPlaying($player1)
goto_if_false @TAXIODD_17982
wait 0
goto @TAXIODD_17955

:TAXIODD_17982
gosub @TAXIODD_18128
gosub @TAXIODD_18164
if 
  $done_taxi_help == 0
goto_if_false @TAXIODD_18032
Text.PrintHelp('TX_H1')
$done_taxi_help = 1

:TAXIODD_18032
gosub @TAXIODD_2884
109@ = 0
112@ = 0
113@ = 0
$boat_timer = 0
Hud.DisplayCounterWithString($boat_timer, CounterDisplay.Number, 'TX_TOTL')
$g_Taxiodd_faresKM = 0
114@ = 5
115@ = 500
94@ = -1
95@ = -1
gosub @TAXIODD_17893
return 

:TAXIODD_18128
Streaming.RequestModel(#CR_AMMOBOX)
Streaming.LoadAllModelsNow

:TAXIODD_18135
if 
  not Streaming.HasModelLoaded(#CR_AMMOBOX)
goto_if_false @TAXIODD_18162
wait 0
goto @TAXIODD_18135

:TAXIODD_18162
return 

:TAXIODD_18164
Streaming.RequestAnimation("MISC")

:TAXIODD_18172
if 
  not Streaming.HasAnimationLoaded("MISC")
goto_if_false @TAXIODD_18202
wait 0
goto @TAXIODD_18172

:TAXIODD_18202
return 

:TAXIODD_18204
if 
  132@ == 1
goto_if_false @TAXIODD_18244
set_lvar_int_to_lvar_int 51@ = 111@
51@ /= 16
goto @TAXIODD_18259

:TAXIODD_18244
set_lvar_int_to_lvar_int 51@ = 111@
51@ /= 40

:TAXIODD_18259
set_lvar_int_to_lvar_int 52@ = 51@
Player.AddScore($player1, 51@)
Text.PrintWithNumberBig('TX_PAY', 51@, 6000, TextStyle.WhiteMiddleSmaller)
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
add_int_lvar_to_int_lvar 109@ += 51@
$boat_timer += 1
$taxi_passed += 1
142@ = 0
if 
  is_int_var_equal_to_int_lvar $boat_timer == 114@
goto_if_false @TAXIODD_18430
Text.PrintWith2NumbersBig('TX_SEQ', $boat_timer, 115@, 5000, TextStyle.MiddleSmallerHigher)
Player.AddScore($player1, 115@)
add_int_lvar_to_int_lvar 109@ += 115@
142@ = 1
add_int_lvar_to_int_lvar 52@ += 115@
114@ += 5
115@ += 500

:TAXIODD_18430
if and
  $done_taxiodd_progress == 0
  $taxi_passed > 49
goto_if_false @TAXIODD_18538
Stat.RegisterOddjobMissionPassed
Stat.PlayerMadeProgress(1)
Audio.PlayMissionPassedTune(2)
Text.PrintBig('TX_DONE', 5000, TextStyle.MiddleSmallerHigher)
Text.PrintNow('TX_NTRO', 7000, 1)
144@ = 1
set_lvar_int_to_lvar_int 106@ = 47@
106@ += 7000
//Game.SetAllTaxisHaveNitro(True)
$done_taxiodd_progress = 1
goto @TAXIODD_18699

:TAXIODD_18538
if 
  $g_Taxiodd_timerKM > 0
goto_if_false @TAXIODD_18631
if 
  142@ == 1
goto_if_false @TAXIODD_18597
Text.PrintBig('TX_FAST', 5000, TextStyle.MiddleSmaller)
goto @TAXIODD_18613

:TAXIODD_18597
Text.PrintBig('TX_FAST', 5000, TextStyle.MiddleSmallerHigher)

:TAXIODD_18613
116@ = Char.SetSayContext(88@, 225)
goto @TAXIODD_18699

:TAXIODD_18631
if 
  142@ == 1
goto_if_false @TAXIODD_18672
Text.PrintBig('TX_WIN', 5000, TextStyle.MiddleSmaller)
goto @TAXIODD_18688

:TAXIODD_18672
Text.PrintBig('TX_WIN', 5000, TextStyle.MiddleSmallerHigher)

:TAXIODD_18688
116@ = Char.SetSayContext(88@, 224)

:TAXIODD_18699
Stat.IncrementIntNoMessage(StatId.PassengersDeliveredInTaxi, 1)
Stat.IncrementIntNoMessage(StatId.TaxiMoneyMade, 52@)
return 

:TAXIODD_18716
$g_Taxiodd_faresKM += 10000
Hud.ClearCounter($g_Taxiodd_timerKM)
132@ = 0
125@ = 0
gosub @TAXIODD_17923
return 

:TAXIODD_18752
if 
  not Char.IsDead(88@)
goto_if_false @TAXIODD_18780
Char.MarkAsNoLongerNeeded(88@)
146@ -= 1

:TAXIODD_18780
Blip.Remove(96@)
Blip.Remove(97@)
Hud.ClearCounter($g_Taxiodd_timerKM)
132@ = 0
126@ = 0
gosub @TAXIODD_17923
return 

:TAXIODD_18818
Text.PrintBig('TX_END', 5000, TextStyle.MiddleSmallerHigher)
Text.PrintWithNumberBig('TX_PAY', 109@, 6000, TextStyle.WhiteMiddleSmaller)
Text.ClearSmallPrints
switch_start 108@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_18987 {caseNum1} 1 {caseLabel1} @TAXIODD_18918 {caseNum2} 2 {caseLabel2} @TAXIODD_18941 {caseNum3} 3 {caseLabel3} @TAXIODD_18964 {caseNum4} -1 {caseLabel4} @TAXIODD_18987 {caseNum5} -1 {caseLabel5} @TAXIODD_18987 {caseNum6} -1 {caseLabel6} @TAXIODD_18987 {caseNum7} -1 {caseLabel7} @TAXIODD_18987

:TAXIODD_18918
Text.PrintNow('TX_F1', 5000, 1)
goto @TAXIODD_18987

:TAXIODD_18941
Text.PrintNow('TX_F2', 5000, 1)
goto @TAXIODD_18987

:TAXIODD_18964
Text.PrintNow('TX_F3', 5000, 1)
goto @TAXIODD_18987

:TAXIODD_18987
Text.ClearHelp
return 

:TAXIODD_18991
if 
  not Char.IsDead(88@)
goto_if_false @TAXIODD_19068
Char.ClearLookAt(88@)
if 
  Car.IsDead(89@)
goto_if_false @TAXIODD_19042
gosub @TAXIODD_6415
goto @TAXIODD_19068

:TAXIODD_19042
if 
  not Char.IsInCar(88@, 89@)
goto_if_false @TAXIODD_19068
gosub @TAXIODD_6415

:TAXIODD_19068
Car.MarkAsNoLongerNeeded(89@)
Char.MarkAsNoLongerNeeded(88@)
49@ = 0

:TAXIODD_19085
Object.MarkAsNoLongerNeeded(90@(49@,4i))
49@ += 1
  49@ >= 4
goto_if_false @TAXIODD_19085
Blip.Remove(96@)
Blip.Remove(97@)
49@ = 0

:TAXIODD_19132
Blip.Remove(98@(49@,3i))
49@ += 1
  49@ >= 3
goto_if_false @TAXIODD_19132
Hud.ClearCounter($boat_timer)
Hud.ClearTimer($g_Taxiodd_faresKM)
Hud.ClearCounter($g_Taxiodd_timerKM)
Streaming.RemoveAnimation("MISC")
Streaming.MarkModelAsNoLongerNeeded(#CR_AMMOBOX)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SetWantedMultiplier(1.0)
Game.SwitchEmergencyServices(True)
Game.SwitchRandomTrains(True)
set_var_int_to_var_int $stop_gargae_for_neil = $g_Taxiodd_bonusKM
$timer_mobile_start = Clock.GetGameTimer()
$flag_player_on_oddjob = 0
$onmission = 0
$flag_taxiodd_mission_launched = 0
Mission.Finish
return 

//-------------Mission 122---------------
// Originally: Paramedic Sub-Mission

:AMBULAN
gosub @AMBULAN_16
gosub @AMBULAN_13159
terminate_this_script 

:AMBULAN_16
$onmission = 1
$flag_player_on_ambulance_mission = 1
script_name 'AMBULAN'
if 
  $done_ambulance_progress == 0
goto_if_false @AMBULAN_61
Stat.RegisterMissionGiven

:AMBULAN_61
wait 0
Game.SetScriptLimitToGangSize(0)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @AMBULAN_221
213@ = Char.StoreCarIsIn($scplayer)
if 
  not Car.IsPassengerSeatFree(213@, SeatIndex.TandemRear)
goto_if_false @AMBULAN_134
81@ = Car.GetCharInPassengerSeat(213@, 0)
Task.LeaveCarImmediately(81@, 213@)
Char.MarkAsNoLongerNeeded(81@)

:AMBULAN_134
if 
  not Car.IsPassengerSeatFree(213@, SeatIndex.RearLeft)
goto_if_false @AMBULAN_175
81@ = Car.GetCharInPassengerSeat(213@, 1)
Task.LeaveCarImmediately(81@, 213@)
Char.MarkAsNoLongerNeeded(81@)

:AMBULAN_175
if 
  not Car.IsPassengerSeatFree(213@, SeatIndex.RearRight)
goto_if_false @AMBULAN_216
81@ = Car.GetCharInPassengerSeat(213@, 2)
Task.LeaveCarImmediately(81@, 213@)
Char.MarkAsNoLongerNeeded(81@)

:AMBULAN_216
Car.MarkAsNoLongerNeeded(213@)

:AMBULAN_221
235@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Text.LoadMissionText('AMBULAE')
Stat.ShowUpdateStats(False)
$8209 = 20000
34@ = 0
39@ = 0
40@ = 0
41@ = 0
42@ = 0
43@ = 0
37@ = 1
36@ = 0
83@ = 0
86@ = 0
89@ = 0
92@ = 0
95@ = 0
58@ = 0
61@ = 0
64@ = 0
67@ = 0
70@ = 0
73@ = 0
76@ = 0
46@ = 0
189@ = 10.0
$ped_time_limit = 1
48@ = 0
49@ = 0
44@ = 0
45@ = 0
51@ = 0
52@ = 0
53@ = 0
50@ = 0
55@ = 0
79@ = 0
176@ = 0.0
177@ = 0.0
178@ = 0.0
99@ = 0

:AMBULAN_522
if 
  13 > 99@
goto_if_false @AMBULAN_658
100@(99@,13i) = 0
113@(99@,13f) = 0.0
126@(99@,13f) = 0.0
139@(99@,13f) = 0.0
152@(99@,13i) = 0
if 
  10 > 99@
goto_if_false @AMBULAN_644
214@(99@,10i) = 0
224@(99@,10i) = 0

:AMBULAN_644
99@ += 1
goto @AMBULAN_522

:AMBULAN_658
99@ = 0
96@ = 0
97@ = 0
234@ = 0
$db_ambulance_level = 0
238@ = 0.0

:AMBULAN_703
if 
  10 > 99@
goto_if_false @AMBULAN_836
if 
  Game.IsRelationshipSet(RelationshipType.Hate, 99@, PedType.Player1)
goto_if_false @AMBULAN_775
224@(99@,10i) = 1
234@ += 1
Game.ClearRelationship(RelationshipType.Hate, 99@, PedType.Player1)
goto @AMBULAN_822

:AMBULAN_775
if 
  Game.IsRelationshipSet(RelationshipType.Dislike, 99@, PedType.Player1)
goto_if_false @AMBULAN_822
214@(99@,10i) = 1
234@ += 1
Game.ClearRelationship(RelationshipType.Dislike, 99@, PedType.Player1)

:AMBULAN_822
99@ += 1
goto @AMBULAN_703

:AMBULAN_836
99@ = 0
Text.PrintNow('ATUTOR2', 3000, 1)
Game.SetWantedMultiplier(0.5)
201@, 202@, 203@ = Char.GetCoordinates($scplayer)
212@ = 9999999.0
$Return_cities_passed = Stat.GetInt(StatId.CitiesPassed)
if 
  2 > $Return_cities_passed
goto_if_false @AMBULAN_1470
if 
  $Return_cities_passed == 0
goto_if_false @AMBULAN_1130
204@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, 2004.96, -1442.96, 12.56)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 204@
goto_if_false @AMBULAN_997
set_lvar_float_to_lvar_float 212@ = 204@
213@ = 1

:AMBULAN_997
205@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, 1180.85, -1325.57, 12.58)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 205@
goto_if_false @AMBULAN_1060
set_lvar_float_to_lvar_float 212@ = 205@
213@ = 2

:AMBULAN_1060
208@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, 1244.437, 331.2261, 18.5547)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 208@
goto_if_false @AMBULAN_1123
set_lvar_float_to_lvar_float 212@ = 208@
213@ = 5

:AMBULAN_1123
goto @AMBULAN_1463

:AMBULAN_1130
if 
  $Return_cities_passed == 1
goto_if_false @AMBULAN_1463
204@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, 2004.96, -1442.96, 12.56)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 204@
goto_if_false @AMBULAN_1211
set_lvar_float_to_lvar_float 212@ = 204@
213@ = 1

:AMBULAN_1211
205@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, 1180.85, -1325.57, 12.58)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 205@
goto_if_false @AMBULAN_1274
set_lvar_float_to_lvar_float 212@ = 205@
213@ = 2

:AMBULAN_1274
208@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, 1244.437, 331.2261, 18.5547)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 208@
goto_if_false @AMBULAN_1337
set_lvar_float_to_lvar_float 212@ = 208@
213@ = 5

:AMBULAN_1337
209@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, -2198.693, -2290.105, 29.625)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 209@
goto_if_false @AMBULAN_1400
set_lvar_float_to_lvar_float 212@ = 209@
213@ = 6

:AMBULAN_1400
210@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, -2670.285, 616.4364, 13.4531)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 210@
goto_if_false @AMBULAN_1463
set_lvar_float_to_lvar_float 212@ = 210@
213@ = 7

:AMBULAN_1463
goto @AMBULAN_1974

:AMBULAN_1470
204@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, 2004.96, -1442.96, 12.56)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 204@
goto_if_false @AMBULAN_1533
set_lvar_float_to_lvar_float 212@ = 204@
213@ = 1

:AMBULAN_1533
205@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, 1180.85, -1325.57, 12.58)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 205@
goto_if_false @AMBULAN_1596
set_lvar_float_to_lvar_float 212@ = 205@
213@ = 2

:AMBULAN_1596
206@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, -316.3832, 1056.045, 18.7344)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 206@
goto_if_false @AMBULAN_1659
set_lvar_float_to_lvar_float 212@ = 206@
213@ = 3

:AMBULAN_1659
207@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, -1514.823, 2527.119, 54.7443)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 207@
goto_if_false @AMBULAN_1722
set_lvar_float_to_lvar_float 212@ = 207@
213@ = 4

:AMBULAN_1722
208@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, 1244.437, 331.2261, 18.5547)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 208@
goto_if_false @AMBULAN_1785
set_lvar_float_to_lvar_float 212@ = 208@
213@ = 5

:AMBULAN_1785
209@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, -2198.693, -2290.105, 29.625)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 209@
goto_if_false @AMBULAN_1848
set_lvar_float_to_lvar_float 212@ = 209@
213@ = 6

:AMBULAN_1848
210@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, -2670.285, 616.4364, 13.4531)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 210@
goto_if_false @AMBULAN_1911
set_lvar_float_to_lvar_float 212@ = 210@
213@ = 7

:AMBULAN_1911
211@ = Math.GetDistanceBetweenCoords3D(201@, 202@, 203@, 1578.446, 1770.682, 9.8358)
if 
  is_float_lvar_greater_than_float_lvar 212@ > 211@
goto_if_false @AMBULAN_1974
set_lvar_float_to_lvar_float 212@ = 211@
213@ = 8

:AMBULAN_1974
switch_start 213@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @AMBULAN_2958 {caseNum1} 1 {caseLabel1} @AMBULAN_2102 {caseNum2} 2 {caseLabel2} @AMBULAN_2209 {caseNum3} 3 {caseLabel3} @AMBULAN_2316 {caseNum4} 4 {caseLabel4} @AMBULAN_2423 {caseNum5} 5 {caseLabel5} @AMBULAN_2530 {caseNum6} 6 {caseLabel6} @AMBULAN_2637 {caseNum7} 7 {caseLabel7} @AMBULAN_2744
switch_continued 8 {caseLabel1} @AMBULAN_2851 {caseNum2} -1 {caseLabel2} @AMBULAN_3065 {caseNum3} -1 {caseLabel3} @AMBULAN_3065 {caseNum4} -1 {caseLabel4} @AMBULAN_3065 {caseNum5} -1 {caseLabel5} @AMBULAN_3065 {caseNum6} -1 {caseLabel6} @AMBULAN_3065 {caseNum7} -1 {caseLabel7} @AMBULAN_3065 {caseNum8} -1 {caseLabel8} @AMBULAN_3065 {caseNum9} -1 {caseLabel9} @AMBULAN_3065

:AMBULAN_2102
167@ = 2004.96
168@ = -1442.96
169@ = 12.56
173@ = 2026.0
174@ = -1423.0
175@ = 17.0
197@ = 1200.0
198@ = 2930.0
199@ = -2213.0
200@ = -1012.0
goto @AMBULAN_3065

:AMBULAN_2209
167@ = 1180.85
168@ = -1325.57
169@ = 12.58
173@ = 1172.0
174@ = -1324.0
175@ = 15.0
197@ = 450.0
198@ = 1800.0
199@ = -1900.0
200@ = -870.0
goto @AMBULAN_3065

:AMBULAN_2316
167@ = -316.3832
168@ = 1056.045
169@ = 18.7344
173@ = -316.0
174@ = 1050.0
175@ = 20.0
197@ = -860.0
198@ = 185.0
199@ = 749.0
200@ = 1616.0
goto @AMBULAN_3065

:AMBULAN_2423
167@ = -1514.006
168@ = 2532.013
169@ = 54.7443
173@ = -1515.0
174@ = 2520.0
175@ = 56.0
197@ = -1684.0
198@ = -702.0
199@ = 1465.0
200@ = 2749.9
goto @AMBULAN_3065

:AMBULAN_2530
167@ = 1225.0
168@ = 302.0
169@ = 20.0
173@ = 1227.0
174@ = 289.5
175@ = 22.64
197@ = 100.0
198@ = 2604.0
199@ = -720.0
200@ = 465.0
goto @AMBULAN_3065

:AMBULAN_2637
167@ = -2198.693
168@ = -2290.105
169@ = 29.625
173@ = -2204.728
174@ = -2296.302
175@ = 29.6181
197@ = -2598.0
198@ = -1500.0
199@ = -2700.0
200@ = -1700.0
goto @AMBULAN_3065

:AMBULAN_2744
167@ = -2670.285
168@ = 616.4364
169@ = 13.4531
173@ = -2677.0
174@ = 632.0
175@ = 14.0
197@ = -2820.0
198@ = -1784.0
199@ = 29.0
200@ = 1180.0
goto @AMBULAN_3065

:AMBULAN_2851
167@ = 1578.446
168@ = 1770.682
169@ = 9.8358
173@ = 1582.0
174@ = 1765.0
175@ = 11.0
197@ = 1000.0
198@ = 2600.0
199@ = 772.0
200@ = 2400.0
goto @AMBULAN_3065

:AMBULAN_2958
167@ = 2004.96
168@ = -1442.96
169@ = 12.56
173@ = 2026.0
174@ = -1423.0
175@ = 17.0
197@ = 1200.0
198@ = 2930.0
199@ = -2213.0
200@ = -1012.0
goto @AMBULAN_3065

:AMBULAN_3065
//Hud.DisplayTimerWithString($8209, TimerDirection.Down, 'AMBTIME')
Hud.DisplayNthCounterWithString($db_ambulance_level, CounterDisplay.Number, 2, 'AMBSEAT')
Hud.DisplayNthCounterWithString($ped_time_limit, CounterDisplay.Number, 1, 'ALEV')
if 
  $onmission == 0
goto_if_false @AMBULAN_3149
47@ = Blip.AddForCoord(167@, 168@, 169@)

:AMBULAN_3149
Hud.ClearTimer($8209)

:AMBULAN_3154
if 
  is_int_lvar_greater_than_int_lvar 37@ > 36@
goto_if_false @AMBULAN_3355
gosub @AMBULAN_7829
set_lvar_float_to_lvar_float 113@(36@,13f) = 176@
set_lvar_float_to_lvar_float 126@(36@,13f) = 177@
set_lvar_float_to_lvar_float 139@(36@,13f) = 178@
if 
  79@ == 1
goto_if_false @AMBULAN_3241
goto @AMBULAN_13159

:AMBULAN_3241
gosub @AMBULAN_10761
set_lvar_int_to_lvar_int 152@(36@,13i) = 35@
if 
  152@(36@,13i) > 45000
goto_if_false @AMBULAN_3306
152@(36@,13i) = 45000
goto @AMBULAN_3341

:AMBULAN_3306
if 
  15000 > 152@(36@,13i)
goto_if_false @AMBULAN_3341
152@(36@,13i) = 15000

:AMBULAN_3341
36@ += 1
goto @AMBULAN_3154

:AMBULAN_3355
gosub @AMBULAN_3747
if 
  37@ > 3
goto_if_false @AMBULAN_3394
45@ = 1
goto @AMBULAN_3401

:AMBULAN_3394
45@ = 0

:AMBULAN_3401
51@ = 0
if 
  2 > 37@
goto_if_false @AMBULAN_3537
set_lvar_int_to_lvar_int 48@ = 35@
div_int_lvar_by_int_lvar 48@ /= 37@
48@ /= 2
set_lvar_int_to_lvar_int 38@ = 37@
38@ += 1
mult_int_lvar_by_int_lvar 48@ *= 38@
add_int_lvar_to_int_var $8209 += 48@
div_int_var_by_int_lvar $8209 /= 37@
set_lvar_int_to_lvar_int 48@ = 35@
48@ /= 3
if 
  48@ > 15000
goto_if_false @AMBULAN_3530
48@ = 15000

:AMBULAN_3530
goto @AMBULAN_3614

:AMBULAN_3537
set_lvar_int_to_var_int 48@ = $8209
div_int_lvar_by_int_lvar 48@ /= 37@
48@ /= 2
set_lvar_int_to_lvar_int 38@ = 37@
38@ += 1
mult_int_lvar_by_int_lvar 48@ *= 38@
add_int_lvar_to_int_var $8209 += 48@
div_int_var_by_int_lvar $8209 /= 37@
set_lvar_int_to_var_int 48@ = $8209
48@ /= 3

:AMBULAN_3614
if 
  60000 > $8209
goto_if_false @AMBULAN_3645
$8209 = 60000

:AMBULAN_3645
if 
  25000 > 48@
goto_if_false @AMBULAN_3679
48@ = 25000
goto @AMBULAN_3710

:AMBULAN_3679
if 
  48@ > 60000
goto_if_false @AMBULAN_3710
48@ = 60000

:AMBULAN_3710
//Hud.DisplayTimerWithString($8209, TimerDirection.Down, 'AMBTIME')
239@ = 0
240@ = 0
goto @AMBULAN_10914

:AMBULAN_3747
if 
  37@ > 0
goto_if_false @AMBULAN_3874
81@ = Char.CreateRandom(113@, 126@, 139@)
Char.FreezePositionAndDontLoadCollision(81@, True)
Char.SetLoadCollisionFlag(81@, False)
83@ = 1
Char.SetDecisionMaker(81@, 235@)
Char.SetBleeding(81@, True)
Char.SetOnlyDamagedByPlayer(81@, True)
188@ = Math.RandomFloatInRange(0.0, 359.9)
Char.SetHeading(81@, 188@)
82@ = Blip.AddForChar(81@)
Blip.SetAsFriendly(82@, True)
Blip.ChangeScale(82@, 2)
100@ = 1

:AMBULAN_3874
if 
  37@ > 1
goto_if_false @AMBULAN_4001
84@ = Char.CreateRandom(114@, 127@, 140@)
86@ = 1
Char.SetDecisionMaker(84@, 235@)
Char.SetBleeding(84@, True)
Char.SetOnlyDamagedByPlayer(84@, True)
188@ = Math.RandomFloatInRange(0.0, 359.9)
Char.SetHeading(84@, 188@)
85@ = Blip.AddForChar(84@)
Blip.SetAsFriendly(85@, True)
Blip.ChangeScale(85@, 2)
Char.FreezePositionAndDontLoadCollision(84@, True)
Char.SetLoadCollisionFlag(84@, False)
101@ = 1

:AMBULAN_4001
if 
  37@ > 2
goto_if_false @AMBULAN_4128
87@ = Char.CreateRandom(115@, 128@, 141@)
89@ = 1
Char.SetDecisionMaker(87@, 235@)
Char.SetBleeding(87@, True)
Char.SetOnlyDamagedByPlayer(87@, True)
188@ = Math.RandomFloatInRange(0.0, 359.9)
Char.SetHeading(87@, 188@)
88@ = Blip.AddForChar(87@)
Blip.SetAsFriendly(88@, True)
Blip.ChangeScale(88@, 2)
Char.FreezePositionAndDontLoadCollision(87@, True)
Char.SetLoadCollisionFlag(87@, False)
102@ = 1

:AMBULAN_4128
if 
  37@ > 3
goto_if_false @AMBULAN_4255
90@ = Char.CreateRandom(116@, 129@, 142@)
92@ = 1
Char.SetDecisionMaker(90@, 235@)
Char.SetBleeding(90@, True)
Char.SetOnlyDamagedByPlayer(90@, True)
188@ = Math.RandomFloatInRange(0.0, 359.9)
Char.SetHeading(90@, 188@)
91@ = Blip.AddForChar(90@)
Blip.SetAsFriendly(91@, True)
Blip.ChangeScale(91@, 2)
Char.FreezePositionAndDontLoadCollision(90@, True)
Char.SetLoadCollisionFlag(90@, False)
103@ = 1

:AMBULAN_4255
if 
  37@ > 4
goto_if_false @AMBULAN_4382
93@ = Char.CreateRandom(117@, 130@, 143@)
95@ = 1
Char.SetDecisionMaker(93@, 235@)
Char.SetBleeding(93@, True)
Char.SetOnlyDamagedByPlayer(93@, True)
188@ = Math.RandomFloatInRange(0.0, 359.9)
Char.SetHeading(93@, 188@)
94@ = Blip.AddForChar(93@)
Blip.SetAsFriendly(94@, True)
Blip.ChangeScale(94@, 2)
Char.FreezePositionAndDontLoadCollision(93@, True)
Char.SetLoadCollisionFlag(93@, False)
104@ = 1

:AMBULAN_4382
if 
  37@ > 5
goto_if_false @AMBULAN_4509
56@ = Char.CreateRandom(118@, 131@, 144@)
58@ = 1
Char.SetDecisionMaker(56@, 235@)
Char.SetBleeding(56@, True)
Char.SetOnlyDamagedByPlayer(56@, True)
188@ = Math.RandomFloatInRange(0.0, 359.9)
Char.SetHeading(56@, 188@)
57@ = Blip.AddForChar(56@)
Blip.SetAsFriendly(57@, True)
Blip.ChangeScale(57@, 2)
Char.FreezePositionAndDontLoadCollision(56@, True)
Char.SetLoadCollisionFlag(56@, False)
105@ = 1

:AMBULAN_4509
if 
  37@ > 6
goto_if_false @AMBULAN_4636
59@ = Char.CreateRandom(119@, 132@, 145@)
61@ = 1
Char.SetDecisionMaker(59@, 235@)
Char.SetBleeding(59@, True)
Char.SetOnlyDamagedByPlayer(59@, True)
188@ = Math.RandomFloatInRange(0.0, 359.9)
Char.SetHeading(59@, 188@)
60@ = Blip.AddForChar(59@)
Blip.SetAsFriendly(60@, True)
Blip.ChangeScale(60@, 2)
Char.FreezePositionAndDontLoadCollision(59@, True)
Char.SetLoadCollisionFlag(59@, False)
106@ = 1

:AMBULAN_4636
if 
  37@ > 7
goto_if_false @AMBULAN_4763
62@ = Char.CreateRandom(120@, 133@, 146@)
64@ = 1
Char.SetDecisionMaker(62@, 235@)
Char.SetBleeding(62@, True)
Char.SetOnlyDamagedByPlayer(62@, True)
188@ = Math.RandomFloatInRange(0.0, 359.9)
Char.SetHeading(62@, 188@)
63@ = Blip.AddForChar(62@)
Blip.SetAsFriendly(63@, True)
Blip.ChangeScale(63@, 2)
Char.FreezePositionAndDontLoadCollision(62@, True)
Char.SetLoadCollisionFlag(62@, False)
107@ = 1

:AMBULAN_4763
if 
  37@ > 8
goto_if_false @AMBULAN_4890
65@ = Char.CreateRandom(121@, 134@, 147@)
67@ = 1
Char.SetDecisionMaker(65@, 235@)
Char.SetBleeding(65@, True)
Char.SetOnlyDamagedByPlayer(65@, True)
188@ = Math.RandomFloatInRange(0.0, 359.9)
Char.SetHeading(65@, 188@)
66@ = Blip.AddForChar(65@)
Blip.SetAsFriendly(66@, True)
Blip.ChangeScale(66@, 2)
Char.FreezePositionAndDontLoadCollision(65@, True)
Char.SetLoadCollisionFlag(65@, False)
108@ = 1

:AMBULAN_4890
if 
  37@ > 9
goto_if_false @AMBULAN_5017
68@ = Char.CreateRandom(122@, 135@, 148@)
70@ = 1
Char.SetDecisionMaker(68@, 235@)
Char.SetBleeding(68@, True)
Char.SetOnlyDamagedByPlayer(68@, True)
188@ = Math.RandomFloatInRange(0.0, 359.9)
Char.SetHeading(68@, 188@)
69@ = Blip.AddForChar(68@)
Blip.SetAsFriendly(69@, True)
Blip.ChangeScale(69@, 2)
Char.FreezePositionAndDontLoadCollision(68@, True)
Char.SetLoadCollisionFlag(68@, False)
109@ = 1

:AMBULAN_5017
if 
  37@ > 10
goto_if_false @AMBULAN_5144
71@ = Char.CreateRandom(123@, 136@, 149@)
73@ = 1
Char.SetDecisionMaker(71@, 235@)
Char.SetBleeding(71@, True)
Char.SetOnlyDamagedByPlayer(71@, True)
188@ = Math.RandomFloatInRange(0.0, 359.9)
Char.SetHeading(71@, 188@)
72@ = Blip.AddForChar(71@)
Blip.SetAsFriendly(72@, True)
Blip.ChangeScale(72@, 2)
Char.FreezePositionAndDontLoadCollision(71@, True)
Char.SetLoadCollisionFlag(71@, False)
110@ = 1

:AMBULAN_5144
if 
  37@ > 11
goto_if_false @AMBULAN_5271
74@ = Char.CreateRandom(124@, 137@, 150@)
76@ = 1
Char.SetDecisionMaker(74@, 235@)
Char.SetBleeding(74@, True)
Char.SetOnlyDamagedByPlayer(74@, True)
188@ = Math.RandomFloatInRange(0.0, 359.9)
Char.SetHeading(74@, 188@)
75@ = Blip.AddForChar(74@)
Blip.SetAsFriendly(75@, True)
Blip.ChangeScale(75@, 2)
Char.FreezePositionAndDontLoadCollision(74@, True)
Char.SetLoadCollisionFlag(74@, False)
111@ = 1

:AMBULAN_5271
return 

:AMBULAN_5273
switch_start 239@ {numCases} 12 {hasDefaultCase} 1 {defaultLabel} @AMBULAN_7813 {caseNum1} 0 {caseLabel1} @AMBULAN_5401 {caseNum2} 1 {caseLabel2} @AMBULAN_5602 {caseNum3} 2 {caseLabel3} @AMBULAN_5803 {caseNum4} 3 {caseLabel4} @AMBULAN_6004 {caseNum5} 4 {caseLabel5} @AMBULAN_6205 {caseNum6} 5 {caseLabel6} @AMBULAN_6406 {caseNum7} 6 {caseLabel7} @AMBULAN_6607
switch_continued 7 {caseLabel1} @AMBULAN_6808 {caseNum2} 8 {caseLabel2} @AMBULAN_7009 {caseNum3} 9 {caseLabel3} @AMBULAN_7210 {caseNum4} 10 {caseLabel4} @AMBULAN_7411 {caseNum5} 11 {caseLabel5} @AMBULAN_7612 {caseNum6} -1 {caseLabel6} @AMBULAN_7827 {caseNum7} -1 {caseLabel7} @AMBULAN_7827 {caseNum8} -1 {caseLabel8} @AMBULAN_7827 {caseNum9} -1 {caseLabel9} @AMBULAN_7827

:AMBULAN_5401
if 
  37@ > 0
goto_if_false @AMBULAN_5588
if 
  3 > 83@
goto_if_false @AMBULAN_5588
if 
  not Char.IsDead(81@)
goto_if_false @AMBULAN_5588
if 
  Char.LocateInCarChar3D($scplayer, 81@, 50.0, 50.0, 20.0, False)
goto_if_false @AMBULAN_5549
if 
  100@ == 1
goto_if_false @AMBULAN_5542
Char.FreezePositionAndDontLoadCollision(81@, False)
Char.SetLoadCollisionFlag(81@, True)
Char.SetCoordinates(81@, 113@, 126@, 139@)
100@ = 0

:AMBULAN_5542
goto @AMBULAN_5588

:AMBULAN_5549
if 
  100@ == 0
goto_if_false @AMBULAN_5588
Char.FreezePositionAndDontLoadCollision(81@, True)
Char.SetLoadCollisionFlag(81@, False)
100@ = 1

:AMBULAN_5588
239@ += 1
goto @AMBULAN_7827

:AMBULAN_5602
if 
  37@ > 1
goto_if_false @AMBULAN_5789
if 
  3 > 86@
goto_if_false @AMBULAN_5789
if 
  not Char.IsDead(84@)
goto_if_false @AMBULAN_5789
if 
  Char.LocateInCarChar3D($scplayer, 84@, 50.0, 50.0, 20.0, False)
goto_if_false @AMBULAN_5750
if 
  101@ == 1
goto_if_false @AMBULAN_5743
Char.FreezePositionAndDontLoadCollision(84@, False)
Char.SetLoadCollisionFlag(84@, True)
Char.SetCoordinates(84@, 114@, 127@, 140@)
101@ = 0

:AMBULAN_5743
goto @AMBULAN_5789

:AMBULAN_5750
if 
  101@ == 0
goto_if_false @AMBULAN_5789
Char.FreezePositionAndDontLoadCollision(84@, True)
Char.SetLoadCollisionFlag(84@, False)
101@ = 1

:AMBULAN_5789
239@ += 1
goto @AMBULAN_7827

:AMBULAN_5803
if 
  37@ > 2
goto_if_false @AMBULAN_5990
if 
  3 > 89@
goto_if_false @AMBULAN_5990
if 
  not Char.IsDead(87@)
goto_if_false @AMBULAN_5990
if 
  Char.LocateInCarChar3D($scplayer, 87@, 50.0, 50.0, 20.0, False)
goto_if_false @AMBULAN_5951
if 
  102@ == 1
goto_if_false @AMBULAN_5944
Char.FreezePositionAndDontLoadCollision(87@, False)
Char.SetLoadCollisionFlag(87@, True)
Char.SetCoordinates(87@, 115@, 128@, 141@)
102@ = 0

:AMBULAN_5944
goto @AMBULAN_5990

:AMBULAN_5951
if 
  102@ == 0
goto_if_false @AMBULAN_5990
Char.FreezePositionAndDontLoadCollision(87@, True)
Char.SetLoadCollisionFlag(87@, False)
102@ = 1

:AMBULAN_5990
239@ += 1
goto @AMBULAN_7827

:AMBULAN_6004
if 
  37@ > 3
goto_if_false @AMBULAN_6191
if 
  3 > 92@
goto_if_false @AMBULAN_6191
if 
  not Char.IsDead(90@)
goto_if_false @AMBULAN_6191
if 
  Char.LocateInCarChar3D($scplayer, 90@, 50.0, 50.0, 20.0, False)
goto_if_false @AMBULAN_6152
if 
  103@ == 1
goto_if_false @AMBULAN_6145
Char.FreezePositionAndDontLoadCollision(90@, False)
Char.SetLoadCollisionFlag(90@, True)
Char.SetCoordinates(90@, 116@, 129@, 142@)
103@ = 0

:AMBULAN_6145
goto @AMBULAN_6191

:AMBULAN_6152
if 
  103@ == 0
goto_if_false @AMBULAN_6191
Char.FreezePositionAndDontLoadCollision(90@, True)
Char.SetLoadCollisionFlag(90@, False)
103@ = 1

:AMBULAN_6191
239@ += 1
goto @AMBULAN_7827

:AMBULAN_6205
if 
  37@ > 4
goto_if_false @AMBULAN_6392
if 
  3 > 95@
goto_if_false @AMBULAN_6392
if 
  not Char.IsDead(93@)
goto_if_false @AMBULAN_6392
if 
  Char.LocateInCarChar3D($scplayer, 93@, 50.0, 50.0, 20.0, False)
goto_if_false @AMBULAN_6353
if 
  104@ == 1
goto_if_false @AMBULAN_6346
Char.FreezePositionAndDontLoadCollision(93@, False)
Char.SetLoadCollisionFlag(93@, True)
Char.SetCoordinates(93@, 117@, 130@, 143@)
104@ = 0

:AMBULAN_6346
goto @AMBULAN_6392

:AMBULAN_6353
if 
  104@ == 0
goto_if_false @AMBULAN_6392
Char.FreezePositionAndDontLoadCollision(93@, True)
Char.SetLoadCollisionFlag(93@, False)
104@ = 1

:AMBULAN_6392
239@ += 1
goto @AMBULAN_7827

:AMBULAN_6406
if 
  37@ > 5
goto_if_false @AMBULAN_6593
if 
  3 > 58@
goto_if_false @AMBULAN_6593
if 
  not Char.IsDead(56@)
goto_if_false @AMBULAN_6593
if 
  Char.LocateInCarChar3D($scplayer, 56@, 50.0, 50.0, 20.0, False)
goto_if_false @AMBULAN_6554
if 
  105@ == 1
goto_if_false @AMBULAN_6547
Char.FreezePositionAndDontLoadCollision(56@, False)
Char.SetLoadCollisionFlag(56@, True)
Char.SetCoordinates(56@, 118@, 131@, 144@)
105@ = 0

:AMBULAN_6547
goto @AMBULAN_6593

:AMBULAN_6554
if 
  105@ == 0
goto_if_false @AMBULAN_6593
Char.FreezePositionAndDontLoadCollision(56@, True)
Char.SetLoadCollisionFlag(56@, False)
105@ = 1

:AMBULAN_6593
239@ += 1
goto @AMBULAN_7827

:AMBULAN_6607
if 
  37@ > 6
goto_if_false @AMBULAN_6794
if 
  3 > 61@
goto_if_false @AMBULAN_6794
if 
  not Char.IsDead(59@)
goto_if_false @AMBULAN_6794
if 
  Char.LocateInCarChar3D($scplayer, 59@, 50.0, 50.0, 20.0, False)
goto_if_false @AMBULAN_6755
if 
  106@ == 1
goto_if_false @AMBULAN_6748
Char.FreezePositionAndDontLoadCollision(59@, False)
Char.SetLoadCollisionFlag(59@, True)
Char.SetCoordinates(59@, 119@, 132@, 145@)
106@ = 0

:AMBULAN_6748
goto @AMBULAN_6794

:AMBULAN_6755
if 
  106@ == 0
goto_if_false @AMBULAN_6794
Char.FreezePositionAndDontLoadCollision(59@, True)
Char.SetLoadCollisionFlag(59@, False)
106@ = 1

:AMBULAN_6794
239@ += 1
goto @AMBULAN_7827

:AMBULAN_6808
if 
  37@ > 7
goto_if_false @AMBULAN_6995
if 
  3 > 64@
goto_if_false @AMBULAN_6995
if 
  not Char.IsDead(62@)
goto_if_false @AMBULAN_6995
if 
  Char.LocateInCarChar3D($scplayer, 62@, 50.0, 50.0, 20.0, False)
goto_if_false @AMBULAN_6956
if 
  107@ == 1
goto_if_false @AMBULAN_6949
Char.FreezePositionAndDontLoadCollision(62@, False)
Char.SetLoadCollisionFlag(62@, True)
Char.SetCoordinates(62@, 120@, 133@, 146@)
107@ = 0

:AMBULAN_6949
goto @AMBULAN_6995

:AMBULAN_6956
if 
  107@ == 0
goto_if_false @AMBULAN_6995
Char.FreezePositionAndDontLoadCollision(62@, True)
Char.SetLoadCollisionFlag(62@, False)
107@ = 1

:AMBULAN_6995
239@ += 1
goto @AMBULAN_7827

:AMBULAN_7009
if 
  37@ > 8
goto_if_false @AMBULAN_7196
if 
  3 > 67@
goto_if_false @AMBULAN_7196
if 
  not Char.IsDead(65@)
goto_if_false @AMBULAN_7196
if 
  Char.LocateInCarChar3D($scplayer, 65@, 50.0, 50.0, 20.0, False)
goto_if_false @AMBULAN_7157
if 
  108@ == 1
goto_if_false @AMBULAN_7150
Char.FreezePositionAndDontLoadCollision(65@, False)
Char.SetLoadCollisionFlag(65@, True)
Char.SetCoordinates(65@, 121@, 134@, 147@)
108@ = 0

:AMBULAN_7150
goto @AMBULAN_7196

:AMBULAN_7157
if 
  108@ == 0
goto_if_false @AMBULAN_7196
Char.FreezePositionAndDontLoadCollision(65@, True)
Char.SetLoadCollisionFlag(65@, False)
108@ = 1

:AMBULAN_7196
239@ += 1
goto @AMBULAN_7827

:AMBULAN_7210
if 
  37@ > 9
goto_if_false @AMBULAN_7397
if 
  3 > 70@
goto_if_false @AMBULAN_7397
if 
  not Char.IsDead(68@)
goto_if_false @AMBULAN_7397
if 
  Char.LocateInCarChar3D($scplayer, 68@, 50.0, 50.0, 20.0, False)
goto_if_false @AMBULAN_7358
if 
  109@ == 1
goto_if_false @AMBULAN_7351
Char.FreezePositionAndDontLoadCollision(68@, False)
Char.SetLoadCollisionFlag(68@, True)
Char.SetCoordinates(68@, 122@, 135@, 148@)
109@ = 0

:AMBULAN_7351
goto @AMBULAN_7397

:AMBULAN_7358
if 
  109@ == 0
goto_if_false @AMBULAN_7397
Char.FreezePositionAndDontLoadCollision(68@, True)
Char.SetLoadCollisionFlag(68@, False)
109@ = 1

:AMBULAN_7397
239@ += 1
goto @AMBULAN_7827

:AMBULAN_7411
if 
  37@ > 10
goto_if_false @AMBULAN_7598
if 
  3 > 73@
goto_if_false @AMBULAN_7598
if 
  not Char.IsDead(71@)
goto_if_false @AMBULAN_7598
if 
  Char.LocateInCarChar3D($scplayer, 71@, 50.0, 50.0, 20.0, False)
goto_if_false @AMBULAN_7559
if 
  110@ == 1
goto_if_false @AMBULAN_7552
Char.FreezePositionAndDontLoadCollision(71@, False)
Char.SetLoadCollisionFlag(71@, True)
Char.SetCoordinates(71@, 123@, 136@, 149@)
110@ = 0

:AMBULAN_7552
goto @AMBULAN_7598

:AMBULAN_7559
if 
  110@ == 0
goto_if_false @AMBULAN_7598
Char.FreezePositionAndDontLoadCollision(71@, True)
Char.SetLoadCollisionFlag(71@, False)
110@ = 1

:AMBULAN_7598
239@ += 1
goto @AMBULAN_7827

:AMBULAN_7612
if 
  37@ > 11
goto_if_false @AMBULAN_7799
if 
  3 > 76@
goto_if_false @AMBULAN_7799
if 
  not Char.IsDead(74@)
goto_if_false @AMBULAN_7799
if 
  Char.LocateInCarChar3D($scplayer, 74@, 50.0, 50.0, 20.0, False)
goto_if_false @AMBULAN_7760
if 
  111@ == 1
goto_if_false @AMBULAN_7753
Char.FreezePositionAndDontLoadCollision(74@, False)
Char.SetLoadCollisionFlag(74@, True)
Char.SetCoordinates(74@, 124@, 137@, 150@)
111@ = 0

:AMBULAN_7753
goto @AMBULAN_7799

:AMBULAN_7760
if 
  111@ == 0
goto_if_false @AMBULAN_7799
Char.FreezePositionAndDontLoadCollision(74@, True)
Char.SetLoadCollisionFlag(74@, False)
111@ = 1

:AMBULAN_7799
239@ += 1
goto @AMBULAN_7827

:AMBULAN_7813
239@ = 0
goto @AMBULAN_7827

:AMBULAN_7827
return 

:AMBULAN_7829
wait 0
170@, 171@, 172@ = Char.GetCoordinates($scplayer)
set_lvar_float_to_lvar_float 190@ = 167@
set_lvar_float_to_lvar_float 193@ = 167@
set_lvar_float_to_lvar_float 191@ = 168@
set_lvar_float_to_lvar_float 194@ = 168@
set_lvar_float_to_lvar_float 192@ = 169@
set_lvar_float_to_lvar_float 195@ = 169@
96@ = World.GetCityFromCoords(170@, 171@, 172@)
cset_lvar_float_to_var_int 237@ =# $ped_time_limit
237@ *= 60.0
add_float_lvar_to_float_lvar 237@ += 238@
if 
  96@ == 0
goto_if_false @AMBULAN_7970
238@ += 15.0
goto @AMBULAN_7980

:AMBULAN_7970
238@ += 1.0

:AMBULAN_7980
if 
  100.0 > 237@
goto_if_false @AMBULAN_8011
237@ = 100.0

:AMBULAN_8011
if 
  238@ > 10000.0
goto_if_false @AMBULAN_8077
if 
  $ped_time_limit == 1
goto_if_false @AMBULAN_8077
Text.ClearThisPrint('ALEVEL')
Text.PrintNow('A_CANC', 3000, 1)

:AMBULAN_8077
sub_float_lvar_from_float_lvar 190@ -= 237@
add_float_lvar_to_float_lvar 193@ += 237@
sub_float_lvar_from_float_lvar 191@ -= 237@
add_float_lvar_to_float_lvar 194@ += 237@
if 
  8 > $ped_time_limit
goto_if_false @AMBULAN_8242
if 
  is_float_lvar_greater_than_float_lvar 197@ > 190@
goto_if_false @AMBULAN_8154
set_lvar_float_to_lvar_float 190@ = 197@

:AMBULAN_8154
if 
  is_float_lvar_greater_than_float_lvar 193@ > 198@
goto_if_false @AMBULAN_8181
set_lvar_float_to_lvar_float 193@ = 198@

:AMBULAN_8181
if 
  is_float_lvar_greater_than_float_lvar 199@ > 191@
goto_if_false @AMBULAN_8208
set_lvar_float_to_lvar_float 191@ = 199@

:AMBULAN_8208
if 
  is_float_lvar_greater_than_float_lvar 166@ > 200@
goto_if_false @AMBULAN_8235
set_lvar_float_to_lvar_float 194@ = 200@

:AMBULAN_8235
goto @AMBULAN_8274

:AMBULAN_8242
set_lvar_float_to_lvar_float 190@ = 197@
set_lvar_float_to_lvar_float 193@ = 198@
set_lvar_float_to_lvar_float 191@ = 199@
set_lvar_float_to_lvar_float 194@ = 200@

:AMBULAN_8274
165@ = Math.RandomFloatInRange(190@, 193@)
166@ = Math.RandomFloatInRange(191@, 194@)
$controlmode = Pad.GetControllerMode()
if 
  $controlmode <> 3
goto_if_false @AMBULAN_8350
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @AMBULAN_8343
53@ = 1

:AMBULAN_8343
goto @AMBULAN_8374

:AMBULAN_8350
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @AMBULAN_8374
53@ = 1

:AMBULAN_8374
if 
  53@ == 1
goto_if_false @AMBULAN_8523
if 
  $controlmode <> 3
goto_if_false @AMBULAN_8470
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @AMBULAN_8463
Text.ClearThisPrint('ALEVEL')
Text.PrintNow('A_CANC', 3000, 1)
79@ = 1
return 

:AMBULAN_8463
goto @AMBULAN_8523

:AMBULAN_8470
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @AMBULAN_8523
Text.ClearThisPrint('ALEVEL')
Text.PrintNow('A_CANC', 3000, 1)
79@ = 1
return 

:AMBULAN_8523
if 
  not Char.IsDead($scplayer)
goto_if_false @AMBULAN_8594
if 
  not Char.IsInModel($scplayer, 416)
goto_if_false @AMBULAN_8594
Text.ClearThisPrint('ALEVEL')
Text.PrintNow('A_CANC', 3000, 1)
79@ = 1
return 

:AMBULAN_8594
176@, 177@, 178@ = Path.GetClosestCharNode(165@, 166@, 169@)
if 
  is_float_lvar_greater_than_float_lvar 197@ > 176@
goto_if_false @AMBULAN_8647
goto @AMBULAN_7829
goto @AMBULAN_8739

:AMBULAN_8647
if 
  is_float_lvar_greater_than_float_lvar 176@ > 198@
goto_if_false @AMBULAN_8680
goto @AMBULAN_7829
goto @AMBULAN_8739

:AMBULAN_8680
if 
  is_float_lvar_greater_than_float_lvar 199@ > 177@
goto_if_false @AMBULAN_8713
goto @AMBULAN_7829
goto @AMBULAN_8739

:AMBULAN_8713
if 
  is_float_lvar_greater_than_float_lvar 177@ > 200@
goto_if_false @AMBULAN_8739
goto @AMBULAN_7829

:AMBULAN_8739
if 
  6.0 > 178@
goto_if_false @AMBULAN_8767
goto @AMBULAN_7829

:AMBULAN_8767
185@ = Math.GetDistanceBetweenCoords3D(170@, 171@, 172@, 176@, 177@, 178@)
if 
  50.0 > 185@
goto_if_false @AMBULAN_8818
goto @AMBULAN_7829

:AMBULAN_8818
186@ = Math.GetDistanceBetweenCoords3D(167@, 168@, 169@, 176@, 177@, 178@)
if 
  30.0 > 186@
goto_if_false @AMBULAN_8869
goto @AMBULAN_7829

:AMBULAN_8869
$Return_cities_passed = Stat.GetInt(StatId.CitiesPassed)
if 
  2 > $Return_cities_passed
goto_if_false @AMBULAN_9331
if 
  $Return_cities_passed == 0
goto_if_false @AMBULAN_9145
if and
  78.4427 > 176@
  -699.519 > 177@
goto_if_false @AMBULAN_8955
wait 0
goto @AMBULAN_7829

:AMBULAN_8955
if and
  -252.6557 > 176@
  -285.766 > 177@
goto_if_false @AMBULAN_8997
wait 0
goto @AMBULAN_7829

:AMBULAN_8997
if 
  -948.3447 > 176@
goto_if_false @AMBULAN_9029
wait 0
goto @AMBULAN_7829

:AMBULAN_9029
if and
  176@ > 1473.448
  177@ > 403.7353
goto_if_false @AMBULAN_9071
wait 0
goto @AMBULAN_7829

:AMBULAN_9071
if 
  177@ > 578.6325
goto_if_false @AMBULAN_9103
wait 0
goto @AMBULAN_7829

:AMBULAN_9103
if and
  837.5551 > 176@
  177@ > 347.4097
goto_if_false @AMBULAN_9145
wait 0
goto @AMBULAN_7829

:AMBULAN_9145
if 
  $Return_cities_passed == 1
goto_if_false @AMBULAN_9331
if and
  176@ > 1473.448
  177@ > 403.7353
goto_if_false @AMBULAN_9205
wait 0
goto @AMBULAN_7829

:AMBULAN_9205
if and
  177@ > 578.6325
  176@ > -1528.498
goto_if_false @AMBULAN_9247
wait 0
goto @AMBULAN_7829

:AMBULAN_9247
if and
  837.5551 > 176@
  176@ > -1528.498
  177@ > 347.4097
goto_if_false @AMBULAN_9299
wait 0
goto @AMBULAN_7829

:AMBULAN_9299
if 
  177@ > 1380.0
goto_if_false @AMBULAN_9331
wait 0
goto @AMBULAN_7829

:AMBULAN_9331
if 
  37@ > 0
goto_if_false @AMBULAN_9400
212@ = Math.GetDistanceBetweenCoords3D(113@, 126@, 139@, 176@, 177@, 178@)
if 
  25.0 > 212@
goto_if_false @AMBULAN_9400
goto @AMBULAN_7829

:AMBULAN_9400
if 
  37@ > 1
goto_if_false @AMBULAN_9469
212@ = Math.GetDistanceBetweenCoords3D(113@, 126@, 139@, 176@, 177@, 178@)
if 
  25.0 > 212@
goto_if_false @AMBULAN_9469
goto @AMBULAN_7829

:AMBULAN_9469
if 
  37@ > 2
goto_if_false @AMBULAN_9538
212@ = Math.GetDistanceBetweenCoords3D(114@, 127@, 140@, 176@, 177@, 178@)
if 
  25.0 > 212@
goto_if_false @AMBULAN_9538
goto @AMBULAN_7829

:AMBULAN_9538
if 
  37@ > 3
goto_if_false @AMBULAN_9607
212@ = Math.GetDistanceBetweenCoords3D(115@, 128@, 141@, 176@, 177@, 178@)
if 
  25.0 > 212@
goto_if_false @AMBULAN_9607
goto @AMBULAN_7829

:AMBULAN_9607
if 
  37@ > 4
goto_if_false @AMBULAN_9676
212@ = Math.GetDistanceBetweenCoords3D(116@, 129@, 142@, 176@, 177@, 178@)
if 
  25.0 > 212@
goto_if_false @AMBULAN_9676
goto @AMBULAN_7829

:AMBULAN_9676
if 
  37@ > 5
goto_if_false @AMBULAN_9745
212@ = Math.GetDistanceBetweenCoords3D(117@, 130@, 143@, 176@, 177@, 178@)
if 
  25.0 > 212@
goto_if_false @AMBULAN_9745
goto @AMBULAN_7829

:AMBULAN_9745
if 
  37@ > 6
goto_if_false @AMBULAN_9814
212@ = Math.GetDistanceBetweenCoords3D(118@, 131@, 144@, 176@, 177@, 178@)
if 
  25.0 > 212@
goto_if_false @AMBULAN_9814
goto @AMBULAN_7829

:AMBULAN_9814
if 
  37@ > 7
goto_if_false @AMBULAN_9883
212@ = Math.GetDistanceBetweenCoords3D(119@, 132@, 145@, 176@, 177@, 178@)
if 
  25.0 > 212@
goto_if_false @AMBULAN_9883
goto @AMBULAN_7829

:AMBULAN_9883
if 
  37@ > 8
goto_if_false @AMBULAN_9952
212@ = Math.GetDistanceBetweenCoords3D(120@, 133@, 146@, 176@, 177@, 178@)
if 
  25.0 > 212@
goto_if_false @AMBULAN_9952
goto @AMBULAN_7829

:AMBULAN_9952
if 
  37@ > 9
goto_if_false @AMBULAN_10021
212@ = Math.GetDistanceBetweenCoords3D(121@, 134@, 147@, 176@, 177@, 178@)
if 
  25.0 > 212@
goto_if_false @AMBULAN_10021
goto @AMBULAN_7829

:AMBULAN_10021
if 
  37@ > 10
goto_if_false @AMBULAN_10090
212@ = Math.GetDistanceBetweenCoords3D(122@, 135@, 148@, 176@, 177@, 178@)
if 
  25.0 > 212@
goto_if_false @AMBULAN_10090
goto @AMBULAN_7829

:AMBULAN_10090
if 
  37@ > 11
goto_if_false @AMBULAN_10159
212@ = Math.GetDistanceBetweenCoords3D(123@, 136@, 149@, 176@, 177@, 178@)
if 
  25.0 > 212@
goto_if_false @AMBULAN_10159
goto @AMBULAN_7829

:AMBULAN_10159
if 
  World.IsPointObscuredByAMissionEntity(176@, 177@, 177@, 25.0, 25.0, 10.0)
goto_if_false @AMBULAN_10203
goto @AMBULAN_7829

:AMBULAN_10203
if 
  1186.0 > 176@
goto_if_false @AMBULAN_10294
if 
  176@ > 1047.0
goto_if_false @AMBULAN_10294
if 
  -1406.0 > 177@
goto_if_false @AMBULAN_10294
if 
  177@ > -1567.0
goto_if_false @AMBULAN_10294
goto @AMBULAN_7829

:AMBULAN_10294
if 
  1444.0 > 176@
goto_if_false @AMBULAN_10385
if 
  176@ > 1339.0
goto_if_false @AMBULAN_10385
if 
  -1450.0 > 177@
goto_if_false @AMBULAN_10385
if 
  177@ > -1504.0
goto_if_false @AMBULAN_10385
goto @AMBULAN_7829

:AMBULAN_10385
if 
  2041.979 > 176@
goto_if_false @AMBULAN_10476
if 
  176@ > 1999.387
goto_if_false @AMBULAN_10476
if 
  -1408.708 > 177@
goto_if_false @AMBULAN_10476
if 
  177@ > -1445.462
goto_if_false @AMBULAN_10476
goto @AMBULAN_7829

:AMBULAN_10476
if 
  1202.0 > 176@
goto_if_false @AMBULAN_10567
if 
  176@ > 1162.0
goto_if_false @AMBULAN_10567
if 
  -1238.0 > 177@
goto_if_false @AMBULAN_10567
if 
  177@ > -1250.0
goto_if_false @AMBULAN_10567
goto @AMBULAN_7829

:AMBULAN_10567
if 
  2632.818 > 176@
goto_if_false @AMBULAN_10658
if 
  176@ > 2546.463
goto_if_false @AMBULAN_10658
if 
  -1129.673 > 177@
goto_if_false @AMBULAN_10658
if 
  177@ > -1144.012
goto_if_false @AMBULAN_10658
goto @AMBULAN_7829

:AMBULAN_10658
if 
  -222.5044 > 176@
goto_if_false @AMBULAN_10749
if 
  176@ > -229.096
goto_if_false @AMBULAN_10749
if 
  1412.086 > 177@
goto_if_false @AMBULAN_10749
if 
  177@ > 1393.817
goto_if_false @AMBULAN_10749
goto @AMBULAN_7829

:AMBULAN_10749
238@ = 0.0
return 

:AMBULAN_10761
if 
  2 > 37@
goto_if_false @AMBULAN_10870
if 
  is_float_lvar_greater_than_float_lvar 185@ > 186@
goto_if_false @AMBULAN_10821
set_lvar_float_to_lvar_float 187@ = 185@
div_float_lvar_by_float_lvar 187@ /= 189@
goto @AMBULAN_10837

:AMBULAN_10821
set_lvar_float_to_lvar_float 187@ = 186@
div_float_lvar_by_float_lvar 187@ /= 189@

:AMBULAN_10837
187@ *= 1000.0
cset_lvar_int_to_lvar_float 35@ =# 187@
add_int_lvar_to_int_var $8209 += 35@
goto @AMBULAN_10912

:AMBULAN_10870
set_lvar_float_to_lvar_float 187@ = 186@
div_float_lvar_by_float_lvar 187@ /= 189@
187@ *= 1000.0
cset_lvar_int_to_lvar_float 35@ =# 187@
add_int_lvar_to_int_var $8209 += 35@

:AMBULAN_10912
return 

:AMBULAN_10914
wait 0
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @AMBULAN_10943
$8209 = 999999

:AMBULAN_10943
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @AMBULAN_10980
$done_ambulance_progress = 0
set_lvar_int_to_lvar_int 46@ = 37@
$ped_time_limit = 12

:AMBULAN_10980
if 
  $8209 == 0
goto_if_false @AMBULAN_11028
Text.PrintNow('A_FAIL2', 3000, 1)
79@ = 1
goto @AMBULAN_13159

:AMBULAN_11028
$controlmode = Pad.GetControllerMode()
if 
  $controlmode <> 3
goto_if_false @AMBULAN_11082
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @AMBULAN_11075
53@ = 1

:AMBULAN_11075
goto @AMBULAN_11106

:AMBULAN_11082
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @AMBULAN_11106
53@ = 1

:AMBULAN_11106
if 
  53@ == 1
goto_if_false @AMBULAN_11229
if 
  $controlmode <> 3
goto_if_false @AMBULAN_11189
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @AMBULAN_11182
Text.PrintNow('A_CANC', 3000, 1)
goto @AMBULAN_13159

:AMBULAN_11182
goto @AMBULAN_11229

:AMBULAN_11189
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @AMBULAN_11229
Text.PrintNow('A_CANC', 3000, 1)
goto @AMBULAN_13159

:AMBULAN_11229
if 
  not Char.IsInModel($scplayer, 416)
goto_if_false @AMBULAN_11278
Text.PrintNow('A_CANC', 3000, 1)
goto @AMBULAN_13159
goto @AMBULAN_11334

:AMBULAN_11278
34@ = Char.StoreCarIsInNoSave($scplayer)
if 
  not Car.IsDead(34@)
goto_if_false @AMBULAN_11334
43@ = Car.GetNumberOfPassengers(34@)
42@ = Car.GetMaximumNumberOfPassengers(34@)
set_var_int_to_lvar_int $db_ambulance_level = 42@
sub_int_lvar_from_int_var $db_ambulance_level -= 43@

:AMBULAN_11334
if and
  37@ > 6
  45@ == 2
  51@ == 0
goto_if_false @AMBULAN_11380
45@ = 1
51@ += 1

:AMBULAN_11380
if and
  37@ > 9
  45@ == 2
  51@ == 1
goto_if_false @AMBULAN_11426
45@ = 1
51@ += 1

:AMBULAN_11426
if and
  37@ > 12
  45@ == 2
  51@ == 2
goto_if_false @AMBULAN_11472
45@ = 1
51@ += 1

:AMBULAN_11472
gosub @AMBULAN_5273
if 
  52@ == 1
goto_if_false @AMBULAN_11528
  Char.LocateStoppedInCar3D($scplayer, 167@, 168@, 169@, 6.0, 6.0, 2.0, True)

:AMBULAN_11528
switch_start 240@ {numCases} 12 {hasDefaultCase} 1 {defaultLabel} @AMBULAN_12808 {caseNum1} 0 {caseLabel1} @AMBULAN_11656 {caseNum2} 1 {caseLabel2} @AMBULAN_11752 {caseNum3} 2 {caseLabel3} @AMBULAN_11848 {caseNum4} 3 {caseLabel4} @AMBULAN_11944 {caseNum5} 4 {caseLabel5} @AMBULAN_12040 {caseNum6} 5 {caseLabel6} @AMBULAN_12136 {caseNum7} 6 {caseLabel7} @AMBULAN_12232
switch_continued 7 {caseLabel1} @AMBULAN_12328 {caseNum2} 8 {caseLabel2} @AMBULAN_12424 {caseNum3} 9 {caseLabel3} @AMBULAN_12520 {caseNum4} 10 {caseLabel4} @AMBULAN_12616 {caseNum5} 11 {caseLabel5} @AMBULAN_12712 {caseNum6} -1 {caseLabel6} @AMBULAN_12822 {caseNum7} -1 {caseLabel7} @AMBULAN_12822 {caseNum8} -1 {caseLabel8} @AMBULAN_12822 {caseNum9} -1 {caseLabel9} @AMBULAN_12822

:AMBULAN_11656
if 
  83@ > 0
goto_if_false @AMBULAN_11738
set_lvar_int_to_lvar_int 77@ = 81@
set_lvar_int_to_lvar_int 80@ = 83@
set_lvar_int_to_lvar_int 78@ = 82@
gosub @AMBULAN_13993
if 
  79@ == 1
goto_if_false @AMBULAN_11730
goto @AMBULAN_13159

:AMBULAN_11730
set_lvar_int_to_lvar_int 83@ = 80@

:AMBULAN_11738
240@ += 1
goto @AMBULAN_12822

:AMBULAN_11752
if 
  86@ > 0
goto_if_false @AMBULAN_11834
set_lvar_int_to_lvar_int 77@ = 84@
set_lvar_int_to_lvar_int 80@ = 86@
set_lvar_int_to_lvar_int 78@ = 85@
gosub @AMBULAN_13993
if 
  79@ == 1
goto_if_false @AMBULAN_11826
goto @AMBULAN_13159

:AMBULAN_11826
set_lvar_int_to_lvar_int 86@ = 80@

:AMBULAN_11834
240@ += 1
goto @AMBULAN_12822

:AMBULAN_11848
if 
  89@ > 0
goto_if_false @AMBULAN_11930
set_lvar_int_to_lvar_int 77@ = 87@
set_lvar_int_to_lvar_int 80@ = 89@
set_lvar_int_to_lvar_int 78@ = 88@
gosub @AMBULAN_13993
if 
  79@ == 1
goto_if_false @AMBULAN_11922
goto @AMBULAN_13159

:AMBULAN_11922
set_lvar_int_to_lvar_int 89@ = 80@

:AMBULAN_11930
240@ += 1
goto @AMBULAN_12822

:AMBULAN_11944
if 
  92@ > 0
goto_if_false @AMBULAN_12026
set_lvar_int_to_lvar_int 77@ = 90@
set_lvar_int_to_lvar_int 80@ = 92@
set_lvar_int_to_lvar_int 78@ = 91@
gosub @AMBULAN_13993
if 
  79@ == 1
goto_if_false @AMBULAN_12018
goto @AMBULAN_13159

:AMBULAN_12018
set_lvar_int_to_lvar_int 92@ = 80@

:AMBULAN_12026
240@ += 1
goto @AMBULAN_12822

:AMBULAN_12040
if 
  95@ > 0
goto_if_false @AMBULAN_12122
set_lvar_int_to_lvar_int 77@ = 93@
set_lvar_int_to_lvar_int 80@ = 95@
set_lvar_int_to_lvar_int 78@ = 94@
gosub @AMBULAN_13993
if 
  79@ == 1
goto_if_false @AMBULAN_12114
goto @AMBULAN_13159

:AMBULAN_12114
set_lvar_int_to_lvar_int 95@ = 80@

:AMBULAN_12122
240@ += 1
goto @AMBULAN_12822

:AMBULAN_12136
if 
  58@ > 0
goto_if_false @AMBULAN_12218
set_lvar_int_to_lvar_int 77@ = 56@
set_lvar_int_to_lvar_int 80@ = 58@
set_lvar_int_to_lvar_int 78@ = 57@
gosub @AMBULAN_13993
if 
  79@ == 1
goto_if_false @AMBULAN_12210
goto @AMBULAN_13159

:AMBULAN_12210
set_lvar_int_to_lvar_int 58@ = 80@

:AMBULAN_12218
240@ += 1
goto @AMBULAN_12822

:AMBULAN_12232
if 
  61@ > 0
goto_if_false @AMBULAN_12314
set_lvar_int_to_lvar_int 77@ = 59@
set_lvar_int_to_lvar_int 80@ = 61@
set_lvar_int_to_lvar_int 78@ = 60@
gosub @AMBULAN_13993
if 
  79@ == 1
goto_if_false @AMBULAN_12306
goto @AMBULAN_13159

:AMBULAN_12306
set_lvar_int_to_lvar_int 61@ = 80@

:AMBULAN_12314
240@ += 1
goto @AMBULAN_12822

:AMBULAN_12328
if 
  64@ > 0
goto_if_false @AMBULAN_12410
set_lvar_int_to_lvar_int 77@ = 62@
set_lvar_int_to_lvar_int 80@ = 64@
set_lvar_int_to_lvar_int 78@ = 63@
gosub @AMBULAN_13993
if 
  79@ == 1
goto_if_false @AMBULAN_12402
goto @AMBULAN_13159

:AMBULAN_12402
set_lvar_int_to_lvar_int 64@ = 80@

:AMBULAN_12410
240@ += 1
goto @AMBULAN_12822

:AMBULAN_12424
if 
  67@ > 0
goto_if_false @AMBULAN_12506
set_lvar_int_to_lvar_int 77@ = 65@
set_lvar_int_to_lvar_int 80@ = 67@
set_lvar_int_to_lvar_int 78@ = 66@
gosub @AMBULAN_13993
if 
  79@ == 1
goto_if_false @AMBULAN_12498
goto @AMBULAN_13159

:AMBULAN_12498
set_lvar_int_to_lvar_int 67@ = 80@

:AMBULAN_12506
240@ += 1
goto @AMBULAN_12822

:AMBULAN_12520
if 
  70@ > 0
goto_if_false @AMBULAN_12602
set_lvar_int_to_lvar_int 77@ = 68@
set_lvar_int_to_lvar_int 80@ = 70@
set_lvar_int_to_lvar_int 78@ = 69@
gosub @AMBULAN_13993
if 
  79@ == 1
goto_if_false @AMBULAN_12594
goto @AMBULAN_13159

:AMBULAN_12594
set_lvar_int_to_lvar_int 70@ = 80@

:AMBULAN_12602
240@ += 1
goto @AMBULAN_12822

:AMBULAN_12616
if 
  73@ > 0
goto_if_false @AMBULAN_12698
set_lvar_int_to_lvar_int 77@ = 71@
set_lvar_int_to_lvar_int 80@ = 73@
set_lvar_int_to_lvar_int 78@ = 72@
gosub @AMBULAN_13993
if 
  79@ == 1
goto_if_false @AMBULAN_12690
goto @AMBULAN_13159

:AMBULAN_12690
set_lvar_int_to_lvar_int 73@ = 80@

:AMBULAN_12698
240@ += 1
goto @AMBULAN_12822

:AMBULAN_12712
if 
  76@ > 0
goto_if_false @AMBULAN_12794
set_lvar_int_to_lvar_int 77@ = 74@
set_lvar_int_to_lvar_int 80@ = 76@
set_lvar_int_to_lvar_int 78@ = 75@
gosub @AMBULAN_13993
if 
  79@ == 1
goto_if_false @AMBULAN_12786
goto @AMBULAN_13159

:AMBULAN_12786
set_lvar_int_to_lvar_int 76@ = 80@

:AMBULAN_12794
240@ += 1
goto @AMBULAN_12822

:AMBULAN_12808
240@ = 0
goto @AMBULAN_12822

:AMBULAN_12822
if 
  is_int_lvar_equal_to_int_lvar 46@ == 37@
goto_if_false @AMBULAN_13152
set_lvar_int_to_var_int 44@ = $ped_time_limit
mult_int_lvar_by_int_var 44@ *= $ped_time_limit
44@ *= 50
Hud.ForceBigMessageAndCounter(True)
Text.PrintWithNumberBig('REWARD', 44@, 6000, TextStyle.WhiteMiddleSmaller)
add_int_lvar_to_int_var $total_saved_peds += 46@
add_int_lvar_to_int_lvar 55@ += 46@
37@ += 1
46@ = 0
36@ = 0
Player.AddScore($player1, 44@)
52@ = 0
Blip.Remove(47@)
Blip.Remove(82@)
Blip.Remove(85@)
Blip.Remove(88@)
Blip.Remove(91@)
Blip.Remove(94@)
Blip.Remove(57@)
Blip.Remove(60@)
Blip.Remove(63@)
Blip.Remove(66@)
Blip.Remove(69@)
Blip.Remove(72@)
Blip.Remove(75@)
Stat.RegisterInt(StatId.AmbulanceLevel, $ped_time_limit)
$ped_time_limit += 1
if 
  $ped_time_limit == 13
goto_if_false @AMBULAN_13145
Hud.ForceBigMessageAndCounter(True)
Text.PrintWithNumberBig('A_COMP1', 5000, 5000, TextStyle.MiddleSmallerHigher)
Player.AddScore($player1, 5000)
Audio.PlayMissionPassedTune(2)
if 
  $done_ambulance_progress == 0
goto_if_false @AMBULAN_13143
Stat.PlayerMadeProgress(1)
Text.Print('A_COMP3', 5000, 1)
196@ = Stat.GetFloat(StatId.MaxHealth)
196@ *= 1.5
Stat.IncrementFloatNoMessage(StatId.MaxHealth, 196@)
Stat.RegisterOddjobMissionPassed
$done_ambulance_progress = 1

:AMBULAN_13143
return 

:AMBULAN_13145
goto @AMBULAN_3149

:AMBULAN_13152
goto @AMBULAN_10914

:AMBULAN_13159
Hud.ClearTimer($8209)
Hud.ClearCounter($ped_time_limit)
Hud.ClearCounter($db_ambulance_level)
Text.ClearThisPrint('ALEVEL')
if 
  $ped_time_limit <> 13
goto_if_false @AMBULAN_13238
Text.PrintBig('A_FAIL1', 5000, TextStyle.MiddleSmallerHigher)
Text.PrintWithNumberBig('A_SAVES', 55@, 6000, TextStyle.WhiteMiddleSmaller)

:AMBULAN_13238
if 
  $ped_time_limit <> 13
goto_if_false @AMBULAN_13652
if 
  not Char.IsDead(81@)
goto_if_false @AMBULAN_13289
Char.SetOnlyDamagedByPlayer(81@, False)
Char.ExplodeHead(81@)
Char.RemoveElegantly(81@)

:AMBULAN_13289
if 
  not Char.IsDead(84@)
goto_if_false @AMBULAN_13322
Char.SetOnlyDamagedByPlayer(84@, False)
Char.ExplodeHead(84@)
Char.RemoveElegantly(84@)

:AMBULAN_13322
if 
  not Char.IsDead(87@)
goto_if_false @AMBULAN_13355
Char.SetOnlyDamagedByPlayer(87@, False)
Char.ExplodeHead(87@)
Char.RemoveElegantly(87@)

:AMBULAN_13355
if 
  not Char.IsDead(90@)
goto_if_false @AMBULAN_13388
Char.SetOnlyDamagedByPlayer(90@, False)
Char.ExplodeHead(90@)
Char.RemoveElegantly(90@)

:AMBULAN_13388
if 
  not Char.IsDead(93@)
goto_if_false @AMBULAN_13421
Char.SetOnlyDamagedByPlayer(93@, False)
Char.ExplodeHead(93@)
Char.RemoveElegantly(93@)

:AMBULAN_13421
if 
  not Char.IsDead(56@)
goto_if_false @AMBULAN_13454
Char.SetOnlyDamagedByPlayer(56@, False)
Char.ExplodeHead(56@)
Char.RemoveElegantly(56@)

:AMBULAN_13454
if 
  not Char.IsDead(59@)
goto_if_false @AMBULAN_13487
Char.SetOnlyDamagedByPlayer(59@, False)
Char.ExplodeHead(59@)
Char.RemoveElegantly(59@)

:AMBULAN_13487
if 
  not Char.IsDead(62@)
goto_if_false @AMBULAN_13520
Char.SetOnlyDamagedByPlayer(62@, False)
Char.ExplodeHead(62@)
Char.RemoveElegantly(62@)

:AMBULAN_13520
if 
  not Char.IsDead(65@)
goto_if_false @AMBULAN_13553
Char.SetOnlyDamagedByPlayer(65@, False)
Char.ExplodeHead(65@)
Char.RemoveElegantly(65@)

:AMBULAN_13553
if 
  not Char.IsDead(68@)
goto_if_false @AMBULAN_13586
Char.SetOnlyDamagedByPlayer(68@, False)
Char.ExplodeHead(68@)
Char.RemoveElegantly(68@)

:AMBULAN_13586
if 
  not Char.IsDead(71@)
goto_if_false @AMBULAN_13619
Char.SetOnlyDamagedByPlayer(71@, False)
Char.ExplodeHead(71@)
Char.RemoveElegantly(71@)

:AMBULAN_13619
if 
  not Char.IsDead(74@)
goto_if_false @AMBULAN_13652
Char.SetOnlyDamagedByPlayer(74@, False)
Char.ExplodeHead(74@)
Char.RemoveElegantly(74@)

:AMBULAN_13652
Char.MarkAsNoLongerNeeded(81@)
Char.MarkAsNoLongerNeeded(84@)
Char.MarkAsNoLongerNeeded(87@)
Char.MarkAsNoLongerNeeded(90@)
Char.MarkAsNoLongerNeeded(93@)
Char.MarkAsNoLongerNeeded(56@)
Char.MarkAsNoLongerNeeded(59@)
Char.MarkAsNoLongerNeeded(62@)
Char.MarkAsNoLongerNeeded(65@)
Char.MarkAsNoLongerNeeded(68@)
Char.MarkAsNoLongerNeeded(71@)
Char.MarkAsNoLongerNeeded(74@)
52@ = 0
Blip.Remove(47@)
Blip.Remove(82@)
Blip.Remove(85@)
Blip.Remove(88@)
Blip.Remove(91@)
Blip.Remove(94@)
Blip.Remove(57@)
Blip.Remove(60@)
Blip.Remove(63@)
Blip.Remove(66@)
Blip.Remove(69@)
Blip.Remove(72@)
Blip.Remove(75@)
DecisionMaker.Remove(235@)
Game.SetWantedMultiplier(1.0)
$timer_mobile_start = Clock.GetGameTimer()
99@ = 0

:AMBULAN_13808
if 
  10 > 99@
goto_if_false @AMBULAN_13938
if 
  224@(99@,10i) == 1
goto_if_false @AMBULAN_13875
Game.SetRelationship(RelationshipType.Hate, 99@, PedType.Player1)
234@ -= 1
224@(99@,10i) = 0

:AMBULAN_13875
if 
  214@(99@,10i) == 1
goto_if_false @AMBULAN_13924
Game.SetRelationship(RelationshipType.Dislike, 99@, PedType.Player1)
234@ -= 1
214@(99@,10i) = 0

:AMBULAN_13924
99@ += 1
goto @AMBULAN_13808

:AMBULAN_13938
$onmission = 0
$flag_player_on_ambulance_mission = 0
Mission.Finish
if 
  $done_ambulance_progress == 1
goto_if_false @AMBULAN_13991
$done_ambulance_progress = 2
Stat.ShowUpdateStats(False)
start_new_script @BACKON 

:AMBULAN_13991
return 

:AMBULAN_13993
if 
  Char.IsDead(77@)
goto_if_false @AMBULAN_14034
Text.PrintNow('A_FAIL3', 3000, 1)
79@ = 1
return 

:AMBULAN_14034
if 
  $8209 == 0
goto_if_false @AMBULAN_14087
Char.ExplodeHead(77@)
Char.RemoveElegantly(77@)
Text.PrintNow('A_FAIL2', 3000, 1)
79@ = 1
return 

:AMBULAN_14087
if 
  80@ == 3
goto_if_false @AMBULAN_14255
179@, 180@, 181@ = Char.GetCoordinates(77@)
40@ = Car.GetHealth(34@)
if 
  is_int_lvar_greater_than_int_lvar 39@ > 40@
goto_if_false @AMBULAN_14255
set_lvar_int_to_lvar_int 41@ = 39@
sub_int_lvar_from_int_lvar 41@ -= 40@
41@ *= 50
set_lvar_int_to_var_int 35@ = $8209
sub_int_lvar_from_int_lvar 35@ -= 41@
if 
  35@ > 10
goto_if_false @AMBULAN_14211
sub_int_lvar_from_int_var $8209 -= 41@

:AMBULAN_14211
236@ = Char.SetSayContext(77@, 339)
if 
  0 > $8209
goto_if_false @AMBULAN_14247
$8209 = 0

:AMBULAN_14247
set_lvar_int_to_lvar_int 39@ = 40@

:AMBULAN_14255
if 
  80@ == 1
goto_if_false @AMBULAN_14540
if 
  Char.LocateInCarChar3D($scplayer, 77@, 10.0, 10.0, 2.0, False)
goto_if_false @AMBULAN_14540
43@ = Car.GetNumberOfPassengers(34@)
42@ = Car.GetMaximumNumberOfPassengers(34@)
if 
  is_int_lvar_equal_to_int_lvar 43@ == 42@
goto_if_false @AMBULAN_14392
if 
  50@ == 0
goto_if_false @AMBULAN_14378
Text.PrintNow('A_FULL', 5000, 1)

:AMBULAN_14378
50@ = 1
goto @AMBULAN_14399

:AMBULAN_14392
50@ = 0

:AMBULAN_14399
39@ = Car.GetHealth(34@)
if 
  50@ == 0
goto_if_false @AMBULAN_14517
if 
  97@ == 0
goto_if_false @AMBULAN_14469
Task.EnterCarAsPassenger(77@, 34@, -2, -1)
97@ = 1
goto @AMBULAN_14510

:AMBULAN_14469
98@ = Char.GetScriptTaskStatus(77@, 1482)
if 
  is_int_lvar_equal_to_constant 98@ == 7
goto_if_false @AMBULAN_14510
Task.EnterCarAsPassenger(77@, 34@, -2, -1)

:AMBULAN_14510
goto @AMBULAN_14533

:AMBULAN_14517
Text.PrintNow('A_FULL', 5000, 1)

:AMBULAN_14533
80@ = 2

:AMBULAN_14540
if 
  80@ == 2
goto_if_false @AMBULAN_14619
if 
  not Char.LocateInCarChar2D($scplayer, 77@, 20.0, 20.0, False)
goto_if_false @AMBULAN_14596
80@ = 1

:AMBULAN_14596
if 
  not Char.IsSittingInAnyCar(77@)
goto_if_false @AMBULAN_14619
80@ = 1

:AMBULAN_14619
if 
  80@ == 2
goto_if_false @AMBULAN_14762
if 
  Char.IsSittingInAnyCar(77@)
goto_if_false @AMBULAN_14762
97@ = 0
Blip.Remove(78@)
if 
  52@ == 0
goto_if_false @AMBULAN_14704
47@ = Blip.AddForCoord(167@, 168@, 169@)
52@ = 1

:AMBULAN_14704
set_lvar_int_to_lvar_int 49@ = 152@(240@,13i)
49@ /= 1000
Text.PrintWithNumberBig('A_TIME', 49@, 6000, TextStyle.WhiteMiddleSmaller)
add_int_lvar_to_int_var $8209 += 152@(240@,13i)
80@ = 3

:AMBULAN_14762
if 
  80@ == 3
goto_if_false @AMBULAN_14847
if 
  Char.LocateStoppedInCar3D($scplayer, 167@, 168@, 169@, 6.0, 6.0, 2.0, False)
goto_if_false @AMBULAN_14847
Task.GoStraightToCoord(77@, 173@, 174@, 175@, MoveState.Run, -1)
80@ = 4

:AMBULAN_14847
if 
  80@ == 4
goto_if_false @AMBULAN_15078
if 
  not Char.IsSittingInAnyCar(77@)
goto_if_false @AMBULAN_15078
Task.GoStraightToCoord(77@, 173@, 174@, 175@, MoveState.Run, -1)
Hud.ForceBigMessageAndCounter(True)
Text.PrintBig('A_PASS', 3000, TextStyle.MiddleSmallerHigher)
if 
  45@ == 1
goto_if_false @AMBULAN_15018
set_lvar_int_to_lvar_int 49@ = 48@
49@ /= 1000
Text.PrintWithNumberBig('A_TIME', 49@, 6000, TextStyle.WhiteMiddleSmaller)
34@ = Char.StoreCarIsInNoSave($scplayer)
54@ = Car.GetHealth(34@)
54@ += 110
Car.SetHealth(34@, 54@)
add_int_lvar_to_int_var $8209 += 48@
45@ += 1

:AMBULAN_15018
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
46@ += 1
Stat.IncrementInt(StatId.LivesSaved, 1)
80@ = 0
Char.SetBleeding(77@, False)
Char.SetKeepTask(77@, True)
Char.MarkAsNoLongerNeeded(77@)

:AMBULAN_15078
return 

//-------------Mission 123---------------
// Originally: Firefighter Sub-Mission

:FIRETRU
gosub @FIRETRU_16
gosub @FIRETRU_10463
terminate_this_script 

:FIRETRU_16
$onmission = 1
$flag_player_on_fire_mission = 1
script_name 'FIRETRU'
wait 0
if 
  $done_firetruck_progress == 0
goto_if_false @FIRETRU_65
Stat.RegisterMissionGiven

:FIRETRU_65
165@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Text.LoadMissionText('FIRETRK')
Stat.ShowUpdateStats(False)
162@ = 0.0
$db_fires_extinguished = 0
79@ = 0
80@ = 0
$db_firetruck_level = 0
81@ = 0
83@ = 0
82@ = 0
121@ = 7.0
$amb_free_seats = 1
77@ = 0
126@ = 0
78@ = 0
84@ = 0
35@ = -1
35@ = -1
35@ = -1
87@ = 0
54@ = 0
55@ = 0
56@ = 0
57@ = 0
58@ = 0
59@ = 0
60@ = 0
61@ = 0
62@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
$car_or_ped_flag = 0
$8219 = 0
Game.SetWantedMultiplier(0.5)
if 
  $onmission == 0
goto_if_false @FIRETRU_789
63@ = Blip.AddForCoord($x, $y, $z)
64@ = Blip.AddForCoord($x, $y, $z)
65@ = Blip.AddForCoord($x, $y, $z)
66@ = Blip.AddForCoord($x, $y, $z)
67@ = Blip.AddForCoord($x, $y, $z)
68@ = Blip.AddForCoord($x, $y, $z)
69@ = Blip.AddForCoord($x, $y, $z)
70@ = Blip.AddForCoord($x, $y, $z)
71@ = Blip.AddForCoord($x, $y, $z)
72@ = Blip.AddForCoord($x, $y, $z)
73@ = Blip.AddForCoord($x, $y, $z)
74@ = Blip.AddForCoord($x, $y, $z)
75@ = Blip.AddForCoord($x, $y, $z)
76@ = Blip.AddForCoord($x, $y, $z)
35@ = Car.Create(470, 0.0, 0.0, 0.0)
39@ = Char.Create(PedType.Mission1, 280, 0.0, 0.0, 0.0)
49@ = ScriptFire.CreateCarFire(35@)
50@ = ScriptFire.CreateCarFire(35@)
51@ = ScriptFire.CreateCarFire(35@)
52@ = ScriptFire.CreateCarFire(35@)
53@ = ScriptFire.CreateCharFire(39@)
54@ = ScriptFire.CreateCharFire(39@)
55@ = ScriptFire.CreateCharFire(39@)
56@ = ScriptFire.CreateCharFire(39@)
57@ = ScriptFire.CreateCharFire(39@)
58@ = ScriptFire.CreateCharFire(39@)
59@ = ScriptFire.CreateCharFire(39@)
60@ = ScriptFire.CreateCharFire(39@)
61@ = ScriptFire.CreateCharFire(39@)
62@ = ScriptFire.CreateCharFire(39@)

:FIRETRU_789
88@ = 0
89@ = 0
92@ = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
125@ = Math.RandomIntInRange(25, 44)
if 
  125@ == 25
goto_if_false @FIRETRU_1027
set_lvar_int_to_constant 126@ = 405

:FIRETRU_1027
if 
  125@ == 26
goto_if_false @FIRETRU_1053
set_lvar_int_to_constant 126@ = 418

:FIRETRU_1053
if 
  125@ == 27
goto_if_false @FIRETRU_1079
set_lvar_int_to_constant 126@ = 421

:FIRETRU_1079
if 
  125@ == 28
goto_if_false @FIRETRU_1105
set_lvar_int_to_constant 126@ = 400

:FIRETRU_1105
if 
  125@ == 29
goto_if_false @FIRETRU_1131
set_lvar_int_to_constant 126@ = 404

:FIRETRU_1131
if 
  125@ == 30
goto_if_false @FIRETRU_1157
set_lvar_int_to_constant 126@ = 445

:FIRETRU_1157
if 
  125@ == 31
goto_if_false @FIRETRU_1183
set_lvar_int_to_constant 126@ = 466

:FIRETRU_1183
if 
  125@ == 32
goto_if_false @FIRETRU_1209
set_lvar_int_to_constant 126@ = 467

:FIRETRU_1209
if 
  125@ == 33
goto_if_false @FIRETRU_1235
set_lvar_int_to_constant 126@ = 479

:FIRETRU_1235
if 
  125@ == 34
goto_if_false @FIRETRU_1261
set_lvar_int_to_constant 126@ = 413

:FIRETRU_1261
if 
  125@ == 35
goto_if_false @FIRETRU_1287
set_lvar_int_to_constant 126@ = 420

:FIRETRU_1287
if 
  125@ == 36
goto_if_false @FIRETRU_1313
set_lvar_int_to_constant 126@ = 438

:FIRETRU_1313
if 
  125@ == 37
goto_if_false @FIRETRU_1339
set_lvar_int_to_constant 126@ = 440

:FIRETRU_1339
if 
  125@ == 38
goto_if_false @FIRETRU_1365
set_lvar_int_to_constant 126@ = 551

:FIRETRU_1365
if 
  125@ == 39
goto_if_false @FIRETRU_1391
set_lvar_int_to_constant 126@ = 470

:FIRETRU_1391
if 
  125@ == 40
goto_if_false @FIRETRU_1417
set_lvar_int_to_constant 126@ = 482

:FIRETRU_1417
if 
  125@ == 41
goto_if_false @FIRETRU_1443
set_lvar_int_to_constant 126@ = 546

:FIRETRU_1443
if 
  125@ == 42
goto_if_false @FIRETRU_1469
set_lvar_int_to_constant 126@ = 492

:FIRETRU_1469
if 
  125@ == 43
goto_if_false @FIRETRU_1495
set_lvar_int_to_constant 126@ = 560

:FIRETRU_1495
Streaming.RequestModel(126@)
wait 0
gosub @FIRETRU_8347
if 
  77@ == 1
goto_if_false @FIRETRU_1536
goto @FIRETRU_10463

:FIRETRU_1536
if 
  not Streaming.HasModelLoaded(126@)
goto_if_false @FIRETRU_1600
wait 0
Streaming.RequestModel(126@)
gosub @FIRETRU_8347
if 
  77@ == 1
goto_if_false @FIRETRU_1593
goto @FIRETRU_10463

:FIRETRU_1593
goto @FIRETRU_1536

:FIRETRU_1600
119@ = 0
gosub @FIRETRU_5970
set_lvar_float_to_lvar_float 127@ = 153@
set_lvar_float_to_lvar_float 128@ = 154@
set_lvar_float_to_lvar_float 129@ = 155@
World.ClearArea(127@, 128@, 129@, 5.0, False)
35@ = Car.Create(126@, 127@, 128@, 129@)
Car.FreezePositionAndDontLoadCollision(35@, True)
Car.SetHeading(35@, 160@)
Car.SetLoadCollisionFlag(35@, False)
Car.SetProofs(35@, False, True, False, False, False)
123@ = Math.RandomFloatInRange(0.0, 359.9)
Car.SetHeading(35@, 123@)
50@ = ScriptFire.CreateCarFire(35@)
Blip.Remove(64@)
64@ = Blip.AddForCar(35@)
Blip.SetAsFriendly(64@, True)
Blip.ChangeDisplay(64@, BlipDisplay.BlipOnly)
Car.SetUpsidedownNotDamaged(35@, True)
119@ = 1
88@ += 1
40@ = Char.CreateRandomAsDriver(35@)
Char.SetDecisionMaker(40@, 165@)
Char.SetLoadCollisionFlag(40@, False)
Char.SetOnlyDamagedByPlayer(40@, True)
Char.SetProofs(40@, False, True, True, False, False)
88@ += 1
if 
  $amb_free_seats > 2
goto_if_false @FIRETRU_1913
41@ = Char.CreateRandomAsPassenger(35@, 0)
Char.SetDecisionMaker(41@, 165@)
Char.SetLoadCollisionFlag(41@, False)
Char.SetOnlyDamagedByPlayer(41@, True)
Char.SetProofs(41@, False, True, True, False, False)
88@ += 1

:FIRETRU_1913
if 
  $amb_free_seats > 3
goto_if_false @FIRETRU_1985
42@ = Char.CreateRandomAsPassenger(35@, 1)
Char.SetDecisionMaker(42@, 165@)
Char.SetLoadCollisionFlag(42@, False)
Char.SetOnlyDamagedByPlayer(42@, True)
Char.SetProofs(42@, False, True, True, False, False)
88@ += 1

:FIRETRU_1985
if 
  $amb_free_seats > 4
goto_if_false @FIRETRU_2176
gosub @FIRETRU_5970
set_lvar_float_to_lvar_float 130@ = 153@
set_lvar_float_to_lvar_float 131@ = 154@
set_lvar_float_to_lvar_float 132@ = 155@
World.ClearArea(130@, 131@, 132@, 5.0, False)
36@ = Car.Create(126@, 130@, 131@, 132@)
Car.FreezePositionAndDontLoadCollision(36@, True)
Car.SetHeading(36@, 160@)
Car.SetLoadCollisionFlag(36@, False)
Car.SetProofs(36@, False, True, False, False, False)
Car.TurnToFaceCoord(36@, 127@, 128@)
51@ = ScriptFire.CreateCarFire(36@)
Car.SetForwardSpeed(36@, 20.0)
Blip.Remove(65@)
65@ = Blip.AddForCar(36@)
Blip.SetAsFriendly(65@, True)
Blip.ChangeDisplay(65@, BlipDisplay.BlipOnly)
Car.SetUpsidedownNotDamaged(36@, True)
88@ += 1

:FIRETRU_2176
if 
  $amb_free_seats > 5
goto_if_false @FIRETRU_2246
43@ = Char.CreateRandomAsDriver(36@)
Char.SetDecisionMaker(43@, 165@)
Char.SetLoadCollisionFlag(43@, False)
Char.SetOnlyDamagedByPlayer(43@, True)
Char.SetProofs(43@, False, True, True, False, False)
88@ += 1

:FIRETRU_2246
if 
  $amb_free_seats > 6
goto_if_false @FIRETRU_2318
44@ = Char.CreateRandomAsPassenger(36@, 0)
Char.SetDecisionMaker(44@, 165@)
Char.SetLoadCollisionFlag(44@, False)
Char.SetOnlyDamagedByPlayer(44@, True)
Char.SetProofs(44@, False, True, True, False, False)
88@ += 1

:FIRETRU_2318
if 
  $amb_free_seats > 7
goto_if_false @FIRETRU_2390
45@ = Char.CreateRandomAsPassenger(36@, 1)
Char.SetDecisionMaker(45@, 165@)
Char.SetLoadCollisionFlag(45@, False)
Char.SetOnlyDamagedByPlayer(45@, True)
Char.SetProofs(45@, False, True, True, False, False)
88@ += 1

:FIRETRU_2390
if 
  $amb_free_seats > 8
goto_if_false @FIRETRU_2581
gosub @FIRETRU_5970
set_lvar_float_to_lvar_float 133@ = 153@
set_lvar_float_to_lvar_float 134@ = 154@
set_lvar_float_to_lvar_float 135@ = 155@
World.ClearArea(133@, 134@, 135@, 5.0, False)
37@ = Car.Create(126@, 133@, 134@, 135@)
Car.FreezePositionAndDontLoadCollision(37@, True)
Car.SetHeading(37@, 160@)
Car.SetLoadCollisionFlag(37@, False)
Car.SetProofs(37@, False, True, False, False, False)
Car.TurnToFaceCoord(37@, 127@, 128@)
52@ = ScriptFire.CreateCarFire(37@)
Car.SetForwardSpeed(37@, 20.0)
Blip.Remove(66@)
66@ = Blip.AddForCar(37@)
Blip.SetAsFriendly(66@, True)
Blip.ChangeDisplay(66@, BlipDisplay.BlipOnly)
Car.SetUpsidedownNotDamaged(37@, True)
88@ += 1

:FIRETRU_2581
Streaming.MarkModelAsNoLongerNeeded(126@)
if 
  $amb_free_seats > 9
goto_if_false @FIRETRU_2656
46@ = Char.CreateRandomAsDriver(37@)
Char.SetDecisionMaker(46@, 165@)
Char.SetLoadCollisionFlag(46@, False)
Char.SetOnlyDamagedByPlayer(46@, True)
Char.SetProofs(46@, False, True, True, False, False)
88@ += 1

:FIRETRU_2656
if 
  $amb_free_seats > 10
goto_if_false @FIRETRU_2728
47@ = Char.CreateRandomAsPassenger(37@, 0)
Char.SetDecisionMaker(47@, 165@)
Char.SetLoadCollisionFlag(47@, False)
Char.SetOnlyDamagedByPlayer(47@, True)
Char.SetProofs(47@, False, True, True, False, False)
88@ += 1

:FIRETRU_2728
if 
  $amb_free_seats > 11
goto_if_false @FIRETRU_2800
48@ = Char.CreateRandomAsPassenger(37@, 1)
Char.SetDecisionMaker(48@, 165@)
Char.SetLoadCollisionFlag(48@, False)
Char.SetOnlyDamagedByPlayer(48@, True)
Char.SetProofs(48@, False, True, True, False, False)
88@ += 1

:FIRETRU_2800
if 
  not Car.IsDead(35@)
goto_if_false @FIRETRU_2823
Car.SetMission(35@, CarMission.StopForever)

:FIRETRU_2823
if 
  not Car.IsDead(36@)
goto_if_false @FIRETRU_2846
Car.SetMission(36@, CarMission.StopForever)

:FIRETRU_2846
if 
  not Car.IsDead(37@)
goto_if_false @FIRETRU_2869
Car.SetMission(37@, CarMission.StopForever)

:FIRETRU_2869
gosub @FIRETRU_8347
if 
  77@ == 1
goto_if_false @FIRETRU_2901
goto @FIRETRU_10463

:FIRETRU_2901
if 
  not Char.IsDead(40@)
goto_if_false @FIRETRU_3008
146@, 147@, 148@ = Char.GetCoordinates(40@)
get_name_of_zone 146@ {y} 147@ {z} 148@ {var_name} s$fire_time_limit
if 
  5 > $amb_free_seats
goto_if_false @FIRETRU_2989
Text.PrintStringInStringNow('F_START', s$fire_time_limit, 5000, TextStyle.Middle)
goto @FIRETRU_3008

:FIRETRU_2989
Text.PrintStringInStringNow('F_STAR1', s$fire_time_limit, 5000, TextStyle.Middle)

:FIRETRU_3008
if 
  $amb_free_seats == 1
goto_if_false @FIRETRU_3038
88@ -= 1
Char.Delete(40@)

:FIRETRU_3038
if 
  80@ == 0
goto_if_false @FIRETRU_3104
//Hud.DisplayTimerWithString($db_fires_extinguished, TimerDirection.Down, 'FIRTIME')
Hud.DisplayNthCounterWithString($amb_free_seats, CounterDisplay.Number, 1, 'FLEV')
80@ = 1
goto @FIRETRU_3108

:FIRETRU_3104
Hud.FreezeTimer(False)

:FIRETRU_3108
set_lvar_int_to_var_int 85@ = $amb_free_seats
85@ -= 4
$game_timer = Clock.GetGameTimer()
set_lvar_int_to_var_int 87@ = $game_timer
87@ += 3000

:FIRETRU_3144
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @FIRETRU_3169
$db_fires_extinguished = 300000

:FIRETRU_3169
if 
is_ps2_keyboard_key_pressed 88
goto_if_false @FIRETRU_3310
if 
  not Car.IsDead(35@)
goto_if_false @FIRETRU_3214
Car.SetCanBeDamaged(35@, False)
Car.SetCanBeDamaged(35@, True)

:FIRETRU_3214
if 
  $amb_free_seats > 4
goto_if_false @FIRETRU_3262
if 
  not Car.IsDead(36@)
goto_if_false @FIRETRU_3262
Car.SetCanBeDamaged(36@, False)
Car.SetCanBeDamaged(36@, True)

:FIRETRU_3262
if 
  $amb_free_seats > 8
goto_if_false @FIRETRU_3310
if 
  not Car.IsDead(37@)
goto_if_false @FIRETRU_3310
Car.SetCanBeDamaged(37@, False)
Car.SetCanBeDamaged(37@, True)

:FIRETRU_3310
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @FIRETRU_3346
$done_firetruck_progress = 0
$amb_free_seats = 12
goto @FIRETRU_9899

:FIRETRU_3346
if 
is_ps2_keyboard_key_pressed 29
goto_if_false @FIRETRU_3514
Hud.ClearTimer($db_fires_extinguished)
Hud.ClearCounter($db_firetruck_level)
Hud.ClearCounter($amb_free_seats)
Text.ClearThisPrint('F_START')
Text.ClearThisPrint('F_STAR1')
Text.ClearThisPrint('FIRELVL')
Text.PrintBig('F_PASS1', 5000, TextStyle.MiddleSmallerHigher)
set_lvar_int_to_var_int 79@ = $amb_free_seats
mult_int_lvar_by_int_var 79@ *= $amb_free_seats
79@ *= 50
add_int_lvar_to_int_lvar 83@ += 79@
Text.PrintWithNumberBig('REWARD', 79@, 6000, TextStyle.WhiteMiddleSmaller)
Player.AddScore($player1, 79@)
Text.PrintWithNumberBig('F_COMP1', 5000, 5000, TextStyle.MiddleSmallerHigher)
Player.AddScore($player1, 5000)
Audio.PlayMissionPassedTune(2)

:FIRETRU_3514
if 
  77@ == 1
goto_if_false @FIRETRU_3539
goto @FIRETRU_10463

:FIRETRU_3539
wait 0
$game_timer = Clock.GetGameTimer()
gosub @FIRETRU_8347
if 
  77@ == 1
goto_if_false @FIRETRU_3580
goto @FIRETRU_10463

:FIRETRU_3580
if 
  2 > $got_siren_help_before
goto_if_false @FIRETRU_3777
if 
  $got_siren_help_before == 0
goto_if_false @FIRETRU_3700
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @FIRETRU_3693
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @FIRETRU_3686
if 
  TIMERA > 1000
goto_if_false @FIRETRU_3679
Text.PrintHelp('SPRAY_1')
$got_siren_help_before = 1

:FIRETRU_3679
goto @FIRETRU_3693

:FIRETRU_3686
TIMERA = 0

:FIRETRU_3693
goto @FIRETRU_3777

:FIRETRU_3700
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @FIRETRU_3777
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @FIRETRU_3770
if 
  TIMERA > 1000
goto_if_false @FIRETRU_3763
Text.PrintHelp('SIREN_1')
$got_siren_help_before = 2

:FIRETRU_3763
goto @FIRETRU_3777

:FIRETRU_3770
TIMERA = 0

:FIRETRU_3777
if 
  not Car.IsDead(35@)
goto_if_false @FIRETRU_4160
if 
  Char.LocateAnyMeansCar3D($scplayer, 35@, 50.0, 50.0, 10.0, False)
goto_if_false @FIRETRU_3998
if 
  104@ == 0
goto_if_false @FIRETRU_3991
Car.SetLoadCollisionFlag(35@, True)
Car.FreezePositionAndDontLoadCollision(35@, False)
104@ = 1
if 
  $amb_free_seats > 1
goto_if_false @FIRETRU_3909
if 
  not Char.IsDead(40@)
goto_if_false @FIRETRU_3909
Char.SetLoadCollisionFlag(40@, True)

:FIRETRU_3909
if 
  $amb_free_seats > 2
goto_if_false @FIRETRU_3950
if 
  not Char.IsDead(41@)
goto_if_false @FIRETRU_3950
Char.SetLoadCollisionFlag(41@, True)

:FIRETRU_3950
if 
  $amb_free_seats > 3
goto_if_false @FIRETRU_3991
if 
  not Char.IsDead(42@)
goto_if_false @FIRETRU_3991
Char.SetLoadCollisionFlag(42@, True)

:FIRETRU_3991
goto @FIRETRU_4160

:FIRETRU_3998
if 
  104@ == 1
goto_if_false @FIRETRU_4160
Car.SetLoadCollisionFlag(35@, False)
Car.FreezePositionAndDontLoadCollision(35@, True)
104@ = 0
if 
  $amb_free_seats > 1
goto_if_false @FIRETRU_4078
if 
  not Char.IsDead(40@)
goto_if_false @FIRETRU_4078
Char.SetLoadCollisionFlag(40@, False)

:FIRETRU_4078
if 
  $amb_free_seats > 2
goto_if_false @FIRETRU_4119
if 
  not Char.IsDead(41@)
goto_if_false @FIRETRU_4119
Char.SetLoadCollisionFlag(41@, False)

:FIRETRU_4119
if 
  $amb_free_seats > 3
goto_if_false @FIRETRU_4160
if 
  not Char.IsDead(42@)
goto_if_false @FIRETRU_4160
Char.SetLoadCollisionFlag(42@, False)

:FIRETRU_4160
if 
  $amb_free_seats > 4
goto_if_false @FIRETRU_4962
if 
  not Car.IsDead(36@)
goto_if_false @FIRETRU_4561
if 
  Char.LocateAnyMeansCar3D($scplayer, 36@, 50.0, 50.0, 10.0, False)
goto_if_false @FIRETRU_4399
if 
  105@ == 0
goto_if_false @FIRETRU_4392
Car.SetLoadCollisionFlag(36@, True)
Car.FreezePositionAndDontLoadCollision(36@, False)
105@ = 1
if 
  $amb_free_seats > 5
goto_if_false @FIRETRU_4310
if 
  not Char.IsDead(43@)
goto_if_false @FIRETRU_4310
Char.SetLoadCollisionFlag(43@, True)

:FIRETRU_4310
if 
  $amb_free_seats > 6
goto_if_false @FIRETRU_4351
if 
  not Char.IsDead(44@)
goto_if_false @FIRETRU_4351
Char.SetLoadCollisionFlag(44@, True)

:FIRETRU_4351
if 
  $amb_free_seats > 7
goto_if_false @FIRETRU_4392
if 
  not Char.IsDead(45@)
goto_if_false @FIRETRU_4392
Char.SetLoadCollisionFlag(45@, True)

:FIRETRU_4392
goto @FIRETRU_4561

:FIRETRU_4399
if 
  105@ == 1
goto_if_false @FIRETRU_4561
Car.SetLoadCollisionFlag(36@, False)
Car.FreezePositionAndDontLoadCollision(36@, True)
105@ = 0
if 
  $amb_free_seats > 5
goto_if_false @FIRETRU_4479
if 
  not Char.IsDead(43@)
goto_if_false @FIRETRU_4479
Char.SetLoadCollisionFlag(43@, False)

:FIRETRU_4479
if 
  $amb_free_seats > 6
goto_if_false @FIRETRU_4520
if 
  not Char.IsDead(44@)
goto_if_false @FIRETRU_4520
Char.SetLoadCollisionFlag(44@, False)

:FIRETRU_4520
if 
  $amb_free_seats > 7
goto_if_false @FIRETRU_4561
if 
  not Char.IsDead(45@)
goto_if_false @FIRETRU_4561
Char.SetLoadCollisionFlag(45@, False)

:FIRETRU_4561
if 
  $amb_free_seats > 8
goto_if_false @FIRETRU_4962
if 
  not Car.IsDead(37@)
goto_if_false @FIRETRU_4962
if 
  Char.LocateAnyMeansCar3D($scplayer, 37@, 50.0, 50.0, 10.0, False)
goto_if_false @FIRETRU_4800
if 
  106@ == 0
goto_if_false @FIRETRU_4793
Car.SetLoadCollisionFlag(37@, True)
Car.FreezePositionAndDontLoadCollision(37@, False)
if 
  $amb_free_seats > 9
goto_if_false @FIRETRU_4704
if 
  not Char.IsDead(46@)
goto_if_false @FIRETRU_4704
Char.SetLoadCollisionFlag(46@, True)

:FIRETRU_4704
if 
  $amb_free_seats > 10
goto_if_false @FIRETRU_4745
if 
  not Char.IsDead(47@)
goto_if_false @FIRETRU_4745
Char.SetLoadCollisionFlag(47@, True)

:FIRETRU_4745
if 
  $amb_free_seats > 11
goto_if_false @FIRETRU_4786
if 
  not Char.IsDead(48@)
goto_if_false @FIRETRU_4786
Char.SetLoadCollisionFlag(48@, True)

:FIRETRU_4786
106@ = 1

:FIRETRU_4793
goto @FIRETRU_4962

:FIRETRU_4800
if 
  106@ == 1
goto_if_false @FIRETRU_4962
Car.SetLoadCollisionFlag(37@, False)
Car.FreezePositionAndDontLoadCollision(37@, True)
106@ = 0
if 
  $amb_free_seats > 9
goto_if_false @FIRETRU_4880
if 
  not Char.IsDead(46@)
goto_if_false @FIRETRU_4880
Char.SetLoadCollisionFlag(46@, False)

:FIRETRU_4880
if 
  $amb_free_seats > 10
goto_if_false @FIRETRU_4921
if 
  not Char.IsDead(47@)
goto_if_false @FIRETRU_4921
Char.SetLoadCollisionFlag(47@, False)

:FIRETRU_4921
if 
  $amb_free_seats > 11
goto_if_false @FIRETRU_4962
if 
  not Char.IsDead(48@)
goto_if_false @FIRETRU_4962
Char.SetLoadCollisionFlag(48@, False)

:FIRETRU_4962
set_lvar_int_to_lvar_int 34@ = 35@
set_lvar_int_to_lvar_int 49@ = 50@
set_lvar_int_to_lvar_int 90@ = 92@
set_lvar_int_to_lvar_int 63@ = 64@
$car_or_ped_flag = 1
gosub @FIRETRU_8683
set_lvar_int_to_lvar_int 50@ = 49@
set_lvar_int_to_lvar_int 92@ = 90@
set_lvar_int_to_lvar_int 64@ = 63@
if 
  $amb_free_seats > 1
goto_if_false @FIRETRU_5113
set_lvar_int_to_lvar_int 39@ = 40@
set_lvar_int_to_lvar_int 91@ = 95@
set_lvar_int_to_lvar_int 53@ = 54@
set_lvar_int_to_lvar_int 67@ = 68@
gosub @FIRETRU_9211
set_lvar_int_to_lvar_int 95@ = 91@
set_lvar_int_to_lvar_int 54@ = 53@
set_lvar_int_to_lvar_int 68@ = 67@

:FIRETRU_5113
if 
  $amb_free_seats > 2
goto_if_false @FIRETRU_5194
set_lvar_int_to_lvar_int 39@ = 41@
set_lvar_int_to_lvar_int 91@ = 96@
set_lvar_int_to_lvar_int 53@ = 55@
set_lvar_int_to_lvar_int 67@ = 69@
gosub @FIRETRU_9211
set_lvar_int_to_lvar_int 96@ = 91@
set_lvar_int_to_lvar_int 55@ = 53@
set_lvar_int_to_lvar_int 69@ = 67@

:FIRETRU_5194
if 
  $amb_free_seats > 3
goto_if_false @FIRETRU_5275
set_lvar_int_to_lvar_int 39@ = 42@
set_lvar_int_to_lvar_int 91@ = 97@
set_lvar_int_to_lvar_int 53@ = 56@
set_lvar_int_to_lvar_int 67@ = 70@
gosub @FIRETRU_9211
set_lvar_int_to_lvar_int 97@ = 91@
set_lvar_int_to_lvar_int 56@ = 53@
set_lvar_int_to_lvar_int 70@ = 67@

:FIRETRU_5275
if 
  $amb_free_seats > 4
goto_if_false @FIRETRU_5363
set_lvar_int_to_lvar_int 34@ = 36@
set_lvar_int_to_lvar_int 49@ = 51@
set_lvar_int_to_lvar_int 90@ = 93@
set_lvar_int_to_lvar_int 63@ = 65@
$car_or_ped_flag = 2
gosub @FIRETRU_8683
set_lvar_int_to_lvar_int 51@ = 49@
set_lvar_int_to_lvar_int 93@ = 90@
set_lvar_int_to_lvar_int 65@ = 63@

:FIRETRU_5363
if 
  $amb_free_seats > 5
goto_if_false @FIRETRU_5444
set_lvar_int_to_lvar_int 39@ = 43@
set_lvar_int_to_lvar_int 91@ = 98@
set_lvar_int_to_lvar_int 53@ = 57@
set_lvar_int_to_lvar_int 67@ = 71@
gosub @FIRETRU_9211
set_lvar_int_to_lvar_int 98@ = 91@
set_lvar_int_to_lvar_int 57@ = 53@
set_lvar_int_to_lvar_int 71@ = 67@

:FIRETRU_5444
if 
  $amb_free_seats > 6
goto_if_false @FIRETRU_5525
set_lvar_int_to_lvar_int 39@ = 44@
set_lvar_int_to_lvar_int 91@ = 99@
set_lvar_int_to_lvar_int 53@ = 58@
set_lvar_int_to_lvar_int 67@ = 72@
gosub @FIRETRU_9211
set_lvar_int_to_lvar_int 99@ = 91@
set_lvar_int_to_lvar_int 58@ = 53@
set_lvar_int_to_lvar_int 72@ = 67@

:FIRETRU_5525
if 
  $amb_free_seats > 7
goto_if_false @FIRETRU_5606
set_lvar_int_to_lvar_int 39@ = 45@
set_lvar_int_to_lvar_int 91@ = 100@
set_lvar_int_to_lvar_int 53@ = 59@
set_lvar_int_to_lvar_int 67@ = 73@
gosub @FIRETRU_9211
set_lvar_int_to_lvar_int 100@ = 91@
set_lvar_int_to_lvar_int 59@ = 53@
set_lvar_int_to_lvar_int 73@ = 67@

:FIRETRU_5606
if 
  $amb_free_seats > 8
goto_if_false @FIRETRU_5694
set_lvar_int_to_lvar_int 34@ = 37@
set_lvar_int_to_lvar_int 49@ = 52@
set_lvar_int_to_lvar_int 90@ = 94@
set_lvar_int_to_lvar_int 63@ = 66@
$car_or_ped_flag = 3
gosub @FIRETRU_8683
set_lvar_int_to_lvar_int 52@ = 49@
set_lvar_int_to_lvar_int 94@ = 90@
set_lvar_int_to_lvar_int 66@ = 63@

:FIRETRU_5694
if 
  $amb_free_seats > 9
goto_if_false @FIRETRU_5775
set_lvar_int_to_lvar_int 39@ = 46@
set_lvar_int_to_lvar_int 91@ = 101@
set_lvar_int_to_lvar_int 53@ = 60@
set_lvar_int_to_lvar_int 67@ = 74@
gosub @FIRETRU_9211
set_lvar_int_to_lvar_int 101@ = 91@
set_lvar_int_to_lvar_int 60@ = 53@
set_lvar_int_to_lvar_int 74@ = 67@

:FIRETRU_5775
if 
  $amb_free_seats > 10
goto_if_false @FIRETRU_5856
set_lvar_int_to_lvar_int 39@ = 47@
set_lvar_int_to_lvar_int 91@ = 102@
set_lvar_int_to_lvar_int 53@ = 61@
set_lvar_int_to_lvar_int 67@ = 75@
gosub @FIRETRU_9211
set_lvar_int_to_lvar_int 102@ = 91@
set_lvar_int_to_lvar_int 61@ = 53@
set_lvar_int_to_lvar_int 75@ = 67@

:FIRETRU_5856
if 
  $amb_free_seats > 11
goto_if_false @FIRETRU_5937
set_lvar_int_to_lvar_int 39@ = 48@
set_lvar_int_to_lvar_int 91@ = 103@
set_lvar_int_to_lvar_int 53@ = 62@
set_lvar_int_to_lvar_int 67@ = 76@
gosub @FIRETRU_9211
set_lvar_int_to_lvar_int 103@ = 91@
set_lvar_int_to_lvar_int 62@ = 53@
set_lvar_int_to_lvar_int 76@ = 67@

:FIRETRU_5937
if 
  is_int_lvar_greater_or_equal_to_int_lvar 89@ >= 88@
goto_if_false @FIRETRU_5963
goto @FIRETRU_9899

:FIRETRU_5963
goto @FIRETRU_3144

:FIRETRU_5970
wait 0
120@ = 0
TIMERA = 0

:FIRETRU_5988
if 
  120@ == 0
goto_if_false @FIRETRU_8078
120@ = 1
163@ = 1
162@ += 1.0
if 
  not Char.IsDead($scplayer)
goto_if_false @FIRETRU_6097
if 
  not Char.IsInModel($scplayer, 407)
goto_if_false @FIRETRU_6090
Text.ClearPrints
Text.PrintNow('F_CANC', 3000, 1)
77@ = 1

:FIRETRU_6090
goto @FIRETRU_6104

:FIRETRU_6097
77@ = 1

:FIRETRU_6104
$controlmode = Pad.GetControllerMode()
if 
  $controlmode <> 3
goto_if_false @FIRETRU_6158
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @FIRETRU_6151
82@ = 1

:FIRETRU_6151
goto @FIRETRU_6182

:FIRETRU_6158
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @FIRETRU_6182
82@ = 1

:FIRETRU_6182
if 
  82@ == 1
goto_if_false @FIRETRU_6309
if 
  $controlmode <> 3
goto_if_false @FIRETRU_6267
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @FIRETRU_6260
Text.ClearPrints
Text.PrintNow('F_CANC', 3000, 1)
77@ = 1

:FIRETRU_6260
goto @FIRETRU_6309

:FIRETRU_6267
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @FIRETRU_6309
Text.ClearPrints
Text.PrintNow('F_CANC', 3000, 1)
77@ = 1

:FIRETRU_6309
if 
  77@ == 1
goto_if_false @FIRETRU_6334
goto @FIRETRU_10463

:FIRETRU_6334
143@, 144@, 145@ = Char.GetCoordinates($scplayer)
cset_lvar_float_to_var_int 156@ =# $amb_free_seats
156@ *= 60.0
add_float_lvar_to_float_lvar 156@ += 162@
if 
  170.0 > 156@
goto_if_false @FIRETRU_6405
156@ = 170.0

:FIRETRU_6405
set_lvar_float_to_lvar_float 149@ = 143@
add_float_lvar_to_float_lvar 149@ += 156@
set_lvar_float_to_lvar_float 151@ = 143@
sub_float_lvar_from_float_lvar 151@ -= 156@
set_lvar_float_to_lvar_float 150@ = 144@
add_float_lvar_to_float_lvar 150@ += 156@
set_lvar_float_to_lvar_float 152@ = 144@
sub_float_lvar_from_float_lvar 152@ -= 156@
153@ = Math.RandomFloatInRange(151@, 149@)
154@ = Math.RandomFloatInRange(152@, 150@)
153@, 154@, 155@, 157@, 158@, 159@, 160@ = Path.GetClosestStraightRoad(153@, 154@, 145@, 10.0, 500.0)
if 
  153@ == 0.0
goto_if_false @FIRETRU_6624
if 
  154@ == 0.0
goto_if_false @FIRETRU_6624
if 
  157@ == 0.0
goto_if_false @FIRETRU_6624
if 
  158@ == 0.0
goto_if_false @FIRETRU_6624
120@ = 0

:FIRETRU_6624
if 
  120@ == 1
goto_if_false @FIRETRU_6793
124@ = Math.GetDistanceBetweenCoords3D(143@, 144@, 145@, 153@, 154@, 155@)
if 
  140.0 > 124@
goto_if_false @FIRETRU_6693
120@ = 0

:FIRETRU_6693
if 
  119@ == 1
goto_if_false @FIRETRU_6779
if 
  35.0 > 162@
goto_if_false @FIRETRU_6772
get_name_of_zone 153@ {y} 154@ {z} 155@ {var_name} s$8217
if 
  not is_var_text_label_equal_to_text_label s$8217 == s$fire_time_limit
goto_if_false @FIRETRU_6772
120@ = 0

:FIRETRU_6772
goto @FIRETRU_6793

:FIRETRU_6779
get_name_of_zone 153@ {y} 154@ {z} 155@ {var_name} s$fire_time_limit

:FIRETRU_6793
if 
  120@ == 1
goto_if_false @FIRETRU_7395
$Return_cities_passed = Stat.GetInt(StatId.CitiesPassed)
if 
  2 > $Return_cities_passed
goto_if_false @FIRETRU_7395
if 
  $Return_cities_passed == 0
goto_if_false @FIRETRU_7153
if and
  78.4427 > 153@
  -699.519 > 154@
goto_if_false @FIRETRU_6893
120@ = 0

:FIRETRU_6893
if 
  120@ == 1
goto_if_false @FIRETRU_7153
if and
  -252.6557 > 153@
  -285.766 > 154@
goto_if_false @FIRETRU_6949
120@ = 0

:FIRETRU_6949
if 
  120@ == 1
goto_if_false @FIRETRU_7153
if 
  -948.3447 > 153@
goto_if_false @FIRETRU_6995
120@ = 0

:FIRETRU_6995
if 
  120@ == 1
goto_if_false @FIRETRU_7153
if and
  153@ > 1473.448
  154@ > 403.7353
goto_if_false @FIRETRU_7051
120@ = 0

:FIRETRU_7051
if 
  120@ == 1
goto_if_false @FIRETRU_7153
if 
  154@ > 578.6325
goto_if_false @FIRETRU_7097
120@ = 0

:FIRETRU_7097
if 
  120@ == 1
goto_if_false @FIRETRU_7153
if and
  837.5551 > 153@
  154@ > 347.4097
goto_if_false @FIRETRU_7153
120@ = 0

:FIRETRU_7153
if 
  120@ == 1
goto_if_false @FIRETRU_7395
if 
  $Return_cities_passed == 1
goto_if_false @FIRETRU_7395
if and
  153@ > 1473.448
  154@ > 403.7353
goto_if_false @FIRETRU_7227
120@ = 0

:FIRETRU_7227
if 
  120@ == 1
goto_if_false @FIRETRU_7395
if and
  154@ > 578.6325
  153@ > -1528.498
goto_if_false @FIRETRU_7283
120@ = 0

:FIRETRU_7283
if 
  120@ == 1
goto_if_false @FIRETRU_7395
if and
  837.5551 > 153@
  153@ > -1528.498
  154@ > 347.4097
goto_if_false @FIRETRU_7349
120@ = 0

:FIRETRU_7349
if 
  120@ == 1
goto_if_false @FIRETRU_7395
if 
  154@ > 1380.0
goto_if_false @FIRETRU_7395
120@ = 0

:FIRETRU_7395
if 
  120@ == 1
goto_if_false @FIRETRU_7595
if 
  2150.0 > 153@
goto_if_false @FIRETRU_7504
if 
  153@ > 1970.0
goto_if_false @FIRETRU_7504
if 
  -2274.0 > 154@
goto_if_false @FIRETRU_7504
if 
  154@ > -2670.0
goto_if_false @FIRETRU_7504
120@ = 0

:FIRETRU_7504
if 
  2150.0 > 153@
goto_if_false @FIRETRU_7595
if 
  153@ > 1590.0
goto_if_false @FIRETRU_7595
if 
  -2397.0 > 154@
goto_if_false @FIRETRU_7595
if 
  154@ > -2670.0
goto_if_false @FIRETRU_7595
120@ = 0

:FIRETRU_7595
if 
  120@ == 1
goto_if_false @FIRETRU_7795
if 
  -1070.0 > 153@
goto_if_false @FIRETRU_7704
if 
  153@ > -1737.0
goto_if_false @FIRETRU_7704
if 
  -185.0 > 154@
goto_if_false @FIRETRU_7704
if 
  154@ > -590.0
goto_if_false @FIRETRU_7704
120@ = 0

:FIRETRU_7704
if 
  -1081.0 > 153@
goto_if_false @FIRETRU_7795
if 
  153@ > -1600.0
goto_if_false @FIRETRU_7795
if 
  415.0 > 154@
goto_if_false @FIRETRU_7795
if 
  154@ > -185.0
goto_if_false @FIRETRU_7795
120@ = 0

:FIRETRU_7795
if 
  120@ == 1
goto_if_false @FIRETRU_7904
if 
  1733.0 > 153@
goto_if_false @FIRETRU_7904
if 
  153@ > 1500.0
goto_if_false @FIRETRU_7904
if 
  1702.0 > 154@
goto_if_false @FIRETRU_7904
if 
  154@ > 1529.0
goto_if_false @FIRETRU_7904
120@ = 0

:FIRETRU_7904
if 
  120@ == 1
goto_if_false @FIRETRU_8067
if 
  $amb_free_seats > 4
goto_if_false @FIRETRU_8067
161@ = Math.GetDistanceBetweenCoords3D(127@, 128@, 129@, 153@, 154@, 155@)
if 
  20.0 > 161@
goto_if_false @FIRETRU_7998
120@ = 0
goto @FIRETRU_8067

:FIRETRU_7998
if 
  $amb_free_seats > 8
goto_if_false @FIRETRU_8067
161@ = Math.GetDistanceBetweenCoords3D(130@, 131@, 132@, 153@, 154@, 155@)
if 
  20.0 > 161@
goto_if_false @FIRETRU_8067
120@ = 0

:FIRETRU_8067
wait 0
goto @FIRETRU_5988

:FIRETRU_8078
if 
  $amb_free_seats > 4
goto_if_false @FIRETRU_8210
161@ = Math.GetDistanceBetweenCoords3D(127@, 128@, 129@, 153@, 154@, 155@)
if 
  $amb_free_seats > 8
goto_if_false @FIRETRU_8185
161@ = Math.GetDistanceBetweenCoords3D(130@, 131@, 132@, 153@, 154@, 155@)
161@ /= 4.0
add_float_lvar_to_float_lvar 124@ += 161@
goto @FIRETRU_8203

:FIRETRU_8185
add_float_lvar_to_float_lvar 124@ += 161@
161@ /= 8.0

:FIRETRU_8203
goto @FIRETRU_8210

:FIRETRU_8210
if 
  9 > $amb_free_seats
goto_if_false @FIRETRU_8253
set_lvar_float_to_lvar_float 122@ = 124@
122@ /= 8.0
goto @FIRETRU_8271

:FIRETRU_8253
set_lvar_float_to_lvar_float 122@ = 124@
122@ /= 10.0

:FIRETRU_8271
122@ *= 1000.0
cset_lvar_int_to_lvar_float 78@ =# 122@
add_int_lvar_to_int_var $db_fires_extinguished += 78@
if 
  60000 > $db_fires_extinguished
goto_if_false @FIRETRU_8328
$db_fires_extinguished = 60000

:FIRETRU_8328
163@ = 0
162@ = 0.0
return 

:FIRETRU_8347
if 
  80@ == 1
goto_if_false @FIRETRU_8410
if 
  1 > $db_fires_extinguished
goto_if_false @FIRETRU_8410
Text.ClearPrints
Text.PrintNow('F_FAIL2', 5000, 1)
77@ = 1
return 

:FIRETRU_8410
if 
  not Char.IsDead($scplayer)
goto_if_false @FIRETRU_8472
if 
  not Char.IsInModel($scplayer, 407)
goto_if_false @FIRETRU_8472
Text.ClearPrints
Text.PrintNow('F_CANC', 3000, 1)
77@ = 1
return 

:FIRETRU_8472
$controlmode = Pad.GetControllerMode()
if 
  $controlmode <> 3
goto_if_false @FIRETRU_8526
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @FIRETRU_8519
82@ = 1

:FIRETRU_8519
goto @FIRETRU_8550

:FIRETRU_8526
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @FIRETRU_8550
82@ = 1

:FIRETRU_8550
if 
  82@ == 1
goto_if_false @FIRETRU_8681
if 
  $controlmode <> 3
goto_if_false @FIRETRU_8637
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @FIRETRU_8630
Text.ClearPrints
Text.PrintNow('F_CANC', 3000, 1)
77@ = 1
return 

:FIRETRU_8630
goto @FIRETRU_8681

:FIRETRU_8637
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @FIRETRU_8681
Text.ClearPrints
Text.PrintNow('F_CANC', 3000, 1)
77@ = 1
return 

:FIRETRU_8681
return 

:FIRETRU_8683
if 
  90@ <> 10
goto_if_false @FIRETRU_9209
if 
  not Car.IsDead(34@)
goto_if_false @FIRETRU_9033
$8219 = 1
if 
  ScriptFire.DoesExist(49@)
goto_if_false @FIRETRU_8902
if 
  not ScriptFire.IsExtinguished(49@)
goto_if_false @FIRETRU_8771
86@ = Car.GetHealth(34@)
goto @FIRETRU_8895

:FIRETRU_8771
if 
  90@ <> 10
goto_if_false @FIRETRU_8895
Blip.Remove(63@)
Car.TaskEveryoneLeave(34@)
ScriptFire.Remove(49@)
Stat.IncrementInt(StatId.FiresExtinguished, 1)
if 
  81@ == 0
goto_if_false @FIRETRU_8854
Hud.DisplayNthCounterWithString($db_firetruck_level, CounterDisplay.Number, 2, 'F_EXTIN')
81@ = 1

:FIRETRU_8854
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
90@ = 10
$db_firetruck_level += 1
89@ += 1

:FIRETRU_8895
goto @FIRETRU_9026

:FIRETRU_8902
if 
  90@ <> 10
goto_if_false @FIRETRU_9026
Blip.Remove(63@)
Car.TaskEveryoneLeave(34@)
ScriptFire.Remove(49@)
Stat.IncrementInt(StatId.FiresExtinguished, 1)
if 
  81@ == 0
goto_if_false @FIRETRU_8985
Hud.DisplayNthCounterWithString($db_firetruck_level, CounterDisplay.Number, 2, 'F_EXTIN')
81@ = 1

:FIRETRU_8985
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
90@ = 10
$db_firetruck_level += 1
89@ += 1

:FIRETRU_9026
goto @FIRETRU_9202

:FIRETRU_9033
if 
  Car.IsInWater(34@)
goto_if_false @FIRETRU_9175
if 
  90@ <> 10
goto_if_false @FIRETRU_9168
Blip.Remove(63@)
Car.TaskEveryoneLeave(34@)
Stat.IncrementInt(StatId.FiresExtinguished, 1)
if 
  81@ == 0
goto_if_false @FIRETRU_9127
Hud.DisplayNthCounterWithString($db_firetruck_level, CounterDisplay.Number, 2, 'F_EXTIN')
81@ = 1

:FIRETRU_9127
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
90@ = 10
$db_firetruck_level += 1
89@ += 1

:FIRETRU_9168
goto @FIRETRU_9202

:FIRETRU_9175
Text.ClearPrints
Text.PrintNow('F_FAIL4', 5000, 1)
77@ = 1
return 

:FIRETRU_9202
goto @FIRETRU_9209

:FIRETRU_9209
return 

:FIRETRU_9211
if 
  2 > 91@
goto_if_false @FIRETRU_9897
if 
  not Char.IsDead(39@)
goto_if_false @FIRETRU_9694
if 
  91@ == 0
goto_if_false @FIRETRU_9426
if 
  not Char.IsInAnyCar(39@)
goto_if_false @FIRETRU_9358
53@ = ScriptFire.CreateCharFire(39@)
138@, 139@, 140@ = Char.GetCoordinates(39@)
Task.FleePoint(39@, 138@, 139@, 140@, 20.0, -1)
67@ = Blip.AddForChar(39@)
Blip.SetAsFriendly(67@, True)
Blip.ChangeDisplay(67@, BlipDisplay.BlipOnly)
91@ = 1
goto @FIRETRU_9426

:FIRETRU_9358
if 
  90@ == 10
goto_if_false @FIRETRU_9426
if 
  Char.IsInAnyCar(39@)
goto_if_false @FIRETRU_9426
164@ = Char.GetScriptTaskStatus(39@, 1587)
if 
  is_int_lvar_equal_to_constant 164@ == 7
goto_if_false @FIRETRU_9426
Task.LeaveAnyCar(39@)

:FIRETRU_9426
if 
  91@ == 1
goto_if_false @FIRETRU_9687
$8219 = 2
if 
  ScriptFire.DoesExist(53@)
goto_if_false @FIRETRU_9591
if 
  ScriptFire.IsExtinguished(53@)
goto_if_false @FIRETRU_9584
ScriptFire.Remove(53@)
Blip.Remove(67@)
Stat.IncrementInt(StatId.FiresExtinguished, 1)
if 
  81@ == 0
goto_if_false @FIRETRU_9543
Hud.DisplayNthCounterWithString($db_firetruck_level, CounterDisplay.Number, 2, 'F_EXTIN')
81@ = 1

:FIRETRU_9543
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
$db_firetruck_level += 1
89@ += 1
91@ = 2

:FIRETRU_9584
goto @FIRETRU_9687

:FIRETRU_9591
Blip.Remove(67@)
Stat.IncrementInt(StatId.FiresExtinguished, 1)
if 
  81@ == 0
goto_if_false @FIRETRU_9646
Hud.DisplayNthCounterWithString($db_firetruck_level, CounterDisplay.Number, 2, 'F_EXTIN')
81@ = 1

:FIRETRU_9646
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
$db_firetruck_level += 1
89@ += 1
91@ = 2

:FIRETRU_9687
goto @FIRETRU_9897

:FIRETRU_9694
if 
  Char.IsInWater(39@)
goto_if_false @FIRETRU_9870
if 
  91@ == 1
goto_if_false @FIRETRU_9836
ScriptFire.Remove(53@)
Blip.Remove(67@)
Stat.IncrementInt(StatId.FiresExtinguished, 1)
if 
  81@ == 0
goto_if_false @FIRETRU_9788
Hud.DisplayNthCounterWithString($db_firetruck_level, CounterDisplay.Number, 2, 'F_EXTIN')
81@ = 1

:FIRETRU_9788
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
$db_firetruck_level += 1
89@ += 1
91@ = 2
goto @FIRETRU_9863

:FIRETRU_9836
Text.ClearPrints
Text.PrintNow('F_FAIL2', 5000, 1)
77@ = 1
return 

:FIRETRU_9863
goto @FIRETRU_9897

:FIRETRU_9870
Text.ClearPrints
Text.PrintNow('F_FAIL3', 5000, 1)
77@ = 1
return 

:FIRETRU_9897
return 

:FIRETRU_9899
Hud.FreezeTimer(True)
World.RemoveAllScriptFires
Blip.Remove(63@)
Blip.Remove(64@)
Blip.Remove(65@)
Blip.Remove(66@)
Blip.Remove(67@)
Blip.Remove(68@)
Blip.Remove(69@)
Blip.Remove(70@)
Blip.Remove(71@)
Blip.Remove(72@)
Blip.Remove(73@)
Blip.Remove(74@)
Blip.Remove(75@)
Blip.Remove(76@)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @FIRETRU_10023
38@ = Char.StoreCarIsInNoSave($scplayer)
84@ = Car.GetHealth(38@)
84@ += 150
Car.SetHealth(38@, 84@)

:FIRETRU_10023
Car.MarkAsNoLongerNeeded(35@)
if 
  not Car.IsDead(35@)
goto_if_false @FIRETRU_10051
Car.SetOnlyDamagedByPlayer(35@, False)

:FIRETRU_10051
Car.MarkAsNoLongerNeeded(36@)
if 
  not Car.IsDead(36@)
goto_if_false @FIRETRU_10079
Car.SetOnlyDamagedByPlayer(36@, False)

:FIRETRU_10079
Car.MarkAsNoLongerNeeded(37@)
if 
  not Car.IsDead(37@)
goto_if_false @FIRETRU_10107
Car.SetOnlyDamagedByPlayer(37@, False)

:FIRETRU_10107
Char.MarkAsNoLongerNeeded(40@)
Char.MarkAsNoLongerNeeded(41@)
Char.MarkAsNoLongerNeeded(42@)
Char.MarkAsNoLongerNeeded(43@)
Char.MarkAsNoLongerNeeded(44@)
Char.MarkAsNoLongerNeeded(45@)
Char.MarkAsNoLongerNeeded(46@)
Char.MarkAsNoLongerNeeded(47@)
Char.MarkAsNoLongerNeeded(48@)
Streaming.MarkModelAsNoLongerNeeded(126@)
Stat.RegisterInt(StatId.FirefighterLevel, $amb_free_seats)
$amb_free_seats += 1
if 
  $amb_free_seats == 13
goto_if_false @FIRETRU_10382
Hud.ClearTimer($db_fires_extinguished)
Hud.ClearCounter($db_firetruck_level)
Hud.ClearCounter($amb_free_seats)
Text.ClearThisPrint('F_START')
Text.ClearThisPrint('F_STAR1')
Text.ClearThisPrint('FIRELVL')
Text.PrintBig('F_PASS1', 5000, TextStyle.WhiteMiddleSmaller)
set_lvar_int_to_var_int 79@ = $amb_free_seats
mult_int_lvar_by_int_var 79@ *= $amb_free_seats
79@ *= 50
add_int_lvar_to_int_lvar 83@ += 79@
79@ += 5000
Text.PrintWithNumberBig('F_COMP1', 13450, 5000, TextStyle.MiddleSmallerHigher)
Player.AddScore($player1, 79@)
Audio.PlayMissionPassedTune(2)
if 
  $done_firetruck_progress == 0
goto_if_false @FIRETRU_10366
Stat.ShowUpdateStats(False)
//Player.MakeFireProof($player1, True)
Stat.PlayerMadeProgress(1)
Stat.RegisterOddjobMissionPassed
$done_firetruck_progress = 1

:FIRETRU_10366
77@ = 1
return 
goto @FIRETRU_10456

:FIRETRU_10382
Text.PrintBig('F_PASS1', 5000, TextStyle.WhiteMiddleSmaller)
set_lvar_int_to_var_int 79@ = $amb_free_seats
mult_int_lvar_by_int_var 79@ *= $amb_free_seats
79@ *= 50
add_int_lvar_to_int_lvar 83@ += 79@
Text.PrintWithNumberBig('REWARD', 79@, 6000, TextStyle.LightBlueTop)
Player.AddScore($player1, 79@)

:FIRETRU_10456
goto @FIRETRU_789

:FIRETRU_10463
Hud.ClearTimer($db_fires_extinguished)
Hud.ClearCounter($db_firetruck_level)
Hud.ClearCounter($amb_free_seats)
Text.ClearThisPrint('F_START')
Text.ClearThisPrint('F_STAR1')
Text.ClearThisPrint('FIRELVL')
if 
  $amb_free_seats <> 13
goto_if_false @FIRETRU_10571
Text.PrintBig('F_FAIL1', 5000, TextStyle.MiddleSmallerHigher)
Text.PrintWithNumberBig('TSCORE', 83@, 6000, TextStyle.WhiteMiddleSmaller)
goto @FIRETRU_10571

:FIRETRU_10571
Game.SetWantedMultiplier(1.0)
Blip.Remove(63@)
Blip.Remove(64@)
Blip.Remove(65@)
Blip.Remove(66@)
Blip.Remove(67@)
Blip.Remove(68@)
Blip.Remove(69@)
Blip.Remove(70@)
Blip.Remove(71@)
Blip.Remove(72@)
Blip.Remove(73@)
Blip.Remove(74@)
Blip.Remove(75@)
Blip.Remove(76@)
if 
  $amb_free_seats <> 13
goto_if_false @FIRETRU_11248
if 
  not Char.IsDead(40@)
goto_if_false @FIRETRU_10711
Char.SetOnlyDamagedByPlayer(40@, False)
Char.SetHealth(40@, 10)
Char.SetProofs(40@, False, False, False, False, False)

:FIRETRU_10711
if 
  not Char.IsDead(41@)
goto_if_false @FIRETRU_10756
Char.SetOnlyDamagedByPlayer(41@, False)
Char.SetHealth(41@, 10)
Char.SetProofs(41@, False, False, False, False, False)

:FIRETRU_10756
if 
  not Char.IsDead(42@)
goto_if_false @FIRETRU_10801
Char.SetOnlyDamagedByPlayer(42@, False)
Char.SetHealth(42@, 10)
Char.SetProofs(42@, False, False, False, False, False)

:FIRETRU_10801
if 
  not Char.IsDead(43@)
goto_if_false @FIRETRU_10846
Char.SetOnlyDamagedByPlayer(43@, False)
Char.SetHealth(43@, 10)
Char.SetProofs(43@, False, False, False, False, False)

:FIRETRU_10846
if 
  not Char.IsDead(44@)
goto_if_false @FIRETRU_10891
Char.SetOnlyDamagedByPlayer(44@, False)
Char.SetHealth(44@, 10)
Char.SetProofs(44@, False, False, False, False, False)

:FIRETRU_10891
if 
  not Char.IsDead(45@)
goto_if_false @FIRETRU_10936
Char.SetOnlyDamagedByPlayer(45@, False)
Char.SetHealth(45@, 10)
Char.SetProofs(45@, False, False, False, False, False)

:FIRETRU_10936
if 
  not Char.IsDead(46@)
goto_if_false @FIRETRU_10981
Char.SetOnlyDamagedByPlayer(46@, False)
Char.SetHealth(46@, 10)
Char.SetProofs(46@, False, False, False, False, False)

:FIRETRU_10981
if 
  not Char.IsDead(47@)
goto_if_false @FIRETRU_11026
Char.SetOnlyDamagedByPlayer(47@, False)
Char.SetHealth(47@, 10)
Char.SetProofs(47@, False, False, False, False, False)

:FIRETRU_11026
if 
  not Char.IsDead(48@)
goto_if_false @FIRETRU_11071
Char.SetOnlyDamagedByPlayer(48@, False)
Char.SetHealth(48@, 10)
Char.SetProofs(48@, False, False, False, False, False)

:FIRETRU_11071
if 
  not Car.IsDead(35@)
goto_if_false @FIRETRU_11130
Car.SetOnlyDamagedByPlayer(35@, False)
Car.SetProofs(35@, False, False, False, False, False)
if 
  Car.IsOnFire(35@)
goto_if_false @FIRETRU_11130
Car.Explode(35@)

:FIRETRU_11130
if 
  not Car.IsDead(36@)
goto_if_false @FIRETRU_11189
Car.SetOnlyDamagedByPlayer(36@, False)
Car.SetProofs(36@, False, False, False, False, False)
if 
  Car.IsOnFire(36@)
goto_if_false @FIRETRU_11189
Car.Explode(36@)

:FIRETRU_11189
if 
  not Car.IsDead(37@)
goto_if_false @FIRETRU_11248
Car.SetOnlyDamagedByPlayer(37@, False)
Car.SetProofs(37@, False, False, False, False, False)
if 
  Car.IsOnFire(37@)
goto_if_false @FIRETRU_11248
Car.Explode(37@)

:FIRETRU_11248
Char.MarkAsNoLongerNeeded(40@)
Char.MarkAsNoLongerNeeded(41@)
Char.MarkAsNoLongerNeeded(42@)
Char.MarkAsNoLongerNeeded(43@)
Char.MarkAsNoLongerNeeded(44@)
Char.MarkAsNoLongerNeeded(45@)
Char.MarkAsNoLongerNeeded(46@)
Char.MarkAsNoLongerNeeded(47@)
Char.MarkAsNoLongerNeeded(48@)
Car.MarkAsNoLongerNeeded(35@)
Car.MarkAsNoLongerNeeded(36@)
Car.MarkAsNoLongerNeeded(37@)
Streaming.MarkModelAsNoLongerNeeded(126@)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
$flag_player_on_fire_mission = 0
World.ClearAllScriptFireFlags
DecisionMaker.Remove(165@)
Mission.Finish
if 
  $done_firetruck_progress == 1
goto_if_false @FIRETRU_11391
Text.ClearHelp
Text.PrintHelp('FIREPRO')
$done_firetruck_progress = 2
Stat.ShowUpdateStats(False)
start_new_script @BACKON 

:FIRETRU_11391
return 

//-------------Mission 124---------------
// Originally: Vigilante Sub-Mission

:COPCAR
gosub @COPCAR_52
if 
  has_deatharrest_been_executed 
goto_if_false @COPCAR_43
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
gosub @COPCAR_14808

:COPCAR_43
gosub @COPCAR_14810
terminate_this_script 

:COPCAR_52
$onmission = 1
script_name 'COPCAR'
wait 0
if 
  $done_copcar_progress == 0
goto_if_false @COPCAR_94
Stat.RegisterMissionGiven

:COPCAR_94
Text.LoadMissionText('COPCAR')
51@ = 0
$car_numer_flag = -100
58@ = 0
$cop_time_limit = 0
65@ = 0
62@ = 0
52@ = 0
53@ = 0
64@ = 0
54@ = 0
55@ = 0
56@ = 0
57@ = 0
59@ = 0
60@ = 0
61@ = 0
63@ = 0
90@ = 0
142@ = 4.0
144@ = 0.0
143@ = 0.9
91@ = 0
$heading = 0.0
124@ = 0.0
145@ = 0.0
146@ = 0.0
147@ = 0.0
148@ = 0.0
164@ = 0.0
165@ = 0.0
166@ = 0.0
167@ = 0.0
170@ = 0.0
171@ = 0.0
172@ = 0.0
173@ = 0.0
set_lvar_int_to_constant 176@ = 521
set_lvar_int_to_constant 177@ = 522
set_lvar_int_to_constant 178@ = 461
set_lvar_int_to_constant 179@ = 462
set_lvar_int_to_constant 180@ = 463
set_lvar_int_to_constant 181@ = 468
set_lvar_int_to_constant 182@ = 581
set_lvar_int_to_constant 183@ = 586
set_lvar_int_to_constant 184@ = 411
set_lvar_int_to_constant 185@ = 415
set_lvar_int_to_constant 186@ = 429
set_lvar_int_to_constant 187@ = 451
set_lvar_int_to_constant 188@ = 477
set_lvar_int_to_constant 189@ = 480
set_lvar_int_to_constant 190@ = 506
set_lvar_int_to_constant 191@ = 541
set_lvar_int_to_constant 192@ = 603
set_lvar_int_to_constant 193@ = 400
set_lvar_int_to_constant 194@ = 401
set_lvar_int_to_constant 195@ = 402
set_lvar_int_to_constant 196@ = 410
set_lvar_int_to_constant 197@ = 412
set_lvar_int_to_constant 198@ = 413
set_lvar_int_to_constant 199@ = 419
set_lvar_int_to_constant 200@ = 422
set_lvar_int_to_constant 201@ = 424
set_lvar_int_to_constant 202@ = 434
set_lvar_int_to_constant 203@ = 436
set_lvar_int_to_constant 204@ = 439
set_lvar_int_to_constant 205@ = 440
set_lvar_int_to_constant 206@ = 474
set_lvar_int_to_constant 207@ = 475
set_lvar_int_to_constant 208@ = 478
set_lvar_int_to_constant 209@ = 482
set_lvar_int_to_constant 210@ = 483
set_lvar_int_to_constant 211@ = 489
set_lvar_int_to_constant 212@ = 491
set_lvar_int_to_constant 213@ = 496
set_lvar_int_to_constant 214@ = 500
set_lvar_int_to_constant 215@ = 517
set_lvar_int_to_constant 216@ = 518
set_lvar_int_to_constant 217@ = 526
set_lvar_int_to_constant 218@ = 527
set_lvar_int_to_constant 219@ = 533
set_lvar_int_to_constant 220@ = 534
set_lvar_int_to_constant 221@ = 535
set_lvar_int_to_constant 222@ = 536
set_lvar_int_to_constant 223@ = 542
set_lvar_int_to_constant 224@ = 543
set_lvar_int_to_constant 225@ = 545
set_lvar_int_to_constant 226@ = 549
set_lvar_int_to_constant 227@ = 554
set_lvar_int_to_constant 228@ = 555
set_lvar_int_to_constant 229@ = 558
set_lvar_int_to_constant 230@ = 559
set_lvar_int_to_constant 231@ = 562
set_lvar_int_to_constant 232@ = 565
set_lvar_int_to_constant 233@ = 567
set_lvar_int_to_constant 234@ = 575
set_lvar_int_to_constant 235@ = 576
set_lvar_int_to_constant 236@ = 579
set_lvar_int_to_constant 237@ = 587
set_lvar_int_to_constant 238@ = 589
set_lvar_int_to_constant 239@ = 600
set_lvar_int_to_constant 240@ = 602
set_lvar_int_to_constant 241@ = 605
set_lvar_int_to_constant 242@ = 442
set_lvar_int_to_constant 243@ = 404
set_lvar_int_to_constant 244@ = 405
set_lvar_int_to_constant 245@ = 418
set_lvar_int_to_constant 246@ = 421
set_lvar_int_to_constant 247@ = 426
set_lvar_int_to_constant 248@ = 445
set_lvar_int_to_constant 249@ = 458
set_lvar_int_to_constant 250@ = 466
set_lvar_int_to_constant 251@ = 467
set_lvar_int_to_constant 252@ = 479
set_lvar_int_to_constant 253@ = 492
set_lvar_int_to_constant 254@ = 507
set_lvar_int_to_constant 255@ = 516
set_lvar_int_to_constant 256@ = 529
set_lvar_int_to_constant 257@ = 540
set_lvar_int_to_constant 258@ = 546
set_lvar_int_to_constant 259@ = 547
set_lvar_int_to_constant 260@ = 550
set_lvar_int_to_constant 261@ = 551
set_lvar_int_to_constant 262@ = 560
set_lvar_int_to_constant 263@ = 561
set_lvar_int_to_constant 264@ = 580
set_lvar_int_to_constant 265@ = 585
set_lvar_int_to_constant 266@ = 604
Streaming.RequestModel(346)
Streaming.RequestModel(352)
Streaming.RequestModel(355)
Streaming.RequestModel(349)
Streaming.RequestModel(336)
Streaming.LoadAllModelsNow

:COPCAR_1163
if or
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(355)
  not Streaming.HasModelLoaded(349)
goto_if_false @COPCAR_1205
wait 0
goto @COPCAR_1163

:COPCAR_1205
if 
  not Streaming.HasModelLoaded(336)
goto_if_false @COPCAR_1232
wait 0
goto @COPCAR_1205

:COPCAR_1232
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @COPCAR_1263
34@ = Char.StoreCarIsInNoSave($scplayer)
Car.SetCanBurstTires(34@, False)

:COPCAR_1263
267@ = DecisionMakerChar.Copy(-1)
DecisionMakerChar.ClearEventResponse(267@, 41)
268@ = DecisionMakerGroup.Copy(-1)
DecisionMakerGroup.ClearEventResponse(268@, 41)

:COPCAR_1291
73@ = 0
82@ = 0
89@ = 0
52@ = 0
269@ = 0
66@ = 0
67@ = 0
68@ = 0
69@ = 0
70@ = 0
71@ = 0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
79@ = 0
80@ = 0
83@ = 0
174@ = 0
175@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
128@ = 0.0
129@ = 0.0
130@ = 0.0
131@ = 0.0
270@ = 0
gosub @COPCAR_14951
271@ = Math.RandomIntInRange(9, 255)

:COPCAR_1530
if or
  is_int_lvar_equal_to_constant 271@ == 105
  is_int_lvar_equal_to_constant 271@ == 106
  is_int_lvar_equal_to_constant 271@ == 107
goto_if_false @COPCAR_1579
271@ = Math.RandomIntInRange(9, 255)
goto @COPCAR_1530

:COPCAR_1579
if 
  not Streaming.IsModelInCdimage(271@)
goto_if_false @COPCAR_1661
271@ = Math.RandomIntInRange(9, 255)

:COPCAR_1605
if or
  is_int_lvar_equal_to_constant 271@ == 105
  is_int_lvar_equal_to_constant 271@ == 106
  is_int_lvar_equal_to_constant 271@ == 107
goto_if_false @COPCAR_1654
271@ = Math.RandomIntInRange(9, 255)
goto @COPCAR_1605

:COPCAR_1654
goto @COPCAR_1579

:COPCAR_1661
Streaming.RequestModel(271@)

:COPCAR_1666
gosub @COPCAR_18593
if 
  58@ == 1
goto_if_false @COPCAR_1698
goto @COPCAR_14808

:COPCAR_1698
$player_x, $player_y, $z = Char.GetCoordinates($scplayer)
set_var_float_to_var_float $x = $player_x
$x -= 800.0
set_lvar_float_to_var_float 272@ = $player_x
272@ += 800.0
104@ = Math.RandomFloatInRange($x, 272@)
set_var_float_to_var_float $y = $player_y
$y -= 800.0
set_lvar_float_to_var_float 273@ = $player_y
273@ += 800.0
105@ = Math.RandomFloatInRange($y, 273@)
106@ = 10.0
if 
  4 > 51@
goto_if_false @COPCAR_1867
104@, 105@, 106@, 113@ = Path.GetClosestCarNodeWithHeading(104@, 105@, 106@)
106@ += 0.5

:COPCAR_1867
if and
  51@ > 3
  8 > 51@
goto_if_false @COPCAR_2252
104@, 105@, 106@, 107@, 108@, 109@, 113@ = Path.GetClosestStraightRoad(104@, 105@, 106@, 8.0, 500.0)
if and
  104@ == 0.0
  105@ == 0.0
  107@ == 0.0
  108@ == 0.0
goto_if_false @COPCAR_1996
wait 0
goto @COPCAR_1666

:COPCAR_1996
set_lvar_float_to_lvar_float 125@ = 107@
sub_float_lvar_from_float_lvar 125@ -= 104@
set_lvar_float_to_lvar_float 126@ = 108@
sub_float_lvar_from_float_lvar 126@ -= 105@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 125@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 126@
set_lvar_float_to_lvar_float 127@ = 140@
add_float_lvar_to_float_lvar 127@ += 141@
127@ = Math.Sqrt(127@)
149@ = 8.0
div_float_lvar_by_float_lvar 149@ /= 127@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 149@
set_lvar_float_to_lvar_float 107@ = 104@
add_float_lvar_to_float_lvar 107@ += 140@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 149@
set_lvar_float_to_lvar_float 108@ = 105@
add_float_lvar_to_float_lvar 108@ += 141@
149@ = 2.0
div_float_lvar_by_float_lvar 149@ /= 127@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 149@
add_float_lvar_to_float_lvar 104@ += 140@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 149@
add_float_lvar_to_float_lvar 105@ += 141@
106@ += 0.5
109@ += 0.5

:COPCAR_2252
if 
  51@ > 7
goto_if_false @COPCAR_2742
104@, 105@, 106@, 110@, 111@, 112@, 113@ = Path.GetClosestStraightRoad(104@, 105@, 106@, 13.0, 500.0)
if and
  104@ == 0.0
  105@ == 0.0
  110@ == 0.0
  111@ == 0.0
goto_if_false @COPCAR_2374
wait 0
goto @COPCAR_1666

:COPCAR_2374
set_lvar_float_to_lvar_float 125@ = 110@
sub_float_lvar_from_float_lvar 125@ -= 104@
set_lvar_float_to_lvar_float 126@ = 111@
sub_float_lvar_from_float_lvar 126@ -= 105@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 125@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 126@
set_lvar_float_to_lvar_float 127@ = 140@
add_float_lvar_to_float_lvar 127@ += 141@
127@ = Math.Sqrt(127@)
149@ = 13.0
div_float_lvar_by_float_lvar 149@ /= 127@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 149@
set_lvar_float_to_lvar_float 110@ = 104@
add_float_lvar_to_float_lvar 110@ += 140@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 149@
set_lvar_float_to_lvar_float 111@ = 105@
add_float_lvar_to_float_lvar 111@ += 141@
149@ = 2.0
div_float_lvar_by_float_lvar 149@ /= 127@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 149@
add_float_lvar_to_float_lvar 104@ += 140@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 149@
add_float_lvar_to_float_lvar 105@ += 141@
set_lvar_float_to_lvar_float 107@ = 104@
sub_float_lvar_from_float_lvar 107@ -= 110@
107@ /= 2.0
add_float_lvar_to_float_lvar 107@ += 110@
set_lvar_float_to_lvar_float 108@ = 105@
sub_float_lvar_from_float_lvar 108@ -= 111@
108@ /= 2.0
add_float_lvar_to_float_lvar 108@ += 111@
set_lvar_float_to_lvar_float 109@ = 106@
sub_float_lvar_from_float_lvar 109@ -= 112@
109@ /= 2.0
add_float_lvar_to_float_lvar 109@ += 112@
106@ += 0.5
109@ += 0.5
112@ += 0.5

:COPCAR_2742
if 
  1.0 > 106@
goto_if_false @COPCAR_2774
wait 0
goto @COPCAR_1666

:COPCAR_2774
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
115@ = Math.GetDistanceBetweenCoords2D($player_x, $player_y, 104@, 105@)
if or
  150.0 > 115@
  115@ > 800.0
goto_if_false @COPCAR_2847
wait 0
goto @COPCAR_1666

:COPCAR_2847
$Return_cities_passed = Stat.GetInt(StatId.CitiesPassed)
if 
  $Return_cities_passed == 0
goto_if_false @COPCAR_3105
if and
  78.4427 > 104@
  -699.519 > 105@
goto_if_false @COPCAR_2915
wait 0
goto @COPCAR_1666

:COPCAR_2915
if and
  -252.6557 > 104@
  -285.766 > 105@
goto_if_false @COPCAR_2957
wait 0
goto @COPCAR_1666

:COPCAR_2957
if 
  -948.3447 > 104@
goto_if_false @COPCAR_2989
wait 0
goto @COPCAR_1666

:COPCAR_2989
if and
  104@ > 1473.448
  105@ > 403.7353
goto_if_false @COPCAR_3031
wait 0
goto @COPCAR_1666

:COPCAR_3031
if 
  105@ > 578.6325
goto_if_false @COPCAR_3063
wait 0
goto @COPCAR_1666

:COPCAR_3063
if and
  837.5551 > 104@
  105@ > 347.4097
goto_if_false @COPCAR_3105
wait 0
goto @COPCAR_1666

:COPCAR_3105
if 
  2 > $Return_cities_passed
goto_if_false @COPCAR_3353
if and
  104@ > 1473.448
  105@ > 403.7353
goto_if_false @COPCAR_3165
wait 0
goto @COPCAR_1666

:COPCAR_3165
if and
  105@ > 578.6325
  104@ > -1528.498
goto_if_false @COPCAR_3207
wait 0
goto @COPCAR_1666

:COPCAR_3207
if and
  837.5551 > 104@
  104@ > -1528.498
  105@ > 347.4097
goto_if_false @COPCAR_3259
wait 0
goto @COPCAR_1666

:COPCAR_3259
if 
  105@ > 1380.0
goto_if_false @COPCAR_3291
wait 0
goto @COPCAR_1666

:COPCAR_3291
if and
  104@ > -2702.72
  105@ > 1225.669
  -2663.146 > 104@
  1654.808 > 105@
goto_if_false @COPCAR_3353
wait 0
goto @COPCAR_1666

:COPCAR_3353
if and
  104@ > -1735.751
  105@ > -696.0117
  -1192.817 > 104@
  286.3584 > 105@
goto_if_false @COPCAR_3415
wait 0
goto @COPCAR_1666

:COPCAR_3415
if and
  104@ > -1192.817
  105@ > -521.9908
  -1125.656 > 104@
  536.9476 > 105@
goto_if_false @COPCAR_3477
wait 0
goto @COPCAR_1666

:COPCAR_3477
if and
  104@ > -1125.656
  105@ > -329.59
  -1020.189 > 104@
  536.9476 > 105@
goto_if_false @COPCAR_3539
wait 0
goto @COPCAR_1666

:COPCAR_3539
$total_criminals_killed = Math.Random()

:COPCAR_3544
if 
  $total_criminals_killed == 0
goto_if_false @COPCAR_3574
$total_criminals_killed = Math.Random()
goto @COPCAR_3544

:COPCAR_3574
if or
  not Streaming.HasModelLoaded(90@)
  not Streaming.HasModelLoaded(271@)
goto_if_false @COPCAR_3638
wait 0
gosub @COPCAR_18593
if 
  58@ == 1
goto_if_false @COPCAR_3631
goto @COPCAR_14808

:COPCAR_3631
goto @COPCAR_3574

:COPCAR_3638
35@ = Car.Create(90@, 104@, 105@, 106@)
Car.SetHealth(35@, 800)
Car.SetDrivingStyle(35@, DrivingMode.AvoidCars)
if 
  51@ > 3
goto_if_false @COPCAR_3696
Car.SetRandomRouteSeed(35@, $total_criminals_killed)

:COPCAR_3696
Car.MarkAsConvoyCar(35@, True)
Car.SetHeading(35@, 113@)
Car.SetAvoidLevelTransitions(35@, True)

:COPCAR_3718
if 
  Car.IsWaitingForWorldCollision(35@)
goto_if_false @COPCAR_3800
wait 0
if 
  Car.IsDead(35@)
goto_if_false @COPCAR_3761
goto @COPCAR_14808

:COPCAR_3761
gosub @COPCAR_18593
if 
  58@ == 1
goto_if_false @COPCAR_3793
goto @COPCAR_14808

:COPCAR_3793
goto @COPCAR_3718

:COPCAR_3800
36@ = Char.CreateInsideCar(35@, PedType.Mission1, 271@)
if 
  $onmission == 0
goto_if_false @COPCAR_4020
92@ = Blip.AddForCoord($x, $y, $z)
93@ = Blip.AddForCoord($x, $y, $z)
94@ = Blip.AddForCoord($x, $y, $z)
95@ = Blip.AddForCoord($x, $y, $z)
96@ = Blip.AddForCoord($x, $y, $z)
97@ = Blip.AddForCoord($x, $y, $z)
98@ = Blip.AddForCoord($x, $y, $z)
99@ = Blip.AddForCoord($x, $y, $z)
100@ = Blip.AddForCoord($x, $y, $z)
101@ = Blip.AddForCoord($x, $y, $z)
102@ = Blip.AddForCoord($x, $y, $z)
103@ = Blip.AddForCoord($x, $y, $z)
274@ = Group.Create(DefaultTaskAllocator.FollowAnyMeans)
275@ = Group.Create(DefaultTaskAllocator.FollowAnyMeans)
276@ = Group.Create(DefaultTaskAllocator.FollowAnyMeans)

:COPCAR_4020
Blip.Remove(92@)
92@ = Blip.AddForChar(36@)
set_lvar_int_to_lvar_int 50@ = 36@
gosub @COPCAR_18090
if 
  51@ > 0
goto_if_false @COPCAR_4144
Group.Remove(274@)
274@ = Group.Create(DefaultTaskAllocator.SitInLeaderCar)
Group.SetLeader(274@, 36@)
Group.SetDecisionMaker(274@, 268@)
37@ = Char.CreateAsPassenger(35@, PedType.Mission1, 271@, 0)
Blip.Remove(95@)
95@ = Blip.AddForChar(37@)
set_lvar_int_to_lvar_int 50@ = 37@
gosub @COPCAR_18090
goto @COPCAR_4151

:COPCAR_4144
69@ = 1

:COPCAR_4151
if 
  51@ > 1
goto_if_false @COPCAR_4219
38@ = Char.CreateAsPassenger(35@, PedType.Mission1, 271@, 1)
Blip.Remove(96@)
96@ = Blip.AddForChar(38@)
set_lvar_int_to_lvar_int 50@ = 38@
gosub @COPCAR_18090
goto @COPCAR_4226

:COPCAR_4219
70@ = 1

:COPCAR_4226
if 
  51@ > 2
goto_if_false @COPCAR_4294
39@ = Char.CreateAsPassenger(35@, PedType.Mission1, 271@, 2)
Blip.Remove(97@)
97@ = Blip.AddForChar(39@)
set_lvar_int_to_lvar_int 50@ = 39@
gosub @COPCAR_18090
goto @COPCAR_4301

:COPCAR_4294
71@ = 1

:COPCAR_4301
if 
  51@ > 3
goto_if_false @COPCAR_4511
40@ = Car.Create(90@, 107@, 108@, 109@)
Car.MarkAsConvoyCar(40@, True)
Car.SetHeading(40@, 113@)
Car.SetAvoidLevelTransitions(40@, True)
Car.SetDrivingStyle(40@, DrivingMode.AvoidCars)
Car.SetHealth(40@, 800)
Car.SetRandomRouteSeed(40@, $total_criminals_killed)

:COPCAR_4381
if 
  Car.IsWaitingForWorldCollision(40@)
goto_if_false @COPCAR_4463
wait 0
if 
  Car.IsDead(40@)
goto_if_false @COPCAR_4424
goto @COPCAR_14808

:COPCAR_4424
gosub @COPCAR_18593
if 
  58@ == 1
goto_if_false @COPCAR_4456
goto @COPCAR_14808

:COPCAR_4456
goto @COPCAR_4381

:COPCAR_4463
41@ = Char.CreateInsideCar(40@, PedType.Mission1, 271@)
set_lvar_int_to_lvar_int 50@ = 41@
gosub @COPCAR_18090
Blip.Remove(93@)
93@ = Blip.AddForChar(41@)
goto @COPCAR_4525

:COPCAR_4511
82@ = 1
77@ = 1

:COPCAR_4525
if 
  51@ > 4
goto_if_false @COPCAR_4621
Group.Remove(275@)
275@ = Group.Create(DefaultTaskAllocator.SitInLeaderCar)
Group.SetLeader(275@, 41@)
Group.SetDecisionMaker(275@, 268@)
42@ = Char.CreateAsPassenger(40@, PedType.Mission1, 271@, 0)
Blip.Remove(98@)
98@ = Blip.AddForChar(42@)
set_lvar_int_to_lvar_int 50@ = 42@
gosub @COPCAR_18090
goto @COPCAR_4628

:COPCAR_4621
78@ = 1

:COPCAR_4628
if 
  51@ > 5
goto_if_false @COPCAR_4696
43@ = Char.CreateAsPassenger(40@, PedType.Mission1, 271@, 1)
Blip.Remove(99@)
99@ = Blip.AddForChar(43@)
set_lvar_int_to_lvar_int 50@ = 43@
gosub @COPCAR_18090
goto @COPCAR_4703

:COPCAR_4696
79@ = 1

:COPCAR_4703
if 
  51@ > 6
goto_if_false @COPCAR_4771
44@ = Char.CreateAsPassenger(40@, PedType.Mission1, 271@, 2)
Blip.Remove(100@)
100@ = Blip.AddForChar(44@)
set_lvar_int_to_lvar_int 50@ = 44@
gosub @COPCAR_18090
goto @COPCAR_4778

:COPCAR_4771
80@ = 1

:COPCAR_4778
if 
  51@ > 7
goto_if_false @COPCAR_4988
45@ = Car.Create(90@, 110@, 111@, 112@)
Car.MarkAsConvoyCar(45@, True)
Car.SetHeading(45@, 113@)
Car.SetAvoidLevelTransitions(45@, True)
Car.SetDrivingStyle(45@, DrivingMode.AvoidCars)
Car.SetHealth(45@, 800)
Car.SetRandomRouteSeed(45@, $total_criminals_killed)

:COPCAR_4858
if 
  Car.IsWaitingForWorldCollision(45@)
goto_if_false @COPCAR_4940
wait 0
if 
  Car.IsDead(45@)
goto_if_false @COPCAR_4901
goto @COPCAR_14808

:COPCAR_4901
gosub @COPCAR_18593
if 
  58@ == 1
goto_if_false @COPCAR_4933
goto @COPCAR_14808

:COPCAR_4933
goto @COPCAR_4858

:COPCAR_4940
46@ = Char.CreateInsideCar(45@, PedType.Mission1, 271@)
set_lvar_int_to_lvar_int 50@ = 46@
gosub @COPCAR_18090
Blip.Remove(94@)
94@ = Blip.AddForChar(46@)
goto @COPCAR_5002

:COPCAR_4988
89@ = 1
84@ = 1

:COPCAR_5002
if 
  51@ > 8
goto_if_false @COPCAR_5098
Group.Remove(276@)
276@ = Group.Create(DefaultTaskAllocator.SitInLeaderCar)
Group.SetLeader(276@, 46@)
Group.SetDecisionMaker(276@, 268@)
47@ = Char.CreateAsPassenger(45@, PedType.Mission1, 271@, 0)
Blip.Remove(101@)
101@ = Blip.AddForChar(47@)
set_lvar_int_to_lvar_int 50@ = 47@
gosub @COPCAR_18090
goto @COPCAR_5105

:COPCAR_5098
85@ = 1

:COPCAR_5105
if 
  51@ > 9
goto_if_false @COPCAR_5173
48@ = Char.CreateAsPassenger(45@, PedType.Mission1, 271@, 1)
Blip.Remove(102@)
102@ = Blip.AddForChar(48@)
set_lvar_int_to_lvar_int 50@ = 48@
gosub @COPCAR_18090
goto @COPCAR_5180

:COPCAR_5173
86@ = 1

:COPCAR_5180
if 
  51@ > 10
goto_if_false @COPCAR_5248
49@ = Char.CreateAsPassenger(45@, PedType.Mission1, 271@, 2)
Blip.Remove(103@)
103@ = Blip.AddForChar(49@)
set_lvar_int_to_lvar_int 50@ = 49@
gosub @COPCAR_18090
goto @COPCAR_5255

:COPCAR_5248
87@ = 1

:COPCAR_5255
Streaming.MarkModelAsNoLongerNeeded(90@)
Streaming.MarkModelAsNoLongerNeeded(271@)
if 
  not Char.IsDead(36@)
goto_if_false @COPCAR_5295
116@, 117@, $z = Char.GetCoordinates(36@)

:COPCAR_5295
get_name_of_zone 116@ {y} 117@ {z} $z {var_name} s$random_seed
if 
  51@ == 0
goto_if_false @COPCAR_5353
Text.PrintStringInStringNow('C_BREIF', s$random_seed, 5000, TextStyle.Middle)
goto @COPCAR_5372

:COPCAR_5353
Text.PrintStringInStringNow('C_BREIS', s$random_seed, 5000, TextStyle.Middle)

:COPCAR_5372
police_radio_message 116@ {_p2} 117@ {_p3} $z
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
set_var_float_to_var_float $temp_float_3 = $player_x
sub_float_lvar_from_float_var $temp_float_3 -= 116@
set_var_float_to_var_float $x_temp = $player_y
sub_float_lvar_from_float_var $x_temp -= 117@
mult_float_var_by_float_var $temp_float_3 *= $temp_float_3
mult_float_var_by_float_var $x_temp *= $x_temp
set_lvar_float_to_var_float 114@ = $x_temp
add_float_var_to_float_lvar 114@ += $x_temp
114@ = Math.Sqrt(114@)
if 
  Char.IsInModel($scplayer, 425)
goto_if_false @COPCAR_5505
142@ = 8.0
goto @COPCAR_5515

:COPCAR_5505
142@ = 4.0

:COPCAR_5515
add_float_lvar_to_float_lvar 142@ += 144@
div_float_lvar_by_float_lvar 114@ /= 142@
114@ *= 1000.0
cset_lvar_int_to_lvar_float 63@ =# 114@
if 
  40000 > 63@
goto_if_false @COPCAR_5580
63@ = 40000

:COPCAR_5580
add_int_lvar_to_int_var $car_numer_flag += 63@
63@ /= 1000
set_var_int_to_lvar_int $8226 = 51@
$8226 += 1
if 
  65@ == 1
goto_if_false @COPCAR_5659
Hud.ForceBigMessageAndCounter(True)
Text.PrintWithNumberBig('A_TIME', 63@, 4000, TextStyle.WhiteMiddleSmaller)
goto @COPCAR_5757

:COPCAR_5659
if 
  45000 > $car_numer_flag
goto_if_false @COPCAR_5690
$car_numer_flag = 45000

:COPCAR_5690
$car_numer_flag += 30000
//Hud.DisplayTimerWithString($car_numer_flag, TimerDirection.Down, 'COPTIME')
65@ = 1
Hud.DisplayNthCounterWithString($8226, CounterDisplay.Number, 1, 'COPLEVL')
Hud.DisplayNthCounterWithString($cop_time_limit, CounterDisplay.Number, 2, 'KILLS')

:COPCAR_5757
//$game_timer = Clock.GetGameTimer()
set_lvar_int_to_var_int 72@ = $game_timer
set_lvar_int_to_var_int 81@ = $game_timer
set_lvar_int_to_var_int 88@ = $game_timer
if 
  13 > 51@
goto_if_false @COPCAR_5814
144@ += 0.1

:COPCAR_5814
Hud.FreezeTimer(False)

:COPCAR_5818
wait 0
$game_timer = Clock.GetGameTimer()
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
gosub @COPCAR_18593
if 
  58@ == 1
goto_if_false @COPCAR_5873
goto @COPCAR_14808

:COPCAR_5873
if or
  269@ == -1
  74@ == -1
  83@ == -1
goto_if_false @COPCAR_5912
52@ = 1

:COPCAR_5912
270@ += 1
if 
  270@ > 2
goto_if_false @COPCAR_5944
270@ = 0

:COPCAR_5944
if 
  270@ == 0
goto_if_false @COPCAR_8260
if 
  not Char.IsDead(36@)
goto_if_false @COPCAR_7330
if 
  Char.IsSittingInAnyCar(36@)
goto_if_false @COPCAR_6784
Car.MarkAsNoLongerNeeded(35@)
35@ = Char.StoreCarIsInNoSave(36@)
if 
  269@ == -1
goto_if_false @COPCAR_6112
55@ = Char.GetNumberOfFollowers(36@)
if 
  55@ > 0
goto_if_false @COPCAR_6097
if 
  Group.DoesExist(274@)
goto_if_false @COPCAR_6074
Group.SetDefaultTaskAllocator(274@, DefaultTaskAllocator.SitInLeaderCar)

:COPCAR_6074
set_lvar_int_to_var_int 72@ = $game_timer
72@ += 2000
goto @COPCAR_6105

:COPCAR_6097
set_lvar_int_to_var_int 72@ = $game_timer

:COPCAR_6105
269@ = 0

:COPCAR_6112
if 
  269@ == 0
goto_if_false @COPCAR_6201
if or
  is_int_var_greater_than_int_lvar $game_timer > 72@
  is_int_lvar_equal_to_int_var 72@ == $game_timer
goto_if_false @COPCAR_6201
Car.SetCruiseSpeed(35@, 100.0)
Car.SetDrivingStyle(35@, DrivingMode.AvoidCars)
Car.WanderRandomly(35@)
set_lvar_int_to_var_int 66@ = $game_timer
269@ = 1
67@ = 0

:COPCAR_6201
if 
  269@ > 0
goto_if_false @COPCAR_6777
if 
  Char.IsInCar($scplayer, 35@)
goto_if_false @COPCAR_6275
$task_status = Char.GetScriptTaskStatus(36@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_6275
Task.KillCharOnFoot(36@, $scplayer)

:COPCAR_6275
set_lvar_int_to_lvar_int 153@ = 35@
set_lvar_int_to_lvar_int 154@ = 67@
set_lvar_int_to_lvar_int 155@ = 66@
set_lvar_float_to_lvar_float 150@ = 145@
set_lvar_float_to_lvar_float 151@ = 146@
set_lvar_float_to_lvar_float 152@ = 147@
if 
  148@ > 0.0
goto_if_false @COPCAR_6351
gosub @COPCAR_16146

:COPCAR_6351
set_lvar_int_to_lvar_int 67@ = 154@
set_lvar_int_to_lvar_int 66@ = 155@
set_lvar_float_to_lvar_float 145@ = 150@
set_lvar_float_to_lvar_float 146@ = 151@
set_lvar_float_to_lvar_float 147@ = 152@
if 
  67@ == -9
goto_if_false @COPCAR_6481
$task_status = Char.GetScriptTaskStatus(36@, 1498)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_6474
$x, $y, $z = Char.GetCoordinates(36@)
Task.FleePoint(36@, $x, $y, $z, 15.0, 1500)

:COPCAR_6474
67@ = 0

:COPCAR_6481
if 
  not Car.IsHealthGreater(35@, 251)
goto_if_false @COPCAR_6588
$task_status = Char.GetScriptTaskStatus(36@, 1498)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_6565
$x, $y, $z = Char.GetCoordinates(36@)
Task.FleePoint(36@, $x, $y, $z, 15.0, 1500)

:COPCAR_6565
set_lvar_int_to_var_int 72@ = $game_timer
72@ += 2000
goto @COPCAR_6596

:COPCAR_6588
set_lvar_int_to_var_int 72@ = $game_timer

:COPCAR_6596
gosub @COPCAR_16755
116@, 117@, $z = Char.GetCoordinates(36@)
set_var_float_to_var_float $temp_float_3 = $player_x
sub_float_lvar_from_float_var $temp_float_3 -= 116@
set_var_float_to_var_float $x_temp = $player_y
sub_float_lvar_from_float_var $x_temp -= 117@
mult_float_var_by_float_var $temp_float_3 *= $temp_float_3
mult_float_var_by_float_var $x_temp *= $x_temp
set_lvar_float_to_var_float 149@ = $temp_float_3
add_float_var_to_float_lvar 149@ += $x_temp
149@ = Math.Sqrt(149@)
148@ = 1000.0
div_float_lvar_by_float_lvar 148@ /= 149@
if 
  148@ > 100.0
goto_if_false @COPCAR_6738
148@ = 100.0

:COPCAR_6738
if 
  15.0 > 148@
goto_if_false @COPCAR_6769
148@ = 15.0

:COPCAR_6769
Car.SetCruiseSpeed(35@, 148@)

:COPCAR_6777
goto @COPCAR_7323

:COPCAR_6784
if 
  Group.DoesExist(274@)
goto_if_false @COPCAR_6807
Group.SetDefaultTaskAllocator(274@, DefaultTaskAllocator.FollowAnyMeans)

:COPCAR_6807
269@ = -1
gosub @COPCAR_16755
if 
  is_int_var_greater_than_int_lvar $game_timer > 72@
goto_if_false @COPCAR_7323
if 
  Char.LocateAnyMeansChar2D($scplayer, 36@, 45.0, 45.0, False)
goto_if_false @COPCAR_7168
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @COPCAR_6931
$task_status = Char.GetScriptTaskStatus(36@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_6924
Task.KillCharOnFoot(36@, $scplayer)

:COPCAR_6924
goto @COPCAR_7161

:COPCAR_6931
if 
  Char.LocateAnyMeansChar2D($scplayer, 36@, 30.0, 30.0, False)
goto_if_false @COPCAR_7006
$task_status = Char.GetScriptTaskStatus(36@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_6999
Task.KillCharOnFoot(36@, $scplayer)

:COPCAR_6999
goto @COPCAR_7161

:COPCAR_7006
set_lvar_int_to_lvar_int 156@ = 36@
if 
  not Car.IsDead(35@)
goto_if_false @COPCAR_7154
if 
  Car.IsHealthGreater(35@, 400)
goto_if_false @COPCAR_7140
if 
  Char.LocateAnyMeansCar2D(36@, 35@, 40.0, 40.0, False)
goto_if_false @COPCAR_7126
$task_status = Char.GetScriptTaskStatus(36@, 1483)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_7119
Task.EnterCarAsDriver(36@, 35@, -2)

:COPCAR_7119
goto @COPCAR_7133

:COPCAR_7126
gosub @COPCAR_15328

:COPCAR_7133
goto @COPCAR_7147

:COPCAR_7140
gosub @COPCAR_15328

:COPCAR_7147
goto @COPCAR_7161

:COPCAR_7154
gosub @COPCAR_15328

:COPCAR_7161
goto @COPCAR_7323

:COPCAR_7168
set_lvar_int_to_lvar_int 156@ = 36@
if 
  not Car.IsDead(35@)
goto_if_false @COPCAR_7316
if 
  Car.IsHealthGreater(35@, 400)
goto_if_false @COPCAR_7302
if 
  Char.LocateAnyMeansCar2D(36@, 35@, 40.0, 40.0, False)
goto_if_false @COPCAR_7288
$task_status = Char.GetScriptTaskStatus(36@, 1483)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_7281
Task.EnterCarAsDriver(36@, 35@, -2)

:COPCAR_7281
goto @COPCAR_7295

:COPCAR_7288
gosub @COPCAR_15328

:COPCAR_7295
goto @COPCAR_7309

:COPCAR_7302
gosub @COPCAR_15328

:COPCAR_7309
goto @COPCAR_7323

:COPCAR_7316
gosub @COPCAR_15328

:COPCAR_7323
goto @COPCAR_7920

:COPCAR_7330
Blip.Remove(92@)
Char.MarkAsNoLongerNeeded(36@)
36@ = -1
if 
  68@ == 0
goto_if_false @COPCAR_7406
$cop_time_limit += 1
Stat.IncrementInt(StatId.CriminalsCaught, 1)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
68@ = 1

:COPCAR_7406
if 
  Group.DoesExist(274@)
goto_if_false @COPCAR_7920
if 
  not Char.IsDead(37@)
goto_if_false @COPCAR_7571
if 
  not Char.IsGroupMember(37@, 274@)
goto_if_false @COPCAR_7501
$task_status = Char.GetScriptTaskStatus(37@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_7494
Task.KillCharOnFoot(37@, $scplayer)

:COPCAR_7494
goto @COPCAR_7564

:COPCAR_7501
if 
  Char.IsGroupLeader(37@, 274@)
goto_if_false @COPCAR_7564
set_lvar_int_to_lvar_int 36@ = 37@
37@ = -1
68@ = 0
69@ = 1
set_lvar_int_to_lvar_int 92@ = 95@
95@ = -1

:COPCAR_7564
goto @COPCAR_7588

:COPCAR_7571
Blip.Remove(95@)
Char.MarkAsNoLongerNeeded(37@)
37@ = -1

:COPCAR_7588
if 
  not Char.IsDead(38@)
goto_if_false @COPCAR_7737
if 
  not Char.IsGroupMember(38@, 274@)
goto_if_false @COPCAR_7667
$task_status = Char.GetScriptTaskStatus(38@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_7660
Task.KillCharOnFoot(38@, $scplayer)

:COPCAR_7660
goto @COPCAR_7730

:COPCAR_7667
if 
  Char.IsGroupLeader(38@, 274@)
goto_if_false @COPCAR_7730
set_lvar_int_to_lvar_int 36@ = 38@
38@ = -1
68@ = 0
70@ = 1
set_lvar_int_to_lvar_int 92@ = 96@
96@ = -1

:COPCAR_7730
goto @COPCAR_7754

:COPCAR_7737
Blip.Remove(96@)
Char.MarkAsNoLongerNeeded(38@)
38@ = -1

:COPCAR_7754
if 
  not Char.IsDead(39@)
goto_if_false @COPCAR_7903
if 
  not Char.IsGroupMember(39@, 274@)
goto_if_false @COPCAR_7833
$task_status = Char.GetScriptTaskStatus(39@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_7826
Task.KillCharOnFoot(39@, $scplayer)

:COPCAR_7826
goto @COPCAR_7896

:COPCAR_7833
if 
  Char.IsGroupLeader(39@, 274@)
goto_if_false @COPCAR_7896
set_lvar_int_to_lvar_int 36@ = 39@
39@ = -1
68@ = 0
71@ = 1
set_lvar_int_to_lvar_int 92@ = 97@
97@ = -1

:COPCAR_7896
goto @COPCAR_7920

:COPCAR_7903
Blip.Remove(97@)
Char.MarkAsNoLongerNeeded(39@)
39@ = -1

:COPCAR_7920
if 
  Char.IsDead(37@)
goto_if_false @COPCAR_8012
if 
  69@ == 0
goto_if_false @COPCAR_8012
Char.MarkAsNoLongerNeeded(37@)
37@ = -1
Blip.Remove(95@)
$cop_time_limit += 1
Stat.IncrementInt(StatId.CriminalsCaught, 1)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
69@ = 1

:COPCAR_8012
if 
  Char.IsDead(38@)
goto_if_false @COPCAR_8104
if 
  70@ == 0
goto_if_false @COPCAR_8104
Char.MarkAsNoLongerNeeded(38@)
38@ = -1
Blip.Remove(96@)
$cop_time_limit += 1
Stat.IncrementInt(StatId.CriminalsCaught, 1)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
70@ = 1

:COPCAR_8104
if 
  Char.IsDead(39@)
goto_if_false @COPCAR_8196
if 
  71@ == 0
goto_if_false @COPCAR_8196
Char.MarkAsNoLongerNeeded(39@)
39@ = -1
Blip.Remove(97@)
$cop_time_limit += 1
Stat.IncrementInt(StatId.CriminalsCaught, 1)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
71@ = 1

:COPCAR_8196
if 
  73@ == 0
goto_if_false @COPCAR_8260
if and
  68@ == 1
  69@ == 1
  70@ == 1
  71@ == 1
goto_if_false @COPCAR_8260
73@ = 1

:COPCAR_8260
if 
  270@ == 1
goto_if_false @COPCAR_11091
if 
  not Char.IsDead(41@)
goto_if_false @COPCAR_10161
if 
  Char.IsSittingInAnyCar(41@)
goto_if_false @COPCAR_9615
Car.MarkAsNoLongerNeeded(40@)
40@ = Char.StoreCarIsInNoSave(41@)
if 
  74@ == -1
goto_if_false @COPCAR_8428
55@ = Char.GetNumberOfFollowers(41@)
if 
  55@ > 0
goto_if_false @COPCAR_8413
if 
  Group.DoesExist(275@)
goto_if_false @COPCAR_8390
Group.SetDefaultTaskAllocator(275@, DefaultTaskAllocator.SitInLeaderCar)

:COPCAR_8390
set_lvar_int_to_var_int 81@ = $game_timer
81@ += 2000
goto @COPCAR_8421

:COPCAR_8413
set_lvar_int_to_var_int 81@ = $game_timer

:COPCAR_8421
74@ = 0

:COPCAR_8428
if 
  74@ == 0
goto_if_false @COPCAR_8587
if 
  is_int_var_greater_than_int_lvar $game_timer > 81@
goto_if_false @COPCAR_8587
Car.SetCruiseSpeed(40@, 100.0)
Car.SetDrivingStyle(40@, DrivingMode.AvoidCars)
if 
  52@ == 0
goto_if_false @COPCAR_8535
if 
  not Car.IsDead(35@)
goto_if_false @COPCAR_8528
Car.WanderRandomly(40@)
goto @COPCAR_8535

:COPCAR_8528
52@ = 1

:COPCAR_8535
if 
  52@ == 1
goto_if_false @COPCAR_8565
Car.MarkAsConvoyCar(40@, False)
Car.WanderRandomly(40@)

:COPCAR_8565
set_lvar_int_to_var_int 75@ = $game_timer
74@ = 1
76@ = 0

:COPCAR_8587
if 
  74@ > 0
goto_if_false @COPCAR_9608
if 
  Char.IsInCar($scplayer, 40@)
goto_if_false @COPCAR_8661
$task_status = Char.GetScriptTaskStatus(41@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_8661
Task.KillCharOnFoot(41@, $scplayer)

:COPCAR_8661
set_lvar_int_to_lvar_int 153@ = 40@
set_lvar_int_to_lvar_int 154@ = 76@
set_lvar_int_to_lvar_int 155@ = 75@
set_lvar_float_to_lvar_float 150@ = 164@
set_lvar_float_to_lvar_float 151@ = 165@
set_lvar_float_to_lvar_float 152@ = 166@
if 
  167@ > 0.0
goto_if_false @COPCAR_8737
gosub @COPCAR_16146

:COPCAR_8737
set_lvar_int_to_lvar_int 76@ = 154@
set_lvar_int_to_lvar_int 75@ = 155@
set_lvar_float_to_lvar_float 164@ = 150@
set_lvar_float_to_lvar_float 165@ = 151@
set_lvar_float_to_lvar_float 166@ = 152@
if 
  76@ == -9
goto_if_false @COPCAR_8867
$task_status = Char.GetScriptTaskStatus(41@, 1498)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_8860
$x, $y, $z = Char.GetCoordinates(41@)
Task.FleePoint(41@, $x, $y, $z, 15.0, 1500)

:COPCAR_8860
76@ = 0

:COPCAR_8867
if 
  not Car.IsHealthGreater(40@, 400)
goto_if_false @COPCAR_8923
$task_status = Char.GetScriptTaskStatus(41@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_8923
Task.KillCharOnFoot(41@, $scplayer)

:COPCAR_8923
if 
  not Car.IsHealthGreater(40@, 251)
goto_if_false @COPCAR_9030
$task_status = Char.GetScriptTaskStatus(41@, 1498)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_9007
$x, $y, $z = Char.GetCoordinates(41@)
Task.FleePoint(41@, $x, $y, $z, 15.0, 1500)

:COPCAR_9007
set_lvar_int_to_var_int 81@ = $game_timer
81@ += 2000
goto @COPCAR_9038

:COPCAR_9030
set_lvar_int_to_var_int 81@ = $game_timer

:COPCAR_9038
gosub @COPCAR_17200
162@, 163@, $z = Char.GetCoordinates(41@)
set_var_float_to_var_float $temp_float_3 = $player_x
sub_float_lvar_from_float_var $temp_float_3 -= 162@
set_var_float_to_var_float $x_temp = $player_y
sub_float_lvar_from_float_var $x_temp -= 163@
mult_float_var_by_float_var $temp_float_3 *= $temp_float_3
mult_float_var_by_float_var $x_temp *= $x_temp
set_lvar_float_to_var_float 149@ = $temp_float_3
add_float_var_to_float_lvar 149@ += $x_temp
149@ = Math.Sqrt(149@)
167@ = 1000.0
div_float_lvar_by_float_lvar 167@ /= 149@
if 
  167@ > 100.0
goto_if_false @COPCAR_9180
167@ = 100.0

:COPCAR_9180
if 
  15.0 > 167@
goto_if_false @COPCAR_9211
167@ = 15.0

:COPCAR_9211
if 
  52@ == 0
goto_if_false @COPCAR_9563
if 
  not Car.IsDead(35@)
goto_if_false @COPCAR_9551
set_lvar_int_to_lvar_int 157@ = 40@
set_lvar_int_to_lvar_int 158@ = 35@
gosub @COPCAR_15115
set_lvar_float_to_lvar_float 167@ = 124@
138@ = Car.GetForwardX(40@)
139@ = Car.GetForwardY(40@)
132@, 133@, $z = Car.GetCoordinates(35@)
134@, 135@, $z = Car.GetCoordinates(40@)
set_lvar_float_to_lvar_float 120@ = 134@
sub_float_lvar_from_float_lvar 120@ -= 132@
mult_float_lvar_by_float_lvar 138@ *= 120@
set_lvar_float_to_lvar_float 121@ = 135@
sub_float_lvar_from_float_lvar 121@ -= 133@
mult_float_lvar_by_float_lvar 139@ *= 121@
set_lvar_float_to_lvar_float 128@ = 138@
add_float_lvar_to_float_lvar 128@ += 139@
138@ = Car.GetForwardX(35@)
139@ = Car.GetForwardY(35@)
134@, 135@, $z = Car.GetCoordinates(40@)
132@, 133@, $z = Car.GetCoordinates(35@)
set_lvar_float_to_lvar_float 120@ = 132@
sub_float_lvar_from_float_lvar 120@ -= 134@
mult_float_lvar_by_float_lvar 138@ *= 120@
set_lvar_float_to_lvar_float 121@ = 133@
sub_float_lvar_from_float_lvar 121@ -= 135@
mult_float_lvar_by_float_lvar 139@ *= 121@
set_lvar_float_to_lvar_float 129@ = 138@
add_float_lvar_to_float_lvar 129@ += 139@
if 
  128@ > 0.0
goto_if_false @COPCAR_9544
if 
  0.0 > 129@
goto_if_false @COPCAR_9544
167@ = 0.0

:COPCAR_9544
goto @COPCAR_9563

:COPCAR_9551
Car.WanderRandomly(40@)
52@ = 1

:COPCAR_9563
if 
  167@ == 0.0
goto_if_false @COPCAR_9600
Car.SetTempAction(40@, TempAction.Wait, 17)
goto @COPCAR_9608

:COPCAR_9600
Car.SetCruiseSpeed(40@, 167@)

:COPCAR_9608
goto @COPCAR_10154

:COPCAR_9615
if 
  Group.DoesExist(275@)
goto_if_false @COPCAR_9638
Group.SetDefaultTaskAllocator(275@, DefaultTaskAllocator.FollowAnyMeans)

:COPCAR_9638
74@ = -1
gosub @COPCAR_17200
if 
  is_int_var_greater_than_int_lvar $game_timer > 81@
goto_if_false @COPCAR_10154
if 
  Char.LocateAnyMeansChar2D($scplayer, 41@, 40.0, 40.0, False)
goto_if_false @COPCAR_9999
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @COPCAR_9762
$task_status = Char.GetScriptTaskStatus(41@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_9755
Task.KillCharOnFoot(41@, $scplayer)

:COPCAR_9755
goto @COPCAR_9992

:COPCAR_9762
if 
  Char.LocateAnyMeansChar2D($scplayer, 41@, 25.0, 25.0, False)
goto_if_false @COPCAR_9837
$task_status = Char.GetScriptTaskStatus(41@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_9830
Task.KillCharOnFoot(41@, $scplayer)

:COPCAR_9830
goto @COPCAR_9992

:COPCAR_9837
set_lvar_int_to_lvar_int 156@ = 41@
if 
  not Car.IsDead(40@)
goto_if_false @COPCAR_9985
if 
  Car.IsHealthGreater(40@, 400)
goto_if_false @COPCAR_9971
if 
  Char.LocateAnyMeansCar2D(41@, 40@, 40.0, 40.0, False)
goto_if_false @COPCAR_9957
$task_status = Char.GetScriptTaskStatus(41@, 1483)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_9950
Task.EnterCarAsDriver(41@, 40@, -2)

:COPCAR_9950
goto @COPCAR_9964

:COPCAR_9957
gosub @COPCAR_15328

:COPCAR_9964
goto @COPCAR_9978

:COPCAR_9971
gosub @COPCAR_15328

:COPCAR_9978
goto @COPCAR_9992

:COPCAR_9985
gosub @COPCAR_15328

:COPCAR_9992
goto @COPCAR_10154

:COPCAR_9999
set_lvar_int_to_lvar_int 156@ = 41@
if 
  not Car.IsDead(40@)
goto_if_false @COPCAR_10147
if 
  Car.IsHealthGreater(40@, 400)
goto_if_false @COPCAR_10133
if 
  Char.LocateAnyMeansCar2D(41@, 40@, 40.0, 40.0, False)
goto_if_false @COPCAR_10119
$task_status = Char.GetScriptTaskStatus(41@, 1483)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_10112
Task.EnterCarAsDriver(41@, 40@, -2)

:COPCAR_10112
goto @COPCAR_10126

:COPCAR_10119
gosub @COPCAR_15328

:COPCAR_10126
goto @COPCAR_10140

:COPCAR_10133
gosub @COPCAR_15328

:COPCAR_10140
goto @COPCAR_10154

:COPCAR_10147
gosub @COPCAR_15328

:COPCAR_10154
goto @COPCAR_10751

:COPCAR_10161
Blip.Remove(93@)
Char.MarkAsNoLongerNeeded(41@)
41@ = -1
if 
  77@ == 0
goto_if_false @COPCAR_10237
$cop_time_limit += 1
Stat.IncrementInt(StatId.CriminalsCaught, 1)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
77@ = 1

:COPCAR_10237
if 
  Group.DoesExist(275@)
goto_if_false @COPCAR_10751
if 
  not Char.IsDead(42@)
goto_if_false @COPCAR_10402
if 
  not Char.IsGroupMember(42@, 275@)
goto_if_false @COPCAR_10332
$task_status = Char.GetScriptTaskStatus(42@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_10325
Task.KillCharOnFoot(42@, $scplayer)

:COPCAR_10325
goto @COPCAR_10395

:COPCAR_10332
if 
  Char.IsGroupLeader(42@, 275@)
goto_if_false @COPCAR_10395
set_lvar_int_to_lvar_int 41@ = 42@
42@ = -1
77@ = 0
78@ = 1
set_lvar_int_to_lvar_int 93@ = 98@
98@ = -1

:COPCAR_10395
goto @COPCAR_10419

:COPCAR_10402
Blip.Remove(98@)
Char.MarkAsNoLongerNeeded(42@)
42@ = -1

:COPCAR_10419
if 
  not Char.IsDead(43@)
goto_if_false @COPCAR_10568
if 
  not Char.IsGroupMember(43@, 275@)
goto_if_false @COPCAR_10498
$task_status = Char.GetScriptTaskStatus(43@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_10491
Task.KillCharOnFoot(43@, $scplayer)

:COPCAR_10491
goto @COPCAR_10561

:COPCAR_10498
if 
  Char.IsGroupLeader(43@, 275@)
goto_if_false @COPCAR_10561
set_lvar_int_to_lvar_int 41@ = 43@
43@ = -1
77@ = 0
79@ = 1
set_lvar_int_to_lvar_int 93@ = 99@
99@ = -1

:COPCAR_10561
goto @COPCAR_10585

:COPCAR_10568
Blip.Remove(99@)
Char.MarkAsNoLongerNeeded(43@)
43@ = -1

:COPCAR_10585
if 
  not Char.IsDead(44@)
goto_if_false @COPCAR_10734
if 
  not Char.IsGroupMember(44@, 275@)
goto_if_false @COPCAR_10664
$task_status = Char.GetScriptTaskStatus(44@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_10657
Task.KillCharOnFoot(44@, $scplayer)

:COPCAR_10657
goto @COPCAR_10727

:COPCAR_10664
if 
  Char.IsGroupLeader(44@, 275@)
goto_if_false @COPCAR_10727
set_lvar_int_to_lvar_int 41@ = 44@
44@ = -1
77@ = 0
80@ = 1
set_lvar_int_to_lvar_int 93@ = 100@
100@ = -1

:COPCAR_10727
goto @COPCAR_10751

:COPCAR_10734
Blip.Remove(100@)
Char.MarkAsNoLongerNeeded(44@)
44@ = -1

:COPCAR_10751
if 
  Char.IsDead(42@)
goto_if_false @COPCAR_10843
if 
  78@ == 0
goto_if_false @COPCAR_10843
Char.MarkAsNoLongerNeeded(42@)
42@ = -1
Blip.Remove(98@)
$cop_time_limit += 1
Stat.IncrementInt(StatId.CriminalsCaught, 1)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
78@ = 1

:COPCAR_10843
if 
  Char.IsDead(43@)
goto_if_false @COPCAR_10935
if 
  79@ == 0
goto_if_false @COPCAR_10935
Char.MarkAsNoLongerNeeded(43@)
43@ = -1
Blip.Remove(99@)
$cop_time_limit += 1
Stat.IncrementInt(StatId.CriminalsCaught, 1)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
79@ = 1

:COPCAR_10935
if 
  Char.IsDead(44@)
goto_if_false @COPCAR_11027
if 
  80@ == 0
goto_if_false @COPCAR_11027
Char.MarkAsNoLongerNeeded(44@)
44@ = -1
Blip.Remove(100@)
$cop_time_limit += 1
Stat.IncrementInt(StatId.CriminalsCaught, 1)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
80@ = 1

:COPCAR_11027
if 
  82@ == 0
goto_if_false @COPCAR_11091
if and
  77@ == 1
  78@ == 1
  79@ == 1
  80@ == 1
goto_if_false @COPCAR_11091
82@ = 1

:COPCAR_11091
if 
  270@ == 2
goto_if_false @COPCAR_13922
if 
  not Char.IsDead(46@)
goto_if_false @COPCAR_12992
if 
  Char.IsSittingInAnyCar(46@)
goto_if_false @COPCAR_12446
Car.MarkAsNoLongerNeeded(45@)
45@ = Char.StoreCarIsInNoSave(46@)
if 
  83@ == -1
goto_if_false @COPCAR_11259
55@ = Char.GetNumberOfFollowers(46@)
if 
  55@ > 0
goto_if_false @COPCAR_11244
if 
  Group.DoesExist(276@)
goto_if_false @COPCAR_11221
Group.SetDefaultTaskAllocator(276@, DefaultTaskAllocator.SitInLeaderCar)

:COPCAR_11221
set_lvar_int_to_var_int 88@ = $game_timer
88@ += 2000
goto @COPCAR_11252

:COPCAR_11244
set_lvar_int_to_var_int 88@ = $game_timer

:COPCAR_11252
83@ = 0

:COPCAR_11259
if 
  83@ == 0
goto_if_false @COPCAR_11418
if 
  is_int_var_greater_than_int_lvar $game_timer > 88@
goto_if_false @COPCAR_11418
Car.SetCruiseSpeed(45@, 100.0)
Car.SetDrivingStyle(45@, DrivingMode.AvoidCars)
if 
  52@ == 0
goto_if_false @COPCAR_11366
if 
  not Car.IsDead(40@)
goto_if_false @COPCAR_11359
Car.WanderRandomly(45@)
goto @COPCAR_11366

:COPCAR_11359
52@ = 1

:COPCAR_11366
if 
  52@ == 1
goto_if_false @COPCAR_11396
Car.MarkAsConvoyCar(45@, False)
Car.WanderRandomly(45@)

:COPCAR_11396
set_lvar_int_to_var_int 174@ = $game_timer
83@ = 1
175@ = 0

:COPCAR_11418
if 
  83@ > 0
goto_if_false @COPCAR_12439
if 
  Char.IsInCar($scplayer, 45@)
goto_if_false @COPCAR_11492
$task_status = Char.GetScriptTaskStatus(46@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_11492
Task.KillCharOnFoot(46@, $scplayer)

:COPCAR_11492
set_lvar_int_to_lvar_int 153@ = 45@
set_lvar_int_to_lvar_int 154@ = 175@
set_lvar_int_to_lvar_int 155@ = 174@
set_lvar_float_to_lvar_float 150@ = 170@
set_lvar_float_to_lvar_float 151@ = 171@
set_lvar_float_to_lvar_float 152@ = 172@
if 
  173@ > 0.0
goto_if_false @COPCAR_11568
gosub @COPCAR_16146

:COPCAR_11568
set_lvar_int_to_lvar_int 175@ = 154@
set_lvar_int_to_lvar_int 174@ = 155@
set_lvar_float_to_lvar_float 170@ = 150@
set_lvar_float_to_lvar_float 171@ = 151@
set_lvar_float_to_lvar_float 172@ = 152@
if 
  175@ == -9
goto_if_false @COPCAR_11698
$task_status = Char.GetScriptTaskStatus(46@, 1498)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_11691
$x, $y, $z = Char.GetCoordinates(46@)
Task.FleePoint(46@, $x, $y, $z, 15.0, 1500)

:COPCAR_11691
175@ = 0

:COPCAR_11698
if 
  not Car.IsHealthGreater(45@, 400)
goto_if_false @COPCAR_11754
$task_status = Char.GetScriptTaskStatus(46@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_11754
Task.KillCharOnFoot(46@, $scplayer)

:COPCAR_11754
if 
  not Car.IsHealthGreater(45@, 251)
goto_if_false @COPCAR_11861
$task_status = Char.GetScriptTaskStatus(46@, 1498)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_11838
$x, $y, $z = Char.GetCoordinates(46@)
Task.FleePoint(46@, $x, $y, $z, 15.0, 1500)

:COPCAR_11838
set_lvar_int_to_var_int 88@ = $game_timer
88@ += 2000
goto @COPCAR_11869

:COPCAR_11861
set_lvar_int_to_var_int 88@ = $game_timer

:COPCAR_11869
gosub @COPCAR_17645
168@, 169@, $z = Char.GetCoordinates(46@)
set_var_float_to_var_float $temp_float_3 = $player_x
sub_float_lvar_from_float_var $temp_float_3 -= 168@
set_var_float_to_var_float $x_temp = $player_y
sub_float_lvar_from_float_var $x_temp -= 169@
mult_float_var_by_float_var $temp_float_3 *= $temp_float_3
mult_float_var_by_float_var $x_temp *= $x_temp
set_lvar_float_to_var_float 149@ = $temp_float_3
add_float_var_to_float_lvar 149@ += $x_temp
149@ = Math.Sqrt(149@)
173@ = 1000.0
div_float_lvar_by_float_lvar 173@ /= 149@
if 
  173@ > 100.0
goto_if_false @COPCAR_12011
173@ = 100.0

:COPCAR_12011
if 
  15.0 > 173@
goto_if_false @COPCAR_12042
173@ = 15.0

:COPCAR_12042
if 
  52@ == 0
goto_if_false @COPCAR_12394
if 
  not Car.IsDead(40@)
goto_if_false @COPCAR_12382
set_lvar_int_to_lvar_int 157@ = 45@
set_lvar_int_to_lvar_int 158@ = 40@
gosub @COPCAR_15115
set_lvar_float_to_lvar_float 173@ = 124@
138@ = Car.GetForwardX(45@)
139@ = Car.GetForwardY(45@)
134@, 135@, $z = Car.GetCoordinates(40@)
136@, 137@, $z = Car.GetCoordinates(45@)
set_lvar_float_to_lvar_float 120@ = 136@
sub_float_lvar_from_float_lvar 120@ -= 134@
mult_float_lvar_by_float_lvar 138@ *= 120@
set_lvar_float_to_lvar_float 121@ = 137@
sub_float_lvar_from_float_lvar 121@ -= 135@
mult_float_lvar_by_float_lvar 139@ *= 121@
set_lvar_float_to_lvar_float 130@ = 138@
add_float_lvar_to_float_lvar 130@ += 139@
138@ = Car.GetForwardX(40@)
139@ = Car.GetForwardY(40@)
136@, 137@, $z = Car.GetCoordinates(45@)
134@, 135@, $z = Car.GetCoordinates(40@)
set_lvar_float_to_lvar_float 120@ = 134@
sub_float_lvar_from_float_lvar 120@ -= 136@
mult_float_lvar_by_float_lvar 138@ *= 120@
set_lvar_float_to_lvar_float 121@ = 135@
sub_float_lvar_from_float_lvar 121@ -= 137@
mult_float_lvar_by_float_lvar 139@ *= 121@
set_lvar_float_to_lvar_float 131@ = 138@
add_float_lvar_to_float_lvar 131@ += 139@
if 
  130@ > 0.0
goto_if_false @COPCAR_12375
if 
  0.0 > 131@
goto_if_false @COPCAR_12375
173@ = 0.0

:COPCAR_12375
goto @COPCAR_12394

:COPCAR_12382
Car.WanderRandomly(45@)
52@ = 1

:COPCAR_12394
if 
  173@ == 0.0
goto_if_false @COPCAR_12431
Car.SetTempAction(45@, TempAction.Wait, 17)
goto @COPCAR_12439

:COPCAR_12431
Car.SetCruiseSpeed(45@, 173@)

:COPCAR_12439
goto @COPCAR_12985

:COPCAR_12446
if 
  Group.DoesExist(276@)
goto_if_false @COPCAR_12469
Group.SetDefaultTaskAllocator(276@, DefaultTaskAllocator.FollowAnyMeans)

:COPCAR_12469
83@ = -1
gosub @COPCAR_17645
if 
  is_int_var_greater_than_int_lvar $game_timer > 88@
goto_if_false @COPCAR_12985
if 
  Char.LocateAnyMeansChar2D($scplayer, 46@, 40.0, 40.0, False)
goto_if_false @COPCAR_12830
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @COPCAR_12593
$task_status = Char.GetScriptTaskStatus(46@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_12586
Task.KillCharOnFoot(46@, $scplayer)

:COPCAR_12586
goto @COPCAR_12823

:COPCAR_12593
if 
  Char.LocateAnyMeansChar2D($scplayer, 46@, 25.0, 25.0, False)
goto_if_false @COPCAR_12668
$task_status = Char.GetScriptTaskStatus(46@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_12661
Task.KillCharOnFoot(46@, $scplayer)

:COPCAR_12661
goto @COPCAR_12823

:COPCAR_12668
set_lvar_int_to_lvar_int 156@ = 46@
if 
  not Car.IsDead(45@)
goto_if_false @COPCAR_12816
if 
  Car.IsHealthGreater(45@, 400)
goto_if_false @COPCAR_12802
if 
  Char.LocateAnyMeansCar2D(46@, 45@, 40.0, 40.0, False)
goto_if_false @COPCAR_12788
$task_status = Char.GetScriptTaskStatus(46@, 1483)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_12781
Task.EnterCarAsDriver(46@, 45@, -2)

:COPCAR_12781
goto @COPCAR_12795

:COPCAR_12788
gosub @COPCAR_15328

:COPCAR_12795
goto @COPCAR_12809

:COPCAR_12802
gosub @COPCAR_15328

:COPCAR_12809
goto @COPCAR_12823

:COPCAR_12816
gosub @COPCAR_15328

:COPCAR_12823
goto @COPCAR_12985

:COPCAR_12830
set_lvar_int_to_lvar_int 156@ = 46@
if 
  not Car.IsDead(45@)
goto_if_false @COPCAR_12978
if 
  Car.IsHealthGreater(45@, 400)
goto_if_false @COPCAR_12964
if 
  Char.LocateAnyMeansCar2D(46@, 45@, 40.0, 40.0, False)
goto_if_false @COPCAR_12950
$task_status = Char.GetScriptTaskStatus(46@, 1483)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_12943
Task.EnterCarAsDriver(46@, 45@, -2)

:COPCAR_12943
goto @COPCAR_12957

:COPCAR_12950
gosub @COPCAR_15328

:COPCAR_12957
goto @COPCAR_12971

:COPCAR_12964
gosub @COPCAR_15328

:COPCAR_12971
goto @COPCAR_12985

:COPCAR_12978
gosub @COPCAR_15328

:COPCAR_12985
goto @COPCAR_13582

:COPCAR_12992
Blip.Remove(94@)
Char.MarkAsNoLongerNeeded(46@)
46@ = -1
if 
  84@ == 0
goto_if_false @COPCAR_13068
$cop_time_limit += 1
Stat.IncrementInt(StatId.CriminalsCaught, 1)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
84@ = 1

:COPCAR_13068
if 
  Group.DoesExist(276@)
goto_if_false @COPCAR_13582
if 
  not Char.IsDead(47@)
goto_if_false @COPCAR_13233
if 
  not Char.IsGroupMember(47@, 276@)
goto_if_false @COPCAR_13163
$task_status = Char.GetScriptTaskStatus(47@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_13156
Task.KillCharOnFoot(47@, $scplayer)

:COPCAR_13156
goto @COPCAR_13226

:COPCAR_13163
if 
  Char.IsGroupLeader(47@, 276@)
goto_if_false @COPCAR_13226
set_lvar_int_to_lvar_int 46@ = 47@
47@ = -1
84@ = 0
85@ = 1
set_lvar_int_to_lvar_int 94@ = 101@
101@ = -1

:COPCAR_13226
goto @COPCAR_13250

:COPCAR_13233
Blip.Remove(101@)
Char.MarkAsNoLongerNeeded(47@)
47@ = -1

:COPCAR_13250
if 
  not Char.IsDead(48@)
goto_if_false @COPCAR_13399
if 
  not Char.IsGroupMember(48@, 276@)
goto_if_false @COPCAR_13329
$task_status = Char.GetScriptTaskStatus(48@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_13322
Task.KillCharOnFoot(48@, $scplayer)

:COPCAR_13322
goto @COPCAR_13392

:COPCAR_13329
if 
  Char.IsGroupLeader(48@, 276@)
goto_if_false @COPCAR_13392
set_lvar_int_to_lvar_int 46@ = 48@
48@ = -1
84@ = 0
86@ = 1
set_lvar_int_to_lvar_int 94@ = 102@
102@ = -1

:COPCAR_13392
goto @COPCAR_13416

:COPCAR_13399
Blip.Remove(102@)
Char.MarkAsNoLongerNeeded(48@)
48@ = -1

:COPCAR_13416
if 
  not Char.IsDead(49@)
goto_if_false @COPCAR_13565
if 
  not Char.IsGroupMember(49@, 276@)
goto_if_false @COPCAR_13495
$task_status = Char.GetScriptTaskStatus(49@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_13488
Task.KillCharOnFoot(49@, $scplayer)

:COPCAR_13488
goto @COPCAR_13558

:COPCAR_13495
if 
  Char.IsGroupLeader(49@, 276@)
goto_if_false @COPCAR_13558
set_lvar_int_to_lvar_int 46@ = 49@
49@ = -1
84@ = 0
87@ = 1
set_lvar_int_to_lvar_int 94@ = 103@
103@ = -1

:COPCAR_13558
goto @COPCAR_13582

:COPCAR_13565
Blip.Remove(103@)
Char.MarkAsNoLongerNeeded(49@)
49@ = -1

:COPCAR_13582
if 
  Char.IsDead(47@)
goto_if_false @COPCAR_13674
if 
  85@ == 0
goto_if_false @COPCAR_13674
Blip.Remove(101@)
Char.MarkAsNoLongerNeeded(47@)
47@ = -1
$cop_time_limit += 1
Stat.IncrementInt(StatId.CriminalsCaught, 1)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
85@ = 1

:COPCAR_13674
if 
  Char.IsDead(48@)
goto_if_false @COPCAR_13766
if 
  86@ == 0
goto_if_false @COPCAR_13766
Char.MarkAsNoLongerNeeded(48@)
48@ = -1
Blip.Remove(102@)
$cop_time_limit += 1
Stat.IncrementInt(StatId.CriminalsCaught, 1)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
86@ = 1

:COPCAR_13766
if 
  Char.IsDead(49@)
goto_if_false @COPCAR_13858
if 
  87@ == 0
goto_if_false @COPCAR_13858
Char.MarkAsNoLongerNeeded(49@)
49@ = -1
Blip.Remove(103@)
$cop_time_limit += 1
Stat.IncrementInt(StatId.CriminalsCaught, 1)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1058)
87@ = 1

:COPCAR_13858
if 
  89@ == 0
goto_if_false @COPCAR_13922
if and
  84@ == 1
  85@ == 1
  86@ == 1
  87@ == 1
goto_if_false @COPCAR_13922
89@ = 1

:COPCAR_13922
if and
  73@ == 1
  82@ == 1
  89@ == 1
goto_if_false @COPCAR_13961
goto @COPCAR_13968

:COPCAR_13961
goto @COPCAR_5818

:COPCAR_13968
Stat.RegisterInt(StatId.VigilanteLevel, $8226)
51@ += 1
if or
  Char.IsInAnyPoliceVehicle($scplayer)
  Char.IsInModel($scplayer, 425)
goto_if_false @COPCAR_14045
34@ = Char.StoreCarIsInNoSave($scplayer)
Car.SetCanBurstTires(34@, False)
64@ = Car.GetHealth(34@)
64@ += 100
Car.SetHealth(34@, 64@)

:COPCAR_14045
Car.MarkAsNoLongerNeeded(35@)
Char.MarkAsNoLongerNeeded(36@)
Char.MarkAsNoLongerNeeded(37@)
Char.MarkAsNoLongerNeeded(38@)
Char.MarkAsNoLongerNeeded(39@)
Car.MarkAsNoLongerNeeded(40@)
Char.MarkAsNoLongerNeeded(41@)
Char.MarkAsNoLongerNeeded(42@)
Char.MarkAsNoLongerNeeded(43@)
Char.MarkAsNoLongerNeeded(44@)
Car.MarkAsNoLongerNeeded(45@)
Char.MarkAsNoLongerNeeded(46@)
Char.MarkAsNoLongerNeeded(47@)
Char.MarkAsNoLongerNeeded(48@)
Char.MarkAsNoLongerNeeded(49@)
Blip.Remove(92@)
Blip.Remove(93@)
Blip.Remove(94@)
Blip.Remove(95@)
Blip.Remove(96@)
Blip.Remove(97@)
Blip.Remove(98@)
Blip.Remove(99@)
Blip.Remove(100@)
Blip.Remove(101@)
Blip.Remove(102@)
Blip.Remove(103@)
Group.Remove(274@)
Group.Remove(275@)
Group.Remove(276@)
set_lvar_int_to_lvar_int 54@ = 51@
mult_int_lvar_by_int_lvar 54@ *= 51@
54@ *= 50
Hud.ForceBigMessageAndCounter(True)
Text.PrintWithNumberBig('C_PASS', 54@, 5000, TextStyle.MiddleSmallerHigher)
Player.AddScore($player1, 54@)
if 
  $done_copcar_progress == 0
goto_if_false @COPCAR_14328
if 
  51@ == 12
goto_if_false @COPCAR_14328
Text.PrintHelp('C_COMP1')
Stat.PlayerMadeProgress(1)
//Player.IncreaseMaxArmor($player1, 50)
//Char.AddArmor($scplayer, 150)
Stat.RegisterOddjobMissionPassed
Audio.PlayMissionPassedTune(2)
$done_copcar_progress = 1

:COPCAR_14328
if and
  //not Char.IsInAnyPoliceVehicle($scplayer)
  //not Char.IsInModel($scplayer, 425)
goto_if_false @COPCAR_14678
if 
  57@ == 0
goto_if_false @COPCAR_14428
53@ = Clock.GetGameTimer()
if 
  $car_numer_flag > 60000
goto_if_false @COPCAR_14413
56@ = 60000
goto @COPCAR_14421

:COPCAR_14413
set_lvar_int_to_var_int 56@ = $car_numer_flag

:COPCAR_14421
57@ = 1

:COPCAR_14428
59@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 60@ = 59@
sub_int_lvar_from_int_lvar 60@ -= 53@
sub_int_lvar_from_int_lvar 56@ -= 60@
set_lvar_int_to_lvar_int 53@ = 59@
set_lvar_int_to_lvar_int 61@ = 56@
61@ /= 1000
if 
  1 > 61@
goto_if_false @COPCAR_14562
61@ = 0
if 
  is_int_lvar_greater_than_int_lvar 59@ > 91@
goto_if_false @COPCAR_14555
Text.PrintNow('C_TIME', 3000, 1)
58@ = 1
goto @COPCAR_14808

:COPCAR_14555
goto @COPCAR_14578

:COPCAR_14562
set_lvar_int_to_lvar_int 91@ = 59@
91@ += 1000

:COPCAR_14578
if 
  61@ > -1
goto_if_false @COPCAR_14667
if 
  61@ == 1
goto_if_false @COPCAR_14644
Text.AddNextMessageToPreviousBriefs(False)
Text.PrintWithNumberNow('COPCA_T', 61@, 200, 1)
goto @COPCAR_14667

:COPCAR_14644
Text.AddNextMessageToPreviousBriefs(False)
Text.PrintWithNumberNow('COPCART', 61@, 200, 1)

:COPCAR_14667
wait 0
goto @COPCAR_14328

:COPCAR_14678
Hud.FreezeTimer(True)
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @COPCAR_14737
34@ = Char.StoreCarIsInNoSave($scplayer)
Car.SetCanBurstTires(34@, False)
64@ = Car.GetHealth(34@)
64@ += 200
Car.SetHealth(34@, 64@)

:COPCAR_14737
if 
  13 > 51@
goto_if_false @COPCAR_14801
143@ -= 0.075
if 
  0.0 > 143@
goto_if_false @COPCAR_14796
143@ = 0.0

:COPCAR_14796
Game.SetWantedMultiplier(143@)

:COPCAR_14801
goto @COPCAR_1291

:COPCAR_14808
return 

:COPCAR_14810
$onmission = 0
Blip.Remove(92@)
Blip.Remove(93@)
Blip.Remove(94@)
Blip.Remove(95@)
Blip.Remove(96@)
Blip.Remove(97@)
Blip.Remove(98@)
Blip.Remove(99@)
Blip.Remove(100@)
Blip.Remove(101@)
Blip.Remove(102@)
Blip.Remove(103@)
Group.Remove(274@)
Group.Remove(275@)
Group.Remove(276@)
Hud.ClearTimer($car_numer_flag)
Hud.ClearCounter($8226)
Hud.ClearCounter($cop_time_limit)
Streaming.MarkModelAsNoLongerNeeded(90@)
Streaming.MarkModelAsNoLongerNeeded(271@)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(355)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(336)
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

:COPCAR_14951
if 
  51@ == 0
goto_if_false @COPCAR_15019
159@ = Math.RandomIntInRange(0, 91)
if and
  159@ > 7
  17 > 159@
goto_if_false @COPCAR_15012
159@ = Math.RandomIntInRange(0, 91)

:COPCAR_15012
goto @COPCAR_15096

:COPCAR_15019
if 
  51@ == 1
goto_if_false @COPCAR_15087
159@ = Math.RandomIntInRange(2, 91)
if and
  159@ > 7
  17 > 159@
goto_if_false @COPCAR_15080
159@ = Math.RandomIntInRange(2, 91)

:COPCAR_15080
goto @COPCAR_15096

:COPCAR_15087
159@ = Math.RandomIntInRange(67, 91)

:COPCAR_15096
set_lvar_int_to_lvar_int 90@ = 176@(159@,91i)
Streaming.RequestModel(90@)
return 

:COPCAR_15115
if 
  158@ == -1
goto_if_false @COPCAR_15154
122@, 123@, 120@ = Char.GetCoordinates($scplayer)
goto @COPCAR_15168

:COPCAR_15154
122@, 123@, 120@ = Car.GetCoordinates(158@)

:COPCAR_15168
118@, 119@, 120@ = Car.GetCoordinates(157@)
set_lvar_float_to_lvar_float 120@ = 118@
sub_float_lvar_from_float_lvar 120@ -= 122@
set_lvar_float_to_lvar_float 121@ = 119@
sub_float_lvar_from_float_lvar 121@ -= 123@
mult_float_lvar_by_float_lvar 120@ *= 120@
mult_float_lvar_by_float_lvar 121@ *= 121@
add_float_lvar_to_float_lvar 120@ += 121@
120@ = Math.Sqrt(120@)
set_lvar_float_to_lvar_float 124@ = 120@
124@ += 3.0
if 
  124@ > 100.0
goto_if_false @COPCAR_15295
124@ = 100.0

:COPCAR_15295
if 
  0.0 > 124@
goto_if_false @COPCAR_15326
124@ = 0.0

:COPCAR_15326
return 

:COPCAR_15328
if 
  not Char.IsDead(156@)
goto_if_false @COPCAR_16123
$coord_1_x, $coord_1_y, $coord_1_z = Char.GetCoordinates(156@)
if 
  $heading == 919.9
goto_if_false @COPCAR_15396
$car = Car.Create(90@, $coord_1_x, $coord_1_y, $coord_1_z)

:COPCAR_15396
if 
  Char.LocateAnyMeansChar2D($scplayer, 156@, 40.0, 40.0, False)
goto_if_false @COPCAR_15801
set_var_float_to_var_float $coord_2_x = $coord_1_x
$coord_2_x += 40.0
set_var_float_to_var_float $coord_2_y = $coord_1_y
$coord_2_y += 40.0
$coord_1_x -= 40.0
$coord_1_y -= 40.0
Car.MarkAsNoLongerNeeded($car)
$car = -1
$car = World.GetRandomCarOfTypeInArea($coord_1_x, $coord_1_y, $coord_2_x, $coord_2_y, -1)
if or
  $car == -1
  is_int_lvar_equal_to_int_var 35@ == $car
goto_if_false @COPCAR_15584
$task_status = Char.GetScriptTaskStatus(156@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_15577
Task.KillCharOnFoot(156@, $scplayer)

:COPCAR_15577
goto @COPCAR_15794

:COPCAR_15584
if 
  Car.IsHealthGreater($car, 400)
goto_if_false @COPCAR_15745
55@ = Char.GetNumberOfFollowers(156@)
160@ = Car.GetMaximumNumberOfPassengers($car)
if 
  not is_int_lvar_greater_than_int_lvar 55@ > 160@
goto_if_false @COPCAR_15701
$task_status = Char.GetScriptTaskStatus(156@, 1483)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_15694
Car.LockDoors($car, CarLock.Unlocked)
Car.SetCruiseSpeed($car, 0.0)
Task.EnterCarAsDriver(156@, $car, -2)

:COPCAR_15694
goto @COPCAR_15738

:COPCAR_15701
$task_status = Char.GetScriptTaskStatus(156@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_15738
Task.KillCharOnFoot(156@, $scplayer)

:COPCAR_15738
goto @COPCAR_15794

:COPCAR_15745
$task_status = Char.GetScriptTaskStatus(156@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_15782
Task.KillCharOnFoot(156@, $scplayer)

:COPCAR_15782
Car.MarkAsNoLongerNeeded($car)
$car = -1

:COPCAR_15794
goto @COPCAR_16116

:COPCAR_15801
$coord_1_x, $coord_1_y, $coord_1_z, $heading = Path.GetClosestCarNodeWithHeading($coord_1_x, $coord_1_y, $coord_1_z)
if 
  not Camera.IsPointOnScreen($coord_1_x, $coord_1_y, $coord_1_z, 3.0)
goto_if_false @COPCAR_16116
if 
  not World.IsPointObscuredByAMissionEntity($coord_1_x, $coord_1_y, $coord_1_z, 3.0, 3.0, 2.0)
goto_if_false @COPCAR_16007
if 
  Streaming.HasModelLoaded(90@)
goto_if_false @COPCAR_16000
$task_status = Char.GetScriptTaskStatus(156@, 1483)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_16000
Car.MarkAsNoLongerNeeded($car)
$car = Car.Create(90@, $coord_1_x, $coord_1_y, $coord_1_z)
if 
  Car.IsHealthGreater($car, 800)
goto_if_false @COPCAR_15982
Car.SetHealth($car, 800)

:COPCAR_15982
Car.SetHeading($car, $heading)
Task.EnterCarAsDriver(156@, $car, -2)

:COPCAR_16000
goto @COPCAR_16116

:COPCAR_16007
if 
  Char.LocateOnFoot3D(156@, $coord_1_x, $coord_1_y, $coord_1_z, 3.0, 3.0, 2.0, False)
goto_if_false @COPCAR_16116
$task_status = Char.GetScriptTaskStatus(156@, 1491)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_16116
$coord_1_x, $coord_1_y, $coord_1_z = Path.GetClosestCharNode($coord_1_x, $coord_1_y, $coord_1_z)
Task.GoStraightToCoord(156@, $coord_1_x, $coord_1_y, $coord_1_z, MoveState.Run, -2)

:COPCAR_16116
goto @COPCAR_16144

:COPCAR_16123
0661: breakpoint {_p1} "GOSUB_PED_IS_DEAD"

:COPCAR_16144
return 

:COPCAR_16146
161@ = Clock.GetGameTimer()
if 
  not Car.IsDead(153@)
goto_if_false @COPCAR_16753
if and
  Car.IsUpsidedown(153@)
  Car.IsStopped(153@)
goto_if_false @COPCAR_16349
52@ = 1
if 
  Char.LocateAnyMeansCar2D($scplayer, 153@, 90.0, 90.0, False)
goto_if_false @COPCAR_16247
Car.SetUpsidedownNotDamaged(153@, False)
154@ = -9
goto @COPCAR_16349

:COPCAR_16247
if 
  not Car.IsOnScreen(153@)
goto_if_false @COPCAR_16349
$coord_c1_x, $coord_c1_y, $coord_c1_z = Car.GetCoordinates(153@)
$coord_c1_x, $coord_c1_y, $coord_c1_z, $heading = Path.GetClosestCarNodeWithHeading($coord_c1_x, $coord_c1_y, $coord_c1_z)
if 
  not Camera.IsPointOnScreen($coord_c1_x, $coord_c1_y, $coord_c1_z, 4.0)
goto_if_false @COPCAR_16349
Car.SetCoordinates(153@, $coord_c1_x, $coord_c1_y, $coord_c1_z)
Car.SetHeading(153@, $heading)

:COPCAR_16349
if 
  Car.Locate3D(153@, 150@, 151@, 152@, 4.0, 4.0, 4.0, False)
goto_if_false @COPCAR_16690
if 
  154@ == 0
goto_if_false @COPCAR_16424
set_lvar_int_to_lvar_int 155@ = 161@
154@ = 1

:COPCAR_16424
sub_int_lvar_from_int_lvar 161@ -= 155@
if 
  154@ == 1
goto_if_false @COPCAR_16690
if 
  161@ > 8000
goto_if_false @COPCAR_16690
if 
  Char.LocateAnyMeansCar2D($scplayer, 153@, 90.0, 90.0, False)
goto_if_false @COPCAR_16529
Car.SetUpsidedownNotDamaged(153@, False)
set_lvar_int_to_lvar_int 155@ = 161@
154@ = -9
goto @COPCAR_16690

:COPCAR_16529
if 
  not Car.IsOnScreen(153@)
goto_if_false @COPCAR_16690
$coord_c1_x, $coord_c1_y, $coord_c1_z = Car.GetCoordinates(153@)
$coord_c1_x, $coord_c1_y, $coord_c1_z, $heading = Path.GetClosestCarNodeWithHeading($coord_c1_x, $coord_c1_y, $coord_c1_z)
if 
  not World.IsPointObscuredByAMissionEntity($coord_c1_x, $coord_c1_y, $coord_c1_z, 4.0, 4.0, 4.0)
goto_if_false @COPCAR_16690
if 
  not Camera.IsPointOnScreen($coord_c1_x, $coord_c1_y, $coord_c1_z, 4.0)
goto_if_false @COPCAR_16690
Car.SetCoordinates(153@, $coord_c1_x, $coord_c1_y, $coord_c1_z)
Car.SetHeading(153@, $heading)
set_lvar_int_to_lvar_int 155@ = 161@
154@ = 0
52@ = 1

:COPCAR_16690
if 
  not Car.Locate3D(153@, 150@, 151@, 152@, 4.0, 4.0, 4.0, False)
goto_if_false @COPCAR_16753
150@, 151@, 152@ = Car.GetCoordinates(153@)
154@ = 0

:COPCAR_16753
return 

:COPCAR_16755
if 
  not Char.IsDead(36@)
goto_if_false @COPCAR_17198
if 
  Group.DoesExist(274@)
goto_if_false @COPCAR_17198
if 
  not Char.IsDead(37@)
goto_if_false @COPCAR_16912
if 
  not Char.IsGroupMember(37@, 274@)
goto_if_false @COPCAR_16905
if 
  Char.LocateAnyMeansChar2D(37@, 36@, 30.0, 30.0, False)
goto_if_false @COPCAR_16868
Group.SetMember(274@, 37@)
goto @COPCAR_16905

:COPCAR_16868
$task_status = Char.GetScriptTaskStatus(37@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_16905
Task.KillCharOnFoot(37@, $scplayer)

:COPCAR_16905
goto @COPCAR_16924

:COPCAR_16912
Char.MarkAsNoLongerNeeded(37@)
37@ = -1

:COPCAR_16924
if 
  not Char.IsDead(38@)
goto_if_false @COPCAR_17049
if 
  not Char.IsGroupMember(38@, 274@)
goto_if_false @COPCAR_17042
if 
  Char.LocateAnyMeansChar2D(38@, 36@, 30.0, 30.0, False)
goto_if_false @COPCAR_17005
Group.SetMember(274@, 38@)
goto @COPCAR_17042

:COPCAR_17005
$task_status = Char.GetScriptTaskStatus(38@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17042
Task.KillCharOnFoot(38@, $scplayer)

:COPCAR_17042
goto @COPCAR_17061

:COPCAR_17049
Char.MarkAsNoLongerNeeded(38@)
38@ = -1

:COPCAR_17061
if 
  not Char.IsDead(39@)
goto_if_false @COPCAR_17186
if 
  not Char.IsGroupMember(39@, 274@)
goto_if_false @COPCAR_17179
if 
  Char.LocateAnyMeansChar2D(39@, 36@, 30.0, 30.0, False)
goto_if_false @COPCAR_17142
Group.SetMember(274@, 39@)
goto @COPCAR_17179

:COPCAR_17142
$task_status = Char.GetScriptTaskStatus(39@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17179
Task.KillCharOnFoot(39@, $scplayer)

:COPCAR_17179
goto @COPCAR_17198

:COPCAR_17186
Char.MarkAsNoLongerNeeded(39@)
39@ = -1

:COPCAR_17198
return 

:COPCAR_17200
if 
  not Char.IsDead(41@)
goto_if_false @COPCAR_17643
if 
  Group.DoesExist(275@)
goto_if_false @COPCAR_17643
if 
  not Char.IsDead(42@)
goto_if_false @COPCAR_17357
if 
  not Char.IsGroupMember(42@, 275@)
goto_if_false @COPCAR_17350
if 
  Char.LocateAnyMeansChar2D(42@, 41@, 30.0, 30.0, False)
goto_if_false @COPCAR_17313
Group.SetMember(275@, 42@)
goto @COPCAR_17350

:COPCAR_17313
$task_status = Char.GetScriptTaskStatus(42@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17350
Task.KillCharOnFoot(42@, $scplayer)

:COPCAR_17350
goto @COPCAR_17369

:COPCAR_17357
Char.MarkAsNoLongerNeeded(42@)
42@ = -1

:COPCAR_17369
if 
  not Char.IsDead(43@)
goto_if_false @COPCAR_17494
if 
  not Char.IsGroupMember(43@, 275@)
goto_if_false @COPCAR_17487
if 
  Char.LocateAnyMeansChar2D(43@, 41@, 30.0, 30.0, False)
goto_if_false @COPCAR_17450
Group.SetMember(275@, 43@)
goto @COPCAR_17487

:COPCAR_17450
$task_status = Char.GetScriptTaskStatus(43@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17487
Task.KillCharOnFoot(43@, $scplayer)

:COPCAR_17487
goto @COPCAR_17506

:COPCAR_17494
Char.MarkAsNoLongerNeeded(43@)
43@ = -1

:COPCAR_17506
if 
  not Char.IsDead(44@)
goto_if_false @COPCAR_17631
if 
  not Char.IsGroupMember(44@, 275@)
goto_if_false @COPCAR_17624
if 
  Char.LocateAnyMeansChar2D(44@, 41@, 30.0, 30.0, False)
goto_if_false @COPCAR_17587
Group.SetMember(275@, 44@)
goto @COPCAR_17624

:COPCAR_17587
$task_status = Char.GetScriptTaskStatus(44@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17624
Task.KillCharOnFoot(44@, $scplayer)

:COPCAR_17624
goto @COPCAR_17643

:COPCAR_17631
Char.MarkAsNoLongerNeeded(44@)
44@ = -1

:COPCAR_17643
return 

:COPCAR_17645
if 
  not Char.IsDead(46@)
goto_if_false @COPCAR_18088
if 
  Group.DoesExist(276@)
goto_if_false @COPCAR_18088
if 
  not Char.IsDead(47@)
goto_if_false @COPCAR_17802
if 
  not Char.IsGroupMember(47@, 276@)
goto_if_false @COPCAR_17795
if 
  Char.LocateAnyMeansChar2D(47@, 46@, 30.0, 30.0, False)
goto_if_false @COPCAR_17758
Group.SetMember(276@, 47@)
goto @COPCAR_17795

:COPCAR_17758
$task_status = Char.GetScriptTaskStatus(47@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17795
Task.KillCharOnFoot(47@, $scplayer)

:COPCAR_17795
goto @COPCAR_17814

:COPCAR_17802
Char.MarkAsNoLongerNeeded(47@)
47@ = -1

:COPCAR_17814
if 
  not Char.IsDead(48@)
goto_if_false @COPCAR_17939
if 
  not Char.IsGroupMember(48@, 276@)
goto_if_false @COPCAR_17932
if 
  Char.LocateAnyMeansChar2D(48@, 46@, 30.0, 30.0, False)
goto_if_false @COPCAR_17895
Group.SetMember(276@, 48@)
goto @COPCAR_17932

:COPCAR_17895
$task_status = Char.GetScriptTaskStatus(48@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17932
Task.KillCharOnFoot(48@, $scplayer)

:COPCAR_17932
goto @COPCAR_17951

:COPCAR_17939
Char.MarkAsNoLongerNeeded(48@)
48@ = -1

:COPCAR_17951
if 
  not Char.IsDead(49@)
goto_if_false @COPCAR_18076
if 
  not Char.IsGroupMember(49@, 276@)
goto_if_false @COPCAR_18069
if 
  Char.LocateAnyMeansChar2D(49@, 46@, 30.0, 30.0, False)
goto_if_false @COPCAR_18032
Group.SetMember(276@, 49@)
goto @COPCAR_18069

:COPCAR_18032
$task_status = Char.GetScriptTaskStatus(49@, 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_18069
Task.KillCharOnFoot(49@, $scplayer)

:COPCAR_18069
goto @COPCAR_18088

:COPCAR_18076
Char.MarkAsNoLongerNeeded(49@)
49@ = -1

:COPCAR_18088
return 

:COPCAR_18090
Char.SetDecisionMaker(50@, 267@)
Char.SetIsChrisCriminal(50@, True)
Char.SetOnlyDamagedByPlayer(50@, True)
Char.SetForceDieInCar(50@, True)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Player1)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.CivMale)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.CivFemale)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Cop)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Gang1)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Gang2)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Gang8)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Gang3)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Gang5)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Gang7)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Gang6)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Dealer)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Emergency)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Fireman)
Char.SetRelationship(50@, RelationshipType.Hate, PedType.Bum)
if 
  51@ == 0
goto_if_false @COPCAR_18281
159@ = Math.RandomIntInRange(0, 2)

:COPCAR_18281
if 
  51@ > 1
goto_if_false @COPCAR_18308
159@ = Math.RandomIntInRange(0, 3)

:COPCAR_18308
if 
  51@ > 4
goto_if_false @COPCAR_18335
159@ = Math.RandomIntInRange(0, 4)

:COPCAR_18335
if 
  51@ > 6
goto_if_false @COPCAR_18362
159@ = Math.RandomIntInRange(0, 5)

:COPCAR_18362
if 
  51@ > 8
goto_if_false @COPCAR_18389
159@ = Math.RandomIntInRange(0, 6)

:COPCAR_18389
if 
  159@ == 0
goto_if_false @COPCAR_18472
159@ = Math.RandomIntInRange(10, 13)
if 
  159@ == 10
goto_if_false @COPCAR_18444
Char.GiveWeapon(50@, WeaponType.BaseballBat, 9999)

:COPCAR_18444
if 
  159@ == 11
goto_if_false @COPCAR_18472
Char.GiveWeapon(50@, WeaponType.BaseballBat, 9999)

:COPCAR_18472
if 
  159@ == 1
goto_if_false @COPCAR_18500
Char.GiveWeapon(50@, WeaponType.Pistol, 9999)

:COPCAR_18500
if 
  159@ == 2
goto_if_false @COPCAR_18528
Char.GiveWeapon(50@, WeaponType.MicroUzi, 9999)

:COPCAR_18528
if 
  159@ == 3
goto_if_false @COPCAR_18556
Char.GiveWeapon(50@, WeaponType.Ak47, 9999)

:COPCAR_18556
if or
  159@ == 4
  159@ == 5
goto_if_false @COPCAR_18591
Char.GiveWeapon(50@, WeaponType.Shotgun, 9999)

:COPCAR_18591
return 

:COPCAR_18593
if 
  $car_numer_flag <> -100
goto_if_false @COPCAR_18670
if 
  1 > $car_numer_flag
goto_if_false @COPCAR_18670
58@ = 1
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Text.PrintNow('C_TIME', 3000, 1)
return 

:COPCAR_18670
if and
  //not Char.IsInAnyPoliceVehicle($scplayer)
  //not Char.IsInModel($scplayer, 425)
goto_if_false @COPCAR_19008
Hud.FreezeTimer(False)
if 
  57@ == 0
goto_if_false @COPCAR_18774
53@ = Clock.GetGameTimer()
if 
  $car_numer_flag > 60000
goto_if_false @COPCAR_18759
56@ = 60000
goto @COPCAR_18767

:COPCAR_18759
set_lvar_int_to_var_int 56@ = $car_numer_flag

:COPCAR_18767
57@ = 1

:COPCAR_18774
59@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 60@ = 59@
sub_int_lvar_from_int_lvar 60@ -= 53@
sub_int_lvar_from_int_lvar 56@ -= 60@
set_lvar_int_to_lvar_int 53@ = 59@
set_lvar_int_to_lvar_int 61@ = 56@
61@ /= 1000
if 
  1 > 61@
goto_if_false @COPCAR_18903
61@ = 0
if 
  is_int_lvar_greater_than_int_lvar 59@ > 91@
goto_if_false @COPCAR_18896
Text.PrintNow('C_TIME', 3000, 1)
58@ = 1
return 

:COPCAR_18896
goto @COPCAR_18919

:COPCAR_18903
set_lvar_int_to_lvar_int 91@ = 59@
91@ += 1000

:COPCAR_18919
if 
  61@ > -1
goto_if_false @COPCAR_19008
if 
  61@ == 1
goto_if_false @COPCAR_18985
Text.AddNextMessageToPreviousBriefs(False)
Text.PrintWithNumberNow('COPCA_T', 61@, 200, 1)
goto @COPCAR_19008

:COPCAR_18985
Text.AddNextMessageToPreviousBriefs(False)
Text.PrintWithNumberNow('COPCART', 61@, 200, 1)

:COPCAR_19008
$controlmode = Pad.GetControllerMode()
if or
  Char.IsInAnyPoliceVehicle($scplayer)
  Char.IsInModel($scplayer, 425)
goto_if_false @COPCAR_19232
34@ = Char.StoreCarIsInNoSave($scplayer)
Car.SetCanBurstTires(34@, False)
if 
  $controlmode <> 3
goto_if_false @COPCAR_19151
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @COPCAR_19119
if 
  62@ == 1
goto_if_false @COPCAR_19112
62@ = 2

:COPCAR_19112
goto @COPCAR_19144

:COPCAR_19119
if 
  62@ == 0
goto_if_false @COPCAR_19144
62@ = 1

:COPCAR_19144
goto @COPCAR_19225

:COPCAR_19151
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @COPCAR_19200
if 
  62@ == 1
goto_if_false @COPCAR_19193
62@ = 2

:COPCAR_19193
goto @COPCAR_19225

:COPCAR_19200
if 
  62@ == 0
goto_if_false @COPCAR_19225
62@ = 1

:COPCAR_19225
57@ = 0

:COPCAR_19232
if 
  62@ == 2
goto_if_false @COPCAR_19359
if 
  $controlmode <> 3
goto_if_false @COPCAR_19317
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @COPCAR_19310
Text.PrintNow('C_CANC', 3000, 1)
58@ = 1
return 

:COPCAR_19310
goto @COPCAR_19359

:COPCAR_19317
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @COPCAR_19359
Text.PrintNow('C_CANC', 3000, 1)
58@ = 1
return 

:COPCAR_19359
return 

//-------------Mission 125---------------
// Originally: Burglary Sub-Mission

:BURGJB
script_name 'BURGJB'
gosub @BURGJB_65
if 
  has_deatharrest_been_executed 
goto_if_false @BURGJB_38
gosub @BURGJB_8318

:BURGJB_38
gosub @BURGJB_8430
terminate_this_script 
if 
  $done_burglary_progress == 0
goto_if_false @BURGJB_65

:BURGJB_65
$onmission = 1
Stat.RegisterMissionGiven
wait 0
Camera.SetFadingColor(0, 0, 0)
Text.LoadMissionText('BURGLAR')
Game.EnableBurglaryHouses(True)
92@ = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
97@ = 0
101@ = 0
98@ = 0
99@ = 0
100@ = 0
103@ = 0
102@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
112@ = 0
47@ = 0
$copcar_print_level = 0
90@ = 0
89@ = 0
106@ = 0
$burglary_time_to_daylight = 10
$burglary_time_to_get_out = 300000
91@ = 0
105@ = 0
41@ = 0.0
$burglary_noise = 0.0
42@ = 9999999.0
43@ = 9999999.0
54@ = 2741.0
57@ = -2006.807
60@ = 14.0
set_var_text_label s$burglary_session_made[0] = 'BURG_LK'
76@ = 2741.241
79@ = -2011.274
82@ = 13.5869
55@ = -2096.54
58@ = -15.5931
61@ = 34.3203
set_var_text_label s$burglary_session_made[1] = 'BRGSFSE'
77@ = -2109.32
80@ = -15.7967
83@ = 34.3203
56@ = 2609.248
59@ = 1435.347
62@ = 9.8203
set_var_text_label s$burglary_session_made[2] = 'VGELOCK'
78@ = 2609.012
81@ = 1445.936
84@ = 9.8203
34@ = 0
48@ = 0
$burglary_player_spotted = 0
111@ = 0
$g_VB_BIG_LIFT = 0
$disable_mod_garage = 1
38@ = Player.StoreScore($player1)
39@ = Player.StoreScore($player1)
if 
  48@ == 99
goto_if_false @BURGJB_687
49@ = Object.Create(#BRIEFCASE, 0.0, 0.0, 0.0)
51@ = Blip.AddForCoord(0.0, 0.0, 0.0)
53@ = Blip.AddForCoord(0.0, 0.0, 0.0)

:BURGJB_687
if 
  not Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @BURGJB_820
Text.DrawOddjobTitleBeforeFade(False)
Camera.DoFade(1000, Fade.Out)

:BURGJB_727
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_751
wait 0
goto @BURGJB_727

:BURGJB_751
//Player.GiveClothesOutsideShop($player1, "BALACLAVA", "BALACLAVA", BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:BURGJB_792
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_816
wait 0
goto @BURGJB_792

:BURGJB_816
Text.DrawOddjobTitleBeforeFade(True)

:BURGJB_820
$hours, $minutes = Clock.GetTimeOfDay()
if 
  $hours >= 20
goto_if_false @BURGJB_909
set_lvar_int_to_var_int 88@ = $hours
88@ *= 60
add_int_var_to_int_lvar 88@ += $minutes
36@ = 1440
sub_int_lvar_from_int_lvar 36@ -= 88@
36@ += 360
36@ *= 1000
set_var_int_to_lvar_int $8234 = 36@

:BURGJB_909
if 
  6 > $hours
goto_if_false @BURGJB_982
set_lvar_int_to_var_int 88@ = $hours
88@ *= 60
add_int_var_to_int_lvar 88@ += $minutes
36@ = 360
sub_int_lvar_from_int_lvar 36@ -= 88@
36@ *= 1000
set_var_int_to_lvar_int $8234 = 36@

:BURGJB_982
Hud.DisplayTimerWithString($8234, TimerDirection.Down, 'BURG52')
Hud.DisplayNthCounterWithString($copcar_print_level, CounterDisplay.Number, 1, 'BURG51')
wait 0
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BURGJB_1044
50@ = Char.StoreCarIsIn($scplayer)

:BURGJB_1044
wait 0
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @BURGJB_1073
$8234 = 10000000

:BURGJB_1073
if 
is_ps2_keyboard_key_pressed 30
goto_if_false @BURGJB_1118
Char.SetCoordinates($scplayer, 2741.928, -1993.231, 12.3669)
Char.SetHeading($scplayer, 173.5173)

:BURGJB_1118
if 
is_ps2_keyboard_key_pressed 31
goto_if_false @BURGJB_1153
Char.SetCoordinates($scplayer, 2639.0, 2039.911, 9.8052)

:BURGJB_1153
if 
is_ps2_keyboard_key_pressed 42
goto_if_false @BURGJB_1176
$8234 = 5000

:BURGJB_1176
if 
is_ps2_keyboard_key_pressed 39
goto_if_false @BURGJB_1199
$burglary_time_to_get_out = 5000

:BURGJB_1199
if 
is_ps2_keyboard_key_pressed 34
goto_if_false @BURGJB_1222
$burglary_total_made = 11000

:BURGJB_1222
if 
is_ps2_keyboard_key_pressed 35
goto_if_false @BURGJB_1244
48@ = 3

:BURGJB_1244
if 
  110@ == 0
goto_if_false @BURGJB_2153
if 
  $8234 == 0
goto_if_false @BURGJB_1970
Text.ClearPrints
Game.EnableBurglaryHouses(False)
if 
  92@ == 1
goto_if_false @BURGJB_1570
Player.SetControl($player1, False)
Camera.DoFade(1000, Fade.Out)

:BURGJB_1318
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_1342
wait 0
goto @BURGJB_1318

:BURGJB_1342
Text.ClearHelp
Streaming.SetAreaVisible(0)
Streaming.RequestCollision(69@, 70@)
Streaming.LoadScene(69@, 70@, 71@)
Char.SetCoordinatesNoOffset($scplayer, 69@, 70@, 71@)
Char.ShutUp($scplayer, False)
72@ += 180.0
Char.SetHeading($scplayer, 72@)
Char.SetHasUsedEntryExit($scplayer, 73@, 74@, 5.0)
Streaming.LoadScene(69@, 70@, 71@)
if 
  48@ == 0
goto_if_false @BURGJB_1496
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @BURGJB_1496
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)

:BURGJB_1496
92@ = 0
93@ = 0
if 
  not Game.IsMinigameInProgress
goto_if_false @BURGJB_1525
Camera.RestoreJumpcut

:BURGJB_1525
Camera.DoFade(1000, Fade.In)

:BURGJB_1532
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_1556
wait 0
goto @BURGJB_1532

:BURGJB_1556
Player.SetControl($player1, True)
goto @BURGJB_1733

:BURGJB_1570
if 
  48@ == 0
goto_if_false @BURGJB_1733
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @BURGJB_1733
if 
  Player.IsControlOn($player1)
goto_if_false @BURGJB_1640
Player.SetControl($player1, False)

:BURGJB_1640
Camera.DoFade(1000, Fade.Out)

:BURGJB_1647
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_1671
wait 0
goto @BURGJB_1647

:BURGJB_1671
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
if 
  not Game.IsMinigameInProgress
goto_if_false @BURGJB_1702
Camera.RestoreJumpcut

:BURGJB_1702
Camera.DoFade(1000, Fade.In)

:BURGJB_1709
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_1733
wait 0
goto @BURGJB_1709

:BURGJB_1733
Hud.ClearTimer($8234)
if 
  48@ > 0
goto_if_false @BURGJB_1916
Hud.DisplayTimerWithString($burglary_time_to_get_out, TimerDirection.Down, 'BURG3')
Text.ClearPrints
Text.Print('BURG2', 5000, 1)
if 
  93@ == 1
goto_if_false @BURGJB_1838
Text.Print('BURG26', 5000, 1)
102@ = 2
goto @BURGJB_1909

:BURGJB_1838
if 
  94@ == 1
goto_if_false @BURGJB_1886
Text.Print('BURG27', 5000, 1)
102@ = 1
goto @BURGJB_1909

:BURGJB_1886
Text.Print('BURG1', 5000, 1)
102@ = 3

:BURGJB_1909
goto @BURGJB_1956

:BURGJB_1916
$burglary_time_to_get_out = 0
Object.Delete(49@)
Object.MarkAsNoLongerNeeded(49@)
Text.Print('BURG53', 5000, 1)
goto @BURGJB_8318

:BURGJB_1956
110@ = 1
goto @BURGJB_2146

:BURGJB_1970
$hours, $minutes = Clock.GetTimeOfDay()
if 
  $hours >= 20
goto_if_false @BURGJB_2066
set_lvar_int_to_var_int 88@ = $hours
88@ *= 60
add_int_var_to_int_lvar 88@ += $minutes
36@ = 1440
sub_int_lvar_from_int_lvar 36@ -= 88@
36@ += 360
36@ += 1
36@ *= 1000
set_var_int_to_lvar_int $8234 = 36@

:BURGJB_2066
if 
  6 > $hours
goto_if_false @BURGJB_2146
set_lvar_int_to_var_int 88@ = $hours
88@ *= 60
add_int_var_to_int_lvar 88@ += $minutes
36@ = 360
sub_int_lvar_from_int_lvar 36@ -= 88@
36@ += 1
36@ *= 1000
set_var_int_to_lvar_int $8234 = 36@

:BURGJB_2146
goto @BURGJB_2351

:BURGJB_2153
if 
  $burglary_time_to_get_out == 0
goto_if_false @BURGJB_2351
Text.ClearPrints
if 
  Player.IsControlOn($player1)
goto_if_false @BURGJB_2196
Player.SetControl($player1, False)

:BURGJB_2196
Camera.DoFade(1000, Fade.Out)

:BURGJB_2203
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_2227
wait 0
goto @BURGJB_2203

:BURGJB_2227
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @BURGJB_2272
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)

:BURGJB_2272
if 
  not Game.IsMinigameInProgress
goto_if_false @BURGJB_2287
Camera.RestoreJumpcut

:BURGJB_2287
Camera.DoFade(1000, Fade.In)

:BURGJB_2294
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_2318
wait 0
goto @BURGJB_2294

:BURGJB_2318
Text.Print('BURG53', 5000, 1)
Object.Delete(49@)
Object.MarkAsNoLongerNeeded(49@)
goto @BURGJB_8318

:BURGJB_2351
if 
  95@ == 0
goto_if_false @BURGJB_7818
gosub @BURGJB_7939
37@ = Streaming.GetAreaVisible()
if 
  37@ == 0
goto_if_false @BURGJB_2451
if 
  //not Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @BURGJB_2451
Text.Print('BURG62', 5000, 1)
goto @BURGJB_8318

:BURGJB_2451
if 
  93@ == 1
goto_if_false @BURGJB_2694
if and
  Player.IsWantedLevelGreater($player1, 0)
  48@ > 0
goto_if_false @BURGJB_2544
if 
  102@ <> 5
goto_if_false @BURGJB_2537
Text.ClearPrints
Text.Print('BURG50', 5000, 1)
102@ = 5

:BURGJB_2537
goto @BURGJB_2687

:BURGJB_2544
if 
  102@ <> 2
goto_if_false @BURGJB_2687
Text.ClearPrints
if 
  48@ > 0
goto_if_false @BURGJB_2646
if 
  110@ == 0
goto_if_false @BURGJB_2623
Text.Print('BURG4', 5000, 1)
goto @BURGJB_2639

:BURGJB_2623
Text.Print('BURG26', 5000, 1)

:BURGJB_2639
goto @BURGJB_2680

:BURGJB_2646
if 
  110@ == 0
goto_if_false @BURGJB_2680
Text.Print('BURG29', 5000, 1)

:BURGJB_2680
102@ = 2

:BURGJB_2687
goto @BURGJB_3084

:BURGJB_2694
if 
  110@ == 0
goto_if_false @BURGJB_2957
if 
  94@ == 1
goto_if_false @BURGJB_2798
if 
  102@ <> 1
goto_if_false @BURGJB_2791
if 
  92@ == 0
goto_if_false @BURGJB_2791
Text.ClearPrints
Text.Print('BURG27', 5000, 1)
102@ = 1

:BURGJB_2791
goto @BURGJB_2950

:BURGJB_2798
if 
  92@ == 1
goto_if_false @BURGJB_2866
if 
  102@ <> 4
goto_if_false @BURGJB_2859
Text.ClearPrints
Text.Print('BURG30', 5000, 1)
102@ = 4

:BURGJB_2859
goto @BURGJB_2950

:BURGJB_2866
if 
  102@ <> 3
goto_if_false @BURGJB_2950
Text.ClearPrints
if 
  48@ == 0
goto_if_false @BURGJB_2927
Text.Print('BURG29', 5000, 1)
goto @BURGJB_2943

:BURGJB_2927
Text.Print('BURG31', 5000, 1)

:BURGJB_2943
102@ = 3

:BURGJB_2950
goto @BURGJB_3084

:BURGJB_2957
if 
  94@ == 1
goto_if_false @BURGJB_3043
if 
  102@ <> 1
goto_if_false @BURGJB_3036
if 
  92@ == 0
goto_if_false @BURGJB_3036
Text.ClearPrints
Text.Print('BURG27', 5000, 1)
102@ = 1

:BURGJB_3036
goto @BURGJB_3084

:BURGJB_3043
if 
  102@ <> 3
goto_if_false @BURGJB_3084
Text.Print('BURG1', 5000, 1)
102@ = 3

:BURGJB_3084
if 
  not Car.IsDead(50@)
goto_if_false @BURGJB_7667
if 
  92@ == 0
goto_if_false @BURGJB_3396
if 
  not Char.IsInCar($scplayer, 50@)
goto_if_false @BURGJB_3228
93@ = 0
if 
  99@ == 1
goto_if_false @BURGJB_3174
Blip.Remove(51@)
99@ = 0

:BURGJB_3174
if 
  97@ == 0
goto_if_false @BURGJB_3221
52@ = Blip.AddForCar(50@)
Blip.ChangeDisplay(52@, BlipDisplay.BlipOnly)
Blip.SetAsFriendly(52@, True)
97@ = 1

:BURGJB_3221
goto @BURGJB_3396

:BURGJB_3228
93@ = 1
if 
  97@ == 1
goto_if_false @BURGJB_3272
108@ = 0
Blip.Remove(52@)
97@ = 0

:BURGJB_3272
if 
  48@ > 0
goto_if_false @BURGJB_3396
if 
  Player.IsWantedLevelGreater($player1, 0)
goto_if_false @BURGJB_3345
if 
  99@ == 1
goto_if_false @BURGJB_3338
Blip.Remove(51@)
99@ = 0

:BURGJB_3338
goto @BURGJB_3396

:BURGJB_3345
if 
  99@ == 0
goto_if_false @BURGJB_3396
51@ = Blip.AddForCoord(54@(35@,3f), 57@(35@,3f), 60@(35@,3f))
99@ = 1

:BURGJB_3396
if 
  108@ == 0
goto_if_false @BURGJB_3848
$Return_cities_passed = Stat.GetInt(StatId.CitiesPassed)
if 
  $Return_cities_passed == 0
goto_if_false @BURGJB_3454
35@ = 0
goto @BURGJB_3830

:BURGJB_3454
if 
  $Return_cities_passed == 1
goto_if_false @BURGJB_3626
63@, 64@, 65@ = Char.GetCoordinates($scplayer)
35@ = World.GetCityFromCoords(63@, 64@, 65@)
if 
  35@ > 0
goto_if_false @BURGJB_3532
35@ -= 1
goto @BURGJB_3619

:BURGJB_3532
42@ = Math.GetDistanceBetweenCoords3D(63@, 64@, 65@, 54@, 57@, 60@)
35@ = 0
set_lvar_float_to_lvar_float 43@ = 42@
42@ = Math.GetDistanceBetweenCoords3D(63@, 64@, 65@, 55@, 58@, 61@)
if 
  is_float_lvar_greater_than_float_lvar 43@ > 42@
goto_if_false @BURGJB_3619
35@ = 1

:BURGJB_3619
goto @BURGJB_3830

:BURGJB_3626
63@, 64@, 65@ = Char.GetCoordinates($scplayer)
35@ = World.GetCityFromCoords(63@, 64@, 65@)
if 
  35@ > 0
goto_if_false @BURGJB_3686
35@ -= 1
goto @BURGJB_3830

:BURGJB_3686
42@ = Math.GetDistanceBetweenCoords3D(63@, 64@, 65@, 54@, 57@, 60@)
35@ = 0
set_lvar_float_to_lvar_float 43@ = 42@
42@ = Math.GetDistanceBetweenCoords3D(63@, 64@, 65@, 55@, 58@, 61@)
if 
  is_float_lvar_greater_than_float_lvar 43@ > 42@
goto_if_false @BURGJB_3781
35@ = 1
set_lvar_float_to_lvar_float 43@ = 42@

:BURGJB_3781
42@ = Math.GetDistanceBetweenCoords3D(63@, 64@, 65@, 56@, 59@, 62@)
if 
  is_float_lvar_greater_than_float_lvar 43@ > 42@
goto_if_false @BURGJB_3830
35@ = 2

:BURGJB_3830
Garage.ChangeType($burglary_session_made(35@,3s), GarageType.ForScriptToOpenAndClose)
108@ = 1

:BURGJB_3848
if 
  not Car.IsDead(50@)
goto_if_false @BURGJB_5295
if or
  Char.LocateAnyMeans3D($scplayer, 54@(35@,3f), 57@(35@,3f), 60@(35@,3f), 15.0, 15.0, 4.0, False)
  Car.Locate3D(50@, 54@(35@,3f), 57@(35@,3f), 60@(35@,3f), 15.0, 15.0, 4.0, False)
goto_if_false @BURGJB_5266
if 
  not Garage.IsOpen($burglary_session_made(35@,3s))
goto_if_false @BURGJB_3990
Garage.Open($burglary_session_made(35@,3s))

:BURGJB_3990
if 
  108@ == 1
goto_if_false @BURGJB_5259
if 
  93@ == 1
goto_if_false @BURGJB_5259
if 
  48@ > 0
goto_if_false @BURGJB_5259
if 
  Player.IsWantedLevelGreater($player1, 0)
goto_if_false @BURGJB_4117
if 
  99@ == 1
goto_if_false @BURGJB_4110
Text.ClearPrints
Text.Print('BURG50', 5000, 1)
Blip.Remove(51@)
99@ = 0

:BURGJB_4110
goto @BURGJB_5259

:BURGJB_4117
if 
  99@ == 0
goto_if_false @BURGJB_4193
Text.ClearPrints
Text.Print('BURG26', 5000, 1)
51@ = Blip.AddForCoord(54@(35@,3f), 57@(35@,3f), 60@(35@,3f))
99@ = 1
goto @BURGJB_5259

:BURGJB_4193
Text.Print('BURG40', 1000, 1)
if 
  Char.LocateInCar3D($scplayer, 76@(35@,3f), 79@(35@,3f), 82@(35@,3f), 2.9, 3.2, 5.0, True)
goto_if_false @BURGJB_5259
Player.SetControl($player1, False)
Game.SetPoliceIgnorePlayer($player1, True)
Text.ClearPrints
World.ClearArea(76@(35@,3f), 79@(35@,3f), 82@(35@,3f), 10.0, True)
if 
  110@ == 1
goto_if_false @BURGJB_4342
Hud.ClearTimer($burglary_time_to_get_out)
$burglary_time_to_get_out = 999999

:BURGJB_4342
if 
  not Garage.IsClosed($burglary_session_made(35@,3s))
goto_if_false @BURGJB_4371
Garage.Close($burglary_session_made(35@,3s))

:BURGJB_4371
104@ = 0

:BURGJB_4378
if 
  104@ == 0
goto_if_false @BURGJB_4434
wait 0
if 
  Garage.IsClosed($burglary_session_made(35@,3s))
goto_if_false @BURGJB_4427
104@ = 1

:BURGJB_4427
goto @BURGJB_4378

:BURGJB_4434
Blip.Remove(51@)
set_lvar_int_to_lvar_int 34@ = 48@
34@ *= 20
mult_int_lvar_by_int_lvar 34@ *= 48@
add_int_lvar_to_int_var $burglary_total_items += 48@
add_int_lvar_to_int_var $burglary_total_made += 34@
cset_lvar_float_to_var_int 45@ =# $burglary_total_made
cset_lvar_float_to_lvar_int 46@ =# 34@
add_int_lvar_to_int_lvar 47@ += 48@
add_int_lvar_to_int_var $copcar_print_level += 34@
Stat.RegisterFloat(StatId.LargestBurglarySwag, 46@)
Stat.IncrementFloat(StatId.MoneyMadeBurglary, 46@)
Stat.IncrementInt(StatId.StolenItemsSold, 48@)
if 
  110@ == 1
goto_if_false @BURGJB_4700
if 
  Player.IsControlOn($player1)
goto_if_false @BURGJB_4573
Player.SetControl($player1, False)

:BURGJB_4573
Camera.DoFade(1000, Fade.Out)

:BURGJB_4580
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_4604
wait 0
goto @BURGJB_4580

:BURGJB_4604
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @BURGJB_4649
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)

:BURGJB_4649
if 
  not Game.IsMinigameInProgress
goto_if_false @BURGJB_4662

:BURGJB_4662
Camera.DoFade(1000, Fade.In)

:BURGJB_4669
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_4693
wait 0
goto @BURGJB_4669

:BURGJB_4693
goto @BURGJB_4869

:BURGJB_4700
if and
  $burglary_total_made >= 10000
  $done_burglary_progress == 0
goto_if_false @BURGJB_4869
if 
  Player.IsControlOn($player1)
goto_if_false @BURGJB_4749
Player.SetControl($player1, False)

:BURGJB_4749
Camera.DoFade(1000, Fade.Out)

:BURGJB_4756
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_4780
wait 0
goto @BURGJB_4756

:BURGJB_4780
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @BURGJB_4825
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)

:BURGJB_4825
if 
  not Game.IsMinigameInProgress
goto_if_false @BURGJB_4838

:BURGJB_4838
Camera.DoFade(1000, Fade.In)

:BURGJB_4845
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_4869
wait 0
goto @BURGJB_4845

:BURGJB_4869
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
if 
  2 > 48@
goto_if_false @BURGJB_4936
Text.PrintWith2NumbersBig('BURG39', 48@, 34@, 5000, TextStyle.WhiteMiddleSmaller)
goto @BURGJB_4958

:BURGJB_4936
Text.PrintWith2NumbersBig('BURG36', 48@, 34@, 5000, TextStyle.WhiteMiddleSmaller)

:BURGJB_4958
Player.AddScore($player1, 34@)
TIMERA = 0

:BURGJB_4973
if or
  Text.IsMessageBeingDisplayed
  4000 > TIMERA
goto_if_false @BURGJB_5005
wait 0
goto @BURGJB_4973

:BURGJB_5005
if 
  not Garage.IsOpen($burglary_session_made(35@,3s))
goto_if_false @BURGJB_5034
Garage.Open($burglary_session_made(35@,3s))

:BURGJB_5034
104@ = 0

:BURGJB_5041
if 
  104@ == 0
goto_if_false @BURGJB_5097
wait 0
if 
  Garage.IsOpen($burglary_session_made(35@,3s))
goto_if_false @BURGJB_5090
104@ = 1

:BURGJB_5090
goto @BURGJB_5041

:BURGJB_5097
if and
  $burglary_total_made >= 10000
  $done_burglary_progress == 0
goto_if_false @BURGJB_5151
Player.SetControl($player1, True)
Game.SetPoliceIgnorePlayer($player1, False)
goto @BURGJB_8358
goto @BURGJB_5213

:BURGJB_5151
if 
  110@ == 0
goto_if_false @BURGJB_5185
Text.Print('BURG29', 5000, 1)

:BURGJB_5185
99@ = 0
34@ = 0
48@ = 0
105@ = 0

:BURGJB_5213
Player.SetControl($player1, True)
Game.SetPoliceIgnorePlayer($player1, False)
if 
  110@ == 1
goto_if_false @BURGJB_5259
goto @BURGJB_8318
$burglary_time_to_get_out = 0

:BURGJB_5259
goto @BURGJB_5295

:BURGJB_5266
if 
  not Garage.IsClosed($burglary_session_made(35@,3s))
goto_if_false @BURGJB_5295
Garage.Close($burglary_session_made(35@,3s))

:BURGJB_5295
if 
  93@ == 0
goto_if_false @BURGJB_5730
if 
  Game.IsProceduralInteriorActive(0)
goto_if_false @BURGJB_5470
if 
  107@ == 0
goto_if_false @BURGJB_5456
69@, 70@, 71@, 72@ = Char.GetPositionOfEntryExitCharUsed($scplayer)
73@, 74@, 75@ = Char.GetCoordinates($scplayer)
if 
  Object.DoesExist(49@)
goto_if_false @BURGJB_5425
if 
  Char.IsHoldingObject($scplayer, 49@)
goto_if_false @BURGJB_5425
37@ = Streaming.GetAreaVisible()
Object.SetAreaVisible(49@, 37@)

:BURGJB_5425
Blip.Remove(52@)
Char.ShutUp($scplayer, True)
Hud.SetRadarZoom(90)
39@ = Player.StoreScore($player1)
107@ = 1

:BURGJB_5456
92@ = 1
goto @BURGJB_5730

:BURGJB_5470
if 
  107@ == 1
goto_if_false @BURGJB_5723
Char.ShutUp($scplayer, False)
if 
  Object.DoesExist(49@)
goto_if_false @BURGJB_5543
if 
  Char.IsHoldingObject($scplayer, 49@)
goto_if_false @BURGJB_5543
37@ = Streaming.GetAreaVisible()
Object.SetAreaVisible(49@, 37@)

:BURGJB_5543
if 
  not Car.IsDead(50@)
goto_if_false @BURGJB_5574
52@ = Blip.AddForCar(50@)
Blip.SetAsFriendly(52@, True)

:BURGJB_5574
Hud.SetRadarZoom(0)
107@ = 0
if 
  94@ == 1
goto_if_false @BURGJB_5723
112@ = 1
if 
  is_float_lvar_equal_to_float_lvar 85@ == 69@
goto_if_false @BURGJB_5674
if 
  is_float_lvar_equal_to_float_lvar 86@ == 70@
goto_if_false @BURGJB_5674
if 
  is_float_lvar_equal_to_float_lvar 87@ == 71@
goto_if_false @BURGJB_5674
112@ = 0

:BURGJB_5674
if 
  112@ == 1
goto_if_false @BURGJB_5723
set_lvar_float_to_lvar_float 85@ = 69@
set_lvar_float_to_lvar_float 86@ = 70@
set_lvar_float_to_lvar_float 87@ = 71@
Stat.IncrementInt(StatId.HousesBurgled, 1)

:BURGJB_5723
92@ = 0

:BURGJB_5730
if 
  93@ == 0
goto_if_false @BURGJB_6492
if 
  92@ == 0
goto_if_false @BURGJB_6492
if 
  94@ == 0
goto_if_false @BURGJB_6008
63@, 64@, 65@ = Char.GetCoordinates($scplayer)
49@ = World.GetClosestStealableObject(63@, 64@, 65@, 5.0)
if 
  49@ <> -1
goto_if_false @BURGJB_6001
if 
  Char.IsHoldingObject($scplayer, 49@)
goto_if_false @BURGJB_5895
if 
  100@ == 1
goto_if_false @BURGJB_5881
Text.ClearHelp
100@ = 0

:BURGJB_5881
94@ = 1
goto @BURGJB_6001

:BURGJB_5895
if 
  Char.LocateOnFootObject3D($scplayer, 49@, 1.7, 1.7, 2.0, False)
goto_if_false @BURGJB_5974
if 
  100@ == 0
goto_if_false @BURGJB_5967
Text.PrintHelpForever('BURG23')
100@ = 1

:BURGJB_5967
goto @BURGJB_6001

:BURGJB_5974
if 
  100@ == 1
goto_if_false @BURGJB_6001
Text.ClearHelp
100@ = 0

:BURGJB_6001
goto @BURGJB_6050

:BURGJB_6008
if 
  Object.DoesExist(49@)
goto_if_false @BURGJB_6050
if 
  not Char.IsHoldingObject($scplayer, 49@)
goto_if_false @BURGJB_6050
94@ = 0

:BURGJB_6050
if or
  $burglary_player_spotted == 1
  98@ == 1
goto_if_false @BURGJB_6108
$burglary_player_spotted = 0
98@ = 0
Hud.ClearCounter($burglary_time_to_daylight)
$burglary_time_to_daylight = 10
109@ = 0

:BURGJB_6108
if 
  101@ == 1
goto_if_false @BURGJB_6165
Hud.ClearCounter($g_VB_BIG_LIFT)
$burglary_noise = 0.0
41@ = 0.0
$g_VB_BIG_LIFT = 0
101@ = 0

:BURGJB_6165
if 
  94@ == 1
goto_if_false @BURGJB_6492
66@, 67@, 68@ = Car.GetOffsetInWorldCoords(50@, 0.0, -6.0, 0.0)
if 
  Char.LocateOnFoot3D($scplayer, 66@, 67@, 68@, 3.5, 3.5, 2.0, False)
goto_if_false @BURGJB_6465
if 
  100@ == 0
goto_if_false @BURGJB_6290
Text.PrintHelpForever('BURG24')
100@ = 1

:BURGJB_6290
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BURGJB_6458
Text.ClearHelp
48@ += 1
TIMERB = 0
104@ = 0
if 
  Object.DoesExist(49@)
goto_if_false @BURGJB_6451

:BURGJB_6346
if 
  104@ == 0
goto_if_false @BURGJB_6414
if or
  not Char.IsHoldingObject($scplayer, 49@)
  Char.IsDead($scplayer)
  TIMERB > 5000
goto_if_false @BURGJB_6403
104@ = 1

:BURGJB_6403
wait 0
goto @BURGJB_6346

:BURGJB_6414
Object.Delete(49@)
Object.MarkAsNoLongerNeeded(49@)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
94@ = 0

:BURGJB_6451
100@ = 0

:BURGJB_6458
goto @BURGJB_6492

:BURGJB_6465
if 
  100@ == 1
goto_if_false @BURGJB_6492
Text.ClearHelp
100@ = 0

:BURGJB_6492
if 
  92@ == 1
goto_if_false @BURGJB_7660
if and
  98@ == 0
  $burglary_player_spotted == 0
goto_if_false @BURGJB_6965
if 
  101@ == 0
goto_if_false @BURGJB_6617
111@ = StreamedScript.GetNumberOfInstances(23)
if 
  111@ > 0
goto_if_false @BURGJB_6610
Hud.DisplayNthCounterWithString($g_VB_BIG_LIFT, CounterDisplay.Bar, 2, 'BURG25')
Char.ShutUp($scplayer, True)
101@ = 1

:BURGJB_6610
goto @BURGJB_6958

:BURGJB_6617
111@ = StreamedScript.GetNumberOfInstances(23)
if 
  111@ <> 0
goto_if_false @BURGJB_6912
63@, 64@, 65@ = Char.GetCoordinates($scplayer)
$burglary_noise = World.GetSoundLevelAtCoords(-1, 63@, 64@, 65@)
$burglary_noise *= 1.6
if 
  $burglary_noise > 20.0
goto_if_false @BURGJB_6721
$burglary_noise -= 20.0
add_float_var_to_float_lvar 41@ += $burglary_noise

:BURGJB_6721
41@ *= 0.99
cset_var_int_to_lvar_float $g_VB_BIG_LIFT =# 41@
if 
  $g_VB_BIG_LIFT >= 100
goto_if_false @BURGJB_6801
$g_VB_BIG_LIFT = 100
if 
  106@ == 0
goto_if_false @BURGJB_6794
89@ = Clock.GetGameTimer()
106@ = 1

:BURGJB_6794
goto @BURGJB_6833

:BURGJB_6801
if 
  0 > $g_VB_BIG_LIFT
goto_if_false @BURGJB_6826
$g_VB_BIG_LIFT = 0

:BURGJB_6826
106@ = 0

:BURGJB_6833
if 
  106@ == 1
goto_if_false @BURGJB_6905
90@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 91@ = 90@
sub_int_lvar_from_int_lvar 91@ -= 89@
if 
  91@ > 200
goto_if_false @BURGJB_6905
98@ = 1
105@ += 1

:BURGJB_6905
goto @BURGJB_6958

:BURGJB_6912
Hud.ClearCounter($g_VB_BIG_LIFT)
$burglary_noise = 0.0
41@ = 0.0
$g_VB_BIG_LIFT = 0
101@ = 0
Char.ShutUp($scplayer, False)

:BURGJB_6958
goto @BURGJB_7322

:BURGJB_6965
if 
  101@ == 1
goto_if_false @BURGJB_7077
Hud.ClearCounter($g_VB_BIG_LIFT)
$burglary_time_to_daylight = 10
Text.ClearPrints
Text.Print('BURG55', 5000, 1)
Hud.DisplayNthCounterWithString($burglary_time_to_daylight, CounterDisplay.Number, 2, 'BURG61')
89@ = Clock.GetGameTimer()
$burglary_noise = 0.0
41@ = 0.0
$g_VB_BIG_LIFT = 0
101@ = 0
goto @BURGJB_7322

:BURGJB_7077
if 
  109@ == 0
goto_if_false @BURGJB_7322
90@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 91@ = 90@
sub_int_lvar_from_int_lvar 91@ -= 89@
91@ /= 1000
$burglary_time_to_daylight = 10
sub_int_lvar_from_int_var $burglary_time_to_daylight -= 91@
if or
  0 > $burglary_time_to_daylight
  $burglary_time_to_daylight == 0
goto_if_false @BURGJB_7233
$burglary_time_to_daylight = 0
if 
  not Player.IsWantedLevelGreater($player1, 4)
goto_if_false @BURGJB_7196
Player.AlterWantedLevelNoDrop($player1, 3)

:BURGJB_7196
109@ = 1
Text.ClearPrints
Text.Print('BURG60', 5000, 1)
Hud.ClearCounter($burglary_time_to_daylight)
goto @BURGJB_7322

:BURGJB_7233
Text.ClearThisPrint('BURG58')
Text.ClearThisPrint('BURG59')
Text.AddNextMessageToPreviousBriefs(False)
if 
  $burglary_time_to_daylight > 1
goto_if_false @BURGJB_7303
Text.PrintWithNumber('BURG58', $burglary_time_to_daylight, 1000, 1)
goto @BURGJB_7322

:BURGJB_7303
Text.PrintWithNumber('BURG59', $burglary_time_to_daylight, 1000, 1)

:BURGJB_7322
if 
  94@ == 0
goto_if_false @BURGJB_7582
63@, 64@, 65@ = Char.GetCoordinates($scplayer)
49@ = World.GetClosestStealableObject(63@, 64@, 65@, 5.0)
if 
  49@ <> -1
goto_if_false @BURGJB_7575
if 
  Char.IsHoldingObject($scplayer, 49@)
goto_if_false @BURGJB_7469
if 
  100@ == 1
goto_if_false @BURGJB_7455
Text.ClearPrints
Text.Print('BURG57', 5000, 1)
Text.ClearHelp
100@ = 0

:BURGJB_7455
94@ = 1
goto @BURGJB_7575

:BURGJB_7469
if 
  Char.LocateOnFootObject3D($scplayer, 49@, 1.7, 1.7, 2.0, False)
goto_if_false @BURGJB_7548
if 
  100@ == 0
goto_if_false @BURGJB_7541
Text.PrintHelpForever('BURG23')
100@ = 1

:BURGJB_7541
goto @BURGJB_7575

:BURGJB_7548
if 
  100@ == 1
goto_if_false @BURGJB_7575
Text.ClearHelp
100@ = 0

:BURGJB_7575
goto @BURGJB_7660

:BURGJB_7582
if 
  Object.DoesExist(49@)
goto_if_false @BURGJB_7660
if 
  not Char.IsHoldingObject($scplayer, 49@)
goto_if_false @BURGJB_7660
if 
  94@ == 1
goto_if_false @BURGJB_7653
Text.ClearPrints
Text.Print('BURG30', 5000, 1)

:BURGJB_7653
94@ = 0

:BURGJB_7660
goto @BURGJB_7811

:BURGJB_7667
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @BURGJB_7797
if 
  Player.IsControlOn($player1)
goto_if_false @BURGJB_7719
Player.SetControl($player1, False)

:BURGJB_7719
Camera.DoFade(1000, Fade.Out)

:BURGJB_7726
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_7750
wait 0
goto @BURGJB_7726

:BURGJB_7750
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:BURGJB_7773
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_7797
wait 0
goto @BURGJB_7773

:BURGJB_7797
goto @BURGJB_8318
95@ = 1

:BURGJB_7811
goto @BURGJB_7932

:BURGJB_7818
if 
  Player.IsWearing($player1, 17, "BALACLAVA")
goto_if_false @BURGJB_7925
Camera.DoFade(1000, Fade.Out)

:BURGJB_7854
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_7878
wait 0
goto @BURGJB_7854

:BURGJB_7878
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)
Camera.DoFade(1000, Fade.In)

:BURGJB_7901
if 
  Camera.GetFadingStatus
goto_if_false @BURGJB_7925
wait 0
goto @BURGJB_7901

:BURGJB_7925
goto @BURGJB_8318

:BURGJB_7932
goto @BURGJB_1044

:BURGJB_7939
$controlmode = Pad.GetControllerMode()
if 
  $controlmode <> 3
goto_if_false @BURGJB_8028
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @BURGJB_8021
if 
  not Car.IsDead(50@)
goto_if_false @BURGJB_8021
if 
  Char.IsInCar($scplayer, 50@)
goto_if_false @BURGJB_8021
96@ = 1

:BURGJB_8021
goto @BURGJB_8087

:BURGJB_8028
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @BURGJB_8087
if 
  not Car.IsDead(50@)
goto_if_false @BURGJB_8087
if 
  Char.IsInCar($scplayer, 50@)
goto_if_false @BURGJB_8087
96@ = 1

:BURGJB_8087
if 
  96@ == 1
goto_if_false @BURGJB_8316
if 
  $controlmode <> 3
goto_if_false @BURGJB_8223
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @BURGJB_8216
if 
  not Car.IsDead(50@)
goto_if_false @BURGJB_8216
if 
  Char.IsInCar($scplayer, 50@)
goto_if_false @BURGJB_8207
Text.ClearPrints
Text.PrintNow('BURG41', 5000, 1)
95@ = 1
goto @BURGJB_8214

:BURGJB_8207
96@ = 0

:BURGJB_8214
return 

:BURGJB_8216
goto @BURGJB_8316

:BURGJB_8223
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @BURGJB_8316
if 
  not Car.IsDead(50@)
goto_if_false @BURGJB_8316
if 
  Char.IsInCar($scplayer, 50@)
goto_if_false @BURGJB_8307
Text.ClearPrints
Text.PrintNow('BURG41', 5000, 1)
95@ = 1
goto @BURGJB_8314

:BURGJB_8307
96@ = 0

:BURGJB_8314
return 

:BURGJB_8316
return 

:BURGJB_8318
Text.PrintBig('B_FAIL1', 5000, TextStyle.MiddleSmallerHigher)
Text.PrintWith2NumbersBig('BURG37', 47@, $copcar_print_level, 5000, TextStyle.Middle)
return 

:BURGJB_8358
if 
  $done_burglary_progress == 0
goto_if_false @BURGJB_8426
//Player.SetNeverGetsTired($player1, True)
Text.PrintWithNumberBig('BURG54', 3000, 5000, TextStyle.Middle)
Player.AddScore($player1, 3000)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(2)
$done_burglary_progress = 1

:BURGJB_8426
return 
return 

:BURGJB_8430
$disable_mod_garage = 0
if 
  Player.IsPlaying($player1)
goto_if_false @BURGJB_8460
Char.ShutUp($scplayer, False)

:BURGJB_8460
Text.DrawOddjobTitleBeforeFade(True)
Game.EnableBurglaryHouses(False)
Garage.ChangeType(s$burglary_session_made[0], GarageType.Burglary)
Garage.ChangeType(s$burglary_session_made[1], GarageType.Burglary)
Garage.ChangeType(s$burglary_session_made[2], GarageType.Burglary)
Car.MarkAsNoLongerNeeded(50@)
Blip.Remove(52@)
Blip.Remove(51@)
Hud.ClearCounter($g_VB_BIG_LIFT)
Hud.ClearTimer($8234)
Hud.ClearTimer($burglary_time_to_get_out)
Hud.ClearCounter($copcar_print_level)
Hud.ClearCounter($burglary_time_to_daylight)
$flag_player_on_burglary_mission = 0
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

//-------------Mission 126---------------
// Originally: Freight Train Sub-Mission

:FREIGHT
script_name 'FREIGHT'
gosub @FREIGHT_80
if 
  has_deatharrest_been_executed 
goto_if_false @FREIGHT_38
gosub @FREIGHT_2819

:FREIGHT_38
gosub @FREIGHT_3178
if 
  $freight_remaining == 1
goto_if_false @FREIGHT_78
start_new_script @FRTEXT 
$freight_remaining = 2

:FREIGHT_78
terminate_this_script 

:FREIGHT_80
Player.ClearWantedLevel($player1)
Game.SetWantedMultiplier(0.0)
135@ = 999999.0
$onmission = 1
$flag_player_on_freight_mission = 1
130@ = 0
126@ = 0
125@ = 0
if 
  $ft_train_level == 0
goto_if_false @FREIGHT_162
$ft_train_level = 1

:FREIGHT_162
45@ = 1698.826
65@ = -1953.75
85@ = 12.5469
34@ = 150000
39@ = 60000
46@ = 789.4952
66@ = -1343.796
86@ = -2.5794
35@ = 60000
40@ = 140000
47@ = -1943.241
67@ = 159.585
87@ = 24.7186
36@ = 140000
41@ = 150000
48@ = 1463.359
68@ = 2632.25
88@ = 9.8203
37@ = 150000
42@ = 105000
49@ = 2864.623
69@ = 1248.266
89@ = 9.8203
38@ = 105000
43@ = 150000
if 
  $ft_train_level == 1
goto_if_false @FREIGHT_438
127@ = 15000

:FREIGHT_438
if 
  $ft_train_level == 2
goto_if_false @FREIGHT_464
127@ = 10000

:FREIGHT_464
if 
  $ft_train_level == 3
goto_if_false @FREIGHT_489
127@ = 0

:FREIGHT_489
129@ = 0

:FREIGHT_496
add_int_lvar_to_int_lvar 34@(129@,5i) += 127@
add_int_lvar_to_int_lvar 39@(129@,5i) += 127@
129@ += 1
  129@ >= 5
goto_if_false @FREIGHT_496
Camera.SetFadingColor(0, 0, 0)
$onmission = 1
if 
  $freight_remaining == 0
goto_if_false @FREIGHT_576
Stat.RegisterMissionGiven

:FREIGHT_576
Text.LoadMissionText('FTRAIN')
if 
  not Char.IsDead($scplayer)
goto_if_false @FREIGHT_627
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @FREIGHT_627
$car = Char.StoreCarIsIn($scplayer)

:FREIGHT_627
if 
  $freight_remaining == 0
goto_if_false @FREIGHT_671
Text.PrintWithNumberBig('FREI_04', $ft_train_level, 5000, TextStyle.MiddleSmaller)
goto @FREIGHT_687

:FREIGHT_671
Text.PrintBig('FREI_X', 5000, TextStyle.MiddleSmaller)

:FREIGHT_687
wait 0
if 
  not Char.IsDead($scplayer)
goto_if_false @FREIGHT_721
$x, $y, $z = Char.GetCoordinates($scplayer)

:FREIGHT_721
134@ = Math.GetDistanceBetweenCoords2D($x, $y, 1698.826, -1953.75)
if 
  is_float_lvar_greater_than_float_lvar 135@ > 134@
goto_if_false @FREIGHT_776
set_lvar_float_to_lvar_float 135@ = 134@
125@ = 0

:FREIGHT_776
134@ = Math.GetDistanceBetweenCoords2D($x, $y, 789.4952, -1343.796)
if 
  is_float_lvar_greater_than_float_lvar 135@ > 134@
goto_if_false @FREIGHT_831
set_lvar_float_to_lvar_float 135@ = 134@
125@ = 1

:FREIGHT_831
134@ = Math.GetDistanceBetweenCoords2D($x, $y, -1943.241, 159.585)
if 
  is_float_lvar_greater_than_float_lvar 135@ > 134@
goto_if_false @FREIGHT_886
set_lvar_float_to_lvar_float 135@ = 134@
125@ = 2

:FREIGHT_886
134@ = Math.GetDistanceBetweenCoords2D($x, $y, 1463.359, 2632.25)
if 
  is_float_lvar_greater_than_float_lvar 135@ > 134@
goto_if_false @FREIGHT_941
set_lvar_float_to_lvar_float 135@ = 134@
125@ = 3

:FREIGHT_941
134@ = Math.GetDistanceBetweenCoords2D($x, $y, 2864.623, 1248.266)
if 
  is_float_lvar_greater_than_float_lvar 135@ > 134@
goto_if_false @FREIGHT_996
set_lvar_float_to_lvar_float 135@ = 134@
125@ = 4

:FREIGHT_996
Streaming.RequestModel(590)
Streaming.RequestModel(570)
Streaming.RequestModel(569)
Streaming.RequestModel(538)
Streaming.RequestModel(537)

:FREIGHT_1021
if or
  not Streaming.HasModelLoaded(590)
  not Streaming.HasModelLoaded(570)
  not Streaming.HasModelLoaded(569)
  not Streaming.HasModelLoaded(538)
  not Streaming.HasModelLoaded(537)
goto_if_false @FREIGHT_1068
wait 0
goto @FREIGHT_1021

:FREIGHT_1068
TIMERA = 0
TIMERB = 0
World.DeleteAllTrains
Game.SwitchRandomTrains(False)
if 
  not Char.IsDead($scplayer)
goto_if_false @FREIGHT_1128
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @FREIGHT_1128
$car = Char.StoreCarIsInNoSave($scplayer)

:FREIGHT_1128
if 
  not Car.IsDead($car)
goto_if_false @FREIGHT_1195
if 
  Train.FindDirection($car)
goto_if_false @FREIGHT_1181
125@ += 1
133@ = 0
goto @FREIGHT_1195

:FREIGHT_1181
125@ -= 1
133@ = 1

:FREIGHT_1195
if 
  125@ == 5
goto_if_false @FREIGHT_1220
125@ = 0

:FREIGHT_1220
if 
  125@ == -1
goto_if_false @FREIGHT_1245
125@ = 4

:FREIGHT_1245
gosub @FREIGHT_3353
105@(125@,20i) = Blip.AddForCoord(45@(125@,20f), 65@(125@,20f), 85@(125@,20f))
if 
  133@ == 0
goto_if_false @FREIGHT_1319
set_var_int_to_lvar_int $burglary_time_to_lockup = 34@(125@,5i)
goto @FREIGHT_1331

:FREIGHT_1319
set_var_int_to_lvar_int $burglary_time_to_lockup = 39@(125@,5i)

:FREIGHT_1331
if 
  not Char.IsDead($scplayer)
goto_if_false @FREIGHT_2766
wait 0
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @FREIGHT_1373
goto @FREIGHT_2258

:FREIGHT_1373
if or
  Char.IsInModel($scplayer, 538)
  Char.IsInModel($scplayer, 537)
goto_if_false @FREIGHT_1442
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  not Car.IsUpright($car)
goto_if_false @FREIGHT_1435
Text.ClearPrints
Text.ClearHelp
goto @FREIGHT_2773

:FREIGHT_1435
goto @FREIGHT_1453

:FREIGHT_1442
Text.ClearPrints
Text.ClearHelp
goto @FREIGHT_2773

:FREIGHT_1453
137@ = Car.GetSpeed($car)
cset_var_int_to_lvar_float $ft_distance =# 137@
if and
  TIMERB > 3000
  126@ == 0
goto_if_false @FREIGHT_1515
126@ = 1
Text.ClearPrints
Text.PrintHelp('FREI_03')

:FREIGHT_1515
if and
  TIMERB > 8000
  126@ == 1
goto_if_false @FREIGHT_1603
126@ = 2
Text.ClearPrints
Text.ClearHelp
if 
  $ft_speed == 0
goto_if_false @FREIGHT_1588
Text.PrintHelp('FREI_12')
goto @FREIGHT_1603

:FREIGHT_1588
TIMERB = 18000
126@ = 3

:FREIGHT_1603
if and
  TIMERB > 12000
  126@ == 2
goto_if_false @FREIGHT_1691
126@ = 3
Text.ClearPrints
Text.ClearHelp
if 
  $ft_speed == 0
goto_if_false @FREIGHT_1676
Text.PrintHelp('FREI_13')
goto @FREIGHT_1691

:FREIGHT_1676
TIMERB = 18000
126@ = 3

:FREIGHT_1691
if and
  TIMERB > 16000
  126@ == 3
goto_if_false @FREIGHT_2038
if 
  not Char.IsDead($scplayer)
goto_if_false @FREIGHT_1747
$x, $y, $z = Char.GetCoordinates($scplayer)

:FREIGHT_1747
136@ = 0.0
$burglary_time_to_lockup = 0
136@ = Math.GetDistanceBetweenCoords2D($x, $y, 45@(125@,20f), 65@(125@,20f))
cset_var_int_to_lvar_float $flag_freight_passed_0stime =# 136@
if 
  136@ > 3000.0
goto_if_false @FREIGHT_1835
136@ /= 0.021
goto @FREIGHT_1845

:FREIGHT_1835
136@ /= 0.019

:FREIGHT_1845
if 
  10000.0 > 136@
goto_if_false @FREIGHT_1876
136@ = 10000.0

:FREIGHT_1876
cset_var_int_to_lvar_float $burglary_time_to_lockup =# 136@
if 
  $ft_train_level == 1
goto_if_false @FREIGHT_1910
127@ = 15000

:FREIGHT_1910
if 
  $ft_train_level == 2
goto_if_false @FREIGHT_1935
127@ = 0

:FREIGHT_1935
if 
  $ft_train_level == 3
goto_if_false @FREIGHT_1960
127@ = 0

:FREIGHT_1960
add_int_lvar_to_int_var $burglary_time_to_lockup += 127@
126@ = 4
$ft_speed = 1
//Hud.DisplayTimerWithString($burglary_time_to_lockup, TimerDirection.Down, 'FREI_14')
Hud.DisplayNthCounterWithString($flag_freight_passed_0stime, CounterDisplay.Number, 1, 'FREI_10')
Hud.DisplayNthCounterWithString($ft_distance, CounterDisplay.Number, 2, 'FREI_11')
Text.ClearPrints
Text.ClearHelp

:FREIGHT_2038
if 
  not Char.IsDead($scplayer)
goto_if_false @FREIGHT_2068
$x, $y, $z = Char.GetCoordinates($scplayer)

:FREIGHT_2068
136@ = Math.GetDistanceBetweenCoords2D($x, $y, 45@(125@,20f), 65@(125@,20f))
cset_var_int_to_lvar_float $flag_freight_passed_0stime =# 136@
if 
  Train.HasDerailed($car)
goto_if_false @FREIGHT_2124
goto @FREIGHT_2819

:FREIGHT_2124
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @FREIGHT_2152
Text.ClearPrints
Text.ClearHelp
goto @FREIGHT_2773

:FREIGHT_2152
if 
  0 >= $burglary_time_to_lockup
goto_if_false @FREIGHT_2177
goto @FREIGHT_2819

:FREIGHT_2177
if 
  Char.LocateStoppedAnyMeans3D($scplayer, 45@(125@,20f), 65@(125@,20f), 85@(125@,20f), 10.0, 10.0, 10.0, True)
goto_if_false @FREIGHT_2522
if or
  Char.IsInModel($scplayer, 538)
  Char.IsInModel($scplayer, 537)
goto_if_false @FREIGHT_2522

:FREIGHT_2258
if 
  Blip.DoesExist(105@(125@,20i))
goto_if_false @FREIGHT_2287
Blip.Remove(105@(125@,20i))

:FREIGHT_2287
130@ += 1
set_lvar_int_to_var_int 127@ = $burglary_time_to_lockup
Hud.ClearTimer($burglary_time_to_lockup)
Hud.ClearCounter($flag_freight_passed_0stime)
Hud.ClearCounter($ft_distance)
if 
  130@ == 5
goto_if_false @FREIGHT_2342
goto @FREIGHT_2905

:FREIGHT_2342
if 
  133@ == 0
goto_if_false @FREIGHT_2374
125@ += 1
goto @FREIGHT_2381

:FREIGHT_2374
125@ -= 1

:FREIGHT_2381
if 
  125@ == 5
goto_if_false @FREIGHT_2406
125@ = 0

:FREIGHT_2406
if 
  125@ == -1
goto_if_false @FREIGHT_2431
125@ = 4

:FREIGHT_2431
if 
  127@ > 15000
goto_if_false @FREIGHT_2458
127@ = 15000

:FREIGHT_2458
set_lvar_int_to_lvar_int 128@ = 127@
128@ /= 100
mult_int_lvar_by_int_var 128@ *= $ft_train_level
Text.PrintWithNumberBig('FREI_07', 128@, 3000, TextStyle.Middle)
Player.AddScore($player1, 128@)
TIMERA = 0
132@ = 1

:FREIGHT_2522
if and
  132@ == 1
  TIMERA > 6000
goto_if_false @FREIGHT_2759
set_lvar_int_to_lvar_int 128@ = 127@
128@ /= 1000
Text.PrintWithNumberBig('FREI_05', 128@, 4000, TextStyle.WhiteMiddleSmaller)
$burglary_time_to_lockup = 0
if 
  133@ == 0
goto_if_false @FREIGHT_2635
set_var_int_to_lvar_int $burglary_time_to_lockup = 34@(125@,5i)
add_int_lvar_to_int_var $burglary_time_to_lockup += 127@
goto @FREIGHT_2655

:FREIGHT_2635
set_var_int_to_lvar_int $burglary_time_to_lockup = 39@(125@,5i)
add_int_lvar_to_int_var $burglary_time_to_lockup += 127@

:FREIGHT_2655
Hud.ClearTimer($burglary_time_to_lockup)
Hud.ClearCounter($flag_freight_passed_0stime)
Hud.ClearCounter($ft_distance)
//Hud.DisplayTimerWithString($burglary_time_to_lockup, TimerDirection.Down, 'FREI_14')
Hud.DisplayNthCounterWithString($flag_freight_passed_0stime, CounterDisplay.Number, 1, 'FREI_10')
Hud.DisplayNthCounterWithString($ft_distance, CounterDisplay.Number, 2, 'FREI_11')
105@(125@,20i) = Blip.AddForCoord(45@(125@,20f), 65@(125@,20f), 85@(125@,20f))
132@ = 0

:FREIGHT_2759
goto @FREIGHT_1331

:FREIGHT_2766
goto @FREIGHT_2819

:FREIGHT_2773
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Text.ClearPrints
Text.ClearHelp
Text.PrintBig('FREI_02', 5000, TextStyle.Middle)
Hud.ClearTimer($burglary_time_to_lockup)
Hud.ClearCounter($flag_freight_passed_0stime)
Hud.ClearCounter($ft_distance)
wait 2000
return 

:FREIGHT_2819
if 
  Blip.DoesExist(105@(125@,20i))
goto_if_false @FREIGHT_2848
Blip.Remove(105@(125@,20i))

:FREIGHT_2848
Hud.ClearTimer($burglary_time_to_lockup)
Hud.ClearCounter($flag_freight_passed_0stime)
Hud.ClearCounter($ft_distance)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Text.ClearHelp
Text.ClearPrints
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Text.PrintNow('FREI_06', 4000, 1)
return 

:FREIGHT_2905
if 
  $ft_train_level == 2
goto_if_false @FREIGHT_3032
if 
  $freight_remaining == 0
goto_if_false @FREIGHT_2976
Text.PrintWithNumberBig('M_PASS', 50000, 5000, TextStyle.Middle)
Player.AddScore($player1, 50000)
Audio.PlayMissionPassedTune(2)

:FREIGHT_2976
if 
  $freight_remaining == 2
goto_if_false @FREIGHT_3025
Text.PrintWithNumberBig('M_PASS', 10000, 5000, TextStyle.Middle)
Player.AddScore($player1, 10000)
Audio.PlayMissionPassedTune(2)

:FREIGHT_3025
goto @FREIGHT_3051

:FREIGHT_3032
Text.PrintWithNumberBig('FREI_15', $ft_train_level, 5000, TextStyle.Middle)

:FREIGHT_3051
if and
  $flag_freight_passed_1stime == 0
  $ft_train_level == 1
goto_if_false @FREIGHT_3085
Stat.RegisterOddjobMissionPassed
$flag_freight_passed_1stime = 1

:FREIGHT_3085
if and
  $freight_remaining == 0
  $ft_train_level == 2
goto_if_false @FREIGHT_3123
Stat.RegisterOddjobMissionPassed
Stat.PlayerMadeProgress(1)
$freight_remaining = 1

:FREIGHT_3123
Hud.ClearTimer($burglary_time_to_lockup)
Hud.ClearCounter($flag_freight_passed_0stime)
Hud.ClearCounter($ft_distance)
Player.ClearWantedLevel($player1)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Audio.PlayMissionPassedTune(1)
if 
  $ft_train_level <> 2
goto_if_false @FREIGHT_3176
$ft_train_level += 1

:FREIGHT_3176
return 

:FREIGHT_3178
if 
  Blip.DoesExist(105@(125@,20i))
goto_if_false @FREIGHT_3207
Blip.Remove(105@(125@,20i))

:FREIGHT_3207
Streaming.MarkModelAsNoLongerNeeded(590)
Streaming.MarkModelAsNoLongerNeeded(570)
Streaming.MarkModelAsNoLongerNeeded(569)
Streaming.MarkModelAsNoLongerNeeded(538)
Streaming.MarkModelAsNoLongerNeeded(537)
$onmission = 0
$flag_player_on_freight_mission = 0
Player.ClearWantedLevel($player1)
Hud.ClearCounter($flag_freight_passed_0stime)
Hud.ClearCounter($ft_distance)
Hud.ClearTimer($burglary_time_to_lockup)
Player.ClearWantedLevel($player1)
Game.SetWantedMultiplier(1.0)
Mission.Finish
return 
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
return 
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
return 
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:FREIGHT_3327
if 
  Camera.GetFadingStatus
goto_if_false @FREIGHT_3351
wait 0
goto @FREIGHT_3327

:FREIGHT_3351
return 

:FREIGHT_3353
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:FREIGHT_3368
if 
  Camera.GetFadingStatus
goto_if_false @FREIGHT_3392
wait 0
goto @FREIGHT_3368

:FREIGHT_3392
return 
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @FREIGHT_3409

:FREIGHT_3409
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @FREIGHT_3424

:FREIGHT_3424
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @FREIGHT_3439

:FREIGHT_3439
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @FREIGHT_3454

:FREIGHT_3454
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @FREIGHT_3490
if 
  not Char.IsDead($scplayer)
goto_if_false @FREIGHT_3490
Task.Die($scplayer)

:FREIGHT_3490
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @FREIGHT_3535
if 
  not Char.IsDead($scplayer)
goto_if_false @FREIGHT_3535
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:FREIGHT_3535
return 

//-------------Mission 127---------------
// Originally: Pimping Sub-Mission

:PIMP
script_name 'PIMP'
gosub @PIMP_47
if 
  has_deatharrest_been_executed 
goto_if_false @PIMP_38
gosub @PIMP_37457

:PIMP_38
gosub @PIMP_37872
terminate_this_script 

:PIMP_47
if 
  $pimp_passed_once == 0
goto_if_false @PIMP_67
Stat.RegisterMissionGiven

:PIMP_67
$flag_player_on_pimp_mission = 1
$onmission = 1
wait 0
wait 0
Text.LoadMissionText('PIMP')
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.In)
if 
  not Char.IsDead($scplayer)
goto_if_false @PIMP_138
Player.SetControl($player1, True)

:PIMP_138
541@ = 0
34@ = 0
537@ = 0
538@ = 0
$freight_player_location = 0
514@ = 0
516@ = 0
517@ = 0
520@ = 0
531@ = 0
41@ = 0
42@ = 0
47@ = 0
44@ = 0
46@ = 0
45@ = 0
43@ = 0
48@ = 0
49@ = 0
147@ = 0
52@ = 0
56@ = 0
55@ = 0
511@ = 0
512@ = 0
37@ = 0
521@ = 0
525@ = 0
524@ = 0
523@ = 0
57@ = 1
175@ = 2286.79
203@ = -2312.836
231@ = 12.557
259@ = 301.0
176@ = 1537.268
204@ = -2314.27
232@ = 12.5469
260@ = 280.2771
177@ = 2307.903
205@ = -1998.647
233@ = 12.5529
261@ = 321.3693
178@ = 1239.282
206@ = -1918.819
234@ = 30.3478
262@ = 284.1407
179@ = 1685.32
207@ = -1585.244
235@ = 12.5469
263@ = 233.3592
180@ = 1749.745
208@ = -1455.778
236@ = 12.5547
264@ = 8.5912
181@ = 1959.539
209@ = -1452.56
237@ = 12.5495
265@ = 186.4147
182@ = 1793.708
210@ = -1600.12
238@ = 12.5387
266@ = 74.0619
183@ = 2259.703
211@ = -1339.907
239@ = 22.9832
267@ = 267.1747
184@ = 2350.009
212@ = -1504.599
240@ = 23.0
268@ = 113.9031
185@ = 2745.374
213@ = -1188.68
241@ = 68.3986
269@ = 109.0182
186@ = 2833.886
214@ = -1585.979
242@ = 10.086
270@ = 223.6582
187@ = 1282.429
215@ = -1666.13
243@ = 12.5547
271@ = 202.373
188@ = 899.8489
216@ = -1823.877
244@ = 11.2302
272@ = 215.4203
189@ = 447.2084
217@ = -1761.314
245@ = 4.7837
273@ = 230.4552
190@ = 765.7432
218@ = -1541.32
246@ = 12.5536
274@ = 264.2591
191@ = 1269.592
219@ = -1560.462
247@ = 12.5643
275@ = 186.3764
192@ = 557.9569
220@ = -1509.402
248@ = 13.5557
276@ = 94.5521
193@ = 434.0113
221@ = -1555.667
249@ = 26.5851
277@ = 273.0415
194@ = 403.0965
222@ = -1256.665
250@ = 51.2
278@ = 29.0138
195@ = 1147.13
223@ = -898.4011
251@ = 41.7814
279@ = 234.2193
196@ = 1020.802
224@ = -911.898
252@ = 41.2395
280@ = 222.6945
197@ = 828.6284
225@ = -1056.445
253@ = 24.2484
281@ = 22.838
198@ = 971.1776
226@ = -1107.744
254@ = 22.8672
282@ = 83.3249
199@ = 1893.362
227@ = -1741.244
255@ = 12.5468
283@ = 177.218
200@ = 2333.625
228@ = -1764.659
256@ = 12.5534
284@ = 333.4691
201@ = 1775.942
229@ = -1895.623
257@ = 12.3865
285@ = 248.6633
202@ = 1707.121
230@ = -1804.755
258@ = 12.5391
286@ = 172.0678
287@ = -2020.273
315@ = 932.0927
343@ = 44.5639
371@ = 221.8539
288@ = -2399.298
316@ = 1071.83
344@ = 54.7266
372@ = 327.6848
289@ = -2400.652
317@ = 922.1189
345@ = 44.4453
373@ = 283.5361
290@ = -2301.292
318@ = 1373.105
346@ = 6.1961
374@ = 124.8329
293@ = -2576.948
321@ = 1144.234
349@ = 54.7266
377@ = 124.6449
294@ = -2694.151
322@ = 1204.628
350@ = 54.1953
378@ = 357.2611
295@ = -2244.235
323@ = 643.8406
351@ = 48.4375
379@ = 99.8674
296@ = -1923.351
324@ = 563.4099
352@ = 34.1972
380@ = 44.6685
297@ = -1736.431
325@ = 809.515
353@ = 23.8904
381@ = 333.3014
298@ = -1504.571
326@ = 1083.0
354@ = 6.1846
382@ = 156.5032
299@ = -2400.051
327@ = 556.1022
355@ = 23.8906
383@ = 18.535
300@ = -2490.255
328@ = 6.0292
356@ = 24.6238
384@ = 56.3408
301@ = -2757.469
329@ = 168.1762
357@ = 6.0408
385@ = 196.6891
302@ = -2779.791
330@ = -319.9682
358@ = 6.1875
386@ = 123.0427
303@ = -2192.023
331@ = 309.7259
359@ = 34.1172
387@ = 7.9069
304@ = -2195.789
332@ = 197.3115
360@ = 34.3203
388@ = 9.4354
305@ = -2108.647
333@ = 217.1542
361@ = 34.3045
389@ = 133.6119
306@ = -1545.449
334@ = 560.5441
362@ = 6.1797
390@ = 165.7533
307@ = -2779.8
335@ = -500.7523
363@ = 6.2925
391@ = 37.7744
308@ = -1974.475
336@ = -975.055
364@ = 31.2266
392@ = 138.4206
309@ = -1587.119
337@ = -482.9532
365@ = 5.1484
393@ = 117.5313
310@ = -2838.112
338@ = 846.8309
366@ = 42.5804
394@ = 288.0701
311@ = -2566.241
339@ = 918.7418
367@ = 63.9765
395@ = 178.9968
312@ = -2601.591
340@ = 688.1887
368@ = 26.8125
396@ = 34.6082
313@ = -2758.551
341@ = 394.18
369@ = 3.3359
397@ = 315.443
399@ = 2009.313
427@ = 1167.793
455@ = 9.813
483@ = 266.731
400@ = 1959.998
428@ = 945.6432
456@ = 9.8203
484@ = 225.7712
401@ = 2202.737
429@ = 1254.45
457@ = 9.8203
485@ = 110.1904
402@ = 2186.84
430@ = 998.9764
458@ = 9.8203
486@ = 202.3453
403@ = 2031.976
431@ = 1539.9
459@ = 9.8203
487@ = 224.9353
404@ = 2139.462
432@ = 1516.045
460@ = 9.8203
488@ = 351.7
405@ = 2150.364
433@ = 1675.969
461@ = 9.8203
489@ = 217.8727
406@ = 1939.55
434@ = 1389.756
462@ = 8.2578
490@ = 271.8136
407@ = 2595.79
435@ = 1793.637
463@ = 9.9692
491@ = 105.7608
408@ = 2185.686
436@ = 1885.912
464@ = 9.8203
492@ = 4.9185
409@ = 2159.891
437@ = 1931.016
465@ = 9.8203
493@ = 94.0854
410@ = 2057.374
438@ = 1957.522
466@ = 10.7324
494@ = 218.8441
411@ = 2181.532
439@ = 2353.484
467@ = 9.8203
495@ = 186.4606
412@ = 2437.607
440@ = 2376.581
468@ = 9.8203
496@ = 87.5329
413@ = 2335.391
441@ = 2076.146
469@ = 9.8125
497@ = 261.0065
414@ = 2217.564
442@ = 1787.844
470@ = 9.8203
498@ = 36.1247
415@ = 1540.732
443@ = 748.3782
471@ = 9.8203
499@ = 259.5982
416@ = 1011.96
444@ = 1104.625
472@ = 9.8203
500@ = 4.436
417@ = 1723.904
445@ = 1541.124
473@ = 9.8203
501@ = 317.5323
418@ = 1958.822
446@ = 706.9632
474@ = 9.8199
502@ = 216.0597
$pimp_bikeostimer = 180000
World.ClearArea(1918.988, -1791.854, 12.3828, 30.0, False)
Char.SetCantBeDraggedOut($scplayer, True)
if 
  not Player.IsPlaying($player1)
goto_if_false @PIMP_3339
goto @PIMP_37457

:PIMP_3339
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @PIMP_3370
40@ = Char.StoreCarIsIn($scplayer)
goto @PIMP_3377

:PIMP_3370
goto @PIMP_37457

:PIMP_3377
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_3401
Car.SetHealth(40@, 2000)

:PIMP_3401
518@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Game.SetRelationship(RelationshipType.Like, PedType.Gang1, PedType.Player1)
35@(37@,2i) = Zone.GetRandomChar('BLUFF', True, False, True)
Char.Delete(35@(37@,2i))
91@(51@,28i) = Zone.GetRandomChar('BLUFF', True, False, True)
Char.Delete(91@(51@,28i))
if 
  47@ == -13
goto_if_false @PIMP_3521
//Hud.DisplayTimerWithString($pimp_bikeostimer, TimerDirection.Down, 'PIMP_90')
Hud.ClearTimer($pimp_bikeostimer)

:PIMP_3521
if 
  not Char.IsDead($scplayer)
goto_if_false @PIMP_3545
531@ = Player.GetCityIsIn($player1)

:PIMP_3545
if 
  not is_int_lvar_equal_to_constant 531@ == 1
goto_if_false @PIMP_3765
if 
  not is_int_lvar_equal_to_constant 531@ == 2
goto_if_false @PIMP_3765
if 
  not is_int_lvar_equal_to_constant 531@ == 3
goto_if_false @PIMP_3765
532@, 533@, 534@ = Char.GetCoordinates($scplayer)
536@ = Math.GetDistanceBetweenCoords3D(532@, 533@, 534@, 200@, 228@, 256@)
set_lvar_float_to_lvar_float 535@ = 536@
set_lvar_int_to_constant 531@ = 1
536@ = Math.GetDistanceBetweenCoords3D(532@, 533@, 534@, 287@, 315@, 343@)
if 
  is_float_lvar_greater_than_float_lvar 535@ > 536@
goto_if_false @PIMP_3708
set_lvar_float_to_lvar_float 535@ = 536@
set_lvar_int_to_constant 531@ = 2

:PIMP_3708
536@ = Math.GetDistanceBetweenCoords3D(532@, 533@, 534@, 399@, 427@, 455@)
if 
  is_float_lvar_greater_than_float_lvar 535@ > 536@
goto_if_false @PIMP_3765
set_lvar_float_to_lvar_float 535@ = 536@
set_lvar_int_to_constant 531@ = 3

:PIMP_3765
wait 0
if 
  541@ == 1
goto_if_false @PIMP_3807
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 36200)
541@ = 2

:PIMP_3807
if 
  541@ == 2
goto_if_false @PIMP_3847
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @PIMP_3847
541@ = 3

:PIMP_3847
if 
  537@ == 1
goto_if_false @PIMP_3908
if 
  1 > $pimp_bikeostimer
goto_if_false @PIMP_3908
Text.ClearPrints
Text.PrintNow('PIMP_92', 6000, 1)
goto @PIMP_37457

:PIMP_3908
if 
  537@ == 2
goto_if_false @PIMP_3969
if 
  1 > $pimp_bikeostimer
goto_if_false @PIMP_3969
Text.ClearPrints
Text.PrintNow('PIMP_91', 6000, 1)
goto @PIMP_37457

:PIMP_3969
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @PIMP_3994
$pimp_bikeostimer += 60000

:PIMP_3994
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @PIMP_4017
$pimp_bikeostimer -= 30000

:PIMP_4017
if 
  not Player.IsPlaying($player1)
goto_if_false @PIMP_4040
goto @PIMP_37457

:PIMP_4040
if 
  Car.IsDead(40@)
goto_if_false @PIMP_4063
goto @PIMP_37457

:PIMP_4063
if 
is_ps2_keyboard_key_pressed 19
goto_if_false @PIMP_4085
Player.AlterWantedLevel($player1, 2)

:PIMP_4085
if 
is_ps2_keyboard_key_pressed 18
goto_if_false @PIMP_4107
Player.AlterWantedLevel($player1, 0)

:PIMP_4107
$controlmode = Pad.GetControllerMode()
if 
  $controlmode <> 3
goto_if_false @PIMP_4318
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
  $flag_player_on_pimp_mission == 1
goto_if_false @PIMP_4311
Text.ClearSmallPrints
Text.PrintNow('PIMP_59', 6000, 1)
if 
  not Char.IsDead(35@)
goto_if_false @PIMP_4238
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_4233
if 
  Char.IsSittingInCar(35@, 40@)
goto_if_false @PIMP_4233
Char.ClearTasks(35@)
Task.LeaveAnyCar(35@)

:PIMP_4233
Char.MarkAsNoLongerNeeded(35@)

:PIMP_4238
if 
  not Char.IsDead(36@)
goto_if_false @PIMP_4304
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_4299
if 
  Char.IsSittingInCar(36@, 40@)
goto_if_false @PIMP_4299
Char.ClearTasks(36@)
Task.LeaveAnyCar(36@)

:PIMP_4299
Char.MarkAsNoLongerNeeded(36@)

:PIMP_4304
goto @PIMP_37318

:PIMP_4311
goto @PIMP_4499

:PIMP_4318
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
  $flag_player_on_pimp_mission == 1
goto_if_false @PIMP_4499
Text.ClearPrints
Text.PrintNow('PIMP_59', 6000, 1)
if 
  not Char.IsDead(35@)
goto_if_false @PIMP_4426
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_4421
if 
  Char.IsSittingInCar(35@, 40@)
goto_if_false @PIMP_4421
Char.ClearTasks(35@)
Task.LeaveAnyCar(35@)

:PIMP_4421
Char.MarkAsNoLongerNeeded(35@)

:PIMP_4426
if 
  not Char.IsDead(36@)
goto_if_false @PIMP_4492
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_4487
if 
  Char.IsSittingInCar(36@, 40@)
goto_if_false @PIMP_4487
Char.ClearTasks(36@)
Task.LeaveAnyCar(36@)

:PIMP_4487
Char.MarkAsNoLongerNeeded(36@)

:PIMP_4492
goto @PIMP_37318

:PIMP_4499
530@ = 0

:PIMP_4506
if 
  28 > 530@
goto_if_false @PIMP_4669
if 
  119@(530@,28i) == 1
goto_if_false @PIMP_4655
if 
  Char.DoesExist(91@(530@,28i))
goto_if_false @PIMP_4655
if 
  Char.HasBeenDamagedByChar(91@(530@,28i), $scplayer)
goto_if_false @PIMP_4612
Text.PrintNow('PIMP_52', 8000, 1)
goto @PIMP_37457

:PIMP_4612
if 
  Char.IsDead(91@(530@,28i))
goto_if_false @PIMP_4655
Text.PrintNow('PIMP_52', 8000, 1)
goto @PIMP_37457

:PIMP_4655
530@ += 1
goto @PIMP_4506

:PIMP_4669
if 
  516@ == 0
goto_if_false @PIMP_4763
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_4763
if 
  //not Char.IsInCar($scplayer, 40@)
goto_if_false @PIMP_4763
TIMERB = 0
517@ = 1
set_lvar_int_to_var_int 515@ = $pimp_bikeostimer
515@ /= 1000
516@ = 1
Text.ClearPrints
Text.ClearHelp

:PIMP_4763
if 
  516@ == 1
goto_if_false @PIMP_4846
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_4846
if 
  Char.IsInCar($scplayer, 40@)
goto_if_false @PIMP_4846
TIMERB = 0
516@ = 0
517@ = 0
538@ = 0
Text.ClearPrints

:PIMP_4846
if 
  517@ == 1
goto_if_false @PIMP_5129
set_lvar_int_to_lvar_int 514@ = TIMERB
514@ /= 1000
if 
  538@ == 0
goto_if_false @PIMP_4931
if and
  21000 > $pimp_bikeostimer
  $pimp_bikeostimer > 1
goto_if_false @PIMP_4931
538@ = 1

:PIMP_4931
if 
  538@ == 0
goto_if_false @PIMP_4975
if 
  $pimp_bikeostimer > 20099
goto_if_false @PIMP_4975
538@ = 2

:PIMP_4975
if 
  538@ == 1
goto_if_false @PIMP_5009
set_var_int_to_var_int $freight_player_location = $pimp_bikeostimer
$freight_player_location /= 1000

:PIMP_5009
if 
  538@ == 2
goto_if_false @PIMP_5042
$freight_player_location = 20
sub_int_lvar_from_int_var $freight_player_location -= 514@

:PIMP_5042
Text.ClearPrints
if 
  $freight_player_location > 0
goto_if_false @PIMP_5085
Text.AddNextMessageToPreviousBriefs(False)
Text.PrintWithNumberNow('PIMP_1', $freight_player_location, 4000, 1)

:PIMP_5085
if 
  TIMERB > 21000
goto_if_false @PIMP_5129
Text.ClearPrints
Text.PrintNow('PIMP_59', 6000, 1)
goto @PIMP_37457

:PIMP_5129
if 
  41@ == -13
goto_if_false @PIMP_5204
35@(37@,2i) = Char.Create(PedType.Prostitute, 152, 1954.348, -1867.164, 12.5391)
88@ = Blip.AddForChar(35@(37@,2i))
89@ = Blip.AddForChar($scplayer)
90@ = Blip.AddForChar($scplayer)

:PIMP_5204
if 
  41@ == 0
goto_if_false @PIMP_5236
gosub @PIMP_35720
41@ = 1

:PIMP_5236
if 
  41@ == 1
goto_if_false @PIMP_11868
if 
  is_int_lvar_equal_to_constant 531@ == 1
goto_if_false @PIMP_7645
Streaming.RequestModel(63)
Streaming.RequestModel(64)

:PIMP_5280
if or
  not Streaming.HasModelLoaded(63)
  not Streaming.HasModelLoaded(64)
goto_if_false @PIMP_5310
wait 0
goto @PIMP_5280

:PIMP_5310
if 
  42@ == 0
goto_if_false @PIMP_5394
if 
  Char.IsInZone($scplayer, 'IWD')
goto_if_false @PIMP_5394
35@(37@,2i) = Char.Create(PedType.Prostitute, 64, 202@, 230@, 258@)
Char.SetHeading(35@(37@,2i), 286@)
gosub @PIMP_35592

:PIMP_5394
if 
  42@ == 0
goto_if_false @PIMP_5478
if 
  Char.IsInZone($scplayer, 'GAN')
goto_if_false @PIMP_5478
35@(37@,2i) = Char.Create(PedType.Prostitute, 64, 201@, 229@, 257@)
Char.SetHeading(35@(37@,2i), 285@)
gosub @PIMP_35592

:PIMP_5478
if 
  42@ == 0
goto_if_false @PIMP_5562
if 
  Char.IsInZone($scplayer, 'ELCO')
goto_if_false @PIMP_5562
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 200@, 228@, 256@)
Char.SetHeading(35@(37@,2i), 284@)
gosub @PIMP_35592

:PIMP_5562
if 
  42@ == 0
goto_if_false @PIMP_5646
if 
  Char.IsInZone($scplayer, 'LMEX')
goto_if_false @PIMP_5646
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 199@, 227@, 255@)
Char.SetHeading(35@(37@,2i), 283@)
gosub @PIMP_35592

:PIMP_5646
if 
  42@ == 0
goto_if_false @PIMP_5730
if 
  Char.IsInZone($scplayer, 'LDOC')
goto_if_false @PIMP_5730
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 176@, 204@, 232@)
Char.SetHeading(35@(37@,2i), 260@)
gosub @PIMP_35592

:PIMP_5730
if 
  42@ == 0
goto_if_false @PIMP_5814
if 
  Char.IsInZone($scplayer, 'LAIR')
goto_if_false @PIMP_5814
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 177@, 205@, 233@)
Char.SetHeading(35@(37@,2i), 261@)
gosub @PIMP_35592

:PIMP_5814
if 
  42@ == 0
goto_if_false @PIMP_5898
if 
  Char.IsInZone($scplayer, 'LIND')
goto_if_false @PIMP_5898
35@(37@,2i) = Char.Create(PedType.Prostitute, 64, 175@, 203@, 231@)
Char.SetHeading(35@(37@,2i), 259@)
gosub @PIMP_35592

:PIMP_5898
if 
  42@ == 0
goto_if_false @PIMP_5982
if 
  Char.IsInZone($scplayer, 'BLUF')
goto_if_false @PIMP_5982
35@(37@,2i) = Char.Create(PedType.Prostitute, 64, 176@, 204@, 232@)
Char.SetHeading(35@(37@,2i), 260@)
gosub @PIMP_35592

:PIMP_5982
if 
  42@ == 0
goto_if_false @PIMP_6066
if 
  Char.IsInZone($scplayer, 'COM')
goto_if_false @PIMP_6066
35@(37@,2i) = Char.Create(PedType.Prostitute, 64, 180@, 208@, 236@)
Char.SetHeading(35@(37@,2i), 264@)
gosub @PIMP_35592

:PIMP_6066
if 
  42@ == 0
goto_if_false @PIMP_6150
if 
  Char.IsInZone($scplayer, 'LDT')
goto_if_false @PIMP_6150
35@(37@,2i) = Char.Create(PedType.Prostitute, 64, 179@, 207@, 235@)
Char.SetHeading(35@(37@,2i), 263@)
gosub @PIMP_35592

:PIMP_6150
if 
  42@ == 0
goto_if_false @PIMP_6234
if 
  Char.IsInZone($scplayer, 'GLN')
goto_if_false @PIMP_6234
35@(37@,2i) = Char.Create(PedType.Prostitute, 64, 182@, 210@, 238@)
Char.SetHeading(35@(37@,2i), 266@)
gosub @PIMP_35592

:PIMP_6234
if 
  42@ == 0
goto_if_false @PIMP_6318
if 
  Char.IsInZone($scplayer, 'CHC')
goto_if_false @PIMP_6318
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 181@, 209@, 237@)
Char.SetHeading(35@(37@,2i), 265@)
gosub @PIMP_35592

:PIMP_6318
if 
  42@ == 0
goto_if_false @PIMP_6402
if 
  Char.IsInZone($scplayer, 'JEF')
goto_if_false @PIMP_6402
35@(37@,2i) = Char.Create(PedType.Prostitute, 64, 184@, 212@, 240@)
Char.SetHeading(35@(37@,2i), 268@)
gosub @PIMP_35592

:PIMP_6402
if 
  42@ == 0
goto_if_false @PIMP_6486
if 
  Char.IsInZone($scplayer, 'ELS')
goto_if_false @PIMP_6486
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 183@, 211@, 239@)
Char.SetHeading(35@(37@,2i), 267@)
gosub @PIMP_35592

:PIMP_6486
if 
  42@ == 0
goto_if_false @PIMP_6570
if 
  Char.IsInZone($scplayer, 'LFL')
goto_if_false @PIMP_6570
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 186@, 214@, 242@)
Char.SetHeading(35@(37@,2i), 270@)
gosub @PIMP_35592

:PIMP_6570
if 
  42@ == 0
goto_if_false @PIMP_6654
if 
  Char.IsInZone($scplayer, 'EBE')
goto_if_false @PIMP_6654
35@(37@,2i) = Char.Create(PedType.Prostitute, 64, 185@, 213@, 241@)
Char.SetHeading(35@(37@,2i), 269@)
gosub @PIMP_35592

:PIMP_6654
if 
  42@ == 0
goto_if_false @PIMP_6738
if 
  Char.IsInZone($scplayer, 'CONF')
goto_if_false @PIMP_6738
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 188@, 216@, 244@)
Char.SetHeading(35@(37@,2i), 272@)
gosub @PIMP_35592

:PIMP_6738
if 
  42@ == 0
goto_if_false @PIMP_6822
if 
  Char.IsInZone($scplayer, 'VERO')
goto_if_false @PIMP_6822
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 187@, 215@, 243@)
Char.SetHeading(35@(37@,2i), 271@)
gosub @PIMP_35592

:PIMP_6822
if 
  42@ == 0
goto_if_false @PIMP_6906
if 
  Char.IsInZone($scplayer, 'MKT')
goto_if_false @PIMP_6906
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 190@, 218@, 246@)
Char.SetHeading(35@(37@,2i), 274@)
gosub @PIMP_35592

:PIMP_6906
if 
  42@ == 0
goto_if_false @PIMP_6990
if 
  Char.IsInZone($scplayer, 'MAR')
goto_if_false @PIMP_6990
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 189@, 217@, 245@)
Char.SetHeading(35@(37@,2i), 273@)
gosub @PIMP_35592

:PIMP_6990
if 
  42@ == 0
goto_if_false @PIMP_7074
if 
  Char.IsInZone($scplayer, 'SMB')
goto_if_false @PIMP_7074
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 190@, 218@, 246@)
Char.SetHeading(35@(37@,2i), 274@)
gosub @PIMP_35592

:PIMP_7074
if 
  42@ == 0
goto_if_false @PIMP_7158
if 
  Char.IsInZone($scplayer, 'PLS')
goto_if_false @PIMP_7158
35@(37@,2i) = Char.Create(PedType.Prostitute, 64, 193@, 221@, 249@)
Char.SetHeading(35@(37@,2i), 277@)
gosub @PIMP_35592

:PIMP_7158
if 
  42@ == 0
goto_if_false @PIMP_7242
if 
  Char.IsInZone($scplayer, 'ROD')
goto_if_false @PIMP_7242
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 194@, 222@, 250@)
Char.SetHeading(35@(37@,2i), 278@)
gosub @PIMP_35592

:PIMP_7242
if 
  42@ == 0
goto_if_false @PIMP_7326
if 
  Char.IsInZone($scplayer, 'RIH')
goto_if_false @PIMP_7326
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 192@, 220@, 248@)
Char.SetHeading(35@(37@,2i), 276@)
gosub @PIMP_35592

:PIMP_7326
if 
  42@ == 0
goto_if_false @PIMP_7410
if 
  Char.IsInZone($scplayer, 'VIN')
goto_if_false @PIMP_7410
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 195@, 223@, 251@)
Char.SetHeading(35@(37@,2i), 279@)
gosub @PIMP_35592

:PIMP_7410
if 
  42@ == 0
goto_if_false @PIMP_7494
if 
  Char.IsInZone($scplayer, 'MUL')
goto_if_false @PIMP_7494
35@(37@,2i) = Char.Create(PedType.Prostitute, 63, 198@, 226@, 254@)
Char.SetHeading(35@(37@,2i), 282@)
gosub @PIMP_35592

:PIMP_7494
if 
  42@ == 0
goto_if_false @PIMP_7578
if 
  Char.IsInZone($scplayer, 'SUN')
goto_if_false @PIMP_7578
35@(37@,2i) = Char.Create(PedType.Prostitute, 64, 196@, 224@, 252@)
Char.SetHeading(35@(37@,2i), 280@)
gosub @PIMP_35592

:PIMP_7578
if 
  42@ == 0
goto_if_false @PIMP_7637
35@(37@,2i) = Char.Create(PedType.Prostitute, 64, 180@, 208@, 236@)
Char.SetHeading(35@(37@,2i), 264@)
gosub @PIMP_35592

:PIMP_7637
Streaming.MarkModelAsNoLongerNeeded(63)
Streaming.MarkModelAsNoLongerNeeded(64)

:PIMP_7645
if 
  is_int_lvar_equal_to_constant 531@ == 2
goto_if_false @PIMP_10052
Streaming.RequestModel(75)
Streaming.RequestModel(152)

:PIMP_7672
if or
  not Streaming.HasModelLoaded(75)
  not Streaming.HasModelLoaded(152)
goto_if_false @PIMP_7703
wait 0
goto @PIMP_7672

:PIMP_7703
if 
  42@ == 0
goto_if_false @PIMP_7788
if 
  Char.IsInZone($scplayer, 'CALT')
goto_if_false @PIMP_7788
35@(37@,2i) = Char.Create(PedType.Prostitute, 152, 288@, 316@, 344@)
Char.SetHeading(35@(37@,2i), 372@)
gosub @PIMP_35592

:PIMP_7788
if 
  42@ == 0
goto_if_false @PIMP_7872
if 
  Char.IsInZone($scplayer, 'JUNIHO')
goto_if_false @PIMP_7872
35@(37@,2i) = Char.Create(PedType.Prostitute, 75, 287@, 315@, 343@)
Char.SetHeading(35@(37@,2i), 371@)
gosub @PIMP_35592

:PIMP_7872
if 
  42@ == 0
goto_if_false @PIMP_7956
if 
  Char.IsInZone($scplayer, 'ESPN')
goto_if_false @PIMP_7956
35@(37@,2i) = Char.Create(PedType.Prostitute, 75, 289@, 317@, 345@)
Char.SetHeading(35@(37@,2i), 373@)
gosub @PIMP_35592

:PIMP_7956
if 
  42@ == 0
goto_if_false @PIMP_8041
if 
  Char.IsInZone($scplayer, 'JUNIHI')
goto_if_false @PIMP_8041
35@(37@,2i) = Char.Create(PedType.Prostitute, 152, 290@, 318@, 346@)
Char.SetHeading(35@(37@,2i), 374@)
gosub @PIMP_35592

:PIMP_8041
if 
  42@ == 0
goto_if_false @PIMP_8126
if 
  Char.IsInZone($scplayer, 'SUNMA')
goto_if_false @PIMP_8126
35@(37@,2i) = Char.Create(PedType.Prostitute, 152, 292@, 320@, 348@)
Char.SetHeading(35@(37@,2i), 376@)
gosub @PIMP_35592

:PIMP_8126
if 
  42@ == 0
goto_if_false @PIMP_8210
if 
  Char.IsInZone($scplayer, 'SUNNN')
goto_if_false @PIMP_8210
35@(37@,2i) = Char.Create(PedType.Prostitute, 75, 291@, 319@, 347@)
Char.SetHeading(35@(37@,2i), 375@)
gosub @PIMP_35592

:PIMP_8210
if 
  42@ == 0
goto_if_false @PIMP_8294
if 
  Char.IsInZone($scplayer, 'BATTP')
goto_if_false @PIMP_8294
35@(37@,2i) = Char.Create(PedType.Prostitute, 75, 294@, 322@, 350@)
Char.SetHeading(35@(37@,2i), 378@)
gosub @PIMP_35592

:PIMP_8294
if 
  42@ == 0
goto_if_false @PIMP_8379
if 
  Char.IsInZone($scplayer, 'GANTB')
goto_if_false @PIMP_8379
35@(37@,2i) = Char.Create(PedType.Prostitute, 152, 293@, 321@, 349@)
Char.SetHeading(35@(37@,2i), 377@)
gosub @PIMP_35592

:PIMP_8379
if 
  42@ == 0
goto_if_false @PIMP_8464
if 
  Char.IsInZone($scplayer, 'CHINA')
goto_if_false @PIMP_8464
35@(37@,2i) = Char.Create(PedType.Prostitute, 152, 296@, 324@, 352@)
Char.SetHeading(35@(37@,2i), 380@)
gosub @PIMP_35592

:PIMP_8464
if 
  42@ == 0
goto_if_false @PIMP_8548
if 
  Char.IsInZone($scplayer, 'SFDWT')
goto_if_false @PIMP_8548
35@(37@,2i) = Char.Create(PedType.Prostitute, 75, 295@, 323@, 351@)
Char.SetHeading(35@(37@,2i), 379@)
gosub @PIMP_35592

:PIMP_8548
if 
  42@ == 0
goto_if_false @PIMP_8632
if 
  Char.IsInZone($scplayer, 'FINA')
goto_if_false @PIMP_8632
35@(37@,2i) = Char.Create(PedType.Prostitute, 75, 298@, 326@, 354@)
Char.SetHeading(35@(37@,2i), 382@)
gosub @PIMP_35592

:PIMP_8632
if 
  42@ == 0
goto_if_false @PIMP_8717
if 
  Char.IsInZone($scplayer, 'ESPE')
goto_if_false @PIMP_8717
35@(37@,2i) = Char.Create(PedType.Prostitute, 152, 297@, 325@, 353@)
Char.SetHeading(35@(37@,2i), 381@)
gosub @PIMP_35592

:PIMP_8717
if 
  42@ == 0
goto_if_false @PIMP_8802
if 
  Char.IsInZone($scplayer, 'WESTP')
goto_if_false @PIMP_8802
35@(37@,2i) = Char.Create(PedType.Prostitute, 152, 300@, 328@, 356@)
Char.SetHeading(35@(37@,2i), 384@)
gosub @PIMP_35592

:PIMP_8802
if 
  42@ == 0
goto_if_false @PIMP_8886
if 
  Char.IsInZone($scplayer, 'HASH')
goto_if_false @PIMP_8886
35@(37@,2i) = Char.Create(PedType.Prostitute, 75, 299@, 327@, 355@)
Char.SetHeading(35@(37@,2i), 383@)
gosub @PIMP_35592

:PIMP_8886
if 
  42@ == 0
goto_if_false @PIMP_8971
if 
  Char.IsInZone($scplayer, 'OCEAF')
goto_if_false @PIMP_8971
35@(37@,2i) = Char.Create(PedType.Prostitute, 152, 302@, 330@, 358@)
Char.SetHeading(35@(37@,2i), 386@)
gosub @PIMP_35592

:PIMP_8971
if 
  42@ == 0
goto_if_false @PIMP_9055
if 
  Char.IsInZone($scplayer, 'CUNTC')
goto_if_false @PIMP_9055
35@(37@,2i) = Char.Create(PedType.Prostitute, 75, 301@, 329@, 357@)
Char.SetHeading(35@(37@,2i), 385@)
gosub @PIMP_35592

:PIMP_9055
if 
  42@ == 0
goto_if_false @PIMP_9140
if 
  Char.IsInZone($scplayer, 'THEA')
goto_if_false @PIMP_9140
35@(37@,2i) = Char.Create(PedType.Prostitute, 152, 304@, 332@, 360@)
Char.SetHeading(35@(37@,2i), 388@)
gosub @PIMP_35592

:PIMP_9140
if 
  42@ == 0
goto_if_false @PIMP_9224
if 
  Char.IsInZone($scplayer, 'GARC')
goto_if_false @PIMP_9224
35@(37@,2i) = Char.Create(PedType.Prostitute, 75, 303@, 331@, 359@)
Char.SetHeading(35@(37@,2i), 387@)
gosub @PIMP_35592

:PIMP_9224
if 
  42@ == 0
goto_if_false @PIMP_9309
if 
  Char.IsInZone($scplayer, 'DOH')
goto_if_false @PIMP_9309
35@(37@,2i) = Char.Create(PedType.Prostitute, 152, 306@, 334@, 362@)
Char.SetHeading(35@(37@,2i), 390@)
gosub @PIMP_35592

:PIMP_9309
if 
  42@ == 0
goto_if_false @PIMP_9393
if 
  Char.IsInZone($scplayer, 'EASB')
goto_if_false @PIMP_9393
35@(37@,2i) = Char.Create(PedType.Prostitute, 75, 305@, 333@, 361@)
Char.SetHeading(35@(37@,2i), 389@)
gosub @PIMP_35592

:PIMP_9393
if 
  42@ == 0
goto_if_false @PIMP_9477
if 
  Char.IsInZone($scplayer, 'HILLP')
goto_if_false @PIMP_9477
35@(37@,2i) = Char.Create(PedType.Prostitute, 75, 308@, 336@, 364@)
Char.SetHeading(35@(37@,2i), 392@)
gosub @PIMP_35592

:PIMP_9477
if 
  42@ == 0
goto_if_false @PIMP_9562
if 
  Char.IsInZone($scplayer, 'SILLY')
goto_if_false @PIMP_9562
35@(37@,2i) = Char.Create(PedType.Prostitute, 152, 309@, 337@, 365@)
Char.SetHeading(35@(37@,2i), 393@)
gosub @PIMP_35592

:PIMP_9562
if 
  42@ == 0
goto_if_false @PIMP_9646
if 
  Char.IsInZone($scplayer, 'SFAIR')
goto_if_false @PIMP_9646
35@(37@,2i) = Char.Create(PedType.Prostitute, 75, 307@, 335@, 363@)
Char.SetHeading(35@(37@,2i), 391@)
gosub @PIMP_35592

:PIMP_9646
if 
  42@ == 0
goto_if_false @PIMP_9730
if 
  Char.IsInZone($scplayer, 'BAYV')
goto_if_false @PIMP_9730
35@(37@,2i) = Char.Create(PedType.Prostitute, 75, 311@, 339@, 367@)
Char.SetHeading(35@(37@,2i), 395@)
gosub @PIMP_35592

:PIMP_9730
if 
  42@ == 0
goto_if_false @PIMP_9815
if 
  Char.IsInZone($scplayer, 'PARA')
goto_if_false @PIMP_9815
35@(37@,2i) = Char.Create(PedType.Prostitute, 152, 310@, 338@, 366@)
Char.SetHeading(35@(37@,2i), 394@)
gosub @PIMP_35592

:PIMP_9815
if 
  42@ == 0
goto_if_false @PIMP_9900
if 
  Char.IsInZone($scplayer, 'CIVI')
goto_if_false @PIMP_9900
35@(37@,2i) = Char.Create(PedType.Prostitute, 152, 313@, 341@, 369@)
Char.SetHeading(35@(37@,2i), 397@)
gosub @PIMP_35592

:PIMP_9900
if 
  42@ == 0
goto_if_false @PIMP_9984
if 
  Char.IsInZone($scplayer, 'CITYS')
goto_if_false @PIMP_9984
35@(37@,2i) = Char.Create(PedType.Prostitute, 75, 312@, 340@, 368@)
Char.SetHeading(35@(37@,2i), 396@)
gosub @PIMP_35592

:PIMP_9984
if 
  42@ == 0
goto_if_false @PIMP_10043
35@(37@,2i) = Char.Create(PedType.Prostitute, 75, 287@, 315@, 343@)
Char.SetHeading(35@(37@,2i), 371@)
gosub @PIMP_35592

:PIMP_10043
Streaming.MarkModelAsNoLongerNeeded(75)
Streaming.MarkModelAsNoLongerNeeded(152)

:PIMP_10052
if 
  is_int_lvar_equal_to_constant 531@ == 3
goto_if_false @PIMP_11868
Streaming.RequestModel(85)
Streaming.RequestModel(245)

:PIMP_10079
if or
  not Streaming.HasModelLoaded(85)
  not Streaming.HasModelLoaded(245)
goto_if_false @PIMP_10110
wait 0
goto @PIMP_10079

:PIMP_10110
if 
  42@ == 0
goto_if_false @PIMP_10194
if 
  Char.IsInZone($scplayer, 'PINK')
goto_if_false @PIMP_10194
35@(37@,2i) = Char.Create(PedType.Prostitute, 85, 400@, 428@, 456@)
Char.SetHeading(35@(37@,2i), 484@)
gosub @PIMP_35592

:PIMP_10194
if 
  42@ == 0
goto_if_false @PIMP_10278
if 
  Char.IsInZone($scplayer, 'DRAG')
goto_if_false @PIMP_10278
35@(37@,2i) = Char.Create(PedType.Prostitute, 85, 399@, 427@, 455@)
Char.SetHeading(35@(37@,2i), 483@)
gosub @PIMP_35592

:PIMP_10278
if 
  42@ == 0
goto_if_false @PIMP_10363
if 
  Char.IsInZone($scplayer, 'CAM')
goto_if_false @PIMP_10363
35@(37@,2i) = Char.Create(PedType.Prostitute, 245, 402@, 430@, 458@)
Char.SetHeading(35@(37@,2i), 486@)
gosub @PIMP_35592

:PIMP_10363
if 
  42@ == 0
goto_if_false @PIMP_10448
if 
  Char.IsInZone($scplayer, 'LOT')
goto_if_false @PIMP_10448
35@(37@,2i) = Char.Create(PedType.Prostitute, 245, 401@, 429@, 457@)
Char.SetHeading(35@(37@,2i), 485@)
gosub @PIMP_35592

:PIMP_10448
if 
  42@ == 0
goto_if_false @PIMP_10532
if 
  Char.IsInZone($scplayer, 'PIRA')
goto_if_false @PIMP_10532
35@(37@,2i) = Char.Create(PedType.Prostitute, 85, 404@, 432@, 460@)
Char.SetHeading(35@(37@,2i), 488@)
gosub @PIMP_35592

:PIMP_10532
if 
  42@ == 0
goto_if_false @PIMP_10616
if 
  Char.IsInZone($scplayer, 'ROY')
goto_if_false @PIMP_10616
35@(37@,2i) = Char.Create(PedType.Prostitute, 85, 403@, 431@, 459@)
Char.SetHeading(35@(37@,2i), 487@)
gosub @PIMP_35592

:PIMP_10616
if 
  42@ == 0
goto_if_false @PIMP_10701
if 
  Char.IsInZone($scplayer, 'CALI')
goto_if_false @PIMP_10701
35@(37@,2i) = Char.Create(PedType.Prostitute, 245, 406@, 434@, 462@)
Char.SetHeading(35@(37@,2i), 490@)
gosub @PIMP_35592

:PIMP_10701
if 
  42@ == 0
goto_if_false @PIMP_10786
if 
  Char.IsInZone($scplayer, 'HIGH')
goto_if_false @PIMP_10786
35@(37@,2i) = Char.Create(PedType.Prostitute, 245, 405@, 433@, 461@)
Char.SetHeading(35@(37@,2i), 489@)
gosub @PIMP_35592

:PIMP_10786
if 
  42@ == 0
goto_if_false @PIMP_10870
if 
  Char.IsInZone($scplayer, 'PILG')
goto_if_false @PIMP_10870
35@(37@,2i) = Char.Create(PedType.Prostitute, 85, 408@, 436@, 464@)
Char.SetHeading(35@(37@,2i), 492@)
gosub @PIMP_35592

:PIMP_10870
if 
  42@ == 0
goto_if_false @PIMP_10954
if 
  Char.IsInZone($scplayer, 'STAR')
goto_if_false @PIMP_10954
35@(37@,2i) = Char.Create(PedType.Prostitute, 85, 407@, 435@, 463@)
Char.SetHeading(35@(37@,2i), 491@)
gosub @PIMP_35592

:PIMP_10954
if 
  42@ == 0
goto_if_false @PIMP_11039
if 
  Char.IsInZone($scplayer, 'STRIP')
goto_if_false @PIMP_11039
35@(37@,2i) = Char.Create(PedType.Prostitute, 245, 410@, 438@, 466@)
Char.SetHeading(35@(37@,2i), 494@)
gosub @PIMP_35592

:PIMP_11039
if 
  42@ == 0
goto_if_false @PIMP_11124
if 
  Char.IsInZone($scplayer, 'VISA')
goto_if_false @PIMP_11124
35@(37@,2i) = Char.Create(PedType.Prostitute, 245, 409@, 437@, 465@)
Char.SetHeading(35@(37@,2i), 493@)
gosub @PIMP_35592

:PIMP_11124
if 
  42@ == 0
goto_if_false @PIMP_11208
if 
  Char.IsInZone($scplayer, 'ISLE')
goto_if_false @PIMP_11208
35@(37@,2i) = Char.Create(PedType.Prostitute, 85, 412@, 440@, 468@)
Char.SetHeading(35@(37@,2i), 496@)
gosub @PIMP_35592

:PIMP_11208
if 
  42@ == 0
goto_if_false @PIMP_11292
if 
  Char.IsInZone($scplayer, 'ROCE')
goto_if_false @PIMP_11292
35@(37@,2i) = Char.Create(PedType.Prostitute, 85, 411@, 439@, 467@)
Char.SetHeading(35@(37@,2i), 495@)
gosub @PIMP_35592

:PIMP_11292
if 
  42@ == 0
goto_if_false @PIMP_11377
if 
  Char.IsInZone($scplayer, 'OVS')
goto_if_false @PIMP_11377
35@(37@,2i) = Char.Create(PedType.Prostitute, 245, 414@, 442@, 470@)
Char.SetHeading(35@(37@,2i), 498@)
gosub @PIMP_35592

:PIMP_11377
if 
  42@ == 0
goto_if_false @PIMP_11462
if 
  Char.IsInZone($scplayer, 'RING')
goto_if_false @PIMP_11462
35@(37@,2i) = Char.Create(PedType.Prostitute, 245, 413@, 441@, 469@)
Char.SetHeading(35@(37@,2i), 497@)
gosub @PIMP_35592

:PIMP_11462
if 
  42@ == 0
goto_if_false @PIMP_11546
if 
  Char.IsInZone($scplayer, 'BFC')
goto_if_false @PIMP_11546
35@(37@,2i) = Char.Create(PedType.Prostitute, 85, 416@, 444@, 472@)
Char.SetHeading(35@(37@,2i), 500@)
gosub @PIMP_35592

:PIMP_11546
if 
  42@ == 0
goto_if_false @PIMP_11630
if 
  Char.IsInZone($scplayer, 'GGC')
goto_if_false @PIMP_11630
35@(37@,2i) = Char.Create(PedType.Prostitute, 85, 415@, 443@, 471@)
Char.SetHeading(35@(37@,2i), 499@)
gosub @PIMP_35592

:PIMP_11630
if 
  42@ == 0
goto_if_false @PIMP_11715
if 
  Char.IsInZone($scplayer, 'VAIR')
goto_if_false @PIMP_11715
35@(37@,2i) = Char.Create(PedType.Prostitute, 245, 418@, 446@, 474@)
Char.SetHeading(35@(37@,2i), 502@)
gosub @PIMP_35592

:PIMP_11715
if 
  42@ == 0
goto_if_false @PIMP_11800
if 
  Char.IsInZone($scplayer, 'LDM')
goto_if_false @PIMP_11800
35@(37@,2i) = Char.Create(PedType.Prostitute, 245, 417@, 445@, 473@)
Char.SetHeading(35@(37@,2i), 501@)
gosub @PIMP_35592

:PIMP_11800
if 
  42@ == 0
goto_if_false @PIMP_11859
35@(37@,2i) = Char.Create(PedType.Prostitute, 85, 399@, 427@, 455@)
Char.SetHeading(35@(37@,2i), 483@)
gosub @PIMP_35592

:PIMP_11859
Streaming.MarkModelAsNoLongerNeeded(85)
Streaming.MarkModelAsNoLongerNeeded(245)

:PIMP_11868
if 
  42@ == 1
goto_if_false @PIMP_12083
if 
  not Char.IsDead(35@(37@,2i))
goto_if_false @PIMP_12083
Task.StandStill(35@(37@,2i), -1)
Blip.Remove(88@)
88@ = Blip.AddForChar(35@(37@,2i))
Char.SetDecisionMaker(35@(37@,2i), 518@)
Char.SetOnlyDamagedByPlayer(35@(37@,2i), True)
Char.SetCantBeDraggedOut(35@(37@,2i), True)
Blip.SetAsFriendly(88@, True)
if 
  37@ == 0
goto_if_false @PIMP_12022
Text.ClearPrints
Text.PrintNow('PIMP_2', 6000, 1)
Char.SetCantBeDraggedOut(35@(37@,2i), True)

:PIMP_12022
if 
  37@ == 1
goto_if_false @PIMP_12069
Text.ClearPrints
Text.PrintNow('PIMP_30', 6000, 1)
Char.SetCantBeDraggedOut(35@(37@,2i), True)

:PIMP_12069
42@ = 2
43@ = 1

:PIMP_12083
if 
  43@ == 1
goto_if_false @PIMP_12229
if 
  Char.DoesExist(35@)
goto_if_false @PIMP_12156
if 
  Char.IsDead(35@)
goto_if_false @PIMP_12156
Text.PrintNow('PIMP_51', 8000, 1)
goto @PIMP_37457

:PIMP_12156
if 
  52@ == 1
goto_if_false @PIMP_12229
if 
  Char.DoesExist(36@)
goto_if_false @PIMP_12229
if 
  Char.IsDead(36@)
goto_if_false @PIMP_12229
Text.PrintNow('PIMP_51', 8000, 1)
goto @PIMP_37457

:PIMP_12229
if 
  42@ == 2
goto_if_false @PIMP_12871
if 
  523@ == 1
goto_if_false @PIMP_12307
if 
  TIMERA > 4000
goto_if_false @PIMP_12307
Text.PrintNow('PIMP_57', 6000, 1)
523@ = 99

:PIMP_12307
if 
  not Char.IsDead(35@(37@,2i))
goto_if_false @PIMP_12871
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_12871
if 
  521@ == 0
goto_if_false @PIMP_12407
if 
  not Char.IsInCar($scplayer, 40@)
goto_if_false @PIMP_12407
522@ = Blip.AddForCar(40@)
Blip.SetAsFriendly(522@, True)
Blip.Remove(88@)
521@ = 1

:PIMP_12407
if 
  521@ == 1
goto_if_false @PIMP_12503
if 
  Char.IsInCar($scplayer, 40@)
goto_if_false @PIMP_12503
Blip.Remove(522@)
521@ = 0
Blip.Remove(88@)
88@ = Blip.AddForChar(35@(37@,2i))
Blip.SetAsFriendly(88@, True)
Text.PrintNow('PIMP_54', 6000, 1)
521@ = 0

:PIMP_12503
if 
  44@ == 0
goto_if_false @PIMP_12690
if 
  521@ == 0
goto_if_false @PIMP_12690
if 
  Char.LocateInCarChar2D($scplayer, 35@(37@,2i), 7.0, 7.0, False)
goto_if_false @PIMP_12690
if 
  45@ == 0
goto_if_false @PIMP_12639
38@ = Sequence.Open()
Task.TurnCharToFaceChar(-1, $scplayer)
Task.StandStill(-1, -1)
Sequence.Close(38@)
Char.PerformSequence(35@(37@,2i), 38@)
Sequence.Clear(38@)
45@ = 1

:PIMP_12639
if 
  Car.IsStopped(40@)
goto_if_false @PIMP_12690
Char.ClearTasks(35@(37@,2i))
Task.EnterCarAsPassenger(35@(37@,2i), 40@, 60000, -1)
44@ = 1

:PIMP_12690
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_12871
if 
  not Char.IsDead(35@(37@,2i))
goto_if_false @PIMP_12871
if 
  Char.IsSittingInCar(35@(37@,2i), 40@)
goto_if_false @PIMP_12871
if 
  2 > 56@
goto_if_false @PIMP_12781
56@ += 1
Stat.IncrementInt(StatId.NumGirlsPimped, 1)

:PIMP_12781
44@ = 2
Blip.Remove(88@)
42@ = 99
47@ = 1
gosub @PIMP_35720
520@ = 1
TIMERA = 0
if 
  49@ == 10
goto_if_false @PIMP_12871
Text.ClearPrints
Text.PrintNow('SEXGOD', 6000, 1)
goto @PIMP_37799

:PIMP_12871
if 
  44@ == 1
goto_if_false @PIMP_13009
if 
  not Char.IsDead(35@(37@,2i))
goto_if_false @PIMP_13009
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_13009
539@ = Char.GetScriptTaskStatus(35@(37@,2i), 1482)
if 
  is_int_lvar_equal_to_constant 539@ == 7
goto_if_false @PIMP_13009
if 
  not Char.IsInCar(35@(37@,2i), 40@)
goto_if_false @PIMP_13009
Char.ClearTasks(35@(37@,2i))
Task.EnterCarAsPassenger(35@(37@,2i), 40@, 60000, -1)

:PIMP_13009
if 
  47@ == 1
goto_if_false @PIMP_29180
if 
  is_int_lvar_equal_to_constant 531@ == 1
goto_if_false @PIMP_19043
if 
  58@ == 1
goto_if_false @PIMP_13899
if 
  60@ == 1
goto_if_false @PIMP_13142
if 
  61@ == 1
goto_if_false @PIMP_13142
if 
  62@ == 1
goto_if_false @PIMP_13142
if 
  63@ == 1
goto_if_false @PIMP_13142
58@ = 2

:PIMP_13142
50@ = Math.RandomIntInRange(0, 4)
if 
  50@ == 0
goto_if_false @PIMP_13338
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_13338
Streaming.RequestModel(72)

:PIMP_13195
if 
  not Streaming.HasModelLoaded(72)
goto_if_false @PIMP_13221
wait 0
goto @PIMP_13195

:PIMP_13221
91@(50@,28i) = Char.Create(PedType.CivMale, 72, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(72)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_10', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_13338
if 
  50@ == 1
goto_if_false @PIMP_13525
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_13525
Streaming.RequestModel(72)

:PIMP_13382
if 
  not Streaming.HasModelLoaded(72)
goto_if_false @PIMP_13408
wait 0
goto @PIMP_13382

:PIMP_13408
91@(50@,28i) = Char.Create(PedType.CivMale, 72, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(72)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_11', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_13525
if 
  50@ == 2
goto_if_false @PIMP_13712
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_13712
Streaming.RequestModel(72)

:PIMP_13569
if 
  not Streaming.HasModelLoaded(72)
goto_if_false @PIMP_13595
wait 0
goto @PIMP_13569

:PIMP_13595
91@(50@,28i) = Char.Create(PedType.CivMale, 72, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(72)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_12', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_13712
if 
  50@ == 3
goto_if_false @PIMP_13899
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_13899
Streaming.RequestModel(22)

:PIMP_13756
if 
  not Streaming.HasModelLoaded(22)
goto_if_false @PIMP_13782
wait 0
goto @PIMP_13756

:PIMP_13782
91@(50@,28i) = Char.Create(PedType.CivMale, 22, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(22)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_13', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_13899
if 
  58@ == 2
goto_if_false @PIMP_14757
if 
  64@ == 1
goto_if_false @PIMP_13996
if 
  65@ == 1
goto_if_false @PIMP_13996
if 
  66@ == 1
goto_if_false @PIMP_13996
if 
  67@ == 1
goto_if_false @PIMP_13996
58@ = 3

:PIMP_13996
50@ = Math.RandomIntInRange(4, 8)
if 
  50@ == 4
goto_if_false @PIMP_14192
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_14192
Streaming.RequestModel(22)

:PIMP_14049
if 
  not Streaming.HasModelLoaded(22)
goto_if_false @PIMP_14075
wait 0
goto @PIMP_14049

:PIMP_14075
91@(50@,28i) = Char.Create(PedType.CivMale, 22, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(22)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_14', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_14192
if 
  50@ == 5
goto_if_false @PIMP_14383
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_14383
Streaming.RequestModel(147)

:PIMP_14237
if 
  not Streaming.HasModelLoaded(147)
goto_if_false @PIMP_14264
wait 0
goto @PIMP_14237

:PIMP_14264
91@(50@,28i) = Char.Create(PedType.CivMale, 147, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(147)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_15', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_14383
if 
  50@ == 6
goto_if_false @PIMP_14570
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_14570
Streaming.RequestModel(22)

:PIMP_14427
if 
  not Streaming.HasModelLoaded(22)
goto_if_false @PIMP_14453
wait 0
goto @PIMP_14427

:PIMP_14453
91@(50@,28i) = Char.Create(PedType.CivMale, 22, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(22)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_16', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_14570
if 
  50@ == 7
goto_if_false @PIMP_14757
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_14757
Streaming.RequestModel(22)

:PIMP_14614
if 
  not Streaming.HasModelLoaded(22)
goto_if_false @PIMP_14640
wait 0
goto @PIMP_14614

:PIMP_14640
91@(50@,28i) = Char.Create(PedType.CivMale, 22, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(22)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_17', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_14757
if 
  58@ == 3
goto_if_false @PIMP_15615
if 
  68@ == 1
goto_if_false @PIMP_14854
if 
  69@ == 1
goto_if_false @PIMP_14854
if 
  70@ == 1
goto_if_false @PIMP_14854
if 
  71@ == 1
goto_if_false @PIMP_14854
58@ = 4

:PIMP_14854
50@ = Math.RandomIntInRange(8, 12)
if 
  50@ == 8
goto_if_false @PIMP_15050
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_15050
Streaming.RequestModel(68)

:PIMP_14907
if 
  not Streaming.HasModelLoaded(68)
goto_if_false @PIMP_14933
wait 0
goto @PIMP_14907

:PIMP_14933
91@(50@,28i) = Char.Create(PedType.CivMale, 68, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(68)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_18', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_15050
if 
  50@ == 9
goto_if_false @PIMP_15237
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_15237
Streaming.RequestModel(48)

:PIMP_15094
if 
  not Streaming.HasModelLoaded(48)
goto_if_false @PIMP_15120
wait 0
goto @PIMP_15094

:PIMP_15120
91@(50@,28i) = Char.Create(PedType.CivMale, 48, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(48)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_19', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_15237
if 
  50@ == 10
goto_if_false @PIMP_15424
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_15424
Streaming.RequestModel(48)

:PIMP_15281
if 
  not Streaming.HasModelLoaded(48)
goto_if_false @PIMP_15307
wait 0
goto @PIMP_15281

:PIMP_15307
91@(50@,28i) = Char.Create(PedType.CivMale, 48, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(48)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_20', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_15424
if 
  50@ == 11
goto_if_false @PIMP_15615
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_15615
Streaming.RequestModel(147)

:PIMP_15469
if 
  not Streaming.HasModelLoaded(147)
goto_if_false @PIMP_15496
wait 0
goto @PIMP_15469

:PIMP_15496
91@(50@,28i) = Char.Create(PedType.CivMale, 147, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(147)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_21', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_15615
if 
  58@ == 4
goto_if_false @PIMP_16473
if 
  72@ == 1
goto_if_false @PIMP_15712
if 
  73@ == 1
goto_if_false @PIMP_15712
if 
  74@ == 1
goto_if_false @PIMP_15712
if 
  75@ == 1
goto_if_false @PIMP_15712
58@ = 5

:PIMP_15712
50@ = Math.RandomIntInRange(12, 16)
if 
  50@ == 12
goto_if_false @PIMP_15912
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_15912
Streaming.RequestModel(147)

:PIMP_15766
if 
  not Streaming.HasModelLoaded(147)
goto_if_false @PIMP_15793
wait 0
goto @PIMP_15766

:PIMP_15793
91@(50@,28i) = Char.Create(PedType.CivMale, 147, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(147)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_22', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_15912
if 
  50@ == 13
goto_if_false @PIMP_16099
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_16099
Streaming.RequestModel(23)

:PIMP_15956
if 
  not Streaming.HasModelLoaded(23)
goto_if_false @PIMP_15982
wait 0
goto @PIMP_15956

:PIMP_15982
91@(50@,28i) = Char.Create(PedType.CivMale, 23, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(23)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_23', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_16099
if 
  50@ == 14
goto_if_false @PIMP_16286
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_16286
Streaming.RequestModel(17)

:PIMP_16143
if 
  not Streaming.HasModelLoaded(17)
goto_if_false @PIMP_16169
wait 0
goto @PIMP_16143

:PIMP_16169
91@(50@,28i) = Char.Create(PedType.CivMale, 17, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(17)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_24', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_16286
if 
  50@ == 15
goto_if_false @PIMP_16473
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_16473
Streaming.RequestModel(50)

:PIMP_16330
if 
  not Streaming.HasModelLoaded(50)
goto_if_false @PIMP_16356
wait 0
goto @PIMP_16330

:PIMP_16356
91@(50@,28i) = Char.Create(PedType.CivMale, 50, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(50)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_25', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_16473
if 
  58@ == 5
goto_if_false @PIMP_17331
if 
  76@ == 1
goto_if_false @PIMP_16570
if 
  77@ == 1
goto_if_false @PIMP_16570
if 
  78@ == 1
goto_if_false @PIMP_16570
if 
  79@ == 1
goto_if_false @PIMP_16570
58@ = 6

:PIMP_16570
50@ = Math.RandomIntInRange(16, 20)
if 
  50@ == 16
goto_if_false @PIMP_16770
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_16770
Streaming.RequestModel(147)

:PIMP_16624
if 
  not Streaming.HasModelLoaded(147)
goto_if_false @PIMP_16651
wait 0
goto @PIMP_16624

:PIMP_16651
91@(50@,28i) = Char.Create(PedType.CivMale, 147, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(147)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_26', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_16770
if 
  50@ == 17
goto_if_false @PIMP_16957
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_16957
Streaming.RequestModel(48)

:PIMP_16814
if 
  not Streaming.HasModelLoaded(48)
goto_if_false @PIMP_16840
wait 0
goto @PIMP_16814

:PIMP_16840
91@(50@,28i) = Char.Create(PedType.CivMale, 48, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(48)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_27', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_16957
if 
  50@ == 18
goto_if_false @PIMP_17144
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_17144
Streaming.RequestModel(23)

:PIMP_17001
if 
  not Streaming.HasModelLoaded(23)
goto_if_false @PIMP_17027
wait 0
goto @PIMP_17001

:PIMP_17027
91@(50@,28i) = Char.Create(PedType.CivMale, 23, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(23)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_28', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_17144
if 
  50@ == 19
goto_if_false @PIMP_17331
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_17331
Streaming.RequestModel(17)

:PIMP_17188
if 
  not Streaming.HasModelLoaded(17)
goto_if_false @PIMP_17214
wait 0
goto @PIMP_17188

:PIMP_17214
91@(50@,28i) = Char.Create(PedType.CivMale, 17, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(17)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_29', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_17331
if 
  58@ == 6
goto_if_false @PIMP_18185
if 
  80@ == 1
goto_if_false @PIMP_17428
if 
  81@ == 1
goto_if_false @PIMP_17428
if 
  82@ == 1
goto_if_false @PIMP_17428
if 
  83@ == 1
goto_if_false @PIMP_17428
58@ = 7

:PIMP_17428
50@ = Math.RandomIntInRange(20, 24)
if 
  50@ == 20
goto_if_false @PIMP_17624
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_17624
Streaming.RequestModel(36)

:PIMP_17481
if 
  not Streaming.HasModelLoaded(36)
goto_if_false @PIMP_17507
wait 0
goto @PIMP_17481

:PIMP_17507
91@(50@,28i) = Char.Create(PedType.CivMale, 36, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(36)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_80', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_17624
if 
  50@ == 21
goto_if_false @PIMP_17811
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_17811
Streaming.RequestModel(50)

:PIMP_17668
if 
  not Streaming.HasModelLoaded(50)
goto_if_false @PIMP_17694
wait 0
goto @PIMP_17668

:PIMP_17694
91@(50@,28i) = Char.Create(PedType.CivMale, 50, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(50)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_81', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_17811
if 
  50@ == 22
goto_if_false @PIMP_17998
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_17998
Streaming.RequestModel(48)

:PIMP_17855
if 
  not Streaming.HasModelLoaded(48)
goto_if_false @PIMP_17881
wait 0
goto @PIMP_17855

:PIMP_17881
91@(50@,28i) = Char.Create(PedType.CivMale, 48, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(48)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_82', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_17998
if 
  50@ == 23
goto_if_false @PIMP_18185
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_18185
Streaming.RequestModel(68)

:PIMP_18042
if 
  not Streaming.HasModelLoaded(68)
goto_if_false @PIMP_18068
wait 0
goto @PIMP_18042

:PIMP_18068
91@(50@,28i) = Char.Create(PedType.CivMale, 68, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(68)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_83', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_18185
if 
  58@ == 7
goto_if_false @PIMP_19043
if 
  84@ == 1
goto_if_false @PIMP_18282
if 
  85@ == 1
goto_if_false @PIMP_18282
if 
  86@ == 1
goto_if_false @PIMP_18282
if 
  87@ == 1
goto_if_false @PIMP_18282
58@ = 1

:PIMP_18282
50@ = Math.RandomIntInRange(24, 28)
if 
  50@ == 24
goto_if_false @PIMP_18482
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_18482
Streaming.RequestModel(163)

:PIMP_18336
if 
  not Streaming.HasModelLoaded(163)
goto_if_false @PIMP_18363
wait 0
goto @PIMP_18336

:PIMP_18363
91@(50@,28i) = Char.Create(PedType.CivMale, 163, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(163)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_84', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_18482
if 
  50@ == 25
goto_if_false @PIMP_18669
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_18669
Streaming.RequestModel(19)

:PIMP_18526
if 
  not Streaming.HasModelLoaded(19)
goto_if_false @PIMP_18552
wait 0
goto @PIMP_18526

:PIMP_18552
91@(50@,28i) = Char.Create(PedType.CivMale, 19, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(19)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_85', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_18669
if 
  50@ == 26
goto_if_false @PIMP_18856
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_18856
Streaming.RequestModel(29)

:PIMP_18713
if 
  not Streaming.HasModelLoaded(29)
goto_if_false @PIMP_18739
wait 0
goto @PIMP_18713

:PIMP_18739
91@(50@,28i) = Char.Create(PedType.CivMale, 29, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(29)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_86', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_18856
if 
  50@ == 27
goto_if_false @PIMP_19043
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_19043
Streaming.RequestModel(48)

:PIMP_18900
if 
  not Streaming.HasModelLoaded(48)
goto_if_false @PIMP_18926
wait 0
goto @PIMP_18900

:PIMP_18926
91@(50@,28i) = Char.Create(PedType.CivMale, 48, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f))
Char.SetHeading(91@(50@,28i), 259@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(48)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP_87', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_19043
if 
  is_int_lvar_equal_to_constant 531@ == 2
goto_if_false @PIMP_24880
if 
  58@ == 1
goto_if_false @PIMP_19915
if 
  60@ == 1
goto_if_false @PIMP_19158
if 
  61@ == 1
goto_if_false @PIMP_19158
if 
  62@ == 1
goto_if_false @PIMP_19158
if 
  63@ == 1
goto_if_false @PIMP_19158
58@ = 2

:PIMP_19158
50@ = Math.RandomIntInRange(0, 4)
if 
  50@ == 0
goto_if_false @PIMP_19354
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_19354
Streaming.RequestModel(72)

:PIMP_19211
if 
  not Streaming.HasModelLoaded(72)
goto_if_false @PIMP_19237
wait 0
goto @PIMP_19211

:PIMP_19237
91@(50@,28i) = Char.Create(PedType.CivMale, 72, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(72)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP200', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_19354
if 
  50@ == 1
goto_if_false @PIMP_19541
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_19541
Streaming.RequestModel(72)

:PIMP_19398
if 
  not Streaming.HasModelLoaded(72)
goto_if_false @PIMP_19424
wait 0
goto @PIMP_19398

:PIMP_19424
91@(50@,28i) = Char.Create(PedType.CivMale, 72, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(72)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP201', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_19541
if 
  50@ == 2
goto_if_false @PIMP_19728
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_19728
Streaming.RequestModel(50)

:PIMP_19585
if 
  not Streaming.HasModelLoaded(50)
goto_if_false @PIMP_19611
wait 0
goto @PIMP_19585

:PIMP_19611
91@(50@,28i) = Char.Create(PedType.CivMale, 50, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(50)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP202', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_19728
if 
  50@ == 3
goto_if_false @PIMP_19915
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_19915
Streaming.RequestModel(50)

:PIMP_19772
if 
  not Streaming.HasModelLoaded(50)
goto_if_false @PIMP_19798
wait 0
goto @PIMP_19772

:PIMP_19798
91@(50@,28i) = Char.Create(PedType.CivMale, 50, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(50)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP203', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_19915
if 
  58@ == 2
goto_if_false @PIMP_20795
if 
  64@ == 1
goto_if_false @PIMP_20012
if 
  65@ == 1
goto_if_false @PIMP_20012
if 
  66@ == 1
goto_if_false @PIMP_20012
if 
  67@ == 1
goto_if_false @PIMP_20012
58@ = 3

:PIMP_20012
50@ = Math.RandomIntInRange(4, 8)
if 
  50@ == 4
goto_if_false @PIMP_20219
60@(50@,28i) = 1
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_20219
Streaming.RequestModel(17)

:PIMP_20076
if 
  not Streaming.HasModelLoaded(17)
goto_if_false @PIMP_20102
wait 0
goto @PIMP_20076

:PIMP_20102
91@(50@,28i) = Char.Create(PedType.CivMale, 17, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(17)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP204', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_20219
if 
  50@ == 5
goto_if_false @PIMP_20421
60@(50@,28i) = 1
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_20421
Streaming.RequestModel(147)

:PIMP_20275
if 
  not Streaming.HasModelLoaded(147)
goto_if_false @PIMP_20302
wait 0
goto @PIMP_20275

:PIMP_20302
91@(50@,28i) = Char.Create(PedType.CivMale, 147, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(147)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP205', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_20421
if 
  50@ == 6
goto_if_false @PIMP_20608
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_20608
Streaming.RequestModel(50)

:PIMP_20465
if 
  not Streaming.HasModelLoaded(50)
goto_if_false @PIMP_20491
wait 0
goto @PIMP_20465

:PIMP_20491
91@(50@,28i) = Char.Create(PedType.CivMale, 50, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(50)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP206', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_20608
if 
  50@ == 7
goto_if_false @PIMP_20795
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_20795
Streaming.RequestModel(22)

:PIMP_20652
if 
  not Streaming.HasModelLoaded(22)
goto_if_false @PIMP_20678
wait 0
goto @PIMP_20652

:PIMP_20678
91@(50@,28i) = Char.Create(PedType.CivMale, 22, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(22)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP207', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_20795
if 
  58@ == 3
goto_if_false @PIMP_21653
if 
  68@ == 1
goto_if_false @PIMP_20892
if 
  69@ == 1
goto_if_false @PIMP_20892
if 
  70@ == 1
goto_if_false @PIMP_20892
if 
  71@ == 1
goto_if_false @PIMP_20892
58@ = 4

:PIMP_20892
50@ = Math.RandomIntInRange(8, 12)
if 
  50@ == 8
goto_if_false @PIMP_21088
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_21088
Streaming.RequestModel(58)

:PIMP_20945
if 
  not Streaming.HasModelLoaded(58)
goto_if_false @PIMP_20971
wait 0
goto @PIMP_20945

:PIMP_20971
91@(50@,28i) = Char.Create(PedType.CivMale, 58, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(58)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP208', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_21088
if 
  50@ == 9
goto_if_false @PIMP_21279
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_21279
Streaming.RequestModel(147)

:PIMP_21133
if 
  not Streaming.HasModelLoaded(147)
goto_if_false @PIMP_21160
wait 0
goto @PIMP_21133

:PIMP_21160
91@(50@,28i) = Char.Create(PedType.CivMale, 147, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(147)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP209', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_21279
if 
  50@ == 10
goto_if_false @PIMP_21466
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_21466
Streaming.RequestModel(17)

:PIMP_21323
if 
  not Streaming.HasModelLoaded(17)
goto_if_false @PIMP_21349
wait 0
goto @PIMP_21323

:PIMP_21349
91@(50@,28i) = Char.Create(PedType.CivMale, 17, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(17)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP210', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_21466
if 
  50@ == 11
goto_if_false @PIMP_21653
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_21653
Streaming.RequestModel(22)

:PIMP_21510
if 
  not Streaming.HasModelLoaded(22)
goto_if_false @PIMP_21536
wait 0
goto @PIMP_21510

:PIMP_21536
91@(50@,28i) = Char.Create(PedType.CivMale, 22, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(22)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP211', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_21653
if 
  58@ == 4
goto_if_false @PIMP_22511
if 
  72@ == 1
goto_if_false @PIMP_21750
if 
  73@ == 1
goto_if_false @PIMP_21750
if 
  74@ == 1
goto_if_false @PIMP_21750
if 
  75@ == 1
goto_if_false @PIMP_21750
58@ = 5

:PIMP_21750
50@ = Math.RandomIntInRange(12, 16)
if 
  50@ == 12
goto_if_false @PIMP_21950
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_21950
Streaming.RequestModel(147)

:PIMP_21804
if 
  not Streaming.HasModelLoaded(147)
goto_if_false @PIMP_21831
wait 0
goto @PIMP_21804

:PIMP_21831
91@(50@,28i) = Char.Create(PedType.CivMale, 147, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(147)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP212', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_21950
if 
  50@ == 13
goto_if_false @PIMP_22137
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_22137
Streaming.RequestModel(29)

:PIMP_21994
if 
  not Streaming.HasModelLoaded(29)
goto_if_false @PIMP_22020
wait 0
goto @PIMP_21994

:PIMP_22020
91@(50@,28i) = Char.Create(PedType.CivMale, 29, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(29)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP213', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_22137
if 
  50@ == 14
goto_if_false @PIMP_22324
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_22324
Streaming.RequestModel(17)

:PIMP_22181
if 
  not Streaming.HasModelLoaded(17)
goto_if_false @PIMP_22207
wait 0
goto @PIMP_22181

:PIMP_22207
91@(50@,28i) = Char.Create(PedType.CivMale, 17, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(17)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP214', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_22324
if 
  50@ == 15
goto_if_false @PIMP_22511
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_22511
Streaming.RequestModel(36)

:PIMP_22368
if 
  not Streaming.HasModelLoaded(36)
goto_if_false @PIMP_22394
wait 0
goto @PIMP_22368

:PIMP_22394
91@(50@,28i) = Char.Create(PedType.CivMale, 36, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(36)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP215', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_22511
if 
  58@ == 5
goto_if_false @PIMP_23369
if 
  76@ == 1
goto_if_false @PIMP_22608
if 
  77@ == 1
goto_if_false @PIMP_22608
if 
  78@ == 1
goto_if_false @PIMP_22608
if 
  79@ == 1
goto_if_false @PIMP_22608
58@ = 6

:PIMP_22608
50@ = Math.RandomIntInRange(16, 20)
if 
  50@ == 16
goto_if_false @PIMP_22808
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_22808
Streaming.RequestModel(147)

:PIMP_22662
if 
  not Streaming.HasModelLoaded(147)
goto_if_false @PIMP_22689
wait 0
goto @PIMP_22662

:PIMP_22689
91@(50@,28i) = Char.Create(PedType.CivMale, 147, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(147)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP216', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_22808
if 
  50@ == 17
goto_if_false @PIMP_22995
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_22995
Streaming.RequestModel(29)

:PIMP_22852
if 
  not Streaming.HasModelLoaded(29)
goto_if_false @PIMP_22878
wait 0
goto @PIMP_22852

:PIMP_22878
91@(50@,28i) = Char.Create(PedType.CivMale, 29, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(29)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP217', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_22995
if 
  50@ == 18
goto_if_false @PIMP_23182
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_23182
Streaming.RequestModel(27)

:PIMP_23039
if 
  not Streaming.HasModelLoaded(27)
goto_if_false @PIMP_23065
wait 0
goto @PIMP_23039

:PIMP_23065
91@(50@,28i) = Char.Create(PedType.CivMale, 27, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(27)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP218', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_23182
if 
  50@ == 19
goto_if_false @PIMP_23369
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_23369
Streaming.RequestModel(50)

:PIMP_23226
if 
  not Streaming.HasModelLoaded(50)
goto_if_false @PIMP_23252
wait 0
goto @PIMP_23226

:PIMP_23252
91@(50@,28i) = Char.Create(PedType.CivMale, 50, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(50)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP219', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_23369
if 
  58@ == 6
goto_if_false @PIMP_24022
if 
  80@ == 1
goto_if_false @PIMP_23448
if 
  81@ == 1
goto_if_false @PIMP_23448
if 
  82@ == 1
goto_if_false @PIMP_23448
58@ = 7

:PIMP_23448
50@ = Math.RandomIntInRange(20, 23)
if 
  50@ == 20
goto_if_false @PIMP_23648
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_23648
Streaming.RequestModel(147)

:PIMP_23502
if 
  not Streaming.HasModelLoaded(147)
goto_if_false @PIMP_23529
wait 0
goto @PIMP_23502

:PIMP_23529
91@(50@,28i) = Char.Create(PedType.CivMale, 147, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(147)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP220', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_23648
if 
  50@ == 21
goto_if_false @PIMP_23835
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_23835
Streaming.RequestModel(17)

:PIMP_23692
if 
  not Streaming.HasModelLoaded(17)
goto_if_false @PIMP_23718
wait 0
goto @PIMP_23692

:PIMP_23718
91@(50@,28i) = Char.Create(PedType.CivMale, 17, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(17)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP221', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_23835
if 
  50@ == 22
goto_if_false @PIMP_24022
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_24022
Streaming.RequestModel(71)

:PIMP_23879
if 
  not Streaming.HasModelLoaded(71)
goto_if_false @PIMP_23905
wait 0
goto @PIMP_23879

:PIMP_23905
91@(50@,28i) = Char.Create(PedType.CivMale, 71, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(71)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP222', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_24022
if 
  58@ == 7
goto_if_false @PIMP_24880
if 
  83@ == 1
goto_if_false @PIMP_24119
if 
  84@ == 1
goto_if_false @PIMP_24119
if 
  85@ == 1
goto_if_false @PIMP_24119
if 
  86@ == 1
goto_if_false @PIMP_24119
58@ = 1

:PIMP_24119
50@ = Math.RandomIntInRange(23, 27)
if 
  50@ == 23
goto_if_false @PIMP_24319
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_24319
Streaming.RequestModel(147)

:PIMP_24173
if 
  not Streaming.HasModelLoaded(147)
goto_if_false @PIMP_24200
wait 0
goto @PIMP_24173

:PIMP_24200
91@(50@,28i) = Char.Create(PedType.CivMale, 147, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(147)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP223', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_24319
if 
  50@ == 24
goto_if_false @PIMP_24506
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_24506
Streaming.RequestModel(29)

:PIMP_24363
if 
  not Streaming.HasModelLoaded(29)
goto_if_false @PIMP_24389
wait 0
goto @PIMP_24363

:PIMP_24389
91@(50@,28i) = Char.Create(PedType.CivMale, 29, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(29)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP224', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_24506
if 
  50@ == 25
goto_if_false @PIMP_24693
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_24693
Streaming.RequestModel(23)

:PIMP_24550
if 
  not Streaming.HasModelLoaded(23)
goto_if_false @PIMP_24576
wait 0
goto @PIMP_24550

:PIMP_24576
91@(50@,28i) = Char.Create(PedType.CivMale, 23, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(23)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP225', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_24693
if 
  50@ == 26
goto_if_false @PIMP_24880
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_24880
Streaming.RequestModel(17)

:PIMP_24737
if 
  not Streaming.HasModelLoaded(17)
goto_if_false @PIMP_24763
wait 0
goto @PIMP_24737

:PIMP_24763
91@(50@,28i) = Char.Create(PedType.CivMale, 17, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f))
Char.SetHeading(91@(50@,28i), 371@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(17)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP226', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_24880
if 
  is_int_lvar_equal_to_constant 531@ == 3
goto_if_false @PIMP_29180
if 
  58@ == 1
goto_if_false @PIMP_25756
if 
  60@ == 1
goto_if_false @PIMP_24995
if 
  61@ == 1
goto_if_false @PIMP_24995
if 
  62@ == 1
goto_if_false @PIMP_24995
if 
  63@ == 1
goto_if_false @PIMP_24995
58@ = 2

:PIMP_24995
50@ = Math.RandomIntInRange(0, 4)
if 
  50@ == 0
goto_if_false @PIMP_25191
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_25191
Streaming.RequestModel(72)

:PIMP_25048
if 
  not Streaming.HasModelLoaded(72)
goto_if_false @PIMP_25074
wait 0
goto @PIMP_25048

:PIMP_25074
91@(50@,28i) = Char.Create(PedType.CivMale, 72, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(72)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP300', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_25191
if 
  50@ == 1
goto_if_false @PIMP_25378
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_25378
Streaming.RequestModel(72)

:PIMP_25235
if 
  not Streaming.HasModelLoaded(72)
goto_if_false @PIMP_25261
wait 0
goto @PIMP_25235

:PIMP_25261
91@(50@,28i) = Char.Create(PedType.CivMale, 72, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(72)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP301', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_25378
if 
  50@ == 2
goto_if_false @PIMP_25565
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_25565
Streaming.RequestModel(17)

:PIMP_25422
if 
  not Streaming.HasModelLoaded(17)
goto_if_false @PIMP_25448
wait 0
goto @PIMP_25422

:PIMP_25448
91@(50@,28i) = Char.Create(PedType.CivMale, 17, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(17)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP302', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_25565
if 
  50@ == 3
goto_if_false @PIMP_25756
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_25756
Streaming.RequestModel(147)

:PIMP_25610
if 
  not Streaming.HasModelLoaded(147)
goto_if_false @PIMP_25637
wait 0
goto @PIMP_25610

:PIMP_25637
91@(50@,28i) = Char.Create(PedType.CivMale, 147, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(147)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP303', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_25756
if 
  58@ == 2
goto_if_false @PIMP_26614
if 
  64@ == 1
goto_if_false @PIMP_25853
if 
  65@ == 1
goto_if_false @PIMP_25853
if 
  66@ == 1
goto_if_false @PIMP_25853
if 
  67@ == 1
goto_if_false @PIMP_25853
58@ = 3

:PIMP_25853
50@ = Math.RandomIntInRange(4, 8)
if 
  50@ == 4
goto_if_false @PIMP_26049
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_26049
Streaming.RequestModel(32)

:PIMP_25906
if 
  not Streaming.HasModelLoaded(32)
goto_if_false @PIMP_25932
wait 0
goto @PIMP_25906

:PIMP_25932
91@(50@,28i) = Char.Create(PedType.CivMale, 32, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(32)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP304', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_26049
if 
  50@ == 5
goto_if_false @PIMP_26236
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_26236
Streaming.RequestModel(33)

:PIMP_26093
if 
  not Streaming.HasModelLoaded(33)
goto_if_false @PIMP_26119
wait 0
goto @PIMP_26093

:PIMP_26119
91@(50@,28i) = Char.Create(PedType.CivMale, 33, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(33)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP305', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_26236
if 
  50@ == 6
goto_if_false @PIMP_26423
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_26423
Streaming.RequestModel(17)

:PIMP_26280
if 
  not Streaming.HasModelLoaded(17)
goto_if_false @PIMP_26306
wait 0
goto @PIMP_26280

:PIMP_26306
91@(50@,28i) = Char.Create(PedType.CivMale, 17, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(17)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP306', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_26423
if 
  50@ == 7
goto_if_false @PIMP_26614
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_26614
Streaming.RequestModel(147)

:PIMP_26468
if 
  not Streaming.HasModelLoaded(147)
goto_if_false @PIMP_26495
wait 0
goto @PIMP_26468

:PIMP_26495
91@(50@,28i) = Char.Create(PedType.CivMale, 147, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(147)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP307', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_26614
if 
  58@ == 3
goto_if_false @PIMP_27472
if 
  68@ == 1
goto_if_false @PIMP_26711
if 
  69@ == 1
goto_if_false @PIMP_26711
if 
  70@ == 1
goto_if_false @PIMP_26711
if 
  71@ == 1
goto_if_false @PIMP_26711
58@ = 4

:PIMP_26711
50@ = Math.RandomIntInRange(8, 12)
if 
  50@ == 8
goto_if_false @PIMP_26907
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_26907
Streaming.RequestModel(32)

:PIMP_26764
if 
  not Streaming.HasModelLoaded(32)
goto_if_false @PIMP_26790
wait 0
goto @PIMP_26764

:PIMP_26790
91@(50@,28i) = Char.Create(PedType.CivMale, 32, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(32)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP308', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_26907
if 
  50@ == 9
goto_if_false @PIMP_27094
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_27094
Streaming.RequestModel(33)

:PIMP_26951
if 
  not Streaming.HasModelLoaded(33)
goto_if_false @PIMP_26977
wait 0
goto @PIMP_26951

:PIMP_26977
91@(50@,28i) = Char.Create(PedType.CivMale, 33, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(33)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP309', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_27094
if 
  50@ == 10
goto_if_false @PIMP_27281
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_27281
Streaming.RequestModel(17)

:PIMP_27138
if 
  not Streaming.HasModelLoaded(17)
goto_if_false @PIMP_27164
wait 0
goto @PIMP_27138

:PIMP_27164
91@(50@,28i) = Char.Create(PedType.CivMale, 17, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(17)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP310', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_27281
if 
  50@ == 11
goto_if_false @PIMP_27472
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_27472
Streaming.RequestModel(147)

:PIMP_27326
if 
  not Streaming.HasModelLoaded(147)
goto_if_false @PIMP_27353
wait 0
goto @PIMP_27326

:PIMP_27353
91@(50@,28i) = Char.Create(PedType.CivMale, 147, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(147)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP311', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_27472
if 
  58@ == 4
goto_if_false @PIMP_28326
if 
  72@ == 1
goto_if_false @PIMP_27569
if 
  73@ == 1
goto_if_false @PIMP_27569
if 
  74@ == 1
goto_if_false @PIMP_27569
if 
  75@ == 1
goto_if_false @PIMP_27569
58@ = 5

:PIMP_27569
50@ = Math.RandomIntInRange(12, 16)
if 
  50@ == 12
goto_if_false @PIMP_27765
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_27765
Streaming.RequestModel(50)

:PIMP_27622
if 
  not Streaming.HasModelLoaded(50)
goto_if_false @PIMP_27648
wait 0
goto @PIMP_27622

:PIMP_27648
91@(50@,28i) = Char.Create(PedType.CivMale, 50, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(50)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP312', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_27765
if 
  50@ == 13
goto_if_false @PIMP_27952
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_27952
Streaming.RequestModel(34)

:PIMP_27809
if 
  not Streaming.HasModelLoaded(34)
goto_if_false @PIMP_27835
wait 0
goto @PIMP_27809

:PIMP_27835
91@(50@,28i) = Char.Create(PedType.CivMale, 34, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(34)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP313', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_27952
if 
  50@ == 14
goto_if_false @PIMP_28139
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_28139
Streaming.RequestModel(17)

:PIMP_27996
if 
  not Streaming.HasModelLoaded(17)
goto_if_false @PIMP_28022
wait 0
goto @PIMP_27996

:PIMP_28022
91@(50@,28i) = Char.Create(PedType.CivMale, 17, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(17)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP314', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_28139
if 
  50@ == 15
goto_if_false @PIMP_28326
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_28326
Streaming.RequestModel(29)

:PIMP_28183
if 
  not Streaming.HasModelLoaded(29)
goto_if_false @PIMP_28209
wait 0
goto @PIMP_28183

:PIMP_28209
91@(50@,28i) = Char.Create(PedType.CivMale, 29, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(29)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP315', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_28326
if 
  58@ == 5
goto_if_false @PIMP_29180
if 
  76@ == 1
goto_if_false @PIMP_28423
if 
  77@ == 1
goto_if_false @PIMP_28423
if 
  78@ == 1
goto_if_false @PIMP_28423
if 
  79@ == 1
goto_if_false @PIMP_28423
58@ = 1

:PIMP_28423
50@ = Math.RandomIntInRange(16, 20)
if 
  50@ == 16
goto_if_false @PIMP_28619
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_28619
Streaming.RequestModel(68)

:PIMP_28476
if 
  not Streaming.HasModelLoaded(68)
goto_if_false @PIMP_28502
wait 0
goto @PIMP_28476

:PIMP_28502
91@(50@,28i) = Char.Create(PedType.CivMale, 68, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(68)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP316', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_28619
if 
  50@ == 17
goto_if_false @PIMP_28806
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_28806
Streaming.RequestModel(101)

:PIMP_28663
if 
  not Streaming.HasModelLoaded(101)
goto_if_false @PIMP_28689
wait 0
goto @PIMP_28663

:PIMP_28689
91@(50@,28i) = Char.Create(PedType.CivMale, 101, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(101)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP317', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_28806
if 
  50@ == 18
goto_if_false @PIMP_28993
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_28993
Streaming.RequestModel(17)

:PIMP_28850
if 
  not Streaming.HasModelLoaded(17)
goto_if_false @PIMP_28876
wait 0
goto @PIMP_28850

:PIMP_28876
91@(50@,28i) = Char.Create(PedType.CivMale, 17, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(17)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP318', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_28993
if 
  50@ == 19
goto_if_false @PIMP_29180
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_29180
Streaming.RequestModel(34)

:PIMP_29037
if 
  not Streaming.HasModelLoaded(34)
goto_if_false @PIMP_29063
wait 0
goto @PIMP_29037

:PIMP_29063
91@(50@,28i) = Char.Create(PedType.CivMale, 34, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f))
Char.SetHeading(91@(50@,28i), 483@(50@,28f))
Streaming.MarkModelAsNoLongerNeeded(34)
Char.SetOnlyDamagedByPlayer(91@(50@,28i), True)
Text.PrintNow('PIMP319', 4000, 1)
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_29180
if 
  520@ == 1
goto_if_false @PIMP_29737
if 
  TIMERA > 5000
goto_if_false @PIMP_29737
if 
  1 > 49@
goto_if_false @PIMP_29303
if 
  37@ == 0
goto_if_false @PIMP_29269
Text.PrintNow('PIMP_3', 6000, 1)

:PIMP_29269
if 
  37@ == 1
goto_if_false @PIMP_29303
Text.PrintNow('PIMP_31', 6000, 1)

:PIMP_29303
if 
  49@ > 0
goto_if_false @PIMP_29723
541@ = 1
if 
  513@ <> 1
goto_if_false @PIMP_29723
529@ = Menu.Create('PIMP_70', 31.0, 80.0, 89.0, 2, False, True, 1)
34@ = 1
Menu.SetColumn(529@, 0, 'PIMP_71', 'PIMP_72', 'PIMP_73', 'PIMP_74', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumnOrientation(529@, 1, 2)
528@ = 300
set_lvar_int_to_lvar_int 526@ = 49@
mult_int_lvar_by_int_lvar 526@ *= 528@
Menu.SetItemWithNumber(529@, 1, 0, 'DOLLAR', 528@)
Menu.SetItemWithNumber(529@, 1, 1, 'PIMP_75', 49@)
Menu.SetItemWithNumber(529@, 1, 2, 'DOLLAR', 526@)
Menu.SetActiveItem(529@, 2)
cset_lvar_float_to_lvar_int 527@ =# 526@
if 
  37@ == 0
goto_if_false @PIMP_29674
Text.PrintNow('PIMP_7', 6000, 1)
Player.AddScore($player1, 526@)
Stat.IncrementFloat(StatId.MoneyMadePimping, 527@)

:PIMP_29674
if 
  37@ == 1
goto_if_false @PIMP_29723
Text.PrintNow('PIMP_32', 6000, 1)
Player.AddScore($player1, 526@)
Stat.IncrementFloat(StatId.MoneyMadePimping, 527@)

:PIMP_29723
520@ = 2
TIMERA = 0

:PIMP_29737
if 
  520@ == 2
goto_if_false @PIMP_29811
if 
  TIMERA > 6000
goto_if_false @PIMP_29811
if 
  34@ == 1
goto_if_false @PIMP_29804
Menu.Delete(529@)
34@ = 0

:PIMP_29804
520@ = 3

:PIMP_29811
if 
  47@ == 2
goto_if_false @PIMP_29984
if 
  not Char.IsDead(91@(50@,28i))
goto_if_false @PIMP_29901
if 
  37@ == 0
goto_if_false @PIMP_29875
set_lvar_int_to_lvar_int 511@ = 50@

:PIMP_29875
if 
  37@ == 1
goto_if_false @PIMP_29901
set_lvar_int_to_lvar_int 512@ = 50@

:PIMP_29901
Blip.Remove(89@)
89@ = Blip.AddForChar(91@(50@,28i))
Blip.ChangeColor(89@, BlipColor.Yellow)
$pimp_bikeostimer = 180000
Hud.ClearTimer($pimp_bikeostimer)
537@ = 0
//Hud.DisplayTimerWithString($pimp_bikeostimer, TimerDirection.Down, 'PIMP_90')
537@ = 1
47@ = 3
48@ = 0

:PIMP_29984
if 
  47@ == 3
goto_if_false @PIMP_30740
if 
  not Char.IsDead(91@(50@,28i))
goto_if_false @PIMP_30740
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_30740
if 
  521@ == 0
goto_if_false @PIMP_30102
if 
  not Char.IsInCar($scplayer, 40@)
goto_if_false @PIMP_30102
522@ = Blip.AddForCar(40@)
Blip.SetAsFriendly(522@, True)
Blip.Remove(89@)
521@ = 1

:PIMP_30102
if 
  521@ == 1
goto_if_false @PIMP_30198
if 
  Char.IsInCar($scplayer, 40@)
goto_if_false @PIMP_30198
Blip.Remove(522@)
521@ = 0
Blip.Remove(89@)
89@ = Blip.AddForChar(91@(50@,28i))
Blip.ChangeColor(89@, BlipColor.Yellow)
Text.PrintNow('PIMP_53', 6000, 1)
521@ = 0

:PIMP_30198
if 
  Char.HasBeenDamagedByChar(91@(50@,28i), $scplayer)
goto_if_false @PIMP_30244
Text.PrintNow('PIMP_52', 8000, 1)
goto @PIMP_37457

:PIMP_30244
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_30740
if 
  not Char.IsDead(35@(37@,2i))
goto_if_false @PIMP_30740
if 
  46@ == 0
goto_if_false @PIMP_30740
if 
  521@ == 0
goto_if_false @PIMP_30740
if 
  Char.LocateInCarChar2D($scplayer, 91@(50@,28i), 10.0, 10.0, False)
goto_if_false @PIMP_30740
if 
  48@ == 0
goto_if_false @PIMP_30451
if 
  37@ == 0
goto_if_false @PIMP_30410
Text.PrintNow('PIMP_6', 4000, 1)
48@ = 1

:PIMP_30410
if 
  37@ == 1
goto_if_false @PIMP_30451
Text.PrintNow('PIMP_33', 4000, 1)
48@ = 1

:PIMP_30451
set_lvar_int_to_lvar_int 53@ = 37@
if 
  Car.IsStopped(40@)
goto_if_false @PIMP_30740
Task.TurnCharToFaceChar(91@(50@,28i), 35@(53@,2i))
Char.ClearTasks(35@(53@,2i))
set_lvar_int_to_lvar_int 54@ = 50@
537@ = 0
Hud.ClearTimer($pimp_bikeostimer)
$pimp_bikeostimer = 180000
39@ = Sequence.Open()
Task.LeaveCar(-1, 40@)
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
if 
  is_int_lvar_equal_to_constant 531@ == 1
goto_if_false @PIMP_30594
Task.GoStraightToCoord(-1, 175@(50@,28f), 203@(50@,28f), 231@(50@,28f), MoveState.Run, 10000)

:PIMP_30594
if 
  is_int_lvar_equal_to_constant 531@ == 2
goto_if_false @PIMP_30642
Task.GoStraightToCoord(-1, 287@(50@,28f), 315@(50@,28f), 343@(50@,28f), MoveState.Run, 10000)

:PIMP_30642
if 
  is_int_lvar_equal_to_constant 531@ == 3
goto_if_false @PIMP_30690
Task.GoStraightToCoord(-1, 399@(50@,28f), 427@(50@,28f), 455@(50@,28f), MoveState.Run, 10000)

:PIMP_30690
Sequence.Close(39@)
Char.PerformSequence(35@(53@,2i), 39@)
Sequence.Clear(39@)
46@ = 1
55@ = 1
47@ = 4
TIMERA = 0

:PIMP_30740
if 
  55@ == 1
goto_if_false @PIMP_30902
if 
  not Char.IsDead(35@(53@,2i))
goto_if_false @PIMP_30902
if 
  not Char.IsDead(91@(54@,28i))
goto_if_false @PIMP_30902
if 
  Char.LocateAnyMeansChar2D(35@(53@,2i), 91@(54@,28i), 3.0, 3.0, False)
goto_if_false @PIMP_30902
Char.ClearTasks(35@(53@,2i))
Char.ClearTasks(91@(54@,28i))
Task.ChatWithChar(35@(53@,2i), 91@(54@,28i), True, 1)
Task.ChatWithChar(91@(54@,28i), 35@(53@,2i), False, 1)
55@ = 0

:PIMP_30902
if 
  47@ == 4
goto_if_false @PIMP_31128
if 
  Char.HasBeenDamagedByChar(91@(50@,28i), $scplayer)
goto_if_false @PIMP_30966
Text.PrintNow('PIMP_52', 8000, 1)
goto @PIMP_37457

:PIMP_30966
if 
  not Char.IsDead(35@(53@,2i))
goto_if_false @PIMP_31128
if 
  not Char.IsDead(91@(50@,28i))
goto_if_false @PIMP_31128
if 
  52@ == 1
goto_if_false @PIMP_31031
47@ = 15

:PIMP_31031
if 
  52@ == 0
goto_if_false @PIMP_31128
if 
  37@ == 0
goto_if_false @PIMP_31128
42@ = 0
41@ = 0
37@ = 1
47@ = 99
Blip.Remove(89@)
45@ = 0
44@ = 0
46@ = 0
52@ = 1

:PIMP_31128
if 
  47@ == 15
goto_if_false @PIMP_31232
if 
  Char.HasBeenDamagedByChar(91@(50@,28i), $scplayer)
goto_if_false @PIMP_31192
Text.PrintNow('PIMP_52', 8000, 1)
goto @PIMP_37457

:PIMP_31192
Blip.Remove(89@)
45@ = 0
44@ = 0
46@ = 0
gosub @PIMP_35662
47@ = 20

:PIMP_31232
if 
  47@ == 20
goto_if_false @PIMP_31303
if 
  Char.HasBeenDamagedByChar(91@(50@,28i), $scplayer)
goto_if_false @PIMP_31296
Text.PrintNow('PIMP_52', 8000, 1)
goto @PIMP_37457

:PIMP_31296
47@ = 25

:PIMP_31303
if 
  47@ == 25
goto_if_false @PIMP_32101
513@ = Math.RandomIntInRange(0, 4)
if 
  2 > 49@
goto_if_false @PIMP_31355
513@ = 3

:PIMP_31355
if 
  513@ == 0
goto_if_false @PIMP_31654
47@ = 30
Text.PrintNow('PIMP_35', 6000, 1)
524@ = 1
TIMERA = 0
if 
  37@ == 0
goto_if_false @PIMP_31532
if 
  not Char.IsDead(91@(511@,28i))
goto_if_false @PIMP_31532
Blip.Remove(90@)
90@ = Blip.AddForChar(91@(511@,28i))
Char.SetIsTargetPriority(91@(511@,28i), True)
119@(511@,28i) = 0
Blip.ChangeColor(90@, BlipColor.Red)
Hud.ClearTimer($pimp_bikeostimer)
$pimp_bikeostimer = 180000
//Hud.DisplayTimerWithString($pimp_bikeostimer, TimerDirection.Down, 'PIMP_90')
537@ = 2

:PIMP_31532
if 
  37@ == 1
goto_if_false @PIMP_31654
if 
  not Char.IsDead(91@(512@,28i))
goto_if_false @PIMP_31654
Blip.Remove(90@)
90@ = Blip.AddForChar(91@(512@,28i))
Char.SetIsTargetPriority(91@(512@,28i), True)
119@(512@,28i) = 0
Blip.ChangeColor(90@, BlipColor.Red)
Hud.ClearTimer($pimp_bikeostimer)
$pimp_bikeostimer = 180000
//Hud.DisplayTimerWithString($pimp_bikeostimer, TimerDirection.Down, 'PIMP_90')
537@ = 2

:PIMP_31654
if 
  513@ == 1
goto_if_false @PIMP_31977
47@ = 40
Text.PrintNow('PIMP_39', 6000, 1)
525@ = 1
TIMERA = 0
if 
  37@ == 0
goto_if_false @PIMP_31843
if 
  not Char.IsDead(91@(511@,28i))
goto_if_false @PIMP_31843
Blip.Remove(90@)
90@ = Blip.AddForChar(91@(511@,28i))
Char.SetIsTargetPriority(91@(511@,28i), True)
119@(511@,28i) = 0
Char.SetMoney(91@(511@,28i), 250)
Blip.ChangeColor(90@, BlipColor.Red)
Hud.ClearTimer($pimp_bikeostimer)
$pimp_bikeostimer = 180000
//Hud.DisplayTimerWithString($pimp_bikeostimer, TimerDirection.Down, 'PIMP_90')
537@ = 2

:PIMP_31843
if 
  37@ == 1
goto_if_false @PIMP_31977
if 
  not Char.IsDead(91@(512@,28i))
goto_if_false @PIMP_31977
Blip.Remove(90@)
90@ = Blip.AddForChar(91@(512@,28i))
Char.SetIsTargetPriority(91@(512@,28i), True)
119@(512@,28i) = 0
Blip.ChangeColor(90@, BlipColor.Red)
Char.SetMoney(91@(512@,28i), 250)
Hud.ClearTimer($pimp_bikeostimer)
$pimp_bikeostimer = 180000
//Hud.DisplayTimerWithString($pimp_bikeostimer, TimerDirection.Down, 'PIMP_90')
537@ = 2

:PIMP_31977
if 
  513@ == 2
goto_if_false @PIMP_32039
523@ = 0
47@ = 50
Text.PrintNow('PIMP_56', 4000, 1)
TIMERA = 0
523@ = 1

:PIMP_32039
if 
  513@ == 3
goto_if_false @PIMP_32101
523@ = 0
47@ = 50
Text.PrintNow('PIMP_56', 4000, 1)
TIMERA = 0
523@ = 1

:PIMP_32101
if 
  47@ == 30
goto_if_false @PIMP_32972
if 
  525@ == 1
goto_if_false @PIMP_32179
if 
  TIMERA > 4000
goto_if_false @PIMP_32179
Text.PrintNow('PIMP_37', 6000, 1)
525@ = 99

:PIMP_32179
if 
  524@ == 1
goto_if_false @PIMP_32239
if 
  TIMERA > 4000
goto_if_false @PIMP_32239
Text.PrintNow('PIMP_36', 6000, 1)
524@ = 99

:PIMP_32239
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_32508
if 
  521@ == 0
goto_if_false @PIMP_32319
if 
  not Char.IsInCar($scplayer, 40@)
goto_if_false @PIMP_32319
522@ = Blip.AddForCar(40@)
Blip.SetAsFriendly(522@, True)
Blip.Remove(90@)
521@ = 1

:PIMP_32319
if 
  521@ == 1
goto_if_false @PIMP_32508
if 
  Char.IsInCar($scplayer, 40@)
goto_if_false @PIMP_32508
Blip.Remove(522@)
if 
  37@ == 0
goto_if_false @PIMP_32423
if 
  not Char.IsDead(91@(511@,28i))
goto_if_false @PIMP_32423
Blip.Remove(90@)
90@ = Blip.AddForChar(91@(511@,28i))
Blip.ChangeColor(90@, BlipColor.Red)

:PIMP_32423
if 
  37@ == 1
goto_if_false @PIMP_32485
if 
  not Char.IsDead(91@(512@,28i))
goto_if_false @PIMP_32485
Blip.Remove(90@)
90@ = Blip.AddForChar(91@(512@,28i))
Blip.ChangeColor(90@, BlipColor.Red)

:PIMP_32485
Text.PrintNow('PIMP_55', 6000, 1)
521@ = 0

:PIMP_32508
if 
  521@ == 0
goto_if_false @PIMP_32840
if 
  37@ == 0
goto_if_false @PIMP_32683
if 
  not Char.IsDead(35@(37@,2i))
goto_if_false @PIMP_32683
if 
  Char.LocateAnyMeansChar2D($scplayer, 35@(37@,2i), 50.0, 50.0, False)
goto_if_false @PIMP_32683
if 
  not Char.IsDead(91@(511@,28i))
goto_if_false @PIMP_32683
Char.ClearTasks(35@(37@,2i))
Task.KillCharOnFoot(35@(37@,2i), 91@(511@,28i))
Task.KillCharOnFoot(91@(511@,28i), 35@(37@,2i))
Text.PrintNow('PIMP_55', 6000, 1)
47@ = 35

:PIMP_32683
if 
  37@ == 1
goto_if_false @PIMP_32840
if 
  not Char.IsDead(35@(37@,2i))
goto_if_false @PIMP_32840
if 
  Char.LocateAnyMeansChar2D($scplayer, 35@(37@,2i), 50.0, 50.0, False)
goto_if_false @PIMP_32840
if 
  not Char.IsDead(91@(512@,28i))
goto_if_false @PIMP_32840
Task.KillCharOnFoot(91@(512@,28i), 35@(37@,2i))
Char.ClearTasks(35@(37@,2i))
Task.KillCharOnFoot(35@(37@,2i), 91@(512@,28i))
Text.PrintNow('PIMP_55', 6000, 1)
47@ = 35

:PIMP_32840
if 
  37@ == 0
goto_if_false @PIMP_32906
if 
  Char.IsDead(91@(511@,28i))
goto_if_false @PIMP_32906
Blip.Remove(90@)
Text.PrintNow('PIMP_38', 4000, 1)
47@ = 50

:PIMP_32906
if 
  37@ == 1
goto_if_false @PIMP_32972
if 
  Char.IsDead(91@(512@,28i))
goto_if_false @PIMP_32972
Blip.Remove(90@)
Text.PrintNow('PIMP_38', 4000, 1)
47@ = 50

:PIMP_32972
if 
  47@ == 35
goto_if_false @PIMP_33513
516@ = 99
if 
  525@ == 1
goto_if_false @PIMP_33057
if 
  TIMERA > 4000
goto_if_false @PIMP_33057
Text.PrintNow('PIMP_37', 6000, 1)
525@ = 99

:PIMP_33057
if 
  524@ == 1
goto_if_false @PIMP_33117
if 
  TIMERA > 4000
goto_if_false @PIMP_33117
Text.PrintNow('PIMP_36', 6000, 1)
524@ = 99

:PIMP_33117
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_33381
if 
  521@ == 0
goto_if_false @PIMP_33192
if 
  not Char.IsInCar($scplayer, 40@)
goto_if_false @PIMP_33192
522@ = Blip.AddForCar(40@)
Blip.SetAsFriendly(522@, True)
521@ = 1

:PIMP_33192
if 
  521@ == 1
goto_if_false @PIMP_33381
if 
  Char.IsInCar($scplayer, 40@)
goto_if_false @PIMP_33381
Blip.Remove(522@)
if 
  37@ == 0
goto_if_false @PIMP_33296
if 
  not Char.IsDead(91@(511@,28i))
goto_if_false @PIMP_33296
Blip.Remove(90@)
90@ = Blip.AddForChar(91@(511@,28i))
Blip.ChangeColor(90@, BlipColor.Red)

:PIMP_33296
if 
  37@ == 1
goto_if_false @PIMP_33358
if 
  not Char.IsDead(91@(512@,28i))
goto_if_false @PIMP_33358
Blip.Remove(90@)
90@ = Blip.AddForChar(91@(512@,28i))
Blip.ChangeColor(90@, BlipColor.Red)

:PIMP_33358
Text.PrintNow('PIMP_55', 6000, 1)
521@ = 0

:PIMP_33381
if 
  37@ == 0
goto_if_false @PIMP_33447
if 
  Char.IsDead(91@(511@,28i))
goto_if_false @PIMP_33447
Text.PrintNow('PIMP_38', 4000, 1)
Blip.Remove(90@)
47@ = 50

:PIMP_33447
if 
  37@ == 1
goto_if_false @PIMP_33513
if 
  Char.IsDead(91@(512@,28i))
goto_if_false @PIMP_33513
Text.PrintNow('PIMP_38', 4000, 1)
Blip.Remove(90@)
47@ = 50

:PIMP_33513
if 
  47@ == 40
goto_if_false @PIMP_34340
if 
  525@ == 1
goto_if_false @PIMP_33591
if 
  TIMERA > 4000
goto_if_false @PIMP_33591
Text.PrintNow('PIMP_37', 6000, 1)
525@ = 99

:PIMP_33591
if 
  524@ == 1
goto_if_false @PIMP_33651
if 
  TIMERA > 4000
goto_if_false @PIMP_33651
Text.PrintNow('PIMP_36', 6000, 1)
524@ = 99

:PIMP_33651
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_33920
if 
  521@ == 0
goto_if_false @PIMP_33731
if 
  not Char.IsInCar($scplayer, 40@)
goto_if_false @PIMP_33731
522@ = Blip.AddForCar(40@)
Blip.SetAsFriendly(522@, True)
Blip.Remove(90@)
521@ = 1

:PIMP_33731
if 
  521@ == 1
goto_if_false @PIMP_33920
if 
  Char.IsInCar($scplayer, 40@)
goto_if_false @PIMP_33920
Blip.Remove(522@)
if 
  37@ == 0
goto_if_false @PIMP_33835
if 
  not Char.IsDead(91@(511@,28i))
goto_if_false @PIMP_33835
Blip.Remove(90@)
90@ = Blip.AddForChar(91@(511@,28i))
Blip.ChangeColor(90@, BlipColor.Red)

:PIMP_33835
if 
  37@ == 1
goto_if_false @PIMP_33897
if 
  not Char.IsDead(91@(512@,28i))
goto_if_false @PIMP_33897
Blip.Remove(90@)
90@ = Blip.AddForChar(91@(512@,28i))
Blip.ChangeColor(90@, BlipColor.Red)

:PIMP_33897
Text.PrintNow('PIMP_55', 6000, 1)
521@ = 0

:PIMP_33920
if 
  521@ == 0
goto_if_false @PIMP_34208
if 
  37@ == 0
goto_if_false @PIMP_34073
if 
  not Char.IsDead(35@(37@,2i))
goto_if_false @PIMP_34073
if 
  Char.LocateAnyMeansChar2D($scplayer, 35@(37@,2i), 20.0, 20.0, False)
goto_if_false @PIMP_34073
if 
  not Char.IsDead(91@(511@,28i))
goto_if_false @PIMP_34073
Task.SmartFleeChar(91@(511@,28i), $scplayer, 100.0, -1)
Text.PrintNow('PIMP_37', 6000, 1)
47@ = 45

:PIMP_34073
if 
  37@ == 1
goto_if_false @PIMP_34208
if 
  not Char.IsDead(35@(37@,2i))
goto_if_false @PIMP_34208
if 
  Char.LocateAnyMeansChar2D($scplayer, 35@(37@,2i), 20.0, 20.0, False)
goto_if_false @PIMP_34208
if 
  not Char.IsDead(91@(512@,28i))
goto_if_false @PIMP_34208
Task.SmartFleeChar(91@(512@,28i), $scplayer, 100.0, -1)
Text.PrintNow('PIMP_37', 6000, 1)
47@ = 45

:PIMP_34208
if 
  37@ == 0
goto_if_false @PIMP_34274
if 
  Char.IsDead(91@(511@,28i))
goto_if_false @PIMP_34274
Blip.Remove(90@)
Text.PrintNow('PIMP_38', 4000, 1)
47@ = 50

:PIMP_34274
if 
  37@ == 1
goto_if_false @PIMP_34340
if 
  Char.IsDead(91@(512@,28i))
goto_if_false @PIMP_34340
Blip.Remove(90@)
Text.PrintNow('PIMP_38', 4000, 1)
47@ = 50

:PIMP_34340
if 
  47@ == 45
goto_if_false @PIMP_34891
516@ = 99
if 
  525@ == 1
goto_if_false @PIMP_34425
if 
  TIMERA > 4000
goto_if_false @PIMP_34425
Text.PrintNow('PIMP_37', 6000, 1)
525@ = 99

:PIMP_34425
if 
  524@ == 1
goto_if_false @PIMP_34485
if 
  TIMERA > 4000
goto_if_false @PIMP_34485
Text.PrintNow('PIMP_36', 6000, 1)
524@ = 99

:PIMP_34485
if 
  not Car.IsDead(40@)
goto_if_false @PIMP_34749
if 
  521@ == 0
goto_if_false @PIMP_34560
if 
  not Char.IsInCar($scplayer, 40@)
goto_if_false @PIMP_34560
522@ = Blip.AddForCar(40@)
Blip.SetAsFriendly(522@, True)
521@ = 1

:PIMP_34560
if 
  521@ == 1
goto_if_false @PIMP_34749
if 
  Char.IsInCar($scplayer, 40@)
goto_if_false @PIMP_34749
Blip.Remove(522@)
if 
  37@ == 0
goto_if_false @PIMP_34664
if 
  not Char.IsDead(91@(511@,28i))
goto_if_false @PIMP_34664
Blip.Remove(90@)
90@ = Blip.AddForChar(91@(511@,28i))
Blip.ChangeColor(90@, BlipColor.Red)

:PIMP_34664
if 
  37@ == 1
goto_if_false @PIMP_34726
if 
  not Char.IsDead(91@(512@,28i))
goto_if_false @PIMP_34726
Blip.Remove(90@)
90@ = Blip.AddForChar(91@(512@,28i))
Blip.ChangeColor(90@, BlipColor.Red)

:PIMP_34726
Text.PrintNow('PIMP_55', 6000, 1)
521@ = 0

:PIMP_34749
if 
  37@ == 0
goto_if_false @PIMP_34820
if 
  Char.IsDead(91@(511@,28i))
goto_if_false @PIMP_34820
Text.PrintNow('PIMP_38', 4000, 1)
Blip.Remove(90@)
wait 2000
47@ = 50

:PIMP_34820
if 
  37@ == 1
goto_if_false @PIMP_34891
if 
  Char.IsDead(91@(512@,28i))
goto_if_false @PIMP_34891
Text.PrintNow('PIMP_38', 4000, 1)
Blip.Remove(90@)
wait 2000
47@ = 50

:PIMP_34891
if 
  47@ == 50
goto_if_false @PIMP_35172
537@ = 0
Hud.ClearTimer($pimp_bikeostimer)
$pimp_bikeostimer = 180000
516@ = 0
if 
  not Char.IsDead(35@(37@,2i))
goto_if_false @PIMP_35116
Text.ClearPrints
Char.ClearTasks(35@(37@,2i))
Blip.Remove(88@)
88@ = Blip.AddForChar(35@(37@,2i))
Blip.SetAsFriendly(88@, True)
47@ = 25
if 
  37@ == 0
goto_if_false @PIMP_35058
if 
  not Char.IsDead(91@(511@,28i))
goto_if_false @PIMP_35058
Char.MarkAsNoLongerNeeded(91@(511@,28i))
119@(511@,28i) = 0

:PIMP_35058
if 
  37@ == 1
goto_if_false @PIMP_35116
if 
  not Char.IsDead(91@(512@,28i))
goto_if_false @PIMP_35116
Char.MarkAsNoLongerNeeded(91@(512@,28i))
119@(512@,28i) = 0

:PIMP_35116
47@ = 99
42@ = 2
49@ += 1
540@ = Stat.GetInt(StatId.PimpingLevel)
if 
  not is_int_lvar_greater_than_int_lvar 540@ > 49@
goto_if_false @PIMP_35172
Stat.SetInt(StatId.PimpingLevel, 49@)

:PIMP_35172
if 
  not Char.IsDead(91@(50@,28i))
goto_if_false @PIMP_35261
if 
  Char.LocateAnyMeansChar3D($scplayer, 91@(50@,28i), 50.0, 50.0, 60.0, False)
goto_if_false @PIMP_35250
Char.FreezePositionAndDontLoadCollision(91@(50@,28i), False)
goto @PIMP_35261

:PIMP_35250
Char.FreezePositionAndDontLoadCollision(91@(50@,28i), True)

:PIMP_35261
if 
  not Char.IsDead(91@(511@,28i))
goto_if_false @PIMP_35350
if 
  Char.LocateAnyMeansChar3D($scplayer, 91@(511@,28i), 50.0, 50.0, 60.0, False)
goto_if_false @PIMP_35339
Char.FreezePositionAndDontLoadCollision(91@(511@,28i), False)
goto @PIMP_35350

:PIMP_35339
Char.FreezePositionAndDontLoadCollision(91@(511@,28i), True)

:PIMP_35350
if 
  not Char.IsDead(91@(512@,28i))
goto_if_false @PIMP_35439
if 
  Char.LocateAnyMeansChar3D($scplayer, 91@(512@,28i), 50.0, 50.0, 60.0, False)
goto_if_false @PIMP_35428
Char.FreezePositionAndDontLoadCollision(91@(512@,28i), False)
goto @PIMP_35439

:PIMP_35428
Char.FreezePositionAndDontLoadCollision(91@(512@,28i), True)

:PIMP_35439
if 
  not Char.IsDead(35@)
goto_if_false @PIMP_35512
if 
  Char.LocateAnyMeansChar3D($scplayer, 35@, 50.0, 50.0, 60.0, False)
goto_if_false @PIMP_35505
Char.FreezePositionAndDontLoadCollision(35@, False)
goto @PIMP_35512

:PIMP_35505
Char.FreezePositionAndDontLoadCollision(35@, True)

:PIMP_35512
if 
  not Char.IsDead(36@)
goto_if_false @PIMP_35585
if 
  Char.LocateAnyMeansChar3D($scplayer, 36@, 50.0, 50.0, 60.0, False)
goto_if_false @PIMP_35578
Char.FreezePositionAndDontLoadCollision(36@, False)
goto @PIMP_35585

:PIMP_35578
Char.FreezePositionAndDontLoadCollision(36@, True)

:PIMP_35585
goto @PIMP_3765

:PIMP_35592
if 
  35@(37@,2i) <> -1
goto_if_false @PIMP_35660
519@ = Char.GetPedType(35@(37@,2i))
if 
  not Char.IsMale(35@(37@,2i))
goto_if_false @PIMP_35660
41@ = 99
42@ = 1

:PIMP_35660
return 

:PIMP_35662
if 
  37@ == 0
goto_if_false @PIMP_35689
37@ = 1
return 

:PIMP_35689
if 
  37@ == 1
goto_if_false @PIMP_35716
37@ = 0
return 

:PIMP_35716
return 
return 

:PIMP_35720
if 
  is_int_lvar_equal_to_constant 531@ == 1
goto_if_false @PIMP_36306
if or
  Char.IsInZone($scplayer, 'IWD')
  Char.IsInZone($scplayer, 'GAN')
  Char.IsInZone($scplayer, 'ELCO')
  Char.IsInZone($scplayer, 'LMEX')
goto_if_false @PIMP_35812
58@ = 1

:PIMP_35812
if or
  Char.IsInZone($scplayer, 'LDOC')
  Char.IsInZone($scplayer, 'LAIR')
  Char.IsInZone($scplayer, 'LIND')
  Char.IsInZone($scplayer, 'BLUF')
goto_if_false @PIMP_35886
58@ = 2

:PIMP_35886
if or
  Char.IsInZone($scplayer, 'COM')
  Char.IsInZone($scplayer, 'LDT')
  Char.IsInZone($scplayer, 'GLN')
  Char.IsInZone($scplayer, 'LMEX')
goto_if_false @PIMP_35960
58@ = 3

:PIMP_35960
if or
  Char.IsInZone($scplayer, 'JEF')
  Char.IsInZone($scplayer, 'ELS')
  Char.IsInZone($scplayer, 'LFL')
  Char.IsInZone($scplayer, 'EBE')
goto_if_false @PIMP_36034
58@ = 4

:PIMP_36034
if or
  Char.IsInZone($scplayer, 'CONF')
  Char.IsInZone($scplayer, 'VERO')
  Char.IsInZone($scplayer, 'SMB')
  Char.IsInZone($scplayer, 'MAR')
  Char.IsInZone($scplayer, 'MKT')
goto_if_false @PIMP_36122
58@ = 5

:PIMP_36122
if or
  Char.IsInZone($scplayer, 'SMB')
  Char.IsInZone($scplayer, 'PLS')
  Char.IsInZone($scplayer, 'ROD')
  Char.IsInZone($scplayer, 'RIH')
goto_if_false @PIMP_36196
58@ = 6

:PIMP_36196
if or
  Char.IsInZone($scplayer, 'VIN')
  Char.IsInZone($scplayer, 'MUL')
  Char.IsInZone($scplayer, 'SUN')
goto_if_false @PIMP_36256
58@ = 7

:PIMP_36256
if 
  1 > 58@
goto_if_false @PIMP_36281
58@ = 1

:PIMP_36281
if 
  58@ > 7
goto_if_false @PIMP_36306
58@ = 1

:PIMP_36306
if 
  is_int_lvar_equal_to_constant 531@ == 2
goto_if_false @PIMP_36878
if or
  Char.IsInZone($scplayer, 'BAYV')
  Char.IsInZone($scplayer, 'PARA')
  Char.IsInZone($scplayer, 'CIVI')
  Char.IsInZone($scplayer, 'CITYS')
goto_if_false @PIMP_36398
58@ = 1

:PIMP_36398
if or
  Char.IsInZone($scplayer, 'CALT')
  Char.IsInZone($scplayer, 'JUNIHO')
  Char.IsInZone($scplayer, 'JUNIHI')
  Char.IsInZone($scplayer, 'ESPN')
goto_if_false @PIMP_36472
58@ = 2

:PIMP_36472
if or
  Char.IsInZone($scplayer, 'SUNMA')
  Char.IsInZone($scplayer, 'SUNNN')
  Char.IsInZone($scplayer, 'GANTB')
  Char.IsInZone($scplayer, 'BATTP')
goto_if_false @PIMP_36546
58@ = 3

:PIMP_36546
if or
  Char.IsInZone($scplayer, 'CHINA')
  Char.IsInZone($scplayer, 'SFDWT')
  Char.IsInZone($scplayer, 'FINA')
  Char.IsInZone($scplayer, 'ESPE')
goto_if_false @PIMP_36620
58@ = 4

:PIMP_36620
if or
  Char.IsInZone($scplayer, 'WESTP')
  Char.IsInZone($scplayer, 'HASH')
  Char.IsInZone($scplayer, 'OCEAF')
  Char.IsInZone($scplayer, 'CUNTC')
goto_if_false @PIMP_36694
58@ = 5

:PIMP_36694
if or
  Char.IsInZone($scplayer, 'THEA')
  Char.IsInZone($scplayer, 'GARC')
  Char.IsInZone($scplayer, 'DOH')
  Char.IsInZone($scplayer, 'EASB')
goto_if_false @PIMP_36768
58@ = 6

:PIMP_36768
if or
  Char.IsInZone($scplayer, 'HILLP')
  Char.IsInZone($scplayer, 'SILLY')
  Char.IsInZone($scplayer, 'SFAIR')
goto_if_false @PIMP_36828
58@ = 7

:PIMP_36828
if 
  1 > 58@
goto_if_false @PIMP_36853
58@ = 1

:PIMP_36853
if 
  58@ > 7
goto_if_false @PIMP_36878
58@ = 1

:PIMP_36878
if 
  is_int_lvar_equal_to_constant 531@ == 3
goto_if_false @PIMP_37316
if or
  Char.IsInZone($scplayer, 'BFC')
  Char.IsInZone($scplayer, 'GGC')
  Char.IsInZone($scplayer, 'VAIR')
  Char.IsInZone($scplayer, 'LDM')
goto_if_false @PIMP_36970
58@ = 1

:PIMP_36970
if or
  Char.IsInZone($scplayer, 'PINK')
  Char.IsInZone($scplayer, 'DRAG')
  Char.IsInZone($scplayer, 'CAM')
  Char.IsInZone($scplayer, 'LOT')
goto_if_false @PIMP_37044
58@ = 2

:PIMP_37044
if or
  Char.IsInZone($scplayer, 'PIRA')
  Char.IsInZone($scplayer, 'ROY')
  Char.IsInZone($scplayer, 'CALI')
  Char.IsInZone($scplayer, 'HIGH')
goto_if_false @PIMP_37118
58@ = 3

:PIMP_37118
if or
  Char.IsInZone($scplayer, 'PILG')
  Char.IsInZone($scplayer, 'STAR')
  Char.IsInZone($scplayer, 'STRIP')
  Char.IsInZone($scplayer, 'VISA')
goto_if_false @PIMP_37192
58@ = 4

:PIMP_37192
if or
  Char.IsInZone($scplayer, 'ISLE')
  Char.IsInZone($scplayer, 'ROCE')
  Char.IsInZone($scplayer, 'OVS')
  Char.IsInZone($scplayer, 'RING')
goto_if_false @PIMP_37266
58@ = 5

:PIMP_37266
if 
  1 > 58@
goto_if_false @PIMP_37291
58@ = 1

:PIMP_37291
if 
  58@ > 5
goto_if_false @PIMP_37316
58@ = 1

:PIMP_37316
return 

:PIMP_37318
$controlmode = Pad.GetControllerMode()
if 
  $controlmode <> 3
goto_if_false @PIMP_37399

:PIMP_37341
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @PIMP_37392
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PIMP_37385
goto @PIMP_37457

:PIMP_37385
goto @PIMP_37341

:PIMP_37392
goto @PIMP_37450

:PIMP_37399
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @PIMP_37450
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PIMP_37443
goto @PIMP_37457

:PIMP_37443
goto @PIMP_37399

:PIMP_37450
goto @PIMP_37457

:PIMP_37457
if 
  49@ == 0
goto_if_false @PIMP_37491
Text.PrintBig('PIMP_40', 5000, TextStyle.Middle)

:PIMP_37491
if 
  49@ == 1
goto_if_false @PIMP_37525
Text.PrintBig('PIMP_41', 5000, TextStyle.Middle)

:PIMP_37525
if 
  49@ == 2
goto_if_false @PIMP_37559
Text.PrintBig('PIMP_42', 5000, TextStyle.Middle)

:PIMP_37559
if 
  49@ == 3
goto_if_false @PIMP_37593
Text.PrintBig('PIMP_43', 5000, TextStyle.Middle)

:PIMP_37593
if 
  49@ == 4
goto_if_false @PIMP_37627
Text.PrintBig('PIMP_44', 5000, TextStyle.Middle)

:PIMP_37627
if 
  49@ == 5
goto_if_false @PIMP_37661
Text.PrintBig('PIMP_45', 5000, TextStyle.Middle)

:PIMP_37661
if 
  49@ == 6
goto_if_false @PIMP_37695
Text.PrintBig('PIMP_46', 5000, TextStyle.Middle)

:PIMP_37695
if 
  49@ == 7
goto_if_false @PIMP_37729
Text.PrintBig('PIMP_47', 5000, TextStyle.Middle)

:PIMP_37729
if 
  49@ == 8
goto_if_false @PIMP_37763
Text.PrintBig('PIMP_48', 5000, TextStyle.Middle)

:PIMP_37763
if 
  49@ == 9
goto_if_false @PIMP_37797
Text.PrintBig('PIMP_49', 5000, TextStyle.Middle)

:PIMP_37797
return 

:PIMP_37799
Text.PrintWithNumberBig('PIMP_50', 1000, 5000, TextStyle.Middle)
Audio.PlayMissionPassedTune(2)
Player.AddScore($player1, 1000)
Player.ClearWantedLevel($player1)
if 
  $pimp_passed_once == 0
goto_if_false @PIMP_37870
Stat.RegisterOddjobMissionPassed
Stat.PlayerMadeProgress(1)
//Game.ActivatePimpCheat(True)
$pimp_passed_once = 1

:PIMP_37870
return 

:PIMP_37872
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Hud.ClearTimer($pimp_bikeostimer)
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.MarkModelAsNoLongerNeeded(22)
Streaming.MarkModelAsNoLongerNeeded(147)
Streaming.MarkModelAsNoLongerNeeded(17)
Streaming.MarkModelAsNoLongerNeeded(36)
Streaming.MarkModelAsNoLongerNeeded(29)
Streaming.MarkModelAsNoLongerNeeded(33)
Streaming.MarkModelAsNoLongerNeeded(34)
Streaming.MarkModelAsNoLongerNeeded(32)
Streaming.MarkModelAsNoLongerNeeded(152)
Streaming.MarkModelAsNoLongerNeeded(75)
Streaming.MarkModelAsNoLongerNeeded(63)
Streaming.MarkModelAsNoLongerNeeded(64)
Streaming.MarkModelAsNoLongerNeeded(85)
Streaming.MarkModelAsNoLongerNeeded(245)
Streaming.MarkModelAsNoLongerNeeded(71)
Streaming.MarkModelAsNoLongerNeeded(58)
Streaming.MarkModelAsNoLongerNeeded(50)
Streaming.MarkModelAsNoLongerNeeded(68)
Streaming.MarkModelAsNoLongerNeeded(23)
Streaming.MarkModelAsNoLongerNeeded(72)
Streaming.MarkModelAsNoLongerNeeded(48)
Streaming.MarkModelAsNoLongerNeeded(163)
Streaming.MarkModelAsNoLongerNeeded(19)
if 
  not Char.IsDead($scplayer)
goto_if_false @PIMP_38004
Char.SetCantBeDraggedOut($scplayer, False)

:PIMP_38004
Blip.Remove(88@)
Blip.Remove(89@)
Blip.Remove(90@)
Blip.Remove(522@)
if 
  34@ == 1
goto_if_false @PIMP_38047
Menu.Delete(529@)

:PIMP_38047
Game.SetRelationship(RelationshipType.Dislike, PedType.Gang1, PedType.Player1)
$timer_mobile_start = Clock.GetGameTimer()
$flag_player_on_pimp_mission = 0
$onmission = 0
Mission.Finish
return 

//-------------Mission 128---------------
// Originally: Arena Mission: Blood Ring

:BLOOD
script_name 'BLOOD'
gosub @BLOOD_47
if 
  has_deatharrest_been_executed 
goto_if_false @BLOOD_38
gosub @BLOOD_13135

:BLOOD_38
gosub @BLOOD_13240
terminate_this_script 

:BLOOD_47
$onmission = 1
if 
  $blood_passed_once == 0
goto_if_false @BLOOD_74
Stat.RegisterMissionGiven

:BLOOD_74
Text.LoadMissionText('BLOOD')
if 
  $onmission == 0
goto_if_false @BLOOD_202
90@ = Blip.AddForCoord(158@, 159@, 160@)
87@ = Object.Create(#BB_PICKUP, 170@, 171@, 172@)
84@ = Car.Create(504, 154@, 155@, 156@)
85@ = Car.Create(504, 154@, 155@, 156@)
86@ = Car.Create(504, 154@, 155@, 156@)
95@ = Car.Create(504, 154@, 155@, 156@)

:BLOOD_202
Camera.SetFadingColor(0, 0, 0)
Text.ClearPrints
Text.ClearThisPrintBigNow(TextStyle.Middle)
wait 0
91@ = 0
92@ = 0
if 
  $blood_passed_once == 0
goto_if_false @BLOOD_269
$blood_time_to_beat = 60
$blood_players_current_time = 60000

:BLOOD_269
93@ = 0
94@ = 0
95@ = 0
$pimp_runtimer = 30000
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 0
102@ = -1
154@ = -1280.9
155@ = 994.8
156@ = 1037.0
157@ = 90.0
158@ = 0.0
159@ = 0.0
160@ = 0.0
161@ = 0.0
162@ = 0.0
163@ = 0.0
164@ = 0.0
165@ = 0.0
166@ = 0.0
167@ = 0.0
168@ = 0.0
169@ = 0.0
170@ = 0.0
171@ = 0.0
172@ = 0.0
173@ = 0.0
174@ = 0.0
175@ = 0.0
176@ = 0.0
177@ = 0.0
178@ = 0.0
179@ = 0.0
180@ = 0.0
181@ = 0.0
182@ = 0.0
183@ = 0.0
184@ = 0.0
103@ = 0
111@ = 0
104@ = 0
105@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
106@ = 0.0
set_lvar_int_to_constant 131@ = 33200
set_lvar_int_to_constant 132@ = 33202
set_lvar_int_to_constant 133@ = 33205
set_lvar_int_to_constant 134@ = 33200
set_lvar_int_to_constant 135@ = 33202
set_lvar_int_to_constant 136@ = 33205
set_lvar_int_to_constant 137@ = 33200
set_lvar_int_to_constant 138@ = 33202
set_lvar_int_to_constant 139@ = 33205
set_lvar_int_to_constant 140@ = 33200
set_lvar_int_to_constant 141@ = 33202
set_lvar_int_to_constant 142@ = 33205
set_lvar_int_to_constant 143@ = 33200
set_lvar_int_to_constant 144@ = 33202
set_lvar_int_to_constant 145@ = 33205
set_lvar_int_to_constant 146@ = 33200
set_lvar_int_to_constant 147@ = 33202
set_lvar_int_to_constant 148@ = 33205
set_lvar_int_to_constant 149@ = 33200
set_lvar_int_to_constant 150@ = 33202
set_lvar_int_to_constant 151@ = 33205
set_lvar_int_to_constant 152@ = 33200
set_lvar_int_to_constant 153@ = 33202
107@ = 0
108@ = 0
wait 0
Camera.DoFade(500, Fade.Out)

:BLOOD_1062
if 
  Camera.GetFadingStatus
goto_if_false @BLOOD_1086
wait 0
goto @BLOOD_1062

:BLOOD_1086
Streaming.RequestModel(504)
Streaming.RequestModel(439)
Streaming.RequestModel(353)
Streaming.RequestModel(#BB_PICKUP)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1827)

:BLOOD_1113
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @BLOOD_1139
wait 0
goto @BLOOD_1113

:BLOOD_1139
Streaming.LoadAllModelsNow
Restart.OverrideNext(-2126.3, -440.6, 34.5, 82.7)
Game.ForceAllVehicleLightsOff(True)
CarGenerator.SuppressCarModel(403)
CarGenerator.SuppressCarModel(408)
CarGenerator.SuppressCarModel(409)
CarGenerator.SuppressCarModel(413)
CarGenerator.SuppressCarModel(414)
CarGenerator.SuppressCarModel(418)
CarGenerator.SuppressCarModel(423)
CarGenerator.SuppressCarModel(428)
CarGenerator.SuppressCarModel(431)
CarGenerator.SuppressCarModel(433)
CarGenerator.SuppressCarModel(437)
CarGenerator.SuppressCarModel(440)
CarGenerator.SuppressCarModel(442)
CarGenerator.SuppressCarModel(443)
CarGenerator.SuppressCarModel(444)
CarGenerator.SuppressCarModel(455)
CarGenerator.SuppressCarModel(456)
CarGenerator.SuppressCarModel(458)
CarGenerator.SuppressCarModel(470)
CarGenerator.SuppressCarModel(482)
CarGenerator.SuppressCarModel(483)
CarGenerator.SuppressCarModel(486)
CarGenerator.SuppressCarModel(489)
CarGenerator.SuppressCarModel(498)
CarGenerator.SuppressCarModel(499)
CarGenerator.SuppressCarModel(508)
CarGenerator.SuppressCarModel(514)
CarGenerator.SuppressCarModel(515)
CarGenerator.SuppressCarModel(524)
CarGenerator.SuppressCarModel(525)
CarGenerator.SuppressCarModel(578)
CarGenerator.SuppressCarModel(582)
CarGenerator.SuppressCarModel(588)
Player.SetControl($player1, False)
185@ = DecisionMakerChar.Copy(65542)
Game.HideAllFrontendBlips(True)
Player.SetFreeHealthCare($player1, True)
switch_rubbish 0
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
shut_player_up $player1 {_p2} 1
Char.SetCoordinates($scplayer, -1398.461, 995.641, 1024.462)
Streaming.SetAreaVisible(15)
Char.SetAreaVisible($scplayer, 15)
World.SetExtraColors(2, False)
Streaming.RequestCollision(154@, 155@)
Streaming.LoadScene(154@, 155@, 156@)
World.ClearArea(-1280.9, 994.8, 1037.0, 300.0, True)
Streaming.LoadSceneInDirection(-1280.8, 994.7, 1036.0, 90.0)
103@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Mp5)
Char.GiveWeapon($scplayer, WeaponType.Mp5, 30000)
set_lvar_int_to_constant 108@ = 504
gosub @BLOOD_15567
34@ = Car.Create(504, 154@, 155@, 156@)
Car.SetLoadCollisionFlag(34@, True)
Car.SetAreaVisible(34@, 15)
Car.SetHeading(34@, 157@)
Car.LockDoors(34@, CarLock.LockedPlayerInside)
Char.WarpIntoCar($scplayer, 34@)
Char.SetCurrentWeapon($scplayer, WeaponType.Mp5)
Car.SetStrong(34@, True)
Car.SetUpsidedownNotDamaged(34@, True)
Car.SetCanBurstTires(34@, False)
Car.SetHealth(34@, 1249)
83@ = Char.CreateRandomAsPassenger(34@, 0)
Char.SetAreaVisible(83@, 15)
Char.SetDecisionMaker(83@, 185@)
Char.GiveWeapon(83@, WeaponType.Mp5, 30000)
Char.SetProofs(83@, True, False, False, False, False)

:BLOOD_1662
if 
  16 > 93@
goto_if_false @BLOOD_2121
wait 0
gosub @BLOOD_13364
104@, 105@ = Streaming.GetRandomCarModelInMemory(True)
if 
  104@ >= 0
goto_if_false @BLOOD_1755
set_lvar_int_to_lvar_int 108@ = 104@
gosub @BLOOD_15567
35@(93@,16i) = Car.Create(104@, 154@, 155@, 156@)

:BLOOD_1755
if 
  104@ == -1
goto_if_false @BLOOD_1809
set_lvar_int_to_constant 108@ = 439
gosub @BLOOD_15567
35@(93@,16i) = Car.Create(439, 154@, 155@, 156@)

:BLOOD_1809
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_2107
Car.SetHeading(35@(93@,16i), 157@)
Car.SetLoadCollisionFlag(35@(93@,16i), True)
Car.SetStraightLineDistance(35@(93@,16i), 255)
Car.SetCanBurstTires(35@(93@,16i), False)
51@(93@,16i) = Char.CreateRandomAsDriver(35@(93@,16i))
Char.SetAreaVisible(51@(93@,16i), 15)
Char.SetDecisionMaker(51@(93@,16i), 185@)
Char.SetProofs(51@(93@,16i), True, False, False, False, False)
101@ = Car.GetMaximumNumberOfPassengers(35@(93@,16i))
if 
  101@ > 0
goto_if_false @BLOOD_2026
67@(93@,16i) = Char.CreateRandomAsPassenger(35@(93@,16i), 0)
Char.SetDecisionMaker(67@(93@,16i), 185@)
Char.SetProofs(67@(93@,16i), True, False, False, False, False)
Char.GiveWeapon(67@(93@,16i), WeaponType.Mp5, 30000)

:BLOOD_2026
if 
  Char.IsOnAnyBike(51@(93@,16i))
goto_if_false @BLOOD_2068
Char.SetCanBeKnockedOffBike(51@(93@,16i), True)
Char.SetCanBeKnockedOffBike(67@(93@,16i), True)

:BLOOD_2068
StuckCarCheck.Add(35@(93@,16i), 1.0, 3000)
Car.SetUpsidedownNotDamaged(35@(93@,16i), True)
Car.SetAreaVisible(35@(93@,16i), 15)

:BLOOD_2107
93@ += 1
goto @BLOOD_1662

:BLOOD_2121
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-1273.2, 992.4, 1038.5, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1307.9, 995.3, 1034.2, SwitchType.JumpCut)
89@ = Checkpoint.Create(CheckpointType.Tube, -1432.6, 1016.1, 1024.1, 0.0, 0.0, 0.0, 6.0)
Camera.SetFadingColor(0, 0, 0)
wait 500
Camera.DoFade(1500, Fade.In)

:BLOOD_2238
if 
  Camera.GetFadingStatus
goto_if_false @BLOOD_2262
wait 0
goto @BLOOD_2238

:BLOOD_2262
skip_cutscene_start_internal @BLOOD_2988
Text.PrintNow('BLOD_10', 5000, 1)
TIMERA = 0

:BLOOD_2292
if 
  5000 > TIMERA
goto_if_false @BLOOD_2322
wait 0
goto @BLOOD_2292

:BLOOD_2322
Camera.SetFixedPosition(-1441.9, 1054.6, 1040.5, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1432.0, 1012.6, 1034.7, SwitchType.JumpCut)
Text.PrintNow('BLOD_01', 5000, 1)
TIMERA = 0

:BLOOD_2396
if 
  5000 > TIMERA
goto_if_false @BLOOD_2426
wait 0
goto @BLOOD_2396

:BLOOD_2426
Camera.SetFixedPosition(-1464.6, 943.6, 1036.1, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1436.1, 923.4, 1040.2, SwitchType.JumpCut)
if 
  $blood_passed_once == 0
goto_if_false @BLOOD_2518
Text.PrintNow('BLOD_11', 5000, 1)
goto @BLOOD_2537

:BLOOD_2518
Text.PrintWithNumberNow('BLOD_12', $blood_attempt, 5000, 1)

:BLOOD_2537
TIMERA = 0

:BLOOD_2544
if 
  5000 > TIMERA
goto_if_false @BLOOD_2574
wait 0
goto @BLOOD_2544

:BLOOD_2574
Camera.SetFixedPosition(-1492.7, 1029.5, 1038.4, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1539.1, 1032.3, 1038.9, SwitchType.JumpCut)
Text.PrintNow('BLOD_03', 5000, 1)
TIMERA = 0

:BLOOD_2648
if 
  5000 > TIMERA
goto_if_false @BLOOD_2678
wait 0
goto @BLOOD_2648

:BLOOD_2678
Camera.SetFixedPosition(-1314.1, 1040.6, 1038.7, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1373.1, 1047.2, 1034.5, SwitchType.JumpCut)
Text.PrintNow('BLOD_02', 5000, 1)
TIMERA = 0

:BLOOD_2752
if 
  5000 > TIMERA
goto_if_false @BLOOD_2782
wait 0
goto @BLOOD_2752

:BLOOD_2782
87@ = Object.Create(#BB_PICKUP, -1345.2, 978.7, 1024.9)
Object.SetAreaVisible(87@, 15)
Camera.SetFixedPosition(-1342.1, 975.2, 1026.6, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1345.2, 979.7, 1026.4, SwitchType.JumpCut)
Text.PrintNow('SPANNER', 5000, 1)
TIMERA = 0

:BLOOD_2886
if 
  5000 > TIMERA
goto_if_false @BLOOD_2988
wait 0
if 
  Object.DoesExist(87@)
goto_if_false @BLOOD_2981
if 
  358.0 > 106@
goto_if_false @BLOOD_2971
106@ += 3.0
Object.SetHeading(87@, 106@)
goto @BLOOD_2981

:BLOOD_2971
106@ = 0.0

:BLOOD_2981
goto @BLOOD_2886

:BLOOD_2988
skip_cutscene_end 
Camera.DoFade(500, Fade.Out)

:BLOOD_2997
if 
  Camera.GetFadingStatus
goto_if_false @BLOOD_3093
wait 0
if 
  Object.DoesExist(87@)
goto_if_false @BLOOD_3086
if 
  358.0 > 106@
goto_if_false @BLOOD_3076
106@ += 3.0
Object.SetHeading(87@, 106@)
goto @BLOOD_3086

:BLOOD_3076
106@ = 0.0

:BLOOD_3086
goto @BLOOD_2997

:BLOOD_3093
Checkpoint.Delete(89@)
158@ = -1432.6
159@ = 1016.1
160@ = 1024.1
89@ = Checkpoint.Create(CheckpointType.Tube, 158@, 159@, 160@, 0.0, 0.0, 0.0, 6.0)
90@ = Blip.AddForCoord(158@, 159@, 160@)
Object.Delete(87@)
gosub @BLOOD_14473
Text.ClearPrints
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Camera.DoFade(500, Fade.In)

:BLOOD_3207
if 
  Camera.GetFadingStatus
goto_if_false @BLOOD_3231
wait 0
goto @BLOOD_3207

:BLOOD_3231
Text.PrintBig('RACE2', 1100, TextStyle.MiddleSmaller)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1056)
wait 1000
Text.PrintBig('RACE3', 1100, TextStyle.MiddleSmaller)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1056)
wait 1000
Text.PrintBig('RACE4', 1100, TextStyle.MiddleSmaller)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1056)
wait 1000
Text.PrintBig('RACE5', 800, TextStyle.MiddleSmaller)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1164)
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1057)
wait 800
Text.ClearPrints
Player.SetControl($player1, True)
Hud.DisplayTimer($pimp_runtimer, TimerDirection.Down)
93@ = 0

:BLOOD_3438
if 
  16 > 93@
goto_if_false @BLOOD_3563
wait 0
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_3549
if 
  not Char.IsDead(51@(93@,16i))
goto_if_false @BLOOD_3549
Car.SetForwardSpeed(35@(93@,16i), 10.0)
Car.SetCruiseSpeed(35@(93@,16i), 100.0)
Task.CarTempAction(51@(93@,16i), 35@(93@,16i), TempAction.GoForward, 5000)

:BLOOD_3549
93@ += 1
goto @BLOOD_3438

:BLOOD_3563
wait 0
Player.ClearWantedLevel($player1)
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @BLOOD_3594
goto @BLOOD_13153

:BLOOD_3594
if 
  91@ == 0
goto_if_false @BLOOD_12351
if 
  not Car.IsDead(34@)
goto_if_false @BLOOD_12351
if 
  Char.IsInArea2D($scplayer, -1530.0, 995.0, -1384.0, 923.0, False)
goto_if_false @BLOOD_3803
if 
  97@ == 0
goto_if_false @BLOOD_3796
if 
  not Char.IsDead(52@)
goto_if_false @BLOOD_3705
Char.ClearTasks(52@)

:BLOOD_3705
if 
  not Char.IsDead(53@)
goto_if_false @BLOOD_3726
Char.ClearTasks(53@)

:BLOOD_3726
if 
  not Char.IsDead(67@)
goto_if_false @BLOOD_3747
Char.ClearTasks(67@)

:BLOOD_3747
if 
  not Char.IsDead(68@)
goto_if_false @BLOOD_3768
Char.ClearTasks(68@)

:BLOOD_3768
if 
  not Char.IsDead(69@)
goto_if_false @BLOOD_3789
Char.ClearTasks(69@)

:BLOOD_3789
97@ = 1

:BLOOD_3796
goto @BLOOD_3933

:BLOOD_3803
if 
  97@ == 1
goto_if_false @BLOOD_3933
if 
  not Char.IsDead(52@)
goto_if_false @BLOOD_3842
Char.ClearTasks(52@)

:BLOOD_3842
if 
  not Char.IsDead(53@)
goto_if_false @BLOOD_3863
Char.ClearTasks(53@)

:BLOOD_3863
if 
  not Char.IsDead(67@)
goto_if_false @BLOOD_3884
Char.ClearTasks(67@)

:BLOOD_3884
if 
  not Char.IsDead(68@)
goto_if_false @BLOOD_3905
Char.ClearTasks(68@)

:BLOOD_3905
if 
  not Char.IsDead(69@)
goto_if_false @BLOOD_3926
Char.ClearTasks(69@)

:BLOOD_3926
97@ = 0

:BLOOD_3933
if 
  Char.IsInArea2D($scplayer, -1530.0, 995.0, -1384.0, 1076.0, False)
goto_if_false @BLOOD_4108
if 
  98@ == 0
goto_if_false @BLOOD_4101
if 
  not Char.IsDead(55@)
goto_if_false @BLOOD_4010
Char.ClearTasks(55@)

:BLOOD_4010
if 
  not Char.IsDead(56@)
goto_if_false @BLOOD_4031
Char.ClearTasks(56@)

:BLOOD_4031
if 
  not Char.IsDead(70@)
goto_if_false @BLOOD_4052
Char.ClearTasks(70@)

:BLOOD_4052
if 
  not Char.IsDead(71@)
goto_if_false @BLOOD_4073
Char.ClearTasks(71@)

:BLOOD_4073
if 
  not Char.IsDead(72@)
goto_if_false @BLOOD_4094
Char.ClearTasks(72@)

:BLOOD_4094
98@ = 1

:BLOOD_4101
goto @BLOOD_4238

:BLOOD_4108
if 
  98@ == 1
goto_if_false @BLOOD_4238
if 
  not Char.IsDead(55@)
goto_if_false @BLOOD_4147
Char.ClearTasks(55@)

:BLOOD_4147
if 
  not Char.IsDead(56@)
goto_if_false @BLOOD_4168
Char.ClearTasks(56@)

:BLOOD_4168
if 
  not Char.IsDead(70@)
goto_if_false @BLOOD_4189
Char.ClearTasks(70@)

:BLOOD_4189
if 
  not Char.IsDead(71@)
goto_if_false @BLOOD_4210
Char.ClearTasks(71@)

:BLOOD_4210
if 
  not Char.IsDead(72@)
goto_if_false @BLOOD_4231
Char.ClearTasks(72@)

:BLOOD_4231
98@ = 0

:BLOOD_4238
if 
  Char.IsInArea2D($scplayer, -1265.0, 995.0, -1384.0, 923.0, False)
goto_if_false @BLOOD_4413
if 
  99@ == 0
goto_if_false @BLOOD_4406
if 
  not Char.IsDead(58@)
goto_if_false @BLOOD_4315
Char.ClearTasks(58@)

:BLOOD_4315
if 
  not Char.IsDead(59@)
goto_if_false @BLOOD_4336
Char.ClearTasks(59@)

:BLOOD_4336
if 
  not Char.IsDead(73@)
goto_if_false @BLOOD_4357
Char.ClearTasks(73@)

:BLOOD_4357
if 
  not Char.IsDead(74@)
goto_if_false @BLOOD_4378
Char.ClearTasks(74@)

:BLOOD_4378
if 
  not Char.IsDead(75@)
goto_if_false @BLOOD_4399
Char.ClearTasks(75@)

:BLOOD_4399
99@ = 1

:BLOOD_4406
goto @BLOOD_4543

:BLOOD_4413
if 
  99@ == 1
goto_if_false @BLOOD_4543
if 
  not Char.IsDead(58@)
goto_if_false @BLOOD_4452
Char.ClearTasks(58@)

:BLOOD_4452
if 
  not Char.IsDead(59@)
goto_if_false @BLOOD_4473
Char.ClearTasks(59@)

:BLOOD_4473
if 
  not Char.IsDead(73@)
goto_if_false @BLOOD_4494
Char.ClearTasks(73@)

:BLOOD_4494
if 
  not Char.IsDead(74@)
goto_if_false @BLOOD_4515
Char.ClearTasks(74@)

:BLOOD_4515
if 
  not Char.IsDead(75@)
goto_if_false @BLOOD_4536
Char.ClearTasks(75@)

:BLOOD_4536
99@ = 0

:BLOOD_4543
if 
  Char.IsInArea2D($scplayer, -1265.0, 995.0, -1384.0, 1076.0, False)
goto_if_false @BLOOD_4718
if 
  100@ == 0
goto_if_false @BLOOD_4711
if 
  not Char.IsDead(61@)
goto_if_false @BLOOD_4620
Char.ClearTasks(61@)

:BLOOD_4620
if 
  not Char.IsDead(62@)
goto_if_false @BLOOD_4641
Char.ClearTasks(62@)

:BLOOD_4641
if 
  not Char.IsDead(76@)
goto_if_false @BLOOD_4662
Char.ClearTasks(76@)

:BLOOD_4662
if 
  not Char.IsDead(77@)
goto_if_false @BLOOD_4683
Char.ClearTasks(77@)

:BLOOD_4683
if 
  not Char.IsDead(78@)
goto_if_false @BLOOD_4704
Char.ClearTasks(78@)

:BLOOD_4704
100@ = 1

:BLOOD_4711
goto @BLOOD_4848

:BLOOD_4718
if 
  100@ == 1
goto_if_false @BLOOD_4848
if 
  not Char.IsDead(61@)
goto_if_false @BLOOD_4757
Char.ClearTasks(61@)

:BLOOD_4757
if 
  not Char.IsDead(62@)
goto_if_false @BLOOD_4778
Char.ClearTasks(62@)

:BLOOD_4778
if 
  not Char.IsDead(76@)
goto_if_false @BLOOD_4799
Char.ClearTasks(76@)

:BLOOD_4799
if 
  not Char.IsDead(77@)
goto_if_false @BLOOD_4820
Char.ClearTasks(77@)

:BLOOD_4820
if 
  not Char.IsDead(78@)
goto_if_false @BLOOD_4841
Char.ClearTasks(78@)

:BLOOD_4841
100@ = 0

:BLOOD_4848
if 
  16 > 93@
goto_if_false @BLOOD_11472
if 
  93@ == 0
goto_if_false @BLOOD_5608
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_5608
if 
  not Char.IsDead(51@(93@,16i))
goto_if_false @BLOOD_5327
if 
  not Car.IsOnFire(35@(93@,16i))
goto_if_false @BLOOD_5271
if 
  97@ == 0
goto_if_false @BLOOD_5152
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1489)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5152
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5152
173@ = Math.RandomFloatInRange(-1530.0, -1384.0)
174@ = Math.RandomFloatInRange(995.0, 923.0)
175@ = World.GetGroundZFor3DCoord(173@, 174@, 1078.7)
if 
  1034.1 > 175@
goto_if_false @BLOOD_5152
if 
  175@ > 1022.8
goto_if_false @BLOOD_5152
Task.CarDriveToCoord(51@(93@,16i), 35@(93@,16i), 173@, 174@, 175@, 100.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BLOOD_5152
if 
  97@ == 1
goto_if_false @BLOOD_5264
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1761)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5264
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5264
Task.CarMission(51@(93@,16i), 35@(93@,16i), 34@, CarMission.BlockCarFaraway, 100.0, DrivingMode.PloughThrough)

:BLOOD_5264
goto @BLOOD_5327

:BLOOD_5271
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5327
Task.CarTempAction(51@(93@,16i), 35@(93@,16i), TempAction.HandbrakeStraight, 2000000)

:BLOOD_5327
if 
  not Char.IsDead(67@(93@,16i))
goto_if_false @BLOOD_5608
if 
  97@ == 0
goto_if_false @BLOOD_5517
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5517
if 
  not Car.IsDead(36@)
goto_if_false @BLOOD_5461
Task.DriveBy(67@(93@,16i), -1, 36@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 50)
goto @BLOOD_5517

:BLOOD_5461
if 
  not Car.IsDead(37@)
goto_if_false @BLOOD_5517
Task.DriveBy(67@(93@,16i), -1, 37@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 50)

:BLOOD_5517
if 
  97@ == 1
goto_if_false @BLOOD_5608
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5608
Task.DriveBy(67@(93@,16i), -1, 34@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 25)

:BLOOD_5608
if or
  93@ == 1
  93@ == 2
goto_if_false @BLOOD_6214
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_6214
if 
  not Char.IsDead(51@(93@,16i))
goto_if_false @BLOOD_5996
if 
  not Car.IsOnFire(35@(93@,16i))
goto_if_false @BLOOD_5940
if 
  97@ == 0
goto_if_false @BLOOD_5821
if 
  not Car.IsDead(35@)
goto_if_false @BLOOD_5821
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1761)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5821
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5821
Task.CarMission(51@(93@,16i), 35@(93@,16i), 35@, CarMission.BlockCarFaraway, 100.0, DrivingMode.PloughThrough)

:BLOOD_5821
if 
  97@ == 1
goto_if_false @BLOOD_5933
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1761)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5933
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5933
Task.CarMission(51@(93@,16i), 35@(93@,16i), 34@, CarMission.BlockCarFaraway, 100.0, DrivingMode.PloughThrough)

:BLOOD_5933
goto @BLOOD_5996

:BLOOD_5940
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5996
Task.CarTempAction(51@(93@,16i), 35@(93@,16i), TempAction.HandbrakeStraight, 2000000)

:BLOOD_5996
if 
  not Char.IsDead(67@(93@,16i))
goto_if_false @BLOOD_6214
if 
  97@ == 0
goto_if_false @BLOOD_6123
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6123
if 
  not Car.IsDead(35@)
goto_if_false @BLOOD_6123
Task.DriveBy(67@(93@,16i), -1, 35@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 25)

:BLOOD_6123
if 
  97@ == 1
goto_if_false @BLOOD_6214
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6214
Task.DriveBy(67@(93@,16i), -1, 34@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 25)

:BLOOD_6214
if 
  93@ == 3
goto_if_false @BLOOD_6956
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_6956
if 
  not Char.IsDead(51@(93@,16i))
goto_if_false @BLOOD_6675
if 
  not Car.IsOnFire(35@(93@,16i))
goto_if_false @BLOOD_6619
if 
  98@ == 0
goto_if_false @BLOOD_6500
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1489)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6500
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6500
176@ = Math.RandomFloatInRange(-1530.0, -1384.0)
177@ = Math.RandomFloatInRange(995.0, 1056.0)
178@ = World.GetGroundZFor3DCoord(176@, 177@, 1078.7)
if 
  1034.1 > 178@
goto_if_false @BLOOD_6500
if 
  178@ > 1022.8
goto_if_false @BLOOD_6500
Task.CarDriveToCoord(51@(93@,16i), 35@(93@,16i), 176@, 177@, 178@, 100.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BLOOD_6500
if 
  98@ == 1
goto_if_false @BLOOD_6612
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1761)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6612
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6612
Task.CarMission(51@(93@,16i), 35@(93@,16i), 34@, CarMission.BlockCarFaraway, 100.0, DrivingMode.PloughThrough)

:BLOOD_6612
goto @BLOOD_6675

:BLOOD_6619
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6675
Task.CarTempAction(51@(93@,16i), 35@(93@,16i), TempAction.HandbrakeStraight, 2000000)

:BLOOD_6675
if 
  not Char.IsDead(67@(93@,16i))
goto_if_false @BLOOD_6956
if 
  98@ == 0
goto_if_false @BLOOD_6865
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6865
if 
  not Car.IsDead(39@)
goto_if_false @BLOOD_6809
Task.DriveBy(67@(93@,16i), -1, 39@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 50)
goto @BLOOD_6865

:BLOOD_6809
if 
  not Car.IsDead(40@)
goto_if_false @BLOOD_6865
Task.DriveBy(67@(93@,16i), -1, 40@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 50)

:BLOOD_6865
if 
  98@ == 1
goto_if_false @BLOOD_6956
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6956
Task.DriveBy(67@(93@,16i), -1, 34@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 25)

:BLOOD_6956
if or
  93@ == 4
  93@ == 5
goto_if_false @BLOOD_7562
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_7562
if 
  not Char.IsDead(51@(93@,16i))
goto_if_false @BLOOD_7344
if 
  not Car.IsOnFire(35@(93@,16i))
goto_if_false @BLOOD_7288
if 
  98@ == 0
goto_if_false @BLOOD_7169
if 
  not Car.IsDead(38@)
goto_if_false @BLOOD_7169
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1761)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7169
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7169
Task.CarMission(51@(93@,16i), 35@(93@,16i), 38@, CarMission.BlockCarFaraway, 100.0, DrivingMode.PloughThrough)

:BLOOD_7169
if 
  98@ == 1
goto_if_false @BLOOD_7281
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1761)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7281
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7281
Task.CarMission(51@(93@,16i), 35@(93@,16i), 34@, CarMission.BlockCarFaraway, 100.0, DrivingMode.PloughThrough)

:BLOOD_7281
goto @BLOOD_7344

:BLOOD_7288
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7344
Task.CarTempAction(51@(93@,16i), 35@(93@,16i), TempAction.HandbrakeStraight, 2000000)

:BLOOD_7344
if 
  not Char.IsDead(67@(93@,16i))
goto_if_false @BLOOD_7562
if 
  98@ == 0
goto_if_false @BLOOD_7471
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7471
if 
  not Car.IsDead(38@)
goto_if_false @BLOOD_7471
Task.DriveBy(67@(93@,16i), -1, 38@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 25)

:BLOOD_7471
if 
  98@ == 1
goto_if_false @BLOOD_7562
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7562
Task.DriveBy(67@(93@,16i), -1, 34@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 25)

:BLOOD_7562
if 
  93@ == 6
goto_if_false @BLOOD_8304
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_8304
if 
  not Char.IsDead(51@(93@,16i))
goto_if_false @BLOOD_8023
if 
  not Car.IsOnFire(35@(93@,16i))
goto_if_false @BLOOD_7967
if 
  99@ == 0
goto_if_false @BLOOD_7848
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1489)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7848
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7848
179@ = Math.RandomFloatInRange(-1265.0, -1384.0)
180@ = Math.RandomFloatInRange(995.0, 923.0)
181@ = World.GetGroundZFor3DCoord(179@, 180@, 1078.7)
if 
  1034.1 > 181@
goto_if_false @BLOOD_7848
if 
  181@ > 1022.8
goto_if_false @BLOOD_7848
Task.CarDriveToCoord(51@(93@,16i), 35@(93@,16i), 179@, 180@, 181@, 100.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BLOOD_7848
if 
  99@ == 1
goto_if_false @BLOOD_7960
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1761)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7960
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7960
Task.CarMission(51@(93@,16i), 35@(93@,16i), 34@, CarMission.BlockCarFaraway, 100.0, DrivingMode.PloughThrough)

:BLOOD_7960
goto @BLOOD_8023

:BLOOD_7967
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8023
Task.CarTempAction(51@(93@,16i), 35@(93@,16i), TempAction.HandbrakeStraight, 2000000)

:BLOOD_8023
if 
  not Char.IsDead(67@(93@,16i))
goto_if_false @BLOOD_8304
if 
  99@ == 0
goto_if_false @BLOOD_8213
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8213
if 
  not Car.IsDead(42@)
goto_if_false @BLOOD_8157
Task.DriveBy(67@(93@,16i), -1, 42@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 50)
goto @BLOOD_8213

:BLOOD_8157
if 
  not Car.IsDead(43@)
goto_if_false @BLOOD_8213
Task.DriveBy(67@(93@,16i), -1, 43@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 50)

:BLOOD_8213
if 
  99@ == 1
goto_if_false @BLOOD_8304
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8304
Task.DriveBy(67@(93@,16i), -1, 34@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 25)

:BLOOD_8304
if or
  93@ == 7
  93@ == 8
goto_if_false @BLOOD_8910
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_8910
if 
  not Char.IsDead(51@(93@,16i))
goto_if_false @BLOOD_8692
if 
  not Car.IsOnFire(35@(93@,16i))
goto_if_false @BLOOD_8636
if 
  99@ == 0
goto_if_false @BLOOD_8517
if 
  not Car.IsDead(41@)
goto_if_false @BLOOD_8517
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1761)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8517
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8517
Task.CarMission(51@(93@,16i), 35@(93@,16i), 41@, CarMission.BlockCarFaraway, 100.0, DrivingMode.PloughThrough)

:BLOOD_8517
if 
  99@ == 1
goto_if_false @BLOOD_8629
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1761)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8629
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8629
Task.CarMission(51@(93@,16i), 35@(93@,16i), 34@, CarMission.BlockCarFaraway, 100.0, DrivingMode.PloughThrough)

:BLOOD_8629
goto @BLOOD_8692

:BLOOD_8636
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8692
Task.CarTempAction(51@(93@,16i), 35@(93@,16i), TempAction.HandbrakeStraight, 2000000)

:BLOOD_8692
if 
  not Char.IsDead(67@(93@,16i))
goto_if_false @BLOOD_8910
if 
  99@ == 0
goto_if_false @BLOOD_8819
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8819
if 
  not Car.IsDead(41@)
goto_if_false @BLOOD_8819
Task.DriveBy(67@(93@,16i), -1, 41@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 25)

:BLOOD_8819
if 
  99@ == 1
goto_if_false @BLOOD_8910
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8910
Task.DriveBy(67@(93@,16i), -1, 34@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 25)

:BLOOD_8910
if 
  93@ == 9
goto_if_false @BLOOD_9652
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_9652
if 
  not Char.IsDead(51@(93@,16i))
goto_if_false @BLOOD_9371
if 
  not Car.IsOnFire(35@(93@,16i))
goto_if_false @BLOOD_9315
if 
  100@ == 0
goto_if_false @BLOOD_9196
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1489)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9196
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9196
182@ = Math.RandomFloatInRange(-1265.0, -1384.0)
183@ = Math.RandomFloatInRange(995.0, 1056.0)
184@ = World.GetGroundZFor3DCoord(182@, 183@, 1078.7)
if 
  1034.1 > 184@
goto_if_false @BLOOD_9196
if 
  184@ > 1022.8
goto_if_false @BLOOD_9196
Task.CarDriveToCoord(51@(93@,16i), 35@(93@,16i), 182@, 183@, 184@, 100.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BLOOD_9196
if 
  100@ == 1
goto_if_false @BLOOD_9308
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1761)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9308
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9308
Task.CarMission(51@(93@,16i), 35@(93@,16i), 34@, CarMission.BlockCarFaraway, 100.0, DrivingMode.PloughThrough)

:BLOOD_9308
goto @BLOOD_9371

:BLOOD_9315
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9371
Task.CarTempAction(51@(93@,16i), 35@(93@,16i), TempAction.HandbrakeStraight, 2000000)

:BLOOD_9371
if 
  not Char.IsDead(67@(93@,16i))
goto_if_false @BLOOD_9652
if 
  100@ == 0
goto_if_false @BLOOD_9561
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9561
if 
  not Car.IsDead(45@)
goto_if_false @BLOOD_9505
Task.DriveBy(67@(93@,16i), -1, 45@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 50)
goto @BLOOD_9561

:BLOOD_9505
if 
  not Car.IsDead(46@)
goto_if_false @BLOOD_9561
Task.DriveBy(67@(93@,16i), -1, 46@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 50)

:BLOOD_9561
if 
  100@ == 1
goto_if_false @BLOOD_9652
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9652
Task.DriveBy(67@(93@,16i), -1, 34@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 25)

:BLOOD_9652
if or
  93@ == 10
  93@ == 11
goto_if_false @BLOOD_10258
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_10258
if 
  not Char.IsDead(51@(93@,16i))
goto_if_false @BLOOD_10040
if 
  not Car.IsOnFire(35@(93@,16i))
goto_if_false @BLOOD_9984
if 
  100@ == 0
goto_if_false @BLOOD_9865
if 
  not Car.IsDead(44@)
goto_if_false @BLOOD_9865
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1761)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9865
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9865
Task.CarMission(51@(93@,16i), 35@(93@,16i), 44@, CarMission.BlockCarFaraway, 100.0, DrivingMode.PloughThrough)

:BLOOD_9865
if 
  100@ == 1
goto_if_false @BLOOD_9977
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1761)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9977
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9977
Task.CarMission(51@(93@,16i), 35@(93@,16i), 34@, CarMission.BlockCarFaraway, 100.0, DrivingMode.PloughThrough)

:BLOOD_9977
goto @BLOOD_10040

:BLOOD_9984
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10040
Task.CarTempAction(51@(93@,16i), 35@(93@,16i), TempAction.HandbrakeStraight, 2000000)

:BLOOD_10040
if 
  not Char.IsDead(67@(93@,16i))
goto_if_false @BLOOD_10258
if 
  100@ == 0
goto_if_false @BLOOD_10167
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10167
if 
  not Car.IsDead(44@)
goto_if_false @BLOOD_10167
Task.DriveBy(67@(93@,16i), -1, 44@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 25)

:BLOOD_10167
if 
  100@ == 1
goto_if_false @BLOOD_10258
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10258
Task.DriveBy(67@(93@,16i), -1, 34@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 25)

:BLOOD_10258
if or
  93@ == 12
  93@ == 13
goto_if_false @BLOOD_10593
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_10593
if 
  not Char.IsDead(51@(93@,16i))
goto_if_false @BLOOD_10500
if 
  not Car.IsOnFire(35@(93@,16i))
goto_if_false @BLOOD_10444
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1761)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10437
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10437
Task.CarMission(51@(93@,16i), 35@(93@,16i), 34@, CarMission.BlockCarFaraway, 100.0, DrivingMode.PloughThrough)

:BLOOD_10437
goto @BLOOD_10500

:BLOOD_10444
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10500
Task.CarTempAction(51@(93@,16i), 35@(93@,16i), TempAction.HandbrakeStraight, 2000000)

:BLOOD_10500
if 
  not Char.IsDead(67@(93@,16i))
goto_if_false @BLOOD_10593
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10593
Task.DriveBy(67@(93@,16i), -1, 34@, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, False, 40)

:BLOOD_10593
if or
  93@ == 14
  93@ == 15
goto_if_false @BLOOD_11090
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_11090
if 
  not Char.IsDead(51@(93@,16i))
goto_if_false @BLOOD_10843
if 
  not Car.IsOnFire(35@(93@,16i))
goto_if_false @BLOOD_10787
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1489)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10780
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10780
Task.CarDriveToCoord(51@(93@,16i), 35@(93@,16i), 158@, 159@, 160@, 100.0, DriveMode.Straightline, 0, DrivingMode.PloughThrough)

:BLOOD_10780
goto @BLOOD_10843

:BLOOD_10787
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10843
Task.CarTempAction(51@(93@,16i), 35@(93@,16i), TempAction.HandbrakeStraight, 2000000)

:BLOOD_10843
if 
  not Char.IsDead(67@(93@,16i))
goto_if_false @BLOOD_11090
$task_status = Char.GetScriptTaskStatus(67@(93@,16i), 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_11090
set_lvar_int_to_lvar_int 88@ = 35@(93@,16i)
if 
  93@ == 14
goto_if_false @BLOOD_10999
gosub @BLOOD_16798
set_lvar_int_to_lvar_int 84@ = 95@
if 
  84@ <> -1
goto_if_false @BLOOD_10999
Task.DriveBy(67@(93@,16i), -1, 84@, 0.0, 0.0, 0.0, 30.0, DriveByType.Ai, False, 50)

:BLOOD_10999
if 
  93@ == 15
goto_if_false @BLOOD_11090
gosub @BLOOD_16798
set_lvar_int_to_lvar_int 85@ = 95@
if 
  85@ <> -1
goto_if_false @BLOOD_11090
Task.DriveBy(67@(93@,16i), -1, 85@, 0.0, 0.0, 0.0, 30.0, DriveByType.Ai, False, 50)

:BLOOD_11090
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_11199
if 
  not Char.IsDead(83@)
goto_if_false @BLOOD_11199
if or
  Car.HasBeenDamagedByChar(35@(93@,16i), 83@)
  Car.HasBeenDamagedByChar(35@(93@,16i), $scplayer)
goto_if_false @BLOOD_11179
112@(93@,16i) = 1
goto @BLOOD_11190

:BLOOD_11179
112@(93@,16i) = 0

:BLOOD_11190
Car.ClearLastDamageEntity(35@(93@,16i))

:BLOOD_11199
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_11411
if 
  not Char.IsDead(51@(93@,16i))
goto_if_false @BLOOD_11404
if 
  Car.IsUpsidedown(35@(93@,16i))
goto_if_false @BLOOD_11330
if 
  not Char.LocateAnyMeansCar2D($scplayer, 35@(93@,16i), 7.0, 7.0, False)
goto_if_false @BLOOD_11330
167@, 168@, 169@ = Car.GetCoordinates(35@(93@,16i))
Car.SetCoordinates(35@(93@,16i), 167@, 168@, 169@)

:BLOOD_11330
if 
  StuckCarCheck.IsCarStuck(35@(93@,16i))
goto_if_false @BLOOD_11404
$task_status = Char.GetScriptTaskStatus(51@(93@,16i), 1735)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_11404
Task.CarTempAction(51@(93@,16i), 35@(93@,16i), TempAction.Reverse, 3000)

:BLOOD_11404
goto @BLOOD_11458

:BLOOD_11411
if 
  112@(93@,16i) == 1
goto_if_false @BLOOD_11440
111@ += 1

:BLOOD_11440
112@(93@,16i) = 0
gosub @BLOOD_14625

:BLOOD_11458
93@ += 1
goto @BLOOD_11479

:BLOOD_11472
93@ = 0

:BLOOD_11479
if 
  not Car.IsDead(47@)
goto_if_false @BLOOD_11544
if 
  Car.Locate3D(47@, 158@, 159@, 160@, 7.0, 7.0, 7.0, False)
goto_if_false @BLOOD_11544
gosub @BLOOD_14294

:BLOOD_11544
if 
  not Car.IsDead(48@)
goto_if_false @BLOOD_11609
if 
  Car.Locate3D(48@, 158@, 159@, 160@, 7.0, 7.0, 7.0, False)
goto_if_false @BLOOD_11609
gosub @BLOOD_14294

:BLOOD_11609
if 
  not Car.IsDead(49@)
goto_if_false @BLOOD_11674
if 
  Car.Locate3D(49@, 158@, 159@, 160@, 7.0, 7.0, 7.0, False)
goto_if_false @BLOOD_11674
gosub @BLOOD_14294

:BLOOD_11674
if 
  not Car.IsDead(50@)
goto_if_false @BLOOD_11739
if 
  Car.Locate3D(50@, 158@, 159@, 160@, 7.0, 7.0, 7.0, False)
goto_if_false @BLOOD_11739
gosub @BLOOD_14294

:BLOOD_11739
if 
  Object.DoesExist(87@)
goto_if_false @BLOOD_11927
if 
  Char.LocateAnyMeansObject2D($scplayer, 87@, 5.0, 5.0, False)
goto_if_false @BLOOD_11864
Object.Delete(87@)
96@ = Car.GetHealth(34@)
if 
  999 > 96@
goto_if_false @BLOOD_11841
96@ += 500
Car.SetHealth(34@, 96@)
goto @BLOOD_11857

:BLOOD_11841
96@ = 1500
Car.SetHealth(34@, 96@)

:BLOOD_11857
goto @BLOOD_11920

:BLOOD_11864
if 
  358.0 > 106@
goto_if_false @BLOOD_11910
106@ += 3.0
Object.SetHeading(87@, 106@)
goto @BLOOD_11920

:BLOOD_11910
106@ = 0.0

:BLOOD_11920
goto @BLOOD_11934

:BLOOD_11927
gosub @BLOOD_14473

:BLOOD_11934
if 
  Char.LocateAnyMeans3D($scplayer, 158@, 159@, 160@, 7.0, 7.0, 7.0, False)
goto_if_false @BLOOD_12095
if 
  $pimp_runtimer > 0
goto_if_false @BLOOD_12095
96@ = Car.GetHealth(34@)
if 
  1199 > 96@
goto_if_false @BLOOD_12044
96@ += 300
Car.SetHealth(34@, 96@)
goto @BLOOD_12060

:BLOOD_12044
96@ = 1500
Car.SetHealth(34@, 96@)

:BLOOD_12060
$pimp_runtimer += 15000
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
gosub @BLOOD_14294

:BLOOD_12095
if 
  Car.IsUpsidedown(34@)
goto_if_false @BLOOD_12171
if 
  Car.IsStopped(34@)
goto_if_false @BLOOD_12171
167@, 168@, 169@ = Car.GetCoordinates(34@)
157@ = Car.GetHeading(34@)
Car.SetCoordinates(34@, 167@, 168@, 169@)
Car.SetHeading(34@, 157@)

:BLOOD_12171
if 
  not Char.IsDead(83@)
goto_if_false @BLOOD_12293
$task_status = Char.GetScriptTaskStatus(83@, 1811)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_12293
set_lvar_int_to_lvar_int 88@ = 34@
gosub @BLOOD_16798
set_lvar_int_to_lvar_int 86@ = 95@
if 
  86@ <> -1
goto_if_false @BLOOD_12293
Task.DriveBy(83@, -1, 86@, 0.0, 0.0, 0.0, 30.0, DriveByType.Ai, False, 100)

:BLOOD_12293
gosub @BLOOD_17526
if 
  is_int_var_greater_than_int_var $pimp_runtimer > $blood_players_current_time
goto_if_false @BLOOD_12326
91@ = 1

:BLOOD_12326
if 
  0 >= $pimp_runtimer
goto_if_false @BLOOD_12351
91@ = 2

:BLOOD_12351
if 
  91@ == 1
goto_if_false @BLOOD_12774
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1164)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Audio.PlayMissionPassedTune(1)
93@ = 0

:BLOOD_12411
if 
  16 > 93@
goto_if_false @BLOOD_12478
wait 0
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_12464
Car.FreezePosition(35@(93@,16i), True)

:BLOOD_12464
93@ += 1
goto @BLOOD_12411

:BLOOD_12478
gosub @BLOOD_17072
set_lvar_int_to_var_int 109@ = $blood_attempt
109@ *= 60
Stat.IncrementInt(StatId.BloodringTime, 109@)
Stat.IncrementInt(StatId.BloodringKills, 111@)
$blood_attempt += 1
$blood_players_current_time += 60000
TIMERA = 0

:BLOOD_12540
if 
  5000 > TIMERA
goto_if_false @BLOOD_12570
wait 0
goto @BLOOD_12540

:BLOOD_12570
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:BLOOD_12585
if 
  Camera.GetFadingStatus
goto_if_false @BLOOD_12609
wait 0
goto @BLOOD_12585

:BLOOD_12609
Hud.SwitchWidescreen(False)
Menu.Delete(110@)
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($scplayer, 0)
Streaming.RequestCollision(-2126.3, -440.6)
Streaming.LoadSceneInDirection(-2119.0, -440.7, 34.5, 82.6)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -2126.3, -440.6, 34.5)
Char.SetHeading($scplayer, 82.7)
Hud.ClearTimer($pimp_runtimer)
Blip.Remove(90@)
Checkpoint.Delete(89@)
Game.HideAllFrontendBlips(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.In)

:BLOOD_12736
if 
  Camera.GetFadingStatus
goto_if_false @BLOOD_12760
wait 0
goto @BLOOD_12736

:BLOOD_12760
Player.SetControl($player1, True)
goto @BLOOD_13153

:BLOOD_12774
if 
  91@ == 2
goto_if_false @BLOOD_13128
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1164)
Player.SetControl($player1, False)
93@ = 0

:BLOOD_12826
if 
  16 > 93@
goto_if_false @BLOOD_12893
wait 0
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_12879
Car.FreezePosition(35@(93@,16i), True)

:BLOOD_12879
93@ += 1
goto @BLOOD_12826

:BLOOD_12893
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:BLOOD_12908
if 
  Camera.GetFadingStatus
goto_if_false @BLOOD_12932
wait 0
goto @BLOOD_12908

:BLOOD_12932
Hud.SwitchWidescreen(False)
Text.ClearPrints
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
Text.PrintNow('BLOD_05', 5000, 1)
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($scplayer, 0)
Streaming.RequestCollision(-2126.3, -440.6)
Streaming.LoadSceneInDirection(-2119.0, -440.7, 34.5, 82.6)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, -2126.3, -440.6, 34.5)
Char.SetHeading($scplayer, 82.7)
Hud.ClearTimer($pimp_runtimer)
Blip.Remove(90@)
Checkpoint.Delete(89@)
Game.HideAllFrontendBlips(False)
Restart.CancelOverride
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(500, Fade.In)

:BLOOD_13090
if 
  Camera.GetFadingStatus
goto_if_false @BLOOD_13114
wait 0
goto @BLOOD_13090

:BLOOD_13114
Player.SetControl($player1, True)
goto @BLOOD_13135

:BLOOD_13128
goto @BLOOD_3563

:BLOOD_13135
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:BLOOD_13153
Restart.CancelOverride
Player.SetFreeHealthCare($player1, False)
Text.ClearPrints
Player.ClearWantedLevel($player1)
if 
  $blood_passed_once == 0
goto_if_false @BLOOD_13238
Stat.RegisterOddjobMissionPassed
Stat.PlayerMadeProgress(1)
CarGenerator.Switch($f1_scripted_cut, 101)
Audio.PlayMissionPassedTune(2)
Text.PrintWithNumberBig('M_PASS', 10000, 5000, TextStyle.Middle)
Player.AddScore($player1, 10000)
$blood_passed_once = 1

:BLOOD_13238
return 

:BLOOD_13240
if 
  is_var_text_label_empty s$shop_name
goto_if_false @BLOOD_13258
Camera.RestoreJumpcut

:BLOOD_13258
World.ClearExtraColors(False)
Blip.Remove(90@)
Hud.ClearTimer($pimp_runtimer)
if 
  not Char.IsDead($scplayer)
goto_if_false @BLOOD_13295
Char.ShutUpForScriptedSpeech($scplayer, False)

:BLOOD_13295
Game.ShutAllCharsUp(False)
Text.UseCommands(False)
Streaming.MarkModelAsNoLongerNeeded(504)
Streaming.MarkModelAsNoLongerNeeded(439)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(#BB_PICKUP)
Char.SetAmmo($scplayer, WeaponType.Mp5, 103@)
Checkpoint.Delete(89@)
CarGenerator.DontSuppressAnyCarModels
Game.ForceAllVehicleLightsOff(False)
Game.HideAllFrontendBlips(False)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

:BLOOD_13364
if 
  93@ == 0
goto_if_false @BLOOD_13422
154@ = -1285.77
155@ = 1014.54
156@ = 1036.5
157@ = 104.4

:BLOOD_13422
if 
  93@ == 1
goto_if_false @BLOOD_13480
154@ = -1299.5
155@ = 1030.74
156@ = 1036.8
157@ = 132.6

:BLOOD_13480
if 
  93@ == 2
goto_if_false @BLOOD_13538
154@ = -1319.3
155@ = 1042.82
156@ = 1037.1
157@ = 135.4

:BLOOD_13538
if 
  93@ == 3
goto_if_false @BLOOD_13596
154@ = -1349.33
155@ = 1054.47
156@ = 1037.3
157@ = 155.4

:BLOOD_13596
if 
  93@ == 4
goto_if_false @BLOOD_13654
154@ = -1384.33
155@ = 1058.55
156@ = 1037.5
157@ = 173.2

:BLOOD_13654
if 
  93@ == 5
goto_if_false @BLOOD_13712
154@ = -1296.7
155@ = 960.2
156@ = 1035.6
157@ = 60.5

:BLOOD_13712
if 
  93@ == 6
goto_if_false @BLOOD_13770
154@ = -1418.77
155@ = 1057.54
156@ = 1037.5
157@ = 180.4

:BLOOD_13770
if 
  93@ == 7
goto_if_false @BLOOD_13828
154@ = -1460.3
155@ = 1050.3
156@ = 1037.5
157@ = 203.9

:BLOOD_13828
if 
  93@ == 8
goto_if_false @BLOOD_13886
154@ = -1499.77
155@ = 1029.54
156@ = 1037.2
157@ = 242.4

:BLOOD_13886
if 
  93@ == 9
goto_if_false @BLOOD_13944
154@ = -1513.77
155@ = 986.54
156@ = 1036.5
157@ = 271.4

:BLOOD_13944
if 
  93@ == 10
goto_if_false @BLOOD_14002
154@ = -1496.77
155@ = 959.54
156@ = 1036.0
157@ = 293.4

:BLOOD_14002
if 
  93@ == 11
goto_if_false @BLOOD_14060
154@ = -1461.84
155@ = 938.32
156@ = 1035.3
157@ = 345.6

:BLOOD_14060
if 
  93@ == 12
goto_if_false @BLOOD_14118
154@ = -1424.36
155@ = 931.29
156@ = 1035.2
157@ = 0.0

:BLOOD_14118
if 
  93@ == 13
goto_if_false @BLOOD_14176
154@ = -1363.77
155@ = 932.44
156@ = 1035.3
157@ = 17.85

:BLOOD_14176
if 
  93@ == 14
goto_if_false @BLOOD_14234
154@ = -1332.77
155@ = 940.3
156@ = 1037.0
157@ = 39.98

:BLOOD_14234
if 
  93@ == 15
goto_if_false @BLOOD_14292
154@ = -1443.29
155@ = 933.86
156@ = 1035.3
157@ = 351.4

:BLOOD_14292
return 

:BLOOD_14294
158@ = Math.RandomFloatInRange(-1290.0, -1508.0)
159@ = Math.RandomFloatInRange(939.0, 1052.0)
160@ = World.GetGroundZFor3DCoord(158@, 159@, 1056.7)
if 
  160@ > 1034.1
goto_if_false @BLOOD_14368
goto @BLOOD_14294

:BLOOD_14368
if 
  1022.8 > 160@
goto_if_false @BLOOD_14396
goto @BLOOD_14294

:BLOOD_14396
Blip.Remove(90@)
90@ = Blip.AddForCoord(158@, 159@, 160@)
if 
  not Char.IsDead(65@)
goto_if_false @BLOOD_14436
Char.ClearTasks(65@)

:BLOOD_14436
if 
  not Char.IsDead(66@)
goto_if_false @BLOOD_14457
Char.ClearTasks(66@)

:BLOOD_14457
Checkpoint.SetCoords(89@, 158@, 159@, 160@)
return 

:BLOOD_14473
170@ = Math.RandomFloatInRange(-1290.0, -1508.0)
171@ = Math.RandomFloatInRange(939.0, 1052.0)
172@ = World.GetGroundZFor3DCoord(170@, 171@, 1056.7)
if 
  172@ > 1034.1
goto_if_false @BLOOD_14547
goto @BLOOD_14473

:BLOOD_14547
if 
  1022.8 > 172@
goto_if_false @BLOOD_14575
goto @BLOOD_14473

:BLOOD_14575
172@ += 0.5
87@ = Object.Create(#BB_PICKUP, 170@, 171@, 172@)
Object.SetAreaVisible(87@, 15)
Object.SetCollision(87@, False)
Object.SetDynamic(87@, False)
return 

:BLOOD_14625
gosub @BLOOD_15096
if 
  102@ <> -1
goto_if_false @BLOOD_15094
StuckCarCheck.Remove(35@(93@,16i))
Car.MarkAsNoLongerNeeded(35@(93@,16i))
Char.MarkAsNoLongerNeeded(51@(93@,16i))
Char.MarkAsNoLongerNeeded(67@(93@,16i))
104@, 105@ = Streaming.GetRandomCarModelInMemory(True)
if 
  104@ >= 0
goto_if_false @BLOOD_14762
set_lvar_int_to_lvar_int 108@ = 104@
gosub @BLOOD_15567
35@(93@,16i) = Car.Create(104@, 154@, 155@, 156@)
Car.SetHeading(35@(93@,16i), 157@)

:BLOOD_14762
if 
  not Car.IsDead(35@(93@,16i))
goto_if_false @BLOOD_15094
Car.SetLoadCollisionFlag(35@(93@,16i), True)
Car.SetStraightLineDistance(35@(93@,16i), 255)
Car.SetCanBurstTires(35@(93@,16i), False)
51@(93@,16i) = Char.CreateRandomAsDriver(35@(93@,16i))
Char.SetAreaVisible(51@(93@,16i), 15)
Char.SetDecisionMaker(51@(93@,16i), 185@)
Char.SetProofs(51@(93@,16i), True, False, False, False, False)
Char.SetLoadCollisionFlag(51@(93@,16i), True)
101@ = Car.GetMaximumNumberOfPassengers(35@(93@,16i))
if 
  101@ > 0
goto_if_false @BLOOD_14978
67@(93@,16i) = Char.CreateRandomAsPassenger(35@(93@,16i), 0)
Char.SetDecisionMaker(67@(93@,16i), 185@)
Char.SetProofs(67@(93@,16i), True, False, False, False, False)
Char.GiveWeapon(67@(93@,16i), WeaponType.Mp5, 30000)

:BLOOD_14978
if 
  Char.IsOnAnyBike(51@(93@,16i))
goto_if_false @BLOOD_15020
Char.SetCanBeKnockedOffBike(51@(93@,16i), True)
Char.SetCanBeKnockedOffBike(67@(93@,16i), True)

:BLOOD_15020
StuckCarCheck.Add(35@(93@,16i), 1.0, 3000)
Car.SetUpsidedownNotDamaged(35@(93@,16i), True)
Car.SetAreaVisible(35@(93@,16i), 15)
Car.SetForwardSpeed(35@(93@,16i), 25.0)
Task.CarTempAction(51@(93@,16i), 35@(93@,16i), TempAction.GoForward, 3000)

:BLOOD_15094
return 

:BLOOD_15096
102@ = Math.RandomIntInRange(1, 4)
if 
  102@ == 1
goto_if_false @BLOOD_15220
if 
  not World.IsPointObscuredByAMissionEntity(-1461.84, 938.32, 1035.0, 5.0, 5.0, 5.0)
goto_if_false @BLOOD_15213
154@ = -1461.84
155@ = 938.32
156@ = 1035.0
157@ = 345.6
goto @BLOOD_15220

:BLOOD_15213
102@ = 2

:BLOOD_15220
if 
  102@ == 2
goto_if_false @BLOOD_15335
if 
  not World.IsPointObscuredByAMissionEntity(-1424.36, 933.86, 1035.0, 5.0, 5.0, 5.0)
goto_if_false @BLOOD_15328
154@ = -1424.36
155@ = 933.86
156@ = 1035.0
157@ = 0.0
goto @BLOOD_15335

:BLOOD_15328
102@ = 3

:BLOOD_15335
if 
  102@ == 3
goto_if_false @BLOOD_15450
if 
  not World.IsPointObscuredByAMissionEntity(-1443.29, 931.29, 1035.0, 5.0, 5.0, 5.0)
goto_if_false @BLOOD_15443
154@ = -1443.29
155@ = 931.29
156@ = 1035.0
157@ = 351.4
goto @BLOOD_15450

:BLOOD_15443
102@ = 1

:BLOOD_15450
if 
  102@ == 1
goto_if_false @BLOOD_15565
if 
  not World.IsPointObscuredByAMissionEntity(-1461.84, 938.32, 1035.0, 5.0, 5.0, 5.0)
goto_if_false @BLOOD_15558
154@ = -1461.84
155@ = 938.32
156@ = 1035.0
157@ = 345.6
goto @BLOOD_15565

:BLOOD_15558
102@ = -1

:BLOOD_15565
return 

:BLOOD_15567
107@ = Math.RandomIntInRange(1, 37)
if 
  107@ == 1
goto_if_false @BLOOD_15609
Car.CustomPlateForNextCar(108@, "GOT_M00_")

:BLOOD_15609
if 
  107@ == 2
goto_if_false @BLOOD_15642
Car.CustomPlateForNextCar(108@, "M00TV_4U")

:BLOOD_15642
if 
  107@ == 3
goto_if_false @BLOOD_15675
Car.CustomPlateForNextCar(108@, "MATHEW_2")

:BLOOD_15675
if 
  107@ == 4
goto_if_false @BLOOD_15708
Car.CustomPlateForNextCar(108@, "D4_DEW0R")

:BLOOD_15708
if 
  107@ == 5
goto_if_false @BLOOD_15741
Car.CustomPlateForNextCar(108@, "D0DE_777")

:BLOOD_15741
if 
  107@ == 6
goto_if_false @BLOOD_15774
Car.CustomPlateForNextCar(108@, "DAM0_666")

:BLOOD_15774
if 
  107@ == 7
goto_if_false @BLOOD_15807
Car.CustomPlateForNextCar(108@, "C0NEY_88")

:BLOOD_15807
if 
  107@ == 8
goto_if_false @BLOOD_15840
Car.CustomPlateForNextCar(108@, "PRE4CHER")

:BLOOD_15840
if 
  107@ == 9
goto_if_false @BLOOD_15873
Car.CustomPlateForNextCar(108@, "DBP_4NDY")

:BLOOD_15873
if 
  107@ == 10
goto_if_false @BLOOD_15906
Car.CustomPlateForNextCar(108@, "EV1L_SLY")

:BLOOD_15906
if 
  107@ == 11
goto_if_false @BLOOD_15939
Car.CustomPlateForNextCar(108@, "N1_R4V3N")

:BLOOD_15939
if 
  107@ == 12
goto_if_false @BLOOD_15972
Car.CustomPlateForNextCar(108@, "D1VX_Z00")

:BLOOD_15972
if 
  107@ == 13
goto_if_false @BLOOD_16004
Car.CustomPlateForNextCar(108@, "MR_B3NN")

:BLOOD_16004
if 
  107@ == 14
goto_if_false @BLOOD_16037
Car.CustomPlateForNextCar(108@, "R3D_R4SP")

:BLOOD_16037
if 
  107@ == 15
goto_if_false @BLOOD_16070
Car.CustomPlateForNextCar(108@, "LA_B0MBA")

:BLOOD_16070
if 
  107@ == 16
goto_if_false @BLOOD_16103
Car.CustomPlateForNextCar(108@, "L3337_0G")

:BLOOD_16103
if 
  107@ == 17
goto_if_false @BLOOD_16136
Car.CustomPlateForNextCar(108@, "BUDD4H_X")

:BLOOD_16136
if 
  107@ == 18
goto_if_false @BLOOD_16169
Car.CustomPlateForNextCar(108@, "T3H_BUCK")

:BLOOD_16169
if 
  107@ == 19
goto_if_false @BLOOD_16202
Car.CustomPlateForNextCar(108@, "CHUNKY_1")

:BLOOD_16202
if 
  107@ == 20
goto_if_false @BLOOD_16235
Car.CustomPlateForNextCar(108@, "EV1L_BNZ")

:BLOOD_16235
if 
  107@ == 21
goto_if_false @BLOOD_16268
Car.CustomPlateForNextCar(108@, "S4ND_M4N")

:BLOOD_16268
if 
  107@ == 22
goto_if_false @BLOOD_16301
Car.CustomPlateForNextCar(108@, "RKK_DBP1")

:BLOOD_16301
if 
  107@ == 23
goto_if_false @BLOOD_16334
Car.CustomPlateForNextCar(108@, "RE1_K0KU")

:BLOOD_16334
if 
  107@ == 24
goto_if_false @BLOOD_16367
Car.CustomPlateForNextCar(108@, "S3XY_JUD")

:BLOOD_16367
if 
  107@ == 25
goto_if_false @BLOOD_16400
Car.CustomPlateForNextCar(108@, "SUNRA_93")

:BLOOD_16400
if 
  107@ == 26
goto_if_false @BLOOD_16433
Car.CustomPlateForNextCar(108@, "UG_FUX69")

:BLOOD_16433
if 
  107@ == 27
goto_if_false @BLOOD_16466
Car.CustomPlateForNextCar(108@, "LI0N_CUM")

:BLOOD_16466
if 
  107@ == 28
goto_if_false @BLOOD_16499
Car.CustomPlateForNextCar(108@, "RKK_PWND")

:BLOOD_16499
if 
  107@ == 29
goto_if_false @BLOOD_16532
Car.CustomPlateForNextCar(108@, "HAZE_B0B")

:BLOOD_16532
if 
  107@ == 30
goto_if_false @BLOOD_16565
Car.CustomPlateForNextCar(108@, "T3H_FLUF")

:BLOOD_16565
if 
  107@ == 31
goto_if_false @BLOOD_16598
Car.CustomPlateForNextCar(108@, "BM_4NDY_")

:BLOOD_16598
if 
  107@ == 32
goto_if_false @BLOOD_16631
Car.CustomPlateForNextCar(108@, "BM_D34N_")

:BLOOD_16631
if 
  107@ == 33
goto_if_false @BLOOD_16664
Car.CustomPlateForNextCar(108@, "BM_L4C3Y")

:BLOOD_16664
if 
  107@ == 34
goto_if_false @BLOOD_16697
Car.CustomPlateForNextCar(108@, "BM_D3V__")

:BLOOD_16697
if 
  107@ == 35
goto_if_false @BLOOD_16730
Car.CustomPlateForNextCar(108@, "NU_SK00L")

:BLOOD_16730
if 
  107@ == 36
goto_if_false @BLOOD_16763
Car.CustomPlateForNextCar(108@, "G4L_AVET")

:BLOOD_16763
if 
  107@ == 37
goto_if_false @BLOOD_16796
Car.CustomPlateForNextCar(108@, "M0J0_J0J")

:BLOOD_16796
return 

:BLOOD_16798
161@, 162@, $z = Car.GetCoordinates(88@)
94@ = 0
165@ = 99999.0
95@ = -1

:BLOOD_16836
if 
  16 > 94@
goto_if_false @BLOOD_16985
if 
  not is_int_lvar_equal_to_int_lvar 88@ == 35@(94@,16i)
goto_if_false @BLOOD_16971
if 
  not Car.IsDead(35@(94@,16i))
goto_if_false @BLOOD_16971
163@, 164@, $z = Car.GetCoordinates(35@(94@,16i))
166@ = Math.GetDistanceBetweenCoords2D(161@, 162@, 163@, 164@)
if 
  is_float_lvar_greater_than_float_lvar 165@ > 166@
goto_if_false @BLOOD_16971
set_lvar_float_to_lvar_float 165@ = 166@
set_lvar_int_to_lvar_int 95@ = 35@(94@,16i)

:BLOOD_16971
94@ += 1
goto @BLOOD_16836

:BLOOD_16985
if 
  not is_int_lvar_equal_to_int_lvar 88@ == 34@
goto_if_false @BLOOD_17070
163@, 164@, $z = Car.GetCoordinates(34@)
166@ = Math.GetDistanceBetweenCoords2D(161@, 162@, 163@, 164@)
if 
  is_float_lvar_greater_than_float_lvar 165@ > 166@
goto_if_false @BLOOD_17070
set_lvar_float_to_lvar_float 165@ = 166@
set_lvar_int_to_lvar_int 95@ = 34@

:BLOOD_17070
return 

:BLOOD_17072
if 
  not is_int_var_equal_to_constant $current_Language == 4
goto_if_false @BLOOD_17134
110@ = Menu.Create('BLOD_06', 190.0, 141.0, 120.0, 2, False, True, 1)
goto @BLOOD_17171

:BLOOD_17134
110@ = Menu.Create('BLOD_06', 190.0, 141.0, 150.0, 2, False, True, 1)

:BLOOD_17171
Menu.SetColumn(110@, 0, 'DUMMY', 'BLOD_07', 'BLOD_08', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumn(110@, 1, 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetItemWithNumber(110@, 1, 0, 'BLOD_09', $blood_attempt)
Menu.SetItemWithNumber(110@, 1, 1, 'BLOD_09', 111@)
if 
  not is_int_var_equal_to_constant $current_Language == 4
goto_if_false @BLOOD_17505
Menu.SetColumnWidth(110@, 0, 200)
Menu.SetColumnWidth(110@, 1, 40)
goto @BLOOD_17524

:BLOOD_17505
Menu.SetColumnWidth(110@, 0, 260)
Menu.SetColumnWidth(110@, 1, 40)

:BLOOD_17524
return 

:BLOOD_17526
if 
  129@ == 0
goto_if_false @BLOOD_17589
128@ = Math.RandomIntInRange(2000, 10000)
130@ = Math.RandomIntInRange(1, 22)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 131@(130@,23i))
TIMERB = 0
129@ = 1

:BLOOD_17589
if 
  129@ == 1
goto_if_false @BLOOD_17629
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @BLOOD_17629
129@ = 2

:BLOOD_17629
if 
  129@ == 2
goto_if_false @BLOOD_17677
if 
  is_int_lvar_greater_than_int_lvar TIMERB > 128@
goto_if_false @BLOOD_17677
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)
129@ = 3

:BLOOD_17677
if 
  129@ == 3
goto_if_false @BLOOD_17717
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot4)
goto_if_false @BLOOD_17717
129@ = 0

:BLOOD_17717
return 

//-------------Mission 129---------------
// Originally: Arena Mission: Kickstart

:KICKSTA
script_name 'KICKSTA'
gosub @KICKSTA_54
if 
  has_deatharrest_been_executed 
goto_if_false @KICKSTA_38
gosub @KICKSTA_7448

:KICKSTA_38
gosub @KICKSTA_7590
terminate_this_script 
49@ = 0

:KICKSTA_54
Text.ClearThisPrintBigNow(TextStyle.Middle)
$onmission = 1
48@ = 0
249@ = 1.5
253@ = 0
254@ = 0
$number_of_checkpoints_kickstart = 0
257@ = 0
if 
  $flag_kickstart_passed_1stime == 0
goto_if_false @KICKSTA_130
Stat.RegisterMissionGiven

:KICKSTA_130
$blood_best_time = 0
$time_left_to_find_bike_secs_ks = 240000
$time_bailed_ks = 30000
50@ = -1376.437
83@ = 1562.29
116@ = 1059.0
182@ = 0
215@ = 0
51@ = -1354.842
84@ = 1585.201
117@ = 1057.885
183@ = 0
216@ = 0
52@ = -1408.025
85@ = 1568.736
118@ = 1055.838
184@ = 0
217@ = 0
53@ = -1451.728
86@ = 1571.065
119@ = 1059.0
185@ = 0
218@ = 1
54@ = -1487.554
87@ = 1564.278
120@ = 1056.457
186@ = 0
219@ = 1
55@ = -1466.286
88@ = 1595.355
121@ = 1057.325
187@ = 0
220@ = 2
56@ = -1387.597
89@ = 1572.125
122@ = 1053.929
188@ = 0
221@ = 0
57@ = -1362.579
90@ = 1614.624
123@ = 1055.33
189@ = 0
222@ = 1
58@ = -1359.51
91@ = 1638.219
124@ = 1056.035
190@ = 0
223@ = 2
59@ = -1371.351
92@ = 1623.274
125@ = 1054.659
191@ = 0
224@ = 1
60@ = -1369.52
93@ = 1634.025
126@ = 1055.772
192@ = 0
225@ = 2
61@ = -1384.616
94@ = 1603.547
127@ = 1053.595
193@ = 0
226@ = 0
62@ = -1398.996
95@ = 1603.275
128@ = 1055.156
194@ = 0
227@ = 0
63@ = -1403.911
96@ = 1645.158
129@ = 1071.462
195@ = 0
228@ = 1
64@ = -1443.392
97@ = 1648.548
130@ = 1054.287
196@ = 0
229@ = 0
65@ = -1457.003
98@ = 1648.714
131@ = 1054.937
197@ = 0
230@ = 0
66@ = -1486.931
99@ = 1630.226
132@ = 1056.626
198@ = 0
231@ = 0
67@ = -1482.813
100@ = 1642.205
133@ = 1060.704
199@ = 0
232@ = 2
68@ = -1484.813
101@ = 1597.116
134@ = 1061.382
200@ = 0
233@ = 1
69@ = -1431.399
102@ = 1598.063
135@ = 1054.752
201@ = 0
234@ = 0
70@ = -1420.682
103@ = 1598.275
136@ = 1054.956
202@ = 0
235@ = 0
71@ = -1408.107
104@ = 1585.364
137@ = 1055.691
203@ = 0
236@ = 0
72@ = -1408.217
105@ = 1593.302
138@ = 1055.617
204@ = 0
237@ = 0
73@ = -1462.244
106@ = 1622.424
139@ = 1054.313
205@ = 0
238@ = 1
74@ = -1461.74
107@ = 1635.753
140@ = 1054.007
206@ = 0
239@ = 1
75@ = -1453.893
108@ = 1636.028
141@ = 1056.18
207@ = 0
240@ = 1
76@ = -1454.055
109@ = 1628.601
142@ = 1054.298
208@ = 0
241@ = 2
77@ = -1454.067
110@ = 1617.637
143@ = 1055.999
209@ = 0
242@ = 2
78@ = -1450.026
111@ = 1620.467
144@ = 1056.421
210@ = 0
243@ = 2
79@ = -1407.732
112@ = 1617.416
145@ = 1054.797
211@ = 0
244@ = 1
80@ = -1414.159
113@ = 1607.16
146@ = 1054.843
212@ = 0
245@ = 1
81@ = -1388.309
114@ = 1620.99
147@ = 1054.951
213@ = 0
246@ = 2
82@ = -1431.09
115@ = 1580.832
148@ = 1055.759
214@ = 0
247@ = 1
$race_timer_kickstart = 0
$race_timer_mins_kickstart = 0
$race_timer_seconds_kickstart = 0
35@ = 0
$race_timer_seconds2_kickstart = 0
$player_taken_too_long_kickstart = 33
37@ = 0.0
38@ = 0.0
39@ = 0.0
40@ = 0.0
41@ = 0.0
42@ = 0.0
43@ = 0
45@ = 0
46@ = 0
47@ = 0
255@ = 0
wait 0
Text.LoadMissionText('KICKSTT')
Player.SetControl($player1, False)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:KICKSTA_1781
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_1805
wait 0
goto @KICKSTA_1781

:KICKSTA_1805
Restart.SetRespawnPointForDurationOfMission(1579.57, 1769.011, 9.828)
Game.SetIsInStadium(True)
Streaming.SetAreaVisible(14)
Streaming.RequestCollision(-1473.187, 1565.173)
Char.SetCoordinates($scplayer, -1473.187, 1565.173, 1051.589)
Char.SetAreaVisible($scplayer, 14)
Hud.DisplayRadar(True)
Char.SetHeading($scplayer, 266.488)
Streaming.LoadScene(-1473.187, 1565.173, 1051.789)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
World.SetExtraColors(2, False)
Streaming.RequestModel(468)

:KICKSTA_1915
if 
  not Streaming.HasModelLoaded(468)
goto_if_false @KICKSTA_1942
wait 0
goto @KICKSTA_1915

:KICKSTA_1942
34@ = Car.Create(468, -1472.38, 1563.576, 1051.417)
Car.SetAreaVisible(34@, 14)
Car.SetHeading(34@, 266.488)
Car.SetProofs(34@, True, True, True, True, True)
36@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(36@, True)
Car.SetStrong(34@, True)
44@ = Sphere.Create(-1464.32, 1556.69, 1051.75, 3.0)
256@ = 0

:KICKSTA_2051
if 
  33 > 256@
goto_if_false @KICKSTA_2300
if 
  215@(256@,33i) == 0
goto_if_false @KICKSTA_2113
250@ = 0
251@ = 255
252@ = 0

:KICKSTA_2113
if 
  215@(256@,33i) == 1
goto_if_false @KICKSTA_2158
250@ = 255
251@ = 150
252@ = 0

:KICKSTA_2158
if 
  215@(256@,33i) == 2
goto_if_false @KICKSTA_2202
250@ = 255
251@ = 0
252@ = 0

:KICKSTA_2202
Fx.DrawCorona(50@(256@,33f), 50@(256@,33f), 50@(256@,33f), 249@, CoronaType.Star, FlareType.None, 250@, 251@, 252@)
149@(256@,33i) = Blip.AddForCoordOld(50@(256@,33f), 50@(256@,33f), 50@(256@,33f), BlipColor.Red, BlipDisplay.BlipOnly)
Blip.ChangeScale(149@(256@,33i), 1)
256@ += 1
goto @KICKSTA_2051

:KICKSTA_2300
wait 1000
Hud.SwitchWidescreen(True)
Game.SetPoliceIgnorePlayer($player1, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Player.SetControl($player1, False)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 33205)

:KICKSTA_2343
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @KICKSTA_2369
wait 0
goto @KICKSTA_2343

:KICKSTA_2369
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1500, Fade.In)
Camera.SetFixedPosition(-1461.084, 1558.448, 1054.46, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1460.135, 1558.761, 1054.429, SwitchType.JumpCut)
Camera.ResetNewScriptables
Camera.PersistTrack(True)
Camera.PersistPos(True)
Camera.SetVectorMove(-1461.084, 1558.448, 1054.46, -1474.255, 1561.567, 1052.553, 6000, True)
Camera.SetVectorTrack(-1460.135, 1558.761, 1054.429, -1473.741, 1562.424, 1052.533, 6000, True)
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)

:KICKSTA_2523
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_2766
wait 0
if 
  Car.IsDead(34@)
goto_if_false @KICKSTA_2744
Player.SetControl($player1, False)
Text.PrintNow('KICK1_7', 5000, 1)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:KICKSTA_2594
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_2618
wait 0
goto @KICKSTA_2594

:KICKSTA_2618
Streaming.SetAreaVisible(0)
Streaming.LoadScene(1105.21, 1604.649, 12.51)
if 
  Player.IsPlaying($player1)
goto_if_false @KICKSTA_2662
Char.SetAreaVisible($scplayer, 0)

:KICKSTA_2662
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @KICKSTA_2705
Char.WarpFromCarToCoord($scplayer, 1105.21, 1604.649, 12.0546)
goto @KICKSTA_2725

:KICKSTA_2705
Char.SetCoordinates($scplayer, 1105.21, 1604.649, 12.0546)

:KICKSTA_2725
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_2752

:KICKSTA_2744
Car.SetHealth(34@, 1000)

:KICKSTA_2752
gosub @KICKSTA_7904
goto @KICKSTA_2523

:KICKSTA_2766
Text.PrintNow('KICK_10', 10000, 1)
TIMERA = 0
skip_cutscene_start_internal @KICKSTA_3415

:KICKSTA_2796
if 
  7000 > TIMERA
goto_if_false @KICKSTA_3045
wait 0
if 
  Car.IsDead(34@)
goto_if_false @KICKSTA_3023
Player.SetControl($player1, False)
Text.PrintNow('KICK1_7', 5000, 1)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:KICKSTA_2873
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_2897
wait 0
goto @KICKSTA_2873

:KICKSTA_2897
Streaming.LoadScene(1105.21, 1604.649, 12.51)
Streaming.SetAreaVisible(0)
if 
  Player.IsPlaying($player1)
goto_if_false @KICKSTA_2941
Char.SetAreaVisible($scplayer, 0)

:KICKSTA_2941
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @KICKSTA_2984
Char.WarpFromCarToCoord($scplayer, 1105.21, 1604.649, 12.0546)
goto @KICKSTA_3004

:KICKSTA_2984
Char.SetCoordinates($scplayer, 1105.21, 1604.649, 12.0546)

:KICKSTA_3004
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_3031

:KICKSTA_3023
Car.SetHealth(34@, 1000)

:KICKSTA_3031
gosub @KICKSTA_7904
goto @KICKSTA_2796

:KICKSTA_3045
Text.ClearThisPrint('KICK_10')
Camera.ResetNewScriptables
Camera.SetFixedPosition(-1474.91, 1564.625, 1052.952, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1473.948, 1564.367, 1053.041, SwitchType.JumpCut)
Text.PrintNow('KICK_11', 10000, 1)
Task.LookAtCoord($scplayer, -1464.32, 1556.69, 1051.75, 6000)
TIMERA = 0

:KICKSTA_3155
if 
  7000 > TIMERA
goto_if_false @KICKSTA_3404
wait 0
if 
  Car.IsDead(34@)
goto_if_false @KICKSTA_3382
Player.SetControl($player1, False)
Text.PrintNow('KICK1_7', 5000, 1)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:KICKSTA_3232
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_3256
wait 0
goto @KICKSTA_3232

:KICKSTA_3256
Streaming.LoadScene(1105.21, 1604.649, 12.51)
Streaming.SetAreaVisible(0)
if 
  Player.IsPlaying($player1)
goto_if_false @KICKSTA_3300
Char.SetAreaVisible($scplayer, 0)

:KICKSTA_3300
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @KICKSTA_3343
Char.WarpFromCarToCoord($scplayer, 1105.21, 1604.649, 12.0546)
goto @KICKSTA_3363

:KICKSTA_3343
Char.SetCoordinates($scplayer, 1105.21, 1604.649, 12.0546)

:KICKSTA_3363
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_3390

:KICKSTA_3382
Car.SetHealth(34@, 1000)

:KICKSTA_3390
gosub @KICKSTA_7904
goto @KICKSTA_3155

:KICKSTA_3404
Text.ClearThisPrint('KICK_11')

:KICKSTA_3415
skip_cutscene_end 
if 
  Car.IsDead(34@)
goto_if_false @KICKSTA_3621
Player.SetControl($player1, False)
Text.PrintNow('KICK1_7', 5000, 1)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:KICKSTA_3471
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_3495
wait 0
goto @KICKSTA_3471

:KICKSTA_3495
Streaming.LoadScene(1105.21, 1604.649, 12.51)
Streaming.SetAreaVisible(0)
if 
  Player.IsPlaying($player1)
goto_if_false @KICKSTA_3539
Char.SetAreaVisible($scplayer, 0)

:KICKSTA_3539
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @KICKSTA_3582
Char.WarpFromCarToCoord($scplayer, 1105.21, 1604.649, 12.0546)
goto @KICKSTA_3602

:KICKSTA_3582
Char.SetCoordinates($scplayer, 1105.21, 1604.649, 12.0546)

:KICKSTA_3602
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_3629

:KICKSTA_3621
Car.SetHealth(34@, 1000)

:KICKSTA_3629
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Audio.SetRadioChannel(RadioChannel.UserTracks)
Game.SetPoliceIgnorePlayer($player1, False)
Game.SetEveryoneIgnorePlayer($player1, False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.ResetNewScriptables
Hud.DisplayRadar(False)
Text.PrintNow('KICK1_8', 5000, 1)

:KICKSTA_3688
if 
  not Char.IsInCar($scplayer, 34@)
goto_if_false @KICKSTA_4392
wait 0
if 
  Car.IsDead(34@)
goto_if_false @KICKSTA_3915
Player.SetControl($player1, False)
Text.PrintNow('KICK1_7', 5000, 1)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:KICKSTA_3765
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_3789
wait 0
goto @KICKSTA_3765

:KICKSTA_3789
Streaming.SetAreaVisible(0)
Streaming.LoadScene(1105.21, 1604.649, 12.51)
if 
  Player.IsPlaying($player1)
goto_if_false @KICKSTA_3833
Char.SetAreaVisible($scplayer, 0)

:KICKSTA_3833
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @KICKSTA_3876
Char.WarpFromCarToCoord($scplayer, 1105.21, 1604.649, 12.0546)
goto @KICKSTA_3896

:KICKSTA_3876
Char.SetCoordinates($scplayer, 1105.21, 1604.649, 12.0546)

:KICKSTA_3896
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_3923

:KICKSTA_3915
Car.SetHealth(34@, 1000)

:KICKSTA_3923
if or
  $time_left_to_find_bike_secs_ks >= 3600000
  $race_timer_seconds2_kickstart == 1
goto_if_false @KICKSTA_4137
Player.SetControl($player1, False)
Text.PrintNow('KICK_13', 5000, 1)
Camera.SetFadingColor(0, 0, 0)
wait 1500
Camera.DoFade(1000, Fade.Out)

:KICKSTA_3994
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_4018
wait 0
goto @KICKSTA_3994

:KICKSTA_4018
Streaming.SetAreaVisible(0)
Streaming.LoadScene(1105.21, 1604.649, 12.51)
if 
  Player.IsPlaying($player1)
goto_if_false @KICKSTA_4062
Char.SetAreaVisible($scplayer, 0)

:KICKSTA_4062
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @KICKSTA_4105
Char.WarpFromCarToCoord($scplayer, 1105.21, 1604.649, 12.0546)
goto @KICKSTA_4125

:KICKSTA_4105
Char.SetCoordinates($scplayer, 1105.21, 1604.649, 12.0546)

:KICKSTA_4125
wait 1500
goto @KICKSTA_7448

:KICKSTA_4137
if or
  Char.LocateOnFoot3D($scplayer, -1464.32, 1556.69, 1051.75, 3.0, 3.0, 3.0, False)
  43@ == 1
goto_if_false @KICKSTA_4378
Player.SetControl($player1, False)
Text.PrintNow('KICK_12', 5000, 1)
Sphere.Remove(44@)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:KICKSTA_4235
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_4259
wait 0
goto @KICKSTA_4235

:KICKSTA_4259
Streaming.LoadScene(1105.21, 1604.649, 12.51)
Streaming.SetAreaVisible(0)
if 
  Player.IsPlaying($player1)
goto_if_false @KICKSTA_4303
Char.SetAreaVisible($scplayer, 0)

:KICKSTA_4303
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @KICKSTA_4346
Char.WarpFromCarToCoord($scplayer, 1105.21, 1604.649, 12.0546)
goto @KICKSTA_4366

:KICKSTA_4346
Char.SetCoordinates($scplayer, 1105.21, 1604.649, 12.0546)

:KICKSTA_4366
wait 1500
goto @KICKSTA_7448

:KICKSTA_4378
gosub @KICKSTA_7904
goto @KICKSTA_3688

:KICKSTA_4392
Hud.SwitchWidescreen(True)
Player.SetControl($player1, False)
Camera.SetBehindPlayer
Text.ClearThisPrint('KICK1_8')
257@ = 0
TIMERA = 0
TIMERB = 0

:KICKSTA_4437
if 
  257@ <> 10
goto_if_false @KICKSTA_4886
wait 0
if 
  257@ == 0
goto_if_false @KICKSTA_4581
if 
  TIMERB > 900
goto_if_false @KICKSTA_4581
Text.PrintBig('KICK_17', 1000, TextStyle.MiddleSmaller)
Sound.AddOneOffSound(0.0, 0.0, 0.0, 65535)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1827)

:KICKSTA_4541
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @KICKSTA_4567
wait 0
goto @KICKSTA_4541

:KICKSTA_4567
257@ += 1
TIMERB = 0

:KICKSTA_4581
if 
  257@ == 1
goto_if_false @KICKSTA_4670
if 
  TIMERB > 900
goto_if_false @KICKSTA_4670
Text.PrintBig('KICK_18', 1000, TextStyle.MiddleSmaller)
Sound.AddOneOffSound(0.0, 0.0, 0.0, 65535)
257@ += 1
TIMERB = 0

:KICKSTA_4670
if 
  257@ == 2
goto_if_false @KICKSTA_4759
if 
  TIMERB > 900
goto_if_false @KICKSTA_4759
Text.PrintBig('KICK_19', 1000, TextStyle.MiddleSmaller)
Sound.AddOneOffSound(0.0, 0.0, 0.0, 65535)
257@ += 1
TIMERB = 0

:KICKSTA_4759
if 
  257@ == 3
goto_if_false @KICKSTA_4846
if 
  TIMERB > 900
goto_if_false @KICKSTA_4846
Text.PrintBig('KICK_20', 800, TextStyle.MiddleSmaller)
Audio.ReportMissionAudioEventAtPosition(-1462.0, 1558.69, 1055.02, 1164)
257@ = 10
TIMERB = 0

:KICKSTA_4846
if 
  TIMERA > 4000
goto_if_false @KICKSTA_4872
257@ = 10

:KICKSTA_4872
gosub @KICKSTA_7904
goto @KICKSTA_4437

:KICKSTA_4886
Hud.SwitchWidescreen(False)
Blip.Remove(36@)
Player.SetControl($player1, True)
Text.PrintNow('KICK_26', 5000, 1)
Hud.DisplayCounterWithString($number_of_checkpoints_kickstart, CounterDisplay.Number, 'KICK1_9')
Hud.DisplayTimerWithString($time_left_to_find_bike_secs_ks, TimerDirection.Down, 'KICK1_T')
TIMERA = 0
TIMERB = 0

:KICKSTA_4964
if 
  $blood_best_time <> 33
goto_if_false @KICKSTA_6929
wait 0
gosub @KICKSTA_7904
if 
  48@ == 1
goto_if_false @KICKSTA_5033
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot1)
goto_if_false @KICKSTA_5033
48@ = 2

:KICKSTA_5033
if 
  48@ == 2
goto_if_false @KICKSTA_5062
Audio.PlayMissionAudio(MissionAudioSlot.Slot1)
48@ = 3

:KICKSTA_5062
if 
  48@ == 3
goto_if_false @KICKSTA_5106
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot1)
goto_if_false @KICKSTA_5106
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
48@ = 0

:KICKSTA_5106
if or
  0 >= $time_left_to_find_bike_secs_ks
  $race_timer_seconds2_kickstart == 1
goto_if_false @KICKSTA_5673
Player.SetControl($player1, False)
Hud.ClearTimer($time_left_to_find_bike_secs_ks)
Hud.ClearCounter($number_of_checkpoints_kickstart)
if 
  is_int_var_greater_than_int_var $number_of_checkpoints_kickstart > $current_highest_score_kickstart
goto_if_false @KICKSTA_5417
set_var_int_to_var_int $current_highest_score_kickstart = $number_of_checkpoints_kickstart
Text.PrintWithNumberBig('KICK_22', $current_highest_score_kickstart, 5000, TextStyle.Middle)
Text.PrintNow('KICK_23', 5000, 1)
Stat.RegisterInt(StatId.KickstartBestScore, $current_highest_score_kickstart)
Audio.PlayMissionPassedTune(2)
if 
  $flag_kickstart_passed_1stime == 0
goto_if_false @KICKSTA_5247
CarGenerator.Switch($trigger_new_range_level, 101)

:KICKSTA_5247
wait 5000
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:KICKSTA_5267
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_5291
wait 0
goto @KICKSTA_5267

:KICKSTA_5291
Streaming.LoadScene(1105.21, 1604.649, 12.51)
Streaming.SetAreaVisible(0)
if 
  Player.IsPlaying($player1)
goto_if_false @KICKSTA_5335
Char.SetAreaVisible($scplayer, 0)

:KICKSTA_5335
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @KICKSTA_5378
Char.WarpFromCarToCoord($scplayer, 1105.21, 1604.649, 12.0546)
goto @KICKSTA_5398

:KICKSTA_5378
Char.SetCoordinates($scplayer, 1105.21, 1604.649, 12.0546)

:KICKSTA_5398
wait 1500
goto @KICKSTA_7510
goto @KICKSTA_5673

:KICKSTA_5417
Text.PrintWithNumberBig('KICK1_9', $number_of_checkpoints_kickstart, 5000, TextStyle.Middle)
Text.PrintWithNumberBig('KICK_21', $current_highest_score_kickstart, 5000, TextStyle.WhiteMiddleSmaller)
Text.PrintNow('KICK_24', 5000, 1)
248@ = Stat.GetInt(StatId.KickstartBestScore)
if 
  is_int_var_greater_than_int_lvar $number_of_checkpoints_kickstart > 248@
goto_if_false @KICKSTA_5506
Stat.RegisterInt(StatId.KickstartBestScore, $number_of_checkpoints_kickstart)

:KICKSTA_5506
Audio.PlayMissionPassedTune(1)
wait 5000
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:KICKSTA_5530
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_5554
wait 0
goto @KICKSTA_5530

:KICKSTA_5554
Streaming.LoadScene(1105.21, 1604.649, 12.51)
Streaming.SetAreaVisible(0)
if 
  Player.IsPlaying($player1)
goto_if_false @KICKSTA_5598
Char.SetAreaVisible($scplayer, 0)

:KICKSTA_5598
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @KICKSTA_5641
Char.WarpFromCarToCoord($scplayer, 1105.21, 1604.649, 12.0546)
goto @KICKSTA_5661

:KICKSTA_5641
Char.SetCoordinates($scplayer, 1105.21, 1604.649, 12.0546)

:KICKSTA_5661
wait 1500
goto @KICKSTA_7448

:KICKSTA_5673
if or
  Char.LocateOnFoot3D($scplayer, -1464.32, 1556.69, 1051.75, 3.0, 3.0, 3.0, False)
  43@ == 1
goto_if_false @KICKSTA_5914
Player.SetControl($player1, False)
Text.PrintNow('KICK_12', 5000, 1)
Sphere.Remove(44@)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:KICKSTA_5771
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_5795
wait 0
goto @KICKSTA_5771

:KICKSTA_5795
Streaming.LoadScene(1105.21, 1604.649, 12.51)
Streaming.SetAreaVisible(0)
if 
  Player.IsPlaying($player1)
goto_if_false @KICKSTA_5839
Char.SetAreaVisible($scplayer, 0)

:KICKSTA_5839
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @KICKSTA_5882
Char.WarpFromCarToCoord($scplayer, 1105.21, 1604.649, 12.0546)
goto @KICKSTA_5902

:KICKSTA_5882
Char.SetCoordinates($scplayer, 1105.21, 1604.649, 12.0546)

:KICKSTA_5902
wait 1500
goto @KICKSTA_7448

:KICKSTA_5914
37@, 38@, 39@ = Char.GetCoordinates($scplayer)
if 
  1050.0 > 39@
goto_if_false @KICKSTA_5979
Char.SetCoordinates($scplayer, -1473.187, 1565.173, 1051.789)
Char.SetHeading($scplayer, 266.488)

:KICKSTA_5979
if 
  Car.IsDead(34@)
goto_if_false @KICKSTA_6183
Player.SetControl($player1, False)
Text.PrintNow('KICK1_7', 5000, 1)
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:KICKSTA_6033
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_6057
wait 0
goto @KICKSTA_6033

:KICKSTA_6057
Streaming.LoadScene(1105.21, 1604.649, 12.51)
Streaming.SetAreaVisible(0)
if 
  Player.IsPlaying($player1)
goto_if_false @KICKSTA_6101
Char.SetAreaVisible($scplayer, 0)

:KICKSTA_6101
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @KICKSTA_6144
Char.WarpFromCarToCoord($scplayer, 1105.21, 1604.649, 12.0546)
goto @KICKSTA_6164

:KICKSTA_6144
Char.SetCoordinates($scplayer, 1105.21, 1604.649, 12.0546)

:KICKSTA_6164
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_6922

:KICKSTA_6183
Car.SetHealth(34@, 1000)
40@, 41@, 42@ = Car.GetCoordinates(34@)
if 
  1050.0 > 42@
goto_if_false @KICKSTA_6259
34@ = Car.Create(468, -1472.38, 1563.576, 1051.417)
Car.SetHeading(34@, 266.488)

:KICKSTA_6259
if 
  not Char.IsInModel($scplayer, 468)
goto_if_false @KICKSTA_6874
if 
  254@ == 0
goto_if_false @KICKSTA_6450
if 
  35@ == 0
goto_if_false @KICKSTA_6361
36@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(36@, True)
if 
  47@ == 2
goto_if_false @KICKSTA_6354
47@ = 3

:KICKSTA_6354
35@ = 1

:KICKSTA_6361
$time_off_bike_ks = Clock.GetGameTimer()
$time_bailed_ks = 30000
if 
  $time_left_to_find_bike_secs_ks >= 30000
goto_if_false @KICKSTA_6408
$time_bailed_ks = 30000
goto @KICKSTA_6416

:KICKSTA_6408
set_var_int_to_var_int $time_bailed_ks = $time_left_to_find_bike_secs_ks

:KICKSTA_6416
254@ = 1
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 33200)
48@ = 1
goto @KICKSTA_6867

:KICKSTA_6450
if 
  $time_bailed_ks > 0
goto_if_false @KICKSTA_6643
$player_checkpoint_kickstart = Clock.GetGameTimer()
set_var_int_to_var_int $time_now_ks = $player_checkpoint_kickstart
sub_int_var_from_int_var $time_now_ks -= $time_off_bike_ks
set_var_int_to_var_int $time_off_bike_ks = $player_checkpoint_kickstart
sub_int_var_from_int_var $time_bailed_ks -= $time_now_ks
set_var_int_to_var_int $time_left_to_find_bike_ks = $time_bailed_ks
$time_left_to_find_bike_ks /= 1000
Text.AddNextMessageToPreviousBriefs(False)
if 
  $time_left_to_find_bike_ks <> 1
goto_if_false @KICKSTA_6569
Text.PrintWithNumberNow('KICK_27', $time_left_to_find_bike_ks, 1000, 1)
goto @KICKSTA_6588

:KICKSTA_6569
Text.PrintWithNumberNow('KICK_28', $time_left_to_find_bike_ks, 1000, 1)

:KICKSTA_6588
if 
  Char.IsInModel($scplayer, 468)
goto_if_false @KICKSTA_6636
Text.ClearThisPrint('GETBIKE')
Text.ClearThisPrint('GETBIK2')
$time_bailed_ks = 1

:KICKSTA_6636
goto @KICKSTA_6867

:KICKSTA_6643
if 
  0 >= $time_bailed_ks
goto_if_false @KICKSTA_6867
Text.PrintNow('KICK1_2', 5000, 1)
Player.SetControl($player1, False)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 33200)
48@ = 1
wait 1500
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:KICKSTA_6724
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_6748
wait 0
goto @KICKSTA_6724

:KICKSTA_6748
Streaming.LoadScene(1105.21, 1604.649, 12.51)
Streaming.SetAreaVisible(0)
if 
  Player.IsPlaying($player1)
goto_if_false @KICKSTA_6792
Char.SetAreaVisible($scplayer, 0)

:KICKSTA_6792
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @KICKSTA_6835
Char.WarpFromCarToCoord($scplayer, 1105.21, 1604.649, 12.0546)
goto @KICKSTA_6855

:KICKSTA_6835
Char.SetCoordinates($scplayer, 1105.21, 1604.649, 12.0546)

:KICKSTA_6855
wait 1500
goto @KICKSTA_7448

:KICKSTA_6867
goto @KICKSTA_6922

:KICKSTA_6874
Text.ClearThisPrint('KICK_27')
if 
  35@ == 1
goto_if_false @KICKSTA_6915
Blip.Remove(36@)
35@ = 0

:KICKSTA_6915
254@ = 0

:KICKSTA_6922
goto @KICKSTA_4964

:KICKSTA_6929
Hud.ClearTimer($time_left_to_find_bike_secs_ks)
Hud.ClearCounter($number_of_checkpoints_kickstart)
if 
  is_int_var_greater_than_int_var $number_of_checkpoints_kickstart > $current_highest_score_kickstart
goto_if_false @KICKSTA_7208
set_var_int_to_var_int $current_highest_score_kickstart = $number_of_checkpoints_kickstart
Text.PrintWithNumberBig('KICK_22', $current_highest_score_kickstart, 5000, TextStyle.Middle)
Text.PrintNow('KICK_23', 5000, 1)
Stat.RegisterInt(StatId.KickstartBestScore, $current_highest_score_kickstart)
if 
  $flag_kickstart_passed_1stime == 0
goto_if_false @KICKSTA_7034
CarGenerator.Switch($trigger_new_range_level, 101)

:KICKSTA_7034
Audio.PlayMissionPassedTune(2)
wait 5000
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:KICKSTA_7058
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_7082
wait 0
goto @KICKSTA_7058

:KICKSTA_7082
Streaming.LoadScene(1105.21, 1604.649, 12.51)
Streaming.SetAreaVisible(0)
if 
  Player.IsPlaying($player1)
goto_if_false @KICKSTA_7126
Char.SetAreaVisible($scplayer, 0)

:KICKSTA_7126
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @KICKSTA_7169
Char.WarpFromCarToCoord($scplayer, 1105.21, 1604.649, 12.0546)
goto @KICKSTA_7189

:KICKSTA_7169
Char.SetCoordinates($scplayer, 1105.21, 1604.649, 12.0546)

:KICKSTA_7189
wait 1500
goto @KICKSTA_7510
goto @KICKSTA_7448

:KICKSTA_7208
Audio.PlayMissionPassedTune(1)
248@ = Stat.GetInt(StatId.KickstartBestScore)
if 
  is_int_var_greater_than_int_lvar $number_of_checkpoints_kickstart > 248@
goto_if_false @KICKSTA_7247
Stat.RegisterInt(StatId.KickstartBestScore, $number_of_checkpoints_kickstart)

:KICKSTA_7247
Text.PrintWithNumberBig('KICK1_9', $number_of_checkpoints_kickstart, 5000, TextStyle.Middle)
Text.PrintWithNumberBig('KICK_21', $current_highest_score_kickstart, 5000, TextStyle.WhiteMiddleSmaller)
wait 5000
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)

:KICKSTA_7305
if 
  Camera.GetFadingStatus
goto_if_false @KICKSTA_7329
wait 0
goto @KICKSTA_7305

:KICKSTA_7329
Streaming.LoadScene(1105.21, 1604.649, 12.51)
Streaming.SetAreaVisible(0)
if 
  Player.IsPlaying($player1)
goto_if_false @KICKSTA_7373
Char.SetAreaVisible($scplayer, 0)

:KICKSTA_7373
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @KICKSTA_7416
Char.WarpFromCarToCoord($scplayer, 1105.21, 1604.649, 12.0546)
goto @KICKSTA_7436

:KICKSTA_7416
Char.SetCoordinates($scplayer, 1105.21, 1604.649, 12.0546)

:KICKSTA_7436
wait 1500
goto @KICKSTA_7448

:KICKSTA_7448
Text.PrintWithNumberBig('KICK1_9', 15, $number_of_checkpoints_kickstart, TextStyle.Middle)
Text.PrintWithNumberNow('KICK_21', $current_highest_score_kickstart, 5000, 1)
set_lvar_int_to_var_int 258@ = $number_of_checkpoints_kickstart
258@ *= 100
Player.AddScore($player1, 258@)
return 

:KICKSTA_7510
if 
  $flag_kickstart_passed_1stime == 0
goto_if_false @KICKSTA_7541
Stat.RegisterOddjobMissionPassed
Stat.PlayerMadeProgress(1)
$flag_kickstart_passed_1stime = 1

:KICKSTA_7541
Player.ClearWantedLevel($player1)
Text.PrintWithNumberBig('KICK_22', $current_highest_score_kickstart, 5000, TextStyle.Middle)
set_lvar_int_to_var_int 258@ = $number_of_checkpoints_kickstart
258@ *= 100
Player.AddScore($player1, 258@)
return 

:KICKSTA_7590
Hud.DisplayRadar(True)
World.ClearExtraColors(False)
$onmission = 0
Text.ClearPrints
World.ClearExtraColors(False)
Sphere.Remove(44@)
Camera.ResetNewScriptables
Blip.Remove(149@)
Blip.Remove(150@)
Blip.Remove(151@)
Blip.Remove(152@)
Blip.Remove(153@)
Blip.Remove(154@)
Blip.Remove(155@)
Blip.Remove(156@)
Blip.Remove(157@)
Blip.Remove(158@)
Blip.Remove(159@)
Blip.Remove(160@)
Blip.Remove(161@)
Blip.Remove(162@)
Blip.Remove(163@)
Blip.Remove(164@)
Blip.Remove(165@)
Blip.Remove(166@)
Blip.Remove(167@)
Blip.Remove(168@)
Blip.Remove(169@)
Blip.Remove(170@)
Blip.Remove(171@)
Blip.Remove(172@)
Blip.Remove(173@)
Blip.Remove(174@)
Blip.Remove(175@)
Blip.Remove(176@)
Blip.Remove(177@)
Blip.Remove(178@)
Blip.Remove(179@)
Blip.Remove(180@)
Blip.Remove(181@)
Blip.Remove(36@)
Streaming.MarkModelAsNoLongerNeeded(468)
Hud.ClearTimer($time_left_to_find_bike_secs_ks)
Hud.ClearCounter($number_of_checkpoints_kickstart)
if or
  not has_deatharrest_been_executed 
  $flag_kickstart_mission1_passed == 1
goto_if_false @KICKSTA_7859
Char.SetHeading($scplayer, 1.0)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(3000, Fade.In)
Player.SetControl($player1, True)

:KICKSTA_7859
if 
  Player.IsPlaying($player1)
goto_if_false @KICKSTA_7882
Char.SetAreaVisible($scplayer, 0)

:KICKSTA_7882
Hud.DisplayRadar(True)
Car.MarkAsNoLongerNeeded(34@)
Game.SetIsInStadium(False)
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
return 

:KICKSTA_7904
253@ = 0

:KICKSTA_7911
if 
  33 > 253@
goto_if_false @KICKSTA_8439
if 
  182@(253@,33i) == 0
goto_if_false @KICKSTA_8425
if 
  215@(253@,33i) == 0
goto_if_false @KICKSTA_7995
250@ = 0
251@ = 255
252@ = 0

:KICKSTA_7995
if 
  215@(253@,33i) == 1
goto_if_false @KICKSTA_8040
250@ = 255
251@ = 150
252@ = 0

:KICKSTA_8040
if 
  215@(253@,33i) == 2
goto_if_false @KICKSTA_8084
250@ = 255
251@ = 0
252@ = 0

:KICKSTA_8084
Fx.DrawCorona(50@(253@,33f), 83@(253@,33f), 116@(253@,33f), 249@, CoronaType.Star, FlareType.None, 250@, 251@, 252@)
if 
  Char.LocateAnyMeans3D($scplayer, 50@(253@,33f), 83@(253@,33f), 116@(253@,33f), 1.5, 1.5, 1.5, False)
goto_if_false @KICKSTA_8425
if 
  Char.IsInModel($scplayer, 468)
goto_if_false @KICKSTA_8425
if 
  215@(253@,33i) == 0
goto_if_false @KICKSTA_8261
$number_of_checkpoints_kickstart += 1
Text.PrintNow('KICK_14', 1000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 33202)
48@ = 1

:KICKSTA_8261
if 
  215@(253@,33i) == 1
goto_if_false @KICKSTA_8326
$number_of_checkpoints_kickstart += 2
Text.PrintNow('KICK_15', 1000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 33202)
48@ = 1

:KICKSTA_8326
if 
  215@(253@,33i) == 2
goto_if_false @KICKSTA_8391
$number_of_checkpoints_kickstart += 3
Text.PrintNow('KICK_16', 1000, 1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.LoadMissionAudio(MissionAudioSlot.Slot1, 33205)
48@ = 1

:KICKSTA_8391
Blip.Remove(149@(253@,33i))
$blood_best_time += 1
$player_taken_too_long_kickstart -= 1
182@(253@,33i) = 1

:KICKSTA_8425
253@ += 1
goto @KICKSTA_7911

:KICKSTA_8439
return 

//-------------Mission 130---------------
// Originally: Beat the Cock!

:TRIA
gosub @TRIA_36
if 
  has_deatharrest_been_executed 
goto_if_false @TRIA_27
gosub @TRIA_22678

:TRIA_27
gosub @TRIA_22919
terminate_this_script 

:TRIA_36
Text.ClearThisPrintBigNow(TextStyle.Middle)
$onmission = 1
if 
  $flag_triathalon_passed_1stime == 0
goto_if_false @TRIA_67
Stat.RegisterMissionGiven

:TRIA_67
script_name 'TRIA'
Text.LoadMissionText('RACETOR')
Text.SetMessageFormatting(True, 355, 370)
wait 0
Text.UseCommands(True)
if 
  not Char.IsDead($scplayer)
goto_if_false @TRIA_130
Player.SetControl($player1, False)

:TRIA_130
Camera.DoFade(1000, Fade.Out)

:TRIA_137
if 
  Camera.GetFadingStatus
goto_if_false @TRIA_161
wait 0
goto @TRIA_137

:TRIA_161
816@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
802@ = 0
817@ = 0
782@ = 0
783@ = 0
34@ = 582.7242
46@ = 356.2812
58@ = 52.2072
70@ = 52.2072
35@ = 584.0833
47@ = 329.3647
59@ = 0.5427
71@ = 2.0841
36@ = 572.9216
48@ = 323.5937
60@ = 1.0585
72@ = 4.8106
37@ = 585.724
49@ = 345.6341
61@ = 0.4929
73@ = 1.8511
38@ = 582.7242
50@ = 359.0323
62@ = 0.4993
74@ = 2.637
39@ = 582.7242
51@ = 356.2812
63@ = 56.2072
75@ = 56.2072
40@ = 582.7242
52@ = 356.2812
64@ = 58.2072
76@ = 58.2072
if 
  $triathalon_selection == 1
goto_if_false @TRIA_501
goto @TRIA_526

:TRIA_501
if 
  $triathalon_selection == 2
goto_if_false @TRIA_526
goto @TRIA_3828

:TRIA_526
819@ = 0
820@ = 1
821@ = 7
822@ = 8
823@ = 8
824@ = 37
825@ = 37
826@ = 38
827@ = 62
792@ = -243.9
793@ = -1719.31
794@ = 2.35
143@ = 181.3364
263@ = -1885.854
383@ = 3.5158
503@ = 194.886
144@ = 187.69
264@ = -1915.42
384@ = 0.0
504@ = 187.4411
145@ = 190.3243
265@ = -1965.07
385@ = -1.09
505@ = 122.2256
146@ = 129.4773
266@ = -2001.432
386@ = -0.5606
506@ = 44.5101
147@ = 24.1326
267@ = -1872.092
387@ = -0.1744
507@ = 46.3064
148@ = -38.8038
268@ = -1799.4
388@ = -0.4976
508@ = 29.2224
149@ = -132.8051
269@ = -1809.788
389@ = -1.1548
509@ = 74.9425
150@ = -228.93
270@ = -1726.7
390@ = -0.01
510@ = 70.775
151@ = -248.1052
271@ = -1716.78
391@ = 1.9372
511@ = 157.2827
152@ = -262.3395
272@ = -1787.277
392@ = 8.7655
512@ = 167.5477
153@ = -277.3514
273@ = -1855.098
393@ = 21.3005
513@ = 168.3277
154@ = -280.5171
274@ = -1887.12
394@ = 24.786
514@ = 176.1066
155@ = -281.7469
275@ = -2087.827
395@ = 38.443
515@ = 141.1524
156@ = -464.7682
276@ = -2179.815
396@ = 58.8239
516@ = 68.1063
157@ = -641.5079
277@ = -2196.429
397@ = 11.5282
517@ = 129.7469
158@ = -783.5144
278@ = -2459.294
398@ = 73.7524
518@ = 140.2978
159@ = -871.3914
279@ = -2407.987
399@ = 54.4911
519@ = 51.7369
160@ = -942.5181
280@ = -2368.063
400@ = 58.8718
520@ = 85.4252
161@ = -1056.249
281@ = -2378.243
401@ = 48.5923
521@ = 94.4035
162@ = -1238.965
282@ = -2327.315
402@ = 18.2458
522@ = 58.7494
163@ = -1403.78
283@ = -2165.124
403@ = 17.4059
523@ = 77.2286
164@ = -1659.685
284@ = -2190.13
404@ = 32.3572
524@ = 144.7275
165@ = -1732.831
285@ = -2312.709
405@ = 45.225
525@ = 109.6972
166@ = -1826.058
286@ = -2340.271
406@ = 33.7243
526@ = 125.1071
167@ = -1917.68
287@ = -2432.147
407@ = 29.6249
527@ = 124.1505
168@ = -1972.515
288@ = -2478.326
408@ = 29.6259
528@ = 117.8682
169@ = -2025.629
289@ = -2500.391
409@ = 31.0671
529@ = 73.6687
170@ = -2119.107
290@ = -2431.265
410@ = 29.4766
530@ = 50.8121
171@ = -2188.57
291@ = -2377.538
411@ = 29.6172
531@ = 0.0
172@ = -2215.89
292@ = -2352.601
412@ = 29.6981
532@ = 61.4763
173@ = -2341.21
293@ = -2256.627
413@ = 16.8759
533@ = 39.8273
174@ = -2430.18
294@ = -2278.378
414@ = 13.7817
534@ = 45.7545
175@ = -2498.637
295@ = -2208.573
415@ = 27.9284
535@ = 50.0042
176@ = -2619.839
296@ = -2067.536
416@ = 38.1676
536@ = 55.7597
176@ = -2867.784
296@ = -1824.571
416@ = 36.6821
536@ = 16.2011
177@ = -2923.241
297@ = -1561.889
417@ = 10.0017
537@ = 7.7626
178@ = -2899.031
298@ = -1152.584
418@ = 8.32
538@ = 351.8611
179@ = -2858.125
299@ = -835.5231
419@ = 8.4844
539@ = 352.7365
180@ = -2814.01
300@ = -529.22
420@ = 6.1876
540@ = 343.4993
181@ = -2779.95
301@ = -489.85
421@ = 6.33
541@ = 305.3686
182@ = -2708.981
302@ = -529.5283
422@ = 10.196
542@ = 276.1151
183@ = -2670.157
303@ = -481.2506
423@ = 21.3104
543@ = 345.938
184@ = -2666.663
304@ = -406.0401
424@ = 31.3067
544@ = 324.8106
185@ = -2583.74
305@ = -369.7502
425@ = 46.2653
545@ = 275.6224
186@ = -2515.971
306@ = -367.1822
426@ = 58.2571
546@ = 272.1555
186@ = -2411.156
306@ = -371.7223
426@ = 72.2992
546@ = 236.1908
187@ = -2340.564
307@ = -416.5017
427@ = 78.5669
547@ = 230.3644
188@ = -2338.824
308@ = -463.832
428@ = 79.0233
548@ = 107.323
189@ = -2387.69
309@ = -423.99
429@ = 82.4307
549@ = 46.7979
190@ = -2496.379
310@ = -446.1119
430@ = 75.3116
550@ = 79.2676
191@ = -2544.498
311@ = -465.218
431@ = 68.9665
551@ = 119.0487
191@ = -2556.852
311@ = -466.8922
431@ = 69.2275
551@ = 116.1301
192@ = -2580.532
312@ = -468.6765
432@ = 67.3814
552@ = 105.1953
193@ = -2612.064
313@ = -475.2015
433@ = 67.8512
553@ = 102.5922
194@ = -2623.105
314@ = -500.2463
434@ = 69.917
554@ = 197.9217
195@ = -2613.75
315@ = -497.1339
435@ = 71.9272
555@ = 288.9547
196@ = -2579.733
316@ = -492.6317
436@ = 75.158
556@ = 278.9598
197@ = -2542.8
317@ = -490.87
437@ = 80.34
557@ = 280.2745
198@ = -2497.678
318@ = -480.3432
438@ = 94.0158
558@ = 282.4144
199@ = -2466.401
319@ = -497.2612
439@ = 104.2728
559@ = 198.2153
200@ = -2452.08
320@ = -544.5864
440@ = 120.5837
560@ = 197.1636
201@ = -2469.514
321@ = -618.502
441@ = 131.3831
561@ = 208.6952
202@ = -2471.06
322@ = -618.73
442@ = 131.73
562@ = 85.5749
203@ = -2498.368
323@ = -617.9995
443@ = 131.5625
563@ = 94.5939
204@ = -2498.981
324@ = -653.2845
444@ = 137.3194
564@ = 168.6758
205@ = -2501.356
325@ = -695.9691
445@ = 138.3174
565@ = 180.3733
743@ = -2500.0
744@ = -710.0
745@ = 138.49
828@ = 63
118@ = 9
set_lvar_int_to_constant 829@ = 154
set_lvar_int_to_constant 830@ = 18
set_lvar_int_to_constant 831@ = 45
set_lvar_int_to_constant 832@ = 18
set_lvar_int_to_constant 833@ = 45
set_lvar_int_to_constant 834@ = 154
set_lvar_int_to_constant 835@ = 154
set_lvar_int_to_constant 836@ = 167
set_lvar_int_to_constant 837@ = 167
set_lvar_int_to_constant 838@ = 167
set_lvar_int_to_constant 839@ = 167
set_lvar_int_to_constant 840@ = 167
set_lvar_int_to_constant 841@ = 510
set_lvar_int_to_constant 842@ = 510
set_lvar_int_to_constant 843@ = 510
set_lvar_int_to_constant 844@ = 510
set_lvar_int_to_constant 845@ = 510
set_lvar_int_to_constant 846@ = 510
set_lvar_int_to_constant 847@ = 510
set_lvar_int_to_constant 848@ = 510
set_lvar_int_to_constant 849@ = 510
set_lvar_int_to_constant 850@ = 510
set_lvar_int_to_constant 851@ = 510
set_lvar_int_to_constant 852@ = 510
770@ = 60.0
771@ = 40.0
772@ = 25.0
773@ = 2.25
774@ = 2.0
775@ = 1.8
776@ = 1.3
777@ = 1.25
778@ = 1.16
695@ = 2.3
707@ = -6.0
696@ = 3.0
708@ = 8.0
697@ = 5.0
709@ = -4.0
698@ = 2.6
710@ = -1.0
699@ = 5.0
711@ = 9.0
700@ = 0.0
712@ = -4.0
701@ = -4.0
713@ = 0.0
702@ = 0.0
714@ = 0.9
703@ = 3.1
715@ = -4.0
704@ = 3.0
716@ = -5.0
705@ = -5.0
717@ = -3.0
706@ = -2.0
718@ = 9.0
goto @TRIA_8781

:TRIA_3828
819@ = 0
820@ = 1
821@ = 9
822@ = 10
823@ = 10
824@ = 96
825@ = 96
826@ = 97
827@ = 103
792@ = 1408.9
793@ = -298.31
794@ = 1.14
143@ = 2135.432
263@ = -67.9555
383@ = 5.4915
503@ = 66.3885
144@ = 2113.189
264@ = -61.7735
384@ = -1.6317
504@ = 79.829
145@ = 2042.62
265@ = -68.5141
385@ = -1.9576
505@ = 105.8667
146@ = 1914.295
266@ = -82.3669
386@ = -1.573
506@ = 101.7482
147@ = 1844.035
267@ = -62.2716
387@ = -1.6096
507@ = 84.9519
148@ = 1742.236
268@ = -20.0478
388@ = -1.287
508@ = 79.6055
149@ = 1618.168
269@ = -15.6618
389@ = -1.6797
509@ = 156.9966
150@ = 1599.854
270@ = -118.7409
390@ = -1.4099
510@ = 164.6305
151@ = 1533.974
271@ = -213.8303
391@ = -1.8143
511@ = 126.3196
152@ = 1426.781
272@ = -284.0623
392@ = 0.4372
512@ = 144.5477
153@ = 1398.955
273@ = -320.351
393@ = 4.0182
513@ = 153.3551
154@ = 1358.093
274@ = -336.8423
394@ = 1.9089
514@ = 116.3511
155@ = 1289.739
275@ = -376.0291
395@ = 1.8575
515@ = 115.9818
156@ = 1226.153
276@ = -418.5785
396@ = 4.1044
516@ = 98.6074
157@ = 1042.313
277@ = -450.289
397@ = 50.3135
517@ = 101.4914
158@ = 955.7357
278@ = -394.1266
398@ = 62.9355
518@ = 78.1451
159@ = 862.81
279@ = -348.28
399@ = 35.11
519@ = 56.0
160@ = 735.1562
280@ = -269.1867
400@ = 8.7576
520@ = 73.8366
161@ = 469.2164
281@ = -284.2076
401@ = 9.4602
521@ = 112.1922
162@ = 251.8701
282@ = -371.7388
402@ = 7.7356
522@ = 68.255
163@ = 223.9637
283@ = -281.344
403@ = 0.4297
523@ = 271.1071
164@ = 232.8023
284@ = -147.7986
404@ = 0.4375
524@ = 357.6566
165@ = 212.8295
285@ = 51.8381
405@ = 1.0781
525@ = 109.6694
166@ = -68.0222
286@ = 199.2302
406@ = 1.1111
526@ = 65.8208
167@ = -214.4978
287@ = 242.3661
407@ = 10.9924
527@ = 77.1542
168@ = -474.3636
288@ = 283.1361
408@ = 1.0859
528@ = 87.3102
169@ = -704.3909
289@ = 237.3473
409@ = 1.2298
529@ = 125.775
170@ = -753.5148
290@ = 113.9041
410@ = 13.0728
530@ = 238.8586
171@ = -774.6131
291@ = 19.818
411@ = 32.2693
531@ = 99.2499
172@ = -882.6287
292@ = -30.0806
412@ = 32.3448
532@ = 159.807
173@ = -693.5931
293@ = 14.1184
413@ = 64.7495
533@ = 274.7533
174@ = -747.8843
294@ = -87.2834
414@ = 65.6724
534@ = 116.1896
175@ = -914.7136
295@ = -149.6012
415@ = 52.8499
535@ = 134.4302
176@ = -962.9247
296@ = -326.8087
416@ = 35.2353
536@ = 168.4629
177@ = -1053.014
297@ = -459.1835
417@ = 34.307
537@ = 115.9967
178@ = -1192.145
298@ = -713.6215
418@ = 54.6026
538@ = 156.9905
179@ = -1487.715
299@ = -817.6843
419@ = 64.4213
539@ = 92.4112
180@ = -1740.777
300@ = -724.1766
420@ = 30.4857
540@ = 49.0549
181@ = -1781.205
301@ = -583.264
421@ = 15.3359
541@ = 100.3213
182@ = -1823.7
302@ = -529.5533
422@ = 13.9686
542@ = 4.2211
183@ = -1799.017
303@ = -273.0101
423@ = 20.3398
543@ = 354.7032
184@ = -1800.123
304@ = -65.1682
424@ = 10.9423
544@ = 359.6422
185@ = -1725.062
305@ = 327.4661
425@ = 6.039
545@ = 315.311
186@ = -1557.097
306@ = 578.606
426@ = 6.028
546@ = 0.4208
187@ = -1541.106
307@ = 769.1249
427@ = 6.0391
547@ = 353.7148
188@ = -1583.378
308@ = 1116.991
428@ = 6.0468
548@ = 1.1392
189@ = -1809.283
309@ = 1378.625
429@ = 6.0391
549@ = 81.656
190@ = -2100.213
310@ = 1275.833
430@ = 15.1271
550@ = 95.1487
191@ = -2350.208
311@ = 1176.574
431@ = 41.5671
551@ = 90.0114
192@ = -2510.877
312@ = 1187.856
432@ = 39.1262
552@ = 85.252
193@ = -2669.68
313@ = 1245.143
433@ = 54.4297
553@ = 8.9025
194@ = -2673.893
314@ = 1643.352
434@ = 65.0251
554@ = 0.2767
195@ = -2674.047
315@ = 2075.544
435@ = 54.4218
555@ = 359.5528
196@ = -2738.813
316@ = 2389.167
436@ = 71.7769
556@ = 13.6254
197@ = -2547.931
317@ = 2616.462
437@ = 59.9948
557@ = 274.8428
198@ = -2291.888
318@ = 2639.561
438@ = 54.2564
558@ = 274.3506
199@ = -1943.441
319@ = 2477.796
439@ = 53.9877
559@ = 203.7195
200@ = -1773.83
320@ = 2183.409
440@ = 15.1278
560@ = 244.4939
201@ = -1671.435
321@ = 1994.474
441@ = 18.605
561@ = 169.1263
202@ = -1665.7
322@ = 1828.964
442@ = 24.836
562@ = 278.2649
203@ = -1515.527
323@ = 1841.554
443@ = 28.9903
563@ = 271.1894
204@ = -1264.993
324@ = 1827.301
444@ = 39.4348
564@ = 234.95
205@ = -1121.385
325@ = 1807.539
445@ = 41.2592
565@ = 284.4989
206@ = -988.9796
326@ = 1847.639
446@ = 61.9118
566@ = 237.4219
207@ = -855.0579
327@ = 1858.897
447@ = 59.216
567@ = 15.0168
208@ = -827.7874
328@ = 2022.61
448@ = 59.1866
568@ = 302.1424
209@ = -643.984
329@ = 2054.752
449@ = 59.3829
569@ = 252.3283
210@ = -460.4977
330@ = 2022.137
450@ = 59.1932
570@ = 314.0172
211@ = -385.3306
331@ = 2052.059
451@ = 61.1139
571@ = 121.3349
212@ = -471.1979
332@ = 1868.452
452@ = 81.3094
572@ = 185.3215
213@ = -424.8187
333@ = 1785.552
453@ = 69.9688
573@ = 353.9297
214@ = -392.5027
334@ = 1899.678
454@ = 56.3096
574@ = 190.7471
215@ = -437.5663
335@ = 1639.054
455@ = 34.5544
575@ = 155.0889
216@ = -419.9048
336@ = 1375.711
456@ = 29.3441
576@ = 198.0373
217@ = -254.2456
337@ = 1241.245
457@ = 22.9055
577@ = 262.7647
218@ = -17.3116
338@ = 1265.996
458@ = 7.1868
578@ = 269.9033
219@ = 207.218
339@ = 1174.193
459@ = 13.9973
579@ = 316.9584
220@ = 339.0704
340@ = 1382.287
460@ = 6.1753
580@ = 342.3971
221@ = 388.3414
341@ = 1547.929
461@ = 13.8468
581@ = 343.6689
222@ = 633.4001
342@ = 1754.867
462@ = 3.9566
582@ = 317.1131
223@ = 669.8152
343@ = 2168.323
463@ = 20.5117
583@ = 358.9947
224@ = 689.647
344@ = 2565.16
464@ = 27.2334
584@ = 311.5221
225@ = 891.8608
345@ = 2603.754
465@ = 9.595
585@ = 247.505
226@ = 1044.021
346@ = 2515.857
466@ = 9.6323
586@ = 231.5339
227@ = 1244.597
347@ = 2379.124
467@ = 12.6162
587@ = 243.279
228@ = 1443.869
348@ = 2448.945
468@ = 5.7498
588@ = 288.6619
229@ = 1666.893
349@ = 2445.993
469@ = 6.0409
589@ = 251.8771
230@ = 1788.89
350@ = 2302.641
470@ = 4.9096
590@ = 178.4221
231@ = 1787.288
351@ = 2020.553
471@ = 2.9839
591@ = 180.0315
232@ = 1757.569
352@ = 1803.75
472@ = 6.6726
592@ = 151.3169
233@ = 1719.659
353@ = 1733.205
473@ = 9.6719
593@ = 76.1769
234@ = 1647.86
354@ = 1740.389
474@ = 9.6719
594@ = 353.7883
235@ = 1666.322
355@ = 1871.767
475@ = 9.6797
595@ = 276.203
236@ = 1707.177
356@ = 1939.953
476@ = 9.6719
596@ = 1.2039
237@ = 1736.212
357@ = 2053.139
477@ = 9.6797
597@ = 263.9626
238@ = 1897.32
358@ = 2044.712
478@ = 9.6719
598@ = 254.9706
239@ = 1994.816
359@ = 2022.869
479@ = 9.6797
599@ = 270.1811
240@ = 2126.005
360@ = 2014.889
480@ = 9.6719
600@ = 199.0654
241@ = 2126.798
361@ = 1885.59
481@ = 9.6797
601@ = 178.0925
242@ = 2098.335
362@ = 1802.86
482@ = 9.6797
602@ = 156.4693
243@ = 2056.644
363@ = 1720.575
483@ = 9.6719
603@ = 156.0535
244@ = 2049.26
364@ = 1554.789
484@ = 9.6719
604@ = 179.2217
245@ = 2050.827
365@ = 1403.362
485@ = 9.6719
605@ = 179.9112
246@ = 2048.7
366@ = 1089.746
486@ = 9.6641
606@ = 179.8144
743@ = 2046.0
744@ = 979.0
745@ = 9.49
828@ = 104
118@ = 9
set_lvar_int_to_constant 829@ = 154
set_lvar_int_to_constant 830@ = 18
set_lvar_int_to_constant 831@ = 45
set_lvar_int_to_constant 832@ = 18
set_lvar_int_to_constant 833@ = 45
set_lvar_int_to_constant 834@ = 154
set_lvar_int_to_constant 835@ = 154
set_lvar_int_to_constant 836@ = 167
set_lvar_int_to_constant 837@ = 167
set_lvar_int_to_constant 838@ = 167
set_lvar_int_to_constant 839@ = 167
set_lvar_int_to_constant 840@ = 167
set_lvar_int_to_constant 841@ = 510
set_lvar_int_to_constant 842@ = 510
set_lvar_int_to_constant 843@ = 510
set_lvar_int_to_constant 844@ = 510
set_lvar_int_to_constant 845@ = 510
set_lvar_int_to_constant 846@ = 510
set_lvar_int_to_constant 847@ = 510
set_lvar_int_to_constant 848@ = 510
set_lvar_int_to_constant 849@ = 510
set_lvar_int_to_constant 850@ = 510
set_lvar_int_to_constant 851@ = 510
set_lvar_int_to_constant 852@ = 510
770@ = 50.0
771@ = 40.0
772@ = 30.0
773@ = 2.23
774@ = 2.1
775@ = 1.8
776@ = 1.33
777@ = 1.3
778@ = 1.25
695@ = 2.3
707@ = -6.0
696@ = 3.0
708@ = -4.0
697@ = 5.0
709@ = -4.0
698@ = 2.6
710@ = -1.0
699@ = 5.0
711@ = 5.0
700@ = 0.0
712@ = -4.0
701@ = -4.0
713@ = 0.0
702@ = 0.0
714@ = 0.9
703@ = 3.1
715@ = -4.0
704@ = 3.0
716@ = -5.0
705@ = -5.0
717@ = -3.0
706@ = -2.0
718@ = 4.0
746@ = 0
747@ = 0
748@ = 0
749@ = 0
750@ = 0
751@ = 0
752@ = 0
753@ = 0
754@ = 0
755@ = 0
756@ = 0
757@ = 0
goto @TRIA_8781
963@ = Checkpoint.Create(CheckpointType.TubeArrow, 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 960@, 961@, 962@, 6.0)
Checkpoint.Delete(963@)

:TRIA_8781
set_lvar_float_to_lvar_float 779@ = 770@
set_lvar_float_to_lvar_float 780@ = 773@
set_lvar_float_to_lvar_float 781@ = 776@

:TRIA_8805
if 
  not Player.IsPlaying($player1)
goto_if_false @TRIA_8832
wait 0
goto @TRIA_8805

:TRIA_8832
World.ClearArea(143@, 263@, 383@, 1000001.0, False)
Streaming.LoadScene(143@, 263@, 383@)
World.DisableAllEntryExits(True)
World.SetCarDensityMultiplier(0.0)
World.SetPedDensityMultiplier(0.0)
set_lvar_int_to_lvar_int 853@ = 828@
853@ -= 1
758@ = 0
759@ = 0
760@ = 0
761@ = 0
set_lvar_int_to_lvar_int 926@ = 118@

:TRIA_8930
if 
  is_int_lvar_greater_than_int_lvar 926@ > 759@
goto_if_false @TRIA_8974
927@(759@,12i) = 0
759@ += 1
goto @TRIA_8930

:TRIA_8974
939@ = Blip.AddForCoord(143@, 263@, 383@)
940@ = 0

:TRIA_8995
wait 0
$game_timer = Clock.GetGameTimer()
942@ = 0
759@ = 0
if 
  940@ == 0
goto_if_false @TRIA_9266
if 
  not Char.IsDead($scplayer)
goto_if_false @TRIA_9266
Char.SetCoordinates($scplayer, 143@, 263@, 383@)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
//Player.GiveClothesOutsideShop($player1, "BBSHORTWHT", "BOXINGSHORT", BodyPart.Legs)
Player.BuildModel($player1)
if 
  Char.LocateAnyMeans2D($scplayer, 144@, 264@, 100.0, 100.0, False)
goto_if_false @TRIA_9266
758@ = 0
set_var_float_to_lvar_float $x = 143@
$x += 4.0
set_var_float_to_lvar_float $y = 263@
$y += 4.0
set_var_float_to_lvar_float $z = 383@
$z += 6.0
set_lvar_float_to_lvar_float 785@ = 143@
785@ -= 7.0
set_lvar_float_to_lvar_float 786@ = 263@
786@ -= 7.0
set_lvar_float_to_lvar_float 787@ = 383@
787@ -= 7.0
940@ += 1

:TRIA_9266
if 
  940@ == 1
goto_if_false @TRIA_9359
Streaming.RequestModel(154)
Streaming.RequestModel(18)
Streaming.RequestModel(45)
Streaming.RequestModel(167)
Streaming.RequestModel(510)

:TRIA_9307
if or
  not Streaming.HasModelLoaded(154)
  not Streaming.HasModelLoaded(18)
  not Streaming.HasModelLoaded(45)
  not Streaming.HasModelLoaded(167)
  not Streaming.HasModelLoaded(510)
goto_if_false @TRIA_9352
wait 0
goto @TRIA_9307

:TRIA_9352
940@ = 2

:TRIA_9359
if 
  940@ == 2
goto_if_false @TRIA_11299
768@ = Car.Create(841@, 143@, 263@, 383@)
Car.TurnToFaceCoord(768@, 144@, 264@)
set_lvar_int_to_lvar_int 762@ = 926@
762@ -= 1
769@ = Car.Create(841@, 143@(822@,120f), 263@(822@,120f), -100.0)
Car.SetHeading(769@, 503@(822@,120f))
785@, 786@, 787@ = Car.GetOffsetInWorldCoords(769@, 785@, 786@, 787@)
791@ = Car.GetHeading(769@)
set_lvar_float_to_lvar_float 787@ = 383@
759@ = 0

:TRIA_9505
if 
  is_int_lvar_greater_than_int_lvar 926@ > 759@
goto_if_false @TRIA_11059
set_lvar_int_to_lvar_int 760@ = 759@
760@ /= 2
760@ *= 2
if 
  is_int_lvar_equal_to_int_lvar 760@ == 759@
goto_if_false @TRIA_9623
$x = 1.5
set_lvar_int_to_lvar_int 761@ = 759@
761@ *= 2
cset_lvar_float_to_lvar_int 788@ =# 761@
788@ *= -1.0
set_var_float_to_lvar_float $y = 788@
goto @TRIA_9681

:TRIA_9623
$x = -1.5
set_lvar_int_to_lvar_int 761@ = 759@
761@ -= 1
761@ *= 2
cset_lvar_float_to_lvar_int 788@ =# 761@
788@ *= -1.0
set_var_float_to_lvar_float $y = 788@

:TRIA_9681
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, $x, $y, $z)
789@ = Car.GetHeading(768@)
set_var_float_to_lvar_float $z = 383@
set_lvar_float_to_var_float 854@(759@,12f) = $x
set_lvar_float_to_var_float 866@(759@,12f) = $y
$z = World.GetGroundZFor3DCoord($x, $y, $z)
set_lvar_float_to_var_float 878@(759@,12f) = $z
if 
  is_int_lvar_greater_than_int_lvar 762@ > 759@
goto_if_false @TRIA_10303
914@(759@,12i) = Char.Create(PedType.CivMale, 829@(759@,12i), $x, $y, -100.0)
Char.SetOnlyDamagedByPlayer(914@(759@,12i), True)
Char.SetDecisionMaker(914@(759@,12i), 816@)
131@(759@,12i) = 0
804@(759@,12i) = 0
Char.SetHeading(914@(759@,12i), 503@)
Char.SetDrownsInWater(914@(759@,12i), False)
Char.ClearLastDamageEntity(914@(759@,12i))
Char.SetCanBeShotInVehicle(914@(759@,12i), False)
if 
  131@(759@,12i) == 0
goto_if_false @TRIA_10296
set_lvar_int_to_lvar_int 760@ = 759@
760@ /= 2
760@ *= 2
if 
  is_int_lvar_equal_to_int_lvar 760@ == 759@
goto_if_false @TRIA_10027
$x = 3.5
set_lvar_int_to_lvar_int 761@ = 759@
761@ *= 2
cset_lvar_float_to_lvar_int 788@ =# 761@
788@ *= -1.0
set_var_float_to_lvar_float $y = 788@
goto @TRIA_10085

:TRIA_10027
$x = -3.5
set_lvar_int_to_lvar_int 761@ = 759@
761@ -= 1
761@ *= 2
cset_lvar_float_to_lvar_int 788@ =# 761@
788@ *= -1.0
set_var_float_to_lvar_float $y = 788@

:TRIA_10085
$x, $y, $z = Car.GetOffsetInWorldCoords(769@, $x, $y, $z)
902@(759@,12i) = Car.Create(841@(759@,12i), $x, $y, -100.0)
Car.ImproveByCheating(902@(759@,12i), True)
Car.SetTraction(902@(759@,12i), 1.5)
131@(759@,12i) = 1
StuckCarCheck.AddWithWarp(902@(759@,12i), 0.5, 5000, True, False, True, 1)
Car.SetHeading(902@(759@,12i), 175.0)
Car.SetProofs(902@(759@,12i), True, True, True, True, True)
Car.SetHealth(902@(759@,12i), 2000)
Car.SetWatertight(902@(759@,12i), True)
Car.SetStrong(902@(759@,12i), True)
Car.SetUpsidedownNotDamaged(902@(759@,12i), True)
Car.SetStraightLineDistance(902@(759@,12i), 5)
Car.SetCanBurstTires(902@(759@,12i), False)

:TRIA_10296
goto @TRIA_11045

:TRIA_10303
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, -4.0435, 6.5755, -0.8)
954@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(954@, 143@, 263@, 383@)
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, -5.6392, 2.9435, -0.8)
943@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(943@, 143@, 263@, 383@)
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, -6.0071, -2.0778, -0.8)
944@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(944@, 143@, 263@, 383@)
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, -7.6039, -5.0807, -0.8)
945@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(945@, 143@, 263@, 383@)
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, -7.0724, -6.4057, -0.8)
946@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(946@, 143@, 263@, 383@)
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, -5.9988, -13.553, -0.8)
947@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(947@, 143@, 263@, 383@)
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, 6.073, -15.2059, -0.8)
948@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(948@, 143@, 263@, 383@)
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, 7.2639, -12.9933, -0.8)
949@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(949@, 143@, 263@, 383@)
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, 5.8429, -7.7069, -0.8)
950@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(950@, 143@, 263@, 383@)
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, 8.4135, -3.7971, -0.8)
951@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(951@, 143@, 263@, 383@)
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, 6.2507, 0.3634, -0.8)
952@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(952@, 143@, 263@, 383@)
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, 8.6397, 2.419, -0.8)
953@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(953@, 143@, 263@, 383@)
Blip.Remove(939@)
939@ = Blip.AddForCoord(854@(762@,12f), 866@(762@,12f), 878@(762@,12f))
World.SetCarDensityMultiplier(0.5)
set_lvar_int_to_var_int 914@(759@,12i) = $scplayer
set_lvar_int_to_lvar_int 941@ = 759@

:TRIA_11045
759@ += 1
goto @TRIA_9505

:TRIA_11059
940@ += 1
Car.Delete(768@)
Car.Delete(769@)
769@ = Car.Create(841@, 143@(822@,120f), 263@(822@,120f), 383@(822@,120f))
Car.SetHeading(769@, 503@(822@,120f))
795@, 796@, 797@ = Car.GetOffsetInWorldCoords(769@, 5.0, -15.0, 0.0)
Car.SetHeading(769@, 791@)
902@(941@,12i) = Car.Create(510, 795@, 796@, -100.0)
Car.SetHeading(902@(941@,12i), 791@)
Car.SetWatertight(902@(941@,12i), True)
Car.Delete(769@)
if 
  Player.IsPlaying($player1)
goto_if_false @TRIA_11257
Char.SetCoordinates($scplayer, 854@(941@,12f), 866@(941@,12f), 878@(941@,12f))
Char.SetHeading($scplayer, 503@)
Camera.SetBehindPlayer

:TRIA_11257
Hud.SwitchWidescreen(True)
wait 500
Camera.DoFade(3000, Fade.In)

:TRIA_11273
if 
  Camera.GetFadingStatus
goto_if_false @TRIA_11297
wait 0
goto @TRIA_11273

:TRIA_11297
Text.ClearPrints

:TRIA_11299
if 
  940@ == 3
goto_if_false @TRIA_11510
if 
  not Char.IsDead($scplayer)
goto_if_false @TRIA_11510
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Game.SetAllCarsCanBeDamaged(False)
Text.PrintBig('RACES_4', 1100, TextStyle.MiddleSmaller)
Sound.AddOneOffSound(0.0, 0.0, 0.0, 65535)
set_lvar_int_to_lvar_int 762@ = 926@
762@ -= 1
759@ = 0

:TRIA_11411
if 
  is_int_lvar_greater_than_int_lvar 762@ > 759@
goto_if_false @TRIA_11487
if 
  Char.IsDead(914@(759@,12i))
goto_if_false @TRIA_11473
Text.PrintNow('RACES25', 5000, 1)
goto @TRIA_22678

:TRIA_11473
759@ += 1
goto @TRIA_11411

:TRIA_11487
set_lvar_int_to_var_int 955@ = $game_timer
955@ += 999
940@ += 1

:TRIA_11510
if 
  940@ == 4
goto_if_false @TRIA_11608
if 
  is_int_var_greater_than_int_lvar $game_timer > 955@
goto_if_false @TRIA_11608
Text.PrintBig('RACES_5', 1100, TextStyle.MiddleSmaller)
Sound.AddOneOffSound(0.0, 0.0, 0.0, 65535)
set_lvar_int_to_var_int 955@ = $game_timer
955@ += 999
940@ += 1

:TRIA_11608
if 
  940@ == 5
goto_if_false @TRIA_11706
if 
  is_int_var_greater_than_int_lvar $game_timer > 955@
goto_if_false @TRIA_11706
Text.PrintBig('RACES_6', 1100, TextStyle.MiddleSmaller)
Sound.AddOneOffSound(0.0, 0.0, 0.0, 65535)
set_lvar_int_to_var_int 955@ = $game_timer
955@ += 999
940@ += 1

:TRIA_11706
if 
  940@ == 6
goto_if_false @TRIA_11933
if 
  is_int_var_greater_than_int_lvar $game_timer > 955@
goto_if_false @TRIA_11933
if 
  not Char.IsDead($scplayer)
goto_if_false @TRIA_11933
Text.PrintBig('RACES_7', 800, TextStyle.MiddleSmaller)
Sound.AddOneOffSound(0.0, 0.0, 0.0, 65535)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Game.SetAllCarsCanBeDamaged(True)
Camera.Restore
Hud.SwitchWidescreen(False)
Hud.DisplayCarNames(False)
set_lvar_int_to_var_int 767@ = $game_timer
set_lvar_int_to_lvar_int 762@ = 926@
762@ -= 1
759@ = 0

:TRIA_11855
if 
  is_int_lvar_greater_than_int_lvar 762@ > 759@
goto_if_false @TRIA_11919
if 
  not Car.IsDead(902@(759@,12i))
goto_if_false @TRIA_11905
Car.SetOnlyDamagedByPlayer(902@(759@,12i), False)

:TRIA_11905
759@ += 1
goto @TRIA_11855

:TRIA_11919
955@ = 0
940@ += 1

:TRIA_11933
if 
  940@ > 6
goto_if_false @TRIA_19672

:TRIA_11951
if 
  is_int_lvar_greater_than_int_lvar 926@ > 759@
goto_if_false @TRIA_18612
if 
  not Char.IsDead($scplayer)
goto_if_false @TRIA_18598
if 
  not Char.IsDead(914@(759@,12i))
goto_if_false @TRIA_14949
if 
  940@ == 8
goto_if_false @TRIA_14942
if 
  not is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_14942
if 
  is_int_lvar_equal_to_int_lvar 927@(941@,12i) == 927@(759@,12i)
goto_if_false @TRIA_12189
$x, $y, $z = Char.GetCoordinates(914@(759@,12i))
957@ = Math.GetDistanceBetweenCoords2D($x, $y, 854@(759@,12f), 866@(759@,12f))
$x, $y, $z = Char.GetCoordinates($scplayer)
790@ = Math.GetDistanceBetweenCoords2D($x, $y, 854@(759@,12f), 866@(759@,12f))
if 
  is_float_lvar_greater_than_float_lvar 790@ > 957@
goto_if_false @TRIA_12182
942@ += 1

:TRIA_12182
goto @TRIA_12223

:TRIA_12189
if 
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 927@(941@,12i)
goto_if_false @TRIA_12223
942@ += 1

:TRIA_12223
if 
  not Char.LocateAnyMeans2D(914@(759@,12i), 82@(759@,12f), 94@(759@,12f), 2.0, 2.0, False)
goto_if_false @TRIA_12439
82@(759@,12f), 94@(759@,12f), $z = Char.GetCoordinates(914@(759@,12i))
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 819@
  is_int_lvar_greater_or_equal_to_int_lvar 821@ >= 927@(759@,12i)
goto_if_false @TRIA_12361
set_lvar_int_to_var_int 119@(759@,12i) = $game_timer
119@(759@,12i) += 1500
goto @TRIA_12439

:TRIA_12361
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 822@
goto_if_false @TRIA_12415
set_lvar_int_to_var_int 119@(759@,12i) = $game_timer
119@(759@,12i) += 1500
goto @TRIA_12439

:TRIA_12415
set_lvar_int_to_var_int 119@(759@,12i) = $game_timer
119@(759@,12i) += 4000

:TRIA_12439
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 826@
  is_int_lvar_greater_or_equal_to_int_lvar 827@ >= 927@(759@,12i)
goto_if_false @TRIA_12640
if 
  Char.IsPlayingAnim(914@(759@,12i), "SPRINT_PANIC")
goto_if_false @TRIA_12534
Char.SetAnimSpeed(914@(759@,12i), "SPRINT_PANIC", 781@)

:TRIA_12534
if 
  Char.IsPlayingAnim(914@(759@,12i), "RUN_CIVI")
goto_if_false @TRIA_12586
Char.SetAnimSpeed(914@(759@,12i), "RUN_CIVI", 781@)

:TRIA_12586
if 
  Char.IsPlayingAnim(914@(759@,12i), "WALK_CIVI")
goto_if_false @TRIA_12640
Char.SetAnimSpeed(914@(759@,12i), "WALK_CIVI", 781@)

:TRIA_12640
if 
  Char.LocateAnyMeans2D(914@(759@,12i), 82@(759@,12f), 94@(759@,12f), 3.0, 3.0, False)
goto_if_false @TRIA_14201
if 
  is_int_var_greater_than_int_lvar $game_timer > 119@(759@,12i)
goto_if_false @TRIA_14201
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 819@
  is_int_lvar_greater_or_equal_to_int_lvar 821@ >= 927@(759@,12i)
goto_if_false @TRIA_13220
if 
  Char.IsInWater(914@(759@,12i))
goto_if_false @TRIA_13197
set_lvar_float_to_lvar_float 785@ = 854@(759@,12f)
add_float_lvar_to_float_lvar 785@ += 695@(759@,12f)
set_lvar_float_to_lvar_float 786@ = 866@(759@,12f)
add_float_lvar_to_float_lvar 786@ += 707@(759@,12f)
if 
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 819@
goto_if_false @TRIA_12982
if 
  3 <= 927@(759@,12i)
goto_if_false @TRIA_12939
731@(759@,12i) = Char.GetScriptTaskStatus(914@(759@,12i), 2017)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_12932
Task.SwimToCoord(914@(759@,12i), 785@, 786@, 878@(759@,12f))
Char.SetSwimSpeed(914@(759@,12i), 780@)

:TRIA_12932
goto @TRIA_12975

:TRIA_12939
Task.SwimToCoord(914@(759@,12i), 785@, 786@, 878@(759@,12f))
Char.SetSwimSpeed(914@(759@,12i), 2.2)

:TRIA_12975
goto @TRIA_13190

:TRIA_12982
if 
  not Char.IsOnScreen(914@(759@,12i))
goto_if_false @TRIA_13190
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
if 
  not Camera.IsPointOnScreen(854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 10.0)
goto_if_false @TRIA_13190
Char.SetCoordinates(914@(759@,12i), 854@(759@,12f), 866@(759@,12f), 878@(759@,12f))
Char.SetHeading(914@(759@,12i), 503@(759@,120f))
Char.ClearTasks(914@(759@,12i))
731@(759@,12i) = Char.GetScriptTaskStatus(914@(759@,12i), 2017)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_13190
Task.SwimToCoord(914@(759@,12i), 785@, 786@, 878@(759@,12f))
Char.SetSwimSpeed(914@(759@,12i), 780@)

:TRIA_13190
goto @TRIA_13220

:TRIA_13197
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 821@
goto_if_false @TRIA_13220

:TRIA_13220
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 823@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_14058
if 
  not Car.IsDead(902@(759@,12i))
goto_if_false @TRIA_14058
switch_start 804@(759@,12i) {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @TRIA_13667 {caseNum1} 0 {caseLabel1} @TRIA_13342 {caseNum2} 1 {caseLabel2} @TRIA_13417 {caseNum3} -1 {caseLabel3} @TRIA_14058 {caseNum4} -1 {caseLabel4} @TRIA_14058 {caseNum5} -1 {caseLabel5} @TRIA_14058 {caseNum6} -1 {caseLabel6} @TRIA_14058 {caseNum7} -1 {caseLabel7} @TRIA_14058

:TRIA_13342
803@ = Sequence.Open()
Task.GoStraightToCoord(-1, 792@, 793@, 794@, MoveState.Sprint, -2)
Task.EnterCarAsDriver(-1, 902@(759@,12i), -2)
Sequence.Close(803@)
Char.PerformSequence(914@(759@,12i), 803@)
Sequence.Clear(803@)
804@(759@,12i) = 1
goto @TRIA_14058

:TRIA_13417
if 
  not Char.IsOnScreen(914@(759@,12i))
goto_if_false @TRIA_13660
if 
  not Camera.IsPointOnScreen(854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 10.0)
goto_if_false @TRIA_13660
if 
  not Char.IsInCar(914@(759@,12i), 902@(759@,12i))
goto_if_false @TRIA_13660
if 
  not Car.IsOnScreen(902@(759@,12i))
goto_if_false @TRIA_13660
if 
  not Char.IsInAnyCar(914@(759@,12i))
goto_if_false @TRIA_13660
798@ = Car.GetDriver(902@(759@,12i))
if 
  798@ == -1
goto_if_false @TRIA_13660
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
Char.WarpIntoCar(914@(759@,12i), 902@(759@,12i))
Task.CarDriveToCoord(914@(759@,12i), -1, 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 779@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)
804@(759@,12i) = 2

:TRIA_13660
goto @TRIA_14058

:TRIA_13667
if 
  not Char.IsOnScreen(914@(759@,12i))
goto_if_false @TRIA_14051
if 
  not Camera.IsPointOnScreen(854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 10.0)
goto_if_false @TRIA_14051
if 
  not Car.IsOnScreen(902@(759@,12i))
goto_if_false @TRIA_14051
798@ = Car.GetDriver(902@(759@,12i))
if 
  798@ == -1
goto_if_false @TRIA_14051
731@(759@,12i) = Char.GetScriptTaskStatus(914@(759@,12i), 1489)
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_14051
if 
  not Char.IsInCar(914@(759@,12i), 902@(759@,12i))
goto_if_false @TRIA_13957
798@ = Car.GetDriver(902@(759@,12i))
if 
  798@ == -1
goto_if_false @TRIA_13950
Char.WarpIntoCar(914@(759@,12i), 902@(759@,12i))
Task.CarDriveToCoord(914@(759@,12i), -1, 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 779@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)

:TRIA_13950
goto @TRIA_14051

:TRIA_13957
Char.SetCoordinates(914@(759@,12i), 854@(759@,12f), 866@(759@,12f), 878@(759@,12f))
Car.TurnToFaceCoord(902@(759@,12i), 854@(759@,12f), 866@(759@,12f))
Task.CarDriveToCoord(914@(759@,12i), -1, 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 779@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)

:TRIA_14051
goto @TRIA_14058

:TRIA_14058
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 826@
  is_int_lvar_greater_or_equal_to_int_lvar 827@ >= 927@(759@,12i)
goto_if_false @TRIA_14201
if 
  not Char.IsOnScreen(914@(759@,12i))
goto_if_false @TRIA_14201
if 
  not Camera.IsPointOnScreen(854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 10.0)
goto_if_false @TRIA_14201
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
Char.SetCoordinates(914@(759@,12i), 854@(759@,12f), 866@(759@,12f), 878@(759@,12f))

:TRIA_14201
if 
  Char.IsInAnyCar(914@(759@,12i))
goto_if_false @TRIA_14252
set_lvar_int_to_lvar_int 762@ = 927@(941@,12i)
762@ += 5
768@ = Char.StoreCarIsInNoSave(914@(759@,12i))

:TRIA_14252
758@ = 0
761@ = 0

:TRIA_14266
if 
  is_int_lvar_greater_than_int_lvar 926@ > 758@
goto_if_false @TRIA_14348
set_lvar_int_to_lvar_int 958@ = 927@(758@,12i)
958@ -= 2
if 
  is_int_lvar_greater_than_int_lvar 958@ > 927@(759@,12i)
goto_if_false @TRIA_14334
761@ += 1

:TRIA_14334
758@ += 1
goto @TRIA_14266

:TRIA_14348
if 
  761@ > 0
goto_if_false @TRIA_14942
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
if 
  not Char.IsDead(914@(759@,12i))
goto_if_false @TRIA_14942
if 
  not Char.LocateAnyMeansChar3D($scplayer, 914@(759@,12i), 30.0, 30.0, 30.0, False)
goto_if_false @TRIA_14942
if 
  not Char.IsOnScreen(914@(759@,12i))
goto_if_false @TRIA_14942
if 
  not World.IsPointObscuredByAMissionEntity(854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 4.0, 4.0, 3.0)
goto_if_false @TRIA_14942
if 
  not Camera.IsPointOnScreen(854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 4.0)
goto_if_false @TRIA_14942
Char.SetCoordinates(914@(759@,12i), 854@(759@,12f), 866@(759@,12f), 878@(759@,12f))
Char.ClearTasks(914@(759@,12i))
731@(759@,12i) = Char.GetScriptTaskStatus(914@(759@,12i), 1489)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_14942
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 823@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_14942
if 
  Char.IsInAnyCar(914@(759@,12i))
goto_if_false @TRIA_14760
768@ = Char.StoreCarIsInNoSave(914@(759@,12i))
Car.SetHeading(768@, 503@(759@,120f))
Task.CarDriveToCoord(914@(759@,12i), -1, 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 779@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)
goto @TRIA_14942

:TRIA_14760
if 
  not Car.IsDead(902@(759@,12i))
goto_if_false @TRIA_14942
if 
  not Char.IsInCar(914@(759@,12i), 902@(759@,12i))
goto_if_false @TRIA_14942
if 
  not Char.IsInCar($scplayer, 902@(759@,12i))
goto_if_false @TRIA_14942
798@ = Car.GetDriver(902@(759@,12i))
if 
  798@ == -1
goto_if_false @TRIA_14942
Char.ClearTasks(914@(759@,12i))
Char.WarpIntoCar(914@(759@,12i), 902@(759@,12i))
Car.SetHeading(902@(759@,12i), 503@(759@,120f))
Task.CarDriveToCoord(914@(759@,12i), -1, 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 779@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)

:TRIA_14942
goto @TRIA_15051

:TRIA_14949
if and
  Char.HasBeenDamagedByChar(914@(759@,12i), $scplayer)
  Char.IsDead(914@(759@,12i))
goto_if_false @TRIA_15051
if 
  not Car.IsDead(902@(941@,12i))
goto_if_false @TRIA_15051
if 
  not Char.HasBeenDamagedByCar(914@(759@,12i), 902@(941@,12i))
goto_if_false @TRIA_15051
Text.PrintNow('RACES25', 5000, 1)
goto @TRIA_22678

:TRIA_15051
if 
  not Char.IsDead(914@(759@,12i))
goto_if_false @TRIA_16445
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_15193
if 
  782@ == 0
goto_if_false @TRIA_15193
if 
  not Char.LocateAnyMeans3D(914@(759@,12i), 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 600.0, 600.0, 600.0, False)
goto_if_false @TRIA_15193
Text.PrintNow('RACES25', 5000, 1)
goto @TRIA_22678

:TRIA_15193
if 
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 827@
goto_if_false @TRIA_15299
if 
  746@(759@,12i) == 0
goto_if_false @TRIA_15299
803@ = Sequence.Open()
Task.GoStraightToCoord(-1, 743@, 744@, 745@, MoveState.Sprint, -2)
Task.Tired(-1, -2)
Sequence.Close(803@)
Char.PerformSequence(914@(759@,12i), 803@)
Sequence.Clear(803@)
746@(759@,12i) = 1

:TRIA_15299
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 826@
  is_int_lvar_greater_or_equal_to_int_lvar 827@ >= 927@(759@,12i)
goto_if_false @TRIA_15703
if 
  Char.LocateAnyMeans3D(914@(759@,12i), 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 8.0, 8.0, 5.0, False)
goto_if_false @TRIA_15703
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 826@
goto_if_false @TRIA_15429
goto @TRIA_19747
goto @TRIA_15477

:TRIA_15429
731@(759@,12i) = Char.GetScriptTaskStatus(914@(759@,12i), 2606)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_15477
goto @TRIA_19747

:TRIA_15477
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 828@
goto_if_false @TRIA_15703
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_15592
942@ += 1
if 
  1 >= 942@
goto_if_false @TRIA_15562
goto @TRIA_22696
goto @TRIA_15585

:TRIA_15562
Text.PrintNow('RACES_8', 5000, 1)
goto @TRIA_22678

:TRIA_15585
goto @TRIA_15703

:TRIA_15592
Task.CarTempAction(914@(759@,12i), -1, TempAction.HandbrakeStraight, 2000000)
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
if 
  not Camera.IsPointOnScreen(854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 30.0)
goto_if_false @TRIA_15703
if 
  not Car.IsDead(768@)
goto_if_false @TRIA_15703
Car.TurnToFaceCoord(768@, 143@(759@,120f), 263@(759@,120f))

:TRIA_15703
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 821@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_16268
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_16110
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 823@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_15961
if 
  Char.LocateInCar3D(914@(759@,12i), 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 40.0, 40.0, 40.0, False)
goto_if_false @TRIA_15954
set_lvar_int_to_lvar_int 765@ = 823@
765@ += 1
if 
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 765@
goto_if_false @TRIA_15947
731@(759@,12i) = Char.GetScriptTaskStatus(914@(759@,12i), 1489)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_15940
goto @TRIA_19747

:TRIA_15940
goto @TRIA_15954

:TRIA_15947
goto @TRIA_19747

:TRIA_15954
goto @TRIA_16103

:TRIA_15961
if 
  Char.LocateAnyMeans3D(914@(759@,12i), 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 8.0, 8.0, 5.0, False)
goto_if_false @TRIA_16103
if 
  2 > 927@(759@,12i)
goto_if_false @TRIA_16096
731@(759@,12i) = Char.GetScriptTaskStatus(914@(759@,12i), 2017)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_16089
goto @TRIA_19747

:TRIA_16089
goto @TRIA_16103

:TRIA_16096
goto @TRIA_19747

:TRIA_16103
goto @TRIA_16268

:TRIA_16110
if 
  Char.LocateInCar3D(914@(759@,12i), 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 40.0, 40.0, 40.0, False)
goto_if_false @TRIA_16268
set_lvar_int_to_lvar_int 765@ = 823@
765@ += 1
if 
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 765@
goto_if_false @TRIA_16261
731@(759@,12i) = Char.GetScriptTaskStatus(914@(759@,12i), 1489)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_16254
goto @TRIA_19747

:TRIA_16254
goto @TRIA_16268

:TRIA_16261
goto @TRIA_19747

:TRIA_16268
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 819@
  is_int_lvar_greater_than_int_lvar 821@ > 927@(759@,12i)
goto_if_false @TRIA_16445
if 
  Char.LocateAnyMeans3D(914@(759@,12i), 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 8.0, 8.0, 5.0, False)
goto_if_false @TRIA_16445
if 
  2 > 927@(759@,12i)
goto_if_false @TRIA_16438
731@(759@,12i) = Char.GetScriptTaskStatus(914@(759@,12i), 2017)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_16431
goto @TRIA_19747

:TRIA_16431
goto @TRIA_16445

:TRIA_16438
goto @TRIA_19747

:TRIA_16445
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_18598
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 823@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_17258
if 
  not Car.IsDead(902@(941@,12i))
goto_if_false @TRIA_17233
if 
  not Char.IsInCar($scplayer, 902@(941@,12i))
goto_if_false @TRIA_16933
if 
  782@ == 0
goto_if_false @TRIA_16658
Checkpoint.Delete(963@)
Blip.Remove(939@)
if 
  not Car.IsDead(902@(941@,12i))
goto_if_false @TRIA_16613
939@ = Blip.AddForCar(902@(941@,12i))
Blip.SetAsFriendly(939@, True)

:TRIA_16613
set_lvar_int_to_lvar_int 799@ = 759@
866@(759@,12f) += 1000.0
set_lvar_int_to_var_int 800@ = $game_timer
800@ += 25400
782@ = 1

:TRIA_16658
set_lvar_int_to_lvar_int 764@ = 800@
sub_int_var_from_int_lvar 764@ -= $game_timer
764@ /= 1000
if 
  1 > 764@
goto_if_false @TRIA_16707
764@ = 0

:TRIA_16707
if 
  is_int_var_greater_than_int_lvar $game_timer > 800@
goto_if_false @TRIA_16751
Text.PrintNow('RACES20', 5000, 1)
goto @TRIA_22678
return 

:TRIA_16751
Text.AddNextMessageToPreviousBriefs(False)
if 
  764@ == 1
goto_if_false @TRIA_16799
Text.PrintWithNumberNow('RACE_51', 764@, 200, 1)
goto @TRIA_16818

:TRIA_16799
Text.PrintWithNumberNow('RACES50', 764@, 200, 1)

:TRIA_16818
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 828@
goto_if_false @TRIA_16926
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_16926
942@ += 1
if 
  1 >= 942@
goto_if_false @TRIA_16903
goto @TRIA_22696
goto @TRIA_16926

:TRIA_16903
Text.PrintNow('RACES_8', 5000, 1)
goto @TRIA_22678

:TRIA_16926
goto @TRIA_17226

:TRIA_16933
if 
  782@ == 1
goto_if_false @TRIA_17226
Text.ClearThisPrint('RACES50')
Blip.Remove(939@)
866@(759@,12f) -= 1000.0
760@ = 0
set_lvar_int_to_lvar_int 762@ = 118@
762@ -= 1
939@ = Blip.AddForCoord(854@(799@,12f), 866@(799@,12f), 878@(799@,12f))
Blip.ChangeColor(939@, BlipColor.Red)
Blip.ChangeDisplay(939@, BlipDisplay.BlipOnly)
Blip.ChangeScale(939@, 3)
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_17128
963@ = Checkpoint.Create(CheckpointType.TubeEnd, 854@(799@,12f), 866@(799@,12f), 878@(799@,12f), 0.0, 0.0, 0.0, 6.0)
goto @TRIA_17219

:TRIA_17128
set_lvar_int_to_lvar_int 762@ = 927@(799@,12i)
762@ += 1
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_17177
762@ = 1

:TRIA_17177
963@ = Checkpoint.Create(CheckpointType.TubeArrow, 854@(799@,12f), 866@(799@,12f), 878@(799@,12f), 960@, 961@, 962@, 6.0)

:TRIA_17219
782@ = 0

:TRIA_17226
goto @TRIA_17258

:TRIA_17233
Text.PrintNow('RACES24', 5000, 1)
goto @TRIA_22678
return 

:TRIA_17258
set_lvar_int_to_lvar_int 765@ = 826@
765@ += 1
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 826@
  is_int_lvar_greater_than_int_lvar 765@ > 927@(759@,12i)
goto_if_false @TRIA_17928
if 
  not Car.IsDead(902@(941@,12i))
goto_if_false @TRIA_17928
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @TRIA_17635
if 
  782@ == 0
goto_if_false @TRIA_17468
902@(941@,12i) = Char.StoreCarIsIn($scplayer)
Checkpoint.Delete(963@)
Blip.Remove(939@)
if 
  not Car.IsDead(902@(941@,12i))
goto_if_false @TRIA_17423
939@ = Blip.AddForCar(902@(941@,12i))
Blip.SetAsFriendly(939@, True)

:TRIA_17423
set_lvar_int_to_lvar_int 799@ = 759@
866@(759@,12f) += 1000.0
set_lvar_int_to_var_int 800@ = $game_timer
800@ += 25400
782@ = 1

:TRIA_17468
set_lvar_int_to_lvar_int 764@ = 800@
sub_int_var_from_int_lvar 764@ -= $game_timer
764@ /= 1000
if 
  1 > 764@
goto_if_false @TRIA_17517
764@ = 0

:TRIA_17517
if 
  is_int_var_greater_than_int_lvar $game_timer > 800@
goto_if_false @TRIA_17561
Text.PrintNow('RACES25', 5000, 1)
goto @TRIA_22678
return 

:TRIA_17561
Text.AddNextMessageToPreviousBriefs(False)
if 
  764@ == 1
goto_if_false @TRIA_17609
Text.PrintWithNumberNow('RACE_49', 764@, 200, 1)
goto @TRIA_17628

:TRIA_17609
Text.PrintWithNumberNow('RACES48', 764@, 200, 1)

:TRIA_17628
goto @TRIA_17928

:TRIA_17635
if 
  782@ == 1
goto_if_false @TRIA_17928
Text.ClearThisPrint('RACES48')
Blip.Remove(939@)
866@(759@,12f) -= 1000.0
760@ = 0
set_lvar_int_to_lvar_int 762@ = 118@
762@ -= 1
939@ = Blip.AddForCoord(854@(799@,12f), 866@(799@,12f), 878@(799@,12f))
Blip.ChangeColor(939@, BlipColor.Red)
Blip.ChangeDisplay(939@, BlipDisplay.BlipOnly)
Blip.ChangeScale(939@, 3)
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_17830
963@ = Checkpoint.Create(CheckpointType.TubeEnd, 854@(799@,12f), 866@(799@,12f), 878@(799@,12f), 0.0, 0.0, 0.0, 6.0)
goto @TRIA_17921

:TRIA_17830
set_lvar_int_to_lvar_int 762@ = 927@(799@,12i)
762@ += 1
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_17879
762@ = 1

:TRIA_17879
963@ = Checkpoint.Create(CheckpointType.TubeArrow, 854@(799@,12f), 866@(799@,12f), 878@(799@,12f), 960@, 961@, 962@, 6.0)

:TRIA_17921
782@ = 0

:TRIA_17928
set_lvar_int_to_lvar_int 765@ = 826@
765@ += 1
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 765@
  is_int_lvar_greater_or_equal_to_int_lvar 827@ >= 927@(759@,12i)
goto_if_false @TRIA_18598
if 
  not Car.IsDead(902@(941@,12i))
goto_if_false @TRIA_18598
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @TRIA_18305
if 
  782@ == 0
goto_if_false @TRIA_18138
902@(941@,12i) = Char.StoreCarIsIn($scplayer)
Checkpoint.Delete(963@)
Blip.Remove(939@)
if 
  not Car.IsDead(902@(941@,12i))
goto_if_false @TRIA_18093
939@ = Blip.AddForCar(902@(941@,12i))
Blip.SetAsFriendly(939@, True)

:TRIA_18093
set_lvar_int_to_lvar_int 799@ = 759@
866@(759@,12f) += 1000.0
set_lvar_int_to_var_int 800@ = $game_timer
800@ += 5000
782@ = 1

:TRIA_18138
set_lvar_int_to_lvar_int 764@ = 800@
sub_int_var_from_int_lvar 764@ -= $game_timer
764@ /= 1000
if 
  1 > 764@
goto_if_false @TRIA_18187
764@ = 0

:TRIA_18187
if 
  is_int_var_greater_than_int_lvar $game_timer > 800@
goto_if_false @TRIA_18231
Text.PrintNow('RACES25', 5000, 1)
goto @TRIA_22678
return 

:TRIA_18231
Text.AddNextMessageToPreviousBriefs(False)
if 
  764@ == 1
goto_if_false @TRIA_18279
Text.PrintWithNumberNow('RACE_49', 764@, 200, 1)
goto @TRIA_18298

:TRIA_18279
Text.PrintWithNumberNow('RACES48', 764@, 200, 1)

:TRIA_18298
goto @TRIA_18598

:TRIA_18305
if 
  782@ == 1
goto_if_false @TRIA_18598
Text.ClearThisPrint('RACES48')
Blip.Remove(939@)
866@(759@,12f) -= 1000.0
760@ = 0
set_lvar_int_to_lvar_int 762@ = 118@
762@ -= 1
939@ = Blip.AddForCoord(854@(799@,12f), 866@(799@,12f), 878@(799@,12f))
Blip.ChangeColor(939@, BlipColor.Red)
Blip.ChangeDisplay(939@, BlipDisplay.BlipOnly)
Blip.ChangeScale(939@, 3)
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_18500
963@ = Checkpoint.Create(CheckpointType.TubeEnd, 854@(799@,12f), 866@(799@,12f), 878@(799@,12f), 0.0, 0.0, 0.0, 6.0)
goto @TRIA_18591

:TRIA_18500
set_lvar_int_to_lvar_int 762@ = 927@(799@,12i)
762@ += 1
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_18549
762@ = 1

:TRIA_18549
963@ = Checkpoint.Create(CheckpointType.TubeArrow, 854@(799@,12f), 866@(799@,12f), 878@(799@,12f), 960@, 961@, 962@, 6.0)

:TRIA_18591
782@ = 0

:TRIA_18598
759@ += 1
goto @TRIA_11951

:TRIA_18612
Hud.DrawRect(40@, 52@, 64@, 76@, 0, 0, 0, 255)
Hud.DrawRect(39@, 51@, 63@, 75@, 134, 155, 184, 255)
Hud.DrawRect(34@, 46@, 58@, 70@, 0, 0, 0, 255)
942@ += 1
gosub @TRIA_19679
Text.SetScale(59@, 71@)
if 
  942@ == 1
goto_if_false @TRIA_18741
Text.Display(35@, 47@, 'ST')

:TRIA_18741
if 
  942@ == 2
goto_if_false @TRIA_18776
Text.Display(35@, 47@, 'ND')

:TRIA_18776
if 
  942@ == 3
goto_if_false @TRIA_18811
Text.Display(35@, 47@, 'RD')

:TRIA_18811
if 
  942@ > 3
goto_if_false @TRIA_18846
Text.Display(35@, 47@, 'TH')

:TRIA_18846
if 
  7 >= 942@
goto_if_false @TRIA_19115
set_lvar_float_to_lvar_float 779@ = 770@
set_lvar_float_to_lvar_float 780@ = 773@
set_lvar_float_to_lvar_float 781@ = 776@
if 
  $triathalon_selection == 2
goto_if_false @TRIA_18971
if or
  927@(759@,12i) == 19
  927@(759@,12i) == 20
  927@(759@,12i) == 37
  927@(759@,12i) == 38
goto_if_false @TRIA_18971
779@ = 20.0

:TRIA_18971
if 
  $triathalon_selection == 2
goto_if_false @TRIA_19043
if or
  927@(759@,12i) == 69
  927@(759@,12i) == 70
  927@(759@,12i) == 71
goto_if_false @TRIA_19043
779@ = 20.0

:TRIA_19043
if 
  $triathalon_selection == 2
goto_if_false @TRIA_19115
if or
  927@(759@,12i) == 89
  927@(759@,12i) == 90
  927@(759@,12i) == 91
goto_if_false @TRIA_19115
779@ = 20.0

:TRIA_19115
if and
  942@ > 7
  9 > 942@
goto_if_false @TRIA_19391
set_lvar_float_to_lvar_float 779@ = 771@
set_lvar_float_to_lvar_float 780@ = 774@
set_lvar_float_to_lvar_float 781@ = 777@
if 
  $triathalon_selection == 2
goto_if_false @TRIA_19247
if or
  927@(759@,12i) == 19
  927@(759@,12i) == 20
  927@(759@,12i) == 37
  927@(759@,12i) == 38
goto_if_false @TRIA_19247
779@ = 20.0

:TRIA_19247
if 
  $triathalon_selection == 2
goto_if_false @TRIA_19319
if or
  927@(759@,12i) == 69
  927@(759@,12i) == 70
  927@(759@,12i) == 71
goto_if_false @TRIA_19319
779@ = 20.0

:TRIA_19319
if 
  $triathalon_selection == 2
goto_if_false @TRIA_19391
if or
  927@(759@,12i) == 91
  927@(759@,12i) == 92
  927@(759@,12i) == 93
goto_if_false @TRIA_19391
779@ = 20.0

:TRIA_19391
if 
  942@ == 9
goto_if_false @TRIA_19433
set_lvar_float_to_lvar_float 779@ = 772@
set_lvar_float_to_lvar_float 780@ = 775@
set_lvar_float_to_lvar_float 781@ = 778@

:TRIA_19433
gosub @TRIA_19679
Text.SetScale(60@, 72@)
Text.SetCenter(True)
Text.DisplayWithNumber(36@, 48@, 'NUMBER', 942@)
gosub @TRIA_19679
Text.SetScale(61@, 73@)
Text.DisplayWithNumber(37@, 49@, 'OUT_OF', 118@)
$game_timer = Clock.GetGameTimer()
set_lvar_int_to_var_int 959@ = $game_timer
sub_int_lvar_from_int_lvar 959@ -= 767@
959@ /= 1000
set_lvar_int_to_lvar_int 763@ = 959@
763@ /= 60
set_lvar_int_to_lvar_int 762@ = 763@
762@ *= 60
set_lvar_int_to_lvar_int 764@ = 959@
sub_int_lvar_from_int_lvar 764@ -= 762@
gosub @TRIA_19679
Text.SetCenter(True)
Text.SetScale(62@, 74@)
if 
  764@ > 9
goto_if_false @TRIA_19649
Text.DisplayWith2Numbers(38@, 50@, 'TIME', 763@, 764@)
goto @TRIA_19672

:TRIA_19649
Text.DisplayWith2Numbers(38@, 50@, 'TIME_0', 763@, 764@)

:TRIA_19672
goto @TRIA_8995

:TRIA_19679
Text.SetColor(180, 180, 180, 255)
Text.SetScale(0.6146, 2.4961)
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(False)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
Text.SetDropshadow(2, 0, 0, 0, 180)
return 

:TRIA_19747
if 
  940@ == 7
goto_if_false @TRIA_19772
940@ = 8

:TRIA_19772
927@(759@,12i) += 1
set_lvar_int_to_lvar_int 762@ = 927@(759@,12i)
set_lvar_float_to_lvar_float 854@(759@,12f) = 143@(762@,120f)
set_lvar_float_to_lvar_float 866@(759@,12f) = 263@(762@,120f)
set_lvar_float_to_lvar_float 878@(759@,12f) = 383@(762@,120f)
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_21813
if 
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 828@
goto_if_false @TRIA_19951
942@ += 1
if 
  1 >= 942@
goto_if_false @TRIA_19928
goto @TRIA_22696
goto @TRIA_19951

:TRIA_19928
Text.PrintNow('RACES_8', 5000, 1)
goto @TRIA_22678

:TRIA_19951
if 
  817@ == 0
goto_if_false @TRIA_20010
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 820@
goto_if_false @TRIA_20010
Text.PrintHelp('TRAI2')
817@ = 1

:TRIA_20010
if 
  817@ == 1
goto_if_false @TRIA_20069
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 822@
goto_if_false @TRIA_20069
Text.PrintHelp('TRAI3')
817@ = 2

:TRIA_20069
if 
  817@ == 2
goto_if_false @TRIA_20128
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 826@
goto_if_false @TRIA_20128
Text.PrintHelp('TRAI4')
817@ = 3

:TRIA_20128
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(939@)
762@ += 1
set_lvar_float_to_lvar_float 960@ = 143@(762@,120f)
set_lvar_float_to_lvar_float 961@ = 263@(762@,120f)
set_lvar_float_to_lvar_float 962@ = 383@(762@,120f)
939@ = Blip.AddForCoord(854@(759@,12f), 866@(759@,12f), 878@(759@,12f))
Blip.ChangeColor(939@, BlipColor.Red)
Blip.ChangeDisplay(939@, BlipDisplay.BlipOnly)
Blip.ChangeScale(939@, 3)
if 
  940@ == 1
goto_if_false @TRIA_20303
963@ = Checkpoint.Create(CheckpointType.TubeArrow, 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 960@, 961@, 962@, 6.0)

:TRIA_20303
Checkpoint.Delete(963@)
if 
  is_int_lvar_greater_than_int_lvar 853@ > 927@(759@,12i)
goto_if_false @TRIA_20380
963@ = Checkpoint.Create(CheckpointType.TubeArrow, 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 960@, 961@, 962@, 6.0)
goto @TRIA_20422

:TRIA_20380
963@ = Checkpoint.Create(CheckpointType.TubeEnd, 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 960@, 961@, 962@, 6.0)

:TRIA_20422
if 
  927@(759@,12i) == 3
goto_if_false @TRIA_20504
Char.Delete(954@)
Char.Delete(943@)
Char.Delete(944@)
Char.Delete(945@)
Char.Delete(946@)
Char.Delete(947@)
Char.Delete(948@)
Char.Delete(949@)
Char.Delete(950@)
Char.Delete(951@)
Char.Delete(952@)
Char.Delete(953@)

:TRIA_20504
set_lvar_int_to_lvar_int 762@ = 824@
762@ -= 3
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 762@
goto_if_false @TRIA_21419
768@ = Car.Create(841@, 143@(825@,120f), 263@(825@,120f), 383@(825@,120f))
set_lvar_int_to_lvar_int 762@ = 824@
762@ -= 1
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, -4.0435, 6.5755, 0.8)
954@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(954@, 143@(762@,120f), 263@(824@,120f), 383@(824@,120f))
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, -5.6392, 2.9435, 0.8)
943@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(943@, 143@(762@,120f), 263@(824@,120f), 383@(824@,120f))
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, -6.0071, -2.0778, 0.8)
944@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(944@, 143@(762@,120f), 263@(762@,120f), 383@(762@,120f))
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, -7.6039, -5.0807, 0.8)
945@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(945@, 143@(762@,120f), 263@(762@,120f), 383@(762@,120f))
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, -7.0724, -6.4057, 0.8)
946@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(946@, 143@(762@,120f), 263@(762@,120f), 383@(762@,120f))
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, -5.9988, -13.553, 0.8)
947@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(947@, 143@(762@,120f), 263@(762@,120f), 383@(762@,120f))
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, 6.073, -15.2059, 0.8)
948@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(948@, 143@(762@,120f), 263@(762@,120f), 383@(762@,120f))
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, 7.2639, -12.9933, 0.8)
949@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(949@, 143@(762@,120f), 263@(762@,120f), 383@(762@,120f))
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, 5.8429, -7.7069, 0.8)
950@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(950@, 143@(762@,120f), 263@(762@,120f), 383@(762@,120f))
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, 8.4135, -3.7971, 0.8)
951@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(951@, 143@(762@,120f), 263@(762@,120f), 383@(762@,120f))
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, 6.2507, 0.3634, 0.8)
952@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(952@, 143@(762@,120f), 263@(762@,120f), 383@(762@,120f))
$x, $y, $z = Car.GetOffsetInWorldCoords(768@, 8.6397, 2.419, 0.8)
953@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(953@, 143@(762@,120f), 263@(762@,120f), 383@(762@,120f))
Car.Delete(768@)

:TRIA_21419
set_lvar_int_to_lvar_int 765@ = 824@
765@ += 2
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 765@
goto_if_false @TRIA_21517
Char.MarkAsNoLongerNeeded(954@)
Char.MarkAsNoLongerNeeded(943@)
Char.MarkAsNoLongerNeeded(944@)
Char.MarkAsNoLongerNeeded(945@)
Char.MarkAsNoLongerNeeded(946@)
Char.MarkAsNoLongerNeeded(947@)
Char.MarkAsNoLongerNeeded(948@)
Char.MarkAsNoLongerNeeded(949@)
Char.MarkAsNoLongerNeeded(950@)
Char.MarkAsNoLongerNeeded(951@)
Char.MarkAsNoLongerNeeded(952@)
Char.MarkAsNoLongerNeeded(953@)

:TRIA_21517
if 
  927@(759@,12i) == 21
goto_if_false @TRIA_21570
if 
  not Car.IsDead(902@(941@,12i))
goto_if_false @TRIA_21570
Car.SetWatertight(902@(941@,12i), True)

:TRIA_21570
if 
  927@(759@,12i) == 22
goto_if_false @TRIA_21623
if 
  not Car.IsDead(902@(941@,12i))
goto_if_false @TRIA_21623
Car.SetWatertight(902@(941@,12i), False)

:TRIA_21623
set_lvar_int_to_lvar_int 765@ = 826@
765@ += 2
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 765@
goto_if_false @TRIA_21721
Char.MarkAsNoLongerNeeded(954@)
Char.MarkAsNoLongerNeeded(943@)
Char.MarkAsNoLongerNeeded(944@)
Char.MarkAsNoLongerNeeded(945@)
Char.MarkAsNoLongerNeeded(946@)
Char.MarkAsNoLongerNeeded(947@)
Char.MarkAsNoLongerNeeded(948@)
Char.MarkAsNoLongerNeeded(949@)
Char.MarkAsNoLongerNeeded(950@)
Char.MarkAsNoLongerNeeded(951@)
Char.MarkAsNoLongerNeeded(952@)
Char.MarkAsNoLongerNeeded(953@)

:TRIA_21721
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 826@
goto_if_false @TRIA_21806
if 
  not Car.IsDead(902@(941@,12i))
goto_if_false @TRIA_21806
if 
  Char.IsInCar($scplayer, 902@(941@,12i))
goto_if_false @TRIA_21806
Task.CarTempAction($scplayer, 902@(941@,12i), TempAction.HandbrakeStraight, 2000000)

:TRIA_21806
goto @TRIA_22671

:TRIA_21813
if 
  not is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 828@
goto_if_false @TRIA_22671
Char.ClearTasks(914@(759@,12i))
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 820@
goto_if_false @TRIA_22071
Task.GoStraightToCoord(914@(759@,12i), 854@(759@,12f), 866@(759@,12f), 878@, MoveState.Sprint, -2)
if 
  Char.IsPlayingAnim(914@(759@,12i), "SPRINT_PANIC")
goto_if_false @TRIA_21958
Char.SetAnimSpeed(914@(759@,12i), "SPRINT_PANIC", 781@)

:TRIA_21958
if 
  Char.IsPlayingAnim(914@(759@,12i), "RUN_CIVI")
goto_if_false @TRIA_22010
Char.SetAnimSpeed(914@(759@,12i), "RUN_CIVI", 781@)

:TRIA_22010
if 
  Char.IsPlayingAnim(914@(759@,12i), "WALK_CIVI")
goto_if_false @TRIA_22064
Char.SetAnimSpeed(914@(759@,12i), "WALK_CIVI", 781@)

:TRIA_22064
goto @TRIA_16445

:TRIA_22071
if and
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 820@
  is_int_lvar_greater_or_equal_to_int_lvar 821@ >= 927@(759@,12i)
goto_if_false @TRIA_22407
if 
  Char.IsInWater(914@(759@,12i))
goto_if_false @TRIA_22348
set_lvar_float_to_lvar_float 785@ = 854@(759@,12f)
add_float_lvar_to_float_lvar 785@ += 695@(759@,12f)
set_lvar_float_to_lvar_float 786@ = 866@(759@,12f)
add_float_lvar_to_float_lvar 786@ += 707@(759@,12f)
Task.SwimToCoord(914@(759@,12i), 785@, 786@, 878@(759@,12f))
Char.SetSwimSpeed(914@(759@,12i), 780@)
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 821@
goto_if_false @TRIA_22341
if 
  804@(759@,12i) == 0
goto_if_false @TRIA_22341
if 
  not Car.IsDead(902@(759@,12i))
goto_if_false @TRIA_22341
803@ = Sequence.Open()
Task.GoStraightToCoord(-1, 792@, 793@, 794@, MoveState.Sprint, -2)
Task.EnterCarAsDriver(-1, 902@(759@,12i), -2)
Sequence.Close(803@)
Char.PerformSequence(914@(759@,12i), 803@)
Sequence.Clear(803@)
804@(759@,12i) = 1

:TRIA_22341
goto @TRIA_22400

:TRIA_22348
if 
  927@(759@,12i) == 2
goto_if_false @TRIA_22400
Task.GoStraightToCoord(914@(759@,12i), 854@(759@,12f), 866@(759@,12f), 878@, MoveState.Sprint, -2)

:TRIA_22400
goto @TRIA_16445

:TRIA_22407
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 823@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_22512
if 
  804@(759@,12i) > 0
goto_if_false @TRIA_22505
Task.CarDriveToCoord(914@(759@,12i), -1, 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 779@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)

:TRIA_22505
goto @TRIA_16445

:TRIA_22512
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 826@
  is_int_lvar_greater_or_equal_to_int_lvar 827@ >= 927@(759@,12i)
goto_if_false @TRIA_22671
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 826@
goto_if_false @TRIA_22611
Task.GoStraightToCoord(914@(759@,12i), 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), MoveState.Sprint, -2)
goto @TRIA_22664

:TRIA_22611
Char.SetFollowNodeThresholdDistance(914@(759@,12i), 20.0)
Task.FollowPathNodesToCoordWithRadius(914@(759@,12i), 854@(759@,12f), 866@(759@,12f), 878@(759@,12f), 7, -2, 8.0)

:TRIA_22664
goto @TRIA_16445

:TRIA_22671
goto @TRIA_16445

:TRIA_22678
Text.PrintBig('RACEFA', 5000, TextStyle.Middle)
return 

:TRIA_22696
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(2)
Text.PrintBig('RACES18', 5000, TextStyle.Middle)
if 
  $triathalon_selection == 1
goto_if_false @TRIA_22766
Text.PrintWithNumber('TRAI1', 10000, 5000, 2)
Player.AddScore($player1, 10000)

:TRIA_22766
if 
  $triathalon_selection == 2
goto_if_false @TRIA_22811
Text.PrintWithNumber('TRAI1', 20000, 5000, 2)
Player.AddScore($player1, 20000)

:TRIA_22811
955@ /= 1000
set_lvar_int_to_lvar_int 763@ = 955@
763@ /= 60
set_lvar_int_to_lvar_int 762@ = 763@
762@ *= 60
set_lvar_int_to_lvar_int 764@ = 955@
sub_int_lvar_from_int_lvar 764@ -= 762@
if 
  $flag_triathalon_passed_1stime == 0
goto_if_false @TRIA_22917
if 
  $triathalon_selection == 2
goto_if_false @TRIA_22908
Stat.SetInt(StatId.Stamina, 1000)

:TRIA_22908
Stat.RegisterOddjobMissionPassed
$flag_triathalon_passed_1stime = 1

:TRIA_22917
return 

:TRIA_22919
$onmission = 0
Streaming.MarkModelAsNoLongerNeeded(829@)
Streaming.MarkModelAsNoLongerNeeded(830@)
Streaming.MarkModelAsNoLongerNeeded(831@)
Streaming.MarkModelAsNoLongerNeeded(832@)
Streaming.MarkModelAsNoLongerNeeded(833@)
Streaming.MarkModelAsNoLongerNeeded(834@)
Streaming.MarkModelAsNoLongerNeeded(835@)
Streaming.MarkModelAsNoLongerNeeded(836@)
Streaming.MarkModelAsNoLongerNeeded(837@)
Streaming.MarkModelAsNoLongerNeeded(838@)
Streaming.MarkModelAsNoLongerNeeded(839@)
Streaming.MarkModelAsNoLongerNeeded(840@)
Streaming.MarkModelAsNoLongerNeeded(154)
Streaming.MarkModelAsNoLongerNeeded(18)
Streaming.MarkModelAsNoLongerNeeded(45)
Streaming.MarkModelAsNoLongerNeeded(167)
Streaming.MarkModelAsNoLongerNeeded(510)
Char.MarkAsNoLongerNeeded(954@)
Char.MarkAsNoLongerNeeded(943@)
Char.MarkAsNoLongerNeeded(944@)
Char.MarkAsNoLongerNeeded(945@)
Char.MarkAsNoLongerNeeded(946@)
Char.MarkAsNoLongerNeeded(947@)
Char.MarkAsNoLongerNeeded(948@)
Char.MarkAsNoLongerNeeded(949@)
Char.MarkAsNoLongerNeeded(950@)
Char.MarkAsNoLongerNeeded(951@)
Char.MarkAsNoLongerNeeded(952@)
Char.MarkAsNoLongerNeeded(953@)
Hud.DisplayCarNames(True)
Blip.Remove(939@)
$timer_mobile_start = Clock.GetGameTimer()
World.DisableAllEntryExits(False)
World.SetCarDensityMultiplier(1.0)
World.SetPedDensityMultiplier(1.0)
Text.SetMessageFormatting(False, 380, 464)
Text.UseCommands(False)
Mission.Finish
return 

//-------------Mission 131---------------
// Originally: Courier

:BCOUR
script_name 'BCOUR'
gosub @BCOUR_47
if 
  has_deatharrest_been_executed 
goto_if_false @BCOUR_38
gosub @BCOUR_14327

:BCOUR_38
gosub @BCOUR_16287
terminate_this_script 

:BCOUR_47
if 
  not Char.IsDead($scplayer)
goto_if_false @BCOUR_71
872@ = Player.GetCityIsIn($player1)

:BCOUR_71
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_109
if 
  $courierLA_passed_once == 0
goto_if_false @BCOUR_109
Stat.RegisterMissionGiven

:BCOUR_109
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_147
if 
  $courierLV_passed_once == 0
goto_if_false @BCOUR_147
Stat.RegisterMissionGiven

:BCOUR_147
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_185
if 
  $courierSF_passed_once == 0
goto_if_false @BCOUR_185
Stat.RegisterMissionGiven

:BCOUR_185
$onmission = 1
wait 0
wait 0
Text.LoadMissionText('BCOU')
Camera.SetFadingColor(0, 0, 0)
37@ = Object.Create(#KMB_PACKET, -2492.508, 0.5813, 24.7593)
if 
  746@ == -13
goto_if_false @BCOUR_284
38@ = Char.Create(PedType.Mission1, 29, -2455.662, -105.3974, 26.5568)

:BCOUR_284
Streaming.RequestModel(586)
Streaming.RequestModel(29)
Streaming.RequestAnimation("SMOKING")
Streaming.LoadAllModelsNow

:BCOUR_306
if or
  not Streaming.HasModelLoaded(586)
  not Streaming.HasModelLoaded(29)
  not Streaming.HasAnimationLoaded("SMOKING")
goto_if_false @BCOUR_348
wait 0
goto @BCOUR_306

:BCOUR_348
if 
  not Char.IsDead($scplayer)
goto_if_false @BCOUR_371
Player.SetControl($player1, True)

:BCOUR_371
875@ = 0
882@ = 0
879@ = 0
880@ = 0
866@ = 0
867@ = 0
34@ = 0
869@ = 0
870@ = 0
871@ = 0
744@ = 0
745@ = 0
743@ = 0
746@ = 0
747@ = 0
748@ = 0
749@ = 0
868@ = 0
760@ = 0
761@ = 0
762@ = 0
383@ = -2594.816
413@ = 52.5992
443@ = 3.3359
103@ = -2797.952
133@ = 209.7299
163@ = 6.1963
104@ = -2492.771
134@ = -196.6625
164@ = 24.6236
105@ = -2611.989
135@ = -110.7328
165@ = 3.331
106@ = -2176.392
136@ = -41.7131
166@ = 34.3125
107@ = -2243.896
137@ = 603.6998
167@ = 40.1216
108@ = -1569.994
138@ = 662.3286
168@ = 6.1874
109@ = -2756.371
139@ = 379.1574
169@ = 3.3281
110@ = -2609.902
140@ = 131.9432
170@ = 3.326
111@ = -2743.858
141@ = 761.4077
171@ = 53.3828
112@ = -2600.543
142@ = 980.7458
172@ = 77.2676
113@ = -2153.959
143@ = 716.1611
173@ = 68.5511
114@ = -2153.604
144@ = 251.9152
174@ = 34.3125
115@ = -2808.285
145@ = -340.2412
175@ = 6.1797
116@ = -2428.846
146@ = -164.1249
176@ = 34.3125
117@ = -1984.213
147@ = 128.7572
177@ = 26.6797
118@ = -1888.46
148@ = 819.6346
178@ = 34.1797
119@ = -1503.329
149@ = 919.9264
179@ = 6.1776
120@ = -2533.885
150@ = 987.9146
180@ = 77.3017
473@ = 1346.019
503@ = -1741.781
533@ = 12.397
193@ = 1286.769
223@ = -1676.166
253@ = 12.5625
194@ = 1544.063
224@ = -1675.754
254@ = 12.56
195@ = 1320.097
225@ = -1795.099
255@ = 12.5391
196@ = 1614.261
226@ = -1885.756
256@ = 12.5536
197@ = 2009.173
227@ = -1716.913
257@ = 12.5469
198@ = 1256.513
228@ = -1010.974
258@ = 32.9002
199@ = 1016.673
229@ = -1508.782
259@ = 12.541
200@ = 1286.769
230@ = -1676.166
260@ = 12.5625
201@ = 1544.063
231@ = -1675.754
261@ = 12.56
202@ = 1320.097
232@ = -1795.099
262@ = 12.5391
203@ = 1614.261
233@ = -1885.756
263@ = 12.5536
204@ = 2009.173
234@ = -1716.913
264@ = 12.5469
205@ = 2865.389
235@ = -1438.957
265@ = 9.9659
206@ = 2740.561
236@ = -2103.442
266@ = 11.1221
207@ = 1346.455
237@ = -989.3849
267@ = 28.0294
208@ = 150.4926
238@ = -1945.385
268@ = 2.7657
209@ = 378.0941
239@ = -2053.585
269@ = 7.0156
210@ = 804.5734
240@ = -1020.714
270@ = 25.6819
563@ = 1904.681
593@ = 2096.17
623@ = 9.8203
283@ = 1698.404
313@ = 2054.898
343@ = 9.8203
284@ = 2159.833
314@ = 2066.728
344@ = 9.8125
285@ = 1935.701
315@ = 2158.464
345@ = 9.8203
286@ = 1654.331
316@ = 1803.812
346@ = 9.8125
287@ = 2083.325
317@ = 1503.754
347@ = 9.8125
288@ = 1720.11
318@ = 1298.548
348@ = 9.8203
289@ = 2233.837
319@ = 1282.195
349@ = 9.8203
290@ = 1698.404
320@ = 2063.969
350@ = 9.8203
291@ = 2159.833
321@ = 2066.728
351@ = 9.8125
292@ = 1935.701
322@ = 2158.464
352@ = 9.8203
293@ = 1654.331
323@ = 1803.812
353@ = 9.8125
294@ = 2083.325
324@ = 1503.754
354@ = 9.8125
295@ = 1917.762
325@ = 2768.874
355@ = 9.8203
296@ = 2344.569
326@ = 2779.965
356@ = 9.8203
297@ = 973.123
327@ = 1782.238
357@ = 7.6562
298@ = 2346.52
328@ = 2296.973
358@ = 7.1478
299@ = 1488.175
329@ = 2148.474
359@ = 9.8203
300@ = 1104.697
330@ = 1648.064
360@ = 4.8273
653@ = 0
654@ = 0
655@ = 0
656@ = 0
657@ = 0
658@ = 0
659@ = 0
660@ = 0
661@ = 0
662@ = 0
663@ = 0
664@ = 0
665@ = 0
666@ = 0
667@ = 0
668@ = 0
669@ = 0
670@ = 0
671@ = 0
672@ = 0
673@ = 0
674@ = 0
675@ = 0
676@ = 0
677@ = 0
678@ = 0
679@ = 0
680@ = 0
681@ = 0
753@ = 99
Player.SetCanDoDriveBy($player1, False)
if 
  not Player.IsPlaying($player1)
goto_if_false @BCOUR_2468
goto @BCOUR_14327

:BCOUR_2468
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BCOUR_2492
36@ = Char.StoreCarIsIn($scplayer)

:BCOUR_2492
753@ = 99
754@ = 0
755@ = 0
758@ = 0
756@ = 0
757@ = 0
857@ = 0
862@ = 0
881@ = 0

:BCOUR_2555
wait 0
if 
  882@ == 0
goto_if_false @BCOUR_2591
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 23000)
882@ = 1

:BCOUR_2591
if 
  882@ == 1
goto_if_false @BCOUR_2631
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @BCOUR_2631
882@ = 2

:BCOUR_2631
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @BCOUR_2656
$bcou_bikeostimer += 60000

:BCOUR_2656
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @BCOUR_2681
$bcou_bikeostimer -= 45000

:BCOUR_2681
if 
is_ps2_keyboard_key_pressed 19
goto_if_false @BCOUR_2703
Player.AlterWantedLevel($player1, 2)

:BCOUR_2703
if 
is_ps2_keyboard_key_pressed 18
goto_if_false @BCOUR_2725
Player.AlterWantedLevel($player1, 0)

:BCOUR_2725
if 
is_ps2_keyboard_key_pressed 27
goto_if_false @BCOUR_2765
if 
  881@ == 0
goto_if_false @BCOUR_2765
881@ = 1

:BCOUR_2765
if 
is_ps2_keyboard_key_pressed 29
goto_if_false @BCOUR_2787
881@ = 0

:BCOUR_2787
if 
  862@ == 1
goto_if_false @BCOUR_2838
Hud.ClearTimer($bcou_bikeostimer)
Hud.ClearCounter($bcou_timelimit)
Text.PrintNow('BCOU_11', 6000, 1)
goto @BCOUR_14327

:BCOUR_2838
if 
  not Player.IsPlaying($player1)
goto_if_false @BCOUR_2861
goto @BCOUR_14327

:BCOUR_2861
if 
  Car.IsDead(36@)
goto_if_false @BCOUR_2884
goto @BCOUR_14327

:BCOUR_2884
if 
  not Car.IsDead(36@)
goto_if_false @BCOUR_2959
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_2959
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @BCOUR_2959
Text.PrintNow('BCOU_35', 6000, 1)
goto @BCOUR_14327

:BCOUR_2959
if 
  743@ == 10
goto_if_false @BCOUR_2984
goto @BCOUR_15206

:BCOUR_2984
if 
  743@ == -99
goto_if_false @BCOUR_3074
763@(793@,30i) = Object.CreateNoOffset(#KMB_PACKET, 0.0, 0.0, 100.0)
827@(793@,30i) = Particle.CreateOnObject("COKE_TRAIL", 763@(793@,30i), 0.0, 0.0, 0.0, 1)

:BCOUR_3074
if 
  749@ == 1
goto_if_false @BCOUR_3116
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BCOUR_3116
748@ = 50

:BCOUR_3116
if 
  868@ == 1
goto_if_false @BCOUR_3172
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BCOUR_3172
866@ = 2
Player.SetControl($player1, True)
868@ = 0

:BCOUR_3172
if 
  753@ == 0
goto_if_false @BCOUR_3289
if 
  not Car.IsDead(36@)
goto_if_false @BCOUR_3289
if 
  not Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_3289
TIMERB = 0
754@ = 1
set_lvar_int_to_var_int 752@ = $bcou_bikeostimer
752@ /= 1000
753@ = 1
Text.ClearPrints
Text.AddNextMessageToPreviousBriefs(False)
Text.PrintWithNumberNow('BCOU_37', $score_kickstart, 4000, 1)
Text.ClearHelp

:BCOUR_3289
if 
  753@ == 1
goto_if_false @BCOUR_3442
if 
  not Car.IsDead(36@)
goto_if_false @BCOUR_3442
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_3442
TIMERB = 0
753@ = 0
754@ = 0
875@ = 0
Text.ClearPrints
Text.ClearHelp
if 
  746@ > 9
goto_if_false @BCOUR_3408
Text.PrintNow('BCOU_6', 4000, 1)

:BCOUR_3408
if 
  10 > 746@
goto_if_false @BCOUR_3442
Text.PrintNow('BCOU_3', 4000, 1)

:BCOUR_3442
if 
  754@ == 1
goto_if_false @BCOUR_3725
set_lvar_int_to_lvar_int 751@ = TIMERB
751@ /= 1000
if 
  875@ == 0
goto_if_false @BCOUR_3527
if and
  21000 > $bcou_bikeostimer
  $bcou_bikeostimer > 1
goto_if_false @BCOUR_3527
875@ = 1

:BCOUR_3527
if 
  875@ == 0
goto_if_false @BCOUR_3571
if 
  $bcou_bikeostimer > 20099
goto_if_false @BCOUR_3571
875@ = 2

:BCOUR_3571
if 
  875@ == 1
goto_if_false @BCOUR_3605
set_var_int_to_var_int $score_kickstart = $bcou_bikeostimer
$score_kickstart /= 1000

:BCOUR_3605
if 
  875@ == 2
goto_if_false @BCOUR_3638
$score_kickstart = 20
sub_int_lvar_from_int_var $score_kickstart -= 751@

:BCOUR_3638
Text.ClearPrints
if 
  $score_kickstart > 0
goto_if_false @BCOUR_3681
Text.AddNextMessageToPreviousBriefs(False)
Text.PrintWithNumberNow('BCOU_37', $score_kickstart, 4000, 1)

:BCOUR_3681
if 
  TIMERB > 21000
goto_if_false @BCOUR_3725
Text.ClearPrints
Text.PrintNow('BCOU_35', 6000, 1)
goto @BCOUR_14327

:BCOUR_3725
if 
  746@ == -1
goto_if_false @BCOUR_4823
if 
  748@ == 0
goto_if_false @BCOUR_4010
39@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
Char.Delete(38@)
World.ClearArea(-2455.662, -105.3974, 26.5568, 10.0, True)
38@ = Char.Create(PedType.Mission1, 29, -2455.662, -105.3974, 26.5568)
Char.SetHeading(38@, 176.0958)
Char.SetDecisionMaker(38@, 39@)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Camera.SetFixedPosition(-2468.393, -96.8149, 26.1614, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2467.693, -97.5246, 26.0805, SwitchType.JumpCut)
if 
  not Char.IsDead(38@)
goto_if_false @BCOUR_3989
Path.FlushRoute
Path.ExtendRoute(-2457.04, -110.2905, 25.0058)
Path.ExtendRoute(-2460.845, -108.7783, 24.9517)
Path.ExtendRoute(-2462.371, -106.9304, 24.9069)
Task.FollowPointRoute(38@, 6, RouteMode.Once)
Char.SetFollowNodeThresholdDistance(38@, 150.0)

:BCOUR_3989
748@ = 10
749@ = 1
TIMERB = 0

:BCOUR_4010
if 
  748@ == 10
goto_if_false @BCOUR_4093
if 
  TIMERB > 4000
goto_if_false @BCOUR_4093
if 
  not Char.IsDead(38@)
goto_if_false @BCOUR_4093
Text.PrintNow('BCOU_2', 4000, 1)
748@ = 15
TIMERB = 0

:BCOUR_4093
if 
  748@ == 15
goto_if_false @BCOUR_4160
if 
  TIMERB > 1000
goto_if_false @BCOUR_4160
if 
  not Char.IsDead(38@)
goto_if_false @BCOUR_4160
748@ = 20
TIMERB = 0

:BCOUR_4160
if 
  748@ == 20
goto_if_false @BCOUR_4211
if 
  TIMERB > 1000
goto_if_false @BCOUR_4211
TIMERB = 0
748@ = 25

:BCOUR_4211
if 
  748@ == 25
goto_if_false @BCOUR_4283
if 
  TIMERB > 200
goto_if_false @BCOUR_4283
if 
  not Char.IsDead(38@)
goto_if_false @BCOUR_4283
Char.ClearTasks(38@)
TIMERB = 0
748@ = 40

:BCOUR_4283
if 
  748@ == 40
goto_if_false @BCOUR_4433
if 
  TIMERB > 1000
goto_if_false @BCOUR_4336
Text.PrintNow('BCOU_3', 4000, 1)

:BCOUR_4336
if 
  TIMERB > 4000
goto_if_false @BCOUR_4433
if 
  not Char.IsDead(38@)
goto_if_false @BCOUR_4401
Char.ClearTasks(38@)
Task.GoStraightToCoord(38@, -2457.086, -126.3415, 25.013, MoveState.Run, 5000)

:BCOUR_4401
TIMERB = 0
Text.ClearPrints
Text.PrintNow('BCOU_1', 4000, 1)
748@ = 45

:BCOUR_4433
if 
  748@ == 45
goto_if_false @BCOUR_4477
if 
  TIMERB > 4000
goto_if_false @BCOUR_4477
748@ = 50

:BCOUR_4477
if 
  748@ == 50
goto_if_false @BCOUR_4713
Text.ClearPrints
749@ = 0
if 
  not Char.IsDead(38@)
goto_if_false @BCOUR_4560
Char.ClearTasks(38@)
Char.SetCoordinates(38@, -2457.086, -126.3415, 25.013)
Char.SetHeading(38@, 180.0)
Object.Delete(37@)

:BCOUR_4560
Hud.SwitchWidescreen(False)
Object.Delete(37@)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
748@ = 60
TIMERB = 0
746@ = 1
if 
  not Car.IsDead(36@)
goto_if_false @BCOUR_4622
Car.ForceLights(36@, CarLights.NoOverride)

:BCOUR_4622
if 
  not Char.IsDead(38@)
goto_if_false @BCOUR_4669
Char.ClearTasks(38@)
Task.AchieveHeading(38@, 100.0)
Text.PrintNow('BCOU_4', 6000, 1)

:BCOUR_4669
753@ = 0
37@ = Object.Create(#KMB_PACKET, -2458.249, -98.5704, 28.1875)
Object.SetCollision(37@, True)
Object.SetDynamic(37@, True)

:BCOUR_4713
if 
  748@ == 60
goto_if_false @BCOUR_4823
if 
  TIMERB > 2000
goto_if_false @BCOUR_4823
if 
  not Char.IsDead(38@)
goto_if_false @BCOUR_4823
Char.ClearTasks(38@)
Task.PlayAnim(38@, "M_SMKSTND_LOOP", "SMOKING", 4.0, True, False, False, False, -1)
748@ = 99

:BCOUR_4823
if 
  746@ == 0
goto_if_false @BCOUR_5065
872@ = Player.GetCityIsIn($player1)
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_4904
37@ = Object.Create(#KMB_PACKET, 1361.558, -1764.276, 18.0781)
Object.SetCollision(37@, True)
Object.SetDynamic(37@, True)

:BCOUR_4904
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_4966
37@ = Object.Create(#KMB_PACKET, -2584.613, 60.3094, 3.9701)
Object.SetCollision(37@, True)
Object.SetDynamic(37@, True)
CarGenerator.Switch($tank_gen1, 0)

:BCOUR_4966
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_5021
37@ = Object.Create(#KMB_PACKET, 1884.329, 2078.721, 15.0869)
Object.SetCollision(37@, True)
Object.SetDynamic(37@, True)

:BCOUR_5021
Text.PrintNow('BCOU_4', 6000, 1)
TIMERA = 0
34@ = 1
753@ = 0
746@ = 1

:BCOUR_5065
if 
  34@ == 1
goto_if_false @BCOUR_5120
if 
  TIMERA > 7000
goto_if_false @BCOUR_5120
34@ = 0
Text.PrintHelp('BCOU_84')

:BCOUR_5120
if 
  746@ == 1
goto_if_false @BCOUR_5824
755@ = 4
758@ = 3
756@ = 3
744@ = 0
759@ = 0
$bcou_timelimit = 6
861@ = 0
867@ = 0

:BCOUR_5194
if 
  7 > 861@
goto_if_false @BCOUR_5237
797@(861@,30i) = 0
861@ += 1
goto @BCOUR_5194

:BCOUR_5237
if 
  not Car.IsDead(36@)
goto_if_false @BCOUR_5824
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_5824
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_5435

:BCOUR_5290
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_5435
42@(744@,30i) = Blip.AddForCoord(103@(744@,30f), 133@(744@,30f), 163@(744@,30f))
set_lvar_float_to_lvar_float 713@(744@,30f) = 163@(744@,30f)
713@(744@,30f) += 2.2
683@(744@,30i) = Checkpoint.Create(CheckpointType.TorusNoFade, 103@(744@,30f), 133@(744@,30f), 713@(744@,30f), 0.0, 0.0, 0.0, 1.8)
744@ += 1
goto @BCOUR_5290

:BCOUR_5435
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_5598

:BCOUR_5453
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_5598
42@(744@,30i) = Blip.AddForCoord(193@(744@,30f), 223@(744@,30f), 253@(744@,30f))
set_lvar_float_to_lvar_float 713@(744@,30f) = 253@(744@,30f)
713@(744@,30f) += 2.2
683@(744@,30i) = Checkpoint.Create(CheckpointType.TorusNoFade, 193@(744@,30f), 223@(744@,30f), 713@(744@,30f), -2000.0, -2000.0, 0.0, 1.8)
744@ += 1
goto @BCOUR_5453

:BCOUR_5598
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_5761

:BCOUR_5616
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_5761
42@(744@,30i) = Blip.AddForCoord(283@(744@,30f), 313@(744@,30f), 343@(744@,30f))
set_lvar_float_to_lvar_float 713@(744@,30f) = 343@(744@,30f)
713@(744@,30f) += 2.2
683@(744@,30i) = Checkpoint.Create(CheckpointType.TorusNoFade, 283@(744@,30f), 313@(744@,30f), 713@(744@,30f), -2000.0, 2000.0, 0.0, 1.8)
744@ += 1
goto @BCOUR_5616

:BCOUR_5761
747@ = 0
746@ = 9
757@ = 0
$bcou_bikeostimer = 180000
Hud.DisplayCounterWithString($bcou_timelimit, CounterDisplay.Number, 'BCOU_83')
//Hud.DisplayTimerWithString($bcou_bikeostimer, TimerDirection.Down, 'BCOU_34')

:BCOUR_5824
if 
  746@ == 2
goto_if_false @BCOUR_6528
755@ = 8
758@ = 7
756@ = 4
744@ = 3
759@ = 3
$bcou_timelimit = 6
861@ = 0
867@ = 0

:BCOUR_5898
if 
  7 > 861@
goto_if_false @BCOUR_5941
797@(861@,30i) = 0
861@ += 1
goto @BCOUR_5898

:BCOUR_5941
if 
  not Car.IsDead(36@)
goto_if_false @BCOUR_6528
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_6528
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_6139

:BCOUR_5994
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_6139
42@(744@,30i) = Blip.AddForCoord(103@(744@,30f), 133@(744@,30f), 163@(744@,30f))
set_lvar_float_to_lvar_float 713@(744@,30f) = 163@(744@,30f)
713@(744@,30f) += 2.2
683@(744@,30i) = Checkpoint.Create(CheckpointType.TorusNoFade, 103@(744@,30f), 133@(744@,30f), 713@(744@,30f), 0.0, 0.0, 0.0, 1.8)
744@ += 1
goto @BCOUR_5994

:BCOUR_6139
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_6302

:BCOUR_6157
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_6302
42@(744@,30i) = Blip.AddForCoord(193@(744@,30f), 223@(744@,30f), 253@(744@,30f))
set_lvar_float_to_lvar_float 713@(744@,30f) = 253@(744@,30f)
713@(744@,30f) += 2.2
683@(744@,30i) = Checkpoint.Create(CheckpointType.TorusNoFade, 193@(744@,30f), 223@(744@,30f), 713@(744@,30f), -2000.0, -2000.0, 0.0, 1.8)
744@ += 1
goto @BCOUR_6157

:BCOUR_6302
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_6465

:BCOUR_6320
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_6465
42@(744@,30i) = Blip.AddForCoord(283@(744@,30f), 313@(744@,30f), 343@(744@,30f))
set_lvar_float_to_lvar_float 713@(744@,30f) = 343@(744@,30f)
713@(744@,30f) += 2.2
683@(744@,30i) = Checkpoint.Create(CheckpointType.TorusNoFade, 283@(744@,30f), 313@(744@,30f), 713@(744@,30f), -2000.0, 2000.0, 0.0, 1.8)
744@ += 1
goto @BCOUR_6320

:BCOUR_6465
747@ = 0
746@ = 9
757@ = 0
$bcou_bikeostimer = 300000
Hud.DisplayCounterWithString($bcou_timelimit, CounterDisplay.Number, 'BCOU_83')
//Hud.DisplayTimerWithString($bcou_bikeostimer, TimerDirection.Down, 'BCOU_34')

:BCOUR_6528
if 
  746@ == 3
goto_if_false @BCOUR_7232
755@ = 13
758@ = 12
756@ = 5
744@ = 7
759@ = 7
$bcou_timelimit = 7
861@ = 0
867@ = 0

:BCOUR_6602
if 
  8 > 861@
goto_if_false @BCOUR_6645
797@(861@,30i) = 0
861@ += 1
goto @BCOUR_6602

:BCOUR_6645
if 
  not Car.IsDead(36@)
goto_if_false @BCOUR_7232
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_7232
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_6843

:BCOUR_6698
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_6843
42@(744@,30i) = Blip.AddForCoord(103@(744@,30f), 133@(744@,30f), 163@(744@,30f))
set_lvar_float_to_lvar_float 713@(744@,30f) = 163@(744@,30f)
713@(744@,30f) += 2.2
683@(744@,30i) = Checkpoint.Create(CheckpointType.TorusNoFade, 103@(744@,30f), 133@(744@,30f), 713@(744@,30f), 0.0, 0.0, 0.0, 1.8)
744@ += 1
goto @BCOUR_6698

:BCOUR_6843
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_7006

:BCOUR_6861
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_7006
42@(744@,30i) = Blip.AddForCoord(193@(744@,30f), 223@(744@,30f), 253@(744@,30f))
set_lvar_float_to_lvar_float 713@(744@,30f) = 253@(744@,30f)
713@(744@,30f) += 2.2
683@(744@,30i) = Checkpoint.Create(CheckpointType.TorusNoFade, 193@(744@,30f), 223@(744@,30f), 713@(744@,30f), -2000.0, -2000.0, 0.0, 1.8)
744@ += 1
goto @BCOUR_6861

:BCOUR_7006
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_7169

:BCOUR_7024
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_7169
42@(744@,30i) = Blip.AddForCoord(283@(744@,30f), 313@(744@,30f), 343@(744@,30f))
set_lvar_float_to_lvar_float 713@(744@,30f) = 343@(744@,30f)
713@(744@,30f) += 2.2
683@(744@,30i) = Checkpoint.Create(CheckpointType.TorusNoFade, 283@(744@,30f), 313@(744@,30f), 713@(744@,30f), -2000.0, 2000.0, 0.0, 1.8)
744@ += 1
goto @BCOUR_7024

:BCOUR_7169
747@ = 0
746@ = 9
757@ = 0
$bcou_bikeostimer = 300000
Hud.DisplayCounterWithString($bcou_timelimit, CounterDisplay.Number, 'BCOU_83')
//Hud.DisplayTimerWithString($bcou_bikeostimer, TimerDirection.Down, 'BCOU_34')

:BCOUR_7232
if 
  746@ == 4
goto_if_false @BCOUR_8010
755@ = 19
758@ = 18
756@ = 6
744@ = 12
759@ = 12
$bcou_timelimit = 8
861@ = 0
867@ = 0

:BCOUR_7306
if 
  9 > 861@
goto_if_false @BCOUR_7349
797@(861@,30i) = 0
861@ += 1
goto @BCOUR_7306

:BCOUR_7349
if 
  not Car.IsDead(36@)
goto_if_false @BCOUR_8010
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_8010
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_7547

:BCOUR_7402
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_7547
42@(744@,30i) = Blip.AddForCoord(103@(744@,30f), 133@(744@,30f), 163@(744@,30f))
set_lvar_float_to_lvar_float 713@(744@,30f) = 163@(744@,30f)
713@(744@,30f) += 2.2
683@(744@,30i) = Checkpoint.Create(CheckpointType.TorusNoFade, 103@(744@,30f), 133@(744@,30f), 713@(744@,30f), 0.0, 0.0, 0.0, 1.8)
744@ += 1
goto @BCOUR_7402

:BCOUR_7547
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_7710

:BCOUR_7565
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_7710
42@(744@,30i) = Blip.AddForCoord(193@(744@,30f), 223@(744@,30f), 253@(744@,30f))
set_lvar_float_to_lvar_float 713@(744@,30f) = 253@(744@,30f)
713@(744@,30f) += 2.2
683@(744@,30i) = Checkpoint.Create(CheckpointType.TorusNoFade, 193@(744@,30f), 223@(744@,30f), 713@(744@,30f), -2000.0, -2000.0, 0.0, 1.8)
744@ += 1
goto @BCOUR_7565

:BCOUR_7710
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_7873

:BCOUR_7728
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_7873
42@(744@,30i) = Blip.AddForCoord(283@(744@,30f), 313@(744@,30f), 343@(744@,30f))
set_lvar_float_to_lvar_float 713@(744@,30f) = 343@(744@,30f)
713@(744@,30f) += 2.2
683@(744@,30i) = Checkpoint.Create(CheckpointType.TorusNoFade, 283@(744@,30f), 313@(744@,30f), 713@(744@,30f), -2000.0, 2000.0, 0.0, 1.8)
744@ += 1
goto @BCOUR_7728

:BCOUR_7873
747@ = 0
746@ = 9
757@ = 0
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_7922
$bcou_bikeostimer = 600000

:BCOUR_7922
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_7950
$bcou_bikeostimer = 420000

:BCOUR_7950
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_7978
$bcou_bikeostimer = 480000

:BCOUR_7978
Hud.DisplayCounterWithString($bcou_timelimit, CounterDisplay.Number, 'BCOU_83')
//Hud.DisplayTimerWithString($bcou_bikeostimer, TimerDirection.Down, 'BCOU_34')

:BCOUR_8010
if 
  746@ == 9
goto_if_false @BCOUR_9618
if 
  867@ == 0
goto_if_false @BCOUR_8110
if 
  not Char.IsDead(38@)
goto_if_false @BCOUR_8110
if 
  not Char.LocateAnyMeansChar3D($scplayer, 38@, 100.0, 100.0, 100.0, False)
goto_if_false @BCOUR_8110
Char.Delete(38@)
867@ = 1

:BCOUR_8110
if 
  not Car.IsDead(36@)
goto_if_false @BCOUR_9618
if 
  747@ == 0
goto_if_false @BCOUR_8361
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.RightShoulder2)
goto_if_false @BCOUR_8199
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @BCOUR_8199
879@ = 0
gosub @BCOUR_12131
gosub @BCOUR_14247

:BCOUR_8199
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder2)
goto_if_false @BCOUR_8254
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @BCOUR_8254
879@ = 0
gosub @BCOUR_13189
gosub @BCOUR_14247

:BCOUR_8254
if 
  not Car.IsDead(36@)
goto_if_false @BCOUR_8361
if 
  not Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_8361
40@ = Blip.AddForCar(36@)
Blip.SetAsFriendly(40@, True)

:BCOUR_8304
if 
  is_int_lvar_greater_than_int_lvar 755@ > 744@
goto_if_false @BCOUR_8346
Blip.Remove(42@(744@,30i))
744@ += 1
goto @BCOUR_8304

:BCOUR_8346
set_lvar_int_to_lvar_int 744@ = 759@
747@ = 1

:BCOUR_8361
if 
  747@ == 1
goto_if_false @BCOUR_8617
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_8617
Blip.Remove(40@)

:BCOUR_8403
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_8602
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_8588
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_8492
42@(744@,30i) = Blip.AddForCoord(103@(744@,30f), 133@(744@,30f), 163@(744@,30f))

:BCOUR_8492
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_8540
42@(744@,30i) = Blip.AddForCoord(193@(744@,30f), 223@(744@,30f), 253@(744@,30f))

:BCOUR_8540
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_8588
42@(744@,30i) = Blip.AddForCoord(283@(744@,30f), 313@(744@,30f), 343@(744@,30f))

:BCOUR_8588
744@ += 1
goto @BCOUR_8403

:BCOUR_8602
747@ = 0
set_lvar_int_to_lvar_int 744@ = 759@

:BCOUR_8617
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_9541
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_8935

:BCOUR_8654
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_8935
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_8921
if 
  Object.DoesExist(763@(793@,30i))
goto_if_false @BCOUR_8921
if 
  Object.Locate3D(763@(793@,30i), 103@(744@,30f), 133@(744@,30f), 713@(744@,30f), 0.7, 1.7, 3.0, False)
goto_if_false @BCOUR_8921
Blip.Remove(42@(744@,30i))
Particle.Kill(827@(793@,30i))
Object.Delete(763@(793@,30i))
Stat.IncrementInt(StatId.PizzasDelivered, 1)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
Checkpoint.Delete(683@(744@,30i))
653@(744@,30i) = 1
757@ += 1
if 
  is_int_lvar_equal_to_int_lvar 757@ == 756@
goto_if_false @BCOUR_8905
Text.ClearPrints
Text.PrintNow('BCOU_6', 6000, 1)
746@ = 10
goto @BCOUR_8921

:BCOUR_8905
Text.PrintNow('BCOU_5', 6000, 1)

:BCOUR_8921
744@ += 1
goto @BCOUR_8654

:BCOUR_8935
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_9234

:BCOUR_8953
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_9234
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_9220
if 
  Object.DoesExist(763@(793@,30i))
goto_if_false @BCOUR_9220
if 
  Object.Locate3D(763@(793@,30i), 193@(744@,30f), 223@(744@,30f), 713@(744@,30f), 1.2, 1.7, 3.0, False)
goto_if_false @BCOUR_9220
Blip.Remove(42@(744@,30i))
Particle.Kill(827@(793@,30i))
Object.Delete(763@(793@,30i))
Stat.IncrementInt(StatId.PizzasDelivered, 1)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
Checkpoint.Delete(683@(744@,30i))
653@(744@,30i) = 1
757@ += 1
if 
  is_int_lvar_equal_to_int_lvar 757@ == 756@
goto_if_false @BCOUR_9204
Text.ClearPrints
Text.PrintNow('BCOU_6', 6000, 1)
746@ = 10
goto @BCOUR_9220

:BCOUR_9204
Text.PrintNow('BCOU_5', 6000, 1)

:BCOUR_9220
744@ += 1
goto @BCOUR_8953

:BCOUR_9234
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_9533

:BCOUR_9252
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_9533
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_9519
if 
  Object.DoesExist(763@(793@,30i))
goto_if_false @BCOUR_9519
if 
  Object.Locate3D(763@(793@,30i), 283@(744@,30f), 313@(744@,30f), 713@(744@,30f), 1.2, 1.7, 3.0, False)
goto_if_false @BCOUR_9519
Blip.Remove(42@(744@,30i))
Particle.Kill(827@(793@,30i))
Object.Delete(763@(793@,30i))
Stat.IncrementInt(StatId.PizzasDelivered, 1)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1058)
Checkpoint.Delete(683@(744@,30i))
653@(744@,30i) = 1
757@ += 1
if 
  is_int_lvar_equal_to_int_lvar 757@ == 756@
goto_if_false @BCOUR_9503
Text.ClearPrints
Text.PrintNow('BCOU_6', 6000, 1)
746@ = 10
goto @BCOUR_9519

:BCOUR_9503
Text.PrintNow('BCOU_5', 6000, 1)

:BCOUR_9519
744@ += 1
goto @BCOUR_9252

:BCOUR_9533
set_lvar_int_to_lvar_int 744@ = 759@

:BCOUR_9541
set_lvar_int_to_lvar_int 874@ = 756@
sub_int_lvar_from_int_lvar 874@ -= 757@
set_lvar_int_to_var_int 873@ = $bcou_timelimit
if 
  Object.DoesExist(763@(793@,30i))
goto_if_false @BCOUR_9592
873@ += 1

:BCOUR_9592
if 
  is_int_lvar_greater_than_int_lvar 874@ > 873@
goto_if_false @BCOUR_9618
862@ = 1

:BCOUR_9618
if 
  746@ > 8
goto_if_false @BCOUR_9702
if 
  25 > 746@
goto_if_false @BCOUR_9702
if 
  1 > $bcou_bikeostimer
goto_if_false @BCOUR_9702
Text.ClearPrints
Text.PrintNow('BCOU_33', 6000, 1)
Hud.ClearTimer($bcou_bikeostimer)
goto @BCOUR_14327

:BCOUR_9702
if 
  746@ == 10
goto_if_false @BCOUR_9859
746@ = 20
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_9771
72@ = Blip.AddForCoord(383@(745@,30f), 413@(745@,30f), 443@(745@,30f))

:BCOUR_9771
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_9815
72@ = Blip.AddForCoord(473@(745@,30f), 503@(745@,30f), 533@(745@,30f))

:BCOUR_9815
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_9859
72@ = Blip.AddForCoord(563@(745@,30f), 593@(745@,30f), 623@(745@,30f))

:BCOUR_9859
if 
  746@ == 20
goto_if_false @BCOUR_10610
35@ = Streaming.GetAreaVisible()
if 
  35@ == 0
goto_if_false @BCOUR_9920
if 
  not Game.IsMinigameInProgress
goto_if_false @BCOUR_9920
Player.SetControl($player1, True)

:BCOUR_9920
if 
  not Car.IsDead(36@)
goto_if_false @BCOUR_10610
if 
  747@ == 0
goto_if_false @BCOUR_10000
if 
  not Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_10000
40@ = Blip.AddForCar(36@)
Blip.SetAsFriendly(40@, True)
Blip.Remove(72@)
747@ = 1

:BCOUR_10000
if 
  747@ == 1
goto_if_false @BCOUR_10181
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_10181
Blip.Remove(40@)
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_10086
72@ = Blip.AddForCoord(383@(745@,30f), 413@(745@,30f), 443@(745@,30f))

:BCOUR_10086
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_10130
72@ = Blip.AddForCoord(563@(745@,30f), 593@(745@,30f), 623@(745@,30f))

:BCOUR_10130
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_10174
72@ = Blip.AddForCoord(473@(745@,30f), 503@(745@,30f), 533@(745@,30f))

:BCOUR_10174
747@ = 0

:BCOUR_10181
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_10324
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_10324
if 
  Char.LocateInCar3D($scplayer, 383@(745@,30f), 413@(745@,30f), 443@(745@,30f), 4.0, 4.0, 4.0, True)
goto_if_false @BCOUR_10324
Player.SetControl($player1, False)
if 
  Car.IsStopped(36@)
goto_if_false @BCOUR_10324
Blip.Remove(72@)
Hud.ClearTimer($bcou_bikeostimer)
Hud.ClearCounter($bcou_timelimit)
760@ += 1
746@ = 50

:BCOUR_10324
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_10467
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_10467
if 
  Char.LocateInCar3D($scplayer, 473@(745@,30f), 503@(745@,30f), 533@(745@,30f), 4.0, 4.0, 4.0, True)
goto_if_false @BCOUR_10467
Player.SetControl($player1, False)
if 
  Car.IsStopped(36@)
goto_if_false @BCOUR_10467
Blip.Remove(72@)
Hud.ClearTimer($bcou_bikeostimer)
Hud.ClearCounter($bcou_timelimit)
761@ += 1
746@ = 50

:BCOUR_10467
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_10610
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_10610
if 
  Char.LocateInCar3D($scplayer, 563@(745@,30f), 593@(745@,30f), 623@(745@,30f), 4.0, 4.0, 4.0, True)
goto_if_false @BCOUR_10610
Player.SetControl($player1, False)
if 
  Car.IsStopped(36@)
goto_if_false @BCOUR_10610
Blip.Remove(72@)
Hud.ClearTimer($bcou_bikeostimer)
Hud.ClearCounter($bcou_timelimit)
762@ += 1
746@ = 50

:BCOUR_10610
if 
  746@ == 50
goto_if_false @BCOUR_11169
Player.SetControl($player1, True)
868@ = 0
Text.ClearPrints
Text.PrintNow('BCOU_12', 4000, 1)
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_10738
863@ = Menu.Create('BCOU_81', 31.0, 80.0, 99.0, 2, False, True, 1)
set_lvar_int_to_var_int 869@ = $bcou_bikeostimer
869@ /= 100
mult_int_lvar_by_int_lvar 869@ *= 761@

:BCOUR_10738
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_10816
863@ = Menu.Create('BCOU_82', 31.0, 80.0, 99.0, 2, False, True, 1)
set_lvar_int_to_var_int 869@ = $bcou_bikeostimer
869@ /= 100
mult_int_lvar_by_int_lvar 869@ *= 762@

:BCOUR_10816
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_10894
863@ = Menu.Create('BCOU_80', 31.0, 80.0, 99.0, 2, False, True, 1)
set_lvar_int_to_var_int 869@ = $bcou_bikeostimer
869@ /= 100
mult_int_lvar_by_int_lvar 869@ *= 760@

:BCOUR_10894
Menu.SetColumn(863@, 0, 'BCOU_21', 'BCOU_22', 'BCOU_23', 'BCOU_24', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumnOrientation(863@, 1, 2)
865@ = 0
set_lvar_int_to_var_int 870@ = $bcou_timelimit
870@ *= 100
set_lvar_int_to_lvar_int 871@ = 869@
add_int_lvar_to_int_lvar 871@ += 870@
Menu.SetItemWithNumber(863@, 1, 0, 'DOLLAR', 869@)
Menu.SetItemWithNumber(863@, 1, 1, 'DOLLAR', 870@)
Menu.SetItemWithNumber(863@, 1, 2, 'DOLLAR', 871@)
Menu.SetActiveItem(863@, 2)
TIMERA = 0
866@ = 1
Player.AddScore($player1, 871@)
Object.Delete(37@)
746@ = 55

:BCOUR_11169
if 
  866@ == 1
goto_if_false @BCOUR_11391
if 
  TIMERA > 2000
goto_if_false @BCOUR_11213
868@ = 1

:BCOUR_11213
if 
  761@ == 4
goto_if_false @BCOUR_11262
if 
  TIMERA > 4000
goto_if_false @BCOUR_11262
Menu.Delete(863@)
866@ = 2

:BCOUR_11262
if 
  760@ == 4
goto_if_false @BCOUR_11311
if 
  TIMERA > 4000
goto_if_false @BCOUR_11311
Menu.Delete(863@)
866@ = 2

:BCOUR_11311
if 
  762@ == 4
goto_if_false @BCOUR_11360
if 
  TIMERA > 4000
goto_if_false @BCOUR_11360
Menu.Delete(863@)
866@ = 2

:BCOUR_11360
if 
  TIMERA > 6000
goto_if_false @BCOUR_11391
Menu.Delete(863@)
866@ = 2

:BCOUR_11391
if 
  866@ == 2
goto_if_false @BCOUR_12009
if 
  not Car.IsDead(36@)
goto_if_false @BCOUR_12009
if 
  Char.IsInCar($scplayer, 36@)
goto_if_false @BCOUR_12009
Menu.Delete(863@)
868@ = 0
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_11638
Text.ClearPrints
Player.SetControl($player1, True)
if 
  760@ == 1
goto_if_false @BCOUR_11524
Text.PrintNow('BCOU_4', 6000, 1)
746@ = 2

:BCOUR_11524
if 
  760@ == 2
goto_if_false @BCOUR_11565
Text.PrintNow('BCOU_4', 6000, 1)
746@ = 3

:BCOUR_11565
if 
  760@ == 3
goto_if_false @BCOUR_11606
Text.PrintNow('BCOU_4', 6000, 1)
746@ = 4

:BCOUR_11606
if 
  760@ == 4
goto_if_false @BCOUR_11638
goto @BCOUR_15206
746@ = 5

:BCOUR_11638
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_11820
Text.ClearPrints
Player.SetControl($player1, True)
if 
  761@ == 1
goto_if_false @BCOUR_11706
Text.PrintNow('BCOU_4', 6000, 1)
746@ = 2

:BCOUR_11706
if 
  761@ == 2
goto_if_false @BCOUR_11747
Text.PrintNow('BCOU_4', 6000, 1)
746@ = 3

:BCOUR_11747
if 
  761@ == 3
goto_if_false @BCOUR_11788
Text.PrintNow('BCOU_4', 6000, 1)
746@ = 4

:BCOUR_11788
if 
  761@ == 4
goto_if_false @BCOUR_11820
goto @BCOUR_15206
746@ = 5

:BCOUR_11820
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_12002
Text.ClearPrints
Player.SetControl($player1, True)
if 
  762@ == 1
goto_if_false @BCOUR_11888
Text.PrintNow('BCOU_4', 6000, 1)
746@ = 2

:BCOUR_11888
if 
  762@ == 2
goto_if_false @BCOUR_11929
Text.PrintNow('BCOU_4', 6000, 1)
746@ = 3

:BCOUR_11929
if 
  762@ == 3
goto_if_false @BCOUR_11970
Text.PrintNow('BCOU_4', 6000, 1)
746@ = 4

:BCOUR_11970
if 
  762@ == 4
goto_if_false @BCOUR_12002
goto @BCOUR_15206
746@ = 5

:BCOUR_12002
866@ = 0

:BCOUR_12009
if 
  Object.DoesExist(763@(793@,30i))
goto_if_false @BCOUR_12124
if 
  Char.LocateAnyMeansObject3D($scplayer, 763@(793@,30i), 1.5, 1.5, 1.5, False)
goto_if_false @BCOUR_12124
if 
  TIMERA > 3000
goto_if_false @BCOUR_12124
Particle.Kill(827@(793@,30i))
Object.Delete(763@(793@,30i))
$bcou_timelimit += 1
797@($bcou_timelimit,30i) = 0

:BCOUR_12124
goto @BCOUR_2555

:BCOUR_12131
if 
  not Car.IsDead(36@)
goto_if_false @BCOUR_13187
if 
  $bcou_timelimit > 0
goto_if_false @BCOUR_13187
if 
  797@($bcou_timelimit,30i) == 0
goto_if_false @BCOUR_13187
if 
  857@ > 0
goto_if_false @BCOUR_12223
Particle.Kill(827@(793@,30i))
Object.Delete(763@(793@,30i))

:BCOUR_12223
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_12404

:BCOUR_12241
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_12389
if 
  880@ == 0
goto_if_false @BCOUR_12375
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_12375
if 
  Char.LocateAnyMeans3D($scplayer, 193@(744@,30f), 223@(744@,30f), 713@(744@,30f), 5.0, 5.0, 5.0, False)
goto_if_false @BCOUR_12375
880@ = 1
879@ = 1
goto @BCOUR_12375

:BCOUR_12375
744@ += 1
goto @BCOUR_12241

:BCOUR_12389
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_12404
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_12585

:BCOUR_12422
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_12570
if 
  880@ == 0
goto_if_false @BCOUR_12556
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_12556
if 
  Char.LocateAnyMeans3D($scplayer, 103@(744@,30f), 133@(744@,30f), 713@(744@,30f), 5.0, 5.0, 5.0, False)
goto_if_false @BCOUR_12556
880@ = 1
879@ = 1
goto @BCOUR_12556

:BCOUR_12556
744@ += 1
goto @BCOUR_12422

:BCOUR_12570
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_12585
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_12766

:BCOUR_12603
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_12751
if 
  880@ == 0
goto_if_false @BCOUR_12737
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_12737
if 
  Char.LocateAnyMeans3D($scplayer, 283@(744@,30f), 313@(744@,30f), 713@(744@,30f), 5.0, 5.0, 5.0, False)
goto_if_false @BCOUR_12737
880@ = 1
879@ = 1
goto @BCOUR_12737

:BCOUR_12737
744@ += 1
goto @BCOUR_12603

:BCOUR_12751
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_12766
876@, 877@, 878@ = Car.GetCoordinates(36@)
763@($bcou_timelimit,30i) = Object.CreateNoOffset(#KMB_PACKET, 876@, 877@, 878@)
Object.SetCollision(763@($bcou_timelimit,30i), True)
Object.SetDynamic(763@($bcou_timelimit,30i), True)
827@($bcou_timelimit,30i) = Particle.CreateOnObject("COKE_PUFF", 763@($bcou_timelimit,30i), 0.0, 0.0, 0.5, 1)
Particle.Play(827@($bcou_timelimit,30i))
858@, 859@, 860@ = Char.GetCoordinates($scplayer)
if 
  882@ == 2
goto_if_false @BCOUR_12912
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:BCOUR_12912
if 
  879@ == 1
goto_if_false @BCOUR_12964
Object.PlaceRelativeToCar(763@($bcou_timelimit,30i), 36@, -1.0, 0.0, 1.3)
goto @BCOUR_12991

:BCOUR_12964
Object.PlaceRelativeToCar(763@($bcou_timelimit,30i), 36@, 0.0, 0.0, 0.7)

:BCOUR_12991
794@ = Char.GetHeading($scplayer)
795@ -= 30.0
796@ -= 30.0
795@ = Math.Cos(794@)
796@ = Math.Sin(794@)
if 
  879@ == 1
goto_if_false @BCOUR_13100
795@ *= 15.0
796@ *= 15.0
Object.AddToVelocity(763@($bcou_timelimit,30i), 795@, 796@, 1.0)
goto @BCOUR_13140

:BCOUR_13100
795@ *= 30.0
796@ *= 30.0
Object.AddToVelocity(763@($bcou_timelimit,30i), 795@, 796@, 8.5)

:BCOUR_13140
879@ = 0
857@ += 1
797@($bcou_timelimit,30i) = 1
set_lvar_int_to_var_int 793@ = $bcou_timelimit
$bcou_timelimit -= 1
TIMERA = 0

:BCOUR_13187
return 

:BCOUR_13189
if 
  $bcou_timelimit > 0
goto_if_false @BCOUR_14245
if 
  not Car.IsDead(36@)
goto_if_false @BCOUR_14245
if 
  797@($bcou_timelimit,30i) == 0
goto_if_false @BCOUR_14245
if 
  857@ > 0
goto_if_false @BCOUR_13281
Particle.Kill(827@(793@,30i))
Object.Delete(763@(793@,30i))

:BCOUR_13281
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_13462

:BCOUR_13299
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_13447
if 
  880@ == 0
goto_if_false @BCOUR_13433
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_13433
if 
  Char.LocateAnyMeans3D($scplayer, 193@(744@,30f), 223@(744@,30f), 713@(744@,30f), 5.0, 5.0, 5.0, False)
goto_if_false @BCOUR_13433
880@ = 1
879@ = 1
goto @BCOUR_13433

:BCOUR_13433
744@ += 1
goto @BCOUR_13299

:BCOUR_13447
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_13462
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_13643

:BCOUR_13480
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_13628
if 
  880@ == 0
goto_if_false @BCOUR_13614
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_13614
if 
  Char.LocateAnyMeans3D($scplayer, 103@(744@,30f), 133@(744@,30f), 713@(744@,30f), 5.0, 5.0, 5.0, False)
goto_if_false @BCOUR_13614
880@ = 1
879@ = 1
goto @BCOUR_13614

:BCOUR_13614
744@ += 1
goto @BCOUR_13480

:BCOUR_13628
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_13643
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_13824

:BCOUR_13661
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_13809
if 
  880@ == 0
goto_if_false @BCOUR_13795
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_13795
if 
  Char.LocateAnyMeans3D($scplayer, 283@(744@,30f), 313@(744@,30f), 713@(744@,30f), 5.0, 5.0, 5.0, False)
goto_if_false @BCOUR_13795
880@ = 1
879@ = 1
goto @BCOUR_13795

:BCOUR_13795
744@ += 1
goto @BCOUR_13661

:BCOUR_13809
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_13824
876@, 877@, 878@ = Car.GetCoordinates(36@)
763@($bcou_timelimit,30i) = Object.CreateNoOffset(#KMB_PACKET, 876@, 877@, 878@)
Object.SetCollision(763@($bcou_timelimit,30i), True)
Object.SetDynamic(763@($bcou_timelimit,30i), True)
827@($bcou_timelimit,30i) = Particle.CreateOnObject("COKE_PUFF", 763@($bcou_timelimit,30i), 0.0, 0.0, 0.0, 1)
Particle.Play(827@($bcou_timelimit,30i))
858@, 859@, 860@ = Char.GetCoordinates($scplayer)
if 
  882@ == 2
goto_if_false @BCOUR_13970
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)

:BCOUR_13970
if 
  879@ == 1
goto_if_false @BCOUR_14022
Object.PlaceRelativeToCar(763@($bcou_timelimit,30i), 36@, 1.0, 0.0, 1.3)
goto @BCOUR_14049

:BCOUR_14022
Object.PlaceRelativeToCar(763@($bcou_timelimit,30i), 36@, 0.0, 0.0, 0.7)

:BCOUR_14049
794@ = Char.GetHeading($scplayer)
795@ -= 330.0
796@ -= 330.0
795@ = Math.Cos(794@)
796@ = Math.Sin(794@)
if 
  879@ == 1
goto_if_false @BCOUR_14158
795@ *= -15.0
796@ *= -15.0
Object.AddToVelocity(763@($bcou_timelimit,30i), 795@, 796@, 1.0)
goto @BCOUR_14198

:BCOUR_14158
795@ *= -30.0
796@ *= -30.0
Object.AddToVelocity(763@($bcou_timelimit,30i), 795@, 796@, 8.5)

:BCOUR_14198
879@ = 0
857@ += 1
797@($bcou_timelimit,30i) = 1
set_lvar_int_to_var_int 793@ = $bcou_timelimit
$bcou_timelimit -= 1
TIMERA = 0

:BCOUR_14245
return 

:BCOUR_14247
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @BCOUR_14275
wait 0
goto @BCOUR_14247

:BCOUR_14275
return 

:BCOUR_14277
if 
  3000 > TIMERB
goto_if_false @BCOUR_14307
wait 0
goto @BCOUR_14277

:BCOUR_14307
Particle.Kill(827@(793@,30i))
Object.Delete(763@(793@,30i))
return 

:BCOUR_14327
Player.SetCanDoDriveBy($player1, True)
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_14624
if 
  760@ == 0
goto_if_false @BCOUR_14386
Text.PrintBig('BCOU_40', 5000, TextStyle.Middle)

:BCOUR_14386
if 
  760@ == 1
goto_if_false @BCOUR_14420
Text.PrintBig('BCOU_41', 5000, TextStyle.Middle)

:BCOUR_14420
if 
  760@ == 2
goto_if_false @BCOUR_14454
Text.PrintBig('BCOU_42', 5000, TextStyle.Middle)

:BCOUR_14454
if 
  760@ == 3
goto_if_false @BCOUR_14488
Text.PrintBig('BCOU_43', 5000, TextStyle.Middle)

:BCOUR_14488
if 
  760@ == 4
goto_if_false @BCOUR_14522
Text.PrintBig('BCOU_44', 5000, TextStyle.Middle)

:BCOUR_14522
if 
  760@ == 5
goto_if_false @BCOUR_14556
Text.PrintBig('BCOU_45', 5000, TextStyle.Middle)

:BCOUR_14556
if 
  760@ == 6
goto_if_false @BCOUR_14590
Text.PrintBig('BCOU_46', 5000, TextStyle.Middle)

:BCOUR_14590
if 
  760@ == 7
goto_if_false @BCOUR_14624
Text.PrintBig('BCOU_47', 5000, TextStyle.Middle)

:BCOUR_14624
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_14914
if 
  762@ == 0
goto_if_false @BCOUR_14676
Text.PrintBig('BCOU_40', 5000, TextStyle.Middle)

:BCOUR_14676
if 
  762@ == 1
goto_if_false @BCOUR_14710
Text.PrintBig('BCOU_41', 5000, TextStyle.Middle)

:BCOUR_14710
if 
  762@ == 2
goto_if_false @BCOUR_14744
Text.PrintBig('BCOU_42', 5000, TextStyle.Middle)

:BCOUR_14744
if 
  762@ == 3
goto_if_false @BCOUR_14778
Text.PrintBig('BCOU_43', 5000, TextStyle.Middle)

:BCOUR_14778
if 
  762@ == 4
goto_if_false @BCOUR_14812
Text.PrintBig('BCOU_44', 5000, TextStyle.Middle)

:BCOUR_14812
if 
  762@ == 5
goto_if_false @BCOUR_14846
Text.PrintBig('BCOU_45', 5000, TextStyle.Middle)

:BCOUR_14846
if 
  762@ == 6
goto_if_false @BCOUR_14880
Text.PrintBig('BCOU_46', 5000, TextStyle.Middle)

:BCOUR_14880
if 
  762@ == 7
goto_if_false @BCOUR_14914
Text.PrintBig('BCOU_47', 5000, TextStyle.Middle)

:BCOUR_14914
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_15204
if 
  761@ == 0
goto_if_false @BCOUR_14966
Text.PrintBig('BCOU_40', 5000, TextStyle.Middle)

:BCOUR_14966
if 
  761@ == 1
goto_if_false @BCOUR_15000
Text.PrintBig('BCOU_41', 5000, TextStyle.Middle)

:BCOUR_15000
if 
  761@ == 2
goto_if_false @BCOUR_15034
Text.PrintBig('BCOU_42', 5000, TextStyle.Middle)

:BCOUR_15034
if 
  761@ == 3
goto_if_false @BCOUR_15068
Text.PrintBig('BCOU_43', 5000, TextStyle.Middle)

:BCOUR_15068
if 
  761@ == 4
goto_if_false @BCOUR_15102
Text.PrintBig('BCOU_44', 5000, TextStyle.Middle)

:BCOUR_15102
if 
  761@ == 5
goto_if_false @BCOUR_15136
Text.PrintBig('BCOU_45', 5000, TextStyle.Middle)

:BCOUR_15136
if 
  761@ == 6
goto_if_false @BCOUR_15170
Text.PrintBig('BCOU_46', 5000, TextStyle.Middle)

:BCOUR_15170
if 
  761@ == 7
goto_if_false @BCOUR_15204
Text.PrintBig('BCOU_47', 5000, TextStyle.Middle)

:BCOUR_15204
return 

:BCOUR_15206
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
Audio.PlayMissionPassedTune(2)
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_15568
if 
  $courierLV_passed_once == 0
goto_if_false @BCOUR_15568
Stat.RegisterOddjobMissionPassed
Stat.PlayerMadeProgress(1)
$courierLV_passed_once = 1
$courierLV_cash_pickup = Pickup.CreateProtection(1887.997, 2073.008, 10.5547, $courierLV_revenue, $courierLV_revenue)
Text.ClearPrints
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:BCOUR_15305
if 
  Camera.GetFadingStatus
goto_if_false @BCOUR_15329
wait 0
goto @BCOUR_15305

:BCOUR_15329
Hud.SwitchWidescreen(True)
Streaming.LoadSceneInDirection(1895.53, 2063.094, 15.8639, 47.0)
Camera.SetFixedPosition(1895.53, 2063.094, 15.8639, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1894.813, 2063.775, 15.7175, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:BCOUR_15413
if 
  Camera.GetFadingStatus
goto_if_false @BCOUR_15437
wait 0
goto @BCOUR_15413

:BCOUR_15437
Audio.PlayMissionPassedTune(1)
Text.PrintBig('ASS_ACQ', 5000, TextStyle.WhiteMiddleSmaller)
wait 5000
Camera.SetFixedPosition(1890.164, 2070.478, 11.8641, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1889.516, 2071.213, 11.6633, SwitchType.JumpCut)
Text.PrintWithNumberNow('ASS_LUV', $courierLV_revenue, 6000, 1)
wait 6000
Camera.DoFade(500, Fade.Out)

:BCOUR_15544
if 
  Camera.GetFadingStatus
goto_if_false @BCOUR_15568
wait 0
goto @BCOUR_15544

:BCOUR_15568
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_15922
if 
  $courierLA_passed_once == 0
goto_if_false @BCOUR_15922
Stat.RegisterOddjobMissionPassed
Stat.PlayerMadeProgress(1)
$courierLA_passed_once = 1
$courierLA_cash_pickup = Pickup.CreateProtection(1345.859, -1757.432, 13.0078, $courierLA_revenue, $courierLA_revenue)
Text.ClearPrints
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:BCOUR_15659
if 
  Camera.GetFadingStatus
goto_if_false @BCOUR_15683
wait 0
goto @BCOUR_15659

:BCOUR_15683
Hud.SwitchWidescreen(True)
Streaming.LoadSceneInDirection(1358.596, -1741.184, 18.431, 223.0)
Camera.SetFixedPosition(1358.596, -1741.184, 18.431, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1358.372, -1742.135, 18.2203, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:BCOUR_15767
if 
  Camera.GetFadingStatus
goto_if_false @BCOUR_15791
wait 0
goto @BCOUR_15767

:BCOUR_15791
Audio.PlayMissionPassedTune(1)
Text.PrintBig('ASS_ACQ', 5000, TextStyle.WhiteMiddleSmaller)
wait 5000
Camera.SetFixedPosition(1345.565, -1753.368, 15.2186, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1345.567, -1754.218, 14.692, SwitchType.JumpCut)
Text.PrintWithNumberNow('ASS_LUV', $courierLA_revenue, 6000, 1)
wait 6000
Camera.DoFade(500, Fade.Out)

:BCOUR_15898
if 
  Camera.GetFadingStatus
goto_if_false @BCOUR_15922
wait 0
goto @BCOUR_15898

:BCOUR_15922
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_16276
if 
  $courierSF_passed_once == 0
goto_if_false @BCOUR_16276
Stat.PlayerMadeProgress(1)
Stat.RegisterOddjobMissionPassed
$courierSF_passed_once = 1
$courierSF_cash_pickup = Pickup.CreateProtection(-2593.882, 59.2467, 3.8359, $courierSF_revenue, $courierSF_revenue)
Player.SetControl($player1, False)
Text.ClearPrints
Camera.DoFade(500, Fade.Out)

:BCOUR_16013
if 
  Camera.GetFadingStatus
goto_if_false @BCOUR_16037
wait 0
goto @BCOUR_16013

:BCOUR_16037
Hud.SwitchWidescreen(True)
Streaming.LoadSceneInDirection(-2603.114, 51.3338, 10.1663, 275.0)
Camera.SetFixedPosition(-2603.98, 54.4522, 7.5275, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2603.014, 54.7055, 7.4818, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:BCOUR_16121
if 
  Camera.GetFadingStatus
goto_if_false @BCOUR_16145
wait 0
goto @BCOUR_16121

:BCOUR_16145
Audio.PlayMissionPassedTune(1)
Text.PrintBig('ASS_ACQ', 5000, TextStyle.WhiteMiddleSmaller)
wait 5000
Camera.SetFixedPosition(-2598.9, 59.0635, 4.8343, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2597.905, 59.0525, 4.7405, SwitchType.JumpCut)
Text.PrintWithNumberNow('ASS_LUV', $courierSF_revenue, 6000, 1)
wait 6000
Camera.DoFade(500, Fade.Out)

:BCOUR_16252
if 
  Camera.GetFadingStatus
goto_if_false @BCOUR_16276
wait 0
goto @BCOUR_16252

:BCOUR_16276
Player.ClearWantedLevel($player1)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
return 

:BCOUR_16287
Text.ClearHelp
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
if 
  Player.IsPlaying($player1)
goto_if_false @BCOUR_16323
Player.SetCanDoDriveBy($player1, True)
Player.SetControl($player1, True)

:BCOUR_16323
Hud.ClearTimer($bcou_bikeostimer)
Hud.ClearCounter($bcou_timelimit)
Menu.Delete(863@)
Object.Delete(37@)
Particle.Kill(827@(793@,30i))
Object.Delete(763@(793@,30i))
Char.MarkAsNoLongerNeeded(38@)
Streaming.MarkModelAsNoLongerNeeded(586)
Streaming.MarkModelAsNoLongerNeeded(29)
Streaming.RemoveAnimation("SMOKING")
Blip.Remove(40@)
Blip.Remove(72@)
744@ = 0

:BCOUR_16403
if 
  30 > 744@
goto_if_false @BCOUR_16444
Blip.Remove(42@(744@,30i))
744@ += 1
goto @BCOUR_16403

:BCOUR_16444
CarGenerator.Switch($tank_gen1, 101)
$timer_mobile_start = Clock.GetGameTimer()
$onmission = 0
Mission.Finish
return 

//-------------Mission 132---------------
// Originally: The Chiliad Challenge

:MTBIKER
gosub @MTBIKER_36
if 
  has_deatharrest_been_executed 
goto_if_false @MTBIKER_27
gosub @MTBIKER_14389

:MTBIKER_27
gosub @MTBIKER_14690
terminate_this_script 

:MTBIKER_36
$onmission = 1
Text.ClearThisPrintBigNow(TextStyle.Middle)
if 
  $flag_mtbike_passed_1stime == 0
goto_if_false @MTBIKER_67
Stat.RegisterMissionGiven

:MTBIKER_67
script_name 'MTBIKER'
Text.LoadMissionText('RACETOR')
Text.SetMessageFormatting(True, 355, 370)
wait 0
Text.UseCommands(True)
if 
  not Char.IsDead($scplayer)
goto_if_false @MTBIKER_130
Player.SetControl($player1, False)

:MTBIKER_130
Camera.DoFade(1000, Fade.Out)

:MTBIKER_137
if 
  Camera.GetFadingStatus
goto_if_false @MTBIKER_161
wait 0
goto @MTBIKER_137

:MTBIKER_161
669@ = DecisionMakerChar.Load(DecisionMakerType.Empty)
690@ = 0
691@ = 0
692@ = 0
693@ = 0
694@ = 0
695@ = 0
696@ = 0
697@ = 0
698@ = 0
699@ = 0
656@ = 0
657@ = 0
34@ = 582.7242
41@ = 356.2812
48@ = 52.2072
55@ = 52.2072
35@ = 584.0833
42@ = 329.3647
49@ = 0.5427
56@ = 2.0841
36@ = 572.9216
43@ = 323.5937
50@ = 1.0585
57@ = 4.8106
37@ = 585.724
44@ = 345.6341
51@ = 0.4929
58@ = 1.8511
38@ = 582.7242
45@ = 359.0323
52@ = 0.4993
59@ = 2.637
39@ = 582.7242
46@ = 356.2812
53@ = 56.2072
60@ = 56.2072
40@ = 582.7242
47@ = 356.2812
54@ = 58.2072
61@ = 58.2072
670@ = 0
671@ = 0
672@ = 0
673@ = 0
674@ = 0
675@ = 0
676@ = 0
677@ = 0
678@ = 0
679@ = 0
//Player.GiveClothesOutsideShop($player1, "BBSHORTWHT", "BOXINGSHORT", BodyPart.Legs)
Player.BuildModel($player1)
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_664
goto @MTBIKER_714

:MTBIKER_664
if 
  $mtbikerace_selection == 2
goto_if_false @MTBIKER_689
goto @MTBIKER_1649

:MTBIKER_689
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_714
goto @MTBIKER_3104

:MTBIKER_714
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_748
Text.PrintBig('MTROUT1', 3000, TextStyle.MiddleSmallerHigher)

:MTBIKER_748
103@ = -2304.344
223@ = -1667.125
343@ = 483.386
463@ = 208.0
104@ = -2280.48
224@ = -1730.315
344@ = 467.8242
464@ = 178.6093
105@ = -2357.182
225@ = -1815.429
345@ = 431.4012
465@ = 64.067
106@ = -2447.403
226@ = -1718.435
346@ = 430.9626
466@ = 148.4592
107@ = -2446.652
227@ = -1810.658
347@ = 409.0582
467@ = 93.195
108@ = -2527.586
228@ = -1711.376
348@ = 401.175
468@ = 16.0889
109@ = -2552.845
229@ = -1668.842
349@ = 398.455
469@ = 155.2717
110@ = -2534.517
230@ = -1802.53
350@ = 374.7244
470@ = 127.1514
111@ = -2595.25
231@ = -1631.995
351@ = 342.7061
471@ = 176.454
112@ = -2526.43
232@ = -1888.459
352@ = 292.5149
472@ = 77.3269
113@ = -2652.859
233@ = -1739.147
353@ = 255.1567
473@ = 189.6474
114@ = -2491.229
234@ = -2034.597
354@ = 150.1413
474@ = 225.1505
115@ = -2428.644
235@ = -2088.887
355@ = 121.97
475@ = 243.2365
116@ = -2322.059
236@ = -2097.64
356@ = 114.0331
476@ = 292.4177
117@ = -2218.131
237@ = -2047.089
357@ = 118.8139
477@ = 315.497
118@ = -2168.42
238@ = -1991.872
358@ = 117.8448
478@ = 314.2462
119@ = -2102.545
239@ = -1895.227
359@ = 108.4655
479@ = 174.3973
120@ = -2162.365
240@ = -2039.522
360@ = 91.2074
480@ = 135.1339
121@ = -2373.667
241@ = -2195.089
361@ = 32.3837
481@ = 112.827
700@ = 19
92@ = 6
set_lvar_int_to_constant 701@ = 23
set_lvar_int_to_constant 702@ = 52
set_lvar_int_to_constant 703@ = 51
set_lvar_int_to_constant 704@ = 52
set_lvar_int_to_constant 705@ = 23
set_lvar_int_to_constant 706@ = 51
set_lvar_int_to_constant 707@ = 510
set_lvar_int_to_constant 708@ = 510
set_lvar_int_to_constant 709@ = 510
set_lvar_int_to_constant 710@ = 510
set_lvar_int_to_constant 711@ = 510
set_lvar_int_to_constant 712@ = 510
652@ = 38.0
653@ = 27.0
654@ = 23.0
goto @MTBIKER_4323

:MTBIKER_1649
if 
  $mtbikerace_selection == 2
goto_if_false @MTBIKER_1683
Text.PrintBig('MTROUT2', 3000, TextStyle.MiddleSmallerHigher)

:MTBIKER_1683
103@ = -2304.344
223@ = -1667.125
343@ = 483.586
463@ = 208.0
104@ = -2279.857
224@ = -1732.752
344@ = 466.799
464@ = 163.4517
105@ = -2355.609
225@ = -1815.324
345@ = 431.5401
465@ = 90.1409
106@ = -2458.843
226@ = -1733.434
346@ = 426.432
466@ = 187.8666
107@ = -2460.904
227@ = -1807.384
347@ = 406.6599
467@ = 60.8579
108@ = -2521.292
228@ = -1707.753
348@ = 401.2728
468@ = 2.4494
109@ = -2467.126
229@ = -1467.868
349@ = 388.9202
469@ = 270.5872
110@ = -2324.367
230@ = -1455.149
350@ = 380.9767
470@ = 233.5233
111@ = -2251.922
231@ = -1492.653
351@ = 377.8563
471@ = 196.094
112@ = -2191.949
232@ = -1713.993
352@ = 375.5497
472@ = 322.9377
113@ = -2206.778
233@ = -1528.34
353@ = 359.6156
473@ = 20.0752
114@ = -2280.683
234@ = -1426.188
354@ = 355.6379
474@ = 58.5606
115@ = -2419.222
235@ = -1392.925
355@ = 358.1968
475@ = 98.4498
116@ = -2569.767
236@ = -1460.698
356@ = 357.2175
476@ = 325.2711
117@ = -2440.889
237@ = -1368.257
357@ = 337.413
477@ = 304.5745
118@ = -2357.07
238@ = -1286.362
358@ = 306.1062
478@ = 103.378
119@ = -2508.153
239@ = -1273.621
359@ = 271.7476
479@ = 103.6739
120@ = -2595.492
240@ = -1360.244
360@ = 264.5467
480@ = 100.454
121@ = -2671.155
241@ = -1378.19
361@ = 252.3816
481@ = 352.7671
122@ = -2608.5
242@ = -1285.22
362@ = 219.88
482@ = 335.6836
123@ = -2537.294
243@ = -1121.297
363@ = 175.3035
483@ = 140.5565
124@ = -2634.553
244@ = -1169.384
364@ = 166.8249
484@ = 128.43
125@ = -2747.937
245@ = -1377.943
365@ = 143.0419
485@ = 168.2364
126@ = -2773.78
246@ = -1670.301
366@ = 140.4944
486@ = 169.7697
127@ = -2733.364
247@ = -1876.022
367@ = 138.8912
487@ = 269.3722
128@ = -2620.579
248@ = -2066.746
368@ = 129.5185
488@ = 201.5526
129@ = -2438.379
249@ = -2086.928
369@ = 123.3899
489@ = 257.1008
130@ = -2335.784
250@ = -2102.442
370@ = 112.9194
490@ = 283.7088
131@ = -2101.005
251@ = -1893.245
371@ = 108.8372
491@ = 174.9563
132@ = -2156.216
252@ = -2031.774
372@ = 91.9901
492@ = 145.72
133@ = -2236.111
253@ = -2118.767
373@ = 66.3876
493@ = 131.2891
134@ = -2374.958
254@ = -2195.454
374@ = 32.3626
494@ = 113.8008
700@ = 32
92@ = 6
set_lvar_int_to_constant 701@ = 23
set_lvar_int_to_constant 702@ = 52
set_lvar_int_to_constant 703@ = 51
set_lvar_int_to_constant 704@ = 52
set_lvar_int_to_constant 705@ = 23
set_lvar_int_to_constant 706@ = 51
set_lvar_int_to_constant 707@ = 510
set_lvar_int_to_constant 708@ = 510
set_lvar_int_to_constant 709@ = 510
set_lvar_int_to_constant 710@ = 510
set_lvar_int_to_constant 711@ = 510
set_lvar_int_to_constant 712@ = 510
652@ = 35.0
653@ = 30.0
654@ = 28.0
goto @MTBIKER_4323

:MTBIKER_3104
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_3138
Text.PrintBig('MTROUT3', 3000, TextStyle.MiddleSmallerHigher)

:MTBIKER_3138
103@ = -2432.876
223@ = -1939.654
343@ = 303.7731
463@ = 273.0
104@ = -2339.998
224@ = -1941.224
344@ = 295.8086
464@ = 269.6869
105@ = -2286.782
225@ = -1940.24
345@ = 268.8093
465@ = 245.1214
106@ = -2234.891
226@ = -1925.067
346@ = 242.4752
466@ = 300.1313
107@ = -2205.429
227@ = -1914.029
347@ = 239.2782
467@ = 269.1174
108@ = -2204.861
228@ = -1914.031
348@ = 239.1954
468@ = 269.4709
109@ = -2173.895
229@ = -1903.88
349@ = 233.6897
469@ = 314.003
110@ = -2169.728
230@ = -1885.136
350@ = 231.1551
470@ = 8.2283
111@ = -2173.511
231@ = -1861.948
351@ = 222.7416
471@ = 13.9626
112@ = -2173.641
232@ = -1843.246
352@ = 217.9074
472@ = 13.6434
113@ = -2148.431
233@ = -1792.73
353@ = 210.1444
473@ = 294.9009
114@ = -2129.241
234@ = -1775.973
354@ = 207.5088
474@ = 313.3039
115@ = -2109.724
235@ = -1755.573
355@ = 195.2899
475@ = 332.9617
116@ = -2101.756
236@ = -1744.009
356@ = 195.9091
476@ = 324.6714
117@ = -2072.08
237@ = -1644.9
357@ = 174.3308
477@ = 357.332
118@ = -2050.7
238@ = -1571.491
358@ = 137.474
478@ = 272.8463
119@ = -2041.665
239@ = -1509.007
359@ = 124.2398
479@ = 16.1558
120@ = -2033.56
240@ = -1438.604
360@ = 93.2658
480@ = 210.8019
121@ = -1991.328
241@ = -1596.526
361@ = 86.5936
481@ = 182.1263
122@ = -2027.707
242@ = -1789.331
362@ = 96.554
482@ = 160.6694
123@ = -2099.854
243@ = -1890.88
363@ = 109.2095
483@ = 175.6702
124@ = -2118.301
244@ = -1948.25
364@ = 99.0724
484@ = 162.0987
125@ = -2233.649
245@ = -2117.046
365@ = 67.2467
485@ = 134.1193
126@ = -2373.892
246@ = -2194.998
366@ = 32.3799
486@ = 115.9183
700@ = 24
92@ = 3
set_lvar_int_to_constant 701@ = 51
set_lvar_int_to_constant 702@ = 52
set_lvar_int_to_constant 703@ = 23
set_lvar_int_to_constant 707@ = 510
set_lvar_int_to_constant 708@ = 510
set_lvar_int_to_constant 709@ = 510
652@ = 40.0
653@ = 30.0
654@ = 25.0
Streaming.RequestCarRecording(829)
Streaming.RequestCarRecording(830)
Streaming.RequestCarRecording(831)
Streaming.RequestCarRecording(832)
Streaming.RequestCarRecording(833)
Streaming.RequestCarRecording(834)

:MTBIKER_4217
if or
  not Streaming.HasCarRecordingBeenLoaded(829)
  not Streaming.HasCarRecordingBeenLoaded(830)
  not Streaming.HasCarRecordingBeenLoaded(831)
  not Streaming.HasCarRecordingBeenLoaded(832)
  not Streaming.HasCarRecordingBeenLoaded(833)
  not Streaming.HasCarRecordingBeenLoaded(834)
goto_if_false @MTBIKER_4269
wait 0
goto @MTBIKER_4217

:MTBIKER_4269
780@ = Checkpoint.Create(CheckpointType.TubeArrow, 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 777@, 778@, 779@, 6.0)
Checkpoint.Delete(780@)
goto @MTBIKER_4323

:MTBIKER_4323
set_lvar_float_to_lvar_float 655@ = 654@

:MTBIKER_4331
if 
  not Player.IsPlaying($player1)
goto_if_false @MTBIKER_4358
wait 0
goto @MTBIKER_4331

:MTBIKER_4358
World.ClearArea(103@, 223@, 343@, 0.5, False)
Streaming.LoadScene(103@, 223@, 343@)
World.DisableAllEntryExits(True)
set_lvar_int_to_lvar_int 713@ = 700@
713@ -= 1
643@ = 0
644@ = 0
645@ = 0
646@ = 0
set_lvar_int_to_lvar_int 744@ = 92@

:MTBIKER_4442
if 
  is_int_lvar_greater_than_int_lvar 744@ > 644@
goto_if_false @MTBIKER_4486
745@(644@,10i) = 0
644@ += 1
goto @MTBIKER_4442

:MTBIKER_4486
755@ = Blip.AddForCoord(103@, 223@, 343@)
756@ = 0

:MTBIKER_4507
wait 0
$game_timer = Clock.GetGameTimer()
758@ = 0
644@ = 0
if 
  756@ == 0
goto_if_false @MTBIKER_4734
if 
  not Char.IsDead($scplayer)
goto_if_false @MTBIKER_4734
Char.SetCoordinates($scplayer, 103@, 223@, 343@)
if 
  Char.LocateAnyMeans2D($scplayer, 104@, 224@, 100.0, 100.0, False)
goto_if_false @MTBIKER_4734
643@ = 0
set_var_float_to_lvar_float $x = 103@
$x += 7.0
set_var_float_to_lvar_float $y = 223@
$y += 7.0
set_var_float_to_lvar_float $z = 343@
$z += 4.0
set_lvar_float_to_lvar_float 659@ = 103@
659@ -= 7.0
set_lvar_float_to_lvar_float 660@ = 223@
660@ -= 7.0
set_lvar_float_to_lvar_float 661@ = 343@
661@ -= 4.0
756@ += 1

:MTBIKER_4734
if 
  756@ == 1
goto_if_false @MTBIKER_4854
set_lvar_int_to_lvar_int 647@ = 744@
647@ -= 1
if and
  Streaming.HasModelLoaded(701@(643@,6i))
  Streaming.HasModelLoaded(707@(643@,6i))
goto_if_false @MTBIKER_4810
643@ += 1
goto @MTBIKER_4828

:MTBIKER_4810
Streaming.RequestModel(701@(643@,6i))
Streaming.RequestModel(707@(643@,6i))

:MTBIKER_4828
if 
  is_int_lvar_equal_to_int_lvar 643@ == 647@
goto_if_false @MTBIKER_4854
756@ += 1

:MTBIKER_4854
if 
  756@ == 2
goto_if_false @MTBIKER_6493
774@ = Car.Create(707@, 103@, 223@, 343@)
Car.TurnToFaceCoord(774@, 104@, 224@)
set_lvar_int_to_lvar_int 647@ = 744@
647@ -= 1
644@ = 0

:MTBIKER_4922
if 
  is_int_lvar_greater_than_int_lvar 744@ > 644@
goto_if_false @MTBIKER_6253
set_lvar_int_to_lvar_int 645@ = 644@
645@ /= 2
645@ *= 2
if 
  is_int_lvar_equal_to_int_lvar 645@ == 644@
goto_if_false @MTBIKER_5040
$x = 2.0
set_lvar_int_to_lvar_int 646@ = 644@
646@ *= 4
cset_lvar_float_to_lvar_int 662@ =# 646@
662@ *= -3.0
set_var_float_to_lvar_float $y = 662@
goto @MTBIKER_5098

:MTBIKER_5040
$x = -2.0
set_lvar_int_to_lvar_int 646@ = 644@
646@ -= 1
646@ *= 4
cset_lvar_float_to_lvar_int 662@ =# 646@
662@ *= -1.2
set_var_float_to_lvar_float $y = 662@

:MTBIKER_5098
$x, $y, $z = Car.GetOffsetInWorldCoords(774@, $x, $y, $z)
663@ = Car.GetHeading(774@)
set_var_float_to_lvar_float $z = 343@
set_lvar_float_to_var_float 714@(644@,6f) = $x
set_lvar_float_to_var_float 720@(644@,6f) = $y
$z = World.GetGroundZFor3DCoord($x, $y, $z)
set_lvar_float_to_var_float 726@(644@,6f) = $z
if 
  is_int_lvar_greater_than_int_lvar 647@ > 644@
goto_if_false @MTBIKER_5492
732@(644@,6i) = Car.Create(707@(644@,6i), $x, $y, $z)
StuckCarCheck.AddWithWarp(732@(644@,6i), 0.5, 5000, True, False, True, 1)
Car.SetTraction(732@(644@,6i), 1.5)
Streaming.MarkModelAsNoLongerNeeded(707@(644@,6i))
Car.SetHeading(732@(644@,6i), 663@)
Car.SetProofs(732@(644@,6i), False, True, False, False, False)
Car.SetWatertight(732@(644@,6i), True)
Car.SetStrong(732@(644@,6i), True)
Car.SetUpsidedownNotDamaged(732@(644@,6i), True)
Car.SetStraightLineDistance(732@(644@,6i), 5)
Car.SetCanBurstTires(732@(644@,6i), False)
738@(644@,6i) = Char.CreateInsideCar(732@(644@,6i), PedType.CivMale, 701@(644@,6i))
Char.ClearLastDamageEntity(738@(644@,6i))
Streaming.MarkModelAsNoLongerNeeded(701@(644@,6i))
Char.SetCanBeShotInVehicle(738@(644@,6i), False)
Char.SetDecisionMaker(738@(644@,6i), 669@)
Car.ImproveByCheating(732@(644@,6i), True)
Car.SetIdle(732@(644@,6i))
Car.SetDrivingStyle(732@(644@,6i), DrivingMode.AvoidCars)
Car.SetCruiseSpeed(732@(644@,6i), 655@)
Car.SetOnlyDamagedByPlayer(732@(644@,6i), True)
goto @MTBIKER_6239

:MTBIKER_5492
$x, $y, $z = Car.GetOffsetInWorldCoords(774@, -4.0435, 6.5755, -0.8)
770@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(770@, 103@, 223@, 343@)
$x, $y, $z = Car.GetOffsetInWorldCoords(774@, -5.6392, 2.9435, -0.8)
759@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(759@, 103@, 223@, 343@)
$x, $y, $z = Car.GetOffsetInWorldCoords(774@, -6.0071, -2.0778, -0.8)
760@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(760@, 103@, 223@, 343@)
$x, $y, $z = Car.GetOffsetInWorldCoords(774@, -7.6039, -5.0807, -0.8)
761@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(761@, 103@, 223@, 343@)
$x, $y, $z = Car.GetOffsetInWorldCoords(774@, -7.0724, -6.4057, -0.8)
762@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(762@, 103@, 223@, 343@)
$x, $y, $z = Car.GetOffsetInWorldCoords(774@, -5.9988, -13.553, -0.8)
763@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(763@, 103@, 223@, 343@)
$x, $y, $z = Car.GetOffsetInWorldCoords(774@, 6.073, -15.2059, -0.8)
764@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(764@, 103@, 223@, 343@)
$x, $y, $z = Car.GetOffsetInWorldCoords(774@, 7.2639, -12.9933, -0.8)
765@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(765@, 103@, 223@, 343@)
$x, $y, $z = Car.GetOffsetInWorldCoords(774@, 5.8429, -7.7069, -0.8)
766@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(766@, 103@, 223@, 343@)
$x, $y, $z = Car.GetOffsetInWorldCoords(774@, 8.4135, -3.7971, -0.8)
767@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(767@, 103@, 223@, 343@)
$x, $y, $z = Car.GetOffsetInWorldCoords(774@, 6.2507, 0.3634, -0.8)
768@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(768@, 103@, 223@, 343@)
$x, $y, $z = Car.GetOffsetInWorldCoords(774@, 8.6397, 2.419, -0.8)
769@ = Char.CreateRandom($x, $y, $z)
Task.TurnCharToFaceCoord(769@, 103@, 223@, 343@)
Car.Delete(774@)
Blip.Remove(755@)
755@ = Blip.AddForCoord(714@(647@,6f), 720@(647@,6f), 726@(647@,6f))
World.SetCarDensityMultiplier(0.5)
set_lvar_int_to_var_int 738@(644@,6i) = $scplayer
set_lvar_int_to_lvar_int 757@ = 644@

:MTBIKER_6239
644@ += 1
goto @MTBIKER_4922

:MTBIKER_6253
756@ += 1
if 
  not Char.IsDead($scplayer)
goto_if_false @MTBIKER_6349
732@(757@,6i) = Char.StoreCarIsIn($scplayer)
Car.SetHealth(732@(757@,6i), 500)
Car.ClearLastDamageEntity(732@(757@,6i))
Char.SetCoordinates($scplayer, 714@(757@,6f), 720@(757@,6f), 726@(757@,6f))
Car.SetHeading(732@(757@,6i), 463@)
Camera.SetBehindPlayer

:MTBIKER_6349
Hud.SwitchWidescreen(True)
wait 500
Camera.DoFade(1000, Fade.In)
Text.ClearPrints

:MTBIKER_6367
if 
  Camera.GetFadingStatus
goto_if_false @MTBIKER_6391
wait 0
goto @MTBIKER_6367

:MTBIKER_6391
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_6425
Text.PrintNow('MTROUT1', 3000, 6)

:MTBIKER_6425
if 
  $mtbikerace_selection == 2
goto_if_false @MTBIKER_6459
Text.PrintNow('MTROUT2', 3000, 6)

:MTBIKER_6459
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_6493
Text.PrintNow('MTROUT3', 3000, 6)

:MTBIKER_6493
if 
  756@ == 3
goto_if_false @MTBIKER_6819
if 
  not Char.IsDead($scplayer)
goto_if_false @MTBIKER_6819
set_lvar_int_to_lvar_int 647@ = 744@
647@ -= 1
644@ = 0

:MTBIKER_6549
if 
  is_int_lvar_greater_than_int_lvar 647@ > 644@
goto_if_false @MTBIKER_6740
if or
  Car.IsDead(732@(644@,6i))
  Char.IsDead(738@(644@,6i))
goto_if_false @MTBIKER_6620
Text.PrintNow('RACES25', 5000, 1)
goto @MTBIKER_14389

:MTBIKER_6620
if 
  not Car.IsDead(732@(644@,6i))
goto_if_false @MTBIKER_6726
if 
  not Char.IsDead(738@(644@,6i))
goto_if_false @MTBIKER_6726
if or
  not Car.IsHealthGreater(732@(644@,6i), 999)
  not Char.IsInCar(738@(644@,6i), 732@(644@,6i))
goto_if_false @MTBIKER_6726
Text.PrintBig('RACES_3', 1200, TextStyle.MiddleSmaller)
Hud.DisplayCarNames(False)
756@ = 7

:MTBIKER_6726
644@ += 1
goto @MTBIKER_6549

:MTBIKER_6740
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Game.SetAllCarsCanBeDamaged(False)
Text.PrintBig('RACES_4', 1100, TextStyle.MiddleSmaller)
Sound.AddOneOffSound(0.0, 0.0, 0.0, 65535)
set_lvar_int_to_var_int 771@ = $game_timer
771@ += 999
756@ += 1

:MTBIKER_6819
if 
  756@ == 4
goto_if_false @MTBIKER_6917
if 
  is_int_var_greater_than_int_lvar $game_timer > 771@
goto_if_false @MTBIKER_6917
Text.PrintBig('RACES_5', 1100, TextStyle.MiddleSmaller)
Sound.AddOneOffSound(0.0, 0.0, 0.0, 65535)
set_lvar_int_to_var_int 771@ = $game_timer
771@ += 999
756@ += 1

:MTBIKER_6917
if 
  756@ == 5
goto_if_false @MTBIKER_7015
if 
  is_int_var_greater_than_int_lvar $game_timer > 771@
goto_if_false @MTBIKER_7015
Text.PrintBig('RACES_6', 1100, TextStyle.MiddleSmaller)
Sound.AddOneOffSound(0.0, 0.0, 0.0, 65535)
set_lvar_int_to_var_int 771@ = $game_timer
771@ += 999
756@ += 1

:MTBIKER_7015
if 
  756@ == 6
goto_if_false @MTBIKER_7242
if 
  is_int_var_greater_than_int_lvar $game_timer > 771@
goto_if_false @MTBIKER_7242
if 
  not Char.IsDead($scplayer)
goto_if_false @MTBIKER_7242
Text.PrintBig('RACES_7', 800, TextStyle.MiddleSmaller)
Sound.AddOneOffSound(0.0, 0.0, 0.0, 65535)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Game.SetAllCarsCanBeDamaged(True)
Camera.Restore
Hud.SwitchWidescreen(False)
Hud.DisplayCarNames(False)
set_lvar_int_to_var_int 651@ = $game_timer
set_lvar_int_to_lvar_int 647@ = 744@
647@ -= 1
644@ = 0

:MTBIKER_7164
if 
  is_int_lvar_greater_than_int_lvar 647@ > 644@
goto_if_false @MTBIKER_7228
if 
  not Car.IsDead(732@(644@,6i))
goto_if_false @MTBIKER_7214
Car.SetOnlyDamagedByPlayer(732@(644@,6i), False)

:MTBIKER_7214
644@ += 1
goto @MTBIKER_7164

:MTBIKER_7228
771@ = 0
756@ += 1

:MTBIKER_7242
if 
  756@ > 6
goto_if_false @MTBIKER_12462

:MTBIKER_7260
if 
  is_int_lvar_greater_than_int_lvar 744@ > 644@
goto_if_false @MTBIKER_11786
if 
  not Char.IsDead($scplayer)
goto_if_false @MTBIKER_11772
if 
  not Char.IsDead(738@(644@,6i))
goto_if_false @MTBIKER_9565
if 
  not is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_7431
if 
  Char.HasBeenDamagedByChar(738@(644@,6i), $scplayer)
goto_if_false @MTBIKER_7431
if 
  not Car.IsDead(732@(757@,6i))
goto_if_false @MTBIKER_7431
if 
  not Char.HasBeenDamagedByCar(738@(644@,6i), 732@(757@,6i))
goto_if_false @MTBIKER_7431
Text.PrintNow('RACES25', 5000, 1)
goto @MTBIKER_14389

:MTBIKER_7431
if 
  756@ == 8
goto_if_false @MTBIKER_9176
if 
  not is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_9176
if 
  is_int_lvar_equal_to_int_lvar 745@(757@,10i) == 745@(644@,10i)
goto_if_false @MTBIKER_7614
$x, $y, $z = Char.GetCoordinates(738@(644@,6i))
773@ = Math.GetDistanceBetweenCoords2D($x, $y, 714@(644@,6f), 720@(644@,6f))
$x, $y, $z = Char.GetCoordinates($scplayer)
664@ = Math.GetDistanceBetweenCoords2D($x, $y, 714@(644@,6f), 720@(644@,6f))
if 
  is_float_lvar_greater_than_float_lvar 664@ > 773@
goto_if_false @MTBIKER_7607
758@ += 1

:MTBIKER_7607
goto @MTBIKER_7648

:MTBIKER_7614
if 
  is_int_lvar_greater_than_int_lvar 745@(644@,10i) > 745@(757@,10i)
goto_if_false @MTBIKER_7648
758@ += 1

:MTBIKER_7648
if 
  not Char.IsDead(738@(644@,6i))
goto_if_false @MTBIKER_7764
if 
  not Char.LocateAnyMeans2D(738@(644@,6i), 62@(644@,10f), 72@(644@,10f), 3.0, 3.0, False)
goto_if_false @MTBIKER_7764
62@(644@,10f), 72@(644@,10f), $z = Char.GetCoordinates(738@(644@,6i))
set_lvar_int_to_var_int 93@(644@,10i) = $game_timer
93@(644@,10i) += 2000

:MTBIKER_7764
if 
  not Char.IsDead(738@(644@,6i))
goto_if_false @MTBIKER_8607
if 
  not Car.IsDead(732@(644@,6i))
goto_if_false @MTBIKER_7974
if 
  670@(644@,10i) == 0
goto_if_false @MTBIKER_7864
if 
  not Char.IsInCar(738@(644@,6i), 732@(644@,6i))
goto_if_false @MTBIKER_7864
670@(644@,10i) = 1

:MTBIKER_7864
if 
  670@(644@,10i) == 1
goto_if_false @MTBIKER_7974
if 
  Char.IsInCar(738@(644@,6i), 732@(644@,6i))
goto_if_false @MTBIKER_7974
Char.ClearTasks(738@(644@,6i))
Task.CarDriveToCoord(738@(644@,6i), -1, 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 655@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)
670@(644@,10i) = 0

:MTBIKER_7974
if 
  Char.LocateAnyMeans2D(738@(644@,6i), 62@(644@,10f), 72@(644@,10f), 3.0, 3.0, False)
goto_if_false @MTBIKER_8607
if 
  is_int_var_greater_than_int_lvar $game_timer > 93@(644@,10i)
goto_if_false @MTBIKER_8607
if 
  not Char.IsOnScreen(738@(644@,6i))
goto_if_false @MTBIKER_8607
if 
  not Car.IsDead(732@(644@,6i))
goto_if_false @MTBIKER_8284
if 
  not Char.IsInCar(738@(644@,6i), 732@(644@,6i))
goto_if_false @MTBIKER_8277
665@ = Car.GetDriver(732@(644@,6i))
if 
  665@ == -1
goto_if_false @MTBIKER_8163
Char.WarpIntoCar(738@(644@,6i), 732@(644@,6i))
goto @MTBIKER_8277

:MTBIKER_8163
Car.MarkAsNoLongerNeeded(732@(644@,6i))
732@(644@,6i) = Car.Create(707@(644@,6i), $x, $y, $z)
Char.WarpIntoCar(738@(644@,6i), 732@(644@,6i))
Car.TurnToFaceCoord(732@(644@,6i), 714@(644@,6f), 720@(644@,6f))
Task.CarDriveToCoord(738@(644@,6i), -1, 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 655@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)

:MTBIKER_8277
goto @MTBIKER_8398

:MTBIKER_8284
Car.Delete(732@(644@,6i))
732@(644@,6i) = Car.Create(707@(644@,6i), $x, $y, $z)
Char.WarpIntoCar(738@(644@,6i), 732@(644@,6i))
Car.TurnToFaceCoord(732@(644@,6i), 714@(644@,6f), 720@(644@,6f))
Task.CarDriveToCoord(738@(644@,6i), -1, 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 655@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)

:MTBIKER_8398
$x, $y, $z = Char.GetCoordinates(738@(644@,6i))
$x, $y, $z = Path.GetClosestCarNode($x, $y, $z)
if 
  not World.IsPointObscuredByAMissionEntity($x, $y, $z, 10.0, 10.0, 10.0)
goto_if_false @MTBIKER_8607
if 
  not Camera.IsPointOnScreen($x, $y, $z, 4.0)
goto_if_false @MTBIKER_8607
Char.SetCoordinates(738@(644@,6i), $x, $y, $z)
if 
  Char.IsInAnyCar(738@(644@,6i))
goto_if_false @MTBIKER_8607
774@ = Char.StoreCarIsInNoSave(738@(644@,6i))
Char.SetHeading(738@(644@,6i), 463@(644@,120f))
Task.CarDriveToCoord(738@(644@,6i), -1, 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 655@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)

:MTBIKER_8607
if 
  Char.IsInAnyCar(738@(644@,6i))
goto_if_false @MTBIKER_8658
set_lvar_int_to_lvar_int 647@ = 745@(757@,10i)
647@ += 5
774@ = Char.StoreCarIsInNoSave(738@(644@,6i))

:MTBIKER_8658
643@ = 0
646@ = 0

:MTBIKER_8672
if 
  is_int_lvar_greater_than_int_lvar 744@ > 643@
goto_if_false @MTBIKER_8754
set_lvar_int_to_lvar_int 775@ = 745@(643@,10i)
775@ -= 3
if 
  is_int_lvar_greater_than_int_lvar 775@ > 745@(644@,10i)
goto_if_false @MTBIKER_8740
646@ += 1

:MTBIKER_8740
643@ += 1
goto @MTBIKER_8672

:MTBIKER_8754
if 
  646@ > 0
goto_if_false @MTBIKER_9176
if 
  not Char.IsDead(738@(644@,6i))
goto_if_false @MTBIKER_9176
if 
  not Char.LocateAnyMeansChar3D($scplayer, 738@(644@,6i), 30.0, 30.0, 5.0, False)
goto_if_false @MTBIKER_9176
if 
  not Char.IsOnScreen(738@(644@,6i))
goto_if_false @MTBIKER_9176
if 
  not World.IsPointObscuredByAMissionEntity(714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 10.0, 10.0, 10.0)
goto_if_false @MTBIKER_9176
if 
  not Camera.IsPointOnScreen(714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 4.0)
goto_if_false @MTBIKER_9176
Char.SetCoordinates(738@(644@,6i), 714@(644@,6f), 720@(644@,6f), 726@(644@,6f))
if 
  Char.IsInAnyCar(738@(644@,6i))
goto_if_false @MTBIKER_9066
774@ = Char.StoreCarIsInNoSave(738@(644@,6i))
Char.SetHeading(738@(644@,6i), 463@(644@,120f))
Task.CarDriveToCoord(738@(644@,6i), -1, 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 655@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)
goto @MTBIKER_9176

:MTBIKER_9066
732@(644@,6i) = Car.Create(707@(644@,6i), 714@(644@,6f), 720@(644@,6f), 726@(644@,6f))
Char.WarpIntoCar(738@(644@,6i), 732@(644@,6i))
Char.SetHeading(738@(644@,6i), 463@(644@,120f))
Task.CarDriveToCoord(738@(644@,6i), -1, 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 655@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)

:MTBIKER_9176
if 
  656@ == 0
goto_if_false @MTBIKER_9298
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_9298
if 
  not Char.LocateAnyMeans3D(738@(644@,6i), 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 500.0, 500.0, 500.0, False)
goto_if_false @MTBIKER_9298
Text.PrintNow('RACES25', 5000, 1)
goto @MTBIKER_14389

:MTBIKER_9298
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_9493
if and
  13 > 745@(644@,10i)
  745@(644@,10i) > 4
goto_if_false @MTBIKER_9421
if 
  Char.LocateInCar3D(738@(644@,6i), 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 4.0, 4.0, 1.5, False)
goto_if_false @MTBIKER_9414
goto @MTBIKER_12469

:MTBIKER_9414
goto @MTBIKER_9486

:MTBIKER_9421
if 
  Char.LocateInCar3D(738@(644@,6i), 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 15.0, 15.0, 5.0, False)
goto_if_false @MTBIKER_9486
goto @MTBIKER_12469

:MTBIKER_9486
goto @MTBIKER_9558

:MTBIKER_9493
if 
  Char.LocateInCar3D(738@(644@,6i), 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 15.0, 15.0, 5.0, False)
goto_if_false @MTBIKER_9558
goto @MTBIKER_12469

:MTBIKER_9558
goto @MTBIKER_9619

:MTBIKER_9565
if 
  not is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_9619
if 
  not Char.IsInWater(738@(644@,6i))
goto_if_false @MTBIKER_9619
745@(644@,10i) = 0

:MTBIKER_9619
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_11378
if 
  not Car.IsDead(732@(757@,6i))
goto_if_false @MTBIKER_11346
583@(644@,10f), 593@(644@,10f), 603@(644@,10f) = Char.GetCoordinates(738@(757@,6i))
613@, 623@, 633@ = Car.GetCoordinates(732@(757@,6i))
sub_float_lvar_from_float_lvar 603@(644@,10f) -= 726@(644@,6f)
sub_float_lvar_from_float_lvar 633@ -= 726@(644@,6f)
if or
  -24.5 > 603@(644@,10f)
  -24.5 > 633@
goto_if_false @MTBIKER_10117
if 
  657@ == 0
goto_if_false @MTBIKER_9814
657@ = 1
set_lvar_int_to_var_int 668@ = $game_timer
668@ += 1500

:MTBIKER_9814
if 
  657@ == 1
goto_if_false @MTBIKER_10110
set_lvar_int_to_lvar_int 649@ = 668@
sub_int_var_from_int_lvar 649@ -= $game_timer
649@ /= 1000
if 
  1 > 649@
goto_if_false @MTBIKER_9881
649@ = 0

:MTBIKER_9881
if 
  is_int_var_greater_than_int_lvar $game_timer > 668@
goto_if_false @MTBIKER_10110
set_lvar_int_to_lvar_int 658@ = 745@(644@,10i)
658@ -= 1
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)

:MTBIKER_9933
if 
  Camera.GetFadingStatus
goto_if_false @MTBIKER_9957
wait 0
goto @MTBIKER_9933

:MTBIKER_9957
if 
  not Car.IsDead(732@(757@,6i))
goto_if_false @MTBIKER_10066
if 
  not Char.IsInCar(738@(644@,6i), 732@(757@,6i))
goto_if_false @MTBIKER_10020
Char.WarpIntoCar(738@(644@,6i), 732@(757@,6i))

:MTBIKER_10020
Car.SetCoordinates(732@(757@,6i), 103@(658@,120f), 223@(658@,120f), 343@(658@,120f))
Car.SetHeading(732@(757@,6i), 463@(658@,120f))

:MTBIKER_10066
Camera.DoFade(500, Fade.In)
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:MTBIKER_10077
if 
  Camera.GetFadingStatus
goto_if_false @MTBIKER_10101
wait 0
goto @MTBIKER_10077

:MTBIKER_10101
Camera.SetBehindPlayer
Player.SetControl($player1, True)

:MTBIKER_10110
goto @MTBIKER_10142

:MTBIKER_10117
if 
  657@ == 1
goto_if_false @MTBIKER_10142
657@ = 0

:MTBIKER_10142
if 
  not Car.IsDead(732@(757@,6i))
goto_if_false @MTBIKER_11339
if 
  not Char.IsInCar($scplayer, 732@(757@,6i))
goto_if_false @MTBIKER_11046
if 
  656@ == 0
goto_if_false @MTBIKER_10297
Checkpoint.Delete(780@)
Blip.Remove(755@)
if 
  not Car.IsDead(732@(757@,6i))
goto_if_false @MTBIKER_10252
755@ = Blip.AddForCar(732@(757@,6i))
Blip.SetAsFriendly(755@, True)

:MTBIKER_10252
set_lvar_int_to_lvar_int 666@ = 644@
720@(644@,6f) += 1000.0
set_lvar_int_to_var_int 667@ = $game_timer
667@ += 25400
656@ = 1

:MTBIKER_10297
set_lvar_int_to_lvar_int 649@ = 667@
sub_int_var_from_int_lvar 649@ -= $game_timer
649@ /= 1000
if 
  1 > 649@
goto_if_false @MTBIKER_10346
649@ = 0

:MTBIKER_10346
if 
  is_int_var_greater_than_int_lvar $game_timer > 667@
goto_if_false @MTBIKER_10390
Text.PrintNow('RACES20', 5000, 1)
goto @MTBIKER_14389
return 

:MTBIKER_10390
if 
  649@ == 1
goto_if_false @MTBIKER_10438
Text.AddNextMessageToPreviousBriefs(False)
Text.PrintWithNumberNow('RACE_51', 649@, 200, 1)
goto @MTBIKER_10461

:MTBIKER_10438
Text.AddNextMessageToPreviousBriefs(False)
Text.PrintWithNumberNow('RACES50', 649@, 200, 1)

:MTBIKER_10461
if 
  is_int_lvar_equal_to_int_lvar 745@(644@,10i) == 700@
goto_if_false @MTBIKER_11039
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_11039
if 
  is_int_var_greater_than_int_var $game_timer > $mtbikerace_best_times($mtbikerace_selection,5i)
goto_if_false @MTBIKER_10711
set_var_int_to_var_int $mtbikerace_best_times($mtbikerace_selection,5i) = $game_timer
set_lvar_int_to_var_int 776@ = $game_timer
sub_int_lvar_from_int_lvar 776@ -= 651@
set_var_int_to_var_int $mtbikerace_best_times($mtbikerace_selection,5i) = $game_timer
Stat.RegisterFastestTime(StatId.Longest2WheelDist, $mtbikerace_best_times($mtbikerace_selection,5i))
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_10682
Text.PrintWith2NumbersBig('LAPMTB2', 648@, 649@, 5000, TextStyle.WhiteMiddleSmaller)
goto @MTBIKER_10704

:MTBIKER_10682
Text.PrintWith2NumbersBig('LAPMTB', 648@, 649@, 5000, TextStyle.WhiteMiddleSmaller)

:MTBIKER_10704
goto @MTBIKER_10993

:MTBIKER_10711
set_lvar_int_to_var_int 776@ = $mtbikerace_best_times($mtbikerace_selection,5i)
sub_int_lvar_from_int_lvar 776@ -= 651@
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_10832
Text.PrintWith2NumbersBig('RACES08', 648@, 649@, 5000, TextStyle.WhiteMiddleSmaller)
goto @MTBIKER_10854

:MTBIKER_10832
Text.PrintWith2NumbersBig('RACES22', 648@, 649@, 5000, TextStyle.WhiteMiddleSmaller)

:MTBIKER_10854
set_lvar_int_to_var_int 776@ = $game_timer
sub_int_lvar_from_int_lvar 776@ -= 651@
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_10971
Text.PrintWith2NumbersBig('RACE_52', 648@, 649@, 5000, TextStyle.MiddleSmaller)
goto @MTBIKER_10993

:MTBIKER_10971
Text.PrintWith2NumbersBig('RACE_53', 648@, 649@, 5000, TextStyle.MiddleSmaller)

:MTBIKER_10993
758@ += 1
if 
  758@ == 1
goto_if_false @MTBIKER_11032
goto @MTBIKER_14407
goto @MTBIKER_11039

:MTBIKER_11032
goto @MTBIKER_14389

:MTBIKER_11039
goto @MTBIKER_11339

:MTBIKER_11046
if 
  656@ == 1
goto_if_false @MTBIKER_11339
Text.ClearThisPrint('RACES50')
Blip.Remove(755@)
720@(644@,6f) -= 1000.0
645@ = 0
set_lvar_int_to_lvar_int 647@ = 92@
647@ -= 1
755@ = Blip.AddForCoord(714@(666@,6f), 720@(666@,6f), 726@(666@,6f))
Blip.ChangeColor(755@, BlipColor.Red)
Blip.ChangeDisplay(755@, BlipDisplay.BlipOnly)
Blip.ChangeScale(755@, 3)
if 
  is_int_lvar_equal_to_int_lvar 745@(666@,10i) == 713@
goto_if_false @MTBIKER_11241
780@ = Checkpoint.Create(CheckpointType.TubeEnd, 714@(666@,6f), 720@(666@,6f), 726@(666@,6f), 0.0, 0.0, 0.0, 6.0)
goto @MTBIKER_11332

:MTBIKER_11241
set_lvar_int_to_lvar_int 647@ = 745@(666@,10i)
647@ += 1
if 
  is_int_lvar_equal_to_int_lvar 745@(666@,10i) == 713@
goto_if_false @MTBIKER_11290
647@ = 1

:MTBIKER_11290
780@ = Checkpoint.Create(CheckpointType.TubeArrow, 714@(666@,6f), 720@(666@,6f), 726@(666@,6f), 777@, 778@, 779@, 6.0)

:MTBIKER_11332
656@ = 0

:MTBIKER_11339
goto @MTBIKER_11371

:MTBIKER_11346
Text.PrintNow('RACES24', 5000, 1)
goto @MTBIKER_14389
return 

:MTBIKER_11371
goto @MTBIKER_11772

:MTBIKER_11378
if 
  not Char.IsDead(738@(644@,6i))
goto_if_false @MTBIKER_11772
if 
  not Car.IsDead(732@(644@,6i))
goto_if_false @MTBIKER_11772
583@(644@,10f), 593@(644@,10f), 603@(644@,10f) = Char.GetCoordinates(738@(644@,6i))
sub_float_lvar_from_float_lvar 603@(644@,10f) -= 726@(644@,6f)
if 
  -15.5 > 603@(644@,10f)
goto_if_false @MTBIKER_11772
if 
  not Camera.IsPointOnScreen(103@(658@,120f), 223@(658@,120f), 343@(658@,120f), 10.0)
goto_if_false @MTBIKER_11772
set_lvar_int_to_lvar_int 658@ = 745@(644@,10i)
658@ -= 1
if 
  Char.IsInCar(738@(644@,6i), 732@(644@,6i))
goto_if_false @MTBIKER_11627
Car.SetCoordinates(732@(644@,6i), 103@(658@,120f), 223@(658@,120f), 343@(658@,120f))
Car.SetHeading(732@(644@,6i), 463@(644@,120f))
goto @MTBIKER_11772

:MTBIKER_11627
665@ = Car.GetDriver(732@(644@,6i))
if 
  665@ == -1
goto_if_false @MTBIKER_11710
Char.WarpIntoCar(738@(644@,6i), 732@(644@,6i))
Car.SetCoordinates(732@(644@,6i), 103@(658@,120f), 223@(658@,120f), 343@(658@,120f))
goto @MTBIKER_11772

:MTBIKER_11710
Car.MarkAsNoLongerNeeded(732@(644@,6i))
732@(644@,6i) = Car.Create(707@(644@,6i), 103@(658@,120f), 223@(658@,120f), 343@(658@,120f))
Char.WarpIntoCar(738@(644@,6i), 732@(644@,6i))

:MTBIKER_11772
644@ += 1
goto @MTBIKER_7260

:MTBIKER_11786
Hud.DrawRect(40@, 47@, 54@, 61@, 0, 0, 0, 255)
Hud.DrawRect(39@, 46@, 53@, 60@, 134, 155, 184, 255)
Hud.DrawRect(34@, 41@, 48@, 55@, 0, 0, 0, 255)
758@ += 1
gosub @MTBIKER_14321
Text.SetScale(49@, 56@)
if 
  758@ == 1
goto_if_false @MTBIKER_11915
Text.Display(35@, 42@, 'ST')

:MTBIKER_11915
if 
  758@ == 2
goto_if_false @MTBIKER_11950
Text.Display(35@, 42@, 'ND')

:MTBIKER_11950
if 
  758@ == 3
goto_if_false @MTBIKER_11985
Text.Display(35@, 42@, 'RD')

:MTBIKER_11985
if 
  758@ > 3
goto_if_false @MTBIKER_12020
Text.Display(35@, 42@, 'TH')

:MTBIKER_12020
if 
  2 >= 758@
goto_if_false @MTBIKER_12105
set_lvar_float_to_lvar_float 655@ = 652@
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_12105
if or
  745@(644@,10i) == 17
  745@(644@,10i) == 16
goto_if_false @MTBIKER_12105
set_lvar_float_to_lvar_float 655@ = 654@

:MTBIKER_12105
if and
  758@ > 2
  4 > 758@
goto_if_false @MTBIKER_12197
set_lvar_float_to_lvar_float 655@ = 653@
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_12197
if or
  745@(644@,10i) == 17
  745@(644@,10i) == 16
goto_if_false @MTBIKER_12197
set_lvar_float_to_lvar_float 655@ = 654@

:MTBIKER_12197
if 
  758@ == 6
goto_if_false @MTBIKER_12223
set_lvar_float_to_lvar_float 655@ = 654@

:MTBIKER_12223
gosub @MTBIKER_14321
Text.SetScale(50@, 57@)
Text.SetCenter(True)
Text.DisplayWithNumber(36@, 43@, 'NUMBER', 758@)
gosub @MTBIKER_14321
Text.SetScale(51@, 58@)
Text.DisplayWithNumber(37@, 44@, 'OUT_OF', 92@)
$game_timer = Clock.GetGameTimer()
set_lvar_int_to_var_int 776@ = $game_timer
sub_int_lvar_from_int_lvar 776@ -= 651@
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
gosub @MTBIKER_14321
Text.SetCenter(True)
Text.SetScale(52@, 59@)
if 
  649@ > 9
goto_if_false @MTBIKER_12439
Text.DisplayWith2Numbers(38@, 45@, 'TIME', 648@, 649@)
goto @MTBIKER_12462

:MTBIKER_12439
Text.DisplayWith2Numbers(38@, 45@, 'TIME_0', 648@, 649@)

:MTBIKER_12462
goto @MTBIKER_4507

:MTBIKER_12469
if 
  756@ == 7
goto_if_false @MTBIKER_12494
756@ = 8

:MTBIKER_12494
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_12542
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundPartMissionComplete)
Blip.Remove(755@)

:MTBIKER_12542
745@(644@,10i) += 1
if 
  is_int_lvar_equal_to_int_lvar 745@(644@,10i) == 700@
goto_if_false @MTBIKER_13249
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_13138
if 
  is_int_var_greater_than_int_var $game_timer > $mtbikerace_best_times($mtbikerace_selection,5i)
goto_if_false @MTBIKER_12803
set_var_int_to_var_int $mtbikerace_best_times($mtbikerace_selection,5i) = $game_timer
set_lvar_int_to_var_int 776@ = $game_timer
sub_int_lvar_from_int_lvar 776@ -= 651@
set_var_int_to_var_int $mtbikerace_best_times($mtbikerace_selection,5i) = $game_timer
Stat.RegisterFastestTime(StatId.Longest2WheelDist, $mtbikerace_best_times($mtbikerace_selection,5i))
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_12774
Text.PrintWith2NumbersBig('LAPMTB2', 648@, 649@, 5000, TextStyle.WhiteMiddleSmaller)
goto @MTBIKER_12796

:MTBIKER_12774
Text.PrintWith2NumbersBig('LAPMTB', 648@, 649@, 5000, TextStyle.WhiteMiddleSmaller)

:MTBIKER_12796
goto @MTBIKER_13085

:MTBIKER_12803
set_lvar_int_to_var_int 776@ = $mtbikerace_best_times($mtbikerace_selection,5i)
sub_int_lvar_from_int_lvar 776@ -= 651@
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_12924
Text.PrintWith2NumbersBig('RACES08', 648@, 649@, 5000, TextStyle.WhiteMiddleSmaller)
goto @MTBIKER_12946

:MTBIKER_12924
Text.PrintWith2NumbersBig('RACES22', 648@, 649@, 5000, TextStyle.WhiteMiddleSmaller)

:MTBIKER_12946
set_lvar_int_to_var_int 776@ = $game_timer
sub_int_lvar_from_int_lvar 776@ -= 651@
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_13063
Text.PrintWith2NumbersBig('TIME', 648@, 649@, 5000, TextStyle.MiddleSmaller)
goto @MTBIKER_13085

:MTBIKER_13063
Text.PrintWith2NumbersBig('TIME_0', 648@, 649@, 5000, TextStyle.MiddleSmaller)

:MTBIKER_13085
758@ += 1
if 
  758@ == 1
goto_if_false @MTBIKER_13124
goto @MTBIKER_14407
goto @MTBIKER_13131

:MTBIKER_13124
goto @MTBIKER_14389

:MTBIKER_13131
goto @MTBIKER_13249

:MTBIKER_13138
Task.CarTempAction(738@(644@,6i), -1, TempAction.HandbrakeStraight, 2000000)
set_lvar_int_to_lvar_int 658@ = 745@(644@,10i)
658@ -= 1
if 
  not Camera.IsPointOnScreen(714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 30.0)
goto_if_false @MTBIKER_13249
if 
  not Car.IsDead(774@)
goto_if_false @MTBIKER_13249
Car.TurnToFaceCoord(774@, 103@(658@,120f), 223@(658@,120f))

:MTBIKER_13249
set_lvar_int_to_lvar_int 647@ = 745@(644@,10i)
set_lvar_float_to_lvar_float 714@(644@,6f) = 103@(647@,120f)
set_lvar_float_to_lvar_float 720@(644@,6f) = 223@(647@,120f)
set_lvar_float_to_lvar_float 726@(644@,6f) = 343@(647@,120f)
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_13690
647@ += 1
set_lvar_float_to_lvar_float 777@ = 103@(647@,120f)
set_lvar_float_to_lvar_float 778@ = 223@(647@,120f)
set_lvar_float_to_lvar_float 779@ = 343@(647@,120f)
755@ = Blip.AddForCoord(714@(644@,6f), 720@(644@,6f), 726@(644@,6f))
Blip.ChangeColor(755@, BlipColor.Red)
Blip.ChangeDisplay(755@, BlipDisplay.BlipOnly)
Blip.ChangeScale(755@, 3)
if 
  756@ == 1
goto_if_false @MTBIKER_13482
780@ = Checkpoint.Create(CheckpointType.TubeArrow, 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 777@, 778@, 779@, 6.0)

:MTBIKER_13482
Checkpoint.Delete(780@)
if 
  is_int_lvar_greater_than_int_lvar 713@ > 745@(644@,10i)
goto_if_false @MTBIKER_13559
780@ = Checkpoint.Create(CheckpointType.TubeArrow, 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 777@, 778@, 779@, 6.0)
goto @MTBIKER_13601

:MTBIKER_13559
780@ = Checkpoint.Create(CheckpointType.TubeEnd, 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 777@, 778@, 779@, 6.0)

:MTBIKER_13601
if 
  745@(644@,10i) == 3
goto_if_false @MTBIKER_13683
Char.MarkAsNoLongerNeeded(770@)
Char.MarkAsNoLongerNeeded(759@)
Char.MarkAsNoLongerNeeded(760@)
Char.MarkAsNoLongerNeeded(761@)
Char.MarkAsNoLongerNeeded(762@)
Char.MarkAsNoLongerNeeded(763@)
Char.MarkAsNoLongerNeeded(764@)
Char.MarkAsNoLongerNeeded(765@)
Char.MarkAsNoLongerNeeded(766@)
Char.MarkAsNoLongerNeeded(767@)
Char.MarkAsNoLongerNeeded(768@)
Char.MarkAsNoLongerNeeded(769@)

:MTBIKER_13683
goto @MTBIKER_14314

:MTBIKER_13690
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_14076
if 
  not Car.IsDead(732@(644@,6i))
goto_if_false @MTBIKER_14069
if 
  745@(644@,10i) == 1
goto_if_false @MTBIKER_13854
if 
  644@ == 0
goto_if_false @MTBIKER_13802
$bags_on_bike = Math.RandomIntInRange(832, 835)
Car.StartPlayback(732@(644@,6i), $bags_on_bike)
Char.SetCanBeKnockedOffBike(738@(644@,6i), True)

:MTBIKER_13802
if 
  644@ == 1
goto_if_false @MTBIKER_13854
$bags_on_bike = Math.RandomIntInRange(829, 832)
Car.StartPlayback(732@(644@,6i), $bags_on_bike)
Char.SetCanBeKnockedOffBike(738@(644@,6i), True)

:MTBIKER_13854
if 
  745@(644@,10i) == 13
goto_if_false @MTBIKER_13976
  Car.IsPlaybackGoingOn(732@(644@,6i))
Car.StopPlayback(732@(644@,6i))
if 
  not is_int_lvar_equal_to_int_lvar 745@(644@,10i) == 700@
goto_if_false @MTBIKER_13976
Char.SetCanBeKnockedOffBike(738@(644@,6i), False)
Task.CarDriveToCoord(738@(644@,6i), -1, 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 655@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)
goto @MTBIKER_9619

:MTBIKER_13976
if 
  745@(644@,10i) > 13
goto_if_false @MTBIKER_14069
if 
  not is_int_lvar_equal_to_int_lvar 745@(644@,10i) == 700@
goto_if_false @MTBIKER_14069
Task.CarDriveToCoord(738@(644@,6i), -1, 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 655@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)
goto @MTBIKER_9619

:MTBIKER_14069
goto @MTBIKER_14314

:MTBIKER_14076
if 
  not is_int_lvar_equal_to_int_lvar 745@(644@,10i) == 700@
goto_if_false @MTBIKER_14147
Task.CarDriveToCoord(738@(644@,6i), -1, 714@(644@,6f), 720@(644@,6f), 726@(644@,6f), 655@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)
goto @MTBIKER_9619

:MTBIKER_14147
if 
  is_int_lvar_greater_or_equal_to_int_lvar 745@(644@,10i) >= 700@
goto_if_false @MTBIKER_14314
if 
  not Car.IsDead(732@(644@,6i))
goto_if_false @MTBIKER_14314
if 
  not Char.IsDead(738@(644@,6i))
goto_if_false @MTBIKER_14314
if 
  Char.IsInCar(738@(644@,6i), 732@(644@,6i))
goto_if_false @MTBIKER_14314
if 
  690@(644@,10i) == 0
goto_if_false @MTBIKER_14314
Char.ClearTasks(738@(644@,6i))
690@(644@,10i) = 1
Task.CarDriveToCoord(738@(644@,6i), -1, -2399.863, -2206.549, 32.5652, 655@, DriveMode.Racing, 1, DrivingMode.SlowDownForCars)

:MTBIKER_14314
goto @MTBIKER_9619

:MTBIKER_14321
Text.SetColor(180, 180, 180, 255)
Text.SetScale(0.6146, 2.4961)
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(False)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
Text.SetDropshadow(2, 0, 0, 0, 180)
return 

:MTBIKER_14389
Text.PrintBig('RACES_8', 5000, TextStyle.Middle)
return 

:MTBIKER_14407
set_lvar_int_to_var_int 646@ = $mtbikerace_selection
646@ += 1
646@ *= 10000
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_14501
Text.PrintBig('RACES18', 500, TextStyle.Middle)
Player.AddScore($player1, 500)
Text.PrintNow('MTWIN1', 5000, 1)
Audio.PlayMissionPassedTune(1)

:MTBIKER_14501
if 
  $mtbikerace_selection == 2
goto_if_false @MTBIKER_14563
Text.PrintNow('MTWIN2', 5000, 1)
Text.PrintBig('RACES18', 1000, TextStyle.Middle)
Player.AddScore($player1, 1000)
Audio.PlayMissionPassedTune(1)

:MTBIKER_14563
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_14625
Text.PrintBig('RACES18', 2000, TextStyle.Middle)
Player.AddScore($player1, 2000)
Text.PrintNow('MTWIN3', 5000, 1)
Audio.PlayMissionPassedTune(2)

:MTBIKER_14625
$mtbikerace_selection += 1
if 
  $mtbikerace_selection > 3
goto_if_false @MTBIKER_14688
if 
  $flag_mtbike_passed_1stime == 0
goto_if_false @MTBIKER_14681
Stat.RegisterOddjobMissionPassed
Stat.PlayerMadeProgress(1)
$flag_mtbike_passed_1stime = 1

:MTBIKER_14681
$mtbikerace_selection = 1

:MTBIKER_14688
return 

:MTBIKER_14690
$onmission = 0
if 
  not Car.IsDead(732@)
goto_if_false @MTBIKER_14734
if 
is_recording_going_on_for_car 732@
goto_if_false @MTBIKER_14734
Car.StopPlayback(732@)

:MTBIKER_14734
if 
  not Car.IsDead(733@)
goto_if_false @MTBIKER_14771
if 
is_recording_going_on_for_car 733@
goto_if_false @MTBIKER_14771
Car.StopPlayback(733@)

:MTBIKER_14771
Streaming.RemoveCarRecording(829)
Streaming.RemoveCarRecording(830)
Streaming.RemoveCarRecording(831)
Streaming.RemoveCarRecording(832)
Streaming.RemoveCarRecording(833)
Streaming.RemoveCarRecording(834)
Streaming.MarkModelAsNoLongerNeeded(701@)
Streaming.MarkModelAsNoLongerNeeded(702@)
Streaming.MarkModelAsNoLongerNeeded(703@)
Streaming.MarkModelAsNoLongerNeeded(704@)
Streaming.MarkModelAsNoLongerNeeded(705@)
Streaming.MarkModelAsNoLongerNeeded(706@)
Streaming.MarkModelAsNoLongerNeeded(707@)
Streaming.MarkModelAsNoLongerNeeded(708@)
Streaming.MarkModelAsNoLongerNeeded(709@)
Streaming.MarkModelAsNoLongerNeeded(710@)
Streaming.MarkModelAsNoLongerNeeded(711@)
Streaming.MarkModelAsNoLongerNeeded(712@)
Char.MarkAsNoLongerNeeded(770@)
Char.MarkAsNoLongerNeeded(759@)
Char.MarkAsNoLongerNeeded(760@)
Char.MarkAsNoLongerNeeded(761@)
Char.MarkAsNoLongerNeeded(762@)
Char.MarkAsNoLongerNeeded(763@)
Char.MarkAsNoLongerNeeded(764@)
Char.MarkAsNoLongerNeeded(765@)
Char.MarkAsNoLongerNeeded(766@)
Char.MarkAsNoLongerNeeded(767@)
Char.MarkAsNoLongerNeeded(768@)
Char.MarkAsNoLongerNeeded(769@)
Hud.DisplayCarNames(True)
Blip.Remove(755@)
$timer_mobile_start = Clock.GetGameTimer()
World.DisableAllEntryExits(False)
Text.SetMessageFormatting(False, 380, 464)
Text.UseCommands(False)
Mission.Finish
return 

//-------------Mission 133---------------
// Originally: BMX / NRG-500 STUNT Mission

:STUNT
gosub @STUNT_36
if 
  has_deatharrest_been_executed 
goto_if_false @STUNT_27
gosub @STUNT_1602

:STUNT_27
gosub @STUNT_2028
terminate_this_script 

:STUNT_36
$onmission = 1
if 
  $steal_car_cargen5 == 0
goto_if_false @STUNT_63
Stat.RegisterMissionGiven

:STUNT_63
script_name 'STUNT'
wait 0
Text.LoadMissionText('STUNT')

:STUNT_89
if 
  not Player.IsPlaying($player1)
goto_if_false @STUNT_116
wait 0
goto @STUNT_89

:STUNT_116
34@ = Char.StoreCarIsIn($scplayer)
Car.SetHealth(34@, 3000)
gosub @STUNT_2129
35@ = 1
56@ = 0

:STUNT_153
if 
  is_int_lvar_greater_than_int_lvar 187@ > 56@
goto_if_false @STUNT_197
36@(56@,20i) = 0
56@ += 1
goto @STUNT_153

:STUNT_197
if 
  $onmission == 0
goto_if_false @STUNT_229
57@ = Blip.AddForCoord($x, $y, $z)

:STUNT_229
58@ = 0
59@ = 0
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
Camera.SetFixedPosition(188@, 189@, 190@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(191@, 192@, 193@, SwitchType.JumpCut)
$game_timer = Clock.GetGameTimer()
set_var_int_to_var_int $random_number_mtbike = $game_timer
$random_number_mtbike += 5000
Text.PrintNow('STUNT_6', 5000, 1)
80@ = 0

:STUNT_355
wait 0
$game_timer = Clock.GetGameTimer()
if 
  58@ == 0
goto_if_false @STUNT_510
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @STUNT_503
if 
  80@ == 1
goto_if_false @STUNT_496
Player.SetControl($player1, True)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
$random_number_mtbike = 11000
Hud.DisplayTimerWithString($random_number_mtbike, TimerDirection.Down, 'STUNT_2')
set_lvar_int_to_var_int 81@ = $game_timer
58@ = 1
80@ = 0

:STUNT_496
goto @STUNT_510

:STUNT_503
80@ = 1

:STUNT_510
if 
  58@ == 0
goto_if_false @STUNT_619
if 
  is_int_var_greater_than_int_var $game_timer > $random_number_mtbike
goto_if_false @STUNT_619
Player.SetControl($player1, True)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
$random_number_mtbike = 11000
Hud.DisplayTimerWithString($random_number_mtbike, TimerDirection.Down, 'STUNT_2')
set_lvar_int_to_var_int 81@ = $game_timer
58@ = 1

:STUNT_619
if 
  not Car.IsDead(34@)
goto_if_false @STUNT_1505
if 
  Char.IsInCar($scplayer, 34@)
goto_if_false @STUNT_1180
if 
  35@ == 1
goto_if_false @STUNT_856
Text.ClearThisPrint('STUNT_1')
Blip.Remove(57@)
56@ = 0

:STUNT_695
if 
  is_int_lvar_greater_than_int_lvar 187@ > 56@
goto_if_false @STUNT_849
if 
  36@(56@,20i) == 0
goto_if_false @STUNT_835
82@(56@,20i) = Blip.AddForCoord(127@(56@,20f), 147@(56@,20f), 167@(56@,20f))
Blip.ChangeColor(82@(56@,20i), BlipColor.Red)
102@(56@,20i) = Checkpoint.Create(CheckpointType.Torus, 127@(56@,20f), 147@(56@,20f), 167@(56@,20f), 127@(56@,20f), 147@(56@,20f), 167@(56@,20f), 0.8)

:STUNT_835
56@ += 1
goto @STUNT_695

:STUNT_849
35@ = 0

:STUNT_856
56@ = 0

:STUNT_863
if 
  is_int_lvar_greater_than_int_lvar 187@ > 56@
goto_if_false @STUNT_1173
if 
  36@(56@,20i) == 0
goto_if_false @STUNT_1159
Checkpoint.SetHeading(102@(56@,20i), 60@(56@,20f))
Fx.DrawShadow(ShadowTextureType.Ped, 127@(56@,20f), 147@(56@,20f), 167@(56@,20f), 0.0, 1.0, 150, 0, 0, 0)
60@(56@,20f) += 10.0
if 
  60@(56@,20f) > 360.0
goto_if_false @STUNT_1017
60@(56@,20f) -= 360.0

:STUNT_1017
if 
  Char.LocateInCar3D($scplayer, 127@(56@,20f), 147@(56@,20f), 167@(56@,20f), 2.5, 2.5, 2.5, False)
goto_if_false @STUNT_1159
Blip.Remove(82@(56@,20i))
Checkpoint.Delete(102@(56@,20i))
Audio.ReportMissionAudioEventAtPosition(127@(56@,20f), 147@(56@,20f), 167@(56@,20f), 1058)
$random_number_mtbike += 10000
Text.PrintWithNumberNow('STUNT_3', 10, 1500, 1)
59@ += 1
36@(56@,20i) += 1

:STUNT_1159
56@ += 1
goto @STUNT_863

:STUNT_1173
goto @STUNT_1498

:STUNT_1180
if 
  35@ == 0
goto_if_false @STUNT_1336
56@ = 0

:STUNT_1205
if 
  is_int_lvar_greater_than_int_lvar 187@ > 56@
goto_if_false @STUNT_1256
Blip.Remove(82@(56@,20i))
Checkpoint.Delete(102@(56@,20i))
56@ += 1
goto @STUNT_1205

:STUNT_1256
57@ = Blip.AddForCar(34@)
Blip.SetAsFriendly(57@, True)
if 
  $random_number_mtbike > 25400
goto_if_false @STUNT_1313
set_lvar_int_to_var_int 122@ = $game_timer
122@ += 25400
goto @STUNT_1329

:STUNT_1313
set_lvar_int_to_var_int 122@ = $game_timer
add_int_var_to_int_lvar 122@ += $random_number_mtbike

:STUNT_1329
35@ = 1

:STUNT_1336
set_lvar_int_to_lvar_int 123@ = 122@
sub_int_var_from_int_lvar 123@ -= $game_timer
123@ /= 1000
if 
  1 > 123@
goto_if_false @STUNT_1385
123@ = 0

:STUNT_1385
if 
  is_int_var_greater_than_int_lvar $game_timer > 122@
goto_if_false @STUNT_1427
Text.PrintNow('STUNT_4', 5000, 1)
goto @STUNT_1602

:STUNT_1427
if 
  123@ == 1
goto_if_false @STUNT_1475
Text.AddNextMessageToPreviousBriefs(False)
Text.PrintWithNumberNow('STUNT_8', 123@, 200, 1)
goto @STUNT_1498

:STUNT_1475
Text.AddNextMessageToPreviousBriefs(False)
Text.PrintWithNumberNow('STUNT_1', 123@, 200, 1)

:STUNT_1498
goto @STUNT_1528

:STUNT_1505
Text.PrintNow('STUNT_5', 5000, 1)
goto @STUNT_1602

:STUNT_1528
if 
  is_int_lvar_equal_to_int_lvar 59@ == 187@
goto_if_false @STUNT_1554
goto @STUNT_1620

:STUNT_1554
if 
  $random_number_mtbike == 0
goto_if_false @STUNT_1595
Text.PrintNow('STUNT_7', 5000, 1)
goto @STUNT_1602

:STUNT_1595
goto @STUNT_355

:STUNT_1602
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:STUNT_1620
Player.AddScore($player1, 1000)
Player.ClearWantedLevel($player1)
Audio.PlayMissionPassedTune(1)
set_lvar_int_to_var_int 124@ = $game_timer
sub_int_lvar_from_int_lvar 124@ -= 81@
124@ /= 1000
if 
  $stunt_course == 0
goto_if_false @STUNT_1730
if 
  $steal_car_cargen5 == 0
goto_if_false @STUNT_1723
Stat.PlayerMadeProgress(1)
Stat.RegisterMissionPassed('BMX')
Audio.PlayMissionPassedTune(2)
$steal_car_cargen5 = 1

:STUNT_1723
Stat.RegisterFastestTime(StatId.BestTimeBmx, 124@)

:STUNT_1730
if 
  $stunt_course == 1
goto_if_false @STUNT_1800
if 
  $done_bmx_stunt_progress == 0
goto_if_false @STUNT_1792
Stat.PlayerMadeProgress(1)
Stat.RegisterMissionPassed('NRG500')
Audio.PlayMissionPassedTune(2)
$done_bmx_stunt_progress = 1

:STUNT_1792
Stat.RegisterFastestTime(StatId.BestTimeNrg, 124@)

:STUNT_1800
set_lvar_int_to_lvar_int 125@ = 124@
125@ /= 60
set_lvar_int_to_lvar_int 126@ = 125@
126@ *= 60
set_lvar_int_to_lvar_int 123@ = 124@
sub_int_lvar_from_int_lvar 123@ -= 126@
if 
  is_int_var_greater_than_int_lvar $done_nrg500_stunt_progress($stunt_course,2i) > 124@
goto_if_false @STUNT_1957
if 
  10 > 123@
goto_if_false @STUNT_1916
Text.PrintWith2NumbersBig('STUNTN0', 125@, 123@, 5000, TextStyle.Middle)
goto @STUNT_1938

:STUNT_1916
Text.PrintWith2NumbersBig('STUNTPN', 125@, 123@, 5000, TextStyle.Middle)

:STUNT_1938
set_var_int_to_lvar_int $done_nrg500_stunt_progress($stunt_course,2i) = 124@
goto @STUNT_2026

:STUNT_1957
if 
  10 > 123@
goto_if_false @STUNT_2004
Text.PrintWith2NumbersBig('STUNTT0', 125@, 123@, 5000, TextStyle.Middle)
goto @STUNT_2026

:STUNT_2004
Text.PrintWith2NumbersBig('STUNTPT', 125@, 123@, 5000, TextStyle.Middle)

:STUNT_2026
return 

:STUNT_2028
Text.ClearThisPrint('STUNT_1')
Text.ClearThisPrint('STUNT_3')
56@ = 0

:STUNT_2057
if 
  is_int_lvar_greater_than_int_lvar 187@ > 56@
goto_if_false @STUNT_2108
Blip.Remove(82@(56@,20i))
Checkpoint.Delete(102@(56@,20i))
56@ += 1
goto @STUNT_2057

:STUNT_2108
Blip.Remove(57@)
Hud.ClearTimer($random_number_mtbike)
$onmission = 0
Mission.Finish
return 

:STUNT_2129
switch_start $stunt_course {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @STUNT_3450 {caseNum1} 0 {caseLabel1} @STUNT_2192 {caseNum2} 1 {caseLabel2} @STUNT_2836 {caseNum3} -1 {caseLabel3} @STUNT_3450 {caseNum4} -1 {caseLabel4} @STUNT_3450 {caseNum5} -1 {caseLabel5} @STUNT_3450 {caseNum6} -1 {caseLabel6} @STUNT_3450 {caseNum7} -1 {caseLabel7} @STUNT_3450

:STUNT_2192
127@ = 1955.012
147@ = -1367.72
167@ = 24.7354
128@ = 1954.609
148@ = -1376.964
168@ = 24.2187
129@ = 1887.392
149@ = -1362.954
169@ = 19.4329
130@ = 1914.137
150@ = -1427.099
170@ = 15.5805
131@ = 1908.552
151@ = -1388.389
171@ = 10.3294
132@ = 1882.362
152@ = -1427.686
172@ = 10.3294
133@ = 1953.349
153@ = -1426.586
173@ = 10.3294
134@ = 1878.189
154@ = -1388.81
174@ = 15.2464
135@ = 1878.184
155@ = -1388.839
175@ = 18.1461
136@ = 1872.327
156@ = -1451.051
176@ = 15.7645
137@ = 1905.178
157@ = -1413.675
177@ = 13.5322
138@ = 1949.503
158@ = -1411.546
178@ = 15.1837
139@ = 1867.153
159@ = -1410.007
179@ = 13.5322
140@ = 1909.341
160@ = -1369.846
180@ = 16.7966
141@ = 1939.243
161@ = -1388.132
181@ = 19.2615
142@ = 1904.888
162@ = -1360.622
182@ = 13.5322
143@ = 1930.234
163@ = -1398.62
183@ = 16.8554
144@ = 1888.765
164@ = -1399.326
184@ = 17.2408
145@ = 1900.948
165@ = -1397.83
185@ = 15.6868
187@ = 19
188@ = 1964.753
189@ = -1368.362
190@ = 29.6217
191@ = 1963.934
192@ = -1368.818
193@ = 29.2725
goto @STUNT_3450

:STUNT_2836
127@ = -1632.058
147@ = 143.152
167@ = 3.4111
128@ = -1632.021
148@ = 83.0413
168@ = 7.5331
129@ = -1689.148
149@ = 53.3936
169@ = 11.7703
130@ = -1606.423
150@ = 133.4396
170@ = -10.9911
131@ = -1680.386
151@ = 87.0915
171@ = 8.2325
132@ = -1666.295
152@ = 102.0489
172@ = -1.5025
133@ = -1654.692
153@ = 60.7782
173@ = 7.6501
134@ = -1684.867
154@ = 74.6374
174@ = -7.0328
135@ = -1583.797
155@ = 126.1577
175@ = 4.157
136@ = -1667.705
156@ = 49.5191
176@ = 6.5634
137@ = -1611.585
157@ = 106.3131
177@ = -3.6465
138@ = -1590.556
158@ = 148.9676
178@ = 4.113
139@ = -1671.959
159@ = 98.6
179@ = 8.9263
140@ = -1693.32
160@ = 65.1187
180@ = 8.7997
141@ = -1660.951
161@ = 107.6739
181@ = -2.1545
142@ = -1654.071
162@ = 77.2629
182@ = -10.2893
143@ = -1645.494
163@ = 107.2477
183@ = -10.6617
144@ = -1673.735
164@ = 56.9287
184@ = -10.674
187@ = 18
188@ = -1681.464
189@ = 27.2091
190@ = 9.6606
191@ = -1681.252
192@ = 28.183
193@ = 9.5773
goto @STUNT_3450

:STUNT_3450
return 

//-------------Mission 134---------------
// Originally: Buy Properties Mission

:BUYPRO1
script_name 'BUYPRO1'
$onmission = 1
wait 0
34@ = 0
Camera.SetFadingColor(0, 0, 1)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
switch_start $buying_property_switch {numCases} 32 {hasDefaultCase} 0 {defaultLabel} @BUYPRO1_4201 {caseNum1} 0 {caseLabel1} @BUYPRO1_306 {caseNum2} 1 {caseLabel2} @BUYPRO1_410 {caseNum3} 2 {caseLabel3} @BUYPRO1_504 {caseNum4} 3 {caseLabel4} @BUYPRO1_688 {caseNum5} 4 {caseLabel5} @BUYPRO1_814 {caseNum6} 5 {caseLabel6} @BUYPRO1_940 {caseNum7} 6 {caseLabel7} @BUYPRO1_1066
switch_continued 7 {caseLabel1} @BUYPRO1_1192 {caseNum2} 8 {caseLabel2} @BUYPRO1_1318 {caseNum3} 9 {caseLabel3} @BUYPRO1_1444 {caseNum4} 10 {caseLabel4} @BUYPRO1_1570 {caseNum5} 11 {caseLabel5} @BUYPRO1_1696 {caseNum6} 12 {caseLabel6} @BUYPRO1_1822 {caseNum7} 13 {caseLabel7} @BUYPRO1_1948 {caseNum8} 14 {caseLabel8} @BUYPRO1_2074 {caseNum9} 15 {caseLabel9} @BUYPRO1_2200
switch_continued 16 {caseLabel1} @BUYPRO1_2315 {caseNum2} 17 {caseLabel2} @BUYPRO1_2437 {caseNum3} 18 {caseLabel3} @BUYPRO1_2559 {caseNum4} 19 {caseLabel4} @BUYPRO1_2674 {caseNum5} 20 {caseLabel5} @BUYPRO1_2789 {caseNum6} 21 {caseLabel6} @BUYPRO1_2904 {caseNum7} 22 {caseLabel7} @BUYPRO1_3026 {caseNum8} 23 {caseLabel8} @BUYPRO1_3141 {caseNum9} 24 {caseLabel9} @BUYPRO1_3256
switch_continued 25 {caseLabel1} @BUYPRO1_3371 {caseNum2} 26 {caseLabel2} @BUYPRO1_3497 {caseNum3} 27 {caseLabel3} @BUYPRO1_3612 {caseNum4} 28 {caseLabel4} @BUYPRO1_3734 {caseNum5} 29 {caseLabel5} @BUYPRO1_3856 {caseNum6} 30 {caseLabel6} @BUYPRO1_3971 {caseNum7} 31 {caseLabel7} @BUYPRO1_4086 {caseNum8} -1 {caseLabel8} @BUYPRO1_4201 {caseNum9} -1 {caseLabel9} @BUYPRO1_4201

:BUYPRO1_306
Camera.SetFixedPosition(-1990.969, 292.2734, 35.1049, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1990.053, 291.9333, 35.3176, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $save_houseprice)
start_new_script @STEAL 
Blip.Remove($steal_contact_blip)
$steal_contact_blip = Blip.AddSpriteForContactPoint($stealX, $stealY, $stealZ, $steal_blip_icon)
Blip.Remove($showroom_contact_blip)
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_410
Camera.SetFixedPosition(-2255.705, 131.9585, 38.5998, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2254.716, 132.0048, 38.4589, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1654)
Blip.Remove($zero_contact_blip)
World.SwitchEntryExit('RCPLAY', True)
$zeros_property_bought = 1
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_504
Camera.SetFixedPosition(445.128, 2540.436, 25.6202, 0.0, 0.0, 0.0)
Camera.PointAtPoint(444.1882, 2540.142, 25.4462, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1655)
Blip.Remove($airstrip_contact_blip)
start_new_script @PSCH 
Blip.Remove($desert2_contact_blip)
Blip.Remove($1719)
$1719 = Blip.AddShortRangeSpriteForContactPoint($save_pickupX[2], $save_pickupY[2], $save_pickupZ[2], RadarSprite.SaveGame)
Blip.ChangeDisplay($1719, BlipDisplay.BlipOnly)
Blip.Remove($pilot_contact_blip)
$pilot_contact_blip = Blip.AddSpriteForContactPoint($pilotx, $piloty, $pilotz, $pilot_blip_icon)
Blip.ChangeDisplay($pilot_contact_blip, BlipDisplay.BlipOnly)
Garage.Activate('CN2GAR2')
Garage.Activate('DHANGAR')
World.SetClosestEntryExitFlag($propertyX[2], $propertyY[2], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_688
Camera.SetFixedPosition(316.0747, -1786.757, 5.0712, 0.0, 0.0, 0.0)
Camera.PointAtPoint(316.1206, -1785.778, 5.2692, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1656)
Blip.Remove($1624)
$1624 = Blip.AddShortRangeSpriteForContactPoint($propertyX[3], $propertyY[3], $propertyZ[3], RadarSprite.SaveGame)
Blip.ChangeDisplay($1624, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[3], $propertyY[3], 10.0, EntryexitsFlag.Enabled, True)
Garage.Activate('BEACSV')
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_814
Camera.SetFixedPosition(2430.869, 698.3348, 12.9763, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2431.789, 697.9644, 12.843, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1657)
Blip.Remove($1625)
$1625 = Blip.AddShortRangeSpriteForContactPoint($propertyX[4], $propertyY[4], $propertyZ[4], RadarSprite.SaveGame)
Blip.ChangeDisplay($1625, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[4], $propertyY[4], 10.0, EntryexitsFlag.Enabled, True)
Garage.Activate('VESVGRG')
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_940
Camera.SetFixedPosition(-362.3164, 1152.664, 21.4821, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-362.6989, 1153.587, 21.5142, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1658)
Blip.Remove($1626)
$1626 = Blip.AddShortRangeSpriteForContactPoint($propertyX[5], $propertyY[5], $propertyZ[5], RadarSprite.SaveGame)
Blip.ChangeDisplay($1626, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[5], $propertyY[5], 10.0, EntryexitsFlag.Enabled, True)
Garage.Activate('CN2GAR1')
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_1066
Camera.SetFixedPosition(1295.982, 2525.57, 14.1002, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1294.994, 2525.724, 14.0597, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1659)
Blip.Remove($1627)
$1627 = Blip.AddShortRangeSpriteForContactPoint($propertyX[6], $propertyY[6], $propertyZ[6], RadarSprite.SaveGame)
Blip.ChangeDisplay($1627, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[6], $propertyY[6], 10.0, EntryexitsFlag.Enabled, True)
Garage.Activate('BLOB69')
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_1192
Camera.SetFixedPosition(908.9885, 2006.151, 17.7914, 0.0, 0.0, 0.0)
Camera.PointAtPoint(909.9134, 2006.143, 17.4113, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1660)
Blip.Remove($1628)
$1628 = Blip.AddShortRangeSpriteForContactPoint($propertyX[7], $propertyY[7], $propertyZ[7], RadarSprite.SaveGame)
Blip.ChangeDisplay($1628, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[7], $propertyY[7], 10.0, EntryexitsFlag.Enabled, True)
Garage.Activate('BLOB7')
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_1318
Camera.SetFixedPosition(2233.14, 152.5748, 33.5239, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2233.16, 153.5324, 33.2366, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1661)
Blip.Remove($1629)
$1629 = Blip.AddShortRangeSpriteForContactPoint($propertyX[8], $propertyY[8], $propertyZ[8], RadarSprite.SaveGame)
Blip.ChangeDisplay($1629, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[8], $propertyY[8], 10.0, EntryexitsFlag.Enabled, True)
Garage.Activate('BURBDOO')
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_1444
Camera.SetFixedPosition(1385.519, 1901.313, 14.5901, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1386.472, 1901.076, 14.4041, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1662)
Blip.Remove($1630)
$1630 = Blip.AddShortRangeSpriteForContactPoint($propertyX[9], $propertyY[9], $propertyZ[9], RadarSprite.SaveGame)
Blip.ChangeDisplay($1630, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[9], $propertyY[9], 10.0, EntryexitsFlag.Enabled, True)
Garage.Activate('BLOB6')
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_1570
Camera.SetFixedPosition(1689.118, -2120.165, 18.6369, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1689.188, -2119.187, 18.4393, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1663)
Blip.Remove($1631)
$1631 = Blip.AddShortRangeSpriteForContactPoint($propertyX[10], $propertyY[10], $propertyZ[10], RadarSprite.SaveGame)
Blip.ChangeDisplay($1631, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[10], $propertyY[10], 10.0, EntryexitsFlag.Enabled, True)
Garage.Activate('CARLAS1')
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_1696
Camera.SetFixedPosition(-2098.967, 923.2947, 80.2446, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2098.986, 922.2994, 80.3401, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1664)
Blip.Remove($1632)
$1632 = Blip.AddShortRangeSpriteForContactPoint($propertyX[11], $propertyY[11], $propertyZ[11], RadarSprite.SaveGame)
Blip.ChangeDisplay($1632, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[11], $propertyY[11], 10.0, EntryexitsFlag.Enabled, True)
Garage.Activate('SAV1SFE')
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_1822
Camera.SetFixedPosition(1325.974, -598.7552, 116.1597, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1326.254, -599.7052, 116.0219, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1665)
Blip.Remove($1633)
$1633 = Blip.AddShortRangeSpriteForContactPoint($propertyX[12], $propertyY[12], $propertyZ[12], RadarSprite.SaveGame)
Blip.ChangeDisplay($1633, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[12], $propertyY[12], 10.0, EntryexitsFlag.Enabled, True)
Garage.Activate('CESAFE1')
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_1948
Camera.SetFixedPosition(-2700.657, 791.45, 70.2223, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2700.661, 792.4032, 69.9203, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1666)
Blip.Remove($1634)
$1634 = Blip.AddShortRangeSpriteForContactPoint($propertyX[13], $propertyY[13], $propertyZ[13], RadarSprite.SaveGame)
Blip.ChangeDisplay($1634, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[13], $propertyY[13], 10.0, EntryexitsFlag.Enabled, True)
Garage.Activate('SAV1SFW')
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_2074
Camera.SetFixedPosition(-2476.432, -127.2039, 26.6779, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2475.458, -127.2469, 26.8974, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1667)
Blip.Remove($1635)
$1635 = Blip.AddShortRangeSpriteForContactPoint($propertyX[14], $propertyY[14], $propertyZ[14], RadarSprite.SaveGame)
Blip.ChangeDisplay($1635, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[14], $propertyY[14], 10.0, EntryexitsFlag.Enabled, True)
Garage.Activate('SVGSFS1')
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_2200
Camera.SetFixedPosition(894.7908, -1663.996, 20.202, 0.0, 0.0, 0.0)
Camera.PointAtPoint(894.803, -1663.003, 20.0891, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1668)
Blip.Remove($1636)
$1636 = Blip.AddShortRangeSpriteForContactPoint($propertyX[15], $propertyY[15], $propertyZ[15], RadarSprite.SaveGame)
Blip.ChangeDisplay($1636, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[15], $propertyY[15], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_2315
Camera.SetFixedPosition(2036.76, 1623.074, 13.4128, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2035.8, 1623.087, 13.6921, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1669)
Blip.Remove($1637)
$1637 = Blip.AddShortRangeSpriteForContactPoint($propertyX[16], $propertyY[16], $propertyZ[16], RadarSprite.SaveGame)
Blip.ChangeDisplay($1637, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[16], $propertyY[16], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
34@ = 1
goto @BUYPRO1_4201

:BUYPRO1_2437
Camera.SetFixedPosition(2146.165, 1286.25, 33.6386, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2147.164, 1286.218, 33.5943, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1670)
Blip.Remove($1638)
$1638 = Blip.AddShortRangeSpriteForContactPoint($propertyX[17], $propertyY[17], $propertyZ[17], RadarSprite.SaveGame)
Blip.ChangeDisplay($1638, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[17], $propertyY[17], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
34@ = 1
goto @BUYPRO1_4201

:BUYPRO1_2559
Camera.SetFixedPosition(-2213.188, 744.9976, 50.024, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2213.273, 744.0281, 50.254, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1671)
Blip.Remove($1639)
$1639 = Blip.AddShortRangeSpriteForContactPoint($propertyX[18], $propertyY[18], $propertyZ[18], RadarSprite.SaveGame)
Blip.ChangeDisplay($1639, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[18], $propertyY[18], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_2674
Camera.SetFixedPosition(-1437.184, -1507.732, 103.8198, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1437.047, -1508.711, 103.9666, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1672)
Blip.Remove($1640)
$1640 = Blip.AddShortRangeSpriteForContactPoint($propertyX[19], $propertyY[19], $propertyZ[19], RadarSprite.SaveGame)
Blip.ChangeDisplay($1640, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[19], $propertyY[19], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_2789
Camera.SetFixedPosition(-2000.427, -64.4142, 40.0479, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2001.257, -63.8685, 40.1625, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1673)
Blip.Remove($1641)
$1641 = Blip.AddShortRangeSpriteForContactPoint($propertyX[20], $propertyY[20], $propertyZ[20], RadarSprite.SaveGame)
Blip.ChangeDisplay($1641, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[20], $propertyY[20], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_2904
Camera.SetFixedPosition(-2379.854, 312.8534, 34.2136, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2380.683, 313.311, 34.5349, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1674)
Blip.Remove($1642)
$1642 = Blip.AddShortRangeSpriteForContactPoint($propertyX[21], $propertyY[21], $propertyZ[21], RadarSprite.SaveGame)
Blip.ChangeDisplay($1642, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[21], $propertyY[21], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
34@ = 1
goto @BUYPRO1_4201

:BUYPRO1_3026
Camera.SetFixedPosition(-2079.061, -2298.056, 35.15, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2078.88, -2299.029, 35.0066, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1675)
Blip.Remove($1643)
$1643 = Blip.AddShortRangeSpriteForContactPoint($propertyX[22], $propertyY[22], $propertyZ[22], RadarSprite.SaveGame)
Blip.ChangeDisplay($1643, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[22], $propertyY[22], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_3141
Camera.SetFixedPosition(-1545.093, 2663.056, 61.0133, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1544.282, 2662.509, 60.8075, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1676)
Blip.Remove($1644)
$1644 = Blip.AddShortRangeSpriteForContactPoint($propertyX[23], $propertyY[23], $propertyZ[23], RadarSprite.SaveGame)
Blip.ChangeDisplay($1644, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[23], $propertyY[23], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_3256
Camera.SetFixedPosition(-1035.191, 1568.456, 39.7221, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1035.971, 1567.886, 39.4659, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1677)
Blip.Remove($1645)
$1645 = Blip.AddShortRangeSpriteForContactPoint($propertyX[24], $propertyY[24], $propertyZ[24], RadarSprite.SaveGame)
Blip.ChangeDisplay($1645, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[24], $propertyY[24], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_3371
Camera.SetFixedPosition(789.7151, -529.9901, 20.74, 0.0, 0.0, 0.0)
Camera.PointAtPoint(789.8545, -529.0045, 20.6445, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1678)
Blip.Remove($1646)
$1646 = Blip.AddShortRangeSpriteForContactPoint($propertyX[25], $propertyY[25], $propertyZ[25], RadarSprite.SaveGame)
Blip.ChangeDisplay($1646, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[25], $propertyY[25], 10.0, EntryexitsFlag.Enabled, True)
Garage.Activate('BURBDO2')
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_3497
Camera.SetFixedPosition(2114.379, -1299.742, 32.8721, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2114.305, -1298.833, 32.4622, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1679)
Blip.Remove($1647)
$1647 = Blip.AddShortRangeSpriteForContactPoint($propertyX[26], $propertyY[26], $propertyZ[26], RadarSprite.SaveGame)
Blip.ChangeDisplay($1647, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[26], $propertyY[26], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_3612
Camera.SetFixedPosition(2342.496, 2140.662, 11.3215, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2343.243, 2141.272, 11.5827, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1680)
Blip.Remove($1648)
$1648 = Blip.AddShortRangeSpriteForContactPoint($propertyX[27], $propertyY[27], $propertyZ[27], RadarSprite.SaveGame)
Blip.ChangeDisplay($1648, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[27], $propertyY[27], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
34@ = 1
goto @BUYPRO1_4201

:BUYPRO1_3734
Camera.SetFixedPosition(2119.739, 1767.835, 26.2058, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2120.53, 1768.447, 26.1978, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1681)
Blip.Remove($1649)
$1649 = Blip.AddShortRangeSpriteForContactPoint($propertyX[28], $propertyY[28], $propertyZ[28], RadarSprite.SaveGame)
Blip.ChangeDisplay($1649, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[28], $propertyY[28], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
34@ = 1
goto @BUYPRO1_4201

:BUYPRO1_3856
Camera.SetFixedPosition(2820.361, 2174.83, 19.0746, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2820.384, 2173.834, 18.9889, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1682)
Blip.Remove($1650)
$1650 = Blip.AddShortRangeSpriteForContactPoint($propertyX[29], $propertyY[29], $propertyZ[29], RadarSprite.SaveGame)
Blip.ChangeDisplay($1650, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[29], $propertyY[29], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_3971
Camera.SetFixedPosition(2484.971, -2013.007, 17.5718, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2484.96, -2012.031, 17.3533, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1683)
Blip.Remove($1651)
$1651 = Blip.AddShortRangeSpriteForContactPoint($propertyX[30], $propertyY[30], $propertyZ[30], RadarSprite.SaveGame)
Blip.ChangeDisplay($1651, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[30], $propertyY[30], 10.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_4086
Camera.SetFixedPosition(189.8908, -107.1989, 5.7226, 0.0, 0.0, 0.0)
Camera.PointAtPoint(190.8559, -107.2361, 5.4634, SwitchType.JumpCut)
Stat.IncrementInt(StatId.PropertyBudget, $1684)
Blip.Remove($1652)
$1652 = Blip.AddShortRangeSpriteForContactPoint($propertyX[31], $propertyY[31], $propertyZ[31], RadarSprite.SaveGame)
Blip.ChangeDisplay($1652, BlipDisplay.BlipOnly)
World.SetClosestEntryExitFlag($propertyX[31], $propertyY[31], 5.0, EntryexitsFlag.Enabled, True)
Stat.PlayerMadeProgress(1)
goto @BUYPRO1_4201

:BUYPRO1_4201
if 
  34@ == 0
goto_if_false @BUYPRO1_4242
Text.PrintBig('BUYPRO', 5000, TextStyle.BottomRight)
goto @BUYPRO1_4258

:BUYPRO1_4242
Text.PrintBig('HSUITE', 5000, TextStyle.BottomRight)

:BUYPRO1_4258
Audio.PlayMissionPassedTune(2)
wait 5000
if 
  not Player.IsPlaying($player1)
goto_if_false @BUYPRO1_4285
terminate_this_script 

:BUYPRO1_4285
Text.ClearPrints
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
$onmission = 0
$timer_mobile_start = Clock.GetGameTimer()
Mission.Finish
terminate_this_script 
return 

//-------------Mission 135---------------
// Originally: 2player Ram

:RAM_2P
script_name 'RAM_2P'
gosub @RAM_2P_47
if 
  has_deatharrest_been_executed 
goto_if_false @RAM_2P_38
gosub @RAM_2P_1487

:RAM_2P_38
gosub @RAM_2P_1783
terminate_this_script 

:RAM_2P_47
Game.HideAllFrontendBlips(True)
Text.ClearPrints
Player.ClearWantedLevel($player1)
Game.SetWantedMultiplier(0.0)
Camera.SetFadingColor(0, 0, 0)
283@ = 0
286@ = 0
287@ = 0
294@ = 0
288@ = 0

:RAM_2P_108
289@(288@,5i) = 0
288@ += 1
  288@ >= 5
goto_if_false @RAM_2P_108
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('MENU2P')
goto @RAM_2P_167

:RAM_2P_167
gosub @RAM_2P_1938
wait 0
Streaming.RequestModel(352)
Streaming.RequestModel(353)
Streaming.RequestModel(346)
Streaming.RequestModel(63)

:RAM_2P_197
if or
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(353)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(63)
goto_if_false @RAM_2P_238
wait 0
goto @RAM_2P_197

:RAM_2P_238
TIMERA = 0
World.SetPedDensityMultiplier(2.0)
World.ClearArea(1478.868, -1655.853, 13.0469, 40.0, True)
$player2 = Player.Create(1, 1478.868, -1655.853, 13.0469)
$p2 = Player.GetChar($player2)
Player.SetModel($player2, 63)
Char.SetHeading($p2, 237.1571)
if 
  not Char.IsDead($scplayer)
goto_if_false @RAM_2P_425
Char.SetCoordinates($scplayer, 1478.973, -1657.854, 13.0469)
Char.SetHeading($scplayer, 237.1571)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Game.SetPlayersCanBeInSeparateCars(False)
Game.LimitTwoPlayerDistance(20.0)
Char.DisableSpeech($p2, True)

:RAM_2P_425
switch_start $ram_2p_level {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @RAM_2P_895 {caseNum1} 0 {caseLabel1} @RAM_2P_553 {caseNum2} 1 {caseLabel2} @RAM_2P_591 {caseNum3} 2 {caseLabel3} @RAM_2P_629 {caseNum4} 3 {caseLabel4} @RAM_2P_667 {caseNum5} 4 {caseLabel5} @RAM_2P_705 {caseNum6} 5 {caseLabel6} @RAM_2P_743 {caseNum7} 6 {caseLabel7} @RAM_2P_781
switch_continued 7 {caseLabel1} @RAM_2P_819 {caseNum2} 8 {caseLabel2} @RAM_2P_857 {caseNum3} -1 {caseLabel3} @RAM_2P_895 {caseNum4} -1 {caseLabel4} @RAM_2P_895 {caseNum5} -1 {caseLabel5} @RAM_2P_895 {caseNum6} -1 {caseLabel6} @RAM_2P_895 {caseNum7} -1 {caseLabel7} @RAM_2P_895 {caseNum8} -1 {caseLabel8} @RAM_2P_895 {caseNum9} -1 {caseLabel9} @RAM_2P_895

:RAM_2P_553
267@ = 15
268@ = 3
266@ = 180000
358@ = 0
goto @RAM_2P_895

:RAM_2P_591
267@ = 15
268@ = 2
266@ = 120000
358@ = 0
goto @RAM_2P_895

:RAM_2P_629
267@ = 15
268@ = 1
266@ = 90000
358@ = 0
goto @RAM_2P_895

:RAM_2P_667
267@ = 18
268@ = 3
266@ = 180000
358@ = 1
goto @RAM_2P_895

:RAM_2P_705
267@ = 18
268@ = 2
266@ = 120000
358@ = 1
goto @RAM_2P_895

:RAM_2P_743
267@ = 18
268@ = 1
266@ = 90000
358@ = 1
goto @RAM_2P_895

:RAM_2P_781
267@ = 20
268@ = 3
266@ = 180000
358@ = 2
goto @RAM_2P_895

:RAM_2P_819
267@ = 20
268@ = 2
266@ = 120000
358@ = 2
goto @RAM_2P_895

:RAM_2P_857
267@ = 20
268@ = 1
266@ = 90000
358@ = 2
goto @RAM_2P_895

:RAM_2P_895
gosub @RAM_2P_1850
Player.MakeGangDisappear
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RAM_2P_939
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:RAM_2P_939
Camera.SetFixedPosition(1484.073, -1659.599, 15.6832, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1483.27, -1659.081, 15.3862, SwitchType.JumpCut)
gosub @RAM_2P_1979
if 
  268@ == 1
goto_if_false @RAM_2P_1046
Text.PrintWith3Numbers('MENU_65', 267@, 268@, 30, 5000, TextStyle.Middle)
goto @RAM_2P_1068

:RAM_2P_1046
Text.PrintWith2NumbersNow('MENU_36', 267@, 268@, 5000, TextStyle.Middle)

:RAM_2P_1068
wait 5000
gosub @RAM_2P_1891
set_lvar_int_to_var_int 360@ = $ram_2p_level
360@ += 1
Text.ClearPrints
switch_start 358@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RAM_2P_1268 {caseNum1} 0 {caseLabel1} @RAM_2P_1160 {caseNum2} 1 {caseLabel2} @RAM_2P_1196 {caseNum3} 2 {caseLabel3} @RAM_2P_1232 {caseNum4} -1 {caseLabel4} @RAM_2P_1268 {caseNum5} -1 {caseLabel5} @RAM_2P_1268 {caseNum6} -1 {caseLabel6} @RAM_2P_1268 {caseNum7} -1 {caseLabel7} @RAM_2P_1268

:RAM_2P_1160
KillFrenzy.Start('DUMMY', WeaponType.Mp5, 266@, 267@, #INFO, #INFO, #INFO, #INFO, False)
goto @RAM_2P_1268

:RAM_2P_1196
KillFrenzy.Start('DUMMY', WeaponType.MicroUzi, 266@, 267@, #INFO, #INFO, #INFO, #INFO, False)
goto @RAM_2P_1268

:RAM_2P_1232
KillFrenzy.Start('DUMMY', WeaponType.Pistol, 266@, 267@, #INFO, #INFO, #INFO, #INFO, False)
goto @RAM_2P_1268

:RAM_2P_1268
TIMERB = 0

:RAM_2P_1275
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RAM_2P_1480
wait 0
gosub @RAM_2P_2020
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RAM_2P_1351
if or
  Char.HasBeenArrested($scplayer)
  Char.HasBeenArrested($p2)
goto_if_false @RAM_2P_1351
KillFrenzy.Fail

:RAM_2P_1351
283@ = KillFrenzy.ReadStatus()
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @RAM_2P_1386
sub_int_lvar_from_int_lvar 266@ -= TIMERB
set_lvar_int_to_constant 283@ = 2

:RAM_2P_1386
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @RAM_2P_1408
set_lvar_int_to_constant 283@ = 3

:RAM_2P_1408
if 
  is_int_lvar_equal_to_constant 283@ == 2
goto_if_false @RAM_2P_1441
sub_int_lvar_from_int_lvar 266@ -= TIMERB
goto @RAM_2P_1647

:RAM_2P_1441
if 
  is_int_lvar_equal_to_constant 283@ == 3
goto_if_false @RAM_2P_1473
359@ = 1
goto @RAM_2P_1487

:RAM_2P_1473
goto @RAM_2P_1275

:RAM_2P_1480
goto @RAM_2P_1487

:RAM_2P_1487
if 
  359@ == 0
goto_if_false @RAM_2P_1613
if 
  Char.IsDead($scplayer)
goto_if_false @RAM_2P_1537
Text.PrintNow('MENU_47', 4000, 1)

:RAM_2P_1537
if 
  Char.IsDead($p2)
goto_if_false @RAM_2P_1569
Text.PrintNow('MENU_48', 4000, 1)

:RAM_2P_1569
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @RAM_2P_1606
Text.PrintNow('MENU_49', 4000, 1)

:RAM_2P_1606
goto @RAM_2P_1629

:RAM_2P_1613
Text.PrintNow('MENU_50', 4000, 1)

:RAM_2P_1629
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:RAM_2P_1647
266@ /= 1000
361@ = Stat.GetInt(StatId.P2RampageBestTime)
if 
  is_int_lvar_greater_than_int_lvar 266@ > 361@
goto_if_false @RAM_2P_1690
Stat.SetInt(StatId.P2RampageBestTime, 266@)

:RAM_2P_1690
if 
  $ram_2p_level == 8
goto_if_false @RAM_2P_1733
Text.PrintWithNumberBig('M_PASSD', 0, 5000, TextStyle.Middle)
goto @RAM_2P_1751

:RAM_2P_1733
Text.PrintWithNumberBig('MENU_67', 0, 5000, TextStyle.Middle)

:RAM_2P_1751
Player.ClearWantedLevel($player1)
if 
  $ram_2p_level <> 8
goto_if_false @RAM_2P_1781
$ram_2p_level += 1

:RAM_2P_1781
return 

:RAM_2P_1783
Game.HideAllFrontendBlips(False)
359@ = 0
Player.MakeGangReappear
Player.ClearWantedLevel($player1)
Game.SetWantedMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(63)
$onmission = 0
Player.ClearWantedLevel($player1)
Mission.Finish
return 

:RAM_2P_1850
Hud.SwitchWidescreen(True)
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RAM_2P_1889
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:RAM_2P_1889
return 

:RAM_2P_1891
Hud.SwitchWidescreen(False)
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RAM_2P_1930
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:RAM_2P_1930
Camera.RestoreJumpcut
Camera.SetTwoPlayerMode(2)
return 

:RAM_2P_1938
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:RAM_2P_1953
if 
  Camera.GetFadingStatus
goto_if_false @RAM_2P_1977
wait 0
goto @RAM_2P_1953

:RAM_2P_1977
return 

:RAM_2P_1979
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:RAM_2P_1994
if 
  Camera.GetFadingStatus
goto_if_false @RAM_2P_2018
wait 0
goto @RAM_2P_1994

:RAM_2P_2018
return 

:RAM_2P_2020
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @RAM_2P_2056
if 
  not Char.IsDead($p2)
goto_if_false @RAM_2P_2056
Task.Die($p2)

:RAM_2P_2056
if 
is_ps2_keyboard_key_just_pressed 29
goto_if_false @RAM_2P_2092
if 
  not Char.IsDead($scplayer)
goto_if_false @RAM_2P_2092
Task.Die($scplayer)

:RAM_2P_2092
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @RAM_2P_2126
view_integer_variable $ram_2p_level {_p2} "RAM_2P_LEVEL"

:RAM_2P_2126
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @RAM_2P_2141

:RAM_2P_2141
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RAM_2P_2156

:RAM_2P_2156
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @RAM_2P_2171

:RAM_2P_2171
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @RAM_2P_2186

:RAM_2P_2186
return 

//-------------Mission 136---------------
// Originally: 2player bike

:BIKE_2P
script_name 'BIKE_2P'
gosub @BIKE_2P_47
if 
  has_deatharrest_been_executed 
goto_if_false @BIKE_2P_38
gosub @BIKE_2P_1549

:BIKE_2P_38
gosub @BIKE_2P_1868
terminate_this_script 

:BIKE_2P_47
Game.HideAllFrontendBlips(True)
Text.ClearPrints
Player.ClearWantedLevel($player1)
Game.SetWantedMultiplier(0.0)
Camera.SetFadingColor(0, 0, 0)
283@ = 0
284@ = 0
285@ = 0
292@ = 0
286@ = 0

:BIKE_2P_108
287@(286@,5i) = 0
286@ += 1
  286@ >= 5
goto_if_false @BIKE_2P_108
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('MENU2P')
gosub @BIKE_2P_2092
wait 0
Streaming.RequestModel(353)
Streaming.RequestModel(63)
Streaming.RequestModel(521)
Streaming.RequestModel(522)
Streaming.RequestModel(461)

:BIKE_2P_195
if or
  not Streaming.HasModelLoaded(353)
  not Streaming.HasModelLoaded(63)
  not Streaming.HasModelLoaded(521)
  not Streaming.HasModelLoaded(522)
  not Streaming.HasModelLoaded(461)
goto_if_false @BIKE_2P_241
wait 0
goto @BIKE_2P_195

:BIKE_2P_241
TIMERA = 0
CarGenerator.SuppressCarModel(448)
CarGenerator.SuppressCarModel(462)
CarGenerator.SuppressCarModel(463)
CarGenerator.SuppressCarModel(509)
CarGenerator.SuppressCarModel(510)
CarGenerator.SuppressCarModel(523)
CarGenerator.SuppressCarModel(581)
CarGenerator.SuppressCarModel(586)
CarGenerator.SuppressCarModel(523)
CarGenerator.SuppressCarModel(581)
CarGenerator.SuppressCarModel(586)
Game.SetForceRandomCarModel(521)
Hud.DisplayRadar(False)
World.SetPedDensityMultiplier(0.0)
World.ClearArea(1196.491, 249.321, 18.5618, 60.0, True)
switch_start $bike_2p_level {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @BIKE_2P_957 {caseNum1} 0 {caseLabel1} @BIKE_2P_471 {caseNum2} 1 {caseLabel2} @BIKE_2P_525 {caseNum3} 2 {caseLabel3} @BIKE_2P_579 {caseNum4} 3 {caseLabel4} @BIKE_2P_633 {caseNum5} 4 {caseLabel5} @BIKE_2P_687 {caseNum6} 5 {caseLabel6} @BIKE_2P_741 {caseNum7} 6 {caseLabel7} @BIKE_2P_795
switch_continued 7 {caseLabel1} @BIKE_2P_849 {caseNum2} 8 {caseLabel2} @BIKE_2P_903 {caseNum3} -1 {caseLabel3} @BIKE_2P_957 {caseNum4} -1 {caseLabel4} @BIKE_2P_957 {caseNum5} -1 {caseLabel5} @BIKE_2P_957 {caseNum6} -1 {caseLabel6} @BIKE_2P_957 {caseNum7} -1 {caseLabel7} @BIKE_2P_957 {caseNum8} -1 {caseLabel8} @BIKE_2P_957 {caseNum9} -1 {caseLabel9} @BIKE_2P_957

:BIKE_2P_471
266@ = 5
267@ = 3
265@ = 180000
284@ = Car.Create(521, 1196.491, 249.321, 18.5618)
goto @BIKE_2P_957

:BIKE_2P_525
266@ = 5
267@ = 2
265@ = 120000
284@ = Car.Create(521, 1196.491, 249.321, 18.5618)
goto @BIKE_2P_957

:BIKE_2P_579
266@ = 5
267@ = 1
265@ = 60000
284@ = Car.Create(521, 1196.491, 249.321, 18.5618)
goto @BIKE_2P_957

:BIKE_2P_633
266@ = 8
267@ = 3
265@ = 180000
284@ = Car.Create(522, 1196.491, 249.321, 18.5618)
goto @BIKE_2P_957

:BIKE_2P_687
266@ = 8
267@ = 2
265@ = 120000
284@ = Car.Create(522, 1196.491, 249.321, 18.5618)
goto @BIKE_2P_957

:BIKE_2P_741
266@ = 8
267@ = 1
265@ = 60000
284@ = Car.Create(522, 1196.491, 249.321, 18.5618)
goto @BIKE_2P_957

:BIKE_2P_795
266@ = 10
267@ = 3
265@ = 180000
284@ = Car.Create(461, 1196.491, 249.321, 18.5618)
goto @BIKE_2P_957

:BIKE_2P_849
266@ = 10
267@ = 2
265@ = 120000
284@ = Car.Create(461, 1196.491, 249.321, 18.5618)
goto @BIKE_2P_957

:BIKE_2P_903
266@ = 10
267@ = 1
265@ = 60000
284@ = Car.Create(461, 1196.491, 249.321, 18.5618)
goto @BIKE_2P_957

:BIKE_2P_957
Car.SetHeading(284@, 337.2467)
Car.LockDoors(284@, CarLock.LockedPlayerInside)
$player2 = Player.Create(1, 1196.491, 249.321, 18.5618)
Player.SetModel($player2, 63)
$p2 = Player.GetChar($player2)
if 
  not Char.IsDead($scplayer)
goto_if_false @BIKE_2P_1131
Char.SetCoordinates($scplayer, 1196.491, 249.321, 18.5618)
Char.WarpIntoCar($scplayer, 284@)
Char.WarpIntoCarAsPassenger($p2, 284@, 0)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Char.DisableSpeech($p2, True)
Game.LimitTwoPlayerDistance(20.0)
Char.SetCanBeKnockedOffBike($scplayer, True)
Char.SetCanBeKnockedOffBike($p2, True)

:BIKE_2P_1131
gosub @BIKE_2P_2006
Player.MakeGangDisappear
Camera.SetFixedPosition(1192.166, 245.3466, 20.4391, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1192.838, 246.0682, 20.2713, SwitchType.JumpCut)
gosub @BIKE_2P_2133
if 
  267@ <> 1
goto_if_false @BIKE_2P_1245
Text.PrintWith2NumbersNow('MENU_38', 266@, 267@, 5000, TextStyle.Middle)
goto @BIKE_2P_1267

:BIKE_2P_1245
Text.PrintWith2NumbersNow('MENU_61', 266@, 267@, 5000, TextStyle.Middle)

:BIKE_2P_1267
wait 5000
gosub @BIKE_2P_2047
set_lvar_int_to_var_int 354@ = $bike_2p_level
354@ += 1
KillFrenzy.Start('DUMMY', WeaponType.Mp5, 265@, 266@, 521, 522, 461, 468, False)
World.SetCarDensityMultiplier(2.0)
TIMERB = 0

:BIKE_2P_1341
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @BIKE_2P_1542
wait 0
gosub @BIKE_2P_2174
if 
  Car.IsInWater(284@)
goto_if_false @BIKE_2P_1391
KillFrenzy.Fail

:BIKE_2P_1391
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @BIKE_2P_1413
goto @BIKE_2P_1709

:BIKE_2P_1413
283@ = KillFrenzy.ReadStatus()
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @BIKE_2P_1448
sub_int_lvar_from_int_lvar 265@ -= TIMERB
set_lvar_int_to_constant 283@ = 2

:BIKE_2P_1448
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @BIKE_2P_1470
set_lvar_int_to_constant 283@ = 3

:BIKE_2P_1470
if 
  is_int_lvar_equal_to_constant 283@ == 2
goto_if_false @BIKE_2P_1503
sub_int_lvar_from_int_lvar 265@ -= TIMERB
goto @BIKE_2P_1709

:BIKE_2P_1503
if 
  is_int_lvar_equal_to_constant 283@ == 3
goto_if_false @BIKE_2P_1535
327@ = 1
goto @BIKE_2P_1549

:BIKE_2P_1535
goto @BIKE_2P_1341

:BIKE_2P_1542
goto @BIKE_2P_1549

:BIKE_2P_1549
if 
  327@ == 0
goto_if_false @BIKE_2P_1675
if 
  Char.IsDead($scplayer)
goto_if_false @BIKE_2P_1599
Text.PrintNow('MENU_47', 4000, 1)

:BIKE_2P_1599
if 
  Char.IsDead($p2)
goto_if_false @BIKE_2P_1631
Text.PrintNow('MENU_48', 4000, 1)

:BIKE_2P_1631
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @BIKE_2P_1668
Text.PrintNow('MENU_49', 4000, 1)

:BIKE_2P_1668
goto @BIKE_2P_1691

:BIKE_2P_1675
Text.PrintNow('MENU_50', 4000, 1)

:BIKE_2P_1691
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:BIKE_2P_1709
265@ /= 1000
355@ = Stat.GetInt(StatId.P2BikeRampageBestTime)
if 
  is_int_lvar_greater_than_int_lvar 265@ > 355@
goto_if_false @BIKE_2P_1752
Stat.SetInt(StatId.P2BikeRampageBestTime, 265@)

:BIKE_2P_1752
if 
  $bike_2p_level == 8
goto_if_false @BIKE_2P_1795
Text.PrintWithNumberBig('M_PASSD', 0, 5000, TextStyle.Middle)
goto @BIKE_2P_1813

:BIKE_2P_1795
Text.PrintWithNumberBig('MENU_67', 0, 5000, TextStyle.Middle)

:BIKE_2P_1813
if 
  $bike_2p_level <> 8
goto_if_false @BIKE_2P_1838
$bike_2p_level += 1

:BIKE_2P_1838
Player.ClearWantedLevel($player1)
if 
  not Car.IsDead(284@)
goto_if_false @BIKE_2P_1866
Car.LockDoors(284@, CarLock.Unlocked)

:BIKE_2P_1866
return 

:BIKE_2P_1868
Game.HideAllFrontendBlips(False)
327@ = 0
Player.MakeGangReappear
Player.ClearWantedLevel($player1)
Game.SetWantedMultiplier(1.0)
if 
  not Car.IsDead(284@)
goto_if_false @BIKE_2P_1916
Car.LockDoors(284@, CarLock.Unlocked)

:BIKE_2P_1916
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(522)
Streaming.MarkModelAsNoLongerNeeded(461)
Streaming.MarkModelAsNoLongerNeeded(521)
Streaming.MarkModelAsNoLongerNeeded(63)
CarGenerator.DontSuppressCarModel(448)
CarGenerator.DontSuppressCarModel(462)
CarGenerator.DontSuppressCarModel(463)
CarGenerator.DontSuppressCarModel(509)
CarGenerator.DontSuppressCarModel(510)
CarGenerator.DontSuppressCarModel(523)
CarGenerator.DontSuppressCarModel(581)
CarGenerator.DontSuppressCarModel(586)
CarGenerator.DontSuppressCarModel(523)
CarGenerator.DontSuppressCarModel(581)
CarGenerator.DontSuppressCarModel(586)
$onmission = 0
Mission.Finish
return 

:BIKE_2P_2006
Hud.SwitchWidescreen(True)
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @BIKE_2P_2045
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:BIKE_2P_2045
return 

:BIKE_2P_2047
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @BIKE_2P_2088
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:BIKE_2P_2088
Camera.RestoreJumpcut
return 

:BIKE_2P_2092
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:BIKE_2P_2107
if 
  Camera.GetFadingStatus
goto_if_false @BIKE_2P_2131
wait 0
goto @BIKE_2P_2107

:BIKE_2P_2131
return 

:BIKE_2P_2133
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:BIKE_2P_2148
if 
  Camera.GetFadingStatus
goto_if_false @BIKE_2P_2172
wait 0
goto @BIKE_2P_2148

:BIKE_2P_2172
return 

:BIKE_2P_2174
if 
is_ps2_keyboard_key_just_pressed 28
goto_if_false @BIKE_2P_2189

:BIKE_2P_2189
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @BIKE_2P_2211
goto @BIKE_2P_1709

:BIKE_2P_2211
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @BIKE_2P_2226

:BIKE_2P_2226
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @BIKE_2P_2262
if 
  not Char.IsDead($p2)
goto_if_false @BIKE_2P_2262
Task.Die($p2)

:BIKE_2P_2262
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @BIKE_2P_2279
KillFrenzy.Fail

:BIKE_2P_2279
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @BIKE_2P_2315
if 
  not Char.IsDead($scplayer)
goto_if_false @BIKE_2P_2315
Task.Die($scplayer)

:BIKE_2P_2315
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @BIKE_2P_2360
if 
  not Char.IsDead($scplayer)
goto_if_false @BIKE_2P_2360
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:BIKE_2P_2360
return 

//-------------Mission 137---------------
// Originally: 2player cars

:CARS_2P
script_name 'CARS_2P'
gosub @CARS_2P_45
if 
  has_deatharrest_been_executed 
goto_if_false @CARS_2P_38
gosub @CARS_2P_1736

:CARS_2P_38
goto @CARS_2P_2055

:CARS_2P_45
Game.HideAllFrontendBlips(True)
Text.ClearPrints
Player.ClearWantedLevel($player1)
Game.SetWantedMultiplier(0.0)
Camera.SetFadingColor(0, 0, 0)
282@ = 0
283@ = 0
284@ = 0
291@ = 0
285@ = 0

:CARS_2P_106
286@(285@,5i) = 0
285@ += 1
  285@ >= 5
goto_if_false @CARS_2P_106
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('MENU2P')
wait 0
Streaming.RequestModel(353)
Streaming.RequestModel(63)

:CARS_2P_171
if 
  not Streaming.HasModelLoaded(63)
goto_if_false @CARS_2P_197
wait 0
goto @CARS_2P_171

:CARS_2P_197
TIMERA = 0
World.SetCarDensityMultiplier(2.0)
World.SetPedDensityMultiplier(0.0)
World.ClearArea(-2102.848, 653.8868, 51.3671, 40.0, True)
switch_start $cars_2p_level {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CARS_2P_1144 {caseNum1} 0 {caseLabel1} @CARS_2P_370 {caseNum2} 1 {caseLabel2} @CARS_2P_456 {caseNum3} 2 {caseLabel3} @CARS_2P_542 {caseNum4} 3 {caseLabel4} @CARS_2P_628 {caseNum5} 4 {caseLabel5} @CARS_2P_714 {caseNum6} 5 {caseLabel6} @CARS_2P_800 {caseNum7} 6 {caseLabel7} @CARS_2P_886
switch_continued 7 {caseLabel1} @CARS_2P_972 {caseNum2} 8 {caseLabel2} @CARS_2P_1058 {caseNum3} -1 {caseLabel3} @CARS_2P_1144 {caseNum4} -1 {caseLabel4} @CARS_2P_1144 {caseNum5} -1 {caseLabel5} @CARS_2P_1144 {caseNum6} -1 {caseLabel6} @CARS_2P_1144 {caseNum7} -1 {caseLabel7} @CARS_2P_1144 {caseNum8} -1 {caseLabel8} @CARS_2P_1144 {caseNum9} -1 {caseLabel9} @CARS_2P_1144

:CARS_2P_370
Streaming.RequestModel(405)

:CARS_2P_375
if 
  not Streaming.HasModelLoaded(405)
goto_if_false @CARS_2P_402
wait 0
goto @CARS_2P_375

:CARS_2P_402
266@ = 5
267@ = 3
265@ = 180000
283@ = Car.Create(405, -2103.0, 654.4047, 51.3703)
goto @CARS_2P_1144

:CARS_2P_456
Streaming.RequestModel(405)

:CARS_2P_461
if 
  not Streaming.HasModelLoaded(405)
goto_if_false @CARS_2P_488
wait 0
goto @CARS_2P_461

:CARS_2P_488
266@ = 5
267@ = 2
265@ = 120000
283@ = Car.Create(405, -2103.0, 654.4047, 51.3703)
goto @CARS_2P_1144

:CARS_2P_542
Streaming.RequestModel(405)

:CARS_2P_547
if 
  not Streaming.HasModelLoaded(405)
goto_if_false @CARS_2P_574
wait 0
goto @CARS_2P_547

:CARS_2P_574
266@ = 5
267@ = 1
265@ = 60000
283@ = Car.Create(405, -2103.0, 654.4047, 51.3703)
goto @CARS_2P_1144

:CARS_2P_628
Streaming.RequestModel(420)

:CARS_2P_633
if 
  not Streaming.HasModelLoaded(420)
goto_if_false @CARS_2P_660
wait 0
goto @CARS_2P_633

:CARS_2P_660
266@ = 8
267@ = 3
265@ = 180000
283@ = Car.Create(420, -2103.0, 654.4047, 51.3703)
goto @CARS_2P_1144

:CARS_2P_714
Streaming.RequestModel(420)

:CARS_2P_719
if 
  not Streaming.HasModelLoaded(420)
goto_if_false @CARS_2P_746
wait 0
goto @CARS_2P_719

:CARS_2P_746
266@ = 8
267@ = 2
265@ = 120000
283@ = Car.Create(420, -2103.0, 654.4047, 51.3703)
goto @CARS_2P_1144

:CARS_2P_800
Streaming.RequestModel(420)

:CARS_2P_805
if 
  not Streaming.HasModelLoaded(420)
goto_if_false @CARS_2P_832
wait 0
goto @CARS_2P_805

:CARS_2P_832
266@ = 8
267@ = 1
265@ = 60000
283@ = Car.Create(420, -2103.0, 654.4047, 51.3703)
goto @CARS_2P_1144

:CARS_2P_886
Streaming.RequestModel(502)

:CARS_2P_891
if 
  not Streaming.HasModelLoaded(502)
goto_if_false @CARS_2P_918
wait 0
goto @CARS_2P_891

:CARS_2P_918
266@ = 10
267@ = 3
265@ = 180000
283@ = Car.Create(502, -2103.0, 654.4047, 51.3703)
goto @CARS_2P_1144

:CARS_2P_972
Streaming.RequestModel(502)

:CARS_2P_977
if 
  not Streaming.HasModelLoaded(502)
goto_if_false @CARS_2P_1004
wait 0
goto @CARS_2P_977

:CARS_2P_1004
266@ = 10
267@ = 2
265@ = 120000
283@ = Car.Create(502, -2103.0, 654.4047, 51.3703)
goto @CARS_2P_1144

:CARS_2P_1058
Streaming.RequestModel(502)

:CARS_2P_1063
if 
  not Streaming.HasModelLoaded(502)
goto_if_false @CARS_2P_1090
wait 0
goto @CARS_2P_1063

:CARS_2P_1090
266@ = 10
267@ = 1
265@ = 60000
283@ = Car.Create(502, -2103.0, 654.4047, 51.3703)
goto @CARS_2P_1144

:CARS_2P_1144
Car.SetHeading(283@, 269.5643)
Car.LockDoors(283@, CarLock.LockedPlayerInside)
$player2 = Player.Create(1, -2104.556, 654.4047, 51.3703)
Player.SetModel($player2, 63)
$p2 = Player.GetChar($player2)
if 
  not Char.IsDead($scplayer)
goto_if_false @CARS_2P_1304
Char.SetCoordinates($scplayer, -2104.556, 654.4047, 51.3703)
Char.WarpIntoCar($scplayer, 283@)
Char.WarpIntoCarAsPassenger($p2, 283@, 0)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Game.LimitTwoPlayerDistance(20.0)
Char.DisableSpeech($p2, True)

:CARS_2P_1304
gosub @CARS_2P_2143
Player.MakeGangDisappear
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @CARS_2P_1348
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:CARS_2P_1348
Camera.SetFixedPosition(-2105.843, 651.8388, 52.53596, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2105.124, 652.5283, 52.4463, SwitchType.JumpCut)
gosub @CARS_2P_2270
if 
  267@ <> 1
goto_if_false @CARS_2P_1453
Text.PrintWith2NumbersNow('MENU_64', 266@, 267@, 5000, TextStyle.Middle)
goto @CARS_2P_1475

:CARS_2P_1453
Text.PrintWith2NumbersNow('MENU_63', 266@, 267@, 5000, TextStyle.Middle)

:CARS_2P_1475
wait 5000
gosub @CARS_2P_2184
set_lvar_int_to_var_int 353@ = $cars_2p_level
353@ += 1
KillFrenzy.Start('DUMMY', WeaponType.Mp5, 265@, 266@, #KEYCARD, #KEYCARD, #KEYCARD, #KEYCARD, False)
World.SetCarDensityMultiplier(2.0)
TIMERB = 0

:CARS_2P_1545
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
  not Car.IsDead(283@)
goto_if_false @CARS_2P_1729
wait 0
gosub @CARS_2P_2311
if 
  Car.IsInWater(283@)
goto_if_false @CARS_2P_1600
KillFrenzy.Fail

:CARS_2P_1600
282@ = KillFrenzy.ReadStatus()
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CARS_2P_1635
sub_int_lvar_from_int_lvar 265@ -= TIMERB
set_lvar_int_to_constant 282@ = 2

:CARS_2P_1635
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @CARS_2P_1657
set_lvar_int_to_constant 282@ = 3

:CARS_2P_1657
if 
  is_int_lvar_equal_to_constant 282@ == 2
goto_if_false @CARS_2P_1690
sub_int_lvar_from_int_lvar 265@ -= TIMERB
goto @CARS_2P_1896

:CARS_2P_1690
if 
  is_int_lvar_equal_to_constant 282@ == 3
goto_if_false @CARS_2P_1722
352@ = 1
goto @CARS_2P_1736

:CARS_2P_1722
goto @CARS_2P_1545

:CARS_2P_1729
goto @CARS_2P_1736

:CARS_2P_1736
if 
  352@ == 0
goto_if_false @CARS_2P_1862
if 
  Char.IsDead($scplayer)
goto_if_false @CARS_2P_1786
Text.PrintNow('MENU_47', 4000, 1)

:CARS_2P_1786
if 
  Char.IsDead($p2)
goto_if_false @CARS_2P_1818
Text.PrintNow('MENU_48', 4000, 1)

:CARS_2P_1818
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @CARS_2P_1855
Text.PrintNow('MENU_49', 4000, 1)

:CARS_2P_1855
goto @CARS_2P_1878

:CARS_2P_1862
Text.PrintNow('MENU_50', 4000, 1)

:CARS_2P_1878
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:CARS_2P_1896
265@ /= 1000
354@ = Stat.GetInt(StatId.P2CarsRampageBestTime)
if 
  is_int_lvar_greater_than_int_lvar 265@ > 354@
goto_if_false @CARS_2P_1939
Stat.SetInt(StatId.P2CarsRampageBestTime, 265@)

:CARS_2P_1939
if 
  $cars_2p_level == 8
goto_if_false @CARS_2P_1982
Text.PrintWithNumberBig('M_PASSD', 0, 5000, TextStyle.Middle)
goto @CARS_2P_2000

:CARS_2P_1982
Text.PrintWithNumberBig('MENU_67', 0, 5000, TextStyle.Middle)

:CARS_2P_2000
Player.ClearWantedLevel($player1)
if 
  not Car.IsDead(283@)
goto_if_false @CARS_2P_2028
Car.LockDoors(283@, CarLock.Unlocked)

:CARS_2P_2028
if 
  $cars_2p_level <> 8
goto_if_false @CARS_2P_2053
$cars_2p_level += 1

:CARS_2P_2053
return 

:CARS_2P_2055
Game.HideAllFrontendBlips(False)
352@ = 0
Player.MakeGangReappear
Player.ClearWantedLevel($player1)
Game.SetWantedMultiplier(1.0)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(405)
Streaming.MarkModelAsNoLongerNeeded(420)
Streaming.MarkModelAsNoLongerNeeded(502)
Streaming.MarkModelAsNoLongerNeeded(63)
$onmission = 0
Player.ClearWantedLevel($player1)
Mission.Finish
if 
  not Car.IsDead(283@)
goto_if_false @CARS_2P_2141
Car.LockDoors(283@, CarLock.Unlocked)

:CARS_2P_2141
terminate_this_script 

:CARS_2P_2143
Hud.SwitchWidescreen(True)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @CARS_2P_2182
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:CARS_2P_2182
return 

:CARS_2P_2184
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @CARS_2P_2225
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:CARS_2P_2225
Camera.RestoreJumpcut
return 
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:CARS_2P_2244
if 
  Camera.GetFadingStatus
goto_if_false @CARS_2P_2268
wait 0
goto @CARS_2P_2244

:CARS_2P_2268
return 

:CARS_2P_2270
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:CARS_2P_2285
if 
  Camera.GetFadingStatus
goto_if_false @CARS_2P_2309
wait 0
goto @CARS_2P_2285

:CARS_2P_2309
return 

:CARS_2P_2311
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @CARS_2P_2349
if 
  not Car.IsDead(283@)
goto_if_false @CARS_2P_2349
Car.LockDoors(283@, CarLock.Unlocked)

:CARS_2P_2349
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @CARS_2P_2364

:CARS_2P_2364
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @CARS_2P_2386
goto @CARS_2P_1896

:CARS_2P_2386
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @CARS_2P_2422
if 
  not Char.IsDead($p2)
goto_if_false @CARS_2P_2422
Task.Die($p2)

:CARS_2P_2422
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @CARS_2P_2437

:CARS_2P_2437
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @CARS_2P_2473
if 
  not Char.IsDead($scplayer)
goto_if_false @CARS_2P_2473
Task.Die($scplayer)

:CARS_2P_2473
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @CARS_2P_2518
if 
  not Char.IsDead($scplayer)
goto_if_false @CARS_2P_2518
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:CARS_2P_2518
return 

//-------------Mission 138---------------
// Originally: 2player heli

:HELI_2P
script_name 'HELI_2P'
gosub @HELI_2P_47
if 
  has_deatharrest_been_executed 
goto_if_false @HELI_2P_38
gosub @HELI_2P_1442

:HELI_2P_38
gosub @HELI_2P_1761
terminate_this_script 

:HELI_2P_47
Game.HideAllFrontendBlips(True)
Text.ClearPrints
Player.ClearWantedLevel($player1)
Game.SetWantedMultiplier(0.0)
Text.LoadMissionText('MENU2P')
Camera.SetFadingColor(0, 0, 0)
gosub @HELI_2P_1940
34@ = 0
35@ = 0
$onmission = 1
Stat.RegisterMissionGiven
wait 0
Streaming.RequestModel(353)
Streaming.RequestModel(497)
Streaming.RequestModel(447)
Streaming.RequestModel(469)
Streaming.RequestModel(63)

:HELI_2P_142
if or
  not Streaming.HasModelLoaded(353)
  not Streaming.HasModelLoaded(497)
  not Streaming.HasModelLoaded(447)
  not Streaming.HasModelLoaded(469)
  not Streaming.HasModelLoaded(63)
goto_if_false @HELI_2P_188
wait 0
goto @HELI_2P_142

:HELI_2P_188
TIMERA = 0
World.SetCarDensityMultiplier(1.0)
World.ClearArea(-252.9156, 2583.779, 62.5703, 40.0, True)
switch_start $heli_2p_level {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @HELI_2P_840 {caseNum1} 0 {caseLabel1} @HELI_2P_354 {caseNum2} 1 {caseLabel2} @HELI_2P_408 {caseNum3} 2 {caseLabel3} @HELI_2P_462 {caseNum4} 3 {caseLabel4} @HELI_2P_516 {caseNum5} 4 {caseLabel5} @HELI_2P_570 {caseNum6} 5 {caseLabel6} @HELI_2P_624 {caseNum7} 6 {caseLabel7} @HELI_2P_678
switch_continued 7 {caseLabel1} @HELI_2P_732 {caseNum2} 8 {caseLabel2} @HELI_2P_786 {caseNum3} -1 {caseLabel3} @HELI_2P_840 {caseNum4} -1 {caseLabel4} @HELI_2P_840 {caseNum5} -1 {caseLabel5} @HELI_2P_840 {caseNum6} -1 {caseLabel6} @HELI_2P_840 {caseNum7} -1 {caseLabel7} @HELI_2P_840 {caseNum8} -1 {caseLabel8} @HELI_2P_840 {caseNum9} -1 {caseLabel9} @HELI_2P_840

:HELI_2P_354
278@ = 8
279@ = 3
277@ = 180000
34@ = Car.Create(497, -252.9156, 2583.779, 62.5703)
goto @HELI_2P_840

:HELI_2P_408
278@ = 8
279@ = 2
277@ = 120000
34@ = Car.Create(497, -252.9156, 2583.779, 62.5703)
goto @HELI_2P_840

:HELI_2P_462
278@ = 8
279@ = 1
277@ = 60000
34@ = Car.Create(497, -252.9156, 2583.779, 62.5703)
goto @HELI_2P_840

:HELI_2P_516
278@ = 10
279@ = 3
277@ = 180000
34@ = Car.Create(497, -252.9156, 2583.779, 62.5703)
goto @HELI_2P_840

:HELI_2P_570
278@ = 10
279@ = 2
277@ = 120000
34@ = Car.Create(497, -252.9156, 2583.779, 62.5703)
goto @HELI_2P_840

:HELI_2P_624
278@ = 10
279@ = 1
277@ = 60000
34@ = Car.Create(497, -252.9156, 2583.779, 62.5703)
goto @HELI_2P_840

:HELI_2P_678
278@ = 12
279@ = 3
277@ = 180000
34@ = Car.Create(497, -252.9156, 2583.779, 62.5703)
goto @HELI_2P_840

:HELI_2P_732
278@ = 12
279@ = 2
277@ = 120000
34@ = Car.Create(497, -252.9156, 2583.779, 62.5703)
goto @HELI_2P_840

:HELI_2P_786
278@ = 12
279@ = 1
277@ = 60000
34@ = Car.Create(497, -252.9156, 2583.779, 62.5703)
goto @HELI_2P_840

:HELI_2P_840
Car.SetHeading(34@, 310.1937)
Car.LockDoors(34@, CarLock.LockedPlayerInside)
$player2 = Player.Create(1, -252.9156, 2583.779, 62.5703)
Player.SetModel($player2, 63)
$p2 = Player.GetChar($player2)
if 
  not Char.IsDead($scplayer)
goto_if_false @HELI_2P_1017
Char.SetCoordinates($scplayer, -252.9156, 2583.779, 62.5703)
Char.WarpIntoCar($scplayer, 34@)
Char.WarpIntoCarAsPassenger($p2, 34@, 0)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Char.GiveWeapon($p2, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon($p2, WeaponType.Mp5)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Game.LimitTwoPlayerDistance(20.0)
Char.DisableSpeech($p2, True)

:HELI_2P_1017
gosub @HELI_2P_1854
Player.MakeGangDisappear
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @HELI_2P_1061
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:HELI_2P_1061
Camera.SetFixedPosition(-252.9156, 2575.86, 65.34, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-252.7241, 2576.819, 65.1324, SwitchType.JumpCut)
gosub @HELI_2P_1981
if 
  279@ <> 1
goto_if_false @HELI_2P_1166
Text.PrintWith2NumbersNow('MENU_64', 278@, 279@, 5000, TextStyle.Middle)
goto @HELI_2P_1188

:HELI_2P_1166
Text.PrintWith2NumbersNow('MENU_63', 278@, 279@, 5000, TextStyle.Middle)

:HELI_2P_1188
wait 5000
gosub @HELI_2P_1895
set_lvar_int_to_var_int 345@ = $heli_2p_level
345@ += 1
KillFrenzy.Start('DUMMY', WeaponType.Mp5, 277@, 278@, #KEYCARD, #KEYCARD, #KEYCARD, #KEYCARD, False)
TIMERB = 0

:HELI_2P_1251
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
  not Car.IsDead(34@)
goto_if_false @HELI_2P_1435
wait 0
gosub @HELI_2P_2022
if 
  Car.IsInWater(34@)
goto_if_false @HELI_2P_1306
KillFrenzy.Fail

:HELI_2P_1306
35@ = KillFrenzy.ReadStatus()
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @HELI_2P_1341
sub_int_lvar_from_int_lvar 277@ -= TIMERB
set_lvar_int_to_constant 35@ = 2

:HELI_2P_1341
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @HELI_2P_1363
set_lvar_int_to_constant 35@ = 3

:HELI_2P_1363
if 
  is_int_lvar_equal_to_constant 35@ == 2
goto_if_false @HELI_2P_1396
sub_int_lvar_from_int_lvar 277@ -= TIMERB
goto @HELI_2P_1602

:HELI_2P_1396
if 
  is_int_lvar_equal_to_constant 35@ == 3
goto_if_false @HELI_2P_1428
344@ = 1
goto @HELI_2P_1442

:HELI_2P_1428
goto @HELI_2P_1251

:HELI_2P_1435
goto @HELI_2P_1442

:HELI_2P_1442
if 
  344@ == 0
goto_if_false @HELI_2P_1568
if 
  Char.IsDead($scplayer)
goto_if_false @HELI_2P_1492
Text.PrintNow('MENU_47', 4000, 1)

:HELI_2P_1492
if 
  Char.IsDead($p2)
goto_if_false @HELI_2P_1524
Text.PrintNow('MENU_48', 4000, 1)

:HELI_2P_1524
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @HELI_2P_1561
Text.PrintNow('MENU_49', 4000, 1)

:HELI_2P_1561
goto @HELI_2P_1584

:HELI_2P_1568
Text.PrintNow('MENU_50', 4000, 1)

:HELI_2P_1584
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:HELI_2P_1602
277@ /= 1000
346@ = Stat.GetInt(StatId.P2HeliRampageBestTime)
if 
  is_int_lvar_greater_than_int_lvar 277@ > 346@
goto_if_false @HELI_2P_1645
Stat.SetInt(StatId.P2HeliRampageBestTime, 277@)

:HELI_2P_1645
if 
  not Car.IsDead(34@)
goto_if_false @HELI_2P_1668
Car.LockDoors(34@, CarLock.Unlocked)

:HELI_2P_1668
if 
  $heli_2p_level <> 8
goto_if_false @HELI_2P_1693
$heli_2p_level += 1

:HELI_2P_1693
if 
  $heli_2p_level == 8
goto_if_false @HELI_2P_1736
Text.PrintWithNumberBig('M_PASSD', 0, 5000, TextStyle.Middle)
goto @HELI_2P_1754

:HELI_2P_1736
Text.PrintWithNumberBig('MENU_67', 0, 5000, TextStyle.Middle)

:HELI_2P_1754
Player.ClearWantedLevel($player1)
return 

:HELI_2P_1761
Game.HideAllFrontendBlips(False)
344@ = 0
Player.MakeGangReappear
Game.SetWantedMultiplier(1.0)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(497)
Streaming.MarkModelAsNoLongerNeeded(447)
Streaming.MarkModelAsNoLongerNeeded(469)
Streaming.MarkModelAsNoLongerNeeded(487)
Streaming.MarkModelAsNoLongerNeeded(488)
Streaming.MarkModelAsNoLongerNeeded(63)
if 
  not Car.IsDead(34@)
goto_if_false @HELI_2P_1838
Car.LockDoors(34@, CarLock.Unlocked)

:HELI_2P_1838
$onmission = 0
Player.ClearWantedLevel($player1)
Mission.Finish
return 

:HELI_2P_1854
Hud.SwitchWidescreen(True)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @HELI_2P_1893
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:HELI_2P_1893
return 

:HELI_2P_1895
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @HELI_2P_1936
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:HELI_2P_1936
Camera.RestoreJumpcut
return 

:HELI_2P_1940
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:HELI_2P_1955
if 
  Camera.GetFadingStatus
goto_if_false @HELI_2P_1979
wait 0
goto @HELI_2P_1955

:HELI_2P_1979
return 

:HELI_2P_1981
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:HELI_2P_1996
if 
  Camera.GetFadingStatus
goto_if_false @HELI_2P_2020
wait 0
goto @HELI_2P_1996

:HELI_2P_2020
return 

:HELI_2P_2022
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @HELI_2P_2037

:HELI_2P_2037
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @HELI_2P_2052

:HELI_2P_2052
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @HELI_2P_2074
goto @HELI_2P_1602

:HELI_2P_2074
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @HELI_2P_2110
if 
  not Char.IsDead($p2)
goto_if_false @HELI_2P_2110
Task.Die($p2)

:HELI_2P_2110
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @HELI_2P_2125

:HELI_2P_2125
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @HELI_2P_2161
if 
  not Char.IsDead($scplayer)
goto_if_false @HELI_2P_2161
Task.Die($scplayer)

:HELI_2P_2161
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @HELI_2P_2206
if 
  not Char.IsDead($scplayer)
goto_if_false @HELI_2P_2206
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:HELI_2P_2206
return 

//-------------Mission 139---------------
// Originally: 2player peds

:PEDS_2P
script_name 'PEDS_2P'
gosub @PEDS_2P_47
if 
  has_deatharrest_been_executed 
goto_if_false @PEDS_2P_38
gosub @PEDS_2P_1754

:PEDS_2P_38
gosub @PEDS_2P_2073
terminate_this_script 

:PEDS_2P_47
Game.HideAllFrontendBlips(True)
Text.ClearPrints
Player.ClearWantedLevel($player1)
Game.SetWantedMultiplier(0.0)
Camera.SetFadingColor(0, 0, 0)
Text.ClearPrints
282@ = 0
283@ = 0
284@ = 0
291@ = 0
285@ = 0

:PEDS_2P_110
286@(285@,5i) = 0
285@ += 1
  285@ >= 5
goto_if_false @PEDS_2P_110
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('MENU2P')
gosub @PEDS_2P_2242
wait 0
Streaming.RequestModel(353)
Streaming.RequestModel(63)

:PEDS_2P_182
if or
  not Streaming.HasModelLoaded(353)
  not Streaming.HasModelLoaded(63)
goto_if_false @PEDS_2P_213
wait 0
goto @PEDS_2P_182

:PEDS_2P_213
TIMERA = 0
World.SetCarDensityMultiplier(0.5)
World.ClearArea(2510.633, 1207.917, 9.8281, 40.0, True)
switch_start $peds_2p_level {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @PEDS_2P_1153 {caseNum1} 0 {caseLabel1} @PEDS_2P_379 {caseNum2} 1 {caseLabel2} @PEDS_2P_465 {caseNum3} 2 {caseLabel3} @PEDS_2P_551 {caseNum4} 3 {caseLabel4} @PEDS_2P_637 {caseNum5} 4 {caseLabel5} @PEDS_2P_723 {caseNum6} 5 {caseLabel6} @PEDS_2P_809 {caseNum7} 6 {caseLabel7} @PEDS_2P_895
switch_continued 7 {caseLabel1} @PEDS_2P_981 {caseNum2} 8 {caseLabel2} @PEDS_2P_1067 {caseNum3} -1 {caseLabel3} @PEDS_2P_1153 {caseNum4} -1 {caseLabel4} @PEDS_2P_1153 {caseNum5} -1 {caseLabel5} @PEDS_2P_1153 {caseNum6} -1 {caseLabel6} @PEDS_2P_1153 {caseNum7} -1 {caseLabel7} @PEDS_2P_1153 {caseNum8} -1 {caseLabel8} @PEDS_2P_1153 {caseNum9} -1 {caseLabel9} @PEDS_2P_1153

:PEDS_2P_379
Streaming.RequestModel(402)

:PEDS_2P_384
if 
  not Streaming.HasModelLoaded(402)
goto_if_false @PEDS_2P_411
wait 0
goto @PEDS_2P_384

:PEDS_2P_411
266@ = 15
267@ = 3
265@ = 180000
283@ = Car.Create(402, 2510.633, 1207.917, 9.8281)
goto @PEDS_2P_1153

:PEDS_2P_465
Streaming.RequestModel(402)

:PEDS_2P_470
if 
  not Streaming.HasModelLoaded(402)
goto_if_false @PEDS_2P_497
wait 0
goto @PEDS_2P_470

:PEDS_2P_497
266@ = 15
267@ = 2
265@ = 120000
283@ = Car.Create(402, 2510.633, 1207.917, 9.8281)
goto @PEDS_2P_1153

:PEDS_2P_551
Streaming.RequestModel(402)

:PEDS_2P_556
if 
  not Streaming.HasModelLoaded(402)
goto_if_false @PEDS_2P_583
wait 0
goto @PEDS_2P_556

:PEDS_2P_583
266@ = 15
267@ = 1
265@ = 60000
283@ = Car.Create(402, 2510.633, 1207.917, 9.8281)
goto @PEDS_2P_1153

:PEDS_2P_637
Streaming.RequestModel(411)

:PEDS_2P_642
if 
  not Streaming.HasModelLoaded(411)
goto_if_false @PEDS_2P_669
wait 0
goto @PEDS_2P_642

:PEDS_2P_669
266@ = 20
267@ = 3
265@ = 180000
283@ = Car.Create(411, 2510.633, 1207.917, 9.8281)
goto @PEDS_2P_1153

:PEDS_2P_723
Streaming.RequestModel(411)

:PEDS_2P_728
if 
  not Streaming.HasModelLoaded(411)
goto_if_false @PEDS_2P_755
wait 0
goto @PEDS_2P_728

:PEDS_2P_755
266@ = 20
267@ = 2
265@ = 120000
283@ = Car.Create(411, 2510.633, 1207.917, 9.8281)
goto @PEDS_2P_1153

:PEDS_2P_809
Streaming.RequestModel(411)

:PEDS_2P_814
if 
  not Streaming.HasModelLoaded(411)
goto_if_false @PEDS_2P_841
wait 0
goto @PEDS_2P_814

:PEDS_2P_841
266@ = 20
267@ = 1
265@ = 60000
283@ = Car.Create(411, 2510.633, 1207.917, 9.8281)
goto @PEDS_2P_1153

:PEDS_2P_895
Streaming.RequestModel(477)

:PEDS_2P_900
if 
  not Streaming.HasModelLoaded(477)
goto_if_false @PEDS_2P_927
wait 0
goto @PEDS_2P_900

:PEDS_2P_927
266@ = 25
267@ = 3
265@ = 180000
283@ = Car.Create(477, 2510.633, 1207.917, 9.8281)
goto @PEDS_2P_1153

:PEDS_2P_981
Streaming.RequestModel(477)

:PEDS_2P_986
if 
  not Streaming.HasModelLoaded(477)
goto_if_false @PEDS_2P_1013
wait 0
goto @PEDS_2P_986

:PEDS_2P_1013
266@ = 25
267@ = 2
265@ = 120000
283@ = Car.Create(477, 2510.633, 1207.917, 9.8281)
goto @PEDS_2P_1153

:PEDS_2P_1067
Streaming.RequestModel(477)

:PEDS_2P_1072
if 
  not Streaming.HasModelLoaded(477)
goto_if_false @PEDS_2P_1099
wait 0
goto @PEDS_2P_1072

:PEDS_2P_1099
266@ = 25
267@ = 1
265@ = 60000
283@ = Car.Create(477, 2510.633, 1207.917, 9.8281)
goto @PEDS_2P_1153

:PEDS_2P_1153
Car.SetHeading(283@, 271.2962)
Car.LockDoors(283@, CarLock.LockedPlayerInside)
$player2 = Player.Create(1, 2510.633, 1207.917, 9.8281)
Player.SetModel($player2, 63)
$p2 = Player.GetChar($player2)
if 
  not Char.IsDead($scplayer)
goto_if_false @PEDS_2P_1330
Char.SetCoordinates($scplayer, 2510.633, 1207.917, 9.8281)
Char.WarpIntoCar($scplayer, 283@)
Char.WarpIntoCarAsPassenger($p2, 283@, 0)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Char.GiveWeapon($p2, WeaponType.Mp5, 30000)
Char.SetCurrentWeapon($p2, WeaponType.Mp5)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Game.LimitTwoPlayerDistance(20.0)
Char.DisableSpeech($p2, True)

:PEDS_2P_1330
gosub @PEDS_2P_2156
Player.MakeGangDisappear
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @PEDS_2P_1374
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:PEDS_2P_1374
Camera.SetFixedPosition(2508.093, 1205.589, 11.1785, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2509.017, 1205.957, 11.0761, SwitchType.JumpCut)
gosub @PEDS_2P_2283
if 
  267@ <> 1
goto_if_false @PEDS_2P_1479
Text.PrintWith2NumbersNow('MENU_46', 266@, 267@, 5000, TextStyle.Middle)
goto @PEDS_2P_1501

:PEDS_2P_1479
Text.PrintWith2NumbersNow('MENU_62', 266@, 267@, 5000, TextStyle.Middle)

:PEDS_2P_1501
wait 5000
gosub @PEDS_2P_2197
set_lvar_int_to_var_int 353@ = $peds_2p_level
353@ += 1
KillFrenzy.Start('DUMMY', WeaponType.Mp5, 265@, 266@, #INFO, #INFO, #INFO, #INFO, False)
World.SetPedDensityMultiplier(2.0)
TIMERB = 0

:PEDS_2P_1571
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
  not Car.IsDead(283@)
goto_if_false @PEDS_2P_1747
wait 0
gosub @PEDS_2P_2324
if 
  Car.IsInWater(283@)
goto_if_false @PEDS_2P_1626
KillFrenzy.Fail

:PEDS_2P_1626
282@ = KillFrenzy.ReadStatus()
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @PEDS_2P_1653
set_lvar_int_to_constant 282@ = 2

:PEDS_2P_1653
if 
is_ps2_keyboard_key_pressed 9
goto_if_false @PEDS_2P_1675
set_lvar_int_to_constant 282@ = 3

:PEDS_2P_1675
if 
  is_int_lvar_equal_to_constant 282@ == 2
goto_if_false @PEDS_2P_1708
sub_int_lvar_from_int_lvar 265@ -= TIMERB
goto @PEDS_2P_1914

:PEDS_2P_1708
if 
  is_int_lvar_equal_to_constant 282@ == 3
goto_if_false @PEDS_2P_1740
352@ = 1
goto @PEDS_2P_1754

:PEDS_2P_1740
goto @PEDS_2P_1571

:PEDS_2P_1747
goto @PEDS_2P_1754

:PEDS_2P_1754
if 
  352@ == 0
goto_if_false @PEDS_2P_1880
if 
  Char.IsDead($scplayer)
goto_if_false @PEDS_2P_1804
Text.PrintNow('MENU_47', 4000, 1)

:PEDS_2P_1804
if 
  Char.IsDead($p2)
goto_if_false @PEDS_2P_1836
Text.PrintNow('MENU_48', 4000, 1)

:PEDS_2P_1836
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @PEDS_2P_1873
Text.PrintNow('MENU_49', 4000, 1)

:PEDS_2P_1873
goto @PEDS_2P_1896

:PEDS_2P_1880
Text.PrintNow('MENU_50', 4000, 1)

:PEDS_2P_1896
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 

:PEDS_2P_1914
265@ /= 1000
354@ = Stat.GetInt(StatId.P2PedsRampageBestTime)
if 
  is_int_lvar_greater_than_int_lvar 265@ > 354@
goto_if_false @PEDS_2P_1957
Stat.SetInt(StatId.P2PedsRampageBestTime, 265@)

:PEDS_2P_1957
if 
  $peds_2p_level <> 8
goto_if_false @PEDS_2P_1982
$peds_2p_level += 1

:PEDS_2P_1982
if 
  $peds_2p_level == 8
goto_if_false @PEDS_2P_2025
Text.PrintWithNumberBig('M_PASSD', 0, 5000, TextStyle.Middle)
goto @PEDS_2P_2043

:PEDS_2P_2025
Text.PrintWithNumberBig('MENU_67', 0, 5000, TextStyle.Middle)

:PEDS_2P_2043
Player.ClearWantedLevel($player1)
if 
  not Car.IsDead(283@)
goto_if_false @PEDS_2P_2071
Car.LockDoors(283@, CarLock.Unlocked)

:PEDS_2P_2071
return 

:PEDS_2P_2073
Game.HideAllFrontendBlips(False)
352@ = 0
Player.MakeGangReappear
Player.ClearWantedLevel($player1)
Game.SetWantedMultiplier(1.0)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(402)
Streaming.MarkModelAsNoLongerNeeded(411)
Streaming.MarkModelAsNoLongerNeeded(477)
Streaming.MarkModelAsNoLongerNeeded(63)
if 
  not Car.IsDead(283@)
goto_if_false @PEDS_2P_2145
Car.LockDoors(283@, CarLock.Unlocked)

:PEDS_2P_2145
$onmission = 0
Mission.Finish
return 

:PEDS_2P_2156
Hud.SwitchWidescreen(True)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @PEDS_2P_2195
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:PEDS_2P_2195
return 

:PEDS_2P_2197
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @PEDS_2P_2238
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:PEDS_2P_2238
Camera.RestoreJumpcut
return 

:PEDS_2P_2242
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:PEDS_2P_2257
if 
  Camera.GetFadingStatus
goto_if_false @PEDS_2P_2281
wait 0
goto @PEDS_2P_2257

:PEDS_2P_2281
return 

:PEDS_2P_2283
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:PEDS_2P_2298
if 
  Camera.GetFadingStatus
goto_if_false @PEDS_2P_2322
wait 0
goto @PEDS_2P_2298

:PEDS_2P_2322
return 

:PEDS_2P_2324
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @PEDS_2P_2339

:PEDS_2P_2339
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @PEDS_2P_2354

:PEDS_2P_2354
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @PEDS_2P_2376
goto @PEDS_2P_1914

:PEDS_2P_2376
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @PEDS_2P_2412
if 
  not Char.IsDead($p2)
goto_if_false @PEDS_2P_2412
Task.Die($p2)

:PEDS_2P_2412
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @PEDS_2P_2427

:PEDS_2P_2427
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @PEDS_2P_2463
if 
  not Char.IsDead($scplayer)
goto_if_false @PEDS_2P_2463
Task.Die($scplayer)

:PEDS_2P_2463
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @PEDS_2P_2508
if 
  not Char.IsDead($scplayer)
goto_if_false @PEDS_2P_2508
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:PEDS_2P_2508
return 

//-------------Mission 140---------------
// Originally: Run-around LS

:RUN_LS
script_name 'RUN_LS'
gosub @RUN_LS_47
if 
  has_deatharrest_been_executed 
goto_if_false @RUN_LS_38
gosub @RUN_LS_963

:RUN_LS_38
gosub @RUN_LS_1089
terminate_this_script 

:RUN_LS_47
Game.HideAllFrontendBlips(True)
Camera.SetFadingColor(0, 0, 0)
$onmission = 1
$flag_car_normal_carmod = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('RUN_2P')
gosub @RUN_LS_1243
wait 0
Streaming.RequestModel(63)
Streaming.RequestAnimation("KISSING")

:RUN_LS_112
if or
  not Streaming.HasModelLoaded(63)
  not Streaming.HasAnimationLoaded("KISSING")
goto_if_false @RUN_LS_149
wait 0
goto @RUN_LS_112

:RUN_LS_149
TIMERA = 0
World.ClearArea(2069.907, -1556.378, 12.4198, 10.0, True)
if 
  not Char.IsDead($scplayer)
goto_if_false @RUN_LS_351
Char.SetCoordinates($scplayer, 2070.337, -1557.624, 12.4203)
Char.SetHeading($scplayer, 269.0526)
World.ClearArea(2491.895, -1669.122, 12.3594, 10.0, True)
$player2 = Player.Create(1, 2069.74, -1555.628, 12.4214)
Game.DoWeaponStuffAtStartOf2PGame
$p2 = Player.GetChar($player2)
Player.SetModel($player2, 63)
Char.SetHeading($p2, 269.0526)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Game.LimitTwoPlayerDistance(20.0)
Char.DisableSpeech($p2, True)

:RUN_LS_351
gosub @RUN_LS_1157
Camera.SetFixedPosition(2078.45, -1556.668, 13.6446, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2077.451, -1556.651, 13.6027, SwitchType.JumpCut)
gosub @RUN_LS_1284
Text.PrintNow('RUN_02', 5000, 1)
wait 5000
Text.ClearPrints
Hud.SwitchWidescreen(False)
Text.PrintHelpForever('RUN_XX')

:RUN_LS_454
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LS_820
wait 0
if 
  TIMERB > 250
goto_if_false @RUN_LS_780
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad2)
if and
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftStickX)
  $LStickX > 100
goto_if_false @RUN_LS_584
50@ += 1
if 
  50@ > 5
goto_if_false @RUN_LS_570
50@ = 0

:RUN_LS_570
gosub @RUN_LS_1325
TIMERB = 0

:RUN_LS_584
if and
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftStickX)
  -100 > $LStickX
goto_if_false @RUN_LS_654
50@ -= 1
if 
  0 > 50@
goto_if_false @RUN_LS_640
50@ = 5

:RUN_LS_640
gosub @RUN_LS_1325
TIMERB = 0

:RUN_LS_654
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.DpadRight)
goto_if_false @RUN_LS_717
50@ += 1
if 
  50@ > 5
goto_if_false @RUN_LS_703
50@ = 0

:RUN_LS_703
gosub @RUN_LS_1325
TIMERB = 0

:RUN_LS_717
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.DpadLeft)
goto_if_false @RUN_LS_780
50@ -= 1
if 
  0 > 50@
goto_if_false @RUN_LS_766
50@ = 5

:RUN_LS_766
gosub @RUN_LS_1325
TIMERB = 0

:RUN_LS_780
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.Cross)
goto_if_false @RUN_LS_813
gosub @RUN_LS_1198
Text.ClearHelp
goto @RUN_LS_820

:RUN_LS_813
goto @RUN_LS_454

:RUN_LS_820
Text.PrintHelp('RUN_06')

:RUN_LS_831
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LS_956
wait 0
gosub @RUN_LS_1657
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LS_949
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @RUN_LS_949
if and
  not Char.HasBeenDamagedByWeapon($scplayer, WeaponType.SprayCan)
  not Char.HasBeenDamagedByWeapon($p2, WeaponType.SprayCan)
goto_if_false @RUN_LS_939
gosub @RUN_LS_1836
goto @RUN_LS_949

:RUN_LS_939
Char.ClearLastWeaponDamage($scplayer)
Char.ClearLastWeaponDamage($p2)

:RUN_LS_949
goto @RUN_LS_831

:RUN_LS_956
goto @RUN_LS_963

:RUN_LS_963
if 
  Char.IsDead($scplayer)
goto_if_false @RUN_LS_995
Text.PrintNow('RUN_03', 4000, 1)

:RUN_LS_995
if 
  Char.IsDead($p2)
goto_if_false @RUN_LS_1027
Text.PrintNow('RUN_04', 4000, 1)

:RUN_LS_1027
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @RUN_LS_1064
Text.PrintNow('RUN_05', 4000, 1)

:RUN_LS_1064
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 
Player.ClearWantedLevel($player1)
return 

:RUN_LS_1089
$flag_car_normal_carmod = 0
Game.HideAllFrontendBlips(False)
Streaming.MarkModelAsNoLongerNeeded(63)
Streaming.MarkModelAsNoLongerNeeded(106)
Streaming.MarkModelAsNoLongerNeeded(0)
Streaming.MarkModelAsNoLongerNeeded(167)
Streaming.MarkModelAsNoLongerNeeded(280)
Streaming.MarkModelAsNoLongerNeeded(285)
Streaming.MarkModelAsNoLongerNeeded(139)
Streaming.RemoveAnimation("KISSING")
$onmission = 0
Player.ClearWantedLevel($player1)
Mission.Finish
return 

:RUN_LS_1157
Hud.SwitchWidescreen(True)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @RUN_LS_1196
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:RUN_LS_1196
return 

:RUN_LS_1198
Camera.SetInFrontOfPlayer
Hud.SwitchWidescreen(False)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @RUN_LS_1239
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:RUN_LS_1239
Camera.RestoreJumpcut
return 

:RUN_LS_1243
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:RUN_LS_1258
if 
  Camera.GetFadingStatus
goto_if_false @RUN_LS_1282
wait 0
goto @RUN_LS_1258

:RUN_LS_1282
return 

:RUN_LS_1284
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:RUN_LS_1299
if 
  Camera.GetFadingStatus
goto_if_false @RUN_LS_1323
wait 0
goto @RUN_LS_1299

:RUN_LS_1323
return 

:RUN_LS_1325
switch_start 50@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RUN_LS_1655 {caseNum1} 0 {caseLabel1} @RUN_LS_1388 {caseNum2} 1 {caseLabel2} @RUN_LS_1432 {caseNum3} 2 {caseLabel3} @RUN_LS_1476 {caseNum4} 3 {caseLabel4} @RUN_LS_1520 {caseNum5} 4 {caseLabel5} @RUN_LS_1564 {caseNum6} 5 {caseLabel6} @RUN_LS_1611 {caseNum7} -1 {caseLabel7} @RUN_LS_1655

:RUN_LS_1388
Streaming.RequestModel(63)

:RUN_LS_1392
if 
  not Streaming.HasModelLoaded(63)
goto_if_false @RUN_LS_1418
wait 0
goto @RUN_LS_1392

:RUN_LS_1418
Player.SetModel($player2, 63)
goto @RUN_LS_1655

:RUN_LS_1432
Streaming.RequestModel(106)

:RUN_LS_1436
if 
  not Streaming.HasModelLoaded(106)
goto_if_false @RUN_LS_1462
wait 0
goto @RUN_LS_1436

:RUN_LS_1462
Player.SetModel($player2, 106)
goto @RUN_LS_1655

:RUN_LS_1476
Streaming.RequestModel(0)

:RUN_LS_1480
if 
  not Streaming.HasModelLoaded(0)
goto_if_false @RUN_LS_1506
wait 0
goto @RUN_LS_1480

:RUN_LS_1506
Player.SetModel($player2, 0)
goto @RUN_LS_1655

:RUN_LS_1520
Streaming.RequestModel(139)

:RUN_LS_1524
if 
  not Streaming.HasModelLoaded(139)
goto_if_false @RUN_LS_1550
wait 0
goto @RUN_LS_1524

:RUN_LS_1550
Player.SetModel($player2, 139)
goto @RUN_LS_1655

:RUN_LS_1564
Streaming.RequestModel(280)

:RUN_LS_1569
if 
  not Streaming.HasModelLoaded(280)
goto_if_false @RUN_LS_1596
wait 0
goto @RUN_LS_1569

:RUN_LS_1596
Player.SetModel($player2, 280)
goto @RUN_LS_1655

:RUN_LS_1611
Streaming.RequestModel(285)

:RUN_LS_1615
if 
  not Streaming.HasModelLoaded(285)
goto_if_false @RUN_LS_1641
wait 0
goto @RUN_LS_1615

:RUN_LS_1641
Player.SetModel($player2, 285)
goto @RUN_LS_1655

:RUN_LS_1655
return 

:RUN_LS_1657
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @RUN_LS_1672

:RUN_LS_1672
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @RUN_LS_1687

:RUN_LS_1687
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @RUN_LS_1702

:RUN_LS_1702
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @RUN_LS_1738
if 
  not Char.IsDead($p2)
goto_if_false @RUN_LS_1738
Task.Die($p2)

:RUN_LS_1738
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RUN_LS_1753

:RUN_LS_1753
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @RUN_LS_1789
if 
  not Char.IsDead($scplayer)
goto_if_false @RUN_LS_1789
Task.Die($scplayer)

:RUN_LS_1789
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @RUN_LS_1834
if 
  not Char.IsDead($scplayer)
goto_if_false @RUN_LS_1834
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:RUN_LS_1834
return 

:RUN_LS_1836
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LS_2195
if 
  48@ == 0
goto_if_false @RUN_LS_2188
if and
  not Char.IsInAnyCar($scplayer)
  not Char.IsInAnyCar($p2)
goto_if_false @RUN_LS_2181
if 
  Char.IsStopped($p2)
goto_if_false @RUN_LS_2181
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($p2, 0.0, 0.5, 0.0)
if 
  Char.LocateStoppedOnFoot3D($scplayer, 34@, 37@, 40@, 1.2, 1.2, 1.0, False)
goto_if_false @RUN_LS_2154
if 
  49@ == 0
goto_if_false @RUN_LS_2019
Text.PrintHelpForever('GF_0021')
49@ = 1

:RUN_LS_2019
34@, 37@, 40@ = Char.GetCoordinates($scplayer)
35@, 38@, 41@ = Char.GetCoordinates($p2)
set_lvar_float_to_lvar_float 43@ = 41@
43@ -= 0.02
set_lvar_float_to_lvar_float 44@ = 41@
44@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 40@ > 43@
  is_float_lvar_greater_than_float_lvar 44@ > 40@
goto_if_false @RUN_LS_2147
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftShoulder1)
goto_if_false @RUN_LS_2147
48@ = 1
gosub @RUN_LS_2197

:RUN_LS_2147
goto @RUN_LS_2181

:RUN_LS_2154
if 
  49@ == 1
goto_if_false @RUN_LS_2181
Text.ClearHelp
49@ = 0

:RUN_LS_2181
goto @RUN_LS_2195

:RUN_LS_2188
gosub @RUN_LS_2197

:RUN_LS_2195
return 

:RUN_LS_2197
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RUN_LS_3608 {caseNum1} 1 {caseLabel1} @RUN_LS_2260 {caseNum2} 2 {caseLabel2} @RUN_LS_2457 {caseNum3} 3 {caseLabel3} @RUN_LS_2971 {caseNum4} 4 {caseLabel4} @RUN_LS_3109 {caseNum5} -1 {caseLabel5} @RUN_LS_3608 {caseNum6} -1 {caseLabel6} @RUN_LS_3608 {caseNum7} -1 {caseLabel7} @RUN_LS_3608

:RUN_LS_2260
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LS_2450
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($p2)
Text.ClearHelp
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene($p2, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 2.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsOff(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsOff(34@, 37@, 40@, 35@, 38@, 41@)
Task.TurnCharToFaceChar($scplayer, $p2)
Task.TurnCharToFaceChar($p2, $scplayer)
48@ += 1

:RUN_LS_2450
goto @RUN_LS_3608

:RUN_LS_2457
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LS_2964
46@ = Char.GetScriptTaskStatus($scplayer, 1593)
47@ = Char.GetScriptTaskStatus($p2, 1593)
if and
  is_int_lvar_equal_to_constant 46@ == 7
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @RUN_LS_2816
Char.SetCollision($scplayer, False)
Char.SetCollision($p2, False)
43@ = Char.GetHeading($scplayer)
43@ += 180.0
Char.SetHeading($p2, 43@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, 0.0)
41@ = World.GetGroundZFor3DCoord(35@, 38@, 41@)
36@, 39@, 42@ = Char.GetCoordinates($p2)
42@ = World.GetGroundZFor3DCoord(36@, 39@, 42@)
Char.SetCoordinates($p2, 35@, 38@, 41@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 1.2, -1.0, 0.5)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.7, 0.5)
if 
  World.IsLineOfSightClear(34@, 37@, 40@, 35@, 38@, 41@, True, True, False, True, False)
goto_if_false @RUN_LS_2788
Camera.SetFixedPosition(34@, 37@, 40@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(35@, 38@, 41@, SwitchType.JumpCut)

:RUN_LS_2788
Task.StandStill($scplayer, -1)
Task.StandStill($p2, -1)
48@ += 1
goto @RUN_LS_2964

:RUN_LS_2816
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @RUN_LS_2877
46@ = Char.GetScriptTaskStatus($scplayer, 1466)
if and
  not is_int_lvar_equal_to_constant 46@ == 1
  not is_int_lvar_equal_to_constant 46@ == 0
goto_if_false @RUN_LS_2877
Task.StandStill($scplayer, -1)

:RUN_LS_2877
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @RUN_LS_2964
47@ = Char.GetScriptTaskStatus($p2, 1466)
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @RUN_LS_2964
Task.StandStill($p2, -1)
43@ = Char.GetHeading($scplayer)
43@ += 180.0
Char.SetHeading($p2, 43@)

:RUN_LS_2964
goto @RUN_LS_3608

:RUN_LS_2971
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LS_3102
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Task.PlayAnim($scplayer, "PLAYA_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
Task.PlayAnim($p2, "GRLFRD_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
48@ += 1
Char.AddArmor($scplayer, 150)
Char.AddArmor($p2, 100)
Char.SetHealth($scplayer, 200)
Char.SetHealth($p2, 200)
:RUN_LS_3102
goto @RUN_LS_3608

:RUN_LS_3109
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LS_3601
43@ = -1.0
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_02")
goto_if_false @RUN_LS_3194
43@ = Char.GetAnimCurrentTime($scplayer, "PLAYA_KISS_02")

:RUN_LS_3194
if 
  43@ > -1.0
goto_if_false @RUN_LS_3416
if 
  43@ == 1.0
goto_if_false @RUN_LS_3409
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 36@, 39@, 42@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
48@ = 0

:RUN_LS_3409
goto @RUN_LS_3601

:RUN_LS_3416
Char.ClearTasks($scplayer)
Task.Pause($p2, 0)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 36@, 39@, 42@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
48@ = 0

:RUN_LS_3601
goto @RUN_LS_3608

:RUN_LS_3608
return 

//-------------Mission 141---------------
// Originally: Run-around LV

:RUN_LV
script_name 'RUN_LV'
gosub @RUN_LV_47
if 
  has_deatharrest_been_executed 
goto_if_false @RUN_LV_38
gosub @RUN_LV_942

:RUN_LV_38
gosub @RUN_LV_1095
terminate_this_script 

:RUN_LV_47
Game.HideAllFrontendBlips(True)
$flag_car_normal_carmod = 1
Camera.SetFadingColor(0, 0, 0)
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('RUN_2P')
gosub @RUN_LV_1247
wait 0
Streaming.RequestModel(178)
Streaming.RequestAnimation("KISSING")

:RUN_LV_113
if or
  not Streaming.HasModelLoaded(178)
  not Streaming.HasAnimationLoaded("KISSING")
goto_if_false @RUN_LV_151
wait 0
goto @RUN_LV_113

:RUN_LV_151
TIMERA = 0
if 
  not Char.IsDead($scplayer)
goto_if_false @RUN_LV_330
World.ClearArea(2234.893, 1451.413, 10.0546, 10.0, True)
Char.SetCoordinates($scplayer, 2234.893, 1451.413, 10.0546)
Char.SetHeading($scplayer, 238.7284)
$player2 = Player.Create(1, 2234.371, 1454.523, 10.0546)
Game.DoWeaponStuffAtStartOf2PGame
$p2 = Player.GetChar($player2)
Player.SetModel($player2, 178)
Char.SetHeading($p2, 251.0562)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Game.LimitTwoPlayerDistance(20.0)
Char.DisableSpeech($p2, True)

:RUN_LV_330
gosub @RUN_LV_1161
Camera.SetFixedPosition(2236.559, 1448.937, 11.6522, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2236.126, 1449.822, 11.4823, SwitchType.JumpCut)
gosub @RUN_LV_1288
Text.PrintNow('RUN_02', 5000, 1)
wait 5000
Text.ClearPrints
Hud.SwitchWidescreen(False)
Text.PrintHelpForever('RUN_XX')

:RUN_LV_433
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LV_799
wait 0
if 
  TIMERB > 250
goto_if_false @RUN_LV_759
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad2)
if and
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftStickX)
  $LStickX > 100
goto_if_false @RUN_LV_563
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_LV_549
34@ = 0

:RUN_LV_549
gosub @RUN_LV_1329
TIMERB = 0

:RUN_LV_563
if and
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftStickX)
  -100 > $LStickX
goto_if_false @RUN_LV_633
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_LV_619
34@ = 5

:RUN_LV_619
gosub @RUN_LV_1329
TIMERB = 0

:RUN_LV_633
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.DpadRight)
goto_if_false @RUN_LV_696
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_LV_682
34@ = 0

:RUN_LV_682
gosub @RUN_LV_1329
TIMERB = 0

:RUN_LV_696
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.DpadLeft)
goto_if_false @RUN_LV_759
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_LV_745
34@ = 5

:RUN_LV_745
gosub @RUN_LV_1329
TIMERB = 0

:RUN_LV_759
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.Cross)
goto_if_false @RUN_LV_792
gosub @RUN_LV_1202
Text.ClearHelp
goto @RUN_LV_799

:RUN_LV_792
goto @RUN_LV_433

:RUN_LV_799
Text.PrintHelp('RUN_06')

:RUN_LV_810
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LV_935
wait 0
gosub @RUN_LV_1670
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LV_928
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @RUN_LV_928
if and
  not Char.HasBeenDamagedByWeapon($scplayer, WeaponType.SprayCan)
  not Char.HasBeenDamagedByWeapon($p2, WeaponType.SprayCan)
goto_if_false @RUN_LV_918
gosub @RUN_LV_1849
goto @RUN_LV_928

:RUN_LV_918
Char.ClearLastWeaponDamage($scplayer)
Char.ClearLastWeaponDamage($p2)

:RUN_LV_928
goto @RUN_LV_810

:RUN_LV_935
goto @RUN_LV_942

:RUN_LV_942
if 
  Char.IsDead($scplayer)
goto_if_false @RUN_LV_974
Text.PrintNow('RUN_03', 4000, 1)

:RUN_LV_974
if 
  Char.IsDead($p2)
goto_if_false @RUN_LV_1006
Text.PrintNow('RUN_04', 4000, 1)

:RUN_LV_1006
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @RUN_LV_1043
Text.PrintNow('RUN_05', 4000, 1)

:RUN_LV_1043
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 
Text.PrintWithNumberBig('M_PASS', 10000, 5000, TextStyle.Middle)
Player.AddScore($player1, 10000)
Player.ClearWantedLevel($player1)
return 

:RUN_LV_1095
$flag_car_normal_carmod = 0
Game.HideAllFrontendBlips(False)
Streaming.MarkModelAsNoLongerNeeded(178)
Streaming.MarkModelAsNoLongerNeeded(66)
Streaming.MarkModelAsNoLongerNeeded(181)
Streaming.MarkModelAsNoLongerNeeded(140)
Streaming.MarkModelAsNoLongerNeeded(183)
Streaming.MarkModelAsNoLongerNeeded(282)
Streaming.RemoveAnimation("KISSING")
$onmission = 0
Player.ClearWantedLevel($player1)
Mission.Finish
return 

:RUN_LV_1161
Hud.SwitchWidescreen(True)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @RUN_LV_1200
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:RUN_LV_1200
return 

:RUN_LV_1202
Camera.SetInFrontOfPlayer
Hud.SwitchWidescreen(False)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @RUN_LV_1243
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:RUN_LV_1243
Camera.RestoreJumpcut
return 

:RUN_LV_1247
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:RUN_LV_1262
if 
  Camera.GetFadingStatus
goto_if_false @RUN_LV_1286
wait 0
goto @RUN_LV_1262

:RUN_LV_1286
return 

:RUN_LV_1288
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:RUN_LV_1303
if 
  Camera.GetFadingStatus
goto_if_false @RUN_LV_1327
wait 0
goto @RUN_LV_1303

:RUN_LV_1327
return 

:RUN_LV_1329
switch_start 34@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RUN_LV_1668 {caseNum1} 0 {caseLabel1} @RUN_LV_1392 {caseNum2} 1 {caseLabel2} @RUN_LV_1439 {caseNum3} 2 {caseLabel3} @RUN_LV_1483 {caseNum4} 3 {caseLabel4} @RUN_LV_1530 {caseNum5} 4 {caseLabel5} @RUN_LV_1574 {caseNum6} 5 {caseLabel6} @RUN_LV_1621 {caseNum7} -1 {caseLabel7} @RUN_LV_1668

:RUN_LV_1392
Streaming.RequestModel(178)

:RUN_LV_1397
if 
  not Streaming.HasModelLoaded(178)
goto_if_false @RUN_LV_1424
wait 0
goto @RUN_LV_1397

:RUN_LV_1424
Player.SetModel($player2, 178)
goto @RUN_LV_1668

:RUN_LV_1439
Streaming.RequestModel(66)

:RUN_LV_1443
if 
  not Streaming.HasModelLoaded(66)
goto_if_false @RUN_LV_1469
wait 0
goto @RUN_LV_1443

:RUN_LV_1469
Player.SetModel($player2, 66)
goto @RUN_LV_1668

:RUN_LV_1483
Streaming.RequestModel(275)

:RUN_LV_1488
if 
  not Streaming.HasModelLoaded(275)
goto_if_false @RUN_LV_1515
wait 0
goto @RUN_LV_1488

:RUN_LV_1515
Player.SetModel($player2, 275)
goto @RUN_LV_1668

:RUN_LV_1530
Streaming.RequestModel(87)

:RUN_LV_1534
if 
  not Streaming.HasModelLoaded(87)
goto_if_false @RUN_LV_1560
wait 0
goto @RUN_LV_1534

:RUN_LV_1560
Player.SetModel($player2, 87)
goto @RUN_LV_1668

:RUN_LV_1574
Streaming.RequestModel(212)

:RUN_LV_1579
if 
  not Streaming.HasModelLoaded(212)
goto_if_false @RUN_LV_1606
wait 0
goto @RUN_LV_1579

:RUN_LV_1606
Player.SetModel($player2, 212)
goto @RUN_LV_1668

:RUN_LV_1621
Streaming.RequestModel(278)

:RUN_LV_1626
if 
  not Streaming.HasModelLoaded(278)
goto_if_false @RUN_LV_1653
wait 0
goto @RUN_LV_1626

:RUN_LV_1653
Player.SetModel($player2, 278)
goto @RUN_LV_1668

:RUN_LV_1668
return 

:RUN_LV_1670
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @RUN_LV_1685

:RUN_LV_1685
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @RUN_LV_1700

:RUN_LV_1700
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @RUN_LV_1715

:RUN_LV_1715
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @RUN_LV_1751
if 
  not Char.IsDead($p2)
goto_if_false @RUN_LV_1751
Task.Die($p2)

:RUN_LV_1751
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RUN_LV_1766

:RUN_LV_1766
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @RUN_LV_1802
if 
  not Char.IsDead($scplayer)
goto_if_false @RUN_LV_1802
Task.Die($scplayer)

:RUN_LV_1802
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @RUN_LV_1847
if 
  not Char.IsDead($scplayer)
goto_if_false @RUN_LV_1847
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:RUN_LV_1847
return 

:RUN_LV_1849
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LV_2208
if 
  49@ == 0
goto_if_false @RUN_LV_2201
if and
  not Char.IsInAnyCar($scplayer)
  not Char.IsInAnyCar($p2)
goto_if_false @RUN_LV_2194
if 
  Char.IsStopped($p2)
goto_if_false @RUN_LV_2194
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($p2, 0.0, 0.5, 0.0)
if 
  Char.LocateStoppedOnFoot3D($scplayer, 35@, 38@, 41@, 1.2, 1.2, 1.0, False)
goto_if_false @RUN_LV_2167
if 
  50@ == 0
goto_if_false @RUN_LV_2032
Text.PrintHelpForever('GF_0021')
50@ = 1

:RUN_LV_2032
35@, 38@, 41@ = Char.GetCoordinates($scplayer)
36@, 39@, 42@ = Char.GetCoordinates($p2)
set_lvar_float_to_lvar_float 44@ = 42@
44@ -= 0.02
set_lvar_float_to_lvar_float 45@ = 42@
45@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 41@ > 44@
  is_float_lvar_greater_than_float_lvar 45@ > 41@
goto_if_false @RUN_LV_2160
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftShoulder1)
goto_if_false @RUN_LV_2160
49@ = 1
gosub @RUN_LV_2210

:RUN_LV_2160
goto @RUN_LV_2194

:RUN_LV_2167
if 
  50@ == 1
goto_if_false @RUN_LV_2194
Text.ClearHelp
50@ = 0

:RUN_LV_2194
goto @RUN_LV_2208

:RUN_LV_2201
gosub @RUN_LV_2210

:RUN_LV_2208
return 

:RUN_LV_2210
switch_start 49@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RUN_LV_3621 {caseNum1} 1 {caseLabel1} @RUN_LV_2273 {caseNum2} 2 {caseLabel2} @RUN_LV_2470 {caseNum3} 3 {caseLabel3} @RUN_LV_2984 {caseNum4} 4 {caseLabel4} @RUN_LV_3122 {caseNum5} -1 {caseLabel5} @RUN_LV_3621 {caseNum6} -1 {caseLabel6} @RUN_LV_3621 {caseNum7} -1 {caseLabel7} @RUN_LV_3621

:RUN_LV_2273
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LV_2463
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($p2)
Text.ClearHelp
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene($p2, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 2.0)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsOff(35@, 38@, 41@, 36@, 39@, 42@)
Path.SwitchPedRoadsOff(35@, 38@, 41@, 36@, 39@, 42@)
Task.TurnCharToFaceChar($scplayer, $p2)
Task.TurnCharToFaceChar($p2, $scplayer)
49@ += 1

:RUN_LV_2463
goto @RUN_LV_3621

:RUN_LV_2470
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LV_2977
47@ = Char.GetScriptTaskStatus($scplayer, 1593)
48@ = Char.GetScriptTaskStatus($p2, 1593)
if and
  is_int_lvar_equal_to_constant 47@ == 7
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_LV_2829
Char.SetCollision($scplayer, False)
Char.SetCollision($p2, False)
44@ = Char.GetHeading($scplayer)
44@ += 180.0
Char.SetHeading($p2, 44@)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, 0.0)
42@ = World.GetGroundZFor3DCoord(36@, 39@, 42@)
37@, 40@, 43@ = Char.GetCoordinates($p2)
43@ = World.GetGroundZFor3DCoord(37@, 40@, 43@)
Char.SetCoordinates($p2, 36@, 39@, 42@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 1.2, -1.0, 0.5)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.7, 0.5)
if 
  World.IsLineOfSightClear(35@, 38@, 41@, 36@, 39@, 42@, True, True, False, True, False)
goto_if_false @RUN_LV_2801
Camera.SetFixedPosition(35@, 38@, 41@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(36@, 39@, 42@, SwitchType.JumpCut)

:RUN_LV_2801
Task.StandStill($scplayer, -1)
Task.StandStill($p2, -1)
49@ += 1
goto @RUN_LV_2977

:RUN_LV_2829
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @RUN_LV_2890
47@ = Char.GetScriptTaskStatus($scplayer, 1466)
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @RUN_LV_2890
Task.StandStill($scplayer, -1)

:RUN_LV_2890
if 
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_LV_2977
48@ = Char.GetScriptTaskStatus($p2, 1466)
if and
  not is_int_lvar_equal_to_constant 48@ == 1
  not is_int_lvar_equal_to_constant 48@ == 0
goto_if_false @RUN_LV_2977
Task.StandStill($p2, -1)
44@ = Char.GetHeading($scplayer)
44@ += 180.0
Char.SetHeading($p2, 44@)

:RUN_LV_2977
goto @RUN_LV_3621

:RUN_LV_2984
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LV_3115
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Task.PlayAnim($scplayer, "PLAYA_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
Task.PlayAnim($p2, "GRLFRD_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
49@ += 1
Char.AddArmor($scplayer, 150)
Char.AddArmor($p2, 100)
Char.SetHealth($scplayer, 200)
Char.SetHealth($p2, 200)
:RUN_LV_3115
goto @RUN_LV_3621

:RUN_LV_3122
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_LV_3614
44@ = -1.0
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_02")
goto_if_false @RUN_LV_3207
44@ = Char.GetAnimCurrentTime($scplayer, "PLAYA_KISS_02")

:RUN_LV_3207
if 
  44@ > -1.0
goto_if_false @RUN_LV_3429
if 
  44@ == 1.0
goto_if_false @RUN_LV_3422
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 37@, 40@, 43@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Path.SwitchPedRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
49@ = 0

:RUN_LV_3422
goto @RUN_LV_3614

:RUN_LV_3429
Char.ClearTasks($scplayer)
Task.Pause($p2, 0)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 37@, 40@, 43@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Path.SwitchPedRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
49@ = 0

:RUN_LV_3614
goto @RUN_LV_3621

:RUN_LV_3621
return 

//-------------Mission 142---------------
// Originally: Run-around SF

:RUN_SF
script_name 'RUN_SF'
gosub @RUN_SF_47
if 
  has_deatharrest_been_executed 
goto_if_false @RUN_SF_38
gosub @RUN_SF_942

:RUN_SF_38
gosub @RUN_SF_1068
terminate_this_script 

:RUN_SF_47
Game.HideAllFrontendBlips(True)
Camera.SetFadingColor(0, 0, 0)
$flag_car_normal_carmod = 1
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('RUN_2P')
gosub @RUN_SF_1222
wait 0
Streaming.RequestModel(173)
Streaming.RequestAnimation("KISSING")

:RUN_SF_113
if or
  not Streaming.HasModelLoaded(173)
  not Streaming.HasAnimationLoaded("KISSING")
goto_if_false @RUN_SF_151
wait 0
goto @RUN_SF_113

:RUN_SF_151
TIMERA = 0
World.ClearArea(-2197.667, 292.0621, 34.123, 10.0, True)
if 
  not Char.IsDead($scplayer)
goto_if_false @RUN_SF_330
Char.SetCoordinates($scplayer, -2196.917, 288.4338, 34.3262)
Char.SetHeading($scplayer, 342.0689)
$player2 = Player.Create(1, -2201.332, 288.7762, 34.3203)
Game.DoWeaponStuffAtStartOf2PGame
$p2 = Player.GetChar($player2)
Char.SetHeading($p2, 342.0689)
Player.SetModel($player2, 173)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Game.LimitTwoPlayerDistance(20.0)
Char.DisableSpeech($p2, True)

:RUN_SF_330
gosub @RUN_SF_1136
Camera.SetFixedPosition(-2194.577, 289.8771, 36.0049, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2195.515, 289.5766, 35.833, SwitchType.JumpCut)
gosub @RUN_SF_1263
Text.PrintNow('RUN_02', 5000, 1)
wait 5000
Text.ClearPrints
Hud.SwitchWidescreen(False)
Text.PrintHelpForever('RUN_XX')

:RUN_SF_433
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_SF_799
wait 0
if 
  TIMERB > 250
goto_if_false @RUN_SF_759
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad2)
if and
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftStickX)
  $LStickX > 100
goto_if_false @RUN_SF_563
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_SF_549
34@ = 0

:RUN_SF_549
gosub @RUN_SF_1304
TIMERB = 0

:RUN_SF_563
if and
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftStickX)
  -100 > $LStickX
goto_if_false @RUN_SF_633
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_SF_619
34@ = 5

:RUN_SF_619
gosub @RUN_SF_1304
TIMERB = 0

:RUN_SF_633
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.DpadRight)
goto_if_false @RUN_SF_696
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_SF_682
34@ = 0

:RUN_SF_682
gosub @RUN_SF_1304
TIMERB = 0

:RUN_SF_696
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.DpadLeft)
goto_if_false @RUN_SF_759
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_SF_745
34@ = 5

:RUN_SF_745
gosub @RUN_SF_1304
TIMERB = 0

:RUN_SF_759
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.Cross)
goto_if_false @RUN_SF_792
gosub @RUN_SF_1177
Text.ClearHelp
goto @RUN_SF_799

:RUN_SF_792
goto @RUN_SF_433

:RUN_SF_799
Text.PrintHelp('RUN_06')

:RUN_SF_810
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_SF_935
wait 0
gosub @RUN_SF_1651
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_SF_928
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @RUN_SF_928
if and
  not Char.HasBeenDamagedByWeapon($scplayer, WeaponType.SprayCan)
  not Char.HasBeenDamagedByWeapon($p2, WeaponType.SprayCan)
goto_if_false @RUN_SF_918
gosub @RUN_SF_1830
goto @RUN_SF_928

:RUN_SF_918
Char.ClearLastWeaponDamage($scplayer)
Char.ClearLastWeaponDamage($p2)

:RUN_SF_928
goto @RUN_SF_810

:RUN_SF_935
goto @RUN_SF_942

:RUN_SF_942
if 
  Char.IsDead($scplayer)
goto_if_false @RUN_SF_974
Text.PrintNow('RUN_03', 4000, 1)

:RUN_SF_974
if 
  Char.IsDead($p2)
goto_if_false @RUN_SF_1006
Text.PrintNow('RUN_04', 4000, 1)

:RUN_SF_1006
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @RUN_SF_1043
Text.PrintNow('RUN_05', 4000, 1)

:RUN_SF_1043
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 
Player.ClearWantedLevel($player1)
return 

:RUN_SF_1068
$flag_car_normal_carmod = 0
Game.HideAllFrontendBlips(False)
Streaming.MarkModelAsNoLongerNeeded(101)
Streaming.MarkModelAsNoLongerNeeded(47)
Streaming.MarkModelAsNoLongerNeeded(22)
Streaming.MarkModelAsNoLongerNeeded(69)
Streaming.MarkModelAsNoLongerNeeded(29)
Streaming.MarkModelAsNoLongerNeeded(281)
Streaming.RemoveAnimation("KISSING")
$onmission = 0
Player.ClearWantedLevel($player1)
Mission.Finish
return 

:RUN_SF_1136
Hud.SwitchWidescreen(True)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @RUN_SF_1175
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:RUN_SF_1175
return 

:RUN_SF_1177
Camera.SetInFrontOfPlayer
Hud.SwitchWidescreen(False)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @RUN_SF_1218
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:RUN_SF_1218
Camera.RestoreJumpcut
return 

:RUN_SF_1222
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:RUN_SF_1237
if 
  Camera.GetFadingStatus
goto_if_false @RUN_SF_1261
wait 0
goto @RUN_SF_1237

:RUN_SF_1261
return 

:RUN_SF_1263
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:RUN_SF_1278
if 
  Camera.GetFadingStatus
goto_if_false @RUN_SF_1302
wait 0
goto @RUN_SF_1278

:RUN_SF_1302
return 

:RUN_SF_1304
switch_start 34@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RUN_SF_1649 {caseNum1} 0 {caseLabel1} @RUN_SF_1367 {caseNum2} 1 {caseLabel2} @RUN_SF_1414 {caseNum3} 2 {caseLabel3} @RUN_SF_1461 {caseNum4} 3 {caseLabel4} @RUN_SF_1508 {caseNum5} 4 {caseLabel5} @RUN_SF_1555 {caseNum6} 5 {caseLabel6} @RUN_SF_1602 {caseNum7} -1 {caseLabel7} @RUN_SF_1649

:RUN_SF_1367
Streaming.RequestModel(101)

:RUN_SF_1372
if 
  not Streaming.HasModelLoaded(101)
goto_if_false @RUN_SF_1399
wait 0
goto @RUN_SF_1372

:RUN_SF_1399
Player.SetModel($player2, 101)
goto @RUN_SF_1649

:RUN_SF_1414
Streaming.RequestModel(47)

:RUN_SF_1419
if 
  not Streaming.HasModelLoaded(47)
goto_if_false @RUN_SF_1446
wait 0
goto @RUN_SF_1419

:RUN_SF_1446
Player.SetModel($player2, 47)
goto @RUN_SF_1649

:RUN_SF_1461
Streaming.RequestModel(22)

:RUN_SF_1466
if 
  not Streaming.HasModelLoaded(22)
goto_if_false @RUN_SF_1493
wait 0
goto @RUN_SF_1466

:RUN_SF_1493
Player.SetModel($player2, 22)
goto @RUN_SF_1649

:RUN_SF_1508
Streaming.RequestModel(69)

:RUN_SF_1513
if 
  not Streaming.HasModelLoaded(69)
goto_if_false @RUN_SF_1540
wait 0
goto @RUN_SF_1513

:RUN_SF_1540
Player.SetModel($player2, 69)
goto @RUN_SF_1649

:RUN_SF_1555
Streaming.RequestModel(29)

:RUN_SF_1560
if 
  not Streaming.HasModelLoaded(29)
goto_if_false @RUN_SF_1587
wait 0
goto @RUN_SF_1560

:RUN_SF_1587
Player.SetModel($player2, 29)
goto @RUN_SF_1649

:RUN_SF_1602
Streaming.RequestModel(281)

:RUN_SF_1607
if 
  not Streaming.HasModelLoaded(281)
goto_if_false @RUN_SF_1634
wait 0
goto @RUN_SF_1607

:RUN_SF_1634
Player.SetModel($player2, 281)
goto @RUN_SF_1649

:RUN_SF_1649
return 

:RUN_SF_1651
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @RUN_SF_1666

:RUN_SF_1666
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @RUN_SF_1681

:RUN_SF_1681
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @RUN_SF_1696

:RUN_SF_1696
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @RUN_SF_1732
if 
  not Char.IsDead($p2)
goto_if_false @RUN_SF_1732
Task.Die($p2)

:RUN_SF_1732
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RUN_SF_1747

:RUN_SF_1747
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @RUN_SF_1783
if 
  not Char.IsDead($scplayer)
goto_if_false @RUN_SF_1783
Task.Die($scplayer)

:RUN_SF_1783
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @RUN_SF_1828
if 
  not Char.IsDead($scplayer)
goto_if_false @RUN_SF_1828
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:RUN_SF_1828
return 

:RUN_SF_1830
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_SF_2189
if 
  49@ == 0
goto_if_false @RUN_SF_2182
if and
  not Char.IsInAnyCar($scplayer)
  not Char.IsInAnyCar($p2)
goto_if_false @RUN_SF_2175
if 
  Char.IsStopped($p2)
goto_if_false @RUN_SF_2175
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($p2, 0.0, 0.5, 0.0)
if 
  Char.LocateStoppedOnFoot3D($scplayer, 35@, 38@, 41@, 1.2, 1.2, 1.0, False)
goto_if_false @RUN_SF_2148
if 
  50@ == 0
goto_if_false @RUN_SF_2013
Text.PrintHelpForever('GF_0021')
50@ = 1

:RUN_SF_2013
35@, 38@, 41@ = Char.GetCoordinates($scplayer)
36@, 39@, 42@ = Char.GetCoordinates($p2)
set_lvar_float_to_lvar_float 44@ = 42@
44@ -= 0.02
set_lvar_float_to_lvar_float 45@ = 42@
45@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 41@ > 44@
  is_float_lvar_greater_than_float_lvar 45@ > 41@
goto_if_false @RUN_SF_2141
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftShoulder1)
goto_if_false @RUN_SF_2141
49@ = 1
gosub @RUN_SF_2191

:RUN_SF_2141
goto @RUN_SF_2175

:RUN_SF_2148
if 
  50@ == 1
goto_if_false @RUN_SF_2175
Text.ClearHelp
50@ = 0

:RUN_SF_2175
goto @RUN_SF_2189

:RUN_SF_2182
gosub @RUN_SF_2191

:RUN_SF_2189
return 

:RUN_SF_2191
switch_start 49@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RUN_SF_3602 {caseNum1} 1 {caseLabel1} @RUN_SF_2254 {caseNum2} 2 {caseLabel2} @RUN_SF_2451 {caseNum3} 3 {caseLabel3} @RUN_SF_2965 {caseNum4} 4 {caseLabel4} @RUN_SF_3103 {caseNum5} -1 {caseLabel5} @RUN_SF_3602 {caseNum6} -1 {caseLabel6} @RUN_SF_3602 {caseNum7} -1 {caseLabel7} @RUN_SF_3602

:RUN_SF_2254
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_SF_2444
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($p2)
Text.ClearHelp
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene($p2, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 2.0)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsOff(35@, 38@, 41@, 36@, 39@, 42@)
Path.SwitchPedRoadsOff(35@, 38@, 41@, 36@, 39@, 42@)
Task.TurnCharToFaceChar($scplayer, $p2)
Task.TurnCharToFaceChar($p2, $scplayer)
49@ += 1

:RUN_SF_2444
goto @RUN_SF_3602

:RUN_SF_2451
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_SF_2958
47@ = Char.GetScriptTaskStatus($scplayer, 1593)
48@ = Char.GetScriptTaskStatus($p2, 1593)
if and
  is_int_lvar_equal_to_constant 47@ == 7
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_SF_2810
Char.SetCollision($scplayer, False)
Char.SetCollision($p2, False)
44@ = Char.GetHeading($scplayer)
44@ += 180.0
Char.SetHeading($p2, 44@)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, 0.0)
42@ = World.GetGroundZFor3DCoord(36@, 39@, 42@)
37@, 40@, 43@ = Char.GetCoordinates($p2)
43@ = World.GetGroundZFor3DCoord(37@, 40@, 43@)
Char.SetCoordinates($p2, 36@, 39@, 42@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 1.2, -1.0, 0.5)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.7, 0.5)
if 
  World.IsLineOfSightClear(35@, 38@, 41@, 36@, 39@, 42@, True, True, False, True, False)
goto_if_false @RUN_SF_2782
Camera.SetFixedPosition(35@, 38@, 41@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(36@, 39@, 42@, SwitchType.JumpCut)

:RUN_SF_2782
Task.StandStill($scplayer, -1)
Task.StandStill($p2, -1)
49@ += 1
goto @RUN_SF_2958

:RUN_SF_2810
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @RUN_SF_2871
47@ = Char.GetScriptTaskStatus($scplayer, 1466)
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @RUN_SF_2871
Task.StandStill($scplayer, -1)

:RUN_SF_2871
if 
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_SF_2958
48@ = Char.GetScriptTaskStatus($p2, 1466)
if and
  not is_int_lvar_equal_to_constant 48@ == 1
  not is_int_lvar_equal_to_constant 48@ == 0
goto_if_false @RUN_SF_2958
Task.StandStill($p2, -1)
44@ = Char.GetHeading($scplayer)
44@ += 180.0
Char.SetHeading($p2, 44@)

:RUN_SF_2958
goto @RUN_SF_3602

:RUN_SF_2965
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_SF_3096
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Task.PlayAnim($scplayer, "PLAYA_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
Task.PlayAnim($p2, "GRLFRD_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
49@ += 1
Char.AddArmor($scplayer, 150)
Char.AddArmor($p2, 100)
Char.SetHealth($scplayer, 200)
Char.SetHealth($p2, 200)
:RUN_SF_3096
goto @RUN_SF_3602

:RUN_SF_3103
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_SF_3595
44@ = -1.0
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_02")
goto_if_false @RUN_SF_3188
44@ = Char.GetAnimCurrentTime($scplayer, "PLAYA_KISS_02")

:RUN_SF_3188
if 
  44@ > -1.0
goto_if_false @RUN_SF_3410
if 
  44@ == 1.0
goto_if_false @RUN_SF_3403
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 37@, 40@, 43@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Path.SwitchPedRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
49@ = 0

:RUN_SF_3403
goto @RUN_SF_3595

:RUN_SF_3410
Char.ClearTasks($scplayer)
Task.Pause($p2, 0)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 37@, 40@, 43@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Path.SwitchPedRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
49@ = 0

:RUN_SF_3595
goto @RUN_SF_3602

:RUN_SF_3602
return 

//-------------Mission 143---------------
// Originally: Run-around DE

:RUN_DE
script_name 'RUN_DE'
gosub @RUN_DE_47
if 
  has_deatharrest_been_executed 
goto_if_false @RUN_DE_38
gosub @RUN_DE_942

:RUN_DE_38
gosub @RUN_DE_1068
terminate_this_script 

:RUN_DE_47
Game.HideAllFrontendBlips(True)
Camera.SetFadingColor(0, 0, 0)
$flag_car_normal_carmod = 1
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('RUN_2P')
gosub @RUN_DE_1222
wait 0
Streaming.RequestModel(157)
Streaming.RequestAnimation("KISSING")

:RUN_DE_113
if or
  not Streaming.HasModelLoaded(157)
  not Streaming.HasAnimationLoaded("KISSING")
goto_if_false @RUN_DE_151
wait 0
goto @RUN_DE_113

:RUN_DE_151
TIMERA = 0
World.ClearArea(-1520.864, 2608.207, 54.8437, 10.0, True)
if 
  not Char.IsDead($scplayer)
goto_if_false @RUN_DE_330
Char.SetCoordinates($scplayer, -1520.864, 2608.207, 54.8437)
Char.SetHeading($scplayer, 160.0054)
$player2 = Player.Create(1, -1518.757, 2608.279, 54.8437)
Game.DoWeaponStuffAtStartOf2PGame
$p2 = Player.GetChar($player2)
Player.SetModel($player2, 157)
Char.SetHeading($p2, 180.1871)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Game.LimitTwoPlayerDistance(20.0)
Char.DisableSpeech($p2, True)

:RUN_DE_330
gosub @RUN_DE_1136
Camera.SetFixedPosition(-1524.699, 2605.78, 57.8026, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1523.898, 2606.243, 57.4224, SwitchType.JumpCut)
gosub @RUN_DE_1263
Text.PrintNow('RUN_02', 5000, 1)
wait 5000
Text.ClearPrints
Hud.SwitchWidescreen(False)
Text.PrintHelpForever('RUN_XX')

:RUN_DE_433
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_DE_799
wait 0
if 
  TIMERB > 250
goto_if_false @RUN_DE_759
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad2)
if and
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftStickX)
  $LStickX > 100
goto_if_false @RUN_DE_563
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_DE_549
34@ = 0

:RUN_DE_549
gosub @RUN_DE_1304
TIMERB = 0

:RUN_DE_563
if and
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftStickX)
  -100 > $LStickX
goto_if_false @RUN_DE_633
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_DE_619
34@ = 5

:RUN_DE_619
gosub @RUN_DE_1304
TIMERB = 0

:RUN_DE_633
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.DpadRight)
goto_if_false @RUN_DE_696
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_DE_682
34@ = 0

:RUN_DE_682
gosub @RUN_DE_1304
TIMERB = 0

:RUN_DE_696
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.DpadLeft)
goto_if_false @RUN_DE_759
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_DE_745
34@ = 5

:RUN_DE_745
gosub @RUN_DE_1304
TIMERB = 0

:RUN_DE_759
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.Cross)
goto_if_false @RUN_DE_792
gosub @RUN_DE_1177
Text.ClearHelp
goto @RUN_DE_799

:RUN_DE_792
goto @RUN_DE_433

:RUN_DE_799
Text.PrintHelp('RUN_06')

:RUN_DE_810
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_DE_935
wait 0
gosub @RUN_DE_1651
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_DE_928
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @RUN_DE_928
if and
  not Char.HasBeenDamagedByWeapon($scplayer, WeaponType.SprayCan)
  not Char.HasBeenDamagedByWeapon($p2, WeaponType.SprayCan)
goto_if_false @RUN_DE_918
gosub @RUN_DE_1830
goto @RUN_DE_928

:RUN_DE_918
Char.ClearLastWeaponDamage($scplayer)
Char.ClearLastWeaponDamage($p2)

:RUN_DE_928
goto @RUN_DE_810

:RUN_DE_935
goto @RUN_DE_942

:RUN_DE_942
if 
  Char.IsDead($scplayer)
goto_if_false @RUN_DE_974
Text.PrintNow('RUN_03', 4000, 1)

:RUN_DE_974
if 
  Char.IsDead($p2)
goto_if_false @RUN_DE_1006
Text.PrintNow('RUN_04', 4000, 1)

:RUN_DE_1006
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @RUN_DE_1043
Text.PrintNow('RUN_05', 4000, 1)

:RUN_DE_1043
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 
Player.ClearWantedLevel($player1)
return 

:RUN_DE_1068
$flag_car_normal_carmod = 0
Game.HideAllFrontendBlips(False)
Streaming.MarkModelAsNoLongerNeeded(254)
Streaming.MarkModelAsNoLongerNeeded(247)
Streaming.MarkModelAsNoLongerNeeded(248)
Streaming.MarkModelAsNoLongerNeeded(161)
Streaming.MarkModelAsNoLongerNeeded(283)
Streaming.MarkModelAsNoLongerNeeded(198)
Streaming.RemoveAnimation("KISSING")
$onmission = 0
Player.ClearWantedLevel($player1)
Mission.Finish
return 

:RUN_DE_1136
Hud.SwitchWidescreen(True)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @RUN_DE_1175
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:RUN_DE_1175
return 

:RUN_DE_1177
Camera.SetInFrontOfPlayer
Hud.SwitchWidescreen(False)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @RUN_DE_1218
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:RUN_DE_1218
Camera.RestoreJumpcut
return 

:RUN_DE_1222
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:RUN_DE_1237
if 
  Camera.GetFadingStatus
goto_if_false @RUN_DE_1261
wait 0
goto @RUN_DE_1237

:RUN_DE_1261
return 

:RUN_DE_1263
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:RUN_DE_1278
if 
  Camera.GetFadingStatus
goto_if_false @RUN_DE_1302
wait 0
goto @RUN_DE_1278

:RUN_DE_1302
return 

:RUN_DE_1304
switch_start 34@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RUN_DE_1649 {caseNum1} 0 {caseLabel1} @RUN_DE_1367 {caseNum2} 1 {caseLabel2} @RUN_DE_1414 {caseNum3} 2 {caseLabel3} @RUN_DE_1461 {caseNum4} 3 {caseLabel4} @RUN_DE_1508 {caseNum5} 4 {caseLabel5} @RUN_DE_1555 {caseNum6} 5 {caseLabel6} @RUN_DE_1602 {caseNum7} -1 {caseLabel7} @RUN_DE_1649

:RUN_DE_1367
Streaming.RequestModel(254)

:RUN_DE_1372
if 
  not Streaming.HasModelLoaded(254)
goto_if_false @RUN_DE_1399
wait 0
goto @RUN_DE_1372

:RUN_DE_1399
Player.SetModel($player2, 254)
goto @RUN_DE_1649

:RUN_DE_1414
Streaming.RequestModel(247)

:RUN_DE_1419
if 
  not Streaming.HasModelLoaded(247)
goto_if_false @RUN_DE_1446
wait 0
goto @RUN_DE_1419

:RUN_DE_1446
Player.SetModel($player2, 247)
goto @RUN_DE_1649

:RUN_DE_1461
Streaming.RequestModel(248)

:RUN_DE_1466
if 
  not Streaming.HasModelLoaded(248)
goto_if_false @RUN_DE_1493
wait 0
goto @RUN_DE_1466

:RUN_DE_1493
Player.SetModel($player2, 248)
goto @RUN_DE_1649

:RUN_DE_1508
Streaming.RequestModel(161)

:RUN_DE_1513
if 
  not Streaming.HasModelLoaded(161)
goto_if_false @RUN_DE_1540
wait 0
goto @RUN_DE_1513

:RUN_DE_1540
Player.SetModel($player2, 161)
goto @RUN_DE_1649

:RUN_DE_1555
Streaming.RequestModel(283)

:RUN_DE_1560
if 
  not Streaming.HasModelLoaded(283)
goto_if_false @RUN_DE_1587
wait 0
goto @RUN_DE_1560

:RUN_DE_1587
Player.SetModel($player2, 283)
goto @RUN_DE_1649

:RUN_DE_1602
Streaming.RequestModel(198)

:RUN_DE_1607
if 
  not Streaming.HasModelLoaded(198)
goto_if_false @RUN_DE_1634
wait 0
goto @RUN_DE_1607

:RUN_DE_1634
Player.SetModel($player2, 198)
goto @RUN_DE_1649

:RUN_DE_1649
return 

:RUN_DE_1651
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @RUN_DE_1666

:RUN_DE_1666
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @RUN_DE_1681

:RUN_DE_1681
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @RUN_DE_1696

:RUN_DE_1696
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @RUN_DE_1732
if 
  not Char.IsDead($p2)
goto_if_false @RUN_DE_1732
Task.Die($p2)

:RUN_DE_1732
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RUN_DE_1747

:RUN_DE_1747
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @RUN_DE_1783
if 
  not Char.IsDead($scplayer)
goto_if_false @RUN_DE_1783
Task.Die($scplayer)

:RUN_DE_1783
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @RUN_DE_1828
if 
  not Char.IsDead($scplayer)
goto_if_false @RUN_DE_1828
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:RUN_DE_1828
return 

:RUN_DE_1830
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_DE_2189
if 
  49@ == 0
goto_if_false @RUN_DE_2182
if and
  not Char.IsInAnyCar($scplayer)
  not Char.IsInAnyCar($p2)
goto_if_false @RUN_DE_2175
if 
  Char.IsStopped($p2)
goto_if_false @RUN_DE_2175
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($p2, 0.0, 0.5, 0.0)
if 
  Char.LocateStoppedOnFoot3D($scplayer, 35@, 38@, 41@, 1.2, 1.2, 1.0, False)
goto_if_false @RUN_DE_2148
if 
  50@ == 0
goto_if_false @RUN_DE_2013
Text.PrintHelpForever('GF_0021')
50@ = 1

:RUN_DE_2013
35@, 38@, 41@ = Char.GetCoordinates($scplayer)
36@, 39@, 42@ = Char.GetCoordinates($p2)
set_lvar_float_to_lvar_float 44@ = 42@
44@ -= 0.02
set_lvar_float_to_lvar_float 45@ = 42@
45@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 41@ > 44@
  is_float_lvar_greater_than_float_lvar 45@ > 41@
goto_if_false @RUN_DE_2141
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftShoulder1)
goto_if_false @RUN_DE_2141
49@ = 1
gosub @RUN_DE_2191

:RUN_DE_2141
goto @RUN_DE_2175

:RUN_DE_2148
if 
  50@ == 1
goto_if_false @RUN_DE_2175
Text.ClearHelp
50@ = 0

:RUN_DE_2175
goto @RUN_DE_2189

:RUN_DE_2182
gosub @RUN_DE_2191

:RUN_DE_2189
return 

:RUN_DE_2191
switch_start 49@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RUN_DE_3602 {caseNum1} 1 {caseLabel1} @RUN_DE_2254 {caseNum2} 2 {caseLabel2} @RUN_DE_2451 {caseNum3} 3 {caseLabel3} @RUN_DE_2965 {caseNum4} 4 {caseLabel4} @RUN_DE_3103 {caseNum5} -1 {caseLabel5} @RUN_DE_3602 {caseNum6} -1 {caseLabel6} @RUN_DE_3602 {caseNum7} -1 {caseLabel7} @RUN_DE_3602

:RUN_DE_2254
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_DE_2444
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($p2)
Text.ClearHelp
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene($p2, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 2.0)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsOff(35@, 38@, 41@, 36@, 39@, 42@)
Path.SwitchPedRoadsOff(35@, 38@, 41@, 36@, 39@, 42@)
Task.TurnCharToFaceChar($scplayer, $p2)
Task.TurnCharToFaceChar($p2, $scplayer)
49@ += 1

:RUN_DE_2444
goto @RUN_DE_3602

:RUN_DE_2451
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_DE_2958
47@ = Char.GetScriptTaskStatus($scplayer, 1593)
48@ = Char.GetScriptTaskStatus($p2, 1593)
if and
  is_int_lvar_equal_to_constant 47@ == 7
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_DE_2810
Char.SetCollision($scplayer, False)
Char.SetCollision($p2, False)
44@ = Char.GetHeading($scplayer)
44@ += 180.0
Char.SetHeading($p2, 44@)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, 0.0)
42@ = World.GetGroundZFor3DCoord(36@, 39@, 42@)
37@, 40@, 43@ = Char.GetCoordinates($p2)
43@ = World.GetGroundZFor3DCoord(37@, 40@, 43@)
Char.SetCoordinates($p2, 36@, 39@, 42@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 1.2, -1.0, 0.5)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.7, 0.5)
if 
  World.IsLineOfSightClear(35@, 38@, 41@, 36@, 39@, 42@, True, True, False, True, False)
goto_if_false @RUN_DE_2782
Camera.SetFixedPosition(35@, 38@, 41@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(36@, 39@, 42@, SwitchType.JumpCut)

:RUN_DE_2782
Task.StandStill($scplayer, -1)
Task.StandStill($p2, -1)
49@ += 1
goto @RUN_DE_2958

:RUN_DE_2810
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @RUN_DE_2871
47@ = Char.GetScriptTaskStatus($scplayer, 1466)
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @RUN_DE_2871
Task.StandStill($scplayer, -1)

:RUN_DE_2871
if 
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_DE_2958
48@ = Char.GetScriptTaskStatus($p2, 1466)
if and
  not is_int_lvar_equal_to_constant 48@ == 1
  not is_int_lvar_equal_to_constant 48@ == 0
goto_if_false @RUN_DE_2958
Task.StandStill($p2, -1)
44@ = Char.GetHeading($scplayer)
44@ += 180.0
Char.SetHeading($p2, 44@)

:RUN_DE_2958
goto @RUN_DE_3602

:RUN_DE_2965
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_DE_3096
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Task.PlayAnim($scplayer, "PLAYA_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
Task.PlayAnim($p2, "GRLFRD_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
49@ += 1
Char.AddArmor($scplayer, 150)
Char.AddArmor($p2, 100)
Char.SetHealth($scplayer, 200)
Char.SetHealth($p2, 200)
:RUN_DE_3096
goto @RUN_DE_3602

:RUN_DE_3103
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_DE_3595
44@ = -1.0
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_02")
goto_if_false @RUN_DE_3188
44@ = Char.GetAnimCurrentTime($scplayer, "PLAYA_KISS_02")

:RUN_DE_3188
if 
  44@ > -1.0
goto_if_false @RUN_DE_3410
if 
  44@ == 1.0
goto_if_false @RUN_DE_3403
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 37@, 40@, 43@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Path.SwitchPedRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
49@ = 0

:RUN_DE_3403
goto @RUN_DE_3595

:RUN_DE_3410
Char.ClearTasks($scplayer)
Task.Pause($p2, 0)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 37@, 40@, 43@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Path.SwitchPedRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
49@ = 0

:RUN_DE_3595
goto @RUN_DE_3602

:RUN_DE_3602
return 

//-------------Mission 144---------------
// Originally: Run-around CO

:RUN_CO
script_name 'RUN_CO'
gosub @RUN_CO_47
if 
  has_deatharrest_been_executed 
goto_if_false @RUN_CO_38
gosub @RUN_CO_952

:RUN_CO_38
gosub @RUN_CO_1097
terminate_this_script 

:RUN_CO_47
Game.HideAllFrontendBlips(True)
Camera.SetFadingColor(0, 0, 0)
$flag_car_normal_carmod = 1
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('RUN_2P')
gosub @RUN_CO_1249
wait 0
TIMERA = 0
Streaming.RequestModel(157)
Streaming.RequestAnimation("KISSING")

:RUN_CO_120
if or
  not Streaming.HasModelLoaded(157)
  not Streaming.HasAnimationLoaded("KISSING")
goto_if_false @RUN_CO_158
wait 0
goto @RUN_CO_120

:RUN_CO_158
World.ClearArea(711.0688, -569.3774, 15.3359, 10.0, True)
if 
  not Char.IsDead($scplayer)
goto_if_false @RUN_CO_340
Char.SetCoordinates($scplayer, 712.1416, -571.62, 15.3359)
Char.SetHeading($scplayer, 244.9583)
$player2 = Player.Create(1, 712.3738, -568.9551, 15.3359)
Game.DoWeaponStuffAtStartOf2PGame
$p2 = Player.GetChar($player2)
Player.SetModel($player2, 157)
Char.SetAnimGroup($p2, "PRO")
Char.SetHeading($p2, 260.509)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Game.LimitTwoPlayerDistance(20.0)
Char.DisableSpeech($p2, True)

:RUN_CO_340
gosub @RUN_CO_1165
Camera.SetFixedPosition(713.8377, -575.1109, 16.933, 0.0, 0.0, 0.0)
Camera.PointAtPoint(713.3706, -574.2305, 16.8514, SwitchType.JumpCut)
gosub @RUN_CO_1290
Text.PrintNow('RUN_02', 5000, 1)
wait 5000
Text.ClearPrints
Hud.SwitchWidescreen(False)
Text.PrintHelpForever('RUN_XX')

:RUN_CO_443
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_CO_809
wait 0
if 
  TIMERB > 250
goto_if_false @RUN_CO_769
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad2)
if and
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftStickX)
  $LStickX > 100
goto_if_false @RUN_CO_573
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_CO_559
34@ = 0

:RUN_CO_559
gosub @RUN_CO_1331
TIMERB = 0

:RUN_CO_573
if and
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftStickX)
  -100 > $LStickX
goto_if_false @RUN_CO_643
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_CO_629
34@ = 5

:RUN_CO_629
gosub @RUN_CO_1331
TIMERB = 0

:RUN_CO_643
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.DpadRight)
goto_if_false @RUN_CO_706
34@ += 1
if 
  34@ > 5
goto_if_false @RUN_CO_692
34@ = 0

:RUN_CO_692
gosub @RUN_CO_1331
TIMERB = 0

:RUN_CO_706
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.DpadLeft)
goto_if_false @RUN_CO_769
34@ -= 1
if 
  0 > 34@
goto_if_false @RUN_CO_755
34@ = 5

:RUN_CO_755
gosub @RUN_CO_1331
TIMERB = 0

:RUN_CO_769
if 
  Pad.IsButtonPressed(PadId.Pad2, Button.Cross)
goto_if_false @RUN_CO_802
gosub @RUN_CO_1206
Text.ClearHelp
goto @RUN_CO_809

:RUN_CO_802
goto @RUN_CO_443

:RUN_CO_809
Text.PrintHelp('RUN_06')

:RUN_CO_820
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_CO_945
wait 0
gosub @RUN_CO_1678
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_CO_938
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @RUN_CO_938
if and
  not Char.HasBeenDamagedByWeapon($scplayer, WeaponType.SprayCan)
  not Char.HasBeenDamagedByWeapon($p2, WeaponType.SprayCan)
goto_if_false @RUN_CO_928
gosub @RUN_CO_1857
goto @RUN_CO_938

:RUN_CO_928
Char.ClearLastWeaponDamage($scplayer)
Char.ClearLastWeaponDamage($p2)

:RUN_CO_938
goto @RUN_CO_820

:RUN_CO_945
goto @RUN_CO_952

:RUN_CO_952
if 
  Char.IsDead($scplayer)
goto_if_false @RUN_CO_984
Text.PrintNow('RUN_03', 4000, 1)

:RUN_CO_984
if 
  Char.IsDead($p2)
goto_if_false @RUN_CO_1016
Text.PrintNow('RUN_04', 4000, 1)

:RUN_CO_1016
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @RUN_CO_1053
Text.PrintNow('RUN_05', 4000, 1)

:RUN_CO_1053
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 
Text.PrintWithNumberBig('M_PASS', 10000, 5000, TextStyle.Middle)
Player.ClearWantedLevel($player1)
return 

:RUN_CO_1097
Game.HideAllFrontendBlips(False)
$flag_car_normal_carmod = 0
$onmission = 0
Player.ClearWantedLevel($player1)
Streaming.MarkModelAsNoLongerNeeded(131)
Streaming.MarkModelAsNoLongerNeeded(151)
Streaming.MarkModelAsNoLongerNeeded(169)
Streaming.MarkModelAsNoLongerNeeded(246)
Streaming.MarkModelAsNoLongerNeeded(245)
Streaming.MarkModelAsNoLongerNeeded(40)
Streaming.RemoveAnimation("KISSING")
Mission.Finish
return 

:RUN_CO_1165
Hud.SwitchWidescreen(True)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @RUN_CO_1204
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:RUN_CO_1204
return 

:RUN_CO_1206
Hud.SwitchWidescreen(False)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @RUN_CO_1245
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:RUN_CO_1245
Camera.RestoreJumpcut
return 

:RUN_CO_1249
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:RUN_CO_1264
if 
  Camera.GetFadingStatus
goto_if_false @RUN_CO_1288
wait 0
goto @RUN_CO_1264

:RUN_CO_1288
return 

:RUN_CO_1290
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:RUN_CO_1305
if 
  Camera.GetFadingStatus
goto_if_false @RUN_CO_1329
wait 0
goto @RUN_CO_1305

:RUN_CO_1329
return 

:RUN_CO_1331
switch_start 34@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RUN_CO_1676 {caseNum1} 0 {caseLabel1} @RUN_CO_1394 {caseNum2} 1 {caseLabel2} @RUN_CO_1441 {caseNum3} 2 {caseLabel3} @RUN_CO_1488 {caseNum4} 3 {caseLabel4} @RUN_CO_1535 {caseNum5} 4 {caseLabel5} @RUN_CO_1582 {caseNum6} 5 {caseLabel6} @RUN_CO_1629 {caseNum7} -1 {caseLabel7} @RUN_CO_1676

:RUN_CO_1394
Streaming.RequestModel(131)

:RUN_CO_1399
if 
  not Streaming.HasModelLoaded(131)
goto_if_false @RUN_CO_1426
wait 0
goto @RUN_CO_1399

:RUN_CO_1426
Player.SetModel($player2, 131)
goto @RUN_CO_1676

:RUN_CO_1441
Streaming.RequestModel(151)

:RUN_CO_1446
if 
  not Streaming.HasModelLoaded(151)
goto_if_false @RUN_CO_1473
wait 0
goto @RUN_CO_1446

:RUN_CO_1473
Player.SetModel($player2, 151)
goto @RUN_CO_1676

:RUN_CO_1488
Streaming.RequestModel(169)

:RUN_CO_1493
if 
  not Streaming.HasModelLoaded(169)
goto_if_false @RUN_CO_1520
wait 0
goto @RUN_CO_1493

:RUN_CO_1520
Player.SetModel($player2, 169)
goto @RUN_CO_1676

:RUN_CO_1535
Streaming.RequestModel(246)

:RUN_CO_1540
if 
  not Streaming.HasModelLoaded(246)
goto_if_false @RUN_CO_1567
wait 0
goto @RUN_CO_1540

:RUN_CO_1567
Player.SetModel($player2, 246)
goto @RUN_CO_1676

:RUN_CO_1582
Streaming.RequestModel(245)

:RUN_CO_1587
if 
  not Streaming.HasModelLoaded(245)
goto_if_false @RUN_CO_1614
wait 0
goto @RUN_CO_1587

:RUN_CO_1614
Player.SetModel($player2, 245)
goto @RUN_CO_1676

:RUN_CO_1629
Streaming.RequestModel(40)

:RUN_CO_1634
if 
  not Streaming.HasModelLoaded(40)
goto_if_false @RUN_CO_1661
wait 0
goto @RUN_CO_1634

:RUN_CO_1661
Player.SetModel($player2, 40)
goto @RUN_CO_1676

:RUN_CO_1676
return 

:RUN_CO_1678
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @RUN_CO_1693

:RUN_CO_1693
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @RUN_CO_1708

:RUN_CO_1708
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @RUN_CO_1723

:RUN_CO_1723
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @RUN_CO_1759
if 
  not Char.IsDead($p2)
goto_if_false @RUN_CO_1759
Task.Die($p2)

:RUN_CO_1759
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @RUN_CO_1774

:RUN_CO_1774
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @RUN_CO_1810
if 
  not Char.IsDead($scplayer)
goto_if_false @RUN_CO_1810
Task.Die($scplayer)

:RUN_CO_1810
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @RUN_CO_1855
if 
  not Char.IsDead($scplayer)
goto_if_false @RUN_CO_1855
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:RUN_CO_1855
return 

:RUN_CO_1857
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_CO_2216
if 
  49@ == 0
goto_if_false @RUN_CO_2209
if and
  not Char.IsInAnyCar($scplayer)
  not Char.IsInAnyCar($p2)
goto_if_false @RUN_CO_2202
if 
  Char.IsStopped($p2)
goto_if_false @RUN_CO_2202
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($p2, 0.0, 0.5, 0.0)
if 
  Char.LocateStoppedOnFoot3D($scplayer, 35@, 38@, 41@, 1.2, 1.2, 1.0, False)
goto_if_false @RUN_CO_2175
if 
  50@ == 0
goto_if_false @RUN_CO_2040
Text.PrintHelpForever('GF_0021')
50@ = 1

:RUN_CO_2040
35@, 38@, 41@ = Char.GetCoordinates($scplayer)
36@, 39@, 42@ = Char.GetCoordinates($p2)
set_lvar_float_to_lvar_float 44@ = 42@
44@ -= 0.02
set_lvar_float_to_lvar_float 45@ = 42@
45@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 41@ > 44@
  is_float_lvar_greater_than_float_lvar 45@ > 41@
goto_if_false @RUN_CO_2168
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftShoulder1)
goto_if_false @RUN_CO_2168
49@ = 1
gosub @RUN_CO_2218

:RUN_CO_2168
goto @RUN_CO_2202

:RUN_CO_2175
if 
  50@ == 1
goto_if_false @RUN_CO_2202
Text.ClearHelp
50@ = 0

:RUN_CO_2202
goto @RUN_CO_2216

:RUN_CO_2209
gosub @RUN_CO_2218

:RUN_CO_2216
return 

:RUN_CO_2218
switch_start 49@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RUN_CO_3629 {caseNum1} 1 {caseLabel1} @RUN_CO_2281 {caseNum2} 2 {caseLabel2} @RUN_CO_2478 {caseNum3} 3 {caseLabel3} @RUN_CO_2992 {caseNum4} 4 {caseLabel4} @RUN_CO_3130 {caseNum5} -1 {caseLabel5} @RUN_CO_3629 {caseNum6} -1 {caseLabel6} @RUN_CO_3629 {caseNum7} -1 {caseLabel7} @RUN_CO_3629

:RUN_CO_2281
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_CO_2471
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($p2)
Text.ClearHelp
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene($p2, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 2.0)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsOff(35@, 38@, 41@, 36@, 39@, 42@)
Path.SwitchPedRoadsOff(35@, 38@, 41@, 36@, 39@, 42@)
Task.TurnCharToFaceChar($scplayer, $p2)
Task.TurnCharToFaceChar($p2, $scplayer)
49@ += 1

:RUN_CO_2471
goto @RUN_CO_3629

:RUN_CO_2478
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_CO_2985
47@ = Char.GetScriptTaskStatus($scplayer, 1593)
48@ = Char.GetScriptTaskStatus($p2, 1593)
if and
  is_int_lvar_equal_to_constant 47@ == 7
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_CO_2837
Char.SetCollision($scplayer, False)
Char.SetCollision($p2, False)
44@ = Char.GetHeading($scplayer)
44@ += 180.0
Char.SetHeading($p2, 44@)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, 0.0)
42@ = World.GetGroundZFor3DCoord(36@, 39@, 42@)
37@, 40@, 43@ = Char.GetCoordinates($p2)
43@ = World.GetGroundZFor3DCoord(37@, 40@, 43@)
Char.SetCoordinates($p2, 36@, 39@, 42@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 1.2, -1.0, 0.5)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.7, 0.5)
if 
  World.IsLineOfSightClear(35@, 38@, 41@, 36@, 39@, 42@, True, True, False, True, False)
goto_if_false @RUN_CO_2809
Camera.SetFixedPosition(35@, 38@, 41@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(36@, 39@, 42@, SwitchType.JumpCut)

:RUN_CO_2809
Task.StandStill($scplayer, -1)
Task.StandStill($p2, -1)
49@ += 1
goto @RUN_CO_2985

:RUN_CO_2837
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @RUN_CO_2898
47@ = Char.GetScriptTaskStatus($scplayer, 1466)
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @RUN_CO_2898
Task.StandStill($scplayer, -1)

:RUN_CO_2898
if 
  is_int_lvar_equal_to_constant 48@ == 7
goto_if_false @RUN_CO_2985
48@ = Char.GetScriptTaskStatus($p2, 1466)
if and
  not is_int_lvar_equal_to_constant 48@ == 1
  not is_int_lvar_equal_to_constant 48@ == 0
goto_if_false @RUN_CO_2985
Task.StandStill($p2, -1)
44@ = Char.GetHeading($scplayer)
44@ += 180.0
Char.SetHeading($p2, 44@)

:RUN_CO_2985
goto @RUN_CO_3629

:RUN_CO_2992
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_CO_3123
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Task.PlayAnim($scplayer, "PLAYA_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
Task.PlayAnim($p2, "GRLFRD_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
49@ += 1
Char.AddArmor($scplayer, 150)
Char.AddArmor($p2, 100)
Char.SetHealth($scplayer, 200)
Char.SetHealth($p2, 200)
:RUN_CO_3123
goto @RUN_CO_3629

:RUN_CO_3130
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @RUN_CO_3622
44@ = -1.0
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_02")
goto_if_false @RUN_CO_3215
44@ = Char.GetAnimCurrentTime($scplayer, "PLAYA_KISS_02")

:RUN_CO_3215
if 
  44@ > -1.0
goto_if_false @RUN_CO_3437
if 
  44@ == 1.0
goto_if_false @RUN_CO_3430
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 37@, 40@, 43@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Path.SwitchPedRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
49@ = 0

:RUN_CO_3430
goto @RUN_CO_3622

:RUN_CO_3437
Char.ClearTasks($scplayer)
Task.Pause($p2, 0)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 37@, 40@, 43@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
36@, 39@, 42@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Path.SwitchPedRoadsBackToOriginal(35@, 38@, 41@, 36@, 39@, 42@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
49@ = 0

:RUN_CO_3622
goto @RUN_CO_3629

:RUN_CO_3629
return 

//-------------Mission 145---------------
// Originally: Run-around (2player)

:R_MILY
script_name 'R_MILY'
gosub @R_MILY_47
if 
  has_deatharrest_been_executed 
goto_if_false @R_MILY_38
gosub @R_MILY_568

:R_MILY_38
gosub @R_MILY_694
terminate_this_script 

:R_MILY_47
Game.HideAllFrontendBlips(True)
Camera.SetFadingColor(0, 0, 0)
$flag_car_normal_carmod = 1
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('RUN_2P')
gosub @R_MILY_823
wait 0
Streaming.RequestModel(194)
Streaming.RequestAnimation("KISSING")

:R_MILY_113
if or
  not Streaming.HasModelLoaded(194)
  not Streaming.HasAnimationLoaded("KISSING")
goto_if_false @R_MILY_151
wait 0
goto @R_MILY_113

:R_MILY_151
TIMERA = 0
World.ClearArea(2029.306, 2732.588, 9.8203, 10.0, True)
if 
  not Char.IsDead($scplayer)
goto_if_false @R_MILY_330
Char.SetCoordinates($scplayer, 2029.306, 2732.588, 9.8203)
Char.SetHeading($scplayer, 0.7089)
$player2 = Player.Create(1, 2027.131, 2732.603, 9.8203)
Game.DoWeaponStuffAtStartOf2PGame
$p2 = Player.GetChar($player2)
Char.SetHeading($p2, 0.7089)
Player.SetModel($player2, 194)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Game.LimitTwoPlayerDistance(20.0)
Char.DisableSpeech($p2, True)

:R_MILY_330
gosub @R_MILY_737
Camera.SetFixedPosition(2028.41, 2737.598, 13.2972, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2028.422, 2736.655, 12.967, SwitchType.JumpCut)
gosub @R_MILY_864
Text.PrintNow('RUN_02', 5000, 1)
wait 5000
Text.ClearPrints
gosub @R_MILY_778
Text.PrintHelp('RUN_06')

:R_MILY_436
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_MILY_561
wait 0
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_MILY_547
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @R_MILY_547
if and
  not Char.HasBeenDamagedByWeapon($scplayer, WeaponType.SprayCan)
  not Char.HasBeenDamagedByWeapon($p2, WeaponType.SprayCan)
goto_if_false @R_MILY_537
gosub @R_MILY_1084
goto @R_MILY_547

:R_MILY_537
Char.ClearLastWeaponDamage($scplayer)
Char.ClearLastWeaponDamage($p2)

:R_MILY_547
gosub @R_MILY_905
goto @R_MILY_436

:R_MILY_561
goto @R_MILY_568

:R_MILY_568
if 
  Char.IsDead($scplayer)
goto_if_false @R_MILY_600
Text.PrintNow('RUN_03', 4000, 1)

:R_MILY_600
if 
  Char.IsDead($p2)
goto_if_false @R_MILY_632
Text.PrintNow('RUN_04', 4000, 1)

:R_MILY_632
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @R_MILY_669
Text.PrintNow('RUN_05', 4000, 1)

:R_MILY_669
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 
Player.ClearWantedLevel($player1)
return 

:R_MILY_694
$flag_car_normal_carmod = 0
Game.HideAllFrontendBlips(True)
Streaming.MarkModelAsNoLongerNeeded(194)
Streaming.RemoveAnimation("KISSING")
$onmission = 0
Player.ClearWantedLevel($player1)
Mission.Finish
return 

:R_MILY_737
Hud.SwitchWidescreen(True)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @R_MILY_776
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:R_MILY_776
return 

:R_MILY_778
Camera.SetInFrontOfPlayer
Hud.SwitchWidescreen(False)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @R_MILY_819
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:R_MILY_819
Camera.RestoreJumpcut
return 

:R_MILY_823
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:R_MILY_838
if 
  Camera.GetFadingStatus
goto_if_false @R_MILY_862
wait 0
goto @R_MILY_838

:R_MILY_862
return 

:R_MILY_864
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:R_MILY_879
if 
  Camera.GetFadingStatus
goto_if_false @R_MILY_903
wait 0
goto @R_MILY_879

:R_MILY_903
return 

:R_MILY_905
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @R_MILY_920

:R_MILY_920
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @R_MILY_935

:R_MILY_935
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @R_MILY_950

:R_MILY_950
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @R_MILY_986
if 
  not Char.IsDead($p2)
goto_if_false @R_MILY_986
Task.Die($p2)

:R_MILY_986
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @R_MILY_1001

:R_MILY_1001
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @R_MILY_1037
if 
  not Char.IsDead($scplayer)
goto_if_false @R_MILY_1037
Task.Die($scplayer)

:R_MILY_1037
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @R_MILY_1082
if 
  not Char.IsDead($scplayer)
goto_if_false @R_MILY_1082
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:R_MILY_1082
return 

:R_MILY_1084
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_MILY_1443
if 
  48@ == 0
goto_if_false @R_MILY_1436
if and
  not Char.IsInAnyCar($scplayer)
  not Char.IsInAnyCar($p2)
goto_if_false @R_MILY_1429
if 
  Char.IsStopped($p2)
goto_if_false @R_MILY_1429
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($p2, 0.0, 0.5, 0.0)
if 
  Char.LocateStoppedOnFoot3D($scplayer, 34@, 37@, 40@, 1.2, 1.2, 1.0, False)
goto_if_false @R_MILY_1402
if 
  49@ == 0
goto_if_false @R_MILY_1267
Text.PrintHelpForever('GF_0021')
49@ = 1

:R_MILY_1267
34@, 37@, 40@ = Char.GetCoordinates($scplayer)
35@, 38@, 41@ = Char.GetCoordinates($p2)
set_lvar_float_to_lvar_float 43@ = 41@
43@ -= 0.02
set_lvar_float_to_lvar_float 44@ = 41@
44@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 40@ > 43@
  is_float_lvar_greater_than_float_lvar 44@ > 40@
goto_if_false @R_MILY_1395
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftShoulder1)
goto_if_false @R_MILY_1395
48@ = 1
gosub @R_MILY_1445

:R_MILY_1395
goto @R_MILY_1429

:R_MILY_1402
if 
  49@ == 1
goto_if_false @R_MILY_1429
Text.ClearHelp
49@ = 0

:R_MILY_1429
goto @R_MILY_1443

:R_MILY_1436
gosub @R_MILY_1445

:R_MILY_1443
return 

:R_MILY_1445
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @R_MILY_2856 {caseNum1} 1 {caseLabel1} @R_MILY_1508 {caseNum2} 2 {caseLabel2} @R_MILY_1705 {caseNum3} 3 {caseLabel3} @R_MILY_2219 {caseNum4} 4 {caseLabel4} @R_MILY_2357 {caseNum5} -1 {caseLabel5} @R_MILY_2856 {caseNum6} -1 {caseLabel6} @R_MILY_2856 {caseNum7} -1 {caseLabel7} @R_MILY_2856

:R_MILY_1508
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_MILY_1698
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($p2)
Text.ClearHelp
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene($p2, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 2.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsOff(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsOff(34@, 37@, 40@, 35@, 38@, 41@)
Task.TurnCharToFaceChar($scplayer, $p2)
Task.TurnCharToFaceChar($p2, $scplayer)
48@ += 1

:R_MILY_1698
goto @R_MILY_2856

:R_MILY_1705
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_MILY_2212
46@ = Char.GetScriptTaskStatus($scplayer, 1593)
47@ = Char.GetScriptTaskStatus($p2, 1593)
if and
  is_int_lvar_equal_to_constant 46@ == 7
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_MILY_2064
Char.SetCollision($scplayer, False)
Char.SetCollision($p2, False)
43@ = Char.GetHeading($scplayer)
43@ += 180.0
Char.SetHeading($p2, 43@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, 0.0)
41@ = World.GetGroundZFor3DCoord(35@, 38@, 41@)
36@, 39@, 42@ = Char.GetCoordinates($p2)
42@ = World.GetGroundZFor3DCoord(36@, 39@, 42@)
Char.SetCoordinates($p2, 35@, 38@, 41@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 1.2, -1.0, 0.5)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.7, 0.5)
if 
  World.IsLineOfSightClear(34@, 37@, 40@, 35@, 38@, 41@, True, True, False, True, False)
goto_if_false @R_MILY_2036
Camera.SetFixedPosition(34@, 37@, 40@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(35@, 38@, 41@, SwitchType.JumpCut)

:R_MILY_2036
Task.StandStill($scplayer, -1)
Task.StandStill($p2, -1)
48@ += 1
goto @R_MILY_2212

:R_MILY_2064
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @R_MILY_2125
46@ = Char.GetScriptTaskStatus($scplayer, 1466)
if and
  not is_int_lvar_equal_to_constant 46@ == 1
  not is_int_lvar_equal_to_constant 46@ == 0
goto_if_false @R_MILY_2125
Task.StandStill($scplayer, -1)

:R_MILY_2125
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_MILY_2212
47@ = Char.GetScriptTaskStatus($p2, 1466)
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @R_MILY_2212
Task.StandStill($p2, -1)
43@ = Char.GetHeading($scplayer)
43@ += 180.0
Char.SetHeading($p2, 43@)

:R_MILY_2212
goto @R_MILY_2856

:R_MILY_2219
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_MILY_2350
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Task.PlayAnim($scplayer, "PLAYA_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
Task.PlayAnim($p2, "GRLFRD_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
48@ += 1
Char.AddArmor($scplayer, 150)
Char.AddArmor($p2, 100)
Char.SetHealth($scplayer, 200)
Char.SetHealth($p2, 200)
:R_MILY_2350
goto @R_MILY_2856

:R_MILY_2357
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_MILY_2849
43@ = -1.0
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_02")
goto_if_false @R_MILY_2442
43@ = Char.GetAnimCurrentTime($scplayer, "PLAYA_KISS_02")

:R_MILY_2442
if 
  43@ > -1.0
goto_if_false @R_MILY_2664
if 
  43@ == 1.0
goto_if_false @R_MILY_2657
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 36@, 39@, 42@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
48@ = 0

:R_MILY_2657
goto @R_MILY_2849

:R_MILY_2664
Char.ClearTasks($scplayer)
Task.Pause($p2, 0)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 36@, 39@, 42@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
48@ = 0

:R_MILY_2849
goto @R_MILY_2856

:R_MILY_2856
return 

//-------------Mission 146---------------
// Originally: Run-around (2player)

:R_SUZI
script_name 'R_SUZI'
gosub @R_SUZI_47
if 
  has_deatharrest_been_executed 
goto_if_false @R_SUZI_38
gosub @R_SUZI_568

:R_SUZI_38
gosub @R_SUZI_694
terminate_this_script 

:R_SUZI_47
Game.HideAllFrontendBlips(True)
Camera.SetFadingColor(0, 0, 0)
$flag_car_normal_carmod = 1
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('RUN_2P')
gosub @R_SUZI_823
wait 0
Streaming.RequestModel(193)
Streaming.RequestAnimation("KISSING")

:R_SUZI_113
if or
  not Streaming.HasModelLoaded(193)
  not Streaming.HasAnimationLoaded("KISSING")
goto_if_false @R_SUZI_151
wait 0
goto @R_SUZI_113

:R_SUZI_151
TIMERA = 0
World.ClearArea(-2574.303, 1151.564, 54.7333, 10.0, True)
if 
  not Char.IsDead($scplayer)
goto_if_false @R_SUZI_330
Char.SetCoordinates($scplayer, -2571.827, 1150.589, 54.7333)
Char.SetHeading($scplayer, 156.4741)
$player2 = Player.Create(1, -2570.067, 1150.097, 54.7333)
Game.DoWeaponStuffAtStartOf2PGame
$p2 = Player.GetChar($player2)
Char.SetHeading($p2, 163.1839)
Player.SetModel($player2, 193)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Game.LimitTwoPlayerDistance(20.0)
Char.DisableSpeech($p2, True)

:R_SUZI_330
gosub @R_SUZI_737
Camera.SetFixedPosition(-2572.03, 1146.816, 57.1697, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-2571.753, 1147.731, 56.875, SwitchType.JumpCut)
gosub @R_SUZI_864
Text.PrintNow('RUN_02', 5000, 1)
wait 5000
Text.ClearPrints
gosub @R_SUZI_778
Text.PrintHelp('RUN_06')

:R_SUZI_436
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_SUZI_561
wait 0
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_SUZI_547
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @R_SUZI_547
if and
  not Char.HasBeenDamagedByWeapon($scplayer, WeaponType.SprayCan)
  not Char.HasBeenDamagedByWeapon($p2, WeaponType.SprayCan)
goto_if_false @R_SUZI_537
gosub @R_SUZI_1084
goto @R_SUZI_547

:R_SUZI_537
Char.ClearLastWeaponDamage($scplayer)
Char.ClearLastWeaponDamage($p2)

:R_SUZI_547
gosub @R_SUZI_905
goto @R_SUZI_436

:R_SUZI_561
goto @R_SUZI_568

:R_SUZI_568
if 
  Char.IsDead($scplayer)
goto_if_false @R_SUZI_600
Text.PrintNow('RUN_03', 4000, 1)

:R_SUZI_600
if 
  Char.IsDead($p2)
goto_if_false @R_SUZI_632
Text.PrintNow('RUN_04', 4000, 1)

:R_SUZI_632
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @R_SUZI_669
Text.PrintNow('RUN_05', 4000, 1)

:R_SUZI_669
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 
Player.ClearWantedLevel($player1)
return 

:R_SUZI_694
$flag_car_normal_carmod = 0
Game.HideAllFrontendBlips(True)
Streaming.MarkModelAsNoLongerNeeded(193)
Streaming.RemoveAnimation("KISSING")
$onmission = 0
Player.ClearWantedLevel($player1)
Mission.Finish
return 

:R_SUZI_737
Hud.SwitchWidescreen(True)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @R_SUZI_776
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:R_SUZI_776
return 

:R_SUZI_778
Camera.SetInFrontOfPlayer
Hud.SwitchWidescreen(False)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @R_SUZI_819
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:R_SUZI_819
Camera.RestoreJumpcut
return 

:R_SUZI_823
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:R_SUZI_838
if 
  Camera.GetFadingStatus
goto_if_false @R_SUZI_862
wait 0
goto @R_SUZI_838

:R_SUZI_862
return 

:R_SUZI_864
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:R_SUZI_879
if 
  Camera.GetFadingStatus
goto_if_false @R_SUZI_903
wait 0
goto @R_SUZI_879

:R_SUZI_903
return 

:R_SUZI_905
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @R_SUZI_920

:R_SUZI_920
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @R_SUZI_935

:R_SUZI_935
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @R_SUZI_950

:R_SUZI_950
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @R_SUZI_986
if 
  not Char.IsDead($p2)
goto_if_false @R_SUZI_986
Task.Die($p2)

:R_SUZI_986
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @R_SUZI_1001

:R_SUZI_1001
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @R_SUZI_1037
if 
  not Char.IsDead($scplayer)
goto_if_false @R_SUZI_1037
Task.Die($scplayer)

:R_SUZI_1037
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @R_SUZI_1082
if 
  not Char.IsDead($scplayer)
goto_if_false @R_SUZI_1082
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:R_SUZI_1082
return 

:R_SUZI_1084
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_SUZI_1443
if 
  48@ == 0
goto_if_false @R_SUZI_1436
if and
  not Char.IsInAnyCar($scplayer)
  not Char.IsInAnyCar($p2)
goto_if_false @R_SUZI_1429
if 
  Char.IsStopped($p2)
goto_if_false @R_SUZI_1429
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($p2, 0.0, 0.5, 0.0)
if 
  Char.LocateStoppedOnFoot3D($scplayer, 34@, 37@, 40@, 1.2, 1.2, 1.0, False)
goto_if_false @R_SUZI_1402
if 
  49@ == 0
goto_if_false @R_SUZI_1267
Text.PrintHelpForever('GF_0021')
49@ = 1

:R_SUZI_1267
34@, 37@, 40@ = Char.GetCoordinates($scplayer)
35@, 38@, 41@ = Char.GetCoordinates($p2)
set_lvar_float_to_lvar_float 43@ = 41@
43@ -= 0.02
set_lvar_float_to_lvar_float 44@ = 41@
44@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 40@ > 43@
  is_float_lvar_greater_than_float_lvar 44@ > 40@
goto_if_false @R_SUZI_1395
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftShoulder1)
goto_if_false @R_SUZI_1395
48@ = 1
gosub @R_SUZI_1445

:R_SUZI_1395
goto @R_SUZI_1429

:R_SUZI_1402
if 
  49@ == 1
goto_if_false @R_SUZI_1429
Text.ClearHelp
49@ = 0

:R_SUZI_1429
goto @R_SUZI_1443

:R_SUZI_1436
gosub @R_SUZI_1445

:R_SUZI_1443
return 

:R_SUZI_1445
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @R_SUZI_2856 {caseNum1} 1 {caseLabel1} @R_SUZI_1508 {caseNum2} 2 {caseLabel2} @R_SUZI_1705 {caseNum3} 3 {caseLabel3} @R_SUZI_2219 {caseNum4} 4 {caseLabel4} @R_SUZI_2357 {caseNum5} -1 {caseLabel5} @R_SUZI_2856 {caseNum6} -1 {caseLabel6} @R_SUZI_2856 {caseNum7} -1 {caseLabel7} @R_SUZI_2856

:R_SUZI_1508
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_SUZI_1698
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($p2)
Text.ClearHelp
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene($p2, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 2.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsOff(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsOff(34@, 37@, 40@, 35@, 38@, 41@)
Task.TurnCharToFaceChar($scplayer, $p2)
Task.TurnCharToFaceChar($p2, $scplayer)
48@ += 1

:R_SUZI_1698
goto @R_SUZI_2856

:R_SUZI_1705
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_SUZI_2212
46@ = Char.GetScriptTaskStatus($scplayer, 1593)
47@ = Char.GetScriptTaskStatus($p2, 1593)
if and
  is_int_lvar_equal_to_constant 46@ == 7
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_SUZI_2064
Char.SetCollision($scplayer, False)
Char.SetCollision($p2, False)
43@ = Char.GetHeading($scplayer)
43@ += 180.0
Char.SetHeading($p2, 43@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, 0.0)
41@ = World.GetGroundZFor3DCoord(35@, 38@, 41@)
36@, 39@, 42@ = Char.GetCoordinates($p2)
42@ = World.GetGroundZFor3DCoord(36@, 39@, 42@)
Char.SetCoordinates($p2, 35@, 38@, 41@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 1.2, -1.0, 0.5)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.7, 0.5)
if 
  World.IsLineOfSightClear(34@, 37@, 40@, 35@, 38@, 41@, True, True, False, True, False)
goto_if_false @R_SUZI_2036
Camera.SetFixedPosition(34@, 37@, 40@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(35@, 38@, 41@, SwitchType.JumpCut)

:R_SUZI_2036
Task.StandStill($scplayer, -1)
Task.StandStill($p2, -1)
48@ += 1
goto @R_SUZI_2212

:R_SUZI_2064
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @R_SUZI_2125
46@ = Char.GetScriptTaskStatus($scplayer, 1466)
if and
  not is_int_lvar_equal_to_constant 46@ == 1
  not is_int_lvar_equal_to_constant 46@ == 0
goto_if_false @R_SUZI_2125
Task.StandStill($scplayer, -1)

:R_SUZI_2125
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_SUZI_2212
47@ = Char.GetScriptTaskStatus($p2, 1466)
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @R_SUZI_2212
Task.StandStill($p2, -1)
43@ = Char.GetHeading($scplayer)
43@ += 180.0
Char.SetHeading($p2, 43@)

:R_SUZI_2212
goto @R_SUZI_2856

:R_SUZI_2219
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_SUZI_2350
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Task.PlayAnim($scplayer, "PLAYA_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
Task.PlayAnim($p2, "GRLFRD_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
48@ += 1
Char.AddArmor($scplayer, 150)
Char.AddArmor($p2, 100)
Char.SetHealth($scplayer, 200)
Char.SetHealth($p2, 200)
:R_SUZI_2350
goto @R_SUZI_2856

:R_SUZI_2357
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_SUZI_2849
43@ = -1.0
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_02")
goto_if_false @R_SUZI_2442
43@ = Char.GetAnimCurrentTime($scplayer, "PLAYA_KISS_02")

:R_SUZI_2442
if 
  43@ > -1.0
goto_if_false @R_SUZI_2664
if 
  43@ == 1.0
goto_if_false @R_SUZI_2657
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 36@, 39@, 42@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
48@ = 0

:R_SUZI_2657
goto @R_SUZI_2849

:R_SUZI_2664
Char.ClearTasks($scplayer)
Task.Pause($p2, 0)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 36@, 39@, 42@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
48@ = 0

:R_SUZI_2849
goto @R_SUZI_2856

:R_SUZI_2856
return 

//-------------Mission 147---------------
// Originally: Run-around (2player)

:R_BARB
script_name 'R_BARB'
gosub @R_BARB_47
if 
  has_deatharrest_been_executed 
goto_if_false @R_BARB_38
gosub @R_BARB_568

:R_BARB_38
gosub @R_BARB_694
terminate_this_script 

:R_BARB_47
Game.HideAllFrontendBlips(True)
Camera.SetFadingColor(0, 0, 0)
$flag_car_normal_carmod = 1
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('RUN_2P')
gosub @R_BARB_823
wait 0
Streaming.RequestModel(190)
Streaming.RequestAnimation("KISSING")

:R_BARB_113
if or
  not Streaming.HasModelLoaded(190)
  not Streaming.HasAnimationLoaded("KISSING")
goto_if_false @R_BARB_151
wait 0
goto @R_BARB_113

:R_BARB_151
TIMERA = 0
World.ClearArea(-1391.616, 2637.604, 54.9843, 10.0, True)
if 
  not Char.IsDead($scplayer)
goto_if_false @R_BARB_330
Char.SetCoordinates($scplayer, -1391.616, 2637.604, 54.9843)
Char.SetHeading($scplayer, 129.2336)
$player2 = Player.Create(1, -1390.879, 2636.415, 54.9843)
Game.DoWeaponStuffAtStartOf2PGame
$p2 = Player.GetChar($player2)
Char.SetHeading($p2, 129.2336)
Player.SetModel($player2, 190)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Game.LimitTwoPlayerDistance(20.0)
Char.DisableSpeech($p2, True)

:R_BARB_330
gosub @R_BARB_737
Camera.SetFixedPosition(-1395.236, 2633.939, 57.8633, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1394.498, 2634.542, 57.5606, SwitchType.JumpCut)
gosub @R_BARB_864
Text.PrintNow('RUN_02', 5000, 1)
wait 5000
Text.ClearPrints
gosub @R_BARB_778
Text.PrintHelp('RUN_06')

:R_BARB_436
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_BARB_561
wait 0
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_BARB_547
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @R_BARB_547
if and
  not Char.HasBeenDamagedByWeapon($scplayer, WeaponType.SprayCan)
  not Char.HasBeenDamagedByWeapon($p2, WeaponType.SprayCan)
goto_if_false @R_BARB_537
gosub @R_BARB_1084
goto @R_BARB_547

:R_BARB_537
Char.ClearLastWeaponDamage($scplayer)
Char.ClearLastWeaponDamage($p2)

:R_BARB_547
gosub @R_BARB_905
goto @R_BARB_436

:R_BARB_561
goto @R_BARB_568

:R_BARB_568
if 
  Char.IsDead($scplayer)
goto_if_false @R_BARB_600
Text.PrintNow('RUN_03', 4000, 1)

:R_BARB_600
if 
  Char.IsDead($p2)
goto_if_false @R_BARB_632
Text.PrintNow('RUN_04', 4000, 1)

:R_BARB_632
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @R_BARB_669
Text.PrintNow('RUN_05', 4000, 1)

:R_BARB_669
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 
Player.ClearWantedLevel($player1)
return 

:R_BARB_694
$flag_car_normal_carmod = 0
Game.HideAllFrontendBlips(True)
Streaming.MarkModelAsNoLongerNeeded(190)
Streaming.RemoveAnimation("KISSING")
$onmission = 0
Player.ClearWantedLevel($player1)
Mission.Finish
return 

:R_BARB_737
Hud.SwitchWidescreen(True)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @R_BARB_776
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:R_BARB_776
return 

:R_BARB_778
Camera.SetInFrontOfPlayer
Hud.SwitchWidescreen(False)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @R_BARB_819
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:R_BARB_819
Camera.RestoreJumpcut
return 

:R_BARB_823
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:R_BARB_838
if 
  Camera.GetFadingStatus
goto_if_false @R_BARB_862
wait 0
goto @R_BARB_838

:R_BARB_862
return 

:R_BARB_864
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:R_BARB_879
if 
  Camera.GetFadingStatus
goto_if_false @R_BARB_903
wait 0
goto @R_BARB_879

:R_BARB_903
return 

:R_BARB_905
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @R_BARB_920

:R_BARB_920
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @R_BARB_935

:R_BARB_935
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @R_BARB_950

:R_BARB_950
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @R_BARB_986
if 
  not Char.IsDead($p2)
goto_if_false @R_BARB_986
Task.Die($p2)

:R_BARB_986
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @R_BARB_1001

:R_BARB_1001
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @R_BARB_1037
if 
  not Char.IsDead($scplayer)
goto_if_false @R_BARB_1037
Task.Die($scplayer)

:R_BARB_1037
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @R_BARB_1082
if 
  not Char.IsDead($scplayer)
goto_if_false @R_BARB_1082
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:R_BARB_1082
return 

:R_BARB_1084
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_BARB_1443
if 
  48@ == 0
goto_if_false @R_BARB_1436
if and
  not Char.IsInAnyCar($scplayer)
  not Char.IsInAnyCar($p2)
goto_if_false @R_BARB_1429
if 
  Char.IsStopped($p2)
goto_if_false @R_BARB_1429
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($p2, 0.0, 0.5, 0.0)
if 
  Char.LocateStoppedOnFoot3D($scplayer, 34@, 37@, 40@, 1.2, 1.2, 1.0, False)
goto_if_false @R_BARB_1402
if 
  49@ == 0
goto_if_false @R_BARB_1267
Text.PrintHelpForever('GF_0021')
49@ = 1

:R_BARB_1267
34@, 37@, 40@ = Char.GetCoordinates($scplayer)
35@, 38@, 41@ = Char.GetCoordinates($p2)
set_lvar_float_to_lvar_float 43@ = 41@
43@ -= 0.02
set_lvar_float_to_lvar_float 44@ = 41@
44@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 40@ > 43@
  is_float_lvar_greater_than_float_lvar 44@ > 40@
goto_if_false @R_BARB_1395
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftShoulder1)
goto_if_false @R_BARB_1395
48@ = 1
gosub @R_BARB_1445

:R_BARB_1395
goto @R_BARB_1429

:R_BARB_1402
if 
  49@ == 1
goto_if_false @R_BARB_1429
Text.ClearHelp
49@ = 0

:R_BARB_1429
goto @R_BARB_1443

:R_BARB_1436
gosub @R_BARB_1445

:R_BARB_1443
return 

:R_BARB_1445
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @R_BARB_2856 {caseNum1} 1 {caseLabel1} @R_BARB_1508 {caseNum2} 2 {caseLabel2} @R_BARB_1705 {caseNum3} 3 {caseLabel3} @R_BARB_2219 {caseNum4} 4 {caseLabel4} @R_BARB_2357 {caseNum5} -1 {caseLabel5} @R_BARB_2856 {caseNum6} -1 {caseLabel6} @R_BARB_2856 {caseNum7} -1 {caseLabel7} @R_BARB_2856

:R_BARB_1508
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_BARB_1698
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($p2)
Text.ClearHelp
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene($p2, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 2.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsOff(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsOff(34@, 37@, 40@, 35@, 38@, 41@)
Task.TurnCharToFaceChar($scplayer, $p2)
Task.TurnCharToFaceChar($p2, $scplayer)
48@ += 1

:R_BARB_1698
goto @R_BARB_2856

:R_BARB_1705
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_BARB_2212
46@ = Char.GetScriptTaskStatus($scplayer, 1593)
47@ = Char.GetScriptTaskStatus($p2, 1593)
if and
  is_int_lvar_equal_to_constant 46@ == 7
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_BARB_2064
Char.SetCollision($scplayer, False)
Char.SetCollision($p2, False)
43@ = Char.GetHeading($scplayer)
43@ += 180.0
Char.SetHeading($p2, 43@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, 0.0)
41@ = World.GetGroundZFor3DCoord(35@, 38@, 41@)
36@, 39@, 42@ = Char.GetCoordinates($p2)
42@ = World.GetGroundZFor3DCoord(36@, 39@, 42@)
Char.SetCoordinates($p2, 35@, 38@, 41@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 1.2, -1.0, 0.5)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.7, 0.5)
if 
  World.IsLineOfSightClear(34@, 37@, 40@, 35@, 38@, 41@, True, True, False, True, False)
goto_if_false @R_BARB_2036
Camera.SetFixedPosition(34@, 37@, 40@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(35@, 38@, 41@, SwitchType.JumpCut)

:R_BARB_2036
Task.StandStill($scplayer, -1)
Task.StandStill($p2, -1)
48@ += 1
goto @R_BARB_2212

:R_BARB_2064
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @R_BARB_2125
46@ = Char.GetScriptTaskStatus($scplayer, 1466)
if and
  not is_int_lvar_equal_to_constant 46@ == 1
  not is_int_lvar_equal_to_constant 46@ == 0
goto_if_false @R_BARB_2125
Task.StandStill($scplayer, -1)

:R_BARB_2125
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_BARB_2212
47@ = Char.GetScriptTaskStatus($p2, 1466)
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @R_BARB_2212
Task.StandStill($p2, -1)
43@ = Char.GetHeading($scplayer)
43@ += 180.0
Char.SetHeading($p2, 43@)

:R_BARB_2212
goto @R_BARB_2856

:R_BARB_2219
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_BARB_2350
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Task.PlayAnim($scplayer, "PLAYA_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
Task.PlayAnim($p2, "GRLFRD_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
48@ += 1
Char.AddArmor($scplayer, 150)
Char.AddArmor($p2, 100)
Char.SetHealth($scplayer, 200)
Char.SetHealth($p2, 200)
:R_BARB_2350
goto @R_BARB_2856

:R_BARB_2357
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_BARB_2849
43@ = -1.0
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_02")
goto_if_false @R_BARB_2442
43@ = Char.GetAnimCurrentTime($scplayer, "PLAYA_KISS_02")

:R_BARB_2442
if 
  43@ > -1.0
goto_if_false @R_BARB_2664
if 
  43@ == 1.0
goto_if_false @R_BARB_2657
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 36@, 39@, 42@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
48@ = 0

:R_BARB_2657
goto @R_BARB_2849

:R_BARB_2664
Char.ClearTasks($scplayer)
Task.Pause($p2, 0)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 36@, 39@, 42@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
48@ = 0

:R_BARB_2849
goto @R_BARB_2856

:R_BARB_2856
return 

//-------------Mission 148---------------
// Originally: Run-around (2player)

:R_KYLIE
script_name 'R_KYLIE'
gosub @R_KYLIE_47
if 
  has_deatharrest_been_executed 
goto_if_false @R_KYLIE_38
gosub @R_KYLIE_568

:R_KYLIE_38
gosub @R_KYLIE_694
terminate_this_script 

:R_KYLIE_47
Game.HideAllFrontendBlips(True)
Camera.SetFadingColor(0, 0, 0)
$flag_car_normal_carmod = 1
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('RUN_2P')
gosub @R_KYLIE_823
wait 0
Streaming.RequestModel(191)
Streaming.RequestAnimation("KISSING")

:R_KYLIE_113
if or
  not Streaming.HasModelLoaded(191)
  not Streaming.HasAnimationLoaded("KISSING")
goto_if_false @R_KYLIE_151
wait 0
goto @R_KYLIE_113

:R_KYLIE_151
TIMERA = 0
World.ClearArea(-381.5365, -1425.352, 24.9571, 10.0, True)
if 
  not Char.IsDead($scplayer)
goto_if_false @R_KYLIE_330
Char.SetCoordinates($scplayer, -381.3404, -1426.902, 24.9079)
Char.SetHeading($scplayer, 270.0)
$player2 = Player.Create(1, -381.5365, -1425.352, 24.9571)
Game.DoWeaponStuffAtStartOf2PGame
$p2 = Player.GetChar($player2)
Char.SetHeading($p2, 270.0)
Player.SetModel($player2, 191)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Game.LimitTwoPlayerDistance(20.0)
Char.DisableSpeech($p2, True)

:R_KYLIE_330
gosub @R_KYLIE_737
Camera.SetFixedPosition(-376.3109, -1426.436, 27.8865, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-377.2638, -1426.414, 27.5841, SwitchType.JumpCut)
gosub @R_KYLIE_864
Text.PrintNow('RUN_02', 5000, 1)
wait 5000
Text.ClearPrints
gosub @R_KYLIE_778
Text.PrintHelp('RUN_06')

:R_KYLIE_436
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_KYLIE_561
wait 0
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_KYLIE_547
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @R_KYLIE_547
if and
  not Char.HasBeenDamagedByWeapon($scplayer, WeaponType.SprayCan)
  not Char.HasBeenDamagedByWeapon($p2, WeaponType.SprayCan)
goto_if_false @R_KYLIE_537
gosub @R_KYLIE_1084
goto @R_KYLIE_547

:R_KYLIE_537
Char.ClearLastWeaponDamage($scplayer)
Char.ClearLastWeaponDamage($p2)

:R_KYLIE_547
gosub @R_KYLIE_905
goto @R_KYLIE_436

:R_KYLIE_561
goto @R_KYLIE_568

:R_KYLIE_568
if 
  Char.IsDead($scplayer)
goto_if_false @R_KYLIE_600
Text.PrintNow('RUN_03', 4000, 1)

:R_KYLIE_600
if 
  Char.IsDead($p2)
goto_if_false @R_KYLIE_632
Text.PrintNow('RUN_04', 4000, 1)

:R_KYLIE_632
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @R_KYLIE_669
Text.PrintNow('RUN_05', 4000, 1)

:R_KYLIE_669
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 
Player.ClearWantedLevel($player1)
return 

:R_KYLIE_694
$flag_car_normal_carmod = 0
Game.HideAllFrontendBlips(True)
Streaming.MarkModelAsNoLongerNeeded(191)
Streaming.RemoveAnimation("KISSING")
$onmission = 0
Player.ClearWantedLevel($player1)
Mission.Finish
return 

:R_KYLIE_737
Hud.SwitchWidescreen(True)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @R_KYLIE_776
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:R_KYLIE_776
return 

:R_KYLIE_778
Camera.SetInFrontOfPlayer
Hud.SwitchWidescreen(False)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @R_KYLIE_819
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:R_KYLIE_819
Camera.RestoreJumpcut
return 

:R_KYLIE_823
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:R_KYLIE_838
if 
  Camera.GetFadingStatus
goto_if_false @R_KYLIE_862
wait 0
goto @R_KYLIE_838

:R_KYLIE_862
return 

:R_KYLIE_864
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:R_KYLIE_879
if 
  Camera.GetFadingStatus
goto_if_false @R_KYLIE_903
wait 0
goto @R_KYLIE_879

:R_KYLIE_903
return 

:R_KYLIE_905
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @R_KYLIE_920

:R_KYLIE_920
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @R_KYLIE_935

:R_KYLIE_935
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @R_KYLIE_950

:R_KYLIE_950
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @R_KYLIE_986
if 
  not Char.IsDead($p2)
goto_if_false @R_KYLIE_986
Task.Die($p2)

:R_KYLIE_986
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @R_KYLIE_1001

:R_KYLIE_1001
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @R_KYLIE_1037
if 
  not Char.IsDead($scplayer)
goto_if_false @R_KYLIE_1037
Task.Die($scplayer)

:R_KYLIE_1037
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @R_KYLIE_1082
if 
  not Char.IsDead($scplayer)
goto_if_false @R_KYLIE_1082
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:R_KYLIE_1082
return 

:R_KYLIE_1084
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_KYLIE_1443
if 
  48@ == 0
goto_if_false @R_KYLIE_1436
if and
  not Char.IsInAnyCar($scplayer)
  not Char.IsInAnyCar($p2)
goto_if_false @R_KYLIE_1429
if 
  Char.IsStopped($p2)
goto_if_false @R_KYLIE_1429
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($p2, 0.0, 0.5, 0.0)
if 
  Char.LocateStoppedOnFoot3D($scplayer, 34@, 37@, 40@, 1.2, 1.2, 1.0, False)
goto_if_false @R_KYLIE_1402
if 
  49@ == 0
goto_if_false @R_KYLIE_1267
Text.PrintHelpForever('GF_0021')
49@ = 1

:R_KYLIE_1267
34@, 37@, 40@ = Char.GetCoordinates($scplayer)
35@, 38@, 41@ = Char.GetCoordinates($p2)
set_lvar_float_to_lvar_float 43@ = 41@
43@ -= 0.02
set_lvar_float_to_lvar_float 44@ = 41@
44@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 40@ > 43@
  is_float_lvar_greater_than_float_lvar 44@ > 40@
goto_if_false @R_KYLIE_1395
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftShoulder1)
goto_if_false @R_KYLIE_1395
48@ = 1
gosub @R_KYLIE_1445

:R_KYLIE_1395
goto @R_KYLIE_1429

:R_KYLIE_1402
if 
  49@ == 1
goto_if_false @R_KYLIE_1429
Text.ClearHelp
49@ = 0

:R_KYLIE_1429
goto @R_KYLIE_1443

:R_KYLIE_1436
gosub @R_KYLIE_1445

:R_KYLIE_1443
return 

:R_KYLIE_1445
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @R_KYLIE_2856 {caseNum1} 1 {caseLabel1} @R_KYLIE_1508 {caseNum2} 2 {caseLabel2} @R_KYLIE_1705 {caseNum3} 3 {caseLabel3} @R_KYLIE_2219 {caseNum4} 4 {caseLabel4} @R_KYLIE_2357 {caseNum5} -1 {caseLabel5} @R_KYLIE_2856 {caseNum6} -1 {caseLabel6} @R_KYLIE_2856 {caseNum7} -1 {caseLabel7} @R_KYLIE_2856

:R_KYLIE_1508
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_KYLIE_1698
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($p2)
Text.ClearHelp
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene($p2, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 2.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsOff(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsOff(34@, 37@, 40@, 35@, 38@, 41@)
Task.TurnCharToFaceChar($scplayer, $p2)
Task.TurnCharToFaceChar($p2, $scplayer)
48@ += 1

:R_KYLIE_1698
goto @R_KYLIE_2856

:R_KYLIE_1705
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_KYLIE_2212
46@ = Char.GetScriptTaskStatus($scplayer, 1593)
47@ = Char.GetScriptTaskStatus($p2, 1593)
if and
  is_int_lvar_equal_to_constant 46@ == 7
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_KYLIE_2064
Char.SetCollision($scplayer, False)
Char.SetCollision($p2, False)
43@ = Char.GetHeading($scplayer)
43@ += 180.0
Char.SetHeading($p2, 43@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, 0.0)
41@ = World.GetGroundZFor3DCoord(35@, 38@, 41@)
36@, 39@, 42@ = Char.GetCoordinates($p2)
42@ = World.GetGroundZFor3DCoord(36@, 39@, 42@)
Char.SetCoordinates($p2, 35@, 38@, 41@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 1.2, -1.0, 0.5)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.7, 0.5)
if 
  World.IsLineOfSightClear(34@, 37@, 40@, 35@, 38@, 41@, True, True, False, True, False)
goto_if_false @R_KYLIE_2036
Camera.SetFixedPosition(34@, 37@, 40@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(35@, 38@, 41@, SwitchType.JumpCut)

:R_KYLIE_2036
Task.StandStill($scplayer, -1)
Task.StandStill($p2, -1)
48@ += 1
goto @R_KYLIE_2212

:R_KYLIE_2064
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @R_KYLIE_2125
46@ = Char.GetScriptTaskStatus($scplayer, 1466)
if and
  not is_int_lvar_equal_to_constant 46@ == 1
  not is_int_lvar_equal_to_constant 46@ == 0
goto_if_false @R_KYLIE_2125
Task.StandStill($scplayer, -1)

:R_KYLIE_2125
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_KYLIE_2212
47@ = Char.GetScriptTaskStatus($p2, 1466)
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @R_KYLIE_2212
Task.StandStill($p2, -1)
43@ = Char.GetHeading($scplayer)
43@ += 180.0
Char.SetHeading($p2, 43@)

:R_KYLIE_2212
goto @R_KYLIE_2856

:R_KYLIE_2219
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_KYLIE_2350
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Task.PlayAnim($scplayer, "PLAYA_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
Task.PlayAnim($p2, "GRLFRD_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
48@ += 1
Char.AddArmor($scplayer, 150)
Char.AddArmor($p2, 100)
Char.SetHealth($scplayer, 200)
Char.SetHealth($p2, 200)
:R_KYLIE_2350
goto @R_KYLIE_2856

:R_KYLIE_2357
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_KYLIE_2849
43@ = -1.0
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_02")
goto_if_false @R_KYLIE_2442
43@ = Char.GetAnimCurrentTime($scplayer, "PLAYA_KISS_02")

:R_KYLIE_2442
if 
  43@ > -1.0
goto_if_false @R_KYLIE_2664
if 
  43@ == 1.0
goto_if_false @R_KYLIE_2657
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 36@, 39@, 42@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
48@ = 0

:R_KYLIE_2657
goto @R_KYLIE_2849

:R_KYLIE_2664
Char.ClearTasks($scplayer)
Task.Pause($p2, 0)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 36@, 39@, 42@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
48@ = 0

:R_KYLIE_2849
goto @R_KYLIE_2856

:R_KYLIE_2856
return 

//-------------Mission 149---------------
// Originally: Run-around (2player)

:R_COCH
script_name 'R_COCH'
gosub @R_COCH_47
if 
  has_deatharrest_been_executed 
goto_if_false @R_COCH_38
gosub @R_COCH_568

:R_COCH_38
gosub @R_COCH_694
terminate_this_script 

:R_COCH_47
Game.HideAllFrontendBlips(True)
Camera.SetFadingColor(0, 0, 0)
$flag_car_normal_carmod = 1
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('RUN_2P')
gosub @R_COCH_823
wait 0
Streaming.RequestModel(195)
Streaming.RequestAnimation("KISSING")

:R_COCH_113
if or
  not Streaming.HasModelLoaded(195)
  not Streaming.HasAnimationLoaded("KISSING")
goto_if_false @R_COCH_151
wait 0
goto @R_COCH_113

:R_COCH_151
TIMERA = 0
World.ClearArea(2401.595, -1720.311, 12.6137, 10.0, True)
if 
  not Char.IsDead($scplayer)
goto_if_false @R_COCH_330
Char.SetCoordinates($scplayer, 2401.595, -1720.311, 12.6137)
Char.SetHeading($scplayer, 180.0)
$player2 = Player.Create(1, 2403.405, -1720.305, 12.6171)
Game.DoWeaponStuffAtStartOf2PGame
$p2 = Player.GetChar($player2)
Char.SetHeading($p2, 180.0)
Player.SetModel($player2, 195)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Game.LimitTwoPlayerDistance(20.0)
Char.DisableSpeech($p2, True)

:R_COCH_330
gosub @R_COCH_737
Camera.SetFixedPosition(2402.685, -1728.01, 15.5387, 0.0, 0.0, 0.0)
Camera.PointAtPoint(2402.698, -1727.024, 15.3723, SwitchType.JumpCut)
gosub @R_COCH_864
Text.PrintNow('RUN_02', 5000, 1)
wait 5000
Text.ClearPrints
gosub @R_COCH_778
Text.PrintHelp('RUN_06')

:R_COCH_436
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_COCH_561
wait 0
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_COCH_547
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @R_COCH_547
if and
  not Char.HasBeenDamagedByWeapon($scplayer, WeaponType.SprayCan)
  not Char.HasBeenDamagedByWeapon($p2, WeaponType.SprayCan)
goto_if_false @R_COCH_537
gosub @R_COCH_1084
goto @R_COCH_547

:R_COCH_537
Char.ClearLastWeaponDamage($scplayer)
Char.ClearLastWeaponDamage($p2)

:R_COCH_547
gosub @R_COCH_905
goto @R_COCH_436

:R_COCH_561
goto @R_COCH_568

:R_COCH_568
if 
  Char.IsDead($scplayer)
goto_if_false @R_COCH_600
Text.PrintNow('RUN_03', 4000, 1)

:R_COCH_600
if 
  Char.IsDead($p2)
goto_if_false @R_COCH_632
Text.PrintNow('RUN_04', 4000, 1)

:R_COCH_632
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @R_COCH_669
Text.PrintNow('RUN_05', 4000, 1)

:R_COCH_669
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 
Player.ClearWantedLevel($player1)
return 

:R_COCH_694
$flag_car_normal_carmod = 0
Game.HideAllFrontendBlips(True)
Streaming.MarkModelAsNoLongerNeeded(195)
Streaming.RemoveAnimation("KISSING")
$onmission = 0
Player.ClearWantedLevel($player1)
Mission.Finish
return 

:R_COCH_737
Hud.SwitchWidescreen(True)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @R_COCH_776
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:R_COCH_776
return 

:R_COCH_778
Camera.SetInFrontOfPlayer
Hud.SwitchWidescreen(False)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @R_COCH_819
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:R_COCH_819
Camera.RestoreJumpcut
return 

:R_COCH_823
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:R_COCH_838
if 
  Camera.GetFadingStatus
goto_if_false @R_COCH_862
wait 0
goto @R_COCH_838

:R_COCH_862
return 

:R_COCH_864
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:R_COCH_879
if 
  Camera.GetFadingStatus
goto_if_false @R_COCH_903
wait 0
goto @R_COCH_879

:R_COCH_903
return 

:R_COCH_905
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @R_COCH_920

:R_COCH_920
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @R_COCH_935

:R_COCH_935
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @R_COCH_950

:R_COCH_950
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @R_COCH_986
if 
  not Char.IsDead($p2)
goto_if_false @R_COCH_986
Task.Die($p2)

:R_COCH_986
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @R_COCH_1001

:R_COCH_1001
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @R_COCH_1037
if 
  not Char.IsDead($scplayer)
goto_if_false @R_COCH_1037
Task.Die($scplayer)

:R_COCH_1037
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @R_COCH_1082
if 
  not Char.IsDead($scplayer)
goto_if_false @R_COCH_1082
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:R_COCH_1082
return 

:R_COCH_1084
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_COCH_1443
if 
  48@ == 0
goto_if_false @R_COCH_1436
if and
  not Char.IsInAnyCar($scplayer)
  not Char.IsInAnyCar($p2)
goto_if_false @R_COCH_1429
if 
  Char.IsStopped($p2)
goto_if_false @R_COCH_1429
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($p2, 0.0, 0.5, 0.0)
if 
  Char.LocateStoppedOnFoot3D($scplayer, 34@, 37@, 40@, 1.2, 1.2, 1.0, False)
goto_if_false @R_COCH_1402
if 
  49@ == 0
goto_if_false @R_COCH_1267
Text.PrintHelpForever('GF_0021')
49@ = 1

:R_COCH_1267
34@, 37@, 40@ = Char.GetCoordinates($scplayer)
35@, 38@, 41@ = Char.GetCoordinates($p2)
set_lvar_float_to_lvar_float 43@ = 41@
43@ -= 0.02
set_lvar_float_to_lvar_float 44@ = 41@
44@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 40@ > 43@
  is_float_lvar_greater_than_float_lvar 44@ > 40@
goto_if_false @R_COCH_1395
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftShoulder1)
goto_if_false @R_COCH_1395
48@ = 1
gosub @R_COCH_1445

:R_COCH_1395
goto @R_COCH_1429

:R_COCH_1402
if 
  49@ == 1
goto_if_false @R_COCH_1429
Text.ClearHelp
49@ = 0

:R_COCH_1429
goto @R_COCH_1443

:R_COCH_1436
gosub @R_COCH_1445

:R_COCH_1443
return 

:R_COCH_1445
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @R_COCH_2856 {caseNum1} 1 {caseLabel1} @R_COCH_1508 {caseNum2} 2 {caseLabel2} @R_COCH_1705 {caseNum3} 3 {caseLabel3} @R_COCH_2219 {caseNum4} 4 {caseLabel4} @R_COCH_2357 {caseNum5} -1 {caseLabel5} @R_COCH_2856 {caseNum6} -1 {caseLabel6} @R_COCH_2856 {caseNum7} -1 {caseLabel7} @R_COCH_2856

:R_COCH_1508
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_COCH_1698
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($p2)
Text.ClearHelp
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene($p2, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 2.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsOff(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsOff(34@, 37@, 40@, 35@, 38@, 41@)
Task.TurnCharToFaceChar($scplayer, $p2)
Task.TurnCharToFaceChar($p2, $scplayer)
48@ += 1

:R_COCH_1698
goto @R_COCH_2856

:R_COCH_1705
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_COCH_2212
46@ = Char.GetScriptTaskStatus($scplayer, 1593)
47@ = Char.GetScriptTaskStatus($p2, 1593)
if and
  is_int_lvar_equal_to_constant 46@ == 7
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_COCH_2064
Char.SetCollision($scplayer, False)
Char.SetCollision($p2, False)
43@ = Char.GetHeading($scplayer)
43@ += 180.0
Char.SetHeading($p2, 43@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, 0.0)
41@ = World.GetGroundZFor3DCoord(35@, 38@, 41@)
36@, 39@, 42@ = Char.GetCoordinates($p2)
42@ = World.GetGroundZFor3DCoord(36@, 39@, 42@)
Char.SetCoordinates($p2, 35@, 38@, 41@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 1.2, -1.0, 0.5)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.7, 0.5)
if 
  World.IsLineOfSightClear(34@, 37@, 40@, 35@, 38@, 41@, True, True, False, True, False)
goto_if_false @R_COCH_2036
Camera.SetFixedPosition(34@, 37@, 40@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(35@, 38@, 41@, SwitchType.JumpCut)

:R_COCH_2036
Task.StandStill($scplayer, -1)
Task.StandStill($p2, -1)
48@ += 1
goto @R_COCH_2212

:R_COCH_2064
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @R_COCH_2125
46@ = Char.GetScriptTaskStatus($scplayer, 1466)
if and
  not is_int_lvar_equal_to_constant 46@ == 1
  not is_int_lvar_equal_to_constant 46@ == 0
goto_if_false @R_COCH_2125
Task.StandStill($scplayer, -1)

:R_COCH_2125
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_COCH_2212
47@ = Char.GetScriptTaskStatus($p2, 1466)
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @R_COCH_2212
Task.StandStill($p2, -1)
43@ = Char.GetHeading($scplayer)
43@ += 180.0
Char.SetHeading($p2, 43@)

:R_COCH_2212
goto @R_COCH_2856

:R_COCH_2219
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_COCH_2350
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Task.PlayAnim($scplayer, "PLAYA_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
Task.PlayAnim($p2, "GRLFRD_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
48@ += 1
Char.AddArmor($scplayer, 150)
Char.AddArmor($p2, 100)
Char.SetHealth($scplayer, 200)
Char.SetHealth($p2, 200)
:R_COCH_2350
goto @R_COCH_2856

:R_COCH_2357
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_COCH_2849
43@ = -1.0
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_02")
goto_if_false @R_COCH_2442
43@ = Char.GetAnimCurrentTime($scplayer, "PLAYA_KISS_02")

:R_COCH_2442
if 
  43@ > -1.0
goto_if_false @R_COCH_2664
if 
  43@ == 1.0
goto_if_false @R_COCH_2657
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 36@, 39@, 42@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
48@ = 0

:R_COCH_2657
goto @R_COCH_2849

:R_COCH_2664
Char.ClearTasks($scplayer)
Task.Pause($p2, 0)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 36@, 39@, 42@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
48@ = 0

:R_COCH_2849
goto @R_COCH_2856

:R_COCH_2856
return 

//-------------Mission 150---------------
// Originally: Run-around (2player)

:R_MICH
script_name 'R_MICH'
gosub @R_MICH_47
if 
  has_deatharrest_been_executed 
goto_if_false @R_MICH_38
gosub @R_MICH_568

:R_MICH_38
gosub @R_MICH_694
terminate_this_script 

:R_MICH_47
Game.HideAllFrontendBlips(True)
Camera.SetFadingColor(0, 0, 0)
$flag_car_normal_carmod = 1
$onmission = 1
Stat.RegisterMissionGiven
Text.LoadMissionText('RUN_2P')
gosub @R_MICH_823
wait 0
Streaming.RequestModel(192)
Streaming.RequestAnimation("KISSING")

:R_MICH_113
if or
  not Streaming.HasModelLoaded(192)
  not Streaming.HasAnimationLoaded("KISSING")
goto_if_false @R_MICH_151
wait 0
goto @R_MICH_113

:R_MICH_151
TIMERA = 0
World.ClearArea(-1804.144, 1199.773, 24.1172, 10.0, True)
if 
  not Char.IsDead($scplayer)
goto_if_false @R_MICH_330
Char.SetCoordinates($scplayer, -1804.144, 1199.773, 24.1172)
Char.SetHeading($scplayer, 184.5768)
$player2 = Player.Create(1, -1802.808, 1199.912, 24.1172)
Game.DoWeaponStuffAtStartOf2PGame
$p2 = Player.GetChar($player2)
Char.SetHeading($p2, 184.5768)
Player.SetModel($player2, 192)
Game.SetRelationship(RelationshipType.Hate, PedType.Gang1, PedType.Player2)
Game.SetRelationship(RelationshipType.Like, PedType.Gang2, PedType.Player2)
Game.SetPlayerPlayerTargeting(False)
Char.SetNeverTargeted($scplayer, True)
Char.SetNeverTargeted($p2, True)
Camera.SetTwoPlayerMode(2)
Game.LimitTwoPlayerDistance(20.0)
Char.DisableSpeech($p2, True)

:R_MICH_330
gosub @R_MICH_737
Camera.SetFixedPosition(-1802.895, 1194.637, 27.1164, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1802.969, 1195.568, 26.7584, SwitchType.JumpCut)
gosub @R_MICH_864
Text.PrintNow('RUN_02', 5000, 1)
wait 5000
Text.ClearPrints
gosub @R_MICH_778
Text.PrintHelp('RUN_06')

:R_MICH_436
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_MICH_561
wait 0
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_MICH_547
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @R_MICH_547
if and
  not Char.HasBeenDamagedByWeapon($scplayer, WeaponType.SprayCan)
  not Char.HasBeenDamagedByWeapon($p2, WeaponType.SprayCan)
goto_if_false @R_MICH_537
gosub @R_MICH_1084
goto @R_MICH_547

:R_MICH_537
Char.ClearLastWeaponDamage($scplayer)
Char.ClearLastWeaponDamage($p2)

:R_MICH_547
gosub @R_MICH_905
goto @R_MICH_436

:R_MICH_561
goto @R_MICH_568

:R_MICH_568
if 
  Char.IsDead($scplayer)
goto_if_false @R_MICH_600
Text.PrintNow('RUN_03', 4000, 1)

:R_MICH_600
if 
  Char.IsDead($p2)
goto_if_false @R_MICH_632
Text.PrintNow('RUN_04', 4000, 1)

:R_MICH_632
if and
  Char.IsDead($p2)
  Char.IsDead($scplayer)
goto_if_false @R_MICH_669
Text.PrintNow('RUN_05', 4000, 1)

:R_MICH_669
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)
return 
Player.ClearWantedLevel($player1)
return 

:R_MICH_694
$flag_car_normal_carmod = 0
Game.HideAllFrontendBlips(True)
Streaming.MarkModelAsNoLongerNeeded(192)
Streaming.RemoveAnimation("KISSING")
$onmission = 0
Player.ClearWantedLevel($player1)
Mission.Finish
return 

:R_MICH_737
Hud.SwitchWidescreen(True)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @R_MICH_776
Player.SetControl($player1, False)
Player.SetControl($player2, False)

:R_MICH_776
return 

:R_MICH_778
Camera.SetInFrontOfPlayer
Hud.SwitchWidescreen(False)
if and
  Player.IsPlaying($player1)
  Player.IsPlaying($player2)
goto_if_false @R_MICH_819
Player.SetControl($player1, True)
Player.SetControl($player2, True)

:R_MICH_819
Camera.RestoreJumpcut
return 

:R_MICH_823
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.Out)

:R_MICH_838
if 
  Camera.GetFadingStatus
goto_if_false @R_MICH_862
wait 0
goto @R_MICH_838

:R_MICH_862
return 

:R_MICH_864
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(2000, Fade.In)

:R_MICH_879
if 
  Camera.GetFadingStatus
goto_if_false @R_MICH_903
wait 0
goto @R_MICH_879

:R_MICH_903
return 

:R_MICH_905
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @R_MICH_920

:R_MICH_920
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @R_MICH_935

:R_MICH_935
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @R_MICH_950

:R_MICH_950
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @R_MICH_986
if 
  not Char.IsDead($p2)
goto_if_false @R_MICH_986
Task.Die($p2)

:R_MICH_986
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @R_MICH_1001

:R_MICH_1001
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @R_MICH_1037
if 
  not Char.IsDead($scplayer)
goto_if_false @R_MICH_1037
Task.Die($scplayer)

:R_MICH_1037
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @R_MICH_1082
if 
  not Char.IsDead($scplayer)
goto_if_false @R_MICH_1082
Char.AddArmor($scplayer, 100)
Player.IncreaseMaxHealth($player1, 100)

:R_MICH_1082
return 

:R_MICH_1084
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_MICH_1443
if 
  48@ == 0
goto_if_false @R_MICH_1436
if and
  not Char.IsInAnyCar($scplayer)
  not Char.IsInAnyCar($p2)
goto_if_false @R_MICH_1429
if 
  Char.IsStopped($p2)
goto_if_false @R_MICH_1429
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($p2, 0.0, 0.5, 0.0)
if 
  Char.LocateStoppedOnFoot3D($scplayer, 34@, 37@, 40@, 1.2, 1.2, 1.0, False)
goto_if_false @R_MICH_1402
if 
  49@ == 0
goto_if_false @R_MICH_1267
Text.PrintHelpForever('GF_0021')
49@ = 1

:R_MICH_1267
34@, 37@, 40@ = Char.GetCoordinates($scplayer)
35@, 38@, 41@ = Char.GetCoordinates($p2)
set_lvar_float_to_lvar_float 43@ = 41@
43@ -= 0.02
set_lvar_float_to_lvar_float 44@ = 41@
44@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 40@ > 43@
  is_float_lvar_greater_than_float_lvar 44@ > 40@
goto_if_false @R_MICH_1395
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
  Pad.IsButtonPressed(PadId.Pad2, Button.LeftShoulder1)
goto_if_false @R_MICH_1395
48@ = 1
gosub @R_MICH_1445

:R_MICH_1395
goto @R_MICH_1429

:R_MICH_1402
if 
  49@ == 1
goto_if_false @R_MICH_1429
Text.ClearHelp
49@ = 0

:R_MICH_1429
goto @R_MICH_1443

:R_MICH_1436
gosub @R_MICH_1445

:R_MICH_1443
return 

:R_MICH_1445
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @R_MICH_2856 {caseNum1} 1 {caseLabel1} @R_MICH_1508 {caseNum2} 2 {caseLabel2} @R_MICH_1705 {caseNum3} 3 {caseLabel3} @R_MICH_2219 {caseNum4} 4 {caseLabel4} @R_MICH_2357 {caseNum5} -1 {caseLabel5} @R_MICH_2856 {caseNum6} -1 {caseLabel6} @R_MICH_2856 {caseNum7} -1 {caseLabel7} @R_MICH_2856

:R_MICH_1508
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_MICH_1698
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately($p2)
Text.ClearHelp
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene($p2, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 2.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsOff(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsOff(34@, 37@, 40@, 35@, 38@, 41@)
Task.TurnCharToFaceChar($scplayer, $p2)
Task.TurnCharToFaceChar($p2, $scplayer)
48@ += 1

:R_MICH_1698
goto @R_MICH_2856

:R_MICH_1705
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_MICH_2212
46@ = Char.GetScriptTaskStatus($scplayer, 1593)
47@ = Char.GetScriptTaskStatus($p2, 1593)
if and
  is_int_lvar_equal_to_constant 46@ == 7
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_MICH_2064
Char.SetCollision($scplayer, False)
Char.SetCollision($p2, False)
43@ = Char.GetHeading($scplayer)
43@ += 180.0
Char.SetHeading($p2, 43@)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, 0.0)
41@ = World.GetGroundZFor3DCoord(35@, 38@, 41@)
36@, 39@, 42@ = Char.GetCoordinates($p2)
42@ = World.GetGroundZFor3DCoord(36@, 39@, 42@)
Char.SetCoordinates($p2, 35@, 38@, 41@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 1.2, -1.0, 0.5)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.7, 0.5)
if 
  World.IsLineOfSightClear(34@, 37@, 40@, 35@, 38@, 41@, True, True, False, True, False)
goto_if_false @R_MICH_2036
Camera.SetFixedPosition(34@, 37@, 40@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(35@, 38@, 41@, SwitchType.JumpCut)

:R_MICH_2036
Task.StandStill($scplayer, -1)
Task.StandStill($p2, -1)
48@ += 1
goto @R_MICH_2212

:R_MICH_2064
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @R_MICH_2125
46@ = Char.GetScriptTaskStatus($scplayer, 1466)
if and
  not is_int_lvar_equal_to_constant 46@ == 1
  not is_int_lvar_equal_to_constant 46@ == 0
goto_if_false @R_MICH_2125
Task.StandStill($scplayer, -1)

:R_MICH_2125
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @R_MICH_2212
47@ = Char.GetScriptTaskStatus($p2, 1466)
if and
  not is_int_lvar_equal_to_constant 47@ == 1
  not is_int_lvar_equal_to_constant 47@ == 0
goto_if_false @R_MICH_2212
Task.StandStill($p2, -1)
43@ = Char.GetHeading($scplayer)
43@ += 180.0
Char.SetHeading($p2, 43@)

:R_MICH_2212
goto @R_MICH_2856

:R_MICH_2219
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_MICH_2350
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Task.PlayAnim($scplayer, "PLAYA_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
Task.PlayAnim($p2, "GRLFRD_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
48@ += 1
Char.AddArmor($scplayer, 150)
Char.AddArmor($p2, 100)
Char.SetHealth($scplayer, 200)
Char.SetHealth($p2, 200)
:R_MICH_2350
goto @R_MICH_2856

:R_MICH_2357
if and
  not Char.IsDead($scplayer)
  not Char.IsDead($p2)
goto_if_false @R_MICH_2849
43@ = -1.0
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_02")
goto_if_false @R_MICH_2442
43@ = Char.GetAnimCurrentTime($scplayer, "PLAYA_KISS_02")

:R_MICH_2442
if 
  43@ > -1.0
goto_if_false @R_MICH_2664
if 
  43@ == 1.0
goto_if_false @R_MICH_2657
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 36@, 39@, 42@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
48@ = 0

:R_MICH_2657
goto @R_MICH_2849

:R_MICH_2664
Char.ClearTasks($scplayer)
Task.Pause($p2, 0)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene($p2, False)
Char.SetCoordinates($p2, 36@, 39@, 42@)
34@, 37@, 40@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
35@, 38@, 41@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Path.SwitchPedRoadsBackToOriginal(34@, 37@, 40@, 35@, 38@, 41@)
Char.SetCollision($scplayer, True)
Char.SetCollision($p2, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
48@ = 0

:R_MICH_2849
goto @R_MICH_2856

:R_MICH_2856
return 

//-------------External script 0 (PLAYER_PARACHUTE)---------------

:PLCHUTE
script_name 'PLCHUTE'
Streaming.RequestModel(371)

:PLCHUTE_16
if 
  not Streaming.HasModelLoaded(371)
goto_if_false @PLCHUTE_43
wait 0
goto @PLCHUTE_16

:PLCHUTE_43
if 
  not Char.IsDead($scplayer)
goto_if_false @PLCHUTE_59

:PLCHUTE_59
$player_landed = 0
$player_fall_state = 0
$player_has_parachute = 0
if 
  $player_landed == 999
goto_if_false @PLCHUTE_118
$para_max_Vz = Pickup.Create(371, PickupType.Once, $player_x, $player_y, $player_z)

:PLCHUTE_118
wait 0
if 
  not Char.IsDead($scplayer)
goto_if_false @PLCHUTE_5455
if 
  not Game.Is2PlayerGameGoingOn
goto_if_false @PLCHUTE_5455
if 
  $player_fall_state <> 0
goto_if_false @PLCHUTE_176
Pad.SetPlayerCycleWeaponButton($player1, False)

:PLCHUTE_176
if 
  $player_has_parachute > 0
goto_if_false @PLCHUTE_219
if 
  not Char.HasGotWeapon($scplayer, WeaponType.Parachute)
goto_if_false @PLCHUTE_219
gosub @PLCHUTE_5521

:PLCHUTE_219
if 
  $player_has_parachute == 0
goto_if_false @PLCHUTE_274
if 
  Char.HasGotWeapon($scplayer, WeaponType.Parachute)
goto_if_false @PLCHUTE_274
Streaming.RequestModel(#PARACHUTE)
$player_has_parachute = 1
$player_landed = 0

:PLCHUTE_274
if 
  $player_has_parachute == 1
goto_if_false @PLCHUTE_377
if 
  Streaming.HasModelLoaded(#PARACHUTE)
goto_if_false @PLCHUTE_377
17@ = Object.Create(#PARACHUTE, $player_x, $player_y, $player_z)
Object.AttachToChar(17@, $scplayer, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
Object.SetVisible(17@, False)
$player_has_parachute = 2

:PLCHUTE_377
if and
  $player_has_parachute == 2
  $player_fall_state == 1
goto_if_false @PLCHUTE_409
$player_has_parachute = 3

:PLCHUTE_409
if and
  $player_fall_state == 0
  $player_has_parachute > 0
goto_if_false @PLCHUTE_565
if 
  Char.IsInAir($scplayer)
goto_if_false @PLCHUTE_565
$para_Vx, $para_Vy, $para_Vz = Char.GetVelocity($scplayer)
if 
  -10.0 > $para_Vz
goto_if_false @PLCHUTE_565
7@ = Char.GetHeightAboveGround($scplayer)
if 
  7@ > 20.0
goto_if_false @PLCHUTE_565
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1037)
$player_fall_state = 1
Char.SetCurrentWeapon($scplayer, WeaponType.Parachute)
0@ = 0
$stunt_timer = 0.0

:PLCHUTE_565
if 
  $player_fall_state == 1
goto_if_false @PLCHUTE_2386
if 
  0@ == 0
goto_if_false @PLCHUTE_608
0@ = 2

:PLCHUTE_608
if 
  0@ == 2
goto_if_false @PLCHUTE_729
27@ = Char.GetScriptTaskStatus($scplayer, 2066)
if 
  is_int_lvar_equal_to_constant 27@ == 7
goto_if_false @PLCHUTE_729
Task.PlayAnimNonInterruptable($scplayer, "FALL_SKYDIVE", "PED", 1.0, True, False, False, False, -1)
Streaming.RequestAnimation("PARACHUTE")
15@ = 1
1@ = Char.GetHeading($scplayer)
0@ = 3

:PLCHUTE_729
if 
  0@ == 3
goto_if_false @PLCHUTE_2386
27@ = Char.GetScriptTaskStatus($scplayer, 2066)
if 
  is_int_lvar_equal_to_constant 27@ == 7
goto_if_false @PLCHUTE_815
Task.PlayAnimNonInterruptable($scplayer, "FALL_SKYDIVE", "PED", 1.0, True, False, False, False, -1)

:PLCHUTE_815
7@ = Char.GetHeightAboveGround($scplayer)
if and
  100.0 > 7@
  7@ > 60.0
goto_if_false @PLCHUTE_912
if 
  Streaming.HasAnimationLoaded("PARACHUTE")
goto_if_false @PLCHUTE_912
if 
  $onmission == 0
goto_if_false @PLCHUTE_912
Text.PrintNow('PARA_01', 1000, 1)

:PLCHUTE_912
10@, 11@, 12@, 12@ = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if 
  $para_control_off == 1
goto_if_false @PLCHUTE_960
10@ = 0
11@ = 0

:PLCHUTE_960
cset_lvar_float_to_lvar_int 21@ =# 10@
21@ /= 4.267
sub_float_lvar_from_float_lvar 21@ -= 2@
21@ /= 20.0
add_float_lvar_to_float_lvar 2@ += 21@
set_lvar_float_to_lvar_float 21@ = 2@
21@ /= 5.0
sub_float_lvar_from_float_lvar 1@ -= 21@
if 
  1@ > 180.0
goto_if_false @PLCHUTE_1061
1@ -= 360.0

:PLCHUTE_1061
if 
  -180.0 > 1@
goto_if_false @PLCHUTE_1092
1@ += 360.0

:PLCHUTE_1092
cset_lvar_float_to_lvar_int 22@ =# 11@
22@ /= 4.267
sub_float_lvar_from_float_lvar 22@ -= 3@
22@ /= 20.0
add_float_lvar_to_float_lvar 3@ += 22@
8@, 9@, $para_Vz = Char.GetVelocity($scplayer)
if 
  is_float_var_greater_than_float_var $para_freefall_Vz > $para_Vz
goto_if_false @PLCHUTE_1177
set_var_float_to_var_float $para_Vz = $para_freefall_Vz

:PLCHUTE_1177
if 
  is_float_var_greater_than_float_var $stunt_timer > $para_Vz
goto_if_false @PLCHUTE_1204
set_var_float_to_var_float $stunt_timer = $para_Vz

:PLCHUTE_1204
if 
  is_float_var_greater_than_float_var $para_freefall_Vz > $stunt_timer
goto_if_false @PLCHUTE_1231
set_var_float_to_var_float $stunt_timer = $para_freefall_Vz

:PLCHUTE_1231
if and
  is_float_var_greater_than_float_var $para_Vz > $stunt_timer
  $player_fall_safe <> 1
goto_if_false @PLCHUTE_1407
if 
  not Char.IsInWater($scplayer)
goto_if_false @PLCHUTE_1361
if 
  -20.0 > $stunt_timer
goto_if_false @PLCHUTE_1308
$player_fall_state = 2
goto @PLCHUTE_1354

:PLCHUTE_1308
Task.PlayAnimNonInterruptable($scplayer, "FALL_SKYDIVE", "PED", 1.0, True, False, False, False, 100)
$player_fall_state = 7

:PLCHUTE_1354
goto @PLCHUTE_1407

:PLCHUTE_1361
Task.PlayAnimNonInterruptable($scplayer, "FALL_SKYDIVE", "PED", 1.0, True, False, False, False, 100)
$player_fall_state = 7

:PLCHUTE_1407
set_lvar_float_to_lvar_float 4@ = 3@
4@ /= 30.0
mult_float_lvar_by_float_var 4@ *= $para_freefall_Vy
$para_Vx = Math.Sin(1@)
$para_Vy = Math.Cos(1@)
mult_float_var_by_float_lvar $para_Vx *= 4@
mult_float_var_by_float_lvar $para_Vy *= 4@
$para_Vy *= -1.0
add_float_var_to_float_var $para_Vy += $para_default_Vy
set_lvar_float_to_lvar_float 21@ = 8@
sub_float_var_from_float_lvar 21@ -= $para_Vx
21@ *= 0.01
set_var_float_to_lvar_float $para_Vx = 8@
sub_float_lvar_from_float_var $para_Vx -= 21@
set_lvar_float_to_lvar_float 21@ = 9@
sub_float_var_from_float_lvar 21@ -= $para_Vy
21@ *= 0.01
set_var_float_to_lvar_float $para_Vy = 9@
sub_float_lvar_from_float_var $para_Vy -= 21@
set_lvar_int_to_lvar_int 12@ = 10@
set_lvar_int_to_lvar_int 13@ = 11@
abs_lvar_int 12@
abs_lvar_int 13@
if or
  12@ > 40
  13@ > 40
goto_if_false @PLCHUTE_2109
if 
  is_int_lvar_greater_than_int_lvar 12@ > 13@
goto_if_false @PLCHUTE_1872
if 
  10@ >= 0
goto_if_false @PLCHUTE_1751
if 
  15@ <> 2
goto_if_false @PLCHUTE_1751
if 
  Streaming.HasAnimationLoaded("PARACHUTE")
goto_if_false @PLCHUTE_1744
Task.PlayAnimNonInterruptable($scplayer, "FALL_SKYDIVE_R", "PARACHUTE", 1.0, True, False, False, True, -2)

:PLCHUTE_1744
15@ = 2

:PLCHUTE_1751
if 
  0 > 10@
goto_if_false @PLCHUTE_1865
if 
  15@ <> 3
goto_if_false @PLCHUTE_1865
if 
  Streaming.HasAnimationLoaded("PARACHUTE")
goto_if_false @PLCHUTE_1858
Task.PlayAnimNonInterruptable($scplayer, "FALL_SKYDIVE_L", "PARACHUTE", 1.0, True, False, False, True, -2)

:PLCHUTE_1858
15@ = 3

:PLCHUTE_1865
goto @PLCHUTE_2102

:PLCHUTE_1872
if 
  11@ >= 0
goto_if_false @PLCHUTE_1984
if 
  15@ <> 4
goto_if_false @PLCHUTE_1984
if 
  Streaming.HasAnimationLoaded("PARACHUTE")
goto_if_false @PLCHUTE_1977
Task.PlayAnimNonInterruptable($scplayer, "FALL_SKYDIVE", "PARACHUTE", 1.0, True, False, False, True, -2)

:PLCHUTE_1977
15@ = 4

:PLCHUTE_1984
if 
  0 > 11@
goto_if_false @PLCHUTE_2102
if 
  15@ <> 5
goto_if_false @PLCHUTE_2102
if 
  Streaming.HasAnimationLoaded("PARACHUTE")
goto_if_false @PLCHUTE_2095
Task.PlayAnimNonInterruptable($scplayer, "FALL_SKYDIVE_ACCEL", "PARACHUTE", 1.0, True, False, False, True, -2)

:PLCHUTE_2095
15@ = 5

:PLCHUTE_2102
goto @PLCHUTE_2203

:PLCHUTE_2109
if 
  15@ <> 1
goto_if_false @PLCHUTE_2203
if 
  Streaming.HasAnimationLoaded("PARACHUTE")
goto_if_false @PLCHUTE_2203
Task.PlayAnimNonInterruptable($scplayer, "FALL_SKYDIVE", "PARACHUTE", 1.0, True, False, False, True, -2)
15@ = 1

:PLCHUTE_2203
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
  $para_force_chute_open == 1
goto_if_false @PLCHUTE_2386
if 
  $player_fall_safe <> 1
goto_if_false @PLCHUTE_2386
if 
  Streaming.HasAnimationLoaded("PARACHUTE")
goto_if_false @PLCHUTE_2386
if and
  $player_has_parachute == 3
  $para_control_off == 0
goto_if_false @PLCHUTE_2386
Task.PlayAnimNonInterruptable($scplayer, "PARA_OPEN", "PARACHUTE", 8.0, False, False, False, True, -2)
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1038)
set_var_int_to_lvar_int $para_pickup = TIMERA
$para_pickup += 1100
$player_fall_state = 3
0@ = 0

:PLCHUTE_2386
if 
  $player_fall_state == 2
goto_if_false @PLCHUTE_2504
if 
  Streaming.HasAnimationLoaded("PARACHUTE")
goto_if_false @PLCHUTE_2492
Char.SetHeading($scplayer, 1@)
Task.DieNamedAnim($scplayer, "FALL_SKYDIVE_DIE", "PARACHUTE", 1000.0, 0)
Audio.ReportMissionAudioEventAtChar($scplayer, 1189)
goto @PLCHUTE_2497

:PLCHUTE_2492
Task.Die($scplayer)

:PLCHUTE_2497
gosub @PLCHUTE_5521

:PLCHUTE_2504
if 
  $player_fall_state == 3
goto_if_false @PLCHUTE_4781
if 
  $para_pickup > 0
goto_if_false @PLCHUTE_2586
if 
  is_int_lvar_greater_than_int_var TIMERA > $para_pickup
goto_if_false @PLCHUTE_2586
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1039)
$para_pickup = 0

:PLCHUTE_2586
if 
  0@ == 0
goto_if_false @PLCHUTE_2689
set_lvar_float_to_lvar_float 25@ = 3@
25@ /= 500.0
set_lvar_float_to_lvar_float 26@ = 2@
26@ /= 500.0
set_lvar_int_to_lvar_int 18@ = TIMERA
set_lvar_int_to_lvar_int 19@ = TIMERA
set_lvar_float_to_lvar_float 5@ = 4@
5@ *= -1.0
set_lvar_float_to_var_float 6@ = $para_Vz
0@ = 1

:PLCHUTE_2689
if 
  0@ == 1
goto_if_false @PLCHUTE_2856
set_lvar_int_to_lvar_int 10@ = TIMERA
sub_int_lvar_from_int_lvar 10@ -= 19@
if 
  500 > 10@
goto_if_false @PLCHUTE_2829
set_lvar_int_to_lvar_int 10@ = TIMERA
sub_int_lvar_from_int_lvar 10@ -= 18@
set_lvar_int_to_lvar_int 18@ = TIMERA
cset_lvar_float_to_lvar_int 21@ =# 10@
set_lvar_float_to_lvar_float 22@ = 25@
mult_float_lvar_by_float_lvar 22@ *= 21@
set_lvar_float_to_lvar_float 23@ = 26@
mult_float_lvar_by_float_lvar 23@ *= 21@
sub_float_lvar_from_float_lvar 3@ -= 22@
sub_float_lvar_from_float_lvar 2@ -= 23@
goto @PLCHUTE_2856

:PLCHUTE_2829
2@ = 0.0
3@ = 0.0
0@ = 2

:PLCHUTE_2856
if 
  0@ == 2
goto_if_false @PLCHUTE_2964
if 
  Object.DoesExist(17@)
goto_if_false @PLCHUTE_2964
Object.SetVisible(17@, True)
Object.SetScale(17@, 0.0)
set_lvar_int_to_lvar_int 19@ = TIMERA
wait 0
Object.PlayAnim(17@, "PARA_OPEN_O", "PARACHUTE", 1000.0, False, True)
0@ = 3

:PLCHUTE_2964
if 
  0@ == 3
goto_if_false @PLCHUTE_3067
set_lvar_int_to_lvar_int 10@ = TIMERA
sub_int_lvar_from_int_lvar 10@ -= 19@
if 
  500 > 10@
goto_if_false @PLCHUTE_3050
cset_lvar_float_to_lvar_int 21@ =# 10@
21@ /= 500.0
Object.SetScale(17@, 21@)
goto @PLCHUTE_3067

:PLCHUTE_3050
Object.SetScale(17@, 1.0)
0@ = 4

:PLCHUTE_3067
if 
  0@ == 5
goto_if_false @PLCHUTE_3136
20@ = Object.Create(#PARA_COLLISION, 0.0, 0.0, 0.0)
Object.SetVisible(20@, False)
Object.SetDynamic(20@, True)
Object.SetRecordsCollisions(20@, True)
0@ = 6

:PLCHUTE_3136
if 
  0@ == 6
goto_if_false @PLCHUTE_4354
10@, 11@, 12@, 12@ = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if 
  $para_control_off == 1
goto_if_false @PLCHUTE_3202
10@ = 0
11@ = 0

:PLCHUTE_3202
cset_lvar_float_to_lvar_int 21@ =# 10@
21@ /= 4.267
sub_float_lvar_from_float_lvar 21@ -= 2@
21@ /= 20.0
add_float_lvar_to_float_lvar 2@ += 21@
set_lvar_float_to_lvar_float 21@ = 2@
21@ /= 15.0
sub_float_lvar_from_float_lvar 1@ -= 21@
if 
  1@ > 180.0
goto_if_false @PLCHUTE_3303
1@ -= 360.0

:PLCHUTE_3303
if 
  -180.0 > 1@
goto_if_false @PLCHUTE_3334
1@ += 360.0

:PLCHUTE_3334
$para_Vx = Math.Sin(1@)
$para_Vy = Math.Cos(1@)
mult_float_var_by_float_var $para_Vx *= $para_float_Vy
mult_float_var_by_float_var $para_Vy *= $para_float_Vy
$para_Vx *= -1.0
set_lvar_int_to_lvar_int 12@ = 10@
set_lvar_int_to_lvar_int 13@ = 11@
abs_lvar_int 12@
abs_lvar_int 13@
if or
  12@ > 40
  13@ > 40
goto_if_false @PLCHUTE_4066
if 
  is_int_lvar_greater_than_int_lvar 12@ > 13@
goto_if_false @PLCHUTE_3741
set_lvar_float_to_var_float 21@ = $para_float_Vz
sub_float_var_from_float_lvar 21@ -= $para_Vz
21@ /= 20.0
add_float_lvar_to_float_var $para_Vz += 21@
if 
  10@ >= 0
goto_if_false @PLCHUTE_3607
if 
  15@ <> 2
goto_if_false @PLCHUTE_3607
Task.PlayAnimNonInterruptable($scplayer, "PARA_STEERR", "PARACHUTE", 1.0, True, False, False, True, -2)
Object.PlayAnim(17@, "PARA_STEERR_O", "PARACHUTE", 1.0, True, True)
15@ = 2

:PLCHUTE_3607
if 
  0 > 10@
goto_if_false @PLCHUTE_3734
if 
  15@ <> 3
goto_if_false @PLCHUTE_3734
Task.PlayAnimNonInterruptable($scplayer, "PARA_STEERL", "PARACHUTE", 1.0, True, False, False, True, -2)
Object.PlayAnim(17@, "PARA_STEERL_O", "PARACHUTE", 1.0, True, True)
15@ = 3

:PLCHUTE_3734
goto @PLCHUTE_4059

:PLCHUTE_3741
if 
  11@ >= 0
goto_if_false @PLCHUTE_3900
set_lvar_float_to_var_float 21@ = $para_flare_Vz
sub_float_var_from_float_lvar 21@ -= $para_Vz
21@ /= 20.0
add_float_lvar_to_float_var $para_Vz += 21@
if 
  15@ <> 4
goto_if_false @PLCHUTE_3900
Task.PlayAnimNonInterruptable($scplayer, "PARA_DECEL", "PARACHUTE", 1.0, True, False, False, True, -2)
Object.PlayAnim(17@, "PARA_DECEL_O", "PARACHUTE", 1.0, True, True)
15@ = 4

:PLCHUTE_3900
if 
  0 > 11@
goto_if_false @PLCHUTE_4059
set_lvar_float_to_var_float 21@ = $para_float_Vz
sub_float_var_from_float_lvar 21@ -= $para_Vz
21@ /= 20.0
add_float_lvar_to_float_var $para_Vz += 21@
if 
  15@ <> 5
goto_if_false @PLCHUTE_4059
Task.PlayAnimNonInterruptable($scplayer, "PARA_FLOAT", "PARACHUTE", 1.0, True, False, False, True, -2)
Object.PlayAnim(17@, "PARA_FLOAT_O", "PARACHUTE", 1.0, True, True)
15@ = 5

:PLCHUTE_4059
goto @PLCHUTE_4225

:PLCHUTE_4066
set_lvar_float_to_var_float 21@ = $para_float_Vz
sub_float_var_from_float_lvar 21@ -= $para_Vz
21@ /= 20.0
add_float_lvar_to_float_var $para_Vz += 21@
if 
  15@ <> 5
goto_if_false @PLCHUTE_4225
if 
  15@ <> 1
goto_if_false @PLCHUTE_4225
Task.PlayAnimNonInterruptable($scplayer, "PARA_FLOAT", "PARACHUTE", 1.0, True, False, False, True, -2)
Object.PlayAnim(17@, "PARA_FLOAT_O", "PARACHUTE", 1.0, True, True)
15@ = 1

:PLCHUTE_4225
$x, $y, $z = Object.GetCoordinates(17@)
Object.SetCoordinatesAndVelocity(20@, $x, $y, $z)
if 
  Object.HasCollidedWithAnything(20@)
goto_if_false @PLCHUTE_4318
Object.PlayAnim(17@, "PARA_RIP_LOOP_O", "PARACHUTE", 8.0, True, True)
0@ = 7

:PLCHUTE_4318
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @PLCHUTE_4354
Char.ClearTasks($scplayer)
$player_fall_state = 6
$player_landed = 3

:PLCHUTE_4354
if 
  Object.DoesExist(17@)
goto_if_false @PLCHUTE_4593
if 
  Object.IsPlayingAnim(17@, "PARA_OPEN_O")
goto_if_false @PLCHUTE_4593
21@ = Object.GetAnimCurrentTime(17@, "PARA_OPEN_O")
set_lvar_float_to_lvar_float 22@ = 6@
sub_float_var_from_float_lvar 22@ -= $para_float_Vz
set_lvar_float_to_lvar_float 23@ = 22@
mult_float_lvar_by_float_lvar 23@ *= 21@
set_var_float_to_lvar_float $para_Vz = 6@
sub_float_lvar_from_float_var $para_Vz -= 23@
set_lvar_float_to_lvar_float 22@ = 5@
sub_float_var_from_float_lvar 22@ -= $para_float_Vy
set_lvar_float_to_lvar_float 23@ = 22@
mult_float_lvar_by_float_lvar 23@ *= 21@
set_lvar_float_to_lvar_float 4@ = 5@
sub_float_lvar_from_float_lvar 4@ -= 23@
$para_Vx = Math.Sin(1@)
$para_Vy = Math.Cos(1@)
mult_float_var_by_float_lvar $para_Vx *= 4@
mult_float_var_by_float_lvar $para_Vy *= 4@
$para_Vx *= -1.0
if and
  21@ == 1.0
  0@ == 4
goto_if_false @PLCHUTE_4593
0@ = 5

:PLCHUTE_4593
if 
  not Char.IsDead($scplayer)
goto_if_false @PLCHUTE_4781
if 
  Char.IsInWater($scplayer)
goto_if_false @PLCHUTE_4732
Task.PlayAnimNonInterruptable($scplayer, "PARA_LAND_WATER", "PARACHUTE", 8.0, True, True, False, False, 1000)
Object.PlayAnim(17@, "PARA_LAND_WATER_O", "PARACHUTE", 1000.0, False, True)
$player_fall_state = 5
0@ = 0

:PLCHUTE_4732
21@, 21@, 23@ = Char.GetVelocity($scplayer)
if 
  23@ > -0.1
goto_if_false @PLCHUTE_4781
$player_fall_state = 4
0@ = 0

:PLCHUTE_4781
if 
  $player_fall_state == 4
goto_if_false @PLCHUTE_5271
if 
  0@ == 0
goto_if_false @PLCHUTE_5168
$player_landed = 1
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
$player_z -= 1.0
Char.SetCoordinates($scplayer, $player_x, $player_y, $player_z)
Char.SetRotation($scplayer, 0.0, 0.0, 1@)
if 
  -10.0 > $para_Vz
goto_if_false @PLCHUTE_4922
$player_fall_state = 2
0@ = 0
goto @PLCHUTE_5092

:PLCHUTE_4922
if 
  -4.0 > $para_Vz
goto_if_false @PLCHUTE_5047
14@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "FALL_FRONT", "PED", 20.0, False, False, False, True, 700)
Task.PlayAnimNonInterruptable(-1, "GETUP_FRONT", "PED", 8.0, False, True, False, False, -2)
Sequence.Close(14@)
Char.PerformSequence($scplayer, 14@)
Sequence.Clear(14@)
goto @PLCHUTE_5085

:PLCHUTE_5047
Task.PlayAnimNonInterruptable($scplayer, "RUN_PLAYER", "PED", 8.0, True, True, False, False, 1000)

:PLCHUTE_5085
0@ = 1

:PLCHUTE_5092
Object.PlayAnim(17@, "PARA_LAND_O", "PARACHUTE", 1000.0, False, True)
Object.Detach(17@, 0.0, 0.0, 0.0, False)
set_lvar_int_to_lvar_int 18@ = TIMERA
18@ += 1000

:PLCHUTE_5168
if 
  0@ == 1
goto_if_false @PLCHUTE_5271
if 
  Object.IsPlayingAnim(17@, "PARA_LAND_O")
goto_if_false @PLCHUTE_5271
21@ = Object.GetAnimCurrentTime(17@, "PARA_LAND_O")
if 
  21@ == 1.0
goto_if_false @PLCHUTE_5271
$player_landed = 2
gosub @PLCHUTE_5521

:PLCHUTE_5271
if 
  $player_fall_state == 5
goto_if_false @PLCHUTE_5328
$player_landed = 1
if 
  0@ == 0
goto_if_false @PLCHUTE_5328
$player_landed = 2
gosub @PLCHUTE_5521

:PLCHUTE_5328
if and
  $player_fall_state > 0
  4 > $player_fall_state
goto_if_false @PLCHUTE_5405
if 
  not Char.IsDead($scplayer)
goto_if_false @PLCHUTE_5405
Char.SetVelocity($scplayer, $para_Vx, $para_Vy, $para_Vz)
Char.SetHeading($scplayer, 1@)
Char.SetRotation($scplayer, 3@, 2@, 1@)

:PLCHUTE_5405
if 
  $player_fall_state == 6
goto_if_false @PLCHUTE_5430
gosub @PLCHUTE_5521

:PLCHUTE_5430
if 
  $player_fall_state == 7
goto_if_false @PLCHUTE_5455
gosub @PLCHUTE_5462

:PLCHUTE_5455
goto @PLCHUTE_118

:PLCHUTE_5462
$player_fall_state = 0
0@ = 0
Streaming.MarkModelAsNoLongerNeeded(#PARACHUTE)
Streaming.RemoveAnimation("PARACHUTE")
Char.SetRotation($scplayer, 0.0, 0.0, 1@)
Pad.SetPlayerCycleWeaponButton($player1, True)
return 

:PLCHUTE_5521
Object.Detach(17@, 0.0, 0.0, 0.0, False)
Object.RemoveElegantly(17@)
Object.Delete(20@)
Char.RemoveWeapon($scplayer, WeaponType.Parachute)
$player_fall_state = 0
$player_has_parachute = 0
0@ = 0
Streaming.MarkModelAsNoLongerNeeded(#PARACHUTE)
Streaming.RemoveAnimation("PARACHUTE")
Streaming.MarkModelAsNoLongerNeeded(371)
Char.SetRotation($scplayer, 0.0, 0.0, 1@)
Pad.SetPlayerCycleWeaponButton($player1, True)
terminate_this_script 

//-------------External script 1 (PARACHUTE)---------------

:PARACH
script_name 'PARACH'
$para_anim_time = 0
31@ = Math.RandomIntInRange(0, 6)
11@ = 10
17@ = 0
12@ = 0
$para_vel_change = 0
if 
  12@ == 100
goto_if_false @PARACH_122
0@ = Pickup.Create(#BRIEFCASE, PickupType.Once, 32.1527, 2239.726, 125.672)
8@ = Char.Create(PedType.CivMale, 61, 32.1527, 2239.726, 125.672)

:PARACH_122
if 
  not Char.IsDead(8@)
goto_if_false @PARACH_146
30@ = Char.GetHeightAboveGround(8@)

:PARACH_146
wait 0
set_var_int_to_lvar_int $ai_landed = 17@
if 
  $para_vel_change == 2
goto_if_false @PARACH_202
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_202
gosub @PARACH_6417

:PARACH_202
if 
  0@ <> -1
goto_if_false @PARACH_293
if 
  11@ == 10
goto_if_false @PARACH_293
if 
  0@ <> -1
goto_if_false @PARACH_286
if 
  Pickup.HasBeenCollected(0@)
goto_if_false @PARACH_279
11@ = 0

:PARACH_279
goto @PARACH_293

:PARACH_286
11@ = 0

:PARACH_293
if 
  0@ == -1
goto_if_false @PARACH_336
if 
  11@ == 10
goto_if_false @PARACH_336
11@ = 0

:PARACH_336
if 
  11@ == 0
goto_if_false @PARACH_384
Streaming.RequestAnimation("PARACHUTE")
Streaming.RequestModel(#PARACHUTE)
Streaming.RequestModel(#PARA_PACK)
11@ = 1

:PARACH_384
if 
  11@ == 1
goto_if_false @PARACH_443
if and
  Streaming.HasAnimationLoaded("PARACHUTE")
  Streaming.HasModelLoaded(#PARACHUTE)
  Streaming.HasModelLoaded(#PARA_PACK)
goto_if_false @PARACH_443
11@ = 2

:PARACH_443
if 
  11@ == 2
goto_if_false @PARACH_654
if 
  not Char.IsDead(8@)
goto_if_false @PARACH_491
$player_x, $player_y, $player_z = Char.GetCoordinates(8@)

:PARACH_491
9@ = Object.Create(#PARACHUTE, $player_x, $player_y, $player_z)
10@ = Object.Create(#PARA_PACK, $player_x, $player_y, $player_z)
Object.SetVisible(9@, False)
if 
  not Char.IsDead(8@)
goto_if_false @PARACH_647
Object.AttachToChar(9@, 8@, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
Object.SetRotation(10@, 90.0, 90.0, 90.0)
Task.PickUpObject(8@, 10@, -0.11, -0.05, 0.0, 1, 16, "NULL", "NULL", 0)

:PARACH_647
11@ = 3

:PARACH_654
if 
  11@ == 3
goto_if_false @PARACH_6053
if 
  not Char.IsDead(8@)
goto_if_false @PARACH_6053
if 
  31@ == 0
goto_if_false @PARACH_756
30@ = Char.GetHeightAboveGround(8@)
if 
  5.0 > 30@
goto_if_false @PARACH_749
31@ = 2
goto @PARACH_756

:PARACH_749
31@ = 5

:PARACH_756
31@ -= 1
if 
  not is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_789
gosub @PARACH_6503

:PARACH_789
if 
  Char.IsInAnyCar(8@)
goto_if_false @PARACH_819
$para_give_heading = 1
goto @PARACH_826

:PARACH_819
$para_give_heading = 0

:PARACH_826
if 
  not Char.IsDead(8@)
goto_if_false @PARACH_1186
if or
  Char.IsInAir(8@)
  $para_give_heading == 0
goto_if_false @PARACH_1186
if and
  17@ == 0
  14@ == 0
  30@ > 5.0
goto_if_false @PARACH_1186
if 
  $para_give_heading == 0
goto_if_false @PARACH_988
$p_in_air = Math.Sin($para_give_speed)
mult_float_var_by_float_var $p_in_air *= $force_chute_open
$p_in_air *= -1.0
$x_car_speed = Math.Cos($para_give_speed)
mult_float_var_by_float_var $x_car_speed *= $force_chute_open
$has_freefall_started, $has_freefall_started, $has_freefall_started = Char.GetVelocity(8@)
Char.SetVelocity(8@, $p_in_air, $x_car_speed, $has_freefall_started)

:PARACH_988
17@ = 1
$para_anim_time = 1
set_lvar_int_to_lvar_int 18@ = TIMERA
27@ = Char.GetHeading(8@)
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_1071
$para_cam_y_change = 3.0
$end_cam_z = -2.0
16@ = 0
gosub @PARACH_6083

:PARACH_1071
if 
  7@ == 0
goto_if_false @PARACH_1141
Task.PlayAnimNonInterruptable(8@, "FALL_SKYDIVE", "PARACHUTE", 1.0, True, False, False, False, -1)
goto @PARACH_1186

:PARACH_1141
Task.PlayAnimNonInterruptable(8@, "FALL_SKYDIVE", "PARACHUTE", 1000.0, True, False, False, False, -1)

:PARACH_1186
if 
  17@ == 1
goto_if_false @PARACH_2838
if 
  Char.IsInWater(8@)
goto_if_false @PARACH_1268
Task.DieNamedAnim(8@, "FALL_SKYDIVE_DIE", "PARACHUTE", 1000.0, 0)
17@ = 2

:PARACH_1268
if 
  3.0 > 30@
goto_if_false @PARACH_1337
Task.DieNamedAnim(8@, "FALL_SKYDIVE_DIE", "PARACHUTE", 1000.0, 0)
17@ = 2

:PARACH_1337
$has_freefall_started, $has_freefall_started, $tempf1 = Char.GetVelocity(8@)
if 
  is_float_lvar_greater_than_float_var 1@ > $tempf1
goto_if_false @PARACH_1378
set_var_float_to_lvar_float $tempf1 = 1@

:PARACH_1378
set_var_int_to_lvar_int $para_turny_rate = TIMERA
sub_int_lvar_from_int_var $para_turny_rate -= 18@
cset_lvar_float_to_var_int 28@ =# $para_turny_rate
28@ /= 2000.0
if 
  28@ > 1.0
goto_if_false @PARACH_1443
28@ = 1.0

:PARACH_1443
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_1490
if 
  1.0 >= 28@
goto_if_false @PARACH_1490
gosub @PARACH_6307

:PARACH_1490
if 
  28@ == 1.0
goto_if_false @PARACH_2431
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_2413
$para_turny_rate, $tempv1, $tempv2, $tempv2 = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
cset_var_float_to_var_int $tempf3 =# $para_turny_rate
$tempf3 /= 256.0
add_float_var_to_float_lvar 25@ += $tempf3
set_var_float_to_lvar_float $tempf4 = 25@
$tempf4 /= 30.0
if 
  -1.6 > $tempf4
goto_if_false @PARACH_1621
$tempf4 = -1.6

:PARACH_1621
if 
  $tempf4 > 1.6
goto_if_false @PARACH_1652
$tempf4 = 1.6

:PARACH_1652
sub_float_var_from_float_lvar 27@ -= $tempf4
if 
  $tempf3 == 0.0
goto_if_false @PARACH_1712
if 
  25@ <> 0.0
goto_if_false @PARACH_1712
25@ *= 0.95

:PARACH_1712
set_var_float_to_lvar_float $tempf2 = 26@
$tempf2 *= 6.0
cset_var_float_to_var_int $tempf5 =# $tempv1
sub_float_var_from_float_var $tempf5 -= $tempf2
$tempf5 /= 256.0
add_float_var_to_float_lvar 26@ += $tempf5
if 
  -30.0 > 26@
goto_if_false @PARACH_1795
26@ = -30.0

:PARACH_1795
if 
  26@ > 30.0
goto_if_false @PARACH_1826
26@ = 30.0

:PARACH_1826
if 
  $tempf5 == 0.0
goto_if_false @PARACH_1878
if 
  26@ <> 0.0
goto_if_false @PARACH_1878
26@ *= 0.97

:PARACH_1878
$x = Math.Sin(27@)
$y = Math.Cos(27@)
set_var_float_to_lvar_float $tempf3 = 26@
$tempf3 /= -5.0
mult_float_var_by_float_lvar $x *= 2@
mult_float_var_by_float_var $x *= $tempf3
$x *= -1.0
mult_float_var_by_float_lvar $y *= 2@
mult_float_var_by_float_var $y *= $tempf3
$tempf2, $tempf3, $has_freefall_started = Char.GetVelocity(8@)
$x *= -1.0
add_float_var_to_float_var $x += $tempf2
$x *= 0.1
sub_float_var_from_float_var $tempf2 -= $x
$y *= -1.0
add_float_var_to_float_var $y += $tempf3
$y *= 0.1
sub_float_var_from_float_var $tempf3 -= $y
Char.SetVelocity(8@, $tempf2, $tempf3, $tempf1)
Char.SetRotation(8@, 26@, 0.0, 27@)
if 
  -100 > $tempv1
goto_if_false @PARACH_2171
if 
  15@ <> 4
goto_if_false @PARACH_2164
15@ = 4
Task.PlayAnimNonInterruptable(8@, "FALL_SKYDIVE_ACCEL", "PARACHUTE", 1.0, True, False, False, True, -2)

:PARACH_2164
goto @PARACH_2406

:PARACH_2171
if and
  $para_turny_rate == 0
  15@ <> 0
goto_if_false @PARACH_2248
15@ = 0
Task.PlayAnimNonInterruptable(8@, "FALL_SKYDIVE", "PARACHUTE", 1.0, True, False, False, True, -2)

:PARACH_2248
if and
  0 > $para_turny_rate
  15@ <> -1
goto_if_false @PARACH_2327
15@ = -1
Task.PlayAnimNonInterruptable(8@, "FALL_SKYDIVE_L", "PARACHUTE", 1.0, True, False, False, True, -2)

:PARACH_2327
if and
  $para_turny_rate > 0
  15@ <> 1
goto_if_false @PARACH_2406
15@ = 1
Task.PlayAnimNonInterruptable(8@, "FALL_SKYDIVE_R", "PARACHUTE", 1.0, True, False, False, True, -2)

:PARACH_2406
goto @PARACH_2431

:PARACH_2413
Char.SetVelocity(8@, 0.0, 0.0, 1@)

:PARACH_2431
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
  $end_cam_y == 1
goto_if_false @PARACH_2652
if 
  $end_cam_y <> 2
goto_if_false @PARACH_2652
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_2652
17@ = 0
15@ = 0
14@ = 1
Object.SetVisible(9@, True)
wait 0
if 
  not Char.IsDead(8@)
goto_if_false @PARACH_2652
Task.PlayAnimNonInterruptable(8@, "PARA_OPEN", "PARACHUTE", 1000.0, False, False, False, True, -2)
Object.PlayAnim(9@, "PARA_OPEN_O", "PARACHUTE", 1000.0, False, True)
$has_freefall_started, $has_freefall_started, 24@ = Char.GetVelocity(8@)
set_var_float_to_lvar_float $right_angle_check = 24@
$right_angle_check += 5.0

:PARACH_2652
if and
  12@ == 1
  not is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_2838
17@ = 0
15@ = 0
14@ = 1
Object.SetVisible(9@, True)
wait 0
if 
  not Char.IsDead(8@)
goto_if_false @PARACH_2838
Task.PlayAnimNonInterruptable(8@, "PARA_OPEN", "PARACHUTE", 1000.0, False, False, False, True, -2)
Object.PlayAnim(9@, "PARA_OPEN_O", "PARACHUTE", 1000.0, False, True)
$has_freefall_started, $has_freefall_started, 24@ = Char.GetVelocity(8@)
set_var_float_to_lvar_float $right_angle_check = 24@
$right_angle_check += 5.0

:PARACH_2838
if 
  14@ == 1
goto_if_false @PARACH_3568
if 
  not Char.IsDead(8@)
goto_if_false @PARACH_3540
if 
  Char.IsPlayingAnim(8@, "PARA_OPEN")
goto_if_false @PARACH_3540
$ai_target_z = Char.GetAnimCurrentTime(8@, "PARA_OPEN")
$player_x, $player_y, $player_z = Char.GetCoordinates(8@)
$ai_target_z *= 2.0
$ai_target_z -= 0.5
if 
  $ai_target_z > 1.0
goto_if_false @PARACH_2983
$ai_target_z = 1.0

:PARACH_2983
if 
  0.0 > $ai_target_z
goto_if_false @PARACH_3014
$ai_target_z = 0.0

:PARACH_3014
if and
  0.25 >= $ai_target_z
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_3120
$para_cam_y_change = -2.0
$end_cam_z = -2.0
set_lvar_float_to_var_float 28@ = $ai_target_z
28@ *= 4.0
if 
  16@ == 1
goto_if_false @PARACH_3113
16@ = 2
gosub @PARACH_6083

:PARACH_3113
gosub @PARACH_6307

:PARACH_3120
if and
  $ai_target_z > 0.25
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_3236
$para_cam_y_change = 5.0
$end_cam_z = -5.0
set_lvar_float_to_var_float 28@ = $ai_target_z
28@ -= 0.25
28@ *= 1.333
if 
  16@ == 2
goto_if_false @PARACH_3229
16@ = 3
gosub @PARACH_6083

:PARACH_3229
gosub @PARACH_6307

:PARACH_3236
set_var_float_to_var_float $has_freefall_started = $right_angle_check
mult_float_var_by_float_var $has_freefall_started *= $ai_target_z
$has_freefall_started *= -1.0
add_float_lvar_to_float_var $has_freefall_started += 24@
$tempf2, $tempf3, $tempf1 = Char.GetVelocity(8@)
$x = Math.Sin(27@)
$y = Math.Cos(27@)
mult_float_var_by_float_lvar $x *= 5@
$x *= -1.0
mult_float_var_by_float_lvar $y *= 5@
$x *= -1.0
add_float_var_to_float_var $x += $tempf2
$x *= 0.01
sub_float_var_from_float_var $tempf2 -= $x
$y *= -1.0
add_float_var_to_float_var $y += $tempf3
$y *= 0.01
sub_float_var_from_float_var $tempf3 -= $y
Char.SetVelocity(8@, $tempf2, $tempf3, $has_freefall_started)
if 
  $ai_target_z == 1.0
goto_if_false @PARACH_3540
Task.PlayAnimNonInterruptable(8@, "PARA_FLOAT", "PARACHUTE", 2.0, True, False, False, True, -2)
Object.PlayAnim(9@, "PARA_FLOAT_O", "PARACHUTE", 2.0, True, True)
14@ = 2
set_lvar_float_to_var_float 29@ = $has_freefall_started
25@ = 0.0

:PARACH_3540
if 
  3.0 > 30@
goto_if_false @PARACH_3568
14@ = 3

:PARACH_3568
if 
  14@ == 2
goto_if_false @PARACH_5824
if and
  13@ <> 5
  Char.IsInWater(8@)
goto_if_false @PARACH_3616
13@ = 4

:PARACH_3616
if 
  13@ == 0
goto_if_false @PARACH_4766
$x = Math.Sin(27@)
$y = Math.Cos(27@)
$tempv2 = 0
$tempv3 = 0
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_3706
$para_turny_rate, $tempv1, $tempv2, $tempv3 = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
goto @PARACH_3728

:PARACH_3706
set_var_int_to_lvar_int $para_turny_rate = 22@
$tempv1 = 0
$tempv2 = 0

:PARACH_3728
if and
  $tempv2 <> 0
  $tempv3 <> 0
goto_if_false @PARACH_3753

:PARACH_3753
if or
  $tempv1 > 100
  12@ == 2
goto_if_false @PARACH_3811
mult_float_var_by_float_lvar $x *= 6@
$x *= -1.0
mult_float_var_by_float_lvar $y *= 6@
goto @PARACH_3837

:PARACH_3811
mult_float_var_by_float_lvar $x *= 5@
$x *= -1.0
mult_float_var_by_float_lvar $y *= 5@

:PARACH_3837
set_var_int_to_var_int $tempv3 = $tempv1
Char.SetRotation(8@, 0.0, 25@, 27@)
if 
  30@ > 3.0
goto_if_false @PARACH_4574
cset_var_float_to_var_int $tempf5 =# $para_turny_rate
$tempf5 /= 128.0
add_float_var_to_float_lvar 25@ += $tempf5
if 
  25@ > 45.0
goto_if_false @PARACH_3939
25@ = 45.0

:PARACH_3939
if 
  -45.0 > 25@
goto_if_false @PARACH_3970
25@ = -45.0

:PARACH_3970
set_var_float_to_lvar_float $tempf4 = 25@
$tempf4 /= 15.0
sub_float_var_from_float_lvar 27@ -= $tempf4
if 
  $tempf5 == 0.0
goto_if_false @PARACH_4048
if 
  25@ <> 0.0
goto_if_false @PARACH_4048
25@ *= 0.95

:PARACH_4048
Char.SetRotation(8@, 0.0, 25@, 27@)
if or
  $tempv1 > 100
  12@ == 2
goto_if_false @PARACH_4211
set_var_float_to_lvar_float $z = 4@
if 
  15@ <> 4
goto_if_false @PARACH_4204
15@ = 4
Task.PlayAnimNonInterruptable(8@, "PARA_DECEL", "PARACHUTE", 1.0, True, False, False, True, -2)
Object.PlayAnim(9@, "PARA_DECEL_O", "PARACHUTE", 1.0, True, True)

:PARACH_4204
goto @PARACH_4574

:PARACH_4211
set_var_float_to_lvar_float $z = 3@
if and
  $tempf5 == 0.0
  15@ <> 0
goto_if_false @PARACH_4336
15@ = 0
Task.PlayAnimNonInterruptable(8@, "PARA_FLOAT", "PARACHUTE", 1.0, True, False, False, True, -2)
Object.PlayAnim(9@, "PARA_FLOAT_O", "PARACHUTE", 1.0, True, True)

:PARACH_4336
if and
  0.0 > $tempf5
  15@ <> -1
goto_if_false @PARACH_4455
15@ = -1
Task.PlayAnimNonInterruptable(8@, "PARA_STEERL", "PARACHUTE", 1.0, True, False, False, True, -2)
Object.PlayAnim(9@, "PARA_STEERL_O", "PARACHUTE", 1.0, True, True)

:PARACH_4455
if and
  $tempf5 > 0.0
  15@ <> 1
goto_if_false @PARACH_4574
15@ = 1
Task.PlayAnimNonInterruptable(8@, "PARA_STEERR", "PARACHUTE", 1.0, True, False, False, True, -2)
Object.PlayAnim(9@, "PARA_STEERR_O", "PARACHUTE", 1.0, True, True)

:PARACH_4574
$tempf2, $tempf3, $has_freefall_started = Char.GetVelocity(8@)
$x *= -1.0
add_float_var_to_float_var $x += $tempf2
$x *= 0.1
sub_float_var_from_float_var $tempf2 -= $x
$y *= -1.0
add_float_var_to_float_var $y += $tempf3
$y *= 0.1
sub_float_var_from_float_var $tempf3 -= $y
$z *= -1.0
add_float_lvar_to_float_var $z += 29@
$z *= 0.2
set_var_float_to_lvar_float $has_freefall_started = 29@
sub_float_var_from_float_var $has_freefall_started -= $z
set_lvar_float_to_var_float 29@ = $has_freefall_started
Char.SetVelocity(8@, $tempf2, $tempf3, $has_freefall_started)
mult_float_var_by_float_var $tempf2 *= $tempf2
mult_float_var_by_float_var $tempf3 *= $tempf3
set_var_float_to_var_float $tempf4 = $tempf2
add_float_var_to_float_var $tempf4 += $tempf3
$tempf4 = Math.Sqrt($tempf4)

:PARACH_4766
if 
  3.0 > 30@
goto_if_false @PARACH_5104
Char.SetHeading(8@, 27@)
25@ = 0.0
$x = Math.Sin(27@)
$y = Math.Cos(27@)
mult_float_var_by_float_lvar $x *= 6@
$x *= -1.0
mult_float_var_by_float_lvar $y *= 6@
Char.SetVelocity(8@, $x, $y, -2.0)
if 
  13@ == 0
goto_if_false @PARACH_5012
13@ = 1
Task.PlayAnimNonInterruptable(8@, "PARA_DECEL", "PARACHUTE", 4.0, True, False, False, True, -2)
Object.PlayAnim(9@, "PARA_DECEL_O", "PARACHUTE", 4.0, True, True)
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_5012
set_var_float_to_var_float $para_cam_y_change = $initial_y
set_var_float_to_var_float $end_cam_z = $player_freefall
gosub @PARACH_6083

:PARACH_5012
if and
  13@ == 1
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_5104
28@ = 3.0
sub_float_lvar_from_float_lvar 28@ -= 30@
28@ *= 0.75
if 
  28@ > 1.0
goto_if_false @PARACH_5097
28@ = 1.0

:PARACH_5097
gosub @PARACH_6307

:PARACH_5104
if and
  1.5 > 30@
  13@ == 1
goto_if_false @PARACH_5219
13@ = 2
Task.PlayAnimNonInterruptable(8@, "PARA_LAND", "PARACHUTE", 1000.0, False, True, False, True, -2)
Object.PlayAnim(9@, "PARA_LAND_O", "PARACHUTE", 1000.0, False, True)

:PARACH_5219
if 
  13@ == 2
goto_if_false @PARACH_5496
if 
  Char.IsPlayingAnim(8@, "PARA_LAND")
goto_if_false @PARACH_5496
$ai_target_z = Char.GetAnimCurrentTime(8@, "PARA_LAND")
if 
  $ai_target_z == 1.0
goto_if_false @PARACH_5496
Object.Delete(9@)
Object.Delete(10@)
$player_x, $player_y, $player_z = World.GetDeadCharPickupCoords(8@)
if 
  0@ <> -1
goto_if_false @PARACH_5351
Pickup.Remove(0@)

:PARACH_5351
Task.Pause(8@, 1)
Char.ClearTasksImmediately(8@)
14@ = 3
Char.SetRotation(8@, 0.0, 0.0, 0.0)
Char.SetHeading(8@, 27@)
$player_x, $player_y, $player_z = Char.GetCoordinates(8@)
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_5438
$para_vel_change = 1

:PARACH_5438
if 
  $onmission == 1
goto_if_false @PARACH_5463
gosub @PARACH_6417

:PARACH_5463
0@ = 0
0@ = Pickup.Create(#BRIEFCASE, PickupType.Once, $player_x, $player_y, $player_z)
13@ = 3

:PARACH_5496
if 
  13@ == 4
goto_if_false @PARACH_5623
Task.PlayAnimNonInterruptable(8@, "PARA_LAND_WATER", "PARACHUTE", 1000.0, False, True, False, True, -2)
Object.PlayAnim(9@, "PARA_LAND_WATER_O", "PARACHUTE", 1.0, False, True)
13@ = 5
$ai_target_z = 0.0

:PARACH_5623
if 
  13@ == 5
goto_if_false @PARACH_5824
if 
  Char.IsPlayingAnim(8@, "PARA_LAND_WATER")
goto_if_false @PARACH_5699
$ai_target_z = Char.GetAnimCurrentTime(8@, "PARA_LAND_WATER")

:PARACH_5699
if 
  $ai_target_z == 1.0
goto_if_false @PARACH_5824
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_5746
$para_vel_change = 1

:PARACH_5746
Object.Delete(9@)
Object.Delete(10@)
13@ = 3
Task.Pause(8@, 1)
Char.ClearTasksImmediately(8@)
14@ = 3
Char.SetRotation(8@, 0.0, 0.0, 0.0)
Char.SetHeading(8@, 27@)
$player_x, $player_y, $player_z = Char.GetCoordinates(8@)

:PARACH_5824
if and
  14@ == 3
  13@ == 0
goto_if_false @PARACH_5935
Object.PlayAnim(9@, "PARA_LAND_O", "PARACHUTE", 1.0, False, True)
Task.DieNamedAnim(8@, "FALL_SKYDIVE_DIE", "PARACHUTE", 1000.0, 0)
13@ = 1

:PARACH_5935
if 
  14@ == 3
goto_if_false @PARACH_6053
if 
  Pickup.HasBeenCollected(0@)
goto_if_false @PARACH_6004
11@ = 10
17@ = 0
14@ = 0
7@ = 0
13@ = 0

:PARACH_6004
if 
  not Char.LocateAnyMeans3D(8@, $player_x, $player_y, $player_z, 50.0, 50.0, 50.0, False)
goto_if_false @PARACH_6053
goto @PARACH_6417

:PARACH_6053
if 
  Char.IsDead(8@)
goto_if_false @PARACH_6076
goto @PARACH_6417

:PARACH_6076
goto @PARACH_146

:PARACH_6083
$x, $y, $z = Camera.GetActiveCoordinates()
$player_x, $player_y, $player_z = Char.GetCoordinates(8@)
set_var_float_to_var_float $tempf2 = $player_x
sub_float_var_from_float_var $tempf2 -= $x
set_var_float_to_var_float $tempf3 = $player_y
sub_float_var_from_float_var $tempf3 -= $y
set_var_float_to_var_float $initial_z = $z
sub_float_var_from_float_var $initial_z -= $player_z
set_var_float_to_var_float $has_freefall_started = $tempf2
mult_float_var_by_float_var $has_freefall_started *= $tempf2
set_var_float_to_var_float $tempf1 = $tempf3
mult_float_var_by_float_var $tempf1 *= $tempf3
set_var_float_to_var_float $start_cam_z = $has_freefall_started
add_float_var_to_float_var $start_cam_z += $tempf1
$start_cam_z *= -1.0
$start_cam_z = Math.Sqrt($start_cam_z)
set_var_float_to_var_float $start_cam_y = $para_cam_y_change
sub_float_var_from_float_var $start_cam_y -= $initial_z
$start_cam_z *= -1.0
set_var_float_to_var_float $para_cam_z_change = $end_cam_z
sub_float_var_from_float_var $para_cam_z_change -= $start_cam_z
if 
  16@ == 0
goto_if_false @PARACH_6305
16@ = 1
set_var_float_to_var_float $player_freefall = $start_cam_z
set_var_float_to_var_float $initial_y = $initial_z

:PARACH_6305
return 

:PARACH_6307
$player_x, $player_y, $player_z = Char.GetCoordinates(8@)
set_var_float_to_lvar_float $tempf2 = 28@
$tempf2 *= 180.0
$tempf2 = Math.Cos($tempf2)
$tempf2 -= 1.0
$tempf2 *= -0.5
set_var_float_to_var_float $z = $start_cam_y
mult_float_var_by_float_var $z *= $tempf2
add_float_var_to_float_var $z += $initial_z
set_var_float_to_var_float $y = $para_cam_z_change
mult_float_var_by_float_var $y *= $tempf2
add_float_var_to_float_var $y += $start_cam_z
return 

:PARACH_6417
Streaming.RemoveAnimation("PARACHUTE")
Streaming.MarkModelAsNoLongerNeeded(#PARACHUTE)
Streaming.MarkModelAsNoLongerNeeded(#PARA_PACK)
if 
  0@ <> -1
goto_if_false @PARACH_6463
Pickup.Remove(0@)

:PARACH_6463
Object.Delete(9@)
Object.Delete(10@)
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_6499
$end_cam_y = 0

:PARACH_6499
terminate_this_script 
return 

:PARACH_6503
$player_x, $player_y, $player_z = Char.GetCoordinates(8@)
set_var_float_to_var_float $x = $play_open_timer
sub_float_var_from_float_var $x -= $player_x
set_var_float_to_var_float $y = $ai_target_x
sub_float_var_from_float_var $y -= $player_y
set_var_float_to_var_float $z = $player_z
sub_float_var_from_float_var $z -= $ai_target_y
if 
  17@ == 1
goto_if_false @PARACH_6683
mult_float_var_by_float_var $x *= $x
mult_float_var_by_float_var $y *= $y
add_float_var_to_float_var $x += $y
$x = Math.Sqrt($x)
set_var_float_to_var_float $has_freefall_started = $z
div_float_var_by_float_var $has_freefall_started /= $x
set_var_float_to_lvar_float $tempf1 = 3@
div_float_var_by_float_lvar $tempf1 /= 5@
$tempf1 *= -1.2
if 
  is_float_var_greater_than_float_var $tempf1 > $has_freefall_started
goto_if_false @PARACH_6683
12@ = 1

:PARACH_6683
if 
  14@ == 2
goto_if_false @PARACH_7350
20@ = Math.GetHeadingFromVector2D($x, $y)
19@ = Char.GetHeading(8@)
3@ -= 1.0
4@ -= 1.0
set_lvar_float_to_lvar_float 21@ = 20@
sub_float_lvar_from_float_lvar 21@ -= 19@
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 23@
goto_if_false @PARACH_7137
set_lvar_int_to_lvar_int 23@ = TIMERA
23@ += 3000
$tempv4 = Math.RandomFloatInRange(-20.0, 0.0)
$left_angle_check = Math.RandomFloatInRange(0.0, 20.0)
mult_float_var_by_float_var $x *= $x
mult_float_var_by_float_var $y *= $y
add_float_var_to_float_var $x += $y
$x = Math.Sqrt($x)
set_var_float_to_var_float $tempf1 = $x
div_float_var_by_float_lvar $tempf1 /= 5@
set_var_float_to_var_float $has_freefall_started = $z
div_float_var_by_float_var $has_freefall_started /= $tempf1
set_var_float_to_lvar_float $tempf1 = 3@
add_float_lvar_to_float_var $tempf1 += 4@
$tempf1 /= 2.0
set_var_float_to_lvar_float $tempf2 = 3@
sub_float_lvar_from_float_var $tempf2 -= 4@
$tempf2 /= 4.0
add_float_var_to_float_var $tempf2 += $tempf1
set_var_float_to_lvar_float $tempf3 = 3@
sub_float_lvar_from_float_var $tempf3 -= 4@
$tempf3 /= -4.0
add_float_var_to_float_var $tempf3 += $tempf1
$tempf2 *= -1.0
$tempf3 *= -1.0
if and
  is_float_var_greater_than_float_var $tempf2 > $has_freefall_started
  is_float_var_greater_than_float_var $has_freefall_started > $tempf3
goto_if_false @PARACH_7085
$para_turny_rate = Math.RandomIntInRange(0, 2)
if 
  $para_turny_rate == 0
goto_if_false @PARACH_7060
12@ = 2

:PARACH_7060
if 
  $para_turny_rate == 1
goto_if_false @PARACH_7085
12@ = 0

:PARACH_7085
if 
  is_float_var_greater_or_equal_to_float_var $has_freefall_started >= $tempf2
goto_if_false @PARACH_7111
12@ = 0

:PARACH_7111
if 
  is_float_var_greater_or_equal_to_float_var $tempf3 >= $has_freefall_started
goto_if_false @PARACH_7137
12@ = 2

:PARACH_7137
if or
  is_float_var_greater_than_float_lvar $tempv4 > 21@
  is_float_lvar_greater_than_float_var 21@ > $left_angle_check
goto_if_false @PARACH_7323
if 
  -180.0 > 21@
goto_if_false @PARACH_7195
21@ += 360.0

:PARACH_7195
if 
  21@ > 180.0
goto_if_false @PARACH_7226
21@ -= 360.0

:PARACH_7226
21@ /= 180.0
if 
  21@ > 1.0
goto_if_false @PARACH_7267
21@ = 1.0

:PARACH_7267
if 
  -1.0 > 21@
goto_if_false @PARACH_7298
21@ = -1.0

:PARACH_7298
21@ *= -128.0
cset_lvar_int_to_lvar_float 22@ =# 21@
goto @PARACH_7330

:PARACH_7323
22@ = 0

:PARACH_7330
3@ += 1.0
4@ += 1.0

:PARACH_7350
return 
terminate_this_script 

//-------------External script 2 (BCESAR2)---------------

:BCESAR2
script_name 'BCESAR2'
if or
  $weekday == 1
  $weekday == 3
  $weekday == 5
goto_if_false @BCESAR2_50
goto @BCESAR2_6142

:BCESAR2_50
if 
  $flag_synd_mission_counter >= 10
goto_if_false @BCESAR2_75
goto @BCESAR2_6142

:BCESAR2_75
ENTEXT_214()
if 
  $player_is_completely_safe_for_mobile == 0
goto_if_false @BCESAR2_107
goto @BCESAR2_6142

:BCESAR2_107
set_deatharrest_state 0
if 
  $flag_bce2_passed_1stime == 0
goto_if_false @BCESAR2_131
Stat.RegisterMissionGiven

:BCESAR2_131
$bcesar2_mission_flag = 1
$flag_on_courier_mission = 1
wait 0
0@ = 0
1@ = 5
21@ = 0
3@ = 0
4@ = 0
23@ = 0
$bce2_text_timer_start = 0
$bce2_audio_playing = 0
$bce2_mobile = 1
$bce2_counter = 0
$bce2_ahead_counter = 1
$bce2_audio_slot = 2
$bce2_random = 0
$8321[0] = 0
$8321[1] = 0
$8321[2] = 0
$8321[3] = 0
$8321[4] = 0
$8321[5] = 0
$y_car_speed[0] = 0
$y_car_speed[1] = 0
$y_car_speed[2] = 0
$y_car_speed[3] = 0
$y_car_speed[4] = 0
$y_car_speed[5] = 0
10@ = 0
11@ = 1
19@ = 1000
31@ = 40.0
$8310 = Math.RandomIntInRange(0, 2)
if 
  $8310 == 0
goto_if_false @BCESAR2_390
9@ = 114

:BCESAR2_390
if 
  $8310 == 1
goto_if_false @BCESAR2_415
9@ = 96

:BCESAR2_415
if 
  $8310 == 2
goto_if_false @BCESAR2_440
9@ = 115

:BCESAR2_440
if 
  $8310 == 0
goto_if_false @BCESAR2_489
set_var_float_to_var_float $bce2_response = $4183[0]
set_var_float_to_var_float $bce2_track_x = $4299[0]
set_var_float_to_var_float $bce2_track_y = $4415[0]
goto @BCESAR2_562

:BCESAR2_489
if 
  $8310 == 1
goto_if_false @BCESAR2_538
set_var_float_to_var_float $bce2_response = $4531[0]
set_var_float_to_var_float $bce2_track_x = $4629[0]
set_var_float_to_var_float $bce2_track_y = $4727[0]
goto @BCESAR2_562

:BCESAR2_538
set_var_float_to_var_float $bce2_response = $4825[0]
set_var_float_to_var_float $bce2_track_x = $4942[0]
set_var_float_to_var_float $bce2_track_y = $5059[0]

:BCESAR2_562
Streaming.RequestModel(107)
Streaming.RequestModel(470)
Streaming.RequestModel(352)
Streaming.RequestModel(330)

:BCESAR2_581
if or
  not Streaming.HasModelLoaded(107)
  not Streaming.HasModelLoaded(470)
  not Streaming.HasModelLoaded(352)
  not Streaming.HasModelLoaded(330)
goto_if_false @BCESAR2_622
wait 0
goto @BCESAR2_581

:BCESAR2_622
Car.SetModelComponents(470, 2, 2)
Car.CustomPlateForNextCar(470, "_ASSMAN_")
26@ = Car.Create(470, $bce2_response, $bce2_track_x, $bce2_track_y)
Car.SetLoadCollisionFlag(26@, False)
25@ = Char.CreateInsideCar(26@, PedType.CivMale, 107)
Char.SetSuffersCriticalHits(25@, False)
Char.SetProofs(25@, True, True, True, False, True)
Car.SetProofs(26@, True, True, True, False, True)
Car.SetCruiseSpeed(26@, 40.0)
StuckCarCheck.AddWithWarp(26@, 2.0, 2000, True, True, True, 2)
Car.LockDoors(26@, CarLock.LockoutPlayerOnly)
Task.CarDriveToCoord(25@, 26@, $4183(10@,116f), $4299(10@,116f), $4415(10@,116f), 31@, DriveMode.Normal, 0, DrivingMode.AvoidCars)
27@ = Blip.AddForCar(26@)
Car.SetOnlyDamagedByPlayer(26@, True)
if 
  $bce2_played > 0
goto_if_false @BCESAR2_978
28@ = Char.CreateAsPassenger(26@, PedType.CivMale, 107, 0)
Char.GiveWeapon(28@, WeaponType.MicroUzi, 16000)
Char.SetCurrentWeapon(28@, WeaponType.MicroUzi)
Char.SetAccuracy(28@, 90)
if 
  $bce2_played > 1
goto_if_false @BCESAR2_978
29@ = Char.CreateAsPassenger(26@, PedType.CivMale, 107, 1)
Char.GiveWeapon(29@, WeaponType.MicroUzi, 16000)
Char.SetCurrentWeapon(29@, WeaponType.MicroUzi)
Char.SetAccuracy(29@, 90)
if 
  $bce2_played > 2
goto_if_false @BCESAR2_978
30@ = Char.CreateAsPassenger(26@, PedType.CivMale, 107, 2)
Char.GiveWeapon(30@, WeaponType.MicroUzi, 16000)
Char.SetCurrentWeapon(30@, WeaponType.MicroUzi)
Char.SetAccuracy(30@, 90)

:BCESAR2_978
if 
  10@ == 0
goto_if_false @BCESAR2_1022
Car.TurnToFaceCoord(26@, $4183(11@,116f), $4299(11@,116f))
goto @BCESAR2_1041

:BCESAR2_1022
Car.TurnToFaceCoord(26@, $4183(10@,116f), $4299(10@,116f))

:BCESAR2_1041
$bce2_random_rot[0] = -0.65
$8334[0] = -2.307
$8340[0] = 0.26
$bce2_random_rot[1] = -0.047
$8334[1] = -2.307
$8340[1] = 0.26
$bce2_random_rot[2] = 0.554
$8334[2] = -2.307
$8340[2] = 0.26
$bce2_random_rot[3] = 0.554
$8334[3] = -1.808
$8340[3] = 0.26
$bce2_random_rot[4] = -0.65
$8334[4] = -1.808
$8340[4] = 0.26
$bce2_random_rot[5] = -0.047
$8334[5] = -1.808
$8340[5] = 0.26

:BCESAR2_1221
if 
  0@ <> 6
goto_if_false @BCESAR2_1471
wait 0
if 
  not Car.IsDead(26@)
goto_if_false @BCESAR2_1464
if 
  $8321(0@,6i) == 0
goto_if_false @BCESAR2_1457
$8327 = Math.RandomFloatInRange(0.0, 19.9)
if and
  20.0 > $8327
  $8327 > 10.0
goto_if_false @BCESAR2_1337
$8327 += 340.0

:BCESAR2_1337
$bce2_track_z(0@,6i) = Object.Create(#CM_BOX, $bce2_random_rot(0@,6f), $8334(0@,6f), $8340(0@,6f))
Object.AttachToCar($bce2_track_z(0@,6i), 26@, $bce2_random_rot(0@,6f), $8334(0@,6f), $8340(0@,6f), 0.0, 0.0, 0.0)
  Object.Rotate($bce2_track_z(0@,6i), $8327, $8327, True)
Object.SetCollision($bce2_track_z(0@,6i), False)
Object.SetDynamic($bce2_track_z(0@,6i), False)

:BCESAR2_1457
0@ += 1

:BCESAR2_1464
goto @BCESAR2_1221

:BCESAR2_1471
12@ = Clock.GetGameTimer()
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @BCESAR2_1503
Player.SetGroupRecruitment($player1, False)

:BCESAR2_1503
set_var_text_label s$8346[1] = 'MCES07A'
set_var_text_label s$8346[2] = 'MCES07B'
set_var_text_label s$8346[3] = 'MCES07C'
set_var_text_label s$8346[4] = 'MCES06A'
set_var_text_label s$8346[5] = 'MCES06B'
set_var_text_label s$8346[6] = 'MCES06C'
set_var_text_label s$8346[7] = 'MCES06D'
set_var_text_label s$8346[8] = 'MCES06E'
set_var_text_label s$8346[9] = 'MCES06F'
set_var_text_label s$8346[10] = 'MCES06G'
set_var_text_label s$8346[11] = 'MCES07D'
set_var_int_to_constant $8370[1] = 4682
set_var_int_to_constant $8370[2] = 4645
set_var_int_to_constant $8370[3] = 4683
set_var_int_to_constant $8370[4] = 4678
set_var_int_to_constant $8370[5] = 4642
set_var_int_to_constant $8370[6] = 4643
set_var_int_to_constant $8370[7] = 4644
set_var_int_to_constant $8370[8] = 4679
set_var_int_to_constant $8370[9] = 4680
set_var_int_to_constant $8370[10] = 4681
set_var_int_to_constant $8370[11] = 4687
Streaming.RequestModel(330)
Streaming.LoadAllModelsNow
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 23803)

:BCESAR2_1759
if or
  not Streaming.HasModelLoaded(330)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @BCESAR2_1790
wait 0
goto @BCESAR2_1759

:BCESAR2_1790
ENTEXT_214()
if 
  $player_is_completely_safe_for_mobile == 0
goto_if_false @BCESAR2_1822
goto @BCESAR2_6142

:BCESAR2_1822
Task.UseMobilePhone($scplayer, True)
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
wait 2000
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)

:BCESAR2_1842
wait 0
if 
  $bce2_audio_playing <> 0
goto_if_false @BCESAR2_2185
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_1910
if 
  Audio.HasMissionAudioLoaded($bce2_audio_slot)
goto_if_false @BCESAR2_1903
Audio.ClearMissionAudio($bce2_audio_slot)

:BCESAR2_1903
$bce2_text_timer_start = 1

:BCESAR2_1910
if 
  $bce2_text_timer_start == 1
goto_if_false @BCESAR2_1947
Audio.LoadMissionAudio($bce2_ahead_counter, $8370($bce2_audio_playing,12i))
$bce2_text_timer_start = 2

:BCESAR2_1947
if 
  $bce2_text_timer_start == 2
goto_if_false @BCESAR2_2007
if 
  Audio.HasMissionAudioLoaded($bce2_ahead_counter)
goto_if_false @BCESAR2_2007
Audio.PlayMissionAudio($bce2_ahead_counter)
Text.PrintNow($8346($bce2_audio_playing,12s), 10000, 1)
$bce2_text_timer_start = 3

:BCESAR2_2007
if 
  $bce2_text_timer_start == 3
goto_if_false @BCESAR2_2185
if 
  Audio.HasMissionAudioFinished($bce2_ahead_counter)
goto_if_false @BCESAR2_2124
Text.ClearThisPrint($8346($bce2_audio_playing,12s))
if 
  $bce2_ahead_counter == 1
goto_if_false @BCESAR2_2089
$bce2_ahead_counter = 2
$bce2_audio_slot = 1
goto @BCESAR2_2103

:BCESAR2_2089
$bce2_ahead_counter = 1
$bce2_audio_slot = 2

:BCESAR2_2103
$bce2_audio_playing = 0
$bce2_text_timer_start = 0
goto @BCESAR2_2185

:BCESAR2_2124
if 
  not Audio.HasMissionAudioLoaded($bce2_audio_slot)
goto_if_false @BCESAR2_2185
if 
  10 > $bce2_audio_playing
goto_if_false @BCESAR2_2185
set_var_int_to_var_int $bce2_mobile = $bce2_audio_playing
$bce2_mobile += 1
Audio.LoadMissionAudio($bce2_audio_slot, $8370($bce2_mobile,12i))

:BCESAR2_2185
if 
  $bce2_played > 0
goto_if_false @BCESAR2_2676
if 
  $bce2_counter == 0
goto_if_false @BCESAR2_2258
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_2258
$bce2_audio_playing = 1
$bce2_counter = 1
$bce2_text_timer_end = Clock.GetGameTimer()

:BCESAR2_2258
if 
  $bce2_counter == 1
goto_if_false @BCESAR2_2373
$bce2_text_timer_diff = Clock.GetGameTimer()
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_2373
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_2373
$bce2_audio_playing = 2
$bce2_counter = 2
$bce2_random = 0
$bce2_text_timer_end = Clock.GetGameTimer()
Text.ClearHelp
Text.PrintHelpForever('TALK_1')

:BCESAR2_2373
if 
  $bce2_counter == 2
goto_if_false @BCESAR2_2443
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @BCESAR2_2417
Text.ClearHelp
$bce2_random = 2

:BCESAR2_2417
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @BCESAR2_2443
Text.ClearHelp
$bce2_random = 1

:BCESAR2_2443
if 
  $bce2_random == 1
goto_if_false @BCESAR2_2556
if 
  $bce2_counter == 2
goto_if_false @BCESAR2_2556
$bce2_text_timer_diff = Clock.GetGameTimer()
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_2556
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_2556
$bce2_audio_playing = 3
$bce2_counter = 7
$bce2_text_timer_end = Clock.GetGameTimer()

:BCESAR2_2556
if 
  $bce2_random == 2
goto_if_false @BCESAR2_2669
if 
  $bce2_counter == 2
goto_if_false @BCESAR2_2669
$bce2_text_timer_diff = Clock.GetGameTimer()
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_2669
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_2669
$bce2_audio_playing = 11
$bce2_counter = 7
$bce2_text_timer_end = Clock.GetGameTimer()

:BCESAR2_2669
goto @BCESAR2_3301

:BCESAR2_2676
if 
  $bce2_counter == 0
goto_if_false @BCESAR2_2731
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_2731
$bce2_audio_playing = 4
$bce2_counter = 1
$bce2_text_timer_end = Clock.GetGameTimer()

:BCESAR2_2731
if 
  $bce2_counter == 1
goto_if_false @BCESAR2_2826
$bce2_text_timer_diff = Clock.GetGameTimer()
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_2826
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_2826
$bce2_audio_playing = 5
$bce2_counter = 2
$bce2_text_timer_end = Clock.GetGameTimer()

:BCESAR2_2826
if 
  $bce2_counter == 2
goto_if_false @BCESAR2_2921
$bce2_text_timer_diff = Clock.GetGameTimer()
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_2921
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_2921
$bce2_audio_playing = 6
$bce2_counter = 3
$bce2_text_timer_end = Clock.GetGameTimer()

:BCESAR2_2921
if 
  $bce2_counter == 3
goto_if_false @BCESAR2_3016
$bce2_text_timer_diff = Clock.GetGameTimer()
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_3016
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_3016
$bce2_audio_playing = 7
$bce2_counter = 4
$bce2_text_timer_end = Clock.GetGameTimer()

:BCESAR2_3016
if 
  $bce2_counter == 4
goto_if_false @BCESAR2_3111
$bce2_text_timer_diff = Clock.GetGameTimer()
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_3111
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_3111
$bce2_audio_playing = 8
$bce2_counter = 5
$bce2_text_timer_end = Clock.GetGameTimer()

:BCESAR2_3111
if 
  $bce2_counter == 5
goto_if_false @BCESAR2_3206
$bce2_text_timer_diff = Clock.GetGameTimer()
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_3206
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_3206
$bce2_audio_playing = 9
$bce2_counter = 6
$bce2_text_timer_end = Clock.GetGameTimer()

:BCESAR2_3206
if 
  $bce2_counter == 6
goto_if_false @BCESAR2_3301
$bce2_text_timer_diff = Clock.GetGameTimer()
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_3301
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_3301
$bce2_audio_playing = 10
$bce2_counter = 7
$bce2_text_timer_end = Clock.GetGameTimer()

:BCESAR2_3301
if or
  $bce2_counter == 7
  $bce2_counter == 8
goto_if_false @BCESAR2_3475
$bce2_text_timer_diff = Clock.GetGameTimer()
set_var_int_to_var_int $8382 = $bce2_text_timer_diff
sub_int_var_from_int_var $8382 -= $bce2_text_timer_end
if 
  $8382 > 1000
goto_if_false @BCESAR2_3475
if 
  $bce2_text_timer_start == 0
goto_if_false @BCESAR2_3475
if 
  not Char.IsDead($scplayer)
goto_if_false @BCESAR2_3475
24@ = Char.GetScriptTaskStatus($scplayer, 1833)
if 
  not is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BCESAR2_3436
Task.UseMobilePhone($scplayer, False)

:BCESAR2_3436
if 
  2 > $bce2_random
goto_if_false @BCESAR2_3468
goto @BCESAR2_3531
goto @BCESAR2_3475

:BCESAR2_3468
goto @BCESAR2_6142

:BCESAR2_3475
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BCESAR2_3524
if 
  $bce2_played > 0
goto_if_false @BCESAR2_3517
$bce2_random = 2

:BCESAR2_3517
$bce2_counter = 8

:BCESAR2_3524
goto @BCESAR2_1842

:BCESAR2_3531
wait 0
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @BCESAR2_3564
1@ = 0
3@ = 6

:BCESAR2_3564
if 
  $onmission == 1
goto_if_false @BCESAR2_3596
1@ = 0
3@ = 6

:BCESAR2_3596
if 
  Player.IsPlaying($player1)
goto_if_false @BCESAR2_3718
if 
  not Char.IsDead($scplayer)
goto_if_false @BCESAR2_3718
if 
  23@ == 0
goto_if_false @BCESAR2_3677
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BCESAR2_3677
22@ = Char.StoreCarIsInNoSave($scplayer)
23@ = 1

:BCESAR2_3677
if 
  23@ == 1
goto_if_false @BCESAR2_3718
if 
  not Char.IsInAnyCar($scplayer)
goto_if_false @BCESAR2_3718
23@ = 0

:BCESAR2_3718
if 
  Player.IsPlaying($player1)
goto_if_false @BCESAR2_5271
if 
  not Char.IsDead($scplayer)
goto_if_false @BCESAR2_5264
if 
  4@ == 0
goto_if_false @BCESAR2_3833
if 
  Char.LocateAnyMeans3D($scplayer, $bce2_response, $bce2_track_x, $bce2_track_y, 100.0, 100.0, 50.0, False)
goto_if_false @BCESAR2_3833
Text.PrintNow('BCE2_02', 5000, 1)
4@ = 1

:BCESAR2_3833
if 
  Car.IsDead(26@)
goto_if_false @BCESAR2_3856
goto @BCESAR2_6142

:BCESAR2_3856
if 
  $bce2_played > 0
goto_if_false @BCESAR2_4174
if 
  not Char.IsDead(28@)
goto_if_false @BCESAR2_3962
5@ = Char.GetScriptTaskStatus(28@, 1811)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @BCESAR2_3962
Task.DriveBy(28@, $scplayer, -1, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, True, 30)
Char.SetCurrentWeapon(28@, WeaponType.MicroUzi)

:BCESAR2_3962
if 
  $bce2_played > 1
goto_if_false @BCESAR2_4174
if 
  not Char.IsDead(29@)
goto_if_false @BCESAR2_4068
6@ = Char.GetScriptTaskStatus(29@, 1811)
if 
  is_int_lvar_equal_to_constant 6@ == 7
goto_if_false @BCESAR2_4068
Task.DriveBy(29@, $scplayer, -1, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, True, 30)
Char.SetCurrentWeapon(29@, WeaponType.MicroUzi)

:BCESAR2_4068
if 
  $bce2_played > 2
goto_if_false @BCESAR2_4174
if 
  not Char.IsDead(30@)
goto_if_false @BCESAR2_4174
7@ = Char.GetScriptTaskStatus(30@, 1811)
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @BCESAR2_4174
Task.DriveBy(30@, $scplayer, -1, 0.0, 0.0, 0.0, 50.0, DriveByType.Ai, True, 30)
Char.SetCurrentWeapon(30@, WeaponType.MicroUzi)

:BCESAR2_4174
if and
  not Char.IsDead(25@)
  not Car.IsDead(26@)
goto_if_false @BCESAR2_5264
if 
  not Char.LocateAnyMeansCar3D($scplayer, 26@, 15.0, 15.0, 15.0, False)
goto_if_false @BCESAR2_4269
if 
  31@ > 30.0
goto_if_false @BCESAR2_4262
31@ -= 0.1

:BCESAR2_4262
goto @BCESAR2_4300

:BCESAR2_4269
if 
  50.0 > 31@
goto_if_false @BCESAR2_4300
31@ += 0.1

:BCESAR2_4300
if 
  4@ == 1
goto_if_false @BCESAR2_4361
if 
  not Char.LocateAnyMeansCar3D($scplayer, 26@, 500.0, 500.0, 500.0, False)
goto_if_false @BCESAR2_4361
goto @BCESAR2_6142

:BCESAR2_4361
$bce2_response, $bce2_track_x, $bce2_track_y = Car.GetCoordinates(26@)
if 
  is_int_lvar_greater_than_int_lvar 9@ > 10@
goto_if_false @BCESAR2_4772
if 
  $8310 == 0
goto_if_false @BCESAR2_4526
if 
  Char.LocateInCar3D(25@, $4183(10@,116f), $4299(10@,116f), $4415(10@,116f), 20.0, 20.0, 20.0, False)
goto_if_false @BCESAR2_4519
Car.SetCruiseSpeed(26@, 31@)
10@ += 1
Task.CarDriveToCoord(25@, 26@, $4183(10@,116f), $4299(10@,116f), $4415(10@,116f), 31@, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:BCESAR2_4519
goto @BCESAR2_4765

:BCESAR2_4526
if 
  $8310 == 1
goto_if_false @BCESAR2_4658
if 
  Char.LocateInCar3D(25@, $4531(10@,98f), $4629(10@,98f), $4727(10@,98f), 20.0, 20.0, 20.0, False)
goto_if_false @BCESAR2_4651
Car.SetCruiseSpeed(26@, 31@)
10@ += 1
Task.CarDriveToCoord(25@, 26@, $4531(10@,98f), $4629(10@,98f), $4727(10@,98f), 31@, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:BCESAR2_4651
goto @BCESAR2_4765

:BCESAR2_4658
if 
  Char.LocateInCar3D(25@, $4825(10@,117f), $4942(10@,117f), $5059(10@,117f), 20.0, 20.0, 20.0, False)
goto_if_false @BCESAR2_4765
Car.SetCruiseSpeed(26@, 31@)
10@ += 1
Task.CarDriveToCoord(25@, 26@, $4825(10@,117f), $4942(10@,117f), $5059(10@,117f), 31@, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:BCESAR2_4765
goto @BCESAR2_5071

:BCESAR2_4772
if 
  $8310 == 0
goto_if_false @BCESAR2_4866
if 
  Char.LocateInCar3D(25@, $4183(10@,116f), $4299(10@,116f), $4415(10@,116f), 8.0, 8.0, 8.0, False)
goto_if_false @BCESAR2_4859
Task.CarDriveWander(25@, 26@, 50.0, DrivingMode.AvoidCars)

:BCESAR2_4859
goto @BCESAR2_5029

:BCESAR2_4866
if 
  $8310 == 1
goto_if_false @BCESAR2_4960
if 
  Char.LocateInCar3D(25@, $4531(10@,98f), $4629(10@,98f), $4727(10@,98f), 8.0, 8.0, 8.0, False)
goto_if_false @BCESAR2_4953
Task.CarDriveWander(25@, 26@, 50.0, DrivingMode.AvoidCars)

:BCESAR2_4953
goto @BCESAR2_5029

:BCESAR2_4960
if 
  Char.LocateInCar3D(25@, $4825(10@,117f), $4942(10@,117f), $5059(10@,117f), 8.0, 8.0, 8.0, False)
goto_if_false @BCESAR2_5029
Task.CarDriveWander(25@, 26@, 50.0, DrivingMode.AvoidCars)

:BCESAR2_5029
if 
  is_int_lvar_equal_to_int_lvar 10@ == 9@
goto_if_false @BCESAR2_5071
if 
  not Car.IsOnScreen(26@)
goto_if_false @BCESAR2_5071
goto @BCESAR2_6142

:BCESAR2_5071
8@ = Char.GetScriptTaskStatus(25@, 1489)
if 
  is_int_lvar_equal_to_constant 8@ == 7
goto_if_false @BCESAR2_5264
if 
  $8310 == 0
goto_if_false @BCESAR2_5163
Task.CarDriveToCoord(25@, 26@, $4183(10@,116f), $4299(10@,116f), $4415(10@,116f), 31@, DriveMode.Normal, 0, DrivingMode.AvoidCars)
goto @BCESAR2_5264

:BCESAR2_5163
if 
  $8310 == 1
goto_if_false @BCESAR2_5226
Task.CarDriveToCoord(25@, 26@, $4531(10@,98f), $4629(10@,98f), $4727(10@,98f), 31@, DriveMode.Normal, 0, DrivingMode.AvoidCars)
goto @BCESAR2_5264

:BCESAR2_5226
Task.CarDriveToCoord(25@, 26@, $4825(10@,117f), $4942(10@,117f), $5059(10@,117f), 31@, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:BCESAR2_5264
goto @BCESAR2_5278

:BCESAR2_5271
goto @BCESAR2_6142

:BCESAR2_5278
if 
  not Car.IsDead(26@)
goto_if_false @BCESAR2_5759
13@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 14@ = 13@
sub_int_lvar_from_int_lvar 14@ -= 12@
20@ = Car.GetHealth(26@)
if 
  14@ > 1000
goto_if_false @BCESAR2_5759
if 
  is_int_lvar_greater_than_int_lvar 19@ > 20@
goto_if_false @BCESAR2_5759
if 
  $8321(1@,6i) == 0
goto_if_false @BCESAR2_5751
if 
  Object.IsAttached($bce2_track_z(1@,6i))
goto_if_false @BCESAR2_5751
if 
  not Car.IsDead(26@)
goto_if_false @BCESAR2_5751
if or
  not Car.IsUpsidedown(26@)
  not Car.IsInWater(26@)
goto_if_false @BCESAR2_5751
$bce2_random_rot(1@,6f), $8334(1@,6f), $8340(1@,6f) = Object.GetCoordinates($bce2_track_z(1@,6i))
$8340(1@,6f) += 0.5
Object.SetCoordinates($bce2_track_z(1@,6i), $bce2_random_rot(1@,6f), $8334(1@,6f), $8340(1@,6f))
Object.Detach($bce2_track_z(1@,6i), 90.0, 180.0, 1.5, True)
$y_car_speed(1@,6i) = Blip.AddForObject($bce2_track_z(1@,6i))
Object.AddToVelocity($bce2_track_z(1@,6i), 0.0, -5.0, 20.0)
Object.SetCollision($bce2_track_z(1@,6i), True)
Object.SetDynamic($bce2_track_z(1@,6i), True)
if 
  Player.IsPlaying($player1)
goto_if_false @BCESAR2_5662
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @BCESAR2_5662
if 
  not Car.IsDead(22@)
goto_if_false @BCESAR2_5662
Object.SortOutCollisionWithCar($bce2_track_z(1@,6i), 22@)

:BCESAR2_5662
12@ = Clock.GetGameTimer()
Text.PrintNow('BCE2_03', 5000, 1)
$8321(1@,6i) = 2
if 
  1@ > 0
goto_if_false @BCESAR2_5726
1@ -= 1
goto @BCESAR2_5751

:BCESAR2_5726
if 
  3@ == 6
goto_if_false @BCESAR2_5751
goto @BCESAR2_6142

:BCESAR2_5751
set_lvar_int_to_lvar_int 19@ = 20@

:BCESAR2_5759
if 
  1@ == 0
goto_if_false @BCESAR2_5802
if 
  3@ == 6
goto_if_false @BCESAR2_5802
goto @BCESAR2_6142

:BCESAR2_5802
2@ = 0

:BCESAR2_5809
if 
  2@ <> 6
goto_if_false @BCESAR2_6135
wait 0
if 
  $8321(2@,6i) == 2
goto_if_false @BCESAR2_6121
if 
  Player.IsPlaying($player1)
goto_if_false @BCESAR2_6121
if 
  not Char.IsDead($scplayer)
goto_if_false @BCESAR2_6121
16@, 17@, 18@ = Char.GetCoordinates($scplayer)
if 
  Object.DoesExist($bce2_track_z(2@,6i))
goto_if_false @BCESAR2_6025
if 
  Char.LocateAnyMeansObject3D($scplayer, $bce2_track_z(2@,6i), 3.0, 3.0, 3.0, False)
goto_if_false @BCESAR2_6025
Blip.Remove($y_car_speed(2@,6i))
Object.Delete($bce2_track_z(2@,6i))
Sound.AddOneOffSound(16@, 17@, 18@, ScriptSound.SoundPartMissionComplete)
Player.AddScore($player1, 300)
21@ += 300
$8321(2@,6i) = 3
3@ += 1

:BCESAR2_6025
if 
  Object.DoesExist($bce2_track_z(2@,6i))
goto_if_false @BCESAR2_6121
if 
  not Char.LocateAnyMeansObject3D($scplayer, $bce2_track_z(2@,6i), 75.0, 75.0, 75.0, False)
goto_if_false @BCESAR2_6121
Blip.Remove($y_car_speed(2@,6i))
Object.Delete($bce2_track_z(2@,6i))
$8321(2@,6i) = 3
3@ += 1

:BCESAR2_6121
2@ += 1
goto @BCESAR2_5809

:BCESAR2_6135
goto @BCESAR2_3531

:BCESAR2_6142
if 
  $flag_on_courier_mission == 1
goto_if_false @BCESAR2_6202
Text.PrintWithNumberBig('BCE2_04', 21@, 7500, TextStyle.MiddleSmallerHigher)
Text.PrintNow('BCE2_05', 7500, 1)
$bce2_played += 1

:BCESAR2_6202
Blip.Remove(27@)
Blip.Remove($y_car_speed[0])
Blip.Remove($y_car_speed[1])
Blip.Remove($y_car_speed[2])
Blip.Remove($y_car_speed[3])
Blip.Remove($y_car_speed[4])
Blip.Remove($y_car_speed[5])
Car.MarkAsNoLongerNeeded(26@)
Char.MarkAsNoLongerNeeded(25@)
Char.MarkAsNoLongerNeeded(28@)
Char.MarkAsNoLongerNeeded(29@)
Char.MarkAsNoLongerNeeded(30@)
Object.MarkAsNoLongerNeeded($bce2_track_z[0])
Object.MarkAsNoLongerNeeded($bce2_track_z[1])
Object.MarkAsNoLongerNeeded($bce2_track_z[2])
Object.MarkAsNoLongerNeeded($bce2_track_z[3])
Object.MarkAsNoLongerNeeded($bce2_track_z[4])
Object.MarkAsNoLongerNeeded($bce2_track_z[5])
Streaming.MarkModelAsNoLongerNeeded(107)
Streaming.MarkModelAsNoLongerNeeded(470)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(330)
$timer_mobile_start = Clock.GetGameTimer()
Text.ClearHelp
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
$timer_mobile_start = Clock.GetGameTimer()
if 
  $flag_on_courier_mission == 1
goto_if_false @BCESAR2_6372
if 
  $flag_bce2_passed_1stime == 0
goto_if_false @BCESAR2_6372
Stat.RegisterOddjobMissionPassed
$flag_bce2_passed_1stime = 1

:BCESAR2_6372
$flag_on_courier_mission = 0
terminate_this_script 
terminate_this_script 

//-------------External script 3 (BCESAR3)---------------

:COKEC
script_name 'COKEC'
15@ = 0
0@ = 0
1@ = 0
12@ = 0
13@ = 0
14@ = 0
16@ = 0
$bce2_alt_slot = 0
$phone_conversation_choice = 0

:COKEC_74
if or
  $weekday == 1
  $weekday == 3
  $weekday == 5
goto_if_false @COKEC_120
goto @COKEC_5529
16@ = 1

:COKEC_120
if 
  $bce2_played == 0
goto_if_false @COKEC_152
goto @COKEC_5529
16@ = 1

:COKEC_152
if 
  $flag_synd_mission_counter >= 10
goto_if_false @COKEC_184
goto @COKEC_5529
16@ = 1

:COKEC_184
$current_visible_area_cell = Streaming.GetAreaVisible()
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_333
if 
  $current_visible_area_cell == 0
goto_if_false @COKEC_322
if and
  Char.IsOnFoot($scplayer)
  not Char.IsInAir($scplayer)
  $onmission == 0
  $player_fall_state == 0
goto_if_false @COKEC_304
if and
  not Char.IsInWater($scplayer)
  not Char.IsShooting($scplayer)
goto_if_false @COKEC_286
goto @COKEC_297

:COKEC_286
wait 0
goto @COKEC_74

:COKEC_297
goto @COKEC_315

:COKEC_304
wait 0
goto @COKEC_74

:COKEC_315
goto @COKEC_333

:COKEC_322
wait 0
goto @COKEC_74

:COKEC_333
ENTEXT_214()
if 
  $player_is_completely_safe_for_mobile == 0
goto_if_false @COKEC_369
wait 0
goto @COKEC_74

:COKEC_369
if 
  $bcesar3_passed_mission == 0
goto_if_false @COKEC_389
Stat.RegisterMissionGiven

:COKEC_389
14@ = 1
$flag_on_courier_mission = 1

:COKEC_403
wait 0
3@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 2@ = 3@
sub_int_lvar_from_int_lvar 2@ -= 9@
set_lvar_int_to_lvar_int 9@ = 3@
27@ = Streaming.GetAreaVisible()
if 
  27@ == 0
goto_if_false @COKEC_475
add_int_lvar_to_int_lvar 10@ += 2@
add_int_lvar_to_int_lvar 11@ += 2@

:COKEC_475
if 
is_ps2_keyboard_key_just_pressed 41
goto_if_false @COKEC_497
goto @COKEC_5529

:COKEC_497
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @COKEC_519
goto @COKEC_5529

:COKEC_519
if 
  $onmission == 1
goto_if_false @COKEC_551
16@ = 1
goto @COKEC_5529

:COKEC_551
if 
  not Player.IsPlaying($player1)
goto_if_false @COKEC_574
goto @COKEC_5529

:COKEC_574
if 
  has_deatharrest_been_executed 
goto_if_false @COKEC_601
16@ = 1
goto @COKEC_5529

:COKEC_601
if 
  0@ == 0
goto_if_false @COKEC_675
23@ = -1
21@ = 0
24@ = 0
25@ = 0
26@ = 0
28@ = 0
0@ += 1
1@ = 0

:COKEC_675
if 
  0@ == 1
goto_if_false @COKEC_5522
if 
  1@ == 0
goto_if_false @COKEC_806
Streaming.RequestModel(23)
Streaming.RequestModel(468)
Streaming.RequestModel(346)
Streaming.RequestModel(330)
Streaming.RequestCarRecording(556)
Audio.LoadMissionAudio(MissionAudioSlot.Slot3, 23803)

:COKEC_742
if or
  not Streaming.HasModelLoaded(23)
  not Streaming.HasModelLoaded(468)
  not Streaming.HasModelLoaded(346)
  not Streaming.HasModelLoaded(330)
  not Streaming.HasCarRecordingBeenLoaded(556)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot3)
goto_if_false @COKEC_792
wait 0
goto @COKEC_742

:COKEC_792
29@ = DecisionMakerChar.Load(DecisionMakerType.Tough)
1@ += 1

:COKEC_806
if 
  1@ == 1
goto_if_false @COKEC_882
ENTEXT_214()
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @COKEC_882
Audio.PlayMissionAudio(MissionAudioSlot.Slot3)
Task.UseMobilePhone($scplayer, True)
TIMERA = -1500
12@ = 0
1@ += 1

:COKEC_882
if 
  1@ >= 2
goto_if_false @COKEC_1567
if 
  5 > 12@
goto_if_false @COKEC_1567
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @COKEC_963
12@ = 4
$bce2_alt_slot = 3
$phone_conversation_choice = 2
16@ = 1

:COKEC_963
if and
  $bce2_alt_slot == 1
  $audio_line_is_active == 0
  not Text.IsMessageBeingDisplayed
goto_if_false @COKEC_1008
Text.PrintHelpForever('TALK_1')
$bce2_alt_slot += 1

:COKEC_1008
if 
  $bce2_alt_slot == 2
goto_if_false @COKEC_1099
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @COKEC_1066
$phone_conversation_choice = 1
$bce2_alt_slot += 1
Text.ClearHelp
goto @COKEC_1099

:COKEC_1066
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @COKEC_1099
$phone_conversation_choice = 2
$bce2_alt_slot += 1
Text.ClearHelp

:COKEC_1099
if or
  $bce2_alt_slot == 0
  $bce2_alt_slot == 3
goto_if_false @COKEC_1567
if and
  $audio_line_is_active == 0
  TIMERA > 1000
goto_if_false @COKEC_1567
switch_start 12@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @COKEC_1553 {caseNum1} 0 {caseLabel1} @COKEC_1213 {caseNum2} 1 {caseLabel2} @COKEC_1264 {caseNum3} 2 {caseLabel3} @COKEC_1312 {caseNum4} 3 {caseLabel4} @COKEC_1366 {caseNum5} 4 {caseLabel5} @COKEC_1482 {caseNum6} -1 {caseLabel6} @COKEC_1553 {caseNum7} -1 {caseLabel7} @COKEC_1553

:COKEC_1213
Audio.ClearMissionAudio(MissionAudioSlot.Slot3)
set_var_text_label s$audio_string = 'MCES08A'
set_var_int_to_constant $audio_sound_file = 4646
start_new_script @AUDIOL -1 0 1 1 0 
goto @COKEC_1553

:COKEC_1264
set_var_text_label s$audio_string = 'MCES08B'
set_var_int_to_constant $audio_sound_file = 4686
start_new_script @AUDIOL $scplayer 0 1 1 0 
goto @COKEC_1553

:COKEC_1312
set_var_text_label s$audio_string = 'MCES08C'
set_var_int_to_constant $audio_sound_file = 4647
start_new_script @AUDIOL -1 0 1 1 0 
$bce2_alt_slot += 1
goto @COKEC_1553

:COKEC_1366
if 
  $phone_conversation_choice == 1
goto_if_false @COKEC_1432
set_var_text_label s$audio_string = 'MCES08D'
set_var_int_to_constant $audio_sound_file = 4685
start_new_script @AUDIOL $scplayer 0 1 1 0 
goto @COKEC_1475

:COKEC_1432
set_var_text_label s$audio_string = 'VOFFE2N'
set_var_int_to_constant $audio_sound_file = 42644
start_new_script @AUDIOL $scplayer 0 1 1 0 

:COKEC_1475
goto @COKEC_1553

:COKEC_1482
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_1521
Task.UseMobilePhone($scplayer, False)

:COKEC_1521
if 
  $phone_conversation_choice <> 1
goto_if_false @COKEC_1546
goto @COKEC_5529

:COKEC_1546
goto @COKEC_1553

:COKEC_1553
12@ += 1
TIMERA = 0

:COKEC_1567
if 
  1@ == 2
goto_if_false @COKEC_2216
if 
  15@ == 0
goto_if_false @COKEC_1993
26@ = Math.RandomIntInRange(0, 60)

:COKEC_1612
if 
  2@ == 0
goto_if_false @COKEC_1734
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_1727
if 
  Char.LocateAnyMeans3D($scplayer, $3928(26@,85f), $4013(26@,85f), $4098(26@,85f), 150.0, 150.0, 150.0, False)
goto_if_false @COKEC_1720
26@ = Math.RandomIntInRange(0, 60)
wait 0
goto @COKEC_1727

:COKEC_1720
2@ = 1

:COKEC_1727
goto @COKEC_1612

:COKEC_1734
17@ = Car.Create(468, $3928(26@,85f), $4013(26@,85f), $4098(26@,85f))
18@ = Char.Create(PedType.CivMale, 23, $3928(26@,85f), $4013(26@,85f), $4098(26@,85f))
22@ = Object.Create(#PARA_PACK, $3928(26@,85f), $4013(26@,85f), $4098(26@,85f))
Char.WarpIntoCar(18@, 17@)
Task.PickUpObject(18@, 22@, -0.11, -0.05, 0.0, 1, 16, "NULL", "NULL", 0)
Car.SetLoadCollisionFlag(17@, False)
set_lvar_int_to_lvar_int 2@ = 26@
2@ += 1
set_var_float_to_var_float $x = $3928(2@,85f)
sub_float_var_from_float_var $x -= $3928(26@,85f)
set_var_float_to_var_float $y = $4013(2@,85f)
sub_float_var_from_float_var $y -= $4013(26@,85f)
5@ = Math.GetHeadingFromVector2D($x, $y)
Car.SetHeading(17@, 5@)
Car.GotoCoordinatesRacing(17@, $3928(26@,85f), $4013(26@,85f), $4098(26@,85f))
goto @COKEC_1993

:COKEC_1993
Char.SetOnlyDamagedByPlayer(18@, True)
Char.SetAccuracy(18@, 95)
Char.SetDecisionMaker(18@, 29@)
Task.TogglePedThreatScanner(18@, False, False, True)
Char.GiveWeapon(18@, WeaponType.Pistol, 99999)
Char.SetMaxHealth(18@, 300)
Char.SetHealth(18@, 300)
Car.SetOnlyDamagedByPlayer(17@, True)
Car.SetCruiseSpeed(17@, 25.0)
Car.SetDrivingStyle(17@, DrivingMode.AvoidCars)
StuckCarCheck.AddWithWarp(17@, 2.0, 2000, True, True, True, 2)
Char.SetProofs(18@, True, True, True, True, True)
Car.SetProofs(17@, True, True, True, True, True)
Char.SetDrownsInWater(18@, False)
Char.SetCanBeKnockedOffBike(18@, True)
Streaming.MarkModelAsNoLongerNeeded(23)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.MarkModelAsNoLongerNeeded(346)
if 
  not Char.IsDead(18@)
goto_if_false @COKEC_2181
19@ = Blip.AddForChar(18@)

:COKEC_2181
24@ = 0
TIMERB = 0
11@ = 0
10@ = 0
1@ += 1

:COKEC_2216
if 
  1@ == 3
goto_if_false @COKEC_3297
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_3297
if 
  25@ == 0
goto_if_false @COKEC_2313
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @COKEC_2306
if 
  not Char.IsDead(18@)
goto_if_false @COKEC_2306
25@ = 1

:COKEC_2306
goto @COKEC_2339

:COKEC_2313
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @COKEC_2339
Camera.RestoreJumpcut
Camera.SetBehindPlayer
25@ = 0

:COKEC_2339
if 
  25@ == 1
goto_if_false @COKEC_2499
if 
  not Char.IsDead(18@)
goto_if_false @COKEC_2499
$x, $y, $z = Char.GetCoordinates(18@)
$x += -15.0
$y += 12.0
$z += 15.0
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Char.GetCoordinates(18@)
$x, $y, $z = Char.GetOffsetInWorldCoords(18@, 0.0, 2.0, 0.0)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:COKEC_2499
if 
is_ps2_keyboard_key_just_pressed 9
goto_if_false @COKEC_2573
if 
  not Char.IsDead(18@)
goto_if_false @COKEC_2573
if 
  not Car.IsDead(17@)
goto_if_false @COKEC_2573
if 
  Char.IsInCar(18@, 17@)
goto_if_false @COKEC_2573
Task.LeaveCarImmediately(18@, 17@)

:COKEC_2573
if 
is_ps2_keyboard_key_just_pressed 13
goto_if_false @COKEC_2673
if 
  not Char.IsDead(18@)
goto_if_false @COKEC_2673
$x, $y, $z = Char.GetOffsetInWorldCoords(18@, 0.0, -20.0, 0.0)
$z += 10.0
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_2673
Char.SetCoordinates($scplayer, $x, $y, $z)

:COKEC_2673
if 
  15@ == 0
goto_if_false @COKEC_2893
if 
  24@ == 0
goto_if_false @COKEC_2886
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_2886
if 
  not Char.IsDead(18@)
goto_if_false @COKEC_2886
if 
  Char.LocateAnyMeansChar3D($scplayer, 18@, 80.0, 80.0, 80.0, False)
goto_if_false @COKEC_2858
Char.SetCanBeKnockedOffBike(18@, False)
Char.SetProofs(18@, False, False, False, False, False)
if 
  not Car.IsDead(17@)
goto_if_false @COKEC_2830
Car.SetProofs(17@, False, False, False, False, False)

:COKEC_2830
Char.SetDrownsInWater(18@, True)
Char.SetCanBeKnockedOffBike(18@, False)
24@ = 1
goto @COKEC_2886

:COKEC_2858
if 
  11@ > 600000
goto_if_false @COKEC_2886
goto @COKEC_5529

:COKEC_2886
goto @COKEC_2893

:COKEC_2893
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_3044
if 
  24@ == 1
goto_if_false @COKEC_3044
if 
  not Char.IsDead(18@)
goto_if_false @COKEC_3044
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_3002
if or
  Char.LocateAnyMeansChar2D($scplayer, 18@, 100.0, 100.0, False)
  Char.IsOnScreen(18@)
goto_if_false @COKEC_3002
10@ = 0

:COKEC_3002
if 
  10@ > 20000
goto_if_false @COKEC_3044
Text.Print('BCR3_02', 4000, 1)
goto @COKEC_5529

:COKEC_3044
if 
  23@ == -1
goto_if_false @COKEC_3223
if 
  not Char.IsDead(18@)
goto_if_false @COKEC_3216
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_3216
if 
  Char.HasBeenDamagedByChar(18@, $scplayer)
goto_if_false @COKEC_3216
if 
  Object.DoesExist(22@)
goto_if_false @COKEC_3186
20@ = Particle.CreateOnObjectWithDirection("COKE_TRAIL", 22@, 0.0, -0.2, -0.1, 0.0, 0.0, -1.0, 1)
Particle.Play(20@)

:COKEC_3186
Text.Print('BCR3_04', 5000, 1)
23@ = 1
TIMERA = 0

:COKEC_3216
goto @COKEC_3274

:COKEC_3223
if 
  TIMERA > 180000
goto_if_false @COKEC_3274
if 
  23@ > 0
goto_if_false @COKEC_3274
Particle.Stop(20@)
23@ = 0

:COKEC_3274
if 
  Char.IsDead(18@)
goto_if_false @COKEC_3297
1@ += 1

:COKEC_3297
if 
  1@ == 4
goto_if_false @COKEC_3556
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_3556
if 
  Char.IsDead(18@)
goto_if_false @COKEC_3556
Particle.Stop(20@)
cset_lvar_float_to_lvar_int 5@ =# TIMERA
if 
  5@ > 180000.0
goto_if_false @COKEC_3391
5@ = 180000.0

:COKEC_3391
5@ /= 180000.0
5@ -= 1.0
5@ *= -1.0
5@ *= 2000.0
cset_lvar_int_to_lvar_float 23@ =# 5@
Blip.Remove(19@)
if 
  Object.DoesExist(22@)
goto_if_false @COKEC_3465
Object.Delete(22@)

:COKEC_3465
$x, $y, $z = World.GetDeadCharPickupCoords(18@)
21@ = Pickup.Create(#PARA_PACK, PickupType.Once, $x, $y, $z)
19@ = Blip.AddForCoord($x, $y, $z)
Blip.ChangeColor(19@, BlipColor.Green)
Text.PrintNow('BCR3_05', 4000, 1)
$phone_conversation_answer = 0
TIMERA = 0
1@ += 1

:COKEC_3556
if 
is_ps2_keyboard_key_just_pressed 24
goto_if_false @COKEC_3592
if 
  not Char.IsDead(18@)
goto_if_false @COKEC_3592
Task.Die(18@)

:COKEC_3592
if 
  $phone_conversation_answer == 0
goto_if_false @COKEC_3779
if 
  not Pickup.HasBeenCollected(21@)
goto_if_false @COKEC_3779
$x, $y, $z = Pickup.GetCoordinates(21@)
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_3779
if 
  Char.LocateAnyMeans2D($scplayer, $x, $y, 50.0, 50.0, False)
goto_if_false @COKEC_3779
5@ = World.GetGroundZFor3DCoord($x, $y, $z)
set_var_float_to_lvar_float $z = 5@
$z += 1.0
Pickup.Remove(21@)
Blip.Remove(19@)
21@ = Pickup.Create(#PARA_PACK, PickupType.Once, $x, $y, $z)
19@ = Blip.AddForCoord($x, $y, $z)
Blip.ChangeColor(19@, BlipColor.Green)
$phone_conversation_answer = 1

:COKEC_3779
if 
  1@ == 5
goto_if_false @COKEC_4021
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_4021
$x, $y, $z = Pickup.GetCoordinates(21@)
if 
  Char.LocateAnyMeans2D($scplayer, $x, $y, 300.0, 300.0, False)
goto_if_false @COKEC_4012
if 
  180000 > TIMERA
goto_if_false @COKEC_3996
if 
  21@ <> 0
goto_if_false @COKEC_3980
if 
  Pickup.HasBeenCollected(21@)
goto_if_false @COKEC_3973
if 
  23@ > 0
goto_if_false @COKEC_3950
Text.ClearPrints
13@ = 1
goto @COKEC_3966

:COKEC_3950
Text.PrintNow('BCR3_06', 7500, 1)

:COKEC_3966
goto @COKEC_5529

:COKEC_3973
goto @COKEC_3989

:COKEC_3980
Text.ClearPrints
goto @COKEC_5529

:COKEC_3989
goto @COKEC_4005

:COKEC_3996
Text.ClearPrints
goto @COKEC_5529

:COKEC_4005
goto @COKEC_4021

:COKEC_4012
Text.ClearPrints
goto @COKEC_5529

:COKEC_4021
if 
  24@ <> 0
goto_if_false @COKEC_4228
if 
  15@ == 0
goto_if_false @COKEC_4228
if 
  Car.DoesExist(17@)
goto_if_false @COKEC_4221
if 
  not Car.IsDead(17@)
goto_if_false @COKEC_4221
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_4221
if 
  Char.LocateAnyMeansCar3D($scplayer, 17@, 50.0, 50.0, 50.0, False)
goto_if_false @COKEC_4211
if 
  Char.LocateAnyMeansCar3D($scplayer, 17@, 20.0, 20.0, 20.0, False)
goto_if_false @COKEC_4194
Car.SetCruiseSpeed(17@, 45.0)
goto @COKEC_4204

:COKEC_4194
Car.SetCruiseSpeed(17@, 30.0)

:COKEC_4204
goto @COKEC_4221

:COKEC_4211
Car.SetCruiseSpeed(17@, 20.0)

:COKEC_4221
goto @COKEC_4228

:COKEC_4228
if 
  15@ == 0
goto_if_false @COKEC_4615
if 
  not Char.IsDead(18@)
goto_if_false @COKEC_4615
if 
  26@ <> -1
goto_if_false @COKEC_4615
if 
  not Car.IsDead(17@)
goto_if_false @COKEC_4615
if 
  Char.IsInCar(18@, 17@)
goto_if_false @COKEC_4615
if 
  Char.LocateInCar3D(18@, $3928(26@,85f), $4013(26@,85f), $4098(26@,85f), 25.0, 25.0, 25.0, False)
goto_if_false @COKEC_4470
26@ += 1
if 
  85 > 26@
goto_if_false @COKEC_4441
Task.CarDriveToCoord(18@, 17@, $3928(26@,85f), $4013(26@,85f), $4098(26@,85f), 25.0, DriveMode.Racing, 1, DrivingMode.AvoidCars)
goto @COKEC_4463

:COKEC_4441
Task.CarDriveWander(18@, 17@, 25.0, DrivingMode.AvoidCars)
26@ = -1

:COKEC_4463
goto @COKEC_4615

:COKEC_4470
if 
  85 > 26@
goto_if_false @COKEC_4564
2@ = Char.GetScriptTaskStatus(18@, 1489)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_4557
Task.CarDriveToCoord(18@, 17@, $3928(26@,85f), $4013(26@,85f), $4098(26@,85f), 25.0, DriveMode.Racing, 1, DrivingMode.AvoidCars)

:COKEC_4557
goto @COKEC_4615

:COKEC_4564
2@ = Char.GetScriptTaskStatus(18@, 1490)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_4615
Task.CarDriveWander(18@, 17@, 25.0, DrivingMode.AvoidCars)
26@ = -1

:COKEC_4615
if 
  not Char.IsDead(18@)
goto_if_false @COKEC_4730
if 
  not Object.DoesExist(22@)
goto_if_false @COKEC_4670
22@ = Object.Create(#PARA_PACK, 0.0, 0.0, 0.0)

:COKEC_4670
if 
  not Char.IsHoldingObject(18@, 22@)
goto_if_false @COKEC_4730
Task.PickUpObject(18@, 22@, -0.11, -0.05, 0.0, 1, 16, "NULL", "NULL", 0)

:COKEC_4730
if 
  27@ <> 0
goto_if_false @COKEC_4826
if 
  28@ == 0
goto_if_false @COKEC_4819
if 
  Car.DoesExist(17@)
goto_if_false @COKEC_4789
Car.FreezePosition(17@, True)

:COKEC_4789
if 
  Char.DoesExist(18@)
goto_if_false @COKEC_4812
Char.FreezePosition(18@, True)

:COKEC_4812
28@ = 1

:COKEC_4819
goto @COKEC_4897

:COKEC_4826
if 
  28@ == 1
goto_if_false @COKEC_4897
if 
  Car.DoesExist(17@)
goto_if_false @COKEC_4867
Car.FreezePosition(17@, False)

:COKEC_4867
if 
  Char.DoesExist(18@)
goto_if_false @COKEC_4890
Char.FreezePosition(18@, False)

:COKEC_4890
28@ = 0

:COKEC_4897
if 
  Car.DoesExist(17@)
goto_if_false @COKEC_5522
if 
  not Char.IsDead(18@)
goto_if_false @COKEC_5522
if 
  24@ == 1
goto_if_false @COKEC_5479
if 
  not Car.IsDead(17@)
goto_if_false @COKEC_5397
if 
  not Char.IsInCar(18@, 17@)
goto_if_false @COKEC_5390
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_5390
if 
  not Char.LocateOnFootChar3D($scplayer, 18@, 20.0, 20.0, 10.0, False)
goto_if_false @COKEC_5241
2@ = Char.GetScriptTaskStatus(18@, 1560)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5123
Char.ClearTasks(18@)
8@ = Sequence.Open()
Task.GotoCar(-1, 17@, 10000, 5.0)
Task.EnterCarAsDriver(-1, 17@, 10000)
Sequence.Close(8@)
Char.PerformSequence(18@, 8@)
Sequence.Clear(8@)
goto @COKEC_5234

:COKEC_5123
2@ = Char.GetScriptTaskStatus(18@, 1506)
if 
  not is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5234
2@ = Char.GetScriptTaskStatus(18@, 1560)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5234
Char.ClearTasks(18@)
8@ = Sequence.Open()
Task.GotoCar(-1, 17@, 10000, 5.0)
Task.EnterCarAsDriver(-1, 17@, 10000)
Sequence.Close(8@)
Char.PerformSequence(18@, 8@)
Sequence.Clear(8@)

:COKEC_5234
goto @COKEC_5390

:COKEC_5241
if 
  23@ == 1
goto_if_false @COKEC_5308
2@ = Char.GetScriptTaskStatus(18@, 1506)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5301
Char.ClearTasks(18@)
Task.KillCharOnFoot(18@, $scplayer)

:COKEC_5301
goto @COKEC_5390

:COKEC_5308
2@ = Char.GetScriptTaskStatus(18@, 1560)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5390
Char.ClearTasks(18@)
8@ = Sequence.Open()
Task.GotoCar(-1, 17@, 10000, 5.0)
Task.EnterCarAsDriver(-1, 17@, 10000)
Sequence.Close(8@)
Char.PerformSequence(18@, 8@)
Sequence.Clear(8@)

:COKEC_5390
goto @COKEC_5472

:COKEC_5397
2@ = Char.GetScriptTaskStatus(18@, 1560)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5472
8@ = Sequence.Open()
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_5454
Task.KillCharOnFoot(-1, $scplayer)

:COKEC_5454
Sequence.Close(8@)
Char.PerformSequence(18@, 8@)
Sequence.Clear(8@)

:COKEC_5472
goto @COKEC_5522

:COKEC_5479
if 
  not Car.IsDead(17@)
goto_if_false @COKEC_5522
if 
  not Char.IsInCar(18@, 17@)
goto_if_false @COKEC_5522
Char.WarpIntoCar(18@, 17@)

:COKEC_5522
goto @COKEC_403

:COKEC_5529
if 
  14@ == 1
goto_if_false @COKEC_5846
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_5570
Task.UseMobilePhone($scplayer, False)

:COKEC_5570
start_new_script @CLEANAU 
Audio.ClearMissionAudio(MissionAudioSlot.Slot1)
Audio.ClearMissionAudio(MissionAudioSlot.Slot2)
wait 1
Text.ClearHelp
if 
  13@ == 0
goto_if_false @COKEC_5617
23@ = 0

:COKEC_5617
if 
  16@ == 0
goto_if_false @COKEC_5683
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @COKEC_5664
Text.PrintNow('BCR3_08', 7500, 1)

:COKEC_5664
Text.PrintWithNumberBig('BCE2_04', 23@, 7500, TextStyle.MiddleSmallerHigher)

:COKEC_5683
if 
  13@ == 1
goto_if_false @COKEC_5761
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_5725
Player.AddScore($player1, 23@)

:COKEC_5725
if 
  $bcesar3_passed_mission == 0
goto_if_false @COKEC_5752
Stat.RegisterOddjobMissionPassed
$bcesar3_passed_mission += 1

:COKEC_5752
Audio.PlayMissionPassedTune(1)
Player.ClearWantedLevel($player1)

:COKEC_5761
Char.MarkAsNoLongerNeeded(18@)
Car.MarkAsNoLongerNeeded(17@)
Object.MarkAsNoLongerNeeded(22@)
Blip.Remove(19@)
Particle.Kill(20@)
Pickup.Remove(21@)
DecisionMaker.Remove(29@)
Streaming.MarkModelAsNoLongerNeeded(23)
Streaming.MarkModelAsNoLongerNeeded(468)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.RemoveCarRecording(556)
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Streaming.MarkModelAsNoLongerNeeded(330)
14@ = 0

:COKEC_5846
$flag_on_courier_mission = 0
terminate_this_script 
set_var_int_to_var_int $bce_point_to_edit = $checked_coke_pickup_z
$bce_point_to_edit -= 2
set_var_int_to_var_int $start_line_point = $checked_coke_pickup_z
$start_line_point += 2
if 
  0 > $bce_point_to_edit
goto_if_false @COKEC_5910
$bce_point_to_edit = 0

:COKEC_5910
if 
  $start_line_point > 84
goto_if_false @COKEC_5935
$start_line_point = 84

:COKEC_5935
set_lvar_int_to_var_int 2@ = $bce_point_to_edit

:COKEC_5943
if 
  is_int_var_greater_than_int_lvar $start_line_point > 2@
goto_if_false @COKEC_6053
set_lvar_int_to_lvar_int 3@ = 2@
3@ += 1
if 
  85 > 3@
goto_if_false @COKEC_6039
Debugger.Line($3928(2@,85f), $4013(2@,85f), $4098(2@,85f), $3928(3@,85f), $4013(3@,85f), $4098(3@,85f))

:COKEC_6039
2@ += 1
goto @COKEC_5943

:COKEC_6053
if 
is_ps2_keyboard_key_just_pressed 75
goto_if_false @COKEC_6124
$checked_coke_pickup_z += 1
if 
  $checked_coke_pickup_z > 84
goto_if_false @COKEC_6100
$checked_coke_pickup_z = 0

:COKEC_6100
write_debug_with_int "BCE_POINT_TO_EDIT" {_p2} $checked_coke_pickup_z

:COKEC_6124
if 
is_ps2_keyboard_key_just_pressed 78
goto_if_false @COKEC_6195
$checked_coke_pickup_z -= 1
if 
  0 > $checked_coke_pickup_z
goto_if_false @COKEC_6171
$checked_coke_pickup_z = 84

:COKEC_6171
write_debug_with_int "BCE_POINT_TO_EDIT" {_p2} $checked_coke_pickup_z

:COKEC_6195
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @COKEC_6224
$4013($checked_coke_pickup_z,85f) += 0.5

:COKEC_6224
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @COKEC_6253
$4013($checked_coke_pickup_z,85f) += -0.5

:COKEC_6253
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @COKEC_6282
$3928($checked_coke_pickup_z,85f) += 0.5

:COKEC_6282
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @COKEC_6311
$3928($checked_coke_pickup_z,85f) += -0.5

:COKEC_6311
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @COKEC_6340
$4098($checked_coke_pickup_z,85f) += 0.5

:COKEC_6340
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @COKEC_6369
$4098($checked_coke_pickup_z,85f) += -0.5

:COKEC_6369
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @COKEC_6398
$4013($checked_coke_pickup_z,85f) += 10.0

:COKEC_6398
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @COKEC_6427
$4013($checked_coke_pickup_z,85f) += -10.0

:COKEC_6427
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @COKEC_6456
$3928($checked_coke_pickup_z,85f) += 10.0

:COKEC_6456
if 
is_ps2_keyboard_key_just_pressed 4
goto_if_false @COKEC_6485
$3928($checked_coke_pickup_z,85f) += -10.0

:COKEC_6485
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @COKEC_7506
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("COKE COURIER ROUTE - EDIT POINT -")
save_int_to_debug_file $checked_coke_pickup_z
save_newline_to_debug_file 
2@ = 0

:COKEC_6646
if 
  85 > 2@
goto_if_false @COKEC_7506
Debugger.SaveStringToDebugFile("BCE2_CHECKPOINTS_X[")
save_int_to_debug_file 2@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $3928(2@,85f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BCE2_CHECKPOINTS_Y[")
save_int_to_debug_file 2@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $4013(2@,85f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BCE2_CHECKPOINTS_Z[")
save_int_to_debug_file 2@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $4098(2@,85f)
save_newline_to_debug_file 
2@ += 1
goto @COKEC_6646

:COKEC_7506
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @COKEC_7609
set_lvar_int_to_var_int 2@ = $checked_coke_pickup_z
2@ -= 1
if 
  0 > 2@
goto_if_false @COKEC_7561
2@ = 0

:COKEC_7561
set_var_float_to_var_float $3928($checked_coke_pickup_z,85f) = $3928(2@,85f)
set_var_float_to_var_float $4013($checked_coke_pickup_z,85f) = $4013(2@,85f)
set_var_float_to_var_float $4098($checked_coke_pickup_z,85f) = $4098(2@,85f)

:COKEC_7609
if 
  Player.IsPlaying($player1)
goto_if_false @COKEC_7711
  Char.LocateAnyMeans3D($scplayer, $3928($checked_coke_pickup_z,85f), $4013($checked_coke_pickup_z,85f), $4098($checked_coke_pickup_z,85f), 1.0, 1.0, 1.0, False)
  Char.LocateAnyMeans3D($scplayer, $3928($checked_coke_pickup_z,85f), $4013($checked_coke_pickup_z,85f), $4098($checked_coke_pickup_z,85f), 0.5, 0.5, 0.5, False)

:COKEC_7711
return 
terminate_this_script 

//-------------External script 4 (SLOT_MACHINE)---------------

:BANDIT
script_name 'BANDIT'
4@ = 0
6@ = 0
10@ = 0.0
11@ = 0.0
12@ = 0.0
13@ = 0
14@ = Math.RandomIntInRange(0, 5)
if 
  14@ == 1
goto_if_false @BANDIT_96
14@ = 5

:BANDIT_96
if 
  14@ == 0
goto_if_false @BANDIT_121
14@ = 1

:BANDIT_121
if 
  14@ == 2
goto_if_false @BANDIT_146
14@ = 10

:BANDIT_146
if 
  14@ == 3
goto_if_false @BANDIT_171
14@ = 20

:BANDIT_171
if 
  14@ == 4
goto_if_false @BANDIT_196
14@ = 50

:BANDIT_196
if 
  4@ == 1
goto_if_false @BANDIT_253
0@ = Object.CreateNoOffset(#KB_BANDIT_U, 0.0, 0.0, 0.0)
1@ = Object.CreateNoOffset(#CJ_WHEEL_1, $x, $y, $z)

:BANDIT_253
wait 0
$game_timer = Clock.GetGameTimer()
if 
  Object.DoesExist(0@)
goto_if_false @BANDIT_2859
if 
  Object.IsWithinBrainActivationRange(0@)
goto_if_false @BANDIT_2845
if 
  Player.IsPlaying($player1)
goto_if_false @BANDIT_2831
switch_start 4@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @BANDIT_2824 {caseNum1} 0 {caseLabel1} @BANDIT_373 {caseNum2} 1 {caseLabel2} @BANDIT_590 {caseNum3} 2 {caseLabel3} @BANDIT_792 {caseNum4} 3 {caseLabel4} @BANDIT_1356 {caseNum5} 4 {caseLabel5} @BANDIT_1595 {caseNum6} 5 {caseLabel6} @BANDIT_1943 {caseNum7} 6 {caseLabel7} @BANDIT_2549

:BANDIT_373
15@ = Object.GetModel(0@)
if 
  Streaming.HasModelLoaded(15@)
goto_if_false @BANDIT_583
$heading = Object.GetHeading(0@)
if 
  not Object.DoesExist(1@)
goto_if_false @BANDIT_462
$x, $y, $z = Object.GetLevelDesignCoords(0@, 1)
1@ = Object.CreateNoOffset(#CJ_WHEEL_1, $x, $y, $z)
Object.SetHeading(1@, $heading)

:BANDIT_462
if 
  not Object.DoesExist(2@)
goto_if_false @BANDIT_519
$x, $y, $z = Object.GetLevelDesignCoords(0@, 2)
2@ = Object.CreateNoOffset(#CJ_WHEEL_02, $x, $y, $z)
Object.SetHeading(2@, $heading)

:BANDIT_519
if 
  not Object.DoesExist(3@)
goto_if_false @BANDIT_576
$x, $y, $z = Object.GetLevelDesignCoords(0@, 3)
3@ = Object.CreateNoOffset(#CJ_WHEEL_03, $x, $y, $z)
Object.SetHeading(3@, $heading)

:BANDIT_576
4@ += 1

:BANDIT_583
goto @BANDIT_2824

:BANDIT_590
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, -1.0, -0.5)
16@ = World.GetUserOfClosestMapAttractor($x, $y, $z, 1.5, #KB_BANDIT_U, "PEDSLOT")
if 
  16@ == -1
goto_if_false @BANDIT_785
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.6, 0.6, 1.0, False)
goto_if_false @BANDIT_758
Text.PrintHelpForeverWithNumber('SLOT_02', 14@)
Pad.SetPlayerEnterCarButton($player1, False)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1814)
gosub @BANDIT_2873
4@ += 1
goto @BANDIT_785

:BANDIT_758
if 
  13@ == 1
goto_if_false @BANDIT_785
Txd.Remove
13@ = 0

:BANDIT_785
goto @BANDIT_2824

:BANDIT_792
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, -1.0, -0.5)
16@ = World.GetUserOfClosestMapAttractor($x, $y, $z, 1.5, #KB_BANDIT_U, "PEDSLOT")
if 
  16@ == -1
goto_if_false @BANDIT_1306
Streaming.RequestAnimation("CASINO")
if 
  Streaming.HasAnimationLoaded("CASINO")
goto_if_false @BANDIT_1299
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.6, 0.6, 1.0, False)
goto_if_false @BANDIT_1256
17@ = World.GetRandomCharInAreaOffsetNoSave($x, $y, $z, 0.6, 0.6, 1.0)
if 
  17@ == -1
goto_if_false @BANDIT_1249
if 
  not Game.IsMinigameInProgress
goto_if_false @BANDIT_1249
gosub @BANDIT_2873
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BANDIT_1249
set_var_int_to_lvar_int $sequence_task_obj = 14@
$sequence_task_obj -= 1
if 
  Player.IsScoreGreater($player1, $sequence_task_obj)
goto_if_false @BANDIT_1229
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
$heading = Object.GetHeading(0@)
Task.CharSlideToCoordAndPlayAnim($scplayer, $x, $y, $z, $heading, 0.4, "SLOT_PLYR", "CASINO", 4.0, False, False, False, False, 0)
set_var_int_to_lvar_int $sequence_task_obj = 14@
$sequence_task_obj *= -1
Player.AddScore($player1, $sequence_task_obj)
Stat.IncrementInt(StatId.MoneySpentGambling, 14@)
cset_var_float_to_lvar_int $an =# 14@
$an *= 0.001
Stat.IncrementFloat(StatId.Gambling, $an)
Text.ClearHelp
Game.SetMinigameInProgress(True)
set_lvar_int_to_var_int 5@ = $game_timer
5@ += 750
4@ += 1
goto @BANDIT_1249

:BANDIT_1229
Sound.AddOneOffSound(0.0, 0.0, 0.0, ScriptSound.SoundAmmunationBuyWeaponDenied)

:BANDIT_1249
goto @BANDIT_1299

:BANDIT_1256
if 
  13@ == 1
goto_if_false @BANDIT_1283
Txd.Remove
13@ = 0

:BANDIT_1283
Text.ClearHelp
Pad.SetPlayerEnterCarButton($player1, True)
4@ = 1

:BANDIT_1299
goto @BANDIT_1349

:BANDIT_1306
if 
  13@ == 1
goto_if_false @BANDIT_1333
Txd.Remove
13@ = 0

:BANDIT_1333
Text.ClearHelp
Pad.SetPlayerEnterCarButton($player1, True)
4@ = 1

:BANDIT_1349
goto @BANDIT_2824

:BANDIT_1356
gosub @BANDIT_2873
if 
  is_int_var_greater_than_int_lvar $game_timer > 5@
goto_if_false @BANDIT_1588
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1814)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @BANDIT_1424
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1087)

:BANDIT_1424
Pad.SetPlayerEnterCarButton($player1, True)
Text.UseCommands(True)
if 
  13@ == 0
goto_if_false @BANDIT_1539
Txd.LoadDictionary('LD_SLOT')
Txd.LoadSprite(1, "CHERRY")
Txd.LoadSprite(2, "GRAPES")
Txd.LoadSprite(3, "R_69")
Txd.LoadSprite(4, "BELL")
Txd.LoadSprite(5, "BAR1_O")
Txd.LoadSprite(6, "BAR2_O")
13@ = 1

:BANDIT_1539
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1814)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @BANDIT_1581
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1089)

:BANDIT_1581
4@ += 1

:BANDIT_1588
goto @BANDIT_2824

:BANDIT_1595
add_timed_val_to_float_lvar 10@ +=@ 1.0
if 
  10@ > 10.0
goto_if_false @BANDIT_1682
10@ = 10.0
$sequence_task_obj = Math.RandomIntInRange(2000, 3000)
6@ = 0
set_lvar_int_to_var_int 5@ = $game_timer
add_int_var_to_int_lvar 5@ += $sequence_task_obj
Char.ClearTasks($scplayer)
4@ += 1

:BANDIT_1682
add_timed_val_to_float_lvar 11@ +=@ 1.1
if 
  11@ > 10.0
goto_if_false @BANDIT_1723
11@ = 10.0

:BANDIT_1723
add_timed_val_to_float_lvar 12@ +=@ 1.05
if 
  12@ > 10.0
goto_if_false @BANDIT_1764
12@ = 10.0

:BANDIT_1764
$heading = Object.GetHeading(0@)
$temp_integer_4 = 0

:BANDIT_1779
if 
  3 > $temp_integer_4
goto_if_false @BANDIT_1929
if 
  10@($temp_integer_4,3f) > 0.0
goto_if_false @BANDIT_1915
add_timed_float_lvar_to_float_lvar 7@($temp_integer_4,3f) +=@ 10@($temp_integer_4,3f)
if or
  7@($temp_integer_4,3f) > 360.0
  7@($temp_integer_4,3f) == 360.0
goto_if_false @BANDIT_1891
7@($temp_integer_4,3f) -= 360.0

:BANDIT_1891
Object.SetRotation(1@($temp_integer_4,3i), 7@($temp_integer_4,3f), 0.0, $heading)

:BANDIT_1915
$temp_integer_4 += 1
goto @BANDIT_1779

:BANDIT_1929
gosub @BANDIT_2873
goto @BANDIT_2824

:BANDIT_1943
if 
  is_int_var_greater_than_int_lvar $game_timer > 5@
goto_if_false @BANDIT_2370
sub_timed_val_from_float_lvar 10@(6@,3f) -=@ 0.3
if 
  0.6 > 10@(6@,3f)
goto_if_false @BANDIT_2370
set_var_float_to_lvar_float $an = 7@(6@,3f)
$an /= 20.0
cset_var_int_to_var_float $sequence_task_obj =# $an
$sequence_task_obj *= 20
cset_var_float_to_var_int $an =# $sequence_task_obj
set_var_float_to_lvar_float $temp_float_1 = 7@(6@,3f)
sub_float_var_from_float_var $temp_float_1 -= $an
if 
  10.0 > $temp_float_1
goto_if_false @BANDIT_2356
10@(6@,3f) = 0.0
set_var_float_to_lvar_float $an = 7@(6@,3f)
$an /= 20.0
cset_var_int_to_var_float $sequence_task_obj =# $an
cset_lvar_float_to_var_int 7@(6@,3f) =# $sequence_task_obj
7@(6@,3f) *= 20.0
$sequence_task_obj = Math.RandomIntInRange(750, 1000)
set_lvar_int_to_var_int 5@ = $game_timer
add_int_var_to_int_lvar 5@ += $sequence_task_obj
if 
  2 > 6@
goto_if_false @BANDIT_2300
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1814)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @BANDIT_2244
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1088)

:BANDIT_2244
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1814)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @BANDIT_2286
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1089)

:BANDIT_2286
6@ += 1
goto @BANDIT_2349

:BANDIT_2300
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1814)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @BANDIT_2342
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1088)

:BANDIT_2342
4@ += 1

:BANDIT_2349
goto @BANDIT_2370

:BANDIT_2356
10@(6@,3f) = 0.6

:BANDIT_2370
$heading = Object.GetHeading(0@)
$temp_integer_4 = 0

:BANDIT_2385
if 
  3 > $temp_integer_4
goto_if_false @BANDIT_2535
if 
  10@($temp_integer_4,3f) > 0.0
goto_if_false @BANDIT_2521
add_timed_float_lvar_to_float_lvar 7@($temp_integer_4,3f) +=@ 10@($temp_integer_4,3f)
if or
  7@($temp_integer_4,3f) > 360.0
  7@($temp_integer_4,3f) == 360.0
goto_if_false @BANDIT_2497
7@($temp_integer_4,3f) -= 360.0

:BANDIT_2497
Object.SetRotation(1@($temp_integer_4,3i), 7@($temp_integer_4,3f), 0.0, $heading)

:BANDIT_2521
$temp_integer_4 += 1
goto @BANDIT_2385

:BANDIT_2535
gosub @BANDIT_2873
goto @BANDIT_2824

:BANDIT_2549
set_var_float_to_lvar_float $an = 7@
$an /= 20.0
cset_var_int_to_var_float $sequence_task_obj =# $an
set_var_float_to_lvar_float $an = 8@
$an /= 20.0
cset_var_int_to_var_float $temp_integer_1 =# $an
set_var_float_to_lvar_float $an = 9@
$an /= 20.0
cset_var_int_to_var_float $temp_integer_2 =# $an
if and
  is_int_var_equal_to_int_var $bar2_o($sequence_task_obj,18i) == $3430($temp_integer_1,18i)
  is_int_var_equal_to_int_var $bar2_o($sequence_task_obj,18i) == $3448($temp_integer_2,18i)
goto_if_false @BANDIT_2772
set_var_int_to_lvar_int $temp_integer_3 = 14@
mult_int_var_by_int_var $temp_integer_3 *= $bar2_o($sequence_task_obj,18i)
start_new_script @CASHWIN $temp_integer_3 
Player.AddScore($player1, $temp_integer_3)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1814)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @BANDIT_2751
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1090)

:BANDIT_2751
Stat.IncrementInt(StatId.MoneyWonGambling, $temp_integer_3)
Stat.RegisterInt(StatId.BiggestGamblingWin, $temp_integer_3)
goto @BANDIT_2792

:BANDIT_2772
start_new_script @CASHWIN 0 2500 
Stat.RegisterInt(StatId.BiggestGamblingLoss, 14@)

:BANDIT_2792
Player.SetControl($player1, True)
Game.SetMinigameInProgress(False)
4@ = 1
gosub @BANDIT_2873
goto @BANDIT_2824

:BANDIT_2824
goto @BANDIT_2838

:BANDIT_2831
goto @BANDIT_3455

:BANDIT_2838
goto @BANDIT_2852

:BANDIT_2845
goto @BANDIT_3455

:BANDIT_2852
goto @BANDIT_2866

:BANDIT_2859
goto @BANDIT_3455

:BANDIT_2866
goto @BANDIT_253

:BANDIT_2873
if 
  13@ == 1
goto_if_false @BANDIT_3453
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawWindow($reel_sprite_x, $reel_sprite_y, $3468, $3473, 'DUMMY', 0)
$temp_integer_4 = 0

:BANDIT_2927
if 
  3 > $temp_integer_4
goto_if_false @BANDIT_3453
set_var_float_to_lvar_float $an = 7@($temp_integer_4,3f)
$an /= 20.0
cset_var_int_to_var_float $sequence_task_obj =# $an
if 
  $temp_integer_4 == 0
goto_if_false @BANDIT_3013
set_var_int_to_var_int $temp_integer_1 = $bar2_o($sequence_task_obj,18i)
set_var_float_to_var_float $temp_float_3 = $3466

:BANDIT_3013
if 
  $temp_integer_4 == 1
goto_if_false @BANDIT_3061
set_var_int_to_var_int $temp_integer_1 = $3430($sequence_task_obj,18i)
set_var_float_to_var_float $temp_float_3 = $3466
$temp_float_3 += 64.0

:BANDIT_3061
if 
  $temp_integer_4 == 2
goto_if_false @BANDIT_3109
set_var_int_to_var_int $temp_integer_1 = $3448($sequence_task_obj,18i)
set_var_float_to_var_float $temp_float_3 = $3466
$temp_float_3 += 128.0

:BANDIT_3109
if 
  is_int_var_equal_to_int_var $temp_integer_1 == $z_temp
goto_if_false @BANDIT_3164
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(1, $temp_float_3, $3471, 64.0, 64.0, 200, 200, 200, 255)

:BANDIT_3164
if 
  is_int_var_equal_to_int_var $temp_integer_1 == $cherry
goto_if_false @BANDIT_3219
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(2, $temp_float_3, $3471, 64.0, 64.0, 200, 200, 200, 255)

:BANDIT_3219
if 
  is_int_var_equal_to_int_var $temp_integer_1 == $grape
goto_if_false @BANDIT_3274
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(3, $temp_float_3, $3471, 64.0, 64.0, 200, 200, 200, 255)

:BANDIT_3274
if 
  is_int_var_equal_to_int_var $temp_integer_1 == $r_69
goto_if_false @BANDIT_3329
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, $temp_float_3, $3471, 64.0, 64.0, 200, 200, 200, 255)

:BANDIT_3329
if 
  is_int_var_equal_to_int_var $temp_integer_1 == $bell
goto_if_false @BANDIT_3384
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(5, $temp_float_3, $3471, 64.0, 64.0, 200, 200, 200, 255)

:BANDIT_3384
if 
  is_int_var_equal_to_int_var $temp_integer_1 == $bar1_o
goto_if_false @BANDIT_3439
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(6, $temp_float_3, $3471, 64.0, 64.0, 200, 200, 200, 255)

:BANDIT_3439
$temp_integer_4 += 1
goto @BANDIT_2927

:BANDIT_3453
return 

:BANDIT_3455
if 
  4@ > 0
goto_if_false @BANDIT_3550
if 
  4@ > 1
goto_if_false @BANDIT_3500
Text.ClearHelp
Pad.SetPlayerEnterCarButton($player1, True)

:BANDIT_3500
if 
  4@ > 2
goto_if_false @BANDIT_3528
Streaming.RemoveAnimation("CASINO")

:BANDIT_3528
Object.Delete(1@)
Object.Delete(2@)
Object.Delete(3@)
4@ = 0

:BANDIT_3550
if 
  13@ == 1
goto_if_false @BANDIT_3577
Txd.Remove
13@ = 0

:BANDIT_3577
terminate_this_script 
return 
terminate_this_script 

//-------------External script 5 (ROULETTE)---------------

:ROULETE
script_name 'ROULETE'
1@ = 0
if 
  1@ == 1
goto_if_false @ROULETE_79
0@ = Object.CreateNoOffset(#ROULETTE_TBL, 0.0, 0.0, 0.0)
$gambling_stat($8548,151i) = Object.CreateNoOffset(#CHIP_STACK07, $x, $y, $z)

:ROULETE_79
2@ = 0
3@ = 0
4@ = 0
5@ = 0
8@ = 0
9@ = 0
7@ = 0
10@ = 500
11@ = 500
12@ = 0
13@ = 0
14@ = 0
15@ = 0
16@ = Stat.GetFloat(StatId.Gambling)
18@ = Math.RandomIntInRange(0, 19)
$total_roulette_tables += 1
if 
  1.0 > 16@
goto_if_false @ROULETE_255
if or
  $total_roulette_tables == 1
  $total_roulette_tables == 5
goto_if_false @ROULETE_248
18@ = 0

:ROULETE_248
goto @ROULETE_467

:ROULETE_255
if 
  10.0 > 16@
goto_if_false @ROULETE_315
if or
  $total_roulette_tables == 1
  $total_roulette_tables == 5
goto_if_false @ROULETE_308
18@ = 5

:ROULETE_308
goto @ROULETE_467

:ROULETE_315
if 
  100.0 > 16@
goto_if_false @ROULETE_375
if or
  $total_roulette_tables == 1
  $total_roulette_tables == 5
goto_if_false @ROULETE_368
18@ = 10

:ROULETE_368
goto @ROULETE_467

:ROULETE_375
if 
  1000.0 > 16@
goto_if_false @ROULETE_435
if or
  $total_roulette_tables == 1
  $total_roulette_tables == 5
goto_if_false @ROULETE_428
18@ = 14

:ROULETE_428
goto @ROULETE_467

:ROULETE_435
if or
  $total_roulette_tables == 1
  $total_roulette_tables == 5
goto_if_false @ROULETE_467
18@ = 17

:ROULETE_467
if or
  18@ == 0
  18@ == 1
  18@ == 2
  18@ == 3
  18@ == 4
goto_if_false @ROULETE_528
17@ = 1
19@ = -342

:ROULETE_528
if or
  18@ == 5
  18@ == 6
  18@ == 7
  18@ == 8
  18@ == 9
goto_if_false @ROULETE_589
17@ = 10
19@ = -343

:ROULETE_589
if or
  18@ == 10
  18@ == 11
  18@ == 12
  18@ == 13
goto_if_false @ROULETE_643
17@ = 100
19@ = -344

:ROULETE_643
if or
  18@ == 14
  18@ == 15
  18@ == 16
goto_if_false @ROULETE_691
17@ = 1000
19@ = -345

:ROULETE_691
if or
  18@ == 17
  18@ == 18
goto_if_false @ROULETE_732
17@ = 10000
19@ = -346

:ROULETE_732
18@ = 0
20@ = 0
set_lvar_int_to_lvar_int 21@ = 17@
21@ *= 100
22@ = 0
$sequence_task_obj = Math.RandomIntInRange(0, 2)
if 
  $sequence_task_obj == 0
goto_if_false @ROULETE_809
set_lvar_int_to_constant 23@ = 11
goto @ROULETE_817

:ROULETE_809
set_lvar_int_to_constant 23@ = 172

:ROULETE_817
$8548 = 0

:ROULETE_824
if 
  151 > $8548
goto_if_false @ROULETE_868
$end_line_point($8548,151i) = 0
$8548 += 1
goto @ROULETE_824

:ROULETE_868
$i = 0
$winnings_this_round = 0
if 
  22@ == 1
goto_if_false @ROULETE_909
22@ = 0
return 

:ROULETE_909
24@ = 0.0
25@ = 0.0

:ROULETE_929
wait 0
$game_timer = Clock.GetGameTimer()
if 
  Object.DoesExist(0@)
goto_if_false @ROULETE_7879
if 
  Object.IsWithinBrainActivationRange(0@)
goto_if_false @ROULETE_7735
if 
  $iTerminateAllAmbience == 0
goto_if_false @ROULETE_7591
if 
  Player.IsPlaying($player1)
goto_if_false @ROULETE_7456
if 
  1@ == 0
goto_if_false @ROULETE_1034
Streaming.RequestModel(23@)
1@ += 1

:ROULETE_1034
if 
  1@ == 1
goto_if_false @ROULETE_1169
Streaming.RequestModel(23@)
if 
  Streaming.HasModelLoaded(23@)
goto_if_false @ROULETE_1169
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 1.208, 0.571, -1.144)
26@ = Char.Create(PedType.CivFemale, 23@, $x, $y, $z)
$heading = Object.GetHeading(0@)
$heading += 90.0
Char.SetHeading(26@, $heading)
Char.SetDecisionMaker(26@, $iGlobalPedPanicDM)
Object.EnableDisabledAttractors(0@, True)
1@ += 1

:ROULETE_1169
if 
  1@ == 2
goto_if_false @ROULETE_1271
if 
  Char.LocateOnFootObject2D($scplayer, 0@, 5.0, 5.0, False)
goto_if_false @ROULETE_1271
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, -0.215, 1.34, -0.086)
27@ = Object.CreateNoOffset(#WHEEL_WEE, $x, $y, $z)
1@ += 1

:ROULETE_1271
if 
  1@ == 3
goto_if_false @ROULETE_1593
if 
  Char.LocateOnFootObject2D($scplayer, 0@, 5.0, 5.0, False)
goto_if_false @ROULETE_1593
if 
  $fFunTemp == 0
goto_if_false @ROULETE_1593
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, -1.839, -2.4444, -0.6)
$temp_float_3, $x_temp, $y_temp = Object.GetOffsetInWorldCoords(0@, 0.761, 0.9556, 0.6)
if 
  Char.IsInAreaOnFoot3D($scplayer, $x, $y, $z, $temp_float_3, $x_temp, $y_temp, False)
goto_if_false @ROULETE_1593
if 
  17@ == 1
goto_if_false @ROULETE_1461
Text.PrintHelpForever('SLOT_06')

:ROULETE_1461
if 
  17@ == 10
goto_if_false @ROULETE_1490
Text.PrintHelpForever('SLOT_07')

:ROULETE_1490
if 
  17@ == 100
goto_if_false @ROULETE_1519
Text.PrintHelpForever('SLOT_08')

:ROULETE_1519
if 
  17@ == 1000
goto_if_false @ROULETE_1549
Text.PrintHelpForever('SLOT_09')

:ROULETE_1549
if 
  17@ == 10000
goto_if_false @ROULETE_1579
Text.PrintHelpForever('SLOT_10')

:ROULETE_1579
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1813)
1@ += 1

:ROULETE_1593
if 
  1@ == 4
goto_if_false @ROULETE_2950
if 
  $3488 == 0
goto_if_false @ROULETE_2950
if 
  Char.LocateOnFootObject2D($scplayer, 0@, 5.0, 5.0, False)
goto_if_false @ROULETE_2950
if 
  $fFunTemp == 0
goto_if_false @ROULETE_2941
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, -1.839, -2.4444, -0.6)
$temp_float_3, $x_temp, $y_temp = Object.GetOffsetInWorldCoords(0@, 0.761, 0.9556, 0.6)
if 
  Char.IsInAreaOnFoot3D($scplayer, $x, $y, $z, $temp_float_3, $x_temp, $y_temp, False)
goto_if_false @ROULETE_2925
if 
  Player.CanStartMission($player1)
goto_if_false @ROULETE_2918
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @ROULETE_2911
if 
  9@ == 0
goto_if_false @ROULETE_2904
$temp_int_roulette = Stat.GetInt(StatId.Gambling)
if 
  17@ == 10
goto_if_false @ROULETE_1975
if 
  $temp_int_roulette < 1
goto_if_false @ROULETE_1975
Text.PrintNow('GAMBSTA', 4000, 1)
if 
  not Char.IsDead(26@)
goto_if_false @ROULETE_1968
$temp_integer_4 = Math.RandomIntInRange(0, 2)
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_1950
Char.SetSayScript(26@, $3816($temp_integer_4,3i), True, True, False)
goto @ROULETE_1968

:ROULETE_1950
Char.SetSayScript(26@, $3875($temp_integer_4,3i), True, True, False)

:ROULETE_1968
goto @ROULETE_929

:ROULETE_1975
if 
  17@ == 100
goto_if_false @ROULETE_2120
if 
  $temp_int_roulette < 10
goto_if_false @ROULETE_2120
Text.PrintNow('GAMBSTA', 4000, 1)
if 
  not Char.IsDead(26@)
goto_if_false @ROULETE_2113
$temp_integer_4 = Math.RandomIntInRange(0, 2)
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_2095
Char.SetSayScript(26@, $3816($temp_integer_4,3i), True, True, False)
goto @ROULETE_2113

:ROULETE_2095
Char.SetSayScript(26@, $3875($temp_integer_4,3i), True, True, False)

:ROULETE_2113
goto @ROULETE_929

:ROULETE_2120
if 
  17@ == 1000
goto_if_false @ROULETE_2266
if 
  $temp_int_roulette < 100
goto_if_false @ROULETE_2266
Text.PrintNow('GAMBSTA', 4000, 1)
if 
  not Char.IsDead(26@)
goto_if_false @ROULETE_2259
$temp_integer_4 = Math.RandomIntInRange(0, 2)
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_2241
Char.SetSayScript(26@, $3816($temp_integer_4,3i), True, True, False)
goto @ROULETE_2259

:ROULETE_2241
Char.SetSayScript(26@, $3875($temp_integer_4,3i), True, True, False)

:ROULETE_2259
goto @ROULETE_929

:ROULETE_2266
if 
  17@ == 10000
goto_if_false @ROULETE_2413
if 
  $temp_int_roulette <= 999
goto_if_false @ROULETE_2413
Text.PrintNow('GAMBSTA', 4000, 1)
if 
  not Char.IsDead(26@)
goto_if_false @ROULETE_2406
$temp_integer_4 = Math.RandomIntInRange(0, 2)
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_2388
Char.SetSayScript(26@, $3816($temp_integer_4,3i), True, True, False)
goto @ROULETE_2406

:ROULETE_2388
Char.SetSayScript(26@, $3875($temp_integer_4,3i), True, True, False)

:ROULETE_2406
goto @ROULETE_929

:ROULETE_2413
Text.ClearHelp
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Game.SetAllCarsCanBeDamaged(False)
$x, $y, $z = Object.GetCoordinates(0@)
Task.TurnCharToFaceCoord($scplayer, $x, $y, $z)
if 
  Game.IsWidescreenOnInOptions
goto_if_false @ROULETE_2578
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, -0.632, -1.9669, 1.9144)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, -0.5003, -1.3914, 1.1073)
Camera.PointAtPoint($x, $y, $z, SwitchType.Interpolation)
goto @ROULETE_2675

:ROULETE_2578
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, -0.5689, -1.5476, 1.8759)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, -0.4106, -1.0626, 1.0159)
Camera.PointAtPoint($x, $y, $z, SwitchType.Interpolation)

:ROULETE_2675
Camera.SetNearClip(0.1)
Text.UseCommands(True)
Txd.LoadDictionary('LD_ROUL')
if 
  not Char.IsDead(26@)
goto_if_false @ROULETE_2783
$temp_integer_4 = Math.RandomIntInRange(0, 2)
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_2765
Char.SetSayScript(26@, $3827($temp_integer_4,2i), True, True, False)
goto @ROULETE_2783

:ROULETE_2765
Char.SetSayScript(26@, $3886($temp_integer_4,2i), True, True, False)

:ROULETE_2783
Txd.LoadSprite(1, "ROULBLA")
Txd.LoadSprite(2, "ROULRED")
Txd.LoadSprite(3, "ROULGRE")
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, $spot_size_y, $spot1_x, $spot1_y)
$z += 0.01
$total_stake_this_round = Object.CreateNoOffset(#ROULETTE_MARKER, $x, $y, $z)
Game.SetMinigameInProgress(True)
$3488 = 1
28@ = 0
1@ += 1
9@ = 1

:ROULETE_2904
goto @ROULETE_2918

:ROULETE_2911
9@ = 0

:ROULETE_2918
goto @ROULETE_2934

:ROULETE_2925
Text.ClearHelp
1@ = 3

:ROULETE_2934
goto @ROULETE_2950

:ROULETE_2941
Text.ClearHelp
1@ = 3

:ROULETE_2950
if 
  1@ == 5
goto_if_false @ROULETE_7449
Hud.DisplayRadar(False)
if 
  $spot_increment_y > 0
goto_if_false @ROULETE_3503
$3808 += 2.0
$sprite_x += 2.0
Hud.DrawSprite(1, $3808, $sprite_x, 64.0, 64.0, 0, 0, 0, 255)
$3808 -= 2.0
$sprite_x -= 2.0
if 
  18@ == 0
goto_if_false @ROULETE_3116
Hud.DrawSprite(3, $3808, $sprite_x, 64.0, 64.0, 180, 180, 180, 255)
goto @ROULETE_3424

:ROULETE_3116
if or
  18@ == 1
  18@ == 3
  18@ == 5
  18@ == 7
  18@ == 9
  18@ == 12
goto_if_false @ROULETE_3208
Hud.DrawSprite(2, $3808, $sprite_x, 64.0, 64.0, 180, 180, 180, 255)
goto @ROULETE_3424

:ROULETE_3208
if or
  18@ == 14
  18@ == 16
  18@ == 18
  18@ == 19
  18@ == 21
  18@ == 23
goto_if_false @ROULETE_3300
Hud.DrawSprite(2, $3808, $sprite_x, 64.0, 64.0, 180, 180, 180, 255)
goto @ROULETE_3424

:ROULETE_3300
if or
  18@ == 25
  18@ == 27
  18@ == 30
  18@ == 32
  18@ == 34
  18@ == 36
goto_if_false @ROULETE_3392
Hud.DrawSprite(2, $3808, $sprite_x, 64.0, 64.0, 180, 180, 180, 255)
goto @ROULETE_3424

:ROULETE_3392
Hud.DrawSprite(1, $3808, $sprite_x, 64.0, 64.0, 180, 180, 180, 255)

:ROULETE_3424
set_var_float_to_var_float $chips_stack = $3808
$chips_stack += -1.6679
set_var_float_to_var_float $text_positionn_x = $sprite_x
$text_positionn_x += -30.0255
gosub @ROULETE_18193
Text.SetScale(0.9423, 4.2306)
Text.SetCenter(True)
Text.DisplayWithNumber($chips_stack, $text_positionn_x, 'NUMBER', 18@)

:ROULETE_3503
Hud.DrawWindow($3478, $3482, $3479, $3483, 'ROUWAGE', 2)
gosub @ROULETE_18193
Text.SetColor(134, 155, 184, 255)
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @ROULETE_3579
Text.SetScale(0.42, 2.5077)

:ROULETE_3579
Text.Display($3476, $3480, 'ROU_MAX')
set_var_float_to_var_float $text_positionn_x = $3480
add_float_var_to_float_var $text_positionn_x += $rou_text_y
gosub @ROULETE_18193
Text.SetScale($rou_x_scale, $rou_y_scale)
Text.DisplayWithNumber($3476, $text_positionn_x, 'DOLLAR', 21@)
add_float_var_to_float_var $text_positionn_x += $rou_text_x
gosub @ROULETE_18193
Text.SetColor(134, 155, 184, 255)
Text.Display($3476, $text_positionn_x, 'ROUYOUR')
add_float_var_to_float_var $text_positionn_x += $rou_text_y
gosub @ROULETE_18193
Text.SetScale($rou_x_scale, $rou_y_scale)
Text.DisplayWithNumber($3476, $text_positionn_x, 'DOLLAR', $winnings_this_round)
add_float_var_to_float_var $text_positionn_x += $rou_text_x
gosub @ROULETE_18193
if 
  $spot_increment_y > 0
goto_if_false @ROULETE_3850
Text.SetColor(134, 155, 184, 255)
Text.Display($3476, $text_positionn_x, 'ROU_WON')
add_float_var_to_float_var $text_positionn_x += $rou_text_y
gosub @ROULETE_18193
Text.SetScale($rou_x_scale, $rou_y_scale)
Text.DisplayWithNumber($3476, $text_positionn_x, 'DOLLAR', $i)
goto @ROULETE_3924

:ROULETE_3850
Text.SetColor(134, 155, 184, 255)
Text.Display($3476, $text_positionn_x, 'ROUTHIS')
add_float_var_to_float_var $text_positionn_x += $rou_text_y
gosub @ROULETE_18193
Text.SetScale($rou_x_scale, $rou_y_scale)
Text.DisplayWithNumber($3476, $text_positionn_x, 'DOLLAR', 20@)

:ROULETE_3924
if 
  $spot_increment_y == 0
goto_if_false @ROULETE_4536
Text.PrintHelpForever('ROUHELP')
Object.SetVisible($total_stake_this_round, True)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @ROULETE_4238
if 
  7@ == 0
goto_if_false @ROULETE_4231
if 
  $winnings_this_round > 0
goto_if_false @ROULETE_4189
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1813)
if 
  not Char.IsDead(26@)
goto_if_false @ROULETE_4106
$temp_integer_4 = Math.RandomIntInRange(0, 3)
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_4088
Char.SetSayScript(26@, $sprite_y($temp_integer_4,3i), True, True, False)
goto @ROULETE_4106

:ROULETE_4088
Char.SetSayScript(26@, $3869($temp_integer_4,3i), True, True, False)

:ROULETE_4106
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @ROULETE_4141
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1086)

:ROULETE_4141
Stat.IncrementInt(StatId.MoneySpentGambling, $winnings_this_round)
cset_var_float_to_var_int $an =# $winnings_this_round
$an *= 0.001
Text.ClearHelp
Stat.IncrementFloat(StatId.Gambling, $an)
$spot_increment_y += 1
goto @ROULETE_4224

:ROULETE_4189
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @ROULETE_4224
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1085)

:ROULETE_4224
7@ += 1

:ROULETE_4231
goto @ROULETE_4245

:ROULETE_4238
7@ = 0

:ROULETE_4245
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @ROULETE_4522
if 
  9@ == 0
goto_if_false @ROULETE_4515
9@ += 1
$spot_increment_y = 0
1@ = 3
if 
  not Char.IsDead(26@)
goto_if_false @ROULETE_4387
$temp_integer_4 = Math.RandomIntInRange(0, 2)
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_4369
Char.SetSayScript(26@, $3825($temp_integer_4,2i), True, True, False)
goto @ROULETE_4387

:ROULETE_4369
Char.SetSayScript(26@, $3884($temp_integer_4,2i), True, True, False)

:ROULETE_4387
Hud.DisplayRadar(True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Text.UseCommands(False)
Txd.Remove
Text.ClearHelp
Object.Delete($total_stake_this_round)
Player.AddScore($player1, $winnings_this_round)
22@ = 1
gosub @ROULETE_817
$8548 = 0

:ROULETE_4455
if 
  151 > $8548
goto_if_false @ROULETE_4497
Object.Delete($gambling_stat($8548,151i))
$8548 += 1
goto @ROULETE_4455

:ROULETE_4497
Game.SetMinigameInProgress(False)
$3488 = 0
goto @ROULETE_929

:ROULETE_4515
goto @ROULETE_4529

:ROULETE_4522
9@ = 0

:ROULETE_4529
gosub @ROULETE_8023

:ROULETE_4536
if 
  $spot_increment_y == 1
goto_if_false @ROULETE_4625
Object.SetVisible($total_stake_this_round, False)
add_timed_val_to_float_lvar 24@ +=@ 0.5
if or
  24@ > 20.0
  24@ == 20.0
goto_if_false @ROULETE_4625
set_var_int_to_var_int $roulette_flag = $game_timer
$roulette_flag += 1500
$spot_increment_y += 1

:ROULETE_4625
if 
  $spot_increment_y == 2
goto_if_false @ROULETE_4803
if 
  is_int_var_greater_than_int_var $game_timer > $roulette_flag
goto_if_false @ROULETE_4803
sub_timed_val_from_float_lvar 24@ -=@ 0.08
if or
  0.0 > 24@
  24@ == 0.0
goto_if_false @ROULETE_4803
18@ = Math.RandomIntInRange(0, 37)
if 
  not Char.IsDead(26@)
goto_if_false @ROULETE_4789
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_4771
Char.SetSayScript(26@, $3829(18@,37i), True, True, False)
goto @ROULETE_4789

:ROULETE_4771
Char.SetSayScript(26@, $3888(18@,37i), True, True, False)

:ROULETE_4789
gosub @ROULETE_9703
$spot_increment_y += 1

:ROULETE_4803
if 
  $spot_increment_y == 3
goto_if_false @ROULETE_5553
Text.PrintHelpForever('X_CONT')
set_var_int_to_var_int $sequence_task_obj = $i
sub_int_var_from_int_var $sequence_task_obj -= $winnings_this_round
if 
  $sequence_task_obj == 0
goto_if_false @ROULETE_4934
gosub @ROULETE_18193
Text.SetScale(1.3, 3.36)
Text.SetCenter(True)
Text.SetEdge(2, 0, 0, 0, 255)
Text.SetFont(Font.Pricedown)
Text.Display(320.0, 180.333, 'NOWIN')
goto @ROULETE_5138

:ROULETE_4934
if 
  $sequence_task_obj > 0
goto_if_false @ROULETE_5060
gosub @ROULETE_18193
Text.SetScale(1.3, 3.36)
Text.SetCenter(True)
Text.SetEdge(2, 0, 0, 0, 255)
Text.SetFont(Font.Pricedown)
$temp_integer_1, $temp_integer_2, $temp_integer_3, $temp_integer_4 = Hud.GetColor(6)
Text.SetColor($temp_integer_1, $temp_integer_2, $temp_integer_3, 255)
Text.DisplayWithNumber(320.0, 155.333, 'WINNER', $sequence_task_obj)
Stat.RegisterInt(StatId.BiggestGamblingWin, $sequence_task_obj)
goto @ROULETE_5138

:ROULETE_5060
$sequence_task_obj *= -1
gosub @ROULETE_18193
Text.SetScale(1.3, 3.36)
Text.SetCenter(True)
Text.SetEdge(2, 0, 0, 0, 255)
Text.SetFont(Font.Pricedown)
Text.DisplayWithNumber(320.0, 155.333, 'LOSER', $sequence_task_obj)
Stat.RegisterInt(StatId.BiggestGamblingLoss, $sequence_task_obj)

:ROULETE_5138
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @ROULETE_5546
if 
  7@ == 0
goto_if_false @ROULETE_5539
set_lvar_int_to_var_int 7@ = $game_timer
7@ += 999999
Player.AddScore($player1, $i)
Stat.IncrementInt(StatId.MoneyWonGambling, $i)
set_var_int_to_var_int $sequence_task_obj = $i
sub_int_var_from_int_var $sequence_task_obj -= $winnings_this_round
$bj_temp_float3 += 1
if 
  $sequence_task_obj > 0
goto_if_false @ROULETE_5425
$temp_integer_4 = Math.RandomIntInRange(0, 3)
if or
  $temp_integer_4 == 0
  $temp_integer_4 == 1
goto_if_false @ROULETE_5408
if 
  $bj_temp_float3 > 1
goto_if_false @ROULETE_5315
$temp_integer_4 = Math.RandomIntInRange(3, 6)
goto @ROULETE_5324

:ROULETE_5315
$temp_integer_4 = Math.RandomIntInRange(0, 3)

:ROULETE_5324
if 
  not Char.IsDead(26@)
goto_if_false @ROULETE_5401
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_5383
Char.SetSayScript(26@, $3819($temp_integer_4,6i), True, True, False)
goto @ROULETE_5401

:ROULETE_5383
Char.SetSayScript(26@, $3878($temp_integer_4,6i), True, True, False)

:ROULETE_5401
goto @ROULETE_5418

:ROULETE_5408
$temp_integer_3 = Char.SetSayContext($scplayer, 100)

:ROULETE_5418
goto @ROULETE_5469

:ROULETE_5425
$temp_integer_1 = Math.RandomIntInRange(0, 2)
if 
  $temp_integer_1 == 0
goto_if_false @ROULETE_5462
$temp_integer_3 = Char.SetSayContext($scplayer, 101)

:ROULETE_5462
$bj_temp_float3 = 0

:ROULETE_5469
22@ = 1
gosub @ROULETE_817
$8548 = 0

:ROULETE_5490
if 
  151 > $8548
goto_if_false @ROULETE_5532
Object.Delete($gambling_stat($8548,151i))
$8548 += 1
goto @ROULETE_5490

:ROULETE_5532
$spot_increment_y = 0

:ROULETE_5539
goto @ROULETE_5553

:ROULETE_5546
7@ = 0

:ROULETE_5553
if and
  $spot_increment_y > 0
  3 > $spot_increment_y
goto_if_false @ROULETE_5613
add_timed_float_lvar_to_float_lvar 25@ +=@ 24@
Object.SetRotation(27@, 0.0, 0.0, 25@)
18@ = Math.RandomIntInRange(0, 37)

:ROULETE_5613
$text_positionn_y, $pad1_left_stick_x, $pad1_left_stick_y, $pad1_right_stick_x = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  -80 > $text_positionn_y
goto_if_false @ROULETE_6087
if 
  2@ == 0
goto_if_false @ROULETE_6054
set_lvar_int_to_var_int 12@ = $game_timer
12@ += 80
if 
  0.0 > $spot1_z
goto_if_false @ROULETE_5804
if 
  $spot_selection_x <> 2.0
goto_if_false @ROULETE_5797
if 
  $spot1_z <> 0.0
goto_if_false @ROULETE_5797
if 
  $spot_selection_x == -24.0
goto_if_false @ROULETE_5787
$spot1_z += 2.0
goto @ROULETE_5797

:ROULETE_5787
$spot1_z += 1.0

:ROULETE_5797
goto @ROULETE_6040

:ROULETE_5804
if 
  $spot1_z == 0.0
goto_if_false @ROULETE_5999
if and
  2.0 > $spot_selection_x
  $spot_selection_x > -7.0
goto_if_false @ROULETE_5883
$spot1_z += 2.0
$spot_selection_x = -3.0
goto @ROULETE_5992

:ROULETE_5883
if and
  -6.0 > $spot_selection_x
  $spot_selection_x > -15.0
goto_if_false @ROULETE_5941
$spot1_z += 2.0
$spot_selection_x = -11.0
goto @ROULETE_5992

:ROULETE_5941
if and
  -14.0 > $spot_selection_x
  $spot_selection_x > -24.0
goto_if_false @ROULETE_5992
$spot1_z += 2.0
$spot_selection_x = -19.0

:ROULETE_5992
goto @ROULETE_6040

:ROULETE_5999
if 
  $spot1_z == 2.0
goto_if_false @ROULETE_6040
$spot1_z += 2.0
$spot_selection_x += 2.0

:ROULETE_6040
2@ += 1
goto @ROULETE_6080

:ROULETE_6054
if 
  is_int_var_greater_than_int_lvar $game_timer > 12@
goto_if_false @ROULETE_6080
2@ = 0

:ROULETE_6080
goto @ROULETE_6094

:ROULETE_6087
2@ = 0

:ROULETE_6094
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
  $text_positionn_y > 80
goto_if_false @ROULETE_6521
if 
  3@ == 0
goto_if_false @ROULETE_6488
set_lvar_int_to_var_int 13@ = $game_timer
13@ += 80
if 
  $spot1_z > -4.0
goto_if_false @ROULETE_6412
if 
  $spot_selection_x <> 2.0
goto_if_false @ROULETE_6405
if 
  $spot1_z <> -4.0
goto_if_false @ROULETE_6405
if or
  $spot_selection_x == -24.0
  $spot1_z == 2.0
  $spot1_z == 4.0
goto_if_false @ROULETE_6395
if or
  $spot_selection_x == -1.0
  $spot_selection_x == -5.0
goto_if_false @ROULETE_6296
$spot_selection_x = -3.0

:ROULETE_6296
if or
  $spot_selection_x == -9.0
  $spot_selection_x == -13.0
goto_if_false @ROULETE_6337
$spot_selection_x = -11.0

:ROULETE_6337
if or
  $spot_selection_x == -17.0
  $spot_selection_x == -21.0
goto_if_false @ROULETE_6378
$spot_selection_x = -19.0

:ROULETE_6378
$spot1_z += -2.0
goto @ROULETE_6405

:ROULETE_6395
$spot1_z += -1.0

:ROULETE_6405
goto @ROULETE_6474

:ROULETE_6412
if 
  $spot1_z == -4.0
goto_if_false @ROULETE_6474
if and
  $spot_selection_x > -23.0
  1.0 > $spot_selection_x
goto_if_false @ROULETE_6474
$spot1_z += -1.0

:ROULETE_6474
3@ += 1
goto @ROULETE_6514

:ROULETE_6488
if 
  is_int_var_greater_than_int_lvar $game_timer > 13@
goto_if_false @ROULETE_6514
3@ = 0

:ROULETE_6514
goto @ROULETE_6528

:ROULETE_6521
3@ = 0

:ROULETE_6528
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  -80 > $pad1_left_stick_x
goto_if_false @ROULETE_6867
if 
  4@ == 0
goto_if_false @ROULETE_6834
set_lvar_int_to_var_int 14@ = $game_timer
14@ += 80
if 
  0.0 > $spot_selection_x
goto_if_false @ROULETE_6779
if 
  $spot_selection_x == -24.0
goto_if_false @ROULETE_6644
$spot_selection_x += 2.0
goto @ROULETE_6772

:ROULETE_6644
if 
  $spot1_z == 2.0
goto_if_false @ROULETE_6703
if 
  $spot_selection_x <> -3.0
goto_if_false @ROULETE_6696
$spot_selection_x += 8.0

:ROULETE_6696
goto @ROULETE_6772

:ROULETE_6703
if 
  $spot1_z == 4.0
goto_if_false @ROULETE_6762
if 
  $spot_selection_x <> -1.0
goto_if_false @ROULETE_6755
$spot_selection_x += 4.0

:ROULETE_6755
goto @ROULETE_6772

:ROULETE_6762
$spot_selection_x += 1.0

:ROULETE_6772
goto @ROULETE_6820

:ROULETE_6779
if 
  $spot_selection_x == 0.0
goto_if_false @ROULETE_6820
$spot_selection_x += 2.0
$spot1_z = -2.0

:ROULETE_6820
4@ += 1
goto @ROULETE_6860

:ROULETE_6834
if 
  is_int_var_greater_than_int_lvar $game_timer > 14@
goto_if_false @ROULETE_6860
4@ = 0

:ROULETE_6860
goto @ROULETE_6874

:ROULETE_6867
4@ = 0

:ROULETE_6874
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  $pad1_left_stick_x > 80
goto_if_false @ROULETE_7331
if 
  5@ == 0
goto_if_false @ROULETE_7298
set_lvar_int_to_var_int 15@ = $game_timer
15@ += 80
if 
  $spot_selection_x > -22.0
goto_if_false @ROULETE_7125
if 
  $spot_selection_x == 2.0
goto_if_false @ROULETE_6990
$spot_selection_x += -2.0
goto @ROULETE_7118

:ROULETE_6990
if 
  $spot1_z == 2.0
goto_if_false @ROULETE_7049
if 
  $spot_selection_x <> -19.0
goto_if_false @ROULETE_7042
$spot_selection_x += -8.0

:ROULETE_7042
goto @ROULETE_7118

:ROULETE_7049
if 
  $spot1_z == 4.0
goto_if_false @ROULETE_7108
if 
  $spot_selection_x <> -21.0
goto_if_false @ROULETE_7101
$spot_selection_x += -4.0

:ROULETE_7101
goto @ROULETE_7118

:ROULETE_7108
$spot_selection_x += -1.0

:ROULETE_7118
goto @ROULETE_7284

:ROULETE_7125
if 
  $spot1_z == -4.0
goto_if_false @ROULETE_7184
if 
  $spot_selection_x <> -24.0
goto_if_false @ROULETE_7177
$spot_selection_x += -2.0

:ROULETE_7177
goto @ROULETE_7284

:ROULETE_7184
if 
  $spot1_z == 0.0
goto_if_false @ROULETE_7243
if 
  $spot_selection_x <> -24.0
goto_if_false @ROULETE_7236
$spot_selection_x += -2.0

:ROULETE_7236
goto @ROULETE_7284

:ROULETE_7243
if 
  $spot_selection_x <> -24.0
goto_if_false @ROULETE_7284
$spot1_z = -2.0
$spot_selection_x += -2.0

:ROULETE_7284
5@ += 1
goto @ROULETE_7324

:ROULETE_7298
if 
  is_int_var_greater_than_int_lvar $game_timer > 15@
goto_if_false @ROULETE_7324
5@ = 0

:ROULETE_7324
goto @ROULETE_7338

:ROULETE_7331
5@ = 0

:ROULETE_7338
set_var_float_to_var_float $chip_position_y = $spot1_z
mult_float_var_by_float_var $chip_position_y *= $spot36_bottomright_y
set_var_float_to_var_float $spot_increment_x = $spot_selection_x
mult_float_var_by_float_var $spot_increment_x *= $spot_size_x
set_var_float_to_var_float $spot_selection_y = $spot_size_y
add_float_var_to_float_var $spot_selection_y += $chip_position_y
set_var_float_to_var_float $chip_position_x = $spot1_x
add_float_var_to_float_var $chip_position_x += $spot_increment_x
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, $spot_selection_y, $chip_position_x, $spot1_y)
$z += 0.01
Object.SetCoordinates($total_stake_this_round, $x, $y, $z)

:ROULETE_7449
goto @ROULETE_7584

:ROULETE_7456
if 
  1@ > 0
goto_if_false @ROULETE_7584
if 
  1@ > 3
goto_if_false @ROULETE_7494
Text.ClearHelp

:ROULETE_7494
Char.Delete(26@)
Streaming.MarkModelAsNoLongerNeeded(23@)
22@ = 1
gosub @ROULETE_817
$8548 = 0

:ROULETE_7525
if 
  151 > $8548
goto_if_false @ROULETE_7567
Object.Delete($gambling_stat($8548,151i))
$8548 += 1
goto @ROULETE_7525

:ROULETE_7567
Object.Delete($total_stake_this_round)
Object.Delete(27@)
1@ = 0

:ROULETE_7584
goto @ROULETE_7728

:ROULETE_7591
if 
  1@ > 0
goto_if_false @ROULETE_7719
if 
  1@ > 3
goto_if_false @ROULETE_7629
Text.ClearHelp

:ROULETE_7629
Char.Delete(26@)
Streaming.MarkModelAsNoLongerNeeded(23@)
22@ = 1
gosub @ROULETE_817
$8548 = 0

:ROULETE_7660
if 
  151 > $8548
goto_if_false @ROULETE_7702
Object.Delete($gambling_stat($8548,151i))
$8548 += 1
goto @ROULETE_7660

:ROULETE_7702
Object.Delete($total_stake_this_round)
Object.Delete(27@)
1@ = 0

:ROULETE_7719
$total_roulette_tables -= 1
terminate_this_script 

:ROULETE_7728
goto @ROULETE_7872

:ROULETE_7735
if 
  1@ > 0
goto_if_false @ROULETE_7863
if 
  1@ > 3
goto_if_false @ROULETE_7773
Text.ClearHelp

:ROULETE_7773
Char.Delete(26@)
Streaming.MarkModelAsNoLongerNeeded(23@)
22@ = 1
gosub @ROULETE_817
$8548 = 0

:ROULETE_7804
if 
  151 > $8548
goto_if_false @ROULETE_7846
Object.Delete($gambling_stat($8548,151i))
$8548 += 1
goto @ROULETE_7804

:ROULETE_7846
Object.Delete($total_stake_this_round)
Object.Delete(27@)
1@ = 0

:ROULETE_7863
$total_roulette_tables -= 1
terminate_this_script 

:ROULETE_7872
goto @ROULETE_8016

:ROULETE_7879
if 
  1@ > 0
goto_if_false @ROULETE_8007
if 
  1@ > 3
goto_if_false @ROULETE_7917
Text.ClearHelp

:ROULETE_7917
Char.Delete(26@)
Streaming.MarkModelAsNoLongerNeeded(23@)
22@ = 1
gosub @ROULETE_817
$8548 = 0

:ROULETE_7948
if 
  151 > $8548
goto_if_false @ROULETE_7990
Object.Delete($gambling_stat($8548,151i))
$8548 += 1
goto @ROULETE_7948

:ROULETE_7990
Object.Delete($total_stake_this_round)
Object.Delete(27@)
1@ = 0

:ROULETE_8007
$total_roulette_tables -= 1
terminate_this_script 

:ROULETE_8016
goto @ROULETE_929

:ROULETE_8023
$8548 = 0

:ROULETE_8030
if 
  151 > $8548
goto_if_false @ROULETE_9701
if 
  is_float_var_equal_to_float_var $spot1_z == $wheel_rotation_timer($8548,151f)
goto_if_false @ROULETE_9687
if 
  is_float_var_equal_to_float_var $spot_selection_x == $3657($8548,151f)
goto_if_false @ROULETE_9687
set_lvar_int_to_var_int 20@ = $end_line_point($8548,151i)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @ROULETE_9317
if 
  is_int_var_greater_than_int_lvar $game_timer > 8@
goto_if_false @ROULETE_9310
$pad1_right_stick_y = Player.StoreScore($player1)
$pad1_right_stick_y += 1
$temp_int_roulette = Stat.GetInt(StatId.Gambling)
if 
  $temp_int_roulette > 999
goto_if_false @ROULETE_8338
set_var_int_to_lvar_int $temp_integer_3 = 17@
$temp_integer_3 -= 1000000
if 
  1 > $pad1_right_stick_y
goto_if_false @ROULETE_8331
if 
  28@ == 0
goto_if_false @ROULETE_8331
if 
  not Char.IsDead(26@)
goto_if_false @ROULETE_8324
$temp_integer_4 = Math.RandomIntInRange(0, 3)
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_8306
Char.SetSayScript(26@, $3866($temp_integer_4,3i), True, True, False)
goto @ROULETE_8324

:ROULETE_8306
Char.SetSayScript(26@, $3925($temp_integer_4,3i), True, True, False)

:ROULETE_8324
28@ = 1

:ROULETE_8331
goto @ROULETE_8858

:ROULETE_8338
if 
  $temp_int_roulette > 100
goto_if_false @ROULETE_8510
set_var_int_to_lvar_int $temp_integer_3 = 17@
$temp_integer_3 -= 100000
if 
  1 > $pad1_right_stick_y
goto_if_false @ROULETE_8503
if 
  28@ == 0
goto_if_false @ROULETE_8503
if 
  not Char.IsDead(26@)
goto_if_false @ROULETE_8496
$temp_integer_4 = Math.RandomIntInRange(0, 3)
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_8478
Char.SetSayScript(26@, $3866($temp_integer_4,3i), True, True, False)
goto @ROULETE_8496

:ROULETE_8478
Char.SetSayScript(26@, $3925($temp_integer_4,3i), True, True, False)

:ROULETE_8496
28@ = 1

:ROULETE_8503
goto @ROULETE_8858

:ROULETE_8510
if 
  $temp_int_roulette > 10
goto_if_false @ROULETE_8680
set_var_int_to_lvar_int $temp_integer_3 = 17@
$temp_integer_3 -= 10000
if 
  1 > $pad1_right_stick_y
goto_if_false @ROULETE_8673
if 
  28@ == 0
goto_if_false @ROULETE_8673
if 
  not Char.IsDead(26@)
goto_if_false @ROULETE_8666
$temp_integer_4 = Math.RandomIntInRange(0, 3)
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_8648
Char.SetSayScript(26@, $3866($temp_integer_4,3i), True, True, False)
goto @ROULETE_8666

:ROULETE_8648
Char.SetSayScript(26@, $3925($temp_integer_4,3i), True, True, False)

:ROULETE_8666
28@ = 1

:ROULETE_8673
goto @ROULETE_8858

:ROULETE_8680
if 
  $temp_int_roulette > 1
goto_if_false @ROULETE_8850
set_var_int_to_lvar_int $temp_integer_3 = 17@
$temp_integer_3 -= 1000
if 
  1 > $pad1_right_stick_y
goto_if_false @ROULETE_8843
if 
  28@ == 0
goto_if_false @ROULETE_8843
if 
  not Char.IsDead(26@)
goto_if_false @ROULETE_8836
$temp_integer_4 = Math.RandomIntInRange(0, 3)
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_8818
Char.SetSayScript(26@, $3866($temp_integer_4,3i), True, True, False)
goto @ROULETE_8836

:ROULETE_8818
Char.SetSayScript(26@, $3925($temp_integer_4,3i), True, True, False)

:ROULETE_8836
28@ = 1

:ROULETE_8843
goto @ROULETE_8858

:ROULETE_8850
set_var_int_to_lvar_int $temp_integer_3 = 17@

:ROULETE_8858
if and
  is_int_lvar_greater_than_int_var 21@ > $winnings_this_round
  is_int_var_greater_than_int_var $pad1_right_stick_y > $temp_integer_3
goto_if_false @ROULETE_9145
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1813)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @ROULETE_8927
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1083)

:ROULETE_8927
add_int_lvar_to_int_lvar 20@ += 17@
set_var_int_to_lvar_int $pad1_right_stick_y = 17@
$pad1_right_stick_y *= -1
Player.AddScore($player1, $pad1_right_stick_y)
add_int_lvar_to_int_var $winnings_this_round += 17@
set_var_int_to_lvar_int $pad1_right_stick_y = 17@
$pad1_right_stick_y *= 26
if 
  is_int_var_greater_than_int_lvar $pad1_right_stick_y > 20@
goto_if_false @ROULETE_9096
$x, $y, $z = Object.GetCoordinates($total_stake_this_round)
$z += -0.14
set_var_int_to_lvar_int $pad1_right_stick_y = 20@
div_int_var_by_int_lvar $pad1_right_stick_y /= 17@
cset_var_float_to_var_int $an =# $pad1_right_stick_y
$an *= 0.005
add_float_var_to_float_var $z += $an
Object.Delete($gambling_stat($8548,151i))
$gambling_stat($8548,151i) = Object.CreateNoOffset(19@, $x, $y, $z)

:ROULETE_9096
set_lvar_int_to_var_int 8@ = $game_timer
add_int_lvar_to_int_lvar 8@ += 10@
if 
  10@ == 500
goto_if_false @ROULETE_9138
10@ = 80

:ROULETE_9138
goto @ROULETE_9310

:ROULETE_9145
if 
  is_int_var_greater_or_equal_to_int_var $temp_integer_3 >= $pad1_right_stick_y
goto_if_false @ROULETE_9250
if 
  not Char.IsDead(26@)
goto_if_false @ROULETE_9250
$temp_integer_4 = Math.RandomIntInRange(0, 3)
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_9232
Char.SetSayScript(26@, $3813($temp_integer_4,3i), True, True, False)
goto @ROULETE_9250

:ROULETE_9232
Char.SetSayScript(26@, $3872($temp_integer_4,3i), True, True, False)

:ROULETE_9250
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1813)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @ROULETE_9292
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1085)

:ROULETE_9292
set_lvar_int_to_var_int 8@ = $game_timer
8@ += 6000000

:ROULETE_9310
goto @ROULETE_9675

:ROULETE_9317
set_lvar_int_to_var_int 8@ = $game_timer
10@ = 500
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @ROULETE_9659
if 
  is_int_var_greater_than_int_lvar $game_timer > 6@
goto_if_false @ROULETE_9652
if or
  is_int_lvar_greater_than_int_lvar 20@ > 17@
  is_int_lvar_equal_to_int_lvar 20@ == 17@
goto_if_false @ROULETE_9610
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1813)
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @ROULETE_9438
Audio.ReportMissionAudioEventAtPosition(0.0, 0.0, 0.0, 1084)

:ROULETE_9438
sub_int_lvar_from_int_lvar 20@ -= 17@
sub_int_lvar_from_int_var $winnings_this_round -= 17@
Player.AddScore($player1, 17@)
set_var_int_to_lvar_int $pad1_right_stick_y = 17@
$pad1_right_stick_y *= 26
if 
  is_int_var_greater_than_int_lvar $pad1_right_stick_y > 20@
goto_if_false @ROULETE_9610
$x, $y, $z = Object.GetCoordinates($total_stake_this_round)
$z += -0.14
set_var_int_to_lvar_int $pad1_right_stick_y = 20@
div_int_var_by_int_lvar $pad1_right_stick_y /= 17@
cset_var_float_to_var_int $an =# $pad1_right_stick_y
$an *= 0.005
add_float_var_to_float_var $z += $an
Object.Delete($gambling_stat($8548,151i))
if 
  20@ > 0
goto_if_false @ROULETE_9610
$gambling_stat($8548,151i) = Object.CreateNoOffset(19@, $x, $y, $z)

:ROULETE_9610
set_lvar_int_to_var_int 6@ = $game_timer
add_int_lvar_to_int_lvar 6@ += 11@
if 
  11@ == 500
goto_if_false @ROULETE_9652
11@ = 80

:ROULETE_9652
goto @ROULETE_9675

:ROULETE_9659
set_lvar_int_to_var_int 6@ = $game_timer
11@ = 500

:ROULETE_9675
set_var_int_to_lvar_int $end_line_point($8548,151i) = 20@

:ROULETE_9687
$8548 += 1
goto @ROULETE_8030

:ROULETE_9701
return 

:ROULETE_9703
if 
  18@ == 0
goto_if_false @ROULETE_9743
$end_line_point[0] *= 36
add_int_var_to_int_var $i += $end_line_point[0]
$end_line_point[0] = 0

:ROULETE_9743
if 
  18@ == 1
goto_if_false @ROULETE_9926
$end_line_point[1] *= 36
add_int_var_to_int_var $i += $end_line_point[1]
$end_line_point[37] *= 18
add_int_var_to_int_var $i += $end_line_point[37]
$end_line_point[61] *= 18
add_int_var_to_int_var $i += $end_line_point[61]
$end_line_point[94] *= 12
add_int_var_to_int_var $i += $end_line_point[94]
$end_line_point[106] *= 9
add_int_var_to_int_var $i += $end_line_point[106]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[140] *= 6
add_int_var_to_int_var $i += $end_line_point[140]

:ROULETE_9926
if 
  18@ == 2
goto_if_false @ROULETE_10139
$end_line_point[2] *= 36
add_int_var_to_int_var $i += $end_line_point[2]
$end_line_point[37] *= 18
add_int_var_to_int_var $i += $end_line_point[37]
$end_line_point[38] *= 18
add_int_var_to_int_var $i += $end_line_point[38]
$end_line_point[62] *= 18
add_int_var_to_int_var $i += $end_line_point[62]
$end_line_point[94] *= 12
add_int_var_to_int_var $i += $end_line_point[94]
$end_line_point[106] *= 9
add_int_var_to_int_var $i += $end_line_point[106]
$end_line_point[107] *= 9
add_int_var_to_int_var $i += $end_line_point[106]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[140] *= 6
add_int_var_to_int_var $i += $end_line_point[140]

:ROULETE_10139
if 
  18@ == 3
goto_if_false @ROULETE_10322
$end_line_point[3] *= 36
add_int_var_to_int_var $i += $end_line_point[3]
$end_line_point[38] *= 18
add_int_var_to_int_var $i += $end_line_point[38]
$end_line_point[63] *= 18
add_int_var_to_int_var $i += $end_line_point[63]
$end_line_point[94] *= 12
add_int_var_to_int_var $i += $end_line_point[94]
$end_line_point[107] *= 9
add_int_var_to_int_var $i += $end_line_point[106]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[140] *= 6
add_int_var_to_int_var $i += $end_line_point[140]

:ROULETE_10322
if 
  18@ == 4
goto_if_false @ROULETE_10550
$end_line_point[4] *= 36
add_int_var_to_int_var $i += $end_line_point[4]
$end_line_point[61] *= 18
add_int_var_to_int_var $i += $end_line_point[61]
$end_line_point[39] *= 18
add_int_var_to_int_var $i += $end_line_point[39]
$end_line_point[64] *= 18
add_int_var_to_int_var $i += $end_line_point[64]
$end_line_point[95] *= 12
add_int_var_to_int_var $i += $end_line_point[95]
$end_line_point[106] *= 9
add_int_var_to_int_var $i += $end_line_point[106]
$end_line_point[108] *= 9
add_int_var_to_int_var $i += $end_line_point[108]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[140] *= 6
add_int_var_to_int_var $i += $end_line_point[140]
$end_line_point[141] *= 6
add_int_var_to_int_var $i += $end_line_point[141]

:ROULETE_10550
if 
  18@ == 5
goto_if_false @ROULETE_10823
$end_line_point[5] *= 36
add_int_var_to_int_var $i += $end_line_point[5]
$end_line_point[62] *= 18
add_int_var_to_int_var $i += $end_line_point[62]
$end_line_point[39] *= 18
add_int_var_to_int_var $i += $end_line_point[39]
$end_line_point[40] *= 18
add_int_var_to_int_var $i += $end_line_point[40]
$end_line_point[65] *= 18
add_int_var_to_int_var $i += $end_line_point[65]
$end_line_point[95] *= 12
add_int_var_to_int_var $i += $end_line_point[95]
$end_line_point[106] *= 9
add_int_var_to_int_var $i += $end_line_point[106]
$end_line_point[107] *= 9
add_int_var_to_int_var $i += $end_line_point[107]
$end_line_point[108] *= 9
add_int_var_to_int_var $i += $end_line_point[108]
$end_line_point[109] *= 9
add_int_var_to_int_var $i += $end_line_point[109]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[140] *= 6
add_int_var_to_int_var $i += $end_line_point[140]
$end_line_point[141] *= 6
add_int_var_to_int_var $i += $end_line_point[141]

:ROULETE_10823
if 
  18@ == 6
goto_if_false @ROULETE_11051
$end_line_point[6] *= 36
add_int_var_to_int_var $i += $end_line_point[6]
$end_line_point[63] *= 18
add_int_var_to_int_var $i += $end_line_point[63]
$end_line_point[40] *= 18
add_int_var_to_int_var $i += $end_line_point[40]
$end_line_point[66] *= 18
add_int_var_to_int_var $i += $end_line_point[66]
$end_line_point[95] *= 12
add_int_var_to_int_var $i += $end_line_point[95]
$end_line_point[107] *= 9
add_int_var_to_int_var $i += $end_line_point[107]
$end_line_point[109] *= 9
add_int_var_to_int_var $i += $end_line_point[109]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[140] *= 6
add_int_var_to_int_var $i += $end_line_point[140]
$end_line_point[141] *= 6
add_int_var_to_int_var $i += $end_line_point[141]

:ROULETE_11051
if 
  18@ == 7
goto_if_false @ROULETE_11279
$end_line_point[7] *= 36
add_int_var_to_int_var $i += $end_line_point[7]
$end_line_point[64] *= 18
add_int_var_to_int_var $i += $end_line_point[64]
$end_line_point[41] *= 18
add_int_var_to_int_var $i += $end_line_point[41]
$end_line_point[67] *= 18
add_int_var_to_int_var $i += $end_line_point[67]
$end_line_point[96] *= 12
add_int_var_to_int_var $i += $end_line_point[96]
$end_line_point[108] *= 9
add_int_var_to_int_var $i += $end_line_point[108]
$end_line_point[110] *= 9
add_int_var_to_int_var $i += $end_line_point[110]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[141] *= 6
add_int_var_to_int_var $i += $end_line_point[141]
$end_line_point[142] *= 6
add_int_var_to_int_var $i += $end_line_point[142]

:ROULETE_11279
if 
  18@ == 8
goto_if_false @ROULETE_11552
$end_line_point[8] *= 36
add_int_var_to_int_var $i += $end_line_point[8]
$end_line_point[65] *= 18
add_int_var_to_int_var $i += $end_line_point[65]
$end_line_point[41] *= 18
add_int_var_to_int_var $i += $end_line_point[41]
$end_line_point[42] *= 18
add_int_var_to_int_var $i += $end_line_point[42]
$end_line_point[68] *= 18
add_int_var_to_int_var $i += $end_line_point[68]
$end_line_point[96] *= 12
add_int_var_to_int_var $i += $end_line_point[96]
$end_line_point[108] *= 9
add_int_var_to_int_var $i += $end_line_point[108]
$end_line_point[109] *= 9
add_int_var_to_int_var $i += $end_line_point[109]
$end_line_point[110] *= 9
add_int_var_to_int_var $i += $end_line_point[110]
$end_line_point[111] *= 9
add_int_var_to_int_var $i += $end_line_point[111]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[141] *= 6
add_int_var_to_int_var $i += $end_line_point[141]
$end_line_point[142] *= 6
add_int_var_to_int_var $i += $end_line_point[142]

:ROULETE_11552
if 
  18@ == 9
goto_if_false @ROULETE_11780
$end_line_point[9] *= 36
add_int_var_to_int_var $i += $end_line_point[9]
$end_line_point[66] *= 18
add_int_var_to_int_var $i += $end_line_point[66]
$end_line_point[42] *= 18
add_int_var_to_int_var $i += $end_line_point[42]
$end_line_point[69] *= 18
add_int_var_to_int_var $i += $end_line_point[69]
$end_line_point[96] *= 12
add_int_var_to_int_var $i += $end_line_point[96]
$end_line_point[109] *= 9
add_int_var_to_int_var $i += $end_line_point[109]
$end_line_point[111] *= 9
add_int_var_to_int_var $i += $end_line_point[111]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[141] *= 6
add_int_var_to_int_var $i += $end_line_point[141]
$end_line_point[142] *= 6
add_int_var_to_int_var $i += $end_line_point[142]

:ROULETE_11780
if 
  18@ == 10
goto_if_false @ROULETE_12008
$end_line_point[10] *= 36
add_int_var_to_int_var $i += $end_line_point[10]
$end_line_point[67] *= 18
add_int_var_to_int_var $i += $end_line_point[67]
$end_line_point[43] *= 18
add_int_var_to_int_var $i += $end_line_point[43]
$end_line_point[70] *= 18
add_int_var_to_int_var $i += $end_line_point[70]
$end_line_point[97] *= 12
add_int_var_to_int_var $i += $end_line_point[97]
$end_line_point[110] *= 9
add_int_var_to_int_var $i += $end_line_point[110]
$end_line_point[112] *= 9
add_int_var_to_int_var $i += $end_line_point[112]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[142] *= 6
add_int_var_to_int_var $i += $end_line_point[142]
$end_line_point[143] *= 6
add_int_var_to_int_var $i += $end_line_point[143]

:ROULETE_12008
if 
  18@ == 11
goto_if_false @ROULETE_12281
$end_line_point[11] *= 36
add_int_var_to_int_var $i += $end_line_point[11]
$end_line_point[68] *= 18
add_int_var_to_int_var $i += $end_line_point[68]
$end_line_point[43] *= 18
add_int_var_to_int_var $i += $end_line_point[43]
$end_line_point[44] *= 18
add_int_var_to_int_var $i += $end_line_point[44]
$end_line_point[71] *= 18
add_int_var_to_int_var $i += $end_line_point[71]
$end_line_point[97] *= 12
add_int_var_to_int_var $i += $end_line_point[97]
$end_line_point[110] *= 9
add_int_var_to_int_var $i += $end_line_point[110]
$end_line_point[111] *= 9
add_int_var_to_int_var $i += $end_line_point[111]
$end_line_point[112] *= 9
add_int_var_to_int_var $i += $end_line_point[112]
$end_line_point[113] *= 9
add_int_var_to_int_var $i += $end_line_point[113]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[142] *= 6
add_int_var_to_int_var $i += $end_line_point[142]
$end_line_point[143] *= 6
add_int_var_to_int_var $i += $end_line_point[143]

:ROULETE_12281
if 
  18@ == 12
goto_if_false @ROULETE_12509
$end_line_point[12] *= 36
add_int_var_to_int_var $i += $end_line_point[12]
$end_line_point[69] *= 18
add_int_var_to_int_var $i += $end_line_point[69]
$end_line_point[44] *= 18
add_int_var_to_int_var $i += $end_line_point[44]
$end_line_point[72] *= 18
add_int_var_to_int_var $i += $end_line_point[72]
$end_line_point[97] *= 12
add_int_var_to_int_var $i += $end_line_point[97]
$end_line_point[111] *= 9
add_int_var_to_int_var $i += $end_line_point[111]
$end_line_point[113] *= 9
add_int_var_to_int_var $i += $end_line_point[113]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[131] *= 3
add_int_var_to_int_var $i += $end_line_point[131]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[142] *= 6
add_int_var_to_int_var $i += $end_line_point[142]
$end_line_point[143] *= 6
add_int_var_to_int_var $i += $end_line_point[143]

:ROULETE_12509
if 
  18@ == 13
goto_if_false @ROULETE_12737
$end_line_point[13] *= 36
add_int_var_to_int_var $i += $end_line_point[13]
$end_line_point[70] *= 18
add_int_var_to_int_var $i += $end_line_point[70]
$end_line_point[45] *= 18
add_int_var_to_int_var $i += $end_line_point[45]
$end_line_point[73] *= 18
add_int_var_to_int_var $i += $end_line_point[73]
$end_line_point[98] *= 12
add_int_var_to_int_var $i += $end_line_point[98]
$end_line_point[112] *= 9
add_int_var_to_int_var $i += $end_line_point[112]
$end_line_point[114] *= 9
add_int_var_to_int_var $i += $end_line_point[114]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[143] *= 6
add_int_var_to_int_var $i += $end_line_point[143]
$end_line_point[144] *= 6
add_int_var_to_int_var $i += $end_line_point[144]

:ROULETE_12737
if 
  18@ == 14
goto_if_false @ROULETE_13010
$end_line_point[14] *= 36
add_int_var_to_int_var $i += $end_line_point[14]
$end_line_point[71] *= 18
add_int_var_to_int_var $i += $end_line_point[71]
$end_line_point[45] *= 18
add_int_var_to_int_var $i += $end_line_point[45]
$end_line_point[46] *= 18
add_int_var_to_int_var $i += $end_line_point[46]
$end_line_point[74] *= 18
add_int_var_to_int_var $i += $end_line_point[74]
$end_line_point[98] *= 12
add_int_var_to_int_var $i += $end_line_point[98]
$end_line_point[112] *= 9
add_int_var_to_int_var $i += $end_line_point[112]
$end_line_point[113] *= 9
add_int_var_to_int_var $i += $end_line_point[113]
$end_line_point[114] *= 9
add_int_var_to_int_var $i += $end_line_point[114]
$end_line_point[115] *= 9
add_int_var_to_int_var $i += $end_line_point[115]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[143] *= 6
add_int_var_to_int_var $i += $end_line_point[143]
$end_line_point[144] *= 6
add_int_var_to_int_var $i += $end_line_point[144]

:ROULETE_13010
if 
  18@ == 15
goto_if_false @ROULETE_13238
$end_line_point[15] *= 36
add_int_var_to_int_var $i += $end_line_point[15]
$end_line_point[72] *= 18
add_int_var_to_int_var $i += $end_line_point[72]
$end_line_point[46] *= 18
add_int_var_to_int_var $i += $end_line_point[46]
$end_line_point[75] *= 18
add_int_var_to_int_var $i += $end_line_point[75]
$end_line_point[98] *= 12
add_int_var_to_int_var $i += $end_line_point[98]
$end_line_point[113] *= 9
add_int_var_to_int_var $i += $end_line_point[113]
$end_line_point[115] *= 9
add_int_var_to_int_var $i += $end_line_point[115]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[143] *= 6
add_int_var_to_int_var $i += $end_line_point[143]
$end_line_point[144] *= 6
add_int_var_to_int_var $i += $end_line_point[144]

:ROULETE_13238
if 
  18@ == 16
goto_if_false @ROULETE_13466
$end_line_point[16] *= 36
add_int_var_to_int_var $i += $end_line_point[16]
$end_line_point[73] *= 18
add_int_var_to_int_var $i += $end_line_point[73]
$end_line_point[47] *= 18
add_int_var_to_int_var $i += $end_line_point[47]
$end_line_point[76] *= 18
add_int_var_to_int_var $i += $end_line_point[76]
$end_line_point[99] *= 12
add_int_var_to_int_var $i += $end_line_point[99]
$end_line_point[114] *= 9
add_int_var_to_int_var $i += $end_line_point[114]
$end_line_point[116] *= 9
add_int_var_to_int_var $i += $end_line_point[116]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[144] *= 6
add_int_var_to_int_var $i += $end_line_point[144]
$end_line_point[145] *= 6
add_int_var_to_int_var $i += $end_line_point[145]

:ROULETE_13466
if 
  18@ == 17
goto_if_false @ROULETE_13739
$end_line_point[17] *= 36
add_int_var_to_int_var $i += $end_line_point[17]
$end_line_point[74] *= 18
add_int_var_to_int_var $i += $end_line_point[74]
$end_line_point[47] *= 18
add_int_var_to_int_var $i += $end_line_point[47]
$end_line_point[48] *= 18
add_int_var_to_int_var $i += $end_line_point[48]
$end_line_point[77] *= 18
add_int_var_to_int_var $i += $end_line_point[77]
$end_line_point[99] *= 12
add_int_var_to_int_var $i += $end_line_point[99]
$end_line_point[114] *= 9
add_int_var_to_int_var $i += $end_line_point[114]
$end_line_point[115] *= 9
add_int_var_to_int_var $i += $end_line_point[115]
$end_line_point[116] *= 9
add_int_var_to_int_var $i += $end_line_point[116]
$end_line_point[117] *= 9
add_int_var_to_int_var $i += $end_line_point[117]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[144] *= 6
add_int_var_to_int_var $i += $end_line_point[144]
$end_line_point[145] *= 6
add_int_var_to_int_var $i += $end_line_point[145]

:ROULETE_13739
if 
  18@ == 18
goto_if_false @ROULETE_13967
$end_line_point[18] *= 36
add_int_var_to_int_var $i += $end_line_point[18]
$end_line_point[75] *= 18
add_int_var_to_int_var $i += $end_line_point[75]
$end_line_point[48] *= 18
add_int_var_to_int_var $i += $end_line_point[48]
$end_line_point[78] *= 18
add_int_var_to_int_var $i += $end_line_point[78]
$end_line_point[99] *= 12
add_int_var_to_int_var $i += $end_line_point[99]
$end_line_point[115] *= 9
add_int_var_to_int_var $i += $end_line_point[115]
$end_line_point[117] *= 9
add_int_var_to_int_var $i += $end_line_point[117]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[134] *= 2
add_int_var_to_int_var $i += $end_line_point[134]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[144] *= 6
add_int_var_to_int_var $i += $end_line_point[144]
$end_line_point[145] *= 6
add_int_var_to_int_var $i += $end_line_point[145]

:ROULETE_13967
if 
  18@ == 19
goto_if_false @ROULETE_14195
$end_line_point[19] *= 36
add_int_var_to_int_var $i += $end_line_point[19]
$end_line_point[76] *= 18
add_int_var_to_int_var $i += $end_line_point[76]
$end_line_point[49] *= 18
add_int_var_to_int_var $i += $end_line_point[49]
$end_line_point[79] *= 18
add_int_var_to_int_var $i += $end_line_point[79]
$end_line_point[100] *= 12
add_int_var_to_int_var $i += $end_line_point[100]
$end_line_point[116] *= 9
add_int_var_to_int_var $i += $end_line_point[116]
$end_line_point[118] *= 9
add_int_var_to_int_var $i += $end_line_point[118]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[145] *= 6
add_int_var_to_int_var $i += $end_line_point[145]
$end_line_point[146] *= 6
add_int_var_to_int_var $i += $end_line_point[146]

:ROULETE_14195
if 
  18@ == 20
goto_if_false @ROULETE_14468
$end_line_point[20] *= 36
add_int_var_to_int_var $i += $end_line_point[20]
$end_line_point[77] *= 18
add_int_var_to_int_var $i += $end_line_point[77]
$end_line_point[49] *= 18
add_int_var_to_int_var $i += $end_line_point[49]
$end_line_point[50] *= 18
add_int_var_to_int_var $i += $end_line_point[50]
$end_line_point[80] *= 18
add_int_var_to_int_var $i += $end_line_point[80]
$end_line_point[100] *= 12
add_int_var_to_int_var $i += $end_line_point[100]
$end_line_point[116] *= 9
add_int_var_to_int_var $i += $end_line_point[116]
$end_line_point[117] *= 9
add_int_var_to_int_var $i += $end_line_point[117]
$end_line_point[118] *= 9
add_int_var_to_int_var $i += $end_line_point[118]
$end_line_point[119] *= 9
add_int_var_to_int_var $i += $end_line_point[119]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[145] *= 6
add_int_var_to_int_var $i += $end_line_point[145]
$end_line_point[146] *= 6
add_int_var_to_int_var $i += $end_line_point[146]

:ROULETE_14468
if 
  18@ == 21
goto_if_false @ROULETE_14696
$end_line_point[21] *= 36
add_int_var_to_int_var $i += $end_line_point[21]
$end_line_point[78] *= 18
add_int_var_to_int_var $i += $end_line_point[78]
$end_line_point[50] *= 18
add_int_var_to_int_var $i += $end_line_point[50]
$end_line_point[81] *= 18
add_int_var_to_int_var $i += $end_line_point[81]
$end_line_point[100] *= 12
add_int_var_to_int_var $i += $end_line_point[100]
$end_line_point[117] *= 9
add_int_var_to_int_var $i += $end_line_point[117]
$end_line_point[119] *= 9
add_int_var_to_int_var $i += $end_line_point[119]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[145] *= 6
add_int_var_to_int_var $i += $end_line_point[145]
$end_line_point[146] *= 6
add_int_var_to_int_var $i += $end_line_point[146]

:ROULETE_14696
if 
  18@ == 22
goto_if_false @ROULETE_14924
$end_line_point[22] *= 36
add_int_var_to_int_var $i += $end_line_point[22]
$end_line_point[79] *= 18
add_int_var_to_int_var $i += $end_line_point[79]
$end_line_point[51] *= 18
add_int_var_to_int_var $i += $end_line_point[51]
$end_line_point[82] *= 18
add_int_var_to_int_var $i += $end_line_point[82]
$end_line_point[101] *= 12
add_int_var_to_int_var $i += $end_line_point[101]
$end_line_point[118] *= 9
add_int_var_to_int_var $i += $end_line_point[118]
$end_line_point[120] *= 9
add_int_var_to_int_var $i += $end_line_point[120]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[146] *= 6
add_int_var_to_int_var $i += $end_line_point[146]
$end_line_point[147] *= 6
add_int_var_to_int_var $i += $end_line_point[147]

:ROULETE_14924
if 
  18@ == 23
goto_if_false @ROULETE_15197
$end_line_point[23] *= 36
add_int_var_to_int_var $i += $end_line_point[23]
$end_line_point[80] *= 18
add_int_var_to_int_var $i += $end_line_point[80]
$end_line_point[51] *= 18
add_int_var_to_int_var $i += $end_line_point[51]
$end_line_point[52] *= 18
add_int_var_to_int_var $i += $end_line_point[52]
$end_line_point[83] *= 18
add_int_var_to_int_var $i += $end_line_point[83]
$end_line_point[101] *= 12
add_int_var_to_int_var $i += $end_line_point[101]
$end_line_point[118] *= 9
add_int_var_to_int_var $i += $end_line_point[118]
$end_line_point[119] *= 9
add_int_var_to_int_var $i += $end_line_point[119]
$end_line_point[120] *= 9
add_int_var_to_int_var $i += $end_line_point[120]
$end_line_point[121] *= 9
add_int_var_to_int_var $i += $end_line_point[121]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[146] *= 6
add_int_var_to_int_var $i += $end_line_point[146]
$end_line_point[147] *= 6
add_int_var_to_int_var $i += $end_line_point[147]

:ROULETE_15197
if 
  18@ == 24
goto_if_false @ROULETE_15425
$end_line_point[24] *= 36
add_int_var_to_int_var $i += $end_line_point[24]
$end_line_point[81] *= 18
add_int_var_to_int_var $i += $end_line_point[81]
$end_line_point[52] *= 18
add_int_var_to_int_var $i += $end_line_point[52]
$end_line_point[84] *= 18
add_int_var_to_int_var $i += $end_line_point[84]
$end_line_point[101] *= 12
add_int_var_to_int_var $i += $end_line_point[101]
$end_line_point[119] *= 9
add_int_var_to_int_var $i += $end_line_point[119]
$end_line_point[121] *= 9
add_int_var_to_int_var $i += $end_line_point[121]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[132] *= 3
add_int_var_to_int_var $i += $end_line_point[132]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[146] *= 6
add_int_var_to_int_var $i += $end_line_point[146]
$end_line_point[147] *= 6
add_int_var_to_int_var $i += $end_line_point[147]

:ROULETE_15425
if 
  18@ == 25
goto_if_false @ROULETE_15653
$end_line_point[25] *= 36
add_int_var_to_int_var $i += $end_line_point[25]
$end_line_point[82] *= 18
add_int_var_to_int_var $i += $end_line_point[82]
$end_line_point[53] *= 18
add_int_var_to_int_var $i += $end_line_point[53]
$end_line_point[85] *= 18
add_int_var_to_int_var $i += $end_line_point[85]
$end_line_point[102] *= 12
add_int_var_to_int_var $i += $end_line_point[102]
$end_line_point[120] *= 9
add_int_var_to_int_var $i += $end_line_point[120]
$end_line_point[122] *= 9
add_int_var_to_int_var $i += $end_line_point[122]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[147] *= 6
add_int_var_to_int_var $i += $end_line_point[147]
$end_line_point[148] *= 6
add_int_var_to_int_var $i += $end_line_point[148]

:ROULETE_15653
if 
  18@ == 26
goto_if_false @ROULETE_15926
$end_line_point[26] *= 36
add_int_var_to_int_var $i += $end_line_point[26]
$end_line_point[83] *= 18
add_int_var_to_int_var $i += $end_line_point[83]
$end_line_point[53] *= 18
add_int_var_to_int_var $i += $end_line_point[53]
$end_line_point[54] *= 18
add_int_var_to_int_var $i += $end_line_point[54]
$end_line_point[86] *= 18
add_int_var_to_int_var $i += $end_line_point[86]
$end_line_point[102] *= 12
add_int_var_to_int_var $i += $end_line_point[102]
$end_line_point[120] *= 9
add_int_var_to_int_var $i += $end_line_point[120]
$end_line_point[121] *= 9
add_int_var_to_int_var $i += $end_line_point[121]
$end_line_point[122] *= 9
add_int_var_to_int_var $i += $end_line_point[122]
$end_line_point[123] *= 9
add_int_var_to_int_var $i += $end_line_point[123]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[147] *= 6
add_int_var_to_int_var $i += $end_line_point[147]
$end_line_point[148] *= 6
add_int_var_to_int_var $i += $end_line_point[148]

:ROULETE_15926
if 
  18@ == 27
goto_if_false @ROULETE_16154
$end_line_point[27] *= 36
add_int_var_to_int_var $i += $end_line_point[27]
$end_line_point[84] *= 18
add_int_var_to_int_var $i += $end_line_point[84]
$end_line_point[54] *= 18
add_int_var_to_int_var $i += $end_line_point[54]
$end_line_point[87] *= 18
add_int_var_to_int_var $i += $end_line_point[87]
$end_line_point[102] *= 12
add_int_var_to_int_var $i += $end_line_point[102]
$end_line_point[121] *= 9
add_int_var_to_int_var $i += $end_line_point[121]
$end_line_point[123] *= 9
add_int_var_to_int_var $i += $end_line_point[123]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[147] *= 6
add_int_var_to_int_var $i += $end_line_point[147]
$end_line_point[148] *= 6
add_int_var_to_int_var $i += $end_line_point[148]

:ROULETE_16154
if 
  18@ == 28
goto_if_false @ROULETE_16382
$end_line_point[28] *= 36
add_int_var_to_int_var $i += $end_line_point[28]
$end_line_point[85] *= 18
add_int_var_to_int_var $i += $end_line_point[85]
$end_line_point[55] *= 18
add_int_var_to_int_var $i += $end_line_point[55]
$end_line_point[88] *= 18
add_int_var_to_int_var $i += $end_line_point[88]
$end_line_point[103] *= 12
add_int_var_to_int_var $i += $end_line_point[103]
$end_line_point[122] *= 9
add_int_var_to_int_var $i += $end_line_point[122]
$end_line_point[124] *= 9
add_int_var_to_int_var $i += $end_line_point[124]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[148] *= 6
add_int_var_to_int_var $i += $end_line_point[148]
$end_line_point[149] *= 6
add_int_var_to_int_var $i += $end_line_point[149]

:ROULETE_16382
if 
  18@ == 29
goto_if_false @ROULETE_16655
$end_line_point[29] *= 36
add_int_var_to_int_var $i += $end_line_point[29]
$end_line_point[86] *= 18
add_int_var_to_int_var $i += $end_line_point[86]
$end_line_point[55] *= 18
add_int_var_to_int_var $i += $end_line_point[55]
$end_line_point[56] *= 18
add_int_var_to_int_var $i += $end_line_point[56]
$end_line_point[89] *= 18
add_int_var_to_int_var $i += $end_line_point[89]
$end_line_point[103] *= 12
add_int_var_to_int_var $i += $end_line_point[103]
$end_line_point[122] *= 9
add_int_var_to_int_var $i += $end_line_point[122]
$end_line_point[123] *= 9
add_int_var_to_int_var $i += $end_line_point[123]
$end_line_point[124] *= 9
add_int_var_to_int_var $i += $end_line_point[124]
$end_line_point[125] *= 9
add_int_var_to_int_var $i += $end_line_point[125]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[148] *= 6
add_int_var_to_int_var $i += $end_line_point[148]
$end_line_point[149] *= 6
add_int_var_to_int_var $i += $end_line_point[149]

:ROULETE_16655
if 
  18@ == 30
goto_if_false @ROULETE_16883
$end_line_point[30] *= 36
add_int_var_to_int_var $i += $end_line_point[30]
$end_line_point[87] *= 18
add_int_var_to_int_var $i += $end_line_point[87]
$end_line_point[56] *= 18
add_int_var_to_int_var $i += $end_line_point[56]
$end_line_point[90] *= 18
add_int_var_to_int_var $i += $end_line_point[90]
$end_line_point[103] *= 12
add_int_var_to_int_var $i += $end_line_point[103]
$end_line_point[123] *= 9
add_int_var_to_int_var $i += $end_line_point[123]
$end_line_point[125] *= 9
add_int_var_to_int_var $i += $end_line_point[125]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[148] *= 6
add_int_var_to_int_var $i += $end_line_point[148]
$end_line_point[149] *= 6
add_int_var_to_int_var $i += $end_line_point[149]

:ROULETE_16883
if 
  18@ == 31
goto_if_false @ROULETE_17111
$end_line_point[31] *= 36
add_int_var_to_int_var $i += $end_line_point[31]
$end_line_point[88] *= 18
add_int_var_to_int_var $i += $end_line_point[88]
$end_line_point[57] *= 18
add_int_var_to_int_var $i += $end_line_point[57]
$end_line_point[91] *= 18
add_int_var_to_int_var $i += $end_line_point[91]
$end_line_point[104] *= 12
add_int_var_to_int_var $i += $end_line_point[104]
$end_line_point[124] *= 9
add_int_var_to_int_var $i += $end_line_point[124]
$end_line_point[126] *= 9
add_int_var_to_int_var $i += $end_line_point[126]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[149] *= 6
add_int_var_to_int_var $i += $end_line_point[149]
$end_line_point[150] *= 6
add_int_var_to_int_var $i += $end_line_point[150]

:ROULETE_17111
if 
  18@ == 32
goto_if_false @ROULETE_17384
$end_line_point[32] *= 36
add_int_var_to_int_var $i += $end_line_point[32]
$end_line_point[89] *= 18
add_int_var_to_int_var $i += $end_line_point[89]
$end_line_point[57] *= 18
add_int_var_to_int_var $i += $end_line_point[57]
$end_line_point[58] *= 18
add_int_var_to_int_var $i += $end_line_point[58]
$end_line_point[92] *= 18
add_int_var_to_int_var $i += $end_line_point[92]
$end_line_point[104] *= 12
add_int_var_to_int_var $i += $end_line_point[104]
$end_line_point[124] *= 9
add_int_var_to_int_var $i += $end_line_point[124]
$end_line_point[125] *= 9
add_int_var_to_int_var $i += $end_line_point[125]
$end_line_point[126] *= 9
add_int_var_to_int_var $i += $end_line_point[126]
$end_line_point[127] *= 9
add_int_var_to_int_var $i += $end_line_point[127]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[149] *= 6
add_int_var_to_int_var $i += $end_line_point[149]
$end_line_point[150] *= 6
add_int_var_to_int_var $i += $end_line_point[150]

:ROULETE_17384
if 
  18@ == 33
goto_if_false @ROULETE_17612
$end_line_point[33] *= 36
add_int_var_to_int_var $i += $end_line_point[33]
$end_line_point[90] *= 18
add_int_var_to_int_var $i += $end_line_point[90]
$end_line_point[58] *= 18
add_int_var_to_int_var $i += $end_line_point[58]
$end_line_point[93] *= 18
add_int_var_to_int_var $i += $end_line_point[93]
$end_line_point[104] *= 12
add_int_var_to_int_var $i += $end_line_point[104]
$end_line_point[125] *= 9
add_int_var_to_int_var $i += $end_line_point[125]
$end_line_point[127] *= 9
add_int_var_to_int_var $i += $end_line_point[127]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[149] *= 6
add_int_var_to_int_var $i += $end_line_point[149]
$end_line_point[150] *= 6
add_int_var_to_int_var $i += $end_line_point[150]

:ROULETE_17612
if 
  18@ == 34
goto_if_false @ROULETE_17795
$end_line_point[34] *= 36
add_int_var_to_int_var $i += $end_line_point[34]
$end_line_point[91] *= 18
add_int_var_to_int_var $i += $end_line_point[91]
$end_line_point[59] *= 18
add_int_var_to_int_var $i += $end_line_point[59]
$end_line_point[105] *= 12
add_int_var_to_int_var $i += $end_line_point[105]
$end_line_point[126] *= 9
add_int_var_to_int_var $i += $end_line_point[126]
$end_line_point[128] *= 3
add_int_var_to_int_var $i += $end_line_point[128]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[150] *= 6
add_int_var_to_int_var $i += $end_line_point[150]

:ROULETE_17795
if 
  18@ == 35
goto_if_false @ROULETE_18008
$end_line_point[35] *= 36
add_int_var_to_int_var $i += $end_line_point[35]
$end_line_point[92] *= 18
add_int_var_to_int_var $i += $end_line_point[92]
$end_line_point[59] *= 18
add_int_var_to_int_var $i += $end_line_point[59]
$end_line_point[60] *= 18
add_int_var_to_int_var $i += $end_line_point[60]
$end_line_point[105] *= 12
add_int_var_to_int_var $i += $end_line_point[105]
$end_line_point[126] *= 9
add_int_var_to_int_var $i += $end_line_point[126]
$end_line_point[127] *= 9
add_int_var_to_int_var $i += $end_line_point[127]
$end_line_point[129] *= 3
add_int_var_to_int_var $i += $end_line_point[129]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[137] *= 2
add_int_var_to_int_var $i += $end_line_point[137]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[139] *= 2
add_int_var_to_int_var $i += $end_line_point[139]
$end_line_point[150] *= 6
add_int_var_to_int_var $i += $end_line_point[150]

:ROULETE_18008
if 
  18@ == 36
goto_if_false @ROULETE_18191
$end_line_point[36] *= 36
add_int_var_to_int_var $i += $end_line_point[36]
$end_line_point[93] *= 18
add_int_var_to_int_var $i += $end_line_point[93]
$end_line_point[60] *= 18
add_int_var_to_int_var $i += $end_line_point[60]
$end_line_point[105] *= 12
add_int_var_to_int_var $i += $end_line_point[105]
$end_line_point[127] *= 9
add_int_var_to_int_var $i += $end_line_point[127]
$end_line_point[130] *= 3
add_int_var_to_int_var $i += $end_line_point[130]
$end_line_point[133] *= 3
add_int_var_to_int_var $i += $end_line_point[133]
$end_line_point[136] *= 2
add_int_var_to_int_var $i += $end_line_point[136]
$end_line_point[135] *= 2
add_int_var_to_int_var $i += $end_line_point[135]
$end_line_point[138] *= 2
add_int_var_to_int_var $i += $end_line_point[138]
$end_line_point[150] *= 6
add_int_var_to_int_var $i += $end_line_point[150]

:ROULETE_18191
return 

:ROULETE_18193
Text.SetColor(180, 180, 180, 255)
Text.SetScale($3484, $3486)
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(False)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
return 
terminate_this_script 

//-------------External script 6 (OTB_SCRIPT)---------------

:OTB_MSC
script_name 'OTB_MSC'
1@ = 0
if 
  1@ == -1
goto_if_false @OTB_MSC_58
0@ = Object.Create(#OTB_MACHINE, 0.0, 0.0, 0.0)

:OTB_MSC_58
wait 0
if 
  Object.DoesExist(0@)
goto_if_false @OTB_MSC_625
if 
  Object.IsWithinBrainActivationRange(0@)
goto_if_false @OTB_MSC_589
if 
  Player.IsPlaying($player1)
goto_if_false @OTB_MSC_555
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, -1.0, 0.0, 0.0)
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.6, 0.6, 1.0, False)
goto_if_false @OTB_MSC_521
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @OTB_MSC_478
if 
  1@ == 1
goto_if_false @OTB_MSC_471
Text.ClearHelp
1@ = 0
if 
  $onmission == 0
goto_if_false @OTB_MSC_455
if 
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @OTB_MSC_432
if 
  Player.CanStartMission($player1)
goto_if_false @OTB_MSC_425
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Camera.DoFade(500, Fade.Out)

:OTB_MSC_298
if 
  Camera.GetFadingStatus
goto_if_false @OTB_MSC_322
wait 0
goto @OTB_MSC_298

:OTB_MSC_322
$load_and_launch_mission_if_poss = 4
wait 0
wait 0
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @OTB_MSC_425
if 
  $onmission == 0
goto_if_false @OTB_MSC_382
Player.SetControl($player1, True)

:OTB_MSC_382
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, -2.0, 0.0, -1.0)
Char.SetCoordinates($scplayer, $x, $y, $z)

:OTB_MSC_425
goto @OTB_MSC_448

:OTB_MSC_432
Text.PrintNow('BUSY', 3000, 1)

:OTB_MSC_448
goto @OTB_MSC_471

:OTB_MSC_455
Text.PrintNow('BUSY', 3000, 1)

:OTB_MSC_471
goto @OTB_MSC_514

:OTB_MSC_478
if 
  1@ == 0
goto_if_false @OTB_MSC_514
Text.PrintHelpForever('OTB_A')
1@ = 1

:OTB_MSC_514
goto @OTB_MSC_548

:OTB_MSC_521
if 
  1@ == 1
goto_if_false @OTB_MSC_548
Text.ClearHelp
1@ = 0

:OTB_MSC_548
goto @OTB_MSC_582

:OTB_MSC_555
if 
  1@ == 1
goto_if_false @OTB_MSC_582
Text.ClearHelp
1@ = 0

:OTB_MSC_582
goto @OTB_MSC_618

:OTB_MSC_589
if 
  1@ == 1
goto_if_false @OTB_MSC_616
Text.ClearHelp
1@ = 0

:OTB_MSC_616
terminate_this_script 

:OTB_MSC_618
goto @OTB_MSC_654

:OTB_MSC_625
if 
  1@ == 1
goto_if_false @OTB_MSC_652
Text.ClearHelp
1@ = 0

:OTB_MSC_652
terminate_this_script 

:OTB_MSC_654
goto @OTB_MSC_58
terminate_this_script 

//-------------External script 7 (ARCADE)---------------

:ARCADE
script_name 'ARCADE'
1@ = 0
if 
  1@ == -1
goto_if_false @ARCADE_58
0@ = Object.Create(#CJ_COIN_OP_2, 0.0, 0.0, 0.0)

:ARCADE_58
wait 0
if 
  Object.DoesExist(0@)
goto_if_false @ARCADE_749
if 
  Object.IsWithinBrainActivationRange(0@)
goto_if_false @ARCADE_713
if 
  Player.IsPlaying($player1)
goto_if_false @ARCADE_679
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, -1.0, 1.0)
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.6, 0.6, 1.0, False)
goto_if_false @ARCADE_645
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @ARCADE_602
if 
  1@ == 1
goto_if_false @ARCADE_595
Text.ClearHelp
1@ = 0
if 
  $onmission == 0
goto_if_false @ARCADE_563
if 
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @ARCADE_524
if 
  Player.CanStartMission($player1)
goto_if_false @ARCADE_517
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Camera.DoFade(500, Fade.Out)

:ARCADE_298
if 
  Camera.GetFadingStatus
goto_if_false @ARCADE_322
wait 0
goto @ARCADE_298

:ARCADE_322
if 
  Object.DoesHaveThisModel(0@, #CJ_COIN_OP_2)
goto_if_false @ARCADE_354
$load_and_launch_mission_if_poss = 1
goto @ARCADE_464

:ARCADE_354
if or
  Object.DoesHaveThisModel(0@, #CJ_COIN_OP_3)
  Object.DoesHaveThisModel(0@, #SWANK_CONSOLE)
goto_if_false @ARCADE_393
$load_and_launch_mission_if_poss = 0
goto @ARCADE_464

:ARCADE_393
if or
  Object.DoesHaveThisModel(0@, #CJ_COIN_OP_1)
  Object.DoesHaveThisModel(0@, #SNESISH)
goto_if_false @ARCADE_432
$load_and_launch_mission_if_poss = 3
goto @ARCADE_464

:ARCADE_432
if or
  Object.DoesHaveThisModel(0@, #CJ_COIN_OP)
  Object.DoesHaveThisModel(0@, #LOW_CONSOLE)
goto_if_false @ARCADE_464
$load_and_launch_mission_if_poss = 2

:ARCADE_464
wait 0
wait 0
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @ARCADE_517
if 
  $onmission == 0
goto_if_false @ARCADE_517
Player.SetControl($player1, True)

:ARCADE_517
goto @ARCADE_556

:ARCADE_524
if 
  Player.IsControlOn($player1)
goto_if_false @ARCADE_556
Text.PrintNow('BUSY', 3000, 1)

:ARCADE_556
goto @ARCADE_595

:ARCADE_563
if 
  Player.IsControlOn($player1)
goto_if_false @ARCADE_595
Text.PrintNow('BUSY', 3000, 1)

:ARCADE_595
goto @ARCADE_638

:ARCADE_602
if 
  1@ == 0
goto_if_false @ARCADE_638
Text.PrintHelpForever('DUAL_A')
1@ = 1

:ARCADE_638
goto @ARCADE_672

:ARCADE_645
if 
  1@ == 1
goto_if_false @ARCADE_672
Text.ClearHelp
1@ = 0

:ARCADE_672
goto @ARCADE_706

:ARCADE_679
if 
  1@ == 1
goto_if_false @ARCADE_706
Text.ClearHelp
1@ = 0

:ARCADE_706
goto @ARCADE_742

:ARCADE_713
if 
  1@ == 1
goto_if_false @ARCADE_740
Text.ClearHelp
1@ = 0

:ARCADE_740
terminate_this_script 

:ARCADE_742
goto @ARCADE_778

:ARCADE_749
if 
  1@ == 1
goto_if_false @ARCADE_776
Text.ClearHelp
1@ = 0

:ARCADE_776
terminate_this_script 

:ARCADE_778
goto @ARCADE_58
terminate_this_script 

//-------------External script 8 (VENDING_MACHINE)---------------

:VENDING
script_name 'VENDING'
1@ = 0
if 
  1@ == 1
goto_if_false @VENDING_80
0@ = Object.CreateNoOffset(#VENDMACHFD, 0.0, 0.0, 0.0)
3@ = Object.CreateNoOffset(#KB_BEER, 0.0, 0.0, 0.0)

:VENDING_80
wait 0
$game_timer = Clock.GetGameTimer()
if 
  Object.DoesExist(0@)
goto_if_false @VENDING_1579
if 
  Object.IsWithinBrainActivationRange(0@)
goto_if_false @VENDING_1484
if 
  Player.IsPlaying($player1)
goto_if_false @VENDING_1391
if 
  1@ == 0
goto_if_false @VENDING_173
Streaming.RequestAnimation("VENDING")
1@ += 1

:VENDING_173
if 
  1@ == 1
goto_if_false @VENDING_395
if 
  Streaming.HasAnimationLoaded("VENDING")
goto_if_false @VENDING_384
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, -1.0, 0.5)
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.6, 0.6, 1.0, False)
goto_if_false @VENDING_377
if or
  Object.DoesHaveThisModel(0@, #VENDIN3)
  Object.DoesHaveThisModel(0@, #CJ_CANDYVENDOR)
  Object.DoesHaveThisModel(0@, #CJ_EXT_CANDY)
goto_if_false @VENDING_343
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 45401)
Text.PrintHelpForever('SLOT_04')
goto @VENDING_363

:VENDING_343
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 45400)
Text.PrintHelpForever('SLOT_05')

:VENDING_363
Pad.SetPlayerEnterCarButton($player1, False)
1@ += 1

:VENDING_377
goto @VENDING_395

:VENDING_384
Streaming.RequestAnimation("VENDING")

:VENDING_395
if 
  1@ == 2
goto_if_false @VENDING_1210
if 
  Streaming.HasAnimationLoaded("VENDING")
goto_if_false @VENDING_1199
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, -1.0, 0.5)
if or
  Object.DoesHaveThisModel(0@, #VENDIN3)
  Object.DoesHaveThisModel(0@, #CJ_CANDYVENDOR)
  Object.DoesHaveThisModel(0@, #CJ_EXT_CANDY)
goto_if_false @VENDING_512
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 45401)
goto @VENDING_521

:VENDING_512
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 45400)

:VENDING_521
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.6, 0.6, 1.0, False)
goto_if_false @VENDING_1176
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @VENDING_1169
if 
  Player.CanStartMission($player1)
goto_if_false @VENDING_1169
if 
  Player.IsScoreGreater($player1, 0)
goto_if_false @VENDING_1141
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @VENDING_1134
$heading = Object.GetHeading(0@)
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, -0.2, 0.6)
3@ = Object.CreateNoOffset(#CJ_JUICE_CAN, $x, $y, $z)
$heading = Object.GetHeading(0@)
$3394 = Sequence.Open()
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.2, -1.0, 0.0)
Task.CharSlideToCoordAndPlayAnim(-1, $x, $y, $z, $heading, 0.4, "VEND_USE", "VENDING", 4.0, False, False, False, True, 0)
if or
  Object.DoesHaveThisModel(0@, #VENDIN3)
  Object.DoesHaveThisModel(0@, #CJ_CANDYVENDOR)
  Object.DoesHaveThisModel(0@, #CJ_EXT_CANDY)
goto_if_false @VENDING_859
Task.PlayAnimSecondary(-1, "VEND_EAT_P", "VENDING", 4.0, False, False, False, False, -1)
goto @VENDING_1001

:VENDING_859
$x, $y, $z, $x, $y, $z = Streaming.GetModelDimensions(#CJ_JUICE_CAN)
$y /= 2.0
$y += 0.027
Task.PickUpObject(-1, 3@, 0.062, $y, 0.0, 5, 16, "VEND_USE_PT2", "VENDING", 0)
Task.PickUpObject(-1, 3@, 0.062, $y, 0.0, 5, 16, "VEND_DRINK2_P", "VENDING", 0)

:VENDING_1001
Sequence.Close($3394)
Char.PerformSequence($scplayer, $3394)
Sequence.Clear($3394)
Player.AddScore($player1, -1)
Text.ClearHelp
if or
  Object.DoesHaveThisModel(0@, #VENDIN3)
  Object.DoesHaveThisModel(0@, #CJ_CANDYVENDOR)
  Object.DoesHaveThisModel(0@, #CJ_EXT_CANDY)
goto_if_false @VENDING_1076
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 45401)
goto @VENDING_1085

:VENDING_1076
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 45400)

:VENDING_1085
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @VENDING_1111
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)
Audio.AttachMissionAudioToChar(MissionAudioSlot.Slot4, $scplayer)

:VENDING_1111
set_lvar_int_to_var_int 2@ = $game_timer
2@ += 3000
1@ += 1

:VENDING_1134
goto @VENDING_1169

:VENDING_1141
$x, $y, $z = Char.GetCoordinates($scplayer)
Sound.AddOneOffSound($x, $y, $z, ScriptSound.SoundAmmunationBuyWeaponDenied)

:VENDING_1169
goto @VENDING_1192

:VENDING_1176
Text.ClearHelp
Pad.SetPlayerEnterCarButton($player1, True)
1@ = 1

:VENDING_1192
goto @VENDING_1210

:VENDING_1199
Streaming.RequestAnimation("VENDING")

:VENDING_1210
if 
  1@ == 3
goto_if_false @VENDING_1324
$task_status = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VENDING_1324
Stat.IncrementInt(StatId.Calories, 5)
$sequence_task_obj = Char.GetHealth($scplayer)
$sequence_task_obj += 30
Char.SetHealth($scplayer, $sequence_task_obj)
Object.MarkAsNoLongerNeeded(3@)
Text.ClearHelp
Pad.SetPlayerEnterCarButton($player1, True)
set_lvar_int_to_var_int 2@ = $game_timer
2@ += 1500
1@ += 1

:VENDING_1324
if 
  1@ == 4
goto_if_false @VENDING_1384
if 
  is_int_var_greater_than_int_lvar $game_timer > 2@
goto_if_false @VENDING_1384
Char.ClearTasks($scplayer)
Streaming.RemoveAnimation("VENDING")
1@ = 0

:VENDING_1384
goto @VENDING_1477

:VENDING_1391
if 
  1@ > 0
goto_if_false @VENDING_1477
if 
  1@ > 1
goto_if_false @VENDING_1436
Text.ClearHelp
Pad.SetPlayerEnterCarButton($player1, True)

:VENDING_1436
if 
  1@ > 2
goto_if_false @VENDING_1459
Object.MarkAsNoLongerNeeded(3@)

:VENDING_1459
Streaming.RemoveAnimation("VENDING")
1@ = 0

:VENDING_1477
goto @VENDING_1572

:VENDING_1484
if 
  1@ > 0
goto_if_false @VENDING_1570
if 
  1@ > 1
goto_if_false @VENDING_1529
Text.ClearHelp
Pad.SetPlayerEnterCarButton($player1, True)

:VENDING_1529
if 
  1@ > 2
goto_if_false @VENDING_1552
Object.MarkAsNoLongerNeeded(3@)

:VENDING_1552
Streaming.RemoveAnimation("VENDING")
1@ = 0

:VENDING_1570
terminate_this_script 

:VENDING_1572
goto @VENDING_1667

:VENDING_1579
if 
  1@ > 0
goto_if_false @VENDING_1665
if 
  1@ > 1
goto_if_false @VENDING_1624
Text.ClearHelp
Pad.SetPlayerEnterCarButton($player1, True)

:VENDING_1624
if 
  1@ > 2
goto_if_false @VENDING_1647
Object.MarkAsNoLongerNeeded(3@)

:VENDING_1647
Streaming.RemoveAnimation("VENDING")
1@ = 0

:VENDING_1665
terminate_this_script 

:VENDING_1667
goto @VENDING_80
terminate_this_script 

//-------------External script 9 (FOOD_VENDOR)---------------

:FODVEND
script_name 'FODVEND'
1@ = 0
if 
  1@ == 1
goto_if_false @FODVEND_58
0@ = Object.CreateNoOffset(#ICESCART_PROP, 0.0, 0.0, 0.0)

:FODVEND_58
wait 0
$game_timer = Clock.GetGameTimer()
if 
  Object.DoesExist(0@)
goto_if_false @FODVEND_1130
if 
  Object.IsWithinBrainActivationRange(0@)
goto_if_false @FODVEND_1075
if 
  Player.IsPlaying($player1)
goto_if_false @FODVEND_1022
if 
  not Object.HasBeenUprooted(0@)
goto_if_false @FODVEND_924
if 
  1@ == 0
goto_if_false @FODVEND_469
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, -1.0, 0.0, -1.0)
set_var_float_to_var_float $temp_float_3 = $x
$temp_float_3 -= 0.5
set_var_float_to_var_float $x_temp = $y
$x_temp -= 0.5
set_var_float_to_var_float $y_temp = $z
set_var_float_to_var_float $an = $x
$an += 0.5
set_var_float_to_var_float $temp_float_1 = $y
$temp_float_1 += 0.5
set_var_float_to_var_float $temp_float_2 = $z
$temp_float_2 += 2.0
if 
  not World.IsAreaOccupied($temp_float_3, $x_temp, $y_temp, $an, $temp_float_1, $temp_float_2, False, False, True, False, False)
goto_if_false @FODVEND_462
if 
  not Camera.IsPointOnScreen($x, $y, $z, 1.0)
goto_if_false @FODVEND_455
Streaming.RequestModel(168)
if 
  Streaming.HasModelLoaded(168)
goto_if_false @FODVEND_455
2@ = Char.Create(PedType.CivMale, 168, $x, $y, $z)
$temp_float_3, $x_temp, $y_temp = Object.GetOffsetInWorldCoords(0@, 1.0, 0.0, 0.0)
sub_float_var_from_float_var $temp_float_3 -= $x
sub_float_var_from_float_var $x_temp -= $y
$heading = Math.GetHeadingFromVector2D($temp_float_3, $x_temp)
Char.SetHeading(2@, $heading)
1@ += 1

:FODVEND_455
goto @FODVEND_469

:FODVEND_462
Streaming.MarkModelAsNoLongerNeeded(168)
terminate_this_script 

:FODVEND_469
if 
  1@ == 1
goto_if_false @FODVEND_742
if 
  Char.LocateOnFootObject2D($scplayer, 0@, 8.0, 8.0, False)
goto_if_false @FODVEND_742
Streaming.RequestAnimation("VENDING")
if 
  Streaming.HasAnimationLoaded("VENDING")
goto_if_false @FODVEND_742
if 
  Player.IsScoreGreater($player1, 0)
goto_if_false @FODVEND_742
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 1.0, 0.0, 0.0)
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.6, 0.6, 1.0, True)
goto_if_false @FODVEND_742
$sequence_task_obj = Char.GetHealth($scplayer)
$sequence_task_obj += 50
Char.SetHealth($scplayer, $sequence_task_obj)
Task.PlayAnimSecondary($scplayer, "VEND_EAT1_P", "VENDING", 4.0, False, False, False, False, -1)
Stat.IncrementInt(StatId.Calories, 10)
set_lvar_int_to_var_int 3@ = $game_timer
3@ += 3000
Player.AddScore($player1, -1)
1@ += 1

:FODVEND_742
if 
  1@ == 2
goto_if_false @FODVEND_802
if 
  is_int_var_greater_than_int_lvar $game_timer > 3@
goto_if_false @FODVEND_802
set_lvar_int_to_var_int 3@ = $game_timer
3@ += 27000
1@ += 1

:FODVEND_802
if 
  1@ == 3
goto_if_false @FODVEND_917
if 
  is_int_var_greater_than_int_lvar $game_timer > 3@
goto_if_false @FODVEND_917
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 1.0, 0.0, 0.0)
if 
  not Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.6, 0.6, 1.0, False)
goto_if_false @FODVEND_917
1@ = 1

:FODVEND_917
goto @FODVEND_1015

:FODVEND_924
if 
  1@ > 0
goto_if_false @FODVEND_1008
Char.MarkAsNoLongerNeeded(2@)
if 
  Player.IsPlaying($player1)
goto_if_false @FODVEND_990
if 
  not Char.IsDead(2@)
goto_if_false @FODVEND_990
Task.KillCharOnFootTimed(2@, $scplayer, 10000)

:FODVEND_990
Streaming.RemoveAnimation("VENDING")
1@ = 0

:FODVEND_1008
Streaming.MarkModelAsNoLongerNeeded(168)
terminate_this_script 

:FODVEND_1015
goto @FODVEND_1068

:FODVEND_1022
if 
  1@ > 0
goto_if_false @FODVEND_1063
Char.MarkAsNoLongerNeeded(2@)
Streaming.RemoveAnimation("VENDING")
1@ = 0

:FODVEND_1063
Streaming.MarkModelAsNoLongerNeeded(168)

:FODVEND_1068
goto @FODVEND_1123

:FODVEND_1075
if 
  1@ > 0
goto_if_false @FODVEND_1116
Char.MarkAsNoLongerNeeded(2@)
Streaming.RemoveAnimation("VENDING")
1@ = 0

:FODVEND_1116
Streaming.MarkModelAsNoLongerNeeded(168)
terminate_this_script 

:FODVEND_1123
goto @FODVEND_1178

:FODVEND_1130
if 
  1@ > 0
goto_if_false @FODVEND_1171
Char.MarkAsNoLongerNeeded(2@)
Streaming.RemoveAnimation("VENDING")
1@ = 0

:FODVEND_1171
Streaming.MarkModelAsNoLongerNeeded(168)
terminate_this_script 

:FODVEND_1178
goto @FODVEND_58
terminate_this_script 

//-------------External script 10 (GATES_SCRIPT)---------------

:GATEOS
script_name 'GATEOS'
1@ = 0
if 
  1@ == 1
goto_if_false @GATEOS_80
0@ = Object.CreateNoOffset(#GATE_AUTOL, 0.0, 0.0, 0.0)
0@ = Object.CreateNoOffset(#GATE_AUTOR, 0.0, 0.0, 0.0)

:GATEOS_80
wait 0
$game_timer = Clock.GetGameTimer()
if 
  Object.DoesExist(0@)
goto_if_false @GATEOS_997
if 
  Object.IsWithinBrainActivationRange(0@)
goto_if_false @GATEOS_988
if 
  1@ == 0
goto_if_false @GATEOS_502
if 
  Player.IsPlaying($player1)
goto_if_false @GATEOS_502
9@ = Object.GetModel(0@)
if 
  Streaming.HasModelLoaded(9@)
goto_if_false @GATEOS_502
if 
  Char.LocateAnyMeansObject2D($scplayer, 0@, 12.0, 12.0, False)
goto_if_false @GATEOS_477
if or
  Char.IsInModel($scplayer, 433)
  Char.IsInModel($scplayer, 470)
  Char.IsInModel($scplayer, 432)
goto_if_false @GATEOS_366
$an, $temp_float_1, $temp_float_2 = Object.GetLevelDesignCoords(0@, 5)
$temp_float_3, $x_temp, $y_temp = Object.GetLevelDesignCoords(0@, 6)
$x, $y, $z = Object.GetLevelDesignCoords(0@, 7)
$z = Math.GetDistanceBetweenCoords2D($temp_float_3, $x_temp, $x, $y)
$z *= -1.0
if 
  Char.IsInAngledArea3D($scplayer, $an, $temp_float_1, $temp_float_2, $temp_float_3, $x_temp, $y_temp, $z, False)
goto_if_false @GATEOS_366
1@ = 1

:GATEOS_366
$an, $temp_float_1, $temp_float_2 = Object.GetLevelDesignCoords(0@, 1)
$temp_float_3, $x_temp, $y_temp = Object.GetLevelDesignCoords(0@, 2)
$x, $y, $z = Object.GetLevelDesignCoords(0@, 3)
$z = Math.GetDistanceBetweenCoords2D($temp_float_3, $x_temp, $x, $y)
if 
  Char.IsInAngledArea3D($scplayer, $an, $temp_float_1, $temp_float_2, $temp_float_3, $x_temp, $y_temp, $z, False)
goto_if_false @GATEOS_477
1@ = 1

:GATEOS_477
if 
  $open_gate_now_flag == 1
goto_if_false @GATEOS_502
1@ = 1

:GATEOS_502
if 
  1@ == 1
goto_if_false @GATEOS_589
9@ = Object.GetModel(0@)
if 
  Streaming.HasModelLoaded(9@)
goto_if_false @GATEOS_589
2@, 3@, 4@ = Object.GetLevelDesignCoords(0@, 0)
5@, 6@, 7@ = Object.GetCoordinates(0@)
Audio.ReportMissionAudioEventAtObject(0@, 1100)
1@ += 1

:GATEOS_589
if 
  1@ == 2
goto_if_false @GATEOS_727
if 
  Object.Slide(0@, 2@, 3@, 4@, 0.1, 0.1, 0.1, True)
goto_if_false @GATEOS_727
if 
  Object.Locate3D(0@, 2@, 3@, 4@, 0.1, 0.1, 0.1, False)
goto_if_false @GATEOS_727
Object.SetCoordinates(0@, 2@, 3@, 4@)
Audio.ReportMissionAudioEventAtObject(0@, 1101)
$open_gate_now_flag += 1
1@ += 1

:GATEOS_727
if 
  1@ == 3
goto_if_false @GATEOS_770
if 
  $gate_stay_open == 0
goto_if_false @GATEOS_770
1@ += 1

:GATEOS_770
if 
  1@ == 4
goto_if_false @GATEOS_850
if 
  Player.IsPlaying($player1)
goto_if_false @GATEOS_850
if 
  not Char.LocateAnyMeansObject2D($scplayer, 0@, 20.0, 20.0, False)
goto_if_false @GATEOS_850
Audio.ReportMissionAudioEventAtObject(0@, 1100)
1@ += 1

:GATEOS_850
if 
  1@ == 5
goto_if_false @GATEOS_981
if 
  Object.Slide(0@, 5@, 6@, 7@, 0.1, 0.1, 0.1, True)
goto_if_false @GATEOS_981
if 
  Object.Locate3D(0@, 5@, 6@, 7@, 0.1, 0.1, 0.1, False)
goto_if_false @GATEOS_981
Object.SetCoordinates(0@, 5@, 6@, 7@)
Audio.ReportMissionAudioEventAtObject(0@, 1101)
1@ = 0

:GATEOS_981
goto @GATEOS_990

:GATEOS_988
terminate_this_script 

:GATEOS_990
goto @GATEOS_999

:GATEOS_997
terminate_this_script 

:GATEOS_999
goto @GATEOS_80
terminate_this_script 

//-------------External script 11 (GYMBIKE)---------------

:GYMBIKE
script_name 'GYMBIKE'
$bike_shake_speed = 0
$bike_TIMERC = 0.0
$bike_pedals_z = 0
$distanceon_bikefloat = 0
$levelbar_bike_1 = 0
5@ = 0.0
6@ = 0.0
7@ = 0.0
8@ = 0.0
9@ = 0.0
10@ = 0.0
11@ = 0.0
12@ = 0.0
13@ = 0.0
14@ = 0.0
15@ = 0.0
$gym_TIMERC = 0.0
$ply_exbikex = 0.0
16@ = 0.0
17@ = 0.0
19@ = 0.0
$bike_pedals = 0
20@ = 0
21@ = 0
22@ = 0
23@ = 0
24@ = 0
25@ = 0
26@ = 0
27@ = 0
28@ = 0
$gym_TIMERC = 0.0
$ply_exbikex = 0.0
$ply_exbikey = 0
$speedbar_bike = 0
$levelbar_bike = 0
$distanceon_bike = 0.0
$distancetoaddbike_gym = 0.0
20@ = 0
21@ = 0
22@ = 0
23@ = 0
24@ = 0
25@ = 0
26@ = 0
27@ = 0
28@ = 0
$speedbar_bike = 0
30@ = 0
29@ = 0
$main_menu_bike = 0
TIMERA = 0
TIMERB = 0
if 
  30@ == 1
goto_if_false @GYMBIKE_486
0@ = Object.CreateNoOffset(#CM_BOX, 0.0, 0.0, 0.0)

:GYMBIKE_486
if 
  Object.DoesExist(0@)
goto_if_false @GYMBIKE_538
5@, 6@, 7@ = Object.GetCoordinates(0@)
11@, 12@, 13@ = Object.GetCoordinates(0@)
4@ = Object.GetHeading(0@)

:GYMBIKE_538
set_var_float_to_lvar_float $expedalsy = 7@
$expedalsy += 0.15
set_lvar_float_to_lvar_float 3@ = 4@
3@ -= 90.0
1@ = Math.Sin(3@)
2@ = Math.Cos(3@)
1@ *= 0.05
2@ *= 0.05
set_var_float_to_lvar_float $bike_has_KD = 5@
add_float_lvar_to_float_var $bike_has_KD += 2@
set_var_float_to_lvar_float $expedalsx = 6@
add_float_lvar_to_float_var $expedalsx += 1@
$temp_ply_z = Object.Create(#PEDALS, $bike_has_KD, $expedalsx, $expedalsy)
Object.SetHeading($temp_ply_z, 4@)
set_lvar_float_to_lvar_float 10@ = 7@
10@ += 0.9
set_lvar_float_to_lvar_float 3@ = 4@
3@ -= 45.0
1@ = Math.Sin(3@)
2@ = Math.Cos(3@)
1@ *= 2.8
2@ *= 2.8
set_lvar_float_to_lvar_float 8@ = 5@
add_float_lvar_to_float_lvar 8@ += 2@
set_lvar_float_to_lvar_float 9@ = 6@
add_float_lvar_to_float_lvar 9@ += 1@
4@ -= 180.0
3@ += 45.0
1@ = Math.Sin(3@)
2@ = Math.Cos(3@)
1@ *= 0.5
2@ *= 0.5
add_float_lvar_to_float_lvar 5@ += 2@
add_float_lvar_to_float_lvar 6@ += 1@
set_lvar_float_to_lvar_float 3@ = 4@
3@ -= 90.0
1@ = Math.Sin(3@)
2@ = Math.Cos(3@)
1@ *= 0.5
2@ *= 0.5
set_var_float_to_lvar_float $gym_TIMERC = 5@
add_float_lvar_to_float_var $gym_TIMERC += 2@
set_var_float_to_lvar_float $ply_exbikex = 6@
add_float_lvar_to_float_var $ply_exbikex += 1@
7@ += 0.05
$ply_exbikey = 0
$levelbar_bike = 0
$are_anims_loaded = 0

:GYMBIKE_960
wait 0
if 
  not Object.DoesExist(0@)
goto_if_false @GYMBIKE_987
Object.Delete($temp_ply_z)
terminate_this_script 

:GYMBIKE_987
if 
  not Object.IsWithinBrainActivationRange(0@)
goto_if_false @GYMBIKE_1010
Object.Delete($temp_ply_z)
terminate_this_script 

:GYMBIKE_1010
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_6327
if 
  20@ == 0
goto_if_false @GYMBIKE_1366
if 
  28@ == 0
goto_if_false @GYMBIKE_1325
if 
  Char.LocateOnFoot3D($scplayer, 5@, 6@, 7@, 1.2, 1.2, 4.0, False)
goto_if_false @GYMBIKE_1291
if 
  29@ == 0
goto_if_false @GYMBIKE_1140
Text.PrintHelpForever('GYM1_81')
29@ = 1

:GYMBIKE_1140
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @GYMBIKE_1284
if or
  $onmission == 0
  $gym_is_running == 1
goto_if_false @GYMBIKE_1268
$5344, $gym_day = Clock.GetCurrentDate()
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @GYMBIKE_1245
20@ = 1
$playerexercising_flag = 1
$bike_txt = 0
goto @GYMBIKE_1261

:GYMBIKE_1245
Text.PrintNow('GYM1_1A', 4000, 1)

:GYMBIKE_1261
goto @GYMBIKE_1284

:GYMBIKE_1268
Text.PrintNow('GYM1_90', 4000, 1)

:GYMBIKE_1284
goto @GYMBIKE_1318

:GYMBIKE_1291
if 
  29@ == 1
goto_if_false @GYMBIKE_1318
Text.ClearHelp
29@ = 0

:GYMBIKE_1318
goto @GYMBIKE_1366

:GYMBIKE_1325
if 
  not Char.LocateOnFoot2D($scplayer, 5@, 6@, 2.0, 2.0, False)
goto_if_false @GYMBIKE_1366
28@ = 0

:GYMBIKE_1366
if 
  20@ == 1
goto_if_false @GYMBIKE_6327
if 
  $are_anims_loaded == 0
goto_if_false @GYMBIKE_1494
Streaming.RequestAnimation("GYMNASIUM")

:GYMBIKE_1415
if 
  not Streaming.HasAnimationLoaded("GYMNASIUM")
goto_if_false @GYMBIKE_1450
wait 0
goto @GYMBIKE_1415

:GYMBIKE_1450
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1820)

:GYMBIKE_1461
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @GYMBIKE_1487
wait 0
goto @GYMBIKE_1461

:GYMBIKE_1487
$are_anims_loaded = 1

:GYMBIKE_1494
if and
  $playerexercising_flag == 1
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_1606
Char.SetCollision($scplayer, False)
Player.SetControl($player1, False)
Char.SetCoordinatesDontWarpGang($scplayer, $gym_TIMERC, $ply_exbikex, 7@)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Camera.SetFixedPosition(8@, 9@, 10@, 0.0, 0.0, 0.0)
Char.SetHeading($scplayer, 4@)
Camera.PointAtPoint(11@, 12@, 10@, SwitchType.JumpCut)
$playerexercising_flag = 2

:GYMBIKE_1606
if and
  $playerexercising_flag == 2
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_2192
Char.ClearTasksImmediately($scplayer)
Task.PlayAnim($scplayer, "GYM_BIKE_GETON", "GYMNASIUM", 4.0, False, False, False, True, -1)
Text.PrintHelpForever('GYM1_60')
if or
  $current_Language == 4
  $current_Language == 2
goto_if_false @GYMBIKE_1885
$8711 = Menu.Create('GYM1_D', 31.0, 180.0, 178.0, 1, True, True, 0)
Menu.SetColumn($8711, 0, 'GYM1_89', 'GYM1_61', 'GYM1_62', 'GYM1_63', 'GYM1_64', 'GYM1_65', 'GYM1_66', 'GYM1_67', 'GYM1_68', 'GYM1_69', 'GYM1_70', 'DUMMY', 'DUMMY')
goto @GYMBIKE_2046

:GYMBIKE_1885
$8711 = Menu.Create('GYM1_D', 31.0, 150.0, 178.0, 1, True, True, 0)
Menu.SetColumn($8711, 0, 'GYM1_89', 'GYM1_61', 'GYM1_62', 'GYM1_63', 'GYM1_64', 'GYM1_65', 'GYM1_66', 'GYM1_67', 'GYM1_68', 'GYM1_69', 'GYM1_70', 'DUMMY', 'DUMMY')

:GYMBIKE_2046
Menu.SetActiveItem($8711, 0)

:GYMBIKE_2053
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_2178
wait 0
$bike_txt += 1
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  $bike_txt > 20
goto_if_false @GYMBIKE_2125
Text.ClearHelp
Menu.Delete($8711)
$speedbar_bike = 0
goto @GYMBIKE_5322

:GYMBIKE_2125
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMBIKE_2171
Text.ClearHelp
$speedbar_bike = Menu.GetItemSelected($8711)
$speedbar_bike += 1
Menu.Delete($8711)
goto @GYMBIKE_2178

:GYMBIKE_2171
goto @GYMBIKE_2053

:GYMBIKE_2178
$playerexercising_flag = 3
TIMERB = 0

:GYMBIKE_2192
if and
  $playerexercising_flag == 3
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_2383
if 
  Char.IsPlayingAnim($scplayer, "GYM_BIKE_GETON")
goto_if_false @GYMBIKE_2383
15@ = Char.GetAnimCurrentTime($scplayer, "GYM_BIKE_GETON")
if 
  15@ == 1.0
goto_if_false @GYMBIKE_2383
Task.PlayAnim($scplayer, "GYM_BIKE_SLOW", "GYMNASIUM", 4.0, True, False, False, True, -1)
Object.PlayAnim($temp_ply_z, "PEDALS_SLOW", "GYMNASIUM", 4.0, True, -1)
$playerexercising_flag = 4

:GYMBIKE_2383
if and
  $playerexercising_flag == 4
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_2578
if 
  Char.IsPlayingAnim($scplayer, "GYM_BIKE_SLOW")
goto_if_false @GYMBIKE_2578
15@ = Char.GetAnimCurrentTime($scplayer, "GYM_BIKE_SLOW")
if 
  15@ == 0.0
goto_if_false @GYMBIKE_2578
Char.SetAnimPlayingFlag($scplayer, "GYM_BIKE_SLOW", False)
Hud.DisplayNthCounterWithString($ply_exbikey, CounterDisplay.Bar, 1, 'GYM1_1')
Hud.DisplayNthCounterWithString($speedbar_bike, CounterDisplay.Number, 2, 'GYM1_4')
Hud.DisplayNthCounterWithString($levelbar_bike, CounterDisplay.Number, 3, 'GYM1_3')
21@ = 1
$playerexercising_flag = 5
TIMERB = 0

:GYMBIKE_2578
if and
  $playerexercising_flag == 5
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_6327
if 
  $main_menu_bike == 0
goto_if_false @GYMBIKE_2637
Text.PrintHelpForever('GYM1_40')
$main_menu_bike = 1

:GYMBIKE_2637
if and
  TIMERB > 4000
  $main_menu_bike == 1
goto_if_false @GYMBIKE_2683
Text.ClearHelp
Text.PrintHelpForever('GYM1_41')
$main_menu_bike = 2

:GYMBIKE_2683
if and
  TIMERB > 8000
  $main_menu_bike == 2
goto_if_false @GYMBIKE_2718
Text.ClearHelp
$main_menu_bike = 101

:GYMBIKE_2718
19@ = Stat.GetFloat(StatId.Stamina)
19@ /= 100.0
set_lvar_float_to_lvar_float 16@ = 17@
add_float_lvar_to_float_lvar 16@ += 19@
14@ -= 0.7
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMBIKE_2811
if 
  22@ == 0
goto_if_false @GYMBIKE_2811
add_float_lvar_to_float_lvar 14@ += 16@
22@ = 1

:GYMBIKE_2811
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMBIKE_2853
if 
  22@ == 1
goto_if_false @GYMBIKE_2853
22@ = 0

:GYMBIKE_2853
if 
  0.0 > 14@
goto_if_false @GYMBIKE_2884
14@ = 0.0

:GYMBIKE_2884
if 
  14@ > 100.0
goto_if_false @GYMBIKE_2915
14@ = 100.0

:GYMBIKE_2915
if 
  21@ == 1
goto_if_false @GYMBIKE_3048
if 
  Char.IsPlayingAnim($scplayer, "GYM_BIKE_SLOW")
goto_if_false @GYMBIKE_3048
Char.SetAnimPlayingFlag($scplayer, "GYM_BIKE_SLOW", True)
Char.SetAnimSpeed($scplayer, "GYM_BIKE_SLOW", 0.5)
Object.SetAnimSpeed($temp_ply_z, "PEDALS_SLOW", 0.5)
TIMERA = 0
21@ = 2

:GYMBIKE_3048
if and
  21@ == 2
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_6223
19@ = Stat.GetFloat(StatId.Stamina)
19@ /= 200.0
if 
  0.0 > 19@
goto_if_false @GYMBIKE_3119
19@ = 0.0

:GYMBIKE_3119
cset_var_int_to_lvar_float $bike_pedals =# 19@
set_var_int_to_var_int $bike_speed_level = $speedbar_bike
sub_int_var_from_int_var $bike_speed_level -= $bike_pedals
if 
  14@ == 0.0
goto_if_false @GYMBIKE_3296
if 
  23@ == 0
goto_if_false @GYMBIKE_3296
Task.PlayAnim($scplayer, "GYM_BIKE_STILL", "GYMNASIUM", 4.0, True, False, False, True, -1)
Object.PlayAnim($temp_ply_z, "PEDALS_STILL", "GYMNASIUM", 4.0, True, -1)
24@ = 0
25@ = 0
26@ = 0
23@ = 1

:GYMBIKE_3296
if 
  24@ == 0
goto_if_false @GYMBIKE_3454
if and
  3 > $bike_speed_level
  14@ <> 0.0
goto_if_false @GYMBIKE_3454
Task.PlayAnim($scplayer, "GYM_BIKE_SLOW", "GYMNASIUM", 4.0, True, False, False, True, -1)
Object.PlayAnim($temp_ply_z, "PEDALS_SLOW", "GYMNASIUM", 4.0, True, -1)
24@ = 1
25@ = 0
26@ = 0
23@ = 0

:GYMBIKE_3454
if 
  25@ == 0
goto_if_false @GYMBIKE_3618
if and
  $bike_speed_level > 2
  7 > $bike_speed_level
  14@ <> 0.0
goto_if_false @GYMBIKE_3618
Task.PlayAnim($scplayer, "GYM_BIKE_FAST", "GYMNASIUM", 4.0, True, False, False, True, -1)
Object.PlayAnim($temp_ply_z, "PEDALS_MED", "GYMNASIUM", 4.0, True, -1)
24@ = 0
26@ = 0
25@ = 1
23@ = 0

:GYMBIKE_3618
if 
  26@ == 0
goto_if_false @GYMBIKE_3785
if and
  $bike_speed_level > 6
  11 > $bike_speed_level
  14@ <> 0.0
goto_if_false @GYMBIKE_3785
Task.PlayAnim($scplayer, "GYM_BIKE_FASTER", "GYMNASIUM", 4.0, True, False, False, True, -1)
Object.PlayAnim($temp_ply_z, "PEDALS_FAST", "GYMNASIUM", 4.0, True, -1)
24@ = 0
25@ = 0
26@ = 1
23@ = 0

:GYMBIKE_3785
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @GYMBIKE_3923
if 
  27@ == 0
goto_if_false @GYMBIKE_3923
if and
  $speedbar_bike > 0
  10 > $speedbar_bike
goto_if_false @GYMBIKE_3923
$speedbar_bike += 1
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @GYMBIKE_3875
Audio.ReportMissionAudioEventAtObject(0@, 1116)

:GYMBIKE_3875
14@ -= 20.0
if 
  0.0 > 14@
goto_if_false @GYMBIKE_3916
14@ = 0.0

:GYMBIKE_3916
27@ = 1

:GYMBIKE_3923
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @GYMBIKE_4020
if 
  27@ == 0
goto_if_false @GYMBIKE_4020
if and
  $speedbar_bike > 1
  11 > $speedbar_bike
goto_if_false @GYMBIKE_4020
$speedbar_bike -= 1
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @GYMBIKE_4013
Audio.ReportMissionAudioEventAtObject(0@, 1116)

:GYMBIKE_4013
27@ = 2

:GYMBIKE_4020
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @GYMBIKE_4062
if 
  27@ == 1
goto_if_false @GYMBIKE_4062
27@ = 0

:GYMBIKE_4062
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @GYMBIKE_4104
if 
  27@ == 2
goto_if_false @GYMBIKE_4104
27@ = 0

:GYMBIKE_4104
if 
  $speedbar_bike == 1
goto_if_false @GYMBIKE_4132
17@ = 6.5

:GYMBIKE_4132
if 
  $speedbar_bike == 2
goto_if_false @GYMBIKE_4160
17@ = 5.9

:GYMBIKE_4160
if 
  $speedbar_bike == 3
goto_if_false @GYMBIKE_4188
17@ = 5.0

:GYMBIKE_4188
if 
  $speedbar_bike == 4
goto_if_false @GYMBIKE_4216
17@ = 4.3

:GYMBIKE_4216
if 
  $speedbar_bike == 5
goto_if_false @GYMBIKE_4244
17@ = 3.7

:GYMBIKE_4244
if 
  $speedbar_bike == 6
goto_if_false @GYMBIKE_4272
17@ = 2.9

:GYMBIKE_4272
if 
  $speedbar_bike == 7
goto_if_false @GYMBIKE_4300
17@ = 2.2

:GYMBIKE_4300
if 
  $speedbar_bike == 8
goto_if_false @GYMBIKE_4328
17@ = 1.5

:GYMBIKE_4328
if 
  $speedbar_bike == 9
goto_if_false @GYMBIKE_4356
17@ = 1.1

:GYMBIKE_4356
if 
  $speedbar_bike == 10
goto_if_false @GYMBIKE_4384
17@ = 0.7

:GYMBIKE_4384
if 
  14@ >= 0.0
goto_if_false @GYMBIKE_4436
if 
  10.0 >= 14@
goto_if_false @GYMBIKE_4436
18@ = 0.9

:GYMBIKE_4436
if 
  14@ >= 11.0
goto_if_false @GYMBIKE_4488
if 
  20.0 >= 14@
goto_if_false @GYMBIKE_4488
18@ = 1.0

:GYMBIKE_4488
if 
  14@ >= 21.0
goto_if_false @GYMBIKE_4540
if 
  30.0 >= 14@
goto_if_false @GYMBIKE_4540
18@ = 1.1

:GYMBIKE_4540
if 
  14@ >= 31.0
goto_if_false @GYMBIKE_4592
if 
  40.0 >= 14@
goto_if_false @GYMBIKE_4592
18@ = 1.2

:GYMBIKE_4592
if 
  14@ >= 41.0
goto_if_false @GYMBIKE_4644
if 
  50.0 >= 14@
goto_if_false @GYMBIKE_4644
18@ = 1.3

:GYMBIKE_4644
if 
  14@ >= 51.0
goto_if_false @GYMBIKE_4696
if 
  60.0 >= 14@
goto_if_false @GYMBIKE_4696
18@ = 1.4

:GYMBIKE_4696
if 
  14@ >= 61.0
goto_if_false @GYMBIKE_4748
if 
  70.0 >= 14@
goto_if_false @GYMBIKE_4748
18@ = 1.5

:GYMBIKE_4748
if 
  14@ >= 71.0
goto_if_false @GYMBIKE_4800
if 
  80.0 >= 14@
goto_if_false @GYMBIKE_4800
18@ = 1.6

:GYMBIKE_4800
if 
  14@ >= 81.0
goto_if_false @GYMBIKE_4852
if 
  90.0 >= 14@
goto_if_false @GYMBIKE_4852
18@ = 1.7

:GYMBIKE_4852
if 
  14@ >= 91.0
goto_if_false @GYMBIKE_4904
if 
  100.0 >= 14@
goto_if_false @GYMBIKE_4904
18@ = 1.8

:GYMBIKE_4904
if and
  Char.IsPlayingAnim($scplayer, "GYM_BIKE_SLOW")
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_4963
Char.SetAnimSpeed($scplayer, "GYM_BIKE_SLOW", 18@)

:GYMBIKE_4963
if and
  Object.IsPlayingAnim($temp_ply_z, "PEDALS_SLOW")
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_5018
Object.SetAnimSpeed($temp_ply_z, "PEDALS_SLOW", 18@)

:GYMBIKE_5018
if and
  Char.IsPlayingAnim($scplayer, "GYM_BIKE_FAST")
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_5077
Char.SetAnimSpeed($scplayer, "GYM_BIKE_FAST", 18@)

:GYMBIKE_5077
if and
  Object.IsPlayingAnim($temp_ply_z, "PEDALS_MED")
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_5130
Object.SetAnimSpeed($temp_ply_z, "PEDALS_MED", 18@)

:GYMBIKE_5130
if and
  Char.IsPlayingAnim($scplayer, "GYM_BIKE_FASTER")
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_5193
Char.SetAnimSpeed($scplayer, "GYM_BIKE_FASTER", 18@)

:GYMBIKE_5193
if and
  Object.IsPlayingAnim($temp_ply_z, "PEDALS_FAST")
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_5248
Object.SetAnimSpeed($temp_ply_z, "PEDALS_FAST", 18@)

:GYMBIKE_5248
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  $gym_final_month > 200.0
goto_if_false @GYMBIKE_5782
if 
  $gym_final_month > 200.0
goto_if_false @GYMBIKE_5306
$gym_final_month = 0.0

:GYMBIKE_5306
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_5782

:GYMBIKE_5322
Pad.Shake(PadId.Pad1, 1, 1)
Stat.IncrementInt(StatId.DistExerciseBike, $levelbar_bike)
set_lvar_int_to_lvar_int 31@ = TIMERB
31@ /= 1000
Stat.IncrementInt(StatId.LongestExerciseBikeTime, 31@)
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_5463
Task.PlayAnim($scplayer, "GYM_BIKE_GETOFF", "GYMNASIUM", 4.0, False, False, False, False, -1)
Object.PlayAnim($temp_ply_z, "PEDALS_STILL", "GYMNASIUM", 4.0, False, -1)

:GYMBIKE_5463
21@ = 0
22@ = 0
23@ = 0
24@ = 0
25@ = 0
26@ = 0
27@ = 0
20@ = 0
$playerexercising_flag = 0
$speedbar_bike = 0
$levelbar_bike = 0
$distancetoaddbike_gym = 0.0
$distanceon_bike = 0.0
$ply_exbikey = 0
14@ = 0.0
$fatstat_gym = Stat.GetFloat(StatId.Fat)
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMBIKE_5614
Stat.SetFloat(StatId.Fat, 0.0)

:GYMBIKE_5614
if 
  Object.DoesExist(0@)
goto_if_false @GYMBIKE_5637
Object.SetCollision(0@, True)

:GYMBIKE_5637
$animstate_flag = 0
$playernextset_flag = 0
$are_anims_loaded = 0
Streaming.RemoveAnimation("GYMNASIUM")
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Hud.ClearCounter($ply_exbikey)
Hud.ClearCounter($speedbar_bike)
Hud.ClearCounter($levelbar_bike)
Camera.RestoreJumpcut
Player.SetControl($player1, False)
wait 0
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBIKE_5726
Player.SetControl($player1, True)

:GYMBIKE_5726
28@ = 1
Menu.Delete($8711)
Text.ClearHelp
Player.SetControl($player1, True)
Char.SetCollision($scplayer, True)

:GYMBIKE_5754
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMBIKE_5782
wait 0
goto @GYMBIKE_5754

:GYMBIKE_5782
if 
  Object.DoesExist(0@)
goto_if_false @GYMBIKE_5907
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @GYMBIKE_5907
if 
  14@ > 10.0
goto_if_false @GYMBIKE_5874
if 
  $bike_shake_speed == 0
goto_if_false @GYMBIKE_5867
Audio.ReportMissionAudioEventAtObject(0@, 1113)
$bike_shake_speed = 1

:GYMBIKE_5867
goto @GYMBIKE_5907

:GYMBIKE_5874
if 
  $bike_shake_speed == 1
goto_if_false @GYMBIKE_5907
Audio.ReportMissionAudioEventAtObject(0@, 1114)
$bike_shake_speed = 0

:GYMBIKE_5907
if 
  TIMERA > 250
goto_if_false @GYMBIKE_6223
TIMERA -= 250
set_var_float_to_lvar_float $distanceon_bike = 14@
$distanceon_bike /= 10.0
cset_var_float_to_var_int $statbike_temp =# $speedbar_bike
$statbike_temp /= 10.0
$statbike_temp += 1.0
mult_float_var_by_float_var $statbike_temp *= $distanceon_bike
add_float_var_to_float_var $statbikestamina_ctr += $statbike_temp
if 
  $statbikestamina_ctr >= 400.0
goto_if_false @GYMBIKE_6141
$statbikestamina_ctr -= 400.0
$fatstat_gym = Stat.GetFloat(StatId.Fat)
if 
  $fatstat_gym >= 1.0
goto_if_false @GYMBIKE_6064
Stat.DecrementFloat(StatId.Fat, 8.0)

:GYMBIKE_6064
if 
  $bike_start_sound == 3
goto_if_false @GYMBIKE_6115
$bike_start_sound = 0
Stat.IncrementFloat(StatId.Stamina, 4.0)
$gym_final_month += 4.0
goto @GYMBIKE_6141

:GYMBIKE_6115
Stat.IncrementFloatNoMessage(StatId.Stamina, 4.0)
$gym_final_month += 4.0
$bike_start_sound += 1

:GYMBIKE_6141
if 
  $gym_final_month > 200.0
goto_if_false @GYMBIKE_6186
$gym_month, $gym_final_day = Clock.GetCurrentDate()
Text.PrintNow('GYM1_1B', 4000, 1)

:GYMBIKE_6186
if 
  $levelbar_bike < 999999
goto_if_false @GYMBIKE_6223
add_float_var_to_float_var $distancetoaddbike_gym += $distanceon_bike
cset_var_int_to_var_float $levelbar_bike =# $distancetoaddbike_gym

:GYMBIKE_6223
$distanceon_bikefloat += 1
set_var_int_to_var_int $bike_pedals_z = $ply_exbikey
$bike_pedals_z -= 100
if 
  $bike_pedals_z > -40
goto_if_false @GYMBIKE_6270
$bike_pedals_z = -40

:GYMBIKE_6270
if 
  is_int_var_greater_or_equal_to_int_var $distanceon_bikefloat >= $bike_pedals_z
goto_if_false @GYMBIKE_6319
$distanceon_bikefloat = 0
$ply_exbikey *= 12
$ply_exbikey /= 10
Pad.Shake(PadId.Pad1, 100, $ply_exbikey)

:GYMBIKE_6319
cset_var_int_to_lvar_float $ply_exbikey =# 14@

:GYMBIKE_6327
goto @GYMBIKE_960
terminate_this_script 

//-------------External script 12 (GYMBENCH)---------------

:GYMBENC
script_name 'GYMBENC'
$weightbp = 0.0
$bench_show_stat = 0.0
$bench_audio = 2
$bench_playing = 0
23@ = 0
24@ = 0
25@ = 0
26@ = 0
27@ = 0
$temp_bench_weight = 0
$animframe_bppickup = 0.0
$animframe_bpgetoff = 0.0
$animframe_freepickup = 0.0
$animframe_freegetoff = 0.0
21@ = 1
$bpress_resistance = 0
$main_menu_bench = 0
22@ = 0
29@ = 0
TIMERA = 0
TIMERB = 0
if 
  29@ == 1
goto_if_false @GYMBENC_217
0@ = Object.CreateNoOffset(#BEACHTOWEL01, 0.0, 0.0, 0.0)

:GYMBENC_217
if 
  Object.DoesExist(0@)
goto_if_false @GYMBENC_277
5@, 6@, 7@ = Object.GetCoordinates(0@)
8@, 9@, 10@ = Object.GetCoordinates(0@)
11@ = Object.GetHeading(0@)
3@ = Object.GetHeading(0@)

:GYMBENC_277
1@ = 0.0
2@ = 0.0
12@ = 0.0
13@ = 0.0
14@ = 0.0
21@ = 1
$bpress_resistance = 0
set_lvar_float_to_lvar_float 14@ = 7@
14@ += 1.7
3@ -= 180.0
set_lvar_float_to_lvar_float 4@ = 3@
4@ -= 270.0
1@ = Math.Sin(4@)
2@ = Math.Cos(4@)
1@ *= 1.0
2@ *= 1.0
add_float_lvar_to_float_lvar 5@ += 2@
add_float_lvar_to_float_lvar 6@ += 1@
1@ *= 3.0
2@ *= 3.0
set_lvar_float_to_lvar_float 12@ = 5@
add_float_lvar_to_float_lvar 12@ += 2@
set_lvar_float_to_lvar_float 13@ = 6@
add_float_lvar_to_float_lvar 13@ += 1@
11@ += 90.0
1@ = Math.Sin(11@)
2@ = Math.Cos(11@)
1@ *= 1.0
2@ *= 1.0
sub_float_lvar_from_float_lvar 8@ -= 2@
sub_float_lvar_from_float_lvar 9@ -= 1@
30@ = Object.Create(#KMB_BPRESS, 8@, 9@, 10@)
Object.AttachToObject(30@, 0@, -0.45, 0.45, 0.9, 90.0, 180.0, 270.0)
3@ -= 180.0
$speedbar_bike = 1
$are_anims_loaded = 0

:GYMBENC_632
wait 0
if 
  not Object.DoesExist(0@)
goto_if_false @GYMBENC_659
Object.Delete(30@)
terminate_this_script 

:GYMBENC_659
if 
  not Object.IsWithinBrainActivationRange(0@)
goto_if_false @GYMBENC_682
Object.Delete(30@)
terminate_this_script 

:GYMBENC_682
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_8086
if and
  $playerexercising_flag == 0
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_1097
if 
  23@ == 0
goto_if_false @GYMBENC_1097
if 
  27@ == 0
goto_if_false @GYMBENC_1056
if 
  Char.LocateOnFoot3D($scplayer, 5@, 6@, 7@, 1.2, 1.2, 4.0, False)
goto_if_false @GYMBENC_1022
if 
  22@ == 0
goto_if_false @GYMBENC_835
Text.PrintHelpForever('GYM1_81')
22@ = 1

:GYMBENC_835
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @GYMBENC_1015
if or
  $onmission == 0
  $gym_is_running == 1
goto_if_false @GYMBENC_999
$5344, $gym_day = Clock.GetCurrentDate()
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @GYMBENC_976
23@ = 1
$playerexercising_flag = 1
Player.SetControl($player1, False)
Char.SetCoordinatesDontWarpGang($scplayer, 5@, 6@, 7@)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.SetHeading($scplayer, 3@)
$bike_txt = 0
goto @GYMBENC_992

:GYMBENC_976
Text.PrintNow('GYM1_1A', 4000, 1)

:GYMBENC_992
goto @GYMBENC_1015

:GYMBENC_999
Text.PrintNow('GYM1_90', 4000, 1)

:GYMBENC_1015
goto @GYMBENC_1049

:GYMBENC_1022
if 
  22@ == 1
goto_if_false @GYMBENC_1049
Text.ClearHelp
22@ = 0

:GYMBENC_1049
goto @GYMBENC_1097

:GYMBENC_1056
if 
  not Char.LocateOnFoot2D($scplayer, 5@, 6@, 2.0, 2.0, False)
goto_if_false @GYMBENC_1097
27@ = 0

:GYMBENC_1097
if 
  23@ == 1
goto_if_false @GYMBENC_1205
if 
  $are_anims_loaded == 0
goto_if_false @GYMBENC_1205
Streaming.RequestAnimation("BENCHPRESS")
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1820)

:GYMBENC_1158
if or
  not Streaming.HasAnimationLoaded("BENCHPRESS")
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @GYMBENC_1198
wait 0
goto @GYMBENC_1158

:GYMBENC_1198
$are_anims_loaded = 1

:GYMBENC_1205
if and
  23@ == 1
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_8086
if 
  $playerexercising_flag == 1
goto_if_false @GYMBENC_1324
Char.SetCollision($scplayer, False)
Player.SetControl($player1, False)
Char.SetCoordinatesDontWarpGang($scplayer, 5@, 6@, 7@)
Camera.SetFixedPosition(12@, 13@, 14@, 0.0, 0.0, 0.0)
Char.SetHeading($scplayer, 3@)
Camera.PointAtChar($scplayer, CameraMode.Fixed, SwitchType.JumpCut)
$playerexercising_flag = 2

:GYMBENC_1324
if and
  $playerexercising_flag == 2
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_2560
Text.PrintHelpForever('GYM1_71')
if or
  $current_Language == 4
  $current_Language == 2
goto_if_false @GYMBENC_1551
$bike_show_stat = Menu.Create('GYM1_E', 31.0, 180.0, 184.0, 1, True, True, 0)
Menu.SetColumn($bike_show_stat, 0, 'GYM1_72', 'GYM1_8', 'GYM1_9', 'GYM1_10', 'GYM1_11', 'GYM1_12', 'GYM1_13', 'GYM1_14', 'GYM1_15', 'GYM1_16', 'GYM1_17', 'DUMMY', 'DUMMY')
goto @GYMBENC_1712

:GYMBENC_1551
$bike_show_stat = Menu.Create('GYM1_E', 31.0, 150.0, 184.0, 1, True, True, 0)
Menu.SetColumn($bike_show_stat, 0, 'GYM1_72', 'GYM1_8', 'GYM1_9', 'GYM1_10', 'GYM1_11', 'GYM1_12', 'GYM1_13', 'GYM1_14', 'GYM1_15', 'GYM1_16', 'GYM1_17', 'DUMMY', 'DUMMY')

:GYMBENC_1712
Menu.SetActiveItem($bike_show_stat, 0)

:GYMBENC_1719
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_1837
wait 0
$bike_txt += 1
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  $bike_txt > 20
goto_if_false @GYMBENC_1784
Text.ClearHelp
Menu.Delete($bike_show_stat)
goto @GYMBENC_7341

:GYMBENC_1784
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMBENC_1830
Text.ClearHelp
21@ = Menu.GetItemSelected($bike_show_stat)
21@ += 1
Menu.Delete($bike_show_stat)
goto @GYMBENC_1837

:GYMBENC_1830
goto @GYMBENC_1719

:GYMBENC_1837
if 
  21@ == 1
goto_if_false @GYMBENC_1875
$bench_txt = 1.0
20@ = 5.0

:GYMBENC_1875
if 
  21@ == 2
goto_if_false @GYMBENC_1913
20@ = 5.2
$bench_txt = 2.0

:GYMBENC_1913
if 
  21@ == 3
goto_if_false @GYMBENC_1951
20@ = 5.3
$bench_txt = 3.0

:GYMBENC_1951
if 
  21@ == 4
goto_if_false @GYMBENC_1989
20@ = 5.5
$bench_txt = 4.0

:GYMBENC_1989
if 
  21@ == 5
goto_if_false @GYMBENC_2027
20@ = 6.0
$bench_txt = 5.0

:GYMBENC_2027
if 
  21@ == 6
goto_if_false @GYMBENC_2065
20@ = 6.5
$bench_txt = 6.0

:GYMBENC_2065
if 
  21@ == 7
goto_if_false @GYMBENC_2103
20@ = 7.0
$bench_txt = 7.0

:GYMBENC_2103
if 
  21@ == 8
goto_if_false @GYMBENC_2141
20@ = 7.5
$bench_txt = 8.0

:GYMBENC_2141
if 
  21@ == 9
goto_if_false @GYMBENC_2179
20@ = 8.0
$bench_txt = 9.0

:GYMBENC_2179
if 
  21@ == 10
goto_if_false @GYMBENC_2217
20@ = 8.5
$bench_txt = 10.0

:GYMBENC_2217
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_2279
Task.PlayAnim($scplayer, "GYM_BP_GETON", "BENCHPRESS", 4.0, False, False, False, True, -1)

:GYMBENC_2279
wait 0
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_2553
if and
  Char.IsPlayingAnim($scplayer, "GYM_BP_GETON")
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_2553
$animframe_bppickup = Char.GetAnimCurrentTime($scplayer, "GYM_BP_GETON")

:GYMBENC_2356
if 
  $animframe_bppickup <= 0.75
goto_if_false @GYMBENC_2426
wait 0
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_2419
$animframe_bppickup = Char.GetAnimCurrentTime($scplayer, "GYM_BP_GETON")

:GYMBENC_2419
goto @GYMBENC_2356

:GYMBENC_2426
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @GYMBENC_2449
Audio.ReportMissionAudioEventAtObject(0@, 1117)

:GYMBENC_2449
Object.FreezePosition(30@, False)
Object.Detach(30@, 0.0, 0.0, 0.0, False)
wait 0
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_2539
Task.PickUpObject($scplayer, 30@, 0.0, 0.0, -0.1, 6, 16, "NULL", "NULL", -1)

:GYMBENC_2539
$playerexercising_flag = 4
TIMERA = 0

:GYMBENC_2553
$playerexercising_flag = 4

:GYMBENC_2560
if and
  $playerexercising_flag == 4
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_3238
if 
  $main_menu_bench == 0
goto_if_false @GYMBENC_2621
Text.ClearHelp
Text.PrintHelpForever('GYM1_37')
$main_menu_bench = 1

:GYMBENC_2621
if and
  TIMERA > 6000
  $main_menu_bench == 1
goto_if_false @GYMBENC_2667
Text.ClearHelp
Text.PrintHelpForever('GYM1_25')
$main_menu_bench = 2

:GYMBENC_2667
if and
  TIMERA > 9000
  $main_menu_bench == 2
goto_if_false @GYMBENC_2702
Text.ClearHelp
$main_menu_bench = 101

:GYMBENC_2702
if 
  Char.IsPlayingAnim($scplayer, "GYM_BP_GETON")
goto_if_false @GYMBENC_2789
$animframe = Char.GetAnimCurrentTime($scplayer, "GYM_BP_GETON")
if 
  $animframe == 1.0
goto_if_false @GYMBENC_2782
goto @GYMBENC_2843

:GYMBENC_2782
goto @GYMBENC_3238

:GYMBENC_2789
if and
  $playernextset_flag == 1
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_3238
$bpress_resistance = 0
$powerbar = 0
Hud.ClearCounter($bpress_resistance)
Hud.ClearCounter($powerbar)
goto @GYMBENC_2843

:GYMBENC_2843
$upperbodymusclestat_gym = Stat.GetFloat(StatId.BodyMuscle)
$upperbodymusclestat_gym /= 30.0
if 
  0.0 > $upperbodymusclestat_gym
goto_if_false @GYMBENC_2891
$upperbodymusclestat_gym = 0.0

:GYMBENC_2891
set_var_float_to_var_float $weightbp = $upperbodymusclestat_gym
$weightbp += 30.0
if 
  $weightbp > 75.0
goto_if_false @GYMBENC_2940
$weightbp = 75.0

:GYMBENC_2940
cset_lvar_float_to_var_int 19@ =# $bpress_resistance
set_var_float_to_var_float $animationtobeplayed = $weightbp
sub_float_var_from_float_var $animationtobeplayed -= $bench_txt
if 
  18.0 >= $animationtobeplayed
goto_if_false @GYMBENC_3030
Task.PlayAnim($scplayer, "GYM_BP_UP_B", "BENCHPRESS", 8.0, False, False, False, True, -1)

:GYMBENC_3030
if 
  $animationtobeplayed > 18.0
goto_if_false @GYMBENC_3117
if 
  24.0 >= $animationtobeplayed
goto_if_false @GYMBENC_3117
Task.PlayAnim($scplayer, "GYM_BP_UP_A", "BENCHPRESS", 8.0, False, False, False, True, -1)

:GYMBENC_3117
if 
  $animationtobeplayed > 24.0
goto_if_false @GYMBENC_3188
Task.PlayAnim($scplayer, "GYM_BP_UP_SMOOTH", "BENCHPRESS", 8.0, False, False, False, True, -1)

:GYMBENC_3188
Hud.DisplayNthCounterWithString($powerbar, CounterDisplay.Bar, 1, 'GYM1_1')
Hud.DisplayNthCounterWithString($bpress_resistance, CounterDisplay.Number, 2, 'GYM1_2')
$animstate_flag = 1
$playerexercising_flag = 5

:GYMBENC_3238
if and
  $playerexercising_flag == 5
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_6949
$upperbodymusclestat_gym = Stat.GetFloat(StatId.BodyMuscle)
$upperbodymusclestat_gym /= 30.0
if 
  0.0 > $upperbodymusclestat_gym
goto_if_false @GYMBENC_3309
$upperbodymusclestat_gym = 0.0

:GYMBENC_3309
set_var_float_to_var_float $weightbp = $upperbodymusclestat_gym
$weightbp += 20.0
if 
  $weightbp > 75.0
goto_if_false @GYMBENC_3358
$weightbp = 75.0

:GYMBENC_3358
if 
  $main_menu_bench == 0
goto_if_false @GYMBENC_3396
Text.ClearHelp
Text.PrintHelpForever('GYM1_37')
$main_menu_bench = 1

:GYMBENC_3396
if and
  TIMERA > 6000
  $main_menu_bench == 1
goto_if_false @GYMBENC_3442
Text.ClearHelp
Text.PrintHelpForever('GYM1_25')
$main_menu_bench = 2

:GYMBENC_3442
if and
  TIMERA > 9000
  $main_menu_bench == 2
goto_if_false @GYMBENC_3477
Text.ClearHelp
$main_menu_bench = 101

:GYMBENC_3477
if or
  $animstate_flag == 1
  $animstate_flag == 3
goto_if_false @GYMBENC_3510
sub_float_var_from_float_lvar 18@ -= $bench_txt

:GYMBENC_3510
if 
  $animstate_flag == 4
goto_if_false @GYMBENC_3538
18@ -= 4.0

:GYMBENC_3538
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMBENC_3580
if 
  26@ == 1
goto_if_false @GYMBENC_3580
26@ = 2

:GYMBENC_3580
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @GYMBENC_3622
if 
  26@ == 3
goto_if_false @GYMBENC_3622
26@ = 0

:GYMBENC_3622
if or
  $animstate_flag == 1
  $animstate_flag == 3
goto_if_false @GYMBENC_3759
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  not Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @GYMBENC_3703
if 
  26@ == 0
goto_if_false @GYMBENC_3703
add_float_var_to_float_lvar 18@ += $weightbp
26@ = 1

:GYMBENC_3703
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMBENC_3759
if 
  26@ == 2
goto_if_false @GYMBENC_3759
add_float_var_to_float_lvar 18@ += $weightbp
26@ = 3

:GYMBENC_3759
if 
  0.0 > 18@
goto_if_false @GYMBENC_3790
18@ = 0.0

:GYMBENC_3790
if 
  18@ > 25.0
goto_if_false @GYMBENC_3822
$play_bench_once = Char.SetSayContext($scplayer, 349)

:GYMBENC_3822
if 
  18@ >= 100.0
goto_if_false @GYMBENC_3878
18@ = 100.0
if 
  $animstate_flag == 1
goto_if_false @GYMBENC_3878
$animstate_flag = 2

:GYMBENC_3878
if and
  $animstate_flag == 2
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_3943
if 
  $animvalue == 1.0
goto_if_false @GYMBENC_3943
26@ = 0
$animstate_flag = 3
TIMERB = 0

:GYMBENC_3943
if and
  $animstate_flag == 3
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_6043
switch_start 21@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @GYMBENC_4239 {caseNum1} 1 {caseLabel1} @GYMBENC_4094 {caseNum2} 2 {caseLabel2} @GYMBENC_4108 {caseNum3} 3 {caseLabel3} @GYMBENC_4122 {caseNum4} 4 {caseLabel4} @GYMBENC_4136 {caseNum5} 5 {caseLabel5} @GYMBENC_4150 {caseNum6} 6 {caseLabel6} @GYMBENC_4164 {caseNum7} 7 {caseLabel7} @GYMBENC_4179
switch_continued 8 {caseLabel1} @GYMBENC_4194 {caseNum2} 9 {caseLabel2} @GYMBENC_4209 {caseNum3} 10 {caseLabel3} @GYMBENC_4224 {caseNum4} -1 {caseLabel4} @GYMBENC_4239 {caseNum5} -1 {caseLabel5} @GYMBENC_4239 {caseNum6} -1 {caseLabel6} @GYMBENC_4239 {caseNum7} -1 {caseLabel7} @GYMBENC_4239 {caseNum8} -1 {caseLabel8} @GYMBENC_4239 {caseNum9} -1 {caseLabel9} @GYMBENC_4239

:GYMBENC_4094
$reps_bpress = 40
goto @GYMBENC_4239

:GYMBENC_4108
$reps_bpress = 60
goto @GYMBENC_4239

:GYMBENC_4122
$reps_bpress = 80
goto @GYMBENC_4239

:GYMBENC_4136
$reps_bpress = 100
goto @GYMBENC_4239

:GYMBENC_4150
$reps_bpress = 120
goto @GYMBENC_4239

:GYMBENC_4164
$reps_bpress = 160
goto @GYMBENC_4239

:GYMBENC_4179
$reps_bpress = 200
goto @GYMBENC_4239

:GYMBENC_4194
$reps_bpress = 240
goto @GYMBENC_4239

:GYMBENC_4209
$reps_bpress = 280
goto @GYMBENC_4239

:GYMBENC_4224
$reps_bpress = 320
goto @GYMBENC_4239

:GYMBENC_4239
$bench_weight = Stat.GetInt(StatId.HeaviestWeightBenchPress)
if 
  is_int_var_greater_than_int_var $reps_bpress > $bench_weight
goto_if_false @GYMBENC_4272
Stat.SetInt(StatId.HeaviestWeightBenchPress, $reps_bpress)

:GYMBENC_4272
Pad.Shake(PadId.Pad1, 200, 200)
if 
  $bpress_resistance < 999999
goto_if_false @GYMBENC_4310
$bpress_resistance += 1

:GYMBENC_4310
$bench_show_stat = Stat.GetFloat(StatId.BodyMuscle)
if 
  1000.0 > $bench_show_stat
goto_if_false @GYMBENC_4618
if 
  21@ == 1
goto_if_false @GYMBENC_4366
20@ = 1.0

:GYMBENC_4366
if 
  21@ == 2
goto_if_false @GYMBENC_4394
20@ = 1.2

:GYMBENC_4394
if 
  21@ == 3
goto_if_false @GYMBENC_4422
20@ = 1.3

:GYMBENC_4422
if 
  21@ == 4
goto_if_false @GYMBENC_4450
20@ = 1.5

:GYMBENC_4450
if 
  21@ == 5
goto_if_false @GYMBENC_4478
20@ = 2.0

:GYMBENC_4478
if 
  21@ == 6
goto_if_false @GYMBENC_4506
20@ = 2.5

:GYMBENC_4506
if 
  21@ == 7
goto_if_false @GYMBENC_4534
20@ = 3.0

:GYMBENC_4534
if 
  21@ == 8
goto_if_false @GYMBENC_4562
20@ = 4.0

:GYMBENC_4562
if 
  21@ == 9
goto_if_false @GYMBENC_4590
20@ = 5.0

:GYMBENC_4590
if 
  21@ == 10
goto_if_false @GYMBENC_4618
20@ = 6.0

:GYMBENC_4618
if 
  800.0 > $bench_show_stat
goto_if_false @GYMBENC_4919
if 
  21@ == 1
goto_if_false @GYMBENC_4667
20@ = 2.0

:GYMBENC_4667
if 
  21@ == 2
goto_if_false @GYMBENC_4695
20@ = 2.2

:GYMBENC_4695
if 
  21@ == 3
goto_if_false @GYMBENC_4723
20@ = 2.3

:GYMBENC_4723
if 
  21@ == 4
goto_if_false @GYMBENC_4751
20@ = 2.5

:GYMBENC_4751
if 
  21@ == 5
goto_if_false @GYMBENC_4779
20@ = 3.0

:GYMBENC_4779
if 
  21@ == 6
goto_if_false @GYMBENC_4807
20@ = 3.5

:GYMBENC_4807
if 
  21@ == 7
goto_if_false @GYMBENC_4835
20@ = 4.0

:GYMBENC_4835
if 
  21@ == 8
goto_if_false @GYMBENC_4863
20@ = 5.0

:GYMBENC_4863
if 
  21@ == 9
goto_if_false @GYMBENC_4891
20@ = 6.0

:GYMBENC_4891
if 
  21@ == 10
goto_if_false @GYMBENC_4919
20@ = 7.0

:GYMBENC_4919
if 
  600.0 > $bench_show_stat
goto_if_false @GYMBENC_5220
if 
  21@ == 1
goto_if_false @GYMBENC_4968
20@ = 3.0

:GYMBENC_4968
if 
  21@ == 2
goto_if_false @GYMBENC_4996
20@ = 3.2

:GYMBENC_4996
if 
  21@ == 3
goto_if_false @GYMBENC_5024
20@ = 3.3

:GYMBENC_5024
if 
  21@ == 4
goto_if_false @GYMBENC_5052
20@ = 3.5

:GYMBENC_5052
if 
  21@ == 5
goto_if_false @GYMBENC_5080
20@ = 4.0

:GYMBENC_5080
if 
  21@ == 6
goto_if_false @GYMBENC_5108
20@ = 4.5

:GYMBENC_5108
if 
  21@ == 7
goto_if_false @GYMBENC_5136
20@ = 5.0

:GYMBENC_5136
if 
  21@ == 8
goto_if_false @GYMBENC_5164
20@ = 6.0

:GYMBENC_5164
if 
  21@ == 9
goto_if_false @GYMBENC_5192
20@ = 7.0

:GYMBENC_5192
if 
  21@ == 10
goto_if_false @GYMBENC_5220
20@ = 8.0

:GYMBENC_5220
if 
  400.0 > $bench_show_stat
goto_if_false @GYMBENC_5521
if 
  21@ == 1
goto_if_false @GYMBENC_5269
20@ = 4.0

:GYMBENC_5269
if 
  21@ == 2
goto_if_false @GYMBENC_5297
20@ = 4.2

:GYMBENC_5297
if 
  21@ == 3
goto_if_false @GYMBENC_5325
20@ = 4.3

:GYMBENC_5325
if 
  21@ == 4
goto_if_false @GYMBENC_5353
20@ = 4.5

:GYMBENC_5353
if 
  21@ == 5
goto_if_false @GYMBENC_5381
20@ = 5.0

:GYMBENC_5381
if 
  21@ == 6
goto_if_false @GYMBENC_5409
20@ = 5.5

:GYMBENC_5409
if 
  21@ == 7
goto_if_false @GYMBENC_5437
20@ = 6.0

:GYMBENC_5437
if 
  21@ == 8
goto_if_false @GYMBENC_5465
20@ = 7.0

:GYMBENC_5465
if 
  21@ == 9
goto_if_false @GYMBENC_5493
20@ = 8.0

:GYMBENC_5493
if 
  21@ == 10
goto_if_false @GYMBENC_5521
20@ = 9.0

:GYMBENC_5521
if 
  200.0 > $bench_show_stat
goto_if_false @GYMBENC_5822
if 
  21@ == 1
goto_if_false @GYMBENC_5570
20@ = 5.0

:GYMBENC_5570
if 
  21@ == 2
goto_if_false @GYMBENC_5598
20@ = 5.2

:GYMBENC_5598
if 
  21@ == 3
goto_if_false @GYMBENC_5626
20@ = 5.3

:GYMBENC_5626
if 
  21@ == 4
goto_if_false @GYMBENC_5654
20@ = 5.5

:GYMBENC_5654
if 
  21@ == 5
goto_if_false @GYMBENC_5682
20@ = 6.0

:GYMBENC_5682
if 
  21@ == 6
goto_if_false @GYMBENC_5710
20@ = 6.5

:GYMBENC_5710
if 
  21@ == 7
goto_if_false @GYMBENC_5738
20@ = 7.0

:GYMBENC_5738
if 
  21@ == 8
goto_if_false @GYMBENC_5766
20@ = 7.5

:GYMBENC_5766
if 
  21@ == 9
goto_if_false @GYMBENC_5794
20@ = 8.0

:GYMBENC_5794
if 
  21@ == 10
goto_if_false @GYMBENC_5822
20@ = 8.5

:GYMBENC_5822
if 
  $bench_sfx == 8
goto_if_false @GYMBENC_5869
$bench_sfx = 0
Stat.IncrementFloat(StatId.BodyMuscle, 20@)
add_float_lvar_to_float_var $gym_final_month += 20@
goto @GYMBENC_5891

:GYMBENC_5869
Stat.IncrementFloatNoMessage(StatId.BodyMuscle, 20@)
$bench_sfx += 1
add_float_lvar_to_float_var $gym_final_month += 20@

:GYMBENC_5891
if 
  $gym_final_month > 200.0
goto_if_false @GYMBENC_5936
$gym_month, $gym_final_day = Clock.GetCurrentDate()
Text.PrintNow('GYM1_1B', 4000, 1)

:GYMBENC_5936
$fatstat_gym = Stat.GetFloat(StatId.Fat)
if 
  $fatstat_gym >= 1.0
goto_if_false @GYMBENC_5973
Stat.DecrementFloat(StatId.Fat, 1.0)

:GYMBENC_5973
$powerbar = 0
$play_bench_once = Char.SetSayContext($scplayer, 350)
Task.PlayAnim($scplayer, "GYM_BP_DOWN", "BENCHPRESS", 8.0, False, False, False, True, -1)
$animstate_flag = 4

:GYMBENC_6043
if and
  $animstate_flag == 4
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_6383
if and
  18@ == 0.0
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_6383
if 
  $animvalue == 0.0
goto_if_false @GYMBENC_6383
cset_lvar_float_to_var_int 19@ =# $bpress_resistance
set_var_float_to_var_float $animationtobeplayed = $weightbp
sub_float_var_from_float_var $animationtobeplayed -= $bench_txt
if and
  18.0 >= $animationtobeplayed
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_6208
Task.PlayAnim($scplayer, "GYM_BP_UP_B", "BENCHPRESS", 8.0, False, False, False, True, -1)

:GYMBENC_6208
if and
  $animationtobeplayed > 18.0
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_6300
if 
  24.0 >= $animationtobeplayed
goto_if_false @GYMBENC_6300
Task.PlayAnim($scplayer, "GYM_BP_UP_A", "BENCHPRESS", 8.0, False, False, False, True, -1)

:GYMBENC_6300
if and
  $animationtobeplayed > 24.0
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_6376
Task.PlayAnim($scplayer, "GYM_BP_UP_SMOOTH", "BENCHPRESS", 8.0, False, False, False, True, -1)

:GYMBENC_6376
$animstate_flag = 1

:GYMBENC_6383
set_var_float_to_lvar_float $bar_animvalue = 18@
$bar_animvalue /= 100.0
if and
  $animstate_flag > 0
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_6762
set_var_float_to_var_float $diffgym = $bar_animvalue
sub_float_var_from_float_var $diffgym -= $animvalue
$diffgym /= 2.0
if and
  0.05 > $diffgym
  $diffgym > -0.05
goto_if_false @GYMBENC_6496
set_var_float_to_var_float $animvalue = $bar_animvalue
goto @GYMBENC_6504

:GYMBENC_6496
add_float_var_to_float_var $animvalue += $diffgym

:GYMBENC_6504
if and
  $animstate_flag == 4
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_6602
$tempfloat_gym = 1.0
sub_float_var_from_float_var $tempfloat_gym -= $animvalue
if 
  Char.IsPlayingAnim($scplayer, "GYM_BP_DOWN")
goto_if_false @GYMBENC_6595
Char.SetAnimCurrentTime($scplayer, "GYM_BP_DOWN", $tempfloat_gym)

:GYMBENC_6595
goto @GYMBENC_6762

:GYMBENC_6602
if 
  Char.IsPlayingAnim($scplayer, "GYM_BP_UP_A")
goto_if_false @GYMBENC_6652
Char.SetAnimCurrentTime($scplayer, "GYM_BP_UP_A", $animvalue)

:GYMBENC_6652
if 
  Char.IsPlayingAnim($scplayer, "GYM_BP_UP_B")
goto_if_false @GYMBENC_6702
Char.SetAnimCurrentTime($scplayer, "GYM_BP_UP_B", $animvalue)

:GYMBENC_6702
if 
  Char.IsPlayingAnim($scplayer, "GYM_BP_UP_SMOOTH")
goto_if_false @GYMBENC_6762
Char.SetAnimCurrentTime($scplayer, "GYM_BP_UP_SMOOTH", $animvalue)

:GYMBENC_6762
cset_var_int_to_lvar_float $powerbar =# 18@
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  $gym_final_month > 200.0
goto_if_false @GYMBENC_6949
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_6949

:GYMBENC_6813
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMBENC_6841
wait 0
goto @GYMBENC_6813

:GYMBENC_6841
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_6904
Task.PlayAnim($scplayer, "GYM_BP_GETOFF", "BENCHPRESS", 100.0, False, False, False, False, -1)

:GYMBENC_6904
$powerbar = 0
if 
  $gym_final_month > 200.0
goto_if_false @GYMBENC_6942
$gym_final_month = 0.0

:GYMBENC_6942
$playerexercising_flag = 6

:GYMBENC_6949
if and
  $playerexercising_flag == 6
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_8086
if 
  $bpress_resistance > 4
goto_if_false @GYMBENC_7606
if and
  Char.IsPlayingAnim($scplayer, "GYM_BP_GETOFF")
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_7599
$animframe_bpgetoff = Char.GetAnimCurrentTime($scplayer, "GYM_BP_GETOFF")

:GYMBENC_7049
if 
  $animframe_bpgetoff <= 0.26
goto_if_false @GYMBENC_7120
wait 0
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_7113
$animframe_bpgetoff = Char.GetAnimCurrentTime($scplayer, "GYM_BP_GETOFF")

:GYMBENC_7113
goto @GYMBENC_7049

:GYMBENC_7120
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
  $bench_playing == 0
goto_if_false @GYMBENC_7157
Audio.ReportMissionAudioEventAtObject(0@, 1117)
$bench_playing = 1

:GYMBENC_7157
Char.DropObject($scplayer, False)
Object.FreezePosition(30@, True)
Object.Delete(30@)
30@ = Object.Create(#KMB_BPRESS, 8@, 9@, 10@)
Object.AttachToObject(30@, 0@, -0.45, 0.45, 0.9, 90.0, 180.0, 270.0)
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_7270
$animframe = Char.GetAnimCurrentTime($scplayer, "GYM_BP_GETOFF")

:GYMBENC_7270
if 
  $animframe == 1.0
goto_if_false @GYMBENC_7599
Task.PlayAnim($scplayer, "GYM_BP_CELEBRATE", "BENCHPRESS", 8.0, False, False, False, False, -1)

:GYMBENC_7341
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_7599
23@ = 0
$animstate_flag = 0
27@ = 1
21@ = 1
$bpress_resistance = 0
$powerbar = 0
$animationtobeplayed = 0.0
$playerexercising_flag = 0
18@ = 0.0
21@ = 1
$bpress_resistance = 0
$upperbodymusclestat_gym = Stat.GetFloat(StatId.BodyMuscle)
if 
  $upperbodymusclestat_gym >= 1000.0
goto_if_false @GYMBENC_7477
Stat.SetFloat(StatId.BodyMuscle, 1000.0)

:GYMBENC_7477
$fatstat_gym = Stat.GetFloat(StatId.Fat)
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMBENC_7514
Stat.SetFloat(StatId.Fat, 0.0)

:GYMBENC_7514
$animframe_bppickup = 0.0
$animframe_bpgetoff = 0.0
Hud.ClearCounter($bpress_resistance)
Hud.ClearCounter($powerbar)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Char.SetCollision($scplayer, True)
Streaming.RemoveAnimation("BENCHPRESS")
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Text.ClearHelp
Menu.Delete($bike_show_stat)
$main_menu_bench = 0
$are_anims_loaded = 0

:GYMBENC_7599
goto @GYMBENC_8086

:GYMBENC_7606
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_8086
if 
  Char.IsPlayingAnim($scplayer, "GYM_BP_GETOFF")
goto_if_false @GYMBENC_8086
$animframe_bpgetoff = Char.GetAnimCurrentTime($scplayer, "GYM_BP_GETOFF")

:GYMBENC_7676
if 
  $animframe_bpgetoff <= 0.26
goto_if_false @GYMBENC_7747
wait 0
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_7740
$animframe_bpgetoff = Char.GetAnimCurrentTime($scplayer, "GYM_BP_GETOFF")

:GYMBENC_7740
goto @GYMBENC_7676

:GYMBENC_7747
if and
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
  $bench_playing == 0
goto_if_false @GYMBENC_7784
Audio.ReportMissionAudioEventAtObject(0@, 1117)
$bench_playing = 1

:GYMBENC_7784
Char.DropObject($scplayer, False)
Object.FreezePosition(30@, True)
Object.Delete(30@)
30@ = Object.Create(#KMB_BPRESS, 8@, 9@, 10@)
Object.AttachToObject(30@, 0@, -0.45, 0.45, 0.9, 90.0, 180.0, 270.0)
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMBENC_7897
$animframe = Char.GetAnimCurrentTime($scplayer, "GYM_BP_GETOFF")

:GYMBENC_7897
if 
  $animframe == 1.0
goto_if_false @GYMBENC_8086
$animframe_bppickup = 0.0
$animframe_bpgetoff = 0.0
23@ = 0
$animstate_flag = 0
27@ = 1
21@ = 1
$bpress_resistance = 0
$powerbar = 0
$animationtobeplayed = 0.0
$playerexercising_flag = 0
18@ = 0.0
21@ = 1
$bpress_resistance = 0
Hud.ClearCounter($bpress_resistance)
Hud.ClearCounter($powerbar)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Char.SetCollision($scplayer, True)
Streaming.RemoveAnimation("BENCHPRESS")
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Text.ClearHelp
Menu.Delete($bike_show_stat)
$main_menu_bench = 0
$are_anims_loaded = 0

:GYMBENC_8086
goto @GYMBENC_632
terminate_this_script 

//-------------External script 13 (GYMTREAD)---------------

:GYMTREA
script_name 'GYMTREA'
$tread_TIMERC = 0
$tread_shake_speed = 0
$tread_has_KD = 0
$tread_txt = 0
$levelbar_tread = 0
$speed_treadbar = 0
$incline_tread = 0
$distanceon_tread = 0
$starttreadmill_flag = 0
$incline_tread_flag = 0
$inclinebutton_flag = 0
$reptread_flag = 0
$buttonpressgymtread_flag = 0
$playerstarttread_flag = 0
$playwalkanim_flag = 0
$playjoganim_flag = 0
$playsprintanim_flag = 0
$finishedtread_flag = 0
19@ = 1.0
$tread_txt = 1
$speed_treadbar = 1
$playerexercising_flag = 0
$incline_tread = 0
22@ = 0.0
21@ = 0.0
$are_anims_loaded = 0
$finishedtread_flag = 1
27@ = 0
TIMERA = 0
TIMERB = 0
28@ = 0
if 
  28@ == 1
goto_if_false @GYMTREA_278
0@ = Object.CreateNoOffset(#BEACHTOWEL03, 0.0, 0.0, 0.0)

:GYMTREA_278
if 
  Object.DoesExist(0@)
goto_if_false @GYMTREA_330
1@, 2@, 3@ = Object.GetCoordinates(0@)
7@, 8@, 9@ = Object.GetCoordinates(0@)
10@ = Object.GetHeading(0@)

:GYMTREA_330
19@ = 1.0
$tread_txt = 1
$speed_treadbar = 1
26@ = 1.0
set_lvar_float_to_lvar_float 6@ = 3@
6@ += 1.5
set_lvar_float_to_lvar_float 9@ = 3@
9@ += 0.75
set_lvar_float_to_lvar_float 11@ = 10@
11@ -= 60.0
12@ = Math.Sin(11@)
13@ = Math.Cos(11@)
12@ *= 3.0
13@ *= 3.0
set_lvar_float_to_lvar_float 4@ = 1@
sub_float_lvar_from_float_lvar 4@ -= 13@
set_lvar_float_to_lvar_float 5@ = 2@
sub_float_lvar_from_float_lvar 5@ -= 12@
set_lvar_float_to_lvar_float 11@ = 10@
11@ += 90.0
12@ = Math.Sin(11@)
13@ = Math.Cos(11@)
12@ *= 1.5
13@ *= 1.5
sub_float_lvar_from_float_lvar 1@ -= 13@
sub_float_lvar_from_float_lvar 2@ -= 12@
3@ += 0.1
$are_anims_loaded = 0

:GYMTREA_573
wait 0
if 
  not Object.DoesExist(0@)
goto_if_false @GYMTREA_595
terminate_this_script 

:GYMTREA_595
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMTREA_5875
if and
  $playerexercising_flag == 0
  not Char.IsDead($scplayer)
goto_if_false @GYMTREA_974
if 
  $starttreadmill_flag == 0
goto_if_false @GYMTREA_974
if 
  $finishedtread_flag == 0
goto_if_false @GYMTREA_933
if 
  Char.LocateOnFoot3D($scplayer, 1@, 2@, 3@, 1.2, 1.2, 4.0, False)
goto_if_false @GYMTREA_899
if 
  27@ == 0
goto_if_false @GYMTREA_748
Text.PrintHelpForever('GYM1_81')
27@ = 1

:GYMTREA_748
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @GYMTREA_892
if or
  $onmission == 0
  $gym_is_running == 1
goto_if_false @GYMTREA_876
$5344, $gym_day = Clock.GetCurrentDate()
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @GYMTREA_853
$starttreadmill_flag = 1
$playerexercising_flag = 1
$bike_txt = 0
goto @GYMTREA_869

:GYMTREA_853
Text.PrintNow('GYM1_1A', 4000, 1)

:GYMTREA_869
goto @GYMTREA_892

:GYMTREA_876
Text.PrintNow('GYM1_90', 4000, 1)

:GYMTREA_892
goto @GYMTREA_926

:GYMTREA_899
if 
  27@ == 1
goto_if_false @GYMTREA_926
Text.ClearHelp
27@ = 0

:GYMTREA_926
goto @GYMTREA_974

:GYMTREA_933
if 
  not Char.LocateOnFoot2D($scplayer, 1@, 2@, 2.0, 2.0, False)
goto_if_false @GYMTREA_974
$finishedtread_flag = 0

:GYMTREA_974
if and
  $starttreadmill_flag == 1
  not Char.IsDead($scplayer)
goto_if_false @GYMTREA_5875
if 
  $are_anims_loaded == 0
goto_if_false @GYMTREA_1107
Streaming.RequestAnimation("GYMNASIUM")

:GYMTREA_1028
if 
  not Streaming.HasAnimationLoaded("GYMNASIUM")
goto_if_false @GYMTREA_1063
wait 0
goto @GYMTREA_1028

:GYMTREA_1063
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1820)

:GYMTREA_1074
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @GYMTREA_1100
wait 0
goto @GYMTREA_1074

:GYMTREA_1100
$are_anims_loaded = 1

:GYMTREA_1107
if and
  $playerexercising_flag == 1
  not Char.IsDead($scplayer)
goto_if_false @GYMTREA_1219
Char.SetCollision($scplayer, False)
Player.SetControl($player1, False)
Char.SetCoordinatesDontWarpGang($scplayer, 1@, 2@, 3@)
Char.SetHeading($scplayer, 10@)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Camera.SetFixedPosition(4@, 5@, 6@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(7@, 8@, 9@, SwitchType.JumpCut)
$playerexercising_flag = 2

:GYMTREA_1219
if 
  $playerexercising_flag == 2
goto_if_false @GYMTREA_1939
Text.PrintHelpForever('GYM1_60')
if or
  $current_Language == 4
  $current_Language == 2
goto_if_false @GYMTREA_1441
$temp_muscle_stat = Menu.Create('GYM1_F', 31.0, 180.0, 184.0, 1, True, True, 0)
Menu.SetColumn($temp_muscle_stat, 0, 'GYM1_89', 'GYM1_61', 'GYM1_62', 'GYM1_63', 'GYM1_64', 'GYM1_65', 'GYM1_66', 'GYM1_67', 'GYM1_68', 'GYM1_69', 'GYM1_70', 'DUMMY', 'DUMMY')
goto @GYMTREA_1602

:GYMTREA_1441
$temp_muscle_stat = Menu.Create('GYM1_F', 31.0, 150.0, 184.0, 1, True, True, 0)
Menu.SetColumn($temp_muscle_stat, 0, 'GYM1_89', 'GYM1_61', 'GYM1_62', 'GYM1_63', 'GYM1_64', 'GYM1_65', 'GYM1_66', 'GYM1_67', 'GYM1_68', 'GYM1_69', 'GYM1_70', 'DUMMY', 'DUMMY')

:GYMTREA_1602
Menu.SetActiveItem($temp_muscle_stat, 0)

:GYMTREA_1609
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMTREA_1734
wait 0
$bike_txt += 1
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  $bike_txt > 20
goto_if_false @GYMTREA_1674
Text.ClearHelp
Menu.Delete($temp_muscle_stat)
goto @GYMTREA_5418

:GYMTREA_1674
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMTREA_1727
Text.ClearHelp
$tread_txt = Menu.GetItemSelected($temp_muscle_stat)
$tread_txt += 1
Menu.Delete($temp_muscle_stat)
TIMERA = 0
goto @GYMTREA_1734

:GYMTREA_1727
goto @GYMTREA_1609

:GYMTREA_1734
if 
  $tread_helpflag == 0
goto_if_false @GYMTREA_1775
Text.PrintHelp('GYM1_42')
wait 4000
$tread_helpflag = 1

:GYMTREA_1775
if 
  $tread_helpflag == 1
goto_if_false @GYMTREA_1816
Text.PrintHelp('GYM1_43')
wait 5000
$tread_helpflag = 2

:GYMTREA_1816
if 
  $tread_helpflag == 2
goto_if_false @GYMTREA_1864
Text.PrintHelp('GYM1_45')
wait 4000
$tread_helpflag = 4
TIMERA = 0

:GYMTREA_1864
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMTREA_1928
Task.PlayAnim($scplayer, "GYM_TREAD_GETON", "GYMNASIUM", 4.0, False, False, False, True, -1)

:GYMTREA_1928
wait 0
$playerexercising_flag = 3

:GYMTREA_1939
if and
  $playerexercising_flag == 3
  not Char.IsDead($scplayer)
goto_if_false @GYMTREA_2159
if 
  Char.IsPlayingAnim($scplayer, "GYM_TREAD_GETON")
goto_if_false @GYMTREA_2159
14@ = Char.GetAnimCurrentTime($scplayer, "GYM_TREAD_GETON")
if 
  14@ == 1.0
goto_if_false @GYMTREA_2159
Task.PlayAnim($scplayer, "GYM_TREAD_WALK", "GYMNASIUM", 8.0, True, False, False, True, -1)
Hud.DisplayNthCounterWithString($levelbar_tread, CounterDisplay.Bar, 1, 'GYM1_1')
Hud.DisplayNthCounterWithString($tread_txt, CounterDisplay.Number, 2, 'GYM1_4')
Hud.DisplayNthCounterWithString($incline_tread, CounterDisplay.Number, 3, 'GYM1_3')
17@ = 30.0
$playerexercising_flag = 4

:GYMTREA_2159
if and
  $playerexercising_flag == 4
  not Char.IsDead($scplayer)
goto_if_false @GYMTREA_5875
23@ /= 500.0
$lowerbodymusclestat_gym /= 750.0
add_float_var_to_float_lvar 23@ += $lowerbodymusclestat_gym
set_lvar_float_to_lvar_float 18@ = 20@
add_float_lvar_to_float_lvar 18@ += 23@
sub_float_lvar_from_float_lvar 17@ -= 19@
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMTREA_2284
if 
  $reptread_flag == 0
goto_if_false @GYMTREA_2284
add_float_lvar_to_float_lvar 17@ += 18@
$reptread_flag = 1

:GYMTREA_2284
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMTREA_2326
if 
  $reptread_flag == 1
goto_if_false @GYMTREA_2326
$reptread_flag = 0

:GYMTREA_2326
if 
  0.0 > 17@
goto_if_false @GYMTREA_2357
17@ = 0.0

:GYMTREA_2357
if 
  17@ > 100.0
goto_if_false @GYMTREA_2388
17@ = 100.0

:GYMTREA_2388
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
goto_if_false @GYMTREA_2405

:GYMTREA_2405
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
goto_if_false @GYMTREA_2422

:GYMTREA_2422
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
goto_if_false @GYMTREA_2464
if 
  $inclinebutton_flag == 1
goto_if_false @GYMTREA_2464
$inclinebutton_flag = 0

:GYMTREA_2464
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
goto_if_false @GYMTREA_2506
if 
  $inclinebutton_flag == 2
goto_if_false @GYMTREA_2506
$inclinebutton_flag = 0

:GYMTREA_2506
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @GYMTREA_2644
if 
  $buttonpressgymtread_flag == 0
goto_if_false @GYMTREA_2644
if and
  $tread_txt > 0
  10 > $tread_txt
goto_if_false @GYMTREA_2644
$tread_txt += 1
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @GYMTREA_2596
Audio.ReportMissionAudioEventAtObject(0@, 1116)

:GYMTREA_2596
17@ -= 10.0
if 
  0.0 > 17@
goto_if_false @GYMTREA_2637
17@ = 0.0

:GYMTREA_2637
$buttonpressgymtread_flag = 1

:GYMTREA_2644
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @GYMTREA_2741
if 
  $buttonpressgymtread_flag == 0
goto_if_false @GYMTREA_2741
if and
  $tread_txt > 1
  11 > $tread_txt
goto_if_false @GYMTREA_2741
$tread_txt -= 1
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @GYMTREA_2734
Audio.ReportMissionAudioEventAtObject(0@, 1116)

:GYMTREA_2734
$buttonpressgymtread_flag = 2

:GYMTREA_2741
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @GYMTREA_2783
if 
  $buttonpressgymtread_flag == 1
goto_if_false @GYMTREA_2783
$buttonpressgymtread_flag = 0

:GYMTREA_2783
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @GYMTREA_2825
if 
  $buttonpressgymtread_flag == 2
goto_if_false @GYMTREA_2825
$buttonpressgymtread_flag = 0

:GYMTREA_2825
if 
  $tread_txt == 1
goto_if_false @GYMTREA_2863
26@ = 1.0
20@ = 9.5

:GYMTREA_2863
if 
  $tread_txt == 2
goto_if_false @GYMTREA_2901
26@ = 2.0
20@ = 8.5

:GYMTREA_2901
if 
  $tread_txt == 3
goto_if_false @GYMTREA_2939
26@ = 3.0
20@ = 7.5

:GYMTREA_2939
if 
  $tread_txt == 4
goto_if_false @GYMTREA_2977
26@ = 4.0
20@ = 6.5

:GYMTREA_2977
if 
  $tread_txt == 5
goto_if_false @GYMTREA_3015
26@ = 5.0
20@ = 5.5

:GYMTREA_3015
if 
  $tread_txt == 6
goto_if_false @GYMTREA_3053
26@ = 6.0
20@ = 4.5

:GYMTREA_3053
if 
  $tread_txt == 7
goto_if_false @GYMTREA_3091
26@ = 7.0
20@ = 3.5

:GYMTREA_3091
if 
  $tread_txt == 8
goto_if_false @GYMTREA_3129
26@ = 8.0
20@ = 2.5

:GYMTREA_3129
if 
  $tread_txt == 9
goto_if_false @GYMTREA_3167
26@ = 9.0
20@ = 1.5

:GYMTREA_3167
if 
  $tread_txt == 10
goto_if_false @GYMTREA_3205
26@ = 10.0
20@ = 0.5

:GYMTREA_3205
if 
  $playerstarttread_flag == 0
goto_if_false @GYMTREA_3274
if 
  17@ > 0.0
goto_if_false @GYMTREA_3274
Sound.AddOneOffSound(1@, 2@, 3@, 65535)
TIMERB = 0
$playerstarttread_flag = 1

:GYMTREA_3274
if and
  0.0 >= 17@
  not Char.IsDead($scplayer)
goto_if_false @GYMTREA_3778
if 
  Char.IsPlayingAnim($scplayer, "GYM_TREAD_WALK")
goto_if_false @GYMTREA_3381
Task.PlayAnim($scplayer, "GYM_WALK_FALLOFF", "GYMNASIUM", 100.0, False, False, False, False, -1)

:GYMTREA_3381
if 
  Char.IsPlayingAnim($scplayer, "GYM_TREAD_JOG")
goto_if_false @GYMTREA_3460
Task.PlayAnim($scplayer, "GYM_JOG_FALLOFF", "GYMNASIUM", 100.0, False, False, False, False, -1)

:GYMTREA_3460
if 
  Char.IsPlayingAnim($scplayer, "GYM_TREAD_SPRINT")
goto_if_false @GYMTREA_3544
Task.PlayAnim($scplayer, "GYM_TREAD_FALLOFF", "GYMNASIUM", 100.0, False, False, False, False, -1)

:GYMTREA_3544
$fatstat_gym = Stat.GetFloat(StatId.Fat)
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMTREA_3581
Stat.SetFloat(StatId.Fat, 0.0)

:GYMTREA_3581
$starttreadmill_flag = 0
$incline_tread_flag = 0
$inclinebutton_flag = 0
$reptread_flag = 0
$buttonpressgymtread_flag = 0
$playerstarttread_flag = 0
$playwalkanim_flag = 0
$playjoganim_flag = 0
$playsprintanim_flag = 0
$finishedtread_flag = 0
19@ = 1.0
$tread_txt = 0
$speed_treadbar = 1
$playerexercising_flag = 0
$incline_tread = 0
22@ = 0.0
21@ = 0.0
$are_anims_loaded = 0
Hud.ClearCounter($levelbar_tread)
Hud.ClearCounter($tread_txt)
Hud.ClearCounter($incline_tread)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
$finishedtread_flag = 1
Char.SetCollision($scplayer, True)
Streaming.RemoveAnimation("GYMNASIUM")
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Menu.Delete($temp_muscle_stat)
Text.ClearHelp

:GYMTREA_3778
if 
  $starttreadmill_flag == 1
goto_if_false @GYMTREA_4145
if and
  $playwalkanim_flag == 0
  not Char.IsDead($scplayer)
goto_if_false @GYMTREA_3912
if and
  $tread_txt > 0
  3 > $tread_txt
goto_if_false @GYMTREA_3912
Task.PlayAnim($scplayer, "GYM_TREAD_WALK", "GYMNASIUM", 100.0, True, False, False, True, -1)
$playwalkanim_flag = 1
$playjoganim_flag = 0
$playsprintanim_flag = 0

:GYMTREA_3912
if and
  $playjoganim_flag == 0
  not Char.IsDead($scplayer)
goto_if_false @GYMTREA_4027
if and
  $tread_txt > 2
  7 > $tread_txt
goto_if_false @GYMTREA_4027
Task.PlayAnim($scplayer, "GYM_TREAD_JOG", "GYMNASIUM", 100.0, True, False, False, True, -1)
$playwalkanim_flag = 0
$playsprintanim_flag = 0
$playjoganim_flag = 1

:GYMTREA_4027
if and
  $playsprintanim_flag == 0
  not Char.IsDead($scplayer)
goto_if_false @GYMTREA_4145
if and
  $tread_txt > 6
  11 > $tread_txt
goto_if_false @GYMTREA_4145
Task.PlayAnim($scplayer, "GYM_TREAD_SPRINT", "GYMNASIUM", 100.0, True, False, False, True, -1)
$playwalkanim_flag = 0
$playjoganim_flag = 0
$playsprintanim_flag = 1

:GYMTREA_4145
if 
  17@ >= 0.0
goto_if_false @GYMTREA_4197
if 
  10.0 >= 17@
goto_if_false @GYMTREA_4197
15@ = 0.9

:GYMTREA_4197
if 
  17@ >= 11.0
goto_if_false @GYMTREA_4249
if 
  20.0 >= 17@
goto_if_false @GYMTREA_4249
15@ = 0.97

:GYMTREA_4249
if 
  17@ >= 21.0
goto_if_false @GYMTREA_4301
if 
  30.0 >= 17@
goto_if_false @GYMTREA_4301
15@ = 1.04

:GYMTREA_4301
if 
  17@ >= 31.0
goto_if_false @GYMTREA_4353
if 
  40.0 >= 17@
goto_if_false @GYMTREA_4353
15@ = 1.11

:GYMTREA_4353
if 
  17@ >= 41.0
goto_if_false @GYMTREA_4405
if 
  50.0 >= 17@
goto_if_false @GYMTREA_4405
15@ = 1.18

:GYMTREA_4405
if 
  17@ >= 51.0
goto_if_false @GYMTREA_4457
if 
  60.0 >= 17@
goto_if_false @GYMTREA_4457
15@ = 1.25

:GYMTREA_4457
if 
  17@ >= 61.0
goto_if_false @GYMTREA_4509
if 
  70.0 >= 17@
goto_if_false @GYMTREA_4509
15@ = 1.32

:GYMTREA_4509
if 
  17@ >= 71.0
goto_if_false @GYMTREA_4561
if 
  80.0 >= 17@
goto_if_false @GYMTREA_4561
15@ = 1.39

:GYMTREA_4561
if 
  17@ >= 81.0
goto_if_false @GYMTREA_4613
if 
  90.0 >= 17@
goto_if_false @GYMTREA_4613
15@ = 1.46

:GYMTREA_4613
if 
  17@ >= 91.0
goto_if_false @GYMTREA_4665
if 
  100.0 >= 17@
goto_if_false @GYMTREA_4665
15@ = 1.53

:GYMTREA_4665
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMTREA_4851
if 
  Char.IsPlayingAnim($scplayer, "GYM_TREAD_WALK")
goto_if_false @GYMTREA_4737
Char.SetAnimSpeed($scplayer, "GYM_TREAD_WALK", 15@)

:GYMTREA_4737
if 
  Char.IsPlayingAnim($scplayer, "GYM_TREAD_JOG")
goto_if_false @GYMTREA_4791
Char.SetAnimSpeed($scplayer, "GYM_TREAD_JOG", 15@)

:GYMTREA_4791
if 
  Char.IsPlayingAnim($scplayer, "GYM_TREAD_SPRINT")
goto_if_false @GYMTREA_4851
Char.SetAnimSpeed($scplayer, "GYM_TREAD_SPRINT", 15@)

:GYMTREA_4851
if 
  Object.DoesExist(0@)
goto_if_false @GYMTREA_4976
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @GYMTREA_4976
if 
  17@ > 10.0
goto_if_false @GYMTREA_4943
if 
  $tread_shake_speed == 0
goto_if_false @GYMTREA_4936
Audio.ReportMissionAudioEventAtObject(0@, 1118)
$tread_shake_speed = 1

:GYMTREA_4936
goto @GYMTREA_4976

:GYMTREA_4943
if 
  $tread_shake_speed == 1
goto_if_false @GYMTREA_4976
Audio.ReportMissionAudioEventAtObject(0@, 1119)
$tread_shake_speed = 0

:GYMTREA_4976
if 
  TIMERB > 250
goto_if_false @GYMTREA_5295
TIMERB -= 250
set_lvar_float_to_lvar_float 21@ = 17@
mult_float_lvar_by_float_lvar 21@ *= 26@
21@ /= 80.0
cset_var_float_to_var_int $stattread_temp =# $tread_txt
$stattread_temp /= 10.0
$stattread_temp += 1.0
mult_float_var_by_float_lvar $stattread_temp *= 21@
add_float_var_to_float_var $stattreadstamina_ctr += $stattread_temp
if 
  $stattreadstamina_ctr >= 170.0
goto_if_false @GYMTREA_5218
$stattreadstamina_ctr -= 170.0
$fatstat_gym = Stat.GetFloat(StatId.Fat)
if 
  $fatstat_gym >= 1.0
goto_if_false @GYMTREA_5141
Stat.DecrementFloat(StatId.Fat, 8.0)

:GYMTREA_5141
if 
  $tread_start_sound == 3
goto_if_false @GYMTREA_5192
$tread_start_sound = 0
Stat.IncrementFloat(StatId.Stamina, 4.0)
$gym_final_month += 4.0
goto @GYMTREA_5218

:GYMTREA_5192
Stat.IncrementFloatNoMessage(StatId.Stamina, 4.0)
$gym_final_month += 4.0
$tread_start_sound += 1

:GYMTREA_5218
if 
  $gym_final_month > 200.0
goto_if_false @GYMTREA_5263
$gym_month, $gym_final_day = Clock.GetCurrentDate()
Text.PrintNow('GYM1_1B', 4000, 1)

:GYMTREA_5263
cset_lvar_float_to_var_int 25@ =# $speed_treadbar
mult_float_var_by_float_lvar $stattread_temp *= 25@
add_float_lvar_to_float_lvar 22@ += 21@
cset_var_int_to_lvar_float $incline_tread =# 22@

:GYMTREA_5295
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  $gym_final_month > 200.0
goto_if_false @GYMTREA_5771
if 
  $gym_final_month > 200.0
goto_if_false @GYMTREA_5353
$gym_final_month = 0.0

:GYMTREA_5353
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMTREA_5771
Task.PlayAnim($scplayer, "GYM_TREAD_GETOFF", "GYMNASIUM", 100.0, False, False, False, False, -1)

:GYMTREA_5418
Pad.Shake(PadId.Pad1, 1, 1)
Stat.IncrementInt(StatId.DistTreadmill, $incline_tread)
set_lvar_int_to_lvar_int 29@ = TIMERA
29@ /= 1000
Stat.IncrementInt(StatId.LongestTreadmillTime, 29@)
Text.ClearHelp
Menu.Delete($temp_muscle_stat)
$starttreadmill_flag = 0
$incline_tread_flag = 0
$inclinebutton_flag = 0
$reptread_flag = 0
$buttonpressgymtread_flag = 0
$playerstarttread_flag = 0
$playwalkanim_flag = 0
$playjoganim_flag = 0
$playsprintanim_flag = 0
$finishedtread_flag = 0
19@ = 1.0
$tread_txt = 1
$speed_treadbar = 1
$playerexercising_flag = 0
$incline_tread = 0
22@ = 0.0
21@ = 0.0
$are_anims_loaded = 0
Hud.ClearCounter($levelbar_tread)
Hud.ClearCounter($tread_txt)
Hud.ClearCounter($incline_tread)
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMTREA_5643
Player.SetControl($player1, True)
Char.SetCollision($scplayer, True)

:GYMTREA_5643
Streaming.RemoveAnimation("GYMNASIUM")
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Camera.RestoreJumpcut
$finishedtread_flag = 1
$upperbodymusclestat_gym = Stat.GetFloat(StatId.BodyMuscle)
if 
  $upperbodymusclestat_gym >= 1000.0
goto_if_false @GYMTREA_5706
Stat.SetFloat(StatId.BodyMuscle, 1000.0)

:GYMTREA_5706
$fatstat_gym = Stat.GetFloat(StatId.Fat)
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMTREA_5743
Stat.SetFloat(StatId.Fat, 0.0)

:GYMTREA_5743
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @GYMTREA_5771
wait 0
goto @GYMTREA_5743

:GYMTREA_5771
$tread_has_KD += 1
set_var_int_to_var_int $tread_TIMERC = $levelbar_tread
$tread_TIMERC -= 100
if 
  $tread_TIMERC > -40
goto_if_false @GYMTREA_5818
$tread_TIMERC = -40

:GYMTREA_5818
if 
  is_int_var_greater_or_equal_to_int_var $tread_has_KD >= $tread_TIMERC
goto_if_false @GYMTREA_5867
$tread_has_KD = 0
$levelbar_tread *= 12
$levelbar_tread /= 10
Pad.Shake(PadId.Pad1, 100, $levelbar_tread)

:GYMTREA_5867
cset_var_int_to_lvar_float $levelbar_tread =# 17@

:GYMTREA_5875
goto @GYMTREA_573
terminate_this_script 

//-------------External script 14 (GYMDUMB)---------------

:GYMDUMB
script_name 'GYMDUMB'
$reps_dumbell = 1
$weightdb = 0
27@ = 0
$incmusclestatdb = 0
$dumbellcamy1 = 0.0
TIMERA = 0
TIMERB = 0
23@ = 0
if 
  23@ == 1
goto_if_false @GYMDUMB_111
0@ = Object.CreateNoOffset(#BEACHTOWEL04, 0.0, 0.0, 0.0)

:GYMDUMB_111
if 
  Object.DoesExist(0@)
goto_if_false @GYMDUMB_149
4@, 5@, 6@ = Object.GetCoordinates(0@)
12@ = Object.GetHeading(0@)

:GYMDUMB_149
set_lvar_float_to_lvar_float 2@ = 4@
set_lvar_float_to_lvar_float 3@ = 5@
set_var_float_to_lvar_float $dumbell_player_heading1 = 4@
set_var_float_to_lvar_float $dumbellx1 = 5@
set_lvar_float_to_lvar_float 9@ = 6@
9@ += 1.7
set_lvar_float_to_lvar_float 13@ = 12@
set_lvar_float_to_lvar_float 1@ = 12@
1@ -= 90.0
set_var_float_to_lvar_float $dumb_front_back = 12@
$dumb_front_back -= 90.0
set_var_float_to_lvar_float $dumbell_player_heading = 12@
$dumbell_player_heading += 90.0
10@ = Math.Sin(13@)
11@ = Math.Cos(13@)
10@ *= 0.95
11@ *= 0.95
sub_float_lvar_from_float_lvar 4@ -= 11@
sub_float_lvar_from_float_lvar 5@ -= 10@
10@ *= 3.5
11@ *= 3.5
set_lvar_float_to_lvar_float 7@ = 4@
add_float_lvar_to_float_lvar 7@ += 11@
set_lvar_float_to_lvar_float 8@ = 5@
add_float_lvar_to_float_lvar 8@ += 10@
10@ = Math.Sin(13@)
11@ = Math.Cos(13@)
10@ *= 0.95
11@ *= 0.95
add_float_lvar_to_float_var $dumbell_player_heading1 += 11@
add_float_lvar_to_float_var $dumbellx1 += 10@
10@ *= 3.5
11@ *= 3.5
set_var_float_to_var_float $dumbelly1 = $dumbell_player_heading1
sub_float_lvar_from_float_var $dumbelly1 -= 11@
set_var_float_to_var_float $dumbellcamx1 = $dumbellx1
sub_float_lvar_from_float_var $dumbellcamx1 -= 10@
12@ += 180.0
set_lvar_float_to_lvar_float 13@ = 12@
13@ += 90.0
10@ = Math.Sin(13@)
11@ = Math.Cos(13@)
10@ *= 0.2
11@ *= 0.2
add_float_lvar_to_float_lvar 2@ += 11@
add_float_lvar_to_float_lvar 3@ += 10@
25@ = Object.Create(#KMB_DUMBBELL_R, 2@, 3@, 6@)
Object.AttachToObject(25@, 0@, 0.05, 0.2, 0.3, 0.0, 90.0, 90.0)
26@ = Object.Create(#KMB_DUMBBELL_L, 2@, 3@, 6@)
Object.AttachToObject(26@, 0@, 0.05, -0.2, 0.3, 0.0, 90.0, 90.0)
6@ += 0.1
$speedbar_bike = 1
$are_anims_loaded = 0

:GYMDUMB_683
wait 0
if 
  not Object.DoesExist(0@)
goto_if_false @GYMDUMB_715
Object.Delete(25@)
Object.Delete(26@)
terminate_this_script 

:GYMDUMB_715
if 
  not Object.IsWithinBrainActivationRange(0@)
goto_if_false @GYMDUMB_743
Object.Delete(25@)
Object.Delete(26@)
terminate_this_script 

:GYMDUMB_743
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_7878
if 
  $playerexercising_flag == 0
goto_if_false @GYMDUMB_1234
if 
  17@ == 0
goto_if_false @GYMDUMB_1234
if 
  21@ == 0
goto_if_false @GYMDUMB_1170
if or
  Char.LocateOnFoot3D($scplayer, 4@, 5@, 6@, 1.2, 1.2, 4.0, False)
  Char.LocateOnFoot3D($scplayer, $dumbell_player_heading1, $dumbellx1, 6@, 1.2, 1.2, 4.0, False)
goto_if_false @GYMDUMB_1136
if 
  Char.LocateOnFoot3D($scplayer, 4@, 5@, 6@, 1.2, 1.2, 4.0, False)
goto_if_false @GYMDUMB_942
$dumb_weight = 0
goto @GYMDUMB_949

:GYMDUMB_942
$dumb_weight = 1

:GYMDUMB_949
if 
  27@ == 0
goto_if_false @GYMDUMB_985
Text.PrintHelpForever('GYM1_85')
27@ = 1

:GYMDUMB_985
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @GYMDUMB_1129
if or
  $onmission == 0
  $gym_is_running == 1
goto_if_false @GYMDUMB_1113
$5344, $gym_day = Clock.GetCurrentDate()
if or
  is_int_var_greater_than_int_var $5344 > $gym_month
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
goto_if_false @GYMDUMB_1090
17@ = 1
$playerexercising_flag = 1
$bike_txt = 0
goto @GYMDUMB_1106

:GYMDUMB_1090
Text.PrintNow('GYM1_1A', 4000, 1)

:GYMDUMB_1106
goto @GYMDUMB_1129

:GYMDUMB_1113
Text.PrintNow('GYM1_90', 4000, 1)

:GYMDUMB_1129
goto @GYMDUMB_1163

:GYMDUMB_1136
if 
  27@ == 1
goto_if_false @GYMDUMB_1163
Text.ClearHelp
27@ = 0

:GYMDUMB_1163
goto @GYMDUMB_1234

:GYMDUMB_1170
if or
  not Char.LocateOnFoot2D($scplayer, 4@, 5@, 2.0, 2.0, False)
  not Char.LocateOnFoot2D($scplayer, $dumbell_player_heading1, $dumbellx1, 2.0, 2.0, False)
goto_if_false @GYMDUMB_1234
21@ = 0

:GYMDUMB_1234
if 
  17@ == 1
goto_if_false @GYMDUMB_7878
if 
  $are_anims_loaded == 0
goto_if_false @GYMDUMB_1377
Streaming.RequestAnimation("FREEWEIGHTS")
Text.LoadMissionText('GYM')

:GYMDUMB_1296
if 
  not Streaming.HasAnimationLoaded("FREEWEIGHTS")
goto_if_false @GYMDUMB_1333
wait 0
goto @GYMDUMB_1296

:GYMDUMB_1333
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1820)

:GYMDUMB_1344
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @GYMDUMB_1370
wait 0
goto @GYMDUMB_1344

:GYMDUMB_1370
$are_anims_loaded = 1

:GYMDUMB_1377
if and
  $playerexercising_flag == 1
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_1565
Char.SetCollision($scplayer, False)
if 
  $dumb_weight == 0
goto_if_false @GYMDUMB_1487
Player.SetControl($player1, False)
Char.SetCoordinatesDontWarpGang($scplayer, 4@, 5@, 6@)
Camera.SetFixedPosition(7@, 8@, 9@, 0.0, 0.0, 0.0)
Char.SetHeading($scplayer, $dumb_front_back)
goto @GYMDUMB_1542

:GYMDUMB_1487
Player.SetControl($player1, False)
Char.SetCoordinatesDontWarpGang($scplayer, $dumbell_player_heading1, $dumbellx1, 6@)
Camera.SetFixedPosition($dumbelly1, $dumbellcamx1, 9@, 0.0, 0.0, 0.0)
Char.SetHeading($scplayer, $dumbell_player_heading)

:GYMDUMB_1542
Camera.PointAtChar($scplayer, CameraMode.Fixed, SwitchType.JumpCut)
$playerexercising_flag = 2
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)

:GYMDUMB_1565
if and
  $playerexercising_flag == 2
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_2092
Text.PrintHelpForever('GYM1_71')
if or
  $current_Language == 4
  $current_Language == 2
goto_if_false @GYMDUMB_1792
$tread_show_stat = Menu.Create('GYM1_G', 31.0, 180.0, 184.0, 1, True, True, 0)
Menu.SetColumn($tread_show_stat, 0, 'GYM1_72', 'GYM1_26', 'GYM1_27', 'GYM1_28', 'GYM1_29', 'GYM1_30', 'GYM1_31', 'GYM1_32', 'GYM1_33', 'GYM1_34', 'GYM1_35', 'DUMMY', 'DUMMY')
goto @GYMDUMB_1953

:GYMDUMB_1792
$tread_show_stat = Menu.Create('GYM1_G', 31.0, 150.0, 184.0, 1, True, True, 0)
Menu.SetColumn($tread_show_stat, 0, 'GYM1_72', 'GYM1_26', 'GYM1_27', 'GYM1_28', 'GYM1_29', 'GYM1_30', 'GYM1_31', 'GYM1_32', 'GYM1_33', 'GYM1_34', 'GYM1_35', 'DUMMY', 'DUMMY')

:GYMDUMB_1953
Menu.SetActiveItem($tread_show_stat, 0)

:GYMDUMB_1960
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_2071
wait 0
$bike_txt += 1
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  $bike_txt > 20
goto_if_false @GYMDUMB_2025
Text.ClearHelp
Menu.Delete($tread_show_stat)
goto @GYMDUMB_7402

:GYMDUMB_2025
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMDUMB_2064
Text.ClearHelp
$reps_dumbell = Menu.GetItemSelected($tread_show_stat)
Menu.Delete($tread_show_stat)
goto @GYMDUMB_2071

:GYMDUMB_2064
goto @GYMDUMB_1960

:GYMDUMB_2071
19@ = 1
18@ = 1
$playerexercising_flag = 3

:GYMDUMB_2092
if and
  $playerexercising_flag == 3
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_2849
if 
  $reps_dumbell == 0
goto_if_false @GYMDUMB_2153
$DUMBELL_TXT = 1.0
$reps_dumbellfloat = 5.0

:GYMDUMB_2153
if 
  $reps_dumbell == 1
goto_if_false @GYMDUMB_2191
$DUMBELL_TXT = 2.0
$reps_dumbellfloat = 5.2

:GYMDUMB_2191
if 
  $reps_dumbell == 2
goto_if_false @GYMDUMB_2229
$DUMBELL_TXT = 3.0
$reps_dumbellfloat = 5.3

:GYMDUMB_2229
if 
  $reps_dumbell == 3
goto_if_false @GYMDUMB_2267
$DUMBELL_TXT = 4.0
$reps_dumbellfloat = 5.5

:GYMDUMB_2267
if 
  $reps_dumbell == 4
goto_if_false @GYMDUMB_2305
$DUMBELL_TXT = 5.0
$reps_dumbellfloat = 6.0

:GYMDUMB_2305
if 
  $reps_dumbell == 5
goto_if_false @GYMDUMB_2343
$DUMBELL_TXT = 6.0
$reps_dumbellfloat = 6.5

:GYMDUMB_2343
if 
  $reps_dumbell == 6
goto_if_false @GYMDUMB_2381
$DUMBELL_TXT = 7.0
$reps_dumbellfloat = 7.0

:GYMDUMB_2381
if 
  $reps_dumbell == 7
goto_if_false @GYMDUMB_2419
$DUMBELL_TXT = 8.0
$reps_dumbellfloat = 7.5

:GYMDUMB_2419
if 
  $reps_dumbell == 8
goto_if_false @GYMDUMB_2457
$DUMBELL_TXT = 9.0
$reps_dumbellfloat = 8.0

:GYMDUMB_2457
if 
  $reps_dumbell == 9
goto_if_false @GYMDUMB_2495
$DUMBELL_TXT = 10.0
$reps_dumbellfloat = 8.5

:GYMDUMB_2495
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_2561
Task.PlayAnim($scplayer, "GYM_FREE_PICKUP", "FREEWEIGHTS", 4.0, False, False, False, True, -1)

:GYMDUMB_2561
wait 0
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_2849
if and
  Char.IsPlayingAnim($scplayer, "GYM_FREE_PICKUP")
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_2849
$animframe_freepickup = Char.GetAnimCurrentTime($scplayer, "GYM_FREE_PICKUP")

:GYMDUMB_2644
if 
  $animframe_freepickup <= 0.7789
goto_if_false @GYMDUMB_2717
wait 0
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_2710
$animframe_freepickup = Char.GetAnimCurrentTime($scplayer, "GYM_FREE_PICKUP")

:GYMDUMB_2710
goto @GYMDUMB_2644

:GYMDUMB_2717
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_2835
wait 0
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_2835
Task.PickUpObject($scplayer, 25@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", -1)
Task.PickUpSecondObject($scplayer, 26@, 0.0, 0.0, 0.0, 5, 16, "NULL", "NULL", -1)

:GYMDUMB_2835
$playerexercising_flag = 4
TIMERA = 0

:GYMDUMB_2849
if and
  $playerexercising_flag == 4
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_3385
if 
  Char.IsPlayingAnim($scplayer, "GYM_FREE_PICKUP")
goto_if_false @GYMDUMB_3385
$animframe = Char.GetAnimCurrentTime($scplayer, "GYM_FREE_PICKUP")
if 
  $animframe == 1.0
goto_if_false @GYMDUMB_3385
if 
  $sub_menu_bell == 0
goto_if_false @GYMDUMB_2987
Text.PrintHelpForever('GYM1_36')
$sub_menu_bell = 1

:GYMDUMB_2987
$upperbodymusclestat_gym = Stat.GetFloat(StatId.BodyMuscle)
$upperbodymusclestat_gym /= 30.0
if 
  0.0 > $upperbodymusclestat_gym
goto_if_false @GYMDUMB_3035
$upperbodymusclestat_gym = 0.0

:GYMDUMB_3035
set_var_float_to_var_float $weight_dumbell = $upperbodymusclestat_gym
$weight_dumbell += 30.0
if 
  $weight_dumbell > 75.0
goto_if_false @GYMDUMB_3084
$weight_dumbell = 75.0

:GYMDUMB_3084
cset_var_float_to_var_int $powerdumbell =# $weightdb
set_var_float_to_var_float $animationtobeplayed = $weight_dumbell
sub_float_var_from_float_var $animationtobeplayed -= $DUMBELL_TXT
if 
  18.0 >= $animationtobeplayed
goto_if_false @GYMDUMB_3174
Task.PlayAnim($scplayer, "GYM_FREE_B", "FREEWEIGHTS", 8.0, False, False, False, True, -1)

:GYMDUMB_3174
if 
  $animationtobeplayed > 18.0
goto_if_false @GYMDUMB_3261
if 
  24.0 >= $animationtobeplayed
goto_if_false @GYMDUMB_3261
Task.PlayAnim($scplayer, "GYM_FREE_A", "FREEWEIGHTS", 8.0, False, False, False, True, -1)

:GYMDUMB_3261
if 
  $animationtobeplayed > 24.0
goto_if_false @GYMDUMB_3335
Task.PlayAnim($scplayer, "GYM_FREE_UP_SMOOTH", "FREEWEIGHTS", 8.0, False, False, False, True, -1)

:GYMDUMB_3335
Hud.DisplayNthCounterWithString($powerbar, CounterDisplay.Bar, 1, 'GYM1_1')
Hud.DisplayNthCounterWithString($weightdb, CounterDisplay.Number, 2, 'GYM1_2')
$animstate_flag = 1
$playerexercising_flag = 5

:GYMDUMB_3385
if and
  $playerexercising_flag == 5
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_7014
if and
  TIMERA > 4000
  $sub_menu_bell == 1
goto_if_false @GYMDUMB_3454
Text.ClearHelp
Text.PrintHelpForever('GYM1_25')
$sub_menu_bell = 2

:GYMDUMB_3454
if and
  TIMERA > 8000
  $sub_menu_bell == 2
goto_if_false @GYMDUMB_3489
Text.ClearHelp
$sub_menu_bell = 101

:GYMDUMB_3489
$upperbodymusclestat_gym = Stat.GetFloat(StatId.BodyMuscle)
$upperbodymusclestat_gym /= 30.0
if 
  0.0 > $upperbodymusclestat_gym
goto_if_false @GYMDUMB_3537
$upperbodymusclestat_gym = 0.0

:GYMDUMB_3537
set_var_float_to_var_float $weight_dumbell = $upperbodymusclestat_gym
$weight_dumbell += 20.0
if 
  $weight_dumbell > 75.0
goto_if_false @GYMDUMB_3586
$weight_dumbell = 75.0

:GYMDUMB_3586
if or
  $animstate_flag == 1
  $animstate_flag == 3
goto_if_false @GYMDUMB_3619
sub_float_var_from_float_var $dumbell_resistance -= $DUMBELL_TXT

:GYMDUMB_3619
if 
  $animstate_flag == 4
goto_if_false @GYMDUMB_3647
$dumbell_resistance -= 4.0

:GYMDUMB_3647
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @GYMDUMB_3689
if 
  20@ == 3
goto_if_false @GYMDUMB_3689
20@ = 0

:GYMDUMB_3689
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMDUMB_3731
if 
  20@ == 1
goto_if_false @GYMDUMB_3731
20@ = 2

:GYMDUMB_3731
if or
  $animstate_flag == 1
  $animstate_flag == 3
goto_if_false @GYMDUMB_3868
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
  not Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @GYMDUMB_3812
if 
  20@ == 0
goto_if_false @GYMDUMB_3812
add_float_var_to_float_var $dumbell_resistance += $weight_dumbell
20@ = 1

:GYMDUMB_3812
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMDUMB_3868
if 
  20@ == 2
goto_if_false @GYMDUMB_3868
add_float_var_to_float_var $dumbell_resistance += $weight_dumbell
20@ = 3

:GYMDUMB_3868
if 
  0.0 > $dumbell_resistance
goto_if_false @GYMDUMB_3899
$dumbell_resistance = 0.0

:GYMDUMB_3899
if 
  $dumbell_resistance >= 100.0
goto_if_false @GYMDUMB_3955
$dumbell_resistance = 100.0
if 
  $animstate_flag == 1
goto_if_false @GYMDUMB_3955
$animstate_flag = 2

:GYMDUMB_3955
if 
  $dumbell_resistance > 25.0
goto_if_false @GYMDUMB_3987
$temp_muscle_stat_dumb = Char.SetSayContext($scplayer, 349)

:GYMDUMB_3987
if 
  $animstate_flag == 2
goto_if_false @GYMDUMB_4047
if 
  $animvalue == 1.0
goto_if_false @GYMDUMB_4047
20@ = 0
$animstate_flag = 3
TIMERB = 0

:GYMDUMB_4047
if and
  $animstate_flag == 3
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_6138
if 
  $weightdb < 999999
goto_if_false @GYMDUMB_4098
$weightdb += 1

:GYMDUMB_4098
switch_start $reps_dumbell {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @GYMDUMB_4366 {caseNum1} 0 {caseLabel1} @GYMDUMB_4226 {caseNum2} 1 {caseLabel2} @GYMDUMB_4240 {caseNum3} 2 {caseLabel3} @GYMDUMB_4254 {caseNum4} 3 {caseLabel4} @GYMDUMB_4268 {caseNum5} 4 {caseLabel5} @GYMDUMB_4282 {caseNum6} 5 {caseLabel6} @GYMDUMB_4296 {caseNum7} 6 {caseLabel7} @GYMDUMB_4310
switch_continued 7 {caseLabel1} @GYMDUMB_4324 {caseNum2} 8 {caseLabel2} @GYMDUMB_4338 {caseNum3} 9 {caseLabel3} @GYMDUMB_4352 {caseNum4} -1 {caseLabel4} @GYMDUMB_4366 {caseNum5} -1 {caseLabel5} @GYMDUMB_4366 {caseNum6} -1 {caseLabel6} @GYMDUMB_4366 {caseNum7} -1 {caseLabel7} @GYMDUMB_4366 {caseNum8} -1 {caseLabel8} @GYMDUMB_4366 {caseNum9} -1 {caseLabel9} @GYMDUMB_4366

:GYMDUMB_4226
$temp_dumb_weight = 20
goto @GYMDUMB_4366

:GYMDUMB_4240
$temp_dumb_weight = 30
goto @GYMDUMB_4366

:GYMDUMB_4254
$temp_dumb_weight = 40
goto @GYMDUMB_4366

:GYMDUMB_4268
$temp_dumb_weight = 50
goto @GYMDUMB_4366

:GYMDUMB_4282
$temp_dumb_weight = 60
goto @GYMDUMB_4366

:GYMDUMB_4296
$temp_dumb_weight = 70
goto @GYMDUMB_4366

:GYMDUMB_4310
$temp_dumb_weight = 80
goto @GYMDUMB_4366

:GYMDUMB_4324
$temp_dumb_weight = 90
goto @GYMDUMB_4366

:GYMDUMB_4338
$temp_dumb_weight = 100
goto @GYMDUMB_4366

:GYMDUMB_4352
$temp_dumb_weight = 110
goto @GYMDUMB_4366

:GYMDUMB_4366
$dumb_has_KD = Stat.GetInt(StatId.HeaviestWeightDumbells)
if 
  is_int_var_greater_than_int_var $temp_dumb_weight > $dumb_has_KD
goto_if_false @GYMDUMB_4399
Stat.SetInt(StatId.HeaviestWeightDumbells, $temp_dumb_weight)

:GYMDUMB_4399
$dumbellcamy1 = Stat.GetFloat(StatId.BodyMuscle)
if 
  1000.0 > $dumbellcamy1
goto_if_false @GYMDUMB_4707
if 
  $reps_dumbell == 1
goto_if_false @GYMDUMB_4455
$reps_dumbellfloat = 1.0

:GYMDUMB_4455
if 
  $reps_dumbell == 2
goto_if_false @GYMDUMB_4483
$reps_dumbellfloat = 1.2

:GYMDUMB_4483
if 
  $reps_dumbell == 3
goto_if_false @GYMDUMB_4511
$reps_dumbellfloat = 1.3

:GYMDUMB_4511
if 
  $reps_dumbell == 4
goto_if_false @GYMDUMB_4539
$reps_dumbellfloat = 1.5

:GYMDUMB_4539
if 
  $reps_dumbell == 5
goto_if_false @GYMDUMB_4567
$reps_dumbellfloat = 2.0

:GYMDUMB_4567
if 
  $reps_dumbell == 6
goto_if_false @GYMDUMB_4595
$reps_dumbellfloat = 2.5

:GYMDUMB_4595
if 
  $reps_dumbell == 7
goto_if_false @GYMDUMB_4623
$reps_dumbellfloat = 3.0

:GYMDUMB_4623
if 
  $reps_dumbell == 8
goto_if_false @GYMDUMB_4651
$reps_dumbellfloat = 4.0

:GYMDUMB_4651
if 
  $reps_dumbell == 9
goto_if_false @GYMDUMB_4679
$reps_dumbellfloat = 5.0

:GYMDUMB_4679
if 
  $reps_dumbell == 10
goto_if_false @GYMDUMB_4707
$reps_dumbellfloat = 6.0

:GYMDUMB_4707
if 
  800.0 > $dumbellcamy1
goto_if_false @GYMDUMB_5008
if 
  $reps_dumbell == 1
goto_if_false @GYMDUMB_4756
$reps_dumbellfloat = 2.0

:GYMDUMB_4756
if 
  $reps_dumbell == 2
goto_if_false @GYMDUMB_4784
$reps_dumbellfloat = 2.2

:GYMDUMB_4784
if 
  $reps_dumbell == 3
goto_if_false @GYMDUMB_4812
$reps_dumbellfloat = 2.3

:GYMDUMB_4812
if 
  $reps_dumbell == 4
goto_if_false @GYMDUMB_4840
$reps_dumbellfloat = 2.5

:GYMDUMB_4840
if 
  $reps_dumbell == 5
goto_if_false @GYMDUMB_4868
$reps_dumbellfloat = 3.0

:GYMDUMB_4868
if 
  $reps_dumbell == 6
goto_if_false @GYMDUMB_4896
$reps_dumbellfloat = 3.5

:GYMDUMB_4896
if 
  $reps_dumbell == 7
goto_if_false @GYMDUMB_4924
$reps_dumbellfloat = 4.0

:GYMDUMB_4924
if 
  $reps_dumbell == 8
goto_if_false @GYMDUMB_4952
$reps_dumbellfloat = 5.0

:GYMDUMB_4952
if 
  $reps_dumbell == 9
goto_if_false @GYMDUMB_4980
$reps_dumbellfloat = 6.0

:GYMDUMB_4980
if 
  $reps_dumbell == 10
goto_if_false @GYMDUMB_5008
$reps_dumbellfloat = 7.0

:GYMDUMB_5008
if 
  600.0 > $dumbellcamy1
goto_if_false @GYMDUMB_5309
if 
  $reps_dumbell == 1
goto_if_false @GYMDUMB_5057
$reps_dumbellfloat = 3.0

:GYMDUMB_5057
if 
  $reps_dumbell == 2
goto_if_false @GYMDUMB_5085
$reps_dumbellfloat = 3.2

:GYMDUMB_5085
if 
  $reps_dumbell == 3
goto_if_false @GYMDUMB_5113
$reps_dumbellfloat = 3.3

:GYMDUMB_5113
if 
  $reps_dumbell == 4
goto_if_false @GYMDUMB_5141
$reps_dumbellfloat = 3.5

:GYMDUMB_5141
if 
  $reps_dumbell == 5
goto_if_false @GYMDUMB_5169
$reps_dumbellfloat = 4.0

:GYMDUMB_5169
if 
  $reps_dumbell == 6
goto_if_false @GYMDUMB_5197
$reps_dumbellfloat = 4.5

:GYMDUMB_5197
if 
  $reps_dumbell == 7
goto_if_false @GYMDUMB_5225
$reps_dumbellfloat = 5.0

:GYMDUMB_5225
if 
  $reps_dumbell == 8
goto_if_false @GYMDUMB_5253
$reps_dumbellfloat = 6.0

:GYMDUMB_5253
if 
  $reps_dumbell == 9
goto_if_false @GYMDUMB_5281
$reps_dumbellfloat = 7.0

:GYMDUMB_5281
if 
  $reps_dumbell == 10
goto_if_false @GYMDUMB_5309
$reps_dumbellfloat = 8.0

:GYMDUMB_5309
if 
  400.0 > $dumbellcamy1
goto_if_false @GYMDUMB_5610
if 
  $reps_dumbell == 1
goto_if_false @GYMDUMB_5358
$reps_dumbellfloat = 4.0

:GYMDUMB_5358
if 
  $reps_dumbell == 2
goto_if_false @GYMDUMB_5386
$reps_dumbellfloat = 4.2

:GYMDUMB_5386
if 
  $reps_dumbell == 3
goto_if_false @GYMDUMB_5414
$reps_dumbellfloat = 4.3

:GYMDUMB_5414
if 
  $reps_dumbell == 4
goto_if_false @GYMDUMB_5442
$reps_dumbellfloat = 4.5

:GYMDUMB_5442
if 
  $reps_dumbell == 5
goto_if_false @GYMDUMB_5470
$reps_dumbellfloat = 5.0

:GYMDUMB_5470
if 
  $reps_dumbell == 6
goto_if_false @GYMDUMB_5498
$reps_dumbellfloat = 5.5

:GYMDUMB_5498
if 
  $reps_dumbell == 7
goto_if_false @GYMDUMB_5526
$reps_dumbellfloat = 6.0

:GYMDUMB_5526
if 
  $reps_dumbell == 8
goto_if_false @GYMDUMB_5554
$reps_dumbellfloat = 7.0

:GYMDUMB_5554
if 
  $reps_dumbell == 9
goto_if_false @GYMDUMB_5582
$reps_dumbellfloat = 8.0

:GYMDUMB_5582
if 
  $reps_dumbell == 10
goto_if_false @GYMDUMB_5610
$reps_dumbellfloat = 9.0

:GYMDUMB_5610
if 
  200.0 > $dumbellcamy1
goto_if_false @GYMDUMB_5911
if 
  $reps_dumbell == 1
goto_if_false @GYMDUMB_5659
$reps_dumbellfloat = 5.0

:GYMDUMB_5659
if 
  $reps_dumbell == 2
goto_if_false @GYMDUMB_5687
$reps_dumbellfloat = 5.2

:GYMDUMB_5687
if 
  $reps_dumbell == 3
goto_if_false @GYMDUMB_5715
$reps_dumbellfloat = 5.3

:GYMDUMB_5715
if 
  $reps_dumbell == 4
goto_if_false @GYMDUMB_5743
$reps_dumbellfloat = 5.5

:GYMDUMB_5743
if 
  $reps_dumbell == 5
goto_if_false @GYMDUMB_5771
$reps_dumbellfloat = 6.0

:GYMDUMB_5771
if 
  $reps_dumbell == 6
goto_if_false @GYMDUMB_5799
$reps_dumbellfloat = 6.5

:GYMDUMB_5799
if 
  $reps_dumbell == 7
goto_if_false @GYMDUMB_5827
$reps_dumbellfloat = 7.0

:GYMDUMB_5827
if 
  $reps_dumbell == 8
goto_if_false @GYMDUMB_5855
$reps_dumbellfloat = 7.5

:GYMDUMB_5855
if 
  $reps_dumbell == 9
goto_if_false @GYMDUMB_5883
$reps_dumbellfloat = 8.0

:GYMDUMB_5883
if 
  $reps_dumbell == 10
goto_if_false @GYMDUMB_5911
$reps_dumbellfloat = 8.5

:GYMDUMB_5911
if 
  $dumb_sfx == 8
goto_if_false @GYMDUMB_5958
$dumb_sfx = 0
Stat.IncrementFloat(StatId.BodyMuscle, $reps_dumbellfloat)
add_float_var_to_float_var $gym_final_month += $reps_dumbellfloat
goto @GYMDUMB_5980

:GYMDUMB_5958
Stat.IncrementFloatNoMessage(StatId.BodyMuscle, $reps_dumbellfloat)
$dumb_sfx += 1
add_float_var_to_float_var $gym_final_month += $reps_dumbellfloat

:GYMDUMB_5980
if 
  $gym_final_month > 200.0
goto_if_false @GYMDUMB_6025
$gym_month, $gym_final_day = Clock.GetCurrentDate()
Text.PrintNow('GYM1_1B', 4000, 1)

:GYMDUMB_6025
$fatstat_gym = Stat.GetFloat(StatId.Fat)
if 
  $fatstat_gym >= 1.0
goto_if_false @GYMDUMB_6062
Stat.DecrementFloat(StatId.Fat, 1.0)

:GYMDUMB_6062
Pad.Shake(PadId.Pad1, 200, 200)
$temp_muscle_stat_dumb = Char.SetSayContext($scplayer, 350)
Task.PlayAnim($scplayer, "GYM_FREE_DOWN", "FREEWEIGHTS", 8.0, False, False, False, True, -1)
$animstate_flag = 4

:GYMDUMB_6138
if and
  $animstate_flag == 4
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_6461
if 
  $dumbell_resistance == 0.0
goto_if_false @GYMDUMB_6461
if 
  $animvalue == 0.0
goto_if_false @GYMDUMB_6461
cset_var_float_to_var_int $powerdumbell =# $weightdb
set_var_float_to_var_float $animationtobeplayed = $weight_dumbell
sub_float_var_from_float_var $animationtobeplayed -= $DUMBELL_TXT
if 
  18.0 >= $animationtobeplayed
goto_if_false @GYMDUMB_6293
Task.PlayAnim($scplayer, "GYM_FREE_B", "FREEWEIGHTS", 8.0, False, False, False, True, -1)

:GYMDUMB_6293
if 
  $animationtobeplayed > 18.0
goto_if_false @GYMDUMB_6380
if 
  24.0 >= $animationtobeplayed
goto_if_false @GYMDUMB_6380
Task.PlayAnim($scplayer, "GYM_FREE_A", "FREEWEIGHTS", 8.0, False, False, False, True, -1)

:GYMDUMB_6380
if 
  $animationtobeplayed > 24.0
goto_if_false @GYMDUMB_6454
Task.PlayAnim($scplayer, "GYM_FREE_UP_SMOOTH", "FREEWEIGHTS", 8.0, False, False, False, True, -1)

:GYMDUMB_6454
$animstate_flag = 1

:GYMDUMB_6461
set_var_float_to_var_float $bar_animvalue = $dumbell_resistance
$bar_animvalue /= 100.0
if and
  $animstate_flag > 0
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_6839
set_var_float_to_var_float $diffgym = $bar_animvalue
sub_float_var_from_float_var $diffgym -= $animvalue
$diffgym /= 2.0
if and
  0.05 > $diffgym
  $diffgym > -0.05
goto_if_false @GYMDUMB_6574
set_var_float_to_var_float $animvalue = $bar_animvalue
goto @GYMDUMB_6582

:GYMDUMB_6574
add_float_var_to_float_var $animvalue += $diffgym

:GYMDUMB_6582
if 
  $animstate_flag == 4
goto_if_false @GYMDUMB_6679
$tempfloat_gym = 1.0
sub_float_var_from_float_var $tempfloat_gym -= $animvalue
if 
  Char.IsPlayingAnim($scplayer, "GYM_FREE_DOWN")
goto_if_false @GYMDUMB_6672
Char.SetAnimCurrentTime($scplayer, "GYM_FREE_DOWN", $tempfloat_gym)

:GYMDUMB_6672
goto @GYMDUMB_6839

:GYMDUMB_6679
if 
  Char.IsPlayingAnim($scplayer, "GYM_FREE_A")
goto_if_false @GYMDUMB_6727
Char.SetAnimCurrentTime($scplayer, "GYM_FREE_A", $animvalue)

:GYMDUMB_6727
if 
  Char.IsPlayingAnim($scplayer, "GYM_FREE_B")
goto_if_false @GYMDUMB_6775
Char.SetAnimCurrentTime($scplayer, "GYM_FREE_B", $animvalue)

:GYMDUMB_6775
if 
  Char.IsPlayingAnim($scplayer, "GYM_FREE_UP_SMOOTH")
goto_if_false @GYMDUMB_6839
Char.SetAnimCurrentTime($scplayer, "GYM_FREE_UP_SMOOTH", $animvalue)

:GYMDUMB_6839
cset_var_int_to_var_float $powerbar =# $dumbell_resistance
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  $gym_final_month > 200.0
goto_if_false @GYMDUMB_7014
$powerbar = 0

:GYMDUMB_6881
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GYMDUMB_6909
wait 0
goto @GYMDUMB_6881

:GYMDUMB_6909
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_6976
Task.PlayAnim($scplayer, "GYM_FREE_PUTDOWN", "FREEWEIGHTS", 100.0, False, False, False, False, -1)

:GYMDUMB_6976
if 
  $gym_final_month > 200.0
goto_if_false @GYMDUMB_7007
$gym_final_month = 0.0

:GYMDUMB_7007
$playerexercising_flag = 6

:GYMDUMB_7014
if and
  $playerexercising_flag == 6
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_7878
if 
  $weightdb >= 0
goto_if_false @GYMDUMB_7661
if 
  Char.IsPlayingAnim($scplayer, "GYM_FREE_PUTDOWN")
goto_if_false @GYMDUMB_7654
$animframe_freegetoff = Char.GetAnimCurrentTime($scplayer, "GYM_FREE_PUTDOWN")

:GYMDUMB_7115
if 
  $animframe_freegetoff <= 0.3
goto_if_false @GYMDUMB_7189
wait 0
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_7182
$animframe_freegetoff = Char.GetAnimCurrentTime($scplayer, "GYM_FREE_PUTDOWN")

:GYMDUMB_7182
goto @GYMDUMB_7115

:GYMDUMB_7189
Char.DropObject($scplayer, False)
Char.DropSecondObject($scplayer, False)
Object.AttachToObject(25@, 0@, 0.0, 0.2, 0.3, 0.0, 90.0, 90.0)
Object.AttachToObject(26@, 0@, 0.0, -0.2, 0.3, 0.0, 90.0, 90.0)
$animframe = Char.GetAnimCurrentTime($scplayer, "GYM_FREE_PUTDOWN")
if and
  $animframe == 1.0
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_7654
if 
  $weightdb > 4
goto_if_false @GYMDUMB_7402
Task.PlayAnim($scplayer, "GYM_FREE_CELEBRATE", "FREEWEIGHTS", 8.0, False, False, False, False, -1)

:GYMDUMB_7402
17@ = 0
$animstate_flag = 0
21@ = 1
$reps_dumbell = 1
$weightdb = 0
$powerbar = 0
$animationtobeplayed = 0.0
$playerexercising_flag = 0
$dumbell_resistance = 0.0
$reps_dumbell = 1
$weightdb = 0
$animframe = 0.0
$animframe_freepickup = 0.0
$upperbodymusclestat_gym = Stat.GetFloat(StatId.BodyMuscle)
if 
  $upperbodymusclestat_gym >= 1000.0
goto_if_false @GYMDUMB_7542
Stat.SetFloat(StatId.BodyMuscle, 1000.0)

:GYMDUMB_7542
$fatstat_gym = Stat.GetFloat(StatId.Fat)
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMDUMB_7579
Stat.SetFloat(StatId.Fat, 0.0)

:GYMDUMB_7579
if 
  not Char.IsDead($scplayer)
goto_if_false @GYMDUMB_7621
Hud.ClearCounter($weightdb)
Hud.ClearCounter($powerbar)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Char.SetCollision($scplayer, True)

:GYMDUMB_7621
Streaming.RemoveAnimation("FREEWEIGHTS")
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Menu.Delete($tread_show_stat)
Text.ClearHelp
$are_anims_loaded = 0

:GYMDUMB_7654
goto @GYMDUMB_7878

:GYMDUMB_7661
17@ = 0
$animstate_flag = 0
21@ = 1
$reps_dumbell = 1
$weightdb = 0
$powerbar = 0
$animationtobeplayed = 0.0
$playerexercising_flag = 0
$dumbell_resistance = 0.0
$reps_dumbell = 1
$weightdb = 0
$animframe = 0.0
$animframe_freepickup = 0.0
$upperbodymusclestat_gym = Stat.GetFloat(StatId.BodyMuscle)
if 
  $upperbodymusclestat_gym >= 1000.0
goto_if_false @GYMDUMB_7801
Stat.SetFloat(StatId.BodyMuscle, 1000.0)

:GYMDUMB_7801
$fatstat_gym = Stat.GetFloat(StatId.Fat)
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMDUMB_7838
Stat.SetFloat(StatId.Fat, 0.0)

:GYMDUMB_7838
Hud.ClearCounter($weightdb)
Hud.ClearCounter($powerbar)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Char.SetCollision($scplayer, True)
Menu.Delete($tread_show_stat)
Text.ClearHelp
$are_anims_loaded = 0

:GYMDUMB_7878
goto @GYMDUMB_683
terminate_this_script 

//-------------External script 15 (BASKETB)---------------

:BBALL
script_name 'BBALL'
if 
  $bball_active <> 0
goto_if_false @BBALL_31
terminate_this_script 

:BBALL_31
16@ = 0
17@ = 0
18@ = 0
20@ = 0
22@ = 0
$bball_frame_count = 0
19@ = 0
21@ = 0
$bball_help = 0
if 
  16@ == -1
goto_if_false @BBALL_178
0@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
1@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
$dumb_show_stat = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)

:BBALL_178
24@ = 0
if 
  $bball_unlocked <> 0
goto_if_false @BBALL_451
if 
  Object.DoesExist(0@)
goto_if_false @BBALL_451
if and
  Player.IsPlaying($player1)
  $onmission == 0
goto_if_false @BBALL_451
if 
  Object.DoesHaveThisModel(0@, #BSKBALL_LAX)
goto_if_false @BBALL_296
if 
  Streaming.HasModelLoaded(#BSKBALL_LAX)
goto_if_false @BBALL_289
23@ = -30
24@ = 1

:BBALL_289
goto @BBALL_451

:BBALL_296
if 
  Object.DoesHaveThisModel(0@, #BSKBALLHUB_LAX01)
goto_if_false @BBALL_350
if 
  Streaming.HasModelLoaded(#BSKBALLHUB_LAX01)
goto_if_false @BBALL_343
23@ = -31
24@ = 1

:BBALL_343
goto @BBALL_451

:BBALL_350
if 
  Object.DoesHaveThisModel(0@, #VGSXREFBBALLNET)
goto_if_false @BBALL_404
if 
  Streaming.HasModelLoaded(#VGSXREFBBALLNET)
goto_if_false @BBALL_397
23@ = -32
24@ = 1

:BBALL_397
goto @BBALL_451

:BBALL_404
if 
  Object.DoesHaveThisModel(0@, #VGSXREFBBALLNET2)
goto_if_false @BBALL_451
if 
  Streaming.HasModelLoaded(#VGSXREFBBALLNET2)
goto_if_false @BBALL_451
23@ = -33
24@ = 1

:BBALL_451
if 
  24@ == 1
goto_if_false @BBALL_2137
switch_start 16@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BBALL_2130 {caseNum1} 0 {caseLabel1} @BBALL_532 {caseNum2} 1 {caseLabel2} @BBALL_732 {caseNum3} 2 {caseLabel3} @BBALL_1203 {caseNum4} 3 {caseLabel4} @BBALL_1731 {caseNum5} -1 {caseLabel5} @BBALL_2130 {caseNum6} -1 {caseLabel6} @BBALL_2130 {caseNum7} -1 {caseLabel7} @BBALL_2130

:BBALL_532
if 
  $bball_active == 0
goto_if_false @BBALL_718
if 
  Char.LocateAnyMeansObject2D($scplayer, 0@, 50.0, 50.0, False)
goto_if_false @BBALL_711
if 
  not Object.DoesExist(1@)
goto_if_false @BBALL_711
$bball_active = 1
if 
  Streaming.HasModelLoaded(23@)
goto_if_false @BBALL_636
$x, $y, $z = Object.GetLevelDesignCoords(0@, 1)

:BBALL_636
$z += 1.0
1@ = Object.CreateNoOffset(#BBALL_COL, $x, $y, $z)
19@ = 1
Object.SetDynamic(1@, True)
Object.SetCollision(1@, True)
Object.SetVelocity(1@, 0.0, 0.0, -0.1)
16@ += 1

:BBALL_711
goto @BBALL_725

:BBALL_718
gosub @BBALL_2162

:BBALL_725
goto @BBALL_2130

:BBALL_732
if 
  Char.LocateAnyMeansObject2D($scplayer, 0@, 50.0, 50.0, False)
goto_if_false @BBALL_1177
if 
  Object.DoesExist(1@)
goto_if_false @BBALL_1170
if 
  Char.LocateOnFootObject3D($scplayer, 1@, 1.0, 1.0, 2.0, False)
goto_if_false @BBALL_1170
if 
  Streaming.HasModelLoaded(23@)
goto_if_false @BBALL_1170
2@, 3@, 4@ = Object.GetLevelDesignCoords(0@, 2)
5@, 6@, 7@ = Object.GetLevelDesignCoords(0@, 3)
if 
  Object.IsInArea3D(1@, 2@, 3@, 4@, 5@, 6@, 7@, False)
goto_if_false @BBALL_1130
if 
  Char.LocateOnFootObject3D($scplayer, 1@, 0.7, 0.7, 2.0, False)
goto_if_false @BBALL_1123
$x, $y, $z = Object.GetCoordinates(1@)
set_lvar_float_to_var_float 2@ = $x
2@ -= 0.71
set_lvar_float_to_var_float 3@ = $y
3@ -= 0.71
set_lvar_float_to_var_float 4@ = $z
4@ -= 0.71
set_lvar_float_to_var_float 5@ = $x
5@ += 0.71
set_lvar_float_to_var_float 6@ = $y
6@ += 0.71
set_lvar_float_to_var_float 7@ = $z
7@ += 2.0
if 
  not World.IsAreaOccupied(2@, 3@, 4@, 5@, 6@, 7@, False, True, False, False, False)
goto_if_false @BBALL_1123
Pad.SetPlayerEnterCarButton($player1, False)
Text.PrintHelpForever('BB_01')
16@ += 1

:BBALL_1123
goto @BBALL_1170

:BBALL_1130
$x, $y, $z = Object.GetLevelDesignCoords(0@, 1)
$z += 1.0
Object.SetCoordinates(1@, $x, $y, $z)

:BBALL_1170
goto @BBALL_1196

:BBALL_1177
Object.MarkAsNoLongerNeeded(1@)
16@ = 0
$bball_active = 0

:BBALL_1196
goto @BBALL_2130

:BBALL_1203
if 
  Char.LocateAnyMeansObject2D($scplayer, 0@, 50.0, 50.0, False)
goto_if_false @BBALL_1698
if 
  Object.DoesExist(1@)
goto_if_false @BBALL_1691
if 
  Streaming.HasModelLoaded(23@)
goto_if_false @BBALL_1691
2@, 3@, 4@ = Object.GetLevelDesignCoords(0@, 2)
5@, 6@, 7@ = Object.GetLevelDesignCoords(0@, 3)
if 
  Object.IsInArea3D(1@, 2@, 3@, 4@, 5@, 6@, 7@, False)
goto_if_false @BBALL_1675
if 
  Char.LocateOnFootObject3D($scplayer, 1@, 0.7, 0.7, 2.0, False)
goto_if_false @BBALL_1652
$x, $y, $z = Object.GetCoordinates(1@)
set_lvar_float_to_var_float 2@ = $x
2@ -= 0.71
set_lvar_float_to_var_float 3@ = $y
3@ -= 0.71
set_lvar_float_to_var_float 4@ = $z
4@ -= 0.71
set_lvar_float_to_var_float 5@ = $x
5@ += 0.71
set_lvar_float_to_var_float 6@ = $y
6@ += 0.71
set_lvar_float_to_var_float 7@ = $z
7@ += 2.0
if 
  not World.IsAreaOccupied(2@, 3@, 4@, 5@, 6@, 7@, False, True, False, False, False)
goto_if_false @BBALL_1629
if 
  20@ == 0
goto_if_false @BBALL_1598
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BBALL_1591
20@ = 1
Text.ClearHelp
gosub @BBALL_3448
16@ += 1

:BBALL_1591
goto @BBALL_1622

:BBALL_1598
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BBALL_1622
20@ = 0

:BBALL_1622
goto @BBALL_1645

:BBALL_1629
Pad.SetPlayerEnterCarButton($player1, True)
Text.ClearHelp
16@ += -1

:BBALL_1645
goto @BBALL_1668

:BBALL_1652
Pad.SetPlayerEnterCarButton($player1, True)
Text.ClearHelp
16@ += -1

:BBALL_1668
goto @BBALL_1691

:BBALL_1675
Pad.SetPlayerEnterCarButton($player1, True)
Text.ClearHelp
16@ += -1

:BBALL_1691
goto @BBALL_1724

:BBALL_1698
Pad.SetPlayerEnterCarButton($player1, True)
Object.MarkAsNoLongerNeeded(1@)
$bball_active = 0
16@ = 0

:BBALL_1724
goto @BBALL_2130

:BBALL_1731
if 
  Streaming.HasModelLoaded(23@)
goto_if_false @BBALL_2123
2@, 3@, 4@ = Object.GetLevelDesignCoords(0@, 2)
5@, 6@, 7@ = Object.GetLevelDesignCoords(0@, 3)
if 
  not Char.IsInArea3D($scplayer, 2@, 3@, 4@, 5@, 6@, 7@, False)
goto_if_false @BBALL_1914
if 
  6000 > TIMERB
goto_if_false @BBALL_1893
if and
  TIMERB > 0
  1000 > TIMERB
goto_if_false @BBALL_1879
Text.PrintHelpForever('BB_03')
TIMERB = 1000

:BBALL_1879
gosub @BBALL_4174
goto @BBALL_1907

:BBALL_1893
gosub @BBALL_4775
16@ = 1

:BBALL_1907
goto @BBALL_1949

:BBALL_1914
if 
  TIMERB > 1000
goto_if_false @BBALL_1935
Text.ClearHelp

:BBALL_1935
gosub @BBALL_4174
TIMERB = 0

:BBALL_1949
if 
  Player.IsPlaying($player1)
goto_if_false @BBALL_1997
if 
  Char.HasBeenDamagedByWeapon($scplayer, WeaponType.AnyWeapon)
goto_if_false @BBALL_1997
gosub @BBALL_4775
16@ = 1

:BBALL_1997
if and
  17@ <> 10
  17@ <> 16
  17@ <> 17
  17@ <> 4
goto_if_false @BBALL_2123
if 
  20@ == 0
goto_if_false @BBALL_2099
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BBALL_2092
20@ = 1
gosub @BBALL_4775
16@ = 1

:BBALL_2092
goto @BBALL_2123

:BBALL_2099
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BBALL_2123
20@ = 0

:BBALL_2123
goto @BBALL_2130

:BBALL_2130
goto @BBALL_2151

:BBALL_2137
$bball_active = 0
gosub @BBALL_2162

:BBALL_2151
wait 0
goto @BBALL_178

:BBALL_2162
Object.MarkAsNoLongerNeeded(1@)
if 
  Player.IsPlaying($player1)
goto_if_false @BBALL_2208
if 
  $onmission == 0
goto_if_false @BBALL_2208
Pad.SetPlayerEnterCarButton($player1, True)

:BBALL_2208
terminate_this_script 
return 
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BBALL_2237
$release_time += 0.01

:BBALL_2237
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BBALL_2262
$release_time += -0.01

:BBALL_2262
return 

:BBALL_2264
if 
  Object.DoesExist(1@)
goto_if_false @BBALL_2618
if 
  Object.IsAttached(1@)
goto_if_false @BBALL_2487
if 
  19@ == 1
goto_if_false @BBALL_2480
Object.Detach(1@, 0.0, 0.0, 0.0, False)
$x, $y, $z = Object.GetCoordinates(1@)
2@, 3@, 4@ = Object.GetVelocity(1@)
5@, 6@, 7@ = Object.GetRotationVelocity(1@)
Object.Delete(1@)
1@ = Object.CreateNoOffset(#BBALL_INGAME, $x, $y, $z)
Object.AttachToChar(1@, $scplayer, 0.0, 0.5, -1.0, 0.0, 0.0, 0.0)
Object.SetVelocity(1@, 2@, 3@, 4@)
5@, 6@, 7@ = Object.GetRotationVelocity(1@)
Object.SetCollision(1@, True)
19@ = 0

:BBALL_2480
goto @BBALL_2618

:BBALL_2487
if 
  19@ == 0
goto_if_false @BBALL_2618
$x, $y, $z = Object.GetCoordinates(1@)
2@, 3@, 4@ = Object.GetVelocity(1@)
5@, 6@, 7@ = Object.GetRotationVelocity(1@)
Object.Delete(1@)
1@ = Object.CreateNoOffset(#BBALL_COL, $x, $y, $z)
Object.SetDynamic(1@, True)
Object.SetCollision(1@, True)
Object.SetVelocity(1@, 2@, 3@, 4@)
5@, 6@, 7@ = Object.GetRotationVelocity(1@)
19@ = 1

:BBALL_2618
return 

:BBALL_2620
if 
  Object.DoesExist(1@)
goto_if_false @BBALL_3446
if 
  Object.IsAttached(1@)
goto_if_false @BBALL_2843
if 
  19@ == 1
goto_if_false @BBALL_2836
Object.Detach(1@, 0.0, 0.0, 0.0, False)
$x, $y, $z = Object.GetCoordinates(1@)
2@, 3@, 4@ = Object.GetVelocity(1@)
5@, 6@, 7@ = Object.GetRotationVelocity(1@)
Object.Delete(1@)
1@ = Object.CreateNoOffset(#BBALL_INGAME, $x, $y, $z)
Object.AttachToChar(1@, $scplayer, 0.0, 0.5, -1.0, 0.0, 0.0, 0.0)
Object.SetVelocity(1@, 2@, 3@, 4@)
5@, 6@, 7@ = Object.GetRotationVelocity(1@)
Object.SetCollision(1@, True)
19@ = 0

:BBALL_2836
goto @BBALL_3446

:BBALL_2843
if 
  19@ == 0
goto_if_false @BBALL_3446
$x, $y, $z = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.5, 0.0)
set_lvar_float_to_var_float 2@ = $x
2@ -= 0.1
set_lvar_float_to_var_float 5@ = $x
5@ += 0.1
set_lvar_float_to_var_float 3@ = $y
3@ -= 0.1
set_lvar_float_to_var_float 6@ = $y
6@ += 0.1
set_lvar_float_to_var_float 4@ = $z
4@ -= 0.5
set_lvar_float_to_var_float 7@ = $z
7@ += 1.0
if 
  not World.IsAreaOccupied(2@, 3@, 4@, 5@, 6@, 7@, False, True, False, False, False)
goto_if_false @BBALL_3151
2@, 3@, 4@ = Object.GetVelocity(1@)
5@, 6@, 7@ = Object.GetRotationVelocity(1@)
Object.Delete(1@)
1@ = Object.CreateNoOffset(#BBALL_COL, $x, $y, $z)
Object.SetDynamic(1@, True)
Object.SetCollision(1@, True)
Object.SetVelocity(1@, 0.0, 0.0, -0.1)
5@, 6@, 7@ = Object.GetRotationVelocity(1@)
19@ = 1
goto @BBALL_3446

:BBALL_3151
$x, $y, $z = Char.GetOffsetInWorldCoords($scplayer, 0.0, -2.0, -0.3)
set_lvar_float_to_var_float 2@ = $x
2@ -= 0.1
set_lvar_float_to_var_float 5@ = $x
5@ += 0.1
set_lvar_float_to_var_float 3@ = $y
3@ -= 0.1
set_lvar_float_to_var_float 6@ = $y
6@ += 0.1
set_lvar_float_to_var_float 4@ = $z
4@ -= 0.5
set_lvar_float_to_var_float 7@ = $z
7@ += 1.0
if 
  not World.IsAreaOccupied(2@, 3@, 4@, 5@, 6@, 7@, False, True, False, False, False)
goto_if_false @BBALL_3441
2@, 3@, 4@ = Object.GetVelocity(1@)
5@, 6@, 7@ = Object.GetRotationVelocity(1@)
Object.Delete(1@)
1@ = Object.CreateNoOffset(#BBALL_COL, $x, $y, $z)
Object.SetDynamic(1@, True)
Object.SetCollision(1@, True)
Object.SetVelocity(1@, 0.0, 0.0, -0.1)
5@, 6@, 7@ = Object.GetRotationVelocity(1@)
19@ = 1
goto @BBALL_3446

:BBALL_3441
Object.Delete(1@)

:BBALL_3446
return 

:BBALL_3448
Game.SetMinigameInProgress(True)
Text.DisplayNonMinigameHelpMessages(True)
$release_time = 0.4
Pad.SetPlayerEnterCarButton($player1, False)
if 
  Player.IsPlaying($player1)
goto_if_false @BBALL_3616
Player.SetControl($player1, False)
Char.SetProofs($scplayer, False, False, False, False, False)
Char.ClearLastWeaponDamage($scplayer)
$bball_is_active = Char.GetCurrentWeapon($scplayer)
if 
  Char.HasGotWeapon($scplayer, WeaponType.BrassKnuckles)
goto_if_false @BBALL_3595
Char.RemoveWeapon($scplayer, WeaponType.BrassKnuckles)
$bball_stored_weapon = 1
Streaming.RequestModel(331)

:BBALL_3561
if 
  not Streaming.HasModelLoaded(331)
goto_if_false @BBALL_3588
wait 0
goto @BBALL_3561

:BBALL_3588
goto @BBALL_3602

:BBALL_3595
$bball_stored_weapon = 0

:BBALL_3602
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Pad.SetPlayerCycleWeaponButton($player1, False)

:BBALL_3616
if 
  Object.DoesExist(1@)
goto_if_false @BBALL_3639
Object.FreezePosition(1@, True)

:BBALL_3639
Streaming.RequestAnimation("BSKTBALL")
Streaming.RequestModel(#BBALL_INGAME)
Streaming.RequestModel(#BBALL_COL)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1811)

:BBALL_3668
if or
  not Streaming.HasAnimationLoaded("BSKTBALL")
  not Streaming.HasModelLoaded(#BBALL_INGAME)
  not Streaming.HasModelLoaded(#BBALL_COL)
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @BBALL_3716
wait 0
goto @BBALL_3668

:BBALL_3716
10@, 11@, 12@ = Camera.GetActiveCoordinates()
13@, 14@, 15@ = Camera.GetActivePointAt()
set_var_float_to_lvar_float $x = 13@
sub_float_lvar_from_float_var $x -= 10@
set_var_float_to_lvar_float $y = 14@
sub_float_lvar_from_float_var $y -= 11@
set_var_float_to_lvar_float $z = 15@
sub_float_lvar_from_float_var $z -= 12@
$distance = Math.GetDistanceBetweenCoords3D(13@, 14@, 15@, 10@, 11@, 12@)
div_float_var_by_float_var $x /= $distance
div_float_var_by_float_var $y /= $distance
div_float_var_by_float_var $z /= $distance
$x *= 10.0
$y *= 10.0
$z *= 10.0
set_lvar_float_to_lvar_float 13@ = 10@
add_float_var_to_float_lvar 13@ += $x
set_lvar_float_to_lvar_float 14@ = 11@
add_float_var_to_float_lvar 14@ += $y
set_lvar_float_to_lvar_float 15@ = 12@
add_float_var_to_float_lvar 15@ += $z
TIMERA = 0
$bball_help = 0
17@ = 10
$bball_frame_count = 1
if 
  Player.IsPlaying($player1)
goto_if_false @BBALL_3991
$x, $y, $z = Char.GetCoordinates($scplayer)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
set_var_float_to_var_float $bball_player_has_brassknuckle = $z

:BBALL_3991
8@ = Object.GetHeading(0@)
if or
  10.0 > 8@
  8@ > 350.0
goto_if_false @BBALL_4037
$bball_court_z = 1

:BBALL_4037
if and
  8@ > 80.0
  100.0 > 8@
goto_if_false @BBALL_4075
$bball_court_z = 2

:BBALL_4075
if and
  8@ > 170.0
  190.0 > 8@
goto_if_false @BBALL_4113
$bball_court_z = 3

:BBALL_4113
if and
  8@ > 260.0
  280.0 > 8@
goto_if_false @BBALL_4151
$bball_court_z = 4

:BBALL_4151
World.SetPedDensityMultiplier(0.2)
World.SetCarDensityMultiplier(0.2)
$bball_camera_type = 1
return 

:BBALL_4174
$anim_release_time += 1
if 
  $anim_release_time >= 30
goto_if_false @BBALL_4206
$anim_release_time = 0

:BBALL_4206
gosub @BBALL_15871
gosub @BBALL_17470
gosub @BBALL_5180
gosub @BBALL_11732
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @BBALL_4256
gosub @BBALL_20230

:BBALL_4256
if 
  3 > $bball_help
goto_if_false @BBALL_4499
if 
  $bball_help == 0
goto_if_false @BBALL_4335
if 
  $bball_challenge_active == 0
goto_if_false @BBALL_4321
Text.PrintHelp('BB_02')

:BBALL_4321
$bball_help += 1
TIMERA = 0

:BBALL_4335
if and
  $bball_help == 1
  TIMERA > 10000
goto_if_false @BBALL_4404
if 
  $bball_challenge_active == 0
goto_if_false @BBALL_4390
Text.PrintHelp('BB_07')

:BBALL_4390
TIMERA = 0
$bball_help += 1

:BBALL_4404
if and
  $bball_help == 2
  TIMERA > 5000
goto_if_false @BBALL_4499
if or
  Object.DoesHaveThisModel(0@, #BSKBALL_LAX)
  Object.DoesHaveThisModel(0@, #VGSXREFBBALLNET)
goto_if_false @BBALL_4484
if 
  $bball_challenge_active == 0
goto_if_false @BBALL_4484
Text.PrintHelp('BB_09')

:BBALL_4484
TIMERA = 12000
$bball_help += 1

:BBALL_4499
if or
  Object.DoesHaveThisModel(0@, #BSKBALL_LAX)
  Object.DoesHaveThisModel(0@, #VGSXREFBBALLNET)
goto_if_false @BBALL_4626
if 
  $bball_challenge_active == 0
goto_if_false @BBALL_4626
if 
  $bball_r3_is_pressed == 0
goto_if_false @BBALL_4602
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @BBALL_4595
$bball_r3_is_pressed = 1
start_new_script @BBCHAL 0@ 

:BBALL_4595
goto @BBALL_4626

:BBALL_4602
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Rightshock)
goto_if_false @BBALL_4626
$bball_r3_is_pressed = 0

:BBALL_4626
if 
  $anim_release_time == 0
goto_if_false @BBALL_4773
if 
  Object.DoesExist(1@)
goto_if_false @BBALL_4773
if 
  not Object.IsAttached(1@)
goto_if_false @BBALL_4773
if 
  Streaming.HasModelLoaded(23@)
goto_if_false @BBALL_4773
2@, 3@, 4@ = Object.GetLevelDesignCoords(0@, 1)
$x, $y, $z = Object.GetCoordinates(1@)
set_lvar_float_to_lvar_float 8@ = 4@
8@ -= 0.7
if 
  is_float_lvar_greater_than_float_var 8@ > $z
goto_if_false @BBALL_4773
Object.SetCoordinates(1@, 2@, 3@, 4@)

:BBALL_4773
return 

:BBALL_4775
if 
  Player.IsPlaying($player1)
goto_if_false @BBALL_5178
if 
  $bball_stored_weapon == 1
goto_if_false @BBALL_4830
Char.GiveWeapon($scplayer, WeaponType.BrassKnuckles, 1)
$bball_stored_weapon = 0
Streaming.MarkModelAsNoLongerNeeded(331)

:BBALL_4830
Char.SetCurrentWeapon($scplayer, $bball_is_active)
Pad.SetPlayerCycleWeaponButton($player1, True)
Char.ClearTasks($scplayer)
Player.SetControl($player1, True)
Pad.SetPlayerEnterCarButton($player1, True)
if 
  Object.DoesExist(1@)
goto_if_false @BBALL_4925
if 
  Object.IsAttached(1@)
goto_if_false @BBALL_4925
Object.Detach(1@, 0.0, 0.0, 0.0, True)
gosub @BBALL_2620

:BBALL_4925
if 
  Object.DoesExist(1@)
goto_if_false @BBALL_5065
if 
  Streaming.HasModelLoaded(23@)
goto_if_false @BBALL_5005
$x, $y, $z = Object.GetLevelDesignCoords(0@, 1)
2@, 3@, 4@ = Object.GetLevelDesignCoords(0@, 2)
5@, 6@, 7@ = Object.GetLevelDesignCoords(0@, 3)

:BBALL_5005
if 
  not Object.IsInArea3D(1@, 2@, 3@, 4@, 5@, 6@, 7@, False)
goto_if_false @BBALL_5065
$z += 1.0
Object.SetCoordinates(1@, $x, $y, $z)

:BBALL_5065
if 
  Object.DoesExist($dumb_show_stat)
goto_if_false @BBALL_5116
if 
  22@ == 1
goto_if_false @BBALL_5111
Char.DetachFromCar($scplayer)
22@ = 0

:BBALL_5111
Object.Delete($dumb_show_stat)

:BBALL_5116
Camera.Restore
$bball_frame_count = 0
Streaming.RemoveAnimation("BSKTBALL")
Streaming.MarkModelAsNoLongerNeeded(#BBALL_INGAME)
Streaming.MarkModelAsNoLongerNeeded(#BBALL_COL)
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Text.ClearHelp
$bball_camera_type = 0
World.SetPedDensityMultiplier(1.0)
World.SetCarDensityMultiplier(1.0)
Game.SetMinigameInProgress(False)

:BBALL_5178
return 

:BBALL_5180
if and
  Player.IsPlaying($player1)
  Streaming.HasModelLoaded(23@)
goto_if_false @BBALL_11722
switch_start 17@ {numCases} 17 {hasDefaultCase} 1 {defaultLabel} @BBALL_11722 {caseNum1} 1 {caseLabel1} @BBALL_6264 {caseNum2} 2 {caseLabel2} @BBALL_6797 {caseNum3} 3 {caseLabel3} @BBALL_7207 {caseNum4} 4 {caseLabel4} @BBALL_8203 {caseNum5} 5 {caseLabel5} @BBALL_8694 {caseNum6} 6 {caseLabel6} @BBALL_8868 {caseNum7} 7 {caseLabel7} @BBALL_10836
switch_continued 8 {caseLabel1} @BBALL_11026 {caseNum2} 9 {caseLabel2} @BBALL_11226 {caseNum3} 10 {caseLabel3} @BBALL_11240 {caseNum4} 11 {caseLabel4} @BBALL_8013 {caseNum5} 12 {caseLabel5} @BBALL_11233 {caseNum6} 13 {caseLabel6} @BBALL_8818 {caseNum7} 14 {caseLabel7} @BBALL_5394 {caseNum8} 15 {caseLabel8} @BBALL_5828 {caseNum9} 16 {caseLabel9} @BBALL_9420
switch_continued 17 {caseLabel1} @BBALL_10135 {caseNum2} -1 {caseLabel2} @BBALL_11722 {caseNum3} -1 {caseLabel3} @BBALL_11722 {caseNum4} -1 {caseLabel4} @BBALL_11722 {caseNum5} -1 {caseLabel5} @BBALL_11722 {caseNum6} -1 {caseLabel6} @BBALL_11722 {caseNum7} -1 {caseLabel7} @BBALL_11722 {caseNum8} -1 {caseLabel8} @BBALL_11722 {caseNum9} -1 {caseLabel9} @BBALL_11722

:BBALL_5394
if 
  18@ <> 14
goto_if_false @BBALL_5658
24@ = 0
if 
  Char.IsPlayingAnim($scplayer, "BBALL_IDLELOOP")
goto_if_false @BBALL_5510
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_IDLELOOP")
if 
  8@ > 0.9
goto_if_false @BBALL_5510
24@ = 1
$hoop_direction = 0

:BBALL_5510
if 
  24@ == 1
goto_if_false @BBALL_5644
26@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "BBALL_IDLE", "BSKTBALL", 10000.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable(-1, "BBALL_IDLELOOP", "BSKTBALL", 10000.0, False, False, False, True, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)
goto @BBALL_5651

:BBALL_5644
goto @BBALL_11730

:BBALL_5651
goto @BBALL_5821

:BBALL_5658
24@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_5708
17@ = 11
goto @BBALL_5180
goto @BBALL_5821

:BBALL_5708
if 
  $hoop_direction == 0
goto_if_false @BBALL_5768
if 
  Char.IsPlayingAnim($scplayer, "BBALL_IDLE")
goto_if_false @BBALL_5761
$hoop_direction += 1

:BBALL_5761
goto @BBALL_5821

:BBALL_5768
if 
  Char.IsPlayingAnim($scplayer, "BBALL_IDLELOOP")
goto_if_false @BBALL_5821
17@ = 11
$hoop_direction = 0
goto @BBALL_5180

:BBALL_5821
goto @BBALL_11722

:BBALL_5828
if 
  18@ <> 15
goto_if_false @BBALL_6093
24@ = 0
if 
  Char.IsPlayingAnim($scplayer, "BBALL_IDLELOOP")
goto_if_false @BBALL_5944
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_IDLELOOP")
if 
  8@ > 0.9
goto_if_false @BBALL_5944
$roll_along_back_flag = 0
24@ = 1

:BBALL_5944
if 
  24@ == 1
goto_if_false @BBALL_6079
26@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "BBALL_IDLE2", "BSKTBALL", 10000.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable(-1, "BBALL_IDLELOOP", "BSKTBALL", 10000.0, False, False, False, True, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)
goto @BBALL_6086

:BBALL_6079
goto @BBALL_11730

:BBALL_6086
goto @BBALL_6257

:BBALL_6093
24@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_6143
17@ = 11
goto @BBALL_5180
goto @BBALL_6257

:BBALL_6143
if 
  $roll_along_back_flag == 0
goto_if_false @BBALL_6204
if 
  Char.IsPlayingAnim($scplayer, "BBALL_IDLE2")
goto_if_false @BBALL_6197
$roll_along_back_flag += 1

:BBALL_6197
goto @BBALL_6257

:BBALL_6204
if 
  Char.IsPlayingAnim($scplayer, "BBALL_IDLELOOP")
goto_if_false @BBALL_6257
17@ = 11
$roll_along_back_flag = 0
goto @BBALL_5180

:BBALL_6257
goto @BBALL_11722

:BBALL_6264
if or
  18@ == 11
  18@ == 2
  18@ == 3
  18@ == 10
goto_if_false @BBALL_6697
if and
  not Char.IsPlayingAnim($scplayer, "BBALL_PICKUP")
  not Char.IsPlayingAnim($scplayer, "BBALL_SKIDSTOP_L")
  not Char.IsPlayingAnim($scplayer, "BBALL_SKIDSTOP_R")
  not Char.IsPlayingAnim($scplayer, "BBALL_WALKSTOP_L")
  not Char.IsPlayingAnim($scplayer, "BBALL_WALKSTOP_R")
goto_if_false @BBALL_6683
$spin_on_finger_flag = 0
if 
  Char.IsPlayingAnim($scplayer, "BBALL_RUN")
goto_if_false @BBALL_6478
$walk_with_ball_flag = Char.GetAnimCurrentTime($scplayer, "BBALL_RUN")

:BBALL_6478
26@ = Sequence.Open()
if 
  Char.IsPlayingAnim($scplayer, "BBALL_IDLELOOP")
goto_if_false @BBALL_6617
Task.PlayAnimNonInterruptable(-1, "BBALL_WALK_START", "BSKTBALL", 8.0, False, True, True, True, -1)
Task.PlayAnimNonInterruptable(-1, "BBALL_WALK", "BSKTBALL", 10000.0, True, True, True, False, -1)
$spin_on_finger_flag = 1
goto @BBALL_6658

:BBALL_6617
Task.PlayAnimNonInterruptable(-1, "BBALL_WALK", "BSKTBALL", 8.0, True, True, True, False, -1)

:BBALL_6658
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)
goto @BBALL_6690

:BBALL_6683
goto @BBALL_11730

:BBALL_6690
goto @BBALL_6790

:BBALL_6697
if 
  $spin_on_finger_flag == 0
goto_if_false @BBALL_6790
if 
  Char.IsPlayingAnim($scplayer, "BBALL_WALK")
goto_if_false @BBALL_6790
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_WALK")
Char.SetAnimCurrentTime($scplayer, "BBALL_WALK", $walk_with_ball_flag)
$spin_on_finger_flag += 1

:BBALL_6790
goto @BBALL_11722

:BBALL_6797
if or
  18@ == 11
  18@ == 1
  18@ == 3
  18@ == 10
goto_if_false @BBALL_7129
if 
  18@ == 11
goto_if_false @BBALL_6868
17@ = 1
goto @BBALL_5180

:BBALL_6868
if and
  not Char.IsPlayingAnim($scplayer, "BBALL_PICKUP")
  not Char.IsPlayingAnim($scplayer, "BBALL_SKIDSTOP_L")
  not Char.IsPlayingAnim($scplayer, "BBALL_SKIDSTOP_R")
  not Char.IsPlayingAnim($scplayer, "BBALL_WALKSTOP_L")
  not Char.IsPlayingAnim($scplayer, "BBALL_WALKSTOP_R")
goto_if_false @BBALL_7115
$walk_with_ball_start_position = 0
if 
  Char.IsPlayingAnim($scplayer, "BBALL_WALK")
goto_if_false @BBALL_7045
$run_with_ball_flag = Char.GetAnimCurrentTime($scplayer, "BBALL_WALK")

:BBALL_7045
26@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "BBALL_RUN", "BSKTBALL", 8.0, True, True, True, False, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)
goto @BBALL_7122

:BBALL_7115
goto @BBALL_11730

:BBALL_7122
goto @BBALL_7200

:BBALL_7129
if 
  $walk_with_ball_start_position == 0
goto_if_false @BBALL_7200
if 
  Char.IsPlayingAnim($scplayer, "BBALL_RUN")
goto_if_false @BBALL_7200
Char.SetAnimCurrentTime($scplayer, "BBALL_RUN", $run_with_ball_flag)
$walk_with_ball_start_position += 1

:BBALL_7200
goto @BBALL_11722

:BBALL_7207
if 
  18@ <> 3
goto_if_false @BBALL_7910
if 
  Char.IsPlayingAnim($scplayer, "BBALL_RUN")
goto_if_false @BBALL_7488
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_RUN")
if 
  Char.IsPlayingAnim($scplayer, "BBALL_RUN")
goto_if_false @BBALL_7488
26@ = Sequence.Open()
if 
  0.5 > 8@
goto_if_false @BBALL_7378
Task.PlayAnimNonInterruptable(-1, "BBALL_SKIDSTOP_R", "BSKTBALL", 6.0, False, True, True, True, -1)
goto @BBALL_7425

:BBALL_7378
Task.PlayAnimNonInterruptable(-1, "BBALL_SKIDSTOP_L", "BSKTBALL", 6.0, False, True, True, True, -1)

:BBALL_7425
Task.PlayAnimNonInterruptable(-1, "BBALL_IDLELOOP", "BSKTBALL", 10000.0, False, False, False, True, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)

:BBALL_7488
if 
  Char.IsPlayingAnim($scplayer, "BBALL_WALK")
goto_if_false @BBALL_7754
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_WALK")
if 
  Char.IsPlayingAnim($scplayer, "BBALL_WALK")
goto_if_false @BBALL_7754
26@ = Sequence.Open()
if 
  0.5 > 8@
goto_if_false @BBALL_7644
Task.PlayAnimNonInterruptable(-1, "BBALL_WALKSTOP_R", "BSKTBALL", 6.0, False, True, True, True, -1)
goto @BBALL_7691

:BBALL_7644
Task.PlayAnimNonInterruptable(-1, "BBALL_WALKSTOP_L", "BSKTBALL", 6.0, False, True, True, True, -1)

:BBALL_7691
Task.PlayAnimNonInterruptable(-1, "BBALL_IDLELOOP", "BSKTBALL", 10000.0, False, False, False, True, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)

:BBALL_7754
if 
  Char.IsPlayingAnim($scplayer, "BBALL_WALK_START")
goto_if_false @BBALL_7903
26@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "BBALL_WALKSTOP_L", "BSKTBALL", 6.0, False, True, True, True, -1)
Task.PlayAnimNonInterruptable(-1, "BBALL_IDLELOOP", "BSKTBALL", 10000.0, False, False, False, True, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)

:BBALL_7903
goto @BBALL_8006

:BBALL_7910
24@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_7960
17@ = 11
goto @BBALL_11730
goto @BBALL_8006

:BBALL_7960
if 
  Char.IsPlayingAnim($scplayer, "BBALL_IDLELOOP")
goto_if_false @BBALL_8006
17@ = 11
goto @BBALL_11730

:BBALL_8006
goto @BBALL_11722

:BBALL_8013
if 
  18@ <> 11
goto_if_false @BBALL_8099
26@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "BBALL_IDLELOOP", "BSKTBALL", 10000.0, True, False, False, False, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)

:BBALL_8099
24@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_8196
26@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "BBALL_IDLELOOP", "BSKTBALL", 10000.0, True, False, False, False, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)

:BBALL_8196
goto @BBALL_11722

:BBALL_8203
if 
  18@ <> 4
goto_if_false @BBALL_8596
$x, $y, $z = Char.GetCoordinates($scplayer)
2@, 3@, 4@ = Object.GetLevelDesignCoords(0@, 0)
set_lvar_float_to_lvar_float 5@ = 2@
sub_float_var_from_float_lvar 5@ -= $x
set_lvar_float_to_lvar_float 6@ = 3@
sub_float_var_from_float_lvar 6@ -= $y
$heading = Math.GetHeadingFromVector2D(5@, 6@)
set_var_float_to_var_float $bb_new_look_z = $heading
26@ = Sequence.Open()
$x, $y, $z = Object.GetLevelDesignCoords(0@, 0)
Task.LookAtCoord(-1, $x, $y, $z, 2000)
if 
  18@ == 2
goto_if_false @BBALL_8525
if 
  Char.IsPlayingAnim($scplayer, "BBALL_RUN")
goto_if_false @BBALL_8403
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_RUN")

:BBALL_8403
if 
  0.5 > 8@
goto_if_false @BBALL_8478
Task.PlayAnimNonInterruptable(-1, "BBALL_SKIDSTOP_L", "BSKTBALL", 6.0, False, True, True, True, -1)
goto @BBALL_8525

:BBALL_8478
Task.PlayAnimNonInterruptable(-1, "BBALL_SKIDSTOP_R", "BSKTBALL", 6.0, False, True, True, True, -1)

:BBALL_8525
Task.PlayAnimNonInterruptable(-1, "BBALL_JUMP_SHOT", "BSKTBALL", 10000.0, False, False, False, False, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)
goto @BBALL_8687

:BBALL_8596
if 
  Char.IsPlayingAnim($scplayer, "BBALL_JUMP_SHOT")
goto_if_false @BBALL_8687
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_JUMP_SHOT")
if 
  is_float_lvar_greater_than_float_var 8@ > $release_time
goto_if_false @BBALL_8687
17@ = 6
goto @BBALL_11730

:BBALL_8687
goto @BBALL_11722

:BBALL_8694
if 
  Char.IsPlayingAnim($scplayer, "BBALL_JUMP_END")
goto_if_false @BBALL_8811
26@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "BBALL_JUMP_CANCEL", "BSKTBALL", 10000.0, False, False, False, True, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)
17@ = 13
goto @BBALL_11730

:BBALL_8811
goto @BBALL_11722

:BBALL_8818
24@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_8861
17@ = 11
goto @BBALL_11730

:BBALL_8861
goto @BBALL_11722

:BBALL_8868
if 
  18@ <> 6
goto_if_false @BBALL_9330
if 
  Object.IsAttached(1@)
goto_if_false @BBALL_9323
Object.Detach(1@, 0.0, 0.0, 0.0, False)
gosub @BBALL_2264
$x, $y, $z = Char.GetOffsetInWorldCoords($scplayer, 0.04, 0.694, 1.75)
Object.SetCoordinates(1@, $x, $y, $z)
2@, 3@, 4@ = Object.GetLevelDesignCoords(0@, 0)
8@ = Math.GetDistanceBetweenCoords2D($x, $y, 2@, 3@)
cset_var_int_to_lvar_float $bball_shot_dist =# 8@
set_lvar_float_to_var_float 7@ = $z
cset_lvar_float_to_var_int 7@ =# $bball_shot_dist
set_lvar_float_to_lvar_float 9@ = 8@
sub_float_lvar_from_float_lvar 9@ -= 7@
9@ *= 10.0
cset_var_int_to_lvar_float $bball_shot_dist_decimal =# 9@
if 
  8@ > 20.0
goto_if_false @BBALL_9096
8@ = 20.0

:BBALL_9096
8@ /= 20.0
8@ *= 5.0
9@ = Math.GetDistanceBetweenCoords2D($x, $y, 2@, 3@)
if 
  9@ > 15.0
goto_if_false @BBALL_9164
9@ = 15.0

:BBALL_9164
mult_float_var_by_float_lvar $char_obj *= 9@
$x, $y, $z = Object.GetCoordinates(1@)
9@ = Stat.GetFloat(StatId.BodyMuscle)
9@ /= 1000.0
9@ += 1.0
9@ *= 0.15
if 
  is_float_lvar_greater_than_float_var 9@ > $char_obj
goto_if_false @BBALL_9286
start_new_script @PROJECT 1@ $x $y $z 2@ 3@ 4@ 8@ 0 0@ 
goto @BBALL_9323

:BBALL_9286
start_new_script @PROJECT 1@ $x $y $z 2@ 3@ 4@ 8@ 1 0@ 

:BBALL_9323
goto @BBALL_9413

:BBALL_9330
if 
  not Char.IsPlayingAnim($scplayer, "BBALL_JUMP_SHOT")
goto_if_false @BBALL_9413
24@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_9413
Player.SetControl($player1, True)
17@ = 12
goto @BBALL_11730

:BBALL_9413
goto @BBALL_11722

:BBALL_9420
if 
  18@ <> 16
goto_if_false @BBALL_9890
$x, $y, $z = Char.GetCoordinates($scplayer)
2@, 3@, 4@ = Object.GetLevelDesignCoords(0@, 0)
set_lvar_float_to_var_float 5@ = $x
sub_float_lvar_from_float_lvar 5@ -= 2@
set_lvar_float_to_var_float 6@ = $y
sub_float_lvar_from_float_lvar 6@ -= 3@
8@ = Math.GetDistanceBetweenCoords2D($x, $y, 2@, 3@)
if 
  8@ > 0.01
goto_if_false @BBALL_9554
div_float_lvar_by_float_lvar 5@ /= 8@
div_float_lvar_by_float_lvar 6@ /= 8@

:BBALL_9554
5@ *= 0.01
6@ *= 0.01
set_var_float_to_lvar_float $x = 2@
add_float_lvar_to_float_var $x += 5@
set_var_float_to_lvar_float $y = 3@
add_float_lvar_to_float_var $y += 6@
set_var_float_to_lvar_float $z = 4@
$z -= 1.9
set_var_float_to_var_float $p_desired_heading = $x
set_var_float_to_var_float $bb_desired_x = $y
set_var_float_to_var_float $bb_desired_y = $z
5@ *= -1.0
6@ *= -1.0
$heading = Math.GetHeadingFromVector2D(5@, 6@)
set_var_float_to_var_float $bb_new_look_z = $heading
26@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "BBALL_DNK_LNCH", "BSKTBALL", 4.0, False, True, True, True, -1)
Task.PlayAnimNonInterruptable(-1, "BBALL_DNK_GLI", "BSKTBALL", 1000.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable(-1, "BBALL_DNK", "BSKTBALL", 1000.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable(-1, "BBALL_DNK_LND", "BSKTBALL", 1000.0, False, False, False, False, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)
goto @BBALL_10128

:BBALL_9890
if 
  Char.IsPlayingAnim($scplayer, "BBALL_DNK_GLI")
goto_if_false @BBALL_10087
if 
  not Object.DoesExist($dumb_show_stat)
goto_if_false @BBALL_10087
$x, $y, $z = Char.GetCoordinates($scplayer)
2@, 3@, 4@ = Object.GetLevelDesignCoords(0@, 0)
$run_with_ball_start_position = Math.GetDistanceBetweenCoords2D($x, $y, 2@, 3@)
$bb_desired_z = 0.0
$heading = Char.GetHeading($scplayer)
$dumb_show_stat = Object.CreateNoOffset(#BBALL_INGAME, $x, $y, $z)
Object.SetHeading($dumb_show_stat, $heading)
Object.SetCollision($dumb_show_stat, False)
Object.SetVisible($dumb_show_stat, False)
Object.FreezePosition($dumb_show_stat, True)
Char.AttachToObject($scplayer, $dumb_show_stat, 0.0, 0.0, 0.0, 0, 360.0, WeaponType.Unarmed)
22@ = 1

:BBALL_10087
if 
  Char.IsPlayingAnim($scplayer, "BBALL_DNK")
goto_if_false @BBALL_10128
17@ = 17
goto @BBALL_11730

:BBALL_10128
goto @BBALL_11722

:BBALL_10135
if 
  18@ <> 17
goto_if_false @BBALL_10543
if 
  Char.IsPlayingAnim($scplayer, "BBALL_DNK")
goto_if_false @BBALL_10522
if 
  Object.IsAttached(1@)
goto_if_false @BBALL_10515
if 
  Object.IsPlayingAnim(1@, "BBALL_DNK_O")
goto_if_false @BBALL_10405
8@ = Object.GetAnimCurrentTime(1@, "BBALL_DNK_O")
if 
  8@ > 0.9
goto_if_false @BBALL_10384
Object.Detach(1@, 0.0, 0.0, 0.0, False)
gosub @BBALL_2264
$x, $y, $z = Object.GetLevelDesignCoords(0@, 0)
$z += -0.5
Object.SetCoordinates(1@, $x, $y, $z)
Object.FreezePosition(1@, False)
Object.SetCollision(1@, True)
Object.SetDynamic(1@, True)
Object.SetVelocity(1@, 0.0, 0.0, -0.1)
goto @BBALL_10398

:BBALL_10384
18@ = 0
goto @BBALL_11730

:BBALL_10398
goto @BBALL_10515

:BBALL_10405
Object.Detach(1@, 0.0, 0.0, 0.0, False)
gosub @BBALL_2264
$x, $y, $z = Object.GetLevelDesignCoords(0@, 0)
$z += -0.5
Object.SetCoordinates(1@, $x, $y, $z)
Object.FreezePosition(1@, False)
Object.SetCollision(1@, True)
Object.SetDynamic(1@, True)
Object.SetVelocity(1@, 0.0, 0.0, -0.1)

:BBALL_10515
goto @BBALL_10536

:BBALL_10522
$bb_desired_y = World.GetGroundZFor3DCoord($p_desired_heading, $bb_desired_x, $bb_desired_y)

:BBALL_10536
goto @BBALL_10829

:BBALL_10543
if and
  not Char.IsPlayingAnim($scplayer, "BBALL_DNK_LNCH")
  not Char.IsPlayingAnim($scplayer, "BBALL_DNK_GLI")
  not Char.IsPlayingAnim($scplayer, "BBALL_DNK")
  not Char.IsPlayingAnim($scplayer, "BBALL_DNK_LND")
goto_if_false @BBALL_10721
24@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_10714
if 
  Object.DoesExist($dumb_show_stat)
goto_if_false @BBALL_10693
Char.DetachFromCar($scplayer)
Object.Delete($dumb_show_stat)
22@ = 0

:BBALL_10693
Player.SetControl($player1, True)
17@ = 12
goto @BBALL_11730

:BBALL_10714
goto @BBALL_10829

:BBALL_10721
if 
  Char.IsPlayingAnim($scplayer, "BBALL_DNK_LND")
goto_if_false @BBALL_10829
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, 1.0, 0.0)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
$z += 1.0
set_var_float_to_var_float $p_desired_heading = $x
set_var_float_to_var_float $bb_desired_x = $y
set_var_float_to_var_float $bb_desired_y = $z

:BBALL_10829
goto @BBALL_11722

:BBALL_10836
if 
  18@ <> 7
goto_if_false @BBALL_10922
26@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "BBALL_DEF_LOOP", "BSKTBALL", 4.0, True, False, False, False, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)

:BBALL_10922
24@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_11019
26@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "BBALL_DEF_LOOP", "BSKTBALL", 4.0, True, False, False, False, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)

:BBALL_11019
goto @BBALL_11722

:BBALL_11026
if 
  18@ <> 8
goto_if_false @BBALL_11117
26@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "BBALL_DEF_JUMP_SHOT", "BSKTBALL", 4.0, False, False, False, True, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)

:BBALL_11117
24@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_11219
26@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "BBALL_DEF_JUMP_SHOT", "BSKTBALL", 4.0, False, False, False, True, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)

:BBALL_11219
goto @BBALL_11722

:BBALL_11226
goto @BBALL_11722

:BBALL_11233
goto @BBALL_11722

:BBALL_11240
if 
  18@ <> 10
goto_if_false @BBALL_11619
Player.SetControl($player1, False)
Char.SetProofs($scplayer, False, False, False, False, False)
$x, $y, $z = Char.GetCoordinates($scplayer)
if 
  Object.DoesExist(1@)
goto_if_false @BBALL_11324
2@, 3@, 4@ = Object.GetCoordinates(1@)

:BBALL_11324
set_lvar_float_to_var_float 5@ = $x
sub_float_lvar_from_float_lvar 5@ -= 2@
set_lvar_float_to_var_float 6@ = $y
sub_float_lvar_from_float_lvar 6@ -= 3@
8@ = Math.GetDistanceBetweenCoords2D($x, $y, 2@, 3@)
div_float_lvar_by_float_lvar 5@ /= 8@
div_float_lvar_by_float_lvar 6@ /= 8@
5@ *= 0.5
6@ *= 0.5
set_var_float_to_lvar_float $x = 2@
add_float_lvar_to_float_var $x += 5@
set_var_float_to_lvar_float $y = 3@
add_float_lvar_to_float_var $y += 6@
set_lvar_float_to_lvar_float 5@ = 2@
sub_float_var_from_float_lvar 5@ -= $x
set_lvar_float_to_lvar_float 6@ = 3@
sub_float_var_from_float_lvar 6@ -= $y
$heading = Math.GetHeadingFromVector2D(5@, 6@)
26@ = Sequence.Open()
Task.CharSlideToCoordAndPlayAnim(-1, $x, $y, $z, $heading, -1.0, "BBALL_PICKUP", "BSKTBALL", 4.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable(-1, "BBALL_IDLELOOP", "BSKTBALL", 10000.0, False, False, False, True, -1)
Sequence.Close(26@)
Char.PerformSequence($scplayer, 26@)
Sequence.Clear(26@)
goto @BBALL_11715

:BBALL_11619
24@ = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_11669
17@ = 11
goto @BBALL_11730
goto @BBALL_11715

:BBALL_11669
if 
  Char.IsPlayingAnim($scplayer, "BBALL_IDLELOOP")
goto_if_false @BBALL_11715
17@ = 11
goto @BBALL_11730

:BBALL_11715
goto @BBALL_11722

:BBALL_11722
set_lvar_int_to_lvar_int 18@ = 17@

:BBALL_11730
return 

:BBALL_11732
if 
  Player.IsPlaying($player1)
goto_if_false @BBALL_15869
if 
  Char.IsPlayingAnim($scplayer, "BBALL_IDLELOOP")
goto_if_false @BBALL_12082
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_IDLELOOP")
if 
  not Char.IsPlayingAnim($scplayer, "BBALL_RUN")
goto_if_false @BBALL_11917
if 
  8@ > 0.45
goto_if_false @BBALL_11892
if 
  27@ <> 1
goto_if_false @BBALL_11885
Audio.ReportMissionAudioEventAtObject(1@, 1010)
27@ = 1

:BBALL_11885
goto @BBALL_11917

:BBALL_11892
if 
  27@ == 1
goto_if_false @BBALL_11917
27@ = 0

:BBALL_11917
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_12082
if 
  Object.IsPlayingAnim(1@, "BBALL_IDLELOOP_O")
goto_if_false @BBALL_12003
Object.SetAnimCurrentTime(1@, "BBALL_IDLELOOP_O", 8@)
goto @BBALL_12082

:BBALL_12003
if 
Object.PlayAnim(1@, "BBALL_IDLELOOP_O", "BSKTBALL", 1000.0, True, False)
goto_if_false @BBALL_12082
Object.SetAnimCurrentTime(1@, "BBALL_IDLELOOP_O", 8@)

:BBALL_12082
if 
  Char.IsPlayingAnim($scplayer, "BBALL_IDLE")
goto_if_false @BBALL_12365
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_IDLE")
if 
  8@ > 0.87671
goto_if_false @BBALL_12191
if 
  27@ <> 2
goto_if_false @BBALL_12184
Audio.ReportMissionAudioEventAtObject(1@, 1010)
27@ = 2

:BBALL_12184
goto @BBALL_12216

:BBALL_12191
if 
  27@ == 2
goto_if_false @BBALL_12216
27@ = 0

:BBALL_12216
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_12365
if 
  Object.IsPlayingAnim(1@, "BBALL_IDLE_O")
goto_if_false @BBALL_12294
Object.SetAnimCurrentTime(1@, "BBALL_IDLE_O", 8@)
goto @BBALL_12365

:BBALL_12294
if 
Object.PlayAnim(1@, "BBALL_IDLE_O", "BSKTBALL", 1000.0, False, True)
goto_if_false @BBALL_12365
Object.SetAnimCurrentTime(1@, "BBALL_IDLE_O", 8@)

:BBALL_12365
if 
  Char.IsPlayingAnim($scplayer, "BBALL_IDLE2")
goto_if_false @BBALL_12568
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_IDLE2")
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_12568
if 
  Object.IsPlayingAnim(1@, "BBALL_IDLE2_O")
goto_if_false @BBALL_12495
Object.SetAnimCurrentTime(1@, "BBALL_IDLE2_O", 8@)
goto @BBALL_12568

:BBALL_12495
if 
Object.PlayAnim(1@, "BBALL_IDLE2_O", "BSKTBALL", 1000.0, False, True)
goto_if_false @BBALL_12568
Object.SetAnimCurrentTime(1@, "BBALL_IDLE2_O", 8@)

:BBALL_12568
if 
  Char.IsPlayingAnim($scplayer, "BBALL_JUMP_SHOT")
goto_if_false @BBALL_12757
if 
  Object.IsAttached(1@)
goto_if_false @BBALL_12757
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_JUMP_SHOT")
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_12757
if 
  Object.IsPlayingAnim(1@, "BBALL_JUMP_SHOT_O")
goto_if_false @BBALL_12703
goto @BBALL_12757

:BBALL_12703
if 
Object.PlayAnim(1@, "BBALL_JUMP_SHOT_O", "BSKTBALL", 1000.0, False, True)
goto_if_false @BBALL_12757

:BBALL_12757
if 
  Char.IsPlayingAnim($scplayer, "BBALL_JUMP_CANCEL")
goto_if_false @BBALL_12996
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_JUMP_CANCEL")
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_12996
if 
  Object.IsPlayingAnim(1@, "BBALL_JUMP_CANCEL_O")
goto_if_false @BBALL_12911
Object.SetAnimCurrentTime(1@, "BBALL_JUMP_CANCEL_O", 8@)
goto @BBALL_12996

:BBALL_12911
if 
Object.PlayAnim(1@, "BBALL_JUMP_CANCEL_O", "BSKTBALL", 1000.0, False, True)
goto_if_false @BBALL_12996
Object.SetAnimCurrentTime(1@, "BBALL_JUMP_CANCEL_O", 8@)

:BBALL_12996
if 
  Char.IsPlayingAnim($scplayer, "BBALL_PICKUP")
goto_if_false @BBALL_13359
if 
  not Object.IsAttached(1@)
goto_if_false @BBALL_13094
Object.AttachToChar(1@, $scplayer, 0.0, 0.5, -1.0, 0.0, 0.0, 0.0)
gosub @BBALL_2264
goto @BBALL_13359

:BBALL_13094
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_PICKUP")
if 
  8@ > 0.836
goto_if_false @BBALL_13177
if 
  27@ <> 3
goto_if_false @BBALL_13170
Audio.ReportMissionAudioEventAtObject(1@, 1010)
27@ = 3

:BBALL_13170
goto @BBALL_13202

:BBALL_13177
if 
  27@ == 3
goto_if_false @BBALL_13202
27@ = 0

:BBALL_13202
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_13359
if 
  Object.IsPlayingAnim(1@, "BBALL_PICKUP_O")
goto_if_false @BBALL_13284
Object.SetAnimCurrentTime(1@, "BBALL_PICKUP_O", 8@)
goto @BBALL_13359

:BBALL_13284
if 
Object.PlayAnim(1@, "BBALL_PICKUP_O", "BSKTBALL", 1000.0, False, True)
goto_if_false @BBALL_13359
Object.SetAnimCurrentTime(1@, "BBALL_PICKUP_O", 8@)

:BBALL_13359
if 
  Char.IsPlayingAnim($scplayer, "BBALL_RUN")
goto_if_false @BBALL_13704
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_RUN")
if 
  8@ > 0.222
goto_if_false @BBALL_13527
if 
  0.74 > 8@
goto_if_false @BBALL_13487
if 
  27@ <> 4
goto_if_false @BBALL_13480
Audio.ReportMissionAudioEventAtObject(1@, 1010)
27@ = 4

:BBALL_13480
goto @BBALL_13520

:BBALL_13487
if 
  27@ <> 5
goto_if_false @BBALL_13520
Audio.ReportMissionAudioEventAtObject(1@, 1010)
27@ = 5

:BBALL_13520
goto @BBALL_13559

:BBALL_13527
if or
  27@ == 4
  27@ == 5
goto_if_false @BBALL_13559
27@ = 0

:BBALL_13559
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_13704
if 
  Object.IsPlayingAnim(1@, "BBALL_RUN_O")
goto_if_false @BBALL_13635
Object.SetAnimCurrentTime(1@, "BBALL_RUN_O", 8@)
goto @BBALL_13704

:BBALL_13635
if 
Object.PlayAnim(1@, "BBALL_RUN_O", "BSKTBALL", 8.0, True, False)
goto_if_false @BBALL_13704
Object.SetAnimCurrentTime(1@, "BBALL_RUN_O", 8@)

:BBALL_13704
if 
  Char.IsPlayingAnim($scplayer, "BBALL_SKIDSTOP_L")
goto_if_false @BBALL_13937
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_SKIDSTOP_L")
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_13937
if 
  Object.IsPlayingAnim(1@, "BBALL_SKIDSTOP_L_O")
goto_if_false @BBALL_13854
Object.SetAnimCurrentTime(1@, "BBALL_SKIDSTOP_L_O", 8@)
goto @BBALL_13937

:BBALL_13854
if 
Object.PlayAnim(1@, "BBALL_SKIDSTOP_L_O", "BSKTBALL", 6.0, False, True)
goto_if_false @BBALL_13937
Object.SetAnimCurrentTime(1@, "BBALL_SKIDSTOP_L_O", 8@)

:BBALL_13937
if 
  Char.IsPlayingAnim($scplayer, "BBALL_SKIDSTOP_R")
goto_if_false @BBALL_14170
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_SKIDSTOP_R")
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_14170
if 
  Object.IsPlayingAnim(1@, "BBALL_SKIDSTOP_R_O")
goto_if_false @BBALL_14087
Object.SetAnimCurrentTime(1@, "BBALL_SKIDSTOP_R_O", 8@)
goto @BBALL_14170

:BBALL_14087
if 
Object.PlayAnim(1@, "BBALL_SKIDSTOP_R_O", "BSKTBALL", 6.0, False, True)
goto_if_false @BBALL_14170
Object.SetAnimCurrentTime(1@, "BBALL_SKIDSTOP_R_O", 8@)

:BBALL_14170
if 
  Char.IsPlayingAnim($scplayer, "BBALL_WALKSTOP_L")
goto_if_false @BBALL_14403
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_WALKSTOP_L")
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_14403
if 
  Object.IsPlayingAnim(1@, "BBALL_WALKSTOP_L_O")
goto_if_false @BBALL_14320
Object.SetAnimCurrentTime(1@, "BBALL_WALKSTOP_L_O", 8@)
goto @BBALL_14403

:BBALL_14320
if 
Object.PlayAnim(1@, "BBALL_WALKSTOP_L_O", "BSKTBALL", 6.0, False, True)
goto_if_false @BBALL_14403
Object.SetAnimCurrentTime(1@, "BBALL_WALKSTOP_L_O", 8@)

:BBALL_14403
if 
  Char.IsPlayingAnim($scplayer, "BBALL_WALKSTOP_R")
goto_if_false @BBALL_14636
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_WALKSTOP_R")
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_14636
if 
  Object.IsPlayingAnim(1@, "BBALL_WALKSTOP_R_O")
goto_if_false @BBALL_14553
Object.SetAnimCurrentTime(1@, "BBALL_WALKSTOP_R_O", 8@)
goto @BBALL_14636

:BBALL_14553
if 
Object.PlayAnim(1@, "BBALL_WALKSTOP_R_O", "BSKTBALL", 6.0, False, True)
goto_if_false @BBALL_14636
Object.SetAnimCurrentTime(1@, "BBALL_WALKSTOP_R_O", 8@)

:BBALL_14636
if 
  Char.IsPlayingAnim($scplayer, "BBALL_WALK")
goto_if_false @BBALL_15014
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_WALK")
if 
  not Char.IsPlayingAnim($scplayer, "BBALL_RUN")
goto_if_false @BBALL_14865
if 
  8@ > 0.218
goto_if_false @BBALL_14833
if 
  0.718 > 8@
goto_if_false @BBALL_14793
if 
  27@ <> 6
goto_if_false @BBALL_14786
Audio.ReportMissionAudioEventAtObject(1@, 1010)
27@ = 6

:BBALL_14786
goto @BBALL_14826

:BBALL_14793
if 
  27@ <> 7
goto_if_false @BBALL_14826
Audio.ReportMissionAudioEventAtObject(1@, 1010)
27@ = 7

:BBALL_14826
goto @BBALL_14865

:BBALL_14833
if or
  27@ == 6
  27@ == 7
goto_if_false @BBALL_14865
27@ = 0

:BBALL_14865
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_15014
if 
  Object.IsPlayingAnim(1@, "BBALL_WALK_O")
goto_if_false @BBALL_14943
Object.SetAnimCurrentTime(1@, "BBALL_WALK_O", 8@)
goto @BBALL_15014

:BBALL_14943
if 
Object.PlayAnim(1@, "BBALL_WALK_O", "BSKTBALL", 1000.0, True, False)
goto_if_false @BBALL_15014
Object.SetAnimCurrentTime(1@, "BBALL_WALK_O", 8@)

:BBALL_15014
if 
  Char.IsPlayingAnim($scplayer, "BBALL_WALK_START")
goto_if_false @BBALL_15247
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_WALK_START")
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_15247
if 
  Object.IsPlayingAnim(1@, "BBALL_WALK_START_O")
goto_if_false @BBALL_15164
Object.SetAnimCurrentTime(1@, "BBALL_WALK_START_O", 8@)
goto @BBALL_15247

:BBALL_15164
if 
Object.PlayAnim(1@, "BBALL_WALK_START_O", "BSKTBALL", 8.0, False, True)
goto_if_false @BBALL_15247
Object.SetAnimCurrentTime(1@, "BBALL_WALK_START_O", 8@)

:BBALL_15247
if 
  Char.IsPlayingAnim($scplayer, "BBALL_DNK_LNCH")
goto_if_false @BBALL_15468
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_DNK_LNCH")
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_15468
if 
  Object.IsPlayingAnim(1@, "BBALL_DNK_LNCH_O")
goto_if_false @BBALL_15389
Object.SetAnimCurrentTime(1@, "BBALL_DNK_LNCH_O", 8@)
goto @BBALL_15468

:BBALL_15389
if 
Object.PlayAnim(1@, "BBALL_DNK_LNCH_O", "BSKTBALL", 4.0, False, True)
goto_if_false @BBALL_15468
Object.SetAnimCurrentTime(1@, "BBALL_DNK_LNCH_O", 8@)

:BBALL_15468
if 
  Char.IsPlayingAnim($scplayer, "BBALL_DNK_GLI")
goto_if_false @BBALL_15683
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_DNK_GLI")
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_15683
if 
  Object.IsPlayingAnim(1@, "BBALL_DNK_GLI_O")
goto_if_false @BBALL_15606
Object.SetAnimCurrentTime(1@, "BBALL_DNK_GLI_O", 8@)
goto @BBALL_15683

:BBALL_15606
if 
Object.PlayAnim(1@, "BBALL_DNK_GLI_O", "BSKTBALL", 1000.0, False, True)
goto_if_false @BBALL_15683
Object.SetAnimCurrentTime(1@, "BBALL_DNK_GLI_O", 8@)

:BBALL_15683
if 
  Char.IsPlayingAnim($scplayer, "BBALL_DNK")
goto_if_false @BBALL_15869
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_DNK")
if 
  0.2 > 8@
goto_if_false @BBALL_15869
if 
  Object.DoesHaveThisModel(1@, #BBALL_INGAME)
goto_if_false @BBALL_15869
if 
  Object.IsAttached(1@)
goto_if_false @BBALL_15869
if 
  Object.IsPlayingAnim(1@, "BBALL_DNK_O")
goto_if_false @BBALL_15821
goto @BBALL_15869

:BBALL_15821
if 
Object.PlayAnim(1@, "BBALL_DNK_O", "BSKTBALL", 1000.0, False, True)
goto_if_false @BBALL_15869

:BBALL_15869
return 

:BBALL_15871
if and
  Player.IsPlaying($player1)
  Streaming.HasModelLoaded(23@)
goto_if_false @BBALL_17468
$x, $y, $z = Char.GetCoordinates($scplayer)
2@, 3@, 4@ = Object.GetCoordinates(0@)
5@, 6@, 7@ = Object.GetLevelDesignCoords(0@, 3)
8@, 8@, $bb_new_camera_y = Object.GetLevelDesignCoords(0@, 0)
$bb_new_camera_y += -1.0
switch_start $bball_court_z {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BBALL_16805 {caseNum1} 1 {caseLabel1} @BBALL_16025 {caseNum2} 2 {caseLabel2} @BBALL_16220 {caseNum3} 3 {caseLabel3} @BBALL_16415 {caseNum4} 4 {caseLabel4} @BBALL_16610 {caseNum5} -1 {caseLabel5} @BBALL_16805 {caseNum6} -1 {caseLabel6} @BBALL_16805 {caseNum7} -1 {caseLabel7} @BBALL_16805

:BBALL_16025
set_var_float_to_lvar_float $bb_cam_vec_z = 2@
$bb_cam_vec_z += 0.2
set_var_float_to_var_float $bb_new_camera_x = $y
$bb_new_camera_x += 5.0
6@ += 5.0
if 
  is_float_var_greater_than_float_lvar $bb_new_camera_x > 6@
goto_if_false @BBALL_16098
set_var_float_to_lvar_float $bb_new_camera_x = 6@

:BBALL_16098
set_lvar_float_to_lvar_float 8@ = 3@
8@ += 5.0
if 
  is_float_lvar_greater_than_float_var 8@ > $bb_new_camera_x
goto_if_false @BBALL_16143
set_var_float_to_lvar_float $bb_new_camera_x = 8@

:BBALL_16143
set_lvar_float_to_lvar_float 8@ = 6@
sub_float_lvar_from_float_lvar 8@ -= 3@
8@ += -5.0
set_lvar_float_to_lvar_float 9@ = 6@
sub_float_var_from_float_lvar 9@ -= $bb_new_camera_x
div_float_lvar_by_float_lvar 9@ /= 8@
9@ *= 0.29
9@ += 0.34
goto @BBALL_16805

:BBALL_16220
set_var_float_to_var_float $bb_cam_vec_z = $x
$bb_cam_vec_z -= 5.0
set_var_float_to_lvar_float $bb_new_camera_x = 3@
$bb_new_camera_x += 0.2
5@ += -5.0
if 
  is_float_lvar_greater_than_float_var 5@ > $bb_cam_vec_z
goto_if_false @BBALL_16293
set_var_float_to_lvar_float $bb_cam_vec_z = 5@

:BBALL_16293
set_lvar_float_to_lvar_float 8@ = 2@
8@ -= 5.0
if 
  is_float_var_greater_than_float_lvar $bb_cam_vec_z > 8@
goto_if_false @BBALL_16338
set_var_float_to_lvar_float $bb_cam_vec_z = 8@

:BBALL_16338
set_lvar_float_to_lvar_float 8@ = 2@
sub_float_lvar_from_float_lvar 8@ -= 5@
8@ += -5.0
set_lvar_float_to_var_float 9@ = $bb_cam_vec_z
sub_float_lvar_from_float_lvar 9@ -= 5@
div_float_lvar_by_float_lvar 9@ /= 8@
9@ *= 0.29
9@ += 0.34
goto @BBALL_16805

:BBALL_16415
set_var_float_to_lvar_float $bb_cam_vec_z = 2@
$bb_cam_vec_z -= 0.2
set_var_float_to_var_float $bb_new_camera_x = $y
$bb_new_camera_x -= 5.0
6@ += -5.0
if 
  is_float_lvar_greater_than_float_var 6@ > $bb_new_camera_x
goto_if_false @BBALL_16488
set_var_float_to_lvar_float $bb_new_camera_x = 6@

:BBALL_16488
set_lvar_float_to_lvar_float 8@ = 3@
8@ -= 5.0
if 
  is_float_var_greater_than_float_lvar $bb_new_camera_x > 8@
goto_if_false @BBALL_16533
set_var_float_to_lvar_float $bb_new_camera_x = 8@

:BBALL_16533
set_lvar_float_to_lvar_float 8@ = 3@
sub_float_lvar_from_float_lvar 8@ -= 6@
8@ += -5.0
set_lvar_float_to_var_float 9@ = $bb_new_camera_x
sub_float_lvar_from_float_lvar 9@ -= 6@
div_float_lvar_by_float_lvar 9@ /= 8@
9@ *= 0.29
9@ += 0.34
goto @BBALL_16805

:BBALL_16610
set_var_float_to_var_float $bb_cam_vec_z = $x
$bb_cam_vec_z += 5.0
set_var_float_to_lvar_float $bb_new_camera_x = 3@
$bb_new_camera_x -= 0.2
5@ += 5.0
if 
  is_float_var_greater_than_float_lvar $bb_cam_vec_z > 5@
goto_if_false @BBALL_16683
set_var_float_to_lvar_float $bb_cam_vec_z = 5@

:BBALL_16683
set_lvar_float_to_lvar_float 8@ = 2@
8@ += 5.0
if 
  is_float_lvar_greater_than_float_var 8@ > $bb_cam_vec_z
goto_if_false @BBALL_16728
set_var_float_to_lvar_float $bb_cam_vec_z = 8@

:BBALL_16728
set_lvar_float_to_lvar_float 8@ = 5@
sub_float_lvar_from_float_lvar 8@ -= 2@
8@ += -5.0
set_lvar_float_to_lvar_float 9@ = 5@
sub_float_var_from_float_lvar 9@ -= $bb_cam_vec_z
div_float_lvar_by_float_lvar 9@ /= 8@
9@ *= 0.29
9@ += 0.34
goto @BBALL_16805

:BBALL_16805
set_var_float_to_lvar_float $dunk_slide_distance = 2@
sub_float_var_from_float_var $dunk_slide_distance -= $x
set_var_float_to_lvar_float $bb_cam_vec_x = 3@
sub_float_var_from_float_var $bb_cam_vec_x -= $y
set_var_float_to_lvar_float $bb_cam_vec_y = 4@
sub_float_var_from_float_var $bb_cam_vec_y -= $z
mult_float_var_by_float_lvar $dunk_slide_distance *= 9@
mult_float_var_by_float_lvar $bb_cam_vec_x *= 9@
mult_float_var_by_float_lvar $bb_cam_vec_y *= 9@
set_var_float_to_var_float $bb_new_camera_z = $x
add_float_var_to_float_var $bb_new_camera_z += $dunk_slide_distance
set_var_float_to_var_float $bb_new_look_x = $y
add_float_var_to_float_var $bb_new_look_x += $bb_cam_vec_x
set_var_float_to_var_float $bb_new_look_y = $z
add_float_var_to_float_var $bb_new_look_y += $bb_cam_vec_y
2@, 3@, 4@ = Object.GetLevelDesignCoords(0@, 2)
5@, 6@, 7@ = Object.GetLevelDesignCoords(0@, 3)
if 
  is_float_lvar_greater_than_float_lvar 2@ > 5@
goto_if_false @BBALL_17037
if 
  is_float_var_greater_than_float_lvar $bb_new_camera_z > 2@
goto_if_false @BBALL_17003
set_var_float_to_lvar_float $bb_new_camera_z = 2@

:BBALL_17003
if 
  is_float_lvar_greater_than_float_var 5@ > $bb_new_camera_z
goto_if_false @BBALL_17030
set_var_float_to_lvar_float $bb_new_camera_z = 5@

:BBALL_17030
goto @BBALL_17091

:BBALL_17037
if 
  is_float_var_greater_than_float_lvar $bb_new_camera_z > 5@
goto_if_false @BBALL_17064
set_var_float_to_lvar_float $bb_new_camera_z = 5@

:BBALL_17064
if 
  is_float_lvar_greater_than_float_var 2@ > $bb_new_camera_z
goto_if_false @BBALL_17091
set_var_float_to_lvar_float $bb_new_camera_z = 2@

:BBALL_17091
if 
  is_float_lvar_greater_than_float_lvar 3@ > 6@
goto_if_false @BBALL_17171
if 
  is_float_var_greater_than_float_lvar $bb_new_look_x > 3@
goto_if_false @BBALL_17137
set_var_float_to_lvar_float $bb_new_look_x = 3@

:BBALL_17137
if 
  is_float_lvar_greater_than_float_var 6@ > $bb_new_look_x
goto_if_false @BBALL_17164
set_var_float_to_lvar_float $bb_new_look_x = 6@

:BBALL_17164
goto @BBALL_17225

:BBALL_17171
if 
  is_float_var_greater_than_float_lvar $bb_new_look_x > 6@
goto_if_false @BBALL_17198
set_var_float_to_lvar_float $bb_new_look_x = 6@

:BBALL_17198
if 
  is_float_lvar_greater_than_float_var 3@ > $bb_new_look_x
goto_if_false @BBALL_17225
set_var_float_to_lvar_float $bb_new_look_x = 3@

:BBALL_17225
set_var_float_to_var_float $dunk_slide_distance = $bb_cam_vec_z
sub_float_lvar_from_float_var $dunk_slide_distance -= 10@
set_var_float_to_var_float $bb_cam_vec_x = $bb_new_camera_x
sub_float_lvar_from_float_var $bb_cam_vec_x -= 11@
set_var_float_to_var_float $bb_cam_vec_y = $bb_new_camera_y
sub_float_lvar_from_float_var $bb_cam_vec_y -= 12@
$dunk_slide_distance *= 0.25
$bb_cam_vec_x *= 0.25
$bb_cam_vec_y *= 0.25
add_float_var_to_float_lvar 10@ += $dunk_slide_distance
add_float_var_to_float_lvar 11@ += $bb_cam_vec_x
add_float_var_to_float_lvar 12@ += $bb_cam_vec_y
set_var_float_to_var_float $dunk_slide_distance = $bb_new_camera_z
sub_float_lvar_from_float_var $dunk_slide_distance -= 13@
set_var_float_to_var_float $bb_cam_vec_x = $bb_new_look_x
sub_float_lvar_from_float_var $bb_cam_vec_x -= 14@
set_var_float_to_var_float $bb_cam_vec_y = $bb_new_look_y
sub_float_lvar_from_float_var $bb_cam_vec_y -= 15@
$dunk_slide_distance *= 0.1
$bb_cam_vec_x *= 0.1
$bb_cam_vec_y *= 0.1
add_float_var_to_float_lvar 13@ += $dunk_slide_distance
add_float_var_to_float_lvar 14@ += $bb_cam_vec_x
add_float_var_to_float_lvar 15@ += $bb_cam_vec_y
Camera.SetFixedPosition(10@, 11@, 12@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(13@, 14@, 15@, SwitchType.JumpCut)

:BBALL_17468
return 

:BBALL_17470
if and
  Object.IsAttached(1@)
  Streaming.HasModelLoaded(23@)
goto_if_false @BBALL_19037
24@ = 1
if or
  17@ == 10
  17@ == 4
  17@ == 6
  17@ == 16
  17@ == 17
goto_if_false @BBALL_17551
24@ = 0

:BBALL_17551
if or
  17@ == 14
  17@ == 15
goto_if_false @BBALL_17583
24@ = 0

:BBALL_17583
if 
  24@ == 1
goto_if_false @BBALL_18663
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftStickX)
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftStickY)
goto_if_false @BBALL_18011
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
cset_var_float_to_var_int $x =# $LStickX
cset_var_float_to_var_int $y =# $LStickY
$x /= 128.0
$y /= -128.0
set_lvar_float_to_var_float 8@ = $x
mult_float_lvar_by_float_var 8@ *= $x
set_lvar_float_to_var_float 9@ = $y
mult_float_lvar_by_float_var 9@ *= $y
add_float_lvar_to_float_lvar 8@ += 9@
8@ = Math.Sqrt(8@)
$bb_new_look_z = Math.GetHeadingFromVector2D($x, $y)
if 
  $bball_frame_count == 1
goto_if_false @BBALL_17792
set_var_float_to_lvar_float $x = 13@
sub_float_lvar_from_float_var $x -= 10@
set_var_float_to_lvar_float $y = 14@
sub_float_lvar_from_float_var $y -= 11@
goto @BBALL_17862

:BBALL_17792
2@, 3@, 4@ = Camera.GetActiveCoordinates()
5@, 6@, 7@ = Camera.GetActivePointAt()
set_var_float_to_lvar_float $x = 5@
sub_float_lvar_from_float_var $x -= 2@
set_var_float_to_lvar_float $y = 6@
sub_float_lvar_from_float_var $y -= 3@
set_var_float_to_lvar_float $z = 7@
sub_float_lvar_from_float_var $z -= 4@

:BBALL_17862
9@ = Math.GetHeadingFromVector2D($x, $y)
add_float_lvar_to_float_var $bb_new_look_z += 9@
if 
  8@ > 0.3
goto_if_false @BBALL_17951
if 
  0.8 > 8@
goto_if_false @BBALL_17937
17@ = 1
goto @BBALL_17944

:BBALL_17937
17@ = 2

:BBALL_17944
goto @BBALL_18004

:BBALL_17951
if or
  18@ == 2
  18@ == 1
  17@ == 2
  17@ == 1
goto_if_false @BBALL_18004
17@ = 3
18@ = 0

:BBALL_18004
goto @BBALL_18064

:BBALL_18011
if or
  18@ == 2
  18@ == 1
  17@ == 2
  17@ == 1
goto_if_false @BBALL_18064
17@ = 3
18@ = 0

:BBALL_18064
if 
  21@ == 0
goto_if_false @BBALL_18558
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BBALL_18519
if 
  18@ <> 6
goto_if_false @BBALL_18512
$x, $y, $z = Object.GetLevelDesignCoords(0@, 0)
if 
  Player.IsPlaying($player1)
goto_if_false @BBALL_18163
2@, 3@, 4@ = Char.GetCoordinates($scplayer)

:BBALL_18163
set_lvar_float_to_var_float 5@ = $x
sub_float_lvar_from_float_lvar 5@ -= 2@
set_lvar_float_to_var_float 6@ = $y
sub_float_lvar_from_float_lvar 6@ -= 3@
$x, $y, $z = Object.GetCoordinates(0@)
2@, 3@, 4@ = Object.GetOffsetInWorldCoords(0@, 0.0, -1.0, 0.0)
set_lvar_float_to_lvar_float 8@ = 2@
sub_float_var_from_float_lvar 8@ -= $x
set_lvar_float_to_lvar_float 9@ = 3@
sub_float_var_from_float_lvar 9@ -= $y
set_lvar_float_to_lvar_float 2@ = 8@
set_lvar_float_to_lvar_float 3@ = 9@
8@ = Math.GetAngleBetween2DVectors(5@, 6@, 2@, 3@)
if 
  90.0 > 8@
goto_if_false @BBALL_18512
24@ = 0
if 
  18@ == 2
goto_if_false @BBALL_18466
8@ = Stat.GetFloat(StatId.Fat)
if 
  400.0 > 8@
goto_if_false @BBALL_18466
$x, $y, $z = Char.GetCoordinates($scplayer)
2@, 3@, 4@ = Object.GetCoordinates(0@)
8@ = Math.GetDistanceBetweenCoords3D($x, $y, $z, 2@, 3@, 4@)
if and
  4.0 > 8@
  8@ > 1.0
goto_if_false @BBALL_18466
24@ = 1

:BBALL_18466
if 
  24@ == 1
goto_if_false @BBALL_18498
17@ = 16
goto @BBALL_18505

:BBALL_18498
17@ = 4

:BBALL_18505
21@ = 1

:BBALL_18512
goto @BBALL_18551

:BBALL_18519
if and
  18@ == 4
  17@ <> 6
goto_if_false @BBALL_18551
21@ = 1

:BBALL_18551
goto @BBALL_18558

:BBALL_18558
if and
  17@ == 11
  18@ == 11
goto_if_false @BBALL_18607
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @BBALL_18607
17@ = 14

:BBALL_18607
if and
  17@ == 11
  18@ == 11
goto_if_false @BBALL_18656
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @BBALL_18656
17@ = 15

:BBALL_18656
goto @BBALL_19030

:BBALL_18663
if 
  21@ == 1
goto_if_false @BBALL_19030
if or
  17@ == 4
  17@ == 6
goto_if_false @BBALL_19006
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BBALL_18870
21@ = 0
if 
  Char.IsPlayingAnim($scplayer, "BBALL_JUMP_SHOT")
goto_if_false @BBALL_18853
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_JUMP_SHOT")
if 
  is_float_lvar_greater_than_float_var 8@ > $release_time
goto_if_false @BBALL_18830
set_var_float_to_lvar_float $char_obj = 8@
sub_float_var_from_float_var $char_obj -= $release_time
goto @BBALL_18846

:BBALL_18830
set_var_float_to_var_float $char_obj = $release_time
sub_float_lvar_from_float_var $char_obj -= 8@

:BBALL_18846
goto @BBALL_18863

:BBALL_18853
$char_obj = 1.0

:BBALL_18863
goto @BBALL_18999

:BBALL_18870
if 
  Char.IsPlayingAnim($scplayer, "BBALL_JUMP_SHOT")
goto_if_false @BBALL_18989
8@ = Char.GetAnimCurrentTime($scplayer, "BBALL_JUMP_SHOT")
set_lvar_float_to_var_float 9@ = $release_time
9@ += 0.1
if 
  is_float_lvar_greater_than_float_lvar 8@ > 9@
goto_if_false @BBALL_18982
$char_obj = 1.0
21@ = 0

:BBALL_18982
goto @BBALL_18999

:BBALL_18989
$char_obj = 1.0

:BBALL_18999
goto @BBALL_19030

:BBALL_19006
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BBALL_19030
21@ = 0

:BBALL_19030
goto @BBALL_19177

:BBALL_19037
if 
  18@ == 12
goto_if_false @BBALL_19177
if 
  21@ == 0
goto_if_false @BBALL_19153
if 
  Object.DoesExist(1@)
goto_if_false @BBALL_19146
$x, $y, $z = Object.GetCoordinates(1@)
if 
  Char.LocateOnFootObject3D($scplayer, 1@, 0.7, 0.7, 2.0, False)
goto_if_false @BBALL_19146
17@ = 10

:BBALL_19146
goto @BBALL_19177

:BBALL_19153
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BBALL_19177
21@ = 0

:BBALL_19177
24@ = 0
if or
  17@ == 1
  17@ == 2
  17@ == 8
  17@ == 4
  17@ == 6
goto_if_false @BBALL_19237
24@ = 1

:BBALL_19237
if or
  17@ == 16
  17@ == 17
goto_if_false @BBALL_19269
24@ = 1

:BBALL_19269
if 
  24@ == 1
goto_if_false @BBALL_19564
if 
  not Char.IsDead($scplayer)
goto_if_false @BBALL_19311
29@ = Char.GetHeading($scplayer)

:BBALL_19311
if 
  $bb_new_look_z > 360.0
goto_if_false @BBALL_19349
$bb_new_look_z += -360.0
goto @BBALL_19311

:BBALL_19349
if 
  -360.0 > $bb_new_look_z
goto_if_false @BBALL_19387
$bb_new_look_z += 360.0
goto @BBALL_19349

:BBALL_19387
set_lvar_float_to_var_float 30@ = $bb_new_look_z
sub_float_lvar_from_float_lvar 30@ -= 29@
if 
  30@ > 180.0
goto_if_false @BBALL_19434
30@ += -360.0

:BBALL_19434
if 
  -180.0 > 30@
goto_if_false @BBALL_19465
30@ += 360.0

:BBALL_19465
30@ /= 10.0
add_timed_float_lvar_to_float_lvar 29@ +=@ 30@
if 
  not Char.IsDead($scplayer)
goto_if_false @BBALL_19564
if and
  not Char.IsPlayingAnim($scplayer, "BBALL_SKIDSTOP_L")
  not Char.IsPlayingAnim($scplayer, "BBALL_SKIDSTOP_R")
goto_if_false @BBALL_19564
Char.SetHeading($scplayer, 29@)

:BBALL_19564
if or
  Char.IsPlayingAnim($scplayer, "BBALL_DNK_GLI")
  Char.IsPlayingAnim($scplayer, "BBALL_DNK")
  Char.IsPlayingAnim($scplayer, "BBALL_DNK_LND")
goto_if_false @BBALL_20130
if 
  Object.DoesExist($dumb_show_stat)
goto_if_false @BBALL_20130
$x, $y, $z = Object.GetCoordinates($dumb_show_stat)
8@ = Math.GetDistanceBetweenCoords3D($x, $y, $z, $p_desired_heading, $bb_desired_x, $bb_desired_y)
if 
  8@ > 0.07
goto_if_false @BBALL_19963
set_lvar_float_to_var_float 2@ = $p_desired_heading
sub_float_var_from_float_lvar 2@ -= $x
set_lvar_float_to_var_float 3@ = $bb_desired_x
sub_float_var_from_float_lvar 3@ -= $y
set_lvar_float_to_var_float 4@ = $bb_desired_y
sub_float_var_from_float_lvar 4@ -= $z
div_float_lvar_by_float_lvar 2@ /= 8@
div_float_lvar_by_float_lvar 3@ /= 8@
div_float_lvar_by_float_lvar 4@ /= 8@
if 
  8@ > 0.065
goto_if_false @BBALL_19932
2@ *= 0.065
3@ *= 0.065
4@ *= 0.065
add_timed_float_lvar_to_float_var $x +=@ 2@
add_timed_float_lvar_to_float_var $y +=@ 3@
add_timed_float_lvar_to_float_var $z +=@ 4@
Object.SetCoordinates($dumb_show_stat, $x, $y, $z)
8@ = Math.GetDistanceBetweenCoords3D($x, $y, $z, $p_desired_heading, $bb_desired_x, $bb_desired_y)
set_var_float_to_lvar_float $bb_desired_z = 8@
div_float_var_by_float_var $bb_desired_z /= $run_with_ball_start_position
$bb_desired_z += -1.0
$bb_desired_z *= -1.0
goto @BBALL_19956

:BBALL_19932
Object.SetCoordinates($dumb_show_stat, $p_desired_heading, $bb_desired_x, $bb_desired_y)
$bb_desired_z = 1.0

:BBALL_19956
goto @BBALL_19987

:BBALL_19963
Object.SetCoordinates($dumb_show_stat, $p_desired_heading, $bb_desired_x, $bb_desired_y)
$bb_desired_z = 1.0

:BBALL_19987
if 
  Char.IsPlayingAnim($scplayer, "BBALL_DNK_GLI")
goto_if_false @BBALL_20130
if and
  $bb_desired_z >= 0.0
  1.0 >= $bb_desired_z
goto_if_false @BBALL_20130
Char.SetAnimCurrentTime($scplayer, "BBALL_DNK_GLI", $bb_desired_z)
if 
  Object.IsPlayingAnim(1@, "BBALL_DNK_GLI_O")
goto_if_false @BBALL_20130
Object.SetAnimCurrentTime(1@, "BBALL_DNK_GLI_O", $bb_desired_z)

:BBALL_20130
return 
set_var_float_to_var_float $x = $dunc_glide_percent
sub_float_var_from_float_var $x -= $intrp_dest_z
set_var_float_to_var_float $y = $intrp_dest_x
sub_float_var_from_float_var $y -= $intrp_start_x
set_var_float_to_var_float $z = $intrp_dest_y
sub_float_var_from_float_var $z -= $intrp_start_y
mult_float_var_by_float_var $x *= $intrp_start_z
mult_float_var_by_float_var $y *= $intrp_start_z
mult_float_var_by_float_var $z *= $intrp_start_z
add_float_var_to_float_var $intrp_dest_z += $x
add_float_var_to_float_var $intrp_start_x += $y
add_float_var_to_float_var $intrp_start_y += $z
return 

:BBALL_20230
$x, $y, $z = Camera.GetDebugCoordinates()
if 
  Object.DoesExist(0@)
goto_if_false @BBALL_20279
2@, 3@, 4@ = Object.GetCoordinates(0@)
$heading = Object.GetHeading(0@)

:BBALL_20279
$heading *= -1.0
8@ = Math.Cos($heading)
9@ = Math.Sin($heading)
set_var_float_to_var_float $intrp_speed = $x
sub_float_lvar_from_float_var $intrp_speed -= 2@
set_var_float_to_var_float $bb_vec_x = $y
sub_float_lvar_from_float_var $bb_vec_x -= 3@
set_var_float_to_var_float $bb_vec_y = $z
sub_float_lvar_from_float_var $bb_vec_y -= 4@
set_var_float_to_var_float $bb_vec_z = $intrp_speed
mult_float_var_by_float_lvar $bb_vec_z *= 8@
set_var_float_to_var_float $bb_vec2_y = $bb_vec_x
mult_float_var_by_float_lvar $bb_vec2_y *= 9@
sub_float_var_from_float_var $bb_vec_z -= $bb_vec2_y
set_var_float_to_var_float $bb_vec2_x = $intrp_speed
mult_float_var_by_float_lvar $bb_vec2_x *= 9@
set_var_float_to_var_float $bb_vec2_y = $bb_vec_x
mult_float_var_by_float_lvar $bb_vec2_y *= 8@
add_float_var_to_float_var $bb_vec2_x += $bb_vec2_y
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("FIXED_CAMERA_POSITION - OFFSET FROM BBHOOP = ")
save_float_to_debug_file $bb_vec_z
save_float_to_debug_file $bb_vec2_x
save_float_to_debug_file $bb_vec_y
$x, $y, $z = Camera.GetDebugPointAt()
set_var_float_to_var_float $intrp_speed = $x
sub_float_lvar_from_float_var $intrp_speed -= 2@
set_var_float_to_var_float $bb_vec_x = $y
sub_float_lvar_from_float_var $bb_vec_x -= 3@
set_var_float_to_var_float $bb_vec_y = $z
sub_float_lvar_from_float_var $bb_vec_y -= 4@
set_var_float_to_var_float $bb_vec_z = $intrp_speed
mult_float_var_by_float_lvar $bb_vec_z *= 8@
set_var_float_to_var_float $bb_vec2_y = $bb_vec_x
mult_float_var_by_float_lvar $bb_vec2_y *= 9@
sub_float_var_from_float_var $bb_vec_z -= $bb_vec2_y
set_var_float_to_var_float $bb_vec2_x = $intrp_speed
mult_float_var_by_float_lvar $bb_vec2_x *= 9@
set_var_float_to_var_float $bb_vec2_y = $bb_vec_x
mult_float_var_by_float_lvar $bb_vec2_y *= 8@
add_float_var_to_float_var $bb_vec2_x += $bb_vec2_y
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CAMERA_POINT_AT -       OFFSET FROM BBHOOP = ")
save_float_to_debug_file $bb_vec_z
save_float_to_debug_file $bb_vec2_x
save_float_to_debug_file $bb_vec_y
return 
terminate_this_script 

//-------------External script 16 (VIDPOK)---------------

:VIDPOK
script_name 'VIDPOK'
3@ = 0
4@ = 0
5@ = 0
6@ = 0
7@ = 0
if 
  4@ == -1
goto_if_false @VIDPOK_110
0@ = Object.Create(#KMB_ROCK, 0.0, 0.0, 0.0)
$hand_result = Object.Create(#KMB_ROCK, 0.0, 0.0, 0.0)

:VIDPOK_110
if 
  Player.IsPlaying($player1)
goto_if_false @VIDPOK_134
12@ = Player.StoreScore($player1)

:VIDPOK_134
if 
  100 > 12@
goto_if_false @VIDPOK_166
13@ = 5
goto @VIDPOK_309

:VIDPOK_166
if 
  1000 > 12@
goto_if_false @VIDPOK_199
13@ = 6
goto @VIDPOK_309

:VIDPOK_199
if 
  10000 > 12@
goto_if_false @VIDPOK_232
13@ = 7
goto @VIDPOK_309

:VIDPOK_232
if 
  50000 > 12@
goto_if_false @VIDPOK_267
13@ = 8
goto @VIDPOK_309

:VIDPOK_267
if 
  100000 > 12@
goto_if_false @VIDPOK_302
13@ = 9
goto @VIDPOK_309

:VIDPOK_302
13@ = 10

:VIDPOK_309
12@ = Math.RandomIntInRange(0, 13@)
switch_start 12@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_591 {caseNum1} 0 {caseLabel1} @VIDPOK_447 {caseNum2} 1 {caseLabel2} @VIDPOK_461 {caseNum3} 2 {caseLabel3} @VIDPOK_475 {caseNum4} 3 {caseLabel4} @VIDPOK_489 {caseNum5} 4 {caseLabel5} @VIDPOK_503 {caseNum6} 5 {caseLabel6} @VIDPOK_517 {caseNum7} 6 {caseLabel7} @VIDPOK_531
switch_continued 7 {caseLabel1} @VIDPOK_546 {caseNum2} 8 {caseLabel2} @VIDPOK_561 {caseNum3} 9 {caseLabel3} @VIDPOK_576 {caseNum4} -1 {caseLabel4} @VIDPOK_591 {caseNum5} -1 {caseLabel5} @VIDPOK_591 {caseNum6} -1 {caseLabel6} @VIDPOK_591 {caseNum7} -1 {caseLabel7} @VIDPOK_591 {caseNum8} -1 {caseLabel8} @VIDPOK_591 {caseNum9} -1 {caseLabel9} @VIDPOK_591

:VIDPOK_447
1@ = 1
goto @VIDPOK_591

:VIDPOK_461
1@ = 5
goto @VIDPOK_591

:VIDPOK_475
1@ = 10
goto @VIDPOK_591

:VIDPOK_489
1@ = 25
goto @VIDPOK_591

:VIDPOK_503
1@ = 50
goto @VIDPOK_591

:VIDPOK_517
1@ = 100
goto @VIDPOK_591

:VIDPOK_531
1@ = 500
goto @VIDPOK_591

:VIDPOK_546
1@ = 1000
goto @VIDPOK_591

:VIDPOK_561
1@ = 5000
goto @VIDPOK_591

:VIDPOK_576
1@ = 10000
goto @VIDPOK_591

:VIDPOK_591
wait 0
if 
  Object.DoesExist(0@)
goto_if_false @VIDPOK_1657
if 
  $hand_result == 0
goto_if_false @VIDPOK_1569
if 
  Player.IsPlaying($player1)
goto_if_false @VIDPOK_1533
if 
  $fFunTemp == 0
goto_if_false @VIDPOK_1497
if 
  Char.LocateOnFootObject2D($scplayer, 0@, 5.0, 5.0, False)
goto_if_false @VIDPOK_1461
12@ = 0
13@ = Object.GetModel(0@)
19@, 20@, 21@, 22@, 23@, 24@ = Streaming.GetModelDimensions(13@)
set_lvar_float_to_lvar_float 15@ = 22@
sub_float_lvar_from_float_lvar 15@ -= 19@
if 
  15@ > 4.0
goto_if_false @VIDPOK_1166
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, -1.0, 0.0)
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.3, 0.3, 1.5, False)
goto_if_false @VIDPOK_847
12@ = 1

:VIDPOK_847
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, -0.838, -1.0, 0.0)
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.3, 0.3, 1.5, False)
goto_if_false @VIDPOK_925
12@ = 1

:VIDPOK_925
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, -1.676, -1.0, 0.0)
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.3, 0.3, 1.5, False)
goto_if_false @VIDPOK_1003
12@ = 1

:VIDPOK_1003
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.838, -1.0, 0.0)
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.3, 0.3, 1.5, False)
goto_if_false @VIDPOK_1081
12@ = 1

:VIDPOK_1081
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 1.676, -1.0, 0.0)
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.3, 0.3, 1.5, False)
goto_if_false @VIDPOK_1159
12@ = 1

:VIDPOK_1159
goto @VIDPOK_1244

:VIDPOK_1166
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, -1.0, 0.0)
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.3, 0.3, 1.5, False)
goto_if_false @VIDPOK_1244
12@ = 1

:VIDPOK_1244
if 
  12@ == 1
goto_if_false @VIDPOK_1427
if 
  $vp_cross_is_pressed == 0
goto_if_false @VIDPOK_1396
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @VIDPOK_1353
if 
  2@ == 1
goto_if_false @VIDPOK_1324
Text.ClearHelp
2@ = 0

:VIDPOK_1324
3@ = 0
4@ = 0
set_var_int_to_lvar_int $hand_result = 0@
goto @VIDPOK_1389

:VIDPOK_1353
if 
  2@ == 0
goto_if_false @VIDPOK_1389
Text.PrintHelpForever('VP01')
2@ = 1

:VIDPOK_1389
goto @VIDPOK_1420

:VIDPOK_1396
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @VIDPOK_1420
$vp_cross_is_pressed = 0

:VIDPOK_1420
goto @VIDPOK_1454

:VIDPOK_1427
if 
  2@ == 1
goto_if_false @VIDPOK_1454
Text.ClearHelp
2@ = 0

:VIDPOK_1454
goto @VIDPOK_1490

:VIDPOK_1461
if 
  2@ == 1
goto_if_false @VIDPOK_1488
Text.ClearHelp
2@ = 0

:VIDPOK_1488
terminate_this_script 

:VIDPOK_1490
goto @VIDPOK_1526

:VIDPOK_1497
if 
  2@ == 1
goto_if_false @VIDPOK_1524
Text.ClearHelp
2@ = 0

:VIDPOK_1524
terminate_this_script 

:VIDPOK_1526
goto @VIDPOK_1562

:VIDPOK_1533
if 
  2@ == 1
goto_if_false @VIDPOK_1560
Text.ClearHelp
2@ = 0

:VIDPOK_1560
terminate_this_script 

:VIDPOK_1562
goto @VIDPOK_1650

:VIDPOK_1569
if 
  is_int_var_equal_to_int_lvar $hand_result == 0@
goto_if_false @VIDPOK_1650
if 
  Player.IsPlaying($player1)
goto_if_false @VIDPOK_1650
if 
  7@ == 0
goto_if_false @VIDPOK_1636
gosub @VIDPOK_1695
goto @VIDPOK_1650

:VIDPOK_1636
gosub @VIDPOK_34957
$hand_result = 0

:VIDPOK_1650
goto @VIDPOK_1686

:VIDPOK_1657
if 
  2@ == 1
goto_if_false @VIDPOK_1684
Text.ClearHelp
2@ = 0

:VIDPOK_1684
terminate_this_script 

:VIDPOK_1686
goto @VIDPOK_591
return 

:VIDPOK_1695
if 
is_ps2_keyboard_key_pressed 44
goto_if_false @VIDPOK_1717
25@ = 1

:VIDPOK_1717
if 
  25@ == 1
goto_if_false @VIDPOK_1801
set_var_int_to_lvar_int $8902 = 3@
set_var_int_to_lvar_int $VIDPOK_view_debug = 4@
view_integer_variable $8902 {_p2} "M_STAGE"
view_integer_variable $VIDPOK_view_debug {_p2} "M_GOALS"
view_integer_variable $active_vidpok_machine {_p2} "HIGH_CARDS_HELD"

:VIDPOK_1801
8@ += 1
if 
  8@ > 9
goto_if_false @VIDPOK_1833
8@ = 0

:VIDPOK_1833
9@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 11@ = 9@
sub_int_lvar_from_int_lvar 11@ -= 10@
set_lvar_int_to_lvar_int 10@ = 9@
if 
  3@ == 0
goto_if_false @VIDPOK_4544
if 
  4@ == 0
goto_if_false @VIDPOK_3662
Game.SetMinigameInProgress(True)
if 
  Object.DoesExist(0@)
goto_if_false @VIDPOK_1926
$heading = Object.GetHeading(0@)

:VIDPOK_1926
Player.SetControl($player1, False)
Task.AchieveHeading($scplayer, $heading)
Hud.Display(False)
$8904 = 200
$vp_edit_counter[0] = 529.0
$8915[0] = 57.0
$vp_edit_counter[1] = 565.0
$8915[1] = 384.0
$vp_edit_counter[2] = 527.0
$8915[2] = 133.0
$vp_edit_counter[3] = 323.0
$8915[3] = 291.0
$vp_edit_counter[4] = 180.0
$8915[4] = 413.0
$vp_edit_counter[5] = 79.0
$8915[5] = 34.0
$vp_edit_counter[6] = 531.0
$8915[6] = 79.0
$vp_edit_counter[7] = 527.0
$8915[7] = 157.0
$vp_initial_stake[0] = 122.0
$8877[0] = 314.0
$vp_initial_stake[1] = 222.0
$8877[1] = 314.0
$vp_initial_stake[2] = 320.0
$8877[2] = 314.0
$vp_initial_stake[3] = 419.0
$8877[3] = 314.0
$vp_initial_stake[4] = 517.0
$8877[4] = 314.0
$vp_card_height = 91.0
$8923 = 137.0
$8892[0] = 33.0
$8892[1] = 61.0
$8892[2] = 76.0
$8892[3] = 92.0
$8892[4] = 108.0
$8892[5] = 124.0
$8892[6] = 140.0
$8892[7] = 156.0
$8892[8] = 172.0
$8892[9] = 188.0
$deal_y[0] = 86.0
$deal_y[1] = 239.0
$deal_y[2] = 286.0
$deal_y[3] = 330.0
$deal_y[4] = 378.0
$deal_y[5] = 450.0
$vp_card_width = -86.0
$vp_hold_button_offset = 49.0
$vp_hold_width = 18.0
$8882 = 123.0
$bet_one_x = 401.0
$vp_deal_height = 81.0
$vp_bet_one_width = 18.0
$bet_one_y = 222.0
$deal_x = 401.0
$vp_border_height = 87.0
$vp_deal_width = 18.0
$vp_hold_height = 4.0
$vp_bet_one_height[0] = 384.0
$8944[0] = 131.0
$8953[0] = 2.0
$8962[0] = 152.0
$vp_bet_one_height[1] = 458.0
$8944[1] = 131.0
$8953[1] = 2.0
$8962[1] = 154.0
$vp_bet_one_height[2] = 267.0
$8944[2] = 207.0
$8953[2] = 382.0
$8962[2] = 2.0
$vp_bet_one_height[3] = 77.0
$8944[3] = 131.0
$8953[3] = 2.0
$8962[3] = 152.0
$vp_bet_one_height[4] = 267.0
$8944[4] = 54.0
$8953[4] = 383.0
$8962[4] = 2.0
$vp_bet_one_height[5] = 199.0
$8944[5] = 131.0
$8953[5] = 2.0
$8962[5] = 152.0
$vp_bet_one_height[6] = 246.0
$8944[6] = 131.0
$8953[6] = 2.0
$8962[6] = 152.0
$vp_bet_one_height[7] = 292.0
$8944[7] = 131.0
$8953[7] = 2.0
$8962[7] = 153.0
$vp_bet_one_height[8] = 338.0
$8944[8] = 131.0
$8953[8] = 2.0
$8962[8] = 153.0
$8971[0] = 0.82
$8977[0] = 3.02
$8983[0] = 128
$8989[0] = 0
$8995[0] = 0
$9001[0] = 1
$9007[0] = 1
$9013[0] = 1
set_var_int_to_var_int $9019[0] = $8904
set_var_int_to_var_int $9025[0] = $8904
$9031[0] = 0
$8971[1] = 0.52
$8977[1] = 2.39
$8983[1] = 128
$8989[1] = 0
$8995[1] = 0
$9001[1] = 1
$9007[1] = 0
$9013[1] = 1
set_var_int_to_var_int $9019[1] = $8904
set_var_int_to_var_int $9025[1] = $8904
$9031[1] = 0
$8971[2] = 0.36
$8977[2] = 1.53
set_var_int_to_var_int $8983[2] = $8904
set_var_int_to_var_int $8989[2] = $8904
$8995[2] = 0
$9001[2] = 1
$9007[2] = 0
$9013[2] = 1
$9019[2] = 0
$9025[2] = 0
$9031[2] = 0
$8971[3] = 0.36
$8977[3] = 1.72
set_var_int_to_var_int $8983[3] = $8904
set_var_int_to_var_int $8989[3] = $8904
$8995[3] = 0
$9001[3] = 1
$9007[3] = 0
$9013[3] = 1
$9019[3] = 0
$9025[3] = 0
$9031[3] = 0
$8971[4] = 0.42
$8977[4] = 1.6
set_var_int_to_var_int $8983[4] = $8904
set_var_int_to_var_int $8989[4] = $8904
$8995[4] = 0
$9001[4] = 1
$9007[4] = 0
$9013[4] = 1
$9019[4] = 0
$9025[4] = 0
$9031[4] = 0
$8971[5] = 0.44
$8977[5] = 1.35
set_var_int_to_var_int $8983[5] = $8904
set_var_int_to_var_int $8989[5] = $8904
$8995[5] = 0
$9001[5] = 1
$9007[5] = 1
$9013[5] = 1
$9019[5] = 0
$9025[5] = 0
$9031[5] = 0
$TILE_WIDTH = 81.0
$vp_selected_colour_direction = 63.0
$vp_tile_type = 268.0
$vp_table_x = 130.0
$vp_table_y = 384.0
$vp_table_width = 152.0
$vp_table_height[0] = 222.0
$9048[0] = 130.0
$9053[0] = 49.0
$9058[0] = 152.0
$vp_table_height[1] = 269.0
$9048[1] = 130.0
$9053[1] = 46.0
$9058[1] = 152.0
$vp_table_height[2] = 314.0
$9048[2] = 130.0
$9053[2] = 48.0
$9058[2] = 152.0
$vp_table_height[3] = 360.0
$9048[3] = 130.0
$9053[3] = 46.0
$9058[3] = 152.0
$vp_table_height[4] = 421.0
$9048[4] = 130.0
$9053[4] = 72.0
$9058[4] = 152.0
$9037 = 2.5
4@ += 1

:VIDPOK_3662
if 
  4@ == 1
goto_if_false @VIDPOK_3694
Camera.DoFade(500, Fade.Out)
4@ += 1

:VIDPOK_3694
if 
  4@ == 2
goto_if_false @VIDPOK_3732
if 
  not Camera.GetFadingStatus
goto_if_false @VIDPOK_3732
4@ += 1

:VIDPOK_3732
if 
  4@ == 3
goto_if_false @VIDPOK_4505
Text.UseCommands(True)
Txd.LoadDictionary('LD_POKE')
Txd.LoadSprite(1, "CD1C")
Txd.LoadSprite(2, "CD2C")
Txd.LoadSprite(3, "CD3C")
Txd.LoadSprite(4, "CD4C")
Txd.LoadSprite(5, "CD5C")
Txd.LoadSprite(6, "CD6C")
Txd.LoadSprite(7, "CD7C")
Txd.LoadSprite(8, "CD8C")
Txd.LoadSprite(9, "CD9C")
Txd.LoadSprite(10, "CD10C")
Txd.LoadSprite(11, "CD11C")
Txd.LoadSprite(12, "CD12C")
Txd.LoadSprite(13, "CD13C")
Txd.LoadSprite(14, "CD1D")
Txd.LoadSprite(15, "CD2D")
Txd.LoadSprite(16, "CD3D")
Txd.LoadSprite(17, "CD4D")
Txd.LoadSprite(18, "CD5D")
Txd.LoadSprite(19, "CD6D")
Txd.LoadSprite(20, "CD7D")
Txd.LoadSprite(21, "CD8D")
Txd.LoadSprite(22, "CD9D")
Txd.LoadSprite(23, "CD10D")
Txd.LoadSprite(24, "CD11D")
Txd.LoadSprite(25, "CD12D")
Txd.LoadSprite(26, "CD13D")
Txd.LoadSprite(27, "CD1S")
Txd.LoadSprite(28, "CD2S")
Txd.LoadSprite(29, "CD3S")
Txd.LoadSprite(30, "CD4S")
Txd.LoadSprite(31, "CD5S")
Txd.LoadSprite(32, "CD6S")
Txd.LoadSprite(33, "CD7S")
Txd.LoadSprite(34, "CD8S")
Txd.LoadSprite(35, "CD9S")
Txd.LoadSprite(36, "CD10S")
Txd.LoadSprite(37, "CD11S")
Txd.LoadSprite(38, "CD12S")
Txd.LoadSprite(39, "CD13S")
Txd.LoadSprite(40, "CD1H")
Txd.LoadSprite(41, "CD2H")
Txd.LoadSprite(42, "CD3H")
Txd.LoadSprite(43, "CD4H")
Txd.LoadSprite(44, "CD5H")
Txd.LoadSprite(45, "CD6H")
Txd.LoadSprite(46, "CD7H")
Txd.LoadSprite(47, "CD8H")
Txd.LoadSprite(48, "CD9H")
Txd.LoadSprite(49, "CD10H")
Txd.LoadSprite(50, "CD11H")
Txd.LoadSprite(51, "CD12H")
Txd.LoadSprite(52, "CD13H")
Txd.LoadSprite(53, "CDBACK")
Txd.LoadSprite(54, "ADDCOIN")
Txd.LoadSprite(57, "DEAL")
Txd.LoadSprite(60, "HOLDOFF")
Txd.LoadSprite(61, "HOLDMID")
Txd.LoadSprite(62, "HOLDON")
Txd.LoadSprite(63, "TVCORN")
Txd.LoadSprite(64, "BACKRED")
Txd.LoadSprite(65, "BACKCYAN")
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1800)

:VIDPOK_4420
if 
  not Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @VIDPOK_4446
wait 0
goto @VIDPOK_4420

:VIDPOK_4446
if 
  Player.IsPlaying($player1)
goto_if_false @VIDPOK_4492
12@ = Player.StoreScore($player1)
gosub @VIDPOK_34793
add_int_var_to_int_lvar 12@ += $bj_payout
$bb_temp_float3 = 1

:VIDPOK_4492
Camera.DoFade(0, Fade.In)
4@ = 99

:VIDPOK_4505
if 
  4@ == 99
goto_if_false @VIDPOK_4544
$deal_value = 0
3@ += 1
4@ = 0

:VIDPOK_4544
if 
  3@ == 1
goto_if_false @VIDPOK_5712
if 
  4@ == 0
goto_if_false @VIDPOK_4727
$bet_one_value = 2
$8841 = 2
12@ = 0

:VIDPOK_4601
if 
  5 > 12@
goto_if_false @VIDPOK_4655
$no_of_coins(12@,5i) = 0
$8836(12@,5i) = 0
12@ += 1
goto @VIDPOK_4601

:VIDPOK_4655
12@ = Player.StoreScore($player1)
gosub @VIDPOK_34793
add_int_var_to_int_lvar 12@ += $bj_payout
set_lvar_int_to_var_int 13@ = $bb_temp_float3
mult_int_lvar_by_int_lvar 13@ *= 1@
if 
  is_int_lvar_greater_than_int_lvar 13@ > 12@
goto_if_false @VIDPOK_4720
$bb_temp_float3 = 1

:VIDPOK_4720
4@ += 1

:VIDPOK_4727
if 
  4@ == 1
goto_if_false @VIDPOK_5237
if 
  $deal_value == 0
goto_if_false @VIDPOK_4784
$8841 = 3
$bet_one_value = 2
goto @VIDPOK_4798

:VIDPOK_4784
$8841 = 2
$bet_one_value = 3

:VIDPOK_4798
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
  $LStickX > 64
goto_if_false @VIDPOK_4916
if 
  $vp_triangle_is_pressed == 0
goto_if_false @VIDPOK_4909
if 
  $deal_value == 0
goto_if_false @VIDPOK_4888
$deal_value = 1
goto @VIDPOK_4895

:VIDPOK_4888
$deal_value = 0

:VIDPOK_4895
$vp_triangle_is_pressed += 1
goto @VIDPOK_5237

:VIDPOK_4909
goto @VIDPOK_5050

:VIDPOK_4916
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  -64 > $LStickX
goto_if_false @VIDPOK_5018
if 
  $vp_triangle_is_pressed == 0
goto_if_false @VIDPOK_5011
if 
  $deal_value == 1
goto_if_false @VIDPOK_4990
$deal_value = 0
goto @VIDPOK_4997

:VIDPOK_4990
$deal_value = 1

:VIDPOK_4997
$vp_triangle_is_pressed += 1
goto @VIDPOK_5237

:VIDPOK_5011
goto @VIDPOK_5050

:VIDPOK_5018
if and
  $LStickX > -64
  64 > $LStickX
goto_if_false @VIDPOK_5050
$vp_triangle_is_pressed = 0

:VIDPOK_5050
if 
  $high_cards_held == 0
goto_if_false @VIDPOK_5213
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @VIDPOK_5206
if 
  $deal_value == 0
goto_if_false @VIDPOK_5151
$high_cards_held += 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1026)
4@ += 1
goto @VIDPOK_5237
goto @VIDPOK_5206

:VIDPOK_5151
$high_cards_held += 1
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1026)
$bet_one_value = 2
TIMERA = 0
4@ += 3
goto @VIDPOK_5237

:VIDPOK_5206
goto @VIDPOK_5237

:VIDPOK_5213
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @VIDPOK_5237
$high_cards_held = 0

:VIDPOK_5237
if 
  4@ == 2
goto_if_false @VIDPOK_5373
if 
  5 > $bb_temp_float3
goto_if_false @VIDPOK_5287
$bb_temp_float3 += 1
goto @VIDPOK_5294

:VIDPOK_5287
$bb_temp_float3 = 1

:VIDPOK_5294
set_lvar_int_to_var_int 12@ = $bb_temp_float3
mult_int_lvar_by_int_lvar 12@ *= 1@
13@ = Player.StoreScore($player1)
gosub @VIDPOK_34793
add_int_var_to_int_lvar 13@ += $bj_payout
if 
  is_int_lvar_greater_than_int_lvar 12@ > 13@
goto_if_false @VIDPOK_5359
$bb_temp_float3 = 1

:VIDPOK_5359
TIMERA = 0
4@ += 1

:VIDPOK_5373
if 
  4@ == 3
goto_if_false @VIDPOK_5398
4@ = 1

:VIDPOK_5398
if 
  4@ == 4
goto_if_false @VIDPOK_5495
12@ = Player.StoreScore($player1)
gosub @VIDPOK_34793
add_int_var_to_int_lvar 12@ += $bj_payout
set_lvar_int_to_var_int 13@ = $bb_temp_float3
mult_int_lvar_by_int_lvar 13@ *= 1@
if 
  is_int_lvar_greater_than_int_lvar 13@ > 12@
goto_if_false @VIDPOK_5488
4@ = 1
goto @VIDPOK_5495

:VIDPOK_5488
4@ = 99

:VIDPOK_5495
if 
  4@ == 99
goto_if_false @VIDPOK_5705
if 
  $bb_temp_float3 == 6
goto_if_false @VIDPOK_5538
$bb_temp_float3 = 4

:VIDPOK_5538
if 
  $bb_temp_float3 == 7
goto_if_false @VIDPOK_5563
$bb_temp_float3 = 3

:VIDPOK_5563
if 
  $bb_temp_float3 == 8
goto_if_false @VIDPOK_5588
$bb_temp_float3 = 2

:VIDPOK_5588
if 
  $bb_temp_float3 == 9
goto_if_false @VIDPOK_5613
$bb_temp_float3 = 1

:VIDPOK_5613
set_lvar_int_to_var_int 12@ = $bb_temp_float3
mult_int_lvar_by_int_lvar 12@ *= 1@
Stat.IncrementIntNoMessage(StatId.MoneySpentGambling, 12@)
cset_lvar_float_to_lvar_int 15@ =# 12@
15@ *= 0.001
Stat.IncrementFloatNoMessage(StatId.Gambling, 15@)
set_var_int_to_lvar_int $vp_dpad_is_pressed = 12@
12@ *= -1
Player.AddScore($player1, 12@)
4@ = 0
3@ += 1
goto @VIDPOK_5712

:VIDPOK_5705
gosub @VIDPOK_26451

:VIDPOK_5712
if 
  3@ == 2
goto_if_false @VIDPOK_6360
if 
  4@ == 0
goto_if_false @VIDPOK_5834
$bet_one_value = 0
$8841 = 0
12@ = 0

:VIDPOK_5769
if 
  5 > 12@
goto_if_false @VIDPOK_5823
$no_of_coins(12@,5i) = 0
$8836(12@,5i) = 0
12@ += 1
goto @VIDPOK_5769

:VIDPOK_5823
CardDecks.Shuffle(1)
4@ += 1

:VIDPOK_5834
if 
  4@ == 1
goto_if_false @VIDPOK_5886
12@ = CardDecks.FetchNextCard()
gosub @VIDPOK_33551
set_var_int_to_lvar_int $no_of_coins[0] = 12@
TIMERA = 0
4@ += 1

:VIDPOK_5886
if 
  4@ == 2
goto_if_false @VIDPOK_5930
if 
  TIMERA > 400
goto_if_false @VIDPOK_5930
4@ += 1

:VIDPOK_5930
if 
  4@ == 3
goto_if_false @VIDPOK_5982
12@ = CardDecks.FetchNextCard()
gosub @VIDPOK_33551
set_var_int_to_lvar_int $no_of_coins[1] = 12@
TIMERA = 0
4@ += 1

:VIDPOK_5982
if 
  4@ == 4
goto_if_false @VIDPOK_6026
if 
  TIMERA > 400
goto_if_false @VIDPOK_6026
4@ += 1

:VIDPOK_6026
if 
  4@ == 5
goto_if_false @VIDPOK_6078
12@ = CardDecks.FetchNextCard()
gosub @VIDPOK_33551
set_var_int_to_lvar_int $no_of_coins[2] = 12@
TIMERA = 0
4@ += 1

:VIDPOK_6078
if 
  4@ == 6
goto_if_false @VIDPOK_6122
if 
  TIMERA > 400
goto_if_false @VIDPOK_6122
4@ += 1

:VIDPOK_6122
if 
  4@ == 7
goto_if_false @VIDPOK_6174
12@ = CardDecks.FetchNextCard()
gosub @VIDPOK_33551
set_var_int_to_lvar_int $no_of_coins[3] = 12@
TIMERA = 0
4@ += 1

:VIDPOK_6174
if 
  4@ == 8
goto_if_false @VIDPOK_6218
if 
  TIMERA > 400
goto_if_false @VIDPOK_6218
4@ += 1

:VIDPOK_6218
if 
  4@ == 9
goto_if_false @VIDPOK_6270
12@ = CardDecks.FetchNextCard()
gosub @VIDPOK_33551
set_var_int_to_lvar_int $no_of_coins[4] = 12@
TIMERA = 0
4@ += 1

:VIDPOK_6270
if 
  4@ == 10
goto_if_false @VIDPOK_6314
if 
  TIMERA > 800
goto_if_false @VIDPOK_6314
4@ = 99

:VIDPOK_6314
if 
  4@ == 99
goto_if_false @VIDPOK_6353
4@ = 0
3@ += 1
goto @VIDPOK_6360

:VIDPOK_6353
gosub @VIDPOK_26451

:VIDPOK_6360
if 
  3@ == 3
goto_if_false @VIDPOK_7501
if 
  4@ == 0
goto_if_false @VIDPOK_6485
$bet_one_value = 2
$8841 = 0
12@ = 0

:VIDPOK_6417
if 
  5 > 12@
goto_if_false @VIDPOK_6471
$8836(12@,5i) = 2
$8831(12@,5i) = 0
12@ += 1
goto @VIDPOK_6417

:VIDPOK_6471
$deal_value = 0
4@ += 1

:VIDPOK_6485
if 
  4@ == 1
goto_if_false @VIDPOK_7405
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
  $LStickX > 64
goto_if_false @VIDPOK_6646
if 
  $vp_triangle_is_pressed == 0
goto_if_false @VIDPOK_6639
if 
  5 > $deal_value
goto_if_false @VIDPOK_6639
$deal_value += 1
if 
  $deal_value == 5
goto_if_false @VIDPOK_6611
$deal_value = 0

:VIDPOK_6611
4@ += 1
TIMERA = 0
$vp_triangle_is_pressed += 1
goto @VIDPOK_7173

:VIDPOK_6639
goto @VIDPOK_6812

:VIDPOK_6646
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  -64 > $LStickX
goto_if_false @VIDPOK_6780
if 
  $vp_triangle_is_pressed == 0
goto_if_false @VIDPOK_6773
if and
  $deal_value > -1
  5 > $deal_value
goto_if_false @VIDPOK_6773
$deal_value -= 1
if 
  $deal_value == -1
goto_if_false @VIDPOK_6745
$deal_value = 4

:VIDPOK_6745
4@ += 1
$vp_triangle_is_pressed += 1
TIMERA = 0
goto @VIDPOK_7173

:VIDPOK_6773
goto @VIDPOK_6812

:VIDPOK_6780
if and
  $LStickX > -64
  64 > $LStickX
goto_if_false @VIDPOK_6812
$vp_triangle_is_pressed = 0

:VIDPOK_6812
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  $LStickY > 64
goto_if_false @VIDPOK_6864
$deal_value = 5
4@ += 1
TIMERA = 0
goto @VIDPOK_7173

:VIDPOK_6864
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  -64 > $LStickY
goto_if_false @VIDPOK_6934
if 
  $deal_value == 5
goto_if_false @VIDPOK_6934
$deal_value = 1
4@ += 1
TIMERA = 0
goto @VIDPOK_7173

:VIDPOK_6934
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @VIDPOK_7148
if 
  $high_cards_held == 0
goto_if_false @VIDPOK_7141
if 
  5 > $deal_value
goto_if_false @VIDPOK_7093
if 
  $8831($deal_value,5i) == 0
goto_if_false @VIDPOK_7027
$8831($deal_value,5i) = 1
goto @VIDPOK_7038

:VIDPOK_7027
$8831($deal_value,5i) = 0

:VIDPOK_7038
TIMERA = 0
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1026)
4@ += 1
$high_cards_held += 1
goto @VIDPOK_7173
goto @VIDPOK_7141

:VIDPOK_7093
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1026)
TIMERA = 0
4@ += 2
$high_cards_held += 1
goto @VIDPOK_7173

:VIDPOK_7141
goto @VIDPOK_7173

:VIDPOK_7148
if 
  $high_cards_held <> 0
goto_if_false @VIDPOK_7173
$high_cards_held = 0

:VIDPOK_7173
12@ = 0

:VIDPOK_7180
if 
  6 > 12@
goto_if_false @VIDPOK_7405
if 
  5 > 12@
goto_if_false @VIDPOK_7351
if 
  not is_int_lvar_equal_to_int_var 12@ == $deal_value
goto_if_false @VIDPOK_7293
if 
  $8831(12@,5i) == 0
goto_if_false @VIDPOK_7275
$8836(12@,5i) = 2
goto @VIDPOK_7286

:VIDPOK_7275
$8836(12@,5i) = 4

:VIDPOK_7286
goto @VIDPOK_7344

:VIDPOK_7293
if 
  $8831(12@,5i) == 0
goto_if_false @VIDPOK_7333
$8836(12@,5i) = 3
goto @VIDPOK_7344

:VIDPOK_7333
$8836(12@,5i) = 5

:VIDPOK_7344
goto @VIDPOK_7391

:VIDPOK_7351
if 
  not is_int_lvar_equal_to_int_var 12@ == $deal_value
goto_if_false @VIDPOK_7384
$bet_one_value = 2
goto @VIDPOK_7391

:VIDPOK_7384
$bet_one_value = 3

:VIDPOK_7391
12@ += 1
goto @VIDPOK_7180

:VIDPOK_7405
if 
  4@ == 2
goto_if_false @VIDPOK_7430
4@ = 1

:VIDPOK_7430
if 
  4@ == 3
goto_if_false @VIDPOK_7455
4@ = 99

:VIDPOK_7455
if 
  4@ == 99
goto_if_false @VIDPOK_7494
4@ = 0
3@ += 1
goto @VIDPOK_7501

:VIDPOK_7494
gosub @VIDPOK_26451

:VIDPOK_7501
if 
  3@ == 4
goto_if_false @VIDPOK_8619
if 
  4@ == 0
goto_if_false @VIDPOK_7741
$bet_one_value = 0
$8841 = 0
12@ = 0

:VIDPOK_7558
if 
  5 > 12@
goto_if_false @VIDPOK_7601
$8836(12@,5i) = 0
12@ += 1
goto @VIDPOK_7558

:VIDPOK_7601
$active_vidpok_machine = 0
12@ = 0

:VIDPOK_7615
if 
  5 > 12@
goto_if_false @VIDPOK_7734
if 
  $8831(12@,5i) <> 0
goto_if_false @VIDPOK_7720
set_var_int_to_var_int $TILE_HEIGHT = $no_of_coins(12@,5i)
gosub @VIDPOK_33298
if or
  $vp_in_card_value == 1
  $vp_in_card_value == 11
  $vp_in_card_value == 12
  $vp_in_card_value == 13
goto_if_false @VIDPOK_7720
$active_vidpok_machine += 1

:VIDPOK_7720
12@ += 1
goto @VIDPOK_7615

:VIDPOK_7734
4@ += 1

:VIDPOK_7741
if 
  4@ == 1
goto_if_false @VIDPOK_7845
12@ = 0

:VIDPOK_7766
if 
  5 > 12@
goto_if_false @VIDPOK_7831
if 
  $8831(12@,5i) == 0
goto_if_false @VIDPOK_7817
$no_of_coins(12@,5i) = 0

:VIDPOK_7817
12@ += 1
goto @VIDPOK_7766

:VIDPOK_7831
TIMERA = 0
4@ += 1

:VIDPOK_7845
if 
  4@ == 2
goto_if_false @VIDPOK_7889
if 
  TIMERA > 500
goto_if_false @VIDPOK_7889
4@ += 1

:VIDPOK_7889
if 
  4@ == 3
goto_if_false @VIDPOK_7973
if 
  $8831[0] == 0
goto_if_false @VIDPOK_7966
12@ = CardDecks.FetchNextCard()
gosub @VIDPOK_33553
set_var_int_to_lvar_int $no_of_coins[0] = 12@
TIMERA = 0
4@ += 1
goto @VIDPOK_7973

:VIDPOK_7966
4@ += 2

:VIDPOK_7973
if 
  4@ == 4
goto_if_false @VIDPOK_8017
if 
  TIMERA > 400
goto_if_false @VIDPOK_8017
4@ += 1

:VIDPOK_8017
if 
  4@ == 5
goto_if_false @VIDPOK_8101
if 
  $8831[1] == 0
goto_if_false @VIDPOK_8094
12@ = CardDecks.FetchNextCard()
gosub @VIDPOK_33553
set_var_int_to_lvar_int $no_of_coins[1] = 12@
TIMERA = 0
4@ += 1
goto @VIDPOK_8101

:VIDPOK_8094
4@ += 2

:VIDPOK_8101
if 
  4@ == 6
goto_if_false @VIDPOK_8145
if 
  TIMERA > 400
goto_if_false @VIDPOK_8145
4@ += 1

:VIDPOK_8145
if 
  4@ == 7
goto_if_false @VIDPOK_8229
if 
  $8831[2] == 0
goto_if_false @VIDPOK_8222
12@ = CardDecks.FetchNextCard()
gosub @VIDPOK_33553
set_var_int_to_lvar_int $no_of_coins[2] = 12@
TIMERA = 0
4@ += 1
goto @VIDPOK_8229

:VIDPOK_8222
4@ += 2

:VIDPOK_8229
if 
  4@ == 8
goto_if_false @VIDPOK_8273
if 
  TIMERA > 400
goto_if_false @VIDPOK_8273
4@ += 1

:VIDPOK_8273
if 
  4@ == 9
goto_if_false @VIDPOK_8357
if 
  $8831[3] == 0
goto_if_false @VIDPOK_8350
12@ = CardDecks.FetchNextCard()
gosub @VIDPOK_33553
set_var_int_to_lvar_int $no_of_coins[3] = 12@
TIMERA = 0
4@ += 1
goto @VIDPOK_8357

:VIDPOK_8350
4@ += 2

:VIDPOK_8357
if 
  4@ == 10
goto_if_false @VIDPOK_8401
if 
  TIMERA > 400
goto_if_false @VIDPOK_8401
4@ += 1

:VIDPOK_8401
if 
  4@ == 11
goto_if_false @VIDPOK_8485
if 
  $8831[4] == 0
goto_if_false @VIDPOK_8478
12@ = CardDecks.FetchNextCard()
gosub @VIDPOK_33553
set_var_int_to_lvar_int $no_of_coins[4] = 12@
TIMERA = 0
4@ += 1
goto @VIDPOK_8485

:VIDPOK_8478
4@ += 2

:VIDPOK_8485
if 
  4@ == 12
goto_if_false @VIDPOK_8529
if 
  TIMERA > 400
goto_if_false @VIDPOK_8529
4@ += 1

:VIDPOK_8529
if 
  4@ == 13
goto_if_false @VIDPOK_8573
if 
  TIMERA > 800
goto_if_false @VIDPOK_8573
4@ = 99

:VIDPOK_8573
if 
  4@ == 99
goto_if_false @VIDPOK_8612
4@ = 0
3@ += 1
goto @VIDPOK_8619

:VIDPOK_8612
gosub @VIDPOK_26451

:VIDPOK_8619
if 
  3@ == 5
goto_if_false @VIDPOK_10143
if 
  4@ == 0
goto_if_false @VIDPOK_8739
$highlighted_button = 0
$hand_is_royal_flush = 0
$hand_is_straight_flush = 0
$hand_is_four_of_kind = 0
$hand_is_full_house = 0
$hand_is_flush = 0
$hand_is_straight = 0
$hand_is_three_of_kind = 0
$hand_is_two_pairs = 0
$hand_is_jacks_or_better = 0
$pair1 = 0
4@ += 1

:VIDPOK_8739
if 
  4@ == 1
goto_if_false @VIDPOK_10065
12@ = 0

:VIDPOK_8764
if 
  5 > 12@
goto_if_false @VIDPOK_8858
set_var_int_to_var_int $TILE_HEIGHT = $no_of_coins(12@,5i)
gosub @VIDPOK_33298
set_var_int_to_var_int $pair2(12@,5i) = $vp_in_card_value
set_var_int_to_var_int $TILE_HEIGHT = $no_of_coins(12@,5i)
gosub @VIDPOK_33446
set_var_int_to_var_int $8860(12@,5i) = $vp_in_card_value
12@ += 1
goto @VIDPOK_8764

:VIDPOK_8858
save_newline_to_debug_file 
14@ = 1

:VIDPOK_8867
if 
  14@ > 0
goto_if_false @VIDPOK_9052
12@ = 0
13@ = 0
14@ = 0

:VIDPOK_8906
if 
  5 > 12@
goto_if_false @VIDPOK_9045
set_lvar_int_to_lvar_int 13@ = 12@
13@ += 1
if 
  5 > 13@
goto_if_false @VIDPOK_9031
if 
  is_int_var_greater_than_int_var $pair2(12@,5i) > $pair2(13@,5i)
goto_if_false @VIDPOK_9031
set_lvar_int_to_var_int 26@ = $pair2(13@,5i)
set_var_int_to_var_int $pair2(13@,5i) = $pair2(12@,5i)
set_var_int_to_lvar_int $pair2(12@,5i) = 26@
14@ += 1

:VIDPOK_9031
12@ += 1
goto @VIDPOK_8906

:VIDPOK_9045
goto @VIDPOK_8867

:VIDPOK_9052
if and
  is_int_var_equal_to_int_var $8860[0] == $8860[1]
  is_int_var_equal_to_int_var $8860[1] == $8860[2]
  is_int_var_equal_to_int_var $8860[2] == $8860[3]
  is_int_var_equal_to_int_var $8860[3] == $8860[4]
goto_if_false @VIDPOK_9102
$hand_is_full_house = 1

:VIDPOK_9102
set_lvar_int_to_var_int 12@ = $pair2[0]
12@ += 1
if 
  is_int_lvar_equal_to_int_var 12@ == $pair2[1]
goto_if_false @VIDPOK_9270
set_lvar_int_to_var_int 12@ = $pair2[1]
12@ += 1
if 
  is_int_lvar_equal_to_int_var 12@ == $pair2[2]
goto_if_false @VIDPOK_9270
set_lvar_int_to_var_int 12@ = $pair2[2]
12@ += 1
if 
  is_int_lvar_equal_to_int_var 12@ == $pair2[3]
goto_if_false @VIDPOK_9270
set_lvar_int_to_var_int 12@ = $pair2[3]
12@ += 1
if 
  is_int_lvar_equal_to_int_var 12@ == $pair2[4]
goto_if_false @VIDPOK_9270
$hand_is_flush = 1
if 
  $hand_is_full_house == 1
goto_if_false @VIDPOK_9270
$hand_is_royal_flush = 1

:VIDPOK_9270
if and
  $pair2[0] == 1
  $pair2[1] == 10
  $pair2[2] == 11
  $pair2[3] == 12
  $pair2[4] == 13
goto_if_false @VIDPOK_9355
$hand_is_flush = 1
if 
  $hand_is_full_house == 1
goto_if_false @VIDPOK_9355
$hand_is_royal_flush = 1
$highlighted_button = 1

:VIDPOK_9355
12@ = 0
13@ = 0
14@ = 0

:VIDPOK_9376
if 
  5 > 12@
goto_if_false @VIDPOK_9649
set_lvar_int_to_lvar_int 13@ = 12@
13@ += 1
if 
  5 > 13@
goto_if_false @VIDPOK_9635
if 
  is_int_var_equal_to_int_var $pair2(12@,5i) == $pair2(13@,5i)
goto_if_false @VIDPOK_9493
14@ += 1
if 
  13@ == 4
goto_if_false @VIDPOK_9486
goto @VIDPOK_9493

:VIDPOK_9486
goto @VIDPOK_9635

:VIDPOK_9493
if 
  14@ > 0
goto_if_false @VIDPOK_9635
if 
  14@ == 1
goto_if_false @VIDPOK_9578
if 
  $hand_is_jacks_or_better == 0
goto_if_false @VIDPOK_9566
set_var_int_to_var_int $hand_is_jacks_or_better = $pair2(12@,5i)
goto @VIDPOK_9578

:VIDPOK_9566
set_var_int_to_var_int $pair1 = $pair2(12@,5i)

:VIDPOK_9578
if 
  14@ == 2
goto_if_false @VIDPOK_9603
$hand_is_straight = 1

:VIDPOK_9603
if 
  14@ == 3
goto_if_false @VIDPOK_9628
$hand_is_straight_flush = 1

:VIDPOK_9628
14@ = 0

:VIDPOK_9635
12@ += 1
goto @VIDPOK_9376

:VIDPOK_9649
if and
  $hand_is_straight == 1
  $hand_is_jacks_or_better <> 0
goto_if_false @VIDPOK_9681
$hand_is_four_of_kind = 1

:VIDPOK_9681
if and
  $hand_is_jacks_or_better <> 0
  $pair1 <> 0
goto_if_false @VIDPOK_9713
$hand_is_three_of_kind = 1

:VIDPOK_9713
if 
  $hand_is_jacks_or_better <> 0
goto_if_false @VIDPOK_9763
if or
  $hand_is_jacks_or_better > 10
  $hand_is_jacks_or_better == 1
goto_if_false @VIDPOK_9763
$hand_is_two_pairs = 1

:VIDPOK_9763
if 
  $highlighted_button == 1
goto_if_false @VIDPOK_9795
$8865 = 9
goto @VIDPOK_10058

:VIDPOK_9795
if 
  $hand_is_royal_flush == 1
goto_if_false @VIDPOK_9827
$8865 = 8
goto @VIDPOK_10058

:VIDPOK_9827
if 
  $hand_is_straight_flush == 1
goto_if_false @VIDPOK_9859
$8865 = 7
goto @VIDPOK_10058

:VIDPOK_9859
if 
  $hand_is_four_of_kind == 1
goto_if_false @VIDPOK_9891
$8865 = 6
goto @VIDPOK_10058

:VIDPOK_9891
if 
  $hand_is_full_house == 1
goto_if_false @VIDPOK_9923
$8865 = 5
goto @VIDPOK_10058

:VIDPOK_9923
if 
  $hand_is_flush == 1
goto_if_false @VIDPOK_9955
$8865 = 4
goto @VIDPOK_10058

:VIDPOK_9955
if 
  $hand_is_straight == 1
goto_if_false @VIDPOK_9987
$8865 = 3
goto @VIDPOK_10058

:VIDPOK_9987
if 
  $hand_is_three_of_kind == 1
goto_if_false @VIDPOK_10019
$8865 = 2
goto @VIDPOK_10058

:VIDPOK_10019
if 
  $hand_is_two_pairs == 1
goto_if_false @VIDPOK_10051
$8865 = 1
goto @VIDPOK_10058

:VIDPOK_10051
$8865 = 0

:VIDPOK_10058
4@ += 1

:VIDPOK_10065
if 
  4@ == 2
goto_if_false @VIDPOK_10090
4@ = 99

:VIDPOK_10090
if 
  4@ == 99
goto_if_false @VIDPOK_10136
3@ += 1
4@ = 0
TIMERA = 0
goto @VIDPOK_10143

:VIDPOK_10136
gosub @VIDPOK_26451

:VIDPOK_10143
if 
  3@ == 6
goto_if_false @VIDPOK_12154
if 
  4@ == 0
goto_if_false @VIDPOK_11921
set_lvar_int_to_lvar_int 12@ = 1@
if 
  $8865 == 9
goto_if_false @VIDPOK_10383
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_10383 {caseNum1} 1 {caseLabel1} @VIDPOK_10268 {caseNum2} 2 {caseLabel2} @VIDPOK_10291 {caseNum3} 3 {caseLabel3} @VIDPOK_10314 {caseNum4} 4 {caseLabel4} @VIDPOK_10337 {caseNum5} 5 {caseLabel5} @VIDPOK_10360 {caseNum6} -1 {caseLabel6} @VIDPOK_10383 {caseNum7} -1 {caseLabel7} @VIDPOK_10383

:VIDPOK_10268
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 250
goto @VIDPOK_10383

:VIDPOK_10291
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 500
goto @VIDPOK_10383

:VIDPOK_10314
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 750
goto @VIDPOK_10383

:VIDPOK_10337
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 1000
goto @VIDPOK_10383

:VIDPOK_10360
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 4000
goto @VIDPOK_10383

:VIDPOK_10383
if 
  $8865 == 8
goto_if_false @VIDPOK_10577
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_10577 {caseNum1} 1 {caseLabel1} @VIDPOK_10464 {caseNum2} 2 {caseLabel2} @VIDPOK_10486 {caseNum3} 3 {caseLabel3} @VIDPOK_10508 {caseNum4} 4 {caseLabel4} @VIDPOK_10531 {caseNum5} 5 {caseLabel5} @VIDPOK_10554 {caseNum6} -1 {caseLabel6} @VIDPOK_10577 {caseNum7} -1 {caseLabel7} @VIDPOK_10577

:VIDPOK_10464
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 50
goto @VIDPOK_10577

:VIDPOK_10486
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 100
goto @VIDPOK_10577

:VIDPOK_10508
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 150
goto @VIDPOK_10577

:VIDPOK_10531
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 200
goto @VIDPOK_10577

:VIDPOK_10554
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 250
goto @VIDPOK_10577

:VIDPOK_10577
if 
  $8865 == 7
goto_if_false @VIDPOK_10768
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_10768 {caseNum1} 1 {caseLabel1} @VIDPOK_10658 {caseNum2} 2 {caseLabel2} @VIDPOK_10680 {caseNum3} 3 {caseLabel3} @VIDPOK_10702 {caseNum4} 4 {caseLabel4} @VIDPOK_10724 {caseNum5} 5 {caseLabel5} @VIDPOK_10746 {caseNum6} -1 {caseLabel6} @VIDPOK_10768 {caseNum7} -1 {caseLabel7} @VIDPOK_10768

:VIDPOK_10658
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 25
goto @VIDPOK_10768

:VIDPOK_10680
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 50
goto @VIDPOK_10768

:VIDPOK_10702
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 75
goto @VIDPOK_10768

:VIDPOK_10724
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 100
goto @VIDPOK_10768

:VIDPOK_10746
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 125
goto @VIDPOK_10768

:VIDPOK_10768
if 
  $8865 == 6
goto_if_false @VIDPOK_10959
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_10959 {caseNum1} 1 {caseLabel1} @VIDPOK_10849 {caseNum2} 2 {caseLabel2} @VIDPOK_10871 {caseNum3} 3 {caseLabel3} @VIDPOK_10893 {caseNum4} 4 {caseLabel4} @VIDPOK_10915 {caseNum5} 5 {caseLabel5} @VIDPOK_10937 {caseNum6} -1 {caseLabel6} @VIDPOK_10959 {caseNum7} -1 {caseLabel7} @VIDPOK_10959

:VIDPOK_10849
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 9
goto @VIDPOK_10959

:VIDPOK_10871
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 18
goto @VIDPOK_10959

:VIDPOK_10893
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 27
goto @VIDPOK_10959

:VIDPOK_10915
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 36
goto @VIDPOK_10959

:VIDPOK_10937
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 45
goto @VIDPOK_10959

:VIDPOK_10959
if 
  $8865 == 5
goto_if_false @VIDPOK_11150
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_11150 {caseNum1} 1 {caseLabel1} @VIDPOK_11040 {caseNum2} 2 {caseLabel2} @VIDPOK_11062 {caseNum3} 3 {caseLabel3} @VIDPOK_11084 {caseNum4} 4 {caseLabel4} @VIDPOK_11106 {caseNum5} 5 {caseLabel5} @VIDPOK_11128 {caseNum6} -1 {caseLabel6} @VIDPOK_11150 {caseNum7} -1 {caseLabel7} @VIDPOK_11150

:VIDPOK_11040
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 6
goto @VIDPOK_11150

:VIDPOK_11062
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 12
goto @VIDPOK_11150

:VIDPOK_11084
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 18
goto @VIDPOK_11150

:VIDPOK_11106
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 24
goto @VIDPOK_11150

:VIDPOK_11128
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 30
goto @VIDPOK_11150

:VIDPOK_11150
if 
  $8865 == 4
goto_if_false @VIDPOK_11341
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_11341 {caseNum1} 1 {caseLabel1} @VIDPOK_11231 {caseNum2} 2 {caseLabel2} @VIDPOK_11253 {caseNum3} 3 {caseLabel3} @VIDPOK_11275 {caseNum4} 4 {caseLabel4} @VIDPOK_11297 {caseNum5} 5 {caseLabel5} @VIDPOK_11319 {caseNum6} -1 {caseLabel6} @VIDPOK_11341 {caseNum7} -1 {caseLabel7} @VIDPOK_11341

:VIDPOK_11231
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 4
goto @VIDPOK_11341

:VIDPOK_11253
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 8
goto @VIDPOK_11341

:VIDPOK_11275
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 12
goto @VIDPOK_11341

:VIDPOK_11297
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 16
goto @VIDPOK_11341

:VIDPOK_11319
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 20
goto @VIDPOK_11341

:VIDPOK_11341
if 
  $8865 == 3
goto_if_false @VIDPOK_11532
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_11532 {caseNum1} 1 {caseLabel1} @VIDPOK_11422 {caseNum2} 2 {caseLabel2} @VIDPOK_11444 {caseNum3} 3 {caseLabel3} @VIDPOK_11466 {caseNum4} 4 {caseLabel4} @VIDPOK_11488 {caseNum5} 5 {caseLabel5} @VIDPOK_11510 {caseNum6} -1 {caseLabel6} @VIDPOK_11532 {caseNum7} -1 {caseLabel7} @VIDPOK_11532

:VIDPOK_11422
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 3
goto @VIDPOK_11532

:VIDPOK_11444
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 6
goto @VIDPOK_11532

:VIDPOK_11466
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 9
goto @VIDPOK_11532

:VIDPOK_11488
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 12
goto @VIDPOK_11532

:VIDPOK_11510
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 15
goto @VIDPOK_11532

:VIDPOK_11532
if 
  $8865 == 2
goto_if_false @VIDPOK_11723
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_11723 {caseNum1} 1 {caseLabel1} @VIDPOK_11613 {caseNum2} 2 {caseLabel2} @VIDPOK_11635 {caseNum3} 3 {caseLabel3} @VIDPOK_11657 {caseNum4} 4 {caseLabel4} @VIDPOK_11679 {caseNum5} 5 {caseLabel5} @VIDPOK_11701 {caseNum6} -1 {caseLabel6} @VIDPOK_11723 {caseNum7} -1 {caseLabel7} @VIDPOK_11723

:VIDPOK_11613
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 2
goto @VIDPOK_11723

:VIDPOK_11635
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 4
goto @VIDPOK_11723

:VIDPOK_11657
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 6
goto @VIDPOK_11723

:VIDPOK_11679
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 8
goto @VIDPOK_11723

:VIDPOK_11701
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 10
goto @VIDPOK_11723

:VIDPOK_11723
if 
  $8865 == 1
goto_if_false @VIDPOK_11914
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_11914 {caseNum1} 1 {caseLabel1} @VIDPOK_11804 {caseNum2} 2 {caseLabel2} @VIDPOK_11826 {caseNum3} 3 {caseLabel3} @VIDPOK_11848 {caseNum4} 4 {caseLabel4} @VIDPOK_11870 {caseNum5} 5 {caseLabel5} @VIDPOK_11892 {caseNum6} -1 {caseLabel6} @VIDPOK_11914 {caseNum7} -1 {caseLabel7} @VIDPOK_11914

:VIDPOK_11804
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 1
goto @VIDPOK_11914

:VIDPOK_11826
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 2
goto @VIDPOK_11914

:VIDPOK_11848
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 3
goto @VIDPOK_11914

:VIDPOK_11870
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 4
goto @VIDPOK_11914

:VIDPOK_11892
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 5
goto @VIDPOK_11914

:VIDPOK_11914
4@ += 1

:VIDPOK_11921
if 
  $8865 <> 0
goto_if_false @VIDPOK_12072
if or
  TIMERA > 4000
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @VIDPOK_12065
Audio.ReportMissionAudioEventAtPosition(-1000.0, -1000.0, -1000.0, 1025)
Player.AddScore($player1, 14@)
set_lvar_int_to_lvar_int 12@ = 14@
sub_int_var_from_int_lvar 12@ -= $vp_dpad_is_pressed
Stat.IncrementIntNoMessage(StatId.MoneyWonGambling, 12@)
Stat.ShowUpdateStats(False)
Stat.RegisterInt(StatId.BiggestGamblingWin, 12@)
Stat.ShowUpdateStats(True)
3@ = 1
4@ = 0
$deal_value = 1
$high_cards_held = 1
$vp_dpad_is_pressed = 0

:VIDPOK_12065
goto @VIDPOK_12147

:VIDPOK_12072
if or
  TIMERA > 4000
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @VIDPOK_12147
Stat.ShowUpdateStats(False)
Stat.RegisterInt(StatId.BiggestGamblingLoss, $vp_dpad_is_pressed)
Stat.ShowUpdateStats(True)
$vp_dpad_is_pressed = 0
$high_cards_held = 1
3@ = 1
4@ = 0
$deal_value = 1

:VIDPOK_12147
gosub @VIDPOK_26451

:VIDPOK_12154
gosub @VIDPOK_12212
if 
  3@ > 0
goto_if_false @VIDPOK_12210
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @VIDPOK_12210
7@ = 1
$vp_cross_is_pressed = 1

:VIDPOK_12210
return 

:VIDPOK_12212
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @VIDPOK_12778
$vp_yellow += 1
if 
  $vp_yellow > 13
goto_if_false @VIDPOK_12259
$vp_yellow = 0

:VIDPOK_12259
if 
  $vp_yellow == 1
goto_if_false @VIDPOK_12297
write_debug "EDIT_BET_DETAILS"

:VIDPOK_12297
if 
  $vp_yellow == 2
goto_if_false @VIDPOK_12335
write_debug "EDIT_SHIFT_CARDS"

:VIDPOK_12335
if 
  $vp_yellow == 3
goto_if_false @VIDPOK_12390
write_debug "EDIT_SHIFT_TABLE_ROWS_AND_COLUMNS"

:VIDPOK_12390
if 
  $vp_yellow == 4
goto_if_false @VIDPOK_12429
write_debug "EDIT_HOLD_BUTTONS"

:VIDPOK_12429
if 
  $vp_yellow == 5
goto_if_false @VIDPOK_12463
write_debug "EDIT_BET_ONE"

:VIDPOK_12463
if 
  $vp_yellow == 6
goto_if_false @VIDPOK_12494
write_debug "EDIT_DEAL"

:VIDPOK_12494
if 
  $vp_yellow == 7
goto_if_false @VIDPOK_12537
write_debug "EDIT_BORDER_THICKNESS"

:VIDPOK_12537
if 
  $vp_yellow == 8
goto_if_false @VIDPOK_12575
write_debug "EDIT_TABLE_LINES"

:VIDPOK_12575
if 
  $vp_yellow == 9
goto_if_false @VIDPOK_12606
write_debug "EDIT_TEXT"

:VIDPOK_12606
if 
  $vp_yellow == 10
goto_if_false @VIDPOK_12638
write_debug "EDIT_TILES"

:VIDPOK_12638
if 
  $vp_yellow == 11
goto_if_false @VIDPOK_12681
write_debug "EDIT_TABLE_BACKGROUND"

:VIDPOK_12681
if 
  $vp_yellow == 12
goto_if_false @VIDPOK_12733
write_debug "EDIT_TABLE_HIGHLIGHTED_COLUMNS"

:VIDPOK_12733
if 
  $vp_yellow == 13
goto_if_false @VIDPOK_12778
write_debug "EDIT_BUTTON_TEXT_OFFSET"

:VIDPOK_12778
if 
  $vp_yellow == 1
goto_if_false @VIDPOK_12978
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_12862
$vp_edit_mode += 1
if 
  $vp_edit_mode > 7
goto_if_false @VIDPOK_12843
$vp_edit_mode = 0

:VIDPOK_12843
write_debug_with_int "EDIT_COUNTER" {_p2} $vp_edit_mode

:VIDPOK_12862
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_12891
$8915($vp_edit_mode,8f) += -1.0

:VIDPOK_12891
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_12920
$8915($vp_edit_mode,8f) += 1.0

:VIDPOK_12920
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_12949
$vp_edit_counter($vp_edit_mode,8f) += 1.0

:VIDPOK_12949
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_12978
$vp_edit_counter($vp_edit_mode,8f) += -1.0

:VIDPOK_12978
if 
  $vp_yellow == 2
goto_if_false @VIDPOK_13278
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_13062
$vp_edit_mode += 1
if 
  $vp_edit_mode > 4
goto_if_false @VIDPOK_13043
$vp_edit_mode = 0

:VIDPOK_13043
write_debug_with_int "EDIT_COUNTER" {_p2} $vp_edit_mode

:VIDPOK_13062
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_13091
$8877($vp_edit_mode,5f) += -1.0

:VIDPOK_13091
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_13120
$8877($vp_edit_mode,5f) += 1.0

:VIDPOK_13120
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_13149
$vp_initial_stake($vp_edit_mode,5f) += 1.0

:VIDPOK_13149
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_13178
$vp_initial_stake($vp_edit_mode,5f) += -1.0

:VIDPOK_13178
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @VIDPOK_13203
$vp_card_height += 1.0

:VIDPOK_13203
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @VIDPOK_13228
$vp_card_height += -1.0

:VIDPOK_13228
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_13253
$8923 += 1.0

:VIDPOK_13253
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_13278
$8923 += -1.0

:VIDPOK_13278
if 
  $vp_yellow == 3
goto_if_false @VIDPOK_13528
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_13362
$vp_edit_mode += 1
if 
  $vp_edit_mode > 9
goto_if_false @VIDPOK_13343
$vp_edit_mode = 0

:VIDPOK_13343
write_debug_with_int "EDIT_COUNTER" {_p2} $vp_edit_mode

:VIDPOK_13362
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_13391
$8892($vp_edit_mode,10f) += -1.0

:VIDPOK_13391
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_13420
$8892($vp_edit_mode,10f) += 1.0

:VIDPOK_13420
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_13474
if 
  $vp_edit_mode > 5
goto_if_false @VIDPOK_13460
$vp_edit_mode = 0

:VIDPOK_13460
$deal_y($vp_edit_mode,6f) += 1.0

:VIDPOK_13474
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_13528
if 
  $vp_edit_mode > 5
goto_if_false @VIDPOK_13514
$vp_edit_mode = 0

:VIDPOK_13514
$deal_y($vp_edit_mode,6f) += -1.0

:VIDPOK_13528
if 
  $vp_yellow == 4
goto_if_false @VIDPOK_13711
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_13561

:VIDPOK_13561
if 
is_ps2_keyboard_key_just_pressed 26
goto_if_false @VIDPOK_13586
$vp_card_width += -1.0

:VIDPOK_13586
if 
is_ps2_keyboard_key_just_pressed 22
goto_if_false @VIDPOK_13611
$vp_card_width += 1.0

:VIDPOK_13611
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @VIDPOK_13636
$vp_hold_button_offset += 1.0

:VIDPOK_13636
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @VIDPOK_13661
$vp_hold_button_offset += -1.0

:VIDPOK_13661
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_13686
$vp_hold_width += 1.0

:VIDPOK_13686
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_13711
$vp_hold_width += -1.0

:VIDPOK_13711
if 
  $vp_yellow == 5
goto_if_false @VIDPOK_13944
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_13744

:VIDPOK_13744
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_13769
$bet_one_x += -1.0

:VIDPOK_13769
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_13794
$bet_one_x += 1.0

:VIDPOK_13794
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_13819
$8882 += 1.0

:VIDPOK_13819
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_13844
$8882 += -1.0

:VIDPOK_13844
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @VIDPOK_13869
$vp_deal_height += 1.0

:VIDPOK_13869
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @VIDPOK_13894
$vp_deal_height += -1.0

:VIDPOK_13894
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_13919
$vp_bet_one_width += 1.0

:VIDPOK_13919
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_13944
$vp_bet_one_width += -1.0

:VIDPOK_13944
if 
  $vp_yellow == 6
goto_if_false @VIDPOK_14177
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_13977

:VIDPOK_13977
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_14002
$deal_x += -1.0

:VIDPOK_14002
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_14027
$deal_x += 1.0

:VIDPOK_14027
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_14052
$bet_one_y += 1.0

:VIDPOK_14052
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_14077
$bet_one_y += -1.0

:VIDPOK_14077
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @VIDPOK_14102
$vp_border_height += 1.0

:VIDPOK_14102
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @VIDPOK_14127
$vp_border_height += -1.0

:VIDPOK_14127
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_14152
$vp_deal_width += 1.0

:VIDPOK_14152
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_14177
$vp_deal_width += -1.0

:VIDPOK_14177
if 
  $vp_yellow == 7
goto_if_false @VIDPOK_14245
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_14220
$vp_hold_height += 0.1

:VIDPOK_14220
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_14245
$vp_hold_height += -0.1

:VIDPOK_14245
if 
  $vp_yellow == 8
goto_if_false @VIDPOK_14616
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_14329
$vp_edit_mode += 1
if 
  $vp_edit_mode > 8
goto_if_false @VIDPOK_14310
$vp_edit_mode = 0

:VIDPOK_14310
write_debug_with_int "EDIT_COUNTER" {_p2} $vp_edit_mode

:VIDPOK_14329
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_14358
$8944($vp_edit_mode,9f) += -1.0

:VIDPOK_14358
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_14387
$8944($vp_edit_mode,9f) += 1.0

:VIDPOK_14387
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_14416
$vp_bet_one_height($vp_edit_mode,9f) += 1.0

:VIDPOK_14416
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_14445
$vp_bet_one_height($vp_edit_mode,9f) += -1.0

:VIDPOK_14445
if 
is_ps2_keyboard_key_just_pressed 93
goto_if_false @VIDPOK_14500
set_lvar_float_to_var_float 15@ = $8953($vp_edit_mode,9f)
set_var_float_to_var_float $8953($vp_edit_mode,9f) = $8962($vp_edit_mode,9f)
set_var_float_to_lvar_float $8962($vp_edit_mode,9f) = 15@

:VIDPOK_14500
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @VIDPOK_14529
$8953($vp_edit_mode,9f) += -1.0

:VIDPOK_14529
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @VIDPOK_14558
$8953($vp_edit_mode,9f) += 1.0

:VIDPOK_14558
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_14587
$8962($vp_edit_mode,9f) += 1.0

:VIDPOK_14587
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_14616
$8962($vp_edit_mode,9f) += -1.0

:VIDPOK_14616
if 
  $vp_yellow == 9
goto_if_false @VIDPOK_15544
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_14700
$vp_edit_mode += 1
if 
  $vp_edit_mode > 5
goto_if_false @VIDPOK_14681
$vp_edit_mode = 0

:VIDPOK_14681
write_debug_with_int "EDIT_COUNTER" {_p2} $vp_edit_mode

:VIDPOK_14700
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_14729
$8977($vp_edit_mode,6f) += -0.01

:VIDPOK_14729
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_14758
$8977($vp_edit_mode,6f) += 0.01

:VIDPOK_14758
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_14787
$8971($vp_edit_mode,6f) += 0.01

:VIDPOK_14787
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_14816
$8971($vp_edit_mode,6f) += -0.01

:VIDPOK_14816
if 
is_ps2_keyboard_key_just_pressed 21
goto_if_false @VIDPOK_14856
$8983($vp_edit_mode,6i) += 1
write_debug_with_int "RED" {_p2} $8983($vp_edit_mode,6i)

:VIDPOK_14856
if 
is_ps2_keyboard_key_just_pressed 25
goto_if_false @VIDPOK_14896
$8983($vp_edit_mode,6i) += -1
write_debug_with_int "RED" {_p2} $8983($vp_edit_mode,6i)

:VIDPOK_14896
if 
is_ps2_keyboard_key_just_pressed 23
goto_if_false @VIDPOK_14938
$8989($vp_edit_mode,6i) += 1
write_debug_with_int "GREEN" {_p2} $8989($vp_edit_mode,6i)

:VIDPOK_14938
if 
is_ps2_keyboard_key_just_pressed 10
goto_if_false @VIDPOK_14980
$8989($vp_edit_mode,6i) += -1
write_debug_with_int "GREEN" {_p2} $8989($vp_edit_mode,6i)

:VIDPOK_14980
if 
is_ps2_keyboard_key_just_pressed 28
goto_if_false @VIDPOK_15021
$8995($vp_edit_mode,6i) += 1
write_debug_with_int "BLUE" {_p2} $8995($vp_edit_mode,6i)

:VIDPOK_15021
if 
is_ps2_keyboard_key_just_pressed 11
goto_if_false @VIDPOK_15062
$8995($vp_edit_mode,6i) += -1
write_debug_with_int "BLUE" {_p2} $8995($vp_edit_mode,6i)

:VIDPOK_15062
if 
is_ps2_keyboard_key_just_pressed 24
goto_if_false @VIDPOK_15102
$9019($vp_edit_mode,6i) += 1
write_debug_with_int "RED" {_p2} $9019($vp_edit_mode,6i)

:VIDPOK_15102
if 
is_ps2_keyboard_key_just_pressed 13
goto_if_false @VIDPOK_15142
$9019($vp_edit_mode,6i) += -1
write_debug_with_int "RED" {_p2} $9019($vp_edit_mode,6i)

:VIDPOK_15142
if 
is_ps2_keyboard_key_just_pressed 12
goto_if_false @VIDPOK_15184
$9025($vp_edit_mode,6i) += 1
write_debug_with_int "GREEN" {_p2} $9025($vp_edit_mode,6i)

:VIDPOK_15184
if 
is_ps2_keyboard_key_just_pressed 14
goto_if_false @VIDPOK_15226
$9025($vp_edit_mode,6i) += -1
write_debug_with_int "GREEN" {_p2} $9025($vp_edit_mode,6i)

:VIDPOK_15226
if 
is_ps2_keyboard_key_just_pressed 18
goto_if_false @VIDPOK_15267
$9031($vp_edit_mode,6i) += 1
write_debug_with_int "BLUE" {_p2} $9031($vp_edit_mode,6i)

:VIDPOK_15267
if 
is_ps2_keyboard_key_just_pressed 15
goto_if_false @VIDPOK_15308
$9031($vp_edit_mode,6i) += -1
write_debug_with_int "BLUE" {_p2} $9031($vp_edit_mode,6i)

:VIDPOK_15308
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_15334
$9013($vp_edit_mode,6i) += 1

:VIDPOK_15334
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_15360
$9013($vp_edit_mode,6i) += -1

:VIDPOK_15360
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @VIDPOK_15419
$9001($vp_edit_mode,6i) += 1
if 
  $9001($vp_edit_mode,6i) > 3
goto_if_false @VIDPOK_15419
$9001($vp_edit_mode,6i) = 0

:VIDPOK_15419
if 
is_ps2_keyboard_key_just_pressed 86
goto_if_false @VIDPOK_15478
$9001($vp_edit_mode,6i) += -1
if 
  0 > $9001($vp_edit_mode,6i)
goto_if_false @VIDPOK_15478
$9001($vp_edit_mode,6i) = 3

:VIDPOK_15478
if 
is_ps2_keyboard_key_just_pressed 84
goto_if_false @VIDPOK_15544
if 
  $9007($vp_edit_mode,6i) == 0
goto_if_false @VIDPOK_15533
$9007($vp_edit_mode,6i) = 1
goto @VIDPOK_15544

:VIDPOK_15533
$9007($vp_edit_mode,6i) = 0

:VIDPOK_15544
if 
  $vp_yellow == 10
goto_if_false @VIDPOK_15728
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_15587
$TILE_WIDTH += -1.0

:VIDPOK_15587
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_15612
$TILE_WIDTH += 1.0

:VIDPOK_15612
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_15637
$vp_selected_colour_direction += 1.0

:VIDPOK_15637
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_15662
$vp_selected_colour_direction += -1.0

:VIDPOK_15662
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_15728
$button_text_offset += 1
if 
  $button_text_offset > 3
goto_if_false @VIDPOK_15709
$button_text_offset = 0

:VIDPOK_15709
write_debug_with_int "VP_TILE_TYPE" {_p2} $button_text_offset

:VIDPOK_15728
if 
  $vp_yellow == 11
goto_if_false @VIDPOK_15946
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_15771
$vp_table_x += -1.0

:VIDPOK_15771
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_15796
$vp_table_x += 1.0

:VIDPOK_15796
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_15821
$vp_tile_type += 1.0

:VIDPOK_15821
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_15846
$vp_tile_type += -1.0

:VIDPOK_15846
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_15871
$vp_table_width += 1.0

:VIDPOK_15871
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_15896
$vp_table_width += -1.0

:VIDPOK_15896
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @VIDPOK_15921
$vp_table_y += 1.0

:VIDPOK_15921
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @VIDPOK_15946
$vp_table_y += -1.0

:VIDPOK_15946
if 
  $vp_yellow == 12
goto_if_false @VIDPOK_16262
if 
is_ps2_keyboard_key_just_pressed 40
goto_if_false @VIDPOK_16030
$vp_edit_mode += 1
if 
  $vp_edit_mode > 4
goto_if_false @VIDPOK_16011
$vp_edit_mode = 0

:VIDPOK_16011
write_debug_with_int "EDIT_COUNTER" {_p2} $vp_edit_mode

:VIDPOK_16030
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_16059
$9048($vp_edit_mode,5f) += -1.0

:VIDPOK_16059
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_16088
$9048($vp_edit_mode,5f) += 1.0

:VIDPOK_16088
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_16117
$vp_table_height($vp_edit_mode,5f) += 1.0

:VIDPOK_16117
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @VIDPOK_16146
$vp_table_height($vp_edit_mode,5f) += -1.0

:VIDPOK_16146
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @VIDPOK_16175
$9058($vp_edit_mode,5f) += 1.0

:VIDPOK_16175
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @VIDPOK_16204
$9058($vp_edit_mode,5f) += -1.0

:VIDPOK_16204
if 
is_ps2_keyboard_key_just_pressed 94
goto_if_false @VIDPOK_16233
$9053($vp_edit_mode,5f) += 1.0

:VIDPOK_16233
if 
is_ps2_keyboard_key_just_pressed 92
goto_if_false @VIDPOK_16262
$9053($vp_edit_mode,5f) += -1.0

:VIDPOK_16262
if 
  $vp_yellow == 13
goto_if_false @VIDPOK_16330
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_16305
$9037 += 0.05

:VIDPOK_16305
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @VIDPOK_16330
$9037 += -0.05

:VIDPOK_16330
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @VIDPOK_26449
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_16356
if 
  8 > 12@
goto_if_false @VIDPOK_16940
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_SCREEN_X[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $vp_edit_counter(12@,8f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_SCREEN_Y[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $8915(12@,8f)
12@ += 1
goto @VIDPOK_16356

:VIDPOK_16940
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_16951
if 
  5 > 12@
goto_if_false @VIDPOK_17535
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CARD_X[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $vp_initial_stake(12@,5f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CARD_Y[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $8877(12@,5f)
12@ += 1
goto @VIDPOK_16951

:VIDPOK_17535
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_CARD_WIDTH = ")
save_float_to_debug_file $vp_card_height
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_CARD_HEIGHT = ")
save_float_to_debug_file $8923
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_17824
if 
  10 > 12@
goto_if_false @VIDPOK_18132
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("ROW_Y[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $8892(12@,10f)
12@ += 1
goto @VIDPOK_17824

:VIDPOK_18132
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_18143
if 
  6 > 12@
goto_if_false @VIDPOK_18451
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("COL_X[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $deal_y(12@,6f)
12@ += 1
goto @VIDPOK_18143

:VIDPOK_18451
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_HOLD_BUTTON_OFFSET = ")
save_float_to_debug_file $vp_card_width
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_HOLD_WIDTH = ")
save_float_to_debug_file $vp_hold_button_offset
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_HOLD_HEIGHT = ")
save_float_to_debug_file $vp_hold_width
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BET_ONE_X = ")
save_float_to_debug_file $8882
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BET_ONE_Y = ")
save_float_to_debug_file $bet_one_x
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_BET_ONE_WIDTH = ")
save_float_to_debug_file $vp_deal_height
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_BET_ONE_HEIGHT = ")
save_float_to_debug_file $vp_bet_one_width
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("DEAL_X = ")
save_float_to_debug_file $bet_one_y
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("DEAL_Y = ")
save_float_to_debug_file $deal_x
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_DEAL_WIDTH = ")
save_float_to_debug_file $vp_border_height
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_DEAL_HEIGHT = ")
save_float_to_debug_file $vp_deal_width
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_BORDER_THICKNESS = ")
save_float_to_debug_file $vp_hold_height
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_20122
if 
  9 > 12@
goto_if_false @VIDPOK_21258
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_LINE_X[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $vp_bet_one_height(12@,9f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_LINE_Y[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $8944(12@,9f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_LINE_WIDTH[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $8953(12@,9f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_LINE_HEIGHT[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $8962(12@,9f)
12@ += 1
goto @VIDPOK_20122

:VIDPOK_21258
12@ = 0

:VIDPOK_21265
if 
  6 > 12@
goto_if_false @VIDPOK_24333
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("TEXT_SCALE_X[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $8971(12@,6f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("TEXT_SCALE_Y[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $8977(12@,6f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("TEXT_COLOUR_R[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_int_to_debug_file $8983(12@,6i)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("TEXT_COLOUR_G[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_int_to_debug_file $8989(12@,6i)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("TEXT_COLOUR_B[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_int_to_debug_file $8995(12@,6i)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("TEXT_FONT[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_int_to_debug_file $9001(12@,6i)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("TEXT_CENTRE[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_int_to_debug_file $9007(12@,6i)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("TEXT_EDGE[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_int_to_debug_file $9013(12@,6i)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("TEXT_EDGE_R[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_int_to_debug_file $9019(12@,6i)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("TEXT_EDGE_G[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_int_to_debug_file $9025(12@,6i)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("TEXT_EDGE_B[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_int_to_debug_file $9031(12@,6i)
12@ += 1
goto @VIDPOK_21265

:VIDPOK_24333
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("TILE_HEIGHT = ")
save_float_to_debug_file $TILE_WIDTH
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("TILE_WIDTH = ")
save_float_to_debug_file $vp_selected_colour_direction
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_TABLE_X = ")
save_float_to_debug_file $vp_tile_type
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_TABLE_Y = ")
save_float_to_debug_file $vp_table_x
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_TABLE_WIDTH = ")
save_float_to_debug_file $vp_table_y
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_TABLE_HEIGHT = ")
save_float_to_debug_file $vp_table_width
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_25174
if 
  5 > 12@
goto_if_false @VIDPOK_26310
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_HIGHL_X[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $vp_table_height(12@,5f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_HIGHL_Y[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $9048(12@,5f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_HIGHL_WIDTH[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $9053(12@,5f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("VP_HIGHL_HEIGHT[")
save_int_to_debug_file 12@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $9058(12@,5f)
12@ += 1
goto @VIDPOK_25174

:VIDPOK_26310
save_newline_to_debug_file 
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BUTTON_TEXT_OFFSET = ")
save_float_to_debug_file $9037

:VIDPOK_26449
return 

:VIDPOK_26451
if 
  $vp_selected_colour == 0
goto_if_false @VIDPOK_26517
$vphud_int += 10
if 
  $vphud_int >= 255
goto_if_false @VIDPOK_26510
$vphud_int = 255
$vp_selected_colour = 1

:VIDPOK_26510
goto @VIDPOK_26556

:VIDPOK_26517
$vphud_int += -10
if 
  0 >= $vphud_int
goto_if_false @VIDPOK_26556
$vphud_int = 0
$vp_selected_colour = 0

:VIDPOK_26556
if 
  $button_text_offset <> 0
goto_if_false @VIDPOK_26827
12@ = 0
set_var_float_to_var_float $x = $vp_selected_colour_direction
$x /= 2.0
set_var_float_to_var_float $y = $TILE_WIDTH
$y /= 2.0

:VIDPOK_26617
if and
  480.0 > $y
  100 > 12@
goto_if_false @VIDPOK_26820

:VIDPOK_26645
if and
  640.0 > $x
  100 > 12@
goto_if_false @VIDPOK_26787
if 
  $button_text_offset == 1
goto_if_false @VIDPOK_26719
Hud.DrawSprite(64, $x, $y, $vp_selected_colour_direction, $TILE_WIDTH, 150, 150, 150, 255)

:VIDPOK_26719
if 
  $button_text_offset == 2
goto_if_false @VIDPOK_26765
Hud.DrawSprite(65, $x, $y, $vp_selected_colour_direction, $TILE_WIDTH, 150, 150, 150, 255)

:VIDPOK_26765
12@ += 1
add_float_var_to_float_var $x += $vp_selected_colour_direction
goto @VIDPOK_26645

:VIDPOK_26787
add_float_var_to_float_var $y += $TILE_WIDTH
set_var_float_to_var_float $x = $vp_selected_colour_direction
$x /= 2.0
goto @VIDPOK_26617

:VIDPOK_26820
goto @VIDPOK_26859

:VIDPOK_26827
Hud.DrawRect(320.0, 240.0, 640.0, 480.0, 6, 16, 140, 255)

:VIDPOK_26859
Hud.DrawSprite(63, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(63, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.DrawSprite(63, 480.0, 336.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.DrawSprite(63, 160.0, 336.0, 320.0, -224.0, 150, 150, 150, 255)
gosub @VIDPOK_33747
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.Display($vp_edit_counter[0], $8915[0], 'VP02')
gosub @VIDPOK_33555
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.DisplayWithNumber($vp_edit_counter[6], $8915[6], 'DOLLAR', 1@)
12@ = Player.StoreScore($player1)
gosub @VIDPOK_34793
gosub @VIDPOK_33555
Text.SetRightJustify(True)
set_lvar_int_to_var_int 13@ = $bj_payout
13@ *= -1
if 
  is_int_lvar_greater_or_equal_to_int_lvar 13@ >= 12@
goto_if_false @VIDPOK_27154
Text.Display($vp_edit_counter[1], $8915[1], 'VP18')
goto @VIDPOK_27174

:VIDPOK_27154
Text.DisplayWithNumber($vp_edit_counter[1], $8915[1], 'VP16', 12@)

:VIDPOK_27174
gosub @VIDPOK_33747
Text.SetRightJustify(False)
Text.SetCenter(True)
set_lvar_int_to_var_int 12@ = $bb_temp_float3
mult_int_lvar_by_int_lvar 12@ *= 1@
Text.Display($vp_edit_counter[2], $8915[2], 'VP03')
gosub @VIDPOK_33555
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.DisplayWithNumber($vp_edit_counter[7], $8915[7], 'DOLLAR', 12@)
gosub @VIDPOK_34131
Text.DisplayWithNumber($vp_edit_counter[4], $8915[4], 'VP17', 12@)
Hud.DrawRect($vp_tile_type, $vp_table_x, $vp_table_y, $vp_table_width, 0, 0, 0, 255)
if 
  3@ <> 6
goto_if_false @VIDPOK_27553
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_27553 {caseNum1} 1 {caseLabel1} @VIDPOK_27388 {caseNum2} 2 {caseLabel2} @VIDPOK_27421 {caseNum3} 3 {caseLabel3} @VIDPOK_27454 {caseNum4} 4 {caseLabel4} @VIDPOK_27487 {caseNum5} 5 {caseLabel5} @VIDPOK_27520 {caseNum6} -1 {caseLabel6} @VIDPOK_27553 {caseNum7} -1 {caseLabel7} @VIDPOK_27553

:VIDPOK_27388
Hud.DrawRect($vp_table_height[0], $9048[0], $9053[0], $9058[0], $8983[1], $8989[1], $8995[1], 255)
goto @VIDPOK_27553

:VIDPOK_27421
Hud.DrawRect($vp_table_height[1], $9048[1], $9053[1], $9058[1], $8983[1], $8989[1], $8995[1], 255)
goto @VIDPOK_27553

:VIDPOK_27454
Hud.DrawRect($vp_table_height[2], $9048[2], $9053[2], $9058[2], $8983[1], $8989[1], $8995[1], 255)
goto @VIDPOK_27553

:VIDPOK_27487
Hud.DrawRect($vp_table_height[3], $9048[3], $9053[3], $9058[3], $8983[1], $8989[1], $8995[1], 255)
goto @VIDPOK_27553

:VIDPOK_27520
Hud.DrawRect($vp_table_height[4], $9048[4], $9053[4], $9058[4], $8983[1], $8989[1], $8995[1], 255)
goto @VIDPOK_27553

:VIDPOK_27553
if and
  3@ == 6
  $8865 <> 0
goto_if_false @VIDPOK_27890
12@ = 10
sub_int_var_from_int_lvar 12@ -= $8865
set_lvar_float_to_var_float 15@ = $8892(12@,10f)
15@ += 9.0
switch_start $bb_temp_float3 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_27848 {caseNum1} 1 {caseLabel1} @VIDPOK_27678 {caseNum2} 2 {caseLabel2} @VIDPOK_27712 {caseNum3} 3 {caseLabel3} @VIDPOK_27746 {caseNum4} 4 {caseLabel4} @VIDPOK_27780 {caseNum5} 5 {caseLabel5} @VIDPOK_27814 {caseNum6} -1 {caseLabel6} @VIDPOK_27848 {caseNum7} -1 {caseLabel7} @VIDPOK_27848

:VIDPOK_27678
Hud.DrawRect($vp_table_height[0], 15@, $9053[0], 18.0, 255, $vphud_int, 0, 255)
goto @VIDPOK_27848

:VIDPOK_27712
Hud.DrawRect($vp_table_height[1], 15@, $9053[1], 18.0, 255, $vphud_int, 0, 255)
goto @VIDPOK_27848

:VIDPOK_27746
Hud.DrawRect($vp_table_height[2], 15@, $9053[2], 18.0, 255, $vphud_int, 0, 255)
goto @VIDPOK_27848

:VIDPOK_27780
Hud.DrawRect($vp_table_height[3], 15@, $9053[3], 18.0, 255, $vphud_int, 0, 255)
goto @VIDPOK_27848

:VIDPOK_27814
Hud.DrawRect($vp_table_height[4], 15@, $9053[4], 18.0, 255, $vphud_int, 0, 255)
goto @VIDPOK_27848

:VIDPOK_27848
gosub @VIDPOK_33555
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.DisplayWithNumber($vp_edit_counter[3], $8915[3], 'VP04', 14@)
goto @VIDPOK_27957

:VIDPOK_27890
if and
  3@ == 6
  $8865 == 0
goto_if_false @VIDPOK_27957
14@ = 0
gosub @VIDPOK_33555
Text.SetRightJustify(False)
Text.SetCenter(True)
Text.DisplayWithNumber($vp_edit_counter[3], $8915[3], 'VP04', 14@)

:VIDPOK_27957
gosub @VIDPOK_33939
Text.Display($deal_y[0], $8892[1], 'VP06')
gosub @VIDPOK_33939
Text.Display($deal_y[0], $8892[2], 'VP07')
gosub @VIDPOK_33939
Text.Display($deal_y[0], $8892[3], 'VP08')
gosub @VIDPOK_33939
Text.Display($deal_y[0], $8892[4], 'VP09')
gosub @VIDPOK_33939
Text.Display($deal_y[0], $8892[5], 'VP10')
gosub @VIDPOK_33939
Text.Display($deal_y[0], $8892[6], 'VP11')
gosub @VIDPOK_33939
Text.Display($deal_y[0], $8892[7], 'VP12')
gosub @VIDPOK_33939
Text.Display($deal_y[0], $8892[8], 'VP13')
gosub @VIDPOK_33939
Text.Display($deal_y[0], $8892[9], 'VP14')
gosub @VIDPOK_34131
Text.SetColor(255, 255, 255, 255)
Text.Display($vp_edit_counter[5], $8915[5], 'VP05')
gosub @VIDPOK_34131
Text.SetRightJustify(True)
Text.SetColor(255, 255, 255, 255)
Text.DisplayWithNumber($deal_y[1], $8892[0], 'VP15', 1)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[1], $8892[1], 'VP15', 250)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[1], $8892[2], 'VP15', 50)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[1], $8892[3], 'VP15', 25)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[1], $8892[4], 'VP15', 9)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[1], $8892[5], 'VP15', 6)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[1], $8892[6], 'VP15', 4)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[1], $8892[7], 'VP15', 3)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[1], $8892[8], 'VP15', 2)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[1], $8892[9], 'VP15', 1)
gosub @VIDPOK_34131
Text.SetRightJustify(True)
Text.SetColor(255, 255, 255, 255)
Text.DisplayWithNumber($deal_y[2], $8892[0], 'VP15', 2)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[2], $8892[1], 'VP15', 500)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[2], $8892[2], 'VP15', 100)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[2], $8892[3], 'VP15', 50)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[2], $8892[4], 'VP15', 18)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[2], $8892[5], 'VP15', 12)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[2], $8892[6], 'VP15', 8)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[2], $8892[7], 'VP15', 6)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[2], $8892[8], 'VP15', 4)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[2], $8892[9], 'VP15', 2)
gosub @VIDPOK_34131
Text.SetRightJustify(True)
Text.SetColor(255, 255, 255, 255)
Text.DisplayWithNumber($deal_y[3], $8892[0], 'VP15', 3)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[3], $8892[1], 'VP15', 750)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[3], $8892[2], 'VP15', 150)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[3], $8892[3], 'VP15', 75)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[3], $8892[4], 'VP15', 27)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[3], $8892[5], 'VP15', 18)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[3], $8892[6], 'VP15', 12)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[3], $8892[7], 'VP15', 9)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[3], $8892[8], 'VP15', 6)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[3], $8892[9], 'VP15', 3)
gosub @VIDPOK_34131
Text.SetRightJustify(True)
Text.SetColor(255, 255, 255, 255)
Text.DisplayWithNumber($deal_y[4], $8892[0], 'VP15', 4)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[4], $8892[1], 'VP15', 1000)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[4], $8892[2], 'VP15', 200)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[4], $8892[3], 'VP15', 100)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[4], $8892[4], 'VP15', 36)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[4], $8892[5], 'VP15', 24)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[4], $8892[6], 'VP15', 16)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[4], $8892[7], 'VP15', 12)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[4], $8892[8], 'VP15', 8)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[4], $8892[9], 'VP15', 4)
gosub @VIDPOK_34131
Text.SetRightJustify(True)
Text.SetColor(255, 255, 255, 255)
Text.DisplayWithNumber($deal_y[5], $8892[0], 'VP15', 5)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[5], $8892[1], 'VP15', 4000)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[5], $8892[2], 'VP15', 250)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[5], $8892[3], 'VP15', 125)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[5], $8892[4], 'VP15', 45)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[5], $8892[5], 'VP15', 30)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[5], $8892[6], 'VP15', 20)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[5], $8892[7], 'VP15', 15)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[5], $8892[8], 'VP15', 10)
gosub @VIDPOK_34323
Text.SetRightJustify(True)
Text.DisplayWithNumber($deal_y[5], $8892[9], 'VP15', 5)
Hud.DrawRect($vp_bet_one_height[0], $8944[0], $8953[0], $8962[0], $9019[0], $9025[0], $9031[0], 255)
Hud.DrawRect($vp_bet_one_height[1], $8944[1], $8953[1], $8962[1], $9019[0], $9025[0], $9031[0], 255)
Hud.DrawRect($vp_bet_one_height[2], $8944[2], $8953[2], $8962[2], $9019[0], $9025[0], $9031[0], 255)
Hud.DrawRect($vp_bet_one_height[3], $8944[3], $8953[3], $8962[3], $9019[0], $9025[0], $9031[0], 255)
Hud.DrawRect($vp_bet_one_height[4], $8944[4], $8953[4], $8962[4], $9019[0], $9025[0], $9031[0], 255)
Hud.DrawRect($vp_bet_one_height[5], $8944[5], $8953[5], $8962[5], $9019[0], $9025[0], $9031[0], 255)
Hud.DrawRect($vp_bet_one_height[6], $8944[6], $8953[6], $8962[6], $9019[0], $9025[0], $9031[0], 255)
Hud.DrawRect($vp_bet_one_height[7], $8944[7], $8953[7], $8962[7], $9019[0], $9025[0], $9031[0], 255)
Hud.DrawRect($vp_bet_one_height[8], $8944[8], $8953[8], $8962[8], $9019[0], $9025[0], $9031[0], 255)
$9063 = 0

:VIDPOK_30030
if 
  5 > $9063
goto_if_false @VIDPOK_31216
if 
  $no_of_coins($9063,5i) == 0
goto_if_false @VIDPOK_30113
Hud.DrawSprite(53, $vp_initial_stake($9063,5f), $8877($9063,5f), $vp_card_height, $8923, 128, 128, 128, 255)
goto @VIDPOK_30154

:VIDPOK_30113
Hud.DrawSprite($no_of_coins($9063,5i), $vp_initial_stake($9063,5f), $8877($9063,5f), $vp_card_height, $8923, 128, 128, 128, 255)

:VIDPOK_30154
set_var_float_to_var_float $x = $vp_initial_stake($9063,5f)
set_var_float_to_var_float $y = $8877($9063,5f)
add_float_var_to_float_var $y += $vp_card_width
if 
  $8836($9063,5i) == 0
goto_if_false @VIDPOK_30365
set_var_float_to_var_float $vp_border_thickness = $vp_hold_button_offset
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($x, $y, $vp_border_thickness, $vp_border_width, 0, 0, 0, 128)
Hud.DrawRect($x, $y, $vp_hold_button_offset, $vp_hold_width, 128, 128, 128, 255)
gosub @VIDPOK_34515
Text.SetColor(128, 128, 128, 255)
Text.SetEdge($9013[5], 0, 0, 0, 128)
set_lvar_float_to_var_float 15@ = $vp_hold_width
div_float_lvar_by_float_var 15@ /= $9037
sub_float_lvar_from_float_var $y -= 15@
Text.Display($x, $y, 'VP19')

:VIDPOK_30365
if 
  $8836($9063,5i) == 1
goto_if_false @VIDPOK_30546
set_var_float_to_var_float $vp_border_thickness = $vp_hold_button_offset
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($x, $y, $vp_border_thickness, $vp_border_width, 255, $vphud_int, 0, 128)
Hud.DrawRect($x, $y, $vp_hold_button_offset, $vp_hold_width, 128, 128, 128, 255)
gosub @VIDPOK_34515
Text.SetColor(128, 128, 128, 255)
Text.SetEdge($9013[5], 0, 0, 0, 128)
set_lvar_float_to_var_float 15@ = $vp_hold_width
div_float_lvar_by_float_var 15@ /= $9037
sub_float_lvar_from_float_var $y -= 15@
Text.Display($x, $y, 'VP19')

:VIDPOK_30546
if 
  $8836($9063,5i) == 2
goto_if_false @VIDPOK_30707
set_var_float_to_var_float $vp_border_thickness = $vp_hold_button_offset
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($x, $y, $vp_border_thickness, $vp_border_width, 0, 0, 0, 255)
Hud.DrawRect($x, $y, $vp_hold_button_offset, $vp_hold_width, 0, 128, 0, 255)
gosub @VIDPOK_34515
Text.SetColor(0, 255, 0, 255)
set_lvar_float_to_var_float 15@ = $vp_hold_width
div_float_lvar_by_float_var 15@ /= $9037
sub_float_lvar_from_float_var $y -= 15@
Text.Display($x, $y, 'VP19')

:VIDPOK_30707
if 
  $8836($9063,5i) == 3
goto_if_false @VIDPOK_30872
set_var_float_to_var_float $vp_border_thickness = $vp_hold_button_offset
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($x, $y, $vp_border_thickness, $vp_border_width, 255, $vphud_int, 0, 255)
Hud.DrawRect($x, $y, $vp_hold_button_offset, $vp_hold_width, 0, 128, 0, 255)
gosub @VIDPOK_34515
Text.SetColor($8983[5], $vphud_int, $8995[5], 255)
set_lvar_float_to_var_float 15@ = $vp_hold_width
div_float_lvar_by_float_var 15@ /= $9037
sub_float_lvar_from_float_var $y -= 15@
Text.Display($x, $y, 'VP19')

:VIDPOK_30872
if 
  $8836($9063,5i) == 4
goto_if_false @VIDPOK_31035
set_var_float_to_var_float $vp_border_thickness = $vp_hold_button_offset
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($x, $y, $vp_border_thickness, $vp_border_width, 0, 0, 0, 255)
Hud.DrawRect($x, $y, $vp_hold_button_offset, $vp_hold_width, $8983[1], $8989[1], $8995[1], 255)
gosub @VIDPOK_34515
Text.SetColor(255, 0, 0, 255)
set_lvar_float_to_var_float 15@ = $vp_hold_width
div_float_lvar_by_float_var 15@ /= $9037
sub_float_lvar_from_float_var $y -= 15@
Text.Display($x, $y, 'VP19')

:VIDPOK_31035
if 
  $8836($9063,5i) == 5
goto_if_false @VIDPOK_31202
set_var_float_to_var_float $vp_border_thickness = $vp_hold_button_offset
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($x, $y, $vp_border_thickness, $vp_border_width, 255, $vphud_int, 0, 255)
Hud.DrawRect($x, $y, $vp_hold_button_offset, $vp_hold_width, $8983[1], $8989[1], $8995[1], 255)
gosub @VIDPOK_34515
Text.SetColor($8983[5], $vphud_int, $8995[5], 255)
set_lvar_float_to_var_float 15@ = $vp_hold_width
div_float_lvar_by_float_var 15@ /= $9037
sub_float_lvar_from_float_var $y -= 15@
Text.Display($x, $y, 'VP19')

:VIDPOK_31202
$9063 += 1
goto @VIDPOK_30030

:VIDPOK_31216
if 
  $8841 == 0
goto_if_false @VIDPOK_31399
set_var_float_to_var_float $vp_border_thickness = $vp_deal_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($8882, $bet_one_x, $vp_border_thickness, $vp_border_width, 0, 0, 0, 128)
Hud.DrawRect($8882, $bet_one_x, $vp_deal_height, $vp_bet_one_width, 128, 128, 128, 255)
gosub @VIDPOK_34515
Text.SetColor(128, 128, 128, 255)
Text.SetEdge($9013[5], 0, 0, 0, 128)
set_lvar_float_to_var_float 15@ = $vp_bet_one_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $bet_one_x
sub_float_lvar_from_float_var $y -= 15@
Text.Display($8882, $y, 'VP20')

:VIDPOK_31399
if 
  $8841 == 1
goto_if_false @VIDPOK_31584
set_var_float_to_var_float $vp_border_thickness = $vp_deal_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($8882, $bet_one_x, $vp_border_thickness, $vp_border_width, 255, $vphud_int, 0, 128)
Hud.DrawRect($8882, $bet_one_x, $vp_deal_height, $vp_bet_one_width, 128, 128, 128, 255)
gosub @VIDPOK_34515
Text.SetColor(128, 128, 128, 255)
Text.SetEdge($9013[5], 0, 0, 0, 128)
set_lvar_float_to_var_float 15@ = $vp_bet_one_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $bet_one_x
sub_float_lvar_from_float_var $y -= 15@
Text.Display($8882, $y, 'VP20')

:VIDPOK_31584
if 
  $8841 == 2
goto_if_false @VIDPOK_31749
set_var_float_to_var_float $vp_border_thickness = $vp_deal_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($8882, $bet_one_x, $vp_border_thickness, $vp_border_width, 0, 0, 0, 255)
Hud.DrawRect($8882, $bet_one_x, $vp_deal_height, $vp_bet_one_width, 0, 128, 0, 255)
gosub @VIDPOK_34515
Text.SetColor(0, 255, 0, 255)
set_lvar_float_to_var_float 15@ = $vp_bet_one_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $bet_one_x
sub_float_lvar_from_float_var $y -= 15@
Text.Display($8882, $y, 'VP20')

:VIDPOK_31749
if 
  $8841 == 3
goto_if_false @VIDPOK_31918
set_var_float_to_var_float $vp_border_thickness = $vp_deal_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($8882, $bet_one_x, $vp_border_thickness, $vp_border_width, 255, $vphud_int, 0, 255)
Hud.DrawRect($8882, $bet_one_x, $vp_deal_height, $vp_bet_one_width, 0, 128, 0, 255)
gosub @VIDPOK_34515
Text.SetColor($8983[5], $vphud_int, $8995[5], 255)
set_lvar_float_to_var_float 15@ = $vp_bet_one_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $bet_one_x
sub_float_lvar_from_float_var $y -= 15@
Text.Display($8882, $y, 'VP20')

:VIDPOK_31918
if 
  $8841 == 4
goto_if_false @VIDPOK_32085
set_var_float_to_var_float $vp_border_thickness = $vp_deal_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($8882, $bet_one_x, $vp_border_thickness, $vp_border_width, 0, 0, 0, 255)
Hud.DrawRect($8882, $bet_one_x, $vp_deal_height, $vp_bet_one_width, $8983[1], $8989[1], $8995[1], 255)
gosub @VIDPOK_34515
Text.SetColor(255, 0, 0, 255)
set_lvar_float_to_var_float 15@ = $vp_bet_one_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $bet_one_x
sub_float_lvar_from_float_var $y -= 15@
Text.Display($8882, $y, 'VP20')

:VIDPOK_32085
if 
  $8841 == 5
goto_if_false @VIDPOK_32256
set_var_float_to_var_float $vp_border_thickness = $vp_deal_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($8882, $bet_one_x, $vp_border_thickness, $vp_border_width, 255, $vphud_int, 0, 255)
Hud.DrawRect($8882, $bet_one_x, $vp_deal_height, $vp_bet_one_width, $8983[1], $8989[1], $8995[1], 255)
gosub @VIDPOK_34515
Text.SetColor($8983[5], $vphud_int, $8995[5], 255)
set_lvar_float_to_var_float 15@ = $vp_bet_one_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $bet_one_x
sub_float_lvar_from_float_var $y -= 15@
Text.Display($8882, $y, 'VP20')

:VIDPOK_32256
if 
  $bet_one_value == 0
goto_if_false @VIDPOK_32439
set_var_float_to_var_float $vp_border_thickness = $vp_border_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($bet_one_y, $deal_x, $vp_border_thickness, $vp_border_width, 0, 0, 0, 128)
Hud.DrawRect($bet_one_y, $deal_x, $vp_border_height, $vp_deal_width, 128, 128, 128, 255)
gosub @VIDPOK_34515
Text.SetColor(128, 128, 128, 255)
Text.SetEdge($9013[5], 0, 0, 0, 128)
set_lvar_float_to_var_float 15@ = $vp_deal_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $deal_x
sub_float_lvar_from_float_var $y -= 15@
Text.Display($bet_one_y, $y, 'VP21')

:VIDPOK_32439
if 
  $bet_one_value == 1
goto_if_false @VIDPOK_32624
set_var_float_to_var_float $vp_border_thickness = $vp_border_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($bet_one_y, $deal_x, $vp_border_thickness, $vp_border_width, 255, $vphud_int, 0, 128)
Hud.DrawRect($bet_one_y, $deal_x, $vp_border_height, $vp_deal_width, 128, 128, 128, 255)
gosub @VIDPOK_34515
Text.SetColor(128, 128, 128, 255)
Text.SetEdge($9013[5], 0, 0, 0, 128)
set_lvar_float_to_var_float 15@ = $vp_deal_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $deal_x
sub_float_lvar_from_float_var $y -= 15@
Text.Display($bet_one_y, $y, 'VP21')

:VIDPOK_32624
if 
  $bet_one_value == 2
goto_if_false @VIDPOK_32789
set_var_float_to_var_float $vp_border_thickness = $vp_border_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($bet_one_y, $deal_x, $vp_border_thickness, $vp_border_width, 0, 0, 0, 255)
Hud.DrawRect($bet_one_y, $deal_x, $vp_border_height, $vp_deal_width, 0, 128, 0, 255)
gosub @VIDPOK_34515
Text.SetColor(0, 255, 0, 255)
set_lvar_float_to_var_float 15@ = $vp_deal_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $deal_x
sub_float_lvar_from_float_var $y -= 15@
Text.Display($bet_one_y, $y, 'VP21')

:VIDPOK_32789
if 
  $bet_one_value == 3
goto_if_false @VIDPOK_32958
set_var_float_to_var_float $vp_border_thickness = $vp_border_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($bet_one_y, $deal_x, $vp_border_thickness, $vp_border_width, 255, $vphud_int, 0, 255)
Hud.DrawRect($bet_one_y, $deal_x, $vp_border_height, $vp_deal_width, 0, 128, 0, 255)
gosub @VIDPOK_34515
Text.SetColor($8983[5], $vphud_int, $8995[5], 255)
set_lvar_float_to_var_float 15@ = $vp_deal_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $deal_x
sub_float_lvar_from_float_var $y -= 15@
Text.Display($bet_one_y, $y, 'VP21')

:VIDPOK_32958
if 
  $bet_one_value == 4
goto_if_false @VIDPOK_33125
set_var_float_to_var_float $vp_border_thickness = $vp_border_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($bet_one_y, $deal_x, $vp_border_thickness, $vp_border_width, 0, 0, 0, 255)
Hud.DrawRect($bet_one_y, $deal_x, $vp_border_height, $vp_deal_width, $8983[1], $8989[1], $8995[1], 255)
gosub @VIDPOK_34515
Text.SetColor(255, 0, 0, 255)
set_lvar_float_to_var_float 15@ = $vp_deal_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $deal_x
sub_float_lvar_from_float_var $y -= 15@
Text.Display($bet_one_y, $y, 'VP21')

:VIDPOK_33125
if 
  $bet_one_value == 5
goto_if_false @VIDPOK_33296
set_var_float_to_var_float $vp_border_thickness = $vp_border_height
add_float_var_to_float_var $vp_border_thickness += $vp_hold_height
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_hold_height
Hud.DrawRect($bet_one_y, $deal_x, $vp_border_thickness, $vp_border_width, 255, $vphud_int, 0, 255)
Hud.DrawRect($bet_one_y, $deal_x, $vp_border_height, $vp_deal_width, $8983[1], $8989[1], $8995[1], 255)
gosub @VIDPOK_34515
Text.SetColor($8983[5], $vphud_int, $8995[5], 255)
set_lvar_float_to_var_float 15@ = $vp_deal_width
div_float_lvar_by_float_var 15@ /= $9037
set_var_float_to_var_float $y = $deal_x
sub_float_lvar_from_float_var $y -= 15@
Text.Display($bet_one_y, $y, 'VP21')

:VIDPOK_33296
return 

:VIDPOK_33298
if and
  27 > $TILE_HEIGHT
  $TILE_HEIGHT > 13
goto_if_false @VIDPOK_33338
set_var_int_to_var_int $vp_in_card_value = $TILE_HEIGHT
$vp_in_card_value -= 13

:VIDPOK_33338
if and
  40 > $TILE_HEIGHT
  $TILE_HEIGHT > 26
goto_if_false @VIDPOK_33378
set_var_int_to_var_int $vp_in_card_value = $TILE_HEIGHT
$vp_in_card_value -= 26

:VIDPOK_33378
if and
  53 > $TILE_HEIGHT
  $TILE_HEIGHT > 39
goto_if_false @VIDPOK_33418
set_var_int_to_var_int $vp_in_card_value = $TILE_HEIGHT
$vp_in_card_value -= 39

:VIDPOK_33418
if 
  13 >= $TILE_HEIGHT
goto_if_false @VIDPOK_33444
set_var_int_to_var_int $vp_in_card_value = $TILE_HEIGHT

:VIDPOK_33444
return 

:VIDPOK_33446
if 
  14 > $TILE_HEIGHT
goto_if_false @VIDPOK_33478
$vp_in_card_value = 1
goto @VIDPOK_33549

:VIDPOK_33478
if 
  27 > $TILE_HEIGHT
goto_if_false @VIDPOK_33510
$vp_in_card_value = 2
goto @VIDPOK_33549

:VIDPOK_33510
if 
  40 > $TILE_HEIGHT
goto_if_false @VIDPOK_33542
$vp_in_card_value = 3
goto @VIDPOK_33549

:VIDPOK_33542
$vp_in_card_value = 4

:VIDPOK_33549
return 

:VIDPOK_33551
return 

:VIDPOK_33553
return 

:VIDPOK_33555
Text.SetScale($8971[0], $8977[0])
Text.SetColor($8983[0], $8989[0], $8995[0], 255)
if 
  $9007[0] == 1
goto_if_false @VIDPOK_33599
Text.SetCenter(True)

:VIDPOK_33599
switch_start $9001[0] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_33706 {caseNum1} 0 {caseLabel1} @VIDPOK_33662 {caseNum2} 1 {caseLabel2} @VIDPOK_33673 {caseNum3} 2 {caseLabel3} @VIDPOK_33684 {caseNum4} 3 {caseLabel4} @VIDPOK_33695 {caseNum5} -1 {caseLabel5} @VIDPOK_33717 {caseNum6} -1 {caseLabel6} @VIDPOK_33717 {caseNum7} -1 {caseLabel7} @VIDPOK_33717

:VIDPOK_33662
Text.SetFont(Font.Gothic)
goto @VIDPOK_33717

:VIDPOK_33673
Text.SetFont(Font.Subtitles)
goto @VIDPOK_33717

:VIDPOK_33684
Text.SetFont(Font.Menu)
goto @VIDPOK_33717

:VIDPOK_33695
Text.SetFont(Font.Pricedown)
goto @VIDPOK_33717

:VIDPOK_33706
Text.SetFont(Font.Gothic)
goto @VIDPOK_33717

:VIDPOK_33717
Text.SetEdge($9013[0], $9019[0], $9025[0], $9031[0], 255)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 

:VIDPOK_33747
Text.SetScale($8971[1], $8977[1])
Text.SetColor($8983[1], $8989[1], $8995[1], 255)
if 
  $9007[1] == 1
goto_if_false @VIDPOK_33791
Text.SetCenter(True)

:VIDPOK_33791
switch_start $9001[1] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_33898 {caseNum1} 0 {caseLabel1} @VIDPOK_33854 {caseNum2} 1 {caseLabel2} @VIDPOK_33865 {caseNum3} 2 {caseLabel3} @VIDPOK_33876 {caseNum4} 3 {caseLabel4} @VIDPOK_33887 {caseNum5} -1 {caseLabel5} @VIDPOK_33909 {caseNum6} -1 {caseLabel6} @VIDPOK_33909 {caseNum7} -1 {caseLabel7} @VIDPOK_33909

:VIDPOK_33854
Text.SetFont(Font.Gothic)
goto @VIDPOK_33909

:VIDPOK_33865
Text.SetFont(Font.Subtitles)
goto @VIDPOK_33909

:VIDPOK_33876
Text.SetFont(Font.Menu)
goto @VIDPOK_33909

:VIDPOK_33887
Text.SetFont(Font.Pricedown)
goto @VIDPOK_33909

:VIDPOK_33898
Text.SetFont(Font.Gothic)
goto @VIDPOK_33909

:VIDPOK_33909
Text.SetEdge($9013[1], $9019[1], $9025[1], $9031[1], 255)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 

:VIDPOK_33939
Text.SetScale($8971[2], $8977[2])
Text.SetColor($8983[2], $8989[2], $8995[2], 255)
if 
  $9007[2] == 1
goto_if_false @VIDPOK_33983
Text.SetCenter(True)

:VIDPOK_33983
switch_start $9001[2] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_34090 {caseNum1} 0 {caseLabel1} @VIDPOK_34046 {caseNum2} 1 {caseLabel2} @VIDPOK_34057 {caseNum3} 2 {caseLabel3} @VIDPOK_34068 {caseNum4} 3 {caseLabel4} @VIDPOK_34079 {caseNum5} -1 {caseLabel5} @VIDPOK_34101 {caseNum6} -1 {caseLabel6} @VIDPOK_34101 {caseNum7} -1 {caseLabel7} @VIDPOK_34101

:VIDPOK_34046
Text.SetFont(Font.Gothic)
goto @VIDPOK_34101

:VIDPOK_34057
Text.SetFont(Font.Subtitles)
goto @VIDPOK_34101

:VIDPOK_34068
Text.SetFont(Font.Menu)
goto @VIDPOK_34101

:VIDPOK_34079
Text.SetFont(Font.Pricedown)
goto @VIDPOK_34101

:VIDPOK_34090
Text.SetFont(Font.Gothic)
goto @VIDPOK_34101

:VIDPOK_34101
Text.SetEdge($9013[2], $9019[2], $9025[2], $9031[2], 255)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 

:VIDPOK_34131
Text.SetScale($8971[3], $8977[3])
Text.SetColor($8983[3], $8989[3], $8995[3], 255)
if 
  $9007[3] == 1
goto_if_false @VIDPOK_34175
Text.SetCenter(True)

:VIDPOK_34175
switch_start $9001[3] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_34282 {caseNum1} 0 {caseLabel1} @VIDPOK_34238 {caseNum2} 1 {caseLabel2} @VIDPOK_34249 {caseNum3} 2 {caseLabel3} @VIDPOK_34260 {caseNum4} 3 {caseLabel4} @VIDPOK_34271 {caseNum5} -1 {caseLabel5} @VIDPOK_34293 {caseNum6} -1 {caseLabel6} @VIDPOK_34293 {caseNum7} -1 {caseLabel7} @VIDPOK_34293

:VIDPOK_34238
Text.SetFont(Font.Gothic)
goto @VIDPOK_34293

:VIDPOK_34249
Text.SetFont(Font.Subtitles)
goto @VIDPOK_34293

:VIDPOK_34260
Text.SetFont(Font.Menu)
goto @VIDPOK_34293

:VIDPOK_34271
Text.SetFont(Font.Pricedown)
goto @VIDPOK_34293

:VIDPOK_34282
Text.SetFont(Font.Gothic)
goto @VIDPOK_34293

:VIDPOK_34293
Text.SetEdge($9013[3], $9019[3], $9025[3], $9031[3], 255)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 

:VIDPOK_34323
Text.SetScale($8971[4], $8977[4])
Text.SetColor($8983[4], $8989[4], $8995[4], 255)
if 
  $9007[4] == 1
goto_if_false @VIDPOK_34367
Text.SetCenter(True)

:VIDPOK_34367
switch_start $9001[4] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_34474 {caseNum1} 0 {caseLabel1} @VIDPOK_34430 {caseNum2} 1 {caseLabel2} @VIDPOK_34441 {caseNum3} 2 {caseLabel3} @VIDPOK_34452 {caseNum4} 3 {caseLabel4} @VIDPOK_34463 {caseNum5} -1 {caseLabel5} @VIDPOK_34485 {caseNum6} -1 {caseLabel6} @VIDPOK_34485 {caseNum7} -1 {caseLabel7} @VIDPOK_34485

:VIDPOK_34430
Text.SetFont(Font.Gothic)
goto @VIDPOK_34485

:VIDPOK_34441
Text.SetFont(Font.Subtitles)
goto @VIDPOK_34485

:VIDPOK_34452
Text.SetFont(Font.Menu)
goto @VIDPOK_34485

:VIDPOK_34463
Text.SetFont(Font.Pricedown)
goto @VIDPOK_34485

:VIDPOK_34474
Text.SetFont(Font.Gothic)
goto @VIDPOK_34485

:VIDPOK_34485
Text.SetEdge($9013[4], $9019[4], $9025[4], $9031[4], 255)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 

:VIDPOK_34515
Text.SetScale($8971[5], $8977[5])
Text.SetColor($8983[5], $8989[5], $8995[5], 255)
if 
  $9007[5] == 1
goto_if_false @VIDPOK_34559
Text.SetCenter(True)

:VIDPOK_34559
switch_start $9001[5] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_34666 {caseNum1} 0 {caseLabel1} @VIDPOK_34622 {caseNum2} 1 {caseLabel2} @VIDPOK_34633 {caseNum3} 2 {caseLabel3} @VIDPOK_34644 {caseNum4} 3 {caseLabel4} @VIDPOK_34655 {caseNum5} -1 {caseLabel5} @VIDPOK_34677 {caseNum6} -1 {caseLabel6} @VIDPOK_34677 {caseNum7} -1 {caseLabel7} @VIDPOK_34677

:VIDPOK_34622
Text.SetFont(Font.Gothic)
goto @VIDPOK_34677

:VIDPOK_34633
Text.SetFont(Font.Subtitles)
goto @VIDPOK_34677

:VIDPOK_34644
Text.SetFont(Font.Menu)
goto @VIDPOK_34677

:VIDPOK_34655
Text.SetFont(Font.Pricedown)
goto @VIDPOK_34677

:VIDPOK_34666
Text.SetFont(Font.Gothic)
goto @VIDPOK_34677

:VIDPOK_34677
Text.SetEdge($9013[5], $9019[5], $9025[5], $9031[5], 255)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 
Text.SetScale(0.54, 1.44)
Text.SetColor(128, 148, 178, 255)
Text.SetJustify(True)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 
Text.SetScale(0.54, 1.44)
Text.SetColor(128, 148, 178, 255)
Text.SetCenter(True)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 

:VIDPOK_34793
15@ = Stat.GetFloat(StatId.Gambling)
if 
  50.0 > 15@
goto_if_false @VIDPOK_34835
$bj_payout = 100
goto @VIDPOK_34955

:VIDPOK_34835
if 
  150.0 > 15@
goto_if_false @VIDPOK_34871
$bj_payout = 1000
goto @VIDPOK_34955

:VIDPOK_34871
if 
  350.0 > 15@
goto_if_false @VIDPOK_34907
$bj_payout = 10000
goto @VIDPOK_34955

:VIDPOK_34907
if 
  1000.0 > 15@
goto_if_false @VIDPOK_34945
$bj_payout = 100000
goto @VIDPOK_34955

:VIDPOK_34945
$bj_payout = 1000000

:VIDPOK_34955
return 

:VIDPOK_34957
Game.SetMinigameInProgress(False)
3@ = 0
4@ = 0
5@ = 0
6@ = 0
7@ = 0
terminate_all_scripts_with_this_name 'CASHWIN'
Text.ClearPrints
Text.ClearHelp
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Txd.Remove
Text.UseCommands(False)
Player.SetControl($player1, True)
Hud.Display(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
return 
terminate_this_script 

//-------------External script 17 (BLACKJ)---------------

:BLACKJ
script_name 'BLACKJ'
2@ = 0
3@ = 0
4@ = 0
5@ = 0
22@ = 0
23@ = 0
24@ = 0
if 
  3@ == -1
goto_if_false @BLACKJ_193
0@ = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
1@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
$bj_chip_set_default_z = Object.Create(#WOODENBOX, 0.0, 0.0, 0.0)
$active_bj_table = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
$total_bj_tables[0] = Object.Create(#CHIP_STACK07, 0.0, 0.0, 0.0)

:BLACKJ_193
29@ = -99

:BLACKJ_200
wait 0
if 
  $iTerminateAllAmbience == 0
goto_if_false @BLACKJ_2463
if 
  Object.DoesExist(0@)
goto_if_false @BLACKJ_2447
if 
  Object.IsWithinBrainActivationRange(0@)
goto_if_false @BLACKJ_2431
if 
  $bj_chip_set_default_z == 0
goto_if_false @BLACKJ_2343
if 
  Player.IsPlaying($player1)
goto_if_false @BLACKJ_2327
if 
  2@ == 0
goto_if_false @BLACKJ_1076
if 
  3@ == 0
goto_if_false @BLACKJ_869
10@ = Math.RandomIntInRange(0, 2)
if 
  10@ == 0
goto_if_false @BLACKJ_366
set_lvar_int_to_constant 26@ = 171
goto @BLACKJ_374

:BLACKJ_366
set_lvar_int_to_constant 26@ = 171

:BLACKJ_374
if 
  not Streaming.HasModelLoaded(26@)
goto_if_false @BLACKJ_395
Streaming.RequestModel(26@)

:BLACKJ_395
if 
  not Streaming.HasAnimationLoaded("CASINO")
goto_if_false @BLACKJ_426
Streaming.RequestAnimation("CASINO")

:BLACKJ_426
if 
  29@ == -99
goto_if_false @BLACKJ_862
13@ = Stat.GetFloat(StatId.Gambling)
if 
  $bj_offering_credit == 0
goto_if_false @BLACKJ_675
if 
  1.0 > 13@
goto_if_false @BLACKJ_511
29@ = 100
30@ = 1
goto @BLACKJ_661

:BLACKJ_511
if 
  10.0 > 13@
goto_if_false @BLACKJ_554
29@ = 1000
30@ = 10
goto @BLACKJ_661

:BLACKJ_554
if 
  100.0 > 13@
goto_if_false @BLACKJ_597
29@ = 10000
30@ = 100
goto @BLACKJ_661

:BLACKJ_597
if 
  1000.0 > 13@
goto_if_false @BLACKJ_643
29@ = 100000
30@ = 1000
goto @BLACKJ_661

:BLACKJ_643
29@ = 1000000
30@ = 10000

:BLACKJ_661
$bj_offering_credit += 1
goto @BLACKJ_862

:BLACKJ_675
10@ = Math.RandomIntInRange(0, 5)
switch_start 10@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_862 {caseNum1} 0 {caseLabel1} @BLACKJ_747 {caseNum2} 1 {caseLabel2} @BLACKJ_768 {caseNum3} 2 {caseLabel3} @BLACKJ_790 {caseNum4} 3 {caseLabel4} @BLACKJ_812 {caseNum5} 4 {caseLabel5} @BLACKJ_837 {caseNum6} -1 {caseLabel6} @BLACKJ_862 {caseNum7} -1 {caseLabel7} @BLACKJ_862

:BLACKJ_747
29@ = 100
30@ = 1
goto @BLACKJ_862

:BLACKJ_768
29@ = 1000
30@ = 10
goto @BLACKJ_862

:BLACKJ_790
29@ = 10000
30@ = 100
goto @BLACKJ_862

:BLACKJ_812
29@ = 100000
30@ = 1000
goto @BLACKJ_862

:BLACKJ_837
29@ = 1000000
30@ = 10000
goto @BLACKJ_862

:BLACKJ_862
3@ += 1

:BLACKJ_869
if 
  3@ == 1
goto_if_false @BLACKJ_920
if and
  Streaming.HasModelLoaded(26@)
  Streaming.HasAnimationLoaded("CASINO")
goto_if_false @BLACKJ_920
3@ += 1

:BLACKJ_920
if 
  3@ == 2
goto_if_false @BLACKJ_1076
if 
  not Char.DoesExist(1@)
goto_if_false @BLACKJ_1062
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, 0.4, 0.0)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
1@ = Char.Create(PedType.CivMale, 26@, $x, $y, $z)
Char.SetDecisionMaker(1@, $iGlobalPedPanicDM)
$heading = Object.GetHeading(0@)
$heading += 180.0
Char.SetHeading(1@, $heading)
Streaming.MarkModelAsNoLongerNeeded(26@)
Object.EnableDisabledAttractors(0@, True)

:BLACKJ_1062
2@ += 1
3@ = 0

:BLACKJ_1076
if 
  2@ == 1
goto_if_false @BLACKJ_2320
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_2320
if 
  $fFunTemp == 0
goto_if_false @BLACKJ_2271
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, 0.4, 0.0)
if 
  Char.LocateOnFoot3D(1@, $x, $y, $z, 0.4, 0.4, 2.0, False)
goto_if_false @BLACKJ_2215
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, -1.5, 0.0)
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.5, 0.5, 2.0, False)
goto_if_false @BLACKJ_2159
if 
  Char.IsOnFoot($scplayer)
goto_if_false @BLACKJ_2152
if 
  22@ == 0
goto_if_false @BLACKJ_2128
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BLACKJ_1875
$dealer_got_bj = Player.StoreScore($player1)
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_lvar $dealer_got_bj > 30@
goto_if_false @BLACKJ_1845
10@ = 0
13@ = Stat.GetFloat(StatId.Gambling)
if 
  29@ == 1000000
goto_if_false @BLACKJ_1449
if 
  1000.0 > 13@
goto_if_false @BLACKJ_1442
Text.PrintNow('GAMBSTA', 5000, 1)
10@ = 1

:BLACKJ_1442
goto @BLACKJ_1654

:BLACKJ_1449
if 
  29@ == 100000
goto_if_false @BLACKJ_1521
if 
  100.0 > 13@
goto_if_false @BLACKJ_1514
Text.PrintNow('GAMBSTA', 5000, 1)
10@ = 1

:BLACKJ_1514
goto @BLACKJ_1654

:BLACKJ_1521
if 
  29@ == 10000
goto_if_false @BLACKJ_1591
if 
  10.0 > 13@
goto_if_false @BLACKJ_1584
Text.PrintNow('GAMBSTA', 5000, 1)
10@ = 1

:BLACKJ_1584
goto @BLACKJ_1654

:BLACKJ_1591
if 
  29@ == 1000
goto_if_false @BLACKJ_1654
if 
  1.0 > 13@
goto_if_false @BLACKJ_1654
Text.PrintNow('GAMBSTA', 5000, 1)
10@ = 1

:BLACKJ_1654
if 
  10@ == 0
goto_if_false @BLACKJ_1744
if 
  21@ == 1
goto_if_false @BLACKJ_1701
Text.ClearPrints
Text.ClearHelp
21@ = 0

:BLACKJ_1701
2@ = 0
3@ = 0
set_var_int_to_lvar_int $bj_chip_set_default_z = 0@
$colour_a = 0
22@ = 1
goto @BLACKJ_1838

:BLACKJ_1744
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_1838
10@ = Math.RandomIntInRange(0, 2)
if 
  10@ == 0
goto_if_false @BLACKJ_1816
Char.SetSayScript(1@, 30450, True, True, False)
Char.StartFacialTalk(1@, 2000)
goto @BLACKJ_1838

:BLACKJ_1816
Char.SetSayScript(1@, 30451, True, True, False)
Char.StartFacialTalk(1@, 2000)

:BLACKJ_1838
goto @BLACKJ_1868

:BLACKJ_1845
Text.PrintNow('BJ_2', 5000, 1)
gosub @BLACKJ_18301

:BLACKJ_1868
goto @BLACKJ_2121

:BLACKJ_1875
if 
  21@ <> 1
goto_if_false @BLACKJ_2121
if and
  not Text.IsThisHelpMessageBeingDisplayed('SGPUNT')
  not Text.IsThisHelpMessageBeingDisplayed('SGGAMB')
  not Text.IsThisHelpMessageBeingDisplayed('SGPROF')
  not Text.IsThisHelpMessageBeingDisplayed('SGHIRO')
goto_if_false @BLACKJ_2121
Text.SetHelpMessageBoxSize(200)
switch_start 29@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_2114 {caseNum1} 100 {caseLabel1} @BLACKJ_2024 {caseNum2} 1000 {caseLabel2} @BLACKJ_2042 {caseNum3} 10000 {caseLabel3} @BLACKJ_2060 {caseNum4} 100000 {caseLabel4} @BLACKJ_2078 {caseNum5} 1000000 {caseLabel5} @BLACKJ_2096 {caseNum6} -1 {caseLabel6} @BLACKJ_2114 {caseNum7} -1 {caseLabel7} @BLACKJ_2114

:BLACKJ_2024
Text.PrintHelpForever('BJ_1A')
goto @BLACKJ_2114

:BLACKJ_2042
Text.PrintHelpForever('BJ_1B')
goto @BLACKJ_2114

:BLACKJ_2060
Text.PrintHelpForever('BJ_1C')
goto @BLACKJ_2114

:BLACKJ_2078
Text.PrintHelpForever('BJ_1D')
goto @BLACKJ_2114

:BLACKJ_2096
Text.PrintHelpForever('BJ_1E')
goto @BLACKJ_2114

:BLACKJ_2114
21@ = 1

:BLACKJ_2121
goto @BLACKJ_2152

:BLACKJ_2128
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BLACKJ_2152
22@ = 0

:BLACKJ_2152
goto @BLACKJ_2208

:BLACKJ_2159
if 
  21@ == 1
goto_if_false @BLACKJ_2208
Text.ClearThisPrint('BJ_2')
Text.ClearThisPrint('GAMBSTA')
Text.ClearHelp
21@ = 0

:BLACKJ_2208
goto @BLACKJ_2264

:BLACKJ_2215
if 
  21@ == 1
goto_if_false @BLACKJ_2264
Text.ClearThisPrint('BJ_2')
Text.ClearThisPrint('GAMBSTA')
Text.ClearHelp
21@ = 0

:BLACKJ_2264
goto @BLACKJ_2320

:BLACKJ_2271
if 
  21@ == 1
goto_if_false @BLACKJ_2320
Text.ClearThisPrint('BJ_2')
Text.ClearThisPrint('GAMBSTA')
Text.ClearHelp
21@ = 0

:BLACKJ_2320
goto @BLACKJ_2336

:BLACKJ_2327
gosub @BLACKJ_2479
terminate_this_script 

:BLACKJ_2336
goto @BLACKJ_2424

:BLACKJ_2343
if 
  is_int_var_equal_to_int_lvar $bj_chip_set_default_z == 0@
goto_if_false @BLACKJ_2424
if 
  Player.IsPlaying($player1)
goto_if_false @BLACKJ_2424
if 
  5@ == 0
goto_if_false @BLACKJ_2410
gosub @BLACKJ_2533
goto @BLACKJ_2424

:BLACKJ_2410
gosub @BLACKJ_34534
$bj_chip_set_default_z = 0

:BLACKJ_2424
goto @BLACKJ_2440

:BLACKJ_2431
gosub @BLACKJ_2479
terminate_this_script 

:BLACKJ_2440
goto @BLACKJ_2456

:BLACKJ_2447
gosub @BLACKJ_2479
terminate_this_script 

:BLACKJ_2456
goto @BLACKJ_2472

:BLACKJ_2463
gosub @BLACKJ_2479
terminate_this_script 

:BLACKJ_2472
goto @BLACKJ_200

:BLACKJ_2479
if 
  Object.DoesExist(0@)
goto_if_false @BLACKJ_2502
Object.EnableDisabledAttractors(0@, False)

:BLACKJ_2502
Char.MarkAsNoLongerNeeded(1@)
Streaming.RemoveAnimation("CASINO")
$bj_offering_credit -= 1
2@ = 0
return 

:BLACKJ_2533
if 
is_ps2_keyboard_key_just_pressed 44
goto_if_false @BLACKJ_2582
31@ += 1
if 
  31@ > 5
goto_if_false @BLACKJ_2580
31@ = 0

:BLACKJ_2580
clear_all_view_variables 

:BLACKJ_2582
if 
  31@ == 1
goto_if_false @BLACKJ_2838
set_var_int_to_lvar_int $active_bj_croupier = 2@
set_var_int_to_lvar_int $BLACKJ_view_debug = 3@
set_var_int_to_lvar_int $9220 = 4@
set_var_int_to_var_int $9221 = $dealer_wins_by_default
set_var_int_to_var_int $9222 = $player_total1
set_var_int_to_var_int $9223 = $player_total1_b
set_var_int_to_var_int $9224 = $player_total2
set_var_int_to_var_int $9225 = $player_total2_b
set_var_int_to_var_int $9226 = $dealer_total
view_integer_variable $active_bj_croupier {_p2} "M_STAGE"
view_integer_variable $BLACKJ_view_debug {_p2} "M_GOALS"
view_integer_variable $9220 {_p2} "M_GOALS2"
view_integer_variable $9221 {_p2} "PLAYER_TOTAL1"
view_integer_variable $9222 {_p2} "PLAYER_TOTAL1_B"
view_integer_variable $9223 {_p2} "PLAYER_TOTAL2"
view_integer_variable $9224 {_p2} "PLAYER_TOTAL2_B"
view_integer_variable $9225 {_p2} "DEALER_TOTAL"
view_integer_variable $9226 {_p2} "DEALER_TOTAL2"

:BLACKJ_2838
if 
  31@ == 2
goto_if_false @BLACKJ_3148
set_var_int_to_var_int $active_bj_croupier = $9164
set_var_int_to_var_int $BLACKJ_view_debug = $player_cannot_split
set_var_int_to_var_int $9220 = $player_has_split
set_var_int_to_var_int $9221 = $player_cannot_double
set_var_int_to_var_int $9222 = $player_has_doubled1
set_var_int_to_var_int $9223 = $player_has_doubled2
set_var_int_to_var_int $9224 = $player_has_stuck1
set_var_int_to_var_int $9225 = $player_has_stuck2
set_var_int_to_var_int $9226 = $player_has_hit
view_integer_variable $active_bj_croupier {_p2} "PLAYER_CANNOT_SPLIT"
view_integer_variable $BLACKJ_view_debug {_p2} "PLAYER_HAS_SPLIT"
view_integer_variable $9220 {_p2} "PLAYER_CANNOT_DOUBLE"
view_integer_variable $9221 {_p2} "PLAYER_HAS_DOUBLED1"
view_integer_variable $9222 {_p2} "PLAYER_HAS_DOUBLED2"
view_integer_variable $9223 {_p2} "PLAYER_HAS_STUCK1"
view_integer_variable $9224 {_p2} "PLAYER_HAS_STUCK2"
view_integer_variable $9225 {_p2} "PLAYER_HAS_HIT"
view_integer_variable $9226 {_p2} "DEALER_HAS_STUCK"

:BLACKJ_3148
if 
  31@ == 3
goto_if_false @BLACKJ_3441
set_var_int_to_var_int $active_bj_croupier = $dealer_has_stuck
set_var_int_to_var_int $BLACKJ_view_debug = $player_has_quit
set_var_int_to_var_int $9220 = $player_has_won1
set_var_int_to_var_int $9221 = $player_has_won2
set_var_int_to_var_int $9222 = $player_has_input
set_var_int_to_var_int $9223 = $dealer_total2
set_var_int_to_var_int $9224 = $dealer_got_ace
set_var_int_to_var_int $9225 = $player_got_ace1
set_var_int_to_var_int $9226 = $player_got_ace2
view_integer_variable $active_bj_croupier {_p2} "PLAYER_HAS_QUIT"
view_integer_variable $BLACKJ_view_debug {_p2} "PLAYER_HAS_WON1"
view_integer_variable $9220 {_p2} "PLAYER_HAS_WON2"
view_integer_variable $9221 {_p2} "PLAYER_HAS_INPUT"
view_integer_variable $9222 {_p2} "DEALER_WINS_BY_DEFAULT"
view_integer_variable $9223 {_p2} "DEALER_GOT_ACE"
view_integer_variable $9224 {_p2} "PLAYER_GOT_ACE1"
view_integer_variable $9225 {_p2} "PLAYER_GOT_ACE2"
view_integer_variable $9226 {_p2} "PLAYER_GOT_BJ"

:BLACKJ_3441
if 
  31@ == 4
goto_if_false @BLACKJ_3679
set_var_int_to_var_int $active_bj_croupier = $dealer_got_bj
set_var_int_to_lvar_int $BLACKJ_view_debug = 30@
set_var_int_to_lvar_int $9220 = 29@
set_var_int_to_var_int $9221 = $bj_players_cash
set_var_int_to_var_int $9222 = $bj_last_bet
set_var_int_to_var_int $9223 = $bj_bet1
set_var_int_to_var_int $9224 = $bj_bet2
set_var_int_to_var_int $9225 = $bj_half_bet_f
set_var_int_to_var_int $9226 = $bj_half_bet
view_integer_variable $active_bj_croupier {_p2} "BJ_PLAYERS_CASH"
view_integer_variable $BLACKJ_view_debug {_p2} "MIN_BET"
view_integer_variable $9220 {_p2} "MAX_BET"
view_integer_variable $9221 {_p2} "BJ_LAST_BET"
view_integer_variable $9222 {_p2} "BJ_BET1"
view_integer_variable $9223 {_p2} "BJ_BET2"
view_integer_variable $9224 {_p2} "BJ_BET_STEP"
view_integer_variable $9225 {_p2} "BJ_HALF_BET"
view_integer_variable $9226 {_p2} "BJ_REFUND"

:BLACKJ_3679
if 
  31@ == 5
goto_if_false @BLACKJ_3780
set_var_int_to_var_int $active_bj_croupier = $player_got_ace2
set_var_int_to_var_int $BLACKJ_view_debug = $bj_initial_stake
set_var_int_to_var_int $9220 = $bj_refund
view_integer_variable $active_bj_croupier {_p2} "PLAYER_GOT_BJ"
view_integer_variable $BLACKJ_view_debug {_p2} "BJ_PAYOUT"
view_integer_variable $9220 {_p2} "BJ_INITIAL_STAKE"

:BLACKJ_3780
6@ += 1
if 
  6@ > 9
goto_if_false @BLACKJ_3812
6@ = 0

:BLACKJ_3812
7@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 9@ = 7@
sub_int_lvar_from_int_lvar 9@ -= 8@
set_lvar_int_to_lvar_int 8@ = 7@
if or
  Text.IsThisHelpMessageBeingDisplayed('SGPUNT')
  Text.IsThisHelpMessageBeingDisplayed('SGGAMB')
  Text.IsThisHelpMessageBeingDisplayed('SGPROF')
  Text.IsThisHelpMessageBeingDisplayed('SGHIRO')
goto_if_false @BLACKJ_4365
if 
  $bj_initial_last_bet <> 1
goto_if_false @BLACKJ_4079
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_4065
10@ = Math.RandomIntInRange(0, 3)
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_4065 {caseNum1} 0 {caseLabel1} @BLACKJ_4002 {caseNum2} 1 {caseLabel2} @BLACKJ_4023 {caseNum3} 2 {caseLabel3} @BLACKJ_4044 {caseNum4} -1 {caseLabel4} @BLACKJ_4065 {caseNum5} -1 {caseLabel5} @BLACKJ_4065 {caseNum6} -1 {caseLabel6} @BLACKJ_4065 {caseNum7} -1 {caseLabel7} @BLACKJ_4065

:BLACKJ_4002
Char.SetSayScript(1@, 30420, True, True, False)
goto @BLACKJ_4065

:BLACKJ_4023
Char.SetSayScript(1@, 30421, True, True, False)
goto @BLACKJ_4065

:BLACKJ_4044
Char.SetSayScript(1@, 30422, True, True, False)
goto @BLACKJ_4065

:BLACKJ_4065
$bj_initial_last_bet = 1
TIMERA = 0

:BLACKJ_4079
if 
  23@ == 0
goto_if_false @BLACKJ_4130
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BLACKJ_4123
Text.ClearHelp
23@ = 1

:BLACKJ_4123
goto @BLACKJ_4172

:BLACKJ_4130
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BLACKJ_4172
if 
  23@ <> 0
goto_if_false @BLACKJ_4172
23@ = 0

:BLACKJ_4172
if 
  25@ == 0
goto_if_false @BLACKJ_4223
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @BLACKJ_4216
Text.ClearHelp
25@ = 1

:BLACKJ_4216
goto @BLACKJ_4265

:BLACKJ_4223
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @BLACKJ_4265
if 
  25@ <> 0
goto_if_false @BLACKJ_4265
25@ = 0

:BLACKJ_4265
if 
  24@ == 0
goto_if_false @BLACKJ_4316
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @BLACKJ_4309
Text.ClearHelp
24@ = 1

:BLACKJ_4309
goto @BLACKJ_4358

:BLACKJ_4316
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @BLACKJ_4358
if 
  24@ <> 0
goto_if_false @BLACKJ_4358
24@ = 0

:BLACKJ_4358
goto @BLACKJ_4390

:BLACKJ_4365
if 
  $bj_initial_last_bet <> 0
goto_if_false @BLACKJ_4390
$bj_initial_last_bet = 0

:BLACKJ_4390
switch_start 2@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_4551 {caseNum1} 0 {caseLabel1} @BLACKJ_4453 {caseNum2} 1 {caseLabel2} @BLACKJ_4467 {caseNum3} 2 {caseLabel3} @BLACKJ_4481 {caseNum4} 3 {caseLabel4} @BLACKJ_4495 {caseNum5} 4 {caseLabel5} @BLACKJ_4509 {caseNum6} 5 {caseLabel6} @BLACKJ_4523 {caseNum7} 6 {caseLabel7} @BLACKJ_4537

:BLACKJ_4453
gosub @BLACKJ_5013
goto @BLACKJ_4551

:BLACKJ_4467
gosub @BLACKJ_7714
goto @BLACKJ_4551

:BLACKJ_4481
gosub @BLACKJ_9613
goto @BLACKJ_4551

:BLACKJ_4495
gosub @BLACKJ_10187
goto @BLACKJ_4551

:BLACKJ_4509
gosub @BLACKJ_10620
goto @BLACKJ_4551

:BLACKJ_4523
gosub @BLACKJ_15355
goto @BLACKJ_4551

:BLACKJ_4537
gosub @BLACKJ_15877
goto @BLACKJ_4551

:BLACKJ_4551
if 
is_ps2_keyboard_key_just_pressed 24
goto_if_false @BLACKJ_4646
$bj_adjust_mode += 1
if 
  $bj_adjust_mode > 1
goto_if_false @BLACKJ_4626
$bj_adjust_mode = 0
write_debug_with_int "CARD_CHEAT_OFF" {_p2} $bj_adjust_mode
goto @BLACKJ_4646

:BLACKJ_4626
write_debug_with_int "CARD_CHEAT_ON" {_p2} $bj_adjust_mode

:BLACKJ_4646
if 
  $bj_adjust_mode <> 0
goto_if_false @BLACKJ_4790
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_4727
$9227 += 1
if 
  $9227 > 52
goto_if_false @BLACKJ_4711
$9227 = 1

:BLACKJ_4711
write_debug_with_int "NEXT_CARD" {_p2} $9227

:BLACKJ_4727
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_4790
$9227 -= 1
if 
  1 > $9227
goto_if_false @BLACKJ_4774
$9227 = 52

:BLACKJ_4774
write_debug_with_int "NEXT_CARD" {_p2} $9227

:BLACKJ_4790
if 
  22@ == 0
goto_if_false @BLACKJ_4964
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  2@ <> 2
goto_if_false @BLACKJ_4957
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_4910
10@ = Math.RandomIntInRange(0, 2)
if 
  10@ == 0
goto_if_false @BLACKJ_4896
Char.SetSayScript(1@, 30452, True, True, False)
goto @BLACKJ_4910

:BLACKJ_4896
Char.SetSayScript(1@, 30453, True, True, False)

:BLACKJ_4910
5@ = 1
22@ = 1
if 
  $bj_half_bet <> 0
goto_if_false @BLACKJ_4950
Player.AddScore($player1, $bj_half_bet)

:BLACKJ_4950
$bj_players_cash = 0

:BLACKJ_4957
goto @BLACKJ_4988

:BLACKJ_4964
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BLACKJ_4988
22@ = 0

:BLACKJ_4988
if 
  Char.IsDead(1@)
goto_if_false @BLACKJ_5011
5@ = 1

:BLACKJ_5011
return 

:BLACKJ_5013
if 
  3@ == 0
goto_if_false @BLACKJ_5948
Game.SetMinigameInProgress(True)
Player.SetControl($player1, False)
$bj_temp_float3 = 0
$9134 = 51.0
$card_width = 64.0
$9086[0] = 233.0
$9094[0] = 381.0
$9102[0] = 233.0
$9110[0] = 311.0
$9118[0] = 233.0
$9126[0] = 381.0
$vp_out_card_value[0] = 226.0
$9078[0] = 60.0
$spacing_x = 6.0
$card_cheat_value[0] = 29.0
$9255[0] = 220.0
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_5269 {caseNum1} 3 {caseLabel1} @BLACKJ_5242 {caseNum2} -1 {caseLabel2} @BLACKJ_5296 {caseNum3} -1 {caseLabel3} @BLACKJ_5296 {caseNum4} -1 {caseLabel4} @BLACKJ_5296 {caseNum5} -1 {caseLabel5} @BLACKJ_5296 {caseNum6} -1 {caseLabel6} @BLACKJ_5296 {caseNum7} -1 {caseLabel7} @BLACKJ_5296

:BLACKJ_5242
$card_cheat_value[1] = 173.9799
$9255[1] = 409.0
goto @BLACKJ_5296

:BLACKJ_5269
$card_cheat_value[1] = 157.0
$9255[1] = 409.0
goto @BLACKJ_5296

:BLACKJ_5296
$card_cheat_value[2] = 36.0
$9255[2] = 240.0
$card_cheat_value[3] = 36.0
$9255[3] = 260.0
$card_cheat_value[4] = 36.0
$9255[4] = 290.0
$card_cheat_value[5] = 36.0
$9255[5] = 310.0
$card_cheat_value[6] = 36.0
$9255[6] = 340.0
$card_cheat_value[7] = 36.0
$9255[7] = 360.0
$card_cheat_value[8] = 29.0
$9255[8] = 220.0
switch_start $current_Language {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_5553 {caseNum1} 1 {caseLabel1} @BLACKJ_5526 {caseNum2} 2 {caseLabel2} @BLACKJ_5499 {caseNum3} 3 {caseLabel3} @BLACKJ_5499 {caseNum4} 4 {caseLabel4} @BLACKJ_5499 {caseNum5} -1 {caseLabel5} @BLACKJ_5580 {caseNum6} -1 {caseLabel6} @BLACKJ_5580 {caseNum7} -1 {caseLabel7} @BLACKJ_5580

:BLACKJ_5499
$card_cheat_value[9] = 169.0
$9255[9] = 409.0
goto @BLACKJ_5580

:BLACKJ_5526
$card_cheat_value[9] = 177.0
$9255[9] = 409.0
goto @BLACKJ_5580

:BLACKJ_5553
$card_cheat_value[9] = 157.0
$9255[9] = 409.0
goto @BLACKJ_5580

:BLACKJ_5580
$card_cheat_value[10] = 36.0
$9255[10] = 240.0
$card_cheat_value[11] = 36.0
$9255[11] = 260.0
$card_cheat_value[12] = 36.0
$9255[12] = 290.0
$card_cheat_value[13] = 40.0
$9255[13] = 310.0
$card_cheat_value[14] = 40.0
$9255[14] = 310.0
$card_cheat_value[15] = 36.0
$9255[15] = 340.0
$card_cheat_value[16] = 40.0
$9255[16] = 360.0
$card_cheat_value[17] = 40.0
$9255[17] = 360.0
$card_cheat_value[18] = 40.0
$9255[18] = 360.0
$card_cheat_value[19] = 40.0
$9255[19] = 360.0
$card_cheat_value[20] = 40.0
$9255[20] = 382.0
$card_cheat_value[21] = 40.0
$9255[21] = 382.0
$card_cheat_value[22] = 209.0
$9255[22] = 293.0
$card_cheat_value[23] = 209.0
$9255[23] = 361.0
$card_cheat_value[24] = 1.0
$9255[24] = 4.0
$card_cheat_value[25] = 320.0
$9255[25] = 197.0
$card_cheat_value[26] = 320.0
$9255[26] = 233.0
gosub @BLACKJ_32356
Streaming.RequestModel(#BLCK_JACK)
Streaming.RequestAnimation("CASINO")
3@ += 1

:BLACKJ_5948
if 
  3@ == 1
goto_if_false @BLACKJ_5998
if and
  Streaming.HasModelLoaded(#BLCK_JACK)
  Streaming.HasAnimationLoaded("CASINO")
goto_if_false @BLACKJ_5998
3@ += 1

:BLACKJ_5998
if 
  3@ == 2
goto_if_false @BLACKJ_7550
Text.UseCommands(True)
Txd.LoadDictionary('LD_CARD')
Txd.LoadSprite(1, "CD1C")
Txd.LoadSprite(2, "CD2C")
Txd.LoadSprite(3, "CD3C")
Txd.LoadSprite(4, "CD4C")
Txd.LoadSprite(5, "CD5C")
Txd.LoadSprite(6, "CD6C")
Txd.LoadSprite(7, "CD7C")
Txd.LoadSprite(8, "CD8C")
Txd.LoadSprite(9, "CD9C")
Txd.LoadSprite(10, "CD10C")
Txd.LoadSprite(11, "CD11C")
Txd.LoadSprite(12, "CD12C")
Txd.LoadSprite(13, "CD13C")
Txd.LoadSprite(14, "CD1D")
Txd.LoadSprite(15, "CD2D")
Txd.LoadSprite(16, "CD3D")
Txd.LoadSprite(17, "CD4D")
Txd.LoadSprite(18, "CD5D")
Txd.LoadSprite(19, "CD6D")
Txd.LoadSprite(20, "CD7D")
Txd.LoadSprite(21, "CD8D")
Txd.LoadSprite(22, "CD9D")
Txd.LoadSprite(23, "CD10D")
Txd.LoadSprite(24, "CD11D")
Txd.LoadSprite(25, "CD12D")
Txd.LoadSprite(26, "CD13D")
Txd.LoadSprite(27, "CD1S")
Txd.LoadSprite(28, "CD2S")
Txd.LoadSprite(29, "CD3S")
Txd.LoadSprite(30, "CD4S")
Txd.LoadSprite(31, "CD5S")
Txd.LoadSprite(32, "CD6S")
Txd.LoadSprite(33, "CD7S")
Txd.LoadSprite(34, "CD8S")
Txd.LoadSprite(35, "CD9S")
Txd.LoadSprite(36, "CD10S")
Txd.LoadSprite(37, "CD11S")
Txd.LoadSprite(38, "CD12S")
Txd.LoadSprite(39, "CD13S")
Txd.LoadSprite(40, "CD1H")
Txd.LoadSprite(41, "CD2H")
Txd.LoadSprite(42, "CD3H")
Txd.LoadSprite(43, "CD4H")
Txd.LoadSprite(44, "CD5H")
Txd.LoadSprite(45, "CD6H")
Txd.LoadSprite(46, "CD7H")
Txd.LoadSprite(47, "CD8H")
Txd.LoadSprite(48, "CD9H")
Txd.LoadSprite(49, "CD10H")
Txd.LoadSprite(50, "CD11H")
Txd.LoadSprite(51, "CD12H")
Txd.LoadSprite(52, "CD13H")
Txd.LoadSprite(53, "CDBACK")
CardDecks.Shuffle(6)
Hud.DisplayRadar(False)
switch_rubbish 0
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, 0.4, 0.0)
$heading = Object.GetHeading(0@)
$heading += 180.0
$z = World.GetGroundZFor3DCoord($x, $y, $z)
$z += -0.4
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_6705
Char.ClearTasksImmediately(1@)
Char.SetCoordinates(1@, $x, $y, $z)
Char.SetHeading(1@, $heading)

:BLACKJ_6705
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.3192, -1.6334, 0.1415)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
$z += -0.4
Char.SetCoordinates($scplayer, $x, $y, $z)
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_6796
Task.TurnCharToFaceChar($scplayer, 1@)

:BLACKJ_6796
if 
  Object.DoesExist(0@)
goto_if_false @BLACKJ_6909
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, -0.4379, -2.243, 1.16)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, -0.2822, -1.3256, 0.7939)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)

:BLACKJ_6909
if 
  Object.DoesExist(0@)
goto_if_false @BLACKJ_7543
$9215 = -0.14
$9282[0] = 0.0
$9290[0] = -0.885
set_var_float_to_var_float $9298[0] = $9215
$9282[1] = 0.045
$9290[1] = -0.935
set_var_float_to_var_float $9298[1] = $9215
$9282[2] = -0.05
$9290[2] = -0.93
set_var_float_to_var_float $9298[2] = $9215
$9282[3] = -0.01
$9290[3] = -0.98
set_var_float_to_var_float $9298[3] = $9215
$9282[4] = 0.06
$9290[4] = -0.995
set_var_float_to_var_float $9298[4] = $9215
$9282[5] = 0.02
$9290[5] = -1.075
set_var_float_to_var_float $9298[5] = $9215
$9282[6] = -0.07
$9290[6] = -1.03
set_var_float_to_var_float $9298[6] = $9215
$9282[7] = 0.065
$9290[7] = -1.05
set_var_float_to_var_float $9298[7] = $9215
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, $9282[0], $9290[0], $9215)
$total_bj_tables[0] = Object.CreateNoOffset(#CHIP_STACK07, $x, $y, $z)
Object.SetHeading($total_bj_tables[0], $heading)
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, $9282[1], $9290[1], $9215)
$total_bj_tables[1] = Object.CreateNoOffset(#CHIP_STACK08, $x, $y, $z)
Object.SetHeading($total_bj_tables[1], $heading)
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, $9282[2], $9290[2], $9215)
$total_bj_tables[2] = Object.CreateNoOffset(#CHIP_STACK09, $x, $y, $z)
Object.SetHeading($total_bj_tables[2], $heading)
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, $9282[3], $9290[3], $9215)
$total_bj_tables[3] = Object.CreateNoOffset(#CHIP_STACK10, $x, $y, $z)
Object.SetHeading($total_bj_tables[3], $heading)
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, $9282[4], $9290[4], $9215)
$total_bj_tables[4] = Object.CreateNoOffset(#CHIP_STACK11, $x, $y, $z)
Object.SetHeading($total_bj_tables[4], $heading)
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, $9282[5], $9290[5], $9215)
$total_bj_tables[5] = Object.CreateNoOffset(#CHIP_STACK12, $x, $y, $z)
Object.SetHeading($total_bj_tables[5], $heading)
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, $9282[6], $9290[6], $9215)
$total_bj_tables[6] = Object.CreateNoOffset(#CHIP_STACK13, $x, $y, $z)
Object.SetHeading($total_bj_tables[6], $heading)
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, $9282[7], $9290[7], $9215)
$total_bj_tables[7] = Object.CreateNoOffset(#CHIP_STACK14, $x, $y, $z)
Object.SetHeading($total_bj_tables[7], $heading)

:BLACKJ_7543
3@ = 99

:BLACKJ_7550
if 
  3@ == 99
goto_if_false @BLACKJ_7712
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_7698
10@ = Math.RandomIntInRange(0, 2)
switch_start 10@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_7698 {caseNum1} 0 {caseLabel1} @BLACKJ_7656 {caseNum2} 1 {caseLabel2} @BLACKJ_7677 {caseNum3} -1 {caseLabel3} @BLACKJ_7698 {caseNum4} -1 {caseLabel4} @BLACKJ_7698 {caseNum5} -1 {caseLabel5} @BLACKJ_7698 {caseNum6} -1 {caseLabel6} @BLACKJ_7698 {caseNum7} -1 {caseLabel7} @BLACKJ_7698

:BLACKJ_7656
Char.SetSayScript(1@, 30409, True, True, False)
goto @BLACKJ_7698

:BLACKJ_7677
Char.SetSayScript(1@, 30410, True, True, False)
goto @BLACKJ_7698

:BLACKJ_7698
2@ += 1
3@ = 0

:BLACKJ_7712
return 

:BLACKJ_7714
if 
  3@ == 0
goto_if_false @BLACKJ_8321
$multiplier = 0
10@ = 0

:BLACKJ_7746
if 
  8 > 10@
goto_if_false @BLACKJ_7811
$next_card(10@,8i) = 0
$9148(10@,8i) = 0
$9156(10@,8i) = 0
10@ += 1
goto @BLACKJ_7746

:BLACKJ_7811
$9164 = 0
$player_cannot_split = 0
$player_has_split = 0
$player_cannot_double = 0
$player_has_doubled1 = 0
$player_has_doubled2 = 0
$player_has_stuck1 = 0
$player_has_stuck2 = 0
$player_has_hit = 0
$dealer_has_stuck = 0
$player_has_quit = 0
$player_has_won1 = 0
$player_has_won2 = 0
$player_has_input = 0
$dealer_wins_by_default = 0
$player_total1 = 0
$player_total1_b = 0
$player_total2 = 0
$player_total2_b = 0
$dealer_total = 0
$dealer_total2 = 0
$dealer_got_ace = 0
$player_got_ace1 = 0
$bj_half_bet = 0
if 
  is_int_lvar_greater_than_int_var 30@ > $colour_a
goto_if_false @BLACKJ_8006
set_var_int_to_lvar_int $colour_a = 30@

:BLACKJ_8006
set_var_int_to_var_int $bj_last_bet = $colour_a
$bj_bet1 = 0
$dealer_got_bj = Player.StoreScore($player1)
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_last_bet > $dealer_got_bj
goto_if_false @BLACKJ_8071
set_var_int_to_lvar_int $bj_last_bet = 30@

:BLACKJ_8071
if 
  is_int_var_greater_than_int_var $bj_last_bet > $dealer_got_bj
goto_if_false @BLACKJ_8134
Text.PrintNow('BJ_2', 5000, 1)
gosub @BLACKJ_18301
5@ = 1
goto @BLACKJ_9611
goto @BLACKJ_8303

:BLACKJ_8134
set_lvar_int_to_var_int 10@ = $bj_last_bet
10@ *= -1
Player.AddScore($player1, 10@)
set_var_int_to_var_int $bj_half_bet = $bj_last_bet
set_var_int_to_var_int $bj_refund = $bj_last_bet
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_8303
10@ = Math.RandomIntInRange(0, 2)
switch_start 10@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_8303 {caseNum1} 0 {caseLabel1} @BLACKJ_8261 {caseNum2} 1 {caseLabel2} @BLACKJ_8282 {caseNum3} -1 {caseLabel3} @BLACKJ_8303 {caseNum4} -1 {caseLabel4} @BLACKJ_8303 {caseNum5} -1 {caseLabel5} @BLACKJ_8303 {caseNum6} -1 {caseLabel6} @BLACKJ_8303 {caseNum7} -1 {caseLabel7} @BLACKJ_8303

:BLACKJ_8261
Char.SetSayScript(1@, 30409, True, True, False)
goto @BLACKJ_8303

:BLACKJ_8282
Char.SetSayScript(1@, 30410, True, True, False)
goto @BLACKJ_8303

:BLACKJ_8303
terminate_all_scripts_with_this_name 'CASHWIN'
3@ += 1

:BLACKJ_8321
if 
  3@ == 1
goto_if_false @BLACKJ_9540
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @BLACKJ_9465
if and
  not Text.IsThisHelpMessageBeingDisplayed('SGPUNT')
  not Text.IsThisHelpMessageBeingDisplayed('SGGAMB')
  not Text.IsThisHelpMessageBeingDisplayed('SGPROF')
  not Text.IsThisHelpMessageBeingDisplayed('SGHIRO')
goto_if_false @BLACKJ_8436
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @BLACKJ_8436
Text.SetHelpMessageBoxSize(200)
Text.PrintHelpForever('BJ_H1')

:BLACKJ_8436
$dealer_got_bj = Player.StoreScore($player1)
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @BLACKJ_8885
if and
  24@ <> 1
  24@ <> -1
goto_if_false @BLACKJ_8834
if 
  $bj_last_bet >= 10000
goto_if_false @BLACKJ_8535
$bj_bet2 = 1000
goto @BLACKJ_8639

:BLACKJ_8535
if 
  $bj_last_bet >= 1000
goto_if_false @BLACKJ_8568
$bj_bet2 = 100
goto @BLACKJ_8639

:BLACKJ_8568
if 
  $bj_last_bet >= 100
goto_if_false @BLACKJ_8600
$bj_bet2 = 10
goto @BLACKJ_8639

:BLACKJ_8600
if 
  $bj_last_bet == 0
goto_if_false @BLACKJ_8632
$bj_bet2 = 2
goto @BLACKJ_8639

:BLACKJ_8632
$bj_bet2 = 1

:BLACKJ_8639
if 
  is_int_var_greater_than_int_var $bj_bet2 > $dealer_got_bj
goto_if_false @BLACKJ_8666
set_var_int_to_var_int $bj_bet2 = $dealer_got_bj

:BLACKJ_8666
set_lvar_int_to_var_int 10@ = $bj_last_bet
add_int_var_to_int_lvar 10@ += $bj_bet2
if 
  is_int_lvar_greater_than_int_lvar 10@ > 29@
goto_if_false @BLACKJ_8717
set_var_int_to_lvar_int $bj_bet2 = 29@
sub_int_var_from_int_var $bj_bet2 -= $bj_last_bet

:BLACKJ_8717
if 
  0 > $bj_bet2
goto_if_false @BLACKJ_8742
$bj_bet2 *= -1

:BLACKJ_8742
add_int_var_to_int_var $bj_last_bet += $bj_bet2
add_int_var_to_int_var $bj_half_bet += $bj_bet2
add_int_var_to_int_var $bj_refund += $bj_bet2
$bj_bet2 *= -1
Player.AddScore($player1, $bj_bet2)
24@ += 1
if 
  24@ > 1
goto_if_false @BLACKJ_8820
24@ = 2
goto @BLACKJ_8827

:BLACKJ_8820
TIMERA = 0

:BLACKJ_8827
goto @BLACKJ_8878

:BLACKJ_8834
if 
  24@ == 1
goto_if_false @BLACKJ_8878
if 
  TIMERA > 500
goto_if_false @BLACKJ_8878
24@ = 2

:BLACKJ_8878
goto @BLACKJ_9284

:BLACKJ_8885
if 
  25@ <> 0
goto_if_false @BLACKJ_8910
25@ = 0

:BLACKJ_8910
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @BLACKJ_9259
if 
  25@ <> 1
goto_if_false @BLACKJ_9226
if 
  $bj_last_bet > 10000
goto_if_false @BLACKJ_8979
$bj_bet2 = -1000
goto @BLACKJ_9051

:BLACKJ_8979
if 
  $bj_last_bet > 1000
goto_if_false @BLACKJ_9012
$bj_bet2 = -100
goto @BLACKJ_9051

:BLACKJ_9012
if 
  $bj_last_bet > 100
goto_if_false @BLACKJ_9044
$bj_bet2 = -10
goto @BLACKJ_9051

:BLACKJ_9044
$bj_bet2 = -1

:BLACKJ_9051
set_lvar_int_to_var_int 10@ = $bj_last_bet
add_int_var_to_int_var $bj_last_bet += $bj_bet2
if 
  is_int_lvar_greater_than_int_var 30@ > $bj_last_bet
goto_if_false @BLACKJ_9108
$bj_last_bet = 0
set_var_int_to_lvar_int $bj_bet2 = 10@
$bj_bet2 *= -1

:BLACKJ_9108
if 
  is_int_lvar_greater_than_int_var 30@ > $bj_last_bet
goto_if_false @BLACKJ_9142
set_var_int_to_lvar_int $bj_last_bet = 30@
goto @BLACKJ_9173

:BLACKJ_9142
$bj_bet2 *= -1
sub_int_var_from_int_var $bj_half_bet -= $bj_bet2
sub_int_var_from_int_var $bj_refund -= $bj_bet2
Player.AddScore($player1, $bj_bet2)

:BLACKJ_9173
25@ += 1
if 
  25@ > 1
goto_if_false @BLACKJ_9212
25@ = 2
goto @BLACKJ_9219

:BLACKJ_9212
TIMERA = 0

:BLACKJ_9219
goto @BLACKJ_9252

:BLACKJ_9226
if 
  TIMERA > 500
goto_if_false @BLACKJ_9252
25@ = 2

:BLACKJ_9252
goto @BLACKJ_9284

:BLACKJ_9259
if 
  25@ <> 0
goto_if_false @BLACKJ_9284
25@ = 0

:BLACKJ_9284
if 
  23@ == 0
goto_if_false @BLACKJ_9402
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BLACKJ_9395
set_var_int_to_var_int $colour_a = $bj_last_bet
Stat.IncrementInt(StatId.MoneySpentGambling, $bj_last_bet)
cset_lvar_float_to_var_int 13@ =# $bj_last_bet
13@ *= 0.001
Stat.IncrementFloat(StatId.Gambling, 13@)
$bj_half_bet = 0
set_var_int_to_var_int $bj_players_cash = $bj_last_bet
gosub @BLACKJ_24848
23@ = 1
3@ = 99

:BLACKJ_9395
goto @BLACKJ_9426

:BLACKJ_9402
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BLACKJ_9426
23@ = 0

:BLACKJ_9426
gosub @BLACKJ_23195
if 
  3@ <> 99
goto_if_false @BLACKJ_9458
3@ += 1

:BLACKJ_9458
goto @BLACKJ_9540

:BLACKJ_9465
if 
  23@ == 0
goto_if_false @BLACKJ_9516
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BLACKJ_9509
23@ = 1
Text.ClearPrints

:BLACKJ_9509
goto @BLACKJ_9540

:BLACKJ_9516
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BLACKJ_9540
23@ = 0

:BLACKJ_9540
if 
  3@ == 2
goto_if_false @BLACKJ_9572
gosub @BLACKJ_24848
3@ = 1

:BLACKJ_9572
if 
  3@ == 99
goto_if_false @BLACKJ_9611
gosub @BLACKJ_10561
3@ = 0
2@ += 1

:BLACKJ_9611
return 

:BLACKJ_9613
if 
  3@ == 0
goto_if_false @BLACKJ_9671
gosub @BLACKJ_29731
if 
  $multiplier <> 0
goto_if_false @BLACKJ_9664
set_var_int_to_var_int $9148[0] = $multiplier

:BLACKJ_9664
3@ += 1

:BLACKJ_9671
if 
  3@ == 1
goto_if_false @BLACKJ_9741
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_9741
10@ = Char.GetScriptTaskStatus(1@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_9741
3@ += 1

:BLACKJ_9741
if 
  3@ == 2
goto_if_false @BLACKJ_9799
gosub @BLACKJ_29731
if 
  $multiplier <> 0
goto_if_false @BLACKJ_9792
set_var_int_to_var_int $next_card[0] = $multiplier

:BLACKJ_9792
3@ += 1

:BLACKJ_9799
if 
  3@ == 3
goto_if_false @BLACKJ_9869
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_9869
10@ = Char.GetScriptTaskStatus(1@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_9869
3@ += 1

:BLACKJ_9869
if 
  3@ == 4
goto_if_false @BLACKJ_9927
gosub @BLACKJ_29731
if 
  $multiplier <> 0
goto_if_false @BLACKJ_9920
set_var_int_to_var_int $9148[1] = $multiplier

:BLACKJ_9920
3@ += 1

:BLACKJ_9927
if 
  3@ == 5
goto_if_false @BLACKJ_9997
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_9997
10@ = Char.GetScriptTaskStatus(1@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_9997
3@ += 1

:BLACKJ_9997
if 
  3@ == 6
goto_if_false @BLACKJ_10055
gosub @BLACKJ_29731
if 
  $multiplier <> 0
goto_if_false @BLACKJ_10048
set_var_int_to_var_int $next_card[1] = $multiplier

:BLACKJ_10048
3@ += 1

:BLACKJ_10055
if 
  3@ == 7
goto_if_false @BLACKJ_10125
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_10125
10@ = Char.GetScriptTaskStatus(1@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_10125
3@ = 99

:BLACKJ_10125
if 
  3@ == 99
goto_if_false @BLACKJ_10164
21@ = 0
3@ = 0
2@ += 1

:BLACKJ_10164
gosub @BLACKJ_31187
gosub @BLACKJ_29832
gosub @BLACKJ_25134
return 

:BLACKJ_10187
gosub @BLACKJ_10561
if 
  3@ == 0
goto_if_false @BLACKJ_10350
gosub @BLACKJ_31187
$player_got_ace2 = 0
$player_got_bj = 0
if or
  $dealer_wins_by_default == 21
  $player_total2_b == 21
goto_if_false @BLACKJ_10343
if 
  $dealer_wins_by_default == 21
goto_if_false @BLACKJ_10283
$player_got_ace2 = 1

:BLACKJ_10283
if 
  $player_total2_b == 21
goto_if_false @BLACKJ_10308
$player_got_bj = 1

:BLACKJ_10308
$player_has_doubled2 = 1
$player_has_hit = 1
2@ += 2
3@ = 0
goto @BLACKJ_10350

:BLACKJ_10343
3@ = 99

:BLACKJ_10350
if 
  3@ == 99
goto_if_false @BLACKJ_10396
3@ = 0
4@ = 0
21@ = 0
2@ += 1

:BLACKJ_10396
gosub @BLACKJ_31187
gosub @BLACKJ_29832
gosub @BLACKJ_25134
if 
  $player_got_ace2 == 0
goto_if_false @BLACKJ_10449
gosub @BLACKJ_18454
goto @BLACKJ_10559

:BLACKJ_10449
if 
  $player_total2_b <> 21
goto_if_false @BLACKJ_10552
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_10545
10@ = Math.RandomIntInRange(0, 2)
if 
  10@ == 0
goto_if_false @BLACKJ_10531
Char.SetSayScript(1@, 30411, True, True, False)
goto @BLACKJ_10545

:BLACKJ_10531
Char.SetSayScript(1@, 30412, True, True, False)

:BLACKJ_10545
goto @BLACKJ_10559

:BLACKJ_10552
gosub @BLACKJ_18454

:BLACKJ_10559
return 

:BLACKJ_10561
if and
  not Text.IsThisHelpMessageBeingDisplayed('SGPUNT')
  not Text.IsThisHelpMessageBeingDisplayed('SGGAMB')
  not Text.IsThisHelpMessageBeingDisplayed('SGPROF')
  not Text.IsThisHelpMessageBeingDisplayed('SGHIRO')
goto_if_false @BLACKJ_10618
Text.ClearHelp

:BLACKJ_10618
return 

:BLACKJ_10620
if 
  3@ == 0
goto_if_false @BLACKJ_12233
if 
  $9164 == 0
goto_if_false @BLACKJ_10806
set_var_int_to_var_int $ct_this_card_value = $9148[0]
gosub @BLACKJ_32208
set_lvar_int_to_var_int 10@ = $in_card_value
set_var_int_to_var_int $ct_this_card_value = $9148[1]
gosub @BLACKJ_32208
set_lvar_int_to_var_int 11@ = $in_card_value
if 
  is_int_lvar_equal_to_int_lvar 10@ == 11@
goto_if_false @BLACKJ_10760
if 
  $9148[2] <> 0
goto_if_false @BLACKJ_10753
gosub @BLACKJ_10561
$9164 = 1

:BLACKJ_10753
goto @BLACKJ_10774

:BLACKJ_10760
gosub @BLACKJ_10561
$9164 = 1

:BLACKJ_10774
if 
  $player_cannot_split <> 0
goto_if_false @BLACKJ_10806
gosub @BLACKJ_10561
$9164 = 1

:BLACKJ_10806
if 
  $player_has_split == 0
goto_if_false @BLACKJ_11138
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_10937
if 
  $9148[2] <> 0
goto_if_false @BLACKJ_10874
gosub @BLACKJ_10561
$player_has_split = 1

:BLACKJ_10874
$dealer_got_bj = Player.StoreScore($player1)
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_last_bet > $dealer_got_bj
goto_if_false @BLACKJ_10930
gosub @BLACKJ_10561
$player_has_split = 1

:BLACKJ_10930
goto @BLACKJ_11138

:BLACKJ_10937
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_11050
if 
  $9148[2] <> 0
goto_if_false @BLACKJ_10987
gosub @BLACKJ_10561
$player_has_split = 1

:BLACKJ_10987
$dealer_got_bj = Player.StoreScore($player1)
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_last_bet > $dealer_got_bj
goto_if_false @BLACKJ_11043
gosub @BLACKJ_10561
$player_has_split = 1

:BLACKJ_11043
goto @BLACKJ_11138

:BLACKJ_11050
if 
  $9156[2] <> 0
goto_if_false @BLACKJ_11082
gosub @BLACKJ_10561
$player_has_split = 1

:BLACKJ_11082
$dealer_got_bj = Player.StoreScore($player1)
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_bet1 > $dealer_got_bj
goto_if_false @BLACKJ_11138
gosub @BLACKJ_10561
$player_has_split = 1

:BLACKJ_11138
if and
  not Text.IsThisHelpMessageBeingDisplayed('SGPUNT')
  not Text.IsThisHelpMessageBeingDisplayed('SGGAMB')
  not Text.IsThisHelpMessageBeingDisplayed('SGPROF')
  not Text.IsThisHelpMessageBeingDisplayed('SGHIRO')
goto_if_false @BLACKJ_11742
if and
  $9164 == 0
  $player_has_split == 0
goto_if_false @BLACKJ_11254
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @BLACKJ_11247
Text.SetHelpMessageBoxSize(128)
Text.PrintHelpForever('BJ_H3')

:BLACKJ_11247
21@ = 1

:BLACKJ_11254
if and
  $9164 == 1
  $player_has_split == 0
goto_if_false @BLACKJ_11315
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @BLACKJ_11308
Text.SetHelpMessageBoxSize(128)
Text.PrintHelpForever('BJ_H2')

:BLACKJ_11308
21@ = 2

:BLACKJ_11315
if and
  $9164 == 1
  $player_has_split == 1
goto_if_false @BLACKJ_11376
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @BLACKJ_11369
Text.SetHelpMessageBoxSize(128)
Text.PrintHelpForever('BJ_H5')

:BLACKJ_11369
21@ = 3

:BLACKJ_11376
if and
  $9164 == 1
  $player_has_split == 0
goto_if_false @BLACKJ_11437
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @BLACKJ_11430
Text.SetHelpMessageBoxSize(128)
Text.PrintHelpForever('BJ_H2')

:BLACKJ_11430
21@ = 2

:BLACKJ_11437
if and
  $9164 == 1
  $player_has_split == 1
goto_if_false @BLACKJ_11498
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @BLACKJ_11491
Text.SetHelpMessageBoxSize(128)
Text.PrintHelpForever('BJ_H5')

:BLACKJ_11491
21@ = 3

:BLACKJ_11498
if and
  $9164 == 0
  $player_has_split == 0
goto_if_false @BLACKJ_11559
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @BLACKJ_11552
Text.SetHelpMessageBoxSize(128)
Text.PrintHelpForever('BJ_H3')

:BLACKJ_11552
21@ = 1

:BLACKJ_11559
if and
  $9164 == 1
  $player_has_split == 1
goto_if_false @BLACKJ_11620
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @BLACKJ_11613
Text.SetHelpMessageBoxSize(128)
Text.PrintHelpForever('BJ_H5')

:BLACKJ_11613
21@ = 3

:BLACKJ_11620
if and
  $9164 == 0
  $player_has_split == 0
goto_if_false @BLACKJ_11681
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @BLACKJ_11674
Text.SetHelpMessageBoxSize(128)
Text.PrintHelpForever('BJ_H3')

:BLACKJ_11674
21@ = 1

:BLACKJ_11681
if and
  $9164 == 1
  $player_has_split == 0
goto_if_false @BLACKJ_11742
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @BLACKJ_11735
Text.SetHelpMessageBoxSize(128)
Text.PrintHelpForever('BJ_H2')

:BLACKJ_11735
21@ = 2

:BLACKJ_11742
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @BLACKJ_12158
if 
  25@ == 0
goto_if_false @BLACKJ_11832
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @BLACKJ_11825
$player_has_stuck2 = 1
4@ = 0
3@ += 1
25@ = 1
goto @BLACKJ_12233

:BLACKJ_11825
goto @BLACKJ_11856

:BLACKJ_11832
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @BLACKJ_11856
25@ = 0

:BLACKJ_11856
if 
  $9164 == 0
goto_if_false @BLACKJ_11937
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_11937
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.RightShoulder2)
goto_if_false @BLACKJ_11937
$player_cannot_split = 1
3@ += 1
4@ = 0
goto @BLACKJ_12233

:BLACKJ_11937
if 
  $player_has_split == 0
goto_if_false @BLACKJ_12025
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @BLACKJ_12025
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_12004
$player_cannot_double = 1
goto @BLACKJ_12011

:BLACKJ_12004
$player_has_doubled1 = 1

:BLACKJ_12011
3@ += 1
goto @BLACKJ_12233

:BLACKJ_12025
if 
  23@ == 0
goto_if_false @BLACKJ_12127
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BLACKJ_12120
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_12092
$player_has_doubled2 = 1
goto @BLACKJ_12099

:BLACKJ_12092
$player_has_stuck1 = 1

:BLACKJ_12099
23@ = 1
3@ += 1
goto @BLACKJ_12233

:BLACKJ_12120
goto @BLACKJ_12151

:BLACKJ_12127
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BLACKJ_12151
23@ = 0

:BLACKJ_12151
goto @BLACKJ_12233

:BLACKJ_12158
if 
  25@ == 0
goto_if_false @BLACKJ_12209
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @BLACKJ_12202
25@ = 1
Text.ClearPrints

:BLACKJ_12202
goto @BLACKJ_12233

:BLACKJ_12209
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @BLACKJ_12233
25@ = 0

:BLACKJ_12233
if 
  3@ == 1
goto_if_false @BLACKJ_15202
if 
  $player_has_stuck2 == 1
goto_if_false @BLACKJ_12732
if 
  4@ == 0
goto_if_false @BLACKJ_12301
gosub @BLACKJ_29731
4@ += 1

:BLACKJ_12301
if 
  4@ == 1
goto_if_false @BLACKJ_12371
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_12371
10@ = Char.GetScriptTaskStatus(1@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_12371
4@ += 1

:BLACKJ_12371
if 
  4@ == 2
goto_if_false @BLACKJ_12700
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_12501
10@ = 0

:BLACKJ_12414
if 
  8 > 10@
goto_if_false @BLACKJ_12494
if 
  $9148(10@,8i) == 0
goto_if_false @BLACKJ_12480
set_var_int_to_var_int $9148(10@,8i) = $multiplier
10@ = 8
4@ = 99

:BLACKJ_12480
10@ += 1
goto @BLACKJ_12414

:BLACKJ_12494
goto @BLACKJ_12700

:BLACKJ_12501
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_12613
10@ = 0

:BLACKJ_12526
if 
  8 > 10@
goto_if_false @BLACKJ_12606
if 
  $9148(10@,8i) == 0
goto_if_false @BLACKJ_12592
set_var_int_to_var_int $9148(10@,8i) = $multiplier
10@ = 8
4@ = 99

:BLACKJ_12592
10@ += 1
goto @BLACKJ_12526

:BLACKJ_12606
goto @BLACKJ_12700

:BLACKJ_12613
10@ = 0

:BLACKJ_12620
if 
  8 > 10@
goto_if_false @BLACKJ_12700
if 
  $9156(10@,8i) == 0
goto_if_false @BLACKJ_12686
set_var_int_to_var_int $9156(10@,8i) = $multiplier
10@ = 8
4@ = 99

:BLACKJ_12686
10@ += 1
goto @BLACKJ_12620

:BLACKJ_12700
if 
  4@ == 99
goto_if_false @BLACKJ_12732
$player_has_stuck2 = 0
gosub @BLACKJ_18454

:BLACKJ_12732
10@ = 0
if 
  $player_cannot_split == 1
goto_if_false @BLACKJ_12789
if or
  $9156[0] == 0
  $9148[1] == 0
goto_if_false @BLACKJ_12789
10@ = 1

:BLACKJ_12789
if and
  $player_cannot_split == 1
  10@ == 1
goto_if_false @BLACKJ_13264
if 
  4@ == 0
goto_if_false @BLACKJ_12941
cset_var_float_to_var_int $bj_bet_step =# $bj_last_bet
cset_var_int_to_var_float $bj_half_bet_f =# $bj_bet_step
$dealer_got_bj = Player.StoreScore($player1)
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_half_bet_f > $dealer_got_bj
goto_if_false @BLACKJ_12934
$player_cannot_split = 0
4@ = 99
Text.PrintNow('BJ_3', 5000, 1)
gosub @BLACKJ_18301
goto @BLACKJ_12941

:BLACKJ_12934
4@ += 1

:BLACKJ_12941
if 
  4@ == 1
goto_if_false @BLACKJ_13043
Stat.IncrementInt(StatId.MoneySpentGambling, $bj_half_bet_f)
cset_lvar_float_to_var_int 13@ =# $bj_half_bet_f
13@ *= 0.001
Stat.IncrementFloat(StatId.Gambling, 13@)
$bj_half_bet_f *= -1
Player.AddScore($player1, $bj_half_bet_f)
$bj_half_bet_f *= -1
add_int_var_to_int_var $bj_last_bet += $bj_half_bet_f
add_int_var_to_int_var $bj_refund += $bj_half_bet_f
gosub @BLACKJ_23195
4@ += 1

:BLACKJ_13043
if 
  4@ == 2
goto_if_false @BLACKJ_13098
set_var_int_to_var_int $9156[0] = $9148[0]
set_var_int_to_var_int $9148[0] = $9148[1]
$9148[1] = 0
gosub @BLACKJ_29731
4@ += 1

:BLACKJ_13098
if 
  4@ == 3
goto_if_false @BLACKJ_13176
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_13176
10@ = Char.GetScriptTaskStatus(1@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_13176
set_var_int_to_var_int $9148[1] = $multiplier
4@ += 1

:BLACKJ_13176
if 
  4@ == 4
goto_if_false @BLACKJ_13264
cset_var_float_to_var_int $bj_bet_step =# $bj_last_bet
$bj_bet_step /= 2.0
cset_var_int_to_var_float $bj_half_bet_f =# $bj_bet_step
set_var_int_to_var_int $bj_last_bet = $bj_half_bet_f
set_var_int_to_var_int $bj_bet1 = $bj_half_bet_f
$player_has_split = 0
gosub @BLACKJ_10561
gosub @BLACKJ_18454
4@ = 99

:BLACKJ_13264
if and
  $player_cannot_split == 1
  $player_has_doubled2 == 1
  $9156[1] == 0
goto_if_false @BLACKJ_13470
if 
  4@ == 0
goto_if_false @BLACKJ_13328
gosub @BLACKJ_29731
4@ += 1

:BLACKJ_13328
if 
  4@ == 1
goto_if_false @BLACKJ_13398
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_13398
10@ = Char.GetScriptTaskStatus(1@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_13398
4@ += 1

:BLACKJ_13398
if 
  4@ == 2
goto_if_false @BLACKJ_13452
set_var_int_to_var_int $9156[1] = $multiplier
$player_has_split = 0
gosub @BLACKJ_10561
gosub @BLACKJ_18454
4@ = 99

:BLACKJ_13452
if 
  4@ == 99
goto_if_false @BLACKJ_13470

:BLACKJ_13470
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_13873
if and
  $player_cannot_double == 1
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_13866
if 
  4@ == 0
goto_if_false @BLACKJ_13640
cset_var_float_to_var_int $bj_bet_step =# $bj_last_bet
cset_var_int_to_var_float $bj_half_bet_f =# $bj_bet_step
$dealer_got_bj = Player.StoreScore($player1)
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_half_bet_f > $dealer_got_bj
goto_if_false @BLACKJ_13633
$player_cannot_double = 0
4@ = 99
Text.PrintNow('BJ_3', 5000, 1)
gosub @BLACKJ_18301
goto @BLACKJ_13640

:BLACKJ_13633
4@ += 1

:BLACKJ_13640
if 
  4@ == 1
goto_if_false @BLACKJ_13749
Stat.IncrementInt(StatId.MoneySpentGambling, $bj_half_bet_f)
cset_lvar_float_to_var_int 13@ =# $bj_half_bet_f
13@ *= 0.001
Stat.IncrementFloat(StatId.Gambling, 13@)
$bj_half_bet_f *= -1
Player.AddScore($player1, $bj_half_bet_f)
$bj_half_bet_f *= -1
add_int_var_to_int_var $bj_last_bet += $bj_half_bet_f
add_int_var_to_int_var $bj_refund += $bj_half_bet_f
gosub @BLACKJ_23195
gosub @BLACKJ_29731
4@ += 1

:BLACKJ_13749
if 
  4@ == 2
goto_if_false @BLACKJ_13819
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_13819
10@ = Char.GetScriptTaskStatus(1@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_13819
4@ += 1

:BLACKJ_13819
if 
  4@ == 3
goto_if_false @BLACKJ_13866
set_var_int_to_var_int $9148[2] = $multiplier
$player_has_doubled2 = 1
gosub @BLACKJ_18454
4@ = 99

:BLACKJ_13866
goto @BLACKJ_14636

:BLACKJ_13873
if and
  $player_cannot_double == 1
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_14258
if 
  4@ == 0
goto_if_false @BLACKJ_14025
cset_var_float_to_var_int $bj_bet_step =# $bj_last_bet
cset_var_int_to_var_float $bj_half_bet_f =# $bj_bet_step
$dealer_got_bj = Player.StoreScore($player1)
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_half_bet_f > $dealer_got_bj
goto_if_false @BLACKJ_14018
$player_cannot_double = 0
Text.PrintNow('BJ_3', 5000, 1)
gosub @BLACKJ_18301
4@ = 99
goto @BLACKJ_14025

:BLACKJ_14018
4@ += 1

:BLACKJ_14025
if 
  4@ == 1
goto_if_false @BLACKJ_14134
Stat.IncrementInt(StatId.MoneySpentGambling, $bj_half_bet_f)
cset_lvar_float_to_var_int 13@ =# $bj_half_bet_f
13@ *= 0.001
Stat.IncrementFloat(StatId.Gambling, 13@)
$bj_half_bet_f *= -1
Player.AddScore($player1, $bj_half_bet_f)
$bj_half_bet_f *= -1
add_int_var_to_int_var $bj_last_bet += $bj_half_bet_f
add_int_var_to_int_var $bj_refund += $bj_half_bet_f
gosub @BLACKJ_23195
gosub @BLACKJ_29731
4@ += 1

:BLACKJ_14134
if 
  4@ == 2
goto_if_false @BLACKJ_14204
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_14204
10@ = Char.GetScriptTaskStatus(1@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_14204
4@ += 1

:BLACKJ_14204
if 
  4@ == 3
goto_if_false @BLACKJ_14258
set_var_int_to_var_int $9148[2] = $multiplier
$player_has_doubled2 = 1
gosub @BLACKJ_18454
4@ = 0
goto @BLACKJ_13264

:BLACKJ_14258
if and
  $player_has_doubled1 == 1
  $player_has_stuck1 == 0
goto_if_false @BLACKJ_14636
if 
  4@ == 0
goto_if_false @BLACKJ_14410
cset_var_float_to_var_int $bj_bet_step =# $bj_last_bet
cset_var_int_to_var_float $bj_half_bet_f =# $bj_bet_step
$dealer_got_bj = Player.StoreScore($player1)
gosub @BLACKJ_33735
add_int_var_to_int_var $dealer_got_bj += $bj_payout
if 
  is_int_var_greater_than_int_var $bj_half_bet_f > $dealer_got_bj
goto_if_false @BLACKJ_14403
$player_has_doubled1 = 0
4@ = 99
Text.PrintNow('BJ_3', 5000, 1)
gosub @BLACKJ_18301
goto @BLACKJ_14410

:BLACKJ_14403
4@ += 1

:BLACKJ_14410
if 
  4@ == 1
goto_if_false @BLACKJ_14519
Stat.IncrementInt(StatId.MoneySpentGambling, $bj_half_bet_f)
cset_lvar_float_to_var_int 13@ =# $bj_half_bet_f
13@ *= 0.001
Stat.IncrementFloat(StatId.Gambling, 13@)
$bj_half_bet_f *= -1
Player.AddScore($player1, $bj_half_bet_f)
$bj_half_bet_f *= -1
add_int_var_to_int_var $bj_bet1 += $bj_half_bet_f
add_int_var_to_int_var $bj_refund += $bj_half_bet_f
gosub @BLACKJ_23195
gosub @BLACKJ_29731
4@ += 1

:BLACKJ_14519
if 
  4@ == 2
goto_if_false @BLACKJ_14589
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_14589
10@ = Char.GetScriptTaskStatus(1@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_14589
4@ += 1

:BLACKJ_14589
if 
  4@ == 3
goto_if_false @BLACKJ_14636
set_var_int_to_var_int $9156[2] = $multiplier
$player_has_stuck1 = 1
gosub @BLACKJ_18454
4@ = 99

:BLACKJ_14636
gosub @BLACKJ_31187
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_14718
if 
  $dealer_wins_by_default > 20
goto_if_false @BLACKJ_14686
$player_has_doubled2 = 1

:BLACKJ_14686
if 
  $9148[4] <> 0
goto_if_false @BLACKJ_14711
$player_has_doubled2 = 1

:BLACKJ_14711
goto @BLACKJ_14864

:BLACKJ_14718
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_14814
if 
  $dealer_wins_by_default > 20
goto_if_false @BLACKJ_14775
$player_has_doubled2 = 1
4@ = 0
goto @BLACKJ_13264

:BLACKJ_14775
if 
  $9148[4] <> 0
goto_if_false @BLACKJ_14814
$player_has_doubled2 = 1
4@ = 0
goto @BLACKJ_13264

:BLACKJ_14814
if 
  $player_total1_b > 20
goto_if_false @BLACKJ_14839
$player_has_stuck1 = 1

:BLACKJ_14839
if 
  $9156[4] <> 0
goto_if_false @BLACKJ_14864
$player_has_stuck1 = 1

:BLACKJ_14864
if 
  $player_cannot_split == 1
goto_if_false @BLACKJ_15042
if and
  $player_has_doubled2 == 1
  $player_has_stuck1 == 1
goto_if_false @BLACKJ_15042
if and
  $dealer_wins_by_default == 21
  $9148[2] == 0
goto_if_false @BLACKJ_15010
if or
  $player_total1_b <> 21
  $9156[2] <> 0
goto_if_false @BLACKJ_14971
$player_got_ace2 = 2
goto @BLACKJ_15003

:BLACKJ_14971
if and
  $player_total1_b == 21
  $9156[2] == 0
goto_if_false @BLACKJ_15003
$player_got_ace2 = 4

:BLACKJ_15003
goto @BLACKJ_15042

:BLACKJ_15010
if and
  $player_total1_b == 21
  $9156[2] == 0
goto_if_false @BLACKJ_15042
$player_got_ace2 = 3

:BLACKJ_15042
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_15131
if 
  $player_has_doubled2 == 1
goto_if_false @BLACKJ_15092
3@ = 99
goto @BLACKJ_15124

:BLACKJ_15092
if 
  4@ == 99
goto_if_false @BLACKJ_15124
3@ = 0
4@ = 0

:BLACKJ_15124
goto @BLACKJ_15202

:BLACKJ_15131
if and
  $player_has_doubled2 == 1
  $player_has_stuck1 == 1
goto_if_false @BLACKJ_15170
3@ = 99
goto @BLACKJ_15202

:BLACKJ_15170
if 
  4@ == 99
goto_if_false @BLACKJ_15202
3@ = 0
4@ = 0

:BLACKJ_15202
if 
  $player_cannot_split == 1
goto_if_false @BLACKJ_15293
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_15269
gosub @BLACKJ_34119
Text.Display($card_cheat_value[22], $9255[22], 'BJ_ARR')
goto @BLACKJ_15293

:BLACKJ_15269
gosub @BLACKJ_34119
Text.Display($card_cheat_value[23], $9255[23], 'BJ_ARR')

:BLACKJ_15293
if 
  3@ == 99
goto_if_false @BLACKJ_15332
gosub @BLACKJ_10561
3@ = 0
2@ += 1

:BLACKJ_15332
gosub @BLACKJ_31187
gosub @BLACKJ_29832
gosub @BLACKJ_25134
return 

:BLACKJ_15355
if 
  3@ == 0
goto_if_false @BLACKJ_15508
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_15437
if 
  $dealer_wins_by_default > 21
goto_if_false @BLACKJ_15430
$player_has_hit = 1
$player_has_input = 1
3@ = 99

:BLACKJ_15430
goto @BLACKJ_15483

:BLACKJ_15437
if and
  $dealer_wins_by_default > 21
  $player_total1_b > 21
goto_if_false @BLACKJ_15483
$player_has_hit = 1
$player_has_input = 1
3@ = 99

:BLACKJ_15483
if 
  3@ <> 99
goto_if_false @BLACKJ_15508
3@ += 1

:BLACKJ_15508
if 
  3@ == 1
goto_if_false @BLACKJ_15615
if 
  $player_total2_b > 16
goto_if_false @BLACKJ_15558
$player_has_hit = 1
goto @BLACKJ_15565

:BLACKJ_15558
3@ += 1

:BLACKJ_15565
if 
  $next_card[4] <> 0
goto_if_false @BLACKJ_15590
$player_has_hit = 1

:BLACKJ_15590
if 
  $player_has_hit == 1
goto_if_false @BLACKJ_15615
3@ = 99

:BLACKJ_15615
if 
  3@ == 2
goto_if_false @BLACKJ_15647
gosub @BLACKJ_29731
3@ += 1

:BLACKJ_15647
if 
  3@ == 3
goto_if_false @BLACKJ_15717
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_15717
10@ = Char.GetScriptTaskStatus(1@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_15717
3@ += 1

:BLACKJ_15717
if 
  3@ == 4
goto_if_false @BLACKJ_15822
10@ = 0

:BLACKJ_15742
if 
  8 > 10@
goto_if_false @BLACKJ_15815
if 
  $next_card(10@,8i) == 0
goto_if_false @BLACKJ_15801
set_var_int_to_var_int $next_card(10@,8i) = $multiplier
10@ = 8

:BLACKJ_15801
10@ += 1
goto @BLACKJ_15742

:BLACKJ_15815
3@ = 0

:BLACKJ_15822
if 
  3@ == 99
goto_if_false @BLACKJ_15854
2@ += 1
3@ = 0

:BLACKJ_15854
gosub @BLACKJ_31187
gosub @BLACKJ_29832
gosub @BLACKJ_25134
return 

:BLACKJ_15877
if 
  3@ == 0
goto_if_false @BLACKJ_17943
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_16139
if 
  $dealer_wins_by_default <= 21
goto_if_false @BLACKJ_16132
if 
  $player_total2_b > 21
goto_if_false @BLACKJ_15963
$player_has_quit = 1
goto @BLACKJ_16132

:BLACKJ_15963
if 
  is_int_var_greater_than_int_var $dealer_wins_by_default > $player_total2_b
goto_if_false @BLACKJ_15996
$player_has_quit = 1
goto @BLACKJ_16132

:BLACKJ_15996
if 
  is_int_var_equal_to_int_var $dealer_wins_by_default == $player_total2_b
goto_if_false @BLACKJ_16125
if 
  $player_got_ace2 == 1
goto_if_false @BLACKJ_16079
if 
  $player_got_bj == 1
goto_if_false @BLACKJ_16065
$player_has_quit = 2
goto @BLACKJ_16072

:BLACKJ_16065
$player_has_quit = 1

:BLACKJ_16072
goto @BLACKJ_16118

:BLACKJ_16079
if 
  $player_got_bj == 1
goto_if_false @BLACKJ_16111
$player_has_quit = 0
goto @BLACKJ_16118

:BLACKJ_16111
$player_has_quit = 2

:BLACKJ_16118
goto @BLACKJ_16132

:BLACKJ_16125
$player_has_quit = 0

:BLACKJ_16132
goto @BLACKJ_16591

:BLACKJ_16139
if 
  $dealer_wins_by_default <= 21
goto_if_false @BLACKJ_16365
if 
  $player_total2_b > 21
goto_if_false @BLACKJ_16189
$player_has_quit = 1
goto @BLACKJ_16365

:BLACKJ_16189
if 
  is_int_var_greater_than_int_var $dealer_wins_by_default > $player_total2_b
goto_if_false @BLACKJ_16222
$player_has_quit = 1
goto @BLACKJ_16365

:BLACKJ_16222
if 
  is_int_var_equal_to_int_var $dealer_wins_by_default == $player_total2_b
goto_if_false @BLACKJ_16358
if or
  $player_got_ace2 == 2
  $player_got_ace2 == 4
goto_if_false @BLACKJ_16312
if 
  $player_got_bj == 1
goto_if_false @BLACKJ_16298
$player_has_quit = 2
goto @BLACKJ_16305

:BLACKJ_16298
$player_has_quit = 1

:BLACKJ_16305
goto @BLACKJ_16351

:BLACKJ_16312
if 
  $player_got_bj == 1
goto_if_false @BLACKJ_16344
$player_has_quit = 0
goto @BLACKJ_16351

:BLACKJ_16344
$player_has_quit = 2

:BLACKJ_16351
goto @BLACKJ_16365

:BLACKJ_16358
$player_has_quit = 0

:BLACKJ_16365
if 
  $player_total1_b <= 21
goto_if_false @BLACKJ_16591
if 
  $player_total2_b > 21
goto_if_false @BLACKJ_16415
$player_has_won1 = 1
goto @BLACKJ_16591

:BLACKJ_16415
if 
  is_int_var_greater_than_int_var $player_total1_b > $player_total2_b
goto_if_false @BLACKJ_16448
$player_has_won1 = 1
goto @BLACKJ_16591

:BLACKJ_16448
if 
  is_int_var_equal_to_int_var $player_total1_b == $player_total2_b
goto_if_false @BLACKJ_16584
if or
  $player_got_ace2 == 3
  $player_got_ace2 == 4
goto_if_false @BLACKJ_16538
if 
  $player_got_bj == 1
goto_if_false @BLACKJ_16524
$player_has_won1 = 2
goto @BLACKJ_16531

:BLACKJ_16524
$player_has_won1 = 1

:BLACKJ_16531
goto @BLACKJ_16577

:BLACKJ_16538
if 
  $player_got_bj == 1
goto_if_false @BLACKJ_16570
$player_has_won1 = 0
goto @BLACKJ_16577

:BLACKJ_16570
$player_has_won1 = 2

:BLACKJ_16577
goto @BLACKJ_16591

:BLACKJ_16584
$player_has_won1 = 0

:BLACKJ_16591
TIMERA = 0
$bj_initial_stake = 0
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_16736
if 
  $player_has_quit == 1
goto_if_false @BLACKJ_16703
if 
  $player_got_ace2 == 1
goto_if_false @BLACKJ_16681
$bj_initial_stake = 3
mult_int_var_by_int_var $bj_initial_stake *= $bj_last_bet
goto @BLACKJ_16696

:BLACKJ_16681
$bj_initial_stake = 2
mult_int_var_by_int_var $bj_initial_stake *= $bj_last_bet

:BLACKJ_16696
goto @BLACKJ_16729

:BLACKJ_16703
if 
  $player_has_quit == 2
goto_if_false @BLACKJ_16729
set_var_int_to_var_int $bj_initial_stake = $bj_last_bet

:BLACKJ_16729
goto @BLACKJ_16978

:BLACKJ_16736
if 
  $player_has_quit == 1
goto_if_false @BLACKJ_16823
if or
  $player_got_ace2 == 2
  $player_got_ace2 == 4
goto_if_false @BLACKJ_16801
$bj_initial_stake = 3
mult_int_var_by_int_var $bj_initial_stake *= $bj_last_bet
goto @BLACKJ_16816

:BLACKJ_16801
$bj_initial_stake = 2
mult_int_var_by_int_var $bj_initial_stake *= $bj_last_bet

:BLACKJ_16816
goto @BLACKJ_16849

:BLACKJ_16823
if 
  $player_has_quit == 2
goto_if_false @BLACKJ_16849
set_var_int_to_var_int $bj_initial_stake = $bj_last_bet

:BLACKJ_16849
if 
  $player_has_won1 == 1
goto_if_false @BLACKJ_16952
if or
  $player_got_ace2 == 3
  $player_got_ace2 == 4
goto_if_false @BLACKJ_16922
set_lvar_int_to_var_int 10@ = $bj_bet1
10@ *= 3
add_int_lvar_to_int_var $bj_initial_stake += 10@
goto @BLACKJ_16945

:BLACKJ_16922
set_lvar_int_to_var_int 10@ = $bj_bet1
10@ *= 2
add_int_lvar_to_int_var $bj_initial_stake += 10@

:BLACKJ_16945
goto @BLACKJ_16978

:BLACKJ_16952
if 
  $player_has_won1 == 2
goto_if_false @BLACKJ_16978
add_int_var_to_int_var $bj_initial_stake += $bj_bet1

:BLACKJ_16978
set_lvar_int_to_var_int 10@ = $bj_initial_stake
sub_int_var_from_int_lvar 10@ -= $bj_refund
Stat.IncrementInt(StatId.MoneyWonGambling, 10@)
Player.AddScore($player1, $bj_initial_stake)
start_new_script @CASHWIN 10@ 3000 69 
Stat.ShowUpdateStats(False)
if 
  10@ > 0
goto_if_false @BLACKJ_17496
Stat.RegisterInt(StatId.BiggestGamblingWin, 10@)
cset_lvar_float_to_lvar_int 13@ =# 10@
cset_lvar_float_to_lvar_int 14@ =# 29@
div_float_lvar_by_float_lvar 13@ /= 14@
$bj_temp_float3 += 1
if 
  5 > $bj_temp_float3
goto_if_false @BLACKJ_17331
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_17324
if 
  13@ > 0.8
goto_if_false @BLACKJ_17156
10@ = Math.RandomIntInRange(0, 4)
goto @BLACKJ_17165

:BLACKJ_17156
10@ = Math.RandomIntInRange(0, 3)

:BLACKJ_17165
switch_start 10@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_17324 {caseNum1} 0 {caseLabel1} @BLACKJ_17228 {caseNum2} 1 {caseLabel2} @BLACKJ_17249 {caseNum3} 2 {caseLabel3} @BLACKJ_17270 {caseNum4} 3 {caseLabel4} @BLACKJ_17291 {caseNum5} -1 {caseLabel5} @BLACKJ_17324 {caseNum6} -1 {caseLabel6} @BLACKJ_17324 {caseNum7} -1 {caseLabel7} @BLACKJ_17324

:BLACKJ_17228
Char.SetSayScript(1@, 30447, True, True, False)
goto @BLACKJ_17324

:BLACKJ_17249
Char.SetSayScript(1@, 30448, True, True, False)
goto @BLACKJ_17324

:BLACKJ_17270
Char.SetSayScript(1@, 30449, True, True, False)
goto @BLACKJ_17324

:BLACKJ_17291
if 
  Player.IsPlaying($player1)
goto_if_false @BLACKJ_17317
10@ = Char.SetSayContext($scplayer, 100)

:BLACKJ_17317
goto @BLACKJ_17324

:BLACKJ_17324
goto @BLACKJ_17489

:BLACKJ_17331
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_17482
10@ = Math.RandomIntInRange(0, 3)
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_17482 {caseNum1} 0 {caseLabel1} @BLACKJ_17419 {caseNum2} 1 {caseLabel2} @BLACKJ_17440 {caseNum3} 2 {caseLabel3} @BLACKJ_17461 {caseNum4} -1 {caseLabel4} @BLACKJ_17482 {caseNum5} -1 {caseLabel5} @BLACKJ_17482 {caseNum6} -1 {caseLabel6} @BLACKJ_17482 {caseNum7} -1 {caseLabel7} @BLACKJ_17482

:BLACKJ_17419
Char.SetSayScript(1@, 30454, True, True, False)
goto @BLACKJ_17482

:BLACKJ_17440
Char.SetSayScript(1@, 30455, True, True, False)
goto @BLACKJ_17482

:BLACKJ_17461
Char.SetSayScript(1@, 30456, True, True, False)
goto @BLACKJ_17482

:BLACKJ_17482
$bj_temp_float3 = 0

:BLACKJ_17489
goto @BLACKJ_17918

:BLACKJ_17496
10@ *= -1
Stat.RegisterInt(StatId.BiggestGamblingLoss, 10@)
10@ *= -1
$bj_temp_float3 = 0
cset_lvar_float_to_lvar_int 13@ =# 10@
13@ *= -1.0
cset_lvar_float_to_lvar_int 14@ =# 29@
div_float_lvar_by_float_lvar 13@ /= 14@
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_17918
if 
  0 > 10@
goto_if_false @BLACKJ_17804
if 
  13@ > 0.8
goto_if_false @BLACKJ_17629
10@ = Math.RandomIntInRange(0, 4)
goto @BLACKJ_17638

:BLACKJ_17629
10@ = Math.RandomIntInRange(0, 3)

:BLACKJ_17638
switch_start 10@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_17797 {caseNum1} 0 {caseLabel1} @BLACKJ_17701 {caseNum2} 1 {caseLabel2} @BLACKJ_17722 {caseNum3} 2 {caseLabel3} @BLACKJ_17743 {caseNum4} 3 {caseLabel4} @BLACKJ_17764 {caseNum5} -1 {caseLabel5} @BLACKJ_17797 {caseNum6} -1 {caseLabel6} @BLACKJ_17797 {caseNum7} -1 {caseLabel7} @BLACKJ_17797

:BLACKJ_17701
Char.SetSayScript(1@, 30417, True, True, False)
goto @BLACKJ_17797

:BLACKJ_17722
Char.SetSayScript(1@, 30418, True, True, False)
goto @BLACKJ_17797

:BLACKJ_17743
Char.SetSayScript(1@, 30419, True, True, False)
goto @BLACKJ_17797

:BLACKJ_17764
if 
  Player.IsPlaying($player1)
goto_if_false @BLACKJ_17790
10@ = Char.SetSayContext($scplayer, 101)

:BLACKJ_17790
goto @BLACKJ_17797

:BLACKJ_17797
goto @BLACKJ_17918

:BLACKJ_17804
10@ = Math.RandomIntInRange(0, 2)
switch_start 10@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_17918 {caseNum1} 0 {caseLabel1} @BLACKJ_17876 {caseNum2} 1 {caseLabel2} @BLACKJ_17897 {caseNum3} -1 {caseLabel3} @BLACKJ_17918 {caseNum4} -1 {caseLabel4} @BLACKJ_17918 {caseNum5} -1 {caseLabel5} @BLACKJ_17918 {caseNum6} -1 {caseLabel6} @BLACKJ_17918 {caseNum7} -1 {caseLabel7} @BLACKJ_17918

:BLACKJ_17876
Char.SetSayScript(1@, 30415, True, True, False)
goto @BLACKJ_17918

:BLACKJ_17897
Char.SetSayScript(1@, 30416, True, True, False)
goto @BLACKJ_17918

:BLACKJ_17918
Stat.ShowUpdateStats(True)
$bj_refund = 0
gosub @BLACKJ_23195
3@ += 1

:BLACKJ_17943
if 
  3@ == 1
goto_if_false @BLACKJ_18074
if 
  TIMERA > 3000
goto_if_false @BLACKJ_17994
3@ += 1
goto @BLACKJ_18074

:BLACKJ_17994
if 
  23@ == 0
goto_if_false @BLACKJ_18050
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BLACKJ_18043
23@ = 1
3@ += 1

:BLACKJ_18043
goto @BLACKJ_18074

:BLACKJ_18050
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BLACKJ_18074
23@ = 0

:BLACKJ_18074
if 
  3@ == 2
goto_if_false @BLACKJ_18106
TIMERA = 0
3@ += 1

:BLACKJ_18106
if 
  3@ == 3
goto_if_false @BLACKJ_18246
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BLACKJ_18162
23@ = 1
3@ = 99
goto @BLACKJ_18246

:BLACKJ_18162
if and
  not Text.IsThisHelpMessageBeingDisplayed('SGPUNT')
  not Text.IsThisHelpMessageBeingDisplayed('SGGAMB')
  not Text.IsThisHelpMessageBeingDisplayed('SGPROF')
  not Text.IsThisHelpMessageBeingDisplayed('SGHIRO')
goto_if_false @BLACKJ_18246
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @BLACKJ_18246
Text.SetHelpMessageBoxSize(128)
Text.PrintHelpForever('BJ_H4')

:BLACKJ_18246
if 
  3@ == 99
goto_if_false @BLACKJ_18285
gosub @BLACKJ_10561
2@ = 1
3@ = 0

:BLACKJ_18285
gosub @BLACKJ_29832
gosub @BLACKJ_25134
return 

:BLACKJ_18301
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_18452
10@ = Math.RandomIntInRange(0, 3)
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_18452 {caseNum1} 0 {caseLabel1} @BLACKJ_18389 {caseNum2} 1 {caseLabel2} @BLACKJ_18410 {caseNum3} 2 {caseLabel3} @BLACKJ_18431 {caseNum4} -1 {caseLabel4} @BLACKJ_18452 {caseNum5} -1 {caseLabel5} @BLACKJ_18452 {caseNum6} -1 {caseLabel6} @BLACKJ_18452 {caseNum7} -1 {caseLabel7} @BLACKJ_18452

:BLACKJ_18389
Char.SetSayScript(1@, 30423, True, True, False)
goto @BLACKJ_18452

:BLACKJ_18410
Char.SetSayScript(1@, 30424, True, True, False)
goto @BLACKJ_18452

:BLACKJ_18431
Char.SetSayScript(1@, 30425, True, True, False)
goto @BLACKJ_18452

:BLACKJ_18452
return 

:BLACKJ_18454
gosub @BLACKJ_31187
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_21797
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_19592
if 
  $player_total1 == 0
goto_if_false @BLACKJ_19168
switch_start $dealer_wins_by_default {numCases} 18 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_19084 {caseNum1} 4 {caseLabel1} @BLACKJ_18706 {caseNum2} 5 {caseLabel2} @BLACKJ_18727 {caseNum3} 6 {caseLabel3} @BLACKJ_18748 {caseNum4} 7 {caseLabel4} @BLACKJ_18769 {caseNum5} 8 {caseLabel5} @BLACKJ_18790 {caseNum6} 9 {caseLabel6} @BLACKJ_18811 {caseNum7} 10 {caseLabel7} @BLACKJ_18832
switch_continued 11 {caseLabel1} @BLACKJ_18853 {caseNum2} 12 {caseLabel2} @BLACKJ_18874 {caseNum3} 13 {caseLabel3} @BLACKJ_18895 {caseNum4} 14 {caseLabel4} @BLACKJ_18916 {caseNum5} 15 {caseLabel5} @BLACKJ_18937 {caseNum6} 16 {caseLabel6} @BLACKJ_18958 {caseNum7} 17 {caseLabel7} @BLACKJ_18979 {caseNum8} 18 {caseLabel8} @BLACKJ_19000 {caseNum9} 19 {caseLabel9} @BLACKJ_19021
switch_continued 20 {caseLabel1} @BLACKJ_19042 {caseNum2} 21 {caseLabel2} @BLACKJ_19063 {caseNum3} -1 {caseLabel3} @BLACKJ_19153 {caseNum4} -1 {caseLabel4} @BLACKJ_19153 {caseNum5} -1 {caseLabel5} @BLACKJ_19153 {caseNum6} -1 {caseLabel6} @BLACKJ_19153 {caseNum7} -1 {caseLabel7} @BLACKJ_19153 {caseNum8} -1 {caseLabel8} @BLACKJ_19153 {caseNum9} -1 {caseLabel9} @BLACKJ_19153

:BLACKJ_18706
Char.SetSayScript(1@, 30441, True, True, False)
goto @BLACKJ_19153

:BLACKJ_18727
Char.SetSayScript(1@, 30442, True, True, False)
goto @BLACKJ_19153

:BLACKJ_18748
Char.SetSayScript(1@, 30443, True, True, False)
goto @BLACKJ_19153

:BLACKJ_18769
Char.SetSayScript(1@, 30444, True, True, False)
goto @BLACKJ_19153

:BLACKJ_18790
Char.SetSayScript(1@, 30445, True, True, False)
goto @BLACKJ_19153

:BLACKJ_18811
Char.SetSayScript(1@, 30446, True, True, False)
goto @BLACKJ_19153

:BLACKJ_18832
Char.SetSayScript(1@, 30429, True, True, False)
goto @BLACKJ_19153

:BLACKJ_18853
Char.SetSayScript(1@, 30430, True, True, False)
goto @BLACKJ_19153

:BLACKJ_18874
Char.SetSayScript(1@, 30431, True, True, False)
goto @BLACKJ_19153

:BLACKJ_18895
Char.SetSayScript(1@, 30432, True, True, False)
goto @BLACKJ_19153

:BLACKJ_18916
Char.SetSayScript(1@, 30433, True, True, False)
goto @BLACKJ_19153

:BLACKJ_18937
Char.SetSayScript(1@, 30434, True, True, False)
goto @BLACKJ_19153

:BLACKJ_18958
Char.SetSayScript(1@, 30435, True, True, False)
goto @BLACKJ_19153

:BLACKJ_18979
Char.SetSayScript(1@, 30436, True, True, False)
goto @BLACKJ_19153

:BLACKJ_19000
Char.SetSayScript(1@, 30437, True, True, False)
goto @BLACKJ_19153

:BLACKJ_19021
Char.SetSayScript(1@, 30438, True, True, False)
goto @BLACKJ_19153

:BLACKJ_19042
Char.SetSayScript(1@, 30439, True, True, False)
goto @BLACKJ_19153

:BLACKJ_19063
Char.SetSayScript(1@, 30440, True, True, False)
goto @BLACKJ_19153

:BLACKJ_19084
10@ = Math.RandomIntInRange(0, 2)
if 
  10@ == 0
goto_if_false @BLACKJ_19132
Char.SetSayScript(1@, 30413, True, True, False)
goto @BLACKJ_19146

:BLACKJ_19132
Char.SetSayScript(1@, 30414, True, True, False)

:BLACKJ_19146
goto @BLACKJ_19153

:BLACKJ_19153
Char.StartFacialTalk(1@, 1500)
goto @BLACKJ_19585

:BLACKJ_19168
switch_start $dealer_wins_by_default {numCases} 10 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_19508 {caseNum1} 12 {caseLabel1} @BLACKJ_19296 {caseNum2} 13 {caseLabel2} @BLACKJ_19317 {caseNum3} 14 {caseLabel3} @BLACKJ_19338 {caseNum4} 15 {caseLabel4} @BLACKJ_19359 {caseNum5} 16 {caseLabel5} @BLACKJ_19380 {caseNum6} 17 {caseLabel6} @BLACKJ_19401 {caseNum7} 18 {caseLabel7} @BLACKJ_19422
switch_continued 19 {caseLabel1} @BLACKJ_19443 {caseNum2} 20 {caseLabel2} @BLACKJ_19464 {caseNum3} 21 {caseLabel3} @BLACKJ_19485 {caseNum4} -1 {caseLabel4} @BLACKJ_19577 {caseNum5} -1 {caseLabel5} @BLACKJ_19577 {caseNum6} -1 {caseLabel6} @BLACKJ_19577 {caseNum7} -1 {caseLabel7} @BLACKJ_19577 {caseNum8} -1 {caseLabel8} @BLACKJ_19577 {caseNum9} -1 {caseLabel9} @BLACKJ_19577

:BLACKJ_19296
Char.SetSayScript(1@, 30401, True, True, False)
goto @BLACKJ_19577

:BLACKJ_19317
Char.SetSayScript(1@, 30402, True, True, False)
goto @BLACKJ_19577

:BLACKJ_19338
Char.SetSayScript(1@, 30403, True, True, False)
goto @BLACKJ_19577

:BLACKJ_19359
Char.SetSayScript(1@, 30404, True, True, False)
goto @BLACKJ_19577

:BLACKJ_19380
Char.SetSayScript(1@, 30405, True, True, False)
goto @BLACKJ_19577

:BLACKJ_19401
Char.SetSayScript(1@, 30406, True, True, False)
goto @BLACKJ_19577

:BLACKJ_19422
Char.SetSayScript(1@, 30407, True, True, False)
goto @BLACKJ_19577

:BLACKJ_19443
Char.SetSayScript(1@, 30408, True, True, False)
goto @BLACKJ_19577

:BLACKJ_19464
Char.SetSayScript(1@, 30400, True, True, False)
goto @BLACKJ_19577

:BLACKJ_19485
Char.SetSayScript(1@, 65535, True, True, False)
goto @BLACKJ_19577

:BLACKJ_19508
10@ = Math.RandomIntInRange(0, 2)
if 
  10@ == 0
goto_if_false @BLACKJ_19556
Char.SetSayScript(1@, 30413, True, True, False)
goto @BLACKJ_19570

:BLACKJ_19556
Char.SetSayScript(1@, 30414, True, True, False)

:BLACKJ_19570
goto @BLACKJ_19577

:BLACKJ_19577
Char.StartFacialTalk(1@, 3000)

:BLACKJ_19585
goto @BLACKJ_21797

:BLACKJ_19592
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_20707
if 
  $player_total1 == 0
goto_if_false @BLACKJ_20283
switch_start $dealer_wins_by_default {numCases} 18 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_20199 {caseNum1} 4 {caseLabel1} @BLACKJ_19821 {caseNum2} 5 {caseLabel2} @BLACKJ_19842 {caseNum3} 6 {caseLabel3} @BLACKJ_19863 {caseNum4} 7 {caseLabel4} @BLACKJ_19884 {caseNum5} 8 {caseLabel5} @BLACKJ_19905 {caseNum6} 9 {caseLabel6} @BLACKJ_19926 {caseNum7} 10 {caseLabel7} @BLACKJ_19947
switch_continued 11 {caseLabel1} @BLACKJ_19968 {caseNum2} 12 {caseLabel2} @BLACKJ_19989 {caseNum3} 13 {caseLabel3} @BLACKJ_20010 {caseNum4} 14 {caseLabel4} @BLACKJ_20031 {caseNum5} 15 {caseLabel5} @BLACKJ_20052 {caseNum6} 16 {caseLabel6} @BLACKJ_20073 {caseNum7} 17 {caseLabel7} @BLACKJ_20094 {caseNum8} 18 {caseLabel8} @BLACKJ_20115 {caseNum9} 19 {caseLabel9} @BLACKJ_20136
switch_continued 20 {caseLabel1} @BLACKJ_20157 {caseNum2} 21 {caseLabel2} @BLACKJ_20178 {caseNum3} -1 {caseLabel3} @BLACKJ_20268 {caseNum4} -1 {caseLabel4} @BLACKJ_20268 {caseNum5} -1 {caseLabel5} @BLACKJ_20268 {caseNum6} -1 {caseLabel6} @BLACKJ_20268 {caseNum7} -1 {caseLabel7} @BLACKJ_20268 {caseNum8} -1 {caseLabel8} @BLACKJ_20268 {caseNum9} -1 {caseLabel9} @BLACKJ_20268

:BLACKJ_19821
Char.SetSayScript(1@, 30441, True, True, False)
goto @BLACKJ_20268

:BLACKJ_19842
Char.SetSayScript(1@, 30442, True, True, False)
goto @BLACKJ_20268

:BLACKJ_19863
Char.SetSayScript(1@, 30443, True, True, False)
goto @BLACKJ_20268

:BLACKJ_19884
Char.SetSayScript(1@, 30444, True, True, False)
goto @BLACKJ_20268

:BLACKJ_19905
Char.SetSayScript(1@, 30445, True, True, False)
goto @BLACKJ_20268

:BLACKJ_19926
Char.SetSayScript(1@, 30446, True, True, False)
goto @BLACKJ_20268

:BLACKJ_19947
Char.SetSayScript(1@, 30429, True, True, False)
goto @BLACKJ_20268

:BLACKJ_19968
Char.SetSayScript(1@, 30430, True, True, False)
goto @BLACKJ_20268

:BLACKJ_19989
Char.SetSayScript(1@, 30431, True, True, False)
goto @BLACKJ_20268

:BLACKJ_20010
Char.SetSayScript(1@, 30432, True, True, False)
goto @BLACKJ_20268

:BLACKJ_20031
Char.SetSayScript(1@, 30433, True, True, False)
goto @BLACKJ_20268

:BLACKJ_20052
Char.SetSayScript(1@, 30434, True, True, False)
goto @BLACKJ_20268

:BLACKJ_20073
Char.SetSayScript(1@, 30435, True, True, False)
goto @BLACKJ_20268

:BLACKJ_20094
Char.SetSayScript(1@, 30436, True, True, False)
goto @BLACKJ_20268

:BLACKJ_20115
Char.SetSayScript(1@, 30437, True, True, False)
goto @BLACKJ_20268

:BLACKJ_20136
Char.SetSayScript(1@, 30438, True, True, False)
goto @BLACKJ_20268

:BLACKJ_20157
Char.SetSayScript(1@, 30439, True, True, False)
goto @BLACKJ_20268

:BLACKJ_20178
Char.SetSayScript(1@, 30440, True, True, False)
goto @BLACKJ_20268

:BLACKJ_20199
10@ = Math.RandomIntInRange(0, 2)
if 
  10@ == 0
goto_if_false @BLACKJ_20247
Char.SetSayScript(1@, 30413, True, True, False)
goto @BLACKJ_20261

:BLACKJ_20247
Char.SetSayScript(1@, 30414, True, True, False)

:BLACKJ_20261
goto @BLACKJ_20268

:BLACKJ_20268
Char.StartFacialTalk(1@, 1500)
goto @BLACKJ_20700

:BLACKJ_20283
switch_start $dealer_wins_by_default {numCases} 10 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_20623 {caseNum1} 12 {caseLabel1} @BLACKJ_20411 {caseNum2} 13 {caseLabel2} @BLACKJ_20432 {caseNum3} 14 {caseLabel3} @BLACKJ_20453 {caseNum4} 15 {caseLabel4} @BLACKJ_20474 {caseNum5} 16 {caseLabel5} @BLACKJ_20495 {caseNum6} 17 {caseLabel6} @BLACKJ_20516 {caseNum7} 18 {caseLabel7} @BLACKJ_20537
switch_continued 19 {caseLabel1} @BLACKJ_20558 {caseNum2} 20 {caseLabel2} @BLACKJ_20579 {caseNum3} 21 {caseLabel3} @BLACKJ_20600 {caseNum4} -1 {caseLabel4} @BLACKJ_20692 {caseNum5} -1 {caseLabel5} @BLACKJ_20692 {caseNum6} -1 {caseLabel6} @BLACKJ_20692 {caseNum7} -1 {caseLabel7} @BLACKJ_20692 {caseNum8} -1 {caseLabel8} @BLACKJ_20692 {caseNum9} -1 {caseLabel9} @BLACKJ_20692

:BLACKJ_20411
Char.SetSayScript(1@, 30401, True, True, False)
goto @BLACKJ_20692

:BLACKJ_20432
Char.SetSayScript(1@, 30402, True, True, False)
goto @BLACKJ_20692

:BLACKJ_20453
Char.SetSayScript(1@, 30403, True, True, False)
goto @BLACKJ_20692

:BLACKJ_20474
Char.SetSayScript(1@, 30404, True, True, False)
goto @BLACKJ_20692

:BLACKJ_20495
Char.SetSayScript(1@, 30405, True, True, False)
goto @BLACKJ_20692

:BLACKJ_20516
Char.SetSayScript(1@, 30406, True, True, False)
goto @BLACKJ_20692

:BLACKJ_20537
Char.SetSayScript(1@, 30407, True, True, False)
goto @BLACKJ_20692

:BLACKJ_20558
Char.SetSayScript(1@, 30408, True, True, False)
goto @BLACKJ_20692

:BLACKJ_20579
Char.SetSayScript(1@, 30400, True, True, False)
goto @BLACKJ_20692

:BLACKJ_20600
Char.SetSayScript(1@, 65535, True, True, False)
goto @BLACKJ_20692

:BLACKJ_20623
10@ = Math.RandomIntInRange(0, 2)
if 
  10@ == 0
goto_if_false @BLACKJ_20671
Char.SetSayScript(1@, 30413, True, True, False)
goto @BLACKJ_20685

:BLACKJ_20671
Char.SetSayScript(1@, 30414, True, True, False)

:BLACKJ_20685
goto @BLACKJ_20692

:BLACKJ_20692
Char.StartFacialTalk(1@, 3000)

:BLACKJ_20700
goto @BLACKJ_21797

:BLACKJ_20707
if 
  $player_total2 == 0
goto_if_false @BLACKJ_21380
switch_start $player_total1_b {numCases} 18 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_21296 {caseNum1} 4 {caseLabel1} @BLACKJ_20918 {caseNum2} 5 {caseLabel2} @BLACKJ_20939 {caseNum3} 6 {caseLabel3} @BLACKJ_20960 {caseNum4} 7 {caseLabel4} @BLACKJ_20981 {caseNum5} 8 {caseLabel5} @BLACKJ_21002 {caseNum6} 9 {caseLabel6} @BLACKJ_21023 {caseNum7} 10 {caseLabel7} @BLACKJ_21044
switch_continued 11 {caseLabel1} @BLACKJ_21065 {caseNum2} 12 {caseLabel2} @BLACKJ_21086 {caseNum3} 13 {caseLabel3} @BLACKJ_21107 {caseNum4} 14 {caseLabel4} @BLACKJ_21128 {caseNum5} 15 {caseLabel5} @BLACKJ_21149 {caseNum6} 16 {caseLabel6} @BLACKJ_21170 {caseNum7} 17 {caseLabel7} @BLACKJ_21191 {caseNum8} 18 {caseLabel8} @BLACKJ_21212 {caseNum9} 19 {caseLabel9} @BLACKJ_21233
switch_continued 20 {caseLabel1} @BLACKJ_21254 {caseNum2} 21 {caseLabel2} @BLACKJ_21275 {caseNum3} -1 {caseLabel3} @BLACKJ_21365 {caseNum4} -1 {caseLabel4} @BLACKJ_21365 {caseNum5} -1 {caseLabel5} @BLACKJ_21365 {caseNum6} -1 {caseLabel6} @BLACKJ_21365 {caseNum7} -1 {caseLabel7} @BLACKJ_21365 {caseNum8} -1 {caseLabel8} @BLACKJ_21365 {caseNum9} -1 {caseLabel9} @BLACKJ_21365

:BLACKJ_20918
Char.SetSayScript(1@, 30441, True, True, False)
goto @BLACKJ_21365

:BLACKJ_20939
Char.SetSayScript(1@, 30442, True, True, False)
goto @BLACKJ_21365

:BLACKJ_20960
Char.SetSayScript(1@, 30443, True, True, False)
goto @BLACKJ_21365

:BLACKJ_20981
Char.SetSayScript(1@, 30444, True, True, False)
goto @BLACKJ_21365

:BLACKJ_21002
Char.SetSayScript(1@, 30445, True, True, False)
goto @BLACKJ_21365

:BLACKJ_21023
Char.SetSayScript(1@, 30446, True, True, False)
goto @BLACKJ_21365

:BLACKJ_21044
Char.SetSayScript(1@, 30429, True, True, False)
goto @BLACKJ_21365

:BLACKJ_21065
Char.SetSayScript(1@, 30430, True, True, False)
goto @BLACKJ_21365

:BLACKJ_21086
Char.SetSayScript(1@, 30431, True, True, False)
goto @BLACKJ_21365

:BLACKJ_21107
Char.SetSayScript(1@, 30432, True, True, False)
goto @BLACKJ_21365

:BLACKJ_21128
Char.SetSayScript(1@, 30433, True, True, False)
goto @BLACKJ_21365

:BLACKJ_21149
Char.SetSayScript(1@, 30434, True, True, False)
goto @BLACKJ_21365

:BLACKJ_21170
Char.SetSayScript(1@, 30435, True, True, False)
goto @BLACKJ_21365

:BLACKJ_21191
Char.SetSayScript(1@, 30436, True, True, False)
goto @BLACKJ_21365

:BLACKJ_21212
Char.SetSayScript(1@, 30437, True, True, False)
goto @BLACKJ_21365

:BLACKJ_21233
Char.SetSayScript(1@, 30438, True, True, False)
goto @BLACKJ_21365

:BLACKJ_21254
Char.SetSayScript(1@, 30439, True, True, False)
goto @BLACKJ_21365

:BLACKJ_21275
Char.SetSayScript(1@, 30440, True, True, False)
goto @BLACKJ_21365

:BLACKJ_21296
10@ = Math.RandomIntInRange(0, 2)
if 
  10@ == 0
goto_if_false @BLACKJ_21344
Char.SetSayScript(1@, 30413, True, True, False)
goto @BLACKJ_21358

:BLACKJ_21344
Char.SetSayScript(1@, 30414, True, True, False)

:BLACKJ_21358
goto @BLACKJ_21365

:BLACKJ_21365
Char.StartFacialTalk(1@, 1500)
goto @BLACKJ_21797

:BLACKJ_21380
switch_start $player_total1_b {numCases} 10 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_21720 {caseNum1} 12 {caseLabel1} @BLACKJ_21508 {caseNum2} 13 {caseLabel2} @BLACKJ_21529 {caseNum3} 14 {caseLabel3} @BLACKJ_21550 {caseNum4} 15 {caseLabel4} @BLACKJ_21571 {caseNum5} 16 {caseLabel5} @BLACKJ_21592 {caseNum6} 17 {caseLabel6} @BLACKJ_21613 {caseNum7} 18 {caseLabel7} @BLACKJ_21634
switch_continued 19 {caseLabel1} @BLACKJ_21655 {caseNum2} 20 {caseLabel2} @BLACKJ_21676 {caseNum3} 21 {caseLabel3} @BLACKJ_21697 {caseNum4} -1 {caseLabel4} @BLACKJ_21789 {caseNum5} -1 {caseLabel5} @BLACKJ_21789 {caseNum6} -1 {caseLabel6} @BLACKJ_21789 {caseNum7} -1 {caseLabel7} @BLACKJ_21789 {caseNum8} -1 {caseLabel8} @BLACKJ_21789 {caseNum9} -1 {caseLabel9} @BLACKJ_21789

:BLACKJ_21508
Char.SetSayScript(1@, 30401, True, True, False)
goto @BLACKJ_21789

:BLACKJ_21529
Char.SetSayScript(1@, 30402, True, True, False)
goto @BLACKJ_21789

:BLACKJ_21550
Char.SetSayScript(1@, 30403, True, True, False)
goto @BLACKJ_21789

:BLACKJ_21571
Char.SetSayScript(1@, 30404, True, True, False)
goto @BLACKJ_21789

:BLACKJ_21592
Char.SetSayScript(1@, 30405, True, True, False)
goto @BLACKJ_21789

:BLACKJ_21613
Char.SetSayScript(1@, 30406, True, True, False)
goto @BLACKJ_21789

:BLACKJ_21634
Char.SetSayScript(1@, 30407, True, True, False)
goto @BLACKJ_21789

:BLACKJ_21655
Char.SetSayScript(1@, 30408, True, True, False)
goto @BLACKJ_21789

:BLACKJ_21676
Char.SetSayScript(1@, 30400, True, True, False)
goto @BLACKJ_21789

:BLACKJ_21697
Char.SetSayScript(1@, 65535, True, True, False)
goto @BLACKJ_21789

:BLACKJ_21720
10@ = Math.RandomIntInRange(0, 2)
if 
  10@ == 0
goto_if_false @BLACKJ_21768
Char.SetSayScript(1@, 30413, True, True, False)
goto @BLACKJ_21782

:BLACKJ_21768
Char.SetSayScript(1@, 30414, True, True, False)

:BLACKJ_21782
goto @BLACKJ_21789

:BLACKJ_21789
Char.StartFacialTalk(1@, 3000)

:BLACKJ_21797
return 
if 
is_ps2_keyboard_key_just_pressed 6
goto_if_false @BLACKJ_21864
$9306 += 1
if 
  $9306 > 7
goto_if_false @BLACKJ_21846
$9306 = 0

:BLACKJ_21846
write_debug_with_int "BJ_CHIP_NUM" {_p2} $9306

:BLACKJ_21864
if 
  Object.DoesExist(0@)
goto_if_false @BLACKJ_22177
if 
  Object.DoesExist($total_bj_tables($9306,8i))
goto_if_false @BLACKJ_22177
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, $9282($9306,8f), $9290($9306,8f), $9298($9306,8f))
Object.SetCoordinates($total_bj_tables($9306,8i), $x, $y, $z)
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_21982
$9298($9306,8f) += 0.005

:BLACKJ_21982
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_22011
$9298($9306,8f) += -0.005

:BLACKJ_22011
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @BLACKJ_22040
$9282($9306,8f) += 0.005

:BLACKJ_22040
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @BLACKJ_22069
$9282($9306,8f) += -0.005

:BLACKJ_22069
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @BLACKJ_22098
$9290($9306,8f) += 0.005

:BLACKJ_22098
if 
is_ps2_keyboard_key_just_pressed 96
goto_if_false @BLACKJ_22127
$9290($9306,8f) += -0.005

:BLACKJ_22127
if 
is_ps2_keyboard_key_just_pressed 8
goto_if_false @BLACKJ_22152
$9215 += 0.005

:BLACKJ_22152
if 
is_ps2_keyboard_key_just_pressed 7
goto_if_false @BLACKJ_22177
$9215 += -0.005

:BLACKJ_22177
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @BLACKJ_23193
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("// ------ BJ CHIP OFFSETS -------")
save_newline_to_debug_file 
10@ = 0

:BLACKJ_22333
if 
  8 > 10@
goto_if_false @BLACKJ_23193
Debugger.SaveStringToDebugFile("BJ_CHIP_OFF_X[")
save_int_to_debug_file 10@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $9282(10@,8f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BJ_CHIP_OFF_Y[")
save_int_to_debug_file 10@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $9290(10@,8f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BJ_CHIP_OFF_Z[")
save_int_to_debug_file 10@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $9298(10@,8f)
save_newline_to_debug_file 
10@ += 1
goto @BLACKJ_22333

:BLACKJ_23193
return 

:BLACKJ_23195
set_lvar_int_to_var_int 12@ = $bj_refund
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 1.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_23252
13@ = 10.0

:BLACKJ_23252
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_23306
14@ += 0.0

:BLACKJ_23306
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -1
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($total_bj_tables[0])
goto_if_false @BLACKJ_23408
$x, $y, $z = Object.GetCoordinates($total_bj_tables[0])
13@, 13@, $z = Object.GetOffsetInWorldCoords(0@, 0.0, 0.0, 13@)
Object.SetCoordinates($total_bj_tables[0], $x, $y, $z)

:BLACKJ_23408
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 5.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_23457
13@ = 10.0

:BLACKJ_23457
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_23511
14@ += 0.0

:BLACKJ_23511
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -5
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($total_bj_tables[1])
goto_if_false @BLACKJ_23613
$x, $y, $z = Object.GetCoordinates($total_bj_tables[1])
13@, 13@, $z = Object.GetOffsetInWorldCoords(0@, 0.0, 0.0, 13@)
Object.SetCoordinates($total_bj_tables[1], $x, $y, $z)

:BLACKJ_23613
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 10.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_23662
13@ = 10.0

:BLACKJ_23662
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_23716
14@ += 0.0

:BLACKJ_23716
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -10
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($total_bj_tables[2])
goto_if_false @BLACKJ_23818
$x, $y, $z = Object.GetCoordinates($total_bj_tables[2])
13@, 13@, $z = Object.GetOffsetInWorldCoords(0@, 0.0, 0.0, 13@)
Object.SetCoordinates($total_bj_tables[2], $x, $y, $z)

:BLACKJ_23818
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 50.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_23867
13@ = 10.0

:BLACKJ_23867
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_23921
14@ += 0.0

:BLACKJ_23921
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -50
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($total_bj_tables[3])
goto_if_false @BLACKJ_24023
$x, $y, $z = Object.GetCoordinates($total_bj_tables[3])
13@, 13@, $z = Object.GetOffsetInWorldCoords(0@, 0.0, 0.0, 13@)
Object.SetCoordinates($total_bj_tables[3], $x, $y, $z)

:BLACKJ_24023
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 100.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_24072
13@ = 10.0

:BLACKJ_24072
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_24126
14@ += 0.0

:BLACKJ_24126
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -100
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($total_bj_tables[4])
goto_if_false @BLACKJ_24228
$x, $y, $z = Object.GetCoordinates($total_bj_tables[4])
13@, 13@, $z = Object.GetOffsetInWorldCoords(0@, 0.0, 0.0, 13@)
Object.SetCoordinates($total_bj_tables[4], $x, $y, $z)

:BLACKJ_24228
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 200.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_24277
13@ = 10.0

:BLACKJ_24277
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_24331
14@ += 0.0

:BLACKJ_24331
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -200
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($total_bj_tables[5])
goto_if_false @BLACKJ_24434
$x, $y, $z = Object.GetCoordinates($total_bj_tables[5])
13@, 13@, $z = Object.GetOffsetInWorldCoords(0@, 0.0, 0.0, 13@)
Object.SetCoordinates($total_bj_tables[5], $x, $y, $z)

:BLACKJ_24434
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 500.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_24483
13@ = 10.0

:BLACKJ_24483
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_24537
14@ += 0.0

:BLACKJ_24537
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -500
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($total_bj_tables[6])
goto_if_false @BLACKJ_24640
$x, $y, $z = Object.GetCoordinates($total_bj_tables[6])
13@, 13@, $z = Object.GetOffsetInWorldCoords(0@, 0.0, 0.0, 13@)
Object.SetCoordinates($total_bj_tables[6], $x, $y, $z)

:BLACKJ_24640
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 1000.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_24689
13@ = 10.0

:BLACKJ_24689
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_24743
14@ += 0.0

:BLACKJ_24743
set_lvar_float_to_var_float 13@ = $9215
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -1000
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($total_bj_tables[7])
goto_if_false @BLACKJ_24846
$x, $y, $z = Object.GetCoordinates($total_bj_tables[7])
13@, 13@, $z = Object.GetOffsetInWorldCoords(0@, 0.0, 0.0, 13@)
Object.SetCoordinates($total_bj_tables[7], $x, $y, $z)

:BLACKJ_24846
return 

:BLACKJ_24848
Hud.SetSpritesDrawBeforeFade(False)
Hud.DrawWindow($card_cheat_value[0], $9255[0], $card_cheat_value[1], $9255[1], 'BJ_TITL', 2)
gosub @BLACKJ_34009
Hud.SetSpritesDrawBeforeFade(False)
Text.SetColor(134, 155, 184, 255)
Text.Display($card_cheat_value[2], $9255[2], 'BJ_01')
gosub @BLACKJ_34009
Hud.SetSpritesDrawBeforeFade(False)
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber($card_cheat_value[3], $9255[3], 'DOLLAR', $bj_refund)
gosub @BLACKJ_34009
Hud.SetSpritesDrawBeforeFade(False)
Text.SetColor(134, 155, 184, 255)
Text.Display($card_cheat_value[4], $9255[4], 'BJ_02')
gosub @BLACKJ_34009
Hud.SetSpritesDrawBeforeFade(False)
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber($card_cheat_value[5], $9255[5], 'DOLLAR', 30@)
gosub @BLACKJ_34009
Hud.SetSpritesDrawBeforeFade(False)
Text.SetColor(134, 155, 184, 255)
Text.Display($card_cheat_value[6], $9255[6], 'BJ_03')
gosub @BLACKJ_34009
Hud.SetSpritesDrawBeforeFade(False)
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber($card_cheat_value[7], $9255[7], 'DOLLAR', 29@)
return 

:BLACKJ_25134
Hud.SetSpritesDrawBeforeFade(False)
Hud.DrawWindow($card_cheat_value[8], $9255[8], $card_cheat_value[9], $9255[9], 'BJ_TITL', 2)
gosub @BLACKJ_34009
Hud.SetSpritesDrawBeforeFade(False)
Text.SetColor(134, 155, 184, 255)
Text.Display($card_cheat_value[10], $9255[10], 'BJ_01')
gosub @BLACKJ_34009
Hud.SetSpritesDrawBeforeFade(False)
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber($card_cheat_value[11], $9255[11], 'DOLLAR', $bj_refund)
gosub @BLACKJ_34009
Hud.SetSpritesDrawBeforeFade(False)
Text.SetColor(134, 155, 184, 255)
Text.Display($card_cheat_value[12], $9255[12], 'BJ_04')
gosub @BLACKJ_34009
Hud.SetSpritesDrawBeforeFade(False)
Text.SetScale(0.6253, 2.7876)
if 
  2@ > 4
goto_if_false @BLACKJ_25448
if 
  $dealer_total == 0
goto_if_false @BLACKJ_25418
if 
  $player_total2_b > 21
goto_if_false @BLACKJ_25391
Text.Display($card_cheat_value[13], $9255[13], 'BJ_BUST')
goto @BLACKJ_25411

:BLACKJ_25391
Text.DisplayWithNumber($card_cheat_value[13], $9255[13], 'BJ_0', $player_total2_b)

:BLACKJ_25411
goto @BLACKJ_25441

:BLACKJ_25418
Text.DisplayWith2Numbers($card_cheat_value[14], $9255[14], 'BJ_OR2', $player_total2_b, $dealer_total)

:BLACKJ_25441
goto @BLACKJ_25465

:BLACKJ_25448
Text.Display($card_cheat_value[13], $9255[13], 'BJ_HIDE')

:BLACKJ_25465
gosub @BLACKJ_34009
Hud.SetSpritesDrawBeforeFade(False)
Text.SetColor(134, 155, 184, 255)
Text.Display($card_cheat_value[15], $9255[15], 'BJ_05')
if 
  $player_total1_b == 0
goto_if_false @BLACKJ_25665
gosub @BLACKJ_34009
Hud.SetSpritesDrawBeforeFade(False)
Text.SetScale(0.6253, 2.7876)
if 
  $player_total1 == 0
goto_if_false @BLACKJ_25635
if 
  $dealer_wins_by_default > 21
goto_if_false @BLACKJ_25608
Text.Display($card_cheat_value[16], $9255[16], 'BJ_BUST')
goto @BLACKJ_25628

:BLACKJ_25608
Text.DisplayWithNumber($card_cheat_value[16], $9255[16], 'BJ_0', $dealer_wins_by_default)

:BLACKJ_25628
goto @BLACKJ_25658

:BLACKJ_25635
Text.DisplayWith2Numbers($card_cheat_value[17], $9255[17], 'BJ_OR2', $dealer_wins_by_default, $player_total1)

:BLACKJ_25658
goto @BLACKJ_25931

:BLACKJ_25665
gosub @BLACKJ_34009
Hud.SetSpritesDrawBeforeFade(False)
Text.SetScale(0.6253, 2.7876)
if 
  $player_total1 == 0
goto_if_false @BLACKJ_25775
if 
  $dealer_wins_by_default > 21
goto_if_false @BLACKJ_25748
Text.Display($card_cheat_value[18], $9255[18], 'BJ_BUST')
goto @BLACKJ_25768

:BLACKJ_25748
Text.DisplayWithNumber($card_cheat_value[18], $9255[18], 'BJ_0', $dealer_wins_by_default)

:BLACKJ_25768
goto @BLACKJ_25798

:BLACKJ_25775
Text.DisplayWith2Numbers($card_cheat_value[19], $9255[19], 'BJ_OR2', $dealer_wins_by_default, $player_total1)

:BLACKJ_25798
gosub @BLACKJ_34009
Hud.SetSpritesDrawBeforeFade(False)
Text.SetScale(0.6253, 2.7876)
if 
  $player_total2 == 0
goto_if_false @BLACKJ_25908
if 
  $player_total1_b > 21
goto_if_false @BLACKJ_25881
Text.Display($card_cheat_value[20], $9255[20], 'BJ_BUST')
goto @BLACKJ_25901

:BLACKJ_25881
Text.DisplayWithNumber($card_cheat_value[20], $9255[20], 'BJ_0', $player_total1_b)

:BLACKJ_25901
goto @BLACKJ_25931

:BLACKJ_25908
Text.DisplayWith2Numbers($card_cheat_value[21], $9255[21], 'BJ_OR2', $player_total1_b, $player_total2)

:BLACKJ_25931
return 
if 
is_ps2_keyboard_key_just_pressed 15
goto_if_false @BLACKJ_26007
$bj_chip_num += 1
if 
  $bj_chip_num > 26
goto_if_false @BLACKJ_25980
$bj_chip_num = -1

:BLACKJ_25980
write_debug_with_int "SCREEN_POSITION_EDIT" {_p2} $bj_chip_num

:BLACKJ_26007
if 
  $bj_chip_num > -1
goto_if_false @BLACKJ_26141
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @BLACKJ_26054
$card_cheat_value($bj_chip_num,27f) += 1.0

:BLACKJ_26054
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @BLACKJ_26083
$card_cheat_value($bj_chip_num,27f) += -1.0

:BLACKJ_26083
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_26112
$9255($bj_chip_num,27f) += -1.0

:BLACKJ_26112
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_26141
$9255($bj_chip_num,27f) += 1.0

:BLACKJ_26141
if 
  $bj_chip_num > -1
goto_if_false @BLACKJ_26899
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @BLACKJ_26899
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("------ SCREEN COORDS ------")
10@ = 0

:BLACKJ_26313
if 
  27 > 10@
goto_if_false @BLACKJ_26897
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("SCREEN_POS_X[")
save_int_to_debug_file 10@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $card_cheat_value(10@,27f)
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("SCREEN_POS_Y[")
save_int_to_debug_file 10@
Debugger.SaveStringToDebugFile("] = ")
save_float_to_debug_file $9255(10@,27f)
10@ += 1
goto @BLACKJ_26313

:BLACKJ_26897
save_newline_to_debug_file 

:BLACKJ_26899
return 
if 
is_ps2_keyboard_key_just_pressed 5
goto_if_false @BLACKJ_27265
$screen_pos += 1
if 
  $screen_pos > 7
goto_if_false @BLACKJ_26948
$screen_pos = 0

:BLACKJ_26948
if 
  $screen_pos == 1
goto_if_false @BLACKJ_26984
write_debug "EDIT_CARD_SIZE"

:BLACKJ_26984
if 
  $screen_pos == 2
goto_if_false @BLACKJ_27027
write_debug "EDIT_CARD_POSITIONS_X"

:BLACKJ_27027
if 
  $screen_pos == 3
goto_if_false @BLACKJ_27077
write_debug "EDIT_PLAYERS_CARD_POSITION_1"

:BLACKJ_27077
if 
  $screen_pos == 4
goto_if_false @BLACKJ_27128
write_debug "EDIT_PLAYERS_CARD_POSITION_1B"

:BLACKJ_27128
if 
  $screen_pos == 5
goto_if_false @BLACKJ_27178
write_debug "EDIT_PLAYERS_CARD_POSITION_2"

:BLACKJ_27178
if 
  $screen_pos == 6
goto_if_false @BLACKJ_27226
write_debug "EDIT_DEALERS_CARD_POSITION"

:BLACKJ_27226
if 
  $screen_pos == 7
goto_if_false @BLACKJ_27265
write_debug "EDIT_BORDER_WIDTH"

:BLACKJ_27265
if 
  $screen_pos == 1
goto_if_false @BLACKJ_27473
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_27315
$card_width += 1.0
gosub @BLACKJ_32356

:BLACKJ_27315
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_27378
$card_width += -1.0
if 
  1.0 > $card_width
goto_if_false @BLACKJ_27371
$card_width = 1.0

:BLACKJ_27371
gosub @BLACKJ_32356

:BLACKJ_27378
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @BLACKJ_27410
$9134 += 1.0
gosub @BLACKJ_32356

:BLACKJ_27410
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @BLACKJ_27473
$9134 += -1.0
if 
  1.0 > $9134
goto_if_false @BLACKJ_27466
$9134 = 1.0

:BLACKJ_27466
gosub @BLACKJ_32356

:BLACKJ_27473
if 
  $screen_pos == 2
goto_if_false @BLACKJ_27595
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @BLACKJ_27543
$9086[0] += 1.0
$9102[0] += 1.0
$9118[0] += 1.0
gosub @BLACKJ_32356

:BLACKJ_27543
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @BLACKJ_27595
$9086[0] += -1.0
$9102[0] += -1.0
$9118[0] += -1.0
gosub @BLACKJ_32356

:BLACKJ_27595
if 
  $screen_pos == 3
goto_if_false @BLACKJ_27677
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_27645
$9094[0] += -1.0
gosub @BLACKJ_32356

:BLACKJ_27645
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_27677
$9094[0] += 1.0
gosub @BLACKJ_32356

:BLACKJ_27677
if 
  $screen_pos == 4
goto_if_false @BLACKJ_27759
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_27727
$9110[0] += -1.0
gosub @BLACKJ_32356

:BLACKJ_27727
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_27759
$9110[0] += 1.0
gosub @BLACKJ_32356

:BLACKJ_27759
if 
  $screen_pos == 5
goto_if_false @BLACKJ_27841
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_27809
$9126[0] += -1.0
gosub @BLACKJ_32356

:BLACKJ_27809
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_27841
$9126[0] += 1.0
gosub @BLACKJ_32356

:BLACKJ_27841
if 
  $screen_pos == 6
goto_if_false @BLACKJ_27987
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @BLACKJ_27891
$vp_out_card_value[0] += 1.0
gosub @BLACKJ_32356

:BLACKJ_27891
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @BLACKJ_27923
$vp_out_card_value[0] += -1.0
gosub @BLACKJ_32356

:BLACKJ_27923
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @BLACKJ_27955
$9078[0] += -1.0
gosub @BLACKJ_32356

:BLACKJ_27955
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @BLACKJ_27987
$9078[0] += 1.0
gosub @BLACKJ_32356

:BLACKJ_27987
if 
  $screen_pos == 7
goto_if_false @BLACKJ_28055
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @BLACKJ_28030
$spacing_x += 1.0

:BLACKJ_28030
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @BLACKJ_28055
$spacing_x += -1.0

:BLACKJ_28055
if 
  $screen_pos > 0
goto_if_false @BLACKJ_29729
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @BLACKJ_29729
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("----- BLACKJACK SCREEN COORDS ------")
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CARD_WIDTH = ")
save_float_to_debug_file $9134
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CARD_HEIGHT = ")
save_float_to_debug_file $card_width
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("PLAYER_SPRITE1_X[0] = ")
save_float_to_debug_file $9086[0]
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("PLAYER_SPRITE1_Y[0] = ")
save_float_to_debug_file $9094[0]
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("PLAYER_SPRITE1B_X[0] = ")
save_float_to_debug_file $9102[0]
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("PLAYER_SPRITE1B_Y[0] = ")
save_float_to_debug_file $9110[0]
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("PLAYER_SPRITE2_X[0] = ")
save_float_to_debug_file $9118[0]
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("PLAYER_SPRITE2_Y[0] = ")
save_float_to_debug_file $9126[0]
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("DEALER_SPRITE_X[0] = ")
save_float_to_debug_file $vp_out_card_value[0]
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("DEALER_SPRITE_Y[0] = ")
save_float_to_debug_file $9078[0]
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("BORDER_WIDTH = ")
save_float_to_debug_file $spacing_x
save_newline_to_debug_file 

:BLACKJ_29729
return 

:BLACKJ_29731
if 
  $bj_adjust_mode == 0
goto_if_false @BLACKJ_29768
$multiplier = 0
$multiplier = CardDecks.FetchNextCard()
goto @BLACKJ_29776

:BLACKJ_29768
set_var_int_to_var_int $multiplier = $9227

:BLACKJ_29776
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_29830
Task.PlayAnim(1@, "DEALONE", "CASINO", 6.0, False, False, False, False, 500)

:BLACKJ_29830
return 

:BLACKJ_29832
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @BLACKJ_31185
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_30067
set_lvar_float_to_var_float 13@ = $9134
13@ /= 2.0
set_var_float_to_var_float $x = $9086[0]
sub_float_lvar_from_float_var $x -= 13@
sub_float_var_from_float_var $x -= $spacing_x
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_var_float_to_var_float $y = $9094[0]
sub_float_lvar_from_float_var $y -= 13@
sub_float_var_from_float_var $y -= $spacing_x
set_lvar_float_to_var_float 13@ = $9134
13@ /= 2.0
set_lvar_float_to_var_float 17@ = $9086[4]
add_float_lvar_to_float_lvar 17@ += 13@
add_float_var_to_float_lvar 17@ += $spacing_x
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_lvar_float_to_var_float 18@ = $9094[4]
add_float_lvar_to_float_lvar 18@ += 13@
add_float_var_to_float_lvar 18@ += $spacing_x
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawWindow($x, $y, 17@, 18@, 'DUMMY', 0)
goto @BLACKJ_30264

:BLACKJ_30067
set_lvar_float_to_var_float 13@ = $9134
13@ /= 2.0
set_var_float_to_var_float $x = $9102[0]
sub_float_lvar_from_float_var $x -= 13@
sub_float_var_from_float_var $x -= $spacing_x
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_var_float_to_var_float $y = $9110[0]
sub_float_lvar_from_float_var $y -= 13@
sub_float_var_from_float_var $y -= $spacing_x
set_lvar_float_to_var_float 13@ = $9134
13@ /= 2.0
set_lvar_float_to_var_float 17@ = $9118[4]
add_float_lvar_to_float_lvar 17@ += 13@
add_float_var_to_float_lvar 17@ += $spacing_x
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_lvar_float_to_var_float 18@ = $9126[4]
add_float_lvar_to_float_lvar 18@ += 13@
add_float_var_to_float_lvar 18@ += $spacing_x
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawWindow($x, $y, 17@, 18@, 'DUMMY', 0)

:BLACKJ_30264
if and
  not Text.IsThisHelpMessageBeingDisplayed('SGPUNT')
  not Text.IsThisHelpMessageBeingDisplayed('SGGAMB')
  not Text.IsThisHelpMessageBeingDisplayed('SGPROF')
  not Text.IsThisHelpMessageBeingDisplayed('SGHIRO')
goto_if_false @BLACKJ_30516
set_lvar_float_to_var_float 13@ = $9134
13@ /= 2.0
set_var_float_to_var_float $x = $vp_out_card_value[0]
sub_float_lvar_from_float_var $x -= 13@
sub_float_var_from_float_var $x -= $spacing_x
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_var_float_to_var_float $y = $9078[0]
sub_float_lvar_from_float_var $y -= 13@
sub_float_var_from_float_var $y -= $spacing_x
set_lvar_float_to_var_float 13@ = $9134
13@ /= 2.0
set_lvar_float_to_var_float 17@ = $vp_out_card_value[4]
add_float_lvar_to_float_lvar 17@ += 13@
add_float_var_to_float_lvar 17@ += $spacing_x
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_lvar_float_to_var_float 18@ = $9078[4]
add_float_lvar_to_float_lvar 18@ += 13@
add_float_var_to_float_lvar 18@ += $spacing_x
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawWindow($x, $y, 17@, 18@, 'DUMMY', 0)

:BLACKJ_30516
$card_cheat_on = 0

:BLACKJ_30523
if 
  8 > $card_cheat_on
goto_if_false @BLACKJ_31185
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_30633
if 
  $9148($card_cheat_on,8i) <> 0
goto_if_false @BLACKJ_30626
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite($9148($card_cheat_on,8i), $9086($card_cheat_on,8f), $9094($card_cheat_on,8f), $9134, $card_width, 128, 128, 128, 255)

:BLACKJ_30626
goto @BLACKJ_30767

:BLACKJ_30633
if 
  $9148($card_cheat_on,8i) <> 0
goto_if_false @BLACKJ_30700
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite($9148($card_cheat_on,8i), $9102($card_cheat_on,8f), $9110($card_cheat_on,8f), $9134, $card_width, 128, 128, 128, 255)

:BLACKJ_30700
if 
  $9156($card_cheat_on,8i) <> 0
goto_if_false @BLACKJ_30767
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite($9156($card_cheat_on,8i), $9118($card_cheat_on,8f), $9126($card_cheat_on,8f), $9134, $card_width, 128, 128, 128, 255)

:BLACKJ_30767
if and
  not Text.IsThisHelpMessageBeingDisplayed('SGPUNT')
  not Text.IsThisHelpMessageBeingDisplayed('SGGAMB')
  not Text.IsThisHelpMessageBeingDisplayed('SGPROF')
  not Text.IsThisHelpMessageBeingDisplayed('SGHIRO')
goto_if_false @BLACKJ_31166
if 
  $next_card($card_cheat_on,8i) <> 0
goto_if_false @BLACKJ_31159
if 
  $card_cheat_on == 0
goto_if_false @BLACKJ_31114
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_30997
if 
  $player_has_doubled2 == 0
goto_if_false @BLACKJ_30945
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(53, $vp_out_card_value($card_cheat_on,8f), $9078($card_cheat_on,8f), $9134, $card_width, 128, 128, 128, 255)
goto @BLACKJ_30990

:BLACKJ_30945
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite($next_card($card_cheat_on,8i), $vp_out_card_value($card_cheat_on,8f), $9078($card_cheat_on,8f), $9134, $card_width, 128, 128, 128, 255)

:BLACKJ_30990
goto @BLACKJ_31107

:BLACKJ_30997
if 
  $player_has_stuck1 == 0
goto_if_false @BLACKJ_31062
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(53, $vp_out_card_value($card_cheat_on,8f), $9078($card_cheat_on,8f), $9134, $card_width, 128, 128, 128, 255)
goto @BLACKJ_31107

:BLACKJ_31062
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite($next_card($card_cheat_on,8i), $vp_out_card_value($card_cheat_on,8f), $9078($card_cheat_on,8f), $9134, $card_width, 128, 128, 128, 255)

:BLACKJ_31107
goto @BLACKJ_31159

:BLACKJ_31114
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite($next_card($card_cheat_on,8i), $vp_out_card_value($card_cheat_on,8f), $9078($card_cheat_on,8f), $9134, $card_width, 128, 128, 128, 255)

:BLACKJ_31159
goto @BLACKJ_31171

:BLACKJ_31166
Text.SetHelpMessageBoxSize(200)

:BLACKJ_31171
$card_cheat_on += 1
goto @BLACKJ_30523

:BLACKJ_31185
return 

:BLACKJ_31187
$player_total2_b = 0
$dealer_total = 0
$dealer_wins_by_default = 0
$player_total1 = 0
$player_total1_b = 0
$player_total2 = 0
$dealer_total2 = 0
$dealer_got_ace = 0
$player_got_ace1 = 0
$counter_disp = 0

:BLACKJ_31257
if 
  8 > $counter_disp
goto_if_false @BLACKJ_31742
if 
  $next_card($counter_disp,8i) <> 0
goto_if_false @BLACKJ_31426
set_var_int_to_var_int $ct_temp_int = $next_card($counter_disp,8i)
set_var_int_to_var_int $ct_this_card_value = $ct_temp_int
gosub @BLACKJ_32017
set_var_int_to_var_int $ct_temp_int = $in_card_value
if 
  $ct_temp_int == 1
goto_if_false @BLACKJ_31410
if 
  $dealer_total2 == 0
goto_if_false @BLACKJ_31389
$player_total2_b += 11
$dealer_total2 = 1
goto @BLACKJ_31396

:BLACKJ_31389
$player_total2_b += 1

:BLACKJ_31396
$dealer_total += 1
goto @BLACKJ_31426

:BLACKJ_31410
add_int_var_to_int_var $player_total2_b += $ct_temp_int
add_int_var_to_int_var $dealer_total += $ct_temp_int

:BLACKJ_31426
if 
  $9148($counter_disp,8i) <> 0
goto_if_false @BLACKJ_31577
set_var_int_to_var_int $ct_temp_int = $9148($counter_disp,8i)
set_var_int_to_var_int $ct_this_card_value = $ct_temp_int
gosub @BLACKJ_32017
set_var_int_to_var_int $ct_temp_int = $in_card_value
if 
  $ct_temp_int == 1
goto_if_false @BLACKJ_31561
if 
  $dealer_got_ace == 0
goto_if_false @BLACKJ_31540
$dealer_wins_by_default += 11
$dealer_got_ace = 1
goto @BLACKJ_31547

:BLACKJ_31540
$dealer_wins_by_default += 1

:BLACKJ_31547
$player_total1 += 1
goto @BLACKJ_31577

:BLACKJ_31561
add_int_var_to_int_var $dealer_wins_by_default += $ct_temp_int
add_int_var_to_int_var $player_total1 += $ct_temp_int

:BLACKJ_31577
if 
  $9156($counter_disp,8i) <> 0
goto_if_false @BLACKJ_31728
set_var_int_to_var_int $ct_temp_int = $9156($counter_disp,8i)
set_var_int_to_var_int $ct_this_card_value = $ct_temp_int
gosub @BLACKJ_32017
set_var_int_to_var_int $ct_temp_int = $in_card_value
if 
  $ct_temp_int == 1
goto_if_false @BLACKJ_31712
if 
  $player_got_ace1 == 0
goto_if_false @BLACKJ_31691
$player_total1_b += 11
$player_got_ace1 = 1
goto @BLACKJ_31698

:BLACKJ_31691
$player_total1_b += 1

:BLACKJ_31698
$player_total2 += 1
goto @BLACKJ_31728

:BLACKJ_31712
add_int_var_to_int_var $player_total1_b += $ct_temp_int
add_int_var_to_int_var $player_total2 += $ct_temp_int

:BLACKJ_31728
$counter_disp += 1
goto @BLACKJ_31257

:BLACKJ_31742
if 
  is_int_var_greater_than_int_var $player_total2_b > $dealer_total
goto_if_false @BLACKJ_31826
if 
  $player_total2_b > 21
goto_if_false @BLACKJ_31794
set_var_int_to_var_int $player_total2_b = $dealer_total
$dealer_total = 0

:BLACKJ_31794
if 
  $player_total2_b == 21
goto_if_false @BLACKJ_31819
$dealer_total = 0

:BLACKJ_31819
goto @BLACKJ_31833

:BLACKJ_31826
$dealer_total = 0

:BLACKJ_31833
if 
  is_int_var_greater_than_int_var $dealer_wins_by_default > $player_total1
goto_if_false @BLACKJ_31917
if 
  $dealer_wins_by_default > 21
goto_if_false @BLACKJ_31885
set_var_int_to_var_int $dealer_wins_by_default = $player_total1
$player_total1 = 0

:BLACKJ_31885
if 
  $dealer_wins_by_default == 21
goto_if_false @BLACKJ_31910
$player_total1 = 0

:BLACKJ_31910
goto @BLACKJ_31924

:BLACKJ_31917
$player_total1 = 0

:BLACKJ_31924
if 
  is_int_var_greater_than_int_var $player_total1_b > $player_total2
goto_if_false @BLACKJ_32008
if 
  $player_total1_b > 21
goto_if_false @BLACKJ_31976
set_var_int_to_var_int $player_total1_b = $player_total2
$player_total2 = 0

:BLACKJ_31976
if 
  $player_total1_b == 21
goto_if_false @BLACKJ_32001
$player_total2 = 0

:BLACKJ_32001
goto @BLACKJ_32015

:BLACKJ_32008
$player_total2 = 0

:BLACKJ_32015
return 

:BLACKJ_32017
if 
  14 > $ct_this_card_value
goto_if_false @BLACKJ_32043
set_var_int_to_var_int $in_card_value = $ct_this_card_value

:BLACKJ_32043
if and
  27 > $ct_this_card_value
  $ct_this_card_value > 13
goto_if_false @BLACKJ_32083
set_var_int_to_var_int $in_card_value = $ct_this_card_value
$in_card_value -= 13

:BLACKJ_32083
if and
  40 > $ct_this_card_value
  $ct_this_card_value > 26
goto_if_false @BLACKJ_32123
set_var_int_to_var_int $in_card_value = $ct_this_card_value
$in_card_value -= 26

:BLACKJ_32123
if and
  53 > $ct_this_card_value
  $ct_this_card_value > 39
goto_if_false @BLACKJ_32163
set_var_int_to_var_int $in_card_value = $ct_this_card_value
$in_card_value -= 39

:BLACKJ_32163
if 
  14 > $in_card_value
goto_if_false @BLACKJ_32206
if 
  $in_card_value > 10
goto_if_false @BLACKJ_32206
$in_card_value = 10

:BLACKJ_32206
return 

:BLACKJ_32208
if 
  14 > $ct_this_card_value
goto_if_false @BLACKJ_32234
set_var_int_to_var_int $in_card_value = $ct_this_card_value

:BLACKJ_32234
if and
  27 > $ct_this_card_value
  $ct_this_card_value > 13
goto_if_false @BLACKJ_32274
set_var_int_to_var_int $in_card_value = $ct_this_card_value
$in_card_value -= 13

:BLACKJ_32274
if and
  40 > $ct_this_card_value
  $ct_this_card_value > 26
goto_if_false @BLACKJ_32314
set_var_int_to_var_int $in_card_value = $ct_this_card_value
$in_card_value -= 26

:BLACKJ_32314
if and
  53 > $ct_this_card_value
  $ct_this_card_value > 39
goto_if_false @BLACKJ_32354
set_var_int_to_var_int $in_card_value = $ct_this_card_value
$in_card_value -= 39

:BLACKJ_32354
return 

:BLACKJ_32356
set_var_float_to_var_float $9118[0] = $9086[0]
set_var_float_to_var_float $9126[0] = $9094[0]
set_var_float_to_var_float $9102[0] = $9086[0]
set_var_float_to_var_float $9110[0] = $9094[0]
sub_float_var_from_float_var $9110[0] -= $card_width
sub_float_var_from_float_var $9110[0] -= $spacing_x
10@ = 0

:BLACKJ_32411
if 
  8 > 10@
goto_if_false @BLACKJ_32740
if 
  5 > 10@
goto_if_false @BLACKJ_32630
set_var_float_to_var_float $card_height = $9134
add_float_var_to_float_var $card_height += $spacing_x
cset_var_float_to_lvar_int $border_width =# 10@
mult_float_var_by_float_var $border_width *= $card_height
set_var_float_to_var_float $9086(10@,8f) = $9086[0]
add_float_var_to_float_var $9086(10@,8f) += $border_width
set_var_float_to_var_float $9094(10@,8f) = $9094[0]
set_var_float_to_var_float $9102(10@,8f) = $9102[0]
add_float_var_to_float_var $9102(10@,8f) += $border_width
set_var_float_to_var_float $9110(10@,8f) = $9110[0]
set_var_float_to_var_float $9118(10@,8f) = $9118[0]
add_float_var_to_float_var $9118(10@,8f) += $border_width
set_var_float_to_var_float $9126(10@,8f) = $9126[0]
set_var_float_to_var_float $vp_out_card_value(10@,8f) = $vp_out_card_value[0]
add_float_var_to_float_var $vp_out_card_value(10@,8f) += $border_width
set_var_float_to_var_float $9078(10@,8f) = $9078[0]
goto @BLACKJ_32726

:BLACKJ_32630
set_var_float_to_var_float $9086(10@,8f) = $9086[4]
set_var_float_to_var_float $9094(10@,8f) = $9094[4]
set_var_float_to_var_float $9102(10@,8f) = $9102[4]
set_var_float_to_var_float $9110(10@,8f) = $9110[4]
set_var_float_to_var_float $9118(10@,8f) = $9118[4]
set_var_float_to_var_float $9126(10@,8f) = $9126[4]
set_var_float_to_var_float $vp_out_card_value(10@,8f) = $vp_out_card_value[4]
set_var_float_to_var_float $9078(10@,8f) = $9078[4]

:BLACKJ_32726
10@ += 1
goto @BLACKJ_32411

:BLACKJ_32740
return 
$x, $y, $z = Camera.GetDebugCoordinates()
if 
  Object.DoesExist(0@)
goto_if_false @BLACKJ_32791
$out_card_value, $bj_x2, $bj_y2 = Object.GetCoordinates(0@)
$heading = Object.GetHeading(0@)

:BLACKJ_32791
$heading *= -1.0
13@ = Math.Cos($heading)
14@ = Math.Sin($heading)
set_var_float_to_var_float $bj_z2 = $x
sub_float_var_from_float_var $bj_z2 -= $out_card_value
set_var_float_to_var_float $bj_vec_x = $y
sub_float_var_from_float_var $bj_vec_x -= $bj_x2
set_var_float_to_var_float $bj_vec_y = $z
sub_float_var_from_float_var $bj_vec_y -= $bj_y2
set_var_float_to_var_float $bj_vec_z = $bj_z2
mult_float_var_by_float_lvar $bj_vec_z *= 13@
set_var_float_to_var_float $bj_vec2_y = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_y *= 14@
sub_float_var_from_float_var $bj_vec_z -= $bj_vec2_y
set_var_float_to_var_float $bj_vec2_x = $bj_z2
mult_float_var_by_float_lvar $bj_vec2_x *= 14@
set_var_float_to_var_float $bj_vec2_y = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_y *= 13@
add_float_var_to_float_var $bj_vec2_x += $bj_vec2_y
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("FIXED_CAMERA_POSITION - OFFSET FROM TABLE = ")
save_float_to_debug_file $bj_vec_z
save_float_to_debug_file $bj_vec2_x
save_float_to_debug_file $bj_vec_y
$x, $y, $z = Camera.GetDebugPointAt()
set_var_float_to_var_float $bj_z2 = $x
sub_float_var_from_float_var $bj_z2 -= $out_card_value
set_var_float_to_var_float $bj_vec_x = $y
sub_float_var_from_float_var $bj_vec_x -= $bj_x2
set_var_float_to_var_float $bj_vec_y = $z
sub_float_var_from_float_var $bj_vec_y -= $bj_y2
set_var_float_to_var_float $bj_vec_z = $bj_z2
mult_float_var_by_float_lvar $bj_vec_z *= 13@
set_var_float_to_var_float $bj_vec2_y = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_y *= 14@
sub_float_var_from_float_var $bj_vec_z -= $bj_vec2_y
set_var_float_to_var_float $bj_vec2_x = $bj_z2
mult_float_var_by_float_lvar $bj_vec2_x *= 14@
set_var_float_to_var_float $bj_vec2_y = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_y *= 13@
add_float_var_to_float_var $bj_vec2_x += $bj_vec2_y
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CAMERA_POINT_AT -       OFFSET FROM TABLE = ")
save_float_to_debug_file $bj_vec_z
save_float_to_debug_file $bj_vec2_x
save_float_to_debug_file $bj_vec_y
return 
$x, $y, $z = Char.GetCoordinates($scplayer)
if 
  Object.DoesExist(0@)
goto_if_false @BLACKJ_33432
$out_card_value, $bj_x2, $bj_y2 = Object.GetCoordinates(0@)
$heading = Object.GetHeading(0@)

:BLACKJ_33432
$heading *= -1.0
13@ = Math.Cos($heading)
14@ = Math.Sin($heading)
set_var_float_to_var_float $bj_z2 = $x
sub_float_var_from_float_var $bj_z2 -= $out_card_value
set_var_float_to_var_float $bj_vec_x = $y
sub_float_var_from_float_var $bj_vec_x -= $bj_x2
set_var_float_to_var_float $bj_vec_y = $z
sub_float_var_from_float_var $bj_vec_y -= $bj_y2
set_var_float_to_var_float $bj_vec_z = $bj_z2
mult_float_var_by_float_lvar $bj_vec_z *= 13@
set_var_float_to_var_float $bj_vec2_y = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_y *= 14@
sub_float_var_from_float_var $bj_vec_z -= $bj_vec2_y
set_var_float_to_var_float $bj_vec2_x = $bj_z2
mult_float_var_by_float_lvar $bj_vec2_x *= 14@
set_var_float_to_var_float $bj_vec2_y = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_y *= 13@
add_float_var_to_float_var $bj_vec2_x += $bj_vec2_y
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("PLAYER_COORDINATES - OFFSET FROM TABLE = ")
save_float_to_debug_file $bj_vec_z
save_float_to_debug_file $bj_vec2_x
save_float_to_debug_file $bj_vec_y
return 

:BLACKJ_33735
13@ = Stat.GetFloat(StatId.Gambling)
if 
  1.0 > 13@
goto_if_false @BLACKJ_33777
$bj_payout = 100
goto @BLACKJ_33897

:BLACKJ_33777
if 
  10.0 > 13@
goto_if_false @BLACKJ_33813
$bj_payout = 1000
goto @BLACKJ_33897

:BLACKJ_33813
if 
  100.0 > 13@
goto_if_false @BLACKJ_33849
$bj_payout = 10000
goto @BLACKJ_33897

:BLACKJ_33849
if 
  1000.0 > 13@
goto_if_false @BLACKJ_33887
$bj_payout = 100000
goto @BLACKJ_33897

:BLACKJ_33887
$bj_payout = 1000000

:BLACKJ_33897
return 
Text.SetColor(255, 255, 255, 255)
Text.SetJustify(False)
Text.SetRightJustify(False)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
Text.SetCenter(False)
Text.SetBackground(False)
Text.SetScale(0.6, 1.6)
return 
Text.SetColor(255, 180, 180, 255)
Text.SetJustify(False)
Text.SetRightJustify(False)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
Text.SetScale(2.0, 3.0)
return 

:BLACKJ_34009
Text.SetColor(180, 180, 180, 255)
Text.SetScale(0.4714, 2.5077)
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(False)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
return 
Text.SetColor(180, 180, 180, 255)
Text.SetScale(0.4714, 2.5077)
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(True)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
return 

:BLACKJ_34119
Text.SetColor(255, 255, 0, 255)
Text.SetEdge(2, 0, 0, 0, 255)
Text.SetScale($card_cheat_value[24], $9255[24])
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(True)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
return 
$casino_credit, $colour_r, $colour_g, $colour_b = Hud.GetColor(6)
Text.SetColor($casino_credit, $colour_r, $colour_g, $colour_b)
Text.SetFont(Font.Pricedown)
Text.SetEdge(3, 0, 0, 0, 255)
Text.SetScale(1.2, 4.0)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
return 
$casino_credit, $colour_r, $colour_g, $colour_b = Hud.GetColor(0)
Text.SetColor($casino_credit, $colour_r, $colour_g, $colour_b)
Text.SetFont(Font.Pricedown)
Text.SetEdge(3, 0, 0, 0, 255)
Text.SetScale(1.2, 4.0)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
return 
$casino_credit, $colour_r, $colour_g, $colour_b = Hud.GetColor(HudObject.Health)
Text.SetColor($casino_credit, $colour_r, $colour_g, $colour_b)
Text.SetFont(Font.Pricedown)
Text.SetEdge(3, 0, 0, 0, 255)
Text.SetScale(1.2, 4.0)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
return 
$casino_credit, $colour_r, $colour_g, $colour_b = Hud.GetColor(HudObject.Health)
Text.SetColor($casino_credit, $colour_r, $colour_g, $colour_b)
Text.SetFont(Font.Menu)
Text.SetEdge(2, 0, 0, 0, 255)
Text.SetScale(0.52, 1.45)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
return 

:BLACKJ_34534
Game.SetMinigameInProgress(False)
2@ = 0
3@ = 0
4@ = 0
5@ = 0
if and
  not Text.IsThisHelpMessageBeingDisplayed('SGPUNT')
  not Text.IsThisHelpMessageBeingDisplayed('SGGAMB')
  not Text.IsThisHelpMessageBeingDisplayed('SGPROF')
  not Text.IsThisHelpMessageBeingDisplayed('SGHIRO')
goto_if_false @BLACKJ_34623
Text.ClearHelp

:BLACKJ_34623
Camera.Restore
10@ = 0

:BLACKJ_34632
if 
  8 > 10@
goto_if_false @BLACKJ_34693
if 
  Object.DoesExist($total_bj_tables(10@,8i))
goto_if_false @BLACKJ_34679
Object.Delete($total_bj_tables(10@,8i))

:BLACKJ_34679
10@ += 1
goto @BLACKJ_34632

:BLACKJ_34693
if 
  not Char.IsDead(1@)
goto_if_false @BLACKJ_34716
Task.StayInSamePlace(1@, True)

:BLACKJ_34716
terminate_all_scripts_with_this_name 'CASHWIN'
Player.SetControl($player1, True)
Camera.RestoreJumpcut
Streaming.RemoveAnimation("CASINO")
Txd.Remove
Text.UseCommands(False)
Hud.DisplayRadar(True)
switch_rubbish 1
Text.SetHelpMessageBoxSize(200)
return 
terminate_this_script 

//-------------External script 18 (WHEELO)---------------

:WOF
script_name 'WOF'
5@ = 0
6@ = 0
22@ = 0.0
23@ = 0.0
13@ = 0
15@ = 0
16@ = 0
25@ = -1
27@ = 0
TIMERA = Math.RandomIntInRange(0, 30000)
goto @WOF_438
0@ = Object.Create(#WHEEL_O_FORTUNE, 0.0, 0.0, 0.0)
4@ = Object.Create(#WHEEL_O_FORTUNE, 0.0, 0.0, 0.0)
2@ = Object.Create(#WHEEL_O_FORTUNE, 0.0, 0.0, 0.0)
1@ = Object.Create(#WHEEL_O_FORTUNE, 0.0, 0.0, 0.0)
3@ = Object.Create(#WHEEL_O_FORTUNE, 0.0, 0.0, 0.0)
7@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
$wof_winnings[0] = Object.Create(#CHIP_STACK07, 0.0, 0.0, 0.0)
$9344[0] = Object.Create(#CHIP_STACK07, 0.0, 0.0, 0.0)
$9350[0] = Object.Create(#CHIP_STACK07, 0.0, 0.0, 0.0)
$9356[0] = Object.Create(#CHIP_STACK07, 0.0, 0.0, 0.0)
$9362[0] = Object.Create(#CHIP_STACK07, 0.0, 0.0, 0.0)
$9368[0] = Object.Create(#CHIP_STACK07, 0.0, 0.0, 0.0)
$9374[0] = Object.Create(#CHIP_STACK07, 0.0, 0.0, 0.0)
$9380[0] = Object.Create(#CHIP_STACK07, 0.0, 0.0, 0.0)
$9435 = Object.Create(#ROULETTE_MARKER, 0.0, 0.0, 0.0)

:WOF_438
wait 0
if 
  $iTerminateAllAmbience == 0
goto_if_false @WOF_2376
if 
  Object.DoesExist(0@)
goto_if_false @WOF_2362
if 
  Object.IsWithinBrainActivationRange(0@)
goto_if_false @WOF_2348
if 
  $wof_refund == 0
goto_if_false @WOF_2253
if 
  Player.IsPlaying($player1)
goto_if_false @WOF_2239
if 
  5@ == 0
goto_if_false @WOF_1066
if 
  6@ == 0
goto_if_false @WOF_583
Streaming.RequestModel(11)
Streaming.RequestAnimation("CASINO")
6@ += 1

:WOF_583
if 
  6@ == 1
goto_if_false @WOF_633
if and
  Streaming.HasModelLoaded(11)
  Streaming.HasAnimationLoaded("CASINO")
goto_if_false @WOF_633
6@ += 1

:WOF_633
if 
  6@ == 2
goto_if_false @WOF_1029
if 
  not Char.DoesExist(7@)
goto_if_false @WOF_781
20@ = Object.GetHeading(0@)
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.5, -0.3974, 0.0)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
7@ = Char.Create(PedType.CivFemale, 11, $x, $y, $z)
Char.SetDecisionMaker(7@, $iGlobalPedPanicDM)
set_var_float_to_lvar_float $heading = 20@
$heading += 180.0
Char.SetHeading(7@, $heading)
Char.FreezePosition(7@, True)
Streaming.MarkModelAsNoLongerNeeded(11)

:WOF_781
if 
  not Object.DoesExist(4@)
goto_if_false @WOF_851
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, 0.159, 0.0)
4@ = Object.CreateNoOffset(#WHEEL_SUPPORT, $x, $y, $z)
Object.SetHeading(4@, 20@)

:WOF_851
if 
  not Object.DoesExist(2@)
goto_if_false @WOF_952
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, -0.132, -1.049194, -0.834192)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
$z += 1.0
2@ = Object.CreateNoOffset(#WHEEL_TABLE, $x, $y, $z)
Object.SetHeading(2@, 20@)
gosub @WOF_15505

:WOF_952
if 
  not Object.DoesExist(1@)
goto_if_false @WOF_1022
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, 0.0, 1.05)
1@ = Object.CreateNoOffset(#CLICKER, $x, $y, $z)
Object.SetHeading(1@, 20@)

:WOF_1022
6@ += 1

:WOF_1029
if 
  6@ == 3
goto_if_false @WOF_1066
TIMERA = Math.RandomIntInRange(0, 50000)
5@ += 1

:WOF_1066
if 
  5@ == 1
goto_if_false @WOF_2189
if 
  not Char.IsDead(7@)
goto_if_false @WOF_1309
if 
  TIMERA > 50000
goto_if_false @WOF_1309
Task.PlayAnim(7@, "WOF", "CASINO", 4.0, False, False, False, False, -1)
10@ = Math.RandomIntInRange(0, 3)
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WOF_1295 {caseNum1} 0 {caseLabel1} @WOF_1226 {caseNum2} 1 {caseLabel2} @WOF_1249 {caseNum3} 2 {caseLabel3} @WOF_1272 {caseNum4} -1 {caseLabel4} @WOF_1295 {caseNum5} -1 {caseLabel5} @WOF_1295 {caseNum6} -1 {caseLabel6} @WOF_1295 {caseNum7} -1 {caseLabel7} @WOF_1295

:WOF_1226
Char.SetSayScript(7@, 40008, True, True, False)
goto @WOF_1295

:WOF_1249
Char.SetSayScript(7@, 40009, True, True, False)
goto @WOF_1295

:WOF_1272
Char.SetSayScript(7@, 40010, True, True, False)
goto @WOF_1295

:WOF_1295
25@ = 0
TIMERA = 0

:WOF_1309
if 
  not Char.IsDead(7@)
goto_if_false @WOF_2189
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, 0.0, -1.0, 0.0)
if 
  $fFunTemp == 0
goto_if_false @WOF_2189
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.5, 0.5, 2.0, False)
goto_if_false @WOF_2162
if 
  Char.IsOnFoot($scplayer)
goto_if_false @WOF_2155
if 
  15@ == 0
goto_if_false @WOF_2131
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @WOF_1865
10@ = 0
8@ = Stat.GetFloat(StatId.Gambling)
if 
  19@ == 1000000
goto_if_false @WOF_1558
if 
  1000.0 > 8@
goto_if_false @WOF_1551
Text.PrintNow('GAMBSTA', 5000, 1)
gosub @WOF_2390
10@ = 1

:WOF_1551
goto @WOF_1784

:WOF_1558
if 
  19@ == 100000
goto_if_false @WOF_1637
if 
  100.0 > 8@
goto_if_false @WOF_1630
Text.PrintNow('GAMBSTA', 5000, 1)
gosub @WOF_2390
10@ = 1

:WOF_1630
goto @WOF_1784

:WOF_1637
if 
  19@ == 10000
goto_if_false @WOF_1714
if 
  10.0 > 8@
goto_if_false @WOF_1707
Text.PrintNow('GAMBSTA', 5000, 1)
gosub @WOF_2390
10@ = 1

:WOF_1707
goto @WOF_1784

:WOF_1714
if 
  19@ == 1000
goto_if_false @WOF_1784
if 
  1.0 > 8@
goto_if_false @WOF_1784
Text.PrintNow('GAMBSTA', 5000, 1)
gosub @WOF_2390
10@ = 1

:WOF_1784
if 
  10@ == 0
goto_if_false @WOF_1858
if 
  14@ == 1
goto_if_false @WOF_1829
Text.ClearHelp
14@ = 0

:WOF_1829
5@ = 0
6@ = 0
set_var_int_to_lvar_int $wof_refund = 0@
15@ = 1

:WOF_1858
goto @WOF_2124

:WOF_1865
if 
  14@ == 0
goto_if_false @WOF_2124
if and
  not Text.IsThisHelpMessageBeingDisplayed('SGPUNT')
  not Text.IsThisHelpMessageBeingDisplayed('SGGAMB')
  not Text.IsThisHelpMessageBeingDisplayed('SGPROF')
  not Text.IsThisHelpMessageBeingDisplayed('SGHIRO')
goto_if_false @WOF_2124
switch_start 19@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @WOF_2099 {caseNum1} 100 {caseLabel1} @WOF_2009 {caseNum2} 1000 {caseLabel2} @WOF_2027 {caseNum3} 10000 {caseLabel3} @WOF_2045 {caseNum4} 100000 {caseLabel4} @WOF_2063 {caseNum5} 1000000 {caseLabel5} @WOF_2081 {caseNum6} -1 {caseLabel6} @WOF_2117 {caseNum7} -1 {caseLabel7} @WOF_2117

:WOF_2009
Text.PrintHelpForever('WOF_06A')
goto @WOF_2117

:WOF_2027
Text.PrintHelpForever('WOF_06B')
goto @WOF_2117

:WOF_2045
Text.PrintHelpForever('WOF_06C')
goto @WOF_2117

:WOF_2063
Text.PrintHelpForever('WOF_06D')
goto @WOF_2117

:WOF_2081
Text.PrintHelpForever('WOF_06E')
goto @WOF_2117

:WOF_2099
Text.PrintHelpForever('WOF_06')
goto @WOF_2117

:WOF_2117
14@ = 1

:WOF_2124
goto @WOF_2155

:WOF_2131
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @WOF_2155
15@ = 0

:WOF_2155
goto @WOF_2189

:WOF_2162
if 
  14@ == 1
goto_if_false @WOF_2189
Text.ClearHelp
14@ = 0

:WOF_2189
if or
  Object.IsOnScreen(0@)
  Char.LocateAnyMeansObject2D($scplayer, 0@, 5.0, 5.0, False)
goto_if_false @WOF_2232
gosub @WOF_9892

:WOF_2232
goto @WOF_2246

:WOF_2239
gosub @WOF_2465

:WOF_2246
goto @WOF_2341

:WOF_2253
if 
  is_int_var_equal_to_int_lvar $wof_refund == 0@
goto_if_false @WOF_2341
if 
  Player.IsPlaying($player1)
goto_if_false @WOF_2341
if 
  13@ == 0
goto_if_false @WOF_2327
gosub @WOF_9892
gosub @WOF_2506
goto @WOF_2341

:WOF_2327
gosub @WOF_11175
$wof_refund = 0

:WOF_2341
goto @WOF_2355

:WOF_2348
gosub @WOF_2465

:WOF_2355
goto @WOF_2369

:WOF_2362
gosub @WOF_2465

:WOF_2369
goto @WOF_2383

:WOF_2376
gosub @WOF_2465

:WOF_2383
goto @WOF_438

:WOF_2390
10@ = 0
10@ = Math.RandomIntInRange(0, 2)
if 
  10@ == 0
goto_if_false @WOF_2447
Char.SetSayScript(7@, 40051, True, True, False)
goto @WOF_2463

:WOF_2447
Char.SetSayScript(7@, 40051, True, True, False)

:WOF_2463
return 

:WOF_2465
Char.MarkAsNoLongerNeeded(7@)
Object.MarkAsNoLongerNeeded(4@)
Object.MarkAsNoLongerNeeded(2@)
Object.MarkAsNoLongerNeeded(1@)
Streaming.RemoveAnimation("CASINO")
$wof_temp_float3 -= 1
terminate_this_script 
return 

:WOF_2506
switch_start 5@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @WOF_2667 {caseNum1} 0 {caseLabel1} @WOF_2569 {caseNum2} 1 {caseLabel2} @WOF_2583 {caseNum3} 2 {caseLabel3} @WOF_2597 {caseNum4} 3 {caseLabel4} @WOF_2611 {caseNum5} 4 {caseLabel5} @WOF_2625 {caseNum6} 5 {caseLabel6} @WOF_2639 {caseNum7} 6 {caseLabel7} @WOF_2653

:WOF_2569
gosub @WOF_2815
goto @WOF_2667

:WOF_2583
gosub @WOF_4181
goto @WOF_2667

:WOF_2597
gosub @WOF_7344
goto @WOF_2667

:WOF_2611
gosub @WOF_7670
goto @WOF_2667

:WOF_2625
gosub @WOF_7814
goto @WOF_2667

:WOF_2639
gosub @WOF_7848
goto @WOF_2667

:WOF_2653
gosub @WOF_9496
goto @WOF_2667

:WOF_2667
gosub @WOF_13533
if 
  5@ == 1
goto_if_false @WOF_2772
if 
  15@ == 0
goto_if_false @WOF_2748
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @WOF_2741
13@ = 1
15@ = 1

:WOF_2741
goto @WOF_2772

:WOF_2748
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @WOF_2772
15@ = 0

:WOF_2772
if 
  Char.IsDead(7@)
goto_if_false @WOF_2813
if 
  5@ > 0
goto_if_false @WOF_2813
13@ = 1

:WOF_2813
return 

:WOF_2815
if 
  6@ == 0
goto_if_false @WOF_4076
if 
  Player.IsPlaying($player1)
goto_if_false @WOF_4069
Game.SetMinigameInProgress(True)
Player.SetControl($player1, False)
$x, $y, $z = Object.GetCoordinates(0@)
Task.TurnCharToFaceCoord($scplayer, $x, $y, $z)
Text.UseCommands(True)
Hud.DisplayRadar(False)
Streaming.RequestAnimation("CASINO")
Text.ClearPrints
10@ = 0

:WOF_2915
if 
  6 > 10@
goto_if_false @WOF_3053
$9386 = -0.118
set_var_float_to_var_float $chip_set_z(10@,6f) = $9386
set_var_float_to_var_float $9393(10@,6f) = $9386
set_var_float_to_var_float $9399(10@,6f) = $9386
set_var_float_to_var_float $9405(10@,6f) = $9386
set_var_float_to_var_float $9411(10@,6f) = $9386
set_var_float_to_var_float $9417(10@,6f) = $9386
set_var_float_to_var_float $9423(10@,6f) = $9386
set_var_float_to_var_float $9429(10@,6f) = $9386
10@ += 1
goto @WOF_2915

:WOF_3053
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, -0.634, 0.253, $chip_set_z[0])
$wof_winnings[0] = Object.CreateNoOffset(#CHIP_STACK07, $x, $y, $z)
Object.SetHeading($wof_winnings[0], 20@)
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, -0.201, 0.253, $chip_set_z[1])
$wof_winnings[1] = Object.CreateNoOffset(#CHIP_STACK07, $x, $y, $z)
Object.SetHeading($wof_winnings[1], 20@)
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, 0.243, 0.253, $chip_set_z[2])
$wof_winnings[2] = Object.CreateNoOffset(#CHIP_STACK07, $x, $y, $z)
Object.SetHeading($wof_winnings[2], 20@)
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, -0.635, -0.106, $chip_set_z[3])
$wof_winnings[3] = Object.CreateNoOffset(#CHIP_STACK07, $x, $y, $z)
Object.SetHeading($wof_winnings[3], 20@)
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, -0.201, -0.106, $chip_set_z[4])
$wof_winnings[4] = Object.CreateNoOffset(#CHIP_STACK07, $x, $y, $z)
Object.SetHeading($wof_winnings[4], 20@)
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, 0.243, -0.106, $chip_set_z[5])
$wof_winnings[5] = Object.CreateNoOffset(#CHIP_STACK07, $x, $y, $z)
Object.SetHeading($wof_winnings[5], 20@)
10@ = 0

:WOF_3372
if 
  6 > 10@
goto_if_false @WOF_3458
$x, $y, $z = Object.GetOffsetInWorldCoords($wof_winnings(10@,6i), 0.07, 0.0, 0.0)
$9344(10@,6i) = Object.CreateNoOffset(#CHIP_STACK08, $x, $y, $z)
10@ += 1
goto @WOF_3372

:WOF_3458
10@ = 0

:WOF_3465
if 
  6 > 10@
goto_if_false @WOF_3551
$x, $y, $z = Object.GetOffsetInWorldCoords($wof_winnings(10@,6i), -0.07, 0.0, 0.0)
$9350(10@,6i) = Object.CreateNoOffset(#CHIP_STACK09, $x, $y, $z)
10@ += 1
goto @WOF_3465

:WOF_3551
10@ = 0

:WOF_3558
if 
  6 > 10@
goto_if_false @WOF_3644
$x, $y, $z = Object.GetOffsetInWorldCoords($wof_winnings(10@,6i), 0.07, 0.07, 0.0)
$9356(10@,6i) = Object.CreateNoOffset(#CHIP_STACK10, $x, $y, $z)
10@ += 1
goto @WOF_3558

:WOF_3644
10@ = 0

:WOF_3651
if 
  6 > 10@
goto_if_false @WOF_3737
$x, $y, $z = Object.GetOffsetInWorldCoords($wof_winnings(10@,6i), 0.07, -0.07, 0.0)
$9362(10@,6i) = Object.CreateNoOffset(#CHIP_STACK11, $x, $y, $z)
10@ += 1
goto @WOF_3651

:WOF_3737
10@ = 0

:WOF_3744
if 
  6 > 10@
goto_if_false @WOF_3830
$x, $y, $z = Object.GetOffsetInWorldCoords($wof_winnings(10@,6i), -0.07, 0.07, 0.0)
$9368(10@,6i) = Object.CreateNoOffset(#CHIP_STACK12, $x, $y, $z)
10@ += 1
goto @WOF_3744

:WOF_3830
10@ = 0

:WOF_3837
if 
  6 > 10@
goto_if_false @WOF_3923
$x, $y, $z = Object.GetOffsetInWorldCoords($wof_winnings(10@,6i), -0.07, -0.07, 0.0)
$9374(10@,6i) = Object.CreateNoOffset(#CHIP_STACK13, $x, $y, $z)
10@ += 1
goto @WOF_3837

:WOF_3923
10@ = 0

:WOF_3930
if 
  6 > 10@
goto_if_false @WOF_4016
$x, $y, $z = Object.GetOffsetInWorldCoords($wof_winnings(10@,6i), 0.0, 0.07, 0.0)
$9380(10@,6i) = Object.CreateNoOffset(#CHIP_STACK14, $x, $y, $z)
10@ += 1
goto @WOF_3930

:WOF_4016
$bj_temp_float3 = 0
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, -0.635, 0.253, 0.041)
$9435 = Object.CreateNoOffset(#ROULETTE_MARKER, $x, $y, $z)

:WOF_4069
6@ += 1

:WOF_4076
if 
  6@ == 1
goto_if_false @WOF_4122
if 
  Streaming.HasAnimationLoaded("CASINO")
goto_if_false @WOF_4122
6@ += 1

:WOF_4122
if 
  6@ == 2
goto_if_false @WOF_4147
6@ = 99

:WOF_4147
if 
  6@ == 99
goto_if_false @WOF_4179
5@ += 1
6@ = 0

:WOF_4179
return 

:WOF_4181
if 
  6@ == 0
goto_if_false @WOF_4648
10@ = 0

:WOF_4206
if 
  6 > 10@
goto_if_false @WOF_4249
$win_dialogue(10@,6i) = 0
10@ += 1
goto @WOF_4206

:WOF_4249
$9332 = 0
$total_bet = 0
TIMERA = 0
TIMERB = 0
Text.PrintHelpForever('WOFHD01')
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, 0.0, -0.7, 0.0)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
Char.SetCoordinates($scplayer, $x, $y, $z)
Char.SetHeading($scplayer, 20@)
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, -0.7734, -0.6326, 0.9882)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, -0.4684, -0.0634, 0.2246)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
if 
  Object.DoesExist($9435)
goto_if_false @WOF_4473
Object.SetVisible($9435, True)

:WOF_4473
23@ = 0.0
24@ = 0.0
$wof_betting_menu = 0
$wof_initial_stake = 0
if 
  not Char.IsDead(7@)
goto_if_false @WOF_4641
10@ = Math.RandomIntInRange(0, 2)
switch_start 10@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @WOF_4641 {caseNum1} 0 {caseLabel1} @WOF_4595 {caseNum2} 1 {caseLabel2} @WOF_4618 {caseNum3} -1 {caseLabel3} @WOF_4641 {caseNum4} -1 {caseLabel4} @WOF_4641 {caseNum5} -1 {caseLabel5} @WOF_4641 {caseNum6} -1 {caseLabel6} @WOF_4641 {caseNum7} -1 {caseLabel7} @WOF_4641

:WOF_4595
Char.SetSayScript(7@, 40000, True, True, False)
goto @WOF_4641

:WOF_4618
Char.SetSayScript(7@, 40001, True, True, False)
goto @WOF_4641

:WOF_4641
6@ += 1

:WOF_4648
if 
  6@ == 1
goto_if_false @WOF_7308
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if 
  17@ <> 0
goto_if_false @WOF_4820
10@ = 0
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @WOF_4749
10@ = 1

:WOF_4749
if or
  $LStickY > 100
  -100 > $LStickY
  $LStickX > 100
  -100 > $LStickX
goto_if_false @WOF_4795
10@ = 1

:WOF_4795
if 
  10@ == 0
goto_if_false @WOF_4820
17@ = 0

:WOF_4820
set_lvar_int_to_lvar_int 10@ = 17@
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
  -100 > $LStickY
goto_if_false @WOF_4859
17@ = 1

:WOF_4859
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
  $LStickY > 100
goto_if_false @WOF_4890
17@ = 2

:WOF_4890
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
  -100 > $LStickX
goto_if_false @WOF_4921
17@ = 3

:WOF_4921
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
  $LStickX > 100
goto_if_false @WOF_4952
17@ = 4

:WOF_4952
if 
  not is_int_lvar_equal_to_int_lvar 17@ == 10@
goto_if_false @WOF_5226
if 
  17@ == 4
goto_if_false @WOF_5056
if or
  $total_bet == 0
  $total_bet == 1
  $total_bet == 3
  $total_bet == 4
goto_if_false @WOF_5042
$total_bet += 1
goto @WOF_5049

:WOF_5042
$total_bet += -2

:WOF_5049
TIMERA = 0

:WOF_5056
if 
  17@ == 3
goto_if_false @WOF_5141
if or
  $total_bet == 1
  $total_bet == 2
  $total_bet == 4
  $total_bet == 5
goto_if_false @WOF_5127
$total_bet += -1
goto @WOF_5134

:WOF_5127
$total_bet += 2

:WOF_5134
TIMERA = 0

:WOF_5141
if or
  17@ == 1
  17@ == 2
goto_if_false @WOF_5226
if or
  $total_bet == 0
  $total_bet == 1
  $total_bet == 2
goto_if_false @WOF_5212
$total_bet += 3
goto @WOF_5219

:WOF_5212
$total_bet += -3

:WOF_5219
TIMERA = 0

:WOF_5226
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @WOF_5817
if and
  16@ <> 1
  16@ <> -1
goto_if_false @WOF_5766
if 
  $win_dialogue($total_bet,6i) >= 100000
goto_if_false @WOF_5308
$current_bet_type = 10000
goto @WOF_5494

:WOF_5308
if 
  $win_dialogue($total_bet,6i) >= 10000
goto_if_false @WOF_5346
$current_bet_type = 1000
goto @WOF_5494

:WOF_5346
if 
  $win_dialogue($total_bet,6i) >= 1000
goto_if_false @WOF_5383
$current_bet_type = 100
goto @WOF_5494

:WOF_5383
if 
  $win_dialogue($total_bet,6i) >= 100
goto_if_false @WOF_5419
$current_bet_type = 10
goto @WOF_5494

:WOF_5419
if 
  $win_dialogue($total_bet,6i) == 0
goto_if_false @WOF_5487
if 
  $total_bet == 2
goto_if_false @WOF_5473
$current_bet_type = 5
goto @WOF_5480

:WOF_5473
$current_bet_type = 2

:WOF_5480
goto @WOF_5494

:WOF_5487
$current_bet_type = 1

:WOF_5494
10@ = Player.StoreScore($player1)
gosub @WOF_11541
add_int_var_to_int_lvar 10@ += $bj_payout
if 
  is_int_var_greater_than_int_lvar $current_bet_type > 10@
goto_if_false @WOF_5544
set_var_int_to_lvar_int $current_bet_type = 10@

:WOF_5544
$9332 = 0
10@ = 0

:WOF_5558
if 
  6 > 10@
goto_if_false @WOF_5602
add_int_var_to_int_var $9332 += $win_dialogue(10@,6i)
10@ += 1
goto @WOF_5558

:WOF_5602
set_lvar_int_to_lvar_int 10@ = 19@
sub_int_var_from_int_lvar 10@ -= $9332
if 
  is_int_var_greater_than_int_lvar $current_bet_type > 10@
goto_if_false @WOF_5645
set_var_int_to_lvar_int $current_bet_type = 10@

:WOF_5645
if 
  0 > $current_bet_type
goto_if_false @WOF_5670
$current_bet_type *= -1

:WOF_5670
add_int_var_to_int_var $win_dialogue($total_bet,6i) += $current_bet_type
add_int_var_to_int_var $wof_betting_menu += $current_bet_type
add_int_var_to_int_var $wof_initial_stake += $current_bet_type
$current_bet_type *= -1
Player.AddScore($player1, $current_bet_type)
16@ += 1
if 
  16@ > 1
goto_if_false @WOF_5752
16@ = 2
goto @WOF_5759

:WOF_5752
TIMERA = 0

:WOF_5759
goto @WOF_5810

:WOF_5766
if 
  16@ == 1
goto_if_false @WOF_5810
if 
  TIMERA > 500
goto_if_false @WOF_5810
16@ = 2

:WOF_5810
goto @WOF_6337

:WOF_5817
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @WOF_6312
if 
  18@ <> 1
goto_if_false @WOF_6279
if 
  $win_dialogue($total_bet,6i) > 100000
goto_if_false @WOF_5892
$current_bet_type = -10000
goto @WOF_6010

:WOF_5892
if 
  $win_dialogue($total_bet,6i) > 10000
goto_if_false @WOF_5930
$current_bet_type = -1000
goto @WOF_6010

:WOF_5930
if 
  $win_dialogue($total_bet,6i) > 1000
goto_if_false @WOF_5967
$current_bet_type = -100
goto @WOF_6010

:WOF_5967
if 
  $win_dialogue($total_bet,6i) > 100
goto_if_false @WOF_6003
$current_bet_type = -10
goto @WOF_6010

:WOF_6003
$current_bet_type = -1

:WOF_6010
set_lvar_int_to_var_int 10@ = $win_dialogue($total_bet,6i)
add_int_var_to_int_var $win_dialogue($total_bet,6i) += $current_bet_type
if 
  $total_bet == 2
goto_if_false @WOF_6107
if 
  5 > $win_dialogue($total_bet,6i)
goto_if_false @WOF_6100
$win_dialogue($total_bet,6i) = 0
set_var_int_to_lvar_int $current_bet_type = 10@
$current_bet_type *= -1

:WOF_6100
goto @WOF_6155

:WOF_6107
if 
  2 > $win_dialogue($total_bet,6i)
goto_if_false @WOF_6155
$win_dialogue($total_bet,6i) = 0
set_var_int_to_lvar_int $current_bet_type = 10@
$current_bet_type *= -1

:WOF_6155
if 
  0 > $win_dialogue($total_bet,6i)
goto_if_false @WOF_6195
$win_dialogue($total_bet,6i) = 0
goto @WOF_6226

:WOF_6195
add_int_var_to_int_var $wof_betting_menu += $current_bet_type
add_int_var_to_int_var $wof_initial_stake += $current_bet_type
$current_bet_type *= -1
Player.AddScore($player1, $current_bet_type)

:WOF_6226
18@ += 1
if 
  18@ > 1
goto_if_false @WOF_6265
18@ = 2
goto @WOF_6272

:WOF_6265
TIMERA = 0

:WOF_6272
goto @WOF_6305

:WOF_6279
if 
  TIMERA > 500
goto_if_false @WOF_6305
18@ = 2

:WOF_6305
goto @WOF_6337

:WOF_6312
if 
  18@ <> 0
goto_if_false @WOF_6337
18@ = 0

:WOF_6337
$9332 = 0
10@ = 0

:WOF_6351
if 
  6 > 10@
goto_if_false @WOF_6395
add_int_var_to_int_var $9332 += $win_dialogue(10@,6i)
10@ += 1
goto @WOF_6351

:WOF_6395
if 
  $total_bet == 0
goto_if_false @WOF_6456
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, -0.635, 0.253, 0.041)
Object.SetCoordinates($9435, $x, $y, $z)

:WOF_6456
if 
  $total_bet == 1
goto_if_false @WOF_6517
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, -0.201, 0.253, 0.041)
Object.SetCoordinates($9435, $x, $y, $z)

:WOF_6517
if 
  $total_bet == 2
goto_if_false @WOF_6578
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, 0.243, 0.253, 0.041)
Object.SetCoordinates($9435, $x, $y, $z)

:WOF_6578
if 
  $total_bet == 3
goto_if_false @WOF_6639
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, -0.635, -0.106, 0.041)
Object.SetCoordinates($9435, $x, $y, $z)

:WOF_6639
if 
  $total_bet == 4
goto_if_false @WOF_6700
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, -0.201, -0.106, 0.041)
Object.SetCoordinates($9435, $x, $y, $z)

:WOF_6700
if 
  $total_bet == 5
goto_if_false @WOF_6761
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, 0.243, -0.106, 0.041)
Object.SetCoordinates($9435, $x, $y, $z)

:WOF_6761
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @WOF_6864 {caseNum1} 3 {caseLabel1} @WOF_6824 {caseNum2} -1 {caseLabel2} @WOF_6904 {caseNum3} -1 {caseLabel3} @WOF_6904 {caseNum4} -1 {caseLabel4} @WOF_6904 {caseNum5} -1 {caseLabel5} @WOF_6904 {caseNum6} -1 {caseLabel6} @WOF_6904 {caseNum7} -1 {caseLabel7} @WOF_6904

:WOF_6824
Hud.DrawWindow(29.0, 220.0, 173.0, 409.0, 'BJ_TITL', 2)
goto @WOF_6904

:WOF_6864
Hud.DrawWindow(29.0, 220.0, 157.0, 409.0, 'BJ_TITL', 2)
goto @WOF_6904

:WOF_6904
gosub @WOF_11748
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 240.0, 'WOF_04')
gosub @WOF_11748
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber(36.0, 260.0, 'DOLLAR', $win_dialogue($total_bet,6i))
gosub @WOF_11748
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 290.0, 'WOF_05')
gosub @WOF_11748
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber(36.0, 310.0, 'DOLLAR', $9332)
gosub @WOF_11748
Text.SetColor(134, 155, 184, 255)
Text.Display(36.0, 340.0, 'BJ_03')
gosub @WOF_11748
Text.SetScale(0.6253, 2.7876)
Text.DisplayWithNumber(36.0, 360.0, 'DOLLAR', 19@)
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @WOF_7283
if 
  16@ == 0
goto_if_false @WOF_7276
if 
  $9332 > 0
goto_if_false @WOF_7269
Stat.IncrementInt(StatId.MoneySpentGambling, $9332)
cset_lvar_float_to_var_int 8@ =# $9332
8@ *= 0.001
Stat.IncrementFloat(StatId.Gambling, 8@)
TIMERA = 0
$wof_initial_stake = 0
6@ = 99

:WOF_7269
16@ = 1

:WOF_7276
goto @WOF_7308

:WOF_7283
if 
  16@ <> 0
goto_if_false @WOF_7308
16@ = 0

:WOF_7308
if 
  6@ == 99
goto_if_false @WOF_7342
Text.ClearHelp
5@ += 1
6@ = 0

:WOF_7342
return 

:WOF_7344
if 
  not Char.IsDead(7@)
goto_if_false @WOF_7668
Task.PlayAnim(7@, "WOF", "CASINO", 4.0, False, False, False, False, -1)
10@ = Math.RandomIntInRange(0, 3)
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WOF_7534 {caseNum1} 0 {caseLabel1} @WOF_7465 {caseNum2} 1 {caseLabel2} @WOF_7488 {caseNum3} 2 {caseLabel3} @WOF_7511 {caseNum4} -1 {caseLabel4} @WOF_7534 {caseNum5} -1 {caseLabel5} @WOF_7534 {caseNum6} -1 {caseLabel6} @WOF_7534 {caseNum7} -1 {caseLabel7} @WOF_7534

:WOF_7465
Char.SetSayScript(7@, 40008, True, True, False)
goto @WOF_7534

:WOF_7488
Char.SetSayScript(7@, 40009, True, True, False)
goto @WOF_7534

:WOF_7511
Char.SetSayScript(7@, 40010, True, True, False)
goto @WOF_7534

:WOF_7534
25@ = 0
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, -1.3681, -2.0088, 0.7317)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, -0.8154, -1.1754, 0.7401)
Camera.PointAtPoint($x, $y, $z, SwitchType.JumpCut)
if 
  Object.DoesExist($9435)
goto_if_false @WOF_7661
Object.SetVisible($9435, False)

:WOF_7661
5@ += 1

:WOF_7668
return 

:WOF_7670
if and
  2.0 > 23@
  25@ > 1
goto_if_false @WOF_7812
$x, $y, $z = Object.GetOffsetInWorldCoords(4@, -0.3059, -0.9385, 0.4225)
Camera.SetFixedPosition($x, $y, $z, 0.0, 0.0, 0.0)
$x, $y, $z = Object.GetOffsetInWorldCoords(4@, -0.0298, -0.0515, 0.7929)
Camera.SetInterpolationParameters(0.0, 6000)
Camera.PointAtPoint($x, $y, $z, SwitchType.Interpolation)
5@ += 1

:WOF_7812
return 

:WOF_7814
if 
  25@ == 4
goto_if_false @WOF_7846
6@ = 0
5@ += 1

:WOF_7846
return 

:WOF_7848
if 
  6@ == 0
goto_if_false @WOF_9049
set_lvar_float_to_lvar_float 8@ = 21@
8@ -= 3.333333
if 
  0.0 > 8@
goto_if_false @WOF_7915
8@ += 360.0

:WOF_7915
8@ /= 6.666667
cset_var_int_to_lvar_float $betting_step =# 8@
$betting_step += 1
gosub @WOF_11803
10@ = 0
$wheel_position_value = 0
if 
  $wheel_position == 1
goto_if_false @WOF_8012
if 
  $win_dialogue[2] > 0
goto_if_false @WOF_8012
$wheel_position_value = 2
mult_int_var_by_int_var $wheel_position_value *= $win_dialogue[2]

:WOF_8012
if 
  $wheel_position == 2
goto_if_false @WOF_8063
if 
  $win_dialogue[4] > 0
goto_if_false @WOF_8063
$wheel_position_value = 3
mult_int_var_by_int_var $wheel_position_value *= $win_dialogue[4]

:WOF_8063
if 
  $wheel_position == 5
goto_if_false @WOF_8114
if 
  $win_dialogue[1] > 0
goto_if_false @WOF_8114
$wheel_position_value = 6
mult_int_var_by_int_var $wheel_position_value *= $win_dialogue[1]

:WOF_8114
if 
  $wheel_position == 10
goto_if_false @WOF_8165
if 
  $win_dialogue[3] > 0
goto_if_false @WOF_8165
$wheel_position_value = 11
mult_int_var_by_int_var $wheel_position_value *= $win_dialogue[3]

:WOF_8165
if 
  $wheel_position == 20
goto_if_false @WOF_8216
if 
  $win_dialogue[0] > 0
goto_if_false @WOF_8216
$wheel_position_value = 21
mult_int_var_by_int_var $wheel_position_value *= $win_dialogue[0]

:WOF_8216
if 
  $wheel_position == 40
goto_if_false @WOF_8267
if 
  $win_dialogue[5] > 0
goto_if_false @WOF_8267
$wheel_position_value = 41
mult_int_var_by_int_var $wheel_position_value *= $win_dialogue[5]

:WOF_8267
TIMERA = 0
set_lvar_int_to_var_int 10@ = $wheel_position_value
sub_int_var_from_int_lvar 10@ -= $wof_betting_menu
Player.AddScore($player1, $wheel_position_value)
if 
  10@ > 0
goto_if_false @WOF_8330
Stat.IncrementInt(StatId.MoneyWonGambling, 10@)
goto @WOF_8330

:WOF_8330
start_new_script @CASHWIN 10@ 3000 
Stat.ShowUpdateStats(False)
if 
  10@ > 0
goto_if_false @WOF_9003
Stat.RegisterInt(StatId.BiggestGamblingWin, 10@)
cset_lvar_float_to_lvar_int 8@ =# 10@
cset_lvar_float_to_lvar_int 9@ =# 19@
div_float_lvar_by_float_lvar 8@ /= 9@
$bj_temp_float3 += 1
if 
  3 > $bj_temp_float3
goto_if_false @WOF_8832
if 
  8@ > 0.9
goto_if_false @WOF_8654
if 
  Player.IsPlaying($player1)
goto_if_false @WOF_8647
if 
  not Char.IsDead(7@)
goto_if_false @WOF_8647
10@ = Math.RandomIntInRange(0, 5)
switch_start 10@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @WOF_8633 {caseNum1} 0 {caseLabel1} @WOF_8547 {caseNum2} 1 {caseLabel2} @WOF_8570 {caseNum3} 2 {caseLabel3} @WOF_8593 {caseNum4} 3 {caseLabel4} @WOF_8616 {caseNum5} -1 {caseLabel5} @WOF_8647 {caseNum6} -1 {caseLabel6} @WOF_8647 {caseNum7} -1 {caseLabel7} @WOF_8647

:WOF_8547
Char.SetSayScript(7@, 40048, True, True, False)
goto @WOF_8647

:WOF_8570
Char.SetSayScript(7@, 40049, True, True, False)
goto @WOF_8647

:WOF_8593
Char.SetSayScript(7@, 40050, True, True, False)
goto @WOF_8647

:WOF_8616
10@ = Char.SetSayContext($scplayer, 100)
goto @WOF_8647

:WOF_8633
gosub @WOF_9227
goto @WOF_8647

:WOF_8647
goto @WOF_8825

:WOF_8654
if 
  not Char.IsDead(7@)
goto_if_false @WOF_8825
10@ = Math.RandomIntInRange(0, 10)
switch_start 10@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @WOF_8811 {caseNum1} 0 {caseLabel1} @WOF_8742 {caseNum2} 1 {caseLabel2} @WOF_8765 {caseNum3} 2 {caseLabel3} @WOF_8788 {caseNum4} -1 {caseLabel4} @WOF_8825 {caseNum5} -1 {caseLabel5} @WOF_8825 {caseNum6} -1 {caseLabel6} @WOF_8825 {caseNum7} -1 {caseLabel7} @WOF_8825

:WOF_8742
Char.SetSayScript(7@, 40048, True, True, False)
goto @WOF_8825

:WOF_8765
Char.SetSayScript(7@, 40049, True, True, False)
goto @WOF_8825

:WOF_8788
Char.SetSayScript(7@, 40050, True, True, False)
goto @WOF_8825

:WOF_8811
gosub @WOF_9227
goto @WOF_8825

:WOF_8825
goto @WOF_8996

:WOF_8832
if 
  not Char.IsDead(7@)
goto_if_false @WOF_8989
10@ = Math.RandomIntInRange(0, 3)
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WOF_8989 {caseNum1} 0 {caseLabel1} @WOF_8920 {caseNum2} 1 {caseLabel2} @WOF_8943 {caseNum3} 2 {caseLabel3} @WOF_8966 {caseNum4} -1 {caseLabel4} @WOF_8989 {caseNum5} -1 {caseLabel5} @WOF_8989 {caseNum6} -1 {caseLabel6} @WOF_8989 {caseNum7} -1 {caseLabel7} @WOF_8989

:WOF_8920
Char.SetSayScript(7@, 40062, True, True, False)
goto @WOF_8989

:WOF_8943
Char.SetSayScript(7@, 40063, True, True, False)
goto @WOF_8989

:WOF_8966
Char.SetSayScript(7@, 40064, True, True, False)
goto @WOF_8989

:WOF_8989
$bj_temp_float3 = 0

:WOF_8996
goto @WOF_9038

:WOF_9003
10@ *= -1
Stat.RegisterInt(StatId.BiggestGamblingLoss, 10@)
10@ *= -1
gosub @WOF_9227
$bj_temp_float3 = 0

:WOF_9038
Stat.ShowUpdateStats(True)
6@ += 1

:WOF_9049
if 
  6@ == 1
goto_if_false @WOF_9100
if 
  3000 > TIMERA
goto_if_false @WOF_9093
goto @WOF_9100

:WOF_9093
6@ += 1

:WOF_9100
if 
  6@ == 2
goto_if_false @WOF_9193
Text.PrintHelpForever('WOF_09')
10@ = 0

:WOF_9136
if 
  6 > 10@
goto_if_false @WOF_9179
$win_dialogue(10@,6i) = 0
10@ += 1
goto @WOF_9136

:WOF_9179
TIMERA = 0
6@ = 99

:WOF_9193
if 
  6@ == 99
goto_if_false @WOF_9225
TIMERA = 0
5@ += 1

:WOF_9225
return 

:WOF_9227
if 
  not Char.IsDead(7@)
goto_if_false @WOF_9494
switch_start $wheel_position {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @WOF_9494 {caseNum1} 1 {caseLabel1} @WOF_9306 {caseNum2} 2 {caseLabel2} @WOF_9329 {caseNum3} 5 {caseLabel3} @WOF_9352 {caseNum4} 10 {caseLabel4} @WOF_9375 {caseNum5} 20 {caseLabel5} @WOF_9398 {caseNum6} 40 {caseLabel6} @WOF_9421 {caseNum7} -1 {caseLabel7} @WOF_9494

:WOF_9306
Char.SetSayScript(7@, 40055, True, True, False)
goto @WOF_9494

:WOF_9329
Char.SetSayScript(7@, 40056, True, True, False)
goto @WOF_9494

:WOF_9352
Char.SetSayScript(7@, 40057, True, True, False)
goto @WOF_9494

:WOF_9375
Char.SetSayScript(7@, 40058, True, True, False)
goto @WOF_9494

:WOF_9398
Char.SetSayScript(7@, 40059, True, True, False)
goto @WOF_9494

:WOF_9421
10@ = Math.RandomIntInRange(0, 2)
if 
  10@ == 0
goto_if_false @WOF_9471
Char.SetSayScript(7@, 40060, True, True, False)
goto @WOF_9487

:WOF_9471
Char.SetSayScript(7@, 40061, True, True, False)

:WOF_9487
goto @WOF_9494

:WOF_9494
return 

:WOF_9496
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @WOF_9538
16@ = -1
Text.ClearPrints
Text.ClearHelp
5@ = 1
6@ = 0

:WOF_9538
return 
$casino_credit, $colour_r, $colour_g, $colour_b = Hud.GetColor(6)
Text.SetColor($casino_credit, $colour_r, $colour_g, $colour_b)
Text.SetFont(Font.Pricedown)
Text.SetEdge(3, 0, 0, 0, 255)
Text.SetScale(1.2, 4.0)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
return 
$casino_credit, $colour_r, $colour_g, $colour_b = Hud.GetColor(0)
Text.SetColor($casino_credit, $colour_r, $colour_g, $colour_b)
Text.SetFont(Font.Pricedown)
Text.SetEdge(3, 0, 0, 0, 255)
Text.SetScale(1.2, 4.0)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
return 
$casino_credit, $colour_r, $colour_g, $colour_b = Hud.GetColor(HudObject.Health)
Text.SetColor($casino_credit, $colour_r, $colour_g, $colour_b)
Text.SetFont(Font.Pricedown)
Text.SetEdge(3, 0, 0, 0, 255)
Text.SetScale(1.2, 4.0)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
return 
$casino_credit, $colour_r, $colour_g, $colour_b = Hud.GetColor(HudObject.Health)
Text.SetColor($casino_credit, $colour_r, $colour_g, $colour_b)
Text.SetFont(Font.Menu)
Text.SetEdge(2, 0, 0, 0, 255)
Text.SetScale(0.52, 1.45)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
return 

:WOF_9892
switch_start 25@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @WOF_10591 {caseNum1} 0 {caseLabel1} @WOF_9955 {caseNum2} 1 {caseLabel2} @WOF_9991 {caseNum3} 2 {caseLabel3} @WOF_10050 {caseNum4} 3 {caseLabel4} @WOF_10220 {caseNum5} 4 {caseLabel5} @WOF_10584 {caseNum6} -1 {caseLabel6} @WOF_10591 {caseNum7} -1 {caseLabel7} @WOF_10591

:WOF_9955
24@ = Math.RandomFloatInRange(0.1, 0.15)
TIMERB = 0
25@ += 1
goto @WOF_10591

:WOF_9991
add_timed_float_lvar_to_float_lvar 23@ +=@ 24@
add_timed_float_lvar_to_float_lvar 22@ +=@ 23@
if 
  TIMERB > 500
goto_if_false @WOF_10043
24@ = -0.005
25@ += 1

:WOF_10043
goto @WOF_10591

:WOF_10050
add_timed_float_lvar_to_float_lvar 23@ +=@ 24@
add_timed_float_lvar_to_float_lvar 22@ +=@ 23@
if 
  0.3 > 23@
goto_if_false @WOF_10213
set_lvar_float_to_lvar_float 21@ = 22@
set_lvar_float_to_lvar_float 8@ = 21@
8@ /= 6.6667
cset_lvar_int_to_lvar_float 10@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 10@
sub_float_lvar_from_float_lvar 8@ -= 9@
8@ += -1.0
8@ *= -1.0
8@ *= 6.666667
add_float_lvar_to_float_lvar 21@ += 8@
if 
  21@ > 360.0
goto_if_false @WOF_10206
21@ += -360.0

:WOF_10206
25@ += 1

:WOF_10213
goto @WOF_10591

:WOF_10220
set_lvar_float_to_lvar_float 8@ = 22@
sub_float_lvar_from_float_lvar 8@ -= 21@
if 
  -180.0 > 8@
goto_if_false @WOF_10267
8@ += 360.0

:WOF_10267
if 
  8@ > 180.0
goto_if_false @WOF_10298
8@ += -360.0

:WOF_10298
if 
  23@ > 0.01
goto_if_false @WOF_10416
if 
  8@ > 3.333333
goto_if_false @WOF_10409
set_lvar_float_to_lvar_float 22@ = 21@
22@ += 3.333333
if 
  22@ > 360.0
goto_if_false @WOF_10389
22@ += -360.0

:WOF_10389
23@ *= -1.0
24@ *= -1.0

:WOF_10409
goto @WOF_10561

:WOF_10416
if 
  -0.01 > 23@
goto_if_false @WOF_10534
if 
  -3.333333 > 8@
goto_if_false @WOF_10527
set_lvar_float_to_lvar_float 22@ = 21@
22@ -= 3.333333
if 
  0.0 > 22@
goto_if_false @WOF_10507
22@ += 360.0

:WOF_10507
23@ *= -1.0
24@ *= -1.0

:WOF_10527
goto @WOF_10561

:WOF_10534
23@ = 0.0
24@ = 0.0
25@ += 1

:WOF_10561
add_timed_float_lvar_to_float_lvar 23@ +=@ 24@
add_timed_float_lvar_to_float_lvar 22@ +=@ 23@
goto @WOF_10591

:WOF_10584
goto @WOF_10591

:WOF_10591
if 
  23@ <> 0.0
goto_if_false @WOF_10690
if 
  22@ > 360.0
goto_if_false @WOF_10643
22@ += -360.0

:WOF_10643
if 
  0.0 > 22@
goto_if_false @WOF_10674
22@ += 360.0

:WOF_10674
Object.SetRotation(0@, 0.0, 22@, 20@)

:WOF_10690
if 
  Object.DoesExist(1@)
goto_if_false @WOF_11173
if 
  23@ > 0.2
goto_if_false @WOF_11095
if 
  0.8 > 23@
goto_if_false @WOF_11032
set_lvar_float_to_lvar_float 8@ = 22@
8@ += 3.33333
8@ /= 6.6667
cset_lvar_int_to_lvar_float 10@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 10@
sub_float_lvar_from_float_lvar 8@ -= 9@
8@ += -1.0
8@ *= -1.0
8@ *= 6.666667
if 
  8@ > 5.0
goto_if_false @WOF_10959
8@ += -5.0
8@ /= 1.66667
8@ += -1.0
8@ *= -1.0
8@ *= 5.0
set_lvar_float_to_lvar_float 26@ = 8@
26@ *= -1.0
if 
  27@ <> 1
goto_if_false @WOF_10952
Audio.ReportMissionAudioEventAtObject(1@, 1027)
27@ = 1

:WOF_10952
goto @WOF_11025

:WOF_10959
add_timed_val_to_float_lvar 26@ +=@ 0.5
if 
  26@ > 0.0
goto_if_false @WOF_11000
26@ = 0.0

:WOF_11000
if 
  27@ <> 0
goto_if_false @WOF_11025
27@ = 0

:WOF_11025
goto @WOF_11088

:WOF_11032
if 
  26@ == -5.0
goto_if_false @WOF_11078
26@ = -2.0
Audio.ReportMissionAudioEventAtObject(1@, 1027)
goto @WOF_11088

:WOF_11078
26@ = -5.0

:WOF_11088
goto @WOF_11157

:WOF_11095
if 
  0.0 > 26@
goto_if_false @WOF_11157
add_timed_val_to_float_lvar 26@ +=@ 0.5
if 
  26@ > 0.0
goto_if_false @WOF_11157
26@ = 0.0

:WOF_11157
Object.SetRotation(1@, 0.0, 26@, 20@)

:WOF_11173
return 

:WOF_11175
Game.SetMinigameInProgress(False)
13@ = 0
5@ = 0
6@ = 0
if 
  $wof_initial_stake > 0
goto_if_false @WOF_11226
Player.AddScore($player1, $wof_initial_stake)

:WOF_11226
$wof_initial_stake = 0
if 
  not Char.IsDead(7@)
goto_if_false @WOF_11315
10@ = Math.RandomIntInRange(0, 2)
if 
  10@ == 0
goto_if_false @WOF_11299
Char.SetSayScript(7@, 40053, True, True, False)
goto @WOF_11315

:WOF_11299
Char.SetSayScript(7@, 40054, True, True, False)

:WOF_11315
if 
  Player.IsPlaying($player1)
goto_if_false @WOF_11338
Player.SetControl($player1, True)

:WOF_11338
terminate_all_scripts_with_this_name 'CASHWIN'
Text.UseCommands(False)
Hud.DisplayRadar(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
10@ = 0

:WOF_11368
if 
  6 > 10@
goto_if_false @WOF_11472
Object.Delete($wof_winnings(10@,6i))
Object.Delete($9344(10@,6i))
Object.Delete($9350(10@,6i))
Object.Delete($9356(10@,6i))
Object.Delete($9362(10@,6i))
Object.Delete($9368(10@,6i))
Object.Delete($9374(10@,6i))
Object.Delete($9380(10@,6i))
10@ += 1
goto @WOF_11368

:WOF_11472
Object.Delete($9435)
Menu.Delete($marker)
if and
  not Text.IsThisHelpMessageBeingDisplayed('SGPUNT')
  not Text.IsThisHelpMessageBeingDisplayed('SGGAMB')
  not Text.IsThisHelpMessageBeingDisplayed('SGPROF')
  not Text.IsThisHelpMessageBeingDisplayed('SGHIRO')
goto_if_false @WOF_11539
Text.ClearHelp

:WOF_11539
return 

:WOF_11541
8@ = Stat.GetFloat(StatId.Gambling)
if 
  1.0 > 8@
goto_if_false @WOF_11583
$bj_payout = 100
goto @WOF_11703

:WOF_11583
if 
  10.0 > 8@
goto_if_false @WOF_11619
$bj_payout = 1000
goto @WOF_11703

:WOF_11619
if 
  100.0 > 8@
goto_if_false @WOF_11655
$bj_payout = 10000
goto @WOF_11703

:WOF_11655
if 
  1000.0 > 8@
goto_if_false @WOF_11693
$bj_payout = 100000
goto @WOF_11703

:WOF_11693
$bj_payout = 1000000

:WOF_11703
return 
Text.SetScale(0.4487, 1.5974)
Text.SetColor(128, 148, 178, 255)
Text.SetJustify(True)
Text.SetWrapX(2000.0)
Text.SetProportional(True)
return 

:WOF_11748
Text.SetColor(180, 180, 180, 255)
Text.SetScale(0.4714, 2.5077)
Text.SetRightJustify(False)
Text.SetJustify(False)
Text.SetCenter(False)
Text.SetWrapX(640.0)
Text.SetProportional(True)
Text.SetBackground(False)
return 

:WOF_11803
if 
  $betting_step == 1
goto_if_false @WOF_11835
$wheel_position = 40
goto @WOF_13531

:WOF_11835
if 
  $betting_step == 2
goto_if_false @WOF_11867
$wheel_position = 2
goto @WOF_13531

:WOF_11867
if 
  $betting_step == 3
goto_if_false @WOF_11899
$wheel_position = 10
goto @WOF_13531

:WOF_11899
if 
  $betting_step == 4
goto_if_false @WOF_11931
$wheel_position = 1
goto @WOF_13531

:WOF_11931
if 
  $betting_step == 5
goto_if_false @WOF_11963
$wheel_position = 2
goto @WOF_13531

:WOF_11963
if 
  $betting_step == 6
goto_if_false @WOF_11995
$wheel_position = 1
goto @WOF_13531

:WOF_11995
if 
  $betting_step == 7
goto_if_false @WOF_12027
$wheel_position = 5
goto @WOF_13531

:WOF_12027
if 
  $betting_step == 8
goto_if_false @WOF_12059
$wheel_position = 1
goto @WOF_13531

:WOF_12059
if 
  $betting_step == 9
goto_if_false @WOF_12091
$wheel_position = 2
goto @WOF_13531

:WOF_12091
if 
  $betting_step == 10
goto_if_false @WOF_12123
$wheel_position = 10
goto @WOF_13531

:WOF_12123
if 
  $betting_step == 11
goto_if_false @WOF_12155
$wheel_position = 1
goto @WOF_13531

:WOF_12155
if 
  $betting_step == 12
goto_if_false @WOF_12187
$wheel_position = 2
goto @WOF_13531

:WOF_12187
if 
  $betting_step == 13
goto_if_false @WOF_12219
$wheel_position = 1
goto @WOF_13531

:WOF_12219
if 
  $betting_step == 14
goto_if_false @WOF_12251
$wheel_position = 5
goto @WOF_13531

:WOF_12251
if 
  $betting_step == 15
goto_if_false @WOF_12283
$wheel_position = 2
goto @WOF_13531

:WOF_12283
if 
  $betting_step == 16
goto_if_false @WOF_12315
$wheel_position = 1
goto @WOF_13531

:WOF_12315
if 
  $betting_step == 17
goto_if_false @WOF_12347
$wheel_position = 20
goto @WOF_13531

:WOF_12347
if 
  $betting_step == 18
goto_if_false @WOF_12379
$wheel_position = 1
goto @WOF_13531

:WOF_12379
if 
  $betting_step == 19
goto_if_false @WOF_12411
$wheel_position = 2
goto @WOF_13531

:WOF_12411
if 
  $betting_step == 20
goto_if_false @WOF_12443
$wheel_position = 5
goto @WOF_13531

:WOF_12443
if 
  $betting_step == 21
goto_if_false @WOF_12475
$wheel_position = 10
goto @WOF_13531

:WOF_12475
if 
  $betting_step == 22
goto_if_false @WOF_12507
$wheel_position = 1
goto @WOF_13531

:WOF_12507
if 
  $betting_step == 23
goto_if_false @WOF_12539
$wheel_position = 2
goto @WOF_13531

:WOF_12539
if 
  $betting_step == 24
goto_if_false @WOF_12571
$wheel_position = 1
goto @WOF_13531

:WOF_12571
if 
  $betting_step == 25
goto_if_false @WOF_12603
$wheel_position = 5
goto @WOF_13531

:WOF_12603
if 
  $betting_step == 26
goto_if_false @WOF_12635
$wheel_position = 1
goto @WOF_13531

:WOF_12635
if 
  $betting_step == 27
goto_if_false @WOF_12667
$wheel_position = 2
goto @WOF_13531

:WOF_12667
if 
  $betting_step == 28
goto_if_false @WOF_12699
$wheel_position = 1
goto @WOF_13531

:WOF_12699
if 
  $betting_step == 29
goto_if_false @WOF_12731
$wheel_position = 40
goto @WOF_13531

:WOF_12731
if 
  $betting_step == 30
goto_if_false @WOF_12763
$wheel_position = 2
goto @WOF_13531

:WOF_12763
if 
  $betting_step == 31
goto_if_false @WOF_12795
$wheel_position = 1
goto @WOF_13531

:WOF_12795
if 
  $betting_step == 32
goto_if_false @WOF_12827
$wheel_position = 2
goto @WOF_13531

:WOF_12827
if 
  $betting_step == 33
goto_if_false @WOF_12859
$wheel_position = 1
goto @WOF_13531

:WOF_12859
if 
  $betting_step == 34
goto_if_false @WOF_12891
$wheel_position = 2
goto @WOF_13531

:WOF_12891
if 
  $betting_step == 35
goto_if_false @WOF_12923
$wheel_position = 5
goto @WOF_13531

:WOF_12923
if 
  $betting_step == 36
goto_if_false @WOF_12955
$wheel_position = 1
goto @WOF_13531

:WOF_12955
if 
  $betting_step == 37
goto_if_false @WOF_12987
$wheel_position = 2
goto @WOF_13531

:WOF_12987
if 
  $betting_step == 38
goto_if_false @WOF_13019
$wheel_position = 1
goto @WOF_13531

:WOF_13019
if 
  $betting_step == 39
goto_if_false @WOF_13051
$wheel_position = 5
goto @WOF_13531

:WOF_13051
if 
  $betting_step == 40
goto_if_false @WOF_13083
$wheel_position = 1
goto @WOF_13531

:WOF_13083
if 
  $betting_step == 41
goto_if_false @WOF_13115
$wheel_position = 20
goto @WOF_13531

:WOF_13115
if 
  $betting_step == 42
goto_if_false @WOF_13147
$wheel_position = 1
goto @WOF_13531

:WOF_13147
if 
  $betting_step == 43
goto_if_false @WOF_13179
$wheel_position = 10
goto @WOF_13531

:WOF_13179
if 
  $betting_step == 44
goto_if_false @WOF_13211
$wheel_position = 1
goto @WOF_13531

:WOF_13211
if 
  $betting_step == 45
goto_if_false @WOF_13243
$wheel_position = 2
goto @WOF_13531

:WOF_13243
if 
  $betting_step == 46
goto_if_false @WOF_13275
$wheel_position = 1
goto @WOF_13531

:WOF_13275
if 
  $betting_step == 47
goto_if_false @WOF_13307
$wheel_position = 5
goto @WOF_13531

:WOF_13307
if 
  $betting_step == 48
goto_if_false @WOF_13339
$wheel_position = 1
goto @WOF_13531

:WOF_13339
if 
  $betting_step == 49
goto_if_false @WOF_13371
$wheel_position = 2
goto @WOF_13531

:WOF_13371
if 
  $betting_step == 50
goto_if_false @WOF_13403
$wheel_position = 1
goto @WOF_13531

:WOF_13403
if 
  $betting_step == 51
goto_if_false @WOF_13435
$wheel_position = 5
goto @WOF_13531

:WOF_13435
if 
  $betting_step == 52
goto_if_false @WOF_13467
$wheel_position = 1
goto @WOF_13531

:WOF_13467
if 
  $betting_step == 53
goto_if_false @WOF_13499
$wheel_position = 2
goto @WOF_13531

:WOF_13499
if 
  $betting_step == 54
goto_if_false @WOF_13531
$wheel_position = 1
goto @WOF_13531

:WOF_13531
return 

:WOF_13533
if 
is_ps2_keyboard_key_just_pressed 24
goto_if_false @WOF_13575
$9386 += 0.001
write_debug_with_float "CHIP_SET_Z" {_p2} $9386

:WOF_13575
if 
is_ps2_keyboard_key_just_pressed 13
goto_if_false @WOF_13617
$9386 += -0.001
write_debug_with_float "CHIP_SET_Z" {_p2} $9386

:WOF_13617
10@ = 0

:WOF_13624
if 
  6 > 10@
goto_if_false @WOF_15503
set_lvar_int_to_var_int 12@ = $win_dialogue(10@,6i)
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 1.0
if 
  8@ > 10.0
goto_if_false @WOF_13703
8@ = 10.0

:WOF_13703
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_13757
9@ += 0.03

:WOF_13757
set_var_float_to_var_float $chip_set_z(10@,6f) = $9386
add_float_lvar_to_float_var $chip_set_z(10@,6f) += 9@
11@ *= -1
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($wof_winnings(10@,6i))
goto_if_false @WOF_13883
$x, $y, $z = Object.GetCoordinates($wof_winnings(10@,6i))
8@, 8@, $z = Object.GetOffsetInWorldCoords(2@, 0.0, 0.0, $chip_set_z(10@,6f))
Object.SetCoordinates($wof_winnings(10@,6i), $x, $y, $z)

:WOF_13883
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 5.0
if 
  8@ > 10.0
goto_if_false @WOF_13932
8@ = 10.0

:WOF_13932
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_13986
9@ += 0.03

:WOF_13986
set_var_float_to_var_float $9393(10@,6f) = $9386
add_float_lvar_to_float_var $9393(10@,6f) += 9@
11@ *= -5
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($9344(10@,6i))
goto_if_false @WOF_14112
$x, $y, $z = Object.GetCoordinates($9344(10@,6i))
8@, 8@, $z = Object.GetOffsetInWorldCoords(2@, 0.0, 0.0, $9393(10@,6f))
Object.SetCoordinates($9344(10@,6i), $x, $y, $z)

:WOF_14112
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 10.0
if 
  8@ > 10.0
goto_if_false @WOF_14161
8@ = 10.0

:WOF_14161
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_14215
9@ += 0.03

:WOF_14215
set_var_float_to_var_float $9399(10@,6f) = $9386
add_float_lvar_to_float_var $9399(10@,6f) += 9@
11@ *= -10
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($9350(10@,6i))
goto_if_false @WOF_14341
$x, $y, $z = Object.GetCoordinates($9350(10@,6i))
8@, 8@, $z = Object.GetOffsetInWorldCoords(2@, 0.0, 0.0, $9399(10@,6f))
Object.SetCoordinates($9350(10@,6i), $x, $y, $z)

:WOF_14341
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 50.0
if 
  8@ > 10.0
goto_if_false @WOF_14390
8@ = 10.0

:WOF_14390
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_14444
9@ += 0.03

:WOF_14444
set_var_float_to_var_float $9405(10@,6f) = $9386
add_float_lvar_to_float_var $9405(10@,6f) += 9@
11@ *= -50
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($9356(10@,6i))
goto_if_false @WOF_14570
$x, $y, $z = Object.GetCoordinates($9356(10@,6i))
8@, 8@, $z = Object.GetOffsetInWorldCoords(2@, 0.0, 0.0, $9405(10@,6f))
Object.SetCoordinates($9356(10@,6i), $x, $y, $z)

:WOF_14570
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 100.0
if 
  8@ > 10.0
goto_if_false @WOF_14619
8@ = 10.0

:WOF_14619
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_14673
9@ += 0.03

:WOF_14673
set_var_float_to_var_float $9411(10@,6f) = $9386
add_float_lvar_to_float_var $9411(10@,6f) += 9@
11@ *= -100
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($9362(10@,6i))
goto_if_false @WOF_14799
$x, $y, $z = Object.GetCoordinates($9362(10@,6i))
8@, 8@, $z = Object.GetOffsetInWorldCoords(2@, 0.0, 0.0, $9411(10@,6f))
Object.SetCoordinates($9362(10@,6i), $x, $y, $z)

:WOF_14799
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 200.0
if 
  8@ > 10.0
goto_if_false @WOF_14848
8@ = 10.0

:WOF_14848
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_14902
9@ += 0.03

:WOF_14902
set_var_float_to_var_float $9417(10@,6f) = $9386
add_float_lvar_to_float_var $9417(10@,6f) += 9@
11@ *= -200
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($9368(10@,6i))
goto_if_false @WOF_15029
$x, $y, $z = Object.GetCoordinates($9368(10@,6i))
8@, 8@, $z = Object.GetOffsetInWorldCoords(2@, 0.0, 0.0, $9417(10@,6f))
Object.SetCoordinates($9368(10@,6i), $x, $y, $z)

:WOF_15029
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 500.0
if 
  8@ > 10.0
goto_if_false @WOF_15078
8@ = 10.0

:WOF_15078
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_15132
9@ += 0.03

:WOF_15132
set_var_float_to_var_float $9423(10@,6f) = $9386
add_float_lvar_to_float_var $9423(10@,6f) += 9@
11@ *= -500
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($9374(10@,6i))
goto_if_false @WOF_15259
$x, $y, $z = Object.GetCoordinates($9374(10@,6i))
8@, 8@, $z = Object.GetOffsetInWorldCoords(2@, 0.0, 0.0, $9423(10@,6f))
Object.SetCoordinates($9374(10@,6i), $x, $y, $z)

:WOF_15259
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 1000.0
if 
  8@ > 10.0
goto_if_false @WOF_15308
8@ = 10.0

:WOF_15308
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_15362
9@ += 0.03

:WOF_15362
set_var_float_to_var_float $9429(10@,6f) = $9386
add_float_lvar_to_float_var $9429(10@,6f) += 9@
11@ *= -1000
add_int_lvar_to_int_lvar 12@ += 11@
if 
  Object.DoesExist($9380(10@,6i))
goto_if_false @WOF_15489
$x, $y, $z = Object.GetCoordinates($9380(10@,6i))
8@, 8@, $z = Object.GetOffsetInWorldCoords(2@, 0.0, 0.0, $9429(10@,6f))
Object.SetCoordinates($9380(10@,6i), $x, $y, $z)

:WOF_15489
10@ += 1
goto @WOF_13624

:WOF_15503
return 

:WOF_15505
if 
  Object.DoesExist(0@)
goto_if_false @WOF_15865
8@ = Stat.GetFloat(StatId.Gambling)
if 
  $wof_temp_float3 == 0
goto_if_false @WOF_15715
if 
  1.0 > 8@
goto_if_false @WOF_15581
19@ = 100
goto @WOF_15701

:WOF_15581
if 
  10.0 > 8@
goto_if_false @WOF_15617
19@ = 1000
goto @WOF_15701

:WOF_15617
if 
  100.0 > 8@
goto_if_false @WOF_15653
19@ = 10000
goto @WOF_15701

:WOF_15653
if 
  1000.0 > 8@
goto_if_false @WOF_15691
19@ = 100000
goto @WOF_15701

:WOF_15691
19@ = 1000000

:WOF_15701
$wof_temp_float3 += 1
goto @WOF_15865

:WOF_15715
10@ = Math.RandomIntInRange(0, 5)
switch_start 10@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @WOF_15865 {caseNum1} 0 {caseLabel1} @WOF_15787 {caseNum2} 1 {caseLabel2} @WOF_15801 {caseNum3} 2 {caseLabel3} @WOF_15816 {caseNum4} 3 {caseLabel4} @WOF_15831 {caseNum5} 4 {caseLabel5} @WOF_15848 {caseNum6} -1 {caseLabel6} @WOF_15865 {caseNum7} -1 {caseLabel7} @WOF_15865

:WOF_15787
19@ = 100
goto @WOF_15865

:WOF_15801
19@ = 1000
goto @WOF_15865

:WOF_15816
19@ = 10000
goto @WOF_15865

:WOF_15831
19@ = 100000
goto @WOF_15865

:WOF_15848
19@ = 1000000
goto @WOF_15865

:WOF_15865
return 
$x, $y, $z = Camera.GetDebugCoordinates()
if 
  Object.DoesExist(4@)
goto_if_false @WOF_15916
$active_wheel, $wof_x2, $wof_y2 = Object.GetCoordinates(4@)
$heading = Object.GetHeading(4@)

:WOF_15916
$heading *= -1.0
8@ = Math.Cos($heading)
9@ = Math.Sin($heading)
set_var_float_to_var_float $wof_z2 = $x
sub_float_var_from_float_var $wof_z2 -= $active_wheel
set_var_float_to_var_float $wof_vec_x = $y
sub_float_var_from_float_var $wof_vec_x -= $wof_x2
set_var_float_to_var_float $wof_vec_y = $z
sub_float_var_from_float_var $wof_vec_y -= $wof_y2
set_var_float_to_var_float $wof_vec_z = $wof_z2
mult_float_var_by_float_lvar $wof_vec_z *= 8@
set_var_float_to_var_float $wof_vec2_y = $wof_vec_x
mult_float_var_by_float_lvar $wof_vec2_y *= 9@
sub_float_var_from_float_var $wof_vec_z -= $wof_vec2_y
set_var_float_to_var_float $wof_vec2_x = $wof_z2
mult_float_var_by_float_lvar $wof_vec2_x *= 9@
set_var_float_to_var_float $wof_vec2_y = $wof_vec_x
mult_float_var_by_float_lvar $wof_vec2_y *= 8@
add_float_var_to_float_var $wof_vec2_x += $wof_vec2_y
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("FIXED_CAMERA_POSITION - OFFSET FROM TABLE = ")
save_float_to_debug_file $wof_vec_z
save_float_to_debug_file $wof_vec2_x
save_float_to_debug_file $wof_vec_y
$x, $y, $z = Camera.GetDebugPointAt()
set_var_float_to_var_float $wof_z2 = $x
sub_float_var_from_float_var $wof_z2 -= $active_wheel
set_var_float_to_var_float $wof_vec_x = $y
sub_float_var_from_float_var $wof_vec_x -= $wof_x2
set_var_float_to_var_float $wof_vec_y = $z
sub_float_var_from_float_var $wof_vec_y -= $wof_y2
set_var_float_to_var_float $wof_vec_z = $wof_z2
mult_float_var_by_float_lvar $wof_vec_z *= 8@
set_var_float_to_var_float $wof_vec2_y = $wof_vec_x
mult_float_var_by_float_lvar $wof_vec2_y *= 9@
sub_float_var_from_float_var $wof_vec_z -= $wof_vec2_y
set_var_float_to_var_float $wof_vec2_x = $wof_z2
mult_float_var_by_float_lvar $wof_vec2_x *= 9@
set_var_float_to_var_float $wof_vec2_y = $wof_vec_x
mult_float_var_by_float_lvar $wof_vec2_y *= 8@
add_float_var_to_float_var $wof_vec2_x += $wof_vec2_y
save_newline_to_debug_file 
Debugger.SaveStringToDebugFile("CAMERA_POINT_AT -       OFFSET FROM TABLE = ")
save_float_to_debug_file $wof_vec_z
save_float_to_debug_file $wof_vec2_x
save_float_to_debug_file $wof_vec_y
return 
terminate_this_script 

//-------------External script 19 (DEALER)---------------

:DEALER
script_name 'DEALER'
13@ = 0
if 
  13@ == 1
goto_if_false @DEALER_60
0@ = Char.Create(PedType.Dealer, 0, 0.0, 0.0, 0.0)

:DEALER_60
1@ = 0
2@ = 0
11@ = -1
14@ = 0
if and
  not Char.IsDead(0@)
  not Char.IsDead($scplayer)
goto_if_false @DEALER_338
3@, 4@, 5@ = Char.GetCoordinates(0@)
s$total_wof_tables = Zone.GetName(3@, 4@, 5@)
set_lvar_text_label 17@s = s$total_wof_tables
$9452 = DecisionMakerChar.CopyShared(65539)
Char.SetDecisionMaker(0@, $9452)
Char.SetMoney(0@, 2000)
Conversation.StartSettingUp(0@)
Conversation.SetUpNodeWithSpeech('DEAL1', 'DEAL2', 'DEAL3', 191, 77, 78)
13@ = Stat.GetInt(StatId.RespectTotal)
if 
  13@ >= 500
goto_if_false @DEALER_271
Conversation.SetUpEndNodeWithSpeech('DEAL2', 79)
Conversation.SetUpEndNodeWithSpeech('DEAL3', 75)
goto @DEALER_297

:DEALER_271
Conversation.SetUpEndNodeWithSpeech('DEAL2', 80)
Conversation.SetUpEndNodeWithSpeech('DEAL3', 76)

:DEALER_297
13@ = Game.GetCurrentLanguage()
if 
  is_int_lvar_equal_to_constant 13@ == 0
goto_if_false @DEALER_329
Conversation.FinishSettingUpNoSubtitles
goto @DEALER_331

:DEALER_329
Conversation.FinishSettingUp

:DEALER_331
goto @DEALER_345

:DEALER_338
gosub @DEALER_3913

:DEALER_345
wait 0
if 
  not Char.IsDead(0@)
goto_if_false @DEALER_471
if 
  not Char.IsDead($scplayer)
goto_if_false @DEALER_457
if or
  Char.HasBeenDamagedByChar(0@, $scplayer)
  Player.IsTargetingChar($player1, 0@)
goto_if_false @DEALER_429
gosub @DEALER_641
gosub @DEALER_3368
goto @DEALER_450

:DEALER_429
gosub @DEALER_846
gosub @DEALER_485
gosub @DEALER_931

:DEALER_450
goto @DEALER_464

:DEALER_457
gosub @DEALER_3913

:DEALER_464
goto @DEALER_478

:DEALER_471
gosub @DEALER_3913

:DEALER_478
goto @DEALER_345

:DEALER_485
if 
  11@ == -1
goto_if_false @DEALER_604
if 
  TIMERA > 15000
goto_if_false @DEALER_597
3@, 4@, 5@ = Char.GetCoordinates(0@)
11@ = World.GetRandomCharInSphereOnlyDrugsBuyers(3@, 4@, 5@, 5.0)
if 
  11@ <> -1
goto_if_false @DEALER_597
if 
  Char.IsInAnyCar(11@)
goto_if_false @DEALER_597
12@ = Char.StoreCarIsInNoSave(11@)

:DEALER_597
goto @DEALER_639

:DEALER_604
if or
  Char.IsDead(11@)
  not Char.DoesExist(11@)
  Char.IsRespondingToEvent(0@, 36)
goto_if_false @DEALER_639
11@ = -1

:DEALER_639
return 

:DEALER_641
Char.MarkAsNoLongerNeeded(11@)
if 
  not Char.IsDead(11@)
goto_if_false @DEALER_709
if 
  not Car.IsDead(12@)
goto_if_false @DEALER_709
if 
  not Car.IsOnFire(12@)
goto_if_false @DEALER_709
Task.CarDriveWander(11@, 12@, 20.0, DrivingMode.AvoidCars)

:DEALER_709
TIMERA = 0
11@ = -1
return 

:DEALER_725
if 
  not Char.IsDead(0@)
goto_if_false @DEALER_844
if 
  not Char.IsDead(11@)
goto_if_false @DEALER_844
3@, 4@, 5@ = Char.GetCoordinates(0@)
6@, 7@, 8@ = Char.GetCoordinates(11@)
9@ = Math.GetDistanceBetweenCoords2D(3@, 4@, 6@, 7@)
if 
  9@ > 2.0
goto_if_false @DEALER_837
13@ = 1
goto @DEALER_844

:DEALER_837
13@ = 0

:DEALER_844
return 

:DEALER_846
if 
  Streaming.HasModelLoaded(346)
goto_if_false @DEALER_929
if 
  not Char.HasGotWeapon(0@, WeaponType.Pistol)
goto_if_false @DEALER_929
Char.GiveWeapon(0@, WeaponType.Pistol, 1000)
if 
  15@ <> 1
goto_if_false @DEALER_922
Char.SetCurrentWeapon(0@, WeaponType.Unarmed)
goto @DEALER_929

:DEALER_922
Char.SetCurrentWeapon(0@, WeaponType.Pistol)

:DEALER_929
return 

:DEALER_931
switch_start 1@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @DEALER_1285 {caseNum1} 0 {caseLabel1} @DEALER_994 {caseNum2} 1 {caseLabel2} @DEALER_1151 {caseNum3} 2 {caseLabel3} @DEALER_1211 {caseNum4} 3 {caseLabel4} @DEALER_1271 {caseNum5} -1 {caseLabel5} @DEALER_1299 {caseNum6} -1 {caseLabel6} @DEALER_1299 {caseNum7} -1 {caseLabel7} @DEALER_1299

:DEALER_994
if 
  Conversation.IsPlayerInPosition(0@)
goto_if_false @DEALER_1038
2@ = 0
1@ = 3
gosub @DEALER_2884
goto @DEALER_1144

:DEALER_1038
if 
  11@ > -1
goto_if_false @DEALER_1137
gosub @DEALER_725
if 
  13@ == 0
goto_if_false @DEALER_1109
2@ = 0
1@ = 2
gosub @DEALER_2636
goto @DEALER_1130

:DEALER_1109
2@ = 0
1@ = 1
gosub @DEALER_1793

:DEALER_1130
goto @DEALER_1144

:DEALER_1137
gosub @DEALER_1301

:DEALER_1144
goto @DEALER_1299

:DEALER_1151
if 
  11@ > -1
goto_if_false @DEALER_1183
gosub @DEALER_1793
goto @DEALER_1204

:DEALER_1183
1@ = 0
2@ = 0
gosub @DEALER_1301

:DEALER_1204
goto @DEALER_1299

:DEALER_1211
if 
  11@ > -1
goto_if_false @DEALER_1243
gosub @DEALER_2636
goto @DEALER_1264

:DEALER_1243
1@ = 0
2@ = 0
gosub @DEALER_1301

:DEALER_1264
goto @DEALER_1299

:DEALER_1271
gosub @DEALER_2884
goto @DEALER_1299

:DEALER_1285
gosub @DEALER_3913
goto @DEALER_1299

:DEALER_1299
return 

:DEALER_1301
switch_start 2@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DEALER_1791 {caseNum1} 0 {caseLabel1} @DEALER_1364 {caseNum2} 1 {caseLabel2} @DEALER_1488 {caseNum3} 2 {caseLabel3} @DEALER_1758 {caseNum4} -1 {caseLabel4} @DEALER_1791 {caseNum5} -1 {caseLabel5} @DEALER_1791 {caseNum6} -1 {caseLabel6} @DEALER_1791 {caseNum7} -1 {caseLabel7} @DEALER_1791

:DEALER_1364
if 
  not Char.IsRespondingToEvent(0@, 36)
goto_if_false @DEALER_1481
Conversation.Enable(0@, True)
13@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_1481
Task.PlayAnim(0@, "DEALER_IDLE", "DEALER", 4.0, True, False, False, False, -1)
TIMERB = 0
14@ = 3000
2@ += 1

:DEALER_1481
goto @DEALER_1791

:DEALER_1488
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 14@
goto_if_false @DEALER_1751
Char.SetWantedByPolice(0@, False)
13@ = Math.RandomIntInRange(1, 15)
if 
  13@ > 5
goto_if_false @DEALER_1659
if 
  13@ > 10
goto_if_false @DEALER_1610
13@ = Char.GetScriptTaskStatus(0@, 1481)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_1603
Task.LookAbout(0@, -1)
14@ = 2000

:DEALER_1603
goto @DEALER_1652

:DEALER_1610
13@ = Char.GetScriptTaskStatus(0@, 1502)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_1652
Task.WanderStandard(0@)
14@ = 1500

:DEALER_1652
goto @DEALER_1737

:DEALER_1659
13@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_1737
Task.PlayAnim(0@, "DEALER_IDLE", "DEALER", 4.0, True, False, False, False, -1)
14@ = 3000

:DEALER_1737
TIMERB = 0
2@ += 1

:DEALER_1751
goto @DEALER_1791

:DEALER_1758
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 14@
goto_if_false @DEALER_1784
2@ = 1

:DEALER_1784
goto @DEALER_1791

:DEALER_1791
return 

:DEALER_1793
switch_start 2@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @DEALER_2634 {caseNum1} 0 {caseLabel1} @DEALER_1856 {caseNum2} 1 {caseLabel2} @DEALER_1907 {caseNum3} 2 {caseLabel3} @DEALER_2044 {caseNum4} 3 {caseLabel4} @DEALER_2074 {caseNum5} 4 {caseLabel5} @DEALER_2295 {caseNum6} 5 {caseLabel6} @DEALER_2505 {caseNum7} -1 {caseLabel7} @DEALER_2634

:DEALER_1856
Conversation.Enable(0@, False)
Task.LookAbout(0@, -1)
Task.GotoChar(11@, 0@, 20000, 1.0)
TIMERB = 0
2@ += 1
goto @DEALER_2634

:DEALER_1907
3@, 4@, 5@ = Char.GetCoordinates(0@)
6@, 7@, 8@ = Char.GetCoordinates(11@)
9@ = Math.GetDistanceBetweenCoords2D(3@, 4@, 6@, 7@)
Task.LookAtChar(0@, 11@, -1)
if 
  1.8 >= 9@
goto_if_false @DEALER_1997
2@ += 1
goto @DEALER_2037

:DEALER_1997
if 
  TIMERB > 20000
goto_if_false @DEALER_2037
gosub @DEALER_641
2@ = 0
1@ = 0

:DEALER_2037
goto @DEALER_2634

:DEALER_2044
Task.TurnCharToFaceChar(11@, 0@)
Task.TurnCharToFaceChar(0@, 11@)
2@ += 1
goto @DEALER_2634

:DEALER_2074
13@ = Char.GetScriptTaskStatus(11@, 1593)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2139
13@ = Char.GetScriptTaskStatus(11@, 1466)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2139
Task.StandStill(11@, -1)

:DEALER_2139
13@ = Char.GetScriptTaskStatus(0@, 1593)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2288
13@ = Char.GetScriptTaskStatus(0@, 1466)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2204
Task.StandStill(0@, -1)

:DEALER_2204
13@ = Char.GetScriptTaskStatus(11@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2288
13@ = Char.SetSayContext(11@, 83)
Task.PlayAnim(11@, "SHOP_PAY", "DEALER", 4.0, False, False, False, False, -1)
2@ += 1

:DEALER_2288
goto @DEALER_2634

:DEALER_2295
13@ = Char.GetScriptTaskStatus(11@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2498
Char.ClearLookAt(0@)
13@ = Char.GetScriptTaskStatus(11@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2404
Task.PlayAnim(11@, "DRUGS_BUY", "DEALER", 4.0, False, False, False, False, -1)
Char.SetWantedByPolice(11@, True)

:DEALER_2404
13@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2498
13@ = Char.SetSayContext(0@, 84)
Task.PlayAnim(0@, "DEALER_DEAL", "DEALER", 4.0, False, False, False, False, -1)
Char.SetWantedByPolice(0@, True)
2@ += 1

:DEALER_2498
goto @DEALER_2634

:DEALER_2505
13@ = Char.GetScriptTaskStatus(11@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2570
13@ = Char.GetScriptTaskStatus(11@, 1466)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2570
Task.StandStill(11@, -1)

:DEALER_2570
13@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2627
Char.SetDruggedUp(11@, True)
gosub @DEALER_641
2@ = 0
1@ = 0

:DEALER_2627
goto @DEALER_2634

:DEALER_2634
return 

:DEALER_2636
switch_start 2@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DEALER_2882 {caseNum1} 0 {caseLabel1} @DEALER_2699 {caseNum2} 1 {caseLabel2} @DEALER_2769 {caseNum3} 2 {caseLabel3} @DEALER_2825 {caseNum4} -1 {caseLabel4} @DEALER_2882 {caseNum5} -1 {caseLabel5} @DEALER_2882 {caseNum6} -1 {caseLabel6} @DEALER_2882 {caseNum7} -1 {caseLabel7} @DEALER_2882

:DEALER_2699
Conversation.Enable(0@, False)
3@, 4@, 5@ = Char.GetCoordinates(0@)
Task.LookAtChar(0@, 11@, -1)
Task.FollowFootsteps(0@, 11@)
13@ = Char.SetSayContext(0@, 84)
TIMERB = 0
2@ += 1
goto @DEALER_2882

:DEALER_2769
if 
  TIMERB > 6000
goto_if_false @DEALER_2818
Char.ClearLookAt(0@)
Task.FollowPathNodesToCoord(0@, 3@, 4@, 5@, 4, -2)
2@ += 1

:DEALER_2818
goto @DEALER_2882

:DEALER_2825
13@ = Char.GetScriptTaskStatus(0@, 1525)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2875
gosub @DEALER_641
2@ = 0
1@ = 0

:DEALER_2875
goto @DEALER_2882

:DEALER_2882
return 

:DEALER_2884
switch_start 2@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DEALER_3366 {caseNum1} 0 {caseLabel1} @DEALER_2947 {caseNum2} 1 {caseLabel2} @DEALER_2976 {caseNum3} 2 {caseLabel3} @DEALER_3178 {caseNum4} 3 {caseLabel4} @DEALER_3312 {caseNum5} -1 {caseLabel5} @DEALER_3366 {caseNum6} -1 {caseLabel6} @DEALER_3366 {caseNum7} -1 {caseLabel7} @DEALER_3366

:DEALER_2947
TIMERB = 0
Task.TurnCharToFaceChar(0@, $scplayer)
2@ += 1
goto @DEALER_3366

:DEALER_2976
if 
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @DEALER_3039
if and
  not Conversation.IsAtNode(0@, 'DEAL2')
  not Conversation.IsAtNode(0@, 'DEAL3')
goto_if_false @DEALER_3039
Text.PrintHelp('TALK_1')

:DEALER_3039
13@ = Char.GetScriptTaskStatus(0@, 1593)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_3128
Task.LookAtChar(0@, $scplayer, -1)
13@ = Char.GetScriptTaskStatus(0@, 1466)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_3114
Task.StandStill(0@, -2)

:DEALER_3114
2@ += 1
goto @DEALER_3171

:DEALER_3128
if or
  not Conversation.IsPlayerInPosition(0@)
  TIMERB > 15000
goto_if_false @DEALER_3171
Char.ClearLookAt(0@)
2@ = 0
1@ = 0

:DEALER_3171
goto @DEALER_3366

:DEALER_3178
if and
  Conversation.IsAtNode(0@, 'DEAL3')
  TIMERB > 9000
goto_if_false @DEALER_3220
Text.ClearHelp
gosub @DEALER_3368

:DEALER_3220
if and
  Conversation.IsAtNode(0@, 'DEAL2')
  TIMERB > 9000
goto_if_false @DEALER_3262
Text.ClearHelp
gosub @DEALER_3595

:DEALER_3262
if or
  not Conversation.IsPlayerInPosition(0@)
  TIMERB > 15000
goto_if_false @DEALER_3305
Char.ClearLookAt(0@)
2@ = 0
1@ = 0

:DEALER_3305
goto @DEALER_3366

:DEALER_3312
if 
  TIMERB > 2000
goto_if_false @DEALER_3359
DecisionMakerChar.ClearEventResponse($9452, 37)
Char.SetCurrentWeapon(0@, WeaponType.Unarmed)
2@ = 0
1@ = 0

:DEALER_3359
goto @DEALER_3366

:DEALER_3366
return 

:DEALER_3368
Text.ClearHelp
Char.ClearLookAt(0@)
Conversation.Enable(0@, False)
if 
  Char.HasGotWeapon(0@, WeaponType.Pistol)
goto_if_false @DEALER_3407
Char.SetCurrentWeapon(0@, WeaponType.Pistol)

:DEALER_3407
if 
  15@ <> 1
goto_if_false @DEALER_3593
15@ = 1
13@ = Stat.GetInt(StatId.RespectTotal)
if 
  13@ > 500
goto_if_false @DEALER_3529
Char.SetRelationship(0@, RelationshipType.Hate, PedType.Player1)
DecisionMakerChar.ClearEventResponse($9452, 36)
DecisionMakerChar.AddEventResponse($9452, 36, 927, 0.0, 100.0, 0.0, 0.0, True, True)
2@ = 0
1@ = 0
goto @DEALER_3593

:DEALER_3529
Char.SetRelationship(0@, RelationshipType.Hate, PedType.Player1)
DecisionMakerChar.ClearEventResponse($9452, 36)
DecisionMakerChar.AddEventResponse($9452, 36, 1000, 0.0, 100.0, 0.0, 0.0, True, True)
2@ = 0
1@ = 0

:DEALER_3593
return 

:DEALER_3595
Text.ClearHelp
Char.ClearLookAt(0@)
Conversation.Enable(0@, False)
13@ = Stat.GetInt(StatId.Respect)
if 
  15@ <> 2
goto_if_false @DEALER_3868
15@ = 2
if 
  13@ > 500
goto_if_false @DEALER_3738
Char.SetRelationship(0@, RelationshipType.Dislike, PedType.Player1)
Char.SetCurrentWeapon(0@, WeaponType.Unarmed)
DecisionMakerChar.ClearEventResponse($9452, 37)
DecisionMakerChar.AddEventResponse($9452, 37, 927, 0.0, 100.0, 0.0, 0.0, True, True)
2@ = 0
1@ = 0
goto @DEALER_3868

:DEALER_3738
Char.SetRelationship(0@, RelationshipType.Dislike, PedType.Player1)
DecisionMakerChar.ClearEventResponse($9452, 37)
if 
  Char.HasGotWeapon(0@, WeaponType.Pistol)
goto_if_false @DEALER_3820
Char.SetCurrentWeapon(0@, WeaponType.Pistol)
DecisionMakerChar.AddEventResponse($9452, 37, 1020, 0.0, 100.0, 0.0, 0.0, False, True)
goto @DEALER_3854

:DEALER_3820
DecisionMakerChar.AddEventResponse($9452, 37, 413, 0.0, 100.0, 0.0, 0.0, False, True)

:DEALER_3854
TIMERB = 0
2@ += 1

:DEALER_3868
return 

:DEALER_3870
16@ = Zone.GetDealerStrength(17@s)
if 
  16@ > 0
goto_if_false @DEALER_3903
16@ -= 1

:DEALER_3903
Zone.SetDealerStrength(17@s, 16@)
return 

:DEALER_3913
if 
  15@ == 1
goto_if_false @DEALER_3938
gosub @DEALER_3870

:DEALER_3938
Conversation.ClearForChar(0@)
if 
  11@ > -1
goto_if_false @DEALER_3966
Char.MarkAsNoLongerNeeded(11@)

:DEALER_3966
DecisionMaker.Remove($9452)
terminate_this_script 
return 
write_debug_with_int "PEDSTATE" {_p2} 1@
write_debug_with_int "SUBSTATESTATUS" {_p2} 2@
write_debug_with_int "TIMER_B" {_p2} TIMERB
write_debug_with_int "TIMER_A" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 20 (HOME_BRAINS)---------------

:HMLES
script_name 'HMLES'
$iMyDM = 0
$homeless_number = 0
$homeless_brain_flag = 0
2@ = 0
12@ = 0
13@ = 0
14@ = 0
11@ = 0
if 
  $iMyDM == 1
goto_if_false @HMLES_109
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:HMLES_109
$homeless_brain_flag = Math.RandomIntInRange(0, 4)
$homeless_brain_flag = 3
if 
  $fire_people_created <> 0
goto_if_false @HMLES_159
12@ = 1
terminate_this_script 
goto @HMLES_236

:HMLES_159
if 
  Char.DoesExist(0@)
goto_if_false @HMLES_229
if 
  not Char.IsDead(0@)
goto_if_false @HMLES_229
Char.ClearTasksImmediately(0@)
if 
  $homeless_brain_flag == 2
goto_if_false @HMLES_229
Char.SetAnimGroup(0@, "DRUNKMAN")

:HMLES_229
$fire_people_created = 1

:HMLES_236
wait 0
if and
  Char.DoesExist(0@)
  12@ == 0
goto_if_false @HMLES_3525
if and
  Player.IsPlaying($player1)
  not Char.IsDead(0@)
goto_if_false @HMLES_3518
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @HMLES_322
1@ = Char.StoreCarIsInNoSave($scplayer)
2@ = 1
goto @HMLES_329

:HMLES_322
2@ = 0

:HMLES_329
if 
  $iMyDM == 0
goto_if_false @HMLES_1945
if 
  $homeless_brain_flag == 0
goto_if_false @HMLES_463
if 
  Char.LocateAnyMeansChar3D($scplayer, 0@, 10.0, 10.0, 3.0, False)
goto_if_false @HMLES_463
if 
  Char.HasSpottedChar(0@, $scplayer)
goto_if_false @HMLES_463
17@ = Char.SetSayContext(0@, 27)
if 
  2@ == 0
goto_if_false @HMLES_456
Task.WalkAlongsideChar(0@, $scplayer)

:HMLES_456
$iMyDM = 1

:HMLES_463
if 
  $homeless_brain_flag == 1
goto_if_false @HMLES_1012
if 
  $homeless_number == 0
goto_if_false @HMLES_518
Streaming.RequestAnimation("SUNBATHE")
$homeless_number = 1

:HMLES_518
if 
  $homeless_number == 1
goto_if_false @HMLES_573
if 
  Streaming.HasAnimationLoaded("SUNBATHE")
goto_if_false @HMLES_573
$homeless_number = 2
goto @HMLES_573

:HMLES_573
if 
  $homeless_number == 2
goto_if_false @HMLES_1012
if 
  Streaming.HasAnimationLoaded("SUNBATHE")
goto_if_false @HMLES_1000
7@, 8@, 9@ = Char.GetCoordinates(0@)
3@ = Sequence.Open()
Task.PlayAnim(-1, "PARKSIT_M_IN", "SUNBATHE", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PARKSIT_M_IDLEB", "SUNBATHE", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PARKSIT_M_IDLEA", "SUNBATHE", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PARKSIT_M_IDLEC", "SUNBATHE", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PARKSIT_M_IDLEB", "SUNBATHE", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PARKSIT_M_IDLEC", "SUNBATHE", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PARKSIT_M_OUT", "SUNBATHE", 4.0, False, False, False, False, -1)
Task.WanderStandard(-1)
Sequence.Close(3@)
Char.PerformSequence(0@, 3@)
Sequence.Clear(3@)
11@ = 0
$iMyDM = 1
$homeless_number = 3
goto @HMLES_1012

:HMLES_1000
Streaming.RequestAnimation("SUNBATHE")

:HMLES_1012
if 
  $homeless_brain_flag == 2
goto_if_false @HMLES_1610
if 
  $homeless_number == 0
goto_if_false @HMLES_1079
Streaming.RequestAnimation("FOOD")
Streaming.RequestAnimation("VENDING")
Streaming.RequestModel(#CJ_JUICE_CAN)
$homeless_number = 1

:HMLES_1079
if 
  $homeless_number == 1
goto_if_false @HMLES_1185
if and
  Streaming.HasAnimationLoaded("FOOD")
  Streaming.HasAnimationLoaded("VENDING")
  Streaming.HasModelLoaded(#CJ_JUICE_CAN)
goto_if_false @HMLES_1185
7@, 8@, 9@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.3, 0.0)
19@ = Object.Create(#CJ_JUICE_CAN, 7@, 8@, 9@)
$homeless_number = 2

:HMLES_1185
if 
  $homeless_number == 2
goto_if_false @HMLES_1610
if 
  Streaming.HasAnimationLoaded("VENDING")
goto_if_false @HMLES_1599
if 
  Streaming.HasAnimationLoaded("FOOD")
goto_if_false @HMLES_1584
7@, 8@, 9@ = Char.GetCoordinates(0@)
3@ = Sequence.Open()
Task.PickUpObject(-1, 19@, 0.1, 0.1, 0.0, 5, 16, "NULL", "NULL", -1)
Task.PlayAnim(-1, "VEND_DRINK2_P", "VENDING", 1004.0, False, False, False, False, -1)
Task.PlayAnim(-1, "WALK_DRUNK", "PED", 1004.0, False, True, True, False, -1)
Task.PlayAnim(-1, "VEND_DRINK_P", "VENDING", 1004.0, False, False, False, False, -1)
Task.PlayAnim(-1, "WALK_DRUNK", "PED", 1004.0, False, True, True, False, -1)
Task.PlayAnim(-1, "VEND_DRINK2_P", "VENDING", 1004.0, False, False, False, False, -1)
Task.PlayAnim(-1, "EAT_VOMIT_P", "FOOD", 1004.0, False, False, False, False, -1)
Task.WanderStandard(-1)
Sequence.Close(3@)
Char.PerformSequence(0@, 3@)
Sequence.Clear(3@)
$iMyDM = 1
$homeless_number = 3
goto @HMLES_1592

:HMLES_1584
Streaming.RequestAnimation("FOOD")

:HMLES_1592
goto @HMLES_1610

:HMLES_1599
Streaming.RequestAnimation("VENDING")

:HMLES_1610
if 
  $homeless_brain_flag == 3
goto_if_false @HMLES_1945
if 
  $homeless_number == 0
goto_if_false @HMLES_1665
Streaming.RequestAnimation("PAULNMAC")
$homeless_number = 1

:HMLES_1665
if 
  $homeless_number == 1
goto_if_false @HMLES_1713
if 
  Streaming.HasAnimationLoaded("PAULNMAC")
goto_if_false @HMLES_1713
$homeless_number = 2

:HMLES_1713
if 
  $homeless_number == 2
goto_if_false @HMLES_1945
if 
  Streaming.HasAnimationLoaded("PAULNMAC")
goto_if_false @HMLES_1933
7@, 8@, 9@ = Char.GetCoordinates(0@)
3@ = Sequence.Open()
Task.PlayAnim(-1, "PISS_IN", "PAULNMAC", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PISS_LOOP", "PAULNMAC", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "PISS_OUT", "PAULNMAC", 4.0, False, False, False, False, -1)
Task.WanderStandard(-1)
Sequence.Close(3@)
Char.PerformSequence(0@, 3@)
Sequence.Clear(3@)
$iMyDM = 1
$homeless_number = 3
goto @HMLES_1945

:HMLES_1933
Streaming.RequestAnimation("PAULNMAC")

:HMLES_1945
if 
  $iMyDM == 1
goto_if_false @HMLES_2069
if 
  $homeless_brain_flag == 0
goto_if_false @HMLES_1992
17@ = Char.SetSayContext(0@, 191)

:HMLES_1992
if 
  $homeless_brain_flag == 1
goto_if_false @HMLES_2021
17@ = Char.SetSayContext(0@, 191)

:HMLES_2021
if 
  $homeless_brain_flag == 2
goto_if_false @HMLES_2039

:HMLES_2039
if 
  $homeless_brain_flag == 3
goto_if_false @HMLES_2057

:HMLES_2057
4@ = Clock.GetGameTimer()
$iMyDM = 2

:HMLES_2069
if 
  $iMyDM == 2
goto_if_false @HMLES_2717
if 
  $homeless_brain_flag == 0
goto_if_false @HMLES_2217
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @HMLES_2217
5@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 6@ = 5@
sub_int_lvar_from_int_lvar 6@ -= 4@
if and
  6@ > 8000
  10000 > 6@
goto_if_false @HMLES_2206
17@ = Char.SetSayContext(0@, 197)
Task.KillCharOnFoot(0@, $scplayer)
$fire_people_created = 0
12@ = 1
goto @HMLES_2217

:HMLES_2206
17@ = Char.SetSayContext(0@, 191)

:HMLES_2217
if 
  $homeless_brain_flag == 1
goto_if_false @HMLES_2381
16@ = Char.GetScriptTaskStatus(0@, 1560)
if 
  is_int_lvar_equal_to_constant 16@ == 1
goto_if_false @HMLES_2381
16@ = Char.GetSequenceProgress(0@)
if 
  16@ > 6
goto_if_false @HMLES_2381
if 
  11@ == 0
goto_if_false @HMLES_2327
11@ = 1
4@ = Clock.GetGameTimer()
goto @HMLES_2381

:HMLES_2327
5@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 6@ = 5@
sub_int_lvar_from_int_lvar 6@ -= 4@
if 
  6@ > 15000
goto_if_false @HMLES_2381
$iMyDM = 0
$homeless_number = 0

:HMLES_2381
if 
  $homeless_brain_flag == 2
goto_if_false @HMLES_2553
16@ = Char.GetScriptTaskStatus(0@, 1560)
if 
  is_int_lvar_equal_to_constant 16@ == 1
goto_if_false @HMLES_2553
if 
  Char.IsPlayingAnim(0@, "EAT_VOMIT_P")
goto_if_false @HMLES_2553
7@, 8@, 9@ = Char.GetOffsetInWorldCoords(0@, 0.355, -0.116, 0.048)
10@ = Char.GetAnimCurrentTime(0@, "EAT_VOMIT_P")
15@ = Particle.Create("PUKE", 7@, 8@, 9@, 1)
10@ = 0.0
11@ = 0
$iMyDM = 3

:HMLES_2553
if 
  $homeless_brain_flag == 3
goto_if_false @HMLES_2717
16@ = Char.GetScriptTaskStatus(0@, 1560)
if 
  is_int_lvar_equal_to_constant 16@ == 1
goto_if_false @HMLES_2717
if 
  Char.IsPlayingAnim(0@, "PISS_IN")
goto_if_false @HMLES_2717
10@ = Char.GetAnimCurrentTime(0@, "PISS_IN")
15@ = Particle.CreateOnCharWithDirection("PETROLCAN", 0@, 0.0, 0.58, -0.08, 0.0, 0.01, 0.0, 1)
10@ = 0.0
11@ = 0
$iMyDM = 3

:HMLES_2717
if 
  $iMyDM == 3
goto_if_false @HMLES_3468
if 
  $homeless_brain_flag == 0
goto_if_false @HMLES_2753

:HMLES_2753
if 
  $homeless_brain_flag == 1
goto_if_false @HMLES_2771

:HMLES_2771
if 
  $homeless_brain_flag == 2
goto_if_false @HMLES_2993
if 
  10@ <> 1.0
goto_if_false @HMLES_2969
if 
  not Char.IsDead(0@)
goto_if_false @HMLES_2883
if 
  Char.IsPlayingAnim(0@, "EAT_VOMIT_P")
goto_if_false @HMLES_2876
10@ = Char.GetAnimCurrentTime(0@, "EAT_VOMIT_P")

:HMLES_2876
goto @HMLES_2893

:HMLES_2883
10@ = 1.0

:HMLES_2893
if 
  11@ == 0
goto_if_false @HMLES_2962
if 
  10@ >= 0.5
goto_if_false @HMLES_2962
if 
  15@ <> -1
goto_if_false @HMLES_2955
Particle.Play(15@)

:HMLES_2955
11@ = 1

:HMLES_2962
goto @HMLES_2993

:HMLES_2969
Particle.Stop(15@)
Particle.Kill(15@)
$fire_people_created = 0
12@ = 1

:HMLES_2993
if 
  $homeless_brain_flag == 3
goto_if_false @HMLES_3468
if 
  2 > 11@
goto_if_false @HMLES_3199
16@ = Char.GetScriptTaskStatus(0@, 1560)
if 
  is_int_lvar_equal_to_constant 16@ == 7
goto_if_false @HMLES_3114
if 
  11@ == 1
goto_if_false @HMLES_3093
Particle.Stop(15@)
Particle.Kill(15@)
11@ = 2

:HMLES_3093
$fire_people_created = 0
12@ = 1
goto @HMLES_3199

:HMLES_3114
if 
  is_int_lvar_equal_to_constant 16@ == 1
goto_if_false @HMLES_3182
16@ = Char.GetSequenceProgress(0@)
if 
  16@ > 2
goto_if_false @HMLES_3175
Particle.Stop(15@)
Particle.Kill(15@)
11@ = 2

:HMLES_3175
goto @HMLES_3199

:HMLES_3182
Particle.Stop(15@)
Particle.Kill(15@)
11@ = 2

:HMLES_3199
if 
  11@ == 0
goto_if_false @HMLES_3368
if 
  not Char.IsDead(0@)
goto_if_false @HMLES_3282
if 
  Char.IsPlayingAnim(0@, "PISS_IN")
goto_if_false @HMLES_3275
10@ = Char.GetAnimCurrentTime(0@, "PISS_IN")

:HMLES_3275
goto @HMLES_3292

:HMLES_3282
10@ = 1.0

:HMLES_3292
if 
  11@ == 0
goto_if_false @HMLES_3361
if 
  10@ >= 0.6
goto_if_false @HMLES_3361
if 
  15@ <> -1
goto_if_false @HMLES_3354
Particle.Play(15@)

:HMLES_3354
11@ = 1

:HMLES_3361
goto @HMLES_3468

:HMLES_3368
if 
  11@ == 1
goto_if_false @HMLES_3468
if 
  Char.IsPlayingAnim(0@, "PISS_OUT")
goto_if_false @HMLES_3468
10@ = Char.GetAnimCurrentTime(0@, "PISS_OUT")
if 
  10@ >= 0.42
goto_if_false @HMLES_3468
Particle.Stop(15@)
Particle.Kill(15@)
11@ = 2

:HMLES_3468
if 
  not Char.LocateAnyMeansChar3D($scplayer, 0@, 30.0, 30.0, 20.0, False)
goto_if_false @HMLES_3518
$fire_people_created = 0
12@ = 1

:HMLES_3518
goto @HMLES_3539

:HMLES_3525
$fire_people_created = 0
12@ = 1

:HMLES_3539
if 
  Char.IsDead(0@)
goto_if_false @HMLES_3569
12@ = 1
$fire_people_created = 0

:HMLES_3569
if 
  12@ == 1
goto_if_false @HMLES_3694
if 
  Char.DoesExist(0@)
goto_if_false @HMLES_3624
if 
  not Char.IsDead(0@)
goto_if_false @HMLES_3624
Task.WanderStandard(0@)

:HMLES_3624
Particle.Stop(15@)
Particle.Kill(15@)
Char.MarkAsNoLongerNeeded(0@)
Streaming.MarkModelAsNoLongerNeeded(#CJ_JUICE_CAN)
Object.MarkAsNoLongerNeeded(19@)
Streaming.RemoveAnimation("FOOD")
Streaming.RemoveAnimation("VENDING")
Streaming.RemoveAnimation("SUNBATHE")
Streaming.RemoveAnimation("PAULNMAC")
terminate_this_script 

:HMLES_3694
goto @HMLES_236
terminate_this_script 

//-------------External script 21 (POOL_SCRIPT)---------------

:POOL
script_name 'POOL'
if 
  $pool_max_bet == 0
goto_if_false @POOL_84
if 
  $onmission == 0
goto_if_false @POOL_75
$pool_max_bet = 1
$homeless_waiting_flag = 0
$active_pool_table = 0
goto @POOL_77

:POOL_75
terminate_this_script 

:POOL_77
goto @POOL_86

:POOL_84
terminate_this_script 

:POOL_86
3@ = 0

:POOL_93
wait 0
if 
  3@ == -1
goto_if_false @POOL_251
0@ = Object.Create(#K_POOLTABLESM, 0.0, 0.0, 0.0)
1@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
2@ = Object.Create(#K_POOLTABLESM, 0.0, 0.0, 0.0)
$active_pool_table = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
$homeless_waiting_flag = Object.Create(#K_POOLTABLESM, 0.0, 0.0, 0.0)
$active_pool_opponent = Object.Create(#K_POOLTABLESM, 0.0, 0.0, 0.0)

:POOL_251
if 
  3@ == 0
goto_if_false @POOL_474
if 
  Player.IsPlaying($player1)
goto_if_false @POOL_467
if 
  Player.CanStartMission($player1)
goto_if_false @POOL_453
if 
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @POOL_439
5@ = Math.RandomIntInRange(0, 2)
if 
  5@ == 0
goto_if_false @POOL_360
set_lvar_int_to_constant 7@ = 66
goto @POOL_367

:POOL_360
set_lvar_int_to_constant 7@ = 67

:POOL_367
Streaming.RequestModel(7@)
Streaming.RequestAnimation("POOL")
Streaming.RequestModel(338)

:POOL_385
if or
  not Streaming.HasModelLoaded(7@)
  not Streaming.HasAnimationLoaded("POOL")
  not Streaming.HasModelLoaded(338)
goto_if_false @POOL_425
wait 0
goto @POOL_385

:POOL_425
3@ += 1
goto @POOL_446

:POOL_439
gosub @POOL_2110

:POOL_446
goto @POOL_460

:POOL_453
gosub @POOL_2110

:POOL_460
goto @POOL_474

:POOL_467
gosub @POOL_2110

:POOL_474
if 
  3@ == 1
goto_if_false @POOL_1183
if 
  Player.IsPlaying($player1)
goto_if_false @POOL_1176
if 
  Player.CanStartMission($player1)
goto_if_false @POOL_1162
if 
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @POOL_1148
if 
  Object.DoesExist(0@)
goto_if_false @POOL_1134
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0219, -1.1236, 0.5363)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
if 
  not Char.DoesExist(1@)
goto_if_false @POOL_804
if 
  not Char.DoesExist($active_pool_table)
goto_if_false @POOL_688
1@ = Char.Create(PedType.CivMale, 7@, $x, $y, $z)
Char.SetDecisionMaker(1@, $iGlobalPedPanicDM)
Streaming.MarkModelAsNoLongerNeeded(7@)
$heading = Object.GetHeading(0@)
Char.SetHeading(1@, $heading)
goto @POOL_797

:POOL_688
if 
  not Char.IsDead($active_pool_table)
goto_if_false @POOL_749
set_lvar_int_to_var_int 1@ = $active_pool_table
Char.SetCoordinates(1@, $x, $y, $z)
$heading = Object.GetHeading(0@)
Char.SetHeading(1@, $heading)
goto @POOL_797

:POOL_749
1@ = Char.Create(PedType.CivMale, 7@, $x, $y, $z)
Char.SetDecisionMaker(1@, $iGlobalPedPanicDM)
Streaming.MarkModelAsNoLongerNeeded(7@)
$heading = Object.GetHeading(0@)
Char.SetHeading(1@, $heading)

:POOL_797
goto @POOL_850

:POOL_804
if 
  not Char.IsDead(1@)
goto_if_false @POOL_850
Char.SetCoordinates(1@, $x, $y, $z)
$heading = Object.GetHeading(0@)
Char.SetHeading(1@, $heading)

:POOL_850
if 
  not Object.DoesExist(2@)
goto_if_false @POOL_888
2@ = Object.Create(#K_POOLQ, 0.0, 0.0, 0.0)

:POOL_888
if 
  not Char.IsDead(1@)
goto_if_false @POOL_964
if 
  not Char.IsHoldingObject(1@, 2@)
goto_if_false @POOL_964
Task.PickUpObject(1@, 2@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 1)

:POOL_964
6@ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "POOL_CHALKCUE", "POOL", 4.0, False, False, False, True, -1)
if 
  Player.IsPlaying($player1)
goto_if_false @POOL_1035
Task.LookAtChar(-1, $scplayer, 9000)

:POOL_1035
Task.PlayAnimNonInterruptable(-1, "POOL_IDLE_STANCE", "POOL", 4.0, False, True, True, False, 10000)
Sequence.SetToRepeat(6@, True)
Sequence.Close(6@)
if 
  not Char.IsDead(1@)
goto_if_false @POOL_1115
Char.PerformSequence(1@, 6@)

:POOL_1115
Sequence.Clear(6@)
3@ += 1
goto @POOL_1141

:POOL_1134
gosub @POOL_2110

:POOL_1141
goto @POOL_1155

:POOL_1148
gosub @POOL_2110

:POOL_1155
goto @POOL_1169

:POOL_1162
gosub @POOL_2110

:POOL_1169
goto @POOL_1183

:POOL_1176
gosub @POOL_2110

:POOL_1183
if 
  3@ == 2
goto_if_false @POOL_1721
if 
  $onmission == 0
goto_if_false @POOL_1693
if 
  Player.IsPlaying($player1)
goto_if_false @POOL_1679
if 
  $fFunTemp == 0
goto_if_false @POOL_1644
if 
  Object.DoesExist(0@)
goto_if_false @POOL_1630
if 
  not Char.IsDead(1@)
goto_if_false @POOL_1616
if 
  Char.HasBeenDamagedByChar(1@, $scplayer)
goto_if_false @POOL_1364
Char.ClearTasks(1@)
Char.DropObject(1@, False)
Object.Delete(2@)
Char.GiveWeapon(1@, WeaponType.PoolCue, 99999)
Task.KillCharOnFoot(1@, $scplayer)
Text.ClearHelp
4@ = 0
goto @POOL_2001
goto @POOL_1609

:POOL_1364
if 
  Char.LocateOnFootChar3D(1@, $scplayer, 1.5, 1.5, 1.5, False)
goto_if_false @POOL_1582
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @POOL_1539
5@ = Player.StoreScore($player1)
if 
  50 > 5@
goto_if_false @POOL_1466
Text.PrintNow('NOCASH', 3000, 1)
goto @POOL_1532

:POOL_1466
if 
  4@ == 1
goto_if_false @POOL_1494
Text.ClearHelp
set_lvar_int_to_var_int 4@ = $onmission

:POOL_1494
set_var_int_to_lvar_int $homeless_waiting_flag = 0@
set_var_int_to_lvar_int $active_pool_table = 1@
set_var_int_to_lvar_int $active_pool_opponent = 2@
$load_and_launch_mission_if_poss = 5
3@ += 1

:POOL_1532
goto @POOL_1575

:POOL_1539
if 
  4@ == 0
goto_if_false @POOL_1575
Text.PrintHelpForever('POOL_A')
4@ = 1

:POOL_1575
goto @POOL_1609

:POOL_1582
if 
  4@ == 1
goto_if_false @POOL_1609
Text.ClearHelp
4@ = 0

:POOL_1609
goto @POOL_1623

:POOL_1616
goto @POOL_2001

:POOL_1623
goto @POOL_1637

:POOL_1630
goto @POOL_2001

:POOL_1637
goto @POOL_1672

:POOL_1644
if 
  not Char.IsDead(1@)
goto_if_false @POOL_1665
Char.ClearTasks(1@)

:POOL_1665
goto @POOL_2001

:POOL_1672
goto @POOL_1686

:POOL_1679
goto @POOL_2001

:POOL_1686
goto @POOL_1721

:POOL_1693
if 
  not Char.IsDead(1@)
goto_if_false @POOL_1714
Char.ClearTasks(1@)

:POOL_1714
goto @POOL_2001

:POOL_1721
if 
  3@ == 3
goto_if_false @POOL_1764
if 
  $onmission == 1
goto_if_false @POOL_1764
3@ += 1

:POOL_1764
if 
  3@ == 4
goto_if_false @POOL_1896
if 
  $onmission == 0
goto_if_false @POOL_1896
if 
  Player.IsPlaying($player1)
goto_if_false @POOL_1896
if 
  Player.CanStartMission($player1)
goto_if_false @POOL_1896
if 
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @POOL_1896
if 
  Object.DoesExist(0@)
goto_if_false @POOL_1896
if 
  not Char.IsDead(1@)
goto_if_false @POOL_1896
3@ = 1
goto @POOL_474

:POOL_1896
if 
  Player.IsPlaying($player1)
goto_if_false @POOL_1987
if 
  Object.DoesExist(0@)
goto_if_false @POOL_1973
if 
  not Char.LocateAnyMeansObject2D($scplayer, 0@, 80.0, 80.0, False)
goto_if_false @POOL_1966
goto @POOL_2001

:POOL_1966
goto @POOL_1980

:POOL_1973
goto @POOL_2001

:POOL_1980
goto @POOL_1994

:POOL_1987
goto @POOL_2001

:POOL_1994
goto @POOL_93

:POOL_2001
if 
  Player.IsPlaying($player1)
goto_if_false @POOL_2092
if 
  Object.DoesExist(0@)
goto_if_false @POOL_2078
if 
  not Char.LocateAnyMeansObject2D($scplayer, 0@, 80.0, 80.0, False)
goto_if_false @POOL_2071
gosub @POOL_2110

:POOL_2071
goto @POOL_2085

:POOL_2078
gosub @POOL_2110

:POOL_2085
goto @POOL_2099

:POOL_2092
gosub @POOL_2110

:POOL_2099
wait 0
goto @POOL_2001

:POOL_2110
if 
  4@ == 1
goto_if_false @POOL_2130
Text.ClearHelp

:POOL_2130
Text.ClearThisPrint('NOCASH')
Char.MarkAsNoLongerNeeded(1@)
Object.Delete(2@)
Streaming.MarkModelAsNoLongerNeeded(7@)
Streaming.RemoveAnimation("POOL")
Streaming.MarkModelAsNoLongerNeeded(338)
$pool_max_bet = 0
$homeless_waiting_flag = 0
$active_pool_table = 0
terminate_this_script 
return 
terminate_this_script 

//-------------External script 22 (LOWR_CONT)---------------

:LOWRCON
script_name 'LOWRCON'
1@ = 0
if 
  1@ == -1
goto_if_false @LOWRCON_83
0@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
4@ = Car.Create(413, 0.0, 0.0, 0.0)

:LOWRCON_83
2@ = 0

:LOWRCON_90
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @LOWRCON_1753
if or
  $onmission == 0
  2@ == 1
goto_if_false @LOWRCON_1739
if 
  Char.LocateAnyMeans2D($scplayer, 1812.369, -1929.922, 100.0, 100.0, False)
goto_if_false @LOWRCON_1725
if 
  Char.DoesExist(0@)
goto_if_false @LOWRCON_212
if 
  Char.IsDead(0@)
goto_if_false @LOWRCON_212
goto @LOWRCON_1767

:LOWRCON_212
switch_start 1@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWRCON_1718 {caseNum1} 0 {caseLabel1} @LOWRCON_340 {caseNum2} 1 {caseLabel2} @LOWRCON_480 {caseNum3} 2 {caseLabel3} @LOWRCON_726 {caseNum4} 3 {caseLabel4} @LOWRCON_787 {caseNum5} 4 {caseLabel5} @LOWRCON_904 {caseNum6} 5 {caseLabel6} @LOWRCON_1125 {caseNum7} 6 {caseLabel7} @LOWRCON_1221
switch_continued 7 {caseLabel1} @LOWRCON_1338 {caseNum2} 8 {caseLabel2} @LOWRCON_1506 {caseNum3} 9 {caseLabel3} @LOWRCON_1646 {caseNum4} -1 {caseLabel4} @LOWRCON_1718 {caseNum5} -1 {caseLabel5} @LOWRCON_1718 {caseNum6} -1 {caseLabel6} @LOWRCON_1718 {caseNum7} -1 {caseLabel7} @LOWRCON_1718 {caseNum8} -1 {caseLabel8} @LOWRCON_1718 {caseNum9} -1 {caseLabel9} @LOWRCON_1718

:LOWRCON_340
Streaming.RequestModel(50)

:LOWRCON_344
if 
  not Streaming.HasModelLoaded(50)
goto_if_false @LOWRCON_370
wait 0
goto @LOWRCON_344

:LOWRCON_370
3@ = DecisionMakerChar.Copy(65542)
0@ = Char.Create(PedType.Mission1, 50, 1812.369, -1929.922, 12.5486)
Char.SetHeading(0@, 270.0)
Char.SetOnlyDamagedByPlayer(0@, True)
Char.SetDecisionMaker(0@, 3@)
if 
  Player.IsPlaying($player1)
goto_if_false @LOWRCON_455
Task.LookAtChar(0@, $scplayer, -2)

:LOWRCON_455
Streaming.MarkModelAsNoLongerNeeded(50)
Char.FreezePosition(0@, True)
1@ += 1
goto @LOWRCON_1718

:LOWRCON_480
if 
  not Char.IsDead(0@)
goto_if_false @LOWRCON_719
if 
  Char.LocateOnFoot3D(0@, 1813.369, -1929.922, 12.5486, 1.2, 1.2, 2.0, False)
goto_if_false @LOWRCON_719
if 
  not Char.IsDead(0@)
goto_if_false @LOWRCON_589
$x, $y, $z = Char.GetOffsetInWorldCoords(0@, 0.0, 1.0, 0.0)

:LOWRCON_589
if 
  not Char.IsDead(0@)
goto_if_false @LOWRCON_639
if 
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @LOWRCON_639
Task.KillCharOnFoot(0@, $scplayer)
goto @LOWRCON_1767

:LOWRCON_639
if 
  Char.LocateStoppedOnFoot3D($scplayer, $x, $y, $z, 0.7, 0.7, 1.2, True)
goto_if_false @LOWRCON_719
Player.SetControl($player1, False)
if 
  not Char.IsDead(0@)
goto_if_false @LOWRCON_712
Task.TurnCharToFaceChar($scplayer, 0@)

:LOWRCON_712
1@ += 1

:LOWRCON_719
goto @LOWRCON_1718

:LOWRCON_726
if 
  not Char.IsDead(0@)
goto_if_false @LOWRCON_780
if 
  Player.IsPlaying($player1)
goto_if_false @LOWRCON_768
Task.LookAtChar(0@, $scplayer, -2)

:LOWRCON_768
Char.ClearTasks(0@)
1@ += 1

:LOWRCON_780
goto @LOWRCON_1718

:LOWRCON_787
if 
  not Char.IsDead(0@)
goto_if_false @LOWRCON_840
Task.PlayAnim(0@, "IDLE_CHAT", "PED", 4.0, False, False, False, False, 2000)

:LOWRCON_840
set_var_text_label s$audio_string = 'MEC_HI'
set_var_int_to_constant $audio_sound_file = 35607
start_new_script @AUDIOL 0@ 0 1 1 0 
TIMERA = 0
1@ += 1
goto @LOWRCON_1718

:LOWRCON_904
if 
  TIMERA > 1000
goto_if_false @LOWRCON_1118
if 
  $audio_line_is_active == 0
goto_if_false @LOWRCON_1118
Text.PrintHelpForever('TALK_1')
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @LOWRCON_1040
set_var_text_label s$audio_string = 'SYN2_LO'
set_var_int_to_constant $audio_sound_file = 8653
start_new_script @AUDIOL $scplayer 0 1 1 0 
Text.ClearHelp
TIMERA = 0
2@ = 1
1@ += 1
goto @LOWRCON_1118

:LOWRCON_1040
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @LOWRCON_1118
set_var_text_label s$audio_string = 'VOFFE1N'
set_var_int_to_constant $audio_sound_file = 42641
start_new_script @AUDIOL $scplayer 0 1 1 0 
Text.ClearHelp
TIMERA = 0
Camera.Restore
1@ += 2

:LOWRCON_1118
goto @LOWRCON_1718

:LOWRCON_1125
if 
  TIMERA > 1000
goto_if_false @LOWRCON_1214
if 
  $audio_line_is_active == 0
goto_if_false @LOWRCON_1214
Camera.DoFade(150, Fade.Out)

:LOWRCON_1169
if 
  Camera.GetFadingStatus
goto_if_false @LOWRCON_1193
wait 0
goto @LOWRCON_1169

:LOWRCON_1193
$lowrider_meeting_is_loaded = 0
$load_and_launch_mission_if_poss = 6
1@ += 2

:LOWRCON_1214
goto @LOWRCON_1718

:LOWRCON_1221
if 
  TIMERA > 1000
goto_if_false @LOWRCON_1331
if 
  $audio_line_is_active == 0
goto_if_false @LOWRCON_1331
if 
  Player.IsPlaying($player1)
goto_if_false @LOWRCON_1281
Player.SetControl($player1, True)

:LOWRCON_1281
set_var_text_label s$audio_string = 'MEC_N'
set_var_int_to_constant $audio_sound_file = 35608
start_new_script @AUDIOL 0@ 1 1 1 0 
goto @LOWRCON_1767

:LOWRCON_1331
goto @LOWRCON_1718

:LOWRCON_1338
if 
  $lowrider_meeting_is_loaded == 1
goto_if_false @LOWRCON_1499
Camera.SetFixedPosition(1815.894, -1932.708, 15.2576, 0.0, 0.0, 0.0)
Camera.PointAtPoint(1815.094, -1932.212, 14.9195, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
Camera.DoFade(150, Fade.In)

:LOWRCON_1418
if 
  Camera.GetFadingStatus
goto_if_false @LOWRCON_1442
wait 0
goto @LOWRCON_1418

:LOWRCON_1442
set_var_text_label s$audio_string = 'MEC_Y'
set_var_int_to_constant $audio_sound_file = 35609
start_new_script @AUDIOL 0@ 0 1 1 0 
TIMERA = 0
1@ += 1

:LOWRCON_1499
goto @LOWRCON_1718

:LOWRCON_1506
if 
  TIMERA > 1000
goto_if_false @LOWRCON_1639
if 
  Player.IsPlaying($player1)
goto_if_false @LOWRCON_1639
Camera.ResetNewScriptables
Camera.SetVectorMove(1815.894, -1932.708, 15.2576, 1813.444, -1932.063, 18.552, 3000, True)
Camera.SetVectorTrack(1815.094, -1932.212, 14.9195, 1812.689, -1931.438, 18.3523, 3000, True)
Camera.PersistTrack(True)
Camera.PersistPos(True)
TIMERA = 0
1@ += 1

:LOWRCON_1639
goto @LOWRCON_1718

:LOWRCON_1646
if or
  TIMERA > 5000
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @LOWRCON_1711
if 
  Player.IsPlaying($player1)
goto_if_false @LOWRCON_1711
Camera.ResetNewScriptables
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
goto @LOWRCON_1767

:LOWRCON_1711
goto @LOWRCON_1718

:LOWRCON_1718
goto @LOWRCON_1732

:LOWRCON_1725
goto @LOWRCON_1767

:LOWRCON_1732
goto @LOWRCON_1746

:LOWRCON_1739
goto @LOWRCON_1767

:LOWRCON_1746
goto @LOWRCON_1760

:LOWRCON_1753
goto @LOWRCON_1767

:LOWRCON_1760
goto @LOWRCON_90

:LOWRCON_1767
if 
  not Char.IsDead(0@)
goto_if_false @LOWRCON_1800
Char.FreezePosition(0@, False)
Char.ClearLookAt(0@)
Task.WanderStandard(0@)

:LOWRCON_1800
Char.MarkAsNoLongerNeeded(0@)
Car.MarkAsNoLongerNeeded(4@)
Streaming.RemoveAnimation("GANGS")
Streaming.MarkModelAsNoLongerNeeded(50)
2@ = 0
DecisionMaker.Remove(3@)
terminate_this_script 
terminate_this_script 

//-------------External script 23 (BURG_BRAINS)---------------

:BURGLAR
script_name 'BURGLAR'
1@ = 0
5@ = 0
4@ = 0
7@ = 0
8@ = 0
14@ = 0
15@ = 0
if 
  1@ == 1
goto_if_false @BURGLAR_132
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)
$gym_day_fitness = DecisionMakerChar.CopyShared(65542)
$burglary_male_decision = DecisionMakerChar.CopyShared(65542)
$burglary_female_decision = DecisionMakerChar.CopyShared(65542)

:BURGLAR_132
2@ = Math.RandomIntInRange(0, 6)
if 
  2@ == 2
goto_if_false @BURGLAR_168
3@ = Math.RandomIntInRange(0, 6)

:BURGLAR_168
wait 0
if and
  Char.DoesExist(0@)
  5@ == 0
goto_if_false @BURGLAR_5624
if and
  Player.IsPlaying($player1)
  not Char.IsDead(0@)
goto_if_false @BURGLAR_5610
if 
  15@ == 0
goto_if_false @BURGLAR_550
13@ = Char.GetPedType(0@)
14@ = 1
if 
  not is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BURGLAR_527
if 
  not is_int_lvar_equal_to_constant 13@ == 9
goto_if_false @BURGLAR_504
if 
  not is_int_lvar_equal_to_constant 13@ == 10
goto_if_false @BURGLAR_481
if 
  not is_int_lvar_equal_to_constant 13@ == 11
goto_if_false @BURGLAR_458
if 
  not is_int_lvar_equal_to_constant 13@ == 12
goto_if_false @BURGLAR_435
if 
  not is_int_lvar_equal_to_constant 13@ == 13
goto_if_false @BURGLAR_412
if 
  not is_int_lvar_equal_to_constant 13@ == 14
goto_if_false @BURGLAR_389
14@ = 0
goto @BURGLAR_405

:BURGLAR_389
13@ = Char.SetSayContextImportant(0@, 7, True, False, False)

:BURGLAR_405
goto @BURGLAR_428

:BURGLAR_412
13@ = Char.SetSayContextImportant(0@, 5, True, False, False)

:BURGLAR_428
goto @BURGLAR_451

:BURGLAR_435
13@ = Char.SetSayContextImportant(0@, 6, True, False, False)

:BURGLAR_451
goto @BURGLAR_474

:BURGLAR_458
13@ = Char.SetSayContextImportant(0@, 8, True, False, False)

:BURGLAR_474
goto @BURGLAR_497

:BURGLAR_481
13@ = Char.SetSayContextImportant(0@, 2, True, False, False)

:BURGLAR_497
goto @BURGLAR_520

:BURGLAR_504
13@ = Char.SetSayContextImportant(0@, 3, True, False, False)

:BURGLAR_520
goto @BURGLAR_543

:BURGLAR_527
13@ = Char.SetSayContextImportant(0@, 1, True, False, False)

:BURGLAR_543
15@ = 1

:BURGLAR_550
if 
  not Char.IsHoldingObject($scplayer, -1)
goto_if_false @BURGLAR_2056
if 
  8@ <> 1
goto_if_false @BURGLAR_2049
if 
  14@ == 0
goto_if_false @BURGLAR_1686
if 
  Char.IsMale(0@)
goto_if_false @BURGLAR_1221
DecisionMaker.Remove($gym_day_fitness)
$gym_day_fitness = DecisionMakerChar.CopyShared(65542)
if 
  $gym_day_fitness <> -1
goto_if_false @BURGLAR_661
Char.SetDecisionMaker(0@, $gym_day_fitness)

:BURGLAR_661
Char.SetRelationship(0@, RelationshipType.Dislike, PedType.Player1)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 37, 1029, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 37, 413, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 31, 1000, 0.0, 100.0, 20.0, 20.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 31, 413, 0.0, 100.0, 40.0, 40.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 36, 1000, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 36, 1029, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 36, 413, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 9, 251, 0.0, 100.0, 10.0, 10.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 9, 1000, 0.0, 100.0, 20.0, 20.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 9, 427, 0.0, 100.0, 70.0, 70.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 11, 600, 0.0, 100.0, 100.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 15, 415, 0.0, 100.0, 50.0, 50.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 15, 1000, 0.0, 100.0, 10.0, 10.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 15, 920, 0.0, 100.0, 10.0, 10.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 15, 427, 0.0, 100.0, 30.0, 30.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 62, 935, 0.0, 100.0, 0.0, 0.0, False, True)
goto @BURGLAR_1679

:BURGLAR_1221
DecisionMaker.Remove($burglary_male_decision)
$burglary_male_decision = DecisionMakerChar.CopyShared(65542)
if 
  $burglary_male_decision <> -1
goto_if_false @BURGLAR_1262
Char.SetDecisionMaker(0@, $burglary_male_decision)

:BURGLAR_1262
Char.SetRelationship(0@, RelationshipType.Dislike, PedType.Player1)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 37, 427, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 37, 413, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 31, 601, 0.0, 100.0, 50.0, 50.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 31, 413, 0.0, 100.0, 30.0, 30.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 31, 427, 0.0, 100.0, 10.0, 10.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 36, 413, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 36, 427, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 9, 251, 0.0, 100.0, 20.0, 20.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 9, 1000, 0.0, 100.0, 60.0, 60.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 9, 427, 0.0, 100.0, 40.0, 40.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 62, 935, 0.0, 100.0, 0.0, 0.0, False, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 11, 600, 0.0, 100.0, 40.0, 40.0, True, True)

:BURGLAR_1679
goto @BURGLAR_2042

:BURGLAR_1686
DecisionMaker.Remove($burglary_female_decision)
$burglary_female_decision = DecisionMakerChar.CopyShared(65542)
if 
  $burglary_female_decision <> -1
goto_if_false @BURGLAR_1727
Char.SetDecisionMaker(0@, $burglary_female_decision)

:BURGLAR_1727
Char.SetRelationship(0@, RelationshipType.Dislike, PedType.Player1)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 37, 1029, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 31, 1000, 0.0, 100.0, 20.0, 20.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 36, 1000, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 36, 1029, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 9, 251, 0.0, 100.0, 10.0, 10.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 9, 1000, 0.0, 100.0, 20.0, 20.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 11, 600, 0.0, 100.0, 100.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 15, 1000, 0.0, 100.0, 10.0, 10.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 62, 935, 0.0, 100.0, 0.0, 0.0, False, True)

:BURGLAR_2042
8@ = 1

:BURGLAR_2049
goto @BURGLAR_3571

:BURGLAR_2056
if 
  8@ <> 2
goto_if_false @BURGLAR_3571
if 
  14@ == 0
goto_if_false @BURGLAR_3208
if 
  Char.IsMale(0@)
goto_if_false @BURGLAR_2743
DecisionMaker.Remove($gym_day_fitness)
$gym_day_fitness = DecisionMakerChar.CopyShared(65542)
if 
  $gym_day_fitness <> -1
goto_if_false @BURGLAR_2149
Char.SetDecisionMaker(0@, $gym_day_fitness)

:BURGLAR_2149
DecisionMakerChar.AddEventResponse($gym_day_fitness, 37, 1029, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 37, 413, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 31, 1000, 0.0, 100.0, 20.0, 20.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 31, 413, 0.0, 100.0, 40.0, 40.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 36, 1000, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 36, 1029, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 36, 413, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 9, 251, 0.0, 100.0, 10.0, 10.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 9, 1000, 0.0, 100.0, 30.0, 30.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 9, 427, 0.0, 100.0, 60.0, 60.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 11, 600, 0.0, 100.0, 50.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 15, 415, 0.0, 100.0, 50.0, 50.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 15, 1000, 0.0, 100.0, 20.0, 20.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 15, 920, 0.0, 100.0, 20.0, 20.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 15, 427, 0.0, 100.0, 10.0, 10.0, True, True)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 62, 935, 0.0, 100.0, 0.0, 0.0, False, True)
Char.SetRelationship(0@, RelationshipType.Hate, PedType.Player1)
DecisionMakerChar.AddEventResponse($gym_day_fitness, 9, 251, 0.0, 100.0, 100.0, 0.0, True, True)
goto @BURGLAR_3201

:BURGLAR_2743
DecisionMaker.Remove($burglary_male_decision)
$burglary_male_decision = DecisionMakerChar.CopyShared(65542)
if 
  $burglary_male_decision <> -1
goto_if_false @BURGLAR_2784
Char.SetDecisionMaker(0@, $burglary_male_decision)

:BURGLAR_2784
Char.SetRelationship(0@, RelationshipType.Hate, PedType.Player1)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 37, 427, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 37, 413, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 31, 601, 0.0, 100.0, 50.0, 50.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 31, 413, 0.0, 100.0, 20.0, 20.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 31, 427, 0.0, 100.0, 10.0, 10.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 36, 413, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 36, 427, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 9, 251, 0.0, 100.0, 30.0, 30.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 9, 1000, 0.0, 100.0, 10.0, 10.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 9, 427, 0.0, 100.0, 30.0, 30.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 11, 600, 0.0, 100.0, 20.0, 20.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_male_decision, 62, 935, 0.0, 100.0, 0.0, 0.0, False, True)

:BURGLAR_3201
goto @BURGLAR_3564

:BURGLAR_3208
DecisionMaker.Remove($burglary_female_decision)
$burglary_female_decision = DecisionMakerChar.CopyShared(65542)
if 
  $burglary_female_decision <> -1
goto_if_false @BURGLAR_3249
Char.SetDecisionMaker(0@, $burglary_female_decision)

:BURGLAR_3249
DecisionMakerChar.AddEventResponse($burglary_female_decision, 37, 1029, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 31, 1000, 0.0, 100.0, 20.0, 20.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 36, 1000, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 36, 1029, 0.0, 100.0, 0.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 9, 251, 0.0, 100.0, 10.0, 10.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 9, 1000, 0.0, 100.0, 30.0, 30.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 11, 600, 0.0, 100.0, 50.0, 0.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 15, 1000, 0.0, 100.0, 20.0, 20.0, True, True)
DecisionMakerChar.AddEventResponse($burglary_female_decision, 62, 935, 0.0, 100.0, 0.0, 0.0, False, True)
Char.SetRelationship(0@, RelationshipType.Hate, PedType.Player1)

:BURGLAR_3564
8@ = 2

:BURGLAR_3571
if or
  Char.IsRespondingToEvent(0@, 36)
  Char.IsRespondingToEvent(0@, 15)
  Char.IsRespondingToEvent(0@, 9)
  Char.IsRespondingToEvent(0@, 37)
  $g_VB_BIG_LIFT == 100
goto_if_false @BURGLAR_4393
if 
  $burglary_player_spotted == 0
goto_if_false @BURGLAR_4393
if and
  2@ == 4
  14@ == 0
goto_if_false @BURGLAR_3753
if 
  not Streaming.HasModelLoaded(330)
goto_if_false @BURGLAR_3688
Streaming.RequestModel(330)
goto @BURGLAR_3746

:BURGLAR_3688
if 
  not Char.IsDead(0@)
goto_if_false @BURGLAR_3711
Task.UseMobilePhone(0@, True)

:BURGLAR_3711
13@ = Char.SetSayContextImportant(0@, 119, True, False, False)
9@ = Clock.GetGameTimer()
7@ = 1
$burglary_player_spotted = 1

:BURGLAR_3746
goto @BURGLAR_4393

:BURGLAR_3753
if 
  2@ == 2
goto_if_false @BURGLAR_4379
if 
  Char.IsCurrentWeapon(0@, WeaponType.Unarmed)
goto_if_false @BURGLAR_4305
if 
  3@ == 1
goto_if_false @BURGLAR_3925
if 
  not Streaming.HasModelLoaded(336)
goto_if_false @BURGLAR_3835
Streaming.RequestModel(336)
goto @BURGLAR_3918

:BURGLAR_3835
Char.GiveWeapon(0@, WeaponType.BaseballBat, 0)
Char.SetCurrentWeapon(0@, WeaponType.BaseballBat)
13@ = Char.SetSayContextImportant(0@, 20, True, False, False)
12@ = Char.GetScriptTaskStatus(0@, 1506)
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_3904
Task.KillCharOnFoot(0@, $scplayer)

:BURGLAR_3904
7@ = 1
$burglary_player_spotted = 1

:BURGLAR_3918
goto @BURGLAR_4298

:BURGLAR_3925
if 
  3@ == 3
goto_if_false @BURGLAR_4078
if 
  not Streaming.HasModelLoaded(346)
goto_if_false @BURGLAR_3971
Streaming.RequestModel(346)
goto @BURGLAR_4071

:BURGLAR_3971
Char.GiveWeapon(0@, WeaponType.Pistol, 40)
Char.SetCurrentWeapon(0@, WeaponType.Pistol)
13@ = Char.SetSayContextImportant(0@, 20, True, False, False)
12@ = Char.GetScriptTaskStatus(0@, 1506)
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4040
Task.KillCharOnFoot(0@, $scplayer)

:BURGLAR_4040
7@ = 1
$burglary_player_spotted = 1
13@ = Char.SetSayContextImportant(0@, 175, True, False, False)

:BURGLAR_4071
goto @BURGLAR_4298

:BURGLAR_4078
if 
  3@ == 5
goto_if_false @BURGLAR_4231
if 
  not Streaming.HasModelLoaded(350)
goto_if_false @BURGLAR_4124
Streaming.RequestModel(350)
goto @BURGLAR_4224

:BURGLAR_4124
Char.GiveWeapon(0@, WeaponType.Sawnoff, 40)
Char.SetCurrentWeapon(0@, WeaponType.Sawnoff)
13@ = Char.SetSayContextImportant(0@, 20, True, False, False)
12@ = Char.GetScriptTaskStatus(0@, 1506)
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4193
Task.KillCharOnFoot(0@, $scplayer)

:BURGLAR_4193
7@ = 1
$burglary_player_spotted = 1
13@ = Char.SetSayContextImportant(0@, 181, True, False, False)

:BURGLAR_4224
goto @BURGLAR_4298

:BURGLAR_4231
13@ = Char.SetSayContextImportant(0@, 89, True, False, False)
12@ = Char.GetScriptTaskStatus(0@, 1506)
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4284
Task.KillCharOnFoot(0@, $scplayer)

:BURGLAR_4284
7@ = 1
$burglary_player_spotted = 1

:BURGLAR_4298
goto @BURGLAR_4372

:BURGLAR_4305
13@ = Char.SetSayContextImportant(0@, 89, True, False, False)
12@ = Char.GetScriptTaskStatus(0@, 1506)
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4358
Task.KillCharOnFoot(0@, $scplayer)

:BURGLAR_4358
7@ = 1
$burglary_player_spotted = 1

:BURGLAR_4372
goto @BURGLAR_4393

:BURGLAR_4379
$burglary_player_spotted = 1
7@ = 1

:BURGLAR_4393
if or
  7@ == 1
  7@ == 2
goto_if_false @BURGLAR_5603
12@ = Char.GetScriptTaskStatus(0@, 1506)
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_5196
if and
  not Char.IsRespondingToEvent(0@, 36)
  not Char.IsRespondingToEvent(0@, 15)
  not Char.IsRespondingToEvent(0@, 9)
  not Char.IsRespondingToEvent(0@, 37)
goto_if_false @BURGLAR_5196
switch_start 2@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @BURGLAR_5092 {caseNum1} 0 {caseLabel1} @BURGLAR_4549 {caseNum2} 1 {caseLabel2} @BURGLAR_4608 {caseNum3} 2 {caseLabel3} @BURGLAR_4709 {caseNum4} 3 {caseLabel4} @BURGLAR_4769 {caseNum5} 4 {caseLabel5} @BURGLAR_4828 {caseNum6} -1 {caseLabel6} @BURGLAR_5196 {caseNum7} -1 {caseLabel7} @BURGLAR_5196

:BURGLAR_4549
12@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4601
Task.Duck(0@, -2)
13@ = Char.SetSayContextImportant(0@, 85, True, False, False)

:BURGLAR_4601
goto @BURGLAR_5196

:BURGLAR_4608
12@ = Char.GetScriptTaskStatus(0@, 1476)
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4702
Task.HandsUp(0@, -2)
if 
  Char.IsHoldingObject($scplayer, -1)
goto_if_false @BURGLAR_4686
13@ = Char.SetSayContextImportant(0@, 144, True, False, False)
goto @BURGLAR_4702

:BURGLAR_4686
13@ = Char.SetSayContextImportant(0@, 115, True, False, False)

:BURGLAR_4702
goto @BURGLAR_5196

:BURGLAR_4709
12@ = Char.GetScriptTaskStatus(0@, 1506)
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4762
Task.KillCharOnFoot(0@, $scplayer)
13@ = Char.SetSayContextImportant(0@, 20, True, False, False)

:BURGLAR_4762
goto @BURGLAR_5196

:BURGLAR_4769
12@ = Char.GetScriptTaskStatus(0@, 1466)
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4821
Task.StandStill(0@, -2)
13@ = Char.SetSayContextImportant(0@, 114, True, False, False)

:BURGLAR_4821
goto @BURGLAR_5196

:BURGLAR_4828
if 
  $flag_player_on_burglary_mission == 1
goto_if_false @BURGLAR_5085
if 
  7@ == 1
goto_if_false @BURGLAR_4991
10@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 11@ = 10@
sub_int_lvar_from_int_lvar 11@ -= 9@
if 
  11@ > 8000
goto_if_false @BURGLAR_4984
if 
  not Char.IsDead(0@)
goto_if_false @BURGLAR_4984
12@ = Char.GetScriptTaskStatus(0@, 1833)
if 
  not is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4956
Task.UseMobilePhone(0@, False)

:BURGLAR_4956
Streaming.MarkModelAsNoLongerNeeded(330)
7@ = 2
13@ = Char.SetSayContextImportant(0@, 44, True, False, False)

:BURGLAR_4984
goto @BURGLAR_5085

:BURGLAR_4991
12@ = Char.GetScriptTaskStatus(0@, 1476)
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_5085
Task.HandsUp(0@, -2)
if 
  Char.IsHoldingObject($scplayer, -1)
goto_if_false @BURGLAR_5069
13@ = Char.SetSayContextImportant(0@, 144, True, False, False)
goto @BURGLAR_5085

:BURGLAR_5069
13@ = Char.SetSayContextImportant(0@, 115, True, False, False)

:BURGLAR_5085
goto @BURGLAR_5196

:BURGLAR_5092
if 
  Char.IsHoldingObject($scplayer, -1)
goto_if_false @BURGLAR_5134
13@ = Char.SetSayContextImportant(0@, 144, True, False, False)
goto @BURGLAR_5189

:BURGLAR_5134
if 
  Char.IsMale(0@)
goto_if_false @BURGLAR_5173
13@ = Char.SetSayContextImportant(0@, 110, True, False, False)
goto @BURGLAR_5189

:BURGLAR_5173
13@ = Char.SetSayContextImportant(0@, 110, True, False, False)

:BURGLAR_5189
goto @BURGLAR_5196

:BURGLAR_5196
switch_start 2@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @BURGLAR_5499 {caseNum1} 0 {caseLabel1} @BURGLAR_5259 {caseNum2} 1 {caseLabel2} @BURGLAR_5282 {caseNum3} 2 {caseLabel3} @BURGLAR_5347 {caseNum4} 3 {caseLabel4} @BURGLAR_5370 {caseNum5} 4 {caseLabel5} @BURGLAR_5393 {caseNum6} -1 {caseLabel6} @BURGLAR_5603 {caseNum7} -1 {caseLabel7} @BURGLAR_5603

:BURGLAR_5259
13@ = Char.SetSayContextImportant(0@, 85, True, False, False)
goto @BURGLAR_5603

:BURGLAR_5282
if 
  Char.IsHoldingObject($scplayer, -1)
goto_if_false @BURGLAR_5324
13@ = Char.SetSayContextImportant(0@, 144, True, False, False)
goto @BURGLAR_5340

:BURGLAR_5324
13@ = Char.SetSayContextImportant(0@, 115, True, False, False)

:BURGLAR_5340
goto @BURGLAR_5603

:BURGLAR_5347
13@ = Char.SetSayContextImportant(0@, 20, True, False, False)
goto @BURGLAR_5603

:BURGLAR_5370
13@ = Char.SetSayContextImportant(0@, 114, True, False, False)
goto @BURGLAR_5603

:BURGLAR_5393
if 
  7@ == 1
goto_if_false @BURGLAR_5434
13@ = Char.SetSayContextImportant(0@, 44, True, False, False)
goto @BURGLAR_5492

:BURGLAR_5434
if 
  Char.IsHoldingObject($scplayer, -1)
goto_if_false @BURGLAR_5476
13@ = Char.SetSayContextImportant(0@, 144, True, False, False)
goto @BURGLAR_5492

:BURGLAR_5476
13@ = Char.SetSayContextImportant(0@, 115, True, False, False)

:BURGLAR_5492
goto @BURGLAR_5603

:BURGLAR_5499
if 
  Char.IsHoldingObject($scplayer, -1)
goto_if_false @BURGLAR_5541
13@ = Char.SetSayContextImportant(0@, 144, True, False, False)
goto @BURGLAR_5596

:BURGLAR_5541
if 
  Char.IsMale(0@)
goto_if_false @BURGLAR_5580
13@ = Char.SetSayContextImportant(0@, 110, True, False, False)
goto @BURGLAR_5596

:BURGLAR_5580
13@ = Char.SetSayContextImportant(0@, 110, True, False, False)

:BURGLAR_5596
goto @BURGLAR_5603

:BURGLAR_5603
goto @BURGLAR_5617

:BURGLAR_5610
5@ = 1

:BURGLAR_5617
goto @BURGLAR_5666

:BURGLAR_5624
DecisionMaker.Remove($gym_day_fitness)
DecisionMaker.Remove($burglary_male_decision)
DecisionMaker.Remove($burglary_female_decision)
Char.MarkAsNoLongerNeeded(0@)
Streaming.MarkModelAsNoLongerNeeded(330)
Streaming.MarkModelAsNoLongerNeeded(336)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(350)
terminate_this_script 

:BURGLAR_5666
goto @BURGLAR_168
terminate_this_script 

//-------------External script 24 (GF_MEETING)---------------

:GFMEET
script_name 'GFMEET'
5@ = 0
6@ = 0
7@ = 0
if 
  7@ > 0
goto_if_false @GFMEET_106
15@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)
17@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)
18@ = Blip.AddForChar(15@)

:GFMEET_106
gosub @GFMEET_3912
gosub @GFMEET_2883

:GFMEET_120
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @GFMEET_325
if and
  not Char.IsDead(15@)
  Char.LocateAnyMeans3D($scplayer, 1@, 2@, 3@, 100.0, 100.0, 20.0, False)
goto_if_false @GFMEET_311
if 
  Char.HasBeenDamagedByChar(15@, $scplayer)
goto_if_false @GFMEET_227
set_local_var_bit_const 7@ {n} 2
5@ = 6
6@ = 0

:GFMEET_227
if 
  8@ == 1
goto_if_false @GFMEET_290
if or
  Char.IsDead(17@)
  Char.HasBeenDamagedByChar(17@, $scplayer)
goto_if_false @GFMEET_290
set_local_var_bit_const 7@ {n} 2
5@ = 6
6@ = 0

:GFMEET_290
gosub @GFMEET_339
gosub @GFMEET_4873
goto @GFMEET_318

:GFMEET_311
gosub @GFMEET_5627

:GFMEET_318
goto @GFMEET_332

:GFMEET_325
gosub @GFMEET_5627

:GFMEET_332
goto @GFMEET_120

:GFMEET_339
switch_start 5@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFMEET_486 {caseNum1} 1 {caseLabel1} @GFMEET_402 {caseNum2} 2 {caseLabel2} @GFMEET_416 {caseNum3} 3 {caseLabel3} @GFMEET_430 {caseNum4} 4 {caseLabel4} @GFMEET_444 {caseNum5} 5 {caseLabel5} @GFMEET_458 {caseNum6} 6 {caseLabel6} @GFMEET_472 {caseNum7} -1 {caseLabel7} @GFMEET_486

:GFMEET_402
gosub @GFMEET_488
goto @GFMEET_486

:GFMEET_416
gosub @GFMEET_822
goto @GFMEET_486

:GFMEET_430
gosub @GFMEET_1353
goto @GFMEET_486

:GFMEET_444
gosub @GFMEET_1710
goto @GFMEET_486

:GFMEET_458
gosub @GFMEET_1989
goto @GFMEET_486

:GFMEET_472
gosub @GFMEET_2399
goto @GFMEET_486

:GFMEET_486
return 

:GFMEET_488
switch_start 6@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @GFMEET_820 {caseNum1} 0 {caseLabel1} @GFMEET_551 {caseNum2} -1 {caseLabel2} @GFMEET_820 {caseNum3} -1 {caseLabel3} @GFMEET_820 {caseNum4} -1 {caseLabel4} @GFMEET_820 {caseNum5} -1 {caseLabel5} @GFMEET_820 {caseNum6} -1 {caseLabel6} @GFMEET_820 {caseNum7} -1 {caseLabel7} @GFMEET_820

:GFMEET_551
if 
  Conversation.IsPlayerInPosition(15@)
goto_if_false @GFMEET_813
if 
  not is_global_var_bit_set_lvar $iActiveGF {var_n} 0@
goto_if_false @GFMEET_742
if 
  Char.LocateOnFootChar2D($scplayer, 15@, 2.0, 2.0, False)
goto_if_false @GFMEET_742
gosub @GFMEET_3967
if 
  13@ == 1
goto_if_false @GFMEET_703
Conversation.Enable(15@, True)
if 
  Conversation.IsAtNode(15@, 19@s)
goto_if_false @GFMEET_689
5@ = 2
6@ = 0
goto @GFMEET_696

:GFMEET_689
Conversation.Enable(15@, False)

:GFMEET_696
goto @GFMEET_742

:GFMEET_703
if 
  not is_local_var_bit_set_const 7@ {n} 1
goto_if_false @GFMEET_742
5@ = 3
6@ = 0
Conversation.Enable(15@, False)

:GFMEET_742
13@ = Char.GetScriptTaskStatus(15@, 1655)
14@ = Char.GetScriptTaskStatus(17@, 1655)
if and
  is_int_lvar_equal_to_constant 13@ == 7
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @GFMEET_813
Task.ChatWithChar(15@, 17@, True, 1)
Task.ChatWithChar(17@, 15@, False, 1)

:GFMEET_813
goto @GFMEET_820

:GFMEET_820
return 

:GFMEET_822
switch_start 6@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFMEET_1351 {caseNum1} 0 {caseLabel1} @GFMEET_885 {caseNum2} 1 {caseLabel2} @GFMEET_973 {caseNum3} 2 {caseLabel3} @GFMEET_1073 {caseNum4} 3 {caseLabel4} @GFMEET_1304 {caseNum5} -1 {caseLabel5} @GFMEET_1351 {caseNum6} -1 {caseLabel6} @GFMEET_1351 {caseNum7} -1 {caseLabel7} @GFMEET_1351

:GFMEET_885
TIMERB = 0
Task.TurnCharToFaceChar(15@, $scplayer)
if and
  8@ == 1
  not Char.IsDead(17@)
goto_if_false @GFMEET_959
13@ = Char.GetScriptTaskStatus(17@, 1466)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_959
Task.StandStill(17@, -2)

:GFMEET_959
6@ += 1
goto @GFMEET_1351

:GFMEET_973
13@ = Char.GetScriptTaskStatus(15@, 1593)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1066
Task.LookAtChar(15@, $scplayer, -1)
13@ = Char.GetScriptTaskStatus(15@, 1466)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1048
Task.StandStill(15@, -2)

:GFMEET_1048
Text.PrintHelpForever('TALK_1')
6@ += 1

:GFMEET_1066
goto @GFMEET_1351

:GFMEET_1073
if 
  Conversation.IsAtNode(15@, 23@s)
goto_if_false @GFMEET_1175
Text.ClearHelp
if 
  TIMERB > 9000
goto_if_false @GFMEET_1175
$iGFLikesPlayer(0@,6i) = 0
clear_global_var_bit_lvar $iActiveGF {var_n} 0@
if 
  Blip.DoesExist(18@)
goto_if_false @GFMEET_1153
Blip.Remove(18@)

:GFMEET_1153
Text.ClearHelp
Char.ClearLookAt(15@)
6@ = 0
set_lvar_int_to_lvar_int 5@ = 8@

:GFMEET_1175
if 
  Conversation.IsAtNode(15@, 21@s)
goto_if_false @GFMEET_1251
Text.ClearHelp
if 
  not is_global_var_bit_set_lvar $iActiveGF {var_n} 0@
goto_if_false @GFMEET_1223
set_global_var_bit_lvar $iActiveGF {var_n} 0@

:GFMEET_1223
if 
  Blip.DoesExist(18@)
goto_if_false @GFMEET_1244
Blip.Remove(18@)

:GFMEET_1244
6@ += 1

:GFMEET_1251
if and
  not Conversation.IsPlayerInPosition(15@)
  TIMERB > 9000
goto_if_false @GFMEET_1297
Text.ClearHelp
Char.ClearLookAt(15@)
6@ = 0
set_lvar_int_to_lvar_int 5@ = 8@

:GFMEET_1297
goto @GFMEET_1351

:GFMEET_1304
if 
  not Text.IsMessageBeingDisplayed
goto_if_false @GFMEET_1344
gosub @GFMEET_3773
Char.ClearLookAt(15@)
6@ = 0
set_lvar_int_to_lvar_int 5@ = 8@

:GFMEET_1344
goto @GFMEET_1351

:GFMEET_1351
return 

:GFMEET_1353
switch_start 6@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFMEET_1708 {caseNum1} 0 {caseLabel1} @GFMEET_1416 {caseNum2} 1 {caseLabel2} @GFMEET_1504 {caseNum3} 2 {caseLabel3} @GFMEET_1593 {caseNum4} 3 {caseLabel4} @GFMEET_1655 {caseNum5} -1 {caseLabel5} @GFMEET_1708 {caseNum6} -1 {caseLabel6} @GFMEET_1708 {caseNum7} -1 {caseLabel7} @GFMEET_1708

:GFMEET_1416
TIMERB = 0
Task.TurnCharToFaceChar(15@, $scplayer)
if and
  8@ == 1
  not Char.IsDead(17@)
goto_if_false @GFMEET_1490
13@ = Char.GetScriptTaskStatus(17@, 1466)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1490
Task.StandStill(17@, -2)

:GFMEET_1490
6@ += 1
goto @GFMEET_1708

:GFMEET_1504
13@ = Char.GetScriptTaskStatus(15@, 1593)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1586
Task.LookAtChar(15@, $scplayer, -1)
13@ = Char.GetScriptTaskStatus(15@, 1466)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1579
Task.StandStill(15@, -2)

:GFMEET_1579
6@ += 1

:GFMEET_1586
goto @GFMEET_1708

:GFMEET_1593
if 
  is_local_var_bit_set_const 7@ {n} 3
goto_if_false @GFMEET_1633
set_var_int_to_constant $iGFSayContext = 312
clear_local_var_bit_const 7@ {n} 3
goto @GFMEET_1641

:GFMEET_1633
set_var_int_to_constant $iGFSayContext = 311

:GFMEET_1641
6@ += 1
goto @GFMEET_1708

:GFMEET_1655
if 
  TIMERB > 6000
goto_if_false @GFMEET_1701
Char.ClearLookAt(15@)
set_local_var_bit_const 7@ {n} 1
6@ = 0
set_lvar_int_to_lvar_int 5@ = 8@

:GFMEET_1701
goto @GFMEET_1708

:GFMEET_1708
return 

:GFMEET_1710
switch_start 6@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @GFMEET_1987 {caseNum1} 0 {caseLabel1} @GFMEET_1773 {caseNum2} -1 {caseLabel2} @GFMEET_1987 {caseNum3} -1 {caseLabel3} @GFMEET_1987 {caseNum4} -1 {caseLabel4} @GFMEET_1987 {caseNum5} -1 {caseLabel5} @GFMEET_1987 {caseNum6} -1 {caseLabel6} @GFMEET_1987 {caseNum7} -1 {caseLabel7} @GFMEET_1987

:GFMEET_1773
if 
  Char.LocateAnyMeansChar2D($scplayer, 15@, 3.0, 3.0, False)
goto_if_false @GFMEET_1929
gosub @GFMEET_3967
if 
  13@ == 1
goto_if_false @GFMEET_1890
Conversation.Enable(15@, True)
if 
  Conversation.IsAtNode(15@, 19@s)
goto_if_false @GFMEET_1876
5@ = 2
6@ = 0
goto @GFMEET_1883

:GFMEET_1876
Conversation.Enable(15@, False)

:GFMEET_1883
goto @GFMEET_1929

:GFMEET_1890
if 
  not is_local_var_bit_set_const 7@ {n} 1
goto_if_false @GFMEET_1929
5@ = 3
6@ = 0
Conversation.Enable(15@, False)

:GFMEET_1929
13@ = Char.GetScriptTaskStatus(15@, 1640)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1980
Task.ShootAtCoord(15@, 264.0, -155.0, 5.0, -1)

:GFMEET_1980
goto @GFMEET_1987

:GFMEET_1987
return 

:GFMEET_1989
switch_start 6@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFMEET_2397 {caseNum1} 0 {caseLabel1} @GFMEET_2052 {caseNum2} 1 {caseLabel2} @GFMEET_2133 {caseNum3} 2 {caseLabel3} @GFMEET_2323 {caseNum4} -1 {caseLabel4} @GFMEET_2397 {caseNum5} -1 {caseLabel5} @GFMEET_2397 {caseNum6} -1 {caseLabel6} @GFMEET_2397 {caseNum7} -1 {caseLabel7} @GFMEET_2397

:GFMEET_2052
13@ = Char.GetScriptTaskStatus(15@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2126
Task.PlayAnim(15@, "TAI_CHI_IN", "PARK", 4.0, False, False, False, False, -1)
6@ += 1

:GFMEET_2126
goto @GFMEET_2397

:GFMEET_2133
13@ = Char.GetScriptTaskStatus(15@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2205
Task.PlayAnim(15@, "TAI_CHI_LOOP", "PARK", 4.0, False, False, False, False, 1215752191)

:GFMEET_2205
if and
  Conversation.IsPlayerInPosition(15@)
  Char.LocateAnyMeansChar2D($scplayer, 15@, 2.0, 2.0, False)
  Conversation.IsAtNode(15@, 19@s)
  not is_local_var_bit_set_const 7@ {n} 1
goto_if_false @GFMEET_2309
Task.PlayAnim(15@, "TAI_CHI_OUT", "PARK", 4.0, False, False, False, False, -1)
6@ += 1
goto @GFMEET_2316

:GFMEET_2309
Conversation.Enable(15@, False)

:GFMEET_2316
goto @GFMEET_2397

:GFMEET_2323
gosub @GFMEET_3967
if 
  13@ == 1
goto_if_false @GFMEET_2376
Conversation.Enable(15@, True)
5@ = 2
6@ = 0
goto @GFMEET_2390

:GFMEET_2376
5@ = 3
6@ = 0

:GFMEET_2390
goto @GFMEET_2397

:GFMEET_2397
return 

:GFMEET_2399
switch_start 6@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFMEET_2881 {caseNum1} 0 {caseLabel1} @GFMEET_2462 {caseNum2} 1 {caseLabel2} @GFMEET_2769 {caseNum3} -1 {caseLabel3} @GFMEET_2881 {caseNum4} -1 {caseLabel4} @GFMEET_2881 {caseNum5} -1 {caseLabel5} @GFMEET_2881 {caseNum6} -1 {caseLabel6} @GFMEET_2881 {caseNum7} -1 {caseLabel7} @GFMEET_2881

:GFMEET_2462
if 
  is_local_var_bit_set_const 7@ {n} 2
goto_if_false @GFMEET_2762
$iGFLikesPlayer(0@,6i) = 0
if 
  0@ == 1
goto_if_false @GFMEET_2526
Char.SetDecisionMaker(15@, 65543)
goto @GFMEET_2536

:GFMEET_2526
Char.SetDecisionMaker(15@, 65539)

:GFMEET_2536
if 
  not Char.IsDead(17@)
goto_if_false @GFMEET_2562
Char.SetDecisionMaker(17@, 65543)

:GFMEET_2562
if 
  Char.HasGotWeapon(15@, WeaponType.Pistol)
goto_if_false @GFMEET_2631
Char.SetCurrentWeapon(15@, WeaponType.Pistol)
13@ = Char.GetScriptTaskStatus(15@, 1506)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2624
Task.KillCharOnFoot(15@, $scplayer)

:GFMEET_2624
goto @GFMEET_2667

:GFMEET_2631
13@ = Char.GetScriptTaskStatus(15@, 1477)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2667
Task.Duck(15@, -2)

:GFMEET_2667
if 
  Blip.DoesExist(18@)
goto_if_false @GFMEET_2688
Blip.Remove(18@)

:GFMEET_2688
13@ = Clock.GetCurrentDayOfWeek()
13@ += 1
if 
  13@ > 7
goto_if_false @GFMEET_2725
13@ = 1

:GFMEET_2725
13@ += 22
set_global_var_bit_lvar $iGFDiaryOfBusyHours(0@,6i) {var_n} 13@
set_global_var_bit_const $iGFDiaryOfBusyHours(0@,6i) {n} 31
6@ += 1

:GFMEET_2762
goto @GFMEET_2881

:GFMEET_2769
if 
  Char.HasGotWeapon(15@, WeaponType.Pistol)
goto_if_false @GFMEET_2838
Char.SetCurrentWeapon(15@, WeaponType.Pistol)
13@ = Char.GetScriptTaskStatus(15@, 1506)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2831
Task.KillCharOnFoot(15@, $scplayer)

:GFMEET_2831
goto @GFMEET_2874

:GFMEET_2838
13@ = Char.GetScriptTaskStatus(15@, 1477)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2874
Task.Duck(15@, -2)

:GFMEET_2874
goto @GFMEET_2881

:GFMEET_2881
return 

:GFMEET_2883
switch_start 0@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFMEET_3401 {caseNum1} 1 {caseLabel1} @GFMEET_2946 {caseNum2} 2 {caseLabel2} @GFMEET_3042 {caseNum3} 3 {caseLabel3} @GFMEET_3170 {caseNum4} 4 {caseLabel4} @GFMEET_3298 {caseNum5} -1 {caseLabel5} @GFMEET_3401 {caseNum6} -1 {caseLabel6} @GFMEET_3401 {caseNum7} -1 {caseLabel7} @GFMEET_3401

:GFMEET_2946
if 
  not Streaming.HasModelLoaded(192)
goto_if_false @GFMEET_2978
Streaming.RequestModel(192)
wait 0
goto @GFMEET_2946

:GFMEET_2978
set_lvar_int_to_constant 13@ = 192
set_lvar_text_label 19@s = 'GF_1A'
set_lvar_text_label 21@s = 'GF_1C'
set_lvar_text_label 23@s = 'GF_1B'
8@ = 1
goto @GFMEET_3401

:GFMEET_3042
if 
  not Streaming.HasModelLoaded(191)
goto_if_false @GFMEET_3074
Streaming.RequestModel(191)
wait 0
goto @GFMEET_3042

:GFMEET_3074
if 
  not Streaming.HasModelLoaded(346)
goto_if_false @GFMEET_3106
Streaming.RequestModel(346)
wait 0
goto @GFMEET_3074

:GFMEET_3106
set_lvar_int_to_constant 13@ = 191
set_lvar_text_label 19@s = 'GF_2A'
set_lvar_text_label 21@s = 'GF_2C'
set_lvar_text_label 23@s = 'GF_2B'
8@ = 4
goto @GFMEET_3401

:GFMEET_3170
if 
  not Streaming.HasModelLoaded(190)
goto_if_false @GFMEET_3202
Streaming.RequestModel(190)
wait 0
goto @GFMEET_3170

:GFMEET_3202
if 
  not Streaming.HasModelLoaded(346)
goto_if_false @GFMEET_3234
Streaming.RequestModel(346)
wait 0
goto @GFMEET_3202

:GFMEET_3234
set_lvar_int_to_constant 13@ = 190
set_lvar_text_label 19@s = 'GF_3A'
set_lvar_text_label 21@s = 'GF_3C'
set_lvar_text_label 23@s = 'GF_3B'
8@ = 1
goto @GFMEET_3401

:GFMEET_3298
if 
  not Streaming.HasModelLoaded(193)
goto_if_false @GFMEET_3330
Streaming.RequestModel(193)
wait 0
goto @GFMEET_3298

:GFMEET_3330
set_lvar_int_to_constant 13@ = 193
set_lvar_text_label 19@s = 'GF_4A'
set_lvar_text_label 21@s = 'GF_4C'
set_lvar_text_label 23@s = 'GF_4B'
8@ = 5
6@ = 0
goto @GFMEET_3401

:GFMEET_3401
15@ = Char.Create(PedType.CivFemale, 13@, 1@, 2@, 3@)
Char.SetHeading(15@, 4@)
if 
  0@ == 2
goto_if_false @GFMEET_3465
Char.GiveWeapon(15@, WeaponType.Pistol, 999999999)
Char.SetAccuracy(15@, 100)

:GFMEET_3465
if 
  0@ == 3
goto_if_false @GFMEET_3509
Char.GiveWeapon(15@, WeaponType.Pistol, 999999999)
Char.SetCurrentWeapon(15@, WeaponType.Unarmed)
Char.SetAccuracy(15@, 100)

:GFMEET_3509
Char.SetStayInSamePlace(15@, True)
Char.SetSuffersCriticalHits(15@, False)
Char.SetNeverTargeted(15@, True)
Char.SetProofs(15@, False, False, True, True, False)
Char.SetHealth(15@, 200)
Task.StandStill(15@, -1)
Char.SetKeepTask(15@, True)
Conversation.StartSettingUp(15@)
Conversation.SetUpNodeWithSpeech(19@s, 21@s, 23@s, 313, 247, 248)
Conversation.SetUpEndNodeWithSpeech(21@s, 315)
Conversation.SetUpEndNodeWithSpeech(23@s, 314)
Conversation.FinishSettingUp
Conversation.Enable(15@, False)
18@ = Blip.AddForChar(15@)
Blip.SetAsFriendly(18@, True)
Blip.ChangeDisplay(18@, BlipDisplay.MarkerOnly)
if 
  8@ == 1
goto_if_false @GFMEET_3756
9@, 10@, 11@ = Char.GetOffsetInWorldCoords(15@, 0.5, 1.0, 0.0)
11@ = World.GetGroundZFor3DCoord(9@, 10@, 11@)
17@ = Char.CreateRandom(9@, 10@, 11@)
4@ += 180.0
Char.SetHeading(17@, 4@)
Task.ChatWithChar(15@, 17@, True, 1)
Task.ChatWithChar(17@, 15@, False, 1)

:GFMEET_3756
set_lvar_int_to_lvar_int 5@ = 8@
6@ = 0
return 

:GFMEET_3773
Text.ClearHelp
switch_start 0@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFMEET_3910 {caseNum1} 1 {caseLabel1} @GFMEET_3838 {caseNum2} 2 {caseLabel2} @GFMEET_3856 {caseNum3} 3 {caseLabel3} @GFMEET_3874 {caseNum4} 4 {caseLabel4} @GFMEET_3892 {caseNum5} -1 {caseLabel5} @GFMEET_3910 {caseNum6} -1 {caseLabel6} @GFMEET_3910 {caseNum7} -1 {caseLabel7} @GFMEET_3910

:GFMEET_3838
Text.PrintHelp('GF_H001')
goto @GFMEET_3910

:GFMEET_3856
Text.PrintHelp('GF_H002')
goto @GFMEET_3910

:GFMEET_3874
Text.PrintHelp('GF_H003')
goto @GFMEET_3910

:GFMEET_3892
Text.PrintHelp('GF_H004')
goto @GFMEET_3910

:GFMEET_3910
return 

:GFMEET_3912
Streaming.RequestAnimation("PARK")

:GFMEET_3920
wait 0
if 
  Streaming.HasAnimationLoaded("PARK")
goto_if_false @GFMEET_3952
return 
goto @GFMEET_3967

:GFMEET_3952
Streaming.RequestAnimation("PARK")
goto @GFMEET_3920

:GFMEET_3967
13@ = 0
13@ = Stat.GetInt(StatId.SexAppeal)
13@ /= 10
14@ = Stat.GetInt(StatId.Fat)
14@ /= 10
14@ /= 2
if 
  14@ >= 25
goto_if_false @GFMEET_4093
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {n} 2
goto_if_false @GFMEET_4064
add_int_lvar_to_int_lvar 13@ += 14@
goto @GFMEET_4086

:GFMEET_4064
sub_int_lvar_from_int_lvar 13@ -= 14@
set_local_var_bit_const 7@ {n} 3
set_local_var_bit_const 7@ {n} 11

:GFMEET_4086
goto @GFMEET_4199

:GFMEET_4093
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {n} 2
goto_if_false @GFMEET_4144
sub_int_lvar_from_int_lvar 13@ -= 14@
set_local_var_bit_const 7@ {n} 3
set_local_var_bit_const 7@ {n} 10
goto @GFMEET_4199

:GFMEET_4144
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {n} 3
goto_if_false @GFMEET_4199
if 
  14@ == 0
goto_if_false @GFMEET_4191
14@ = 5

:GFMEET_4191
add_int_lvar_to_int_lvar 13@ += 14@

:GFMEET_4199
14@ = Stat.GetInt(StatId.BodyMuscle)
14@ /= 10
14@ /= 2
if 
  14@ >= 20
goto_if_false @GFMEET_4326
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {n} 1
goto_if_false @GFMEET_4275
add_int_lvar_to_int_lvar 13@ += 14@
goto @GFMEET_4319

:GFMEET_4275
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {n} 3
goto_if_false @GFMEET_4319
sub_int_lvar_from_int_lvar 13@ -= 14@
set_local_var_bit_const 7@ {n} 3
set_local_var_bit_const 7@ {n} 12

:GFMEET_4319
goto @GFMEET_4432

:GFMEET_4326
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {n} 1
goto_if_false @GFMEET_4377
sub_int_lvar_from_int_lvar 13@ -= 14@
set_local_var_bit_const 7@ {n} 3
set_local_var_bit_const 7@ {n} 11
goto @GFMEET_4432

:GFMEET_4377
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {n} 3
goto_if_false @GFMEET_4432
if 
  14@ == 0
goto_if_false @GFMEET_4424
14@ = 5

:GFMEET_4424
add_int_lvar_to_int_lvar 13@ += 14@

:GFMEET_4432
if 
  is_int_lvar_greater_or_equal_to_int_var 13@ >= $iGFDesiredSexAppeal(0@,6i)
goto_if_false @GFMEET_4487
$iGFLikesPlayer(0@,6i) = 15
gosub @GFMEET_4496
13@ = 1
goto @GFMEET_4494

:GFMEET_4487
13@ = -1

:GFMEET_4494
return 

:GFMEET_4496
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFMEET_4871 {caseNum1} 0 {caseLabel1} @GFMEET_4559 {caseNum2} 1 {caseLabel2} @GFMEET_4611 {caseNum3} 2 {caseLabel3} @GFMEET_4663 {caseNum4} 3 {caseLabel4} @GFMEET_4715 {caseNum5} 4 {caseLabel5} @GFMEET_4767 {caseNum6} 5 {caseLabel6} @GFMEET_4819 {caseNum7} -1 {caseLabel7} @GFMEET_4871

:GFMEET_4559
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4592
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4592
Stat.SetInt(StatId.GirlfriendDenise, $iGFLikesPlayer(0@,6i))
goto @GFMEET_4871

:GFMEET_4611
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4644
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4644
Stat.SetInt(StatId.GirlfriendMichelle, $iGFLikesPlayer(0@,6i))
goto @GFMEET_4871

:GFMEET_4663
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4696
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4696
Stat.SetInt(StatId.GirlfriendHelena, $iGFLikesPlayer(0@,6i))
goto @GFMEET_4871

:GFMEET_4715
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4748
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4748
Stat.SetInt(StatId.GirlfriendBarbara, $iGFLikesPlayer(0@,6i))
goto @GFMEET_4871

:GFMEET_4767
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4800
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4800
Stat.SetInt(StatId.GirlfriendKatie, $iGFLikesPlayer(0@,6i))
goto @GFMEET_4871

:GFMEET_4819
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4852
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4852
Stat.SetInt(StatId.GirlfriendMillie, $iGFLikesPlayer(0@,6i))
goto @GFMEET_4871

:GFMEET_4871
return 

:GFMEET_4873
switch_start $iGFSpeechStatus {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @GFMEET_5405 {caseNum1} 0 {caseLabel1} @GFMEET_4936 {caseNum2} 1 {caseLabel2} @GFMEET_4968 {caseNum3} 2 {caseLabel3} @GFMEET_4980 {caseNum4} 3 {caseLabel4} @GFMEET_4994 {caseNum5} 4 {caseLabel5} @GFMEET_5263 {caseNum6} 5 {caseLabel6} @GFMEET_5363 {caseNum7} 6 {caseLabel7} @GFMEET_5172

:GFMEET_4936
if 
  $iGFSayContext > 0
goto_if_false @GFMEET_4961
$iGFSpeechStatus = 3

:GFMEET_4961
goto @GFMEET_5405

:GFMEET_4968
Char.EnableSpeech(15@)
goto @GFMEET_5405

:GFMEET_4980
Char.DisableSpeech(15@, False)
goto @GFMEET_5405

:GFMEET_4994
if 
  not Char.IsTalking(15@)
goto_if_false @GFMEET_5165
if 
  $iGFSayContext > 0
goto_if_false @GFMEET_5105
$iGFContextVariation = Char.SetSayContextImportant(15@, $iGFSayContext, False, True, False)
gosub @GFMEET_5407
$iGFSayContext = -1
if 
  $iCJSayContext > 0
goto_if_false @GFMEET_5091
$iGFSpeechStatus = 6
goto @GFMEET_5098

:GFMEET_5091
$iGFSpeechStatus = 0

:GFMEET_5098
goto @GFMEET_5165

:GFMEET_5105
if 
  $iGFSayContext == -2
goto_if_false @GFMEET_5144
$iGFSayContext = -1
$iGFSpeechStatus = 6
goto @GFMEET_5165

:GFMEET_5144
$iGFSayContext = -1
$iCJSayContext = -1
$iGFSpeechStatus = 0

:GFMEET_5165
goto @GFMEET_5405

:GFMEET_5172
if and
  not Char.IsTalking($scplayer)
  not Char.IsTalking(15@)
goto_if_false @GFMEET_5256
if 
  $iCJSayContext > 0
goto_if_false @GFMEET_5249
$iGFContextVariation = Char.SetSayContextImportant($scplayer, $iCJSayContext, False, True, False)
$iCJSayContext = -1
$iGFSpeechStatus = 0
goto @GFMEET_5256

:GFMEET_5249
$iGFSpeechStatus = 0

:GFMEET_5256
goto @GFMEET_5405

:GFMEET_5263
Char.DisableSpeech(15@, False)
if 
  not Char.IsTalking(15@)
goto_if_false @GFMEET_5356
if 
  $iGFSayContext > 0
goto_if_false @GFMEET_5349
$iGFContextVariation = Char.SetSayContextImportant(15@, $iGFSayContext, False, True, False)
gosub @GFMEET_5407
$iGFSayContext = -1
$iGFSpeechStatus = 5
goto @GFMEET_5356

:GFMEET_5349
$iGFSpeechStatus = 0

:GFMEET_5356
goto @GFMEET_5405

:GFMEET_5363
if 
  not Char.IsTalking(15@)
goto_if_false @GFMEET_5398
Char.EnableSpeech(15@)
$iGFSayContext = -1
$iGFSpeechStatus = 0

:GFMEET_5398
goto @GFMEET_5405

:GFMEET_5405
return 

:GFMEET_5407
switch_start $iGFSayContext {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFMEET_5625 {caseNum1} 311 {caseLabel1} @GFMEET_5602 {caseNum2} 312 {caseLabel2} @GFMEET_5472 {caseNum3} -1 {caseLabel3} @GFMEET_5625 {caseNum4} -1 {caseLabel4} @GFMEET_5625 {caseNum5} -1 {caseLabel5} @GFMEET_5625 {caseNum6} -1 {caseLabel6} @GFMEET_5625 {caseNum7} -1 {caseLabel7} @GFMEET_5625

:GFMEET_5472
if 
  is_local_var_bit_set_const 7@ {n} 10
goto_if_false @GFMEET_5513
Text.PrintNow('GF_0074', 5000, 1)
goto @GFMEET_5625

:GFMEET_5513
if 
  is_local_var_bit_set_const 7@ {n} 11
goto_if_false @GFMEET_5554
Text.PrintNow('GF_0053', 5000, 1)
goto @GFMEET_5625

:GFMEET_5554
if 
  is_local_var_bit_set_const 7@ {n} 12
goto_if_false @GFMEET_5595
Text.PrintNow('GF_0075', 5000, 1)
goto @GFMEET_5625

:GFMEET_5595
goto @GFMEET_5625

:GFMEET_5602
Text.PrintNow('GF_0052', 5000, 1)
goto @GFMEET_5625

:GFMEET_5625
return 

:GFMEET_5627
Char.MarkAsNoLongerNeeded(15@)
Char.MarkAsNoLongerNeeded(17@)
Streaming.RemoveAnimation("PARK")
Text.ClearHelp
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFMEET_5782 {caseNum1} 0 {caseLabel1} @GFMEET_5710 {caseNum2} 1 {caseLabel2} @GFMEET_5722 {caseNum3} 2 {caseLabel3} @GFMEET_5734 {caseNum4} 3 {caseLabel4} @GFMEET_5746 {caseNum5} 4 {caseLabel5} @GFMEET_5758 {caseNum6} 5 {caseLabel6} @GFMEET_5770 {caseNum7} -1 {caseLabel7} @GFMEET_5782

:GFMEET_5710
Streaming.MarkModelAsNoLongerNeeded(195)
goto @GFMEET_5782

:GFMEET_5722
Streaming.MarkModelAsNoLongerNeeded(192)
goto @GFMEET_5782

:GFMEET_5734
Streaming.MarkModelAsNoLongerNeeded(191)
goto @GFMEET_5782

:GFMEET_5746
Streaming.MarkModelAsNoLongerNeeded(190)
goto @GFMEET_5782

:GFMEET_5758
Streaming.MarkModelAsNoLongerNeeded(193)
goto @GFMEET_5782

:GFMEET_5770
Streaming.MarkModelAsNoLongerNeeded(194)
goto @GFMEET_5782

:GFMEET_5782
Conversation.ClearForChar(15@)
if 
  Blip.DoesExist(18@)
goto_if_false @GFMEET_5808
Blip.Remove(18@)

:GFMEET_5808
clear_global_var_bit_const $iDateReport {n} 20
terminate_this_script 
return 
write_debug "I__________________________I"
write_debug "H"
write_debug "G"
write_debug "F"
write_debug "E"
write_debug_with_int "GF_LIKES_PLAYER" {_p2} $iGFLikesPlayer(0@,6i)
write_debug_with_int "DESIRED_SEX_APPEAL" {_p2} $iGFDesiredSexAppeal(0@,6i)
write_debug_with_int "ISUBSTATESTATUS" {_p2} 6@
switch_start 5@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @GFMEET_6106 {caseNum1} 0 {caseLabel1} @GFMEET_6011 {caseNum2} 1 {caseLabel2} @GFMEET_6030 {caseNum3} 2 {caseLabel3} @GFMEET_6049 {caseNum4} 3 {caseLabel4} @GFMEET_6068 {caseNum5} 4 {caseLabel5} @GFMEET_6087 {caseNum6} -1 {caseLabel6} @GFMEET_6135 {caseNum7} -1 {caseLabel7} @GFMEET_6135

:GFMEET_6011
write_debug "STATE0__"
goto @GFMEET_6135

:GFMEET_6030
write_debug "STATE1__"
goto @GFMEET_6135

:GFMEET_6049
write_debug "STATE2__"
goto @GFMEET_6135

:GFMEET_6068
write_debug "STATE3__"
goto @GFMEET_6135

:GFMEET_6087
write_debug "STATE4__"
goto @GFMEET_6135

:GFMEET_6106
write_debug "UNTRAPPED_STATE___"
goto @GFMEET_6135

:GFMEET_6135
write_debug "I__________________________I"
return 
terminate_this_script 

//-------------External script 25 (GF_DATE)---------------

:GFDATE
script_name 'GFDATE'
1@ = 0
2@ = 0
3@ = 0
24@ = 0
30@ = -1
29@ = -1
$9466 = 30
$iFun = 30.0
if 
  3@ > 0
goto_if_false @GFDATE_120
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)
28@ = Char.StoreCarIsInNoSave(0@)

:GFDATE_120
gosub @GFDATE_23713
set_local_var_bit_const 3@ {n} 1

:GFDATE_134
wait 0
if and
  Player.IsPlaying($player1)
  $onmission == 0
goto_if_false @GFDATE_260
if 
  not Char.IsDead(0@)
goto_if_false @GFDATE_244
gosub @GFDATE_26389
gosub @GFDATE_23883
gosub @GFDATE_283
gosub @GFDATE_3666
if 
  is_global_var_bit_set_const $iDateReport {n} 22
goto_if_false @GFDATE_230
gosub @GFDATE_26840

:GFDATE_230
gosub @GFDATE_30085
goto @GFDATE_253

:GFDATE_244
Text.ClearHelp
gosub @GFDATE_32147

:GFDATE_253
goto @GFDATE_276

:GFDATE_260
Text.ClearHelp
set_local_var_bit_const 3@ {n} 9
gosub @GFDATE_32147

:GFDATE_276
goto @GFDATE_134

:GFDATE_283
if 
  not is_local_var_bit_set_const 3@ {n} 1
goto_if_false @GFDATE_3664
if 
  is_global_var_bit_set_const $iDateReport {n} 26
goto_if_false @GFDATE_342
set_global_var_bit_const $iDateReport {n} 2
1@ = 3
2@ = 0
return 

:GFDATE_342
gosub @GFDATE_19692
if 
  24@ > -1
goto_if_false @GFDATE_462
if 
  is_global_var_bit_set_const $iDateReport {n} 11
goto_if_false @GFDATE_414
gosub @GFDATE_32037
Camera.DoFade(0, Fade.Out)
1@ = 2
2@ = 0
return 

:GFDATE_414
if 
  is_global_var_bit_set_const $iDateReport {n} 13
goto_if_false @GFDATE_455
gosub @GFDATE_32037
1@ = 10
2@ = 0
return 

:GFDATE_455
goto @GFDATE_503

:GFDATE_462
if 
  24@ == -2
goto_if_false @GFDATE_503
gosub @GFDATE_32037
1@ = 3
2@ = 0
return 

:GFDATE_503
switch_start $iTransitionStages {numCases} 17 {hasDefaultCase} 0 {defaultLabel} @GFDATE_3664 {caseNum1} 0 {caseLabel1} @GFDATE_696 {caseNum2} 1 {caseLabel2} @GFDATE_887 {caseNum3} 2 {caseLabel3} @GFDATE_1067 {caseNum4} 3 {caseLabel4} @GFDATE_1353 {caseNum5} 4 {caseLabel5} @GFDATE_1457 {caseNum6} 5 {caseLabel6} @GFDATE_1563 {caseNum7} 6 {caseLabel7} @GFDATE_1676
switch_continued 7 {caseLabel1} @GFDATE_1789 {caseNum2} 8 {caseLabel2} @GFDATE_1847 {caseNum3} 9 {caseLabel3} @GFDATE_1964 {caseNum4} 10 {caseLabel4} @GFDATE_2047 {caseNum5} 11 {caseLabel5} @GFDATE_2351 {caseNum6} 12 {caseLabel6} @GFDATE_2561 {caseNum7} 13 {caseLabel7} @GFDATE_2698 {caseNum8} 14 {caseLabel8} @GFDATE_3141 {caseNum9} 15 {caseLabel9} @GFDATE_3315
switch_continued 16 {caseLabel1} @GFDATE_3522 {caseNum2} -1 {caseLabel2} @GFDATE_3664 {caseNum3} -1 {caseLabel3} @GFDATE_3664 {caseNum4} -1 {caseLabel4} @GFDATE_3664 {caseNum5} -1 {caseLabel5} @GFDATE_3664 {caseNum6} -1 {caseLabel6} @GFDATE_3664 {caseNum7} -1 {caseLabel7} @GFDATE_3664 {caseNum8} -1 {caseLabel8} @GFDATE_3664 {caseNum9} -1 {caseLabel9} @GFDATE_3664

:GFDATE_696
gosub @GFDATE_23333
if 
  25@ > 0
goto_if_false @GFDATE_873
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
goto_if_false @GFDATE_866
if and
  1@ == 1
  not is_local_var_bit_set_const 3@ {n} 7
  not is_local_var_bit_set_const 3@ {n} 26
  not is_global_var_bit_set_const $iDateReport {n} 22
goto_if_false @GFDATE_859
if 
  not is_local_var_bit_set_const 3@ {n} 3
goto_if_false @GFDATE_859
set_local_var_bit_const 3@ {n} 3
if 
  25@ == 2
goto_if_false @GFDATE_843
1@ = 11
2@ = 0
return 
goto @GFDATE_859

:GFDATE_843
1@ = 6
2@ = 0
return 

:GFDATE_859
goto @GFDATE_873

:GFDATE_866
clear_local_var_bit_const 3@ {n} 3

:GFDATE_873
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_887
if 
  not is_local_var_bit_set_const 3@ {n} 2
goto_if_false @GFDATE_1053
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 21
goto_if_false @GFDATE_1053
4@, 7@, 10@ = Char.GetCoordinates($scplayer)
s$txtCurrZone = Zone.GetName(4@, 7@, 10@)
if 
  not is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_1053
25@ = Char.GetAmmoInWeapon(0@, WeaponType.MicroUzi)
if 
  25@ == 0
goto_if_false @GFDATE_1053
Char.AddAmmo(0@, WeaponType.MicroUzi, 60)
set_var_int_to_constant $iGFSayContext = 278
set_global_var_bit_const $iDateReport {n} 2
gosub @GFDATE_32037
gosub @GFDATE_19097
set_local_var_bit_const 3@ {n} 27
set_local_var_bit_const 3@ {n} 2

:GFDATE_1053
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1067
if 
  Char.IsInAnyCar(0@)
goto_if_false @GFDATE_1305
if and
  is_global_var_bit_set_const $iDateReport {n} 15
  1@ <> 8
goto_if_false @GFDATE_1124
1@ = 8
2@ = 0
return 

:GFDATE_1124
if 
  1@ <> 4
goto_if_false @GFDATE_1165
1@ = 4
2@ = 0
return 
goto @GFDATE_1298

:GFDATE_1165
if 
  not is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_1231
if and
  0 > 29@
  not is_local_var_bit_set_const 3@ {n} 7
goto_if_false @GFDATE_1231
set_local_var_bit_const 3@ {n} 7
1@ = 5
2@ = 0
return 

:GFDATE_1231
if and
  is_local_var_bit_set_const 3@ {n} 5
  not is_local_var_bit_set_const 3@ {n} 7
  not is_local_var_bit_set_const 3@ {n} 6
  not Char.IsOnAnyBike($scplayer)
  not is_local_var_bit_set_const 3@ {n} 30
  not is_global_var_bit_set_const $iDateReport {n} 22
goto_if_false @GFDATE_1298
1@ = 7
2@ = 0
return 

:GFDATE_1298
goto @GFDATE_1339

:GFDATE_1305
if 
  1@ <> 1
goto_if_false @GFDATE_1339
1@ = 1
2@ = 0
return 

:GFDATE_1339
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1353
if and
  TIMERA > 10000
  not Char.IsGroupMember(0@, $Players_Group)
  not is_global_var_bit_set_const $iDateReport {n} 22
goto_if_false @GFDATE_1443
if or
  1@ == 1
  1@ == 4
goto_if_false @GFDATE_1443
set_local_var_bit_const 3@ {n} 7
Text.ClearPrints
Text.ClearHelp
Text.PrintHelp('GF_H017')
gosub @GFDATE_32147
return 

:GFDATE_1443
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1457
if 
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @GFDATE_1549
if 
  not Char.IsHealthGreater(0@, 498)
goto_if_false @GFDATE_1536
set_local_var_bit_const 3@ {n} 15
Text.PrintHelp('GF_H018')
1@ = 9
2@ = 0
return 
goto @GFDATE_1549

:GFDATE_1536
set_var_int_to_constant $iGFSayContext = 308
Char.ClearLastDamageEntity(0@)

:GFDATE_1549
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1563
if and
  TIMERA > 120000
  not is_local_var_bit_set_const 3@ {n} 26
goto_if_false @GFDATE_1662
if or
  $iGFidx == 3
  $iGFidx == 2
goto_if_false @GFDATE_1653
if 
  TIMERA > 240000
goto_if_false @GFDATE_1646
gosub @GFDATE_23217
return 

:GFDATE_1646
goto @GFDATE_1662

:GFDATE_1653
gosub @GFDATE_23217
return 

:GFDATE_1662
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1676
if and
  TIMERA > 180000
  not is_local_var_bit_set_const 3@ {n} 7
goto_if_false @GFDATE_1775
if or
  $iGFidx == 3
  $iGFidx == 2
goto_if_false @GFDATE_1766
if 
  TIMERA > 300000
goto_if_false @GFDATE_1759
gosub @GFDATE_23317
return 

:GFDATE_1759
goto @GFDATE_1775

:GFDATE_1766
gosub @GFDATE_23317
return 

:GFDATE_1775
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1789
if and
  TIMERA > 360000
  is_local_var_bit_set_const 3@ {n} 7
goto_if_false @GFDATE_1833
1@ = 9
2@ = 0
return 

:GFDATE_1833
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1847
if 
  not Char.IsHealthGreater(0@, 10)
goto_if_false @GFDATE_1891
$iGFLikesPlayer($iGFidx,6i) = -999
Task.Dead(0@)
gosub @GFDATE_32147
return 

:GFDATE_1891
if and
  Player.IsWantedLevelGreater($player1, 2)
  not is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 21
  not is_local_var_bit_set_const 3@ {n} 7
goto_if_false @GFDATE_1950
set_local_var_bit_const 3@ {n} 7
1@ = 5
2@ = 0
return 

:GFDATE_1950
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_1964
if and
  Char.IsInAnyCar(0@)
  not Car.IsDead(28@)
goto_if_false @GFDATE_2033
if 
  not Car.IsStopped(28@)
goto_if_false @GFDATE_2033
if and
  not is_local_var_bit_set_const 3@ {n} 7
  not is_local_var_bit_set_const 3@ {n} 2
goto_if_false @GFDATE_2033
gosub @GFDATE_24782

:GFDATE_2033
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_2047
if and
  is_local_var_bit_set_const 3@ {n} 2
  not is_local_var_bit_set_const 3@ {n} 12
  not is_local_var_bit_set_const 3@ {n} 15
  $iGF_TT_Status <> -1
goto_if_false @GFDATE_2273
25@ = Stat.GetInt(StatId.CurrentGirlfriends)
if 
  25@ > 1
goto_if_false @GFDATE_2266
25@ = Streaming.GetAreaVisible()
if 
  25@ == 0
goto_if_false @GFDATE_2259
if or
  1@ == 1
  1@ == 4
goto_if_false @GFDATE_2259
if and
  not is_global_var_bit_set_const $iDateReport {n} 22
  TIMERA > 7000
goto_if_false @GFDATE_2259
25@ = Math.RandomIntInRange(0, 100)
if 
  50 >= 25@
goto_if_false @GFDATE_2234
$iGF_TT_Status = 0
set_global_var_bit_const $iDateReport {n} 22
goto @GFDATE_2259

:GFDATE_2234
if 
  not is_global_var_bit_set_const $iDateReport {n} 25
goto_if_false @GFDATE_2259
$iGF_TT_Status = -1

:GFDATE_2259
goto @GFDATE_2273

:GFDATE_2266
$iGF_TT_Status = -1

:GFDATE_2273
if and
  is_global_var_bit_set_const $iDateReport {n} 12
  TIMERA >= 30000
  not is_local_var_bit_set_const 3@ {n} 2
goto_if_false @GFDATE_2327
$iTransitionStages += 1
goto @GFDATE_3664
goto @GFDATE_2337

:GFDATE_2327
$fFun = 0.0

:GFDATE_2337
$iTransitionStages = 0
goto @GFDATE_3664

:GFDATE_2351
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 27
  1@ == 6
goto_if_false @GFDATE_2425
if 
  2@ == 0
goto_if_false @GFDATE_2415
$fFun += 1.5
goto @GFDATE_2425

:GFDATE_2415
$fFun += 1E-05

:GFDATE_2425
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 28
  1@ == 7
goto_if_false @GFDATE_2499
if 
  2@ == 0
goto_if_false @GFDATE_2489
$fFun += 1.5
goto @GFDATE_2499

:GFDATE_2489
$fFun += 1E-05

:GFDATE_2499
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 21
goto_if_false @GFDATE_2547
if 
  Char.IsShooting(0@)
goto_if_false @GFDATE_2547
$fFun += 4.0

:GFDATE_2547
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_2561
if 
  Char.IsInAnyCar(0@)
goto_if_false @GFDATE_2684
25@ = Car.GetHealth(28@)
if 
  is_int_lvar_greater_than_int_lvar 29@ > 25@
goto_if_false @GFDATE_2684
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 24
goto_if_false @GFDATE_2666
if 
  Car.HasBeenDamagedByCar(28@, -1)
goto_if_false @GFDATE_2659
$fFun += 1.5
Car.ClearLastDamageEntity(28@)

:GFDATE_2659
goto @GFDATE_2676

:GFDATE_2666
$fFun -= 1.0

:GFDATE_2676
set_lvar_int_to_lvar_int 29@ = 25@

:GFDATE_2684
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_2698
if and
  Char.IsInAnyCar(0@)
  not Car.IsDead(28@)
goto_if_false @GFDATE_3127
if 
  not Car.IsStopped(28@)
goto_if_false @GFDATE_3127
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 11
goto_if_false @GFDATE_2824
if and
  $passenger_said_jump == 1
  not is_local_var_bit_set_const 3@ {n} 17
goto_if_false @GFDATE_2799
$fFun += 1.5
set_local_var_bit_const 3@ {n} 17

:GFDATE_2799
if 
  $passenger_said_jump == 0
goto_if_false @GFDATE_2824
clear_local_var_bit_const 3@ {n} 17

:GFDATE_2824
14@ = Car.GetSpeed(28@)
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 12
goto_if_false @GFDATE_2941
if 
  14@ > 22.0
goto_if_false @GFDATE_2899
$fFun += 1.5
clear_local_var_bit_const 3@ {n} 19
goto @GFDATE_2941

:GFDATE_2899
if 
  not is_local_var_bit_set_const 3@ {n} 19
goto_if_false @GFDATE_2931
set_local_var_bit_const 3@ {n} 19
set_var_int_to_constant $iGFSayContext = 39

:GFDATE_2931
$fFun -= 2.5

:GFDATE_2941
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 13
goto_if_false @GFDATE_3127
if and
  14@ > 8.0
  20.0 > 14@
goto_if_false @GFDATE_3025
$fFun += 0.5
clear_local_var_bit_const 3@ {n} 19
clear_local_var_bit_const 3@ {n} 18
goto @GFDATE_3127

:GFDATE_3025
if 
  8.0 >= 14@
goto_if_false @GFDATE_3085
if 
  not is_local_var_bit_set_const 3@ {n} 19
goto_if_false @GFDATE_3078
set_local_var_bit_const 3@ {n} 19
set_var_int_to_constant $iGFSayContext = 39

:GFDATE_3078
goto @GFDATE_3117

:GFDATE_3085
if 
  not is_local_var_bit_set_const 3@ {n} 18
goto_if_false @GFDATE_3117
set_local_var_bit_const 3@ {n} 18
set_var_int_to_constant $iGFSayContext = 32

:GFDATE_3117
$fFun -= 2.5

:GFDATE_3127
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_3141
if and
  Char.IsInAnyCar(0@)
  not Car.IsDead(28@)
goto_if_false @GFDATE_3253
if 
  not Car.IsStopped(28@)
goto_if_false @GFDATE_3253
if 
  not is_local_var_bit_set_const 3@ {n} 7
goto_if_false @GFDATE_3253
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 16
goto_if_false @GFDATE_3253
gosub @GFDATE_23095
if 
  25@ > 0
goto_if_false @GFDATE_3253
$fFun += 0.5

:GFDATE_3253
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 21
goto_if_false @GFDATE_3301
if 
  Char.IsShooting(0@)
goto_if_false @GFDATE_3301
$fFun += 4.0

:GFDATE_3301
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_3315
if and
  Char.IsInAnyCar(0@)
  not Car.IsDead(28@)
goto_if_false @GFDATE_3501
if 
  Car.IsStopped(28@)
goto_if_false @GFDATE_3501
26@ = Zone.GetCurrentPopulationZoneType()
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 14
goto_if_false @GFDATE_3501
if or
  is_int_lvar_equal_to_constant 26@ == 10
  is_int_lvar_equal_to_constant 26@ == 3
goto_if_false @GFDATE_3501
26@ = Clock.GetMinutesToTimeOfDay(6, 0)
if or
  30 >= 25@
  25@ >= 1380
goto_if_false @GFDATE_3456
$fFun += 4.0
goto @GFDATE_3501

:GFDATE_3456
26@ = Clock.GetMinutesToTimeOfDay(20, 0)
if or
  30 >= 25@
  25@ >= 1380
goto_if_false @GFDATE_3501
$fFun += 4.0

:GFDATE_3501
gosub @GFDATE_24664
$iTransitionStages += 1
goto @GFDATE_3664

:GFDATE_3522
if and
  $9466 >= 100
  not is_local_var_bit_set_const 3@ {n} 2
goto_if_false @GFDATE_3585
set_global_var_bit_const $iDateReport {n} 2
set_var_int_to_constant $iGFSayContext = 278
set_local_var_bit_const 3@ {n} 2
gosub @GFDATE_32037
return 
goto @GFDATE_3640

:GFDATE_3585
if and
  0 >= $9466
  not is_local_var_bit_set_const 3@ {n} 7
goto_if_false @GFDATE_3640
clear_global_var_bit_const $iDateReport {n} 2
set_local_var_bit_const 3@ {n} 7
1@ = 5
2@ = 0
return 

:GFDATE_3640
$fFun = 0.0
$iTransitionStages = 0
goto @GFDATE_3664

:GFDATE_3664
return 

:GFDATE_3666
switch_start 1@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @GFDATE_3962 {caseNum1} 0 {caseLabel1} @GFDATE_3794 {caseNum2} 1 {caseLabel2} @GFDATE_3808 {caseNum3} 2 {caseLabel3} @GFDATE_3822 {caseNum4} 3 {caseLabel4} @GFDATE_3836 {caseNum5} 4 {caseLabel5} @GFDATE_3850 {caseNum6} 5 {caseLabel6} @GFDATE_3864 {caseNum7} 6 {caseLabel7} @GFDATE_3878
switch_continued 7 {caseLabel1} @GFDATE_3892 {caseNum2} 8 {caseLabel2} @GFDATE_3906 {caseNum3} 9 {caseLabel3} @GFDATE_3920 {caseNum4} 10 {caseLabel4} @GFDATE_3934 {caseNum5} 11 {caseLabel5} @GFDATE_3948 {caseNum6} -1 {caseLabel6} @GFDATE_3962 {caseNum7} -1 {caseLabel7} @GFDATE_3962 {caseNum8} -1 {caseLabel8} @GFDATE_3962 {caseNum9} -1 {caseLabel9} @GFDATE_3962

:GFDATE_3794
gosub @GFDATE_3964
goto @GFDATE_3962

:GFDATE_3808
gosub @GFDATE_4766
goto @GFDATE_3962

:GFDATE_3822
gosub @GFDATE_5065
goto @GFDATE_3962

:GFDATE_3836
gosub @GFDATE_5797
goto @GFDATE_3962

:GFDATE_3850
gosub @GFDATE_6939
goto @GFDATE_3962

:GFDATE_3864
gosub @GFDATE_7658
goto @GFDATE_3962

:GFDATE_3878
gosub @GFDATE_7780
goto @GFDATE_3962

:GFDATE_3892
gosub @GFDATE_10846
goto @GFDATE_3962

:GFDATE_3906
gosub @GFDATE_12141
goto @GFDATE_3962

:GFDATE_3920
gosub @GFDATE_14307
goto @GFDATE_3962

:GFDATE_3934
gosub @GFDATE_14557
goto @GFDATE_3962

:GFDATE_3948
gosub @GFDATE_14904
goto @GFDATE_3962

:GFDATE_3962
return 

:GFDATE_3964
switch_start 2@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFDATE_4764 {caseNum1} 0 {caseLabel1} @GFDATE_4027 {caseNum2} 1 {caseLabel2} @GFDATE_4306 {caseNum3} 2 {caseLabel3} @GFDATE_4562 {caseNum4} 3 {caseLabel4} @GFDATE_4642 {caseNum5} -1 {caseLabel5} @GFDATE_4764 {caseNum6} -1 {caseLabel6} @GFDATE_4764 {caseNum7} -1 {caseLabel7} @GFDATE_4764

:GFDATE_4027
set_local_var_bit_const 3@ {n} 1
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
if 
  is_global_var_bit_set_const $iDateReport {n} 14
goto_if_false @GFDATE_4108
set_local_var_bit_const 3@ {n} 9
set_global_var_bit_const $iDateReport {n} 2
set_global_var_bit_const $iDateReport {n} 3
1@ = 3
2@ = 0
goto @GFDATE_4764

:GFDATE_4108
Hud.SwitchWidescreen(True)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene(0@, True)
Char.SetOnlyDamagedByPlayer(0@, True)
gosub @GFDATE_22388
World.ClearArea(6@, 9@, 12@, 2.0, True)
Camera.SetFixedPosition(4@, 7@, 10@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(5@, 8@, 11@, SwitchType.JumpCut)
Object.LockDoor($iGFdoor($iGFidx,7i), False)
gosub @GFDATE_16340
if 
  25@ == -1
goto_if_false @GFDATE_4263
set_local_var_bit_const 3@ {n} 16
Task.GotoChar(0@, $scplayer, 5000, 2.5)
goto @GFDATE_4285

:GFDATE_4263
Group.SetMember($Players_Group, 0@)
Char.ListenToPlayerGroupCommands(0@, False)
Player.SetGroupToFollowAlways($player1, True)

:GFDATE_4285
TIMERB = 0
2@ += 1
goto @GFDATE_4764

:GFDATE_4306
4@, 7@, 10@ = Char.GetCoordinates($scplayer)
5@, 8@, 11@ = Char.GetCoordinates(0@)
13@ = Math.GetDistanceBetweenCoords3D(4@, 7@, 10@, 5@, 8@, 11@)
if 
  TIMERB >= 6000
goto_if_false @GFDATE_4420
5@, 8@, 11@ = Path.GetClosestCharNode(5@, 8@, 11@)
Char.SetCoordinates(0@, 5@, 8@, 11@)
13@ = 1.0

:GFDATE_4420
if 
  3.0 >= 13@
goto_if_false @GFDATE_4555
Camera.PointAtPoint(4@, 7@, 10@, SwitchType.Interpolation)
Object.LockDoor($iGFdoor($iGFidx,7i), True)
if 
  is_local_var_bit_set_const 3@ {n} 16
goto_if_false @GFDATE_4525
Char.SetOnlyDamagedByPlayer(0@, False)
set_local_var_bit_const 3@ {n} 9
1@ = 3
2@ = 3
goto @GFDATE_4764
goto @GFDATE_4555

:GFDATE_4525
set_var_int_to_constant $iGFSayContext = 293
set_var_int_to_constant $iCJSayContext = 238
TIMERB = 0
2@ += 1

:GFDATE_4555
goto @GFDATE_4764

:GFDATE_4562
if 
  TIMERB >= 3000
goto_if_false @GFDATE_4635
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene(0@, False)
Char.SetOnlyDamagedByPlayer(0@, False)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
2@ += 1

:GFDATE_4635
goto @GFDATE_4764

:GFDATE_4642
gosub @GFDATE_17110
if 
  is_global_var_bit_set_const $iDateReport {n} 11
goto_if_false @GFDATE_4678
Text.PrintHelp('GF_0036')

:GFDATE_4678
if 
  is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_4707
Text.PrintHelp('GF_0037')

:GFDATE_4707
if 
  is_global_var_bit_set_const $iDateReport {n} 13
goto_if_false @GFDATE_4736
Text.PrintHelp('GF_0038')

:GFDATE_4736
clear_local_var_bit_const 3@ {n} 1
1@ = 1
2@ = 0
goto @GFDATE_4764

:GFDATE_4764
return 

:GFDATE_4766
switch_start 2@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFDATE_5063 {caseNum1} 0 {caseLabel1} @GFDATE_4829 {caseNum2} 1 {caseLabel2} @GFDATE_4857 {caseNum3} 2 {caseLabel3} @GFDATE_4943 {caseNum4} -1 {caseLabel4} @GFDATE_5063 {caseNum5} -1 {caseLabel5} @GFDATE_5063 {caseNum6} -1 {caseLabel6} @GFDATE_5063 {caseNum7} -1 {caseLabel7} @GFDATE_5063

:GFDATE_4829
clear_local_var_bit_const 3@ {n} 5
clear_local_var_bit_const 3@ {n} 6
2@ += 1
goto @GFDATE_5063

:GFDATE_4857
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 21
goto_if_false @GFDATE_4929
if and
  not is_local_var_bit_set_const 3@ {n} 7
  not Char.IsRespondingToEvent(0@, 36)
goto_if_false @GFDATE_4929
if 
  Char.IsCurrentWeapon(0@, WeaponType.MicroUzi)
goto_if_false @GFDATE_4929
Char.SetCurrentWeapon(0@, WeaponType.Unarmed)

:GFDATE_4929
2@ += 1
goto @GFDATE_5063

:GFDATE_4943
if 
  not is_global_var_bit_set_const $iDateReport {n} 22
goto_if_false @GFDATE_5049
if and
  is_local_var_bit_set_const 3@ {n} 29
  not is_local_var_bit_set_const 3@ {n} 7
goto_if_false @GFDATE_5035
if 
  TIMERB > 25000
goto_if_false @GFDATE_5028
set_var_int_to_constant $iGFSayContext = 271
set_var_int_to_constant $iCJSayContext = 240
clear_local_var_bit_const 3@ {n} 29

:GFDATE_5028
goto @GFDATE_5049

:GFDATE_5035
TIMERB = 0
set_local_var_bit_const 3@ {n} 29

:GFDATE_5049
2@ = 0
goto @GFDATE_5063

:GFDATE_5063
return 

:GFDATE_5065
switch_start 2@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @GFDATE_5795 {caseNum1} 0 {caseLabel1} @GFDATE_5193 {caseNum2} 1 {caseLabel2} @GFDATE_5231 {caseNum3} 2 {caseLabel3} @GFDATE_5298 {caseNum4} 3 {caseLabel4} @GFDATE_5325 {caseNum5} 4 {caseLabel5} @GFDATE_5363 {caseNum6} 5 {caseLabel6} @GFDATE_5377 {caseNum7} 6 {caseLabel7} @GFDATE_5413
switch_continued 7 {caseLabel1} @GFDATE_5573 {caseNum2} 8 {caseLabel2} @GFDATE_5664 {caseNum3} 9 {caseLabel3} @GFDATE_5732 {caseNum4} -1 {caseLabel4} @GFDATE_5795 {caseNum5} -1 {caseLabel5} @GFDATE_5795 {caseNum6} -1 {caseLabel6} @GFDATE_5795 {caseNum7} -1 {caseLabel7} @GFDATE_5795 {caseNum8} -1 {caseLabel8} @GFDATE_5795 {caseNum9} -1 {caseLabel9} @GFDATE_5795

:GFDATE_5193
set_local_var_bit_const 3@ {n} 1
Camera.DoFade(0, Fade.Out)
gosub @GFDATE_32037
Text.ClearPrints
Text.ClearHelp
2@ += 1
goto @GFDATE_5795

:GFDATE_5231
if 
  not Camera.GetFadingStatus
goto_if_false @GFDATE_5291
Player.MakeSafeForCutscene($player1)
Char.SetCurrentWeapon(0@, WeaponType.Unarmed)
Char.SetCollision(0@, False)
Char.SetCollision($scplayer, False)
gosub @GFDATE_19988
gosub @GFDATE_20215
2@ += 1

:GFDATE_5291
goto @GFDATE_5795

:GFDATE_5298
if 
  Cutscene.HasLoaded
goto_if_false @GFDATE_5318
2@ += 1

:GFDATE_5318
goto @GFDATE_5795

:GFDATE_5325
Cutscene.SetOffset(4@, 7@, 10@)
Camera.DoFade(1000, Fade.In)
switch_rubbish 0
Cutscene.Start
2@ += 1
goto @GFDATE_5795

:GFDATE_5363
2@ += 1
goto @GFDATE_5795

:GFDATE_5377
if 
  Cutscene.HasFinished
goto_if_false @GFDATE_5406
Camera.DoFade(1000, Fade.Out)
Text.ClearPrints
2@ += 1

:GFDATE_5406
goto @GFDATE_5795

:GFDATE_5413
if 
  not Camera.GetFadingStatus
goto_if_false @GFDATE_5566
Cutscene.Clear
World.ClearExtraColors(False)
gosub @GFDATE_19097
Streaming.SetAreaVisible(0)
Char.SetAreaVisible(0@, 0)
Char.SetAreaVisible($scplayer, 0)
4@, 7@, 10@ = Char.GetCoordinates($scplayer)
World.ClearArea(4@, 7@, 10@, 2.0, True)
Streaming.LoadScene(4@, 7@, 10@)
Streaming.RequestCollision(4@, 7@)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately(0@)
if 
  not Char.IsGroupMember(0@, $Players_Group)
goto_if_false @GFDATE_5559
Group.SetMember($Players_Group, 0@)
Char.ListenToPlayerGroupCommands(0@, False)
Player.SetGroupToFollowAlways($player1, True)

:GFDATE_5559
2@ += 1

:GFDATE_5566
goto @GFDATE_5795

:GFDATE_5573
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene(0@, False)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Hud.DisplayRadar(True)
Char.SetCollision(0@, True)
Char.SetCollision($scplayer, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
switch_rubbish 1
Char.ClearTasks($scplayer)
Task.Pause(0@, 0)
Camera.DoFade(500, Fade.In)
2@ += 1
goto @GFDATE_5795

:GFDATE_5664
if 
  not Camera.GetFadingStatus
goto_if_false @GFDATE_5725
if 
  is_global_var_bit_set_const $iDateReport {n} 2
goto_if_false @GFDATE_5710
set_var_int_to_constant $iGFSayContext = 275
goto @GFDATE_5718

:GFDATE_5710
set_var_int_to_constant $iGFSayContext = 276

:GFDATE_5718
2@ += 1

:GFDATE_5725
goto @GFDATE_5795

:GFDATE_5732
if and
  $iGFSayContext == -1
  not Text.IsMessageBeingDisplayed
goto_if_false @GFDATE_5788
set_var_int_to_constant $iGFSayContext = 278
clear_local_var_bit_const 3@ {n} 1
set_local_var_bit_const 3@ {n} 2
1@ = 1
2@ = 0

:GFDATE_5788
goto @GFDATE_5795

:GFDATE_5795
return 

:GFDATE_5797
switch_start 2@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @GFDATE_6937 {caseNum1} 0 {caseLabel1} @GFDATE_5925 {caseNum2} 1 {caseLabel2} @GFDATE_5953 {caseNum3} 2 {caseLabel3} @GFDATE_6141 {caseNum4} 3 {caseLabel4} @GFDATE_6162 {caseNum5} 4 {caseLabel5} @GFDATE_6632 {caseNum6} 5 {caseLabel6} @GFDATE_6695 {caseNum7} 6 {caseLabel7} @GFDATE_6837
switch_continued 7 {caseLabel1} @GFDATE_6884 {caseNum2} -1 {caseLabel2} @GFDATE_6937 {caseNum3} -1 {caseLabel3} @GFDATE_6937 {caseNum4} -1 {caseLabel4} @GFDATE_6937 {caseNum5} -1 {caseLabel5} @GFDATE_6937 {caseNum6} -1 {caseLabel6} @GFDATE_6937 {caseNum7} -1 {caseLabel7} @GFDATE_6937 {caseNum8} -1 {caseLabel8} @GFDATE_6937 {caseNum9} -1 {caseLabel9} @GFDATE_6937

:GFDATE_5925
set_local_var_bit_const 3@ {n} 1
Camera.DoFade(500, Fade.Out)
2@ += 1
goto @GFDATE_6937

:GFDATE_5953
set_local_var_bit_const 3@ {n} 1
if 
  not Camera.GetFadingStatus
goto_if_false @GFDATE_6134
gosub @GFDATE_32037
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
if 
  Char.IsGroupMember(0@, $Players_Group)
goto_if_false @GFDATE_6018
Char.RemoveFromGroup(0@)

:GFDATE_6018
Hud.SwitchWidescreen(True)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene(0@, True)
gosub @GFDATE_22388
World.ClearArea(6@, 9@, 12@, 1.0, True)
Camera.SetFixedPosition(4@, 7@, 10@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(5@, 8@, 11@, SwitchType.JumpCut)
Char.ClearTasksImmediately(0@)
Char.SetCoordinates(0@, 6@, 9@, 12@)
Task.AchieveHeading(0@, 13@)
2@ += 1

:GFDATE_6134
goto @GFDATE_6937

:GFDATE_6141
Camera.DoFade(1000, Fade.In)
2@ += 1
goto @GFDATE_6937

:GFDATE_6162
if 
  not Camera.GetFadingStatus
goto_if_false @GFDATE_6625
if 
  is_local_var_bit_set_const 3@ {n} 9
goto_if_false @GFDATE_6392
if 
  is_global_var_bit_set_const $iDateReport {n} 14
goto_if_false @GFDATE_6248
set_var_int_to_constant $iGFSayContext = 267
TIMERB = 0
25@ = 5000
2@ = 6
goto @GFDATE_6937

:GFDATE_6248
if 
  $iGFLikesPlayer($iGFidx,6i) == -99
goto_if_false @GFDATE_6304
$iGFLikesPlayer($iGFidx,6i) = -100
set_var_int_to_constant $iGFSayContext = 309
clear_global_var_bit_var $iActiveGF {var_n} $iGFidx
goto @GFDATE_6363

:GFDATE_6304
if 
  is_local_var_bit_set_const 3@ {n} 16
goto_if_false @GFDATE_6363
if 
  is_local_var_bit_set_const 3@ {n} 23
goto_if_false @GFDATE_6355
set_var_int_to_constant $iGFSayContext = 312
goto @GFDATE_6363

:GFDATE_6355
set_var_int_to_constant $iGFSayContext = 311

:GFDATE_6363
TIMERB = 0
25@ = 5000
2@ = 6
goto @GFDATE_6625

:GFDATE_6392
if 
  is_local_var_bit_set_const 3@ {n} 7
goto_if_false @GFDATE_6447
set_var_int_to_constant $iGFSayContext = 291
TIMERB = 0
25@ = 5000
2@ = 6
goto @GFDATE_6625

:GFDATE_6447
if 
  is_global_var_bit_set_const $iDateReport {n} 2
goto_if_false @GFDATE_6573
if 
  is_int_var_greater_or_equal_to_int_var $iGFLikesPlayer($iGFidx,6i) >= $iGFSelfRespect($iGFidx,6i)
goto_if_false @GFDATE_6528
set_var_int_to_constant $iGFSayContext = 280
TIMERB = 0
25@ = 0
2@ += 1
goto @GFDATE_6566

:GFDATE_6528
set_var_int_to_constant $iGFSayContext = 287
set_var_int_to_constant $iCJSayContext = 239
TIMERB = 0
25@ = 5000
2@ = 6

:GFDATE_6566
goto @GFDATE_6625

:GFDATE_6573
if 
  -15 >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFDATE_6603
set_var_int_to_constant $iGFSayContext = 309

:GFDATE_6603
TIMERB = 0
25@ = 5000
2@ = 6

:GFDATE_6625
goto @GFDATE_6937

:GFDATE_6632
if 
  TIMERB >= 5000
goto_if_false @GFDATE_6688
Text.PrintHelpForever('TALK_1')
if 
  TIMERB > 5100
goto_if_false @GFDATE_6688
2@ += 1

:GFDATE_6688
goto @GFDATE_6937

:GFDATE_6695
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @GFDATE_6766
Text.ClearPrints
Text.ClearHelp
set_global_var_bit_const $iDateReport {n} 3
$iGFSayContext = -2
set_var_int_to_constant $iCJSayContext = 46
TIMERB = 0
25@ = 3500
2@ += 1
goto @GFDATE_6830

:GFDATE_6766
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @GFDATE_6830
Text.ClearPrints
Text.ClearHelp
clear_global_var_bit_const $iDateReport {n} 3
$iGFSayContext = -2
set_var_int_to_constant $iCJSayContext = 47
TIMERB = 0
25@ = 3500
2@ += 1

:GFDATE_6830
goto @GFDATE_6937

:GFDATE_6837
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 25@
goto_if_false @GFDATE_6877
set_global_var_bit_const $iDateReport {n} 6
Camera.DoFade(1000, Fade.Out)
2@ += 1

:GFDATE_6877
goto @GFDATE_6937

:GFDATE_6884
if 
  not Camera.GetFadingStatus
goto_if_false @GFDATE_6930
Hud.SwitchWidescreen(False)
Hud.DisplayRadar(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
gosub @GFDATE_32147

:GFDATE_6930
goto @GFDATE_6937

:GFDATE_6937
return 

:GFDATE_6939
switch_start 2@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFDATE_7656 {caseNum1} 0 {caseLabel1} @GFDATE_7002 {caseNum2} 1 {caseLabel2} @GFDATE_7159 {caseNum3} 2 {caseLabel3} @GFDATE_7293 {caseNum4} 3 {caseLabel4} @GFDATE_7442 {caseNum5} 4 {caseLabel5} @GFDATE_7542 {caseNum6} -1 {caseLabel6} @GFDATE_7656 {caseNum7} -1 {caseLabel7} @GFDATE_7656

:GFDATE_7002
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 21
  not is_local_var_bit_set_const 3@ {n} 2
goto_if_false @GFDATE_7145
if 
  not is_local_var_bit_set_const 3@ {n} 7
goto_if_false @GFDATE_7145
if 
  not is_local_var_bit_set_const 3@ {n} 27
goto_if_false @GFDATE_7145
gosub @GFDATE_23095
if 
  25@ > 0
goto_if_false @GFDATE_7145
if and
  not Text.IsMessageBeingDisplayed
  not Char.IsTalking($scplayer)
  not Char.IsTalking(0@)
goto_if_false @GFDATE_7145
set_var_int_to_constant $iGFSayContext = 301
set_var_int_to_constant $iCJSayContext = 242
2@ = 4
goto @GFDATE_7656

:GFDATE_7145
2@ += 1
goto @GFDATE_7656

:GFDATE_7159
if 
  not Car.IsDead(28@)
goto_if_false @GFDATE_7265
if 
  Car.IsStopped(28@)
goto_if_false @GFDATE_7244
if and
  not is_local_var_bit_set_const 3@ {n} 5
  not is_global_var_bit_set_const $iDateReport {n} 22
goto_if_false @GFDATE_7237
TIMERB = 0
2@ = 3
goto @GFDATE_7656

:GFDATE_7237
goto @GFDATE_7258

:GFDATE_7244
clear_local_var_bit_const 3@ {n} 30
clear_local_var_bit_const 3@ {n} 5

:GFDATE_7258
goto @GFDATE_7279

:GFDATE_7265
clear_local_var_bit_const 3@ {n} 30
clear_local_var_bit_const 3@ {n} 5

:GFDATE_7279
2@ += 1
goto @GFDATE_7656

:GFDATE_7293
if 
  is_local_var_bit_set_const 3@ {n} 29
goto_if_false @GFDATE_7396
if 
  not is_global_var_bit_set_const $iDateReport {n} 22
goto_if_false @GFDATE_7389
if 
  not is_local_var_bit_set_const 3@ {n} 7
goto_if_false @GFDATE_7389
if 
  TIMERB > 25000
goto_if_false @GFDATE_7389
set_var_int_to_constant $iGFSayContext = 271
set_var_int_to_constant $iCJSayContext = 240
clear_local_var_bit_const 3@ {n} 29

:GFDATE_7389
goto @GFDATE_7428

:GFDATE_7396
if 
  not is_global_var_bit_set_const $iDateReport {n} 22
goto_if_false @GFDATE_7428
TIMERB = 0
set_local_var_bit_const 3@ {n} 29

:GFDATE_7428
2@ += 1
goto @GFDATE_7656

:GFDATE_7442
if 
  not Car.IsDead(28@)
goto_if_false @GFDATE_7528
if 
  not Car.IsStopped(28@)
goto_if_false @GFDATE_7488
2@ = 0
goto @GFDATE_7521

:GFDATE_7488
if 
  TIMERB > 10000
goto_if_false @GFDATE_7521
set_local_var_bit_const 3@ {n} 5
2@ = 0

:GFDATE_7521
goto @GFDATE_7535

:GFDATE_7528
2@ = 0

:GFDATE_7535
goto @GFDATE_7656

:GFDATE_7542
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 21
  not is_local_var_bit_set_const 3@ {n} 2
goto_if_false @GFDATE_7642
if 
  not Char.IsCurrentWeapon(0@, WeaponType.MicroUzi)
goto_if_false @GFDATE_7596
Char.SetCurrentWeapon(0@, WeaponType.MicroUzi)

:GFDATE_7596
gosub @GFDATE_23095
if 
  0 >= 25@
goto_if_false @GFDATE_7635
Char.SetCurrentWeapon(0@, WeaponType.Unarmed)
2@ = 0

:GFDATE_7635
goto @GFDATE_7649

:GFDATE_7642
2@ = 0

:GFDATE_7649
goto @GFDATE_7656

:GFDATE_7656
return 

:GFDATE_7658
switch_start 2@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @GFDATE_7778 {caseNum1} 0 {caseLabel1} @GFDATE_7721 {caseNum2} -1 {caseLabel2} @GFDATE_7778 {caseNum3} -1 {caseLabel3} @GFDATE_7778 {caseNum4} -1 {caseLabel4} @GFDATE_7778 {caseNum5} -1 {caseLabel5} @GFDATE_7778 {caseNum6} -1 {caseLabel6} @GFDATE_7778 {caseNum7} -1 {caseLabel7} @GFDATE_7778

:GFDATE_7721
clear_global_var_bit_const $iDateReport {n} 2
set_local_var_bit_const 3@ {n} 2
set_local_var_bit_const 3@ {n} 7
set_var_int_to_constant $iGFSayContext = 279
gosub @GFDATE_32037
gosub @GFDATE_19242
$iDanceScore = 1
goto @GFDATE_7778

:GFDATE_7778
return 

:GFDATE_7780
switch_start 2@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @GFDATE_10844 {caseNum1} 0 {caseLabel1} @GFDATE_7843 {caseNum2} 1 {caseLabel2} @GFDATE_8016 {caseNum3} 2 {caseLabel3} @GFDATE_8491 {caseNum4} 3 {caseLabel4} @GFDATE_9079 {caseNum5} 4 {caseLabel5} @GFDATE_9422 {caseNum6} 5 {caseLabel6} @GFDATE_9669 {caseNum7} 6 {caseLabel7} @GFDATE_9868

:GFDATE_7843
set_local_var_bit_const 3@ {n} 1
Text.ClearHelp
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene(0@, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
4@, 7@, 10@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 2.0)
5@, 8@, 11@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsOff(4@, 7@, 10@, 5@, 8@, 11@)
Path.SwitchPedRoadsOff(4@, 7@, 10@, 5@, 8@, 11@)
Task.TurnCharToFaceChar($scplayer, 0@)
Task.TurnCharToFaceChar(0@, $scplayer)
2@ += 1
goto @GFDATE_10844

:GFDATE_8016
25@ = Char.GetScriptTaskStatus($scplayer, 1593)
26@ = Char.GetScriptTaskStatus(0@, 1593)
if and
  is_int_lvar_equal_to_constant 25@ == 7
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_8354
Char.SetCollision($scplayer, False)
Char.SetCollision(0@, False)
5@, 8@, 11@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, 0.0)
11@ = World.GetGroundZFor3DCoord(5@, 8@, 11@)
6@, 9@, 12@ = Char.GetCoordinates(0@)
12@ = World.GetGroundZFor3DCoord(6@, 9@, 12@)
Char.SetCoordinates(0@, 5@, 8@, 11@)
13@ = Char.GetHeading($scplayer)
13@ += 180.0
Char.SetHeading(0@, 13@)
4@, 7@, 10@ = Char.GetOffsetInWorldCoords($scplayer, 1.2, -1.0, 0.5)
5@, 8@, 11@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.7, 0.5)
if 
  World.IsLineOfSightClear(4@, 7@, 10@, 5@, 8@, 11@, True, True, False, True, False)
goto_if_false @GFDATE_8326
Camera.SetFixedPosition(4@, 7@, 10@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(5@, 8@, 11@, SwitchType.JumpCut)

:GFDATE_8326
Task.StandStill($scplayer, -1)
Task.StandStill(0@, -1)
2@ += 1
goto @GFDATE_8484

:GFDATE_8354
25@ = Char.GetScriptTaskStatus($scplayer, 1593)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_8419
25@ = Char.GetScriptTaskStatus($scplayer, 1466)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_8419
Task.StandStill($scplayer, -1)

:GFDATE_8419
25@ = Char.GetScriptTaskStatus(0@, 1593)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_8484
25@ = Char.GetScriptTaskStatus(0@, 1466)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_8484
Task.StandStill(0@, -1)

:GFDATE_8484
goto @GFDATE_10844

:GFDATE_8491
Char.SetCollision($scplayer, True)
Char.SetCollision(0@, True)
cset_lvar_float_to_var_int 13@ =# $iGFSelfRespect($iGFidx,6i)
13@ /= 1.2
cset_lvar_float_to_var_int 14@ =# $iGFLikesPlayer($iGFidx,6i)
if 
  is_float_lvar_greater_or_equal_to_float_lvar 13@ >= 14@
goto_if_false @GFDATE_8661
Task.PlayAnim($scplayer, "PLAYA_KISS_01", "KISSING", 4.0, False, False, False, False, 0)
Task.PlayAnim(0@, "GRLFRD_KISS_01", "KISSING", 4.0, False, False, False, False, 0)
2@ = 6
goto @GFDATE_9072

:GFDATE_8661
if 
  is_int_var_greater_or_equal_to_int_var $iGFSelfRespect($iGFidx,6i) >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFDATE_8791
Task.PlayAnim($scplayer, "PLAYA_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
Task.PlayAnim(0@, "GRLFRD_KISS_02", "KISSING", 4.0, False, False, False, False, 0)
2@ = 6
goto @GFDATE_9072

:GFDATE_8791
Task.PlayAnim($scplayer, "PLAYA_KISS_03", "KISSING", 4.0, False, False, False, False, 0)
Task.PlayAnim(0@, "GRLFRD_KISS_03", "KISSING", 4.0, False, False, False, False, 0)
if 
  Char.IsNearAnyChars(0@, 25.0)
goto_if_false @GFDATE_9026
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 27
goto_if_false @GFDATE_9012
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 28
goto_if_false @GFDATE_8998
if 
  $iCensoredVersion == 0
goto_if_false @GFDATE_8977
2@ += 1
goto @GFDATE_8991

:GFDATE_8977
set_local_var_bit_const 3@ {n} 25
2@ = 6

:GFDATE_8991
goto @GFDATE_9005

:GFDATE_8998
2@ = 6

:GFDATE_9005
goto @GFDATE_9019

:GFDATE_9012
2@ = 6

:GFDATE_9019
goto @GFDATE_9072

:GFDATE_9026
if 
  $iCensoredVersion == 0
goto_if_false @GFDATE_9058
2@ += 1
goto @GFDATE_9072

:GFDATE_9058
set_local_var_bit_const 3@ {n} 25
2@ = 6

:GFDATE_9072
goto @GFDATE_10844

:GFDATE_9079
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GFDATE_9106
2@ = 6
goto @GFDATE_10844

:GFDATE_9106
if 
  not is_local_var_bit_set_const 3@ {n} 25
goto_if_false @GFDATE_9408
25@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_9401
4@, 7@, 10@ = Char.GetOffsetInWorldCoords($scplayer, 2.5, -1.2, 0.5)
5@, 8@, 11@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.7, 0.1)
if 
  World.IsLineOfSightClear(4@, 7@, 10@, 5@, 8@, 11@, True, True, False, True, False)
goto_if_false @GFDATE_9291
Camera.SetFixedPosition(4@, 7@, 10@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(5@, 8@, 11@, SwitchType.JumpCut)

:GFDATE_9291
Task.PlayAnim($scplayer, "BJ_STAND_START_P", "BLOWJOBZ", 4.0, False, False, False, True, 0)
Task.PlayAnim(0@, "BJ_STAND_START_W", "BLOWJOBZ", 4.0, False, False, False, True, 0)
set_local_var_bit_const 3@ {n} 25
2@ += 1

:GFDATE_9401
goto @GFDATE_9415

:GFDATE_9408
2@ = 6

:GFDATE_9415
goto @GFDATE_10844

:GFDATE_9422
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GFDATE_9449
2@ = 6
goto @GFDATE_10844

:GFDATE_9449
if 
  Char.IsPlayingAnim($scplayer, "BJ_STAND_START_P")
goto_if_false @GFDATE_9655
13@ = Char.GetAnimCurrentTime($scplayer, "BJ_STAND_START_P")
if 
  13@ == 1.0
goto_if_false @GFDATE_9648
Task.PlayAnim($scplayer, "BJ_STAND_LOOP_P", "BLOWJOBZ", 4.0, True, False, False, True, 6000)
Task.PlayAnim(0@, "BJ_STAND_LOOP_W", "BLOWJOBZ", 4.0, True, False, False, True, 6000)
set_var_int_to_constant $iGFSayContext = 282
TIMERB = 0
2@ += 1

:GFDATE_9648
goto @GFDATE_9662

:GFDATE_9655
2@ = 6

:GFDATE_9662
goto @GFDATE_10844

:GFDATE_9669
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GFDATE_9696
2@ = 6
goto @GFDATE_10844

:GFDATE_9696
if 
  Char.IsPlayingAnim($scplayer, "BJ_STAND_LOOP_P")
goto_if_false @GFDATE_9854
if 
  TIMERB > 6000
goto_if_false @GFDATE_9847
Task.PlayAnim($scplayer, "BJ_STAND_END_P", "BLOWJOBZ", 4.0, False, False, False, False, 0)
Task.PlayAnim(0@, "BJ_STAND_END_W", "BLOWJOBZ", 4.0, False, False, False, False, 0)
2@ += 1

:GFDATE_9847
goto @GFDATE_9861

:GFDATE_9854
2@ = 6

:GFDATE_9861
goto @GFDATE_10844

:GFDATE_9868
if 
  not is_local_var_bit_set_const 3@ {n} 24
goto_if_false @GFDATE_10133
set_local_var_bit_const 3@ {n} 24
if and
  is_int_var_greater_than_int_lvar $iGFLikesPlayer($iGFidx,6i) > 25@
  is_int_var_greater_than_int_var $iGFSelfRespect($iGFidx,6i) > $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFDATE_10000
if and
  Char.IsNearAnyChars(0@, 20.0)
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 27
goto_if_false @GFDATE_9982
$iGFLikesPlayer($iGFidx,6i) += 1
goto @GFDATE_9993

:GFDATE_9982
$iGFLikesPlayer($iGFidx,6i) -= 1

:GFDATE_9993
goto @GFDATE_10133

:GFDATE_10000
if and
  is_int_var_greater_than_int_lvar $iGFLikesPlayer($iGFidx,6i) > 25@
  is_int_var_greater_or_equal_to_int_var $iGFLikesPlayer($iGFidx,6i) >= $iGFSelfRespect($iGFidx,6i)
goto_if_false @GFDATE_10133
if and
  Char.IsNearAnyChars(0@, 20.0)
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 27
goto_if_false @GFDATE_10122
$iGFLikesPlayer($iGFidx,6i) += 1
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 28
goto_if_false @GFDATE_10115
$iGFLikesPlayer($iGFidx,6i) += 1

:GFDATE_10115
goto @GFDATE_10133

:GFDATE_10122
$iGFLikesPlayer($iGFidx,6i) -= 1

:GFDATE_10133
13@ = -1.0
if 
  Char.IsPlayingAnim($scplayer, "BJ_STAND_END_P")
goto_if_false @GFDATE_10199
13@ = Char.GetAnimCurrentTime($scplayer, "BJ_STAND_END_P")

:GFDATE_10199
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_01")
goto_if_false @GFDATE_10253
13@ = Char.GetAnimCurrentTime($scplayer, "PLAYA_KISS_01")

:GFDATE_10253
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_02")
goto_if_false @GFDATE_10307
13@ = Char.GetAnimCurrentTime($scplayer, "PLAYA_KISS_02")

:GFDATE_10307
if 
  Char.IsPlayingAnim($scplayer, "PLAYA_KISS_03")
goto_if_false @GFDATE_10361
13@ = Char.GetAnimCurrentTime($scplayer, "PLAYA_KISS_03")

:GFDATE_10361
if 
  13@ > -1.0
goto_if_false @GFDATE_10597
if 
  13@ == 1.0
goto_if_false @GFDATE_10590
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene(0@, False)
Char.SetCoordinates(0@, 6@, 9@, 12@)
4@, 7@, 10@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
5@, 8@, 11@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(4@, 7@, 10@, 5@, 8@, 11@)
Path.SwitchPedRoadsBackToOriginal(4@, 7@, 10@, 5@, 8@, 11@)
Char.SetCollision($scplayer, True)
Char.SetCollision(0@, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
clear_local_var_bit_const 3@ {n} 1
1@ = 1
2@ = 0

:GFDATE_10590
goto @GFDATE_10837

:GFDATE_10597
Char.ClearTasks($scplayer)
Task.Pause(0@, 0)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene(0@, False)
Char.SetCoordinates(0@, 6@, 9@, 12@)
4@, 7@, 10@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
5@, 8@, 11@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(4@, 7@, 10@, 5@, 8@, 11@)
Path.SwitchPedRoadsBackToOriginal(4@, 7@, 10@, 5@, 8@, 11@)
Char.SetCollision($scplayer, True)
Char.SetCollision(0@, True)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
if 
  not Char.IsGroupMember(0@, $Players_Group)
goto_if_false @GFDATE_10816
Group.SetMember($Players_Group, 0@)
Char.ListenToPlayerGroupCommands(0@, False)
Player.SetGroupToFollowAlways($player1, True)

:GFDATE_10816
clear_local_var_bit_const 3@ {n} 1
1@ = 1
2@ = 0

:GFDATE_10837
goto @GFDATE_10844

:GFDATE_10844
return 

:GFDATE_10846
switch_start 2@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFDATE_12139 {caseNum1} 0 {caseLabel1} @GFDATE_10909 {caseNum2} 1 {caseLabel2} @GFDATE_11228 {caseNum3} 2 {caseLabel3} @GFDATE_11343 {caseNum4} 3 {caseLabel4} @GFDATE_11469 {caseNum5} 4 {caseLabel5} @GFDATE_11655 {caseNum6} 5 {caseLabel6} @GFDATE_11796 {caseNum7} -1 {caseLabel7} @GFDATE_12139

:GFDATE_10909
if 
  $iCensoredVersion == 1
goto_if_false @GFDATE_10969
set_local_var_bit_const 3@ {n} 30
clear_local_var_bit_const 3@ {n} 1
1@ = 4
2@ = 0
goto @GFDATE_12139
goto @GFDATE_11221

:GFDATE_10969
set_local_var_bit_const 3@ {n} 1
if and
  is_int_var_greater_or_equal_to_int_var $iGFLikesPlayer($iGFidx,6i) >= $iGFSelfRespect($iGFidx,6i)
  not Car.IsDead(28@)
  not Car.IsPassengerSeatFree(28@, SeatIndex.TandemRear)
goto_if_false @GFDATE_11193
27@ = Car.GetCharInPassengerSeat(28@, 0)
if 
  is_int_lvar_equal_to_int_lvar 27@ == 0@
goto_if_false @GFDATE_11158
if 
  Char.IsNearAnyChars(0@, 25.0)
goto_if_false @GFDATE_11144
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 28
goto_if_false @GFDATE_11101
2@ += 1
goto @GFDATE_11137

:GFDATE_11101
set_var_int_to_constant $iGFSayContext = 297
clear_local_var_bit_const 3@ {n} 1
set_local_var_bit_const 3@ {n} 30
1@ = 4
2@ = 0

:GFDATE_11137
goto @GFDATE_11151

:GFDATE_11144
2@ += 1

:GFDATE_11151
goto @GFDATE_11186

:GFDATE_11158
clear_local_var_bit_const 3@ {n} 1
set_local_var_bit_const 3@ {n} 30
1@ = 4
2@ = 0

:GFDATE_11186
goto @GFDATE_11221

:GFDATE_11193
clear_local_var_bit_const 3@ {n} 1
set_local_var_bit_const 3@ {n} 30
1@ = 4
2@ = 0

:GFDATE_11221
goto @GFDATE_12139

:GFDATE_11228
set_local_var_bit_const 3@ {n} 6
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene(0@, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
if 
  not Car.IsDead(28@)
goto_if_false @GFDATE_11329
Camera.AttachToVehicle(28@, 4.0, 4.0, 1.0, 0.0, 0.0, 0.0, 0.0, SwitchType.JumpCut)

:GFDATE_11329
2@ += 1
goto @GFDATE_12139

:GFDATE_11343
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GFDATE_11363
2@ = 5

:GFDATE_11363
Task.PlayAnimNonInterruptable($scplayer, "BJ_CAR_START_P", "BLOWJOBZ", 4.0, False, False, False, True, 0)
Task.PlayAnimNonInterruptable(0@, "BJ_CAR_START_W", "BLOWJOBZ", 4.0, False, False, False, True, 0)
2@ += 1
goto @GFDATE_12139

:GFDATE_11469
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GFDATE_11489
2@ = 5

:GFDATE_11489
13@ = Char.GetAnimCurrentTime($scplayer, "BJ_CAR_START_P")
if 
  13@ == 1.0
goto_if_false @GFDATE_11648
Task.PlayAnimNonInterruptable($scplayer, "BJ_CAR_LOOP_P", "BLOWJOBZ", 4.0, True, False, False, True, 6000)
Task.PlayAnimNonInterruptable(0@, "BJ_CAR_LOOP_W", "BLOWJOBZ", 4.0, True, False, False, True, 6000)
set_var_int_to_constant $iGFSayContext = 282
TIMERB = 0
2@ += 1

:GFDATE_11648
goto @GFDATE_12139

:GFDATE_11655
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GFDATE_11675
2@ = 5

:GFDATE_11675
if 
  TIMERB > 6000
goto_if_false @GFDATE_11789
Task.PlayAnimNonInterruptable($scplayer, "BJ_CAR_END_P", "BLOWJOBZ", 4.0, False, False, False, False, 0)
Task.PlayAnimNonInterruptable(0@, "BJ_CAR_END_W", "BLOWJOBZ", 4.0, False, False, False, False, 0)
2@ += 1

:GFDATE_11789
goto @GFDATE_12139

:GFDATE_11796
if 
  is_int_var_greater_or_equal_to_int_var $iGFLikesPlayer($iGFidx,6i) >= $iGFSelfRespect($iGFidx,6i)
goto_if_false @GFDATE_11877
$iGFLikesPlayer($iGFidx,6i) += 1
if and
  Char.IsNearAnyChars(0@, 20.0)
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 28
goto_if_false @GFDATE_11877
$iGFLikesPlayer($iGFidx,6i) += 1

:GFDATE_11877
if 
  Char.IsPlayingAnim($scplayer, "BJ_CAR_END_P")
goto_if_false @GFDATE_12018
13@ = Char.GetAnimCurrentTime($scplayer, "BJ_CAR_END_P")
if 
  13@ == 1.0
goto_if_false @GFDATE_12011
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene(0@, False)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
clear_local_var_bit_const 3@ {n} 1
1@ = 4
2@ = 0

:GFDATE_12011
goto @GFDATE_12132

:GFDATE_12018
Char.ClearTasks($scplayer)
Task.Pause(0@, 0)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene(0@, False)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
if 
  not Char.IsGroupMember(0@, $Players_Group)
goto_if_false @GFDATE_12111
Group.SetMember($Players_Group, 0@)
Char.ListenToPlayerGroupCommands(0@, False)
Player.SetGroupToFollowAlways($player1, True)

:GFDATE_12111
clear_local_var_bit_const 3@ {n} 1
1@ = 4
2@ = 0

:GFDATE_12132
goto @GFDATE_12139

:GFDATE_12139
return 

:GFDATE_12141
switch_start 2@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @GFDATE_14305 {caseNum1} 0 {caseLabel1} @GFDATE_12269 {caseNum2} 1 {caseLabel2} @GFDATE_12488 {caseNum3} 2 {caseLabel3} @GFDATE_12612 {caseNum4} 3 {caseLabel4} @GFDATE_12683 {caseNum5} 4 {caseLabel5} @GFDATE_12826 {caseNum6} 5 {caseLabel6} @GFDATE_12974 {caseNum7} 6 {caseLabel7} @GFDATE_13035
switch_continued 7 {caseLabel1} @GFDATE_13343 {caseNum2} 9 {caseLabel2} @GFDATE_13774 {caseNum3} 10 {caseLabel3} @GFDATE_13901 {caseNum4} 11 {caseLabel4} @GFDATE_14023 {caseNum5} 12 {caseLabel5} @GFDATE_14120 {caseNum6} -1 {caseLabel6} @GFDATE_14305 {caseNum7} -1 {caseLabel7} @GFDATE_14305 {caseNum8} -1 {caseLabel8} @GFDATE_14305 {caseNum9} -1 {caseLabel9} @GFDATE_14305

:GFDATE_12269
if 
  not Car.IsDead(28@)
goto_if_false @GFDATE_12443
if and
  not Char.IsOnAnyBike(0@)
  not Char.IsInFlyingVehicle(0@)
goto_if_false @GFDATE_12398
25@ = Car.GetMaximumNumberOfPassengers(28@)
if 
  25@ > 0
goto_if_false @GFDATE_12353
set_local_var_bit_const 3@ {n} 1
2@ += 1
goto @GFDATE_12391

:GFDATE_12353
if and
  not Text.IsMessageBeingDisplayed
  not is_local_var_bit_set_const 3@ {n} 14
goto_if_false @GFDATE_12391
Text.PrintHelp('GF_0049')
set_local_var_bit_const 3@ {n} 14

:GFDATE_12391
goto @GFDATE_12436

:GFDATE_12398
if and
  not Text.IsMessageBeingDisplayed
  not is_local_var_bit_set_const 3@ {n} 14
goto_if_false @GFDATE_12436
Text.PrintHelp('GF_0049')
set_local_var_bit_const 3@ {n} 14

:GFDATE_12436
goto @GFDATE_12481

:GFDATE_12443
if and
  not Text.IsMessageBeingDisplayed
  not is_local_var_bit_set_const 3@ {n} 14
goto_if_false @GFDATE_12481
Text.PrintHelp('GF_0049')
set_local_var_bit_const 3@ {n} 14

:GFDATE_12481
goto @GFDATE_14305

:GFDATE_12488
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene(0@, True)
Game.SetEveryoneIgnorePlayer($player1, True)
if 
  not Car.IsDead(28@)
goto_if_false @GFDATE_12574
Camera.AttachToVehicle(28@, 4.0, 4.0, 1.0, 0.0, 0.0, 0.0, 0.0, SwitchType.JumpCut)

:GFDATE_12574
if 
  Char.IsGroupMember(0@, $Players_Group)
goto_if_false @GFDATE_12598
Char.RemoveFromGroup(0@)

:GFDATE_12598
2@ += 1
goto @GFDATE_14305

:GFDATE_12612
if 
  not Car.IsDead(28@)
goto_if_false @GFDATE_12676
if 
  not Car.IsPassengerSeatFree(28@, SeatIndex.TandemRear)
goto_if_false @GFDATE_12661
Task.LeaveCar($scplayer, 28@)
goto @GFDATE_12669

:GFDATE_12661
Task.LeaveCar(0@, 28@)

:GFDATE_12669
2@ += 1

:GFDATE_12676
goto @GFDATE_14305

:GFDATE_12683
25@ = Char.GetScriptTaskStatus($scplayer, 1485)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_12819
25@ = Char.GetScriptTaskStatus(0@, 1485)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_12819
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @GFDATE_12784
28@ = Char.StoreCarIsInNoSave($scplayer)
Task.EnterCarAsPassenger(0@, 28@, -1, 0)
goto @GFDATE_12812

:GFDATE_12784
28@ = Char.StoreCarIsInNoSave(0@)
Task.ShuffleToNextCarSeat(0@, 28@)
Task.EnterCarAsPassenger($scplayer, 28@, -1, 0)

:GFDATE_12812
2@ += 1

:GFDATE_12819
goto @GFDATE_14305

:GFDATE_12826
25@ = Char.GetScriptTaskStatus($scplayer, 1482)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_12967
25@ = Char.GetScriptTaskStatus(0@, 1482)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_12967
27@ = Car.GetDriver(28@)
if 
  is_int_lvar_equal_to_int_var 27@ == $scplayer
goto_if_false @GFDATE_12932
2@ = 2
goto @GFDATE_14305
goto @GFDATE_12967

:GFDATE_12932
Task.CarDriveWander(0@, 28@, 30.0, DrivingMode.AvoidCars)
StuckCarCheck.Add(28@, 1.0, 1000)
2@ += 1

:GFDATE_12967
goto @GFDATE_14305

:GFDATE_12974
if 
  not Car.IsDead(28@)
goto_if_false @GFDATE_13028
Camera.PointAtCar(28@, CameraMode.WheelCam, SwitchType.JumpCut)
Camera.SetCinema(True)
Text.PrintHelp('GF_RAD')
set_local_var_bit_const 3@ {n} 13
2@ += 1

:GFDATE_13028
goto @GFDATE_14305

:GFDATE_13035
if 
  not Camera.GetFadingStatus
goto_if_false @GFDATE_13336
if 
  StuckCarCheck.IsCarStuck(28@)
goto_if_false @GFDATE_13085
Camera.DoFade(500, Fade.Out)
2@ = 9
goto @GFDATE_14305

:GFDATE_13085
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
goto_if_false @GFDATE_13144
25@ = Audio.GetRadioChannel()
25@ += 1
if 
  25@ > 10
goto_if_false @GFDATE_13139
25@ = 0

:GFDATE_13139
Audio.SetRadioChannel(25@)

:GFDATE_13144
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
goto_if_false @GFDATE_13203
25@ = Audio.GetRadioChannel()
25@ -= 1
if 
  0 > 25@
goto_if_false @GFDATE_13198
25@ = 10

:GFDATE_13198
Audio.SetRadioChannel(25@)

:GFDATE_13203
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @GFDATE_13266
if 
  not is_local_var_bit_set_const 3@ {n} 12
goto_if_false @GFDATE_13259
2@ = 10
set_local_var_bit_const 3@ {n} 12
goto @GFDATE_14305

:GFDATE_13259
goto @GFDATE_13273

:GFDATE_13266
clear_local_var_bit_const 3@ {n} 12

:GFDATE_13273
if 
  TIMERA > 60000
goto_if_false @GFDATE_13336
gosub @GFDATE_19405
Task.CarDriveToCoord(0@, 28@, 4@, 7@, 10@, 30.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)
2@ += 1

:GFDATE_13336
goto @GFDATE_14305

:GFDATE_13343
if 
  StuckCarCheck.IsCarStuck(28@)
goto_if_false @GFDATE_13380
Camera.DoFade(500, Fade.Out)
2@ = 9
goto @GFDATE_14305

:GFDATE_13380
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadUp)
goto_if_false @GFDATE_13439
25@ = Audio.GetRadioChannel()
25@ += 1
if 
  25@ > 10
goto_if_false @GFDATE_13434
25@ = 0

:GFDATE_13434
Audio.SetRadioChannel(25@)

:GFDATE_13439
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadDown)
goto_if_false @GFDATE_13498
25@ = Audio.GetRadioChannel()
25@ -= 1
if 
  0 > 25@
goto_if_false @GFDATE_13493
25@ = 10

:GFDATE_13493
Audio.SetRadioChannel(25@)

:GFDATE_13498
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @GFDATE_13561
if 
  not is_local_var_bit_set_const 3@ {n} 12
goto_if_false @GFDATE_13554
2@ = 10
set_local_var_bit_const 3@ {n} 12
goto @GFDATE_14305

:GFDATE_13554
goto @GFDATE_13568

:GFDATE_13561
clear_local_var_bit_const 3@ {n} 12

:GFDATE_13568
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @GFDATE_13631
if 
  not is_local_var_bit_set_const 3@ {n} 12
goto_if_false @GFDATE_13624
2@ = 10
set_local_var_bit_const 3@ {n} 12
goto @GFDATE_14305

:GFDATE_13624
goto @GFDATE_13638

:GFDATE_13631
clear_local_var_bit_const 3@ {n} 12

:GFDATE_13638
25@ = Char.GetScriptTaskStatus(0@, 1489)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_13767
Text.ClearHelp
Camera.SetCinema(False)
if 
  Car.DoesHaveStuckCarCheck(28@)
goto_if_false @GFDATE_13694
StuckCarCheck.Remove(28@)

:GFDATE_13694
set_global_var_bit_const $iDateReport {n} 2
if 
  not Char.IsGroupMember(0@, $Players_Group)
goto_if_false @GFDATE_13742
Group.SetMember($Players_Group, 0@)
Char.ListenToPlayerGroupCommands(0@, False)
Player.SetGroupToFollowAlways($player1, True)

:GFDATE_13742
$iGFLikesPlayer($iGFidx,6i) += 5
1@ = 3
2@ = 0

:GFDATE_13767
goto @GFDATE_14305

:GFDATE_13774
if 
  not Camera.GetFadingStatus
goto_if_false @GFDATE_13894
4@, 7@, 10@ = Car.GetCoordinates(28@)
5@, 8@, 11@ = Path.GetNthClosestCarNode(4@, 7@, 10@, 2)
Car.SetCoordinates(28@, 5@, 8@, 11@)
Camera.DoFade(2000, Fade.In)
25@ = Char.GetScriptTaskStatus(0@, 1489)
if 
  is_int_lvar_equal_to_constant 25@ == 1
goto_if_false @GFDATE_13887
2@ = 7
goto @GFDATE_13894

:GFDATE_13887
2@ = 6

:GFDATE_13894
goto @GFDATE_14305

:GFDATE_13901
Text.ClearHelp
if 
  not Car.IsDead(28@)
goto_if_false @GFDATE_14009
Car.SetIdle(28@)
Camera.SetCinema(False)
if 
  Car.DoesHaveStuckCarCheck(28@)
goto_if_false @GFDATE_13949
StuckCarCheck.Remove(28@)

:GFDATE_13949
Camera.AttachToVehicle(28@, 4.0, 4.0, 1.0, 0.0, 0.0, 0.0, 0.0, SwitchType.JumpCut)
Hud.SwitchWidescreen(True)
2@ += 1
goto @GFDATE_14016

:GFDATE_14009
2@ += 1

:GFDATE_14016
goto @GFDATE_14305

:GFDATE_14023
if 
  not Car.IsDead(28@)
goto_if_false @GFDATE_14106
if 
  Car.IsStopped(28@)
goto_if_false @GFDATE_14099
25@ = Char.GetScriptTaskStatus($scplayer, 1485)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_14099
Task.LeaveCar($scplayer, 28@)
2@ += 1

:GFDATE_14099
goto @GFDATE_14113

:GFDATE_14106
2@ += 1

:GFDATE_14113
goto @GFDATE_14305

:GFDATE_14120
25@ = Char.GetScriptTaskStatus($scplayer, 1485)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_14298
28@ = Char.StoreCarIsInNoSave(0@)
if 
  not Car.IsDead(28@)
goto_if_false @GFDATE_14219
Car.SetProofs(28@, False, False, False, False, False)
Task.CarDriveWander(0@, 28@, 30.0, DrivingMode.AvoidCars)
set_var_int_to_constant $iGFSayContext = 305
set_var_int_to_constant $iCJSayContext = 244

:GFDATE_14219
Char.ClearTasks($scplayer)
Text.ClearHelp
Char.HideWeaponForScriptedCutscene($scplayer, False)
Char.HideWeaponForScriptedCutscene(0@, False)
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
set_local_var_bit_const 3@ {n} 7
Char.SetProofs(0@, False, False, False, False, False)
1@ = 9
2@ = 1

:GFDATE_14298
goto @GFDATE_14305

:GFDATE_14305
return 

:GFDATE_14307
switch_start 2@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFDATE_14555 {caseNum1} 0 {caseLabel1} @GFDATE_14370 {caseNum2} 1 {caseLabel2} @GFDATE_14459 {caseNum3} -1 {caseLabel3} @GFDATE_14555 {caseNum4} -1 {caseLabel4} @GFDATE_14555 {caseNum5} -1 {caseLabel5} @GFDATE_14555 {caseNum6} -1 {caseLabel6} @GFDATE_14555 {caseNum7} -1 {caseLabel7} @GFDATE_14555

:GFDATE_14370
gosub @GFDATE_32037
set_local_var_bit_const 3@ {n} 1
clear_global_var_bit_const $iDateReport {n} 2
Char.RemoveFromGroup(0@)
Char.ClearTasksImmediately(0@)
Task.FleeCharAnyMeans(0@, $scplayer, 100.0, 36000000, False, 0, 0, 30.0)
Char.SetProofs(0@, False, False, False, False, False)
2@ += 1
goto @GFDATE_14555

:GFDATE_14459
if 
  not Char.IsHealthGreater(0@, 5)
goto_if_false @GFDATE_14503
$iGFLikesPlayer($iGFidx,6i) = -999
Task.Die(0@)
gosub @GFDATE_32147
return 

:GFDATE_14503
if 
  not Char.LocateAnyMeansChar3D($scplayer, 0@, 70.0, 70.0, 8.0, False)
goto_if_false @GFDATE_14548
gosub @GFDATE_32147
return 

:GFDATE_14548
goto @GFDATE_14555

:GFDATE_14555
return 

:GFDATE_14557
switch_start 2@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFDATE_14902 {caseNum1} 0 {caseLabel1} @GFDATE_14620 {caseNum2} 1 {caseLabel2} @GFDATE_14670 {caseNum3} -1 {caseLabel3} @GFDATE_14902 {caseNum4} -1 {caseLabel4} @GFDATE_14902 {caseNum5} -1 {caseLabel5} @GFDATE_14902 {caseNum6} -1 {caseLabel6} @GFDATE_14902 {caseNum7} -1 {caseLabel7} @GFDATE_14902

:GFDATE_14620
set_local_var_bit_const 3@ {n} 1
set_var_int_to_lvar_int $iDanceGirlfriend = 0@
$iBouncerAction = 0
$iDanceScore = 0
set_global_var_bit_const $d6_trip_skips_available {n} 31
2@ += 1
goto @GFDATE_14902

:GFDATE_14670
if 
  not is_global_var_bit_set_const $d6_trip_skips_available {n} 31
goto_if_false @GFDATE_14827
$iDanceScore = 1
if 
  not Char.IsGroupMember(0@, $Players_Group)
goto_if_false @GFDATE_14736
Group.SetMember($Players_Group, 0@)
Char.ListenToPlayerGroupCommands(0@, False)
Player.SetGroupToFollowAlways($player1, True)

:GFDATE_14736
if 
  $iDanceReport >= 3000
goto_if_false @GFDATE_14777
set_global_var_bit_const $iDateReport {n} 2
set_var_int_to_constant $iGFSayContext = 277
goto @GFDATE_14792

:GFDATE_14777
clear_global_var_bit_const $iDateReport {n} 2
set_var_int_to_constant $iGFSayContext = 276

:GFDATE_14792
clear_local_var_bit_const 3@ {n} 1
set_local_var_bit_const 3@ {n} 2
1@ = 1
2@ = 0
goto @GFDATE_14895

:GFDATE_14827
24@ = Char.GetAreaVisible($scplayer)
if 
  24@ == 0
goto_if_false @GFDATE_14888
clear_local_var_bit_const 3@ {n} 1
clear_global_var_bit_const $d6_trip_skips_available {n} 31
1@ = 1
2@ = 0
goto @GFDATE_14895

:GFDATE_14888
set_local_var_bit_const 3@ {n} 13

:GFDATE_14895
goto @GFDATE_14902

:GFDATE_14902
return 

:GFDATE_14904
switch_start 2@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFDATE_16338 {caseNum1} 0 {caseLabel1} @GFDATE_14967 {caseNum2} 1 {caseLabel2} @GFDATE_15133 {caseNum3} 2 {caseLabel3} @GFDATE_15594 {caseNum4} 3 {caseLabel4} @GFDATE_15708 {caseNum5} 4 {caseLabel5} @GFDATE_15775 {caseNum6} -1 {caseLabel6} @GFDATE_16338 {caseNum7} -1 {caseLabel7} @GFDATE_16338

:GFDATE_14967
set_local_var_bit_const 3@ {n} 1
Text.ClearHelp
Player.SetControl($player1, False)
Pad.SetPlayerFireButton($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
4@, 7@, 10@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 2.0)
5@, 8@, 11@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsOff(4@, 7@, 10@, 5@, 8@, 11@)
Path.SwitchPedRoadsOff(4@, 7@, 10@, 5@, 8@, 11@)
Task.TurnCharToFaceChar($scplayer, 0@)
Task.TurnCharToFaceChar(0@, $scplayer)
2@ += 1
goto @GFDATE_16338

:GFDATE_15133
25@ = Char.GetScriptTaskStatus($scplayer, 1593)
26@ = Char.GetScriptTaskStatus(0@, 1593)
if and
  is_int_lvar_equal_to_constant 25@ == 7
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_15457
Char.SetCollision($scplayer, False)
Char.SetCollision(0@, False)
5@, 8@, 11@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, 0.0)
11@ = World.GetGroundZFor3DCoord(5@, 8@, 11@)
6@, 9@, 12@ = Char.GetCoordinates(0@)
12@ = World.GetGroundZFor3DCoord(6@, 9@, 12@)
Char.SetCoordinates(0@, 5@, 8@, 11@)
13@ = Char.GetHeading($scplayer)
13@ += 180.0
Char.SetHeading(0@, 13@)
4@, 7@, 10@ = Char.GetOffsetInWorldCoords($scplayer, 1.2, -1.0, 0.5)
5@, 8@, 11@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.7, 0.5)
if 
  World.IsLineOfSightClear(4@, 7@, 10@, 5@, 8@, 11@, True, True, False, True, False)
goto_if_false @GFDATE_15443
Camera.SetFixedPosition(4@, 7@, 10@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(5@, 8@, 11@, SwitchType.JumpCut)

:GFDATE_15443
2@ += 1
goto @GFDATE_15587

:GFDATE_15457
25@ = Char.GetScriptTaskStatus($scplayer, 1593)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_15522
25@ = Char.GetScriptTaskStatus($scplayer, 1466)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_15522
Task.StandStill($scplayer, -1)

:GFDATE_15522
25@ = Char.GetScriptTaskStatus(0@, 1593)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_15587
25@ = Char.GetScriptTaskStatus(0@, 1466)
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_15587
Task.StandStill(0@, -1)

:GFDATE_15587
goto @GFDATE_16338

:GFDATE_15594
Char.SetCollision($scplayer, True)
Char.SetCollision(0@, True)
Task.PlayAnim($scplayer, "GIFT_GIVE", "KISSING", 4.0, False, False, False, False, 0)
Task.PlayAnim(0@, "GIFT_GET", "KISSING", 4.0, False, False, False, False, 0)
TIMERB = 0
2@ += 1
goto @GFDATE_16338

:GFDATE_15708
if 
  TIMERB >= 3966
goto_if_false @GFDATE_15768
25@ = Char.GetCurrentWeapon($scplayer)
Char.RemoveWeapon($scplayer, 25@)
Char.GiveWeapon(0@, 25@, 0)
set_var_int_to_constant $iGFSayContext = 298
2@ = 4

:GFDATE_15768
goto @GFDATE_16338

:GFDATE_15775
13@ = -1.0
if 
  Char.IsPlayingAnim($scplayer, "GIFT_GIVE")
goto_if_false @GFDATE_15831
13@ = Char.GetAnimCurrentTime($scplayer, "GIFT_GIVE")

:GFDATE_15831
if 
  13@ > -1.0
goto_if_false @GFDATE_16087
if 
  13@ == 1.0
goto_if_false @GFDATE_16080
Char.SetCoordinates(0@, 6@, 9@, 12@)
4@, 7@, 10@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
5@, 8@, 11@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(4@, 7@, 10@, 5@, 8@, 11@)
Path.SwitchPedRoadsBackToOriginal(4@, 7@, 10@, 5@, 8@, 11@)
Char.SetCollision($scplayer, True)
Char.SetCollision(0@, True)
Player.SetControl($player1, True)
Pad.SetPlayerFireButton($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
25@ = Char.GetCurrentWeapon(0@)
Char.RemoveWeapon(0@, 25@)
$iGFLikesPlayer($iGFidx,6i) += 1
clear_local_var_bit_const 3@ {n} 1
1@ = 1
2@ = 0

:GFDATE_16080
goto @GFDATE_16331

:GFDATE_16087
Char.ClearTasks($scplayer)
Task.Pause(0@, 0)
$iGFLikesPlayer($iGFidx,6i) += 1
Char.SetCoordinates(0@, 6@, 9@, 12@)
4@, 7@, 10@ = Char.GetOffsetInWorldCoords($scplayer, 30.0, 30.0, 1.0)
5@, 8@, 11@ = Char.GetOffsetInWorldCoords($scplayer, -30.0, -30.0, -1.0)
Path.SwitchRoadsBackToOriginal(4@, 7@, 10@, 5@, 8@, 11@)
Path.SwitchPedRoadsBackToOriginal(4@, 7@, 10@, 5@, 8@, 11@)
Char.SetCollision($scplayer, True)
Char.SetCollision(0@, True)
Player.SetControl($player1, True)
Pad.SetPlayerFireButton($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Game.SetAllCarsCanBeDamaged(True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
if 
  not Char.IsGroupMember(0@, $Players_Group)
goto_if_false @GFDATE_16310
Group.SetMember($Players_Group, 0@)
Char.ListenToPlayerGroupCommands(0@, False)
Player.SetGroupToFollowAlways($player1, True)

:GFDATE_16310
clear_local_var_bit_const 3@ {n} 1
1@ = 1
2@ = 0

:GFDATE_16331
goto @GFDATE_16338

:GFDATE_16338
return 

:GFDATE_16340
if 
  -15 >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFDATE_16373
$iGFLikesPlayer($iGFidx,6i) = -99

:GFDATE_16373
if 
  $iGFLikesPlayer($iGFidx,6i) == -99
goto_if_false @GFDATE_16404
25@ = -1
return 

:GFDATE_16404
if 
  is_global_var_bit_set_const $iDateReport {n} 14
goto_if_false @GFDATE_16431
25@ = 1
return 

:GFDATE_16431
25@ = Stat.GetInt(StatId.SexAppeal)
25@ /= 10
switch_start $iGFidx {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFDATE_16593 {caseNum1} 2 {caseLabel1} @GFDATE_16508 {caseNum2} 3 {caseLabel2} @GFDATE_16551 {caseNum3} -1 {caseLabel3} @GFDATE_16593 {caseNum4} -1 {caseLabel4} @GFDATE_16593 {caseNum5} -1 {caseLabel5} @GFDATE_16593 {caseNum6} -1 {caseLabel6} @GFDATE_16593 {caseNum7} -1 {caseLabel7} @GFDATE_16593

:GFDATE_16508
if 
  Player.IsWearing($player1, 17, "COUNTRYTR")
goto_if_false @GFDATE_16544
25@ += 25

:GFDATE_16544
goto @GFDATE_16593

:GFDATE_16551
if 
  Player.IsWearing($player1, 17, "POLICETR")
goto_if_false @GFDATE_16586
25@ += 25

:GFDATE_16586
goto @GFDATE_16593

:GFDATE_16593
26@ = Stat.GetInt(StatId.Fat)
26@ /= 10
26@ /= 2
if 
  26@ >= 25
goto_if_false @GFDATE_16698
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {n} 2
goto_if_false @GFDATE_16669
add_int_lvar_to_int_lvar 25@ += 26@
goto @GFDATE_16691

:GFDATE_16669
sub_int_lvar_from_int_lvar 25@ -= 26@
set_local_var_bit_const 3@ {n} 23
set_local_var_bit_const 3@ {n} 21

:GFDATE_16691
goto @GFDATE_16804

:GFDATE_16698
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {n} 2
goto_if_false @GFDATE_16749
sub_int_lvar_from_int_lvar 25@ -= 26@
set_local_var_bit_const 3@ {n} 23
set_local_var_bit_const 3@ {n} 20
goto @GFDATE_16804

:GFDATE_16749
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {n} 3
goto_if_false @GFDATE_16804
if 
  26@ == 0
goto_if_false @GFDATE_16796
26@ = 5

:GFDATE_16796
add_int_lvar_to_int_lvar 25@ += 26@

:GFDATE_16804
26@ = Stat.GetInt(StatId.BodyMuscle)
26@ /= 10
26@ /= 2
if 
  26@ >= 20
goto_if_false @GFDATE_16931
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {n} 1
goto_if_false @GFDATE_16880
add_int_lvar_to_int_lvar 25@ += 26@
goto @GFDATE_16924

:GFDATE_16880
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {n} 3
goto_if_false @GFDATE_16924
sub_int_lvar_from_int_lvar 25@ -= 26@
set_local_var_bit_const 3@ {n} 23
set_local_var_bit_const 3@ {n} 22

:GFDATE_16924
goto @GFDATE_17037

:GFDATE_16931
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {n} 1
goto_if_false @GFDATE_16982
sub_int_lvar_from_int_lvar 25@ -= 26@
set_local_var_bit_const 3@ {n} 23
set_local_var_bit_const 3@ {n} 21
goto @GFDATE_17037

:GFDATE_16982
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {n} 3
goto_if_false @GFDATE_17037
if 
  26@ == 0
goto_if_false @GFDATE_17029
26@ = 5

:GFDATE_17029
add_int_lvar_to_int_lvar 25@ += 26@

:GFDATE_17037
set_lvar_int_to_var_int 26@ = $iGFLikesPlayer($iGFidx,6i)
26@ /= 2
add_int_lvar_to_int_lvar 25@ += 26@
if 
  is_int_lvar_greater_or_equal_to_int_var 25@ >= $iGFDesiredSexAppeal($iGFidx,6i)
goto_if_false @GFDATE_17101
25@ = 1
goto @GFDATE_17108

:GFDATE_17101
25@ = -1

:GFDATE_17108
return 

:GFDATE_17110
25@ = Math.RandomIntInRange(0, 100)
if 
  is_global_var_bit_set_const $iDateReport {n} 11
goto_if_false @GFDATE_17217
if and
  is_int_var_greater_than_int_var $iGFLikesPlayer($iGFidx,6i) > $iGFSelfRespect($iGFidx,6i)
  25@ > 50
goto_if_false @GFDATE_17186
set_var_int_to_constant $iGFSayContext = 261
goto @GFDATE_17194

:GFDATE_17186
set_var_int_to_constant $iGFSayContext = 262

:GFDATE_17194
set_var_int_to_constant $iCJSayContext = 10
gosub @GFDATE_18362
gosub @GFDATE_17453
return 

:GFDATE_17217
if 
  is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_17317
if and
  is_int_var_greater_than_int_var $iGFLikesPlayer($iGFidx,6i) > $iGFSelfRespect($iGFidx,6i)
  25@ > 50
goto_if_false @GFDATE_17284
set_var_int_to_constant $iGFSayContext = 263
goto @GFDATE_17292

:GFDATE_17284
set_var_int_to_constant $iGFSayContext = 264

:GFDATE_17292
set_var_int_to_constant $iCJSayContext = 10
Hud.DisplayCounterWithString($9466, CounterDisplay.Bar, 'GF_0029')
return 

:GFDATE_17317
if 
  is_global_var_bit_set_const $iDateReport {n} 13
goto_if_false @GFDATE_17415
if and
  is_int_var_greater_than_int_var $iGFLikesPlayer($iGFidx,6i) > $iGFSelfRespect($iGFidx,6i)
  25@ > 50
goto_if_false @GFDATE_17384
set_var_int_to_constant $iGFSayContext = 265
goto @GFDATE_17392

:GFDATE_17384
set_var_int_to_constant $iGFSayContext = 266

:GFDATE_17392
set_var_int_to_constant $iCJSayContext = 10
gosub @GFDATE_18362
gosub @GFDATE_17453
return 

:GFDATE_17415
if 
  is_global_var_bit_set_const $iDateReport {n} 15
goto_if_false @GFDATE_17451
set_var_int_to_constant $iGFSayContext = 304
set_var_int_to_constant $iCJSayContext = 243
return 

:GFDATE_17451
return 

:GFDATE_17453
if 
  Player.IsPlaying($player1)
goto_if_false @GFDATE_18360
gosub @GFDATE_32037
25@ = Player.GetCityIsIn($player1)
if 
  is_int_lvar_equal_to_constant 25@ == 1
goto_if_false @GFDATE_17670
if 
  is_global_var_bit_set_const $iDateReport {n} 11
goto_if_false @GFDATE_17630
15@ = Blip.AddShortRangeSpriteForCoord(2862.0, -1439.0, 10.0, RadarSprite.Diner)
16@ = Blip.AddShortRangeSpriteForCoord(2317.0, -1645.0, 13.0, RadarSprite.DateDrink)
17@ = Blip.AddShortRangeSpriteForCoord(1837.0, -1682.0, 14.0, RadarSprite.DateDrink)
18@ = Blip.AddShortRangeSpriteForCoord(415.3947, -1431.017, 31.5057, RadarSprite.DateFood)
19@ = Blip.AddShortRangeSpriteForCoord(384.6615, -1819.529, 6.8414, RadarSprite.Diner)

:GFDATE_17630
if 
  is_global_var_bit_set_const $iDateReport {n} 13
goto_if_false @GFDATE_17670
15@ = Blip.AddShortRangeSpriteForCoord(1837.0, -1682.0, 14.0, RadarSprite.DateDisco)

:GFDATE_17670
if 
  is_int_lvar_equal_to_constant 25@ == 2
goto_if_false @GFDATE_17878
if 
  is_global_var_bit_set_const $iDateReport {n} 11
goto_if_false @GFDATE_17838
15@ = Blip.AddShortRangeSpriteForCoord(-2463.0, 132.0, 34.0, RadarSprite.DateFood)
16@ = Blip.AddShortRangeSpriteForCoord(-1885.0, 747.0, 44.0, RadarSprite.DateFood)
17@ = Blip.AddShortRangeSpriteForCoord(-1699.0, 1380.0, 6.0, RadarSprite.Diner)
18@ = Blip.AddShortRangeSpriteForCoord(-2524.0, 1216.0, 37.0, RadarSprite.Diner)
19@ = Blip.AddShortRangeSpriteForCoord(-2241.0, -88.0, 35.0, RadarSprite.DateDrink)
20@ = Blip.AddShortRangeSpriteForCoord(-2551.115, 193.657, 5.2, RadarSprite.DateDrink)

:GFDATE_17838
if 
  is_global_var_bit_set_const $iDateReport {n} 13
goto_if_false @GFDATE_17878
15@ = Blip.AddShortRangeSpriteForCoord(-2551.115, 193.657, 5.2, RadarSprite.DateDisco)

:GFDATE_17878
if 
  is_int_lvar_equal_to_constant 25@ == 3
goto_if_false @GFDATE_18064
if 
  is_global_var_bit_set_const $iDateReport {n} 11
goto_if_false @GFDATE_18024
15@ = Blip.AddShortRangeSpriteForCoord(2441.145, 2065.145, 9.847, RadarSprite.DateDrink)
16@ = Blip.AddShortRangeSpriteForCoord(1693.0, 2208.0, 9.8, RadarSprite.DateFood)
17@ = Blip.AddShortRangeSpriteForCoord(2490.666, 2065.145, 9.847, RadarSprite.DateFood)
18@ = Blip.AddShortRangeSpriteForCoord(1376.892, 2327.792, 9.822, RadarSprite.Diner)
19@ = Blip.AddShortRangeSpriteForCoord(2368.058, 1983.185, 10.003, RadarSprite.Diner)

:GFDATE_18024
if 
  is_global_var_bit_set_const $iDateReport {n} 13
goto_if_false @GFDATE_18064
15@ = Blip.AddShortRangeSpriteForCoord(2507.44, 1242.31, 9.833, RadarSprite.DateDisco)

:GFDATE_18064
if 
  is_int_lvar_equal_to_constant 25@ == 0
goto_if_false @GFDATE_18360
if 
  is_global_var_bit_set_const $iDateReport {n} 11
goto_if_false @GFDATE_18276
15@ = Blip.AddShortRangeSpriteForCoord(292.865, -195.47, 0.852, RadarSprite.DateDrink)
16@ = Blip.AddShortRangeSpriteForCoord(681.544, -473.494, 15.592, RadarSprite.Diner)
17@ = Blip.AddShortRangeSpriteForCoord(-1941.516, 2379.672, 48.4922, RadarSprite.Diner)
18@ = Blip.AddShortRangeSpriteForCoord(-857.14, 1537.277, 21.587, RadarSprite.DateFood)
19@ = Blip.AddShortRangeSpriteForCoord(-85.2583, 1378.991, 9.2812, RadarSprite.DateDrink)
20@ = Blip.AddShortRangeSpriteForCoord(-53.867, 1189.297, 18.414, RadarSprite.Diner)
21@ = Blip.AddShortRangeSpriteForCoord(2317.0, -1645.0, 13.0, RadarSprite.DateDrink)
22@ = Blip.AddShortRangeSpriteForCoord(415.3947, -1431.017, 31.5057, RadarSprite.DateFood)

:GFDATE_18276
if 
  is_global_var_bit_set_const $iDateReport {n} 13
goto_if_false @GFDATE_18360
15@ = Blip.AddShortRangeSpriteForCoord(1837.0, -1682.0, 14.0, RadarSprite.DateDisco)
16@ = Blip.AddShortRangeSpriteForCoord(-2551.115, 193.657, 5.2, RadarSprite.DateDisco)
17@ = Blip.AddShortRangeSpriteForCoord(2507.44, 1242.31, 9.833, RadarSprite.DateDisco)

:GFDATE_18360
return 

:GFDATE_18362
if 
  is_global_var_bit_set_const $iDateReport {n} 11
goto_if_false @GFDATE_18660
World.SwitchEntryExit('FDREST1', True)
World.SwitchEntryExit('REST2', True)
World.SwitchEntryExit('DINER1', True)
World.SwitchEntryExit('DINER2', True)
World.SwitchEntryExit('TSDINER', True)
Game.SetNamedEntryExitFlag('FDPIZA', EntryexitsFlag.NoWarp, True)
Game.SetNamedEntryExitFlag('FDBURG', EntryexitsFlag.NoWarp, True)
Game.SetNamedEntryExitFlag('FDCHICK', EntryexitsFlag.NoWarp, True)
Game.SetNamedEntryExitFlag('UFOBAR', EntryexitsFlag.NoWarp, True)
Game.SetNamedEntryExitFlag('REST2', EntryexitsFlag.NoWarp, True)
Game.SetNamedEntryExitFlag('DINER1', EntryexitsFlag.NoWarp, True)
Game.SetNamedEntryExitFlag('FDREST1', EntryexitsFlag.NoWarp, True)
Game.SetNamedEntryExitFlag('REST2', EntryexitsFlag.NoWarp, True)
Game.SetNamedEntryExitFlag('DINER1', EntryexitsFlag.NoWarp, True)
Game.SetNamedEntryExitFlag('DINER2', EntryexitsFlag.NoWarp, True)
Game.SetNamedEntryExitFlag('TSDINER', EntryexitsFlag.NoWarp, True)
Game.SetNamedEntryExitFlag('BAR1', EntryexitsFlag.NoWarp, True)
Game.SetNamedEntryExitFlag('BAR2', EntryexitsFlag.NoWarp, True)
goto @GFDATE_18710

:GFDATE_18660
if 
  is_global_var_bit_set_const $iDateReport {n} 13
goto_if_false @GFDATE_18710
Game.SetNamedEntryExitFlag('BAR1', EntryexitsFlag.WarpGroup, True)
Game.SetNamedEntryExitFlag('BAR2', EntryexitsFlag.WarpGroup, True)

:GFDATE_18710
return 

:GFDATE_18712
World.SwitchEntryExit('FDREST1', False)
World.SwitchEntryExit('REST2', False)
World.SwitchEntryExit('DINER1', False)
World.SwitchEntryExit('DINER2', False)
World.SwitchEntryExit('TSDINER', False)
World.SwitchEntryExit('FDPIZA', True)
World.SwitchEntryExit('FDBURG', True)
World.SwitchEntryExit('FDCHICK', True)
World.SwitchEntryExit('BAR1', True)
World.SwitchEntryExit('BAR2', True)
World.SwitchEntryExit('UFOBAR', True)
Game.SetNamedEntryExitFlag('FDPIZA', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('FDBURG', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('FDCHICK', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('REST2', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('DINER1', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('FDREST1', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('REST2', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('DINER1', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('DINER2', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('TSDINER', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('BAR1', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('BAR2', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('UFOBAR', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('BAR1', EntryexitsFlag.WarpGroup, False)
Game.SetNamedEntryExitFlag('BAR2', EntryexitsFlag.WarpGroup, False)
return 

:GFDATE_19097
World.SwitchEntryExit('FDREST1', False)
World.SwitchEntryExit('REST2', False)
World.SwitchEntryExit('DINER1', False)
World.SwitchEntryExit('DINER2', False)
World.SwitchEntryExit('TSDINER', False)
World.SwitchEntryExit('FDPIZA', False)
World.SwitchEntryExit('FDBURG', False)
World.SwitchEntryExit('FDCHICK', False)
World.SwitchEntryExit('BAR1', False)
World.SwitchEntryExit('BAR2', False)
World.SwitchEntryExit('UFOBAR', False)
return 

:GFDATE_19242
World.SwitchEntryExit('FDREST1', False)
World.SwitchEntryExit('REST2', False)
World.SwitchEntryExit('DINER1', False)
World.SwitchEntryExit('DINER2', False)
World.SwitchEntryExit('TSDINER', False)
Game.SetNamedEntryExitFlag('FDPIZA', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('FDBURG', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('FDCHICK', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('BAR1', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('BAR2', EntryexitsFlag.NoWarp, False)
Game.SetNamedEntryExitFlag('UFOBAR', EntryexitsFlag.NoWarp, False)
return 

:GFDATE_19405
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFDATE_19690 {caseNum1} 0 {caseLabel1} @GFDATE_19468 {caseNum2} 1 {caseLabel2} @GFDATE_19579 {caseNum3} 2 {caseLabel3} @GFDATE_19542 {caseNum4} 3 {caseLabel4} @GFDATE_19505 {caseNum5} 4 {caseLabel5} @GFDATE_19616 {caseNum6} 5 {caseLabel6} @GFDATE_19653 {caseNum7} -1 {caseLabel7} @GFDATE_19690

:GFDATE_19468
4@ = 2402.012
7@ = -1719.648
10@ = 12.6219
goto @GFDATE_19690

:GFDATE_19505
4@ = -1398.101
7@ = 2636.873
10@ = 54.7031
goto @GFDATE_19690

:GFDATE_19542
4@ = -377.3978
7@ = -1438.692
10@ = 24.7209
goto @GFDATE_19690

:GFDATE_19579
4@ = -1796.952
7@ = 1197.376
10@ = 24.1094
goto @GFDATE_19690

:GFDATE_19616
4@ = -2576.808
7@ = 1144.744
10@ = 54.8547
goto @GFDATE_19690

:GFDATE_19653
4@ = 2035.362
7@ = 2732.411
10@ = 9.8203
goto @GFDATE_19690

:GFDATE_19690
return 

:GFDATE_19692
if 
  is_local_var_bit_set_const 3@ {n} 2
goto_if_false @GFDATE_19787
gosub @GFDATE_19405
if 
  Char.LocateStoppedAnyMeans3D(0@, 4@, 7@, 10@, 3.0, 3.0, 3.0, True)
goto_if_false @GFDATE_19773
24@ = -2
goto @GFDATE_19780

:GFDATE_19773
24@ = -1

:GFDATE_19780
goto @GFDATE_19986

:GFDATE_19787
24@ = Streaming.GetAreaVisible()
if 
  24@ <> 0
goto_if_false @GFDATE_19979
if 
  is_global_var_bit_set_const $iDateReport {n} 11
goto_if_false @GFDATE_19884
v$active_pool_script = Char.GetNameOfEntryExitUsed($scplayer)
gosub @GFDATE_22008
if 
  25@ > -1
goto_if_false @GFDATE_19870
return 
goto @GFDATE_19877

:GFDATE_19870
24@ = -1

:GFDATE_19877
goto @GFDATE_19972

:GFDATE_19884
if 
  is_global_var_bit_set_const $iDateReport {n} 13
goto_if_false @GFDATE_19965
v$active_pool_script = Char.GetNameOfEntryExitUsed($scplayer)
gosub @GFDATE_22008
if 
  25@ == 8
goto_if_false @GFDATE_19951
set_local_var_bit_const 3@ {n} 13
return 
goto @GFDATE_19958

:GFDATE_19951
24@ = -1

:GFDATE_19958
goto @GFDATE_19972

:GFDATE_19965
24@ = -1

:GFDATE_19972
goto @GFDATE_19986

:GFDATE_19979
24@ = -1

:GFDATE_19986
return 

:GFDATE_19988
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFDATE_20213 {caseNum1} 0 {caseLabel1} @GFDATE_20051 {caseNum2} 1 {caseLabel2} @GFDATE_20132 {caseNum3} 2 {caseLabel3} @GFDATE_20105 {caseNum4} 3 {caseLabel4} @GFDATE_20078 {caseNum5} 4 {caseLabel5} @GFDATE_20159 {caseNum6} 5 {caseLabel6} @GFDATE_20186 {caseNum7} -1 {caseLabel7} @GFDATE_20213

:GFDATE_20051
Cutscene.AppendToNext('GANGRL3', 'GFRIEND')
goto @GFDATE_20213

:GFDATE_20078
Cutscene.AppendToNext('COPGRL3', 'GFRIEND')
goto @GFDATE_20213

:GFDATE_20105
Cutscene.AppendToNext('GUNGRL3', 'GFRIEND')
goto @GFDATE_20213

:GFDATE_20132
Cutscene.AppendToNext('MECGRL3', 'GFRIEND')
goto @GFDATE_20213

:GFDATE_20159
Cutscene.AppendToNext('NURGRL3', 'GFRIEND')
goto @GFDATE_20213

:GFDATE_20186
Cutscene.AppendToNext('CROGRL3', 'GFRIEND')
goto @GFDATE_20213

:GFDATE_20213
return 

:GFDATE_20215
gosub @GFDATE_22008
switch_start 25@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @GFDATE_22006 {caseNum1} 1 {caseLabel1} @GFDATE_20838 {caseNum2} 2 {caseLabel2} @GFDATE_20974 {caseNum3} 3 {caseLabel3} @GFDATE_20350 {caseNum4} 4 {caseLabel4} @GFDATE_20566 {caseNum5} 5 {caseLabel5} @GFDATE_20702 {caseNum6} 6 {caseLabel6} @GFDATE_21462 {caseNum7} 7 {caseLabel7} @GFDATE_21734
switch_continued 8 {caseLabel1} @GFDATE_21190 {caseNum2} 9 {caseLabel2} @GFDATE_21326 {caseNum3} 10 {caseLabel3} @GFDATE_21870 {caseNum4} 11 {caseLabel4} @GFDATE_21598 {caseNum5} -1 {caseLabel5} @GFDATE_22006 {caseNum6} -1 {caseLabel6} @GFDATE_22006 {caseNum7} -1 {caseLabel7} @GFDATE_22006 {caseNum8} -1 {caseLabel8} @GFDATE_22006 {caseNum9} -1 {caseLabel9} @GFDATE_22006

:GFDATE_20350
World.SetExtraColors(4, False)
Stat.ShowUpdateStats(False)
Stat.IncrementInt(StatId.Calories, 40)
Stat.IncrementInt(StatId.Fat, 40)
4@ = 370.0
7@ = -125.0
10@ = 1001.52
Streaming.LoadScene(4@, 7@, 10@)
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 1
goto_if_false @GFDATE_20501
Cutscene.AppendToNext('GFPIZ1', 'GFPIZ1')
Cutscene.AppendToNext('GFPIZ2', 'GFPIZ2')
Cutscene.Load('DATE1A')
set_global_var_bit_const $iDateReport {n} 2
goto @GFDATE_20559

:GFDATE_20501
Cutscene.AppendToNext('GFPIZ1', 'GFPIZ1')
Cutscene.AppendToNext('GFPIZ2', 'GFPIZ2')
Cutscene.Load('DATE1B')
clear_global_var_bit_const $iDateReport {n} 2

:GFDATE_20559
goto @GFDATE_22006

:GFDATE_20566
World.SetExtraColors(4, False)
Stat.ShowUpdateStats(False)
Stat.IncrementInt(StatId.Calories, 40)
Stat.IncrementInt(StatId.Fat, 40)
4@ = 445.381
7@ = -14.147
10@ = 1001.731
Streaming.LoadScene(4@, 7@, 10@)
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 5
goto_if_false @GFDATE_20677
Cutscene.Load('DATE5A')
set_global_var_bit_const $iDateReport {n} 2
goto @GFDATE_20695

:GFDATE_20677
Cutscene.Load('DATE5B')
clear_global_var_bit_const $iDateReport {n} 2

:GFDATE_20695
goto @GFDATE_22006

:GFDATE_20702
World.SetExtraColors(4, False)
Stat.ShowUpdateStats(False)
Stat.IncrementInt(StatId.Calories, 40)
Stat.IncrementInt(StatId.Fat, 40)
4@ = 441.871
7@ = -60.839
10@ = 1000.675
Streaming.LoadScene(4@, 7@, 10@)
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 5
goto_if_false @GFDATE_20813
Cutscene.Load('DATE5A')
set_global_var_bit_const $iDateReport {n} 2
goto @GFDATE_20831

:GFDATE_20813
Cutscene.Load('DATE5B')
clear_global_var_bit_const $iDateReport {n} 2

:GFDATE_20831
goto @GFDATE_22006

:GFDATE_20838
World.SetExtraColors(4, False)
Stat.ShowUpdateStats(False)
Stat.IncrementInt(StatId.Calories, 40)
Stat.IncrementInt(StatId.Fat, 40)
4@ = 374.478
7@ = -8.415
10@ = 1002.86
Streaming.LoadScene(4@, 7@, 10@)
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 1
goto_if_false @GFDATE_20949
Cutscene.Load('DATE2A')
set_global_var_bit_const $iDateReport {n} 2
goto @GFDATE_20967

:GFDATE_20949
Cutscene.Load('DATE2B')
clear_global_var_bit_const $iDateReport {n} 2

:GFDATE_20967
goto @GFDATE_22006

:GFDATE_20974
World.SetExtraColors(4, False)
Stat.ShowUpdateStats(False)
Stat.IncrementInt(StatId.Calories, 40)
Stat.IncrementInt(StatId.Fat, 40)
4@ = 367.891
7@ = -67.591
10@ = 1001.516
Streaming.LoadScene(4@, 7@, 10@)
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 1
goto_if_false @GFDATE_21125
Cutscene.AppendToNext('BURG_PA', 'GFPIZ1')
Cutscene.AppendToNext('BURG_GA', 'GFPIZ2')
Cutscene.Load('DATE1A')
set_global_var_bit_const $iDateReport {n} 2
goto @GFDATE_21183

:GFDATE_21125
Cutscene.AppendToNext('BURG_PA', 'GFPIZ1')
Cutscene.AppendToNext('BURG_GA', 'GFPIZ2')
Cutscene.Load('DATE1B')
clear_global_var_bit_const $iDateReport {n} 2

:GFDATE_21183
goto @GFDATE_22006

:GFDATE_21190
World.SetExtraColors(5, False)
Stat.ShowUpdateStats(False)
Stat.IncrementInt(StatId.Calories, 20)
Stat.IncrementInt(StatId.Fat, 20)
4@ = 498.536
7@ = -18.2
10@ = 1000.651
Streaming.LoadScene(4@, 7@, 10@)
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 3
goto_if_false @GFDATE_21301
Cutscene.Load('DATE6A')
set_global_var_bit_const $iDateReport {n} 2
goto @GFDATE_21319

:GFDATE_21301
Cutscene.Load('DATE6B')
clear_global_var_bit_const $iDateReport {n} 2

:GFDATE_21319
goto @GFDATE_22006

:GFDATE_21326
World.SetExtraColors(6, False)
Stat.ShowUpdateStats(False)
Stat.IncrementInt(StatId.Calories, 20)
Stat.IncrementInt(StatId.Fat, 20)
4@ = 490.718
7@ = -79.168
10@ = 998.76
Streaming.LoadScene(4@, 7@, 10@)
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 3
goto_if_false @GFDATE_21437
Cutscene.Load('DATE6A')
set_global_var_bit_const $iDateReport {n} 2
goto @GFDATE_21455

:GFDATE_21437
Cutscene.Load('DATE6B')
clear_global_var_bit_const $iDateReport {n} 2

:GFDATE_21455
goto @GFDATE_22006

:GFDATE_21462
World.SetExtraColors(4, False)
Stat.ShowUpdateStats(False)
Stat.IncrementInt(StatId.Calories, 40)
Stat.IncrementInt(StatId.Fat, 40)
4@ = 449.41
7@ = -86.72
10@ = 1000.53
Streaming.LoadScene(4@, 7@, 10@)
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 2
goto_if_false @GFDATE_21573
Cutscene.Load('DATE3A')
set_global_var_bit_const $iDateReport {n} 2
goto @GFDATE_21591

:GFDATE_21573
Cutscene.Load('DATE3B')
clear_global_var_bit_const $iDateReport {n} 2

:GFDATE_21591
goto @GFDATE_22006

:GFDATE_21598
World.SetExtraColors(4, False)
Stat.ShowUpdateStats(False)
Stat.IncrementInt(StatId.Calories, 40)
Stat.IncrementInt(StatId.Fat, 40)
4@ = 678.028
7@ = -452.9
10@ = -24.444
Streaming.LoadScene(4@, 7@, 10@)
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 2
goto_if_false @GFDATE_21709
Cutscene.Load('DATE3A')
set_global_var_bit_const $iDateReport {n} 2
goto @GFDATE_21727

:GFDATE_21709
Cutscene.Load('DATE3B')
clear_global_var_bit_const $iDateReport {n} 2

:GFDATE_21727
goto @GFDATE_22006

:GFDATE_21734
World.SetExtraColors(4, False)
Stat.ShowUpdateStats(False)
Stat.IncrementInt(StatId.Calories, 40)
Stat.IncrementInt(StatId.Fat, 40)
4@ = 449.41
7@ = -108.24
10@ = 1000.528
Streaming.LoadScene(4@, 7@, 10@)
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 2
goto_if_false @GFDATE_21845
Cutscene.Load('DATE4A')
set_global_var_bit_const $iDateReport {n} 2
goto @GFDATE_21863

:GFDATE_21845
Cutscene.Load('DATE4B')
clear_global_var_bit_const $iDateReport {n} 2

:GFDATE_21863
goto @GFDATE_22006

:GFDATE_21870
World.SetExtraColors(4, False)
Stat.ShowUpdateStats(False)
Stat.IncrementInt(StatId.Calories, 20)
Stat.IncrementInt(StatId.Fat, 20)
4@ = -226.249
7@ = 1405.448
10@ = 27.7
Streaming.LoadScene(4@, 7@, 10@)
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 3
goto_if_false @GFDATE_21981
Cutscene.Load('DATE6A')
set_global_var_bit_const $iDateReport {n} 2
goto @GFDATE_21999

:GFDATE_21981
Cutscene.Load('DATE6B')
clear_global_var_bit_const $iDateReport {n} 2

:GFDATE_21999
goto @GFDATE_22006

:GFDATE_22006
return 

:GFDATE_22008
25@ = -1
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "FDCHICK"
goto_if_false @GFDATE_22049
25@ = 1
return 

:GFDATE_22049
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "FDBURG"
goto_if_false @GFDATE_22082
25@ = 2
return 

:GFDATE_22082
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "FDPIZA"
goto_if_false @GFDATE_22115
25@ = 3
return 

:GFDATE_22115
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "FDREST1"
goto_if_false @GFDATE_22149
25@ = 4
return 

:GFDATE_22149
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "REST2"
goto_if_false @GFDATE_22181
25@ = 5
return 

:GFDATE_22181
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "DINER1"
goto_if_false @GFDATE_22214
25@ = 6
return 

:GFDATE_22214
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "DINER2"
goto_if_false @GFDATE_22247
25@ = 7
return 

:GFDATE_22247
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "BAR1"
goto_if_false @GFDATE_22278
25@ = 8
return 

:GFDATE_22278
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "BAR2"
goto_if_false @GFDATE_22309
25@ = 9
return 

:GFDATE_22309
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "UFOBAR"
goto_if_false @GFDATE_22342
25@ = 10
return 

:GFDATE_22342
if 
  is_var_text_label16_equal_to_text_label v$active_pool_script == "TSDINER"
goto_if_false @GFDATE_22376
25@ = 11
return 

:GFDATE_22376
set_var_text_label16 v$active_pool_script = "NIL"
return 

:GFDATE_22388
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFDATE_23093 {caseNum1} 0 {caseLabel1} @GFDATE_22451 {caseNum2} 1 {caseLabel2} @GFDATE_22665 {caseNum3} 2 {caseLabel3} @GFDATE_22772 {caseNum4} 3 {caseLabel4} @GFDATE_22558 {caseNum5} 4 {caseLabel5} @GFDATE_22879 {caseNum6} 5 {caseLabel6} @GFDATE_22986 {caseNum7} -1 {caseLabel7} @GFDATE_23093

:GFDATE_22451
4@ = 2394.408
7@ = -1728.215
10@ = 14.2715
5@ = 2395.066
8@ = -1727.465
11@ = 14.2063
6@ = 2401.91
9@ = -1715.633
12@ = 13.0848
13@ = 180.0
goto @GFDATE_23093

:GFDATE_22558
4@ = -1401.494
7@ = 2640.099
10@ = 59.3883
5@ = -1400.704
8@ = 2639.641
11@ = 58.9806
6@ = -1390.6
9@ = 2638.349
12@ = 54.9965
13@ = 90.0
goto @GFDATE_23093

:GFDATE_22665
4@ = -1799.737
7@ = 1192.863
10@ = 29.6868
5@ = -1799.472
8@ = 1193.683
11@ = 29.1813
6@ = -1799.81
9@ = 1200.602
12@ = 24.1194
13@ = 197.0
goto @GFDATE_23093

:GFDATE_22772
4@ = -383.3153
7@ = -1435.266
10@ = 26.695
5@ = -382.5756
8@ = -1435.887
11@ = 26.4366
6@ = -382.0961
9@ = -1438.207
12@ = 24.7209
13@ = 269.3417
goto @GFDATE_23093

:GFDATE_22879
4@ = -2582.293
7@ = 1147.762
10@ = 59.6235
5@ = -2581.406
8@ = 1147.768
11@ = 59.1605
6@ = -2574.045
9@ = 1152.397
12@ = 54.7422
13@ = 151.7896
goto @GFDATE_23093

:GFDATE_22986
4@ = 2032.235
7@ = 2734.541
10@ = 13.3226
5@ = 2032.744
8@ = 2733.714
11@ = 13.0817
6@ = 2037.401
9@ = 2723.283
12@ = 9.8352
13@ = 8.0
goto @GFDATE_23093

:GFDATE_23093
return 

:GFDATE_23095
25@ = Zone.GetGangStrength(s$txtCurrZone, GangType.Ballas)
if 
  25@ > 0
goto_if_false @GFDATE_23125
return 

:GFDATE_23125
25@ = Zone.GetGangStrength(s$txtCurrZone, GangType.Aztecas)
if 
  25@ > 0
goto_if_false @GFDATE_23155
return 

:GFDATE_23155
25@ = Zone.GetGangStrength(s$txtCurrZone, GangType.Vagos)
if 
  25@ > 0
goto_if_false @GFDATE_23185
return 

:GFDATE_23185
25@ = Zone.GetGangStrength(s$txtCurrZone, GangType.Rifa)
if 
  25@ > 0
goto_if_false @GFDATE_23215
return 

:GFDATE_23215
return 

:GFDATE_23217
if 
  is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_23275
if and
  not is_local_var_bit_set_const 3@ {n} 2
  not is_local_var_bit_set_const 3@ {n} 26
goto_if_false @GFDATE_23268
set_var_int_to_constant $iGFSayContext = 270

:GFDATE_23268
goto @GFDATE_23308

:GFDATE_23275
if and
  not is_local_var_bit_set_const 3@ {n} 2
  not is_local_var_bit_set_const 3@ {n} 26
goto_if_false @GFDATE_23308
set_var_int_to_constant $iGFSayContext = 269

:GFDATE_23308
set_local_var_bit_const 3@ {n} 26
return 

:GFDATE_23317
1@ = 5
2@ = 0
return 

:GFDATE_23333
25@ = 0
if 
  not is_local_var_bit_set_const 3@ {n} 7
goto_if_false @GFDATE_23711
if and
  not Char.IsInAnyCar(0@)
  not Player.IsUsingJetpack($player1)
  not Char.IsCurrentWeapon($scplayer, WeaponType.Camera)
goto_if_false @GFDATE_23711
if 
  Char.IsStopped(0@)
goto_if_false @GFDATE_23711
4@, 7@, 10@ = Char.GetOffsetInWorldCoords(0@, 0.0, 0.5, 0.0)
if 
  Char.LocateStoppedOnFoot3D($scplayer, 4@, 7@, 10@, 1.3, 1.3, 1.0, False)
goto_if_false @GFDATE_23711
4@, 7@, 10@ = Char.GetCoordinates($scplayer)
5@, 8@, 11@ = Char.GetCoordinates(0@)
set_lvar_float_to_lvar_float 13@ = 11@
13@ -= 0.02
set_lvar_float_to_lvar_float 14@ = 11@
14@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 10@ > 13@
  is_float_lvar_greater_than_float_lvar 14@ > 10@
goto_if_false @GFDATE_23711
if or
  Char.IsCurrentWeapon($scplayer, WeaponType.Flowers)
  Char.IsCurrentWeapon($scplayer, WeaponType.Dildo1)
  Char.IsCurrentWeapon($scplayer, WeaponType.Dildo2)
  Char.IsCurrentWeapon($scplayer, WeaponType.Vibe1)
  Char.IsCurrentWeapon($scplayer, WeaponType.Vibe2)
goto_if_false @GFDATE_23664
if and
  not is_local_var_bit_set_const 3@ {n} 28
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @GFDATE_23648
Text.PrintHelp('GF_H013')
set_local_var_bit_const 3@ {n} 28

:GFDATE_23648
25@ = 2
return 
goto @GFDATE_23711

:GFDATE_23664
if and
  not is_local_var_bit_set_const 3@ {n} 4
  not Text.IsHelpMessageBeingDisplayed
goto_if_false @GFDATE_23702
Text.PrintHelp('GF_0021')
set_local_var_bit_const 3@ {n} 4

:GFDATE_23702
25@ = 1
return 

:GFDATE_23711
return 

:GFDATE_23713
if 
  $iCensoredVersion == 0
goto_if_false @GFDATE_23743
Streaming.RequestAnimation("BLOWJOBZ")

:GFDATE_23743
Streaming.RequestAnimation("KISSING")

:GFDATE_23754
wait 0
if 
  Streaming.HasAnimationLoaded("KISSING")
goto_if_false @GFDATE_23865
if 
  $iCensoredVersion == 0
goto_if_false @GFDATE_23856
if 
  Streaming.HasAnimationLoaded("BLOWJOBZ")
goto_if_false @GFDATE_23830
return 
goto @GFDATE_23849

:GFDATE_23830
Streaming.RequestAnimation("BLOWJOBZ")
goto @GFDATE_23754

:GFDATE_23849
goto @GFDATE_23858

:GFDATE_23856
return 

:GFDATE_23858
goto @GFDATE_23883

:GFDATE_23865
Streaming.RequestAnimation("KISSING")
goto @GFDATE_23754

:GFDATE_23883
if 
  is_local_var_bit_set_const 3@ {n} 13
goto_if_false @GFDATE_23955
if 
  is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_23934
TIMERA = 30000
goto @GFDATE_23941

:GFDATE_23934
TIMERA = 0

:GFDATE_23941
clear_local_var_bit_const 3@ {n} 13
goto @GFDATE_24662

:GFDATE_23955
if 
  is_local_var_bit_set_const 3@ {n} 8
goto_if_false @GFDATE_24053
if 
  is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_24006
TIMERA = 30000
goto @GFDATE_24039

:GFDATE_24006
if 
  30@ == -1
goto_if_false @GFDATE_24032
set_lvar_int_to_lvar_int 30@ = TIMERA

:GFDATE_24032
TIMERA = 0

:GFDATE_24039
clear_local_var_bit_const 3@ {n} 8
goto @GFDATE_24662

:GFDATE_24053
switch_start 1@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @GFDATE_24662 {caseNum1} 1 {caseLabel1} @GFDATE_24181 {caseNum2} 2 {caseLabel2} @GFDATE_24262 {caseNum3} 3 {caseLabel3} @GFDATE_24276 {caseNum4} 4 {caseLabel4} @GFDATE_24290 {caseNum5} 5 {caseLabel5} @GFDATE_24371 {caseNum6} 6 {caseLabel6} @GFDATE_24385 {caseNum7} 7 {caseLabel7} @GFDATE_24480
switch_continued 10 {caseLabel1} @GFDATE_24575 {caseNum2} 11 {caseLabel2} @GFDATE_24589 {caseNum3} -1 {caseLabel3} @GFDATE_24662 {caseNum4} -1 {caseLabel4} @GFDATE_24662 {caseNum5} -1 {caseLabel5} @GFDATE_24662 {caseNum6} -1 {caseLabel6} @GFDATE_24662 {caseNum7} -1 {caseLabel7} @GFDATE_24662 {caseNum8} -1 {caseLabel8} @GFDATE_24662 {caseNum9} -1 {caseLabel9} @GFDATE_24662

:GFDATE_24181
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 21
  Char.IsShooting(0@)
  not is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_24222
TIMERA = 0

:GFDATE_24222
if 
  30@ > 0
goto_if_false @GFDATE_24255
set_lvar_int_to_lvar_int TIMERA = 30@
30@ = -1

:GFDATE_24255
goto @GFDATE_24662

:GFDATE_24262
TIMERA = 0
goto @GFDATE_24662

:GFDATE_24276
TIMERA = 0
goto @GFDATE_24662

:GFDATE_24290
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 21
  Char.IsShooting(0@)
  not is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_24331
TIMERA = 0

:GFDATE_24331
if 
  30@ > 0
goto_if_false @GFDATE_24364
set_lvar_int_to_lvar_int TIMERA = 30@
30@ = -1

:GFDATE_24364
goto @GFDATE_24662

:GFDATE_24371
TIMERA = 0
goto @GFDATE_24662

:GFDATE_24385
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 27
goto_if_false @GFDATE_24473
if 
  30@ == -1
goto_if_false @GFDATE_24433
set_lvar_int_to_lvar_int 30@ = TIMERA

:GFDATE_24433
if 
  is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_24466
TIMERA = 30000
goto @GFDATE_24473

:GFDATE_24466
TIMERA = 0

:GFDATE_24473
goto @GFDATE_24662

:GFDATE_24480
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 28
goto_if_false @GFDATE_24568
if 
  30@ == -1
goto_if_false @GFDATE_24528
set_lvar_int_to_lvar_int 30@ = TIMERA

:GFDATE_24528
if 
  is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_24561
TIMERA = 30000
goto @GFDATE_24568

:GFDATE_24561
TIMERA = 0

:GFDATE_24568
goto @GFDATE_24662

:GFDATE_24575
TIMERA = 0
goto @GFDATE_24662

:GFDATE_24589
if 
  30@ == -1
goto_if_false @GFDATE_24615
set_lvar_int_to_lvar_int 30@ = TIMERA

:GFDATE_24615
if 
  is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_24648
TIMERA = 30000
goto @GFDATE_24655

:GFDATE_24648
TIMERA = 0

:GFDATE_24655
goto @GFDATE_24662

:GFDATE_24662
return 

:GFDATE_24664
if 
  0.0 >= $fFun
goto_if_false @GFDATE_24695
$fFun -= 0.5

:GFDATE_24695
add_float_var_to_float_var $iFun += $fFun
if 
  0.0 > $iFun
goto_if_false @GFDATE_24734
$iFun = 0.0

:GFDATE_24734
if 
  $iFun > 100.0
goto_if_false @GFDATE_24765
$iFun = 100.0

:GFDATE_24765
cset_var_int_to_var_float $9466 =# $iFun
set_local_var_bit_const 3@ {n} 8
return 

:GFDATE_24782
26@ = Zone.GetCurrentPopulationZoneType()
switch_start 26@ {numCases} 20 {hasDefaultCase} 0 {defaultLabel} @GFDATE_26147 {caseNum1} 0 {caseLabel1} @GFDATE_25022 {caseNum2} 1 {caseLabel2} @GFDATE_25515 {caseNum3} 2 {caseLabel3} @GFDATE_25989 {caseNum4} 3 {caseLabel4} @GFDATE_25594 {caseNum5} 4 {caseLabel5} @GFDATE_25101 {caseNum6} 5 {caseLabel6} @GFDATE_25008 {caseNum7} 6 {caseLabel7} @GFDATE_25015
switch_continued 7 {caseLabel1} @GFDATE_26068 {caseNum2} 8 {caseLabel2} @GFDATE_25357 {caseNum3} 9 {caseLabel3} @GFDATE_25752 {caseNum4} 10 {caseLabel4} @GFDATE_25259 {caseNum5} 11 {caseLabel5} @GFDATE_24980 {caseNum6} 12 {caseLabel6} @GFDATE_25910 {caseNum7} 13 {caseLabel7} @GFDATE_25831 {caseNum8} 14 {caseLabel8} @GFDATE_25673 {caseNum9} 15 {caseLabel9} @GFDATE_25180
switch_continued 16 {caseLabel1} @GFDATE_24994 {caseNum2} 17 {caseLabel2} @GFDATE_25436 {caseNum3} 18 {caseLabel3} @GFDATE_24987 {caseNum4} 19 {caseLabel4} @GFDATE_25001 {caseNum5} -1 {caseLabel5} @GFDATE_26147 {caseNum6} -1 {caseLabel6} @GFDATE_26147 {caseNum7} -1 {caseLabel7} @GFDATE_26147 {caseNum8} -1 {caseLabel8} @GFDATE_26147 {caseNum9} -1 {caseLabel9} @GFDATE_26147

:GFDATE_24980
goto @GFDATE_26147

:GFDATE_24987
goto @GFDATE_26147

:GFDATE_24994
goto @GFDATE_26147

:GFDATE_25001
goto @GFDATE_26147

:GFDATE_25008
goto @GFDATE_26147

:GFDATE_25015
goto @GFDATE_26147

:GFDATE_25022
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 15
goto_if_false @GFDATE_25087
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25073
$fFun += 0.5

:GFDATE_25073
gosub @GFDATE_26149
goto @GFDATE_25094

:GFDATE_25087
gosub @GFDATE_26269

:GFDATE_25094
goto @GFDATE_26147

:GFDATE_25101
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 15
goto_if_false @GFDATE_25166
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25152
$fFun += 0.5

:GFDATE_25152
gosub @GFDATE_26149
goto @GFDATE_25173

:GFDATE_25166
gosub @GFDATE_26269

:GFDATE_25173
goto @GFDATE_26147

:GFDATE_25180
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 15
goto_if_false @GFDATE_25245
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25231
$fFun += 0.5

:GFDATE_25231
gosub @GFDATE_26149
goto @GFDATE_25252

:GFDATE_25245
gosub @GFDATE_26269

:GFDATE_25252
goto @GFDATE_26147

:GFDATE_25259
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 17
goto_if_false @GFDATE_25343
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25329
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25329
$fFun += 0.5

:GFDATE_25329
gosub @GFDATE_26149
goto @GFDATE_25350

:GFDATE_25343
gosub @GFDATE_26269

:GFDATE_25350
goto @GFDATE_26147

:GFDATE_25357
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 17
goto_if_false @GFDATE_25422
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25408
$fFun += 0.5

:GFDATE_25408
gosub @GFDATE_26149
goto @GFDATE_25429

:GFDATE_25422
gosub @GFDATE_26269

:GFDATE_25429
goto @GFDATE_26147

:GFDATE_25436
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 17
goto_if_false @GFDATE_25501
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25487
$fFun += 0.5

:GFDATE_25487
gosub @GFDATE_26149
goto @GFDATE_25508

:GFDATE_25501
gosub @GFDATE_26269

:GFDATE_25508
goto @GFDATE_26147

:GFDATE_25515
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 18
goto_if_false @GFDATE_25580
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25566
$fFun += 0.5

:GFDATE_25566
gosub @GFDATE_26149
goto @GFDATE_25587

:GFDATE_25580
gosub @GFDATE_26269

:GFDATE_25587
goto @GFDATE_26147

:GFDATE_25594
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 18
goto_if_false @GFDATE_25659
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25645
$fFun += 0.5

:GFDATE_25645
gosub @GFDATE_26149
goto @GFDATE_25666

:GFDATE_25659
gosub @GFDATE_26269

:GFDATE_25666
goto @GFDATE_26147

:GFDATE_25673
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 19
goto_if_false @GFDATE_25738
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25724
$fFun += 0.5

:GFDATE_25724
gosub @GFDATE_26149
goto @GFDATE_25745

:GFDATE_25738
gosub @GFDATE_26269

:GFDATE_25745
goto @GFDATE_26147

:GFDATE_25752
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 19
goto_if_false @GFDATE_25817
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25803
$fFun += 0.5

:GFDATE_25803
gosub @GFDATE_26149
goto @GFDATE_25824

:GFDATE_25817
gosub @GFDATE_26269

:GFDATE_25824
goto @GFDATE_26147

:GFDATE_25831
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 19
goto_if_false @GFDATE_25896
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25882
$fFun += 0.5

:GFDATE_25882
gosub @GFDATE_26149
goto @GFDATE_25903

:GFDATE_25896
gosub @GFDATE_26269

:GFDATE_25903
goto @GFDATE_26147

:GFDATE_25910
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 20
goto_if_false @GFDATE_25975
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25961
$fFun += 0.5

:GFDATE_25961
gosub @GFDATE_26149
goto @GFDATE_25982

:GFDATE_25975
gosub @GFDATE_26269

:GFDATE_25982
goto @GFDATE_26147

:GFDATE_25989
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 20
goto_if_false @GFDATE_26054
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26040
$fFun += 0.5

:GFDATE_26040
gosub @GFDATE_26149
goto @GFDATE_26061

:GFDATE_26054
gosub @GFDATE_26269

:GFDATE_26061
goto @GFDATE_26147

:GFDATE_26068
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {n} 16
goto_if_false @GFDATE_26133
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26119
$fFun += 0.5

:GFDATE_26119
gosub @GFDATE_26149
goto @GFDATE_26140

:GFDATE_26133
gosub @GFDATE_26269

:GFDATE_26140
goto @GFDATE_26147

:GFDATE_26147
return 

:GFDATE_26149
26@ = Zone.GetCurrentPopulationZoneType()
if 
  not is_int_lvar_equal_to_int_lvar 26@ == 31@
goto_if_false @GFDATE_26267
if 
  is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_26232
if 
  $9466 > 0
goto_if_false @GFDATE_26225
set_var_int_to_constant $iGFSayContext = 307
set_lvar_int_to_lvar_int 31@ = 26@

:GFDATE_26225
goto @GFDATE_26267

:GFDATE_26232
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26267
set_var_int_to_constant $iGFSayContext = 307
set_lvar_int_to_lvar_int 31@ = 26@

:GFDATE_26267
return 

:GFDATE_26269
26@ = Zone.GetCurrentPopulationZoneType()
if 
  not is_int_lvar_equal_to_int_lvar 26@ == 31@
goto_if_false @GFDATE_26387
if 
  is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_26352
if 
  $9466 > 0
goto_if_false @GFDATE_26345
set_var_int_to_constant $iGFSayContext = 306
set_lvar_int_to_lvar_int 31@ = 26@

:GFDATE_26345
goto @GFDATE_26387

:GFDATE_26352
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26387
set_var_int_to_constant $iGFSayContext = 306
set_lvar_int_to_lvar_int 31@ = 26@

:GFDATE_26387
return 

:GFDATE_26389
if 
  Char.IsInAnyCar(0@)
goto_if_false @GFDATE_26454
28@ = Char.StoreCarIsInNoSave(0@)
25@ = Car.GetHealth(28@)
if 
  29@ == -1
goto_if_false @GFDATE_26447
set_lvar_int_to_lvar_int 29@ = 25@

:GFDATE_26447
goto @GFDATE_26461

:GFDATE_26454
29@ = -1

:GFDATE_26461
return 
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFDATE_26838 {caseNum1} 0 {caseLabel1} @GFDATE_26526 {caseNum2} 1 {caseLabel2} @GFDATE_26578 {caseNum3} 2 {caseLabel3} @GFDATE_26630 {caseNum4} 3 {caseLabel4} @GFDATE_26682 {caseNum5} 4 {caseLabel5} @GFDATE_26734 {caseNum6} 5 {caseLabel6} @GFDATE_26786 {caseNum7} -1 {caseLabel7} @GFDATE_26838

:GFDATE_26526
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_26559
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_26559
Stat.SetInt(StatId.GirlfriendDenise, $iGFLikesPlayer($iGFidx,6i))
goto @GFDATE_26838

:GFDATE_26578
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_26611
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_26611
Stat.SetInt(StatId.GirlfriendMichelle, $iGFLikesPlayer($iGFidx,6i))
goto @GFDATE_26838

:GFDATE_26630
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_26663
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_26663
Stat.SetInt(StatId.GirlfriendHelena, $iGFLikesPlayer($iGFidx,6i))
goto @GFDATE_26838

:GFDATE_26682
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_26715
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_26715
Stat.SetInt(StatId.GirlfriendBarbara, $iGFLikesPlayer($iGFidx,6i))
goto @GFDATE_26838

:GFDATE_26734
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_26767
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_26767
Stat.SetInt(StatId.GirlfriendKatie, $iGFLikesPlayer($iGFidx,6i))
goto @GFDATE_26838

:GFDATE_26786
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_26819
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_26819
Stat.SetInt(StatId.GirlfriendMillie, $iGFLikesPlayer($iGFidx,6i))
goto @GFDATE_26838

:GFDATE_26838
return 

:GFDATE_26840
switch_start $iGF_TT_Status {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @GFDATE_30083 {caseNum1} -1 {caseLabel1} @GFDATE_26968 {caseNum2} 0 {caseLabel2} @GFDATE_26982 {caseNum3} 1 {caseLabel3} @GFDATE_27243 {caseNum4} 2 {caseLabel4} @GFDATE_27295 {caseNum5} 3 {caseLabel5} @GFDATE_27554 {caseNum6} 4 {caseLabel6} @GFDATE_27708 {caseNum7} 5 {caseLabel7} @GFDATE_27868
switch_continued 6 {caseLabel1} @GFDATE_27924 {caseNum2} 7 {caseLabel2} @GFDATE_28124 {caseNum3} 8 {caseLabel3} @GFDATE_28357 {caseNum4} 9 {caseLabel4} @GFDATE_28461 {caseNum5} 10 {caseLabel5} @GFDATE_28678 {caseNum6} 11 {caseLabel6} @GFDATE_29075 {caseNum7} 12 {caseLabel7} @GFDATE_29346 {caseNum8} 13 {caseLabel8} @GFDATE_29599 {caseNum9} 99 {caseLabel9} @GFDATE_29735

:GFDATE_26968
clear_global_var_bit_const $iDateReport {n} 22
goto @GFDATE_30083

:GFDATE_26982
$iGF_TT_PedModel = Math.RandomIntInRange(0, 6)
if and
  6 > $iGF_TT_PedModel
  is_global_var_bit_set_var $iActiveGF {var_n} $iGF_TT_PedModel
  not is_int_var_equal_to_int_var $iGF_TT_PedModel == $iGFidx
goto_if_false @GFDATE_27236
if 
  $iGF_TT_PedModel == 0
goto_if_false @GFDATE_27059
set_var_int_to_constant $iGF_TT_PedModel = 195
set_var_int_to_constant $iGF_TT_CarModel = 545

:GFDATE_27059
if 
  $iGF_TT_PedModel == 1
goto_if_false @GFDATE_27093
set_var_int_to_constant $iGF_TT_PedModel = 192
set_var_int_to_constant $iGF_TT_CarModel = 557

:GFDATE_27093
if 
  $iGF_TT_PedModel == 3
goto_if_false @GFDATE_27127
set_var_int_to_constant $iGF_TT_PedModel = 190
set_var_int_to_constant $iGF_TT_CarModel = 599

:GFDATE_27127
if 
  $iGF_TT_PedModel == 2
goto_if_false @GFDATE_27161
set_var_int_to_constant $iGF_TT_PedModel = 191
set_var_int_to_constant $iGF_TT_CarModel = 568

:GFDATE_27161
if 
  $iGF_TT_PedModel == 4
goto_if_false @GFDATE_27195
set_var_int_to_constant $iGF_TT_PedModel = 193
set_var_int_to_constant $iGF_TT_CarModel = 442

:GFDATE_27195
if 
  $iGF_TT_PedModel == 5
goto_if_false @GFDATE_27229
set_var_int_to_constant $iGF_TT_PedModel = 194
set_var_int_to_constant $iGF_TT_CarModel = 533

:GFDATE_27229
$iGF_TT_Status = 1

:GFDATE_27236
goto @GFDATE_30083

:GFDATE_27243
if and
  Streaming.HasModelLoaded($iGF_TT_CarModel)
  Streaming.HasModelLoaded($iGF_TT_PedModel)
goto_if_false @GFDATE_27278
$iGF_TT_Status = 2
goto @GFDATE_27288

:GFDATE_27278
Streaming.RequestModel($iGF_TT_CarModel)
Streaming.RequestModel($iGF_TT_PedModel)

:GFDATE_27288
goto @GFDATE_30083

:GFDATE_27295
4@, 7@, 10@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 25.0, 0.0)
if 
5@, 8@, 11@, 13@ = Path.GetClosestCarNodeWithHeading(4@, 7@, 10@)
goto_if_false @GFDATE_27540
World.ClearArea(5@, 8@, 11@, 5.0, True)
$iGF_TT_Car = Car.Create($iGF_TT_CarModel, 5@, 8@, 11@)
StuckCarCheck.AddWithWarp($iGF_TT_Car, 1.0, 1000, True, True, True, -1)
if 
  is_int_var_equal_to_constant $iGF_TT_CarModel == 545
goto_if_false @GFDATE_27442
Car.ChangeColor($iGF_TT_Car, 83, 1)

:GFDATE_27442
if 
  is_int_var_equal_to_constant $iGF_TT_CarModel == 442
goto_if_false @GFDATE_27470
Car.ChangeColor($iGF_TT_Car, 1, 1)

:GFDATE_27470
if 
  is_int_var_equal_to_constant $iGF_TT_CarModel == 533
goto_if_false @GFDATE_27498
Car.ChangeColor($iGF_TT_Car, 126, 1)

:GFDATE_27498
$iGF_TT_driver = Char.CreateInsideCar($iGF_TT_Car, PedType.CivFemale, $iGF_TT_PedModel)
Char.SetCantBeDraggedOut($iGF_TT_driver, True)
Car.SetHeading($iGF_TT_Car, 13@)
$iGF_TT_Status = 3
goto @GFDATE_27547

:GFDATE_27540
$iGF_TT_Status = 99

:GFDATE_27547
goto @GFDATE_30083

:GFDATE_27554
Text.ClearPrints
Text.ClearHelp
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
if and
  not Car.IsDead($iGF_TT_Car)
  not Char.IsDead($iGF_TT_driver)
goto_if_false @GFDATE_27694
Camera.AttachToVehicleLookAtChar($iGF_TT_Car, -1.5, 1.5, 1.5, $iGF_TT_driver, 6.0, SwitchType.JumpCut)
Task.PlayAnimNonInterruptable($iGF_TT_driver, "GF_CARSPOT", "KISSING", 4.0, True, False, False, False, 5000)
Text.PrintHelp('GF_H014')
$iGF_TT_Status = 4
goto @GFDATE_27701

:GFDATE_27694
$iGF_TT_Status = 99

:GFDATE_27701
goto @GFDATE_30083

:GFDATE_27708
if and
  not Char.IsDead($iGF_TT_driver)
  not Car.IsDead($iGF_TT_Car)
goto_if_false @GFDATE_27854
26@ = Char.GetScriptTaskStatus($iGF_TT_driver, 2066)
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_27847
if 
  not Car.IsDead(28@)
goto_if_false @GFDATE_27810
if and
  Car.IsPassengerSeatFree(28@, SeatIndex.TandemRear)
  Char.IsInCar($scplayer, 28@)
goto_if_false @GFDATE_27810
Task.WarpCharIntoCarAsPassenger(0@, 28@, 0)

:GFDATE_27810
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
$iGF_TT_Blip = Blip.AddForCar($iGF_TT_Car)
$iGF_TT_Status = 5

:GFDATE_27847
goto @GFDATE_27861

:GFDATE_27854
$iGF_TT_Status = 99

:GFDATE_27861
goto @GFDATE_30083

:GFDATE_27868
if and
  not Char.IsDead($iGF_TT_driver)
  not Car.IsDead($iGF_TT_Car)
goto_if_false @GFDATE_27910
Car.SetMission($iGF_TT_Car, CarMission.RamPlayerClose)
$iGF_TT_Status = 6
goto @GFDATE_27917

:GFDATE_27910
$iGF_TT_Status = 99

:GFDATE_27917
goto @GFDATE_30083

:GFDATE_27924
if and
  not Char.IsDead($iGF_TT_driver)
  not Car.IsDead($iGF_TT_Car)
goto_if_false @GFDATE_28110
4@, 7@, 10@ = Char.GetCoordinates($scplayer)
5@, 8@, 11@ = Car.GetCoordinates($iGF_TT_Car)
13@ = Math.GetDistanceBetweenCoords3D(4@, 7@, 10@, 5@, 8@, 11@)
if 
  6.0 >= 13@
goto_if_false @GFDATE_28059
Car.SetMission($iGF_TT_Car, CarMission.None)
Car.FreezePosition($iGF_TT_Car, True)
Player.SetControl($player1, False)
Camera.DoFade(500, Fade.Out)
$iGF_TT_Status = 8
goto @GFDATE_28103

:GFDATE_28059
if 
  13@ > 200.0
goto_if_false @GFDATE_28103
set_lvar_int_to_lvar_int 26@ = TIMERA
26@ += 20000
$iGF_TT_Status = 7

:GFDATE_28103
goto @GFDATE_28117

:GFDATE_28110
$iGF_TT_Status = 99

:GFDATE_28117
goto @GFDATE_30083

:GFDATE_28124
if and
  not Char.IsDead($iGF_TT_driver)
  not Car.IsDead($iGF_TT_Car)
goto_if_false @GFDATE_28343
4@, 7@, 10@ = Char.GetCoordinates($scplayer)
5@, 8@, 11@ = Car.GetCoordinates($iGF_TT_Car)
13@ = Math.GetDistanceBetweenCoords3D(4@, 7@, 10@, 5@, 8@, 11@)
if 
  13@ > 180.0
goto_if_false @GFDATE_28329
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 26@
goto_if_false @GFDATE_28322
if 
  Blip.DoesExist($iGF_TT_Blip)
goto_if_false @GFDATE_28257
Blip.Remove($iGF_TT_Blip)

:GFDATE_28257
Char.Delete($iGF_TT_driver)
if 
  not Car.IsDead($iGF_TT_Car)
goto_if_false @GFDATE_28304
if 
  Car.DoesHaveStuckCarCheck($iGF_TT_Car)
goto_if_false @GFDATE_28299
StuckCarCheck.Remove($iGF_TT_Car)

:GFDATE_28299
Car.Delete($iGF_TT_Car)

:GFDATE_28304
Text.PrintHelp('GF_H016')
$iGF_TT_Status = 12

:GFDATE_28322
goto @GFDATE_28336

:GFDATE_28329
$iGF_TT_Status = 6

:GFDATE_28336
goto @GFDATE_28350

:GFDATE_28343
$iGF_TT_Status = 99

:GFDATE_28350
goto @GFDATE_30083

:GFDATE_28357
if and
  not Char.IsDead($iGF_TT_driver)
  not Car.IsDead($iGF_TT_Car)
goto_if_false @GFDATE_28447
if 
  not Camera.GetFadingStatus
goto_if_false @GFDATE_28440
Text.ClearPrints
Text.ClearHelp
Player.SetControl($player1, False)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
Camera.SetInFrontOfPlayer
Camera.DoFade(500, Fade.In)
TIMERB = 0
$iGF_TT_Status = 9

:GFDATE_28440
goto @GFDATE_28454

:GFDATE_28447
$iGF_TT_Status = 99

:GFDATE_28454
goto @GFDATE_30083

:GFDATE_28461
if and
  not Char.IsDead($iGF_TT_driver)
  not Car.IsDead($iGF_TT_Car)
goto_if_false @GFDATE_28664
if 
  not Camera.GetFadingStatus
goto_if_false @GFDATE_28657
4@, 7@, 10@ = Camera.GetActiveCoordinates()
5@, 8@, 11@ = Char.GetCoordinates($iGF_TT_driver)
Camera.SetFixedPosition(4@, 7@, 10@, 0.0, 0.0, 1.0)
Camera.PointAtPoint(5@, 8@, 11@, SwitchType.Interpolation)
Char.SetProofs($iGF_TT_driver, True, True, True, True, True)
Car.SetProofs($iGF_TT_Car, True, True, True, True, True)
Task.PlayAnimNonInterruptable($iGF_TT_driver, "GF_CARARGUE_01", "KISSING", 4.0, True, False, False, False, 5000)
$iGFSpeechStatus = 7
set_var_int_to_constant $iGFSayContext = 288
$iGF_TT_Status = 10

:GFDATE_28657
goto @GFDATE_28671

:GFDATE_28664
$iGF_TT_Status = 99

:GFDATE_28671
goto @GFDATE_30083

:GFDATE_28678
if and
  not Char.IsDead($iGF_TT_driver)
  not Car.IsDead($iGF_TT_Car)
goto_if_false @GFDATE_29061
26@ = Char.GetScriptTaskStatus($iGF_TT_driver, 2066)
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_29054
if 
  Char.IsInAnyCar(0@)
goto_if_false @GFDATE_28854
5@, 8@, 11@ = Char.GetCoordinates(0@)
Camera.PointAtPoint(5@, 8@, 11@, SwitchType.Interpolation)
Char.SetProofs(0@, True, True, True, True, True)
Task.PlayAnimNonInterruptable(0@, "GF_CARARGUE_02", "KISSING", 4.0, True, False, False, False, 5000)
set_var_int_to_constant $iGFSayContext = 289
$iGF_TT_Status = 11
goto @GFDATE_29054

:GFDATE_28854
4@, 7@, 10@ = Char.GetCoordinates(0@)
5@, 8@, 11@ = Char.GetCoordinates($scplayer)
13@ = Math.GetDistanceBetweenCoords3D(4@, 7@, 10@, 5@, 8@, 11@)
if or
  5.0 > 13@
  TIMERB > 6000
goto_if_false @GFDATE_29047
5@, 8@, 11@ = Char.GetCoordinates(0@)
Camera.PointAtPoint(5@, 8@, 11@, SwitchType.Interpolation)
Char.SetProofs(0@, True, True, True, True, True)
Task.PlayAnimNonInterruptable(0@, "GF_STREETARGUE_02", "KISSING", 4.0, True, False, False, False, 5000)
set_var_int_to_constant $iGFSayContext = 289
$iGF_TT_Status = 11
goto @GFDATE_29054

:GFDATE_29047
goto @GFDATE_30083

:GFDATE_29054
goto @GFDATE_29068

:GFDATE_29061
$iGF_TT_Status = 99

:GFDATE_29068
goto @GFDATE_30083

:GFDATE_29075
if and
  not Char.IsDead($iGF_TT_driver)
  not Car.IsDead($iGF_TT_Car)
goto_if_false @GFDATE_29332
26@ = Char.GetScriptTaskStatus(0@, 2066)
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_29325
26@ = Char.GetScriptTaskStatus($iGF_TT_driver, 1490)
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_29176
Car.FreezePosition($iGF_TT_Car, False)
Task.CarDriveWander($iGF_TT_driver, $iGF_TT_Car, 30.0, DrivingMode.PloughThrough)

:GFDATE_29176
if 
  not Car.IsDead(28@)
goto_if_false @GFDATE_29311
if 
  Char.IsInCar(0@, 28@)
goto_if_false @GFDATE_29255
26@ = Char.GetScriptTaskStatus(0@, 1485)
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_29248
Task.LeaveCar(0@, 28@)

:GFDATE_29248
goto @GFDATE_29311

:GFDATE_29255
26@ = Char.GetScriptTaskStatus(0@, 1873)
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_29311
Task.FleeCharAnyMeans(0@, $scplayer, 100.0, 5000, False, 0, 0, 30.0)

:GFDATE_29311
TIMERB = 0
$iGF_TT_Status = 12

:GFDATE_29325
goto @GFDATE_29339

:GFDATE_29332
$iGF_TT_Status = 99

:GFDATE_29339
goto @GFDATE_30083

:GFDATE_29346
if and
  not Char.IsDead($iGF_TT_driver)
  not Car.IsDead($iGF_TT_Car)
goto_if_false @GFDATE_29585
if 
  TIMERB > 5000
goto_if_false @GFDATE_29578
Camera.DoFade(1000, Fade.Out)
$iGFLikesPlayer($iGFidx,6i) -= 4
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 195
goto_if_false @GFDATE_29430
26@ = 0

:GFDATE_29430
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 192
goto_if_false @GFDATE_29456
26@ = 1

:GFDATE_29456
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 190
goto_if_false @GFDATE_29482
26@ = 3

:GFDATE_29482
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 191
goto_if_false @GFDATE_29508
26@ = 2

:GFDATE_29508
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 193
goto_if_false @GFDATE_29534
26@ = 4

:GFDATE_29534
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 194
goto_if_false @GFDATE_29560
26@ = 5

:GFDATE_29560
$iGFLikesPlayer(26@,6i) -= 4
$iGF_TT_Status = 13

:GFDATE_29578
goto @GFDATE_29592

:GFDATE_29585
$iGF_TT_Status = 99

:GFDATE_29592
goto @GFDATE_30083

:GFDATE_29599
if 
  not Camera.GetFadingStatus
goto_if_false @GFDATE_29728
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
set_local_var_bit_const 3@ {n} 7
Char.Delete($iGF_TT_driver)
if 
  not Car.IsDead($iGF_TT_Car)
goto_if_false @GFDATE_29688
if 
  Car.DoesHaveStuckCarCheck($iGF_TT_Car)
goto_if_false @GFDATE_29683
StuckCarCheck.Remove($iGF_TT_Car)

:GFDATE_29683
Car.Delete($iGF_TT_Car)

:GFDATE_29688
Char.SetProofs(0@, False, False, False, False, False)
Camera.DoFade(1500, Fade.In)
Text.PrintHelp('GF_H015')
gosub @GFDATE_32147

:GFDATE_29728
goto @GFDATE_30083

:GFDATE_29735
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
if 
  not Char.IsDead(0@)
goto_if_false @GFDATE_29781
Char.SetProofs(0@, False, False, False, False, False)

:GFDATE_29781
if 
  not Char.IsDead($iGF_TT_driver)
goto_if_false @GFDATE_29812
Char.SetProofs($iGF_TT_driver, False, False, False, False, False)

:GFDATE_29812
if 
  not Car.IsDead($iGF_TT_Car)
goto_if_false @GFDATE_29849
if 
  Car.DoesHaveStuckCarCheck($iGF_TT_Car)
goto_if_false @GFDATE_29849
StuckCarCheck.Remove($iGF_TT_Car)

:GFDATE_29849
if 
  Blip.DoesExist($iGF_TT_Blip)
goto_if_false @GFDATE_29870
Blip.Remove($iGF_TT_Blip)

:GFDATE_29870
if and
  Char.IsDead($iGF_TT_driver)
  Char.HasBeenDamagedByChar($iGF_TT_driver, $scplayer)
goto_if_false @GFDATE_30062
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 195
goto_if_false @GFDATE_29920
26@ = 0

:GFDATE_29920
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 192
goto_if_false @GFDATE_29946
26@ = 1

:GFDATE_29946
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 190
goto_if_false @GFDATE_29972
26@ = 3

:GFDATE_29972
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 191
goto_if_false @GFDATE_29998
26@ = 2

:GFDATE_29998
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 193
goto_if_false @GFDATE_30024
26@ = 4

:GFDATE_30024
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 194
goto_if_false @GFDATE_30050
26@ = 5

:GFDATE_30050
$iGFLikesPlayer(26@,6i) = -999

:GFDATE_30062
clear_global_var_bit_const $iDateReport {n} 22
$iGF_TT_Status = -1
goto @GFDATE_30083

:GFDATE_30083
return 

:GFDATE_30085
switch_start $iGFSpeechStatus {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @GFDATE_30915 {caseNum1} 0 {caseLabel1} @GFDATE_30213 {caseNum2} 1 {caseLabel2} @GFDATE_30284 {caseNum3} 2 {caseLabel3} @GFDATE_30296 {caseNum4} 3 {caseLabel4} @GFDATE_30310 {caseNum5} 4 {caseLabel5} @GFDATE_30579 {caseNum6} 5 {caseLabel6} @GFDATE_30679 {caseNum7} 6 {caseLabel7} @GFDATE_30488
switch_continued 7 {caseLabel1} @GFDATE_30721 {caseNum2} -1 {caseLabel2} @GFDATE_30915 {caseNum3} -1 {caseLabel3} @GFDATE_30915 {caseNum4} -1 {caseLabel4} @GFDATE_30915 {caseNum5} -1 {caseLabel5} @GFDATE_30915 {caseNum6} -1 {caseLabel6} @GFDATE_30915 {caseNum7} -1 {caseLabel7} @GFDATE_30915 {caseNum8} -1 {caseLabel8} @GFDATE_30915 {caseNum9} -1 {caseLabel9} @GFDATE_30915

:GFDATE_30213
if 
  $iGFSayContext > 0
goto_if_false @GFDATE_30245
$iGFSpeechStatus = 3
goto @GFDATE_30277

:GFDATE_30245
if and
  $iGFSayContext == -2
  $iCJSayContext > 0
goto_if_false @GFDATE_30277
$iGFSpeechStatus = 3

:GFDATE_30277
goto @GFDATE_30915

:GFDATE_30284
Char.EnableSpeech(0@)
goto @GFDATE_30915

:GFDATE_30296
Char.DisableSpeech(0@, False)
goto @GFDATE_30915

:GFDATE_30310
if 
  not Char.IsTalking(0@)
goto_if_false @GFDATE_30481
if 
  $iGFSayContext > 0
goto_if_false @GFDATE_30421
$iGFContextVariation = Char.SetSayContextImportant(0@, $iGFSayContext, False, True, False)
gosub @GFDATE_30917
$iGFSayContext = -1
if 
  $iCJSayContext > 0
goto_if_false @GFDATE_30407
$iGFSpeechStatus = 6
goto @GFDATE_30414

:GFDATE_30407
$iGFSpeechStatus = 0

:GFDATE_30414
goto @GFDATE_30481

:GFDATE_30421
if 
  $iGFSayContext == -2
goto_if_false @GFDATE_30460
$iGFSayContext = -1
$iGFSpeechStatus = 6
goto @GFDATE_30481

:GFDATE_30460
$iGFSayContext = -1
$iCJSayContext = -1
$iGFSpeechStatus = 0

:GFDATE_30481
goto @GFDATE_30915

:GFDATE_30488
if and
  not Char.IsTalking($scplayer)
  not Char.IsTalking(0@)
goto_if_false @GFDATE_30572
if 
  $iCJSayContext > 0
goto_if_false @GFDATE_30565
$iGFContextVariation = Char.SetSayContextImportant($scplayer, $iCJSayContext, False, True, False)
$iCJSayContext = -1
$iGFSpeechStatus = 0
goto @GFDATE_30572

:GFDATE_30565
$iGFSpeechStatus = 0

:GFDATE_30572
goto @GFDATE_30915

:GFDATE_30579
Char.DisableSpeech(0@, False)
if 
  not Char.IsTalking(0@)
goto_if_false @GFDATE_30672
if 
  $iGFSayContext > 0
goto_if_false @GFDATE_30665
$iGFContextVariation = Char.SetSayContextImportant(0@, $iGFSayContext, False, True, False)
gosub @GFDATE_30917
$iGFSayContext = -1
$iGFSpeechStatus = 5
goto @GFDATE_30672

:GFDATE_30665
$iGFSpeechStatus = 0

:GFDATE_30672
goto @GFDATE_30915

:GFDATE_30679
if 
  not Char.IsTalking(0@)
goto_if_false @GFDATE_30714
Char.EnableSpeech(0@)
$iGFSayContext = -1
$iGFSpeechStatus = 0

:GFDATE_30714
goto @GFDATE_30915

:GFDATE_30721
if 
  not Char.IsDead($iGF_TT_driver)
goto_if_false @GFDATE_30908
if 
  not Char.IsTalking($iGF_TT_driver)
goto_if_false @GFDATE_30908
if 
  $iGFSayContext > 0
goto_if_false @GFDATE_30848
$iGFContextVariation = Char.SetSayContextImportant($iGF_TT_driver, $iGFSayContext, False, True, False)
gosub @GFDATE_30917
$iGFSayContext = -1
if 
  $iCJSayContext > 0
goto_if_false @GFDATE_30834
$iGFSpeechStatus = 6
goto @GFDATE_30841

:GFDATE_30834
$iGFSpeechStatus = 0

:GFDATE_30841
goto @GFDATE_30908

:GFDATE_30848
if 
  $iGFSayContext == -2
goto_if_false @GFDATE_30887
$iGFSayContext = -1
$iGFSpeechStatus = 6
goto @GFDATE_30908

:GFDATE_30887
$iGFSayContext = -1
$iCJSayContext = -1
$iGFSpeechStatus = 0

:GFDATE_30908
goto @GFDATE_30915

:GFDATE_30915
return 

:GFDATE_30917
switch_start $iGFSayContext {numCases} 29 {hasDefaultCase} 0 {defaultLabel} @GFDATE_32035 {caseNum1} 32 {caseLabel1} @GFDATE_31989 {caseNum2} 39 {caseLabel2} @GFDATE_32012 {caseNum3} 262 {caseLabel3} @GFDATE_31202 {caseNum4} 264 {caseLabel4} @GFDATE_31209 {caseNum5} 266 {caseLabel5} @GFDATE_31216 {caseNum6} 267 {caseLabel6} @GFDATE_31269 {caseNum7} 268 {caseLabel7} @GFDATE_31246
switch_continued 269 {caseLabel1} @GFDATE_31315 {caseNum2} 270 {caseLabel2} @GFDATE_31461 {caseNum3} 275 {caseLabel3} @GFDATE_31507 {caseNum4} 276 {caseLabel4} @GFDATE_31530 {caseNum5} 277 {caseLabel5} @GFDATE_31874 {caseNum6} 278 {caseLabel6} @GFDATE_31292 {caseNum7} 279 {caseLabel7} @GFDATE_31828 {caseNum8} 280 {caseLabel8} @GFDATE_31752 {caseNum9} 287 {caseLabel9} @GFDATE_31775
switch_continued 291 {caseLabel1} @GFDATE_31729 {caseNum2} 293 {caseLabel2} @GFDATE_31484 {caseNum3} 294 {caseLabel3} @GFDATE_31798 {caseNum4} 297 {caseLabel4} @GFDATE_31943 {caseNum5} 301 {caseLabel5} @GFDATE_31805 {caseNum6} 304 {caseLabel6} @GFDATE_31223 {caseNum7} 305 {caseLabel7} @GFDATE_31851 {caseNum8} 306 {caseLabel8} @GFDATE_31920 {caseNum9} 307 {caseLabel9} @GFDATE_31897
switch_continued 308 {caseLabel1} @GFDATE_31966 {caseNum2} 309 {caseLabel2} @GFDATE_31553 {caseNum3} 311 {caseLabel3} @GFDATE_31706 {caseNum4} 312 {caseLabel4} @GFDATE_31576 {caseNum5} -1 {caseLabel5} @GFDATE_32035 {caseNum6} -1 {caseLabel6} @GFDATE_32035 {caseNum7} -1 {caseLabel7} @GFDATE_32035 {caseNum8} -1 {caseLabel8} @GFDATE_32035 {caseNum9} -1 {caseLabel9} @GFDATE_32035

:GFDATE_31202
goto @GFDATE_32035

:GFDATE_31209
goto @GFDATE_32035

:GFDATE_31216
goto @GFDATE_32035

:GFDATE_31223
Text.PrintNow('GF_0045', 5000, 1)
goto @GFDATE_32035

:GFDATE_31246
Text.PrintNow('GF_0061', 5000, 1)
goto @GFDATE_32035

:GFDATE_31269
Text.PrintNow('GF_0044', 5000, 1)
goto @GFDATE_32035

:GFDATE_31292
Text.PrintNow('GF_0022', 5000, 1)
goto @GFDATE_32035

:GFDATE_31315
if 
  is_global_var_bit_set_const $iDateReport {n} 11
goto_if_false @GFDATE_31356
Text.PrintNow('GF_0077', 5000, 1)
goto @GFDATE_31454

:GFDATE_31356
if 
  is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_31397
Text.PrintNow('GF_0078', 5000, 1)
goto @GFDATE_31454

:GFDATE_31397
if 
  is_global_var_bit_set_const $iDateReport {n} 13
goto_if_false @GFDATE_31438
Text.PrintNow('GF_0079', 5000, 1)
goto @GFDATE_31454

:GFDATE_31438
Text.PrintNow('GF_0031', 5000, 1)

:GFDATE_31454
goto @GFDATE_32035

:GFDATE_31461
Text.PrintNow('GF_0031', 5000, 1)
goto @GFDATE_32035

:GFDATE_31484
Text.PrintNow('GF_0004', 3000, 1)
goto @GFDATE_32035

:GFDATE_31507
Text.PrintNow('GF_0007', 5000, 1)
goto @GFDATE_32035

:GFDATE_31530
Text.PrintNow('GF_0066', 5000, 1)
goto @GFDATE_32035

:GFDATE_31553
Text.PrintNow('GF_0011', 5000, 1)
goto @GFDATE_32035

:GFDATE_31576
if 
  is_local_var_bit_set_const 3@ {n} 20
goto_if_false @GFDATE_31617
Text.PrintNow('GF_0074', 5000, 1)
goto @GFDATE_32035

:GFDATE_31617
if 
  is_local_var_bit_set_const 3@ {n} 21
goto_if_false @GFDATE_31658
Text.PrintNow('GF_0053', 5000, 1)
goto @GFDATE_32035

:GFDATE_31658
if 
  is_local_var_bit_set_const 3@ {n} 22
goto_if_false @GFDATE_31699
Text.PrintNow('GF_0075', 5000, 1)
goto @GFDATE_32035

:GFDATE_31699
goto @GFDATE_32035

:GFDATE_31706
Text.PrintNow('GF_0052', 5000, 1)
goto @GFDATE_32035

:GFDATE_31729
Text.PrintNow('GF_0034', 5000, 1)
goto @GFDATE_32035

:GFDATE_31752
Text.PrintNow('GF_0014', 5000, 1)
goto @GFDATE_32035

:GFDATE_31775
Text.PrintNow('GF_0033', 5000, 1)
goto @GFDATE_32035

:GFDATE_31798
goto @GFDATE_32035

:GFDATE_31805
Text.PrintNow('GF_0024', 5000, 1)
goto @GFDATE_32035

:GFDATE_31828
Text.PrintNow('GF_0032', 5000, 1)
goto @GFDATE_32035

:GFDATE_31851
Text.PrintNow('GF_0047', 5000, 1)
goto @GFDATE_32035

:GFDATE_31874
Text.PrintNow('GF_0054', 5000, 1)
goto @GFDATE_32035

:GFDATE_31897
Text.PrintNow('GF_0050', 5000, 1)
goto @GFDATE_32035

:GFDATE_31920
Text.PrintNow('GF_0051', 5000, 1)
goto @GFDATE_32035

:GFDATE_31943
Text.PrintNow('GF_0070', 5000, 1)
goto @GFDATE_32035

:GFDATE_31966
Text.PrintNow('GF_0072', 5000, 1)
goto @GFDATE_32035

:GFDATE_31989
Text.PrintNow('GF_0073', 2500, 1)
goto @GFDATE_32035

:GFDATE_32012
Text.PrintNow('GF_0076', 2500, 1)
goto @GFDATE_32035

:GFDATE_32035
return 

:GFDATE_32037
26@ = 0

:GFDATE_32044
if 
  Blip.DoesExist(15@(26@,9i))
goto_if_false @GFDATE_32073
Blip.Remove(15@(26@,9i))

:GFDATE_32073
26@ += 1
  26@ >= 9
goto_if_false @GFDATE_32044
if 
  Blip.DoesExist($iGF_TT_Blip)
goto_if_false @GFDATE_32115
Blip.Remove($iGF_TT_Blip)

:GFDATE_32115
if 
  is_global_var_bit_set_const $iDateReport {n} 12
goto_if_false @GFDATE_32138
Hud.ClearCounter($9466)

:GFDATE_32138
clear_local_var_bit_const 3@ {n} 11
return 

:GFDATE_32147
gosub @GFDATE_32037
gosub @GFDATE_18712
Text.ClearPrints
if 
  not Char.IsDead(0@)
goto_if_false @GFDATE_32203
if 
  Char.IsGroupMember(0@, $Players_Group)
goto_if_false @GFDATE_32203
Char.RemoveFromGroup(0@)

:GFDATE_32203
if 
  not Car.IsDead(28@)
goto_if_false @GFDATE_32240
if 
  Car.DoesHaveStuckCarCheck(28@)
goto_if_false @GFDATE_32240
StuckCarCheck.Remove(28@)

:GFDATE_32240
if 
  $iGF_TT_Status > 0
goto_if_false @GFDATE_32288
if 
  Player.IsPlaying($player1)
goto_if_false @GFDATE_32288
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)

:GFDATE_32288
if 
  not Car.IsDead($iGF_TT_Car)
goto_if_false @GFDATE_32325
if 
  Car.DoesHaveStuckCarCheck($iGF_TT_Car)
goto_if_false @GFDATE_32325
StuckCarCheck.Remove($iGF_TT_Car)

:GFDATE_32325
Streaming.MarkModelAsNoLongerNeeded($iGF_TT_CarModel)
Streaming.MarkModelAsNoLongerNeeded($iGF_TT_PedModel)
Char.MarkAsNoLongerNeeded($iGF_TT_driver)
Car.MarkAsNoLongerNeeded($iGF_TT_Car)
Streaming.RemoveAnimation("KISSING")
if 
  $iCensoredVersion == 0
goto_if_false @GFDATE_32386
Streaming.RemoveAnimation("BLOWJOBZ")

:GFDATE_32386
if 
  Char.IsDead(0@)
goto_if_false @GFDATE_32446
clear_global_var_bit_const $iDateReport {n} 2
if 
  is_local_var_bit_set_const 3@ {n} 15
goto_if_false @GFDATE_32439
$iGFLikesPlayer($iGFidx,6i) = -999

:GFDATE_32439
goto @GFDATE_32519

:GFDATE_32446
if 
  is_local_var_bit_set_const 3@ {n} 15
goto_if_false @GFDATE_32519
clear_global_var_bit_const $iDateReport {n} 2
if 
  not Char.IsHealthGreater(0@, 10)
goto_if_false @GFDATE_32508
$iGFLikesPlayer($iGFidx,6i) = -999
goto @GFDATE_32519

:GFDATE_32508
$iGFLikesPlayer($iGFidx,6i) -= 10

:GFDATE_32519
if 
  is_local_var_bit_set_const 3@ {n} 7
goto_if_false @GFDATE_32544
clear_global_var_bit_const $iDateReport {n} 2

:GFDATE_32544
$iDanceScore = 0
$iDanceGirlfriend = -1
if 
  is_local_var_bit_set_const 3@ {n} 9
goto_if_false @GFDATE_32608
if 
  not is_global_var_bit_set_const $iDateReport {n} 14
goto_if_false @GFDATE_32601
set_global_var_bit_const $iDateReport {n} 8

:GFDATE_32601
goto @GFDATE_32615

:GFDATE_32608
set_global_var_bit_const $iDateReport {n} 21

:GFDATE_32615
if 
  Player.IsPlaying($player1)
goto_if_false @GFDATE_32656
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)
Player.SetGroupToFollowAlways($player1, False)
Player.SetGroupRecruitment($player1, True)

:GFDATE_32656
Stat.ShowUpdateStats(True)
clear_global_var_bit_const $iDateReport {n} 1
set_global_var_bit_var $iGFAvailableFor2Player {var_n} $iGFidx
terminate_this_script 
return 
write_debug_with_int "IGF_TT_STATUS" {_p2} $iGF_TT_Status
write_debug_with_int v$active_pool_script {_p2} 24@
write_debug_with_int "ICURRENTCARHEALTH" {_p2} 29@
write_debug_with_float "FTEMP1_SPEED" {_p2} 14@
write_debug_with_float "FUN_TEMP" {_p2} $fFun
write_debug_with_int "TIMERB" {_p2} TIMERB
write_debug_with_int "DATE_TIMER" {_p2} TIMERA
write_debug_with_int "SUBSTATESTATUS" {_p2} 2@
switch_start 1@ {numCases} 11 {hasDefaultCase} 1 {defaultLabel} @GFDATE_33274 {caseNum1} 0 {caseLabel1} @GFDATE_32944 {caseNum2} 1 {caseLabel2} @GFDATE_32972 {caseNum3} 2 {caseLabel3} @GFDATE_33003 {caseNum4} 3 {caseLabel4} @GFDATE_33034 {caseNum5} 4 {caseLabel5} @GFDATE_33065 {caseNum6} 5 {caseLabel6} @GFDATE_33095 {caseNum7} 6 {caseLabel7} @GFDATE_33125
switch_continued 7 {caseLabel1} @GFDATE_33156 {caseNum2} 8 {caseLabel2} @GFDATE_33189 {caseNum3} 9 {caseLabel3} @GFDATE_33219 {caseNum4} 10 {caseLabel4} @GFDATE_33249 {caseNum5} -1 {caseLabel5} @GFDATE_33306 {caseNum6} -1 {caseLabel6} @GFDATE_33306 {caseNum7} -1 {caseLabel7} @GFDATE_33306 {caseNum8} -1 {caseLabel8} @GFDATE_33306 {caseNum9} -1 {caseLabel9} @GFDATE_33306

:GFDATE_32944
write_debug "STATE0__DATE_INIT"
goto @GFDATE_33306

:GFDATE_32972
write_debug "STATE1__IDLE_ON_FOOT"
goto @GFDATE_33306

:GFDATE_33003
write_debug "STATE2__REACHED_DEST"
goto @GFDATE_33306

:GFDATE_33034
write_debug "STATE3__REACHED_HOME"
goto @GFDATE_33306

:GFDATE_33065
write_debug "STATE4__IDLE_IN_CAR"
goto @GFDATE_33306

:GFDATE_33095
write_debug "STATE5__DUMP_PLAYER"
goto @GFDATE_33306

:GFDATE_33125
write_debug "STATE6__KISS_ON_FOOT"
goto @GFDATE_33306

:GFDATE_33156
write_debug "STATE7__BLOWJOB_IN_CAR"
goto @GFDATE_33306

:GFDATE_33189
write_debug "STATE8__GIRL_DRIVES"
goto @GFDATE_33306

:GFDATE_33219
write_debug "STATE9__FLEE_PLAYER"
goto @GFDATE_33306

:GFDATE_33249
write_debug "STATE10__DANCE"
goto @GFDATE_33306

:GFDATE_33274
write_debug_with_int "UNTRAPPED_STATE___" {_p2} 1@
goto @GFDATE_33306

:GFDATE_33306
write_debug "I__________________________I"
return 
terminate_this_script 

//-------------External script 26 (GF_SEX)---------------

:GFSEX
script_name 'GFSEX'
Game.SetMinigameInProgress(True)
7@ = 0
8@ = 0
if 
  1@ > 0
goto_if_false @GFSEX_61
$excitement = 40
goto @GFSEX_68

:GFSEX_61
$excitement = 50

:GFSEX_68
$power = 1
9@ = 0
if 
  9@ > 0
goto_if_false @GFSEX_124
24@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:GFSEX_124
gosub @GFSEX_7532
if 
  $iCensoredVersion == 0
goto_if_false @GFSEX_156
gosub @GFSEX_7925

:GFSEX_156
wait 0
if and
  not Char.IsDead($scplayer)
  not Char.IsDead(24@)
  $iGFLikesPlayer(0@,6i) <> -999
  $iGFLikesPlayer(0@,6i) <> -100
  $iGFLikesPlayer(0@,6i) <> -99
goto_if_false @GFSEX_243
gosub @GFSEX_257
gosub @GFSEX_514
gosub @GFSEX_12442
goto @GFSEX_250

:GFSEX_243
gosub @GFSEX_13604

:GFSEX_250
goto @GFSEX_156

:GFSEX_257
if 
  not is_local_var_bit_set_const 9@ {n} 1
goto_if_false @GFSEX_512
if 
  $iCensoredVersion == 1
goto_if_false @GFSEX_316
set_local_var_bit_const 9@ {n} 1
7@ = 9
8@ = 0
return 

:GFSEX_316
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @GFSEX_372
if 
  not is_local_var_bit_set_const 9@ {n} 2
goto_if_false @GFSEX_365
gosub @GFSEX_9088
set_local_var_bit_const 9@ {n} 2

:GFSEX_365
goto @GFSEX_379

:GFSEX_372
clear_local_var_bit_const 9@ {n} 2

:GFSEX_379
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @GFSEX_435
if 
  not is_local_var_bit_set_const 9@ {n} 3
goto_if_false @GFSEX_428
gosub @GFSEX_9866
set_local_var_bit_const 9@ {n} 3

:GFSEX_428
goto @GFSEX_442

:GFSEX_435
clear_local_var_bit_const 9@ {n} 3

:GFSEX_442
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @GFSEX_505
if 
  not is_local_var_bit_set_const 9@ {n} 4
goto_if_false @GFSEX_498
7@ = 2
8@ = 0
set_local_var_bit_const 9@ {n} 4

:GFSEX_498
goto @GFSEX_512

:GFSEX_505
clear_local_var_bit_const 9@ {n} 4

:GFSEX_512
return 

:GFSEX_514
switch_start 7@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @GFSEX_782 {caseNum1} 0 {caseLabel1} @GFSEX_642 {caseNum2} 1 {caseLabel2} @GFSEX_656 {caseNum3} 2 {caseLabel3} @GFSEX_670 {caseNum4} 3 {caseLabel4} @GFSEX_684 {caseNum5} 4 {caseLabel5} @GFSEX_698 {caseNum6} 5 {caseLabel6} @GFSEX_712 {caseNum7} 6 {caseLabel7} @GFSEX_726
switch_continued 7 {caseLabel1} @GFSEX_740 {caseNum2} 8 {caseLabel2} @GFSEX_754 {caseNum3} 9 {caseLabel3} @GFSEX_768 {caseNum4} -1 {caseLabel4} @GFSEX_782 {caseNum5} -1 {caseLabel5} @GFSEX_782 {caseNum6} -1 {caseLabel6} @GFSEX_782 {caseNum7} -1 {caseLabel7} @GFSEX_782 {caseNum8} -1 {caseLabel8} @GFSEX_782 {caseNum9} -1 {caseLabel9} @GFSEX_782

:GFSEX_642
gosub @GFSEX_784
goto @GFSEX_782

:GFSEX_656
gosub @GFSEX_958
goto @GFSEX_782

:GFSEX_670
gosub @GFSEX_1707
goto @GFSEX_782

:GFSEX_684
gosub @GFSEX_1988
goto @GFSEX_782

:GFSEX_698
gosub @GFSEX_3093
goto @GFSEX_782

:GFSEX_712
gosub @GFSEX_3522
goto @GFSEX_782

:GFSEX_726
gosub @GFSEX_4083
goto @GFSEX_782

:GFSEX_740
gosub @GFSEX_5310
goto @GFSEX_782

:GFSEX_754
gosub @GFSEX_6051
goto @GFSEX_782

:GFSEX_768
gosub @GFSEX_6653
goto @GFSEX_782

:GFSEX_782
return 

:GFSEX_784
switch_start 8@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFSEX_956 {caseNum1} 0 {caseLabel1} @GFSEX_847 {caseNum2} 1 {caseLabel2} @GFSEX_874 {caseNum3} -1 {caseLabel3} @GFSEX_956 {caseNum4} -1 {caseLabel4} @GFSEX_956 {caseNum5} -1 {caseLabel5} @GFSEX_956 {caseNum6} -1 {caseLabel6} @GFSEX_956 {caseNum7} -1 {caseLabel7} @GFSEX_956

:GFSEX_847
set_local_var_bit_const 9@ {n} 1
Camera.DoFade(0, Fade.Out)
8@ += 1
goto @GFSEX_956

:GFSEX_874
if 
  not Camera.GetFadingStatus
goto_if_false @GFSEX_949
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Char.HideWeaponForScriptedCutscene(24@, True)
Hud.DisplayRadar(False)
Game.SetEveryoneIgnorePlayer($player1, True)
Hud.SwitchWidescreen(True)
Game.SetAllCarsCanBeDamaged(False)
gosub @GFSEX_8067
set_lvar_int_to_lvar_int 7@ = 21@
8@ = 0

:GFSEX_949
goto @GFSEX_956

:GFSEX_956
return 

:GFSEX_958
switch_start 8@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_1705 {caseNum1} 0 {caseLabel1} @GFSEX_1021 {caseNum2} 1 {caseLabel2} @GFSEX_1063 {caseNum3} 2 {caseLabel3} @GFSEX_1186 {caseNum4} 3 {caseLabel4} @GFSEX_1423 {caseNum5} 4 {caseLabel5} @GFSEX_1582 {caseNum6} 5 {caseLabel6} @GFSEX_1632 {caseNum7} -1 {caseLabel7} @GFSEX_1705

:GFSEX_1021
set_local_var_bit_const 9@ {n} 1
23@ = -1
gosub @GFSEX_9088
Camera.DoFade(1500, Fade.In)
8@ += 1
goto @GFSEX_1705

:GFSEX_1063
if 
  not Camera.GetFadingStatus
goto_if_false @GFSEX_1179
Task.PlayAnimNonInterruptable($scplayer, "BJ_COUCH_START_P", "BLOWJOBZ", 4.0, False, False, False, True, 0)
Task.PlayAnimNonInterruptable(24@, "BJ_COUCH_START_W", "BLOWJOBZ", 4.0, False, False, False, True, 0)
8@ += 1

:GFSEX_1179
goto @GFSEX_1705

:GFSEX_1186
16@ = Char.GetAnimCurrentTime($scplayer, "BJ_COUCH_START_P")
if and
  16@ > 0.5
  1.0 > 16@
goto_if_false @GFSEX_1277
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GFSEX_1277
Camera.DoFade(500, Fade.Out)
8@ = 5
goto @GFSEX_1705

:GFSEX_1277
if 
  16@ == 1.0
goto_if_false @GFSEX_1416
Task.PlayAnimNonInterruptable($scplayer, "BJ_COUCH_LOOP_P", "BLOWJOBZ", 4.0, True, False, False, True, 6000)
Task.PlayAnimNonInterruptable(24@, "BJ_COUCH_LOOP_W", "BLOWJOBZ", 4.0, True, False, False, True, 6000)
set_var_int_to_constant $iGFSayContext = 282
TIMERB = 0
8@ += 1

:GFSEX_1416
goto @GFSEX_1705

:GFSEX_1423
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GFSEX_1457
Camera.DoFade(500, Fade.Out)
8@ = 5
goto @GFSEX_1575

:GFSEX_1457
if 
  TIMERB > 6000
goto_if_false @GFSEX_1575
Task.PlayAnimNonInterruptable($scplayer, "BJ_COUCH_END_P", "BLOWJOBZ", 4.0, False, False, False, False, 0)
Task.PlayAnimNonInterruptable(24@, "BJ_COUCH_END_W", "BLOWJOBZ", 4.0, False, False, False, False, 0)
8@ += 1

:GFSEX_1575
goto @GFSEX_1705

:GFSEX_1582
20@ = Char.GetScriptTaskStatus(24@, 2066)
if 
  is_int_lvar_equal_to_constant 20@ == 7
goto_if_false @GFSEX_1625
Camera.DoFade(500, Fade.Out)
8@ += 1

:GFSEX_1625
goto @GFSEX_1705

:GFSEX_1632
if 
  not Camera.GetFadingStatus
goto_if_false @GFSEX_1698
if 
  1@ > 0
goto_if_false @GFSEX_1684
7@ = 3
8@ = 0
goto @GFSEX_1698

:GFSEX_1684
7@ = 6
8@ = 0

:GFSEX_1698
goto @GFSEX_1705

:GFSEX_1705
return 

:GFSEX_1707
switch_start 8@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFSEX_1986 {caseNum1} 0 {caseLabel1} @GFSEX_1770 {caseNum2} 1 {caseLabel2} @GFSEX_1791 {caseNum3} 2 {caseLabel3} @GFSEX_1959 {caseNum4} -1 {caseLabel4} @GFSEX_1986 {caseNum5} -1 {caseLabel5} @GFSEX_1986 {caseNum6} -1 {caseLabel6} @GFSEX_1986 {caseNum7} -1 {caseLabel7} @GFSEX_1986

:GFSEX_1770
Camera.DoFade(1000, Fade.Out)
8@ += 1
goto @GFSEX_1986

:GFSEX_1791
if 
  not Camera.GetFadingStatus
goto_if_false @GFSEX_1952
gosub @GFSEX_8653
if 
  is_local_var_bit_set_const 9@ {n} 13
goto_if_false @GFSEX_1841
Hud.ClearCounter($excitement)
clear_local_var_bit_const 9@ {n} 13

:GFSEX_1841
if 
  is_local_var_bit_set_const 9@ {n} 9
goto_if_false @GFSEX_1871
Hud.ClearCounter($power)
clear_local_var_bit_const 9@ {n} 9

:GFSEX_1871
Text.ClearHelp
Hud.SwitchWidescreen(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Game.SetEveryoneIgnorePlayer($player1, False)
if 
  Player.IsWearing($player1, 17, "GIMPLEG")
goto_if_false @GFSEX_1938
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.BuildModel($player1)

:GFSEX_1938
Camera.DoFade(1000, Fade.In)
8@ += 1

:GFSEX_1952
goto @GFSEX_1986

:GFSEX_1959
if 
  not Camera.GetFadingStatus
goto_if_false @GFSEX_1979
gosub @GFSEX_13604

:GFSEX_1979
goto @GFSEX_1986

:GFSEX_1986
return 

:GFSEX_1988
switch_start 8@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_3091 {caseNum1} 0 {caseLabel1} @GFSEX_2051 {caseNum2} 1 {caseLabel2} @GFSEX_2269 {caseNum3} 2 {caseLabel3} @GFSEX_2464 {caseNum4} 3 {caseLabel4} @GFSEX_2681 {caseNum5} 4 {caseLabel5} @GFSEX_2923 {caseNum6} 5 {caseLabel6} @GFSEX_3030 {caseNum7} -1 {caseLabel7} @GFSEX_3091

:GFSEX_2051
if 
  not Camera.GetFadingStatus
goto_if_false @GFSEX_2262
Hud.SwitchWidescreen(False)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately(24@)
gosub @GFSEX_8741
Char.SetCoordinates($scplayer, 10@, 12@, 14@)
Char.SetHeading($scplayer, 16@)
10@, 12@, 14@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.5, -1.0)
16@ = Char.GetHeading($scplayer)
Char.SetCoordinates(24@, 10@, 12@, 14@)
Char.SetHeading(24@, 16@)
Text.PrintHelpForever('GF_0043')
Hud.DisplayNthCounterWithString($excitement, CounterDisplay.Bar, 1, 'GF_0017')
Hud.DisplayNthCounterWithString($power, CounterDisplay.Bar, 3, 'GF_0040')
set_local_var_bit_const 9@ {n} 9
set_local_var_bit_const 9@ {n} 13
23@ = 1
gosub @GFSEX_9088
Camera.DoFade(1000, Fade.In)
clear_local_var_bit_const 9@ {n} 1
8@ += 1

:GFSEX_2262
goto @GFSEX_3091

:GFSEX_2269
Task.PlayAnimNonInterruptable(24@, "SPANKING_IDLEW", "SNM", 4.0, True, False, False, False, 0)
Task.PlayAnimNonInterruptable($scplayer, "SPANKING_IDLEP", "SNM", 4.0, True, False, False, False, 0)
clear_local_var_bit_const 9@ {n} 8
gosub @GFSEX_12276
if 
  0 >= $excitement
goto_if_false @GFSEX_2411
7@ = 4
8@ = 0
goto @GFSEX_3091
goto @GFSEX_2450

:GFSEX_2411
if 
  $excitement >= 100
goto_if_false @GFSEX_2450
7@ = 5
8@ = 0
goto @GFSEX_3091

:GFSEX_2450
8@ += 1
goto @GFSEX_3091

:GFSEX_2464
gosub @GFSEX_12276
if 
  $power >= 100
goto_if_false @GFSEX_2496
8@ += 1

:GFSEX_2496
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GFSEX_2582
if and
  not is_local_var_bit_set_const 9@ {n} 8
  not Char.IsPlayingAnim($scplayer, "SPANKINGP")
goto_if_false @GFSEX_2575
set_local_var_bit_const 9@ {n} 8
gosub @GFSEX_11855
8@ = 4
goto @GFSEX_3091

:GFSEX_2575
goto @GFSEX_2589

:GFSEX_2582
clear_local_var_bit_const 9@ {n} 8

:GFSEX_2589
if 
  0 >= $excitement
goto_if_false @GFSEX_2635
7@ = 4
8@ = 0
goto @GFSEX_3091
goto @GFSEX_2674

:GFSEX_2635
if 
  $excitement == 100
goto_if_false @GFSEX_2674
7@ = 5
8@ = 0
goto @GFSEX_3091

:GFSEX_2674
goto @GFSEX_3091

:GFSEX_2681
gosub @GFSEX_12276
if 
  $power >= 97
goto_if_false @GFSEX_2799
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @GFSEX_2792
if and
  not is_local_var_bit_set_const 9@ {n} 8
  not Char.IsPlayingAnim($scplayer, "SPANKINGP")
goto_if_false @GFSEX_2785
set_local_var_bit_const 9@ {n} 8
gosub @GFSEX_11855
8@ = 4
goto @GFSEX_3091

:GFSEX_2785
goto @GFSEX_2799

:GFSEX_2792
clear_local_var_bit_const 9@ {n} 8

:GFSEX_2799
if 
  0 >= $power
goto_if_false @GFSEX_2831
gosub @GFSEX_11556
8@ -= 1

:GFSEX_2831
if 
  0 >= $excitement
goto_if_false @GFSEX_2877
7@ = 4
8@ = 0
goto @GFSEX_3091
goto @GFSEX_2916

:GFSEX_2877
if 
  $excitement == 100
goto_if_false @GFSEX_2916
7@ = 5
8@ = 0
goto @GFSEX_3091

:GFSEX_2916
goto @GFSEX_3091

:GFSEX_2923
gosub @GFSEX_12276
gosub @GFSEX_11896
Task.PlayAnimNonInterruptable(24@, "SPANKINGW", "SNM", 99.0, False, False, False, True, 0)
Task.PlayAnimNonInterruptable($scplayer, "SPANKINGP", "SNM", 99.0, False, False, False, True, 0)
clear_local_var_bit_const 9@ {n} 5
8@ += 1
goto @GFSEX_3091

:GFSEX_3030
gosub @GFSEX_12276
gosub @GFSEX_11946
if 
  is_local_var_bit_set_const 9@ {n} 5
goto_if_false @GFSEX_3084
set_var_int_to_constant $iCJSayContext = 237
gosub @GFSEX_12142
8@ = 1

:GFSEX_3084
goto @GFSEX_3091

:GFSEX_3091
return 

:GFSEX_3093
switch_start 8@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFSEX_3520 {caseNum1} 0 {caseLabel1} @GFSEX_3156 {caseNum2} 1 {caseLabel2} @GFSEX_3239 {caseNum3} 2 {caseLabel3} @GFSEX_3444 {caseNum4} -1 {caseLabel4} @GFSEX_3520 {caseNum5} -1 {caseLabel5} @GFSEX_3520 {caseNum6} -1 {caseLabel6} @GFSEX_3520 {caseNum7} -1 {caseLabel7} @GFSEX_3520

:GFSEX_3156
if 
  is_local_var_bit_set_const 9@ {n} 13
goto_if_false @GFSEX_3186
Hud.ClearCounter($excitement)
clear_local_var_bit_const 9@ {n} 13

:GFSEX_3186
if 
  is_local_var_bit_set_const 9@ {n} 9
goto_if_false @GFSEX_3216
Hud.ClearCounter($power)
clear_local_var_bit_const 9@ {n} 9

:GFSEX_3216
Text.ClearHelp
Camera.DoFade(1000, Fade.Out)
8@ += 1
goto @GFSEX_3520

:GFSEX_3239
if 
  not Camera.GetFadingStatus
goto_if_false @GFSEX_3437
gosub @GFSEX_8741
Char.SetCoordinates($scplayer, 10@, 12@, 14@)
Char.SetHeading($scplayer, 16@)
10@, 12@, 14@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.5, -1.0)
16@ = Char.GetHeading($scplayer)
Char.SetCoordinates(24@, 10@, 12@, 14@)
Char.SetHeading(24@, 16@)
Task.PlayAnimNonInterruptable(24@, "SPANKEDW", "SNM", 4.0, True, False, False, True, 600000)
Task.PlayAnimNonInterruptable($scplayer, "SPANKEDP", "SNM", 4.0, True, False, False, True, 600000)
Camera.DoFade(1000, Fade.In)
TIMERB = 0
8@ += 1

:GFSEX_3437
goto @GFSEX_3520

:GFSEX_3444
if 
  not Camera.GetFadingStatus
goto_if_false @GFSEX_3513
set_var_int_to_constant $iGFSayContext = 286
set_var_int_to_constant $iCJSayContext = 236
if 
  TIMERB > 7000
goto_if_false @GFSEX_3513
clear_global_var_bit_const $iDateReport {n} 4
7@ = 2
8@ = 0

:GFSEX_3513
goto @GFSEX_3520

:GFSEX_3520
return 

:GFSEX_3522
switch_start 8@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFSEX_4081 {caseNum1} 0 {caseLabel1} @GFSEX_3585 {caseNum2} 1 {caseLabel2} @GFSEX_3668 {caseNum3} 2 {caseLabel3} @GFSEX_3967 {caseNum4} 3 {caseLabel4} @GFSEX_4009 {caseNum5} -1 {caseLabel5} @GFSEX_4081 {caseNum6} -1 {caseLabel6} @GFSEX_4081 {caseNum7} -1 {caseLabel7} @GFSEX_4081

:GFSEX_3585
if 
  is_local_var_bit_set_const 9@ {n} 13
goto_if_false @GFSEX_3615
Hud.ClearCounter($excitement)
clear_local_var_bit_const 9@ {n} 13

:GFSEX_3615
if 
  is_local_var_bit_set_const 9@ {n} 9
goto_if_false @GFSEX_3645
Hud.ClearCounter($power)
clear_local_var_bit_const 9@ {n} 9

:GFSEX_3645
Text.ClearHelp
Camera.DoFade(1000, Fade.Out)
8@ += 1
goto @GFSEX_4081

:GFSEX_3668
if 
  not Camera.GetFadingStatus
goto_if_false @GFSEX_3960
gosub @GFSEX_8741
Char.SetCoordinates($scplayer, 10@, 12@, 14@)
Char.SetHeading($scplayer, 16@)
10@, 12@, 14@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 0.5, -1.0)
16@ = Char.GetHeading($scplayer)
Char.SetCoordinates(24@, 10@, 12@, 14@)
Char.SetHeading(24@, 16@)
10@, 12@, 14@ = Char.GetOffsetInWorldCoords($scplayer, 0.707, 3.136, -0.163)
11@, 13@, 15@ = Char.GetOffsetInWorldCoords($scplayer, 0.427, 0.634, -0.5)
Camera.SetFixedPosition(10@, 12@, 14@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(11@, 13@, 15@, SwitchType.JumpCut)
Task.PlayAnimNonInterruptable(24@, "SPANKING_ENDW", "SNM", 4.0, False, False, False, True, 0)
Task.PlayAnimNonInterruptable($scplayer, "SPANKING_ENDP", "SNM", 4.0, False, False, False, True, 0)
Camera.DoFade(1000, Fade.In)
8@ += 1

:GFSEX_3960
goto @GFSEX_4081

:GFSEX_3967
if 
  not Camera.GetFadingStatus
goto_if_false @GFSEX_4002
set_var_int_to_constant $iGFSayContext = 285
TIMERB = 0
8@ += 1

:GFSEX_4002
goto @GFSEX_4081

:GFSEX_4009
16@ = Char.GetAnimCurrentTime($scplayer, "SPANKING_ENDP")
if 
  16@ == 1.0
goto_if_false @GFSEX_4074
set_global_var_bit_const $iDateReport {n} 4
7@ = 2
8@ = 0

:GFSEX_4074
goto @GFSEX_4081

:GFSEX_4081
return 

:GFSEX_4083
switch_start 8@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_5308 {caseNum1} 0 {caseLabel1} @GFSEX_4146 {caseNum2} 1 {caseLabel2} @GFSEX_4340 {caseNum3} 2 {caseLabel3} @GFSEX_4921 {caseNum4} 3 {caseLabel4} @GFSEX_5037 {caseNum5} 4 {caseLabel5} @GFSEX_5147 {caseNum6} 5 {caseLabel6} @GFSEX_5245 {caseNum7} -1 {caseLabel7} @GFSEX_5308

:GFSEX_4146
if 
  not Camera.GetFadingStatus
goto_if_false @GFSEX_4333
Hud.SwitchWidescreen(False)
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately(24@)
gosub @GFSEX_8741
Char.SetCoordinates($scplayer, 10@, 12@, 14@)
Char.SetHeading($scplayer, 16@)
10@, 12@, 14@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, -1.0)
16@ = Char.GetHeading($scplayer)
16@ += 180.0
Char.SetCoordinates(24@, 10@, 12@, 14@)
Char.SetHeading(24@, 16@)
Hud.DisplayCounterWithString($excitement, CounterDisplay.Bar, 'GF_0017')
set_local_var_bit_const 9@ {n} 13
gosub @GFSEX_9088
Text.PrintHelpForever('GF_0020')
Camera.DoFade(500, Fade.In)
clear_local_var_bit_const 9@ {n} 1
8@ += 1

:GFSEX_4333
goto @GFSEX_5308

:GFSEX_4340
TIMERB = 0
if 
  22@ == 0
goto_if_false @GFSEX_4440
Task.PlayAnimNonInterruptable(24@, "SEX_1_W", "SEX", 4.0, True, False, False, False, 0)
Task.PlayAnimNonInterruptable($scplayer, "SEX_1_P", "SEX", 4.0, True, False, False, False, 0)
8@ += 1

:GFSEX_4440
if 
  22@ == 1
goto_if_false @GFSEX_4677
if 
  Char.IsPlayingAnim($scplayer, "SEX_1TO2_P")
goto_if_false @GFSEX_4602
16@ = Char.GetAnimCurrentTime($scplayer, "SEX_1TO2_P")
if 
  16@ >= 1.0
goto_if_false @GFSEX_4595
Task.PlayAnimNonInterruptable(24@, "SEX_2_W", "SEX", 4.0, True, False, False, False, 0)
Task.PlayAnimNonInterruptable($scplayer, "SEX_2_P", "SEX", 4.0, True, False, False, False, 0)

:GFSEX_4595
goto @GFSEX_4670

:GFSEX_4602
Task.PlayAnimNonInterruptable(24@, "SEX_2_W", "SEX", 4.0, True, False, False, False, 0)
Task.PlayAnimNonInterruptable($scplayer, "SEX_2_P", "SEX", 4.0, True, False, False, False, 0)

:GFSEX_4670
8@ += 1

:GFSEX_4677
if 
  22@ == 2
goto_if_false @GFSEX_4914
if 
  Char.IsPlayingAnim($scplayer, "SEX_2TO3_P")
goto_if_false @GFSEX_4839
16@ = Char.GetAnimCurrentTime($scplayer, "SEX_2TO3_P")
if 
  16@ >= 1.0
goto_if_false @GFSEX_4832
Task.PlayAnimNonInterruptable(24@, "SEX_3_W", "SEX", 4.0, True, False, False, False, 0)
Task.PlayAnimNonInterruptable($scplayer, "SEX_3_P", "SEX", 4.0, True, False, False, False, 0)

:GFSEX_4832
goto @GFSEX_4907

:GFSEX_4839
Task.PlayAnimNonInterruptable(24@, "SEX_3_W", "SEX", 4.0, True, False, False, False, 0)
Task.PlayAnimNonInterruptable($scplayer, "SEX_3_P", "SEX", 4.0, True, False, False, False, 0)

:GFSEX_4907
8@ += 1

:GFSEX_4914
goto @GFSEX_5308

:GFSEX_4921
gosub @GFSEX_10213
gosub @GFSEX_10624
if 
  $excitement == 100
goto_if_false @GFSEX_4989
set_var_int_to_constant $iGFSayContext = 283
Player.SetControl($player1, False)
set_local_var_bit_const 9@ {n} 1
set_global_var_bit_const $iDateReport {n} 4
8@ += 1

:GFSEX_4989
if 
  $excitement == 0
goto_if_false @GFSEX_5030
clear_global_var_bit_const $iDateReport {n} 4
Text.ClearHelp
7@ = 8
8@ = 0

:GFSEX_5030
goto @GFSEX_5308

:GFSEX_5037
if 
  22@ == 0
goto_if_false @GFSEX_5062
8@ += 1

:GFSEX_5062
if 
  22@ == 1
goto_if_false @GFSEX_5101
gosub @GFSEX_9088
22@ = 0
8@ += 1

:GFSEX_5101
if 
  22@ == 2
goto_if_false @GFSEX_5140
gosub @GFSEX_9088
22@ = 0
8@ += 1

:GFSEX_5140
goto @GFSEX_5308

:GFSEX_5147
Task.PlayAnimNonInterruptable(24@, "SEX_1_CUM_W", "SEX", 4.0, False, False, False, True, 0)
Task.PlayAnimNonInterruptable($scplayer, "SEX_1_CUM_P", "SEX", 4.0, False, False, False, True, 0)
set_var_int_to_constant $iGFSayContext = 285
8@ += 1
goto @GFSEX_5308

:GFSEX_5245
16@ = Char.GetAnimCurrentTime($scplayer, "SEX_1_CUM_P")
if 
  16@ == 1.0
goto_if_false @GFSEX_5301
7@ = 2
8@ = 0

:GFSEX_5301
goto @GFSEX_5308

:GFSEX_5308
return 

:GFSEX_5310
switch_start 8@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_6049 {caseNum1} 0 {caseLabel1} @GFSEX_5373 {caseNum2} 1 {caseLabel2} @GFSEX_5415 {caseNum3} 2 {caseLabel3} @GFSEX_5538 {caseNum4} 3 {caseLabel4} @GFSEX_5767 {caseNum5} 4 {caseLabel5} @GFSEX_5926 {caseNum6} 5 {caseLabel6} @GFSEX_5976 {caseNum7} -1 {caseLabel7} @GFSEX_6049

:GFSEX_5373
set_local_var_bit_const 9@ {n} 1
23@ = -1
gosub @GFSEX_9088
Camera.DoFade(1500, Fade.In)
8@ += 1
goto @GFSEX_6049

:GFSEX_5415
if 
  not Camera.GetFadingStatus
goto_if_false @GFSEX_5531
Task.PlayAnimNonInterruptable($scplayer, "BJ_STAND_START_P", "BLOWJOBZ", 4.0, False, False, False, True, 0)
Task.PlayAnimNonInterruptable(24@, "BJ_STAND_START_W", "BLOWJOBZ", 4.0, False, False, False, True, 0)
8@ += 1

:GFSEX_5531
goto @GFSEX_6049

:GFSEX_5538
16@ = Char.GetAnimCurrentTime($scplayer, "BJ_STAND_START_P")
if and
  16@ > 0.5
  1.0 > 16@
goto_if_false @GFSEX_5629
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GFSEX_5629
Camera.DoFade(500, Fade.Out)
8@ = 5
goto @GFSEX_6049

:GFSEX_5629
if 
  16@ == 1.0
goto_if_false @GFSEX_5760
Task.PlayAnimNonInterruptable($scplayer, "BJ_STAND_LOOP_P", "BLOWJOBZ", 4.0, True, False, False, True, 6000)
Task.PlayAnimNonInterruptable(24@, "BJ_STAND_LOOP_W", "BLOWJOBZ", 4.0, True, False, False, True, 6000)
TIMERB = 0
8@ += 1

:GFSEX_5760
goto @GFSEX_6049

:GFSEX_5767
if 
  Pad.IsSkipCutsceneButtonPressed
goto_if_false @GFSEX_5801
Camera.DoFade(500, Fade.Out)
8@ = 5
goto @GFSEX_5919

:GFSEX_5801
if 
  TIMERB > 6000
goto_if_false @GFSEX_5919
Task.PlayAnimNonInterruptable($scplayer, "BJ_STAND_END_P", "BLOWJOBZ", 4.0, False, False, False, False, 0)
Task.PlayAnimNonInterruptable(24@, "BJ_STAND_END_W", "BLOWJOBZ", 4.0, False, False, False, False, 0)
8@ += 1

:GFSEX_5919
goto @GFSEX_6049

:GFSEX_5926
20@ = Char.GetScriptTaskStatus(24@, 2066)
if 
  is_int_lvar_equal_to_constant 20@ == 7
goto_if_false @GFSEX_5969
Camera.DoFade(500, Fade.Out)
8@ += 1

:GFSEX_5969
goto @GFSEX_6049

:GFSEX_5976
if 
  not Camera.GetFadingStatus
goto_if_false @GFSEX_6042
if 
  1@ > 0
goto_if_false @GFSEX_6028
7@ = 3
8@ = 0
goto @GFSEX_6042

:GFSEX_6028
7@ = 6
8@ = 0

:GFSEX_6042
goto @GFSEX_6049

:GFSEX_6049
return 

:GFSEX_6051
switch_start 8@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFSEX_6651 {caseNum1} 0 {caseLabel1} @GFSEX_6114 {caseNum2} 1 {caseLabel2} @GFSEX_6475 {caseNum3} -1 {caseLabel3} @GFSEX_6651 {caseNum4} -1 {caseLabel4} @GFSEX_6651 {caseNum5} -1 {caseLabel5} @GFSEX_6651 {caseNum6} -1 {caseLabel6} @GFSEX_6651 {caseNum7} -1 {caseLabel7} @GFSEX_6651

:GFSEX_6114
if 
  22@ == 0
goto_if_false @GFSEX_6232
Task.PlayAnimNonInterruptable(24@, "SEX_1_FAIL_W", "SEX", 4.0, False, False, False, True, 0)
Task.PlayAnimNonInterruptable($scplayer, "SEX_1_FAIL_P", "SEX", 4.0, False, False, False, True, 0)
set_var_int_to_constant $iGFSayContext = 284
8@ += 1
goto @GFSEX_6651

:GFSEX_6232
if 
  22@ == 1
goto_if_false @GFSEX_6350
Task.PlayAnimNonInterruptable(24@, "SEX_2_FAIL_W", "SEX", 4.0, False, False, False, True, 0)
Task.PlayAnimNonInterruptable($scplayer, "SEX_2_FAIL_P", "SEX", 4.0, False, False, False, True, 0)
set_var_int_to_constant $iGFSayContext = 284
8@ += 1
goto @GFSEX_6651

:GFSEX_6350
if 
  22@ == 2
goto_if_false @GFSEX_6468
Task.PlayAnimNonInterruptable(24@, "SEX_3_FAIL_W", "SEX", 4.0, False, False, False, True, 0)
Task.PlayAnimNonInterruptable($scplayer, "SEX_3_FAIL_P", "SEX", 4.0, False, False, False, True, 0)
set_var_int_to_constant $iGFSayContext = 284
8@ += 1
goto @GFSEX_6651

:GFSEX_6468
goto @GFSEX_6651

:GFSEX_6475
if 
  22@ == 0
goto_if_false @GFSEX_6522
16@ = Char.GetAnimCurrentTime($scplayer, "SEX_1_FAIL_P")
goto @GFSEX_6609

:GFSEX_6522
if 
  22@ == 1
goto_if_false @GFSEX_6569
16@ = Char.GetAnimCurrentTime($scplayer, "SEX_2_FAIL_P")
goto @GFSEX_6609

:GFSEX_6569
if 
  22@ == 2
goto_if_false @GFSEX_6609
16@ = Char.GetAnimCurrentTime($scplayer, "SEX_3_FAIL_P")

:GFSEX_6609
if 
  16@ == 1.0
goto_if_false @GFSEX_6644
7@ = 2
8@ = 0

:GFSEX_6644
goto @GFSEX_6651

:GFSEX_6651
return 

:GFSEX_6653
switch_start 8@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @GFSEX_7530 {caseNum1} 0 {caseLabel1} @GFSEX_6781 {caseNum2} 1 {caseLabel2} @GFSEX_6862 {caseNum3} 2 {caseLabel3} @GFSEX_7147 {caseNum4} 3 {caseLabel4} @GFSEX_7189 {caseNum5} 4 {caseLabel5} @GFSEX_7251 {caseNum6} 5 {caseLabel6} @GFSEX_7352 {caseNum7} 6 {caseLabel7} @GFSEX_7414
switch_continued 7 {caseLabel1} @GFSEX_7476 {caseNum2} -1 {caseLabel2} @GFSEX_7530 {caseNum3} -1 {caseLabel3} @GFSEX_7530 {caseNum4} -1 {caseLabel4} @GFSEX_7530 {caseNum5} -1 {caseLabel5} @GFSEX_7530 {caseNum6} -1 {caseLabel6} @GFSEX_7530 {caseNum7} -1 {caseLabel7} @GFSEX_7530 {caseNum8} -1 {caseLabel8} @GFSEX_7530 {caseNum9} -1 {caseLabel9} @GFSEX_7530

:GFSEX_6781
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @GFSEX_6827
25@ = Char.StoreCarIsInNoSave($scplayer)
Car.SetProofs(25@, True, True, True, True, True)
goto @GFSEX_6842

:GFSEX_6827
Char.SetProofs($scplayer, True, True, True, True, True)

:GFSEX_6842
Camera.DoFade(0, Fade.Out)
8@ += 1
goto @GFSEX_7530

:GFSEX_6862
if 
  not Camera.GetFadingStatus
goto_if_false @GFSEX_7140
Streaming.SetAreaVisible(0)
Char.SetAreaVisible(24@, 0)
Char.SetAreaVisible($scplayer, 0)
if 
  Char.IsOnFoot($scplayer)
goto_if_false @GFSEX_6931
Char.SetCoordinates($scplayer, 3@, 4@, 5@)
Char.SetHeading($scplayer, 6@)

:GFSEX_6931
Streaming.LoadScene(3@, 4@, 5@)
Streaming.RequestCollision(3@, 4@)
Char.SetVisible($scplayer, False)
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
Hud.DisplayRadar(False)
Game.SetEveryoneIgnorePlayer($player1, True)
Game.SetAllCarsCanBeDamaged(False)
gosub @GFSEX_13137
Char.SetCoordinates(24@, 10@, 12@, 14@)
Char.SetCollision(24@, False)
Char.SetVisible(24@, False)
Camera.SetFixedPosition(10@, 12@, 14@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(11@, 13@, 15@, SwitchType.JumpCut)
Camera.SetShakeSimulationSimple(5, 5000.0, 10.0)
20@, 21@ = Clock.GetTimeOfDay()
21@ += 30
if 
  21@ > 60
goto_if_false @GFSEX_7118
21@ -= 60
20@ += 1

:GFSEX_7118
Clock.SetTimeOfDay(20@, 21@)
Camera.DoFade(1000, Fade.In)
8@ += 1

:GFSEX_7140
goto @GFSEX_7530

:GFSEX_7147
if 
  not Camera.GetFadingStatus
goto_if_false @GFSEX_7182
set_var_int_to_constant $iGFSayContext = 281
TIMERB = 0
8@ += 1

:GFSEX_7182
goto @GFSEX_7530

:GFSEX_7189
if 
  TIMERB > 3000
goto_if_false @GFSEX_7244
set_var_int_to_constant $iGFSayContext = 281
TIMERB = 0
Camera.SetShakeSimulationSimple(5, 3000.0, 15.0)
8@ += 1

:GFSEX_7244
goto @GFSEX_7530

:GFSEX_7251
if 
  TIMERB > 3000
goto_if_false @GFSEX_7345
$iGFSayContext = -2
if 
  1@ > 0
goto_if_false @GFSEX_7310
set_var_int_to_constant $iCJSayContext = 237
goto @GFSEX_7317

:GFSEX_7310
set_var_int_to_constant $iCJSayContext = 116

:GFSEX_7317
Camera.SetShakeSimulationSimple(5, 3000.0, 20.0)
TIMERB = 0
8@ += 1

:GFSEX_7345
goto @GFSEX_7530

:GFSEX_7352
if 
  TIMERB > 3000
goto_if_false @GFSEX_7407
set_var_int_to_constant $iGFSayContext = 283
Camera.SetShakeSimulationSimple(5, 4000.0, 30.0)
TIMERB = 0
8@ += 1

:GFSEX_7407
goto @GFSEX_7530

:GFSEX_7414
if 
  TIMERB > 4000
goto_if_false @GFSEX_7469
set_var_int_to_constant $iGFSayContext = 285
Camera.SetShakeSimulationSimple(5, 3000.0, 5.0)
TIMERB = 0
8@ += 1

:GFSEX_7469
goto @GFSEX_7530

:GFSEX_7476
if 
  TIMERB > 3000
goto_if_false @GFSEX_7523
set_global_var_bit_const $iDateReport {n} 2
set_global_var_bit_const $iDateReport {n} 4
7@ = 2
8@ = 0

:GFSEX_7523
goto @GFSEX_7530

:GFSEX_7530
return 

:GFSEX_7532
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_7871 {caseNum1} 0 {caseLabel1} @GFSEX_7595 {caseNum2} 1 {caseLabel2} @GFSEX_7641 {caseNum3} 2 {caseLabel3} @GFSEX_7687 {caseNum4} 3 {caseLabel4} @GFSEX_7733 {caseNum5} 4 {caseLabel5} @GFSEX_7779 {caseNum6} 5 {caseLabel6} @GFSEX_7825 {caseNum7} -1 {caseLabel7} @GFSEX_7871

:GFSEX_7595
if 
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @GFSEX_7634
Streaming.LoadSpecialCharacter(1, 'GANGRL2')
wait 0
goto @GFSEX_7595

:GFSEX_7634
goto @GFSEX_7871

:GFSEX_7641
if 
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @GFSEX_7680
Streaming.LoadSpecialCharacter(1, 'MECGRL2')
wait 0
goto @GFSEX_7641

:GFSEX_7680
goto @GFSEX_7871

:GFSEX_7687
if 
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @GFSEX_7726
Streaming.LoadSpecialCharacter(1, 'GUNGRL2')
wait 0
goto @GFSEX_7687

:GFSEX_7726
goto @GFSEX_7871

:GFSEX_7733
if 
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @GFSEX_7772
Streaming.LoadSpecialCharacter(1, 'COPGRL2')
wait 0
goto @GFSEX_7733

:GFSEX_7772
goto @GFSEX_7871

:GFSEX_7779
if 
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @GFSEX_7818
Streaming.LoadSpecialCharacter(1, 'NURGRL2')
wait 0
goto @GFSEX_7779

:GFSEX_7818
goto @GFSEX_7871

:GFSEX_7825
if 
  not Streaming.HasSpecialCharacterLoaded(1)
goto_if_false @GFSEX_7864
Streaming.LoadSpecialCharacter(1, 'CROGRL2')
wait 0
goto @GFSEX_7825

:GFSEX_7864
goto @GFSEX_7871

:GFSEX_7871
24@ = Char.Create(PedType.CivFemale, 290, 0.0, 0.0, 0.0)
Char.SetProofs(24@, True, True, True, True, True)
Char.SetCollision(24@, False)
Char.DontRemove(24@)
return 

:GFSEX_7925
Streaming.RequestAnimation("BLOWJOBZ")
Streaming.RequestAnimation("KISSING")
Streaming.RequestAnimation("SEX")
Streaming.RequestAnimation("SNM")

:GFSEX_7962
wait 0
if and
  Streaming.HasAnimationLoaded("BLOWJOBZ")
  Streaming.HasAnimationLoaded("SEX")
  Streaming.HasAnimationLoaded("KISSING")
  Streaming.HasAnimationLoaded("SNM")
goto_if_false @GFSEX_8023
return 
goto @GFSEX_8067

:GFSEX_8023
Streaming.RequestAnimation("BLOWJOBZ")
Streaming.RequestAnimation("KISSING")
Streaming.RequestAnimation("SEX")
Streaming.RequestAnimation("SNM")
goto @GFSEX_7962

:GFSEX_8067
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_8496 {caseNum1} 0 {caseLabel1} @GFSEX_8130 {caseNum2} 1 {caseLabel2} @GFSEX_8191 {caseNum3} 2 {caseLabel3} @GFSEX_8252 {caseNum4} 3 {caseLabel4} @GFSEX_8313 {caseNum5} 4 {caseLabel5} @GFSEX_8374 {caseNum6} 5 {caseLabel6} @GFSEX_8435 {caseNum7} -1 {caseLabel7} @GFSEX_8496

:GFSEX_8130
10@ = 245.6252
12@ = 304.1411
14@ = 998.32
16@ = 0.0
20@ = 1
21@ = 1
goto @GFSEX_8496

:GFSEX_8191
10@ = 306.1999
12@ = 305.1225
14@ = 1002.297
16@ = 90.0
20@ = 4
21@ = 1
goto @GFSEX_8496

:GFSEX_8252
10@ = 288.7753
12@ = 308.4772
14@ = 998.1641
16@ = 213.8029
20@ = 3
21@ = 7
goto @GFSEX_8496

:GFSEX_8313
10@ = 324.6405
12@ = 307.4622
14@ = 998.1558
16@ = 175.0
20@ = 5
21@ = 7
goto @GFSEX_8496

:GFSEX_8374
10@ = 271.4699
12@ = 307.2668
14@ = 998.32
16@ = 265.0
20@ = 2
21@ = 1
goto @GFSEX_8496

:GFSEX_8435
10@ = 345.6252
12@ = 304.1411
14@ = 998.25
16@ = 0.0
20@ = 6
21@ = 1
goto @GFSEX_8496

:GFSEX_8496
Char.ClearTasksImmediately($scplayer)
Char.ClearTasksImmediately(24@)
Char.SetCollision(24@, False)
Char.SetCollision($scplayer, False)
Char.SetCoordinates($scplayer, 10@, 12@, 14@)
Char.SetHeading($scplayer, 16@)
10@, 12@, 14@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 1.0, -1.0)
16@ = Char.GetHeading($scplayer)
16@ += 180.0
Char.SetCoordinates(24@, 10@, 12@, 14@)
Char.SetHeading(24@, 16@)
Streaming.SetAreaVisible(20@)
Char.SetAreaVisible(24@, 20@)
Char.SetAreaVisible($scplayer, 20@)
Streaming.LoadScene(10@, 12@, 14@)
Streaming.RequestCollision(10@, 12@)
return 

:GFSEX_8653
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($scplayer, 0)
World.ClearArea(3@, 4@, 5@, 3.0, True)
if 
  Char.IsOnFoot($scplayer)
goto_if_false @GFSEX_8720
Char.SetCoordinates($scplayer, 3@, 4@, 5@)
Char.SetHeading($scplayer, 6@)

:GFSEX_8720
Streaming.RequestCollision(3@, 4@)
Streaming.LoadScene(3@, 4@, 5@)
return 

:GFSEX_8741
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_9086 {caseNum1} 0 {caseLabel1} @GFSEX_8804 {caseNum2} 1 {caseLabel2} @GFSEX_8898 {caseNum3} 2 {caseLabel3} @GFSEX_8945 {caseNum4} 3 {caseLabel4} @GFSEX_8851 {caseNum5} 4 {caseLabel5} @GFSEX_8992 {caseNum6} 5 {caseLabel6} @GFSEX_9039 {caseNum7} -1 {caseLabel7} @GFSEX_9086

:GFSEX_8804
10@ = 245.617
12@ = 301.507
14@ = 999.046
16@ = 0.0
goto @GFSEX_9086

:GFSEX_8851
10@ = 318.4
12@ = 311.85
14@ = 998.8
16@ = 110.0
goto @GFSEX_9086

:GFSEX_8898
10@ = 308.8862
12@ = 301.9657
14@ = 1003.0
16@ = 0.0
goto @GFSEX_9086

:GFSEX_8945
10@ = 282.5775
12@ = 307.7573
14@ = 1002.391
16@ = 0.0
goto @GFSEX_9086

:GFSEX_8992
10@ = 270.12
12@ = 307.737
14@ = 999.0204
16@ = 180.0
goto @GFSEX_9086

:GFSEX_9039
10@ = 345.617
12@ = 301.507
14@ = 998.8
16@ = 0.0
goto @GFSEX_9086

:GFSEX_9086
return 

:GFSEX_9088
switch_start 23@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @GFSEX_9692 {caseNum1} -1 {caseLabel1} @GFSEX_9151 {caseNum2} 0 {caseLabel2} @GFSEX_9216 {caseNum3} 1 {caseLabel3} @GFSEX_9335 {caseNum4} 2 {caseLabel4} @GFSEX_9454 {caseNum5} 3 {caseLabel5} @GFSEX_9573 {caseNum6} -1 {caseLabel6} @GFSEX_9818 {caseNum7} -1 {caseLabel7} @GFSEX_9818

:GFSEX_9151
10@, 12@, 14@ = Char.GetOffsetInWorldCoords($scplayer, 1.8, 2.9, 0.353)
11@, 13@, 15@ = Char.GetOffsetInWorldCoords($scplayer, 1.0, 0.8701, 0.1828)
goto @GFSEX_9818

:GFSEX_9216
10@, 12@, 14@ = Char.GetOffsetInWorldCoords($scplayer, -0.6375, 2.3043, 0.1065)
if 
  7@ == 3
goto_if_false @GFSEX_9299
11@, 13@, 15@ = Char.GetOffsetInWorldCoords($scplayer, -0.3435, 1.4278, -0.1)
goto @GFSEX_9328

:GFSEX_9299
11@, 13@, 15@ = Char.GetOffsetInWorldCoords($scplayer, -0.3435, 1.4278, -0.2746)

:GFSEX_9328
goto @GFSEX_9818

:GFSEX_9335
10@, 12@, 14@ = Char.GetOffsetInWorldCoords($scplayer, 1.5989, 0.7828, -0.2044)
if 
  7@ == 3
goto_if_false @GFSEX_9418
11@, 13@, 15@ = Char.GetOffsetInWorldCoords($scplayer, 0.6223, 0.6748, -0.2)
goto @GFSEX_9447

:GFSEX_9418
11@, 13@, 15@ = Char.GetOffsetInWorldCoords($scplayer, 0.6223, 0.6748, -0.3904)

:GFSEX_9447
goto @GFSEX_9818

:GFSEX_9454
10@, 12@, 14@ = Char.GetOffsetInWorldCoords($scplayer, 0.9748, -0.1026, 0.7511)
if 
  7@ == 3
goto_if_false @GFSEX_9537
11@, 13@, 15@ = Char.GetOffsetInWorldCoords($scplayer, 0.4155, 0.3026, 0.01)
goto @GFSEX_9566

:GFSEX_9537
11@, 13@, 15@ = Char.GetOffsetInWorldCoords($scplayer, 0.4155, 0.3026, 0.0279)

:GFSEX_9566
goto @GFSEX_9818

:GFSEX_9573
10@, 12@, 14@ = Char.GetOffsetInWorldCoords($scplayer, -1.3103, 1.6396, -0.6208)
if 
  7@ == 3
goto_if_false @GFSEX_9656
11@, 13@, 15@ = Char.GetOffsetInWorldCoords($scplayer, -0.49, 1.0874, -0.2)
goto @GFSEX_9685

:GFSEX_9656
11@, 13@, 15@ = Char.GetOffsetInWorldCoords($scplayer, -0.49, 1.0874, -0.4726)

:GFSEX_9685
goto @GFSEX_9818

:GFSEX_9692
23@ = 0
10@, 12@, 14@ = Char.GetOffsetInWorldCoords($scplayer, -0.6375, 2.3043, 0.1065)
if 
  7@ == 3
goto_if_false @GFSEX_9782
11@, 13@, 15@ = Char.GetOffsetInWorldCoords($scplayer, -0.3435, 1.4278, 0.0)
goto @GFSEX_9811

:GFSEX_9782
11@, 13@, 15@ = Char.GetOffsetInWorldCoords($scplayer, -0.3435, 1.4278, -0.2746)

:GFSEX_9811
goto @GFSEX_9818

:GFSEX_9818
Camera.SetFixedPosition(10@, 12@, 14@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(11@, 13@, 15@, SwitchType.JumpCut)
23@ += 1
return 

:GFSEX_9866
if 
  7@ == 6
goto_if_false @GFSEX_10211
22@ += 1
switch_start 22@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFSEX_10204 {caseNum1} 1 {caseLabel1} @GFSEX_9954 {caseNum2} 2 {caseLabel2} @GFSEX_10035 {caseNum3} 3 {caseLabel3} @GFSEX_10116 {caseNum4} -1 {caseLabel4} @GFSEX_10204 {caseNum5} -1 {caseLabel5} @GFSEX_10204 {caseNum6} -1 {caseLabel6} @GFSEX_10204 {caseNum7} -1 {caseLabel7} @GFSEX_10204

:GFSEX_9954
Task.PlayAnimNonInterruptable(24@, "SEX_1TO2_W", "SEX", 4.0, False, False, False, False, 0)
Task.PlayAnimNonInterruptable($scplayer, "SEX_1TO2_P", "SEX", 4.0, False, False, False, False, 0)
goto @GFSEX_10204

:GFSEX_10035
Task.PlayAnimNonInterruptable(24@, "SEX_2TO3_W", "SEX", 4.0, False, False, False, False, 0)
Task.PlayAnimNonInterruptable($scplayer, "SEX_2TO3_P", "SEX", 4.0, False, False, False, False, 0)
goto @GFSEX_10204

:GFSEX_10116
22@ = 0
Task.PlayAnimNonInterruptable(24@, "SEX_3TO1_W", "SEX", 4.0, False, False, False, False, 0)
Task.PlayAnimNonInterruptable($scplayer, "SEX_3TO1_P", "SEX", 4.0, False, False, False, False, 0)
goto @GFSEX_10204

:GFSEX_10204
8@ = 1

:GFSEX_10211
return 

:GFSEX_10213
set_lvar_int_to_var_int 20@ = $excitement
20@ /= 10
if 
  3 > 20@
goto_if_false @GFSEX_10253
20@ = 0

:GFSEX_10253
switch_start 20@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @GFSEX_10622 {caseNum1} 0 {caseLabel1} @GFSEX_10381 {caseNum2} 3 {caseLabel2} @GFSEX_10412 {caseNum3} 4 {caseLabel3} @GFSEX_10443 {caseNum4} 5 {caseLabel4} @GFSEX_10474 {caseNum5} 6 {caseLabel5} @GFSEX_10505 {caseNum6} 7 {caseLabel6} @GFSEX_10536 {caseNum7} 8 {caseLabel7} @GFSEX_10567
switch_continued 9 {caseLabel1} @GFSEX_10598 {caseNum2} -1 {caseLabel2} @GFSEX_10622 {caseNum3} -1 {caseLabel3} @GFSEX_10622 {caseNum4} -1 {caseLabel4} @GFSEX_10622 {caseNum5} -1 {caseLabel5} @GFSEX_10622 {caseNum6} -1 {caseLabel6} @GFSEX_10622 {caseNum7} -1 {caseLabel7} @GFSEX_10622 {caseNum8} -1 {caseLabel8} @GFSEX_10622 {caseNum9} -1 {caseLabel9} @GFSEX_10622

:GFSEX_10381
16@ = 0.035
clear_local_var_bit_const 9@ {n} 6
clear_local_var_bit_const 9@ {n} 7
goto @GFSEX_10622

:GFSEX_10412
16@ = 0.045
clear_local_var_bit_const 9@ {n} 6
clear_local_var_bit_const 9@ {n} 7
goto @GFSEX_10622

:GFSEX_10443
16@ = 0.05
clear_local_var_bit_const 9@ {n} 6
clear_local_var_bit_const 9@ {n} 7
goto @GFSEX_10622

:GFSEX_10474
16@ = 0.055
clear_local_var_bit_const 9@ {n} 6
clear_local_var_bit_const 9@ {n} 7
goto @GFSEX_10622

:GFSEX_10505
16@ = 0.055
clear_local_var_bit_const 9@ {n} 6
clear_local_var_bit_const 9@ {n} 7
goto @GFSEX_10622

:GFSEX_10536
16@ = 0.08
set_local_var_bit_const 9@ {n} 6
clear_local_var_bit_const 9@ {n} 7
goto @GFSEX_10622

:GFSEX_10567
16@ = 0.08
set_local_var_bit_const 9@ {n} 6
clear_local_var_bit_const 9@ {n} 7
goto @GFSEX_10622

:GFSEX_10598
16@ = 0.09
set_local_var_bit_const 9@ {n} 7
goto @GFSEX_10622

:GFSEX_10622
return 

:GFSEX_10624
switch_start 22@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFSEX_11056 {caseNum1} 0 {caseLabel1} @GFSEX_10687 {caseNum2} 1 {caseLabel2} @GFSEX_10810 {caseNum3} 2 {caseLabel3} @GFSEX_10933 {caseNum4} -1 {caseLabel4} @GFSEX_11056 {caseNum5} -1 {caseLabel5} @GFSEX_11056 {caseNum6} -1 {caseLabel6} @GFSEX_11056 {caseNum7} -1 {caseLabel7} @GFSEX_11056

:GFSEX_10687
if 
  Char.IsPlayingAnim($scplayer, "SEX_1_P")
goto_if_false @GFSEX_10745
Char.SetAnimPlayingFlag($scplayer, "SEX_1_P", False)
Char.SetAnimCurrentTime($scplayer, "SEX_1_P", $GF_anim_time)

:GFSEX_10745
if 
  Char.IsPlayingAnim(24@, "SEX_1_W")
goto_if_false @GFSEX_10803
Char.SetAnimPlayingFlag(24@, "SEX_1_W", False)
Char.SetAnimCurrentTime(24@, "SEX_1_W", $GF_anim_time)

:GFSEX_10803
goto @GFSEX_11056

:GFSEX_10810
if 
  Char.IsPlayingAnim($scplayer, "SEX_2_P")
goto_if_false @GFSEX_10868
Char.SetAnimPlayingFlag($scplayer, "SEX_2_P", False)
Char.SetAnimCurrentTime($scplayer, "SEX_2_P", $GF_anim_time)

:GFSEX_10868
if 
  Char.IsPlayingAnim(24@, "SEX_2_W")
goto_if_false @GFSEX_10926
Char.SetAnimPlayingFlag(24@, "SEX_2_W", False)
Char.SetAnimCurrentTime(24@, "SEX_2_W", $GF_anim_time)

:GFSEX_10926
goto @GFSEX_11056

:GFSEX_10933
if 
  Char.IsPlayingAnim($scplayer, "SEX_3_P")
goto_if_false @GFSEX_10991
Char.SetAnimPlayingFlag($scplayer, "SEX_3_P", False)
Char.SetAnimCurrentTime($scplayer, "SEX_3_P", $GF_anim_time)

:GFSEX_10991
if 
  Char.IsPlayingAnim(24@, "SEX_3_W")
goto_if_false @GFSEX_11049
Char.SetAnimPlayingFlag(24@, "SEX_3_W", False)
Char.SetAnimCurrentTime(24@, "SEX_3_W", $GF_anim_time)

:GFSEX_11049
goto @GFSEX_11056

:GFSEX_11056
if 
  is_local_var_bit_set_const 9@ {n} 5
goto_if_false @GFSEX_11089
sub_float_lvar_from_float_var $GF_anim_time -= 16@
goto @GFSEX_11097

:GFSEX_11089
add_float_lvar_to_float_var $GF_anim_time += 16@

:GFSEX_11097
if 
  0.0 >= $GF_anim_time
goto_if_false @GFSEX_11142
$GF_anim_time = 0.01
clear_local_var_bit_const 9@ {n} 5
gosub @GFSEX_11217

:GFSEX_11142
if 
  $GF_anim_time >= 1.0
goto_if_false @GFSEX_11187
$GF_anim_time = 0.99
set_local_var_bit_const 9@ {n} 5
gosub @GFSEX_11217

:GFSEX_11187
if 
  $GF_anim_time == 0.5
goto_if_false @GFSEX_11215
gosub @GFSEX_11217

:GFSEX_11215
return 

:GFSEX_11217
$GF_left_stick_x, $GF_left_stick_y, $GF_right_stick_x, $GF_right_stick_y = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
cset_lvar_float_to_var_int 17@ =# $GF_left_stick_y
17@ /= 128.0
if 
  $GF_anim_time == 0.5
goto_if_false @GFSEX_11316
if 
  0.0 > 17@
goto_if_false @GFSEX_11307
gosub @GFSEX_11451
goto @GFSEX_11316

:GFSEX_11307
gosub @GFSEX_11556
return 

:GFSEX_11316
if 
  is_local_var_bit_set_const 9@ {n} 5
goto_if_false @GFSEX_11407
Pad.Shake(PadId.Pad1, 200, 100)
set_var_int_to_constant $iGFSayContext = 281
set_var_int_to_constant $iCJSayContext = 116
if 
  -0.8 > 17@
goto_if_false @GFSEX_11393
gosub @GFSEX_11451
goto @GFSEX_11400

:GFSEX_11393
gosub @GFSEX_11556

:GFSEX_11400
goto @GFSEX_11449

:GFSEX_11407
if 
  17@ > 0.8
goto_if_false @GFSEX_11442
gosub @GFSEX_11451
goto @GFSEX_11449

:GFSEX_11442
gosub @GFSEX_11556

:GFSEX_11449
return 

:GFSEX_11451
if 
  100 > $excitement
goto_if_false @GFSEX_11547
if 
  is_local_var_bit_set_const 9@ {n} 6
goto_if_false @GFSEX_11501
$excitement += 5
goto @GFSEX_11540

:GFSEX_11501
if 
  is_local_var_bit_set_const 9@ {n} 7
goto_if_false @GFSEX_11533
$excitement += 10
goto @GFSEX_11540

:GFSEX_11533
$excitement += 1

:GFSEX_11540
goto @GFSEX_11554

:GFSEX_11547
$excitement = 100

:GFSEX_11554
return 

:GFSEX_11556
if 
  TIMERB > 5000
goto_if_false @GFSEX_11653
if 
  $excitement > 0
goto_if_false @GFSEX_11646
if and
  $excitement > 10
  not is_local_var_bit_set_const 9@ {n} 6
goto_if_false @GFSEX_11632
$excitement -= 5
goto @GFSEX_11639

:GFSEX_11632
$excitement -= 1

:GFSEX_11639
goto @GFSEX_11653

:GFSEX_11646
$excitement = 0

:GFSEX_11653
return 

:GFSEX_11655
if 
  18@ > 90.0
goto_if_false @GFSEX_11686
18@ = 0.0

:GFSEX_11686
19@ = Math.Sin(18@)
19@ *= 13.5
cset_lvar_int_to_lvar_float 20@ =# 19@
add_int_var_to_int_lvar 20@ += $power
if 
  20@ >= 100
goto_if_false @GFSEX_11752
$power = 100
goto @GFSEX_11760

:GFSEX_11752
set_var_int_to_lvar_int $power = 20@

:GFSEX_11760
18@ += 1.0
return 

:GFSEX_11772
18@ = 0.0
if 
  $power >= 97
goto_if_false @GFSEX_11814
$power -= 3
goto @GFSEX_11853

:GFSEX_11814
if 
  7 >= $power
goto_if_false @GFSEX_11846
$power = 0
goto @GFSEX_11853

:GFSEX_11846
$power -= 7

:GFSEX_11853
return 

:GFSEX_11855
if 
  $power >= 97
goto_if_false @GFSEX_11887
set_local_var_bit_const 9@ {n} 10
goto @GFSEX_11894

:GFSEX_11887
clear_local_var_bit_const 9@ {n} 10

:GFSEX_11894
return 

:GFSEX_11896
16@ = 0.025
if 
  is_local_var_bit_set_const 9@ {n} 10
goto_if_false @GFSEX_11934
16@ += 0.015

:GFSEX_11934
$GF_anim_time = 0.01
return 

:GFSEX_11946
if 
  Char.IsPlayingAnim($scplayer, "SPANKINGP")
goto_if_false @GFSEX_12010
Char.SetAnimPlayingFlag($scplayer, "SPANKINGP", False)
Char.SetAnimCurrentTime($scplayer, "SPANKINGP", $GF_anim_time)

:GFSEX_12010
if 
  Char.IsPlayingAnim(24@, "SPANKINGW")
goto_if_false @GFSEX_12074
Char.SetAnimPlayingFlag(24@, "SPANKINGW", False)
Char.SetAnimCurrentTime(24@, "SPANKINGW", $GF_anim_time)

:GFSEX_12074
if 
  not is_local_var_bit_set_const 9@ {n} 5
goto_if_false @GFSEX_12100
add_float_lvar_to_float_var $GF_anim_time += 16@

:GFSEX_12100
if 
  $GF_anim_time >= 1.0
goto_if_false @GFSEX_12140
$GF_anim_time = 0.99
set_local_var_bit_const 9@ {n} 5
return 

:GFSEX_12140
return 

:GFSEX_12142
if 
  is_local_var_bit_set_const 9@ {n} 10
goto_if_false @GFSEX_12214
set_var_int_to_constant $iGFSayContext = 283
if 
  100 >= $excitement
goto_if_false @GFSEX_12200
$excitement += 10
goto @GFSEX_12207

:GFSEX_12200
$excitement = 100

:GFSEX_12207
goto @GFSEX_12253

:GFSEX_12214
if 
  $excitement >= 10
goto_if_false @GFSEX_12246
$excitement -= 10
goto @GFSEX_12253

:GFSEX_12246
$excitement = 0

:GFSEX_12253
clear_local_var_bit_const 9@ {n} 10
clear_local_var_bit_const 9@ {n} 11
clear_local_var_bit_const 9@ {n} 12
return 

:GFSEX_12276
if and
  100 > $power
  $power > 0
  is_local_var_bit_set_const 9@ {n} 14
goto_if_false @GFSEX_12317
gosub @GFSEX_11772
return 

:GFSEX_12317
if and
  100 > $power
  $power > 0
  not is_local_var_bit_set_const 9@ {n} 14
goto_if_false @GFSEX_12358
gosub @GFSEX_11655
return 

:GFSEX_12358
if 
  $power >= 100
goto_if_false @GFSEX_12399
$power = 100
set_local_var_bit_const 9@ {n} 14
gosub @GFSEX_11772
return 

:GFSEX_12399
if 
  0 >= $power
goto_if_false @GFSEX_12440
$power = 0
clear_local_var_bit_const 9@ {n} 14
gosub @GFSEX_11655
return 

:GFSEX_12440
return 

:GFSEX_12442
switch_start $iGFSpeechStatus {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @GFSEX_12974 {caseNum1} 0 {caseLabel1} @GFSEX_12505 {caseNum2} 1 {caseLabel2} @GFSEX_12537 {caseNum3} 2 {caseLabel3} @GFSEX_12549 {caseNum4} 3 {caseLabel4} @GFSEX_12563 {caseNum5} 4 {caseLabel5} @GFSEX_12832 {caseNum6} 5 {caseLabel6} @GFSEX_12932 {caseNum7} 6 {caseLabel7} @GFSEX_12741

:GFSEX_12505
if 
  $iGFSayContext > 0
goto_if_false @GFSEX_12530
$iGFSpeechStatus = 3

:GFSEX_12530
goto @GFSEX_12974

:GFSEX_12537
Char.EnableSpeech(24@)
goto @GFSEX_12974

:GFSEX_12549
Char.DisableSpeech(24@, False)
goto @GFSEX_12974

:GFSEX_12563
if 
  not Char.IsTalking(24@)
goto_if_false @GFSEX_12734
if 
  $iGFSayContext > 0
goto_if_false @GFSEX_12674
$iGFContextVariation = Char.SetSayContextImportant(24@, $iGFSayContext, True, True, True)
gosub @GFSEX_12976
$iGFSayContext = -1
if 
  $iCJSayContext > 0
goto_if_false @GFSEX_12660
$iGFSpeechStatus = 6
goto @GFSEX_12667

:GFSEX_12660
$iGFSpeechStatus = 0

:GFSEX_12667
goto @GFSEX_12734

:GFSEX_12674
if 
  $iGFSayContext == -2
goto_if_false @GFSEX_12713
$iGFSayContext = -1
$iGFSpeechStatus = 6
goto @GFSEX_12734

:GFSEX_12713
$iGFSayContext = -1
$iCJSayContext = -1
$iGFSpeechStatus = 0

:GFSEX_12734
goto @GFSEX_12974

:GFSEX_12741
if and
  not Char.IsTalking($scplayer)
  not Char.IsTalking(24@)
goto_if_false @GFSEX_12825
if 
  $iCJSayContext > 0
goto_if_false @GFSEX_12818
$iGFContextVariation = Char.SetSayContextImportant($scplayer, $iCJSayContext, True, True, True)
$iCJSayContext = -1
$iGFSpeechStatus = 0
goto @GFSEX_12825

:GFSEX_12818
$iGFSpeechStatus = 0

:GFSEX_12825
goto @GFSEX_12974

:GFSEX_12832
Char.DisableSpeech(24@, False)
if 
  not Char.IsTalking(24@)
goto_if_false @GFSEX_12925
if 
  $iGFSayContext > 0
goto_if_false @GFSEX_12918
$iGFContextVariation = Char.SetSayContextImportant(24@, $iGFSayContext, True, True, True)
gosub @GFSEX_12976
$iGFSayContext = -1
$iGFSpeechStatus = 5
goto @GFSEX_12925

:GFSEX_12918
$iGFSpeechStatus = 0

:GFSEX_12925
goto @GFSEX_12974

:GFSEX_12932
if 
  not Char.IsTalking(24@)
goto_if_false @GFSEX_12967
Char.EnableSpeech(24@)
$iGFSayContext = -1
$iGFSpeechStatus = 0

:GFSEX_12967
goto @GFSEX_12974

:GFSEX_12974
return 

:GFSEX_12976
switch_start $iGFSayContext {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFSEX_13135 {caseNum1} 283 {caseLabel1} @GFSEX_13043 {caseNum2} 284 {caseLabel2} @GFSEX_13066 {caseNum3} 285 {caseLabel3} @GFSEX_13089 {caseNum4} 286 {caseLabel4} @GFSEX_13112 {caseNum5} -1 {caseLabel5} @GFSEX_13135 {caseNum6} -1 {caseLabel6} @GFSEX_13135 {caseNum7} -1 {caseLabel7} @GFSEX_13135

:GFSEX_13043
Text.PrintNow('GF_0019', 5000, 1)
goto @GFSEX_13135

:GFSEX_13066
Text.PrintNow('GF_0067', 5000, 1)
goto @GFSEX_13135

:GFSEX_13089
Text.PrintNow('GF_0042', 5000, 1)
goto @GFSEX_13135

:GFSEX_13112
Text.PrintNow('GF_0067', 5000, 1)
goto @GFSEX_13135

:GFSEX_13135
return 

:GFSEX_13137
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_13602 {caseNum1} 0 {caseLabel1} @GFSEX_13200 {caseNum2} 1 {caseLabel2} @GFSEX_13334 {caseNum3} 2 {caseLabel3} @GFSEX_13401 {caseNum4} 3 {caseLabel4} @GFSEX_13267 {caseNum5} 4 {caseLabel5} @GFSEX_13468 {caseNum6} 5 {caseLabel6} @GFSEX_13535 {caseNum7} -1 {caseLabel7} @GFSEX_13602

:GFSEX_13200
10@ = 2394.408
12@ = -1728.215
14@ = 14.2715
11@ = 2395.066
13@ = -1727.465
15@ = 14.2063
goto @GFSEX_13602

:GFSEX_13267
10@ = -1401.494
12@ = 2640.099
14@ = 59.3883
11@ = -1400.704
13@ = 2639.641
15@ = 58.9806
goto @GFSEX_13602

:GFSEX_13334
10@ = -1799.737
12@ = 1192.863
14@ = 29.6868
11@ = -1799.472
13@ = 1193.683
15@ = 29.1813
goto @GFSEX_13602

:GFSEX_13401
10@ = -383.3153
12@ = -1435.266
14@ = 26.695
11@ = -382.5756
13@ = -1435.887
15@ = 26.4366
goto @GFSEX_13602

:GFSEX_13468
10@ = -2582.293
12@ = 1147.762
14@ = 59.6235
11@ = -2581.406
13@ = 1147.768
15@ = 59.1605
goto @GFSEX_13602

:GFSEX_13535
10@ = 2032.235
12@ = 2734.541
14@ = 13.3226
11@ = 2032.744
13@ = 2733.714
15@ = 13.0817
goto @GFSEX_13602

:GFSEX_13602
return 

:GFSEX_13604
Streaming.RemoveAnimation("SNM")
Streaming.RemoveAnimation("SEX")
Streaming.RemoveAnimation("BLOWJOBZ")
Streaming.RemoveAnimation("KISSING")
Streaming.UnloadSpecialCharacter(1)
Char.Delete(24@)
if 
  not Car.IsDead(25@)
goto_if_false @GFSEX_13686
Car.SetProofs(25@, False, False, False, False, False)
Car.MarkAsNoLongerNeeded(25@)

:GFSEX_13686
if 
  Player.IsPlaying($player1)
goto_if_false @GFSEX_13740
Char.SetVisible($scplayer, True)
Char.SetProofs($scplayer, False, False, False, False, False)
Char.ClearTasks($scplayer)
Player.SetControl($player1, True)
Hud.SwitchWidescreen(False)

:GFSEX_13740
Hud.DisplayRadar(True)
set_global_var_bit_const $iDateReport {n} 21
clear_global_var_bit_const $iDateReport {n} 5
Game.SetMinigameInProgress(False)
terminate_this_script 
return 
write_debug "I__________________________I"
write_debug "H"
write_debug "G"
write_debug_with_float "STICK_POSITION" {_p2} 17@
write_debug_with_int "SHAGGIN_POSITION" {_p2} 22@
write_debug_with_int "I_EXCITEMENT" {_p2} $excitement
write_debug_with_float "ANIM_TIME" {_p2} $GF_anim_time
write_debug_with_int "SUBSTATESTATUS" {_p2} 8@
switch_start 7@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @GFSEX_14066 {caseNum1} 0 {caseLabel1} @GFSEX_13971 {caseNum2} 1 {caseLabel2} @GFSEX_13990 {caseNum3} 2 {caseLabel3} @GFSEX_14009 {caseNum4} 3 {caseLabel4} @GFSEX_14028 {caseNum5} 4 {caseLabel5} @GFSEX_14047 {caseNum6} -1 {caseLabel6} @GFSEX_14095 {caseNum7} -1 {caseLabel7} @GFSEX_14095

:GFSEX_13971
write_debug "STATE0__"
goto @GFSEX_14095

:GFSEX_13990
write_debug "STATE1__"
goto @GFSEX_14095

:GFSEX_14009
write_debug "STATE2__"
goto @GFSEX_14095

:GFSEX_14028
write_debug "STATE3__"
goto @GFSEX_14095

:GFSEX_14047
write_debug "STATE4__"
goto @GFSEX_14095

:GFSEX_14066
write_debug "UNTRAPPED_STATE___"
goto @GFSEX_14095

:GFSEX_14095
write_debug "I__________________________I"
return 
terminate_this_script 

//-------------External script 27 (CASINO_AMBIENCE)---------------

:CASAMB
script_name 'CASAMB'
if 
  $onmission == 0
goto_if_false @CASAMB_43
$fFunTemp = 0
$iSetCasinoPanic = 0

:CASAMB_43
1@ = 1
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_91
Streaming.RequestModel(124)
Streaming.RequestModel(126)
Streaming.RequestModel(125)
Streaming.RequestModel(214)

:CASAMB_91
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @CASAMB_130
Streaming.RequestModel(163)
Streaming.RequestModel(164)
Streaming.RequestModel(263)

:CASAMB_130
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CASINO2"
goto_if_false @CASAMB_170
Streaming.RequestModel(163)
Streaming.RequestModel(164)
Streaming.RequestModel(172)

:CASAMB_170
Streaming.RequestAnimation("BAR")

:CASAMB_177
if 
  not Streaming.HasAnimationLoaded("BAR")
goto_if_false @CASAMB_206
wait 0
goto @CASAMB_177

:CASAMB_206
2@ = Sequence.Open()
Task.PlayAnim(-1, "BARSERVE_IN", "BAR", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "BARSERVE_LOOP", "BAR", 4.0, True, False, False, False, 10000)
Sequence.Close(2@)
3@ = Sequence.Open()
Task.PlayAnim(-1, "BARSERVE_BOTTLE", "BAR", 4.0, False, False, False, False, -1)
Sequence.Close(3@)
4@ = Sequence.Open()
Task.WanderStandard(-1)
Sequence.Close(4@)
if 
  Player.IsPlaying($player1)
goto_if_false @CASAMB_1779
Player.ResetNumOfModelsKilled($player1)
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @CASAMB_928
5@ = Attractor.Add(1953.774, 1018.197, 991.4766, 260.0, 90.0, 2@)
6@ = Attractor.Add(1952.286, 1025.58, 991.4745, 260.0, 90.0, 2@)
7@ = Attractor.Add(1952.3, 1010.296, 991.4745, 260.0, 90.0, 2@)
8@ = Attractor.Add(1952.25, 1017.92, 991.4766, 90.0, 260.0, 3@)
9@ = Attractor.Add(1948.073, 1016.505, 991.4766, 90.0, 180.0, 2@)
10@ = Attractor.Add(1948.564, 1022.182, 991.4766, 90.0, 180.0, 2@)
11@ = Attractor.Add(1949.246, 1013.613, 991.4766, 90.0, 180.0, 2@)
12@ = Attractor.Add(1949.0, 1015.8, 991.4766, 275.0, 85.0, 3@)
16@ = Char.CreateAtAttractor(PedType.CivFemale, 263, 5@, 1466)
17@ = Char.CreateAtAttractor(PedType.CivFemale, 263, 9@, 1466)
StreamedScript.StartNew(38, 16@, 5@, 6@, 7@, 8@, 2.5)
StreamedScript.StartNew(38, 17@, 9@, 10@, 11@, 12@, 2.5)
StreamedScript.Stream(38)
13@ = Attractor.Add(1966.539, 984.8237, 993.4688, 270.0, 270.0, 4@)
14@ = Attractor.Add(1932.395, 1033.886, 993.4688, 60.0, 300.0, 4@)
15@ = Attractor.Add(1959.094, 993.7656, 991.4766, 240.0, 240.0, 4@)
18@ = Char.CreateAtAttractor(PedType.Cop, 163, 13@, 1502)
19@ = Char.CreateAtAttractor(PedType.Cop, 164, 14@, 1502)
20@ = Char.CreateAtAttractor(PedType.Cop, 163, 15@, 1502)
StreamedScript.StartNew(39, 18@)
StreamedScript.StartNew(39, 19@)
StreamedScript.StartNew(39, 20@)
StreamedScript.Stream(39)

:CASAMB_928
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_1474
5@ = Attractor.Add(2195.73, 1600.786, 1004.063, 206.0, -206.0, 2@)
6@ = Attractor.Add(2197.012, 1602.852, 1004.063, 253.0, -253.0, 2@)
7@ = Attractor.Add(2195.786, 1606.363, 1004.063, 349.0, -349.0, 2@)
8@ = Attractor.Add(2196.137, 1603.521, 1004.063, 98.0, -98.0, 3@)
9@ = Attractor.Add(2191.592, 1601.286, 1004.063, 151.0, -151.0, 2@)
10@ = Attractor.Add(2191.176, 1604.874, 1004.063, 58.0, -58.0, 2@)
11@ = Attractor.Add(2192.425, 1606.971, 1004.063, 40.0, -40.0, 2@)
12@ = Attractor.Add(2192.954, 1605.687, 1004.069, 207.0, -207.0, 3@)
16@ = Char.CreateAtAttractor(PedType.CivFemale, 214, 5@, 1466)
17@ = Char.CreateAtAttractor(PedType.CivFemale, 214, 9@, 1466)
StreamedScript.StartNew(38, 16@, 5@, 6@, 7@, 8@, 3.5)
StreamedScript.StartNew(38, 17@, 9@, 10@, 11@, 12@, 3.5)
StreamedScript.Stream(38)
13@ = Attractor.Add(2247.869, 1624.467, 1007.367, 152.0, -152.0, 4@)
14@ = Attractor.Add(2247.349, 1583.257, 1007.366, 358.0, -358.0, 4@)
15@ = Attractor.Add(2164.643, 1582.151, 1007.359, 13.0, -13.0, 4@)
18@ = Char.CreateAtAttractor(PedType.Cop, 124, 13@, 1502)
19@ = Char.CreateAtAttractor(PedType.Cop, 125, 14@, 1502)
20@ = Char.CreateAtAttractor(PedType.Cop, 126, 15@, 1502)
StreamedScript.StartNew(39, 18@)
StreamedScript.StartNew(39, 19@)
StreamedScript.StartNew(39, 20@)
StreamedScript.Stream(39)

:CASAMB_1474
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CASINO2"
goto_if_false @CASAMB_1779
5@ = Attractor.Add(1141.206, -5.9198, 999.6719, 81.0, -81.0, 2@)
6@ = Attractor.Add(1141.831, -8.994, 999.6797, 94.0, -94.0, 2@)
7@ = Attractor.Add(1141.161, 1.224, 999.6719, 110.0, -110.0, 2@)
8@ = Attractor.Add(1141.159, -3.9906, 999.6797, 93.0, -93.0, 3@)
16@ = Char.CreateAtAttractor(PedType.CivFemale, 172, 5@, 1466)
StreamedScript.StartNew(38, 16@, 5@, 6@, 7@, 8@, 2.0)
StreamedScript.Stream(38)
9@ = -1
10@ = -1
11@ = -1
12@ = -1
13@ = Attractor.Add(1143.677, 6.4929, 999.6797, 71.0, -71.0, 4@)
18@ = Char.CreateAtAttractor(PedType.Cop, 163, 13@, 1502)
StreamedScript.StartNew(39, 18@)
StreamedScript.Stream(39)
14@ = -1
15@ = -1

:CASAMB_1779
if 
  Player.IsPlaying($player1)
goto_if_false @CASAMB_3006
$iAreaCode = Char.GetAreaVisible($scplayer)
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @CASAMB_1835
goto @CASAMB_3017

:CASAMB_1835
if 
  Char.IsShooting($scplayer)
goto_if_false @CASAMB_1865
$fFunTemp = 1
$iSetCasinoPanic = 1

:CASAMB_1865
0@ = Player.GetTotalNumberOfPedsKilled($player1)
if 
  0@ > 0
goto_if_false @CASAMB_1898
$iSetCasinoPanic = 1

:CASAMB_1898
if 
  Player.IsWantedLevelGreater($player1, $iWantedOnEntry)
goto_if_false @CASAMB_1924
$iSetCasinoPanic = 1

:CASAMB_1924
0@ = 0

:CASAMB_1931
if 
  not Char.IsDead(16@(0@,11i))
goto_if_false @CASAMB_2039
if and
  Player.IsTargetingChar($player1, 16@(0@,11i))
  not Char.IsCurrentWeapon($scplayer, WeaponType.AnyMelee)
goto_if_false @CASAMB_2002
$fFunTemp = 1
$iSetCasinoPanic = 1
goto @CASAMB_2039

:CASAMB_2002
if 
  Char.HasBeenDamagedByChar(16@(0@,11i), $scplayer)
goto_if_false @CASAMB_2039
$fFunTemp = 1
$iSetCasinoPanic = 1

:CASAMB_2039
0@ += 1
  0@ >= 11
goto_if_false @CASAMB_1931
if 
  $fFunTemp == 1
goto_if_false @CASAMB_2144
$iSetCasinoPanic = 1
0@ = World.GetRandomCharInSphereNoBrain(27@, 28@, 29@, 50.0)
if 
  0@ > -1
goto_if_false @CASAMB_2144
1@ += 1
StreamedScript.StartNew(37, 0@, 1@)
StreamedScript.Stream(37)

:CASAMB_2144
if 
  $iSetCasinoPanic == 1
goto_if_false @CASAMB_3006
if and
  Char.IsDead(18@)
  13@ <> -1
goto_if_false @CASAMB_2480
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @CASAMB_2239
27@ = 1966.539
28@ = 984.8237
29@ = 993.4688

:CASAMB_2239
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2293
27@ = 2247.869
28@ = 1624.467
29@ = 1007.367

:CASAMB_2293
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CASINO2"
goto_if_false @CASAMB_2348
27@ = 1143.677
28@ = 6.4929
29@ = 999.6797

:CASAMB_2348
if and
  not Char.LocateAnyMeans3D($scplayer, 27@, 28@, 29@, 8.0, 8.0, 8.0, False)
  not Camera.IsPointOnScreen(27@, 28@, 29@, 3.0)
goto_if_false @CASAMB_2480
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2452
18@ = Char.CreateAtAttractor(PedType.CivMale, 124, 13@, 1502)
goto @CASAMB_2468

:CASAMB_2452
18@ = Char.CreateAtAttractor(PedType.Cop, 163, 13@, 1502)

:CASAMB_2468
StreamedScript.StartNew(39, 18@)
StreamedScript.Stream(39)

:CASAMB_2480
if and
  Char.IsDead(19@)
  14@ <> -1
goto_if_false @CASAMB_2743
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @CASAMB_2557
27@ = 1932.395
28@ = 1033.886
29@ = 993.4688

:CASAMB_2557
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2611
27@ = 2247.349
28@ = 1583.257
29@ = 1007.366

:CASAMB_2611
if and
  not Char.LocateAnyMeans3D($scplayer, 27@, 28@, 29@, 8.0, 8.0, 8.0, False)
  not Camera.IsPointOnScreen(27@, 28@, 29@, 3.0)
goto_if_false @CASAMB_2743
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2715
19@ = Char.CreateAtAttractor(PedType.Cop, 125, 14@, 1502)
goto @CASAMB_2731

:CASAMB_2715
19@ = Char.CreateAtAttractor(PedType.Cop, 164, 14@, 1502)

:CASAMB_2731
StreamedScript.StartNew(39, 19@)
StreamedScript.Stream(39)

:CASAMB_2743
if and
  Char.IsDead(20@)
  15@ <> -1
goto_if_false @CASAMB_3006
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @CASAMB_2820
27@ = 1959.094
28@ = 993.7656
29@ = 991.4766

:CASAMB_2820
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2874
27@ = 2164.643
28@ = 1582.151
29@ = 1007.359

:CASAMB_2874
if and
  not Char.LocateAnyMeans3D($scplayer, 27@, 28@, 29@, 8.0, 8.0, 8.0, False)
  not Camera.IsPointOnScreen(27@, 28@, 29@, 3.0)
goto_if_false @CASAMB_3006
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2978
20@ = Char.CreateAtAttractor(PedType.CivMale, 126, 15@, 1502)
goto @CASAMB_2994

:CASAMB_2978
20@ = Char.CreateAtAttractor(PedType.Cop, 164, 15@, 1502)

:CASAMB_2994
StreamedScript.StartNew(39, 20@)
StreamedScript.Stream(39)

:CASAMB_3006
wait 0
goto @CASAMB_1779

:CASAMB_3017
0@ = 0

:CASAMB_3024
Char.MarkAsNoLongerNeeded(16@(0@,11i))
Char.Delete(16@(0@,11i))
0@ += 1
  0@ >= 11
goto_if_false @CASAMB_3024
0@ = 0

:CASAMB_3070
if 
  5@(0@,11i) <> -1
goto_if_false @CASAMB_3101
Attractor.Clear(5@(0@,11i))

:CASAMB_3101
0@ += 1
  0@ >= 11
goto_if_false @CASAMB_3070
Streaming.RemoveAnimation("BAR")
Streaming.MarkModelAsNoLongerNeeded(214)
Streaming.MarkModelAsNoLongerNeeded(263)
Streaming.MarkModelAsNoLongerNeeded(172)
Streaming.MarkModelAsNoLongerNeeded(163)
Streaming.MarkModelAsNoLongerNeeded(164)
Streaming.MarkModelAsNoLongerNeeded(124)
Streaming.MarkModelAsNoLongerNeeded(125)
Streaming.MarkModelAsNoLongerNeeded(126)
Sequence.Clear(2@)
Sequence.Clear(3@)
Sequence.Clear(4@)
terminate_this_script 
terminate_this_script 

//-------------External script 28 (BAR_AMBIENCE)---------------

:BAR
script_name 'BAR'
if and
  $onmission == 0
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @BAR_50
$iBouncerAction = 0
$iDanceScore = 0

:BAR_50
0@ = 0
if 
  0@ > 0
goto_if_false @BAR_99
$iDanceGirlfriend = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:BAR_99
1@ = 1
2@ = 0
0@ = Stat.GetInt(StatId.LatestDanceScore)
if 
  0@ >= 7500
goto_if_false @BAR_154
15@ = 3
goto @BAR_161

:BAR_154
15@ = 0

:BAR_161
gosub @BAR_2146
4@ = Sequence.Open()
Task.PlayAnim(-1, "BARSERVE_IN", "BAR", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "BARSERVE_LOOP", "BAR", 4.0, True, False, False, False, 10000)
Sequence.Close(4@)
5@ = Sequence.Open()
Task.PlayAnim(-1, "BARSERVE_BOTTLE", "BAR", 4.0, False, False, False, False, -1)
Sequence.Close(5@)
if 
  Player.IsPlaying($player1)
goto_if_false @BAR_944
v$txtEntryExit = Char.GetNameOfEntryExitUsed($scplayer)
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
goto_if_false @BAR_534
6@ = Attractor.Add(502.2242, -19.8799, 999.6797, 107.0, -107.0, 4@)
7@ = Attractor.Add(502.0665, -24.1488, 999.6797, 94.0, -94.0, 4@)
8@ = Attractor.Add(502.0757, -17.2798, 999.6719, 85.0, -85.0, 4@)
9@ = Attractor.Add(502.3116, -19.8236, 999.6797, 278.6, -278.6, 5@)
10@ = Char.CreateAtAttractor(PedType.CivFemale, 172, 6@, 1466)
StreamedScript.StartNew(38, 10@, 6@, 7@, 8@, 9@, 2.5, 20.0)
StreamedScript.Stream(38)

:BAR_534
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR2"
goto_if_false @BAR_738
6@ = Attractor.Add(497.9362, -78.0533, 997.7651, 1.0, -1.0, 4@)
7@ = Attractor.Add(493.9349, -77.9233, 997.7651, 100.5, -100.5, 4@)
8@ = Attractor.Add(501.2002, -77.739, 997.7651, 19.0, -19.0, 4@)
9@ = Attractor.Add(496.5553, -78.7725, 997.7651, 194.5, -194.5, 5@)
10@ = Char.CreateAtAttractor(PedType.CivFemale, 172, 6@, 1466)
StreamedScript.StartNew(38, 10@, 6@, 7@, 8@, 9@, 2.5, 20.0)
StreamedScript.Stream(38)

:BAR_738
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "UFOBAR"
goto_if_false @BAR_944
6@ = Attractor.Add(-223.2594, 1405.634, 26.7656, 86.9, 262.0, 4@)
7@ = Attractor.Add(-223.26, 1402.984, 26.7656, 145.4, 327.0, 4@)
8@ = Attractor.Add(-223.2956, 1407.486, 26.7656, 26.0, 184.0, 4@)
9@ = Attractor.Add(-222.6826, 1405.787, 26.7656, 275.7, 97.0, 5@)
10@ = Char.CreateAtAttractor(PedType.CivFemale, 172, 6@, 1466)
StreamedScript.StartNew(38, 10@, 6@, 7@, 8@, 9@, 2.5, 20.0)
StreamedScript.Stream(38)

:BAR_944
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @BAR_2139
$iAreaCode = Char.GetAreaVisible($scplayer)
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @BAR_1004
goto @BAR_2225

:BAR_1004
if and
  $iDanceScore == 0
  $onmission == 0
  2@ == 0
goto_if_false @BAR_1462
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
goto_if_false @BAR_1455
if 
  Char.LocateStoppedOnFoot3D($scplayer, 488.0048, -14.0754, 999.6797, 1.5, 1.5, 1.5, True)
goto_if_false @BAR_1455
Text.ClearHelp
Text.ClearPrints
if 
  is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @BAR_1286
0@ = Stat.GetInt(StatId.LatestDanceScore)
if 
  0@ >= 3500
goto_if_false @BAR_1169
3@ = 3
goto @BAR_1244

:BAR_1169
if 
  0@ >= 6000
goto_if_false @BAR_1202
3@ = 4
goto @BAR_1244

:BAR_1202
if 
  0@ >= 7500
goto_if_false @BAR_1237
3@ = Math.RandomIntInRange(1, 5)
goto @BAR_1244

:BAR_1237
3@ = 2

:BAR_1244
StreamedScript.StartNew(35, 488.0048, -14.0754, 999.6797, 180.0, 3@, $iDanceGirlfriend)
StreamedScript.Stream(35)
goto @BAR_1441

:BAR_1286
switch_start 15@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BAR_1407 {caseNum1} 0 {caseLabel1} @BAR_1349 {caseNum2} 1 {caseLabel2} @BAR_1363 {caseNum3} 2 {caseLabel3} @BAR_1377 {caseNum4} 3 {caseLabel4} @BAR_1391 {caseNum5} -1 {caseLabel5} @BAR_1407 {caseNum6} -1 {caseLabel6} @BAR_1407 {caseNum7} -1 {caseLabel7} @BAR_1407

:BAR_1349
3@ = 2
goto @BAR_1407

:BAR_1363
3@ = 3
goto @BAR_1407

:BAR_1377
3@ = 4
goto @BAR_1407

:BAR_1391
3@ = Math.RandomIntInRange(1, 5)
goto @BAR_1407

:BAR_1407
StreamedScript.StartNew(35, 488.0048, -14.0754, 999.6797, 180.0, 3@, 0)
StreamedScript.Stream(35)

:BAR_1441
2@ = 1
16@ = 0

:BAR_1455
goto @BAR_1884

:BAR_1462
if and
  $iDanceScore == 0
  $onmission == 0
  2@ == 1
goto_if_false @BAR_1884
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
goto_if_false @BAR_1884
if 
  not Char.LocateOnFoot3D($scplayer, 488.0048, -14.0754, 999.6797, 2.5, 2.5, 2.5, False)
goto_if_false @BAR_1578
2@ = 0
goto @BAR_1884

:BAR_1578
if and
  not Game.IsMinigameInProgress
  not is_global_var_bit_set_const $iDateReport {n} 1
  16@ == 0
goto_if_false @BAR_1884
switch_start 15@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BAR_1884 {caseNum1} 0 {caseLabel1} @BAR_1668 {caseNum2} 1 {caseLabel2} @BAR_1740 {caseNum3} 2 {caseLabel3} @BAR_1812 {caseNum4} -1 {caseLabel4} @BAR_1884 {caseNum5} -1 {caseLabel5} @BAR_1884 {caseNum6} -1 {caseLabel6} @BAR_1884 {caseNum7} -1 {caseLabel7} @BAR_1884

:BAR_1668
if 
  $iDanceReport >= 3500
goto_if_false @BAR_1733
Text.PrintBig('DNC_P1', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DNC_P2', 10000, 1)
16@ = 1
15@ += 1

:BAR_1733
goto @BAR_1884

:BAR_1740
if 
  $iDanceReport >= 6000
goto_if_false @BAR_1805
Text.PrintBig('DNC_P1', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DNC_P2', 10000, 1)
16@ = 1
15@ += 1

:BAR_1805
goto @BAR_1884

:BAR_1812
if 
  $iDanceReport >= 7500
goto_if_false @BAR_1877
Text.PrintBig('DNC_P1', 5000, TextStyle.MiddleSmaller)
Text.PrintNow('DNC_P3', 10000, 1)
16@ = 1
15@ += 1

:BAR_1877
goto @BAR_1884

:BAR_1884
if 
  Char.IsShooting($scplayer)
goto_if_false @BAR_1907
$iBouncerAction = 1

:BAR_1907
if 
  Player.IsWantedLevelGreater($player1, $iWantedOnEntry)
goto_if_false @BAR_1933
$iBouncerAction = 1

:BAR_1933
0@ = 0

:BAR_1940
if 
  not Char.IsDead(10@(0@,2i))
goto_if_false @BAR_2034
if and
  Player.IsTargetingChar($player1, 10@(0@,2i))
  not Char.IsCurrentWeapon($scplayer, WeaponType.AnyMelee)
goto_if_false @BAR_2004
$iBouncerAction = 1
goto @BAR_2034

:BAR_2004
if 
  Char.HasBeenDamagedByChar(10@(0@,2i), $scplayer)
goto_if_false @BAR_2034
$iBouncerAction = 1

:BAR_2034
0@ += 1
  0@ >= 2
goto_if_false @BAR_1940
if 
  $iBouncerAction == 1
goto_if_false @BAR_2139
$iDanceScore = 1
0@ = World.GetRandomCharInSphereNoBrain(12@, 13@, 14@, 50.0)
if 
  0@ > -1
goto_if_false @BAR_2139
1@ += 1
StreamedScript.StartNew(37, 0@, 1@)
StreamedScript.Stream(37)

:BAR_2139
goto @BAR_944

:BAR_2146
Streaming.RequestModel(172)
Streaming.RequestAnimation("BAR")
Streaming.RequestAnimation("DANCING")
if and
  Streaming.HasModelLoaded(172)
  Streaming.HasAnimationLoaded("BAR")
  Streaming.HasAnimationLoaded("DANCING")
goto_if_false @BAR_2212
return 
goto @BAR_2223

:BAR_2212
wait 0
goto @BAR_2146

:BAR_2223
return 

:BAR_2225
0@ = 0

:BAR_2232
Char.MarkAsNoLongerNeeded(10@(0@,2i))
Char.Delete(10@(0@,2i))
0@ += 1
  0@ >= 2
goto_if_false @BAR_2232
0@ = 0

:BAR_2278
if 
  6@(0@,4i) <> -1
goto_if_false @BAR_2309
Attractor.Clear(6@(0@,4i))

:BAR_2309
0@ += 1
  0@ >= 4
goto_if_false @BAR_2278
Streaming.MarkModelAsNoLongerNeeded(172)
Sequence.Clear(4@)
Sequence.Clear(5@)
Streaming.RemoveAnimation("BAR")
Streaming.RemoveAnimation("DANCING")
terminate_this_script 
terminate_this_script 

//-------------External script 29 (FOODBRAINS)---------------

:PSHOP
script_name 'PSHOP'
$iSetPizzaPanic = 0
switch_start 0@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @PSHOP_552 {caseNum1} 0 {caseLabel1} @PSHOP_81 {caseNum2} 1 {caseLabel2} @PSHOP_238 {caseNum3} 2 {caseLabel3} @PSHOP_395 {caseNum4} -1 {caseLabel4} @PSHOP_552 {caseNum5} -1 {caseLabel5} @PSHOP_552 {caseNum6} -1 {caseLabel6} @PSHOP_552 {caseNum7} -1 {caseLabel7} @PSHOP_552

:PSHOP_81
3@ = 377.3
4@ = -117.182
5@ = 1000.637
6@ = 180.0
7@ = 360.0
set_lvar_int_to_constant 11@ = 155
Streaming.RequestModel(11@)
Streaming.RequestModel(#PIZZAHIGH)
Streaming.RequestModel(#CJ_PIZZA_2)

:PSHOP_152
if 
  not Streaming.HasModelLoaded(11@)
goto_if_false @PSHOP_179
wait 0
goto @PSHOP_152

:PSHOP_179
if 
  not Streaming.HasModelLoaded(#PIZZAHIGH)
goto_if_false @PSHOP_205
wait 0
goto @PSHOP_179

:PSHOP_205
if 
  not Streaming.HasModelLoaded(#CJ_PIZZA_2)
goto_if_false @PSHOP_231
wait 0
goto @PSHOP_205

:PSHOP_231
goto @PSHOP_552

:PSHOP_238
3@ = 371.5365
4@ = -4.4935
5@ = 1000.859
6@ = 180.0
7@ = 360.0
set_lvar_int_to_constant 11@ = 167
Streaming.RequestModel(11@)
Streaming.RequestModel(#BURGERHIGH)
Streaming.RequestModel(#CJ_BURG_2)

:PSHOP_309
if 
  not Streaming.HasModelLoaded(11@)
goto_if_false @PSHOP_336
wait 0
goto @PSHOP_309

:PSHOP_336
if 
  not Streaming.HasModelLoaded(#BURGERHIGH)
goto_if_false @PSHOP_362
wait 0
goto @PSHOP_336

:PSHOP_362
if 
  not Streaming.HasModelLoaded(#CJ_BURG_2)
goto_if_false @PSHOP_388
wait 0
goto @PSHOP_362

:PSHOP_388
goto @PSHOP_552

:PSHOP_395
3@ = 378.4146
4@ = -65.8567
5@ = 1000.508
6@ = 180.0
7@ = 360.0
set_lvar_int_to_constant 11@ = 205
Streaming.RequestModel(11@)
Streaming.RequestModel(#BURGERHIGH)
Streaming.RequestModel(#CJ_BURG_2)

:PSHOP_466
if 
  not Streaming.HasModelLoaded(11@)
goto_if_false @PSHOP_493
wait 0
goto @PSHOP_466

:PSHOP_493
if 
  not Streaming.HasModelLoaded(#BURGERHIGH)
goto_if_false @PSHOP_519
wait 0
goto @PSHOP_493

:PSHOP_519
if 
  not Streaming.HasModelLoaded(#CJ_BURG_2)
goto_if_false @PSHOP_545
wait 0
goto @PSHOP_519

:PSHOP_545
goto @PSHOP_552

:PSHOP_552
8@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.StandStill(-1, -2)
Sequence.Close(8@)
9@ = Attractor.Add(3@, 4@, 5@, 6@, 7@, 8@)
10@ = Char.CreateAtAttractor(PedType.CivMale, 11@, 9@, 1466)
StreamedScript.StartNew(36, 10@, 9@)
StreamedScript.Stream(36)

:PSHOP_628
if 
  Player.IsPlaying($player1)
goto_if_false @PSHOP_873
$iAreaCode = Char.GetAreaVisible($scplayer)
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @PSHOP_684
gosub @PSHOP_884

:PSHOP_684
if 
  Char.IsShooting($scplayer)
goto_if_false @PSHOP_707
$iSetPizzaPanic = 1

:PSHOP_707
if 
  not Char.IsDead(10@)
goto_if_false @PSHOP_782
if 
  Player.IsTargetingChar($player1, 10@)
goto_if_false @PSHOP_756
$iSetPizzaPanic = 1
goto @PSHOP_782

:PSHOP_756
if 
  Char.HasBeenDamagedByChar(10@, $scplayer)
goto_if_false @PSHOP_782
$iSetPizzaPanic = 1

:PSHOP_782
if 
  $iSetPizzaPanic == 1
goto_if_false @PSHOP_873
3@, 4@, 5@ = Char.GetCoordinates($scplayer)
1@ = World.GetRandomCharInSphereNoBrain(3@, 4@, 5@, 20.0)
if 
  1@ > -1
goto_if_false @PSHOP_873
2@ += 1
StreamedScript.StartNew(37, 1@, 2@)
StreamedScript.Stream(37)

:PSHOP_873
wait 0
goto @PSHOP_628

:PSHOP_884
$iSetPizzaPanic = 0
Char.MarkAsNoLongerNeeded(10@)
Streaming.MarkModelAsNoLongerNeeded(155)
Streaming.MarkModelAsNoLongerNeeded(167)
Streaming.MarkModelAsNoLongerNeeded(205)
Streaming.MarkModelAsNoLongerNeeded(#PIZZAHIGH)
Streaming.MarkModelAsNoLongerNeeded(#BURGERHIGH)
Streaming.MarkModelAsNoLongerNeeded(#CJ_PIZZA_2)
Streaming.MarkModelAsNoLongerNeeded(#CJ_BURG_2)
Char.Delete(10@)
Attractor.Clear(9@)
Sequence.Clear(8@)
terminate_this_script 
terminate_this_script 

//-------------External script 30 (OTB_AMBIENCE)---------------

:OTBSHP
script_name 'OTBSHP'
if 
  $onmission == 0
goto_if_false @OTBSHP_36
$played_ryder1_before = 0

:OTBSHP_36
1@ = 1
Streaming.RequestModel(11)
Streaming.RequestModel(172)

:OTBSHP_52
if 
  not Streaming.HasModelLoaded(172)
goto_if_false @OTBSHP_79
wait 0
goto @OTBSHP_52

:OTBSHP_79
if 
  not Streaming.HasModelLoaded(11)
goto_if_false @OTBSHP_105
wait 0
goto @OTBSHP_79

:OTBSHP_105
2@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.StandStill(-1, -2)
Sequence.Close(2@)
3@ = Attractor.Add(820.3698, -0.3935, 1003.18, 270.0, 90.0, 2@)
4@ = Attractor.Add(820.133, 4.2015, 1003.18, 270.0, 90.0, 2@)
5@ = Attractor.Add(820.3185, 6.4021, 1003.18, 270.0, 90.0, 2@)
6@ = Attractor.Add(820.0, 2.0, 1003.0, 270.0, 90.0, 2@)
7@ = Char.CreateAtAttractor(PedType.CivFemale, 172, 3@, 1466)
8@ = Char.CreateAtAttractor(PedType.CivFemale, 11, 4@, 1466)
9@ = Char.CreateAtAttractor(PedType.CivFemale, 172, 5@, 1466)
10@ = Char.CreateAtAttractor(PedType.CivFemale, 11, 6@, 1466)
StreamedScript.StartNew(40, 7@, 3@)
StreamedScript.StartNew(40, 8@, 4@)
StreamedScript.StartNew(40, 9@, 5@)
StreamedScript.StartNew(40, 10@, 6@)
StreamedScript.Stream(40)

:OTBSHP_369
if 
  Player.IsPlaying($player1)
goto_if_false @OTBSHP_655
$iAreaCode = Char.GetAreaVisible($scplayer)
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @OTBSHP_425
goto @OTBSHP_666

:OTBSHP_425
if or
  Char.IsShooting($scplayer)
  Player.IsWantedLevelGreater($player1, $iWantedOnEntry)
goto_if_false @OTBSHP_456
$played_ryder1_before = 1

:OTBSHP_456
0@ = 0

:OTBSHP_463
if 
  not Char.IsDead(7@(0@,4i))
goto_if_false @OTBSHP_557
if and
  Player.IsTargetingChar($player1, 7@(0@,4i))
  not Char.IsCurrentWeapon($scplayer, WeaponType.AnyMelee)
goto_if_false @OTBSHP_527
$played_ryder1_before = 1
goto @OTBSHP_557

:OTBSHP_527
if 
  Char.HasBeenDamagedByChar(7@(0@,4i), $scplayer)
goto_if_false @OTBSHP_557
$played_ryder1_before = 1

:OTBSHP_557
0@ += 1
  0@ >= 4
goto_if_false @OTBSHP_463
if 
  $played_ryder1_before == 1
goto_if_false @OTBSHP_655
0@ = World.GetRandomCharInSphereNoBrain(11@, 12@, 13@, 20.0)
if 
  0@ > -1
goto_if_false @OTBSHP_655
1@ += 1
StreamedScript.StartNew(37, 0@, 1@)
StreamedScript.Stream(37)

:OTBSHP_655
wait 0
goto @OTBSHP_369

:OTBSHP_666
0@ = 0

:OTBSHP_673
Char.MarkAsNoLongerNeeded(7@(0@,4i))
Char.Delete(7@(0@,4i))
Attractor.Clear(3@(0@,4i))
0@ += 1
  0@ >= 4
goto_if_false @OTBSHP_673
Streaming.MarkModelAsNoLongerNeeded(172)
Streaming.MarkModelAsNoLongerNeeded(11)
Sequence.Clear(2@)
terminate_this_script 
terminate_this_script 

//-------------External script 31 (STRIP_AMBIENCE)---------------

:STRIP
script_name 'STRIP'
if 
  $onmission == 0
goto_if_false @STRIP_43
$iSetBarPanic = 0
$iSetCasinoPanic = 0

:STRIP_43
0@ = 0
if 
  0@ == 1
goto_if_false @STRIP_114
$iLapDancesWatched = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)
$iStripperPed = Object.Create(0, 0.0, 0.0, 0.0)

:STRIP_114
1@ = 1
$iPrintStripperHelp = 0
$iSetSTRIPPanic = 0
gosub @STRIP_2509
7@ = Sequence.Open()
Task.PlayAnim(-1, "BARSERVE_IN", "BAR", 4.0, False, False, False, False, -1)
Task.PlayAnim(-1, "BARSERVE_LOOP", "BAR", 4.0, True, False, False, False, 10000)
Sequence.Close(7@)
8@ = Sequence.Open()
Task.PlayAnim(-1, "BARSERVE_BOTTLE", "BAR", 4.0, False, False, False, False, -1)
Sequence.Close(8@)
9@ = Sequence.Open()
Task.WanderStandard(-1)
Sequence.Close(9@)
if 
  Player.IsPlaying($player1)
goto_if_false @STRIP_881
Player.ResetNumOfModelsKilled($player1)
v$5310 = Char.GetNameOfEntryExitUsed($scplayer)
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_650
10@ = Attractor.Add(1214.859, -15.4637, 999.9219, 0.0, 180.0, 7@)
11@ = Attractor.Add(1217.084, -15.4657, 999.9219, 0.0, 180.0, 7@)
12@ = Attractor.Add(1213.234, -15.4087, 999.9219, 0.0, 180.0, 7@)
13@ = Attractor.Add(1214.085, -15.4395, 999.9219, 0.0, 180.0, 8@)
16@ = Char.CreateAtAttractor(PedType.CivFemale, 172, 10@, 1466)
StreamedScript.StartNew(38, 16@, 10@, 11@, 12@, 13@, 2.5, 15.0, 1)
StreamedScript.Stream(38)
14@ = Attractor.Add(1220.042, -15.3365, 999.9219, 341.7, -341.7, 9@)
15@ = Attractor.Add(1222.008, 4.4324, 999.9219, 93.3, -93.3, 9@)
17@ = Char.CreateAtAttractor(PedType.CivMale, 163, 14@, 1502)
18@ = Char.CreateAtAttractor(PedType.CivMale, 164, 15@, 1502)
StreamedScript.StartNew(39, 17@)
StreamedScript.StartNew(39, 18@)
StreamedScript.Stream(39)

:STRIP_650
if 
  is_var_text_label16_equal_to_text_label v$5310 == "STRIP2"
goto_if_false @STRIP_881
10@ = -1
11@ = Attractor.Add(1206.2, -30.6012, 999.9531, 180.0, 0.0, 7@)
12@ = -1
13@ = Attractor.Add(1206.2, -29.1414, 999.9531, 270.0, 0.0, 8@)
16@ = Char.CreateAtAttractor(PedType.CivFemale, 172, 11@, 1466)
StreamedScript.StartNew(38, 16@, 11@, 11@, 11@, 13@, 1.5, 15.0, 1)
StreamedScript.Stream(38)
14@ = Attractor.Add(1216.871, -24.1246, 999.9531, 146.8, -146.8, 9@)
15@ = -1
17@ = Char.CreateAtAttractor(PedType.CivMale, 163, 14@, 1502)
18@ = -1
StreamedScript.StartNew(39, 17@)
StreamedScript.Stream(39)

:STRIP_881
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @STRIP_2502
$iAreaCode = Char.GetAreaVisible($scplayer)
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @STRIP_941
goto @STRIP_2586

:STRIP_941
if 
  4@ > 0
goto_if_false @STRIP_973
gosub @STRIP_2766
goto @STRIP_881

:STRIP_973
if 
  $iPrintStripperHelp <> 0
goto_if_false @STRIP_1042
if 
  not Char.IsDead($iLapDancesWatched)
goto_if_false @STRIP_1021
gosub @STRIP_5426
goto @STRIP_1042

:STRIP_1021
Player.SetControl($player1, True)
$iPrintStripperHelp = 0
$iLapDancesWatched = -1

:STRIP_1042
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_1326
if and
  $iSetBarPanic == 0
  $iSetCasinoPanic == 0
goto_if_false @STRIP_1326
if 
  Char.LocateStoppedOnFoot3D($scplayer, 1204.85, 11.8, 999.9219, 1.0, 1.0, 1.0, True)
goto_if_false @STRIP_1312
if 
  Player.IsScoreGreater($player1, 99)
goto_if_false @STRIP_1298
if 
  2@ == 0
goto_if_false @STRIP_1291
3@ = 1
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @STRIP_1291
Player.AddScore($player1, -100)
Stat.IncrementFloat(StatId.StripClubBudget, 100.0)
2@ = 1
3@ = 0
19@ = 1204.326
20@ = 17.709
21@ = 998.925
22@ = 0.0
Camera.DoFade(500, Fade.Out)
4@ = 1
gosub @STRIP_2766

:STRIP_1291
goto @STRIP_1305

:STRIP_1298
3@ = 2

:STRIP_1305
goto @STRIP_1326

:STRIP_1312
3@ = 0
2@ = 0

:STRIP_1326
if 
  is_var_text_label16_equal_to_text_label v$5310 == "STRIP2"
goto_if_false @STRIP_1624
if and
  $iSetBarPanic == 0
  $iSetCasinoPanic == 0
goto_if_false @STRIP_1624
if 
  Char.LocateStoppedOnFoot3D($scplayer, 1207.59, -40.646, 999.9531, 1.0, 1.0, 1.0, True)
goto_if_false @STRIP_1610
if 
  Player.IsScoreGreater($player1, 99)
goto_if_false @STRIP_1596
if 
  2@ == 0
goto_if_false @STRIP_1589
3@ = 1
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @STRIP_1589
Player.AddScore($player1, -100)
22@ = Stat.GetFloat(StatId.StripClubBudget)
22@ += 100.0
22@ = Stat.GetFloat(StatId.StripClubBudget)
2@ = 1
3@ = 0
19@ = 1207.366
20@ = -43.595
21@ = 998.925
22@ = 0.0
Camera.DoFade(500, Fade.Out)
4@ = 1
gosub @STRIP_2766

:STRIP_1589
goto @STRIP_1603

:STRIP_1596
3@ = 2

:STRIP_1603
goto @STRIP_1624

:STRIP_1610
3@ = 0
2@ = 0

:STRIP_1624
if and
  $iSetBarPanic == 0
  $iSetCasinoPanic == 0
goto_if_false @STRIP_1784
if 
  3@ == 1
goto_if_false @STRIP_1685
Text.PrintHelpForever('STR_01')
goto @STRIP_1777

:STRIP_1685
if 
  3@ == 2
goto_if_false @STRIP_1721
Text.PrintHelpForever('STR_03')
goto @STRIP_1777

:STRIP_1721
if 
  $iSetSTRIPPanic > 0
goto_if_false @STRIP_1757
Text.PrintHelpForever('STR_00')
goto @STRIP_1777

:STRIP_1757
if 
  4@ == 0
goto_if_false @STRIP_1777
Text.ClearHelp

:STRIP_1777
goto @STRIP_1786

:STRIP_1784
Text.ClearHelp

:STRIP_1786
if 
  Char.IsShooting($scplayer)
goto_if_false @STRIP_1816
$iSetBarPanic = 1
$iSetCasinoPanic = 1

:STRIP_1816
if 
  Player.IsWantedLevelGreater($player1, $iWantedOnEntry)
goto_if_false @STRIP_1849
$iSetBarPanic = 1
$iSetCasinoPanic = 1

:STRIP_1849
0@ = Player.GetTotalNumberOfPedsKilled($player1)
if 
  0@ > 0
goto_if_false @STRIP_1882
$iSetCasinoPanic = 1

:STRIP_1882
0@ = 0

:STRIP_1889
if 
  not Char.IsDead(16@(0@,3i))
goto_if_false @STRIP_1997
if and
  Player.IsTargetingChar($player1, 16@(0@,3i))
  not Char.IsCurrentWeapon($scplayer, WeaponType.AnyMelee)
goto_if_false @STRIP_1960
$iSetBarPanic = 1
$iSetCasinoPanic = 1
goto @STRIP_1997

:STRIP_1960
if 
  Char.HasBeenDamagedByChar(16@(0@,3i), $scplayer)
goto_if_false @STRIP_1997
$iSetBarPanic = 1
$iSetCasinoPanic = 1

:STRIP_1997
0@ += 1
  0@ >= 3
goto_if_false @STRIP_1889
if 
  $iSetBarPanic == 1
goto_if_false @STRIP_2102
$iSetCasinoPanic = 1
0@ = World.GetRandomCharInSphereNoBrain(19@, 20@, 21@, 50.0)
if 
  0@ > -1
goto_if_false @STRIP_2102
1@ += 1
StreamedScript.StartNew(37, 0@, 1@)
StreamedScript.Stream(37)

:STRIP_2102
if 
  $iSetCasinoPanic == 1
goto_if_false @STRIP_2502
if and
  Char.IsDead(17@)
  14@ <> -1
goto_if_false @STRIP_2338
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_2198
19@ = 1220.042
20@ = -15.3365
21@ = 999.9219

:STRIP_2198
if 
  is_var_text_label16_equal_to_text_label v$5310 == "STRIP2"
goto_if_false @STRIP_2252
19@ = 1216.871
20@ = -24.1246
21@ = 999.9531

:STRIP_2252
if and
  not Char.LocateAnyMeans3D($scplayer, 19@, 20@, 21@, 8.0, 8.0, 8.0, False)
  not Camera.IsPointOnScreen(19@, 20@, 21@, 3.0)
goto_if_false @STRIP_2338
17@ = Char.CreateAtAttractor(PedType.CivMale, 163, 14@, 1502)
StreamedScript.StartNew(39, 17@)
StreamedScript.Stream(39)

:STRIP_2338
if and
  Char.IsDead(18@)
  15@ <> -1
goto_if_false @STRIP_2502
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_2416
19@ = 1222.008
20@ = 4.4324
21@ = 999.9219

:STRIP_2416
if and
  not Char.LocateAnyMeans3D($scplayer, 19@, 20@, 21@, 8.0, 8.0, 8.0, False)
  not Camera.IsPointOnScreen(19@, 20@, 21@, 3.0)
goto_if_false @STRIP_2502
18@ = Char.CreateAtAttractor(PedType.CivMale, 164, 15@, 1502)
StreamedScript.StartNew(39, 18@)
StreamedScript.Stream(39)

:STRIP_2502
goto @STRIP_881

:STRIP_2509
Streaming.RequestModel(163)
Streaming.RequestModel(164)
Streaming.RequestModel(172)
Streaming.RequestAnimation("BAR")
if and
  Streaming.HasModelLoaded(163)
  Streaming.HasModelLoaded(164)
  Streaming.HasModelLoaded(172)
  Streaming.HasAnimationLoaded("BAR")
goto_if_false @STRIP_2573
return 
goto @STRIP_2584

:STRIP_2573
wait 0
goto @STRIP_2509

:STRIP_2584
return 

:STRIP_2586
0@ = 0

:STRIP_2593
Char.MarkAsNoLongerNeeded(16@(0@,3i))
Char.Delete(16@(0@,3i))
0@ += 1
  0@ >= 3
goto_if_false @STRIP_2593
0@ = 0

:STRIP_2639
if 
  10@(0@,6i) <> -1
goto_if_false @STRIP_2670
Attractor.Clear(10@(0@,6i))

:STRIP_2670
0@ += 1
  0@ >= 6
goto_if_false @STRIP_2639
Streaming.MarkModelAsNoLongerNeeded(172)
Streaming.MarkModelAsNoLongerNeeded(163)
Streaming.MarkModelAsNoLongerNeeded(164)
Sequence.Clear(7@)
Sequence.Clear(8@)
Streaming.RemoveAnimation("STRIP")
Streaming.RemoveAnimation("BAR")
$iSetCasinoPanic = 0
Text.ClearHelp
if 
  Player.IsPlaying($player1)
goto_if_false @STRIP_2764
Player.SetControl($player1, True)

:STRIP_2764
terminate_this_script 

:STRIP_2766
switch_start 4@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @STRIP_3923 {caseNum1} 1 {caseLabel1} @STRIP_2829 {caseNum2} 2 {caseLabel2} @STRIP_3053 {caseNum3} 3 {caseLabel3} @STRIP_3194 {caseNum4} 4 {caseLabel4} @STRIP_3320 {caseNum5} 5 {caseLabel5} @STRIP_3653 {caseNum6} 6 {caseLabel6} @STRIP_3887 {caseNum7} -1 {caseLabel7} @STRIP_3923

:STRIP_2829
if 
  not Camera.GetFadingStatus
goto_if_false @STRIP_3046
Text.ClearHelp
Player.SetControl($player1, False)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Hud.Display(False)
Hud.DisplayRadar(False)
Char.ClearTasksImmediately($scplayer)
Char.SetCollision($scplayer, False)
Char.SetCoordinates($scplayer, 19@, 20@, 21@)
Char.SetHeading($scplayer, 22@)
Camera.SetInFrontOfPlayer
if 
  $iThrowMoneyState == 0
goto_if_false @STRIP_2956
set_lvar_int_to_constant 5@ = 256
set_lvar_text_label16 28@v = "LAPDAN1"
$iThrowMoneyState += 1
goto @STRIP_3039

:STRIP_2956
if 
  $iThrowMoneyState == 1
goto_if_false @STRIP_3010
set_lvar_int_to_constant 5@ = 257
set_lvar_text_label16 28@v = "LAPDAN2"
$iThrowMoneyState += 1
goto @STRIP_3039

:STRIP_3010
set_lvar_int_to_constant 5@ = 246
set_lvar_text_label16 28@v = "LAPDAN3"
$iThrowMoneyState = 0

:STRIP_3039
4@ += 1

:STRIP_3046
goto @STRIP_3923

:STRIP_3053
if 
  not Streaming.HasAnimationLoaded(28@v)
goto_if_false @STRIP_3081
Streaming.RequestAnimation(28@v)
goto @STRIP_3187

:STRIP_3081
if 
  not Streaming.HasModelLoaded(5@)
goto_if_false @STRIP_3109
Streaming.RequestModel(5@)
goto @STRIP_3187

:STRIP_3109
19@, 20@, 21@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, -1.0, -1.0)
22@ = Char.GetHeading($scplayer)
5@ = Char.Create(PedType.CivFemale, 5@, 19@, 20@, 21@)
Char.SetCollision(5@, False)
Char.SetHeading(5@, 22@)
4@ += 1

:STRIP_3187
goto @STRIP_3923

:STRIP_3194
Task.PlayAnimNonInterruptable($scplayer, "LAPDAN_P", 28@v, 1000.0, False, False, False, True, -1)
if 
  not Char.IsDead(5@)
goto_if_false @STRIP_3290
Task.PlayAnimNonInterruptable(5@, "LAPDAN_D", 28@v, 1000.0, False, False, False, True, -1)
6@ = -1
gosub @STRIP_3925

:STRIP_3290
Camera.DoFade(1500, Fade.In)
TIMERB = 0
Text.ClearHelp
4@ += 1
goto @STRIP_3923

:STRIP_3320
if 
  not Camera.GetFadingStatus
goto_if_false @STRIP_3646
if 
  not Char.IsDead(5@)
goto_if_false @STRIP_3639
if 
  Char.IsPlayingAnim($scplayer, "LAPDAN_P")
goto_if_false @STRIP_3432
23@ = Char.GetAnimTotalTime($scplayer, "LAPDAN_P")
cset_lvar_int_to_lvar_float 25@ =# 23@
25@ -= 800
set_lvar_int_to_lvar_int 26@ = 25@
26@ -= 2200
goto @STRIP_3439

:STRIP_3432
25@ = 0

:STRIP_3439
if and
  TIMERB > 2500
  2600 > TIMERB
goto_if_false @STRIP_3499
if 
  not Text.IsThisHelpMessageBeingDisplayed('STR_02')
goto_if_false @STRIP_3499
Text.PrintHelp('STR_02')

:STRIP_3499
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 25@
goto_if_false @STRIP_3539
Camera.DoFade(500, Fade.Out)
4@ += 1
goto @STRIP_3923

:STRIP_3539
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
  TIMERA >= 500
  TIMERB > 2500
  is_int_lvar_greater_than_int_lvar 26@ > TIMERB
goto_if_false @STRIP_3594
gosub @STRIP_3925
TIMERA = 0

:STRIP_3594
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @STRIP_3632
Camera.DoFade(500, Fade.Out)
4@ += 1
goto @STRIP_3923

:STRIP_3632
goto @STRIP_3646

:STRIP_3639
4@ += 1

:STRIP_3646
goto @STRIP_3923

:STRIP_3653
if 
  not Camera.GetFadingStatus
goto_if_false @STRIP_3880
if 
  not Char.IsDead(5@)
goto_if_false @STRIP_3873
Text.ClearHelp
0@ = Char.GetModel(5@)
Streaming.MarkModelAsNoLongerNeeded(0@)
Streaming.RemoveAnimation(28@v)
Char.Delete(5@)
Char.ClearTasksImmediately($scplayer)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Hud.Display(True)
Hud.DisplayRadar(True)
Char.ClearTasksImmediately($scplayer)
Char.SetCollision($scplayer, True)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_3798
Char.SetCoordinates($scplayer, 1204.991, 12.6603, 999.9219)
Char.SetHeading($scplayer, 180.0)

:STRIP_3798
if 
  is_var_text_label16_equal_to_text_label v$5310 == "STRIP2"
goto_if_false @STRIP_3852
Char.SetCoordinates($scplayer, 1207.59, -40.646, 999.9531)
Char.SetHeading($scplayer, 360.0)

:STRIP_3852
Camera.DoFade(500, Fade.In)
4@ += 1
goto @STRIP_3880

:STRIP_3873
4@ += 1

:STRIP_3880
goto @STRIP_3923

:STRIP_3887
if 
  not Camera.GetFadingStatus
goto_if_false @STRIP_3916
Player.SetControl($player1, True)
4@ = 0
return 

:STRIP_3916
goto @STRIP_3923

:STRIP_3923
return 

:STRIP_3925
switch_start 6@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @STRIP_5173 {caseNum1} -1 {caseLabel1} @STRIP_3988 {caseNum2} 0 {caseLabel2} @STRIP_4225 {caseNum3} 1 {caseLabel3} @STRIP_4462 {caseNum4} 2 {caseLabel4} @STRIP_4699 {caseNum5} 3 {caseLabel5} @STRIP_4936 {caseNum6} -1 {caseLabel6} @STRIP_5417 {caseNum7} -1 {caseLabel7} @STRIP_5417

:STRIP_3988
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_4119
19@ = 1204.562
20@ = 15.6486
21@ = 1001.333
Camera.SetFixedPosition(19@, 20@, 21@, 0.0, 0.0, 0.0)
19@ = 1204.437
20@ = 16.5805
21@ = 1000.992
Camera.PointAtPoint(19@, 20@, 21@, SwitchType.JumpCut)
goto @STRIP_4218

:STRIP_4119
19@ = 1208.32
20@ = -45.8672
21@ = 1001.066
Camera.SetFixedPosition(19@, 20@, 21@, 0.0, 0.0, 0.0)
19@ = 1207.847
20@ = -44.9985
21@ = 1000.919
Camera.PointAtPoint(19@, 20@, 21@, SwitchType.JumpCut)

:STRIP_4218
goto @STRIP_5417

:STRIP_4225
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_4356
19@ = 1202.654
20@ = 16.7123
21@ = 1001.302
Camera.SetFixedPosition(19@, 20@, 21@, 0.0, 0.0, 0.0)
19@ = 1203.589
20@ = 16.9879
21@ = 1001.08
Camera.PointAtPoint(19@, 20@, 21@, SwitchType.Interpolation)
goto @STRIP_4455

:STRIP_4356
19@ = 1205.649
20@ = -44.5486
21@ = 1001.344
Camera.SetFixedPosition(19@, 20@, 21@, 0.0, 0.0, 0.0)
19@ = 1206.541
20@ = -44.2188
21@ = 1001.035
Camera.PointAtPoint(19@, 20@, 21@, SwitchType.Interpolation)

:STRIP_4455
goto @STRIP_5417

:STRIP_4462
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_4593
19@ = 1203.529
20@ = 18.3118
21@ = 1001.391
Camera.SetFixedPosition(19@, 20@, 21@, 0.0, 0.0, 0.0)
19@ = 1204.11
20@ = 17.5609
21@ = 1001.078
Camera.PointAtPoint(19@, 20@, 21@, SwitchType.Interpolation)
goto @STRIP_4692

:STRIP_4593
19@ = 1206.434
20@ = -43.1812
21@ = 1001.705
Camera.SetFixedPosition(19@, 20@, 21@, 0.0, 0.0, 0.0)
19@ = 1207.044
20@ = -43.796
21@ = 1001.204
Camera.PointAtPoint(19@, 20@, 21@, SwitchType.Interpolation)

:STRIP_4692
goto @STRIP_5417

:STRIP_4699
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_4830
19@ = 1204.712
20@ = 18.3221
21@ = 1000.941
Camera.SetFixedPosition(19@, 20@, 21@, 0.0, 0.0, 0.0)
19@ = 1204.409
20@ = 17.369
21@ = 1000.95
Camera.PointAtPoint(19@, 20@, 21@, SwitchType.Interpolation)
goto @STRIP_4929

:STRIP_4830
19@ = 1207.472
20@ = -43.1042
21@ = 1001.054
Camera.SetFixedPosition(19@, 20@, 21@, 0.0, 0.0, 0.0)
19@ = 1207.325
20@ = -44.0841
21@ = 1000.919
Camera.PointAtPoint(19@, 20@, 21@, SwitchType.Interpolation)

:STRIP_4929
goto @STRIP_5417

:STRIP_4936
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_5067
19@ = 1205.856
20@ = 17.3141
21@ = 1002.26
Camera.SetFixedPosition(19@, 20@, 21@, 0.0, 0.0, 0.0)
19@ = 1205.096
20@ = 17.1228
21@ = 1001.64
Camera.PointAtPoint(19@, 20@, 21@, SwitchType.Interpolation)
goto @STRIP_5166

:STRIP_5067
19@ = 1207.846
20@ = -43.4954
21@ = 1001.964
Camera.SetFixedPosition(19@, 20@, 21@, 0.0, 0.0, 0.0)
19@ = 1207.427
20@ = -43.9585
21@ = 1001.184
Camera.PointAtPoint(19@, 20@, 21@, SwitchType.Interpolation)

:STRIP_5166
goto @STRIP_5417

:STRIP_5173
6@ = -1
if 
  is_var_text_label16_equal_to_text_label v$5310 == "LASTRIP"
goto_if_false @STRIP_5311
19@ = 1204.562
20@ = 15.6486
21@ = 1001.333
Camera.SetFixedPosition(19@, 20@, 21@, 0.0, 0.0, 0.0)
19@ = 1204.437
20@ = 16.5805
21@ = 1000.992
Camera.PointAtPoint(19@, 20@, 21@, SwitchType.Interpolation)
goto @STRIP_5410

:STRIP_5311
19@ = 1207.978
20@ = -46.1248
21@ = 1001.215
Camera.SetFixedPosition(19@, 20@, 21@, 0.0, 0.0, 0.0)
19@ = 1207.757
20@ = -45.1702
21@ = 1001.016
Camera.PointAtPoint(19@, 20@, 21@, SwitchType.Interpolation)

:STRIP_5410
goto @STRIP_5417

:STRIP_5417
6@ += 1
return 

:STRIP_5426
switch_start $iPrintStripperHelp {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @STRIP_5877 {caseNum1} 1 {caseLabel1} @STRIP_5489 {caseNum2} 2 {caseLabel2} @STRIP_5518 {caseNum3} 3 {caseLabel3} @STRIP_5598 {caseNum4} 4 {caseLabel4} @STRIP_5770 {caseNum5} -1 {caseLabel5} @STRIP_5877 {caseNum6} -1 {caseLabel6} @STRIP_5877 {caseNum7} -1 {caseLabel7} @STRIP_5877

:STRIP_5489
Player.SetControl($player1, False)
Task.TurnCharToFaceChar($scplayer, $iLapDancesWatched)
$iPrintStripperHelp = 2
goto @STRIP_5877

:STRIP_5518
27@ = Char.GetScriptTaskStatus($scplayer, 1593)
if 
  is_int_lvar_equal_to_constant 27@ == 7
goto_if_false @STRIP_5591
Task.PlayAnimNonInterruptable($scplayer, "PLY_CASH", "STRIP", 4.0, False, False, False, False, 0)
$iPrintStripperHelp = 3

:STRIP_5591
goto @STRIP_5877

:STRIP_5598
if 
  Char.IsPlayingAnim($scplayer, "PLY_CASH")
goto_if_false @STRIP_5756
24@ = Char.GetAnimCurrentTime($scplayer, "PLY_CASH")
if and
  24@ >= 0.35
  1.0 > 24@
goto_if_false @STRIP_5749
19@, 20@, 21@ = Char.GetOffsetInWorldCoords($iLapDancesWatched, 0.0, 0.5, -0.5)
$iStripperPed = Object.CreateNoOffset(#MONEY, 19@, 20@, 21@)
Object.SetCollision($iStripperPed, False)
Player.AddScore($player1, -20)
Stat.IncrementFloat(StatId.StripClubBudget, 20.0)
$iPrintStripperHelp = 4

:STRIP_5749
goto @STRIP_5763

:STRIP_5756
$iPrintStripperHelp = 4

:STRIP_5763
goto @STRIP_5877

:STRIP_5770
if 
  Char.IsPlayingAnim($scplayer, "PLY_CASH")
goto_if_false @STRIP_5856
24@ = Char.GetAnimCurrentTime($scplayer, "PLY_CASH")
if 
  24@ >= 1.0
goto_if_false @STRIP_5849
Player.SetControl($player1, True)
$iPrintStripperHelp = 0

:STRIP_5849
goto @STRIP_5870

:STRIP_5856
Player.SetControl($player1, True)
$iPrintStripperHelp = 0

:STRIP_5870
goto @STRIP_5877

:STRIP_5877
return 
terminate_this_script 

//-------------External script 32 (PLANES)---------------

:PLANES
script_name 'PLANES'
set_var_text_label s$pl_plane[1] = 'PLA_9'
set_var_text_label s$pl_plane[2] = 'PLA_3'
set_var_text_label s$pl_plane[3] = 'PLA_4'
set_var_text_label s$pl_plane[4] = 'PLA_5'
set_var_text_label s$pl_plane[5] = 'PLA_6'
set_var_text_label s$pl_plane[6] = 'PLA_7'
set_var_text_label s$pl_plane[7] = 'PLA_8'
$9495 = 0
$pl_city_open = 0
$pl_which_city_select = 0
$pl_which_car_recording = 500
$pl_ticket_price = 0
$pl_players_money = 0
$pl_denied_flag = 0
$pl_control_flag = 0
$pl_game_timer_start = 0
$pl_game_timer_end = 0
$pl_game_timer_diff = 0
$pl_which_recording = 0
$pl_has_player_skipped = 0
$pl_undercarriage_flag = 0
$pl_undercarriage_up_time = 0
$pl_plane_heading = 0.0
$pl_print_flag_11 = 0.0
$pl_playerx = 0.0
$pl_playery = 0.0
$pl_playerz = 0.0
$pl_player_heading = 0.0
$pl_planex = 0.0
$pl_planey = 0.0
$pl_planez = 0.0
$pl_undercarriage_down_time = 0
$pl_skip_in_how_much = 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_342
goto @PLANES_3712

:PLANES_342
Player.SetControl($player1, False)
set_deatharrest_state 0
Clock.Store
$9495 = Clock.GetCurrentDayOfWeek()
if 
  $9495 == 7
goto_if_false @PLANES_392
$9495 = 1
goto @PLANES_399

:PLANES_392
$9495 += 1

:PLANES_399
$pl_days_flag = Stat.GetInt(StatId.CitiesPassed)
gosub @PLANES_3818
Hud.SwitchWidescreen(False)
Camera.SetFadingColor(0, 0, 0)
Text.ClearPrints
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_455
goto @PLANES_3712

:PLANES_455
Camera.DoFade(500, Fade.Out)

:PLANES_462
if 
  Camera.GetFadingStatus
goto_if_false @PLANES_509
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_502
goto @PLANES_3712

:PLANES_502
goto @PLANES_462

:PLANES_509
Txd.LoadDictionary('LD_PLAN')
Txd.LoadSprite(1, "AIRLOGO")
Txd.LoadSprite(2, "TVCORN")
Txd.LoadSprite(3, "TVBASE")
Txd.LoadSprite(4, "BLKDOT")
Streaming.LoadAllModelsNow
Text.ClearHelp
Text.ClearPrints
Text.UseCommands(True)
Hud.Display(False)
Hud.DisplayRadar(False)
Stat.ShowUpdateStats(False)
Camera.DoFade(500, Fade.In)
gosub @PLANES_4363

:PLANES_605
if 
  Camera.GetFadingStatus
goto_if_false @PLANES_659
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_645
goto @PLANES_3712

:PLANES_645
gosub @PLANES_4363
goto @PLANES_605

:PLANES_659
gosub @PLANES_4363

:PLANES_666
wait 0
gosub @PLANES_4363
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_700
goto @PLANES_3712

:PLANES_700
Clock.Restore
if 
  $pl_days_flag > 1
goto_if_false @PLANES_805
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  -100 > $LStickX
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @PLANES_767
$pl_city_open = 0

:PLANES_767
if or
  $LStickX > 100
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @PLANES_798
$pl_city_open = 1

:PLANES_798
goto @PLANES_812

:PLANES_805
$pl_city_open = 0

:PLANES_812
if 
  $pl_days_flag > 0
goto_if_false @PLANES_1281
if 
  $pl_denied_flag == 0
goto_if_false @PLANES_879
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @PLANES_879
$pl_players_money = 0
$pl_denied_flag = 1

:PLANES_879
if 
  $pl_denied_flag == 1
goto_if_false @PLANES_921
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @PLANES_921
$pl_denied_flag = 2

:PLANES_921
if 
  $pl_denied_flag == 2
goto_if_false @PLANES_1134
$pl_ticket_price = Player.StoreScore($player1)
if 
  is_int_var_greater_or_equal_to_int_var $pl_ticket_price >= $pl_which_car_recording
goto_if_false @PLANES_1069
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1083)
gosub @PLANES_4363
Camera.DoFade(500, Fade.Out)

:PLANES_994
if 
  Camera.GetFadingStatus
goto_if_false @PLANES_1055
gosub @PLANES_4363
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_1041
goto @PLANES_3712

:PLANES_1041
gosub @PLANES_4363
goto @PLANES_994

:PLANES_1055
goto @PLANES_1437
goto @PLANES_1134

:PLANES_1069
if 
  $pl_players_money == 0
goto_if_false @PLANES_1134
$pl_control_flag = Clock.GetGameTimer()
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1085)
$pl_players_money = 1
$pl_denied_flag = 0

:PLANES_1134
$pl_game_timer_start = Clock.GetGameTimer()
set_var_int_to_var_int $pl_game_timer_end = $pl_game_timer_start
sub_int_var_from_int_var $pl_game_timer_end -= $pl_control_flag
if 
  5000 > $pl_game_timer_end
goto_if_false @PLANES_1281
gosub @PLANES_8014
Text.SetScale(0.41, 1.84)
Text.SetColor(255, 255, 255, 255)
if or
  is_int_var_equal_to_constant $current_Language == 3
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_1260
Text.Display(40.0, 337.0, 'SHOPNO')
goto @PLANES_1281

:PLANES_1260
Text.Display(93.0, 337.0, 'SHOPNO')

:PLANES_1281
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @PLANES_1430
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1085)
gosub @PLANES_4363
Camera.DoFade(500, Fade.Out)

:PLANES_1326
if 
  Camera.GetFadingStatus
goto_if_false @PLANES_1387
gosub @PLANES_4363
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_1373
goto @PLANES_3712

:PLANES_1373
gosub @PLANES_4363
goto @PLANES_1326

:PLANES_1387
gosub @PLANES_3818
Char.SetCoordinates($scplayer, $pl_print_flag_11, $pl_playerx, $pl_playery)
Char.SetHeading($scplayer, $pl_playerz)
Camera.DoFade(500, Fade.In)
goto @PLANES_3712

:PLANES_1430
goto @PLANES_666

:PLANES_1437
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_1460
goto @PLANES_3712

:PLANES_1460
Clock.SetTimeOneDayForward
Player.AddScore($player1, -500)
Txd.Remove
Streaming.RequestModel(577)
Streaming.RequestModel(371)
Streaming.LoadAllModelsNow
Game.AllowPauseInWidescreen(True)
gosub @PLANES_3818
Streaming.RequestCollision($pl_player_heading, $pl_planex)
World.ClearArea($pl_player_heading, $pl_planex, $pl_planey, 100.0, True)
$iPlayerMoney = Car.Create(577, $pl_player_heading, $pl_planex, $pl_planey)
Car.SetHeading($iPlayerMoney, $pl_planez)
Char.WarpIntoCar($scplayer, $iPlayerMoney)
Streaming.LoadScene($pl_player_heading, $pl_planex, $pl_planey)
Hud.SwitchWidescreen(True)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @PLANES_1709
if 
  $pl_city_open == 0
goto_if_false @PLANES_1650
Clock.SetTimeOfDay(10, 30)
$pl_plane_heading = 9500.0
$pl_undercarriage_flag = 20000
$pl_undercarriage_up_time = 150000
$pl_game_timer_diff = 42

:PLANES_1650
if 
  $pl_city_open == 1
goto_if_false @PLANES_1709
Clock.SetTimeOfDay(17, 50)
$pl_plane_heading = 5000.0
$pl_undercarriage_flag = 30000
$pl_undercarriage_up_time = 110000
$pl_game_timer_diff = 46

:PLANES_1709
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @PLANES_1845
if 
  $pl_city_open == 0
goto_if_false @PLANES_1786
Clock.SetTimeOfDay(11, 20)
$pl_plane_heading = 6000.0
$pl_undercarriage_flag = 20000
$pl_undercarriage_up_time = 120000
$pl_game_timer_diff = 49

:PLANES_1786
if 
  $pl_city_open == 1
goto_if_false @PLANES_1845
Clock.SetTimeOfDay(14, 40)
$pl_plane_heading = 8000.0
$pl_undercarriage_flag = 20000
$pl_undercarriage_up_time = 160000
$pl_game_timer_diff = 44

:PLANES_1845
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @PLANES_1981
if 
  $pl_city_open == 0
goto_if_false @PLANES_1922
Clock.SetTimeOfDay(19, 10)
$pl_plane_heading = 6600.0
$pl_undercarriage_flag = 20000
$pl_undercarriage_up_time = 120000
$pl_game_timer_diff = 48

:PLANES_1922
if 
  $pl_city_open == 1
goto_if_false @PLANES_1981
Clock.SetTimeOfDay(14, 30)
$pl_plane_heading = 3800.0
$pl_undercarriage_flag = 20000
$pl_undercarriage_up_time = 70000
$pl_game_timer_diff = 43

:PLANES_1981
Streaming.RequestCarRecording($pl_game_timer_diff)

:PLANES_1986
if 
  not Streaming.HasCarRecordingBeenLoaded($pl_game_timer_diff)
goto_if_false @PLANES_2036
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_2029
goto @PLANES_3712

:PLANES_2029
goto @PLANES_1986

:PLANES_2036
$pl_control_flag = Clock.GetGameTimer()
$pl_denied_flag = 0
Camera.DoFade(500, Fade.In)

:PLANES_2055
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_2082
goto @PLANES_3712

:PLANES_2082
if 
  Player.IsPlaying($player1)
goto_if_false @PLANES_2103
Player.ClearWantedLevel($player1)

:PLANES_2103
$pl_game_timer_start = Clock.GetGameTimer()
set_var_int_to_var_int $pl_game_timer_end = $pl_game_timer_start
sub_int_var_from_int_var $pl_game_timer_end -= $pl_control_flag
if 
  not Car.IsDead($iPlayerMoney)
goto_if_false @PLANES_3705
if 
  $pl_denied_flag == 0
goto_if_false @PLANES_2196
if 
  $pl_game_timer_end > 2000
goto_if_false @PLANES_2196
Car.StartPlayback($iPlayerMoney, $pl_game_timer_diff)
Camera.SetCinema(True)
$pl_denied_flag = 1

:PLANES_2196
if 
  $pl_denied_flag > 0
goto_if_false @PLANES_2343
if 
  $pl_which_recording == 0
goto_if_false @PLANES_2343
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if 
  $player_z > 150.0
goto_if_false @PLANES_2343
Text.ClearThisPrint('PLA_11')
if 
  $pl_undercarriage_down_time == 0
goto_if_false @PLANES_2319
Text.PrintNow('PLA_12', 20000, 1)
$pl_undercarriage_down_time = 1

:PLANES_2319
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @PLANES_2343
$pl_denied_flag = 2

:PLANES_2343
if 
  $pl_denied_flag > 0
goto_if_false @PLANES_2467
if 
  $pl_skip_in_how_much == 0
goto_if_false @PLANES_2421
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
if 
  $player_z > 150.0
goto_if_false @PLANES_2421
$pl_skip_in_how_much = 1

:PLANES_2421
if 
  $pl_skip_in_how_much == 1
goto_if_false @PLANES_2467
if 
  150.0 > $player_z
goto_if_false @PLANES_2467
$pl_skip_in_how_much = 2

:PLANES_2467
if 
  $pl_denied_flag == 1
goto_if_false @PLANES_3342
if 
  $pl_which_recording == 0
goto_if_false @PLANES_3112
if 
  150.0 >= $player_z
goto_if_false @PLANES_2569
Text.ClearThisPrint('PLA_12')
if 
  $pl_undercarriage_down_time == 0
goto_if_false @PLANES_2569
Text.PrintNow('PLA_11', 5000, 1)

:PLANES_2569
if 
  2 > $pl_skip_in_how_much
goto_if_false @PLANES_3112
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @PLANES_3112
Camera.DoFade(500, Fade.Out)

:PLANES_2611
if 
  Camera.GetFadingStatus
goto_if_false @PLANES_2658
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_2651
goto @PLANES_3712

:PLANES_2651
goto @PLANES_2611

:PLANES_2658
if 
  not Car.IsDead($iPlayerMoney)
goto_if_false @PLANES_3056
if 
  Car.IsPlaybackGoingOn($iPlayerMoney)
goto_if_false @PLANES_3056
if 
  $pl_has_player_skipped == 1
goto_if_false @PLANES_2715
Plane.SetUndercarriageUp($iPlayerMoney, False)

:PLANES_2715
Car.SkipInPlayback($iPlayerMoney, -1E07)
Car.SkipInPlayback($iPlayerMoney, $pl_plane_heading)
Camera.SetCinema(False)
if or
  $pl_game_timer_diff == 48
  $pl_game_timer_diff == 49
goto_if_false @PLANES_2841
Camera.SetFixedPosition(1774.9, -2529.3, 30.9, 0.0, 0.0, 0.0)
if 
  not Car.IsDead($iPlayerMoney)
goto_if_false @PLANES_2819
Camera.PointAtCar($iPlayerMoney, CameraMode.Fixed, SwitchType.JumpCut)

:PLANES_2819
Streaming.LoadSceneInDirection(1774.9, -2529.3, 13.9, 48.0)

:PLANES_2841
if or
  $pl_game_timer_diff == 42
  $pl_game_timer_diff == 43
goto_if_false @PLANES_2945
Camera.SetFixedPosition(-1268.5, 106.9, 37.1, 0.0, 0.0, 0.0)
if 
  not Car.IsDead($iPlayerMoney)
goto_if_false @PLANES_2923
Camera.PointAtCar($iPlayerMoney, CameraMode.Fixed, SwitchType.JumpCut)

:PLANES_2923
Streaming.LoadSceneInDirection(-1268.5, 106.9, 13.0, 350.0)

:PLANES_2945
if or
  $pl_game_timer_diff == 46
  $pl_game_timer_diff == 44
goto_if_false @PLANES_3049
Camera.SetFixedPosition(1396.1, 1382.3, 25.4, 0.0, 0.0, 0.0)
if 
  not Car.IsDead($iPlayerMoney)
goto_if_false @PLANES_3027
Camera.PointAtCar($iPlayerMoney, CameraMode.Fixed, SwitchType.JumpCut)

:PLANES_3027
Streaming.LoadSceneInDirection(1396.1, 1382.3, 10.0, 264.0)

:PLANES_3049
$pl_which_recording = 1

:PLANES_3056
Text.ClearPrints
Camera.DoFade(2500, Fade.In)

:PLANES_3065
if 
  Camera.GetFadingStatus
goto_if_false @PLANES_3112
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_3105
goto @PLANES_3712

:PLANES_3105
goto @PLANES_3065

:PLANES_3112
if 
  not Car.IsDead($iPlayerMoney)
goto_if_false @PLANES_3342
if 
  not Car.IsPlaybackGoingOn($iPlayerMoney)
goto_if_false @PLANES_3342
Camera.DoFade(2000, Fade.Out)

:PLANES_3151
if 
  Camera.GetFadingStatus
goto_if_false @PLANES_3198
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_3191
goto @PLANES_3712

:PLANES_3191
goto @PLANES_3151

:PLANES_3198
gosub @PLANES_3818
Camera.SetCinema(False)
Streaming.RequestCollision($pl_print_flag_11, $pl_playerx)
World.ClearArea($pl_print_flag_11, $pl_playerx, $pl_playery, 100.0, True)
Char.ClearTasksImmediately($scplayer)
Char.SetCoordinates($scplayer, $pl_print_flag_11, $pl_playerx, $pl_playery)
Char.SetHeading($scplayer, $pl_playerz)
Streaming.LoadScene($pl_print_flag_11, $pl_playerx, $pl_playery)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Camera.DoFade(500, Fade.In)

:PLANES_3288
if 
  Camera.GetFadingStatus
goto_if_false @PLANES_3335
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_3328
goto @PLANES_3712

:PLANES_3328
goto @PLANES_3288

:PLANES_3335
goto @PLANES_3712

:PLANES_3342
if 
  $pl_denied_flag == 2
goto_if_false @PLANES_3585
Camera.DoFade(500, Fade.Out)

:PLANES_3367
if 
  Camera.GetFadingStatus
goto_if_false @PLANES_3414
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_3407
goto @PLANES_3712

:PLANES_3407
goto @PLANES_3367

:PLANES_3414
Char.GiveWeapon($scplayer, WeaponType.Parachute, 1)
Char.SetCurrentWeapon($scplayer, WeaponType.Parachute)
Camera.SetCinema(False)
Task.LeaveAnyCar($scplayer)
Text.ClearThisPrint('PLA_11')
Text.ClearThisPrint('PLA_12')

:PLANES_3461
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @PLANES_3511
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_3504
goto @PLANES_3712

:PLANES_3504
goto @PLANES_3461

:PLANES_3511
Car.Delete($iPlayerMoney)
Camera.RestoreJumpcut
Camera.SetBehindPlayer
Hud.SwitchWidescreen(False)
Camera.DoFade(500, Fade.In)

:PLANES_3531
if 
  Camera.GetFadingStatus
goto_if_false @PLANES_3578
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @PLANES_3571
goto @PLANES_3712

:PLANES_3571
goto @PLANES_3531

:PLANES_3578
goto @PLANES_3712

:PLANES_3585
if 
  $pl_which_recording == 0
goto_if_false @PLANES_3705
if 
  $pl_has_player_skipped == 0
goto_if_false @PLANES_3654
if 
  is_int_var_greater_than_int_var $pl_game_timer_end > $pl_undercarriage_flag
goto_if_false @PLANES_3654
Plane.SetUndercarriageUp($iPlayerMoney, True)
$pl_has_player_skipped = 1

:PLANES_3654
if 
  $pl_has_player_skipped == 1
goto_if_false @PLANES_3705
if 
  is_int_var_greater_than_int_var $pl_game_timer_end > $pl_undercarriage_up_time
goto_if_false @PLANES_3705
Plane.SetUndercarriageUp($iPlayerMoney, False)
$pl_has_player_skipped = 2

:PLANES_3705
goto @PLANES_2055

:PLANES_3712
Text.ClearThisPrint('PLA_11')
Text.ClearThisPrint('PLA_12')
if 
  is_var_text_label_empty s$shop_name
goto_if_false @PLANES_3752
Camera.RestoreJumpcut

:PLANES_3752
if 
  Player.IsPlaying($player1)
goto_if_false @PLANES_3775
Player.SetControl($player1, True)

:PLANES_3775
Camera.SetCinema(False)
Game.AllowPauseInWidescreen(False)
Text.UseCommands(False)
Car.MarkAsNoLongerNeeded($iPlayerMoney)
Streaming.MarkModelAsNoLongerNeeded(577)
Streaming.MarkModelAsNoLongerNeeded(371)
Txd.Remove
Hud.Display(True)
Hud.DisplayRadar(True)
Stat.ShowUpdateStats(True)
terminate_this_script 

:PLANES_3818
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @PLANES_3999
$pl_print_flag_11 = 1682.7
$pl_playerx = -2244.9
$pl_playery = 12.5
$pl_playerz = 178.9
if 
  $pl_city_open == 0
goto_if_false @PLANES_3934
$pl_player_heading = 2052.0
$pl_planex = -2497.5
$pl_planey = 12.4
$pl_planez = 89.9

:PLANES_3934
if 
  $pl_city_open == 1
goto_if_false @PLANES_3992
$pl_player_heading = 1580.0
$pl_planex = -2493.5
$pl_planey = 12.4
$pl_planez = 270.0

:PLANES_3992
$pl_which_city_select = 18

:PLANES_3999
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @PLANES_4180
$pl_print_flag_11 = -1431.6
$pl_playerx = -283.9
$pl_playery = 13.1
$pl_playerz = 149.9
if 
  $pl_city_open == 0
goto_if_false @PLANES_4115
$pl_player_heading = -1626.0
$pl_planex = -137.3
$pl_planey = 13.0
$pl_planez = 315.6

:PLANES_4115
if 
  $pl_city_open == 1
goto_if_false @PLANES_4173
$pl_player_heading = -1590.9
$pl_planex = -103.5
$pl_planey = 13.0
$pl_planez = 315.3

:PLANES_4173
$pl_which_city_select = 19

:PLANES_4180
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @PLANES_4361
$pl_print_flag_11 = 1669.8
$pl_playerx = 1422.1
$pl_playery = 9.7
$pl_playerz = 263.9
if 
  $pl_city_open == 0
goto_if_false @PLANES_4296
$pl_player_heading = 1479.7
$pl_planex = 1716.1
$pl_planey = 9.7
$pl_planez = 180.0

:PLANES_4296
if 
  $pl_city_open == 1
goto_if_false @PLANES_4354
$pl_player_heading = 1475.7
$pl_planex = 1636.0
$pl_planey = 9.7
$pl_planez = 180.0

:PLANES_4354
$pl_which_city_select = 20

:PLANES_4361
return 

:PLANES_4363
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, 320.0, 225.0, 612.0, 438.0, 0, 0, 0, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, 320.0, 430.0, 640.0, 250.0, 0, 0, 0, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(1, 321.0, 246.0, 356.0, 246.0, 160, 160, 160, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(4, 326.0, 84.0, 602.0, 58.0, 73, 73, 73, 255)
gosub @PLANES_7939
Text.SetColor(255, 255, 255, 255)
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_4574
Text.Display(269.0, 65.0, 'PLA_1')

:PLANES_4574
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_4625
Text.SetScale(0.9, 3.4)
Text.Display(327.0, 65.0, 'PLA_1')

:PLANES_4625
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_4664
Text.Display(269.0, 65.0, 'PLA_1')

:PLANES_4664
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_4715
Text.SetScale(0.91, 3.43)
Text.Display(322.0, 65.0, 'PLA_1')

:PLANES_4715
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_4766
Text.SetScale(0.9, 3.4)
Text.Display(322.0, 65.0, 'PLA_1')

:PLANES_4766
if 
  $pl_days_flag == 0
goto_if_false @PLANES_4999
gosub @PLANES_7939
Text.SetColor(255, 255, 255, 255)
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_4863
Text.SetScale(1.21, 6.23)
Text.Display(320.0, 204.0, 'PLA_25')
goto @PLANES_4896

:PLANES_4863
Text.SetScale(1.41, 6.23)
Text.Display(316.0, 204.0, 'PLA_25')

:PLANES_4896
gosub @PLANES_8014
Text.SetScale(0.62, 1.94)
Text.SetColor(255, 255, 255, 255)
Text.Display(277.0, 370.0, 'PLA_23')
gosub @PLANES_8014
Text.SetColor(255, 255, 255, 255)
Text.Display(298.0, 368.0, 'PLA_21')
goto @PLANES_7697

:PLANES_4999
gosub @PLANES_8014
Text.SetColor(138, 138, 138, 255)
Text.Display(92.0, 144.0, 'PLA_2')
gosub @PLANES_8014
Text.SetColor(138, 138, 138, 255)
Text.Display(92.0, 207.0, 'PLA_13')
gosub @PLANES_8014
Text.SetColor(138, 138, 138, 255)
Text.Display(92.0, 267.0, 'PLA_17')
if 
  $pl_days_flag > 1
goto_if_false @PLANES_6482
gosub @PLANES_8014
Text.SetScale(0.62, 1.54)
Text.SetColor(255, 255, 255, 255)
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_5215
Text.Display(92.0, 372.0, 'PLA_22')

:PLANES_5215
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_5254
Text.Display(52.0, 372.0, 'PLA_22')

:PLANES_5254
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_5293
Text.Display(52.0, 372.0, 'PLA_22')

:PLANES_5293
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_5332
Text.Display(52.0, 372.0, 'PLA_22')

:PLANES_5332
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_5371
Text.Display(52.0, 372.0, 'PLA_22')

:PLANES_5371
gosub @PLANES_8014
Text.SetColor(255, 255, 255, 255)
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_5431
Text.Display(124.0, 368.0, 'PLA_19')

:PLANES_5431
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_5470
Text.Display(84.0, 368.0, 'PLA_19')

:PLANES_5470
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_5509
Text.Display(84.0, 368.0, 'PLA_19')

:PLANES_5509
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_5548
Text.Display(84.0, 368.0, 'PLA_19')

:PLANES_5548
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_5587
Text.Display(84.0, 368.0, 'PLA_19')

:PLANES_5587
gosub @PLANES_8014
Text.SetScale(0.62, 1.94)
Text.SetColor(255, 255, 255, 255)
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_5659
Text.Display(260.0, 370.0, 'PLA_24')

:PLANES_5659
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_5698
Text.Display(295.0, 370.0, 'PLA_24')

:PLANES_5698
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_5737
Text.Display(295.0, 370.0, 'PLA_24')

:PLANES_5737
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_5776
Text.Display(258.0, 370.0, 'PLA_24')

:PLANES_5776
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_5815
Text.Display(295.0, 370.0, 'PLA_24')

:PLANES_5815
gosub @PLANES_8014
Text.SetColor(255, 255, 255, 255)
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_5875
Text.Display(281.0, 368.0, 'PLA_20')

:PLANES_5875
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_5914
Text.Display(312.0, 368.0, 'PLA_20')

:PLANES_5914
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_5953
Text.Display(312.0, 368.0, 'PLA_20')

:PLANES_5953
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_5992
Text.Display(277.0, 368.0, 'PLA_20')

:PLANES_5992
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_6031
Text.Display(312.0, 368.0, 'PLA_20')

:PLANES_6031
gosub @PLANES_8014
Text.SetScale(0.62, 1.94)
Text.SetColor(255, 255, 255, 255)
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_6103
Text.Display(362.0, 370.0, 'PLA_23')

:PLANES_6103
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_6142
Text.Display(458.0, 370.0, 'PLA_23')

:PLANES_6142
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_6181
Text.Display(458.0, 370.0, 'PLA_23')

:PLANES_6181
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_6220
Text.Display(458.0, 370.0, 'PLA_23')

:PLANES_6220
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_6259
Text.Display(458.0, 370.0, 'PLA_23')

:PLANES_6259
gosub @PLANES_8014
Text.SetColor(255, 255, 255, 255)
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_6319
Text.Display(383.0, 368.0, 'PLA_21')

:PLANES_6319
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_6358
Text.Display(477.0, 368.0, 'PLA_21')

:PLANES_6358
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_6397
Text.Display(477.0, 368.0, 'PLA_21')

:PLANES_6397
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_6436
Text.Display(477.0, 368.0, 'PLA_21')

:PLANES_6436
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_6475
Text.Display(477.0, 368.0, 'PLA_21')

:PLANES_6475
goto @PLANES_6766

:PLANES_6482
gosub @PLANES_8014
Text.SetScale(0.62, 1.94)
Text.SetColor(255, 255, 255, 255)
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_6561
Text.Display(220.0, 370.0, 'PLA_24')
goto @PLANES_6582

:PLANES_6561
Text.Display(170.0, 370.0, 'PLA_24')

:PLANES_6582
gosub @PLANES_8014
Text.SetColor(255, 255, 255, 255)
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_6649
Text.Display(241.0, 368.0, 'PLA_20')
goto @PLANES_6670

:PLANES_6649
Text.Display(191.0, 368.0, 'PLA_20')

:PLANES_6670
gosub @PLANES_8014
Text.SetScale(0.62, 1.94)
Text.SetColor(255, 255, 255, 255)
Text.Display(328.0, 370.0, 'PLA_23')
gosub @PLANES_8014
Text.SetColor(255, 255, 255, 255)
Text.Display(349.0, 368.0, 'PLA_21')

:PLANES_6766
gosub @PLANES_8014
Text.SetColor(255, 255, 255, 255)
Text.Display(92.0, 167.0, $pl_plane($9495,8s))
gosub @PLANES_8014
Text.SetColor(255, 255, 255, 255)
Text.DisplayWithNumber(92.0, 290.0, 'PLA_18', $pl_which_car_recording)
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @PLANES_7139
gosub @PLANES_8014
if 
  $pl_city_open == 0
goto_if_false @PLANES_6915
Text.SetColor(255, 255, 255, 255)
goto @PLANES_6926

:PLANES_6915
Text.SetColor(40, 40, 40, 255)

:PLANES_6926
Text.Display(92.0, 230.0, 'PLA_15')
if 
  $pl_days_flag > 1
goto_if_false @PLANES_7043
gosub @PLANES_8014
if 
  $pl_city_open == 0
goto_if_false @PLANES_7008
Text.SetColor(40, 40, 40, 255)
goto @PLANES_7022

:PLANES_7008
Text.SetColor(255, 255, 255, 255)

:PLANES_7022
Text.Display(282.0, 230.0, 'PLA_14')

:PLANES_7043
gosub @PLANES_8014
Text.SetColor(255, 255, 255, 255)
if 
  $pl_city_open == 0
goto_if_false @PLANES_7114
Text.DisplayWith2Numbers(281.0, 167.0, 'PLA_10', 10, 30)
goto @PLANES_7139

:PLANES_7114
Text.DisplayWith2Numbers(281.0, 167.0, 'PLA_10', 17, 50)

:PLANES_7139
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @PLANES_7427
gosub @PLANES_8014
if 
  $pl_city_open == 0
goto_if_false @PLANES_7203
Text.SetColor(255, 255, 255, 255)
goto @PLANES_7214

:PLANES_7203
Text.SetColor(40, 40, 40, 255)

:PLANES_7214
Text.Display(92.0, 230.0, 'PLA_16')
if 
  $pl_days_flag > 1
goto_if_false @PLANES_7331
gosub @PLANES_8014
if 
  $pl_city_open == 0
goto_if_false @PLANES_7296
Text.SetColor(40, 40, 40, 255)
goto @PLANES_7310

:PLANES_7296
Text.SetColor(255, 255, 255, 255)

:PLANES_7310
Text.Display(282.0, 230.0, 'PLA_14')

:PLANES_7331
gosub @PLANES_8014
Text.SetColor(255, 255, 255, 255)
if 
  $pl_city_open == 0
goto_if_false @PLANES_7402
Text.DisplayWith2Numbers(281.0, 167.0, 'PLA_10', 11, 20)
goto @PLANES_7427

:PLANES_7402
Text.DisplayWith2Numbers(281.0, 167.0, 'PLA_10', 14, 40)

:PLANES_7427
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @PLANES_7697
gosub @PLANES_8014
if 
  $pl_city_open == 0
goto_if_false @PLANES_7491
Text.SetColor(255, 255, 255, 255)
goto @PLANES_7502

:PLANES_7491
Text.SetColor(40, 40, 40, 255)

:PLANES_7502
Text.Display(92.0, 230.0, 'PLA_16')
gosub @PLANES_8014
if 
  $pl_city_open == 0
goto_if_false @PLANES_7566
Text.SetColor(40, 40, 40, 255)
goto @PLANES_7580

:PLANES_7566
Text.SetColor(255, 255, 255, 255)

:PLANES_7580
Text.Display(282.0, 230.0, 'PLA_15')
gosub @PLANES_8014
Text.SetColor(255, 255, 255, 255)
if 
  $pl_city_open == 0
goto_if_false @PLANES_7672
Text.DisplayWith2Numbers(281.0, 167.0, 'PLA_10', 19, 10)
goto @PLANES_7697

:PLANES_7672
Text.DisplayWith2Numbers(281.0, 167.0, 'PLA_10', 14, 30)

:PLANES_7697
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(2, 160.0, 112.0, 320.0, 224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(2, 160.0, 317.0, 320.0, -224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(2, 480.0, 112.0, -320.0, 224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(2, 480.0, 317.0, -320.0, -224.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(3, 160.0, 435.0, 320.0, 17.0, 150, 150, 150, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(3, 480.0, 435.0, -320.0, 17.0, 150, 150, 150, 255)
return 

:PLANES_7939
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(True)
Text.SetBackground(False)
Text.SetScale(1.0, 3.4)
Text.SetDropshadow(3, 0, 0, 0, 255)
Text.SetEdge(2, 0, 0, 0, 255)
Text.SetFont(Font.Menu)
return 

:PLANES_8014
Text.SetDrawBeforeFade(True)
Text.SetJustify(True)
Text.SetRightJustify(False)
Text.SetWrapX(1000.0)
Text.SetProportional(True)
Text.SetCenter(False)
Text.SetBackground(False)
Text.SetScale(0.62, 2.34)
Text.SetDropshadow(2, 0, 0, 0, 255)
Text.SetEdge(2, 0, 0, 0, 255)
Text.SetFont(Font.Menu)
return 
terminate_this_script 

//-------------External script 33 (TRAINS)---------------

:TRAINS
script_name 'TRAINS'
$train_car = 0.0
if 
  not Player.IsPlaying($player1)
goto_if_false @TRAINS_44
goto @TRAINS_768

:TRAINS_44
set_deatharrest_state 0

:TRAINS_48
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @TRAINS_754
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @TRAINS_740
if 
  Char.IsInModel($scplayer, 570)
goto_if_false @TRAINS_726
$train_control_flag = Char.StoreCarIsInNoSave($scplayer)
if 
  $pl_stop_player_skipping_flag == 0
goto_if_false @TRAINS_181
$train_car = Car.GetSpeed($train_control_flag)
if 
  $train_car > 0.0
goto_if_false @TRAINS_181
Text.PrintNow('TRAINS', 20000, 1)
$pl_stop_player_skipping_flag = 1

:TRAINS_181
if 
  $pl_stop_player_skipping_flag == 1
goto_if_false @TRAINS_619
if 
  Train.IsNextStationAllowed($train_control_flag)
goto_if_false @TRAINS_429
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @TRAINS_422
Camera.DoFade(1000, Fade.Out)

:TRAINS_239
if 
  Camera.GetFadingStatus
goto_if_false @TRAINS_286
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @TRAINS_279
goto @TRAINS_768

:TRAINS_279
goto @TRAINS_239

:TRAINS_286
if 
  Player.IsPlaying($player1)
goto_if_false @TRAINS_361
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @TRAINS_361
if 
  Char.IsInModel($scplayer, 570)
goto_if_false @TRAINS_361
$train_control_flag = Char.StoreCarIsInNoSave($scplayer)
Train.SkipToNextAllowedStation($train_control_flag)
Text.ClearThisPrint('TRAINS')

:TRAINS_361
Camera.DoFade(1000, Fade.In)

:TRAINS_368
if 
  Camera.GetFadingStatus
goto_if_false @TRAINS_415
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @TRAINS_408
goto @TRAINS_768

:TRAINS_408
goto @TRAINS_368

:TRAINS_415
$pl_stop_player_skipping_flag = 2

:TRAINS_422
goto @TRAINS_619

:TRAINS_429
Camera.DoFade(1000, Fade.Out)

:TRAINS_436
if 
  Camera.GetFadingStatus
goto_if_false @TRAINS_483
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @TRAINS_476
goto @TRAINS_768

:TRAINS_476
goto @TRAINS_436

:TRAINS_483
if 
  Player.IsPlaying($player1)
goto_if_false @TRAINS_558
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @TRAINS_558
if 
  Char.IsInModel($scplayer, 570)
goto_if_false @TRAINS_558
$train_control_flag = Char.StoreCarIsInNoSave($scplayer)
Train.SkipToNextAllowedStation($train_control_flag)
Text.ClearThisPrint('TRAINS')

:TRAINS_558
Camera.DoFade(1000, Fade.In)

:TRAINS_565
if 
  Camera.GetFadingStatus
goto_if_false @TRAINS_612
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @TRAINS_605
goto @TRAINS_768

:TRAINS_605
goto @TRAINS_565

:TRAINS_612
$pl_stop_player_skipping_flag = 2

:TRAINS_619
if 
  $pl_stop_player_skipping_flag == 2
goto_if_false @TRAINS_719
if 
  Player.IsPlaying($player1)
goto_if_false @TRAINS_719
if 
  Char.IsSittingInAnyCar($scplayer)
goto_if_false @TRAINS_719
if 
  Char.IsInModel($scplayer, 570)
goto_if_false @TRAINS_719
$train_control_flag = Char.StoreCarIsInNoSave($scplayer)
if 
  Car.IsStopped($train_control_flag)
goto_if_false @TRAINS_719
$pl_stop_player_skipping_flag = 0

:TRAINS_719
goto @TRAINS_733

:TRAINS_726
goto @TRAINS_768

:TRAINS_733
goto @TRAINS_747

:TRAINS_740
goto @TRAINS_768

:TRAINS_747
goto @TRAINS_761

:TRAINS_754
goto @TRAINS_768

:TRAINS_761
goto @TRAINS_48

:TRAINS_768
$pl_stop_player_skipping_flag = 0
Text.ClearThisPrint('TRAINS')
terminate_this_script 
terminate_this_script 

//-------------External script 34 (ZERO_AMBIENCE)---------------

:RCSHOP
script_name 'RCSHOP'
$train_speed = 0
2@ = -2237.291
3@ = 128.5856
4@ = 1034.422
5@ = 0.0
6@ = 360.0
set_lvar_int_to_constant 10@ = 217
Streaming.RequestModel(10@)

:RCSHOP_81
if 
  not Streaming.HasModelLoaded(10@)
goto_if_false @RCSHOP_108
wait 0
goto @RCSHOP_81

:RCSHOP_108
7@ = Sequence.Open()
Task.StayInSamePlace(-1, True)
Task.StandStill(-1, -2)
Sequence.Close(7@)
8@ = Attractor.Add(2@, 3@, 4@, 5@, 6@, 7@)
9@ = Char.CreateAtAttractor(PedType.CivMale, 10@, 8@, 1466)

:RCSHOP_169
if 
  Player.IsPlaying($player1)
goto_if_false @RCSHOP_509
$iAreaCode = Char.GetAreaVisible($scplayer)
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @RCSHOP_225
gosub @RCSHOP_520

:RCSHOP_225
if and
  $flag_zero_mission_counter == 3
  $onmission == 0
goto_if_false @RCSHOP_305
if 
  Char.LocateStoppedOnFoot3D($scplayer, -2219.287, 133.8895, 1034.641, 1.5, 1.5, 1.5, True)
goto_if_false @RCSHOP_305
$load_and_launch_mission_if_poss = 7

:RCSHOP_305
if or
  Char.IsShooting($scplayer)
  Player.IsWantedLevelGreater($player1, $iWantedOnEntry)
goto_if_false @RCSHOP_336
$train_speed = 1

:RCSHOP_336
if 
  not Char.IsDead(9@)
goto_if_false @RCSHOP_418
if and
  Player.IsTargetingChar($player1, 9@)
  not Char.IsCurrentWeapon($scplayer, WeaponType.AnyMelee)
goto_if_false @RCSHOP_392
$train_speed = 1
goto @RCSHOP_418

:RCSHOP_392
if 
  Char.HasBeenDamagedByChar(9@, $scplayer)
goto_if_false @RCSHOP_418
$train_speed = 1

:RCSHOP_418
if 
  $train_speed == 1
goto_if_false @RCSHOP_509
2@, 3@, 4@ = Char.GetCoordinates($scplayer)
0@ = World.GetRandomCharInSphereNoBrain(2@, 3@, 4@, 20.0)
if 
  0@ > -1
goto_if_false @RCSHOP_509
1@ += 1
StreamedScript.StartNew(37, 0@, 1@)
StreamedScript.Stream(37)

:RCSHOP_509
wait 0
goto @RCSHOP_169

:RCSHOP_520
$train_speed = 0
Char.MarkAsNoLongerNeeded(9@)
Streaming.MarkModelAsNoLongerNeeded(10@)
Char.Delete(9@)
Attractor.Clear(8@)
Sequence.Clear(7@)
terminate_this_script 
terminate_this_script 

//-------------External script 35 (DANCE)---------------

:DANCE
script_name 'DANCE'
set_global_var_bit_const $d6_trip_skips_available {n} 31
Game.SetMinigameInProgress(True)
Text.UseCommands(True)
Hud.ForceBigMessageAndCounter(True)
if 
  13@ > 0
goto_if_false @DANCE_72
5@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:DANCE_72
18@ = 5
23@ = 5
16@ = -1
24@ = -1
17@ = -1
13@ = 0
$iDanceReport = 0
$iDance_SpeechRequest = 0
$iSetRCPanic = -1
$iDance_SpeechState = 1
22@ = 5
TIMERA = 10000

:DANCE_157
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @DANCE_367
if 
  6@ > 0
goto_if_false @DANCE_353
if 
  $iSwitchOffDanceMiniGame == 1
goto_if_false @DANCE_245
if 
  6@ <> 2
goto_if_false @DANCE_245
6@ = 2
7@ = 0

:DANCE_245
if 
  5@ == -1
goto_if_false @DANCE_302
if 
  22@ <> 5
goto_if_false @DANCE_288
gosub @DANCE_9298

:DANCE_288
gosub @DANCE_381
goto @DANCE_346

:DANCE_302
if 
  not Char.IsDead(5@)
goto_if_false @DANCE_339
gosub @DANCE_9298
gosub @DANCE_381
goto @DANCE_346

:DANCE_339
gosub @DANCE_16928

:DANCE_346
goto @DANCE_360

:DANCE_353
gosub @DANCE_381

:DANCE_360
goto @DANCE_374

:DANCE_367
gosub @DANCE_16928

:DANCE_374
goto @DANCE_157

:DANCE_381
switch_start 6@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DANCE_500 {caseNum1} 0 {caseLabel1} @DANCE_444 {caseNum2} 1 {caseLabel2} @DANCE_458 {caseNum3} 2 {caseLabel3} @DANCE_472 {caseNum4} 3 {caseLabel4} @DANCE_486 {caseNum5} -1 {caseLabel5} @DANCE_500 {caseNum6} -1 {caseLabel6} @DANCE_500 {caseNum7} -1 {caseLabel7} @DANCE_500

:DANCE_444
gosub @DANCE_502
goto @DANCE_500

:DANCE_458
gosub @DANCE_1090
goto @DANCE_500

:DANCE_472
gosub @DANCE_2086
goto @DANCE_500

:DANCE_486
gosub @DANCE_2412
goto @DANCE_500

:DANCE_500
return 

:DANCE_502
switch_start 7@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DANCE_1088 {caseNum1} 0 {caseLabel1} @DANCE_565 {caseNum2} 1 {caseLabel2} @DANCE_646 {caseNum3} 2 {caseLabel3} @DANCE_803 {caseNum4} 3 {caseLabel4} @DANCE_948 {caseNum5} -1 {caseLabel5} @DANCE_1088 {caseNum6} -1 {caseLabel6} @DANCE_1088 {caseNum7} -1 {caseLabel7} @DANCE_1088

:DANCE_565
Player.SetControl($player1, False)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.HideWeaponForScriptedCutscene($scplayer, True)
Game.SetEveryoneIgnorePlayer($player1, True)
Game.SetAllCarsCanBeDamaged(False)
Hud.Display(False)
Hud.DisplayRadar(False)
if 
  5@ <> -1
goto_if_false @DANCE_625
Clock.Store

:DANCE_625
Camera.DoFade(500, Fade.Out)
7@ += 1
goto @DANCE_1088

:DANCE_646
if 
  not Camera.GetFadingStatus
goto_if_false @DANCE_796
gosub @DANCE_2764
Streaming.RequestAnimation(v$5306)
if 
  not Streaming.HasAnimationLoaded(v$5306)
goto_if_false @DANCE_694
goto @DANCE_1088

:DANCE_694
if 
  5@ <> -1
goto_if_false @DANCE_718
Clock.SetTimeOfDay(0, 0)

:DANCE_718
Char.ClearTasksImmediately($scplayer)
World.ClearArea(0@, 1@, 2@, 1.5, True)
Char.SetCoordinates($scplayer, 0@, 1@, 2@)
Char.SetHeading($scplayer, 3@)
gosub @DANCE_6702
gosub @DANCE_5647
17@ = 0
Audio.PreloadBeatTrack(4@)
7@ += 1

:DANCE_796
goto @DANCE_1088

:DANCE_803
13@ = Audio.GetBeatTrackStatus()
if 
  is_int_lvar_equal_to_constant 13@ == 2
goto_if_false @DANCE_941
Audio.PlayBeatTrack
Task.PlayAnimNonInterruptable($scplayer, "DANCE_LOOP", v$5306, 99.0, True, False, False, True, 1215752191)
if 
  not Char.IsDead(5@)
goto_if_false @DANCE_920
Task.PlayAnimNonInterruptable(5@, "DANCE_LOOP", v$5306, 99.0, True, False, False, True, 1215752191)

:DANCE_920
Camera.DoFade(500, Fade.In)
TIMERB = 0
7@ += 1

:DANCE_941
goto @DANCE_1088

:DANCE_948
if 
  not Camera.GetFadingStatus
goto_if_false @DANCE_1081
if 
  5@ == -1
goto_if_false @DANCE_1043
if 
  TIMERB >= 10000
goto_if_false @DANCE_1036
start_new_script @BDISPLY 
Hud.DisplayCounterWithString($iDanceReport, CounterDisplay.Number, 'DNC_001')
6@ = 1
7@ = 1

:DANCE_1036
goto @DANCE_1081

:DANCE_1043
start_new_script @BDISPLY 
Hud.DisplayCounterWithString($iDanceReport, CounterDisplay.Number, 'DNC_001')
6@ = 1
7@ = 1

:DANCE_1081
goto @DANCE_1088

:DANCE_1088
return 

:DANCE_1090
switch_start 7@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @DANCE_2084 {caseNum1} 1 {caseLabel1} @DANCE_1153 {caseNum2} -1 {caseLabel2} @DANCE_2084 {caseNum3} -1 {caseLabel3} @DANCE_2084 {caseNum4} -1 {caseLabel4} @DANCE_2084 {caseNum5} -1 {caseLabel5} @DANCE_2084 {caseNum6} -1 {caseLabel6} @DANCE_2084 {caseNum7} -1 {caseLabel7} @DANCE_2084

:DANCE_1153
gosub @DANCE_5511
gosub @DANCE_7887
gosub @DANCE_5542
gosub @DANCE_5323
gosub @DANCE_2932
if 
  6@ == 3
goto_if_false @DANCE_1213
goto @DANCE_2084

:DANCE_1213
gosub @DANCE_3481
gosub @DANCE_5186
gosub @DANCE_5647
gosub @DANCE_8771
gosub @DANCE_9436
if 
  22@ == 3
goto_if_false @DANCE_1387
if 
  99999999 > $iDanceReport
goto_if_false @DANCE_1341
if 
  29@ == 2
goto_if_false @DANCE_1334
30@ = 10
30@ *= 2
add_int_lvar_to_int_var $iDanceReport += 30@
goto @DANCE_1341

:DANCE_1334
$iDanceReport += 10

:DANCE_1341
26@ += 1
gosub @DANCE_7950
if 
  31@ <> -1
goto_if_false @DANCE_1380
gosub @DANCE_3932

:DANCE_1380
goto @DANCE_2084

:DANCE_1387
if 
  22@ == 1
goto_if_false @DANCE_1526
if 
  99999999 > $iDanceReport
goto_if_false @DANCE_1480
if 
  29@ == 2
goto_if_false @DANCE_1473
30@ = 50
30@ *= 2
add_int_lvar_to_int_var $iDanceReport += 30@
goto @DANCE_1480

:DANCE_1473
$iDanceReport += 50

:DANCE_1480
28@ += 1
gosub @DANCE_7950
if 
  31@ <> -1
goto_if_false @DANCE_1519
gosub @DANCE_3932

:DANCE_1519
goto @DANCE_2084

:DANCE_1526
if 
  22@ == 2
goto_if_false @DANCE_1665
if 
  99999999 > $iDanceReport
goto_if_false @DANCE_1619
if 
  29@ == 2
goto_if_false @DANCE_1612
30@ = 20
30@ *= 2
add_int_lvar_to_int_var $iDanceReport += 30@
goto @DANCE_1619

:DANCE_1612
$iDanceReport += 20

:DANCE_1619
26@ += 1
gosub @DANCE_7950
if 
  31@ <> -1
goto_if_false @DANCE_1658
gosub @DANCE_3932

:DANCE_1658
goto @DANCE_2084

:DANCE_1665
if 
  22@ == 0
goto_if_false @DANCE_1768
if 
  $iDanceReport > 0
goto_if_false @DANCE_1715
$iDanceReport -= 0
goto @DANCE_1722

:DANCE_1715
$iDanceReport = 0

:DANCE_1722
27@ += 1
gosub @DANCE_7950
if 
  31@ <> -1
goto_if_false @DANCE_1761
gosub @DANCE_4559

:DANCE_1761
goto @DANCE_2084

:DANCE_1768
if 
  22@ == 4
goto_if_false @DANCE_1871
if 
  $iDanceReport > 0
goto_if_false @DANCE_1818
$iDanceReport -= 0
goto @DANCE_1825

:DANCE_1818
$iDanceReport = 0

:DANCE_1825
27@ += 1
gosub @DANCE_7950
if 
  31@ <> -1
goto_if_false @DANCE_1864
gosub @DANCE_4559

:DANCE_1864
goto @DANCE_2084

:DANCE_1871
if 
  22@ == 10
goto_if_false @DANCE_1974
if 
  $iDanceReport > 0
goto_if_false @DANCE_1921
$iDanceReport -= 0
goto @DANCE_1928

:DANCE_1921
$iDanceReport = 0

:DANCE_1928
27@ += 1
gosub @DANCE_7950
if 
  31@ <> -1
goto_if_false @DANCE_1967
gosub @DANCE_4559

:DANCE_1967
goto @DANCE_2084

:DANCE_1974
if 
  22@ == 11
goto_if_false @DANCE_2077
if 
  $iDanceReport > 0
goto_if_false @DANCE_2024
$iDanceReport -= 0
goto @DANCE_2031

:DANCE_2024
$iDanceReport = 0

:DANCE_2031
27@ += 1
gosub @DANCE_7950
if 
  31@ <> -1
goto_if_false @DANCE_2070
gosub @DANCE_4559

:DANCE_2070
goto @DANCE_2084

:DANCE_2077
goto @DANCE_2084

:DANCE_2084
return 

:DANCE_2086
switch_start 7@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DANCE_2410 {caseNum1} 0 {caseLabel1} @DANCE_2149 {caseNum2} 1 {caseLabel2} @DANCE_2170 {caseNum3} 2 {caseLabel3} @DANCE_2222 {caseNum4} 3 {caseLabel4} @DANCE_2396 {caseNum5} -1 {caseLabel5} @DANCE_2410 {caseNum6} -1 {caseLabel6} @DANCE_2410 {caseNum7} -1 {caseLabel7} @DANCE_2410

:DANCE_2149
Camera.DoFade(500, Fade.Out)
7@ += 1
goto @DANCE_2410

:DANCE_2170
if 
  not Camera.GetFadingStatus
goto_if_false @DANCE_2215
13@ = Audio.GetBeatTrackStatus()
if 
  is_int_lvar_equal_to_constant 13@ == 3
goto_if_false @DANCE_2208
Audio.StopBeatTrack

:DANCE_2208
7@ += 1

:DANCE_2215
goto @DANCE_2410

:DANCE_2222
Hud.ClearCounter($iDanceReport)
Char.HideWeaponForScriptedCutscene($scplayer, False)
Game.SetAllCarsCanBeDamaged(True)
Hud.Display(True)
Hud.DisplayRadar(True)
Text.ClearHelp
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Game.SetEveryoneIgnorePlayer($player1, False)
Char.ClearTasksImmediately($scplayer)
Task.PlayAnimNonInterruptable($scplayer, "DANCE_LOOP", v$5306, 16.0, False, False, False, False, 0)
if 
  not Char.IsDead(5@)
goto_if_false @DANCE_2355
Char.ClearTasksImmediately(5@)
Task.PlayAnimNonInterruptable(5@, "DANCE_LOOP", v$5306, 16.0, False, False, False, False, 0)

:DANCE_2355
if 
  5@ <> -1
goto_if_false @DANCE_2375
Clock.Restore

:DANCE_2375
Camera.DoFade(1500, Fade.In)
7@ += 1
goto @DANCE_2410

:DANCE_2396
gosub @DANCE_16928
goto @DANCE_2410

:DANCE_2410
return 

:DANCE_2412
switch_start 7@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @DANCE_2762 {caseNum1} 0 {caseLabel1} @DANCE_2475 {caseNum2} 1 {caseLabel2} @DANCE_2567 {caseNum3} -1 {caseLabel3} @DANCE_2762 {caseNum4} -1 {caseLabel4} @DANCE_2762 {caseNum5} -1 {caseLabel5} @DANCE_2762 {caseNum6} -1 {caseLabel6} @DANCE_2762 {caseNum7} -1 {caseLabel7} @DANCE_2762

:DANCE_2475
Audio.PauseCurrentBeatTrack(True)
if 
  Char.IsPlayingAnim($scplayer, v$iTerminateDanceMiniGame)
goto_if_false @DANCE_2508
Char.SetAnimPlayingFlag($scplayer, v$iTerminateDanceMiniGame, False)

:DANCE_2508
if 
  not Char.IsDead(5@)
goto_if_false @DANCE_2553
if 
  Char.IsPlayingAnim(5@, v$5302)
goto_if_false @DANCE_2553
Char.SetAnimPlayingFlag(5@, v$5302, False)

:DANCE_2553
7@ += 1
goto @DANCE_2762

:DANCE_2567
gosub @DANCE_2932
if 
  18@ == 1
goto_if_false @DANCE_2620
$iDanceReport = 0
6@ = 2
7@ = 0
goto @DANCE_2762

:DANCE_2620
if 
  18@ == 3
goto_if_false @DANCE_2755
if 
  6@ > 0
goto_if_false @DANCE_2755
Audio.PauseCurrentBeatTrack(False)
if 
  Char.IsPlayingAnim($scplayer, v$iTerminateDanceMiniGame)
goto_if_false @DANCE_2689
Char.SetAnimPlayingFlag($scplayer, v$iTerminateDanceMiniGame, True)

:DANCE_2689
if 
  not Char.IsDead(5@)
goto_if_false @DANCE_2734
if 
  Char.IsPlayingAnim(5@, v$5302)
goto_if_false @DANCE_2734
Char.SetAnimPlayingFlag(5@, v$5302, True)

:DANCE_2734
6@ = 1
7@ = 1
goto @DANCE_2762

:DANCE_2755
goto @DANCE_2762

:DANCE_2762
return 

:DANCE_2764
switch_start 4@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @DANCE_2906 {caseNum1} 1 {caseLabel1} @DANCE_2827 {caseNum2} 2 {caseLabel2} @DANCE_2846 {caseNum3} 3 {caseLabel3} @DANCE_2865 {caseNum4} 4 {caseLabel4} @DANCE_2889 {caseNum5} -1 {caseLabel5} @DANCE_2930 {caseNum6} -1 {caseLabel6} @DANCE_2930 {caseNum7} -1 {caseLabel7} @DANCE_2930

:DANCE_2827
set_var_text_label16 v$5306 = "GFUNK"
goto @DANCE_2930

:DANCE_2846
set_var_text_label16 v$5306 = "GFUNK"
goto @DANCE_2930

:DANCE_2865
set_var_text_label16 v$5306 = "RUNNINGMAN"
goto @DANCE_2930

:DANCE_2889
set_var_text_label16 v$5306 = "WOP"
goto @DANCE_2930

:DANCE_2906
set_var_text_label16 v$5306 = "WOP"
4@ = 4
goto @DANCE_2930

:DANCE_2930
return 

:DANCE_2932
switch_start 23@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @DANCE_3479 {caseNum1} 1 {caseLabel1} @DANCE_3434 {caseNum2} 2 {caseLabel2} @DANCE_3389 {caseNum3} 3 {caseLabel3} @DANCE_3206 {caseNum4} 4 {caseLabel4} @DANCE_3161 {caseNum5} 5 {caseLabel5} @DANCE_2995 {caseNum6} -1 {caseLabel6} @DANCE_3479 {caseNum7} -1 {caseLabel7} @DANCE_3479

:DANCE_2995
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @DANCE_3033
18@ = 4
23@ = 4
goto @DANCE_3479

:DANCE_3033
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DANCE_3078
18@ = 3
23@ = 3
TIMERB = 0
goto @DANCE_3479

:DANCE_3078
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @DANCE_3116
18@ = 2
23@ = 2
goto @DANCE_3479

:DANCE_3116
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DANCE_3154
18@ = 1
23@ = 1
goto @DANCE_3479

:DANCE_3154
goto @DANCE_3479

:DANCE_3161
18@ = 5
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Circle)
goto_if_false @DANCE_3199
23@ = 5
goto @DANCE_3479

:DANCE_3199
goto @DANCE_3479

:DANCE_3206
18@ = 5
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @DANCE_3251
23@ = 5
goto @DANCE_3479
goto @DANCE_3382

:DANCE_3251
if 
  5@ == -1
goto_if_false @DANCE_3338
if 
  22@ <> 5
goto_if_false @DANCE_3331
if and
  6@ <> 3
  TIMERB >= 800
goto_if_false @DANCE_3331
Text.ClearHelp
6@ = 3
7@ = 0
return 

:DANCE_3331
goto @DANCE_3382

:DANCE_3338
if and
  6@ <> 3
  TIMERB >= 800
goto_if_false @DANCE_3382
Text.ClearHelp
6@ = 3
7@ = 0
return 

:DANCE_3382
goto @DANCE_3479

:DANCE_3389
18@ = 5
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Square)
goto_if_false @DANCE_3427
23@ = 5
goto @DANCE_3479

:DANCE_3427
goto @DANCE_3479

:DANCE_3434
18@ = 5
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @DANCE_3472
23@ = 5
goto @DANCE_3479

:DANCE_3472
goto @DANCE_3479

:DANCE_3479
return 

:DANCE_3481
14@, 13@, 15@ = Audio.GetBeatProximity(0)
if 
  14@ > 3000
goto_if_false @DANCE_3527
22@ = 5
goto @DANCE_3930

:DANCE_3527
if 
  is_int_lvar_greater_than_int_lvar 15@ > 16@
goto_if_false @DANCE_3841
if 
  18@ == 5
goto_if_false @DANCE_3606
if 
  -110 > 14@
goto_if_false @DANCE_3599
22@ = 0
set_lvar_int_to_lvar_int 16@ = 15@
return 

:DANCE_3599
goto @DANCE_3834

:DANCE_3606
$BD_RenderHit = 1
if 
  is_int_lvar_equal_to_int_lvar 18@ == 13@
goto_if_false @DANCE_3817
if and
  35 >= 14@
  14@ >= -35
goto_if_false @DANCE_3688
22@ = 1
$BD_RenderHit = 3
set_lvar_int_to_lvar_int 16@ = 15@
return 
goto @DANCE_3810

:DANCE_3688
if and
  60 >= 14@
  14@ >= -60
goto_if_false @DANCE_3744
22@ = 2
$BD_RenderHit = 2
set_lvar_int_to_lvar_int 16@ = 15@
return 
goto @DANCE_3810

:DANCE_3744
if and
  110 >= 14@
  14@ >= -110
goto_if_false @DANCE_3793
22@ = 3
set_lvar_int_to_lvar_int 16@ = 15@
return 
goto @DANCE_3810

:DANCE_3793
22@ = 11
set_lvar_int_to_lvar_int 16@ = 15@
return 

:DANCE_3810
goto @DANCE_3834

:DANCE_3817
22@ = 10
set_lvar_int_to_lvar_int 16@ = 15@
return 

:DANCE_3834
goto @DANCE_3930

:DANCE_3841
if or
  22@ == 1
  22@ == 2
  22@ == 3
goto_if_false @DANCE_3882
22@ = 8
return 

:DANCE_3882
if or
  22@ == 0
  22@ == 4
  22@ == 10
  22@ == 11
goto_if_false @DANCE_3930
22@ = 9
return 

:DANCE_3930
return 

:DANCE_3932
switch_start 17@ {numCases} 15 {hasDefaultCase} 1 {defaultLabel} @DANCE_4060 {caseNum1} 2 {caseLabel1} @DANCE_4089 {caseNum2} 3 {caseLabel2} @DANCE_4118 {caseNum3} 4 {caseLabel3} @DANCE_4147 {caseNum4} 5 {caseLabel4} @DANCE_4176 {caseNum5} 6 {caseLabel5} @DANCE_4205 {caseNum6} 7 {caseLabel6} @DANCE_4234 {caseNum7} 8 {caseLabel7} @DANCE_4263
switch_continued 9 {caseLabel1} @DANCE_4292 {caseNum2} 10 {caseLabel2} @DANCE_4321 {caseNum3} 11 {caseLabel3} @DANCE_4351 {caseNum4} 12 {caseLabel4} @DANCE_4381 {caseNum5} 13 {caseLabel5} @DANCE_4411 {caseNum6} 14 {caseLabel6} @DANCE_4441 {caseNum7} 15 {caseLabel7} @DANCE_4471 {caseNum8} 16 {caseLabel8} @DANCE_4501 {caseNum9} -1 {caseLabel9} @DANCE_4531

:DANCE_4060
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G1"
17@ = 2
goto @DANCE_4531

:DANCE_4089
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G2"
17@ += 1
goto @DANCE_4531

:DANCE_4118
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G3"
17@ += 1
goto @DANCE_4531

:DANCE_4147
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G4"
17@ += 1
goto @DANCE_4531

:DANCE_4176
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G5"
17@ += 1
goto @DANCE_4531

:DANCE_4205
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G6"
17@ += 1
goto @DANCE_4531

:DANCE_4234
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G7"
17@ += 1
goto @DANCE_4531

:DANCE_4263
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G8"
17@ += 1
goto @DANCE_4531

:DANCE_4292
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G9"
17@ += 1
goto @DANCE_4531

:DANCE_4321
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G10"
17@ += 1
goto @DANCE_4531

:DANCE_4351
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G11"
17@ += 1
goto @DANCE_4531

:DANCE_4381
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G12"
17@ += 1
goto @DANCE_4531

:DANCE_4411
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G13"
17@ += 1
goto @DANCE_4531

:DANCE_4441
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G14"
17@ += 1
goto @DANCE_4531

:DANCE_4471
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G15"
17@ += 1
goto @DANCE_4531

:DANCE_4501
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_G16"
17@ += 1
goto @DANCE_4531

:DANCE_4531
Task.PlayAnimNonInterruptable($scplayer, v$iTerminateDanceMiniGame, v$5306, 4.0, False, False, False, False, 0)
return 

:DANCE_4559
switch_start 17@ {numCases} 15 {hasDefaultCase} 1 {defaultLabel} @DANCE_4687 {caseNum1} 2 {caseLabel1} @DANCE_4716 {caseNum2} 3 {caseLabel2} @DANCE_4745 {caseNum3} 4 {caseLabel3} @DANCE_4774 {caseNum4} 5 {caseLabel4} @DANCE_4803 {caseNum5} 6 {caseLabel5} @DANCE_4832 {caseNum6} 7 {caseLabel6} @DANCE_4861 {caseNum7} 8 {caseLabel7} @DANCE_4890
switch_continued 9 {caseLabel1} @DANCE_4919 {caseNum2} 10 {caseLabel2} @DANCE_4948 {caseNum3} 11 {caseLabel3} @DANCE_4978 {caseNum4} 12 {caseLabel4} @DANCE_5008 {caseNum5} 13 {caseLabel5} @DANCE_5038 {caseNum6} 14 {caseLabel6} @DANCE_5068 {caseNum7} 15 {caseLabel7} @DANCE_5098 {caseNum8} 16 {caseLabel8} @DANCE_5128 {caseNum9} -1 {caseLabel9} @DANCE_5158

:DANCE_4687
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B1"
17@ = 2
goto @DANCE_5158

:DANCE_4716
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B2"
17@ += 1
goto @DANCE_5158

:DANCE_4745
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B3"
17@ += 1
goto @DANCE_5158

:DANCE_4774
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B4"
17@ += 1
goto @DANCE_5158

:DANCE_4803
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B5"
17@ += 1
goto @DANCE_5158

:DANCE_4832
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B6"
17@ += 1
goto @DANCE_5158

:DANCE_4861
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B7"
17@ += 1
goto @DANCE_5158

:DANCE_4890
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B8"
17@ += 1
goto @DANCE_5158

:DANCE_4919
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B9"
17@ += 1
goto @DANCE_5158

:DANCE_4948
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B10"
17@ += 1
goto @DANCE_5158

:DANCE_4978
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B11"
17@ += 1
goto @DANCE_5158

:DANCE_5008
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B12"
17@ += 1
goto @DANCE_5158

:DANCE_5038
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B13"
17@ += 1
goto @DANCE_5158

:DANCE_5068
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B14"
17@ += 1
goto @DANCE_5158

:DANCE_5098
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B15"
17@ += 1
goto @DANCE_5158

:DANCE_5128
set_var_text_label16 v$iTerminateDanceMiniGame = "DANCE_B16"
17@ += 1
goto @DANCE_5158

:DANCE_5158
Task.PlayAnimNonInterruptable($scplayer, v$iTerminateDanceMiniGame, v$5306, 4.0, False, False, False, False, 0)
return 

:DANCE_5186
if 
  Char.IsPlayingAnim($scplayer, v$iTerminateDanceMiniGame)
goto_if_false @DANCE_5312
12@ = Char.GetAnimTotalTime($scplayer, v$iTerminateDanceMiniGame)
11@ = Char.GetAnimCurrentTime($scplayer, v$iTerminateDanceMiniGame)
cset_lvar_float_to_lvar_int 8@ =# 21@
set_lvar_float_to_lvar_float 0@ = 8@
div_float_lvar_by_float_lvar 0@ /= 12@
add_float_lvar_to_float_lvar 11@ += 0@
if 
  11@ >= 1.0
goto_if_false @DANCE_5296
31@ = 1
return 
goto @DANCE_5305

:DANCE_5296
31@ = -1
return 

:DANCE_5305
goto @DANCE_5321

:DANCE_5312
31@ = 0
return 

:DANCE_5321
return 

:DANCE_5323
if 
  5@ > -1
goto_if_false @DANCE_5509
if 
  Char.IsPlayingAnim(5@, v$5302)
goto_if_false @DANCE_5451
12@ = Char.GetAnimTotalTime(5@, v$5302)
11@ = Char.GetAnimCurrentTime(5@, v$5302)
cset_lvar_float_to_lvar_int 8@ =# 21@
set_lvar_float_to_lvar_float 0@ = 8@
div_float_lvar_by_float_lvar 0@ /= 12@
add_float_lvar_to_float_lvar 11@ += 0@
if 
  11@ >= 1.0
goto_if_false @DANCE_5444
gosub @DANCE_6885
return 

:DANCE_5444
goto @DANCE_5509

:DANCE_5451
14@, 13@, 15@ = Audio.GetBeatProximity(0)
if 
  15@ == 0
goto_if_false @DANCE_5509
if 
  25 >= 14@
goto_if_false @DANCE_5509
gosub @DANCE_6885
return 

:DANCE_5509
return 

:DANCE_5511
19@ = Clock.GetGameTimer()
set_lvar_int_to_lvar_int 21@ = 19@
sub_int_lvar_from_int_lvar 21@ -= 20@
set_lvar_int_to_lvar_int 20@ = 19@
return 

:DANCE_5542
gosub @DANCE_5186
if 
  31@ == 1
goto_if_false @DANCE_5645
if or
  22@ == 1
  22@ == 2
  22@ == 3
  22@ == 8
goto_if_false @DANCE_5629
gosub @DANCE_3932
31@ = -1
return 
goto @DANCE_5645

:DANCE_5629
gosub @DANCE_4559
31@ = -1
return 

:DANCE_5645
return 

:DANCE_5647
switch_start 17@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @DANCE_6700 {caseNum1} -1 {caseLabel1} @DANCE_5710 {caseNum2} 4 {caseLabel2} @DANCE_5908 {caseNum3} 8 {caseLabel3} @DANCE_6106 {caseNum4} 12 {caseLabel4} @DANCE_6304 {caseNum5} 16 {caseLabel5} @DANCE_6502 {caseNum6} -1 {caseLabel6} @DANCE_6700 {caseNum7} -1 {caseLabel7} @DANCE_6700

:DANCE_5710
if and
  5@ == -1
  $5314[0] > 0.0
goto_if_false @DANCE_5784
Camera.SetFixedPosition($5314[0], $5319[0], $5324[0], 0.0, 0.0, 0.0)
Camera.PointAtPoint($5329[0], $5334[0], $5339[0], SwitchType.JumpCut)
goto @DANCE_5901

:DANCE_5784
8@, 9@, 10@ = Char.GetOffsetInWorldCoords($scplayer, -2.3176, 0.9635, 0.5141)
0@, 1@, 2@ = Char.GetOffsetInWorldCoords($scplayer, -1.3381, 0.8235, 0.6587)
10@ -= 1.0
2@ -= 1.0
Camera.SetFixedPosition(8@, 9@, 10@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(0@, 1@, 2@, SwitchType.JumpCut)

:DANCE_5901
goto @DANCE_6700

:DANCE_5908
if and
  5@ == -1
  $5314[1] > 0.0
goto_if_false @DANCE_5982
Camera.SetFixedPosition($5314[1], $5319[1], $5324[1], 0.0, 0.0, 0.0)
Camera.PointAtPoint($5329[1], $5334[1], $5339[1], SwitchType.JumpCut)
goto @DANCE_6099

:DANCE_5982
8@, 9@, 10@ = Char.GetOffsetInWorldCoords($scplayer, 3.5814, 0.8987, 0.6651)
0@, 1@, 2@ = Char.GetOffsetInWorldCoords($scplayer, 2.6071, 0.853, 0.8857)
10@ -= 1.0
2@ -= 1.0
Camera.SetFixedPosition(8@, 9@, 10@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(0@, 1@, 2@, SwitchType.JumpCut)

:DANCE_6099
goto @DANCE_6700

:DANCE_6106
if and
  5@ == -1
  $5314[2] > 0.0
goto_if_false @DANCE_6180
Camera.SetFixedPosition($5314[2], $5319[2], $5324[2], 0.0, 0.0, 0.0)
Camera.PointAtPoint($5329[2], $5334[2], $5339[2], SwitchType.JumpCut)
goto @DANCE_6297

:DANCE_6180
8@, 9@, 10@ = Char.GetOffsetInWorldCoords($scplayer, 0.3843, 2.9502, 1.8476)
0@, 1@, 2@ = Char.GetOffsetInWorldCoords($scplayer, 0.461, 2.0089, 1.5188)
10@ -= 1.0
2@ -= 1.0
Camera.SetFixedPosition(8@, 9@, 10@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(0@, 1@, 2@, SwitchType.JumpCut)

:DANCE_6297
goto @DANCE_6700

:DANCE_6304
if and
  5@ == -1
  $5314[3] > 0.0
goto_if_false @DANCE_6378
Camera.SetFixedPosition($5314[3], $5319[3], $5324[3], 0.0, 0.0, 0.0)
Camera.PointAtPoint($5329[3], $5334[3], $5339[3], SwitchType.JumpCut)
goto @DANCE_6495

:DANCE_6378
8@, 9@, 10@ = Char.GetOffsetInWorldCoords($scplayer, -2.2621, 0.1226, 0.6863)
0@, 1@, 2@ = Char.GetOffsetInWorldCoords($scplayer, -1.2706, 0.1649, 0.8096)
10@ -= 1.0
2@ -= 1.0
Camera.SetFixedPosition(8@, 9@, 10@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(0@, 1@, 2@, SwitchType.JumpCut)

:DANCE_6495
goto @DANCE_6700

:DANCE_6502
if and
  5@ == -1
  $5314[4] > 0.0
goto_if_false @DANCE_6576
Camera.SetFixedPosition($5314[4], $5319[4], $5324[4], 0.0, 0.0, 0.0)
Camera.PointAtPoint($5329[4], $5334[4], $5339[4], SwitchType.JumpCut)
goto @DANCE_6693

:DANCE_6576
8@, 9@, 10@ = Char.GetOffsetInWorldCoords($scplayer, -1.6647, 1.7322, 2.3217)
0@, 1@, 2@ = Char.GetOffsetInWorldCoords($scplayer, -0.8677, 1.3108, 1.889)
10@ -= 1.0
2@ -= 1.0
Camera.SetFixedPosition(8@, 9@, 10@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(0@, 1@, 2@, SwitchType.JumpCut)

:DANCE_6693
goto @DANCE_6700

:DANCE_6700
return 

:DANCE_6702
if 
  5@ <> -1
goto_if_false @DANCE_6883
8@, 9@, 10@ = Char.GetOffsetInWorldCoords($scplayer, 1.0, 1.3, 0.0)
10@ = World.GetGroundZFor3DCoord(8@, 9@, 10@)
if 
  Char.IsDead(5@)
goto_if_false @DANCE_6793
gosub @DANCE_7528
goto @DANCE_6836

:DANCE_6793
if 
  Char.IsGroupMember(5@, $Players_Group)
goto_if_false @DANCE_6817
Char.RemoveFromGroup(5@)

:DANCE_6817
Char.ClearTasksImmediately(5@)
Char.SetCoordinates(5@, 8@, 9@, 10@)

:DANCE_6836
if and
  not Char.IsDead(5@)
  not Char.IsDead($scplayer)
goto_if_false @DANCE_6883
11@ = Char.GetHeading($scplayer)
11@ += 180.0
Char.SetHeading(5@, 11@)

:DANCE_6883
return 

:DANCE_6885
switch_start 25@ {numCases} 15 {hasDefaultCase} 1 {defaultLabel} @DANCE_7013 {caseNum1} 2 {caseLabel1} @DANCE_7042 {caseNum2} 3 {caseLabel2} @DANCE_7071 {caseNum3} 4 {caseLabel3} @DANCE_7100 {caseNum4} 5 {caseLabel4} @DANCE_7129 {caseNum5} 6 {caseLabel5} @DANCE_7158 {caseNum6} 7 {caseLabel6} @DANCE_7187 {caseNum7} 8 {caseLabel7} @DANCE_7216
switch_continued 9 {caseLabel1} @DANCE_7245 {caseNum2} 10 {caseLabel2} @DANCE_7274 {caseNum3} 11 {caseLabel3} @DANCE_7304 {caseNum4} 12 {caseLabel4} @DANCE_7334 {caseNum5} 13 {caseLabel5} @DANCE_7364 {caseNum6} 14 {caseLabel6} @DANCE_7394 {caseNum7} 15 {caseLabel7} @DANCE_7424 {caseNum8} 16 {caseLabel8} @DANCE_7454 {caseNum9} -1 {caseLabel9} @DANCE_7484

:DANCE_7013
set_var_text_label16 v$5302 = "DANCE_G1"
25@ = 2
goto @DANCE_7484

:DANCE_7042
set_var_text_label16 v$5302 = "DANCE_G2"
25@ += 1
goto @DANCE_7484

:DANCE_7071
set_var_text_label16 v$5302 = "DANCE_G3"
25@ += 1
goto @DANCE_7484

:DANCE_7100
set_var_text_label16 v$5302 = "DANCE_G4"
25@ += 1
goto @DANCE_7484

:DANCE_7129
set_var_text_label16 v$5302 = "DANCE_G5"
25@ += 1
goto @DANCE_7484

:DANCE_7158
set_var_text_label16 v$5302 = "DANCE_G6"
25@ += 1
goto @DANCE_7484

:DANCE_7187
set_var_text_label16 v$5302 = "DANCE_G7"
25@ += 1
goto @DANCE_7484

:DANCE_7216
set_var_text_label16 v$5302 = "DANCE_G8"
25@ += 1
goto @DANCE_7484

:DANCE_7245
set_var_text_label16 v$5302 = "DANCE_G9"
25@ += 1
goto @DANCE_7484

:DANCE_7274
set_var_text_label16 v$5302 = "DANCE_G10"
25@ += 1
goto @DANCE_7484

:DANCE_7304
set_var_text_label16 v$5302 = "DANCE_G11"
25@ += 1
goto @DANCE_7484

:DANCE_7334
set_var_text_label16 v$5302 = "DANCE_G12"
25@ += 1
goto @DANCE_7484

:DANCE_7364
set_var_text_label16 v$5302 = "DANCE_G13"
25@ += 1
goto @DANCE_7484

:DANCE_7394
set_var_text_label16 v$5302 = "DANCE_G14"
25@ += 1
goto @DANCE_7484

:DANCE_7424
set_var_text_label16 v$5302 = "DANCE_G15"
25@ += 1
goto @DANCE_7484

:DANCE_7454
set_var_text_label16 v$5302 = "DANCE_G16"
25@ += 1
goto @DANCE_7484

:DANCE_7484
if 
  not Char.IsDead(5@)
goto_if_false @DANCE_7526
Task.PlayAnimNonInterruptable(5@, v$5302, v$5306, 4.0, False, False, False, False, 0)

:DANCE_7526
return 

:DANCE_7528
13@ = Math.RandomIntInRange(1, 5)
switch_start 13@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @DANCE_7885 {caseNum1} 1 {caseLabel1} @DANCE_7600 {caseNum2} 2 {caseLabel2} @DANCE_7657 {caseNum3} 3 {caseLabel3} @DANCE_7714 {caseNum4} 4 {caseLabel4} @DANCE_7771 {caseNum5} 5 {caseLabel5} @DANCE_7828 {caseNum6} -1 {caseLabel6} @DANCE_7885 {caseNum7} -1 {caseLabel7} @DANCE_7885

:DANCE_7600
if 
  not Streaming.HasModelLoaded(12)
goto_if_false @DANCE_7630
Streaming.RequestModel(12)
wait 0
goto @DANCE_7600

:DANCE_7630
5@ = Char.Create(PedType.CivFemale, 12, 8@, 9@, 10@)
return 
goto @DANCE_7885

:DANCE_7657
if 
  not Streaming.HasModelLoaded(56)
goto_if_false @DANCE_7687
Streaming.RequestModel(56)
wait 0
goto @DANCE_7657

:DANCE_7687
5@ = Char.Create(PedType.CivFemale, 56, 8@, 9@, 10@)
return 
goto @DANCE_7885

:DANCE_7714
if 
  not Streaming.HasModelLoaded(93)
goto_if_false @DANCE_7744
Streaming.RequestModel(93)
wait 0
goto @DANCE_7714

:DANCE_7744
5@ = Char.Create(PedType.CivFemale, 93, 8@, 9@, 10@)
return 
goto @DANCE_7885

:DANCE_7771
if 
  not Streaming.HasModelLoaded(40)
goto_if_false @DANCE_7801
Streaming.RequestModel(40)
wait 0
goto @DANCE_7771

:DANCE_7801
5@ = Char.Create(PedType.CivFemale, 40, 8@, 9@, 10@)
return 
goto @DANCE_7885

:DANCE_7828
if 
  not Streaming.HasModelLoaded(91)
goto_if_false @DANCE_7858
Streaming.RequestModel(91)
wait 0
goto @DANCE_7828

:DANCE_7858
5@ = Char.Create(PedType.CivFemale, 91, 8@, 9@, 10@)
return 
goto @DANCE_7885

:DANCE_7885
return 

:DANCE_7887
if 
  not is_var_text_label16_empty v$iTerminateDanceMiniGame
goto_if_false @DANCE_7948
14@, 13@, 15@ = Audio.GetBeatProximity(0)
if 
  13@ == 33
goto_if_false @DANCE_7948
6@ = 2
7@ = 0

:DANCE_7948
return 

:DANCE_7950
switch_start 24@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @DANCE_8013 {caseNum1} 2 {caseLabel1} @DANCE_8265 {caseNum2} 3 {caseLabel2} @DANCE_8517 {caseNum3} -1 {caseLabel3} @DANCE_8769 {caseNum4} -1 {caseLabel4} @DANCE_8769 {caseNum5} -1 {caseLabel5} @DANCE_8769 {caseNum6} -1 {caseLabel6} @DANCE_8769 {caseNum7} -1 {caseLabel7} @DANCE_8769

:DANCE_8013
if 
  22@ == 1
goto_if_false @DANCE_8047
Text.PrintBig('DNC_005', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8047
if 
  22@ == 2
goto_if_false @DANCE_8081
Text.PrintBig('DNC_006', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8081
if 
  22@ == 3
goto_if_false @DANCE_8115
Text.PrintBig('DNC_007', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8115
if 
  22@ == 0
goto_if_false @DANCE_8149
Text.PrintBig('DNC_008', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8149
if 
  22@ == 4
goto_if_false @DANCE_8183
Text.PrintBig('DNC_009', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8183
if 
  22@ == 10
goto_if_false @DANCE_8217
Text.PrintBig('DNC_010', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8217
if 
  22@ == 11
goto_if_false @DANCE_8251
Text.PrintBig('DNC_011', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8251
24@ = 2
goto @DANCE_8769

:DANCE_8265
if 
  22@ == 1
goto_if_false @DANCE_8299
Text.PrintBig('DNC_012', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8299
if 
  22@ == 2
goto_if_false @DANCE_8333
Text.PrintBig('DNC_013', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8333
if 
  22@ == 3
goto_if_false @DANCE_8367
Text.PrintBig('DNC_014', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8367
if 
  22@ == 0
goto_if_false @DANCE_8401
Text.PrintBig('DNC_015', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8401
if 
  22@ == 4
goto_if_false @DANCE_8435
Text.PrintBig('DNC_016', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8435
if 
  22@ == 10
goto_if_false @DANCE_8469
Text.PrintBig('DNC_017', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8469
if 
  22@ == 11
goto_if_false @DANCE_8503
Text.PrintBig('DNC_018', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8503
24@ += 1
goto @DANCE_8769

:DANCE_8517
if 
  22@ == 1
goto_if_false @DANCE_8551
Text.PrintBig('DNC_019', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8551
if 
  22@ == 2
goto_if_false @DANCE_8585
Text.PrintBig('DNC_020', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8585
if 
  22@ == 3
goto_if_false @DANCE_8619
Text.PrintBig('DNC_021', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8619
if 
  22@ == 0
goto_if_false @DANCE_8653
Text.PrintBig('DNC_022', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8653
if 
  22@ == 4
goto_if_false @DANCE_8687
Text.PrintBig('DNC_023', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8687
if 
  22@ == 10
goto_if_false @DANCE_8721
Text.PrintBig('DNC_024', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8721
if 
  22@ == 11
goto_if_false @DANCE_8755
Text.PrintBig('DNC_025', 1000, TextStyle.MiddleSmallerHigher)

:DANCE_8755
24@ += 1
goto @DANCE_8769

:DANCE_8769
return 

:DANCE_8771
set_lvar_int_to_lvar_int 13@ = 26@
add_int_lvar_to_int_lvar 13@ += 27@
add_int_lvar_to_int_lvar 13@ += 28@
if 
  13@ > 0
goto_if_false @DANCE_9296
if 
  13@ >= 4
goto_if_false @DANCE_9296
if 
  28@ == 4
goto_if_false @DANCE_8966
if or
  29@ == 1
  29@ == 2
goto_if_false @DANCE_8920
$iSetRCPanic = 2
TIMERA = 0
Text.PrintBig('DNC_002', 50000, TextStyle.LightBlueTop)
29@ = 2
goto @DANCE_8959

:DANCE_8920
$iSetRCPanic = 2
TIMERA = 0
Text.PrintBig('DNC_004', 50000, TextStyle.LightBlueTop)
29@ = 1

:DANCE_8959
goto @DANCE_9275

:DANCE_8966
if 
  is_int_lvar_greater_than_int_lvar 26@ > 27@
goto_if_false @DANCE_9089
if 
  29@ <> 1
goto_if_false @DANCE_9024
$iSetRCPanic = 4
TIMERA = 0
goto @DANCE_9057

:DANCE_9024
if 
  TIMERA >= 10000
goto_if_false @DANCE_9057
$iSetRCPanic = 4
TIMERA = 0

:DANCE_9057
Text.PrintBig('DNC_004', 50000, TextStyle.LightBlueTop)
29@ = 1
goto @DANCE_9275

:DANCE_9089
if 
  29@ == 2
goto_if_false @DANCE_9153
$iSetRCPanic = 3
TIMERA = 0
Text.PrintBig('DNC_004', 50000, TextStyle.LightBlueTop)
29@ = 1
goto @DANCE_9275

:DANCE_9153
if 
  29@ == 1
goto_if_false @DANCE_9217
$iSetRCPanic = 5
TIMERA = 0
Text.PrintBig('DNC_003', 50000, TextStyle.LightBlueTop)
29@ = 0
goto @DANCE_9275

:DANCE_9217
if 
  TIMERA >= 10000
goto_if_false @DANCE_9250
$iSetRCPanic = 5
TIMERA = 0

:DANCE_9250
Text.PrintBig('DNC_003', 50000, TextStyle.LightBlueTop)
29@ = 0

:DANCE_9275
28@ = 0
26@ = 0
27@ = 0

:DANCE_9296
return 

:DANCE_9298
Text.SetRightJustify(False)
Text.SetProportional(True)
Text.SetBackground(True)
Text.SetScale(0.5014, 1.8889)
Text.SetEdge(2, 0, 0, 0, 255)
if 
  6@ == 3
goto_if_false @DANCE_9388
Text.SetWrapX(240.0)
Text.Display(32.0, 32.0, 'DNC_H2')
goto @DANCE_9434

:DANCE_9388
if 
  6@ <> 2
goto_if_false @DANCE_9434
Text.SetWrapX(220.0)
Text.Display(32.0, 32.0, 'DNC_H1')

:DANCE_9434
return 

:DANCE_9436
switch_start $iDance_SpeechRequest {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @DANCE_9862 {caseNum1} 0 {caseLabel1} @DANCE_9499 {caseNum2} 1 {caseLabel2} @DANCE_9822 {caseNum3} 6 {caseLabel3} @DANCE_9662 {caseNum4} 8 {caseLabel4} @DANCE_9702 {caseNum5} 9 {caseLabel5} @DANCE_9742 {caseNum6} 10 {caseLabel6} @DANCE_9782 {caseNum7} -1 {caseLabel7} @DANCE_9862

:DANCE_9499
if 
  $iSetRCPanic == 2
goto_if_false @DANCE_9538
$iDance_SpeechRequest = 6
$iSetRCPanic = -1
goto @DANCE_9862

:DANCE_9538
if 
  $iSetRCPanic == 3
goto_if_false @DANCE_9577
$iDance_SpeechRequest = 8
$iSetRCPanic = -1
goto @DANCE_9862

:DANCE_9577
if 
  $iSetRCPanic == 4
goto_if_false @DANCE_9616
$iDance_SpeechRequest = 9
$iSetRCPanic = -1
goto @DANCE_9862

:DANCE_9616
if 
  $iSetRCPanic == 5
goto_if_false @DANCE_9655
$iDance_SpeechRequest = 10
$iSetRCPanic = -1
goto @DANCE_9862

:DANCE_9655
goto @DANCE_9862

:DANCE_9662
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot4)
goto_if_false @DANCE_9695
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
gosub @DANCE_9864
$iDance_SpeechRequest = 1

:DANCE_9695
goto @DANCE_9862

:DANCE_9702
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot4)
goto_if_false @DANCE_9735
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
gosub @DANCE_11630
$iDance_SpeechRequest = 1

:DANCE_9735
goto @DANCE_9862

:DANCE_9742
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot4)
goto_if_false @DANCE_9775
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
gosub @DANCE_13396
$iDance_SpeechRequest = 1

:DANCE_9775
goto @DANCE_9862

:DANCE_9782
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot4)
goto_if_false @DANCE_9815
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
gosub @DANCE_15162
$iDance_SpeechRequest = 1

:DANCE_9815
goto @DANCE_9862

:DANCE_9822
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @DANCE_9855
Audio.AttachMissionAudioToChar(MissionAudioSlot.Slot4, $scplayer)
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)
$iDance_SpeechRequest = 0

:DANCE_9855
goto @DANCE_9862

:DANCE_9862
return 

:DANCE_9864
switch_start $iDance_SpeechState {numCases} 56 {hasDefaultCase} 1 {defaultLabel} @DANCE_10317 {caseNum1} 1 {caseLabel1} @DANCE_10340 {caseNum2} 2 {caseLabel2} @DANCE_10363 {caseNum3} 3 {caseLabel3} @DANCE_10386 {caseNum4} 4 {caseLabel4} @DANCE_10409 {caseNum5} 5 {caseLabel5} @DANCE_10432 {caseNum6} 6 {caseLabel6} @DANCE_10455 {caseNum7} 7 {caseLabel7} @DANCE_10478
switch_continued 8 {caseLabel1} @DANCE_10501 {caseNum2} 9 {caseLabel2} @DANCE_10524 {caseNum3} 10 {caseLabel3} @DANCE_10547 {caseNum4} 11 {caseLabel4} @DANCE_10570 {caseNum5} 12 {caseLabel5} @DANCE_10593 {caseNum6} 13 {caseLabel6} @DANCE_10616 {caseNum7} 14 {caseLabel7} @DANCE_10639 {caseNum8} 15 {caseLabel8} @DANCE_10662 {caseNum9} 16 {caseLabel9} @DANCE_10685
switch_continued 17 {caseLabel1} @DANCE_10708 {caseNum2} 18 {caseLabel2} @DANCE_10731 {caseNum3} 19 {caseLabel3} @DANCE_10754 {caseNum4} 20 {caseLabel4} @DANCE_10777 {caseNum5} 21 {caseLabel5} @DANCE_10800 {caseNum6} 22 {caseLabel6} @DANCE_10823 {caseNum7} 23 {caseLabel7} @DANCE_10846 {caseNum8} 24 {caseLabel8} @DANCE_10869 {caseNum9} 25 {caseLabel9} @DANCE_10892
switch_continued 26 {caseLabel1} @DANCE_10915 {caseNum2} 27 {caseLabel2} @DANCE_10938 {caseNum3} 28 {caseLabel3} @DANCE_10961 {caseNum4} 29 {caseLabel4} @DANCE_10984 {caseNum5} 30 {caseLabel5} @DANCE_11007 {caseNum6} 31 {caseLabel6} @DANCE_11030 {caseNum7} 32 {caseLabel7} @DANCE_11053 {caseNum8} 33 {caseLabel8} @DANCE_11076 {caseNum9} 34 {caseLabel9} @DANCE_11099
switch_continued 35 {caseLabel1} @DANCE_11122 {caseNum2} 36 {caseLabel2} @DANCE_11145 {caseNum3} 37 {caseLabel3} @DANCE_11168 {caseNum4} 38 {caseLabel4} @DANCE_11191 {caseNum5} 39 {caseLabel5} @DANCE_11214 {caseNum6} 40 {caseLabel6} @DANCE_11237 {caseNum7} 41 {caseLabel7} @DANCE_11260 {caseNum8} 42 {caseLabel8} @DANCE_11283 {caseNum9} 43 {caseLabel9} @DANCE_11306
switch_continued 44 {caseLabel1} @DANCE_11329 {caseNum2} 45 {caseLabel2} @DANCE_11352 {caseNum3} 46 {caseLabel3} @DANCE_11375 {caseNum4} 47 {caseLabel4} @DANCE_11398 {caseNum5} 48 {caseLabel5} @DANCE_11421 {caseNum6} 49 {caseLabel6} @DANCE_11444 {caseNum7} 50 {caseLabel7} @DANCE_11467 {caseNum8} 51 {caseLabel8} @DANCE_11490 {caseNum9} 52 {caseLabel9} @DANCE_11513
switch_continued 53 {caseLabel1} @DANCE_11536 {caseNum2} 54 {caseLabel2} @DANCE_11559 {caseNum3} 55 {caseLabel3} @DANCE_11582 {caseNum4} 56 {caseLabel4} @DANCE_11605 {caseNum5} -1 {caseLabel5} @DANCE_11628 {caseNum6} -1 {caseLabel6} @DANCE_11628 {caseNum7} -1 {caseLabel7} @DANCE_11628 {caseNum8} -1 {caseLabel8} @DANCE_11628 {caseNum9} -1 {caseLabel9} @DANCE_11628

:DANCE_10317
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40455)
$iDance_SpeechState = 1
goto @DANCE_11628

:DANCE_10340
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40400)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10363
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40401)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10386
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40402)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10409
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40403)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10432
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40404)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10455
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40405)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10478
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40406)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10501
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40407)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10524
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40408)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10547
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40409)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10570
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40410)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10593
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40411)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10616
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40412)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10639
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40413)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10662
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40414)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10685
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40415)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10708
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40416)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10731
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40417)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10754
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40418)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10777
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40419)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10800
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40420)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10823
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40421)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10846
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40422)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10869
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40423)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10892
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40424)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10915
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40425)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10938
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40426)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10961
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40427)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_10984
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40428)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11007
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40429)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11030
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40430)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11053
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40431)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11076
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40432)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11099
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40433)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11122
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40434)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11145
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40435)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11168
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40436)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11191
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40437)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11214
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40438)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11237
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40439)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11260
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40440)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11283
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40441)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11306
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40442)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11329
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40443)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11352
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40444)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11375
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40445)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11398
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40446)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11421
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40447)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11444
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40448)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11467
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40449)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11490
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40450)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11513
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40451)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11536
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40452)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11559
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40453)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11582
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40454)
$iDance_SpeechState += 1
goto @DANCE_11628

:DANCE_11605
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40455)
$iDance_SpeechState = 1
goto @DANCE_11628

:DANCE_11628
return 

:DANCE_11630
switch_start $iDance_SpeechState {numCases} 56 {hasDefaultCase} 1 {defaultLabel} @DANCE_12083 {caseNum1} 1 {caseLabel1} @DANCE_12106 {caseNum2} 2 {caseLabel2} @DANCE_12129 {caseNum3} 3 {caseLabel3} @DANCE_12152 {caseNum4} 4 {caseLabel4} @DANCE_12175 {caseNum5} 5 {caseLabel5} @DANCE_12198 {caseNum6} 6 {caseLabel6} @DANCE_12221 {caseNum7} 7 {caseLabel7} @DANCE_12244
switch_continued 8 {caseLabel1} @DANCE_12267 {caseNum2} 9 {caseLabel2} @DANCE_12290 {caseNum3} 10 {caseLabel3} @DANCE_12313 {caseNum4} 11 {caseLabel4} @DANCE_12336 {caseNum5} 12 {caseLabel5} @DANCE_12359 {caseNum6} 13 {caseLabel6} @DANCE_12382 {caseNum7} 14 {caseLabel7} @DANCE_12405 {caseNum8} 15 {caseLabel8} @DANCE_12428 {caseNum9} 16 {caseLabel9} @DANCE_12451
switch_continued 17 {caseLabel1} @DANCE_12474 {caseNum2} 18 {caseLabel2} @DANCE_12497 {caseNum3} 19 {caseLabel3} @DANCE_12520 {caseNum4} 20 {caseLabel4} @DANCE_12543 {caseNum5} 21 {caseLabel5} @DANCE_12566 {caseNum6} 22 {caseLabel6} @DANCE_12589 {caseNum7} 23 {caseLabel7} @DANCE_12612 {caseNum8} 24 {caseLabel8} @DANCE_12635 {caseNum9} 25 {caseLabel9} @DANCE_12658
switch_continued 26 {caseLabel1} @DANCE_12681 {caseNum2} 27 {caseLabel2} @DANCE_12704 {caseNum3} 28 {caseLabel3} @DANCE_12727 {caseNum4} 29 {caseLabel4} @DANCE_12750 {caseNum5} 30 {caseLabel5} @DANCE_12773 {caseNum6} 31 {caseLabel6} @DANCE_12796 {caseNum7} 32 {caseLabel7} @DANCE_12819 {caseNum8} 33 {caseLabel8} @DANCE_12842 {caseNum9} 34 {caseLabel9} @DANCE_12865
switch_continued 35 {caseLabel1} @DANCE_12888 {caseNum2} 36 {caseLabel2} @DANCE_12911 {caseNum3} 37 {caseLabel3} @DANCE_12934 {caseNum4} 38 {caseLabel4} @DANCE_12957 {caseNum5} 39 {caseLabel5} @DANCE_12980 {caseNum6} 40 {caseLabel6} @DANCE_13003 {caseNum7} 41 {caseLabel7} @DANCE_13026 {caseNum8} 42 {caseLabel8} @DANCE_13049 {caseNum9} 43 {caseLabel9} @DANCE_13072
switch_continued 44 {caseLabel1} @DANCE_13095 {caseNum2} 45 {caseLabel2} @DANCE_13118 {caseNum3} 46 {caseLabel3} @DANCE_13141 {caseNum4} 47 {caseLabel4} @DANCE_13164 {caseNum5} 48 {caseLabel5} @DANCE_13187 {caseNum6} 49 {caseLabel6} @DANCE_13210 {caseNum7} 50 {caseLabel7} @DANCE_13233 {caseNum8} 51 {caseLabel8} @DANCE_13256 {caseNum9} 52 {caseLabel9} @DANCE_13279
switch_continued 53 {caseLabel1} @DANCE_13302 {caseNum2} 54 {caseLabel2} @DANCE_13325 {caseNum3} 55 {caseLabel3} @DANCE_13348 {caseNum4} 56 {caseLabel4} @DANCE_13371 {caseNum5} -1 {caseLabel5} @DANCE_13394 {caseNum6} -1 {caseLabel6} @DANCE_13394 {caseNum7} -1 {caseLabel7} @DANCE_13394 {caseNum8} -1 {caseLabel8} @DANCE_13394 {caseNum9} -1 {caseLabel9} @DANCE_13394

:DANCE_12083
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40655)
$iDance_SpeechState = 1
goto @DANCE_13394

:DANCE_12106
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40600)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12129
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40601)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12152
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40602)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12175
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40603)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12198
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40604)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12221
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40605)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12244
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40606)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12267
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40607)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12290
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40608)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12313
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40609)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12336
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40610)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12359
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40611)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12382
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40612)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12405
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40613)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12428
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40614)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12451
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40615)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12474
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40616)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12497
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40617)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12520
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40618)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12543
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40619)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12566
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40620)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12589
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40621)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12612
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40622)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12635
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40623)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12658
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40624)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12681
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40625)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12704
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40626)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12727
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40627)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12750
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40628)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12773
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40629)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12796
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40630)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12819
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40631)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12842
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40632)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12865
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40633)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12888
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40634)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12911
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40635)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12934
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40636)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12957
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40637)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_12980
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40638)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13003
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40639)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13026
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40640)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13049
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40641)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13072
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40642)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13095
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40643)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13118
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40644)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13141
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40645)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13164
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40646)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13187
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40647)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13210
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40648)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13233
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40649)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13256
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40650)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13279
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40651)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13302
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40652)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13325
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40653)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13348
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40654)
$iDance_SpeechState += 1
goto @DANCE_13394

:DANCE_13371
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40655)
$iDance_SpeechState = 1
goto @DANCE_13394

:DANCE_13394
return 

:DANCE_13396
switch_start $iDance_SpeechState {numCases} 56 {hasDefaultCase} 1 {defaultLabel} @DANCE_13849 {caseNum1} 1 {caseLabel1} @DANCE_13872 {caseNum2} 2 {caseLabel2} @DANCE_13895 {caseNum3} 3 {caseLabel3} @DANCE_13918 {caseNum4} 4 {caseLabel4} @DANCE_13941 {caseNum5} 5 {caseLabel5} @DANCE_13964 {caseNum6} 6 {caseLabel6} @DANCE_13987 {caseNum7} 7 {caseLabel7} @DANCE_14010
switch_continued 8 {caseLabel1} @DANCE_14033 {caseNum2} 9 {caseLabel2} @DANCE_14056 {caseNum3} 10 {caseLabel3} @DANCE_14079 {caseNum4} 11 {caseLabel4} @DANCE_14102 {caseNum5} 12 {caseLabel5} @DANCE_14125 {caseNum6} 13 {caseLabel6} @DANCE_14148 {caseNum7} 14 {caseLabel7} @DANCE_14171 {caseNum8} 15 {caseLabel8} @DANCE_14194 {caseNum9} 16 {caseLabel9} @DANCE_14217
switch_continued 17 {caseLabel1} @DANCE_14240 {caseNum2} 18 {caseLabel2} @DANCE_14263 {caseNum3} 19 {caseLabel3} @DANCE_14286 {caseNum4} 20 {caseLabel4} @DANCE_14309 {caseNum5} 21 {caseLabel5} @DANCE_14332 {caseNum6} 22 {caseLabel6} @DANCE_14355 {caseNum7} 23 {caseLabel7} @DANCE_14378 {caseNum8} 24 {caseLabel8} @DANCE_14401 {caseNum9} 25 {caseLabel9} @DANCE_14424
switch_continued 26 {caseLabel1} @DANCE_14447 {caseNum2} 27 {caseLabel2} @DANCE_14470 {caseNum3} 28 {caseLabel3} @DANCE_14493 {caseNum4} 29 {caseLabel4} @DANCE_14516 {caseNum5} 30 {caseLabel5} @DANCE_14539 {caseNum6} 31 {caseLabel6} @DANCE_14562 {caseNum7} 32 {caseLabel7} @DANCE_14585 {caseNum8} 33 {caseLabel8} @DANCE_14608 {caseNum9} 34 {caseLabel9} @DANCE_14631
switch_continued 35 {caseLabel1} @DANCE_14654 {caseNum2} 36 {caseLabel2} @DANCE_14677 {caseNum3} 37 {caseLabel3} @DANCE_14700 {caseNum4} 38 {caseLabel4} @DANCE_14723 {caseNum5} 39 {caseLabel5} @DANCE_14746 {caseNum6} 40 {caseLabel6} @DANCE_14769 {caseNum7} 41 {caseLabel7} @DANCE_14792 {caseNum8} 42 {caseLabel8} @DANCE_14815 {caseNum9} 43 {caseLabel9} @DANCE_14838
switch_continued 44 {caseLabel1} @DANCE_14861 {caseNum2} 45 {caseLabel2} @DANCE_14884 {caseNum3} 46 {caseLabel3} @DANCE_14907 {caseNum4} 47 {caseLabel4} @DANCE_14930 {caseNum5} 48 {caseLabel5} @DANCE_14953 {caseNum6} 49 {caseLabel6} @DANCE_14976 {caseNum7} 50 {caseLabel7} @DANCE_14999 {caseNum8} 51 {caseLabel8} @DANCE_15022 {caseNum9} 52 {caseLabel9} @DANCE_15045
switch_continued 53 {caseLabel1} @DANCE_15068 {caseNum2} 54 {caseLabel2} @DANCE_15091 {caseNum3} 55 {caseLabel3} @DANCE_15114 {caseNum4} 56 {caseLabel4} @DANCE_15137 {caseNum5} -1 {caseLabel5} @DANCE_15160 {caseNum6} -1 {caseLabel6} @DANCE_15160 {caseNum7} -1 {caseLabel7} @DANCE_15160 {caseNum8} -1 {caseLabel8} @DANCE_15160 {caseNum9} -1 {caseLabel9} @DANCE_15160

:DANCE_13849
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40855)
$iDance_SpeechState = 1
goto @DANCE_15160

:DANCE_13872
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40800)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_13895
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40801)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_13918
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40802)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_13941
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40803)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_13964
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40804)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_13987
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40805)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14010
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40806)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14033
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40807)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14056
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40808)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14079
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40809)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14102
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40810)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14125
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40811)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14148
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40812)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14171
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40813)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14194
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40814)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14217
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40815)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14240
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40816)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14263
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40817)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14286
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40818)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14309
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40819)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14332
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40820)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14355
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40821)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14378
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40822)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14401
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40823)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14424
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40824)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14447
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40825)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14470
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40826)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14493
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40827)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14516
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40828)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14539
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40829)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14562
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40830)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14585
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40831)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14608
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40832)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14631
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40833)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14654
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40834)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14677
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40835)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14700
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40836)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14723
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40837)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14746
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40838)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14769
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40839)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14792
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40840)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14815
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40841)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14838
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40842)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14861
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40843)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14884
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40844)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14907
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40845)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14930
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40846)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14953
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40847)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14976
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40848)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_14999
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40849)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_15022
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40850)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_15045
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40851)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_15068
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40852)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_15091
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40853)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_15114
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40854)
$iDance_SpeechState += 1
goto @DANCE_15160

:DANCE_15137
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 40855)
$iDance_SpeechState = 1
goto @DANCE_15160

:DANCE_15160
return 

:DANCE_15162
switch_start $iDance_SpeechState {numCases} 56 {hasDefaultCase} 1 {defaultLabel} @DANCE_15615 {caseNum1} 1 {caseLabel1} @DANCE_15638 {caseNum2} 2 {caseLabel2} @DANCE_15661 {caseNum3} 3 {caseLabel3} @DANCE_15684 {caseNum4} 4 {caseLabel4} @DANCE_15707 {caseNum5} 5 {caseLabel5} @DANCE_15730 {caseNum6} 6 {caseLabel6} @DANCE_15753 {caseNum7} 7 {caseLabel7} @DANCE_15776
switch_continued 8 {caseLabel1} @DANCE_15799 {caseNum2} 9 {caseLabel2} @DANCE_15822 {caseNum3} 10 {caseLabel3} @DANCE_15845 {caseNum4} 11 {caseLabel4} @DANCE_15868 {caseNum5} 12 {caseLabel5} @DANCE_15891 {caseNum6} 13 {caseLabel6} @DANCE_15914 {caseNum7} 14 {caseLabel7} @DANCE_15937 {caseNum8} 15 {caseLabel8} @DANCE_15960 {caseNum9} 16 {caseLabel9} @DANCE_15983
switch_continued 17 {caseLabel1} @DANCE_16006 {caseNum2} 18 {caseLabel2} @DANCE_16029 {caseNum3} 19 {caseLabel3} @DANCE_16052 {caseNum4} 20 {caseLabel4} @DANCE_16075 {caseNum5} 21 {caseLabel5} @DANCE_16098 {caseNum6} 22 {caseLabel6} @DANCE_16121 {caseNum7} 23 {caseLabel7} @DANCE_16144 {caseNum8} 24 {caseLabel8} @DANCE_16167 {caseNum9} 25 {caseLabel9} @DANCE_16190
switch_continued 26 {caseLabel1} @DANCE_16213 {caseNum2} 27 {caseLabel2} @DANCE_16236 {caseNum3} 28 {caseLabel3} @DANCE_16259 {caseNum4} 29 {caseLabel4} @DANCE_16282 {caseNum5} 30 {caseLabel5} @DANCE_16305 {caseNum6} 31 {caseLabel6} @DANCE_16328 {caseNum7} 32 {caseLabel7} @DANCE_16351 {caseNum8} 33 {caseLabel8} @DANCE_16374 {caseNum9} 34 {caseLabel9} @DANCE_16397
switch_continued 35 {caseLabel1} @DANCE_16420 {caseNum2} 36 {caseLabel2} @DANCE_16443 {caseNum3} 37 {caseLabel3} @DANCE_16466 {caseNum4} 38 {caseLabel4} @DANCE_16489 {caseNum5} 39 {caseLabel5} @DANCE_16512 {caseNum6} 40 {caseLabel6} @DANCE_16535 {caseNum7} 41 {caseLabel7} @DANCE_16558 {caseNum8} 42 {caseLabel8} @DANCE_16581 {caseNum9} 43 {caseLabel9} @DANCE_16604
switch_continued 44 {caseLabel1} @DANCE_16627 {caseNum2} 45 {caseLabel2} @DANCE_16650 {caseNum3} 46 {caseLabel3} @DANCE_16673 {caseNum4} 47 {caseLabel4} @DANCE_16696 {caseNum5} 48 {caseLabel5} @DANCE_16719 {caseNum6} 49 {caseLabel6} @DANCE_16742 {caseNum7} 50 {caseLabel7} @DANCE_16765 {caseNum8} 51 {caseLabel8} @DANCE_16788 {caseNum9} 52 {caseLabel9} @DANCE_16811
switch_continued 53 {caseLabel1} @DANCE_16834 {caseNum2} 54 {caseLabel2} @DANCE_16857 {caseNum3} 55 {caseLabel3} @DANCE_16880 {caseNum4} 56 {caseLabel4} @DANCE_16903 {caseNum5} -1 {caseLabel5} @DANCE_16926 {caseNum6} -1 {caseLabel6} @DANCE_16926 {caseNum7} -1 {caseLabel7} @DANCE_16926 {caseNum8} -1 {caseLabel8} @DANCE_16926 {caseNum9} -1 {caseLabel9} @DANCE_16926

:DANCE_15615
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41055)
$iDance_SpeechState = 1
goto @DANCE_16926

:DANCE_15638
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41000)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15661
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41001)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15684
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41002)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15707
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41003)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15730
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41004)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15753
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41005)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15776
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41006)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15799
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41007)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15822
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41008)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15845
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41009)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15868
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41010)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15891
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41011)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15914
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41012)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15937
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41013)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15960
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41014)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_15983
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41015)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16006
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41016)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16029
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41017)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16052
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41018)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16075
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41019)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16098
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41020)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16121
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41021)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16144
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41022)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16167
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41023)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16190
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41024)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16213
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41025)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16236
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41026)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16259
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41027)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16282
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41028)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16305
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41029)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16328
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41030)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16351
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41031)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16374
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41032)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16397
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41033)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16420
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41034)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16443
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41035)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16466
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41036)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16489
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41037)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16512
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41038)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16535
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41039)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16558
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41040)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16581
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41041)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16604
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41042)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16627
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41043)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16650
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41044)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16673
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41045)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16696
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41046)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16719
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41047)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16742
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41048)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16765
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41049)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16788
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41050)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16811
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41051)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16834
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41052)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16857
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41053)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16880
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41054)
$iDance_SpeechState += 1
goto @DANCE_16926

:DANCE_16903
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 41055)
$iDance_SpeechState = 1
goto @DANCE_16926

:DANCE_16926
return 

:DANCE_16928
$bd_terminate_script = 1
$iSwitchOffDanceMiniGame = 0
Streaming.RemoveAnimation(v$5306)
Text.ClearPrints
if 
  not Char.IsDead(5@)
goto_if_false @DANCE_17042
if and
  not Char.IsModel(5@, 195)
  not Char.IsModel(5@, 192)
  not Char.IsModel(5@, 191)
  not Char.IsModel(5@, 190)
  not Char.IsModel(5@, 193)
  not Char.IsModel(5@, 194)
goto_if_false @DANCE_17042
13@ = Char.GetModel(5@)
Streaming.MarkModelAsNoLongerNeeded(13@)
Char.Delete(5@)

:DANCE_17042
13@ = Audio.GetBeatTrackStatus()
if 
  is_int_lvar_equal_to_constant 13@ == 3
goto_if_false @DANCE_17067
Audio.StopBeatTrack

:DANCE_17067
13@ = 0

:DANCE_17074
$5314(13@,5f) = 0.0
$5319(13@,5f) = 0.0
$5324(13@,5f) = 0.0
$5329(13@,5f) = 0.0
$5334(13@,5f) = 0.0
$5339(13@,5f) = 0.0
13@ += 1
  13@ >= 5
goto_if_false @DANCE_17074
Hud.ForceBigMessageAndCounter(False)
Text.UseCommands(False)
if 
  $iDanceReport >= 0
goto_if_false @DANCE_17213
Stat.SetInt(StatId.LatestDanceScore, $iDanceReport)

:DANCE_17213
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Player.SetControl($player1, True)
clear_global_var_bit_const $d6_trip_skips_available {n} 31
Game.SetMinigameInProgress(False)
terminate_this_script 
return 
write_debug v$iTerminateDanceMiniGame
13@, 13@, 13@ = Audio.GetBeatProximity(1)
write_debug_with_int "NEXT_BEAT_NUMBER" {_p2} 13@
return 
terminate_this_script 

//-------------External script 36 (SHOPKEEPER)---------------

:SKBRAIN
script_name 'SKBRAIN'
2@ = 0
if 
  2@ == 1
goto_if_false @SKBRAIN_114
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)
1@ = Attractor.Add(0.0, 0.0, 0.0, 0.0, 0.0, -1)
6@ = Object.Create(0, 0.0, 0.0, 0.0)

:SKBRAIN_114
if 
  not Char.IsDead(0@)
goto_if_false @SKBRAIN_138
Char.SetDecisionMaker(0@, $iGlobalShopkeeperDM)

:SKBRAIN_138
Streaming.RequestAnimation("FOOD")

:SKBRAIN_146
if 
  not Streaming.HasAnimationLoaded("FOOD")
goto_if_false @SKBRAIN_176
wait 0
goto @SKBRAIN_146

:SKBRAIN_176
3@ = 1
4@ = 0
5@ = 0
7@ = 0

:SKBRAIN_204
wait 0
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
  $iTerminateAllAmbience == 0
goto_if_false @SKBRAIN_377
$iAreaCode = Char.GetAreaVisible($scplayer)
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @SKBRAIN_283
gosub @SKBRAIN_1552
goto @SKBRAIN_370

:SKBRAIN_283
if or
  Player.IsTargetingChar($player1, 0@)
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @SKBRAIN_331
if 
  Object.DoesExist(6@)
goto_if_false @SKBRAIN_331
Object.Delete(6@)

:SKBRAIN_331
if 
  $iSetPizzaPanic == 0
goto_if_false @SKBRAIN_363
gosub @SKBRAIN_391
goto @SKBRAIN_370

:SKBRAIN_363
goto @SKBRAIN_1590

:SKBRAIN_370
goto @SKBRAIN_384

:SKBRAIN_377
gosub @SKBRAIN_1552

:SKBRAIN_384
goto @SKBRAIN_204

:SKBRAIN_391
switch_start 3@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SKBRAIN_496 {caseNum1} 1 {caseLabel1} @SKBRAIN_454 {caseNum2} 2 {caseLabel2} @SKBRAIN_468 {caseNum3} 3 {caseLabel3} @SKBRAIN_482 {caseNum4} -1 {caseLabel4} @SKBRAIN_496 {caseNum5} -1 {caseLabel5} @SKBRAIN_496 {caseNum6} -1 {caseLabel6} @SKBRAIN_496 {caseNum7} -1 {caseLabel7} @SKBRAIN_496

:SKBRAIN_454
gosub @SKBRAIN_498
goto @SKBRAIN_496

:SKBRAIN_468
gosub @SKBRAIN_841
goto @SKBRAIN_496

:SKBRAIN_482
gosub @SKBRAIN_1185
goto @SKBRAIN_496

:SKBRAIN_496
return 

:SKBRAIN_498
switch_start 4@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SKBRAIN_839 {caseNum1} 0 {caseLabel1} @SKBRAIN_561 {caseNum2} 1 {caseLabel2} @SKBRAIN_737 {caseNum3} -1 {caseLabel3} @SKBRAIN_839 {caseNum4} -1 {caseLabel4} @SKBRAIN_839 {caseNum5} -1 {caseLabel5} @SKBRAIN_839 {caseNum6} -1 {caseLabel6} @SKBRAIN_839 {caseNum7} -1 {caseLabel7} @SKBRAIN_839

:SKBRAIN_561
13@, 14@, 15@ = Char.GetOffsetInWorldCoords(0@, 0.0, 3.0, 3.0)
2@ = World.GetUserOfClosestMapAttractor(13@, 14@, 15@, 20.0, #CJ_FF_TILL_QUE, "PCUSTOM")
if 
  2@ > -1
goto_if_false @SKBRAIN_730
10@, 11@, 12@ = Char.GetOffsetInWorldCoords(0@, -5.0, -5.0, -5.0)
6@ = Object.Create(#PIZZAHIGH, 10@, 11@, 12@)
Task.PlayAnim(0@, "SHP_TRAY_IN", "FOOD", 4.0, False, False, False, False, -1)
4@ += 1

:SKBRAIN_730
goto @SKBRAIN_839

:SKBRAIN_737
9@ = 0.0
if 
  Char.IsPlayingAnim(0@, "SHP_TRAY_IN")
goto_if_false @SKBRAIN_832
9@ = Char.GetAnimCurrentTime(0@, "SHP_TRAY_IN")
if 
  9@ == 1.0
goto_if_false @SKBRAIN_832
4@ = 0
3@ += 1

:SKBRAIN_832
goto @SKBRAIN_839

:SKBRAIN_839
return 

:SKBRAIN_841
switch_start 4@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SKBRAIN_1183 {caseNum1} 0 {caseLabel1} @SKBRAIN_904 {caseNum2} 1 {caseLabel2} @SKBRAIN_1044 {caseNum3} 2 {caseLabel3} @SKBRAIN_1143 {caseNum4} -1 {caseLabel4} @SKBRAIN_1183 {caseNum5} -1 {caseLabel5} @SKBRAIN_1183 {caseNum6} -1 {caseLabel6} @SKBRAIN_1183 {caseNum7} -1 {caseLabel7} @SKBRAIN_1183

:SKBRAIN_904
if 
  Object.DoesExist(6@)
goto_if_false @SKBRAIN_1023
Task.PickUpObject(0@, 6@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)
Task.PlayAnimNonInterruptable(0@, "SHP_TRAY_LIFT", "FOOD", 4.0, False, False, False, True, -1)
TIMERB = 0
4@ += 1
goto @SKBRAIN_1037

:SKBRAIN_1023
4@ = 0
3@ += 1

:SKBRAIN_1037
goto @SKBRAIN_1183

:SKBRAIN_1044
9@ = 0.0
if 
  Char.IsPlayingAnim(0@, "SHP_TRAY_LIFT")
goto_if_false @SKBRAIN_1136
9@ = Char.GetAnimCurrentTime(0@, "SHP_TRAY_LIFT")
if 
  9@ == 1.0
goto_if_false @SKBRAIN_1136
4@ += 1

:SKBRAIN_1136
goto @SKBRAIN_1183

:SKBRAIN_1143
if 
  TIMERB > 2000
goto_if_false @SKBRAIN_1176
4@ = 0
3@ += 1

:SKBRAIN_1176
goto @SKBRAIN_1183

:SKBRAIN_1183
return 

:SKBRAIN_1185
switch_start 4@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SKBRAIN_1550 {caseNum1} 0 {caseLabel1} @SKBRAIN_1248 {caseNum2} 1 {caseLabel2} @SKBRAIN_1340 {caseNum3} 2 {caseLabel3} @SKBRAIN_1397 {caseNum4} 3 {caseLabel4} @SKBRAIN_1529 {caseNum5} -1 {caseLabel5} @SKBRAIN_1550 {caseNum6} -1 {caseLabel6} @SKBRAIN_1550 {caseNum7} -1 {caseLabel7} @SKBRAIN_1550

:SKBRAIN_1248
13@, 14@, 15@ = Char.GetOffsetInWorldCoords(0@, 0.0, 3.0, 3.0)
2@ = World.GetUserOfClosestMapAttractor(13@, 14@, 15@, 20.0, #CJ_FF_TILL_QUE, "PCUSTOM")
if 
  2@ == -1
goto_if_false @SKBRAIN_1333
4@ += 1

:SKBRAIN_1333
goto @SKBRAIN_1550

:SKBRAIN_1340
Task.PlayAnimNonInterruptable(0@, "SHP_TRAY_RETURN", "FOOD", 4.0, False, False, False, False, -1)
4@ += 1
goto @SKBRAIN_1550

:SKBRAIN_1397
9@ = 0.0
if 
  Char.IsPlayingAnim(0@, "SHP_TRAY_RETURN")
goto_if_false @SKBRAIN_1522
9@ = Char.GetAnimCurrentTime(0@, "SHP_TRAY_RETURN")
if 
  9@ == 1.0
goto_if_false @SKBRAIN_1522
if 
  Object.DoesExist(6@)
goto_if_false @SKBRAIN_1507
Object.Delete(6@)

:SKBRAIN_1507
Task.UseAttractor(0@, 1@)
4@ += 1

:SKBRAIN_1522
goto @SKBRAIN_1550

:SKBRAIN_1529
4@ = 0
3@ = 1
goto @SKBRAIN_1550

:SKBRAIN_1550
return 

:SKBRAIN_1552
Streaming.RemoveAnimation("FOOD")
Object.MarkAsNoLongerNeeded(6@)
if 
  not Char.IsDead(0@)
goto_if_false @SKBRAIN_1586
Char.ClearTasksImmediately(0@)

:SKBRAIN_1586
terminate_this_script 
return 

:SKBRAIN_1590
wait 0
if and
  Player.IsPlaying($player1)
  $iTerminateAllAmbience == 0
goto_if_false @SKBRAIN_1762
$iAreaCode = Char.GetAreaVisible($scplayer)
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @SKBRAIN_1664
gosub @SKBRAIN_1552
goto @SKBRAIN_1755

:SKBRAIN_1664
if 
  not Char.IsDead(0@)
goto_if_false @SKBRAIN_1755
7@ = Char.GetScriptTaskStatus(0@, 1476)
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @SKBRAIN_1755
Task.HandsUp(0@, -2)
if 
  Char.IsHoldingObject(0@, -1)
goto_if_false @SKBRAIN_1755
if 
  Object.DoesExist(6@)
goto_if_false @SKBRAIN_1755
Object.Delete(6@)

:SKBRAIN_1755
goto @SKBRAIN_1769

:SKBRAIN_1762
gosub @SKBRAIN_1552

:SKBRAIN_1769
goto @SKBRAIN_1590
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 37 (CUSTOMER_PANIC)---------------

:FFPNC
script_name 'FFPNC'
2@ = 0
if 
  2@ == 1
goto_if_false @FFPNC_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:FFPNC_60
if 
  not Char.IsDead(0@)
goto_if_false @FFPNC_84
Char.SetDecisionMaker(0@, $iGlobalPedPanicDM)

:FFPNC_84
wait 0
if and
  Player.IsPlaying($player1)
  $iTerminateAllAmbience == 0
goto_if_false @FFPNC_308
$iAreaCode = Char.GetAreaVisible($scplayer)
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @FFPNC_151
gosub @FFPNC_322

:FFPNC_151
if 
  not Char.IsDead(0@)
goto_if_false @FFPNC_294
set_lvar_int_to_lvar_int 2@ = 1@
2@ /= 2
2@ *= 2
if 
  is_int_lvar_greater_than_int_lvar 1@ > 2@
goto_if_false @FFPNC_251
3@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @FFPNC_244
Task.Duck(0@, -2)

:FFPNC_244
goto @FFPNC_287

:FFPNC_251
3@ = Char.GetScriptTaskStatus(0@, 1476)
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @FFPNC_287
Task.HandsUp(0@, -2)

:FFPNC_287
goto @FFPNC_301

:FFPNC_294
gosub @FFPNC_322

:FFPNC_301
goto @FFPNC_315

:FFPNC_308
gosub @FFPNC_322

:FFPNC_315
goto @FFPNC_84

:FFPNC_322
Char.MarkAsNoLongerNeeded(0@)
StreamedScript.MarkAsNoLongerNeeded(37)
terminate_this_script 
return 
terminate_this_script 

//-------------External script 38 (BAR_STAFF)---------------

:BARSTAF
script_name 'BARSTAF'
8@ = 0
if 
  8@ == 1
goto_if_false @BARSTAF_212
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)
8@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)
1@ = Attractor.Add(0.0, 0.0, 0.0, 0.0, 0.0, -1)
2@ = Attractor.Add(0.0, 0.0, 0.0, 0.0, 0.0, -1)
3@ = Attractor.Add(0.0, 0.0, 0.0, 0.0, 0.0, -1)
4@ = Attractor.Add(0.0, 0.0, 0.0, 0.0, 0.0, -1)

:BARSTAF_212
if 
  not Char.IsDead(0@)
goto_if_false @BARSTAF_236
Char.SetDecisionMaker(0@, $iGlobalShopkeeperDM)

:BARSTAF_236
Streaming.RequestAnimation("BAR")

:BARSTAF_243
if 
  not Streaming.HasAnimationLoaded("BAR")
goto_if_false @BARSTAF_279
Streaming.RequestAnimation("BAR")
wait 0
goto @BARSTAF_243

:BARSTAF_279
9@ = 1
10@ = 0
12@ = 0
if 
  0.0 >= 6@
goto_if_false @BARSTAF_331
6@ = 6.0

:BARSTAF_331
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @BARSTAF_540
if 
  9@ == 2
goto_if_false @BARSTAF_480
if 
  not Char.IsDead(8@)
goto_if_false @BARSTAF_452
if or
  $fFunTemp == 1
  $iBouncerAction == 1
  $iSetBarPanic == 1
goto_if_false @BARSTAF_438
goto @BARSTAF_2200
goto @BARSTAF_445

:BARSTAF_438
gosub @BARSTAF_554

:BARSTAF_445
goto @BARSTAF_473

:BARSTAF_452
9@ = 1
10@ = 0
gosub @BARSTAF_554

:BARSTAF_473
goto @BARSTAF_533

:BARSTAF_480
if or
  $fFunTemp == 1
  $iBouncerAction == 1
  $iSetBarPanic == 1
goto_if_false @BARSTAF_526
goto @BARSTAF_2200
goto @BARSTAF_533

:BARSTAF_526
gosub @BARSTAF_554

:BARSTAF_533
goto @BARSTAF_547

:BARSTAF_540
gosub @BARSTAF_2287

:BARSTAF_547
goto @BARSTAF_331

:BARSTAF_554
switch_start 9@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BARSTAF_659 {caseNum1} 1 {caseLabel1} @BARSTAF_617 {caseNum2} 2 {caseLabel2} @BARSTAF_631 {caseNum3} 3 {caseLabel3} @BARSTAF_645 {caseNum4} -1 {caseLabel4} @BARSTAF_659 {caseNum5} -1 {caseLabel5} @BARSTAF_659 {caseNum6} -1 {caseLabel6} @BARSTAF_659 {caseNum7} -1 {caseLabel7} @BARSTAF_659

:BARSTAF_617
gosub @BARSTAF_661
goto @BARSTAF_659

:BARSTAF_631
gosub @BARSTAF_1390
goto @BARSTAF_659

:BARSTAF_645
gosub @BARSTAF_2085
goto @BARSTAF_659

:BARSTAF_659
return 

:BARSTAF_661
switch_start 10@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BARSTAF_1388 {caseNum1} 0 {caseLabel1} @BARSTAF_724 {caseNum2} 1 {caseLabel2} @BARSTAF_767 {caseNum3} 2 {caseLabel3} @BARSTAF_974 {caseNum4} 3 {caseLabel4} @BARSTAF_1181 {caseNum5} -1 {caseLabel5} @BARSTAF_1388 {caseNum6} -1 {caseLabel6} @BARSTAF_1388 {caseNum7} -1 {caseLabel7} @BARSTAF_1388

:BARSTAF_724
13@ = Char.GetScriptTaskStatus(0@, 1868)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_760
10@ += 1

:BARSTAF_760
goto @BARSTAF_1388

:BARSTAF_767
14@, 15@, 16@ = Char.GetCoordinates(0@)
8@ = World.GetUserOfClosestMapAttractor(14@, 15@, 16@, 6@, 0, "BARGUY")
if 
  8@ > -1
goto_if_false @BARSTAF_923
13@ = Char.GetHealth(8@)
if 
  13@ == 99
goto_if_false @BARSTAF_866
8@ = -1
goto @BARSTAF_923

:BARSTAF_866
13@ = Char.GetScriptTaskStatus(8@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_916
9@ += 1
10@ = 0
goto @BARSTAF_923

:BARSTAF_916
8@ = -1

:BARSTAF_923
13@ = Char.GetScriptTaskStatus(0@, 1868)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_967
Task.UseAttractor(0@, 2@)
10@ += 1

:BARSTAF_967
goto @BARSTAF_1388

:BARSTAF_974
14@, 15@, 16@ = Char.GetCoordinates(0@)
8@ = World.GetUserOfClosestMapAttractor(14@, 15@, 16@, 6@, 0, "BARGUY")
if 
  8@ > -1
goto_if_false @BARSTAF_1130
13@ = Char.GetHealth(8@)
if 
  13@ == 99
goto_if_false @BARSTAF_1073
8@ = -1
goto @BARSTAF_1130

:BARSTAF_1073
13@ = Char.GetScriptTaskStatus(8@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1123
9@ += 1
10@ = 0
goto @BARSTAF_1130

:BARSTAF_1123
8@ = -1

:BARSTAF_1130
13@ = Char.GetScriptTaskStatus(0@, 1868)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1174
Task.UseAttractor(0@, 3@)
10@ += 1

:BARSTAF_1174
goto @BARSTAF_1388

:BARSTAF_1181
14@, 15@, 16@ = Char.GetCoordinates(0@)
8@ = World.GetUserOfClosestMapAttractor(14@, 15@, 16@, 6@, 0, "BARGUY")
if 
  8@ > -1
goto_if_false @BARSTAF_1337
13@ = Char.GetHealth(8@)
if 
  13@ == 99
goto_if_false @BARSTAF_1280
8@ = -1
goto @BARSTAF_1337

:BARSTAF_1280
13@ = Char.GetScriptTaskStatus(8@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1330
9@ += 1
10@ = 0
goto @BARSTAF_1337

:BARSTAF_1330
8@ = -1

:BARSTAF_1337
13@ = Char.GetScriptTaskStatus(0@, 1868)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1381
Task.UseAttractor(0@, 1@)
10@ = 0

:BARSTAF_1381
goto @BARSTAF_1388

:BARSTAF_1388
return 

:BARSTAF_1390
switch_start 10@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @BARSTAF_2083 {caseNum1} 0 {caseLabel1} @BARSTAF_1518 {caseNum2} 1 {caseLabel2} @BARSTAF_1577 {caseNum3} 2 {caseLabel3} @BARSTAF_1628 {caseNum4} 3 {caseLabel4} @BARSTAF_1720 {caseNum5} 4 {caseLabel5} @BARSTAF_1771 {caseNum6} 5 {caseLabel6} @BARSTAF_1873 {caseNum7} 6 {caseLabel7} @BARSTAF_1934
switch_continued 7 {caseLabel1} @BARSTAF_1985 {caseNum2} -1 {caseLabel2} @BARSTAF_2083 {caseNum3} -1 {caseLabel3} @BARSTAF_2083 {caseNum4} -1 {caseLabel4} @BARSTAF_2083 {caseNum5} -1 {caseLabel5} @BARSTAF_2083 {caseNum6} -1 {caseLabel6} @BARSTAF_2083 {caseNum7} -1 {caseLabel7} @BARSTAF_2083 {caseNum8} -1 {caseLabel8} @BARSTAF_2083 {caseNum9} -1 {caseLabel9} @BARSTAF_2083

:BARSTAF_1518
14@, 15@, 16@ = Char.GetOffsetInWorldCoords(8@, 0.0, 5@, 0.0)
Task.GoStraightToCoord(0@, 14@, 15@, 16@, MoveState.Walk, -2)
10@ += 1
goto @BARSTAF_2083

:BARSTAF_1577
13@ = Char.GetScriptTaskStatus(0@, 1491)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1621
Task.TurnCharToFaceChar(0@, 8@)
10@ += 1

:BARSTAF_1621
goto @BARSTAF_2083

:BARSTAF_1628
13@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1713
Char.SetHealth(8@, 99)
Task.PlayAnim(0@, "BARSERVE_ORDER", "BAR", 4.0, True, False, False, False, 3000)
10@ += 1

:BARSTAF_1713
goto @BARSTAF_2083

:BARSTAF_1720
13@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1764
Task.UseAttractor(0@, 4@)
10@ += 1

:BARSTAF_1764
goto @BARSTAF_2083

:BARSTAF_1771
13@ = Char.GetScriptTaskStatus(0@, 1868)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1866
if 
  7@ == 0
goto_if_false @BARSTAF_1859
Task.PlayAnim(0@, "BARSERVE_GLASS", "BAR", 4.0, False, False, False, False, 0)

:BARSTAF_1859
10@ += 1

:BARSTAF_1866
goto @BARSTAF_2083

:BARSTAF_1873
13@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1927
Task.GoStraightToCoord(0@, 14@, 15@, 16@, MoveState.Walk, -2)
10@ += 1

:BARSTAF_1927
goto @BARSTAF_2083

:BARSTAF_1934
13@ = Char.GetScriptTaskStatus(0@, 1491)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1978
Task.TurnCharToFaceChar(0@, 8@)
10@ += 1

:BARSTAF_1978
goto @BARSTAF_2083

:BARSTAF_1985
13@ = Char.GetScriptTaskStatus(0@, 1593)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_2076
Char.SetHealth(8@, 99)
Task.PlayAnim(0@, "BARSERVE_GIVE", "BAR", 4.0, True, False, False, False, 3000)
9@ += 1
10@ = 0

:BARSTAF_2076
goto @BARSTAF_2083

:BARSTAF_2083
return 

:BARSTAF_2085
switch_start 10@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @BARSTAF_2198 {caseNum1} 0 {caseLabel1} @BARSTAF_2148 {caseNum2} -1 {caseLabel2} @BARSTAF_2198 {caseNum3} -1 {caseLabel3} @BARSTAF_2198 {caseNum4} -1 {caseLabel4} @BARSTAF_2198 {caseNum5} -1 {caseLabel5} @BARSTAF_2198 {caseNum6} -1 {caseLabel6} @BARSTAF_2198 {caseNum7} -1 {caseLabel7} @BARSTAF_2198

:BARSTAF_2148
13@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_2191
9@ = 1
10@ = 0

:BARSTAF_2191
goto @BARSTAF_2198

:BARSTAF_2198
return 

:BARSTAF_2200
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @BARSTAF_2273
12@ = Char.GetScriptTaskStatus(0@, 1476)
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BARSTAF_2266
Task.HandsUp(0@, 60000)

:BARSTAF_2266
goto @BARSTAF_2280

:BARSTAF_2273
gosub @BARSTAF_2287

:BARSTAF_2280
goto @BARSTAF_2200

:BARSTAF_2287
Streaming.RemoveAnimation("BAR")
Char.MarkAsNoLongerNeeded(0@)
terminate_this_script 
return 
write_debug_with_int "PEDSTATE" {_p2} 9@
write_debug_with_int "SUBSTATESTATUS" {_p2} 10@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 39 (BOUNCER)---------------

:BOUNCER
script_name 'BOUNCER'
2@ = 0
if 
  2@ == 1
goto_if_false @BOUNCER_60
0@ = Char.Create(PedType.CivMale, 0, 0.0, 0.0, 0.0)

:BOUNCER_60
if 
  not Streaming.HasModelLoaded(346)
goto_if_false @BOUNCER_88
Streaming.RequestModel(346)
goto @BOUNCER_60

:BOUNCER_88
if 
  not Char.IsDead(0@)
goto_if_false @BOUNCER_187
Char.GiveWeapon(0@, WeaponType.Pistol, 99999999)
Char.SetCurrentWeapon(0@, WeaponType.Unarmed)
if 
  Char.HasGotWeapon(0@, WeaponType.NightStick)
goto_if_false @BOUNCER_148
Char.RemoveWeapon(0@, WeaponType.NightStick)

:BOUNCER_148
Char.SetAccuracy(0@, 80)
$iDance_SpeechCounter = DecisionMakerChar.CopyShared(65537)
DecisionMakerChar.ClearEventResponse($iDance_SpeechCounter, 27)
DecisionMakerChar.ClearEventResponse($iDance_SpeechCounter, 48)
Char.SetDecisionMaker(0@, $iDance_SpeechCounter)

:BOUNCER_187
3@ = 0
4@ = 0

:BOUNCER_201
wait 0
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
  $iTerminateAllAmbience == 0
goto_if_false @BOUNCER_279
if 
  $iSetCasinoPanic == 0
goto_if_false @BOUNCER_265
gosub @BOUNCER_293
goto @BOUNCER_272

:BOUNCER_265
goto @BOUNCER_693

:BOUNCER_272
goto @BOUNCER_286

:BOUNCER_279
gosub @BOUNCER_864

:BOUNCER_286
goto @BOUNCER_201

:BOUNCER_293
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @BOUNCER_370 {caseNum1} 0 {caseLabel1} @BOUNCER_356 {caseNum2} -1 {caseLabel2} @BOUNCER_370 {caseNum3} -1 {caseLabel3} @BOUNCER_370 {caseNum4} -1 {caseLabel4} @BOUNCER_370 {caseNum5} -1 {caseLabel5} @BOUNCER_370 {caseNum6} -1 {caseLabel6} @BOUNCER_370 {caseNum7} -1 {caseLabel7} @BOUNCER_370

:BOUNCER_356
gosub @BOUNCER_372
goto @BOUNCER_370

:BOUNCER_370
return 

:BOUNCER_372
switch_start 4@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BOUNCER_691 {caseNum1} 0 {caseLabel1} @BOUNCER_435 {caseNum2} 1 {caseLabel2} @BOUNCER_498 {caseNum3} 2 {caseLabel3} @BOUNCER_658 {caseNum4} -1 {caseLabel4} @BOUNCER_691 {caseNum5} -1 {caseLabel5} @BOUNCER_691 {caseNum6} -1 {caseLabel6} @BOUNCER_691 {caseNum7} -1 {caseLabel7} @BOUNCER_691

:BOUNCER_435
2@ = Char.GetScriptTaskStatus(0@, 1502)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BOUNCER_491
Task.WanderStandard(0@)
TIMERB = 0
6@ = 5000
4@ += 1

:BOUNCER_491
goto @BOUNCER_691

:BOUNCER_498
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 6@
goto_if_false @BOUNCER_651
2@ = Math.RandomIntInRange(1, 10)
if 
  2@ > 5
goto_if_false @BOUNCER_595
2@ = Char.GetScriptTaskStatus(0@, 1481)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BOUNCER_588
Task.LookAbout(0@, -1)
6@ = 5000

:BOUNCER_588
goto @BOUNCER_637

:BOUNCER_595
2@ = Char.GetScriptTaskStatus(0@, 1502)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BOUNCER_637
Task.WanderStandard(0@)
6@ = 5000

:BOUNCER_637
TIMERB = 0
4@ += 1

:BOUNCER_651
goto @BOUNCER_691

:BOUNCER_658
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 6@
goto_if_false @BOUNCER_684
4@ = 1

:BOUNCER_684
goto @BOUNCER_691

:BOUNCER_691
return 

:BOUNCER_693
wait 0
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
  $iTerminateAllAmbience == 0
goto_if_false @BOUNCER_850
if 
  Char.IsShooting($scplayer)
goto_if_false @BOUNCER_799
Char.SetCurrentWeapon(0@, WeaponType.Pistol)
5@ = Char.GetScriptTaskStatus(0@, 1588)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @BOUNCER_792
Task.KillCharOnFootWhileDucking(0@, $scplayer, 1, 4000, 60)

:BOUNCER_792
goto @BOUNCER_843

:BOUNCER_799
Char.SetCurrentWeapon(0@, WeaponType.Pistol)
5@ = Char.GetScriptTaskStatus(0@, 1506)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @BOUNCER_843
Task.KillCharOnFoot(0@, $scplayer)

:BOUNCER_843
goto @BOUNCER_857

:BOUNCER_850
gosub @BOUNCER_864

:BOUNCER_857
goto @BOUNCER_693

:BOUNCER_864
DecisionMaker.Remove($iDance_SpeechCounter)
Char.MarkAsNoLongerNeeded(0@)
terminate_this_script 
return 
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 40 (OTB_STAFF)---------------

:OTBSTAF
script_name 'OTBSTAF'
2@ = 0
if 
  2@ == 1
goto_if_false @OTBSTAF_92
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)
1@ = Attractor.Add(0.0, 0.0, 0.0, 0.0, 0.0, -1)

:OTBSTAF_92
Streaming.RequestAnimation("INT_SHOP")

:OTBSTAF_104
if 
  not Streaming.HasAnimationLoaded("INT_SHOP")
goto_if_false @OTBSTAF_138
wait 0
goto @OTBSTAF_104

:OTBSTAF_138
if 
  not Char.IsDead(0@)
goto_if_false @OTBSTAF_162
Char.SetDecisionMaker(0@, $iGlobalShopkeeperDM)

:OTBSTAF_162
3@ = 1
4@ = 0
6@ = 0

:OTBSTAF_183
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @OTBSTAF_256
if 
  $played_ryder1_before == 0
goto_if_false @OTBSTAF_242
gosub @OTBSTAF_270
goto @OTBSTAF_249

:OTBSTAF_242
goto @OTBSTAF_848

:OTBSTAF_249
goto @OTBSTAF_263

:OTBSTAF_256
gosub @OTBSTAF_832

:OTBSTAF_263
goto @OTBSTAF_183

:OTBSTAF_270
switch_start 3@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @OTBSTAF_361 {caseNum1} 1 {caseLabel1} @OTBSTAF_333 {caseNum2} 2 {caseLabel2} @OTBSTAF_347 {caseNum3} -1 {caseLabel3} @OTBSTAF_361 {caseNum4} -1 {caseLabel4} @OTBSTAF_361 {caseNum5} -1 {caseLabel5} @OTBSTAF_361 {caseNum6} -1 {caseLabel6} @OTBSTAF_361 {caseNum7} -1 {caseLabel7} @OTBSTAF_361

:OTBSTAF_333
gosub @OTBSTAF_363
goto @OTBSTAF_361

:OTBSTAF_347
gosub @OTBSTAF_668
goto @OTBSTAF_361

:OTBSTAF_361
return 

:OTBSTAF_363
switch_start 4@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @OTBSTAF_666 {caseNum1} 0 {caseLabel1} @OTBSTAF_426 {caseNum2} 1 {caseLabel2} @OTBSTAF_562 {caseNum3} -1 {caseLabel3} @OTBSTAF_666 {caseNum4} -1 {caseLabel4} @OTBSTAF_666 {caseNum5} -1 {caseLabel5} @OTBSTAF_666 {caseNum6} -1 {caseLabel6} @OTBSTAF_666 {caseNum7} -1 {caseLabel7} @OTBSTAF_666

:OTBSTAF_426
9@, 10@, 11@ = Char.GetOffsetInWorldCoords(0@, 0.0, 3.0, 3.0)
2@ = World.GetUserOfClosestMapAttractor(9@, 10@, 11@, 3.0, #CJ_FF_TILL_QUE, "PCUSTOM")
if 
  2@ > -1
goto_if_false @OTBSTAF_555
Task.PlayAnim(0@, "SHOP_CASHIER", "INT_SHOP", 4.0, False, False, False, False, -1)
4@ += 1

:OTBSTAF_555
goto @OTBSTAF_666

:OTBSTAF_562
8@ = 0.0
if 
  Char.IsPlayingAnim(0@, "SHOP_CASHIER")
goto_if_false @OTBSTAF_659
8@ = Char.GetAnimCurrentTime(0@, "SHOP_CASHIER")
if 
  8@ == 1.0
goto_if_false @OTBSTAF_659
4@ = 0
3@ += 1

:OTBSTAF_659
goto @OTBSTAF_666

:OTBSTAF_666
return 

:OTBSTAF_668
switch_start 4@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @OTBSTAF_830 {caseNum1} 0 {caseLabel1} @OTBSTAF_731 {caseNum2} -1 {caseLabel2} @OTBSTAF_830 {caseNum3} -1 {caseLabel3} @OTBSTAF_830 {caseNum4} -1 {caseLabel4} @OTBSTAF_830 {caseNum5} -1 {caseLabel5} @OTBSTAF_830 {caseNum6} -1 {caseLabel6} @OTBSTAF_830 {caseNum7} -1 {caseLabel7} @OTBSTAF_830

:OTBSTAF_731
9@, 10@, 11@ = Char.GetOffsetInWorldCoords(0@, 0.0, 3.0, 3.0)
2@ = World.GetUserOfClosestMapAttractor(9@, 10@, 11@, 3.0, #CJ_FF_TILL_QUE, "PCUSTOM")
if 
  2@ == -1
goto_if_false @OTBSTAF_823
4@ = 0
3@ = 1

:OTBSTAF_823
goto @OTBSTAF_830

:OTBSTAF_830
return 

:OTBSTAF_832
Streaming.RemoveAnimation("INT_SHOP")
terminate_this_script 
return 

:OTBSTAF_848
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @OTBSTAF_918
6@ = Char.GetScriptTaskStatus(0@, 1476)
if 
  is_int_lvar_equal_to_constant 6@ == 7
goto_if_false @OTBSTAF_911
Task.HandsUp(0@, -2)

:OTBSTAF_911
goto @OTBSTAF_925

:OTBSTAF_918
gosub @OTBSTAF_832

:OTBSTAF_925
goto @OTBSTAF_848
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 41 (PCHAIR)---------------

:PCHAIR
script_name 'PCHAIR'
2@ = 0
if 
  2@ == 1
goto_if_false @PCHAIR_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:PCHAIR_60
Streaming.RequestAnimation("FOOD")

:PCHAIR_68
if 
  not Streaming.HasAnimationLoaded("FOOD")
goto_if_false @PCHAIR_98
wait 0
goto @PCHAIR_68

:PCHAIR_98
9@ = 0.0
3@ = 0
if 
  1@ == 0
goto_if_false @PCHAIR_154
5@ = 0
4@ = 1
goto @PCHAIR_168

:PCHAIR_154
5@ = -2
4@ = 2

:PCHAIR_168
7@ = 0
if 
  not Char.IsDead(0@)
goto_if_false @PCHAIR_215
Char.SetSuffersCriticalHits(0@, False)
6@ = 1800000
goto @PCHAIR_222

:PCHAIR_215
6@ = 0

:PCHAIR_222
wait 0
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
  $iTerminateAllAmbience == 0
goto_if_false @PCHAIR_345
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @PCHAIR_331
if or
  $iSetPizzaPanic == 1
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @PCHAIR_317
$iSetPizzaPanic = 1
goto @PCHAIR_3035
goto @PCHAIR_324

:PCHAIR_317
gosub @PCHAIR_359

:PCHAIR_324
goto @PCHAIR_338

:PCHAIR_331
gosub @PCHAIR_2959

:PCHAIR_338
goto @PCHAIR_352

:PCHAIR_345
gosub @PCHAIR_2959

:PCHAIR_352
goto @PCHAIR_222

:PCHAIR_359
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @PCHAIR_492 {caseNum1} 1 {caseLabel1} @PCHAIR_422 {caseNum2} 2 {caseLabel2} @PCHAIR_436 {caseNum3} 3 {caseLabel3} @PCHAIR_450 {caseNum4} 4 {caseLabel4} @PCHAIR_464 {caseNum5} 5 {caseLabel5} @PCHAIR_478 {caseNum6} -1 {caseLabel6} @PCHAIR_492 {caseNum7} -1 {caseLabel7} @PCHAIR_492

:PCHAIR_422
gosub @PCHAIR_494
goto @PCHAIR_492

:PCHAIR_436
gosub @PCHAIR_715
goto @PCHAIR_492

:PCHAIR_450
gosub @PCHAIR_2157
goto @PCHAIR_492

:PCHAIR_464
gosub @PCHAIR_2959
goto @PCHAIR_492

:PCHAIR_478
gosub @PCHAIR_2526
goto @PCHAIR_492

:PCHAIR_492
return 

:PCHAIR_494
switch_start 5@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @PCHAIR_713 {caseNum1} 0 {caseLabel1} @PCHAIR_557 {caseNum2} 1 {caseLabel2} @PCHAIR_615 {caseNum3} -1 {caseLabel3} @PCHAIR_713 {caseNum4} -1 {caseLabel4} @PCHAIR_713 {caseNum5} -1 {caseLabel5} @PCHAIR_713 {caseNum6} -1 {caseLabel6} @PCHAIR_713 {caseNum7} -1 {caseLabel7} @PCHAIR_713

:PCHAIR_557
Task.PlayAnimNonInterruptable(0@, "FF_SIT_IN", "FOOD", 4.0, False, False, False, True, -1)
3@ = 1
5@ += 1
goto @PCHAIR_713

:PCHAIR_615
9@ = 0.0
if 
  Char.IsPlayingAnim(0@, "FF_SIT_IN")
goto_if_false @PCHAIR_671
9@ = Char.GetAnimCurrentTime(0@, "FF_SIT_IN")

:PCHAIR_671
if 
  9@ == 1.0
goto_if_false @PCHAIR_706
5@ = 0
4@ += 1

:PCHAIR_706
goto @PCHAIR_713

:PCHAIR_713
return 

:PCHAIR_715
switch_start 5@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @PCHAIR_2155 {caseNum1} -2 {caseLabel1} @PCHAIR_778 {caseNum2} 0 {caseLabel2} @PCHAIR_1103 {caseNum3} 1 {caseLabel3} @PCHAIR_1560 {caseNum4} 2 {caseLabel4} @PCHAIR_1858 {caseNum5} 3 {caseLabel5} @PCHAIR_2061 {caseNum6} -1 {caseLabel6} @PCHAIR_2155 {caseNum7} -1 {caseLabel7} @PCHAIR_2155

:PCHAIR_778
if 
  Char.IsNearAnyChars(0@, 2.2)
goto_if_false @PCHAIR_848
Task.PlayAnimNonInterruptable(0@, "FF_SIT_LOOK", "FOOD", 1000.0, True, False, False, False, 50000000)
goto @PCHAIR_1089

:PCHAIR_848
10@, 11@, 12@ = Char.GetOffsetInWorldCoords(0@, 0.0, 0.0, 0.0)
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @PCHAIR_925
8@ = Object.Create(#CJ_PIZZA_2, 10@, 11@, 12@)
goto @PCHAIR_941

:PCHAIR_925
8@ = Object.Create(#CJ_BURG_2, 10@, 11@, 12@)

:PCHAIR_941
Task.PickUpObject(0@, 8@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)
if 
  Char.IsMale(0@)
goto_if_false @PCHAIR_1047
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT1", "FOOD", 1000.0, True, False, False, False, 50000000)
goto @PCHAIR_1089

:PCHAIR_1047
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT2", "FOOD", 1000.0, True, False, False, False, 50000000)

:PCHAIR_1089
5@ = 1
goto @PCHAIR_2155

:PCHAIR_1103
if 
  Char.IsHoldingObject(0@, -1)
goto_if_false @PCHAIR_1235
if 
  Char.IsMale(0@)
goto_if_false @PCHAIR_1186
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT1", "FOOD", 1000.0, True, False, False, False, 50000000)
goto @PCHAIR_1228

:PCHAIR_1186
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT2", "FOOD", 1000.0, True, False, False, False, 50000000)

:PCHAIR_1228
goto @PCHAIR_1546

:PCHAIR_1235
if 
  Char.IsNearAnyChars(0@, 2.2)
goto_if_false @PCHAIR_1305
Task.PlayAnimNonInterruptable(0@, "FF_SIT_LOOK", "FOOD", 1000.0, True, False, False, False, 50000000)
goto @PCHAIR_1546

:PCHAIR_1305
10@, 11@, 12@ = Char.GetOffsetInWorldCoords(0@, 0.0, 0.0, 0.0)
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @PCHAIR_1382
8@ = Object.Create(#CJ_PIZZA_2, 10@, 11@, 12@)
goto @PCHAIR_1398

:PCHAIR_1382
8@ = Object.Create(#CJ_BURG_2, 10@, 11@, 12@)

:PCHAIR_1398
Task.PickUpObject(0@, 8@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)
if 
  Char.IsMale(0@)
goto_if_false @PCHAIR_1504
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT1", "FOOD", 1000.0, True, False, False, False, 50000000)
goto @PCHAIR_1546

:PCHAIR_1504
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT2", "FOOD", 1000.0, True, False, False, False, 50000000)

:PCHAIR_1546
5@ += 1
goto @PCHAIR_2155

:PCHAIR_1560
13@, 14@, 15@ = Char.GetCoordinates(0@)
15@ -= 1.04
16@, 17@, 18@ = Char.GetOffsetInWorldCoords(0@, 0.5, -0.5, 0.0)
19@, 20@, 21@ = Char.GetOffsetInWorldCoords(0@, -0.5, -1.0, 0.0)
10@, 11@, 12@ = Char.GetOffsetInWorldCoords(0@, 0.0, 1.0, -0.65)
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDBURG'
goto_if_false @PCHAIR_1727
World.SetCharUsesCollisionClosestObjectOfType(13@, 14@, 15@, 1.5, #CJ_BURG_CHAIR, False, 0@)
goto @PCHAIR_1751

:PCHAIR_1727
World.SetCharUsesCollisionClosestObjectOfType(13@, 14@, 15@, 1.5, #CJ_PIZZA_CHAIR, False, 0@)

:PCHAIR_1751
if or
  Char.IsPlayingAnim(0@, "FF_SIT_LOOK")
  Char.IsPlayingAnim(0@, "FF_SIT_EAT1")
  Char.IsPlayingAnim(0@, "FF_SIT_EAT2")
goto_if_false @PCHAIR_1851
Char.SetCoordinates(0@, 10@, 11@, 12@)
Char.FreezePosition(0@, True)
TIMERB = 0
5@ += 1

:PCHAIR_1851
goto @PCHAIR_2155

:PCHAIR_1858
if 
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @PCHAIR_1910
Char.ClearLastDamageEntity(0@)
6@ = 0
4@ = 5
5@ = 0
goto @PCHAIR_2155

:PCHAIR_1910
if 
  is_int_lvar_greater_than_int_lvar TIMERB > 6@
goto_if_false @PCHAIR_2054
if 
  not World.IsAreaOccupied(16@, 17@, 18@, 19@, 20@, 21@, False, False, True, False, False)
goto_if_false @PCHAIR_1991
5@ = 0
4@ += 1
goto @PCHAIR_2054

:PCHAIR_1991
if 
  $iSetPizzaPanic == 1
goto_if_false @PCHAIR_2054
Task.PlayAnimNonInterruptable(0@, "FF_DIE_FWD", "FOOD", 16.0, False, False, False, True, -1)
5@ += 1

:PCHAIR_2054
goto @PCHAIR_2155

:PCHAIR_2061
if 
  Char.IsHealthGreater(0@, 0)
goto_if_false @PCHAIR_2141
if 
  not World.IsAreaOccupied(16@, 17@, 18@, 19@, 20@, 21@, False, False, True, False, False)
goto_if_false @PCHAIR_2134
5@ = 0
4@ += 1

:PCHAIR_2134
goto @PCHAIR_2148

:PCHAIR_2141
Char.SetNeverTargeted(0@, True)

:PCHAIR_2148
goto @PCHAIR_2155

:PCHAIR_2155
return 

:PCHAIR_2157
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @PCHAIR_2524 {caseNum1} 0 {caseLabel1} @PCHAIR_2220 {caseNum2} 1 {caseLabel2} @PCHAIR_2301 {caseNum3} 2 {caseLabel3} @PCHAIR_2336 {caseNum4} -1 {caseLabel4} @PCHAIR_2524 {caseNum5} -1 {caseLabel5} @PCHAIR_2524 {caseNum6} -1 {caseLabel6} @PCHAIR_2524 {caseNum7} -1 {caseLabel7} @PCHAIR_2524

:PCHAIR_2220
if 
  Char.IsHoldingObject(0@, -1)
goto_if_false @PCHAIR_2245
Char.DropObject(0@, True)

:PCHAIR_2245
Task.PlayAnimNonInterruptable(0@, "FF_SIT_OUT_180", "FOOD", 99.0, False, False, False, False, -1)
5@ += 1
goto @PCHAIR_2524

:PCHAIR_2301
Char.SetCoordinates(0@, 13@, 14@, 15@)
Char.FreezePosition(0@, False)
5@ += 1
goto @PCHAIR_2524

:PCHAIR_2336
9@ = 0.0
if 
  Char.IsPlayingAnim(0@, "FF_SIT_OUT_180")
goto_if_false @PCHAIR_2517
9@ = Char.GetAnimCurrentTime(0@, "FF_SIT_OUT_180")
if 
  9@ == 1.0
goto_if_false @PCHAIR_2517
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDBURG'
goto_if_false @PCHAIR_2479
World.SetCharUsesCollisionClosestObjectOfType(13@, 14@, 15@, 1.5, #CJ_BURG_CHAIR, True, 0@)
goto @PCHAIR_2503

:PCHAIR_2479
World.SetCharUsesCollisionClosestObjectOfType(13@, 14@, 15@, 1.5, #CJ_PIZZA_CHAIR, True, 0@)

:PCHAIR_2503
5@ = 0
4@ += 1

:PCHAIR_2517
goto @PCHAIR_2524

:PCHAIR_2524
return 

:PCHAIR_2526
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @PCHAIR_2957 {caseNum1} 0 {caseLabel1} @PCHAIR_2589 {caseNum2} 1 {caseLabel2} @PCHAIR_2641 {caseNum3} 2 {caseLabel3} @PCHAIR_2797 {caseNum4} -1 {caseLabel4} @PCHAIR_2957 {caseNum5} -1 {caseLabel5} @PCHAIR_2957 {caseNum6} -1 {caseLabel6} @PCHAIR_2957 {caseNum7} -1 {caseLabel7} @PCHAIR_2957

:PCHAIR_2589
Task.PlayAnimNonInterruptable(0@, "FF_DAM_FWD", "FOOD", 16.0, False, False, False, True, 0)
5@ += 1
goto @PCHAIR_2957

:PCHAIR_2641
9@ = 0.0
if 
  Char.IsPlayingAnim(0@, "FF_DAM_FWD")
goto_if_false @PCHAIR_2727
9@ = Char.GetAnimCurrentTime(0@, "FF_DAM_FWD")
if 
  9@ == 1.0
goto_if_false @PCHAIR_2727
5@ += 1

:PCHAIR_2727
if 
  not Char.IsHealthGreater(0@, 0)
goto_if_false @PCHAIR_2790
Task.PlayAnimNonInterruptable(0@, "FF_DIE_FWD", "FOOD", 16.0, False, False, False, True, 0)
gosub @PCHAIR_2959

:PCHAIR_2790
goto @PCHAIR_2957

:PCHAIR_2797
if 
  not Char.IsHealthGreater(0@, 0)
goto_if_false @PCHAIR_2867
Task.PlayAnimNonInterruptable(0@, "FF_DIE_FWD", "FOOD", 16.0, False, False, False, True, 0)
gosub @PCHAIR_2959
goto @PCHAIR_2950

:PCHAIR_2867
if 
  not World.IsAreaOccupied(16@, 17@, 18@, 19@, 20@, 21@, False, False, True, False, False)
goto_if_false @PCHAIR_2936
4@ = 3
5@ = 0
gosub @PCHAIR_3035
goto @PCHAIR_2950

:PCHAIR_2936
4@ = 2
5@ = 2

:PCHAIR_2950
goto @PCHAIR_2957

:PCHAIR_2957
return 

:PCHAIR_2959
Object.MarkAsNoLongerNeeded(8@)
Streaming.RemoveAnimation("FOOD")
if 
  not Char.IsDead(0@)
goto_if_false @PCHAIR_3031
Char.SetSuffersCriticalHits(0@, True)
Task.UseClosestMapAttractor(0@, 100.0, 0, 0.0, 0.0, 0.0, "PCUSTOM")

:PCHAIR_3031
terminate_this_script 
return 

:PCHAIR_3035
wait 0
if and
  not is_var_text_label_empty s$shop_name
  $iTerminateAllAmbience == 0
goto_if_false @PCHAIR_3376
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
goto_if_false @PCHAIR_3369
switch_start 4@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @PCHAIR_3355 {caseNum1} 1 {caseLabel1} @PCHAIR_3146 {caseNum2} 2 {caseLabel2} @PCHAIR_3228 {caseNum3} 3 {caseLabel3} @PCHAIR_3277 {caseNum4} 4 {caseLabel4} @PCHAIR_3291 {caseNum5} 5 {caseLabel5} @PCHAIR_3341 {caseNum6} -1 {caseLabel6} @PCHAIR_3369 {caseNum7} -1 {caseLabel7} @PCHAIR_3369

:PCHAIR_3146
if 
  5@ > 1
goto_if_false @PCHAIR_3178
gosub @PCHAIR_359
goto @PCHAIR_3221

:PCHAIR_3178
7@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @PCHAIR_3221
Task.Duck(0@, -2)
gosub @PCHAIR_2959

:PCHAIR_3221
goto @PCHAIR_3369

:PCHAIR_3228
if 
  5@ == 2
goto_if_false @PCHAIR_3263
6@ = Math.RandomIntInRange(0, 5)
6@ *= 500

:PCHAIR_3263
gosub @PCHAIR_359
goto @PCHAIR_3369

:PCHAIR_3277
gosub @PCHAIR_359
goto @PCHAIR_3369

:PCHAIR_3291
7@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @PCHAIR_3334
Task.Duck(0@, -2)
gosub @PCHAIR_2959

:PCHAIR_3334
goto @PCHAIR_3369

:PCHAIR_3341
gosub @PCHAIR_359
goto @PCHAIR_3369

:PCHAIR_3355
gosub @PCHAIR_2959
goto @PCHAIR_3369

:PCHAIR_3369
goto @PCHAIR_3383

:PCHAIR_3376
gosub @PCHAIR_2959

:PCHAIR_3383
goto @PCHAIR_3035
write_debug_with_int "PEDSTATE" {_p2} 4@
write_debug_with_int "SUBSTATESTATUS" {_p2} 5@
write_debug_with_int "TIMERB" {_p2} TIMERB
write_debug_with_int "TIMERA" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 42 (PCUSTOM)---------------

:PCUSTOM
script_name 'PCUSTOM'
2@ = 0
if 
  2@ == 1
goto_if_false @PCUSTOM_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:PCUSTOM_60
Streaming.RequestAnimation("INT_SHOP")

:PCUSTOM_72
if 
  not Streaming.HasAnimationLoaded("INT_SHOP")
goto_if_false @PCUSTOM_106
wait 0
goto @PCUSTOM_72

:PCUSTOM_106
3@ = 1
4@ = 0
5@ = 0
11@ = 0

:PCUSTOM_134
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @PCUSTOM_237
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @PCUSTOM_223
if 
  $iSetPizzaPanic == 0
goto_if_false @PCUSTOM_209
gosub @PCUSTOM_251
goto @PCUSTOM_216

:PCUSTOM_209
goto @PCUSTOM_804

:PCUSTOM_216
goto @PCUSTOM_230

:PCUSTOM_223
gosub @PCUSTOM_727

:PCUSTOM_230
goto @PCUSTOM_244

:PCUSTOM_237
gosub @PCUSTOM_727

:PCUSTOM_244
goto @PCUSTOM_134

:PCUSTOM_251
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PCUSTOM_328 {caseNum1} 1 {caseLabel1} @PCUSTOM_314 {caseNum2} -1 {caseLabel2} @PCUSTOM_328 {caseNum3} -1 {caseLabel3} @PCUSTOM_328 {caseNum4} -1 {caseLabel4} @PCUSTOM_328 {caseNum5} -1 {caseLabel5} @PCUSTOM_328 {caseNum6} -1 {caseLabel6} @PCUSTOM_328 {caseNum7} -1 {caseLabel7} @PCUSTOM_328

:PCUSTOM_314
gosub @PCUSTOM_330
goto @PCUSTOM_328

:PCUSTOM_328
return 

:PCUSTOM_330
switch_start 4@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @PCUSTOM_725 {caseNum1} 0 {caseLabel1} @PCUSTOM_393 {caseNum2} 1 {caseLabel2} @PCUSTOM_451 {caseNum3} 2 {caseLabel3} @PCUSTOM_534 {caseNum4} 3 {caseLabel4} @PCUSTOM_711 {caseNum5} -1 {caseLabel5} @PCUSTOM_725 {caseNum6} -1 {caseLabel6} @PCUSTOM_725 {caseNum7} -1 {caseLabel7} @PCUSTOM_725

:PCUSTOM_393
5@ = 1
Task.PlayAnim(0@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, 5000)
4@ += 1
goto @PCUSTOM_725

:PCUSTOM_451
10@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @PCUSTOM_527
Task.PlayAnim(0@, "SHOP_PAY", "INT_SHOP", 1000.0, False, False, False, False, 0)
4@ += 1

:PCUSTOM_527
goto @PCUSTOM_725

:PCUSTOM_534
10@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @PCUSTOM_704
7@, 8@, 9@ = Char.GetOffsetInWorldCoords(0@, 0.0, 0.1, 1.0)
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @PCUSTOM_640
12@ = Object.Create(#CJ_PIZZA_2, 7@, 8@, 9@)
goto @PCUSTOM_656

:PCUSTOM_640
12@ = Object.Create(#CJ_BURG_2, 7@, 8@, 9@)

:PCUSTOM_656
Task.PickUpObject(0@, 12@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)
4@ += 1

:PCUSTOM_704
goto @PCUSTOM_725

:PCUSTOM_711
gosub @PCUSTOM_727
goto @PCUSTOM_725

:PCUSTOM_725
return 

:PCUSTOM_727
Streaming.RemoveAnimation("INT_SHOP")
Object.MarkAsNoLongerNeeded(12@)
if 
  not Char.IsDead(0@)
goto_if_false @PCUSTOM_800
Char.ClearTasksImmediately(0@)
Task.UseClosestMapAttractor(0@, 20.0, 0, 0.0, 0.0, 0.0, "PCHAIR")

:PCUSTOM_800
terminate_this_script 
return 

:PCUSTOM_804
wait 0
if and
  not is_var_text_label_empty s$shop_name
  $iTerminateAllAmbience == 0
goto_if_false @PCUSTOM_890
if 
  not Char.IsDead(0@)
goto_if_false @PCUSTOM_883
11@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 11@ == 7
goto_if_false @PCUSTOM_883
Task.Duck(0@, -2)

:PCUSTOM_883
goto @PCUSTOM_897

:PCUSTOM_890
gosub @PCUSTOM_727

:PCUSTOM_897
goto @PCUSTOM_804
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 43 (OTBWTCH)---------------

:OTBWTCH
script_name 'OTBWTCH'
2@ = 0
if 
  2@ == 1
goto_if_false @OTBWTCH_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:OTBWTCH_60
Streaming.RequestAnimation("OTB")

:OTBWTCH_67
if 
  not Streaming.HasAnimationLoaded("OTB")
goto_if_false @OTBWTCH_96
wait 0
goto @OTBWTCH_67

:OTBWTCH_96
3@ = 1
4@ = 0

:OTBWTCH_110
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @OTBWTCH_221
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @OTBWTCH_207
if 
  $played_ryder1_before == 0
goto_if_false @OTBWTCH_185
gosub @OTBWTCH_235
goto @OTBWTCH_200

:OTBWTCH_185
Char.SetDecisionMaker(0@, $iGlobalPedPanicDM)
goto @OTBWTCH_1122

:OTBWTCH_200
goto @OTBWTCH_214

:OTBWTCH_207
gosub @OTBWTCH_1060

:OTBWTCH_214
goto @OTBWTCH_228

:OTBWTCH_221
gosub @OTBWTCH_1060

:OTBWTCH_228
goto @OTBWTCH_110

:OTBWTCH_235
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @OTBWTCH_312 {caseNum1} 1 {caseLabel1} @OTBWTCH_298 {caseNum2} -1 {caseLabel2} @OTBWTCH_312 {caseNum3} -1 {caseLabel3} @OTBWTCH_312 {caseNum4} -1 {caseLabel4} @OTBWTCH_312 {caseNum5} -1 {caseLabel5} @OTBWTCH_312 {caseNum6} -1 {caseLabel6} @OTBWTCH_312 {caseNum7} -1 {caseLabel7} @OTBWTCH_312

:OTBWTCH_298
gosub @OTBWTCH_314
goto @OTBWTCH_312

:OTBWTCH_312
return 

:OTBWTCH_314
switch_start 4@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @OTBWTCH_1058 {caseNum1} 0 {caseLabel1} @OTBWTCH_377 {caseNum2} 1 {caseLabel2} @OTBWTCH_429 {caseNum3} 2 {caseLabel3} @OTBWTCH_524 {caseNum4} 3 {caseLabel4} @OTBWTCH_682 {caseNum5} 4 {caseLabel5} @OTBWTCH_777 {caseNum6} 5 {caseLabel6} @OTBWTCH_933 {caseNum7} 6 {caseLabel7} @OTBWTCH_1015

:OTBWTCH_377
Task.PlayAnim(0@, "WTCHRACE_IN", "OTB", 4.0, False, False, False, False, -1)
4@ += 1
goto @OTBWTCH_1058

:OTBWTCH_429
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_517
2@ = Math.RandomIntInRange(4000, 8000)
Task.PlayAnim(0@, "WTCHRACE_LOOP", "OTB", 4.0, True, False, False, True, 2@)
4@ += 1

:OTBWTCH_517
goto @OTBWTCH_1058

:OTBWTCH_524
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_675
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @OTBWTCH_627
Task.PlayAnim(0@, "WTCHRACE_CMON", "OTB", 4.0, False, False, False, False, -1)
goto @OTBWTCH_668

:OTBWTCH_627
Task.PlayAnim(0@, "WTCHRACE_LOOP", "OTB", 4.0, True, False, False, False, 1000)

:OTBWTCH_668
4@ += 1

:OTBWTCH_675
goto @OTBWTCH_1058

:OTBWTCH_682
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_770
2@ = Math.RandomIntInRange(4000, 8000)
Task.PlayAnim(0@, "WTCHRACE_LOOP", "OTB", 4.0, True, False, False, True, 2@)
4@ += 1

:OTBWTCH_770
goto @OTBWTCH_1058

:OTBWTCH_777
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_926
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @OTBWTCH_879
Task.PlayAnim(0@, "WTCHRACE_WIN", "OTB", 4.0, False, False, False, False, -1)
goto @OTBWTCH_919

:OTBWTCH_879
Task.PlayAnim(0@, "WTCHRACE_LOSE", "OTB", 4.0, False, False, False, False, -1)

:OTBWTCH_919
4@ += 1

:OTBWTCH_926
goto @OTBWTCH_1058

:OTBWTCH_933
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_1008
Task.PlayAnim(0@, "WTCHRACE_OUT", "OTB", 4.0, False, False, False, False, -1)
4@ += 1

:OTBWTCH_1008
goto @OTBWTCH_1058

:OTBWTCH_1015
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_1051
gosub @OTBWTCH_1060

:OTBWTCH_1051
goto @OTBWTCH_1058

:OTBWTCH_1058
return 

:OTBWTCH_1060
Streaming.RemoveAnimation("OTB")
if 
  not Char.IsDead(0@)
goto_if_false @OTBWTCH_1118
Task.UseClosestMapAttractor(0@, 100.0, 0, 0.0, 0.0, 0.0, "OTBSLP")

:OTBWTCH_1118
terminate_this_script 
return 

:OTBWTCH_1122
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @OTBWTCH_1192
5@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @OTBWTCH_1185
Task.Duck(0@, -2)

:OTBWTCH_1185
goto @OTBWTCH_1199

:OTBWTCH_1192
gosub @OTBWTCH_1060

:OTBWTCH_1199
goto @OTBWTCH_1122
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 44 (OTBSLP)---------------

:OTBSLP
script_name 'OTBSLP'
2@ = 0
if 
  2@ == 1
goto_if_false @OTBSLP_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:OTBSLP_60
Streaming.RequestAnimation("OTB")

:OTBSLP_67
if 
  not Streaming.HasAnimationLoaded("OTB")
goto_if_false @OTBSLP_96
wait 0
goto @OTBSLP_67

:OTBSLP_96
3@ = 1
4@ = 0

:OTBSLP_110
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @OTBSLP_221
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @OTBSLP_207
if 
  $played_ryder1_before == 0
goto_if_false @OTBSLP_185
gosub @OTBSLP_235
goto @OTBSLP_200

:OTBSLP_185
Char.SetDecisionMaker(0@, $iGlobalPedPanicDM)
goto @OTBSLP_902

:OTBSLP_200
goto @OTBSLP_214

:OTBSLP_207
gosub @OTBSLP_891

:OTBSLP_214
goto @OTBSLP_228

:OTBSLP_221
gosub @OTBSLP_891

:OTBSLP_228
goto @OTBSLP_110

:OTBSLP_235
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @OTBSLP_312 {caseNum1} 1 {caseLabel1} @OTBSLP_298 {caseNum2} -1 {caseLabel2} @OTBSLP_312 {caseNum3} -1 {caseLabel3} @OTBSLP_312 {caseNum4} -1 {caseLabel4} @OTBSLP_312 {caseNum5} -1 {caseLabel5} @OTBSLP_312 {caseNum6} -1 {caseLabel6} @OTBSLP_312 {caseNum7} -1 {caseLabel7} @OTBSLP_312

:OTBSLP_298
gosub @OTBSLP_314
goto @OTBSLP_312

:OTBSLP_312
return 

:OTBSLP_314
switch_start 4@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @OTBSLP_889 {caseNum1} 0 {caseLabel1} @OTBSLP_377 {caseNum2} 1 {caseLabel2} @OTBSLP_427 {caseNum3} 2 {caseLabel3} @OTBSLP_520 {caseNum4} 3 {caseLabel4} @OTBSLP_673 {caseNum5} 4 {caseLabel5} @OTBSLP_766 {caseNum6} 5 {caseLabel6} @OTBSLP_846 {caseNum7} -1 {caseLabel7} @OTBSLP_889

:OTBSLP_377
Task.PlayAnim(0@, "BETSLP_IN", "OTB", 4.0, False, False, False, False, -1)
4@ += 1
goto @OTBSLP_889

:OTBSLP_427
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBSLP_513
2@ = Math.RandomIntInRange(4000, 8000)
Task.PlayAnim(0@, "BETSLP_LOOP", "OTB", 4.0, True, False, False, True, 2@)
4@ += 1

:OTBSLP_513
goto @OTBSLP_889

:OTBSLP_520
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBSLP_666
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @OTBSLP_622
Task.PlayAnim(0@, "BETSLP_LKABT", "OTB", 16.0, False, False, False, False, -1)
goto @OTBSLP_659

:OTBSLP_622
Task.PlayAnim(0@, "BETSLP_TNK", "OTB", 16.0, False, False, False, False, -1)

:OTBSLP_659
4@ += 1

:OTBSLP_666
goto @OTBSLP_889

:OTBSLP_673
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBSLP_759
2@ = Math.RandomIntInRange(4000, 8000)
Task.PlayAnim(0@, "BETSLP_LOOP", "OTB", 4.0, True, False, False, True, 2@)
4@ += 1

:OTBSLP_759
goto @OTBSLP_889

:OTBSLP_766
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBSLP_839
Task.PlayAnim(0@, "BETSLP_OUT", "OTB", 4.0, False, False, False, False, -1)
4@ += 1

:OTBSLP_839
goto @OTBSLP_889

:OTBSLP_846
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBSLP_882
gosub @OTBSLP_891

:OTBSLP_882
goto @OTBSLP_889

:OTBSLP_889
return 

:OTBSLP_891
Streaming.RemoveAnimation("OTB")
terminate_this_script 
return 

:OTBSLP_902
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @OTBSLP_972
5@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @OTBSLP_965
Task.Duck(0@, -2)

:OTBSLP_965
goto @OTBSLP_979

:OTBSLP_972
gosub @OTBSLP_891

:OTBSLP_979
goto @OTBSLP_902
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 45 (OTBTILL)---------------

:OTBTILL
script_name 'OTBTILL'
2@ = 0
if 
  2@ == 1
goto_if_false @OTBTILL_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:OTBTILL_60
Streaming.RequestAnimation("INT_SHOP")

:OTBTILL_72
if 
  not Streaming.HasAnimationLoaded("INT_SHOP")
goto_if_false @OTBTILL_106
wait 0
goto @OTBTILL_72

:OTBTILL_106
3@ = 1
4@ = 0
5@ = 0
11@ = 0

:OTBTILL_134
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @OTBTILL_245
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @OTBTILL_231
if 
  $played_ryder1_before == 0
goto_if_false @OTBTILL_209
gosub @OTBTILL_259
goto @OTBTILL_224

:OTBTILL_209
Char.SetDecisionMaker(0@, $iGlobalPedPanicDM)
goto @OTBTILL_655

:OTBTILL_224
goto @OTBTILL_238

:OTBTILL_231
gosub @OTBTILL_587

:OTBTILL_238
goto @OTBTILL_252

:OTBTILL_245
gosub @OTBTILL_587

:OTBTILL_252
goto @OTBTILL_134

:OTBTILL_259
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @OTBTILL_336 {caseNum1} 1 {caseLabel1} @OTBTILL_322 {caseNum2} -1 {caseLabel2} @OTBTILL_336 {caseNum3} -1 {caseLabel3} @OTBTILL_336 {caseNum4} -1 {caseLabel4} @OTBTILL_336 {caseNum5} -1 {caseLabel5} @OTBTILL_336 {caseNum6} -1 {caseLabel6} @OTBTILL_336 {caseNum7} -1 {caseLabel7} @OTBTILL_336

:OTBTILL_322
gosub @OTBTILL_338
goto @OTBTILL_336

:OTBTILL_336
return 

:OTBTILL_338
switch_start 4@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @OTBTILL_585 {caseNum1} 0 {caseLabel1} @OTBTILL_401 {caseNum2} 1 {caseLabel2} @OTBTILL_459 {caseNum3} 2 {caseLabel3} @OTBTILL_542 {caseNum4} -1 {caseLabel4} @OTBTILL_585 {caseNum5} -1 {caseLabel5} @OTBTILL_585 {caseNum6} -1 {caseLabel6} @OTBTILL_585 {caseNum7} -1 {caseLabel7} @OTBTILL_585

:OTBTILL_401
5@ = 1
Task.PlayAnim(0@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, 5000)
4@ += 1
goto @OTBTILL_585

:OTBTILL_459
10@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @OTBTILL_535
Task.PlayAnim(0@, "SHOP_PAY", "INT_SHOP", 1000.0, False, False, False, False, 0)
4@ += 1

:OTBTILL_535
goto @OTBTILL_585

:OTBTILL_542
10@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @OTBTILL_578
gosub @OTBTILL_587

:OTBTILL_578
goto @OTBTILL_585

:OTBTILL_585
return 

:OTBTILL_587
Streaming.RemoveAnimation("INT_SHOP")
if 
  not Char.IsDead(0@)
goto_if_false @OTBTILL_651
Task.UseClosestMapAttractor(0@, 50.0, 0, 0.0, 0.0, 0.0, "OTBWTCH")

:OTBTILL_651
terminate_this_script 
return 

:OTBTILL_655
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @OTBTILL_725
11@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 11@ == 7
goto_if_false @OTBTILL_718
Task.Duck(0@, -2)

:OTBTILL_718
goto @OTBTILL_732

:OTBTILL_725
gosub @OTBTILL_587

:OTBTILL_732
goto @OTBTILL_655
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 46 (FBOOTHR)---------------

:FBOOTHR
script_name 'FBOOTHR'
2@ = 0
if 
  2@ == 1
goto_if_false @FBOOTHR_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:FBOOTHR_60
Streaming.RequestAnimation("FOOD")

:FBOOTHR_68
if 
  not Streaming.HasAnimationLoaded("FOOD")
goto_if_false @FBOOTHR_98
wait 0
goto @FBOOTHR_68

:FBOOTHR_98
9@ = 0.0
3@ = 0
if 
  1@ == 0
goto_if_false @FBOOTHR_154
5@ = 0
4@ = 1
goto @FBOOTHR_168

:FBOOTHR_154
5@ = -2
4@ = 2

:FBOOTHR_168
7@ = 0
if 
  not Char.IsDead(0@)
goto_if_false @FBOOTHR_215
Char.SetSuffersCriticalHits(0@, False)
6@ = 1800000
goto @FBOOTHR_222

:FBOOTHR_215
6@ = 0

:FBOOTHR_222
wait 0
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
  $iTerminateAllAmbience == 0
goto_if_false @FBOOTHR_356
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @FBOOTHR_342
if 
  $iSetPizzaPanic == 0
goto_if_false @FBOOTHR_302
gosub @FBOOTHR_370
goto @FBOOTHR_335

:FBOOTHR_302
if 
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @FBOOTHR_328
$iSetPizzaPanic = 1

:FBOOTHR_328
goto @FBOOTHR_2971

:FBOOTHR_335
goto @FBOOTHR_349

:FBOOTHR_342
gosub @FBOOTHR_2895

:FBOOTHR_349
goto @FBOOTHR_363

:FBOOTHR_356
gosub @FBOOTHR_2895

:FBOOTHR_363
goto @FBOOTHR_222

:FBOOTHR_370
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @FBOOTHR_503 {caseNum1} 1 {caseLabel1} @FBOOTHR_433 {caseNum2} 2 {caseLabel2} @FBOOTHR_447 {caseNum3} 3 {caseLabel3} @FBOOTHR_461 {caseNum4} 4 {caseLabel4} @FBOOTHR_475 {caseNum5} 5 {caseLabel5} @FBOOTHR_489 {caseNum6} -1 {caseLabel6} @FBOOTHR_503 {caseNum7} -1 {caseLabel7} @FBOOTHR_503

:FBOOTHR_433
gosub @FBOOTHR_505
goto @FBOOTHR_503

:FBOOTHR_447
gosub @FBOOTHR_732
goto @FBOOTHR_503

:FBOOTHR_461
gosub @FBOOTHR_2118
goto @FBOOTHR_503

:FBOOTHR_475
gosub @FBOOTHR_2895
goto @FBOOTHR_503

:FBOOTHR_489
gosub @FBOOTHR_2455
goto @FBOOTHR_503

:FBOOTHR_503
return 

:FBOOTHR_505
switch_start 5@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @FBOOTHR_730 {caseNum1} 0 {caseLabel1} @FBOOTHR_568 {caseNum2} 1 {caseLabel2} @FBOOTHR_628 {caseNum3} -1 {caseLabel3} @FBOOTHR_730 {caseNum4} -1 {caseLabel4} @FBOOTHR_730 {caseNum5} -1 {caseLabel5} @FBOOTHR_730 {caseNum6} -1 {caseLabel6} @FBOOTHR_730 {caseNum7} -1 {caseLabel7} @FBOOTHR_730

:FBOOTHR_568
Task.PlayAnimNonInterruptable(0@, "FF_SIT_IN_R", "FOOD", 4.0, False, False, False, True, -1)
3@ = 1
5@ += 1
goto @FBOOTHR_730

:FBOOTHR_628
9@ = 0.0
if 
  Char.IsPlayingAnim(0@, "FF_SIT_IN_R")
goto_if_false @FBOOTHR_688
9@ = Char.GetAnimCurrentTime(0@, "FF_SIT_IN_R")

:FBOOTHR_688
if 
  9@ == 1.0
goto_if_false @FBOOTHR_723
5@ = 0
4@ += 1

:FBOOTHR_723
goto @FBOOTHR_730

:FBOOTHR_730
return 

:FBOOTHR_732
switch_start 5@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @FBOOTHR_2116 {caseNum1} -2 {caseLabel1} @FBOOTHR_795 {caseNum2} 0 {caseLabel2} @FBOOTHR_1120 {caseNum3} 1 {caseLabel3} @FBOOTHR_1577 {caseNum4} 2 {caseLabel4} @FBOOTHR_1819 {caseNum5} 3 {caseLabel5} @FBOOTHR_2022 {caseNum6} -1 {caseLabel6} @FBOOTHR_2116 {caseNum7} -1 {caseLabel7} @FBOOTHR_2116

:FBOOTHR_795
if 
  Char.IsNearAnyChars(0@, 2.2)
goto_if_false @FBOOTHR_865
Task.PlayAnimNonInterruptable(0@, "FF_SIT_LOOK", "FOOD", 1000.0, True, False, False, False, 50000000)
goto @FBOOTHR_1106

:FBOOTHR_865
10@, 11@, 12@ = Char.GetOffsetInWorldCoords(0@, 0.0, 0.0, 0.0)
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @FBOOTHR_942
8@ = Object.Create(#CJ_PIZZA_2, 10@, 11@, 12@)
goto @FBOOTHR_958

:FBOOTHR_942
8@ = Object.Create(#CJ_BURG_2, 10@, 11@, 12@)

:FBOOTHR_958
Task.PickUpObject(0@, 8@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)
if 
  Char.IsMale(0@)
goto_if_false @FBOOTHR_1064
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT1", "FOOD", 1000.0, True, False, False, False, 50000000)
goto @FBOOTHR_1106

:FBOOTHR_1064
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT2", "FOOD", 1000.0, True, False, False, False, 50000000)

:FBOOTHR_1106
5@ = 1
goto @FBOOTHR_2116

:FBOOTHR_1120
if 
  Char.IsHoldingObject(0@, -1)
goto_if_false @FBOOTHR_1252
if 
  Char.IsMale(0@)
goto_if_false @FBOOTHR_1203
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT1", "FOOD", 1000.0, True, False, False, False, 50000000)
goto @FBOOTHR_1245

:FBOOTHR_1203
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT2", "FOOD", 1000.0, True, False, False, False, 50000000)

:FBOOTHR_1245
goto @FBOOTHR_1563

:FBOOTHR_1252
if 
  Char.IsNearAnyChars(0@, 2.2)
goto_if_false @FBOOTHR_1322
Task.PlayAnimNonInterruptable(0@, "FF_SIT_LOOK", "FOOD", 1000.0, True, False, False, False, 50000000)
goto @FBOOTHR_1563

:FBOOTHR_1322
10@, 11@, 12@ = Char.GetOffsetInWorldCoords(0@, 0.0, 0.0, 0.0)
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @FBOOTHR_1399
8@ = Object.Create(#CJ_PIZZA_2, 10@, 11@, 12@)
goto @FBOOTHR_1415

:FBOOTHR_1399
8@ = Object.Create(#CJ_BURG_2, 10@, 11@, 12@)

:FBOOTHR_1415
Task.PickUpObject(0@, 8@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)
if 
  Char.IsMale(0@)
goto_if_false @FBOOTHR_1521
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT1", "FOOD", 1000.0, True, False, False, False, 50000000)
goto @FBOOTHR_1563

:FBOOTHR_1521
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT2", "FOOD", 1000.0, True, False, False, False, 50000000)

:FBOOTHR_1563
5@ += 1
goto @FBOOTHR_2116

:FBOOTHR_1577
13@, 14@, 15@ = Char.GetCoordinates(0@)
15@ -= 1.04
16@, 17@, 18@ = Char.GetOffsetInWorldCoords(0@, 0.1, 0.5, 0.0)
19@, 20@, 21@ = Char.GetOffsetInWorldCoords(0@, 1.0, -0.5, 0.0)
10@, 11@, 12@ = Char.GetOffsetInWorldCoords(0@, -1.0, 0.0, -0.65)
if or
  Char.IsPlayingAnim(0@, "FF_SIT_LOOK")
  Char.IsPlayingAnim(0@, "FF_SIT_EAT1")
  Char.IsPlayingAnim(0@, "FF_SIT_EAT2")
goto_if_false @FBOOTHR_1812
World.SetCharUsesCollisionClosestObjectOfType(13@, 14@, 15@, 1.5, #CJ_PIZZA_CHAIR2, False, 0@)
Char.SetCoordinates(0@, 10@, 11@, 12@)
Char.FreezePosition(0@, True)
TIMERB = 0
5@ += 1

:FBOOTHR_1812
goto @FBOOTHR_2116

:FBOOTHR_1819
if 
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @FBOOTHR_1871
Char.ClearLastDamageEntity(0@)
6@ = 0
4@ = 5
5@ = 0
goto @FBOOTHR_2116

:FBOOTHR_1871
if 
  is_int_lvar_greater_than_int_lvar TIMERB > 6@
goto_if_false @FBOOTHR_2015
if 
  not World.IsAreaOccupied(16@, 17@, 18@, 19@, 20@, 21@, False, False, True, False, False)
goto_if_false @FBOOTHR_1952
5@ = 0
4@ += 1
goto @FBOOTHR_2015

:FBOOTHR_1952
if 
  $iSetPizzaPanic == 1
goto_if_false @FBOOTHR_2015
Task.PlayAnimNonInterruptable(0@, "FF_DIE_FWD", "FOOD", 16.0, False, False, False, True, -1)
5@ += 1

:FBOOTHR_2015
goto @FBOOTHR_2116

:FBOOTHR_2022
if 
  Char.IsHealthGreater(0@, 0)
goto_if_false @FBOOTHR_2102
if 
  not World.IsAreaOccupied(16@, 17@, 18@, 19@, 20@, 21@, False, False, True, False, False)
goto_if_false @FBOOTHR_2095
5@ = 0
4@ += 1

:FBOOTHR_2095
goto @FBOOTHR_2109

:FBOOTHR_2102
Char.SetNeverTargeted(0@, True)

:FBOOTHR_2109
goto @FBOOTHR_2116

:FBOOTHR_2116
return 

:FBOOTHR_2118
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @FBOOTHR_2453 {caseNum1} 0 {caseLabel1} @FBOOTHR_2181 {caseNum2} 1 {caseLabel2} @FBOOTHR_2264 {caseNum3} 2 {caseLabel3} @FBOOTHR_2299 {caseNum4} -1 {caseLabel4} @FBOOTHR_2453 {caseNum5} -1 {caseLabel5} @FBOOTHR_2453 {caseNum6} -1 {caseLabel6} @FBOOTHR_2453 {caseNum7} -1 {caseLabel7} @FBOOTHR_2453

:FBOOTHR_2181
if 
  Char.IsHoldingObject(0@, -1)
goto_if_false @FBOOTHR_2206
Char.DropObject(0@, True)

:FBOOTHR_2206
Task.PlayAnimNonInterruptable(0@, "FF_SIT_OUT_R_180", "FOOD", 99.0, False, False, False, False, -1)
5@ += 1
goto @FBOOTHR_2453

:FBOOTHR_2264
Char.SetCoordinates(0@, 13@, 14@, 15@)
Char.FreezePosition(0@, False)
5@ += 1
goto @FBOOTHR_2453

:FBOOTHR_2299
9@ = 0.0
if 
  Char.IsPlayingAnim(0@, "FF_SIT_OUT_R_180")
goto_if_false @FBOOTHR_2446
9@ = Char.GetAnimCurrentTime(0@, "FF_SIT_OUT_R_180")
if 
  9@ == 1.0
goto_if_false @FBOOTHR_2446
World.SetUsesCollisionOfClosestObjectOfType(13@, 14@, 15@, 1.5, #CJ_PIZZA_CHAIR3, True)
World.SetUsesCollisionOfClosestObjectOfType(13@, 14@, 15@, 1.5, #CJ_PIZZA_CHAIR2, False)
5@ = 0
4@ += 1

:FBOOTHR_2446
goto @FBOOTHR_2453

:FBOOTHR_2453
return 

:FBOOTHR_2455
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @FBOOTHR_2893 {caseNum1} 0 {caseLabel1} @FBOOTHR_2518 {caseNum2} 1 {caseLabel2} @FBOOTHR_2570 {caseNum3} 2 {caseLabel3} @FBOOTHR_2726 {caseNum4} -1 {caseLabel4} @FBOOTHR_2893 {caseNum5} -1 {caseLabel5} @FBOOTHR_2893 {caseNum6} -1 {caseLabel6} @FBOOTHR_2893 {caseNum7} -1 {caseLabel7} @FBOOTHR_2893

:FBOOTHR_2518
Task.PlayAnimNonInterruptable(0@, "FF_DAM_FWD", "FOOD", 16.0, False, False, False, True, 0)
5@ += 1
goto @FBOOTHR_2893

:FBOOTHR_2570
9@ = 0.0
if 
  Char.IsPlayingAnim(0@, "FF_DAM_FWD")
goto_if_false @FBOOTHR_2656
9@ = Char.GetAnimCurrentTime(0@, "FF_DAM_FWD")
if 
  9@ == 1.0
goto_if_false @FBOOTHR_2656
5@ += 1

:FBOOTHR_2656
if 
  not Char.IsHealthGreater(0@, 0)
goto_if_false @FBOOTHR_2719
Task.PlayAnimNonInterruptable(0@, "FF_DIE_FWD", "FOOD", 16.0, False, False, False, True, 0)
gosub @FBOOTHR_2895

:FBOOTHR_2719
goto @FBOOTHR_2893

:FBOOTHR_2726
if 
  not Char.IsHealthGreater(0@, 0)
goto_if_false @FBOOTHR_2796
Task.PlayAnimNonInterruptable(0@, "FF_DIE_FWD", "FOOD", 16.0, False, False, False, True, 0)
gosub @FBOOTHR_2895
goto @FBOOTHR_2879

:FBOOTHR_2796
if 
  not World.IsAreaOccupied(16@, 17@, 18@, 19@, 20@, 21@, False, False, True, False, False)
goto_if_false @FBOOTHR_2865
4@ = 3
5@ = 0
gosub @FBOOTHR_2971
goto @FBOOTHR_2879

:FBOOTHR_2865
4@ = 2
5@ = 2

:FBOOTHR_2879
$iSetPizzaPanic = 1
goto @FBOOTHR_2893

:FBOOTHR_2893
return 

:FBOOTHR_2895
Object.MarkAsNoLongerNeeded(8@)
Streaming.RemoveAnimation("FOOD")
if 
  not Char.IsDead(0@)
goto_if_false @FBOOTHR_2967
Char.SetSuffersCriticalHits(0@, True)
Task.UseClosestMapAttractor(0@, 100.0, 0, 0.0, 0.0, 0.0, "PCUSTOM")

:FBOOTHR_2967
terminate_this_script 
return 

:FBOOTHR_2971
wait 0
if and
  not is_var_text_label_empty s$shop_name
  $iTerminateAllAmbience == 0
goto_if_false @FBOOTHR_3312
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
goto_if_false @FBOOTHR_3305
switch_start 4@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @FBOOTHR_3291 {caseNum1} 1 {caseLabel1} @FBOOTHR_3082 {caseNum2} 2 {caseLabel2} @FBOOTHR_3164 {caseNum3} 3 {caseLabel3} @FBOOTHR_3213 {caseNum4} 4 {caseLabel4} @FBOOTHR_3227 {caseNum5} 5 {caseLabel5} @FBOOTHR_3277 {caseNum6} -1 {caseLabel6} @FBOOTHR_3305 {caseNum7} -1 {caseLabel7} @FBOOTHR_3305

:FBOOTHR_3082
if 
  5@ > 1
goto_if_false @FBOOTHR_3114
gosub @FBOOTHR_370
goto @FBOOTHR_3157

:FBOOTHR_3114
7@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @FBOOTHR_3157
Task.Duck(0@, -2)
gosub @FBOOTHR_2895

:FBOOTHR_3157
goto @FBOOTHR_3305

:FBOOTHR_3164
if 
  5@ == 2
goto_if_false @FBOOTHR_3199
6@ = Math.RandomIntInRange(0, 5)
6@ *= 500

:FBOOTHR_3199
gosub @FBOOTHR_370
goto @FBOOTHR_3305

:FBOOTHR_3213
gosub @FBOOTHR_370
goto @FBOOTHR_3305

:FBOOTHR_3227
7@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @FBOOTHR_3270
Task.Duck(0@, -2)
gosub @FBOOTHR_2895

:FBOOTHR_3270
goto @FBOOTHR_3305

:FBOOTHR_3277
gosub @FBOOTHR_370
goto @FBOOTHR_3305

:FBOOTHR_3291
gosub @FBOOTHR_2895
goto @FBOOTHR_3305

:FBOOTHR_3305
goto @FBOOTHR_3319

:FBOOTHR_3312
gosub @FBOOTHR_2895

:FBOOTHR_3319
goto @FBOOTHR_2971
write_debug "I__________________________I"
write_debug "H"
write_debug "G"
write_debug "F"
write_debug "E"
write_debug_with_int "PEDSTATE" {_p2} 4@
write_debug_with_int "SUBSTATESTATUS" {_p2} 5@
write_debug_with_int "TIMERB" {_p2} TIMERB
write_debug_with_int "TIMERA" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 47 (FBOOTHL)---------------

:FBOOTHL
script_name 'FBOOTHL'
2@ = 0
if 
  2@ == 1
goto_if_false @FBOOTHL_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:FBOOTHL_60
Streaming.RequestAnimation("FOOD")

:FBOOTHL_68
if 
  not Streaming.HasAnimationLoaded("FOOD")
goto_if_false @FBOOTHL_98
wait 0
goto @FBOOTHL_68

:FBOOTHL_98
9@ = 0.0
3@ = 0
if 
  1@ == 0
goto_if_false @FBOOTHL_154
5@ = 0
4@ = 1
goto @FBOOTHL_168

:FBOOTHL_154
5@ = -2
4@ = 2

:FBOOTHL_168
7@ = 0
if 
  not Char.IsDead(0@)
goto_if_false @FBOOTHL_215
Char.SetSuffersCriticalHits(0@, False)
6@ = 1800000
goto @FBOOTHL_222

:FBOOTHL_215
6@ = 0

:FBOOTHL_222
wait 0
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
  $iTerminateAllAmbience == 0
goto_if_false @FBOOTHL_356
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @FBOOTHL_342
if 
  $iSetPizzaPanic == 0
goto_if_false @FBOOTHL_302
gosub @FBOOTHL_370
goto @FBOOTHL_335

:FBOOTHL_302
if 
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @FBOOTHL_328
$iSetPizzaPanic = 1

:FBOOTHL_328
goto @FBOOTHL_2971

:FBOOTHL_335
goto @FBOOTHL_349

:FBOOTHL_342
gosub @FBOOTHL_2895

:FBOOTHL_349
goto @FBOOTHL_363

:FBOOTHL_356
gosub @FBOOTHL_2895

:FBOOTHL_363
goto @FBOOTHL_222

:FBOOTHL_370
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @FBOOTHL_503 {caseNum1} 1 {caseLabel1} @FBOOTHL_433 {caseNum2} 2 {caseLabel2} @FBOOTHL_447 {caseNum3} 3 {caseLabel3} @FBOOTHL_461 {caseNum4} 4 {caseLabel4} @FBOOTHL_475 {caseNum5} 5 {caseLabel5} @FBOOTHL_489 {caseNum6} -1 {caseLabel6} @FBOOTHL_503 {caseNum7} -1 {caseLabel7} @FBOOTHL_503

:FBOOTHL_433
gosub @FBOOTHL_505
goto @FBOOTHL_503

:FBOOTHL_447
gosub @FBOOTHL_732
goto @FBOOTHL_503

:FBOOTHL_461
gosub @FBOOTHL_2118
goto @FBOOTHL_503

:FBOOTHL_475
gosub @FBOOTHL_2895
goto @FBOOTHL_503

:FBOOTHL_489
gosub @FBOOTHL_2455
goto @FBOOTHL_503

:FBOOTHL_503
return 

:FBOOTHL_505
switch_start 5@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @FBOOTHL_730 {caseNum1} 0 {caseLabel1} @FBOOTHL_568 {caseNum2} 1 {caseLabel2} @FBOOTHL_628 {caseNum3} -1 {caseLabel3} @FBOOTHL_730 {caseNum4} -1 {caseLabel4} @FBOOTHL_730 {caseNum5} -1 {caseLabel5} @FBOOTHL_730 {caseNum6} -1 {caseLabel6} @FBOOTHL_730 {caseNum7} -1 {caseLabel7} @FBOOTHL_730

:FBOOTHL_568
Task.PlayAnimNonInterruptable(0@, "FF_SIT_IN_L", "FOOD", 4.0, False, False, False, True, -1)
3@ = 1
5@ += 1
goto @FBOOTHL_730

:FBOOTHL_628
9@ = 0.0
if 
  Char.IsPlayingAnim(0@, "FF_SIT_IN_L")
goto_if_false @FBOOTHL_688
9@ = Char.GetAnimCurrentTime(0@, "FF_SIT_IN_L")

:FBOOTHL_688
if 
  9@ == 1.0
goto_if_false @FBOOTHL_723
5@ = 0
4@ += 1

:FBOOTHL_723
goto @FBOOTHL_730

:FBOOTHL_730
return 

:FBOOTHL_732
switch_start 5@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @FBOOTHL_2116 {caseNum1} -2 {caseLabel1} @FBOOTHL_795 {caseNum2} 0 {caseLabel2} @FBOOTHL_1120 {caseNum3} 1 {caseLabel3} @FBOOTHL_1577 {caseNum4} 2 {caseLabel4} @FBOOTHL_1819 {caseNum5} 3 {caseLabel5} @FBOOTHL_2022 {caseNum6} -1 {caseLabel6} @FBOOTHL_2116 {caseNum7} -1 {caseLabel7} @FBOOTHL_2116

:FBOOTHL_795
if 
  Char.IsNearAnyChars(0@, 2.2)
goto_if_false @FBOOTHL_865
Task.PlayAnimNonInterruptable(0@, "FF_SIT_LOOK", "FOOD", 1000.0, True, False, False, False, 50000000)
goto @FBOOTHL_1106

:FBOOTHL_865
10@, 11@, 12@ = Char.GetOffsetInWorldCoords(0@, 0.0, 0.0, 0.0)
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @FBOOTHL_942
8@ = Object.Create(#CJ_PIZZA_2, 10@, 11@, 12@)
goto @FBOOTHL_958

:FBOOTHL_942
8@ = Object.Create(#CJ_BURG_2, 10@, 11@, 12@)

:FBOOTHL_958
Task.PickUpObject(0@, 8@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)
if 
  Char.IsMale(0@)
goto_if_false @FBOOTHL_1064
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT1", "FOOD", 1000.0, True, False, False, False, 50000000)
goto @FBOOTHL_1106

:FBOOTHL_1064
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT2", "FOOD", 1000.0, True, False, False, False, 50000000)

:FBOOTHL_1106
5@ = 1
goto @FBOOTHL_2116

:FBOOTHL_1120
if 
  Char.IsHoldingObject(0@, -1)
goto_if_false @FBOOTHL_1252
if 
  Char.IsMale(0@)
goto_if_false @FBOOTHL_1203
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT1", "FOOD", 1000.0, True, False, False, False, 50000000)
goto @FBOOTHL_1245

:FBOOTHL_1203
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT2", "FOOD", 1000.0, True, False, False, False, 50000000)

:FBOOTHL_1245
goto @FBOOTHL_1563

:FBOOTHL_1252
if 
  Char.IsNearAnyChars(0@, 2.2)
goto_if_false @FBOOTHL_1322
Task.PlayAnimNonInterruptable(0@, "FF_SIT_LOOK", "FOOD", 1000.0, True, False, False, False, 50000000)
goto @FBOOTHL_1563

:FBOOTHL_1322
10@, 11@, 12@ = Char.GetOffsetInWorldCoords(0@, 0.0, 0.0, 0.0)
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @FBOOTHL_1399
8@ = Object.Create(#CJ_PIZZA_2, 10@, 11@, 12@)
goto @FBOOTHL_1415

:FBOOTHL_1399
8@ = Object.Create(#CJ_BURG_2, 10@, 11@, 12@)

:FBOOTHL_1415
Task.PickUpObject(0@, 8@, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)
if 
  Char.IsMale(0@)
goto_if_false @FBOOTHL_1521
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT1", "FOOD", 1000.0, True, False, False, False, 50000000)
goto @FBOOTHL_1563

:FBOOTHL_1521
Task.PlayAnimNonInterruptable(0@, "FF_SIT_EAT2", "FOOD", 1000.0, True, False, False, False, 50000000)

:FBOOTHL_1563
5@ += 1
goto @FBOOTHL_2116

:FBOOTHL_1577
13@, 14@, 15@ = Char.GetCoordinates(0@)
15@ -= 1.04
16@, 17@, 18@ = Char.GetOffsetInWorldCoords(0@, -0.1, 0.5, 0.0)
19@, 20@, 21@ = Char.GetOffsetInWorldCoords(0@, -1.0, -0.5, 0.0)
10@, 11@, 12@ = Char.GetOffsetInWorldCoords(0@, 1.0, 0.0, -0.65)
if or
  Char.IsPlayingAnim(0@, "FF_SIT_LOOK")
  Char.IsPlayingAnim(0@, "FF_SIT_EAT1")
  Char.IsPlayingAnim(0@, "FF_SIT_EAT2")
goto_if_false @FBOOTHL_1812
World.SetCharUsesCollisionClosestObjectOfType(13@, 14@, 15@, 1.5, #CJ_PIZZA_CHAIR2, False, 0@)
Char.SetCoordinates(0@, 10@, 11@, 12@)
Char.FreezePosition(0@, True)
TIMERB = 0
5@ += 1

:FBOOTHL_1812
goto @FBOOTHL_2116

:FBOOTHL_1819
if 
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @FBOOTHL_1871
Char.ClearLastDamageEntity(0@)
6@ = 0
4@ = 5
5@ = 0
goto @FBOOTHL_2116

:FBOOTHL_1871
if 
  is_int_lvar_greater_than_int_lvar TIMERB > 6@
goto_if_false @FBOOTHL_2015
if 
  not World.IsAreaOccupied(16@, 17@, 18@, 19@, 20@, 21@, False, False, True, False, False)
goto_if_false @FBOOTHL_1952
5@ = 0
4@ += 1
goto @FBOOTHL_2015

:FBOOTHL_1952
if 
  $iSetPizzaPanic == 1
goto_if_false @FBOOTHL_2015
Task.PlayAnimNonInterruptable(0@, "FF_DIE_FWD", "FOOD", 16.0, False, False, False, True, -1)
5@ += 1

:FBOOTHL_2015
goto @FBOOTHL_2116

:FBOOTHL_2022
if 
  Char.IsHealthGreater(0@, 0)
goto_if_false @FBOOTHL_2102
if 
  not World.IsAreaOccupied(16@, 17@, 18@, 19@, 20@, 21@, False, False, True, False, False)
goto_if_false @FBOOTHL_2095
5@ = 0
4@ += 1

:FBOOTHL_2095
goto @FBOOTHL_2109

:FBOOTHL_2102
Char.SetNeverTargeted(0@, True)

:FBOOTHL_2109
goto @FBOOTHL_2116

:FBOOTHL_2116
return 

:FBOOTHL_2118
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @FBOOTHL_2453 {caseNum1} 0 {caseLabel1} @FBOOTHL_2181 {caseNum2} 1 {caseLabel2} @FBOOTHL_2264 {caseNum3} 2 {caseLabel3} @FBOOTHL_2299 {caseNum4} -1 {caseLabel4} @FBOOTHL_2453 {caseNum5} -1 {caseLabel5} @FBOOTHL_2453 {caseNum6} -1 {caseLabel6} @FBOOTHL_2453 {caseNum7} -1 {caseLabel7} @FBOOTHL_2453

:FBOOTHL_2181
if 
  Char.IsHoldingObject(0@, -1)
goto_if_false @FBOOTHL_2206
Char.DropObject(0@, True)

:FBOOTHL_2206
Task.PlayAnimNonInterruptable(0@, "FF_SIT_OUT_L_180", "FOOD", 99.0, False, False, False, False, -1)
5@ += 1
goto @FBOOTHL_2453

:FBOOTHL_2264
Char.SetCoordinates(0@, 13@, 14@, 15@)
Char.FreezePosition(0@, False)
5@ += 1
goto @FBOOTHL_2453

:FBOOTHL_2299
9@ = 0.0
if 
  Char.IsPlayingAnim(0@, "FF_SIT_OUT_L_180")
goto_if_false @FBOOTHL_2446
9@ = Char.GetAnimCurrentTime(0@, "FF_SIT_OUT_L_180")
if 
  9@ == 1.0
goto_if_false @FBOOTHL_2446
World.SetUsesCollisionOfClosestObjectOfType(13@, 14@, 15@, 1.5, #CJ_PIZZA_CHAIR3, True)
World.SetUsesCollisionOfClosestObjectOfType(13@, 14@, 15@, 1.5, #CJ_PIZZA_CHAIR2, False)
5@ = 0
4@ += 1

:FBOOTHL_2446
goto @FBOOTHL_2453

:FBOOTHL_2453
return 

:FBOOTHL_2455
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @FBOOTHL_2893 {caseNum1} 0 {caseLabel1} @FBOOTHL_2518 {caseNum2} 1 {caseLabel2} @FBOOTHL_2570 {caseNum3} 2 {caseLabel3} @FBOOTHL_2726 {caseNum4} -1 {caseLabel4} @FBOOTHL_2893 {caseNum5} -1 {caseLabel5} @FBOOTHL_2893 {caseNum6} -1 {caseLabel6} @FBOOTHL_2893 {caseNum7} -1 {caseLabel7} @FBOOTHL_2893

:FBOOTHL_2518
Task.PlayAnimNonInterruptable(0@, "FF_DAM_FWD", "FOOD", 16.0, False, False, False, True, 0)
5@ += 1
goto @FBOOTHL_2893

:FBOOTHL_2570
9@ = 0.0
if 
  Char.IsPlayingAnim(0@, "FF_DAM_FWD")
goto_if_false @FBOOTHL_2656
9@ = Char.GetAnimCurrentTime(0@, "FF_DAM_FWD")
if 
  9@ == 1.0
goto_if_false @FBOOTHL_2656
5@ += 1

:FBOOTHL_2656
if 
  not Char.IsHealthGreater(0@, 0)
goto_if_false @FBOOTHL_2719
Task.PlayAnimNonInterruptable(0@, "FF_DIE_FWD", "FOOD", 16.0, False, False, False, True, 0)
gosub @FBOOTHL_2895

:FBOOTHL_2719
goto @FBOOTHL_2893

:FBOOTHL_2726
if 
  not Char.IsHealthGreater(0@, 0)
goto_if_false @FBOOTHL_2796
Task.PlayAnimNonInterruptable(0@, "FF_DIE_FWD", "FOOD", 16.0, False, False, False, True, 0)
gosub @FBOOTHL_2895
goto @FBOOTHL_2879

:FBOOTHL_2796
if 
  not World.IsAreaOccupied(16@, 17@, 18@, 19@, 20@, 21@, False, False, True, False, False)
goto_if_false @FBOOTHL_2865
4@ = 3
5@ = 0
gosub @FBOOTHL_2971
goto @FBOOTHL_2879

:FBOOTHL_2865
4@ = 2
5@ = 2

:FBOOTHL_2879
$iSetPizzaPanic = 1
goto @FBOOTHL_2893

:FBOOTHL_2893
return 

:FBOOTHL_2895
Object.MarkAsNoLongerNeeded(8@)
Streaming.RemoveAnimation("FOOD")
if 
  not Char.IsDead(0@)
goto_if_false @FBOOTHL_2967
Char.SetSuffersCriticalHits(0@, True)
Task.UseClosestMapAttractor(0@, 100.0, 0, 0.0, 0.0, 0.0, "PCUSTOM")

:FBOOTHL_2967
terminate_this_script 
return 

:FBOOTHL_2971
wait 0
if and
  not is_var_text_label_empty s$shop_name
  $iTerminateAllAmbience == 0
goto_if_false @FBOOTHL_3312
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
goto_if_false @FBOOTHL_3305
switch_start 4@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @FBOOTHL_3291 {caseNum1} 1 {caseLabel1} @FBOOTHL_3082 {caseNum2} 2 {caseLabel2} @FBOOTHL_3164 {caseNum3} 3 {caseLabel3} @FBOOTHL_3213 {caseNum4} 4 {caseLabel4} @FBOOTHL_3227 {caseNum5} 5 {caseLabel5} @FBOOTHL_3277 {caseNum6} -1 {caseLabel6} @FBOOTHL_3305 {caseNum7} -1 {caseLabel7} @FBOOTHL_3305

:FBOOTHL_3082
if 
  5@ > 1
goto_if_false @FBOOTHL_3114
gosub @FBOOTHL_370
goto @FBOOTHL_3157

:FBOOTHL_3114
7@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @FBOOTHL_3157
Task.Duck(0@, -2)
gosub @FBOOTHL_2895

:FBOOTHL_3157
goto @FBOOTHL_3305

:FBOOTHL_3164
if 
  5@ == 2
goto_if_false @FBOOTHL_3199
6@ = Math.RandomIntInRange(0, 5)
6@ *= 500

:FBOOTHL_3199
gosub @FBOOTHL_370
goto @FBOOTHL_3305

:FBOOTHL_3213
gosub @FBOOTHL_370
goto @FBOOTHL_3305

:FBOOTHL_3227
7@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @FBOOTHL_3270
Task.Duck(0@, -2)
gosub @FBOOTHL_2895

:FBOOTHL_3270
goto @FBOOTHL_3305

:FBOOTHL_3277
gosub @FBOOTHL_370
goto @FBOOTHL_3305

:FBOOTHL_3291
gosub @FBOOTHL_2895
goto @FBOOTHL_3305

:FBOOTHL_3305
goto @FBOOTHL_3319

:FBOOTHL_3312
gosub @FBOOTHL_2895

:FBOOTHL_3319
goto @FBOOTHL_2971
write_debug "I__________________________I"
write_debug "H"
write_debug "G"
write_debug "F"
write_debug "E"
write_debug_with_int "PEDSTATE" {_p2} 4@
write_debug_with_int "SUBSTATESTATUS" {_p2} 5@
write_debug_with_int "TIMERB" {_p2} TIMERB
write_debug_with_int "TIMERA" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 48 (BARGUY)---------------

:BARGUY
script_name 'BARGUY'
2@ = 0
if 
  2@ == 1
goto_if_false @BARGUY_60
0@ = Char.Create(PedType.CivMale, 0, 0.0, 0.0, 0.0)

:BARGUY_60
Streaming.RequestAnimation("BAR")

:BARGUY_67
if 
  not Streaming.HasAnimationLoaded("BAR")
goto_if_false @BARGUY_96
wait 0
goto @BARGUY_67

:BARGUY_96
3@ = 1
4@ = 0
5@ = 0
11@ = 0

:BARGUY_124
wait 0
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
  $iTerminateAllAmbience == 0
goto_if_false @BARGUY_272
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @BARGUY_258
if 
  $fFunTemp == 0
goto_if_false @BARGUY_244
if 
  not Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @BARGUY_223
gosub @BARGUY_286
goto @BARGUY_237

:BARGUY_223
$fFunTemp = 1
goto @BARGUY_1067

:BARGUY_237
goto @BARGUY_251

:BARGUY_244
goto @BARGUY_1067

:BARGUY_251
goto @BARGUY_265

:BARGUY_258
gosub @BARGUY_1035

:BARGUY_265
goto @BARGUY_279

:BARGUY_272
gosub @BARGUY_1035

:BARGUY_279
goto @BARGUY_124

:BARGUY_286
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @BARGUY_363 {caseNum1} 1 {caseLabel1} @BARGUY_349 {caseNum2} -1 {caseLabel2} @BARGUY_363 {caseNum3} -1 {caseLabel3} @BARGUY_363 {caseNum4} -1 {caseLabel4} @BARGUY_363 {caseNum5} -1 {caseLabel5} @BARGUY_363 {caseNum6} -1 {caseLabel6} @BARGUY_363 {caseNum7} -1 {caseLabel7} @BARGUY_363

:BARGUY_349
gosub @BARGUY_365
goto @BARGUY_363

:BARGUY_363
return 

:BARGUY_365
switch_start 4@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @BARGUY_1033 {caseNum1} 0 {caseLabel1} @BARGUY_428 {caseNum2} 1 {caseLabel2} @BARGUY_488 {caseNum3} 2 {caseLabel3} @BARGUY_577 {caseNum4} 3 {caseLabel4} @BARGUY_674 {caseNum5} 4 {caseLabel5} @BARGUY_754 {caseNum6} 5 {caseLabel6} @BARGUY_826 {caseNum7} 6 {caseLabel7} @BARGUY_947

:BARGUY_428
10@ = Char.GetScriptTaskStatus(0@, 1481)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BARGUY_481
Task.LookAbout(0@, -2)
10@ = Char.SetSayContext(0@, 21)
4@ += 1

:BARGUY_481
goto @BARGUY_1033

:BARGUY_488
10@ = Char.GetHealth(0@)
if 
  10@ == 99
goto_if_false @BARGUY_570
Char.SetHealth(0@, 100)
Task.PlayAnim(0@, "BARCUSTOM_ORDER", "BAR", 4.0, False, False, False, False, 0)
4@ += 1

:BARGUY_570
goto @BARGUY_1033

:BARGUY_577
10@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BARGUY_667
Task.PlayAnim(0@, "BARCUSTOM_LOOP", "BAR", 4.0, True, False, False, False, 600000)
10@ = Char.SetSayContext(0@, 21)
4@ += 1

:BARGUY_667
goto @BARGUY_1033

:BARGUY_674
10@ = Char.GetHealth(0@)
if 
  10@ == 99
goto_if_false @BARGUY_747
Task.PlayAnim(0@, "BARCUSTOM_GET", "BAR", 4.0, False, False, False, False, 0)
4@ += 1

:BARGUY_747
goto @BARGUY_1033

:BARGUY_754
10@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BARGUY_819
7@, 8@, 9@ = Char.GetOffsetInWorldCoords(0@, 0.0, 0.1, 1.0)
4@ += 1

:BARGUY_819
goto @BARGUY_1033

:BARGUY_826
if 
  Char.IsMale(0@)
goto_if_false @BARGUY_891
Task.PlayAnim(0@, "DNK_STNDM_LOOP", "BAR", 4.0, True, False, False, False, 15000)
goto @BARGUY_933

:BARGUY_891
Task.PlayAnim(0@, "DNK_STNDF_LOOP", "BAR", 4.0, True, False, False, False, 15000)

:BARGUY_933
4@ += 1
goto @BARGUY_1033

:BARGUY_947
10@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BARGUY_1026
Char.SetHealth(0@, 100)
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
goto_if_false @BARGUY_1019
4@ = 0
goto @BARGUY_1026

:BARGUY_1019
gosub @BARGUY_1035

:BARGUY_1026
goto @BARGUY_1033

:BARGUY_1033
return 

:BARGUY_1035
Streaming.RemoveAnimation("BAR")
if 
  not Char.IsDead(0@)
goto_if_false @BARGUY_1063
Char.ClearTasksImmediately(0@)

:BARGUY_1063
terminate_this_script 
return 

:BARGUY_1067
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @BARGUY_1137
11@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 11@ == 7
goto_if_false @BARGUY_1130
Task.Duck(0@, -2)

:BARGUY_1130
goto @BARGUY_1144

:BARGUY_1137
gosub @BARGUY_1035

:BARGUY_1144
goto @BARGUY_1067
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 49 (PEDROUL)---------------

:PEDROUL
script_name 'PEDROUL'
2@ = 0
if 
  2@ == 1
goto_if_false @PEDROUL_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:PEDROUL_60
Streaming.RequestAnimation("CASINO")

:PEDROUL_70
if 
  not Streaming.HasAnimationLoaded("CASINO")
goto_if_false @PEDROUL_102
wait 0
goto @PEDROUL_70

:PEDROUL_102
3@ = 1
4@ = 0

:PEDROUL_116
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @PEDROUL_227
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @PEDROUL_213
if 
  $fFunTemp == 0
goto_if_false @PEDROUL_191
gosub @PEDROUL_241
goto @PEDROUL_206

:PEDROUL_191
Char.SetDecisionMaker(0@, $iGlobalPedPanicDM)
goto @PEDROUL_998

:PEDROUL_206
goto @PEDROUL_220

:PEDROUL_213
gosub @PEDROUL_984

:PEDROUL_220
goto @PEDROUL_234

:PEDROUL_227
gosub @PEDROUL_984

:PEDROUL_234
goto @PEDROUL_116

:PEDROUL_241
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PEDROUL_318 {caseNum1} 1 {caseLabel1} @PEDROUL_304 {caseNum2} -1 {caseLabel2} @PEDROUL_318 {caseNum3} -1 {caseLabel3} @PEDROUL_318 {caseNum4} -1 {caseLabel4} @PEDROUL_318 {caseNum5} -1 {caseLabel5} @PEDROUL_318 {caseNum6} -1 {caseLabel6} @PEDROUL_318 {caseNum7} -1 {caseLabel7} @PEDROUL_318

:PEDROUL_304
gosub @PEDROUL_320
goto @PEDROUL_318

:PEDROUL_318
return 

:PEDROUL_320
switch_start 4@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @PEDROUL_982 {caseNum1} 0 {caseLabel1} @PEDROUL_383 {caseNum2} 1 {caseLabel2} @PEDROUL_438 {caseNum3} 2 {caseLabel3} @PEDROUL_533 {caseNum4} 3 {caseLabel4} @PEDROUL_631 {caseNum5} 4 {caseLabel5} @PEDROUL_813 {caseNum6} 5 {caseLabel6} @PEDROUL_939 {caseNum7} -1 {caseLabel7} @PEDROUL_982

:PEDROUL_383
Task.PlayAnim(0@, "ROULETTE_IN", "CASINO", 4.0, False, False, False, False, -1)
4@ += 1
goto @PEDROUL_982

:PEDROUL_438
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDROUL_526
Task.PlayAnim(0@, "ROULETTE_BET", "CASINO", 4.0, False, False, False, False, -1)
2@ = Char.SetSayContext(0@, 103)
4@ += 1

:PEDROUL_526
goto @PEDROUL_982

:PEDROUL_533
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDROUL_624
2@ = Math.RandomIntInRange(8000, 15000)
Task.PlayAnim(0@, "ROULETTE_LOOP", "CASINO", 4.0, True, False, False, True, 2@)
4@ += 1

:PEDROUL_624
goto @PEDROUL_982

:PEDROUL_631
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDROUL_806
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @PEDROUL_746
Task.PlayAnim(0@, "ROULETTE_WIN", "CASINO", 4.0, False, False, False, False, -1)
2@ = Char.SetSayContext(0@, 100)
goto @PEDROUL_799

:PEDROUL_746
Task.PlayAnim(0@, "ROULETTE_LOSE", "CASINO", 4.0, False, False, False, False, -1)
2@ = Char.SetSayContext(0@, 101)

:PEDROUL_799
4@ += 1

:PEDROUL_806
goto @PEDROUL_982

:PEDROUL_813
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDROUL_932
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @PEDROUL_883
4@ = 1
goto @PEDROUL_932

:PEDROUL_883
Task.PlayAnim(0@, "ROULETTE_OUT", "CASINO", 4.0, False, False, False, False, -1)
4@ += 1

:PEDROUL_932
goto @PEDROUL_982

:PEDROUL_939
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDROUL_975
gosub @PEDROUL_984

:PEDROUL_975
goto @PEDROUL_982

:PEDROUL_982
return 

:PEDROUL_984
Streaming.RemoveAnimation("CASINO")
terminate_this_script 
return 

:PEDROUL_998
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @PEDROUL_1068
5@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @PEDROUL_1061
Task.Duck(0@, -2)

:PEDROUL_1061
goto @PEDROUL_1075

:PEDROUL_1068
gosub @PEDROUL_984

:PEDROUL_1075
goto @PEDROUL_998
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 50 (PEDCARD)---------------

:PEDCARD
script_name 'PEDCARD'
2@ = 0
if 
  2@ == 1
goto_if_false @PEDCARD_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:PEDCARD_60
Streaming.RequestAnimation("CASINO")

:PEDCARD_70
if 
  not Streaming.HasAnimationLoaded("CASINO")
goto_if_false @PEDCARD_102
wait 0
goto @PEDCARD_70

:PEDCARD_102
3@ = 1
4@ = 0

:PEDCARD_116
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @PEDCARD_227
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @PEDCARD_213
if 
  $fFunTemp == 0
goto_if_false @PEDCARD_191
gosub @PEDCARD_241
goto @PEDCARD_206

:PEDCARD_191
Char.SetDecisionMaker(0@, $iGlobalPedPanicDM)
goto @PEDCARD_1335

:PEDCARD_206
goto @PEDCARD_220

:PEDCARD_213
gosub @PEDCARD_1321

:PEDCARD_220
goto @PEDCARD_234

:PEDCARD_227
gosub @PEDCARD_1321

:PEDCARD_234
goto @PEDCARD_116

:PEDCARD_241
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PEDCARD_318 {caseNum1} 1 {caseLabel1} @PEDCARD_304 {caseNum2} -1 {caseLabel2} @PEDCARD_318 {caseNum3} -1 {caseLabel3} @PEDCARD_318 {caseNum4} -1 {caseLabel4} @PEDCARD_318 {caseNum5} -1 {caseLabel5} @PEDCARD_318 {caseNum6} -1 {caseLabel6} @PEDCARD_318 {caseNum7} -1 {caseLabel7} @PEDCARD_318

:PEDCARD_304
gosub @PEDCARD_320
goto @PEDCARD_318

:PEDCARD_318
return 

:PEDCARD_320
switch_start 4@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @PEDCARD_1319 {caseNum1} 0 {caseLabel1} @PEDCARD_448 {caseNum2} 1 {caseLabel2} @PEDCARD_510 {caseNum3} 2 {caseLabel3} @PEDCARD_596 {caseNum4} 3 {caseLabel4} @PEDCARD_691 {caseNum5} 4 {caseLabel5} @PEDCARD_872 {caseNum6} 5 {caseLabel6} @PEDCARD_977 {caseNum7} 6 {caseLabel7} @PEDCARD_1153
switch_continued 7 {caseLabel1} @PEDCARD_1276 {caseNum2} -1 {caseLabel2} @PEDCARD_1319 {caseNum3} -1 {caseLabel3} @PEDCARD_1319 {caseNum4} -1 {caseLabel4} @PEDCARD_1319 {caseNum5} -1 {caseLabel5} @PEDCARD_1319 {caseNum6} -1 {caseLabel6} @PEDCARD_1319 {caseNum7} -1 {caseLabel7} @PEDCARD_1319 {caseNum8} -1 {caseLabel8} @PEDCARD_1319 {caseNum9} -1 {caseLabel9} @PEDCARD_1319

:PEDCARD_448
Task.PlayAnim(0@, "CARDS_IN", "CASINO", 4.0, False, False, False, False, -1)
2@ = Char.SetSayContext(0@, 93)
4@ += 1
goto @PEDCARD_1319

:PEDCARD_510
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_589
Task.PlayAnim(0@, "CARDS_PICK_01", "CASINO", 4.0, False, False, False, False, -1)
4@ += 1

:PEDCARD_589
goto @PEDCARD_1319

:PEDCARD_596
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_684
2@ = Math.RandomIntInRange(8000, 15000)
Task.PlayAnim(0@, "CARDS_LOOP", "CASINO", 4.0, True, False, False, True, 2@)
4@ += 1

:PEDCARD_684
goto @PEDCARD_1319

:PEDCARD_691
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_865
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @PEDCARD_805
Task.PlayAnim(0@, "CARDS_RAISE", "CASINO", 4.0, False, False, False, False, -1)
2@ = Char.SetSayContext(0@, 98)
goto @PEDCARD_858

:PEDCARD_805
Task.PlayAnim(0@, "CARDS_PICK_02", "CASINO", 4.0, False, False, False, False, -1)
2@ = Char.SetSayContext(0@, 93)

:PEDCARD_858
4@ += 1

:PEDCARD_865
goto @PEDCARD_1319

:PEDCARD_872
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_970
2@ = Math.RandomIntInRange(1500, 5000)
Task.PlayAnim(0@, "CARDS_LOOP", "CASINO", 4.0, True, False, False, True, 2@)
2@ = Char.SetSayContext(0@, 95)
4@ += 1

:PEDCARD_970
goto @PEDCARD_1319

:PEDCARD_977
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_1146
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @PEDCARD_1089
Task.PlayAnim(0@, "CARDS_WIN", "CASINO", 4.0, False, False, False, False, -1)
2@ = Char.SetSayContext(0@, 96)
goto @PEDCARD_1139

:PEDCARD_1089
Task.PlayAnim(0@, "CARDS_LOSE", "CASINO", 4.0, False, False, False, False, -1)
2@ = Char.SetSayContext(0@, 94)

:PEDCARD_1139
4@ += 1

:PEDCARD_1146
goto @PEDCARD_1319

:PEDCARD_1153
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_1269
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @PEDCARD_1223
4@ = 1
goto @PEDCARD_1269

:PEDCARD_1223
Task.PlayAnim(0@, "CARDS_OUT", "CASINO", 4.0, False, False, False, False, -1)
4@ += 1

:PEDCARD_1269
goto @PEDCARD_1319

:PEDCARD_1276
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_1312
gosub @PEDCARD_1321

:PEDCARD_1312
goto @PEDCARD_1319

:PEDCARD_1319
return 

:PEDCARD_1321
Streaming.RemoveAnimation("CASINO")
terminate_this_script 
return 

:PEDCARD_1335
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @PEDCARD_1405
5@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @PEDCARD_1398
Task.Duck(0@, -2)

:PEDCARD_1398
goto @PEDCARD_1412

:PEDCARD_1405
gosub @PEDCARD_1321

:PEDCARD_1412
goto @PEDCARD_1335
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 51 (PEDSLOT)---------------

:PEDSLOT
script_name 'PEDSLOT'
2@ = 0
if 
  2@ == 1
goto_if_false @PEDSLOT_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:PEDSLOT_60
Streaming.RequestAnimation("CASINO")

:PEDSLOT_70
if 
  not Streaming.HasAnimationLoaded("CASINO")
goto_if_false @PEDSLOT_102
wait 0
goto @PEDSLOT_70

:PEDSLOT_102
3@ = 1
4@ = 0

:PEDSLOT_116
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @PEDSLOT_227
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @PEDSLOT_213
if 
  $fFunTemp == 0
goto_if_false @PEDSLOT_191
gosub @PEDSLOT_241
goto @PEDSLOT_206

:PEDSLOT_191
Char.SetDecisionMaker(0@, $iGlobalPedPanicDM)
goto @PEDSLOT_1042

:PEDSLOT_206
goto @PEDSLOT_220

:PEDSLOT_213
gosub @PEDSLOT_1028

:PEDSLOT_220
goto @PEDSLOT_234

:PEDSLOT_227
gosub @PEDSLOT_1028

:PEDSLOT_234
goto @PEDSLOT_116

:PEDSLOT_241
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PEDSLOT_318 {caseNum1} 1 {caseLabel1} @PEDSLOT_304 {caseNum2} -1 {caseLabel2} @PEDSLOT_318 {caseNum3} -1 {caseLabel3} @PEDSLOT_318 {caseNum4} -1 {caseLabel4} @PEDSLOT_318 {caseNum5} -1 {caseLabel5} @PEDSLOT_318 {caseNum6} -1 {caseLabel6} @PEDSLOT_318 {caseNum7} -1 {caseLabel7} @PEDSLOT_318

:PEDSLOT_304
gosub @PEDSLOT_320
goto @PEDSLOT_318

:PEDSLOT_318
return 

:PEDSLOT_320
switch_start 4@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @PEDSLOT_1026 {caseNum1} 0 {caseLabel1} @PEDSLOT_383 {caseNum2} 1 {caseLabel2} @PEDSLOT_434 {caseNum3} 2 {caseLabel3} @PEDSLOT_519 {caseNum4} 3 {caseLabel4} @PEDSLOT_613 {caseNum5} 4 {caseLabel5} @PEDSLOT_770 {caseNum6} 5 {caseLabel6} @PEDSLOT_942 {caseNum7} -1 {caseLabel7} @PEDSLOT_1026

:PEDSLOT_383
Task.PlayAnim(0@, "SLOT_IN", "CASINO", 4.0, False, False, False, False, -1)
4@ += 1
goto @PEDSLOT_1026

:PEDSLOT_434
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDSLOT_512
Task.PlayAnim(0@, "SLOT_BET_01", "CASINO", 4.0, False, False, False, False, 2@)
4@ += 1

:PEDSLOT_512
goto @PEDSLOT_1026

:PEDSLOT_519
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDSLOT_606
2@ = Math.RandomIntInRange(1500, 5000)
Task.PlayAnim(0@, "SLOT_WAIT", "CASINO", 4.0, True, False, False, True, 2@)
4@ += 1

:PEDSLOT_606
goto @PEDSLOT_1026

:PEDSLOT_613
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDSLOT_763
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @PEDSLOT_717
Task.PlayAnim(0@, "SLOT_BET_02", "CASINO", 4.0, False, False, False, False, -1)
goto @PEDSLOT_756

:PEDSLOT_717
Task.PlayAnim(0@, "SLOT_WAIT", "CASINO", 4.0, False, False, False, False, -1)

:PEDSLOT_756
4@ += 1

:PEDSLOT_763
goto @PEDSLOT_1026

:PEDSLOT_770
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDSLOT_935
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @PEDSLOT_885
Task.PlayAnim(0@, "SLOT_WIN_OUT", "CASINO", 4.0, False, False, False, False, -1)
2@ = Char.SetSayContext(0@, 104)
goto @PEDSLOT_928

:PEDSLOT_885
Task.PlayAnim(0@, "SLOT_LOSE_OUT", "CASINO", 4.0, False, False, False, False, -1)

:PEDSLOT_928
4@ += 1

:PEDSLOT_935
goto @PEDSLOT_1026

:PEDSLOT_942
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDSLOT_1019
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @PEDSLOT_1012
4@ = 0
goto @PEDSLOT_1019

:PEDSLOT_1012
gosub @PEDSLOT_1028

:PEDSLOT_1019
goto @PEDSLOT_1026

:PEDSLOT_1026
return 

:PEDSLOT_1028
Streaming.RemoveAnimation("CASINO")
terminate_this_script 
return 

:PEDSLOT_1042
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @PEDSLOT_1112
5@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @PEDSLOT_1105
Task.Duck(0@, -2)

:PEDSLOT_1105
goto @PEDSLOT_1119

:PEDSLOT_1112
gosub @PEDSLOT_1028

:PEDSLOT_1119
goto @PEDSLOT_1042
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 52 (DANCER)---------------

:DANCER
script_name 'DANCER'
2@ = 0
if 
  2@ == 1
goto_if_false @DANCER_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:DANCER_60
Streaming.RequestAnimation("DANCING")

:DANCER_71
if 
  not Streaming.HasAnimationLoaded("DANCING")
goto_if_false @DANCER_104
wait 0
goto @DANCER_71

:DANCER_104
if 
  not Char.IsDead(0@)
goto_if_false @DANCER_317
2@ = Char.GetModel(0@)
if 
  10 > 2@
goto_if_false @DANCER_169
set_lvar_int_to_lvar_int 7@ = 2@
7@ *= 1500
goto @DANCER_225

:DANCER_169
if 
  100 > 2@
goto_if_false @DANCER_210
set_lvar_int_to_lvar_int 7@ = 2@
7@ *= 150
goto @DANCER_225

:DANCER_210
set_lvar_int_to_lvar_int 7@ = 2@
7@ *= 15

:DANCER_225
set_lvar_int_to_lvar_int 3@ = 2@
3@ /= 2
3@ *= 2
if 
  is_int_lvar_equal_to_int_lvar 2@ == 3@
goto_if_false @DANCER_310
if 
  Char.IsMale(0@)
goto_if_false @DANCER_296
8@ = 1
goto @DANCER_303

:DANCER_296
8@ = 2

:DANCER_303
goto @DANCER_317

:DANCER_310
8@ = 3

:DANCER_317
3@ = 1
4@ = 0

:DANCER_331
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @DANCER_442
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @DANCER_428
if 
  $iBouncerAction == 0
goto_if_false @DANCER_406
gosub @DANCER_456
goto @DANCER_421

:DANCER_406
Char.SetDecisionMaker(0@, $iGlobalPedPanicDM)
goto @DANCER_1424

:DANCER_421
goto @DANCER_435

:DANCER_428
gosub @DANCER_1358

:DANCER_435
goto @DANCER_449

:DANCER_442
gosub @DANCER_1358

:DANCER_449
goto @DANCER_331

:DANCER_456
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @DANCER_540 {caseNum1} 1 {caseLabel1} @DANCER_519 {caseNum2} -1 {caseLabel2} @DANCER_540 {caseNum3} -1 {caseLabel3} @DANCER_540 {caseNum4} -1 {caseLabel4} @DANCER_540 {caseNum5} -1 {caseLabel5} @DANCER_540 {caseNum6} -1 {caseLabel6} @DANCER_540 {caseNum7} -1 {caseLabel7} @DANCER_540

:DANCER_519
gosub @DANCER_1246
gosub @DANCER_542
goto @DANCER_540

:DANCER_540
return 

:DANCER_542
switch_start 4@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DANCER_1244 {caseNum1} 0 {caseLabel1} @DANCER_605 {caseNum2} 1 {caseLabel2} @DANCER_818 {caseNum3} 2 {caseLabel3} @DANCER_1031 {caseNum4} -1 {caseLabel4} @DANCER_1244 {caseNum5} -1 {caseLabel5} @DANCER_1244 {caseNum6} -1 {caseLabel6} @DANCER_1244 {caseNum7} -1 {caseLabel7} @DANCER_1244

:DANCER_605
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @DANCER_811
if 
  8@ == 1
goto_if_false @DANCER_699
Task.PlayAnim(0@, "DNCE_M_C", "DANCING", 4.0, True, False, False, True, 7@)
goto @DANCER_804

:DANCER_699
if 
  8@ == 2
goto_if_false @DANCER_764
Task.PlayAnim(0@, "DNCE_M_B", "DANCING", 4.0, True, False, False, True, 7@)
goto @DANCER_804

:DANCER_764
Task.PlayAnim(0@, "DNCE_M_A", "DANCING", 4.0, True, False, False, True, 7@)

:DANCER_804
4@ += 1

:DANCER_811
goto @DANCER_1244

:DANCER_818
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @DANCER_1024
if 
  8@ == 1
goto_if_false @DANCER_912
Task.PlayAnim(0@, "DNCE_M_D", "DANCING", 4.0, True, False, False, True, 7@)
goto @DANCER_1017

:DANCER_912
if 
  8@ == 2
goto_if_false @DANCER_977
Task.PlayAnim(0@, "DNCE_M_C", "DANCING", 4.0, True, False, False, True, 7@)
goto @DANCER_1017

:DANCER_977
Task.PlayAnim(0@, "DNCE_M_B", "DANCING", 4.0, True, False, False, True, 7@)

:DANCER_1017
4@ += 1

:DANCER_1024
goto @DANCER_1244

:DANCER_1031
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @DANCER_1237
if 
  8@ == 1
goto_if_false @DANCER_1125
Task.PlayAnim(0@, "DNCE_M_A", "DANCING", 4.0, True, False, False, True, 7@)
goto @DANCER_1230

:DANCER_1125
if 
  8@ == 2
goto_if_false @DANCER_1190
Task.PlayAnim(0@, "DNCE_M_D", "DANCING", 4.0, True, False, False, True, 7@)
goto @DANCER_1230

:DANCER_1190
Task.PlayAnim(0@, "DNCE_M_C", "DANCING", 4.0, True, False, False, True, 7@)

:DANCER_1230
4@ = 0

:DANCER_1237
goto @DANCER_1244

:DANCER_1244
return 

:DANCER_1246
if 
  is_global_var_bit_set_const $d6_trip_skips_available {n} 31
goto_if_false @DANCER_1278
9@ = 1
goto @DANCER_1356

:DANCER_1278
if 
  9@ == 1
goto_if_false @DANCER_1356
if 
  $iDanceReport > 3000
goto_if_false @DANCER_1339
2@ = Char.SetSayContext(0@, 70)
9@ = 0
goto @DANCER_1356

:DANCER_1339
2@ = Char.SetSayContext(0@, 73)
9@ = 0

:DANCER_1356
return 

:DANCER_1358
Streaming.RemoveAnimation("DANCING")
if 
  not Char.IsDead(0@)
goto_if_false @DANCER_1420
Task.UseClosestMapAttractor(0@, 100.0, 0, 0.0, 0.0, 0.0, "DANCER")

:DANCER_1420
terminate_this_script 
return 

:DANCER_1424
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @DANCER_1494
5@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @DANCER_1487
Task.Duck(0@, -2)

:DANCER_1487
goto @DANCER_1501

:DANCER_1494
gosub @DANCER_1358

:DANCER_1501
goto @DANCER_1424
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 53 (STRIPW)---------------

:STRIPW
script_name 'STRIPW'
2@ = 0
if 
  2@ == 1
goto_if_false @STRIPW_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:STRIPW_60
Streaming.RequestAnimation("STRIP")

:STRIPW_69
if 
  not Streaming.HasAnimationLoaded("STRIP")
goto_if_false @STRIPW_109
wait 0
Streaming.RequestAnimation("STRIP")
goto @STRIPW_69

:STRIPW_109
3@ = 1
4@ = 0
if 
  Player.IsPlaying($player1)
goto_if_false @STRIPW_198
v$5310 = Char.GetNameOfEntryExitUsed($scplayer)
if 
  is_var_text_label16_equal_to_text_label v$5310 == "STRIP2"
goto_if_false @STRIPW_188
10@ = 3.0
goto @STRIPW_198

:STRIPW_188
10@ = 4.0

:STRIPW_198
wait 0
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
  $iTerminateAllAmbience == 0
goto_if_false @STRIPW_382
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @STRIPW_332
if 
  $iSetBarPanic == 0
goto_if_false @STRIPW_318
if 
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @STRIPW_304
$iSetBarPanic = 1
goto @STRIPW_3515
goto @STRIPW_311

:STRIPW_304
gosub @STRIPW_396

:STRIPW_311
goto @STRIPW_325

:STRIPW_318
goto @STRIPW_3515

:STRIPW_325
goto @STRIPW_375

:STRIPW_332
$iSetCasinoPanic = 1
5@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @STRIPW_375
Task.Duck(0@, -1)

:STRIPW_375
goto @STRIPW_389

:STRIPW_382
gosub @STRIPW_3497

:STRIPW_389
goto @STRIPW_198

:STRIPW_396
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @STRIPW_473 {caseNum1} 1 {caseLabel1} @STRIPW_459 {caseNum2} -1 {caseLabel2} @STRIPW_473 {caseNum3} -1 {caseLabel3} @STRIPW_473 {caseNum4} -1 {caseLabel4} @STRIPW_473 {caseNum5} -1 {caseLabel5} @STRIPW_473 {caseNum6} -1 {caseLabel6} @STRIPW_473 {caseNum7} -1 {caseLabel7} @STRIPW_473

:STRIPW_459
gosub @STRIPW_475
goto @STRIPW_473

:STRIPW_473
return 

:STRIPW_475
switch_start 4@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @STRIPW_3266 {caseNum1} 0 {caseLabel1} @STRIPW_603 {caseNum2} 1 {caseLabel2} @STRIPW_772 {caseNum3} 2 {caseLabel3} @STRIPW_1133 {caseNum4} 3 {caseLabel4} @STRIPW_1470 {caseNum5} 4 {caseLabel5} @STRIPW_1835 {caseNum6} 5 {caseLabel6} @STRIPW_2056 {caseNum7} 6 {caseLabel7} @STRIPW_2642
switch_continued 7 {caseLabel1} @STRIPW_2850 {caseNum2} 8 {caseLabel2} @STRIPW_3058 {caseNum3} -1 {caseLabel3} @STRIPW_3266 {caseNum4} -1 {caseLabel4} @STRIPW_3266 {caseNum5} -1 {caseLabel5} @STRIPW_3266 {caseNum6} -1 {caseLabel6} @STRIPW_3266 {caseNum7} -1 {caseLabel7} @STRIPW_3266 {caseNum8} -1 {caseLabel8} @STRIPW_3266 {caseNum9} -1 {caseLabel9} @STRIPW_3266

:STRIPW_603
if 
  Char.IsPlayingAnim(0@, "STR_B2A")
goto_if_false @STRIPW_719
9@ = Char.GetAnimCurrentTime(0@, "STR_B2A")
if 
  9@ >= 1.0
goto_if_false @STRIPW_712
Task.PlayAnim(0@, "STR_LOOP_A", "STRIP", 1000.0, False, False, False, True, -1)
4@ += 1

:STRIPW_712
goto @STRIPW_765

:STRIPW_719
Task.PlayAnim(0@, "STR_LOOP_A", "STRIP", 1000.0, False, False, False, True, -1)
4@ += 1

:STRIPW_765
goto @STRIPW_3266

:STRIPW_772
gosub @STRIPW_3268
if 
  Char.IsPlayingAnim(0@, "STR_LOOP_A")
goto_if_false @STRIPW_1087
9@ = Char.GetAnimCurrentTime(0@, "STR_LOOP_A")
if 
  9@ >= 1.0
goto_if_false @STRIPW_1080
if and
  Object.DoesExist($iStripperPed)
  is_int_var_equal_to_int_lvar $iLapDancesWatched == 0@
goto_if_false @STRIPW_922
Task.PlayAnim(0@, "STR_A2B", "STRIP", 1000.0, False, False, False, True, -1)
4@ += 1
goto @STRIPW_1080

:STRIPW_922
6@, 7@, 8@ = Char.GetOffsetInWorldCoords(0@, 0.3, 0.5, -0.5)
if 
  World.IsMoneyPickupAtCoords(6@, 7@, 8@)
goto_if_false @STRIPW_1041
World.ClearArea(6@, 7@, 8@, 0.3, False)
Task.PlayAnim(0@, "STR_A2B", "STRIP", 1000.0, False, False, False, True, -1)
4@ += 1
goto @STRIPW_1080

:STRIPW_1041
Task.PlayAnim(0@, "STR_LOOP_A", "STRIP", 1000.0, False, False, False, True, -1)

:STRIPW_1080
goto @STRIPW_1126

:STRIPW_1087
Task.PlayAnim(0@, "STR_LOOP_A", "STRIP", 1000.0, False, False, False, True, -1)

:STRIPW_1126
goto @STRIPW_3266

:STRIPW_1133
if 
  Char.IsPlayingAnim(0@, "STR_A2B")
goto_if_false @STRIPW_1301
Object.Delete($iStripperPed)
6@, 7@, 8@ = Char.GetOffsetInWorldCoords(0@, 0.3, 0.5, -0.5)
World.ClearArea(6@, 7@, 8@, 0.3, False)
9@ = Char.GetAnimCurrentTime(0@, "STR_A2B")
if 
  9@ >= 1.0
goto_if_false @STRIPW_1294
Task.PlayAnim(0@, "STR_LOOP_B", "STRIP", 1000.0, False, False, False, True, -1)
4@ += 1

:STRIPW_1294
goto @STRIPW_1463

:STRIPW_1301
if 
  Char.IsPlayingAnim(0@, "STR_C2B")
goto_if_false @STRIPW_1417
9@ = Char.GetAnimCurrentTime(0@, "STR_C2B")
if 
  9@ >= 1.0
goto_if_false @STRIPW_1410
Task.PlayAnim(0@, "STR_LOOP_B", "STRIP", 1000.0, False, False, False, True, -1)
4@ += 1

:STRIPW_1410
goto @STRIPW_1463

:STRIPW_1417
Task.PlayAnim(0@, "STR_LOOP_B", "STRIP", 1000.0, False, False, False, True, -1)
4@ += 1

:STRIPW_1463
goto @STRIPW_3266

:STRIPW_1470
gosub @STRIPW_3268
if 
  Char.IsPlayingAnim(0@, "STR_LOOP_B")
goto_if_false @STRIPW_1789
9@ = Char.GetAnimCurrentTime(0@, "STR_LOOP_B")
if 
  9@ >= 1.0
goto_if_false @STRIPW_1782
if and
  Object.DoesExist($iStripperPed)
  is_int_var_equal_to_int_lvar $iLapDancesWatched == 0@
goto_if_false @STRIPW_1620
Task.PlayAnim(0@, "STR_B2C", "STRIP", 1000.0, False, False, False, True, -1)
4@ += 1
goto @STRIPW_1782

:STRIPW_1620
6@, 7@, 8@ = Char.GetOffsetInWorldCoords(0@, 0.3, 0.5, -0.5)
if 
  World.IsMoneyPickupAtCoords(6@, 7@, 8@)
goto_if_false @STRIPW_1739
World.ClearArea(6@, 7@, 8@, 0.3, False)
Task.PlayAnim(0@, "STR_B2C", "STRIP", 1000.0, False, False, False, True, -1)
4@ += 1
goto @STRIPW_1782

:STRIPW_1739
Task.PlayAnim(0@, "STR_B2A", "STRIP", 1000.0, False, False, False, True, -1)
4@ = 0

:STRIPW_1782
goto @STRIPW_1828

:STRIPW_1789
Task.PlayAnim(0@, "STR_LOOP_B", "STRIP", 1000.0, False, False, False, True, -1)

:STRIPW_1828
goto @STRIPW_3266

:STRIPW_1835
if 
  Char.IsPlayingAnim(0@, "STR_B2C")
goto_if_false @STRIPW_2003
Object.Delete($iStripperPed)
6@, 7@, 8@ = Char.GetOffsetInWorldCoords(0@, 0.3, 0.5, -0.5)
World.ClearArea(6@, 7@, 8@, 0.3, False)
9@ = Char.GetAnimCurrentTime(0@, "STR_B2C")
if 
  9@ >= 1.0
goto_if_false @STRIPW_1996
Task.PlayAnim(0@, "STR_LOOP_C", "STRIP", 1000.0, False, False, False, True, -1)
4@ += 1

:STRIPW_1996
goto @STRIPW_2049

:STRIPW_2003
Task.PlayAnim(0@, "STR_LOOP_C", "STRIP", 1000.0, False, False, False, True, -1)
4@ += 1

:STRIPW_2049
goto @STRIPW_3266

:STRIPW_2056
gosub @STRIPW_3268
if 
  Char.IsPlayingAnim(0@, "STR_LOOP_C")
goto_if_false @STRIPW_2596
9@ = Char.GetAnimCurrentTime(0@, "STR_LOOP_C")
if 
  9@ >= 1.0
goto_if_false @STRIPW_2589
if and
  Object.DoesExist($iStripperPed)
  is_int_var_equal_to_int_lvar $iLapDancesWatched == 0@
goto_if_false @STRIPW_2431
6@, 7@, 8@ = Char.GetCoordinates(0@)
9@ = Char.GetHeading($scplayer)
9@ += 180.0
2@ = Math.RandomIntInRange(35, 100)
if 
  33 > 2@
goto_if_false @STRIPW_2281
Task.CharSlideToCoordAndPlayAnim(0@, 6@, 7@, 8@, 9@, -1.0, "STR_C3", "STRIP", 1000.0, False, False, False, True, -1)
4@ = 6
goto @STRIPW_2424

:STRIPW_2281
if 
  2@ > 66
goto_if_false @STRIPW_2365
Task.CharSlideToCoordAndPlayAnim(0@, 6@, 7@, 8@, 9@, -1.0, "STR_C2", "STRIP", 1000.0, False, False, False, True, -1)
4@ = 7
goto @STRIPW_2424

:STRIPW_2365
Task.CharSlideToCoordAndPlayAnim(0@, 6@, 7@, 8@, 9@, -1.0, "STR_C1", "STRIP", 1000.0, False, False, False, True, -1)
4@ = 8

:STRIPW_2424
goto @STRIPW_2589

:STRIPW_2431
6@, 7@, 8@ = Char.GetOffsetInWorldCoords(0@, 0.3, 0.5, -0.5)
if 
  World.IsMoneyPickupAtCoords(6@, 7@, 8@)
goto_if_false @STRIPW_2546
World.ClearArea(6@, 7@, 8@, 0.3, False)
Task.PlayAnim(0@, "STR_LOOP_C", "STRIP", 1000.0, False, False, False, True, -1)
goto @STRIPW_2589

:STRIPW_2546
Task.PlayAnim(0@, "STR_C2B", "STRIP", 1000.0, False, False, False, True, -1)
4@ = 2

:STRIPW_2589
goto @STRIPW_2635

:STRIPW_2596
Task.PlayAnim(0@, "STR_LOOP_C", "STRIP", 1000.0, False, False, False, True, -1)

:STRIPW_2635
goto @STRIPW_3266

:STRIPW_2642
if 
  Char.IsPlayingAnim(0@, "STR_C3")
goto_if_false @STRIPW_2808
Object.Delete($iStripperPed)
6@, 7@, 8@ = Char.GetOffsetInWorldCoords(0@, 0.3, 0.5, -0.5)
World.ClearArea(6@, 7@, 8@, 0.3, False)
9@ = Char.GetAnimCurrentTime(0@, "STR_C3")
if 
  9@ >= 1.0
goto_if_false @STRIPW_2801
Task.PlayAnim(0@, "STR_LOOP_C", "STRIP", 1000.0, False, False, False, True, -1)
4@ = 5

:STRIPW_2801
goto @STRIPW_2843

:STRIPW_2808
Task.PlayAnim(0@, "STR_C3", "STRIP", 1000.0, False, False, False, True, -1)

:STRIPW_2843
goto @STRIPW_3266

:STRIPW_2850
if 
  Char.IsPlayingAnim(0@, "STR_C2")
goto_if_false @STRIPW_3016
Object.Delete($iStripperPed)
6@, 7@, 8@ = Char.GetOffsetInWorldCoords(0@, 0.3, 0.5, -0.5)
World.ClearArea(6@, 7@, 8@, 0.3, False)
9@ = Char.GetAnimCurrentTime(0@, "STR_C2")
if 
  9@ >= 1.0
goto_if_false @STRIPW_3009
Task.PlayAnim(0@, "STR_LOOP_C", "STRIP", 1000.0, False, False, False, True, -1)
4@ = 5

:STRIPW_3009
goto @STRIPW_3051

:STRIPW_3016
Task.PlayAnim(0@, "STR_C2", "STRIP", 1000.0, False, False, False, True, -1)

:STRIPW_3051
goto @STRIPW_3266

:STRIPW_3058
if 
  Char.IsPlayingAnim(0@, "STR_C1")
goto_if_false @STRIPW_3224
Object.Delete($iStripperPed)
6@, 7@, 8@ = Char.GetOffsetInWorldCoords(0@, 0.3, 0.5, -0.5)
World.ClearArea(6@, 7@, 8@, 0.3, False)
9@ = Char.GetAnimCurrentTime(0@, "STR_C1")
if 
  9@ >= 1.0
goto_if_false @STRIPW_3217
Task.PlayAnim(0@, "STR_LOOP_C", "STRIP", 1000.0, False, False, False, True, -1)
4@ = 5

:STRIPW_3217
goto @STRIPW_3259

:STRIPW_3224
Task.PlayAnim(0@, "STR_C1", "STRIP", 1000.0, False, False, False, True, -1)

:STRIPW_3259
goto @STRIPW_3266

:STRIPW_3266
return 

:STRIPW_3268
if and
  Char.IsStopped($scplayer)
  Player.IsScoreGreater($player1, 19)
goto_if_false @STRIPW_3463
if 
  not Object.DoesExist($iStripperPed)
goto_if_false @STRIPW_3456
if and
  Char.LocateOnFootChar3D($scplayer, 0@, 10@, 10@, 1.0, False)
  $iPrintStripperHelp == 0
goto_if_false @STRIPW_3424
if 
  11@ == 0
goto_if_false @STRIPW_3378
$iSetSTRIPPanic += 1
11@ = 1

:STRIPW_3378
if and
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
  $iPrintStripperHelp == 0
goto_if_false @STRIPW_3417
set_var_int_to_lvar_int $iLapDancesWatched = 0@
$iPrintStripperHelp = 1

:STRIPW_3417
goto @STRIPW_3456

:STRIPW_3424
if 
  11@ == 1
goto_if_false @STRIPW_3456
$iSetSTRIPPanic -= 1
11@ = 0

:STRIPW_3456
goto @STRIPW_3495

:STRIPW_3463
if 
  11@ == 1
goto_if_false @STRIPW_3495
$iSetSTRIPPanic -= 1
11@ = 0

:STRIPW_3495
return 

:STRIPW_3497
Streaming.RemoveAnimation("STRIP")
Object.Delete($iStripperPed)
terminate_this_script 
return 

:STRIPW_3515
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @STRIPW_3585
5@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @STRIPW_3578
Task.Duck(0@, -2)

:STRIPW_3578
goto @STRIPW_3592

:STRIPW_3585
gosub @STRIPW_3497

:STRIPW_3592
goto @STRIPW_3515
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 54 (STRIPM)---------------

:STRIPM
script_name 'STRIPM'
2@ = 0
if 
  2@ == 1
goto_if_false @STRIPM_60
0@ = Char.Create(PedType.CivMale, 0, 0.0, 0.0, 0.0)

:STRIPM_60
Streaming.RequestAnimation("STRIP")

:STRIPM_69
if 
  not Streaming.HasAnimationLoaded("STRIP")
goto_if_false @STRIPM_100
wait 0
goto @STRIPM_69

:STRIPM_100
3@ = 1
4@ = 0

:STRIPM_114
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @STRIPM_298
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @STRIPM_284
if 
  $iSetBarPanic == 0
goto_if_false @STRIPM_262
7@, 8@, 9@ = Char.GetCoordinates(0@)
10@ = World.GetUserOfClosestMapAttractor(7@, 8@, 9@, 15.0, 0, "STRIPW")
if 
  not Char.IsDead(10@)
goto_if_false @STRIPM_248
gosub @STRIPM_312
goto @STRIPM_255

:STRIPM_248
gosub @STRIPM_1075

:STRIPM_255
goto @STRIPM_277

:STRIPM_262
Char.SetDecisionMaker(0@, $iGlobalPedPanicDM)
goto @STRIPM_1088

:STRIPM_277
goto @STRIPM_291

:STRIPM_284
gosub @STRIPM_1075

:STRIPM_291
goto @STRIPM_305

:STRIPM_298
gosub @STRIPM_1075

:STRIPM_305
goto @STRIPM_114

:STRIPM_312
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @STRIPM_389 {caseNum1} 1 {caseLabel1} @STRIPM_375 {caseNum2} -1 {caseLabel2} @STRIPM_389 {caseNum3} -1 {caseLabel3} @STRIPM_389 {caseNum4} -1 {caseLabel4} @STRIPM_389 {caseNum5} -1 {caseLabel5} @STRIPM_389 {caseNum6} -1 {caseLabel6} @STRIPM_389 {caseNum7} -1 {caseLabel7} @STRIPM_389

:STRIPM_375
gosub @STRIPM_391
goto @STRIPM_389

:STRIPM_389
return 

:STRIPM_391
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STRIPM_1073 {caseNum1} 0 {caseLabel1} @STRIPM_454 {caseNum2} 1 {caseLabel2} @STRIPM_597 {caseNum3} 2 {caseLabel3} @STRIPM_679 {caseNum4} 3 {caseLabel4} @STRIPM_771 {caseNum5} 4 {caseLabel5} @STRIPM_1030 {caseNum6} -1 {caseLabel6} @STRIPM_1073 {caseNum7} -1 {caseLabel7} @STRIPM_1073

:STRIPM_454
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @STRIPM_590
set_lvar_int_to_lvar_int 2@ = 0@
if 
  2@ > 10000
goto_if_false @STRIPM_518
2@ /= 10000

:STRIPM_518
if 
  1000 > 2@
goto_if_false @STRIPM_545
2@ += 2000

:STRIPM_545
Task.PlayAnim(0@, "PUN_LOOP", "STRIP", 4.0, True, False, False, True, 2@)
4@ += 1

:STRIPM_590
goto @STRIPM_1073

:STRIPM_597
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @STRIPM_672
Task.PlayAnim(0@, "PUN_HOLLER", "STRIP", 4.0, False, False, False, False, -1)
4@ += 1

:STRIPM_672
goto @STRIPM_1073

:STRIPM_679
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @STRIPM_764
2@ = Math.RandomIntInRange(2000, 5000)
Task.PlayAnim(0@, "PUN_LOOP", "STRIP", 4.0, True, False, False, True, 2@)
4@ += 1

:STRIPM_764
goto @STRIPM_1073

:STRIPM_771
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @STRIPM_1023
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ >= 50
goto_if_false @STRIPM_977
Task.PlayAnim(0@, "PUN_CASH", "STRIP", 4.0, False, False, False, False, -1)
7@, 8@, 9@ = Char.GetCoordinates(0@)
10@ = World.GetUserOfClosestMapAttractor(7@, 8@, 9@, 15.0, 0, "STRIPW")
if 
  not Char.IsDead(10@)
goto_if_false @STRIPM_970
7@, 8@, 9@ = Char.GetOffsetInWorldCoords(10@, 0.3, 0.5, -0.5)
11@ = Pickup.CreateMoney(7@, 8@, 9@, 100, False)

:STRIPM_970
goto @STRIPM_1016

:STRIPM_977
Task.PlayAnim(0@, "PUN_HOLLER", "STRIP", 4.0, False, False, False, False, -1)

:STRIPM_1016
4@ += 1

:STRIPM_1023
goto @STRIPM_1073

:STRIPM_1030
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @STRIPM_1066
4@ = 0

:STRIPM_1066
goto @STRIPM_1073

:STRIPM_1073
return 

:STRIPM_1075
Streaming.RemoveAnimation("STRIP")
terminate_this_script 
return 

:STRIPM_1088
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @STRIPM_1158
5@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @STRIPM_1151
Task.Duck(0@, -2)

:STRIPM_1151
goto @STRIPM_1165

:STRIPM_1158
gosub @STRIPM_1075

:STRIPM_1165
goto @STRIPM_1088
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 55 (BROWSE)---------------

:BROWSE
script_name 'BROWSE'
2@ = 0
if 
  2@ == 1
goto_if_false @BROWSE_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:BROWSE_60
Streaming.RequestAnimation("COP_AMBIENT")

:BROWSE_75
if 
  not Streaming.HasAnimationLoaded("COP_AMBIENT")
goto_if_false @BROWSE_112
wait 0
goto @BROWSE_75

:BROWSE_112
3@ = 1
4@ = 0

:BROWSE_126
wait 0
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
  $iTerminateAllAmbience == 0
goto_if_false @BROWSE_235
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @BROWSE_221
if 
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @BROWSE_207
goto @BROWSE_1166
goto @BROWSE_214

:BROWSE_207
gosub @BROWSE_249

:BROWSE_214
goto @BROWSE_228

:BROWSE_221
gosub @BROWSE_1147

:BROWSE_228
goto @BROWSE_242

:BROWSE_235
gosub @BROWSE_1147

:BROWSE_242
goto @BROWSE_126

:BROWSE_249
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @BROWSE_326 {caseNum1} 1 {caseLabel1} @BROWSE_312 {caseNum2} -1 {caseLabel2} @BROWSE_326 {caseNum3} -1 {caseLabel3} @BROWSE_326 {caseNum4} -1 {caseLabel4} @BROWSE_326 {caseNum5} -1 {caseLabel5} @BROWSE_326 {caseNum6} -1 {caseLabel6} @BROWSE_326 {caseNum7} -1 {caseLabel7} @BROWSE_326

:BROWSE_312
gosub @BROWSE_328
goto @BROWSE_326

:BROWSE_326
return 

:BROWSE_328
switch_start 4@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @BROWSE_1145 {caseNum1} 0 {caseLabel1} @BROWSE_391 {caseNum2} 1 {caseLabel2} @BROWSE_452 {caseNum3} 2 {caseLabel3} @BROWSE_556 {caseNum4} 3 {caseLabel4} @BROWSE_732 {caseNum5} 4 {caseLabel5} @BROWSE_836 {caseNum6} 5 {caseLabel6} @BROWSE_1011 {caseNum7} 6 {caseLabel7} @BROWSE_1102

:BROWSE_391
Task.PlayAnim(0@, "COPBROWSE_IN", "COP_AMBIENT", 4.0, False, False, False, False, -1)
4@ += 1
goto @BROWSE_1145

:BROWSE_452
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_549
2@ = Math.RandomIntInRange(4000, 8000)
Task.PlayAnim(0@, "COPBROWSE_LOOP", "COP_AMBIENT", 4.0, True, False, False, True, 2@)
4@ += 1

:BROWSE_549
goto @BROWSE_1145

:BROWSE_556
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_725
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @BROWSE_667
Task.PlayAnim(0@, "COPBROWSE_NOD", "COP_AMBIENT", 4.0, False, False, False, False, -1)
goto @BROWSE_718

:BROWSE_667
Task.PlayAnim(0@, "COPBROWSE_SHAKE", "COP_AMBIENT", 4.0, True, False, False, False, 1000)

:BROWSE_718
4@ += 1

:BROWSE_725
goto @BROWSE_1145

:BROWSE_732
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_829
2@ = Math.RandomIntInRange(4000, 8000)
Task.PlayAnim(0@, "COPBROWSE_LOOP", "COP_AMBIENT", 4.0, True, False, False, True, 2@)
4@ += 1

:BROWSE_829
goto @BROWSE_1145

:BROWSE_836
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_1004
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @BROWSE_947
Task.PlayAnim(0@, "COPBROWSE_NOD", "COP_AMBIENT", 4.0, False, False, False, False, -1)
goto @BROWSE_997

:BROWSE_947
Task.PlayAnim(0@, "COPBROWSE_SHAKE", "COP_AMBIENT", 4.0, False, False, False, False, -1)

:BROWSE_997
4@ += 1

:BROWSE_1004
goto @BROWSE_1145

:BROWSE_1011
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_1095
Task.PlayAnim(0@, "COPBROWSE_OUT", "COP_AMBIENT", 4.0, False, False, False, False, -1)
4@ += 1

:BROWSE_1095
goto @BROWSE_1145

:BROWSE_1102
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_1138
gosub @BROWSE_1147

:BROWSE_1138
goto @BROWSE_1145

:BROWSE_1145
return 

:BROWSE_1147
Streaming.RemoveAnimation("COP_AMBIENT")
terminate_this_script 
return 

:BROWSE_1166
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @BROWSE_1237
5@ = Char.GetScriptTaskStatus(0@, 1506)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @BROWSE_1230
Task.KillCharOnFoot(0@, $scplayer)

:BROWSE_1230
goto @BROWSE_1244

:BROWSE_1237
gosub @BROWSE_1147

:BROWSE_1244
goto @BROWSE_1166
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 56 (COPSIT)---------------

:COPSIT
script_name 'COPSIT'
2@ = 0
if 
  2@ == 1
goto_if_false @COPSIT_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:COPSIT_60
Streaming.RequestAnimation("INT_OFFICE")

:COPSIT_74
if 
  not Streaming.HasAnimationLoaded("INT_OFFICE")
goto_if_false @COPSIT_110
wait 0
goto @COPSIT_74

:COPSIT_110
9@ = 0.0
3@ = 0
if 
  1@ == 0
goto_if_false @COPSIT_166
5@ = 0
4@ = 1
goto @COPSIT_180

:COPSIT_166
5@ = -2
4@ = 2

:COPSIT_180
7@ = 0
if 
  not Char.IsDead(0@)
goto_if_false @COPSIT_236
Char.SetSuffersCriticalHits(0@, False)
$d_lstickx = DecisionMakerChar.CopyShared(65537)
Char.SetDecisionMaker(0@, $d_lstickx)
6@ = 15000

:COPSIT_236
wait 0
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
  $iTerminateAllAmbience == 0
goto_if_false @COPSIT_345
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @COPSIT_331
if 
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @COPSIT_317
goto @COPSIT_2292
goto @COPSIT_324

:COPSIT_317
gosub @COPSIT_359

:COPSIT_324
goto @COPSIT_338

:COPSIT_331
gosub @COPSIT_2239

:COPSIT_338
goto @COPSIT_352

:COPSIT_345
gosub @COPSIT_2239

:COPSIT_352
goto @COPSIT_236

:COPSIT_359
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @COPSIT_492 {caseNum1} 1 {caseLabel1} @COPSIT_422 {caseNum2} 2 {caseLabel2} @COPSIT_436 {caseNum3} 3 {caseLabel3} @COPSIT_450 {caseNum4} 4 {caseLabel4} @COPSIT_464 {caseNum5} 5 {caseLabel5} @COPSIT_478 {caseNum6} -1 {caseLabel6} @COPSIT_492 {caseNum7} -1 {caseLabel7} @COPSIT_492

:COPSIT_422
gosub @COPSIT_494
goto @COPSIT_492

:COPSIT_436
gosub @COPSIT_724
goto @COPSIT_492

:COPSIT_450
gosub @COPSIT_1843
goto @COPSIT_492

:COPSIT_464
gosub @COPSIT_2239
goto @COPSIT_492

:COPSIT_478
gosub @COPSIT_2146
goto @COPSIT_492

:COPSIT_492
return 

:COPSIT_494
switch_start 5@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @COPSIT_722 {caseNum1} 0 {caseLabel1} @COPSIT_557 {caseNum2} 1 {caseLabel2} @COPSIT_622 {caseNum3} -1 {caseLabel3} @COPSIT_722 {caseNum4} -1 {caseLabel4} @COPSIT_722 {caseNum5} -1 {caseLabel5} @COPSIT_722 {caseNum6} -1 {caseLabel6} @COPSIT_722 {caseNum7} -1 {caseLabel7} @COPSIT_722

:COPSIT_557
Task.PlayAnimNonInterruptable(0@, "OFF_SIT_IN", "INT_OFFICE", 4.0, False, False, False, True, -1)
3@ = 1
5@ += 1
goto @COPSIT_722

:COPSIT_622
9@ = 0.0
if 
  Char.IsPlayingAnim(0@, "OFF_SIT_IN")
goto_if_false @COPSIT_680
9@ = Char.GetAnimCurrentTime(0@, "OFF_SIT_IN")

:COPSIT_680
if 
  9@ == 1.0
goto_if_false @COPSIT_715
5@ = 0
4@ += 1

:COPSIT_715
goto @COPSIT_722

:COPSIT_722
return 

:COPSIT_724
switch_start 5@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @COPSIT_1841 {caseNum1} -2 {caseLabel1} @COPSIT_787 {caseNum2} 0 {caseLabel2} @COPSIT_1023 {caseNum3} 1 {caseLabel3} @COPSIT_1259 {caseNum4} 2 {caseLabel4} @COPSIT_1520 {caseNum5} 3 {caseLabel5} @COPSIT_1598 {caseNum6} -1 {caseLabel6} @COPSIT_1841 {caseNum7} -1 {caseLabel7} @COPSIT_1841

:COPSIT_787
8@ = Math.RandomIntInRange(0, 100)
if 
  8@ > 66
goto_if_false @COPSIT_955
if 
  8@ > 33
goto_if_false @COPSIT_893
Task.PlayAnimNonInterruptable(0@, "OFF_SIT_TYPE_LOOP", "INT_OFFICE", 1000.0, True, False, False, False, 50000000)
goto @COPSIT_948

:COPSIT_893
Task.PlayAnimNonInterruptable(0@, "OFF_SIT_BORED_LOOP", "INT_OFFICE", 1000.0, True, False, False, False, 50000000)

:COPSIT_948
goto @COPSIT_1009

:COPSIT_955
Task.PlayAnimNonInterruptable(0@, "OFF_SIT_IDLE_LOOP", "INT_OFFICE", 1000.0, True, False, False, False, 50000000)

:COPSIT_1009
5@ = 1
goto @COPSIT_1841

:COPSIT_1023
8@ = Math.RandomIntInRange(0, 100)
if 
  8@ > 66
goto_if_false @COPSIT_1191
if 
  8@ > 33
goto_if_false @COPSIT_1129
Task.PlayAnimNonInterruptable(0@, "OFF_SIT_TYPE_LOOP", "INT_OFFICE", 1000.0, True, False, False, False, 50000000)
goto @COPSIT_1184

:COPSIT_1129
Task.PlayAnimNonInterruptable(0@, "OFF_SIT_BORED_LOOP", "INT_OFFICE", 1000.0, True, False, False, False, 50000000)

:COPSIT_1184
goto @COPSIT_1245

:COPSIT_1191
Task.PlayAnimNonInterruptable(0@, "OFF_SIT_IDLE_LOOP", "INT_OFFICE", 1000.0, True, False, False, False, 50000000)

:COPSIT_1245
5@ += 1
goto @COPSIT_1841

:COPSIT_1259
13@, 14@, 15@ = Char.GetCoordinates(0@)
15@ -= 1.04
16@, 17@, 18@ = Char.GetOffsetInWorldCoords(0@, 0.5, -0.5, 0.0)
19@, 20@, 21@ = Char.GetOffsetInWorldCoords(0@, -0.5, -1.0, 0.0)
10@, 11@, 12@ = Char.GetOffsetInWorldCoords(0@, 0.0, 1.0, -1.0)
World.SetCharUsesCollisionClosestObjectOfType(13@, 14@, 15@, 1.5, #CJ_PIZZA_CHAIR, False, 0@)
if or
  Char.IsPlayingAnim(0@, "OFF_SIT_TYPE_LOOP")
  Char.IsPlayingAnim(0@, "OFF_SIT_BORED_LOOP")
  Char.IsPlayingAnim(0@, "OFF_SIT_IDLE_LOOP")
goto_if_false @COPSIT_1513
Char.SetCoordinates(0@, 10@, 11@, 12@)
Char.FreezePosition(0@, True)
TIMERB = 0
5@ += 1

:COPSIT_1513
goto @COPSIT_1841

:COPSIT_1520
if 
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @COPSIT_1565
Char.ClearLastDamageEntity(0@)
4@ = 5
5@ = 0
goto @COPSIT_1841

:COPSIT_1565
if 
  is_int_lvar_greater_than_int_lvar TIMERB > 6@
goto_if_false @COPSIT_1591
5@ += 1

:COPSIT_1591
goto @COPSIT_1841

:COPSIT_1598
8@ = Math.RandomIntInRange(0, 100)
if 
  8@ > 66
goto_if_false @COPSIT_1766
if 
  8@ > 33
goto_if_false @COPSIT_1704
Task.PlayAnimNonInterruptable(0@, "OFF_SIT_TYPE_LOOP", "INT_OFFICE", 1000.0, True, False, False, False, 50000000)
goto @COPSIT_1759

:COPSIT_1704
Task.PlayAnimNonInterruptable(0@, "OFF_SIT_BORED_LOOP", "INT_OFFICE", 1000.0, True, False, False, False, 50000000)

:COPSIT_1759
goto @COPSIT_1820

:COPSIT_1766
Task.PlayAnimNonInterruptable(0@, "OFF_SIT_IDLE_LOOP", "INT_OFFICE", 1000.0, True, False, False, False, 50000000)

:COPSIT_1820
TIMERB = 0
5@ -= 1
goto @COPSIT_1841

:COPSIT_1841
return 

:COPSIT_1843
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @COPSIT_2144 {caseNum1} 0 {caseLabel1} @COPSIT_1906 {caseNum2} 1 {caseLabel2} @COPSIT_1971 {caseNum3} 2 {caseLabel3} @COPSIT_2006 {caseNum4} -1 {caseLabel4} @COPSIT_2144 {caseNum5} -1 {caseLabel5} @COPSIT_2144 {caseNum6} -1 {caseLabel6} @COPSIT_2144 {caseNum7} -1 {caseLabel7} @COPSIT_2144

:COPSIT_1906
Task.PlayAnimNonInterruptable(0@, "OFF_SIT_2IDLE_180", "INT_OFFICE", 99.0, False, False, False, False, -1)
5@ += 1
goto @COPSIT_2144

:COPSIT_1971
Char.SetCoordinates(0@, 13@, 14@, 15@)
Char.FreezePosition(0@, False)
5@ += 1
goto @COPSIT_2144

:COPSIT_2006
9@ = 0.0
if 
  Char.IsPlayingAnim(0@, "OFF_SIT_2IDLE_180")
goto_if_false @COPSIT_2137
9@ = Char.GetAnimCurrentTime(0@, "OFF_SIT_2IDLE_180")
if 
  9@ == 1.0
goto_if_false @COPSIT_2137
World.SetCharUsesCollisionClosestObjectOfType(13@, 14@, 15@, 1.5, #CJ_PIZZA_CHAIR, True, 0@)
5@ = 0
4@ += 1

:COPSIT_2137
goto @COPSIT_2144

:COPSIT_2144
return 

:COPSIT_2146
switch_start 5@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @COPSIT_2237 {caseNum1} 0 {caseLabel1} @COPSIT_2209 {caseNum2} -1 {caseLabel2} @COPSIT_2237 {caseNum3} -1 {caseLabel3} @COPSIT_2237 {caseNum4} -1 {caseLabel4} @COPSIT_2237 {caseNum5} -1 {caseLabel5} @COPSIT_2237 {caseNum6} -1 {caseLabel6} @COPSIT_2237 {caseNum7} -1 {caseLabel7} @COPSIT_2237

:COPSIT_2209
4@ = 3
5@ = 0
gosub @COPSIT_2292
goto @COPSIT_2237

:COPSIT_2237
return 

:COPSIT_2239
Streaming.RemoveAnimation("INT_OFFICE")
DecisionMaker.Remove($d_lstickx)
if 
  not Char.IsDead(0@)
goto_if_false @COPSIT_2288
Char.FreezePosition(0@, False)
Char.SetSuffersCriticalHits(0@, True)

:COPSIT_2288
terminate_this_script 
return 

:COPSIT_2292
wait 0
if and
  not is_var_text_label_empty s$shop_name
  $iTerminateAllAmbience == 0
goto_if_false @COPSIT_2635
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
goto_if_false @COPSIT_2628
switch_start 4@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @COPSIT_2614 {caseNum1} 1 {caseLabel1} @COPSIT_2403 {caseNum2} 2 {caseLabel2} @COPSIT_2486 {caseNum3} 3 {caseLabel3} @COPSIT_2535 {caseNum4} 4 {caseLabel4} @COPSIT_2549 {caseNum5} 5 {caseLabel5} @COPSIT_2600 {caseNum6} -1 {caseLabel6} @COPSIT_2628 {caseNum7} -1 {caseLabel7} @COPSIT_2628

:COPSIT_2403
if 
  5@ > 1
goto_if_false @COPSIT_2435
gosub @COPSIT_359
goto @COPSIT_2479

:COPSIT_2435
7@ = Char.GetScriptTaskStatus(0@, 1506)
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @COPSIT_2479
Task.KillCharOnFoot(0@, $scplayer)
gosub @COPSIT_2239

:COPSIT_2479
goto @COPSIT_2628

:COPSIT_2486
if 
  5@ == 2
goto_if_false @COPSIT_2521
6@ = Math.RandomIntInRange(0, 5)
6@ *= 500

:COPSIT_2521
gosub @COPSIT_359
goto @COPSIT_2628

:COPSIT_2535
gosub @COPSIT_359
goto @COPSIT_2628

:COPSIT_2549
7@ = Char.GetScriptTaskStatus(0@, 1506)
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @COPSIT_2593
Task.KillCharOnFoot(0@, $scplayer)
gosub @COPSIT_2239

:COPSIT_2593
goto @COPSIT_2628

:COPSIT_2600
gosub @COPSIT_359
goto @COPSIT_2628

:COPSIT_2614
gosub @COPSIT_2239
goto @COPSIT_2628

:COPSIT_2628
goto @COPSIT_2642

:COPSIT_2635
gosub @COPSIT_2239

:COPSIT_2642
goto @COPSIT_2292
write_debug_with_int "PEDSTATE" {_p2} 4@
write_debug_with_int "SUBSTATESTATUS" {_p2} 5@
write_debug_with_int "TIMERB" {_p2} TIMERB
write_debug_with_int "TIMERA" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 57 (COPLOOK)---------------

:COPLOOK
script_name 'COPLOOK'
2@ = 0
if 
  2@ == 1
goto_if_false @COPLOOK_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:COPLOOK_60
Streaming.RequestAnimation("COP_AMBIENT")

:COPLOOK_75
if 
  not Streaming.HasAnimationLoaded("COP_AMBIENT")
goto_if_false @COPLOOK_112
wait 0
goto @COPLOOK_75

:COPLOOK_112
3@ = 1
4@ = 0

:COPLOOK_126
wait 0
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
  $iTerminateAllAmbience == 0
goto_if_false @COPLOOK_235
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @COPLOOK_221
if 
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @COPLOOK_207
goto @COPLOOK_1319
goto @COPLOOK_214

:COPLOOK_207
gosub @COPLOOK_249

:COPLOOK_214
goto @COPLOOK_228

:COPLOOK_221
gosub @COPLOOK_1300

:COPLOOK_228
goto @COPLOOK_242

:COPLOOK_235
gosub @COPLOOK_1300

:COPLOOK_242
goto @COPLOOK_126

:COPLOOK_249
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @COPLOOK_326 {caseNum1} 1 {caseLabel1} @COPLOOK_312 {caseNum2} -1 {caseLabel2} @COPLOOK_326 {caseNum3} -1 {caseLabel3} @COPLOOK_326 {caseNum4} -1 {caseLabel4} @COPLOOK_326 {caseNum5} -1 {caseLabel5} @COPLOOK_326 {caseNum6} -1 {caseLabel6} @COPLOOK_326 {caseNum7} -1 {caseLabel7} @COPLOOK_326

:COPLOOK_312
gosub @COPLOOK_328
goto @COPLOOK_326

:COPLOOK_326
return 

:COPLOOK_328
switch_start 4@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @COPLOOK_1298 {caseNum1} 0 {caseLabel1} @COPLOOK_456 {caseNum2} 1 {caseLabel2} @COPLOOK_515 {caseNum3} 2 {caseLabel3} @COPLOOK_617 {caseNum4} 3 {caseLabel4} @COPLOOK_789 {caseNum5} 4 {caseLabel5} @COPLOOK_891 {caseNum6} 5 {caseLabel6} @COPLOOK_1064 {caseNum7} 6 {caseLabel7} @COPLOOK_1166
switch_continued 7 {caseLabel1} @COPLOOK_1255 {caseNum2} -1 {caseLabel2} @COPLOOK_1298 {caseNum3} -1 {caseLabel3} @COPLOOK_1298 {caseNum4} -1 {caseLabel4} @COPLOOK_1298 {caseNum5} -1 {caseLabel5} @COPLOOK_1298 {caseNum6} -1 {caseLabel6} @COPLOOK_1298 {caseNum7} -1 {caseLabel7} @COPLOOK_1298 {caseNum8} -1 {caseLabel8} @COPLOOK_1298 {caseNum9} -1 {caseLabel9} @COPLOOK_1298

:COPLOOK_456
Task.PlayAnim(0@, "COPLOOK_IN", "COP_AMBIENT", 4.0, False, False, False, False, -1)
4@ += 1
goto @COPLOOK_1298

:COPLOOK_515
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_610
2@ = Math.RandomIntInRange(4000, 8000)
Task.PlayAnim(0@, "COPLOOK_LOOP", "COP_AMBIENT", 4.0, True, False, False, True, 2@)
4@ += 1

:COPLOOK_610
goto @COPLOOK_1298

:COPLOOK_617
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_782
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @COPLOOK_726
Task.PlayAnim(0@, "COPLOOK_NOD", "COP_AMBIENT", 4.0, False, False, False, False, -1)
goto @COPLOOK_775

:COPLOOK_726
Task.PlayAnim(0@, "COPLOOK_SHAKE", "COP_AMBIENT", 4.0, True, False, False, False, 1000)

:COPLOOK_775
4@ += 1

:COPLOOK_782
goto @COPLOOK_1298

:COPLOOK_789
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_884
2@ = Math.RandomIntInRange(4000, 8000)
Task.PlayAnim(0@, "COPLOOK_LOOP", "COP_AMBIENT", 4.0, True, False, False, True, 2@)
4@ += 1

:COPLOOK_884
goto @COPLOOK_1298

:COPLOOK_891
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_1057
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @COPLOOK_1002
Task.PlayAnim(0@, "COPLOOK_THINK", "COP_AMBIENT", 4.0, False, False, False, False, -1)
goto @COPLOOK_1050

:COPLOOK_1002
Task.PlayAnim(0@, "COPLOOK_WATCH", "COP_AMBIENT", 4.0, False, False, False, False, -1)

:COPLOOK_1050
4@ += 1

:COPLOOK_1057
goto @COPLOOK_1298

:COPLOOK_1064
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_1159
2@ = Math.RandomIntInRange(4000, 8000)
Task.PlayAnim(0@, "COPLOOK_LOOP", "COP_AMBIENT", 4.0, True, False, False, True, 2@)
4@ += 1

:COPLOOK_1159
goto @COPLOOK_1298

:COPLOOK_1166
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_1248
Task.PlayAnim(0@, "COPLOOK_OUT", "COP_AMBIENT", 4.0, False, False, False, False, -1)
4@ += 1

:COPLOOK_1248
goto @COPLOOK_1298

:COPLOOK_1255
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_1291
gosub @COPLOOK_1300

:COPLOOK_1291
goto @COPLOOK_1298

:COPLOOK_1298
return 

:COPLOOK_1300
Streaming.RemoveAnimation("COP_AMBIENT")
terminate_this_script 
return 

:COPLOOK_1319
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @COPLOOK_1390
5@ = Char.GetScriptTaskStatus(0@, 1506)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @COPLOOK_1383
Task.KillCharOnFoot(0@, $scplayer)

:COPLOOK_1383
goto @COPLOOK_1397

:COPLOOK_1390
gosub @COPLOOK_1300

:COPLOOK_1397
goto @COPLOOK_1319
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 58 (TICKET)---------------

:TICKET
script_name 'TICKET'
2@ = 0
if 
  2@ == 1
goto_if_false @TICKET_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:TICKET_60
Streaming.RequestAnimation("CASINO")

:TICKET_70
if 
  not Streaming.HasAnimationLoaded("CASINO")
goto_if_false @TICKET_102
wait 0
goto @TICKET_70

:TICKET_102
3@ = 1
4@ = 0

:TICKET_116
wait 0
if 
  not Char.IsDead(0@)
goto_if_false @TICKET_180
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @TICKET_166
gosub @TICKET_194
goto @TICKET_173

:TICKET_166
gosub @TICKET_875

:TICKET_173
goto @TICKET_187

:TICKET_180
gosub @TICKET_875

:TICKET_187
goto @TICKET_116

:TICKET_194
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @TICKET_271 {caseNum1} 1 {caseLabel1} @TICKET_257 {caseNum2} -1 {caseLabel2} @TICKET_271 {caseNum3} -1 {caseLabel3} @TICKET_271 {caseNum4} -1 {caseLabel4} @TICKET_271 {caseNum5} -1 {caseLabel5} @TICKET_271 {caseNum6} -1 {caseLabel6} @TICKET_271 {caseNum7} -1 {caseLabel7} @TICKET_271

:TICKET_257
gosub @TICKET_273
goto @TICKET_271

:TICKET_271
return 

:TICKET_273
switch_start 4@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @TICKET_873 {caseNum1} 0 {caseLabel1} @TICKET_336 {caseNum2} 1 {caseLabel2} @TICKET_387 {caseNum3} 2 {caseLabel3} @TICKET_472 {caseNum4} 3 {caseLabel4} @TICKET_566 {caseNum5} 4 {caseLabel5} @TICKET_650 {caseNum6} 5 {caseLabel6} @TICKET_736 {caseNum7} 6 {caseLabel7} @TICKET_830

:TICKET_336
Task.PlayAnim(0@, "SLOT_IN", "CASINO", 4.0, False, False, False, False, -1)
4@ += 1
goto @TICKET_873

:TICKET_387
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_465
Task.PlayAnim(0@, "SLOT_BET_01", "CASINO", 4.0, False, False, False, False, 2@)
4@ += 1

:TICKET_465
goto @TICKET_873

:TICKET_472
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_559
2@ = Math.RandomIntInRange(5000, 10000)
Task.PlayAnim(0@, "SLOT_WAIT", "CASINO", 4.0, True, False, False, True, 2@)
4@ += 1

:TICKET_559
goto @TICKET_873

:TICKET_566
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_643
Task.PlayAnim(0@, "SLOT_BET_02", "CASINO", 4.0, False, False, False, False, -1)
4@ += 1

:TICKET_643
goto @TICKET_873

:TICKET_650
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_729
Task.PlayAnim(0@, "SLOT_LOSE_OUT", "CASINO", 4.0, False, False, False, False, -1)
4@ += 1

:TICKET_729
goto @TICKET_873

:TICKET_736
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_823
2@ = Math.RandomIntInRange(4000, 8000)
Task.PlayAnim(0@, "SLOT_WAIT", "CASINO", 4.0, True, False, False, True, 2@)
4@ += 1

:TICKET_823
goto @TICKET_873

:TICKET_830
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_866
gosub @TICKET_875

:TICKET_866
goto @TICKET_873

:TICKET_873
return 

:TICKET_875
Streaming.RemoveAnimation("CASINO")
terminate_this_script 
return 
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 59 (SHOPPER)---------------

:SHOPPER
script_name 'SHOPPER'
2@ = 0
if 
  2@ == 1
goto_if_false @SHOPPER_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:SHOPPER_60
Streaming.RequestAnimation("INT_SHOP")

:SHOPPER_72
if 
  not Streaming.HasAnimationLoaded("INT_SHOP")
goto_if_false @SHOPPER_106
wait 0
goto @SHOPPER_72

:SHOPPER_106
3@ = 1
4@ = 0

:SHOPPER_120
wait 0
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
  $iTerminateAllAmbience == 0
goto_if_false @SHOPPER_289
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @SHOPPER_275
if or
  Char.HasBeenDamagedByChar(0@, $scplayer)
  Char.IsShooting($scplayer)
goto_if_false @SHOPPER_221
$iSetClothesPanic = 1
Char.SetDecisionMaker(0@, $iGlobalPedPanicDM)
goto @SHOPPER_1073
goto @SHOPPER_268

:SHOPPER_221
if 
  $iSetClothesPanic == 1
goto_if_false @SHOPPER_261
Char.SetDecisionMaker(0@, $iGlobalPedPanicDM)
goto @SHOPPER_1073
goto @SHOPPER_268

:SHOPPER_261
gosub @SHOPPER_303

:SHOPPER_268
goto @SHOPPER_282

:SHOPPER_275
gosub @SHOPPER_1057

:SHOPPER_282
goto @SHOPPER_296

:SHOPPER_289
gosub @SHOPPER_1057

:SHOPPER_296
goto @SHOPPER_120

:SHOPPER_303
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @SHOPPER_380 {caseNum1} 1 {caseLabel1} @SHOPPER_366 {caseNum2} -1 {caseLabel2} @SHOPPER_380 {caseNum3} -1 {caseLabel3} @SHOPPER_380 {caseNum4} -1 {caseLabel4} @SHOPPER_380 {caseNum5} -1 {caseLabel5} @SHOPPER_380 {caseNum6} -1 {caseLabel6} @SHOPPER_380 {caseNum7} -1 {caseLabel7} @SHOPPER_380

:SHOPPER_366
gosub @SHOPPER_382
goto @SHOPPER_380

:SHOPPER_380
return 

:SHOPPER_382
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SHOPPER_1055 {caseNum1} 0 {caseLabel1} @SHOPPER_445 {caseNum2} 1 {caseLabel2} @SHOPPER_527 {caseNum3} 2 {caseLabel3} @SHOPPER_674 {caseNum4} 3 {caseLabel4} @SHOPPER_835 {caseNum5} 4 {caseLabel5} @SHOPPER_1012 {caseNum6} -1 {caseLabel6} @SHOPPER_1055 {caseNum7} -1 {caseLabel7} @SHOPPER_1055

:SHOPPER_445
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @SHOPPER_520
Task.PlayAnim(0@, "SHOP_IN", "INT_SHOP", 4.0, False, False, False, False, -1)
4@ += 1

:SHOPPER_520
goto @SHOPPER_1055

:SHOPPER_527
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @SHOPPER_667
set_lvar_int_to_lvar_int 2@ = 0@
if 
  2@ > 10000
goto_if_false @SHOPPER_591
2@ /= 10000

:SHOPPER_591
if 
  1000 > 2@
goto_if_false @SHOPPER_618
2@ += 2000

:SHOPPER_618
Task.PlayAnim(0@, "SHOP_LOOP", "INT_SHOP", 4.0, True, False, False, True, 2@)
4@ += 1

:SHOPPER_667
goto @SHOPPER_1055

:SHOPPER_674
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @SHOPPER_828
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @SHOPPER_779
Task.PlayAnim(0@, "SHOP_LOOKA", "INT_SHOP", 4.0, False, False, False, False, -1)
goto @SHOPPER_821

:SHOPPER_779
Task.PlayAnim(0@, "SHOP_LOOKB", "INT_SHOP", 4.0, False, False, False, False, -1)

:SHOPPER_821
4@ += 1

:SHOPPER_828
goto @SHOPPER_1055

:SHOPPER_835
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @SHOPPER_1005
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @SHOPPER_945
Task.PlayAnim(0@, "SHOP_OUT", "INT_SHOP", 4.0, False, False, False, False, -1)
4@ += 1
goto @SHOPPER_1005

:SHOPPER_945
2@ = Math.RandomIntInRange(3000, 6000)
Task.PlayAnim(0@, "SHOP_LOOP", "INT_SHOP", 4.0, True, False, False, True, 2@)
4@ = 1

:SHOPPER_1005
goto @SHOPPER_1055

:SHOPPER_1012
2@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @SHOPPER_1048
gosub @SHOPPER_1057

:SHOPPER_1048
goto @SHOPPER_1055

:SHOPPER_1055
return 

:SHOPPER_1057
Streaming.RemoveAnimation("INT_SHOP")
terminate_this_script 
return 

:SHOPPER_1073
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @SHOPPER_1143
5@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @SHOPPER_1136
Task.Duck(0@, -2)

:SHOPPER_1136
goto @SHOPPER_1150

:SHOPPER_1143
gosub @SHOPPER_1057

:SHOPPER_1150
goto @SHOPPER_1073
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 60 (AMMU)---------------

:AMUNAT
$weapon_offY = 0.0
$weapon_offZ = 0.0
$temp_slot = 0.0
$flag_ammu = 0.0
$flag_attacked_ammu_keeper = 0.0
$return_animation_time_ammunation = 0.0
$cam_offx = 0.0
$cam_offy = 0.0
$cam_offz = 0.0
$shop_keep_heading_ammunation = 0.0
$player_heading_ammunation = 0.0
$shop_progress_ammunation = 0.0
$player_weapontype = 0.0
$player_ammo = 0.0
$cost_menu_drawn_shops = 0
$ammuX = 0.0
$ammuY = 0.0
$ammuZ = 0.0
$shop_item_ammu = 0
$shop_alarm_ammu = 0
$anim_name_return_ammu = 0.0
$9567 = 0.0
$9568 = 0.0
$9563 = 0
$9564 = 0
$9565 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$weapon_on_counterY_shops = 0
$weapon_on_counterX_shops = 0
$weapon_on_counterZ_shops = 0
$pistol_name_menu = 0
$ammu_offX = 0
$temp_var_shops = 0
$ammu_offY = 0
$ammu_offZ = 0
$ammu_camera_pointX = 0
$ammu_camera_pointY = 0
$ammu_camera_pointZ = 0
$player_armour = 0
$player_max_armour = 0
$flag_buy_ammo_flag = 0
$weapon_count_ammu = 0
$no_of_pistols = 0
$no_of_shotguns = 0
$no_of_microSMG = 0
$no_of_SMG = 0
$no_of_assault = 0
$no_of_thrown = 0
$no_of_rifle = 0
$no_of_armour = 0
$no_of_heavy = 0
$9627 = 0
$rifle_array = 0
$9629 = 0
goto @AMUNAT_525
add_continuous_sound $ammuX {_p2} $ammuY {_p3} $ammuZ {_p4} 65535 {_p5} $9561
$anim_name_return_start_ammu = Object.Create($created_this_weapon, 1659.635, -1576.514, 15.585)
$d_player_stick_position = Object.Create($created_this_weapon, $anim_name_return_ammu, $9567, $9568)

:AMUNAT_525
set_var_int_to_constant $shopkeeper_model_shops = 179
Streaming.RequestModel($shopkeeper_model_shops)
Streaming.RequestModel(346)
Streaming.RequestModel(372)
Streaming.RequestModel(352)
Streaming.RequestModel(349)
Streaming.RequestModel(342)
Streaming.RequestModel(373)
Streaming.RequestModel(353)
Streaming.RequestModel(350)
Streaming.RequestModel(347)
Streaming.RequestModel(363)
Streaming.RequestModel(364)
Streaming.RequestModel(357)
Streaming.RequestModel(358)
Streaming.RequestModel(355)
Streaming.RequestModel(356)
Streaming.RequestModel(348)
Streaming.RequestModel(351)
Streaming.LoadAllModelsNow
set_deatharrest_state 0
script_name 'AMUNAT'

:AMUNAT_640
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @AMUNAT_7618
if 
  not is_var_text_label_empty s$shop_name
goto_if_false @AMUNAT_7604
if 
  $shop_alarm_ammu > 0
goto_if_false @AMUNAT_762
if 
  Game.HasLanguageChanged
goto_if_false @AMUNAT_762
Text.ClearHelp
Menu.Delete($main_menu_shops)
Menu.Delete($sub_menu_shops)
Menu.Delete($bought_menu_shops)
Menu.Delete($cost_menu_shops)
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$current_Language = Game.GetCurrentLanguage()

:AMUNAT_762
if 
  $shop_alarm_ammu == 0
goto_if_false @AMUNAT_1286
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'AMMUN1'
goto_if_false @AMUNAT_884
$flag_ammu = 0.0
$flag_attacked_ammu_keeper = 0.0
$return_animation_time_ammunation = 0.0
$player_weapon_model = 180.0
$player_ammo = 0.0
$blob_flag_shop = 1
set_var_text_label s$iBouncerDM = s$shop_name
$weapon_offX = 0
$shop_alarm_ammu = 1

:AMUNAT_884
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'AMMUN2'
goto_if_false @AMUNAT_988
$flag_ammu = -0.765
$flag_attacked_ammu_keeper = -42.311
$return_animation_time_ammunation = -0.013
$player_weapon_model = 180.0
$player_ammo = 0.0
$blob_flag_shop = 1
set_var_text_label s$iBouncerDM = s$shop_name
$weapon_offX = 0
$shop_alarm_ammu = 1

:AMUNAT_988
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'AMMUN3'
goto_if_false @AMUNAT_1092
$flag_ammu = -6.264
$flag_attacked_ammu_keeper = -71.34
$return_animation_time_ammunation = -0.002
$player_weapon_model = 180.0
$player_ammo = 0.0
$blob_flag_shop = 1
set_var_text_label s$iBouncerDM = s$shop_name
$weapon_offX = 0
$shop_alarm_ammu = 1

:AMUNAT_1092
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'AMMUN4'
goto_if_false @AMUNAT_1189
$flag_ammu = 11.642
$flag_attacked_ammu_keeper = -102.936
$return_animation_time_ammunation = -1.929
$player_weapon_model = 180.0
$player_ammo = 0.0
$blob_flag_shop = 1
set_var_text_label s$iBouncerDM = s$shop_name
$shop_alarm_ammu = 1

:AMUNAT_1189
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'AMMUN5'
goto_if_false @AMUNAT_1286
$flag_ammu = 16.285
$flag_attacked_ammu_keeper = -127.781
$return_animation_time_ammunation = -1.929
$player_weapon_model = 180.0
$player_ammo = 0.0
$blob_flag_shop = 1
set_var_text_label s$iBouncerDM = s$shop_name
$shop_alarm_ammu = 1

:AMUNAT_1286
if 
  $shop_alarm_ammu == 1
goto_if_false @AMUNAT_2318
Text.UseCommands(True)
Stat.ShowUpdateStats(False)
$keep_offX = 296.506
add_float_var_to_float_var $keep_offX += $flag_ammu
$keep_offY = -38.168
add_float_var_to_float_var $keep_offY += $flag_attacked_ammu_keeper
$keep_offZ = 1000.547
add_float_var_to_float_var $keep_offZ += $return_animation_time_ammunation
$ammuX = 296.506
add_float_var_to_float_var $ammuX += $flag_ammu
$ammuY = -40.35
add_float_var_to_float_var $ammuY += $flag_attacked_ammu_keeper
$ammuZ = 1000.54
add_float_var_to_float_var $ammuZ += $return_animation_time_ammunation
$cam_offx = 296.585
add_float_var_to_float_var $cam_offx += $flag_ammu
$cam_offy = -38.345
add_float_var_to_float_var $cam_offy += $flag_attacked_ammu_keeper
$cam_offz = 1002.236
add_float_var_to_float_var $cam_offz += $return_animation_time_ammunation
$shop_keep_heading_ammunation = 296.501
add_float_var_to_float_var $shop_keep_heading_ammunation += $flag_ammu
$player_heading_ammunation = -39.298
add_float_var_to_float_var $player_heading_ammunation += $flag_attacked_ammu_keeper
$shop_progress_ammunation = 1001.943
add_float_var_to_float_var $shop_progress_ammunation += $return_animation_time_ammunation
$d_lsticky = Char.Create(PedType.CivMale, $shopkeeper_model_shops, $ammuX, $ammuY, $ammuZ)
Char.SetHeading($d_lsticky, $player_ammo)
Char.SetOnlyDamagedByPlayer($d_lsticky, True)
Char.SetDecisionMaker($d_lsticky, 65542)
if 
  $flag_casino_mission_counter > 2
goto_if_false @AMUNAT_1638
$d_rsticky = Shopping.GetNumberOfItems()
if 
  $flag_16weapons_open == 0
goto_if_false @AMUNAT_1631
Text.PrintHelp('NEWWEAP')
$flag_16weapons_open = 1

:AMUNAT_1631
goto @AMUNAT_2311

:AMUNAT_1638
if 
  $flag_desert_mission_counter > 7
goto_if_false @AMUNAT_1706
$d_rsticky = 15
if 
  $flag_15weapons_open == 0
goto_if_false @AMUNAT_1699
Text.PrintHelp('NEWWEAP')
$flag_15weapons_open = 1

:AMUNAT_1699
goto @AMUNAT_2311

:AMUNAT_1706
if 
  $flag_synd_mission_counter > 9
goto_if_false @AMUNAT_1774
$d_rsticky = 14
if 
  $flag_14weapons_open == 0
goto_if_false @AMUNAT_1767
Text.PrintHelp('NEWWEAP')
$flag_14weapons_open = 1

:AMUNAT_1767
goto @AMUNAT_2311

:AMUNAT_1774
if 
  $flag_wuzi_mission_counter > 0
goto_if_false @AMUNAT_1842
$d_rsticky = 13
if 
  $flag_13weapons_open == 0
goto_if_false @AMUNAT_1835
Text.PrintHelp('NEWWEAP')
$flag_13weapons_open = 1

:AMUNAT_1835
goto @AMUNAT_2311

:AMUNAT_1842
if 
  $flag_synd_mission_counter > 7
goto_if_false @AMUNAT_1910
$d_rsticky = 12
if 
  $flag_12weapons_open == 0
goto_if_false @AMUNAT_1903
Text.PrintHelp('NEWWEAP')
$flag_12weapons_open = 1

:AMUNAT_1903
goto @AMUNAT_2311

:AMUNAT_1910
if 
  $flag_truth_mission_counter > 0
goto_if_false @AMUNAT_1978
$d_rsticky = 11
if 
  $flag_11weapons_open == 0
goto_if_false @AMUNAT_1971
Text.PrintHelp('NEWWEAP')
$flag_11weapons_open = 1

:AMUNAT_1971
goto @AMUNAT_2311

:AMUNAT_1978
if 
  $flag_cat_mission4_passed == 1
goto_if_false @AMUNAT_2046
$d_rsticky = 10
if 
  $flag_10weapons_open == 0
goto_if_false @AMUNAT_2039
Text.PrintHelp('NEWWEAP')
$flag_10weapons_open = 1

:AMUNAT_2039
goto @AMUNAT_2311

:AMUNAT_2046
if 
  $flag_strap_mission_counter > 4
goto_if_false @AMUNAT_2114
$d_rsticky = 9
if 
  $flag_9weapons_open == 0
goto_if_false @AMUNAT_2107
Text.PrintHelp('NEWWEAP')
$flag_9weapons_open = 1

:AMUNAT_2107
goto @AMUNAT_2311

:AMUNAT_2114
if 
  $flag_smoke_mission_counter > 3
goto_if_false @AMUNAT_2182
$d_rsticky = 8
if 
  $flag_8weapons_open == 0
goto_if_false @AMUNAT_2175
Text.PrintHelp('NEWWEAP')
$flag_8weapons_open = 1

:AMUNAT_2175
goto @AMUNAT_2311

:AMUNAT_2182
if 
  $flag_ryder_mission_counter > 2
goto_if_false @AMUNAT_2250
$d_rsticky = 7
if 
  $flag_7weapons_open == 0
goto_if_false @AMUNAT_2243
Text.PrintHelp('NEWWEAP')
$flag_7weapons_open = 1

:AMUNAT_2243
goto @AMUNAT_2311

:AMUNAT_2250
if 
  2 > $flag_la1fin1_mission_counter
goto_if_false @AMUNAT_2311
$d_rsticky = 6
if 
  $flag_6weapons_open == 0
goto_if_false @AMUNAT_2311
Text.PrintHelp('NEWWEAP')
$flag_6weapons_open = 1

:AMUNAT_2311
$shop_alarm_ammu = 2

:AMUNAT_2318
if 
  $shop_alarm_ammu == 2
goto_if_false @AMUNAT_2978
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$iBouncerDM
goto_if_false @AMUNAT_2367
gosub @AMUNAT_8535

:AMUNAT_2367
if 
  not Char.IsDead($d_lsticky)
goto_if_false @AMUNAT_2933
if 
  $shop_item_ammu == 0
goto_if_false @AMUNAT_2881
if 
  $weapon_offX == 0
goto_if_false @AMUNAT_2480
Task.PlayAnimNonInterruptable($d_lsticky, "SHP_TRAY_POSE", "WEAPONS", 1000.0, True, False, False, False, -1)
$player_weapontype = 0.0
$weapon_offX = 1

:AMUNAT_2480
if 
  $flag_shooting_range_mission == 0
goto_if_false @AMUNAT_2700
if or
  Char.IsShooting($scplayer)
  Player.IsTargetingChar($player1, $d_lsticky)
  Char.HasBeenDamagedByWeapon($d_lsticky, WeaponType.AnyWeapon)
goto_if_false @AMUNAT_2613
$foodsmall_junkfud = Char.SetSayContextImportant($d_lsticky, 322, False, False, True)
Task.StandStill($d_lsticky, 5)
Char.SetWeaponSkill($d_lsticky, 2)
Char.GiveWeapon($d_lsticky, WeaponType.Pistol, 30000)
Char.SetAccuracy($d_lsticky, 80)
Task.StayInSamePlace($d_lsticky, True)
Task.KillCharOnFoot($d_lsticky, $scplayer)
$blob_flag_shop = 0
$shop_item_ammu = 1
goto @AMUNAT_2693

:AMUNAT_2613
$blob_flag_shop = 1
if 
  Char.LocateStoppedOnFoot3D($scplayer, $keep_offX, $keep_offY, $keep_offZ, 1.0, 1.0, 4.0, $blob_flag_shop)
goto_if_false @AMUNAT_2693
if 
  Player.CanStartMission($player1)
goto_if_false @AMUNAT_2693
$weapon_offX = 0
$shop_alarm_ammu = 3

:AMUNAT_2693
goto @AMUNAT_2874

:AMUNAT_2700
if or
  Player.IsTargetingChar($player1, $d_lsticky)
  Char.HasBeenDamagedByWeapon($d_lsticky, WeaponType.AnyWeapon)
goto_if_false @AMUNAT_2810
$foodsmall_junkfud = Char.SetSayContextImportant($d_lsticky, 322, False, False, True)
Task.StandStill($d_lsticky, 5)
Char.SetWeaponSkill($d_lsticky, 2)
Char.GiveWeapon($d_lsticky, WeaponType.Pistol, 30000)
Char.SetAccuracy($d_lsticky, 80)
Task.StayInSamePlace($d_lsticky, True)
Task.KillCharOnFoot($d_lsticky, $scplayer)
$blob_flag_shop = 0
$shop_item_ammu = 1
goto @AMUNAT_2874

:AMUNAT_2810
$blob_flag_shop = 1
if 
  Char.LocateStoppedOnFoot3D($scplayer, $keep_offX, $keep_offY, $keep_offZ, 1.0, 1.0, 4.0, $blob_flag_shop)
goto_if_false @AMUNAT_2874
$weapon_offX = 0
$shop_alarm_ammu = 3

:AMUNAT_2874
goto @AMUNAT_2926

:AMUNAT_2881
gosub @AMUNAT_8273
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$iBouncerDM
goto_if_false @AMUNAT_2919
gosub @AMUNAT_8535

:AMUNAT_2919
goto @AMUNAT_640

:AMUNAT_2926
goto @AMUNAT_2978

:AMUNAT_2933
gosub @AMUNAT_8273
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$iBouncerDM
goto_if_false @AMUNAT_2971
gosub @AMUNAT_8535

:AMUNAT_2971
goto @AMUNAT_640

:AMUNAT_2978
if 
  $shop_alarm_ammu == 3
goto_if_false @AMUNAT_3062
Player.SetControl($player1, False)
Game.SetMinigameInProgress(True)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.ClearTasksImmediately($scplayer)
World.ClearArea($player_x, $player_y, $player_z, 1.0, True)
Text.ClearThisPrint('SHOPNO')
TIMERA = 0
$shop_alarm_ammu = 4

:AMUNAT_3062
if 
  $shop_alarm_ammu == 4
goto_if_false @AMUNAT_3421
if 
  Char.IsDead($d_lsticky)
goto_if_false @AMUNAT_3141
gosub @AMUNAT_8273
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$iBouncerDM
goto_if_false @AMUNAT_3134
gosub @AMUNAT_8535

:AMUNAT_3134
goto @AMUNAT_640

:AMUNAT_3141
if 
  $weapon_offX == 0
goto_if_false @AMUNAT_3421
if 
  TIMERA >= 300
goto_if_false @AMUNAT_3421
Char.SetCoordinatesDontWarpGang($scplayer, $keep_offX, $keep_offY, $keep_offZ)
Char.SetHeading($scplayer, $player_weapon_model)
$players_money, $temp_shopX, $temp_shopY = Char.GetCoordinates($d_lsticky)
if or
  not is_float_var_equal_to_float_var $players_money == $ammuX
  not is_float_var_equal_to_float_var $temp_shopX == $ammuY
  not is_float_var_equal_to_float_var $temp_shopY == $ammuZ
goto_if_false @AMUNAT_3271
Char.SetCoordinates($d_lsticky, $ammuX, $ammuY, $ammuZ)
Char.SetHeading($d_lsticky, $player_ammo)

:AMUNAT_3271
Camera.SetFixedPosition($cam_offx, $cam_offy, $cam_offz, 0.0, 0.0, 0.0)
Camera.PointAtPoint($shop_keep_heading_ammunation, $player_heading_ammunation, $shop_progress_ammunation, SwitchType.JumpCut)
$foodsmall_junkfud = Char.SetSayContextImportant($d_lsticky, 328, False, False, True)
if 
  $flag_on_doberman_mission == 1
goto_if_false @AMUNAT_3352
$flag_bought_gun_for_doberman = 1

:AMUNAT_3352
if 
  Player.IsPlaying($player1)
goto_if_false @AMUNAT_3389
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
goto @AMUNAT_3403

:AMUNAT_3389
gosub @AMUNAT_8535
goto @AMUNAT_640

:AMUNAT_3403
Hud.DisplayRadar(False)
$shop_alarm_ammu = 5
$weapon_offX = 0

:AMUNAT_3421
if 
  $shop_alarm_ammu == 5
goto_if_false @AMUNAT_4241
if 
  Char.IsDead($d_lsticky)
goto_if_false @AMUNAT_3500
gosub @AMUNAT_8273
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$iBouncerDM
goto_if_false @AMUNAT_3493
gosub @AMUNAT_8535

:AMUNAT_3493
goto @AMUNAT_640

:AMUNAT_3500
if 
  1 > $weapon_offX
goto_if_false @AMUNAT_3550
if 
  $main_menu_drawn_shops == 0
goto_if_false @AMUNAT_3550
gosub @AMUNAT_9980
gosub @AMUNAT_10986

:AMUNAT_3550
if 
  $weapon_offX == 0
goto_if_false @AMUNAT_3616
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @AMUNAT_3592
$weapon_offX = 3

:AMUNAT_3592
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @AMUNAT_3616
$weapon_offX = 1

:AMUNAT_3616
if 
  $weapon_offX == 1
goto_if_false @AMUNAT_3862
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @AMUNAT_3862
if 
  $main_menu_drawn_shops == 1
goto_if_false @AMUNAT_3683
Text.ClearHelp
Menu.Delete($main_menu_shops)
$main_menu_drawn_shops = 0

:AMUNAT_3683
if 
  $sub_menu_drawn_shops == 1
goto_if_false @AMUNAT_3715
Text.ClearHelp
Menu.Delete($sub_menu_shops)
$sub_menu_drawn_shops = 0

:AMUNAT_3715
if 
  $cost_menu_drawn_shops == 1
goto_if_false @AMUNAT_3747
Text.ClearHelp
Menu.Delete($cost_menu_shops)
$cost_menu_drawn_shops = 0

:AMUNAT_3747
if 
  $bought_menu_drawn_shops == 1
goto_if_false @AMUNAT_3777
Menu.Delete($bought_menu_shops)
$bought_menu_drawn_shops = 0

:AMUNAT_3777
Text.ClearThisPrint('AMMUA')
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('AMMUC')
Text.ClearThisPrint('AMMUD')
$foodsmall_junkfud = Char.SetSayContextImportant($d_lsticky, 326, False, False, True)
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Game.SetMinigameInProgress(False)
Hud.DisplayRadar(True)
$weapon_offX = 2

:AMUNAT_3862
if 
  $weapon_offX == 2
goto_if_false @AMUNAT_4090
if 
  $shop_item_ammu == 0
goto_if_false @AMUNAT_3999
if or
  Char.IsShooting($scplayer)
  Player.IsTargetingChar($player1, $d_lsticky)
  Char.HasBeenDamagedByWeapon($d_lsticky, WeaponType.AnyWeapon)
goto_if_false @AMUNAT_3999
$foodsmall_junkfud = Char.SetSayContextImportant($d_lsticky, 322, False, False, True)
Task.StandStill($d_lsticky, 5)
Char.SetWeaponSkill($d_lsticky, 2)
Char.GiveWeapon($d_lsticky, WeaponType.Pistol, 30000)
Char.SetAccuracy($d_lsticky, 80)
Task.StayInSamePlace($d_lsticky, True)
Task.KillCharOnFoot($d_lsticky, $scplayer)
$shop_item_ammu = 1

:AMUNAT_3999
if 
  not Char.LocateOnFoot3D($scplayer, $keep_offX, $keep_offY, $keep_offZ, 1.0, 1.0, 4.0, False)
goto_if_false @AMUNAT_4090
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$d_temp_float = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$shop_alarm_ammu = 2
$weapon_offX = 0

:AMUNAT_4090
if 
  $weapon_offX == 3
goto_if_false @AMUNAT_4241
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @AMUNAT_4241
$rifle_array = Menu.GetItemAccepted($main_menu_shops)
set_var_text_label s$shop_keep_ammunation = $item_text_label($rifle_array,12s)
if 
  0 > $rifle_array
goto_if_false @AMUNAT_4170
$rifle_array = 0

:AMUNAT_4170
if 
  $main_menu_drawn_shops == 1
goto_if_false @AMUNAT_4202
Text.ClearHelp
Menu.Delete($main_menu_shops)
$main_menu_drawn_shops = 0

:AMUNAT_4202
if 
  $sub_menu_drawn_shops == 0
goto_if_false @AMUNAT_4227
gosub @AMUNAT_11388

:AMUNAT_4227
$weapon_offX = 0
$shop_alarm_ammu = 6

:AMUNAT_4241
if 
  $shop_alarm_ammu == 6
goto_if_false @AMUNAT_5565
if 
  Char.IsDead($d_lsticky)
goto_if_false @AMUNAT_4320
gosub @AMUNAT_8273
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$iBouncerDM
goto_if_false @AMUNAT_4313
gosub @AMUNAT_8535

:AMUNAT_4313
goto @AMUNAT_640

:AMUNAT_4320
if 
  1 > $weapon_offX
goto_if_false @AMUNAT_4363
if 
  $sub_menu_drawn_shops == 0
goto_if_false @AMUNAT_4363
gosub @AMUNAT_11388

:AMUNAT_4363
if 
  $weapon_offX == 0
goto_if_false @AMUNAT_4429
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @AMUNAT_4405
$weapon_offX = 2

:AMUNAT_4405
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @AMUNAT_4429
$weapon_offX = 1

:AMUNAT_4429
if 
  $weapon_offX == 1
goto_if_false @AMUNAT_4542
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @AMUNAT_4542
if 
  $sub_menu_drawn_shops == 1
goto_if_false @AMUNAT_4496
Text.ClearHelp
Menu.Delete($sub_menu_shops)
$sub_menu_drawn_shops = 0

:AMUNAT_4496
if 
  $main_menu_drawn_shops == 0
goto_if_false @AMUNAT_4528
gosub @AMUNAT_9980
gosub @AMUNAT_10986

:AMUNAT_4528
$weapon_offX = 0
$shop_alarm_ammu = 5

:AMUNAT_4542
if 
  $weapon_offX == 2
goto_if_false @AMUNAT_4834
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @AMUNAT_4834
$9629 = Menu.GetItemAccepted($sub_menu_shops)
if 
  0 > $9629
goto_if_false @AMUNAT_4610
$9629 = 0

:AMUNAT_4610
set_var_int_to_var_int $weapon_obj = $9624($9629,3i)
s$d_vec_x = Shopping.GetNameOfItem($weapon_obj)
$d_rstickx = Shopping.GetPriceOfItem($weapon_obj)
if 
  not is_int_var_equal_to_constant $weapon_obj == 48
goto_if_false @AMUNAT_4679
$num_of_weapons = Weapon.GetSlot($weapon_obj)
$created_this_weapon = Weapon.GetModel($weapon_obj)
goto @AMUNAT_4687

:AMUNAT_4679
set_var_int_to_constant $created_this_weapon = 373

:AMUNAT_4687
if 
  $sub_menu_drawn_shops == 1
goto_if_false @AMUNAT_4719
Text.ClearHelp
Menu.Delete($sub_menu_shops)
$sub_menu_drawn_shops = 0

:AMUNAT_4719
Task.PlayAnimNonInterruptable($d_lsticky, "SHP_G_LIFT_IN", "WEAPONS", 1000.0, False, False, False, True, -1)
$player_weapontype = 0.0
if 
  Char.IsPlayingAnim($d_lsticky, "SHP_G_LIFT_IN")
goto_if_false @AMUNAT_4827
$player_weapontype = Char.GetAnimCurrentTime($d_lsticky, "SHP_G_LIFT_IN")

:AMUNAT_4827
$weapon_offX = 3

:AMUNAT_4834
if 
  $weapon_offX == 3
goto_if_false @AMUNAT_4934
if 
  Char.IsPlayingAnim($d_lsticky, "SHP_G_LIFT_IN")
goto_if_false @AMUNAT_4906
$player_weapontype = Char.GetAnimCurrentTime($d_lsticky, "SHP_G_LIFT_IN")

:AMUNAT_4906
if 
  $player_weapontype == 1.0
goto_if_false @AMUNAT_4934
$weapon_offX = 4

:AMUNAT_4934
if 
  $weapon_offX == 4
goto_if_false @AMUNAT_5110
$d_player_stick_position = Object.Create($created_this_weapon, $ammuX, $ammuY, $ammuZ)
gosub @AMUNAT_8960
gosub @AMUNAT_9615
Task.PickUpObject($d_lsticky, $d_player_stick_position, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)
Object.FreezePosition($d_player_stick_position, False)
Task.PlayAnimNonInterruptable($d_lsticky, v$weapon_name, "WEAPONS", 1000.0, False, False, False, True, -1)
$player_weapontype = 0.0
if 
  Char.IsPlayingAnim($d_lsticky, v$weapon_name)
goto_if_false @AMUNAT_5103
$player_weapontype = Char.GetAnimCurrentTime($d_lsticky, v$weapon_name)

:AMUNAT_5103
$weapon_offX = 5

:AMUNAT_5110
if 
  $weapon_offX == 5
goto_if_false @AMUNAT_5300
if 
  Char.IsPlayingAnim($d_lsticky, v$weapon_name)
goto_if_false @AMUNAT_5158
$player_weapontype = Char.GetAnimCurrentTime($d_lsticky, v$weapon_name)

:AMUNAT_5158
if 
  $player_weapontype == 1.0
goto_if_false @AMUNAT_5300
Char.DropObject($d_lsticky, False)
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1131)
Object.SetCoordinates($d_player_stick_position, $weapon_offY, $weapon_offZ, $temp_slot)
Object.FreezePosition($d_player_stick_position, True)
Task.PlayAnimNonInterruptable($d_lsticky, v$section_selected_ammu, "WEAPONS", 1000.0, False, False, False, True, -1)
$player_weapontype = 0.0
if 
  Char.IsPlayingAnim($d_lsticky, v$section_selected_ammu)
goto_if_false @AMUNAT_5293
$player_weapontype = Char.GetAnimCurrentTime($d_lsticky, v$section_selected_ammu)

:AMUNAT_5293
$weapon_offX = 6

:AMUNAT_5300
if 
  $weapon_offX == 6
goto_if_false @AMUNAT_5565
if 
  Char.IsPlayingAnim($d_lsticky, v$section_selected_ammu)
goto_if_false @AMUNAT_5348
$player_weapontype = Char.GetAnimCurrentTime($d_lsticky, v$section_selected_ammu)

:AMUNAT_5348
if 
  $player_weapontype == 1.0
goto_if_false @AMUNAT_5565
Task.PlayAnimNonInterruptable($d_lsticky, "SHP_TRAY_POSE", "WEAPONS", 1000.0, True, False, False, False, -1)
$player_weapontype = 0.0
if 
  $cost_menu_drawn_shops == 0
goto_if_false @AMUNAT_5448
gosub @AMUNAT_7632

:AMUNAT_5448
if 
  not is_int_var_equal_to_constant $weapon_obj == 48
goto_if_false @AMUNAT_5551
set_var_int_to_var_int $9569 = $num_of_weapons
$9569 += 1
$9563, $9564, $9565 = Char.GetWeaponInSlot($scplayer, $9569)
if 
  not is_int_var_equal_to_int_var $9563 == $weapon_obj
goto_if_false @AMUNAT_5551
if 
  $9564 > 0
goto_if_false @AMUNAT_5551
Text.PrintNow('AMMUA', 5000, 1)

:AMUNAT_5551
$shop_alarm_ammu = 7
$weapon_offX = 0

:AMUNAT_5565
if 
  $shop_alarm_ammu == 7
goto_if_false @AMUNAT_7597
if 
  Char.IsDead($d_lsticky)
goto_if_false @AMUNAT_5644
gosub @AMUNAT_8273
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$iBouncerDM
goto_if_false @AMUNAT_5637
gosub @AMUNAT_8535

:AMUNAT_5637
goto @AMUNAT_640

:AMUNAT_5644
if 
  1 > $weapon_offX
goto_if_false @AMUNAT_5687
if 
  $cost_menu_drawn_shops == 0
goto_if_false @AMUNAT_5687
gosub @AMUNAT_7632

:AMUNAT_5687
if 
  $weapon_offX == 0
goto_if_false @AMUNAT_5753
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @AMUNAT_5729
$weapon_offX = 5

:AMUNAT_5729
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @AMUNAT_5753
$weapon_offX = 1

:AMUNAT_5753
if 
  $weapon_offX == 1
goto_if_false @AMUNAT_5899
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @AMUNAT_5899
if 
  $cost_menu_drawn_shops == 1
goto_if_false @AMUNAT_5820
Text.ClearHelp
Menu.Delete($cost_menu_shops)
$cost_menu_drawn_shops = 0

:AMUNAT_5820
Task.PlayAnimNonInterruptable($d_lsticky, v$model_index_ammu, "WEAPONS", 1000.0, False, False, False, True, -1)
$player_weapontype = 0.0
if 
  Char.IsPlayingAnim($d_lsticky, v$model_index_ammu)
goto_if_false @AMUNAT_5892
$player_weapontype = Char.GetAnimCurrentTime($d_lsticky, v$model_index_ammu)

:AMUNAT_5892
$weapon_offX = 2

:AMUNAT_5899
if 
  $weapon_offX == 2
goto_if_false @AMUNAT_6095
if 
  Char.IsPlayingAnim($d_lsticky, v$model_index_ammu)
goto_if_false @AMUNAT_5947
$player_weapontype = Char.GetAnimCurrentTime($d_lsticky, v$model_index_ammu)

:AMUNAT_5947
if 
  $player_weapontype == 1.0
goto_if_false @AMUNAT_6095
Task.PickUpObject($d_lsticky, $d_player_stick_position, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)
Object.FreezePosition($d_player_stick_position, False)
Task.PlayAnimNonInterruptable($d_lsticky, v$9557, "WEAPONS", 1000.0, False, False, False, True, -1)
$player_weapontype = 0.0
if 
  Char.IsPlayingAnim($d_lsticky, v$9557)
goto_if_false @AMUNAT_6088
$player_weapontype = Char.GetAnimCurrentTime($d_lsticky, v$9557)

:AMUNAT_6088
$weapon_offX = 3

:AMUNAT_6095
if 
  $weapon_offX == 3
goto_if_false @AMUNAT_6317
if 
  Char.IsPlayingAnim($d_lsticky, v$9557)
goto_if_false @AMUNAT_6143
$player_weapontype = Char.GetAnimCurrentTime($d_lsticky, v$9557)

:AMUNAT_6143
if 
  $player_weapontype == 1.0
goto_if_false @AMUNAT_6317
Char.DropObject($d_lsticky, False)
Object.SetCoordinates($d_player_stick_position, $weapon_offY, $weapon_offZ, $temp_slot)
Object.FreezePosition($d_player_stick_position, True)
gosub @AMUNAT_8953
Task.PlayAnimNonInterruptable($d_lsticky, "SHP_G_LIFT_OUT", "WEAPONS", 1000.0, False, False, False, True, -1)
$player_weapontype = 0.0
if 
  Char.IsPlayingAnim($d_lsticky, "SHP_G_LIFT_OUT")
goto_if_false @AMUNAT_6310
$player_weapontype = Char.GetAnimCurrentTime($d_lsticky, "SHP_G_LIFT_OUT")

:AMUNAT_6310
$weapon_offX = 4

:AMUNAT_6317
if 
  $weapon_offX == 4
goto_if_false @AMUNAT_6480
if 
  Char.IsPlayingAnim($d_lsticky, "SHP_G_LIFT_OUT")
goto_if_false @AMUNAT_6391
$player_weapontype = Char.GetAnimCurrentTime($d_lsticky, "SHP_G_LIFT_OUT")

:AMUNAT_6391
if 
  $player_weapontype == 1.0
goto_if_false @AMUNAT_6480
Task.PlayAnimNonInterruptable($d_lsticky, "SHP_TRAY_POSE", "WEAPONS", 1000.0, True, False, False, False, -1)
$player_weapontype = 0.0
$weapon_offX = 0
$shop_alarm_ammu = 6

:AMUNAT_6480
if 
  $weapon_offX == 5
goto_if_false @AMUNAT_7048
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @AMUNAT_7048
Text.ClearThisPrint('AMMUA')
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('AMMUC')
Text.ClearThisPrint('AMMUD')
$flag_no_money_shops = 0
$weapon_on_counterZ_shops = 0
$2753 = Player.StoreScore($player1)
if 
  is_int_var_greater_or_equal_to_int_var $2753 >= $d_rstickx
goto_if_false @AMUNAT_6969
if 
  not is_int_var_equal_to_constant $weapon_obj == 48
goto_if_false @AMUNAT_6791
$9564 = Char.GetAmmoInWeapon($scplayer, $weapon_obj)
if 
  9999 > $9564
goto_if_false @AMUNAT_6705
Shopping.BuyItem($weapon_obj)
$foodsmall_junkfud = Char.SetSayContextImportant($d_lsticky, 318, False, False, True)
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1052)
$weapon_offX = 6
TIMERB = 0
goto @AMUNAT_6784

:AMUNAT_6705
if 
  $weapon_on_counterZ_shops == 0
goto_if_false @AMUNAT_6784
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1053)
Text.PrintNow('AMMUC', 5000, 1)
$foodsmall_junkfud = Char.SetSayContextImportant($d_lsticky, 317, False, False, True)
$weapon_offX = 0
$weapon_on_counterZ_shops = 1

:AMUNAT_6784
goto @AMUNAT_6962

:AMUNAT_6791
$weapon_on_counterX_shops = Char.GetArmor($scplayer)
$weapon_on_counterY_shops = Player.GetMaxArmor($player1)
if 
  is_int_var_greater_than_int_var $weapon_on_counterY_shops > $weapon_on_counterX_shops
goto_if_false @AMUNAT_6883
$foodsmall_junkfud = Char.SetSayContextImportant($d_lsticky, 318, False, False, True)
Shopping.BuyItem($weapon_obj)
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1052)
$weapon_offX = 6
TIMERB = 0
goto @AMUNAT_6962

:AMUNAT_6883
if 
  $weapon_on_counterZ_shops == 0
goto_if_false @AMUNAT_6962
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1053)
$foodsmall_junkfud = Char.SetSayContextImportant($d_lsticky, 317, False, False, True)
Text.PrintNow('AMMUD', 5000, 1)
$weapon_offX = 0
$weapon_on_counterZ_shops = 1

:AMUNAT_6962
goto @AMUNAT_7048

:AMUNAT_6969
if 
  $flag_no_money_shops == 0
goto_if_false @AMUNAT_7048
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1053)
$foodsmall_junkfud = Char.SetSayContextImportant($d_lsticky, 319, False, False, True)
Text.PrintNow('SHOPNO', 5000, 1)
$weapon_offX = 0
$flag_no_money_shops = 1

:AMUNAT_7048
if 
  $weapon_offX == 6
goto_if_false @AMUNAT_7480
if 
  $cost_menu_drawn_shops == 1
goto_if_false @AMUNAT_7098
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:AMUNAT_7098
if 
  $bought_menu_drawn_shops == 0
goto_if_false @AMUNAT_7466
$bought_menu_shops = Menu.Create('AMMUN', 29.0, 20.0, 93.0, 2, False, True, 1)
Menu.SetColumnOrientation($bought_menu_shops, 0, 1)
Menu.SetColumn($bought_menu_shops, 0, 'WEAPON', 'BOUGHT', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumnOrientation($bought_menu_shops, 1, 0)
Menu.SetColumn($bought_menu_shops, 1, 'COST', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetItemWithNumber($bought_menu_shops, 1, 0, 'DOLLAR', $d_rstickx)
Menu.SetColumnWidth($bought_menu_shops, 0, 140)
Menu.SetColumnWidth($bought_menu_shops, 1, 46)
$bought_menu_drawn_shops = 1

:AMUNAT_7466
TIMERB = 0
$weapon_offX = 7

:AMUNAT_7480
if 
  $weapon_offX == 7
goto_if_false @AMUNAT_7597
if 
  TIMERB >= 1000
goto_if_false @AMUNAT_7597
if 
  $bought_menu_drawn_shops == 1
goto_if_false @AMUNAT_7547
Menu.Delete($bought_menu_shops)
$bought_menu_drawn_shops = 0

:AMUNAT_7547
$weapon_offX = 0
if 
  1 > $weapon_offX
goto_if_false @AMUNAT_7597
if 
  $cost_menu_drawn_shops == 0
goto_if_false @AMUNAT_7597
gosub @AMUNAT_7632

:AMUNAT_7597
goto @AMUNAT_7611

:AMUNAT_7604
gosub @AMUNAT_8535

:AMUNAT_7611
goto @AMUNAT_7625

:AMUNAT_7618
gosub @AMUNAT_8535

:AMUNAT_7625
goto @AMUNAT_640

:AMUNAT_7632
if 
  $cost_menu_drawn_shops == 0
goto_if_false @AMUNAT_8271
Text.PrintHelpForever('AMMU_H3')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @AMUNAT_7723
$cost_menu_shops = Menu.Create('AMMUN', 29.0, 95.0, 93.0, 2, False, True, 1)
goto @AMUNAT_7964

:AMUNAT_7723
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @AMUNAT_7785
$cost_menu_shops = Menu.Create('AMMUN', 29.0, 95.0, 93.0, 2, False, True, 1)
goto @AMUNAT_7964

:AMUNAT_7785
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @AMUNAT_7847
$cost_menu_shops = Menu.Create('AMMUN', 29.0, 95.0, 93.0, 2, False, True, 1)
goto @AMUNAT_7964

:AMUNAT_7847
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @AMUNAT_7909
$cost_menu_shops = Menu.Create('AMMUN', 29.0, 95.0, 93.0, 2, False, True, 1)
goto @AMUNAT_7964

:AMUNAT_7909
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @AMUNAT_7964
$cost_menu_shops = Menu.Create('AMMUN', 29.0, 95.0, 93.0, 2, False, True, 1)

:AMUNAT_7964
Menu.SetColumnOrientation($cost_menu_shops, 0, 1)
Menu.SetColumn($cost_menu_shops, 0, 'WEAPON', s$d_vec_x, 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumnOrientation($cost_menu_shops, 1, 0)
Menu.SetColumn($cost_menu_shops, 1, 'COST', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetItemWithNumber($cost_menu_shops, 1, 0, 'DOLLAR', $d_rstickx)
Menu.SetColumnWidth($cost_menu_shops, 0, 140)
Menu.SetColumnWidth($cost_menu_shops, 1, 46)
$cost_menu_drawn_shops = 1

:AMUNAT_8271
return 

:AMUNAT_8273
if 
  $main_menu_drawn_shops == 1
goto_if_false @AMUNAT_8305
Text.ClearHelp
Menu.Delete($main_menu_shops)
$main_menu_drawn_shops = 0

:AMUNAT_8305
if 
  $sub_menu_drawn_shops == 1
goto_if_false @AMUNAT_8337
Text.ClearHelp
Menu.Delete($sub_menu_shops)
$sub_menu_drawn_shops = 0

:AMUNAT_8337
if 
  $cost_menu_drawn_shops == 1
goto_if_false @AMUNAT_8369
Text.ClearHelp
Menu.Delete($cost_menu_shops)
$cost_menu_drawn_shops = 0

:AMUNAT_8369
if 
  $bought_menu_drawn_shops == 1
goto_if_false @AMUNAT_8399
Menu.Delete($bought_menu_shops)
$bought_menu_drawn_shops = 0

:AMUNAT_8399
if 
  $shop_alarm_ammu >= 1
goto_if_false @AMUNAT_8419
Text.ClearHelp

:AMUNAT_8419
Text.ClearThisPrint('AMMUA')
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('AMMUC')
Text.ClearThisPrint('AMMUD')
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$d_temp_float = 0
$weapon_offX = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$weapon_on_counterZ_shops = 0
$shop_alarm_ammu = 2
return 

:AMUNAT_8535
if 
  $main_menu_drawn_shops == 1
goto_if_false @AMUNAT_8567
Text.ClearHelp
Menu.Delete($main_menu_shops)
$main_menu_drawn_shops = 0

:AMUNAT_8567
if 
  $sub_menu_drawn_shops == 1
goto_if_false @AMUNAT_8599
Text.ClearHelp
Menu.Delete($sub_menu_shops)
$sub_menu_drawn_shops = 0

:AMUNAT_8599
if 
  $cost_menu_drawn_shops == 1
goto_if_false @AMUNAT_8631
Text.ClearHelp
Menu.Delete($cost_menu_shops)
$cost_menu_drawn_shops = 0

:AMUNAT_8631
if 
  $bought_menu_drawn_shops == 1
goto_if_false @AMUNAT_8661
Menu.Delete($bought_menu_shops)
$bought_menu_drawn_shops = 0

:AMUNAT_8661
if 
  $shop_alarm_ammu >= 1
goto_if_false @AMUNAT_8681
Text.ClearHelp

:AMUNAT_8681
Text.ClearThisPrint('AMMUA')
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('AMMUC')
Text.ClearThisPrint('AMMUD')
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$shop_item_ammu = 0
$d_temp_float = 0
$weapon_offX = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$weapon_on_counterZ_shops = 0
$shop_alarm_ammu = 0
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(347)
Streaming.MarkModelAsNoLongerNeeded(348)
Streaming.MarkModelAsNoLongerNeeded(349)
Streaming.MarkModelAsNoLongerNeeded(350)
Streaming.MarkModelAsNoLongerNeeded(351)
Streaming.MarkModelAsNoLongerNeeded(342)
Streaming.MarkModelAsNoLongerNeeded(352)
Streaming.MarkModelAsNoLongerNeeded(353)
Streaming.MarkModelAsNoLongerNeeded(372)
Streaming.MarkModelAsNoLongerNeeded(355)
Streaming.MarkModelAsNoLongerNeeded(356)
Streaming.MarkModelAsNoLongerNeeded(357)
Streaming.MarkModelAsNoLongerNeeded(358)
Streaming.MarkModelAsNoLongerNeeded(373)
Streaming.MarkModelAsNoLongerNeeded(363)
Streaming.MarkModelAsNoLongerNeeded(364)
Text.UseCommands(False)
Streaming.MarkModelAsNoLongerNeeded($shopkeeper_model_shops)
Char.Delete($d_lsticky)
Stat.ShowUpdateStats(True)
Hud.DisplayRadar(True)
Game.SetMinigameInProgress(False)
if 
  $range_weapons_open == 1
goto_if_false @AMUNAT_8949
Text.PrintHelp('ANR_56')
$range_weapons_open = 0

:AMUNAT_8949
terminate_this_script 
return 

:AMUNAT_8953
Object.Delete($d_player_stick_position)
return 

:AMUNAT_8960
if or
  is_int_var_equal_to_constant $created_this_weapon == 349
  is_int_var_equal_to_constant $created_this_weapon == 351
  is_int_var_equal_to_constant $created_this_weapon == 355
  is_int_var_equal_to_constant $created_this_weapon == 356
  is_int_var_equal_to_constant $created_this_weapon == 358
  is_int_var_equal_to_constant $created_this_weapon == 357
goto_if_false @AMUNAT_9113
set_var_text_label16 v$weapon_name = "SHP_2H_LIFT"
set_var_text_label16 v$section_selected_ammu = "SHP_2H_LIFT_END"
set_var_float_to_var_float $weapon_offY = $ammuX
$weapon_offY += 0.231
set_var_float_to_var_float $weapon_offZ = $ammuY
$weapon_offZ += 0.636
set_var_float_to_var_float $temp_slot = $ammuZ
$temp_slot += 1.053

:AMUNAT_9113
if 
  is_int_var_equal_to_constant $created_this_weapon == 350
goto_if_false @AMUNAT_9226
set_var_text_label16 v$weapon_name = "SHP_2H_LIFT"
set_var_text_label16 v$section_selected_ammu = "SHP_2H_LIFT_END"
set_var_float_to_var_float $weapon_offY = $ammuX
$weapon_offY += 0.231
set_var_float_to_var_float $weapon_offZ = $ammuY
$weapon_offZ += 0.636
set_var_float_to_var_float $temp_slot = $ammuZ
$temp_slot += 1.053

:AMUNAT_9226
if or
  is_int_var_equal_to_constant $created_this_weapon == 346
  is_int_var_equal_to_constant $created_this_weapon == 347
  is_int_var_equal_to_constant $created_this_weapon == 348
  is_int_var_equal_to_constant $created_this_weapon == 342
  is_int_var_equal_to_constant $created_this_weapon == 352
  is_int_var_equal_to_constant $created_this_weapon == 353
goto_if_false @AMUNAT_9379
set_var_text_label16 v$weapon_name = "SHP_1H_LIFT"
set_var_text_label16 v$section_selected_ammu = "SHP_1H_LIFT_END"
set_var_float_to_var_float $weapon_offY = $ammuX
$weapon_offY += 0.108
set_var_float_to_var_float $weapon_offZ = $ammuY
$weapon_offZ += 0.654
set_var_float_to_var_float $temp_slot = $ammuZ
$temp_slot += 1.053

:AMUNAT_9379
if or
  is_int_var_equal_to_constant $created_this_weapon == 363
  is_int_var_equal_to_constant $created_this_weapon == 372
goto_if_false @AMUNAT_9500
set_var_text_label16 v$weapon_name = "SHP_1H_LIFT"
set_var_text_label16 v$section_selected_ammu = "SHP_1H_LIFT_END"
set_var_float_to_var_float $weapon_offY = $ammuX
$weapon_offY += 0.108
set_var_float_to_var_float $weapon_offZ = $ammuY
$weapon_offZ += 0.654
set_var_float_to_var_float $temp_slot = $ammuZ
$temp_slot += 1.053

:AMUNAT_9500
if 
  is_int_var_equal_to_constant $created_this_weapon == 373
goto_if_false @AMUNAT_9613
set_var_text_label16 v$weapon_name = "SHP_AR_LIFT"
set_var_text_label16 v$section_selected_ammu = "SHP_AR_LIFT_END"
set_var_float_to_var_float $weapon_offY = $ammuX
$weapon_offY += 0.175
set_var_float_to_var_float $weapon_offZ = $ammuY
$weapon_offZ += 0.676
set_var_float_to_var_float $temp_slot = $ammuZ
$temp_slot += 1.5

:AMUNAT_9613
return 

:AMUNAT_9615
if or
  is_int_var_equal_to_constant $created_this_weapon == 349
  is_int_var_equal_to_constant $created_this_weapon == 351
  is_int_var_equal_to_constant $created_this_weapon == 355
  is_int_var_equal_to_constant $created_this_weapon == 356
  is_int_var_equal_to_constant $created_this_weapon == 358
  is_int_var_equal_to_constant $created_this_weapon == 357
goto_if_false @AMUNAT_9710
set_var_text_label16 v$model_index_ammu = "SHP_2H_RET_S"
set_var_text_label16 v$9557 = "SHP_2H_RET"

:AMUNAT_9710
if 
  is_int_var_equal_to_constant $created_this_weapon == 350
goto_if_false @AMUNAT_9765
set_var_text_label16 v$model_index_ammu = "SHP_2H_RET_S"
set_var_text_label16 v$9557 = "SHP_2H_RET"

:AMUNAT_9765
if or
  is_int_var_equal_to_constant $created_this_weapon == 346
  is_int_var_equal_to_constant $created_this_weapon == 347
  is_int_var_equal_to_constant $created_this_weapon == 348
  is_int_var_equal_to_constant $created_this_weapon == 342
  is_int_var_equal_to_constant $created_this_weapon == 352
  is_int_var_equal_to_constant $created_this_weapon == 353
goto_if_false @AMUNAT_9860
set_var_text_label16 v$model_index_ammu = "SHP_1H_RET_S"
set_var_text_label16 v$9557 = "SHP_1H_RET"

:AMUNAT_9860
if or
  is_int_var_equal_to_constant $created_this_weapon == 363
  is_int_var_equal_to_constant $created_this_weapon == 372
goto_if_false @AMUNAT_9923
set_var_text_label16 v$model_index_ammu = "SHP_1H_RET_S"
set_var_text_label16 v$9557 = "SHP_1H_RET"

:AMUNAT_9923
if 
  is_int_var_equal_to_constant $created_this_weapon == 373
goto_if_false @AMUNAT_9978
set_var_text_label16 v$model_index_ammu = "SHP_AR_RET_S"
set_var_text_label16 v$9557 = "SHP_AR_RET"

:AMUNAT_9978
return 

:AMUNAT_9980
$ammu_offX = 0
$pistol_name_menu = 0
$temp_var_shops = 0
$ammu_offY = 0
$ammu_offZ = 0
$ammu_camera_pointX = 0
$ammu_camera_pointY = 0
$ammu_camera_pointZ = 0
$player_armour = 0
$player_max_armour = 0
$flag_buy_ammo_flag = 0
$weapon_count_ammu = 0
$no_of_pistols = 0
$no_of_shotguns = 0
$no_of_microSMG = 0
$no_of_SMG = 0
$no_of_assault = 0
$no_of_thrown = 0
$no_of_rifle = 0
$no_of_armour = 0
$no_of_heavy = 0

:AMUNAT_10127
if 
  is_int_var_greater_than_int_var $d_rsticky > $ammu_offX
goto_if_false @AMUNAT_10904
$weapon_obj = Shopping.GetItem($ammu_offX)
switch_start $weapon_obj {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @AMUNAT_10890 {caseNum1} 16 {caseLabel1} @AMUNAT_10738 {caseNum2} 22 {caseLabel2} @AMUNAT_10282 {caseNum3} 23 {caseLabel3} @AMUNAT_10282 {caseNum4} 24 {caseLabel4} @AMUNAT_10282 {caseNum5} 25 {caseLabel5} @AMUNAT_10358 {caseNum6} 26 {caseLabel6} @AMUNAT_10358 {caseNum7} 27 {caseLabel7} @AMUNAT_10358
switch_continued 28 {caseLabel1} @AMUNAT_10434 {caseNum2} 29 {caseLabel2} @AMUNAT_10510 {caseNum3} 30 {caseLabel3} @AMUNAT_10586 {caseNum4} 31 {caseLabel4} @AMUNAT_10586 {caseNum5} 32 {caseLabel5} @AMUNAT_10434 {caseNum6} 33 {caseLabel6} @AMUNAT_10662 {caseNum7} 34 {caseLabel7} @AMUNAT_10662 {caseNum8} 39 {caseLabel8} @AMUNAT_10738 {caseNum9} 48 {caseLabel9} @AMUNAT_10814

:AMUNAT_10282
set_var_int_to_var_int $shotgun_name_menu($ammu_offY,3i) = $weapon_obj
$ammu_offY += 1
if 
  $no_of_pistols == 0
goto_if_false @AMUNAT_10351
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN1'
$pistol_name_menu += 1
$no_of_pistols = 1

:AMUNAT_10351
goto @AMUNAT_10890

:AMUNAT_10358
set_var_int_to_var_int $assault_name_menu($ammu_offZ,3i) = $weapon_obj
$ammu_offZ += 1
if 
  $no_of_shotguns == 0
goto_if_false @AMUNAT_10427
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN2'
$pistol_name_menu += 1
$no_of_shotguns = 1

:AMUNAT_10427
goto @AMUNAT_10890

:AMUNAT_10434
set_var_int_to_var_int $armour_name_menu($ammu_camera_pointX,2i) = $weapon_obj
$ammu_camera_pointX += 1
if 
  $no_of_microSMG == 0
goto_if_false @AMUNAT_10503
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN3'
$pistol_name_menu += 1
$no_of_microSMG = 1

:AMUNAT_10503
goto @AMUNAT_10890

:AMUNAT_10510
set_var_int_to_var_int $no_of_different_type_weapons($ammu_camera_pointY,1i) = $weapon_obj
$ammu_camera_pointY += 1
if 
  $no_of_SMG == 0
goto_if_false @AMUNAT_10579
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN4'
$pistol_name_menu += 1
$no_of_SMG = 1

:AMUNAT_10579
goto @AMUNAT_10890

:AMUNAT_10586
set_var_int_to_var_int $pistol_array($ammu_camera_pointZ,2i) = $weapon_obj
$ammu_camera_pointZ += 1
if 
  $no_of_assault == 0
goto_if_false @AMUNAT_10655
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN5'
$pistol_name_menu += 1
$no_of_assault = 1

:AMUNAT_10655
goto @AMUNAT_10890

:AMUNAT_10662
set_var_int_to_var_int $9619($player_max_armour,2i) = $weapon_obj
$player_max_armour += 1
if 
  $no_of_thrown == 0
goto_if_false @AMUNAT_10731
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN6'
$pistol_name_menu += 1
$no_of_thrown = 1

:AMUNAT_10731
goto @AMUNAT_10890

:AMUNAT_10738
set_var_int_to_var_int $9621($player_armour,2i) = $weapon_obj
$player_armour += 1
if 
  $no_of_rifle == 0
goto_if_false @AMUNAT_10807
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN7'
$pistol_name_menu += 1
$no_of_rifle = 1

:AMUNAT_10807
goto @AMUNAT_10890

:AMUNAT_10814
set_var_int_to_var_int $microSMG_array($flag_buy_ammo_flag,1i) = $weapon_obj
$flag_buy_ammo_flag += 1
if 
  $no_of_armour == 0
goto_if_false @AMUNAT_10883
set_var_text_label $item_text_label($pistol_name_menu,12s) = 'GUN8'
$pistol_name_menu += 1
$no_of_armour = 1

:AMUNAT_10883
goto @AMUNAT_10890

:AMUNAT_10890
$ammu_offX += 1
goto @AMUNAT_10127

:AMUNAT_10904
set_var_int_to_var_int $temp_var_shops = $pistol_name_menu

:AMUNAT_10912
if 
  12 > $temp_var_shops
goto_if_false @AMUNAT_10984
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @AMUNAT_10912

:AMUNAT_10984
return 

:AMUNAT_10986
if 
  $main_menu_drawn_shops == 0
goto_if_false @AMUNAT_11386
Text.PrintHelpForever('AMMU_H')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @AMUNAT_11077
$main_menu_shops = Menu.Create('AMMUN', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @AMUNAT_11318

:AMUNAT_11077
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @AMUNAT_11139
$main_menu_shops = Menu.Create('AMMUN', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @AMUNAT_11318

:AMUNAT_11139
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @AMUNAT_11201
$main_menu_shops = Menu.Create('AMMUN', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @AMUNAT_11318

:AMUNAT_11201
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @AMUNAT_11263
$main_menu_shops = Menu.Create('AMMUN', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @AMUNAT_11318

:AMUNAT_11263
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @AMUNAT_11318
$main_menu_shops = Menu.Create('AMMUN', 29.0, 145.0, 186.0, 1, True, True, 1)

:AMUNAT_11318
Menu.SetColumnOrientation($main_menu_shops, 0, 1)
Menu.SetColumn($main_menu_shops, 0, 'DUMMY', s$item_text_label[0], s$item_text_label[1], s$item_text_label[2], s$item_text_label[3], s$item_text_label[4], s$item_text_label[5], s$item_text_label[6], s$item_text_label[7], s$item_text_label[8], s$item_text_label[9], s$item_text_label[10], s$item_text_label[11])
$main_menu_drawn_shops = 1

:AMUNAT_11386
return 

:AMUNAT_11388
$9627 = 0
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN1'
goto_if_false @AMUNAT_11493

:AMUNAT_11420
if 
  is_int_var_greater_than_int_var $ammu_offY > $9627
goto_if_false @AMUNAT_11493
s$d_vec_x = Shopping.GetNameOfItem($shotgun_name_menu($9627,3i))
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $shotgun_name_menu($9627,3i)
$9627 += 1
goto @AMUNAT_11420

:AMUNAT_11493
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN2'
goto_if_false @AMUNAT_11591

:AMUNAT_11518
if 
  is_int_var_greater_than_int_var $ammu_offZ > $9627
goto_if_false @AMUNAT_11591
s$d_vec_x = Shopping.GetNameOfItem($assault_name_menu($9627,3i))
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $assault_name_menu($9627,3i)
$9627 += 1
goto @AMUNAT_11518

:AMUNAT_11591
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN3'
goto_if_false @AMUNAT_11689

:AMUNAT_11616
if 
  is_int_var_greater_than_int_var $ammu_camera_pointX > $9627
goto_if_false @AMUNAT_11689
s$d_vec_x = Shopping.GetNameOfItem($armour_name_menu($9627,2i))
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $armour_name_menu($9627,2i)
$9627 += 1
goto @AMUNAT_11616

:AMUNAT_11689
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN4'
goto_if_false @AMUNAT_11787

:AMUNAT_11714
if 
  is_int_var_greater_than_int_var $ammu_camera_pointY > $9627
goto_if_false @AMUNAT_11787
s$d_vec_x = Shopping.GetNameOfItem($no_of_different_type_weapons($9627,1i))
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $no_of_different_type_weapons($9627,1i)
$9627 += 1
goto @AMUNAT_11714

:AMUNAT_11787
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN5'
goto_if_false @AMUNAT_11885

:AMUNAT_11812
if 
  is_int_var_greater_than_int_var $ammu_camera_pointZ > $9627
goto_if_false @AMUNAT_11885
s$d_vec_x = Shopping.GetNameOfItem($pistol_array($9627,2i))
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $pistol_array($9627,2i)
$9627 += 1
goto @AMUNAT_11812

:AMUNAT_11885
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN6'
goto_if_false @AMUNAT_11983

:AMUNAT_11910
if 
  is_int_var_greater_than_int_var $player_max_armour > $9627
goto_if_false @AMUNAT_11983
s$d_vec_x = Shopping.GetNameOfItem($9619($9627,2i))
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $9619($9627,2i)
$9627 += 1
goto @AMUNAT_11910

:AMUNAT_11983
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN7'
goto_if_false @AMUNAT_12081

:AMUNAT_12008
if 
  is_int_var_greater_than_int_var $player_armour > $9627
goto_if_false @AMUNAT_12081
s$d_vec_x = Shopping.GetNameOfItem($9621($9627,2i))
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $9621($9627,2i)
$9627 += 1
goto @AMUNAT_12008

:AMUNAT_12081
if 
  is_var_text_label_equal_to_text_label s$shop_keep_ammunation == 'GUN8'
goto_if_false @AMUNAT_12179

:AMUNAT_12106
if 
  is_int_var_greater_than_int_var $flag_buy_ammo_flag > $9627
goto_if_false @AMUNAT_12179
s$d_vec_x = Shopping.GetNameOfItem($microSMG_array($9627,1i))
set_var_text_label $item_text_label($9627,12s) = s$d_vec_x
set_var_int_to_var_int $9624($9627,3i) = $microSMG_array($9627,1i)
$9627 += 1
goto @AMUNAT_12106

:AMUNAT_12179
set_var_int_to_var_int $temp_var_shops = $9627

:AMUNAT_12187
if 
  12 > $temp_var_shops
goto_if_false @AMUNAT_12259
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @AMUNAT_12187

:AMUNAT_12259
if 
  $sub_menu_drawn_shops == 0
goto_if_false @AMUNAT_12659
Text.PrintHelpForever('AMMU_H2')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @AMUNAT_12350
$sub_menu_shops = Menu.Create('AMMUN', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @AMUNAT_12591

:AMUNAT_12350
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @AMUNAT_12412
$sub_menu_shops = Menu.Create('AMMUN', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @AMUNAT_12591

:AMUNAT_12412
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @AMUNAT_12474
$sub_menu_shops = Menu.Create('AMMUN', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @AMUNAT_12591

:AMUNAT_12474
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @AMUNAT_12536
$sub_menu_shops = Menu.Create('AMMUN', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @AMUNAT_12591

:AMUNAT_12536
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @AMUNAT_12591
$sub_menu_shops = Menu.Create('AMMUN', 29.0, 145.0, 186.0, 1, True, True, 1)

:AMUNAT_12591
Menu.SetColumnOrientation($sub_menu_shops, 0, 1)
Menu.SetColumn($sub_menu_shops, 0, 'DUMMY', s$item_text_label[0], s$item_text_label[1], s$item_text_label[2], s$item_text_label[3], s$item_text_label[4], s$item_text_label[5], s$item_text_label[6], s$item_text_label[7], s$item_text_label[8], s$item_text_label[9], s$item_text_label[10], s$item_text_label[11])
$sub_menu_drawn_shops = 1

:AMUNAT_12659
return 
terminate_this_script 

//-------------External script 61 (TATTOO)---------------

:TATTO
$name_of_shop_out_anim_tattoo = 0
$9698 = 0
$area_looked_for_shops = 0
$price_counter = 0
$item_no_shops = 0
$temp_var_shops = 0
$tattoo_needleZ = 0
$thrown_array = 0.0
$9631 = 0.0
$armour_array = 0.0
$second_menu_weapon = 0.0
$tattoo_needle = 0.0
$9648 = 0.0
$player_in_view_mode_tattoo = 0.0
$shopkeeper_attacked_tattoo = 0.0
$9644 = 0.0
$shop_keep_tattoo = 0.0
$tattoo_price = 0.0
$stored_tattoo_shop = 0.0
$tattoo_name = 0
$shop_keep_tattooZ = 0
$shop_keep_tattooY = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$9696 = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$9699 = 0
$9700 = 500
$name_of_object_out_anim_tattoo = 0
$9702 = 0
$player_has_tattoo_in_area = 0
$9713 = 0
$9715 = 0
$9716 = 0
$keep_offX = 0.0
$keep_offY = 0.0
$keep_offZ = 0.0
$thrown_array = 0.0
$9631 = 0.0
$armour_array = 0.0
$cam_offx = 0.0
$cam_offy = 0.0
$cam_offz = 0.0
$flag_tattoo = 0.0
$tattoo_needleX = 0.0
$tattoo_needleY = 0.0
$9717 = 0.0
$9718 = 0.0
$9719 = 0.0
set_var_int_to_constant $shopkeeper_model_shops = 180
Streaming.RequestModel(#TATTOO_KIT)
Txd.LoadDictionary('LD_TATT')
Streaming.RequestModel($shopkeeper_model_shops)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 29200)
Streaming.LoadAllModelsNow
set_deatharrest_state 0
script_name 'TATTO'

:TATTO_513
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @TATTO_7603
if 
  not is_var_text_label_empty s$shop_name
goto_if_false @TATTO_7589
if 
  $tattoo_name > 0
goto_if_false @TATTO_635
if 
  Game.HasLanguageChanged
goto_if_false @TATTO_635
Text.ClearHelp
Menu.Delete($bought_menu_shops)
Menu.Delete($sub_menu_shops)
Menu.Delete($main_menu_shops)
Menu.Delete($9714)
$main_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$9713 = 0
$current_Language = Game.GetCurrentLanguage()

:TATTO_635
if 
  $tattoo_name == 0
goto_if_false @TATTO_938
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'TATTO2'
goto_if_false @TATTO_748
$9717 = 0.0
$9718 = 0.0
$9719 = 0.0
$tattoo_needle = 125.0
$second_menu_weapon = 155.0
set_var_text_label s$sub_menu_selection_ammu = s$shop_name
$name_of_shop_out_anim_tattoo = Shopping.GetNumberOfItems()
$tattoo_name = 1

:TATTO_748
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'TATTOO'
goto_if_false @TATTO_843
$9717 = 0.0
$9718 = -18.266
$9719 = 0.0
$tattoo_needle = 125.0
$second_menu_weapon = 155.0
set_var_text_label s$sub_menu_selection_ammu = s$shop_name
$name_of_shop_out_anim_tattoo = Shopping.GetNumberOfItems()
$tattoo_name = 1

:TATTO_843
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'TATTO3'
goto_if_false @TATTO_938
$9717 = 0.0
$9718 = -35.32
$9719 = 0.0
$tattoo_needle = 125.0
$second_menu_weapon = 155.0
set_var_text_label s$sub_menu_selection_ammu = s$shop_name
$name_of_shop_out_anim_tattoo = Shopping.GetNumberOfItems()
$tattoo_name = 1

:TATTO_938
if 
  $tattoo_name == 1
goto_if_false @TATTO_1577
if 
  $tattoo_needleZ == 0
goto_if_false @TATTO_1460
$keep_offX = -203.318
add_float_var_to_float_var $keep_offX += $9717
$keep_offY = -7.062
add_float_var_to_float_var $keep_offY += $9718
$keep_offZ = 1001.28
add_float_var_to_float_var $keep_offZ += $9719
$thrown_array = -201.668
add_float_var_to_float_var $thrown_array += $9717
$9631 = -6.217
add_float_var_to_float_var $9631 += $9718
$armour_array = 1001.28
add_float_var_to_float_var $armour_array += $9719
$cam_offx = -203.2045
add_float_var_to_float_var $cam_offx += $9717
$cam_offy = -5.3316
add_float_var_to_float_var $cam_offy += $9718
$cam_offz = 1002.432
add_float_var_to_float_var $cam_offz += $9719
$flag_tattoo = -202.2993
add_float_var_to_float_var $flag_tattoo += $9717
$tattoo_needleX = -5.7376
add_float_var_to_float_var $tattoo_needleX += $9718
$tattoo_needleY = 1002.306
add_float_var_to_float_var $tattoo_needleY += $9719
set_var_float_to_var_float $9644 = $thrown_array
set_var_float_to_var_float $shop_keep_tattoo = $9631
set_var_float_to_var_float $tattoo_price = $armour_array
$tattoo_price += 1.0
set_var_float_to_var_float $stored_tattoo_shop = $second_menu_weapon
Text.UseCommands(True)
Stat.ShowUpdateStats(False)
$temp_var_ammu = Char.Create(PedType.CivMale, $shopkeeper_model_shops, $thrown_array, $9631, $armour_array)
Char.SetOnlyDamagedByPlayer($temp_var_ammu, True)
Char.SetDecisionMaker($temp_var_ammu, 65542)
Char.SetHeading($temp_var_ammu, $second_menu_weapon)
World.SetCharUsesCollisionClosestObjectOfType($thrown_array, $9631, $armour_array, 1.5, #CJ_BARSTOOL, False, $temp_var_ammu)
$shop_keep_tattooY = 0
$shop_keep_heading_tattoo = Object.CreateNoOffset(#TATTOO_KIT, $9644, $shop_keep_tattoo, $tattoo_price)
Object.SetHeading($shop_keep_heading_tattoo, $stored_tattoo_shop)
Char.AttachToObject($temp_var_ammu, $shop_keep_heading_tattoo, 0.0, 0.0, 0.0, 0, 180.0, WeaponType.Unarmed)
$blob_flag_shop = 1
Task.PlayAnimNonInterruptable($temp_var_ammu, "TAT_IDLE_LOOP_T", "TATTOOS", 4.0, True, False, False, False, -1)
$player_in_view_mode_tattoo = 0.0
TIMERA = 0
$foodsmall_junkfud = Char.SetSayContext($temp_var_ammu, 325)
$tattoo_needleZ = 1

:TATTO_1460
if 
  $tattoo_needleZ == 1
goto_if_false @TATTO_1577
if 
  TIMERA >= 300
goto_if_false @TATTO_1577
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_1563
Object.PlayAnim($shop_keep_heading_tattoo, "TAT_IDLE_LOOP_O", "TATTOOS", 4.0, True, False)
$shopkeeper_attacked_tattoo = 0.0

:TATTO_1563
$tattoo_needleZ = 0
$tattoo_name = 2

:TATTO_1577
if 
  $tattoo_name == 2
goto_if_false @TATTO_1961
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_1626
gosub @TATTO_7871

:TATTO_1626
if 
  not Char.IsDead($temp_var_ammu)
goto_if_false @TATTO_1916
if 
  $shop_keep_tattooY == 0
goto_if_false @TATTO_1864
if or
  Char.IsShooting($scplayer)
  Player.IsTargetingChar($player1, $temp_var_ammu)
  Char.HasBeenDamagedByWeapon($temp_var_ammu, WeaponType.AnyWeapon)
goto_if_false @TATTO_1784
$foodsmall_junkfud = Char.SetSayContext($temp_var_ammu, 322)
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_1763
Object.PlayAnim($shop_keep_heading_tattoo, "TAT_DROP_O", "TATTOOS", 1000.0, False, True)
$shopkeeper_attacked_tattoo = 0.0

:TATTO_1763
Task.HandsUp($temp_var_ammu, -2)
$shop_keep_tattooY = 1
goto @TATTO_1857

:TATTO_1784
$blob_flag_shop = 1
if 
  Char.LocateStoppedOnFoot3D($scplayer, $keep_offX, $keep_offY, $keep_offZ, 1.0, 1.0, 4.0, $blob_flag_shop)
goto_if_false @TATTO_1857
if 
  Player.CanStartMission($player1)
goto_if_false @TATTO_1857
$tattoo_name = 3

:TATTO_1857
goto @TATTO_1909

:TATTO_1864
gosub @TATTO_7617
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_1902
gosub @TATTO_7871

:TATTO_1902
goto @TATTO_513

:TATTO_1909
goto @TATTO_1961

:TATTO_1916
gosub @TATTO_7617
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_1954
gosub @TATTO_7871

:TATTO_1954
goto @TATTO_513

:TATTO_1961
if 
  $tattoo_name == 3
goto_if_false @TATTO_2096
if 
  Player.IsPlaying($player1)
goto_if_false @TATTO_2082
Player.SetControl($player1, False)
Game.SetMinigameInProgress(True)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
Char.ClearTasksImmediately($scplayer)
World.ClearArea($player_x, $player_y, $player_z, 1.0, True)
Hud.DisplayRadar(False)
TIMERA = 0
$tattoo_needleZ = 0
$tattoo_name = 4
goto @TATTO_2096

:TATTO_2082
gosub @TATTO_7871
goto @TATTO_513

:TATTO_2096
if 
  $tattoo_name == 4
goto_if_false @TATTO_2928
if 
  Char.IsDead($temp_var_ammu)
goto_if_false @TATTO_2175
gosub @TATTO_7617
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_2168
gosub @TATTO_7871

:TATTO_2168
goto @TATTO_513

:TATTO_2175
if 
  $tattoo_needleZ == 0
goto_if_false @TATTO_2637
if 
  TIMERA >= 300
goto_if_false @TATTO_2637
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.SetCoordinatesDontWarpGang($scplayer, $keep_offX, $keep_offY, $keep_offZ)
Char.SetHeading($scplayer, $tattoo_needle)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
$players_money, $temp_shopX, $temp_shopY = Char.GetCoordinates($temp_var_ammu)
if or
  not is_float_var_equal_to_float_var $players_money == $thrown_array
  not is_float_var_equal_to_float_var $temp_shopX == $9631
  not is_float_var_equal_to_float_var $temp_shopY == $armour_array
goto_if_false @TATTO_2326
Char.SetCoordinates($temp_var_ammu, $thrown_array, $9631, $armour_array)
Char.SetHeading($temp_var_ammu, $second_menu_weapon)

:TATTO_2326
Camera.SetFixedPosition($cam_offx, $cam_offy, $cam_offz, 0.0, 0.0, 0.0)
Camera.PointAtPoint($flag_tattoo, $tattoo_needleX, $tattoo_needleY, SwitchType.JumpCut)
Player.StoreClothesState
$tattoo_needle_heading, $return_animation_time_tattoo = Player.GetClothesItem($player1, BodyPart.Torso)
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.GiveClothes($player1, 0, 0, BodyPart.Torso)
Player.BuildModel($player1)
Player.StoreClothesState
Task.PlayAnimNonInterruptable($scplayer, "TAT_SIT_IN_P", "TATTOOS", 4.0, False, False, False, True, -1)
$9648 = 0.0
if 
  Char.IsPlayingAnim($scplayer, "TAT_SIT_IN_P")
goto_if_false @TATTO_2514
$9648 = Char.GetAnimCurrentTime($scplayer, "TAT_SIT_IN_P")

:TATTO_2514
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_2577
Object.PlayAnim($shop_keep_heading_tattoo, "TAT_SIT_IN_O", "TATTOOS", 4.0, False, True)
$shopkeeper_attacked_tattoo = 0.0

:TATTO_2577
Task.PlayAnimNonInterruptable($temp_var_ammu, "TAT_SIT_IN_T", "TATTOOS", 4.0, False, False, False, True, -1)
$player_in_view_mode_tattoo = 0.0
$tattoo_needleZ = 1

:TATTO_2637
if 
  $tattoo_needleZ == 1
goto_if_false @TATTO_2928
if 
  Char.IsPlayingAnim($scplayer, "TAT_SIT_IN_P")
goto_if_false @TATTO_2707
$9648 = Char.GetAnimCurrentTime($scplayer, "TAT_SIT_IN_P")

:TATTO_2707
if 
  $9648 == 1.0
goto_if_false @TATTO_2928
Task.PlayAnimNonInterruptable($scplayer, "TAT_SIT_LOOP_P", "TATTOOS", 1000.0, True, False, False, False, -1)
$9648 = 0.0
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_2848
Object.PlayAnim($shop_keep_heading_tattoo, "TAT_SIT_LOOP_O", "TATTOOS", 1000.0, True, False)
$shopkeeper_attacked_tattoo = 0.0

:TATTO_2848
Task.PlayAnimNonInterruptable($temp_var_ammu, "TAT_SIT_LOOP_T", "TATTOOS", 1000.0, True, False, False, False, -1)
$player_in_view_mode_tattoo = 0.0
$foodsmall_junkfud = Char.SetSayContext($temp_var_ammu, 328)
$tattoo_needleZ = 0
$tattoo_name = 5

:TATTO_2928
if 
  $tattoo_name == 5
goto_if_false @TATTO_4723
if 
  Char.IsDead($temp_var_ammu)
goto_if_false @TATTO_3007
gosub @TATTO_7617
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_3000
gosub @TATTO_7871

:TATTO_3000
goto @TATTO_513

:TATTO_3007
if 
  2 > $tattoo_needleZ
goto_if_false @TATTO_3039
gosub @TATTO_12071
gosub @TATTO_10774

:TATTO_3039
$blob_flag_shop = 0
if 
  $tattoo_needleZ == 0
goto_if_false @TATTO_3112
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @TATTO_3088
$tattoo_needleZ = 1

:TATTO_3088
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @TATTO_3112
$tattoo_needleZ = 4

:TATTO_3112
if 
  $tattoo_needleZ == 1
goto_if_false @TATTO_3304
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @TATTO_3304
$shop_main_item_picked_shops = Menu.GetItemAccepted($main_menu_shops)
if 
  0 > $shop_main_item_picked_shops
goto_if_false @TATTO_3180
$shop_main_item_picked_shops = 0

:TATTO_3180
if 
  $shop_main_item_picked_shops == 9
goto_if_false @TATTO_3276
if 
  $main_menu_drawn_shops == 1
goto_if_false @TATTO_3230
Menu.Delete($main_menu_shops)
Text.ClearHelp
$main_menu_drawn_shops = 0

:TATTO_3230
if 
  $9713 == 0
goto_if_false @TATTO_3255
gosub @TATTO_12173

:TATTO_3255
$tattoo_needleZ = 0
$tattoo_name = 8
goto @TATTO_3304

:TATTO_3276
gosub @TATTO_8184
gosub @TATTO_8411
$player_has_tattoo_in_area = 0
gosub @TATTO_13312

:TATTO_3304
if 
  $tattoo_needleZ == 2
goto_if_false @TATTO_3336
$player_has_tattoo_in_area = 0
gosub @TATTO_13833

:TATTO_3336
if 
  $tattoo_needleZ == 3
goto_if_false @TATTO_3416
set_var_int_to_var_int $9696 = $shop_main_item_picked_shops
if 
  $main_menu_drawn_shops == 1
goto_if_false @TATTO_3394
Text.ClearHelp
Menu.Delete($main_menu_shops)
$main_menu_drawn_shops = 0

:TATTO_3394
$9700 = 500
$tattoo_name = 6
$tattoo_needleZ = 0

:TATTO_3416
if 
  $tattoo_needleZ == 4
goto_if_false @TATTO_3522
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @TATTO_3522
if 
  $main_menu_drawn_shops == 1
goto_if_false @TATTO_3483
Menu.Delete($main_menu_shops)
Text.ClearHelp
$main_menu_drawn_shops = 0

:TATTO_3483
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_3515
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:TATTO_3515
$tattoo_needleZ = 5

:TATTO_3522
if 
  $tattoo_needleZ == 5
goto_if_false @TATTO_3836
$player_has_tattoo_in_area = 0
if 
  Char.IsPlayingAnim($scplayer, "TAT_BACK_SIT_LOOP_P")
goto_if_false @TATTO_3657
Task.PlayAnimNonInterruptable($scplayer, "TAT_BACK_SIT_OUT_P", "TATTOOS", 1000.0, False, False, False, True, -1)
$9648 = 0.0
$tattoo_needleZ = 6
goto @TATTO_3836

:TATTO_3657
Task.PlayAnimNonInterruptable($scplayer, "TAT_SIT_OUT_P", "TATTOOS", 1000.0, False, False, False, False, -1)
$9648 = 0.0
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_3775
Object.PlayAnim($shop_keep_heading_tattoo, "TAT_SIT_OUT_O", "TATTOOS", 1000.0, False, True)
$shopkeeper_attacked_tattoo = 0.0

:TATTO_3775
Task.PlayAnimNonInterruptable($temp_var_ammu, "TAT_SIT_OUT_T", "TATTOOS", 1000.0, False, False, False, True, -1)
$player_in_view_mode_tattoo = 0.0
$tattoo_needleZ = 7

:TATTO_3836
if 
  $tattoo_needleZ == 6
goto_if_false @TATTO_4129
if 
  Char.IsPlayingAnim($scplayer, "TAT_BACK_SIT_OUT_P")
goto_if_false @TATTO_3918
$9648 = Char.GetAnimCurrentTime($scplayer, "TAT_BACK_SIT_OUT_P")

:TATTO_3918
if 
  $9648 == 1.0
goto_if_false @TATTO_4129
Task.PlayAnimNonInterruptable($scplayer, "TAT_SIT_OUT_P", "TATTOOS", 1000.0, False, False, False, False, -1)
$9648 = 0.0
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_4057
Object.PlayAnim($shop_keep_heading_tattoo, "TAT_SIT_OUT_O", "TATTOOS", 1000.0, False, True)
$shopkeeper_attacked_tattoo = 0.0

:TATTO_4057
Task.PlayAnimNonInterruptable($temp_var_ammu, "TAT_SIT_OUT_T", "TATTOOS", 1000.0, False, False, False, True, -1)
$foodsmall_junkfud = Char.SetSayContext($temp_var_ammu, 326)
$player_in_view_mode_tattoo = 0.0
$tattoo_needleZ = 7

:TATTO_4129
if 
  $tattoo_needleZ == 7
goto_if_false @TATTO_4440
if 
  Char.IsPlayingAnim($scplayer, "TAT_SIT_OUT_P")
goto_if_false @TATTO_4201
$9648 = Char.GetAnimCurrentTime($scplayer, "TAT_SIT_OUT_P")

:TATTO_4201
if 
  Char.IsPlayingAnim($temp_var_ammu, "TAT_SIT_OUT_T")
goto_if_false @TATTO_4255
$player_in_view_mode_tattoo = Char.GetAnimCurrentTime($temp_var_ammu, "TAT_SIT_OUT_T")

:TATTO_4255
if 
  $player_in_view_mode_tattoo == 1.0
goto_if_false @TATTO_4398
Task.PlayAnimNonInterruptable($temp_var_ammu, "TAT_IDLE_LOOP_T", "TATTOOS", 1000.0, True, False, False, False, -1)
$player_in_view_mode_tattoo = 0.0
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_4398
Object.PlayAnim($shop_keep_heading_tattoo, "TAT_IDLE_LOOP_O", "TATTOOS", 1000.0, True, False)
$shopkeeper_attacked_tattoo = 0.0

:TATTO_4398
if 
  $9648 == 1.0
goto_if_false @TATTO_4440
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$tattoo_needleZ = 8

:TATTO_4440
if 
  $tattoo_needleZ == 8
goto_if_false @TATTO_4723
Player.GiveClothes($player1, $tattoo_needle_heading, $return_animation_time_tattoo, BodyPart.Torso)
Player.BuildModel($player1)
Player.StoreClothesState
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('CLTHNO2')
Player.SetControl($player1, True)
Game.SetMinigameInProgress(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.DisplayRadar(True)
if 
  Char.IsPlayingAnim($temp_var_ammu, "TAT_SIT_OUT_T")
goto_if_false @TATTO_4573
$player_in_view_mode_tattoo = Char.GetAnimCurrentTime($temp_var_ammu, "TAT_SIT_OUT_T")

:TATTO_4573
if 
  $player_in_view_mode_tattoo == 1.0
goto_if_false @TATTO_4716
Task.PlayAnimNonInterruptable($temp_var_ammu, "TAT_IDLE_LOOP_T", "TATTOOS", 1000.0, True, False, False, False, -1)
$player_in_view_mode_tattoo = 0.0
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_4716
Object.PlayAnim($shop_keep_heading_tattoo, "TAT_IDLE_LOOP_O", "TATTOOS", 1000.0, True, False)
$shopkeeper_attacked_tattoo = 0.0

:TATTO_4716
$tattoo_name = 7

:TATTO_4723
if 
  $tattoo_name == 6
goto_if_false @TATTO_6145
if 
  Char.IsDead($temp_var_ammu)
goto_if_false @TATTO_4802
gosub @TATTO_7617
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_4795
gosub @TATTO_7871

:TATTO_4795
goto @TATTO_513

:TATTO_4802
$blob_flag_shop = 0
if 
  1 > $tattoo_needleZ
goto_if_false @TATTO_4834
gosub @TATTO_11383

:TATTO_4834
if 
  $tattoo_needleZ == 0
goto_if_false @TATTO_5030
$9699 = Menu.GetItemSelected($sub_menu_shops)
if 
  0 > $9699
goto_if_false @TATTO_4885
$9699 = 0

:TATTO_4885
if 
  not is_int_var_equal_to_int_var $9700 == $9699
goto_if_false @TATTO_4919
gosub @TATTO_12058
set_var_int_to_var_int $9700 = $9699

:TATTO_4919
gosub @TATTO_15458
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @TATTO_4978
$flag_no_money_shops = 0
$flag_bought_item_already_shops = 0
$bought_menu_drawn_shops = 0
gosub @TATTO_15458
$tattoo_needleZ = 1

:TATTO_4978
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @TATTO_5030
gosub @TATTO_10501
$flag_no_money_shops = 0
$flag_bought_item_already_shops = 0
$bought_menu_drawn_shops = 0
$tattoo_needleZ = 8

:TATTO_5030
if 
  $tattoo_needleZ == 8
goto_if_false @TATTO_5125
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @TATTO_5125
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_5097
Text.ClearHelp
Menu.Delete($sub_menu_shops)
$sub_menu_drawn_shops = 0

:TATTO_5097
gosub @TATTO_12071
gosub @TATTO_10774
$tattoo_needleZ = 0
$tattoo_name = 5

:TATTO_5125
if 
  $tattoo_needleZ == 1
goto_if_false @TATTO_5246
gosub @TATTO_15458
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @TATTO_5246
gosub @TATTO_15458
$shop_sub_item_picked_shops = Menu.GetItemAccepted($sub_menu_shops)
if 
  0 > $shop_sub_item_picked_shops
goto_if_false @TATTO_5207
$shop_sub_item_picked_shops = 0

:TATTO_5207
set_var_int_to_var_int $model_index = $item_model_index($shop_sub_item_picked_shops,12i)
set_var_int_to_var_int $main_menu_selection_ammu = $item_price($shop_sub_item_picked_shops,12i)
$2753 = Player.StoreScore($player1)
$tattoo_needleZ = 2

:TATTO_5246
if 
  $tattoo_needleZ == 2
goto_if_false @TATTO_5948
gosub @TATTO_15458
if 
  is_int_var_greater_or_equal_to_int_var $2753 >= $main_menu_selection_ammu
goto_if_false @TATTO_5875
gosub @TATTO_15458
if 
  not is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @TATTO_5806
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_5348
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:TATTO_5348
$foodsmall_junkfud = Char.SetSayContext($temp_var_ammu, 318)
Shopping.BuyItem($model_index)
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1054)
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_5410
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:TATTO_5410
if 
  $bought_menu_drawn_shops == 0
goto_if_false @TATTO_5778
$bought_menu_shops = Menu.Create('TATTO', 29.0, 25.0, 93.0, 2, False, True, 1)
Menu.SetColumnOrientation($bought_menu_shops, 0, 1)
Menu.SetColumn($bought_menu_shops, 0, 'TATTO', 'BOUGHT', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumnOrientation($bought_menu_shops, 1, 2)
Menu.SetColumn($bought_menu_shops, 1, 'COST', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetItemWithNumber($bought_menu_shops, 1, 0, 'DOLLAR', $main_menu_selection_ammu)
Menu.SetColumnWidth($bought_menu_shops, 0, 140)
Menu.SetColumnWidth($bought_menu_shops, 1, 46)
$bought_menu_drawn_shops = 1

:TATTO_5778
$player_has_tattoo_in_area = 0
gosub @TATTO_14228
$tattoo_needleZ = 3
goto @TATTO_5868

:TATTO_5806
if 
  $flag_bought_item_already_shops == 0
goto_if_false @TATTO_5868
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
Text.PrintNow('CLTHNO2', 5000, 1)
$tattoo_needleZ = 0
$flag_bought_item_already_shops = 1

:TATTO_5868
goto @TATTO_5948

:TATTO_5875
if 
  $flag_no_money_shops == 0
goto_if_false @TATTO_5948
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
$foodsmall_junkfud = Char.SetSayContext($temp_var_ammu, 319)
Text.PrintNow('SHOPNO', 5000, 1)
$tattoo_needleZ = 0
$flag_no_money_shops = 1

:TATTO_5948
if 
  $tattoo_needleZ == 3
goto_if_false @TATTO_5980
$player_has_tattoo_in_area = 0
gosub @TATTO_14370

:TATTO_5980
if 
  $tattoo_needleZ == 4
goto_if_false @TATTO_6019
$player_has_tattoo_in_area = 0
gosub @TATTO_14702
$tattoo_needleZ = 5

:TATTO_6019
if 
  $tattoo_needleZ == 5
goto_if_false @TATTO_6051
$player_has_tattoo_in_area = 0
gosub @TATTO_14840

:TATTO_6051
if 
  $tattoo_needleZ == 6
goto_if_false @TATTO_6145
if 
  $bought_menu_drawn_shops == 1
goto_if_false @TATTO_6099
Menu.Delete($bought_menu_shops)
$bought_menu_drawn_shops = 0

:TATTO_6099
$tattoo_needleZ = 0
$tattoo_name = 5
if 
  2 > $tattoo_needleZ
goto_if_false @TATTO_6145
gosub @TATTO_12071
gosub @TATTO_10774

:TATTO_6145
if 
  $tattoo_name == 7
goto_if_false @TATTO_6712
if 
  Char.IsDead($temp_var_ammu)
goto_if_false @TATTO_6224
gosub @TATTO_7617
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_6217
gosub @TATTO_7871

:TATTO_6217
goto @TATTO_513

:TATTO_6224
if 
  $shop_keep_tattooY == 0
goto_if_false @TATTO_6359
if or
  Char.IsShooting($scplayer)
  Player.IsTargetingChar($player1, $temp_var_ammu)
  Char.HasBeenDamagedByWeapon($temp_var_ammu, WeaponType.AnyWeapon)
goto_if_false @TATTO_6359
$foodsmall_junkfud = Char.SetSayContext($temp_var_ammu, 322)
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_6345
Object.PlayAnim($shop_keep_heading_tattoo, "TAT_DROP_O", "TATTOOS", 1000.0, False, True)
$shopkeeper_attacked_tattoo = 0.0

:TATTO_6345
Task.HandsUp($temp_var_ammu, -2)
$shop_keep_tattooY = 1

:TATTO_6359
if 
  Char.IsPlayingAnim($temp_var_ammu, "TAT_SIT_OUT_T")
goto_if_false @TATTO_6413
$player_in_view_mode_tattoo = Char.GetAnimCurrentTime($temp_var_ammu, "TAT_SIT_OUT_T")

:TATTO_6413
if 
  $player_in_view_mode_tattoo == 1.0
goto_if_false @TATTO_6556
Task.PlayAnimNonInterruptable($temp_var_ammu, "TAT_IDLE_LOOP_T", "TATTOOS", 1000.0, True, False, False, False, -1)
$player_in_view_mode_tattoo = 0.0
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_6556
Object.PlayAnim($shop_keep_heading_tattoo, "TAT_IDLE_LOOP_O", "TATTOOS", 1000.0, True, False)
$shopkeeper_attacked_tattoo = 0.0

:TATTO_6556
if 
  not Char.LocateOnFoot3D($scplayer, $keep_offX, $keep_offY, $keep_offZ, 1.0, 1.0, 4.0, $blob_flag_shop)
goto_if_false @TATTO_6712
$tattoo_name = 2
$tattoo_needleZ = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$9696 = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$9716 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('CLTHNO2')
$blob_flag_shop = 1

:TATTO_6712
if 
  $tattoo_name == 8
goto_if_false @TATTO_7582
if 
  Char.IsDead($temp_var_ammu)
goto_if_false @TATTO_6791
gosub @TATTO_7617
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$sub_menu_selection_ammu
goto_if_false @TATTO_6784
gosub @TATTO_7871

:TATTO_6784
goto @TATTO_513

:TATTO_6791
if 
  1 > $tattoo_needleZ
goto_if_false @TATTO_6834
if 
  $9713 == 0
goto_if_false @TATTO_6834
gosub @TATTO_12173

:TATTO_6834
if 
  $tattoo_needleZ == 0
goto_if_false @TATTO_6914
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @TATTO_6883
$flag_no_money_shops = 0
$tattoo_needleZ = 1

:TATTO_6883
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @TATTO_6914
$flag_no_money_shops = 0
$tattoo_needleZ = 2

:TATTO_6914
if 
  $tattoo_needleZ == 1
goto_if_false @TATTO_7034
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @TATTO_7034
if 
  $9713 == 1
goto_if_false @TATTO_6981
Menu.Delete($9714)
Text.ClearHelp
$9713 = 0

:TATTO_6981
if 
  $main_menu_drawn_shops == 0
goto_if_false @TATTO_7013
gosub @TATTO_12071
gosub @TATTO_10774

:TATTO_7013
$flag_no_money_shops = 0
$tattoo_needleZ = 0
$tattoo_name = 5

:TATTO_7034
if 
  $tattoo_needleZ == 2
goto_if_false @TATTO_7300
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @TATTO_7300
$2753 = Player.StoreScore($player1)
if 
  $2753 >= 400
goto_if_false @TATTO_7227
$9716 = Menu.GetItemAccepted($9714)
if 
  0 > $9716
goto_if_false @TATTO_7129
$9716 = 0

:TATTO_7129
if 
  $9713 == 1
goto_if_false @TATTO_7161
Menu.Delete($9714)
Text.ClearHelp
$9713 = 0

:TATTO_7161
set_var_int_to_var_int $area_to_look_at_shops = $9703($9716,9i)
gosub @TATTO_8411
Player.AddScore($player1, -400)
$foodsmall_junkfud = Char.SetSayContext($temp_var_ammu, 321)
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1054)
$tattoo_needleZ = 3
goto @TATTO_7300

:TATTO_7227
if 
  $flag_no_money_shops == 0
goto_if_false @TATTO_7300
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
$foodsmall_junkfud = Char.SetSayContext($temp_var_ammu, 319)
Text.PrintNow('SHOPNO', 5000, 1)
$tattoo_needleZ = 0
$flag_no_money_shops = 1

:TATTO_7300
if 
  $tattoo_needleZ == 3
goto_if_false @TATTO_7332
$player_has_tattoo_in_area = 1
gosub @TATTO_13312

:TATTO_7332
if 
  $tattoo_needleZ == 4
goto_if_false @TATTO_7364
$player_has_tattoo_in_area = 1
gosub @TATTO_13833

:TATTO_7364
if 
  $tattoo_needleZ == 5
goto_if_false @TATTO_7415
Player.GiveClothes($player1, 0, 0, $area_to_look_at_shops)
$player_has_tattoo_in_area = 1
gosub @TATTO_14228
$tattoo_needleZ = 6

:TATTO_7415
if 
  $tattoo_needleZ == 6
goto_if_false @TATTO_7447
$player_has_tattoo_in_area = 1
gosub @TATTO_14370

:TATTO_7447
if 
  $tattoo_needleZ == 7
goto_if_false @TATTO_7486
$player_has_tattoo_in_area = 1
gosub @TATTO_14702
$tattoo_needleZ = 8

:TATTO_7486
if 
  $tattoo_needleZ == 8
goto_if_false @TATTO_7518
$player_has_tattoo_in_area = 1
gosub @TATTO_14840

:TATTO_7518
if 
  $tattoo_needleZ == 9
goto_if_false @TATTO_7582
$tattoo_needleZ = 0
$tattoo_name = 5
if 
  2 > $tattoo_needleZ
goto_if_false @TATTO_7582
gosub @TATTO_12071
gosub @TATTO_10774

:TATTO_7582
goto @TATTO_7596

:TATTO_7589
gosub @TATTO_7871

:TATTO_7596
goto @TATTO_7610

:TATTO_7603
gosub @TATTO_7871

:TATTO_7610
goto @TATTO_513

:TATTO_7617
if 
  $tattoo_name >= 1
goto_if_false @TATTO_7637
Text.ClearHelp

:TATTO_7637
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('CLTHNO2')
if 
  $main_menu_drawn_shops == 1
goto_if_false @TATTO_7691
Menu.Delete($main_menu_shops)
Text.ClearHelp
$main_menu_drawn_shops = 0

:TATTO_7691
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_7723
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:TATTO_7723
if 
  $9713 == 1
goto_if_false @TATTO_7755
Menu.Delete($9714)
Text.ClearHelp
$9713 = 0

:TATTO_7755
if 
  $bought_menu_drawn_shops == 1
goto_if_false @TATTO_7785
Menu.Delete($bought_menu_shops)
$bought_menu_drawn_shops = 0

:TATTO_7785
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$9696 = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$9716 = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$tattoo_name = 2
$tattoo_needleZ = 0
return 

:TATTO_7871
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('CLTHNO2')
$blob_flag_shop = 1
$shop_keep_tattooY = 0
$tattoo_name = 0
$tattoo_needleZ = 0
if 
  $main_menu_drawn_shops == 1
goto_if_false @TATTO_7953
Menu.Delete($main_menu_shops)
Text.ClearHelp
$main_menu_drawn_shops = 0

:TATTO_7953
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_7985
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:TATTO_7985
if 
  $9713 == 1
goto_if_false @TATTO_8017
Menu.Delete($9714)
Text.ClearHelp
$9713 = 0

:TATTO_8017
if 
  $bought_menu_drawn_shops == 1
goto_if_false @TATTO_8047
Menu.Delete($bought_menu_shops)
$bought_menu_drawn_shops = 0

:TATTO_8047
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$9696 = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$9716 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
if 
  not Char.IsDead($temp_var_ammu)
goto_if_false @TATTO_8138
Char.DetachFromCar($temp_var_ammu)

:TATTO_8138
Object.Delete($shop_keep_heading_tattoo)
Streaming.MarkModelAsNoLongerNeeded(#TATTOO_KIT)
Char.Delete($temp_var_ammu)
Streaming.MarkModelAsNoLongerNeeded($shopkeeper_model_shops)
Txd.Remove
Text.UseCommands(False)
Hud.DisplayRadar(True)
Stat.ShowUpdateStats(True)
Game.SetMinigameInProgress(False)
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
terminate_this_script 
return 

:TATTO_8184
if 
  $shop_main_item_picked_shops == 0
goto_if_false @TATTO_8209
set_var_int_to_constant $area_to_look_at_shops = 4

:TATTO_8209
if 
  $shop_main_item_picked_shops == 1
goto_if_false @TATTO_8234
set_var_int_to_constant $area_to_look_at_shops = 5

:TATTO_8234
if 
  $shop_main_item_picked_shops == 2
goto_if_false @TATTO_8259
set_var_int_to_constant $area_to_look_at_shops = 6

:TATTO_8259
if 
  $shop_main_item_picked_shops == 3
goto_if_false @TATTO_8284
set_var_int_to_constant $area_to_look_at_shops = 7

:TATTO_8284
if 
  $shop_main_item_picked_shops == 4
goto_if_false @TATTO_8309
set_var_int_to_constant $area_to_look_at_shops = 8

:TATTO_8309
if 
  $shop_main_item_picked_shops == 5
goto_if_false @TATTO_8334
set_var_int_to_constant $area_to_look_at_shops = 9

:TATTO_8334
if 
  $shop_main_item_picked_shops == 6
goto_if_false @TATTO_8359
set_var_int_to_constant $area_to_look_at_shops = 10

:TATTO_8359
if 
  $shop_main_item_picked_shops == 7
goto_if_false @TATTO_8384
set_var_int_to_constant $area_to_look_at_shops = 11

:TATTO_8384
if 
  $shop_main_item_picked_shops == 8
goto_if_false @TATTO_8409
set_var_int_to_constant $area_to_look_at_shops = 12

:TATTO_8409
return 

:TATTO_8411
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 4
goto_if_false @TATTO_8646
$area_looked_for_shops = 4
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_ARML_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_ARML_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_ARML_IN_O"
set_var_text_label16 v$9672 = "TAT_ARML_POSE_P"
set_var_text_label16 v$9676 = "TAT_ARML_POSE_T"
set_var_text_label16 v$9680 = "TAT_ARML_POSE_O"
set_var_text_label16 v$9684 = "TAT_ARML_OUT_P"
set_var_text_label16 v$9688 = "TAT_ARML_OUT_T"
set_var_text_label16 v$9692 = "TAT_ARML_OUT_O"

:TATTO_8646
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 5
goto_if_false @TATTO_8881
$area_looked_for_shops = 5
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_ARML_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_ARML_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_ARML_IN_O"
set_var_text_label16 v$9672 = "TAT_ARML_POSE_P"
set_var_text_label16 v$9676 = "TAT_ARML_POSE_T"
set_var_text_label16 v$9680 = "TAT_ARML_POSE_O"
set_var_text_label16 v$9684 = "TAT_ARML_OUT_P"
set_var_text_label16 v$9688 = "TAT_ARML_OUT_T"
set_var_text_label16 v$9692 = "TAT_ARML_OUT_O"

:TATTO_8881
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 6
goto_if_false @TATTO_9116
$area_looked_for_shops = 6
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_ARMR_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_ARMR_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_ARMR_IN_O"
set_var_text_label16 v$9672 = "TAT_ARMR_POSE_P"
set_var_text_label16 v$9676 = "TAT_ARMR_POSE_T"
set_var_text_label16 v$9680 = "TAT_ARMR_POSE_O"
set_var_text_label16 v$9684 = "TAT_ARMR_OUT_P"
set_var_text_label16 v$9688 = "TAT_ARMR_OUT_T"
set_var_text_label16 v$9692 = "TAT_ARMR_OUT_O"

:TATTO_9116
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 7
goto_if_false @TATTO_9351
$area_looked_for_shops = 7
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_ARMR_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_ARMR_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_ARMR_IN_O"
set_var_text_label16 v$9672 = "TAT_ARMR_POSE_P"
set_var_text_label16 v$9676 = "TAT_ARMR_POSE_T"
set_var_text_label16 v$9680 = "TAT_ARMR_POSE_O"
set_var_text_label16 v$9684 = "TAT_ARMR_OUT_P"
set_var_text_label16 v$9688 = "TAT_ARMR_OUT_T"
set_var_text_label16 v$9692 = "TAT_ARMR_OUT_O"

:TATTO_9351
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 8
goto_if_false @TATTO_9586
$area_looked_for_shops = 8
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_BACK_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_BACK_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_BACK_IN_O"
set_var_text_label16 v$9672 = "TAT_BACK_POSE_P"
set_var_text_label16 v$9676 = "TAT_BACK_POSE_T"
set_var_text_label16 v$9680 = "TAT_BACK_POSE_O"
set_var_text_label16 v$9684 = "TAT_BACK_OUT_P"
set_var_text_label16 v$9688 = "TAT_BACK_OUT_T"
set_var_text_label16 v$9692 = "TAT_BACK_OUT_O"

:TATTO_9586
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 9
goto_if_false @TATTO_9812
$area_looked_for_shops = 9
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_CHE_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_CHE_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_CHE_IN_O"
set_var_text_label16 v$9672 = "TAT_CHE_POSE_P"
set_var_text_label16 v$9676 = "TAT_CHE_POSE_T"
set_var_text_label16 v$9680 = "TAT_CHE_POSE_O"
set_var_text_label16 v$9684 = "TAT_CHE_OUT_P"
set_var_text_label16 v$9688 = "TAT_CHE_OUT_T"
set_var_text_label16 v$9692 = "TAT_CHE_OUT_O"

:TATTO_9812
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 10
goto_if_false @TATTO_10038
$area_looked_for_shops = 10
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_CHE_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_CHE_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_CHE_IN_O"
set_var_text_label16 v$9672 = "TAT_CHE_POSE_P"
set_var_text_label16 v$9676 = "TAT_CHE_POSE_T"
set_var_text_label16 v$9680 = "TAT_CHE_POSE_O"
set_var_text_label16 v$9684 = "TAT_CHE_OUT_P"
set_var_text_label16 v$9688 = "TAT_CHE_OUT_T"
set_var_text_label16 v$9692 = "TAT_CHE_OUT_O"

:TATTO_10038
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 11
goto_if_false @TATTO_10264
$area_looked_for_shops = 11
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_CHE_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_BEL_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_BEL_IN_O"
set_var_text_label16 v$9672 = "TAT_CHE_POSE_P"
set_var_text_label16 v$9676 = "TAT_BEL_POSE_T"
set_var_text_label16 v$9680 = "TAT_BEL_POSE_O"
set_var_text_label16 v$9684 = "TAT_CHE_OUT_P"
set_var_text_label16 v$9688 = "TAT_BEL_OUT_T"
set_var_text_label16 v$9692 = "TAT_BEL_OUT_O"

:TATTO_10264
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 12
goto_if_false @TATTO_10499
$area_looked_for_shops = 12
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @TATTO_10501
set_var_text_label16 v$tattoo_heading = "TAT_BACK_IN_P"
set_var_text_label16 v$shop_progress_tattoo = "TAT_BACK_IN_T"
set_var_text_label16 v$model_tattoo2 = "TAT_BACK_IN_O"
set_var_text_label16 v$9672 = "TAT_BACK_POSE_P"
set_var_text_label16 v$9676 = "TAT_BACK_POSE_T"
set_var_text_label16 v$9680 = "TAT_BACK_POSE_O"
set_var_text_label16 v$9684 = "TAT_BACK_OUT_P"
set_var_text_label16 v$9688 = "TAT_BACK_OUT_T"
set_var_text_label16 v$9692 = "TAT_BACK_OUT_O"

:TATTO_10499
return 

:TATTO_10501
$item_no_shops = 0
$9698 = 0

:TATTO_10515
if 
  is_int_var_greater_than_int_var $name_of_shop_out_anim_tattoo > $item_no_shops
goto_if_false @TATTO_10692
$model_index = Shopping.GetItem($item_no_shops)
$modelid_shops = Shopping.GetExtraInfo($model_index, 0)
if 
  is_int_var_equal_to_int_var $modelid_shops == $area_looked_for_shops
goto_if_false @TATTO_10678
set_var_int_to_var_int $item_model_index($9698,12i) = $model_index
s$9634 = Shopping.GetNameOfItem($model_index)
$main_menu_selection_ammu = Shopping.GetPriceOfItem($model_index)
set_var_int_to_var_int $item_price($9698,12i) = $main_menu_selection_ammu
set_var_text_label $item_text_label($9698,12s) = s$9634
if 
  is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @TATTO_10660
$item_hilight_shops($9698,12i) = 0
goto @TATTO_10671

:TATTO_10660
$item_hilight_shops($9698,12i) = 1

:TATTO_10671
$9698 += 1

:TATTO_10678
$item_no_shops += 1
goto @TATTO_10515

:TATTO_10692
set_var_int_to_var_int $temp_var_shops = $9698

:TATTO_10700
if 
  12 > $temp_var_shops
goto_if_false @TATTO_10772
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @TATTO_10700

:TATTO_10772
return 

:TATTO_10774
if 
  $main_menu_drawn_shops == 0
goto_if_false @TATTO_11381
Text.PrintHelpForever('TATTA')
set_var_text_label s$ITEM1 = 'LARMTP'
set_var_text_label s$ITEM2 = 'LARMLW'
set_var_text_label s$ITEM3 = 'RARMTP'
set_var_text_label s$ITEM4 = 'RARMLW'
set_var_text_label s$ITEM5 = 'BACK'
set_var_text_label s$ITEM6 = 'LCHEST'
set_var_text_label s$ITEM7 = 'RCHEST'
set_var_text_label s$ITEM8 = 'BELLY'
set_var_text_label s$ITEM9 = 'LBACK'
if 
  $9702 > 0
goto_if_false @TATTO_10968
set_var_text_label s$ITEM10 = 'TATREM'
goto @TATTO_10982

:TATTO_10968
set_var_text_label s$ITEM10 = 'DUMMY'

:TATTO_10982
set_var_text_label s$ITEM11 = 'DUMMY'
set_var_text_label s$ITEM12 = 'DUMMY'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @TATTO_11072
$main_menu_shops = Menu.Create('TATTO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @TATTO_11313

:TATTO_11072
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @TATTO_11134
$main_menu_shops = Menu.Create('TATTO', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @TATTO_11313

:TATTO_11134
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @TATTO_11196
$main_menu_shops = Menu.Create('TATTO', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @TATTO_11313

:TATTO_11196
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @TATTO_11258
$main_menu_shops = Menu.Create('TATTO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @TATTO_11313

:TATTO_11258
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @TATTO_11313
$main_menu_shops = Menu.Create('TATTO', 29.0, 145.0, 186.0, 1, True, True, 1)

:TATTO_11313
Menu.SetColumnOrientation($main_menu_shops, 1, 1)
Menu.SetColumn($main_menu_shops, 0, 'DUMMY', s$ITEM1, s$ITEM2, s$ITEM3, s$ITEM4, s$ITEM5, s$ITEM6, s$ITEM7, s$ITEM8, s$ITEM9, s$ITEM10, s$ITEM11, s$ITEM12)
$main_menu_drawn_shops = 1

:TATTO_11381
return 

:TATTO_11383
if 
  $sub_menu_drawn_shops == 0
goto_if_false @TATTO_12056
Text.PrintHelpForever('TATTB')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @TATTO_11474
$sub_menu_shops = Menu.Create('TATTO', 29.0, 145.0, 93.0, 2, True, True, 1)
goto @TATTO_11715

:TATTO_11474
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @TATTO_11536
$sub_menu_shops = Menu.Create('TATTO', 29.0, 145.0, 93.0, 2, True, True, 1)
goto @TATTO_11715

:TATTO_11536
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @TATTO_11598
$sub_menu_shops = Menu.Create('TATTO', 29.0, 165.0, 93.0, 2, True, True, 1)
goto @TATTO_11715

:TATTO_11598
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @TATTO_11660
$sub_menu_shops = Menu.Create('TATTO', 29.0, 145.0, 93.0, 2, True, True, 1)
goto @TATTO_11715

:TATTO_11660
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @TATTO_11715
$sub_menu_shops = Menu.Create('TATTO', 29.0, 145.0, 93.0, 2, True, True, 1)

:TATTO_11715
Menu.SetColumnOrientation($sub_menu_shops, 0, 1)
Menu.SetColumn($sub_menu_shops, 0, 'TATTO', s$item_text_label[0], s$item_text_label[1], s$item_text_label[2], s$item_text_label[3], s$item_text_label[4], s$item_text_label[5], s$item_text_label[6], s$item_text_label[7], s$item_text_label[8], s$item_text_label[9], s$item_text_label[10], s$item_text_label[11])
Menu.SetColumnOrientation($sub_menu_shops, 1, 2)
Menu.SetColumn($sub_menu_shops, 1, 'COST', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
$price_counter = 0

:TATTO_11916
if 
  is_int_var_greater_than_int_var $9698 > $price_counter
goto_if_false @TATTO_11975
Menu.SetItemWithNumber($sub_menu_shops, 1, $price_counter, 'DOLLAR', $item_price($price_counter,12i))
$price_counter += 1
goto @TATTO_11916

:TATTO_11975
$temp_var_shops = 0

:TATTO_11982
if 
  is_int_var_greater_than_int_var $9698 > $temp_var_shops
goto_if_false @TATTO_12030
Menu.ActivateItem($sub_menu_shops, $temp_var_shops, $item_hilight_shops($temp_var_shops,12i))
$temp_var_shops += 1
goto @TATTO_11982

:TATTO_12030
Menu.SetColumnWidth($sub_menu_shops, 0, 140)
Menu.SetColumnWidth($sub_menu_shops, 1, 46)
$sub_menu_drawn_shops = 1

:TATTO_12056
return 

:TATTO_12058
Txd.LoadSprite(1, $item_text_label($9699,12s))
return 

:TATTO_12071
$temp_var_shops = 0
$9702 = 0

:TATTO_12085
if 
  9 > $temp_var_shops
goto_if_false @TATTO_12171
set_var_int_to_constant $name_of_object_out_anim_tattoo = 4
add_int_var_to_int_var $name_of_object_out_anim_tattoo += $temp_var_shops
$object_animation_time_tattoo, $shop_keep_animation_time_tattoo = Player.GetClothesItem($player1, $name_of_object_out_anim_tattoo)
if 
  $object_animation_time_tattoo <> 0
goto_if_false @TATTO_12157
$9702 += 1

:TATTO_12157
$temp_var_shops += 1
goto @TATTO_12085

:TATTO_12171
return 

:TATTO_12173
if 
  $9713 == 0
goto_if_false @TATTO_13310
$9715 = 0
$temp_var_shops = 0

:TATTO_12205
if 
  9 > $temp_var_shops
goto_if_false @TATTO_12656
set_var_int_to_constant $name_of_object_out_anim_tattoo = 4
add_int_var_to_int_var $name_of_object_out_anim_tattoo += $temp_var_shops
$object_animation_time_tattoo, $shop_keep_animation_time_tattoo = Player.GetClothesItem($player1, $name_of_object_out_anim_tattoo)
if 
  $object_animation_time_tattoo <> 0
goto_if_false @TATTO_12642
set_var_int_to_var_int $9703($9715,9i) = $name_of_object_out_anim_tattoo
switch_start $name_of_object_out_anim_tattoo {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @TATTO_12635 {caseNum1} 4 {caseLabel1} @TATTO_12410 {caseNum2} 5 {caseLabel2} @TATTO_12435 {caseNum3} 6 {caseLabel3} @TATTO_12460 {caseNum4} 7 {caseLabel4} @TATTO_12485 {caseNum5} 8 {caseLabel5} @TATTO_12510 {caseNum6} 9 {caseLabel6} @TATTO_12535 {caseNum7} 10 {caseLabel7} @TATTO_12560
switch_continued 11 {caseLabel1} @TATTO_12585 {caseNum2} 12 {caseLabel2} @TATTO_12610 {caseNum3} -1 {caseLabel3} @TATTO_12635 {caseNum4} -1 {caseLabel4} @TATTO_12635 {caseNum5} -1 {caseLabel5} @TATTO_12635 {caseNum6} -1 {caseLabel6} @TATTO_12635 {caseNum7} -1 {caseLabel7} @TATTO_12635 {caseNum8} -1 {caseLabel8} @TATTO_12635 {caseNum9} -1 {caseLabel9} @TATTO_12635

:TATTO_12410
set_var_text_label $item_text_label($9715,12s) = 'LARMTP'
goto @TATTO_12635

:TATTO_12435
set_var_text_label $item_text_label($9715,12s) = 'LARMLW'
goto @TATTO_12635

:TATTO_12460
set_var_text_label $item_text_label($9715,12s) = 'RARMTP'
goto @TATTO_12635

:TATTO_12485
set_var_text_label $item_text_label($9715,12s) = 'RARMLW'
goto @TATTO_12635

:TATTO_12510
set_var_text_label $item_text_label($9715,12s) = 'BACK'
goto @TATTO_12635

:TATTO_12535
set_var_text_label $item_text_label($9715,12s) = 'LCHEST'
goto @TATTO_12635

:TATTO_12560
set_var_text_label $item_text_label($9715,12s) = 'RCHEST'
goto @TATTO_12635

:TATTO_12585
set_var_text_label $item_text_label($9715,12s) = 'BELLY'
goto @TATTO_12635

:TATTO_12610
set_var_text_label $item_text_label($9715,12s) = 'LBACK'
goto @TATTO_12635

:TATTO_12635
$9715 += 1

:TATTO_12642
$temp_var_shops += 1
goto @TATTO_12205

:TATTO_12656
set_var_int_to_var_int $temp_var_shops = $9715

:TATTO_12664
if 
  12 > $temp_var_shops
goto_if_false @TATTO_12714
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @TATTO_12664

:TATTO_12714
Text.PrintHelpForever('TATTA')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @TATTO_12787
$9714 = Menu.Create('TATTO', 29.0, 145.0, 93.0, 2, True, True, 1)
goto @TATTO_13028

:TATTO_12787
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @TATTO_12849
$9714 = Menu.Create('TATTO', 29.0, 165.0, 93.0, 2, True, True, 1)
goto @TATTO_13028

:TATTO_12849
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @TATTO_12911
$9714 = Menu.Create('TATTO', 29.0, 165.0, 93.0, 2, True, True, 1)
goto @TATTO_13028

:TATTO_12911
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @TATTO_12973
$9714 = Menu.Create('TATTO', 29.0, 145.0, 93.0, 2, True, True, 1)
goto @TATTO_13028

:TATTO_12973
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @TATTO_13028
$9714 = Menu.Create('TATTO', 29.0, 145.0, 93.0, 2, True, True, 1)

:TATTO_13028
Menu.SetColumnOrientation($9714, 0, 1)
Menu.SetColumn($9714, 0, 'TATTO', s$item_text_label[0], s$item_text_label[1], s$item_text_label[2], s$item_text_label[3], s$item_text_label[4], s$item_text_label[5], s$item_text_label[6], s$item_text_label[7], s$item_text_label[8], s$item_text_label[9], s$item_text_label[10], s$item_text_label[11])
Menu.SetColumnOrientation($9714, 1, 2)
Menu.SetColumn($9714, 1, 'COST', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
$price_counter = 0

:TATTO_13229
if 
  is_int_var_greater_than_int_var $9715 > $price_counter
goto_if_false @TATTO_13284
Menu.SetItemWithNumber($sub_menu_shops, 1, $price_counter, 'DOLLAR', 400)
$price_counter += 1
goto @TATTO_13229

:TATTO_13284
Menu.SetColumnWidth($9714, 0, 140)
Menu.SetColumnWidth($9714, 1, 46)
$9713 = 1

:TATTO_13310
return 

:TATTO_13312
if or
  is_int_var_equal_to_constant $area_to_look_at_shops == 8
  is_int_var_equal_to_constant $area_to_look_at_shops == 12
goto_if_false @TATTO_13586
if 
  not Char.IsPlayingAnim($scplayer, "TAT_BACK_SIT_LOOP_P")
goto_if_false @TATTO_13540
Task.PlayAnimNonInterruptable($scplayer, "TAT_BACK_SIT_IN_P", "TATTOOS", 1000.0, False, False, False, True, -1)
$9648 = 0.0
if 
  Char.IsPlayingAnim($scplayer, "TAT_BACK_SIT_IN_P")
goto_if_false @TATTO_13494
$9648 = Char.GetAnimCurrentTime($scplayer, "TAT_BACK_SIT_IN_P")

:TATTO_13494
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_13526
$tattoo_needleZ = 4
goto @TATTO_13533

:TATTO_13526
$tattoo_needleZ = 2

:TATTO_13533
goto @TATTO_13579

:TATTO_13540
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_13572
$tattoo_needleZ = 5
goto @TATTO_13579

:TATTO_13572
$tattoo_needleZ = 3

:TATTO_13579
goto @TATTO_13831

:TATTO_13586
if 
  Char.IsPlayingAnim($scplayer, "TAT_BACK_SIT_LOOP_P")
goto_if_false @TATTO_13792
Task.PlayAnimNonInterruptable($scplayer, "TAT_BACK_SIT_OUT_P", "TATTOOS", 1000.0, False, False, False, True, -1)
$9648 = 0.0
if 
  Char.IsPlayingAnim($scplayer, "TAT_BACK_SIT_OUT_P")
goto_if_false @TATTO_13746
$9648 = Char.GetAnimCurrentTime($scplayer, "TAT_BACK_SIT_OUT_P")

:TATTO_13746
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_13778
$tattoo_needleZ = 4
goto @TATTO_13785

:TATTO_13778
$tattoo_needleZ = 2

:TATTO_13785
goto @TATTO_13831

:TATTO_13792
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_13824
$tattoo_needleZ = 5
goto @TATTO_13831

:TATTO_13824
$tattoo_needleZ = 3

:TATTO_13831
return 

:TATTO_13833
if or
  is_int_var_equal_to_constant $area_to_look_at_shops == 8
  is_int_var_equal_to_constant $area_to_look_at_shops == 12
goto_if_false @TATTO_14047
if 
  Char.IsPlayingAnim($scplayer, "TAT_BACK_SIT_IN_P")
goto_if_false @TATTO_13920
$9648 = Char.GetAnimCurrentTime($scplayer, "TAT_BACK_SIT_IN_P")

:TATTO_13920
if 
  $9648 == 1.0
goto_if_false @TATTO_14040
Task.PlayAnimNonInterruptable($scplayer, "TAT_BACK_SIT_LOOP_P", "TATTOOS", 1000.0, True, False, False, False, -1)
$9648 = 0.0
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_14033
$tattoo_needleZ = 5
goto @TATTO_14040

:TATTO_14033
$tattoo_needleZ = 3

:TATTO_14040
goto @TATTO_14226

:TATTO_14047
if 
  Char.IsPlayingAnim($scplayer, "TAT_BACK_SIT_OUT_P")
goto_if_false @TATTO_14111
$9648 = Char.GetAnimCurrentTime($scplayer, "TAT_BACK_SIT_OUT_P")

:TATTO_14111
if 
  $9648 == 1.0
goto_if_false @TATTO_14226
Task.PlayAnimNonInterruptable($scplayer, "TAT_SIT_LOOP_P", "TATTOOS", 1000.0, True, False, False, False, -1)
$9648 = 0.0
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_14219
$tattoo_needleZ = 5
goto @TATTO_14226

:TATTO_14219
$tattoo_needleZ = 3

:TATTO_14226
return 

:TATTO_14228
Task.PlayAnimNonInterruptable($scplayer, v$tattoo_heading, "TATTOOS", 1000.0, False, False, False, True, -1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)
$9648 = 0.0
Task.PlayAnimNonInterruptable($temp_var_ammu, v$shop_progress_tattoo, "TATTOOS", 1000.0, False, False, False, True, -1)
$player_in_view_mode_tattoo = 0.0
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_14368
Object.PlayAnim($shop_keep_heading_tattoo, v$model_tattoo2, "TATTOOS", 1000.0, False, True)
$shopkeeper_attacked_tattoo = 0.0

:TATTO_14368
return 

:TATTO_14370
if 
  Char.IsPlayingAnim($scplayer, v$tattoo_heading)
goto_if_false @TATTO_14400
$9648 = Char.GetAnimCurrentTime($scplayer, v$tattoo_heading)

:TATTO_14400
if 
  Char.IsPlayingAnim($temp_var_ammu, v$shop_progress_tattoo)
goto_if_false @TATTO_14430
$9648 = Char.GetAnimCurrentTime($temp_var_ammu, v$shop_progress_tattoo)

:TATTO_14430
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_14476
if 
  Object.IsPlayingAnim($shop_keep_heading_tattoo, v$model_tattoo2)
goto_if_false @TATTO_14476
$shopkeeper_attacked_tattoo = Object.GetAnimCurrentTime($shop_keep_heading_tattoo, v$model_tattoo2)

:TATTO_14476
if 
  $9648 == 1.0
goto_if_false @TATTO_14700
Task.PlayAnimNonInterruptable($scplayer, v$9672, "TATTOOS", 1000.0, True, False, False, False, -1)
$9648 = 0.0
Task.PlayAnimNonInterruptable($temp_var_ammu, v$9676, "TATTOOS", 1000.0, True, False, False, False, -1)
$player_in_view_mode_tattoo = 0.0
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_14633
Object.PlayAnim($shop_keep_heading_tattoo, v$9680, "TATTOOS", 1000.0, True, False)
$shopkeeper_attacked_tattoo = 0.0

:TATTO_14633
Player.StoreClothesState
Player.BuildModel($player1)
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_14686
$tattoo_needleZ = 7
goto @TATTO_14700

:TATTO_14686
gosub @TATTO_10501
$tattoo_needleZ = 4

:TATTO_14700
return 

:TATTO_14702
Task.PlayAnimNonInterruptable($scplayer, v$9684, "TATTOOS", 1000.0, False, False, False, True, -1)
$9648 = 0.0
Task.PlayAnimNonInterruptable($temp_var_ammu, v$9688, "TATTOOS", 1000.0, False, False, False, True, -1)
$player_in_view_mode_tattoo = 0.0
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_14838
Object.PlayAnim($shop_keep_heading_tattoo, v$9692, "TATTOOS", 1000.0, False, True)
$shopkeeper_attacked_tattoo = 0.0

:TATTO_14838
return 

:TATTO_14840
if 
  Char.IsPlayingAnim($scplayer, v$9684)
goto_if_false @TATTO_14870
$9648 = Char.GetAnimCurrentTime($scplayer, v$9684)

:TATTO_14870
if 
  Char.IsPlayingAnim($temp_var_ammu, v$9688)
goto_if_false @TATTO_14900
$player_in_view_mode_tattoo = Char.GetAnimCurrentTime($temp_var_ammu, v$9688)

:TATTO_14900
if 
  Char.IsPlayingAnim($scplayer, "TAT_BACK_OUT_P")
goto_if_false @TATTO_15200
if 
  $9648 == 1.0
goto_if_false @TATTO_15052
Task.PlayAnimNonInterruptable($scplayer, "TAT_BACK_SIT_LOOP_P", "TATTOOS", 1000.0, True, False, False, False, -1)
$9648 = 0.0
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_15045
$tattoo_needleZ = 9
goto @TATTO_15052

:TATTO_15045
$tattoo_needleZ = 6

:TATTO_15052
if 
  $player_in_view_mode_tattoo == 1.0
goto_if_false @TATTO_15193
Task.PlayAnimNonInterruptable($temp_var_ammu, "TAT_SIT_LOOP_T", "TATTOOS", 1000.0, True, False, False, False, -1)
$player_in_view_mode_tattoo = 0.0
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_15193
Object.PlayAnim($shop_keep_heading_tattoo, "TAT_SIT_LOOP_O", "TATTOOS", 1000.0, True, False)
$shopkeeper_attacked_tattoo = 0.0

:TATTO_15193
goto @TATTO_15456

:TATTO_15200
if 
  $9648 == 1.0
goto_if_false @TATTO_15315
Task.PlayAnimNonInterruptable($scplayer, "TAT_SIT_LOOP_P", "TATTOOS", 1000.0, True, False, False, False, -1)
$9648 = 0.0
if 
  $player_has_tattoo_in_area == 1
goto_if_false @TATTO_15308
$tattoo_needleZ = 9
goto @TATTO_15315

:TATTO_15308
$tattoo_needleZ = 6

:TATTO_15315
if 
  $player_in_view_mode_tattoo == 1.0
goto_if_false @TATTO_15456
Task.PlayAnimNonInterruptable($temp_var_ammu, "TAT_SIT_LOOP_T", "TATTOOS", 1000.0, True, False, False, False, -1)
$player_in_view_mode_tattoo = 0.0
if 
  Object.DoesExist($shop_keep_heading_tattoo)
goto_if_false @TATTO_15456
Object.PlayAnim($shop_keep_heading_tattoo, "TAT_SIT_LOOP_O", "TATTOOS", 1000.0, True, False)
$shopkeeper_attacked_tattoo = 0.0

:TATTO_15456
return 

:TATTO_15458
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawRect(280.0, 58.0, 70.0, 70.0, 0, 0, 0, 255)
Hud.SetSpritesDrawBeforeFade(True)
Hud.DrawSprite(1, 280.0, 58.0, 64.0, 64.0, 255, 255, 255, 200)
return 
terminate_this_script 

//-------------External script 62 (BARBER)---------------

:BARB
$unk9747 = 0.0
$flag_viewed_hair = 0.0
$player_walk_barbers = 0.0
$player_task_progress_barber = 0.0
$player_heading_barbers = 0.0
$name_of_anim_barbers = 0.0
$9755 = 0.0
$9756 = 0.0
$9757 = 0.0
$getin_chaircam_offX = 0.0
$getin_chaircam_offY = 0.0
$getin_chaircam_offZ = 0.0
$getin_chaircam_lookat_offX = 0.0
$getin_chaircam_lookat_offY = 0.0
$getin_chaircam_lookat_offZ = 0.0
$chaircam_offX = 0.0
$chaircam_offY = 0.0
$chaircam_offZ = 0.0
$chaircam_lookat_offX = 0.0
$chaircam_lookat_offY = 0.0
$chaircam_lookat_offZ = 0.0
$hairstyle_cam_offX = 0.0
$hairstyle_cam_offY = 0.0
$hairstyle_cam_offZ = 0.0
$hairstyle_cam_lookat_offX = 0.0
$hairstyle_cam_lookat_offY = 0.0
$hairstyle_cam_lookat_offZ = 0.0
$getout_chair_cam_offX = 0.0
$getout_chair_cam_offY = 0.0
$getout_chair_cam_offZ = 0.0
$flag_barber = 0.0
$9743 = 0
$getout_chair_cam_lookat_offX = 0.0
$getout_chair_cam_lookat_offY = 0.0
$getout_chair_cam_lookat_offZ = 0.0
$leave_barb_cam_offX = 0.0
$leave_barb_cam_offY = 0.0
$leave_barb_cam_offZ = 0.0
$9741 = 0
$remove_menu_item_selected = 0
$num_of_hairstyles = 0.0
$unk9728 = 0
$modelid_barber = 0
$component_barber = 0.0
$barber_movein_barbers = 0.0
$return_animation_time_barbers = 0.0
$random_number_barbers = 0.0
$stored_barbers_shop = 0
$flag_food_message = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$walk_offX_barbers = 0
$walk2_offX_barbers = 0
$walk2_offY_barbers = 0
$walk2_offZ_barbers = 0
$barber_shop_offsetY = 0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBERS'
goto_if_false @BARB_551
set_var_int_to_constant $shopkeeper_model_shops = 156

:BARB_551
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER2'
goto_if_false @BARB_584
set_var_int_to_constant $shopkeeper_model_shops = 177

:BARB_584
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER3'
goto_if_false @BARB_617
set_var_int_to_constant $shopkeeper_model_shops = 176

:BARB_617
Streaming.RequestModel($shopkeeper_model_shops)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 27400)
Streaming.LoadAllModelsNow
set_deatharrest_state 0
script_name 'BARB'

:BARB_646
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @BARB_7191
if 
  not is_var_text_label_empty s$shop_name
goto_if_false @BARB_7177
if 
  $modelid_barber > 0
goto_if_false @BARB_744
if 
  Game.HasLanguageChanged
goto_if_false @BARB_744
Text.ClearHelp
Menu.Delete($cost_menu_shops)
Menu.Delete($main_menu_shops)
$cost_menu_drawn_shops = 0
$main_menu_drawn_shops = 0
$current_Language = Game.GetCurrentLanguage()

:BARB_744
if 
  $modelid_barber == 0
goto_if_false @BARB_1008
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBERS'
goto_if_false @BARB_844
$leave_barb_cam_lookat_offX = 0.0
$leave_barb_cam_lookat_offY = 0.0
$leave_barb_cam_lookat_offZ = 0.0
set_var_text_label s$shop_keep_barbers = s$shop_name
$9720 = Shopping.GetNumberOfItems()
$walk_offX_barbers = 0
$modelid_barber = 1

:BARB_844
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER2'
goto_if_false @BARB_926
$leave_barb_cam_lookat_offX = 6.987
$leave_barb_cam_lookat_offY = -61.401
$leave_barb_cam_lookat_offZ = 0.0
set_var_text_label s$shop_keep_barbers = s$shop_name
$9720 = Shopping.GetNumberOfItems()
$walk_offX_barbers = 0
$modelid_barber = 1

:BARB_926
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER3'
goto_if_false @BARB_1008
$leave_barb_cam_lookat_offX = 0.371
$leave_barb_cam_lookat_offY = -31.421
$leave_barb_cam_lookat_offZ = 0.0
set_var_text_label s$shop_keep_barbers = s$shop_name
$9720 = Shopping.GetNumberOfItems()
$walk_offX_barbers = 0
$modelid_barber = 1

:BARB_1008
if 
  $modelid_barber == 1
goto_if_false @BARB_2023
Text.UseCommands(True)
Stat.ShowUpdateStats(False)
Player.StoreClothesState
$keep_offX = 414.3
add_float_var_to_float_var $keep_offX += $leave_barb_cam_lookat_offX
$keep_offY = -19.9
add_float_var_to_float_var $keep_offY += $leave_barb_cam_lookat_offY
$keep_offZ = 1000.806
add_float_var_to_float_var $keep_offZ += $leave_barb_cam_lookat_offZ
$flag_barber = 90.0
$component_barber = 414.3
$component_barber -= 0.027
add_float_var_to_float_var $component_barber += $leave_barb_cam_lookat_offX
$barber_movein_barbers = -19.9
$barber_movein_barbers += 1.898
add_float_var_to_float_var $barber_movein_barbers += $leave_barb_cam_lookat_offY
$return_animation_time_barbers = 1000.86
$random_number_barbers = 180.0
$unk9747 = 412.0009
add_float_var_to_float_var $unk9747 += $leave_barb_cam_lookat_offX
$flag_viewed_hair = -19.8018
add_float_var_to_float_var $flag_viewed_hair += $leave_barb_cam_lookat_offY
$player_walk_barbers = 1001.765
add_float_var_to_float_var $player_walk_barbers += $leave_barb_cam_lookat_offZ
$player_task_progress_barber = 412.8502
add_float_var_to_float_var $player_task_progress_barber += $leave_barb_cam_lookat_offX
$player_heading_barbers = -19.2749
add_float_var_to_float_var $player_heading_barbers += $leave_barb_cam_lookat_offY
$name_of_anim_barbers = 1001.797
add_float_var_to_float_var $name_of_anim_barbers += $leave_barb_cam_lookat_offZ
$9755 = 414.9329
add_float_var_to_float_var $9755 += $leave_barb_cam_lookat_offX
$9756 = -18.4475
add_float_var_to_float_var $9756 += $leave_barb_cam_lookat_offY
$9757 = 1002.286
add_float_var_to_float_var $9757 += $leave_barb_cam_lookat_offZ
$getin_chaircam_offX = 414.0564
add_float_var_to_float_var $getin_chaircam_offX += $leave_barb_cam_lookat_offX
$getin_chaircam_offY = -18.7965
add_float_var_to_float_var $getin_chaircam_offY += $leave_barb_cam_lookat_offY
$getin_chaircam_offZ = 1001.955
add_float_var_to_float_var $getin_chaircam_offZ += $leave_barb_cam_lookat_offZ
$getin_chaircam_lookat_offX = 412.649
add_float_var_to_float_var $getin_chaircam_lookat_offX += $leave_barb_cam_lookat_offX
$getin_chaircam_lookat_offY = -19.7078
add_float_var_to_float_var $getin_chaircam_lookat_offY += $leave_barb_cam_lookat_offY
$getin_chaircam_lookat_offZ = 1001.992
add_float_var_to_float_var $getin_chaircam_lookat_offZ += $leave_barb_cam_lookat_offZ
$chaircam_offX = 413.3581
add_float_var_to_float_var $chaircam_offX += $leave_barb_cam_lookat_offX
$chaircam_offY = -19.0046
add_float_var_to_float_var $chaircam_offY += $leave_barb_cam_lookat_offY
$chaircam_offZ = 1002.043
add_float_var_to_float_var $chaircam_offZ += $leave_barb_cam_lookat_offZ
$chaircam_lookat_offX = 414.5509
add_float_var_to_float_var $chaircam_lookat_offX += $leave_barb_cam_lookat_offX
$chaircam_lookat_offY = -20.8773
add_float_var_to_float_var $chaircam_lookat_offY += $leave_barb_cam_lookat_offY
$chaircam_lookat_offZ = 1001.405
add_float_var_to_float_var $chaircam_lookat_offZ += $leave_barb_cam_lookat_offZ
$hairstyle_cam_offX = 414.0572
add_float_var_to_float_var $hairstyle_cam_offX += $leave_barb_cam_lookat_offX
$hairstyle_cam_offY = -20.025
add_float_var_to_float_var $hairstyle_cam_offY += $leave_barb_cam_lookat_offY
$hairstyle_cam_offZ = 1001.578
add_float_var_to_float_var $hairstyle_cam_offZ += $leave_barb_cam_lookat_offZ
$hairstyle_cam_lookat_offX = 412.5159
add_float_var_to_float_var $hairstyle_cam_lookat_offX += $leave_barb_cam_lookat_offX
$hairstyle_cam_lookat_offY = -21.7447
add_float_var_to_float_var $hairstyle_cam_lookat_offY += $leave_barb_cam_lookat_offY
$hairstyle_cam_lookat_offZ = 1001.946
add_float_var_to_float_var $hairstyle_cam_lookat_offZ += $leave_barb_cam_lookat_offZ
$getout_chair_cam_offX = 412.9438
add_float_var_to_float_var $getout_chair_cam_offX += $leave_barb_cam_lookat_offX
$getout_chair_cam_offY = -20.8411
add_float_var_to_float_var $getout_chair_cam_offY += $leave_barb_cam_lookat_offY
$getout_chair_cam_offZ = 1001.963
add_float_var_to_float_var $getout_chair_cam_offZ += $leave_barb_cam_lookat_offZ
$getout_chair_cam_lookat_offX = 411.957
add_float_var_to_float_var $getout_chair_cam_lookat_offX += $leave_barb_cam_lookat_offX
$getout_chair_cam_lookat_offY = -19.779
add_float_var_to_float_var $getout_chair_cam_lookat_offY += $leave_barb_cam_lookat_offY
$getout_chair_cam_lookat_offZ = 1000.836
add_float_var_to_float_var $getout_chair_cam_lookat_offZ += $leave_barb_cam_lookat_offZ
$leave_barb_cam_offX = 411.795
add_float_var_to_float_var $leave_barb_cam_offX += $leave_barb_cam_lookat_offX
$leave_barb_cam_offY = -23.3
add_float_var_to_float_var $leave_barb_cam_offY += $leave_barb_cam_lookat_offY
$leave_barb_cam_offZ = 1000.836
add_float_var_to_float_var $leave_barb_cam_offZ += $leave_barb_cam_lookat_offZ
$remove_tats_menu_drawn = Char.Create(PedType.CivMale, $shopkeeper_model_shops, $component_barber, $barber_movein_barbers, $return_animation_time_barbers)
Char.SetHeading($remove_tats_menu_drawn, $random_number_barbers)
Char.SetDecisionMaker($remove_tats_menu_drawn, 65542)
Char.SetOnlyDamagedByPlayer($remove_tats_menu_drawn, True)
$tattoo_offsetZ = Sequence.Open()
Task.PlayAnimNonInterruptable(-1, "BRB_IN", "HAIRCUTS", 4.0, False, False, False, False, -1)
Task.PlayAnimNonInterruptable(-1, "BRB_LOOP", "HAIRCUTS", 4.0, True, False, False, False, -1)
Sequence.Close($tattoo_offsetZ)
$hairstyle_name = Sequence.Open()
Task.GoStraightToCoord(-1, $getout_chair_cam_lookat_offX, $getout_chair_cam_lookat_offY, $getout_chair_cam_lookat_offZ, MoveState.Walk, 8000)
Task.GoStraightToCoord(-1, $leave_barb_cam_offX, $leave_barb_cam_offY, $leave_barb_cam_offZ, MoveState.Walk, 8000)
Task.AchieveHeading(-1, 180.0)
Sequence.Close($hairstyle_name)
$walk_offX_barbers = 0
$modelid_barber = 2

:BARB_2023
if 
  $modelid_barber == 2
goto_if_false @BARB_2432
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$shop_keep_barbers
goto_if_false @BARB_2072
gosub @BARB_7404

:BARB_2072
if 
  not Char.IsDead($remove_tats_menu_drawn)
goto_if_false @BARB_2387
if 
  $flag_attacked_keeper_food == 0
goto_if_false @BARB_2335
if or
  Char.IsShooting($scplayer)
  Player.IsTargetingChar($player1, $remove_tats_menu_drawn)
  Char.HasBeenDamagedByWeapon($remove_tats_menu_drawn, WeaponType.AnyWeapon)
goto_if_false @BARB_2174
Char.ClearLookAt($remove_tats_menu_drawn)
$foodsmall_junkfud = Char.SetSayContext($remove_tats_menu_drawn, 322)
Task.HandsUp($remove_tats_menu_drawn, -2)
$flag_attacked_keeper_food = 1
goto @BARB_2328

:BARB_2174
if 
  $walk2_offZ_barbers == 0
goto_if_false @BARB_2243
$barber_shop_offsetX = Streaming.GetAreaVisible()
if 
  $barber_shop_offsetX <> 0
goto_if_false @BARB_2243
Task.LookAtChar($remove_tats_menu_drawn, $scplayer, -2)
$foodsmall_junkfud = Char.SetSayContext($remove_tats_menu_drawn, 325)
$walk2_offZ_barbers = 1

:BARB_2243
$blob_flag_shop = 1
if 
  Char.LocateStoppedOnFoot3D($scplayer, $keep_offX, $keep_offY, $keep_offZ, 1.0, 1.0, 4.0, $blob_flag_shop)
goto_if_false @BARB_2328
if 
  Player.CanStartMission($player1)
goto_if_false @BARB_2328
Char.ClearLookAt($remove_tats_menu_drawn)
$walk_offX_barbers = 0
$modelid_barber = 3

:BARB_2328
goto @BARB_2380

:BARB_2335
gosub @BARB_7205
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$shop_keep_barbers
goto_if_false @BARB_2373
gosub @BARB_7404

:BARB_2373
goto @BARB_646

:BARB_2380
goto @BARB_2432

:BARB_2387
gosub @BARB_7205
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$shop_keep_barbers
goto_if_false @BARB_2425
gosub @BARB_7404

:BARB_2425
goto @BARB_646

:BARB_2432
if 
  $modelid_barber == 3
goto_if_false @BARB_2530
Player.SetControl($player1, False)
Game.SetMinigameInProgress(True)
Hud.DisplayRadar(False)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
Char.ClearTasksImmediately($scplayer)
World.ClearArea($player_x, $player_y, $player_z, 1.0, True)
TIMERA = 0
$walk_offX_barbers = 0
$modelid_barber = 4

:BARB_2530
if 
  $modelid_barber == 4
goto_if_false @BARB_2918
if 
  Char.IsDead($remove_tats_menu_drawn)
goto_if_false @BARB_2609
gosub @BARB_7205
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$shop_keep_barbers
goto_if_false @BARB_2602
gosub @BARB_7404

:BARB_2602
goto @BARB_646

:BARB_2609
if 
  TIMERA >= 300
goto_if_false @BARB_2918
$players_money, $temp_shopX, $temp_shopY = Char.GetCoordinates($remove_tats_menu_drawn)
if or
  not is_float_var_equal_to_float_var $players_money == $component_barber
  not is_float_var_equal_to_float_var $temp_shopX == $barber_movein_barbers
  not is_float_var_equal_to_float_var $temp_shopY == $return_animation_time_barbers
goto_if_false @BARB_2699
Char.SetCoordinates($remove_tats_menu_drawn, $component_barber, $barber_movein_barbers, $return_animation_time_barbers)
Char.SetHeading($remove_tats_menu_drawn, $random_number_barbers)

:BARB_2699
Char.SetCoordinatesDontWarpGang($scplayer, $keep_offX, $keep_offY, $keep_offZ)
Char.SetHeading($scplayer, $flag_barber)
Player.StoreClothesState
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, BodyPart.Head)
Camera.SetFixedPosition($unk9747, $flag_viewed_hair, $player_walk_barbers, 0.0, 0.0, 0.0)
Camera.PointAtPoint($player_task_progress_barber, $player_heading_barbers, $name_of_anim_barbers, SwitchType.JumpCut)
$num_of_hairstyles = 0.0
Task.PlayAnimNonInterruptable($scplayer, "BRB_SIT_IN", "HAIRCUTS", 1000.0, False, False, False, True, -1)
$2753 = Player.StoreScore($player1)
if 
  $flag_changed_hair_intro2 == 0
goto_if_false @BARB_2896
if 
  $flag_player_on_menace_mission == 1
goto_if_false @BARB_2896
if 
  50 > $2753
goto_if_false @BARB_2896
Player.AddScore($player1, 52)

:BARB_2896
Char.PerformSequence($remove_tats_menu_drawn, $tattoo_offsetZ)
$walk_offX_barbers = 0
$modelid_barber = 5

:BARB_2918
if 
  $modelid_barber == 5
goto_if_false @BARB_3187
if 
  Char.IsDead($remove_tats_menu_drawn)
goto_if_false @BARB_2997
gosub @BARB_7205
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$shop_keep_barbers
goto_if_false @BARB_2990
gosub @BARB_7404

:BARB_2990
goto @BARB_646

:BARB_2997
if 
  Char.IsPlayingAnim($scplayer, "BRB_SIT_IN")
goto_if_false @BARB_3045
$num_of_hairstyles = Char.GetAnimCurrentTime($scplayer, "BRB_SIT_IN")

:BARB_3045
if 
  $num_of_hairstyles == 1.0
goto_if_false @BARB_3187
Task.PlayAnimNonInterruptable($scplayer, "BRB_SIT_LOOP", "HAIRCUTS", 1000.0, True, False, False, True, -1)
Camera.SetFixedPosition($9755, $9756, $9757, 0.0, 0.0, 0.0)
Camera.PointAtPoint($getin_chaircam_offX, $getin_chaircam_offY, $getin_chaircam_offZ, SwitchType.JumpCut)
$foodsmall_junkfud = Char.SetSayContext($remove_tats_menu_drawn, 328)
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, BodyPart.Head)
$walk_offX_barbers = 0
$modelid_barber = 6

:BARB_3187
if 
  $modelid_barber == 6
goto_if_false @BARB_5342
if 
  Char.IsDead($remove_tats_menu_drawn)
goto_if_false @BARB_3266
gosub @BARB_7205
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$shop_keep_barbers
goto_if_false @BARB_3259
gosub @BARB_7404

:BARB_3259
goto @BARB_646

:BARB_3266
if 
  1 > $walk_offX_barbers
goto_if_false @BARB_3316
if 
  $main_menu_drawn_shops == 0
goto_if_false @BARB_3316
gosub @BARB_8300
gosub @BARB_8588

:BARB_3316
if 
  $walk_offX_barbers == 0
goto_if_false @BARB_3382
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BARB_3358
$walk_offX_barbers = 10

:BARB_3358
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BARB_3382
$walk_offX_barbers = 1

:BARB_3382
if 
  $walk_offX_barbers == 1
goto_if_false @BARB_3552
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BARB_3552
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_3449
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:BARB_3449
if 
  $bought_menu_drawn_shops == 1
goto_if_false @BARB_3481
Menu.Delete($bought_menu_shops)
Text.ClearHelp
$bought_menu_drawn_shops = 0

:BARB_3481
if 
  $main_menu_drawn_shops == 1
goto_if_false @BARB_3513
Text.ClearHelp
Menu.Delete($main_menu_shops)
$main_menu_drawn_shops = 0

:BARB_3513
if 
  $9741 == 1
goto_if_false @BARB_3545
$walk_offX_barbers = 2
goto @BARB_3552

:BARB_3545
$walk_offX_barbers = 5

:BARB_3552
if 
  $walk_offX_barbers == 2
goto_if_false @BARB_3633
Task.PlayAnimNonInterruptable($remove_tats_menu_drawn, "BRB_CUT_IN", "HAIRCUTS", 4.0, False, False, False, True, -1)
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)
$num_of_hairstyles = 0.0
$walk_offX_barbers = 3

:BARB_3633
if 
  $walk_offX_barbers == 3
goto_if_false @BARB_3828
if 
  Char.IsPlayingAnim($remove_tats_menu_drawn, "BRB_CUT_IN")
goto_if_false @BARB_3699
$num_of_hairstyles = Char.GetAnimCurrentTime($remove_tats_menu_drawn, "BRB_CUT_IN")

:BARB_3699
if 
  $num_of_hairstyles == 1.0
goto_if_false @BARB_3828
Task.PlayAnimNonInterruptable($remove_tats_menu_drawn, "BRB_CUT", "HAIRCUTS", 4.0, False, False, False, False, -1)
Player.RestoreClothesState
Player.BuildModel($player1)
Player.StoreClothesState
Task.PlayAnimNonInterruptable($remove_tats_menu_drawn, "BRB_CUT_OUT", "HAIRCUTS", 4.0, False, False, False, True, -1)
$num_of_hairstyles = 0.0
$walk_offX_barbers = 4

:BARB_3828
if 
  $walk_offX_barbers == 4
goto_if_false @BARB_3924
if 
  Char.IsPlayingAnim($remove_tats_menu_drawn, "BRB_CUT_OUT")
goto_if_false @BARB_3896
$num_of_hairstyles = Char.GetAnimCurrentTime($remove_tats_menu_drawn, "BRB_CUT_OUT")

:BARB_3896
if 
  $num_of_hairstyles == 1.0
goto_if_false @BARB_3924
$walk_offX_barbers = 5

:BARB_3924
if 
  $walk_offX_barbers == 5
goto_if_false @BARB_4090
Task.PlayAnimNonInterruptable($scplayer, "BRB_SIT_OUT", "HAIRCUTS", 1000.0, False, False, False, False, -1)
$num_of_hairstyles = 0.0
Task.PlayAnimNonInterruptable($remove_tats_menu_drawn, "BRB_OUT", "HAIRCUTS", 1000.0, False, False, False, True, -1)
Task.LookAtChar($remove_tats_menu_drawn, $scplayer, -2)
Camera.SetFixedPosition($chaircam_lookat_offX, $chaircam_lookat_offY, $chaircam_lookat_offZ, 0.0, 0.0, 0.0)
Camera.PointAtPoint($hairstyle_cam_offX, $hairstyle_cam_offY, $hairstyle_cam_offZ, SwitchType.JumpCut)
$walk_offX_barbers = 6

:BARB_4090
if 
  $walk_offX_barbers == 6
goto_if_false @BARB_4251
if 
  Char.IsPlayingAnim($scplayer, "BRB_SIT_OUT")
goto_if_false @BARB_4158
$num_of_hairstyles = Char.GetAnimCurrentTime($scplayer, "BRB_SIT_OUT")

:BARB_4158
if 
  $num_of_hairstyles >= 0.8
goto_if_false @BARB_4251
Char.PerformSequence($scplayer, $hairstyle_name)
$foodsmall_junkfud = Char.SetSayContext($remove_tats_menu_drawn, 326)
Camera.SetFixedPosition($hairstyle_cam_lookat_offX, $hairstyle_cam_lookat_offY, $hairstyle_cam_lookat_offZ, 0.0, 0.0, 0.0)
Camera.PointAtPoint($getout_chair_cam_offX, $getout_chair_cam_offY, $getout_chair_cam_offZ, SwitchType.JumpCut)
TIMERA = 0
$walk_offX_barbers = 7

:BARB_4251
if 
  $walk_offX_barbers == 7
goto_if_false @BARB_4391
if 
  $barber_shop_offsetY == 0
goto_if_false @BARB_4317
if 
  TIMERA >= 1500
goto_if_false @BARB_4317
Camera.SetBehindPlayer
Camera.RestoreJumpcut
$barber_shop_offsetY = 1

:BARB_4317
if 
  $modelid_barber > 2
goto_if_false @BARB_4337
Text.ClearHelp

:BARB_4337
$9743 = Char.GetScriptTaskStatus($scplayer, 1560)
if 
  not is_int_var_equal_to_constant $9743 == 7
goto_if_false @BARB_4384
$9743 = Char.GetScriptTaskStatus($scplayer, 1560)
goto @BARB_4391

:BARB_4384
$walk_offX_barbers = 8

:BARB_4391
if 
  $walk_offX_barbers == 8
goto_if_false @BARB_4457
Char.ClearLookAt($remove_tats_menu_drawn)
Char.SetHeading($scplayer, 180.0)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Player.SetControl($player1, True)
Game.SetMinigameInProgress(False)
Hud.DisplayRadar(True)
$barber_shop_offsetY = 0
$walk_offX_barbers = 9

:BARB_4457
if 
  $walk_offX_barbers == 9
goto_if_false @BARB_4647
if 
  not Char.LocateOnFoot3D($scplayer, $keep_offX, $keep_offY, $keep_offZ, 1.0, 1.0, 4.0, True)
goto_if_false @BARB_4573
$flag_in_remove_tattoo_section = 0
$stored_barbers_shop = 0
$9741 = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$barber_shop_offsetY = 0
$walk_offX_barbers = 0
$modelid_barber = 2

:BARB_4573
if 
  $flag_attacked_keeper_food == 0
goto_if_false @BARB_4647
if or
  Char.IsShooting($scplayer)
  Player.IsTargetingChar($player1, $remove_tats_menu_drawn)
  Char.HasBeenDamagedByWeapon($remove_tats_menu_drawn, WeaponType.AnyWeapon)
goto_if_false @BARB_4647
$foodsmall_junkfud = Char.SetSayContext($remove_tats_menu_drawn, 322)
Task.HandsUp($remove_tats_menu_drawn, -2)
$flag_attacked_keeper_food = 1

:BARB_4647
if 
  $walk_offX_barbers == 10
goto_if_false @BARB_4941
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BARB_4941
$remove_menu_item_selected = Menu.GetItemAccepted($main_menu_shops)
if 
  0 > $remove_menu_item_selected
goto_if_false @BARB_4715
$remove_menu_item_selected = 0

:BARB_4715
if 
  $main_menu_drawn_shops == 1
goto_if_false @BARB_4747
Text.ClearHelp
Menu.Delete($main_menu_shops)
$main_menu_drawn_shops = 0

:BARB_4747
$menu_item_no_tats = Shopping.GetItem($remove_menu_item_selected)
s$model_index_barbers = Shopping.GetNameOfItem($menu_item_no_tats)
$remove_menu_tattoo = Shopping.GetPriceOfItem($menu_item_no_tats)
$tattoo_offsetX = Shopping.GetExtraInfo($menu_item_no_tats, 0)
$tattoo_offsetY = Shopping.GetExtraInfo($menu_item_no_tats, 1)
set_var_int_to_var_int $flag_food_message = $remove_menu_tattoo
set_var_text_label s$shop_item_price = s$model_index_barbers
Camera.SetFixedPosition($9755, $9756, $9757, 0.0, 0.0, 0.0)
Camera.PointAtPoint($getin_chaircam_offX, $getin_chaircam_offY, $getin_chaircam_offZ, SwitchType.JumpCut)
Task.PlayAnimNonInterruptable($remove_tats_menu_drawn, "BRB_CUT_IN", "HAIRCUTS", 1000.0, False, False, False, True, -1)
$walk_offY_barbers, $walk_offZ_barbers = Player.GetClothesItem($player1, BodyPart.Head)
if 
  not is_int_var_equal_to_int_var $walk_offY_barbers == $menu_item_no_tats
goto_if_false @BARB_4924
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)

:BARB_4924
$num_of_hairstyles = 0.0
$walk_offX_barbers = 11

:BARB_4941
if 
  $walk_offX_barbers == 11
goto_if_false @BARB_5111
if 
  Char.IsPlayingAnim($remove_tats_menu_drawn, "BRB_CUT_IN")
goto_if_false @BARB_5007
$num_of_hairstyles = Char.GetAnimCurrentTime($remove_tats_menu_drawn, "BRB_CUT_IN")

:BARB_5007
if 
  $num_of_hairstyles == 1.0
goto_if_false @BARB_5111
Task.PlayAnimNonInterruptable($remove_tats_menu_drawn, "BRB_CUT", "HAIRCUTS", 1000.0, False, False, False, True, -1)
Player.GiveClothes($player1, 0, 0, BodyPart.Hat)
Player.GiveClothes($player1, $menu_item_no_tats, $tattoo_offsetX, $tattoo_offsetY)
Player.BuildModel($player1)
$9741 = 1
$walk_offX_barbers = 12

:BARB_5111
if 
  $walk_offX_barbers == 12
goto_if_false @BARB_5189
Task.PlayAnimNonInterruptable($remove_tats_menu_drawn, "BRB_CUT_OUT", "HAIRCUTS", 1000.0, False, False, False, True, -1)
$num_of_hairstyles = 0.0
$walk_offX_barbers = 13

:BARB_5189
if 
  $walk_offX_barbers == 13
goto_if_false @BARB_5342
if 
  Char.IsPlayingAnim($remove_tats_menu_drawn, "BRB_CUT_OUT")
goto_if_false @BARB_5257
$num_of_hairstyles = Char.GetAnimCurrentTime($remove_tats_menu_drawn, "BRB_CUT_OUT")

:BARB_5257
if 
  $num_of_hairstyles == 1.0
goto_if_false @BARB_5342
Task.PlayAnimNonInterruptable($remove_tats_menu_drawn, "BRB_LOOP", "HAIRCUTS", 1000.0, True, False, False, False, -1)
$num_of_hairstyles = 0.0
$walk_offX_barbers = 0
$modelid_barber = 7

:BARB_5342
if 
  $modelid_barber == 7
goto_if_false @BARB_7170
if 
  Char.IsDead($remove_tats_menu_drawn)
goto_if_false @BARB_5421
gosub @BARB_7205
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$shop_keep_barbers
goto_if_false @BARB_5414
gosub @BARB_7404

:BARB_5414
goto @BARB_646

:BARB_5421
if 
  $cost_menu_drawn_shops == 0
goto_if_false @BARB_5464
if 
  1 > $walk_offX_barbers
goto_if_false @BARB_5464
gosub @BARB_7659

:BARB_5464
if 
  $walk_offX_barbers == 0
goto_if_false @BARB_5588
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BARB_5542
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('BARBNO')
$flag_no_money_shops = 0
$flag_bought_item_already_shops = 0
$walk_offX_barbers = 2

:BARB_5542
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BARB_5588
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('BARBNO')
$walk_offX_barbers = 1

:BARB_5588
if 
  $walk_offX_barbers == 1
goto_if_false @BARB_5701
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @BARB_5701
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_5655
Text.ClearHelp
Menu.Delete($cost_menu_shops)
$cost_menu_drawn_shops = 0

:BARB_5655
if 
  $main_menu_drawn_shops == 0
goto_if_false @BARB_5687
gosub @BARB_8300
gosub @BARB_8588

:BARB_5687
$walk_offX_barbers = 0
$modelid_barber = 6

:BARB_5701
if 
  $walk_offX_barbers == 2
goto_if_false @BARB_6825
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @BARB_6825
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$2753 = Player.StoreScore($player1)
if 
  is_int_var_greater_or_equal_to_int_var $2753 >= $remove_menu_tattoo
goto_if_false @BARB_6752
if 
  not is_int_var_equal_to_int_var $player_item_texture_shops == $menu_item_no_tats
goto_if_false @BARB_6672
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_5828
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:BARB_5828
$foodsmall_junkfud = Char.SetSayContext($remove_tats_menu_drawn, 318)
Shopping.BuyItem($menu_item_no_tats)
$stored_barbers_shop = 1
$9741 = 0
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1054)
Player.StoreClothesState
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, BodyPart.Head)
Camera.SetFixedPosition($getin_chaircam_lookat_offX, $getin_chaircam_lookat_offY, $getin_chaircam_lookat_offZ, 0.0, 0.0, 0.0)
Camera.PointAtPoint($chaircam_offX, $chaircam_offY, $chaircam_offZ, SwitchType.JumpCut)
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBERS'
goto_if_false @BARB_6197
if or
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'TASH'
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'GOATEE'
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'BEARD'
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'AFROT'
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'AFROB'
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'AFROGOT'
goto_if_false @BARB_6072
set_var_text_label16 v$barberX = "BRB_BEARD_01"
goto @BARB_6197

:BARB_6072
if 
  $unk9728 > 1
goto_if_false @BARB_6097
$unk9728 = 0

:BARB_6097
if 
  0 > $unk9728
goto_if_false @BARB_6122
$unk9728 = 0

:BARB_6122
if 
  $unk9728 == 0
goto_if_false @BARB_6172
set_var_text_label16 v$barberX = "BRB_HAIR_01"
$unk9728 += 1
goto @BARB_6197

:BARB_6172
set_var_text_label16 v$barberX = "BRB_HAIR_02"
$unk9728 -= 1

:BARB_6197
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER2'
goto_if_false @BARB_6347
if 
  $unk9728 > 1
goto_if_false @BARB_6247
$unk9728 = 0

:BARB_6247
if 
  0 > $unk9728
goto_if_false @BARB_6272
$unk9728 = 0

:BARB_6272
if 
  $unk9728 == 0
goto_if_false @BARB_6322
set_var_text_label16 v$barberX = "BRB_HAIR_01"
$unk9728 += 1
goto @BARB_6347

:BARB_6322
set_var_text_label16 v$barberX = "BRB_HAIR_02"
$unk9728 -= 1

:BARB_6347
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER3'
goto_if_false @BARB_6576
if or
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'BLADBEA'
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'BALDTSH'
  is_var_text_label_equal_to_text_label s$model_index_barbers == 'BALDGOT'
goto_if_false @BARB_6451
set_var_text_label16 v$barberX = "BRB_BEARD_01"
goto @BARB_6576

:BARB_6451
if 
  $unk9728 > 1
goto_if_false @BARB_6476
$unk9728 = 0

:BARB_6476
if 
  0 > $unk9728
goto_if_false @BARB_6501
$unk9728 = 0

:BARB_6501
if 
  $unk9728 == 0
goto_if_false @BARB_6551
set_var_text_label16 v$barberX = "BRB_HAIR_01"
$unk9728 += 1
goto @BARB_6576

:BARB_6551
set_var_text_label16 v$barberX = "BRB_HAIR_02"
$unk9728 -= 1

:BARB_6576
Task.PlayAnimNonInterruptable($remove_tats_menu_drawn, "BRB_BUY", "HAIRCUTS", 1000.0, False, False, False, True, -1)
Task.PlayAnimNonInterruptable($scplayer, v$barberX, "HAIRCUTS", 1000.0, False, False, False, True, -1)
$num_of_hairstyles = 0.0
$walk_offX_barbers = 3
goto @BARB_6745

:BARB_6672
if 
  $flag_bought_item_already_shops == 0
goto_if_false @BARB_6745
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
$foodsmall_junkfud = Char.SetSayContext($remove_tats_menu_drawn, 317)
Text.PrintNow('BARBNO', 5000, 1)
$walk_offX_barbers = 0
$flag_bought_item_already_shops = 1

:BARB_6745
goto @BARB_6825

:BARB_6752
if 
  $flag_no_money_shops == 0
goto_if_false @BARB_6825
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
$foodsmall_junkfud = Char.SetSayContext($remove_tats_menu_drawn, 319)
Text.PrintNow('SHOPNO', 5000, 1)
$walk_offX_barbers = 0
$flag_no_money_shops = 1

:BARB_6825
if 
  $walk_offX_barbers == 3
goto_if_false @BARB_7170
if 
  Char.IsPlayingAnim($scplayer, v$barberX)
goto_if_false @BARB_6873
$num_of_hairstyles = Char.GetAnimCurrentTime($scplayer, v$barberX)

:BARB_6873
if 
  $num_of_hairstyles == 1.0
goto_if_false @BARB_7170
if 
  $bought_menu_drawn_shops == 1
goto_if_false @BARB_6926
Menu.Delete($bought_menu_shops)
Text.ClearHelp
$bought_menu_drawn_shops = 0

:BARB_6926
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_6958
Text.ClearHelp
Menu.Delete($cost_menu_shops)
$cost_menu_drawn_shops = 0

:BARB_6958
Task.PlayAnimNonInterruptable($scplayer, "BRB_SIT_LOOP", "HAIRCUTS", 1000.0, True, False, False, True, -1)
Task.PlayAnimNonInterruptable($remove_tats_menu_drawn, "BRB_LOOP", "HAIRCUTS", 1000.0, True, False, False, False, -1)
if 
  $flag_changed_hair_intro2 == 0
goto_if_false @BARB_7085
if 
  $onmission == 1
goto_if_false @BARB_7085
$flag_changed_hair_intro2 = 1

:BARB_7085
Camera.SetFixedPosition($9755, $9756, $9757, 0.0, 0.0, 0.0)
Camera.PointAtPoint($getin_chaircam_offX, $getin_chaircam_offY, $getin_chaircam_offZ, SwitchType.JumpCut)
if 
  $main_menu_drawn_shops == 0
goto_if_false @BARB_7156
gosub @BARB_8300
gosub @BARB_8588

:BARB_7156
$walk_offX_barbers = 0
$modelid_barber = 6

:BARB_7170
goto @BARB_7184

:BARB_7177
gosub @BARB_7404

:BARB_7184
goto @BARB_7198

:BARB_7191
gosub @BARB_7404

:BARB_7198
goto @BARB_646

:BARB_7205
if 
  $modelid_barber > 0
goto_if_false @BARB_7225
Text.ClearHelp

:BARB_7225
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_7257
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:BARB_7257
if 
  $bought_menu_drawn_shops == 1
goto_if_false @BARB_7289
Menu.Delete($bought_menu_shops)
Text.ClearHelp
$bought_menu_drawn_shops = 0

:BARB_7289
if 
  $main_menu_drawn_shops == 1
goto_if_false @BARB_7321
Text.ClearHelp
Menu.Delete($main_menu_shops)
$main_menu_drawn_shops = 0

:BARB_7321
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('BARBNO')
$modelid_barber = 2
$barber_shop_offsetY = 0
$flag_in_remove_tattoo_section = 0
$stored_barbers_shop = 0
$num_of_hairstyles = 0.0
$9741 = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
return 

:BARB_7404
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('BARBNO')
if 
  $modelid_barber > 0
goto_if_false @BARB_7446
Text.ClearHelp

:BARB_7446
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_7478
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:BARB_7478
if 
  $bought_menu_drawn_shops == 1
goto_if_false @BARB_7510
Menu.Delete($bought_menu_shops)
Text.ClearHelp
$bought_menu_drawn_shops = 0

:BARB_7510
if 
  $main_menu_drawn_shops == 1
goto_if_false @BARB_7542
Text.ClearHelp
Menu.Delete($main_menu_shops)
$main_menu_drawn_shops = 0

:BARB_7542
$walk2_offZ_barbers = 0
$flag_in_remove_tattoo_section = 0
$flag_attacked_keeper_food = 0
$modelid_barber = 0
$stored_barbers_shop = 0
$num_of_hairstyles = 0.0
$9741 = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$barber_shop_offsetY = 0
Sequence.Clear($tattoo_offsetZ)
Sequence.Clear($hairstyle_name)
Streaming.MarkModelAsNoLongerNeeded($shopkeeper_model_shops)
Char.Delete($remove_tats_menu_drawn)
Hud.DisplayRadar(True)
Text.UseCommands(False)
Stat.ShowUpdateStats(True)
Game.SetMinigameInProgress(False)
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
terminate_this_script 
return 

:BARB_7659
if 
  $cost_menu_drawn_shops == 0
goto_if_false @BARB_8298
Text.PrintHelpForever('BARB_H2')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @BARB_7750
$cost_menu_shops = Menu.Create('HAIRCHO', 29.0, 95.0, 93.0, 2, False, True, 1)
goto @BARB_7991

:BARB_7750
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @BARB_7812
$cost_menu_shops = Menu.Create('HAIRCHO', 29.0, 95.0, 93.0, 2, False, True, 1)
goto @BARB_7991

:BARB_7812
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @BARB_7874
$cost_menu_shops = Menu.Create('HAIRCHO', 29.0, 95.0, 93.0, 2, False, True, 1)
goto @BARB_7991

:BARB_7874
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @BARB_7936
$cost_menu_shops = Menu.Create('HAIRCHO', 29.0, 95.0, 93.0, 2, False, True, 1)
goto @BARB_7991

:BARB_7936
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @BARB_7991
$cost_menu_shops = Menu.Create('HAIRCHO', 29.0, 95.0, 93.0, 2, False, True, 1)

:BARB_7991
Menu.SetColumnOrientation($cost_menu_shops, 0, 1)
Menu.SetColumn($cost_menu_shops, 0, 'HAIRSTY', s$model_index_barbers, 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumnOrientation($cost_menu_shops, 1, 2)
Menu.SetColumn($cost_menu_shops, 1, 'COST', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetItemWithNumber($cost_menu_shops, 1, 0, 'DOLLAR', $remove_menu_tattoo)
Menu.SetColumnWidth($cost_menu_shops, 0, 140)
Menu.SetColumnWidth($cost_menu_shops, 1, 46)
$cost_menu_drawn_shops = 1

:BARB_8298
return 

:BARB_8300
$walk2_offX_barbers = 0
$walk2_offY_barbers = 0

:BARB_8314
if 
  is_int_var_greater_than_int_var $9720 > $walk2_offX_barbers
goto_if_false @BARB_8506
$model_index = Shopping.GetItem($walk2_offX_barbers)
$modelid_shops = Shopping.GetExtraInfo($model_index, 0)
$component_shops = Shopping.GetExtraInfo($model_index, 1)
set_var_int_to_var_int $item_model_index($walk2_offY_barbers,12i) = $model_index
s$model_index_barbers = Shopping.GetNameOfItem($model_index)
$remove_menu_tattoo = Shopping.GetPriceOfItem($model_index)
set_var_int_to_var_int $item_price($walk2_offY_barbers,12i) = $remove_menu_tattoo
set_var_text_label $item_text_label($walk2_offY_barbers,12s) = s$model_index_barbers
set_var_int_to_var_int $item_modelid($walk2_offY_barbers,12i) = $modelid_shops
set_var_int_to_var_int $item_component($walk2_offY_barbers,12i) = $component_shops
if 
  is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @BARB_8474
$item_hilight_shops($walk2_offY_barbers,12i) = 0
goto @BARB_8485

:BARB_8474
$item_hilight_shops($walk2_offY_barbers,12i) = 1

:BARB_8485
$walk2_offY_barbers += 1
$walk2_offX_barbers += 1
goto @BARB_8314

:BARB_8506
set_var_int_to_var_int $temp_var_shops = $walk2_offY_barbers

:BARB_8514
if 
  12 > $temp_var_shops
goto_if_false @BARB_8586
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @BARB_8514

:BARB_8586
return 

:BARB_8588
if 
  $main_menu_drawn_shops == 0
goto_if_false @BARB_9261
Text.PrintHelpForever('BARB_H1')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @BARB_8679
$main_menu_shops = Menu.Create('HAIRCHO', 29.0, 145.0, 93.0, 2, True, True, 1)
goto @BARB_8920

:BARB_8679
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @BARB_8741
$main_menu_shops = Menu.Create('HAIRCHO', 29.0, 145.0, 93.0, 2, True, True, 1)
goto @BARB_8920

:BARB_8741
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @BARB_8803
$main_menu_shops = Menu.Create('HAIRCHO', 29.0, 165.0, 93.0, 2, True, True, 1)
goto @BARB_8920

:BARB_8803
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @BARB_8865
$main_menu_shops = Menu.Create('HAIRCHO', 29.0, 145.0, 93.0, 2, True, True, 1)
goto @BARB_8920

:BARB_8865
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @BARB_8920
$main_menu_shops = Menu.Create('HAIRCHO', 29.0, 165.0, 93.0, 2, True, True, 1)

:BARB_8920
Menu.SetColumnOrientation($main_menu_shops, 0, 1)
Menu.SetColumn($main_menu_shops, 0, 'HAIRSTY', s$item_text_label[0], s$item_text_label[1], s$item_text_label[2], s$item_text_label[3], s$item_text_label[4], s$item_text_label[5], s$item_text_label[6], s$item_text_label[7], s$item_text_label[8], s$item_text_label[9], s$item_text_label[10], s$item_text_label[11])
Menu.SetColumnOrientation($main_menu_shops, 1, 2)
Menu.SetColumn($main_menu_shops, 1, 'COST', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
$temp_var_shops = 0

:BARB_9121
if 
  is_int_var_greater_than_int_var $walk2_offY_barbers > $temp_var_shops
goto_if_false @BARB_9180
Menu.SetItemWithNumber($main_menu_shops, 1, $temp_var_shops, 'DOLLAR', $item_price($temp_var_shops,12i))
$temp_var_shops += 1
goto @BARB_9121

:BARB_9180
$temp_var_shops = 0

:BARB_9187
if 
  is_int_var_greater_than_int_var $walk2_offY_barbers > $temp_var_shops
goto_if_false @BARB_9235
Menu.ActivateItem($main_menu_shops, $temp_var_shops, $item_hilight_shops($temp_var_shops,12i))
$temp_var_shops += 1
goto @BARB_9187

:BARB_9235
Menu.SetColumnWidth($main_menu_shops, 0, 140)
Menu.SetColumnWidth($main_menu_shops, 1, 46)
$main_menu_drawn_shops = 1

:BARB_9261
return 
terminate_this_script 

//-------------External script 63 (WARDROBE)---------------

:WARROBE
$9858 = 0
$9862 = 0
$9860 = 0
$9863 = 0
$current_name_of_anim_wardrobe = 0
$price_counter = 0
$item_no_shops = 0
$temp_var_shops = 0
$shop_progress_wardrobe = 0.0
$9865 = 0.0
$9866 = 0.0
$9867 = 0.0
$shop_progress_wardrobe = 0.0
$shop_door_model_wardrobe = 0.0
$main_menu_drawn_wardrobe = 0.0
$main_menu_wardrobe = 0.0
$shop_main_item_picked_wardrobe = 0.0
$number_of_wardrobe_in_shop = 0.0
$number_of_wardrobe_in_area = 0.0
$wardrobe_offX = 0.0
$wardrobe_offY = 0.0
$wardrobe_offZ = 0.0
$wardrobe_door_heading = 0.0
$wardrobe_locateX = 0.0
$wardrobe_locateY = 0.0
$wardrobe_locateZ = 0.0
$wardrobe_heading = 0.0
$wardrobe_camX = 0.0
$wardrobe_camY = 0.0
$player_item_texture_audio_shops = 0
$cut_hair_flag_barber = 0
$shop_main_item_picked_wardrobe = 0.0
$wardrobe_offY = 0.0
$wardrobe_offZ = 0.0
$wardrobe_door_heading = 0.0
$visible_area_shops = 0.0
$flag_restored_camera_barbers = 0.0
$barber_look_shops = 0
$item_no_hairstyles = 0
$player_item_model_audio_shops = 0
$9860 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_player_owned_item_shops = 0
$area_to_look_at_shops = 0
$9935 = 0
$9936 = 0
$9937 = 0
$9938 = 0
$9939 = 0
$9940 = 0
$9941 = 0
$9942 = 0
$9957 = 0
$9955 = 0
$9958 = 0
$9960 = 0
$9961 = 0
$9962 = 0
$9963 = 0
$second_menu_drawn_wardrobe = 0
$second_menu_wardrobe = 0
$second_menu_item_picked_wardrobe = 0
$number_bought_items_in_area = 0
$9859 = -372
Streaming.RequestModel($9859)
Streaming.RequestAnimation("CLOTHES")
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 23804)
Streaming.LoadAllModelsNow
set_deatharrest_state 0
script_name 'WARROBE'

:WARROBE_584
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @WARROBE_6450
$wardrobe_camZ = Streaming.GetAreaVisible()
if 
  $wardrobe_camZ == 14
goto_if_false @WARROBE_6436
if 
  $barber_look_shops > 0
goto_if_false @WARROBE_737
if 
  Game.HasLanguageChanged
goto_if_false @WARROBE_737
Text.ClearHelp
Menu.Delete($9861)
Menu.Delete($9956)
Menu.Delete($9959)
Menu.Delete($9964)
Menu.Delete($cost_menu_shops)
Menu.Delete($bought_menu_shops)
$9860 = 0
$9955 = 0
$9960 = 0
$9963 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$current_Language = Game.GetCurrentLanguage()

:WARROBE_737
if 
  $barber_look_shops == 0
goto_if_false @WARROBE_819
$second_menu_item_picked_wardrobe = 1
$9865 = 43.529
$9866 = 0.694
$9867 = 0.012
$shop_main_item_picked_wardrobe = 90.0
$shop_progress_wardrobe = 0.0
$barber_look_shops = 1

:WARROBE_819
if 
  $barber_look_shops == 1
goto_if_false @WARROBE_1280
if 
  $9858 == 0
goto_if_false @WARROBE_1226
Text.UseCommands(True)
Stat.ShowUpdateStats(False)
$number_of_wardrobe_in_shop = 212.8715
add_float_var_to_float_var $number_of_wardrobe_in_shop += $9865
$number_of_wardrobe_in_area = -42.8156
add_float_var_to_float_var $number_of_wardrobe_in_area += $9866
$wardrobe_offX = 1002.116
add_float_var_to_float_var $wardrobe_offX += $9867
$wardrobe_offY = 213.4791
add_float_var_to_float_var $wardrobe_offY += $9865
$wardrobe_offZ = -42.0238
add_float_var_to_float_var $wardrobe_offZ += $9866
$wardrobe_door_heading = 1002.053
add_float_var_to_float_var $wardrobe_door_heading += $9867
$wardrobe_locateX = 214.5148
add_float_var_to_float_var $wardrobe_locateX += $9865
$wardrobe_locateY = -41.6106
add_float_var_to_float_var $wardrobe_locateY += $9866
$wardrobe_locateZ = 1002.494
add_float_var_to_float_var $wardrobe_locateZ += $9867
$wardrobe_heading = 214.5367
add_float_var_to_float_var $wardrobe_heading += $9865
$wardrobe_camX = -40.6175
add_float_var_to_float_var $wardrobe_camX += $9866
$wardrobe_camY = 1002.609
add_float_var_to_float_var $wardrobe_camY += $9867
$shop_door_model_wardrobe = 214.622
add_float_var_to_float_var $shop_door_model_wardrobe += $9865
$main_menu_drawn_wardrobe = -40.652
add_float_var_to_float_var $main_menu_drawn_wardrobe += $9866
$main_menu_wardrobe = 1001.033
add_float_var_to_float_var $main_menu_wardrobe += $9867
$return_animation_time_clothes = 213.874
add_float_var_to_float_var $return_animation_time_clothes += $9865
$object_animation_time_clothes = -39.811
add_float_var_to_float_var $object_animation_time_clothes += $9866
$flag_player_in_changing_room = 1002.2
add_float_var_to_float_var $flag_player_in_changing_room += $9867
$number_of_hairstyles_in_area = Object.CreateNoOffset($9859, $return_animation_time_clothes, $object_animation_time_clothes, $flag_player_in_changing_room)
Object.SetHeading($number_of_hairstyles_in_area, $shop_progress_wardrobe)
$blob_flag_shop = 1
$9858 = 1

:WARROBE_1226
if 
  $9858 == 1
goto_if_false @WARROBE_1280
if 
  Streaming.HasAnimationLoaded("CLOTHES")
goto_if_false @WARROBE_1280
$9858 = 0
$barber_look_shops = 2

:WARROBE_1280
if 
  $barber_look_shops == 2
goto_if_false @WARROBE_1364
if 
  Char.LocateStoppedOnFoot3D($scplayer, $shop_door_model_wardrobe, $main_menu_drawn_wardrobe, $main_menu_wardrobe, 1.0, 1.0, 4.0, $blob_flag_shop)
goto_if_false @WARROBE_1364
if 
  Player.CanStartMission($player1)
goto_if_false @WARROBE_1364
$barber_look_shops = 3

:WARROBE_1364
if 
  $barber_look_shops == 3
goto_if_false @WARROBE_1499
if 
  Player.IsPlaying($player1)
goto_if_false @WARROBE_1485
Player.SetControl($player1, False)
Game.SetMinigameInProgress(True)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
Char.ClearTasksImmediately($scplayer)
World.ClearArea($player_x, $player_y, $player_z, 1.0, True)
Hud.DisplayRadar(False)
TIMERA = 0
$9858 = 0
$barber_look_shops = 4
goto @WARROBE_1499

:WARROBE_1485
gosub @WARROBE_6798
goto @WARROBE_584

:WARROBE_1499
if 
  $barber_look_shops == 4
goto_if_false @WARROBE_1880
if 
  $9858 == 0
goto_if_false @WARROBE_1785
if 
  TIMERA >= 300
goto_if_false @WARROBE_1785
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.SetCoordinatesDontWarpGang($scplayer, $shop_door_model_wardrobe, $main_menu_drawn_wardrobe, $main_menu_wardrobe)
Char.SetHeading($scplayer, $shop_main_item_picked_wardrobe)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
Camera.SetFixedPosition($number_of_wardrobe_in_shop, $number_of_wardrobe_in_area, $wardrobe_offX, 0.0, 0.0, 0.0)
Camera.PointAtPoint($wardrobe_offY, $wardrobe_offZ, $wardrobe_door_heading, SwitchType.JumpCut)
Task.PlayAnimNonInterruptable($scplayer, "CLO_IN", "CLOTHES", 4.0, False, False, False, True, -1)
$visible_area_shops = 0.0
if 
  Char.IsPlayingAnim($scplayer, "CLO_IN")
goto_if_false @WARROBE_1723
$visible_area_shops = Char.GetAnimCurrentTime($scplayer, "CLO_IN")

:WARROBE_1723
if 
  Object.DoesExist($number_of_hairstyles_in_area)
goto_if_false @WARROBE_1778
Object.PlayAnim($number_of_hairstyles_in_area, "CLO_POSE_OUT_O", "CLOTHES", 4.0, False, True)

:WARROBE_1778
$9858 = 1

:WARROBE_1785
if 
  $9858 == 1
goto_if_false @WARROBE_1880
if 
  Char.IsPlayingAnim($scplayer, "CLO_IN")
goto_if_false @WARROBE_1843
$visible_area_shops = Char.GetAnimCurrentTime($scplayer, "CLO_IN")

:WARROBE_1843
if 
  $visible_area_shops == 1.0
goto_if_false @WARROBE_1880
Player.StoreClothesState
$9858 = 0
$barber_look_shops = 5

:WARROBE_1880
if 
  $barber_look_shops == 5
goto_if_false @WARROBE_2617
if 
  $9860 == 0
goto_if_false @WARROBE_1941
if 
  1 > $9858
goto_if_false @WARROBE_1941
gosub @WARROBE_9292

:WARROBE_1941
$blob_flag_shop = 0
if 
  $9858 == 0
goto_if_false @WARROBE_2014
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @WARROBE_1990
$9858 = 1

:WARROBE_1990
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @WARROBE_2014
$9858 = 2

:WARROBE_2014
if 
  $9858 == 1
goto_if_false @WARROBE_2249
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @WARROBE_2249
$9862 = Menu.GetItemAccepted($9861)
if 
  0 > $9862
goto_if_false @WARROBE_2082
$9862 = 0

:WARROBE_2082
if 
  $9860 == 1
goto_if_false @WARROBE_2114
Menu.Delete($9861)
Text.ClearHelp
$9860 = 0

:WARROBE_2114
if or
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'UNIFORM'
goto_if_false @WARROBE_2203
set_var_text_label16 v$9854 = "CLO_POSE_TORSO"
$9858 = 0
$barber_look_shops = 7
goto @WARROBE_2249

:WARROBE_2203
gosub @WARROBE_7198
if 
  $9955 == 0
goto_if_false @WARROBE_2235
gosub @WARROBE_8122

:WARROBE_2235
$9858 = 0
$barber_look_shops = 6

:WARROBE_2249
if 
  $9858 == 2
goto_if_false @WARROBE_2457
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @WARROBE_2457
if 
  $9860 == 1
goto_if_false @WARROBE_2316
Menu.Delete($9861)
Text.ClearHelp
$9860 = 0

:WARROBE_2316
if 
  $9955 == 1
goto_if_false @WARROBE_2348
Menu.Delete($9956)
Text.ClearHelp
$9955 = 0

:WARROBE_2348
Task.PlayAnimNonInterruptable($scplayer, "CLO_OUT", "CLOTHES", 1000.0, False, False, False, False, -1)
$visible_area_shops = 0.0
if 
  Object.DoesExist($number_of_hairstyles_in_area)
goto_if_false @WARROBE_2450
Object.PlayAnim($number_of_hairstyles_in_area, "CLO_POSE_IN_O", "CLOTHES", 1000.0, False, True)

:WARROBE_2450
$9858 = 5

:WARROBE_2457
if 
  $9858 == 5
goto_if_false @WARROBE_2545
if 
  Char.IsPlayingAnim($scplayer, "CLO_OUT")
goto_if_false @WARROBE_2517
$visible_area_shops = Char.GetAnimCurrentTime($scplayer, "CLO_OUT")

:WARROBE_2517
if 
  $visible_area_shops == 1.0
goto_if_false @WARROBE_2545
$9858 = 6

:WARROBE_2545
if 
  $9858 == 6
goto_if_false @WARROBE_2617
Player.SetControl($player1, True)
Game.SetMinigameInProgress(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.DisplayRadar(True)
$second_menu_wardrobe = 0
$9860 = 0
$9955 = 0
$9960 = 0
$barber_look_shops = 11

:WARROBE_2617
if 
  $barber_look_shops == 6
goto_if_false @WARROBE_3004
if 
  $9955 == 0
goto_if_false @WARROBE_2667
gosub @WARROBE_7198
gosub @WARROBE_8122

:WARROBE_2667
$blob_flag_shop = 0
if 
  $9858 == 0
goto_if_false @WARROBE_2792
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @WARROBE_2716
$9858 = 1

:WARROBE_2716
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @WARROBE_2792
$9957 = Menu.GetItemSelected($9956)
if 
  0 > $9957
goto_if_false @WARROBE_2766
$9957 = 0

:WARROBE_2766
set_var_text_label16 v$9854 = $wardrobe_name($9957,12v)
gosub @WARROBE_8524
$9858 = 2

:WARROBE_2792
if 
  $9858 == 1
goto_if_false @WARROBE_2898
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @WARROBE_2898
$9858 = 0
$barber_look_shops = 5
if 
  $9955 == 1
goto_if_false @WARROBE_2873
Text.ClearHelp
Menu.Delete($9956)
$9955 = 0

:WARROBE_2873
if 
  $9860 == 0
goto_if_false @WARROBE_2898
gosub @WARROBE_9292

:WARROBE_2898
if 
  $9858 == 2
goto_if_false @WARROBE_3004
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @WARROBE_3004
if 
  $9955 == 1
goto_if_false @WARROBE_2965
Text.ClearHelp
Menu.Delete($9956)
$9955 = 0

:WARROBE_2965
if 
  $9960 == 0
goto_if_false @WARROBE_2990
gosub @WARROBE_8835

:WARROBE_2990
$9858 = 0
$barber_look_shops = 7

:WARROBE_3004
if 
  $barber_look_shops == 7
goto_if_false @WARROBE_3711
if 
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
goto_if_false @WARROBE_3154
if 
  $9963 == 0
goto_if_false @WARROBE_3147
gosub @WARROBE_11522
if 
  $wardrobe_cam_pointX == 0
goto_if_false @WARROBE_3147
if 
  $9963 == 1
goto_if_false @WARROBE_3126
Menu.Delete($9964)
Text.ClearHelp
$9963 = 0

:WARROBE_3126
$9858 = 0
$barber_look_shops = 5
goto @WARROBE_584

:WARROBE_3147
goto @WARROBE_3254

:WARROBE_3154
if 
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'UNIFORM'
goto_if_false @WARROBE_3222
if 
  $9960 == 0
goto_if_false @WARROBE_3215
gosub @WARROBE_10908
gosub @WARROBE_8835

:WARROBE_3215
goto @WARROBE_3254

:WARROBE_3222
if 
  $9960 == 0
goto_if_false @WARROBE_3254
gosub @WARROBE_8524
gosub @WARROBE_8835

:WARROBE_3254
if 
  $9858 == 0
goto_if_false @WARROBE_3353
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @WARROBE_3296
$9858 = 1

:WARROBE_3296
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @WARROBE_3353
$9961 = Menu.GetItemSelected($9959)
if 
  0 > $9961
goto_if_false @WARROBE_3346
$9961 = 0

:WARROBE_3346
$9858 = 2

:WARROBE_3353
if 
  $9858 == 1
goto_if_false @WARROBE_3591
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @WARROBE_3591
if 
  $9960 == 1
goto_if_false @WARROBE_3420
Menu.Delete($9959)
Text.ClearHelp
$9960 = 0

:WARROBE_3420
if 
  $9963 == 1
goto_if_false @WARROBE_3452
Menu.Delete($9964)
Text.ClearHelp
$9963 = 0

:WARROBE_3452
if or
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'UNIFORM'
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
goto_if_false @WARROBE_3545
if 
  $9860 == 0
goto_if_false @WARROBE_3524
gosub @WARROBE_9292

:WARROBE_3524
$barber_look_shops = 5
$9858 = 0
goto @WARROBE_3591

:WARROBE_3545
if 
  $9955 == 0
goto_if_false @WARROBE_3577
gosub @WARROBE_7198
gosub @WARROBE_8122

:WARROBE_3577
$9858 = 0
$barber_look_shops = 6

:WARROBE_3591
if 
  $9858 == 2
goto_if_false @WARROBE_3711
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @WARROBE_3711
if 
  $9960 == 1
goto_if_false @WARROBE_3658
Menu.Delete($9959)
Text.ClearHelp
$9960 = 0

:WARROBE_3658
if 
  $9963 == 1
goto_if_false @WARROBE_3690
Menu.Delete($9964)
Text.ClearHelp
$9963 = 0

:WARROBE_3690
$second_menu_wardrobe = 0
$9858 = 0
$barber_look_shops = 8

:WARROBE_3711
if 
  $barber_look_shops == 8
goto_if_false @WARROBE_4589
if 
  $9858 == 0
goto_if_false @WARROBE_4203
if 
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
goto_if_false @WARROBE_3835
$model_index = 0
$modelid_shops = 0
set_var_int_to_var_int $component_shops = $item_component($9961,12i)
set_var_text_label s$barber_shop_offsetZ = $wardrobe_cam_pointY($9961,12s)
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $component_shops)
goto @WARROBE_3879

:WARROBE_3835
set_var_int_to_var_int $model_index = $item_model_index($9961,12i)
set_var_int_to_var_int $modelid_shops = $item_modelid($9961,12i)
set_var_int_to_var_int $component_shops = $area_to_look_at_shops
set_var_text_label s$barber_shop_offsetZ = $wardrobe_cam_pointY($9961,12s)

:WARROBE_3879
if or
  is_int_var_equal_to_constant $component_shops == 13
  is_int_var_equal_to_constant $component_shops == 14
  is_int_var_equal_to_constant $component_shops == 15
  is_int_var_equal_to_constant $component_shops == 16
goto_if_false @WARROBE_3964
Camera.SetFixedPosition($wardrobe_locateX, $wardrobe_locateY, $wardrobe_locateZ, 0.0, 0.0, 0.0)
Camera.PointAtPoint($wardrobe_heading, $wardrobe_camX, $wardrobe_camY, SwitchType.JumpCut)
goto @WARROBE_4026

:WARROBE_3964
Camera.SetFixedPosition($number_of_wardrobe_in_shop, $number_of_wardrobe_in_area, $wardrobe_offX, 0.0, 0.0, 0.0)
Camera.PointAtPoint($wardrobe_offY, $wardrobe_offZ, $wardrobe_door_heading, SwitchType.JumpCut)
if 
  not is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @WARROBE_4026
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)

:WARROBE_4026
if or
  is_int_var_equal_to_constant $component_shops == 0
  is_int_var_equal_to_constant $component_shops == 2
  is_int_var_equal_to_constant $component_shops == 3
goto_if_false @WARROBE_4071
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.StoreClothesState

:WARROBE_4071
Player.GiveClothes($player1, $model_index, $modelid_shops, $component_shops)
Player.BuildModel($player1)
Task.PlayAnimNonInterruptable($scplayer, "CLO_POSE_IN", "CLOTHES", 1000.0, False, False, False, True, -1)
$visible_area_shops = 0.0
if 
  Object.DoesExist($number_of_hairstyles_in_area)
goto_if_false @WARROBE_4196
Object.PlayAnim($number_of_hairstyles_in_area, "CLO_POSE_IN_O", "CLOTHES", 1000.0, False, True)

:WARROBE_4196
$9858 = 1

:WARROBE_4203
if 
  $9858 == 1
goto_if_false @WARROBE_4445
if 
  Char.IsPlayingAnim($scplayer, "CLO_POSE_IN")
goto_if_false @WARROBE_4271
$visible_area_shops = Char.GetAnimCurrentTime($scplayer, "CLO_POSE_IN")

:WARROBE_4271
if 
  $visible_area_shops == 1.0
goto_if_false @WARROBE_4445
if 
  not is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
goto_if_false @WARROBE_4377
Task.PlayAnimNonInterruptable($scplayer, v$9854, "CLOTHES", 1000.0, False, False, False, True, -1)
$visible_area_shops = 0.0
$9858 = 2
goto @WARROBE_4445

:WARROBE_4377
Task.PlayAnimNonInterruptable($scplayer, "CLO_POSE_LOOP", "CLOTHES", 1000.0, True, False, False, False, -1)
$visible_area_shops = 0.0
$barber_look_shops = 9
$9858 = 0

:WARROBE_4445
if 
  $9858 == 2
goto_if_false @WARROBE_4589
if 
  Char.IsPlayingAnim($scplayer, v$9854)
goto_if_false @WARROBE_4493
$visible_area_shops = Char.GetAnimCurrentTime($scplayer, v$9854)

:WARROBE_4493
if 
  $visible_area_shops == 1.0
goto_if_false @WARROBE_4589
gosub @WARROBE_10424
Task.PlayAnimNonInterruptable($scplayer, "CLO_POSE_LOOP", "CLOTHES", 1000.0, True, False, False, False, -1)
$visible_area_shops = 0.0
$barber_look_shops = 9
$9858 = 0

:WARROBE_4589
if 
  $barber_look_shops == 9
goto_if_false @WARROBE_6277
$blob_flag_shop = 0
if 
  $9858 == 0
goto_if_false @WARROBE_4867
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @WARROBE_4699
Text.ClearThisPrint('WARDNO')
Text.ClearThisPrint('WARDNO2')
$flag_bought_item_already_shops = 0
$flag_player_owned_item_shops = 0
$number_bought_items_in_area = 0
$9858 = 1

:WARROBE_4699
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @WARROBE_4867
Text.ClearThisPrint('WARDNO')
Text.ClearThisPrint('WARDNO2')
$flag_bought_item_already_shops = 0
$flag_player_owned_item_shops = 0
$number_bought_items_in_area = 0
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_4791
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:WARROBE_4791
if 
  $second_menu_wardrobe == 0
goto_if_false @WARROBE_4823
$9858 = 3
goto @WARROBE_4867

:WARROBE_4823
if 
  $bought_menu_drawn_shops == 1
goto_if_false @WARROBE_4853
Menu.Delete($bought_menu_shops)
$bought_menu_drawn_shops = 0

:WARROBE_4853
$9858 = 0
$barber_look_shops = 7

:WARROBE_4867
if 
  2 > $9858
goto_if_false @WARROBE_4892
gosub @WARROBE_10424

:WARROBE_4892
if 
  $9858 == 1
goto_if_false @WARROBE_5427
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @WARROBE_5427
if 
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
goto_if_false @WARROBE_5186
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_5117
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_5006
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:WARROBE_5006
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1054)
gosub @WARROBE_10692
$number_bought_items_in_area = 1
Player.StoreClothesState
Player.BuildModel($player1)
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $component_shops)
Task.PlayAnimNonInterruptable($scplayer, "CLO_BUY", "CLOTHES", 4.0, False, False, False, True, -1)
$visible_area_shops = 0.0
$9858 = 2
goto @WARROBE_5179

:WARROBE_5117
if 
  $flag_bought_item_already_shops == 0
goto_if_false @WARROBE_5179
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
Text.PrintNow('WARDNO2', 5000, 1)
$9858 = 0
$flag_bought_item_already_shops = 1

:WARROBE_5179
goto @WARROBE_5427

:WARROBE_5186
if 
  not is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @WARROBE_5365
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_5237
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:WARROBE_5237
Shopping.AddPriceModifier($model_index, 0)
Shopping.BuyItem($model_index)
$number_bought_items_in_area = 1
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1054)
Shopping.RemovePriceModifier($model_index)
gosub @WARROBE_10692
Player.StoreClothesState
Player.BuildModel($player1)
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
Task.PlayAnimNonInterruptable($scplayer, "CLO_BUY", "CLOTHES", 4.0, False, False, False, True, -1)
$visible_area_shops = 0.0
$9858 = 2
goto @WARROBE_5427

:WARROBE_5365
if 
  $flag_bought_item_already_shops == 0
goto_if_false @WARROBE_5427
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
Text.PrintNow('WARDNO', 5000, 1)
$9858 = 0
$flag_bought_item_already_shops = 1

:WARROBE_5427
if 
  $9858 == 2
goto_if_false @WARROBE_5569
if 
  Char.IsPlayingAnim($scplayer, "CLO_BUY")
goto_if_false @WARROBE_5487
$visible_area_shops = Char.GetAnimCurrentTime($scplayer, "CLO_BUY")

:WARROBE_5487
if 
  $visible_area_shops == 1.0
goto_if_false @WARROBE_5569
Task.PlayAnimNonInterruptable($scplayer, "CLO_POSE_LOOP", "CLOTHES", 1000.0, True, False, False, False, -1)
$visible_area_shops = 0.0
$9858 = 3

:WARROBE_5569
if 
  $9858 == 3
goto_if_false @WARROBE_5702
Task.PlayAnimNonInterruptable($scplayer, "CLO_POSE_OUT", "CLOTHES", 4.0, False, False, False, True, -1)
$visible_area_shops = 0.0
if 
  Object.DoesExist($number_of_hairstyles_in_area)
goto_if_false @WARROBE_5695
Object.PlayAnim($number_of_hairstyles_in_area, "CLO_POSE_OUT_O", "CLOTHES", 1000.0, False, True)

:WARROBE_5695
$9858 = 4

:WARROBE_5702
if 
  $9858 == 4
goto_if_false @WARROBE_6277
if 
  Char.IsPlayingAnim($scplayer, "CLO_POSE_OUT")
goto_if_false @WARROBE_5772
$visible_area_shops = Char.GetAnimCurrentTime($scplayer, "CLO_POSE_OUT")

:WARROBE_5772
if 
  $visible_area_shops == 1.0
goto_if_false @WARROBE_6277
Player.RestoreClothesState
Player.BuildModel($player1)
Player.StoreClothesState
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_5834
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:WARROBE_5834
if 
  $bought_menu_drawn_shops == 1
goto_if_false @WARROBE_5864
Menu.Delete($bought_menu_shops)
$bought_menu_drawn_shops = 0

:WARROBE_5864
$second_menu_wardrobe = 1
if 
  $number_bought_items_in_area == 1
goto_if_false @WARROBE_5953
$9858 = 0
$barber_look_shops = 5
if 
  $9860 == 0
goto_if_false @WARROBE_5946
if 
  1 > $9858
goto_if_false @WARROBE_5946
gosub @WARROBE_9292

:WARROBE_5946
goto @WARROBE_6277

:WARROBE_5953
if 
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
goto_if_false @WARROBE_6149
if 
  $9963 == 0
goto_if_false @WARROBE_6142
gosub @WARROBE_11522
if 
  $wardrobe_cam_pointX == 0
goto_if_false @WARROBE_6128
if 
  $9963 == 1
goto_if_false @WARROBE_6057
Menu.Delete($9964)
Text.ClearHelp
$9963 = 0

:WARROBE_6057
$9858 = 0
$barber_look_shops = 5
if 
  $9860 == 0
goto_if_false @WARROBE_6114
if 
  1 > $9858
goto_if_false @WARROBE_6114
gosub @WARROBE_9292

:WARROBE_6114
goto @WARROBE_584
goto @WARROBE_6142

:WARROBE_6128
$9858 = 0
$barber_look_shops = 7

:WARROBE_6142
goto @WARROBE_6277

:WARROBE_6149
if 
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'UNIFORM'
goto_if_false @WARROBE_6231
if 
  $9960 == 0
goto_if_false @WARROBE_6210
gosub @WARROBE_10908
gosub @WARROBE_8835

:WARROBE_6210
$9858 = 0
$barber_look_shops = 7
goto @WARROBE_6277

:WARROBE_6231
if 
  $9960 == 0
goto_if_false @WARROBE_6263
gosub @WARROBE_8524
gosub @WARROBE_8835

:WARROBE_6263
$9858 = 0
$barber_look_shops = 7

:WARROBE_6277
if 
  $barber_look_shops == 11
goto_if_false @WARROBE_6429
if 
  not Char.LocateOnFoot3D($scplayer, $shop_door_model_wardrobe, $main_menu_drawn_wardrobe, $main_menu_wardrobe, 1.0, 1.0, 4.0, $blob_flag_shop)
goto_if_false @WARROBE_6429
$9860 = 0
$9955 = 0
$9960 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$9963 = 0
$9862 = 0
$shop_sub_item_picked_shops = 0
$number_bought_items_in_area = 0
$barber_look_shops = 2
$9858 = 0
$flag_bought_item_already_shops = 0
$blob_flag_shop = 1

:WARROBE_6429
goto @WARROBE_6443

:WARROBE_6436
gosub @WARROBE_6798

:WARROBE_6443
goto @WARROBE_6457

:WARROBE_6450
gosub @WARROBE_6798

:WARROBE_6457
goto @WARROBE_584
if 
  $barber_look_shops >= 1
goto_if_false @WARROBE_6484
Text.ClearHelp

:WARROBE_6484
if 
  $9860 == 1
goto_if_false @WARROBE_6516
Menu.Delete($9861)
Text.ClearHelp
$9860 = 0

:WARROBE_6516
if 
  $9955 == 1
goto_if_false @WARROBE_6548
Menu.Delete($9956)
Text.ClearHelp
$9955 = 0

:WARROBE_6548
if 
  $9960 == 1
goto_if_false @WARROBE_6580
Menu.Delete($9959)
Text.ClearHelp
$9960 = 0

:WARROBE_6580
if 
  $9963 == 1
goto_if_false @WARROBE_6612
Menu.Delete($9964)
Text.ClearHelp
$9963 = 0

:WARROBE_6612
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_6644
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:WARROBE_6644
if 
  $bought_menu_drawn_shops == 1
goto_if_false @WARROBE_6676
Menu.Delete($bought_menu_shops)
Text.ClearHelp
$bought_menu_drawn_shops = 0

:WARROBE_6676
Text.ClearThisPrint('WARDNO')
Text.ClearThisPrint('WARDNO2')
$9860 = 0
$9955 = 0
$9960 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$9963 = 0
$9862 = 0
$shop_sub_item_picked_shops = 0
$flag_bought_item_already_shops = 0
$flag_player_owned_item_shops = 0
$number_bought_items_in_area = 0
$9858 = 0
$second_menu_wardrobe = 0
$barber_look_shops = 2
return 

:WARROBE_6798
if 
  $9860 == 1
goto_if_false @WARROBE_6830
Menu.Delete($9861)
Text.ClearHelp
$9860 = 0

:WARROBE_6830
if 
  $9955 == 1
goto_if_false @WARROBE_6862
Menu.Delete($9956)
Text.ClearHelp
$9955 = 0

:WARROBE_6862
if 
  $9960 == 1
goto_if_false @WARROBE_6894
Menu.Delete($9959)
Text.ClearHelp
$9960 = 0

:WARROBE_6894
if 
  $9963 == 1
goto_if_false @WARROBE_6926
Menu.Delete($9964)
Text.ClearHelp
$9963 = 0

:WARROBE_6926
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_6958
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:WARROBE_6958
if 
  $bought_menu_drawn_shops == 1
goto_if_false @WARROBE_6990
Menu.Delete($bought_menu_shops)
Text.ClearHelp
$bought_menu_drawn_shops = 0

:WARROBE_6990
if 
  $barber_look_shops >= 1
goto_if_false @WARROBE_7010
Text.ClearHelp

:WARROBE_7010
Text.ClearThisPrint('WARDNO')
Text.ClearThisPrint('WARDNO2')
$9860 = 0
$9955 = 0
$9960 = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$9963 = 0
$9862 = 0
$shop_sub_item_picked_shops = 0
$number_bought_items_in_area = 0
$blob_flag_shop = 1
$item_no_hairstyles = 0
$flag_bought_item_already_shops = 0
$flag_player_owned_item_shops = 0
$9858 = 0
$barber_look_shops = 0
$second_menu_wardrobe = 0
Object.Delete($number_of_hairstyles_in_area)
Streaming.MarkModelAsNoLongerNeeded($9859)
Streaming.RemoveAnimation("CLOTHES")
Shopping.ClearLoaded
Text.UseCommands(False)
Hud.DisplayRadar(True)
Stat.ShowUpdateStats(True)
Game.SetMinigameInProgress(False)
$second_menu_item_picked_wardrobe = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
terminate_this_script 
return 

:WARROBE_7198
$9935 = 0
$9936 = 0
$9937 = 0
$9938 = 0
$9939 = 0
$9940 = 0
$9941 = 0
Shopping.Load($9911($9862,12s))
Shopping.LoadPrices("CLOTHES")
$9863 = Shopping.GetNumberOfItems()
$temp_var_shops = 0
$wardrobe_cam_pointX = 0

:WARROBE_7286
if 
  is_int_var_greater_than_int_var $9863 > $temp_var_shops
goto_if_false @WARROBE_8062
$model_index = Shopping.GetItem($temp_var_shops)
$component_shops = Shopping.GetExtraInfo($model_index, 1)
if 
  Shopping.HasPlayerBoughtItem($model_index)
goto_if_false @WARROBE_8048
switch_start $component_shops {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @WARROBE_8048 {caseNum1} 0 {caseLabel1} @WARROBE_7402 {caseNum2} 2 {caseLabel2} @WARROBE_7495 {caseNum3} 3 {caseLabel3} @WARROBE_7587 {caseNum4} 13 {caseLabel4} @WARROBE_7680 {caseNum5} 14 {caseLabel5} @WARROBE_7773 {caseNum6} 15 {caseLabel6} @WARROBE_7866 {caseNum7} 16 {caseLabel7} @WARROBE_7957

:WARROBE_7402
if 
  $9935 == 0
goto_if_false @WARROBE_7488
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'TORSO'
set_var_int_to_constant $9943($wardrobe_cam_pointX,12i) = 0
set_var_text_label16 $wardrobe_name($wardrobe_cam_pointX,12v) = "CLO_POSE_TORSO"
$wardrobe_cam_pointX += 1
$9935 = 1

:WARROBE_7488
goto @WARROBE_8048

:WARROBE_7495
if 
  $9936 == 0
goto_if_false @WARROBE_7580
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'LEGS'
set_var_int_to_constant $9943($wardrobe_cam_pointX,12i) = 2
set_var_text_label16 $wardrobe_name($wardrobe_cam_pointX,12v) = "CLO_POSE_LEGS"
$wardrobe_cam_pointX += 1
$9936 = 1

:WARROBE_7580
goto @WARROBE_8048

:WARROBE_7587
if 
  $9937 == 0
goto_if_false @WARROBE_7673
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'FEET'
set_var_int_to_constant $9943($wardrobe_cam_pointX,12i) = 3
set_var_text_label16 $wardrobe_name($wardrobe_cam_pointX,12v) = "CLO_POSE_SHOES"
$wardrobe_cam_pointX += 1
$9937 = 1

:WARROBE_7673
goto @WARROBE_8048

:WARROBE_7680
if 
  $9938 == 0
goto_if_false @WARROBE_7766
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'CHAINS'
set_var_int_to_constant $9943($wardrobe_cam_pointX,12i) = 13
set_var_text_label16 $wardrobe_name($wardrobe_cam_pointX,12v) = "CLO_POSE_TORSO"
$wardrobe_cam_pointX += 1
$9938 = 1

:WARROBE_7766
goto @WARROBE_8048

:WARROBE_7773
if 
  $9939 == 0
goto_if_false @WARROBE_7859
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'WATCHES'
set_var_int_to_constant $9943($wardrobe_cam_pointX,12i) = 14
set_var_text_label16 $wardrobe_name($wardrobe_cam_pointX,12v) = "CLO_POSE_WATCH"
$wardrobe_cam_pointX += 1
$9939 = 1

:WARROBE_7859
goto @WARROBE_8048

:WARROBE_7866
if 
  $9940 == 0
goto_if_false @WARROBE_7950
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHADES'
set_var_int_to_constant $9943($wardrobe_cam_pointX,12i) = 15
set_var_text_label16 $wardrobe_name($wardrobe_cam_pointX,12v) = "CLO_POSE_HAT"
$wardrobe_cam_pointX += 1
$9940 = 1

:WARROBE_7950
goto @WARROBE_8048

:WARROBE_7957
if 
  $9941 == 0
goto_if_false @WARROBE_8041
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'HATS'
set_var_int_to_constant $9943($wardrobe_cam_pointX,12i) = 16
set_var_text_label16 $wardrobe_name($wardrobe_cam_pointX,12v) = "CLO_POSE_HAT"
$wardrobe_cam_pointX += 1
$9941 = 1

:WARROBE_8041
goto @WARROBE_8048

:WARROBE_8048
$temp_var_shops += 1
goto @WARROBE_7286

:WARROBE_8062
set_var_int_to_var_int $temp_var_shops = $wardrobe_cam_pointX

:WARROBE_8070
if 
  12 > $temp_var_shops
goto_if_false @WARROBE_8120
set_var_text_label $wardrobe_cam_pointY($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @WARROBE_8070

:WARROBE_8120
return 

:WARROBE_8122
if 
  $9955 == 0
goto_if_false @WARROBE_8522
Text.PrintHelpForever('WARDH2')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @WARROBE_8213
$9956 = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @WARROBE_8454

:WARROBE_8213
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @WARROBE_8275
$9956 = Menu.Create('CLOTCHO', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @WARROBE_8454

:WARROBE_8275
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @WARROBE_8337
$9956 = Menu.Create('CLOTCHO', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @WARROBE_8454

:WARROBE_8337
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @WARROBE_8399
$9956 = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @WARROBE_8454

:WARROBE_8399
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @WARROBE_8454
$9956 = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)

:WARROBE_8454
Menu.SetColumnOrientation($9956, 0, 1)
Menu.SetColumn($9956, 0, 'DUMMY', s$wardrobe_cam_pointY[0], s$wardrobe_cam_pointY[1], s$wardrobe_cam_pointY[2], s$wardrobe_cam_pointY[3], s$wardrobe_cam_pointY[4], s$wardrobe_cam_pointY[5], s$wardrobe_cam_pointY[6], s$wardrobe_cam_pointY[7], s$wardrobe_cam_pointY[8], s$wardrobe_cam_pointY[9], s$wardrobe_cam_pointY[10], s$wardrobe_cam_pointY[11])
$9955 = 1

:WARROBE_8522
return 

:WARROBE_8524
$temp_var_shops = 0
$wardrobe_cam_pointX = 0
$9958 = 0
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $9943($9957,12i))
$9863 = Shopping.GetNumberOfItems()

:WARROBE_8568
if 
  is_int_var_greater_than_int_var $9863 > $temp_var_shops
goto_if_false @WARROBE_8775
$model_index = Shopping.GetItem($temp_var_shops)
$modelid_shops = Shopping.GetExtraInfo($model_index, 0)
$component_shops = Shopping.GetExtraInfo($model_index, 1)
if 
  Shopping.HasPlayerBoughtItem($model_index)
goto_if_false @WARROBE_8761
if 
  is_int_var_equal_to_int_var $component_shops == $9943($9957,12i)
goto_if_false @WARROBE_8761
set_var_int_to_var_int $item_model_index($9958,12i) = $model_index
s$barber_shop_offsetZ = Shopping.GetNameOfItem($model_index)
set_var_text_label $wardrobe_cam_pointY($9958,12s) = s$barber_shop_offsetZ
set_var_int_to_var_int $item_modelid($9958,12i) = $modelid_shops
set_var_int_to_var_int $area_to_look_at_shops = $component_shops
if 
  is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @WARROBE_8743
$item_hilight_shops($9958,12i) = 0
goto @WARROBE_8754

:WARROBE_8743
$item_hilight_shops($9958,12i) = 1

:WARROBE_8754
$9958 += 1

:WARROBE_8761
$temp_var_shops += 1
goto @WARROBE_8568

:WARROBE_8775
set_var_int_to_var_int $temp_var_shops = $9958

:WARROBE_8783
if 
  12 > $temp_var_shops
goto_if_false @WARROBE_8833
set_var_text_label $wardrobe_cam_pointY($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @WARROBE_8783

:WARROBE_8833
return 

:WARROBE_8835
if 
  $9960 == 0
goto_if_false @WARROBE_9290
Text.PrintHelpForever('WARDH3')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @WARROBE_8926
$9959 = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @WARROBE_9167

:WARROBE_8926
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @WARROBE_8988
$9959 = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @WARROBE_9167

:WARROBE_8988
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @WARROBE_9050
$9959 = Menu.Create('CLOTCHO', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @WARROBE_9167

:WARROBE_9050
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @WARROBE_9112
$9959 = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @WARROBE_9167

:WARROBE_9112
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @WARROBE_9167
$9959 = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)

:WARROBE_9167
Menu.SetColumnOrientation($9959, 0, 1)
Menu.SetColumn($9959, 0, 'DUMMY', s$wardrobe_cam_pointY[0], s$wardrobe_cam_pointY[1], s$wardrobe_cam_pointY[2], s$wardrobe_cam_pointY[3], s$wardrobe_cam_pointY[4], s$wardrobe_cam_pointY[5], s$wardrobe_cam_pointY[6], s$wardrobe_cam_pointY[7], s$wardrobe_cam_pointY[8], s$wardrobe_cam_pointY[9], s$wardrobe_cam_pointY[10], s$wardrobe_cam_pointY[11])
$temp_var_shops = 0

:WARROBE_9235
if 
  is_int_var_greater_than_int_var $9958 > $temp_var_shops
goto_if_false @WARROBE_9283
Menu.ActivateItem($9959, $temp_var_shops, $item_hilight_shops($temp_var_shops,12i))
$temp_var_shops += 1
goto @WARROBE_9235

:WARROBE_9283
$9960 = 1

:WARROBE_9290
return 

:WARROBE_9292
if 
  $9860 == 0
goto_if_false @WARROBE_10422
gosub @WARROBE_11522
if 
  $9963 == 1
goto_if_false @WARROBE_9349
Menu.Delete($9964)
Text.ClearHelp
$9963 = 0

:WARROBE_9349
if 
  $wardrobe_cam_pointX == 0
goto_if_false @WARROBE_9381
$second_menu_drawn_wardrobe = 0
goto @WARROBE_9388

:WARROBE_9381
$second_menu_drawn_wardrobe = 1

:WARROBE_9388
$wardrobe_cam_pointX = 0
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @WARROBE_9457
$9861 = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @WARROBE_9698

:WARROBE_9457
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @WARROBE_9519
$9861 = Menu.Create('CLOTCHO', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @WARROBE_9698

:WARROBE_9519
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @WARROBE_9581
$9861 = Menu.Create('CLOTCHO', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @WARROBE_9698

:WARROBE_9581
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @WARROBE_9643
$9861 = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @WARROBE_9698

:WARROBE_9643
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @WARROBE_9698
$9861 = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)

:WARROBE_9698
Menu.SetColumnOrientation($9861, 0, 1)
if 
  $flag_bought_from_binco == 1
goto_if_false @WARROBE_9768
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP1'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'CSCHP'
$wardrobe_cam_pointX += 1

:WARROBE_9768
if 
  $flag_bought_from_prolapse == 1
goto_if_false @WARROBE_9829
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP2'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'CSSPRT'
$wardrobe_cam_pointX += 1

:WARROBE_9829
if 
  $flag_bought_from_suburban == 1
goto_if_false @WARROBE_9890
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP3'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'LACS1'
$wardrobe_cam_pointX += 1

:WARROBE_9890
if 
  $flag_bought_from_zip == 1
goto_if_false @WARROBE_9951
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP4'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'CLOTHGP'
$wardrobe_cam_pointX += 1

:WARROBE_9951
if 
  $flag_bought_from_victim == 1
goto_if_false @WARROBE_10012
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP5'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'CSDESGN'
$wardrobe_cam_pointX += 1

:WARROBE_10012
if 
  $flag_bought_from_didiessachs == 1
goto_if_false @WARROBE_10073
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP6'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'CSEXL'
$wardrobe_cam_pointX += 1

:WARROBE_10073
$9962 = 0
if or
  $flag_player_got_gimp_suit == 1
  $flag_player_got_valet_uniform == 1
  $flag_player_got_casino_uniform == 1
  $flag_got_mechanic_clothes == 1
  $flag_player_got_police_uniform == 1
  $flag_player_got_country_clothes == 1
goto_if_false @WARROBE_10140
$9962 = 1

:WARROBE_10140
if or
  $flag_got_medic_clothes == 1
  $flag_got_pimp_clothes == 1
goto_if_false @WARROBE_10172
$9962 = 1

:WARROBE_10172
if 
  $9962 == 1
goto_if_false @WARROBE_10233
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP7'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'UNIFORM'
$wardrobe_cam_pointX += 1

:WARROBE_10233
if 
  $second_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_10294
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'REMCLT'
set_var_text_label $9911($wardrobe_cam_pointX,12s) = 'REMOVE'
$wardrobe_cam_pointX += 1

:WARROBE_10294
set_var_int_to_var_int $temp_var_shops = $wardrobe_cam_pointX

:WARROBE_10302
if 
  12 > $temp_var_shops
goto_if_false @WARROBE_10352
set_var_text_label $wardrobe_cam_pointY($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @WARROBE_10302

:WARROBE_10352
Text.PrintHelpForever('WARDH1')
Menu.SetColumn($9861, 0, 'DUMMY', s$wardrobe_cam_pointY[0], s$wardrobe_cam_pointY[1], s$wardrobe_cam_pointY[2], s$wardrobe_cam_pointY[3], s$wardrobe_cam_pointY[4], s$wardrobe_cam_pointY[5], s$wardrobe_cam_pointY[6], s$wardrobe_cam_pointY[7], s$wardrobe_cam_pointY[8], s$wardrobe_cam_pointY[9], s$wardrobe_cam_pointY[10], s$wardrobe_cam_pointY[11])
$9860 = 1

:WARROBE_10422
return 

:WARROBE_10424
if 
  $cost_menu_drawn_shops == 0
goto_if_false @WARROBE_10690
if 
  is_var_text_label_equal_to_text_label $9911($9862,12s) == 'REMOVE'
goto_if_false @WARROBE_10489
Text.PrintHelpForever('REMOH2')
goto @WARROBE_10500

:WARROBE_10489
Text.PrintHelpForever('WARDH4')

:WARROBE_10500
$cost_menu_shops = Menu.Create('CLOTCHO', 29.0, 95.0, 93.0, 2, False, True, 1)
Menu.SetColumnOrientation($cost_menu_shops, 0, 1)
Menu.SetColumn($cost_menu_shops, 0, 'DUMMY', s$barber_shop_offsetZ, 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumnWidth($cost_menu_shops, 0, 140)
Menu.SetColumnWidth($cost_menu_shops, 1, 46)
$cost_menu_drawn_shops = 1

:WARROBE_10690
return 

:WARROBE_10692
if 
  $bought_menu_drawn_shops == 0
goto_if_false @WARROBE_10906
$bought_menu_shops = Menu.Create('CLOTCHO', 29.0, 25.0, 93.0, 2, False, True, 1)
Menu.SetColumnOrientation($bought_menu_shops, 0, 1)
Menu.SetColumn($bought_menu_shops, 0, 'DUMMY', 'CHANGED', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumnWidth($bought_menu_shops, 0, 140)
Menu.SetColumnWidth($bought_menu_shops, 1, 46)
$bought_menu_drawn_shops = 1

:WARROBE_10906
return 

:WARROBE_10908
Shopping.Load("UNIFORM")
Shopping.LoadPrices("CLOTHES")
$9863 = Shopping.GetNumberOfItems()
$temp_var_shops = 0
$wardrobe_cam_pointX = 0
$9958 = 0

:WARROBE_10956
if 
  is_int_var_greater_than_int_var $9863 > $temp_var_shops
goto_if_false @WARROBE_11462
$model_index = Shopping.GetItem($temp_var_shops)
$modelid_shops = Shopping.GetExtraInfo($model_index, 0)
$component_shops = Shopping.GetExtraInfo($model_index, 1)
set_var_int_to_var_int $item_model_index($9958,12i) = $model_index
s$barber_shop_offsetZ = Shopping.GetNameOfItem($model_index)
set_var_text_label $wardrobe_cam_pointY($9958,12s) = s$barber_shop_offsetZ
set_var_int_to_var_int $item_modelid($9958,12i) = $modelid_shops
set_var_int_to_constant $area_to_look_at_shops = 17
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, BodyPart.SpecialCostume)
if 
  is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @WARROBE_11104
$item_hilight_shops($9958,12i) = 0
goto @WARROBE_11115

:WARROBE_11104
$item_hilight_shops($9958,12i) = 1

:WARROBE_11115
if and
  $flag_player_got_gimp_suit == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'GIMP'
goto_if_false @WARROBE_11154
$9958 += 1

:WARROBE_11154
if and
  $flag_player_got_valet_uniform == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'VALETU'
goto_if_false @WARROBE_11193
$9958 += 1

:WARROBE_11193
if and
  $flag_player_got_country_clothes == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'COUNTRY'
goto_if_false @WARROBE_11232
$9958 += 1

:WARROBE_11232
if and
  $flag_player_got_casino_uniform == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'CROUP'
goto_if_false @WARROBE_11271
$9958 += 1

:WARROBE_11271
if and
  $flag_player_got_police_uniform == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'POLICE'
goto_if_false @WARROBE_11310
$9958 += 1

:WARROBE_11310
if and
  $flag_got_medic_clothes == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'PAMEDIC'
goto_if_false @WARROBE_11349
$9958 += 1

:WARROBE_11349
if and
  $flag_got_pimp_clothes == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'PIMPSUT'
goto_if_false @WARROBE_11388
$9958 += 1

:WARROBE_11388
if and
  $flag_got_mechanic_clothes == 1
  is_var_text_label_equal_to_text_label s$barber_shop_offsetZ == 'RDRIVER'
goto_if_false @WARROBE_11427
$9958 += 1

:WARROBE_11427
set_var_text_label16 v$9854 = "CLO_POSE_TORSO"
$temp_var_shops += 1
goto @WARROBE_10956

:WARROBE_11462
set_var_int_to_var_int $temp_var_shops = $9958

:WARROBE_11470
if 
  12 > $temp_var_shops
goto_if_false @WARROBE_11520
set_var_text_label $wardrobe_cam_pointY($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @WARROBE_11470

:WARROBE_11520
return 

:WARROBE_11522
$temp_var_shops = 0
$wardrobe_cam_pointX = 0
if 
  $9963 == 0
goto_if_false @WARROBE_12530
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @WARROBE_11616
$9964 = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @WARROBE_11857

:WARROBE_11616
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @WARROBE_11678
$9964 = Menu.Create('CLOTCHO', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @WARROBE_11857

:WARROBE_11678
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @WARROBE_11740
$9964 = Menu.Create('CLOTCHO', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @WARROBE_11857

:WARROBE_11740
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @WARROBE_11802
$9964 = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @WARROBE_11857

:WARROBE_11802
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @WARROBE_11857
$9964 = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)

:WARROBE_11857
Menu.SetColumnOrientation($9964, 0, 1)
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, BodyPart.Torso)
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_11933
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'TORSO'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 0
$wardrobe_cam_pointX += 1

:WARROBE_11933
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, BodyPart.Legs)
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12000
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'LEGS'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 2
$wardrobe_cam_pointX += 1

:WARROBE_12000
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, BodyPart.Shoes)
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12067
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'FEET'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 3
$wardrobe_cam_pointX += 1

:WARROBE_12067
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, BodyPart.Necklace)
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12134
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'CHAINS'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 13
$wardrobe_cam_pointX += 1

:WARROBE_12134
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, BodyPart.WatchOrBracelet)
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12201
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'WATCHES'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 14
$wardrobe_cam_pointX += 1

:WARROBE_12201
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, BodyPart.Glasses)
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12268
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHADES'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 15
$wardrobe_cam_pointX += 1

:WARROBE_12268
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, BodyPart.Hat)
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12335
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'HATS'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 16
$wardrobe_cam_pointX += 1

:WARROBE_12335
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, BodyPart.SpecialCostume)
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12402
set_var_text_label $wardrobe_cam_pointY($wardrobe_cam_pointX,12s) = 'SHOP7'
set_var_int_to_constant $item_component($wardrobe_cam_pointX,12i) = 17
$wardrobe_cam_pointX += 1

:WARROBE_12402
set_var_int_to_var_int $temp_var_shops = $wardrobe_cam_pointX

:WARROBE_12410
if 
  12 > $temp_var_shops
goto_if_false @WARROBE_12460
set_var_text_label $wardrobe_cam_pointY($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @WARROBE_12410

:WARROBE_12460
Text.PrintHelpForever('REMOH1')
Menu.SetColumn($9964, 0, 'DUMMY', s$wardrobe_cam_pointY[0], s$wardrobe_cam_pointY[1], s$wardrobe_cam_pointY[2], s$wardrobe_cam_pointY[3], s$wardrobe_cam_pointY[4], s$wardrobe_cam_pointY[5], s$wardrobe_cam_pointY[6], s$wardrobe_cam_pointY[7], s$wardrobe_cam_pointY[8], s$wardrobe_cam_pointY[9], s$wardrobe_cam_pointY[10], s$wardrobe_cam_pointY[11])
$9963 = 1

:WARROBE_12530
return 
terminate_this_script 

//-------------External script 64 (CLOTHES)---------------

:CLOTH
$changing_room_door = 0
$flag_clothes = 0
$area_looked_for_shops = 0
$price_counter = 0
$item_no_shops = 0
$temp_var_shops = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$flag_player_use_changing_room = 0
$return_animation_time_clothes = 0.0
$object_animation_time_clothes = 0.0
$flag_player_in_changing_room = 0.0
$9997 = 0.0
$name_of_anim_clothes = 0.0
$9995 = 0.0
$9996 = 0.0
$9997 = 0.0
$shop_progress_clothes = 0.0
$number_of_clothes_in_shop = 0.0
$number_of_clothes_in_area = 0.0
$change_doorX = 0.0
$change_doorY = 0.0
$change_doorZ = 0.0
$clothes_offX = 0.0
$clothes_offY = 0.0
$clothes_offZ = 0.0
$change_room_door_heading = 0.0
$clothes_locateX = 0.0
$clothes_locateY = 0.0
$clothes_locateZ = 0.0
$clothes_heading = 0.0
$clothes_camX = 0.0
$clothes_camY = 0.0
$clothes_camZ = 0.0
$clothes_cam_pointX = 0.0
$clothes_cam_pointY = 0.0
$clothes_cam_pointZ = 0.0
$flag_remove_menu_drawn_wardrobe = 0
$number_of_items_clothes = 0
$change_doorX = 0.0
$clothes_offY = 0.0
$clothes_offZ = 0.0
$change_room_door_heading = 0.0
$shop_keep_clothes = 0.0
$clothes_price = 0.0
$9980 = 0
$flag_bought_something_wardrobe = 0
$player_using_wardrobe = 0
$player_in_changeroom_wardrobe = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$area_to_look_at_shops = 0
$clothes_hat_camY = 0
$clothes_hat_camZ = 0
$clothes_hat_cam_pointX = 0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'LACS1'
goto_if_false @CLOTH_577
set_var_int_to_constant $shopkeeper_model_shops = 211
$clothes_hat_camX = -373

:CLOTH_577
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSCHP'
goto_if_false @CLOTH_618
set_var_int_to_constant $shopkeeper_model_shops = 211
$clothes_hat_camX = -372

:CLOTH_618
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSSPRT'
goto_if_false @CLOTH_659
set_var_int_to_constant $shopkeeper_model_shops = 217
$clothes_hat_camX = -374

:CLOTH_659
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CLOTHGP'
goto_if_false @CLOTH_700
set_var_int_to_constant $shopkeeper_model_shops = 211
$clothes_hat_camX = -375

:CLOTH_700
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSDESGN'
goto_if_false @CLOTH_741
set_var_int_to_constant $shopkeeper_model_shops = 211
$clothes_hat_camX = -376

:CLOTH_741
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSEXL'
goto_if_false @CLOTH_782
set_var_int_to_constant $shopkeeper_model_shops = 217
$clothes_hat_camX = -377

:CLOTH_782
Streaming.RequestModel($clothes_hat_camX)
Streaming.RequestModel($shopkeeper_model_shops)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 23801)
Streaming.LoadAllModelsNow
set_deatharrest_state 0
script_name 'CLOTH'

:CLOTH_816
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @CLOTH_6931
if 
  not is_var_text_label_empty s$shop_name
goto_if_false @CLOTH_6917
if 
  $9980 > 0
goto_if_false @CLOTH_945
Char.ShutUp($scplayer, True)
if 
  Game.HasLanguageChanged
goto_if_false @CLOTH_945
Text.ClearHelp
Menu.Delete($main_menu_shops)
Menu.Delete($sub_menu_shops)
Menu.Delete($bought_menu_shops)
Menu.Delete($cost_menu_shops)
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$current_Language = Game.GetCurrentLanguage()

:CLOTH_945
if 
  $9980 == 0
goto_if_false @CLOTH_1900
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'LACS1'
goto_if_false @CLOTH_1098
$name_of_anim_clothes = 0.0
$9995 = 0.0
$9996 = 0.0
$clothes_camZ = 203.528
$clothes_cam_pointX = -41.644
$clothes_cam_pointY = 1000.852
$clothes_cam_pointZ = 180.0
$change_doorX = 90.0
$9997 = 0.0
set_var_text_label s$remove_menu_wardrobe = s$shop_name
$changing_room_door = Shopping.GetNumberOfItems()
$9980 = 1

:CLOTH_1098
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSCHP'
goto_if_false @CLOTH_1233
$name_of_anim_clothes = 2.85
$9995 = -57.534
$9996 = 3.26
$clothes_camZ = 208.806
$clothes_cam_pointX = -98.713
$clothes_cam_pointY = 1004.297
$clothes_cam_pointZ = 180.0
$change_doorX = 90.0
$9997 = 0.0
set_var_text_label s$remove_menu_wardrobe = s$shop_name
$changing_room_door = Shopping.GetNumberOfItems()
$9980 = 1

:CLOTH_1233
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSSPRT'
goto_if_false @CLOTH_1368
$name_of_anim_clothes = -12.653
$9995 = -90.758
$9996 = 1.477
$clothes_camZ = 207.018
$clothes_cam_pointX = -127.782
$clothes_cam_pointY = 1002.555
$clothes_cam_pointZ = 180.0
$change_doorX = 90.0
$9997 = 0.0
set_var_text_label s$remove_menu_wardrobe = s$shop_name
$changing_room_door = Shopping.GetNumberOfItems()
$9980 = 1

:CLOTH_1368
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CLOTHGP'
goto_if_false @CLOTH_1503
$name_of_anim_clothes = -33.204
$9995 = -46.245
$9996 = 0.0
$clothes_camZ = 161.56
$clothes_cam_pointX = -81.369
$clothes_cam_pointY = 1000.859
$clothes_cam_pointZ = 180.0
$change_doorX = 90.0
$9997 = 0.0
set_var_text_label s$remove_menu_wardrobe = s$shop_name
$changing_room_door = Shopping.GetNumberOfItems()
$9980 = 1

:CLOTH_1503
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSDESGN'
goto_if_false @CLOTH_1765
if 
  $flag_mansion_mission_counter > 3
goto_if_false @CLOTH_1655
$clothes_hat_cam_pointX = Text.GetHashKey("TSHIRTLOCGREY")
Shopping.AddPriceModifier($clothes_hat_cam_pointX, 15)
$clothes_hat_cam_pointX = Text.GetHashKey("BASKBALLLOC")
Shopping.AddPriceModifier($clothes_hat_cam_pointX, 20)
$clothes_hat_cam_pointX = Text.GetHashKey("TSHIRTMADDGREY")
Shopping.AddPriceModifier($clothes_hat_cam_pointX, 300)
$clothes_hat_cam_pointX = Text.GetHashKey("TSHIRTMADDGRN")
Shopping.AddPriceModifier($clothes_hat_cam_pointX, 300)

:CLOTH_1655
$name_of_anim_clothes = -5.806
$9995 = 36.733
$9996 = -0.815
$clothes_camZ = 204.836
$clothes_cam_pointX = -7.328
$clothes_cam_pointY = 1000.258
$clothes_cam_pointZ = 270.0
$change_doorX = 90.0
$9997 = 0.0
set_var_text_label s$remove_menu_wardrobe = s$shop_name
$changing_room_door = Shopping.GetNumberOfItems()
$9980 = 1

:CLOTH_1765
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSEXL'
goto_if_false @CLOTH_1900
$name_of_anim_clothes = 1.2
$9995 = -114.524
$9996 = -1.51
$clothes_camZ = 204.366
$clothes_cam_pointX = -157.789
$clothes_cam_pointY = 999.563
$clothes_cam_pointZ = 180.0
$change_doorX = 90.0
$9997 = 0.0
set_var_text_label s$remove_menu_wardrobe = s$shop_name
$changing_room_door = Shopping.GetNumberOfItems()
$9980 = 1

:CLOTH_1900
if 
  $9980 == 1
goto_if_false @CLOTH_2351
Text.UseCommands(True)
Stat.ShowUpdateStats(False)
$change_doorY = 212.8715
add_float_var_to_float_var $change_doorY += $name_of_anim_clothes
$change_doorZ = -42.8156
add_float_var_to_float_var $change_doorZ += $9995
$clothes_offX = 1002.116
add_float_var_to_float_var $clothes_offX += $9996
$clothes_offY = 213.4791
add_float_var_to_float_var $clothes_offY += $name_of_anim_clothes
$clothes_offZ = -42.0238
add_float_var_to_float_var $clothes_offZ += $9995
$change_room_door_heading = 1002.053
add_float_var_to_float_var $change_room_door_heading += $9996
$clothes_locateX = 214.5148
add_float_var_to_float_var $clothes_locateX += $name_of_anim_clothes
$clothes_locateY = -41.6106
add_float_var_to_float_var $clothes_locateY += $9995
$clothes_locateZ = 1002.494
add_float_var_to_float_var $clothes_locateZ += $9996
$clothes_heading = 214.5367
add_float_var_to_float_var $clothes_heading += $name_of_anim_clothes
$clothes_camX = -40.6175
add_float_var_to_float_var $clothes_camX += $9995
$clothes_camY = 1002.609
add_float_var_to_float_var $clothes_camY += $9996
$shop_progress_clothes = 214.622
add_float_var_to_float_var $shop_progress_clothes += $name_of_anim_clothes
$number_of_clothes_in_shop = -40.652
add_float_var_to_float_var $number_of_clothes_in_shop += $9995
$number_of_clothes_in_area = 1001.033
add_float_var_to_float_var $number_of_clothes_in_area += $9996
$return_animation_time_clothes = 213.874
add_float_var_to_float_var $return_animation_time_clothes += $name_of_anim_clothes
$object_animation_time_clothes = -39.811
add_float_var_to_float_var $object_animation_time_clothes += $9995
$flag_player_in_changing_room = 1002.2
add_float_var_to_float_var $flag_player_in_changing_room += $9996
$third_menu_item_picked_wardrobe = Char.Create(PedType.CivMale, $shopkeeper_model_shops, $clothes_camZ, $clothes_cam_pointX, $clothes_cam_pointY)
Char.SetOnlyDamagedByPlayer($third_menu_item_picked_wardrobe, True)
Char.SetDecisionMaker($third_menu_item_picked_wardrobe, 65542)
Char.SetHeading($third_menu_item_picked_wardrobe, $clothes_cam_pointZ)
$player_in_changeroom_wardrobe = 0
$clothes_name = Object.CreateNoOffset($clothes_hat_camX, $return_animation_time_clothes, $object_animation_time_clothes, $flag_player_in_changing_room)
Object.SetHeading($clothes_name, $9997)
$foodsmall_junkfud = Char.SetSayContext($third_menu_item_picked_wardrobe, 327)
$blob_flag_shop = 1
$9980 = 2

:CLOTH_2351
if 
  $9980 == 2
goto_if_false @CLOTH_2767
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_2400
gosub @CLOTH_7219

:CLOTH_2400
if 
  not Char.IsDead($third_menu_item_picked_wardrobe)
goto_if_false @CLOTH_2722
if 
  $player_in_changeroom_wardrobe == 0
goto_if_false @CLOTH_2670
if or
  Char.IsShooting($scplayer)
  Player.IsTargetingChar($player1, $third_menu_item_picked_wardrobe)
  Char.HasBeenDamagedByWeapon($third_menu_item_picked_wardrobe, WeaponType.AnyWeapon)
  $iSetClothesPanic == 1
goto_if_false @CLOTH_2504
$foodsmall_junkfud = Char.SetSayContext($third_menu_item_picked_wardrobe, 322)
Task.HandsUp($third_menu_item_picked_wardrobe, -2)
$player_in_changeroom_wardrobe = 1
goto @CLOTH_2577

:CLOTH_2504
$blob_flag_shop = 1
if 
  Char.LocateStoppedOnFoot3D($scplayer, $shop_progress_clothes, $number_of_clothes_in_shop, $number_of_clothes_in_area, 1.0, 1.0, 4.0, $blob_flag_shop)
goto_if_false @CLOTH_2577
if 
  Player.CanStartMission($player1)
goto_if_false @CLOTH_2577
$9980 = 3

:CLOTH_2577
if 
  $flag_bought_something_wardrobe == 0
goto_if_false @CLOTH_2663
if 
  Char.LocateOnFootChar3D($scplayer, $third_menu_item_picked_wardrobe, 8.0, 8.0, 3.0, False)
goto_if_false @CLOTH_2656
$foodsmall_junkfud = Char.SetSayContext($third_menu_item_picked_wardrobe, 323)
$flag_bought_something_wardrobe = 1
goto @CLOTH_2663

:CLOTH_2656
$flag_bought_something_wardrobe = 0

:CLOTH_2663
goto @CLOTH_2715

:CLOTH_2670
gosub @CLOTH_6945
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_2708
gosub @CLOTH_7219

:CLOTH_2708
goto @CLOTH_816

:CLOTH_2715
goto @CLOTH_2767

:CLOTH_2722
gosub @CLOTH_6945
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_2760
gosub @CLOTH_7219

:CLOTH_2760
goto @CLOTH_816

:CLOTH_2767
if 
  $9980 == 3
goto_if_false @CLOTH_2902
if 
  Player.IsPlaying($player1)
goto_if_false @CLOTH_2888
Player.SetControl($player1, False)
Game.SetMinigameInProgress(True)
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
Char.ClearTasksImmediately($scplayer)
World.ClearArea($player_x, $player_y, $player_z, 1.0, True)
Hud.DisplayRadar(False)
TIMERA = 0
$flag_player_use_changing_room = 0
$9980 = 4
goto @CLOTH_2902

:CLOTH_2888
gosub @CLOTH_7219
goto @CLOTH_816

:CLOTH_2902
if 
  $9980 == 4
goto_if_false @CLOTH_3415
if 
  Char.IsDead($third_menu_item_picked_wardrobe)
goto_if_false @CLOTH_2981
gosub @CLOTH_6945
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_2974
gosub @CLOTH_7219

:CLOTH_2974
goto @CLOTH_816

:CLOTH_2981
if 
  $flag_player_use_changing_room == 0
goto_if_false @CLOTH_3322
if 
  TIMERA >= 300
goto_if_false @CLOTH_3322
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Char.SetCoordinatesDontWarpGang($scplayer, $shop_progress_clothes, $number_of_clothes_in_shop, $number_of_clothes_in_area)
Char.SetHeading($scplayer, $change_doorX)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
$players_money, $temp_shopX, $temp_shopY = Char.GetCoordinates($third_menu_item_picked_wardrobe)
if or
  not is_float_var_equal_to_float_var $players_money == $clothes_camZ
  not is_float_var_equal_to_float_var $temp_shopX == $clothes_cam_pointX
  not is_float_var_equal_to_float_var $temp_shopY == $clothes_cam_pointY
goto_if_false @CLOTH_3132
Char.SetCoordinates($third_menu_item_picked_wardrobe, $clothes_camZ, $clothes_cam_pointX, $clothes_cam_pointY)
Char.SetHeading($third_menu_item_picked_wardrobe, $clothes_cam_pointZ)

:CLOTH_3132
Camera.SetFixedPosition($change_doorY, $change_doorZ, $clothes_offX, 0.0, 0.0, 0.0)
Camera.PointAtPoint($clothes_offY, $clothes_offZ, $change_room_door_heading, SwitchType.JumpCut)
Player.StoreClothesState
Task.PlayAnimNonInterruptable($scplayer, "CLO_IN", "CLOTHES", 4.0, False, False, False, True, -1)
$shop_keep_clothes = 0.0
if 
  Char.IsPlayingAnim($scplayer, "CLO_IN")
goto_if_false @CLOTH_3260
$shop_keep_clothes = Char.GetAnimCurrentTime($scplayer, "CLO_IN")

:CLOTH_3260
if 
  Object.DoesExist($clothes_name)
goto_if_false @CLOTH_3315
Object.PlayAnim($clothes_name, "CLO_POSE_OUT_O", "CLOTHES", 4.0, False, True)

:CLOTH_3315
$flag_player_use_changing_room = 1

:CLOTH_3322
if 
  $flag_player_use_changing_room == 1
goto_if_false @CLOTH_3415
if 
  Char.IsPlayingAnim($scplayer, "CLO_IN")
goto_if_false @CLOTH_3380
$shop_keep_clothes = Char.GetAnimCurrentTime($scplayer, "CLO_IN")

:CLOTH_3380
if 
  $shop_keep_clothes == 1.0
goto_if_false @CLOTH_3415
$flag_player_use_changing_room = 0
$9980 = 5

:CLOTH_3415
if 
  $9980 == 5
goto_if_false @CLOTH_4103
if 
  Char.IsDead($third_menu_item_picked_wardrobe)
goto_if_false @CLOTH_3494
gosub @CLOTH_6945
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_3487
gosub @CLOTH_7219

:CLOTH_3487
goto @CLOTH_816

:CLOTH_3494
if 
  $main_menu_drawn_shops == 0
goto_if_false @CLOTH_3537
if 
  1 > $flag_player_use_changing_room
goto_if_false @CLOTH_3537
gosub @CLOTH_8435

:CLOTH_3537
$blob_flag_shop = 0
if 
  $flag_player_use_changing_room == 0
goto_if_false @CLOTH_3610
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CLOTH_3586
$flag_player_use_changing_room = 1

:CLOTH_3586
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CLOTH_3610
$flag_player_use_changing_room = 2

:CLOTH_3610
if 
  $flag_player_use_changing_room == 1
goto_if_false @CLOTH_3731
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CLOTH_3731
$shop_main_item_picked_shops = Menu.GetItemAccepted($main_menu_shops)
if 
  0 > $shop_main_item_picked_shops
goto_if_false @CLOTH_3678
$shop_main_item_picked_shops = 0

:CLOTH_3678
gosub @CLOTH_7579
$9980 = 6
if 
  $main_menu_drawn_shops == 1
goto_if_false @CLOTH_3724
Menu.Delete($main_menu_shops)
Text.ClearHelp
$main_menu_drawn_shops = 0

:CLOTH_3724
$flag_player_use_changing_room = 0

:CLOTH_3731
if 
  $flag_player_use_changing_room == 2
goto_if_false @CLOTH_3939
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CLOTH_3939
if 
  $main_menu_drawn_shops == 1
goto_if_false @CLOTH_3798
Menu.Delete($main_menu_shops)
Text.ClearHelp
$main_menu_drawn_shops = 0

:CLOTH_3798
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_3830
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:CLOTH_3830
Task.PlayAnimNonInterruptable($scplayer, "CLO_OUT", "CLOTHES", 1000.0, False, False, False, False, -1)
$shop_keep_clothes = 0.0
if 
  Object.DoesExist($clothes_name)
goto_if_false @CLOTH_3932
Object.PlayAnim($clothes_name, "CLO_POSE_IN_O", "CLOTHES", 1000.0, False, True)

:CLOTH_3932
$flag_player_use_changing_room = 5

:CLOTH_3939
if 
  $flag_player_use_changing_room == 5
goto_if_false @CLOTH_4027
if 
  Char.IsPlayingAnim($scplayer, "CLO_OUT")
goto_if_false @CLOTH_3999
$shop_keep_clothes = Char.GetAnimCurrentTime($scplayer, "CLO_OUT")

:CLOTH_3999
if 
  $shop_keep_clothes == 1.0
goto_if_false @CLOTH_4027
$flag_player_use_changing_room = 6

:CLOTH_4027
if 
  $flag_player_use_changing_room == 6
goto_if_false @CLOTH_4103
Player.SetControl($player1, True)
Game.SetMinigameInProgress(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.DisplayRadar(True)
$foodsmall_junkfud = Char.SetSayContext($third_menu_item_picked_wardrobe, 326)
$clothes_hat_camY = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$9980 = 8

:CLOTH_4103
if 
  $9980 == 6
goto_if_false @CLOTH_5208
if 
  Char.IsDead($third_menu_item_picked_wardrobe)
goto_if_false @CLOTH_4182
gosub @CLOTH_6945
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_4175
gosub @CLOTH_7219

:CLOTH_4175
goto @CLOTH_816

:CLOTH_4182
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CLOTH_4225
if 
  2 > $flag_player_use_changing_room
goto_if_false @CLOTH_4225
gosub @CLOTH_9005

:CLOTH_4225
$blob_flag_shop = 0
if 
  $flag_player_use_changing_room == 0
goto_if_false @CLOTH_4583
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CLOTH_4274
$flag_player_use_changing_room = 1

:CLOTH_4274
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CLOTH_4583
$clothes_hat_camY = 0
$shop_sub_item_picked_shops = Menu.GetItemSelected($sub_menu_shops)
if 
  0 > $shop_sub_item_picked_shops
goto_if_false @CLOTH_4331
$shop_sub_item_picked_shops = 0

:CLOTH_4331
set_var_int_to_var_int $model_index = $item_model_index($shop_sub_item_picked_shops,12i)
set_var_int_to_var_int $flag_got_special_clothes_wardrobe = $item_price($shop_sub_item_picked_shops,12i)
set_var_int_to_var_int $modelid_shops = $item_modelid($shop_sub_item_picked_shops,12i)
set_var_int_to_var_int $component_shops = $item_component($shop_sub_item_picked_shops,12i)
set_var_text_label s$third_menu_wardrobe = $item_text_label($shop_sub_item_picked_shops,12s)
if or
  is_int_var_equal_to_constant $component_shops == 13
  is_int_var_equal_to_constant $component_shops == 14
  is_int_var_equal_to_constant $component_shops == 15
  is_int_var_equal_to_constant $component_shops == 16
goto_if_false @CLOTH_4476
Camera.SetFixedPosition($clothes_locateX, $clothes_locateY, $clothes_locateZ, 0.0, 0.0, 0.0)
Camera.PointAtPoint($clothes_heading, $clothes_camX, $clothes_camY, SwitchType.JumpCut)
goto @CLOTH_4544

:CLOTH_4476
if or
  is_int_var_equal_to_constant $area_to_look_at_shops == 0
  is_int_var_equal_to_constant $area_to_look_at_shops == 2
goto_if_false @CLOTH_4505
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)

:CLOTH_4505
Camera.SetFixedPosition($change_doorY, $change_doorZ, $clothes_offX, 0.0, 0.0, 0.0)
Camera.PointAtPoint($clothes_offY, $clothes_offZ, $change_room_door_heading, SwitchType.JumpCut)

:CLOTH_4544
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_4576
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:CLOTH_4576
$flag_player_use_changing_room = 2

:CLOTH_4583
if 
  $flag_player_use_changing_room == 1
goto_if_false @CLOTH_4689
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CLOTH_4689
$flag_player_use_changing_room = 0
$9980 = 5
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_4664
Text.ClearHelp
Menu.Delete($sub_menu_shops)
$sub_menu_drawn_shops = 0

:CLOTH_4664
if 
  $main_menu_drawn_shops == 0
goto_if_false @CLOTH_4689
gosub @CLOTH_8435

:CLOTH_4689
if 
  $flag_player_use_changing_room == 2
goto_if_false @CLOTH_4731
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CLOTH_4731
$flag_player_use_changing_room = 3

:CLOTH_4731
if 
  $flag_player_use_changing_room == 3
goto_if_false @CLOTH_4926
if or
  is_int_var_equal_to_constant $area_to_look_at_shops == 0
  is_int_var_equal_to_constant $area_to_look_at_shops == 2
  is_int_var_equal_to_constant $area_to_look_at_shops == 3
goto_if_false @CLOTH_4794
Player.GiveClothes($player1, 0, 0, BodyPart.SpecialCostume)
Player.StoreClothesState

:CLOTH_4794
Player.GiveClothes($player1, $model_index, $modelid_shops, $component_shops)
Player.BuildModel($player1)
Task.PlayAnimNonInterruptable($scplayer, "CLO_POSE_IN", "CLOTHES", 1000.0, False, False, False, True, -1)
$shop_keep_clothes = 0.0
if 
  Object.DoesExist($clothes_name)
goto_if_false @CLOTH_4919
Object.PlayAnim($clothes_name, "CLO_POSE_IN_O", "CLOTHES", 1000.0, False, True)

:CLOTH_4919
$flag_player_use_changing_room = 4

:CLOTH_4926
if 
  $flag_player_use_changing_room == 4
goto_if_false @CLOTH_5064
if 
  Char.IsPlayingAnim($scplayer, "CLO_POSE_IN")
goto_if_false @CLOTH_4994
$shop_keep_clothes = Char.GetAnimCurrentTime($scplayer, "CLO_POSE_IN")

:CLOTH_4994
if 
  $shop_keep_clothes == 1.0
goto_if_false @CLOTH_5064
Task.PlayAnimNonInterruptable($scplayer, v$stored_clothes_shop, "CLOTHES", 1000.0, False, False, False, True, -1)
$shop_keep_clothes = 0.0
$flag_player_use_changing_room = 5

:CLOTH_5064
if 
  $flag_player_use_changing_room == 5
goto_if_false @CLOTH_5208
if 
  Char.IsPlayingAnim($scplayer, v$stored_clothes_shop)
goto_if_false @CLOTH_5112
$shop_keep_clothes = Char.GetAnimCurrentTime($scplayer, v$stored_clothes_shop)

:CLOTH_5112
if 
  $shop_keep_clothes == 1.0
goto_if_false @CLOTH_5208
gosub @CLOTH_9555
Task.PlayAnimNonInterruptable($scplayer, "CLO_POSE_LOOP", "CLOTHES", 1000.0, True, False, False, False, -1)
$shop_keep_clothes = 0.0
$9980 = 7
$flag_player_use_changing_room = 0

:CLOTH_5208
if 
  $9980 == 7
goto_if_false @CLOTH_6623
if 
  Char.IsDead($third_menu_item_picked_wardrobe)
goto_if_false @CLOTH_5287
gosub @CLOTH_6945
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_5280
gosub @CLOTH_7219

:CLOTH_5280
goto @CLOTH_816

:CLOTH_5287
$blob_flag_shop = 0
if 
  $flag_player_use_changing_room == 0
goto_if_false @CLOTH_5592
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CLOTH_5397
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('CLTHNO2')
Text.ClearThisPrint('CLTHNO1')
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$clothes_hat_camZ = 0
$flag_player_use_changing_room = 1

:CLOTH_5397
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CLOTH_5592
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('CLTHNO2')
Text.ClearThisPrint('CLTHNO1')
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$clothes_hat_camZ = 0
gosub @CLOTH_8094
if 
  $cost_menu_drawn_shops == 1
goto_if_false @CLOTH_5514
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:CLOTH_5514
if 
  $clothes_hat_camY == 0
goto_if_false @CLOTH_5546
$flag_player_use_changing_room = 3
goto @CLOTH_5592

:CLOTH_5546
if 
  $bought_menu_drawn_shops == 1
goto_if_false @CLOTH_5578
Menu.Delete($bought_menu_shops)
Text.ClearHelp
$bought_menu_drawn_shops = 0

:CLOTH_5578
$flag_player_use_changing_room = 0
$9980 = 6

:CLOTH_5592
if 
  2 > $flag_player_use_changing_room
goto_if_false @CLOTH_5617
gosub @CLOTH_9555

:CLOTH_5617
if 
  $flag_player_use_changing_room == 1
goto_if_false @CLOTH_6017
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CLOTH_6017
$2753 = Player.StoreScore($player1)
if 
  is_int_var_greater_or_equal_to_int_var $2753 >= $flag_got_special_clothes_wardrobe
goto_if_false @CLOTH_5944
if 
  not is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @CLOTH_5864
if 
  $cost_menu_drawn_shops == 1
goto_if_false @CLOTH_5730
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:CLOTH_5730
Shopping.BuyItem($model_index)
$clothes_hat_camZ = 1
$foodsmall_junkfud = Char.SetSayContext($third_menu_item_picked_wardrobe, 318)
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1054)
gosub @CLOTH_9930
gosub @CLOTH_10300
Player.StoreClothesState
Player.BuildModel($player1)
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
Task.PlayAnimNonInterruptable($scplayer, "CLO_BUY", "CLOTHES", 4.0, False, False, False, True, -1)
$shop_keep_clothes = 0.0
$flag_player_use_changing_room = 2
goto @CLOTH_5937

:CLOTH_5864
if 
  $flag_bought_item_already_shops == 0
goto_if_false @CLOTH_5937
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
$foodsmall_junkfud = Char.SetSayContext($third_menu_item_picked_wardrobe, 317)
Text.PrintNow('CLTHNO2', 5000, 1)
$flag_player_use_changing_room = 0
$flag_bought_item_already_shops = 1

:CLOTH_5937
goto @CLOTH_6017

:CLOTH_5944
if 
  $flag_no_money_shops == 0
goto_if_false @CLOTH_6017
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
$foodsmall_junkfud = Char.SetSayContext($third_menu_item_picked_wardrobe, 319)
Text.PrintNow('SHOPNO', 5000, 1)
$flag_player_use_changing_room = 0
$flag_no_money_shops = 1

:CLOTH_6017
if 
  $flag_player_use_changing_room == 2
goto_if_false @CLOTH_6159
if 
  Char.IsPlayingAnim($scplayer, "CLO_BUY")
goto_if_false @CLOTH_6077
$shop_keep_clothes = Char.GetAnimCurrentTime($scplayer, "CLO_BUY")

:CLOTH_6077
if 
  $shop_keep_clothes == 1.0
goto_if_false @CLOTH_6159
Task.PlayAnimNonInterruptable($scplayer, "CLO_POSE_LOOP", "CLOTHES", 1000.0, True, False, False, False, -1)
$shop_keep_clothes = 0.0
$flag_player_use_changing_room = 3

:CLOTH_6159
if 
  $flag_player_use_changing_room == 3
goto_if_false @CLOTH_6292
Task.PlayAnimNonInterruptable($scplayer, "CLO_POSE_OUT", "CLOTHES", 4.0, False, False, False, True, -1)
$shop_keep_clothes = 0.0
if 
  Object.DoesExist($clothes_name)
goto_if_false @CLOTH_6285
Object.PlayAnim($clothes_name, "CLO_POSE_OUT_O", "CLOTHES", 1000.0, False, True)

:CLOTH_6285
$flag_player_use_changing_room = 4

:CLOTH_6292
if 
  $flag_player_use_changing_room == 4
goto_if_false @CLOTH_6623
if 
  Char.IsPlayingAnim($scplayer, "CLO_POSE_OUT")
goto_if_false @CLOTH_6362
$shop_keep_clothes = Char.GetAnimCurrentTime($scplayer, "CLO_POSE_OUT")

:CLOTH_6362
if 
  $shop_keep_clothes == 1.0
goto_if_false @CLOTH_6623
Player.RestoreClothesState
Player.BuildModel($player1)
Player.StoreClothesState
if 
  $bought_menu_drawn_shops == 1
goto_if_false @CLOTH_6424
Menu.Delete($bought_menu_shops)
Text.ClearHelp
$bought_menu_drawn_shops = 0

:CLOTH_6424
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_6456
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:CLOTH_6456
if 
  $cost_menu_drawn_shops == 1
goto_if_false @CLOTH_6488
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:CLOTH_6488
$clothes_hat_camY = 1
if 
  $clothes_hat_camZ == 1
goto_if_false @CLOTH_6577
$flag_player_use_changing_room = 0
$9980 = 5
if 
  $main_menu_drawn_shops == 0
goto_if_false @CLOTH_6570
if 
  1 > $flag_player_use_changing_room
goto_if_false @CLOTH_6570
gosub @CLOTH_8435

:CLOTH_6570
goto @CLOTH_6623

:CLOTH_6577
$flag_player_use_changing_room = 0
$9980 = 6
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CLOTH_6623
gosub @CLOTH_8094
gosub @CLOTH_9005

:CLOTH_6623
if 
  $9980 == 8
goto_if_false @CLOTH_6910
if 
  Char.IsDead($third_menu_item_picked_wardrobe)
goto_if_false @CLOTH_6702
gosub @CLOTH_6945
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$remove_menu_wardrobe
goto_if_false @CLOTH_6695
gosub @CLOTH_7219

:CLOTH_6695
goto @CLOTH_816

:CLOTH_6702
if 
  $player_in_changeroom_wardrobe == 0
goto_if_false @CLOTH_6783
if or
  Char.IsShooting($scplayer)
  Player.IsTargetingChar($player1, $third_menu_item_picked_wardrobe)
  Char.HasBeenDamagedByWeapon($third_menu_item_picked_wardrobe, WeaponType.AnyWeapon)
  $iSetClothesPanic == 1
goto_if_false @CLOTH_6783
$foodsmall_junkfud = Char.SetSayContext($third_menu_item_picked_wardrobe, 322)
Task.HandsUp($third_menu_item_picked_wardrobe, -2)
$player_in_changeroom_wardrobe = 1

:CLOTH_6783
if 
  not Char.LocateOnFoot3D($scplayer, $shop_progress_clothes, $number_of_clothes_in_shop, $number_of_clothes_in_area, 1.0, 1.0, 4.0, $blob_flag_shop)
goto_if_false @CLOTH_6910
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$9980 = 2
$flag_player_use_changing_room = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$clothes_hat_camZ = 0
$blob_flag_shop = 1

:CLOTH_6910
goto @CLOTH_6924

:CLOTH_6917
gosub @CLOTH_7219

:CLOTH_6924
goto @CLOTH_6938

:CLOTH_6931
gosub @CLOTH_7219

:CLOTH_6938
goto @CLOTH_816

:CLOTH_6945
if 
  $9980 >= 1
goto_if_false @CLOTH_6965
Text.ClearHelp

:CLOTH_6965
if 
  $main_menu_drawn_shops == 1
goto_if_false @CLOTH_6997
Menu.Delete($main_menu_shops)
Text.ClearHelp
$main_menu_drawn_shops = 0

:CLOTH_6997
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_7029
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:CLOTH_7029
if 
  $bought_menu_drawn_shops == 1
goto_if_false @CLOTH_7061
Menu.Delete($bought_menu_shops)
Text.ClearHelp
$bought_menu_drawn_shops = 0

:CLOTH_7061
if 
  $cost_menu_drawn_shops == 1
goto_if_false @CLOTH_7093
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:CLOTH_7093
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('CLTHNO2')
Text.ClearThisPrint('CLTHNO1')
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$flag_player_use_changing_room = 0
$clothes_hat_camY = 0
$clothes_hat_camZ = 0
$9980 = 2
return 

:CLOTH_7219
if 
  $main_menu_drawn_shops == 1
goto_if_false @CLOTH_7251
Menu.Delete($main_menu_shops)
Text.ClearHelp
$main_menu_drawn_shops = 0

:CLOTH_7251
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_7283
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:CLOTH_7283
if 
  $bought_menu_drawn_shops == 1
goto_if_false @CLOTH_7315
Menu.Delete($bought_menu_shops)
Text.ClearHelp
$bought_menu_drawn_shops = 0

:CLOTH_7315
if 
  $cost_menu_drawn_shops == 1
goto_if_false @CLOTH_7347
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:CLOTH_7347
if 
  $9980 >= 1
goto_if_false @CLOTH_7367
Text.ClearHelp

:CLOTH_7367
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('CLTHNO2')
Text.ClearThisPrint('CLTHNO1')
$clothes_hat_camY = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$blob_flag_shop = 1
$flag_bought_something_wardrobe = 0
$player_in_changeroom_wardrobe = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$clothes_hat_camZ = 0
$flag_player_use_changing_room = 0
$9980 = 0
Object.Delete($clothes_name)
Streaming.MarkModelAsNoLongerNeeded($clothes_hat_camX)
Char.Delete($third_menu_item_picked_wardrobe)
Streaming.MarkModelAsNoLongerNeeded($shopkeeper_model_shops)
Text.UseCommands(False)
Hud.DisplayRadar(True)
Stat.ShowUpdateStats(True)
Game.SetMinigameInProgress(False)
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
if 
  Player.IsPlaying($player1)
goto_if_false @CLOTH_7575
Char.ShutUp($scplayer, False)

:CLOTH_7575
terminate_this_script 
return 

:CLOTH_7579
if 
  $shop_main_item_picked_shops == 0
goto_if_false @CLOTH_7653
$area_looked_for_shops = 0
set_var_int_to_constant $area_to_look_at_shops = 0
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @CLOTH_8094
set_var_text_label16 v$stored_clothes_shop = "CLO_POSE_TORSO"

:CLOTH_7653
if 
  $shop_main_item_picked_shops == 1
goto_if_false @CLOTH_7726
$area_looked_for_shops = 2
set_var_int_to_constant $area_to_look_at_shops = 2
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @CLOTH_8094
set_var_text_label16 v$stored_clothes_shop = "CLO_POSE_LEGS"

:CLOTH_7726
if 
  $shop_main_item_picked_shops == 2
goto_if_false @CLOTH_7800
$area_looked_for_shops = 3
set_var_int_to_constant $area_to_look_at_shops = 3
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @CLOTH_8094
set_var_text_label16 v$stored_clothes_shop = "CLO_POSE_SHOES"

:CLOTH_7800
if 
  $shop_main_item_picked_shops == 3
goto_if_false @CLOTH_7874
$area_looked_for_shops = 13
set_var_int_to_constant $area_to_look_at_shops = 13
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @CLOTH_8094
set_var_text_label16 v$stored_clothes_shop = "CLO_POSE_TORSO"

:CLOTH_7874
if 
  $shop_main_item_picked_shops == 4
goto_if_false @CLOTH_7948
$area_looked_for_shops = 14
set_var_int_to_constant $area_to_look_at_shops = 14
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @CLOTH_8094
set_var_text_label16 v$stored_clothes_shop = "CLO_POSE_WATCH"

:CLOTH_7948
if 
  $shop_main_item_picked_shops == 5
goto_if_false @CLOTH_8020
$area_looked_for_shops = 15
set_var_int_to_constant $area_to_look_at_shops = 15
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @CLOTH_8094
set_var_text_label16 v$stored_clothes_shop = "CLO_POSE_HAT"

:CLOTH_8020
if 
  $shop_main_item_picked_shops == 6
goto_if_false @CLOTH_8092
$area_looked_for_shops = 16
set_var_int_to_constant $area_to_look_at_shops = 16
$player_item_texture_shops, $player_item_model_shops = Player.GetClothesItem($player1, $area_to_look_at_shops)
gosub @CLOTH_8094
set_var_text_label16 v$stored_clothes_shop = "CLO_POSE_HAT"

:CLOTH_8092
return 

:CLOTH_8094
$item_no_shops = 0
$flag_clothes = 0

:CLOTH_8108
if 
  is_int_var_greater_than_int_var $changing_room_door > $item_no_shops
goto_if_false @CLOTH_8353
$model_index = Shopping.GetItem($item_no_shops)
$modelid_shops = Shopping.GetExtraInfo($model_index, 0)
$component_shops = Shopping.GetExtraInfo($model_index, 1)
if 
  is_int_var_equal_to_int_var $component_shops == $area_looked_for_shops
goto_if_false @CLOTH_8339
set_var_int_to_var_int $item_model_index($flag_clothes,12i) = $model_index
s$third_menu_wardrobe = Shopping.GetNameOfItem($model_index)
$flag_got_special_clothes_wardrobe = Shopping.GetPriceOfItem($model_index)
set_var_int_to_var_int $item_price($flag_clothes,12i) = $flag_got_special_clothes_wardrobe
set_var_text_label $item_text_label($flag_clothes,12s) = s$third_menu_wardrobe
set_var_int_to_var_int $item_modelid($flag_clothes,12i) = $modelid_shops
set_var_int_to_var_int $item_component($flag_clothes,12i) = $component_shops
if 
  is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @CLOTH_8287
$item_hilight_shops($flag_clothes,12i) = 0
goto @CLOTH_8332

:CLOTH_8287
if 
  Shopping.HasPlayerBoughtItem($model_index)
goto_if_false @CLOTH_8321
$item_hilight_shops($flag_clothes,12i) = 1
goto @CLOTH_8332

:CLOTH_8321
$item_hilight_shops($flag_clothes,12i) = 2

:CLOTH_8332
$flag_clothes += 1

:CLOTH_8339
$item_no_shops += 1
goto @CLOTH_8108

:CLOTH_8353
set_var_int_to_var_int $temp_var_shops = $flag_clothes

:CLOTH_8361
if 
  12 > $temp_var_shops
goto_if_false @CLOTH_8433
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @CLOTH_8361

:CLOTH_8433
return 

:CLOTH_8435
if 
  $main_menu_drawn_shops == 0
goto_if_false @CLOTH_9003
Text.PrintHelpForever('CLOTHA')
set_var_text_label s$ITEM1 = 'TORSO'
set_var_text_label s$ITEM2 = 'LEGS'
set_var_text_label s$ITEM3 = 'FEET'
set_var_text_label s$ITEM4 = 'CHAINS'
set_var_text_label s$ITEM5 = 'WATCHES'
set_var_text_label s$ITEM6 = 'SHADES'
set_var_text_label s$ITEM7 = 'HATS'
set_var_text_label s$ITEM8 = 'DUMMY'
set_var_text_label s$ITEM9 = 'DUMMY'
set_var_text_label s$ITEM10 = 'DUMMY'
set_var_text_label s$ITEM11 = 'DUMMY'
set_var_text_label s$ITEM12 = 'DUMMY'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CLOTH_8694
$main_menu_shops = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @CLOTH_8935

:CLOTH_8694
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CLOTH_8756
$main_menu_shops = Menu.Create('CLOTCHO', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @CLOTH_8935

:CLOTH_8756
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CLOTH_8818
$main_menu_shops = Menu.Create('CLOTCHO', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @CLOTH_8935

:CLOTH_8818
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CLOTH_8880
$main_menu_shops = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @CLOTH_8935

:CLOTH_8880
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CLOTH_8935
$main_menu_shops = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)

:CLOTH_8935
Menu.SetColumnOrientation($main_menu_shops, 0, 1)
Menu.SetColumn($main_menu_shops, 0, 'DUMMY', s$ITEM1, s$ITEM2, s$ITEM3, s$ITEM4, s$ITEM5, s$ITEM6, s$ITEM7, s$ITEM8, s$ITEM9, s$ITEM10, s$ITEM11, s$ITEM12)
$main_menu_drawn_shops = 1

:CLOTH_9003
return 

:CLOTH_9005
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CLOTH_9553
Text.PrintHelpForever('CLOTHB')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CLOTH_9096
$sub_menu_shops = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @CLOTH_9337

:CLOTH_9096
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CLOTH_9158
$sub_menu_shops = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @CLOTH_9337

:CLOTH_9158
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CLOTH_9220
$sub_menu_shops = Menu.Create('CLOTCHO', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @CLOTH_9337

:CLOTH_9220
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CLOTH_9282
$sub_menu_shops = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @CLOTH_9337

:CLOTH_9282
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CLOTH_9337
$sub_menu_shops = Menu.Create('CLOTCHO', 29.0, 145.0, 186.0, 1, True, True, 1)

:CLOTH_9337
Menu.SetColumnOrientation($sub_menu_shops, 0, 1)
Menu.SetColumn($sub_menu_shops, 0, 'DUMMY', s$item_text_label[0], s$item_text_label[1], s$item_text_label[2], s$item_text_label[3], s$item_text_label[4], s$item_text_label[5], s$item_text_label[6], s$item_text_label[7], s$item_text_label[8], s$item_text_label[9], s$item_text_label[10], s$item_text_label[11])
$temp_var_shops = 0

:CLOTH_9405
if 
  is_int_var_greater_than_int_var $flag_clothes > $temp_var_shops
goto_if_false @CLOTH_9546
if 
  $item_hilight_shops($temp_var_shops,12i) == 0
goto_if_false @CLOTH_9473
Menu.HighlightItem($sub_menu_shops, $temp_var_shops, False)
Menu.ActivateItem($sub_menu_shops, $temp_var_shops, False)
goto @CLOTH_9532

:CLOTH_9473
if 
  $item_hilight_shops($temp_var_shops,12i) == 1
goto_if_false @CLOTH_9512
Menu.HighlightItem($sub_menu_shops, $temp_var_shops, True)
goto @CLOTH_9532

:CLOTH_9512
Menu.HighlightItem($sub_menu_shops, $temp_var_shops, False)
Menu.ActivateItem($sub_menu_shops, $temp_var_shops, True)

:CLOTH_9532
$temp_var_shops += 1
goto @CLOTH_9405

:CLOTH_9546
$sub_menu_drawn_shops = 1

:CLOTH_9553
return 

:CLOTH_9555
if 
  $cost_menu_drawn_shops == 0
goto_if_false @CLOTH_9928
Text.PrintHelpForever('CLOTHC')
$cost_menu_shops = Menu.Create('CLOTCHO', 29.0, 95.0, 93.0, 2, False, True, 1)
Menu.SetColumnOrientation($cost_menu_shops, 0, 1)
Menu.SetColumn($cost_menu_shops, 0, 'CLOTCHO', s$third_menu_wardrobe, 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumnOrientation($cost_menu_shops, 1, 2)
Menu.SetColumn($cost_menu_shops, 1, 'COST', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetItemWithNumber($cost_menu_shops, 1, 0, 'DOLLAR', $flag_got_special_clothes_wardrobe)
Menu.SetColumnWidth($cost_menu_shops, 0, 140)
Menu.SetColumnWidth($cost_menu_shops, 1, 46)
$cost_menu_drawn_shops = 1

:CLOTH_9928
return 

:CLOTH_9930
if 
  $bought_menu_drawn_shops == 0
goto_if_false @CLOTH_10298
$bought_menu_shops = Menu.Create('CLOTCHO', 29.0, 25.0, 93.0, 2, False, True, 1)
Menu.SetColumnOrientation($bought_menu_shops, 0, 1)
Menu.SetColumn($bought_menu_shops, 0, 'CLOTCHO', 'BOUGHT', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumnOrientation($bought_menu_shops, 1, 2)
Menu.SetColumn($bought_menu_shops, 1, 'COST', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetItemWithNumber($bought_menu_shops, 1, 0, 'DOLLAR', $flag_got_special_clothes_wardrobe)
Menu.SetColumnWidth($bought_menu_shops, 0, 140)
Menu.SetColumnWidth($bought_menu_shops, 1, 46)
$bought_menu_drawn_shops = 1

:CLOTH_10298
return 

:CLOTH_10300
if 
  $flag_bought_from_binco == 0
goto_if_false @CLOTH_10350
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSCHP'
goto_if_false @CLOTH_10350
$flag_bought_from_binco = 1

:CLOTH_10350
if 
  $flag_bought_from_prolapse == 0
goto_if_false @CLOTH_10400
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSSPRT'
goto_if_false @CLOTH_10400
$flag_bought_from_prolapse = 1

:CLOTH_10400
if 
  $flag_bought_from_suburban == 0
goto_if_false @CLOTH_10450
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'LACS1'
goto_if_false @CLOTH_10450
$flag_bought_from_suburban = 1

:CLOTH_10450
if 
  $flag_bought_from_zip == 0
goto_if_false @CLOTH_10500
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CLOTHGP'
goto_if_false @CLOTH_10500
$flag_bought_from_zip = 1

:CLOTH_10500
if 
  $flag_bought_from_victim == 0
goto_if_false @CLOTH_10550
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSDESGN'
goto_if_false @CLOTH_10550
$flag_bought_from_victim = 1

:CLOTH_10550
if 
  $flag_bought_from_didiessachs == 0
goto_if_false @CLOTH_10600
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSEXL'
goto_if_false @CLOTH_10600
$flag_bought_from_didiessachs = 1

:CLOTH_10600
return 
terminate_this_script 

//-------------External script 65 (JUNKFUD)---------------

:JFUD
$vomitZ = 0.0
$return_animation_time_food = 0.0
$players_fat = 0.0
$players_health = 0.0
$food_heading = 0.0
$flag_vomit_playing_food = 0.0
$junkfudX = 0.0
$junkfudY = 0.0
$junkfudZ = 0.0
$junkfud_heading = 0.0
$junkfud_cam_offX = 0.0
$junkfud_cam_offY = 0.0
$junkfud_cam_offZ = 0.0
$cam_point_junkfudX = 0.0
$cam_point_junkfudY = 0.0
$cam_point_junnkfudZ = 0.0
$flag_food = 0
$flag_ate_too_much_food = 0.0
$flag_food_message = 0
$food_name = 0.0
$10040 = 0.0
$pish_flag = 0.0
$hash_key_clothes = 0
$skip_shopping_wait = 0
$shop_keep_clothY = 0
$found_a_food_shop = 0
$ffood_obj = 0
$lv_arm_LOD = 0
$current_food_item = 0.0
$blob_flag_shop = 1
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_no_money_shops = 0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @JFUD_358
set_var_int_to_constant $shopkeeper_model_shops = 155
$junkfud_offsetX = -378
$junkfud_offsetY = -379
$junkfud_offsetZ = -59
$junkfud_heading_offset = -380

:JFUD_358
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDCHICK'
goto_if_false @JFUD_423
set_var_int_to_constant $shopkeeper_model_shops = 167
$junkfud_offsetX = -381
$junkfud_offsetY = -382
$junkfud_offsetZ = -383
$junkfud_heading_offset = -384

:JFUD_423
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDBURG'
goto_if_false @JFUD_487
set_var_int_to_constant $shopkeeper_model_shops = 205
$junkfud_offsetX = -385
$junkfud_offsetY = -386
$junkfud_offsetZ = -62
$junkfud_heading_offset = -387

:JFUD_487
Streaming.RequestModel($junkfud_offsetX)
Streaming.RequestModel($junkfud_offsetY)
Streaming.RequestModel($junkfud_offsetZ)
Streaming.RequestModel($junkfud_heading_offset)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 1828)
Streaming.RequestModel($shopkeeper_model_shops)
Streaming.LoadAllModelsNow
set_deatharrest_state 0
if 
  $hash_key_clothes == 1000000
goto_if_false @JFUD_563
$shop_keep_heading_clothes = Object.Create($model_index, $tray_offX, $tray_offY, $tray_offZ)

:JFUD_563
script_name 'JFUD'

:JFUD_574
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @JFUD_9696
if 
  not is_var_text_label_empty s$shop_name
goto_if_false @JFUD_9682
if 
  $num_of_food_stuffs > 0
goto_if_false @JFUD_672
if 
  Game.HasLanguageChanged
goto_if_false @JFUD_672
Text.ClearHelp
Menu.Delete($cost_menu_shops)
Menu.Delete($bought_menu_shops)
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$current_Language = Game.GetCurrentLanguage()

:JFUD_672
if 
  $num_of_food_stuffs == 0
goto_if_false @JFUD_1005
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @JFUD_795
$shop_keep_clothZ = Shopping.GetNumberOfItems()
$vomitZ = 0.0
$return_animation_time_food = 0.0
$players_fat = 0.0
$players_health = 0.0
$keep_off_dirX = 0.0
$keep_off_dirY = 2.5
set_var_text_label s$jfud_keep_created = s$shop_name
$num_of_food_stuffs = 1

:JFUD_795
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDCHICK'
goto_if_false @JFUD_900
$shop_keep_clothZ = Shopping.GetNumberOfItems()
$vomitZ = -5.211
$return_animation_time_food = 112.784
$players_fat = 0.3
$players_health = 0.0
$keep_off_dirX = 0.0
$keep_off_dirY = 2.5
set_var_text_label s$jfud_keep_created = s$shop_name
$num_of_food_stuffs = 1

:JFUD_900
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDBURG'
goto_if_false @JFUD_1005
$shop_keep_clothZ = Shopping.GetNumberOfItems()
$keep_off_dirX = 0.0
$keep_off_dirY = 2.5
$vomitZ = 1.566
$return_animation_time_food = 51.419
$players_fat = 0.01
$players_health = 0.0
set_var_text_label s$jfud_keep_created = s$shop_name
$num_of_food_stuffs = 1

:JFUD_1005
if 
  $num_of_food_stuffs == 1
goto_if_false @JFUD_1427
Text.UseCommands(True)
Stat.ShowUpdateStats(False)
$flag_bought_some_food = 374.0
add_float_var_to_float_var $flag_bought_some_food += $vomitZ
$vomit_foodshop = -117.141
add_float_var_to_float_var $vomit_foodshop += $return_animation_time_food
$vomitX = 1000.539
add_float_var_to_float_var $vomitX += $players_fat
$vomitY = 180.0
add_float_var_to_float_var $vomitY += $players_health
$food_heading = 374.0
add_float_var_to_float_var $food_heading += $vomitZ
$flag_vomit_playing_food = -119.1869
add_float_var_to_float_var $flag_vomit_playing_food += $return_animation_time_food
$junkfudX = 1002.019
add_float_var_to_float_var $junkfudX += $players_fat
$junkfudY = 373.9532
add_float_var_to_float_var $junkfudY += $vomitZ
$junkfudZ = -118.189
add_float_var_to_float_var $junkfudZ += $return_animation_time_food
$junkfud_heading = 1001.975
add_float_var_to_float_var $junkfud_heading += $players_fat
$junkfud_cam_offX = 374.717
add_float_var_to_float_var $junkfud_cam_offX += $vomitZ
$junkfud_cam_offY = -122.55
add_float_var_to_float_var $junkfud_cam_offY += $return_animation_time_food
$junkfud_cam_offZ = 1002.572
add_float_var_to_float_var $junkfud_cam_offZ += $players_fat
$cam_point_junkfudX = 374.599
add_float_var_to_float_var $cam_point_junkfudX += $vomitZ
$cam_point_junkfudY = -121.608
add_float_var_to_float_var $cam_point_junkfudY += $return_animation_time_food
$cam_point_junnkfudZ = 1002.256
add_float_var_to_float_var $cam_point_junnkfudZ += $players_fat
if 
  $clothes_hat_cam_pointZ == 0
goto_if_false @JFUD_1420
$clothes_hat_cam_pointY = Char.Create(PedType.CivMale, $shopkeeper_model_shops, $flag_bought_some_food, $vomit_foodshop, $vomitX)
Char.SetHeading($clothes_hat_cam_pointY, $vomitY)
Char.SetOnlyDamagedByPlayer($clothes_hat_cam_pointY, True)
Char.SetDecisionMaker($clothes_hat_cam_pointY, 65542)
$keep_offX, $keep_offY, $keep_offZ = Char.GetOffsetInWorldCoords($clothes_hat_cam_pointY, $keep_off_dirX, $keep_off_dirY, 0.0)
$lv_arm_LOD = 0
$clothes_hat_cam_pointZ = 1

:JFUD_1420
$num_of_food_stuffs = 2

:JFUD_1427
if 
  $num_of_food_stuffs == 2
goto_if_false @JFUD_2034
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_1476
gosub @JFUD_9887

:JFUD_1476
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_1989
if 
  $lv_arm_LOD == 0
goto_if_false @JFUD_1937
if or
  Char.IsShooting($scplayer)
  Player.IsTargetingChar($player1, $clothes_hat_cam_pointY)
  Char.HasBeenDamagedByWeapon($clothes_hat_cam_pointY, WeaponType.AnyWeapon)
  $iSetPizzaPanic == 1
goto_if_false @JFUD_1587
$sample_name_shop = Char.SetSayContext($clothes_hat_cam_pointY, 322)
Task.HandsUp($clothes_hat_cam_pointY, -2)
$iSetPizzaPanic = 1
$lv_arm_LOD = 1
goto @JFUD_1930

:JFUD_1587
if 
  11 > $total_food_bought_per_day_shops
goto_if_false @JFUD_1765
$blob_flag_shop = 1
if 
  Char.LocateStoppedOnFoot3D($scplayer, $keep_offX, $keep_offY, $keep_offZ, 1.0, 1.0, 4.0, $blob_flag_shop)
goto_if_false @JFUD_1758
if 
  Player.CanStartMission($player1)
goto_if_false @JFUD_1758
$sample_name_shop = Char.SetSayContext($clothes_hat_cam_pointY, 328)
$2753 = Player.StoreScore($player1)
if 
  2 > $flag_menace_buyfood
goto_if_false @JFUD_1751
if 
  $flag_player_on_menace_mission == 1
goto_if_false @JFUD_1751
if 
  2 > $2753
goto_if_false @JFUD_1751
Player.AddScore($player1, 2)

:JFUD_1751
$num_of_food_stuffs = 3

:JFUD_1758
goto @JFUD_1930

:JFUD_1765
if 
  $found_a_food_shop == 0
goto_if_false @JFUD_1899
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_1847
$sample_name_shop = Char.SetSayContext($clothes_hat_cam_pointY, 317)
Text.PrintNow('FOOD1', 5000, 1)
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
goto @JFUD_1892

:JFUD_1847
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_1885
gosub @JFUD_9887

:JFUD_1885
goto @JFUD_574

:JFUD_1892
$found_a_food_shop = 1

:JFUD_1899
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_1930
gosub @JFUD_9887

:JFUD_1930
goto @JFUD_1982

:JFUD_1937
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_1975
gosub @JFUD_9887

:JFUD_1975
goto @JFUD_574

:JFUD_1982
goto @JFUD_2034

:JFUD_1989
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_2027
gosub @JFUD_9887

:JFUD_2027
goto @JFUD_574

:JFUD_2034
if 
  $num_of_food_stuffs == 3
goto_if_false @JFUD_4339
Player.SetControl($player1, False)
Game.SetMinigameInProgress(True)
Char.SetCoordinatesDontWarpGangNoOffset($scplayer, $keep_offX, $keep_offY, $keep_offZ)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
Char.SetHeading($scplayer, $flag_ate_too_much_food)
$10044 = Char.GetHealth($scplayer)
$stored_shop = Stat.GetFloat(StatId.Fat)
Char.ClearTasksImmediately($scplayer)
World.ClearArea($player_x, $player_y, $player_z, 1.0, True)
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_2401
$players_money, $temp_shopX, $temp_shopY = Char.GetCoordinates($clothes_hat_cam_pointY)
if or
  not is_float_var_equal_to_float_var $players_money == $flag_bought_some_food
  not is_float_var_equal_to_float_var $temp_shopX == $vomit_foodshop
  not is_float_var_equal_to_float_var $temp_shopY == $vomitX
goto_if_false @JFUD_2224
Char.SetCoordinates($clothes_hat_cam_pointY, $flag_bought_some_food, $vomit_foodshop, $vomitX)
Char.SetHeading($clothes_hat_cam_pointY, $vomitY)

:JFUD_2224
$tray_offX, $tray_offY, $tray_offZ = Char.GetOffsetInWorldCoords($clothes_hat_cam_pointY, 0.0, 0.8, 0.1)
if 
  not Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_POSE")
goto_if_false @JFUD_2333
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "SHP_TRAY_IN", "FOOD", 4.0, False, False, False, True, -1)
$current_food_item = 0.0

:JFUD_2333
$foodsmall_junkfud = Char.SetSayContext($clothes_hat_cam_pointY, 328)
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_IN")
goto_if_false @JFUD_2394
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_IN")

:JFUD_2394
goto @JFUD_2446

:JFUD_2401
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_2439
gosub @JFUD_9887

:JFUD_2439
goto @JFUD_574

:JFUD_2446
TIMERA = 0

:JFUD_2453
if 
  TIMERA >= 600
goto_if_false @JFUD_2631
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_2506
gosub @JFUD_9887
goto @JFUD_574

:JFUD_2506
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_2574
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_2560
gosub @JFUD_9887

:JFUD_2560
goto @JFUD_574
goto @JFUD_2624

:JFUD_2574
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_IN")
goto_if_false @JFUD_2624
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_IN")

:JFUD_2624
goto @JFUD_2453

:JFUD_2631
if 
  Player.IsPlaying($player1)
goto_if_false @JFUD_2700
Char.SetCurrentWeapon($scplayer, WeaponType.Unarmed)
Camera.SetFixedPosition($food_heading, $flag_vomit_playing_food, $junkfudX, 0.0, 0.0, 0.0)
Camera.PointAtPoint($junkfudY, $junkfudZ, $junkfud_heading, SwitchType.JumpCut)
goto @JFUD_2714

:JFUD_2700
gosub @JFUD_9887
goto @JFUD_574

:JFUD_2714
if 
  not Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_POSE")
goto_if_false @JFUD_2925

:JFUD_2745
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_2925
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_2800
gosub @JFUD_9887
goto @JFUD_574

:JFUD_2800
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_2868
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_2854
gosub @JFUD_9887

:JFUD_2854
goto @JFUD_574
goto @JFUD_2918

:JFUD_2868
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_IN")
goto_if_false @JFUD_2918
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_IN")

:JFUD_2918
goto @JFUD_2745

:JFUD_2925
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_3053
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "SHP_TRAY_POSE", "FOOD", 4.0, False, False, False, True, -1)
$current_food_item = 0.0
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_POSE")
goto_if_false @JFUD_3046
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_POSE")

:JFUD_3046
goto @JFUD_3098

:JFUD_3053
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_3091
gosub @JFUD_9887

:JFUD_3091
goto @JFUD_574

:JFUD_3098
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_3282
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_3153
gosub @JFUD_9887
goto @JFUD_574

:JFUD_3153
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_3221
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_3207
gosub @JFUD_9887

:JFUD_3207
goto @JFUD_574
goto @JFUD_3275

:JFUD_3221
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_POSE")
goto_if_false @JFUD_3275
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_POSE")

:JFUD_3275
goto @JFUD_3098

:JFUD_3282
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_3419
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_IN", "FOOD", 4.0, False, False, False, True, -1)
$current_food_item = 0.0
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_IN")
goto_if_false @JFUD_3412
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_IN")

:JFUD_3412
goto @JFUD_3464

:JFUD_3419
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_3457
gosub @JFUD_9887

:JFUD_3457
goto @JFUD_574

:JFUD_3464
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_3654
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_3519
gosub @JFUD_9887
goto @JFUD_574

:JFUD_3519
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_3587
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_3573
gosub @JFUD_9887

:JFUD_3573
goto @JFUD_574
goto @JFUD_3647

:JFUD_3587
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_IN")
goto_if_false @JFUD_3647
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_IN")

:JFUD_3647
goto @JFUD_3464

:JFUD_3654
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1145)
$shop_keep_junkfud = 0
$shop_door_model_clothes = 0
$model_index = Shopping.GetItem($shop_keep_junkfud)
$shop_keep_heading_clothes = Object.Create($model_index, $tray_offX, $tray_offY, $tray_offZ)
$shop_keep_clothX = Shopping.GetPriceOfItem($model_index)
s$player_in_changeroom_clothes = Shopping.GetNameOfItem($model_index)
set_var_int_to_var_int $flag_food_message = $shop_keep_clothX
set_var_text_label s$shop_item_price = s$player_in_changeroom_clothes
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_3915
Task.PickUpObject($clothes_hat_cam_pointY, $shop_keep_heading_clothes, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "SHP_TRAY_LIFT", "FOOD", 1000.0, False, False, False, True, -1)
$current_food_item = 0.0
$shop_door_model_clothes = 1
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_LIFT")
goto_if_false @JFUD_3908
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_LIFT")

:JFUD_3908
goto @JFUD_3960

:JFUD_3915
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_3953
gosub @JFUD_9887

:JFUD_3953
goto @JFUD_574

:JFUD_3960
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_4144
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_4015
gosub @JFUD_9887
goto @JFUD_574

:JFUD_4015
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_4083
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_4069
gosub @JFUD_9887

:JFUD_4069
goto @JFUD_574
goto @JFUD_4137

:JFUD_4083
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_LIFT")
goto_if_false @JFUD_4137
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_LIFT")

:JFUD_4137
goto @JFUD_3960

:JFUD_4144
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_4287
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_LOOP", "FOOD", 1000.0, True, False, False, False, -1)
$current_food_item = 0.0
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_LOOP")
goto_if_false @JFUD_4280
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_LOOP")

:JFUD_4280
goto @JFUD_4332

:JFUD_4287
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_4325
gosub @JFUD_9887

:JFUD_4325
goto @JFUD_574

:JFUD_4332
$num_of_food_stuffs = 4

:JFUD_4339
if 
  $num_of_food_stuffs == 4
goto_if_false @JFUD_9675
if 
  $found_a_food_shop == 0
goto_if_false @JFUD_9668
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
if or
  -100 > $LStickX
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadLeft)
goto_if_false @JFUD_4603
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_4447
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:JFUD_4447
$flag_no_money_shops = 0
$shop_keep_junkfud -= 1
TIMERA = 0

:JFUD_4468
if 
  150 > TIMERA
goto_if_false @JFUD_4589
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_4521
gosub @JFUD_9887
goto @JFUD_574

:JFUD_4521
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_4582
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_4575
gosub @JFUD_9887

:JFUD_4575
goto @JFUD_574

:JFUD_4582
goto @JFUD_4468

:JFUD_4589
$ffood_obj = 0
$shop_door_model_clothes = 0

:JFUD_4603
if or
  $LStickX > 100
  Pad.IsButtonPressed(PadId.Pad1, Button.DpadRight)
goto_if_false @JFUD_4815
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_4659
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:JFUD_4659
$flag_no_money_shops = 0
$shop_keep_junkfud += 1
TIMERA = 0

:JFUD_4680
if 
  150 > TIMERA
goto_if_false @JFUD_4801
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_4733
gosub @JFUD_9887
goto @JFUD_574

:JFUD_4733
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_4794
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_4787
gosub @JFUD_9887

:JFUD_4787
goto @JFUD_574

:JFUD_4794
goto @JFUD_4680

:JFUD_4801
$shop_door_model_clothes = 0
$ffood_obj = 0

:JFUD_4815
if 
  0 > $shop_keep_junkfud
goto_if_false @JFUD_4848
set_var_int_to_var_int $shop_keep_junkfud = $shop_keep_clothZ
$shop_keep_junkfud -= 1

:JFUD_4848
if 
  is_int_var_equal_to_int_var $shop_keep_junkfud == $shop_keep_clothZ
goto_if_false @JFUD_4874
$shop_keep_junkfud = 0

:JFUD_4874
if 
  $shop_door_model_clothes == 0
goto_if_false @JFUD_5930
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_5026
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "SHP_TRAY_RETURN", "FOOD", 4.0, False, False, False, True, -1)
$current_food_item = 0.0
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_RETURN")
goto_if_false @JFUD_5019
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_RETURN")

:JFUD_5019
goto @JFUD_5071

:JFUD_5026
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_5064
gosub @JFUD_9887

:JFUD_5064
goto @JFUD_574

:JFUD_5071
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_5259
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_5126
gosub @JFUD_9887
goto @JFUD_574

:JFUD_5126
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_5194
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_5180
gosub @JFUD_9887

:JFUD_5180
goto @JFUD_574
goto @JFUD_5252

:JFUD_5194
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_RETURN")
goto_if_false @JFUD_5252
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_RETURN")

:JFUD_5252
goto @JFUD_5071

:JFUD_5259
gosub @JFUD_12993
$model_index = Shopping.GetItem($shop_keep_junkfud)
$shop_keep_heading_clothes = Object.Create($model_index, $tray_offX, $tray_offY, $tray_offZ)
$shop_keep_clothX = Shopping.GetPriceOfItem($model_index)
s$player_in_changeroom_clothes = Shopping.GetNameOfItem($model_index)
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1145)
set_var_int_to_var_int $flag_food_message = $shop_keep_clothX
set_var_text_label s$shop_item_price = s$player_in_changeroom_clothes
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_5506
Task.PickUpObject($clothes_hat_cam_pointY, $shop_keep_heading_clothes, 0.0, 0.0, 0.0, 6, 16, "NULL", "NULL", 0)
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "SHP_TRAY_LIFT", "FOOD", 1000.0, False, False, False, True, -1)
$current_food_item = 0.0
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_LIFT")
goto_if_false @JFUD_5499
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_LIFT")

:JFUD_5499
goto @JFUD_5551

:JFUD_5506
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_5544
gosub @JFUD_9887

:JFUD_5544
goto @JFUD_574

:JFUD_5551
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_5735
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_5606
gosub @JFUD_9887
goto @JFUD_574

:JFUD_5606
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_5674
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_5660
gosub @JFUD_9887

:JFUD_5660
goto @JFUD_574
goto @JFUD_5728

:JFUD_5674
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_LIFT")
goto_if_false @JFUD_5728
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_LIFT")

:JFUD_5728
goto @JFUD_5551

:JFUD_5735
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_5878
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_LOOP", "FOOD", 1000.0, True, False, False, False, -1)
$current_food_item = 0.0
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_LOOP")
goto_if_false @JFUD_5871
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_LOOP")

:JFUD_5871
goto @JFUD_5923

:JFUD_5878
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_5916
gosub @JFUD_9887

:JFUD_5916
goto @JFUD_574

:JFUD_5923
$shop_door_model_clothes = 1

:JFUD_5930
if 
  $found_a_food_shop == 0
goto_if_false @JFUD_5955
gosub @JFUD_12352

:JFUD_5955
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @JFUD_9668

:JFUD_5972
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @JFUD_6091
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_6023
gosub @JFUD_9887
goto @JFUD_574

:JFUD_6023
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_6084
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_6077
gosub @JFUD_9887

:JFUD_6077
goto @JFUD_574

:JFUD_6084
goto @JFUD_5972

:JFUD_6091
$flag_no_money_shops = 0
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('FOOD1')
if 
  Player.IsPlaying($player1)
goto_if_false @JFUD_6151
$2753 = Player.StoreScore($player1)
goto @JFUD_6165

:JFUD_6151
gosub @JFUD_9887
goto @JFUD_574

:JFUD_6165
if 
  is_int_var_greater_or_equal_to_int_var $2753 >= $shop_keep_clothX
goto_if_false @JFUD_9534
if 
  11 > $total_food_bought_per_day_shops
goto_if_false @JFUD_6997
Shopping.BuyItem($model_index)
$ffood_obj = 1
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @JFUD_6252
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot4)
goto_if_false @JFUD_6252
Audio.ReportMissionAudioEventAtChar($scplayer, 1168)

:JFUD_6252
if 
  $flag_store_day_food == 0
goto_if_false @JFUD_6282
$game_timer_wil = Clock.GetGameTimer()
$flag_store_day_food = 1

:JFUD_6282
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1054)
$total_food_bought_per_day_shops += 1
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_6337
$sample_name_shop = Char.SetSayContext($clothes_hat_cam_pointY, 318)
goto @JFUD_6382

:JFUD_6337
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_6375
gosub @JFUD_9887

:JFUD_6375
goto @JFUD_574

:JFUD_6382
TIMERA = 0
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_6421
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:JFUD_6421
if 
  $bought_menu_drawn_shops == 0
goto_if_false @JFUD_6789
$bought_menu_shops = Menu.Create('FOODCHO', 29.0, 25.0, 93.0, 2, False, True, 1)
Menu.SetColumnOrientation($bought_menu_shops, 0, 1)
Menu.SetColumn($bought_menu_shops, 0, 'MEAL', 'BOUGHT', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumnOrientation($bought_menu_shops, 1, 2)
Menu.SetColumn($bought_menu_shops, 1, 'COST', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetItemWithNumber($bought_menu_shops, 1, 0, 'DOLLAR', $shop_keep_clothX)
Menu.SetColumnWidth($bought_menu_shops, 0, 140)
Menu.SetColumnWidth($bought_menu_shops, 1, 46)
$bought_menu_drawn_shops = 1

:JFUD_6789
if 
  1000 >= TIMERA
goto_if_false @JFUD_6910
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_6842
gosub @JFUD_9887
goto @JFUD_574

:JFUD_6842
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_6903
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_6896
gosub @JFUD_9887

:JFUD_6896
goto @JFUD_574

:JFUD_6903
goto @JFUD_6789

:JFUD_6910
if 
  $bought_menu_drawn_shops == 1
goto_if_false @JFUD_6940
Menu.Delete($bought_menu_shops)
$bought_menu_drawn_shops = 0

:JFUD_6940
if 
  $cost_menu_drawn_shops == 0
goto_if_false @JFUD_6965
gosub @JFUD_12352

:JFUD_6965
if 
  $flag_menace_buyfood == 1
goto_if_false @JFUD_6990
$flag_menace_buyfood = 2

:JFUD_6990
goto @JFUD_9527

:JFUD_6997
if 
  $found_a_food_shop == 0
goto_if_false @JFUD_9527
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_7079
$sample_name_shop = Char.SetSayContext($clothes_hat_cam_pointY, 317)
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
Text.PrintNow('FOOD1', 5000, 1)
goto @JFUD_7124

:JFUD_7079
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_7117
gosub @JFUD_9887

:JFUD_7117
goto @JFUD_574

:JFUD_7124
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_7156
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:JFUD_7156
if 
  $bought_menu_drawn_shops == 1
goto_if_false @JFUD_7188
Menu.Delete($bought_menu_shops)
Text.ClearHelp
$bought_menu_drawn_shops = 0

:JFUD_7188
if 
  $flag_menace_buyfood == 2
goto_if_false @JFUD_7314
Camera.SetFadingColor(0, 0, 0)
Audio.SetMusicDoesFade(False)
Camera.DoFade(0, Fade.Out)
gosub @JFUD_12993
Char.Delete($clothes_hat_cam_pointY)
$flag_menace_buyfood = 3
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_no_money_shops = 0
$shop_door_model_clothes = 0
$shop_keep_junkfud = 0
$num_of_food_stuffs = 2
Char.SetHealth($scplayer, $10044)
Stat.SetFloat(StatId.Fat, $stored_shop)
$cj_vomits_for_menace = 1
goto @JFUD_574

:JFUD_7314
if 
  $total_food_bought_per_day_shops >= 11
goto_if_false @JFUD_8116
gosub @JFUD_9710
gosub @JFUD_12993
if 
  10 > $10044
goto_if_false @JFUD_7379
set_var_int_to_var_int $10044 = $10044
goto @JFUD_7411

:JFUD_7379
$10044 -= 10
if 
  10 > $10044
goto_if_false @JFUD_7411
$10044 = 10

:JFUD_7411
Char.SetHealth($scplayer, $10044)
Stat.SetFloat(StatId.Fat, $stored_shop)
Camera.SetFixedPosition($junkfud_cam_offX, $junkfud_cam_offY, $junkfud_cam_offZ, 0.0, 0.0, 0.0)
Camera.PointAtPoint($cam_point_junkfudX, $cam_point_junkfudY, $cam_point_junnkfudZ, SwitchType.JumpCut)
if 
  Player.IsPlaying($player1)
goto_if_false @JFUD_7638
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
set_var_float_to_var_float $food_name = $player_x
$food_name += 0.355
set_var_float_to_var_float $10040 = $player_y
$10040 -= 0.116
set_var_float_to_var_float $pish_flag = $player_z
$pish_flag -= 0.048
$created_this_food = Particle.Create("PUKE", $food_name, $10040, $pish_flag, 1)
Task.PlayAnimNonInterruptable($scplayer, "EAT_VOMIT_P", "FOOD", 4.0, False, False, False, False, -1)
$current_food_item = 0.0
$sample_name_shop = Char.SetSayContext($scplayer, 348)
goto @JFUD_7652

:JFUD_7638
gosub @JFUD_9887
goto @JFUD_574

:JFUD_7652
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_7726
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "EAT_VOMIT_SK", "FOOD", 1000.0, False, False, False, False, -1)
$sample_name_shop = Char.SetSayContext($clothes_hat_cam_pointY, 320)
goto @JFUD_7771

:JFUD_7726
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_7764
gosub @JFUD_9887

:JFUD_7764
goto @JFUD_574

:JFUD_7771
if 
  Char.IsPlayingAnim($scplayer, "EAT_VOMIT_P")
goto_if_false @JFUD_7821
$current_food_item = Char.GetAnimCurrentTime($scplayer, "EAT_VOMIT_P")

:JFUD_7821
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_8099
wait 0
if 
  $flag_food == 0
goto_if_false @JFUD_7915
if 
  $current_food_item >= 0.463
goto_if_false @JFUD_7915
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @JFUD_7908
Audio.ReportMissionAudioEventAtChar($scplayer, 1169)

:JFUD_7908
$flag_food = 1

:JFUD_7915
if 
  $flag_food == 1
goto_if_false @JFUD_7966
if 
  $current_food_item >= 0.52
goto_if_false @JFUD_7966
Particle.Play($created_this_food)
$flag_food = 2

:JFUD_7966
if 
  Player.IsPlaying($player1)
goto_if_false @JFUD_8010
$current_food_item = Char.GetAnimCurrentTime($scplayer, "EAT_VOMIT_P")
goto @JFUD_8024

:JFUD_8010
gosub @JFUD_9887
goto @JFUD_574

:JFUD_8024
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_8047
goto @JFUD_8092

:JFUD_8047
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_8085
gosub @JFUD_9887

:JFUD_8085
goto @JFUD_574

:JFUD_8092
goto @JFUD_7821

:JFUD_8099
Particle.Stop($created_this_food)
Particle.Kill($created_this_food)
goto @JFUD_8867

:JFUD_8116
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_8250
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "SHP_TRAY_RETURN", "FOOD", 4.0, False, False, False, True, -1)
$current_food_item = 0.0
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_RETURN")
goto_if_false @JFUD_8243
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_RETURN")

:JFUD_8243
goto @JFUD_8295

:JFUD_8250
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_8288
gosub @JFUD_9887

:JFUD_8288
goto @JFUD_574

:JFUD_8295
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_8483
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_8350
gosub @JFUD_9887
goto @JFUD_574

:JFUD_8350
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_8418
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_8404
gosub @JFUD_9887

:JFUD_8404
goto @JFUD_574
goto @JFUD_8476

:JFUD_8418
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_RETURN")
goto_if_false @JFUD_8476
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_RETURN")

:JFUD_8476
goto @JFUD_8295

:JFUD_8483
gosub @JFUD_12993
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_8630
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_OUT", "FOOD", 1000.0, False, False, False, True, -1)
$current_food_item = 0.0
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_OUT")
goto_if_false @JFUD_8623
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_OUT")

:JFUD_8623
goto @JFUD_8675

:JFUD_8630
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_8668
gosub @JFUD_9887

:JFUD_8668
goto @JFUD_574

:JFUD_8675
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_8867
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_8730
gosub @JFUD_9887
goto @JFUD_574

:JFUD_8730
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_8798
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_8784
gosub @JFUD_9887

:JFUD_8784
goto @JFUD_574
goto @JFUD_8860

:JFUD_8798
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_OUT")
goto_if_false @JFUD_8860
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_OUT")

:JFUD_8860
goto @JFUD_8675

:JFUD_8867
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_8995
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "SHP_TRAY_POSE", "FOOD", 1000.0, False, False, False, True, -1)
$current_food_item = 0.0
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_POSE")
goto_if_false @JFUD_8988
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_POSE")

:JFUD_8988
goto @JFUD_9040

:JFUD_8995
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_9033
gosub @JFUD_9887

:JFUD_9033
goto @JFUD_574

:JFUD_9040
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_9231
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @JFUD_9088
goto @JFUD_9102

:JFUD_9088
gosub @JFUD_9887
goto @JFUD_574

:JFUD_9102
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_9179
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_POSE")
goto_if_false @JFUD_9172
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_POSE")

:JFUD_9172
goto @JFUD_9224

:JFUD_9179
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_9217
gosub @JFUD_9887

:JFUD_9217
goto @JFUD_574

:JFUD_9224
goto @JFUD_9040

:JFUD_9231
Player.SetControl($player1, True)
Game.SetMinigameInProgress(False)
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:JFUD_9246
if 
  Char.LocateOnFoot3D($scplayer, $keep_offX, $keep_offY, $keep_offZ, 1.0, 1.0, 4.0, False)
goto_if_false @JFUD_9485
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_9322
gosub @JFUD_9887
goto @JFUD_574

:JFUD_9322
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_9390
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_9376
gosub @JFUD_9887

:JFUD_9376
goto @JFUD_574
goto @JFUD_9478

:JFUD_9390
if 
  $lv_arm_LOD == 0
goto_if_false @JFUD_9478
if or
  Char.IsShooting($scplayer)
  Player.IsTargetingChar($player1, $clothes_hat_cam_pointY)
  Char.HasBeenDamagedByWeapon($clothes_hat_cam_pointY, WeaponType.AnyWeapon)
  $iSetPizzaPanic == 1
goto_if_false @JFUD_9478
$sample_name_shop = Char.SetSayContext($clothes_hat_cam_pointY, 322)
Task.HandsUp($clothes_hat_cam_pointY, -2)
$iSetPizzaPanic = 1
$lv_arm_LOD = 1

:JFUD_9478
goto @JFUD_9246

:JFUD_9485
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$shop_door_model_clothes = 0
$shop_keep_junkfud = 0
$num_of_food_stuffs = 2
$found_a_food_shop = 1

:JFUD_9527
goto @JFUD_9668

:JFUD_9534
if 
  $flag_no_money_shops == 0
goto_if_false @JFUD_9668
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_9616
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
$foodsmall_junkfud = Char.SetSayContext($clothes_hat_cam_pointY, 319)
Text.PrintNow('SHOPNO', 5000, 1)
goto @JFUD_9661

:JFUD_9616
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_9654
gosub @JFUD_9887

:JFUD_9654
goto @JFUD_574

:JFUD_9661
$flag_no_money_shops = 1

:JFUD_9668
gosub @JFUD_10132

:JFUD_9675
goto @JFUD_9689

:JFUD_9682
gosub @JFUD_9887

:JFUD_9689
goto @JFUD_9703

:JFUD_9696
gosub @JFUD_9887

:JFUD_9703
goto @JFUD_574

:JFUD_9710
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('FOOD1')
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_9764
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:JFUD_9764
if 
  $bought_menu_drawn_shops == 1
goto_if_false @JFUD_9796
Menu.Delete($bought_menu_shops)
Text.ClearHelp
$bought_menu_drawn_shops = 0

:JFUD_9796
$shop_door_model_clothes = 0
$shop_keep_junkfud = 0
$ffood_obj = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$num_of_food_stuffs = 2
$flag_no_money_shops = 0
Streaming.MarkModelAsNoLongerNeeded($junkfud_offsetX)
Streaming.MarkModelAsNoLongerNeeded($junkfud_offsetY)
Streaming.MarkModelAsNoLongerNeeded($junkfud_offsetZ)
Streaming.MarkModelAsNoLongerNeeded($junkfud_heading_offset)
if 
  $clothes_hat_cam_pointZ == 1
goto_if_false @JFUD_9885
Text.ClearHelp

:JFUD_9885
return 

:JFUD_9887
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('FOOD1')
if 
  $clothes_hat_cam_pointZ == 1
goto_if_false @JFUD_9929
Text.ClearHelp

:JFUD_9929
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_9961
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:JFUD_9961
if 
  $bought_menu_drawn_shops == 1
goto_if_false @JFUD_9993
Menu.Delete($bought_menu_shops)
Text.ClearHelp
$bought_menu_drawn_shops = 0

:JFUD_9993
$clothes_hat_cam_pointZ = 0
$shop_keep_clothY = 0
$shop_keep_junkfud = 0
$shop_door_model_clothes = 0
$found_a_food_shop = 0
$ffood_obj = 0
$lv_arm_LOD = 0
$flag_food = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$num_of_food_stuffs = 0
$flag_no_money_shops = 0
Particle.Kill($created_this_food)
Char.Delete($clothes_hat_cam_pointY)
Streaming.MarkModelAsNoLongerNeeded($shopkeeper_model_shops)
Streaming.MarkModelAsNoLongerNeeded($junkfud_offsetX)
Streaming.MarkModelAsNoLongerNeeded($junkfud_offsetY)
Streaming.MarkModelAsNoLongerNeeded($junkfud_offsetZ)
Streaming.MarkModelAsNoLongerNeeded($junkfud_heading_offset)
Text.UseCommands(False)
Stat.ShowUpdateStats(True)
Game.SetMinigameInProgress(False)
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
terminate_this_script 
return 

:JFUD_10132
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @JFUD_12350
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_10181
Menu.Delete($cost_menu_shops)
Text.ClearHelp
$cost_menu_drawn_shops = 0

:JFUD_10181
if 
  $bought_menu_drawn_shops == 1
goto_if_false @JFUD_10213
Menu.Delete($bought_menu_shops)
Text.ClearHelp
$bought_menu_drawn_shops = 0

:JFUD_10213
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @JFUD_10332
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_10264
gosub @JFUD_9887
goto @JFUD_574

:JFUD_10264
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_10325
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_10318
gosub @JFUD_9887

:JFUD_10318
goto @JFUD_574

:JFUD_10325
goto @JFUD_10213

:JFUD_10332
Text.ClearThisPrint('SHOPNO')
Text.ClearThisPrint('FOOD1')
if 
  $flag_menace_buyfood == 2
goto_if_false @JFUD_10454
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(0, Fade.Out)
gosub @JFUD_12993
Char.Delete($clothes_hat_cam_pointY)
$flag_menace_buyfood = 3
$shop_door_model_clothes = 0
$shop_keep_junkfud = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$num_of_food_stuffs = 2
$flag_no_money_shops = 0
goto @JFUD_12350

:JFUD_10454
$blob_flag_shop = 0
s$shop_name = Shopping.GetLoaded()
if 
  $ffood_obj == 1
goto_if_false @JFUD_10687
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDBURG'
goto_if_false @JFUD_10554
Task.PlayAnim($scplayer, "EAT_BURGER", "FOOD", 4.0, False, False, False, False, -1)
goto @JFUD_10687

:JFUD_10554
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @JFUD_10623
Task.PlayAnim($scplayer, "EAT_PIZZA", "FOOD", 4.0, False, False, False, False, -1)
goto @JFUD_10687

:JFUD_10623
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDCHICK'
goto_if_false @JFUD_10687
Task.PlayAnim($scplayer, "EAT_CHICKEN", "FOOD", 4.0, False, False, False, False, -1)

:JFUD_10687
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_10832
$foodsmall_junkfud = Char.SetSayContext($clothes_hat_cam_pointY, 326)
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "SHP_TRAY_RETURN", "FOOD", 1000.0, False, False, False, True, -1)
$current_food_item = 0.0
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_RETURN")
goto_if_false @JFUD_10825
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_RETURN")

:JFUD_10825
goto @JFUD_10877

:JFUD_10832
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_10870
gosub @JFUD_9887

:JFUD_10870
goto @JFUD_574

:JFUD_10877
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_11065
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_10932
gosub @JFUD_9887
goto @JFUD_574

:JFUD_10932
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_11000
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_10986
gosub @JFUD_9887

:JFUD_10986
goto @JFUD_574
goto @JFUD_11058

:JFUD_11000
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_RETURN")
goto_if_false @JFUD_11058
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_RETURN")

:JFUD_11058
goto @JFUD_10877

:JFUD_11065
gosub @JFUD_12993
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_11212
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_OUT", "FOOD", 1000.0, False, False, False, True, -1)
$current_food_item = 0.0
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_OUT")
goto_if_false @JFUD_11205
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_OUT")

:JFUD_11205
goto @JFUD_11257

:JFUD_11212
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_11250
gosub @JFUD_9887

:JFUD_11250
goto @JFUD_574

:JFUD_11257
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_11449
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_11312
gosub @JFUD_9887
goto @JFUD_574

:JFUD_11312
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_11380
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_11366
gosub @JFUD_9887

:JFUD_11366
goto @JFUD_574
goto @JFUD_11442

:JFUD_11380
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_OUT")
goto_if_false @JFUD_11442
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_LIFT_OUT")

:JFUD_11442
goto @JFUD_11257

:JFUD_11449
if 
  $ffood_obj == 1
goto_if_false @JFUD_11505
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @JFUD_11505
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot4)
goto_if_false @JFUD_11505
Audio.ReportMissionAudioEventAtChar($scplayer, 1168)

:JFUD_11505
$shop_door_model_clothes = 0
$shop_keep_junkfud = 0
$num_of_food_stuffs = 2
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$ffood_obj = 0
Player.SetControl($player1, True)
Camera.RestoreJumpcut
if 
  $clothes_hat_cam_pointZ == 1
goto_if_false @JFUD_11576
Text.ClearHelp

:JFUD_11576
gosub @JFUD_12993
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_11710
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "SHP_THANK", "FOOD", 1000.0, False, False, False, True, -1)
$current_food_item = 0.0
$foodsmall_junkfud = Char.SetSayContext($clothes_hat_cam_pointY, 326)
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_THANK")
goto_if_false @JFUD_11703
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_THANK")

:JFUD_11703
goto @JFUD_11755

:JFUD_11710
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_11748
gosub @JFUD_9887

:JFUD_11748
goto @JFUD_574

:JFUD_11755
if 
  $current_food_item <> 1.0
goto_if_false @JFUD_11931
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_11810
gosub @JFUD_9887
goto @JFUD_574

:JFUD_11810
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_11878
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_11864
gosub @JFUD_9887

:JFUD_11864
goto @JFUD_574
goto @JFUD_11924

:JFUD_11878
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_THANK")
goto_if_false @JFUD_11924
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_THANK")

:JFUD_11924
goto @JFUD_11755

:JFUD_11931
if 
  not Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_12059
Task.PlayAnimNonInterruptable($clothes_hat_cam_pointY, "SHP_TRAY_POSE", "FOOD", 1000.0, False, False, False, True, -1)
$current_food_item = 0.0
if 
  Char.IsPlayingAnim($clothes_hat_cam_pointY, "SHP_TRAY_POSE")
goto_if_false @JFUD_12052
$current_food_item = Char.GetAnimCurrentTime($clothes_hat_cam_pointY, "SHP_TRAY_POSE")

:JFUD_12052
goto @JFUD_12104

:JFUD_12059
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_12097
gosub @JFUD_9887

:JFUD_12097
goto @JFUD_574

:JFUD_12104
if 
  Char.LocateOnFoot3D($scplayer, $keep_offX, $keep_offY, $keep_offZ, 1.0, 1.0, 4.0, True)
goto_if_false @JFUD_12343
wait 0
if 
  not Player.IsPlaying($player1)
goto_if_false @JFUD_12180
gosub @JFUD_9887
goto @JFUD_574

:JFUD_12180
if 
  Char.IsDead($clothes_hat_cam_pointY)
goto_if_false @JFUD_12248
gosub @JFUD_9710
s$shop_name = Shopping.GetLoaded()
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$jfud_keep_created
goto_if_false @JFUD_12234
gosub @JFUD_9887

:JFUD_12234
goto @JFUD_574
goto @JFUD_12336

:JFUD_12248
if 
  $lv_arm_LOD == 0
goto_if_false @JFUD_12336
if or
  Char.IsShooting($scplayer)
  Player.IsTargetingChar($player1, $clothes_hat_cam_pointY)
  Char.HasBeenDamagedByWeapon($clothes_hat_cam_pointY, WeaponType.AnyWeapon)
  $iSetPizzaPanic == 1
goto_if_false @JFUD_12336
$sample_name_shop = Char.SetSayContext($clothes_hat_cam_pointY, 322)
Task.HandsUp($clothes_hat_cam_pointY, -2)
$iSetPizzaPanic = 1
$lv_arm_LOD = 1

:JFUD_12336
goto @JFUD_12104

:JFUD_12343
$blob_flag_shop = 1

:JFUD_12350
return 

:JFUD_12352
if 
  $cost_menu_drawn_shops == 0
goto_if_false @JFUD_12991
Text.PrintHelpForever('FOOD_H')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @JFUD_12443
$cost_menu_shops = Menu.Create('FOODCHO', 29.0, 145.0, 93.0, 2, False, True, 1)
goto @JFUD_12684

:JFUD_12443
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @JFUD_12505
$cost_menu_shops = Menu.Create('FOODCHO', 29.0, 145.0, 93.0, 2, False, True, 1)
goto @JFUD_12684

:JFUD_12505
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @JFUD_12567
$cost_menu_shops = Menu.Create('FOODCHO', 29.0, 165.0, 93.0, 2, False, True, 1)
goto @JFUD_12684

:JFUD_12567
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @JFUD_12629
$cost_menu_shops = Menu.Create('FOODCHO', 29.0, 145.0, 93.0, 2, False, True, 1)
goto @JFUD_12684

:JFUD_12629
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @JFUD_12684
$cost_menu_shops = Menu.Create('FOODCHO', 29.0, 145.0, 93.0, 2, False, True, 1)

:JFUD_12684
Menu.SetColumnOrientation($cost_menu_shops, 0, 1)
Menu.SetColumn($cost_menu_shops, 0, 'MEAL', s$shop_item_price, 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetColumnOrientation($cost_menu_shops, 1, 2)
Menu.SetColumn($cost_menu_shops, 1, 'COST', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetItemWithNumber($cost_menu_shops, 1, 0, 'DOLLAR', $flag_food_message)
Menu.SetColumnWidth($cost_menu_shops, 0, 140)
Menu.SetColumnWidth($cost_menu_shops, 1, 46)
$cost_menu_drawn_shops = 1

:JFUD_12991
return 

:JFUD_12993
Object.Delete($shop_keep_heading_clothes)
return 
terminate_this_script 

//-------------External script 66 (CARMOD1)---------------

:CARMOD
$foodhealthy_junkfud = 0
$vomit_camX = 0
$vomit_camY = 0
$vomit_camZ = 0
$vomit_cam_point_junkfudX = 0.0
$vomit_cam_point_junkfudY = 0.0
$vomit_cam_point_junnkfudZ = 0.0
$sample_name_shops = 0.0
$mod_flag = 0.0
$control_flag_mod = 0.0
$number_of_colours = 0.0
$stored_paintjob_number = 0.0
$paintjob_number = 0.0
$paintjob_number_menu = 0.0
$cam_general_modX = 0.0
$cam_general_modY = 0.0
$cam_general_modZ = 0.0
$cam_general_look_at_modX = 0.0
$cam_general_look_at_modY = 0.0
$cam_general_look_at_modZ = 0.0
$wheel_cam_modX = 0.0
$wheel_cam_modY = 0.0
$wheel_cam_modZ = 0.0
$wheel_cam_look_at_modX = 0.0
$wheel_cam_look_at_modY = 0.0
$wheel_cam_look_at_modZ = 0.0
$spoiler_cam_modX = 0.0
$spoiler_cam_modY = 0.0
$spoiler_cam_modZ = 0.0
$spoiler_cam_look_at_modX = 0.0
$spoiler_cam_look_at_modY = 0.0
$spoiler_cam_look_at_modZ = 0.0
$wing_cam_modX = 0.0
$wing_cam_modY = 0.0
$wing_cam_modZ = 0.0
$wing_cam_look_at_modX = 0.0
$wing_cam_look_at_modY = 0.0
$wing_cam_look_at_modZ = 0.0
$roof_cam_modX = 0.0
$roof_cam_modY = 0.0
$roof_cam_modZ = 0.0
$roof_cam_look_at_modX = 0.0
$roof_cam_look_at_modY = 0.0
$roof_cam_look_at_modZ = 0.0
$bonnet_cam_modX = 0.0
$bonnet_cam_modY = 0.0
$bonnet_cam_modZ = 0.0
$bonnet_cam_look_at_modX = 0.0
$bonnet_cam_look_at_modY = 0.0
$bonnet_cam_look_at_modZ = 0.0
$exhaust_cam_modX = 0.0
$exhaust_cam_modY = 0.0
$exhaust_cam_modZ = 0.0
$exhaust_look_at_cam_modX = 0.0
$exhaust_look_at_cam_modY = 0.0
$exhaust_look_at_cam_modZ = 0.0
$front_fender_cam_modX = 0.0
$front_fender_cam_modY = 0.0
$front_fender_cam_modZ = 0.0
$front_fender_look_at_cam_modX = 0.0
$front_fender_look_at_cam_modY = 0.0
$front_fender_look_at_cam_modZ = 0.0
$rear_fender_cam_modX = 0.0
$rear_fender_cam_modY = 0.0
$rear_fender_cam_modZ = 0.0
$rear_fender_look_at_cam_modX = 0.0
$rear_fender_look_at_cam_modY = 0.0
$rear_fender_look_at_cam_modZ = 0.0
$lights_cam_modX = 0.0
$lights_cam_modY = 0.0
$lights_cam_modZ = 0.0
$lights_look_at_cam_modX = 0.0
$lights_look_at_cam_modY = 0.0
$lights_look_at_cam_modZ = 0.0
$front_bullbar_cam_modX = 0.0
$front_bullbar_cam_modY = 0.0
$front_bullbar_cam_modZ = 0.0
$front_bullbar_look_at_cam_modX = 0.0
$front_bullbar_look_at_cam_modY = 0.0
$front_bullbar_look_at_cam_modZ = 0.0
$rear_bullbar_cam_modX = 0.0
$rear_bullbar_cam_modY = 0.0
$rear_bullbar_cam_modZ = 0.0
$rear_bullbar_look_at_cam_modX = 0.0
$rear_bullbar_look_at_cam_modY = 0.0
$rear_bullbar_look_at_cam_modZ = 0.0
$nitro_cam_modX = 0.0
$nitro_cam_modY = 0.0
$nitro_cam_modZ = 0.0
$nitro_look_at_modX = 0.0
$nitro_look_at_modY = 0.0
$nitro_look_at_modZ = 0.0
$custom_paint_cam_modX = 0.0
$custom_paint_cam_modY = 0.0
$custom_paint_cam_modZ = 0.0
$custom_paint_cam_look_at_modX = 0.0
$custom_paint_cam_look_at_modY = 0.0
$custom_paint_cam_look_at_modZ = 0.0
$misc_cam_modX = 0.0
$misc_cam_modY = 0.0
$misc_cam_modZ = 0.0
$misc_cam_look_at_modX = 0.0
$misc_cam_look_at_modY = 0.0
$foodmed_junkfud = 0
$misc_cam_look_at_modZ = 0
$no_of_mods_for_vehicle = 0
$mod_garage_offsetZ = 0
$mod_swap_camX = 0
$mod_swap_camY = 0
$mod_swap_camZ = 0
$mod_swap_look_at_camX = 0
$mod_swap_look_at_camY = 0
$mod_swap_look_at_camZ = 0
$new_mod_index_wil = 0
$upgradetype_mod = 0
$wing_mod_counter = 0
$roof_mod_counter = 0
$exhaust_mod_counter = 0
$nitro_mod_counter = 0
$spolier_mod_counter = 0
$bonnet_mod_counter = 0
$bonnetLR_mod_counter = 0
$10401 = 0
$10402 = 0
$10403 = 0
$10407 = 0
$10406 = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$10408 = 0
$10409 = 0
$mod_model_index = 0
$flag_car_same_colour = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$unk10416 = 0.0
$unk10417 = 0.0
$just_replaced_car_mod = 0.0
$colour_menu_drawn_shops = 0
$car_locate_modX = 0
$car_locate_modY = 0
$car_locate_modZ = 0
$stored_mod_garage_car = 0
$forth_menu_item1 = 0
$10433 = 0
$forth_menu_item2 = 0
$10435 = 0
$forth_menu_shops = 0
$forth_menu_drawn_shops = 0
$upgrade_meun4_selected = 0
$10471 = 0
$10473 = 0
$10474 = 0
$10475 = 0
$10476 = 0
set_deatharrest_state 0
script_name 'CARMOD'

:CARMOD_1406
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @CARMOD_13936
if 
  $disable_mod_garage == 0
goto_if_false @CARMOD_13929
if 
  $foodmed_junkfud > 0
goto_if_false @CARMOD_1542
if 
  Game.HasLanguageChanged
goto_if_false @CARMOD_1542
Text.ClearHelp
Menu.Delete($main_menu_shops)
Menu.Delete($sub_menu_shops)
Menu.Delete($flag_cant_mod)
Menu.Delete($number_of_mods_in_section)
Menu.Delete($colour_menu_shops)
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$flag_car_same_colour = 0
$mod_model_index = 0
$colour_menu_drawn_shops = 0
$current_Language = Game.GetCurrentLanguage()

:CARMOD_1542
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @CARMOD_13929
$original_car_mod = Char.StoreCarIsInNoSave($scplayer)
if 
  $foodmed_junkfud == 0
goto_if_false @CARMOD_3943
if or
  Char.LocateStoppedInCar3D($scplayer, 1042.013, -1019.927, 31.127, 4.0, 4.0, 2.0, True)
  Char.LocateStoppedInCar3D($scplayer, -1935.528, 247.029, 33.561, 4.0, 4.0, 2.0, True)
  Char.LocateStoppedInCar3D($scplayer, 2387.075, 1050.511, 9.812, 4.0, 4.0, 2.0, True)
goto_if_false @CARMOD_2548
$original_car_mod = Char.StoreCarIsInNoSave($scplayer)
if 
  Char.IsSittingInCar($scplayer, $original_car_mod)
goto_if_false @CARMOD_2521
if and
//  not Char.IsInFlyingVehicle($scplayer)
//  not Char.IsInAnyBoat($scplayer)
//  not Car.IsBig($original_car_mod)
//  not Car.IsEmergencyServices($original_car_mod)
goto_if_false @CARMOD_2466
gosub @CARMOD_23687
if 
  $10471 <> 0
goto_if_false @CARMOD_2411
if and
  not Car.IsStreetRacer($original_car_mod)
  not Car.IsLowRider($original_car_mod)
goto_if_false @CARMOD_2356
if 
  $foodlarge_junkfud == 0
goto_if_false @CARMOD_1870
Player.SetControl($player1, False)
Game.SetMinigameInProgress(True)
Audio.SetRadioToPlayersFavouriteStation
$upgrade_meun4_selected = Car.GetDoorLockStatus($original_car_mod)
Car.LockDoors($original_car_mod, CarLock.LockedPlayerInside)
Camera.DoFade(1000, Fade.Out)
$foodlarge_junkfud = 1

:CARMOD_1870
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_1919
if 
  not Camera.GetFadingStatus
goto_if_false @CARMOD_1919
Text.SetAreaName('CARMOD1')
$foodlarge_junkfud = 2

:CARMOD_1919
if 
  $foodlarge_junkfud == 2
goto_if_false @CARMOD_2349
if 
  Char.LocateStoppedInCar3D($scplayer, 1042.013, -1019.927, 31.127, 4.0, 4.0, 2.0, False)
goto_if_false @CARMOD_2022
$unk10416 = 1042.013
$unk10417 = -1019.927
$just_replaced_car_mod = 31.127
goto @CARMOD_2185

:CARMOD_2022
if 
  Char.LocateStoppedInCar3D($scplayer, -1935.528, 247.029, 33.561, 4.0, 4.0, 2.0, False)
goto_if_false @CARMOD_2107
$unk10416 = -1935.9255
$unk10417 = 228.6500
$just_replaced_car_mod = 33.8182
goto @CARMOD_2185

:CARMOD_2107
if 
  Char.LocateStoppedInCar3D($scplayer, 2387.075, 1050.511, 9.812, 4.0, 4.0, 2.0, False)
goto_if_false @CARMOD_2185
$unk10416 = 2386.5205
$unk10417 = 1037.7972
$just_replaced_car_mod = 10.7

:CARMOD_2185
$custom_paint_cam_modZ = 0.0
$custom_paint_cam_look_at_modX = 0.0
$custom_paint_cam_look_at_modY = 0.0
Streaming.SetAreaVisible(1)
Char.SetAreaVisible($scplayer, 1)
Car.SetAreaVisible($original_car_mod, 1)
Shopping.Load("CARMOD1")
Shopping.LoadPrices("CARMODS")
Streaming.RequestCollision(617.536, -1.99)
Streaming.LoadScene(617.536, -1.99, 999.98)
Car.SetCoordinates($original_car_mod, 617.536, -1.99, 999.98)
Car.SetHeading($original_car_mod, 90.0)
$10473 = 1
$forth_menu_drawn_shops = 0
$10406 = 0
$foodlarge_junkfud = 0
$foodmed_junkfud = 1

:CARMOD_2349
goto @CARMOD_2404

:CARMOD_2356
if 
  $10406 == 0
goto_if_false @CARMOD_2404
Text.PrintNow('MODNO', 5000, 1)
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_2404
goto @CARMOD_2459

:CARMOD_2411
if 
  $10406 == 0
goto_if_false @CARMOD_2459
Text.PrintNow('MODNO2', 5000, 1)
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_2459
goto @CARMOD_2514

:CARMOD_2466
if 
  $10406 == 0
goto_if_false @CARMOD_2514
Text.PrintNow('MODNO2', 5000, 1)
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_2514
goto @CARMOD_2541

:CARMOD_2521
World.SwitchEntryExit('CARMOD1', False)
$10406 = 0

:CARMOD_2541
goto @CARMOD_2568

:CARMOD_2548
World.SwitchEntryExit('CARMOD1', False)
$10406 = 0

:CARMOD_2568
if 
  Char.LocateStoppedInCar3D($scplayer, 2645.112, -2045.745, 12.607, 4.0, 4.0, 4.0, True)
goto_if_false @CARMOD_3236
$original_car_mod = Char.StoreCarIsInNoSave($scplayer)
if 
  Char.IsSittingInCar($scplayer, $original_car_mod)
goto_if_false @CARMOD_3209
if and
//  not Char.IsInFlyingVehicle($scplayer)
//  not Char.IsInAnyBoat($scplayer)
//  not Car.IsBig($original_car_mod)
//  not Car.IsEmergencyServices($original_car_mod)
goto_if_false @CARMOD_3161
gosub @CARMOD_23687
if 
  $10471 <> 0
goto_if_false @CARMOD_3106
if 
  Car.IsLowRider($original_car_mod)
goto_if_false @CARMOD_3051
if 
  $foodlarge_junkfud == 0
goto_if_false @CARMOD_2783
Player.SetControl($player1, False)
Game.SetMinigameInProgress(True)
Audio.SetRadioToPlayersFavouriteStation
$upgrade_meun4_selected = Car.GetDoorLockStatus($original_car_mod)
Car.LockDoors($original_car_mod, CarLock.LockedPlayerInside)
$10472 = Car.GetModel($original_car_mod)
Camera.DoFade(1000, Fade.Out)
$foodlarge_junkfud = 1

:CARMOD_2783
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_2832
if 
  not Camera.GetFadingStatus
goto_if_false @CARMOD_2832
Text.SetAreaName('CARMOD2')
$foodlarge_junkfud = 2

:CARMOD_2832
if 
  $foodlarge_junkfud == 2
goto_if_false @CARMOD_3044
$forth_menu_drawn_shops = 1
$unk10416 = 2645.112
$unk10417 = -2045.745
$just_replaced_car_mod = 12.607
Streaming.SetAreaVisible(2)
Char.SetAreaVisible($scplayer, 2)
Car.SetAreaVisible($original_car_mod, 2)
Shopping.Load("CARMOD2")
Shopping.LoadPrices("CARMODS")
Streaming.RequestCollision(616.783, -74.815)
Streaming.LoadScene(616.783, -74.815, 997.014)
Car.SetCoordinates($original_car_mod, 616.783, -74.815, 997.014)
Car.SetHeading($original_car_mod, 90.0)
$10474 = 1
$custom_paint_cam_modZ = 0.0
$custom_paint_cam_look_at_modX = 0.0
$custom_paint_cam_look_at_modY = 0.0
$10406 = 0
$foodlarge_junkfud = 0
$foodmed_junkfud = 1

:CARMOD_3044
goto @CARMOD_3099

:CARMOD_3051
if 
  $10406 == 0
goto_if_false @CARMOD_3099
Text.PrintNow('MODNO', 5000, 1)
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_3099
goto @CARMOD_3154

:CARMOD_3106
if 
  $10406 == 0
goto_if_false @CARMOD_3154
Text.PrintNow('MODNO2', 5000, 1)
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_3154
goto @CARMOD_3202

:CARMOD_3161
if 
  $10406 == 0
goto_if_false @CARMOD_3202
Text.PrintNow('MODNO2', 5000, 1)
$foodmed_junkfud = 0

:CARMOD_3202
goto @CARMOD_3229

:CARMOD_3209
World.SwitchEntryExit('CARMOD2', False)
$10406 = 0

:CARMOD_3229
goto @CARMOD_3256

:CARMOD_3236
World.SwitchEntryExit('CARMOD2', False)
$10406 = 0

:CARMOD_3256
if 
  Char.LocateStoppedInCar3D($scplayer, -2723.845, 217.804, 3.585, 4.0, 4.0, 1.0, True)
goto_if_false @CARMOD_3923
$original_car_mod = Char.StoreCarIsInNoSave($scplayer)
if 
  Char.IsSittingInCar($scplayer, $original_car_mod)
goto_if_false @CARMOD_3896
if and
//  not Char.IsInFlyingVehicle($scplayer)
//  not Char.IsInAnyBoat($scplayer)
//  not Car.IsBig($original_car_mod)
//  not Car.IsEmergencyServices($original_car_mod)
goto_if_false @CARMOD_3841
gosub @CARMOD_23687
if 
  $10471 <> 0
goto_if_false @CARMOD_3786
if 
  Car.IsStreetRacer($original_car_mod)
goto_if_false @CARMOD_3731
if 
  $foodlarge_junkfud == 0
goto_if_false @CARMOD_3463
Player.SetControl($player1, False)
Game.SetMinigameInProgress(True)
Audio.SetRadioToPlayersFavouriteStation
$upgrade_meun4_selected = Car.GetDoorLockStatus($original_car_mod)
Car.LockDoors($original_car_mod, CarLock.LockedPlayerInside)
Camera.DoFade(1000, Fade.Out)
$foodlarge_junkfud = 1

:CARMOD_3463
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_3512
if 
  not Camera.GetFadingStatus
goto_if_false @CARMOD_3512
Text.SetAreaName('CARMOD3')
$foodlarge_junkfud = 2

:CARMOD_3512
if 
  $foodlarge_junkfud == 2
goto_if_false @CARMOD_3724
$custom_paint_cam_modZ = 0.0
$custom_paint_cam_look_at_modX = 0.0
$custom_paint_cam_look_at_modY = 0.0
$unk10416 = -2723.845
$unk10417 = 217.804
$just_replaced_car_mod = 3.585
Streaming.SetAreaVisible(3)
Char.SetAreaVisible($scplayer, 3)
Car.SetAreaVisible($original_car_mod, 3)
$forth_menu_drawn_shops = 0
$10475 = 1
Shopping.Load("CARMOD3")
Shopping.LoadPrices("CARMODS")
Streaming.RequestCollision(615.286, -124.239)
Streaming.LoadScene(615.286, -124.239, 996.995)
Car.SetCoordinates($original_car_mod, 615.286, -124.239, 996.995)
Car.SetHeading($original_car_mod, 90.0)
$10406 = 0
$foodlarge_junkfud = 0
$foodmed_junkfud = 1

:CARMOD_3724
goto @CARMOD_3779

:CARMOD_3731
if 
  $10406 == 0
goto_if_false @CARMOD_3779
Text.PrintNow('MODNO', 5000, 1)
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_3779
goto @CARMOD_3834

:CARMOD_3786
if 
  $10406 == 0
goto_if_false @CARMOD_3834
Text.PrintNow('MODNO2', 5000, 1)
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_3834
goto @CARMOD_3889

:CARMOD_3841
if 
  $10406 == 0
goto_if_false @CARMOD_3889
Text.PrintNow('MODNO2', 5000, 1)
$10406 = 1
$foodmed_junkfud = 0

:CARMOD_3889
goto @CARMOD_3916

:CARMOD_3896
World.SwitchEntryExit('CARMOD3', False)
$10406 = 0

:CARMOD_3916
goto @CARMOD_3943

:CARMOD_3923
World.SwitchEntryExit('CARMOD3', False)
$10406 = 0

:CARMOD_3943
if 
  $foodmed_junkfud == 1
goto_if_false @CARMOD_9080
s$shop_name = Shopping.GetLoaded()
World.SetExtraColors(4, False)
if 
  Car.IsStreetRacer($original_car_mod)
goto_if_false @CARMOD_5615
$vomit_cam_point_junkfudX = 611.2935
add_float_var_to_float_var $vomit_cam_point_junkfudX += $custom_paint_cam_modZ
$vomit_cam_point_junkfudY = -121.2534
add_float_var_to_float_var $vomit_cam_point_junkfudY += $custom_paint_cam_look_at_modX
$vomit_cam_point_junnkfudZ = 999.0341
add_float_var_to_float_var $vomit_cam_point_junnkfudZ += $custom_paint_cam_look_at_modY
$sample_name_shops = 612.0599
add_float_var_to_float_var $sample_name_shops += $custom_paint_cam_modZ
$mod_flag = -121.7974
add_float_var_to_float_var $mod_flag += $custom_paint_cam_look_at_modX
$control_flag_mod = 998.6927
add_float_var_to_float_var $control_flag_mod += $custom_paint_cam_look_at_modY
$number_of_colours = 612.551
add_float_var_to_float_var $number_of_colours += $custom_paint_cam_modZ
$stored_paintjob_number = -126.8767
add_float_var_to_float_var $stored_paintjob_number += $custom_paint_cam_look_at_modX
$paintjob_number = 997.6746
add_float_var_to_float_var $paintjob_number += $custom_paint_cam_look_at_modY
$paintjob_number_menu = 613.1689
add_float_var_to_float_var $paintjob_number_menu += $custom_paint_cam_modZ
$cam_general_modX = -126.0916
add_float_var_to_float_var $cam_general_modX += $custom_paint_cam_look_at_modX
$cam_general_modY = 997.6324
add_float_var_to_float_var $cam_general_modY += $custom_paint_cam_look_at_modY
$cam_general_modZ = 615.7711
add_float_var_to_float_var $cam_general_modZ += $custom_paint_cam_modZ
$cam_general_look_at_modX = -126.8826
add_float_var_to_float_var $cam_general_look_at_modX += $custom_paint_cam_look_at_modX
$cam_general_look_at_modY = 998.7869
add_float_var_to_float_var $cam_general_look_at_modY += $custom_paint_cam_look_at_modY
$cam_general_look_at_modZ = 616.1115
add_float_var_to_float_var $cam_general_look_at_modZ += $custom_paint_cam_modZ
$wheel_cam_modX = -125.981
add_float_var_to_float_var $wheel_cam_modX += $custom_paint_cam_look_at_modX
$wheel_cam_modY = 998.52
add_float_var_to_float_var $wheel_cam_modY += $custom_paint_cam_look_at_modY
$wheel_cam_modZ = 612.551
add_float_var_to_float_var $wheel_cam_modZ += $custom_paint_cam_modZ
$wheel_cam_look_at_modX = -126.8767
add_float_var_to_float_var $wheel_cam_look_at_modX += $custom_paint_cam_look_at_modX
$wheel_cam_look_at_modY = 997.6746
add_float_var_to_float_var $wheel_cam_look_at_modY += $custom_paint_cam_look_at_modY
$wheel_cam_look_at_modZ = 613.1689
add_float_var_to_float_var $wheel_cam_look_at_modZ += $custom_paint_cam_modZ
$spoiler_cam_modX = -126.0916
add_float_var_to_float_var $spoiler_cam_modX += $custom_paint_cam_look_at_modX
$spoiler_cam_modY = 997.6324
add_float_var_to_float_var $spoiler_cam_modY += $custom_paint_cam_look_at_modY
$spoiler_cam_modZ = 611.6899
add_float_var_to_float_var $spoiler_cam_modZ += $custom_paint_cam_modZ
$spoiler_cam_look_at_modX = -124.1341
add_float_var_to_float_var $spoiler_cam_look_at_modX += $custom_paint_cam_look_at_modX
$spoiler_cam_look_at_modY = 998.957
add_float_var_to_float_var $spoiler_cam_look_at_modY += $custom_paint_cam_look_at_modY
$spoiler_cam_look_at_modZ = 612.6635
add_float_var_to_float_var $spoiler_cam_look_at_modZ += $custom_paint_cam_modZ
$wing_cam_modX = -124.0004
add_float_var_to_float_var $wing_cam_modX += $custom_paint_cam_look_at_modX
$wing_cam_modY = 998.772
add_float_var_to_float_var $wing_cam_modY += $custom_paint_cam_look_at_modY
$wing_cam_modZ = 610.8686
add_float_var_to_float_var $wing_cam_modZ += $custom_paint_cam_modZ
$wing_cam_look_at_modX = -123.9456
add_float_var_to_float_var $wing_cam_look_at_modX += $custom_paint_cam_look_at_modX
$wing_cam_look_at_modY = 998.8293
add_float_var_to_float_var $wing_cam_look_at_modY += $custom_paint_cam_look_at_modY
$wing_cam_look_at_modZ = 611.8196
add_float_var_to_float_var $wing_cam_look_at_modZ += $custom_paint_cam_modZ
$roof_cam_modX = -123.8469
add_float_var_to_float_var $roof_cam_modX += $custom_paint_cam_look_at_modX
$roof_cam_modY = 998.5366
add_float_var_to_float_var $roof_cam_modY += $custom_paint_cam_look_at_modY
$roof_cam_modZ = 618.9148
add_float_var_to_float_var $roof_cam_modZ += $custom_paint_cam_modZ
$roof_cam_look_at_modX = -125.9082
add_float_var_to_float_var $roof_cam_look_at_modX += $custom_paint_cam_look_at_modX
$roof_cam_look_at_modY = 997.2668
add_float_var_to_float_var $roof_cam_look_at_modY += $custom_paint_cam_look_at_modY
$roof_cam_look_at_modZ = 618.0776
add_float_var_to_float_var $roof_cam_look_at_modZ += $custom_paint_cam_modZ
$bonnet_cam_modX = -125.3645
add_float_var_to_float_var $bonnet_cam_modX += $custom_paint_cam_look_at_modX
$bonnet_cam_modY = 997.3261
add_float_var_to_float_var $bonnet_cam_modY += $custom_paint_cam_look_at_modY
$bonnet_cam_modZ = 611.384
add_float_var_to_float_var $bonnet_cam_modZ += $custom_paint_cam_modZ
$bonnet_cam_look_at_modX = -122.4332
add_float_var_to_float_var $bonnet_cam_look_at_modX += $custom_paint_cam_look_at_modX
$bonnet_cam_look_at_modY = 997.4291
add_float_var_to_float_var $bonnet_cam_look_at_modY += $custom_paint_cam_look_at_modY
$bonnet_cam_look_at_modZ = 612.2263
add_float_var_to_float_var $bonnet_cam_look_at_modZ += $custom_paint_cam_modZ
$exhaust_cam_modX = -122.972
add_float_var_to_float_var $exhaust_cam_modX += $custom_paint_cam_look_at_modX
$exhaust_cam_modY = 997.4357
add_float_var_to_float_var $exhaust_cam_modY += $custom_paint_cam_look_at_modY
$exhaust_cam_modZ = 618.9148
add_float_var_to_float_var $exhaust_cam_modZ += $custom_paint_cam_modZ
$exhaust_look_at_cam_modX = -125.9082
add_float_var_to_float_var $exhaust_look_at_cam_modX += $custom_paint_cam_look_at_modX
$exhaust_look_at_cam_modY = 997.2668
add_float_var_to_float_var $exhaust_look_at_cam_modY += $custom_paint_cam_look_at_modY
$exhaust_look_at_cam_modZ = 618.0776
add_float_var_to_float_var $exhaust_look_at_cam_modZ += $custom_paint_cam_modZ
$front_fender_cam_modX = -125.3645
add_float_var_to_float_var $front_fender_cam_modX += $custom_paint_cam_look_at_modX
$front_fender_cam_modY = 997.3261
add_float_var_to_float_var $front_fender_cam_modY += $custom_paint_cam_look_at_modY
$front_fender_cam_modZ = 611.1373
add_float_var_to_float_var $front_fender_cam_modZ += $custom_paint_cam_modZ
$front_fender_look_at_cam_modX = -124.2795
add_float_var_to_float_var $front_fender_look_at_cam_modX += $custom_paint_cam_look_at_modX
$front_fender_look_at_cam_modY = 998.1324
add_float_var_to_float_var $front_fender_look_at_cam_modY += $custom_paint_cam_look_at_modY
$front_fender_look_at_cam_modZ = 612.1359
add_float_var_to_float_var $front_fender_look_at_cam_modZ += $custom_paint_cam_modZ
$rear_fender_cam_modX = -124.2299
add_float_var_to_float_var $rear_fender_cam_modX += $custom_paint_cam_look_at_modX
$rear_fender_cam_modY = 998.1481
add_float_var_to_float_var $rear_fender_cam_modY += $custom_paint_cam_look_at_modY
$rear_fender_cam_modZ = 610.8206
add_float_var_to_float_var $rear_fender_cam_modZ += $custom_paint_cam_modZ
$rear_fender_look_at_cam_modX = -126.0154
add_float_var_to_float_var $rear_fender_look_at_cam_modX += $custom_paint_cam_look_at_modX
$rear_fender_look_at_cam_modY = 997.3317
add_float_var_to_float_var $rear_fender_look_at_cam_modY += $custom_paint_cam_look_at_modY
$rear_fender_look_at_cam_modZ = 611.6263
add_float_var_to_float_var $rear_fender_look_at_cam_modZ += $custom_paint_cam_modZ
$lights_cam_modX = -125.4232
add_float_var_to_float_var $lights_cam_modX += $custom_paint_cam_look_at_modX
$lights_cam_modY = 997.3185
add_float_var_to_float_var $lights_cam_modY += $custom_paint_cam_look_at_modY
$lights_cam_modZ = 619.0011
add_float_var_to_float_var $lights_cam_modZ += $custom_paint_cam_modZ
$lights_look_at_cam_modX = -126.195
add_float_var_to_float_var $lights_look_at_cam_modX += $custom_paint_cam_look_at_modX
$lights_look_at_cam_modY = 997.444
add_float_var_to_float_var $lights_look_at_cam_modY += $custom_paint_cam_look_at_modY
$lights_look_at_cam_modZ = 618.3423
add_float_var_to_float_var $lights_look_at_cam_modZ += $custom_paint_cam_modZ
$front_bullbar_cam_modX = -125.4429
add_float_var_to_float_var $front_bullbar_cam_modX += $custom_paint_cam_look_at_modX
$front_bullbar_cam_modY = 997.461
add_float_var_to_float_var $front_bullbar_cam_modY += $custom_paint_cam_look_at_modY
$front_bullbar_cam_modZ = 617.8134
add_float_var_to_float_var $front_bullbar_cam_modZ += $custom_paint_cam_modZ
$front_bullbar_look_at_cam_modX = -126.8104
add_float_var_to_float_var $front_bullbar_look_at_cam_modX += $custom_paint_cam_look_at_modX
$front_bullbar_look_at_cam_modY = 999.6476
add_float_var_to_float_var $front_bullbar_look_at_cam_modY += $custom_paint_cam_look_at_modY
$front_bullbar_look_at_cam_modZ = 617.3374
add_float_var_to_float_var $front_bullbar_look_at_cam_modZ += $custom_paint_cam_modZ
$rear_bullbar_cam_modX = -126.1012
add_float_var_to_float_var $rear_bullbar_cam_modX += $custom_paint_cam_look_at_modX
$rear_bullbar_cam_modY = 999.1275
add_float_var_to_float_var $rear_bullbar_cam_modY += $custom_paint_cam_look_at_modY
$rear_bullbar_cam_modZ = 611.2935
add_float_var_to_float_var $rear_bullbar_cam_modZ += $custom_paint_cam_modZ
$rear_bullbar_look_at_cam_modX = -121.2534
add_float_var_to_float_var $rear_bullbar_look_at_cam_modX += $custom_paint_cam_look_at_modX
$rear_bullbar_look_at_cam_modY = 999.0341
add_float_var_to_float_var $rear_bullbar_look_at_cam_modY += $custom_paint_cam_look_at_modY
$rear_bullbar_look_at_cam_modZ = 612.0599
add_float_var_to_float_var $rear_bullbar_look_at_cam_modZ += $custom_paint_cam_modZ
$nitro_cam_modX = -121.7974
add_float_var_to_float_var $nitro_cam_modX += $custom_paint_cam_look_at_modX
$nitro_cam_modY = 998.6927
add_float_var_to_float_var $nitro_cam_modY += $custom_paint_cam_look_at_modY
$nitro_cam_modZ = 611.2935
add_float_var_to_float_var $nitro_cam_modZ += $custom_paint_cam_modZ
$nitro_look_at_modX = -121.2534
add_float_var_to_float_var $nitro_look_at_modX += $custom_paint_cam_look_at_modX
$nitro_look_at_modY = 999.0341
add_float_var_to_float_var $nitro_look_at_modY += $custom_paint_cam_look_at_modY
$nitro_look_at_modZ = 612.0599
add_float_var_to_float_var $nitro_look_at_modZ += $custom_paint_cam_modZ
$custom_paint_cam_modX = -121.7974
add_float_var_to_float_var $custom_paint_cam_modX += $custom_paint_cam_look_at_modX
$custom_paint_cam_modY = 998.6927
add_float_var_to_float_var $custom_paint_cam_modY += $custom_paint_cam_look_at_modY
goto @CARMOD_9012

:CARMOD_5615
if 
  Car.IsLowRider($original_car_mod)
goto_if_false @CARMOD_7392
$vomit_cam_point_junkfudX = 611.9196
add_float_var_to_float_var $vomit_cam_point_junkfudX += $custom_paint_cam_modZ
$vomit_cam_point_junkfudY = -71.983
add_float_var_to_float_var $vomit_cam_point_junkfudY += $custom_paint_cam_look_at_modX
$vomit_cam_point_junnkfudZ = 998.9867
add_float_var_to_float_var $vomit_cam_point_junnkfudZ += $custom_paint_cam_look_at_modY
$sample_name_shops = 612.8176
add_float_var_to_float_var $sample_name_shops += $custom_paint_cam_modZ
$mod_flag = -72.3798
add_float_var_to_float_var $mod_flag += $custom_paint_cam_look_at_modX
$control_flag_mod = 998.7969
add_float_var_to_float_var $control_flag_mod += $custom_paint_cam_look_at_modY
$number_of_colours = 613.5045
add_float_var_to_float_var $number_of_colours += $custom_paint_cam_modZ
$stored_paintjob_number = -77.61
add_float_var_to_float_var $stored_paintjob_number += $custom_paint_cam_look_at_modX
$paintjob_number = 997.6773
add_float_var_to_float_var $paintjob_number += $custom_paint_cam_look_at_modY
$paintjob_number_menu = 614.0041
add_float_var_to_float_var $paintjob_number_menu += $custom_paint_cam_modZ
$cam_general_modX = -76.7527
add_float_var_to_float_var $cam_general_modX += $custom_paint_cam_look_at_modX
$cam_general_modY = 997.8019
add_float_var_to_float_var $cam_general_modY += $custom_paint_cam_look_at_modY
$cam_general_modZ = 617.6616
add_float_var_to_float_var $cam_general_modZ += $custom_paint_cam_modZ
$cam_general_look_at_modX = -77.5803
add_float_var_to_float_var $cam_general_look_at_modX += $custom_paint_cam_look_at_modX
$cam_general_look_at_modY = 998.5854
add_float_var_to_float_var $cam_general_look_at_modY += $custom_paint_cam_look_at_modY
$cam_general_look_at_modZ = 618.0117
add_float_var_to_float_var $cam_general_look_at_modZ += $custom_paint_cam_modZ
$wheel_cam_modX = -76.6793
add_float_var_to_float_var $wheel_cam_modX += $custom_paint_cam_look_at_modX
$wheel_cam_modY = 998.329
add_float_var_to_float_var $wheel_cam_modY += $custom_paint_cam_look_at_modY
$wheel_cam_modZ = 616.0645
add_float_var_to_float_var $wheel_cam_modZ += $custom_paint_cam_modZ
$wheel_cam_look_at_modX = -77.4652
add_float_var_to_float_var $wheel_cam_look_at_modX += $custom_paint_cam_look_at_modX
$wheel_cam_look_at_modY = 998.1566
add_float_var_to_float_var $wheel_cam_look_at_modY += $custom_paint_cam_look_at_modY
$wheel_cam_look_at_modZ = 616.6523
add_float_var_to_float_var $wheel_cam_look_at_modZ += $custom_paint_cam_modZ
$spoiler_cam_modX = -76.6904
add_float_var_to_float_var $spoiler_cam_modX += $custom_paint_cam_look_at_modX
$spoiler_cam_modY = 997.9242
add_float_var_to_float_var $spoiler_cam_modY += $custom_paint_cam_look_at_modY
$spoiler_cam_modZ = 615.7546
add_float_var_to_float_var $spoiler_cam_modZ += $custom_paint_cam_modZ
$spoiler_cam_look_at_modX = -77.9771
add_float_var_to_float_var $spoiler_cam_look_at_modX += $custom_paint_cam_look_at_modX
$spoiler_cam_look_at_modY = 999.3472
add_float_var_to_float_var $spoiler_cam_look_at_modY += $custom_paint_cam_look_at_modY
$spoiler_cam_look_at_modZ = 616.0991
add_float_var_to_float_var $spoiler_cam_look_at_modZ += $custom_paint_cam_modZ
$wing_cam_modX = -77.1049
add_float_var_to_float_var $wing_cam_modX += $custom_paint_cam_look_at_modX
$wing_cam_modY = 998.9999
add_float_var_to_float_var $wing_cam_modY += $custom_paint_cam_look_at_modY
$wing_cam_modZ = 612.3392
add_float_var_to_float_var $wing_cam_modZ += $custom_paint_cam_modZ
$wing_cam_look_at_modX = -74.6454
add_float_var_to_float_var $wing_cam_look_at_modX += $custom_paint_cam_look_at_modX
$wing_cam_look_at_modY = 998.7184
add_float_var_to_float_var $wing_cam_look_at_modY += $custom_paint_cam_look_at_modY
$wing_cam_look_at_modZ = 613.3315
add_float_var_to_float_var $wing_cam_look_at_modZ += $custom_paint_cam_modZ
$roof_cam_modX = -74.5934
add_float_var_to_float_var $roof_cam_modX += $custom_paint_cam_look_at_modX
$roof_cam_modY = 998.6063
add_float_var_to_float_var $roof_cam_modY += $custom_paint_cam_look_at_modY
$roof_cam_modZ = 620.7762
add_float_var_to_float_var $roof_cam_modZ += $custom_paint_cam_modZ
$roof_cam_look_at_modX = -76.6076
add_float_var_to_float_var $roof_cam_look_at_modX += $custom_paint_cam_look_at_modX
$roof_cam_look_at_modY = 997.2366
add_float_var_to_float_var $roof_cam_look_at_modY += $custom_paint_cam_look_at_modY
$roof_cam_look_at_modZ = 620.051
add_float_var_to_float_var $roof_cam_look_at_modZ += $custom_paint_cam_modZ
$bonnet_cam_modX = -75.9492
add_float_var_to_float_var $bonnet_cam_modX += $custom_paint_cam_look_at_modX
$bonnet_cam_modY = 997.4383
add_float_var_to_float_var $bonnet_cam_modY += $custom_paint_cam_look_at_modY
$bonnet_cam_modZ = 612.1144
add_float_var_to_float_var $bonnet_cam_modZ += $custom_paint_cam_modZ
$bonnet_cam_look_at_modX = -74.4962
add_float_var_to_float_var $bonnet_cam_look_at_modX += $custom_paint_cam_look_at_modX
$bonnet_cam_look_at_modY = 997.7816
add_float_var_to_float_var $bonnet_cam_look_at_modY += $custom_paint_cam_look_at_modY
$bonnet_cam_look_at_modZ = 613.111
add_float_var_to_float_var $bonnet_cam_look_at_modZ += $custom_paint_cam_modZ
$exhaust_cam_modX = -74.4536
add_float_var_to_float_var $exhaust_cam_modX += $custom_paint_cam_look_at_modX
$exhaust_cam_modY = 997.7114
add_float_var_to_float_var $exhaust_cam_modY += $custom_paint_cam_look_at_modY
$exhaust_cam_modZ = 620.7762
add_float_var_to_float_var $exhaust_cam_modZ += $custom_paint_cam_modZ
$exhaust_look_at_cam_modX = -76.6076
add_float_var_to_float_var $exhaust_look_at_cam_modX += $custom_paint_cam_look_at_modX
$exhaust_look_at_cam_modY = 997.2366
add_float_var_to_float_var $exhaust_look_at_cam_modY += $custom_paint_cam_look_at_modY
$exhaust_look_at_cam_modZ = 620.051
add_float_var_to_float_var $exhaust_look_at_cam_modZ += $custom_paint_cam_modZ
$front_fender_cam_modX = -75.9492
add_float_var_to_float_var $front_fender_cam_modX += $custom_paint_cam_look_at_modX
$front_fender_cam_modY = 997.4383
add_float_var_to_float_var $front_fender_cam_modY += $custom_paint_cam_look_at_modY
$front_fender_cam_modZ = 612.1144
add_float_var_to_float_var $front_fender_cam_modZ += $custom_paint_cam_modZ
$front_fender_look_at_cam_modX = -74.4962
add_float_var_to_float_var $front_fender_look_at_cam_modX += $custom_paint_cam_look_at_modX
$front_fender_look_at_cam_modY = 997.7816
add_float_var_to_float_var $front_fender_look_at_cam_modY += $custom_paint_cam_look_at_modY
$front_fender_look_at_cam_modZ = 613.111
add_float_var_to_float_var $front_fender_look_at_cam_modZ += $custom_paint_cam_modZ
$rear_fender_cam_modX = -74.4536
add_float_var_to_float_var $rear_fender_cam_modX += $custom_paint_cam_look_at_modX
$rear_fender_cam_modY = 997.7114
add_float_var_to_float_var $rear_fender_cam_modY += $custom_paint_cam_look_at_modY
$rear_fender_cam_modZ = 612.1144
add_float_var_to_float_var $rear_fender_cam_modZ += $custom_paint_cam_modZ
$rear_fender_look_at_cam_modX = -74.4962
add_float_var_to_float_var $rear_fender_look_at_cam_modX += $custom_paint_cam_look_at_modX
$rear_fender_look_at_cam_modY = 997.7816
add_float_var_to_float_var $rear_fender_look_at_cam_modY += $custom_paint_cam_look_at_modY
$rear_fender_look_at_cam_modZ = 613.111
add_float_var_to_float_var $rear_fender_look_at_cam_modZ += $custom_paint_cam_modZ
$lights_cam_modX = -74.4536
add_float_var_to_float_var $lights_cam_modX += $custom_paint_cam_look_at_modX
$lights_cam_modY = 997.7114
add_float_var_to_float_var $lights_cam_modY += $custom_paint_cam_look_at_modY
$lights_cam_modZ = 620.8461
add_float_var_to_float_var $lights_cam_modZ += $custom_paint_cam_modZ
$lights_look_at_cam_modX = -76.8773
add_float_var_to_float_var $lights_look_at_cam_modX += $custom_paint_cam_look_at_modX
$lights_look_at_cam_modY = 997.3512
add_float_var_to_float_var $lights_look_at_cam_modY += $custom_paint_cam_look_at_modY
$lights_look_at_cam_modZ = 620.2133
add_float_var_to_float_var $lights_look_at_cam_modZ += $custom_paint_cam_modZ
$front_bullbar_cam_modX = -76.1111
add_float_var_to_float_var $front_bullbar_cam_modX += $custom_paint_cam_look_at_modX
$front_bullbar_cam_modY = 997.4626
add_float_var_to_float_var $front_bullbar_cam_modY += $custom_paint_cam_look_at_modY
$front_bullbar_cam_modZ = 621.0414
add_float_var_to_float_var $front_bullbar_cam_modZ += $custom_paint_cam_modZ
$front_bullbar_look_at_cam_modX = -74.9455
add_float_var_to_float_var $front_bullbar_look_at_cam_modX += $custom_paint_cam_look_at_modX
$front_bullbar_look_at_cam_modY = 998.9329
add_float_var_to_float_var $front_bullbar_look_at_cam_modY += $custom_paint_cam_look_at_modY
$front_bullbar_look_at_cam_modZ = 620.0759
add_float_var_to_float_var $front_bullbar_look_at_cam_modZ += $custom_paint_cam_modZ
$rear_bullbar_cam_modX = -74.9535
add_float_var_to_float_var $rear_bullbar_cam_modX += $custom_paint_cam_look_at_modX
$rear_bullbar_cam_modY = 998.6727
add_float_var_to_float_var $rear_bullbar_cam_modY += $custom_paint_cam_look_at_modY
$rear_bullbar_cam_modZ = 612.2584
add_float_var_to_float_var $rear_bullbar_cam_modZ += $custom_paint_cam_modZ
$rear_bullbar_look_at_cam_modX = -72.1851
add_float_var_to_float_var $rear_bullbar_look_at_cam_modX += $custom_paint_cam_look_at_modX
$rear_bullbar_look_at_cam_modY = 998.8818
add_float_var_to_float_var $rear_bullbar_look_at_cam_modY += $custom_paint_cam_look_at_modY
$rear_bullbar_look_at_cam_modZ = 613.1286
add_float_var_to_float_var $rear_bullbar_look_at_cam_modZ += $custom_paint_cam_modZ
$nitro_cam_modX = -72.6701
add_float_var_to_float_var $nitro_cam_modX += $custom_paint_cam_look_at_modX
$nitro_cam_modY = 998.7961
add_float_var_to_float_var $nitro_cam_modY += $custom_paint_cam_look_at_modY
if 
  is_int_var_equal_to_constant $10472 == 534
goto_if_false @CARMOD_7277
$nitro_cam_modZ = 612.1144
add_float_var_to_float_var $nitro_cam_modZ += $custom_paint_cam_modZ
$nitro_look_at_modX = -74.4962
add_float_var_to_float_var $nitro_look_at_modX += $custom_paint_cam_look_at_modX
$nitro_look_at_modY = 997.7816
add_float_var_to_float_var $nitro_look_at_modY += $custom_paint_cam_look_at_modY
$nitro_look_at_modZ = 613.111
add_float_var_to_float_var $nitro_look_at_modZ += $custom_paint_cam_modZ
$custom_paint_cam_modX = -74.4536
add_float_var_to_float_var $custom_paint_cam_modX += $custom_paint_cam_look_at_modX
$custom_paint_cam_modY = 997.7114
add_float_var_to_float_var $custom_paint_cam_modY += $custom_paint_cam_look_at_modY
goto @CARMOD_7385

:CARMOD_7277
$nitro_cam_modZ = 615.7372
add_float_var_to_float_var $nitro_cam_modZ += $custom_paint_cam_modZ
$nitro_look_at_modX = -77.2556
add_float_var_to_float_var $nitro_look_at_modX += $custom_paint_cam_look_at_modX
$nitro_look_at_modY = 998.6337
add_float_var_to_float_var $nitro_look_at_modY += $custom_paint_cam_look_at_modY
$nitro_look_at_modZ = 616.2341
add_float_var_to_float_var $nitro_look_at_modZ += $custom_paint_cam_modZ
$custom_paint_cam_modX = -76.4031
add_float_var_to_float_var $custom_paint_cam_modX += $custom_paint_cam_look_at_modX
$custom_paint_cam_modY = 998.4717
add_float_var_to_float_var $custom_paint_cam_modY += $custom_paint_cam_look_at_modY

:CARMOD_7385
goto @CARMOD_9012

:CARMOD_7392
$vomit_cam_point_junkfudX = 612.7667
add_float_var_to_float_var $vomit_cam_point_junkfudX += $custom_paint_cam_modZ
$vomit_cam_point_junkfudY = 0.5696
add_float_var_to_float_var $vomit_cam_point_junkfudY += $custom_paint_cam_look_at_modX
$vomit_cam_point_junnkfudZ = 1002.114
add_float_var_to_float_var $vomit_cam_point_junnkfudZ += $custom_paint_cam_look_at_modY
$sample_name_shops = 613.6664
add_float_var_to_float_var $sample_name_shops += $custom_paint_cam_modZ
$mod_flag = 0.1645
add_float_var_to_float_var $mod_flag += $custom_paint_cam_look_at_modX
$control_flag_mod = 1001.951
add_float_var_to_float_var $control_flag_mod += $custom_paint_cam_look_at_modY
$number_of_colours = 614.4382
add_float_var_to_float_var $number_of_colours += $custom_paint_cam_modZ
$stored_paintjob_number = -4.5756
add_float_var_to_float_var $stored_paintjob_number += $custom_paint_cam_look_at_modX
$paintjob_number = 1000.632
add_float_var_to_float_var $paintjob_number += $custom_paint_cam_look_at_modY
$paintjob_number_menu = 614.9804
add_float_var_to_float_var $paintjob_number_menu += $custom_paint_cam_modZ
$cam_general_modX = -3.7381
add_float_var_to_float_var $cam_general_modX += $custom_paint_cam_look_at_modX
$cam_general_modY = 1000.565
add_float_var_to_float_var $cam_general_modY += $custom_paint_cam_look_at_modY
$cam_general_modZ = 618.1872
add_float_var_to_float_var $cam_general_modZ += $custom_paint_cam_modZ
$cam_general_look_at_modX = -5.3884
add_float_var_to_float_var $cam_general_look_at_modX += $custom_paint_cam_look_at_modX
$cam_general_look_at_modY = 1002.423
add_float_var_to_float_var $cam_general_look_at_modY += $custom_paint_cam_look_at_modY
$cam_general_look_at_modZ = 618.4805
add_float_var_to_float_var $cam_general_look_at_modZ += $custom_paint_cam_modZ
$wheel_cam_modX = -4.4899
add_float_var_to_float_var $wheel_cam_modX += $custom_paint_cam_look_at_modX
$wheel_cam_modY = 1002.097
add_float_var_to_float_var $wheel_cam_modY += $custom_paint_cam_look_at_modY
$wheel_cam_modZ = 615.6667
add_float_var_to_float_var $wheel_cam_modZ += $custom_paint_cam_modZ
$wheel_cam_look_at_modX = -4.5419
add_float_var_to_float_var $wheel_cam_look_at_modX += $custom_paint_cam_look_at_modX
$wheel_cam_look_at_modY = 1000.27
add_float_var_to_float_var $wheel_cam_look_at_modY += $custom_paint_cam_look_at_modY
$wheel_cam_look_at_modZ = 616.2391
add_float_var_to_float_var $wheel_cam_look_at_modZ += $custom_paint_cam_modZ
$spoiler_cam_modX = -3.7425
add_float_var_to_float_var $spoiler_cam_modX += $custom_paint_cam_look_at_modX
$spoiler_cam_modY = 1000.452
add_float_var_to_float_var $spoiler_cam_modY += $custom_paint_cam_look_at_modY
$spoiler_cam_modZ = 613.6697
add_float_var_to_float_var $spoiler_cam_modZ += $custom_paint_cam_modZ
$spoiler_cam_look_at_modX = -1.4788
add_float_var_to_float_var $spoiler_cam_look_at_modX += $custom_paint_cam_look_at_modX
$spoiler_cam_look_at_modY = 1002.232
add_float_var_to_float_var $spoiler_cam_look_at_modY += $custom_paint_cam_look_at_modY
$spoiler_cam_look_at_modZ = 614.647
add_float_var_to_float_var $spoiler_cam_look_at_modZ += $custom_paint_cam_modZ
$wing_cam_modX = -1.5313
add_float_var_to_float_var $wing_cam_modX += $custom_paint_cam_look_at_modX
$wing_cam_modY = 1002.027
add_float_var_to_float_var $wing_cam_modY += $custom_paint_cam_look_at_modY
$wing_cam_modZ = 613.5347
add_float_var_to_float_var $wing_cam_modZ += $custom_paint_cam_modZ
$wing_cam_look_at_modX = -1.7916
add_float_var_to_float_var $wing_cam_look_at_modX += $custom_paint_cam_look_at_modX
$wing_cam_look_at_modY = 1002.526
add_float_var_to_float_var $wing_cam_look_at_modY += $custom_paint_cam_look_at_modY
$wing_cam_look_at_modZ = 614.4059
add_float_var_to_float_var $wing_cam_look_at_modZ += $custom_paint_cam_modZ
$roof_cam_modX = -1.7952
add_float_var_to_float_var $roof_cam_modX += $custom_paint_cam_look_at_modX
$roof_cam_modY = 1002.035
add_float_var_to_float_var $roof_cam_modY += $custom_paint_cam_look_at_modY
$roof_cam_modZ = 621.9104
add_float_var_to_float_var $roof_cam_modZ += $custom_paint_cam_modZ
$roof_cam_look_at_modX = -3.6269
add_float_var_to_float_var $roof_cam_look_at_modX += $custom_paint_cam_look_at_modX
$roof_cam_look_at_modY = 1000.408
add_float_var_to_float_var $roof_cam_look_at_modY += $custom_paint_cam_look_at_modY
$roof_cam_look_at_modZ = 621.0475
add_float_var_to_float_var $roof_cam_look_at_modZ += $custom_paint_cam_modZ
$bonnet_cam_modX = -3.1303
add_float_var_to_float_var $bonnet_cam_modX += $custom_paint_cam_look_at_modX
$bonnet_cam_modY = 1000.314
add_float_var_to_float_var $bonnet_cam_modY += $custom_paint_cam_look_at_modY
$bonnet_cam_modZ = 611.6121
add_float_var_to_float_var $bonnet_cam_modZ += $custom_paint_cam_modZ
$bonnet_cam_look_at_modX = -1.4851
add_float_var_to_float_var $bonnet_cam_look_at_modX += $custom_paint_cam_look_at_modX
$bonnet_cam_look_at_modY = 1001.777
add_float_var_to_float_var $bonnet_cam_look_at_modY += $custom_paint_cam_look_at_modY
$bonnet_cam_look_at_modZ = 612.6027
add_float_var_to_float_var $bonnet_cam_look_at_modZ += $custom_paint_cam_modZ
$exhaust_cam_modX = -1.507
add_float_var_to_float_var $exhaust_cam_modX += $custom_paint_cam_look_at_modX
$exhaust_cam_modY = 1001.642
add_float_var_to_float_var $exhaust_cam_modY += $custom_paint_cam_look_at_modY
$exhaust_cam_modZ = 621.4796
add_float_var_to_float_var $exhaust_cam_modZ += $custom_paint_cam_modZ
$exhaust_look_at_cam_modX = -3.4952
add_float_var_to_float_var $exhaust_look_at_cam_modX += $custom_paint_cam_look_at_modX
$exhaust_look_at_cam_modY = 1000.33
add_float_var_to_float_var $exhaust_look_at_cam_modY += $custom_paint_cam_look_at_modY
$exhaust_look_at_cam_modZ = 620.5905
add_float_var_to_float_var $exhaust_look_at_cam_modZ += $custom_paint_cam_modZ
$front_fender_cam_modX = -3.0499
add_float_var_to_float_var $front_fender_cam_modX += $custom_paint_cam_look_at_modX
$front_fender_cam_modY = 1000.435
add_float_var_to_float_var $front_fender_cam_modY += $custom_paint_cam_look_at_modY
$front_fender_cam_modZ = 612.6115
add_float_var_to_float_var $front_fender_cam_modZ += $custom_paint_cam_modZ
$front_fender_look_at_cam_modX = -1.7655
add_float_var_to_float_var $front_fender_look_at_cam_modX += $custom_paint_cam_look_at_modX
$front_fender_look_at_cam_modY = 1001.3
add_float_var_to_float_var $front_fender_look_at_cam_modY += $custom_paint_cam_look_at_modY
$front_fender_look_at_cam_modZ = 613.5665
add_float_var_to_float_var $front_fender_look_at_cam_modZ += $custom_paint_cam_modZ
$rear_fender_cam_modX = -1.6304
add_float_var_to_float_var $rear_fender_cam_modX += $custom_paint_cam_look_at_modX
$rear_fender_cam_modY = 1001.036
add_float_var_to_float_var $rear_fender_cam_modY += $custom_paint_cam_look_at_modY
$rear_fender_cam_modZ = 611.6121
add_float_var_to_float_var $rear_fender_cam_modZ += $custom_paint_cam_modZ
$rear_fender_look_at_cam_modX = -1.4851
add_float_var_to_float_var $rear_fender_look_at_cam_modX += $custom_paint_cam_look_at_modX
$rear_fender_look_at_cam_modY = 1001.777
add_float_var_to_float_var $rear_fender_look_at_cam_modY += $custom_paint_cam_look_at_modY
$rear_fender_look_at_cam_modZ = 612.6027
add_float_var_to_float_var $rear_fender_look_at_cam_modZ += $custom_paint_cam_modZ
$lights_cam_modX = -1.507
add_float_var_to_float_var $lights_cam_modX += $custom_paint_cam_look_at_modX
$lights_cam_modY = 1001.642
add_float_var_to_float_var $lights_cam_modY += $custom_paint_cam_look_at_modY
$lights_cam_modZ = 621.4796
add_float_var_to_float_var $lights_cam_modZ += $custom_paint_cam_modZ
$lights_look_at_cam_modX = -3.4952
add_float_var_to_float_var $lights_look_at_cam_modX += $custom_paint_cam_look_at_modX
$lights_look_at_cam_modY = 1000.33
add_float_var_to_float_var $lights_look_at_cam_modY += $custom_paint_cam_look_at_modY
$lights_look_at_cam_modZ = 620.5905
add_float_var_to_float_var $lights_look_at_cam_modZ += $custom_paint_cam_modZ
$front_bullbar_cam_modX = -3.0499
add_float_var_to_float_var $front_bullbar_cam_modX += $custom_paint_cam_look_at_modX
$front_bullbar_cam_modY = 1000.435
add_float_var_to_float_var $front_bullbar_cam_modY += $custom_paint_cam_look_at_modY
$front_bullbar_cam_modZ = 622.5965
add_float_var_to_float_var $front_bullbar_cam_modZ += $custom_paint_cam_modZ
$front_bullbar_look_at_cam_modX = -2.014
add_float_var_to_float_var $front_bullbar_look_at_cam_modX += $custom_paint_cam_look_at_modX
$front_bullbar_look_at_cam_modY = 1003.019
add_float_var_to_float_var $front_bullbar_look_at_cam_modY += $custom_paint_cam_look_at_modY
$front_bullbar_look_at_cam_modZ = 621.7657
add_float_var_to_float_var $front_bullbar_look_at_cam_modZ += $custom_paint_cam_modZ
$rear_bullbar_cam_modX = -2.0174
add_float_var_to_float_var $rear_bullbar_cam_modX += $custom_paint_cam_look_at_modX
$rear_bullbar_cam_modY = 1002.462
add_float_var_to_float_var $rear_bullbar_cam_modY += $custom_paint_cam_look_at_modY
$rear_bullbar_cam_modZ = 612.7667
add_float_var_to_float_var $rear_bullbar_cam_modZ += $custom_paint_cam_modZ
$rear_bullbar_look_at_cam_modX = 0.5696
add_float_var_to_float_var $rear_bullbar_look_at_cam_modX += $custom_paint_cam_look_at_modX
$rear_bullbar_look_at_cam_modY = 1002.114
add_float_var_to_float_var $rear_bullbar_look_at_cam_modY += $custom_paint_cam_look_at_modY
$rear_bullbar_look_at_cam_modZ = 613.6664
add_float_var_to_float_var $rear_bullbar_look_at_cam_modZ += $custom_paint_cam_modZ
$nitro_cam_modX = 0.1645
add_float_var_to_float_var $nitro_cam_modX += $custom_paint_cam_look_at_modX
$nitro_cam_modY = 1001.951
add_float_var_to_float_var $nitro_cam_modY += $custom_paint_cam_look_at_modY
$nitro_cam_modZ = 613.5844
add_float_var_to_float_var $nitro_cam_modZ += $custom_paint_cam_modZ
$nitro_look_at_modX = -0.7127
add_float_var_to_float_var $nitro_look_at_modX += $custom_paint_cam_look_at_modX
$nitro_look_at_modY = 1002.031
add_float_var_to_float_var $nitro_look_at_modY += $custom_paint_cam_look_at_modY
$nitro_look_at_modZ = 614.5616
add_float_var_to_float_var $nitro_look_at_modZ += $custom_paint_cam_modZ
$custom_paint_cam_modX = -0.84
add_float_var_to_float_var $custom_paint_cam_modX += $custom_paint_cam_look_at_modX
$custom_paint_cam_modY = 1001.862
add_float_var_to_float_var $custom_paint_cam_modY += $custom_paint_cam_look_at_modY

:CARMOD_9012
TIMERA = 0
Hud.DisplayRadar(False)
Stat.ShowUpdateStats(False)
Camera.SetFixedPosition($vomit_cam_point_junkfudX, $vomit_cam_point_junkfudY, $vomit_cam_point_junnkfudZ, 0.0, 0.0, 0.0)
Camera.PointAtPoint($sample_name_shops, $mod_flag, $control_flag_mod, SwitchType.JumpCut)
$foodlarge_junkfud = 0
$foodmed_junkfud = 2

:CARMOD_9080
if 
  $foodmed_junkfud == 2
goto_if_false @CARMOD_9269
if 
  $foodlarge_junkfud == 0
goto_if_false @CARMOD_9169
World.SetCarDensityMultiplier(0.0)
$item_no_shops = Shopping.GetNumberOfItems()
$upgrade_meun2_selected, $mod_counter = Car.GetColors($original_car_mod)
$vomit_camX = Car.GetCurrentPaintjob($original_car_mod)
$10476 = Car.GetModel($original_car_mod)
Car.ResetHydraulics($original_car_mod)
Car.StoreModState
$foodlarge_junkfud = 1

:CARMOD_9169
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_9220
if 
  TIMERA > 2000
goto_if_false @CARMOD_9220
Camera.DoFade(1000, Fade.In)
$foodlarge_junkfud = 2

:CARMOD_9220
if 
  $foodlarge_junkfud == 2
goto_if_false @CARMOD_9269
if 
  not Camera.GetFadingStatus
goto_if_false @CARMOD_9269
Game.SetIsInStadium(True)
$foodlarge_junkfud = 0
$foodmed_junkfud = 3

:CARMOD_9269
if 
  $foodmed_junkfud == 3
goto_if_false @CARMOD_10198
if 
  $foodlarge_junkfud == 0
goto_if_false @CARMOD_9595
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_9337
gosub @CARMOD_15620
gosub @CARMOD_14259

:CARMOD_9337
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CARMOD_9571
$stored_mod_garage_car = 0
$forth_menu_item1 = 0
$10401 = Menu.GetItemSelected($main_menu_shops)
if 
  0 > $10401
goto_if_false @CARMOD_9401
$10401 = 0

:CARMOD_9401
if 
  $10389($10401,12i) <> 101
goto_if_false @CARMOD_9489
if 
  $10389($10401,12i) <> 100
goto_if_false @CARMOD_9467
$upgrade_meun1_selected = Car.GetCurrentMod($original_car_mod, $10389($10401,12i))
goto @CARMOD_9475

:CARMOD_9467
$vomit_camX = Car.GetCurrentPaintjob($original_car_mod)

:CARMOD_9475
gosub @CARMOD_17406
goto @CARMOD_9564

:CARMOD_9489
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $vomit_cam_point_junkfudX
set_var_float_to_var_float $misc_cam_modX = $vomit_cam_point_junkfudY
set_var_float_to_var_float $misc_cam_modY = $vomit_cam_point_junnkfudZ
set_var_float_to_var_float $misc_cam_modZ = $sample_name_shops
set_var_float_to_var_float $misc_cam_look_at_modX = $mod_flag
set_var_float_to_var_float $misc_cam_look_at_modY = $control_flag_mod
$item_price($10403,12i) = 150
$forth_menu_item2 = Car.GetModel($original_car_mod)
gosub @CARMOD_22337

:CARMOD_9564
$foodlarge_junkfud = 5

:CARMOD_9571
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CARMOD_9595
$foodlarge_junkfud = 1

:CARMOD_9595
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_9684
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CARMOD_9684
if 
  $main_menu_drawn_shops == 1
goto_if_false @CARMOD_9662
Menu.Delete($main_menu_shops)
Text.ClearHelp
$main_menu_drawn_shops = 0

:CARMOD_9662
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.Out)
$foodlarge_junkfud = 2

:CARMOD_9684
if 
  $foodlarge_junkfud == 2
goto_if_false @CARMOD_9897
if 
  not Camera.GetFadingStatus
goto_if_false @CARMOD_9897
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($scplayer, 0)
Car.SetAreaVisible($original_car_mod, 0)
World.ClearExtraColors(False)
Car.RestoreModState
$forth_menu_drawn_shops = 0
Streaming.RequestCollision($unk10416, $unk10417)
Streaming.LoadScene($unk10416, $unk10417, $just_replaced_car_mod)
Car.SetCoordinates($original_car_mod, $unk10416, $unk10417, $just_replaced_car_mod)
if 
  $10473 == 1
goto_if_false @CARMOD_9809
Car.SetHeading($original_car_mod, 0.0)
Camera.SetBehindPlayer

:CARMOD_9809
if 
  $10474 == 1
goto_if_false @CARMOD_9839
Car.SetHeading($original_car_mod, 180.0)
Camera.SetBehindPlayer

:CARMOD_9839
if 
  $10475 == 1
goto_if_false @CARMOD_9869
Car.SetHeading($original_car_mod, 90.0)
Camera.SetBehindPlayer

:CARMOD_9869
Game.ManageAllPopulation
Camera.RestoreJumpcut
Shopping.ClearLoaded
Camera.SetFadingColor(0, 0, 0)
Camera.DoFade(1000, Fade.In)
$foodlarge_junkfud = 3

:CARMOD_9897
if 
  $foodlarge_junkfud == 3
goto_if_false @CARMOD_9962
if 
  not Camera.GetFadingStatus
goto_if_false @CARMOD_9962
Player.SetControl($player1, True)
Game.SetMinigameInProgress(False)
Car.LockDoors($original_car_mod, $upgrade_meun4_selected)
Hud.DisplayRadar(True)
Game.SetIsInStadium(False)
$foodlarge_junkfud = 4

:CARMOD_9962
if 
  $foodlarge_junkfud == 4
goto_if_false @CARMOD_10078
if 
  not Char.LocateInCar3D($scplayer, $unk10416, $unk10417, $just_replaced_car_mod, 4.0, 4.0, 4.0, False)
goto_if_false @CARMOD_10078
World.SetCarDensityMultiplier(1.0)
$10406 = 0
$foodmed_junkfud = 0
$foodlarge_junkfud = 0
$10473 = 0
$10474 = 0
$10475 = 0
gosub @CARMOD_13950

:CARMOD_10078
if 
  $foodlarge_junkfud == 5
goto_if_false @CARMOD_10198
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CARMOD_10198
if 
  $main_menu_drawn_shops == 1
goto_if_false @CARMOD_10145
Menu.Delete($main_menu_shops)
Text.ClearHelp
$main_menu_drawn_shops = 0

:CARMOD_10145
Camera.SetFixedPosition($custom_paint_cam_look_at_modZ, $misc_cam_modX, $misc_cam_modY, 0.0, 0.0, 0.0)
Camera.PointAtPoint($misc_cam_modZ, $misc_cam_look_at_modX, $misc_cam_look_at_modY, SwitchType.JumpCut)
$foodmed_junkfud = 4
$foodlarge_junkfud = 0

:CARMOD_10198
if 
  $foodmed_junkfud == 4
goto_if_false @CARMOD_10847
if 
  Car.IsDead($original_car_mod)
goto_if_false @CARMOD_10246
gosub @CARMOD_13950
goto @CARMOD_1406

:CARMOD_10246
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_10300
if 
  $colour_menu_drawn_shops == 0
goto_if_false @CARMOD_10293
gosub @CARMOD_21421

:CARMOD_10293
goto @CARMOD_10325

:CARMOD_10300
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CARMOD_10325
gosub @CARMOD_14661

:CARMOD_10325
if 
  $foodlarge_junkfud == 0
goto_if_false @CARMOD_10624
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CARMOD_10388
$flag_no_money_shops = 0
$flag_bought_item_already_shops = 0
$10407 = 0
$foodlarge_junkfud = 1

:CARMOD_10388
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CARMOD_10624
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_10506
$car_locate_modX = Menu.GetItemSelected($colour_menu_shops)
if 
  0 > $car_locate_modX
goto_if_false @CARMOD_10460
$car_locate_modX = 0

:CARMOD_10460
if 
  $car_locate_modX == 0
goto_if_false @CARMOD_10492
$stored_mod_garage_car = 1
goto @CARMOD_10499

:CARMOD_10492
$forth_menu_item1 = 1

:CARMOD_10499
goto @CARMOD_10589

:CARMOD_10506
$10402 = Menu.GetItemSelected($sub_menu_shops)
if 
  0 > $10402
goto_if_false @CARMOD_10539
$10402 = 0

:CARMOD_10539
if and
  $10389($10401,12i) <> 100
  $10389($10401,12i) <> 101
goto_if_false @CARMOD_10589
set_var_int_to_var_int $10405 = $item_model_index($10402,12i)
Streaming.RequestVehicleMod($10405)

:CARMOD_10589
$flag_no_money_shops = 0
$flag_bought_item_already_shops = 0
$10407 = 0
$foodlarge_junkfud = 0
$foodmed_junkfud = 5

:CARMOD_10624
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_10847
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CARMOD_10847
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_10691
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:CARMOD_10691
if 
  $flag_car_same_colour == 1
goto_if_false @CARMOD_10723
Menu.Delete($flag_cant_mod)
Text.ClearHelp
$flag_car_same_colour = 0

:CARMOD_10723
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_10755
Menu.Delete($colour_menu_shops)
Text.ClearHelp
$colour_menu_drawn_shops = 0

:CARMOD_10755
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_10787
gosub @CARMOD_15620
gosub @CARMOD_14259

:CARMOD_10787
Camera.SetFixedPosition($vomit_cam_point_junkfudX, $vomit_cam_point_junkfudY, $vomit_cam_point_junnkfudZ, 0.0, 0.0, 0.0)
Camera.PointAtPoint($sample_name_shops, $mod_flag, $control_flag_mod, SwitchType.JumpCut)
$10406 = 0
$foodlarge_junkfud = 0
$foodmed_junkfud = 3

:CARMOD_10847
if 
  $foodmed_junkfud == 5
goto_if_false @CARMOD_13929
if 
  Car.IsDead($original_car_mod)
goto_if_false @CARMOD_10895
gosub @CARMOD_13950
goto @CARMOD_1406

:CARMOD_10895
if 
  $foodlarge_junkfud == 0
goto_if_false @CARMOD_11075
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CARMOD_11075
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_10966
$foodlarge_junkfud = 1
goto @CARMOD_11025

:CARMOD_10966
if 
  $10389($10401,12i) <> 100
goto_if_false @CARMOD_11018
if 
  Streaming.HasVehicleModLoaded($10405)
goto_if_false @CARMOD_11011
$foodlarge_junkfud = 1

:CARMOD_11011
goto @CARMOD_11025

:CARMOD_11018
$foodlarge_junkfud = 1

:CARMOD_11025
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_11075
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_11075
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:CARMOD_11075
if 
  $foodlarge_junkfud == 1
goto_if_false @CARMOD_11269
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_11179
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_11147
Menu.Delete($colour_menu_shops)
Text.ClearHelp
$colour_menu_drawn_shops = 0

:CARMOD_11147
if 
  $flag_car_same_colour == 0
goto_if_false @CARMOD_11172
gosub @CARMOD_15279

:CARMOD_11172
goto @CARMOD_11262

:CARMOD_11179
if 
  $10389($10401,12i) == 100
goto_if_false @CARMOD_11239
set_var_int_to_var_int $vomit_camY = $10402
set_var_int_to_var_int $vomit_camZ = $10402
$vomit_camZ += 1
Car.GivePaintjob($original_car_mod, $vomit_camY)
goto @CARMOD_11255

:CARMOD_11239
$10410 = Car.AddMod($original_car_mod, $10405)
Streaming.MarkVehicleModAsNoLongerNeeded($10405)

:CARMOD_11255
gosub @CARMOD_23783

:CARMOD_11262
$foodlarge_junkfud = 2

:CARMOD_11269
if 
  $foodlarge_junkfud == 2
goto_if_false @CARMOD_11612
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_11485
$car_locate_modZ = Menu.GetItemSelected($flag_cant_mod)
if 
  0 > $car_locate_modZ
goto_if_false @CARMOD_11342
$car_locate_modZ = 0

:CARMOD_11342
if 
  $stored_mod_garage_car == 1
goto_if_false @CARMOD_11440
if or
  $10476 == 542
  $10476 == 549
goto_if_false @CARMOD_11420
Menu.ChangeCarColor($flag_cant_mod, $original_car_mod, 1, $car_locate_modZ)
Menu.ChangeCarColor($flag_cant_mod, $original_car_mod, 2, $car_locate_modZ)
goto @CARMOD_11433

:CARMOD_11420
Menu.ChangeCarColor($flag_cant_mod, $original_car_mod, 1, $car_locate_modZ)

:CARMOD_11433
goto @CARMOD_11453

:CARMOD_11440
Menu.ChangeCarColor($flag_cant_mod, $original_car_mod, 2, $car_locate_modZ)

:CARMOD_11453
if 
  $flag_car_same_colour == 0
goto_if_false @CARMOD_11478
gosub @CARMOD_15279

:CARMOD_11478
goto @CARMOD_11510

:CARMOD_11485
if 
  $mod_model_index == 0
goto_if_false @CARMOD_11510
gosub @CARMOD_23783

:CARMOD_11510
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CARMOD_11534
$foodlarge_junkfud = 3

:CARMOD_11534
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CARMOD_11612
Text.ClearThisPrint('CLTHNO2')
Text.ClearThisPrint('COLORNO')
Text.ClearThisPrint('SHOPNO')
$flag_bought_item_already_shops = 0
$10407 = 0
$flag_no_money_shops = 0
$foodlarge_junkfud = 4

:CARMOD_11612
if 
  $foodlarge_junkfud == 3
goto_if_false @CARMOD_12023
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CARMOD_12023
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_11731
if 
  $vomit_camX > -1
goto_if_false @CARMOD_11713
Car.ChangeColor($original_car_mod, $upgrade_meun2_selected, $mod_counter)
Car.GivePaintjob($original_car_mod, $vomit_camX)
goto @CARMOD_11724

:CARMOD_11713
Car.ChangeColor($original_car_mod, $upgrade_meun2_selected, $mod_counter)

:CARMOD_11724
goto @CARMOD_11845

:CARMOD_11731
if 
  $10389($10401,12i) == 100
goto_if_false @CARMOD_11811
if 
  0 > $vomit_camX
goto_if_false @CARMOD_11796
Car.GivePaintjob($original_car_mod, -1)
Car.ChangeColor($original_car_mod, $upgrade_meun2_selected, $mod_counter)
goto @CARMOD_11804

:CARMOD_11796
Car.GivePaintjob($original_car_mod, $vomit_camX)

:CARMOD_11804
goto @CARMOD_11813

:CARMOD_11811
Car.RestoreModState

:CARMOD_11813
if 
  $mod_model_index == 1
goto_if_false @CARMOD_11845
Menu.Delete($number_of_mods_in_section)
Text.ClearHelp
$mod_model_index = 0

:CARMOD_11845
if 
  $flag_car_same_colour == 1
goto_if_false @CARMOD_11877
Menu.Delete($flag_cant_mod)
Text.ClearHelp
$flag_car_same_colour = 0

:CARMOD_11877
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_11909
Menu.Delete($colour_menu_shops)
Text.ClearHelp
$colour_menu_drawn_shops = 0

:CARMOD_11909
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_11963
if 
  $colour_menu_drawn_shops == 0
goto_if_false @CARMOD_11956
gosub @CARMOD_21421

:CARMOD_11956
goto @CARMOD_11995

:CARMOD_11963
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CARMOD_11995
gosub @CARMOD_17406
gosub @CARMOD_14661

:CARMOD_11995
$stored_mod_garage_car = 0
$forth_menu_item1 = 0
$foodlarge_junkfud = 0
$foodmed_junkfud = 4

:CARMOD_12023
if 
  $foodlarge_junkfud == 4
goto_if_false @CARMOD_13929
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CARMOD_13929
$2753 = Player.StoreScore($player1)
if 
  $10389($10401,12i) == 101
goto_if_false @CARMOD_12932
if 
  $2753 >= 150
goto_if_false @CARMOD_12863
if 
  $stored_mod_garage_car == 1
goto_if_false @CARMOD_12494
if 
  not is_int_var_equal_to_int_var $upgrade_meun2_selected == $car_locate_modZ
goto_if_false @CARMOD_12425
Player.AddScore($player1, -150)
Stat.IncrementFloat(StatId.CarModBudget, 150.0)
Game.ClearWantedLevelInGarage
Car.SetDirtLevel($original_car_mod, 0.0)
$upgrade_meun2_selected, $mod_counter = Car.GetColors($original_car_mod)
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1134)
Car.Fix($original_car_mod)
Car.StoreModState
$foodlarge_junkfud = 0
$foodmed_junkfud = 3
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_12251
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:CARMOD_12251
if 
  $flag_car_same_colour == 1
goto_if_false @CARMOD_12283
Menu.Delete($flag_cant_mod)
Text.ClearHelp
$flag_car_same_colour = 0

:CARMOD_12283
if 
  $mod_model_index == 1
goto_if_false @CARMOD_12315
Menu.Delete($number_of_mods_in_section)
Text.ClearHelp
$mod_model_index = 0

:CARMOD_12315
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_12347
Menu.Delete($colour_menu_shops)
Text.ClearHelp
$colour_menu_drawn_shops = 0

:CARMOD_12347
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_12379
gosub @CARMOD_15620
gosub @CARMOD_14259

:CARMOD_12379
Camera.SetFixedPosition($vomit_cam_point_junkfudX, $vomit_cam_point_junkfudY, $vomit_cam_point_junnkfudZ, 0.0, 0.0, 0.0)
Camera.PointAtPoint($sample_name_shops, $mod_flag, $control_flag_mod, SwitchType.JumpCut)
goto @CARMOD_12487

:CARMOD_12425
if 
  $10407 == 0
goto_if_false @CARMOD_12487
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
Text.PrintNow('COLORNO', 3000, 1)
$foodlarge_junkfud = 2
$10407 = 1

:CARMOD_12487
goto @CARMOD_12856

:CARMOD_12494
if 
  not is_int_var_equal_to_int_var $mod_counter == $car_locate_modZ
goto_if_false @CARMOD_12794
Player.AddScore($player1, -150)
Stat.IncrementFloat(StatId.CarModBudget, 150.0)
Game.ClearWantedLevelInGarage
Car.SetDirtLevel($original_car_mod, 0.0)
$upgrade_meun2_selected, $mod_counter = Car.GetColors($original_car_mod)
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1134)
Car.Fix($original_car_mod)
Car.StoreModState
$foodlarge_junkfud = 0
$foodmed_junkfud = 3
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_12620
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:CARMOD_12620
if 
  $flag_car_same_colour == 1
goto_if_false @CARMOD_12652
Menu.Delete($flag_cant_mod)
Text.ClearHelp
$flag_car_same_colour = 0

:CARMOD_12652
if 
  $mod_model_index == 1
goto_if_false @CARMOD_12684
Menu.Delete($number_of_mods_in_section)
Text.ClearHelp
$mod_model_index = 0

:CARMOD_12684
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_12716
Menu.Delete($colour_menu_shops)
Text.ClearHelp
$colour_menu_drawn_shops = 0

:CARMOD_12716
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_12748
gosub @CARMOD_15620
gosub @CARMOD_14259

:CARMOD_12748
Camera.SetFixedPosition($vomit_cam_point_junkfudX, $vomit_cam_point_junkfudY, $vomit_cam_point_junnkfudZ, 0.0, 0.0, 0.0)
Camera.PointAtPoint($sample_name_shops, $mod_flag, $control_flag_mod, SwitchType.JumpCut)
goto @CARMOD_12856

:CARMOD_12794
if 
  $10407 == 0
goto_if_false @CARMOD_12856
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
Text.PrintNow('COLORNO', 3000, 1)
$foodlarge_junkfud = 2
$10407 = 1

:CARMOD_12856
goto @CARMOD_12925

:CARMOD_12863
if 
  $flag_no_money_shops == 0
goto_if_false @CARMOD_12925
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
Text.PrintNow('SHOPNO', 3000, 1)
$foodlarge_junkfud = 2
$flag_no_money_shops = 1

:CARMOD_12925
goto @CARMOD_13929

:CARMOD_12932
if 
  $10389($10401,12i) == 100
goto_if_false @CARMOD_13419
if 
  $2753 >= 500
goto_if_false @CARMOD_13350
if 
  is_int_var_equal_to_int_var $vomit_camY == $vomit_camX
goto_if_false @CARMOD_13061
if 
  $flag_bought_item_already_shops == 0
goto_if_false @CARMOD_13054
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
Text.PrintNow('CLTHNO2', 3000, 1)
$foodlarge_junkfud = 2
$flag_bought_item_already_shops = 1

:CARMOD_13054
goto @CARMOD_13343

:CARMOD_13061
Player.AddScore($player1, -500)
Stat.IncrementFloat(StatId.CarModBudget, 500.0)
Game.ClearWantedLevelInGarage
Car.SetDirtLevel($original_car_mod, 0.0)
Car.Fix($original_car_mod)
Car.StoreModState
set_var_int_to_var_int $vomit_camX = $vomit_camY
$upgrade_meun2_selected, $mod_counter = Car.GetColors($original_car_mod)
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1134)
$foodlarge_junkfud = 0
$foodmed_junkfud = 3
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_13176
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:CARMOD_13176
if 
  $flag_car_same_colour == 1
goto_if_false @CARMOD_13208
Menu.Delete($flag_cant_mod)
Text.ClearHelp
$flag_car_same_colour = 0

:CARMOD_13208
if 
  $mod_model_index == 1
goto_if_false @CARMOD_13240
Menu.Delete($number_of_mods_in_section)
Text.ClearHelp
$mod_model_index = 0

:CARMOD_13240
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_13272
Menu.Delete($colour_menu_shops)
Text.ClearHelp
$colour_menu_drawn_shops = 0

:CARMOD_13272
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_13304
gosub @CARMOD_15620
gosub @CARMOD_14259

:CARMOD_13304
Camera.SetFixedPosition($vomit_cam_point_junkfudX, $vomit_cam_point_junkfudY, $vomit_cam_point_junnkfudZ, 0.0, 0.0, 0.0)
Camera.PointAtPoint($sample_name_shops, $mod_flag, $control_flag_mod, SwitchType.JumpCut)

:CARMOD_13343
goto @CARMOD_13412

:CARMOD_13350
if 
  $flag_no_money_shops == 0
goto_if_false @CARMOD_13412
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
Text.PrintNow('SHOPNO', 3000, 1)
$foodlarge_junkfud = 2
$flag_no_money_shops = 1

:CARMOD_13412
goto @CARMOD_13929

:CARMOD_13419
if 
  is_int_var_greater_or_equal_to_int_var $2753 >= $item_price($10402,12i)
goto_if_false @CARMOD_13867
if 
  not is_int_var_equal_to_int_var $upgrade_meun1_selected == $10405
goto_if_false @CARMOD_13798
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1133)
Shopping.BuyItem($10405)
Car.SetDirtLevel($original_car_mod, 0.0)
Car.StoreModState
set_var_int_to_var_int $upgrade_meun1_selected = $10405
if 
  $temp_shopZ == 0
goto_if_false @CARMOD_13578
if or
  is_var_text_label_equal_to_text_label s$item_text_label[0] == 'BMBSM'
  is_var_text_label_equal_to_text_label s$item_text_label[0] == 'BMBTN'
  is_var_text_label_equal_to_text_label s$item_text_label[0] == 'BMBLN'
goto_if_false @CARMOD_13578
$temp_shopZ = 1

:CARMOD_13578
$foodlarge_junkfud = 0
$foodmed_junkfud = 3
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_13624
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:CARMOD_13624
if 
  $flag_car_same_colour == 1
goto_if_false @CARMOD_13656
Menu.Delete($flag_cant_mod)
Text.ClearHelp
$flag_car_same_colour = 0

:CARMOD_13656
if 
  $mod_model_index == 1
goto_if_false @CARMOD_13688
Menu.Delete($number_of_mods_in_section)
Text.ClearHelp
$mod_model_index = 0

:CARMOD_13688
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_13720
Menu.Delete($colour_menu_shops)
Text.ClearHelp
$colour_menu_drawn_shops = 0

:CARMOD_13720
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_13752
gosub @CARMOD_15620
gosub @CARMOD_14259

:CARMOD_13752
Camera.SetFixedPosition($vomit_cam_point_junkfudX, $vomit_cam_point_junkfudY, $vomit_cam_point_junnkfudZ, 0.0, 0.0, 0.0)
Camera.PointAtPoint($sample_name_shops, $mod_flag, $control_flag_mod, SwitchType.JumpCut)
goto @CARMOD_13860

:CARMOD_13798
if 
  $flag_bought_item_already_shops == 0
goto_if_false @CARMOD_13860
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
Text.PrintNow('CLTHNO2', 3000, 1)
$foodlarge_junkfud = 2
$flag_bought_item_already_shops = 1

:CARMOD_13860
goto @CARMOD_13929

:CARMOD_13867
if 
  $flag_no_money_shops == 0
goto_if_false @CARMOD_13929
Audio.ReportMissionAudioEventAtPosition($player_x, $player_y, $player_z, 1055)
Text.PrintNow('SHOPNO', 3000, 1)
$foodlarge_junkfud = 2
$flag_no_money_shops = 1

:CARMOD_13929
goto @CARMOD_13943

:CARMOD_13936
gosub @CARMOD_13950

:CARMOD_13943
goto @CARMOD_1406

:CARMOD_13950
if 
  $main_menu_drawn_shops == 1
goto_if_false @CARMOD_13982
Menu.Delete($main_menu_shops)
Text.ClearHelp
$main_menu_drawn_shops = 0

:CARMOD_13982
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_14014
Menu.Delete($sub_menu_shops)
Text.ClearHelp
$sub_menu_drawn_shops = 0

:CARMOD_14014
if 
  $flag_car_same_colour == 1
goto_if_false @CARMOD_14046
Menu.Delete($flag_cant_mod)
Text.ClearHelp
$flag_car_same_colour = 0

:CARMOD_14046
if 
  $mod_model_index == 1
goto_if_false @CARMOD_14078
Menu.Delete($number_of_mods_in_section)
Text.ClearHelp
$mod_model_index = 0

:CARMOD_14078
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_14110
Menu.Delete($colour_menu_shops)
Text.ClearHelp
$colour_menu_drawn_shops = 0

:CARMOD_14110
if 
  $foodmed_junkfud >= 1
goto_if_false @CARMOD_14130
Text.ClearHelp

:CARMOD_14130
$stored_mod_garage_car = 0
$forth_menu_item1 = 0
$10406 = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$10407 = 0
$10473 = 0
$10474 = 0
$10475 = 0
$foodmed_junkfud = 0
$foodlarge_junkfud = 0
Game.SetIsInStadium(False)
Stat.ShowUpdateStats(True)
Game.SetMinigameInProgress(False)
if 
  $temp_shopZ == 1
goto_if_false @CARMOD_14255
Text.PrintHelp('NITROH1')
$temp_shopZ = 2

:CARMOD_14255
terminate_this_script 
return 

:CARMOD_14259
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_14659
Text.PrintHelpForever('MODH1')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CARMOD_14350
$main_menu_shops = Menu.Create('UPGRADE', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @CARMOD_14591

:CARMOD_14350
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CARMOD_14412
$main_menu_shops = Menu.Create('UPGRADE', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @CARMOD_14591

:CARMOD_14412
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CARMOD_14474
$main_menu_shops = Menu.Create('UPGRADE', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @CARMOD_14591

:CARMOD_14474
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CARMOD_14536
$main_menu_shops = Menu.Create('UPGRADE', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @CARMOD_14591

:CARMOD_14536
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CARMOD_14591
$main_menu_shops = Menu.Create('UPGRADE', 29.0, 145.0, 186.0, 1, True, True, 1)

:CARMOD_14591
Menu.SetColumnOrientation($main_menu_shops, 0, 1)
Menu.SetColumn($main_menu_shops, 0, 'DUMMY', s$item_text_label[0], s$item_text_label[1], s$item_text_label[2], s$item_text_label[3], s$item_text_label[4], s$item_text_label[5], s$item_text_label[6], s$item_text_label[7], s$item_text_label[8], s$item_text_label[9], s$item_text_label[10], s$item_text_label[11])
$main_menu_drawn_shops = 1

:CARMOD_14659
return 

:CARMOD_14661
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CARMOD_15277
Text.PrintHelpForever('MODH3')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CARMOD_14752
$sub_menu_shops = Menu.Create('UPGRADE', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @CARMOD_14993

:CARMOD_14752
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CARMOD_14814
$sub_menu_shops = Menu.Create('UPGRADE', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @CARMOD_14993

:CARMOD_14814
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CARMOD_14876
$sub_menu_shops = Menu.Create('UPGRADE', 29.0, 165.0, 186.0, 1, True, True, 1)
goto @CARMOD_14993

:CARMOD_14876
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CARMOD_14938
$sub_menu_shops = Menu.Create('UPGRADE', 29.0, 145.0, 186.0, 1, True, True, 1)
goto @CARMOD_14993

:CARMOD_14938
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CARMOD_14993
$sub_menu_shops = Menu.Create('UPGRADE', 29.0, 145.0, 186.0, 1, True, True, 1)

:CARMOD_14993
Menu.SetColumnOrientation($sub_menu_shops, 0, 1)
Menu.SetColumn($sub_menu_shops, 0, 'DUMMY', s$item_text_label[0], s$item_text_label[1], s$item_text_label[2], s$item_text_label[3], s$item_text_label[4], s$item_text_label[5], s$item_text_label[6], s$item_text_label[7], s$item_text_label[8], s$item_text_label[9], s$item_text_label[10], s$item_text_label[11])
if 
  $10389($10401,12i) == 100
goto_if_false @CARMOD_15215
$temp_var_shops = 0

:CARMOD_15083
if 
  is_int_var_greater_than_int_var $forth_menu_shops > $temp_var_shops
goto_if_false @CARMOD_15153
set_var_int_to_var_int $vomit_camZ = $temp_var_shops
$vomit_camZ += 1
Menu.SetItemWithNumber($sub_menu_shops, 0, $temp_var_shops, 'PJOB', $vomit_camZ)
$temp_var_shops += 1
goto @CARMOD_15083

:CARMOD_15153
$temp_var_shops = 0

:CARMOD_15160
if 
  is_int_var_greater_than_int_var $forth_menu_shops > $temp_var_shops
goto_if_false @CARMOD_15208
Menu.ActivateItem($sub_menu_shops, $temp_var_shops, $item_hilight_shops($temp_var_shops,12i))
$temp_var_shops += 1
goto @CARMOD_15160

:CARMOD_15208
goto @CARMOD_15270

:CARMOD_15215
$temp_var_shops = 0

:CARMOD_15222
if 
  is_int_var_greater_than_int_var $10404 > $temp_var_shops
goto_if_false @CARMOD_15270
Menu.ActivateItem($sub_menu_shops, $temp_var_shops, $item_hilight_shops($temp_var_shops,12i))
$temp_var_shops += 1
goto @CARMOD_15222

:CARMOD_15270
$sub_menu_drawn_shops = 1

:CARMOD_15277
return 

:CARMOD_15279
if 
  $flag_car_same_colour == 0
goto_if_false @CARMOD_15618
Text.PrintHelpForever('MODH6')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CARMOD_15370
$flag_cant_mod = MenuGrid.Create('CARM1', 29.0, 145.0, 25.7, 8, True, True, 1)
goto @CARMOD_15611

:CARMOD_15370
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CARMOD_15432
$flag_cant_mod = MenuGrid.Create('CARM1', 29.0, 145.0, 25.7, 8, True, True, 1)
goto @CARMOD_15611

:CARMOD_15432
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CARMOD_15494
$flag_cant_mod = MenuGrid.Create('CARM1', 29.0, 155.0, 25.7, 8, True, True, 1)
goto @CARMOD_15611

:CARMOD_15494
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CARMOD_15556
$flag_cant_mod = MenuGrid.Create('CARM1', 29.0, 145.0, 25.7, 8, True, True, 1)
goto @CARMOD_15611

:CARMOD_15556
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CARMOD_15611
$flag_cant_mod = MenuGrid.Create('CARM1', 29.0, 145.0, 25.7, 8, True, True, 1)

:CARMOD_15611
$flag_car_same_colour = 1

:CARMOD_15618
return 

:CARMOD_15620
$misc_cam_look_at_modZ = 0
$mod_garage_offsetZ = 0
$mod_swap_camX = 0
$mod_swap_camY = 0
$mod_swap_camZ = 0
$mod_swap_look_at_camX = 0
$mod_swap_look_at_camY = 0
$mod_swap_look_at_camZ = 0
$new_mod_index_wil = 0
$upgradetype_mod = 0
$wing_mod_counter = 0
$roof_mod_counter = 0
$exhaust_mod_counter = 0
$nitro_mod_counter = 0
$no_of_mods_for_vehicle = 0
$forth_menu_shops = 0
$foodhealthy_junkfud = 0
$bonnetLR_mod_counter = 0
$bonnet_mod_counter = 0
$10435 = 0
$forth_menu_shops = Car.GetNumAvailablePaintjobs($original_car_mod)
if 
  $forth_menu_shops <> 0
goto_if_false @CARMOD_15822
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM11'
$10389($misc_cam_look_at_modZ,12i) = 100
$misc_cam_look_at_modZ += 1

:CARMOD_15822
$foodhealthy_junkfud = Car.GetNumColors($original_car_mod)
if 
  $foodhealthy_junkfud <> 0
goto_if_false @CARMOD_15884
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM1'
$10389($misc_cam_look_at_modZ,12i) = 101
$misc_cam_look_at_modZ += 1

:CARMOD_15884
if 
  is_int_var_greater_than_int_var $item_no_shops > $10435
goto_if_false @CARMOD_17389
$mod_garage_offsetX = Shopping.GetItem($10435)
$mod_garage_offsetY = Streaming.GetVehicleModType($mod_garage_offsetX)
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 12
goto_if_false @CARMOD_16010
if 
  $no_of_mods_for_vehicle == 0
goto_if_false @CARMOD_15991
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM12'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 12
$misc_cam_look_at_modZ += 1

:CARMOD_15991
set_var_int_to_var_int $10353($no_of_mods_for_vehicle,12i) = $mod_garage_offsetX
$no_of_mods_for_vehicle += 1

:CARMOD_16010
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 3
goto_if_false @CARMOD_16101
if 
  $mod_garage_offsetZ == 0
goto_if_false @CARMOD_16082
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM4'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 3
$misc_cam_look_at_modZ += 1

:CARMOD_16082
set_var_int_to_var_int $wheel_mod_counter($mod_garage_offsetZ,12i) = $mod_garage_offsetX
$mod_garage_offsetZ += 1

:CARMOD_16101
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 7
goto_if_false @CARMOD_16192
if 
  $mod_swap_camX == 0
goto_if_false @CARMOD_16173
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM10'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 7
$misc_cam_look_at_modZ += 1

:CARMOD_16173
set_var_int_to_var_int $10209($mod_swap_camX,12i) = $mod_garage_offsetX
$mod_swap_camX += 1

:CARMOD_16192
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 13
goto_if_false @CARMOD_16283
if 
  $mod_swap_camY == 0
goto_if_false @CARMOD_16264
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM5'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 13
$misc_cam_look_at_modZ += 1

:CARMOD_16264
set_var_int_to_var_int $10221($mod_swap_camY,12i) = $mod_garage_offsetX
$mod_swap_camY += 1

:CARMOD_16283
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 8
goto_if_false @CARMOD_16374
if 
  $mod_swap_camZ == 0
goto_if_false @CARMOD_16355
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM6'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 8
$misc_cam_look_at_modZ += 1

:CARMOD_16355
set_var_int_to_var_int $10233($mod_swap_camZ,12i) = $mod_garage_offsetX
$mod_swap_camZ += 1

:CARMOD_16374
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 2
goto_if_false @CARMOD_16465
if 
  $mod_swap_look_at_camX == 0
goto_if_false @CARMOD_16446
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM2'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 2
$misc_cam_look_at_modZ += 1

:CARMOD_16446
set_var_int_to_var_int $10245($mod_swap_look_at_camX,12i) = $mod_garage_offsetX
$mod_swap_look_at_camX += 1

:CARMOD_16465
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 0
goto_if_false @CARMOD_16556
if 
  $mod_swap_look_at_camY == 0
goto_if_false @CARMOD_16537
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM3'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 0
$misc_cam_look_at_modZ += 1

:CARMOD_16537
set_var_int_to_var_int $10257($mod_swap_look_at_camY,12i) = $mod_garage_offsetX
$mod_swap_look_at_camY += 1

:CARMOD_16556
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 1
goto_if_false @CARMOD_16647
if 
  $mod_swap_look_at_camZ == 0
goto_if_false @CARMOD_16628
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM17'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 1
$misc_cam_look_at_modZ += 1

:CARMOD_16628
set_var_int_to_var_int $10269($mod_swap_look_at_camZ,12i) = $mod_garage_offsetX
$mod_swap_look_at_camZ += 1

:CARMOD_16647
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 14
goto_if_false @CARMOD_16738
if 
  $new_mod_index_wil == 0
goto_if_false @CARMOD_16719
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM7'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 14
$misc_cam_look_at_modZ += 1

:CARMOD_16719
set_var_int_to_var_int $10281($new_mod_index_wil,12i) = $mod_garage_offsetX
$new_mod_index_wil += 1

:CARMOD_16738
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 15
goto_if_false @CARMOD_16829
if 
  $upgradetype_mod == 0
goto_if_false @CARMOD_16810
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM8'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 15
$misc_cam_look_at_modZ += 1

:CARMOD_16810
set_var_int_to_var_int $10293($upgradetype_mod,12i) = $mod_garage_offsetX
$upgradetype_mod += 1

:CARMOD_16829
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 6
goto_if_false @CARMOD_16920
if 
  $wing_mod_counter == 0
goto_if_false @CARMOD_16901
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM9'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 6
$misc_cam_look_at_modZ += 1

:CARMOD_16901
set_var_int_to_var_int $10305($wing_mod_counter,12i) = $mod_garage_offsetX
$wing_mod_counter += 1

:CARMOD_16920
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 4
goto_if_false @CARMOD_17011
if 
  $roof_mod_counter == 0
goto_if_false @CARMOD_16992
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM13'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 4
$misc_cam_look_at_modZ += 1

:CARMOD_16992
set_var_int_to_var_int $10317($roof_mod_counter,12i) = $mod_garage_offsetX
$roof_mod_counter += 1

:CARMOD_17011
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 5
goto_if_false @CARMOD_17102
if 
  $exhaust_mod_counter == 0
goto_if_false @CARMOD_17083
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM14'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 5
$misc_cam_look_at_modZ += 1

:CARMOD_17083
set_var_int_to_var_int $10329($exhaust_mod_counter,12i) = $mod_garage_offsetX
$exhaust_mod_counter += 1

:CARMOD_17102
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 16
goto_if_false @CARMOD_17193
if 
  $nitro_mod_counter == 0
goto_if_false @CARMOD_17174
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM15'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 16
$misc_cam_look_at_modZ += 1

:CARMOD_17174
set_var_int_to_var_int $10341($nitro_mod_counter,12i) = $mod_garage_offsetX
$nitro_mod_counter += 1

:CARMOD_17193
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 9
goto_if_false @CARMOD_17284
if 
  $bonnetLR_mod_counter == 0
goto_if_false @CARMOD_17265
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM18'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 9
$misc_cam_look_at_modZ += 1

:CARMOD_17265
set_var_int_to_var_int $10377($bonnetLR_mod_counter,12i) = $mod_garage_offsetX
$bonnetLR_mod_counter += 1

:CARMOD_17284
if 
  is_int_var_equal_to_constant $mod_garage_offsetY == 10
goto_if_false @CARMOD_17375
if 
  $bonnet_mod_counter == 0
goto_if_false @CARMOD_17356
set_var_text_label $item_text_label($misc_cam_look_at_modZ,12s) = 'CARM16'
set_var_int_to_constant $10389($misc_cam_look_at_modZ,12i) = 10
$misc_cam_look_at_modZ += 1

:CARMOD_17356
set_var_int_to_var_int $10365($bonnet_mod_counter,12i) = $mod_garage_offsetX
$bonnet_mod_counter += 1

:CARMOD_17375
$10435 += 1
goto @CARMOD_15884

:CARMOD_17389
set_var_int_to_var_int $temp_var_shops = $misc_cam_look_at_modZ
gosub @CARMOD_21347
return 

:CARMOD_17406
if 
  $10389($10401,12i) == 100
goto_if_false @CARMOD_17617
$10403 = 0
set_var_int_to_var_int $10404 = $forth_menu_shops

:CARMOD_17443
if 
  is_int_var_greater_than_int_var $forth_menu_shops > $10403
goto_if_false @CARMOD_17554
set_var_text_label $item_text_label($10403,12s) = 'PAINTJB'
$item_price($10403,12i) = 500
if 
  is_int_var_equal_to_int_var $vomit_camX == $10403
goto_if_false @CARMOD_17529
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_17540

:CARMOD_17529
$item_hilight_shops($10403,12i) = 1

:CARMOD_17540
$10403 += 1
goto @CARMOD_17443

:CARMOD_17554
set_var_int_to_var_int $temp_var_shops = $forth_menu_shops
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $rear_bullbar_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $rear_bullbar_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $rear_bullbar_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $rear_bullbar_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $nitro_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $nitro_cam_modY

:CARMOD_17617
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 12
goto_if_false @CARMOD_17850
$10403 = 0
set_var_int_to_var_int $10404 = $no_of_mods_for_vehicle

:CARMOD_17654
if 
  is_int_var_greater_than_int_var $no_of_mods_for_vehicle > $10403
goto_if_false @CARMOD_17787
$item_text_label($10403,12s) = Shopping.GetNameOfItem($10353($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($10353($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $10353($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10353($10403,12i)
goto_if_false @CARMOD_17762
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_17773

:CARMOD_17762
$item_hilight_shops($10403,12i) = 1

:CARMOD_17773
$10403 += 1
goto @CARMOD_17654

:CARMOD_17787
set_var_int_to_var_int $temp_var_shops = $no_of_mods_for_vehicle
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $number_of_colours
set_var_float_to_var_float $misc_cam_modX = $stored_paintjob_number
set_var_float_to_var_float $misc_cam_modY = $paintjob_number
set_var_float_to_var_float $misc_cam_modZ = $paintjob_number_menu
set_var_float_to_var_float $misc_cam_look_at_modX = $cam_general_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $cam_general_modY

:CARMOD_17850
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 3
goto_if_false @CARMOD_18083
$10403 = 0
set_var_int_to_var_int $10404 = $mod_garage_offsetZ

:CARMOD_17887
if 
  is_int_var_greater_than_int_var $mod_garage_offsetZ > $10403
goto_if_false @CARMOD_18020
$item_text_label($10403,12s) = Shopping.GetNameOfItem($wheel_mod_counter($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($wheel_mod_counter($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $wheel_mod_counter($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $wheel_mod_counter($10403,12i)
goto_if_false @CARMOD_17995
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_18006

:CARMOD_17995
$item_hilight_shops($10403,12i) = 1

:CARMOD_18006
$10403 += 1
goto @CARMOD_17887

:CARMOD_18020
set_var_int_to_var_int $temp_var_shops = $mod_garage_offsetZ
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $wheel_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $wheel_cam_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $wheel_cam_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $wheel_cam_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $spoiler_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $spoiler_cam_modY

:CARMOD_18083
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 7
goto_if_false @CARMOD_18316
$10403 = 0
set_var_int_to_var_int $10404 = $mod_swap_camX

:CARMOD_18120
if 
  is_int_var_greater_than_int_var $mod_swap_camX > $10403
goto_if_false @CARMOD_18253
$item_text_label($10403,12s) = Shopping.GetNameOfItem($10209($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($10209($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $10209($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10209($10403,12i)
goto_if_false @CARMOD_18228
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_18239

:CARMOD_18228
$item_hilight_shops($10403,12i) = 1

:CARMOD_18239
$10403 += 1
goto @CARMOD_18120

:CARMOD_18253
set_var_int_to_var_int $temp_var_shops = $mod_swap_camX
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $spoiler_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $spoiler_cam_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $spoiler_cam_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $spoiler_cam_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $wing_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $wing_cam_modY

:CARMOD_18316
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 13
goto_if_false @CARMOD_18549
$10403 = 0
set_var_int_to_var_int $10404 = $mod_swap_camY

:CARMOD_18353
if 
  is_int_var_greater_than_int_var $mod_swap_camY > $10403
goto_if_false @CARMOD_18486
$item_text_label($10403,12s) = Shopping.GetNameOfItem($10221($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($10221($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $10221($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10221($10403,12i)
goto_if_false @CARMOD_18461
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_18472

:CARMOD_18461
$item_hilight_shops($10403,12i) = 1

:CARMOD_18472
$10403 += 1
goto @CARMOD_18353

:CARMOD_18486
set_var_int_to_var_int $temp_var_shops = $mod_swap_camY
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $roof_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $roof_cam_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $roof_cam_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $roof_cam_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $bonnet_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $bonnet_cam_modY

:CARMOD_18549
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 8
goto_if_false @CARMOD_18782
$10403 = 0
set_var_int_to_var_int $10404 = $mod_swap_camZ

:CARMOD_18586
if 
  is_int_var_greater_than_int_var $mod_swap_camZ > $10403
goto_if_false @CARMOD_18719
$item_text_label($10403,12s) = Shopping.GetNameOfItem($10233($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($10233($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $10233($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10233($10403,12i)
goto_if_false @CARMOD_18694
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_18705

:CARMOD_18694
$item_hilight_shops($10403,12i) = 1

:CARMOD_18705
$10403 += 1
goto @CARMOD_18586

:CARMOD_18719
set_var_int_to_var_int $temp_var_shops = $mod_swap_camZ
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $front_bullbar_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $front_bullbar_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $front_bullbar_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $front_bullbar_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $rear_bullbar_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $rear_bullbar_cam_modY

:CARMOD_18782
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 2
goto_if_false @CARMOD_19015
$10403 = 0
set_var_int_to_var_int $10404 = $mod_swap_look_at_camX

:CARMOD_18819
if 
  is_int_var_greater_than_int_var $mod_swap_look_at_camX > $10403
goto_if_false @CARMOD_18952
$item_text_label($10403,12s) = Shopping.GetNameOfItem($10245($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($10245($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $10245($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10245($10403,12i)
goto_if_false @CARMOD_18927
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_18938

:CARMOD_18927
$item_hilight_shops($10403,12i) = 1

:CARMOD_18938
$10403 += 1
goto @CARMOD_18819

:CARMOD_18952
set_var_int_to_var_int $temp_var_shops = $mod_swap_look_at_camX
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $cam_general_modZ
set_var_float_to_var_float $misc_cam_modX = $cam_general_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $cam_general_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $cam_general_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $wheel_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $wheel_cam_modY

:CARMOD_19015
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 0
goto_if_false @CARMOD_19248
$10403 = 0
set_var_int_to_var_int $10404 = $mod_swap_look_at_camY

:CARMOD_19052
if 
  is_int_var_greater_than_int_var $mod_swap_look_at_camY > $10403
goto_if_false @CARMOD_19185
$item_text_label($10403,12s) = Shopping.GetNameOfItem($10257($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($10257($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $10257($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10257($10403,12i)
goto_if_false @CARMOD_19160
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_19171

:CARMOD_19160
$item_hilight_shops($10403,12i) = 1

:CARMOD_19171
$10403 += 1
goto @CARMOD_19052

:CARMOD_19185
set_var_int_to_var_int $temp_var_shops = $mod_swap_look_at_camY
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $wing_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $wing_cam_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $wing_cam_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $wing_cam_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $roof_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $roof_cam_modY

:CARMOD_19248
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 1
goto_if_false @CARMOD_19481
$10403 = 0
set_var_int_to_var_int $10404 = $mod_swap_look_at_camZ

:CARMOD_19285
if 
  is_int_var_greater_than_int_var $mod_swap_look_at_camZ > $10403
goto_if_false @CARMOD_19418
$item_text_label($10403,12s) = Shopping.GetNameOfItem($10269($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($10269($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $10269($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10269($10403,12i)
goto_if_false @CARMOD_19393
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_19404

:CARMOD_19393
$item_hilight_shops($10403,12i) = 1

:CARMOD_19404
$10403 += 1
goto @CARMOD_19285

:CARMOD_19418
set_var_int_to_var_int $temp_var_shops = $mod_swap_look_at_camZ
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $wing_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $wing_cam_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $wing_cam_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $wing_cam_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $roof_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $roof_cam_modY

:CARMOD_19481
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 14
goto_if_false @CARMOD_19714
$10403 = 0
set_var_int_to_var_int $10404 = $new_mod_index_wil

:CARMOD_19518
if 
  is_int_var_greater_than_int_var $new_mod_index_wil > $10403
goto_if_false @CARMOD_19651
$item_text_label($10403,12s) = Shopping.GetNameOfItem($10281($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($10281($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $10281($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10281($10403,12i)
goto_if_false @CARMOD_19626
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_19637

:CARMOD_19626
$item_hilight_shops($10403,12i) = 1

:CARMOD_19637
$10403 += 1
goto @CARMOD_19518

:CARMOD_19651
set_var_int_to_var_int $temp_var_shops = $new_mod_index_wil
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $bonnet_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $bonnet_cam_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $bonnet_cam_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $bonnet_cam_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $exhaust_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $exhaust_cam_modY

:CARMOD_19714
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 15
goto_if_false @CARMOD_19947
$10403 = 0
set_var_int_to_var_int $10404 = $upgradetype_mod

:CARMOD_19751
if 
  is_int_var_greater_than_int_var $upgradetype_mod > $10403
goto_if_false @CARMOD_19884
$item_text_label($10403,12s) = Shopping.GetNameOfItem($10293($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($10293($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $10293($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10293($10403,12i)
goto_if_false @CARMOD_19859
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_19870

:CARMOD_19859
$item_hilight_shops($10403,12i) = 1

:CARMOD_19870
$10403 += 1
goto @CARMOD_19751

:CARMOD_19884
set_var_int_to_var_int $temp_var_shops = $upgradetype_mod
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $exhaust_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $exhaust_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $exhaust_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $exhaust_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $front_fender_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $front_fender_cam_modY

:CARMOD_19947
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 6
goto_if_false @CARMOD_20180
$10403 = 0
set_var_int_to_var_int $10404 = $wing_mod_counter

:CARMOD_19984
if 
  is_int_var_greater_than_int_var $wing_mod_counter > $10403
goto_if_false @CARMOD_20117
$item_text_label($10403,12s) = Shopping.GetNameOfItem($10305($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($10305($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $10305($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10305($10403,12i)
goto_if_false @CARMOD_20092
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_20103

:CARMOD_20092
$item_hilight_shops($10403,12i) = 1

:CARMOD_20103
$10403 += 1
goto @CARMOD_19984

:CARMOD_20117
set_var_int_to_var_int $temp_var_shops = $wing_mod_counter
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $front_fender_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $front_fender_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $front_fender_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $front_fender_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $rear_fender_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $rear_fender_cam_modY

:CARMOD_20180
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 4
goto_if_false @CARMOD_20413
$10403 = 0
set_var_int_to_var_int $10404 = $roof_mod_counter

:CARMOD_20217
if 
  is_int_var_greater_than_int_var $roof_mod_counter > $10403
goto_if_false @CARMOD_20350
$item_text_label($10403,12s) = Shopping.GetNameOfItem($10317($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($10317($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $10317($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10317($10403,12i)
goto_if_false @CARMOD_20325
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_20336

:CARMOD_20325
$item_hilight_shops($10403,12i) = 1

:CARMOD_20336
$10403 += 1
goto @CARMOD_20217

:CARMOD_20350
set_var_int_to_var_int $temp_var_shops = $roof_mod_counter
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $rear_fender_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $rear_fender_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $rear_fender_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $rear_fender_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $lights_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $lights_cam_modY

:CARMOD_20413
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 5
goto_if_false @CARMOD_20646
$10403 = 0
set_var_int_to_var_int $10404 = $exhaust_mod_counter

:CARMOD_20450
if 
  is_int_var_greater_than_int_var $exhaust_mod_counter > $10403
goto_if_false @CARMOD_20583
$item_text_label($10403,12s) = Shopping.GetNameOfItem($10329($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($10329($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $10329($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10329($10403,12i)
goto_if_false @CARMOD_20558
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_20569

:CARMOD_20558
$item_hilight_shops($10403,12i) = 1

:CARMOD_20569
$10403 += 1
goto @CARMOD_20450

:CARMOD_20583
set_var_int_to_var_int $temp_var_shops = $exhaust_mod_counter
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $lights_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $lights_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $lights_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $lights_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $front_bullbar_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $front_bullbar_cam_modY

:CARMOD_20646
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 16
goto_if_false @CARMOD_20879
$10403 = 0
set_var_int_to_var_int $10404 = $nitro_mod_counter

:CARMOD_20683
if 
  is_int_var_greater_than_int_var $nitro_mod_counter > $10403
goto_if_false @CARMOD_20816
$item_text_label($10403,12s) = Shopping.GetNameOfItem($10341($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($10341($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $10341($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10341($10403,12i)
goto_if_false @CARMOD_20791
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_20802

:CARMOD_20791
$item_hilight_shops($10403,12i) = 1

:CARMOD_20802
$10403 += 1
goto @CARMOD_20683

:CARMOD_20816
set_var_int_to_var_int $temp_var_shops = $nitro_mod_counter
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $nitro_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $nitro_look_at_modX
set_var_float_to_var_float $misc_cam_modY = $nitro_look_at_modY
set_var_float_to_var_float $misc_cam_modZ = $nitro_look_at_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $custom_paint_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $custom_paint_cam_modY

:CARMOD_20879
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 9
goto_if_false @CARMOD_21112
$10403 = 0
set_var_int_to_var_int $10404 = $bonnetLR_mod_counter

:CARMOD_20916
if 
  is_int_var_greater_than_int_var $bonnetLR_mod_counter > $10403
goto_if_false @CARMOD_21049
$item_text_label($10403,12s) = Shopping.GetNameOfItem($10377($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($10377($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $10377($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10377($10403,12i)
goto_if_false @CARMOD_21024
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_21035

:CARMOD_21024
$item_hilight_shops($10403,12i) = 1

:CARMOD_21035
$10403 += 1
goto @CARMOD_20916

:CARMOD_21049
set_var_int_to_var_int $temp_var_shops = $bonnetLR_mod_counter
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $rear_bullbar_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $rear_bullbar_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $rear_bullbar_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $rear_bullbar_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $nitro_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $nitro_cam_modY

:CARMOD_21112
if 
  is_int_var_equal_to_constant $10389($10401,12i) == 10
goto_if_false @CARMOD_21345
$10403 = 0
set_var_int_to_var_int $10404 = $bonnet_mod_counter

:CARMOD_21149
if 
  is_int_var_greater_than_int_var $bonnet_mod_counter > $10403
goto_if_false @CARMOD_21282
$item_text_label($10403,12s) = Shopping.GetNameOfItem($10365($10403,12i))
$item_price($10403,12i) = Shopping.GetPriceOfItem($10365($10403,12i))
set_var_int_to_var_int $item_model_index($10403,12i) = $10365($10403,12i)
if 
  is_int_var_equal_to_int_var $upgrade_meun1_selected == $10365($10403,12i)
goto_if_false @CARMOD_21257
$item_hilight_shops($10403,12i) = 0
goto @CARMOD_21268

:CARMOD_21257
$item_hilight_shops($10403,12i) = 1

:CARMOD_21268
$10403 += 1
goto @CARMOD_21149

:CARMOD_21282
set_var_int_to_var_int $temp_var_shops = $bonnet_mod_counter
gosub @CARMOD_21347
set_var_float_to_var_float $custom_paint_cam_look_at_modZ = $rear_bullbar_cam_modZ
set_var_float_to_var_float $misc_cam_modX = $rear_bullbar_look_at_cam_modX
set_var_float_to_var_float $misc_cam_modY = $rear_bullbar_look_at_cam_modY
set_var_float_to_var_float $misc_cam_modZ = $rear_bullbar_look_at_cam_modZ
set_var_float_to_var_float $misc_cam_look_at_modX = $nitro_cam_modX
set_var_float_to_var_float $misc_cam_look_at_modY = $nitro_cam_modY

:CARMOD_21345
return 

:CARMOD_21347
if 
  12 > $temp_var_shops
goto_if_false @CARMOD_21419
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @CARMOD_21347

:CARMOD_21419
return 

:CARMOD_21421
if 
  $colour_menu_drawn_shops == 0
goto_if_false @CARMOD_22335
if 
  $10433 == 1
goto_if_false @CARMOD_21492
set_var_text_label s$stored_car_colour1 = 'CARCOL1'
set_var_text_label s$third_menu_shops = 'DUMMY'
goto @CARMOD_21520

:CARMOD_21492
set_var_text_label s$stored_car_colour1 = 'CARCOL1'
set_var_text_label s$third_menu_shops = 'CARCOL2'

:CARMOD_21520
Text.PrintHelpForever('MODH5')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CARMOD_21593
$colour_menu_shops = Menu.Create('UPGRADE', 29.0, 145.0, 93.0, 2, True, True, 1)
goto @CARMOD_21834

:CARMOD_21593
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CARMOD_21655
$colour_menu_shops = Menu.Create('UPGRADE', 29.0, 165.0, 93.0, 2, True, True, 1)
goto @CARMOD_21834

:CARMOD_21655
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CARMOD_21717
$colour_menu_shops = Menu.Create('UPGRADE', 29.0, 165.0, 93.0, 2, True, True, 1)
goto @CARMOD_21834

:CARMOD_21717
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CARMOD_21779
$colour_menu_shops = Menu.Create('UPGRADE', 29.0, 145.0, 93.0, 2, True, True, 1)
goto @CARMOD_21834

:CARMOD_21779
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CARMOD_21834
$colour_menu_shops = Menu.Create('UPGRADE', 29.0, 145.0, 93.0, 2, True, True, 1)

:CARMOD_21834
Menu.SetColumnOrientation($colour_menu_shops, 0, 1)
Menu.SetColumn($colour_menu_shops, 0, 'UPGRADE', s$stored_car_colour1, s$third_menu_shops, 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
if 
  $10433 == 1
goto_if_false @CARMOD_22134
Menu.SetColumnOrientation($colour_menu_shops, 1, 1)
Menu.SetColumn($colour_menu_shops, 1, 'COST', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetItemWithNumber($colour_menu_shops, 1, 0, 'DOLLAR', 150)
goto @CARMOD_22309

:CARMOD_22134
Menu.SetColumnOrientation($colour_menu_shops, 1, 1)
Menu.SetColumn($colour_menu_shops, 1, 'COST', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetItemWithNumber($colour_menu_shops, 1, 0, 'DOLLAR', 150)
Menu.SetItemWithNumber($colour_menu_shops, 1, 1, 'DOLLAR', 150)

:CARMOD_22309
Menu.SetColumnWidth($colour_menu_shops, 0, 140)
Menu.SetColumnWidth($colour_menu_shops, 1, 46)
$colour_menu_drawn_shops = 1

:CARMOD_22335
return 

:CARMOD_22337
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 401
  is_int_var_equal_to_constant $forth_menu_item2 == 402
  is_int_var_equal_to_constant $forth_menu_item2 == 404
  is_int_var_equal_to_constant $forth_menu_item2 == 405
  is_int_var_equal_to_constant $forth_menu_item2 == 409
  is_int_var_equal_to_constant $forth_menu_item2 == 410
goto_if_false @CARMOD_22403
$10433 = 2

:CARMOD_22403
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 411
  is_int_var_equal_to_constant $forth_menu_item2 == 412
  is_int_var_equal_to_constant $forth_menu_item2 == 413
  is_int_var_equal_to_constant $forth_menu_item2 == 415
  is_int_var_equal_to_constant $forth_menu_item2 == 418
  is_int_var_equal_to_constant $forth_menu_item2 == 419
goto_if_false @CARMOD_22469
$10433 = 2

:CARMOD_22469
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 421
  is_int_var_equal_to_constant $forth_menu_item2 == 426
  is_int_var_equal_to_constant $forth_menu_item2 == 434
  is_int_var_equal_to_constant $forth_menu_item2 == 436
  is_int_var_equal_to_constant $forth_menu_item2 == 440
goto_if_false @CARMOD_22527
$10433 = 2

:CARMOD_22527
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 444
  is_int_var_equal_to_constant $forth_menu_item2 == 445
  is_int_var_equal_to_constant $forth_menu_item2 == 451
  is_int_var_equal_to_constant $forth_menu_item2 == 457
  is_int_var_equal_to_constant $forth_menu_item2 == 458
  is_int_var_equal_to_constant $forth_menu_item2 == 461
goto_if_false @CARMOD_22593
$10433 = 2

:CARMOD_22593
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 462
  is_int_var_equal_to_constant $forth_menu_item2 == 463
  is_int_var_equal_to_constant $forth_menu_item2 == 468
  is_int_var_equal_to_constant $forth_menu_item2 == 474
  is_int_var_equal_to_constant $forth_menu_item2 == 475
  is_int_var_equal_to_constant $forth_menu_item2 == 477
goto_if_false @CARMOD_22659
$10433 = 2

:CARMOD_22659
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 478
  is_int_var_equal_to_constant $forth_menu_item2 == 481
  is_int_var_equal_to_constant $forth_menu_item2 == 482
  is_int_var_equal_to_constant $forth_menu_item2 == 500
  is_int_var_equal_to_constant $forth_menu_item2 == 506
goto_if_false @CARMOD_22717
$10433 = 2

:CARMOD_22717
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 507
  is_int_var_equal_to_constant $forth_menu_item2 == 510
  is_int_var_equal_to_constant $forth_menu_item2 == 516
  is_int_var_equal_to_constant $forth_menu_item2 == 518
  is_int_var_equal_to_constant $forth_menu_item2 == 521
  is_int_var_equal_to_constant $forth_menu_item2 == 526
goto_if_false @CARMOD_22783
$10433 = 2

:CARMOD_22783
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 527
  is_int_var_equal_to_constant $forth_menu_item2 == 529
  is_int_var_equal_to_constant $forth_menu_item2 == 530
  is_int_var_equal_to_constant $forth_menu_item2 == 531
  is_int_var_equal_to_constant $forth_menu_item2 == 533
  is_int_var_equal_to_constant $forth_menu_item2 == 534
goto_if_false @CARMOD_22849
$10433 = 2

:CARMOD_22849
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 539
  is_int_var_equal_to_constant $forth_menu_item2 == 540
  is_int_var_equal_to_constant $forth_menu_item2 == 543
  is_int_var_equal_to_constant $forth_menu_item2 == 545
  is_int_var_equal_to_constant $forth_menu_item2 == 546
goto_if_false @CARMOD_22907
$10433 = 2

:CARMOD_22907
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 547
  is_int_var_equal_to_constant $forth_menu_item2 == 550
  is_int_var_equal_to_constant $forth_menu_item2 == 551
  is_int_var_equal_to_constant $forth_menu_item2 == 552
  is_int_var_equal_to_constant $forth_menu_item2 == 555
  is_int_var_equal_to_constant $forth_menu_item2 == 556
goto_if_false @CARMOD_22973
$10433 = 2

:CARMOD_22973
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 559
  is_int_var_equal_to_constant $forth_menu_item2 == 560
  is_int_var_equal_to_constant $forth_menu_item2 == 561
  is_int_var_equal_to_constant $forth_menu_item2 == 509
  is_int_var_equal_to_constant $forth_menu_item2 == 562
  is_int_var_equal_to_constant $forth_menu_item2 == 558
goto_if_false @CARMOD_23039
$10433 = 2

:CARMOD_23039
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 565
  is_int_var_equal_to_constant $forth_menu_item2 == 571
  is_int_var_equal_to_constant $forth_menu_item2 == 572
  is_int_var_equal_to_constant $forth_menu_item2 == 574
  is_int_var_equal_to_constant $forth_menu_item2 == 579
  is_int_var_equal_to_constant $forth_menu_item2 == 580
goto_if_false @CARMOD_23105
$10433 = 2

:CARMOD_23105
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 581
  is_int_var_equal_to_constant $forth_menu_item2 == 582
  is_int_var_equal_to_constant $forth_menu_item2 == 585
  is_int_var_equal_to_constant $forth_menu_item2 == 586
  is_int_var_equal_to_constant $forth_menu_item2 == 589
  is_int_var_equal_to_constant $forth_menu_item2 == 543
goto_if_false @CARMOD_23171
$10433 = 2

:CARMOD_23171
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 587
  is_int_var_equal_to_constant $forth_menu_item2 == 600
  is_int_var_equal_to_constant $forth_menu_item2 == 602
  is_int_var_equal_to_constant $forth_menu_item2 == 420
  is_int_var_equal_to_constant $forth_menu_item2 == 400
  is_int_var_equal_to_constant $forth_menu_item2 == 439
goto_if_false @CARMOD_23237
$10433 = 2

:CARMOD_23237
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 535
  is_int_var_equal_to_constant $forth_menu_item2 == 542
  is_int_var_equal_to_constant $forth_menu_item2 == 549
  is_int_var_equal_to_constant $forth_menu_item2 == 438
goto_if_false @CARMOD_23287
$10433 = 2

:CARMOD_23287
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 422
  is_int_var_equal_to_constant $forth_menu_item2 == 423
  is_int_var_equal_to_constant $forth_menu_item2 == 424
  is_int_var_equal_to_constant $forth_menu_item2 == 429
  is_int_var_equal_to_constant $forth_menu_item2 == 442
  is_int_var_equal_to_constant $forth_menu_item2 == 536
goto_if_false @CARMOD_23353
$10433 = 2

:CARMOD_23353
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 466
  is_int_var_equal_to_constant $forth_menu_item2 == 467
  is_int_var_equal_to_constant $forth_menu_item2 == 471
  is_int_var_equal_to_constant $forth_menu_item2 == 479
  is_int_var_equal_to_constant $forth_menu_item2 == 483
  is_int_var_equal_to_constant $forth_menu_item2 == 489
goto_if_false @CARMOD_23419
$10433 = 2

:CARMOD_23419
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 491
  is_int_var_equal_to_constant $forth_menu_item2 == 492
  is_int_var_equal_to_constant $forth_menu_item2 == 494
  is_int_var_equal_to_constant $forth_menu_item2 == 495
  is_int_var_equal_to_constant $forth_menu_item2 == 496
  is_int_var_equal_to_constant $forth_menu_item2 == 502
goto_if_false @CARMOD_23485
$10433 = 2

:CARMOD_23485
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 503
  is_int_var_equal_to_constant $forth_menu_item2 == 504
  is_int_var_equal_to_constant $forth_menu_item2 == 517
  is_int_var_equal_to_constant $forth_menu_item2 == 522
  is_int_var_equal_to_constant $forth_menu_item2 == 525
  is_int_var_equal_to_constant $forth_menu_item2 == 480
goto_if_false @CARMOD_23551
$10433 = 2

:CARMOD_23551
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 541
  is_int_var_equal_to_constant $forth_menu_item2 == 517
  is_int_var_equal_to_constant $forth_menu_item2 == 554
  is_int_var_equal_to_constant $forth_menu_item2 == 567
goto_if_false @CARMOD_23601
$10433 = 2

:CARMOD_23601
if or
  is_int_var_equal_to_constant $forth_menu_item2 == 573
  is_int_var_equal_to_constant $forth_menu_item2 == 575
  is_int_var_equal_to_constant $forth_menu_item2 == 576
  is_int_var_equal_to_constant $forth_menu_item2 == 583
  is_int_var_equal_to_constant $forth_menu_item2 == 603
goto_if_false @CARMOD_23659
$10433 = 2

:CARMOD_23659
if 
  is_int_var_equal_to_constant $forth_menu_item2 == 557
goto_if_false @CARMOD_23685
$10433 = 2

:CARMOD_23685
return 

:CARMOD_23687
$temp_var_shops = 0
$10471 = 0

:CARMOD_23701
if 
  16 > $temp_var_shops
goto_if_false @CARMOD_23781
$10455($temp_var_shops,16i) = Car.GetAvailableMod($original_car_mod, $selected_car_colour_mods($temp_var_shops,16i))
if 
  $10455($temp_var_shops,16i) <> -1
goto_if_false @CARMOD_23767
$10471 += 1

:CARMOD_23767
$temp_var_shops += 1
goto @CARMOD_23701

:CARMOD_23781
return 

:CARMOD_23783
if 
  $mod_model_index == 0
goto_if_false @CARMOD_24473
Text.PrintHelpForever('MODH2')
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CARMOD_23874
$number_of_mods_in_section = Menu.Create('UPGRADE', 29.0, 145.0, 93.0, 2, False, True, 1)
goto @CARMOD_24115

:CARMOD_23874
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CARMOD_23936
$number_of_mods_in_section = Menu.Create('UPGRADE', 29.0, 165.0, 93.0, 2, False, True, 1)
goto @CARMOD_24115

:CARMOD_23936
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CARMOD_23998
$number_of_mods_in_section = Menu.Create('UPGRADE', 29.0, 165.0, 93.0, 2, False, True, 1)
goto @CARMOD_24115

:CARMOD_23998
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CARMOD_24060
$number_of_mods_in_section = Menu.Create('UPGRADE', 29.0, 145.0, 93.0, 2, False, True, 1)
goto @CARMOD_24115

:CARMOD_24060
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CARMOD_24115
$number_of_mods_in_section = Menu.Create('UPGRADE', 29.0, 145.0, 93.0, 2, False, True, 1)

:CARMOD_24115
Menu.SetColumnOrientation($number_of_mods_in_section, 0, 1)
Menu.SetColumn($number_of_mods_in_section, 0, 'UPGRADE', $item_text_label($10402,12s), 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
if 
  $10389($10401,12i) == 100
goto_if_false @CARMOD_24289
Menu.SetItemWithNumber($number_of_mods_in_section, 0, 0, 'PJOB', $vomit_camZ)

:CARMOD_24289
Menu.SetColumnOrientation($number_of_mods_in_section, 1, 2)
Menu.SetColumn($number_of_mods_in_section, 1, 'COST', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY', 'DUMMY')
Menu.SetItemWithNumber($number_of_mods_in_section, 1, 0, 'DOLLAR', $item_price($10402,12i))
Menu.SetColumnWidth($number_of_mods_in_section, 0, 140)
Menu.SetColumnWidth($number_of_mods_in_section, 1, 46)
$mod_model_index = 1

:CARMOD_24473
return 
terminate_this_script 

//-------------External script 67 (CRANE1)---------------

:CRANE1
script_name 'CRANE1'
5@ = 0
if 
  5@ == 1
goto_if_false @CRANE1_102
0@ = Object.CreateNoOffset(#WOODENBOX, 0.0, 0.0, 0.0)
1@ = Object.CreateNoOffset(#WOODENBOX, 0.0, 0.0, 0.0)
2@ = Object.CreateNoOffset(#WOODENBOX, 0.0, 0.0, 0.0)

:CRANE1_102
if 
  Object.DoesExist(0@)
goto_if_false @CRANE1_258
if 
  Object.Locate2D(0@, -2080.441, 256.015, 10.0, 10.0, False)
goto_if_false @CRANE1_188
set_lvar_int_to_var_int 1@ = $sf_crane1_base
set_lvar_int_to_var_int 2@ = $sf_crane1_arm
set_lvar_int_to_var_int 3@ = $sf_crane1_base_LOD
set_lvar_int_to_var_int 4@ = $sf_crane1_trolley

:CRANE1_188
if 
  Object.Locate2D(0@, 2399.202, 1879.139, 10.0, 10.0, False)
goto_if_false @CRANE1_258
set_lvar_int_to_var_int 1@ = $lv_base
set_lvar_int_to_var_int 2@ = $lv_arm
set_lvar_int_to_var_int 3@ = $lv_base_LOD
set_lvar_int_to_var_int 4@ = $lv_trolley

:CRANE1_258
$10480 = 0
21@ = 0

:CRANE1_272
wait 0
if 
  Object.DoesExist(0@)
goto_if_false @CRANE1_2496
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE1_2489
if 
  $flag_car_normal_carmod == 0
goto_if_false @CRANE1_2489
if 
  $reset_crane_camera == 1
goto_if_false @CRANE1_351
gosub @CRANE1_2512

:CRANE1_351
if 
  Char.LocateAnyMeansObject2D($scplayer, 0@, 100.0, 100.0, False)
goto_if_false @CRANE1_2487
if 
  $player_is_in_crane == 1
goto_if_false @CRANE1_407
gosub @CRANE1_2512

:CRANE1_407
if 
  5@ == 0
goto_if_false @CRANE1_461
9@, 10@, 11@ = Object.GetOffsetInWorldCoords(0@, 0.0, -7.2092, -31.7581)
5@ += 1

:CRANE1_461
if 
  5@ == 1
goto_if_false @CRANE1_646
if 
  Char.LocateOnFoot3D($scplayer, 9@, 10@, 11@, 1.2, 1.2, 1.5, True)
goto_if_false @CRANE1_619
if 
  Char.IsOnFoot($scplayer)
goto_if_false @CRANE1_612
if 
  $10480 == 0
goto_if_false @CRANE1_573
Text.PrintHelpForever('CR_2')
$10480 = 1

:CRANE1_573
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CRANE1_612
5@ += 1
TIMERA = 6000
$10480 = 0

:CRANE1_612
goto @CRANE1_646

:CRANE1_619
if 
  $10480 <> 0
goto_if_false @CRANE1_646
Text.ClearHelp
$10480 = 0

:CRANE1_646
if 
  5@ == 2
goto_if_false @CRANE1_1068
if 
  Object.DoesExist(1@)
goto_if_false @CRANE1_688
Audio.ReportMissionAudioEventAtObject(1@, 1019)

:CRANE1_688
Player.SetControl($player1, False)
Game.SetMinigameInProgress(True)
Camera.DoFade(500, Fade.Out)

:CRANE1_706
if 
  Camera.GetFadingStatus
goto_if_false @CRANE1_730
wait 0
goto @CRANE1_706

:CRANE1_730
if 
  is_int_lvar_equal_to_int_var 1@ == $sf_crane1_base
goto_if_false @CRANE1_758
Crane.PlayerEnteredBuildingsiteCrane
goto @CRANE1_760

:CRANE1_758
Crane.PlayerEnteredLasVegasCrane

:CRANE1_760
Text.DisplayNonMinigameHelpMessages(True)
7@ = Object.GetHeading(1@)
$x, $y, $z = Object.GetCoordinates(1@)
12@, 13@, 14@ = Object.GetCoordinates(2@)
8@ = Math.GetDistanceBetweenCoords2D($x, $y, 12@, 13@)
if 
  8@ > 47.5
goto_if_false @CRANE1_848
8@ = 47.5

:CRANE1_848
if 
  10.0 > 8@
goto_if_false @CRANE1_879
8@ = 10.0

:CRANE1_879
if 
  Object.DoesExist(1@)
goto_if_false @CRANE1_943
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE1_943
Char.AttachToObject($scplayer, 0@, 0.0, 0.0, 34.5, 0, 360.0, WeaponType.Unarmed)

:CRANE1_943
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE1_1016
Char.FreezePosition($scplayer, True)
Char.SetVisible($scplayer, False)
Player.SetControl($player1, True)
Char.SetCollision($scplayer, False)
Char.SetProofs($scplayer, True, True, True, True, True)
$player_is_in_crane = 1
22@ = 0

:CRANE1_1016
Game.SetEveryoneIgnorePlayer($player1, False)
gosub @CRANE1_2512
Camera.DoFade(500, Fade.In)

:CRANE1_1037
if 
  Camera.GetFadingStatus
goto_if_false @CRANE1_1061
wait 0
goto @CRANE1_1037

:CRANE1_1061
5@ += 1

:CRANE1_1068
if 
  5@ == 3
goto_if_false @CRANE1_2277
if 
  TIMERA > 6000
goto_if_false @CRANE1_1468
$10480 += 1
if 
  7 > $10480
goto_if_false @CRANE1_1461
switch_start $10480 {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CRANE1_1461 {caseNum1} 1 {caseLabel1} @CRANE1_1193 {caseNum2} 2 {caseLabel2} @CRANE1_1250 {caseNum3} 3 {caseLabel3} @CRANE1_1307 {caseNum4} 4 {caseLabel4} @CRANE1_1364 {caseNum5} 5 {caseLabel5} @CRANE1_1421 {caseNum6} 6 {caseLabel6} @CRANE1_1441 {caseNum7} -1 {caseLabel7} @CRANE1_1461

:CRANE1_1193
Text.ClearHelp
if 
  is_int_lvar_equal_to_int_var 1@ == $sf_crane1_base
goto_if_false @CRANE1_1232
Text.PrintHelpForever('CONS_1')
goto @CRANE1_1243

:CRANE1_1232
Text.PrintHelpForever('CONS_1B')

:CRANE1_1243
goto @CRANE1_1461

:CRANE1_1250
Text.ClearHelp
if 
  is_int_lvar_equal_to_int_var 1@ == $sf_crane1_base
goto_if_false @CRANE1_1289
Text.PrintHelpForever('CONS_2')
goto @CRANE1_1300

:CRANE1_1289
Text.PrintHelpForever('CONS_2B')

:CRANE1_1300
goto @CRANE1_1461

:CRANE1_1307
Text.ClearHelp
if 
  is_int_lvar_equal_to_int_var 1@ == $sf_crane1_base
goto_if_false @CRANE1_1346
Text.PrintHelpForever('CONS_3')
goto @CRANE1_1357

:CRANE1_1346
Text.PrintHelpForever('CONS_3B')

:CRANE1_1357
goto @CRANE1_1461

:CRANE1_1364
Text.ClearHelp
if 
  is_int_lvar_equal_to_int_var 1@ == $sf_crane1_base
goto_if_false @CRANE1_1403
Text.PrintHelpForever('CONS_4')
goto @CRANE1_1414

:CRANE1_1403
Text.PrintHelpForever('CONS_4B')

:CRANE1_1414
goto @CRANE1_1461

:CRANE1_1421
Text.ClearHelp
Text.PrintHelpForever('CONS_5')
goto @CRANE1_1461

:CRANE1_1441
Text.ClearHelp
Text.PrintHelp('CR_3')
goto @CRANE1_1461

:CRANE1_1461
TIMERA = 0

:CRANE1_1468
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE1_2277
if 
is_ps2_keyboard_key_pressed 20
goto_if_false @CRANE1_1509
$10477 += 0.1

:CRANE1_1509
if 
is_ps2_keyboard_key_pressed 4
goto_if_false @CRANE1_1534
$10477 += -0.1

:CRANE1_1534
if 
is_ps2_keyboard_key_pressed 26
goto_if_false @CRANE1_1559
$10478 += 0.1

:CRANE1_1559
if 
is_ps2_keyboard_key_pressed 22
goto_if_false @CRANE1_1584
$10478 += -0.1

:CRANE1_1584
if 
is_ps2_keyboard_key_pressed 8
goto_if_false @CRANE1_1609
$10479 += 0.1

:CRANE1_1609
if 
is_ps2_keyboard_key_pressed 7
goto_if_false @CRANE1_1634
$10479 += -0.1

:CRANE1_1634
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftStickX)
goto_if_false @CRANE1_1749
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
cset_lvar_float_to_var_int 6@ =# $LStickX
6@ /= 500.0
sub_timed_float_lvar_from_float_lvar 7@ -=@ 6@
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE1_1742
if 
  22@ <> 1
goto_if_false @CRANE1_1742
Audio.ReportMissionAudioEventAtObject(1@, 1020)
22@ = 1

:CRANE1_1742
goto @CRANE1_1798

:CRANE1_1749
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE1_1798
if 
  22@ <> 0
goto_if_false @CRANE1_1798
Audio.ReportMissionAudioEventAtObject(1@, 1021)
22@ = 0

:CRANE1_1798
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftStickY)
goto_if_false @CRANE1_2000
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
cset_lvar_float_to_var_int 6@ =# $LStickY
6@ /= 128.0
if or
  6@ > 0.6
  -0.6 > 6@
goto_if_false @CRANE1_1993
6@ *= 0.15
sub_timed_float_lvar_from_float_lvar 8@ -=@ 6@
if 
  8@ > 47.5
goto_if_false @CRANE1_1929
8@ = 47.5

:CRANE1_1929
if 
  10.0 > 8@
goto_if_false @CRANE1_1960
8@ = 10.0

:CRANE1_1960
if 
  23@ <> 1
goto_if_false @CRANE1_1993
Audio.ReportMissionAudioEventAtObject(2@, 1020)
23@ = 1

:CRANE1_1993
goto @CRANE1_2033

:CRANE1_2000
if 
  23@ <> 0
goto_if_false @CRANE1_2033
Audio.ReportMissionAudioEventAtObject(2@, 1021)
23@ = 0

:CRANE1_2033
if 
  Object.DoesExist(2@)
goto_if_false @CRANE1_2071
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Cross)
goto_if_false @CRANE1_2071
Object.ReleaseEntityFromRope(2@)

:CRANE1_2071
if 
  Object.DoesExist(1@)
goto_if_false @CRANE1_2172
if 
  Object.DoesExist(0@)
goto_if_false @CRANE1_2172
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 0.0, 0.0, 32.521)
Object.SetHeading(1@, 7@)
if 
  Object.DoesExist(3@)
goto_if_false @CRANE1_2164
Object.SetHeading(3@, 7@)

:CRANE1_2164
Char.SetHeading($scplayer, 7@)

:CRANE1_2172
if 
  Object.DoesExist(1@)
goto_if_false @CRANE1_2253
if 
  Object.DoesExist(2@)
goto_if_false @CRANE1_2253
$x, $y, $z = Object.GetOffsetInWorldCoords(1@, 0.0, 8@, 3.453)
Object.SetCoordinatesAndVelocity(2@, $x, $y, $z)
Object.SetHeading(2@, 7@)

:CRANE1_2253
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CRANE1_2277
5@ += 1

:CRANE1_2277
if 
  5@ == 4
goto_if_false @CRANE1_2480
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE1_2480
$x, $y, $z = Char.GetCoordinates($scplayer)
if 
  Object.DoesExist(1@)
goto_if_false @CRANE1_2349
Audio.ReportMissionAudioEventAtObject(1@, 1022)

:CRANE1_2349
Text.ClearHelp
Crane.PlayerLeftCrane
Game.SetMinigameInProgress(False)
$x, $y, $z = Object.GetOffsetInWorldCoords(0@, 2.0, -7.0, 0.0)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
Char.SetCoordinates($scplayer, $x, $y, $z)
Char.DetachFromCar($scplayer)
Char.FreezePosition($scplayer, False)
Char.SetVisible($scplayer, True)
Char.SetCollision($scplayer, True)
Char.SetProofs($scplayer, False, False, False, False, False)
Player.SetControl($player1, True)
Camera.RestoreJumpcut
$player_is_in_crane = 0
5@ = 0
terminate_this_script 

:CRANE1_2480
goto @CRANE1_2489

:CRANE1_2487
terminate_this_script 

:CRANE1_2489
goto @CRANE1_2505

:CRANE1_2496
5@ = 0
terminate_this_script 

:CRANE1_2505
goto @CRANE1_272

:CRANE1_2512
if 
  $flag_car_lowrider_carmod == 0
goto_if_false @CRANE1_3074
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Select)
goto_if_false @CRANE1_2619
if 
  24@ == 0
goto_if_false @CRANE1_2612
21@ += 1
if 
  21@ > 2
goto_if_false @CRANE1_2597
21@ = 0

:CRANE1_2597
set_var_int_to_lvar_int $flag_car_racer_carmod = 21@
24@ += 1

:CRANE1_2612
goto @CRANE1_2644

:CRANE1_2619
if 
  24@ <> 0
goto_if_false @CRANE1_2644
24@ = 0

:CRANE1_2644
if 
  $player_is_in_crane == 1
goto_if_false @CRANE1_2695
if 
  $reset_crane_camera == 1
goto_if_false @CRANE1_2695
set_var_int_to_var_int $flag_car_racer_carmod = $flag_car_racer_carmod
$reset_crane_camera = 0

:CRANE1_2695
if 
  21@ == 0
goto_if_false @CRANE1_2758
if 
  Object.DoesExist(1@)
goto_if_false @CRANE1_2758
15@, 16@, 17@ = Object.GetOffsetInWorldCoords(1@, -7.18, -6.42, 15.79)

:CRANE1_2758
if 
  21@ == 1
goto_if_false @CRANE1_2920
if 
  Object.DoesExist(1@)
goto_if_false @CRANE1_2920
15@, 16@, 17@ = Object.GetOffsetInWorldCoords(2@, 0.0, -4.5, 20.1999)
if 
  Object.DoesExist(2@)
goto_if_false @CRANE1_2920
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, 0.0, 0.0, 20.1999)
6@ = Object.GetRopeHeight(2@)
6@ += -1.0
6@ *= -1.0
6@ *= 72.0
sub_float_lvar_from_float_var $z -= 6@
set_lvar_float_to_var_float 17@ = $z

:CRANE1_2920
if 
  Object.DoesExist(2@)
goto_if_false @CRANE1_3035
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, 0.0, 0.0, 2.0)
6@ = Object.GetRopeHeight(2@)
6@ += -1.0
6@ *= -1.0
6@ *= 72.0
sub_float_lvar_from_float_var $z -= 6@
set_lvar_float_to_var_float 18@ = $x
set_lvar_float_to_var_float 19@ = $y
set_lvar_float_to_var_float 20@ = $z

:CRANE1_3035
Camera.SetFixedPosition(15@, 16@, 17@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(18@, 19@, 20@, SwitchType.JumpCut)

:CRANE1_3074
return 
terminate_this_script 

//-------------External script 68 (CRANE2)---------------

:CRANE2
script_name 'CRANE2'
0@ = 0
if 
  0@ == 1
goto_if_false @CRANE2_102
$sf_crane1_arm_LOD = Object.CreateNoOffset(#WOODENBOX, 0.0, 0.0, 0.0)
$magno_base = Object.CreateNoOffset(#WOODENBOX, 0.0, 0.0, 0.0)
$magno_cabin = Object.CreateNoOffset(#WOODENBOX, 0.0, 0.0, 0.0)

:CRANE2_102
$can_car_be_modded_counter = 0
$cam_pos_z = 33.7
$magno_arm_h = 15.0
28@ = 0
27@ = 1
$magno_camera_type = 0

:CRANE2_150
wait 0
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @CRANE2_4698
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE2_4691
if 
  $flag_car_normal_carmod == 0
goto_if_false @CRANE2_4691
if 
  Char.LocateAnyMeansObject2D($scplayer, $sf_crane1_arm_LOD, 100.0, 100.0, False)
goto_if_false @CRANE2_4689
if 
  $reset_crane_camera == 1
goto_if_false @CRANE2_260
gosub @CRANE2_4714

:CRANE2_260
if and
  Player.IsPlaying($player1)
  $disable_crane == 0
goto_if_false @CRANE2_4682
if 
  Char.LocateAnyMeansObject2D($scplayer, $sf_crane1_arm_LOD, 100.0, 100.0, False)
goto_if_false @CRANE2_4657
if 
  $player_is_in_crane == 2
goto_if_false @CRANE2_339
gosub @CRANE2_4714

:CRANE2_339
if 
  0@ == 0
goto_if_false @CRANE2_393
1@, 2@, 3@ = Object.GetOffsetInWorldCoords($sf_crane1_arm_LOD, -1.7837, 2.4699, -24.1519)
0@ += 1

:CRANE2_393
if 
  0@ == 1
goto_if_false @CRANE2_691
if 
  Char.LocateOnFoot3D($scplayer, 1@, 2@, 3@, 1.2, 1.2, 1.5, True)
goto_if_false @CRANE2_538
if 
  Char.IsOnFoot($scplayer)
goto_if_false @CRANE2_531
if 
  $can_car_be_modded_counter == 0
goto_if_false @CRANE2_505
Text.PrintHelpForever('CR_2')
$can_car_be_modded_counter = 1

:CRANE2_505
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CRANE2_531
Text.ClearHelp
0@ += 1

:CRANE2_531
goto @CRANE2_565

:CRANE2_538
if 
  $can_car_be_modded_counter <> 0
goto_if_false @CRANE2_565
Text.ClearHelp
$can_car_be_modded_counter = 0

:CRANE2_565
if 
  15.0 > $magno_arm_h
goto_if_false @CRANE2_628
$magno_arm_h = 15.0
if 
  Object.DoesExist($magno_cabin)
goto_if_false @CRANE2_628
Object.SetRotation($magno_cabin, $magno_arm_h, 0.0, $magno_cabin_h)

:CRANE2_628
if 
  $magno_arm_h > 30.0
goto_if_false @CRANE2_691
$magno_arm_h = 30.0
if 
  Object.DoesExist($magno_cabin)
goto_if_false @CRANE2_691
Object.SetRotation($magno_cabin, $magno_arm_h, 0.0, $magno_cabin_h)

:CRANE2_691
if 
  0@ == 2
goto_if_false @CRANE2_1309
if 
  Object.DoesExist($magno_base)
goto_if_false @CRANE2_733
Audio.ReportMissionAudioEventAtObject($magno_base, 1019)

:CRANE2_733
Player.SetControl($player1, False)
Game.SetMinigameInProgress(True)
Camera.DoFade(500, Fade.Out)

:CRANE2_751
if 
  Camera.GetFadingStatus
goto_if_false @CRANE2_775
wait 0
goto @CRANE2_751

:CRANE2_775
Crane.PlayerEnteredDockCrane
Text.DisplayNonMinigameHelpMessages(True)
$magno_base_z = Object.GetHeading($magno_base)
$magno_cabin_h = Object.GetHeading($magno_cabin)
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @CRANE2_875
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE2_875
$magno_arm_LOD, $magno_base_x, $magno_base_y = Object.GetCoordinates($sf_crane1_arm_LOD)
Char.AttachToObject($scplayer, $sf_crane1_arm_LOD, 0.0, 0.0, 2.0, 0, 360.0, WeaponType.Unarmed)

:CRANE2_875
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE2_948
Char.FreezePosition($scplayer, True)
Char.SetVisible($scplayer, False)
Player.SetControl($player1, True)
Char.SetCollision($scplayer, False)
Char.SetProofs($scplayer, True, True, True, True, True)
$player_is_in_crane = 2
$cam_look_z = 0

:CRANE2_948
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @CRANE2_978
21@, 22@, $z = Object.GetCoordinates($sf_crane1_arm_LOD)

:CRANE2_978
if 
  Object.DoesExist($magno_cabin)
goto_if_false @CRANE2_1002
25@ = Object.GetHeading($magno_cabin)

:CRANE2_1002
if 
  Object.DoesExist($magno_cabin)
goto_if_false @CRANE2_1204
$disable_all_cranes, $do_not_update_camera_crane1, $crane1_cam_mode = Object.GetOffsetInWorldCoords($magno_cabin, 0.0, $cam_pos_z, -3.0)
4@ = Object.GetRopeHeight($magno_cabin)
4@ += -1.0
4@ *= -1.0
4@ *= 50.0
sub_float_lvar_from_float_var $crane1_cam_mode -= 4@
set_var_float_to_var_float $x = $disable_all_cranes
sub_float_var_from_float_var $x -= $magno_arm_LOD
set_var_float_to_var_float $y = $do_not_update_camera_crane1
sub_float_var_from_float_var $y -= $magno_base_x
4@ = Math.GetDistanceBetweenCoords2D($disable_all_cranes, $do_not_update_camera_crane1, $magno_arm_LOD, $magno_base_x)
div_float_var_by_float_lvar $x /= 4@
div_float_var_by_float_lvar $y /= 4@
mult_float_var_by_float_var $x *= $cam_pos_z
mult_float_var_by_float_var $y *= $cam_pos_z
set_var_float_to_var_float $disable_all_cranes = $magno_arm_LOD
add_float_var_to_float_var $disable_all_cranes += $x
set_var_float_to_var_float $do_not_update_camera_crane1 = $magno_base_x
add_float_var_to_float_var $do_not_update_camera_crane1 += $y

:CRANE2_1204
set_lvar_float_to_var_float 10@ = $disable_all_cranes
set_lvar_float_to_var_float 11@ = $do_not_update_camera_crane1
$new_cam_look_x = 0.0
$new_cam_look_y = 0.0
$new_cam_look_z = 0.3
Game.SetEveryoneIgnorePlayer($player1, False)
gosub @CRANE2_4714
Camera.DoFade(500, Fade.In)

:CRANE2_1271
if 
  Camera.GetFadingStatus
goto_if_false @CRANE2_1302
wait 0
gosub @CRANE2_4714
goto @CRANE2_1271

:CRANE2_1302
0@ += 1

:CRANE2_1309
if 
  0@ == 3
goto_if_false @CRANE2_4428
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE2_4428
if 
is_ps2_keyboard_key_pressed 82
goto_if_false @CRANE2_1368
$cam_pos_z += 0.1

:CRANE2_1368
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @CRANE2_1393
$cam_pos_z += -0.1

:CRANE2_1393
if 
  $player_is_in_crane == 2
goto_if_false @CRANE2_3928
if or
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftStickX)
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftStickY)
goto_if_false @CRANE2_2945
if 
  $cam_look_z <> 1
goto_if_false @CRANE2_1483
if 
  Object.DoesExist($magno_base)
goto_if_false @CRANE2_1476
Audio.ReportMissionAudioEventAtObject($magno_base, 1020)

:CRANE2_1476
$cam_look_z = 1

:CRANE2_1483
if 
  $disable_manual_control == 0
goto_if_false @CRANE2_2938
28@ = 1
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
cset_lvar_float_to_var_int 6@ =# $LStickX
cset_lvar_float_to_var_int 7@ =# $LStickY
6@ /= 128.0
7@ /= 128.0
6@ *= 0.15
7@ *= 0.15
set_lvar_float_to_var_float 12@ = $crane_rope_length
set_lvar_float_to_var_float 13@ = $cam_pos_x
set_lvar_float_to_lvar_float 15@ = 13@
set_lvar_float_to_lvar_float 16@ = 12@
16@ *= -1.0
mult_float_lvar_by_float_lvar 12@ *= 7@
mult_float_lvar_by_float_lvar 13@ *= 7@
12@ *= -1.0
13@ *= -1.0
add_timed_float_lvar_to_float_lvar 10@ +=@ 12@
add_timed_float_lvar_to_float_lvar 11@ +=@ 13@
mult_float_lvar_by_float_lvar 15@ *= 6@
mult_float_lvar_by_float_lvar 16@ *= 6@
add_timed_float_lvar_to_float_lvar 10@ +=@ 15@
add_timed_float_lvar_to_float_lvar 11@ +=@ 16@
4@ = Math.GetDistanceBetweenCoords2D(10@, 11@, $crane_help1, $crane_help2)
if 
  4@ > 0.3
goto_if_false @CRANE2_1844
set_var_float_to_lvar_float $x = 10@
sub_float_var_from_float_var $x -= $crane_help1
set_var_float_to_lvar_float $y = 11@
sub_float_var_from_float_var $y -= $crane_help2
div_float_var_by_float_lvar $x /= 4@
div_float_var_by_float_lvar $y /= 4@
$x *= 0.3
$y *= 0.3
set_lvar_float_to_var_float 10@ = $crane_help1
add_float_var_to_float_lvar 10@ += $x
set_lvar_float_to_var_float 11@ = $crane_help2
add_float_var_to_float_lvar 11@ += $y

:CRANE2_1844
$z = 0.0
set_var_float_to_lvar_float $y = 11@
set_var_float_to_var_float $x = $y
$x -= 1671.5
set_lvar_float_to_lvar_float 8@ = 10@
set_lvar_float_to_lvar_float 9@ = 8@
9@ += 1671.5
add_float_lvar_to_float_var $x += 8@
add_float_lvar_to_float_var $y += 9@
$x /= 2.0
$y /= 2.0
if 
  -1648.057 > $x
goto_if_false @CRANE2_2114
4@ = Math.GetDistanceBetweenCoords2D(-1648.057, 23.852, 10@, 11@)
if 
  is_float_lvar_greater_than_float_var 4@ > $cam_pos_z
goto_if_false @CRANE2_2107
set_lvar_float_to_lvar_float 12@ = 10@
12@ += 1648.057
set_lvar_float_to_lvar_float 13@ = 11@
13@ -= 23.852
div_float_lvar_by_float_lvar 12@ /= 4@
div_float_lvar_by_float_lvar 13@ /= 4@
mult_float_lvar_by_float_var 12@ *= $cam_pos_z
mult_float_lvar_by_float_var 13@ *= $cam_pos_z
10@ = -1648.057
add_float_lvar_to_float_lvar 10@ += 12@
11@ = 23.852
add_float_lvar_to_float_lvar 11@ += 13@

:CRANE2_2107
goto @CRANE2_2418

:CRANE2_2114
if 
  $x > -1532.742
goto_if_false @CRANE2_2286
4@ = Math.GetDistanceBetweenCoords2D(-1532.742, 138.719, 10@, 11@)
if 
  is_float_lvar_greater_than_float_var 4@ > $cam_pos_z
goto_if_false @CRANE2_2279
set_lvar_float_to_lvar_float 12@ = 10@
12@ += 1532.742
set_lvar_float_to_lvar_float 13@ = 11@
13@ -= 138.719
div_float_lvar_by_float_lvar 12@ /= 4@
div_float_lvar_by_float_lvar 13@ /= 4@
mult_float_lvar_by_float_var 12@ *= $cam_pos_z
mult_float_lvar_by_float_var 13@ *= $cam_pos_z
10@ = -1532.742
add_float_lvar_to_float_lvar 10@ += 12@
11@ = 138.719
add_float_lvar_to_float_lvar 11@ += 13@

:CRANE2_2279
goto @CRANE2_2418

:CRANE2_2286
4@ = Math.GetDistanceBetweenCoords2D($x, $y, 10@, 11@)
if 
  is_float_lvar_greater_than_float_var 4@ > $cam_pos_z
goto_if_false @CRANE2_2418
set_lvar_float_to_lvar_float 12@ = 10@
sub_float_var_from_float_lvar 12@ -= $x
set_lvar_float_to_lvar_float 13@ = 11@
sub_float_var_from_float_lvar 13@ -= $y
div_float_lvar_by_float_lvar 12@ /= 4@
div_float_lvar_by_float_lvar 13@ /= 4@
mult_float_lvar_by_float_var 12@ *= $cam_pos_z
mult_float_lvar_by_float_var 13@ *= $cam_pos_z
set_lvar_float_to_var_float 10@ = $x
add_float_lvar_to_float_lvar 10@ += 12@
set_lvar_float_to_var_float 11@ = $y
add_float_lvar_to_float_lvar 11@ += 13@

:CRANE2_2418
18@ = Math.GetDistanceBetweenCoords2D($x, $y, 10@, 11@)
set_lvar_float_to_var_float 4@ = $cam_pos_z
mult_float_lvar_by_float_var 4@ *= $cam_pos_z
set_lvar_float_to_lvar_float 5@ = 18@
mult_float_lvar_by_float_lvar 5@ *= 18@
set_lvar_float_to_lvar_float 19@ = 4@
sub_float_lvar_from_float_lvar 19@ -= 5@
set_lvar_float_to_lvar_float 20@ = 19@
20@ /= 2.0
20@ = Math.Sqrt(20@)
set_lvar_float_to_var_float 21@ = $x
sub_float_lvar_from_float_lvar 21@ -= 20@
set_lvar_float_to_var_float 22@ = $y
sub_float_lvar_from_float_lvar 22@ -= 20@
set_lvar_float_to_var_float 23@ = $x
add_float_lvar_to_float_lvar 23@ += 20@
set_lvar_float_to_var_float 24@ = $y
add_float_lvar_to_float_lvar 24@ += 20@
26@ = 0
if and
  -1532.742 > 21@
  21@ > -1648.057
goto_if_false @CRANE2_2618
26@ += 1

:CRANE2_2618
if and
  -1532.742 > 23@
  23@ > -1648.057
goto_if_false @CRANE2_2656
26@ += 2

:CRANE2_2656
if 
  26@ <> 0
goto_if_false @CRANE2_2879
if 
  26@ == 1
goto_if_false @CRANE2_2692

:CRANE2_2692
if 
  26@ == 2
goto_if_false @CRANE2_2726
set_lvar_float_to_lvar_float 21@ = 23@
set_lvar_float_to_lvar_float 22@ = 24@

:CRANE2_2726
if 
  26@ == 3
goto_if_false @CRANE2_2829
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @CRANE2_2829
4@ = Math.GetDistanceBetweenCoords2D($magno_arm_LOD, $magno_base_x, 21@, 22@)
5@ = Math.GetDistanceBetweenCoords2D($magno_arm_LOD, $magno_base_x, 23@, 24@)
if 
  is_float_lvar_greater_than_float_lvar 4@ > 5@
goto_if_false @CRANE2_2829
set_lvar_float_to_lvar_float 21@ = 23@
set_lvar_float_to_lvar_float 22@ = 24@

:CRANE2_2829
set_lvar_float_to_lvar_float 12@ = 10@
sub_float_lvar_from_float_lvar 12@ -= 21@
set_lvar_float_to_lvar_float 13@ = 11@
sub_float_lvar_from_float_lvar 13@ -= 22@
25@ = Math.GetHeadingFromVector2D(12@, 13@)
goto @CRANE2_2938

:CRANE2_2879
set_lvar_float_to_var_float 21@ = $magno_arm_LOD
set_lvar_float_to_var_float 22@ = $magno_base_x
set_lvar_float_to_lvar_float 12@ = 10@
sub_float_var_from_float_lvar 12@ -= $magno_arm_LOD
set_lvar_float_to_lvar_float 13@ = 11@
sub_float_var_from_float_lvar 13@ -= $magno_base_x
25@ = Math.GetHeadingFromVector2D(12@, 13@)

:CRANE2_2938
goto @CRANE2_3244

:CRANE2_2945
if 
  $cam_look_z <> 0
goto_if_false @CRANE2_2994
if 
  Object.DoesExist($magno_base)
goto_if_false @CRANE2_2987
Audio.ReportMissionAudioEventAtObject($magno_base, 1021)

:CRANE2_2987
$cam_look_z = 0

:CRANE2_2994
if 
  28@ <> 0
goto_if_false @CRANE2_3244
if 
  28@ == 1
goto_if_false @CRANE2_3105
set_var_float_to_var_float $x = $disable_all_cranes
set_var_float_to_var_float $y = $do_not_update_camera_crane1
set_lvar_float_to_var_float 12@ = $x
sub_float_var_from_float_lvar 12@ -= $magno_arm_LOD
set_lvar_float_to_var_float 13@ = $y
sub_float_var_from_float_lvar 13@ -= $magno_base_x
25@ = Math.GetHeadingFromVector2D(12@, 13@)
set_lvar_float_to_var_float 12@ = $cam_look_x
set_lvar_float_to_var_float 13@ = $cam_look_y

:CRANE2_3105
if 
  $new_cam_look_x > 0.0
goto_if_false @CRANE2_3244
$new_cam_look_y = -0.007
add_timed_float_var_to_float_var $new_cam_look_x +=@ $new_cam_look_y
if 
  0.0 > $new_cam_look_x
goto_if_false @CRANE2_3189
$new_cam_look_x = 0.0
28@ = 0
goto @CRANE2_3196

:CRANE2_3189
28@ = 2

:CRANE2_3196
set_var_float_to_var_float $x = $new_cam_look_x
mult_float_var_by_float_lvar $x *= 12@
set_var_float_to_var_float $y = $new_cam_look_x
mult_float_var_by_float_lvar $y *= 13@
add_float_var_to_float_var $magno_arm_LOD += $x
add_float_var_to_float_var $magno_base_x += $y

:CRANE2_3244
if 
  28@ == 1
goto_if_false @CRANE2_3528
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @CRANE2_3528
4@ = Math.GetDistanceBetweenCoords2D($magno_arm_LOD, $magno_base_x, 21@, 22@)
if 
  4@ > 0.01
goto_if_false @CRANE2_3364
set_var_float_to_lvar_float $cam_look_x = 21@
sub_float_var_from_float_var $cam_look_x -= $magno_arm_LOD
set_var_float_to_lvar_float $cam_look_y = 22@
sub_float_var_from_float_var $cam_look_y -= $magno_base_x
div_float_var_by_float_lvar $cam_look_x /= 4@
div_float_var_by_float_lvar $cam_look_y /= 4@

:CRANE2_3364
if 
  4@ > 0.01
goto_if_false @CRANE2_3528
$new_cam_look_y = 0.003
add_timed_float_var_to_float_var $new_cam_look_x +=@ $new_cam_look_y
if 
  is_float_var_greater_than_float_var $new_cam_look_x > $new_cam_look_z
goto_if_false @CRANE2_3430
set_var_float_to_var_float $new_cam_look_x = $new_cam_look_z

:CRANE2_3430
set_lvar_float_to_var_float 12@ = $cam_look_x
set_lvar_float_to_var_float 13@ = $cam_look_y
if 
  is_float_lvar_greater_than_float_var 4@ > $new_cam_look_x
goto_if_false @CRANE2_3488
mult_float_lvar_by_float_var 12@ *= $new_cam_look_x
mult_float_lvar_by_float_var 13@ *= $new_cam_look_x
goto @CRANE2_3512

:CRANE2_3488
mult_float_lvar_by_float_lvar 12@ *= 4@
mult_float_lvar_by_float_lvar 13@ *= 4@
set_var_float_to_lvar_float $new_cam_look_x = 4@

:CRANE2_3512
add_float_lvar_to_float_var $magno_arm_LOD += 12@
add_float_lvar_to_float_var $magno_base_x += 13@

:CRANE2_3528
if 
  28@ == 1
goto_if_false @CRANE2_3886
if 
  Object.DoesExist($magno_cabin)
goto_if_false @CRANE2_3886
if 
  25@ > 180.0
goto_if_false @CRANE2_3593
25@ += -360.0

:CRANE2_3593
if 
  -180.0 > 25@
goto_if_false @CRANE2_3624
25@ += 360.0

:CRANE2_3624
set_var_float_to_var_float $heading = $magno_cabin_h
if 
  $heading > 180.0
goto_if_false @CRANE2_3663
$heading += -360.0

:CRANE2_3663
if 
  -180.0 > $heading
goto_if_false @CRANE2_3694
$heading += 360.0

:CRANE2_3694
set_lvar_float_to_lvar_float 4@ = 25@
sub_float_var_from_float_lvar 4@ -= $heading
if 
  4@ > 180.0
goto_if_false @CRANE2_3741
4@ += -360.0

:CRANE2_3741
if 
  -180.0 > 4@
goto_if_false @CRANE2_3772
4@ += 360.0

:CRANE2_3772
if 
  4@ >= 0.0
goto_if_false @CRANE2_3831
if 
  4@ > 0.2
goto_if_false @CRANE2_3824
4@ = 0.2

:CRANE2_3824
goto @CRANE2_3862

:CRANE2_3831
if 
  -0.2 > 4@
goto_if_false @CRANE2_3862
4@ = -0.2

:CRANE2_3862
add_timed_float_lvar_to_float_var $heading +=@ 4@
set_var_float_to_var_float $magno_base_z = $heading
set_var_float_to_var_float $magno_cabin_h = $heading

:CRANE2_3886
if 
  $disable_crane_exit == 0
goto_if_false @CRANE2_3928
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CRANE2_3928
0@ += 1

:CRANE2_3928
if and
  -1532.742 > $magno_arm_LOD
  $magno_arm_LOD > -1648.057
goto_if_false @CRANE2_3996
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @CRANE2_3989
Object.SetCoordinatesAndVelocity($sf_crane1_arm_LOD, $magno_arm_LOD, $magno_base_x, $magno_base_y)

:CRANE2_3989
goto @CRANE2_4026

:CRANE2_3996
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @CRANE2_4026
$magno_arm_LOD, $magno_base_x, $magno_base_y = Object.GetCoordinates($sf_crane1_arm_LOD)

:CRANE2_4026
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @CRANE2_4102
if 
  Object.DoesExist($magno_arm)
goto_if_false @CRANE2_4102
$x, $y, $z = Object.GetCoordinates($sf_crane1_arm_LOD)
$heading = Object.GetHeading($sf_crane1_arm_LOD)
Object.SetCoordinates($magno_arm, $x, $y, $z)
Object.SetHeading($magno_arm, $heading)

:CRANE2_4102
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @CRANE2_4253
if 
  Object.DoesExist($magno_base)
goto_if_false @CRANE2_4193
$x, $y, $z = Object.GetOffsetInWorldCoords($sf_crane1_arm_LOD, 0.0, 0.0, 0.0)
Object.SetHeading($magno_base, $magno_base_z)
Object.SetCoordinatesAndVelocity($magno_base, $x, $y, $z)
Char.SetHeading($scplayer, $magno_base_z)

:CRANE2_4193
if 
  Object.DoesExist($magno_base_LOD)
goto_if_false @CRANE2_4253
$x, $y, $z = Object.GetCoordinates($magno_base)
$heading = Object.GetHeading($magno_base)
Object.SetCoordinates($magno_base_LOD, $x, $y, $z)
Object.SetHeading($magno_base_LOD, $heading)

:CRANE2_4253
if 
  Object.DoesExist($magno_cabin)
goto_if_false @CRANE2_4428
if 
  Object.DoesExist($magno_base)
goto_if_false @CRANE2_4352
$x, $y, $z = Object.GetOffsetInWorldCoords($magno_base, 0.0, -2.185, 8.51)
$magno_cabin_h = Object.GetHeading($magno_base)
Object.SetCoordinatesAndVelocity($magno_cabin, $x, $y, $z)
Object.SetRotation($magno_cabin, $magno_arm_h, 0.0, $magno_cabin_h)

:CRANE2_4352
if 
  Object.DoesExist($magno_cabin_LOD)
goto_if_false @CRANE2_4428
$x, $y, $z = Object.GetCoordinates($magno_cabin)
$heading = Object.GetHeading($magno_cabin)
Object.SetCoordinates($magno_cabin_LOD, $x, $y, $z)
Object.SetHeading($magno_cabin_LOD, $heading)
Object.SetRotation($magno_cabin_LOD, $magno_arm_h, 0.0, $magno_cabin_h)

:CRANE2_4428
if or
  0@ == 4
  $remove_player_from_crane == 1
goto_if_false @CRANE2_4650
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE2_4650
$x, $y, $z = Char.GetCoordinates($scplayer)
if 
  Object.DoesExist($magno_base)
goto_if_false @CRANE2_4507
Audio.ReportMissionAudioEventAtObject($magno_base, 1022)

:CRANE2_4507
Text.ClearHelp
Crane.PlayerLeftCrane
Game.SetMinigameInProgress(False)
$x, $y, $z = Object.GetOffsetInWorldCoords($sf_crane1_arm_LOD, 2.0, -4.0, 0.0)
$z = World.GetGroundZFor3DCoord($x, $y, $z)
Char.SetCoordinates($scplayer, $x, $y, $z)
Char.DetachFromCar($scplayer)
Char.FreezePosition($scplayer, False)
Char.SetVisible($scplayer, True)
Char.SetCollision($scplayer, True)
Char.SetProofs($scplayer, False, False, False, False, False)
Player.SetControl($player1, True)
Char.ClearTasksImmediately($scplayer)
Camera.SetBehindPlayer
Camera.RestoreJumpcut
$player_is_in_crane = 0
$remove_player_from_crane = 0
0@ = 0

:CRANE2_4650
goto @CRANE2_4682

:CRANE2_4657
if 
  0@ <> 0
goto_if_false @CRANE2_4682
0@ = 0

:CRANE2_4682
goto @CRANE2_4691

:CRANE2_4689
terminate_this_script 

:CRANE2_4691
goto @CRANE2_4707

:CRANE2_4698
0@ = 0
terminate_this_script 

:CRANE2_4707
goto @CRANE2_150

:CRANE2_4714
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Select)
goto_if_false @CRANE2_4803
if 
  29@ == 0
goto_if_false @CRANE2_4796
27@ += 1
if 
  27@ > 2
goto_if_false @CRANE2_4781
27@ = 0

:CRANE2_4781
set_var_int_to_lvar_int $magno_camera_type = 27@
29@ += 1

:CRANE2_4796
goto @CRANE2_4828

:CRANE2_4803
if 
  29@ <> 0
goto_if_false @CRANE2_4828
29@ = 0

:CRANE2_4828
if 
  $player_is_in_crane == 2
goto_if_false @CRANE2_4879
if 
  $reset_crane_camera == 1
goto_if_false @CRANE2_4879
set_lvar_int_to_var_int 27@ = $magno_camera_type
$reset_crane_camera = 0

:CRANE2_4879
if 
  not is_int_var_equal_to_int_lvar $magno_camera_type == 27@
goto_if_false @CRANE2_4906
set_var_int_to_lvar_int $magno_camera_type = 27@

:CRANE2_4906
if 
  27@ == 0
goto_if_false @CRANE2_4976
if 
  Object.DoesExist($magno_base)
goto_if_false @CRANE2_4969
$cammy_off_X, $cammy_off_Y, $cammy_off_Z = Object.GetOffsetInWorldCoords($magno_base, 6.1, 15.0, 5.1)

:CRANE2_4969
goto @CRANE2_5091

:CRANE2_4976
if 
  27@ == 1
goto_if_false @CRANE2_5046
if 
  Object.DoesExist($sf_crane1_arm_LOD)
goto_if_false @CRANE2_5039
$cammy_off_X, $cammy_off_Y, $cammy_off_Z = Object.GetOffsetInWorldCoords($sf_crane1_arm_LOD, -4.0, 17.3, 35.0)

:CRANE2_5039
goto @CRANE2_5091

:CRANE2_5046
if 
  Object.DoesExist($magno_base)
goto_if_false @CRANE2_5091
$cammy_off_X, $cammy_off_Y, $cammy_off_Z = Object.GetOffsetInWorldCoords($magno_base, 3.0, 45.0, 0.0)

:CRANE2_5091
if 
  Object.DoesExist($magno_cabin)
goto_if_false @CRANE2_5728
$crane_help1, $crane_help2, $crane_help3 = Object.GetOffsetInWorldCoords($magno_cabin, 0.0, $cam_pos_z, -3.0)
4@ = Object.GetRopeHeight($magno_cabin)
4@ += -1.0
4@ *= -1.0
4@ *= 50.0
sub_float_lvar_from_float_var $crane_help3 -= 4@
set_var_float_to_var_float $x = $crane_help1
sub_float_var_from_float_var $x -= $magno_arm_LOD
set_var_float_to_var_float $y = $crane_help2
sub_float_var_from_float_var $y -= $magno_base_x
4@ = Math.GetDistanceBetweenCoords2D($crane_help1, $crane_help2, $magno_arm_LOD, $magno_base_x)
div_float_var_by_float_lvar $x /= 4@
div_float_var_by_float_lvar $y /= 4@
mult_float_var_by_float_var $x *= $cam_pos_z
mult_float_var_by_float_var $y *= $cam_pos_z
set_var_float_to_var_float $crane_help1 = $magno_arm_LOD
add_float_var_to_float_var $crane_help1 += $x
set_var_float_to_var_float $crane_help2 = $magno_base_x
add_float_var_to_float_var $crane_help2 += $y
4@ = Math.GetDistanceBetweenCoords3D($crane_help1, $crane_help2, $crane_help3, $disable_all_cranes, $do_not_update_camera_crane1, $crane1_cam_mode)
if 
  4@ > 0.3
goto_if_false @CRANE2_5439
set_var_float_to_var_float $crane_rope_length = $crane_help1
sub_float_var_from_float_var $crane_rope_length -= $disable_all_cranes
set_var_float_to_var_float $cam_pos_x = $crane_help2
sub_float_var_from_float_var $cam_pos_x -= $do_not_update_camera_crane1
set_var_float_to_var_float $cam_pos_y = $crane_help3
sub_float_var_from_float_var $cam_pos_y -= $crane1_cam_mode
$crane_rope_length *= 0.05
$cam_pos_x *= 0.05
$cam_pos_y *= 0.05
add_float_var_to_float_var $disable_all_cranes += $crane_rope_length
add_float_var_to_float_var $do_not_update_camera_crane1 += $cam_pos_x
add_float_var_to_float_var $crane1_cam_mode += $cam_pos_y

:CRANE2_5439
$x, $y, $z = Camera.GetActiveCoordinates()
if 
  $disable_crane == 0
goto_if_false @CRANE2_5594
set_lvar_float_to_var_float 12@ = $cammy_off_X
sub_float_var_from_float_lvar 12@ -= $x
set_lvar_float_to_var_float 13@ = $cammy_off_Y
sub_float_var_from_float_lvar 13@ -= $y
set_lvar_float_to_var_float 14@ = $cammy_off_Z
sub_float_var_from_float_lvar 14@ -= $z
12@ *= 0.2
13@ *= 0.2
14@ *= 0.2
set_var_float_to_var_float $cammy_off_X = $x
add_float_lvar_to_float_var $cammy_off_X += 12@
set_var_float_to_var_float $cammy_off_Y = $y
add_float_lvar_to_float_var $cammy_off_Y += 13@
set_var_float_to_var_float $cammy_off_Z = $z
add_float_lvar_to_float_var $cammy_off_Z += 14@

:CRANE2_5594
Camera.SetFixedPosition($cammy_off_X, $cammy_off_Y, $cammy_off_Z, 0.0, 0.0, 0.0)
Camera.PointAtPoint($disable_all_cranes, $do_not_update_camera_crane1, $crane1_cam_mode, SwitchType.JumpCut)
set_var_float_to_var_float $crane_rope_length = $disable_all_cranes
sub_float_var_from_float_var $crane_rope_length -= $cammy_off_X
set_var_float_to_var_float $cam_pos_x = $do_not_update_camera_crane1
sub_float_var_from_float_var $cam_pos_x -= $cammy_off_Y
set_var_float_to_var_float $cam_pos_y = $crane1_cam_mode
sub_float_var_from_float_var $cam_pos_y -= $cammy_off_Z
4@ = Math.GetDistanceBetweenCoords3D($cammy_off_X, $cammy_off_Y, $cammy_off_Z, $disable_all_cranes, $do_not_update_camera_crane1, $crane1_cam_mode)
div_float_var_by_float_lvar $crane_rope_length /= 4@
div_float_var_by_float_lvar $cam_pos_x /= 4@
div_float_var_by_float_lvar $cam_pos_y /= 4@

:CRANE2_5728
return 
terminate_this_script 

//-------------External script 69 (CRANE3)---------------

:CRANE3
script_name 'CRANE3'
3@ = 0
if 
  3@ == 1
goto_if_false @CRANE3_124
0@ = Object.CreateNoOffset(#WOODENBOX, 0.0, 0.0, 0.0)
1@ = Object.CreateNoOffset(#WOODENBOX, 0.0, 0.0, 0.0)
2@ = Object.CreateNoOffset(#WOODENBOX, 0.0, 0.0, 0.0)
3@ = Object.CreateNoOffset(#WOODENBOX, 0.0, 0.0, 0.0)

:CRANE3_124
$car_name_mod_garage = 0

:CRANE3_131
wait 0
if 
  Object.DoesExist(0@)
goto_if_false @CRANE3_1554
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE3_1547
if 
  $flag_car_normal_carmod == 0
goto_if_false @CRANE3_1547
if 
  Char.LocateAnyMeansObject2D($scplayer, 0@, 100.0, 100.0, False)
goto_if_false @CRANE3_1538
if 
  3@ == 0
goto_if_false @CRANE3_270
5@, 6@, 7@ = Object.GetOffsetInWorldCoords(0@, 3.0899, 2.9792, 0.0081)
3@ += 1

:CRANE3_270
if 
  3@ == 1
goto_if_false @CRANE3_440
if 
  Char.LocateOnFoot3D($scplayer, 5@, 6@, 7@, 1.2, 1.2, 1.5, True)
goto_if_false @CRANE3_413
if 
  Char.IsOnFoot($scplayer)
goto_if_false @CRANE3_406
if 
  $car_name_mod_garage == 0
goto_if_false @CRANE3_382
Text.PrintHelpForever('CR_2')
$car_name_mod_garage = 1

:CRANE3_382
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CRANE3_406
3@ += 1

:CRANE3_406
goto @CRANE3_440

:CRANE3_413
if 
  $car_name_mod_garage <> 0
goto_if_false @CRANE3_440
Text.ClearHelp
$car_name_mod_garage = 0

:CRANE3_440
if 
  3@ == 2
goto_if_false @CRANE3_719
if 
  Object.DoesExist(0@)
goto_if_false @CRANE3_482
Audio.ReportMissionAudioEventAtObject(0@, 1019)

:CRANE3_482
Player.SetControl($player1, False)
Game.SetMinigameInProgress(True)
Camera.DoFade(500, Fade.Out)

:CRANE3_500
if 
  Camera.GetFadingStatus
goto_if_false @CRANE3_524
wait 0
goto @CRANE3_500

:CRANE3_524
Crane.PlayerEnteredQuarryCrane
Text.DisplayNonMinigameHelpMessages(True)
4@ = Object.GetHeading(1@)
if 
  Object.DoesExist(0@)
goto_if_false @CRANE3_570
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE3_570

:CRANE3_570
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE3_656
Char.FreezePosition($scplayer, True)
Char.SetCoordinates($scplayer, 713.5652, 906.2935, -18.0674)
Char.SetVisible($scplayer, False)
Player.SetControl($player1, True)
Char.SetCollision($scplayer, False)
Char.SetProofs($scplayer, True, True, True, True, True)
15@ = 0

:CRANE3_656
Text.PrintHelpForever('QUAR_1')
gosub @CRANE3_1570
Game.SetEveryoneIgnorePlayer($player1, False)
Camera.DoFade(500, Fade.In)

:CRANE3_688
if 
  Camera.GetFadingStatus
goto_if_false @CRANE3_712
wait 0
goto @CRANE3_688

:CRANE3_712
3@ += 1

:CRANE3_719
if 
  3@ == 3
goto_if_false @CRANE3_1383
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE3_1383
gosub @CRANE3_1570
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftStickX)
goto_if_false @CRANE3_875
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
cset_lvar_float_to_var_int 8@ =# $LStickX
8@ /= 500.0
sub_timed_float_lvar_from_float_lvar 4@ -=@ 8@
if 
  15@ <> 1
goto_if_false @CRANE3_868
if 
  Object.DoesExist(0@)
goto_if_false @CRANE3_868
Audio.ReportMissionAudioEventAtObject(0@, 1020)
15@ = 1

:CRANE3_868
goto @CRANE3_924

:CRANE3_875
if 
  15@ <> 0
goto_if_false @CRANE3_924
if 
  Object.DoesExist(0@)
goto_if_false @CRANE3_924
Audio.ReportMissionAudioEventAtObject(0@, 1021)
15@ = 0

:CRANE3_924
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftStickY)
goto_if_false @CRANE3_1187
$LStickX, $LStickY, $RStickX, $RStickY = Pad.GetPositionOfAnalogueSticks(PadId.Pad1)
cset_lvar_float_to_var_int 8@ =# $LStickY
8@ /= 1000.0
8@ *= 1.5
sub_timed_float_lvar_from_float_var $magno_arm_rotate_y -=@ 8@

:CRANE3_993
if 
  0.0 > $magno_arm_rotate_y
goto_if_false @CRANE3_1031
$magno_arm_rotate_y += 360.0
goto @CRANE3_993

:CRANE3_1031
if 
  $magno_arm_rotate_y > 360.0
goto_if_false @CRANE3_1069
$magno_arm_rotate_y += -360.0
goto @CRANE3_1031

:CRANE3_1069
if 
  $magno_arm_rotate_y > 70.0
goto_if_false @CRANE3_1100
$magno_arm_rotate_y = 70.0

:CRANE3_1100
if 
  10.0 > $magno_arm_rotate_y
goto_if_false @CRANE3_1131
$magno_arm_rotate_y = 10.0

:CRANE3_1131
if 
  16@ <> 1
goto_if_false @CRANE3_1180
if 
  Object.DoesExist(0@)
goto_if_false @CRANE3_1180
Audio.ReportMissionAudioEventAtObject(2@, 1020)
16@ = 1

:CRANE3_1180
goto @CRANE3_1236

:CRANE3_1187
if 
  16@ <> 0
goto_if_false @CRANE3_1236
if 
  Object.DoesExist(0@)
goto_if_false @CRANE3_1236
Audio.ReportMissionAudioEventAtObject(2@, 1021)
16@ = 0

:CRANE3_1236
if 
  Object.DoesExist(1@)
goto_if_false @CRANE3_1268
Object.SetHeading(1@, 4@)
Char.SetHeading($scplayer, 4@)

:CRANE3_1268
if 
  Object.DoesExist(2@)
goto_if_false @CRANE3_1359
if 
  Object.DoesExist(1@)
goto_if_false @CRANE3_1359
$x, $y, $z = Object.GetOffsetInWorldCoords(1@, 0.0, 0.0, 1.0206)
Object.SetCoordinatesAndVelocity(2@, $x, $y, $z)
Object.SetRotation(2@, 0.0, $magno_arm_rotate_y, 4@)

:CRANE3_1359
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CRANE3_1383
3@ += 1

:CRANE3_1383
if 
  3@ == 4
goto_if_false @CRANE3_1531
if 
  Player.IsPlaying($player1)
goto_if_false @CRANE3_1531
Text.ClearHelp
if 
  Object.DoesExist(0@)
goto_if_false @CRANE3_1443
Audio.ReportMissionAudioEventAtObject(0@, 1022)

:CRANE3_1443
Crane.PlayerLeftCrane
Game.SetMinigameInProgress(False)
Char.FreezePosition($scplayer, False)
Char.SetVisible($scplayer, True)
Char.SetCollision($scplayer, True)
Char.SetProofs($scplayer, False, False, False, False, False)
Player.SetControl($player1, True)
Char.SetCoordinates($scplayer, 706.2595, 918.6275, -19.6407)
Char.SetHeading($scplayer, 127.184)
Camera.RestoreJumpcut
3@ = 0

:CRANE3_1531
goto @CRANE3_1547

:CRANE3_1538
3@ = 0
terminate_this_script 

:CRANE3_1547
goto @CRANE3_1563

:CRANE3_1554
3@ = 0
terminate_this_script 

:CRANE3_1563
goto @CRANE3_131

:CRANE3_1570
if 
  Object.DoesExist(1@)
goto_if_false @CRANE3_1615
9@, 10@, 11@ = Object.GetOffsetInWorldCoords(1@, -9.0, -6.8, 6.0)

:CRANE3_1615
if 
  Object.DoesExist(2@)
goto_if_false @CRANE3_1730
$x, $y, $z = Object.GetOffsetInWorldCoords(2@, 0.0, 0.0, 59.0)
8@ = Object.GetRopeHeight(2@)
8@ += -1.0
8@ *= -1.0
8@ *= 72.0
sub_float_lvar_from_float_var $z -= 8@
set_lvar_float_to_var_float 12@ = $x
set_lvar_float_to_var_float 13@ = $y
set_lvar_float_to_var_float 14@ = $z

:CRANE3_1730
Camera.SetFixedPosition(9@, 10@, 11@, 0.0, 0.0, 0.0)
Camera.PointAtPoint(12@, 13@, 14@, SwitchType.JumpCut)
return 
terminate_this_script 

//-------------External script 70 (CARPARK1)---------------

:CARPRK1
script_name 'CARPRK1'
set_deatharrest_state 0
0@ = 0
1@ = 0
2@ = 0
3@ = 0
4@ = 0
5@ = 0
6@ = 0
7@ = 0
8@ = 0
9@ = 0

:CARPRK1_85
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @CARPRK1_2769
if 
  Char.IsInArea3D($scplayer, 2037.568, 2366.152, 9.8203, 2119.283, 2472.418, 14.1172, False)
goto_if_false @CARPRK1_251
if 
  0@ == 0
goto_if_false @CARPRK1_244
World.CreateRandomCarForCarPark(2077.872, 2398.657, 9.8203, 89.6383)
World.CreateRandomCarForCarPark(2087.099, 2414.177, 9.8203, 90.4575)
World.CreateRandomCarForCarPark(2104.859, 2416.439, 9.8203, 270.7819)
0@ = 1

:CARPRK1_244
goto @CARPRK1_308

:CARPRK1_251
if 
  0@ == 1
goto_if_false @CARPRK1_308
World.ClearAreaOfCars(2052.432, 2366.152, 9.8203, 2117.283, 2441.002, 14.1172)
0@ = 0

:CARPRK1_308
if 
  Char.IsInArea3D($scplayer, 2052.432, 2366.152, 13.1172, 2119.283, 2441.002, 18.4219, False)
goto_if_false @CARPRK1_520
if 
  1@ == 0
goto_if_false @CARPRK1_513
World.CreateRandomCarForCarPark(2104.537, 2412.3, 14.1172, 89.9851)
World.CreateRandomCarForCarPark(2095.321, 2398.559, 14.1172, 90.1384)
World.CreateRandomCarForCarPark(2087.071, 2405.525, 14.1172, 267.6596)
World.CreateRandomCarForCarPark(2087.187, 2420.887, 14.1172, 90.4995)
World.CreateRandomCarForCarPark(2078.36, 2410.139, 14.1172, 270.9704)
World.CreateRandomCarForCarPark(2069.168, 2396.778, 14.1172, 98.3338)
1@ = 1

:CARPRK1_513
goto @CARPRK1_577

:CARPRK1_520
if 
  1@ == 1
goto_if_false @CARPRK1_577
World.ClearAreaOfCars(2052.432, 2366.152, 14.1172, 2117.283, 2441.002, 18.4219)
1@ = 0

:CARPRK1_577
if 
  Char.IsInArea3D($scplayer, 2052.432, 2366.152, 17.4219, 2119.283, 2441.002, 22.7188, False)
goto_if_false @CARPRK1_789
if 
  2@ == 0
goto_if_false @CARPRK1_782
World.CreateRandomCarForCarPark(2104.517, 2405.886, 18.4219, 92.3912)
World.CreateRandomCarForCarPark(2095.688, 2396.195, 18.4219, 270.3566)
World.CreateRandomCarForCarPark(2087.0, 2416.442, 18.4219, 89.9821)
World.CreateRandomCarForCarPark(2086.925, 2402.896, 18.4219, 270.2662)
World.CreateRandomCarForCarPark(2069.071, 2409.651, 18.4219, 89.1894)
World.CreateRandomCarForCarPark(2078.146, 2416.5, 18.4219, 270.7297)
2@ = 1

:CARPRK1_782
goto @CARPRK1_846

:CARPRK1_789
if 
  2@ == 1
goto_if_false @CARPRK1_846
World.ClearAreaOfCars(2052.432, 2366.152, 18.4219, 2117.283, 2441.002, 22.7188)
2@ = 0

:CARPRK1_846
if 
  Char.IsInArea3D($scplayer, 2052.432, 2366.152, 21.7188, 2119.283, 2441.002, 27.0234, False)
goto_if_false @CARPRK1_1058
if 
  3@ == 0
goto_if_false @CARPRK1_1051
World.CreateRandomCarForCarPark(2104.499, 2411.852, 22.7188, 90.7897)
World.CreateRandomCarForCarPark(2104.483, 2407.618, 22.7188, 91.9516)
World.CreateRandomCarForCarPark(2087.242, 2400.854, 22.7188, 269.9636)
World.CreateRandomCarForCarPark(2078.313, 2412.077, 22.7188, 267.6149)
World.CreateRandomCarForCarPark(2069.138, 2396.251, 22.7188, 92.2442)
World.CreateRandomCarForCarPark(2078.179, 2392.021, 22.7188, 87.7661)
3@ = 1

:CARPRK1_1051
goto @CARPRK1_1115

:CARPRK1_1058
if 
  3@ == 1
goto_if_false @CARPRK1_1115
World.ClearAreaOfCars(2052.432, 2366.152, 22.7188, 2117.283, 2441.002, 27.0234)
3@ = 0

:CARPRK1_1115
if 
  Char.IsInArea3D($scplayer, 2052.432, 2366.152, 24.7815, 2119.283, 2441.002, 31.3203, False)
goto_if_false @CARPRK1_1327
if 
  4@ == 0
goto_if_false @CARPRK1_1320
World.CreateRandomCarForCarPark(2069.661, 2416.422, 27.0234, 268.612)
World.CreateRandomCarForCarPark(2077.872, 2398.657, 27.0234, 89.6383)
World.CreateRandomCarForCarPark(2087.195, 2394.364, 27.0234, 271.5008)
World.CreateRandomCarForCarPark(2087.099, 2414.177, 27.0234, 90.4575)
World.CreateRandomCarForCarPark(2095.818, 2398.686, 27.0234, 268.2181)
World.CreateRandomCarForCarPark(2104.859, 2416.439, 27.0234, 270.7819)
4@ = 1

:CARPRK1_1320
goto @CARPRK1_1384

:CARPRK1_1327
if 
  4@ == 1
goto_if_false @CARPRK1_1384
World.ClearAreaOfCars(2052.432, 2366.152, 27.0234, 2117.283, 2441.002, 31.3203)
4@ = 0

:CARPRK1_1384
if 
  Char.IsInArea3D($scplayer, 2052.432, 2366.152, 30.3203, 2119.283, 2441.002, 35.6172, False)
goto_if_false @CARPRK1_1596
if 
  5@ == 0
goto_if_false @CARPRK1_1589
World.CreateRandomCarForCarPark(2104.537, 2412.3, 31.3203, 89.9851)
World.CreateRandomCarForCarPark(2095.321, 2398.559, 31.3203, 90.1384)
World.CreateRandomCarForCarPark(2087.071, 2405.525, 31.3203, 267.6596)
World.CreateRandomCarForCarPark(2087.187, 2420.887, 31.3203, 90.4995)
World.CreateRandomCarForCarPark(2078.36, 2410.139, 31.3203, 270.9704)
World.CreateRandomCarForCarPark(2069.168, 2396.778, 31.3203, 98.3338)
5@ = 1

:CARPRK1_1589
goto @CARPRK1_1653

:CARPRK1_1596
if 
  5@ == 1
goto_if_false @CARPRK1_1653
World.ClearAreaOfCars(2052.432, 2366.152, 31.3203, 2117.283, 2441.002, 35.6172)
5@ = 0

:CARPRK1_1653
if 
  Char.IsInArea3D($scplayer, 2052.432, 2366.152, 34.6172, 2119.283, 2441.002, 39.9219, False)
goto_if_false @CARPRK1_1865
if 
  6@ == 0
goto_if_false @CARPRK1_1858
World.CreateRandomCarForCarPark(2104.517, 2405.886, 35.6172, 92.3912)
World.CreateRandomCarForCarPark(2095.688, 2396.195, 35.6172, 270.3566)
World.CreateRandomCarForCarPark(2087.0, 2416.442, 35.6172, 89.9821)
World.CreateRandomCarForCarPark(2086.925, 2402.896, 35.6172, 270.2662)
World.CreateRandomCarForCarPark(2069.071, 2409.651, 35.6172, 89.1894)
World.CreateRandomCarForCarPark(2078.146, 2416.5, 35.6172, 270.7297)
6@ = 1

:CARPRK1_1858
goto @CARPRK1_1922

:CARPRK1_1865
if 
  6@ == 1
goto_if_false @CARPRK1_1922
World.ClearAreaOfCars(2052.432, 2366.152, 35.6172, 2117.283, 2441.002, 39.9219)
6@ = 0

:CARPRK1_1922
if 
  Char.IsInArea3D($scplayer, 2052.432, 2366.152, 38.9219, 2119.283, 2441.002, 44.2188, False)
goto_if_false @CARPRK1_2134
if 
  7@ == 0
goto_if_false @CARPRK1_2127
World.CreateRandomCarForCarPark(2104.499, 2411.852, 39.9219, 90.7897)
World.CreateRandomCarForCarPark(2104.483, 2407.618, 39.9219, 91.9516)
World.CreateRandomCarForCarPark(2087.242, 2400.854, 39.9219, 269.9636)
World.CreateRandomCarForCarPark(2078.313, 2412.077, 39.9219, 267.6149)
World.CreateRandomCarForCarPark(2069.138, 2396.251, 39.9219, 92.2442)
World.CreateRandomCarForCarPark(2078.179, 2392.021, 39.9219, 87.7661)
7@ = 1

:CARPRK1_2127
goto @CARPRK1_2191

:CARPRK1_2134
if 
  7@ == 1
goto_if_false @CARPRK1_2191
World.ClearAreaOfCars(2052.432, 2366.152, 39.9219, 2117.283, 2441.002, 44.2188)
7@ = 0

:CARPRK1_2191
if 
  Char.IsInArea3D($scplayer, 2052.432, 2366.152, 43.2188, 2119.283, 2441.002, 48.5234, False)
goto_if_false @CARPRK1_2403
if 
  8@ == 0
goto_if_false @CARPRK1_2396
World.CreateRandomCarForCarPark(2069.661, 2416.422, 44.2188, 268.612)
World.CreateRandomCarForCarPark(2077.872, 2398.657, 44.2188, 89.6383)
World.CreateRandomCarForCarPark(2087.195, 2394.364, 44.2188, 271.5008)
World.CreateRandomCarForCarPark(2087.099, 2414.177, 44.2188, 90.4575)
World.CreateRandomCarForCarPark(2095.818, 2398.686, 44.2188, 268.2181)
World.CreateRandomCarForCarPark(2104.859, 2416.439, 44.2188, 270.7819)
8@ = 1

:CARPRK1_2396
goto @CARPRK1_2460

:CARPRK1_2403
if 
  8@ == 1
goto_if_false @CARPRK1_2460
World.ClearAreaOfCars(2052.432, 2366.152, 44.2188, 2117.283, 2441.002, 48.5234)
8@ = 0

:CARPRK1_2460
if 
  Char.IsInArea3D($scplayer, 2052.432, 2366.152, 44.5234, 2119.283, 2441.002, 55.9123, False)
goto_if_false @CARPRK1_2672
if 
  9@ == 0
goto_if_false @CARPRK1_2665
World.CreateRandomCarForCarPark(2104.537, 2412.3, 48.5234, 89.9851)
World.CreateRandomCarForCarPark(2095.321, 2398.559, 48.5234, 90.1384)
World.CreateRandomCarForCarPark(2087.071, 2405.525, 48.5234, 267.6596)
World.CreateRandomCarForCarPark(2087.187, 2420.887, 48.5234, 90.4995)
World.CreateRandomCarForCarPark(2078.36, 2410.139, 48.5234, 270.9704)
World.CreateRandomCarForCarPark(2069.168, 2396.778, 48.5234, 98.3338)
9@ = 1

:CARPRK1_2665
goto @CARPRK1_2729

:CARPRK1_2672
if 
  9@ == 1
goto_if_false @CARPRK1_2729
World.ClearAreaOfCars(2052.432, 2366.152, 48.5234, 2117.283, 2441.002, 52.9123)
9@ = 0

:CARPRK1_2729
if 
  not Char.IsInArea2D($scplayer, 2037.536, 2365.373, 2119.9, 2483.922, False)
goto_if_false @CARPRK1_2769
terminate_this_script 

:CARPRK1_2769
goto @CARPRK1_85
terminate_this_script 

//-------------External script 71 (IMPOUND)---------------

:IMPND
script_name 'IMPND'
$10539[0] = 0
$10539[1] = 0
$10539[2] = 0
$10539[3] = 0
$10539[4] = 0
$10539[5] = 0
$10539[6] = 0
$10539[7] = 0
$player_is_threat = 1540.632
$10553 = -1603.163
$activate_doors = 17.6564
$10561 = 1607.27
$10565 = -1637.528
$10569 = 12.774
$10573 = 1613.319
$10577 = -1633.612
$10581 = 12.077
$10585 = 1522.73
$10589 = -1721.398
$10593 = 4.2191
$10550 = -1572.807
$10554 = 646.8937
$cop_territory_xa1 = 10.5019
$cop_territory_ya1 = -1641.409
$cop_territory_za1 = 687.6273
$cop_territory_xb1 = 4.8704
$cop_territory_yb1 = -1700.933
$cop_territory_zb1 = 680.025
$cop_territory_xa2 = 27.7313
$cop_territory_ya2 = -1638.982
$cop_territory_za2 = 699.3646
$cop_territory_xb2 = 5.0489
$10551 = 2238.01
$10555 = 2430.891
$10559 = 11.764
$10563 = 2304.289
$10567 = 2502.322
$10571 = -9.0538
$10575 = 2238.01
$10579 = 2430.891
$10583 = 11.764
$10587 = 2304.289
$10591 = 2502.322
$10595 = -9.0538
$10596[1] = 1544.691
$10600[1] = -1630.75
$10604[1] = 13.043
$10608[1] = 0.0
$10612[1] = 0.0
$10616[1] = 0.0
$10620[1] = 0.0
$10624[1] = 0.0
$10596[2] = -1572.203
$10600[2] = 658.7618
$10604[2] = 6.8916
$10608[2] = 0.0
$10612[2] = -1701.43
$10616[2] = 687.7184
$10620[2] = 24.6525
$10624[2] = 180.0
$10596[3] = 2238.199
$10600[3] = 2450.339
$10604[3] = 10.5829
$10608[3] = 0.0
$10612[3] = 0.0
$10616[3] = 0.0
$10620[3] = 0.0
$10624[3] = 0.0
$10628[1] = 1588.503
$10632[1] = -1637.872
$10636[1] = 14.5641
$10640[1] = 0.0
$10644[1] = 0.0
$10648[1] = 0.0
$10652[1] = 0.0
$10656[1] = 0.0
$10628[2] = -1631.767
$10632[2] = 688.4075
$10636[2] = 8.5436
$10640[2] = 90.0
$10644[2] = 0.0
$10648[2] = 0.0
$10652[2] = 0.0
$10656[2] = 0.0
$10628[3] = 2293.83
$10632[3] = 2498.804
$10636[3] = 4.4414
$10640[3] = 90.0
$10644[3] = 2335.178
$10648[3] = 2443.621
$10652[3] = 6.9743
$10656[3] = 59.9993
$10720 = 0
$10721 = 0
$10722 = 0
$10723 = 0
if 
  8@ == 90
goto_if_false @IMPND_1039
9@ = Object.Create(#POLICE_BARRIER, 0.0, 0.0, 0.0)
6@ = Object.Create(#KMB_SHUTTER, 0.0, 0.0, 0.0)
24@ = Char.CreateRandom(0.0, 0.0, 0.0)
19@ = Char.CreateRandom(0.0, 0.0, 0.0)

:IMPND_1039
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @IMPND_4130
if 
  0@ == 0
goto_if_false @IMPND_2453
if 
  1@ == 0
goto_if_false @IMPND_1289
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @IMPND_1144
Streaming.RequestModel(280)
Streaming.RequestModel(346)
Streaming.RequestModel(596)
set_var_int_to_constant $cop_h = 280
set_var_int_to_constant $10701 = 596

:IMPND_1144
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @IMPND_1193
Streaming.RequestModel(281)
Streaming.RequestModel(346)
Streaming.RequestModel(597)
set_var_int_to_constant $cop_h = 281
set_var_int_to_constant $10701 = 597

:IMPND_1193
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @IMPND_1242
Streaming.RequestModel(282)
Streaming.RequestModel(346)
Streaming.RequestModel(598)
set_var_int_to_constant $cop_h = 282
set_var_int_to_constant $10701 = 598

:IMPND_1242
if 
  $onmission == 0
goto_if_false @IMPND_1282
22@ = 1
Streaming.RequestModel(#POLICE_BARRIER)
Streaming.RequestModel(#SFCOPDR)
Streaming.RequestModel(#KMB_SHUTTER)

:IMPND_1282
1@ = 2

:IMPND_1289
if 
  1@ == 2
goto_if_false @IMPND_2453
if and
  Streaming.HasModelLoaded($cop_h)
  Streaming.HasModelLoaded(346)
  Streaming.HasModelLoaded($10701)
goto_if_false @IMPND_2453
1@ = 0
if 
  $onmission <> 1
goto_if_false @IMPND_1358

:IMPND_1358
2@ = DecisionMakerChar.Copy(65542)
DecisionMakerChar.AddEventResponse(2@, 15, 300, 100.0, 100.0, 100.0, 0.0, False, True)
9@ = Object.CreateNoOffset(#POLICE_BARRIER, $10596($impound_area,4f), $10600($impound_area,4f), $10604($impound_area,4f))
Object.SetRotation(9@, -90.0, 0.0, $10608($impound_area,4f))
if 
  $10612($impound_area,4f) <> 0.0
goto_if_false @IMPND_1529
10@ = Object.CreateNoOffset(#POLICE_BARRIER, $10612($impound_area,4f), $10616($impound_area,4f), $10620($impound_area,4f))
Object.SetRotation(10@, -90.0, 0.0, $10624($impound_area,4f))

:IMPND_1529
if 
  $impound_area == 2
goto_if_false @IMPND_1562
11@ = -390
goto @IMPND_1570

:IMPND_1562
11@ = -389

:IMPND_1570
6@ = Object.CreateNoOffset(11@, $10628($impound_area,4f), $10632($impound_area,4f), $10636($impound_area,4f))
Object.SetRotation(6@, 0.0, 0.0, $10640($impound_area,4f))
if 
  $10644($impound_area,4f) <> 0.0
goto_if_false @IMPND_1697
7@ = Object.CreateNoOffset(11@, $10644($impound_area,4f), $10648($impound_area,4f), $10652($impound_area,4f))
Object.SetRotation(7@, 0.0, 0.0, $10656($impound_area,4f))

:IMPND_1697
if 
  $impound_area == 1
goto_if_false @IMPND_1885
$cam_vec_x[0] = Char.Create(PedType.Mission1, $cop_h, 1544.383, -1631.849, 12.3905)
Char.SetHeading($cam_vec_x[0], 45.0)
$cam_vec_x[2] = Char.Create(PedType.Mission1, $cop_h, 1578.957, -1634.127, 12.5547)
Char.SetHeading($cam_vec_x[2], 0.0)
$10660 = 1544.383
$cop_x = -1631.849
$cop_y = 12.3905
$cop_z = 45.0
$imp_shutter_z2 = 1544.383
$10672 = 1578.957
$10682 = -1634.127
$10692 = 12.554
$blah = -90.0
$10726 = 0.0

:IMPND_1885
if 
  $impound_area == 2
goto_if_false @IMPND_2158
$cam_vec_x[1] = Char.Create(PedType.Mission1, $cop_h, -1700.839, 688.9841, 23.9032)
Char.SetHeading($cam_vec_x[1], 134.0)
$cam_vec_x[0] = Char.Create(PedType.Mission1, $cop_h, -1572.705, 657.5745, 6.2446)
Char.SetHeading($cam_vec_x[0], 304.0)
$cam_vec_x[2] = Char.Create(PedType.Mission1, $cop_h, -1616.822, 679.9485, 6.1901)
Char.SetHeading($cam_vec_x[2], 188.0)
$10660 = -1572.705
$cop_x = 657.5745
$cop_y = 6.2446
$cop_z = 304.0
$10661 = -1700.839
$10671 = 688.9841
$10681 = 23.9032
$10691 = 134.0
$imp_shutter_z2 = -1616.822
$10672 = 679.9485
$10682 = 6.1901
$10692 = 188.0
$blah = -90.0
$cop_car = -90.0
$10726 = 0.0

:IMPND_2158
if 
  $impound_area == 3
goto_if_false @IMPND_2326
$cam_vec_x[0] = Char.Create(PedType.Mission1, $cop_h, 2238.569, 2449.417, 10.0372)
Char.SetHeading($cam_vec_x[0], 90.0)
$cam_vec_x[2] = Char.Create(PedType.Mission1, $cop_h, 2250.277, 2489.333, 9.8203)
Char.SetHeading($cam_vec_x[2], 90.0)
$10660 = 2238.569
$cop_x = 2449.417
$cop_y = 10.0372
$cop_z = 90.0
$imp_shutter_z2 = 2250.277
$10672 = 2489.333
$10682 = 9.8203
$10692 = 90.0

:IMPND_2326
12@ = 0

:IMPND_2333
if 
  3 > 12@
goto_if_false @IMPND_2446
if 
  not Char.IsDead($cam_vec_x(12@,8i))
goto_if_false @IMPND_2432
Char.SetDecisionMaker($cam_vec_x(12@,8i), 2@)
Char.GiveWeapon($cam_vec_x(12@,8i), WeaponType.Pistol, 9999)
Char.SetRelationship($cam_vec_x(12@,8i), RelationshipType.Dislike, PedType.Player1)
$10523(12@,8i) = 0
$crane2_sound_flag(12@,8i) = 5

:IMPND_2432
12@ += 1
goto @IMPND_2333

:IMPND_2446
0@ = 2

:IMPND_2453
if 
  0@ == 2
goto_if_false @IMPND_4123
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
gosub @IMPND_5559
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 4@
goto_if_false @IMPND_2583
set_lvar_int_to_lvar_int 4@ = TIMERA
4@ += 90
gosub @IMPND_21078
if 
  $10719 == 0
goto_if_false @IMPND_2583
if 
  $10703 == 1
goto_if_false @IMPND_2583
$10719 = 1
gosub @IMPND_4162

:IMPND_2583
if 
  $onmission == 1
goto_if_false @IMPND_2641
if 
  22@ == 1
goto_if_false @IMPND_2641
22@ = 0
Streaming.MarkModelAsNoLongerNeeded(#POLICE_BARRIER)
Streaming.MarkModelAsNoLongerNeeded(#SFCOPDR)
Streaming.MarkModelAsNoLongerNeeded(#KMB_SHUTTER)

:IMPND_2641
if 
  20@ == 1
goto_if_false @IMPND_2760
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
8@ = Math.RandomIntInRange(0, 4)
if 
  8@ == 0
goto_if_false @IMPND_2699
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 38012)

:IMPND_2699
if 
  8@ == 1
goto_if_false @IMPND_2726
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 38013)

:IMPND_2726
if 
  8@ == 2
goto_if_false @IMPND_2753
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 38014)

:IMPND_2753
20@ = 2

:IMPND_2760
if 
  20@ == 2
goto_if_false @IMPND_2857
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @IMPND_2857
if 
  not Char.IsDead(19@)
goto_if_false @IMPND_2857
Audio.AttachMissionAudioToChar(MissionAudioSlot.Slot4, 19@)
Char.ShutUp(19@, True)
Char.DisableSpeech(19@, True)
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)
20@ = 3
set_lvar_int_to_lvar_int 21@ = TIMERA
21@ += 10000

:IMPND_2857
if 
  20@ == 3
goto_if_false @IMPND_2931
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 21@
goto_if_false @IMPND_2931
20@ = 0
if 
  not Char.IsDead(19@)
goto_if_false @IMPND_2931
Char.ShutUp(19@, False)
Char.DisableSpeech(19@, False)

:IMPND_2931
if 
  20@ == 4
goto_if_false @IMPND_3050
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
8@ = Math.RandomIntInRange(0, 4)
if 
  8@ == 0
goto_if_false @IMPND_2989
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 38008)

:IMPND_2989
if 
  8@ == 1
goto_if_false @IMPND_3016
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 38009)

:IMPND_3016
if 
  8@ == 2
goto_if_false @IMPND_3043
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 38010)

:IMPND_3043
20@ = 2

:IMPND_3050
if 
  20@ == 5
goto_if_false @IMPND_3088
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 42800)
20@ = 2

:IMPND_3088
if 
  $dock_crane_travel_vec_y == 1
goto_if_false @IMPND_3419
if 
  Audio.HasMissionAudioFinished(MissionAudioSlot.Slot4)
goto_if_false @IMPND_3419
if 
  Audio.HasMissionAudioLoaded(MissionAudioSlot.Slot4)
goto_if_false @IMPND_3419
if 
  $impound_area == 1
goto_if_false @IMPND_3211
Audio.AttachMissionAudioToObject(MissionAudioSlot.Slot4, 6@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot4, 1589.06, -1694.729, 10.4887)
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot4, 1541.513, -1685.943, 10.1571)
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)

:IMPND_3211
if 
  $impound_area == 2
goto_if_false @IMPND_3309
Audio.AttachMissionAudioToObject(MissionAudioSlot.Slot4, 6@)
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot4, -1619.873, 742.786, -2.1389)
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot4, -1594.096, 716.011, -3.1454)
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot4, -1605.518, 672.6205, -3.2395)
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)

:IMPND_3309
if 
  $impound_area == 3
goto_if_false @IMPND_3419
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot4, 2296.433, 2444.295, 7.0111)
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot4, 2255.404, 2446.676, 5.6601)
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot4, 2243.107, 2498.225, 8.5154)
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)
Audio.SetMissionAudioPosition(MissionAudioSlot.Slot4, 2296.927, 2492.902, 0.2841)
Audio.PlayMissionAudio(MissionAudioSlot.Slot4)

:IMPND_3419
16@ = 0

:IMPND_3426
if 
  8 > 16@
goto_if_false @IMPND_3694
if 
  not Char.IsDead($cam_vec_x(16@,8i))
goto_if_false @IMPND_3680
if 
  0 <= $10706(16@,8i)
goto_if_false @IMPND_3680
$10706(16@,8i) = Char.GetHighestPriorityEvent($cam_vec_x(16@,8i))
if 
  $10706(16@,8i) <> 0
goto_if_false @IMPND_3680
if or
  is_int_var_equal_to_constant $10706(16@,8i) == 15
  is_int_var_equal_to_constant $10706(16@,8i) == 49
  is_int_var_equal_to_constant $10706(16@,8i) == 9
goto_if_false @IMPND_3593
$10706(16@,8i) = -2
$10733, $door_rotation, $10735 = Char.GetCoordinates($scplayer)

:IMPND_3593
if 
  is_int_var_equal_to_constant $10706(16@,8i) == 62
goto_if_false @IMPND_3680
if 
  Char.LocateAnyMeansChar3D($cam_vec_x(16@,8i), $scplayer, 5.0, 5.0, 3.0, False)
goto_if_false @IMPND_3680
$10706(16@,8i) = -1
$10733, $door_rotation, $10735 = Char.GetCoordinates($scplayer)

:IMPND_3680
16@ += 1
goto @IMPND_3426

:IMPND_3694
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 3@
goto_if_false @IMPND_3904
set_lvar_int_to_lvar_int 3@ = TIMERA
3@ += 100
if 
  not Char.IsDead($cam_vec_x(12@,8i))
goto_if_false @IMPND_3806
$10704 = 0
23@ = 0
set_lvar_int_to_var_int 13@ = $crane2_sound_flag(12@,8i)
gosub @IMPND_21735
gosub @IMPND_10492
$10706(12@,8i) = 0
goto @IMPND_3872

:IMPND_3806
if 
  is_int_lvar_equal_to_int_var 19@ == $cam_vec_x(12@,8i)
goto_if_false @IMPND_3872
if and
  20@ <> 0
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_3858
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)

:IMPND_3858
20@ = 0
19@ = 0

:IMPND_3872
12@ += 1
if 
  12@ > 7
goto_if_false @IMPND_3904
12@ = 0

:IMPND_3904
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @IMPND_3977
if 
  not Char.LocateAnyMeans3D($scplayer, 1579.425, -1636.463, 14.5812, 120.0, 120.0, 80.0, False)
goto_if_false @IMPND_3977
gosub @IMPND_22013

:IMPND_3977
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @IMPND_4050
if 
  not Char.LocateAnyMeans3D($scplayer, -1624.771, 679.6637, 8.569, 120.0, 120.0, 80.0, False)
goto_if_false @IMPND_4050
gosub @IMPND_22013

:IMPND_4050
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @IMPND_4123
if 
  not Char.LocateAnyMeans3D($scplayer, 2284.592, 2466.838, 12.2306, 120.0, 120.0, 80.0, False)
goto_if_false @IMPND_4123
gosub @IMPND_22013

:IMPND_4123
goto @IMPND_4155

:IMPND_4130
if 
  0@ == 2
goto_if_false @IMPND_4155
gosub @IMPND_22013

:IMPND_4155
goto @IMPND_1039

:IMPND_4162
if 
  $impound_area == 3
goto_if_false @IMPND_4592
$imp_sequence[0] = Car.Create($10701, 2285.502, 2473.748, 2.266)
$imp_sequence[1] = Car.Create($10701, 2314.358, 2475.845, 2.266)
$imp_sequence[2] = Car.Create($10701, 2240.971, 2476.485, -8.4476)
$imp_sequence[3] = Car.Create($10701, 2303.053, 2431.712, -8.4531)
Car.SetHeading($imp_sequence[0], 179.4722)
Car.SetHeading($imp_sequence[1], 268.529)
Car.SetHeading($imp_sequence[2], 92.5631)
Car.SetHeading($imp_sequence[3], 180.0971)
Car.LockDoors($imp_sequence[0], CarLock.LockoutPlayerOnly)
Car.LockDoors($imp_sequence[1], CarLock.Unlocked)
Car.LockDoors($imp_sequence[2], CarLock.LockoutPlayerOnly)
Car.LockDoors($imp_sequence[3], CarLock.Unlocked)
$cam_vec_x[3] = Char.CreateInsideCar($imp_sequence[0], PedType.Mission1, $cop_h)
$cam_vec_x[4] = Char.CreateAsPassenger($imp_sequence[0], PedType.Mission1, $cop_h, 0)
$cam_vec_x[5] = Char.Create(PedType.Mission1, $cop_h, 2278.1, 2425.453, 2.4766)
$cam_vec_x[6] = Char.Create(PedType.Mission1, $cop_h, 2268.906, 2449.246, -8.1953)
Char.SetHeading($cam_vec_x[5], 187.5721)
Char.SetHeading($cam_vec_x[6], 228.3262)
$crane2_sound_flag[3] = 5
$crane2_sound_flag[4] = 5
$crane2_sound_flag[5] = 5
$crane2_sound_flag[6] = 5
$10523[3] = 0
$10523[4] = 0
$10523[5] = 0
$10523[6] = 0
12@ = 3

:IMPND_4501
if 
  7 > 12@
goto_if_false @IMPND_4592
if 
  not Char.IsDead($cam_vec_x(12@,8i))
goto_if_false @IMPND_4578
Char.SetDecisionMaker($cam_vec_x(12@,8i), 2@)
Char.GiveWeapon($cam_vec_x(12@,8i), WeaponType.Pistol, 9999)
Char.SetRelationship($cam_vec_x(12@,8i), RelationshipType.Dislike, PedType.Player1)

:IMPND_4578
12@ += 1
goto @IMPND_4501

:IMPND_4592
if 
  $impound_area == 2
goto_if_false @IMPND_5029
$imp_sequence[0] = Car.Create($10701, -1600.142, 748.2594, -6.2344)
$imp_sequence[1] = Car.Create($10701, -1616.233, 691.9449, -6.2422)
$imp_sequence[2] = Car.Create($10701, -1574.061, 717.9744, -6.2344)
$imp_sequence[3] = Car.Create($10701, -1574.305, 726.8611, -6.2344)
Car.SetHeading($imp_sequence[0], 359.8067)
Car.SetHeading($imp_sequence[1], 358.8804)
Car.SetHeading($imp_sequence[2], 268.0333)
Car.SetHeading($imp_sequence[3], 268.3534)
Car.LockDoors($imp_sequence[0], CarLock.LockoutPlayerOnly)
Car.LockDoors($imp_sequence[1], CarLock.Unlocked)
Car.LockDoors($imp_sequence[2], CarLock.LockoutPlayerOnly)
Car.LockDoors($imp_sequence[3], CarLock.Unlocked)
$cam_vec_x[3] = Char.CreateInsideCar($imp_sequence[0], PedType.Mission1, $cop_h)
$cam_vec_x[4] = Char.CreateAsPassenger($imp_sequence[0], PedType.Mission1, $cop_h, 0)
$cam_vec_x[5] = Char.Create(PedType.Mission1, $cop_h, -1606.067, 701.3859, -5.9062)
$cam_vec_x[6] = Char.Create(PedType.Mission1, $cop_h, -1615.934, 695.0814, -6.2422)
Char.SetHeading($cam_vec_x[5], 270.5721)
Char.SetHeading($cam_vec_x[6], 180.3262)
$crane2_sound_flag[3] = 5
$crane2_sound_flag[4] = 5
$crane2_sound_flag[5] = 5
$crane2_sound_flag[6] = 5
$10523[3] = 0
$10523[4] = 0
$10523[5] = 0
$10523[6] = 0
12@ = 3

:IMPND_4931
if 
  8 > 12@
goto_if_false @IMPND_5022
if 
  not Char.IsDead($cam_vec_x(12@,8i))
goto_if_false @IMPND_5008
Char.SetDecisionMaker($cam_vec_x(12@,8i), 2@)
Char.GiveWeapon($cam_vec_x(12@,8i), WeaponType.Pistol, 9999)
Char.SetRelationship($cam_vec_x(12@,8i), RelationshipType.Dislike, PedType.Player1)

:IMPND_5008
12@ += 1
goto @IMPND_4931

:IMPND_5022
12@ = 0

:IMPND_5029
if 
  $impound_area == 1
goto_if_false @IMPND_5557
$imp_sequence[0] = Car.Create($10701, 1586.254, -1671.732, 4.8916)
$imp_sequence[1] = Car.Create($10701, 1601.52, -1699.925, 4.8984)
$imp_sequence[2] = Car.Create($10701, 1565.429, -1710.81, 4.8984)
$imp_sequence[3] = Car.Create($10701, 1529.675, -1688.105, 4.897)
Car.SetHeading($imp_sequence[0], 90.8726)
Car.SetHeading($imp_sequence[1], 268.6337)
Car.SetHeading($imp_sequence[2], 177.2788)
Car.SetHeading($imp_sequence[3], 270.141)
Car.LockDoors($imp_sequence[0], CarLock.LockoutPlayerOnly)
Car.LockDoors($imp_sequence[1], CarLock.Unlocked)
Car.LockDoors($imp_sequence[2], CarLock.LockoutPlayerOnly)
Car.LockDoors($imp_sequence[3], CarLock.Unlocked)
$cam_vec_x[3] = Char.CreateInsideCar($imp_sequence[0], PedType.Mission1, $cop_h)
$cam_vec_x[4] = Char.CreateAsPassenger($imp_sequence[0], PedType.Mission1, $cop_h, 0)
$cam_vec_x[5] = Char.Create(PedType.Mission1, $cop_h, 1527.145, -1675.299, 4.8984)
$cam_vec_x[6] = Char.Create(PedType.Mission1, $cop_h, 1603.711, -1714.294, 5.2187)
$cam_vec_x[1] = Char.Create(PedType.Mission1, $cop_h, 1608.285, -1715.779, 5.2187)
$cam_vec_x[7] = Char.Create(PedType.Mission1, $cop_h, 1532.631, -1688.01, 4.8984)
Char.SetHeading($cam_vec_x[5], 90.5721)
Char.SetHeading($cam_vec_x[6], 242.3262)
Char.SetHeading($cam_vec_x[1], 225.3262)
Char.SetHeading($cam_vec_x[7], 90.3262)
$crane2_sound_flag[1] = 5
$crane2_sound_flag[3] = 5
$crane2_sound_flag[4] = 5
$crane2_sound_flag[5] = 5
$crane2_sound_flag[6] = 5
$crane2_sound_flag[7] = 5
$10523[3] = 0
$10523[4] = 0
$10523[5] = 0
$10523[6] = 0
$10523[7] = 0
12@ = 0

:IMPND_5459
if 
  8 > 12@
goto_if_false @IMPND_5550
if 
  not Char.IsDead($cam_vec_x(12@,8i))
goto_if_false @IMPND_5536
Char.SetDecisionMaker($cam_vec_x(12@,8i), 2@)
Char.GiveWeapon($cam_vec_x(12@,8i), WeaponType.Pistol, 9999)
Char.SetRelationship($cam_vec_x(12@,8i), RelationshipType.Dislike, PedType.Player1)

:IMPND_5536
12@ += 1
goto @IMPND_5459

:IMPND_5550
12@ = 0

:IMPND_5557
return 

:IMPND_5559
if 
  $impound_area == 1
goto_if_false @IMPND_6885
switch_start $10720 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_6159 {caseNum1} 0 {caseLabel1} @IMPND_5640 {caseNum2} 1 {caseLabel2} @IMPND_5899 {caseNum3} 2 {caseLabel3} @IMPND_5962 {caseNum4} 3 {caseLabel4} @IMPND_6029 {caseNum5} -1 {caseLabel5} @IMPND_6159 {caseNum6} -1 {caseLabel6} @IMPND_6159 {caseNum7} -1 {caseLabel7} @IMPND_6159

:IMPND_5640
if 
  $10539[0] == 0
goto_if_false @IMPND_5813
if 
  World.IsCopVehicleInArea3DNoSave(1554.32, -1632.669, 13.9475, 1535.271, -1620.762, 11.8805)
goto_if_false @IMPND_5813
if 
  not Char.IsDead($cam_vec_x[0])
goto_if_false @IMPND_5813
if 
  Char.IsInArea2D($cam_vec_x[0], 1543.595, -1631.279, 1545.022, -1632.704, False)
goto_if_false @IMPND_5813
$10720 = 1
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_5813
if 
  20@ == 0
goto_if_false @IMPND_5813
20@ = 1
set_lvar_int_to_var_int 19@ = $cam_vec_x[0]

:IMPND_5813
if 
  $10547 == 1
goto_if_false @IMPND_5892
if 
  not Car.IsDead($imp_sequence[1])
goto_if_false @IMPND_5892
if 
  Car.IsInArea2D($imp_sequence[1], 1544.988, -1622.29, 1556.178, -1632.62, False)
goto_if_false @IMPND_5892
$10720 = 1

:IMPND_5892
goto @IMPND_6159

:IMPND_5899
$blah += 0.5
Object.SetRotation(9@, $blah, 0.0, 0.0)
if 
  $blah >= 0.0
goto_if_false @IMPND_5955
$10720 = 2

:IMPND_5955
goto @IMPND_6159

:IMPND_5962
if 
  not World.IsAreaOccupied(1554.32, -1632.669, 13.9475, 1535.271, -1620.762, 11.8805, False, True, False, False, False)
goto_if_false @IMPND_6022
$10720 = 3

:IMPND_6022
goto @IMPND_6159

:IMPND_6029
if 
  World.IsAreaOccupied(1540.938, -1623.681, 14.3551, 1550.887, -1631.648, 12.1949, False, True, False, False, False)
goto_if_false @IMPND_6096
$10720 = 1
goto @IMPND_6152

:IMPND_6096
$blah -= 0.5
Object.SetRotation(9@, $blah, 0.0, 0.0)
if 
  -90.0 >= $blah
goto_if_false @IMPND_6152
$10720 = 0

:IMPND_6152
goto @IMPND_6159

:IMPND_6159
switch_start $10722 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_6885 {caseNum1} 0 {caseLabel1} @IMPND_6222 {caseNum2} 1 {caseLabel2} @IMPND_6496 {caseNum3} 2 {caseLabel3} @IMPND_6623 {caseNum4} 3 {caseLabel4} @IMPND_6698 {caseNum5} -1 {caseLabel5} @IMPND_6885 {caseNum6} -1 {caseLabel6} @IMPND_6885 {caseNum7} -1 {caseLabel7} @IMPND_6885

:IMPND_6222
if 
  $10703 == 1
goto_if_false @IMPND_6421
if 
  World.IsCopVehicleInArea3DNoSave(1592.251, -1637.59, 17.1898, 1578.344, -1624.273, 11.9866)
goto_if_false @IMPND_6421
if 
  $10539[2] == 0
goto_if_false @IMPND_6421
if 
  not Char.IsDead($cam_vec_x[2])
goto_if_false @IMPND_6421
if 
  Char.IsInArea2D($cam_vec_x[2], 1582.153, -1637.67, 1577.585, -1633.235, False)
goto_if_false @IMPND_6421
$10722 = 1
Audio.ReportMissionAudioEventAtObject(6@, 1153)
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_6421
if 
  20@ == 0
goto_if_false @IMPND_6421
20@ = 1
set_lvar_int_to_var_int 19@ = $cam_vec_x[2]

:IMPND_6421
if 
  World.IsAreaOccupied(1581.732, -1639.463, 16.4817, 1599.936, -1652.072, 7.8825, False, True, False, False, False)
goto_if_false @IMPND_6489
$10722 = 1
Audio.ReportMissionAudioEventAtObject(6@, 1153)

:IMPND_6489
goto @IMPND_6885

:IMPND_6496
$x, $y, $door_control = Object.GetCoordinates(6@)
$door_control += 0.0173
$10726 += 0.9
if 
  $door_control >= 16.425
goto_if_false @IMPND_6586
$10722 = 2
$door_control = 16.425
$10726 = 90.0
Audio.ReportMissionAudioEventAtObject(6@, 1154)

:IMPND_6586
Object.SetCoordinates(6@, $x, $y, $door_control)
Object.SetRotation(6@, $10726, 0.0, $10640[1])
goto @IMPND_6885

:IMPND_6623
if 
  not World.IsAreaOccupied(1602.079, -1655.913, 6.5685, 1582.779, -1631.262, 17.1606, False, True, False, False, False)
goto_if_false @IMPND_6691
$10722 = 3
Audio.ReportMissionAudioEventAtObject(6@, 1153)

:IMPND_6691
goto @IMPND_6885

:IMPND_6698
$x, $y, $door_control = Object.GetCoordinates(6@)
$door_control -= 0.0155
$10726 -= 0.9
if 
  14.5641 >= $door_control
goto_if_false @IMPND_6788
Audio.ReportMissionAudioEventAtObject(6@, 1154)
$10722 = 0
$10726 = 0.0
$door_control = 14.5641

:IMPND_6788
Object.SetCoordinates(6@, $x, $y, $door_control)
Object.SetRotation(6@, $10726, 0.0, $10640[1])
if 
  World.IsAreaOccupied(1602.079, -1655.913, 6.5685, 1582.779, -1631.262, 17.1606, False, True, False, False, False)
goto_if_false @IMPND_6878
$10722 = 1

:IMPND_6878
goto @IMPND_6885

:IMPND_6885
if 
  $impound_area == 2
goto_if_false @IMPND_8651
switch_start $10720 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_7406 {caseNum1} 0 {caseLabel1} @IMPND_6966 {caseNum2} 1 {caseLabel2} @IMPND_7146 {caseNum3} 2 {caseLabel3} @IMPND_7209 {caseNum4} 3 {caseLabel4} @IMPND_7276 {caseNum5} -1 {caseLabel5} @IMPND_7406 {caseNum6} -1 {caseLabel6} @IMPND_7406 {caseNum7} -1 {caseLabel7} @IMPND_7406

:IMPND_6966
if 
  $10539[0] == 0
goto_if_false @IMPND_7139
if 
  World.IsCopVehicleInArea3DNoSave(-1566.137, 666.7503, 5.775, -1577.602, 658.2418, 9.2455)
goto_if_false @IMPND_7139
if 
  not Char.IsDead($cam_vec_x[0])
goto_if_false @IMPND_7139
if 
  Char.IsInArea2D($cam_vec_x[0], -1573.406, 656.8607, -1572.033, 658.196, False)
goto_if_false @IMPND_7088
$10720 = 1

:IMPND_7088
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_7139
if 
  20@ == 0
goto_if_false @IMPND_7139
20@ = 1
set_lvar_int_to_var_int 19@ = $cam_vec_x[0]

:IMPND_7139
goto @IMPND_7406

:IMPND_7146
$blah += 0.5
Object.SetRotation(9@, $blah, 0.0, 0.0)
if 
  $blah >= 0.0
goto_if_false @IMPND_7202
$10720 = 2

:IMPND_7202
goto @IMPND_7406

:IMPND_7209
if 
  not World.IsAreaOccupied(-1566.137, 666.7503, 5.775, -1577.602, 658.2418, 9.2455, False, True, False, False, False)
goto_if_false @IMPND_7269
$10720 = 3

:IMPND_7269
goto @IMPND_7406

:IMPND_7276
if 
  World.IsAreaOccupied(-1566.137, 666.7503, 5.775, -1577.602, 658.2418, 9.2455, False, True, False, False, False)
goto_if_false @IMPND_7343
$10720 = 1
goto @IMPND_7399

:IMPND_7343
$blah -= 0.5
Object.SetRotation(9@, $blah, 0.0, 0.0)
if 
  -90.0 >= $blah
goto_if_false @IMPND_7399
$10720 = 0

:IMPND_7399
goto @IMPND_7406

:IMPND_7406
switch_start $10721 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_7909 {caseNum1} 0 {caseLabel1} @IMPND_7469 {caseNum2} 1 {caseLabel2} @IMPND_7649 {caseNum3} 2 {caseLabel3} @IMPND_7712 {caseNum4} 3 {caseLabel4} @IMPND_7779 {caseNum5} -1 {caseLabel5} @IMPND_7909 {caseNum6} -1 {caseLabel6} @IMPND_7909 {caseNum7} -1 {caseLabel7} @IMPND_7909

:IMPND_7469
if 
  $10539[1] == 0
goto_if_false @IMPND_7642
if 
  World.IsCopVehicleInArea3DNoSave(-1688.231, 679.8141, 20.5924, -1710.483, 687.937, 28.4141)
goto_if_false @IMPND_7642
if 
  not Char.IsDead($cam_vec_x[1])
goto_if_false @IMPND_7642
if 
  Char.IsInArea2D($cam_vec_x[1], -1701.648, 689.5652, -1700.086, 688.274, False)
goto_if_false @IMPND_7591
$10721 = 1

:IMPND_7591
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_7642
if 
  20@ == 0
goto_if_false @IMPND_7642
20@ = 1
set_lvar_int_to_var_int 19@ = $cam_vec_x[1]

:IMPND_7642
goto @IMPND_7909

:IMPND_7649
$cop_car += 0.5
Object.SetRotation(10@, $cop_car, 0.0, 180.0)
if 
  $cop_car >= 0.0
goto_if_false @IMPND_7705
$10721 = 2

:IMPND_7705
goto @IMPND_7909

:IMPND_7712
if 
  not World.IsAreaOccupied(-1688.231, 679.8141, 20.5924, -1710.483, 687.937, 28.4141, False, True, False, False, False)
goto_if_false @IMPND_7772
$10721 = 3

:IMPND_7772
goto @IMPND_7909

:IMPND_7779
if 
  World.IsAreaOccupied(-1688.231, 679.8141, 20.5924, -1710.483, 687.937, 28.4141, False, True, False, False, False)
goto_if_false @IMPND_7846
$10721 = 1
goto @IMPND_7902

:IMPND_7846
$cop_car -= 0.5
Object.SetRotation(10@, $cop_car, 0.0, 180.0)
if 
  -90.0 >= $cop_car
goto_if_false @IMPND_7902
$10721 = 0

:IMPND_7902
goto @IMPND_7909

:IMPND_7909
switch_start $10722 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_8651 {caseNum1} 0 {caseLabel1} @IMPND_7972 {caseNum2} 1 {caseLabel2} @IMPND_8324 {caseNum3} 2 {caseLabel3} @IMPND_8415 {caseNum4} 3 {caseLabel4} @IMPND_8490 {caseNum5} -1 {caseLabel5} @IMPND_8651 {caseNum6} -1 {caseLabel6} @IMPND_8651 {caseNum7} -1 {caseLabel7} @IMPND_8651

:IMPND_7972
if 
  $10703 == 1
goto_if_false @IMPND_8171
if 
  World.IsCopVehicleInArea3DNoSave(-1639.599, 674.9066, 10.3898, -1622.298, 710.0969, 0.8401)
goto_if_false @IMPND_8171
if 
  $10539[2] == 0
goto_if_false @IMPND_8171
if 
  not Char.IsDead($cam_vec_x[2])
goto_if_false @IMPND_8171
if 
  Char.IsInArea2D($cam_vec_x[2], -1613.253, 679.4489, -1618.76, 688.0851, False)
goto_if_false @IMPND_8171
$10722 = 1
Audio.ReportMissionAudioEventAtObject(6@, 1153)
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_8171
if 
  20@ == 0
goto_if_false @IMPND_8171
20@ = 1
set_lvar_int_to_var_int 19@ = $cam_vec_x[2]

:IMPND_8171
if 
  $10547 == 1
goto_if_false @IMPND_8257
if 
  World.IsAreaOccupied(-1639.599, 674.9066, 10.3898, -1622.298, 710.0969, 0.8401, False, True, False, False, False)
goto_if_false @IMPND_8257
$10722 = 1
Audio.ReportMissionAudioEventAtObject(6@, 1153)

:IMPND_8257
if 
  World.IsAreaOccupied(-1620.061, 715.371, -4.554, -1640.881, 691.9899, 11.1863, False, True, False, False, False)
goto_if_false @IMPND_8317
$10722 = 1

:IMPND_8317
goto @IMPND_8651

:IMPND_8324
$x, $y, $door_control = Object.GetCoordinates(6@)
$door_control += 0.0155
if 
  $door_control >= 13.2513
goto_if_false @IMPND_8394
$10722 = 2
$door_control = 13.2513
Audio.ReportMissionAudioEventAtObject(6@, 1154)

:IMPND_8394
Object.SetCoordinates(6@, $x, $y, $door_control)
goto @IMPND_8651

:IMPND_8415
if 
  not World.IsAreaOccupied(-1639.599, 674.9066, 10.3898, -1622.298, 710.0969, 0.8401, False, True, False, False, False)
goto_if_false @IMPND_8483
$10722 = 3
Audio.ReportMissionAudioEventAtObject(6@, 1153)

:IMPND_8483
goto @IMPND_8651

:IMPND_8490
$x, $y, $door_control = Object.GetCoordinates(6@)
$door_control -= 0.0155
if 
  8.5436 >= $door_control
goto_if_false @IMPND_8570
$10722 = 0
$10726 = 0.0
$door_control = 8.5436
Audio.ReportMissionAudioEventAtObject(6@, 1154)

:IMPND_8570
Object.SetCoordinates(6@, $x, $y, $door_control)
if 
  World.IsAreaOccupied(-1639.599, 674.9066, 10.3898, -1622.298, 710.0969, 0.8401, False, True, False, False, False)
goto_if_false @IMPND_8644
$10722 = 1

:IMPND_8644
goto @IMPND_8651

:IMPND_8651
if 
  $impound_area == 3
goto_if_false @IMPND_10490
switch_start $10720 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_9288 {caseNum1} 0 {caseLabel1} @IMPND_8732 {caseNum2} 1 {caseLabel2} @IMPND_9028 {caseNum3} 2 {caseLabel3} @IMPND_9091 {caseNum4} 3 {caseLabel4} @IMPND_9158 {caseNum5} -1 {caseLabel5} @IMPND_9288 {caseNum6} -1 {caseLabel6} @IMPND_9288 {caseNum7} -1 {caseLabel7} @IMPND_9288

:IMPND_8732
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @IMPND_8942
if 
  Char.IsInAnyPoliceVehicle($scplayer)
goto_if_false @IMPND_8942
if 
  Char.IsInArea3D($scplayer, 2250.323, 2449.556, 8.4616, 2230.411, 2461.791, 17.8394, False)
goto_if_false @IMPND_8942
if 
  $10539[0] == 0
goto_if_false @IMPND_8942
if 
  not Char.IsDead($cam_vec_x[0])
goto_if_false @IMPND_8942
if 
  Char.IsInArea2D($cam_vec_x[0], 2237.854, 2448.608, 2239.385, 2450.014, False)
goto_if_false @IMPND_8942
$10720 = 1
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_8942
if 
  20@ == 0
goto_if_false @IMPND_8942
20@ = 1
set_lvar_int_to_var_int 19@ = $cam_vec_x[0]

:IMPND_8942
if 
  $10547 == 1
goto_if_false @IMPND_9021
if 
  not Car.IsDead($imp_sequence[0])
goto_if_false @IMPND_9021
if 
  Car.IsInArea2D($imp_sequence[0], 2222.316, 2432.012, 2246.956, 2467.653, False)
goto_if_false @IMPND_9021
$10720 = 1

:IMPND_9021
goto @IMPND_9288

:IMPND_9028
$blah += 0.5
Object.SetRotation(9@, $blah, 0.0, 0.0)
if 
  $blah >= 0.0
goto_if_false @IMPND_9084
$10720 = 2

:IMPND_9084
goto @IMPND_9288

:IMPND_9091
if 
  not World.IsAreaOccupied(2250.323, 2449.556, 8.4616, 2230.411, 2461.791, 17.8394, False, True, False, False, False)
goto_if_false @IMPND_9151
$10720 = 3

:IMPND_9151
goto @IMPND_9288

:IMPND_9158
if 
  World.IsAreaOccupied(2250.323, 2449.556, 8.4616, 2230.411, 2461.791, 17.8394, False, True, False, False, False)
goto_if_false @IMPND_9225
$10720 = 1
goto @IMPND_9281

:IMPND_9225
$blah -= 0.5
Object.SetRotation(9@, $blah, 0.0, 0.0)
if 
  -90.0 >= $blah
goto_if_false @IMPND_9281
$10720 = 0

:IMPND_9281
goto @IMPND_9288

:IMPND_9288
switch_start $10722 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_10007 {caseNum1} 0 {caseLabel1} @IMPND_9351 {caseNum2} 1 {caseLabel2} @IMPND_9680 {caseNum3} 2 {caseLabel3} @IMPND_9771 {caseNum4} 3 {caseLabel4} @IMPND_9846 {caseNum5} -1 {caseLabel5} @IMPND_10007 {caseNum6} -1 {caseLabel6} @IMPND_10007 {caseNum7} -1 {caseLabel7} @IMPND_10007

:IMPND_9351
if 
  $10703 == 1
goto_if_false @IMPND_9587
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @IMPND_9587
if 
  Char.IsInAnyPoliceVehicle($scplayer)
goto_if_false @IMPND_9587
if 
  Char.IsInArea3D($scplayer, 2237.808, 2486.764, 12.7579, 2280.211, 2502.595, 6.2211, False)
goto_if_false @IMPND_9587
if 
  $10539[2] == 0
goto_if_false @IMPND_9587
if 
  not Char.IsDead($cam_vec_x[2])
goto_if_false @IMPND_9587
if 
  Char.IsInArea2D($cam_vec_x[2], 2253.515, 2485.275, 2248.9, 2492.416, False)
goto_if_false @IMPND_9587
$10722 = 1
Audio.ReportMissionAudioEventAtObject(6@, 1153)
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_9587
if 
  20@ == 0
goto_if_false @IMPND_9587
20@ = 1
set_lvar_int_to_var_int 19@ = $cam_vec_x[2]

:IMPND_9587
if 
  $10547 == 1
goto_if_false @IMPND_9673
if 
  World.IsAreaOccupied(2294.371, 2493.447, 6.6617, 2305.78, 2504.33, 2.1808, False, True, False, False, False)
goto_if_false @IMPND_9673
$10722 = 1
Audio.ReportMissionAudioEventAtObject(6@, 1153)

:IMPND_9673
goto @IMPND_10007

:IMPND_9680
$x, $y, $door_control = Object.GetCoordinates(6@)
$door_control += 0.0155
if 
  $door_control >= 8.8513
goto_if_false @IMPND_9750
$10722 = 2
$door_control = 8.8513
Audio.ReportMissionAudioEventAtObject(6@, 1154)

:IMPND_9750
Object.SetCoordinates(6@, $x, $y, $door_control)
goto @IMPND_10007

:IMPND_9771
if 
  not World.IsAreaOccupied(2286.148, 2503.084, 7.8689, 2302.432, 2491.353, 1.8459, False, True, False, False, False)
goto_if_false @IMPND_9839
$10722 = 3
Audio.ReportMissionAudioEventAtObject(6@, 1153)

:IMPND_9839
goto @IMPND_10007

:IMPND_9846
$x, $y, $door_control = Object.GetCoordinates(6@)
$door_control -= 0.0155
if 
  4.4414 >= $door_control
goto_if_false @IMPND_9926
$10722 = 0
$10726 = 0.0
$door_control = 4.4414
Audio.ReportMissionAudioEventAtObject(6@, 1154)

:IMPND_9926
Object.SetCoordinates(6@, $x, $y, $door_control)
if 
  World.IsAreaOccupied(2286.148, 2503.084, 7.8689, 2302.432, 2491.353, 1.8459, False, True, False, False, False)
goto_if_false @IMPND_10000
$10722 = 1

:IMPND_10000
goto @IMPND_10007

:IMPND_10007
switch_start $10723 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_10490 {caseNum1} 0 {caseLabel1} @IMPND_10070 {caseNum2} 1 {caseLabel2} @IMPND_10163 {caseNum3} 2 {caseLabel3} @IMPND_10254 {caseNum4} 3 {caseLabel4} @IMPND_10329 {caseNum5} -1 {caseLabel5} @IMPND_10490 {caseNum6} -1 {caseLabel6} @IMPND_10490 {caseNum7} -1 {caseLabel7} @IMPND_10490

:IMPND_10070
if 
  $10703 == 1
goto_if_false @IMPND_10156
if 
  World.IsAreaOccupied(2333.481, 2439.576, 8.8878, 2319.688, 2452.0, 2.1724, False, True, False, False, False)
goto_if_false @IMPND_10156
$10723 = 1
Audio.ReportMissionAudioEventAtObject(7@, 1153)

:IMPND_10156
goto @IMPND_10490

:IMPND_10163
$x, $y, $10731 = Object.GetCoordinates(7@)
$10731 += 0.0155
if 
  $10731 >= 11.6441
goto_if_false @IMPND_10233
$10723 = 2
$10731 = 11.6441
Audio.ReportMissionAudioEventAtObject(7@, 1154)

:IMPND_10233
Object.SetCoordinates(7@, $x, $y, $10731)
goto @IMPND_10490

:IMPND_10254
if 
  not World.IsAreaOccupied(2338.707, 2434.458, 11.8518, 2330.938, 2452.455, 3.5886, False, True, False, False, False)
goto_if_false @IMPND_10322
$10723 = 3
Audio.ReportMissionAudioEventAtObject(7@, 1153)

:IMPND_10322
goto @IMPND_10490

:IMPND_10329
$x, $y, $10731 = Object.GetCoordinates(7@)
$10731 -= 0.0155
if 
  6.9743 >= $10731
goto_if_false @IMPND_10409
$10723 = 0
$10727 = 0.0
$10731 = 6.9743
Audio.ReportMissionAudioEventAtObject(6@, 1154)

:IMPND_10409
Object.SetCoordinates(7@, $x, $y, $10731)
if 
  World.IsAreaOccupied(2338.707, 2434.458, 11.8518, 2330.938, 2452.455, 3.5886, False, True, False, False, False)
goto_if_false @IMPND_10483
$10723 = 1

:IMPND_10483
goto @IMPND_10490

:IMPND_10490
return 

:IMPND_10492
switch_start 13@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @IMPND_12873 {caseNum1} 1 {caseLabel1} @IMPND_12328 {caseNum2} 2 {caseLabel2} @IMPND_10865 {caseNum3} 3 {caseLabel3} @IMPND_11240 {caseNum4} 4 {caseLabel4} @IMPND_11932 {caseNum5} 5 {caseLabel5} @IMPND_10555 {caseNum6} 6 {caseLabel6} @IMPND_12724 {caseNum7} 9 {caseLabel7} @IMPND_11542

:IMPND_10555
gosub @IMPND_12875
if and
  $10704 == 1
  $10703 == 1
goto_if_false @IMPND_10609
$crane2_sound_flag(12@,8i) = 2
$10523(12@,8i) = 0

:IMPND_10609
if 
  $10706(12@,8i) == -2
goto_if_false @IMPND_10719
$x, $y, $z = Char.GetCoordinates($cam_vec_x(12@,8i))
set_var_float_to_var_float $10702 = $player_z
sub_float_var_from_float_var $10702 -= $z
if 
  3.0 > $10702
goto_if_false @IMPND_10719
$crane2_sound_flag(12@,8i) = 9
$10539(12@,8i) = 1
$10523(12@,8i) = 0

:IMPND_10719
if 
  $10706(12@,8i) == -1
goto_if_false @IMPND_10818
$x, $y, $z = Char.GetCoordinates($cam_vec_x(12@,8i))
set_var_float_to_var_float $10702 = $player_z
sub_float_var_from_float_var $10702 -= $z
if 
  3.0 > $10702
goto_if_false @IMPND_10818
$crane2_sound_flag(12@,8i) = 9
$10523(12@,8i) = 0

:IMPND_10818
if 
  $dock_crane_travel_vec_y == 1
goto_if_false @IMPND_10858
$crane2_sound_flag(12@,8i) = 6
$10523(12@,8i) = 0

:IMPND_10858
goto @IMPND_12873

:IMPND_10865
gosub @IMPND_19929
if 
  23@ == 0
goto_if_false @IMPND_11178
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_11024
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_10967
if 
  20@ == 0
goto_if_false @IMPND_10967
set_lvar_int_to_var_int 19@ = $cam_vec_x(12@,8i)
20@ = 4

:IMPND_10967
Task.GotoCharAiming($cam_vec_x(12@,8i), $scplayer, 5.0, 10.0)
set_var_int_to_lvar_int $10531(12@,8i) = TIMERA
$10531(12@,8i) += 6000
$10523(12@,8i) = 1

:IMPND_11024
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_11178
if 
  is_int_lvar_greater_than_int_var TIMERA > $10531(12@,8i)
goto_if_false @IMPND_11178
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_11145
if 
  20@ == 0
goto_if_false @IMPND_11138
$crane2_sound_flag(12@,8i) = 1
$10539(12@,8i) = 1
$10523(12@,8i) = 0

:IMPND_11138
goto @IMPND_11178

:IMPND_11145
$crane2_sound_flag(12@,8i) = 3
$10539(12@,8i) = 1
$10523(12@,8i) = 0

:IMPND_11178
if 
  $10706(12@,8i) == -2
goto_if_false @IMPND_11233
$crane2_sound_flag(12@,8i) = 3
$10539(12@,8i) = 1
$10523(12@,8i) = 0

:IMPND_11233
goto @IMPND_12873

:IMPND_11240
gosub @IMPND_19929
if 
  23@ == 0
goto_if_false @IMPND_11488
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_11334
set_var_int_to_lvar_int $10531(12@,8i) = TIMERA
$10531(12@,8i) += 7000
Task.KillCharOnFoot($cam_vec_x(12@,8i), $scplayer)
$10523(12@,8i) = 1

:IMPND_11334
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_11488
if 
  is_int_lvar_greater_than_int_var TIMERA > $10531(12@,8i)
goto_if_false @IMPND_11488
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_11455
if 
  20@ == 0
goto_if_false @IMPND_11448
$crane2_sound_flag(12@,8i) = 1
$10539(12@,8i) = 1
$10523(12@,8i) = 0

:IMPND_11448
goto @IMPND_11488

:IMPND_11455
$crane2_sound_flag(12@,8i) = 3
$10539(12@,8i) = 1
$10523(12@,8i) = 0

:IMPND_11488
if 
  $10704 == 0
goto_if_false @IMPND_11535
$i_see_you += 1
$crane2_sound_flag(12@,8i) = 4
$10523(12@,8i) = 0

:IMPND_11535
goto @IMPND_12873

:IMPND_11542
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_11629
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_11629
Task.AimGunAtCoord($cam_vec_x(12@,8i), $10733, $door_rotation, $10735, 5000)
$10523(12@,8i) = 1

:IMPND_11629
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_11772
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_11772
if 
  $10539(12@,8i) == 0
goto_if_false @IMPND_11728
$crane2_sound_flag(12@,8i) = 8
$10523(12@,8i) = 0

:IMPND_11728
if 
  $10539(12@,8i) == 1
goto_if_false @IMPND_11772
$crane2_sound_flag(12@,8i) = 6
$10523(12@,8i) = 0

:IMPND_11772
if and
  $10704 == 1
  $10703 == 1
goto_if_false @IMPND_11870
if 
  $10539(12@,8i) == 0
goto_if_false @IMPND_11848
$crane2_sound_flag(12@,8i) = 2
$10523(12@,8i) = 0
goto @IMPND_11870

:IMPND_11848
$crane2_sound_flag(12@,8i) = 3
$10523(12@,8i) = 0

:IMPND_11870
if 
  $10706(12@,8i) == -2
goto_if_false @IMPND_11925
$crane2_sound_flag(12@,8i) = 9
$10539(12@,8i) = 1
$10523(12@,8i) = 0

:IMPND_11925
goto @IMPND_12873

:IMPND_11932
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_12031
gosub @IMPND_19929
if 
  23@ == 0
goto_if_false @IMPND_12020
Task.GoToCoordWhileAiming($cam_vec_x(12@,8i), $10733, $door_rotation, $10735, 6, 1.0, 5.0, -1, $10733, $door_rotation, $10735)

:IMPND_12020
$10523(12@,8i) = 1

:IMPND_12031
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_12109
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1730)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_12109
Task.Pause($cam_vec_x(12@,8i), 2000)
$10523(12@,8i) = 2

:IMPND_12109
if 
  $10523(12@,8i) == 2
goto_if_false @IMPND_12186
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1465)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_12186
$crane2_sound_flag(12@,8i) = 6
$10523(12@,8i) = 0

:IMPND_12186
if and
  $10704 == 1
  $10703 == 1
goto_if_false @IMPND_12233
$crane2_sound_flag(12@,8i) = 3
$10523(12@,8i) = 0

:IMPND_12233
if 
  $10706(12@,8i) == -2
goto_if_false @IMPND_12277
$crane2_sound_flag(12@,8i) = 9
$10523(12@,8i) = 0

:IMPND_12277
if 
  $10706(12@,8i) == -1
goto_if_false @IMPND_12321
$crane2_sound_flag(12@,8i) = 9
$10523(12@,8i) = 0

:IMPND_12321
goto @IMPND_12873

:IMPND_12328
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_12449
if 
  20@ == 0
goto_if_false @IMPND_12449
Char.ClearTasksImmediately($cam_vec_x(12@,8i))
Task.PlayAnimNonInterruptable($cam_vec_x(12@,8i), "PHONE_TALK", "PED", 4.0, True, False, False, False, 4000)
20@ = 5
set_lvar_int_to_var_int 19@ = $cam_vec_x(12@,8i)
$10523(12@,8i) = 1

:IMPND_12449
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_12717
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 2066)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_12717
if 
  $dock_crane_travel_vec_y == 0
goto_if_false @IMPND_12695
$dock_crane_travel_vec_y = 1
if 
  not Char.IsDead(24@)
goto_if_false @IMPND_12557
Char.FreezePosition(24@, False)
Task.Cower(24@)

:IMPND_12557
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Audio.LoadMissionAudio(MissionAudioSlot.Slot4, 29400)
$10539[0] = 1
$10539[1] = 1
$10539[2] = 1
$10539[3] = 1
$10539[4] = 1
$10539[5] = 1
$10539[6] = 1
$10539[7] = 1
if 
  not Char.IsDead($cam_vec_x[1])
goto_if_false @IMPND_12647
Char.SetCurrentWeapon($cam_vec_x[1], WeaponType.Pistol)

:IMPND_12647
if 
  not Char.IsDead($cam_vec_x[6])
goto_if_false @IMPND_12670
Char.SetCurrentWeapon($cam_vec_x[6], WeaponType.Pistol)

:IMPND_12670
if 
  $onmission == 0
goto_if_false @IMPND_12695
Player.AlterWantedLevelNoDrop($player1, 3)

:IMPND_12695
$crane2_sound_flag(12@,8i) = 3
$10523(12@,8i) = 0

:IMPND_12717
goto @IMPND_12873

:IMPND_12724
gosub @IMPND_15747
if and
  $10704 == 1
  $10703 == 1
goto_if_false @IMPND_12778
$crane2_sound_flag(12@,8i) = 3
$10523(12@,8i) = 0

:IMPND_12778
if 
  $10706(12@,8i) == -2
goto_if_false @IMPND_12822
$crane2_sound_flag(12@,8i) = 9
$10523(12@,8i) = 0

:IMPND_12822
if 
  $10706(12@,8i) == -1
goto_if_false @IMPND_12866
$crane2_sound_flag(12@,8i) = 9
$10523(12@,8i) = 0

:IMPND_12866
goto @IMPND_12873

:IMPND_12873
return 

:IMPND_12875
if 
  $impound_area == 1
goto_if_false @IMPND_13988
if 
  $10703 == 1
goto_if_false @IMPND_13640
if 
  $10719 == 1
goto_if_false @IMPND_13640
if 
  12.0 > $player_z
goto_if_false @IMPND_13640
$10547 = 1
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_13640
if 
  12@ == 3
goto_if_false @IMPND_13112
Path.FlushRoute
Path.ExtendRoute(1583.321, -1691.575, 5.2252)
Path.ExtendRoute(1555.105, -1692.137, 5.2252)
Path.ExtendRoute(1526.534, -1676.968, 4.8984)
$10705 = Sequence.Open()
Task.Pause(-1, 3500)
Task.LeaveAnyCar(-1)
Task.Pause(-1, 700)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Task.AchieveHeading(-1, 63.3988)
Sequence.Close($10705)
Char.PerformSequence($cam_vec_x(12@,8i), $10705)
Sequence.Clear($10705)

:IMPND_13112
if 
  12@ == 4
goto_if_false @IMPND_13248
Path.FlushRoute
Path.ExtendRoute(1582.722, -1669.56, 4.8942)
Path.ExtendRoute(1581.765, -1690.743, 5.2187)
Path.ExtendRoute(1556.016, -1690.699, 5.2252)
Path.ExtendRoute(1525.97, -1674.655, 4.8984)
$10705 = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Task.AchieveHeading(-1, 92.6125)
Sequence.Close($10705)
Char.PerformSequence($cam_vec_x(12@,8i), $10705)
Sequence.Clear($10705)

:IMPND_13248
if 
  12@ == 5
goto_if_false @IMPND_13503
$10732 = Sequence.Open()
if 
  not Car.IsDead($imp_sequence[2])
goto_if_false @IMPND_13360
Task.CarDriveToCoord(-1, $imp_sequence[2], 1589.878, -1644.143, 11.2316, 10.0, DriveMode.Accurate, 0, DrivingMode.StopForCars)
Task.Pause(-1, 2000)
Task.CarDriveToCoord(-1, $imp_sequence[2], 1549.443, -1627.994, 12.3905, 10.0, DriveMode.Accurate, 0, DrivingMode.StopForCars)

:IMPND_13360
Sequence.Close($10732)
Path.FlushRoute
Path.ExtendRoute(1567.392, -1706.847, 4.8984)
Path.ExtendRoute(1566.885, -1710.162, 4.8984)
$10705 = Sequence.Open()
Task.Pause(-1, 10000)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
if 
  not Car.IsDead($imp_sequence[2])
goto_if_false @IMPND_13465
Task.EnterCarAsDriver(-1, $imp_sequence[2], -1)
Task.CarTempAction(-1, $imp_sequence[2], TempAction.ReverseRight, 1000)
Char.PerformSequence(-1, $10732)

:IMPND_13465
Sequence.Close($10705)
Char.PerformSequence($cam_vec_x(12@,8i), $10705)
Sequence.Clear($10705)
Sequence.Clear($10732)
$10523(12@,8i) = 1

:IMPND_13503
if 
  12@ == 6
goto_if_false @IMPND_13588
24@ = Char.CreateRandom(1610.446, -1720.474, 5.2252)
Char.SetHeading(24@, 45.0)
Task.HandsUp(24@, -2)
Char.FreezePosition(24@, True)
Char.SetCurrentWeapon($cam_vec_x(12@,8i), WeaponType.Unarmed)
Task.KillCharOnFoot($cam_vec_x(12@,8i), 24@)

:IMPND_13588
if 
  12@ == 7
goto_if_false @IMPND_13629
if 
  not Car.IsDead($imp_sequence[3])
goto_if_false @IMPND_13629
Car.OpenDoor($imp_sequence[3], CarDoor.Hood)

:IMPND_13629
$10523(12@,8i) = 1

:IMPND_13640
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_13988
if 
  12@ == 5
goto_if_false @IMPND_13863
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_13863
if 
  not Char.IsDead($cam_vec_x[5])
goto_if_false @IMPND_13863
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), -1)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_13863
if 
  Char.LocateInCar3D($cam_vec_x(12@,8i), 2242.173, 2461.965, 9.8203, 4.0, 4.0, 4.0, False)
goto_if_false @IMPND_13863
Char.MarkAsNoLongerNeeded($cam_vec_x[5])
Car.MarkAsNoLongerNeeded($imp_sequence[1])
if 
  $blah > -25.0
goto_if_false @IMPND_13863
Task.CarDriveWander($cam_vec_x(12@,8i), $imp_sequence[1], 20.0, DrivingMode.StopForCars)
$10523(12@,8i) = 2

:IMPND_13863
if 
  12@ == 6
goto_if_false @IMPND_13988
if 
  not Char.IsDead(24@)
goto_if_false @IMPND_13988
Char.SetHealth(24@, 100)
14@ = Char.GetScriptTaskStatus(24@, 1476)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_13988
Task.HandsUp(24@, -2)
if 
  not Char.IsDead($cam_vec_x[1])
goto_if_false @IMPND_13988
Task.PlayAnim($cam_vec_x[1], "FUCKU", "PED", 4.0, False, False, False, False, -2)

:IMPND_13988
if 
  $impound_area == 2
goto_if_false @IMPND_14848
if 
  $10719 == 1
goto_if_false @IMPND_14848
if 
  -0.7114 > $player_z
goto_if_false @IMPND_14643
$10547 = 1
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_14643
if 
  12@ == 3
goto_if_false @IMPND_14200
Path.FlushRoute
Path.ExtendRoute(-1601.988, 744.1652, -6.2422)
Path.ExtendRoute(-1593.343, 729.7554, -5.9062)
Path.ExtendRoute(-1593.44, 718.5184, -6.2344)
$10705 = Sequence.Open()
Task.Pause(-1, 1000)
Task.LeaveAnyCar(-1)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Task.AchieveHeading(-1, 146.3988)
Sequence.Close($10705)
Char.PerformSequence($cam_vec_x(12@,8i), $10705)
Sequence.Clear($10705)

:IMPND_14200
if 
  12@ == 4
goto_if_false @IMPND_14302
Path.FlushRoute
Path.ExtendRoute(-1592.119, 729.1914, -5.9062)
Path.ExtendRoute(-1592.753, 715.295, -6.2344)
$10705 = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Task.AchieveHeading(-1, 103.6125)
Sequence.Close($10705)
Char.PerformSequence($cam_vec_x(12@,8i), $10705)
Sequence.Clear($10705)

:IMPND_14302
if 
  12@ == 5
goto_if_false @IMPND_14591
$10732 = Sequence.Open()
if 
  not Car.IsDead($imp_sequence[3])
goto_if_false @IMPND_14414
Task.CarDriveToCoord(-1, $imp_sequence[3], -1629.925, 694.9102, 5.8578, 10.0, DriveMode.Accurate, 0, DrivingMode.StopForCars)
Task.Pause(-1, 8000)
Task.CarDriveToCoord(-1, $imp_sequence[3], -1578.795, 662.8546, 6.1874, 10.0, DriveMode.Accurate, 0, DrivingMode.StopForCars)

:IMPND_14414
Sequence.Close($10732)
Path.FlushRoute
Path.ExtendRoute(-1595.711, 698.4703, -5.9062)
Path.ExtendRoute(-1587.208, 701.9536, -5.914)
Path.ExtendRoute(-1577.201, 720.1028, -6.2344)
Path.ExtendRoute(-1574.414, 720.1995, -6.2344)
$10705 = Sequence.Open()
Task.Pause(-1, 10000)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
if 
  not Car.IsDead($imp_sequence[3])
goto_if_false @IMPND_14553
Task.EnterCarAsDriver(-1, $imp_sequence[3], -1)
Task.CarTempAction(-1, $imp_sequence[3], TempAction.ReverseRight, 1000)
Char.PerformSequence(-1, $10732)

:IMPND_14553
Sequence.Close($10705)
Char.PerformSequence($cam_vec_x(12@,8i), $10705)
Sequence.Clear($10705)
Sequence.Clear($10732)
$10523(12@,8i) = 1

:IMPND_14591
if 
  12@ == 6
goto_if_false @IMPND_14632
if 
  not Car.IsDead($imp_sequence[1])
goto_if_false @IMPND_14632
Car.OpenDoor($imp_sequence[1], CarDoor.Hood)

:IMPND_14632
$10523(12@,8i) = 1

:IMPND_14643
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_14848
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_14837
if 
  not Char.IsDead($cam_vec_x[5])
goto_if_false @IMPND_14837
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), -1)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_14837
if 
  Char.LocateInCar3D($cam_vec_x(12@,8i), 2242.173, 2461.965, 9.8203, 4.0, 4.0, 4.0, False)
goto_if_false @IMPND_14837
Char.MarkAsNoLongerNeeded($cam_vec_x[5])
Car.MarkAsNoLongerNeeded($imp_sequence[1])
if 
  $blah > -25.0
goto_if_false @IMPND_14837
Task.CarDriveWander($cam_vec_x(12@,8i), $imp_sequence[1], 20.0, DrivingMode.StopForCars)

:IMPND_14837
$10523(12@,8i) = 2

:IMPND_14848
if 
  $impound_area == 3
goto_if_false @IMPND_15745
if 
  $10719 == 1
goto_if_false @IMPND_15745
if and
  4.3 > $player_z
  $player_x > 2292.0
goto_if_false @IMPND_15540
$10547 = 1
if 
  $10523(12@,8i) == 0
goto_if_false @IMPND_15540
if 
  12@ == 3
goto_if_false @IMPND_15104
Path.FlushRoute
Path.ExtendRoute(2292.413, 2466.859, 2.5313)
Path.ExtendRoute(2292.549, 2448.623, 2.5313)
Path.ExtendRoute(2290.439, 2446.945, 2.5313)
Path.ExtendRoute(2271.247, 2446.799, 2.5313)
Path.ExtendRoute(2266.618, 2449.154, 2.5313)
$10705 = Sequence.Open()
Task.Pause(-1, 1000)
Task.LeaveAnyCar(-1)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Task.AchieveHeading(-1, 337.3988)
Sequence.Close($10705)
Char.PerformSequence($cam_vec_x(12@,8i), $10705)
Sequence.Clear($10705)

:IMPND_15104
if 
  12@ == 4
goto_if_false @IMPND_15240
Path.FlushRoute
Path.ExtendRoute(2283.378, 2469.562, 2.5313)
Path.ExtendRoute(2290.223, 2466.888, 2.5313)
Path.ExtendRoute(2290.487, 2449.401, 2.5313)
Path.ExtendRoute(2269.623, 2448.8, 2.5313)
$10705 = Sequence.Open()
Task.LeaveAnyCar(-1)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Task.AchieveHeading(-1, 25.6125)
Sequence.Close($10705)
Char.PerformSequence($cam_vec_x(12@,8i), $10705)
Sequence.Clear($10705)

:IMPND_15240
if 
  12@ == 5
goto_if_false @IMPND_15529
$10732 = Sequence.Open()
if 
  not Car.IsDead($imp_sequence[1])
goto_if_false @IMPND_15352
Task.CarDriveToCoord(-1, $imp_sequence[1], 2300.103, 2494.479, 2.266, 10.0, DriveMode.Accurate, 0, DrivingMode.StopForCars)
Task.Pause(-1, 8000)
Task.CarDriveToCoord(-1, $imp_sequence[1], 2242.173, 2461.965, 9.8203, 10.0, DriveMode.Accurate, 0, DrivingMode.StopForCars)

:IMPND_15352
Sequence.Close($10732)
Path.FlushRoute
Path.ExtendRoute(2258.914, 2447.821, 2.5313)
Path.ExtendRoute(2258.346, 2467.58, 2.5313)
Path.ExtendRoute(2298.069, 2467.792, 2.266)
Path.ExtendRoute(2313.553, 2474.045, 2.266)
$10705 = Sequence.Open()
Task.Pause(-1, 10000)
Task.FollowPointRoute(-1, 4, RouteMode.Once)
if 
  not Car.IsDead($imp_sequence[1])
goto_if_false @IMPND_15491
Task.EnterCarAsDriver(-1, $imp_sequence[1], -1)
Task.CarTempAction(-1, $imp_sequence[1], TempAction.ReverseRight, 1000)
Char.PerformSequence(-1, $10732)

:IMPND_15491
Sequence.Close($10705)
Char.PerformSequence($cam_vec_x(12@,8i), $10705)
Sequence.Clear($10705)
Sequence.Clear($10732)
$10523(12@,8i) = 1

:IMPND_15529
$10523(12@,8i) = 1

:IMPND_15540
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_15745
if 
  $10523(12@,8i) == 1
goto_if_false @IMPND_15734
if 
  not Char.IsDead($cam_vec_x[5])
goto_if_false @IMPND_15734
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), -1)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_15734
if 
  Char.LocateInCar3D($cam_vec_x(12@,8i), 2242.173, 2461.965, 9.8203, 4.0, 4.0, 4.0, False)
goto_if_false @IMPND_15734
Char.MarkAsNoLongerNeeded($cam_vec_x[5])
Car.MarkAsNoLongerNeeded($imp_sequence[1])
if 
  $blah > -25.0
goto_if_false @IMPND_15734
Task.CarDriveWander($cam_vec_x(12@,8i), $imp_sequence[1], 20.0, DrivingMode.StopForCars)

:IMPND_15734
$10523(12@,8i) = 2

:IMPND_15745
return 

:IMPND_15747
if 
  $impound_area == 1
goto_if_false @IMPND_16709
$x, $y, $z = Char.GetCoordinates($cam_vec_x(12@,8i))
if 
  $z > 16.3914
goto_if_false @IMPND_16021
if 
  not Char.LocateAnyMeans3D($cam_vec_x(12@,8i), 1553.0, -1627.837, 12.3905, 5.0, 5.0, 5.0, False)
goto_if_false @IMPND_15933
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_15926
Char.ClearTasks($cam_vec_x(12@,8i))
Task.GoStraightToCoord($cam_vec_x(12@,8i), 1553.0, -1627.837, 12.3905, MoveState.Run, -2)

:IMPND_15926
goto @IMPND_16014

:IMPND_15933
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16014
if 
  $10735 > 15.0
goto_if_false @IMPND_16014
Task.AimGunAtCoord($cam_vec_x(12@,8i), 1566.329, -1628.917, 13.7858, 8000)

:IMPND_16014
goto @IMPND_16709

:IMPND_16021
if and
  $x > 1580.82
  $y > -1678.518
goto_if_false @IMPND_16303
if 
  not Char.LocateAnyMeans3D($cam_vec_x(12@,8i), 1596.388, -1665.798, 4.8604, 5.0, 5.0, 5.0, False)
goto_if_false @IMPND_16181
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16174
Char.ClearTasks($cam_vec_x(12@,8i))
Task.GoStraightToCoord($cam_vec_x(12@,8i), 1596.388, -1665.798, 4.8604, MoveState.Run, -2)

:IMPND_16174
goto @IMPND_16296

:IMPND_16181
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16296
if 
  $10735 > 10.5
goto_if_false @IMPND_16269
Task.AimGunAtCoord($cam_vec_x(12@,8i), 1588.92, -1643.827, 13.2958, 8000)
goto @IMPND_16296

:IMPND_16269
Task.AimGunAtCoord($cam_vec_x(12@,8i), 1551.462, -1625.453, 12.3905, 8000)

:IMPND_16296
goto @IMPND_16709

:IMPND_16303
if 
  $x > 1565.101
goto_if_false @IMPND_16520
if 
  not Char.LocateAnyMeans3D($cam_vec_x(12@,8i), 1593.21, -1702.36, 4.897, 5.0, 5.0, 5.0, False)
goto_if_false @IMPND_16453
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16446
Char.ClearTasks($cam_vec_x(12@,8i))
Task.GoStraightToCoord($cam_vec_x(12@,8i), 1593.21, -1702.36, 4.897, MoveState.Run, -2)

:IMPND_16446
goto @IMPND_16513

:IMPND_16453
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16513
Task.AimGunAtCoord($cam_vec_x(12@,8i), 1589.466, -1699.136, 5.6059, 8000)

:IMPND_16513
goto @IMPND_16709

:IMPND_16520
if 
  not Char.LocateAnyMeans3D($cam_vec_x(12@,8i), 1542.683, -1706.747, 4.8984, 5.0, 5.0, 5.0, False)
goto_if_false @IMPND_16649
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16642
Char.ClearTasks($cam_vec_x(12@,8i))
Task.GoStraightToCoord($cam_vec_x(12@,8i), 1542.683, -1706.747, 4.8984, MoveState.Run, -2)

:IMPND_16642
goto @IMPND_16709

:IMPND_16649
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16709
Task.AimGunAtCoord($cam_vec_x(12@,8i), 1550.058, -1696.444, 6.4232, 8000)

:IMPND_16709
if 
  $impound_area == 2
goto_if_false @IMPND_18611
$x, $y, $z = Char.GetCoordinates($cam_vec_x(12@,8i))
if 
  $z > 1.6789
goto_if_false @IMPND_17712
if 
  -1667.059 > $x
goto_if_false @IMPND_17066
if 
  not Char.LocateAnyMeans3D($cam_vec_x(12@,8i), -1697.185, 684.1302, 23.01, 5.0, 5.0, 5.0, False)
goto_if_false @IMPND_16916
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16909
Char.ClearTasks($cam_vec_x(12@,8i))
Task.GoStraightToCoord($cam_vec_x(12@,8i), -1697.185, 684.1302, 23.01, MoveState.Run, -2)

:IMPND_16909
goto @IMPND_17059

:IMPND_16916
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17059
16@ = Math.RandomIntInRange(0, 2)
if 
  16@ == 0
goto_if_false @IMPND_17021
16@ = Math.RandomIntInRange(5000, 8000)
Task.AimGunAtCoord($cam_vec_x(12@,8i), -1706.253, 683.8111, 25.3122, 16@)
goto @IMPND_17059

:IMPND_17021
16@ = Math.RandomIntInRange(5000, 8000)
Task.AimGunAtCoord($cam_vec_x(12@,8i), -1685.691, 683.6411, 20.7149, 16@)

:IMPND_17059
goto @IMPND_17705

:IMPND_17066
if 
  $x > -1604.599
goto_if_false @IMPND_17366
if 
  not Char.LocateAnyMeans3D($cam_vec_x(12@,8i), -1576.953, 661.7159, 6.1901, 5.0, 5.0, 5.0, False)
goto_if_false @IMPND_17216
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17209
Char.ClearTasks($cam_vec_x(12@,8i))
Task.GoStraightToCoord($cam_vec_x(12@,8i), -1576.953, 661.7159, 6.1901, MoveState.Run, -2)

:IMPND_17209
goto @IMPND_17359

:IMPND_17216
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17359
16@ = Math.RandomIntInRange(0, 2)
if 
  16@ == 0
goto_if_false @IMPND_17321
16@ = Math.RandomIntInRange(5000, 8000)
Task.AimGunAtCoord($cam_vec_x(12@,8i), -1584.874, 663.152, 7.414, 16@)
goto @IMPND_17359

:IMPND_17321
16@ = Math.RandomIntInRange(5000, 8000)
Task.AimGunAtCoord($cam_vec_x(12@,8i), -1566.207, 664.1497, 8.621, 16@)

:IMPND_17359
goto @IMPND_17705

:IMPND_17366
if 
  not Char.LocateAnyMeans3D($cam_vec_x(12@,8i), -1629.609, 683.5222, 6.1901, 5.0, 5.0, 5.0, False)
goto_if_false @IMPND_17495
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17488
Char.ClearTasks($cam_vec_x(12@,8i))
Task.GoStraightToCoord($cam_vec_x(12@,8i), -1629.609, 683.5222, 6.1901, MoveState.Run, -2)

:IMPND_17488
goto @IMPND_17705

:IMPND_17495
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17705
16@ = Math.RandomIntInRange(0, 3)
if 
  16@ == 0
goto_if_false @IMPND_17593
16@ = Math.RandomIntInRange(5000, 8000)
Task.AimGunAtCoord($cam_vec_x(12@,8i), -1629.298, 694.5806, 6.6079, 16@)

:IMPND_17593
if 
  16@ == 1
goto_if_false @IMPND_17649
16@ = Math.RandomIntInRange(5000, 8000)
Task.AimGunAtCoord($cam_vec_x(12@,8i), -1617.505, 677.6022, 7.9235, 16@)

:IMPND_17649
if 
  16@ == 2
goto_if_false @IMPND_17705
16@ = Math.RandomIntInRange(5000, 8000)
Task.AimGunAtCoord($cam_vec_x(12@,8i), -1648.488, 682.1654, 10.8535, 16@)

:IMPND_17705
goto @IMPND_18611

:IMPND_17712
if and
  -1598.681 > $x
  $y > 707.923
goto_if_false @IMPND_18015
if 
  not Char.LocateAnyMeans3D($cam_vec_x(12@,8i), -1618.067, 742.9348, -6.2344, 5.0, 5.0, 5.0, False)
goto_if_false @IMPND_17872
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17865
Char.ClearTasks($cam_vec_x(12@,8i))
Task.GoStraightToCoord($cam_vec_x(12@,8i), -1618.067, 742.9348, -6.2344, MoveState.Run, -2)

:IMPND_17865
goto @IMPND_18015

:IMPND_17872
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18015
16@ = Math.RandomIntInRange(0, 2)
if 
  16@ == 0
goto_if_false @IMPND_17977
16@ = Math.RandomIntInRange(5000, 8000)
Task.AimGunAtCoord($cam_vec_x(12@,8i), -1627.667, 738.323, -5.0193, 16@)
goto @IMPND_18015

:IMPND_17977
16@ = Math.RandomIntInRange(5000, 8000)
Task.AimGunAtCoord($cam_vec_x(12@,8i), -1601.436, 739.188, -4.696, 16@)

:IMPND_18015
if and
  $x > -1598.681
  $y > 707.923
goto_if_false @IMPND_18318
if 
  not Char.LocateAnyMeans3D($cam_vec_x(12@,8i), -1581.888, 738.4942, -6.2422, 5.0, 5.0, 5.0, False)
goto_if_false @IMPND_18175
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18168
Char.ClearTasks($cam_vec_x(12@,8i))
Task.GoStraightToCoord($cam_vec_x(12@,8i), -1581.888, 738.4942, -6.2422, MoveState.Run, -2)

:IMPND_18168
goto @IMPND_18318

:IMPND_18175
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18318
16@ = Math.RandomIntInRange(0, 2)
if 
  16@ == 0
goto_if_false @IMPND_18280
16@ = Math.RandomIntInRange(5000, 8000)
Task.AimGunAtCoord($cam_vec_x(12@,8i), -1594.033, 741.5932, -4.9811, 16@)
goto @IMPND_18318

:IMPND_18280
16@ = Math.RandomIntInRange(5000, 8000)
Task.AimGunAtCoord($cam_vec_x(12@,8i), -1583.25, 724.5026, -5.0768, 16@)

:IMPND_18318
if 
  707.923 > $y
goto_if_false @IMPND_18611
if 
  not Char.LocateAnyMeans3D($cam_vec_x(12@,8i), -1591.093, 688.555, -6.2422, 5.0, 5.0, 5.0, False)
goto_if_false @IMPND_18468
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18461
Char.ClearTasks($cam_vec_x(12@,8i))
Task.GoStraightToCoord($cam_vec_x(12@,8i), -1591.093, 688.555, -6.2422, MoveState.Run, -2)

:IMPND_18461
goto @IMPND_18611

:IMPND_18468
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18611
16@ = Math.RandomIntInRange(0, 2)
if 
  16@ == 0
goto_if_false @IMPND_18573
16@ = Math.RandomIntInRange(5000, 8000)
Task.AimGunAtCoord($cam_vec_x(12@,8i), -1602.085, 687.7857, -4.6028, 16@)
goto @IMPND_18611

:IMPND_18573
16@ = Math.RandomIntInRange(5000, 8000)
Task.AimGunAtCoord($cam_vec_x(12@,8i), -1582.961, 717.1259, -4.2141, 16@)

:IMPND_18611
if 
  $impound_area == 3
goto_if_false @IMPND_19862
$x, $y, $z = Char.GetCoordinates($cam_vec_x(12@,8i))
if 
  $z > 8.9783
goto_if_false @IMPND_19239
if 
  2484.598 > $y
goto_if_false @IMPND_18942
if 
  not Char.LocateAnyMeans3D($cam_vec_x(12@,8i), 2241.879, 2453.603, 9.82, 5.0, 5.0, 5.0, False)
goto_if_false @IMPND_18818
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18811
Char.ClearTasks($cam_vec_x(12@,8i))
Task.GoStraightToCoord($cam_vec_x(12@,8i), 2241.879, 2453.603, 9.82, MoveState.Run, -2)

:IMPND_18811
goto @IMPND_18935

:IMPND_18818
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18935
16@ = Math.RandomIntInRange(5000, 8000)
if 
  13@ == 6
goto_if_false @IMPND_18914
Task.AimGunAtCoord($cam_vec_x(12@,8i), 2242.116, 2478.98, 10.8203, 8000)
goto @IMPND_18935

:IMPND_18914
Task.AimGunAtCoord($cam_vec_x(12@,8i), $10733, $door_rotation, $10735, 8000)

:IMPND_18935
goto @IMPND_19232

:IMPND_18942
if 
  not Char.LocateAnyMeans3D($cam_vec_x(12@,8i), 2243.24, 2495.099, 9.8203, 5.0, 5.0, 5.0, False)
goto_if_false @IMPND_19071
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19064
Char.ClearTasks($cam_vec_x(12@,8i))
Task.GoStraightToCoord($cam_vec_x(12@,8i), 2243.24, 2495.099, 9.8203, MoveState.Run, -2)

:IMPND_19064
goto @IMPND_19232

:IMPND_19071
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19232
if 
  13@ == 6
goto_if_false @IMPND_19211
if 
  $10735 > 5.0
goto_if_false @IMPND_19177
Task.AimGunAtCoord($cam_vec_x(12@,8i), 2242.453, 2487.06, 11.7533, 8000)
goto @IMPND_19204

:IMPND_19177
Task.AimGunAtCoord($cam_vec_x(12@,8i), 2268.113, 2498.456, 7.7616, 8000)

:IMPND_19204
goto @IMPND_19232

:IMPND_19211
Task.AimGunAtCoord($cam_vec_x(12@,8i), $10733, $door_rotation, $10735, 8000)

:IMPND_19232
goto @IMPND_19862

:IMPND_19239
if 
  $z > 2.1249
goto_if_false @IMPND_19673
if 
  $y > 2458.327
goto_if_false @IMPND_19477
if 
  not Char.LocateAnyMeans3D($cam_vec_x(12@,8i), 2306.376, 2495.541, 2.266, 5.0, 5.0, 5.0, False)
goto_if_false @IMPND_19410
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19403
Char.ClearTasks($cam_vec_x(12@,8i))
Task.GoStraightToCoord($cam_vec_x(12@,8i), 2306.376, 2495.541, 2.266, MoveState.Run, -2)

:IMPND_19403
goto @IMPND_19470

:IMPND_19410
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19470
Task.AimGunAtCoord($cam_vec_x(12@,8i), 2295.177, 2471.76, 3.955, 8000)

:IMPND_19470
goto @IMPND_19666

:IMPND_19477
if 
  not Char.LocateAnyMeans3D($cam_vec_x(12@,8i), 2316.06, 2446.912, 2.266, 5.0, 5.0, 5.0, False)
goto_if_false @IMPND_19606
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19599
Char.ClearTasks($cam_vec_x(12@,8i))
Task.GoStraightToCoord($cam_vec_x(12@,8i), 2316.06, 2446.912, 2.266, MoveState.Run, -2)

:IMPND_19599
goto @IMPND_19666

:IMPND_19606
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19666
Task.AimGunAtCoord($cam_vec_x(12@,8i), 2295.216, 2451.088, 4.3783, 8000)

:IMPND_19666
goto @IMPND_19862

:IMPND_19673
if 
  not Char.LocateAnyMeans3D($cam_vec_x(12@,8i), 2238.753, 2457.831, -8.4531, 5.0, 5.0, 5.0, False)
goto_if_false @IMPND_19802
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19795
Char.ClearTasks($cam_vec_x(12@,8i))
Task.GoStraightToCoord($cam_vec_x(12@,8i), 2238.753, 2457.831, -8.4531, MoveState.Run, -2)

:IMPND_19795
goto @IMPND_19862

:IMPND_19802
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1639)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19862
Task.AimGunAtCoord($cam_vec_x(12@,8i), 2251.799, 2465.236, -7.2173, 8000)

:IMPND_19862
return 
if 
  $impound_area == 3
goto_if_false @IMPND_19927
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1506)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19927
Task.KillCharOnFoot($cam_vec_x(12@,8i), $scplayer)

:IMPND_19927
return 

:IMPND_19929
if 
  $impound_area == 3
goto_if_false @IMPND_20421
$x, $y, $z = Char.GetCoordinates($cam_vec_x(12@,8i))
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_20421
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1560)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_20421
if 
  $z > 8.9783
goto_if_false @IMPND_20421
if 
  2481.796 > $y
goto_if_false @IMPND_20188
if 
  Char.IsInArea2D($cam_vec_x(12@,8i), 2237.854, 2448.608, 2239.385, 2450.014, False)
goto_if_false @IMPND_20188
if 
  not Char.IsInArea2D($scplayer, 2239.573, 2448.616, 2242.363, 2449.851, False)
goto_if_false @IMPND_20188
Task.GoStraightToCoord($cam_vec_x(12@,8i), 2240.034, 2449.418, 9.8203, MoveState.Walk, -2)
23@ = 1

:IMPND_20188
if 
  $y >= 2481.796
goto_if_false @IMPND_20421
if 
  Char.IsInArea2D($cam_vec_x(12@,8i), 2253.515, 2485.275, 2248.9, 2492.416, False)
goto_if_false @IMPND_20421
if and
  not Char.IsInArea2D($scplayer, 2253.515, 2485.275, 2248.9, 2492.416, False)
  not Char.LocateAnyMeansChar3D($cam_vec_x(12@,8i), $scplayer, 1.5, 1.5, 2.0, False)
goto_if_false @IMPND_20421
$10705 = Sequence.Open()
Task.GoStraightToCoord(-1, 2250.155, 2486.405, 9.8203, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, 2247.823, 2487.056, 9.8203, MoveState.Walk, -2)
Task.GoStraightToCoord(-1, 2246.22, 2488.32, 9.8203, MoveState.Walk, -2)
Sequence.Close($10705)
Char.PerformSequence($cam_vec_x(12@,8i), $10705)
Sequence.Clear($10705)
23@ = 1

:IMPND_20421
if 
  $impound_area == 1
goto_if_false @IMPND_20891
$x, $y, $z = Char.GetCoordinates($cam_vec_x(12@,8i))
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1491)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_20891
14@ = Char.GetScriptTaskStatus($cam_vec_x(12@,8i), 1560)
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_20891
if 
  $z > 12.0
goto_if_false @IMPND_20891
if 
  1569.0 > $x
goto_if_false @IMPND_20687
if 
  Char.IsInArea2D($cam_vec_x(12@,8i), 1543.749, -1632.588, 1544.821, -1631.425, False)
goto_if_false @IMPND_20680
if 
  not Char.IsInArea2D($scplayer, 1544.966, -1632.88, 1546.495, -1630.646, False)
goto_if_false @IMPND_20680
Task.GoStraightToCoord($cam_vec_x(12@,8i), 1545.881, -1631.918, 12.3905, MoveState.Walk, -2)
23@ = 1

:IMPND_20680
goto @IMPND_20891

:IMPND_20687
if 
  Char.IsInArea2D($cam_vec_x(12@,8i), 1581.953, -1637.569, 1577.376, -1632.992, False)
goto_if_false @IMPND_20891
if and
  not Char.IsInArea2D($scplayer, 1581.953, -1637.569, 1577.376, -1632.992, False)
  not Char.LocateAnyMeansChar3D($cam_vec_x(12@,8i), $scplayer, 1.5, 1.5, 2.0, False)
goto_if_false @IMPND_20891
Path.FlushRoute
Path.ExtendRoute(1578.517, -1636.495, 12.5545)
Path.ExtendRoute(1576.366, -1636.395, 12.5539)
Path.ExtendRoute(1573.981, -1632.764, 12.3905)
$10705 = Sequence.Open()
Task.FollowPointRoute(-1, 4, RouteMode.Once)
Sequence.Close($10705)
Char.PerformSequence($cam_vec_x(12@,8i), $10705)
Sequence.Clear($10705)
23@ = 1

:IMPND_20891
return 
if 
  $impound_area == 3
goto_if_false @IMPND_21076
if 
  12@ == 0
goto_if_false @IMPND_21076
if 
  not Char.IsInArea2D($cam_vec_x(12@,8i), 2237.854, 2448.608, 2239.385, 2450.014, False)
goto_if_false @IMPND_21076
if 
  not Char.IsInArea2D($cam_vec_x(12@,8i), 2239.573, 2448.616, 2242.363, 2449.851, False)
goto_if_false @IMPND_21048
Task.GoStraightToCoord($cam_vec_x(12@,8i), 2240.034, 2449.418, 9.8203, MoveState.Walk, -2)
goto @IMPND_21076

:IMPND_21048
Task.GoStraightToCoord($cam_vec_x(12@,8i), 2238.569, 2449.417, 10.0372, MoveState.Walk, -2)

:IMPND_21076
return 

:IMPND_21078
$10703 = 0
if 
  $impound_area == 3
goto_if_false @IMPND_21231
if and
  $player_z > 3.9517
  14.0 > $player_z
goto_if_false @IMPND_21203
if and
  $player_x > 2238.0
  2299.0 > $player_x
goto_if_false @IMPND_21203
if and
  $player_y > 2430.916
  2502.681 > $player_y
goto_if_false @IMPND_21203
$10703 = 1

:IMPND_21203
if 
  3.9517 >= $player_z
goto_if_false @IMPND_21231
$10703 = 1

:IMPND_21231
if 
  $impound_area == 2
goto_if_false @IMPND_21449
if and
  $player_x > -1645.533
  -1572.785 > $player_x
goto_if_false @IMPND_21349
if and
  $player_y > 646.8482
  761.5287 > $player_y
goto_if_false @IMPND_21349
if and
  11.4577 > $player_z
  $player_z > -7.3486
goto_if_false @IMPND_21349
$10703 = 1

:IMPND_21349
if and
  $player_x > -1701.013
  -1640.991 > $player_x
goto_if_false @IMPND_21449
if and
  $player_y > 674.5198
  697.4974 > $player_y
goto_if_false @IMPND_21449
if and
  $player_z > 6.096
  26.5941 > $player_z
goto_if_false @IMPND_21449
$10703 = 1

:IMPND_21449
if 
  $impound_area == 1
goto_if_false @IMPND_21733
if 
  11.7746 > $player_z
goto_if_false @IMPND_21564
if and
  $player_x > 1524.017
  1612.404 > $player_x
goto_if_false @IMPND_21557
if and
  -1633.573 > $player_y
  $player_y > -1722.036
goto_if_false @IMPND_21557
$10703 = 1

:IMPND_21557
goto @IMPND_21633

:IMPND_21564
if and
  $player_x > 1544.427
  1607.588 > $player_x
goto_if_false @IMPND_21633
if and
  -1603.015 > $player_y
  $player_y > -1637.697
goto_if_false @IMPND_21633
$10703 = 1

:IMPND_21633
if and
  $player_x > 1581.407
  1605.203 > $player_x
goto_if_false @IMPND_21733
if and
  $player_y > -1666.734
  -1637.67 > $player_y
goto_if_false @IMPND_21733
if and
  $player_z > 4.8451
  13.6917 > $player_z
goto_if_false @IMPND_21733
$10703 = 1

:IMPND_21733
return 

:IMPND_21735
if or
  not Char.IsInAnyPoliceVehicle($scplayer)
  $10539(12@,8i) == 1
goto_if_false @IMPND_22011
if 
  Char.HasSpottedChar($cam_vec_x(12@,8i), $scplayer)
goto_if_false @IMPND_22011
$x, $y, $z = Char.GetCoordinates($cam_vec_x(12@,8i))
28@ = Char.GetHeading($cam_vec_x(12@,8i))
set_lvar_float_to_var_float 25@ = $player_x
sub_float_var_from_float_lvar 25@ -= $x
set_lvar_float_to_var_float 26@ = $player_y
sub_float_var_from_float_lvar 26@ -= $y
27@ = Math.GetHeadingFromVector2D(25@, 26@)
sub_float_lvar_from_float_lvar 28@ -= 27@
if 
  -180.0 > 28@
goto_if_false @IMPND_21897
28@ += 360.0

:IMPND_21897
28@ = Math.Abs()
if 
  5@ == 0
goto_if_false @IMPND_21969
if 
  90.0 > 28@
goto_if_false @IMPND_21962
$10733, $door_rotation, $10735 = Char.GetCoordinates($scplayer)
$10704 = 1

:IMPND_21962
goto @IMPND_22011

:IMPND_21969
if 
  120.0 > 28@
goto_if_false @IMPND_22011
$10733, $door_rotation, $10735 = Char.GetCoordinates($scplayer)
$10704 = 1

:IMPND_22011
return 

:IMPND_22013
$10719 = 0
$10703 = 0
$10547 = 0
$10539[0] = 0
$10539[1] = 0
$10539[2] = 0
$10539[3] = 0
$10539[4] = 0
$10539[5] = 0
$10539[6] = 0
$10539[7] = 0
0@ = 0
1@ = 0
Audio.ClearMissionAudio(MissionAudioSlot.Slot4)
Streaming.MarkModelAsNoLongerNeeded($cop_h)
Streaming.MarkModelAsNoLongerNeeded($10701)
Streaming.MarkModelAsNoLongerNeeded(346)
Streaming.MarkModelAsNoLongerNeeded(#POLICE_BARRIER)
Streaming.MarkModelAsNoLongerNeeded(#SFCOPDR)
Streaming.MarkModelAsNoLongerNeeded(#KMB_SHUTTER)
DecisionMaker.Remove(2@)
Object.Delete(9@)
Object.Delete(10@)
Object.Delete(6@)
Object.Delete(7@)
16@ = 0

:IMPND_22170
if 
  8 > 16@
goto_if_false @IMPND_22253
if 
  Char.DoesExist($cam_vec_x(16@,8i))
goto_if_false @IMPND_22217
Char.Delete($cam_vec_x(16@,8i))

:IMPND_22217
$10706(16@,8i) = 0
$crane2_sound_flag(16@,8i) = 0
16@ += 1
goto @IMPND_22170

:IMPND_22253
16@ = 0

:IMPND_22260
if 
  4 > 16@
goto_if_false @IMPND_22321
if 
  not Car.IsDead($imp_sequence(16@,4i))
goto_if_false @IMPND_22307
Car.MarkAsNoLongerNeeded($imp_sequence(16@,4i))

:IMPND_22307
16@ += 1
goto @IMPND_22260

:IMPND_22321
Char.MarkAsNoLongerNeeded(24@)
$10720 = 0
$10721 = 0
$10722 = 0
$10723 = 0
$dock_crane_travel_vec_y = 0
terminate_this_script 
return 
terminate_this_script 

//-------------External script 72 (VALET)---------------

:VALET
script_name 'VALET'
8@ = 0
5@ = 1
$can_script_be_cleaned = 1
$valet_scene_running = 0
$valet_can_be_created[0] = 1
$valet_can_be_created[1] = 1
$valet_can_be_created[2] = 1
4@ = 0
if 
  8@ == 99
goto_if_false @VALET_400
$valet(6@,3i) = Char.Create(PedType.CivMale, 189, $a_ped(6@,3f), $a_char(6@,3f), $force_a_one_off_car(6@,3f))
$door_height = Char.Create(PedType.CivMale, 189, $a_ped(6@,3f), $a_char(6@,3f), $force_a_one_off_car(6@,3f))
$valet_pickup_car = Car.Create(415, 0.0, 0.0, 0.0)
$valet_car[1] = Car.Create(415, 0.0, 0.0, 0.0)
$drop_off_car = Car.Create(415, 0.0, 0.0, 0.0)
$valet_spawn_h2 = Car.Create(415, 0.0, 0.0, 0.0)
$sc3_missioncar = Car.Create(415, 0.0, 0.0, 0.0)
$valet_mission_flag = Car.Create(415, 0.0, 0.0, 0.0)
$a_pickup_car = Car.Create(415, 0.0, 0.0, 0.0)
19@ = Blip.AddForCar($valet_pickup_car)
20@ = Blip.AddForCoord(21@, 22@, 23@)
7@ = DecisionMakerChar.Copy(65542)
20@ = Blip.AddForCoord(21@, 22@, 23@)
20@ = Blip.AddForCoord(21@, 22@, 23@)
20@ = Blip.AddForCoord(21@, 22@, 23@)
20@ = Blip.AddForCoord(21@, 22@, 23@)

:VALET_400
if 
  not Char.IsDead($valet[0])
goto_if_false @VALET_421
Char.Delete($valet[0])

:VALET_421
set_var_int_to_constant $valet_task[0] = 1
$valet_can_be_created[0] = 1
if 
  not Char.IsDead($valet[1])
goto_if_false @VALET_456
Char.Delete($valet[1])

:VALET_456
set_var_int_to_constant $valet_task[1] = 1
$valet_can_be_created[1] = 1
if 
  not Char.IsDead($valet[2])
goto_if_false @VALET_491
Char.Delete($valet[2])

:VALET_491
set_var_int_to_constant $valet_task[2] = 1
$valet_can_be_created[2] = 1
$a_ped[0] = 330.4229
$a_ped[1] = 328.9663
$a_ped[2] = 326.4376
$a_char[0] = -1510.783
$a_char[1] = -1512.467
$a_char[2] = -1515.406
$force_a_one_off_car[0] = 35.0247
$force_a_one_off_car[1] = 35.0247
$force_a_one_off_car[2] = 35.0313
$val_h[0] = 222.0
$val_h[1] = 222.0
$val_h[2] = 222.0
$10758[0] = -1761.029
$10758[1] = -1759.914
$10758[2] = -1749.713
$10761[0] = 959.5504
$10761[1] = 960.2669
$10761[2] = 960.1956
$10764[0] = 23.8828
$10764[1] = 23.8828
$10764[2] = 23.8906
$10767[0] = 204.3268
$10767[1] = 199.167
$10767[2] = 142.3291
$10770[0] = 2029.758
$10770[1] = 2027.666
$10770[2] = 2026.394
$10773[0] = 1905.943
$10782[1] = 336.9336
$valet_vg_z[1] = 323.919
$10790[1] = -1531.027
$10794[1] = -1504.174
$10782[2] = -1768.295
$valet_vg_z[2] = -1729.094
$10790[2] = 958.9591
$10794[2] = 942.184
$10782[3] = 2050.881
$valet_vg_z[3] = 2016.906
$10790[3] = 1958.541
$10794[3] = 1871.065
$10798[1] = 336.0477
$10806[1] = -1452.225
$10814[1] = 31.9445
$10802[1] = 271.6679
$10810[1] = -1550.242
$10818[1] = 23.1681
$10798[2] = -1760.178
$10806[2] = 972.2405
$10814[2] = 16.1633
$10802[2] = -1679.605
$10810[2] = 1064.293
$10818[2] = 24.8629
$10798[3] = 1968.502
$10806[3] = 1755.079
$10814[3] = 11.4898
$10802[3] = 1917.811
$10810[3] = 1788.146
$10818[3] = 17.3118
$10834[1] = 363.3463
$10838[1] = -1522.373
$10842[1] = 393.1729
$10846[1] = -1479.321
$10850[1] = 125.0
$10854[1] = 324.8593
$10858[1] = -1591.327
$10862[1] = 324.8593
$10866[1] = -1591.327
$10870[1] = 338.0
$10854[2] = -1743.524
$10858[2] = 930.9304
$10862[2] = -1780.081
$10866[2] = 908.4018
$10870[2] = 270.0
$10834[2] = -1737.715
$10838[2] = 943.7812
$10842[2] = -1704.216
$10846[2] = 911.4586
$10850[2] = 45.0
$10834[3] = 2067.529
$10838[3] = 1957.289
$10842[3] = 2097.263
$10846[3] = 1976.0
$10850[3] = 120.0
$10854[3] = 2051.536
$10858[3] = 1933.685
$10862[3] = 2062.818
$10866[3] = 1905.085
$10870[3] = 7.0
$10874[1] = 332.8306
$10878[1] = -1516.251
$10882[1] = 34.8606
$10874[2] = -1754.514
$10878[2] = 953.5991
$10882[2] = 23.75
$10874[3] = 2035.729
$10878[3] = 1912.09
$10882[3] = 11.1751
$10822[0] = -1748.376
$10826[0] = 985.3066
$10830[0] = 17.9009
$10822[1] = 330.7534
$10826[1] = -1474.608
$10830[1] = 24.9126
$10822[2] = -1738.28
$10826[2] = 985.5498
$10830[2] = 16.6718
$10822[3] = 2061.337
$10826[3] = 1808.956
$10830[3] = 9.6719
$10886[1] = 403.2297
$10890[1] = -1475.298
$10894[1] = 30.0032
$10898[1] = 128.9467
$10902[1] = 341.1339
$10906[1] = -1556.116
$10910[1] = 31.9903
$10914[1] = 328.7578
$10886[2] = -1717.204
$10890[2] = 962.7901
$10894[2] = 23.7474
$10898[2] = 179.9692
$10902[2] = -1791.269
$10906[2] = 886.3627
$10910[2] = 23.75
$10914[2] = 359.2426
$10886[3] = 2073.563
$10890[3] = 1879.736
$10894[3] = 10.4288
$10898[3] = 45.5873
$10902[3] = 2084.156
$10906[3] = 1965.573
$10910[3] = 9.9974
$10914[3] = 117.4401
DecisionMaker.Remove(7@)
7@ = DecisionMakerChar.Copy(65542)
DecisionMakerChar.AddEventResponse(7@, 9, 200, 0.0, 100.0, 100.0, 100.0, True, True)
DecisionMakerChar.AddEventResponse(7@, 15, 415, 0.0, 20.0, 20.0, 20.0, False, True)
DecisionMakerChar.AddEventResponse(7@, 15, 200, 0.0, 80.0, 80.0, 80.0, True, True)
$valet_scene_running = 1

:VALET_1959
wait 0
if 
  Player.IsPlaying($player1)
goto_if_false @VALET_2291
if 
  $force_valet_cleanup == 1
goto_if_false @VALET_2004
gosub @VALET_16812

:VALET_2004
if 
  $last_player_x <> 1
goto_if_false @VALET_2284
if 
  not Char.IsDead($scplayer)
goto_if_false @VALET_2284
if 
  5@ == 1
goto_if_false @VALET_2095
if 
  Player.IsWearing($player1, 17, "VALET")
goto_if_false @VALET_2088
5@ = 0

:VALET_2088
goto @VALET_2127

:VALET_2095
if 
  not Player.IsWearing($player1, 17, "VALET")
goto_if_false @VALET_2127
5@ = 1

:VALET_2127
gosub @VALET_2371
if 
  $valet_scene_running == 1
goto_if_false @VALET_2284
gosub @VALET_3854
gosub @VALET_7821
gosub @VALET_12979
gosub @VALET_16029
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 8@
goto_if_false @VALET_2215
set_lvar_int_to_lvar_int 8@ = TIMERA
8@ += 2300

:VALET_2215
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 9@
goto_if_false @VALET_2249
set_lvar_int_to_lvar_int 9@ = TIMERA
9@ += 100

:VALET_2249
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 10@
goto_if_false @VALET_2284
set_lvar_int_to_lvar_int 10@ = TIMERA
10@ += 900

:VALET_2284
goto @VALET_2364

:VALET_2291
if 
  $valet_scene_running == 1
goto_if_false @VALET_2364
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_2357
$player_on_valet_mission = 0
$onmission = 0
Text.PrintBig('M_FAIL', 5000, TextStyle.Middle)

:VALET_2357
gosub @VALET_16812

:VALET_2364
goto @VALET_1959

:VALET_2371
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 16@
goto_if_false @VALET_3353
set_lvar_int_to_lvar_int 16@ = TIMERA
16@ += 1000
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
$val_Area = 0
if 
  Char.IsInArea2D($scplayer, -1893.419, 1119.227, -1617.915, 828.85, False)
goto_if_false @VALET_2472
$val_Area = 2

:VALET_2472
if 
  $val_Area == 0
goto_if_false @VALET_3118
$valet_spawn_z2 = Streaming.GetAreaVisible()
if 
  $valet_spawn_z2 == 0
goto_if_false @VALET_2894
if 
  $10921 == 0
goto_if_false @VALET_2887
if 
  $10922 == 0
goto_if_false @VALET_2670
if 
  $valet_scene_running == 1
goto_if_false @VALET_2663
if 
  $force_valet_on_mission <> 1
goto_if_false @VALET_2663
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_2649
$player_on_valet_mission = 0
$onmission = 0
Text.Print('VAL_A9', 4000, 1)
Text.PrintBig('VAL_A6', 4000, TextStyle.Middle)

:VALET_2649
gosub @VALET_16812
$valet_scene_running = 0

:VALET_2663
goto @VALET_2887

:VALET_2670
$10921 = 1
if 
  not Char.IsDead($valet[0])
goto_if_false @VALET_2747
Char.FreezePosition($valet[0], True)
if 
  Char.IsInAnyCar($valet[0])
goto_if_false @VALET_2747
$car = Char.GetCarIsUsing($valet[0])
if 
  not Car.IsDead($car)
goto_if_false @VALET_2747
Car.FreezePosition($car, True)

:VALET_2747
if 
  not Char.IsDead($valet[1])
goto_if_false @VALET_2817
Char.FreezePosition($valet[1], True)
if 
  Char.IsInAnyCar($valet[1])
goto_if_false @VALET_2817
$car = Char.GetCarIsUsing($valet[1])
if 
  not Car.IsDead($car)
goto_if_false @VALET_2817
Car.FreezePosition($car, True)

:VALET_2817
if 
  not Char.IsDead($valet[2])
goto_if_false @VALET_2887
Char.FreezePosition($valet[2], True)
if 
  Char.IsInAnyCar($valet[2])
goto_if_false @VALET_2887
$car = Char.GetCarIsUsing($valet[2])
if 
  not Car.IsDead($car)
goto_if_false @VALET_2887
Car.FreezePosition($car, True)

:VALET_2887
goto @VALET_3111

:VALET_2894
$10921 = 1
if 
  not Char.IsDead($valet[0])
goto_if_false @VALET_2971
Char.FreezePosition($valet[0], True)
if 
  Char.IsInAnyCar($valet[0])
goto_if_false @VALET_2971
$car = Char.GetCarIsUsing($valet[0])
if 
  not Car.IsDead($car)
goto_if_false @VALET_2971
Car.FreezePosition($car, True)

:VALET_2971
if 
  not Char.IsDead($valet[1])
goto_if_false @VALET_3041
Char.FreezePosition($valet[1], True)
if 
  Char.IsInAnyCar($valet[1])
goto_if_false @VALET_3041
$car = Char.GetCarIsUsing($valet[1])
if 
  not Car.IsDead($car)
goto_if_false @VALET_3041
Car.FreezePosition($car, True)

:VALET_3041
if 
  not Char.IsDead($valet[2])
goto_if_false @VALET_3111
Char.FreezePosition($valet[2], True)
if 
  Char.IsInAnyCar($valet[2])
goto_if_false @VALET_3111
$car = Char.GetCarIsUsing($valet[2])
if 
  not Car.IsDead($car)
goto_if_false @VALET_3111
Car.FreezePosition($car, True)

:VALET_3111
goto @VALET_3353

:VALET_3118
if 
  $10921 == 1
goto_if_false @VALET_3353
$10921 = 0
if 
  not Char.IsDead($valet[0])
goto_if_false @VALET_3213
Char.FreezePosition($valet[0], False)
if 
  Char.IsInAnyCar($valet[0])
goto_if_false @VALET_3213
$car = Char.GetCarIsUsing($valet[0])
if 
  not Car.IsDead($car)
goto_if_false @VALET_3213
Car.FreezePosition($car, False)

:VALET_3213
if 
  not Char.IsDead($valet[1])
goto_if_false @VALET_3283
Char.FreezePosition($valet[1], False)
if 
  Char.IsInAnyCar($valet[1])
goto_if_false @VALET_3283
$car = Char.GetCarIsUsing($valet[1])
if 
  not Car.IsDead($car)
goto_if_false @VALET_3283
Car.FreezePosition($car, False)

:VALET_3283
if 
  not Char.IsDead($valet[2])
goto_if_false @VALET_3353
Char.FreezePosition($valet[2], False)
if 
  Char.IsInAnyCar($valet[2])
goto_if_false @VALET_3353
$car = Char.GetCarIsUsing($valet[2])
if 
  not Car.IsDead($car)
goto_if_false @VALET_3353
Car.FreezePosition($car, False)

:VALET_3353
if 
  $10740 == 1
goto_if_false @VALET_3597
if 
  $val_Area == 1
goto_if_false @VALET_3444
if 
  not Char.LocateAnyMeans3D($scplayer, 328.1585, -1512.888, 35.0247, 10.0, 10.0, 10.0, False)
goto_if_false @VALET_3444
$10740 = 0

:VALET_3444
if 
  $val_Area == 2
goto_if_false @VALET_3517
if 
  not Char.LocateAnyMeans3D($scplayer, -1753.936, 961.8587, 23.8906, 10.0, 10.0, 10.0, False)
goto_if_false @VALET_3517
$10740 = 0

:VALET_3517
if 
  $val_Area == 3
goto_if_false @VALET_3590
if 
  not Char.LocateAnyMeans3D($scplayer, 2021.337, 1918.236, 11.3438, 10.0, 10.0, 10.0, False)
goto_if_false @VALET_3590
$10740 = 0

:VALET_3590
goto @VALET_3852

:VALET_3597
if 
  $onmission <> 1
goto_if_false @VALET_3852
if 
  $valet_oddjob_opened == 1
goto_if_false @VALET_3852
if 
  $player_on_valet_mission == 0
goto_if_false @VALET_3852
if 
  not Char.IsDead($scplayer)
goto_if_false @VALET_3852
if 
  $val_Area == 2
goto_if_false @VALET_3852
if 
  Char.LocateOnFoot3D($scplayer, -1753.936, 961.8587, 23.8906, 2.0, 2.0, 2.0, True)
goto_if_false @VALET_3852
if 
  Player.IsWearing($player1, 17, "VALET")
goto_if_false @VALET_3836
if 
  not Player.IsWantedLevelGreater($player1, 0)
goto_if_false @VALET_3813
Text.PrintNow('VAL_A7', 5000, 1)
$player_on_valet_mission = 1
$onmission = 1
goto @VALET_3829

:VALET_3813
Text.PrintNow('VAL_C1', 1000, 1)

:VALET_3829
goto @VALET_3852

:VALET_3836
Text.PrintNow('VAL_90', 1000, 1)

:VALET_3852
return 

:VALET_3854
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_7819
if 
  Player.IsWantedLevelGreater($player1, 1)
goto_if_false @VALET_3894
Game.SwitchEmergencyServices(True)

:VALET_3894
if 
  not Player.IsWearing($player1, 17, "VALET")
goto_if_false @VALET_3958
Text.PrintBig('VAL_A6', 4000, TextStyle.Middle)
Text.Print('VAL_B1', 5000, 1)
$10926 = 8

:VALET_3958
if 
  $valet_spawn_h2 <> 0
goto_if_false @VALET_4102
if 
  not Car.DoesExist($valet_spawn_h2)
goto_if_false @VALET_4047
if 
  $10927 > 0
goto_if_false @VALET_4033
Text.PrintBig('VAL_A6', 4000, TextStyle.Middle)
$10926 = 8

:VALET_4033
$valet_spawn_h2 = 0
goto @VALET_4102

:VALET_4047
if 
  Car.IsDead($valet_spawn_h2)
goto_if_false @VALET_4102
Text.PrintBig('VAL_A6', 4000, TextStyle.Middle)
Text.Print('VAL_B6', 5000, 1)
$10926 = 8

:VALET_4102
if 
  $stored_shop_time == 0
goto_if_false @VALET_4152
if 
  not Car.IsDead($valet_mission_flag)
goto_if_false @VALET_4152
$10741 = Car.GetBlockingCar($valet_mission_flag)
set_var_int_to_var_int $last_player_y = $10741

:VALET_4152
if 
  $10926 == 0
goto_if_false @VALET_4575
if 
  Streaming.HasModelLoaded(189)
goto_if_false @VALET_4570
if 
  Char.IsDead($valet[0])
goto_if_false @VALET_4263
$valet[0] = Char.Create(PedType.CivMale, 189, -1783.804, 968.6431, 23.7343)
Char.SetDecisionMaker($valet[0], 7@)
Char.SetOnlyDamagedByPlayer($valet[0], True)
Char.SetSuffersCriticalHits($valet[0], False)
$valet_task[0] = 2
0@ = 2

:VALET_4263
if 
  Char.IsDead($valet[1])
goto_if_false @VALET_4340
$valet[1] = Char.Create(PedType.CivMale, 189, -1782.65, 965.0251, 23.8906)
Char.SetDecisionMaker($valet[1], 7@)
Char.SetOnlyDamagedByPlayer($valet[1], True)
Char.SetSuffersCriticalHits($valet[1], False)
$valet_task[1] = 2
1@ = 2

:VALET_4340
if 
  Char.IsDead($valet[2])
goto_if_false @VALET_4417
$valet[2] = Char.Create(PedType.CivMale, 189, -1783.731, 965.4009, 23.8961)
Char.SetDecisionMaker($valet[2], 7@)
Char.SetOnlyDamagedByPlayer($valet[2], True)
Char.SetSuffersCriticalHits($valet[2], False)
$valet_task[2] = 2
2@ = 2

:VALET_4417
World.SetPedDensityMultiplier(0.3)
Game.SwitchEmergencyServices(False)
$valet_spawn_h2 = 0
Text.LoadMissionText('VALET1')
Text.ClearPrints
Text.PrintBig('VAL_A7', 3000, TextStyle.Middle)
$total_cars_parked = 0
set_lvar_int_to_lvar_int 17@ = TIMERA
17@ += 4000
$10926 = 1
if 
  not Char.IsDead($valet[0])
goto_if_false @VALET_4517
Char.SetCantBeDraggedOut($valet[0], True)

:VALET_4517
if 
  not Char.IsDead($valet[1])
goto_if_false @VALET_4540
Char.SetCantBeDraggedOut($valet[1], True)

:VALET_4540
if 
  not Char.IsDead($valet[2])
goto_if_false @VALET_4563
Char.SetCantBeDraggedOut($valet[2], True)

:VALET_4563
goto @VALET_4575

:VALET_4570
Streaming.RequestModel(189)

:VALET_4575
if 
  $10926 == 1
goto_if_false @VALET_4642
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 17@
goto_if_false @VALET_4642
$10923 = 3
$10925 = 2
18@ = 1
Text.ClearPrints
$10926 = 2

:VALET_4642
if 
  $10926 == 2
goto_if_false @VALET_4947
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 17@
goto_if_false @VALET_4947
Text.ClearPrints
Text.PrintWithNumberBig('VAL_60', 18@, 4000, TextStyle.Middle)
Text.PrintWith2NumbersNow('VAL_76', $10923, $10925, 4000, TextStyle.Middle)
$10925 *= 60000
Hud.ClearCounter($10925)
Hud.ClearCounter($10923)
//Hud.DisplayTimerWithString($10925, TimerDirection.Down, 'VAL_A8')
Hud.DisplayNthCounterWithString($10923, CounterDisplay.Number, 1, 'VAL_A3')
set_lvar_int_to_lvar_int 17@ = TIMERA
17@ += 5000
$10926 = 4
if 
  $valet_task[0] == 6
goto_if_false @VALET_4831
$valet_task[0] = 1
$valet_mission_dead = 0

:VALET_4831
if 
  $valet_task[1] == 6
goto_if_false @VALET_4863
$valet_task[1] = 1
$1898 = 0

:VALET_4863
if 
  $valet_task[2] == 6
goto_if_false @VALET_4895
$valet_task[2] = 1
$1899 = 0

:VALET_4895
if 
  $drop_off_car <> 0
goto_if_false @VALET_4921
set_var_int_to_var_int $valet_mission_flag = $drop_off_car

:VALET_4921
if 
  $valet_pickup_car <> 0
goto_if_false @VALET_4947
set_var_int_to_var_int $valet_mission_flag = $valet_pickup_car

:VALET_4947
if 
  $10926 == 3
goto_if_false @VALET_4991
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 17@
goto_if_false @VALET_4991
$10926 = 4

:VALET_4991
if and
  Char.IsDead($valet[0])
  $valet_mission_dead == 0
  $valet_task[0] == 6
goto_if_false @VALET_5077
$valet_mission_dead = 1
$10925 -= 20000
if 
  0 > $10925
goto_if_false @VALET_5061
$10925 = 0

:VALET_5061
Text.Print('VAL_A19', 4000, 1)

:VALET_5077
if and
  Char.IsDead($valet[1])
  $1898 == 0
  $valet_task[1] == 6
goto_if_false @VALET_5163
$1898 = 1
$10925 -= 20000
if 
  0 > $10925
goto_if_false @VALET_5147
$10925 = 0

:VALET_5147
Text.Print('VAL_A19', 4000, 1)

:VALET_5163
if and
  Char.IsDead($valet[2])
  $1899 == 0
  $valet_task[2] == 6
goto_if_false @VALET_5249
$1899 = 1
$10925 -= 20000
if 
  0 > $10925
goto_if_false @VALET_5233
$10925 = 0

:VALET_5233
Text.Print('VAL_A19', 4000, 1)

:VALET_5249
if 
  $10926 > 3
goto_if_false @VALET_5326
if 
  $10925 == 0
goto_if_false @VALET_5326
Text.ClearPrints
Text.Print('VAL_47', 4000, 1)
Text.PrintBig('VAL_A6', 4000, TextStyle.Middle)
$10926 = 8

:VALET_5326
if 
  $10926 == 4
goto_if_false @VALET_5476
if 
  $valet_pickup_car <> 0
goto_if_false @VALET_5476
if 
  not Car.IsDead($valet_pickup_car)
goto_if_false @VALET_5476
if 
  is_int_var_equal_to_int_var $valet_pickup_car == $valet_mission_flag
goto_if_false @VALET_5476
$10736 = Car.GetDriver($valet_pickup_car)
if 
  $10736 == -1
goto_if_false @VALET_5476
$10926 = 20
Text.Print('VAL_84', 4000, 1)
19@ = Blip.AddForCar($valet_pickup_car)
Blip.SetAsFriendly(19@, True)
set_var_int_to_var_int $valet_spawn_h2 = $valet_pickup_car
$10926 = 5

:VALET_5476
if 
  $10926 == 5
goto_if_false @VALET_5854
if 
  not Car.IsDead($valet_spawn_h2)
goto_if_false @VALET_5828
$10736 = Car.GetDriver($valet_spawn_h2)
if 
  $10736 <> -1
goto_if_false @VALET_5821
if 
  is_int_var_equal_to_int_var $10736 == $scplayer
goto_if_false @VALET_5744
Text.ClearPrints
Text.Print('VAL_25', 4000, 1)
Blip.Remove(19@)
$10927 = 60
Car.SetHealth($valet_spawn_h2, 1000)
Hud.ClearCounter($10927)
Hud.DisplayNthCounterWithString($10927, CounterDisplay.Number, 2, 'VAL_A17')
21@, 22@, 23@ = World.GetParkingNodeInArea($10798($val_Area,4f), $10806($val_Area,4f), $10814($val_Area,4f), $10802($val_Area,4f), $10810($val_Area,4f), $10818($val_Area,4f))
World.ClearArea(21@, 22@, 23@, 5.0, False)
set_var_float_to_lvar_float $dont_clear_valets = 21@
set_var_float_to_lvar_float $valet_cars_to_park = 22@
set_var_float_to_lvar_float $valet_mission_car = 23@
Blip.Remove(20@)
20@ = Blip.AddForCoord(21@, 22@, 23@)
$10926 = 6
goto @VALET_5821

:VALET_5744
if or
  is_int_var_equal_to_int_var $10736 == $valet[0]
  is_int_var_equal_to_int_var $10736 == $valet[1]
  is_int_var_equal_to_int_var $10736 == $valet[2]
goto_if_false @VALET_5821
Blip.Remove(19@)
Text.Print('VAL_79', 4000, 1)
$10926 = 4
$valet_spawn_h2 = 0
$valet_mission_flag = 0

:VALET_5821
goto @VALET_5854

:VALET_5828
Blip.Remove(19@)
$10926 = 4
$valet_spawn_h2 = 0
$valet_mission_flag = 0

:VALET_5854
if 
  $10926 == 6
goto_if_false @VALET_7409
if 
  not Char.IsDead($scplayer)
goto_if_false @VALET_7409
if 
  not Car.IsDead($valet_spawn_h2)
goto_if_false @VALET_7386
$10927 = Car.GetHealth($valet_spawn_h2)
$frozen_peds = 17
sub_int_lvar_from_int_var $frozen_peds -= 18@
$frozen_peds *= 20
$10927 += -1000
abs_var_int $10927
cset_lvar_float_to_var_int 13@ =# $10927
cset_lvar_float_to_var_int 27@ =# $frozen_peds
set_lvar_float_to_lvar_float 28@ = 13@
div_float_lvar_by_float_lvar 28@ /= 27@
if 
  28@ > 1.0
goto_if_false @VALET_6010
28@ = 1.0

:VALET_6010
28@ -= 1.0
28@ = Math.Abs()
28@ *= 45.0
cset_var_int_to_lvar_float $10927 =# 28@
if 
  $10927 > 45
goto_if_false @VALET_6068
$10927 = 45

:VALET_6068
if 
  0 > $10927
goto_if_false @VALET_6093
$10927 = 0

:VALET_6093
$10736 = Car.GetDriver($valet_spawn_h2)
if 
  not is_int_var_equal_to_int_var $10736 == $scplayer
goto_if_false @VALET_6152
Blip.Remove(20@)
19@ = Blip.AddForCar($valet_spawn_h2)
Blip.SetAsFriendly(19@, True)
Hud.ClearCounter($10927)
$10926 = 7

:VALET_6152
if and
  $10736 <> -1
  not is_int_var_equal_to_int_var $10736 == $scplayer
  not is_int_var_equal_to_int_var $10736 == $valet[0]
  not is_int_var_equal_to_int_var $10736 == $valet[1]
  not is_int_var_equal_to_int_var $10736 == $valet[2]
goto_if_false @VALET_6242
$valet_spawn_h2 = 0
Blip.Remove(19@)
Hud.ClearCounter($10927)
$10926 = 4
Text.Print('VAL_A4', 4000, 1)

:VALET_6242
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @VALET_6293
if 
  not Char.IsInCar($scplayer, $valet_spawn_h2)
goto_if_false @VALET_6293
Text.PrintNow('VAL_A18', 1000, 1)

:VALET_6293
if 
  Car.LocateStopped3D($valet_spawn_h2, 21@, 22@, 23@, 4.0, 4.0, 4.0, True)
goto_if_false @VALET_7379
Blip.Remove(20@)
Car.SetEngineBroken($valet_spawn_h2, True)
Car.MarkAsNoLongerNeeded($valet_spawn_h2)
Hud.ClearCounter($10927)
set_lvar_int_to_var_int 6@ = $10925
$x, $y, $z, 24@ = Path.GetClosestCarNodeWithHeading(21@, 22@, 23@)
$x, $y, $z = Car.GetCoordinates($valet_spawn_h2)
26@ = Math.GetDistanceBetweenCoords2D($x, $y, 21@, 22@)
25@ = Car.GetHeading($valet_spawn_h2)
24@ = Math.Abs()
if 
  24@ > 180.0
goto_if_false @VALET_6463
24@ -= 180.0

:VALET_6463
25@ = Math.Abs()
if 
  25@ > 180.0
goto_if_false @VALET_6499
25@ -= 180.0

:VALET_6499
set_lvar_float_to_lvar_float 27@ = 24@
sub_float_lvar_from_float_lvar 27@ -= 25@
27@ = Math.Abs()
cset_lvar_float_to_lvar_int 13@ =# 18@
13@ *= 2.0
29@ = 45.0
sub_float_lvar_from_float_lvar 29@ -= 13@
set_lvar_float_to_lvar_float 28@ = 27@
div_float_lvar_by_float_lvar 28@ /= 29@
13@ = 1.0
sub_float_lvar_from_float_lvar 13@ -= 28@
if 
  0.0 > 13@
goto_if_false @VALET_6621
13@ = 0.0

:VALET_6621
13@ *= 10.0
cset_var_int_to_lvar_float $this_b =# 13@
cset_var_int_to_lvar_float $area_visible =# 13@
cset_lvar_float_to_lvar_int 13@ =# 18@
13@ -= 20.0
13@ = Math.Abs()
13@ /= 6.0
set_lvar_float_to_lvar_float 27@ = 26@
div_float_lvar_by_float_lvar 27@ /= 13@
28@ = 1.0
sub_float_lvar_from_float_lvar 28@ -= 27@
if 
  0.0 > 28@
goto_if_false @VALET_6745
28@ = 0.0

:VALET_6745
28@ *= 5.0
cset_var_int_to_lvar_float $frozen_peds =# 28@
set_var_int_to_var_int $this_a = $frozen_peds
add_int_var_to_int_var $area_visible += $frozen_peds
if and
  $area_visible <> 1
  $10927 <> 1
goto_if_false @VALET_6826
Text.PrintWith2NumbersNow('VAL_A10', $area_visible, $10927, 2500, TextStyle.Middle)

:VALET_6826
if and
  $area_visible == 1
  $10927 <> 1
goto_if_false @VALET_6873
Text.PrintWith2NumbersNow('VAL_A12', $area_visible, $10927, 2500, TextStyle.Middle)

:VALET_6873
if and
  $area_visible <> 1
  $10927 == 1
goto_if_false @VALET_6920
Text.PrintWith2NumbersNow('VAL_A11', $area_visible, $10927, 2500, TextStyle.Middle)

:VALET_6920
if and
  $area_visible == 0
  $10927 == 0
goto_if_false @VALET_6967
Text.PrintWith2NumbersNow('VAL_A13', $area_visible, $10927, 2500, TextStyle.Middle)

:VALET_6967
set_var_int_to_var_int $frozen_peds = $area_visible
add_int_var_to_int_var $frozen_peds += $10927
if 
  $frozen_peds <> 1
goto_if_false @VALET_7027
Text.PrintWithNumber('VAL_A14', $frozen_peds, 2500, 1)
goto @VALET_7046

:VALET_7027
Text.PrintWithNumber('VAL_A15', $frozen_peds, 2500, 1)

:VALET_7046
Text.Print('VAL_A16', 3000, 1)
$10927 *= 1000
$area_visible *= 1000
add_int_var_to_int_var $10925 += $10927
add_int_var_to_int_var $10925 += $area_visible
$10927 = 0
$valet_spawn_h2 = 0
$10923 -= 1
$total_cars_parked += 1
$frozen_peds = Stat.GetInt(StatId.ValetCarsParked)
if 
  is_int_var_greater_than_int_var $total_cars_parked > $frozen_peds
goto_if_false @VALET_7157
Stat.SetInt(StatId.ValetCarsParked, $total_cars_parked)

:VALET_7157
if 
  $10923 == 0
goto_if_false @VALET_7372
Text.ClearPrints
Hud.ClearTimer($10925)
Hud.ClearCounter($10923)
18@ += 1
$10926 = 2
set_var_int_to_lvar_int $10923 = 18@
$10923 += 2
$10925 = 2
if 
  6 > 18@
goto_if_false @VALET_7340
set_var_int_to_lvar_int $frozen_peds = 18@
$frozen_peds -= 1
Text.PrintWithNumberBig('VAL_62', $frozen_peds, 3000, TextStyle.Middle)
set_var_int_to_lvar_int $frozen_peds = 18@
$frozen_peds *= 100
$frozen_peds -= 100
Text.PrintWithNumber('VAL_65', $frozen_peds, 4000, 1)
Player.AddScore($player1, $frozen_peds)
set_lvar_int_to_lvar_int 17@ = TIMERA
17@ += 5000

:VALET_7340
if 
  18@ == 6
goto_if_false @VALET_7365
gosub @VALET_16400

:VALET_7365
goto @VALET_7379

:VALET_7372
$10926 = 4

:VALET_7379
goto @VALET_7409

:VALET_7386
Text.PrintBig('VAL_A6', 4000, TextStyle.Middle)
$10926 = 8

:VALET_7409
if 
  $10926 == 7
goto_if_false @VALET_7654
if 
  not Car.IsDead($valet_spawn_h2)
goto_if_false @VALET_7628
$10736 = Car.GetDriver($valet_spawn_h2)
if 
  $10736 <> -1
goto_if_false @VALET_7621
if 
  is_int_var_equal_to_int_var $10736 == $scplayer
goto_if_false @VALET_7544
Blip.Remove(19@)
20@ = Blip.AddForCoord(21@, 22@, 23@)
Hud.ClearCounter($10927)
Hud.DisplayNthCounterWithString($10927, CounterDisplay.Number, 2, 'VAL_A17')
$10926 = 6
goto @VALET_7621

:VALET_7544
if or
  is_int_var_equal_to_int_var $10736 == $valet[0]
  is_int_var_equal_to_int_var $10736 == $valet[1]
  is_int_var_equal_to_int_var $10736 == $valet[2]
goto_if_false @VALET_7621
Blip.Remove(19@)
Text.Print('VAL_79', 4000, 1)
$10926 = 4
$valet_spawn_h2 = 0
$valet_mission_flag = 0

:VALET_7621
goto @VALET_7654

:VALET_7628
Blip.Remove(19@)
$10926 = 4
$valet_spawn_h2 = 0
$valet_mission_flag = 0

:VALET_7654
if 
  $10926 == 8
goto_if_false @VALET_7819
Blip.Remove(19@)
Blip.Remove(20@)
Hud.ClearCounter($10927)
Hud.ClearTimer($10925)
Hud.ClearCounter($10923)
World.SetPedDensityMultiplier(1.0)
Game.SwitchEmergencyServices(True)
$player_on_valet_mission = 0
$onmission = 0
$10926 = 0
$valet_spawn_h2 = 0
$10740 = 1
Game.SetWantedMultiplier(1.0)
if 
  not Char.IsDead($valet[0])
goto_if_false @VALET_7773
Char.SetCantBeDraggedOut($valet[0], False)

:VALET_7773
if 
  not Char.IsDead($valet[1])
goto_if_false @VALET_7796
Char.SetCantBeDraggedOut($valet[1], False)

:VALET_7796
if 
  not Char.IsDead($valet[2])
goto_if_false @VALET_7819
Char.SetCantBeDraggedOut($valet[2], False)

:VALET_7819
return 

:VALET_7821
6@ = 0

:VALET_7828
if 
  3 > 6@
goto_if_false @VALET_12977
if 
  not Char.IsDead($valet(6@,3i))
goto_if_false @VALET_7964
if 
  Char.IsStuckUnderCar($valet(6@,3i))
goto_if_false @VALET_7964
3@ = Char.GetScriptTaskStatus($valet(6@,3i), 2089)
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_7964
Char.ClearTasksImmediately($valet(6@,3i))
Task.DieNamedAnim($valet(6@,3i), "KO_SKID_FRONT", "PED", 1000.0, 0)

:VALET_7964
if and
  $valet_task(6@,3i) <> 4
  $valet_task(6@,3i) <> 5
goto_if_false @VALET_8374
if and
  not Char.IsDead($valet(6@,3i))
  not Char.IsDead($scplayer)
goto_if_false @VALET_8374
if 
  Char.IsRespondingToEvent($valet(6@,3i), 9)
goto_if_false @VALET_8323
if or
  Char.LocateAnyMeansChar3D($scplayer, $valet(6@,3i), 5.0, 5.0, 5.0, False)
  Char.HasBeenDamagedByChar($valet(6@,3i), $scplayer)
goto_if_false @VALET_8307
$valet_task(6@,3i) = 5
$10918 += 1
Char.ClearTasks($valet(6@,3i))
if 
  not Char.IsDead($valet[0])
goto_if_false @VALET_8182
if 
  Char.LocateAnyMeansChar3D($scplayer, $valet[0], 15.0, 15.0, 15.0, False)
goto_if_false @VALET_8182
$valet_task[0] = 5

:VALET_8182
if 
  not Char.IsDead($valet[1])
goto_if_false @VALET_8241
if 
  Char.LocateAnyMeansChar3D($scplayer, $valet[1], 15.0, 15.0, 15.0, False)
goto_if_false @VALET_8241
$valet_task[1] = 5

:VALET_8241
if 
  not Char.IsDead($valet[2])
goto_if_false @VALET_8300
if 
  Char.LocateAnyMeansChar3D($scplayer, $valet[2], 15.0, 15.0, 15.0, False)
goto_if_false @VALET_8300
$valet_task[2] = 5

:VALET_8300
goto @VALET_8323

:VALET_8307
set_var_int_to_lvar_int $valet_task(6@,3i) = 0@(6@,3i)

:VALET_8323
if 
  $valet_task(6@,3i) <> 9
goto_if_false @VALET_8374
if 
  is_int_var_equal_to_constant $valet_event == 7
goto_if_false @VALET_8374
$valet_task(6@,3i) = 9

:VALET_8374
if 
  $valet_task(6@,3i) <> 1
goto_if_false @VALET_8683
if 
  Char.DoesExist($valet(6@,3i))
goto_if_false @VALET_8683
if 
  Char.IsDead($valet(6@,3i))
goto_if_false @VALET_8683
$x, $y, $z = Char.GetCoordinatesOfDied($valet(6@,3i))
if 
  $valet_task(6@,3i) <> 6
goto_if_false @VALET_8663
if 
  not Char.IsDead($scplayer)
goto_if_false @VALET_8555
if 
  Char.LocateAnyMeans3D($scplayer, $x, $y, $z, 15.0, 15.0, 15.0, False)
goto_if_false @VALET_8555
$valet_task[0] = 5
$valet_task[1] = 5
$valet_task[2] = 5

:VALET_8555
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_8663
if or
  is_float_var_greater_than_float_var $10798($val_Area,4f) > $x
  is_float_var_greater_than_float_var $10806($val_Area,4f) > $y
  is_float_var_greater_than_float_var $10814($val_Area,4f) > $z
  is_float_var_greater_than_float_var $x > $10802($val_Area,4f)
  is_float_var_greater_than_float_var $y > $10810($val_Area,4f)
  is_float_var_greater_than_float_var $z > $10818($val_Area,4f)
goto_if_false @VALET_8663
Player.AlterWantedLevelNoDrop($player1, 1)

:VALET_8663
$valet_task(6@,3i) = 6
Char.MarkAsNoLongerNeeded($valet(6@,3i))

:VALET_8683
switch_start $valet_task(6@,3i) {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @VALET_12963 {caseNum1} 1 {caseLabel1} @VALET_8815 {caseNum2} 2 {caseLabel2} @VALET_9128 {caseNum3} 3 {caseLabel3} @VALET_9742 {caseNum4} 4 {caseLabel4} @VALET_10485 {caseNum5} 5 {caseLabel5} @VALET_10593 {caseNum6} 6 {caseLabel6} @VALET_12956 {caseNum7} 7 {caseLabel7} @VALET_11090
switch_continued 8 {caseLabel1} @VALET_12243 {caseNum2} 9 {caseLabel2} @VALET_12565 {caseNum3} 10 {caseLabel3} @VALET_10304 {caseNum4} 11 {caseLabel4} @VALET_12750 {caseNum5} -1 {caseLabel5} @VALET_12963 {caseNum6} -1 {caseLabel6} @VALET_12963 {caseNum7} -1 {caseLabel7} @VALET_12963 {caseNum8} -1 {caseLabel8} @VALET_12963 {caseNum9} -1 {caseLabel9} @VALET_12963

:VALET_8815
if 
  $valet_can_be_created(6@,3i) == 1
goto_if_false @VALET_9121
Streaming.RequestModel(189)
if 
  Streaming.HasModelLoaded(189)
goto_if_false @VALET_9121
if 
  $val_Area == 1
goto_if_false @VALET_8927
$valet(6@,3i) = Char.Create(PedType.Mission1, 189, $a_ped(6@,3f), $a_char(6@,3f), $force_a_one_off_car(6@,3f))
Char.SetHeading($valet(6@,3i), $val_h(6@,3f))

:VALET_8927
if 
  $val_Area == 2
goto_if_false @VALET_8996
$valet(6@,3i) = Char.Create(PedType.Mission1, 189, $10758(6@,3f), $10761(6@,3f), $10764(6@,3f))
Char.SetHeading($valet(6@,3i), $10767(6@,3f))

:VALET_8996
if 
  $val_Area == 3
goto_if_false @VALET_9065
$valet(6@,3i) = Char.Create(PedType.Mission1, 189, $10770(6@,3f), $10773(6@,3f), $10776(6@,3f))
Char.SetHeading($valet(6@,3i), $10779(6@,3f))

:VALET_9065
Char.SetDecisionMaker($valet(6@,3i), 7@)
Char.SetOnlyDamagedByPlayer($valet(6@,3i), True)
Char.SetSuffersCriticalHits($valet(6@,3i), False)
$valet_task(6@,3i) = 2
0@(6@,3i) = 2

:VALET_9121
goto @VALET_12963

:VALET_9128
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 8@
goto_if_false @VALET_9735
if 
  not Char.IsDead($valet(6@,3i))
goto_if_false @VALET_9735
if 
  $val_Area == 1
goto_if_false @VALET_9321
if 
  not Char.LocateAnyMeans3D($valet(6@,3i), $a_ped(6@,3f), $a_char(6@,3f), $force_a_one_off_car(6@,3f), 2.0, 2.0, 2.0, False)
goto_if_false @VALET_9321
11@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, $a_ped(6@,3f), $a_char(6@,3f), $force_a_one_off_car(6@,3f), 6, -2)
Task.AchieveHeading(-1, $val_h(6@,3f))
Sequence.Close(11@)
Char.PerformSequence($valet(6@,3i), 11@)
Sequence.Clear(11@)
$valet_task(6@,3i) = 3

:VALET_9321
if 
  $val_Area == 2
goto_if_false @VALET_9581
if 
  not Char.LocateAnyMeans3D($valet(6@,3i), $10758(6@,3f), $10761(6@,3f), $10764(6@,3f), 2.0, 2.0, 2.0, False)
goto_if_false @VALET_9482
11@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, $10758(6@,3f), $10761(6@,3f), $10764(6@,3f), 6, -2)
Task.AchieveHeading(-1, $10767(6@,3f))
Sequence.Close(11@)
Char.PerformSequence($valet(6@,3i), 11@)
Sequence.Clear(11@)
$valet_task(6@,3i) = 3
goto @VALET_9581

:VALET_9482
3@ = Char.GetScriptTaskStatus($valet(6@,3i), 1492)
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_9581
$last_player_z = Char.GetHeading($valet(6@,3i))
sub_float_var_from_float_var $last_player_z -= $10767(6@,3f)
abs_var_float $last_player_z
if 
  10.0 <= $last_player_z
goto_if_false @VALET_9581
Task.AchieveHeading($valet(6@,3i), $10767(6@,3f))

:VALET_9581
if 
  $val_Area == 3
goto_if_false @VALET_9735
if 
  not Char.LocateAnyMeans3D($valet(6@,3i), $10770(6@,3f), $10773(6@,3f), $10776(6@,3f), 2.0, 2.0, 2.0, False)
goto_if_false @VALET_9735
11@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, $10770(6@,3f), $10773(6@,3f), $10776(6@,3f), 6, -2)
Task.AchieveHeading(-1, $10779(6@,3f))
Sequence.Close(11@)
Char.PerformSequence($valet(6@,3i), 11@)
Sequence.Clear(11@)
$valet_task(6@,3i) = 3

:VALET_9735
goto @VALET_12963

:VALET_9742
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 9@
goto_if_false @VALET_10297
if 
  not Char.IsDead($valet(6@,3i))
goto_if_false @VALET_10297
3@ = Char.GetScriptTaskStatus($valet(6@,3i), 1560)
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_10297
if 
  $val_Area == 1
goto_if_false @VALET_9975
if 
  not Char.LocateAnyMeans3D($valet(6@,3i), $a_ped(6@,3f), $a_char(6@,3f), $force_a_one_off_car(6@,3f), 3.0, 3.0, 3.0, False)
goto_if_false @VALET_9964
11@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, $a_ped(6@,3f), $a_char(6@,3f), $force_a_one_off_car(6@,3f), 6, -2)
Task.AchieveHeading(-1, $val_h(6@,3f))
Sequence.Close(11@)
Char.PerformSequence($valet(6@,3i), 11@)
Sequence.Clear(11@)
goto @VALET_9975

:VALET_9964
$valet_task(6@,3i) = 2

:VALET_9975
if 
  $val_Area == 2
goto_if_false @VALET_10136
if 
  not Char.LocateAnyMeans3D($valet(6@,3i), $10758(6@,3f), $10761(6@,3f), $10764(6@,3f), 3.0, 3.0, 3.0, False)
goto_if_false @VALET_10125
11@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, $10758(6@,3f), $10761(6@,3f), $10764(6@,3f), 6, -2)
Task.AchieveHeading(-1, $10767(6@,3f))
Sequence.Close(11@)
Char.PerformSequence($valet(6@,3i), 11@)
Sequence.Clear(11@)
goto @VALET_10136

:VALET_10125
$valet_task(6@,3i) = 2

:VALET_10136
if 
  $val_Area == 3
goto_if_false @VALET_10297
if 
  not Char.LocateAnyMeans3D($valet(6@,3i), $10770(6@,3f), $10773(6@,3f), $10776(6@,3f), 3.0, 3.0, 3.0, False)
goto_if_false @VALET_10286
11@ = Sequence.Open()
Task.FollowPathNodesToCoord(-1, $10770(6@,3f), $10773(6@,3f), $10776(6@,3f), 6, -2)
Task.AchieveHeading(-1, $10779(6@,3f))
Sequence.Close(11@)
Char.PerformSequence($valet(6@,3i), 11@)
Sequence.Clear(11@)
goto @VALET_10297

:VALET_10286
$valet_task(6@,3i) = 2

:VALET_10297
goto @VALET_12963

:VALET_10304
if 
  not Char.IsDead($valet(6@,3i))
goto_if_false @VALET_10478
3@ = Char.GetScriptTaskStatus($valet(6@,3i), 1560)
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_10478
if 
  not Char.LocateAnyMeans3D($valet(6@,3i), $10822($val_Area,4f), $10826($val_Area,4f), $10830($val_Area,4f), 3.0, 3.0, 3.0, False)
goto_if_false @VALET_10456
Task.FollowPathNodesToCoord($valet(6@,3i), $10822($val_Area,4f), $10826($val_Area,4f), $10830($val_Area,4f), 6, -2)
goto @VALET_10478

:VALET_10456
0@(6@,3i) = 3
$valet_task(6@,3i) = 3

:VALET_10478
goto @VALET_12963

:VALET_10485
if 
  not Char.IsDead($valet(6@,3i))
goto_if_false @VALET_10586
if 
  not Char.IsRespondingToEvent($valet(6@,3i), 9)
goto_if_false @VALET_10570
Task.PlayAnimNonInterruptable($valet(6@,3i), "FUCKU", "PED", 4.0, False, False, False, False, -2)
4@ += 1

:VALET_10570
set_var_int_to_lvar_int $valet_task(6@,3i) = 0@(6@,3i)

:VALET_10586
goto @VALET_12963

:VALET_10593
if 
  not Char.IsDead($valet(6@,3i))
goto_if_false @VALET_11083
3@ = Char.GetScriptTaskStatus($valet(6@,3i), 1506)
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_10658
Task.KillCharOnFoot($valet(6@,3i), $scplayer)

:VALET_10658
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 9@
goto_if_false @VALET_11083
if 
  not Char.IsDead($scplayer)
goto_if_false @VALET_11083
if 
  $val_Area == 1
goto_if_false @VALET_10823
if or
  not Char.LocateAnyMeansChar3D($valet(6@,3i), $scplayer, 15.0, 15.0, 15.0, False)
  not Char.LocateAnyMeans3D($valet(6@,3i), $a_ped(6@,3f), $a_char(6@,3f), $force_a_one_off_car(6@,3f), 10.0, 10.0, 10.0, False)
goto_if_false @VALET_10823
Char.ClearTasks($valet(6@,3i))
set_var_int_to_lvar_int $valet_task(6@,3i) = 0@(6@,3i)

:VALET_10823
if 
  $val_Area == 2
goto_if_false @VALET_10953
if or
  not Char.LocateAnyMeansChar3D($valet(6@,3i), $scplayer, 15.0, 15.0, 15.0, False)
  not Char.LocateAnyMeans3D($valet(6@,3i), $10758(6@,3f), $10761(6@,3f), $10764(6@,3f), 10.0, 10.0, 10.0, False)
goto_if_false @VALET_10953
Char.ClearTasks($valet(6@,3i))
set_var_int_to_lvar_int $valet_task(6@,3i) = 0@(6@,3i)

:VALET_10953
if 
  $val_Area == 3
goto_if_false @VALET_11083
if or
  not Char.LocateAnyMeansChar3D($valet(6@,3i), $scplayer, 15.0, 15.0, 15.0, False)
  not Char.LocateAnyMeans3D($valet(6@,3i), $10770(6@,3f), $10773(6@,3f), $10776(6@,3f), 10.0, 10.0, 10.0, False)
goto_if_false @VALET_11083
Char.ClearTasks($valet(6@,3i))
set_var_int_to_lvar_int $valet_task(6@,3i) = 0@(6@,3i)

:VALET_11083
goto @VALET_12963

:VALET_11090
if 
  not Char.IsDead($valet(6@,3i))
goto_if_false @VALET_12236
if 
  $val_Area == 1
goto_if_false @VALET_11219
if 
  not Char.LocateAnyMeans3D($valet(6@,3i), $a_ped(6@,3f), $a_char(6@,3f), $force_a_one_off_car(6@,3f), 23.0, 23.0, 8.0, False)
goto_if_false @VALET_11219
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_11219
if 
  $val_Area == 2
goto_if_false @VALET_11328
if 
  not Char.LocateAnyMeans3D($valet(6@,3i), $10758(6@,3f), $10761(6@,3f), $10764(6@,3f), 23.0, 23.0, 8.0, False)
goto_if_false @VALET_11328
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_11328
if 
  $val_Area == 3
goto_if_false @VALET_11437
if 
  not Char.LocateAnyMeans3D($valet(6@,3i), $10770(6@,3f), $10773(6@,3f), $10776(6@,3f), 23.0, 23.0, 8.0, False)
goto_if_false @VALET_11437
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_11437
if 
  $valet_task(6@,3i) <> 2
goto_if_false @VALET_12236
3@ = Char.GetScriptTaskStatus($valet(6@,3i), 1560)
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_11991
if 
  not Car.IsDead($valet_car(6@,3i))
goto_if_false @VALET_11951
if 
  Char.IsInCar($valet(6@,3i), $valet_car(6@,3i))
goto_if_false @VALET_11786
if 
  is_int_var_equal_to_int_var $valet_car(6@,3i) == $valet_pickup_car
goto_if_false @VALET_11569
$valet_pickup_car = 0

:VALET_11569
$x, $y, $z = World.GetParkingNodeInArea($10798($val_Area,4f), $10806($val_Area,4f), $10814($val_Area,4f), $10802($val_Area,4f), $10810($val_Area,4f), $10818($val_Area,4f))
set_var_float_to_var_float $dont_clear_valets = $x
set_var_float_to_var_float $valet_cars_to_park = $y
set_var_float_to_var_float $valet_mission_car = $z
if 
  Car.IsAttached($valet_car(6@,3i))
goto_if_false @VALET_11692
Car.Detach($valet_car(6@,3i), 0.0, 0.0, 0.0, False)

:VALET_11692
Task.CarDriveToCoord($valet(6@,3i), $valet_car(6@,3i), $x, $y, $z, 15.0, DriveMode.Accurate, 0, DrivingMode.StopForCars)
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_11757
Char.SetCantBeDraggedOut($valet(6@,3i), True)

:VALET_11757
$valet_task(6@,3i) = 8
0@(6@,3i) = 7
goto @VALET_11944

:VALET_11786
if 
  not Car.IsDead($valet_car(6@,3i))
goto_if_false @VALET_11911
if 
  Char.LocateAnyMeansCar3D($valet(6@,3i), $valet_car(6@,3i), 20.0, 20.0, 20.0, False)
goto_if_false @VALET_11904
11@ = Sequence.Open()
Task.Pause(-1, 3000)
Task.EnterCarAsDriver(-1, $valet_car(6@,3i), -2)
Sequence.Close(11@)
$10919 += 1
Char.PerformSequence($valet(6@,3i), 11@)
Sequence.Clear(11@)

:VALET_11904
goto @VALET_11944

:VALET_11911
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_11944
goto @VALET_11984

:VALET_11951
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_11984
goto @VALET_12236

:VALET_11991
if and
  not Car.IsDead($valet_car(6@,3i))
  not Char.IsDead($scplayer)
goto_if_false @VALET_12236
$10741 = Char.GetCarIsUsing($scplayer)
if 
  is_int_var_equal_to_int_var $10741 == $valet_car(6@,3i)
goto_if_false @VALET_12132
if 
  Player.IsWearing($player1, 17, "VALET")
goto_if_false @VALET_12132
if and
  not Char.IsGettingInToACar($valet(6@,3i))
  not Char.IsInAnyCar($valet(6@,3i))
goto_if_false @VALET_12132
Char.ClearTasks($valet(6@,3i))
$valet_task(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_12132
if 
  not Car.IsDead($valet_car(6@,3i))
goto_if_false @VALET_12229
if 
  not Char.LocateAnyMeansCar3D($valet(6@,3i), $valet_car(6@,3i), 20.0, 20.0, 20.0, False)
goto_if_false @VALET_12229
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_12229
goto @VALET_12236

:VALET_12236
goto @VALET_12963

:VALET_12243
if 
  not Char.IsDead($valet(6@,3i))
goto_if_false @VALET_12558
3@ = Char.GetScriptTaskStatus($valet(6@,3i), 1489)
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_12418
if 
  Char.IsInArea3D($valet(6@,3i), $10798($val_Area,4f), $10806($val_Area,4f), $10814($val_Area,4f), $10802($val_Area,4f), $10810($val_Area,4f), $10818($val_Area,4f), False)
goto_if_false @VALET_12389
$valet_task(6@,3i) = 3
0@(6@,3i) = 3
goto @VALET_12411

:VALET_12389
$valet_task(6@,3i) = 3
0@(6@,3i) = 3

:VALET_12411
goto @VALET_12558

:VALET_12418
if or
  $onmission == 0
  $player_on_valet_mission == 1
  $force_valet_on_mission > 0
goto_if_false @VALET_12558
if 
  not Car.IsDead($valet_car(6@,3i))
goto_if_false @VALET_12558
$10741 = Car.GetBlockingCar($valet_car(6@,3i))
if 
  not Car.IsDead($10741)
goto_if_false @VALET_12558
$10736 = Car.GetDriver($10741)
if or
  is_int_var_equal_to_int_var $10736 == $scplayer
  $10736 == -1
goto_if_false @VALET_12558
if 
  $10741 <> -1
goto_if_false @VALET_12558
set_var_int_to_var_int $last_player_y = $10741

:VALET_12558
goto @VALET_12963

:VALET_12565
if and
  not Char.IsDead($valet(6@,3i))
  not Car.IsDead($valet_car(6@,3i))
goto_if_false @VALET_12743
if 
  not Char.IsInCar($valet(6@,3i), $valet_car(6@,3i))
goto_if_false @VALET_12743
$10739 = Car.GetDriver($valet_car(6@,3i))
if 
  $10739 <> -1
goto_if_false @VALET_12743
$10741 = Char.GetCarIsUsing($scplayer)
if 
  is_int_var_equal_to_int_var $10741 == $valet_car(6@,3i)
goto_if_false @VALET_12732
if 
  Player.IsWearing($player1, 17, "VALET")
goto_if_false @VALET_12714
goto @VALET_12725

:VALET_12714
$valet_task(6@,3i) = 2

:VALET_12725
goto @VALET_12743

:VALET_12732
$valet_task(6@,3i) = 2

:VALET_12743
goto @VALET_12963

:VALET_12750
if 
  not Char.IsDead($valet(6@,3i))
goto_if_false @VALET_12949
3@ = Char.GetScriptTaskStatus($valet(6@,3i), 1655)
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_12949
if 
  6@ == 0
goto_if_false @VALET_12949
if 
  not Char.IsDead($valet[1])
goto_if_false @VALET_12949
if 
  not Char.IsDead($valet[0])
goto_if_false @VALET_12949
3@ = Char.GetScriptTaskStatus($valet[1], 1655)
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_12949
3@ = Char.GetScriptTaskStatus($valet[0], 1655)
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_12949
Task.ChatWithChar($valet[0], $valet[1], True, 1)
Task.ChatWithChar($valet[1], $valet[0], False, 1)
0@ = 11
1@ = 11

:VALET_12949
goto @VALET_12963

:VALET_12956
goto @VALET_12963

:VALET_12963
6@ += 1
goto @VALET_7828

:VALET_12977
return 

:VALET_12979
if or
  $freeze_creating_drop_off_cars == 0
  $imp_seq2 > 0
goto_if_false @VALET_13193
if 
  $create_drop_off_car_now == 0
goto_if_false @VALET_13193
if 
  $drop_off_car == 0
goto_if_false @VALET_13193
if 
  not World.IsAreaOccupied($10782($val_Area,4f), $10790($val_Area,4f), 0.0, $valet_vg_z($val_Area,4f), $10794($val_Area,4f), 80.0, False, True, False, False, False)
goto_if_false @VALET_13122
$imp_seq2 -= 1
$create_drop_off_car_now = 1
15@ = 0

:VALET_13122
if 
  $create_drop_off_car_now == 0
goto_if_false @VALET_13193
if and
  $valet_spawn_h2 == 0
  $valet_pickup_car == 0
  $drop_off_car == 0
goto_if_false @VALET_13193
$imp_seq2 -= 1
$create_drop_off_car_now = 1
15@ = 0

:VALET_13193
if 
  $drop_off_car <> 0
goto_if_false @VALET_13350
if 
  Car.IsDead($drop_off_car)
goto_if_false @VALET_13241
$debug_this = 1
$drop_off_car = 0

:VALET_13241
if 
  not Car.IsDead($drop_off_car)
goto_if_false @VALET_13350
$10736 = Car.GetDriver($drop_off_car)
if 
  not Char.IsDead($10736)
goto_if_false @VALET_13305
if 
  not Char.IsSittingInCar($10736, $drop_off_car)
goto_if_false @VALET_13305
Car.MarkAsNoLongerNeeded($drop_off_car)

:VALET_13305
if or
  $10736 == -1
  is_int_var_equal_to_int_var $10736 == $scplayer
goto_if_false @VALET_13350
Car.MarkAsNoLongerNeeded($drop_off_car)
$debug_this = 2
$drop_off_car = 0

:VALET_13350
if 
  $valet_pickup_car <> 0
goto_if_false @VALET_13465
if 
  Car.IsDead($valet_pickup_car)
goto_if_false @VALET_13391
$valet_pickup_car = 0

:VALET_13391
if 
  not Car.IsDead($valet_pickup_car)
goto_if_false @VALET_13465
$10736 = Car.GetDriver($valet_pickup_car)
if 
  is_int_var_equal_to_int_var $10736 == $scplayer
goto_if_false @VALET_13465
if 
  not is_int_var_equal_to_int_var $valet_pickup_car == $sc3_missioncar
goto_if_false @VALET_13458
Car.MarkAsNoLongerNeeded($valet_pickup_car)

:VALET_13458
$valet_pickup_car = 0

:VALET_13465
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 9@
goto_if_false @VALET_14599
if or
  $valet_task[0] == 2
  $valet_task[1] == 2
  $valet_task[2] == 2
  $player_on_valet_mission == 1
  $onmission == 1
goto_if_false @VALET_14599
if and
  $valet_task[0] <> 7
  $valet_task[1] <> 7
  $valet_task[2] <> 7
goto_if_false @VALET_14599
$a_pickup_car = World.GetRandomCarOfTypeInAreaNoSave($10782($val_Area,4f), $10790($val_Area,4f), $valet_vg_z($val_Area,4f), $10794($val_Area,4f), -1)
if 
  not Car.IsDead($sc3_missioncar)
goto_if_false @VALET_13667
if 
  Car.IsInArea2D($sc3_missioncar, $10782($val_Area,4f), $10790($val_Area,4f), $valet_vg_z($val_Area,4f), $10794($val_Area,4f), False)
goto_if_false @VALET_13667
set_var_int_to_var_int $a_pickup_car = $sc3_missioncar

:VALET_13667
if 
  $a_pickup_car == -1
goto_if_false @VALET_13755
if 
  not Car.IsDead($drop_off_car)
goto_if_false @VALET_13755
if 
  Car.IsInArea2D($drop_off_car, $10782($val_Area,4f), $10790($val_Area,4f), $valet_vg_z($val_Area,4f), $10794($val_Area,4f), False)
goto_if_false @VALET_13755
set_var_int_to_var_int $a_pickup_car = $drop_off_car

:VALET_13755
if 
  $a_pickup_car == -1
goto_if_false @VALET_13843
if 
  not Car.IsDead($valet_mission_flag)
goto_if_false @VALET_13843
if 
  Car.IsInArea2D($valet_mission_flag, $10782($val_Area,4f), $10790($val_Area,4f), $valet_vg_z($val_Area,4f), $10794($val_Area,4f), False)
goto_if_false @VALET_13843
set_var_int_to_var_int $a_pickup_car = $valet_mission_flag

:VALET_13843
$i_see_you = 0
if 
  $a_pickup_car <> -1
goto_if_false @VALET_13980
set_var_int_to_var_int $valet_countdown = $a_pickup_car
if 
  not Car.IsDead($a_pickup_car)
goto_if_false @VALET_13980
$10736 = Car.GetDriver($a_pickup_car)
if 
  $10736 == -1
goto_if_false @VALET_13980
12@ = Car.GetClass($a_pickup_car)
if and
  not is_int_lvar_equal_to_constant 12@ == 0
  not is_int_lvar_equal_to_constant 12@ == 1
  not is_int_lvar_equal_to_constant 12@ == 2
  not is_int_lvar_equal_to_constant 12@ == 3
goto_if_false @VALET_13980
set_var_int_to_var_int $last_player_y = $a_pickup_car
$a_pickup_car = -1

:VALET_13980
if 
  $a_pickup_car <> -1
goto_if_false @VALET_14045
if 
  not Car.IsDead($a_pickup_car)
goto_if_false @VALET_14045
if 
  Car.IsEmergencyServices($a_pickup_car)
goto_if_false @VALET_14045
set_var_int_to_var_int $last_player_y = $a_pickup_car
$a_pickup_car = -1

:VALET_14045
if 
  $a_pickup_car <> -1
goto_if_false @VALET_14599
if 
  not Car.IsDead($a_pickup_car)
goto_if_false @VALET_14225
$10736 = Car.GetDriver($a_pickup_car)
if 
  $10736 <> -1
goto_if_false @VALET_14225
if 
  not Char.IsDead($10736)
goto_if_false @VALET_14225
if 
  not Char.IsSittingInCar($10736, $a_pickup_car)
goto_if_false @VALET_14155
set_var_int_to_var_int $valet_pickup_car = $a_pickup_car
Car.SetStraightLineDistance($valet_pickup_car, 1)

:VALET_14155
3@ = Char.GetScriptTaskStatus($10736, 1560)
if 
  is_int_lvar_equal_to_constant 3@ == 1
goto_if_false @VALET_14225
3@ = Char.GetSequenceProgress($10736)
if 
  3@ == 1
goto_if_false @VALET_14225
set_var_int_to_var_int $valet_pickup_car = $a_pickup_car
Car.SetStraightLineDistance($valet_pickup_car, 1)

:VALET_14225
if 
  $10736 == -1
goto_if_false @VALET_14258
set_var_int_to_var_int $valet_pickup_car = $a_pickup_car
Car.SetStraightLineDistance($valet_pickup_car, 1)

:VALET_14258
$10741 = Char.GetCarIsUsing($scplayer)
if 
  is_int_var_equal_to_int_var $10741 == $valet_pickup_car
goto_if_false @VALET_14292
$valet_pickup_car = 0

:VALET_14292
if 
  is_int_var_equal_to_int_var $valet_pickup_car == $a_pickup_car
goto_if_false @VALET_14592
if 
  not Car.IsDead($a_pickup_car)
goto_if_false @VALET_14479
30@ = Car.GetMaximumNumberOfPassengers($a_pickup_car)
6@ = 0

:VALET_14342
if 
  is_int_lvar_greater_than_int_lvar 30@ > 6@
goto_if_false @VALET_14479
if 
  not Car.IsPassengerSeatFree($a_pickup_car, 6@)
goto_if_false @VALET_14465
$10739 = Car.GetCharInPassengerSeat($a_pickup_car, 6@)
if 
  not Char.IsDead($10739)
goto_if_false @VALET_14465
if 
  Char.IsSittingInCar($10739, $a_pickup_car)
goto_if_false @VALET_14465
3@ = Char.GetScriptTaskStatus($10739, 1502)
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_14465
Char.MarkAsNoLongerNeeded($10739)
Task.WanderStandard($10739)

:VALET_14465
6@ += 1
goto @VALET_14342

:VALET_14479
if 
  $valet_task[0] == 2
goto_if_false @VALET_14519
$valet_task[0] = 7
set_var_int_to_var_int $valet_car[0] = $valet_pickup_car
goto @VALET_14592

:VALET_14519
if 
  $valet_task[1] == 2
goto_if_false @VALET_14559
$valet_task[1] = 7
set_var_int_to_var_int $valet_car[1] = $valet_pickup_car
goto @VALET_14592

:VALET_14559
if 
  $valet_task[2] == 2
goto_if_false @VALET_14592
$valet_task[2] = 7
set_var_int_to_var_int $valet_car[2] = $valet_pickup_car

:VALET_14592
$a_pickup_car = 0

:VALET_14599
if 
  $create_drop_off_car_now == 1
goto_if_false @VALET_16027
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 10@
goto_if_false @VALET_16027
$debug_this = 3
$drop_off_car = 0
$10741 = World.GetRandomCarOfTypeInAreaNoSave($10834($val_Area,4f), $10838($val_Area,4f), $10842($val_Area,4f), $10846($val_Area,4f), -1)
if 
  $10741 <> -1
goto_if_false @VALET_14941
if 
  not Car.IsDead($10741)
goto_if_false @VALET_14941
24@ = Car.GetHeading($10741)
set_lvar_float_to_lvar_float 13@ = 24@
sub_float_var_from_float_lvar 13@ -= $10850($val_Area,4f)
13@ = Math.Abs()
if 
  45.0 > 13@
goto_if_false @VALET_14941
12@ = Car.GetClass($10741)
if or
  is_int_lvar_equal_to_constant 12@ == 0
  is_int_lvar_equal_to_constant 12@ == 1
  is_int_lvar_equal_to_constant 12@ == 2
  is_int_lvar_equal_to_constant 12@ == 3
goto_if_false @VALET_14941
12@ = Car.GetModel($10741)
if or
  not is_int_lvar_equal_to_constant 12@ == 596
  not is_int_lvar_equal_to_constant 12@ == 420
goto_if_false @VALET_14941
$10737 = Car.GetDriver($10741)
if 
  $10737 <> -1
goto_if_false @VALET_14941
if 
  not Char.IsDead($10737)
goto_if_false @VALET_14941
3@ = Char.GetScriptTaskStatus($10737, 1490)
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_14941
set_var_int_to_var_int $drop_off_car = $10741
Car.SetCanGoAgainstTraffic($drop_off_car, False)

:VALET_14941
if 
  $drop_off_car == 0
goto_if_false @VALET_15250
$10741 = World.GetRandomCarOfTypeInAreaNoSave($10854($val_Area,4f), $10858($val_Area,4f), $10862($val_Area,4f), $10866($val_Area,4f), -1)
if 
  $10741 <> -1
goto_if_false @VALET_15250
if 
  not Car.IsDead($10741)
goto_if_false @VALET_15250
24@ = Car.GetHeading($10741)
set_lvar_float_to_lvar_float 13@ = 24@
sub_float_var_from_float_lvar 13@ -= $10870($val_Area,4f)
13@ = Math.Abs()
if 
  45.0 > 13@
goto_if_false @VALET_15250
12@ = Car.GetClass($10741)
if or
  is_int_lvar_equal_to_constant 12@ == 0
  is_int_lvar_equal_to_constant 12@ == 1
  is_int_lvar_equal_to_constant 12@ == 2
  is_int_lvar_equal_to_constant 12@ == 3
goto_if_false @VALET_15250
12@ = Car.GetModel($10741)
if or
  not is_int_lvar_equal_to_constant 12@ == 596
  not is_int_lvar_equal_to_constant 12@ == 420
goto_if_false @VALET_15250
$10737 = Car.GetDriver($10741)
if 
  $10737 <> -1
goto_if_false @VALET_15250
if 
  not Char.IsDead($10737)
goto_if_false @VALET_15250
3@ = Char.GetScriptTaskStatus($10737, 1490)
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_15250
set_var_int_to_var_int $drop_off_car = $10741
Car.SetCanGoAgainstTraffic($drop_off_car, False)

:VALET_15250
if or
  $player_on_valet_mission == 1
  $force_valet_on_mission > 0
goto_if_false @VALET_15729
if 
  $drop_off_car == 0
goto_if_false @VALET_15729
15@ += 1
if 
  15@ == 6
goto_if_false @VALET_15420
6@ = Math.RandomIntInRange(0, 3)
if 
  6@ == 0
goto_if_false @VALET_15358
Streaming.RequestModel(436)
set_lvar_int_to_constant 14@ = 436

:VALET_15358
if 
  6@ == 1
goto_if_false @VALET_15389
Streaming.RequestModel(533)
set_lvar_int_to_constant 14@ = 533

:VALET_15389
if 
  6@ == 2
goto_if_false @VALET_15420
Streaming.RequestModel(507)
set_lvar_int_to_constant 14@ = 507

:VALET_15420
if 
  15@ >= 6
goto_if_false @VALET_15729
if 
  14@ <> 0
goto_if_false @VALET_15729
if 
  Streaming.HasModelLoaded(14@)
goto_if_false @VALET_15729
if 
  not Camera.IsPointOnScreen($10886($val_Area,4f), $10890($val_Area,4f), $10894($val_Area,4f), 5.0)
goto_if_false @VALET_15604
World.ClearArea($10886($val_Area,4f), $10890($val_Area,4f), $10894($val_Area,4f), 5.0, False)
$drop_off_car = Car.Create(14@, $10886($val_Area,4f), $10890($val_Area,4f), $10894($val_Area,4f))
Car.SetHeading($drop_off_car, $10898($val_Area,4f))
$10737 = Char.CreateRandomAsDriver($drop_off_car)
Car.SetCanGoAgainstTraffic($drop_off_car, False)
goto @VALET_15729

:VALET_15604
if 
  not Camera.IsPointOnScreen($10902($val_Area,4f), $10906($val_Area,4f), $10910($val_Area,4f), 5.0)
goto_if_false @VALET_15729
World.ClearArea($10902($val_Area,4f), $10906($val_Area,4f), $10910($val_Area,4f), 5.0, False)
$drop_off_car = Car.Create(14@, $10902($val_Area,4f), $10906($val_Area,4f), $10910($val_Area,4f))
Car.SetHeading($drop_off_car, $10914($val_Area,4f))
$10737 = Char.CreateRandomAsDriver($drop_off_car)
Car.SetCanGoAgainstTraffic($drop_off_car, False)

:VALET_15729
if 
  $drop_off_car <> 0
goto_if_false @VALET_16027
$create_drop_off_car_now = 0
if and
  not Char.IsDead($10737)
  not Car.IsDead($drop_off_car)
goto_if_false @VALET_15997
if 
  $sc3_missioncar_alive == 1
goto_if_false @VALET_15802
Car.ChangeColor($drop_off_car, 3, 3)

:VALET_15802
Char.MarkAsNoLongerNeeded($10737)
11@ = Sequence.Open()
if 
  $onmission == 0
goto_if_false @VALET_15869
Task.CarDriveToCoord(-1, $drop_off_car, $10874($val_Area,4f), $10878($val_Area,4f), $10882($val_Area,4f), 17.0, DriveMode.Normal, 0, DrivingMode.StopForCars)

:VALET_15869
if 
  $onmission == 1
goto_if_false @VALET_15926
Task.CarDriveToCoord(-1, $drop_off_car, $10874($val_Area,4f), $10878($val_Area,4f), $10882($val_Area,4f), 17.0, DriveMode.Normal, 0, DrivingMode.AvoidCars)

:VALET_15926
Task.WanderStandard(-1)
Sequence.Close(11@)
if 
  not Char.IsDead($10737)
goto_if_false @VALET_15958
Char.SetCantBeDraggedOut($10737, True)

:VALET_15958
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_15984
set_var_int_to_var_int $valet_mission_flag = $drop_off_car

:VALET_15984
Char.PerformSequence($10737, 11@)
Sequence.Clear(11@)

:VALET_15997
if 
  14@ <> 0
goto_if_false @VALET_16027
Streaming.MarkModelAsNoLongerNeeded(14@)
14@ = 0

:VALET_16027
return 

:VALET_16029
if or
  $player_on_valet_mission == 1
  $playing_scrash1 == 1
goto_if_false @VALET_16398
if and
  $last_player_y <> -1
  not is_int_var_equal_to_int_var $last_player_y == $sc3_missioncar
  not is_int_var_equal_to_int_var $last_player_y == $valet_spawn_h2
goto_if_false @VALET_16398
if 
  not is_int_var_equal_to_int_var $valet_time_bonus == $last_player_y
goto_if_false @VALET_16398
if 
  not Car.IsDead($last_player_y)
goto_if_false @VALET_16398
$x, $y, $z = Car.GetCoordinates($last_player_y)
if or
  -1760.178 > $x
  972.2405 > $y
  16.1633 > $z
  $x > -1679.605
  $y > 1064.293
  $z > 24.8629
goto_if_false @VALET_16398
if 
  not Char.IsInCar($scplayer, $last_player_y)
goto_if_false @VALET_16398
if 
  not Car.IsOnScreen($last_player_y)
goto_if_false @VALET_16255
Car.Delete($last_player_y)
goto @VALET_16398

:VALET_16255
$10739 = Car.GetDriver($last_player_y)
if 
  $10739 == -1
goto_if_false @VALET_16398
if 
  not Char.LocateAnyMeansCar3D($scplayer, $last_player_y, 8.0, 8.0, 8.0, False)
goto_if_false @VALET_16398
$10739 = Char.CreateRandom(0.0, 0.0, 0.0)
Char.MarkAsNoLongerNeeded($10739)
Car.MarkAsNoLongerNeeded($last_player_y)
if and
  not Char.IsDead($10739)
  not Car.IsDead($last_player_y)
goto_if_false @VALET_16398
Char.WarpIntoCar($10739, $last_player_y)
Task.CarDriveWander($10739, $last_player_y, 20.0, DrivingMode.AvoidCars)
$last_player_y = 0

:VALET_16398
return 

:VALET_16400
if 
  $valet_mission_completed == 0
goto_if_false @VALET_16787
Stat.PlayerMadeProgress(1)
Audio.PlayMissionPassedTune(1)
$valet_mission_completed = 1
Camera.DoFade(500, Fade.Out)

:VALET_16440
if 
  Camera.GetFadingStatus
goto_if_false @VALET_16464
wait 0
goto @VALET_16440

:VALET_16464
Text.ClearPrints
if 
  Player.IsPlaying($player1)
goto_if_false @VALET_16749
Player.SetControl($player1, False)
Hud.SwitchWidescreen(True)
$car_gen_desert1_pcj = Pickup.CreateProtection(-1757.668, 961.7819, 24.3828, 2000, 2000)
Streaming.LoadScene(-1757.668, 961.7819, 24.3828)
Camera.SetFixedPosition(-1761.832, 910.2675, 30.7224, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1761.689, 911.2571, 30.7291, SwitchType.JumpCut)
Camera.DoFade(500, Fade.In)

:VALET_16594
if 
  Camera.GetFadingStatus
goto_if_false @VALET_16618
wait 0
goto @VALET_16594

:VALET_16618
Audio.PlayMissionPassedTune(2)
Text.PrintBig('ASS_ACQ', 5000, TextStyle.WhiteMiddleSmaller)
wait 5000
Camera.SetFixedPosition(-1748.38, 951.821, 27.5455, 0.0, 0.0, 0.0)
Camera.PointAtPoint(-1748.938, 952.5872, 27.2272, SwitchType.JumpCut)
Text.PrintWithNumberNow('ASS_LUV', 2000, 6000, 1)
wait 6000
Camera.DoFade(500, Fade.Out)

:VALET_16725
if 
  Camera.GetFadingStatus
goto_if_false @VALET_16749
wait 0
goto @VALET_16725

:VALET_16749
if 
  Player.IsPlaying($player1)
goto_if_false @VALET_16787
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Hud.SwitchWidescreen(False)
Player.SetControl($player1, True)
Camera.DoFade(500, Fade.In)

:VALET_16787
Text.PrintBig('VAL_A33', 5000, TextStyle.Middle)
$10926 = 8
return 

:VALET_16812
Streaming.MarkModelAsNoLongerNeeded(189)
Char.MarkAsNoLongerNeeded($valet[0])
Char.MarkAsNoLongerNeeded($valet[1])
Char.MarkAsNoLongerNeeded($valet[2])
Hud.ClearCounter($10927)
Hud.ClearTimer($10925)
Hud.ClearCounter($10923)
DecisionMaker.Remove(7@)
if 
  not Char.IsDead($valet[0])
goto_if_false @VALET_16873
Char.Delete($valet[0])

:VALET_16873
if 
  not Char.IsDead($valet[1])
goto_if_false @VALET_16894
Char.Delete($valet[1])

:VALET_16894
if 
  not Char.IsDead($valet[2])
goto_if_false @VALET_16915
Char.Delete($valet[2])

:VALET_16915
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_16944
World.SetPedDensityMultiplier(1.0)
Game.SwitchEmergencyServices(True)

:VALET_16944
$valet_task[0] = 1
$valet_task[1] = 1
$valet_task[2] = 1
4@ = 0
$10922 = 0
if 
  not Car.IsDead($valet_spawn_h2)
goto_if_false @VALET_17035
if 
  not Char.IsDead($scplayer)
goto_if_false @VALET_17035
if 
  not Char.IsInCar($scplayer, $valet_spawn_h2)
goto_if_false @VALET_17035
Car.Delete($valet_spawn_h2)

:VALET_17035
if 
  not Car.IsDead($valet_car[0])
goto_if_false @VALET_17091
if 
  not Char.IsDead($scplayer)
goto_if_false @VALET_17091
if 
  not Char.IsInCar($scplayer, $valet_car[0])
goto_if_false @VALET_17091
Car.Delete($valet_car[0])

:VALET_17091
if 
  not Car.IsDead($valet_car[1])
goto_if_false @VALET_17147
if 
  not Char.IsDead($scplayer)
goto_if_false @VALET_17147
if 
  not Char.IsInCar($scplayer, $valet_car[1])
goto_if_false @VALET_17147
Car.Delete($valet_car[1])

:VALET_17147
if 
  not Car.IsDead($valet_car[2])
goto_if_false @VALET_17203
if 
  not Char.IsDead($scplayer)
goto_if_false @VALET_17203
if 
  not Char.IsInCar($scplayer, $valet_car[2])
goto_if_false @VALET_17203
Car.Delete($valet_car[2])

:VALET_17203
if 
  not Car.IsDead($valet_pickup_car)
goto_if_false @VALET_17259
if 
  not Char.IsDead($scplayer)
goto_if_false @VALET_17259
if 
  not Char.IsInCar($scplayer, $valet_pickup_car)
goto_if_false @VALET_17259
Car.Delete($valet_pickup_car)

:VALET_17259
if 
  not Car.IsDead($drop_off_car)
goto_if_false @VALET_17315
if 
  not Char.IsDead($scplayer)
goto_if_false @VALET_17315
if 
  not Char.IsInCar($scplayer, $drop_off_car)
goto_if_false @VALET_17315
Car.Delete($drop_off_car)

:VALET_17315
$valet_mission_dead = 0
$1898 = 0
$1899 = 0
$valet_spawn_h2 = 0
$valet_car[0] = 0
$valet_car[1] = 0
$valet_car[2] = 0
$valet_pickup_car = 0
$debug_this = 4
$drop_off_car = 0
$10926 = 0
$last_player_x = 0
$force_valet_cleanup = 0
$valet_scene_running = 0
Blip.Remove(20@)
Blip.Remove(19@)
terminate_this_script 
return 
terminate_this_script 

//-------------External script 73 (PHOTO)---------------

:PHOTO
script_name 'PHOTO'
2@ = 0
if 
  2@ == 1
goto_if_false @PHOTO_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:PHOTO_60
Streaming.RequestAnimation("CAMERA")
Streaming.RequestModel(367)

:PHOTO_75
if 
  not Streaming.HasModelLoaded(367)
goto_if_false @PHOTO_117
Streaming.RequestAnimation("CAMERA")
Streaming.RequestModel(367)
wait 0
goto @PHOTO_75

:PHOTO_117
if 
  not Streaming.HasAnimationLoaded("CAMERA")
goto_if_false @PHOTO_164
Streaming.RequestAnimation("CAMERA")
Streaming.RequestModel(367)
wait 0
goto @PHOTO_117

:PHOTO_164
3@ = 1
4@ = 0
if 
  not Char.IsDead(0@)
goto_if_false @PHOTO_204
Char.GiveWeapon(0@, WeaponType.Camera, 1000)

:PHOTO_204
wait 0
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
goto_if_false @PHOTO_306
if 
  Char.IsUsingMapAttractor(0@)
goto_if_false @PHOTO_292
if 
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @PHOTO_278
goto @PHOTO_2447
goto @PHOTO_285

:PHOTO_278
gosub @PHOTO_320

:PHOTO_285
goto @PHOTO_299

:PHOTO_292
gosub @PHOTO_2405

:PHOTO_299
goto @PHOTO_313

:PHOTO_306
gosub @PHOTO_2405

:PHOTO_313
goto @PHOTO_204

:PHOTO_320
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PHOTO_397 {caseNum1} 1 {caseLabel1} @PHOTO_383 {caseNum2} -1 {caseLabel2} @PHOTO_397 {caseNum3} -1 {caseLabel3} @PHOTO_397 {caseNum4} -1 {caseLabel4} @PHOTO_397 {caseNum5} -1 {caseLabel5} @PHOTO_397 {caseNum6} -1 {caseLabel6} @PHOTO_397 {caseNum7} -1 {caseLabel7} @PHOTO_397

:PHOTO_383
gosub @PHOTO_399
goto @PHOTO_397

:PHOTO_397
return 

:PHOTO_399
switch_start 4@ {numCases} 13 {hasDefaultCase} 0 {defaultLabel} @PHOTO_2403 {caseNum1} 0 {caseLabel1} @PHOTO_527 {caseNum2} 1 {caseLabel2} @PHOTO_587 {caseNum3} 2 {caseLabel3} @PHOTO_744 {caseNum4} 3 {caseLabel4} @PHOTO_912 {caseNum5} 4 {caseLabel5} @PHOTO_1047 {caseNum6} 5 {caseLabel6} @PHOTO_1172 {caseNum7} 6 {caseLabel7} @PHOTO_1414
switch_continued 7 {caseLabel1} @PHOTO_1540 {caseNum2} 8 {caseLabel2} @PHOTO_1704 {caseNum3} 9 {caseLabel3} @PHOTO_1777 {caseNum4} 10 {caseLabel4} @PHOTO_1902 {caseNum5} 11 {caseLabel5} @PHOTO_2144 {caseNum6} 12 {caseLabel6} @PHOTO_2277 {caseNum7} -1 {caseLabel7} @PHOTO_2403 {caseNum8} -1 {caseLabel8} @PHOTO_2403 {caseNum9} -1 {caseLabel9} @PHOTO_2403

:PHOTO_527
Task.PlayAnim(0@, "CAMSTND_IDLELOOP", "CAMERA", 4.0, False, False, False, True, -1)
4@ += 1
goto @PHOTO_2403

:PHOTO_587
if 
  Char.IsPlayingAnim(0@, "CAMSTND_IDLELOOP")
goto_if_false @PHOTO_737
7@ = Char.GetAnimCurrentTime(0@, "CAMSTND_IDLELOOP")
if 
  7@ >= 1.0
goto_if_false @PHOTO_737
2@ = Math.RandomIntInRange(5000, 8000)
Task.PlayAnim(0@, "CAMSTND_LKABT", "CAMERA", 4.0, True, False, False, True, 2@)
TIMERB = 0
4@ += 1

:PHOTO_737
goto @PHOTO_2403

:PHOTO_744
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 2@
goto_if_false @PHOTO_905
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @PHOTO_852
Task.PlayAnim(0@, "CAMSTND_TO_CAMCRCH", "CAMERA", 4.0, False, False, False, True, -1)
4@ = 7
goto @PHOTO_905

:PHOTO_852
Task.PlayAnim(0@, "CAMSTND_IDLELOOP", "CAMERA", 4.0, False, False, False, True, -1)
4@ = 3

:PHOTO_905
goto @PHOTO_2403

:PHOTO_912
if 
  Char.IsPlayingAnim(0@, "CAMSTND_IDLELOOP")
goto_if_false @PHOTO_1040
7@ = Char.GetAnimCurrentTime(0@, "CAMSTND_IDLELOOP")
if 
  7@ >= 1.0
goto_if_false @PHOTO_1040
Task.PlayAnim(0@, "PICSTND_IN", "CAMERA", 4.0, False, False, False, True, -1)
4@ += 1

:PHOTO_1040
goto @PHOTO_2403

:PHOTO_1047
if 
  Char.IsPlayingAnim(0@, "PICSTND_IN")
goto_if_false @PHOTO_1165
7@ = Char.GetAnimCurrentTime(0@, "PICSTND_IN")
if 
  7@ >= 1.0
goto_if_false @PHOTO_1165
Task.PlayAnim(0@, "PICSTND_TAKE", "CAMERA", 4.0, False, False, False, True, -1)
4@ += 1

:PHOTO_1165
goto @PHOTO_2403

:PHOTO_1172
if 
  Char.IsPlayingAnim(0@, "PICSTND_TAKE")
goto_if_false @PHOTO_1407
7@ = Char.GetAnimCurrentTime(0@, "PICSTND_TAKE")
if and
  7@ > 0.5
  1.0 > 7@
  6@ == 0
goto_if_false @PHOTO_1331
8@, 9@, 10@ = Char.GetOffsetInWorldCoords(0@, 0.0, 0.5, 0.0)
Fx.DrawLightWithRange(8@, 9@, 10@, 255, 255, 255, 50.0)
Audio.ReportMissionAudioEventAtChar(0@, 1132)
6@ = 1

:PHOTO_1331
if 
  7@ >= 1.0
goto_if_false @PHOTO_1407
Task.PlayAnim(0@, "PICSTND_OUT", "CAMERA", 4.0, False, False, False, True, -1)
6@ = 0
4@ += 1

:PHOTO_1407
goto @PHOTO_2403

:PHOTO_1414
if 
  Char.IsPlayingAnim(0@, "PICSTND_OUT")
goto_if_false @PHOTO_1533
7@ = Char.GetAnimCurrentTime(0@, "PICSTND_OUT")
if 
  7@ >= 1.0
goto_if_false @PHOTO_1533
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @PHOTO_1526
4@ = 0
goto @PHOTO_1533

:PHOTO_1526
gosub @PHOTO_2405

:PHOTO_1533
goto @PHOTO_2403

:PHOTO_1540
if 
  Char.IsPlayingAnim(0@, "CAMSTND_TO_CAMCRCH")
goto_if_false @PHOTO_1697
7@ = Char.GetAnimCurrentTime(0@, "CAMSTND_TO_CAMCRCH")
if 
  7@ >= 1.0
goto_if_false @PHOTO_1697
2@ = Math.RandomIntInRange(5000, 8000)
Task.PlayAnim(0@, "CAMCRCH_IDLELOOP", "CAMERA", 4.0, True, False, False, True, 2@)
TIMERB = 0
4@ += 1

:PHOTO_1697
goto @PHOTO_2403

:PHOTO_1704
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 2@
goto_if_false @PHOTO_1770
Task.PlayAnim(0@, "PICCRCH_IN", "CAMERA", 4.0, False, False, False, True, -1)
4@ += 1

:PHOTO_1770
goto @PHOTO_2403

:PHOTO_1777
if 
  Char.IsPlayingAnim(0@, "PICCRCH_IN")
goto_if_false @PHOTO_1895
7@ = Char.GetAnimCurrentTime(0@, "PICCRCH_IN")
if 
  7@ >= 1.0
goto_if_false @PHOTO_1895
Task.PlayAnim(0@, "PICCRCH_TAKE", "CAMERA", 4.0, False, False, False, True, -1)
4@ += 1

:PHOTO_1895
goto @PHOTO_2403

:PHOTO_1902
if 
  Char.IsPlayingAnim(0@, "PICCRCH_TAKE")
goto_if_false @PHOTO_2137
7@ = Char.GetAnimCurrentTime(0@, "PICCRCH_TAKE")
if and
  7@ > 0.5
  1.0 > 7@
  6@ == 0
goto_if_false @PHOTO_2061
8@, 9@, 10@ = Char.GetOffsetInWorldCoords(0@, 0.0, 0.6, 0.0)
Fx.DrawLightWithRange(8@, 9@, 10@, 255, 255, 255, 50.0)
Audio.ReportMissionAudioEventAtChar(0@, 1132)
6@ = 1

:PHOTO_2061
if 
  7@ >= 1.0
goto_if_false @PHOTO_2137
Task.PlayAnim(0@, "PICCRCH_OUT", "CAMERA", 4.0, False, False, False, True, -1)
6@ = 0
4@ += 1

:PHOTO_2137
goto @PHOTO_2403

:PHOTO_2144
if 
  Char.IsPlayingAnim(0@, "PICCRCH_OUT")
goto_if_false @PHOTO_2270
7@ = Char.GetAnimCurrentTime(0@, "PICCRCH_OUT")
if 
  7@ >= 1.0
goto_if_false @PHOTO_2270
Task.PlayAnim(0@, "CAMCRCH_TO_CAMSTND", "CAMERA", 4.0, False, False, False, False, -1)
4@ += 1

:PHOTO_2270
goto @PHOTO_2403

:PHOTO_2277
if 
  Char.IsPlayingAnim(0@, "PICCRCH_OUT")
goto_if_false @PHOTO_2396
7@ = Char.GetAnimCurrentTime(0@, "PICCRCH_OUT")
if 
  7@ >= 1.0
goto_if_false @PHOTO_2396
2@ = Math.RandomIntInRange(0, 100)
if 
  2@ > 50
goto_if_false @PHOTO_2389
4@ = 0
goto @PHOTO_2396

:PHOTO_2389
gosub @PHOTO_2405

:PHOTO_2396
goto @PHOTO_2403

:PHOTO_2403
return 

:PHOTO_2405
Streaming.RemoveAnimation("CAMERA")
if 
  not Char.IsDead(0@)
goto_if_false @PHOTO_2438
Char.RemoveWeapon(0@, WeaponType.Camera)

:PHOTO_2438
Streaming.MarkModelAsNoLongerNeeded(367)
terminate_this_script 
return 

:PHOTO_2447
wait 0
if 
  not Char.IsDead(0@)
goto_if_false @PHOTO_2511
5@ = Char.GetScriptTaskStatus(0@, 1506)
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @PHOTO_2504
Task.KillCharOnFoot(0@, $scplayer)

:PHOTO_2504
goto @PHOTO_2518

:PHOTO_2511
gosub @PHOTO_2405

:PHOTO_2518
goto @PHOTO_2447
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 74 (PRISONR)---------------

:PRISONR
script_name 'PRISONR'
2@ = 0
if 
  2@ == 1
goto_if_false @PRISONR_60
0@ = Char.Create(PedType.CivFemale, 0, 0.0, 0.0, 0.0)

:PRISONR_60
if 
  not Char.IsDead(0@)
goto_if_false @PRISONR_109
9@ = Char.GetPedType(0@)
if 
  is_int_lvar_equal_to_constant 9@ == 6
goto_if_false @PRISONR_109
Char.Delete(0@)
terminate_this_script 

:PRISONR_109
Streaming.RequestAnimation("GANGS")
Streaming.RequestModel(#CIGAR)

:PRISONR_122
if 
  not Streaming.HasAnimationLoaded("GANGS")
goto_if_false @PRISONR_153
wait 0
goto @PRISONR_122

:PRISONR_153
if 
  not Streaming.HasModelLoaded(#CIGAR)
goto_if_false @PRISONR_179
wait 0
goto @PRISONR_153

:PRISONR_179
if 
  not Char.IsDead(0@)
goto_if_false @PRISONR_266
6@, 7@, 8@ = Char.GetCoordinates(0@)
12@ = Object.Create(#CIGAR, 6@, 7@, 8@)
Task.PickUpObject(0@, 12@, 0.0, 0.1, -0.02, 6, 16, "NULL", "NULL", -1)

:PRISONR_266
3@ = 1
4@ = 0
10@ = 0

:PRISONR_287
wait 0
if and
  not Char.IsDead(0@)
  Player.IsPlaying($player1)
  $iTerminateAllAmbience == 0
goto_if_false @PRISONR_374
if 
  Char.HasBeenDamagedByChar(0@, $scplayer)
goto_if_false @PRISONR_360
Char.SetDecisionMaker(0@, $iGlobalPedPanicDM)
goto @PRISONR_1286
goto @PRISONR_367

:PRISONR_360
gosub @PRISONR_388

:PRISONR_367
goto @PRISONR_381

:PRISONR_374
gosub @PRISONR_1259

:PRISONR_381
goto @PRISONR_287

:PRISONR_388
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PRISONR_465 {caseNum1} 1 {caseLabel1} @PRISONR_451 {caseNum2} -1 {caseLabel2} @PRISONR_465 {caseNum3} -1 {caseLabel3} @PRISONR_465 {caseNum4} -1 {caseLabel4} @PRISONR_465 {caseNum5} -1 {caseLabel5} @PRISONR_465 {caseNum6} -1 {caseLabel6} @PRISONR_465 {caseNum7} -1 {caseLabel7} @PRISONR_465

:PRISONR_451
gosub @PRISONR_467
goto @PRISONR_465

:PRISONR_465
return 

:PRISONR_467
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @PRISONR_1257 {caseNum1} 0 {caseLabel1} @PRISONR_530 {caseNum2} 1 {caseLabel2} @PRISONR_943 {caseNum3} 2 {caseLabel3} @PRISONR_986 {caseNum4} 3 {caseLabel4} @PRISONR_1029 {caseNum5} 4 {caseLabel5} @PRISONR_1148 {caseNum6} -1 {caseLabel6} @PRISONR_1257 {caseNum7} -1 {caseLabel7} @PRISONR_1257

:PRISONR_530
9@ = Math.RandomIntInRange(0, 100)
if 
  9@ >= 80
goto_if_false @PRISONR_753
6@, 7@, 8@ = Char.GetCoordinates(0@)
11@ = World.GetRandomCharInSphere(6@, 7@, 8@, 2.0, True, True, True)
if and
  not Char.IsDead(11@)
  not is_int_lvar_equal_to_int_lvar 11@ == 0@
goto_if_false @PRISONR_649
Task.KillCharOnFoot(0@, 11@)
4@ = 2
goto @PRISONR_1257
goto @PRISONR_746

:PRISONR_649
Task.PlayAnim(0@, "SMKCIG_PRTL", "GANGS", 1.0, False, False, False, False, 0)
13@ = Particle.CreateOnChar("EXHALE", 0@, 0.0, 0.0, 0.0, 1)
Particle.AttachToCharBone(13@, 0@, 5)
4@ = 3
goto @PRISONR_1257

:PRISONR_746
goto @PRISONR_936

:PRISONR_753
if 
  9@ >= 30
goto_if_false @PRISONR_839
Task.PlayAnim(0@, "IDLE_CHAT", "PED", 1.0, True, False, False, False, 5000)
9@ = Char.SetSayContext(0@, 45)
4@ = 1
goto @PRISONR_1257
goto @PRISONR_936

:PRISONR_839
Task.PlayAnim(0@, "SMKCIG_PRTL", "GANGS", 1.0, False, False, False, False, 0)
13@ = Particle.CreateOnChar("EXHALE", 0@, 0.0, 0.0, 0.0, 1)
Particle.AttachToCharBone(13@, 0@, 5)
4@ = 3
goto @PRISONR_1257

:PRISONR_936
goto @PRISONR_1257

:PRISONR_943
9@ = Char.GetScriptTaskStatus(0@, 1541)
if 
  is_int_lvar_equal_to_constant 9@ == 7
goto_if_false @PRISONR_979
4@ = 0

:PRISONR_979
goto @PRISONR_1257

:PRISONR_986
9@ = Char.GetScriptTaskStatus(0@, 1506)
if 
  is_int_lvar_equal_to_constant 9@ == 7
goto_if_false @PRISONR_1022
4@ = 0

:PRISONR_1022
goto @PRISONR_1257

:PRISONR_1029
if 
  Char.IsPlayingAnim(0@, "SMKCIG_PRTL")
goto_if_false @PRISONR_1129
6@ = Char.GetAnimCurrentTime(0@, "SMKCIG_PRTL")
if and
  6@ >= 0.5
  1.0 > 6@
goto_if_false @PRISONR_1122
Particle.Play(13@)
4@ += 1

:PRISONR_1122
goto @PRISONR_1141

:PRISONR_1129
4@ = 0
Particle.Kill(13@)

:PRISONR_1141
goto @PRISONR_1257

:PRISONR_1148
if 
  Char.IsPlayingAnim(0@, "SMKCIG_PRTL")
goto_if_false @PRISONR_1238
6@ = Char.GetAnimCurrentTime(0@, "SMKCIG_PRTL")
if 
  6@ >= 1.0
goto_if_false @PRISONR_1231
Particle.Kill(13@)
4@ = 0

:PRISONR_1231
goto @PRISONR_1250

:PRISONR_1238
4@ = 0
Particle.Kill(13@)

:PRISONR_1250
goto @PRISONR_1257

:PRISONR_1257
return 

:PRISONR_1259
Streaming.RemoveAnimation("GANGS")
Streaming.MarkModelAsNoLongerNeeded(#CIGAR)
Object.Delete(12@)
Particle.Kill(13@)
terminate_this_script 
return 

:PRISONR_1286
wait 0
if and
  not Char.IsDead(0@)
  $iTerminateAllAmbience == 0
goto_if_false @PRISONR_1356
10@ = Char.GetScriptTaskStatus(0@, 1477)
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @PRISONR_1349
Task.Duck(0@, -2)

:PRISONR_1349
goto @PRISONR_1363

:PRISONR_1356
gosub @PRISONR_1259

:PRISONR_1363
goto @PRISONR_1286
write_debug_with_int "PEDSTATE" {_p2} 3@
write_debug_with_int "SUBSTATESTATUS" {_p2} 4@
write_debug_with_int "LOOP_TIMER" {_p2} TIMERB
write_debug_with_int "SCRIPT_TIMER" {_p2} TIMERA
return 
terminate_this_script 

//-------------External script 75 (CAMERA)---------------

:CAMERA
script_name 'CAMERA'
if 
  0@ == -100
goto_if_false @CAMERA_53
8@ = Char.Create(PedType.CivMale, 0, 0.0, 0.0, 0.0)

:CAMERA_53
3@ = 0
2@ = 0
1@ = 0
12@ = 0.0
13@ = 25.0
14@ = -25.0
Camera.SetPhotoEffect(False)

:CAMERA_108
wait 3@
if 
  Player.IsPlaying($player1)
goto_if_false @CAMERA_819
if 
  Char.HasGotWeapon($scplayer, WeaponType.Camera)
goto_if_false @CAMERA_722
gosub @CAMERA_3382
if 
  11@ == 1
goto_if_false @CAMERA_557
if 
  Char.IsStopped($scplayer)
goto_if_false @CAMERA_473
if 
  Char.IsCurrentWeapon($scplayer, WeaponType.Camera)
goto_if_false @CAMERA_385
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.RightShoulder1)
goto_if_false @CAMERA_306
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_001')
goto_if_false @CAMERA_247
Text.ClearHelp

:CAMERA_247
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_002')
goto_if_false @CAMERA_271
Text.ClearHelp

:CAMERA_271
3@ = 0
2@ = 0
4@ = 0
gosub @CAMERA_833
goto @CAMERA_378

:CAMERA_306
1@ = 0
if 
  not is_global_var_bit_set_const $iDateReport {n} 1
goto_if_false @CAMERA_338
gosub @CAMERA_1963

:CAMERA_338
if 
  2@ > 0
goto_if_false @CAMERA_370
3@ = 0
goto @CAMERA_378

:CAMERA_370
3@ = 500

:CAMERA_378
goto @CAMERA_466

:CAMERA_385
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_001')
goto_if_false @CAMERA_409
Text.ClearHelp

:CAMERA_409
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_002')
goto_if_false @CAMERA_433
Text.ClearHelp

:CAMERA_433
Camera.SetPhotoEffect(False)
3@ = 500
1@ = 0
2@ = 0
4@ = 0

:CAMERA_466
goto @CAMERA_550

:CAMERA_473
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_001')
goto_if_false @CAMERA_497
Text.ClearHelp

:CAMERA_497
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_002')
goto_if_false @CAMERA_521
Text.ClearHelp

:CAMERA_521
3@ = 500
1@ = 0
2@ = 0
4@ = 0

:CAMERA_550
goto @CAMERA_715

:CAMERA_557
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_001')
goto_if_false @CAMERA_581
Text.ClearHelp

:CAMERA_581
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_002')
goto_if_false @CAMERA_605
Text.ClearHelp

:CAMERA_605
Camera.SetPhotoEffect(False)
3@ = 500
1@ = 0
2@ = 0
4@ = 0
if 
  2@ >= 3
goto_if_false @CAMERA_715
if 
  not Char.IsDead(8@)
goto_if_false @CAMERA_715
Char.FreezePosition(8@, False)
Char.SetVisible(8@, True)
if and
  $onmission == 0
  5@ == 0
goto_if_false @CAMERA_715
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:CAMERA_715
goto @CAMERA_812

:CAMERA_722
if 
  2@ >= 3
goto_if_false @CAMERA_805
Streaming.RequestModel(367)
3@ = 0
gosub @CAMERA_3382
if 
  11@ == 1
goto_if_false @CAMERA_791
gosub @CAMERA_1963
goto @CAMERA_798

:CAMERA_791
gosub @CAMERA_3556

:CAMERA_798
goto @CAMERA_812

:CAMERA_805
gosub @CAMERA_3556

:CAMERA_812
goto @CAMERA_826

:CAMERA_819
gosub @CAMERA_3556

:CAMERA_826
goto @CAMERA_108

:CAMERA_833
switch_start 1@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CAMERA_1961 {caseNum1} 0 {caseLabel1} @CAMERA_896 {caseNum2} 1 {caseLabel2} @CAMERA_998 {caseNum3} 2 {caseLabel3} @CAMERA_1361 {caseNum4} 3 {caseLabel4} @CAMERA_1542 {caseNum5} 4 {caseLabel5} @CAMERA_1730 {caseNum6} -1 {caseLabel6} @CAMERA_1961 {caseNum7} -1 {caseLabel7} @CAMERA_1961

:CAMERA_896
6@, 7@ = Group.GetSize($Players_Group)
if 
  7@ > 0
goto_if_false @CAMERA_991
if 
  7@ > 3
goto_if_false @CAMERA_950
7@ = 3

:CAMERA_950
6@ = 0
7@ -= 1
15@ = 3.0
15@ += 0.2
1@ += 1

:CAMERA_991
goto @CAMERA_1961

:CAMERA_998
19@, 20@, 21@ = Char.GetCoordinates($scplayer)
16@, 17@, 18@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 3.0, 0.0)
18@ = World.GetGroundZFor3DCoord(16@, 17@, 18@)
sub_float_lvar_from_float_lvar 21@ -= 18@
if or
  21@ > 2.5
  -2.5 > 21@
goto_if_false @CAMERA_1108
1@ = -1
goto @CAMERA_1961

:CAMERA_1108
19@, 20@, 21@ = Char.GetCoordinates($scplayer)
16@, 17@, 18@ = Char.GetOffsetInWorldCoords($scplayer, 0.0, 6.0, 0.0)
18@ = World.GetGroundZFor3DCoord(16@, 17@, 18@)
sub_float_lvar_from_float_lvar 21@ -= 18@
if or
  21@ > 2.5
  -2.5 > 21@
goto_if_false @CAMERA_1218
1@ = -1
goto @CAMERA_1961

:CAMERA_1218
16@, 17@, 18@ = Char.GetOffsetInWorldCoords($scplayer, 0.5, 0.0, 0.0)
19@, 20@, 21@ = Char.GetOffsetInWorldCoords($scplayer, -0.5, 0.0, 0.0)
if 
  not World.IsFlameInAngledArea2D(16@, 17@, 19@, 20@, 7.0, False)
goto_if_false @CAMERA_1340
6@ = Char.SetSayContext($scplayer, 330)
6@ = 0
1@ += 1
goto @CAMERA_1354

:CAMERA_1340
1@ = -1
goto @CAMERA_1961

:CAMERA_1354
goto @CAMERA_1961

:CAMERA_1361
if 
  is_int_lvar_greater_than_int_lvar 6@ > 7@
goto_if_false @CAMERA_1408
6@ = 0
10@ = 0
1@ += 1
goto @CAMERA_1535

:CAMERA_1408
8@ = Group.GetMember($Players_Group, 6@)
if 
  not Char.IsDead(8@)
goto_if_false @CAMERA_1528
if and
  not Char.IsRespondingToEvent(8@, 36)
  not Char.IsRespondingToEvent(8@, 37)
  not Char.IsShooting(8@)
goto_if_false @CAMERA_1528
if 
  3 > 6@
goto_if_false @CAMERA_1511
Task.GotoCharOffset(8@, $scplayer, 20000, 15@, 12@(6@,3f))
goto @CAMERA_1528

:CAMERA_1511
Task.GotoCharOffset(8@, $scplayer, 20000, 15@, 12@)

:CAMERA_1528
6@ += 1

:CAMERA_1535
goto @CAMERA_1961

:CAMERA_1542
if 
  is_int_lvar_greater_than_int_lvar 6@ > 7@
goto_if_false @CAMERA_1615
6@ = 0
if 
  is_int_lvar_greater_than_int_lvar 10@ > 7@
goto_if_false @CAMERA_1608
6@ = 0
10@ = 0
1@ += 1

:CAMERA_1608
goto @CAMERA_1723

:CAMERA_1615
8@ = Group.GetMember($Players_Group, 6@)
if 
  not Char.IsDead(8@)
goto_if_false @CAMERA_1716
if and
  not Char.IsRespondingToEvent(8@, 36)
  not Char.IsRespondingToEvent(8@, 37)
  not Char.IsShooting(8@)
goto_if_false @CAMERA_1716
9@ = Char.GetScriptTaskStatus(8@, 1704)
if 
  is_int_lvar_equal_to_constant 9@ == 7
goto_if_false @CAMERA_1716
Task.StandStill(8@, 5000)
10@ += 1

:CAMERA_1716
6@ += 1

:CAMERA_1723
goto @CAMERA_1961

:CAMERA_1730
if 
  is_int_lvar_greater_than_int_lvar 6@ > 7@
goto_if_false @CAMERA_1770
6@ = 0
1@ = -1
goto @CAMERA_1954

:CAMERA_1770
8@ = Group.GetMember($Players_Group, 6@)
if 
  not Char.IsDead(8@)
goto_if_false @CAMERA_1947
if 
  Char.IsOnScreen(8@)
goto_if_false @CAMERA_1947
if or
  Char.IsModel(8@, 195)
  Char.IsModel(8@, 192)
  Char.IsModel(8@, 191)
  Char.IsModel(8@, 190)
  Char.IsModel(8@, 193)
  Char.IsModel(8@, 194)
goto_if_false @CAMERA_1939
if 
  Streaming.HasAnimationLoaded("KISSING")
goto_if_false @CAMERA_1932
Task.PlayAnim(8@, "GFWAVE2", "KISSING", 4.0, False, False, False, False, 0)

:CAMERA_1932
goto @CAMERA_1947

:CAMERA_1939
Task.HandGesture(8@, $scplayer)

:CAMERA_1947
6@ += 1

:CAMERA_1954
goto @CAMERA_1961

:CAMERA_1961
return 

:CAMERA_1963
switch_start 2@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @CAMERA_3380 {caseNum1} 0 {caseLabel1} @CAMERA_2091 {caseNum2} 1 {caseLabel2} @CAMERA_2155 {caseNum3} 2 {caseLabel3} @CAMERA_2310 {caseNum4} 3 {caseLabel4} @CAMERA_2445 {caseNum5} 4 {caseLabel5} @CAMERA_2569 {caseNum6} 5 {caseLabel6} @CAMERA_2820 {caseNum7} 6 {caseLabel7} @CAMERA_3231
switch_continued 7 {caseLabel1} @CAMERA_3261 {caseNum2} -1 {caseLabel2} @CAMERA_3380 {caseNum3} -1 {caseLabel3} @CAMERA_3380 {caseNum4} -1 {caseLabel4} @CAMERA_3380 {caseNum5} -1 {caseLabel5} @CAMERA_3380 {caseNum6} -1 {caseLabel6} @CAMERA_3380 {caseNum7} -1 {caseLabel7} @CAMERA_3380 {caseNum8} -1 {caseLabel8} @CAMERA_3380 {caseNum9} -1 {caseLabel9} @CAMERA_3380

:CAMERA_2091
6@, 7@ = Group.GetSize($Players_Group)
if 
  7@ > 0
goto_if_false @CAMERA_2148
6@ = 0
7@ -= 1
2@ += 1
3@ = 0

:CAMERA_2148
goto @CAMERA_3380

:CAMERA_2155
if 
  is_int_lvar_greater_than_int_lvar 6@ > 7@
goto_if_false @CAMERA_2188
6@ = 0
goto @CAMERA_2303

:CAMERA_2188
8@ = Group.GetMember($Players_Group, 6@)
if 
  not Char.IsDead(8@)
goto_if_false @CAMERA_2296
if 
  Char.LocateAnyMeansChar3D($scplayer, 8@, 1.5, 1.5, 1.5, False)
goto_if_false @CAMERA_2296
if and
  not Text.IsHelpMessageBeingDisplayed
  4@ == 0
goto_if_false @CAMERA_2289
Text.PrintHelp('CAM_001')
4@ = 1

:CAMERA_2289
2@ += 1

:CAMERA_2296
6@ += 1

:CAMERA_2303
goto @CAMERA_3380

:CAMERA_2310
if and
  not Char.IsDead(8@)
  Char.IsGroupMember(8@, $Players_Group)
goto_if_false @CAMERA_2431
if and
  Char.LocateAnyMeansChar3D($scplayer, 8@, 2.5, 2.5, 2.5, False)
  Char.IsOnFoot($scplayer)
goto_if_false @CAMERA_2417
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
goto_if_false @CAMERA_2410
6@ = Char.SetSayContext($scplayer, 329)
2@ += 1

:CAMERA_2410
goto @CAMERA_2424

:CAMERA_2417
2@ = 0

:CAMERA_2424
goto @CAMERA_2438

:CAMERA_2431
2@ = 0

:CAMERA_2438
goto @CAMERA_3380

:CAMERA_2445
if and
  not Char.IsDead(8@)
  Char.IsGroupMember(8@, $Players_Group)
goto_if_false @CAMERA_2555
if and
  Char.LocateAnyMeansChar3D($scplayer, 8@, 2.5, 2.5, 2.5, False)
  Char.IsOnFoot($scplayer)
goto_if_false @CAMERA_2541
if 
  not Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
goto_if_false @CAMERA_2534
2@ += 1

:CAMERA_2534
goto @CAMERA_2548

:CAMERA_2541
2@ = 0

:CAMERA_2548
goto @CAMERA_2562

:CAMERA_2555
2@ = 0

:CAMERA_2562
goto @CAMERA_3380

:CAMERA_2569
if 
  not Char.IsDead(8@)
goto_if_false @CAMERA_2806
if and
  Char.LocateAnyMeansChar3D($scplayer, 8@, 3.0, 3.0, 2.0, False)
  Char.IsOnFoot($scplayer)
  Char.IsGroupMember(8@, $Players_Group)
goto_if_false @CAMERA_2792
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_001')
goto_if_false @CAMERA_2658
Text.ClearHelp

:CAMERA_2658
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_002')
goto_if_false @CAMERA_2682
Text.ClearHelp

:CAMERA_2682
Text.ClearPrints
Char.FreezePosition(8@, True)
Char.SetVisible(8@, False)
16@, 17@, 18@ = Char.GetCoordinates(8@)
18@ += 0.8
Camera.SetFixedPosition(16@, 17@, 18@, 0.0, 0.2, 0.0)
Camera.PointAtChar($scplayer, CameraMode.Fixed, SwitchType.JumpCut)
Camera.SetPhotoEffect(True)
10@ = Char.GetAmmoInWeapon($scplayer, WeaponType.Camera)
Char.RemoveWeapon($scplayer, WeaponType.Camera)
2@ += 1
goto @CAMERA_2799

:CAMERA_2792
2@ = 0

:CAMERA_2799
goto @CAMERA_2813

:CAMERA_2806
2@ = 0

:CAMERA_2813
goto @CAMERA_3380

:CAMERA_2820
if 
  not Char.IsDead(8@)
goto_if_false @CAMERA_3098
if and
  Char.IsGroupMember(8@, $Players_Group)
  Char.LocateAnyMeansChar3D($scplayer, 8@, 6.0, 6.0, 2.0, False)
  Char.IsOnFoot($scplayer)
goto_if_false @CAMERA_2951
Text.PrintHelpForever('CAM_002')
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.LeftShoulder1)
goto_if_false @CAMERA_2920
2@ += 1

:CAMERA_2920
if 
  Pad.IsButtonPressed(PadId.Pad1, Button.Triangle)
goto_if_false @CAMERA_2944
2@ = 7

:CAMERA_2944
goto @CAMERA_3091

:CAMERA_2951
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_001')
goto_if_false @CAMERA_2975
Text.ClearHelp

:CAMERA_2975
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_002')
goto_if_false @CAMERA_2999
Text.ClearHelp

:CAMERA_2999
Char.FreezePosition(8@, False)
Char.SetVisible(8@, True)
Camera.SetPhotoEffect(False)
Char.GiveWeapon($scplayer, WeaponType.Camera, 10@)
Char.SetCurrentWeapon($scplayer, WeaponType.Camera)
19@, 20@, 21@ = Camera.GetActiveCoordinates()
if and
  is_float_lvar_equal_to_float_lvar 19@ == 16@
  is_float_lvar_equal_to_float_lvar 20@ == 17@
  is_float_lvar_equal_to_float_lvar 21@ == 18@
goto_if_false @CAMERA_3084
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:CAMERA_3084
2@ = 0

:CAMERA_3091
goto @CAMERA_3224

:CAMERA_3098
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_001')
goto_if_false @CAMERA_3122
Text.ClearHelp

:CAMERA_3122
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_002')
goto_if_false @CAMERA_3146
Text.ClearHelp

:CAMERA_3146
19@, 20@, 21@ = Camera.GetActiveCoordinates()
if and
  is_float_lvar_equal_to_float_lvar 19@ == 16@
  is_float_lvar_equal_to_float_lvar 20@ == 17@
  is_float_lvar_equal_to_float_lvar 21@ == 18@
goto_if_false @CAMERA_3196
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:CAMERA_3196
Camera.SetPhotoEffect(False)
Char.GiveWeapon($scplayer, WeaponType.Camera, 10@)
Char.SetCurrentWeapon($scplayer, WeaponType.Camera)
2@ = 0

:CAMERA_3224
goto @CAMERA_3380

:CAMERA_3231
Text.ClearHelp
Text.ClearPrints
Camera.SetPhotoEffect(False)
Camera.TakePhoto(True)
wait 100
2@ += 1
goto @CAMERA_3380

:CAMERA_3261
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_001')
goto_if_false @CAMERA_3285
Text.ClearHelp

:CAMERA_3285
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_002')
goto_if_false @CAMERA_3309
Text.ClearHelp

:CAMERA_3309
Text.ClearPrints
if 
  not Char.IsDead(8@)
goto_if_false @CAMERA_3341
Char.FreezePosition(8@, False)
Char.SetVisible(8@, True)

:CAMERA_3341
Camera.SetBehindPlayer
Camera.RestoreJumpcut
Camera.SetPhotoEffect(False)
Char.GiveWeapon($scplayer, WeaponType.Camera, 10@)
Char.SetCurrentWeapon($scplayer, WeaponType.Camera)
2@ = 0
goto @CAMERA_3380

:CAMERA_3380
return 

:CAMERA_3382
11@ = 0
if 
  $onmission == 0
goto_if_false @CAMERA_3554
if 
  $flag_cell_nation == 0
goto_if_false @CAMERA_3554
if 
  $player_fall_state == 0
goto_if_false @CAMERA_3554
if 
  not is_global_var_bit_set_const $iDateReport {n} 20
goto_if_false @CAMERA_3554
if 
  not Game.IsMinigameInProgress
goto_if_false @CAMERA_3554
if 
  Char.IsOnFoot($scplayer)
goto_if_false @CAMERA_3554
if 
  not Game.IsGangWarFightingGoingOn
goto_if_false @CAMERA_3554
if 
  not Camera.GetFadingStatus
goto_if_false @CAMERA_3554
if 
  $iAreaCode == 0
goto_if_false @CAMERA_3554
if 
  not Cutscene.HasLoaded
goto_if_false @CAMERA_3554
11@ = 1

:CAMERA_3554
return 

:CAMERA_3556
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_001')
goto_if_false @CAMERA_3580
Text.ClearHelp

:CAMERA_3580
if 
  Text.IsThisHelpMessageBeingDisplayed('CAM_002')
goto_if_false @CAMERA_3604
Text.ClearHelp

:CAMERA_3604
if 
  not Char.IsDead(8@)
goto_if_false @CAMERA_3634
Char.FreezePosition(8@, False)
Char.SetVisible(8@, True)

:CAMERA_3634
if 
  $onmission == 0
goto_if_false @CAMERA_3731
if 
  2@ >= 3
goto_if_false @CAMERA_3727
19@, 20@, 21@ = Camera.GetActiveCoordinates()
if and
  is_float_lvar_equal_to_float_lvar 19@ == 16@
  is_float_lvar_equal_to_float_lvar 20@ == 17@
  is_float_lvar_equal_to_float_lvar 21@ == 18@
goto_if_false @CAMERA_3720
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:CAMERA_3720
goto @CAMERA_3731

:CAMERA_3727
Camera.SetBehindPlayer
Camera.RestoreJumpcut

:CAMERA_3731
6@ = 0

:CAMERA_3738
8@ = Group.GetMember($Players_Group, 6@)
Char.MarkAsNoLongerNeeded(8@)
6@ += 1
  6@ >= 3
goto_if_false @CAMERA_3738
Camera.SetPhotoEffect(False)
Streaming.MarkModelAsNoLongerNeeded(367)
terminate_this_script 
return 
return 
terminate_this_script 

//-------------External script 76 (DEBT)---------------

:DEBT
script_name 'DEBT'
0@ = 0
1@ = 0
2@ = 0
3@ = 0
4@ = 0
5@ = 0
6@ = 0
7@ = 0
8@ = 0
$game_timer = Clock.GetGameTimer()
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 50
set_lvar_int_to_var_int 10@ = $game_timer
10@ -= 10

:DEBT_109
wait 250
$game_timer = Clock.GetGameTimer()
if 
  0@ == 0
goto_if_false @DEBT_644
if 
  $onmission == 0
goto_if_false @DEBT_607
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_600
if 
  Player.IsPlaying($player1)
goto_if_false @DEBT_563
11@ = Streaming.GetAreaVisible()
if 
  11@ == 0
goto_if_false @DEBT_519
if 
  not Player.IsWantedLevelGreater($player1, 1)
goto_if_false @DEBT_475
if 
  not Char.IsInFlyingVehicle($scplayer)
goto_if_false @DEBT_431
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @DEBT_387
11@ = Player.StoreScore($player1)
if 
  11@ > -1
goto_if_false @DEBT_291

:DEBT_291
if 
  -5000 > 11@
goto_if_false @DEBT_317
1@ = 1

:DEBT_317
if 
  -50000 > 11@
goto_if_false @DEBT_345
1@ = 2

:DEBT_345
if 
  -500000 > 11@
goto_if_false @DEBT_373
1@ = 3

:DEBT_373
0@ += 1
goto @DEBT_424

:DEBT_387
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_424
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000

:DEBT_424
goto @DEBT_468

:DEBT_431
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_468
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 60000

:DEBT_468
goto @DEBT_512

:DEBT_475
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_512
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 60000

:DEBT_512
goto @DEBT_556

:DEBT_519
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_556
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 60000

:DEBT_556
goto @DEBT_600

:DEBT_563
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_600
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000

:DEBT_600
goto @DEBT_644

:DEBT_607
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_644
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000

:DEBT_644
if 
  0@ == 1
goto_if_false @DEBT_977

:DEBT_662
$game_timer = Clock.GetGameTimer()
if 
  Player.IsPlaying($player1)
goto_if_false @DEBT_945
$player_x, $player_y, $z = Char.GetCoordinates($scplayer)
set_var_float_to_var_float $x = $player_x
$x -= 200.0
$player_x += 200.0
$x = Math.RandomFloatInRange($x, $player_x)
set_var_float_to_var_float $y = $player_y
$y -= 200.0
$player_y += 200.0
$y = Math.RandomFloatInRange($y, $player_y)
$x, $y, $z, $heading = Path.GetClosestCarNodeWithHeading($x, $y, $z)
$player_x, $player_y, $player_z = Char.GetCoordinates($scplayer)
$distance = Math.GetDistanceBetweenCoords2D($player_x, $player_y, $x, $y)
if 
  1.0 > $z
goto_if_false @DEBT_861
wait 0
goto @DEBT_662

:DEBT_861
if 
  50.0 > $distance
goto_if_false @DEBT_893
wait 0
goto @DEBT_662

:DEBT_893
if 
  Camera.IsPointOnScreen($x, $y, $z, 4.0)
goto_if_false @DEBT_931
wait 0
goto @DEBT_662

:DEBT_931
0@ += 1
goto @DEBT_977

:DEBT_945
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000
0@ = 0

:DEBT_977
if 
  0@ == 2
goto_if_false @DEBT_1931
if and
  Streaming.HasModelLoaded(540)
  Streaming.HasModelLoaded(181)
  Streaming.HasModelLoaded(183)
  Streaming.HasModelLoaded(206)
  Streaming.HasModelLoaded(47)
  Streaming.HasModelLoaded(352)
goto_if_false @DEBT_1737
if 
  Streaming.HasModelLoaded(355)
goto_if_false @DEBT_1702
12@ = Car.Create(540, $x, $y, $z)
Car.SetHeading(12@, $heading)
Car.ChangeColor(12@, 75, 0)
Car.SetHealth(12@, 1500)
Car.SetDrivingStyle(12@, DrivingMode.AvoidCars)
StuckCarCheck.AddWithWarp(12@, 4.0, 4000, True, True, True, -1)
if 
  2@ == 1
goto_if_false @DEBT_1151
Streaming.MarkModelAsNoLongerNeeded(540)
2@ = 0

:DEBT_1151
13@ = Char.CreateInsideCar(12@, PedType.Mission1, 181)
if 
  3@ == 1
goto_if_false @DEBT_1194
Streaming.MarkModelAsNoLongerNeeded(181)
3@ = 0

:DEBT_1194
if 
  1@ > 0
goto_if_false @DEBT_1418
17@ = Group.Create(DefaultTaskAllocator.FollowAnyMeans)
Group.SetLeader(17@, 13@)
18@ = DecisionMakerGroup.Copy(-1)
DecisionMakerGroup.ClearEventResponse(18@, 41)
Group.SetDecisionMaker(17@, 18@)
14@ = Char.CreateAsPassenger(12@, PedType.Mission1, 183, 0)
if 
  4@ == 1
goto_if_false @DEBT_1294
Streaming.MarkModelAsNoLongerNeeded(183)
4@ = 0

:DEBT_1294
if 
  1@ > 1
goto_if_false @DEBT_1357
15@ = Char.CreateAsPassenger(12@, PedType.Mission1, 206, 1)
if 
  5@ == 1
goto_if_false @DEBT_1357
Streaming.MarkModelAsNoLongerNeeded(206)
5@ = 0

:DEBT_1357
if 
  1@ > 2
goto_if_false @DEBT_1418
16@ = Char.CreateAsPassenger(12@, PedType.Mission1, 47, 2)
if 
  6@ == 1
goto_if_false @DEBT_1418
Streaming.MarkModelAsNoLongerNeeded(47)
6@ = 0

:DEBT_1418
19@ = DecisionMakerChar.Copy(-1)
DecisionMakerChar.ClearEventResponse(19@, 41)
$temp_integer_4 = 0

:DEBT_1439
if 
  4 > $temp_integer_4
goto_if_false @DEBT_1628
if 
  not Char.IsDead(13@($temp_integer_4,4i))
goto_if_false @DEBT_1614
Char.SetDecisionMaker(13@($temp_integer_4,4i), 19@)
Char.SetOnlyDamagedByPlayer(13@($temp_integer_4,4i), True)
Char.SetRelationship(13@($temp_integer_4,4i), RelationshipType.Hate, PedType.Player1)
Char.SetMoney(13@($temp_integer_4,4i), 10000)
Char.SetKeepTask(13@($temp_integer_4,4i), True)
if or
  $temp_integer_4 == 0
  $temp_integer_4 == 2
goto_if_false @DEBT_1575
Char.GiveWeapon(13@($temp_integer_4,4i), WeaponType.MicroUzi, 9999)

:DEBT_1575
if or
  $temp_integer_4 == 1
  $temp_integer_4 == 3
goto_if_false @DEBT_1614
Char.GiveWeapon(13@($temp_integer_4,4i), WeaponType.Ak47, 9999)

:DEBT_1614
$temp_integer_4 += 1
goto @DEBT_1439

:DEBT_1628
if 
  7@ == 1
goto_if_false @DEBT_1658
Streaming.MarkModelAsNoLongerNeeded(352)
7@ = 0

:DEBT_1658
if 
  8@ == 1
goto_if_false @DEBT_1688
Streaming.MarkModelAsNoLongerNeeded(355)
8@ = 0

:DEBT_1688
0@ += 1
goto @DEBT_1730

:DEBT_1702
if 
  not Streaming.HasModelLoaded(355)
goto_if_false @DEBT_1730
Streaming.RequestModel(355)
8@ = 1

:DEBT_1730
goto @DEBT_1931

:DEBT_1737
if 
  not Streaming.HasModelLoaded(540)
goto_if_false @DEBT_1765
Streaming.RequestModel(540)
2@ = 1

:DEBT_1765
if 
  not Streaming.HasModelLoaded(181)
goto_if_false @DEBT_1793
Streaming.RequestModel(181)
3@ = 1

:DEBT_1793
if 
  not Streaming.HasModelLoaded(183)
goto_if_false @DEBT_1821
Streaming.RequestModel(183)
4@ = 1

:DEBT_1821
if 
  not Streaming.HasModelLoaded(206)
goto_if_false @DEBT_1849
Streaming.RequestModel(206)
5@ = 1

:DEBT_1849
if 
  not Streaming.HasModelLoaded(47)
goto_if_false @DEBT_1875
Streaming.RequestModel(47)
6@ = 1

:DEBT_1875
if 
  not Streaming.HasModelLoaded(352)
goto_if_false @DEBT_1903
Streaming.RequestModel(352)
7@ = 1

:DEBT_1903
if 
  not Streaming.HasModelLoaded(355)
goto_if_false @DEBT_1931
Streaming.RequestModel(355)
8@ = 1

:DEBT_1931
if 
  0@ == 3
goto_if_false @DEBT_3794
if 
  $onmission == 0
goto_if_false @DEBT_3699
if 
  Player.IsPlaying($player1)
goto_if_false @DEBT_3660
if 
  not Player.IsScoreGreater($player1, -1)
goto_if_false @DEBT_3637
11@ = Streaming.GetAreaVisible()
if 
  11@ == 0
goto_if_false @DEBT_3598
if 
  not Char.IsDead(13@)
goto_if_false @DEBT_3185
if 
  Char.LocateAnyMeansChar2D($scplayer, 13@, 500.0, 500.0, False)
goto_if_false @DEBT_3146
if 
  Char.IsSittingInAnyCar(13@)
goto_if_false @DEBT_2690
if 
  not Car.IsDead(12@)
goto_if_false @DEBT_2678
if 
  is_int_var_greater_than_int_lvar $game_timer > 10@
goto_if_false @DEBT_2349
if 
  Char.IsInAnyCar($scplayer)
goto_if_false @DEBT_2314
11@ = Math.RandomIntInRange(0, 4)
$car = Char.StoreCarIsInNoSave($scplayer)
if 
  11@ == 0
goto_if_false @DEBT_2193
Task.CarMission(13@, 12@, $car, CarMission.RamCarFaraway, 100.0, DrivingMode.AvoidCars)

:DEBT_2193
if 
  11@ == 1
goto_if_false @DEBT_2231
Task.CarMission(13@, 12@, $car, CarMission.BlockCarHandbrakeStop, 100.0, DrivingMode.AvoidCars)

:DEBT_2231
if 
  11@ == 2
goto_if_false @DEBT_2269
Task.CarMission(13@, 12@, $car, CarMission.EscortLeft, 100.0, DrivingMode.AvoidCars)

:DEBT_2269
if 
  11@ == 3
goto_if_false @DEBT_2307
Task.CarMission(13@, 12@, $car, CarMission.EscortRight, 100.0, DrivingMode.AvoidCars)

:DEBT_2307
goto @DEBT_2333

:DEBT_2314
Task.CarMission(13@, 12@, -1, CarMission.RamPlayerFaraway, 100.0, DrivingMode.AvoidCars)

:DEBT_2333
set_lvar_int_to_var_int 10@ = $game_timer
10@ += 8000

:DEBT_2349
$distance = Char.GetSpeed($scplayer)
if or
  Char.IsOnFoot($scplayer)
  5.0 > $distance
goto_if_false @DEBT_2558
if 
  Char.LocateAnyMeansChar2D(13@, $scplayer, 15.0, 15.0, False)
goto_if_false @DEBT_2558
$task_status = Char.GetScriptTaskStatus(13@, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_2558
20@ = Sequence.Open()
11@ = Math.RandomIntInRange(0, 2)
if 
  11@ == 0
goto_if_false @DEBT_2506
Task.CarTempAction(-1, 12@, TempAction.TurnLeft, 200)
Task.CarTempAction(-1, 12@, TempAction.HandbrakeTurnLeft, 1000)
goto @DEBT_2530

:DEBT_2506
Task.CarTempAction(-1, 12@, TempAction.TurnRight, 200)
Task.CarTempAction(-1, 12@, TempAction.HandbrakeTurnRight, 1000)

:DEBT_2530
Task.KillCharOnFootTimed(-1, $scplayer, 5000)
Sequence.Close(20@)
Char.PerformSequence(13@, 20@)
Sequence.Clear(20@)

:DEBT_2558
if and
  StuckCarCheck.IsCarStuck(12@)
  15.0 > $distance
goto_if_false @DEBT_2671
if 
  Char.LocateAnyMeansCar2D($scplayer, 12@, 30.0, 30.0, False)
goto_if_false @DEBT_2671
if 
  Car.IsOnScreen(12@)
goto_if_false @DEBT_2671
$task_status = Char.GetScriptTaskStatus(13@, 1957)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_2671
Task.KillCharOnFootTimed(13@, $scplayer, 5000)

:DEBT_2671
goto @DEBT_2683

:DEBT_2678
Car.MarkAsNoLongerNeeded(12@)

:DEBT_2683
goto @DEBT_3139

:DEBT_2690
if 
  Char.LocateAnyMeansChar2D(13@, $scplayer, 30.0, 30.0, False)
goto_if_false @DEBT_2768
$task_status = Char.GetScriptTaskStatus(13@, 1957)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_2761
Task.KillCharOnFootTimed(13@, $scplayer, 5000)

:DEBT_2761
goto @DEBT_3139

:DEBT_2768
if 
  not Car.IsDead(12@)
goto_if_false @DEBT_2869
$task_status = Char.GetScriptTaskStatus(13@, 1560)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_2862
20@ = Sequence.Open()
Task.GotoCar(-1, 12@, 99999, 5.0)
Task.EnterCarAsDriver(-1, 12@, -2)
Sequence.Close(20@)
Char.PerformSequence(13@, 20@)
Sequence.Clear(20@)

:DEBT_2862
goto @DEBT_3139

:DEBT_2869
Car.MarkAsNoLongerNeeded(12@)
if 
  not Char.LocateAnyMeansChar2D($scplayer, 13@, 60.0, 60.0, False)
goto_if_false @DEBT_3099
if 
  not Car.IsOnScreen(12@)
goto_if_false @DEBT_3092
$x, $y, $z = Char.GetCoordinates(13@)
$x, $y, $z, $heading = Path.GetClosestCarNodeWithHeading($x, $y, $z)
if 
  not World.IsPointObscuredByAMissionEntity($x, $y, $z, 4.0, 4.0, 4.0)
goto_if_false @DEBT_3092
if 
  not Camera.IsPointOnScreen($x, $y, $z, 4.0)
goto_if_false @DEBT_3092
12@ = Car.Create(540, $x, $y, $z)
Car.SetHeading(12@, $heading)
Car.ChangeColor(12@, 75, 0)
Car.SetHealth(12@, 1500)
Car.SetDrivingStyle(12@, DrivingMode.AvoidCars)
StuckCarCheck.AddWithWarp(12@, 4.0, 4000, True, True, True, -1)

:DEBT_3092
goto @DEBT_3139

:DEBT_3099
$task_status = Char.GetScriptTaskStatus(13@, 1957)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_3139
Task.KillCharOnFootTimed(13@, $scplayer, 5000)

:DEBT_3139
goto @DEBT_3178

:DEBT_3146
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 60000
0@ = 0

:DEBT_3178
goto @DEBT_3350

:DEBT_3185
Char.MarkAsNoLongerNeeded(13@)
$temp_integer_4 = 1

:DEBT_3197
if 
  4 > $temp_integer_4
goto_if_false @DEBT_3350
if 
  not Char.IsDead(13@($temp_integer_4,4i))
goto_if_false @DEBT_3327
if 
  Group.DoesExist(17@)
goto_if_false @DEBT_3320
if 
  Char.IsGroupMember(13@($temp_integer_4,4i), 17@)
goto_if_false @DEBT_3320
if 
  Char.IsGroupLeader(13@($temp_integer_4,4i), 17@)
goto_if_false @DEBT_3320
set_lvar_int_to_lvar_int 13@ = 13@($temp_integer_4,4i)
13@($temp_integer_4,4i) = -1

:DEBT_3320
goto @DEBT_3336

:DEBT_3327
Char.MarkAsNoLongerNeeded(13@($temp_integer_4,4i))

:DEBT_3336
$temp_integer_4 += 1
goto @DEBT_3197

:DEBT_3350
$temp_integer_4 = 1

:DEBT_3357
if 
  4 > $temp_integer_4
goto_if_false @DEBT_3591
if 
  not Char.IsDead(13@)
goto_if_false @DEBT_3577
if 
  not Char.IsDead(13@($temp_integer_4,4i))
goto_if_false @DEBT_3568
if 
  Group.DoesExist(17@)
goto_if_false @DEBT_3561
if 
  not Char.IsGroupMember(13@($temp_integer_4,4i), 17@)
goto_if_false @DEBT_3561
if 
  Char.LocateAnyMeansChar2D(13@($temp_integer_4,4i), 13@, 30.0, 30.0, False)
goto_if_false @DEBT_3504
Group.SetMember(17@, 13@($temp_integer_4,4i))
goto @DEBT_3561

:DEBT_3504
$task_status = Char.GetScriptTaskStatus(13@($temp_integer_4,4i), 1506)
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_3561
Char.MarkAsNoLongerNeeded(13@($temp_integer_4,4i))
Task.KillCharOnFootTimed(13@($temp_integer_4,4i), $scplayer, 5000)

:DEBT_3561
goto @DEBT_3577

:DEBT_3568
Char.MarkAsNoLongerNeeded(13@($temp_integer_4,4i))

:DEBT_3577
$temp_integer_4 += 1
goto @DEBT_3357

:DEBT_3591
goto @DEBT_3630

:DEBT_3598
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 60000
0@ = 0

:DEBT_3630
goto @DEBT_3653

:DEBT_3637
gosub @DEBT_3801
$1376 = 0
terminate_this_script 

:DEBT_3653
goto @DEBT_3692

:DEBT_3660
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000
0@ = 0

:DEBT_3692
goto @DEBT_3731

:DEBT_3699
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000
0@ = 0

:DEBT_3731
if and
  Char.IsDead(13@)
  Char.IsDead(14@)
  Char.IsDead(15@)
  Char.IsDead(16@)
goto_if_false @DEBT_3794
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000
0@ = 0

:DEBT_3794
goto @DEBT_109

:DEBT_3801
Char.MarkAsNoLongerNeeded(13@)
Char.MarkAsNoLongerNeeded(14@)
Char.MarkAsNoLongerNeeded(15@)
Char.MarkAsNoLongerNeeded(16@)
Car.MarkAsNoLongerNeeded(12@)
DecisionMaker.Remove(19@)
DecisionMaker.Remove(18@)
Group.Remove(17@)
if 
  2@ == 1
goto_if_false @DEBT_3871
Streaming.MarkModelAsNoLongerNeeded(540)
2@ = 0

:DEBT_3871
if 
  3@ == 1
goto_if_false @DEBT_3901
Streaming.MarkModelAsNoLongerNeeded(181)
3@ = 0

:DEBT_3901
if 
  4@ == 1
goto_if_false @DEBT_3931
Streaming.MarkModelAsNoLongerNeeded(183)
4@ = 0

:DEBT_3931
if 
  5@ == 1
goto_if_false @DEBT_3961
Streaming.MarkModelAsNoLongerNeeded(206)
5@ = 0

:DEBT_3961
if 
  6@ == 1
goto_if_false @DEBT_3990
Streaming.MarkModelAsNoLongerNeeded(47)
6@ = 0

:DEBT_3990
if 
  7@ == 1
goto_if_false @DEBT_4020
Streaming.MarkModelAsNoLongerNeeded(352)
7@ = 0

:DEBT_4020
if 
  8@ == 1
goto_if_false @DEBT_4050
Streaming.MarkModelAsNoLongerNeeded(355)
8@ = 0

:DEBT_4050
return 
terminate_this_script 

//-------------External script 77 (HOTDOG)---------------

:HOTDOGV
script_name 'HOTDOGV'
2@ = 0
if 
  2@ == 1
goto_if_false @HOTDOGV_77
0@ = Char.Create(PedType.CivMale, 7, 0.0, 0.0, 0.0)
1@ = Car.Create(588, $x, $y, $z)

:HOTDOGV_77
wait 0
$game_timer = Clock.GetGameTimer()
if 
  not Char.IsDead(0@)
goto_if_false @HOTDOGV_698
if 
  Player.IsPlaying($player1)
goto_if_false @HOTDOGV_673
if 
  Char.IsAttachedToAnyCar(0@)
goto_if_false @HOTDOGV_648
1@ = Char.StoreCarIsAttachedToNoSave(0@)
if 
  not Char.IsInCar($scplayer, 1@)
goto_if_false @HOTDOGV_616
if 
  2@ == 0
goto_if_false @HOTDOGV_434
if 
  Char.LocateOnFootCar2D($scplayer, 1@, 12.0, 12.0, False)
goto_if_false @HOTDOGV_434
Streaming.RequestAnimation("VENDING")
if 
  Streaming.HasAnimationLoaded("VENDING")
goto_if_false @HOTDOGV_434
if 
  Player.IsScoreGreater($player1, 0)
goto_if_false @HOTDOGV_434
$x, $y, $z = Car.GetOffsetInWorldCoords(1@, 2.0, 0.0, 0.0)
if 
  Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.6, 0.6, 1.0, True)
goto_if_false @HOTDOGV_434
$sequence_task_obj = Char.GetHealth($scplayer)
$sequence_task_obj += 50
Char.SetHealth($scplayer, $sequence_task_obj)
Task.PlayAnimSecondary($scplayer, "VEND_EAT1_P", "VENDING", 4.0, False, False, False, False, -1)
Stat.IncrementInt(StatId.Calories, 10)
set_lvar_int_to_var_int 3@ = $game_timer
3@ += 3000
Player.AddScore($player1, -1)
2@ += 1

:HOTDOGV_434
if 
  2@ == 1
goto_if_false @HOTDOGV_494
if 
  is_int_var_greater_than_int_lvar $game_timer > 3@
goto_if_false @HOTDOGV_494
set_lvar_int_to_var_int 3@ = $game_timer
3@ += 27000
2@ += 1

:HOTDOGV_494
if 
  2@ == 2
goto_if_false @HOTDOGV_609
if 
  is_int_var_greater_than_int_lvar $game_timer > 3@
goto_if_false @HOTDOGV_609
$x, $y, $z = Car.GetOffsetInWorldCoords(1@, 1.0, 0.0, 0.0)
if 
  not Char.LocateOnFoot3D($scplayer, $x, $y, $z, 0.6, 0.6, 1.0, False)
goto_if_false @HOTDOGV_609
2@ = 0

:HOTDOGV_609
goto @HOTDOGV_641

:HOTDOGV_616
Char.MarkAsNoLongerNeeded(0@)
Task.Duck(0@, -2)
Streaming.RemoveAnimation("VENDING")
terminate_this_script 

:HOTDOGV_641
goto @HOTDOGV_666

:HOTDOGV_648
Char.MarkAsNoLongerNeeded(0@)
Streaming.RemoveAnimation("VENDING")
terminate_this_script 

:HOTDOGV_666
goto @HOTDOGV_691

:HOTDOGV_673
Char.MarkAsNoLongerNeeded(0@)
Streaming.RemoveAnimation("VENDING")
terminate_this_script 

:HOTDOGV_691
goto @HOTDOGV_716

:HOTDOGV_698
Char.MarkAsNoLongerNeeded(0@)
Streaming.RemoveAnimation("VENDING")
terminate_this_script 

:HOTDOGV_716
goto @HOTDOGV_77
terminate_this_script 
